@treasuredata/tdx 0.3.5 → 0.4.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/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/http-client.d.ts +4 -0
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/http-client.js.map +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.d.ts +9 -0
- package/dist/commands/auth-command.d.ts.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/command.d.ts +5 -0
- 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/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.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.d.ts +25 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/credential-cache.d.ts +35 -0
- package/dist/core/credential-cache.d.ts.map +1 -0
- package/dist/core/credential-cache.js +1 -0
- package/dist/core/credential-cache.js.map +1 -0
- package/dist/core/global-context.d.ts +19 -0
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.d.ts +38 -0
- package/dist/core/keychain.d.ts.map +1 -0
- package/dist/core/keychain.js +1 -0
- package/dist/core/keychain.js.map +1 -0
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +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/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/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/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 +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a71_0x128d(){const _0x1557d6=['5351cQhdNd','28gYLIKT','code','Failed\x20to\x20load\x20JSON:\x20','Permission\x20denied\x20reading\x20file:\x20','File\x20not\x20found:\x20','52AcqsIn','2479990HmOwVK','5283084eSfCam','INTERNAL','1206608agTSYJ','2254359AmFOFP','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','\x27:\x20','88945QnDBQH','ENOENT','Invalid\x20JSON\x20string:\x20','1955940xoIXTc','63FeNgtb','parse','utf-8'];a71_0x128d=function(){return _0x1557d6;};return a71_0x128d();}(function(_0x21c3cf,_0x43907c){const _0x561278=a71_0x32c3,_0x6d629d=_0x21c3cf();while(!![]){try{const _0x1fdf23=-parseInt(_0x561278(0x1bd))/0x1*(-parseInt(_0x561278(0x1c3))/0x2)+-parseInt(_0x561278(0x1c8))/0x3+parseInt(_0x561278(0x1be))/0x4*(parseInt(_0x561278(0x1cd))/0x5)+-parseInt(_0x561278(0x1c5))/0x6+parseInt(_0x561278(0x1b9))/0x7+-parseInt(_0x561278(0x1c7))/0x8+-parseInt(_0x561278(0x1ba))/0x9*(-parseInt(_0x561278(0x1c4))/0xa);if(_0x1fdf23===_0x43907c)break;else _0x6d629d['push'](_0x6d629d['shift']());}catch(_0x24a990){_0x6d629d['push'](_0x6d629d['shift']());}}}(a71_0x128d,0x7928d));function a71_0x32c3(_0x3d0be7,_0x12ac29){const _0x128dd0=a71_0x128d();return a71_0x32c3=function(_0x32c396,_0x451755){_0x32c396=_0x32c396-0x1b8;let _0x1db680=_0x128dd0[_0x32c396];return _0x1db680;},a71_0x32c3(_0x3d0be7,_0x12ac29);}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x111a55,_0x6fb591){const _0x4285e1=a71_0x32c3;try{if(_0x6fb591){const _0x544569=await readFile(_0x111a55,_0x4285e1(0x1bc));try{return JSON[_0x4285e1(0x1bb)](_0x544569);}catch(_0x44ba84){throw new SDKError(ErrorCode[_0x4285e1(0x1c9)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x111a55+_0x4285e1(0x1cc)+(_0x44ba84 instanceof Error?_0x44ba84[_0x4285e1(0x1cb)]:String(_0x44ba84)));}}else try{return JSON['parse'](_0x111a55);}catch(_0x5ce7af){throw new SDKError(ErrorCode[_0x4285e1(0x1c9)],_0x4285e1(0x1b8)+(_0x5ce7af instanceof Error?_0x5ce7af[_0x4285e1(0x1cb)]:String(_0x5ce7af)));}}catch(_0x2e1562){if(_0x2e1562 instanceof SDKError)throw _0x2e1562;if(_0x2e1562 instanceof Error&&_0x4285e1(0x1bf)in _0x2e1562){const _0x4d735d=_0x2e1562;if(_0x4d735d['code']===_0x4285e1(0x1ce))throw new SDKError(ErrorCode['NOT_FOUND'],_0x4285e1(0x1c2)+_0x111a55);else{if(_0x4d735d[_0x4285e1(0x1bf)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4285e1(0x1c1)+_0x111a55);}}throw new SDKError(ErrorCode[_0x4285e1(0x1c6)],_0x4285e1(0x1c0)+(_0x2e1562 instanceof Error?_0x2e1562[_0x4285e1(0x1cb)]:String(_0x2e1562)));}}export async function loadJSONFromOptions(_0x5d6c07,_0x3176d9){const _0x73ca0b=a71_0x32c3;if(_0x5d6c07&&_0x3176d9)throw new SDKError(ErrorCode[_0x73ca0b(0x1c9)],_0x73ca0b(0x1ca));if(_0x5d6c07)return await loadJSON(_0x5d6c07,![]);if(_0x3176d9)return await loadJSON(_0x3176d9,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x11f1(_0x45ad67,_0x516407){const _0x23d7f6=a72_0x23d7();return a72_0x11f1=function(_0x11f182,_0x3fe8a6){_0x11f182=_0x11f182-0x139;let _0xcd3c03=_0x23d7f6[_0x11f182];return _0xcd3c03;},a72_0x11f1(_0x45ad67,_0x516407);}(function(_0xef8956,_0x45f600){const _0x52ce10=a72_0x11f1,_0x2be8a8=_0xef8956();while(!![]){try{const _0x448aab=parseInt(_0x52ce10(0x13f))/0x1+-parseInt(_0x52ce10(0x141))/0x2*(-parseInt(_0x52ce10(0x13c))/0x3)+-parseInt(_0x52ce10(0x142))/0x4+-parseInt(_0x52ce10(0x140))/0x5+-parseInt(_0x52ce10(0x13e))/0x6+parseInt(_0x52ce10(0x13b))/0x7+-parseInt(_0x52ce10(0x13a))/0x8*(-parseInt(_0x52ce10(0x139))/0x9);if(_0x448aab===_0x45f600)break;else _0x2be8a8['push'](_0x2be8a8['shift']());}catch(_0x28f0df){_0x2be8a8['push'](_0x2be8a8['shift']());}}}(a72_0x23d7,0x91a4d));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':'claude-4.5-sonnet'};function a72_0x23d7(){const _0x4ab580=['1246833MVPzdb','32KfdLyQ','4107131TJjqso','3rIEwNx','match','5684322QdQiYQ','1113280KRNvVy','2056255tjdpxG','1269638lljiHM','3735140kpwOOa'];a72_0x23d7=function(){return _0x4ab580;};return a72_0x23d7();}export function extractModelAlias(_0x4ebe9f){const _0x8e7ae1=a72_0x11f1,_0x5bad19=_0x4ebe9f[_0x8e7ae1(0x13d)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x5bad19)return _0x5bad19[0x1]['toLowerCase']();return _0x4ebe9f;}export function resolveModelAlias(_0x4d7649){return MODEL_ALIASES[_0x4d7649['toLowerCase']()]||_0x4d7649;}export function getModelAliases(){return{...MODEL_ALIASES};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a73_0xc3f9(){const _0x4af8f1=['Invalid\x20limit\x20value:\x20','2007408jITWXE','.\x20Must\x20be\x20an\x20integer.','2591343zYlNxH','30oVQWYD','1550312RNorgq','Invalid\x20timeout\x20value:\x20','41555yZlmFA','14ldVnvC','354588peXsaH','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20number.','20046356uzCbDL','isInteger','number','18sOZnsh','398847PuwukF','14vvcGLn'];a73_0xc3f9=function(){return _0x4af8f1;};return a73_0xc3f9();}function a73_0xa5c6(_0x5614a9,_0x5d1014){const _0xc3f9cd=a73_0xc3f9();return a73_0xa5c6=function(_0xa5c6ae,_0x4b84b2){_0xa5c6ae=_0xa5c6ae-0xf4;let _0x5c031c=_0xc3f9cd[_0xa5c6ae];return _0x5c031c;},a73_0xa5c6(_0x5614a9,_0x5d1014);}(function(_0x328626,_0x30d2e0){const _0x5a067b=a73_0xa5c6,_0x1e2bd9=_0x328626();while(!![]){try{const _0x306254=-parseInt(_0x5a067b(0xf9))/0x1+-parseInt(_0x5a067b(0x101))/0x2*(parseInt(_0x5a067b(0x100))/0x3)+-parseInt(_0x5a067b(0x103))/0x4+parseInt(_0x5a067b(0xf7))/0x5*(parseInt(_0x5a067b(0xff))/0x6)+parseInt(_0x5a067b(0xf8))/0x7*(-parseInt(_0x5a067b(0xf5))/0x8)+-parseInt(_0x5a067b(0x105))/0x9*(-parseInt(_0x5a067b(0xf4))/0xa)+parseInt(_0x5a067b(0xfc))/0xb;if(_0x306254===_0x30d2e0)break;else _0x1e2bd9['push'](_0x1e2bd9['shift']());}catch(_0x20f16b){_0x1e2bd9['push'](_0x1e2bd9['shift']());}}}(a73_0xc3f9,0x82f81));export function validateLimitOption(_0x353988){const _0x3ae0b6=a73_0xa5c6;if(!Number[_0x3ae0b6(0xfd)](_0x353988))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x353988+_0x3ae0b6(0x104)};if(_0x353988<=0x0)return{'isValid':![],'error':_0x3ae0b6(0x102)+_0x353988+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x353988};}export function validateTimeoutOption(_0x582d7d,_0x2df502=0x1e){const _0x19ba25=a73_0xa5c6;if(_0x582d7d===undefined)return{'isValid':!![],'value':_0x2df502};const _0x414672=typeof _0x582d7d===_0x19ba25(0xfe)?_0x582d7d:parseFloat(_0x582d7d);if(isNaN(_0x414672))return{'isValid':![],'error':_0x19ba25(0xf6)+_0x582d7d+_0x19ba25(0xfb)};if(_0x414672<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x414672+_0x19ba25(0xfa)};return{'isValid':!![],'value':_0x414672};}
|
package/dist/utils/port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a74_0x1eb8(){const _0x50eba9=['133680zXNams','listening','\x20and\x20','close','17TxWdMN','20205126LLmYDc','999425AhTgBM','56EphNSc','listen','13374FSCAgs','No\x20available\x20port\x20found\x20between\x20','4616688gOPVhr','error','2113220XwmNDL','4276974tEkmnt','code','0.0.0.0'];a74_0x1eb8=function(){return _0x50eba9;};return a74_0x1eb8();}(function(_0xfc830b,_0x17821e){const _0x21d28f=a74_0x56b5,_0x5ebdee=_0xfc830b();while(!![]){try{const _0x41b939=-parseInt(_0x21d28f(0xba))/0x1*(parseInt(_0x21d28f(0xae))/0x2)+parseInt(_0x21d28f(0xb6))/0x3*(-parseInt(_0x21d28f(0xbd))/0x4)+parseInt(_0x21d28f(0xb2))/0x5+-parseInt(_0x21d28f(0xb3))/0x6+-parseInt(_0x21d28f(0xbc))/0x7+-parseInt(_0x21d28f(0xb0))/0x8+parseInt(_0x21d28f(0xbb))/0x9;if(_0x41b939===_0x17821e)break;else _0x5ebdee['push'](_0x5ebdee['shift']());}catch(_0x55cbb9){_0x5ebdee['push'](_0x5ebdee['shift']());}}}(a74_0x1eb8,0x79729));import{createServer}from'node:net';export async function isPortAvailable(_0x16df79){return new Promise(_0x564e37=>{const _0x48369a=a74_0x56b5,_0x3ac8c5=createServer();_0x3ac8c5['once'](_0x48369a(0xb1),_0x117348=>{const _0x2f6a0f=_0x48369a;_0x117348[_0x2f6a0f(0xb4)]==='EADDRINUSE'?_0x564e37(![]):_0x564e37(![]);}),_0x3ac8c5['once'](_0x48369a(0xb7),()=>{const _0x1c7c2f=_0x48369a;_0x3ac8c5[_0x1c7c2f(0xb9)](),_0x564e37(!![]);}),_0x3ac8c5[_0x48369a(0xbe)](_0x16df79,_0x48369a(0xb5));});}function a74_0x56b5(_0x303313,_0x1ba6b2){const _0x1eb8c1=a74_0x1eb8();return a74_0x56b5=function(_0x56b51d,_0x1693be){_0x56b51d=_0x56b51d-0xae;let _0x5090d3=_0x1eb8c1[_0x56b51d];return _0x5090d3;},a74_0x56b5(_0x303313,_0x1ba6b2);}export async function findAvailablePort(_0x1b91a5=0xfa0,_0x3d3c39=0x64){const _0x4f01d1=a74_0x56b5;for(let _0x3d1b17=0x0;_0x3d1b17<_0x3d3c39;_0x3d1b17++){const _0x58d753=_0x1b91a5+_0x3d1b17;if(await isPortAvailable(_0x58d753))return _0x58d753;}throw new Error(_0x4f01d1(0xaf)+_0x1b91a5+_0x4f01d1(0xb8)+(_0x1b91a5+_0x3d3c39-0x1));}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x599233=a75_0xff67;(function(_0x49d7bf,_0x362a5a){const _0x21469e=a75_0xff67,_0x4e26e6=_0x49d7bf();while(!![]){try{const _0x29c916=parseInt(_0x21469e(0x148))/0x1*(-parseInt(_0x21469e(0x149))/0x2)+-parseInt(_0x21469e(0x153))/0x3*(parseInt(_0x21469e(0x151))/0x4)+parseInt(_0x21469e(0x147))/0x5+-parseInt(_0x21469e(0x133))/0x6+parseInt(_0x21469e(0x128))/0x7+parseInt(_0x21469e(0x12b))/0x8*(-parseInt(_0x21469e(0x155))/0x9)+-parseInt(_0x21469e(0x12e))/0xa*(-parseInt(_0x21469e(0x138))/0xb);if(_0x29c916===_0x362a5a)break;else _0x4e26e6['push'](_0x4e26e6['shift']());}catch(_0x3366b9){_0x4e26e6['push'](_0x4e26e6['shift']());}}}(a75_0x361a,0x6c212));function a75_0x361a(){const _0x317b82=['3359320wkWnoF','comm','utf-8','kill','ppid','3796860wJzYPb','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','error','fish','tcsh','44vCkPzb','has','env','win32','trim','platform','\x20on\x20Windows:','elvish','zsh','powershell','DEBUG','code','pid','bash',')\x20spawned\x20by\x20','1450380qRNrFZ','1PpwbdX','715982AZroSI',',\x20continuing\x20up','Found\x20ephemeral\x20shell\x20','pop','xonsh','replace','split','ps\x20-p\x20','36inEHCA','cursor','45219vUUonq','length','112977wZATCJ',',\x20using\x20fallback','1306284cEEAse','pwsh','ksh','160IKOvxZ','\x20on\x20POSIX:','join'];a75_0x361a=function(){return _0x317b82;};return a75_0x361a();}import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a75_0x599233(0x145),a75_0x599233(0x140),'sh',a75_0x599233(0x136),a75_0x599233(0x12a),a75_0x599233(0x137),'csh','dash',a75_0x599233(0x129),a75_0x599233(0x141),'nu','ion',a75_0x599233(0x13f),a75_0x599233(0x14d)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a75_0x599233(0x143),a75_0x599233(0x152)]);function getProcessInfoWindows(_0x4a8014){const _0x44500d=a75_0x599233;try{const _0x245f6e=execSync('wmic\x20process\x20where\x20ProcessId='+_0x4a8014+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':'utf-8','windowsHide':!![]})[_0x44500d(0x13c)](),_0x4e6bbf=_0x245f6e['split']('\x0a')['filter'](_0xb3275c=>_0xb3275c['trim']());if(_0x4e6bbf[_0x44500d(0x154)]<0x2)return null;const _0x2afd98=_0x4e6bbf[_0x4e6bbf[_0x44500d(0x154)]-0x1][_0x44500d(0x14f)](',');if(_0x2afd98[_0x44500d(0x154)]<0x3)return null;const _0x494ee4=_0x2afd98[0x1]?.[_0x44500d(0x13c)]()||'',_0x1bb0c8=parseInt(_0x2afd98[0x2]?.[_0x44500d(0x13c)]()||'0',0xa);if(isNaN(_0x1bb0c8)||!_0x494ee4)return null;return{'pid':_0x4a8014,'ppid':_0x1bb0c8,'comm':_0x494ee4[_0x44500d(0x14e)](/\.exe$/i,'')};}catch(_0xcd0dd6){return process[_0x44500d(0x13a)]['DEBUG']&&console[_0x44500d(0x135)](_0x44500d(0x134)+_0x4a8014+_0x44500d(0x13e),_0xcd0dd6),null;}}function getProcessInfoPosix(_0x1578fb){const _0x469369=a75_0x599233;try{const _0x6697db=execSync(_0x469369(0x150)+_0x1578fb+'\x20-o\x20ppid=,comm=',{'encoding':_0x469369(0x130)})[_0x469369(0x13c)](),[_0x2a3716,..._0x204db6]=_0x6697db[_0x469369(0x14f)](/\s+/),_0x3025c0=parseInt(_0x2a3716,0xa),_0x13ce51=_0x204db6[_0x469369(0x12d)]('\x20');if(isNaN(_0x3025c0))return null;return{'pid':_0x1578fb,'ppid':_0x3025c0,'comm':_0x13ce51};}catch(_0x19e870){return process[_0x469369(0x13a)][_0x469369(0x142)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x1578fb+_0x469369(0x12c),_0x19e870),null;}}function getProcessInfo(_0x19574c){const _0x584229=a75_0x599233;if(process[_0x584229(0x13d)]===_0x584229(0x13b))return getProcessInfoWindows(_0x19574c);return getProcessInfoPosix(_0x19574c);}function getBasename(_0x55a9b0){const _0x5bc7a2=a75_0x599233;return _0x55a9b0[_0x5bc7a2(0x14e)](/^-/,'')[_0x5bc7a2(0x14f)]('/')[_0x5bc7a2(0x14c)]()?.['toLowerCase']()||'';}function isShell(_0x4c1434){return SHELL_NAMES['has'](getBasename(_0x4c1434));}function isEphemeralShellSpawner(_0xaacc9c){const _0x300b82=a75_0x599233;return EPHEMERAL_SHELL_SPAWNERS[_0x300b82(0x139)](getBasename(_0xaacc9c));}let cachedShellPID;function findShellPID(){const _0xa3e372=a75_0x599233;let _0x45d936=process['ppid'];const _0x42975b=0xa;let _0x1856d4=0x0;while(_0x1856d4<_0x42975b){const _0x38a0cf=getProcessInfo(_0x45d936);if(!_0x38a0cf){process[_0xa3e372(0x13a)][_0xa3e372(0x142)]&&console[_0xa3e372(0x135)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x45d936+_0xa3e372(0x156));break;}if(isShell(_0x38a0cf[_0xa3e372(0x12f)])){const _0x5bb637=getProcessInfo(_0x38a0cf[_0xa3e372(0x132)]);if(_0x5bb637&&isEphemeralShellSpawner(_0x5bb637[_0xa3e372(0x12f)])){process[_0xa3e372(0x13a)]['DEBUG']&&console['error'](_0xa3e372(0x14b)+_0x38a0cf[_0xa3e372(0x144)]+'\x20('+_0x38a0cf[_0xa3e372(0x12f)]+_0xa3e372(0x146)+_0x5bb637['comm']+_0xa3e372(0x14a));_0x45d936=_0x38a0cf[_0xa3e372(0x132)],_0x1856d4++;continue;}return _0x38a0cf['pid'];}if(_0x38a0cf[_0xa3e372(0x132)]===0x0||_0x38a0cf[_0xa3e372(0x132)]===0x1){if(isShell(_0x38a0cf[_0xa3e372(0x12f)]))return _0x38a0cf['pid'];break;}_0x45d936=_0x38a0cf[_0xa3e372(0x132)],_0x1856d4++;}return process[_0xa3e372(0x13a)][_0xa3e372(0x142)]&&console[_0xa3e372(0x135)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0xa3e372(0x132)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a75_0xff67(_0x28b8dd,_0x2bd4d5){const _0x361aa6=a75_0x361a();return a75_0xff67=function(_0xff675b,_0x2b89dd){_0xff675b=_0xff675b-0x128;let _0x486ba5=_0x361aa6[_0xff675b];return _0x486ba5;},a75_0xff67(_0x28b8dd,_0x2bd4d5);}export function isProcessRunning(_0x277aa9){const _0x4141df=a75_0x599233;try{return process[_0x4141df(0x131)](_0x277aa9,0x0),!![];}catch{return![];}}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31c625,_0x93475b){const _0x5564bf=a76_0x2dc7,_0x1f2285=_0x31c625();while(!![]){try{const _0x3470c8=-parseInt(_0x5564bf(0x1a8))/0x1+parseInt(_0x5564bf(0x1b0))/0x2*(parseInt(_0x5564bf(0x1b6))/0x3)+-parseInt(_0x5564bf(0x1b1))/0x4+parseInt(_0x5564bf(0x1ab))/0x5+parseInt(_0x5564bf(0x1b4))/0x6+parseInt(_0x5564bf(0x1ac))/0x7+-parseInt(_0x5564bf(0x1b2))/0x8;if(_0x3470c8===_0x93475b)break;else _0x1f2285['push'](_0x1f2285['shift']());}catch(_0x5dcee1){_0x1f2285['push'](_0x1f2285['shift']());}}}(a76_0x3d88,0xa3dce));import*as a76_0x24719b from'readline';function a76_0x3d88(){const _0x50f941=['toLowerCase','stdin','1435618FcEIQL','3337044EJqbMK','9022600nSbnSN','stdout','454632FOzrRo','createInterface','3wyakwz','255938mZWIqv','close','question','4869115nxGziL','7852614UHVXas','\x20(y/N):\x20'];a76_0x3d88=function(){return _0x50f941;};return a76_0x3d88();}function a76_0x2dc7(_0x3bdd53,_0x502a4a){const _0x3d883f=a76_0x3d88();return a76_0x2dc7=function(_0x2dc78e,_0x48cd42){_0x2dc78e=_0x2dc78e-0x1a8;let _0x9b5a9=_0x3d883f[_0x2dc78e];return _0x9b5a9;},a76_0x2dc7(_0x3bdd53,_0x502a4a);}export async function confirm(_0x4c196d){const _0x3319ba=a76_0x2dc7,_0x37dddc=a76_0x24719b[_0x3319ba(0x1b5)]({'input':process[_0x3319ba(0x1af)],'output':process[_0x3319ba(0x1b3)]});return new Promise(_0x165366=>{const _0x586d5a=_0x3319ba;_0x37dddc[_0x586d5a(0x1aa)](_0x4c196d+_0x586d5a(0x1ad),_0x46a626=>{const _0x3a76ae=_0x586d5a;_0x37dddc[_0x3a76ae(0x1a9)](),_0x165366(_0x46a626[_0x3a76ae(0x1ae)]()==='y'||_0x46a626[_0x3a76ae(0x1ae)]()==='yes');});});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x2c0a(){const _0x5172a7=['227112FwIYbc','826284rBBRCH','Path\x20attempts\x20to\x20navigate\x20above\x20root','9woVkkv','2836248FuVLaY','trim','Relative\x20path\x20cannot\x20be\x20empty','pop','2075535LKWoXG','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','isAbsolute','join','Cannot\x20navigate\x20above\x20root','2994817rkddYE','11900330jVxEEi','split','Cannot\x20split\x20empty\x20path','1NuhvGH','test','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','startsWith','slice','Path\x20cannot\x20be\x20empty','80gvyeZX','length','filter','segments','raw','substring','3600984WyfpSd'];a77_0x2c0a=function(){return _0x5172a7;};return a77_0x2c0a();}(function(_0x751553,_0x363025){const _0x52df50=a77_0x4dfe,_0x54b4d4=_0x751553();while(!![]){try{const _0x259991=parseInt(_0x52df50(0x84))/0x1*(parseInt(_0x52df50(0x74))/0x2)+parseInt(_0x52df50(0x73))/0x3*(parseInt(_0x52df50(0x8b))/0x4)+-parseInt(_0x52df50(0x7b))/0x5+parseInt(_0x52df50(0x72))/0x6+-parseInt(_0x52df50(0x80))/0x7+-parseInt(_0x52df50(0x77))/0x8*(-parseInt(_0x52df50(0x76))/0x9)+-parseInt(_0x52df50(0x81))/0xa;if(_0x259991===_0x363025)break;else _0x54b4d4['push'](_0x54b4d4['shift']());}catch(_0x3b605c){_0x54b4d4['push'](_0x54b4d4['shift']());}}}(a77_0x2c0a,0xcf432));export function parsePath(_0x5265a1){const _0x51977c=a77_0x4dfe;if(!_0x5265a1||_0x5265a1[_0x51977c(0x78)]()==='')throw new Error(_0x51977c(0x8a));const _0x6a33a3=_0x5265a1['trim']();if(_0x6a33a3==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5265a1};const _0x591f1c=_0x6a33a3[_0x51977c(0x88)]('/')?_0x6a33a3[_0x51977c(0x71)](0x1):_0x6a33a3,_0x3a408e=_0x591f1c[_0x51977c(0x82)]('/')[_0x51977c(0x6e)](_0x4338ae=>_0x4338ae!=='');if(_0x3a408e[_0x51977c(0x6d)]===0x0)throw new Error(_0x51977c(0x7c));const _0x36358f=_0x6a33a3[_0x51977c(0x88)]('/')||!isRelativePathSegment(_0x3a408e[0x0]);for(const _0x1c889b of _0x3a408e){validatePathSegment(_0x1c889b);}return{'segments':_0x3a408e,'isAbsolute':_0x36358f,'raw':_0x5265a1};}function isRelativePathSegment(_0x296757){return _0x296757==='.'||_0x296757==='..';}function validatePathSegment(_0x283454){const _0x50b9aa=a77_0x4dfe;if(_0x283454==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x283454==='.'||_0x283454==='..')return;if(/[\x00-\x1F\x7F]/[_0x50b9aa(0x85)](_0x283454))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x283454);if(_0x283454!==_0x283454[_0x50b9aa(0x78)]()){}}export function validatePath(_0x4777f4){const _0x4fb3ed=a77_0x4dfe;if(_0x4777f4['segments'][_0x4fb3ed(0x6d)]===0x0&&!_0x4777f4[_0x4fb3ed(0x7d)])throw new Error(_0x4fb3ed(0x79));if(_0x4777f4[_0x4fb3ed(0x7d)]){if(_0x4777f4[_0x4fb3ed(0x6f)][0x0]==='..')throw new Error(_0x4fb3ed(0x86));let _0x314e4b=0x0;for(const _0x42126c of _0x4777f4[_0x4fb3ed(0x6f)]){if(_0x42126c==='..'){if(_0x314e4b===0x0)throw new Error(_0x4fb3ed(0x75));_0x314e4b--;}else _0x42126c!=='.'&&_0x314e4b++;}}}export function joinPaths(_0x28b407,_0x18f9f4){const _0x3918d4=a77_0x4dfe;if(!_0x28b407||_0x28b407==='/')return _0x18f9f4;if(!_0x18f9f4||_0x18f9f4==='.')return _0x28b407;if(_0x18f9f4[_0x3918d4(0x88)]('/'))return _0x18f9f4;const _0x160e67=parsePath(_0x28b407),_0x526fc0=parsePath(_0x18f9f4),_0x4826a4=[..._0x160e67[_0x3918d4(0x6f)]];for(const _0x18ac88 of _0x526fc0[_0x3918d4(0x6f)]){if(_0x18ac88==='.')continue;else{if(_0x18ac88==='..'){if(_0x4826a4[_0x3918d4(0x6d)]===0x0)throw new Error(_0x3918d4(0x7f));_0x4826a4[_0x3918d4(0x7a)]();}else _0x4826a4['push'](_0x18ac88);}}const _0x116d05=_0x4826a4[_0x3918d4(0x7e)]('/');return _0x160e67[_0x3918d4(0x70)]['startsWith']('/')?'/'+_0x116d05:_0x116d05;}export function normalizePath(_0xb7f52){const _0x1e96b2=a77_0x4dfe,_0x5238d7=parsePath(_0xb7f52),_0x186905=[];for(const _0x36b9c6 of _0x5238d7[_0x1e96b2(0x6f)]){if(_0x36b9c6==='.')continue;else{if(_0x36b9c6==='..'){if(_0x186905['length']===0x0){if(_0x5238d7['isAbsolute'])throw new Error(_0x1e96b2(0x7f));_0x186905['push']('..');}else _0x186905[_0x186905[_0x1e96b2(0x6d)]-0x1]==='..'?_0x186905[_0x1e96b2(0x87)]('..'):_0x186905[_0x1e96b2(0x7a)]();}else _0x186905['push'](_0x36b9c6);}}if(_0x186905['length']===0x0)return _0x5238d7[_0x1e96b2(0x7d)]?'/':'.';const _0x138fc0=_0x186905[_0x1e96b2(0x7e)]('/');return _0x5238d7[_0x1e96b2(0x70)]['startsWith']('/')?'/'+_0x138fc0:_0x138fc0;}function a77_0x4dfe(_0x2ba0c2,_0x23928e){const _0x2c0a9a=a77_0x2c0a();return a77_0x4dfe=function(_0x4dfe17,_0x2aa530){_0x4dfe17=_0x4dfe17-0x6d;let _0x64e30e=_0x2c0a9a[_0x4dfe17];return _0x64e30e;},a77_0x4dfe(_0x2ba0c2,_0x23928e);}export function getParentPath(_0xfff121){const _0x167c8d=a77_0x4dfe,_0x4dc168=parsePath(_0xfff121);if(_0x4dc168[_0x167c8d(0x6f)]['length']<=0x1)return'/';const _0x364e32=_0x4dc168[_0x167c8d(0x6f)][_0x167c8d(0x89)](0x0,-0x1)[_0x167c8d(0x7e)]('/');return _0x4dc168[_0x167c8d(0x70)]['startsWith']('/')?'/'+_0x364e32:_0x364e32;}export function getBaseName(_0x330f16){const _0x5d1f13=a77_0x4dfe,_0x3d6bc5=parsePath(_0x330f16);return _0x3d6bc5[_0x5d1f13(0x6f)][_0x3d6bc5['segments'][_0x5d1f13(0x6d)]-0x1]||'';}export function isChildPath(_0x1a3ac6,_0x12d5eb){const _0x512b43=a77_0x4dfe,_0x1cbbe4=parsePath(_0x1a3ac6),_0xa5ea05=parsePath(_0x12d5eb);if(_0x1cbbe4['segments'][_0x512b43(0x6d)]<=_0xa5ea05[_0x512b43(0x6f)][_0x512b43(0x6d)])return![];for(let _0x1af36e=0x0;_0x1af36e<_0xa5ea05[_0x512b43(0x6f)]['length'];_0x1af36e++){if(_0x1cbbe4[_0x512b43(0x6f)][_0x1af36e]!==_0xa5ea05[_0x512b43(0x6f)][_0x1af36e])return![];}return!![];}export function splitPath(_0x53dff0){const _0x3facbb=a77_0x4dfe,_0x490a59=parsePath(_0x53dff0);if(_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x6d)]===0x0)throw new Error(_0x3facbb(0x83));if(_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x6d)]===0x1)return{'parent':_0x490a59[_0x3facbb(0x6f)][0x0]};return{'parent':_0x490a59[_0x3facbb(0x6f)][0x0],'child':_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x89)](0x1)[_0x3facbb(0x7e)]('/')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ac379,_0x34f17a){const _0x52ec91=a78_0x1163,_0x39a9ba=_0x3ac379();while(!![]){try{const _0x10f07f=parseInt(_0x52ec91(0x125))/0x1*(-parseInt(_0x52ec91(0x124))/0x2)+parseInt(_0x52ec91(0x11c))/0x3+-parseInt(_0x52ec91(0x11b))/0x4*(-parseInt(_0x52ec91(0x120))/0x5)+-parseInt(_0x52ec91(0x11e))/0x6*(-parseInt(_0x52ec91(0x11d))/0x7)+parseInt(_0x52ec91(0x123))/0x8+-parseInt(_0x52ec91(0x11f))/0x9+-parseInt(_0x52ec91(0x128))/0xa;if(_0x10f07f===_0x34f17a)break;else _0x39a9ba['push'](_0x39a9ba['shift']());}catch(_0x5a8760){_0x39a9ba['push'](_0x39a9ba['shift']());}}}(a78_0x3820,0x8a918));export function parseSegmentRef(_0x316c69){const _0x2903e9=a78_0x1163,_0x5149c1=_0x316c69[_0x2903e9(0x122)]('/');if(_0x5149c1===-0x1)return{'parentId':_0x316c69};if(_0x5149c1===0x0)throw new Error(_0x2903e9(0x127)+_0x316c69+_0x2903e9(0x121));const _0x312d68=_0x316c69[_0x2903e9(0x126)](0x0,_0x5149c1),_0x20a895=_0x316c69[_0x2903e9(0x126)](_0x5149c1+0x1);if(_0x20a895==='')throw new Error(_0x2903e9(0x127)+_0x316c69+_0x2903e9(0x129));return{'parentId':_0x312d68,'childId':_0x20a895};}function a78_0x1163(_0x3f7a5a,_0xb7f83d){const _0x3820b1=a78_0x3820();return a78_0x1163=function(_0x1163a4,_0x49d804){_0x1163a4=_0x1163a4-0x11b;let _0x2e560e=_0x3820b1[_0x1163a4];return _0x2e560e;},a78_0x1163(_0x3f7a5a,_0xb7f83d);}function a78_0x3820(){const _0x2fc36e=['93591cvyfDF','substring','Invalid\x20segment\x20reference\x20format:\x20','21574520aswcuD','.\x20Child\x20name\x20cannot\x20be\x20empty','1628sTPqGN','3387573OAQjFK','13811ZzCRvT','1572rximXC','199863SPPFQS','11225LsXpRB','.\x20Parent\x20name\x20cannot\x20be\x20empty','indexOf','8237776WKgCKo','18nUsJLa'];a78_0x3820=function(){return _0x2fc36e;};return a78_0x3820();}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1ffad5,_0x6591e0){const _0x3acef7=a79_0x1386,_0x2f0d40=_0x1ffad5();while(!![]){try{const _0x520179=parseInt(_0x3acef7(0x9f))/0x1*(parseInt(_0x3acef7(0x9e))/0x2)+parseInt(_0x3acef7(0xb2))/0x3*(-parseInt(_0x3acef7(0xa5))/0x4)+-parseInt(_0x3acef7(0xaf))/0x5+parseInt(_0x3acef7(0xa3))/0x6+-parseInt(_0x3acef7(0xa1))/0x7+parseInt(_0x3acef7(0x9c))/0x8*(parseInt(_0x3acef7(0xa9))/0x9)+parseInt(_0x3acef7(0xa7))/0xa;if(_0x520179===_0x6591e0)break;else _0x2f0d40['push'](_0x2f0d40['shift']());}catch(_0x2b9188){_0x2f0d40['push'](_0x2f0d40['shift']());}}}(a79_0x13e3,0x3c959));import a79_0x3d57da from'ora';function a79_0x1386(_0x42e5c9,_0x2f57c0){const _0x13e3c6=a79_0x13e3();return a79_0x1386=function(_0x1386cf,_0xc9619a){_0x1386cf=_0x1386cf-0x9c;let _0x3083d8=_0x13e3c6[_0x1386cf];return _0x3083d8;},a79_0x1386(_0x42e5c9,_0x2f57c0);}export function createCommandSpinner(_0x5a3a54,_0x13c681={}){const _0xdf4a7c=a79_0x1386,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13c681;return a79_0x3d57da({'text':_0x5a3a54,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0xdf4a7c(0xaa)]&&!verbose});}export async function withSpinner(_0x17a428,_0x4bf6ec,_0x4cd296={}){const _0x2ac5b7=a79_0x1386,_0x3774ca=_0x4cd296[_0x2ac5b7(0x9d)]??(()=>Date[_0x2ac5b7(0xac)]()),_0x3cf5b9=createCommandSpinner(_0x17a428,_0x4cd296);_0x3cf5b9[_0x2ac5b7(0xa2)]();const _0x482456=_0x3774ca();try{const _0x910a09=await _0x4bf6ec(),_0x444ff8=_0x3774ca()-_0x482456;return _0x3cf5b9['stop'](),{'data':_0x910a09,'elapsedMs':_0x444ff8};}catch(_0x1f24b9){_0x3cf5b9['stop']();throw _0x1f24b9;}}export async function withQuerySpinner(_0x20b570,_0x2ddfdd,_0x5dbd3a={}){const _0x5e1164=a79_0x1386,_0x559779=_0x5dbd3a[_0x5e1164(0x9d)]??(()=>Date[_0x5e1164(0xac)]()),_0x3f62cb=_0x5dbd3a['intervalFactory']??setInterval,_0x2700a5=createCommandSpinner(_0x20b570,_0x5dbd3a);_0x2700a5[_0x5e1164(0xa2)]();const _0x4f0b1f=_0x559779(),_0xc65755=_0x20b570[_0x5e1164(0xb0)](_0x5e1164(0xa0),''),_0xabaa90={},_0x103830=()=>{const _0xaa1ddc=_0x5e1164;if(!_0x2700a5['isSpinning'])return;const _0x51eb01=_0x559779()-_0x4f0b1f,_0x49aee2=formatElapsed(_0x51eb01),_0x55186e=_0xabaa90[_0xaa1ddc(0xab)]??_0xc65755,_0x127573=_0xabaa90['jobId']?_0xaa1ddc(0xa6)+_0xabaa90[_0xaa1ddc(0xa8)]+']':'',_0x5cf510=_0xabaa90[_0xaa1ddc(0xad)]?'\x20'+_0xabaa90[_0xaa1ddc(0xad)]:'';_0x2700a5[_0xaa1ddc(0xa4)]=_0x55186e+'\x20'+_0x49aee2+_0x5cf510+_0x127573;},_0x51ac53=_0x3f62cb(()=>{_0x103830();},0x3e8),_0x3f9e42={'setPhase':_0x4539d3=>{_0xabaa90['phase']=_0x4539d3,_0x103830();},'setJobId':_0x1f1fb2=>{const _0x9d5cac=_0x5e1164;_0xabaa90[_0x9d5cac(0xa8)]=_0x1f1fb2,_0x103830();},'setExtra':_0x9f580e=>{_0xabaa90['extra']=_0x9f580e,_0x103830();}};_0x103830();try{const _0x19235f=await _0x2ddfdd(_0x3f9e42),_0xc91cc=_0x559779()-_0x4f0b1f;return{'data':_0x19235f,'elapsedMs':_0xc91cc};}finally{clearInterval(_0x51ac53),_0x2700a5[_0x5e1164(0xae)]();}}function a79_0x13e3(){const _0x1dbd2c=['...','2971388hoGdUw','start','555354LIlWCC','text','70676LArSSO','\x20[Job\x20ID:\x20','4334740jZJswc','jobId','1989lOrKKS','isTTY','phase','now','extra','stop','151205ZJmRZQ','replace','toFixed','51uqJNgN','floor','15992WAWqty','clock','70878cUlHbk','1pPsAln'];a79_0x13e3=function(){return _0x1dbd2c;};return a79_0x13e3();}export function formatElapsed(_0x37295e){const _0x599e17=a79_0x1386,_0x3ddc97=Math[_0x599e17(0xb3)](_0x37295e/0x3e8);if(_0x3ddc97<0x3c)return(_0x37295e/0x3e8)[_0x599e17(0xb1)](0x1)+'s';const _0x390bf3=Math[_0x599e17(0xb3)](_0x3ddc97/0x3c),_0x112182=_0x3ddc97%0x3c;if(_0x390bf3<0x3c)return _0x390bf3+'m\x20'+_0x112182+'s';const _0x227a87=Math[_0x599e17(0xb3)](_0x390bf3/0x3c),_0x362446=_0x390bf3%0x3c;return _0x227a87+'h\x20'+_0x362446+'m';}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x381bac,_0x2928ff){const _0xa26083=a80_0x24ba,_0x1394a6=_0x381bac();while(!![]){try{const _0x5117bd=-parseInt(_0xa26083(0xd0))/0x1*(-parseInt(_0xa26083(0xd9))/0x2)+parseInt(_0xa26083(0xd2))/0x3+parseInt(_0xa26083(0xdc))/0x4*(parseInt(_0xa26083(0xe0))/0x5)+-parseInt(_0xa26083(0xdf))/0x6*(parseInt(_0xa26083(0xc8))/0x7)+-parseInt(_0xa26083(0xdd))/0x8*(parseInt(_0xa26083(0xd5))/0x9)+parseInt(_0xa26083(0xc7))/0xa+-parseInt(_0xa26083(0xd7))/0xb*(parseInt(_0xa26083(0xdb))/0xc);if(_0x5117bd===_0x2928ff)break;else _0x1394a6['push'](_0x1394a6['shift']());}catch(_0x4a1858){_0x1394a6['push'](_0x1394a6['shift']());}}}(a80_0x8f10,0xe60c9));import{readFileSync}from'fs';export function stripSqlComments(_0x4e0eb0){const _0x338c1e=a80_0x24ba;let _0x32ef4a=_0x4e0eb0[_0x338c1e(0xd6)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x32ef4a=_0x32ef4a['replace'](/--.*$/gm,''),_0x32ef4a[_0x338c1e(0xde)]();}function isEscaped(_0x255acf,_0x5f0c83){let _0x23ab27=0x0;for(let _0xa2a2c3=_0x5f0c83-0x1;_0xa2a2c3>=0x0&&_0x255acf[_0xa2a2c3]==='\x5c';_0xa2a2c3--){_0x23ab27++;}return _0x23ab27%0x2===0x1;}export function splitSqlStatements(_0x1b2aad){const _0x4b0c48=a80_0x24ba,_0x2bac13=stripSqlComments(_0x1b2aad);if(!_0x2bac13)throw new Error(_0x4b0c48(0xd8));const _0x2018e8=[];let _0x52acd8='',_0x5d2583=![],_0xbab4de=![],_0x16be62=![];for(let _0x1f6c05=0x0;_0x1f6c05<_0x1b2aad['length'];_0x1f6c05++){const _0x1400e4=_0x1b2aad[_0x1f6c05];if(_0x1400e4==='\x27'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0xbab4de&&!_0x16be62)_0x5d2583=!_0x5d2583;else{if(_0x1400e4==='\x22'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0x5d2583&&!_0x16be62)_0xbab4de=!_0xbab4de;else _0x1400e4==='`'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0x5d2583&&!_0xbab4de&&(_0x16be62=!_0x16be62);}if(_0x1400e4===';'&&!_0x5d2583&&!_0xbab4de&&!_0x16be62){const _0x313403=_0x52acd8['trim']();_0x313403&&_0x2018e8[_0x4b0c48(0xcb)](_0x313403),_0x52acd8='';}else _0x52acd8+=_0x1400e4;}const _0x290f68=_0x52acd8[_0x4b0c48(0xde)]();_0x290f68&&_0x2018e8[_0x4b0c48(0xcb)](_0x290f68);const _0x122cfa=_0x2018e8[_0x4b0c48(0xcf)](_0x6414f2=>_0x6414f2['trim']())['filter'](_0x352c45=>{const _0x55e11f=stripSqlComments(_0x352c45);return _0x55e11f['length']>0x0;});if(_0x122cfa[_0x4b0c48(0xd3)]===0x0)throw new Error(_0x4b0c48(0xd8));return _0x122cfa;}export function readFileContent(_0x58e23d){const _0x1e797d=a80_0x24ba;try{return readFileSync(_0x58e23d,_0x1e797d(0xca));}catch(_0x6e40be){const _0x8c14d7=_0x6e40be[_0x1e797d(0xda)];if(_0x8c14d7==='ENOENT')throw new Error(_0x1e797d(0xc9)+_0x58e23d+_0x1e797d(0xd1));else{if(_0x8c14d7===_0x1e797d(0xc6))throw new Error(_0x1e797d(0xce)+_0x58e23d+'\x27');else throw new Error(_0x1e797d(0xcc)+_0x58e23d+_0x1e797d(0xd4)+_0x6e40be['message']);}}}export function readSqlStatementsFromFile(_0x580d9c){const _0x1ab7b9=a80_0x24ba,_0x468105=readFileContent(_0x580d9c);try{return splitSqlStatements(_0x468105);}catch(_0x223ca5){throw new Error(_0x1ab7b9(0xc9)+_0x580d9c+'\x27\x20'+_0x223ca5['message'][_0x1ab7b9(0xcd)]());}}function a80_0x24ba(_0x2967f1,_0x186741){const _0x8f10f6=a80_0x8f10();return a80_0x24ba=function(_0x24ba71,_0x5b8ada){_0x24ba71=_0x24ba71-0xc6;let _0x38ebf0=_0x8f10f6[_0x24ba71];return _0x38ebf0;},a80_0x24ba(_0x2967f1,_0x186741);}function a80_0x8f10(){const _0x121cad=['8lOrYzw','trim','7164feNXxX','2881665sZfHTZ','EACCES','18202610XXdCsK','7567ProFTw','File\x20\x27','utf-8','push','Error\x20reading\x20file\x20\x27','toLowerCase','Permission\x20denied\x20reading\x20file\x20\x27','map','1049QwYCPK','\x27\x20not\x20found','89118WttjQr','length','\x27:\x20','5242122nkqGcF','replace','55WukJez','Content\x20contains\x20no\x20SQL\x20statements','1756nvthHh','code','4042884kUxxoY','12pwsHSc'];a80_0x8f10=function(){return _0x121cad;};return a80_0x8f10();}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a81_0x30b2(_0x5bf7e3,_0x4078fc){const _0x3e3d4f=a81_0x3e3d();return a81_0x30b2=function(_0x30b2ec,_0x33fec0){_0x30b2ec=_0x30b2ec-0x10d;let _0x3c31ae=_0x3e3d4f[_0x30b2ec];return _0x3c31ae;},a81_0x30b2(_0x5bf7e3,_0x4078fc);}(function(_0x2c4df7,_0x315835){const _0x3df361=a81_0x30b2,_0x36096f=_0x2c4df7();while(!![]){try{const _0x513d77=parseInt(_0x3df361(0x120))/0x1*(-parseInt(_0x3df361(0x111))/0x2)+parseInt(_0x3df361(0x11f))/0x3+parseInt(_0x3df361(0x115))/0x4+-parseInt(_0x3df361(0x112))/0x5+-parseInt(_0x3df361(0x113))/0x6+-parseInt(_0x3df361(0x110))/0x7*(-parseInt(_0x3df361(0x10e))/0x8)+parseInt(_0x3df361(0x11c))/0x9;if(_0x513d77===_0x315835)break;else _0x36096f['push'](_0x36096f['shift']());}catch(_0xfa3f3f){_0x36096f['push'](_0x36096f['shift']());}}}(a81_0x3e3d,0x9507b));export async function*parseSSEStream(_0x67694,_0x31d2db){const _0x144d8b=a81_0x30b2;if(!_0x67694[_0x144d8b(0x11a)])throw new Error(_0x144d8b(0x10d));const _0x2f05fe=_0x67694[_0x144d8b(0x11a)]['getReader'](),_0x3e118d=new TextDecoder();let _0x2053c2='',_0x5a2ed9={};try{while(!![]){const {done:_0x17a5e7,value:_0x2b1fcb}=await _0x2f05fe[_0x144d8b(0x11e)]();if(_0x17a5e7){if(_0x5a2ed9[_0x144d8b(0x11b)]){_0x31d2db?.[_0x144d8b(0x11d)](_0x144d8b(0x117)+_0x5a2ed9['data']);const _0x4a2094=parseSSEData(_0x5a2ed9[_0x144d8b(0x11b)]);yield _0x4a2094;}break;}_0x2053c2+=_0x3e118d[_0x144d8b(0x123)](_0x2b1fcb,{'stream':!![]});const _0xb16024=_0x2053c2[_0x144d8b(0x116)]('\x0a');_0x2053c2=_0xb16024['pop']()||'';for(const _0x75bd97 of _0xb16024){if(_0x75bd97[_0x144d8b(0x118)]()===''){if(_0x5a2ed9[_0x144d8b(0x11b)]){_0x31d2db?.[_0x144d8b(0x11d)](_0x144d8b(0x117)+_0x5a2ed9[_0x144d8b(0x11b)]);const _0x115f45=parseSSEData(_0x5a2ed9['data']);yield _0x115f45,_0x5a2ed9={};}continue;}if(_0x75bd97['startsWith'](':'))continue;const _0x388ba3=_0x75bd97['indexOf'](':');if(_0x388ba3===-0x1)continue;const _0x26b89e=_0x75bd97[_0x144d8b(0x10f)](0x0,_0x388ba3);let _0x4c9996=_0x75bd97[_0x144d8b(0x10f)](_0x388ba3+0x1);_0x4c9996[_0x144d8b(0x122)]('\x20')&&(_0x4c9996=_0x4c9996[_0x144d8b(0x10f)](0x1));switch(_0x26b89e){case _0x144d8b(0x121):_0x5a2ed9[_0x144d8b(0x121)]=_0x4c9996;break;case _0x144d8b(0x11b):_0x5a2ed9['data']=_0x5a2ed9[_0x144d8b(0x11b)]?_0x5a2ed9[_0x144d8b(0x11b)]+'\x0a'+_0x4c9996:_0x4c9996;break;case'id':_0x5a2ed9['id']=_0x4c9996;break;}}}}finally{_0x2f05fe[_0x144d8b(0x119)]();}}function parseSSEData(_0x1ac211){const _0x51e71e=a81_0x30b2;try{return JSON[_0x51e71e(0x114)](_0x1ac211);}catch(_0x3194a2){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1ac211,{'cause':_0x3194a2});}}function a81_0x3e3d(){const _0x373569=['split','[LLM\x20API\x20SSE]\x20','trim','releaseLock','body','data','2298483UuhoZM','debug','read','2443938mvHdDl','777817haEoTc','event','startsWith','decode','Response\x20body\x20is\x20null','168ykjXVi','slice','375263XGstiU','2TwsWxo','5069030CvARCi','989202DgJcVs','parse','1484380ZACfIN'];a81_0x3e3d=function(){return _0x373569;};return a81_0x3e3d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ea8cb,_0x1d4876){const _0x5e38ec=a82_0x2b99,_0x15c814=_0x2ea8cb();while(!![]){try{const _0x525ceb=parseInt(_0x5e38ec(0x106))/0x1*(parseInt(_0x5e38ec(0x104))/0x2)+-parseInt(_0x5e38ec(0x107))/0x3*(parseInt(_0x5e38ec(0x101))/0x4)+parseInt(_0x5e38ec(0xfe))/0x5+-parseInt(_0x5e38ec(0x10e))/0x6*(parseInt(_0x5e38ec(0x10a))/0x7)+parseInt(_0x5e38ec(0x102))/0x8+-parseInt(_0x5e38ec(0x10f))/0x9+parseInt(_0x5e38ec(0x10b))/0xa*(-parseInt(_0x5e38ec(0x105))/0xb);if(_0x525ceb===_0x1d4876)break;else _0x15c814['push'](_0x15c814['shift']());}catch(_0x4a2b08){_0x15c814['push'](_0x15c814['shift']());}}}(a82_0x1928,0x41ea0));import a82_0x6c8c16 from'string-width';export function stringWidth(_0x50e1d6){return a82_0x6c8c16(_0x50e1d6);}export function padEnd(_0x7227b3,_0x3a4ca8){const _0x1cf31d=a82_0x2b99,_0x2b4a66=stringWidth(_0x7227b3);if(_0x2b4a66>=_0x3a4ca8)return _0x7227b3;return _0x7227b3+'\x20'[_0x1cf31d(0x108)](_0x3a4ca8-_0x2b4a66);}export function padStart(_0x198c59,_0x4f5bad){const _0x3e92a6=a82_0x2b99,_0x57f653=stringWidth(_0x198c59);if(_0x57f653>=_0x4f5bad)return _0x198c59;return'\x20'[_0x3e92a6(0x108)](_0x4f5bad-_0x57f653)+_0x198c59;}export function centerAlign(_0x5a92c1,_0x329e0f){const _0x4a56bc=a82_0x2b99,_0x3de1c8=stringWidth(_0x5a92c1);if(_0x3de1c8>_0x329e0f){if(_0x329e0f<=0x1)return'…'[_0x4a56bc(0xfd)](0x0,_0x329e0f);let _0x44f884=_0x5a92c1;while(stringWidth(_0x44f884+'…')>_0x329e0f){_0x44f884=_0x44f884['slice'](0x0,-0x1);}return _0x44f884+'…';}if(_0x3de1c8===_0x329e0f)return _0x5a92c1;const _0x23960a=_0x329e0f-_0x3de1c8,_0x16d9d3=Math[_0x4a56bc(0x110)](_0x23960a/0x2),_0x2ed19a=_0x23960a-_0x16d9d3;return'\x20'[_0x4a56bc(0x108)](_0x16d9d3)+_0x5a92c1+'\x20'[_0x4a56bc(0x108)](_0x2ed19a);}export function escapeStringLiteral(_0x1acc94){const _0x520f0b=a82_0x2b99;if(!_0x1acc94||_0x1acc94['trim']()[_0x520f0b(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x1d2c17=_0x1acc94[_0x520f0b(0xfb)](/'/g,'\x27\x27');return'\x27'+_0x1d2c17+'\x27';}export function globToLike(_0x5b903f){const _0x57dc96=a82_0x2b99;let _0x571fbb=_0x5b903f[_0x57dc96(0xfb)](/\\/g,'\x5c\x5c')[_0x57dc96(0xfb)](/%/g,'\x5c%')[_0x57dc96(0xfb)](/_/g,'\x5c_');return _0x571fbb=_0x571fbb[_0x57dc96(0xfb)](/\*/g,'%')[_0x57dc96(0xfb)](/\?/g,'_'),_0x571fbb;}function a82_0x1928(){const _0x4eba4d=['17977uMzdVs','31461ohRRPA','repeat','trim','5201mtWqFd','10MEDEbw','\x5c$&','length','2358dRrQQm','2540115yustlI','floor','replace','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','1956190mCnJpI','toString','USER','4ThuyQo','3505544ZJslsW','test','14rUPvhV','1106215GGIefV'];a82_0x1928=function(){return _0x4eba4d;};return a82_0x1928();}export function buildLikePattern(_0x1ffa2e){const _0x4746ce=a82_0x2b99;if(!_0x1ffa2e||_0x1ffa2e[_0x4746ce(0x109)]()[_0x4746ce(0x10d)]===0x0)throw new Error(_0x4746ce(0xfc));const _0x2656e5=globToLike(_0x1ffa2e),_0x31803d=_0x2656e5[_0x4746ce(0xfb)](/'/g,'\x27\x27');return'\x27'+_0x31803d+'\x27';}export function matchGlobPattern(_0x21fcb5,_0x55094c){const _0x57c9c6=a82_0x2b99,_0x40e2ac=_0x55094c[_0x57c9c6(0xfb)](/[.+^${}()|[\]\\]/g,_0x57c9c6(0x10c))[_0x57c9c6(0xfb)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x53d787=new RegExp('^'+_0x40e2ac+'$');return _0x53d787[_0x57c9c6(0x103)](_0x21fcb5);}export function getSanitizedUsername(){const _0x2eb599=a82_0x2b99,_0x466597=process['env'][_0x2eb599(0x100)]||process['env']['USERNAME']||'unknown';return _0x466597[_0x2eb599(0xfb)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}function a82_0x2b99(_0x45d962,_0x1312a7){const _0x1928b4=a82_0x1928();return a82_0x2b99=function(_0x2b99f7,_0x1d8e7e){_0x2b99f7=_0x2b99f7-0xfb;let _0x299fe7=_0x1928b4[_0x2b99f7];return _0x299fe7;},a82_0x2b99(_0x45d962,_0x1312a7);}export function generateRandomHex(){const _0x7f91f2=a82_0x2b99,_0x3f12ca=Math[_0x7f91f2(0x110)](Math['random']()*0xfffff);return _0x3f12ca[_0x7f91f2(0xff)](0x10)['padStart'](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0xe3c1(){const _0x386482=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','catalog','database','2ICundt','18246ydPKfy','join','10735FplZcH','3794076dttvPe','6911980aTpbSS','push','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','28yCWdNY','14GIeQag','512418ypvkXu','trim','2887848TDdZIg','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','length','541495Mcplrg'];a83_0xe3c1=function(){return _0x386482;};return a83_0xe3c1();}function a83_0x43d4(_0x18a1d1,_0xd1f005){const _0xe3c13=a83_0xe3c1();return a83_0x43d4=function(_0x43d45c,_0x490fa8){_0x43d45c=_0x43d45c-0x1d5;let _0x1dab97=_0xe3c13[_0x43d45c];return _0x1dab97;},a83_0x43d4(_0x18a1d1,_0xd1f005);}(function(_0x1b4dce,_0xa4f252){const _0x6afa6e=a83_0x43d4,_0x4cd250=_0x1b4dce();while(!![]){try{const _0x48d140=parseInt(_0x6afa6e(0x1ec))/0x1*(parseInt(_0x6afa6e(0x1e9))/0x2)+parseInt(_0x6afa6e(0x1ea))/0x3*(-parseInt(_0x6afa6e(0x1d8))/0x4)+-parseInt(_0x6afa6e(0x1e3))/0x5+-parseInt(_0x6afa6e(0x1da))/0x6*(parseInt(_0x6afa6e(0x1d9))/0x7)+-parseInt(_0x6afa6e(0x1dc))/0x8+parseInt(_0x6afa6e(0x1ed))/0x9+parseInt(_0x6afa6e(0x1ee))/0xa;if(_0x48d140===_0xa4f252)break;else _0x4cd250['push'](_0x4cd250['shift']());}catch(_0x5c96a0){_0x4cd250['push'](_0x4cd250['shift']());}}}(a83_0xe3c1,0x6ba05));function hasWildcard(_0x20105b){const _0x446dfa=a83_0x43d4;return _0x20105b[_0x446dfa(0x1d6)]('*')||_0x20105b[_0x446dfa(0x1d6)]('?');}export function parseTableReference(_0x2c3632){const _0x5a4d6e=a83_0x43d4;if(!_0x2c3632||_0x2c3632[_0x5a4d6e(0x1db)]()[_0x5a4d6e(0x1e2)]===0x0)throw new Error(_0x5a4d6e(0x1e0));const _0x27cabd=_0x2c3632[_0x5a4d6e(0x1db)](),_0x1d3898={'original':_0x27cabd},_0x50a91f=_0x27cabd[_0x5a4d6e(0x1e6)]('.');if(_0x50a91f[_0x5a4d6e(0x1e2)]===0x1){const _0x2d881d=_0x50a91f[0x0];if(!_0x2d881d)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1d3898[_0x5a4d6e(0x1e1)]=_0x2d881d;}else{if(_0x50a91f['length']===0x2){const [_0x153b44,_0x4d3b9e]=_0x50a91f;if(!_0x153b44)throw new Error(_0x5a4d6e(0x1e5));if(!_0x4d3b9e)throw new Error(_0x5a4d6e(0x1df));_0x1d3898[_0x5a4d6e(0x1e8)]=_0x153b44,_0x1d3898[_0x5a4d6e(0x1e1)]=_0x4d3b9e;}else{if(_0x50a91f[_0x5a4d6e(0x1e2)]===0x3){const [_0x18c498,_0x20e029,_0x390ca9]=_0x50a91f;if(!_0x18c498||!_0x20e029||!_0x390ca9)throw new Error(_0x5a4d6e(0x1de));_0x1d3898[_0x5a4d6e(0x1e7)]=_0x18c498,_0x1d3898['database']=_0x20e029,_0x1d3898[_0x5a4d6e(0x1e1)]=_0x390ca9;}else throw new Error(_0x5a4d6e(0x1dd));}}return _0x1d3898;}export function formatTableReference(_0x66518d){const _0x20a641=a83_0x43d4,_0x411b52=[];return _0x66518d[_0x20a641(0x1e7)]&&_0x411b52['push'](_0x66518d['catalog']),_0x66518d[_0x20a641(0x1e8)]&&_0x411b52[_0x20a641(0x1d5)](_0x66518d[_0x20a641(0x1e8)]),_0x66518d[_0x20a641(0x1e1)]&&_0x411b52['push'](_0x66518d[_0x20a641(0x1e1)]),_0x411b52[_0x20a641(0x1eb)]('.');}export function validateTableListReference(_0x40c407){return undefined;}export function validateTableDescribeReference(_0x1c70e0){const _0x29e6d3=a83_0x43d4;if(!_0x1c70e0[_0x29e6d3(0x1e1)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x1c70e0['database']&&hasWildcard(_0x1c70e0['database']))return _0x29e6d3(0x1e4);if(hasWildcard(_0x1c70e0[_0x29e6d3(0x1e1)]))return _0x29e6d3(0x1d7);return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x3322e1=a84_0x3418;function a84_0x153e(){const _0x5bef48=['INFO','.gz','abs','warn','error','cyan','padStart','740628ZjfimP','tdx','logs','209306Fplhyk','tdx.log','write','46660SyKmKu','test','getDate','getHours','3294PNRBDH','getMonth','.cache','floor','string','getMilliseconds','toString','split','DEBUG','info','getMinutes','logStream','stack','3566778ABsdnA','3101aRSlPp','fileOnly','ERROR','name','red','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','363994tmUWrE','TRACE','logLevel','logDir','getLogPath','12Zgovqi','WARN','774715lSugGc','filter','rotateOldLogs','cause','join','includes','12440xLwRTQ','trace','message','getTimezoneOffset','Warning:\x20Failed\x20to\x20compress\x20','.log','debug','toISOString','map'];a84_0x153e=function(){return _0x5bef48;};return a84_0x153e();}(function(_0x55ef4a,_0xd3591f){const _0x1126cf=a84_0x3418,_0x33eb9e=_0x55ef4a();while(!![]){try{const _0x36ae5c=-parseInt(_0x1126cf(0x141))/0x1+-parseInt(_0x1126cf(0x161))/0x2+-parseInt(_0x1126cf(0x15e))/0x3+parseInt(_0x1126cf(0x146))/0x4*(-parseInt(_0x1126cf(0x148))/0x5)+parseInt(_0x1126cf(0x13a))/0x6+parseInt(_0x1126cf(0x13b))/0x7*(-parseInt(_0x1126cf(0x14e))/0x8)+parseInt(_0x1126cf(0x168))/0x9*(parseInt(_0x1126cf(0x164))/0xa);if(_0x36ae5c===_0xd3591f)break;else _0x33eb9e['push'](_0x33eb9e['shift']());}catch(_0x3ddc8b){_0x33eb9e['push'](_0x33eb9e['shift']());}}}(a84_0x153e,0x69b6a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a84_0x3418(_0x610ef1,_0x1d1a3b){const _0x153e67=a84_0x153e();return a84_0x3418=function(_0x34184a,_0x169953){_0x34184a=_0x34184a-0x130;let _0x54e6d4=_0x153e67[_0x34184a];return _0x54e6d4;},a84_0x3418(_0x610ef1,_0x1d1a3b);}import{pipeline}from'stream/promises';import a84_0x20f525 from'chalk';function safeStringify(_0x21b79c){const _0x329294=a84_0x3418;if(typeof _0x21b79c===_0x329294(0x131))return _0x21b79c;if(_0x21b79c instanceof Error)return _0x21b79c[_0x329294(0x139)]||_0x21b79c[_0x329294(0x13e)]+':\x20'+_0x21b79c[_0x329294(0x150)];try{return JSON['stringify'](_0x21b79c,(_0x4b5ddc,_0x1fb5a1)=>{const _0x2363d6=_0x329294;if(_0x1fb5a1 instanceof Error)return{'name':_0x1fb5a1['name'],'message':_0x1fb5a1[_0x2363d6(0x150)],'stack':_0x1fb5a1[_0x2363d6(0x139)],'cause':_0x1fb5a1[_0x2363d6(0x14b)]};return _0x1fb5a1;});}catch{return String(_0x21b79c);}}function getTimezoneOffset(){const _0x39d6e1=a84_0x3418,_0x5796ad=-new Date()[_0x39d6e1(0x151)](),_0x5a676b=Math[_0x39d6e1(0x130)](Math[_0x39d6e1(0x159)](_0x5796ad)/0x3c),_0x4b3dce=Math[_0x39d6e1(0x159)](_0x5796ad)%0x3c,_0x2bd091=_0x5796ad>=0x0?'+':'-';return''+_0x2bd091+_0x5a676b[_0x39d6e1(0x133)]()[_0x39d6e1(0x15d)](0x2,'0')+_0x4b3dce[_0x39d6e1(0x133)]()[_0x39d6e1(0x15d)](0x2,'0');}function formatTimestamp(){const _0x2b1097=a84_0x3418,_0x5248e8=new Date(),_0x9b4498=_0x5248e8['getFullYear'](),_0x2b63c7=(_0x5248e8[_0x2b1097(0x169)]()+0x1)[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x6cfa70=_0x5248e8[_0x2b1097(0x166)]()['toString']()['padStart'](0x2,'0'),_0x4216ee=_0x5248e8[_0x2b1097(0x167)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x5db25a=_0x5248e8[_0x2b1097(0x137)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x43be5a=_0x5248e8['getSeconds']()[_0x2b1097(0x133)]()['padStart'](0x2,'0'),_0x6a6faa=_0x5248e8[_0x2b1097(0x132)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x3,'0'),_0x22b7c5=getTimezoneOffset();return _0x9b4498+'-'+_0x2b63c7+'-'+_0x6cfa70+'\x20'+_0x4216ee+':'+_0x5db25a+':'+_0x43be5a+'.'+_0x6a6faa+_0x22b7c5;}function formatColoredLogEntry(_0x320968,_0x24db6d){const _0x1c579b=a84_0x3418,_0x4455f9=formatTimestamp(),_0x4263fb=_0x24db6d[_0x1c579b(0x156)](safeStringify)[_0x1c579b(0x14c)]('\x20'),_0x390b44=a84_0x20f525['gray'](_0x4455f9);let _0x5e9212;switch(_0x320968){case _0x1c579b(0x136):_0x5e9212=a84_0x20f525[_0x1c579b(0x15c)]('['+_0x320968+']\x20');break;case'warn':_0x5e9212=a84_0x20f525['yellow']('['+_0x320968+']\x20');break;case _0x1c579b(0x15b):_0x5e9212=a84_0x20f525[_0x1c579b(0x13f)]('['+_0x320968+']');break;case _0x1c579b(0x154):_0x5e9212=a84_0x20f525['gray']('['+_0x320968+']');break;default:_0x5e9212='['+_0x320968+']';}return _0x390b44+'\x20'+_0x5e9212+'\x20'+_0x4263fb;}export var LogLevel;(function(_0x49261b){const _0x23c85e=a84_0x3418;_0x49261b[_0x49261b[_0x23c85e(0x142)]=-0x2]=_0x23c85e(0x142),_0x49261b[_0x49261b['DEBUG']=-0x1]=_0x23c85e(0x135),_0x49261b[_0x49261b[_0x23c85e(0x157)]=0x0]=_0x23c85e(0x157),_0x49261b[_0x49261b[_0x23c85e(0x147)]=0x1]=_0x23c85e(0x147),_0x49261b[_0x49261b[_0x23c85e(0x13d)]=0x2]=_0x23c85e(0x13d);}(LogLevel||(LogLevel={})));export class TDXLogger{[a84_0x3322e1(0x138)];[a84_0x3322e1(0x144)];[a84_0x3322e1(0x143)];[a84_0x3322e1(0x13c)];constructor(_0xb48ae8=LogLevel['INFO'],_0x4f27c9=![]){const _0x4a2a90=a84_0x3322e1;this[_0x4a2a90(0x144)]=join(homedir(),_0x4a2a90(0x16a),_0x4a2a90(0x15f),_0x4a2a90(0x160)),this[_0x4a2a90(0x143)]=_0xb48ae8,this[_0x4a2a90(0x13c)]=_0x4f27c9;}async['init'](){const _0x8eb0eb=a84_0x3322e1;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x8eb0eb(0x14a)]();const _0x60b636=join(this[_0x8eb0eb(0x144)],_0x8eb0eb(0x162));this[_0x8eb0eb(0x138)]=createWriteStream(_0x60b636,{'flags':'a'}),this[_0x8eb0eb(0x138)]['on']('error',_0x5f2983=>{const _0x5d4560=_0x8eb0eb;console[_0x5d4560(0x15b)]('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x5f2983[_0x5d4560(0x150)]);});}catch(_0x21f657){console[_0x8eb0eb(0x15b)](_0x8eb0eb(0x140),_0x21f657);}}async[a84_0x3322e1(0x14a)](){const _0x32fcb6=a84_0x3322e1;try{const _0x28730a=await readdir(this['logDir']),_0x48f398=new Date()[_0x32fcb6(0x155)]()[_0x32fcb6(0x134)]('T')[0x0];if(_0x28730a[_0x32fcb6(0x14d)](_0x32fcb6(0x162))){const _0x23c7c9=join(this[_0x32fcb6(0x144)],_0x32fcb6(0x162)),_0x26bb03=await stat(_0x23c7c9),_0x8878b1=new Date(_0x26bb03['mtime'])[_0x32fcb6(0x155)]()[_0x32fcb6(0x134)]('T')[0x0];if(_0x8878b1<_0x48f398){const _0x62a0f0=join(this[_0x32fcb6(0x144)],'tdx-'+_0x8878b1+_0x32fcb6(0x153));await rename(_0x23c7c9,_0x62a0f0);}}const _0x3d90c8=await readdir(this[_0x32fcb6(0x144)]),_0x48f824=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x5b8521=_0x3d90c8[_0x32fcb6(0x149)](_0x58f59c=>_0x48f824[_0x32fcb6(0x165)](_0x58f59c));for(const _0x1517d9 of _0x5b8521){const _0x167c2a=join(this[_0x32fcb6(0x144)],_0x1517d9),_0x54addb=join(this['logDir'],_0x1517d9+_0x32fcb6(0x158));try{await pipeline(createReadStream(_0x167c2a),createGzip(),createWriteStream(_0x54addb)),await unlink(_0x167c2a);}catch(_0x440c2b){console[_0x32fcb6(0x15b)](_0x32fcb6(0x152)+_0x1517d9+':',_0x440c2b);}}}catch{}}[a84_0x3322e1(0x154)](..._0x48878d){const _0x5ac085=a84_0x3322e1;if(this[_0x5ac085(0x143)]>LogLevel[_0x5ac085(0x135)])return;const _0xdb3825=formatColoredLogEntry(_0x5ac085(0x154),_0x48878d);this[_0x5ac085(0x138)]?.['write'](_0xdb3825+'\x0a');}[a84_0x3322e1(0x14f)](..._0x5ebd45){const _0x34f332=a84_0x3322e1;if(this[_0x34f332(0x143)]>LogLevel[_0x34f332(0x142)])return;const _0x33ebe3=formatColoredLogEntry(_0x34f332(0x14f),_0x5ebd45);this['logStream']?.[_0x34f332(0x163)](_0x33ebe3+'\x0a');}[a84_0x3322e1(0x136)](..._0x30a2c5){const _0x2b04d5=a84_0x3322e1;if(this[_0x2b04d5(0x143)]>LogLevel[_0x2b04d5(0x157)])return;const _0x9a98bc=formatColoredLogEntry(_0x2b04d5(0x136),_0x30a2c5);!this[_0x2b04d5(0x13c)]&&console['log'](_0x9a98bc),this['logStream']?.[_0x2b04d5(0x163)](_0x9a98bc+'\x0a');}[a84_0x3322e1(0x15a)](..._0x38a320){const _0x3826f8=a84_0x3322e1;if(this[_0x3826f8(0x143)]>LogLevel[_0x3826f8(0x147)])return;const _0x4e0b45=formatColoredLogEntry(_0x3826f8(0x15a),_0x38a320);!this[_0x3826f8(0x13c)]&&console[_0x3826f8(0x15b)](_0x4e0b45),this['logStream']?.['write'](_0x4e0b45+'\x0a');}['error'](..._0x3939a5){const _0x45eb0d=a84_0x3322e1,_0x2e8b0d=formatColoredLogEntry(_0x45eb0d(0x15b),_0x3939a5);!this['fileOnly']&&console[_0x45eb0d(0x15b)](_0x2e8b0d),this[_0x45eb0d(0x138)]?.[_0x45eb0d(0x163)](_0x2e8b0d+'\x0a');}async['close'](){const _0x338b84=a84_0x3322e1;return this[_0x338b84(0x136)]('Proxy\x20session\x20ended'),new Promise(_0x1292bd=>{const _0x74c8f2=_0x338b84;this[_0x74c8f2(0x138)]?this[_0x74c8f2(0x138)]['end'](()=>{_0x1292bd();}):_0x1292bd();});}[a84_0x3322e1(0x145)](){const _0x42b0c3=a84_0x3322e1;return join(this[_0x42b0c3(0x144)],_0x42b0c3(0x162));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a85_0xb169(_0x15e739,_0x5e7e83){const _0x217639=a85_0x2176();return a85_0xb169=function(_0xb169a9,_0x599505){_0xb169a9=_0xb169a9-0x79;let _0x5933fa=_0x217639[_0xb169a9];return _0x5933fa;},a85_0xb169(_0x15e739,_0x5e7e83);}function a85_0x2176(){const _0x45eccf=['indent','segment','643776wnRhKa','\x20folder','716934LEaelp','463534onKMXI','map','\x20segment','📁\x20','type','showTreeLines','metadata','3RQbRLa','13392rwNHiH','icon','push','3735389ivbvMK','showIcons','└──\x20','showMetadata','length','9176ziLnwM','folderCount','3363415dlyYMi','name','localeCompare','├──\x20','dim','join','segmentCount','children','\x20\x20\x20\x20','folder','\x20\x20\x20','population','2110784YHrlHj'];a85_0x2176=function(){return _0x45eccf;};return a85_0x2176();}(function(_0x128217,_0x37f9f7){const _0x8c98af=a85_0xb169,_0x286e2f=_0x128217();while(!![]){try{const _0x307bc6=-parseInt(_0x8c98af(0x92))/0x1*(-parseInt(_0x8c98af(0x8b))/0x2)+-parseInt(_0x8c98af(0x88))/0x3+parseInt(_0x8c98af(0x85))/0x4+parseInt(_0x8c98af(0x79))/0x5+-parseInt(_0x8c98af(0x8a))/0x6+parseInt(_0x8c98af(0x96))/0x7+parseInt(_0x8c98af(0x9b))/0x8*(-parseInt(_0x8c98af(0x93))/0x9);if(_0x307bc6===_0x37f9f7)break;else _0x286e2f['push'](_0x286e2f['shift']());}catch(_0x36f7e9){_0x286e2f['push'](_0x286e2f['shift']());}}}(a85_0x2176,0x5ed8a));import{formatRows}from'./formatters.js';import a85_0x5e8c68 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x23f199,_0x434956={},_0x4fa96f=0x0,_0x23953e=''){const _0x3305b2=a85_0xb169,_0x2e8828={...DEFAULT_OPTIONS,..._0x434956},_0x526e3b=[],_0x53a61e=[..._0x23f199]['sort']((_0xd92a19,_0x13da43)=>_0xd92a19[_0x3305b2(0x7a)][_0x3305b2(0x7b)](_0x13da43[_0x3305b2(0x7a)]));for(let _0x15dab8=0x0;_0x15dab8<_0x53a61e[_0x3305b2(0x9a)];_0x15dab8++){const _0x399309=_0x53a61e[_0x15dab8],_0x49b534=_0x15dab8===_0x53a61e[_0x3305b2(0x9a)]-0x1;let _0x9b8af8='';_0x4fa96f>0x0&&(_0x9b8af8+=_0x23953e);_0x2e8828[_0x3305b2(0x90)]&&_0x4fa96f>0x0&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)](_0x49b534?_0x3305b2(0x98):_0x3305b2(0x7c)));_0x2e8828[_0x3305b2(0x97)]&&(_0x9b8af8+=_0x399309['type']===_0x3305b2(0x82)?_0x3305b2(0x8e):'🎯\x20');_0x9b8af8+=_0x399309[_0x3305b2(0x7a)];if(_0x2e8828[_0x3305b2(0x99)]){if(_0x399309[_0x3305b2(0x8f)]===_0x3305b2(0x82)){const _0x56f83b=[];_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]&&_0x56f83b[_0x3305b2(0x95)](_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]+_0x3305b2(0x8d)+(_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]!==0x1?'s':'')),_0x399309['metadata'][_0x3305b2(0x9c)]&&_0x56f83b[_0x3305b2(0x95)](_0x399309[_0x3305b2(0x91)][_0x3305b2(0x9c)]+_0x3305b2(0x89)+(_0x399309[_0x3305b2(0x91)]['folderCount']!==0x1?'s':'')),_0x56f83b[_0x3305b2(0x9a)]>0x0&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)]('\x20('+_0x56f83b[_0x3305b2(0x7e)](',\x20')+')'));}else _0x399309[_0x3305b2(0x8f)]===_0x3305b2(0x87)&&_0x399309[_0x3305b2(0x84)]!==undefined&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)]('\x20('+formatRows(_0x399309[_0x3305b2(0x84)])+')'));}_0x526e3b['push'](_0x9b8af8);if(_0x399309[_0x3305b2(0x80)]&&_0x399309['children'][_0x3305b2(0x9a)]>0x0){let _0x4acffb;if(_0x4fa96f===0x0)_0x4acffb='';else _0x2e8828[_0x3305b2(0x90)]?_0x4acffb=_0x23953e+(_0x49b534?_0x3305b2(0x81):a85_0x5e8c68[_0x3305b2(0x7d)]('│')+_0x3305b2(0x83)):_0x4acffb=_0x23953e+_0x2e8828[_0x3305b2(0x86)];const _0x3bcce8=formatTree(_0x399309['children'],_0x2e8828,_0x4fa96f+0x1,_0x4acffb);_0x526e3b[_0x3305b2(0x95)](_0x3bcce8);}}return _0x526e3b[_0x3305b2(0x7e)]('\x0a');}export function formatFlatList(_0x345a9c,_0x5dcc66,_0x2be16e={}){const _0x5db8d9=a85_0xb169,_0x12fd5f={...DEFAULT_OPTIONS,..._0x2be16e},_0x2eda31=[];for(const _0x5c39ab of _0x345a9c){_0x2eda31[_0x5db8d9(0x95)]({'name':_0x5c39ab[_0x5db8d9(0x7a)],'icon':_0x12fd5f[_0x5db8d9(0x97)]?'📁':'','metadata':undefined});}for(const _0x5aea6a of _0x5dcc66){const _0x1e033c=_0x12fd5f[_0x5db8d9(0x99)]&&_0x5aea6a[_0x5db8d9(0x84)]!==undefined?a85_0x5e8c68[_0x5db8d9(0x7d)]('\x20('+formatRows(_0x5aea6a['population'])+')'):'';_0x2eda31[_0x5db8d9(0x95)]({'name':_0x5aea6a[_0x5db8d9(0x7a)],'icon':_0x12fd5f[_0x5db8d9(0x97)]?'🎯':'','metadata':_0x1e033c});}_0x2eda31['sort']((_0x2e1c1c,_0x2e66d1)=>_0x2e1c1c['name'][_0x5db8d9(0x7b)](_0x2e66d1[_0x5db8d9(0x7a)]));if(_0x2eda31[_0x5db8d9(0x9a)]===0x0)return'(empty)';const _0x52f829=_0x2eda31[_0x5db8d9(0x8c)](_0x287bb0=>{const _0x4cf30b=_0x5db8d9,_0x6a57a6=_0x287bb0[_0x4cf30b(0x94)]?_0x287bb0[_0x4cf30b(0x94)]+'\x20':'',_0x5f3265=_0x287bb0[_0x4cf30b(0x91)]||'';return''+_0x6a57a6+_0x287bb0[_0x4cf30b(0x7a)]+_0x5f3265;});return _0x52f829[_0x5db8d9(0x7e)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48c5f1,_0x3b36cd){const _0x236482=a86_0x5da7,_0x566e04=_0x48c5f1();while(!![]){try{const _0x5b9c1a=-parseInt(_0x236482(0x154))/0x1*(parseInt(_0x236482(0x137))/0x2)+parseInt(_0x236482(0x15a))/0x3+-parseInt(_0x236482(0x14d))/0x4+-parseInt(_0x236482(0x144))/0x5*(parseInt(_0x236482(0x155))/0x6)+-parseInt(_0x236482(0x158))/0x7+-parseInt(_0x236482(0x153))/0x8*(-parseInt(_0x236482(0x13f))/0x9)+parseInt(_0x236482(0x13a))/0xa*(parseInt(_0x236482(0x14f))/0xb);if(_0x5b9c1a===_0x3b36cd)break;else _0x566e04['push'](_0x566e04['shift']());}catch(_0x4af8bf){_0x566e04['push'](_0x566e04['shift']());}}}(a86_0x4608,0xa16bb));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a86_0x45da0f from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x12c85e=getCacheDir();return join(_0x12c85e,'last_version_check');}function a86_0x4608(){const _0x28a2b9=['parse','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','data','currentVersion','statusCode','3859928eLBeGx','toISOString','23201761GmMLif','version','\x0aRun:\x20','destroy','3287072KRHkzV','12869WeZEMp','2835918ZVKghW','latestVersion','Request\x20timeout','4638683XpHEsD','green','2499966qkhgNs','Update\x20available:','gray','dim','92XEbAaz','cyan','end','10UwYNjA','\x0aUpdate\x20available:\x20','error','write','stringify','9NcQvGR','stderr','yellow','env','isTTY','5BGQgTg','now','HTTP\x20'];a86_0x4608=function(){return _0x28a2b9;};return a86_0x4608();}function a86_0x5da7(_0x56538,_0x1a097e){const _0x460815=a86_0x4608();return a86_0x5da7=function(_0x5da773,_0xd0a749){_0x5da773=_0x5da773-0x134;let _0xc2cc70=_0x460815[_0x5da773];return _0xc2cc70;},a86_0x5da7(_0x56538,_0x1a097e);}function readCache(){try{const _0x2e3437=getCacheFilePath(),_0x285fc3=readFileSync(_0x2e3437,'utf-8');return JSON['parse'](_0x285fc3);}catch{return null;}}function writeCache(_0x20abde){const _0x3a3801=a86_0x5da7;try{const _0x12ef1=getCacheDir();mkdirSync(_0x12ef1,{'recursive':!![]});const _0xaa919d={'lastCheck':new Date()[_0x3a3801(0x14e)](),'latestVersion':_0x20abde},_0x4029ff=getCacheFilePath();writeFileSync(_0x4029ff,JSON[_0x3a3801(0x13e)](_0xaa919d,null,0x2),_0x3a3801(0x148));}catch{}}function isCacheValid(_0x160b63){const _0x5ca0cc=a86_0x5da7;if(!_0x160b63)return![];const _0x5031bd=new Date(_0x160b63['lastCheck'])['getTime'](),_0x3609c8=Date[_0x5ca0cc(0x145)]();return _0x3609c8-_0x5031bd<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x5ace73,_0x81a069)=>{const _0x372401=a86_0x5da7,_0x5e4e0d=get(NPM_REGISTRY_URL,_0x17038a=>{const _0x337828=a86_0x5da7;if(_0x17038a[_0x337828(0x14c)]!==0xc8){clearTimeout(_0x2c78a6),_0x81a069(new Error(_0x337828(0x146)+_0x17038a[_0x337828(0x14c)]));return;}let _0x48e138='';_0x17038a['on'](_0x337828(0x14a),_0x2f27b0=>{_0x48e138+=_0x2f27b0;}),_0x17038a['on'](_0x337828(0x139),()=>{const _0x3e704c=_0x337828;clearTimeout(_0x2c78a6);try{const _0x1f7ff8=JSON[_0x3e704c(0x147)](_0x48e138);if(!valid(_0x1f7ff8[_0x3e704c(0x150)])){_0x81a069(new Error('Invalid\x20version\x20format'));return;}_0x5ace73(_0x1f7ff8[_0x3e704c(0x150)]);}catch(_0x5861e9){_0x81a069(_0x5861e9);}});})['on'](_0x372401(0x13c),_0x1b9d0f=>{clearTimeout(_0x2c78a6),_0x81a069(_0x1b9d0f);}),_0x2c78a6=setTimeout(()=>{const _0xdaf9c=_0x372401;_0x5e4e0d[_0xdaf9c(0x152)](),_0x81a069(new Error(_0xdaf9c(0x157)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x560823){const _0x3f7fe4=a86_0x5da7;try{const _0x5ecf41=readCache();if(isCacheValid(_0x5ecf41)){const _0x354e99=gt(_0x5ecf41[_0x3f7fe4(0x156)],_0x560823);return{'updateAvailable':_0x354e99,'currentVersion':_0x560823,'latestVersion':_0x5ecf41[_0x3f7fe4(0x156)]};}const _0x211c56=await fetchLatestVersion();writeCache(_0x211c56);const _0x4d78c6=gt(_0x211c56,_0x560823);return{'updateAvailable':_0x4d78c6,'currentVersion':_0x560823,'latestVersion':_0x211c56};}catch{return null;}}export function displayUpdateNotification(_0xef4ec6){const _0xd5cda1=a86_0x5da7;if(!_0xef4ec6['updateAvailable'])return;const _0x531298=process[_0xd5cda1(0x140)][_0xd5cda1(0x143)]&&!process[_0xd5cda1(0x142)]['NO_COLOR'],_0x375148=_0x531298?a86_0x45da0f[_0xd5cda1(0x135)]('→'):'→',_0x364a0a=_0x531298?a86_0x45da0f[_0xd5cda1(0x136)](_0xef4ec6[_0xd5cda1(0x14b)]):_0xef4ec6[_0xd5cda1(0x14b)],_0x2e959d=_0x531298?a86_0x45da0f[_0xd5cda1(0x159)](_0xef4ec6[_0xd5cda1(0x156)]):_0xef4ec6[_0xd5cda1(0x156)],_0x4b44c8=_0x531298?a86_0x45da0f[_0xd5cda1(0x138)](_0xd5cda1(0x149)):_0xd5cda1(0x149),_0x23ca6a=_0x531298?'\x0a'+a86_0x45da0f[_0xd5cda1(0x141)](_0xd5cda1(0x134))+'\x20'+_0x364a0a+'\x20'+_0x375148+'\x20'+_0x2e959d+'\x0a'+a86_0x45da0f[_0xd5cda1(0x136)]('Run:')+'\x20'+_0x4b44c8+'\x0a':_0xd5cda1(0x13b)+_0x364a0a+'\x20'+_0x375148+'\x20'+_0x2e959d+_0xd5cda1(0x151)+_0x4b44c8+'\x0a';process['stderr'][_0xd5cda1(0x13d)](_0x23ca6a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2acfe0,_0x96f27c){const _0x348373=a87_0x189f,_0x3eeb25=_0x2acfe0();while(!![]){try{const _0x9d88c7=-parseInt(_0x348373(0x84))/0x1*(parseInt(_0x348373(0x7d))/0x2)+parseInt(_0x348373(0x7f))/0x3+-parseInt(_0x348373(0x7a))/0x4*(-parseInt(_0x348373(0x81))/0x5)+-parseInt(_0x348373(0x82))/0x6*(-parseInt(_0x348373(0x80))/0x7)+parseInt(_0x348373(0x79))/0x8*(-parseInt(_0x348373(0x7e))/0x9)+-parseInt(_0x348373(0x7c))/0xa+parseInt(_0x348373(0x7b))/0xb;if(_0x9d88c7===_0x96f27c)break;else _0x3eeb25['push'](_0x3eeb25['shift']());}catch(_0x3487c1){_0x3eeb25['push'](_0x3eeb25['shift']());}}}(a87_0x3fe3,0x6c391));function a87_0x189f(_0x5e080b,_0x40846c){const _0x3fe36e=a87_0x3fe3();return a87_0x189f=function(_0x189f29,_0x23b634){_0x189f29=_0x189f29-0x79;let _0x178c68=_0x3fe36e[_0x189f29];return _0x178c68;},a87_0x189f(_0x5e080b,_0x40846c);}function a87_0x3fe3(){const _0x38d2f0=['711bwPDgI','406035emwzfg','3716881CDhOGC','30GpqTLP','6Bqctmg','.digdag','198NosZCf','5944ctslnF','109948UlpebR','6707470ZyTNDg','4903740WJyejl','4532HuMiQF'];a87_0x3fe3=function(){return _0x38d2f0;};return a87_0x3fe3();}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1036cf){const _0x3f911f=a87_0x189f;if(_0x1036cf===_0x3f911f(0x83))return!![];if(_0x1036cf['startsWith']('.'))return![];return!![];}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasuredata/tdx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build:info": "bash scripts/generate-build-info.sh",
|
|
31
31
|
"build:ts": "tsc && chmod +x dist/cli.js && cp src/build-info.json dist/build-info.json",
|
|
32
|
+
"build:install": "npm run build:ts && npm install -g",
|
|
32
33
|
"build:obfuscate": "javascript-obfuscator ./dist --output ./dist",
|
|
33
34
|
"build": "npm run build:info && npm run build:ts && npm run build:obfuscate",
|
|
34
35
|
"prepublishOnly": "npm run build",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"dependencies": {
|
|
68
69
|
"@fastify/cors": "^11.1.0",
|
|
69
70
|
"@types/json-bigint": "^1.0.4",
|
|
71
|
+
"@zowe/secrets-for-zowe-sdk": "^8.29.4",
|
|
70
72
|
"chalk": "^5.3.0",
|
|
71
73
|
"cli-table3": "^0.6.5",
|
|
72
74
|
"commander": "^14.0.2",
|