@treasuredata/tdx 0.4.4 → 0.4.6
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/dist/build-info.json +2 -2
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/engage-api-client.d.ts +79 -1
- package/dist/client/engage-api-client.d.ts.map +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/engage-api-client.js.map +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.d.ts +128 -0
- package/dist/commands/engage-command.d.ts.map +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pwd-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.d.ts +1 -0
- package/dist/commands/use-command.d.ts.map +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/use-command.js.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -0
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/session.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/engage.d.ts +105 -1
- package/dist/sdk/engage.d.ts.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/engage.js.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/engage.d.ts +102 -0
- package/dist/types/engage.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1be507,_0x2f5ba6){const _0x602bf4=a82_0x54e6,_0x339c20=_0x1be507();while(!![]){try{const _0x2bc63d=-parseInt(_0x602bf4(0x173))/0x1+-parseInt(_0x602bf4(0x18c))/0x2+parseInt(_0x602bf4(0x17c))/0x3*(parseInt(_0x602bf4(0x183))/0x4)+parseInt(_0x602bf4(0x189))/0x5+parseInt(_0x602bf4(0x177))/0x6*(parseInt(_0x602bf4(0x18e))/0x7)+parseInt(_0x602bf4(0x17f))/0x8*(-parseInt(_0x602bf4(0x188))/0x9)+parseInt(_0x602bf4(0x17e))/0xa;if(_0x2bc63d===_0x2f5ba6)break;else _0x339c20['push'](_0x339c20['shift']());}catch(_0xb337c2){_0x339c20['push'](_0x339c20['shift']());}}}(a82_0x31b5,0xa1c5f));function a82_0x54e6(_0x577388,_0x5ad2bf){const _0x31b55e=a82_0x31b5();return a82_0x54e6=function(_0x54e6cf,_0x2912cb){_0x54e6cf=_0x54e6cf-0x173;let _0x46fd30=_0x31b55e[_0x54e6cf];return _0x46fd30;},a82_0x54e6(_0x577388,_0x5ad2bf);}export function parsePath(_0x1d46bf){const _0x460ec4=a82_0x54e6;if(!_0x1d46bf||_0x1d46bf[_0x460ec4(0x17d)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x182818=_0x1d46bf['trim']();if(_0x182818==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1d46bf};const _0x5164e4=_0x182818[_0x460ec4(0x175)]('/')?_0x182818[_0x460ec4(0x18a)](0x1):_0x182818,_0x342046=_0x5164e4[_0x460ec4(0x185)]('/')[_0x460ec4(0x184)](_0x30da1b=>_0x30da1b!=='');if(_0x342046[_0x460ec4(0x18b)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x115f8d=_0x182818[_0x460ec4(0x175)]('/')||!isRelativePathSegment(_0x342046[0x0]);for(const _0x1fde54 of _0x342046){validatePathSegment(_0x1fde54);}return{'segments':_0x342046,'isAbsolute':_0x115f8d,'raw':_0x1d46bf};}function isRelativePathSegment(_0x5beef7){return _0x5beef7==='.'||_0x5beef7==='..';}function validatePathSegment(_0x5625f4){const _0xaa4818=a82_0x54e6;if(_0x5625f4==='')throw new Error(_0xaa4818(0x174));if(_0x5625f4==='.'||_0x5625f4==='..')return;if(/[\x00-\x1F\x7F]/[_0xaa4818(0x178)](_0x5625f4))throw new Error(_0xaa4818(0x18f)+_0x5625f4);if(_0x5625f4!==_0x5625f4[_0xaa4818(0x17d)]()){}}export function validatePath(_0x53cef1){const _0x276bb6=a82_0x54e6;if(_0x53cef1[_0x276bb6(0x181)][_0x276bb6(0x18b)]===0x0&&!_0x53cef1[_0x276bb6(0x187)])throw new Error(_0x276bb6(0x17b));if(_0x53cef1['isAbsolute']){if(_0x53cef1[_0x276bb6(0x181)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1b4a4b=0x0;for(const _0x2ea1b9 of _0x53cef1[_0x276bb6(0x181)]){if(_0x2ea1b9==='..'){if(_0x1b4a4b===0x0)throw new Error(_0x276bb6(0x176));_0x1b4a4b--;}else _0x2ea1b9!=='.'&&_0x1b4a4b++;}}}export function joinPaths(_0x2f4d00,_0x2b1b5d){const _0x46490d=a82_0x54e6;if(!_0x2f4d00||_0x2f4d00==='/')return _0x2b1b5d;if(!_0x2b1b5d||_0x2b1b5d==='.')return _0x2f4d00;if(_0x2b1b5d[_0x46490d(0x175)]('/'))return _0x2b1b5d;const _0x11dfe0=parsePath(_0x2f4d00),_0x92b9be=parsePath(_0x2b1b5d),_0x47039b=[..._0x11dfe0[_0x46490d(0x181)]];for(const _0x144bc3 of _0x92b9be[_0x46490d(0x181)]){if(_0x144bc3==='.')continue;else{if(_0x144bc3==='..'){if(_0x47039b[_0x46490d(0x18b)]===0x0)throw new Error(_0x46490d(0x18d));_0x47039b['pop']();}else _0x47039b[_0x46490d(0x186)](_0x144bc3);}}const _0x2497bf=_0x47039b[_0x46490d(0x17a)]('/');return _0x11dfe0[_0x46490d(0x180)][_0x46490d(0x175)]('/')?'/'+_0x2497bf:_0x2497bf;}export function normalizePath(_0x196594){const _0x14cd7c=a82_0x54e6,_0x267c48=parsePath(_0x196594),_0xff7576=[];for(const _0x49d59e of _0x267c48[_0x14cd7c(0x181)]){if(_0x49d59e==='.')continue;else{if(_0x49d59e==='..'){if(_0xff7576['length']===0x0){if(_0x267c48['isAbsolute'])throw new Error(_0x14cd7c(0x18d));_0xff7576[_0x14cd7c(0x186)]('..');}else _0xff7576[_0xff7576[_0x14cd7c(0x18b)]-0x1]==='..'?_0xff7576['push']('..'):_0xff7576['pop']();}else _0xff7576['push'](_0x49d59e);}}if(_0xff7576[_0x14cd7c(0x18b)]===0x0)return _0x267c48[_0x14cd7c(0x187)]?'/':'.';const _0x249c12=_0xff7576[_0x14cd7c(0x17a)]('/');return _0x267c48[_0x14cd7c(0x180)][_0x14cd7c(0x175)]('/')?'/'+_0x249c12:_0x249c12;}export function getParentPath(_0x248db0){const _0x3057ed=a82_0x54e6,_0x1007dd=parsePath(_0x248db0);if(_0x1007dd['segments']['length']<=0x1)return'/';const _0x242150=_0x1007dd[_0x3057ed(0x181)][_0x3057ed(0x179)](0x0,-0x1)[_0x3057ed(0x17a)]('/');return _0x1007dd['raw'][_0x3057ed(0x175)]('/')?'/'+_0x242150:_0x242150;}export function getBaseName(_0x4bcdaa){const _0x651787=a82_0x54e6,_0x29eeb4=parsePath(_0x4bcdaa);return _0x29eeb4[_0x651787(0x181)][_0x29eeb4[_0x651787(0x181)]['length']-0x1]||'';}export function isChildPath(_0x1af4d5,_0x1495e9){const _0x1acd12=a82_0x54e6,_0x478324=parsePath(_0x1af4d5),_0x5bcf60=parsePath(_0x1495e9);if(_0x478324[_0x1acd12(0x181)][_0x1acd12(0x18b)]<=_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)])return![];for(let _0x29a6c1=0x0;_0x29a6c1<_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)];_0x29a6c1++){if(_0x478324[_0x1acd12(0x181)][_0x29a6c1]!==_0x5bcf60[_0x1acd12(0x181)][_0x29a6c1])return![];}return!![];}export function splitPath(_0x2c591b){const _0x66640d=a82_0x54e6,_0x2dcf21=parsePath(_0x2c591b);if(_0x2dcf21[_0x66640d(0x181)]['length']===0x0)throw new Error(_0x66640d(0x182));if(_0x2dcf21['segments'][_0x66640d(0x18b)]===0x1)return{'parent':_0x2dcf21['segments'][0x0]};return{'parent':_0x2dcf21['segments'][0x0],'child':_0x2dcf21[_0x66640d(0x181)][_0x66640d(0x179)](0x1)[_0x66640d(0x17a)]('/')};}function a82_0x31b5(){const _0x4119a3=['slice','join','Relative\x20path\x20cannot\x20be\x20empty','1776555zQlWIJ','trim','9851080yqaXgI','66200XPUzGS','raw','segments','Cannot\x20split\x20empty\x20path','4MrlpFS','filter','split','push','isAbsolute','1404CyQsdO','1730260ikUuzL','substring','length','1548462aWBvDO','Cannot\x20navigate\x20above\x20root','1043kkmsbM','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','275394PUoueH','Path\x20segment\x20cannot\x20be\x20empty','startsWith','Path\x20attempts\x20to\x20navigate\x20above\x20root','43482GLLfMH','test'];a82_0x31b5=function(){return _0x4119a3;};return a82_0x31b5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x4f7e(_0x174cf6,_0xc9a3){const _0x1ce0aa=a83_0x1ce0();return a83_0x4f7e=function(_0x4f7e3c,_0x19c6d1){_0x4f7e3c=_0x4f7e3c-0xb0;let _0x2db22f=_0x1ce0aa[_0x4f7e3c];return _0x2db22f;},a83_0x4f7e(_0x174cf6,_0xc9a3);}(function(_0x216413,_0x3a91ab){const _0x1afa69=a83_0x4f7e,_0x377d01=_0x216413();while(!![]){try{const _0x1bd7bd=parseInt(_0x1afa69(0xb1))/0x1*(-parseInt(_0x1afa69(0xb9))/0x2)+-parseInt(_0x1afa69(0xb0))/0x3+-parseInt(_0x1afa69(0xba))/0x4*(parseInt(_0x1afa69(0xb4))/0x5)+-parseInt(_0x1afa69(0xbb))/0x6+-parseInt(_0x1afa69(0xb5))/0x7+parseInt(_0x1afa69(0xb3))/0x8+parseInt(_0x1afa69(0xb6))/0x9*(parseInt(_0x1afa69(0xb8))/0xa);if(_0x1bd7bd===_0x3a91ab)break;else _0x377d01['push'](_0x377d01['shift']());}catch(_0x2ff6cb){_0x377d01['push'](_0x377d01['shift']());}}}(a83_0x1ce0,0xe228c));export function parseSegmentRef(_0x4e53da){const _0x191a00=a83_0x4f7e,_0x4a06e4=_0x4e53da['indexOf']('/');if(_0x4a06e4===-0x1)return{'parentId':_0x4e53da};if(_0x4a06e4===0x0)throw new Error(_0x191a00(0xbc)+_0x4e53da+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5cf0ae=_0x4e53da[_0x191a00(0xb7)](0x0,_0x4a06e4),_0xbcc2c7=_0x4e53da[_0x191a00(0xb7)](_0x4a06e4+0x1);if(_0xbcc2c7==='')throw new Error(_0x191a00(0xbc)+_0x4e53da+_0x191a00(0xb2));return{'parentId':_0x5cf0ae,'childId':_0xbcc2c7};}function a83_0x1ce0(){const _0x8c5591=['974DDSKsD','6284VfdDwN','1429098znwzKC','Invalid\x20segment\x20reference\x20format:\x20','653358hhfiFF','1143ZypjPy','.\x20Child\x20name\x20cannot\x20be\x20empty','23272YnKuzC','3545TbTdzM','431088pnSrfB','250029DGkDLl','substring','1120uMUOep'];a83_0x1ce0=function(){return _0x8c5591;};return a83_0x1ce0();}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a71fd,_0x575cdb){const _0x33b635=a84_0x235f,_0x3edf6e=_0x1a71fd();while(!![]){try{const _0x1eebe6=-parseInt(_0x33b635(0x1d5))/0x1+parseInt(_0x33b635(0x1c0))/0x2*(-parseInt(_0x33b635(0x1c9))/0x3)+parseInt(_0x33b635(0x1ca))/0x4*(parseInt(_0x33b635(0x1ce))/0x5)+-parseInt(_0x33b635(0x1d0))/0x6*(parseInt(_0x33b635(0x1d3))/0x7)+parseInt(_0x33b635(0x1c6))/0x8+-parseInt(_0x33b635(0x1d9))/0x9+-parseInt(_0x33b635(0x1cf))/0xa*(-parseInt(_0x33b635(0x1be))/0xb);if(_0x1eebe6===_0x575cdb)break;else _0x3edf6e['push'](_0x3edf6e['shift']());}catch(_0x2ccf80){_0x3edf6e['push'](_0x3edf6e['shift']());}}}(a84_0x2a28,0xc1fe9));function a84_0x235f(_0x4555fb,_0x4f363b){const _0x2a2849=a84_0x2a28();return a84_0x235f=function(_0x235fc0,_0x1ad1dc){_0x235fc0=_0x235fc0-0x1be;let _0x560478=_0x2a2849[_0x235fc0];return _0x560478;},a84_0x235f(_0x4555fb,_0x4f363b);}import a84_0x205bda from'ora';function a84_0x2a28(){const _0x445252=['6220015csCvRI','7780wZPMEr','62364wOUttD','start','cyan','189qltCru','\x20[Job\x20ID:\x20','105060vPwLaa','replace','phase','isTTY','7908525MPdwFP','18007kRMNcg','intervalFactory','1807434sdIDJw','toFixed','stop','stdout','isSpinning','jobId','3561216KsTsAd','now','text','3OBJFRm','4RDwvaj','extra','clock','floor'];a84_0x2a28=function(){return _0x445252;};return a84_0x2a28();}export function createCommandSpinner(_0x10b4d6,_0x9e5ee6={}){const _0x4aceda=a84_0x235f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x9e5ee6;return a84_0x205bda({'text':_0x10b4d6,'color':_0x4aceda(0x1d2),'isEnabled':forceEnabled||process[_0x4aceda(0x1c3)][_0x4aceda(0x1d8)]&&!verbose});}export async function withSpinner(_0x61a246,_0x3eff16,_0x2a5f65={}){const _0x2f4928=a84_0x235f,_0x65eb46=_0x2a5f65['clock']??(()=>Date[_0x2f4928(0x1c7)]()),_0x3e2047=createCommandSpinner(_0x61a246,_0x2a5f65);_0x3e2047[_0x2f4928(0x1d1)]();const _0x4c034f=_0x65eb46();try{const _0x3ec375=await _0x3eff16(),_0x26de8f=_0x65eb46()-_0x4c034f;return _0x3e2047[_0x2f4928(0x1c2)](),{'data':_0x3ec375,'elapsedMs':_0x26de8f};}catch(_0x20f4b9){_0x3e2047[_0x2f4928(0x1c2)]();throw _0x20f4b9;}}export async function withQuerySpinner(_0x419f91,_0x314718,_0xc6f8a={}){const _0x2472af=a84_0x235f,_0x197916=_0xc6f8a[_0x2472af(0x1cc)]??(()=>Date[_0x2472af(0x1c7)]()),_0x33d72e=_0xc6f8a[_0x2472af(0x1bf)]??setInterval,_0x3ccc0d=createCommandSpinner(_0x419f91,_0xc6f8a);_0x3ccc0d['start']();const _0x6daae=_0x197916(),_0x16e499=_0x419f91[_0x2472af(0x1d6)]('...',''),_0x4cb110={},_0x1a403f=()=>{const _0x26dfcb=_0x2472af;if(!_0x3ccc0d[_0x26dfcb(0x1c4)])return;const _0x4318bd=_0x197916()-_0x6daae,_0x1c8e2e=formatElapsed(_0x4318bd),_0x52446c=_0x4cb110[_0x26dfcb(0x1d7)]??_0x16e499,_0x567cda=_0x4cb110['jobId']?_0x26dfcb(0x1d4)+_0x4cb110['jobId']+']':'',_0x2d84c8=_0x4cb110[_0x26dfcb(0x1cb)]?'\x20'+_0x4cb110[_0x26dfcb(0x1cb)]:'';_0x3ccc0d[_0x26dfcb(0x1c8)]=_0x52446c+'\x20'+_0x1c8e2e+_0x2d84c8+_0x567cda;},_0xcf1f1e=_0x33d72e(()=>{_0x1a403f();},0x3e8),_0x4ee1db={'setPhase':_0x36817f=>{const _0x59fd74=_0x2472af;_0x4cb110[_0x59fd74(0x1d7)]=_0x36817f,_0x1a403f();},'setJobId':_0x4a7973=>{const _0x201fc3=_0x2472af;_0x4cb110[_0x201fc3(0x1c5)]=_0x4a7973,_0x1a403f();},'setExtra':_0x54858f=>{const _0x496993=_0x2472af;_0x4cb110[_0x496993(0x1cb)]=_0x54858f,_0x1a403f();}};_0x1a403f();try{const _0x58ca94=await _0x314718(_0x4ee1db),_0x22a4dc=_0x197916()-_0x6daae;return{'data':_0x58ca94,'elapsedMs':_0x22a4dc};}finally{clearInterval(_0xcf1f1e),_0x3ccc0d[_0x2472af(0x1c2)]();}}export function formatElapsed(_0x132a1d){const _0x243114=a84_0x235f,_0x43c754=Math[_0x243114(0x1cd)](_0x132a1d/0x3e8);if(_0x43c754<0x3c)return(_0x132a1d/0x3e8)[_0x243114(0x1c1)](0x1)+'s';const _0x18805c=Math[_0x243114(0x1cd)](_0x43c754/0x3c),_0x4cb0e6=_0x43c754%0x3c;if(_0x18805c<0x3c)return _0x18805c+'m\x20'+_0x4cb0e6+'s';const _0xd23e01=Math['floor'](_0x18805c/0x3c),_0x3c9627=_0x18805c%0x3c;return _0xd23e01+'h\x20'+_0x3c9627+'m';}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4de609,_0x55850f){const _0x2c0648=a85_0x3c14,_0x4386e9=_0x4de609();while(!![]){try{const _0x5a3eea=-parseInt(_0x2c0648(0x13a))/0x1*(parseInt(_0x2c0648(0x123))/0x2)+parseInt(_0x2c0648(0x12e))/0x3+-parseInt(_0x2c0648(0x126))/0x4+-parseInt(_0x2c0648(0x129))/0x5+-parseInt(_0x2c0648(0x12f))/0x6+parseInt(_0x2c0648(0x139))/0x7+parseInt(_0x2c0648(0x134))/0x8*(parseInt(_0x2c0648(0x125))/0x9);if(_0x5a3eea===_0x55850f)break;else _0x4386e9['push'](_0x4386e9['shift']());}catch(_0xf312dc){_0x4386e9['push'](_0x4386e9['shift']());}}}(a85_0x491d,0x96fd3));import{readFileSync}from'fs';export function stripSqlComments(_0x497fc4){const _0x42eeff=a85_0x3c14;let _0x3dc652=_0x497fc4[_0x42eeff(0x133)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3dc652=_0x3dc652[_0x42eeff(0x133)](/--.*$/gm,''),_0x3dc652[_0x42eeff(0x135)]();}function a85_0x3c14(_0x59ff21,_0x11a810){const _0x491dc6=a85_0x491d();return a85_0x3c14=function(_0x3c14eb,_0x4e625b){_0x3c14eb=_0x3c14eb-0x123;let _0x2fddd8=_0x491dc6[_0x3c14eb];return _0x2fddd8;},a85_0x3c14(_0x59ff21,_0x11a810);}function isEscaped(_0x57d695,_0x16f8a5){let _0x3b7e7e=0x0;for(let _0x327850=_0x16f8a5-0x1;_0x327850>=0x0&&_0x57d695[_0x327850]==='\x5c';_0x327850--){_0x3b7e7e++;}return _0x3b7e7e%0x2===0x1;}export function splitSqlStatements(_0x4debca){const _0x495ebb=a85_0x3c14,_0x15297e=stripSqlComments(_0x4debca);if(!_0x15297e)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1b891d=[];let _0x458113='',_0x260cbf=![],_0x2ffa43=![],_0x571d88=![];for(let _0x1c007a=0x0;_0x1c007a<_0x4debca['length'];_0x1c007a++){const _0x456cac=_0x4debca[_0x1c007a];if(_0x456cac==='\x27'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x2ffa43&&!_0x571d88)_0x260cbf=!_0x260cbf;else{if(_0x456cac==='\x22'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x571d88)_0x2ffa43=!_0x2ffa43;else _0x456cac==='`'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x2ffa43&&(_0x571d88=!_0x571d88);}if(_0x456cac===';'&&!_0x260cbf&&!_0x2ffa43&&!_0x571d88){const _0x1ef458=_0x458113[_0x495ebb(0x135)]();_0x1ef458&&_0x1b891d['push'](_0x1ef458),_0x458113='';}else _0x458113+=_0x456cac;}const _0x3c2222=_0x458113[_0x495ebb(0x135)]();_0x3c2222&&_0x1b891d['push'](_0x3c2222);const _0x27d8b8=_0x1b891d[_0x495ebb(0x137)](_0x406281=>_0x406281[_0x495ebb(0x135)]())[_0x495ebb(0x12b)](_0x57948b=>{const _0x3c3eaa=_0x495ebb,_0x44eec5=stripSqlComments(_0x57948b);return _0x44eec5[_0x3c3eaa(0x131)]>0x0;});if(_0x27d8b8['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x27d8b8;}export function readFileContent(_0x50beab){const _0xe3b6ad=a85_0x3c14;try{return readFileSync(_0x50beab,_0xe3b6ad(0x12d));}catch(_0x5e94ec){const _0x4621a7=_0x5e94ec[_0xe3b6ad(0x138)];if(_0x4621a7==='ENOENT')throw new Error(_0xe3b6ad(0x130)+_0x50beab+_0xe3b6ad(0x124));else{if(_0x4621a7===_0xe3b6ad(0x136))throw new Error(_0xe3b6ad(0x12c)+_0x50beab+'\x27');else throw new Error(_0xe3b6ad(0x127)+_0x50beab+_0xe3b6ad(0x128)+_0x5e94ec[_0xe3b6ad(0x12a)]);}}}export function readSqlStatementsFromFile(_0x14ca81){const _0x3bf976=a85_0x3c14,_0x460cec=readFileContent(_0x14ca81);try{return splitSqlStatements(_0x460cec);}catch(_0x8629be){throw new Error(_0x3bf976(0x130)+_0x14ca81+'\x27\x20'+_0x8629be[_0x3bf976(0x12a)][_0x3bf976(0x132)]());}}function a85_0x491d(){const _0x254322=['819kgGNMt','165640eiRCFz','Error\x20reading\x20file\x20\x27','\x27:\x20','1143545nVsrBy','message','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','2521125FFWQKs','2054784oTRFex','File\x20\x27','length','toLowerCase','replace','54488cAJQRF','trim','EACCES','map','code','4062765KarhFG','809537DtMcPn','2pkyipi','\x27\x20not\x20found'];a85_0x491d=function(){return _0x254322;};return a85_0x491d();}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a86_0x3485(_0x1dbb75,_0x4e9039){const _0x2f691c=a86_0x2f69();return a86_0x3485=function(_0x348539,_0x2f61e6){_0x348539=_0x348539-0x131;let _0x331a92=_0x2f691c[_0x348539];return _0x331a92;},a86_0x3485(_0x1dbb75,_0x4e9039);}(function(_0x8afdff,_0x2ec08a){const _0x2a76fd=a86_0x3485,_0x33bdb9=_0x8afdff();while(!![]){try{const _0x163b98=parseInt(_0x2a76fd(0x13c))/0x1*(parseInt(_0x2a76fd(0x13f))/0x2)+-parseInt(_0x2a76fd(0x133))/0x3*(-parseInt(_0x2a76fd(0x138))/0x4)+parseInt(_0x2a76fd(0x135))/0x5*(-parseInt(_0x2a76fd(0x137))/0x6)+-parseInt(_0x2a76fd(0x13e))/0x7+parseInt(_0x2a76fd(0x139))/0x8*(-parseInt(_0x2a76fd(0x142))/0x9)+parseInt(_0x2a76fd(0x144))/0xa*(-parseInt(_0x2a76fd(0x145))/0xb)+parseInt(_0x2a76fd(0x132))/0xc;if(_0x163b98===_0x2ec08a)break;else _0x33bdb9['push'](_0x33bdb9['shift']());}catch(_0x435752){_0x33bdb9['push'](_0x33bdb9['shift']());}}}(a86_0x2f69,0x9c37d));export async function*parseSSEStream(_0x375fc7,_0x566152){const _0x65d315=a86_0x3485;if(!_0x375fc7[_0x65d315(0x13d)])throw new Error('Response\x20body\x20is\x20null');const _0x2d6012=_0x375fc7[_0x65d315(0x13d)][_0x65d315(0x13a)](),_0x3e3f75=new TextDecoder();let _0x559ae5='',_0x17c04a={};try{while(!![]){const {done:_0x54fcda,value:_0x285e2d}=await _0x2d6012[_0x65d315(0x13b)]();if(_0x54fcda){if(_0x17c04a[_0x65d315(0x146)]){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x2ddc4c=parseSSEData(_0x17c04a[_0x65d315(0x146)]);yield _0x2ddc4c;}break;}_0x559ae5+=_0x3e3f75[_0x65d315(0x140)](_0x285e2d,{'stream':!![]});const _0x58ec59=_0x559ae5['split']('\x0a');_0x559ae5=_0x58ec59[_0x65d315(0x141)]()||'';for(const _0x426aa3 of _0x58ec59){if(_0x426aa3[_0x65d315(0x136)]()===''){if(_0x17c04a['data']){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x11e7b4=parseSSEData(_0x17c04a['data']);yield _0x11e7b4,_0x17c04a={};}continue;}if(_0x426aa3[_0x65d315(0x148)](':'))continue;const _0x369ea7=_0x426aa3['indexOf'](':');if(_0x369ea7===-0x1)continue;const _0x4fa288=_0x426aa3[_0x65d315(0x131)](0x0,_0x369ea7);let _0x3cd8ce=_0x426aa3['slice'](_0x369ea7+0x1);_0x3cd8ce[_0x65d315(0x148)]('\x20')&&(_0x3cd8ce=_0x3cd8ce[_0x65d315(0x131)](0x1));switch(_0x4fa288){case'event':_0x17c04a['event']=_0x3cd8ce;break;case _0x65d315(0x146):_0x17c04a['data']=_0x17c04a['data']?_0x17c04a[_0x65d315(0x146)]+'\x0a'+_0x3cd8ce:_0x3cd8ce;break;case'id':_0x17c04a['id']=_0x3cd8ce;break;}}}}finally{_0x2d6012[_0x65d315(0x143)]();}}function parseSSEData(_0x207d43){const _0x353d4c=a86_0x3485;try{return JSON[_0x353d4c(0x147)](_0x207d43);}catch(_0x1bcab8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x207d43,{'cause':_0x1bcab8});}}function a86_0x2f69(){const _0x2c4a63=['[LLM\x20API\x20SSE]\x20','5ikhguH','trim','7232838zuhYcL','146404TveIqX','2237416cPhzDe','getReader','read','166772jFbwyb','body','7432152zPkXXr','4BhzWOX','decode','pop','18eYEYKR','releaseLock','1930ubqhbN','10769jALOJG','data','parse','startsWith','debug','slice','37226748qwLgQm','18evkcsA'];a86_0x2f69=function(){return _0x2c4a63;};return a86_0x2f69();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x143fc9,_0x1e9160){const _0xc81d0b=a87_0x4acb,_0x2c7bc0=_0x143fc9();while(!![]){try{const _0x58aed4=-parseInt(_0xc81d0b(0x207))/0x1+-parseInt(_0xc81d0b(0x205))/0x2*(-parseInt(_0xc81d0b(0x1f3))/0x3)+-parseInt(_0xc81d0b(0x1fe))/0x4+parseInt(_0xc81d0b(0x1f7))/0x5+-parseInt(_0xc81d0b(0x206))/0x6*(-parseInt(_0xc81d0b(0x204))/0x7)+-parseInt(_0xc81d0b(0x1f5))/0x8+-parseInt(_0xc81d0b(0x1f4))/0x9*(-parseInt(_0xc81d0b(0x1f9))/0xa);if(_0x58aed4===_0x1e9160)break;else _0x2c7bc0['push'](_0x2c7bc0['shift']());}catch(_0x37025d){_0x2c7bc0['push'](_0x2c7bc0['shift']());}}}(a87_0x4c1b,0x1a327));import a87_0x54c074 from'string-width';export function stringWidth(_0xcf9c5c){return a87_0x54c074(_0xcf9c5c);}export function padEnd(_0x20c156,_0x92035f){const _0x3d0857=a87_0x4acb,_0x3b30fc=stringWidth(_0x20c156);if(_0x3b30fc>=_0x92035f)return _0x20c156;return _0x20c156+'\x20'[_0x3d0857(0x208)](_0x92035f-_0x3b30fc);}function a87_0x4c1b(){const _0x3b2cdd=['3PtOXti','2556mjexFm','664728RffRME','unknown','838570KwbWHH','trim','7430wwxrga','substring','\x5c$&','test','toString','618264ecNylc','toLowerCase','random','floor','env','padStart','303499evKQqF','175704JhJgkQ','6eJyhef','164975fUUxET','repeat','USERNAME','length','replace','USER','Cannot\x20escape\x20empty\x20string\x20literal'];a87_0x4c1b=function(){return _0x3b2cdd;};return a87_0x4c1b();}export function padStart(_0x4ec16d,_0x4e3352){const _0x34873b=a87_0x4acb,_0x1e2544=stringWidth(_0x4ec16d);if(_0x1e2544>=_0x4e3352)return _0x4ec16d;return'\x20'[_0x34873b(0x208)](_0x4e3352-_0x1e2544)+_0x4ec16d;}export function centerAlign(_0xa5e501,_0xb09867){const _0x307043=a87_0x4acb,_0x11048b=stringWidth(_0xa5e501);if(_0x11048b>_0xb09867){if(_0xb09867<=0x1)return'…'[_0x307043(0x1fa)](0x0,_0xb09867);let _0x305f04=_0xa5e501;while(stringWidth(_0x305f04+'…')>_0xb09867){_0x305f04=_0x305f04['slice'](0x0,-0x1);}return _0x305f04+'…';}if(_0x11048b===_0xb09867)return _0xa5e501;const _0x375244=_0xb09867-_0x11048b,_0x2db6f2=Math[_0x307043(0x201)](_0x375244/0x2),_0x53fe47=_0x375244-_0x2db6f2;return'\x20'[_0x307043(0x208)](_0x2db6f2)+_0xa5e501+'\x20'['repeat'](_0x53fe47);}function a87_0x4acb(_0x58aa1c,_0x44cd1e){const _0x4c1bd4=a87_0x4c1b();return a87_0x4acb=function(_0x4acb2b,_0x287a35){_0x4acb2b=_0x4acb2b-0x1f3;let _0x2965f2=_0x4c1bd4[_0x4acb2b];return _0x2965f2;},a87_0x4acb(_0x58aa1c,_0x44cd1e);}export function escapeStringLiteral(_0x4c5861){const _0x32b974=a87_0x4acb;if(!_0x4c5861||_0x4c5861[_0x32b974(0x1f8)]()[_0x32b974(0x20a)]===0x0)throw new Error(_0x32b974(0x20d));const _0x26ff4d=_0x4c5861[_0x32b974(0x20b)](/'/g,'\x27\x27');return'\x27'+_0x26ff4d+'\x27';}export function globToLike(_0x5bf058){const _0x49a08f=a87_0x4acb;let _0x79ec4f=_0x5bf058['replace'](/\\/g,'\x5c\x5c')[_0x49a08f(0x20b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x79ec4f=_0x79ec4f[_0x49a08f(0x20b)](/\*/g,'%')[_0x49a08f(0x20b)](/\?/g,'_'),_0x79ec4f;}export function buildLikePattern(_0x3202a8){const _0x21408d=a87_0x4acb;if(!_0x3202a8||_0x3202a8['trim']()[_0x21408d(0x20a)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x443136=globToLike(_0x3202a8),_0xf4ca13=_0x443136[_0x21408d(0x20b)](/'/g,'\x27\x27');return'\x27'+_0xf4ca13+'\x27';}export function matchGlobPattern(_0x90a1c,_0x39b5c7){const _0x40636e=a87_0x4acb,_0x4f2a33=_0x39b5c7['replace'](/[.+^${}()|[\]\\]/g,_0x40636e(0x1fb))['replace'](/\*/g,'.*')[_0x40636e(0x20b)](/\?/g,'.'),_0x5d8f1f=new RegExp('^'+_0x4f2a33+'$');return _0x5d8f1f[_0x40636e(0x1fc)](_0x90a1c);}export function getSanitizedUsername(){const _0x5dceb9=a87_0x4acb,_0x3cde66=process[_0x5dceb9(0x202)][_0x5dceb9(0x20c)]||process[_0x5dceb9(0x202)][_0x5dceb9(0x209)]||_0x5dceb9(0x1f6);return _0x3cde66[_0x5dceb9(0x20b)](/[^a-zA-Z0-9]/g,'')[_0x5dceb9(0x1ff)]();}export function generateRandomHex(){const _0x22fc24=a87_0x4acb,_0x20494f=Math[_0x22fc24(0x201)](Math[_0x22fc24(0x200)]()*0xfffff);return _0x20494f[_0x22fc24(0x1fd)](0x10)[_0x22fc24(0x203)](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a88_0x2bd2(_0x41a527,_0x5bf7cc){const _0x1470f2=a88_0x1470();return a88_0x2bd2=function(_0x2bd26c,_0x2e1c18){_0x2bd26c=_0x2bd26c-0x16a;let _0x3bf414=_0x1470f2[_0x2bd26c];return _0x3bf414;},a88_0x2bd2(_0x41a527,_0x5bf7cc);}(function(_0x21de68,_0x520b95){const _0x2b2f91=a88_0x2bd2,_0x50b603=_0x21de68();while(!![]){try{const _0x399e19=parseInt(_0x2b2f91(0x180))/0x1+parseInt(_0x2b2f91(0x179))/0x2+parseInt(_0x2b2f91(0x17c))/0x3+-parseInt(_0x2b2f91(0x175))/0x4*(-parseInt(_0x2b2f91(0x182))/0x5)+parseInt(_0x2b2f91(0x174))/0x6*(-parseInt(_0x2b2f91(0x178))/0x7)+parseInt(_0x2b2f91(0x16c))/0x8*(parseInt(_0x2b2f91(0x17b))/0x9)+-parseInt(_0x2b2f91(0x16e))/0xa;if(_0x399e19===_0x520b95)break;else _0x50b603['push'](_0x50b603['shift']());}catch(_0x25ebaf){_0x50b603['push'](_0x50b603['shift']());}}}(a88_0x1470,0xded4f));function hasWildcard(_0x323097){const _0x5e6b4a=a88_0x2bd2;return _0x323097[_0x5e6b4a(0x16b)]('*')||_0x323097[_0x5e6b4a(0x16b)]('?');}export function parseTableReference(_0x4800fa){const _0x281396=a88_0x2bd2;if(!_0x4800fa||_0x4800fa[_0x281396(0x17d)]()[_0x281396(0x16f)]===0x0)throw new Error(_0x281396(0x170));const _0x72bb76=_0x4800fa[_0x281396(0x17d)](),_0x3f1f02={'original':_0x72bb76},_0x32773c=_0x72bb76[_0x281396(0x177)]('.');if(_0x32773c[_0x281396(0x16f)]===0x1){const _0x217aae=_0x32773c[0x0];if(!_0x217aae)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x3f1f02['table']=_0x217aae;}else{if(_0x32773c[_0x281396(0x16f)]===0x2){const [_0x3d71c7,_0x19b03f]=_0x32773c;if(!_0x3d71c7)throw new Error(_0x281396(0x176));if(!_0x19b03f)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3f1f02[_0x281396(0x172)]=_0x3d71c7,_0x3f1f02[_0x281396(0x171)]=_0x19b03f;}else{if(_0x32773c['length']===0x3){const [_0x4f4089,_0xeb5f02,_0x1652de]=_0x32773c;if(!_0x4f4089||!_0xeb5f02||!_0x1652de)throw new Error(_0x281396(0x17f));_0x3f1f02[_0x281396(0x17a)]=_0x4f4089,_0x3f1f02[_0x281396(0x172)]=_0xeb5f02,_0x3f1f02[_0x281396(0x171)]=_0x1652de;}else throw new Error(_0x281396(0x181));}}return _0x3f1f02;}export function formatTableReference(_0x46811e){const _0x5b6f8c=a88_0x2bd2,_0x6de60c=[];return _0x46811e[_0x5b6f8c(0x17a)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x17a)]),_0x46811e[_0x5b6f8c(0x172)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x172)]),_0x46811e[_0x5b6f8c(0x171)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x171)]),_0x6de60c[_0x5b6f8c(0x16a)]('.');}export function validateTableListReference(_0x2d5f29){return undefined;}function a88_0x1470(){const _0x1301c5=['237845yjnBNU','join','includes','1739896blqmqO','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','33578010caiiSY','length','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','57582zAaEII','68mnivyS','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','49RtYukO','3144224xDKeFs','catalog','27cZcOsw','947718tIiZWp','trim','push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','988547BVjsYg','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)'];a88_0x1470=function(){return _0x1301c5;};return a88_0x1470();}export function validateTableDescribeReference(_0x5720fe){const _0x596f1c=a88_0x2bd2;if(!_0x5720fe[_0x596f1c(0x171)])return _0x596f1c(0x173);if(_0x5720fe[_0x596f1c(0x172)]&&hasWildcard(_0x5720fe[_0x596f1c(0x172)]))return _0x596f1c(0x16d);if(hasWildcard(_0x5720fe[_0x596f1c(0x171)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x4a091d=a89_0x3e19;(function(_0x2f5293,_0x43031e){const _0x30d054=a89_0x3e19,_0x1de929=_0x2f5293();while(!![]){try{const _0x3ebf30=-parseInt(_0x30d054(0x178))/0x1+-parseInt(_0x30d054(0x16c))/0x2*(-parseInt(_0x30d054(0x1a1))/0x3)+-parseInt(_0x30d054(0x166))/0x4+parseInt(_0x30d054(0x189))/0x5*(-parseInt(_0x30d054(0x175))/0x6)+-parseInt(_0x30d054(0x196))/0x7*(-parseInt(_0x30d054(0x1a4))/0x8)+-parseInt(_0x30d054(0x169))/0x9+-parseInt(_0x30d054(0x19c))/0xa*(-parseInt(_0x30d054(0x173))/0xb);if(_0x3ebf30===_0x43031e)break;else _0x1de929['push'](_0x1de929['shift']());}catch(_0x374c52){_0x1de929['push'](_0x1de929['shift']());}}}(a89_0x42d0,0x5fe7e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a89_0x42d0(){const _0x1565c6=['message','tdx-','mtime','toISOString','ERROR','write','cause','182xpBGUK','logStream','info','.gz','fileOnly','getMinutes','30vmmzON','red','Warning:\x20Error\x20writing\x20to\x20tdx.log:','.log','padStart','1533dzLITF','getHours','error','205528wjwnpf','gray','close','1218316jesBgb','tdx.log','TRACE','2593512CKrAxD','map','getMonth','1898QKXxQK','getSeconds','logLevel','includes','rotateOldLogs','WARN','test','4172179lpZQqV','.cache','5298UPBpUJ','logs','getDate','758618bzIzbl','Warning:\x20Failed\x20to\x20compress\x20','trace','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','warn','Proxy\x20session\x20ended','toString','stack','DEBUG','tdx','log','abs','floor','split','getTimezoneOffset','getMilliseconds','name','3095ZHUxHC','debug','INFO','logDir','getLogPath','end'];a89_0x42d0=function(){return _0x1565c6;};return a89_0x42d0();}function a89_0x3e19(_0x92738,_0x45235d){const _0x42d0d2=a89_0x42d0();return a89_0x3e19=function(_0x3e19c1,_0x3b5f8e){_0x3e19c1=_0x3e19c1-0x166;let _0x55456f=_0x42d0d2[_0x3e19c1];return _0x55456f;},a89_0x3e19(_0x92738,_0x45235d);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x4e5053 from'chalk';function safeStringify(_0xdba028){const _0x2f6629=a89_0x3e19;if(typeof _0xdba028==='string')return _0xdba028;if(_0xdba028 instanceof Error)return _0xdba028[_0x2f6629(0x17f)]||_0xdba028[_0x2f6629(0x188)]+':\x20'+_0xdba028[_0x2f6629(0x18f)];try{return JSON['stringify'](_0xdba028,(_0x5429a2,_0x3f12ef)=>{const _0x2d8526=_0x2f6629;if(_0x3f12ef instanceof Error)return{'name':_0x3f12ef[_0x2d8526(0x188)],'message':_0x3f12ef['message'],'stack':_0x3f12ef[_0x2d8526(0x17f)],'cause':_0x3f12ef[_0x2d8526(0x195)]};return _0x3f12ef;});}catch{return String(_0xdba028);}}function getTimezoneOffset(){const _0x1f7238=a89_0x3e19,_0x412321=-new Date()[_0x1f7238(0x186)](),_0x4df58d=Math[_0x1f7238(0x184)](Math['abs'](_0x412321)/0x3c),_0x2867ed=Math[_0x1f7238(0x183)](_0x412321)%0x3c,_0x2efacf=_0x412321>=0x0?'+':'-';return''+_0x2efacf+_0x4df58d[_0x1f7238(0x17e)]()['padStart'](0x2,'0')+_0x2867ed[_0x1f7238(0x17e)]()[_0x1f7238(0x1a0)](0x2,'0');}function formatTimestamp(){const _0x3bee6f=a89_0x3e19,_0x5b7b15=new Date(),_0x1bdca7=_0x5b7b15['getFullYear'](),_0x3afd9f=(_0x5b7b15[_0x3bee6f(0x16b)]()+0x1)['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0x226c61=_0x5b7b15[_0x3bee6f(0x177)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x243b73=_0x5b7b15[_0x3bee6f(0x1a2)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xaf31bc=_0x5b7b15[_0x3bee6f(0x19b)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x308c1c=_0x5b7b15[_0x3bee6f(0x16d)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xce8571=_0x5b7b15[_0x3bee6f(0x187)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x3,'0'),_0x450f1b=getTimezoneOffset();return _0x1bdca7+'-'+_0x3afd9f+'-'+_0x226c61+'\x20'+_0x243b73+':'+_0xaf31bc+':'+_0x308c1c+'.'+_0xce8571+_0x450f1b;}function formatColoredLogEntry(_0x5157db,_0xf9cb5b){const _0x51c0f2=a89_0x3e19,_0x2e9d7a=formatTimestamp(),_0x153409=_0xf9cb5b[_0x51c0f2(0x16a)](safeStringify)['join']('\x20'),_0x571e41=a89_0x4e5053[_0x51c0f2(0x1a5)](_0x2e9d7a);let _0x403088;switch(_0x5157db){case _0x51c0f2(0x198):_0x403088=a89_0x4e5053['cyan']('['+_0x5157db+']\x20');break;case _0x51c0f2(0x17c):_0x403088=a89_0x4e5053['yellow']('['+_0x5157db+']\x20');break;case'error':_0x403088=a89_0x4e5053[_0x51c0f2(0x19d)]('['+_0x5157db+']');break;case _0x51c0f2(0x18a):_0x403088=a89_0x4e5053[_0x51c0f2(0x1a5)]('['+_0x5157db+']');break;default:_0x403088='['+_0x5157db+']';}return _0x571e41+'\x20'+_0x403088+'\x20'+_0x153409;}export var LogLevel;(function(_0x206fa3){const _0xd293b1=a89_0x3e19;_0x206fa3[_0x206fa3[_0xd293b1(0x168)]=-0x2]='TRACE',_0x206fa3[_0x206fa3[_0xd293b1(0x180)]=-0x1]=_0xd293b1(0x180),_0x206fa3[_0x206fa3[_0xd293b1(0x18b)]=0x0]=_0xd293b1(0x18b),_0x206fa3[_0x206fa3[_0xd293b1(0x171)]=0x1]=_0xd293b1(0x171),_0x206fa3[_0x206fa3['ERROR']=0x2]=_0xd293b1(0x193);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x4a091d(0x197)];[a89_0x4a091d(0x18c)];[a89_0x4a091d(0x16e)];['fileOnly'];constructor(_0x421508=LogLevel[a89_0x4a091d(0x18b)],_0x3d28e3=![]){const _0x3eae98=a89_0x4a091d;this[_0x3eae98(0x18c)]=join(homedir(),_0x3eae98(0x174),_0x3eae98(0x181),_0x3eae98(0x176)),this['logLevel']=_0x421508,this['fileOnly']=_0x3d28e3;}async['init'](){const _0x416534=a89_0x4a091d;try{await mkdir(this[_0x416534(0x18c)],{'recursive':!![]}),await this[_0x416534(0x170)]();const _0x2621e1=join(this[_0x416534(0x18c)],_0x416534(0x167));this[_0x416534(0x197)]=createWriteStream(_0x2621e1,{'flags':'a'}),this[_0x416534(0x197)]['on'](_0x416534(0x1a3),_0xe593a3=>{const _0x381c85=_0x416534;console[_0x381c85(0x1a3)](_0x381c85(0x19e),_0xe593a3[_0x381c85(0x18f)]);});}catch(_0x4eb46c){console[_0x416534(0x1a3)](_0x416534(0x17b),_0x4eb46c);}}async[a89_0x4a091d(0x170)](){const _0x22671c=a89_0x4a091d;try{const _0x1d75d4=await readdir(this['logDir']),_0x4b58f=new Date()[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x1d75d4[_0x22671c(0x16f)](_0x22671c(0x167))){const _0x18eb8f=join(this['logDir'],_0x22671c(0x167)),_0x2f7235=await stat(_0x18eb8f),_0x354f27=new Date(_0x2f7235[_0x22671c(0x191)])[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x354f27<_0x4b58f){const _0x3d14f4=join(this['logDir'],_0x22671c(0x190)+_0x354f27+_0x22671c(0x19f));await rename(_0x18eb8f,_0x3d14f4);}}const _0x3ccf2f=await readdir(this[_0x22671c(0x18c)]),_0x1d3954=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x9c5ec=_0x3ccf2f['filter'](_0x36f54e=>_0x1d3954[_0x22671c(0x172)](_0x36f54e));for(const _0x34ea0d of _0x9c5ec){const _0xf4abfd=join(this[_0x22671c(0x18c)],_0x34ea0d),_0x48592c=join(this['logDir'],_0x34ea0d+_0x22671c(0x199));try{await pipeline(createReadStream(_0xf4abfd),createGzip(),createWriteStream(_0x48592c)),await unlink(_0xf4abfd);}catch(_0x49dd7e){console[_0x22671c(0x1a3)](_0x22671c(0x179)+_0x34ea0d+':',_0x49dd7e);}}}catch{}}[a89_0x4a091d(0x18a)](..._0x2bf9df){const _0x1a16e2=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x1a16e2(0x180)])return;const _0x1202ba=formatColoredLogEntry(_0x1a16e2(0x18a),_0x2bf9df);this[_0x1a16e2(0x197)]?.[_0x1a16e2(0x194)](_0x1202ba+'\x0a');}[a89_0x4a091d(0x17a)](..._0x1e2a31){const _0x41f5c9=a89_0x4a091d;if(this[_0x41f5c9(0x16e)]>LogLevel['TRACE'])return;const _0x578e1f=formatColoredLogEntry(_0x41f5c9(0x17a),_0x1e2a31);this['logStream']?.['write'](_0x578e1f+'\x0a');}[a89_0x4a091d(0x198)](..._0x5a2d64){const _0x13fa88=a89_0x4a091d;if(this[_0x13fa88(0x16e)]>LogLevel[_0x13fa88(0x18b)])return;const _0x155f3e=formatColoredLogEntry(_0x13fa88(0x198),_0x5a2d64);!this['fileOnly']&&console[_0x13fa88(0x182)](_0x155f3e),this[_0x13fa88(0x197)]?.[_0x13fa88(0x194)](_0x155f3e+'\x0a');}['warn'](..._0x21e628){const _0x497a7e=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x497a7e(0x171)])return;const _0x50407d=formatColoredLogEntry(_0x497a7e(0x17c),_0x21e628);!this[_0x497a7e(0x19a)]&&console[_0x497a7e(0x1a3)](_0x50407d),this[_0x497a7e(0x197)]?.[_0x497a7e(0x194)](_0x50407d+'\x0a');}['error'](..._0x302cc7){const _0xacee0d=a89_0x4a091d,_0x27a58e=formatColoredLogEntry(_0xacee0d(0x1a3),_0x302cc7);!this[_0xacee0d(0x19a)]&&console[_0xacee0d(0x1a3)](_0x27a58e),this['logStream']?.[_0xacee0d(0x194)](_0x27a58e+'\x0a');}async[a89_0x4a091d(0x1a6)](){const _0x447c5b=a89_0x4a091d;return this[_0x447c5b(0x198)](_0x447c5b(0x17d)),new Promise(_0x224b84=>{const _0x1a7dce=_0x447c5b;this['logStream']?this[_0x1a7dce(0x197)][_0x1a7dce(0x18e)](()=>{_0x224b84();}):_0x224b84();});}[a89_0x4a091d(0x18d)](){const _0x2db494=a89_0x4a091d;return join(this['logDir'],_0x2db494(0x167));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51e1a0,_0x364e8d){const _0x4ed0e0=a90_0x4a41,_0x2bc3f2=_0x51e1a0();while(!![]){try{const _0x7f6d93=parseInt(_0x4ed0e0(0x1bf))/0x1+-parseInt(_0x4ed0e0(0x1be))/0x2+parseInt(_0x4ed0e0(0x1b4))/0x3+-parseInt(_0x4ed0e0(0x1b7))/0x4*(parseInt(_0x4ed0e0(0x1cc))/0x5)+parseInt(_0x4ed0e0(0x1d0))/0x6*(parseInt(_0x4ed0e0(0x1b0))/0x7)+parseInt(_0x4ed0e0(0x1ae))/0x8*(parseInt(_0x4ed0e0(0x1bd))/0x9)+-parseInt(_0x4ed0e0(0x1ce))/0xa*(parseInt(_0x4ed0e0(0x1c9))/0xb);if(_0x7f6d93===_0x364e8d)break;else _0x2bc3f2['push'](_0x2bc3f2['shift']());}catch(_0x4dec9c){_0x2bc3f2['push'](_0x2bc3f2['shift']());}}}(a90_0x2a54,0xb19c0));function a90_0x2a54(){const _0x5b2981=['population','map','210195nyAxdo','1970556ESctFn','211027KtVDNV','join','name','showTreeLines','icon','segmentCount','segment','\x20\x20\x20','folderCount','\x20\x20\x20\x20','15466935djldjt','localeCompare','length','186715rYlWVT','🎯\x20','10tRFwct','(empty)','96xOGePM','type','392OBVxvz','metadata','626787WhMLtO','children','folder','├──\x20','2672754zmMEpH','push','\x20folder','60ZzxqME','showIcons','dim','sort'];a90_0x2a54=function(){return _0x5b2981;};return a90_0x2a54();}import{formatRows}from'./formatters.js';function a90_0x4a41(_0x264912,_0x55b528){const _0x2a54af=a90_0x2a54();return a90_0x4a41=function(_0x4a4128,_0x5e5de6){_0x4a4128=_0x4a4128-0x1ae;let _0x7041db=_0x2a54af[_0x4a4128];return _0x7041db;},a90_0x4a41(_0x264912,_0x55b528);}import a90_0x578692 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x5582cb,_0x391835={},_0x1402b5=0x0,_0x224caf=''){const _0x5e1fa5=a90_0x4a41,_0x3990dd={...DEFAULT_OPTIONS,..._0x391835},_0x1ec065=[],_0x5f4b46=[..._0x5582cb][_0x5e1fa5(0x1ba)]((_0x5326fd,_0x221fc8)=>_0x5326fd[_0x5e1fa5(0x1c1)][_0x5e1fa5(0x1ca)](_0x221fc8[_0x5e1fa5(0x1c1)]));for(let _0xf3f7eb=0x0;_0xf3f7eb<_0x5f4b46[_0x5e1fa5(0x1cb)];_0xf3f7eb++){const _0x472f3b=_0x5f4b46[_0xf3f7eb],_0x4070fa=_0xf3f7eb===_0x5f4b46['length']-0x1;let _0x404f16='';_0x1402b5>0x0&&(_0x404f16+=_0x224caf);_0x3990dd[_0x5e1fa5(0x1c2)]&&_0x1402b5>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)](_0x4070fa?'└──\x20':_0x5e1fa5(0x1b3)));_0x3990dd['showIcons']&&(_0x404f16+=_0x472f3b['type']===_0x5e1fa5(0x1b2)?'📁\x20':_0x5e1fa5(0x1cd));_0x404f16+=_0x472f3b[_0x5e1fa5(0x1c1)];if(_0x3990dd['showMetadata']){if(_0x472f3b[_0x5e1fa5(0x1d1)]===_0x5e1fa5(0x1b2)){const _0x3286db=[];_0x472f3b['metadata'][_0x5e1fa5(0x1c4)]&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]+'\x20segment'+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]!==0x1?'s':'')),_0x472f3b['metadata']['folderCount']&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]+_0x5e1fa5(0x1b6)+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]!==0x1?'s':'')),_0x3286db[_0x5e1fa5(0x1cb)]>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+_0x3286db[_0x5e1fa5(0x1c0)](',\x20')+')'));}else _0x472f3b['type']===_0x5e1fa5(0x1c5)&&_0x472f3b['population']!==undefined&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+formatRows(_0x472f3b[_0x5e1fa5(0x1bb)])+')'));}_0x1ec065[_0x5e1fa5(0x1b5)](_0x404f16);if(_0x472f3b[_0x5e1fa5(0x1b1)]&&_0x472f3b[_0x5e1fa5(0x1b1)]['length']>0x0){let _0x1349a9;if(_0x1402b5===0x0)_0x1349a9='';else _0x3990dd[_0x5e1fa5(0x1c2)]?_0x1349a9=_0x224caf+(_0x4070fa?_0x5e1fa5(0x1c8):a90_0x578692[_0x5e1fa5(0x1b9)]('│')+_0x5e1fa5(0x1c6)):_0x1349a9=_0x224caf+_0x3990dd['indent'];const _0x3f2537=formatTree(_0x472f3b[_0x5e1fa5(0x1b1)],_0x3990dd,_0x1402b5+0x1,_0x1349a9);_0x1ec065['push'](_0x3f2537);}}return _0x1ec065['join']('\x0a');}export function formatFlatList(_0xaa585e,_0x38a139,_0x34a4c8={}){const _0x59929e=a90_0x4a41,_0x14a12e={...DEFAULT_OPTIONS,..._0x34a4c8},_0x4d89db=[];for(const _0x5c2e80 of _0xaa585e){_0x4d89db[_0x59929e(0x1b5)]({'name':_0x5c2e80['name'],'icon':_0x14a12e['showIcons']?'📁':'','metadata':undefined});}for(const _0x33e24c of _0x38a139){const _0x18a4c7=_0x14a12e['showMetadata']&&_0x33e24c['population']!==undefined?a90_0x578692[_0x59929e(0x1b9)]('\x20('+formatRows(_0x33e24c[_0x59929e(0x1bb)])+')'):'';_0x4d89db[_0x59929e(0x1b5)]({'name':_0x33e24c[_0x59929e(0x1c1)],'icon':_0x14a12e[_0x59929e(0x1b8)]?'🎯':'','metadata':_0x18a4c7});}_0x4d89db['sort']((_0xc7eb46,_0xbe2ca6)=>_0xc7eb46[_0x59929e(0x1c1)]['localeCompare'](_0xbe2ca6[_0x59929e(0x1c1)]));if(_0x4d89db[_0x59929e(0x1cb)]===0x0)return _0x59929e(0x1cf);const _0x26093b=_0x4d89db[_0x59929e(0x1bc)](_0x5a9fef=>{const _0x317dd9=_0x59929e,_0x10e940=_0x5a9fef[_0x317dd9(0x1c3)]?_0x5a9fef[_0x317dd9(0x1c3)]+'\x20':'',_0x45bc44=_0x5a9fef[_0x317dd9(0x1af)]||'';return''+_0x10e940+_0x5a9fef['name']+_0x45bc44;});return _0x26093b[_0x59929e(0x1c0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x6afa3b=a91_0x2197;function a91_0x4aa6(){const _0x19cbb4=['8749806yZZSHN','now','5aXpYbZ','getTime','statusCode','6pwMzjL','gray','1080557bGnRsO','\x0aUpdate\x20available:\x20','67330IvCQTm','toISOString','2077446YsGgIp','env','12119346XKSXeo','data','latestVersion','utf-8','3566584AFCEIY','Update\x20available:','currentVersion','66EFlEWs','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','isTTY','end','https://registry.npmjs.org/@treasuredata/tdx/latest','stderr','yellow','lastCheck','2vdAEHo','green','93364yixRMy','last_version_check','Run:','version','error','stringify','dim','updateAvailable','\x0aRun:\x20','NO_COLOR','parse'];a91_0x4aa6=function(){return _0x19cbb4;};return a91_0x4aa6();}(function(_0x2423ab,_0x450588){const _0x2f2197=a91_0x2197,_0x3bf1fa=_0x2423ab();while(!![]){try{const _0x39484a=-parseInt(_0x2f2197(0x193))/0x1*(-parseInt(_0x2f2197(0x17f))/0x2)+-parseInt(_0x2f2197(0x191))/0x3*(parseInt(_0x2f2197(0x181))/0x4)+-parseInt(_0x2f2197(0x18e))/0x5*(parseInt(_0x2f2197(0x18c))/0x6)+parseInt(_0x2f2197(0x197))/0x7+-parseInt(_0x2f2197(0x173))/0x8+parseInt(_0x2f2197(0x199))/0x9+parseInt(_0x2f2197(0x195))/0xa*(-parseInt(_0x2f2197(0x176))/0xb);if(_0x39484a===_0x450588)break;else _0x3bf1fa['push'](_0x3bf1fa['shift']());}catch(_0x55d4ea){_0x3bf1fa['push'](_0x3bf1fa['shift']());}}}(a91_0x4aa6,0xb2e35));function a91_0x2197(_0x40dfa7,_0x12fc36){const _0x4aa6de=a91_0x4aa6();return a91_0x2197=function(_0x2197ed,_0x18c6e0){_0x2197ed=_0x2197ed-0x171;let _0x2f9cec=_0x4aa6de[_0x2197ed];return _0x2f9cec;},a91_0x2197(_0x40dfa7,_0x12fc36);}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a91_0x4ce1fe from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x6afa3b(0x17b),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x43df61=a91_0x6afa3b,_0x2d58f5=getCacheDir();return join(_0x2d58f5,_0x43df61(0x182));}function readCache(){const _0x4e0084=a91_0x6afa3b;try{const _0xff3a56=getCacheFilePath(),_0x4684fd=readFileSync(_0xff3a56,_0x4e0084(0x172));return JSON[_0x4e0084(0x18b)](_0x4684fd);}catch{return null;}}function writeCache(_0x30b4e8){const _0x3adbf2=a91_0x6afa3b;try{const _0x3c5306=getCacheDir();mkdirSync(_0x3c5306,{'recursive':!![]});const _0x2e42f6={'lastCheck':new Date()[_0x3adbf2(0x196)](),'latestVersion':_0x30b4e8},_0x2266d1=getCacheFilePath();writeFileSync(_0x2266d1,JSON[_0x3adbf2(0x186)](_0x2e42f6,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x2d5b88){const _0x1411cc=a91_0x6afa3b;if(!_0x2d5b88)return![];const _0x11935a=new Date(_0x2d5b88[_0x1411cc(0x17e)])[_0x1411cc(0x18f)](),_0x4a9d2d=Date[_0x1411cc(0x18d)]();return _0x4a9d2d-_0x11935a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1a7540,_0x4c6fe3)=>{const _0xb6292e=a91_0x2197,_0x52db33=get(NPM_REGISTRY_URL,_0x43dd89=>{const _0x3eb8ff=a91_0x2197;if(_0x43dd89[_0x3eb8ff(0x190)]!==0xc8){clearTimeout(_0x5b73bb),_0x4c6fe3(new Error('HTTP\x20'+_0x43dd89[_0x3eb8ff(0x190)]));return;}let _0x508238='';_0x43dd89['on'](_0x3eb8ff(0x19a),_0x3a6264=>{_0x508238+=_0x3a6264;}),_0x43dd89['on'](_0x3eb8ff(0x17a),()=>{const _0x2638bf=_0x3eb8ff;clearTimeout(_0x5b73bb);try{const _0x5f1d52=JSON[_0x2638bf(0x18b)](_0x508238);if(!valid(_0x5f1d52['version'])){_0x4c6fe3(new Error('Invalid\x20version\x20format'));return;}_0x1a7540(_0x5f1d52[_0x2638bf(0x184)]);}catch(_0x42451b){_0x4c6fe3(_0x42451b);}});})['on'](_0xb6292e(0x185),_0x241106=>{clearTimeout(_0x5b73bb),_0x4c6fe3(_0x241106);}),_0x5b73bb=setTimeout(()=>{_0x52db33['destroy'](),_0x4c6fe3(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4d4e36){const _0x4518f3=a91_0x6afa3b;try{const _0x21d9a2=readCache();if(isCacheValid(_0x21d9a2)){const _0xab8756=gt(_0x21d9a2[_0x4518f3(0x171)],_0x4d4e36);return{'updateAvailable':_0xab8756,'currentVersion':_0x4d4e36,'latestVersion':_0x21d9a2['latestVersion']};}const _0x4c8d93=await fetchLatestVersion();writeCache(_0x4c8d93);const _0x5e2619=gt(_0x4c8d93,_0x4d4e36);return{'updateAvailable':_0x5e2619,'currentVersion':_0x4d4e36,'latestVersion':_0x4c8d93};}catch{return null;}}export function displayUpdateNotification(_0x19dfdf){const _0x55e1e5=a91_0x6afa3b;if(!_0x19dfdf[_0x55e1e5(0x188)])return;const _0x2c2d55=process[_0x55e1e5(0x17c)][_0x55e1e5(0x179)]&&!process[_0x55e1e5(0x198)][_0x55e1e5(0x18a)],_0x367e50=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x192)]('→'):'→',_0x32cdf2=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x187)](_0x19dfdf[_0x55e1e5(0x175)]):_0x19dfdf[_0x55e1e5(0x175)],_0x216620=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x180)](_0x19dfdf[_0x55e1e5(0x171)]):_0x19dfdf[_0x55e1e5(0x171)],_0x5dc3c6=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x177)](_0x55e1e5(0x178)):_0x55e1e5(0x178),_0x44060e=_0x2c2d55?'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x17d)](_0x55e1e5(0x174))+'\x20'+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x187)](_0x55e1e5(0x183))+'\x20'+_0x5dc3c6+'\x0a':_0x55e1e5(0x194)+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+_0x55e1e5(0x189)+_0x5dc3c6+'\x0a';process['stderr']['write'](_0x44060e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a92_0x7f63(_0x19dad2,_0x3ae822){const _0x1d1956=a92_0x1d19();return a92_0x7f63=function(_0x7f6388,_0xed2c5d){_0x7f6388=_0x7f6388-0x76;let _0x74c66d=_0x1d1956[_0x7f6388];return _0x74c66d;},a92_0x7f63(_0x19dad2,_0x3ae822);}const a92_0x5e88db=a92_0x7f63;(function(_0x12a2d1,_0x1744ca){const _0x4e0a95=a92_0x7f63,_0x31e687=_0x12a2d1();while(!![]){try{const _0x4dd42d=-parseInt(_0x4e0a95(0x7e))/0x1+-parseInt(_0x4e0a95(0x83))/0x2+parseInt(_0x4e0a95(0x78))/0x3*(-parseInt(_0x4e0a95(0x80))/0x4)+-parseInt(_0x4e0a95(0x76))/0x5*(parseInt(_0x4e0a95(0x7c))/0x6)+-parseInt(_0x4e0a95(0x82))/0x7*(-parseInt(_0x4e0a95(0x77))/0x8)+parseInt(_0x4e0a95(0x79))/0x9+-parseInt(_0x4e0a95(0x81))/0xa*(-parseInt(_0x4e0a95(0x7b))/0xb);if(_0x4dd42d===_0x1744ca)break;else _0x31e687['push'](_0x31e687['shift']());}catch(_0x5e014b){_0x31e687['push'](_0x31e687['shift']());}}}(a92_0x1d19,0x972e5));export const WORKFLOW_FILE_EXTENSION=a92_0x5e88db(0x7d);export function shouldIncludeInArchive(_0x46691b){const _0x4abb57=a92_0x5e88db;if(_0x46691b===_0x4abb57(0x7a))return!![];if(_0x46691b[_0x4abb57(0x7f)]('.'))return![];return!![];}function a92_0x1d19(){const _0x213f41=['104jQGMab','15IevqEk','9350163EqmIIp','.digdag','46354TCHrBB','54JNFwxz','.dig','649090YyKSFz','startsWith','323740mfgaho','290YGWPvZ','534583HckIFa','870160RrCpvt','25460YnaWQu'];a92_0x1d19=function(){return _0x213f41;};return a92_0x1d19();}
|