@treasuredata/tdx 0.1.11 → 0.1.12
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/cli.js +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/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/llm-command.js +1 -1
- package/dist/commands/llm-proxy.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/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.d.ts +0 -6
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/auth.js.map +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.js +1 -1
- package/dist/proxy/server.js +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/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/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/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/workflow-utils.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x2535(_0x240820,_0x281bd6){const _0x3e42e9=a57_0x3e42();return a57_0x2535=function(_0x253544,_0x5ca305){_0x253544=_0x253544-0x64;let _0x2227ff=_0x3e42e9[_0x253544];return _0x2227ff;},a57_0x2535(_0x240820,_0x281bd6);}(function(_0x493c03,_0x3c1578){const _0x3fa243=a57_0x2535,_0x1c7ddc=_0x493c03();while(!![]){try{const _0x265f57=parseInt(_0x3fa243(0x69))/0x1+-parseInt(_0x3fa243(0x6f))/0x2*(parseInt(_0x3fa243(0x6e))/0x3)+-parseInt(_0x3fa243(0x6c))/0x4+parseInt(_0x3fa243(0x64))/0x5+parseInt(_0x3fa243(0x72))/0x6*(parseInt(_0x3fa243(0x66))/0x7)+-parseInt(_0x3fa243(0x65))/0x8+parseInt(_0x3fa243(0x6d))/0x9*(parseInt(_0x3fa243(0x71))/0xa);if(_0x265f57===_0x3c1578)break;else _0x1c7ddc['push'](_0x1c7ddc['shift']());}catch(_0x41cb71){_0x1c7ddc['push'](_0x1c7ddc['shift']());}}}(a57_0x3e42,0xb008c));export function validateLimitOption(_0x312dc6){const _0x225d4c=a57_0x2535;if(!Number[_0x225d4c(0x70)](_0x312dc6))return{'isValid':![],'error':_0x225d4c(0x73)+_0x312dc6+'.\x20Must\x20be\x20an\x20integer.'};if(_0x312dc6<=0x0)return{'isValid':![],'error':_0x225d4c(0x73)+_0x312dc6+_0x225d4c(0x68)};return{'isValid':!![],'value':_0x312dc6};}export function validateTimeoutOption(_0x554a23,_0xb9439e=0x1e){const _0x31de43=a57_0x2535;if(_0x554a23===undefined)return{'isValid':!![],'value':_0xb9439e};const _0x202a6b=typeof _0x554a23===_0x31de43(0x6a)?_0x554a23:parseFloat(_0x554a23);if(isNaN(_0x202a6b))return{'isValid':![],'error':_0x31de43(0x67)+_0x554a23+'.\x20Must\x20be\x20a\x20number.'};if(_0x202a6b<=0x0)return{'isValid':![],'error':_0x31de43(0x67)+_0x202a6b+_0x31de43(0x6b)};return{'isValid':!![],'value':_0x202a6b};}function a57_0x3e42(){const _0x1694e3=['.\x20Must\x20be\x20a\x20positive\x20integer.','524317HGNyRH','number','.\x20Must\x20be\x20a\x20positive\x20number.','4361720bYiHXw','108iBmEsb','9003Qsshjn','194AvvEgh','isInteger','242070XzwyKg','6GnHTIE','Invalid\x20limit\x20value:\x20','2701685oJoUQa','3009064gFvuHt','7864906IbQHOd','Invalid\x20timeout\x20value:\x20'];a57_0x3e42=function(){return _0x1694e3;};return a57_0x3e42();}
|
package/dist/utils/port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a58_0x21f4(){const _0x538d70=['listening','once','293955nyUJhi','4saDKrP','No\x20available\x20port\x20found\x20between\x20','94629byDxYt','1982104fBUWgT','3957630WdbiCj','error','1623167wQtTSc','listen','3678MnVGWw','18QOwyZy','close','780gulIsk','953060jBEzsF'];a58_0x21f4=function(){return _0x538d70;};return a58_0x21f4();}(function(_0x9b8ed8,_0x4502fd){const _0xfe7597=a58_0x4e70,_0x10c10f=_0x9b8ed8();while(!![]){try{const _0x2af82c=-parseInt(_0xfe7597(0x1b2))/0x1+-parseInt(_0xfe7597(0x1c0))/0x2*(parseInt(_0xfe7597(0x1bf))/0x3)+-parseInt(_0xfe7597(0x1bc))/0x4+parseInt(_0xfe7597(0x1bb))/0x5*(-parseInt(_0xfe7597(0x1b8))/0x6)+-parseInt(_0xfe7597(0x1b6))/0x7+parseInt(_0xfe7597(0x1b3))/0x8+parseInt(_0xfe7597(0x1b9))/0x9*(parseInt(_0xfe7597(0x1b4))/0xa);if(_0x2af82c===_0x4502fd)break;else _0x10c10f['push'](_0x10c10f['shift']());}catch(_0x369c9c){_0x10c10f['push'](_0x10c10f['shift']());}}}(a58_0x21f4,0x2ca84));function a58_0x4e70(_0x3da536,_0x422315){const _0x21f451=a58_0x21f4();return a58_0x4e70=function(_0x4e70eb,_0x460590){_0x4e70eb=_0x4e70eb-0x1b1;let _0x4dc7d1=_0x21f451[_0x4e70eb];return _0x4dc7d1;},a58_0x4e70(_0x3da536,_0x422315);}import{createServer}from'node:net';export async function isPortAvailable(_0x46ceea){return new Promise(_0x1d7e68=>{const _0x2c816e=a58_0x4e70,_0x2023ea=createServer();_0x2023ea['once'](_0x2c816e(0x1b5),_0x378901=>{_0x378901['code']==='EADDRINUSE'?_0x1d7e68(![]):_0x1d7e68(![]);}),_0x2023ea[_0x2c816e(0x1be)](_0x2c816e(0x1bd),()=>{const _0x29c920=_0x2c816e;_0x2023ea[_0x29c920(0x1ba)](),_0x1d7e68(!![]);}),_0x2023ea[_0x2c816e(0x1b7)](_0x46ceea,'127.0.0.1');});}export async function findAvailablePort(_0x590681=0xfa0,_0xa3c937=0x64){const _0x30dd9b=a58_0x4e70;for(let _0x58da8f=0x0;_0x58da8f<_0xa3c937;_0x58da8f++){const _0x3feed4=_0x590681+_0x58da8f;if(await isPortAvailable(_0x3feed4))return _0x3feed4;}throw new Error(_0x30dd9b(0x1b1)+_0x590681+'\x20and\x20'+(_0x590681+_0xa3c937-0x1));}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a59_0x29a3(_0x3eb84a,_0x1243ca){var _0x56b63d=a59_0x56b6();return a59_0x29a3=function(_0x29a3f4,_0x2bde0c){_0x29a3f4=_0x29a3f4-0x106;var _0x43ce71=_0x56b63d[_0x29a3f4];return _0x43ce71;},a59_0x29a3(_0x3eb84a,_0x1243ca);}(function(_0x183ed3,_0x4490cd){var _0x152019=a59_0x29a3,_0x14a658=_0x183ed3();while(!![]){try{var _0x33bdc6=parseInt(_0x152019(0x113))/0x1*(parseInt(_0x152019(0x109))/0x2)+-parseInt(_0x152019(0x10b))/0x3+-parseInt(_0x152019(0x106))/0x4*(parseInt(_0x152019(0x10c))/0x5)+parseInt(_0x152019(0x111))/0x6*(-parseInt(_0x152019(0x10a))/0x7)+-parseInt(_0x152019(0x10f))/0x8*(-parseInt(_0x152019(0x10e))/0x9)+-parseInt(_0x152019(0x112))/0xa*(parseInt(_0x152019(0x110))/0xb)+-parseInt(_0x152019(0x108))/0xc*(-parseInt(_0x152019(0x107))/0xd);if(_0x33bdc6===_0x4490cd)break;else _0x14a658['push'](_0x14a658['shift']());}catch(_0x2c8eb1){_0x14a658['push'](_0x14a658['shift']());}}}(a59_0x56b6,0xa7048));export function getPPID(){return process['ppid'];}function a59_0x56b6(){var _0x29efb2=['4949575ynEjnT','kill','14418iojxhz','288cwkhnS','2827TSvbcN','1446UqvJoN','44410UykxeS','72214BGSKgd','4yuNoLh','52953355srMAbc','12wjPkLd','12VdyjHH','13636EuonNg','3838401AkgWQB'];a59_0x56b6=function(){return _0x29efb2;};return a59_0x56b6();}export function isProcessRunning(_0x570344){var _0x546f21=a59_0x29a3;try{return process[_0x546f21(0x10d)](_0x570344,0x0),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x5368(_0xe8a7b9,_0xf1c4fe){const _0x343b4d=a60_0x343b();return a60_0x5368=function(_0x5368fa,_0x2620f9){_0x5368fa=_0x5368fa-0x116;let _0x3e5add=_0x343b4d[_0x5368fa];return _0x3e5add;},a60_0x5368(_0xe8a7b9,_0xf1c4fe);}(function(_0x437d16,_0x3b50da){const _0x3faa13=a60_0x5368,_0x399032=_0x437d16();while(!![]){try{const _0x44a442=parseInt(_0x3faa13(0x122))/0x1*(-parseInt(_0x3faa13(0x116))/0x2)+parseInt(_0x3faa13(0x120))/0x3*(-parseInt(_0x3faa13(0x118))/0x4)+-parseInt(_0x3faa13(0x11d))/0x5*(-parseInt(_0x3faa13(0x11b))/0x6)+-parseInt(_0x3faa13(0x124))/0x7+parseInt(_0x3faa13(0x125))/0x8+-parseInt(_0x3faa13(0x123))/0x9+parseInt(_0x3faa13(0x117))/0xa*(parseInt(_0x3faa13(0x11c))/0xb);if(_0x44a442===_0x3b50da)break;else _0x399032['push'](_0x399032['shift']());}catch(_0x14f7a7){_0x399032['push'](_0x399032['shift']());}}}(a60_0x343b,0x802f7));export function parseSegmentRef(_0x208c8c){const _0x2b87bf=a60_0x5368,_0x433a0a=_0x208c8c[_0x2b87bf(0x121)]('/');if(_0x433a0a===-0x1)return{'parentId':_0x208c8c};if(_0x433a0a===0x0)throw new Error(_0x2b87bf(0x11f)+_0x208c8c+_0x2b87bf(0x119));const _0x2c11ce=_0x208c8c[_0x2b87bf(0x11e)](0x0,_0x433a0a),_0x2f15a1=_0x208c8c[_0x2b87bf(0x11e)](_0x433a0a+0x1);if(_0x2f15a1==='')throw new Error(_0x2b87bf(0x11f)+_0x208c8c+_0x2b87bf(0x11a));return{'parentId':_0x2c11ce,'childId':_0x2f15a1};}function a60_0x343b(){const _0x2e402b=['1574ZwPgRs','5737797YVmweY','466935DomjvF','1734624xSCfDo','344gZsIsW','938390pwmxjl','4sTAQJw','.\x20Parent\x20name\x20cannot\x20be\x20empty','.\x20Child\x20name\x20cannot\x20be\x20empty','6iPAoWT','209bKykYH','1906715rlpnnd','substring','Invalid\x20segment\x20reference\x20format:\x20','2643297SHZCpf','indexOf'];a60_0x343b=function(){return _0x2e402b;};return a60_0x343b();}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4dc56e,_0x34e248){const _0x4339db=a61_0x28e9,_0x554d4b=_0x4dc56e();while(!![]){try{const _0xccdcf2=parseInt(_0x4339db(0x12a))/0x1*(-parseInt(_0x4339db(0x125))/0x2)+-parseInt(_0x4339db(0x124))/0x3+-parseInt(_0x4339db(0x131))/0x4+parseInt(_0x4339db(0x130))/0x5+parseInt(_0x4339db(0x12c))/0x6+-parseInt(_0x4339db(0x12f))/0x7+parseInt(_0x4339db(0x120))/0x8;if(_0xccdcf2===_0x34e248)break;else _0x554d4b['push'](_0x554d4b['shift']());}catch(_0x33641b){_0x554d4b['push'](_0x554d4b['shift']());}}}(a61_0x33a9,0x65eb7));import a61_0x2e2023 from'ora';export function createCommandSpinner(_0x1108e8,_0x27b764={}){const _0x4412b7=a61_0x28e9,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x27b764;return a61_0x2e2023({'text':_0x1108e8,'color':_0x4412b7(0x123),'isEnabled':forceEnabled||process[_0x4412b7(0x132)][_0x4412b7(0x11d)]&&!verbose});}export async function withSpinner(_0x50704c,_0x7d7240,_0x427c7e={}){const _0x588ecc=a61_0x28e9,_0x4cacce=_0x427c7e[_0x588ecc(0x12b)]??(()=>Date['now']()),_0x5d4051=createCommandSpinner(_0x50704c,_0x427c7e);_0x5d4051[_0x588ecc(0x129)]();const _0x5ef960=_0x4cacce();try{const _0x1ce498=await _0x7d7240(),_0x23bc37=_0x4cacce()-_0x5ef960;return _0x5d4051[_0x588ecc(0x128)](),{'data':_0x1ce498,'elapsedMs':_0x23bc37};}catch(_0xbf68b5){_0x5d4051['stop']();throw _0xbf68b5;}}export async function withQuerySpinner(_0x57c742,_0x4f9e76,_0x312688={}){const _0x5f2088=a61_0x28e9,_0x55dab5=_0x312688[_0x5f2088(0x12b)]??(()=>Date[_0x5f2088(0x12e)]()),_0x59cf40=_0x312688['intervalFactory']??setInterval,_0x43eb78=createCommandSpinner(_0x57c742,_0x312688);_0x43eb78[_0x5f2088(0x129)]();const _0x2bae7b=_0x55dab5(),_0x1ccedf=_0x57c742[_0x5f2088(0x127)](_0x5f2088(0x11f),''),_0x12ffa0={},_0x2ba402=()=>{const _0x285e51=_0x5f2088;if(!_0x43eb78['isSpinning'])return;const _0x5d8f63=((_0x55dab5()-_0x2bae7b)/0x3e8)[_0x285e51(0x126)](0x1),_0xae7846=_0x12ffa0[_0x285e51(0x133)]??_0x1ccedf,_0x175203=_0x12ffa0[_0x285e51(0x12d)]?_0x285e51(0x11e)+_0x12ffa0[_0x285e51(0x12d)]+']':'',_0x53d1d2=_0x12ffa0[_0x285e51(0x122)]?'\x20'+_0x12ffa0[_0x285e51(0x122)]:'';_0x43eb78[_0x285e51(0x121)]=_0xae7846+'\x20('+_0x5d8f63+'s)'+_0x53d1d2+_0x175203;},_0xe532df=_0x59cf40(()=>{_0x2ba402();},0x3e8),_0x3121cc={'setPhase':_0x2c7881=>{const _0x907bc6=_0x5f2088;_0x12ffa0[_0x907bc6(0x133)]=_0x2c7881,_0x2ba402();},'setJobId':_0x5f1677=>{const _0x113a57=_0x5f2088;_0x12ffa0[_0x113a57(0x12d)]=_0x5f1677,_0x2ba402();},'setExtra':_0x52720d=>{_0x12ffa0['extra']=_0x52720d,_0x2ba402();}};_0x2ba402();try{const _0x55e005=await _0x4f9e76(_0x3121cc),_0x10e705=_0x55dab5()-_0x2bae7b;return{'data':_0x55e005,'elapsedMs':_0x10e705};}finally{clearInterval(_0xe532df),_0x43eb78[_0x5f2088(0x128)]();}}function a61_0x28e9(_0x33144d,_0x45ee0c){const _0x33a91a=a61_0x33a9();return a61_0x28e9=function(_0x28e910,_0x253dfe){_0x28e910=_0x28e910-0x11d;let _0x4744fa=_0x33a91a[_0x28e910];return _0x4744fa;},a61_0x28e9(_0x33144d,_0x45ee0c);}export function formatElapsed(_0x4936c8){return(_0x4936c8/0x3e8)['toFixed'](0x2)+'s';}function a61_0x33a9(){const _0x4a53a8=['1330878DNUksM','toFixed','replace','stop','start','1uJsWko','clock','2759244utwPOp','jobId','now','4382014RyTSKe','2315085Hvjzqs','1808028YQereO','stdout','phase','isTTY','\x20[Job\x20ID:\x20','...','16490576qSDFyq','text','extra','cyan','2469906VHerSO'];a61_0x33a9=function(){return _0x4a53a8;};return a61_0x33a9();}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2922c6,_0x42985a){const _0x37dfd3=a62_0x5b5c,_0x1b884d=_0x2922c6();while(!![]){try{const _0x225db8=parseInt(_0x37dfd3(0x97))/0x1*(-parseInt(_0x37dfd3(0x93))/0x2)+parseInt(_0x37dfd3(0x90))/0x3*(-parseInt(_0x37dfd3(0x92))/0x4)+-parseInt(_0x37dfd3(0x8e))/0x5+parseInt(_0x37dfd3(0x89))/0x6*(parseInt(_0x37dfd3(0x87))/0x7)+parseInt(_0x37dfd3(0x80))/0x8*(parseInt(_0x37dfd3(0x8d))/0x9)+-parseInt(_0x37dfd3(0x81))/0xa*(parseInt(_0x37dfd3(0x8b))/0xb)+parseInt(_0x37dfd3(0x9a))/0xc*(parseInt(_0x37dfd3(0x88))/0xd);if(_0x225db8===_0x42985a)break;else _0x1b884d['push'](_0x1b884d['shift']());}catch(_0x4bb175){_0x1b884d['push'](_0x1b884d['shift']());}}}(a62_0x5a0f,0x4a334));import{readFileSync}from'fs';function a62_0x5a0f(){const _0x18a487=['8ywMvgI','4953550mBOMkx','\x27:\x20','filter','code','map','ENOENT','13811FKQfxO','44824WHPtWQ','1362pHrEJY','message','11QafVgD','length','507096JnbhoL','2475750SiEvsL','Permission\x20denied\x20reading\x20file\x20\x27','6SXKqmT','toLowerCase','438436krIrmP','40hAsaRw','replace','trim','push','14006GmNOeN','Content\x20contains\x20no\x20SQL\x20statements','File\x20\x27','4488dvhcoh'];a62_0x5a0f=function(){return _0x18a487;};return a62_0x5a0f();}export function stripSqlComments(_0x234ae1){const _0x1f1eb0=a62_0x5b5c;let _0x381ca3=_0x234ae1[_0x1f1eb0(0x94)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x381ca3=_0x381ca3[_0x1f1eb0(0x94)](/--.*$/gm,''),_0x381ca3[_0x1f1eb0(0x95)]();}function a62_0x5b5c(_0xc1d13b,_0x38a661){const _0x5a0fd4=a62_0x5a0f();return a62_0x5b5c=function(_0x5b5cd9,_0x5d7154){_0x5b5cd9=_0x5b5cd9-0x80;let _0x4cbb73=_0x5a0fd4[_0x5b5cd9];return _0x4cbb73;},a62_0x5b5c(_0xc1d13b,_0x38a661);}function isEscaped(_0x90cefa,_0x5b548c){let _0x5aa4f9=0x0;for(let _0x383f53=_0x5b548c-0x1;_0x383f53>=0x0&&_0x90cefa[_0x383f53]==='\x5c';_0x383f53--){_0x5aa4f9++;}return _0x5aa4f9%0x2===0x1;}export function splitSqlStatements(_0x10a6da){const _0x3cb536=a62_0x5b5c,_0x415bcd=stripSqlComments(_0x10a6da);if(!_0x415bcd)throw new Error(_0x3cb536(0x98));const _0x451501=[];let _0x13805f='',_0x44a98d=![],_0x1f29e0=![],_0x5400e9=![];for(let _0x2e0f03=0x0;_0x2e0f03<_0x10a6da[_0x3cb536(0x8c)];_0x2e0f03++){const _0x9cebc=_0x10a6da[_0x2e0f03];if(_0x9cebc==='\x27'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x1f29e0&&!_0x5400e9)_0x44a98d=!_0x44a98d;else{if(_0x9cebc==='\x22'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x44a98d&&!_0x5400e9)_0x1f29e0=!_0x1f29e0;else _0x9cebc==='`'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x44a98d&&!_0x1f29e0&&(_0x5400e9=!_0x5400e9);}if(_0x9cebc===';'&&!_0x44a98d&&!_0x1f29e0&&!_0x5400e9){const _0x3ad361=_0x13805f['trim']();_0x3ad361&&_0x451501[_0x3cb536(0x96)](_0x3ad361),_0x13805f='';}else _0x13805f+=_0x9cebc;}const _0x5c5bdf=_0x13805f[_0x3cb536(0x95)]();_0x5c5bdf&&_0x451501['push'](_0x5c5bdf);const _0xb0a8e5=_0x451501[_0x3cb536(0x85)](_0x5b8b78=>_0x5b8b78[_0x3cb536(0x95)]())[_0x3cb536(0x83)](_0x3f8054=>{const _0x235d72=_0x3cb536,_0x17cf4b=stripSqlComments(_0x3f8054);return _0x17cf4b[_0x235d72(0x8c)]>0x0;});if(_0xb0a8e5[_0x3cb536(0x8c)]===0x0)throw new Error(_0x3cb536(0x98));return _0xb0a8e5;}export function readFileContent(_0x28bb1d){const _0x17fb49=a62_0x5b5c;try{return readFileSync(_0x28bb1d,'utf-8');}catch(_0x15c5d5){const _0x64433=_0x15c5d5[_0x17fb49(0x84)];if(_0x64433===_0x17fb49(0x86))throw new Error(_0x17fb49(0x99)+_0x28bb1d+'\x27\x20not\x20found');else{if(_0x64433==='EACCES')throw new Error(_0x17fb49(0x8f)+_0x28bb1d+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x28bb1d+_0x17fb49(0x82)+_0x15c5d5[_0x17fb49(0x8a)]);}}}export function readSqlStatementsFromFile(_0x16b0ec){const _0x19222a=a62_0x5b5c,_0x21f5f7=readFileContent(_0x16b0ec);try{return splitSqlStatements(_0x21f5f7);}catch(_0x507fd1){throw new Error(_0x19222a(0x99)+_0x16b0ec+'\x27\x20'+_0x507fd1[_0x19222a(0x8a)][_0x19222a(0x91)]());}}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x51417b,_0x548962){const _0x27c9f1=a63_0x30d2,_0x1a5dd8=_0x51417b();while(!![]){try{const _0x4e3498=-parseInt(_0x27c9f1(0x131))/0x1*(-parseInt(_0x27c9f1(0x12a))/0x2)+-parseInt(_0x27c9f1(0x139))/0x3*(-parseInt(_0x27c9f1(0x12d))/0x4)+-parseInt(_0x27c9f1(0x12f))/0x5+parseInt(_0x27c9f1(0x133))/0x6*(-parseInt(_0x27c9f1(0x137))/0x7)+-parseInt(_0x27c9f1(0x127))/0x8+-parseInt(_0x27c9f1(0x138))/0x9*(-parseInt(_0x27c9f1(0x134))/0xa)+parseInt(_0x27c9f1(0x12c))/0xb;if(_0x4e3498===_0x548962)break;else _0x1a5dd8['push'](_0x1a5dd8['shift']());}catch(_0x2aaa51){_0x1a5dd8['push'](_0x1a5dd8['shift']());}}}(a63_0x3ecf,0x8a7dd));export async function*parseSSEStream(_0x44b7f9){const _0x3e52ff=a63_0x30d2;if(!_0x44b7f9[_0x3e52ff(0x125)])throw new Error(_0x3e52ff(0x13b));const _0x284fa2=_0x44b7f9[_0x3e52ff(0x125)][_0x3e52ff(0x12b)](),_0x5a8121=new TextDecoder();let _0x409266='',_0x1181d5={};try{while(!![]){const {done:_0x2e3c5d,value:_0x3d91a4}=await _0x284fa2[_0x3e52ff(0x130)]();if(_0x2e3c5d){_0x1181d5['data']&&(yield parseSSEData(_0x1181d5[_0x3e52ff(0x13a)]));break;}_0x409266+=_0x5a8121[_0x3e52ff(0x132)](_0x3d91a4,{'stream':!![]});const _0x4ad6e4=_0x409266[_0x3e52ff(0x129)]('\x0a');_0x409266=_0x4ad6e4['pop']()||'';for(const _0xa81b58 of _0x4ad6e4){if(_0xa81b58[_0x3e52ff(0x135)]()===''){_0x1181d5[_0x3e52ff(0x13a)]&&(yield parseSSEData(_0x1181d5[_0x3e52ff(0x13a)]),_0x1181d5={});continue;}if(_0xa81b58[_0x3e52ff(0x12e)](':'))continue;const _0x2dc312=_0xa81b58['indexOf'](':');if(_0x2dc312===-0x1)continue;const _0x39824d=_0xa81b58[_0x3e52ff(0x126)](0x0,_0x2dc312);let _0x5f26cf=_0xa81b58['slice'](_0x2dc312+0x1);_0x5f26cf['startsWith']('\x20')&&(_0x5f26cf=_0x5f26cf[_0x3e52ff(0x126)](0x1));switch(_0x39824d){case _0x3e52ff(0x136):_0x1181d5[_0x3e52ff(0x136)]=_0x5f26cf;break;case _0x3e52ff(0x13a):_0x1181d5[_0x3e52ff(0x13a)]=_0x1181d5[_0x3e52ff(0x13a)]?_0x1181d5[_0x3e52ff(0x13a)]+'\x0a'+_0x5f26cf:_0x5f26cf;break;case'id':_0x1181d5['id']=_0x5f26cf;break;}}}}finally{_0x284fa2['releaseLock']();}}function parseSSEData(_0x235646){const _0x7889d=a63_0x30d2;try{return JSON[_0x7889d(0x124)](_0x235646);}catch(_0x2aed1a){throw new Error(_0x7889d(0x128)+_0x235646,{'cause':_0x2aed1a});}}function a63_0x30d2(_0x3e6d33,_0x3c34ba){const _0x3ecfb7=a63_0x3ecf();return a63_0x30d2=function(_0x30d238,_0x37b17a){_0x30d238=_0x30d238-0x124;let _0x39123a=_0x3ecfb7[_0x30d238];return _0x39123a;},a63_0x30d2(_0x3e6d33,_0x3c34ba);}function a63_0x3ecf(){const _0x413beb=['decode','323262biqaqf','9893280LsRAMg','trim','event','56AhypWJ','9ranABJ','50103BlmjYD','data','Response\x20body\x20is\x20null','parse','body','slice','1150128xgYFNk','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','7588HpfwZu','getReader','718927VBPikz','4anPwcF','startsWith','64055AQtWMv','read','22Vangiq'];a63_0x3ecf=function(){return _0x413beb;};return a63_0x3ecf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a0791,_0x5be21d){const _0x4b1acf=a64_0x2ec1,_0x3b9652=_0x1a0791();while(!![]){try{const _0x49d887=parseInt(_0x4b1acf(0x1ea))/0x1*(parseInt(_0x4b1acf(0x1ed))/0x2)+-parseInt(_0x4b1acf(0x1e9))/0x3*(parseInt(_0x4b1acf(0x1e2))/0x4)+parseInt(_0x4b1acf(0x1f5))/0x5*(parseInt(_0x4b1acf(0x1f4))/0x6)+parseInt(_0x4b1acf(0x1f6))/0x7+parseInt(_0x4b1acf(0x1ee))/0x8+parseInt(_0x4b1acf(0x1e0))/0x9+-parseInt(_0x4b1acf(0x1f7))/0xa*(parseInt(_0x4b1acf(0x1f0))/0xb);if(_0x49d887===_0x5be21d)break;else _0x3b9652['push'](_0x3b9652['shift']());}catch(_0x5b325e){_0x3b9652['push'](_0x3b9652['shift']());}}}(a64_0x1f01,0x845bd));function a64_0x2ec1(_0x3ac0fe,_0x56249d){const _0x1f0123=a64_0x1f01();return a64_0x2ec1=function(_0x2ec1a8,_0x21b260){_0x2ec1a8=_0x2ec1a8-0x1e0;let _0x52ce04=_0x1f0123[_0x2ec1a8];return _0x52ce04;},a64_0x2ec1(_0x3ac0fe,_0x56249d);}import a64_0x4e3aa3 from'string-width';export function stringWidth(_0x2ad99c){return a64_0x4e3aa3(_0x2ad99c);}export function padEnd(_0x1c84cd,_0x237d25){const _0x65f159=stringWidth(_0x1c84cd);if(_0x65f159>=_0x237d25)return _0x1c84cd;return _0x1c84cd+'\x20'['repeat'](_0x237d25-_0x65f159);}export function padStart(_0x1b564d,_0x52a67f){const _0x28b750=a64_0x2ec1,_0x36a71c=stringWidth(_0x1b564d);if(_0x36a71c>=_0x52a67f)return _0x1b564d;return'\x20'[_0x28b750(0x1ef)](_0x52a67f-_0x36a71c)+_0x1b564d;}export function centerAlign(_0x1f1db9,_0x2d6516){const _0x3e40fe=a64_0x2ec1,_0x5830d0=stringWidth(_0x1f1db9);if(_0x5830d0>_0x2d6516){if(_0x2d6516<=0x1)return'…'[_0x3e40fe(0x1f8)](0x0,_0x2d6516);let _0x577cf0=_0x1f1db9;while(stringWidth(_0x577cf0+'…')>_0x2d6516){_0x577cf0=_0x577cf0['slice'](0x0,-0x1);}return _0x577cf0+'…';}if(_0x5830d0===_0x2d6516)return _0x1f1db9;const _0x5c93a7=_0x2d6516-_0x5830d0,_0xd15580=Math[_0x3e40fe(0x1e1)](_0x5c93a7/0x2),_0x54ea06=_0x5c93a7-_0xd15580;return'\x20'['repeat'](_0xd15580)+_0x1f1db9+'\x20'[_0x3e40fe(0x1ef)](_0x54ea06);}export function escapeStringLiteral(_0x245a8b){const _0x4e2cec=a64_0x2ec1;if(!_0x245a8b||_0x245a8b[_0x4e2cec(0x1e5)]()[_0x4e2cec(0x1ec)]===0x0)throw new Error(_0x4e2cec(0x1e7));const _0x41e0a3=_0x245a8b[_0x4e2cec(0x1eb)](/'/g,'\x27\x27');return'\x27'+_0x41e0a3+'\x27';}export function globToLike(_0x2f0047){const _0x374a32=a64_0x2ec1;let _0x496eaa=_0x2f0047['replace'](/\\/g,'\x5c\x5c')[_0x374a32(0x1eb)](/%/g,'\x5c%')[_0x374a32(0x1eb)](/_/g,'\x5c_');return _0x496eaa=_0x496eaa[_0x374a32(0x1eb)](/\*/g,'%')['replace'](/\?/g,'_'),_0x496eaa;}export function buildLikePattern(_0x530e9e){const _0x446b89=a64_0x2ec1;if(!_0x530e9e||_0x530e9e[_0x446b89(0x1e5)]()[_0x446b89(0x1ec)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x198ab7=globToLike(_0x530e9e),_0x622f33=_0x198ab7[_0x446b89(0x1eb)](/'/g,'\x27\x27');return'\x27'+_0x622f33+'\x27';}export function matchGlobPattern(_0x1dd65e,_0x392703){const _0x30fb45=a64_0x2ec1,_0x38589f=_0x392703[_0x30fb45(0x1eb)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x30fb45(0x1eb)](/\?/g,'.'),_0x30ec9b=new RegExp('^'+_0x38589f+'$');return _0x30ec9b[_0x30fb45(0x1e8)](_0x1dd65e);}function a64_0x1f01(){const _0x4ccac5=['Cannot\x20escape\x20empty\x20string\x20literal','test','51JWwyob','128437SDKwVB','replace','length','16ZSjyqS','7478312nxwQYm','repeat','44fBBxiO','unknown','padStart','random','729012wEwzFD','10UbHlAc','3727465PnmRoQ','7476310pFABEj','substring','8850087pzfYjS','floor','44344jrkvhr','toLowerCase','env','trim','USERNAME'];a64_0x1f01=function(){return _0x4ccac5;};return a64_0x1f01();}export function getSanitizedUsername(){const _0x381dfe=a64_0x2ec1,_0x22389f=process[_0x381dfe(0x1e4)]['USER']||process['env'][_0x381dfe(0x1e6)]||_0x381dfe(0x1f1);return _0x22389f['replace'](/[^a-zA-Z0-9]/g,'')[_0x381dfe(0x1e3)]();}export function generateRandomHex(){const _0x2b218c=a64_0x2ec1,_0x97cd8f=Math[_0x2b218c(0x1e1)](Math[_0x2b218c(0x1f3)]()*0xfffff);return _0x97cd8f['toString'](0x10)[_0x2b218c(0x1f2)](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a65_0x3c56(){const _0x3b025c=['trim','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','13045MObVNa','table','3WsUmcf','117332NwTUrP','length','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','split','push','11nCYTUD','652939azNHHI','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','includes','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','16ApyYnj','309146SaHXtM','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','10wqcgwG','catalog','745479KOLgXy','53420plZkPx','6fjvjTR','database','1557576llASRa','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a65_0x3c56=function(){return _0x3b025c;};return a65_0x3c56();}(function(_0x30417c,_0x539ae2){const _0x5b9d47=a65_0x234c,_0x51932f=_0x30417c();while(!![]){try{const _0x1e4e24=parseInt(_0x5b9d47(0x160))/0x1+-parseInt(_0x5b9d47(0x15a))/0x2+-parseInt(_0x5b9d47(0x169))/0x3*(parseInt(_0x5b9d47(0x16a))/0x4)+-parseInt(_0x5b9d47(0x167))/0x5*(parseInt(_0x5b9d47(0x161))/0x6)+-parseInt(_0x5b9d47(0x170))/0x7*(-parseInt(_0x5b9d47(0x159))/0x8)+-parseInt(_0x5b9d47(0x15f))/0x9*(parseInt(_0x5b9d47(0x15d))/0xa)+parseInt(_0x5b9d47(0x16f))/0xb*(parseInt(_0x5b9d47(0x163))/0xc);if(_0x1e4e24===_0x539ae2)break;else _0x51932f['push'](_0x51932f['shift']());}catch(_0x556c1d){_0x51932f['push'](_0x51932f['shift']());}}}(a65_0x3c56,0x1884a));function hasWildcard(_0x27960d){const _0x11ba08=a65_0x234c;return _0x27960d[_0x11ba08(0x172)]('*')||_0x27960d['includes']('?');}export function parseTableReference(_0x417d09){const _0x3a6f8a=a65_0x234c;if(!_0x417d09||_0x417d09[_0x3a6f8a(0x165)]()[_0x3a6f8a(0x16b)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2cb38c=_0x417d09['trim'](),_0x19975f={'original':_0x2cb38c},_0xf3cac4=_0x2cb38c[_0x3a6f8a(0x16d)]('.');if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x1){const _0x1e1d53=_0xf3cac4[0x0];if(!_0x1e1d53)throw new Error(_0x3a6f8a(0x15c));_0x19975f[_0x3a6f8a(0x168)]=_0x1e1d53;}else{if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x2){const [_0x5ae8a4,_0x2fde0d]=_0xf3cac4;if(!_0x5ae8a4)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x2fde0d)throw new Error(_0x3a6f8a(0x166));_0x19975f[_0x3a6f8a(0x162)]=_0x5ae8a4,_0x19975f[_0x3a6f8a(0x168)]=_0x2fde0d;}else{if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x3){const [_0x50c2d4,_0x395df4,_0x1a3ea6]=_0xf3cac4;if(!_0x50c2d4||!_0x395df4||!_0x1a3ea6)throw new Error(_0x3a6f8a(0x164));_0x19975f['catalog']=_0x50c2d4,_0x19975f[_0x3a6f8a(0x162)]=_0x395df4,_0x19975f[_0x3a6f8a(0x168)]=_0x1a3ea6;}else throw new Error(_0x3a6f8a(0x16c));}}return _0x19975f;}function a65_0x234c(_0x4a20ab,_0x2048c8){const _0x3c561d=a65_0x3c56();return a65_0x234c=function(_0x234c6b,_0x2cf878){_0x234c6b=_0x234c6b-0x157;let _0x2d033e=_0x3c561d[_0x234c6b];return _0x2d033e;},a65_0x234c(_0x4a20ab,_0x2048c8);}export function formatTableReference(_0x20e178){const _0x471e3a=a65_0x234c,_0x4bdf7f=[];return _0x20e178[_0x471e3a(0x15e)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x15e)]),_0x20e178[_0x471e3a(0x162)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x162)]),_0x20e178[_0x471e3a(0x168)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x168)]),_0x4bdf7f[_0x471e3a(0x157)]('.');}export function validateTableListReference(_0x2c0bc6){return undefined;}export function validateTableDescribeReference(_0x4d0470){const _0x339e5d=a65_0x234c;if(!_0x4d0470[_0x339e5d(0x168)])return _0x339e5d(0x158);if(_0x4d0470[_0x339e5d(0x162)]&&hasWildcard(_0x4d0470[_0x339e5d(0x162)]))return _0x339e5d(0x15b);if(hasWildcard(_0x4d0470[_0x339e5d(0x168)]))return _0x339e5d(0x171);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a66_0x4599f6=a66_0x1fc8;function a66_0x1fc8(_0x405edc,_0x29c125){const _0x4096c9=a66_0x4096();return a66_0x1fc8=function(_0x1fc8eb,_0x38c6dd){_0x1fc8eb=_0x1fc8eb-0x1c5;let _0x566e20=_0x4096c9[_0x1fc8eb];return _0x566e20;},a66_0x1fc8(_0x405edc,_0x29c125);}(function(_0x36778d,_0x450890){const _0x4106bd=a66_0x1fc8,_0x40384b=_0x36778d();while(!![]){try{const _0xf5c9fb=-parseInt(_0x4106bd(0x1c9))/0x1*(-parseInt(_0x4106bd(0x1d2))/0x2)+-parseInt(_0x4106bd(0x1cb))/0x3*(parseInt(_0x4106bd(0x1c5))/0x4)+parseInt(_0x4106bd(0x1d3))/0x5*(-parseInt(_0x4106bd(0x1cc))/0x6)+-parseInt(_0x4106bd(0x1d1))/0x7+-parseInt(_0x4106bd(0x1c8))/0x8*(parseInt(_0x4106bd(0x1c6))/0x9)+-parseInt(_0x4106bd(0x1ce))/0xa+-parseInt(_0x4106bd(0x1d0))/0xb*(-parseInt(_0x4106bd(0x1ca))/0xc);if(_0xf5c9fb===_0x450890)break;else _0x40384b['push'](_0x40384b['shift']());}catch(_0x1d6af3){_0x40384b['push'](_0x40384b['shift']());}}}(a66_0x4096,0x923e8));export const WORKFLOW_FILE_EXTENSION=a66_0x4599f6(0x1c7);export function shouldIncludeInArchive(_0x54d62c){const _0x239cbf=a66_0x4599f6;if(_0x54d62c===_0x239cbf(0x1cd))return!![];if(_0x54d62c[_0x239cbf(0x1cf)]('.'))return![];return!![];}function a66_0x4096(){const _0x3185a4=['8rTohQS','7688727CnYpDx','.dig','8TDbWtb','74449VmXFEa','12rHmWbo','215763lHntPl','342YCUuFf','.digdag','7823830gtICOq','startsWith','37396953BoOPtH','4466350YcViqN','16sbKkkr','85765foRbqP'];a66_0x4096=function(){return _0x3185a4;};return a66_0x4096();}
|