@treasuredata/tdx 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +82 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.d.ts +20 -0
  15. package/dist/commands/claude-command.d.ts.map +1 -0
  16. package/dist/commands/claude-command.js +1 -0
  17. package/dist/commands/claude-command.js.map +1 -0
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/context-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/profiles-command.js +1 -1
  25. package/dist/commands/query-command.js +1 -1
  26. package/dist/commands/segment-command.js +1 -1
  27. package/dist/commands/segments.js +1 -1
  28. package/dist/commands/show.js +1 -1
  29. package/dist/commands/tables.js +1 -1
  30. package/dist/commands/use-command.js +1 -1
  31. package/dist/commands/workflow-command.js +1 -1
  32. package/dist/core/auth.js +1 -1
  33. package/dist/core/config.js +1 -1
  34. package/dist/core/global-context.js +1 -1
  35. package/dist/core/profile.js +1 -1
  36. package/dist/core/project-config.js +1 -1
  37. package/dist/core/session.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/proxy/anthropic-adapter.d.ts +36 -1
  40. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  41. package/dist/proxy/anthropic-adapter.js +1 -1
  42. package/dist/proxy/anthropic-adapter.js.map +1 -1
  43. package/dist/proxy/server.d.ts.map +1 -1
  44. package/dist/proxy/server.js +1 -1
  45. package/dist/proxy/server.js.map +1 -1
  46. package/dist/sdk/api.js +1 -1
  47. package/dist/sdk/database.js +1 -1
  48. package/dist/sdk/errors.d.ts +2 -0
  49. package/dist/sdk/errors.d.ts.map +1 -1
  50. package/dist/sdk/errors.js +1 -1
  51. package/dist/sdk/errors.js.map +1 -1
  52. package/dist/sdk/index.js +1 -1
  53. package/dist/sdk/llm.js +1 -1
  54. package/dist/sdk/query.js +1 -1
  55. package/dist/sdk/segment.js +1 -1
  56. package/dist/sdk/table.js +1 -1
  57. package/dist/sdk/workflow.js +1 -1
  58. package/dist/types/endpoints.js +1 -1
  59. package/dist/types/index.js +1 -1
  60. package/dist/utils/agent-ref-parser.js +1 -1
  61. package/dist/utils/chat-cache.js +1 -1
  62. package/dist/utils/colors.js +1 -1
  63. package/dist/utils/command-output.js +1 -1
  64. package/dist/utils/file-permissions.js +1 -1
  65. package/dist/utils/format-detector.js +1 -1
  66. package/dist/utils/formatters.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.d.ts +18 -0
  70. package/dist/utils/port.d.ts.map +1 -0
  71. package/dist/utils/port.js +1 -0
  72. package/dist/utils/port.js.map +1 -0
  73. package/dist/utils/process.js +1 -1
  74. package/dist/utils/segment-ref-parser.js +1 -1
  75. package/dist/utils/spinner.js +1 -1
  76. package/dist/utils/sql-parser.js +1 -1
  77. package/dist/utils/sse-parser.js +1 -1
  78. package/dist/utils/string-utils.js +1 -1
  79. package/dist/utils/table-ref-parser.js +1 -1
  80. package/dist/utils/workflow-utils.js +1 -1
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3df7d4,_0x420b1f){const _0x288914=a59_0x3c82,_0x4c2183=_0x3df7d4();while(!![]){try{const _0x78bcd0=parseInt(_0x288914(0xf2))/0x1+parseInt(_0x288914(0xf5))/0x2+-parseInt(_0x288914(0xe9))/0x3+-parseInt(_0x288914(0xe8))/0x4+parseInt(_0x288914(0xf6))/0x5+parseInt(_0x288914(0xf0))/0x6*(-parseInt(_0x288914(0xf9))/0x7)+parseInt(_0x288914(0xe7))/0x8*(parseInt(_0x288914(0xfe))/0x9);if(_0x78bcd0===_0x420b1f)break;else _0x4c2183['push'](_0x4c2183['shift']());}catch(_0x22f190){_0x4c2183['push'](_0x4c2183['shift']());}}}(a59_0x58da,0x5fd56));import a59_0x50aa43 from'ora';function a59_0x3c82(_0x555c2e,_0x32144c){const _0x58da5f=a59_0x58da();return a59_0x3c82=function(_0x3c8251,_0x1713ba){_0x3c8251=_0x3c8251-0xe6;let _0x4d66f6=_0x58da5f[_0x3c8251];return _0x4d66f6;},a59_0x3c82(_0x555c2e,_0x32144c);}export function createCommandSpinner(_0x2c3fed,_0x2aaae9={}){const _0x309368=a59_0x3c82,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2aaae9;return a59_0x50aa43({'text':_0x2c3fed,'color':_0x309368(0xfb),'isEnabled':forceEnabled||process[_0x309368(0xeb)][_0x309368(0xf7)]&&!verbose});}function a59_0x58da(){const _0x44e26e=['now','550056JYbtOu','2643460yZjBoD','289617RykrRg','jobId','stdout','intervalFactory','clock','toFixed','text','6qkpRhm','\x20[Job\x20ID:\x20','45458eTmKKd','extra','replace','1207234DXElWj','3220725KsdjsA','isTTY','phase','3409469IeEikL','stop','cyan','start','isSpinning','45AgRlUl'];a59_0x58da=function(){return _0x44e26e;};return a59_0x58da();}export async function withSpinner(_0xee77dc,_0x3693b9,_0x421a39={}){const _0x5f1664=a59_0x3c82,_0x56819c=_0x421a39[_0x5f1664(0xed)]??(()=>Date[_0x5f1664(0xe6)]()),_0x5515d6=createCommandSpinner(_0xee77dc,_0x421a39);_0x5515d6['start']();const _0x3f04a5=_0x56819c();try{const _0x27f32b=await _0x3693b9(),_0x14094f=_0x56819c()-_0x3f04a5;return _0x5515d6[_0x5f1664(0xfa)](),{'data':_0x27f32b,'elapsedMs':_0x14094f};}catch(_0x50c3d3){_0x5515d6[_0x5f1664(0xfa)]();throw _0x50c3d3;}}export async function withQuerySpinner(_0x1722d3,_0x184985,_0x380f1e={}){const _0x55e926=a59_0x3c82,_0x1e4256=_0x380f1e[_0x55e926(0xed)]??(()=>Date[_0x55e926(0xe6)]()),_0x4523da=_0x380f1e[_0x55e926(0xec)]??setInterval,_0x5740c3=createCommandSpinner(_0x1722d3,_0x380f1e);_0x5740c3[_0x55e926(0xfc)]();const _0x296bd9=_0x1e4256(),_0x6acf91=_0x1722d3[_0x55e926(0xf4)]('...',''),_0x33af8f={},_0x33ccbb=()=>{const _0x4c4a01=_0x55e926;if(!_0x5740c3[_0x4c4a01(0xfd)])return;const _0x77247f=((_0x1e4256()-_0x296bd9)/0x3e8)[_0x4c4a01(0xee)](0x1),_0x31fcfd=_0x33af8f[_0x4c4a01(0xf8)]??_0x6acf91,_0x54341e=_0x33af8f[_0x4c4a01(0xea)]?_0x4c4a01(0xf1)+_0x33af8f[_0x4c4a01(0xea)]+']':'',_0x65d045=_0x33af8f[_0x4c4a01(0xf3)]?'\x20'+_0x33af8f[_0x4c4a01(0xf3)]:'';_0x5740c3[_0x4c4a01(0xef)]=_0x31fcfd+'\x20('+_0x77247f+'s)'+_0x65d045+_0x54341e;},_0x195da1=_0x4523da(()=>{_0x33ccbb();},0x3e8),_0x32fd15={'setPhase':_0x3adffa=>{const _0x441824=_0x55e926;_0x33af8f[_0x441824(0xf8)]=_0x3adffa,_0x33ccbb();},'setJobId':_0x4658aa=>{const _0x39aa96=_0x55e926;_0x33af8f[_0x39aa96(0xea)]=_0x4658aa,_0x33ccbb();},'setExtra':_0x4b3931=>{_0x33af8f['extra']=_0x4b3931,_0x33ccbb();}};_0x33ccbb();try{const _0x4b5bf1=await _0x184985(_0x32fd15),_0x2015de=_0x1e4256()-_0x296bd9;return{'data':_0x4b5bf1,'elapsedMs':_0x2015de};}finally{clearInterval(_0x195da1),_0x5740c3[_0x55e926(0xfa)]();}}export function formatElapsed(_0x4414d6){const _0x11d34f=a59_0x3c82;return(_0x4414d6/0x3e8)[_0x11d34f(0xee)](0x2)+'s';}
1
+ (function(_0x1ea661,_0x2a3938){const _0x1af6cc=a61_0x4c19,_0x49cb21=_0x1ea661();while(!![]){try{const _0x20c9a0=-parseInt(_0x1af6cc(0x1b1))/0x1+-parseInt(_0x1af6cc(0x1b2))/0x2*(-parseInt(_0x1af6cc(0x1bc))/0x3)+parseInt(_0x1af6cc(0x1b0))/0x4*(parseInt(_0x1af6cc(0x1b3))/0x5)+-parseInt(_0x1af6cc(0x1ae))/0x6*(parseInt(_0x1af6cc(0x1b5))/0x7)+parseInt(_0x1af6cc(0x1b6))/0x8*(-parseInt(_0x1af6cc(0x1c0))/0x9)+parseInt(_0x1af6cc(0x1bf))/0xa*(-parseInt(_0x1af6cc(0x1bd))/0xb)+parseInt(_0x1af6cc(0x1c4))/0xc;if(_0x20c9a0===_0x2a3938)break;else _0x49cb21['push'](_0x49cb21['shift']());}catch(_0x524d36){_0x49cb21['push'](_0x49cb21['shift']());}}}(a61_0x363e,0x922da));import a61_0x51e41c from'ora';export function createCommandSpinner(_0x518fff,_0xf3d863={}){const _0x1b5fd8=a61_0x4c19,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xf3d863;return a61_0x51e41c({'text':_0x518fff,'color':'cyan','isEnabled':forceEnabled||process[_0x1b5fd8(0x1bb)]['isTTY']&&!verbose});}export async function withSpinner(_0x3089b6,_0x3a66cb,_0x4e6b5e={}){const _0x10197=a61_0x4c19,_0x32c974=_0x4e6b5e[_0x10197(0x1af)]??(()=>Date[_0x10197(0x1b8)]()),_0x21ed44=createCommandSpinner(_0x3089b6,_0x4e6b5e);_0x21ed44[_0x10197(0x1ba)]();const _0x1b32d5=_0x32c974();try{const _0x2e3794=await _0x3a66cb(),_0x15b69d=_0x32c974()-_0x1b32d5;return _0x21ed44[_0x10197(0x1c1)](),{'data':_0x2e3794,'elapsedMs':_0x15b69d};}catch(_0x1c7b3b){_0x21ed44[_0x10197(0x1c1)]();throw _0x1c7b3b;}}function a61_0x4c19(_0x596179,_0x4ce355){const _0x363e38=a61_0x363e();return a61_0x4c19=function(_0x4c195e,_0x533074){_0x4c195e=_0x4c195e-0x1ae;let _0x238ac5=_0x363e38[_0x4c195e];return _0x238ac5;},a61_0x4c19(_0x596179,_0x4ce355);}export async function withQuerySpinner(_0xbd417f,_0x3b6071,_0x2bcf12={}){const _0x2eebf2=a61_0x4c19,_0x400d45=_0x2bcf12['clock']??(()=>Date[_0x2eebf2(0x1b8)]()),_0x5ee16c=_0x2bcf12[_0x2eebf2(0x1b9)]??setInterval,_0x21c002=createCommandSpinner(_0xbd417f,_0x2bcf12);_0x21c002[_0x2eebf2(0x1ba)]();const _0x449429=_0x400d45(),_0x32e9fc=_0xbd417f['replace'](_0x2eebf2(0x1c2),''),_0x351796={},_0x591c2d=()=>{const _0x21da69=_0x2eebf2;if(!_0x21c002['isSpinning'])return;const _0x4deba9=((_0x400d45()-_0x449429)/0x3e8)['toFixed'](0x1),_0x384011=_0x351796[_0x21da69(0x1b4)]??_0x32e9fc,_0x17bf33=_0x351796[_0x21da69(0x1be)]?_0x21da69(0x1b7)+_0x351796['jobId']+']':'',_0x4fba3e=_0x351796[_0x21da69(0x1c3)]?'\x20'+_0x351796[_0x21da69(0x1c3)]:'';_0x21c002['text']=_0x384011+'\x20('+_0x4deba9+'s)'+_0x4fba3e+_0x17bf33;},_0x818d65=_0x5ee16c(()=>{_0x591c2d();},0x3e8),_0x316cd8={'setPhase':_0x4c4cca=>{const _0x1a7a23=_0x2eebf2;_0x351796[_0x1a7a23(0x1b4)]=_0x4c4cca,_0x591c2d();},'setJobId':_0x22a4ff=>{const _0x3ce163=_0x2eebf2;_0x351796[_0x3ce163(0x1be)]=_0x22a4ff,_0x591c2d();},'setExtra':_0x4551d2=>{const _0x2f8513=_0x2eebf2;_0x351796[_0x2f8513(0x1c3)]=_0x4551d2,_0x591c2d();}};_0x591c2d();try{const _0x29eaee=await _0x3b6071(_0x316cd8),_0x371f02=_0x400d45()-_0x449429;return{'data':_0x29eaee,'elapsedMs':_0x371f02};}finally{clearInterval(_0x818d65),_0x21c002['stop']();}}export function formatElapsed(_0x105127){return(_0x105127/0x3e8)['toFixed'](0x2)+'s';}function a61_0x363e(){const _0x13a355=['649810MtdhFt','2CVvIKV','315AOmlEG','phase','7lrrgaN','8xExIMU','\x20[Job\x20ID:\x20','now','intervalFactory','start','stdout','801018DeUGou','1408583ZadRYv','jobId','30GOUPcZ','6956811PWsfxf','stop','...','extra','30663456vmWIux','4478052VcegzT','clock','20936XXiQUG'];a61_0x363e=function(){return _0x13a355;};return a61_0x363e();}
@@ -1 +1 @@
1
- function a60_0x38b3(_0x4a3b61,_0x45ae35){const _0x1fc520=a60_0x1fc5();return a60_0x38b3=function(_0x38b377,_0x5bbcef){_0x38b377=_0x38b377-0xa0;let _0x5c5d66=_0x1fc520[_0x38b377];return _0x5c5d66;},a60_0x38b3(_0x4a3b61,_0x45ae35);}(function(_0x53d056,_0x1c257b){const _0x30076f=a60_0x38b3,_0x44a122=_0x53d056();while(!![]){try{const _0x85e0d4=-parseInt(_0x30076f(0xa0))/0x1+-parseInt(_0x30076f(0xa4))/0x2*(-parseInt(_0x30076f(0xb0))/0x3)+-parseInt(_0x30076f(0xa3))/0x4+-parseInt(_0x30076f(0xaa))/0x5*(-parseInt(_0x30076f(0xa2))/0x6)+parseInt(_0x30076f(0xb8))/0x7*(parseInt(_0x30076f(0xa7))/0x8)+-parseInt(_0x30076f(0xb7))/0x9*(-parseInt(_0x30076f(0xaf))/0xa)+-parseInt(_0x30076f(0xa9))/0xb;if(_0x85e0d4===_0x1c257b)break;else _0x44a122['push'](_0x44a122['shift']());}catch(_0x4d6472){_0x44a122['push'](_0x44a122['shift']());}}}(a60_0x1fc5,0x33953));import{readFileSync}from'fs';export function stripSqlComments(_0x1371ae){const _0x217164=a60_0x38b3;let _0x167ef0=_0x1371ae[_0x217164(0xad)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x167ef0=_0x167ef0[_0x217164(0xad)](/--.*$/gm,''),_0x167ef0[_0x217164(0xa6)]();}function isEscaped(_0x5b5944,_0x14540f){let _0x6aac4c=0x0;for(let _0x2e48e1=_0x14540f-0x1;_0x2e48e1>=0x0&&_0x5b5944[_0x2e48e1]==='\x5c';_0x2e48e1--){_0x6aac4c++;}return _0x6aac4c%0x2===0x1;}export function splitSqlStatements(_0x23aceb){const _0x36ce3d=a60_0x38b3,_0x4bcff3=stripSqlComments(_0x23aceb);if(!_0x4bcff3)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1829a8=[];let _0x5514b5='',_0x42cc31=![],_0x4228b6=![],_0x23462f=![];for(let _0x230ba2=0x0;_0x230ba2<_0x23aceb[_0x36ce3d(0xac)];_0x230ba2++){const _0x36e909=_0x23aceb[_0x230ba2];if(_0x36e909==='\x27'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x4228b6&&!_0x23462f)_0x42cc31=!_0x42cc31;else{if(_0x36e909==='\x22'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x42cc31&&!_0x23462f)_0x4228b6=!_0x4228b6;else _0x36e909==='`'&&!isEscaped(_0x23aceb,_0x230ba2)&&!_0x42cc31&&!_0x4228b6&&(_0x23462f=!_0x23462f);}if(_0x36e909===';'&&!_0x42cc31&&!_0x4228b6&&!_0x23462f){const _0x2a1ed7=_0x5514b5[_0x36ce3d(0xa6)]();_0x2a1ed7&&_0x1829a8[_0x36ce3d(0xb4)](_0x2a1ed7),_0x5514b5='';}else _0x5514b5+=_0x36e909;}const _0x36dd55=_0x5514b5[_0x36ce3d(0xa6)]();_0x36dd55&&_0x1829a8[_0x36ce3d(0xb4)](_0x36dd55);const _0x2c8398=_0x1829a8[_0x36ce3d(0xbb)](_0x5c6e8f=>_0x5c6e8f[_0x36ce3d(0xa6)]())[_0x36ce3d(0xb9)](_0x446e76=>{const _0x5d2369=_0x36ce3d,_0x4fe8c2=stripSqlComments(_0x446e76);return _0x4fe8c2[_0x5d2369(0xac)]>0x0;});if(_0x2c8398['length']===0x0)throw new Error(_0x36ce3d(0xa1));return _0x2c8398;}export function readFileContent(_0x2bac6b){const _0x202d0b=a60_0x38b3;try{return readFileSync(_0x2bac6b,_0x202d0b(0xb1));}catch(_0xbe338e){const _0x29fa1e=_0xbe338e[_0x202d0b(0xae)];if(_0x29fa1e===_0x202d0b(0xb6))throw new Error(_0x202d0b(0xb5)+_0x2bac6b+_0x202d0b(0xb2));else{if(_0x29fa1e===_0x202d0b(0xba))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x2bac6b+'\x27');else throw new Error(_0x202d0b(0xab)+_0x2bac6b+_0x202d0b(0xb3)+_0xbe338e[_0x202d0b(0xa8)]);}}}function a60_0x1fc5(){const _0x7d0002=['EACCES','map','328600IKZGKk','Content\x20contains\x20no\x20SQL\x20statements','2694bZrXuC','1208420DxHiVv','807914SengkQ','toLowerCase','trim','76136WDwCym','message','2998754ScXiVC','115CDIwLa','Error\x20reading\x20file\x20\x27','length','replace','code','20halgHw','3czbWJe','utf-8','\x27\x20not\x20found','\x27:\x20','push','File\x20\x27','ENOENT','1609677JNFkfW','252NSrWly','filter'];a60_0x1fc5=function(){return _0x7d0002;};return a60_0x1fc5();}export function readSqlStatementsFromFile(_0x3d2939){const _0x3de367=a60_0x38b3,_0x1dfeaf=readFileContent(_0x3d2939);try{return splitSqlStatements(_0x1dfeaf);}catch(_0x4067f0){throw new Error('File\x20\x27'+_0x3d2939+'\x27\x20'+_0x4067f0[_0x3de367(0xa8)][_0x3de367(0xa5)]());}}
1
+ (function(_0x5ec5a2,_0x141149){const _0x2ce370=a62_0x3dae,_0xe4ec0=_0x5ec5a2();while(!![]){try{const _0xc7f05d=-parseInt(_0x2ce370(0xd2))/0x1+-parseInt(_0x2ce370(0xd1))/0x2+parseInt(_0x2ce370(0xd9))/0x3+parseInt(_0x2ce370(0xc8))/0x4*(-parseInt(_0x2ce370(0xdf))/0x5)+parseInt(_0x2ce370(0xd3))/0x6*(-parseInt(_0x2ce370(0xd0))/0x7)+-parseInt(_0x2ce370(0xce))/0x8+parseInt(_0x2ce370(0xdd))/0x9;if(_0xc7f05d===_0x141149)break;else _0xe4ec0['push'](_0xe4ec0['shift']());}catch(_0x1980e5){_0xe4ec0['push'](_0xe4ec0['shift']());}}}(a62_0x6b4c,0x64bb5));import{readFileSync}from'fs';function a62_0x3dae(_0x1099f4,_0x321ee0){const _0x6b4c78=a62_0x6b4c();return a62_0x3dae=function(_0x3dae9e,_0x163698){_0x3dae9e=_0x3dae9e-0xc8;let _0x1131f3=_0x6b4c78[_0x3dae9e];return _0x1131f3;},a62_0x3dae(_0x1099f4,_0x321ee0);}export function stripSqlComments(_0x3a6405){const _0x2a8965=a62_0x3dae;let _0x3c332e=_0x3a6405[_0x2a8965(0xca)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3c332e=_0x3c332e['replace'](/--.*$/gm,''),_0x3c332e['trim']();}function isEscaped(_0x5d9b40,_0x445f2d){let _0x5553aa=0x0;for(let _0x139e33=_0x445f2d-0x1;_0x139e33>=0x0&&_0x5d9b40[_0x139e33]==='\x5c';_0x139e33--){_0x5553aa++;}return _0x5553aa%0x2===0x1;}function a62_0x6b4c(){const _0x41ea0e=['Content\x20contains\x20no\x20SQL\x20statements','1330896bdZoEt','map','381500DNYuiA','1126646vgaHEV','485926pEkQXm','6Wznnnp','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','filter','utf-8','trim','1056015umVHYi','\x27\x20not\x20found','code','length','14574483Mzdqlv','Error\x20reading\x20file\x20\x27','270hDjXzb','File\x20\x27','21384yPAGiI','EACCES','replace','\x27:\x20','push'];a62_0x6b4c=function(){return _0x41ea0e;};return a62_0x6b4c();}export function splitSqlStatements(_0x509891){const _0x2e8677=a62_0x3dae,_0x2e32e4=stripSqlComments(_0x509891);if(!_0x2e32e4)throw new Error(_0x2e8677(0xcd));const _0x18b104=[];let _0x5d71c4='',_0x227a80=![],_0x1b23bd=![],_0x5d951d=![];for(let _0x7dfb0d=0x0;_0x7dfb0d<_0x509891[_0x2e8677(0xdc)];_0x7dfb0d++){const _0x29d0d1=_0x509891[_0x7dfb0d];if(_0x29d0d1==='\x27'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x1b23bd&&!_0x5d951d)_0x227a80=!_0x227a80;else{if(_0x29d0d1==='\x22'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x5d951d)_0x1b23bd=!_0x1b23bd;else _0x29d0d1==='`'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x1b23bd&&(_0x5d951d=!_0x5d951d);}if(_0x29d0d1===';'&&!_0x227a80&&!_0x1b23bd&&!_0x5d951d){const _0x199568=_0x5d71c4[_0x2e8677(0xd8)]();_0x199568&&_0x18b104[_0x2e8677(0xcc)](_0x199568),_0x5d71c4='';}else _0x5d71c4+=_0x29d0d1;}const _0x434ae4=_0x5d71c4['trim']();_0x434ae4&&_0x18b104[_0x2e8677(0xcc)](_0x434ae4);const _0x2e79a9=_0x18b104[_0x2e8677(0xcf)](_0x5b9ff1=>_0x5b9ff1[_0x2e8677(0xd8)]())[_0x2e8677(0xd6)](_0x109912=>{const _0x3dc3d9=stripSqlComments(_0x109912);return _0x3dc3d9['length']>0x0;});if(_0x2e79a9[_0x2e8677(0xdc)]===0x0)throw new Error(_0x2e8677(0xcd));return _0x2e79a9;}export function readFileContent(_0x359c9d){const _0x5728c0=a62_0x3dae;try{return readFileSync(_0x359c9d,_0x5728c0(0xd7));}catch(_0x23c791){const _0x3bce94=_0x23c791[_0x5728c0(0xdb)];if(_0x3bce94===_0x5728c0(0xd4))throw new Error(_0x5728c0(0xe0)+_0x359c9d+_0x5728c0(0xda));else{if(_0x3bce94===_0x5728c0(0xc9))throw new Error(_0x5728c0(0xd5)+_0x359c9d+'\x27');else throw new Error(_0x5728c0(0xde)+_0x359c9d+_0x5728c0(0xcb)+_0x23c791['message']);}}}export function readSqlStatementsFromFile(_0xc38489){const _0x4ff0e9=a62_0x3dae,_0x411f3=readFileContent(_0xc38489);try{return splitSqlStatements(_0x411f3);}catch(_0x4824da){throw new Error(_0x4ff0e9(0xe0)+_0xc38489+'\x27\x20'+_0x4824da['message']['toLowerCase']());}}
@@ -1 +1 @@
1
- (function(_0x116566,_0x45900b){const _0x1533e2=a61_0x1b4c,_0x430dd8=_0x116566();while(!![]){try{const _0x5db1eb=parseInt(_0x1533e2(0x125))/0x1+parseInt(_0x1533e2(0x12e))/0x2*(-parseInt(_0x1533e2(0x134))/0x3)+-parseInt(_0x1533e2(0x127))/0x4+parseInt(_0x1533e2(0x122))/0x5+parseInt(_0x1533e2(0x12c))/0x6+parseInt(_0x1533e2(0x12b))/0x7*(parseInt(_0x1533e2(0x11d))/0x8)+-parseInt(_0x1533e2(0x128))/0x9*(parseInt(_0x1533e2(0x129))/0xa);if(_0x5db1eb===_0x45900b)break;else _0x430dd8['push'](_0x430dd8['shift']());}catch(_0x5bb23){_0x430dd8['push'](_0x430dd8['shift']());}}}(a61_0x1d79,0x196d5));export async function*parseSSEStream(_0x5d12d2){const _0x5bd227=a61_0x1b4c;if(!_0x5d12d2[_0x5bd227(0x12d)])throw new Error(_0x5bd227(0x132));const _0x343309=_0x5d12d2[_0x5bd227(0x12d)][_0x5bd227(0x130)](),_0x32a8bf=new TextDecoder();let _0x5957bb='',_0x25f8e7={};try{while(!![]){const {done:_0x3ed859,value:_0xac373a}=await _0x343309[_0x5bd227(0x120)]();if(_0x3ed859){_0x25f8e7[_0x5bd227(0x123)]&&(yield parseSSEData(_0x25f8e7[_0x5bd227(0x123)]));break;}_0x5957bb+=_0x32a8bf[_0x5bd227(0x124)](_0xac373a,{'stream':!![]});const _0x55cee4=_0x5957bb[_0x5bd227(0x121)]('\x0a');_0x5957bb=_0x55cee4[_0x5bd227(0x11c)]()||'';for(const _0x129bd9 of _0x55cee4){if(_0x129bd9[_0x5bd227(0x131)]()===''){_0x25f8e7['data']&&(yield parseSSEData(_0x25f8e7[_0x5bd227(0x123)]),_0x25f8e7={});continue;}if(_0x129bd9['startsWith'](':'))continue;const _0x41970c=_0x129bd9[_0x5bd227(0x11f)](':');if(_0x41970c===-0x1)continue;const _0x58ee06=_0x129bd9[_0x5bd227(0x11e)](0x0,_0x41970c);let _0x24e99d=_0x129bd9[_0x5bd227(0x11e)](_0x41970c+0x1);_0x24e99d['startsWith']('\x20')&&(_0x24e99d=_0x24e99d[_0x5bd227(0x11e)](0x1));switch(_0x58ee06){case _0x5bd227(0x12a):_0x25f8e7['event']=_0x24e99d;break;case'data':_0x25f8e7[_0x5bd227(0x123)]=_0x25f8e7[_0x5bd227(0x123)]?_0x25f8e7['data']+'\x0a'+_0x24e99d:_0x24e99d;break;case'id':_0x25f8e7['id']=_0x24e99d;break;}}}}finally{_0x343309[_0x5bd227(0x133)]();}}function a61_0x1b4c(_0x9231c3,_0x2e13bb){const _0x1d798c=a61_0x1d79();return a61_0x1b4c=function(_0x1b4ccb,_0x1f49e4){_0x1b4ccb=_0x1b4ccb-0x11c;let _0x530c30=_0x1d798c[_0x1b4ccb];return _0x530c30;},a61_0x1b4c(_0x9231c3,_0x2e13bb);}function parseSSEData(_0x3b8e76){const _0x4f3e41=a61_0x1b4c;try{return JSON[_0x4f3e41(0x12f)](_0x3b8e76);}catch(_0x360c78){throw new Error(_0x4f3e41(0x126)+_0x3b8e76,{'cause':_0x360c78});}}function a61_0x1d79(){const _0x18cd6c=['339888KACFes','slice','indexOf','read','split','1012565stSDVL','data','decode','40940UreEmV','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','366128LgmMIh','483282EOVVQc','60utVKHe','event','28jPuPac','764370fdbEkU','body','2gLyvKr','parse','getReader','trim','Response\x20body\x20is\x20null','releaseLock','68769oKbrMV','pop'];a61_0x1d79=function(){return _0x18cd6c;};return a61_0x1d79();}
1
+ function a63_0x41ff(){const _0x41c717=['814737GHoBPj','trim','Response\x20body\x20is\x20null','releaseLock','data','event','2345136nCzMiO','51650EVeyYo','decode','12OmgWzu','78572bCmqif','slice','5662300YRUUcu','997650LbBsNa','split','1509RKQPJe','startsWith','body','pop','524lMVtmY','40AWJPUE','read','parse'];a63_0x41ff=function(){return _0x41c717;};return a63_0x41ff();}(function(_0x4c44e6,_0x52c48d){const _0x35125a=a63_0x3b51,_0x20c835=_0x4c44e6();while(!![]){try{const _0x4f71b1=parseInt(_0x35125a(0x119))/0x1+parseInt(_0x35125a(0x125))/0x2*(-parseInt(_0x35125a(0x121))/0x3)+-parseInt(_0x35125a(0x11c))/0x4*(parseInt(_0x35125a(0x126))/0x5)+-parseInt(_0x35125a(0x11b))/0x6*(-parseInt(_0x35125a(0x129))/0x7)+-parseInt(_0x35125a(0x118))/0x8+-parseInt(_0x35125a(0x11f))/0x9+parseInt(_0x35125a(0x11e))/0xa;if(_0x4f71b1===_0x52c48d)break;else _0x20c835['push'](_0x20c835['shift']());}catch(_0x4b61d8){_0x20c835['push'](_0x20c835['shift']());}}}(a63_0x41ff,0x2682c));export async function*parseSSEStream(_0x35a735){const _0x3e755f=a63_0x3b51;if(!_0x35a735['body'])throw new Error(_0x3e755f(0x12b));const _0x2550df=_0x35a735[_0x3e755f(0x123)]['getReader'](),_0x23b05a=new TextDecoder();let _0x2d3e66='',_0xe288da={};try{while(!![]){const {done:_0x16246e,value:_0x4a7280}=await _0x2550df[_0x3e755f(0x127)]();if(_0x16246e){_0xe288da[_0x3e755f(0x12d)]&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]));break;}_0x2d3e66+=_0x23b05a[_0x3e755f(0x11a)](_0x4a7280,{'stream':!![]});const _0x5d0aef=_0x2d3e66[_0x3e755f(0x120)]('\x0a');_0x2d3e66=_0x5d0aef[_0x3e755f(0x124)]()||'';for(const _0x1c60ea of _0x5d0aef){if(_0x1c60ea[_0x3e755f(0x12a)]()===''){_0xe288da['data']&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]),_0xe288da={});continue;}if(_0x1c60ea[_0x3e755f(0x122)](':'))continue;const _0x5f3e1a=_0x1c60ea['indexOf'](':');if(_0x5f3e1a===-0x1)continue;const _0x1719b6=_0x1c60ea[_0x3e755f(0x11d)](0x0,_0x5f3e1a);let _0x48c392=_0x1c60ea[_0x3e755f(0x11d)](_0x5f3e1a+0x1);_0x48c392['startsWith']('\x20')&&(_0x48c392=_0x48c392[_0x3e755f(0x11d)](0x1));switch(_0x1719b6){case _0x3e755f(0x117):_0xe288da['event']=_0x48c392;break;case _0x3e755f(0x12d):_0xe288da['data']=_0xe288da[_0x3e755f(0x12d)]?_0xe288da[_0x3e755f(0x12d)]+'\x0a'+_0x48c392:_0x48c392;break;case'id':_0xe288da['id']=_0x48c392;break;}}}}finally{_0x2550df[_0x3e755f(0x12c)]();}}function a63_0x3b51(_0x5665d1,_0xc95071){const _0x41ffa5=a63_0x41ff();return a63_0x3b51=function(_0x3b51f1,_0x5e8735){_0x3b51f1=_0x3b51f1-0x117;let _0x4ad385=_0x41ffa5[_0x3b51f1];return _0x4ad385;},a63_0x3b51(_0x5665d1,_0xc95071);}function parseSSEData(_0x4b3ab7){const _0x833b43=a63_0x3b51;try{return JSON[_0x833b43(0x128)](_0x4b3ab7);}catch(_0x130dd5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4b3ab7,{'cause':_0x130dd5});}}
@@ -1 +1 @@
1
- function a62_0x58f5(){const _0x4839f1=['length','5758836HjpvlN','8838641wmbvem','964640xSqqCC','random','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','slice','test','30iccCUI','15104650fvXbGV','20WSGHTx','138324yQGeke','USER','USERNAME','replace','3EhFnCG','floor','env','trim','toString','repeat','padStart','substring','3560gLBffr','unknown','13905FWThaU','1133DcXezw','82024CWGDyz'];a62_0x58f5=function(){return _0x4839f1;};return a62_0x58f5();}(function(_0xe00dce,_0x40f216){const _0xccfa09=a62_0x3081,_0x549539=_0xe00dce();while(!![]){try{const _0x5a9848=-parseInt(_0xccfa09(0x6e))/0x1*(parseInt(_0xccfa09(0x79))/0x2)+parseInt(_0xccfa09(0x7e))/0x3*(-parseInt(_0xccfa09(0x70))/0x4)+-parseInt(_0xccfa09(0x72))/0x5*(-parseInt(_0xccfa09(0x77))/0x6)+-parseInt(_0xccfa09(0x71))/0x7+-parseInt(_0xccfa09(0x6a))/0x8*(-parseInt(_0xccfa09(0x6c))/0x9)+parseInt(_0xccfa09(0x78))/0xa+-parseInt(_0xccfa09(0x6d))/0xb*(-parseInt(_0xccfa09(0x7a))/0xc);if(_0x5a9848===_0x40f216)break;else _0x549539['push'](_0x549539['shift']());}catch(_0x4597f2){_0x549539['push'](_0x549539['shift']());}}}(a62_0x58f5,0xc9fa3));import a62_0x5dd38a from'string-width';function a62_0x3081(_0xb73807,_0x35db38){const _0x58f517=a62_0x58f5();return a62_0x3081=function(_0x3081d5,_0x31d076){_0x3081d5=_0x3081d5-0x69;let _0x87eaee=_0x58f517[_0x3081d5];return _0x87eaee;},a62_0x3081(_0xb73807,_0x35db38);}export function stringWidth(_0x4f9c7c){return a62_0x5dd38a(_0x4f9c7c);}export function padEnd(_0x3316b0,_0x308db7){const _0x365b16=a62_0x3081,_0x47c0e9=stringWidth(_0x3316b0);if(_0x47c0e9>=_0x308db7)return _0x3316b0;return _0x3316b0+'\x20'[_0x365b16(0x83)](_0x308db7-_0x47c0e9);}export function padStart(_0x2bf237,_0x23d473){const _0x19bc52=stringWidth(_0x2bf237);if(_0x19bc52>=_0x23d473)return _0x2bf237;return'\x20'['repeat'](_0x23d473-_0x19bc52)+_0x2bf237;}export function centerAlign(_0xcb6e70,_0x1f71c1){const _0x537188=a62_0x3081,_0x3092f1=stringWidth(_0xcb6e70);if(_0x3092f1>_0x1f71c1){if(_0x1f71c1<=0x1)return'…'[_0x537188(0x69)](0x0,_0x1f71c1);let _0x280f03=_0xcb6e70;while(stringWidth(_0x280f03+'…')>_0x1f71c1){_0x280f03=_0x280f03[_0x537188(0x75)](0x0,-0x1);}return _0x280f03+'…';}if(_0x3092f1===_0x1f71c1)return _0xcb6e70;const _0x27d9ee=_0x1f71c1-_0x3092f1,_0x53cc4d=Math[_0x537188(0x7f)](_0x27d9ee/0x2),_0x4ed1a2=_0x27d9ee-_0x53cc4d;return'\x20'[_0x537188(0x83)](_0x53cc4d)+_0xcb6e70+'\x20'[_0x537188(0x83)](_0x4ed1a2);}export function escapeStringLiteral(_0x49f6ef){const _0x47e125=a62_0x3081;if(!_0x49f6ef||_0x49f6ef[_0x47e125(0x81)]()[_0x47e125(0x6f)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x5359cf=_0x49f6ef['replace'](/'/g,'\x27\x27');return'\x27'+_0x5359cf+'\x27';}export function globToLike(_0x5d9600){const _0x579cc7=a62_0x3081;let _0x56baf5=_0x5d9600['replace'](/\\/g,'\x5c\x5c')[_0x579cc7(0x7d)](/%/g,'\x5c%')[_0x579cc7(0x7d)](/_/g,'\x5c_');return _0x56baf5=_0x56baf5[_0x579cc7(0x7d)](/\*/g,'%')[_0x579cc7(0x7d)](/\?/g,'_'),_0x56baf5;}export function buildLikePattern(_0x3699ef){const _0x445ddd=a62_0x3081;if(!_0x3699ef||_0x3699ef[_0x445ddd(0x81)]()[_0x445ddd(0x6f)]===0x0)throw new Error(_0x445ddd(0x74));const _0x124598=globToLike(_0x3699ef),_0x1d7266=_0x124598[_0x445ddd(0x7d)](/'/g,'\x27\x27');return'\x27'+_0x1d7266+'\x27';}export function matchGlobPattern(_0x2e50d1,_0x468466){const _0x12b481=a62_0x3081,_0x202290=_0x468466[_0x12b481(0x7d)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x12b481(0x7d)](/\*/g,'.*')[_0x12b481(0x7d)](/\?/g,'.'),_0x13d2c1=new RegExp('^'+_0x202290+'$');return _0x13d2c1[_0x12b481(0x76)](_0x2e50d1);}export function getSanitizedUsername(){const _0x66a7ae=a62_0x3081,_0x38c447=process[_0x66a7ae(0x80)][_0x66a7ae(0x7b)]||process['env'][_0x66a7ae(0x7c)]||_0x66a7ae(0x6b);return _0x38c447[_0x66a7ae(0x7d)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x2f859d=a62_0x3081,_0x4b7060=Math['floor'](Math[_0x2f859d(0x73)]()*0xfffff);return _0x4b7060[_0x2f859d(0x82)](0x10)[_0x2f859d(0x84)](0x5,'0');}
1
+ (function(_0x12e14e,_0x491923){const _0x50beed=a64_0x45d6,_0x1fa30c=_0x12e14e();while(!![]){try{const _0x31be64=parseInt(_0x50beed(0xe9))/0x1*(-parseInt(_0x50beed(0xf6))/0x2)+parseInt(_0x50beed(0xec))/0x3+parseInt(_0x50beed(0xf4))/0x4+-parseInt(_0x50beed(0xe5))/0x5+parseInt(_0x50beed(0xf0))/0x6*(parseInt(_0x50beed(0xe3))/0x7)+-parseInt(_0x50beed(0xe8))/0x8*(-parseInt(_0x50beed(0xf7))/0x9)+-parseInt(_0x50beed(0xf1))/0xa;if(_0x31be64===_0x491923)break;else _0x1fa30c['push'](_0x1fa30c['shift']());}catch(_0x48e592){_0x1fa30c['push'](_0x1fa30c['shift']());}}}(a64_0x7fe1,0x6bbcb));import a64_0x29fce1 from'string-width';export function stringWidth(_0xc75a94){return a64_0x29fce1(_0xc75a94);}export function padEnd(_0x8995c,_0x40b663){const _0x1edd8e=a64_0x45d6,_0x3f90d7=stringWidth(_0x8995c);if(_0x3f90d7>=_0x40b663)return _0x8995c;return _0x8995c+'\x20'[_0x1edd8e(0xeb)](_0x40b663-_0x3f90d7);}export function padStart(_0x7cf8e6,_0x521608){const _0x429a30=a64_0x45d6,_0x459256=stringWidth(_0x7cf8e6);if(_0x459256>=_0x521608)return _0x7cf8e6;return'\x20'[_0x429a30(0xeb)](_0x521608-_0x459256)+_0x7cf8e6;}export function centerAlign(_0xf5783b,_0x257bdc){const _0x539f15=a64_0x45d6,_0x5a8824=stringWidth(_0xf5783b);if(_0x5a8824>_0x257bdc){if(_0x257bdc<=0x1)return'…'[_0x539f15(0xe7)](0x0,_0x257bdc);let _0x3c6e29=_0xf5783b;while(stringWidth(_0x3c6e29+'…')>_0x257bdc){_0x3c6e29=_0x3c6e29[_0x539f15(0xed)](0x0,-0x1);}return _0x3c6e29+'…';}if(_0x5a8824===_0x257bdc)return _0xf5783b;const _0x258cba=_0x257bdc-_0x5a8824,_0xdc2970=Math[_0x539f15(0xf5)](_0x258cba/0x2),_0x3125d9=_0x258cba-_0xdc2970;return'\x20'[_0x539f15(0xeb)](_0xdc2970)+_0xf5783b+'\x20'[_0x539f15(0xeb)](_0x3125d9);}export function escapeStringLiteral(_0xbe962c){const _0x3a2013=a64_0x45d6;if(!_0xbe962c||_0xbe962c[_0x3a2013(0xf2)]()[_0x3a2013(0xe6)]===0x0)throw new Error(_0x3a2013(0xea));const _0x216fe4=_0xbe962c['replace'](/'/g,'\x27\x27');return'\x27'+_0x216fe4+'\x27';}export function globToLike(_0x6bc07f){const _0xf101cd=a64_0x45d6;let _0x1a2f74=_0x6bc07f[_0xf101cd(0xef)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0xf101cd(0xef)](/_/g,'\x5c_');return _0x1a2f74=_0x1a2f74['replace'](/\*/g,'%')[_0xf101cd(0xef)](/\?/g,'_'),_0x1a2f74;}function a64_0x45d6(_0x23113c,_0x2423ab){const _0x7fe1a3=a64_0x7fe1();return a64_0x45d6=function(_0x45d6ba,_0x1c4991){_0x45d6ba=_0x45d6ba-0xe2;let _0x35a38c=_0x7fe1a3[_0x45d6ba];return _0x35a38c;},a64_0x45d6(_0x23113c,_0x2423ab);}export function buildLikePattern(_0x392da0){const _0x5243c2=a64_0x45d6;if(!_0x392da0||_0x392da0[_0x5243c2(0xf2)]()[_0x5243c2(0xe6)]===0x0)throw new Error(_0x5243c2(0xf9));const _0xba0ec8=globToLike(_0x392da0),_0x1cc0af=_0xba0ec8[_0x5243c2(0xef)](/'/g,'\x27\x27');return'\x27'+_0x1cc0af+'\x27';}function a64_0x7fe1(){const _0x9f092c=['3269zfTlIG','unknown','1855515BkcYmY','length','substring','14480NNkEPq','1pnFnGE','Cannot\x20escape\x20empty\x20string\x20literal','repeat','801870SqaKzl','slice','USER','replace','1050UbppUZ','2645590FcnEoV','trim','toLowerCase','2382112UQnQWr','floor','173200yQNAVU','1089NDUjHa','toString','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&','env','random'];a64_0x7fe1=function(){return _0x9f092c;};return a64_0x7fe1();}export function matchGlobPattern(_0x12fc7f,_0x47aefa){const _0x88265e=a64_0x45d6,_0x9d6619=_0x47aefa['replace'](/[.+^${}()|[\]\\]/g,_0x88265e(0xfa))[_0x88265e(0xef)](/\*/g,'.*')[_0x88265e(0xef)](/\?/g,'.'),_0x4c7738=new RegExp('^'+_0x9d6619+'$');return _0x4c7738['test'](_0x12fc7f);}export function getSanitizedUsername(){const _0x47f6e7=a64_0x45d6,_0x2f6e61=process[_0x47f6e7(0xfb)][_0x47f6e7(0xee)]||process[_0x47f6e7(0xfb)]['USERNAME']||_0x47f6e7(0xe4);return _0x2f6e61['replace'](/[^a-zA-Z0-9]/g,'')[_0x47f6e7(0xf3)]();}export function generateRandomHex(){const _0x1441ec=a64_0x45d6,_0x59885f=Math[_0x1441ec(0xf5)](Math[_0x1441ec(0xe2)]()*0xfffff);return _0x59885f[_0x1441ec(0xf8)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x2bb32d,_0x1a6e9c){const _0x5f6043=a63_0x5684,_0x3d9c64=_0x2bb32d();while(!![]){try{const _0x4e8d9e=-parseInt(_0x5f6043(0x1d7))/0x1*(-parseInt(_0x5f6043(0x1c4))/0x2)+parseInt(_0x5f6043(0x1cc))/0x3*(-parseInt(_0x5f6043(0x1cd))/0x4)+parseInt(_0x5f6043(0x1d0))/0x5+-parseInt(_0x5f6043(0x1c3))/0x6*(-parseInt(_0x5f6043(0x1bf))/0x7)+-parseInt(_0x5f6043(0x1c7))/0x8*(parseInt(_0x5f6043(0x1d8))/0x9)+-parseInt(_0x5f6043(0x1c5))/0xa+-parseInt(_0x5f6043(0x1d2))/0xb*(parseInt(_0x5f6043(0x1d4))/0xc);if(_0x4e8d9e===_0x1a6e9c)break;else _0x3d9c64['push'](_0x3d9c64['shift']());}catch(_0x290f4d){_0x3d9c64['push'](_0x3d9c64['shift']());}}}(a63_0x3337,0x383bf));function hasWildcard(_0x310981){const _0x2b8aec=a63_0x5684;return _0x310981['includes']('*')||_0x310981[_0x2b8aec(0x1cb)]('?');}export function parseTableReference(_0x427f01){const _0x162d66=a63_0x5684;if(!_0x427f01||_0x427f01[_0x162d66(0x1c6)]()['length']===0x0)throw new Error(_0x162d66(0x1ca));const _0x143d37=_0x427f01[_0x162d66(0x1c6)](),_0x418f9a={'original':_0x143d37},_0x3eb92e=_0x143d37[_0x162d66(0x1be)]('.');if(_0x3eb92e[_0x162d66(0x1ce)]===0x1){const _0x5f1b86=_0x3eb92e[0x0];if(!_0x5f1b86)throw new Error(_0x162d66(0x1d3));_0x418f9a[_0x162d66(0x1d9)]=_0x5f1b86;}else{if(_0x3eb92e['length']===0x2){const [_0x349398,_0x247e8c]=_0x3eb92e;if(!_0x349398)throw new Error(_0x162d66(0x1d6));if(!_0x247e8c)throw new Error(_0x162d66(0x1bd));_0x418f9a['database']=_0x349398,_0x418f9a[_0x162d66(0x1d9)]=_0x247e8c;}else{if(_0x3eb92e[_0x162d66(0x1ce)]===0x3){const [_0x34c956,_0x414fc8,_0x1be71f]=_0x3eb92e;if(!_0x34c956||!_0x414fc8||!_0x1be71f)throw new Error(_0x162d66(0x1d5));_0x418f9a[_0x162d66(0x1cf)]=_0x34c956,_0x418f9a['database']=_0x414fc8,_0x418f9a[_0x162d66(0x1d9)]=_0x1be71f;}else throw new Error(_0x162d66(0x1c9));}}return _0x418f9a;}function a63_0x3337(){const _0x3ce552=['2687230QtviMk','trim','185176ZRiaax','push','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','includes','540693WcBOYJ','4fBweir','length','catalog','1746975qfcBHD','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','999163xTsMmV','Pattern\x20cannot\x20be\x20just\x20a\x20dot','12bwPwPl','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','43399wjtJhZ','9bBaIjs','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','split','14ePkzLf','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database','join','1071228mOfKcb','4NehGmP'];a63_0x3337=function(){return _0x3ce552;};return a63_0x3337();}export function formatTableReference(_0x5f3f1f){const _0x27c88d=a63_0x5684,_0x15e4df=[];return _0x5f3f1f[_0x27c88d(0x1cf)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f[_0x27c88d(0x1cf)]),_0x5f3f1f[_0x27c88d(0x1c1)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f[_0x27c88d(0x1c1)]),_0x5f3f1f[_0x27c88d(0x1d9)]&&_0x15e4df[_0x27c88d(0x1c8)](_0x5f3f1f['table']),_0x15e4df[_0x27c88d(0x1c2)]('.');}export function validateTableListReference(_0x33a527){return undefined;}function a63_0x5684(_0x46c249,_0x1e781f){const _0x3337af=a63_0x3337();return a63_0x5684=function(_0x568452,_0x36be30){_0x568452=_0x568452-0x1bd;let _0x4dc655=_0x3337af[_0x568452];return _0x4dc655;},a63_0x5684(_0x46c249,_0x1e781f);}export function validateTableDescribeReference(_0x3ec56a){const _0x2072bf=a63_0x5684;if(!_0x3ec56a['table'])return _0x2072bf(0x1c0);if(_0x3ec56a[_0x2072bf(0x1c1)]&&hasWildcard(_0x3ec56a[_0x2072bf(0x1c1)]))return _0x2072bf(0x1d1);if(hasWildcard(_0x3ec56a[_0x2072bf(0x1d9)]))return _0x2072bf(0x1da);return undefined;}
1
+ (function(_0x718f2e,_0x55812d){const _0x2ec364=a65_0x3688,_0x1d25fe=_0x718f2e();while(!![]){try{const _0x294ce2=parseInt(_0x2ec364(0xdc))/0x1+parseInt(_0x2ec364(0xf1))/0x2+-parseInt(_0x2ec364(0xea))/0x3*(-parseInt(_0x2ec364(0xe7))/0x4)+parseInt(_0x2ec364(0xdb))/0x5*(-parseInt(_0x2ec364(0xe9))/0x6)+parseInt(_0x2ec364(0xde))/0x7*(parseInt(_0x2ec364(0xe0))/0x8)+-parseInt(_0x2ec364(0xe8))/0x9*(-parseInt(_0x2ec364(0xef))/0xa)+parseInt(_0x2ec364(0xe6))/0xb*(-parseInt(_0x2ec364(0xd9))/0xc);if(_0x294ce2===_0x55812d)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x563f83){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a65_0x14ee,0xa819f));function hasWildcard(_0x4998dd){const _0x2fe276=a65_0x3688;return _0x4998dd['includes']('*')||_0x4998dd[_0x2fe276(0xeb)]('?');}export function parseTableReference(_0x1f49f1){const _0x90239c=a65_0x3688;if(!_0x1f49f1||_0x1f49f1['trim']()[_0x90239c(0xf4)]===0x0)throw new Error(_0x90239c(0xf3));const _0x407f25=_0x1f49f1[_0x90239c(0xe5)](),_0x31b174={'original':_0x407f25},_0x457ef7=_0x407f25['split']('.');if(_0x457ef7[_0x90239c(0xf4)]===0x1){const _0x49e94c=_0x457ef7[0x0];if(!_0x49e94c)throw new Error(_0x90239c(0xe3));_0x31b174[_0x90239c(0xe2)]=_0x49e94c;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x2){const [_0x3df38d,_0x8de70b]=_0x457ef7;if(!_0x3df38d)throw new Error(_0x90239c(0xdf));if(!_0x8de70b)throw new Error(_0x90239c(0xe4));_0x31b174[_0x90239c(0xec)]=_0x3df38d,_0x31b174['table']=_0x8de70b;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x3){const [_0x2d29f4,_0x56dfbd,_0x961bb8]=_0x457ef7;if(!_0x2d29f4||!_0x56dfbd||!_0x961bb8)throw new Error(_0x90239c(0xf2));_0x31b174[_0x90239c(0xf0)]=_0x2d29f4,_0x31b174[_0x90239c(0xec)]=_0x56dfbd,_0x31b174[_0x90239c(0xe2)]=_0x961bb8;}else throw new Error(_0x90239c(0xe1));}}return _0x31b174;}function a65_0x14ee(){const _0x174759=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','24uYlNnV','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','1969aYrpGl','2596NSXuCA','520290BJjLnO','1332RckWme','6213hdecVx','includes','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','push','180hCLlcu','catalog','1870702UTTgFV','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','194316NvLCMB','join','15475mDxjZe','639371aFALEU','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','734531GyQCrk'];a65_0x14ee=function(){return _0x174759;};return a65_0x14ee();}function a65_0x3688(_0xc15304,_0x230ce7){const _0x14ee85=a65_0x14ee();return a65_0x3688=function(_0x3688fb,_0x50e550){_0x3688fb=_0x3688fb-0xd9;let _0x5bf910=_0x14ee85[_0x3688fb];return _0x5bf910;},a65_0x3688(_0xc15304,_0x230ce7);}export function formatTableReference(_0x56189f){const _0x5e055b=a65_0x3688,_0x30aad8=[];return _0x56189f[_0x5e055b(0xf0)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xf0)]),_0x56189f[_0x5e055b(0xec)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f['database']),_0x56189f['table']&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xe2)]),_0x30aad8[_0x5e055b(0xda)]('.');}export function validateTableListReference(_0x3a6255){return undefined;}export function validateTableDescribeReference(_0x14d490){const _0xbfb86c=a65_0x3688;if(!_0x14d490['table'])return _0xbfb86c(0xdd);if(_0x14d490[_0xbfb86c(0xec)]&&hasWildcard(_0x14d490[_0xbfb86c(0xec)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x14d490[_0xbfb86c(0xe2)]))return _0xbfb86c(0xed);return undefined;}
@@ -1 +1 @@
1
- const a64_0x2dd966=a64_0x36a0;(function(_0x234ea7,_0x34421f){const _0x11b9aa=a64_0x36a0,_0x41e5a8=_0x234ea7();while(!![]){try{const _0x426b76=parseInt(_0x11b9aa(0xb6))/0x1*(parseInt(_0x11b9aa(0xbd))/0x2)+parseInt(_0x11b9aa(0xbe))/0x3+-parseInt(_0x11b9aa(0xbf))/0x4+parseInt(_0x11b9aa(0xb4))/0x5*(-parseInt(_0x11b9aa(0xb9))/0x6)+parseInt(_0x11b9aa(0xb5))/0x7+parseInt(_0x11b9aa(0xba))/0x8*(parseInt(_0x11b9aa(0xbb))/0x9)+-parseInt(_0x11b9aa(0xbc))/0xa;if(_0x426b76===_0x34421f)break;else _0x41e5a8['push'](_0x41e5a8['shift']());}catch(_0x51a2c4){_0x41e5a8['push'](_0x41e5a8['shift']());}}}(a64_0x5a92,0x2d22f));function a64_0x36a0(_0x3163ec,_0x1a462d){const _0x5a92c8=a64_0x5a92();return a64_0x36a0=function(_0x36a099,_0xef6b00){_0x36a099=_0x36a099-0xb4;let _0x467779=_0x5a92c8[_0x36a099];return _0x467779;},a64_0x36a0(_0x3163ec,_0x1a462d);}export const WORKFLOW_FILE_EXTENSION=a64_0x2dd966(0xb8);function a64_0x5a92(){const _0x5253b7=['11680SzzvTP','492358OxPYrG','620313UKOxYw','166332uxNZEw','1559215xiTfEP','502733vqzpnE','1mgxWcm','startsWith','.dig','6rsGRiO','128StlfsT','8271RmyyWF'];a64_0x5a92=function(){return _0x5253b7;};return a64_0x5a92();}export function shouldIncludeInArchive(_0x1546ba){const _0x1bb389=a64_0x2dd966;if(_0x1546ba==='.digdag')return!![];if(_0x1546ba[_0x1bb389(0xb7)]('.'))return![];return!![];}
1
+ const a66_0x13b7ad=a66_0x143d;function a66_0x1f00(){const _0x527cf2=['3383394pNuSxu','9098376JqfUYE','19583775sbOSFV','6493040IcOgFd','.digdag','8QucgKd','6405203piOPRr','50443nTjCqF','.dig','startsWith','5AbVCKr','4878556AHdUCX'];a66_0x1f00=function(){return _0x527cf2;};return a66_0x1f00();}(function(_0x5385d5,_0x1c160b){const _0x35e0b6=a66_0x143d,_0x457fb0=_0x5385d5();while(!![]){try{const _0x372095=-parseInt(_0x35e0b6(0x1c8))/0x1*(parseInt(_0x35e0b6(0x1c6))/0x2)+parseInt(_0x35e0b6(0x1c1))/0x3+parseInt(_0x35e0b6(0x1c0))/0x4*(-parseInt(_0x35e0b6(0x1cb))/0x5)+parseInt(_0x35e0b6(0x1c2))/0x6+parseInt(_0x35e0b6(0x1c7))/0x7+parseInt(_0x35e0b6(0x1c4))/0x8+-parseInt(_0x35e0b6(0x1c3))/0x9;if(_0x372095===_0x1c160b)break;else _0x457fb0['push'](_0x457fb0['shift']());}catch(_0x20e176){_0x457fb0['push'](_0x457fb0['shift']());}}}(a66_0x1f00,0xbcd5b));export const WORKFLOW_FILE_EXTENSION=a66_0x13b7ad(0x1c9);function a66_0x143d(_0x59547d,_0x1da59d){const _0x1f00e0=a66_0x1f00();return a66_0x143d=function(_0x143d9c,_0x1894f3){_0x143d9c=_0x143d9c-0x1c0;let _0x4fa255=_0x1f00e0[_0x143d9c];return _0x4fa255;},a66_0x143d(_0x59547d,_0x1da59d);}export function shouldIncludeInArchive(_0x4f35a1){const _0x2ffc83=a66_0x13b7ad;if(_0x4f35a1===_0x2ffc83(0x1c5))return!![];if(_0x4f35a1[_0x2ffc83(0x1ca)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
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": {