@treasuredata/tdx 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/cdp-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-client.js +1 -1
- package/dist/client/trino-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/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/command.js +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.js +1 -1
- package/dist/core/global-context.js +1 -1
- 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.d.ts +20 -2
- package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/anthropic-adapter.js.map +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/server.js.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/database.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/table.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/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/tree-formatter.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x590937,_0x5894c3){const _0x13faf8=a67_0x12c7,_0x244a67=_0x590937();while(!![]){try{const _0x5dbc85=parseInt(_0x13faf8(0x119))/0x1*(parseInt(_0x13faf8(0x125))/0x2)+-parseInt(_0x13faf8(0x11c))/0x3+-parseInt(_0x13faf8(0x11b))/0x4+parseInt(_0x13faf8(0x11a))/0x5*(parseInt(_0x13faf8(0x11f))/0x6)+-parseInt(_0x13faf8(0x121))/0x7+-parseInt(_0x13faf8(0x120))/0x8+-parseInt(_0x13faf8(0x122))/0x9*(-parseInt(_0x13faf8(0x11e))/0xa);if(_0x5dbc85===_0x5894c3)break;else _0x244a67['push'](_0x244a67['shift']());}catch(_0x376720){_0x244a67['push'](_0x244a67['shift']());}}}(a67_0x5bf1,0x5240e));export function validateLimitOption(_0x3c5174){const _0x3b99ac=a67_0x12c7;if(!Number['isInteger'](_0x3c5174))return{'isValid':![],'error':_0x3b99ac(0x11d)+_0x3c5174+_0x3b99ac(0x127)};if(_0x3c5174<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3c5174+_0x3b99ac(0x124)};return{'isValid':!![],'value':_0x3c5174};}function a67_0x5bf1(){const _0x344cdf=['Invalid\x20limit\x20value:\x20','30RDOSLj','3685296LbcwJV','1954752sieNik','2778650ONcFuZ','432261jVQFbc','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','386NkNzQE','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','number','2454MKavKX','5maHpgB','322880CAucbQ','519003wEfIuV'];a67_0x5bf1=function(){return _0x344cdf;};return a67_0x5bf1();}function a67_0x12c7(_0x22aeca,_0x236c59){const _0x5bf17d=a67_0x5bf1();return a67_0x12c7=function(_0x12c77d,_0x2084cf){_0x12c77d=_0x12c77d-0x119;let _0x22a2fc=_0x5bf17d[_0x12c77d];return _0x22a2fc;},a67_0x12c7(_0x22aeca,_0x236c59);}export function validateTimeoutOption(_0x3a8ee2,_0x3a6a6d=0x1e){const _0x5b2443=a67_0x12c7;if(_0x3a8ee2===undefined)return{'isValid':!![],'value':_0x3a6a6d};const _0x18bcd7=typeof _0x3a8ee2===_0x5b2443(0x129)?_0x3a8ee2:parseFloat(_0x3a8ee2);if(isNaN(_0x18bcd7))return{'isValid':![],'error':_0x5b2443(0x126)+_0x3a8ee2+_0x5b2443(0x128)};if(_0x18bcd7<=0x0)return{'isValid':![],'error':_0x5b2443(0x126)+_0x18bcd7+_0x5b2443(0x123)};return{'isValid':!![],'value':_0x18bcd7};}
|
package/dist/utils/port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58f645,_0x2831b8){const _0x9b1897=a68_0x22aa,_0x37c644=_0x58f645();while(!![]){try{const _0x38d57e=-parseInt(_0x9b1897(0x1df))/0x1*(parseInt(_0x9b1897(0x1ea))/0x2)+parseInt(_0x9b1897(0x1dc))/0x3*(-parseInt(_0x9b1897(0x1e2))/0x4)+parseInt(_0x9b1897(0x1d9))/0x5+parseInt(_0x9b1897(0x1e4))/0x6+-parseInt(_0x9b1897(0x1e8))/0x7+-parseInt(_0x9b1897(0x1dd))/0x8+parseInt(_0x9b1897(0x1e0))/0x9*(parseInt(_0x9b1897(0x1e1))/0xa);if(_0x38d57e===_0x2831b8)break;else _0x37c644['push'](_0x37c644['shift']());}catch(_0xb821b3){_0x37c644['push'](_0x37c644['shift']());}}}(a68_0x4ddc,0x2f443));function a68_0x4ddc(){const _0x191dcf=['1OJadcl','2070XidjCN','2730ufVAin','30412jQPGCz','0.0.0.0','1518324ETDopo','once','EADDRINUSE','error','541163lPhcDT','code','367730KdqTbB','listening','1242460wlHvHL','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','39MgGimG','85760noobYD','close'];a68_0x4ddc=function(){return _0x191dcf;};return a68_0x4ddc();}import{createServer}from'node:net';function a68_0x22aa(_0x371fa5,_0x372811){const _0x4ddcc6=a68_0x4ddc();return a68_0x22aa=function(_0x22aad9,_0xa5354d){_0x22aad9=_0x22aad9-0x1d9;let _0x584ba5=_0x4ddcc6[_0x22aad9];return _0x584ba5;},a68_0x22aa(_0x371fa5,_0x372811);}export async function isPortAvailable(_0x3f07c5){return new Promise(_0x3cd63c=>{const _0x2b61e8=a68_0x22aa,_0x3d358d=createServer();_0x3d358d['once'](_0x2b61e8(0x1e7),_0x21d1dc=>{const _0x21473c=_0x2b61e8;_0x21d1dc[_0x21473c(0x1e9)]===_0x21473c(0x1e6)?_0x3cd63c(![]):_0x3cd63c(![]);}),_0x3d358d[_0x2b61e8(0x1e5)](_0x2b61e8(0x1eb),()=>{const _0x387784=_0x2b61e8;_0x3d358d[_0x387784(0x1de)](),_0x3cd63c(!![]);}),_0x3d358d['listen'](_0x3f07c5,_0x2b61e8(0x1e3));});}export async function findAvailablePort(_0x1288e9=0xfa0,_0x5db9e3=0x64){const _0x153aee=a68_0x22aa;for(let _0x6277bf=0x0;_0x6277bf<_0x5db9e3;_0x6277bf++){const _0x5b3a76=_0x1288e9+_0x6277bf;if(await isPortAvailable(_0x5b3a76))return _0x5b3a76;}throw new Error(_0x153aee(0x1db)+_0x1288e9+_0x153aee(0x1da)+(_0x1288e9+_0x5db9e3-0x1));}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x1d9f56=a69_0x223f;function a69_0x2e35(){const _0x469552=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','utf-8','fish','replace','trim','comm','ppid','csh','730dhBPKg','9504702nAaTPv','pop','35KhEijP','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','5wxOThR','DEBUG','length','pid','powershell','bash','140254OtlBpg','has','60731uzMAAC','elvish','\x20-o\x20ppid=,comm=','25wOORUK','dash','11332896Ycnbsu','filter','pwsh','split','1084cRHYWa','platform','win32',',\x20using\x20fallback','6033BgsWeM','855810fwDXvl','wmic\x20process\x20where\x20ProcessId=','zsh','kill','error','\x20on\x20POSIX:','ksh','join','614624RAvKuy','env'];a69_0x2e35=function(){return _0x469552;};return a69_0x2e35();}(function(_0x2a1047,_0x2670a8){const _0x268617=a69_0x223f,_0x88c75b=_0x2a1047();while(!![]){try{const _0x3c8a13=parseInt(_0x268617(0x84))/0x1*(parseInt(_0x268617(0x8a))/0x2)+-parseInt(_0x268617(0x99))/0x3*(parseInt(_0x268617(0x95))/0x4)+-parseInt(_0x268617(0x8f))/0x5*(-parseInt(_0x268617(0x9a))/0x6)+-parseInt(_0x268617(0x82))/0x7*(parseInt(_0x268617(0xa2))/0x8)+parseInt(_0x268617(0x80))/0x9+-parseInt(_0x268617(0xac))/0xa*(-parseInt(_0x268617(0x8c))/0xb)+-parseInt(_0x268617(0x91))/0xc;if(_0x3c8a13===_0x2670a8)break;else _0x88c75b['push'](_0x88c75b['shift']());}catch(_0xe92e31){_0x88c75b['push'](_0x88c75b['shift']());}}}(a69_0x2e35,0x9e8b0));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x1d9f56(0x89),a69_0x1d9f56(0x9c),'sh',a69_0x1d9f56(0xa6),a69_0x1d9f56(0xa0),'tcsh',a69_0x1d9f56(0xab),a69_0x1d9f56(0x90),a69_0x1d9f56(0x93),a69_0x1d9f56(0x88),'nu','ion',a69_0x1d9f56(0x8d),'xonsh']);function getProcessInfoWindows(_0x4ce5cf){const _0x1575c3=a69_0x1d9f56;try{const _0x428144=execSync(_0x1575c3(0x9b)+_0x4ce5cf+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1575c3(0xa5),'windowsHide':!![]})[_0x1575c3(0xa8)](),_0x4c47ed=_0x428144[_0x1575c3(0x94)]('\x0a')[_0x1575c3(0x92)](_0x1c2a81=>_0x1c2a81[_0x1575c3(0xa8)]());if(_0x4c47ed[_0x1575c3(0x86)]<0x2)return null;const _0x1019f8=_0x4c47ed[_0x4c47ed[_0x1575c3(0x86)]-0x1]['split'](',');if(_0x1019f8[_0x1575c3(0x86)]<0x3)return null;const _0x3249a3=_0x1019f8[0x1]?.[_0x1575c3(0xa8)]()||'',_0x1c9f24=parseInt(_0x1019f8[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1c9f24)||!_0x3249a3)return null;return{'pid':_0x4ce5cf,'ppid':_0x1c9f24,'comm':_0x3249a3[_0x1575c3(0xa7)](/\.exe$/i,'')};}catch(_0x390c21){return process['env'][_0x1575c3(0x85)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4ce5cf+'\x20on\x20Windows:',_0x390c21),null;}}function getProcessInfoPosix(_0x276d86){const _0x37817d=a69_0x1d9f56;try{const _0x4690de=execSync('ps\x20-p\x20'+_0x276d86+_0x37817d(0x8e),{'encoding':_0x37817d(0xa5)})[_0x37817d(0xa8)](),[_0x2f6b85,..._0x32282d]=_0x4690de['split'](/\s+/),_0x59c7a7=parseInt(_0x2f6b85,0xa),_0x2f094f=_0x32282d[_0x37817d(0xa1)]('\x20');if(isNaN(_0x59c7a7))return null;return{'pid':_0x276d86,'ppid':_0x59c7a7,'comm':_0x2f094f};}catch(_0x3616a5){return process[_0x37817d(0xa3)][_0x37817d(0x85)]&&console[_0x37817d(0x9e)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x276d86+_0x37817d(0x9f),_0x3616a5),null;}}function getProcessInfo(_0x3a7d40){const _0x26acc1=a69_0x1d9f56;if(process[_0x26acc1(0x96)]===_0x26acc1(0x97))return getProcessInfoWindows(_0x3a7d40);return getProcessInfoPosix(_0x3a7d40);}function isShell(_0x3e85ec){const _0x56cfad=a69_0x1d9f56,_0x135c04=_0x3e85ec[_0x56cfad(0xa7)](/^-/,'')[_0x56cfad(0x94)]('/')[_0x56cfad(0x81)]()||'';return SHELL_NAMES[_0x56cfad(0x8b)](_0x135c04['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x2eddc5=a69_0x1d9f56;let _0x3613fd=process['ppid'];const _0x5674e6=0xa;let _0x3cae39=0x0;while(_0x3cae39<_0x5674e6){const _0xe561eb=getProcessInfo(_0x3613fd);if(!_0xe561eb){process['env'][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0xa4)+_0x3613fd+_0x2eddc5(0x98));break;}if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];if(_0xe561eb['ppid']===0x0||_0xe561eb[_0x2eddc5(0xaa)]===0x1){if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];break;}_0x3613fd=_0xe561eb[_0x2eddc5(0xaa)],_0x3cae39++;}return process[_0x2eddc5(0xa3)][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0x83)),process[_0x2eddc5(0xaa)];}function a69_0x223f(_0x236494,_0x264299){const _0x2e35ad=a69_0x2e35();return a69_0x223f=function(_0x223f93,_0x1ec415){_0x223f93=_0x223f93-0x80;let _0x4115fd=_0x2e35ad[_0x223f93];return _0x4115fd;},a69_0x223f(_0x236494,_0x264299);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5b81c6){const _0x11ec70=a69_0x1d9f56;try{return process[_0x11ec70(0x9d)](_0x5b81c6,0x0),!![];}catch{return![];}}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a70_0x2dda(_0x45fea0,_0x59897c){const _0x224e8b=a70_0x224e();return a70_0x2dda=function(_0x2dda12,_0x585493){_0x2dda12=_0x2dda12-0x1e1;let _0x59ec1c=_0x224e8b[_0x2dda12];return _0x59ec1c;},a70_0x2dda(_0x45fea0,_0x59897c);}(function(_0x30760a,_0x1a319a){const _0x224dee=a70_0x2dda,_0x52bd58=_0x30760a();while(!![]){try{const _0x2e5aff=parseInt(_0x224dee(0x1ed))/0x1*(parseInt(_0x224dee(0x1e8))/0x2)+-parseInt(_0x224dee(0x1e3))/0x3+parseInt(_0x224dee(0x1e2))/0x4+-parseInt(_0x224dee(0x1e1))/0x5+-parseInt(_0x224dee(0x1e4))/0x6*(-parseInt(_0x224dee(0x1eb))/0x7)+parseInt(_0x224dee(0x1e5))/0x8+parseInt(_0x224dee(0x1e9))/0x9*(-parseInt(_0x224dee(0x1ea))/0xa);if(_0x2e5aff===_0x1a319a)break;else _0x52bd58['push'](_0x52bd58['shift']());}catch(_0x58cee2){_0x52bd58['push'](_0x52bd58['shift']());}}}(a70_0x224e,0x6f0ab));import*as a70_0x575b38 from'readline';function a70_0x224e(){const _0x32af68=['54101sCzKcT','toLowerCase','2908100dSdxCP','783292bSpons','2201676QNQIHB','1994676bIuphg','7241712thbhjj','question','yes','16INQuAv','863568ILzyFJ','10FmIqjU','7uPvUHJ','stdout'];a70_0x224e=function(){return _0x32af68;};return a70_0x224e();}export async function confirm(_0x53a520){const _0x250cd5=a70_0x2dda,_0x340f9a=a70_0x575b38['createInterface']({'input':process['stdin'],'output':process[_0x250cd5(0x1ec)]});return new Promise(_0x34b04b=>{const _0x1e7f00=_0x250cd5;_0x340f9a[_0x1e7f00(0x1e6)](_0x53a520+'\x20(y/N):\x20',_0x6e58dc=>{const _0x54492f=_0x1e7f00;_0x340f9a['close'](),_0x34b04b(_0x6e58dc[_0x54492f(0x1ee)]()==='y'||_0x6e58dc[_0x54492f(0x1ee)]()===_0x54492f(0x1e7));});});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a71_0x19cd(_0xd201cb,_0x32f908){const _0x388630=a71_0x3886();return a71_0x19cd=function(_0x19cdd5,_0x2b88c0){_0x19cdd5=_0x19cdd5-0x11d;let _0x1598fe=_0x388630[_0x19cdd5];return _0x1598fe;},a71_0x19cd(_0xd201cb,_0x32f908);}(function(_0x1e5353,_0x2fc290){const _0x1c590d=a71_0x19cd,_0x4aca7a=_0x1e5353();while(!![]){try{const _0x1678da=parseInt(_0x1c590d(0x123))/0x1*(-parseInt(_0x1c590d(0x134))/0x2)+parseInt(_0x1c590d(0x121))/0x3+-parseInt(_0x1c590d(0x12b))/0x4+-parseInt(_0x1c590d(0x11d))/0x5*(parseInt(_0x1c590d(0x131))/0x6)+-parseInt(_0x1c590d(0x12e))/0x7+-parseInt(_0x1c590d(0x132))/0x8+parseInt(_0x1c590d(0x12f))/0x9;if(_0x1678da===_0x2fc290)break;else _0x4aca7a['push'](_0x4aca7a['shift']());}catch(_0x2fcb3b){_0x4aca7a['push'](_0x4aca7a['shift']());}}}(a71_0x3886,0xe6ebb));export function parsePath(_0x3c264b){const _0x57b0b7=a71_0x19cd;if(!_0x3c264b||_0x3c264b[_0x57b0b7(0x137)]()==='')throw new Error(_0x57b0b7(0x125));const _0x42fd92=_0x3c264b[_0x57b0b7(0x137)]();if(_0x42fd92==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3c264b};const _0x4197ec=_0x42fd92[_0x57b0b7(0x136)]('/')?_0x42fd92['substring'](0x1):_0x42fd92,_0x461ed1=_0x4197ec[_0x57b0b7(0x12a)]('/')['filter'](_0xa6559c=>_0xa6559c!=='');if(_0x461ed1[_0x57b0b7(0x128)]===0x0)throw new Error(_0x57b0b7(0x11f));const _0x2e0615=_0x42fd92[_0x57b0b7(0x136)]('/')||!isRelativePathSegment(_0x461ed1[0x0]);for(const _0x770bce of _0x461ed1){validatePathSegment(_0x770bce);}return{'segments':_0x461ed1,'isAbsolute':_0x2e0615,'raw':_0x3c264b};}function isRelativePathSegment(_0x1eb992){return _0x1eb992==='.'||_0x1eb992==='..';}function validatePathSegment(_0x200083){const _0x22744f=a71_0x19cd;if(_0x200083==='')throw new Error(_0x22744f(0x12d));if(_0x200083==='.'||_0x200083==='..')return;if(/[\x00-\x1F\x7F]/[_0x22744f(0x124)](_0x200083))throw new Error(_0x22744f(0x12c)+_0x200083);if(_0x200083!==_0x200083[_0x22744f(0x137)]()){}}export function validatePath(_0x5da5e3){const _0x144676=a71_0x19cd;if(_0x5da5e3[_0x144676(0x129)][_0x144676(0x128)]===0x0&&!_0x5da5e3['isAbsolute'])throw new Error(_0x144676(0x130));if(_0x5da5e3[_0x144676(0x11e)]){if(_0x5da5e3[_0x144676(0x129)][0x0]==='..')throw new Error(_0x144676(0x138));let _0x5a56cd=0x0;for(const _0x98d03d of _0x5da5e3[_0x144676(0x129)]){if(_0x98d03d==='..'){if(_0x5a56cd===0x0)throw new Error(_0x144676(0x122));_0x5a56cd--;}else _0x98d03d!=='.'&&_0x5a56cd++;}}}export function joinPaths(_0x5ed61b,_0x16603b){const _0x569995=a71_0x19cd;if(!_0x5ed61b||_0x5ed61b==='/')return _0x16603b;if(!_0x16603b||_0x16603b==='.')return _0x5ed61b;if(_0x16603b[_0x569995(0x136)]('/'))return _0x16603b;const _0x4cbdaf=parsePath(_0x5ed61b),_0x5b7359=parsePath(_0x16603b),_0x3da55d=[..._0x4cbdaf[_0x569995(0x129)]];for(const _0x54e8fb of _0x5b7359[_0x569995(0x129)]){if(_0x54e8fb==='.')continue;else{if(_0x54e8fb==='..'){if(_0x3da55d['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x3da55d[_0x569995(0x127)]();}else _0x3da55d[_0x569995(0x120)](_0x54e8fb);}}const _0x332b1e=_0x3da55d[_0x569995(0x126)]('/');return _0x4cbdaf['raw']['startsWith']('/')?'/'+_0x332b1e:_0x332b1e;}export function normalizePath(_0x1eae60){const _0xaf8b3b=a71_0x19cd,_0x4db3a7=parsePath(_0x1eae60),_0x4f96f6=[];for(const _0x4a1a94 of _0x4db3a7['segments']){if(_0x4a1a94==='.')continue;else{if(_0x4a1a94==='..'){if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0){if(_0x4db3a7[_0xaf8b3b(0x11e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x4f96f6[_0xaf8b3b(0x120)]('..');}else _0x4f96f6[_0x4f96f6[_0xaf8b3b(0x128)]-0x1]==='..'?_0x4f96f6[_0xaf8b3b(0x120)]('..'):_0x4f96f6['pop']();}else _0x4f96f6[_0xaf8b3b(0x120)](_0x4a1a94);}}if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0)return _0x4db3a7[_0xaf8b3b(0x11e)]?'/':'.';const _0x5c10ff=_0x4f96f6['join']('/');return _0x4db3a7[_0xaf8b3b(0x133)][_0xaf8b3b(0x136)]('/')?'/'+_0x5c10ff:_0x5c10ff;}function a71_0x3886(){const _0x55d792=['66mlDGgF','12465856bwEJvt','raw','2OTUJKR','slice','startsWith','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20split\x20empty\x20path','31450TBXWKZ','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','push','5610879JKrvRR','Path\x20attempts\x20to\x20navigate\x20above\x20root','227455CElAlV','test','Path\x20cannot\x20be\x20empty','join','pop','length','segments','split','4486692hIkAFs','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20segment\x20cannot\x20be\x20empty','1649284qSQKum','20589480ILMgYF','Relative\x20path\x20cannot\x20be\x20empty'];a71_0x3886=function(){return _0x55d792;};return a71_0x3886();}export function getParentPath(_0x1e650a){const _0x58f2cd=a71_0x19cd,_0x547769=parsePath(_0x1e650a);if(_0x547769[_0x58f2cd(0x129)][_0x58f2cd(0x128)]<=0x1)return'/';const _0x2063d1=_0x547769['segments']['slice'](0x0,-0x1)[_0x58f2cd(0x126)]('/');return _0x547769[_0x58f2cd(0x133)][_0x58f2cd(0x136)]('/')?'/'+_0x2063d1:_0x2063d1;}export function getBaseName(_0x447862){const _0x46462d=a71_0x19cd,_0x417ee3=parsePath(_0x447862);return _0x417ee3[_0x46462d(0x129)][_0x417ee3[_0x46462d(0x129)][_0x46462d(0x128)]-0x1]||'';}export function isChildPath(_0x12ec09,_0x41d911){const _0xa58e2b=a71_0x19cd,_0x40b303=parsePath(_0x12ec09),_0x118e2d=parsePath(_0x41d911);if(_0x40b303[_0xa58e2b(0x129)][_0xa58e2b(0x128)]<=_0x118e2d['segments'][_0xa58e2b(0x128)])return![];for(let _0x39e5bb=0x0;_0x39e5bb<_0x118e2d[_0xa58e2b(0x129)][_0xa58e2b(0x128)];_0x39e5bb++){if(_0x40b303[_0xa58e2b(0x129)][_0x39e5bb]!==_0x118e2d[_0xa58e2b(0x129)][_0x39e5bb])return![];}return!![];}export function splitPath(_0x2ea0fd){const _0xe215e=a71_0x19cd,_0x5b9f72=parsePath(_0x2ea0fd);if(_0x5b9f72[_0xe215e(0x129)]['length']===0x0)throw new Error(_0xe215e(0x139));if(_0x5b9f72['segments'][_0xe215e(0x128)]===0x1)return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0]};return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0],'child':_0x5b9f72[_0xe215e(0x129)][_0xe215e(0x135)](0x1)[_0xe215e(0x126)]('/')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x1424(_0x284ecc,_0x65df83){const _0x2be138=a72_0x2be1();return a72_0x1424=function(_0x14241f,_0x193f1f){_0x14241f=_0x14241f-0x100;let _0x1aa110=_0x2be138[_0x14241f];return _0x1aa110;},a72_0x1424(_0x284ecc,_0x65df83);}function a72_0x2be1(){const _0x422d72=['5164cEkiDL','49068znHIjb','365wXSwSD','14907013Faplbb','.\x20Parent\x20name\x20cannot\x20be\x20empty','4410240EKaclT','6043EpzusL','Invalid\x20segment\x20reference\x20format:\x20','substring','81GXSZAh','12LozcvG','523229LrAeBW','518800CNaYzz','42vKtkzT','102GmSViH','indexOf'];a72_0x2be1=function(){return _0x422d72;};return a72_0x2be1();}(function(_0x5db681,_0x533bbc){const _0x3d8079=a72_0x1424,_0x418d61=_0x5db681();while(!![]){try{const _0x38e93f=-parseInt(_0x3d8079(0x107))/0x1*(-parseInt(_0x3d8079(0x10f))/0x2)+parseInt(_0x3d8079(0x102))/0x3+parseInt(_0x3d8079(0x101))/0x4*(-parseInt(_0x3d8079(0x103))/0x5)+-parseInt(_0x3d8079(0x10e))/0x6*(-parseInt(_0x3d8079(0x10c))/0x7)+parseInt(_0x3d8079(0x106))/0x8+-parseInt(_0x3d8079(0x10a))/0x9*(-parseInt(_0x3d8079(0x10d))/0xa)+parseInt(_0x3d8079(0x104))/0xb*(-parseInt(_0x3d8079(0x10b))/0xc);if(_0x38e93f===_0x533bbc)break;else _0x418d61['push'](_0x418d61['shift']());}catch(_0x1322a5){_0x418d61['push'](_0x418d61['shift']());}}}(a72_0x2be1,0x65b28));export function parseSegmentRef(_0x2c6229){const _0x6faa22=a72_0x1424,_0x2f2513=_0x2c6229[_0x6faa22(0x100)]('/');if(_0x2f2513===-0x1)return{'parentId':_0x2c6229};if(_0x2f2513===0x0)throw new Error(_0x6faa22(0x108)+_0x2c6229+_0x6faa22(0x105));const _0x1e5e39=_0x2c6229[_0x6faa22(0x109)](0x0,_0x2f2513),_0xddf23f=_0x2c6229['substring'](_0x2f2513+0x1);if(_0xddf23f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2c6229+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1e5e39,'childId':_0xddf23f};}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fa166,_0xa104d9){const _0x552847=a73_0x281d,_0x540d62=_0x4fa166();while(!![]){try{const _0x18c460=parseInt(_0x552847(0x1a3))/0x1*(-parseInt(_0x552847(0x1ad))/0x2)+-parseInt(_0x552847(0x1a4))/0x3+parseInt(_0x552847(0x1a1))/0x4+parseInt(_0x552847(0x1a5))/0x5*(-parseInt(_0x552847(0x1a7))/0x6)+-parseInt(_0x552847(0x1ae))/0x7*(parseInt(_0x552847(0x1a8))/0x8)+-parseInt(_0x552847(0x19a))/0x9*(parseInt(_0x552847(0x1aa))/0xa)+parseInt(_0x552847(0x19c))/0xb;if(_0x18c460===_0xa104d9)break;else _0x540d62['push'](_0x540d62['shift']());}catch(_0x1a1d23){_0x540d62['push'](_0x540d62['shift']());}}}(a73_0x533a,0x781e4));import a73_0x3bf353 from'ora';export function createCommandSpinner(_0x3f1926,_0x13e9cd={}){const _0x5e1d23=a73_0x281d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13e9cd;return a73_0x3bf353({'text':_0x3f1926,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0x5e1d23(0x1a9)]&&!verbose});}function a73_0x281d(_0x3e225f,_0x2eb175){const _0x533ae0=a73_0x533a();return a73_0x281d=function(_0x281d78,_0x14e497){_0x281d78=_0x281d78-0x199;let _0x510df4=_0x533ae0[_0x281d78];return _0x510df4;},a73_0x281d(_0x3e225f,_0x2eb175);}export async function withSpinner(_0x51cf4c,_0x1bdae4,_0x2ca2eb={}){const _0x5d70a4=a73_0x281d,_0x50f9f0=_0x2ca2eb[_0x5d70a4(0x1af)]??(()=>Date[_0x5d70a4(0x1b1)]()),_0x2d906d=createCommandSpinner(_0x51cf4c,_0x2ca2eb);_0x2d906d['start']();const _0x18c71=_0x50f9f0();try{const _0x188223=await _0x1bdae4(),_0x3694bc=_0x50f9f0()-_0x18c71;return _0x2d906d[_0x5d70a4(0x1a2)](),{'data':_0x188223,'elapsedMs':_0x3694bc};}catch(_0x238794){_0x2d906d['stop']();throw _0x238794;}}function a73_0x533a(){const _0xe34ff1=['\x20[Job\x20ID:\x20','64yXHaIK','139419eIPfjV','clock','isSpinning','now','jobId','9bCYbyg','intervalFactory','23558579LsysFW','phase','...','extra','start','23952fDxxtx','stop','1789vvjbJO','2553660fpChqn','253545fZgtSW','replace','48SkRByq','120TDfLyS','isTTY','427780OBhkCX','text'];a73_0x533a=function(){return _0xe34ff1;};return a73_0x533a();}export async function withQuerySpinner(_0xe84c75,_0x2116d8,_0x1d53f8={}){const _0x391a93=a73_0x281d,_0x4dcf36=_0x1d53f8['clock']??(()=>Date['now']()),_0x5efd50=_0x1d53f8[_0x391a93(0x19b)]??setInterval,_0x1bb3cd=createCommandSpinner(_0xe84c75,_0x1d53f8);_0x1bb3cd[_0x391a93(0x1a0)]();const _0x2453e0=_0x4dcf36(),_0x177b45=_0xe84c75[_0x391a93(0x1a6)](_0x391a93(0x19e),''),_0x250483={},_0x225f6f=()=>{const _0x56bfe9=_0x391a93;if(!_0x1bb3cd[_0x56bfe9(0x1b0)])return;const _0x52ff00=_0x4dcf36()-_0x2453e0,_0x197d8a=formatElapsed(_0x52ff00),_0x215dab=_0x250483[_0x56bfe9(0x19d)]??_0x177b45,_0x54cf97=_0x250483[_0x56bfe9(0x199)]?_0x56bfe9(0x1ac)+_0x250483[_0x56bfe9(0x199)]+']':'',_0x4f1964=_0x250483[_0x56bfe9(0x19f)]?'\x20'+_0x250483[_0x56bfe9(0x19f)]:'';_0x1bb3cd[_0x56bfe9(0x1ab)]=_0x215dab+'\x20'+_0x197d8a+_0x4f1964+_0x54cf97;},_0xd82f5d=_0x5efd50(()=>{_0x225f6f();},0x3e8),_0x45e3d6={'setPhase':_0x224a18=>{_0x250483['phase']=_0x224a18,_0x225f6f();},'setJobId':_0xe7f55=>{_0x250483['jobId']=_0xe7f55,_0x225f6f();},'setExtra':_0x3186c9=>{const _0x305394=_0x391a93;_0x250483[_0x305394(0x19f)]=_0x3186c9,_0x225f6f();}};_0x225f6f();try{const _0x5e36ed=await _0x2116d8(_0x45e3d6),_0x2506e3=_0x4dcf36()-_0x2453e0;return{'data':_0x5e36ed,'elapsedMs':_0x2506e3};}finally{clearInterval(_0xd82f5d),_0x1bb3cd[_0x391a93(0x1a2)]();}}export function formatElapsed(_0x2f11b6){const _0x1c2e9e=Math['floor'](_0x2f11b6/0x3e8);if(_0x1c2e9e<0x3c)return(_0x2f11b6/0x3e8)['toFixed'](0x1)+'s';const _0x3113c0=Math['floor'](_0x1c2e9e/0x3c),_0x32d611=_0x1c2e9e%0x3c;if(_0x3113c0<0x3c)return _0x3113c0+'m\x20'+_0x32d611+'s';const _0x18b5d2=Math['floor'](_0x3113c0/0x3c),_0x51ed26=_0x3113c0%0x3c;return _0x18b5d2+'h\x20'+_0x51ed26+'m';}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x72603b,_0x53ab75){const _0x2de0a5=a74_0x17b0,_0x102a56=_0x72603b();while(!![]){try{const _0x38f0d3=-parseInt(_0x2de0a5(0x90))/0x1+parseInt(_0x2de0a5(0x8d))/0x2*(-parseInt(_0x2de0a5(0xa2))/0x3)+parseInt(_0x2de0a5(0x92))/0x4+parseInt(_0x2de0a5(0x9e))/0x5+-parseInt(_0x2de0a5(0x9b))/0x6+parseInt(_0x2de0a5(0x91))/0x7*(parseInt(_0x2de0a5(0x99))/0x8)+-parseInt(_0x2de0a5(0x97))/0x9*(-parseInt(_0x2de0a5(0x96))/0xa);if(_0x38f0d3===_0x53ab75)break;else _0x102a56['push'](_0x102a56['shift']());}catch(_0x314037){_0x102a56['push'](_0x102a56['shift']());}}}(a74_0x5f44,0x506ad));import{readFileSync}from'fs';export function stripSqlComments(_0x1984c8){const _0x33a2cb=a74_0x17b0;let _0x395396=_0x1984c8[_0x33a2cb(0x8f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x395396=_0x395396[_0x33a2cb(0x8f)](/--.*$/gm,''),_0x395396[_0x33a2cb(0x9d)]();}function a74_0x17b0(_0x5787ff,_0x2e13a4){const _0x5f4448=a74_0x5f44();return a74_0x17b0=function(_0x17b0ae,_0x228e59){_0x17b0ae=_0x17b0ae-0x8d;let _0x6bbe55=_0x5f4448[_0x17b0ae];return _0x6bbe55;},a74_0x17b0(_0x5787ff,_0x2e13a4);}function isEscaped(_0x514829,_0x7ab48c){let _0x2caba9=0x0;for(let _0x195f9d=_0x7ab48c-0x1;_0x195f9d>=0x0&&_0x514829[_0x195f9d]==='\x5c';_0x195f9d--){_0x2caba9++;}return _0x2caba9%0x2===0x1;}export function splitSqlStatements(_0x4b7190){const _0x500a29=a74_0x17b0,_0x2130d9=stripSqlComments(_0x4b7190);if(!_0x2130d9)throw new Error(_0x500a29(0xa0));const _0x597cb6=[];let _0x2b5a5c='',_0x58ef50=![],_0x24178c=![],_0xec828b=![];for(let _0xc24383=0x0;_0xc24383<_0x4b7190['length'];_0xc24383++){const _0x38293a=_0x4b7190[_0xc24383];if(_0x38293a==='\x27'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x24178c&&!_0xec828b)_0x58ef50=!_0x58ef50;else{if(_0x38293a==='\x22'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0xec828b)_0x24178c=!_0x24178c;else _0x38293a==='`'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0x24178c&&(_0xec828b=!_0xec828b);}if(_0x38293a===';'&&!_0x58ef50&&!_0x24178c&&!_0xec828b){const _0x211b75=_0x2b5a5c[_0x500a29(0x9d)]();_0x211b75&&_0x597cb6[_0x500a29(0x93)](_0x211b75),_0x2b5a5c='';}else _0x2b5a5c+=_0x38293a;}const _0x11d258=_0x2b5a5c['trim']();_0x11d258&&_0x597cb6[_0x500a29(0x93)](_0x11d258);const _0x4ef8a0=_0x597cb6[_0x500a29(0x9c)](_0x4a4b0e=>_0x4a4b0e[_0x500a29(0x9d)]())['filter'](_0x38a8c5=>{const _0x473495=_0x500a29,_0x203949=stripSqlComments(_0x38a8c5);return _0x203949[_0x473495(0x98)]>0x0;});if(_0x4ef8a0[_0x500a29(0x98)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x4ef8a0;}export function readFileContent(_0x5ab878){const _0x46c3a0=a74_0x17b0;try{return readFileSync(_0x5ab878,_0x46c3a0(0x8e));}catch(_0x18a332){const _0x5396ff=_0x18a332[_0x46c3a0(0xa1)];if(_0x5396ff==='ENOENT')throw new Error(_0x46c3a0(0xa3)+_0x5ab878+_0x46c3a0(0x9f));else{if(_0x5396ff==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5ab878+'\x27');else throw new Error(_0x46c3a0(0x94)+_0x5ab878+_0x46c3a0(0xa4)+_0x18a332['message']);}}}export function readSqlStatementsFromFile(_0x835051){const _0x402a01=a74_0x17b0,_0x4c03ee=readFileContent(_0x835051);try{return splitSqlStatements(_0x4c03ee);}catch(_0x186ad9){throw new Error(_0x402a01(0xa3)+_0x835051+'\x27\x20'+_0x186ad9[_0x402a01(0x95)][_0x402a01(0x9a)]());}}function a74_0x5f44(){const _0x379cc8=['625221tJgVdH','2123359zLwhWU','403684ILocVy','push','Error\x20reading\x20file\x20\x27','message','470rRIaPH','115110YPLuKj','length','8nzRhBU','toLowerCase','584268qLGUTo','map','trim','1347645wAGBku','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','code','3SoiqWJ','File\x20\x27','\x27:\x20','445858RSmxaa','utf-8','replace'];a74_0x5f44=function(){return _0x379cc8;};return a74_0x5f44();}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a75_0x2801(){const _0x2ec243=['slice','event','264332aFSkTO','3252520oSsTvj','10WMifZs','12681DYtddr','getReader','read','releaseLock','data','body','startsWith','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','2250612BqGzXd','2395180WJmnsk','1074927nhPKns','parse','Response\x20body\x20is\x20null','2053296KFbJqm','6Gjfmak'];a75_0x2801=function(){return _0x2ec243;};return a75_0x2801();}(function(_0x46beee,_0x4f363c){const _0x313deb=a75_0x5974,_0x353d49=_0x46beee();while(!![]){try{const _0x33ae4f=parseInt(_0x313deb(0xa1))/0x1*(-parseInt(_0x313deb(0xa0))/0x2)+parseInt(_0x313deb(0xad))/0x3+parseInt(_0x313deb(0x9e))/0x4+-parseInt(_0x313deb(0xac))/0x5*(parseInt(_0x313deb(0x9b))/0x6)+parseInt(_0x313deb(0xab))/0x7+parseInt(_0x313deb(0x9f))/0x8+-parseInt(_0x313deb(0x9a))/0x9;if(_0x33ae4f===_0x4f363c)break;else _0x353d49['push'](_0x353d49['shift']());}catch(_0x248f80){_0x353d49['push'](_0x353d49['shift']());}}}(a75_0x2801,0x5d3c0));export async function*parseSSEStream(_0x58fe56){const _0x5f20da=a75_0x5974;if(!_0x58fe56[_0x5f20da(0xa6)])throw new Error(_0x5f20da(0x99));const _0x535b83=_0x58fe56[_0x5f20da(0xa6)][_0x5f20da(0xa2)](),_0x4bf576=new TextDecoder();let _0x6bed1e='',_0x5da539={};try{while(!![]){const {done:_0x1b3258,value:_0x3f6fa7}=await _0x535b83[_0x5f20da(0xa3)]();if(_0x1b3258){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]));break;}_0x6bed1e+=_0x4bf576[_0x5f20da(0xaa)](_0x3f6fa7,{'stream':!![]});const _0x4b2dd7=_0x6bed1e['split']('\x0a');_0x6bed1e=_0x4b2dd7['pop']()||'';for(const _0xf018e5 of _0x4b2dd7){if(_0xf018e5['trim']()===''){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]),_0x5da539={});continue;}if(_0xf018e5[_0x5f20da(0xa7)](':'))continue;const _0x4664fb=_0xf018e5[_0x5f20da(0xa8)](':');if(_0x4664fb===-0x1)continue;const _0x2e45a8=_0xf018e5['slice'](0x0,_0x4664fb);let _0xe33076=_0xf018e5[_0x5f20da(0x9c)](_0x4664fb+0x1);_0xe33076[_0x5f20da(0xa7)]('\x20')&&(_0xe33076=_0xe33076['slice'](0x1));switch(_0x2e45a8){case _0x5f20da(0x9d):_0x5da539[_0x5f20da(0x9d)]=_0xe33076;break;case _0x5f20da(0xa5):_0x5da539[_0x5f20da(0xa5)]=_0x5da539[_0x5f20da(0xa5)]?_0x5da539[_0x5f20da(0xa5)]+'\x0a'+_0xe33076:_0xe33076;break;case'id':_0x5da539['id']=_0xe33076;break;}}}}finally{_0x535b83[_0x5f20da(0xa4)]();}}function a75_0x5974(_0x488679,_0x28ebed){const _0x2801c3=a75_0x2801();return a75_0x5974=function(_0x59742f,_0x1d2957){_0x59742f=_0x59742f-0x98;let _0xb507e8=_0x2801c3[_0x59742f];return _0xb507e8;},a75_0x5974(_0x488679,_0x28ebed);}function parseSSEData(_0x361dd5){const _0x59f568=a75_0x5974;try{return JSON[_0x59f568(0x98)](_0x361dd5);}catch(_0x45999){throw new Error(_0x59f568(0xa9)+_0x361dd5,{'cause':_0x45999});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4109e0,_0x3ce034){const _0x1ee8de=a76_0x422a,_0x4196f7=_0x4109e0();while(!![]){try{const _0x4ed8f3=-parseInt(_0x1ee8de(0x112))/0x1*(parseInt(_0x1ee8de(0x116))/0x2)+-parseInt(_0x1ee8de(0x10e))/0x3*(parseInt(_0x1ee8de(0x11f))/0x4)+parseInt(_0x1ee8de(0x11d))/0x5+-parseInt(_0x1ee8de(0x118))/0x6*(-parseInt(_0x1ee8de(0x10c))/0x7)+parseInt(_0x1ee8de(0x120))/0x8+parseInt(_0x1ee8de(0x119))/0x9+-parseInt(_0x1ee8de(0x111))/0xa*(-parseInt(_0x1ee8de(0x108))/0xb);if(_0x4ed8f3===_0x3ce034)break;else _0x4196f7['push'](_0x4196f7['shift']());}catch(_0xaac8f1){_0x4196f7['push'](_0x4196f7['shift']());}}}(a76_0x2a1a,0xd5204));function a76_0x2a1a(){const _0x68b356=['env','1000AeOZvT','6825768Kzxxxx','repeat','1702349MQjbZv','toString','floor','USERNAME','91ohRAnv','length','16671kczfqy','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','10sewAsD','2lmzPNH','padStart','toLowerCase','substring','863428HfgAHi','trim','318558nxiNcO','5487174aiAqVB','test','replace','\x5c$&','4088835DFlAZU'];a76_0x2a1a=function(){return _0x68b356;};return a76_0x2a1a();}import a76_0x34001c from'string-width';export function stringWidth(_0x309ff6){return a76_0x34001c(_0x309ff6);}export function padEnd(_0x2bb11b,_0x1eb57d){const _0x19ea94=a76_0x422a,_0x587204=stringWidth(_0x2bb11b);if(_0x587204>=_0x1eb57d)return _0x2bb11b;return _0x2bb11b+'\x20'[_0x19ea94(0x107)](_0x1eb57d-_0x587204);}export function padStart(_0xf9dfb3,_0x3b0b73){const _0x1682e6=stringWidth(_0xf9dfb3);if(_0x1682e6>=_0x3b0b73)return _0xf9dfb3;return'\x20'['repeat'](_0x3b0b73-_0x1682e6)+_0xf9dfb3;}export function centerAlign(_0xc69202,_0x8f8996){const _0x420c6e=a76_0x422a,_0x151d1a=stringWidth(_0xc69202);if(_0x151d1a>_0x8f8996){if(_0x8f8996<=0x1)return'…'[_0x420c6e(0x115)](0x0,_0x8f8996);let _0x1a013e=_0xc69202;while(stringWidth(_0x1a013e+'…')>_0x8f8996){_0x1a013e=_0x1a013e['slice'](0x0,-0x1);}return _0x1a013e+'…';}if(_0x151d1a===_0x8f8996)return _0xc69202;const _0x57135c=_0x8f8996-_0x151d1a,_0x45e6e6=Math[_0x420c6e(0x10a)](_0x57135c/0x2),_0x5793b3=_0x57135c-_0x45e6e6;return'\x20'[_0x420c6e(0x107)](_0x45e6e6)+_0xc69202+'\x20'[_0x420c6e(0x107)](_0x5793b3);}export function escapeStringLiteral(_0x542abb){const _0x437c85=a76_0x422a;if(!_0x542abb||_0x542abb[_0x437c85(0x117)]()[_0x437c85(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x487216=_0x542abb[_0x437c85(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x487216+'\x27';}export function globToLike(_0xe2fae2){const _0x8d2fbe=a76_0x422a;let _0x8319b4=_0xe2fae2[_0x8d2fbe(0x11b)](/\\/g,'\x5c\x5c')[_0x8d2fbe(0x11b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x8319b4=_0x8319b4['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x8319b4;}export function buildLikePattern(_0x325b36){const _0x20963c=a76_0x422a;if(!_0x325b36||_0x325b36['trim']()[_0x20963c(0x10d)]===0x0)throw new Error(_0x20963c(0x10f));const _0x498866=globToLike(_0x325b36),_0x20a3c8=_0x498866[_0x20963c(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x20a3c8+'\x27';}export function matchGlobPattern(_0x65e2e0,_0x407caf){const _0x28ed75=a76_0x422a,_0x443641=_0x407caf[_0x28ed75(0x11b)](/[.+^${}()|[\]\\]/g,_0x28ed75(0x11c))[_0x28ed75(0x11b)](/\*/g,'.*')[_0x28ed75(0x11b)](/\?/g,'.'),_0x16f520=new RegExp('^'+_0x443641+'$');return _0x16f520[_0x28ed75(0x11a)](_0x65e2e0);}export function getSanitizedUsername(){const _0x327363=a76_0x422a,_0x310ab9=process['env']['USER']||process[_0x327363(0x11e)][_0x327363(0x10b)]||'unknown';return _0x310ab9[_0x327363(0x11b)](/[^a-zA-Z0-9]/g,'')[_0x327363(0x114)]();}function a76_0x422a(_0xc8d17e,_0x19573a){const _0x2a1a31=a76_0x2a1a();return a76_0x422a=function(_0x422aba,_0x2fd3e0){_0x422aba=_0x422aba-0x107;let _0x4d5d32=_0x2a1a31[_0x422aba];return _0x4d5d32;},a76_0x422a(_0xc8d17e,_0x19573a);}export function generateRandomHex(){const _0x51d0d6=a76_0x422a,_0x149b20=Math[_0x51d0d6(0x10a)](Math[_0x51d0d6(0x110)]()*0xfffff);return _0x149b20[_0x51d0d6(0x109)](0x10)[_0x51d0d6(0x113)](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24e119,_0x259a04){const _0x4b28e5=a77_0x2618,_0x49b05d=_0x24e119();while(!![]){try{const _0x3e4c56=parseInt(_0x4b28e5(0x1da))/0x1+-parseInt(_0x4b28e5(0x1d6))/0x2+-parseInt(_0x4b28e5(0x1cd))/0x3+-parseInt(_0x4b28e5(0x1d9))/0x4+-parseInt(_0x4b28e5(0x1c6))/0x5+parseInt(_0x4b28e5(0x1d1))/0x6*(parseInt(_0x4b28e5(0x1d3))/0x7)+parseInt(_0x4b28e5(0x1db))/0x8;if(_0x3e4c56===_0x259a04)break;else _0x49b05d['push'](_0x49b05d['shift']());}catch(_0x1dbbfe){_0x49b05d['push'](_0x49b05d['shift']());}}}(a77_0x4ef6,0x8de94));function a77_0x2618(_0x109300,_0x28101d){const _0x4ef6d9=a77_0x4ef6();return a77_0x2618=function(_0x261877,_0x5c7c61){_0x261877=_0x261877-0x1c6;let _0x5cf673=_0x4ef6d9[_0x261877];return _0x5cf673;},a77_0x2618(_0x109300,_0x28101d);}function hasWildcard(_0x3f0b95){const _0x2cd9fa=a77_0x2618;return _0x3f0b95[_0x2cd9fa(0x1d0)]('*')||_0x3f0b95[_0x2cd9fa(0x1d0)]('?');}function a77_0x4ef6(){const _0x4725c5=['includes','1617162tQVZJW','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','28tuSiSP','catalog','length','504790skecgz','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','190508qOFUIn','823664MAOZuI','3388112HjoxGF','5375225SAOQWj','database','split','table','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','trim','join','1106853TUFkPQ','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push'];a77_0x4ef6=function(){return _0x4725c5;};return a77_0x4ef6();}export function parseTableReference(_0x39cf8a){const _0x40efea=a77_0x2618;if(!_0x39cf8a||_0x39cf8a[_0x40efea(0x1cb)]()[_0x40efea(0x1d5)]===0x0)throw new Error(_0x40efea(0x1ca));const _0x525e22=_0x39cf8a[_0x40efea(0x1cb)](),_0x262682={'original':_0x525e22},_0x807536=_0x525e22[_0x40efea(0x1c8)]('.');if(_0x807536[_0x40efea(0x1d5)]===0x1){const _0x5eb69b=_0x807536[0x0];if(!_0x5eb69b)throw new Error(_0x40efea(0x1ce));_0x262682[_0x40efea(0x1c9)]=_0x5eb69b;}else{if(_0x807536[_0x40efea(0x1d5)]===0x2){const [_0x4ba7ab,_0x328f0a]=_0x807536;if(!_0x4ba7ab)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x328f0a)throw new Error(_0x40efea(0x1d8));_0x262682[_0x40efea(0x1c7)]=_0x4ba7ab,_0x262682[_0x40efea(0x1c9)]=_0x328f0a;}else{if(_0x807536['length']===0x3){const [_0x4045e5,_0x2d5fb9,_0x51eb87]=_0x807536;if(!_0x4045e5||!_0x2d5fb9||!_0x51eb87)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x262682[_0x40efea(0x1d4)]=_0x4045e5,_0x262682[_0x40efea(0x1c7)]=_0x2d5fb9,_0x262682[_0x40efea(0x1c9)]=_0x51eb87;}else throw new Error(_0x40efea(0x1d7));}}return _0x262682;}export function formatTableReference(_0x4899f6){const _0x2d94f2=a77_0x2618,_0x52e122=[];return _0x4899f6['catalog']&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1d4)]),_0x4899f6[_0x2d94f2(0x1c7)]&&_0x52e122[_0x2d94f2(0x1cf)](_0x4899f6[_0x2d94f2(0x1c7)]),_0x4899f6[_0x2d94f2(0x1c9)]&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1c9)]),_0x52e122[_0x2d94f2(0x1cc)]('.');}export function validateTableListReference(_0x406e2){return undefined;}export function validateTableDescribeReference(_0x39a6a2){const _0x5a2d0f=a77_0x2618;if(!_0x39a6a2[_0x5a2d0f(0x1c9)])return _0x5a2d0f(0x1d2);if(_0x39a6a2[_0x5a2d0f(0x1c7)]&&hasWildcard(_0x39a6a2['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x39a6a2['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x2019(_0x4b5c87,_0x2404b0){const _0x35ac25=a78_0x35ac();return a78_0x2019=function(_0x201999,_0x42fd53){_0x201999=_0x201999-0xd8;let _0x44f20e=_0x35ac25[_0x201999];return _0x44f20e;},a78_0x2019(_0x4b5c87,_0x2404b0);}(function(_0x129435,_0x388bb6){const _0x12483e=a78_0x2019,_0x387999=_0x129435();while(!![]){try{const _0x87eef8=-parseInt(_0x12483e(0xdb))/0x1*(-parseInt(_0x12483e(0xf6))/0x2)+-parseInt(_0x12483e(0xd8))/0x3*(-parseInt(_0x12483e(0xe9))/0x4)+parseInt(_0x12483e(0xfb))/0x5*(-parseInt(_0x12483e(0xe0))/0x6)+parseInt(_0x12483e(0xf1))/0x7+parseInt(_0x12483e(0xd9))/0x8*(parseInt(_0x12483e(0xf0))/0x9)+parseInt(_0x12483e(0xf9))/0xa*(parseInt(_0x12483e(0xed))/0xb)+parseInt(_0x12483e(0xdc))/0xc*(-parseInt(_0x12483e(0xda))/0xd);if(_0x87eef8===_0x388bb6)break;else _0x387999['push'](_0x387999['shift']());}catch(_0x3a1fb8){_0x387999['push'](_0x387999['shift']());}}}(a78_0x35ac,0x806b1));import{formatRows}from'./formatters.js';import a78_0x59f03f from'chalk';function a78_0x35ac(){const _0x4beb85=['localeCompare','40zugAok','join','7235ztpHCr','type','124017ZzRGzB','1240vfMteD','3354htfWdX','178zlYsHj','76020sHZcVh','segmentCount','showTreeLines','sort','1740gxVzFt','📁\x20','(empty)','icon','🎯\x20','name','folder','length','children','68QZiHUJ','\x20folder','showIcons','folderCount','1246608zMoTZD','\x20\x20\x20','map','13869gexUUA','1486527hbJmza','population','push','indent','dim','10930pNjTiv','metadata'];a78_0x35ac=function(){return _0x4beb85;};return a78_0x35ac();}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x1d7e60,_0x545200={},_0x4a42d1=0x0,_0x49f7e7=''){const _0x16328f=a78_0x2019,_0x35f23d={...DEFAULT_OPTIONS,..._0x545200},_0x546dc9=[],_0x4a4681=[..._0x1d7e60][_0x16328f(0xdf)]((_0x430fe1,_0x5011c3)=>_0x430fe1[_0x16328f(0xe5)][_0x16328f(0xf8)](_0x5011c3[_0x16328f(0xe5)]));for(let _0x30e9c6=0x0;_0x30e9c6<_0x4a4681['length'];_0x30e9c6++){const _0x3da823=_0x4a4681[_0x30e9c6],_0x102be5=_0x30e9c6===_0x4a4681[_0x16328f(0xe7)]-0x1;let _0x395cc4='';_0x4a42d1>0x0&&(_0x395cc4+=_0x49f7e7);_0x35f23d['showTreeLines']&&_0x4a42d1>0x0&&(_0x395cc4+=a78_0x59f03f['dim'](_0x102be5?'└──\x20':'├──\x20'));_0x35f23d[_0x16328f(0xeb)]&&(_0x395cc4+=_0x3da823[_0x16328f(0xfc)]==='folder'?_0x16328f(0xe1):_0x16328f(0xe4));_0x395cc4+=_0x3da823[_0x16328f(0xe5)];if(_0x35f23d['showMetadata']){if(_0x3da823[_0x16328f(0xfc)]===_0x16328f(0xe6)){const _0x4d5d96=[];_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]+'\x20segment'+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]!==0x1?'s':'')),_0x3da823['metadata'][_0x16328f(0xec)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)]['folderCount']+_0x16328f(0xea)+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xec)]!==0x1?'s':'')),_0x4d5d96[_0x16328f(0xe7)]>0x0&&(_0x395cc4+=a78_0x59f03f['dim']('\x20('+_0x4d5d96[_0x16328f(0xfa)](',\x20')+')'));}else _0x3da823[_0x16328f(0xfc)]==='segment'&&_0x3da823[_0x16328f(0xf2)]!==undefined&&(_0x395cc4+=a78_0x59f03f[_0x16328f(0xf5)]('\x20('+formatRows(_0x3da823['population'])+')'));}_0x546dc9[_0x16328f(0xf3)](_0x395cc4);if(_0x3da823[_0x16328f(0xe8)]&&_0x3da823[_0x16328f(0xe8)][_0x16328f(0xe7)]>0x0){let _0x338a83;if(_0x4a42d1===0x0)_0x338a83='';else _0x35f23d[_0x16328f(0xde)]?_0x338a83=_0x49f7e7+(_0x102be5?'\x20\x20\x20\x20':a78_0x59f03f['dim']('│')+_0x16328f(0xee)):_0x338a83=_0x49f7e7+_0x35f23d[_0x16328f(0xf4)];const _0x593eb3=formatTree(_0x3da823[_0x16328f(0xe8)],_0x35f23d,_0x4a42d1+0x1,_0x338a83);_0x546dc9[_0x16328f(0xf3)](_0x593eb3);}}return _0x546dc9[_0x16328f(0xfa)]('\x0a');}export function formatFlatList(_0x50f851,_0x4e23f9,_0x2a7a6b={}){const _0x6f7812=a78_0x2019,_0x13b56e={...DEFAULT_OPTIONS,..._0x2a7a6b},_0x1967c1=[];for(const _0x1c7e32 of _0x50f851){_0x1967c1[_0x6f7812(0xf3)]({'name':_0x1c7e32['name'],'icon':_0x13b56e[_0x6f7812(0xeb)]?'📁':'','metadata':undefined});}for(const _0x490a90 of _0x4e23f9){const _0x2c62d6=_0x13b56e['showMetadata']&&_0x490a90['population']!==undefined?a78_0x59f03f[_0x6f7812(0xf5)]('\x20('+formatRows(_0x490a90[_0x6f7812(0xf2)])+')'):'';_0x1967c1[_0x6f7812(0xf3)]({'name':_0x490a90['name'],'icon':_0x13b56e['showIcons']?'🎯':'','metadata':_0x2c62d6});}_0x1967c1[_0x6f7812(0xdf)]((_0x7bc476,_0x47cfa3)=>_0x7bc476[_0x6f7812(0xe5)]['localeCompare'](_0x47cfa3[_0x6f7812(0xe5)]));if(_0x1967c1[_0x6f7812(0xe7)]===0x0)return _0x6f7812(0xe2);const _0x2b9176=_0x1967c1[_0x6f7812(0xef)](_0x20f41d=>{const _0x565847=_0x6f7812,_0x76c425=_0x20f41d[_0x565847(0xe3)]?_0x20f41d['icon']+'\x20':'',_0x1de8f6=_0x20f41d[_0x565847(0xf7)]||'';return''+_0x76c425+_0x20f41d[_0x565847(0xe5)]+_0x1de8f6;});return _0x2b9176[_0x6f7812(0xfa)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d6479,_0x151628){const _0x241ec1=a79_0x2afc,_0x5c9924=_0x1d6479();while(!![]){try{const _0x450834=-parseInt(_0x241ec1(0xf9))/0x1*(parseInt(_0x241ec1(0xfc))/0x2)+parseInt(_0x241ec1(0xfb))/0x3+parseInt(_0x241ec1(0xff))/0x4+parseInt(_0x241ec1(0x102))/0x5*(parseInt(_0x241ec1(0xfe))/0x6)+-parseInt(_0x241ec1(0xf8))/0x7*(-parseInt(_0x241ec1(0x101))/0x8)+-parseInt(_0x241ec1(0xfa))/0x9*(parseInt(_0x241ec1(0x103))/0xa)+parseInt(_0x241ec1(0x100))/0xb;if(_0x450834===_0x151628)break;else _0x5c9924['push'](_0x5c9924['shift']());}catch(_0x5cb4dc){_0x5c9924['push'](_0x5c9924['shift']());}}}(a79_0x23ce,0x9751a));function a79_0x2afc(_0xc3dd,_0x425024){const _0x23ce1c=a79_0x23ce();return a79_0x2afc=function(_0x2afc83,_0x2f2eb7){_0x2afc83=_0x2afc83-0xf8;let _0x317cdf=_0x23ce1c[_0x2afc83];return _0x317cdf;},a79_0x2afc(_0xc3dd,_0x425024);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x172411){const _0x3be1c8=a79_0x2afc;if(_0x172411==='.digdag')return!![];if(_0x172411[_0x3be1c8(0xfd)]('.'))return![];return!![];}function a79_0x23ce(){const _0x67a0b=['22833ltPnkv','992397PAhZVi','19508MREObq','startsWith','502134aCeNxg','1714060tWurZF','58828EPUgGM','128RFVukM','55lMAaGM','2990ucJCmb','62041LLubpl','46DjYcLl'];a79_0x23ce=function(){return _0x67a0b;};return a79_0x23ce();}
|