@treasuredata/tdx 0.1.8 → 0.1.9
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 +14 -1
- 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/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.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/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/formatters.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e9616,_0x417cba){const _0x4115bd=a54_0x5480,_0x5738b0=_0x4e9616();while(!![]){try{const _0x4067d9=-parseInt(_0x4115bd(0x12d))/0x1*(-parseInt(_0x4115bd(0x136))/0x2)+-parseInt(_0x4115bd(0x11b))/0x3+parseInt(_0x4115bd(0x13a))/0x4+-parseInt(_0x4115bd(0x12e))/0x5*(parseInt(_0x4115bd(0x128))/0x6)+-parseInt(_0x4115bd(0x10f))/0x7*(parseInt(_0x4115bd(0x126))/0x8)+parseInt(_0x4115bd(0x139))/0x9*(-parseInt(_0x4115bd(0x11a))/0xa)+-parseInt(_0x4115bd(0x11f))/0xb*(-parseInt(_0x4115bd(0x131))/0xc);if(_0x4067d9===_0x417cba)break;else _0x5738b0['push'](_0x5738b0['shift']());}catch(_0x50e21c){_0x5738b0['push'](_0x5738b0['shift']());}}}(a54_0x4c24,0x3d75f));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a54_0x5480(_0x467486,_0x169b29){const _0x4c24f0=a54_0x4c24();return a54_0x5480=function(_0x5480e1,_0x1841de){_0x5480e1=_0x5480e1-0x10a;let _0x61e365=_0x4c24f0[_0x5480e1];return _0x61e365;},a54_0x5480(_0x467486,_0x169b29);}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x1c9fa7=a54_0x5480;return process[_0x1c9fa7(0x13b)][_0x1c9fa7(0x137)]||Infinity;}export function formatAsTable(_0x34d96e,_0x46a868=DEFAULT_MAX_DISPLAY_ROWS,_0x37dce5=![],_0x49f831={}){const _0x355f64=a54_0x5480;if(_0x34d96e[_0x355f64(0x119)][_0x355f64(0x130)]===0x0)return _0x355f64(0x13c);const _0x4edf38=_0x34d96e[_0x355f64(0x137)]['map'](_0x39c810=>_0x39c810[_0x355f64(0x13d)]),_0x2018f8=_0x34d96e[_0x355f64(0x137)][_0x355f64(0x121)](_0x170390=>simplifyType(_0x170390[_0x355f64(0x123)])),_0x33475c=_0x34d96e[_0x355f64(0x119)][_0x355f64(0x129)](0x0,_0x46a868),_0x6ed9b8=_0x34d96e[_0x355f64(0x119)]['length'],_0x131454=_0x6ed9b8>_0x46a868,_0x31f47d=[],_0x5efc21=getTerminalWidth(),_0x5f1ee7=_0x5efc21!==Infinity,_0x48e313=0x32;let _0x8b9390=_0x4edf38[_0x355f64(0x121)]((_0xb4f692,_0x318b4a)=>{const _0x45a2ec=_0x355f64,_0x2980ca=stringWidth(_0x2018f8[_0x318b4a]),_0x292254=Math[_0x45a2ec(0x113)](..._0x33475c['map'](_0x177eb5=>{const _0x307c5c=_0x177eb5[_0xb4f692];return stringWidth(formatValue(_0x307c5c));})),_0x2ca79d=Math[_0x45a2ec(0x113)](stringWidth(_0xb4f692),_0x2980ca,_0x292254);return _0x37dce5?_0x2ca79d:Math[_0x45a2ec(0x133)](_0x2ca79d,_0x48e313);});if(_0x5f1ee7&&!_0x37dce5&&_0x4edf38[_0x355f64(0x130)]>0x0){const _0x47cb7d=_0x5185dd=>{let _0xfe24c9=0x1;for(const _0x4d9783 of _0x5185dd){_0xfe24c9+=_0x4d9783+0x3;}return _0xfe24c9+0x1;};let _0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c>_0x5efc21){const _0x5a330b=0x3;for(let _0x42373f=_0x8b9390[_0x355f64(0x130)]-0x1;_0x42373f>=0x0;_0x42373f--){_0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c<=_0x5efc21)break;const _0x3090b4=_0x8b9390[_0x42373f],_0x3aae40=_0x55ff7c-_0x5efc21,_0xff3e44=_0x3090b4-_0x5a330b,_0x219a29=Math[_0x355f64(0x133)](_0x3aae40,_0xff3e44);_0x219a29>0x0&&(_0x8b9390[_0x42373f]=_0x3090b4-_0x219a29);}}}const _0x426903=_0x4edf38,_0x5f2b97=_0x2018f8,_0x20f6a6=_0x8b9390,_0x1f86ba=_0x8b9390;_0x31f47d[_0x355f64(0x12c)](colorBorder('┌'+_0x1f86ba['map'](_0x577ebf=>'─'[_0x355f64(0x11d)](_0x577ebf+0x2))[_0x355f64(0x110)]('┬')+'┐',_0x49f831));const _0xc8c1e0=_0x426903[_0x355f64(0x121)]((_0x4ec0d7,_0x4613b6)=>centerAlign(_0x4ec0d7,_0x20f6a6[_0x4613b6]));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0xc8c1e0[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));const _0x237ebd=_0x5f2b97['map']((_0x13a316,_0x23ed04)=>colorType(centerAlign(_0x13a316,_0x20f6a6[_0x23ed04]),_0x49f831));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x237ebd[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x177dba=>'─'[_0x355f64(0x11d)](_0x177dba+0x2))[_0x355f64(0x110)]('┼')+'┤',_0x49f831));const _0x386fdc=(_0x4e0e73,_0x53b344)=>{const _0x484602=_0x355f64,_0x60b2cc=stringWidth(_0x4e0e73);if(_0x60b2cc<=_0x53b344)return _0x4e0e73;let _0x8b5c7e=_0x4e0e73;while(stringWidth(_0x8b5c7e+'…')>_0x53b344&&_0x8b5c7e[_0x484602(0x130)]>0x0){_0x8b5c7e=_0x8b5c7e[_0x484602(0x129)](0x0,-0x1);}return _0x8b5c7e+'…';};_0x33475c[_0x355f64(0x11c)](_0x5e11e1=>{const _0x35eca8=_0x355f64,_0x54ccbd=_0x4edf38[_0x35eca8(0x121)]((_0x1d0124,_0x3e1a7d)=>{const _0x36936f=_0x35eca8,_0x2717a8=_0x5e11e1[_0x1d0124],_0x2937eb=formatValue(_0x2717a8),_0x32671c=_0x20f6a6[_0x3e1a7d],_0x4dc2e7=_0x386fdc(_0x2937eb,_0x32671c),_0x40613=typeof _0x2717a8==='number'||typeof _0x2717a8===_0x36936f(0x127)&&/^-?\d+$/[_0x36936f(0x111)](_0x2717a8);return _0x40613?padStart(_0x4dc2e7,_0x32671c):padEnd(_0x4dc2e7,_0x32671c);});_0x31f47d[_0x35eca8(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x54ccbd[_0x35eca8(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));});const _0x8c159d=_0x1f86ba[_0x355f64(0x10e)]((_0x4246a6,_0x104e4c)=>_0x4246a6+_0x104e4c+0x3,-0x1);_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x258aa4=>'─'['repeat'](_0x258aa4+0x2))[_0x355f64(0x110)]('┴')+'┤',_0x49f831));let _0x405072;_0x131454?_0x405072=_0x6ed9b8+_0x355f64(0x135)+_0x46a868+_0x355f64(0x10d):_0x405072=_0x6ed9b8+_0x355f64(0x10b)+(_0x6ed9b8===0x1?'':'s');const _0x8c0712=_0x405072[_0x355f64(0x132)](_0x8c159d-0x2);return _0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x8c0712+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('└'+'─'[_0x355f64(0x11d)](_0x8c159d)+'┘',_0x49f831)),_0x31f47d['join']('\x0a');}function a54_0x4c24(){const _0x2798b7=['stringify','toISOString','object','data','1450lsRoja','215682LGPIMN','forEach','repeat','startsWith','3338819GEbhcf','false','map','bool','type','tsv','number','1672PQktTU','string','29586IncjLn','slice','true','double','push','3WynYBH','285IdqQoP','timestamp','length','12CtFgQx','padEnd','min','substring','\x20rows\x20(','222962jswKck','columns','toLowerCase','810htBaXv','655644dvWONu','stdout','No\x20rows\x20returned','name','date','\x20row','replace','\x20shown)','reduce','6167ttGuWY','join','test','int','max','long','boolean'];a54_0x4c24=function(){return _0x2798b7;};return a54_0x4c24();}function simplifyType(_0x2d09c6){const _0x262eda=a54_0x5480,_0x51e001={'varchar':_0x262eda(0x127),'bigint':_0x262eda(0x114),'integer':_0x262eda(0x112),'double':_0x262eda(0x12b),'boolean':_0x262eda(0x122),'date':_0x262eda(0x10a),'timestamp':_0x262eda(0x12f),'array':'array','map':_0x262eda(0x121),'row':'row'},_0x6adbdb=_0x2d09c6[_0x262eda(0x138)]();for(const [_0x5edb9f,_0xa7e302]of Object['entries'](_0x51e001)){if(_0x6adbdb[_0x262eda(0x11e)](_0x5edb9f))return _0xa7e302;}return _0x2d09c6[_0x262eda(0x130)]>0xa?_0x2d09c6[_0x262eda(0x134)](0x0,0xa):_0x2d09c6;}export function formatAsJSON(_0x47d712,_0x4539a8={}){const _0x35eb4e=a54_0x5480;if(_0x47d712[_0x35eb4e(0x119)]['length']===0x0)return'[]';if(shouldUseColor(_0x4539a8))return colorizeJSON(_0x47d712['data'],_0x4539a8);const _0x572c66=_0x47d712[_0x35eb4e(0x119)][_0x35eb4e(0x121)](_0x26e435=>'\x20\x20'+JSON[_0x35eb4e(0x116)](_0x26e435));return'[\x0a'+_0x572c66[_0x35eb4e(0x110)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x3efae0,_0x4088cd={}){const _0x49500a=a54_0x5480;if(_0x3efae0['data'][_0x49500a(0x130)]===0x0)return'';if(shouldUseColor(_0x4088cd))return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x206766=>colorizeJSONCompact(_0x206766,_0x4088cd))['join']('\x0a');return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x156914=>JSON[_0x49500a(0x116)](_0x156914))[_0x49500a(0x110)]('\x0a');}export function formatAsTSV(_0x4120ae){const _0x170661=a54_0x5480;if(_0x4120ae['data']['length']===0x0)return'';const _0x26845=[],_0x3e1348=_0x4120ae['columns'][_0x170661(0x121)](_0x1d1f5f=>_0x1d1f5f[_0x170661(0x13d)]);return _0x26845['push'](_0x3e1348['join']('\x09')),_0x4120ae[_0x170661(0x119)][_0x170661(0x11c)](_0x1b052d=>{const _0x32078f=_0x170661,_0x1bb7ef=_0x3e1348[_0x32078f(0x121)](_0x1419fa=>{const _0x5673c9=_0x1b052d[_0x1419fa];return formatValueForTSV(_0x5673c9);});_0x26845[_0x32078f(0x12c)](_0x1bb7ef[_0x32078f(0x110)]('\x09'));}),_0x26845['join']('\x0a');}function formatValue(_0x2b6434){const _0x1263d9=a54_0x5480;if(_0x2b6434===null||_0x2b6434===undefined)return'';if(typeof _0x2b6434===_0x1263d9(0x127)){const _0x4d0d09=_0x2b6434['replace'](/\n/g,'\x5cn')[_0x1263d9(0x10c)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x4d0d09;}if(typeof _0x2b6434===_0x1263d9(0x125))return String(_0x2b6434);if(typeof _0x2b6434===_0x1263d9(0x115))return _0x2b6434?_0x1263d9(0x12a):_0x1263d9(0x120);if(_0x2b6434 instanceof Date)return _0x2b6434['toISOString']();if(typeof _0x2b6434===_0x1263d9(0x118))return JSON[_0x1263d9(0x116)](_0x2b6434);return String(_0x2b6434);}function formatValueForTSV(_0x3a5e80){const _0x4c558e=a54_0x5480;if(_0x3a5e80===null||_0x3a5e80===undefined)return'';if(typeof _0x3a5e80==='string')return _0x3a5e80[_0x4c558e(0x10c)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3a5e80===_0x4c558e(0x125)||typeof _0x3a5e80===_0x4c558e(0x115))return String(_0x3a5e80);if(_0x3a5e80 instanceof Date)return _0x3a5e80[_0x4c558e(0x117)]();if(typeof _0x3a5e80===_0x4c558e(0x118))return JSON[_0x4c558e(0x116)](_0x3a5e80);return String(_0x3a5e80);}export function formatQueryResult(_0x464596,_0x28b287){const _0x131f5=a54_0x5480;switch(_0x28b287){case'table':return formatAsTable(_0x464596);case'json':return formatAsJSON(_0x464596);case'jsonl':return formatAsJSONL(_0x464596);case _0x131f5(0x124):return formatAsTSV(_0x464596);default:return formatAsJSON(_0x464596);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x159b4b=a55_0x11b3;(function(_0x8f0f8a,_0x8c8107){const _0x5ccecb=a55_0x11b3,_0x16f38b=_0x8f0f8a();while(!![]){try{const _0x2707ba=parseInt(_0x5ccecb(0xea))/0x1+-parseInt(_0x5ccecb(0xe6))/0x2*(-parseInt(_0x5ccecb(0xe7))/0x3)+-parseInt(_0x5ccecb(0xe0))/0x4*(-parseInt(_0x5ccecb(0xe8))/0x5)+parseInt(_0x5ccecb(0xe9))/0x6+parseInt(_0x5ccecb(0xe5))/0x7+parseInt(_0x5ccecb(0xe1))/0x8+-parseInt(_0x5ccecb(0xe4))/0x9;if(_0x2707ba===_0x8c8107)break;else _0x16f38b['push'](_0x16f38b['shift']());}catch(_0x4a6194){_0x16f38b['push'](_0x16f38b['shift']());}}}(a55_0xc152,0x3d8f8));function a55_0xc152(){const _0x13ab48=['22ydpwSg','100923OuTaKg','1563585Cpkfiq','1274586uxgfWy','308095gqxsfW','4TbKbPU','3083600KLMwXy','toLowerCase','claude-4.5-haiku','13697712LosXYH','1297632ZkCmZu'];a55_0xc152=function(){return _0x13ab48;};return a55_0xc152();}const MODEL_ALIASES={'haiku':a55_0x159b4b(0xe3),'sonnet':'claude-4.5-sonnet'};function a55_0x11b3(_0x5e055f,_0x46707b){const _0xc1523c=a55_0xc152();return a55_0x11b3=function(_0x11b382,_0x41dc8e){_0x11b382=_0x11b382-0xe0;let _0x1259e9=_0xc1523c[_0x11b382];return _0x1259e9;},a55_0x11b3(_0x5e055f,_0x46707b);}export function resolveModelAlias(_0x1d041c){const _0x3b9b98=a55_0x159b4b;return MODEL_ALIASES[_0x1d041c[_0x3b9b98(0xe2)]()]||_0x1d041c;}export function getModelAliases(){return{...MODEL_ALIASES};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c310d,_0x83f2f2){const _0x4a991f=a56_0x7851,_0x3c90aa=_0x1c310d();while(!![]){try{const _0x4454f2=-parseInt(_0x4a991f(0x1d1))/0x1*(parseInt(_0x4a991f(0x1cd))/0x2)+parseInt(_0x4a991f(0x1c1))/0x3*(parseInt(_0x4a991f(0x1d0))/0x4)+-parseInt(_0x4a991f(0x1c3))/0x5+-parseInt(_0x4a991f(0x1c8))/0x6*(-parseInt(_0x4a991f(0x1c7))/0x7)+parseInt(_0x4a991f(0x1ce))/0x8*(parseInt(_0x4a991f(0x1c2))/0x9)+-parseInt(_0x4a991f(0x1cb))/0xa*(parseInt(_0x4a991f(0x1c4))/0xb)+parseInt(_0x4a991f(0x1c6))/0xc*(-parseInt(_0x4a991f(0x1c5))/0xd);if(_0x4454f2===_0x83f2f2)break;else _0x3c90aa['push'](_0x3c90aa['shift']());}catch(_0x135af6){_0x3c90aa['push'](_0x3c90aa['shift']());}}}(a56_0xb6d1,0xb4f3d));function a56_0x7851(_0xa6603a,_0x46891d){const _0xb6d11f=a56_0xb6d1();return a56_0x7851=function(_0x78511c,_0x24c3ad){_0x78511c=_0x78511c-0x1c1;let _0x3fa8be=_0xb6d11f[_0x78511c];return _0x3fa8be;},a56_0x7851(_0xa6603a,_0x46891d);}export function validateLimitOption(_0x606f9e){const _0x14647b=a56_0x7851;if(!Number['isInteger'](_0x606f9e))return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+'.\x20Must\x20be\x20an\x20integer.'};if(_0x606f9e<=0x0)return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+_0x14647b(0x1cf)};return{'isValid':!![],'value':_0x606f9e};}function a56_0xb6d1(){const _0x1d6782=['1628235SbAczL','18oPhFxv','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','13862550FbqgFk','Invalid\x20timeout\x20value:\x20','92014WsOxqF','8SSfipJ','.\x20Must\x20be\x20a\x20positive\x20integer.','1716PUQqvX','7kXPSXs','4401TfYDJh','11763963sDFVKj','223805BTRJtd','11wxqbcy','13hZynLa','1680228pdxsLl'];a56_0xb6d1=function(){return _0x1d6782;};return a56_0xb6d1();}export function validateTimeoutOption(_0x126a93,_0x25cf31=0x1e){const _0x529fab=a56_0x7851;if(_0x126a93===undefined)return{'isValid':!![],'value':_0x25cf31};const _0x135029=typeof _0x126a93==='number'?_0x126a93:parseFloat(_0x126a93);if(isNaN(_0x135029))return{'isValid':![],'error':_0x529fab(0x1cc)+_0x126a93+_0x529fab(0x1c9)};if(_0x135029<=0x0)return{'isValid':![],'error':_0x529fab(0x1cc)+_0x135029+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x135029};}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x280b(){var _0x4f8ccc=['7612LbMVeF','kill','137796eokLks','2429523DePLeW','ppid','778425gGbwbj','301554PPuxRh','329TlylNb','40557sbIzWW','8320USEmDe','6CiVXnR','1095BoLJDM','8IQvjSa'];a57_0x280b=function(){return _0x4f8ccc;};return a57_0x280b();}function a57_0x5d8d(_0x5d6e5,_0x2a624f){var _0x280b9a=a57_0x280b();return a57_0x5d8d=function(_0x5d8da7,_0x5cd4ab){_0x5d8da7=_0x5d8da7-0xe0;var _0x55406c=_0x280b9a[_0x5d8da7];return _0x55406c;},a57_0x5d8d(_0x5d6e5,_0x2a624f);}(function(_0x3da64c,_0x49d36c){var _0x238ff1=a57_0x5d8d,_0x44d68a=_0x3da64c();while(!![]){try{var _0x332836=-parseInt(_0x238ff1(0xe2))/0x1*(parseInt(_0x238ff1(0xeb))/0x2)+-parseInt(_0x238ff1(0xea))/0x3+-parseInt(_0x238ff1(0xe5))/0x4*(-parseInt(_0x238ff1(0xe3))/0x5)+parseInt(_0x238ff1(0xe7))/0x6*(parseInt(_0x238ff1(0xec))/0x7)+-parseInt(_0x238ff1(0xe4))/0x8*(-parseInt(_0x238ff1(0xe8))/0x9)+-parseInt(_0x238ff1(0xe1))/0xa+-parseInt(_0x238ff1(0xe0))/0xb;if(_0x332836===_0x49d36c)break;else _0x44d68a['push'](_0x44d68a['shift']());}catch(_0x318f1c){_0x44d68a['push'](_0x44d68a['shift']());}}}(a57_0x280b,0x91dca));export function getPPID(){var _0x2fc782=a57_0x5d8d;return process[_0x2fc782(0xe9)];}export function isProcessRunning(_0x5eaa22){var _0x11ecfd=a57_0x5d8d;try{return process[_0x11ecfd(0xe6)](_0x5eaa22,0x0),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a58_0x4565(_0x5af9ed,_0x3211f4){const _0x1fd33b=a58_0x1fd3();return a58_0x4565=function(_0x456564,_0x1848fa){_0x456564=_0x456564-0xf6;let _0x2d4dd7=_0x1fd33b[_0x456564];return _0x2d4dd7;},a58_0x4565(_0x5af9ed,_0x3211f4);}(function(_0x4fe5d2,_0x294dfc){const _0x49f719=a58_0x4565,_0x430165=_0x4fe5d2();while(!![]){try{const _0x1da186=-parseInt(_0x49f719(0xf8))/0x1+-parseInt(_0x49f719(0xfb))/0x2*(parseInt(_0x49f719(0xf7))/0x3)+-parseInt(_0x49f719(0x100))/0x4+-parseInt(_0x49f719(0xfa))/0x5*(parseInt(_0x49f719(0xfe))/0x6)+parseInt(_0x49f719(0xfd))/0x7+parseInt(_0x49f719(0xff))/0x8+-parseInt(_0x49f719(0x103))/0x9*(-parseInt(_0x49f719(0x102))/0xa);if(_0x1da186===_0x294dfc)break;else _0x430165['push'](_0x430165['shift']());}catch(_0x3612f2){_0x430165['push'](_0x430165['shift']());}}}(a58_0x1fd3,0x9de74));function a58_0x1fd3(){const _0x1011f7=['366LwlXGW','indexOf','2915318vnFcXj','23862MgztAc','2575264Hcdrrl','3638824UEkjIv','substring','30GUypHX','9761571QZCggq','Invalid\x20segment\x20reference\x20format:\x20','9264fdTark','625856fuEvOh','.\x20Parent\x20name\x20cannot\x20be\x20empty','1565ESQXBc'];a58_0x1fd3=function(){return _0x1011f7;};return a58_0x1fd3();}export function parseSegmentRef(_0x2ffcfd){const _0x538201=a58_0x4565,_0xcde3d1=_0x2ffcfd[_0x538201(0xfc)]('/');if(_0xcde3d1===-0x1)return{'parentId':_0x2ffcfd};if(_0xcde3d1===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2ffcfd+_0x538201(0xf9));const _0x424451=_0x2ffcfd[_0x538201(0x101)](0x0,_0xcde3d1),_0x595477=_0x2ffcfd[_0x538201(0x101)](_0xcde3d1+0x1);if(_0x595477==='')throw new Error(_0x538201(0xf6)+_0x2ffcfd+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x424451,'childId':_0x595477};}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a431b,_0x59b3da){const _0x1d926e=a59_0x1b56,_0x4fd608=_0x2a431b();while(!![]){try{const _0x24334d=-parseInt(_0x1d926e(0x1a5))/0x1+-parseInt(_0x1d926e(0x194))/0x2+-parseInt(_0x1d926e(0x192))/0x3*(-parseInt(_0x1d926e(0x19f))/0x4)+parseInt(_0x1d926e(0x199))/0x5+-parseInt(_0x1d926e(0x1a0))/0x6*(parseInt(_0x1d926e(0x1a6))/0x7)+parseInt(_0x1d926e(0x197))/0x8*(-parseInt(_0x1d926e(0x1a2))/0x9)+parseInt(_0x1d926e(0x193))/0xa*(parseInt(_0x1d926e(0x18c))/0xb);if(_0x24334d===_0x59b3da)break;else _0x4fd608['push'](_0x4fd608['shift']());}catch(_0x3d0346){_0x4fd608['push'](_0x4fd608['shift']());}}}(a59_0x5a4b,0xa90a2));function a59_0x1b56(_0x2864a8,_0xdb57cc){const _0x5a4b00=a59_0x5a4b();return a59_0x1b56=function(_0x1b5644,_0x5e3cab){_0x1b5644=_0x1b5644-0x18b;let _0x597a18=_0x5a4b00[_0x1b5644];return _0x597a18;},a59_0x1b56(_0x2864a8,_0xdb57cc);}import a59_0x5116f1 from'ora';export function createCommandSpinner(_0x45f07b,_0x3affbf={}){const _0x40c494=a59_0x1b56,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3affbf;return a59_0x5116f1({'text':_0x45f07b,'color':_0x40c494(0x18e),'isEnabled':forceEnabled||process[_0x40c494(0x190)][_0x40c494(0x18f)]&&!verbose});}export async function withSpinner(_0x4c23c1,_0x11eb29,_0x392b2e={}){const _0x179de5=a59_0x1b56,_0x4a0176=_0x392b2e[_0x179de5(0x19e)]??(()=>Date['now']()),_0x2420ad=createCommandSpinner(_0x4c23c1,_0x392b2e);_0x2420ad[_0x179de5(0x195)]();const _0x5922eb=_0x4a0176();try{const _0x1e4344=await _0x11eb29(),_0x55f468=_0x4a0176()-_0x5922eb;return _0x2420ad[_0x179de5(0x1a4)](),{'data':_0x1e4344,'elapsedMs':_0x55f468};}catch(_0x2ee475){_0x2420ad[_0x179de5(0x1a4)]();throw _0x2ee475;}}function a59_0x5a4b(){const _0x5352d0=['jobId','cyan','isTTY','stdout','\x20[Job\x20ID:\x20','3MLDMCa','190qBCSzh','1153856KXfuLm','start','intervalFactory','4461432AGaVgs','now','5138450poptuA','extra','text','phase','...','clock','419412uXwKDx','237696eVoxpY','toFixed','9Wglway','isSpinning','stop','674770NGUNTU','105rpFcHQ','replace','1136740KPGIjD'];a59_0x5a4b=function(){return _0x5352d0;};return a59_0x5a4b();}export async function withQuerySpinner(_0x3c8c3d,_0x88e47c,_0x50d8e9={}){const _0x4557d9=a59_0x1b56,_0x526dd7=_0x50d8e9[_0x4557d9(0x19e)]??(()=>Date[_0x4557d9(0x198)]()),_0x42accb=_0x50d8e9[_0x4557d9(0x196)]??setInterval,_0x831097=createCommandSpinner(_0x3c8c3d,_0x50d8e9);_0x831097[_0x4557d9(0x195)]();const _0x33af03=_0x526dd7(),_0x139cb6=_0x3c8c3d[_0x4557d9(0x18b)](_0x4557d9(0x19d),''),_0x5e5a85={},_0x2954cc=()=>{const _0x30c8d5=_0x4557d9;if(!_0x831097[_0x30c8d5(0x1a3)])return;const _0x283973=((_0x526dd7()-_0x33af03)/0x3e8)[_0x30c8d5(0x1a1)](0x1),_0x3f1297=_0x5e5a85[_0x30c8d5(0x19c)]??_0x139cb6,_0x1635ea=_0x5e5a85[_0x30c8d5(0x18d)]?_0x30c8d5(0x191)+_0x5e5a85[_0x30c8d5(0x18d)]+']':'',_0x5e8b62=_0x5e5a85['extra']?'\x20'+_0x5e5a85['extra']:'';_0x831097[_0x30c8d5(0x19b)]=_0x3f1297+'\x20('+_0x283973+'s)'+_0x5e8b62+_0x1635ea;},_0x37cab1=_0x42accb(()=>{_0x2954cc();},0x3e8),_0x1473c7={'setPhase':_0xcce038=>{_0x5e5a85['phase']=_0xcce038,_0x2954cc();},'setJobId':_0x328d0e=>{const _0x1682af=_0x4557d9;_0x5e5a85[_0x1682af(0x18d)]=_0x328d0e,_0x2954cc();},'setExtra':_0xe7c03b=>{const _0x2d661e=_0x4557d9;_0x5e5a85[_0x2d661e(0x19a)]=_0xe7c03b,_0x2954cc();}};_0x2954cc();try{const _0x53aa8b=await _0x88e47c(_0x1473c7),_0x3926b9=_0x526dd7()-_0x33af03;return{'data':_0x53aa8b,'elapsedMs':_0x3926b9};}finally{clearInterval(_0x37cab1),_0x831097[_0x4557d9(0x1a4)]();}}export function formatElapsed(_0xbcaaf2){const _0xe4b4eb=a59_0x1b56;return(_0xbcaaf2/0x3e8)[_0xe4b4eb(0x1a1)](0x2)+'s';}
|
package/dist/utils/sql-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x469505,_0x10a05f){const _0x126a2c=a60_0xecd0,_0x5023f5=_0x469505();while(!![]){try{const _0x9cf169=parseInt(_0x126a2c(0x126))/0x1*(-parseInt(_0x126a2c(0x12e))/0x2)+-parseInt(_0x126a2c(0x131))/0x3+-parseInt(_0x126a2c(0x11d))/0x4+parseInt(_0x126a2c(0x122))/0x5+parseInt(_0x126a2c(0x127))/0x6+parseInt(_0x126a2c(0x123))/0x7+parseInt(_0x126a2c(0x130))/0x8*(parseInt(_0x126a2c(0x129))/0x9);if(_0x9cf169===_0x10a05f)break;else _0x5023f5['push'](_0x5023f5['shift']());}catch(_0x106914){_0x5023f5['push'](_0x5023f5['shift']());}}}(a60_0x19c6,0x5f15e));import{readFileSync}from'fs';export function stripSqlComments(_0x34a677){const _0x4930c3=a60_0xecd0;let _0x907b27=_0x34a677[_0x4930c3(0x12b)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x907b27=_0x907b27[_0x4930c3(0x12b)](/--.*$/gm,''),_0x907b27['trim']();}function a60_0xecd0(_0x5cebe5,_0x59fd10){const _0x19c61b=a60_0x19c6();return a60_0xecd0=function(_0xecd082,_0x3210d9){_0xecd082=_0xecd082-0x11d;let _0x5f3d57=_0x19c61b[_0xecd082];return _0x5f3d57;},a60_0xecd0(_0x5cebe5,_0x59fd10);}function a60_0x19c6(){const _0x43805a=['map','filter','EACCES','Error\x20reading\x20file\x20\x27','804535TGOKbU','2658271ElnQqe','ENOENT','length','1OFmpFj','2883774NfgyVx','trim','3290499EJdMHO','code','replace','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','52124irWRpp','message','8VUFrfA','820986YrBQxJ','push','File\x20\x27','2790824PwPEiE'];a60_0x19c6=function(){return _0x43805a;};return a60_0x19c6();}function isEscaped(_0x103404,_0x1e2e09){let _0xb5c536=0x0;for(let _0x435fe9=_0x1e2e09-0x1;_0x435fe9>=0x0&&_0x103404[_0x435fe9]==='\x5c';_0x435fe9--){_0xb5c536++;}return _0xb5c536%0x2===0x1;}export function splitSqlStatements(_0x30aaea){const _0x3b4394=a60_0xecd0,_0x1f094f=stripSqlComments(_0x30aaea);if(!_0x1f094f)throw new Error(_0x3b4394(0x12c));const _0x364596=[];let _0x31e3e2='',_0x4c83b7=![],_0x1835ad=![],_0x3cdb49=![];for(let _0x5e2e5b=0x0;_0x5e2e5b<_0x30aaea[_0x3b4394(0x125)];_0x5e2e5b++){const _0x1d5681=_0x30aaea[_0x5e2e5b];if(_0x1d5681==='\x27'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x1835ad&&!_0x3cdb49)_0x4c83b7=!_0x4c83b7;else{if(_0x1d5681==='\x22'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x3cdb49)_0x1835ad=!_0x1835ad;else _0x1d5681==='`'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x1835ad&&(_0x3cdb49=!_0x3cdb49);}if(_0x1d5681===';'&&!_0x4c83b7&&!_0x1835ad&&!_0x3cdb49){const _0x3bc139=_0x31e3e2[_0x3b4394(0x128)]();_0x3bc139&&_0x364596[_0x3b4394(0x132)](_0x3bc139),_0x31e3e2='';}else _0x31e3e2+=_0x1d5681;}const _0xc33c28=_0x31e3e2[_0x3b4394(0x128)]();_0xc33c28&&_0x364596[_0x3b4394(0x132)](_0xc33c28);const _0xbaf54f=_0x364596[_0x3b4394(0x11e)](_0x3e8f75=>_0x3e8f75[_0x3b4394(0x128)]())[_0x3b4394(0x11f)](_0x3ca78c=>{const _0x5e68bc=_0x3b4394,_0x5e6ac3=stripSqlComments(_0x3ca78c);return _0x5e6ac3[_0x5e68bc(0x125)]>0x0;});if(_0xbaf54f[_0x3b4394(0x125)]===0x0)throw new Error(_0x3b4394(0x12c));return _0xbaf54f;}export function readFileContent(_0x236120){const _0x29a986=a60_0xecd0;try{return readFileSync(_0x236120,'utf-8');}catch(_0x4b1f0e){const _0x463cb3=_0x4b1f0e[_0x29a986(0x12a)];if(_0x463cb3===_0x29a986(0x124))throw new Error('File\x20\x27'+_0x236120+'\x27\x20not\x20found');else{if(_0x463cb3===_0x29a986(0x120))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x236120+'\x27');else throw new Error(_0x29a986(0x121)+_0x236120+'\x27:\x20'+_0x4b1f0e[_0x29a986(0x12f)]);}}}export function readSqlStatementsFromFile(_0x395cc7){const _0x3ae8b7=a60_0xecd0,_0x3b12de=readFileContent(_0x395cc7);try{return splitSqlStatements(_0x3b12de);}catch(_0x3b9a75){throw new Error(_0x3ae8b7(0x133)+_0x395cc7+'\x27\x20'+_0x3b9a75['message'][_0x3ae8b7(0x12d)]());}}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a61_0x26aa(_0x2641fb,_0x461441){const _0x50b49d=a61_0x50b4();return a61_0x26aa=function(_0x26aa2a,_0x6e8d3e){_0x26aa2a=_0x26aa2a-0x16f;let _0x67d39=_0x50b49d[_0x26aa2a];return _0x67d39;},a61_0x26aa(_0x2641fb,_0x461441);}(function(_0x380389,_0x4efd93){const _0x17499a=a61_0x26aa,_0x4f07ea=_0x380389();while(!![]){try{const _0x576fb3=-parseInt(_0x17499a(0x16f))/0x1*(parseInt(_0x17499a(0x171))/0x2)+-parseInt(_0x17499a(0x173))/0x3*(-parseInt(_0x17499a(0x175))/0x4)+parseInt(_0x17499a(0x17f))/0x5*(-parseInt(_0x17499a(0x17c))/0x6)+-parseInt(_0x17499a(0x17d))/0x7*(parseInt(_0x17499a(0x184))/0x8)+parseInt(_0x17499a(0x188))/0x9*(parseInt(_0x17499a(0x182))/0xa)+-parseInt(_0x17499a(0x183))/0xb*(-parseInt(_0x17499a(0x187))/0xc)+-parseInt(_0x17499a(0x181))/0xd*(-parseInt(_0x17499a(0x180))/0xe);if(_0x576fb3===_0x4efd93)break;else _0x4f07ea['push'](_0x4f07ea['shift']());}catch(_0x42c6bc){_0x4f07ea['push'](_0x4f07ea['shift']());}}}(a61_0x50b4,0x9000c));export async function*parseSSEStream(_0x4de63b){const _0x4bf671=a61_0x26aa;if(!_0x4de63b['body'])throw new Error(_0x4bf671(0x176));const _0x263a10=_0x4de63b[_0x4bf671(0x185)][_0x4bf671(0x17e)](),_0x288a0a=new TextDecoder();let _0x1486fc='',_0x34ef03={};try{while(!![]){const {done:_0x895ee2,value:_0x92a730}=await _0x263a10[_0x4bf671(0x179)]();if(_0x895ee2){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]));break;}_0x1486fc+=_0x288a0a[_0x4bf671(0x189)](_0x92a730,{'stream':!![]});const _0x2092d1=_0x1486fc[_0x4bf671(0x177)]('\x0a');_0x1486fc=_0x2092d1['pop']()||'';for(const _0x3ca3b9 of _0x2092d1){if(_0x3ca3b9[_0x4bf671(0x172)]()===''){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]),_0x34ef03={});continue;}if(_0x3ca3b9['startsWith'](':'))continue;const _0x10d230=_0x3ca3b9[_0x4bf671(0x17a)](':');if(_0x10d230===-0x1)continue;const _0x10484d=_0x3ca3b9[_0x4bf671(0x170)](0x0,_0x10d230);let _0x4b9705=_0x3ca3b9[_0x4bf671(0x170)](_0x10d230+0x1);_0x4b9705['startsWith']('\x20')&&(_0x4b9705=_0x4b9705['slice'](0x1));switch(_0x10484d){case'event':_0x34ef03['event']=_0x4b9705;break;case _0x4bf671(0x186):_0x34ef03[_0x4bf671(0x186)]=_0x34ef03[_0x4bf671(0x186)]?_0x34ef03['data']+'\x0a'+_0x4b9705:_0x4b9705;break;case'id':_0x34ef03['id']=_0x4b9705;break;}}}}finally{_0x263a10[_0x4bf671(0x174)]();}}function parseSSEData(_0x2637d3){const _0x469775=a61_0x26aa;try{return JSON[_0x469775(0x178)](_0x2637d3);}catch(_0x519bfd){throw new Error(_0x469775(0x17b)+_0x2637d3,{'cause':_0x519bfd});}}function a61_0x50b4(){const _0x4d518e=['74583YXVBUm','decode','2jOrCKi','slice','1012492rgtsle','trim','1176krhwag','releaseLock','288CgaVtB','Response\x20body\x20is\x20null','split','parse','read','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','12QZDRLd','1673kYogeU','getReader','930130Nxuulj','1940918KvYUPf','156LaAndf','520lUlQXE','77WmXOgx','33080RUIeEH','body','data','1439748INOKSM'];a61_0x50b4=function(){return _0x4d518e;};return a61_0x50b4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x6ba05a,_0x11b35d){const _0x4aa59b=a62_0x3d98,_0x178b2f=_0x6ba05a();while(!![]){try{const _0x5b8d7b=-parseInt(_0x4aa59b(0x16f))/0x1*(-parseInt(_0x4aa59b(0x169))/0x2)+parseInt(_0x4aa59b(0x160))/0x3*(-parseInt(_0x4aa59b(0x157))/0x4)+-parseInt(_0x4aa59b(0x15b))/0x5+parseInt(_0x4aa59b(0x167))/0x6+parseInt(_0x4aa59b(0x15c))/0x7+parseInt(_0x4aa59b(0x16c))/0x8*(parseInt(_0x4aa59b(0x155))/0x9)+parseInt(_0x4aa59b(0x16d))/0xa*(-parseInt(_0x4aa59b(0x158))/0xb);if(_0x5b8d7b===_0x11b35d)break;else _0x178b2f['push'](_0x178b2f['shift']());}catch(_0x34e593){_0x178b2f['push'](_0x178b2f['shift']());}}}(a62_0x4662,0x5e02d));import a62_0xd9f56e from'string-width';export function stringWidth(_0x19936a){return a62_0xd9f56e(_0x19936a);}export function padEnd(_0x1088a7,_0x1a5fcb){const _0x240037=a62_0x3d98,_0xcfc639=stringWidth(_0x1088a7);if(_0xcfc639>=_0x1a5fcb)return _0x1088a7;return _0x1088a7+'\x20'[_0x240037(0x15a)](_0x1a5fcb-_0xcfc639);}export function padStart(_0xb22ee3,_0x3bde57){const _0x2f063c=a62_0x3d98,_0x28ee16=stringWidth(_0xb22ee3);if(_0x28ee16>=_0x3bde57)return _0xb22ee3;return'\x20'[_0x2f063c(0x15a)](_0x3bde57-_0x28ee16)+_0xb22ee3;}function a62_0x4662(){const _0x323d6c=['unknown','2XLOkKJ','random','USER','152OnCgOF','2770PdKugv','slice','721351GIIJpq','247950OdnAcY','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1828724zCqqxV','17523roiJtv','toLowerCase','repeat','2148205WbNIGn','2664501ySvxYk','trim','toString','test','3pYwCyR','\x5c$&','length','Cannot\x20escape\x20empty\x20string\x20literal','replace','env','floor','526248ifyQXW'];a62_0x4662=function(){return _0x323d6c;};return a62_0x4662();}export function centerAlign(_0x298793,_0x58b58b){const _0x3416c5=a62_0x3d98,_0x4558ab=stringWidth(_0x298793);if(_0x4558ab>_0x58b58b){if(_0x58b58b<=0x1)return'…'['substring'](0x0,_0x58b58b);let _0x2714a4=_0x298793;while(stringWidth(_0x2714a4+'…')>_0x58b58b){_0x2714a4=_0x2714a4[_0x3416c5(0x16e)](0x0,-0x1);}return _0x2714a4+'…';}if(_0x4558ab===_0x58b58b)return _0x298793;const _0x33ad04=_0x58b58b-_0x4558ab,_0x59d04e=Math[_0x3416c5(0x166)](_0x33ad04/0x2),_0x2255ae=_0x33ad04-_0x59d04e;return'\x20'[_0x3416c5(0x15a)](_0x59d04e)+_0x298793+'\x20'['repeat'](_0x2255ae);}export function escapeStringLiteral(_0x1b50c3){const _0x19770f=a62_0x3d98;if(!_0x1b50c3||_0x1b50c3[_0x19770f(0x15d)]()['length']===0x0)throw new Error(_0x19770f(0x163));const _0x35b7c1=_0x1b50c3[_0x19770f(0x164)](/'/g,'\x27\x27');return'\x27'+_0x35b7c1+'\x27';}export function globToLike(_0x13b8ea){const _0x55e321=a62_0x3d98;let _0xf7ce66=_0x13b8ea[_0x55e321(0x164)](/\\/g,'\x5c\x5c')[_0x55e321(0x164)](/%/g,'\x5c%')[_0x55e321(0x164)](/_/g,'\x5c_');return _0xf7ce66=_0xf7ce66[_0x55e321(0x164)](/\*/g,'%')[_0x55e321(0x164)](/\?/g,'_'),_0xf7ce66;}export function buildLikePattern(_0x2c19cd){const _0x18d776=a62_0x3d98;if(!_0x2c19cd||_0x2c19cd['trim']()[_0x18d776(0x162)]===0x0)throw new Error(_0x18d776(0x156));const _0x24e59b=globToLike(_0x2c19cd),_0x3bba4c=_0x24e59b['replace'](/'/g,'\x27\x27');return'\x27'+_0x3bba4c+'\x27';}export function matchGlobPattern(_0x118a2b,_0x203121){const _0x178c1c=a62_0x3d98,_0x3de771=_0x203121[_0x178c1c(0x164)](/[.+^${}()|[\]\\]/g,_0x178c1c(0x161))[_0x178c1c(0x164)](/\*/g,'.*')[_0x178c1c(0x164)](/\?/g,'.'),_0xc4c7a8=new RegExp('^'+_0x3de771+'$');return _0xc4c7a8[_0x178c1c(0x15f)](_0x118a2b);}function a62_0x3d98(_0x50cf9d,_0x5a0d88){const _0x4662f3=a62_0x4662();return a62_0x3d98=function(_0x3d9827,_0x1e76af){_0x3d9827=_0x3d9827-0x155;let _0x1f3693=_0x4662f3[_0x3d9827];return _0x1f3693;},a62_0x3d98(_0x50cf9d,_0x5a0d88);}export function getSanitizedUsername(){const _0x151740=a62_0x3d98,_0x489ef6=process['env'][_0x151740(0x16b)]||process[_0x151740(0x165)]['USERNAME']||_0x151740(0x168);return _0x489ef6['replace'](/[^a-zA-Z0-9]/g,'')[_0x151740(0x159)]();}export function generateRandomHex(){const _0x40d784=a62_0x3d98,_0x5541fb=Math['floor'](Math[_0x40d784(0x16a)]()*0xfffff);return _0x5541fb[_0x40d784(0x15e)](0x10)['padStart'](0x5,'0');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a63_0x17be(){const _0x21f43a=['343059weDBHO','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','database','length','includes','775456RERCAM','1036260qXATVn','669310JVWGoE','push','trim','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4YDhJhv','catalog','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','36370BUfEJN','173969uFczsY','198CtRINJ','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','join','3717252PDelKe','252xSeoHO'];a63_0x17be=function(){return _0x21f43a;};return a63_0x17be();}(function(_0x392851,_0x2a92b3){const _0x1bda03=a63_0x3c19,_0x5c4f83=_0x392851();while(!![]){try{const _0xb0d9ff=parseInt(_0x1bda03(0x77))/0x1+parseInt(_0x1bda03(0x84))/0x2+parseInt(_0x1bda03(0x7d))/0x3*(parseInt(_0x1bda03(0x8a))/0x4)+parseInt(_0x1bda03(0x92))/0x5*(parseInt(_0x1bda03(0x7c))/0x6)+parseInt(_0x1bda03(0x7b))/0x7+parseInt(_0x1bda03(0x83))/0x8+-parseInt(_0x1bda03(0x78))/0x9*(parseInt(_0x1bda03(0x85))/0xa);if(_0xb0d9ff===_0x2a92b3)break;else _0x5c4f83['push'](_0x5c4f83['shift']());}catch(_0x2a9cea){_0x5c4f83['push'](_0x5c4f83['shift']());}}}(a63_0x17be,0x414b6));function a63_0x3c19(_0x9c3e77,_0x37761d){const _0x17bec2=a63_0x17be();return a63_0x3c19=function(_0x3c19ca,_0x1ba050){_0x3c19ca=_0x3c19ca-0x77;let _0x1d0288=_0x17bec2[_0x3c19ca];return _0x1d0288;},a63_0x3c19(_0x9c3e77,_0x37761d);}function hasWildcard(_0x4e7c02){const _0x13d644=a63_0x3c19;return _0x4e7c02[_0x13d644(0x82)]('*')||_0x4e7c02[_0x13d644(0x82)]('?');}export function parseTableReference(_0x598751){const _0x88d2a6=a63_0x3c19;if(!_0x598751||_0x598751['trim']()[_0x88d2a6(0x81)]===0x0)throw new Error(_0x88d2a6(0x91));const _0x220aa1=_0x598751[_0x88d2a6(0x87)](),_0x25b4bb={'original':_0x220aa1},_0x400ea7=_0x220aa1[_0x88d2a6(0x7f)]('.');if(_0x400ea7[_0x88d2a6(0x81)]===0x1){const _0x524b1a=_0x400ea7[0x0];if(!_0x524b1a)throw new Error(_0x88d2a6(0x7e));_0x25b4bb[_0x88d2a6(0x8f)]=_0x524b1a;}else{if(_0x400ea7['length']===0x2){const [_0x59dbe4,_0x285f83]=_0x400ea7;if(!_0x59dbe4)throw new Error(_0x88d2a6(0x90));if(!_0x285f83)throw new Error(_0x88d2a6(0x8d));_0x25b4bb[_0x88d2a6(0x80)]=_0x59dbe4,_0x25b4bb[_0x88d2a6(0x8f)]=_0x285f83;}else{if(_0x400ea7[_0x88d2a6(0x81)]===0x3){const [_0x1e378f,_0x1c2f04,_0x4569e8]=_0x400ea7;if(!_0x1e378f||!_0x1c2f04||!_0x4569e8)throw new Error(_0x88d2a6(0x88));_0x25b4bb['catalog']=_0x1e378f,_0x25b4bb[_0x88d2a6(0x80)]=_0x1c2f04,_0x25b4bb['table']=_0x4569e8;}else throw new Error(_0x88d2a6(0x89));}}return _0x25b4bb;}export function formatTableReference(_0x1f50b9){const _0x987b55=a63_0x3c19,_0x4012a7=[];return _0x1f50b9[_0x987b55(0x8b)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9['catalog']),_0x1f50b9[_0x987b55(0x80)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x80)]),_0x1f50b9[_0x987b55(0x8f)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x8f)]),_0x4012a7[_0x987b55(0x7a)]('.');}export function validateTableListReference(_0x200de6){return undefined;}export function validateTableDescribeReference(_0x6c994d){const _0xf04cb2=a63_0x3c19;if(!_0x6c994d['table'])return _0xf04cb2(0x8c);if(_0x6c994d['database']&&hasWildcard(_0x6c994d[_0xf04cb2(0x80)]))return _0xf04cb2(0x79);if(hasWildcard(_0x6c994d['table']))return _0xf04cb2(0x8e);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0xea6b(){const _0x3e711c=['8328ZacFBc','102920HzVNwa','30gYfebc','.dig','732bVqdMC','.digdag','549765pDhjcD','7509kSPoPk','10hNEUjg','337843jDskaB','887928gqQPtV','startsWith','252FEhIYK','1126248XMWAQh'];a64_0xea6b=function(){return _0x3e711c;};return a64_0xea6b();}const a64_0x3151b0=a64_0x2e88;(function(_0x5e0e01,_0x535c87){const _0x2f7b7b=a64_0x2e88,_0x2d9172=_0x5e0e01();while(!![]){try{const _0x25f51e=-parseInt(_0x2f7b7b(0x16c))/0x1+parseInt(_0x2f7b7b(0x167))/0x2+parseInt(_0x2f7b7b(0x164))/0x3*(-parseInt(_0x2f7b7b(0x161))/0x4)+parseInt(_0x2f7b7b(0x165))/0x5*(parseInt(_0x2f7b7b(0x16a))/0x6)+-parseInt(_0x2f7b7b(0x169))/0x7*(parseInt(_0x2f7b7b(0x16b))/0x8)+-parseInt(_0x2f7b7b(0x163))/0x9+parseInt(_0x2f7b7b(0x16d))/0xa*(parseInt(_0x2f7b7b(0x166))/0xb);if(_0x25f51e===_0x535c87)break;else _0x2d9172['push'](_0x2d9172['shift']());}catch(_0x30a1a1){_0x2d9172['push'](_0x2d9172['shift']());}}}(a64_0xea6b,0x3d855));function a64_0x2e88(_0x14b34e,_0x43d225){const _0xea6ba5=a64_0xea6b();return a64_0x2e88=function(_0x2e88f9,_0x29b639){_0x2e88f9=_0x2e88f9-0x161;let _0x328759=_0xea6ba5[_0x2e88f9];return _0x328759;},a64_0x2e88(_0x14b34e,_0x43d225);}export const WORKFLOW_FILE_EXTENSION=a64_0x3151b0(0x16e);export function shouldIncludeInArchive(_0x3c968e){const _0x3c185f=a64_0x3151b0;if(_0x3c968e===_0x3c185f(0x162))return!![];if(_0x3c968e[_0x3c185f(0x168)]('.'))return![];return!![];}
|