@treasuredata/tdx 0.2.5 → 0.2.6

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.
Files changed (83) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/context-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/llm-command.js +1 -1
  20. package/dist/commands/llm-proxy.js +1 -1
  21. package/dist/commands/parent-segment-command.js +1 -1
  22. package/dist/commands/profiles-command.js +1 -1
  23. package/dist/commands/query-command.js +1 -1
  24. package/dist/commands/segment-command.js +1 -1
  25. package/dist/commands/segment-create-command.js +1 -1
  26. package/dist/commands/segment-fields-command.js +1 -1
  27. package/dist/commands/segment-pwd-command.js +1 -1
  28. package/dist/commands/segment-update-command.js +1 -1
  29. package/dist/commands/segment-use-command.js +1 -1
  30. package/dist/commands/segments.js +1 -1
  31. package/dist/commands/show.js +1 -1
  32. package/dist/commands/tables.js +1 -1
  33. package/dist/commands/use-command.js +1 -1
  34. package/dist/commands/workflow-command.js +1 -1
  35. package/dist/core/auth.js +1 -1
  36. package/dist/core/config.js +1 -1
  37. package/dist/core/global-context.js +1 -1
  38. package/dist/core/profile.js +1 -1
  39. package/dist/core/project-config.js +1 -1
  40. package/dist/core/session.js +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/proxy/anthropic-adapter.js +1 -1
  43. package/dist/proxy/server.js +1 -1
  44. package/dist/proxy/server.js.map +1 -1
  45. package/dist/proxy/session-cache.js +1 -1
  46. package/dist/sdk/api.js +1 -1
  47. package/dist/sdk/database.js +1 -1
  48. package/dist/sdk/errors.js +1 -1
  49. package/dist/sdk/index.js +1 -1
  50. package/dist/sdk/job.js +1 -1
  51. package/dist/sdk/llm.js +1 -1
  52. package/dist/sdk/query.js +1 -1
  53. package/dist/sdk/segment.js +1 -1
  54. package/dist/sdk/table.js +1 -1
  55. package/dist/sdk/workflow.js +1 -1
  56. package/dist/types/endpoints.js +1 -1
  57. package/dist/types/index.js +1 -1
  58. package/dist/utils/agent-ref-parser.js +1 -1
  59. package/dist/utils/chat-cache.js +1 -1
  60. package/dist/utils/colors.js +1 -1
  61. package/dist/utils/command-output.js +1 -1
  62. package/dist/utils/constants.js +1 -1
  63. package/dist/utils/file-permissions.js +1 -1
  64. package/dist/utils/format-detector.js +1 -1
  65. package/dist/utils/formatters.js +1 -1
  66. package/dist/utils/json-loader.js +1 -1
  67. package/dist/utils/model-aliases.js +1 -1
  68. package/dist/utils/option-validation.js +1 -1
  69. package/dist/utils/port.js +1 -1
  70. package/dist/utils/process.js +1 -1
  71. package/dist/utils/prompt.js +1 -1
  72. package/dist/utils/segment-path-parser.js +1 -1
  73. package/dist/utils/segment-ref-parser.js +1 -1
  74. package/dist/utils/spinner.js +1 -1
  75. package/dist/utils/sql-parser.js +1 -1
  76. package/dist/utils/sse-parser.js +1 -1
  77. package/dist/utils/string-utils.js +1 -1
  78. package/dist/utils/table-ref-parser.js +1 -1
  79. package/dist/utils/tdx-logger.js +1 -1
  80. package/dist/utils/tree-formatter.js +1 -1
  81. package/dist/utils/version-check.js +1 -1
  82. package/dist/utils/workflow-utils.js +1 -1
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- function a74_0x1f33(_0x4df71e,_0x11c9a7){const _0x108f5c=a74_0x108f();return a74_0x1f33=function(_0x1f33b7,_0x139c9e){_0x1f33b7=_0x1f33b7-0x8f;let _0x3c2080=_0x108f5c[_0x1f33b7];return _0x3c2080;},a74_0x1f33(_0x4df71e,_0x11c9a7);}(function(_0x583e82,_0x473375){const _0xc26097=a74_0x1f33,_0x36c11e=_0x583e82();while(!![]){try{const _0x46438e=-parseInt(_0xc26097(0x90))/0x1*(parseInt(_0xc26097(0x99))/0x2)+parseInt(_0xc26097(0x93))/0x3*(parseInt(_0xc26097(0x97))/0x4)+parseInt(_0xc26097(0x98))/0x5+-parseInt(_0xc26097(0x9c))/0x6*(-parseInt(_0xc26097(0x9b))/0x7)+-parseInt(_0xc26097(0x96))/0x8+-parseInt(_0xc26097(0x92))/0x9+parseInt(_0xc26097(0x95))/0xa*(parseInt(_0xc26097(0x91))/0xb);if(_0x46438e===_0x473375)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x4f0883){_0x36c11e['push'](_0x36c11e['shift']());}}}(a74_0x108f,0xcc215));export function parseSegmentRef(_0x94769b){const _0x5760ea=a74_0x1f33,_0x5ee53e=_0x94769b[_0x5760ea(0x94)]('/');if(_0x5ee53e===-0x1)return{'parentId':_0x94769b};if(_0x5ee53e===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x94769b+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x4b6162=_0x94769b[_0x5760ea(0x9a)](0x0,_0x5ee53e),_0x23d26f=_0x94769b[_0x5760ea(0x9a)](_0x5ee53e+0x1);if(_0x23d26f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x94769b+_0x5760ea(0x8f));return{'parentId':_0x4b6162,'childId':_0x23d26f};}function a74_0x108f(){const _0x511fbe=['84KxyHOD','771384oMvAvU','.\x20Child\x20name\x20cannot\x20be\x20empty','8xNFczy','2853983gxOSMo','13999374yvkaLP','189vUnJyU','indexOf','30SsAFLP','11911184lOMzOy','61868BPUeIx','4334085smCyVH','70466MnNFDm','substring'];a74_0x108f=function(){return _0x511fbe;};return a74_0x108f();}
1
+ function a74_0x4db6(_0x172632,_0x4021b9){const _0x7e2595=a74_0x7e25();return a74_0x4db6=function(_0x4db612,_0x1f724f){_0x4db612=_0x4db612-0x194;let _0xd614f3=_0x7e2595[_0x4db612];return _0xd614f3;},a74_0x4db6(_0x172632,_0x4021b9);}(function(_0x1d9db6,_0x3193e8){const _0x20106a=a74_0x4db6,_0x42708a=_0x1d9db6();while(!![]){try{const _0x55900f=-parseInt(_0x20106a(0x199))/0x1+parseInt(_0x20106a(0x19a))/0x2*(parseInt(_0x20106a(0x196))/0x3)+-parseInt(_0x20106a(0x1a0))/0x4+parseInt(_0x20106a(0x19b))/0x5*(parseInt(_0x20106a(0x19f))/0x6)+parseInt(_0x20106a(0x194))/0x7+-parseInt(_0x20106a(0x197))/0x8+parseInt(_0x20106a(0x19c))/0x9*(parseInt(_0x20106a(0x1a1))/0xa);if(_0x55900f===_0x3193e8)break;else _0x42708a['push'](_0x42708a['shift']());}catch(_0x5b2229){_0x42708a['push'](_0x42708a['shift']());}}}(a74_0x7e25,0xdd84c));function a74_0x7e25(){const _0x53d505=['179638sCKJVl','3847145fKXvDg','18509571eVCgvj','indexOf','.\x20Parent\x20name\x20cannot\x20be\x20empty','6lJntSs','5188948ZrvtmJ','10MdYyIi','5700009ZjTzlz','Invalid\x20segment\x20reference\x20format:\x20','12vIfGZZ','8197488xRmaQA','substring','770348rYkeDW'];a74_0x7e25=function(){return _0x53d505;};return a74_0x7e25();}export function parseSegmentRef(_0xd4ef3f){const _0x22a872=a74_0x4db6,_0x344add=_0xd4ef3f[_0x22a872(0x19d)]('/');if(_0x344add===-0x1)return{'parentId':_0xd4ef3f};if(_0x344add===0x0)throw new Error(_0x22a872(0x195)+_0xd4ef3f+_0x22a872(0x19e));const _0x5b4ce1=_0xd4ef3f[_0x22a872(0x198)](0x0,_0x344add),_0x2259b4=_0xd4ef3f[_0x22a872(0x198)](_0x344add+0x1);if(_0x2259b4==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0xd4ef3f+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x5b4ce1,'childId':_0x2259b4};}
@@ -1 +1 @@
1
- (function(_0x555d46,_0x476c17){const _0x32a5e0=a75_0x3a7d,_0xe0392=_0x555d46();while(!![]){try{const _0x3ae174=parseInt(_0x32a5e0(0x16b))/0x1+parseInt(_0x32a5e0(0x16f))/0x2+-parseInt(_0x32a5e0(0x17a))/0x3+parseInt(_0x32a5e0(0x174))/0x4+parseInt(_0x32a5e0(0x176))/0x5+-parseInt(_0x32a5e0(0x173))/0x6*(-parseInt(_0x32a5e0(0x169))/0x7)+-parseInt(_0x32a5e0(0x16c))/0x8;if(_0x3ae174===_0x476c17)break;else _0xe0392['push'](_0xe0392['shift']());}catch(_0x548a37){_0xe0392['push'](_0xe0392['shift']());}}}(a75_0x1c76,0x4d0f1));function a75_0x3a7d(_0x72af04,_0x261951){const _0x1c7698=a75_0x1c76();return a75_0x3a7d=function(_0x3a7dc1,_0x293e94){_0x3a7dc1=_0x3a7dc1-0x166;let _0x2cd73d=_0x1c7698[_0x3a7dc1];return _0x2cd73d;},a75_0x3a7d(_0x72af04,_0x261951);}import a75_0x52ea9c from'ora';function a75_0x1c76(){const _0x275a7f=['609098hqdFIQ','jobId','toFixed','text','30oIUDga','1715800TgfYwc','start','259840NbUcWN','phase','isTTY','floor','1163547oosCoW','stop','replace','cyan','isSpinning','stdout','712033ZgrYST','clock','335842xWYOYF','7411376VzDiJT','intervalFactory','now'];a75_0x1c76=function(){return _0x275a7f;};return a75_0x1c76();}export function createCommandSpinner(_0x1f4184,_0x18ce9d={}){const _0x501e94=a75_0x3a7d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x18ce9d;return a75_0x52ea9c({'text':_0x1f4184,'color':_0x501e94(0x166),'isEnabled':forceEnabled||process[_0x501e94(0x168)][_0x501e94(0x178)]&&!verbose});}export async function withSpinner(_0x55bb5d,_0x18a496,_0xfaf4d4={}){const _0x487798=a75_0x3a7d,_0xf3cdd7=_0xfaf4d4['clock']??(()=>Date[_0x487798(0x16e)]()),_0x20ab9b=createCommandSpinner(_0x55bb5d,_0xfaf4d4);_0x20ab9b[_0x487798(0x175)]();const _0x4b00a2=_0xf3cdd7();try{const _0x4f143b=await _0x18a496(),_0x1b04b0=_0xf3cdd7()-_0x4b00a2;return _0x20ab9b[_0x487798(0x17b)](),{'data':_0x4f143b,'elapsedMs':_0x1b04b0};}catch(_0x2255a8){_0x20ab9b[_0x487798(0x17b)]();throw _0x2255a8;}}export async function withQuerySpinner(_0x8369d4,_0x53a6b8,_0x26ee86={}){const _0x115e4e=a75_0x3a7d,_0x2da331=_0x26ee86[_0x115e4e(0x16a)]??(()=>Date[_0x115e4e(0x16e)]()),_0x925499=_0x26ee86[_0x115e4e(0x16d)]??setInterval,_0xd4adbd=createCommandSpinner(_0x8369d4,_0x26ee86);_0xd4adbd['start']();const _0xc376d5=_0x2da331(),_0x1f1e67=_0x8369d4[_0x115e4e(0x17c)]('...',''),_0xc7724f={},_0x135788=()=>{const _0x41608f=_0x115e4e;if(!_0xd4adbd[_0x41608f(0x167)])return;const _0x532705=_0x2da331()-_0xc376d5,_0x3149c2=formatElapsed(_0x532705),_0x108daa=_0xc7724f[_0x41608f(0x177)]??_0x1f1e67,_0x269f4c=_0xc7724f['jobId']?'\x20[Job\x20ID:\x20'+_0xc7724f[_0x41608f(0x170)]+']':'',_0x328016=_0xc7724f['extra']?'\x20'+_0xc7724f['extra']:'';_0xd4adbd[_0x41608f(0x172)]=_0x108daa+'\x20'+_0x3149c2+_0x328016+_0x269f4c;},_0x48b7da=_0x925499(()=>{_0x135788();},0x3e8),_0x32014f={'setPhase':_0x47b0d9=>{const _0x29deb2=_0x115e4e;_0xc7724f[_0x29deb2(0x177)]=_0x47b0d9,_0x135788();},'setJobId':_0x5c5f02=>{const _0x1c40af=_0x115e4e;_0xc7724f[_0x1c40af(0x170)]=_0x5c5f02,_0x135788();},'setExtra':_0x2e8c9f=>{_0xc7724f['extra']=_0x2e8c9f,_0x135788();}};_0x135788();try{const _0x8856ca=await _0x53a6b8(_0x32014f),_0x185e77=_0x2da331()-_0xc376d5;return{'data':_0x8856ca,'elapsedMs':_0x185e77};}finally{clearInterval(_0x48b7da),_0xd4adbd['stop']();}}export function formatElapsed(_0x18517d){const _0x331707=a75_0x3a7d,_0xcf5ffe=Math[_0x331707(0x179)](_0x18517d/0x3e8);if(_0xcf5ffe<0x3c)return(_0x18517d/0x3e8)[_0x331707(0x171)](0x1)+'s';const _0x583bdb=Math[_0x331707(0x179)](_0xcf5ffe/0x3c),_0x18bb47=_0xcf5ffe%0x3c;if(_0x583bdb<0x3c)return _0x583bdb+'m\x20'+_0x18bb47+'s';const _0x4c6600=Math[_0x331707(0x179)](_0x583bdb/0x3c),_0x5dae60=_0x583bdb%0x3c;return _0x4c6600+'h\x20'+_0x5dae60+'m';}
1
+ (function(_0x3c69a1,_0x105cd3){const _0x16900c=a75_0x18d5,_0x45e719=_0x3c69a1();while(!![]){try{const _0x561ced=parseInt(_0x16900c(0x93))/0x1*(-parseInt(_0x16900c(0x96))/0x2)+-parseInt(_0x16900c(0x94))/0x3+parseInt(_0x16900c(0x88))/0x4+parseInt(_0x16900c(0x86))/0x5+parseInt(_0x16900c(0x8b))/0x6+parseInt(_0x16900c(0x8d))/0x7*(parseInt(_0x16900c(0x87))/0x8)+parseInt(_0x16900c(0x91))/0x9;if(_0x561ced===_0x105cd3)break;else _0x45e719['push'](_0x45e719['shift']());}catch(_0x2c13d8){_0x45e719['push'](_0x45e719['shift']());}}}(a75_0x1131,0xcb235));function a75_0x1131(){const _0x173bc0=['replace','stdout','start','phase','3169840DdQQsz','1665128nmbiNn','128752oQlqKX','\x20[Job\x20ID:\x20','stop','6500958VcFtOc','extra','35PPGpNL','clock','jobId','now','3950190OFvKYh','floor','1tfqRjD','3696255tSiIub','cyan','2330252dMLcvc','isSpinning','intervalFactory','isTTY'];a75_0x1131=function(){return _0x173bc0;};return a75_0x1131();}import a75_0x2e9b22 from'ora';export function createCommandSpinner(_0x53eb06,_0x139aaa={}){const _0x1e9789=a75_0x18d5,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x139aaa;return a75_0x2e9b22({'text':_0x53eb06,'color':_0x1e9789(0x95),'isEnabled':forceEnabled||process[_0x1e9789(0x83)][_0x1e9789(0x81)]&&!verbose});}export async function withSpinner(_0x55a7ab,_0x48e006,_0x44acd9={}){const _0x1e3354=a75_0x18d5,_0x1ad090=_0x44acd9[_0x1e3354(0x8e)]??(()=>Date[_0x1e3354(0x90)]()),_0x4ef800=createCommandSpinner(_0x55a7ab,_0x44acd9);_0x4ef800[_0x1e3354(0x84)]();const _0x360d3f=_0x1ad090();try{const _0x4ccb36=await _0x48e006(),_0x4c372b=_0x1ad090()-_0x360d3f;return _0x4ef800[_0x1e3354(0x8a)](),{'data':_0x4ccb36,'elapsedMs':_0x4c372b};}catch(_0x113e4e){_0x4ef800[_0x1e3354(0x8a)]();throw _0x113e4e;}}export async function withQuerySpinner(_0x2d6c0a,_0x4595bb,_0x1fb0b1={}){const _0x4e776a=a75_0x18d5,_0x13d1c6=_0x1fb0b1[_0x4e776a(0x8e)]??(()=>Date[_0x4e776a(0x90)]()),_0x9e2c10=_0x1fb0b1[_0x4e776a(0x80)]??setInterval,_0x56cede=createCommandSpinner(_0x2d6c0a,_0x1fb0b1);_0x56cede[_0x4e776a(0x84)]();const _0x3f0417=_0x13d1c6(),_0xb6c601=_0x2d6c0a[_0x4e776a(0x82)]('...',''),_0x2b761a={},_0x15aaca=()=>{const _0x6e504f=_0x4e776a;if(!_0x56cede[_0x6e504f(0x7f)])return;const _0x1825ec=_0x13d1c6()-_0x3f0417,_0x37e8e0=formatElapsed(_0x1825ec),_0x239b90=_0x2b761a[_0x6e504f(0x85)]??_0xb6c601,_0x3c433c=_0x2b761a[_0x6e504f(0x8f)]?_0x6e504f(0x89)+_0x2b761a['jobId']+']':'',_0x4c8f41=_0x2b761a['extra']?'\x20'+_0x2b761a['extra']:'';_0x56cede['text']=_0x239b90+'\x20'+_0x37e8e0+_0x4c8f41+_0x3c433c;},_0x2b8f2b=_0x9e2c10(()=>{_0x15aaca();},0x3e8),_0x11fd09={'setPhase':_0x198942=>{_0x2b761a['phase']=_0x198942,_0x15aaca();},'setJobId':_0x4195b5=>{const _0x408a34=_0x4e776a;_0x2b761a[_0x408a34(0x8f)]=_0x4195b5,_0x15aaca();},'setExtra':_0x49be26=>{const _0x50b267=_0x4e776a;_0x2b761a[_0x50b267(0x8c)]=_0x49be26,_0x15aaca();}};_0x15aaca();try{const _0x360e23=await _0x4595bb(_0x11fd09),_0x426e29=_0x13d1c6()-_0x3f0417;return{'data':_0x360e23,'elapsedMs':_0x426e29};}finally{clearInterval(_0x2b8f2b),_0x56cede[_0x4e776a(0x8a)]();}}function a75_0x18d5(_0x9dbc41,_0x255c5a){const _0x1131db=a75_0x1131();return a75_0x18d5=function(_0x18d591,_0x5847b1){_0x18d591=_0x18d591-0x7f;let _0x2f8cc2=_0x1131db[_0x18d591];return _0x2f8cc2;},a75_0x18d5(_0x9dbc41,_0x255c5a);}export function formatElapsed(_0x59d52a){const _0x37c53a=a75_0x18d5,_0x4a0aad=Math[_0x37c53a(0x92)](_0x59d52a/0x3e8);if(_0x4a0aad<0x3c)return(_0x59d52a/0x3e8)['toFixed'](0x1)+'s';const _0xef8766=Math[_0x37c53a(0x92)](_0x4a0aad/0x3c),_0x48560a=_0x4a0aad%0x3c;if(_0xef8766<0x3c)return _0xef8766+'m\x20'+_0x48560a+'s';const _0x1007d4=Math['floor'](_0xef8766/0x3c),_0x1d8e0e=_0xef8766%0x3c;return _0x1007d4+'h\x20'+_0x1d8e0e+'m';}
@@ -1 +1 @@
1
- (function(_0x23112c,_0x13740f){const _0x2fb97f=a76_0x5043,_0x5432aa=_0x23112c();while(!![]){try{const _0x1b726b=-parseInt(_0x2fb97f(0x15f))/0x1*(parseInt(_0x2fb97f(0x166))/0x2)+-parseInt(_0x2fb97f(0x162))/0x3+parseInt(_0x2fb97f(0x158))/0x4+-parseInt(_0x2fb97f(0x169))/0x5+parseInt(_0x2fb97f(0x167))/0x6+parseInt(_0x2fb97f(0x168))/0x7*(parseInt(_0x2fb97f(0x15c))/0x8)+parseInt(_0x2fb97f(0x164))/0x9;if(_0x1b726b===_0x13740f)break;else _0x5432aa['push'](_0x5432aa['shift']());}catch(_0x5294b5){_0x5432aa['push'](_0x5432aa['shift']());}}}(a76_0x30ae,0xed38e));import{readFileSync}from'fs';function a76_0x30ae(){const _0x2160fb=['code','4503864uZGcyd','filter','22237470tvFVkA','\x27\x20not\x20found','562DhVizL','1396614CLtqod','764813sbdqgn','5295080SyZZSJ','trim','File\x20\x27','length','message','utf-8','3319364LlDAxa','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','push','56hcXUEb','replace','map','2727pVRFCD','Error\x20reading\x20file\x20\x27'];a76_0x30ae=function(){return _0x2160fb;};return a76_0x30ae();}export function stripSqlComments(_0x5a7a93){const _0x376491=a76_0x5043;let _0x3b19f8=_0x5a7a93[_0x376491(0x15d)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3b19f8=_0x3b19f8[_0x376491(0x15d)](/--.*$/gm,''),_0x3b19f8[_0x376491(0x16a)]();}function a76_0x5043(_0x196978,_0x2cfa1e){const _0x30ae19=a76_0x30ae();return a76_0x5043=function(_0x5043cc,_0x1a86b7){_0x5043cc=_0x5043cc-0x158;let _0x49097f=_0x30ae19[_0x5043cc];return _0x49097f;},a76_0x5043(_0x196978,_0x2cfa1e);}function isEscaped(_0x19cc36,_0x31807f){let _0x5eb118=0x0;for(let _0x12e464=_0x31807f-0x1;_0x12e464>=0x0&&_0x19cc36[_0x12e464]==='\x5c';_0x12e464--){_0x5eb118++;}return _0x5eb118%0x2===0x1;}export function splitSqlStatements(_0x1f9b1a){const _0xd842a4=a76_0x5043,_0x2ce210=stripSqlComments(_0x1f9b1a);if(!_0x2ce210)throw new Error(_0xd842a4(0x159));const _0x46d155=[];let _0x6ff160='',_0x5b9ea8=![],_0x25cbfd=![],_0x2a8007=![];for(let _0x31fd95=0x0;_0x31fd95<_0x1f9b1a['length'];_0x31fd95++){const _0x393f23=_0x1f9b1a[_0x31fd95];if(_0x393f23==='\x27'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x25cbfd&&!_0x2a8007)_0x5b9ea8=!_0x5b9ea8;else{if(_0x393f23==='\x22'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x5b9ea8&&!_0x2a8007)_0x25cbfd=!_0x25cbfd;else _0x393f23==='`'&&!isEscaped(_0x1f9b1a,_0x31fd95)&&!_0x5b9ea8&&!_0x25cbfd&&(_0x2a8007=!_0x2a8007);}if(_0x393f23===';'&&!_0x5b9ea8&&!_0x25cbfd&&!_0x2a8007){const _0x27dc10=_0x6ff160['trim']();_0x27dc10&&_0x46d155[_0xd842a4(0x15b)](_0x27dc10),_0x6ff160='';}else _0x6ff160+=_0x393f23;}const _0x4549be=_0x6ff160[_0xd842a4(0x16a)]();_0x4549be&&_0x46d155[_0xd842a4(0x15b)](_0x4549be);const _0x3ec308=_0x46d155[_0xd842a4(0x15e)](_0x3745cd=>_0x3745cd[_0xd842a4(0x16a)]())[_0xd842a4(0x163)](_0x31fdd5=>{const _0x519099=_0xd842a4,_0x2b8a4b=stripSqlComments(_0x31fdd5);return _0x2b8a4b[_0x519099(0x16c)]>0x0;});if(_0x3ec308[_0xd842a4(0x16c)]===0x0)throw new Error(_0xd842a4(0x159));return _0x3ec308;}export function readFileContent(_0x20991a){const _0x35c5b3=a76_0x5043;try{return readFileSync(_0x20991a,_0x35c5b3(0x16e));}catch(_0x1130f6){const _0x3af4b0=_0x1130f6[_0x35c5b3(0x161)];if(_0x3af4b0==='ENOENT')throw new Error('File\x20\x27'+_0x20991a+_0x35c5b3(0x165));else{if(_0x3af4b0==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x20991a+'\x27');else throw new Error(_0x35c5b3(0x160)+_0x20991a+'\x27:\x20'+_0x1130f6[_0x35c5b3(0x16d)]);}}}export function readSqlStatementsFromFile(_0x3a76f4){const _0x2a76a5=a76_0x5043,_0x2295f7=readFileContent(_0x3a76f4);try{return splitSqlStatements(_0x2295f7);}catch(_0xbf3695){throw new Error(_0x2a76a5(0x16b)+_0x3a76f4+'\x27\x20'+_0xbf3695[_0x2a76a5(0x16d)][_0x2a76a5(0x15a)]());}}
1
+ (function(_0x55b73c,_0x133570){const _0xfaa4b4=a76_0x3bda,_0x58b265=_0x55b73c();while(!![]){try{const _0x6fc7da=-parseInt(_0xfaa4b4(0x13b))/0x1+-parseInt(_0xfaa4b4(0x145))/0x2*(-parseInt(_0xfaa4b4(0x13d))/0x3)+parseInt(_0xfaa4b4(0x14d))/0x4+parseInt(_0xfaa4b4(0x147))/0x5+-parseInt(_0xfaa4b4(0x14e))/0x6+parseInt(_0xfaa4b4(0x13e))/0x7*(parseInt(_0xfaa4b4(0x144))/0x8)+-parseInt(_0xfaa4b4(0x13c))/0x9*(parseInt(_0xfaa4b4(0x146))/0xa);if(_0x6fc7da===_0x133570)break;else _0x58b265['push'](_0x58b265['shift']());}catch(_0x2b9a39){_0x58b265['push'](_0x58b265['shift']());}}}(a76_0x5da6,0xd005f));function a76_0x5da6(){const _0x1776d0=['8018244qLwurv','replace','ENOENT','code','\x27:\x20','filter','926941dIDFiJ','369qwxPii','3pzNTsX','7QYGmup','toLowerCase','message','length','push','Content\x20contains\x20no\x20SQL\x20statements','13165848QUyMnm','85396KSwKwQ','99310cpCuMy','7314310OdfkuX','utf-8','File\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','EACCES','trim','1485032TwfkdP'];a76_0x5da6=function(){return _0x1776d0;};return a76_0x5da6();}import{readFileSync}from'fs';export function stripSqlComments(_0x4271ff){const _0x46fc9e=a76_0x3bda;let _0x1f9b66=_0x4271ff[_0x46fc9e(0x14f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1f9b66=_0x1f9b66[_0x46fc9e(0x14f)](/--.*$/gm,''),_0x1f9b66[_0x46fc9e(0x14c)]();}function a76_0x3bda(_0x2271bc,_0x42929c){const _0x5da689=a76_0x5da6();return a76_0x3bda=function(_0x3bda0e,_0x4db199){_0x3bda0e=_0x3bda0e-0x138;let _0x2ad65c=_0x5da689[_0x3bda0e];return _0x2ad65c;},a76_0x3bda(_0x2271bc,_0x42929c);}function isEscaped(_0x246e6c,_0x1f0af4){let _0x4bc33e=0x0;for(let _0x2ad26a=_0x1f0af4-0x1;_0x2ad26a>=0x0&&_0x246e6c[_0x2ad26a]==='\x5c';_0x2ad26a--){_0x4bc33e++;}return _0x4bc33e%0x2===0x1;}export function splitSqlStatements(_0x13d0da){const _0x1a36b8=a76_0x3bda,_0x524cf1=stripSqlComments(_0x13d0da);if(!_0x524cf1)throw new Error(_0x1a36b8(0x143));const _0x216138=[];let _0x18988f='',_0x4fc486=![],_0x7f4acb=![],_0x382f91=![];for(let _0x15b536=0x0;_0x15b536<_0x13d0da['length'];_0x15b536++){const _0x25e71e=_0x13d0da[_0x15b536];if(_0x25e71e==='\x27'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x7f4acb&&!_0x382f91)_0x4fc486=!_0x4fc486;else{if(_0x25e71e==='\x22'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x4fc486&&!_0x382f91)_0x7f4acb=!_0x7f4acb;else _0x25e71e==='`'&&!isEscaped(_0x13d0da,_0x15b536)&&!_0x4fc486&&!_0x7f4acb&&(_0x382f91=!_0x382f91);}if(_0x25e71e===';'&&!_0x4fc486&&!_0x7f4acb&&!_0x382f91){const _0x8d040c=_0x18988f[_0x1a36b8(0x14c)]();_0x8d040c&&_0x216138[_0x1a36b8(0x142)](_0x8d040c),_0x18988f='';}else _0x18988f+=_0x25e71e;}const _0x25dc67=_0x18988f[_0x1a36b8(0x14c)]();_0x25dc67&&_0x216138[_0x1a36b8(0x142)](_0x25dc67);const _0x5944e7=_0x216138['map'](_0x49cb85=>_0x49cb85[_0x1a36b8(0x14c)]())[_0x1a36b8(0x13a)](_0x231c1a=>{const _0x42dc89=_0x1a36b8,_0x1c21eb=stripSqlComments(_0x231c1a);return _0x1c21eb[_0x42dc89(0x141)]>0x0;});if(_0x5944e7[_0x1a36b8(0x141)]===0x0)throw new Error(_0x1a36b8(0x143));return _0x5944e7;}export function readFileContent(_0x110ab7){const _0x7b88da=a76_0x3bda;try{return readFileSync(_0x110ab7,_0x7b88da(0x148));}catch(_0x107b7c){const _0x5c7559=_0x107b7c[_0x7b88da(0x138)];if(_0x5c7559===_0x7b88da(0x150))throw new Error(_0x7b88da(0x149)+_0x110ab7+'\x27\x20not\x20found');else{if(_0x5c7559===_0x7b88da(0x14b))throw new Error(_0x7b88da(0x14a)+_0x110ab7+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x110ab7+_0x7b88da(0x139)+_0x107b7c['message']);}}}export function readSqlStatementsFromFile(_0x43850b){const _0x3608cb=a76_0x3bda,_0x47c5c7=readFileContent(_0x43850b);try{return splitSqlStatements(_0x47c5c7);}catch(_0x5bd01e){throw new Error(_0x3608cb(0x149)+_0x43850b+'\x27\x20'+_0x5bd01e[_0x3608cb(0x140)][_0x3608cb(0x13f)]());}}
@@ -1 +1 @@
1
- (function(_0xd78f3d,_0x15faac){const _0x1d2689=a77_0x57cb,_0x19cc04=_0xd78f3d();while(!![]){try{const _0x57c15f=-parseInt(_0x1d2689(0xa2))/0x1*(-parseInt(_0x1d2689(0x98))/0x2)+parseInt(_0x1d2689(0xac))/0x3*(-parseInt(_0x1d2689(0x97))/0x4)+parseInt(_0x1d2689(0xa5))/0x5*(parseInt(_0x1d2689(0xa7))/0x6)+-parseInt(_0x1d2689(0xa3))/0x7+-parseInt(_0x1d2689(0xab))/0x8*(-parseInt(_0x1d2689(0x9a))/0x9)+-parseInt(_0x1d2689(0x96))/0xa+parseInt(_0x1d2689(0xa4))/0xb*(-parseInt(_0x1d2689(0x9d))/0xc);if(_0x57c15f===_0x15faac)break;else _0x19cc04['push'](_0x19cc04['shift']());}catch(_0x6d5c8e){_0x19cc04['push'](_0x19cc04['shift']());}}}(a77_0x8ec2,0x21e19));function a77_0x8ec2(){const _0xfbf51b=['startsWith','6OWHJjq','pop','event','split','6536uRjXFR','387DclVqI','body','1867410dbDbyO','3124ZSHBXN','2VIRkhF','data','1791HPaeLF','indexOf','trim','336uwrgdr','slice','getReader','releaseLock','parse','235173Mhayim','44534BOdCkC','1815JshgaN','197465AQkBgz'];a77_0x8ec2=function(){return _0xfbf51b;};return a77_0x8ec2();}function a77_0x57cb(_0x29c5a2,_0x47369c){const _0x8ec2a5=a77_0x8ec2();return a77_0x57cb=function(_0x57cb38,_0xf3de56){_0x57cb38=_0x57cb38-0x96;let _0x6ecc95=_0x8ec2a5[_0x57cb38];return _0x6ecc95;},a77_0x57cb(_0x29c5a2,_0x47369c);}export async function*parseSSEStream(_0x6225ef){const _0x4e2bdf=a77_0x57cb;if(!_0x6225ef[_0x4e2bdf(0xad)])throw new Error('Response\x20body\x20is\x20null');const _0x2ec2e5=_0x6225ef[_0x4e2bdf(0xad)][_0x4e2bdf(0x9f)](),_0x1b8be4=new TextDecoder();let _0x565683='',_0x35d74b={};try{while(!![]){const {done:_0x342c28,value:_0x15c34a}=await _0x2ec2e5['read']();if(_0x342c28){_0x35d74b[_0x4e2bdf(0x99)]&&(yield parseSSEData(_0x35d74b[_0x4e2bdf(0x99)]));break;}_0x565683+=_0x1b8be4['decode'](_0x15c34a,{'stream':!![]});const _0x46eda5=_0x565683[_0x4e2bdf(0xaa)]('\x0a');_0x565683=_0x46eda5[_0x4e2bdf(0xa8)]()||'';for(const _0xd555fd of _0x46eda5){if(_0xd555fd[_0x4e2bdf(0x9c)]()===''){_0x35d74b[_0x4e2bdf(0x99)]&&(yield parseSSEData(_0x35d74b[_0x4e2bdf(0x99)]),_0x35d74b={});continue;}if(_0xd555fd[_0x4e2bdf(0xa6)](':'))continue;const _0x13976c=_0xd555fd[_0x4e2bdf(0x9b)](':');if(_0x13976c===-0x1)continue;const _0x547d50=_0xd555fd['slice'](0x0,_0x13976c);let _0x39299d=_0xd555fd[_0x4e2bdf(0x9e)](_0x13976c+0x1);_0x39299d[_0x4e2bdf(0xa6)]('\x20')&&(_0x39299d=_0x39299d[_0x4e2bdf(0x9e)](0x1));switch(_0x547d50){case _0x4e2bdf(0xa9):_0x35d74b[_0x4e2bdf(0xa9)]=_0x39299d;break;case'data':_0x35d74b[_0x4e2bdf(0x99)]=_0x35d74b[_0x4e2bdf(0x99)]?_0x35d74b[_0x4e2bdf(0x99)]+'\x0a'+_0x39299d:_0x39299d;break;case'id':_0x35d74b['id']=_0x39299d;break;}}}}finally{_0x2ec2e5[_0x4e2bdf(0xa0)]();}}function parseSSEData(_0x1032d6){const _0x399413=a77_0x57cb;try{return JSON[_0x399413(0xa1)](_0x1032d6);}catch(_0x2d5651){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1032d6,{'cause':_0x2d5651});}}
1
+ (function(_0x5d3e40,_0xcfec51){const _0x58b53f=a77_0x1ebd,_0x434a2e=_0x5d3e40();while(!![]){try{const _0x4b661a=-parseInt(_0x58b53f(0x95))/0x1+parseInt(_0x58b53f(0x9c))/0x2*(-parseInt(_0x58b53f(0x8a))/0x3)+-parseInt(_0x58b53f(0x98))/0x4+parseInt(_0x58b53f(0x90))/0x5*(parseInt(_0x58b53f(0x92))/0x6)+parseInt(_0x58b53f(0x97))/0x7+parseInt(_0x58b53f(0x91))/0x8*(-parseInt(_0x58b53f(0x99))/0x9)+parseInt(_0x58b53f(0x86))/0xa*(parseInt(_0x58b53f(0x93))/0xb);if(_0x4b661a===_0xcfec51)break;else _0x434a2e['push'](_0x434a2e['shift']());}catch(_0x529529){_0x434a2e['push'](_0x434a2e['shift']());}}}(a77_0x1f6d,0xc04df));function a77_0x1ebd(_0x127063,_0x3713ca){const _0x1f6ded=a77_0x1f6d();return a77_0x1ebd=function(_0x1ebd3f,_0x4c10cb){_0x1ebd3f=_0x1ebd3f-0x84;let _0x118180=_0x1f6ded[_0x1ebd3f];return _0x118180;},a77_0x1ebd(_0x127063,_0x3713ca);}function a77_0x1f6d(){const _0x11b7ba=['5ZosTdl','8OMaBoS','1394706CKikTR','102553bbMatt','releaseLock','91481JdDTYc','Response\x20body\x20is\x20null','9559501lmIRtR','3378928CBTLVV','8623557awijbU','data','slice','3034292GYyPom','startsWith','indexOf','getReader','2790vxIhcW','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','read','3qotKfi','decode','split','event','trim','pop'];a77_0x1f6d=function(){return _0x11b7ba;};return a77_0x1f6d();}export async function*parseSSEStream(_0x2cd2a4){const _0x5529cc=a77_0x1ebd;if(!_0x2cd2a4[_0x5529cc(0x88)])throw new Error(_0x5529cc(0x96));const _0x4fa46a=_0x2cd2a4[_0x5529cc(0x88)][_0x5529cc(0x85)](),_0x3ae038=new TextDecoder();let _0x121eee='',_0x4a8122={};try{while(!![]){const {done:_0x572dc0,value:_0x2e4e8a}=await _0x4fa46a[_0x5529cc(0x89)]();if(_0x572dc0){_0x4a8122[_0x5529cc(0x9a)]&&(yield parseSSEData(_0x4a8122[_0x5529cc(0x9a)]));break;}_0x121eee+=_0x3ae038[_0x5529cc(0x8b)](_0x2e4e8a,{'stream':!![]});const _0x33be7c=_0x121eee[_0x5529cc(0x8c)]('\x0a');_0x121eee=_0x33be7c[_0x5529cc(0x8f)]()||'';for(const _0x492e60 of _0x33be7c){if(_0x492e60[_0x5529cc(0x8e)]()===''){_0x4a8122[_0x5529cc(0x9a)]&&(yield parseSSEData(_0x4a8122['data']),_0x4a8122={});continue;}if(_0x492e60[_0x5529cc(0x9d)](':'))continue;const _0xa4c628=_0x492e60[_0x5529cc(0x84)](':');if(_0xa4c628===-0x1)continue;const _0x5f112c=_0x492e60['slice'](0x0,_0xa4c628);let _0x16e68d=_0x492e60[_0x5529cc(0x9b)](_0xa4c628+0x1);_0x16e68d['startsWith']('\x20')&&(_0x16e68d=_0x16e68d[_0x5529cc(0x9b)](0x1));switch(_0x5f112c){case _0x5529cc(0x8d):_0x4a8122[_0x5529cc(0x8d)]=_0x16e68d;break;case _0x5529cc(0x9a):_0x4a8122['data']=_0x4a8122[_0x5529cc(0x9a)]?_0x4a8122[_0x5529cc(0x9a)]+'\x0a'+_0x16e68d:_0x16e68d;break;case'id':_0x4a8122['id']=_0x16e68d;break;}}}}finally{_0x4fa46a[_0x5529cc(0x94)]();}}function parseSSEData(_0x35bee9){const _0x503cd9=a77_0x1ebd;try{return JSON['parse'](_0x35bee9);}catch(_0x477ed8){throw new Error(_0x503cd9(0x87)+_0x35bee9,{'cause':_0x477ed8});}}
@@ -1 +1 @@
1
- (function(_0x3de063,_0x23edb5){const _0xcdb62c=a78_0x3800,_0x59c3d6=_0x3de063();while(!![]){try{const _0x4e3d60=-parseInt(_0xcdb62c(0x130))/0x1+-parseInt(_0xcdb62c(0x12c))/0x2+parseInt(_0xcdb62c(0x11c))/0x3*(-parseInt(_0xcdb62c(0x129))/0x4)+parseInt(_0xcdb62c(0x122))/0x5+parseInt(_0xcdb62c(0x120))/0x6+parseInt(_0xcdb62c(0x12f))/0x7*(-parseInt(_0xcdb62c(0x125))/0x8)+parseInt(_0xcdb62c(0x124))/0x9;if(_0x4e3d60===_0x23edb5)break;else _0x59c3d6['push'](_0x59c3d6['shift']());}catch(_0x1258e5){_0x59c3d6['push'](_0x59c3d6['shift']());}}}(a78_0x3abc,0x1bba0));import a78_0x2524fb from'string-width';export function stringWidth(_0x150cf6){return a78_0x2524fb(_0x150cf6);}export function padEnd(_0x17cd9a,_0x268e14){const _0x1e92d4=a78_0x3800,_0x510ba0=stringWidth(_0x17cd9a);if(_0x510ba0>=_0x268e14)return _0x17cd9a;return _0x17cd9a+'\x20'[_0x1e92d4(0x11b)](_0x268e14-_0x510ba0);}export function padStart(_0x1e1614,_0x363776){const _0x487135=stringWidth(_0x1e1614);if(_0x487135>=_0x363776)return _0x1e1614;return'\x20'['repeat'](_0x363776-_0x487135)+_0x1e1614;}function a78_0x3abc(){const _0x39b7a6=['21fRNwqP','118963gdpuNK','repeat','102zOLGCF','replace','random','slice','96072EkPRjQ','test','546380XQxgHJ','length','3567609fveTtq','485416tNeIml','env','trim','USER','5696cFDzxC','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','117422oKNeGy','floor','USERNAME'];a78_0x3abc=function(){return _0x39b7a6;};return a78_0x3abc();}export function centerAlign(_0x26695b,_0x52c0be){const _0x3637bf=a78_0x3800,_0x208c53=stringWidth(_0x26695b);if(_0x208c53>_0x52c0be){if(_0x52c0be<=0x1)return'…'['substring'](0x0,_0x52c0be);let _0x3b5195=_0x26695b;while(stringWidth(_0x3b5195+'…')>_0x52c0be){_0x3b5195=_0x3b5195[_0x3637bf(0x11f)](0x0,-0x1);}return _0x3b5195+'…';}if(_0x208c53===_0x52c0be)return _0x26695b;const _0x1ae3a2=_0x52c0be-_0x208c53,_0x2a1a77=Math[_0x3637bf(0x12d)](_0x1ae3a2/0x2),_0x4871e8=_0x1ae3a2-_0x2a1a77;return'\x20'[_0x3637bf(0x11b)](_0x2a1a77)+_0x26695b+'\x20'[_0x3637bf(0x11b)](_0x4871e8);}function a78_0x3800(_0x4f6274,_0x3029ae){const _0x3abc06=a78_0x3abc();return a78_0x3800=function(_0x380016,_0xbde166){_0x380016=_0x380016-0x11b;let _0x1a7560=_0x3abc06[_0x380016];return _0x1a7560;},a78_0x3800(_0x4f6274,_0x3029ae);}export function escapeStringLiteral(_0x148784){const _0x2d56ca=a78_0x3800;if(!_0x148784||_0x148784[_0x2d56ca(0x127)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x46944f=_0x148784['replace'](/'/g,'\x27\x27');return'\x27'+_0x46944f+'\x27';}export function globToLike(_0x4a5f00){const _0x3fb9fb=a78_0x3800;let _0x15f0d0=_0x4a5f00[_0x3fb9fb(0x11d)](/\\/g,'\x5c\x5c')[_0x3fb9fb(0x11d)](/%/g,'\x5c%')[_0x3fb9fb(0x11d)](/_/g,'\x5c_');return _0x15f0d0=_0x15f0d0[_0x3fb9fb(0x11d)](/\*/g,'%')[_0x3fb9fb(0x11d)](/\?/g,'_'),_0x15f0d0;}export function buildLikePattern(_0x26fc22){const _0x23472d=a78_0x3800;if(!_0x26fc22||_0x26fc22[_0x23472d(0x127)]()[_0x23472d(0x123)]===0x0)throw new Error(_0x23472d(0x12b));const _0x3c5150=globToLike(_0x26fc22),_0x47b6a2=_0x3c5150[_0x23472d(0x11d)](/'/g,'\x27\x27');return'\x27'+_0x47b6a2+'\x27';}export function matchGlobPattern(_0x3c46ad,_0x4b8448){const _0x4965ea=a78_0x3800,_0x2df816=_0x4b8448[_0x4965ea(0x11d)](/[.+^${}()|[\]\\]/g,_0x4965ea(0x12a))[_0x4965ea(0x11d)](/\*/g,'.*')[_0x4965ea(0x11d)](/\?/g,'.'),_0x3d6032=new RegExp('^'+_0x2df816+'$');return _0x3d6032[_0x4965ea(0x121)](_0x3c46ad);}export function getSanitizedUsername(){const _0x5df1d7=a78_0x3800,_0x4c1d90=process[_0x5df1d7(0x126)][_0x5df1d7(0x128)]||process[_0x5df1d7(0x126)][_0x5df1d7(0x12e)]||'unknown';return _0x4c1d90['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x2cc3ac=a78_0x3800,_0x48b8da=Math[_0x2cc3ac(0x12d)](Math[_0x2cc3ac(0x11e)]()*0xfffff);return _0x48b8da['toString'](0x10)['padStart'](0x5,'0');}
1
+ function a78_0x30ef(_0xb71fa8,_0x453f62){const _0x388ad2=a78_0x388a();return a78_0x30ef=function(_0x30ef83,_0x33b01c){_0x30ef83=_0x30ef83-0x157;let _0x4dc15f=_0x388ad2[_0x30ef83];return _0x4dc15f;},a78_0x30ef(_0xb71fa8,_0x453f62);}(function(_0xe6158a,_0x1acf4c){const _0x3f421d=a78_0x30ef,_0x3310f6=_0xe6158a();while(!![]){try{const _0x10ba8c=-parseInt(_0x3f421d(0x161))/0x1*(-parseInt(_0x3f421d(0x168))/0x2)+-parseInt(_0x3f421d(0x162))/0x3+parseInt(_0x3f421d(0x166))/0x4+-parseInt(_0x3f421d(0x16d))/0x5+parseInt(_0x3f421d(0x15d))/0x6*(parseInt(_0x3f421d(0x157))/0x7)+-parseInt(_0x3f421d(0x15a))/0x8+parseInt(_0x3f421d(0x15b))/0x9;if(_0x10ba8c===_0x1acf4c)break;else _0x3310f6['push'](_0x3310f6['shift']());}catch(_0x23c1b7){_0x3310f6['push'](_0x3310f6['shift']());}}}(a78_0x388a,0xd38c5));import a78_0x2d92b1 from'string-width';function a78_0x388a(){const _0xd93b98=['padStart','3980155RRUrIL','119AhdSSW','slice','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1918080GwlMRc','5745996WacTBS','repeat','196578AUUtWQ','length','unknown','replace','16181WJBtAA','3284466boGVfI','toString','trim','floor','2093600CTkhLv','toLowerCase','158OioemI','USER','USERNAME','env'];a78_0x388a=function(){return _0xd93b98;};return a78_0x388a();}export function stringWidth(_0x1d835d){return a78_0x2d92b1(_0x1d835d);}export function padEnd(_0x8b7bfa,_0x4d13da){const _0x5dcd1d=a78_0x30ef,_0x2b19bd=stringWidth(_0x8b7bfa);if(_0x2b19bd>=_0x4d13da)return _0x8b7bfa;return _0x8b7bfa+'\x20'[_0x5dcd1d(0x15c)](_0x4d13da-_0x2b19bd);}export function padStart(_0x4b6541,_0x5d44c4){const _0x44a554=stringWidth(_0x4b6541);if(_0x44a554>=_0x5d44c4)return _0x4b6541;return'\x20'['repeat'](_0x5d44c4-_0x44a554)+_0x4b6541;}export function centerAlign(_0x92084a,_0x36e8cc){const _0x292e9b=a78_0x30ef,_0x7b1b9=stringWidth(_0x92084a);if(_0x7b1b9>_0x36e8cc){if(_0x36e8cc<=0x1)return'…'['substring'](0x0,_0x36e8cc);let _0x3522f2=_0x92084a;while(stringWidth(_0x3522f2+'…')>_0x36e8cc){_0x3522f2=_0x3522f2[_0x292e9b(0x158)](0x0,-0x1);}return _0x3522f2+'…';}if(_0x7b1b9===_0x36e8cc)return _0x92084a;const _0x5897d7=_0x36e8cc-_0x7b1b9,_0xfaccfc=Math[_0x292e9b(0x165)](_0x5897d7/0x2),_0x3e4a49=_0x5897d7-_0xfaccfc;return'\x20'[_0x292e9b(0x15c)](_0xfaccfc)+_0x92084a+'\x20'[_0x292e9b(0x15c)](_0x3e4a49);}export function escapeStringLiteral(_0x37783b){const _0x4b9d5c=a78_0x30ef;if(!_0x37783b||_0x37783b[_0x4b9d5c(0x164)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2025ac=_0x37783b['replace'](/'/g,'\x27\x27');return'\x27'+_0x2025ac+'\x27';}export function globToLike(_0x47f42d){const _0x10e467=a78_0x30ef;let _0x5ea864=_0x47f42d[_0x10e467(0x160)](/\\/g,'\x5c\x5c')[_0x10e467(0x160)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x5ea864=_0x5ea864['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x5ea864;}export function buildLikePattern(_0xb0b3eb){const _0x122aa3=a78_0x30ef;if(!_0xb0b3eb||_0xb0b3eb[_0x122aa3(0x164)]()[_0x122aa3(0x15e)]===0x0)throw new Error(_0x122aa3(0x159));const _0x1fa725=globToLike(_0xb0b3eb),_0x4e60e0=_0x1fa725['replace'](/'/g,'\x27\x27');return'\x27'+_0x4e60e0+'\x27';}export function matchGlobPattern(_0x959413,_0x33fea2){const _0x1e4d99=a78_0x30ef,_0x32c501=_0x33fea2[_0x1e4d99(0x160)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x1e4d99(0x160)](/\?/g,'.'),_0x13aac0=new RegExp('^'+_0x32c501+'$');return _0x13aac0['test'](_0x959413);}export function getSanitizedUsername(){const _0x2eb502=a78_0x30ef,_0x1c783b=process[_0x2eb502(0x16b)][_0x2eb502(0x169)]||process[_0x2eb502(0x16b)][_0x2eb502(0x16a)]||_0x2eb502(0x15f);return _0x1c783b[_0x2eb502(0x160)](/[^a-zA-Z0-9]/g,'')[_0x2eb502(0x167)]();}export function generateRandomHex(){const _0x30f694=a78_0x30ef,_0x2de1ad=Math[_0x30f694(0x165)](Math['random']()*0xfffff);return _0x2de1ad[_0x30f694(0x163)](0x10)[_0x30f694(0x16c)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x2879a3,_0x1b9a8b){const _0x57c971=a79_0x49c9,_0x1ad2fc=_0x2879a3();while(!![]){try{const _0xc07f55=parseInt(_0x57c971(0x84))/0x1+parseInt(_0x57c971(0x95))/0x2+parseInt(_0x57c971(0x92))/0x3*(-parseInt(_0x57c971(0x97))/0x4)+parseInt(_0x57c971(0x8e))/0x5*(parseInt(_0x57c971(0x91))/0x6)+parseInt(_0x57c971(0x90))/0x7*(parseInt(_0x57c971(0x8a))/0x8)+parseInt(_0x57c971(0x87))/0x9*(parseInt(_0x57c971(0x8f))/0xa)+-parseInt(_0x57c971(0x86))/0xb;if(_0xc07f55===_0x1b9a8b)break;else _0x1ad2fc['push'](_0x1ad2fc['shift']());}catch(_0x1a03be){_0x1ad2fc['push'](_0x1ad2fc['shift']());}}}(a79_0x439f,0x90807));function a79_0x49c9(_0x418faf,_0x3fc4f1){const _0x439fe3=a79_0x439f();return a79_0x49c9=function(_0x49c9cf,_0x57c725){_0x49c9cf=_0x49c9cf-0x84;let _0x571008=_0x439fe3[_0x49c9cf];return _0x571008;},a79_0x49c9(_0x418faf,_0x3fc4f1);}function hasWildcard(_0x21a6fd){const _0x3710a7=a79_0x49c9;return _0x21a6fd[_0x3710a7(0x93)]('*')||_0x21a6fd[_0x3710a7(0x93)]('?');}function a79_0x439f(){const _0x17b538=['423135WXxMuo','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4004891Ravtsy','188271qhEoDn','database','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','24lEBNmV','catalog','split','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','251850VjSTTP','20mmScTs','1514779YIpVRz','12DsfTAw','234COyTip','includes','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','223268ZmNpns','trim','19004JMuRfw','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','push'];a79_0x439f=function(){return _0x17b538;};return a79_0x439f();}export function parseTableReference(_0x44adc3){const _0x33e3bd=a79_0x49c9;if(!_0x44adc3||_0x44adc3[_0x33e3bd(0x96)]()[_0x33e3bd(0x9d)]===0x0)throw new Error(_0x33e3bd(0x9c));const _0x100804=_0x44adc3[_0x33e3bd(0x96)](),_0x20e16f={'original':_0x100804},_0x33b728=_0x100804[_0x33e3bd(0x8c)]('.');if(_0x33b728[_0x33e3bd(0x9d)]===0x1){const _0x582b0e=_0x33b728[0x0];if(!_0x582b0e)throw new Error(_0x33e3bd(0x9a));_0x20e16f['table']=_0x582b0e;}else{if(_0x33b728[_0x33e3bd(0x9d)]===0x2){const [_0x4fa336,_0x4e86cd]=_0x33b728;if(!_0x4fa336)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4e86cd)throw new Error(_0x33e3bd(0x94));_0x20e16f[_0x33e3bd(0x88)]=_0x4fa336,_0x20e16f[_0x33e3bd(0x98)]=_0x4e86cd;}else{if(_0x33b728[_0x33e3bd(0x9d)]===0x3){const [_0x455461,_0x5aed73,_0x4e924f]=_0x33b728;if(!_0x455461||!_0x5aed73||!_0x4e924f)throw new Error(_0x33e3bd(0x89));_0x20e16f[_0x33e3bd(0x8b)]=_0x455461,_0x20e16f[_0x33e3bd(0x88)]=_0x5aed73,_0x20e16f[_0x33e3bd(0x98)]=_0x4e924f;}else throw new Error(_0x33e3bd(0x85));}}return _0x20e16f;}export function formatTableReference(_0x20769a){const _0x480275=a79_0x49c9,_0x1a539d=[];return _0x20769a[_0x480275(0x8b)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['catalog']),_0x20769a[_0x480275(0x88)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['database']),_0x20769a[_0x480275(0x98)]&&_0x1a539d[_0x480275(0x9e)](_0x20769a['table']),_0x1a539d['join']('.');}export function validateTableListReference(_0x3eefb6){return undefined;}export function validateTableDescribeReference(_0x58cd5b){const _0x352fd2=a79_0x49c9;if(!_0x58cd5b[_0x352fd2(0x98)])return _0x352fd2(0x9b);if(_0x58cd5b[_0x352fd2(0x88)]&&hasWildcard(_0x58cd5b[_0x352fd2(0x88)]))return _0x352fd2(0x8d);if(hasWildcard(_0x58cd5b[_0x352fd2(0x98)]))return _0x352fd2(0x99);return undefined;}
1
+ (function(_0x227a77,_0x531d0a){const _0x10d2bc=a79_0x5bae,_0x1ec7f1=_0x227a77();while(!![]){try{const _0x3ba531=parseInt(_0x10d2bc(0xc8))/0x1+parseInt(_0x10d2bc(0xd1))/0x2*(-parseInt(_0x10d2bc(0xcd))/0x3)+parseInt(_0x10d2bc(0xd2))/0x4+-parseInt(_0x10d2bc(0xd7))/0x5+-parseInt(_0x10d2bc(0xcb))/0x6+-parseInt(_0x10d2bc(0xce))/0x7+parseInt(_0x10d2bc(0xda))/0x8;if(_0x3ba531===_0x531d0a)break;else _0x1ec7f1['push'](_0x1ec7f1['shift']());}catch(_0x2f74f7){_0x1ec7f1['push'](_0x1ec7f1['shift']());}}}(a79_0x1581,0x6bc7a));function a79_0x1581(){const _0x58ec50=['length','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','3339725ZRJkFv','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','13368808hfflCM','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','includes','join','database','table','734389VRmYbF','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','3459510npJCsi','trim','111HiMUnK','2760884sansfx','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','17672abKNiY','7400BhefGL','catalog'];a79_0x1581=function(){return _0x58ec50;};return a79_0x1581();}function hasWildcard(_0x24e420){const _0xc09fcf=a79_0x5bae;return _0x24e420[_0xc09fcf(0xc4)]('*')||_0x24e420['includes']('?');}export function parseTableReference(_0x47ff66){const _0x21e5f3=a79_0x5bae;if(!_0x47ff66||_0x47ff66[_0x21e5f3(0xcc)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x313a1f=_0x47ff66[_0x21e5f3(0xcc)](),_0x542934={'original':_0x313a1f},_0x1dacde=_0x313a1f[_0x21e5f3(0xd0)]('.');if(_0x1dacde[_0x21e5f3(0xd4)]===0x1){const _0x4459db=_0x1dacde[0x0];if(!_0x4459db)throw new Error(_0x21e5f3(0xd5));_0x542934[_0x21e5f3(0xc7)]=_0x4459db;}else{if(_0x1dacde['length']===0x2){const [_0x38c9cb,_0x151f7f]=_0x1dacde;if(!_0x38c9cb)throw new Error(_0x21e5f3(0xca));if(!_0x151f7f)throw new Error(_0x21e5f3(0xc3));_0x542934[_0x21e5f3(0xc6)]=_0x38c9cb,_0x542934[_0x21e5f3(0xc7)]=_0x151f7f;}else{if(_0x1dacde[_0x21e5f3(0xd4)]===0x3){const [_0x2e43c4,_0x2830f2,_0x553a49]=_0x1dacde;if(!_0x2e43c4||!_0x2830f2||!_0x553a49)throw new Error(_0x21e5f3(0xd8));_0x542934[_0x21e5f3(0xd3)]=_0x2e43c4,_0x542934[_0x21e5f3(0xc6)]=_0x2830f2,_0x542934['table']=_0x553a49;}else throw new Error(_0x21e5f3(0xd6));}}return _0x542934;}function a79_0x5bae(_0x44b1d1,_0x426332){const _0x1581ab=a79_0x1581();return a79_0x5bae=function(_0x5bae81,_0x26a739){_0x5bae81=_0x5bae81-0xc3;let _0x5869a9=_0x1581ab[_0x5bae81];return _0x5869a9;},a79_0x5bae(_0x44b1d1,_0x426332);}export function formatTableReference(_0x275b02){const _0x3f6b5f=a79_0x5bae,_0x4ac524=[];return _0x275b02[_0x3f6b5f(0xd3)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xd3)]),_0x275b02[_0x3f6b5f(0xc6)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xc6)]),_0x275b02[_0x3f6b5f(0xc7)]&&_0x4ac524[_0x3f6b5f(0xc9)](_0x275b02[_0x3f6b5f(0xc7)]),_0x4ac524[_0x3f6b5f(0xc5)]('.');}export function validateTableListReference(_0x50d944){return undefined;}export function validateTableDescribeReference(_0x2f4fee){const _0x510676=a79_0x5bae;if(!_0x2f4fee[_0x510676(0xc7)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x2f4fee['database']&&hasWildcard(_0x2f4fee[_0x510676(0xc6)]))return _0x510676(0xd9);if(hasWildcard(_0x2f4fee[_0x510676(0xc7)]))return _0x510676(0xcf);return undefined;}
@@ -1 +1 @@
1
- const a80_0x49bbe5=a80_0x3bbe;(function(_0x448d65,_0x353a37){const _0x3e8d54=a80_0x3bbe,_0x38e61b=_0x448d65();while(!![]){try{const _0x1204ca=-parseInt(_0x3e8d54(0xe0))/0x1+parseInt(_0x3e8d54(0xc7))/0x2*(parseInt(_0x3e8d54(0xff))/0x3)+-parseInt(_0x3e8d54(0xf9))/0x4*(-parseInt(_0x3e8d54(0xdf))/0x5)+-parseInt(_0x3e8d54(0xc9))/0x6+parseInt(_0x3e8d54(0xfd))/0x7*(-parseInt(_0x3e8d54(0xef))/0x8)+parseInt(_0x3e8d54(0xfa))/0x9+parseInt(_0x3e8d54(0xe2))/0xa*(parseInt(_0x3e8d54(0xd1))/0xb);if(_0x1204ca===_0x353a37)break;else _0x38e61b['push'](_0x38e61b['shift']());}catch(_0x32f58e){_0x38e61b['push'](_0x38e61b['shift']());}}}(a80_0x3156,0xf088f));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';function a80_0x3bbe(_0x2b495f,_0x1a2d46){const _0x3156fa=a80_0x3156();return a80_0x3bbe=function(_0x3bbe92,_0xa35f4b){_0x3bbe92=_0x3bbe92-0xc1;let _0x4d251e=_0x3156fa[_0x3bbe92];return _0x4d251e;},a80_0x3bbe(_0x2b495f,_0x1a2d46);}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x59610a from'chalk';function safeStringify(_0x40c7b2){const _0x1eea87=a80_0x3bbe;if(typeof _0x40c7b2===_0x1eea87(0xe6))return _0x40c7b2;if(_0x40c7b2 instanceof Error)return _0x40c7b2[_0x1eea87(0xed)]||_0x40c7b2[_0x1eea87(0xda)]+':\x20'+_0x40c7b2[_0x1eea87(0xf0)];try{return JSON[_0x1eea87(0xc2)](_0x40c7b2,(_0x41cb9d,_0x146cca)=>{const _0x3d72ec=_0x1eea87;if(_0x146cca instanceof Error)return{'name':_0x146cca[_0x3d72ec(0xda)],'message':_0x146cca[_0x3d72ec(0xf0)],'stack':_0x146cca['stack'],'cause':_0x146cca['cause']};return _0x146cca;});}catch{return String(_0x40c7b2);}}function getTimezoneOffset(){const _0x3d4fe3=a80_0x3bbe,_0x2fedda=-new Date()[_0x3d4fe3(0xf6)](),_0xede33a=Math['floor'](Math[_0x3d4fe3(0xe4)](_0x2fedda)/0x3c),_0x13be25=Math['abs'](_0x2fedda)%0x3c,_0x49ba15=_0x2fedda>=0x0?'+':'-';return''+_0x49ba15+_0xede33a[_0x3d4fe3(0xea)]()[_0x3d4fe3(0xf4)](0x2,'0')+_0x13be25['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x29100d=a80_0x3bbe,_0xffada8=new Date(),_0x47041a=_0xffada8[_0x29100d(0xe5)](),_0x5f8fca=(_0xffada8['getMonth']()+0x1)[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x5d1de0=_0xffada8[_0x29100d(0xc5)]()[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x2b53e6=_0xffada8[_0x29100d(0xdc)]()[_0x29100d(0xea)]()['padStart'](0x2,'0'),_0x1aa339=_0xffada8[_0x29100d(0xd0)]()[_0x29100d(0xea)]()[_0x29100d(0xf4)](0x2,'0'),_0x2eafef=_0xffada8['getSeconds']()['toString']()[_0x29100d(0xf4)](0x2,'0'),_0x1bfe3b=_0xffada8[_0x29100d(0xdb)]()[_0x29100d(0xea)]()['padStart'](0x3,'0'),_0x44ea66=getTimezoneOffset();return _0x47041a+'-'+_0x5f8fca+'-'+_0x5d1de0+'\x20'+_0x2b53e6+':'+_0x1aa339+':'+_0x2eafef+'.'+_0x1bfe3b+_0x44ea66;}function a80_0x3156(){const _0x5ceeb2=['Proxy\x20session\x20ended','name','getMilliseconds','getHours','toISOString','log','65Csjfsp','852035KAOwQK','red','280tenhxV','end','abs','getFullYear','string','Warning:\x20Failed\x20to\x20compress\x20','DEBUG','TRACE','toString','WARN','proxy-','stack','write','24bYhGZW','message','tdx','ERROR','Warning:\x20Error\x20writing\x20to\x20proxy.log:','padStart','mtime','getTimezoneOffset','split','yellow','422152wZOlmP','3922758kegwpO','test','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','2193611SDPIdz','trace','249297eyCKqS','logDir','stringify','proxy.log','getLogPath','getDate','gray','18ommshr','Proxy\x20server\x20started','1924164kKBfCZ','.log','filter','logLevel','logStream','error','warn','getMinutes','213059kyYoCg','close','fileOnly','INFO','debug','includes','info','.cache'];a80_0x3156=function(){return _0x5ceeb2;};return a80_0x3156();}function formatColoredLogEntry(_0x21fdc0,_0x480b7f){const _0x51c72b=a80_0x3bbe,_0x4c23c3=formatTimestamp(),_0x1eb2db=_0x480b7f['map'](safeStringify)['join']('\x20'),_0x2bd6b2=a80_0x59610a[_0x51c72b(0xc6)](_0x4c23c3);let _0x7501d9;switch(_0x21fdc0){case'info':_0x7501d9=a80_0x59610a['cyan']('['+_0x21fdc0+']\x20');break;case _0x51c72b(0xcf):_0x7501d9=a80_0x59610a[_0x51c72b(0xf8)]('['+_0x21fdc0+']\x20');break;case _0x51c72b(0xce):_0x7501d9=a80_0x59610a[_0x51c72b(0xe1)]('['+_0x21fdc0+']');break;case _0x51c72b(0xd5):_0x7501d9=a80_0x59610a[_0x51c72b(0xc6)]('['+_0x21fdc0+']');break;default:_0x7501d9='['+_0x21fdc0+']';}return _0x2bd6b2+'\x20'+_0x7501d9+'\x20'+_0x1eb2db;}export var LogLevel;(function(_0x1b5f33){const _0x377e60=a80_0x3bbe;_0x1b5f33[_0x1b5f33['TRACE']=-0x2]=_0x377e60(0xe9),_0x1b5f33[_0x1b5f33[_0x377e60(0xe8)]=-0x1]='DEBUG',_0x1b5f33[_0x1b5f33['INFO']=0x0]=_0x377e60(0xd4),_0x1b5f33[_0x1b5f33[_0x377e60(0xeb)]=0x1]='WARN',_0x1b5f33[_0x1b5f33[_0x377e60(0xf2)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x49bbe5(0xcd)];[a80_0x49bbe5(0xc1)];[a80_0x49bbe5(0xcc)];[a80_0x49bbe5(0xd3)];constructor(_0x26c9ec=LogLevel[a80_0x49bbe5(0xd4)],_0x375228=![]){const _0x2cb4f3=a80_0x49bbe5;this[_0x2cb4f3(0xc1)]=join(homedir(),_0x2cb4f3(0xd8),_0x2cb4f3(0xf1),'logs'),this['logLevel']=_0x26c9ec,this[_0x2cb4f3(0xd3)]=_0x375228;}async['init'](){const _0x37775f=a80_0x49bbe5;try{await mkdir(this[_0x37775f(0xc1)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x5a8220=join(this[_0x37775f(0xc1)],_0x37775f(0xc3));this[_0x37775f(0xcd)]=createWriteStream(_0x5a8220,{'flags':'a'}),this[_0x37775f(0xcd)]['on'](_0x37775f(0xce),_0x5a317d=>{const _0xc4800a=_0x37775f;console[_0xc4800a(0xce)](_0xc4800a(0xf3),_0x5a317d[_0xc4800a(0xf0)]);}),this['info'](_0x37775f(0xc8));}catch(_0x1fd386){console[_0x37775f(0xce)](_0x37775f(0xfc),_0x1fd386);}}async['rotateOldLogs'](){const _0x2da377=a80_0x49bbe5;try{const _0xd3c352=await readdir(this[_0x2da377(0xc1)]),_0x29a7bc=new Date()[_0x2da377(0xdd)]()['split']('T')[0x0];if(_0xd3c352[_0x2da377(0xd6)]('proxy.log')){const _0x3ecd18=join(this['logDir'],_0x2da377(0xc3)),_0x18cd14=await stat(_0x3ecd18),_0x21435a=new Date(_0x18cd14[_0x2da377(0xf5)])[_0x2da377(0xdd)]()[_0x2da377(0xf7)]('T')[0x0];if(_0x21435a<_0x29a7bc){const _0x291143=join(this[_0x2da377(0xc1)],_0x2da377(0xec)+_0x21435a+_0x2da377(0xca));await rename(_0x3ecd18,_0x291143);}}const _0x4c116e=await readdir(this[_0x2da377(0xc1)]),_0x3abac7=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x3436bb=_0x4c116e[_0x2da377(0xcb)](_0x21c5a6=>_0x3abac7[_0x2da377(0xfb)](_0x21c5a6));for(const _0x55f109 of _0x3436bb){const _0x321032=join(this[_0x2da377(0xc1)],_0x55f109),_0x547962=join(this[_0x2da377(0xc1)],_0x55f109+'.gz');try{await pipeline(createReadStream(_0x321032),createGzip(),createWriteStream(_0x547962)),await unlink(_0x321032);}catch(_0x16d19a){console[_0x2da377(0xce)](_0x2da377(0xe7)+_0x55f109+':',_0x16d19a);}}}catch{}}[a80_0x49bbe5(0xd5)](..._0x36fc52){const _0x5eec62=a80_0x49bbe5;if(this['logLevel']>LogLevel[_0x5eec62(0xe8)])return;const _0x367e59=formatColoredLogEntry(_0x5eec62(0xd5),_0x36fc52);this[_0x5eec62(0xcd)]?.[_0x5eec62(0xee)](_0x367e59+'\x0a');}[a80_0x49bbe5(0xfe)](..._0x182b9a){const _0xe3183b=a80_0x49bbe5;if(this[_0xe3183b(0xcc)]>LogLevel[_0xe3183b(0xe9)])return;const _0x349c19=formatColoredLogEntry(_0xe3183b(0xfe),_0x182b9a);this['logStream']?.['write'](_0x349c19+'\x0a');}[a80_0x49bbe5(0xd7)](..._0x43b8e7){const _0x3622fe=a80_0x49bbe5;if(this[_0x3622fe(0xcc)]>LogLevel['INFO'])return;const _0x43c40b=formatColoredLogEntry('info',_0x43b8e7);!this[_0x3622fe(0xd3)]&&console[_0x3622fe(0xde)](_0x43c40b),this['logStream']?.[_0x3622fe(0xee)](_0x43c40b+'\x0a');}[a80_0x49bbe5(0xcf)](..._0x250e49){const _0x4c967c=a80_0x49bbe5;if(this[_0x4c967c(0xcc)]>LogLevel[_0x4c967c(0xeb)])return;const _0x31021d=formatColoredLogEntry(_0x4c967c(0xcf),_0x250e49);!this[_0x4c967c(0xd3)]&&console[_0x4c967c(0xce)](_0x31021d),this['logStream']?.['write'](_0x31021d+'\x0a');}[a80_0x49bbe5(0xce)](..._0x212618){const _0x1bf7aa=a80_0x49bbe5,_0x1e5144=formatColoredLogEntry(_0x1bf7aa(0xce),_0x212618);!this[_0x1bf7aa(0xd3)]&&console[_0x1bf7aa(0xce)](_0x1e5144),this[_0x1bf7aa(0xcd)]?.[_0x1bf7aa(0xee)](_0x1e5144+'\x0a');}async[a80_0x49bbe5(0xd2)](){const _0x23a0cd=a80_0x49bbe5;return this[_0x23a0cd(0xd7)](_0x23a0cd(0xd9)),new Promise(_0x3287a8=>{const _0xecdb4f=_0x23a0cd;this[_0xecdb4f(0xcd)]?this['logStream'][_0xecdb4f(0xe3)](()=>{_0x3287a8();}):_0x3287a8();});}[a80_0x49bbe5(0xc4)](){const _0x183785=a80_0x49bbe5;return join(this[_0x183785(0xc1)],_0x183785(0xc3));}}
1
+ const a80_0x8b8512=a80_0x2d51;(function(_0x2a6b16,_0x22dac0){const _0x24cc6a=a80_0x2d51,_0x3a70d3=_0x2a6b16();while(!![]){try{const _0x13c9f2=-parseInt(_0x24cc6a(0xb8))/0x1*(parseInt(_0x24cc6a(0xea))/0x2)+parseInt(_0x24cc6a(0xbb))/0x3*(-parseInt(_0x24cc6a(0xe3))/0x4)+parseInt(_0x24cc6a(0xd6))/0x5*(parseInt(_0x24cc6a(0xdb))/0x6)+-parseInt(_0x24cc6a(0xc6))/0x7+-parseInt(_0x24cc6a(0xaf))/0x8*(-parseInt(_0x24cc6a(0xc9))/0x9)+parseInt(_0x24cc6a(0xad))/0xa*(parseInt(_0x24cc6a(0xd9))/0xb)+-parseInt(_0x24cc6a(0xe0))/0xc*(-parseInt(_0x24cc6a(0xc7))/0xd);if(_0x13c9f2===_0x22dac0)break;else _0x3a70d3['push'](_0x3a70d3['shift']());}catch(_0x41491a){_0x3a70d3['push'](_0x3a70d3['shift']());}}}(a80_0x4500,0xa25ab));function a80_0x4500(){const _0x32da38=['mtime','join','write','getFullYear','logLevel','getTimezoneOffset','error','1156645CdAksY','9697727shOrIv','string','134379EJCFAj','getHours','close','map','init','getLogPath','getMilliseconds','yellow','abs','.gz','ERROR','.cache','message','5010aGhYTe','Warning:\x20Failed\x20to\x20compress\x20','padStart','599346gNYmBW','Proxy\x20session\x20ended','5514GtWjmO','toString','includes','debug','Proxy\x20server\x20started','12aawrpJ','stack','logDir','4THGXUC','split','info','getSeconds','log','red','getMonth','1440570PkoxsP','DEBUG','toISOString','TRACE','fileOnly','cyan','test','10SMGxTx','WARN','56cpPdZf','logStream','cause','rotateOldLogs','INFO','.log','getMinutes','name','trace','1YRMJZJ','gray','filter','825891IYjuWQ','stringify','getDate','proxy.log'];a80_0x4500=function(){return _0x32da38;};return a80_0x4500();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a80_0x2d51(_0x331b83,_0x478cac){const _0x4500d4=a80_0x4500();return a80_0x2d51=function(_0x2d51be,_0x2cc1aa){_0x2d51be=_0x2d51be-0xa7;let _0x1f2a62=_0x4500d4[_0x2d51be];return _0x1f2a62;},a80_0x2d51(_0x331b83,_0x478cac);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x3f0a38 from'chalk';function safeStringify(_0x8724c1){const _0x595dce=a80_0x2d51;if(typeof _0x8724c1===_0x595dce(0xc8))return _0x8724c1;if(_0x8724c1 instanceof Error)return _0x8724c1[_0x595dce(0xe1)]||_0x8724c1[_0x595dce(0xb6)]+':\x20'+_0x8724c1['message'];try{return JSON[_0x595dce(0xbc)](_0x8724c1,(_0x48b23b,_0x526124)=>{const _0x512ad3=_0x595dce;if(_0x526124 instanceof Error)return{'name':_0x526124[_0x512ad3(0xb6)],'message':_0x526124[_0x512ad3(0xd5)],'stack':_0x526124[_0x512ad3(0xe1)],'cause':_0x526124[_0x512ad3(0xb1)]};return _0x526124;});}catch{return String(_0x8724c1);}}function getTimezoneOffset(){const _0x3d1fb3=a80_0x2d51,_0x54f1a6=-new Date()[_0x3d1fb3(0xc4)](),_0x34467b=Math['floor'](Math[_0x3d1fb3(0xd1)](_0x54f1a6)/0x3c),_0x344eed=Math[_0x3d1fb3(0xd1)](_0x54f1a6)%0x3c,_0x307efa=_0x54f1a6>=0x0?'+':'-';return''+_0x307efa+_0x34467b['toString']()[_0x3d1fb3(0xd8)](0x2,'0')+_0x344eed[_0x3d1fb3(0xdc)]()[_0x3d1fb3(0xd8)](0x2,'0');}function formatTimestamp(){const _0x3e096a=a80_0x2d51,_0x437c4e=new Date(),_0x4830cb=_0x437c4e[_0x3e096a(0xc2)](),_0x282657=(_0x437c4e[_0x3e096a(0xe9)]()+0x1)[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x25e927=_0x437c4e[_0x3e096a(0xbd)]()[_0x3e096a(0xdc)]()['padStart'](0x2,'0'),_0x155ac6=_0x437c4e[_0x3e096a(0xca)]()[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x4b63c4=_0x437c4e[_0x3e096a(0xb5)]()[_0x3e096a(0xdc)]()['padStart'](0x2,'0'),_0xdf731=_0x437c4e[_0x3e096a(0xe6)]()[_0x3e096a(0xdc)]()[_0x3e096a(0xd8)](0x2,'0'),_0x301851=_0x437c4e[_0x3e096a(0xcf)]()['toString']()[_0x3e096a(0xd8)](0x3,'0'),_0x3d43b9=getTimezoneOffset();return _0x4830cb+'-'+_0x282657+'-'+_0x25e927+'\x20'+_0x155ac6+':'+_0x4b63c4+':'+_0xdf731+'.'+_0x301851+_0x3d43b9;}function formatColoredLogEntry(_0x12ce4a,_0x4bec4e){const _0x2a1938=a80_0x2d51,_0x321f66=formatTimestamp(),_0x2f4b95=_0x4bec4e[_0x2a1938(0xcc)](safeStringify)[_0x2a1938(0xc0)]('\x20'),_0x5e2163=a80_0x3f0a38['gray'](_0x321f66);let _0x14ff4b;switch(_0x12ce4a){case _0x2a1938(0xe5):_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xab)]('['+_0x12ce4a+']\x20');break;case'warn':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xd0)]('['+_0x12ce4a+']\x20');break;case'error':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xe8)]('['+_0x12ce4a+']');break;case'debug':_0x14ff4b=a80_0x3f0a38[_0x2a1938(0xb9)]('['+_0x12ce4a+']');break;default:_0x14ff4b='['+_0x12ce4a+']';}return _0x5e2163+'\x20'+_0x14ff4b+'\x20'+_0x2f4b95;}export var LogLevel;(function(_0x4b715b){const _0x9150e0=a80_0x2d51;_0x4b715b[_0x4b715b['TRACE']=-0x2]=_0x9150e0(0xa9),_0x4b715b[_0x4b715b[_0x9150e0(0xa7)]=-0x1]=_0x9150e0(0xa7),_0x4b715b[_0x4b715b[_0x9150e0(0xb3)]=0x0]=_0x9150e0(0xb3),_0x4b715b[_0x4b715b[_0x9150e0(0xae)]=0x1]='WARN',_0x4b715b[_0x4b715b[_0x9150e0(0xd3)]=0x2]=_0x9150e0(0xd3);}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x8b8512(0xb0)];[a80_0x8b8512(0xe2)];[a80_0x8b8512(0xc3)];['fileOnly'];constructor(_0x49adb1=LogLevel[a80_0x8b8512(0xb3)],_0x4ed447=![]){const _0x5bfaa6=a80_0x8b8512;this[_0x5bfaa6(0xe2)]=join(homedir(),_0x5bfaa6(0xd4),'tdx','logs'),this['logLevel']=_0x49adb1,this[_0x5bfaa6(0xaa)]=_0x4ed447;}async[a80_0x8b8512(0xcd)](){const _0x32acf0=a80_0x8b8512;try{await mkdir(this[_0x32acf0(0xe2)],{'recursive':!![]}),await this[_0x32acf0(0xb2)]();const _0xc8ba6e=join(this[_0x32acf0(0xe2)],_0x32acf0(0xbe));this['logStream']=createWriteStream(_0xc8ba6e,{'flags':'a'}),this['logStream']['on'](_0x32acf0(0xc5),_0x4a8d4a=>{const _0x5b7c97=_0x32acf0;console[_0x5b7c97(0xc5)]('Warning:\x20Error\x20writing\x20to\x20proxy.log:',_0x4a8d4a[_0x5b7c97(0xd5)]);}),this[_0x32acf0(0xe5)](_0x32acf0(0xdf));}catch(_0x11343a){console[_0x32acf0(0xc5)]('Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:',_0x11343a);}}async[a80_0x8b8512(0xb2)](){const _0x2e8e7b=a80_0x8b8512;try{const _0x5f045e=await readdir(this[_0x2e8e7b(0xe2)]),_0x14b447=new Date()[_0x2e8e7b(0xa8)]()[_0x2e8e7b(0xe4)]('T')[0x0];if(_0x5f045e[_0x2e8e7b(0xdd)](_0x2e8e7b(0xbe))){const _0x5b204d=join(this[_0x2e8e7b(0xe2)],'proxy.log'),_0x572671=await stat(_0x5b204d),_0x9e46b2=new Date(_0x572671[_0x2e8e7b(0xbf)])[_0x2e8e7b(0xa8)]()[_0x2e8e7b(0xe4)]('T')[0x0];if(_0x9e46b2<_0x14b447){const _0x591553=join(this[_0x2e8e7b(0xe2)],'proxy-'+_0x9e46b2+_0x2e8e7b(0xb4));await rename(_0x5b204d,_0x591553);}}const _0xaafc2e=await readdir(this[_0x2e8e7b(0xe2)]),_0xd8a1a0=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x24e7cf=_0xaafc2e[_0x2e8e7b(0xba)](_0x36cd3a=>_0xd8a1a0[_0x2e8e7b(0xac)](_0x36cd3a));for(const _0x2771a0 of _0x24e7cf){const _0x54ef0d=join(this[_0x2e8e7b(0xe2)],_0x2771a0),_0x37dad3=join(this['logDir'],_0x2771a0+_0x2e8e7b(0xd2));try{await pipeline(createReadStream(_0x54ef0d),createGzip(),createWriteStream(_0x37dad3)),await unlink(_0x54ef0d);}catch(_0x1a9dea){console[_0x2e8e7b(0xc5)](_0x2e8e7b(0xd7)+_0x2771a0+':',_0x1a9dea);}}}catch{}}[a80_0x8b8512(0xde)](..._0x520b63){const _0xf19db8=a80_0x8b8512;if(this[_0xf19db8(0xc3)]>LogLevel[_0xf19db8(0xa7)])return;const _0x15de8b=formatColoredLogEntry(_0xf19db8(0xde),_0x520b63);this[_0xf19db8(0xb0)]?.[_0xf19db8(0xc1)](_0x15de8b+'\x0a');}[a80_0x8b8512(0xb7)](..._0x2022cf){const _0x250d18=a80_0x8b8512;if(this[_0x250d18(0xc3)]>LogLevel[_0x250d18(0xa9)])return;const _0x122d34=formatColoredLogEntry('trace',_0x2022cf);this[_0x250d18(0xb0)]?.['write'](_0x122d34+'\x0a');}[a80_0x8b8512(0xe5)](..._0x421d82){const _0x2700ab=a80_0x8b8512;if(this['logLevel']>LogLevel[_0x2700ab(0xb3)])return;const _0x466ac9=formatColoredLogEntry(_0x2700ab(0xe5),_0x421d82);!this[_0x2700ab(0xaa)]&&console[_0x2700ab(0xe7)](_0x466ac9),this[_0x2700ab(0xb0)]?.['write'](_0x466ac9+'\x0a');}['warn'](..._0x214ad6){const _0x3c5136=a80_0x8b8512;if(this[_0x3c5136(0xc3)]>LogLevel[_0x3c5136(0xae)])return;const _0x2ef2f7=formatColoredLogEntry('warn',_0x214ad6);!this[_0x3c5136(0xaa)]&&console[_0x3c5136(0xc5)](_0x2ef2f7),this['logStream']?.[_0x3c5136(0xc1)](_0x2ef2f7+'\x0a');}[a80_0x8b8512(0xc5)](..._0x34f4e8){const _0x5a7419=a80_0x8b8512,_0x1b55e=formatColoredLogEntry(_0x5a7419(0xc5),_0x34f4e8);!this[_0x5a7419(0xaa)]&&console[_0x5a7419(0xc5)](_0x1b55e),this[_0x5a7419(0xb0)]?.[_0x5a7419(0xc1)](_0x1b55e+'\x0a');}async[a80_0x8b8512(0xcb)](){const _0x1df6cc=a80_0x8b8512;return this[_0x1df6cc(0xe5)](_0x1df6cc(0xda)),new Promise(_0x4007a4=>{const _0x5e38c9=_0x1df6cc;this[_0x5e38c9(0xb0)]?this[_0x5e38c9(0xb0)]['end'](()=>{_0x4007a4();}):_0x4007a4();});}[a80_0x8b8512(0xce)](){const _0x303c05=a80_0x8b8512;return join(this[_0x303c05(0xe2)],_0x303c05(0xbe));}}
@@ -1 +1 @@
1
- (function(_0x246033,_0x12a3d9){const _0x173af0=a81_0x1e9b,_0x476990=_0x246033();while(!![]){try{const _0x23c4f4=parseInt(_0x173af0(0x1f9))/0x1+parseInt(_0x173af0(0x1fb))/0x2*(parseInt(_0x173af0(0x1f7))/0x3)+-parseInt(_0x173af0(0x209))/0x4*(-parseInt(_0x173af0(0x1ee))/0x5)+parseInt(_0x173af0(0x207))/0x6+parseInt(_0x173af0(0x204))/0x7+parseInt(_0x173af0(0x210))/0x8*(-parseInt(_0x173af0(0x1ff))/0x9)+-parseInt(_0x173af0(0x203))/0xa*(parseInt(_0x173af0(0x1f3))/0xb);if(_0x23c4f4===_0x12a3d9)break;else _0x476990['push'](_0x476990['shift']());}catch(_0x4b8774){_0x476990['push'](_0x476990['shift']());}}}(a81_0x5658,0x7b410));import{formatRows}from'./formatters.js';function a81_0x1e9b(_0x48fa5d,_0x177006){const _0x565881=a81_0x5658();return a81_0x1e9b=function(_0x1e9b1f,_0x190d3d){_0x1e9b1f=_0x1e9b1f-0x1ed;let _0x395395=_0x565881[_0x1e9b1f];return _0x395395;},a81_0x1e9b(_0x48fa5d,_0x177006);}import a81_0x321d8a from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x122009,_0x3cb5f9={},_0x17fcb1=0x0,_0x274135=''){const _0x35f2e6=a81_0x1e9b,_0x45f726={...DEFAULT_OPTIONS,..._0x3cb5f9},_0x16eff2=[],_0x59f64e=[..._0x122009][_0x35f2e6(0x1f6)]((_0x59d4b0,_0x3b14d6)=>_0x59d4b0[_0x35f2e6(0x20d)][_0x35f2e6(0x1fa)](_0x3b14d6['name']));for(let _0x2fb3bd=0x0;_0x2fb3bd<_0x59f64e[_0x35f2e6(0x202)];_0x2fb3bd++){const _0x3a71de=_0x59f64e[_0x2fb3bd],_0x29684f=_0x2fb3bd===_0x59f64e[_0x35f2e6(0x202)]-0x1;let _0x54d9cb='';_0x17fcb1>0x0&&(_0x54d9cb+=_0x274135);_0x45f726['showTreeLines']&&_0x17fcb1>0x0&&(_0x54d9cb+=a81_0x321d8a['dim'](_0x29684f?_0x35f2e6(0x1fc):_0x35f2e6(0x1f2)));_0x45f726[_0x35f2e6(0x208)]&&(_0x54d9cb+=_0x3a71de[_0x35f2e6(0x1ef)]==='folder'?_0x35f2e6(0x205):_0x35f2e6(0x1f4));_0x54d9cb+=_0x3a71de['name'];if(_0x45f726[_0x35f2e6(0x1ed)]){if(_0x3a71de['type']===_0x35f2e6(0x212)){const _0x1eff70=[];_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]&&_0x1eff70[_0x35f2e6(0x20f)](_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]+_0x35f2e6(0x20a)+(_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f1)]!==0x1?'s':'')),_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]&&_0x1eff70['push'](_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]+_0x35f2e6(0x1f8)+(_0x3a71de[_0x35f2e6(0x1fd)][_0x35f2e6(0x1f0)]!==0x1?'s':'')),_0x1eff70[_0x35f2e6(0x202)]>0x0&&(_0x54d9cb+=a81_0x321d8a[_0x35f2e6(0x20b)]('\x20('+_0x1eff70[_0x35f2e6(0x211)](',\x20')+')'));}else _0x3a71de[_0x35f2e6(0x1ef)]==='segment'&&_0x3a71de[_0x35f2e6(0x200)]!==undefined&&(_0x54d9cb+=a81_0x321d8a[_0x35f2e6(0x20b)]('\x20('+formatRows(_0x3a71de[_0x35f2e6(0x200)])+')'));}_0x16eff2[_0x35f2e6(0x20f)](_0x54d9cb);if(_0x3a71de[_0x35f2e6(0x20e)]&&_0x3a71de[_0x35f2e6(0x20e)][_0x35f2e6(0x202)]>0x0){let _0x17e141;if(_0x17fcb1===0x0)_0x17e141='';else _0x45f726[_0x35f2e6(0x20c)]?_0x17e141=_0x274135+(_0x29684f?'\x20\x20\x20\x20':a81_0x321d8a['dim']('│')+'\x20\x20\x20'):_0x17e141=_0x274135+_0x45f726[_0x35f2e6(0x206)];const _0x333fc5=formatTree(_0x3a71de[_0x35f2e6(0x20e)],_0x45f726,_0x17fcb1+0x1,_0x17e141);_0x16eff2[_0x35f2e6(0x20f)](_0x333fc5);}}return _0x16eff2[_0x35f2e6(0x211)]('\x0a');}export function formatFlatList(_0x346d2f,_0x9bba67,_0x48031f={}){const _0x294e7d=a81_0x1e9b,_0x1f0b72={...DEFAULT_OPTIONS,..._0x48031f},_0x283434=[];for(const _0xb8aa5a of _0x346d2f){_0x283434[_0x294e7d(0x20f)]({'name':_0xb8aa5a[_0x294e7d(0x20d)],'icon':_0x1f0b72[_0x294e7d(0x208)]?'📁':'','metadata':undefined});}for(const _0x4ee21d of _0x9bba67){const _0x2696ea=_0x1f0b72[_0x294e7d(0x1ed)]&&_0x4ee21d[_0x294e7d(0x200)]!==undefined?a81_0x321d8a[_0x294e7d(0x20b)]('\x20('+formatRows(_0x4ee21d[_0x294e7d(0x200)])+')'):'';_0x283434['push']({'name':_0x4ee21d[_0x294e7d(0x20d)],'icon':_0x1f0b72[_0x294e7d(0x208)]?'🎯':'','metadata':_0x2696ea});}_0x283434[_0x294e7d(0x1f6)]((_0x94c27e,_0x23c619)=>_0x94c27e[_0x294e7d(0x20d)]['localeCompare'](_0x23c619['name']));if(_0x283434['length']===0x0)return _0x294e7d(0x1f5);const _0x53bf23=_0x283434[_0x294e7d(0x201)](_0x39ead0=>{const _0x54aec7=_0x294e7d,_0x503689=_0x39ead0[_0x54aec7(0x1fe)]?_0x39ead0['icon']+'\x20':'',_0x316df0=_0x39ead0['metadata']||'';return''+_0x503689+_0x39ead0[_0x54aec7(0x20d)]+_0x316df0;});return _0x53bf23['join']('\x0a');}function a81_0x5658(){const _0x513363=['32395dsxSwu','type','folderCount','segmentCount','├──\x20','24211TFtJYq','🎯\x20','(empty)','sort','3whsyYa','\x20folder','888506IXXlMP','localeCompare','1481902iQtsjE','└──\x20','metadata','icon','830781MiHbUx','population','map','length','12780dmGWfC','6687583xXIiCY','📁\x20','indent','5203734tHJPxQ','showIcons','88RKaIKw','\x20segment','dim','showTreeLines','name','children','push','24gqbvyN','join','folder','showMetadata'];a81_0x5658=function(){return _0x513363;};return a81_0x5658();}
1
+ function a81_0x31f7(){const _0x4e19bb=['length','icon','\x20\x20\x20\x20','segment','population','\x20\x20\x20','5jPsJeu','push','showMetadata','820200kzOBWw','\x20folder','11YtQTas','folderCount','(empty)','join','234096iuvsOq','4JupkzV','├──\x20','localeCompare','name','131966tsuiDT','924585hvWSBc','folder','1144140scLLWJ','showIcons','indent','12xrBSrf','children','metadata','8jbfWmt','map','6346054YdKnlV','type','segmentCount','📁\x20','dim','showTreeLines','sort','2789037RSLfXi','🎯\x20','\x20segment','28JYvoyg','└──\x20'];a81_0x31f7=function(){return _0x4e19bb;};return a81_0x31f7();}(function(_0x5913a3,_0x41a329){const _0xd13548=a81_0x2426,_0x2d200b=_0x5913a3();while(!![]){try{const _0xacc18a=-parseInt(_0xd13548(0x154))/0x1*(parseInt(_0xd13548(0x162))/0x2)+parseInt(_0xd13548(0x157))/0x3+parseInt(_0xd13548(0x15e))/0x4*(-parseInt(_0xd13548(0x163))/0x5)+-parseInt(_0xd13548(0x15d))/0x6*(-parseInt(_0xd13548(0x177))/0x7)+-parseInt(_0xd13548(0x16b))/0x8*(parseInt(_0xd13548(0x174))/0x9)+parseInt(_0xd13548(0x165))/0xa*(parseInt(_0xd13548(0x159))/0xb)+parseInt(_0xd13548(0x168))/0xc*(parseInt(_0xd13548(0x16d))/0xd);if(_0xacc18a===_0x41a329)break;else _0x2d200b['push'](_0x2d200b['shift']());}catch(_0x450f7e){_0x2d200b['push'](_0x2d200b['shift']());}}}(a81_0x31f7,0x329cf));import{formatRows}from'./formatters.js';import a81_0xbd5f88 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x509710,_0x308630={},_0x3a50ee=0x0,_0x2b81ff=''){const _0xb2094f=a81_0x2426,_0x3ca481={...DEFAULT_OPTIONS,..._0x308630},_0x364543=[],_0xc43ca6=[..._0x509710]['sort']((_0xa19777,_0x13559d)=>_0xa19777['name'][_0xb2094f(0x160)](_0x13559d[_0xb2094f(0x161)]));for(let _0x4ddda7=0x0;_0x4ddda7<_0xc43ca6[_0xb2094f(0x14e)];_0x4ddda7++){const _0x52880e=_0xc43ca6[_0x4ddda7],_0x551e6d=_0x4ddda7===_0xc43ca6[_0xb2094f(0x14e)]-0x1;let _0xf35d7d='';_0x3a50ee>0x0&&(_0xf35d7d+=_0x2b81ff);_0x3ca481[_0xb2094f(0x172)]&&_0x3a50ee>0x0&&(_0xf35d7d+=a81_0xbd5f88[_0xb2094f(0x171)](_0x551e6d?_0xb2094f(0x178):_0xb2094f(0x15f)));_0x3ca481[_0xb2094f(0x166)]&&(_0xf35d7d+=_0x52880e[_0xb2094f(0x16e)]===_0xb2094f(0x164)?_0xb2094f(0x170):_0xb2094f(0x175));_0xf35d7d+=_0x52880e['name'];if(_0x3ca481[_0xb2094f(0x156)]){if(_0x52880e[_0xb2094f(0x16e)]==='folder'){const _0x463cd8=[];_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x16f)]&&_0x463cd8[_0xb2094f(0x155)](_0x52880e[_0xb2094f(0x16a)]['segmentCount']+_0xb2094f(0x176)+(_0x52880e[_0xb2094f(0x16a)]['segmentCount']!==0x1?'s':'')),_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x15a)]&&_0x463cd8[_0xb2094f(0x155)](_0x52880e[_0xb2094f(0x16a)][_0xb2094f(0x15a)]+_0xb2094f(0x158)+(_0x52880e['metadata'][_0xb2094f(0x15a)]!==0x1?'s':'')),_0x463cd8['length']>0x0&&(_0xf35d7d+=a81_0xbd5f88[_0xb2094f(0x171)]('\x20('+_0x463cd8[_0xb2094f(0x15c)](',\x20')+')'));}else _0x52880e[_0xb2094f(0x16e)]===_0xb2094f(0x151)&&_0x52880e[_0xb2094f(0x152)]!==undefined&&(_0xf35d7d+=a81_0xbd5f88['dim']('\x20('+formatRows(_0x52880e['population'])+')'));}_0x364543[_0xb2094f(0x155)](_0xf35d7d);if(_0x52880e[_0xb2094f(0x169)]&&_0x52880e[_0xb2094f(0x169)][_0xb2094f(0x14e)]>0x0){let _0x44aa95;if(_0x3a50ee===0x0)_0x44aa95='';else _0x3ca481['showTreeLines']?_0x44aa95=_0x2b81ff+(_0x551e6d?_0xb2094f(0x150):a81_0xbd5f88[_0xb2094f(0x171)]('│')+_0xb2094f(0x153)):_0x44aa95=_0x2b81ff+_0x3ca481[_0xb2094f(0x167)];const _0x2f3ef1=formatTree(_0x52880e['children'],_0x3ca481,_0x3a50ee+0x1,_0x44aa95);_0x364543['push'](_0x2f3ef1);}}return _0x364543[_0xb2094f(0x15c)]('\x0a');}function a81_0x2426(_0x17798d,_0x289b25){const _0x31f716=a81_0x31f7();return a81_0x2426=function(_0x242661,_0x6dfcee){_0x242661=_0x242661-0x14e;let _0x1307e0=_0x31f716[_0x242661];return _0x1307e0;},a81_0x2426(_0x17798d,_0x289b25);}export function formatFlatList(_0x573ad5,_0x246a0b,_0x28fa8a={}){const _0x41de8d=a81_0x2426,_0x226930={...DEFAULT_OPTIONS,..._0x28fa8a},_0x5a2489=[];for(const _0x32ce54 of _0x573ad5){_0x5a2489[_0x41de8d(0x155)]({'name':_0x32ce54[_0x41de8d(0x161)],'icon':_0x226930[_0x41de8d(0x166)]?'📁':'','metadata':undefined});}for(const _0x291be3 of _0x246a0b){const _0x508845=_0x226930[_0x41de8d(0x156)]&&_0x291be3[_0x41de8d(0x152)]!==undefined?a81_0xbd5f88[_0x41de8d(0x171)]('\x20('+formatRows(_0x291be3['population'])+')'):'';_0x5a2489['push']({'name':_0x291be3[_0x41de8d(0x161)],'icon':_0x226930[_0x41de8d(0x166)]?'🎯':'','metadata':_0x508845});}_0x5a2489[_0x41de8d(0x173)]((_0x22dcfd,_0x56b1bc)=>_0x22dcfd[_0x41de8d(0x161)][_0x41de8d(0x160)](_0x56b1bc[_0x41de8d(0x161)]));if(_0x5a2489[_0x41de8d(0x14e)]===0x0)return _0x41de8d(0x15b);const _0x277bb6=_0x5a2489[_0x41de8d(0x16c)](_0x272fa5=>{const _0x113667=_0x41de8d,_0x1f0ac5=_0x272fa5['icon']?_0x272fa5[_0x113667(0x14f)]+'\x20':'',_0x2136e1=_0x272fa5[_0x113667(0x16a)]||'';return''+_0x1f0ac5+_0x272fa5[_0x113667(0x161)]+_0x2136e1;});return _0x277bb6['join']('\x0a');}
@@ -1 +1 @@
1
- const a82_0x1d05f9=a82_0x8c62;(function(_0x388c2f,_0x329bad){const _0x4b3f41=a82_0x8c62,_0xbc86c9=_0x388c2f();while(!![]){try{const _0x5327fe=-parseInt(_0x4b3f41(0x140))/0x1+-parseInt(_0x4b3f41(0x134))/0x2+parseInt(_0x4b3f41(0x14b))/0x3*(-parseInt(_0x4b3f41(0x143))/0x4)+-parseInt(_0x4b3f41(0x14a))/0x5+-parseInt(_0x4b3f41(0x144))/0x6+-parseInt(_0x4b3f41(0x14c))/0x7*(-parseInt(_0x4b3f41(0x151))/0x8)+parseInt(_0x4b3f41(0x138))/0x9;if(_0x5327fe===_0x329bad)break;else _0xbc86c9['push'](_0xbc86c9['shift']());}catch(_0x2ab6f5){_0xbc86c9['push'](_0xbc86c9['shift']());}}}(a82_0x515c,0xb3321));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';function a82_0x8c62(_0x45afd0,_0x4d17f7){const _0x515c9c=a82_0x515c();return a82_0x8c62=function(_0x8c627c,_0x94c0cd){_0x8c627c=_0x8c627c-0x130;let _0x39f572=_0x515c9c[_0x8c627c];return _0x39f572;},a82_0x8c62(_0x45afd0,_0x4d17f7);}import a82_0x24bdab from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x1d05f9(0x13f),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x440a61=getCacheDir();return join(_0x440a61,'last_version_check');}function readCache(){const _0x310cd2=a82_0x1d05f9;try{const _0xd543cc=getCacheFilePath(),_0x9abf99=readFileSync(_0xd543cc,_0x310cd2(0x14d));return JSON[_0x310cd2(0x14e)](_0x9abf99);}catch{return null;}}function writeCache(_0x5a20c9){const _0x4b1922=a82_0x1d05f9;try{const _0x4d3dc9=getCacheDir();mkdirSync(_0x4d3dc9,{'recursive':!![]});const _0x5c4483={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x5a20c9},_0x41b739=getCacheFilePath();writeFileSync(_0x41b739,JSON[_0x4b1922(0x13d)](_0x5c4483,null,0x2),_0x4b1922(0x14d));}catch{}}function a82_0x515c(){const _0x11de15=['8DRgiYn','now','currentVersion','latestVersion','getTime','Update\x20available:','1310488XnCjZC','NO_COLOR','stderr','dim','37152792BvWVPv','env','Request\x20timeout','gray','statusCode','stringify','\x0aRun:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','1328270eEHxBf','Run:','version','200cslqsy','6633948Bmtksz','npm\x20install\x20-g\x20@treasuredata/tdx@latest','error','write','green','isTTY','1600875hpBhAF','41559uARpQo','4955258ahAeZG','utf-8','parse','destroy','updateAvailable'];a82_0x515c=function(){return _0x11de15;};return a82_0x515c();}function isCacheValid(_0x89608e){const _0x4b4388=a82_0x1d05f9;if(!_0x89608e)return![];const _0x44a8d5=new Date(_0x89608e['lastCheck'])[_0x4b4388(0x132)](),_0x13ae8d=Date[_0x4b4388(0x152)]();return _0x13ae8d-_0x44a8d5<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x17f49b,_0x4defef)=>{const _0x3b3e95=a82_0x8c62,_0x245dfa=get(NPM_REGISTRY_URL,_0x21e1a9=>{const _0x283dce=a82_0x8c62;if(_0x21e1a9[_0x283dce(0x13c)]!==0xc8){clearTimeout(_0x5ee1e4),_0x4defef(new Error('HTTP\x20'+_0x21e1a9['statusCode']));return;}let _0x4af184='';_0x21e1a9['on']('data',_0x5d8a77=>{_0x4af184+=_0x5d8a77;}),_0x21e1a9['on']('end',()=>{const _0x3edd35=_0x283dce;clearTimeout(_0x5ee1e4);try{const _0x2ef2c0=JSON[_0x3edd35(0x14e)](_0x4af184);if(!valid(_0x2ef2c0[_0x3edd35(0x142)])){_0x4defef(new Error('Invalid\x20version\x20format'));return;}_0x17f49b(_0x2ef2c0[_0x3edd35(0x142)]);}catch(_0x2f629f){_0x4defef(_0x2f629f);}});})['on'](_0x3b3e95(0x146),_0x40fb79=>{clearTimeout(_0x5ee1e4),_0x4defef(_0x40fb79);}),_0x5ee1e4=setTimeout(()=>{const _0x319eca=_0x3b3e95;_0x245dfa[_0x319eca(0x14f)](),_0x4defef(new Error(_0x319eca(0x13a)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x37c472){const _0x4e99fc=a82_0x1d05f9;try{const _0x47a039=readCache();if(isCacheValid(_0x47a039)){const _0x50a7b2=gt(_0x47a039['latestVersion'],_0x37c472);return{'updateAvailable':_0x50a7b2,'currentVersion':_0x37c472,'latestVersion':_0x47a039[_0x4e99fc(0x131)]};}const _0x5ad5c0=await fetchLatestVersion();writeCache(_0x5ad5c0);const _0x5b3fb4=gt(_0x5ad5c0,_0x37c472);return{'updateAvailable':_0x5b3fb4,'currentVersion':_0x37c472,'latestVersion':_0x5ad5c0};}catch{return null;}}export function displayUpdateNotification(_0x4bea55){const _0x20b960=a82_0x1d05f9;if(!_0x4bea55[_0x20b960(0x150)])return;const _0x311ddd=process[_0x20b960(0x136)][_0x20b960(0x149)]&&!process[_0x20b960(0x139)][_0x20b960(0x135)],_0x465217=_0x311ddd?a82_0x24bdab[_0x20b960(0x13b)]('→'):'→',_0x2b0bbb=_0x311ddd?a82_0x24bdab['dim'](_0x4bea55[_0x20b960(0x130)]):_0x4bea55['currentVersion'],_0xfb349e=_0x311ddd?a82_0x24bdab[_0x20b960(0x148)](_0x4bea55[_0x20b960(0x131)]):_0x4bea55[_0x20b960(0x131)],_0xfba5a4=_0x311ddd?a82_0x24bdab['cyan'](_0x20b960(0x145)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x335669=_0x311ddd?'\x0a'+a82_0x24bdab['yellow'](_0x20b960(0x133))+'\x20'+_0x2b0bbb+'\x20'+_0x465217+'\x20'+_0xfb349e+'\x0a'+a82_0x24bdab[_0x20b960(0x137)](_0x20b960(0x141))+'\x20'+_0xfba5a4+'\x0a':'\x0aUpdate\x20available:\x20'+_0x2b0bbb+'\x20'+_0x465217+'\x20'+_0xfb349e+_0x20b960(0x13e)+_0xfba5a4+'\x0a';process[_0x20b960(0x136)][_0x20b960(0x147)](_0x335669);}
1
+ function a82_0x16ad(_0x2b686d,_0x235fbc){const _0x194b41=a82_0x194b();return a82_0x16ad=function(_0x16adfd,_0x307f31){_0x16adfd=_0x16adfd-0x1a0;let _0x25d43c=_0x194b41[_0x16adfd];return _0x25d43c;},a82_0x16ad(_0x2b686d,_0x235fbc);}(function(_0x1954c2,_0x3e1c61){const _0xcf075e=a82_0x16ad,_0x5ca886=_0x1954c2();while(!![]){try{const _0x1c155f=parseInt(_0xcf075e(0x1be))/0x1*(parseInt(_0xcf075e(0x1c5))/0x2)+parseInt(_0xcf075e(0x1ae))/0x3+parseInt(_0xcf075e(0x1b9))/0x4+-parseInt(_0xcf075e(0x1a3))/0x5*(parseInt(_0xcf075e(0x1b4))/0x6)+-parseInt(_0xcf075e(0x1bf))/0x7*(-parseInt(_0xcf075e(0x1b6))/0x8)+parseInt(_0xcf075e(0x1ac))/0x9*(-parseInt(_0xcf075e(0x1c1))/0xa)+parseInt(_0xcf075e(0x1a7))/0xb*(-parseInt(_0xcf075e(0x1a5))/0xc);if(_0x1c155f===_0x3e1c61)break;else _0x5ca886['push'](_0x5ca886['shift']());}catch(_0x52aa13){_0x5ca886['push'](_0x5ca886['shift']());}}}(a82_0x194b,0x31956));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a82_0x194b(){const _0x10fea4=['green','3WbVLit','17395oBPLxe','HTTP\x20','3625150zTJhqB','cyan','Request\x20timeout','currentVersion','173686WQLYjJ','data','yellow','Update\x20available:','58450cbVIPN','utf-8','25716vohwyk','env','2189VNCWiQ','isTTY','latestVersion','getTime','statusCode','9lDJUNI','\x0aRun:\x20','1208559JxXbZZ','npm\x20install\x20-g\x20@treasuredata/tdx@latest','error','destroy','NO_COLOR','write','60nCjJjS','lastCheck','632YETujK','now','Invalid\x20version\x20format','997076BcIPia','end','version','Run:'];a82_0x194b=function(){return _0x10fea4;};return a82_0x194b();}import{gt,valid}from'semver';import a82_0x5e2a27 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x4206cc=getCacheDir();return join(_0x4206cc,'last_version_check');}function readCache(){try{const _0xb3f178=getCacheFilePath(),_0x4afd13=readFileSync(_0xb3f178,'utf-8');return JSON['parse'](_0x4afd13);}catch{return null;}}function writeCache(_0x2e2209){const _0x12d44e=a82_0x16ad;try{const _0x210d5f=getCacheDir();mkdirSync(_0x210d5f,{'recursive':!![]});const _0x25241c={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2e2209},_0x3d3b81=getCacheFilePath();writeFileSync(_0x3d3b81,JSON['stringify'](_0x25241c,null,0x2),_0x12d44e(0x1a4));}catch{}}function isCacheValid(_0x7ba902){const _0x310b1b=a82_0x16ad;if(!_0x7ba902)return![];const _0x2b758c=new Date(_0x7ba902[_0x310b1b(0x1b5)])[_0x310b1b(0x1aa)](),_0x5baf89=Date[_0x310b1b(0x1b7)]();return _0x5baf89-_0x2b758c<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x19c1b1,_0x1ed7b4)=>{const _0x83d112=a82_0x16ad,_0x3cff4b=get(NPM_REGISTRY_URL,_0xca5c5e=>{const _0x25773f=a82_0x16ad;if(_0xca5c5e['statusCode']!==0xc8){clearTimeout(_0x47f996),_0x1ed7b4(new Error(_0x25773f(0x1c0)+_0xca5c5e[_0x25773f(0x1ab)]));return;}let _0x402332='';_0xca5c5e['on'](_0x25773f(0x1a0),_0x21f12b=>{_0x402332+=_0x21f12b;}),_0xca5c5e['on'](_0x25773f(0x1ba),()=>{const _0x11020f=_0x25773f;clearTimeout(_0x47f996);try{const _0x22c717=JSON['parse'](_0x402332);if(!valid(_0x22c717['version'])){_0x1ed7b4(new Error(_0x11020f(0x1b8)));return;}_0x19c1b1(_0x22c717[_0x11020f(0x1bb)]);}catch(_0x143586){_0x1ed7b4(_0x143586);}});})['on'](_0x83d112(0x1b0),_0x53112d=>{clearTimeout(_0x47f996),_0x1ed7b4(_0x53112d);}),_0x47f996=setTimeout(()=>{const _0x3a2246=_0x83d112;_0x3cff4b[_0x3a2246(0x1b1)](),_0x1ed7b4(new Error(_0x3a2246(0x1c3)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x3401eb){const _0x30b5d0=a82_0x16ad;try{const _0x11f9f2=readCache();if(isCacheValid(_0x11f9f2)){const _0x250f99=gt(_0x11f9f2[_0x30b5d0(0x1a9)],_0x3401eb);return{'updateAvailable':_0x250f99,'currentVersion':_0x3401eb,'latestVersion':_0x11f9f2[_0x30b5d0(0x1a9)]};}const _0x472d80=await fetchLatestVersion();writeCache(_0x472d80);const _0xb603a9=gt(_0x472d80,_0x3401eb);return{'updateAvailable':_0xb603a9,'currentVersion':_0x3401eb,'latestVersion':_0x472d80};}catch{return null;}}export function displayUpdateNotification(_0x5afbf0){const _0x39d9aa=a82_0x16ad;if(!_0x5afbf0['updateAvailable'])return;const _0x22ee33=process['stderr'][_0x39d9aa(0x1a8)]&&!process[_0x39d9aa(0x1a6)][_0x39d9aa(0x1b2)],_0x588257=_0x22ee33?a82_0x5e2a27['gray']('→'):'→',_0x311541=_0x22ee33?a82_0x5e2a27['dim'](_0x5afbf0[_0x39d9aa(0x1c4)]):_0x5afbf0[_0x39d9aa(0x1c4)],_0x294525=_0x22ee33?a82_0x5e2a27[_0x39d9aa(0x1bd)](_0x5afbf0[_0x39d9aa(0x1a9)]):_0x5afbf0[_0x39d9aa(0x1a9)],_0x32ead0=_0x22ee33?a82_0x5e2a27[_0x39d9aa(0x1c2)](_0x39d9aa(0x1af)):_0x39d9aa(0x1af),_0x3fb9c2=_0x22ee33?'\x0a'+a82_0x5e2a27[_0x39d9aa(0x1a1)](_0x39d9aa(0x1a2))+'\x20'+_0x311541+'\x20'+_0x588257+'\x20'+_0x294525+'\x0a'+a82_0x5e2a27['dim'](_0x39d9aa(0x1bc))+'\x20'+_0x32ead0+'\x0a':'\x0aUpdate\x20available:\x20'+_0x311541+'\x20'+_0x588257+'\x20'+_0x294525+_0x39d9aa(0x1ad)+_0x32ead0+'\x0a';process['stderr'][_0x39d9aa(0x1b3)](_0x3fb9c2);}
@@ -1 +1 @@
1
- const a83_0x5b80eb=a83_0x3b72;function a83_0x3b72(_0x31df92,_0x540efe){const _0x2fe789=a83_0x2fe7();return a83_0x3b72=function(_0x3b7284,_0x2d6739){_0x3b7284=_0x3b7284-0x15e;let _0x5e6268=_0x2fe789[_0x3b7284];return _0x5e6268;},a83_0x3b72(_0x31df92,_0x540efe);}function a83_0x2fe7(){const _0x5558d2=['13393184YnwvzM','1wzWAhN','429uePnGU','5879622IYHRid','36cBiZeq','4318014hcicCb','2898600QsxHUX','515580vCfymD','startsWith','.digdag','580269IfyPwM','.dig','9OYNUJO','4859725Yifvms'];a83_0x2fe7=function(){return _0x5558d2;};return a83_0x2fe7();}(function(_0x262209,_0x1e0768){const _0x2fb6be=a83_0x3b72,_0x46f69b=_0x262209();while(!![]){try{const _0x3cb552=parseInt(_0x2fb6be(0x160))/0x1*(parseInt(_0x2fb6be(0x165))/0x2)+parseInt(_0x2fb6be(0x169))/0x3*(-parseInt(_0x2fb6be(0x163))/0x4)+parseInt(_0x2fb6be(0x15e))/0x5+parseInt(_0x2fb6be(0x164))/0x6+-parseInt(_0x2fb6be(0x162))/0x7+-parseInt(_0x2fb6be(0x15f))/0x8*(parseInt(_0x2fb6be(0x16b))/0x9)+-parseInt(_0x2fb6be(0x166))/0xa*(-parseInt(_0x2fb6be(0x161))/0xb);if(_0x3cb552===_0x1e0768)break;else _0x46f69b['push'](_0x46f69b['shift']());}catch(_0x505c66){_0x46f69b['push'](_0x46f69b['shift']());}}}(a83_0x2fe7,0xdaf07));export const WORKFLOW_FILE_EXTENSION=a83_0x5b80eb(0x16a);export function shouldIncludeInArchive(_0x349f48){const _0x93a401=a83_0x5b80eb;if(_0x349f48===_0x93a401(0x168))return!![];if(_0x349f48[_0x93a401(0x167)]('.'))return![];return!![];}
1
+ const a83_0x3fae8f=a83_0x304c;(function(_0xffa74b,_0xbd1c27){const _0x26ee20=a83_0x304c,_0x1b29d1=_0xffa74b();while(!![]){try{const _0x366957=parseInt(_0x26ee20(0x177))/0x1+-parseInt(_0x26ee20(0x173))/0x2*(-parseInt(_0x26ee20(0x176))/0x3)+parseInt(_0x26ee20(0x17d))/0x4*(-parseInt(_0x26ee20(0x175))/0x5)+-parseInt(_0x26ee20(0x171))/0x6*(parseInt(_0x26ee20(0x17a))/0x7)+-parseInt(_0x26ee20(0x170))/0x8+parseInt(_0x26ee20(0x17b))/0x9+parseInt(_0x26ee20(0x172))/0xa*(-parseInt(_0x26ee20(0x174))/0xb);if(_0x366957===_0xbd1c27)break;else _0x1b29d1['push'](_0x1b29d1['shift']());}catch(_0x974b43){_0x1b29d1['push'](_0x1b29d1['shift']());}}}(a83_0x3cf7,0x37cd7));export const WORKFLOW_FILE_EXTENSION=a83_0x3fae8f(0x17c);function a83_0x304c(_0x266072,_0xbddc1a){const _0x3cf727=a83_0x3cf7();return a83_0x304c=function(_0x304c95,_0x1c2416){_0x304c95=_0x304c95-0x170;let _0x119e4e=_0x3cf727[_0x304c95];return _0x119e4e;},a83_0x304c(_0x266072,_0xbddc1a);}function a83_0x3cf7(){const _0x4d1b90=['1404221oJJSzz','2881260RDbzWG','.dig','4UMYKKF','500088xOlLwA','6kKNAMs','110EVoZhp','289566YzGXhC','172711XZffIZ','1148975DkNcZD','3SNKtTp','429264gYlPfx','.digdag','startsWith'];a83_0x3cf7=function(){return _0x4d1b90;};return a83_0x3cf7();}export function shouldIncludeInArchive(_0x54840d){const _0x105288=a83_0x3fae8f;if(_0x54840d===_0x105288(0x178))return!![];if(_0x54840d[_0x105288(0x179)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {