@treasuredata/tdx 0.1.8 → 0.1.10
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 +82 -1
- 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.d.ts +20 -0
- package/dist/commands/claude-command.d.ts.map +1 -0
- package/dist/commands/claude-command.js +1 -0
- package/dist/commands/claude-command.js.map +1 -0
- 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.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 +36 -1
- 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.d.ts +2 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +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.d.ts +18 -0
- package/dist/utils/port.d.ts.map +1 -0
- package/dist/utils/port.js +1 -0
- package/dist/utils/port.js.map +1 -0
- 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
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ea661,_0x2a3938){const _0x1af6cc=a61_0x4c19,_0x49cb21=_0x1ea661();while(!![]){try{const _0x20c9a0=-parseInt(_0x1af6cc(0x1b1))/0x1+-parseInt(_0x1af6cc(0x1b2))/0x2*(-parseInt(_0x1af6cc(0x1bc))/0x3)+parseInt(_0x1af6cc(0x1b0))/0x4*(parseInt(_0x1af6cc(0x1b3))/0x5)+-parseInt(_0x1af6cc(0x1ae))/0x6*(parseInt(_0x1af6cc(0x1b5))/0x7)+parseInt(_0x1af6cc(0x1b6))/0x8*(-parseInt(_0x1af6cc(0x1c0))/0x9)+parseInt(_0x1af6cc(0x1bf))/0xa*(-parseInt(_0x1af6cc(0x1bd))/0xb)+parseInt(_0x1af6cc(0x1c4))/0xc;if(_0x20c9a0===_0x2a3938)break;else _0x49cb21['push'](_0x49cb21['shift']());}catch(_0x524d36){_0x49cb21['push'](_0x49cb21['shift']());}}}(a61_0x363e,0x922da));import a61_0x51e41c from'ora';export function createCommandSpinner(_0x518fff,_0xf3d863={}){const _0x1b5fd8=a61_0x4c19,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xf3d863;return a61_0x51e41c({'text':_0x518fff,'color':'cyan','isEnabled':forceEnabled||process[_0x1b5fd8(0x1bb)]['isTTY']&&!verbose});}export async function withSpinner(_0x3089b6,_0x3a66cb,_0x4e6b5e={}){const _0x10197=a61_0x4c19,_0x32c974=_0x4e6b5e[_0x10197(0x1af)]??(()=>Date[_0x10197(0x1b8)]()),_0x21ed44=createCommandSpinner(_0x3089b6,_0x4e6b5e);_0x21ed44[_0x10197(0x1ba)]();const _0x1b32d5=_0x32c974();try{const _0x2e3794=await _0x3a66cb(),_0x15b69d=_0x32c974()-_0x1b32d5;return _0x21ed44[_0x10197(0x1c1)](),{'data':_0x2e3794,'elapsedMs':_0x15b69d};}catch(_0x1c7b3b){_0x21ed44[_0x10197(0x1c1)]();throw _0x1c7b3b;}}function a61_0x4c19(_0x596179,_0x4ce355){const _0x363e38=a61_0x363e();return a61_0x4c19=function(_0x4c195e,_0x533074){_0x4c195e=_0x4c195e-0x1ae;let _0x238ac5=_0x363e38[_0x4c195e];return _0x238ac5;},a61_0x4c19(_0x596179,_0x4ce355);}export async function withQuerySpinner(_0xbd417f,_0x3b6071,_0x2bcf12={}){const _0x2eebf2=a61_0x4c19,_0x400d45=_0x2bcf12['clock']??(()=>Date[_0x2eebf2(0x1b8)]()),_0x5ee16c=_0x2bcf12[_0x2eebf2(0x1b9)]??setInterval,_0x21c002=createCommandSpinner(_0xbd417f,_0x2bcf12);_0x21c002[_0x2eebf2(0x1ba)]();const _0x449429=_0x400d45(),_0x32e9fc=_0xbd417f['replace'](_0x2eebf2(0x1c2),''),_0x351796={},_0x591c2d=()=>{const _0x21da69=_0x2eebf2;if(!_0x21c002['isSpinning'])return;const _0x4deba9=((_0x400d45()-_0x449429)/0x3e8)['toFixed'](0x1),_0x384011=_0x351796[_0x21da69(0x1b4)]??_0x32e9fc,_0x17bf33=_0x351796[_0x21da69(0x1be)]?_0x21da69(0x1b7)+_0x351796['jobId']+']':'',_0x4fba3e=_0x351796[_0x21da69(0x1c3)]?'\x20'+_0x351796[_0x21da69(0x1c3)]:'';_0x21c002['text']=_0x384011+'\x20('+_0x4deba9+'s)'+_0x4fba3e+_0x17bf33;},_0x818d65=_0x5ee16c(()=>{_0x591c2d();},0x3e8),_0x316cd8={'setPhase':_0x4c4cca=>{const _0x1a7a23=_0x2eebf2;_0x351796[_0x1a7a23(0x1b4)]=_0x4c4cca,_0x591c2d();},'setJobId':_0x22a4ff=>{const _0x3ce163=_0x2eebf2;_0x351796[_0x3ce163(0x1be)]=_0x22a4ff,_0x591c2d();},'setExtra':_0x4551d2=>{const _0x2f8513=_0x2eebf2;_0x351796[_0x2f8513(0x1c3)]=_0x4551d2,_0x591c2d();}};_0x591c2d();try{const _0x29eaee=await _0x3b6071(_0x316cd8),_0x371f02=_0x400d45()-_0x449429;return{'data':_0x29eaee,'elapsedMs':_0x371f02};}finally{clearInterval(_0x818d65),_0x21c002['stop']();}}export function formatElapsed(_0x105127){return(_0x105127/0x3e8)['toFixed'](0x2)+'s';}function a61_0x363e(){const _0x13a355=['649810MtdhFt','2CVvIKV','315AOmlEG','phase','7lrrgaN','8xExIMU','\x20[Job\x20ID:\x20','now','intervalFactory','start','stdout','801018DeUGou','1408583ZadRYv','jobId','30GOUPcZ','6956811PWsfxf','stop','...','extra','30663456vmWIux','4478052VcegzT','clock','20936XXiQUG'];a61_0x363e=function(){return _0x13a355;};return a61_0x363e();}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ec5a2,_0x141149){const _0x2ce370=a62_0x3dae,_0xe4ec0=_0x5ec5a2();while(!![]){try{const _0xc7f05d=-parseInt(_0x2ce370(0xd2))/0x1+-parseInt(_0x2ce370(0xd1))/0x2+parseInt(_0x2ce370(0xd9))/0x3+parseInt(_0x2ce370(0xc8))/0x4*(-parseInt(_0x2ce370(0xdf))/0x5)+parseInt(_0x2ce370(0xd3))/0x6*(-parseInt(_0x2ce370(0xd0))/0x7)+-parseInt(_0x2ce370(0xce))/0x8+parseInt(_0x2ce370(0xdd))/0x9;if(_0xc7f05d===_0x141149)break;else _0xe4ec0['push'](_0xe4ec0['shift']());}catch(_0x1980e5){_0xe4ec0['push'](_0xe4ec0['shift']());}}}(a62_0x6b4c,0x64bb5));import{readFileSync}from'fs';function a62_0x3dae(_0x1099f4,_0x321ee0){const _0x6b4c78=a62_0x6b4c();return a62_0x3dae=function(_0x3dae9e,_0x163698){_0x3dae9e=_0x3dae9e-0xc8;let _0x1131f3=_0x6b4c78[_0x3dae9e];return _0x1131f3;},a62_0x3dae(_0x1099f4,_0x321ee0);}export function stripSqlComments(_0x3a6405){const _0x2a8965=a62_0x3dae;let _0x3c332e=_0x3a6405[_0x2a8965(0xca)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3c332e=_0x3c332e['replace'](/--.*$/gm,''),_0x3c332e['trim']();}function isEscaped(_0x5d9b40,_0x445f2d){let _0x5553aa=0x0;for(let _0x139e33=_0x445f2d-0x1;_0x139e33>=0x0&&_0x5d9b40[_0x139e33]==='\x5c';_0x139e33--){_0x5553aa++;}return _0x5553aa%0x2===0x1;}function a62_0x6b4c(){const _0x41ea0e=['Content\x20contains\x20no\x20SQL\x20statements','1330896bdZoEt','map','381500DNYuiA','1126646vgaHEV','485926pEkQXm','6Wznnnp','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','filter','utf-8','trim','1056015umVHYi','\x27\x20not\x20found','code','length','14574483Mzdqlv','Error\x20reading\x20file\x20\x27','270hDjXzb','File\x20\x27','21384yPAGiI','EACCES','replace','\x27:\x20','push'];a62_0x6b4c=function(){return _0x41ea0e;};return a62_0x6b4c();}export function splitSqlStatements(_0x509891){const _0x2e8677=a62_0x3dae,_0x2e32e4=stripSqlComments(_0x509891);if(!_0x2e32e4)throw new Error(_0x2e8677(0xcd));const _0x18b104=[];let _0x5d71c4='',_0x227a80=![],_0x1b23bd=![],_0x5d951d=![];for(let _0x7dfb0d=0x0;_0x7dfb0d<_0x509891[_0x2e8677(0xdc)];_0x7dfb0d++){const _0x29d0d1=_0x509891[_0x7dfb0d];if(_0x29d0d1==='\x27'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x1b23bd&&!_0x5d951d)_0x227a80=!_0x227a80;else{if(_0x29d0d1==='\x22'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x5d951d)_0x1b23bd=!_0x1b23bd;else _0x29d0d1==='`'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x1b23bd&&(_0x5d951d=!_0x5d951d);}if(_0x29d0d1===';'&&!_0x227a80&&!_0x1b23bd&&!_0x5d951d){const _0x199568=_0x5d71c4[_0x2e8677(0xd8)]();_0x199568&&_0x18b104[_0x2e8677(0xcc)](_0x199568),_0x5d71c4='';}else _0x5d71c4+=_0x29d0d1;}const _0x434ae4=_0x5d71c4['trim']();_0x434ae4&&_0x18b104[_0x2e8677(0xcc)](_0x434ae4);const _0x2e79a9=_0x18b104[_0x2e8677(0xcf)](_0x5b9ff1=>_0x5b9ff1[_0x2e8677(0xd8)]())[_0x2e8677(0xd6)](_0x109912=>{const _0x3dc3d9=stripSqlComments(_0x109912);return _0x3dc3d9['length']>0x0;});if(_0x2e79a9[_0x2e8677(0xdc)]===0x0)throw new Error(_0x2e8677(0xcd));return _0x2e79a9;}export function readFileContent(_0x359c9d){const _0x5728c0=a62_0x3dae;try{return readFileSync(_0x359c9d,_0x5728c0(0xd7));}catch(_0x23c791){const _0x3bce94=_0x23c791[_0x5728c0(0xdb)];if(_0x3bce94===_0x5728c0(0xd4))throw new Error(_0x5728c0(0xe0)+_0x359c9d+_0x5728c0(0xda));else{if(_0x3bce94===_0x5728c0(0xc9))throw new Error(_0x5728c0(0xd5)+_0x359c9d+'\x27');else throw new Error(_0x5728c0(0xde)+_0x359c9d+_0x5728c0(0xcb)+_0x23c791['message']);}}}export function readSqlStatementsFromFile(_0xc38489){const _0x4ff0e9=a62_0x3dae,_0x411f3=readFileContent(_0xc38489);try{return splitSqlStatements(_0x411f3);}catch(_0x4824da){throw new Error(_0x4ff0e9(0xe0)+_0xc38489+'\x27\x20'+_0x4824da['message']['toLowerCase']());}}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a63_0x41ff(){const _0x41c717=['814737GHoBPj','trim','Response\x20body\x20is\x20null','releaseLock','data','event','2345136nCzMiO','51650EVeyYo','decode','12OmgWzu','78572bCmqif','slice','5662300YRUUcu','997650LbBsNa','split','1509RKQPJe','startsWith','body','pop','524lMVtmY','40AWJPUE','read','parse'];a63_0x41ff=function(){return _0x41c717;};return a63_0x41ff();}(function(_0x4c44e6,_0x52c48d){const _0x35125a=a63_0x3b51,_0x20c835=_0x4c44e6();while(!![]){try{const _0x4f71b1=parseInt(_0x35125a(0x119))/0x1+parseInt(_0x35125a(0x125))/0x2*(-parseInt(_0x35125a(0x121))/0x3)+-parseInt(_0x35125a(0x11c))/0x4*(parseInt(_0x35125a(0x126))/0x5)+-parseInt(_0x35125a(0x11b))/0x6*(-parseInt(_0x35125a(0x129))/0x7)+-parseInt(_0x35125a(0x118))/0x8+-parseInt(_0x35125a(0x11f))/0x9+parseInt(_0x35125a(0x11e))/0xa;if(_0x4f71b1===_0x52c48d)break;else _0x20c835['push'](_0x20c835['shift']());}catch(_0x4b61d8){_0x20c835['push'](_0x20c835['shift']());}}}(a63_0x41ff,0x2682c));export async function*parseSSEStream(_0x35a735){const _0x3e755f=a63_0x3b51;if(!_0x35a735['body'])throw new Error(_0x3e755f(0x12b));const _0x2550df=_0x35a735[_0x3e755f(0x123)]['getReader'](),_0x23b05a=new TextDecoder();let _0x2d3e66='',_0xe288da={};try{while(!![]){const {done:_0x16246e,value:_0x4a7280}=await _0x2550df[_0x3e755f(0x127)]();if(_0x16246e){_0xe288da[_0x3e755f(0x12d)]&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]));break;}_0x2d3e66+=_0x23b05a[_0x3e755f(0x11a)](_0x4a7280,{'stream':!![]});const _0x5d0aef=_0x2d3e66[_0x3e755f(0x120)]('\x0a');_0x2d3e66=_0x5d0aef[_0x3e755f(0x124)]()||'';for(const _0x1c60ea of _0x5d0aef){if(_0x1c60ea[_0x3e755f(0x12a)]()===''){_0xe288da['data']&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]),_0xe288da={});continue;}if(_0x1c60ea[_0x3e755f(0x122)](':'))continue;const _0x5f3e1a=_0x1c60ea['indexOf'](':');if(_0x5f3e1a===-0x1)continue;const _0x1719b6=_0x1c60ea[_0x3e755f(0x11d)](0x0,_0x5f3e1a);let _0x48c392=_0x1c60ea[_0x3e755f(0x11d)](_0x5f3e1a+0x1);_0x48c392['startsWith']('\x20')&&(_0x48c392=_0x48c392[_0x3e755f(0x11d)](0x1));switch(_0x1719b6){case _0x3e755f(0x117):_0xe288da['event']=_0x48c392;break;case _0x3e755f(0x12d):_0xe288da['data']=_0xe288da[_0x3e755f(0x12d)]?_0xe288da[_0x3e755f(0x12d)]+'\x0a'+_0x48c392:_0x48c392;break;case'id':_0xe288da['id']=_0x48c392;break;}}}}finally{_0x2550df[_0x3e755f(0x12c)]();}}function a63_0x3b51(_0x5665d1,_0xc95071){const _0x41ffa5=a63_0x41ff();return a63_0x3b51=function(_0x3b51f1,_0x5e8735){_0x3b51f1=_0x3b51f1-0x117;let _0x4ad385=_0x41ffa5[_0x3b51f1];return _0x4ad385;},a63_0x3b51(_0x5665d1,_0xc95071);}function parseSSEData(_0x4b3ab7){const _0x833b43=a63_0x3b51;try{return JSON[_0x833b43(0x128)](_0x4b3ab7);}catch(_0x130dd5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4b3ab7,{'cause':_0x130dd5});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12e14e,_0x491923){const _0x50beed=a64_0x45d6,_0x1fa30c=_0x12e14e();while(!![]){try{const _0x31be64=parseInt(_0x50beed(0xe9))/0x1*(-parseInt(_0x50beed(0xf6))/0x2)+parseInt(_0x50beed(0xec))/0x3+parseInt(_0x50beed(0xf4))/0x4+-parseInt(_0x50beed(0xe5))/0x5+parseInt(_0x50beed(0xf0))/0x6*(parseInt(_0x50beed(0xe3))/0x7)+-parseInt(_0x50beed(0xe8))/0x8*(-parseInt(_0x50beed(0xf7))/0x9)+-parseInt(_0x50beed(0xf1))/0xa;if(_0x31be64===_0x491923)break;else _0x1fa30c['push'](_0x1fa30c['shift']());}catch(_0x48e592){_0x1fa30c['push'](_0x1fa30c['shift']());}}}(a64_0x7fe1,0x6bbcb));import a64_0x29fce1 from'string-width';export function stringWidth(_0xc75a94){return a64_0x29fce1(_0xc75a94);}export function padEnd(_0x8995c,_0x40b663){const _0x1edd8e=a64_0x45d6,_0x3f90d7=stringWidth(_0x8995c);if(_0x3f90d7>=_0x40b663)return _0x8995c;return _0x8995c+'\x20'[_0x1edd8e(0xeb)](_0x40b663-_0x3f90d7);}export function padStart(_0x7cf8e6,_0x521608){const _0x429a30=a64_0x45d6,_0x459256=stringWidth(_0x7cf8e6);if(_0x459256>=_0x521608)return _0x7cf8e6;return'\x20'[_0x429a30(0xeb)](_0x521608-_0x459256)+_0x7cf8e6;}export function centerAlign(_0xf5783b,_0x257bdc){const _0x539f15=a64_0x45d6,_0x5a8824=stringWidth(_0xf5783b);if(_0x5a8824>_0x257bdc){if(_0x257bdc<=0x1)return'…'[_0x539f15(0xe7)](0x0,_0x257bdc);let _0x3c6e29=_0xf5783b;while(stringWidth(_0x3c6e29+'…')>_0x257bdc){_0x3c6e29=_0x3c6e29[_0x539f15(0xed)](0x0,-0x1);}return _0x3c6e29+'…';}if(_0x5a8824===_0x257bdc)return _0xf5783b;const _0x258cba=_0x257bdc-_0x5a8824,_0xdc2970=Math[_0x539f15(0xf5)](_0x258cba/0x2),_0x3125d9=_0x258cba-_0xdc2970;return'\x20'[_0x539f15(0xeb)](_0xdc2970)+_0xf5783b+'\x20'[_0x539f15(0xeb)](_0x3125d9);}export function escapeStringLiteral(_0xbe962c){const _0x3a2013=a64_0x45d6;if(!_0xbe962c||_0xbe962c[_0x3a2013(0xf2)]()[_0x3a2013(0xe6)]===0x0)throw new Error(_0x3a2013(0xea));const _0x216fe4=_0xbe962c['replace'](/'/g,'\x27\x27');return'\x27'+_0x216fe4+'\x27';}export function globToLike(_0x6bc07f){const _0xf101cd=a64_0x45d6;let _0x1a2f74=_0x6bc07f[_0xf101cd(0xef)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0xf101cd(0xef)](/_/g,'\x5c_');return _0x1a2f74=_0x1a2f74['replace'](/\*/g,'%')[_0xf101cd(0xef)](/\?/g,'_'),_0x1a2f74;}function a64_0x45d6(_0x23113c,_0x2423ab){const _0x7fe1a3=a64_0x7fe1();return a64_0x45d6=function(_0x45d6ba,_0x1c4991){_0x45d6ba=_0x45d6ba-0xe2;let _0x35a38c=_0x7fe1a3[_0x45d6ba];return _0x35a38c;},a64_0x45d6(_0x23113c,_0x2423ab);}export function buildLikePattern(_0x392da0){const _0x5243c2=a64_0x45d6;if(!_0x392da0||_0x392da0[_0x5243c2(0xf2)]()[_0x5243c2(0xe6)]===0x0)throw new Error(_0x5243c2(0xf9));const _0xba0ec8=globToLike(_0x392da0),_0x1cc0af=_0xba0ec8[_0x5243c2(0xef)](/'/g,'\x27\x27');return'\x27'+_0x1cc0af+'\x27';}function a64_0x7fe1(){const _0x9f092c=['3269zfTlIG','unknown','1855515BkcYmY','length','substring','14480NNkEPq','1pnFnGE','Cannot\x20escape\x20empty\x20string\x20literal','repeat','801870SqaKzl','slice','USER','replace','1050UbppUZ','2645590FcnEoV','trim','toLowerCase','2382112UQnQWr','floor','173200yQNAVU','1089NDUjHa','toString','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&','env','random'];a64_0x7fe1=function(){return _0x9f092c;};return a64_0x7fe1();}export function matchGlobPattern(_0x12fc7f,_0x47aefa){const _0x88265e=a64_0x45d6,_0x9d6619=_0x47aefa['replace'](/[.+^${}()|[\]\\]/g,_0x88265e(0xfa))[_0x88265e(0xef)](/\*/g,'.*')[_0x88265e(0xef)](/\?/g,'.'),_0x4c7738=new RegExp('^'+_0x9d6619+'$');return _0x4c7738['test'](_0x12fc7f);}export function getSanitizedUsername(){const _0x47f6e7=a64_0x45d6,_0x2f6e61=process[_0x47f6e7(0xfb)][_0x47f6e7(0xee)]||process[_0x47f6e7(0xfb)]['USERNAME']||_0x47f6e7(0xe4);return _0x2f6e61['replace'](/[^a-zA-Z0-9]/g,'')[_0x47f6e7(0xf3)]();}export function generateRandomHex(){const _0x1441ec=a64_0x45d6,_0x59885f=Math[_0x1441ec(0xf5)](Math[_0x1441ec(0xe2)]()*0xfffff);return _0x59885f[_0x1441ec(0xf8)](0x10)['padStart'](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x718f2e,_0x55812d){const _0x2ec364=a65_0x3688,_0x1d25fe=_0x718f2e();while(!![]){try{const _0x294ce2=parseInt(_0x2ec364(0xdc))/0x1+parseInt(_0x2ec364(0xf1))/0x2+-parseInt(_0x2ec364(0xea))/0x3*(-parseInt(_0x2ec364(0xe7))/0x4)+parseInt(_0x2ec364(0xdb))/0x5*(-parseInt(_0x2ec364(0xe9))/0x6)+parseInt(_0x2ec364(0xde))/0x7*(parseInt(_0x2ec364(0xe0))/0x8)+-parseInt(_0x2ec364(0xe8))/0x9*(-parseInt(_0x2ec364(0xef))/0xa)+parseInt(_0x2ec364(0xe6))/0xb*(-parseInt(_0x2ec364(0xd9))/0xc);if(_0x294ce2===_0x55812d)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x563f83){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a65_0x14ee,0xa819f));function hasWildcard(_0x4998dd){const _0x2fe276=a65_0x3688;return _0x4998dd['includes']('*')||_0x4998dd[_0x2fe276(0xeb)]('?');}export function parseTableReference(_0x1f49f1){const _0x90239c=a65_0x3688;if(!_0x1f49f1||_0x1f49f1['trim']()[_0x90239c(0xf4)]===0x0)throw new Error(_0x90239c(0xf3));const _0x407f25=_0x1f49f1[_0x90239c(0xe5)](),_0x31b174={'original':_0x407f25},_0x457ef7=_0x407f25['split']('.');if(_0x457ef7[_0x90239c(0xf4)]===0x1){const _0x49e94c=_0x457ef7[0x0];if(!_0x49e94c)throw new Error(_0x90239c(0xe3));_0x31b174[_0x90239c(0xe2)]=_0x49e94c;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x2){const [_0x3df38d,_0x8de70b]=_0x457ef7;if(!_0x3df38d)throw new Error(_0x90239c(0xdf));if(!_0x8de70b)throw new Error(_0x90239c(0xe4));_0x31b174[_0x90239c(0xec)]=_0x3df38d,_0x31b174['table']=_0x8de70b;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x3){const [_0x2d29f4,_0x56dfbd,_0x961bb8]=_0x457ef7;if(!_0x2d29f4||!_0x56dfbd||!_0x961bb8)throw new Error(_0x90239c(0xf2));_0x31b174[_0x90239c(0xf0)]=_0x2d29f4,_0x31b174[_0x90239c(0xec)]=_0x56dfbd,_0x31b174[_0x90239c(0xe2)]=_0x961bb8;}else throw new Error(_0x90239c(0xe1));}}return _0x31b174;}function a65_0x14ee(){const _0x174759=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','24uYlNnV','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','1969aYrpGl','2596NSXuCA','520290BJjLnO','1332RckWme','6213hdecVx','includes','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','push','180hCLlcu','catalog','1870702UTTgFV','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','194316NvLCMB','join','15475mDxjZe','639371aFALEU','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','734531GyQCrk'];a65_0x14ee=function(){return _0x174759;};return a65_0x14ee();}function a65_0x3688(_0xc15304,_0x230ce7){const _0x14ee85=a65_0x14ee();return a65_0x3688=function(_0x3688fb,_0x50e550){_0x3688fb=_0x3688fb-0xd9;let _0x5bf910=_0x14ee85[_0x3688fb];return _0x5bf910;},a65_0x3688(_0xc15304,_0x230ce7);}export function formatTableReference(_0x56189f){const _0x5e055b=a65_0x3688,_0x30aad8=[];return _0x56189f[_0x5e055b(0xf0)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xf0)]),_0x56189f[_0x5e055b(0xec)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f['database']),_0x56189f['table']&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xe2)]),_0x30aad8[_0x5e055b(0xda)]('.');}export function validateTableListReference(_0x3a6255){return undefined;}export function validateTableDescribeReference(_0x14d490){const _0xbfb86c=a65_0x3688;if(!_0x14d490['table'])return _0xbfb86c(0xdd);if(_0x14d490[_0xbfb86c(0xec)]&&hasWildcard(_0x14d490[_0xbfb86c(0xec)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x14d490[_0xbfb86c(0xe2)]))return _0xbfb86c(0xed);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x13b7ad=a66_0x143d;function a66_0x1f00(){const _0x527cf2=['3383394pNuSxu','9098376JqfUYE','19583775sbOSFV','6493040IcOgFd','.digdag','8QucgKd','6405203piOPRr','50443nTjCqF','.dig','startsWith','5AbVCKr','4878556AHdUCX'];a66_0x1f00=function(){return _0x527cf2;};return a66_0x1f00();}(function(_0x5385d5,_0x1c160b){const _0x35e0b6=a66_0x143d,_0x457fb0=_0x5385d5();while(!![]){try{const _0x372095=-parseInt(_0x35e0b6(0x1c8))/0x1*(parseInt(_0x35e0b6(0x1c6))/0x2)+parseInt(_0x35e0b6(0x1c1))/0x3+parseInt(_0x35e0b6(0x1c0))/0x4*(-parseInt(_0x35e0b6(0x1cb))/0x5)+parseInt(_0x35e0b6(0x1c2))/0x6+parseInt(_0x35e0b6(0x1c7))/0x7+parseInt(_0x35e0b6(0x1c4))/0x8+-parseInt(_0x35e0b6(0x1c3))/0x9;if(_0x372095===_0x1c160b)break;else _0x457fb0['push'](_0x457fb0['shift']());}catch(_0x20e176){_0x457fb0['push'](_0x457fb0['shift']());}}}(a66_0x1f00,0xbcd5b));export const WORKFLOW_FILE_EXTENSION=a66_0x13b7ad(0x1c9);function a66_0x143d(_0x59547d,_0x1da59d){const _0x1f00e0=a66_0x1f00();return a66_0x143d=function(_0x143d9c,_0x1894f3){_0x143d9c=_0x143d9c-0x1c0;let _0x4fa255=_0x1f00e0[_0x143d9c];return _0x4fa255;},a66_0x143d(_0x59547d,_0x1da59d);}export function shouldIncludeInArchive(_0x4f35a1){const _0x2ffc83=a66_0x13b7ad;if(_0x4f35a1===_0x2ffc83(0x1c5))return!![];if(_0x4f35a1[_0x2ffc83(0x1ca)]('.'))return![];return!![];}
|