@treasuredata/tdx 0.3.4 → 0.4.0

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 (120) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/http-client.d.ts +4 -0
  6. package/dist/client/http-client.d.ts.map +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/http-client.js.map +1 -1
  9. package/dist/client/llm-api-client.js +1 -1
  10. package/dist/client/rate-limiter.js +1 -1
  11. package/dist/client/td-api-client.js +1 -1
  12. package/dist/client/trino-api-client.js +1 -1
  13. package/dist/client/workflow-client.d.ts +17 -1
  14. package/dist/client/workflow-client.d.ts.map +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/client/workflow-client.js.map +1 -1
  17. package/dist/commands/activations.js +1 -1
  18. package/dist/commands/api-command.js +1 -1
  19. package/dist/commands/auth-command.d.ts +9 -0
  20. package/dist/commands/auth-command.d.ts.map +1 -1
  21. package/dist/commands/auth-command.js +1 -1
  22. package/dist/commands/auth-command.js.map +1 -1
  23. package/dist/commands/chat-command.js +1 -1
  24. package/dist/commands/claude-command.js +1 -1
  25. package/dist/commands/command.d.ts +5 -0
  26. package/dist/commands/command.d.ts.map +1 -1
  27. package/dist/commands/command.js +1 -1
  28. package/dist/commands/command.js.map +1 -1
  29. package/dist/commands/context-command.js +1 -1
  30. package/dist/commands/databases.js +1 -1
  31. package/dist/commands/describe.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/llm-proxy.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pwd-command.js +1 -1
  42. package/dist/commands/segment-update-command.js +1 -1
  43. package/dist/commands/segment-use-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/tables.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/workflow-command.d.ts +9 -1
  49. package/dist/commands/workflow-command.d.ts.map +1 -1
  50. package/dist/commands/workflow-command.js +1 -1
  51. package/dist/commands/workflow-command.js.map +1 -1
  52. package/dist/core/auth.js +1 -1
  53. package/dist/core/config.d.ts +25 -0
  54. package/dist/core/config.d.ts.map +1 -1
  55. package/dist/core/config.js +1 -1
  56. package/dist/core/config.js.map +1 -1
  57. package/dist/core/credential-cache.d.ts +35 -0
  58. package/dist/core/credential-cache.d.ts.map +1 -0
  59. package/dist/core/credential-cache.js +1 -0
  60. package/dist/core/credential-cache.js.map +1 -0
  61. package/dist/core/global-context.d.ts +19 -0
  62. package/dist/core/global-context.d.ts.map +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/global-context.js.map +1 -1
  65. package/dist/core/keychain.d.ts +38 -0
  66. package/dist/core/keychain.d.ts.map +1 -0
  67. package/dist/core/keychain.js +1 -0
  68. package/dist/core/keychain.js.map +1 -0
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/project-config.js +1 -1
  71. package/dist/core/session.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/proxy/anthropic-adapter.js +1 -1
  74. package/dist/proxy/server.js +1 -1
  75. package/dist/proxy/session-cache.js +1 -1
  76. package/dist/sdk/api.js +1 -1
  77. package/dist/sdk/errors.js +1 -1
  78. package/dist/sdk/index.js +1 -1
  79. package/dist/sdk/job.js +1 -1
  80. package/dist/sdk/llm.js +1 -1
  81. package/dist/sdk/query.js +1 -1
  82. package/dist/sdk/segment.js +1 -1
  83. package/dist/sdk/workflow.d.ts +52 -16
  84. package/dist/sdk/workflow.d.ts.map +1 -1
  85. package/dist/sdk/workflow.js +1 -1
  86. package/dist/sdk/workflow.js.map +1 -1
  87. package/dist/types/endpoints.js +1 -1
  88. package/dist/types/index.d.ts +1 -1
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/index.js +1 -1
  91. package/dist/types/workflow.d.ts +49 -0
  92. package/dist/types/workflow.d.ts.map +1 -1
  93. package/dist/utils/agent-ref-parser.js +1 -1
  94. package/dist/utils/chat-cache.js +1 -1
  95. package/dist/utils/colors.js +1 -1
  96. package/dist/utils/command-output.d.ts.map +1 -1
  97. package/dist/utils/command-output.js +1 -1
  98. package/dist/utils/command-output.js.map +1 -1
  99. package/dist/utils/constants.js +1 -1
  100. package/dist/utils/file-permissions.js +1 -1
  101. package/dist/utils/format-detector.js +1 -1
  102. package/dist/utils/formatters.js +1 -1
  103. package/dist/utils/json-loader.js +1 -1
  104. package/dist/utils/model-aliases.js +1 -1
  105. package/dist/utils/option-validation.js +1 -1
  106. package/dist/utils/port.js +1 -1
  107. package/dist/utils/process.js +1 -1
  108. package/dist/utils/prompt.js +1 -1
  109. package/dist/utils/segment-path-parser.js +1 -1
  110. package/dist/utils/segment-ref-parser.js +1 -1
  111. package/dist/utils/spinner.js +1 -1
  112. package/dist/utils/sql-parser.js +1 -1
  113. package/dist/utils/sse-parser.js +1 -1
  114. package/dist/utils/string-utils.js +1 -1
  115. package/dist/utils/table-ref-parser.js +1 -1
  116. package/dist/utils/tdx-logger.js +1 -1
  117. package/dist/utils/tree-formatter.js +1 -1
  118. package/dist/utils/version-check.js +1 -1
  119. package/dist/utils/workflow-utils.js +1 -1
  120. package/package.json +3 -1
@@ -1 +1 @@
1
- (function(_0x5749bd,_0x2a431e){const _0x154f96=a75_0xd4d9,_0x2880e5=_0x5749bd();while(!![]){try{const _0x216aac=-parseInt(_0x154f96(0x160))/0x1+-parseInt(_0x154f96(0x168))/0x2+parseInt(_0x154f96(0x167))/0x3*(parseInt(_0x154f96(0x171))/0x4)+-parseInt(_0x154f96(0x15d))/0x5*(-parseInt(_0x154f96(0x162))/0x6)+-parseInt(_0x154f96(0x179))/0x7*(-parseInt(_0x154f96(0x173))/0x8)+-parseInt(_0x154f96(0x16d))/0x9*(parseInt(_0x154f96(0x16e))/0xa)+parseInt(_0x154f96(0x177))/0xb;if(_0x216aac===_0x2a431e)break;else _0x2880e5['push'](_0x2880e5['shift']());}catch(_0x5e4992){_0x2880e5['push'](_0x2880e5['shift']());}}}(a75_0x5eb5,0xc7eff));export function parsePath(_0x26f1f5){const _0x53d4d7=a75_0xd4d9;if(!_0x26f1f5||_0x26f1f5[_0x53d4d7(0x166)]()==='')throw new Error(_0x53d4d7(0x161));const _0x40f9a2=_0x26f1f5[_0x53d4d7(0x166)]();if(_0x40f9a2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x26f1f5};const _0x3a7730=_0x40f9a2[_0x53d4d7(0x174)]('/')?_0x40f9a2['substring'](0x1):_0x40f9a2,_0x2378ea=_0x3a7730[_0x53d4d7(0x175)]('/')[_0x53d4d7(0x172)](_0x29d26d=>_0x29d26d!=='');if(_0x2378ea['length']===0x0)throw new Error(_0x53d4d7(0x16f));const _0x5a157d=_0x40f9a2['startsWith']('/')||!isRelativePathSegment(_0x2378ea[0x0]);for(const _0x356c71 of _0x2378ea){validatePathSegment(_0x356c71);}return{'segments':_0x2378ea,'isAbsolute':_0x5a157d,'raw':_0x26f1f5};}function isRelativePathSegment(_0x4f38f3){return _0x4f38f3==='.'||_0x4f38f3==='..';}function validatePathSegment(_0x2c98ac){const _0x318c26=a75_0xd4d9;if(_0x2c98ac==='')throw new Error(_0x318c26(0x16a));if(_0x2c98ac==='.'||_0x2c98ac==='..')return;if(/[\x00-\x1F\x7F]/[_0x318c26(0x15c)](_0x2c98ac))throw new Error(_0x318c26(0x15e)+_0x2c98ac);if(_0x2c98ac!==_0x2c98ac[_0x318c26(0x166)]()){}}export function validatePath(_0x7fc9e){const _0x52e2fd=a75_0xd4d9;if(_0x7fc9e[_0x52e2fd(0x178)][_0x52e2fd(0x170)]===0x0&&!_0x7fc9e['isAbsolute'])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x7fc9e['isAbsolute']){if(_0x7fc9e[_0x52e2fd(0x178)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x4daad0=0x0;for(const _0xdf66 of _0x7fc9e[_0x52e2fd(0x178)]){if(_0xdf66==='..'){if(_0x4daad0===0x0)throw new Error(_0x52e2fd(0x163));_0x4daad0--;}else _0xdf66!=='.'&&_0x4daad0++;}}}export function joinPaths(_0x50cfea,_0xa712c0){const _0x5ecaa0=a75_0xd4d9;if(!_0x50cfea||_0x50cfea==='/')return _0xa712c0;if(!_0xa712c0||_0xa712c0==='.')return _0x50cfea;if(_0xa712c0['startsWith']('/'))return _0xa712c0;const _0x3ca3fb=parsePath(_0x50cfea),_0x32680d=parsePath(_0xa712c0),_0xa16c5c=[..._0x3ca3fb[_0x5ecaa0(0x178)]];for(const _0x45e7f8 of _0x32680d[_0x5ecaa0(0x178)]){if(_0x45e7f8==='.')continue;else{if(_0x45e7f8==='..'){if(_0xa16c5c['length']===0x0)throw new Error(_0x5ecaa0(0x164));_0xa16c5c[_0x5ecaa0(0x169)]();}else _0xa16c5c[_0x5ecaa0(0x16c)](_0x45e7f8);}}const _0x194b08=_0xa16c5c[_0x5ecaa0(0x165)]('/');return _0x3ca3fb[_0x5ecaa0(0x16b)][_0x5ecaa0(0x174)]('/')?'/'+_0x194b08:_0x194b08;}export function normalizePath(_0x3c7e0b){const _0x2c8925=a75_0xd4d9,_0x9524e7=parsePath(_0x3c7e0b),_0x1c01b3=[];for(const _0x249288 of _0x9524e7['segments']){if(_0x249288==='.')continue;else{if(_0x249288==='..'){if(_0x1c01b3[_0x2c8925(0x170)]===0x0){if(_0x9524e7[_0x2c8925(0x15b)])throw new Error(_0x2c8925(0x164));_0x1c01b3[_0x2c8925(0x16c)]('..');}else _0x1c01b3[_0x1c01b3['length']-0x1]==='..'?_0x1c01b3['push']('..'):_0x1c01b3[_0x2c8925(0x169)]();}else _0x1c01b3[_0x2c8925(0x16c)](_0x249288);}}if(_0x1c01b3['length']===0x0)return _0x9524e7[_0x2c8925(0x15b)]?'/':'.';const _0x30bf03=_0x1c01b3[_0x2c8925(0x165)]('/');return _0x9524e7['raw'][_0x2c8925(0x174)]('/')?'/'+_0x30bf03:_0x30bf03;}export function getParentPath(_0x204e98){const _0xd70122=a75_0xd4d9,_0x42c799=parsePath(_0x204e98);if(_0x42c799[_0xd70122(0x178)][_0xd70122(0x170)]<=0x1)return'/';const _0x2ad1cb=_0x42c799[_0xd70122(0x178)][_0xd70122(0x15f)](0x0,-0x1)[_0xd70122(0x165)]('/');return _0x42c799[_0xd70122(0x16b)]['startsWith']('/')?'/'+_0x2ad1cb:_0x2ad1cb;}function a75_0xd4d9(_0x48d194,_0x41220c){const _0x5eb568=a75_0x5eb5();return a75_0xd4d9=function(_0xd4d973,_0x2df6cb){_0xd4d973=_0xd4d973-0x15b;let _0x3430f3=_0x5eb568[_0xd4d973];return _0x3430f3;},a75_0xd4d9(_0x48d194,_0x41220c);}export function getBaseName(_0x22d904){const _0x81e436=a75_0xd4d9,_0x5b00cc=parsePath(_0x22d904);return _0x5b00cc[_0x81e436(0x178)][_0x5b00cc[_0x81e436(0x178)]['length']-0x1]||'';}export function isChildPath(_0x38a158,_0x1736d2){const _0x54292b=a75_0xd4d9,_0x527195=parsePath(_0x38a158),_0x33c4dd=parsePath(_0x1736d2);if(_0x527195[_0x54292b(0x178)][_0x54292b(0x170)]<=_0x33c4dd[_0x54292b(0x178)][_0x54292b(0x170)])return![];for(let _0x22b08d=0x0;_0x22b08d<_0x33c4dd['segments'][_0x54292b(0x170)];_0x22b08d++){if(_0x527195[_0x54292b(0x178)][_0x22b08d]!==_0x33c4dd['segments'][_0x22b08d])return![];}return!![];}function a75_0x5eb5(){const _0x195945=['startsWith','split','Cannot\x20split\x20empty\x20path','11411895XqEaqV','segments','7NfiyER','isAbsolute','test','5ECvWcD','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','slice','1254320aSdPjb','Path\x20cannot\x20be\x20empty','112830BcZYzM','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20navigate\x20above\x20root','join','trim','3703380yQjYki','1611432gQSvnL','pop','Path\x20segment\x20cannot\x20be\x20empty','raw','push','104283RwcJVb','90kNxTSW','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','length','4uuEiXd','filter','5540416GCaqkh'];a75_0x5eb5=function(){return _0x195945;};return a75_0x5eb5();}export function splitPath(_0x579670){const _0x385af8=a75_0xd4d9,_0x24f556=parsePath(_0x579670);if(_0x24f556[_0x385af8(0x178)][_0x385af8(0x170)]===0x0)throw new Error(_0x385af8(0x176));if(_0x24f556[_0x385af8(0x178)][_0x385af8(0x170)]===0x1)return{'parent':_0x24f556[_0x385af8(0x178)][0x0]};return{'parent':_0x24f556['segments'][0x0],'child':_0x24f556[_0x385af8(0x178)]['slice'](0x1)[_0x385af8(0x165)]('/')};}
1
+ function a77_0x2c0a(){const _0x5172a7=['227112FwIYbc','826284rBBRCH','Path\x20attempts\x20to\x20navigate\x20above\x20root','9woVkkv','2836248FuVLaY','trim','Relative\x20path\x20cannot\x20be\x20empty','pop','2075535LKWoXG','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','isAbsolute','join','Cannot\x20navigate\x20above\x20root','2994817rkddYE','11900330jVxEEi','split','Cannot\x20split\x20empty\x20path','1NuhvGH','test','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','startsWith','slice','Path\x20cannot\x20be\x20empty','80gvyeZX','length','filter','segments','raw','substring','3600984WyfpSd'];a77_0x2c0a=function(){return _0x5172a7;};return a77_0x2c0a();}(function(_0x751553,_0x363025){const _0x52df50=a77_0x4dfe,_0x54b4d4=_0x751553();while(!![]){try{const _0x259991=parseInt(_0x52df50(0x84))/0x1*(parseInt(_0x52df50(0x74))/0x2)+parseInt(_0x52df50(0x73))/0x3*(parseInt(_0x52df50(0x8b))/0x4)+-parseInt(_0x52df50(0x7b))/0x5+parseInt(_0x52df50(0x72))/0x6+-parseInt(_0x52df50(0x80))/0x7+-parseInt(_0x52df50(0x77))/0x8*(-parseInt(_0x52df50(0x76))/0x9)+-parseInt(_0x52df50(0x81))/0xa;if(_0x259991===_0x363025)break;else _0x54b4d4['push'](_0x54b4d4['shift']());}catch(_0x3b605c){_0x54b4d4['push'](_0x54b4d4['shift']());}}}(a77_0x2c0a,0xcf432));export function parsePath(_0x5265a1){const _0x51977c=a77_0x4dfe;if(!_0x5265a1||_0x5265a1[_0x51977c(0x78)]()==='')throw new Error(_0x51977c(0x8a));const _0x6a33a3=_0x5265a1['trim']();if(_0x6a33a3==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5265a1};const _0x591f1c=_0x6a33a3[_0x51977c(0x88)]('/')?_0x6a33a3[_0x51977c(0x71)](0x1):_0x6a33a3,_0x3a408e=_0x591f1c[_0x51977c(0x82)]('/')[_0x51977c(0x6e)](_0x4338ae=>_0x4338ae!=='');if(_0x3a408e[_0x51977c(0x6d)]===0x0)throw new Error(_0x51977c(0x7c));const _0x36358f=_0x6a33a3[_0x51977c(0x88)]('/')||!isRelativePathSegment(_0x3a408e[0x0]);for(const _0x1c889b of _0x3a408e){validatePathSegment(_0x1c889b);}return{'segments':_0x3a408e,'isAbsolute':_0x36358f,'raw':_0x5265a1};}function isRelativePathSegment(_0x296757){return _0x296757==='.'||_0x296757==='..';}function validatePathSegment(_0x283454){const _0x50b9aa=a77_0x4dfe;if(_0x283454==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x283454==='.'||_0x283454==='..')return;if(/[\x00-\x1F\x7F]/[_0x50b9aa(0x85)](_0x283454))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x283454);if(_0x283454!==_0x283454[_0x50b9aa(0x78)]()){}}export function validatePath(_0x4777f4){const _0x4fb3ed=a77_0x4dfe;if(_0x4777f4['segments'][_0x4fb3ed(0x6d)]===0x0&&!_0x4777f4[_0x4fb3ed(0x7d)])throw new Error(_0x4fb3ed(0x79));if(_0x4777f4[_0x4fb3ed(0x7d)]){if(_0x4777f4[_0x4fb3ed(0x6f)][0x0]==='..')throw new Error(_0x4fb3ed(0x86));let _0x314e4b=0x0;for(const _0x42126c of _0x4777f4[_0x4fb3ed(0x6f)]){if(_0x42126c==='..'){if(_0x314e4b===0x0)throw new Error(_0x4fb3ed(0x75));_0x314e4b--;}else _0x42126c!=='.'&&_0x314e4b++;}}}export function joinPaths(_0x28b407,_0x18f9f4){const _0x3918d4=a77_0x4dfe;if(!_0x28b407||_0x28b407==='/')return _0x18f9f4;if(!_0x18f9f4||_0x18f9f4==='.')return _0x28b407;if(_0x18f9f4[_0x3918d4(0x88)]('/'))return _0x18f9f4;const _0x160e67=parsePath(_0x28b407),_0x526fc0=parsePath(_0x18f9f4),_0x4826a4=[..._0x160e67[_0x3918d4(0x6f)]];for(const _0x18ac88 of _0x526fc0[_0x3918d4(0x6f)]){if(_0x18ac88==='.')continue;else{if(_0x18ac88==='..'){if(_0x4826a4[_0x3918d4(0x6d)]===0x0)throw new Error(_0x3918d4(0x7f));_0x4826a4[_0x3918d4(0x7a)]();}else _0x4826a4['push'](_0x18ac88);}}const _0x116d05=_0x4826a4[_0x3918d4(0x7e)]('/');return _0x160e67[_0x3918d4(0x70)]['startsWith']('/')?'/'+_0x116d05:_0x116d05;}export function normalizePath(_0xb7f52){const _0x1e96b2=a77_0x4dfe,_0x5238d7=parsePath(_0xb7f52),_0x186905=[];for(const _0x36b9c6 of _0x5238d7[_0x1e96b2(0x6f)]){if(_0x36b9c6==='.')continue;else{if(_0x36b9c6==='..'){if(_0x186905['length']===0x0){if(_0x5238d7['isAbsolute'])throw new Error(_0x1e96b2(0x7f));_0x186905['push']('..');}else _0x186905[_0x186905[_0x1e96b2(0x6d)]-0x1]==='..'?_0x186905[_0x1e96b2(0x87)]('..'):_0x186905[_0x1e96b2(0x7a)]();}else _0x186905['push'](_0x36b9c6);}}if(_0x186905['length']===0x0)return _0x5238d7[_0x1e96b2(0x7d)]?'/':'.';const _0x138fc0=_0x186905[_0x1e96b2(0x7e)]('/');return _0x5238d7[_0x1e96b2(0x70)]['startsWith']('/')?'/'+_0x138fc0:_0x138fc0;}function a77_0x4dfe(_0x2ba0c2,_0x23928e){const _0x2c0a9a=a77_0x2c0a();return a77_0x4dfe=function(_0x4dfe17,_0x2aa530){_0x4dfe17=_0x4dfe17-0x6d;let _0x64e30e=_0x2c0a9a[_0x4dfe17];return _0x64e30e;},a77_0x4dfe(_0x2ba0c2,_0x23928e);}export function getParentPath(_0xfff121){const _0x167c8d=a77_0x4dfe,_0x4dc168=parsePath(_0xfff121);if(_0x4dc168[_0x167c8d(0x6f)]['length']<=0x1)return'/';const _0x364e32=_0x4dc168[_0x167c8d(0x6f)][_0x167c8d(0x89)](0x0,-0x1)[_0x167c8d(0x7e)]('/');return _0x4dc168[_0x167c8d(0x70)]['startsWith']('/')?'/'+_0x364e32:_0x364e32;}export function getBaseName(_0x330f16){const _0x5d1f13=a77_0x4dfe,_0x3d6bc5=parsePath(_0x330f16);return _0x3d6bc5[_0x5d1f13(0x6f)][_0x3d6bc5['segments'][_0x5d1f13(0x6d)]-0x1]||'';}export function isChildPath(_0x1a3ac6,_0x12d5eb){const _0x512b43=a77_0x4dfe,_0x1cbbe4=parsePath(_0x1a3ac6),_0xa5ea05=parsePath(_0x12d5eb);if(_0x1cbbe4['segments'][_0x512b43(0x6d)]<=_0xa5ea05[_0x512b43(0x6f)][_0x512b43(0x6d)])return![];for(let _0x1af36e=0x0;_0x1af36e<_0xa5ea05[_0x512b43(0x6f)]['length'];_0x1af36e++){if(_0x1cbbe4[_0x512b43(0x6f)][_0x1af36e]!==_0xa5ea05[_0x512b43(0x6f)][_0x1af36e])return![];}return!![];}export function splitPath(_0x53dff0){const _0x3facbb=a77_0x4dfe,_0x490a59=parsePath(_0x53dff0);if(_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x6d)]===0x0)throw new Error(_0x3facbb(0x83));if(_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x6d)]===0x1)return{'parent':_0x490a59[_0x3facbb(0x6f)][0x0]};return{'parent':_0x490a59[_0x3facbb(0x6f)][0x0],'child':_0x490a59[_0x3facbb(0x6f)][_0x3facbb(0x89)](0x1)[_0x3facbb(0x7e)]('/')};}
@@ -1 +1 @@
1
- function a76_0x1632(){const _0x18c615=['.\x20Child\x20name\x20cannot\x20be\x20empty','1724219cDtSwv','.\x20Parent\x20name\x20cannot\x20be\x20empty','8hrckGG','141352hKvHMQ','substring','7505090XrEBGj','109304FcudSj','12618063sRTFuG','52991150hGZUCb','96NEGjPF','6qRmdNX','Invalid\x20segment\x20reference\x20format:\x20','73568iMNmRu'];a76_0x1632=function(){return _0x18c615;};return a76_0x1632();}function a76_0x24a4(_0x5cca21,_0x1b505c){const _0x1632af=a76_0x1632();return a76_0x24a4=function(_0x24a4c2,_0x33d043){_0x24a4c2=_0x24a4c2-0xab;let _0x39ef83=_0x1632af[_0x24a4c2];return _0x39ef83;},a76_0x24a4(_0x5cca21,_0x1b505c);}(function(_0x5d90e9,_0x5e8d65){const _0xdd5c79=a76_0x24a4,_0x29fabc=_0x5d90e9();while(!![]){try{const _0x36b083=-parseInt(_0xdd5c79(0xb8))/0x1+parseInt(_0xdd5c79(0xb3))/0x2*(-parseInt(_0xdd5c79(0xb0))/0x3)+-parseInt(_0xdd5c79(0xad))/0x4+-parseInt(_0xdd5c79(0xac))/0x5+-parseInt(_0xdd5c79(0xb1))/0x6*(parseInt(_0xdd5c79(0xb5))/0x7)+parseInt(_0xdd5c79(0xb7))/0x8*(-parseInt(_0xdd5c79(0xae))/0x9)+parseInt(_0xdd5c79(0xaf))/0xa;if(_0x36b083===_0x5e8d65)break;else _0x29fabc['push'](_0x29fabc['shift']());}catch(_0x18aec8){_0x29fabc['push'](_0x29fabc['shift']());}}}(a76_0x1632,0xc44a7));export function parseSegmentRef(_0x428b7e){const _0x23af9d=a76_0x24a4,_0x3b2885=_0x428b7e['indexOf']('/');if(_0x3b2885===-0x1)return{'parentId':_0x428b7e};if(_0x3b2885===0x0)throw new Error(_0x23af9d(0xb2)+_0x428b7e+_0x23af9d(0xb6));const _0x214df3=_0x428b7e['substring'](0x0,_0x3b2885),_0xb0433c=_0x428b7e[_0x23af9d(0xab)](_0x3b2885+0x1);if(_0xb0433c==='')throw new Error(_0x23af9d(0xb2)+_0x428b7e+_0x23af9d(0xb4));return{'parentId':_0x214df3,'childId':_0xb0433c};}
1
+ (function(_0x3ac379,_0x34f17a){const _0x52ec91=a78_0x1163,_0x39a9ba=_0x3ac379();while(!![]){try{const _0x10f07f=parseInt(_0x52ec91(0x125))/0x1*(-parseInt(_0x52ec91(0x124))/0x2)+parseInt(_0x52ec91(0x11c))/0x3+-parseInt(_0x52ec91(0x11b))/0x4*(-parseInt(_0x52ec91(0x120))/0x5)+-parseInt(_0x52ec91(0x11e))/0x6*(-parseInt(_0x52ec91(0x11d))/0x7)+parseInt(_0x52ec91(0x123))/0x8+-parseInt(_0x52ec91(0x11f))/0x9+-parseInt(_0x52ec91(0x128))/0xa;if(_0x10f07f===_0x34f17a)break;else _0x39a9ba['push'](_0x39a9ba['shift']());}catch(_0x5a8760){_0x39a9ba['push'](_0x39a9ba['shift']());}}}(a78_0x3820,0x8a918));export function parseSegmentRef(_0x316c69){const _0x2903e9=a78_0x1163,_0x5149c1=_0x316c69[_0x2903e9(0x122)]('/');if(_0x5149c1===-0x1)return{'parentId':_0x316c69};if(_0x5149c1===0x0)throw new Error(_0x2903e9(0x127)+_0x316c69+_0x2903e9(0x121));const _0x312d68=_0x316c69[_0x2903e9(0x126)](0x0,_0x5149c1),_0x20a895=_0x316c69[_0x2903e9(0x126)](_0x5149c1+0x1);if(_0x20a895==='')throw new Error(_0x2903e9(0x127)+_0x316c69+_0x2903e9(0x129));return{'parentId':_0x312d68,'childId':_0x20a895};}function a78_0x1163(_0x3f7a5a,_0xb7f83d){const _0x3820b1=a78_0x3820();return a78_0x1163=function(_0x1163a4,_0x49d804){_0x1163a4=_0x1163a4-0x11b;let _0x2e560e=_0x3820b1[_0x1163a4];return _0x2e560e;},a78_0x1163(_0x3f7a5a,_0xb7f83d);}function a78_0x3820(){const _0x2fc36e=['93591cvyfDF','substring','Invalid\x20segment\x20reference\x20format:\x20','21574520aswcuD','.\x20Child\x20name\x20cannot\x20be\x20empty','1628sTPqGN','3387573OAQjFK','13811ZzCRvT','1572rximXC','199863SPPFQS','11225LsXpRB','.\x20Parent\x20name\x20cannot\x20be\x20empty','indexOf','8237776WKgCKo','18nUsJLa'];a78_0x3820=function(){return _0x2fc36e;};return a78_0x3820();}
@@ -1 +1 @@
1
- (function(_0x20e0ae,_0x2ccd29){const _0x77d737=a77_0x27c5,_0x1ebf5d=_0x20e0ae();while(!![]){try{const _0x47f0d4=parseInt(_0x77d737(0x181))/0x1+-parseInt(_0x77d737(0x184))/0x2*(-parseInt(_0x77d737(0x17c))/0x3)+-parseInt(_0x77d737(0x16d))/0x4*(parseInt(_0x77d737(0x176))/0x5)+-parseInt(_0x77d737(0x179))/0x6+-parseInt(_0x77d737(0x174))/0x7+parseInt(_0x77d737(0x16c))/0x8*(parseInt(_0x77d737(0x171))/0x9)+-parseInt(_0x77d737(0x177))/0xa*(-parseInt(_0x77d737(0x182))/0xb);if(_0x47f0d4===_0x2ccd29)break;else _0x1ebf5d['push'](_0x1ebf5d['shift']());}catch(_0x42951e){_0x1ebf5d['push'](_0x1ebf5d['shift']());}}}(a77_0x3bb7,0xe99a5));import a77_0x20bc12 from'ora';function a77_0x27c5(_0x52a951,_0x150ff4){const _0x3bb76e=a77_0x3bb7();return a77_0x27c5=function(_0x27c542,_0xacbc5e){_0x27c542=_0x27c542-0x16c;let _0x36ef7f=_0x3bb76e[_0x27c542];return _0x36ef7f;},a77_0x27c5(_0x52a951,_0x150ff4);}export function createCommandSpinner(_0x464812,_0xa951c7={}){const _0x295ffe=a77_0x27c5,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xa951c7;return a77_0x20bc12({'text':_0x464812,'color':'cyan','isEnabled':forceEnabled||process[_0x295ffe(0x170)][_0x295ffe(0x16e)]&&!verbose});}export async function withSpinner(_0x5318ee,_0xa8d974,_0x459730={}){const _0x19b1c2=a77_0x27c5,_0x3c37ed=_0x459730['clock']??(()=>Date[_0x19b1c2(0x172)]()),_0xed5b54=createCommandSpinner(_0x5318ee,_0x459730);_0xed5b54[_0x19b1c2(0x17e)]();const _0x52b290=_0x3c37ed();try{const _0x226c42=await _0xa8d974(),_0x40925a=_0x3c37ed()-_0x52b290;return _0xed5b54[_0x19b1c2(0x173)](),{'data':_0x226c42,'elapsedMs':_0x40925a};}catch(_0x29c047){_0xed5b54['stop']();throw _0x29c047;}}export async function withQuerySpinner(_0x35dd75,_0x502909,_0xb657e6={}){const _0x2e2fb7=a77_0x27c5,_0x420d03=_0xb657e6[_0x2e2fb7(0x17d)]??(()=>Date['now']()),_0x3b7b13=_0xb657e6['intervalFactory']??setInterval,_0x28bfda=createCommandSpinner(_0x35dd75,_0xb657e6);_0x28bfda[_0x2e2fb7(0x17e)]();const _0x5ae51c=_0x420d03(),_0x2403be=_0x35dd75['replace'](_0x2e2fb7(0x17a),''),_0x2b75c3={},_0x55540=()=>{const _0x246b65=_0x2e2fb7;if(!_0x28bfda[_0x246b65(0x17b)])return;const _0x4904ff=_0x420d03()-_0x5ae51c,_0x1d868a=formatElapsed(_0x4904ff),_0x58b582=_0x2b75c3['phase']??_0x2403be,_0xc36d41=_0x2b75c3['jobId']?_0x246b65(0x185)+_0x2b75c3[_0x246b65(0x178)]+']':'',_0x174174=_0x2b75c3['extra']?'\x20'+_0x2b75c3['extra']:'';_0x28bfda[_0x246b65(0x175)]=_0x58b582+'\x20'+_0x1d868a+_0x174174+_0xc36d41;},_0x1c9a8c=_0x3b7b13(()=>{_0x55540();},0x3e8),_0x26240b={'setPhase':_0x449f82=>{const _0x43ac6e=_0x2e2fb7;_0x2b75c3[_0x43ac6e(0x180)]=_0x449f82,_0x55540();},'setJobId':_0x40b486=>{const _0x45dc22=_0x2e2fb7;_0x2b75c3[_0x45dc22(0x178)]=_0x40b486,_0x55540();},'setExtra':_0x5d0ac7=>{const _0xbe2f6f=_0x2e2fb7;_0x2b75c3[_0xbe2f6f(0x183)]=_0x5d0ac7,_0x55540();}};_0x55540();try{const _0x5132c4=await _0x502909(_0x26240b),_0x4a92f0=_0x420d03()-_0x5ae51c;return{'data':_0x5132c4,'elapsedMs':_0x4a92f0};}finally{clearInterval(_0x1c9a8c),_0x28bfda['stop']();}}export function formatElapsed(_0x667faa){const _0x4b26e7=a77_0x27c5,_0xb3900f=Math[_0x4b26e7(0x16f)](_0x667faa/0x3e8);if(_0xb3900f<0x3c)return(_0x667faa/0x3e8)[_0x4b26e7(0x17f)](0x1)+'s';const _0xeda6c6=Math[_0x4b26e7(0x16f)](_0xb3900f/0x3c),_0x4f9487=_0xb3900f%0x3c;if(_0xeda6c6<0x3c)return _0xeda6c6+'m\x20'+_0x4f9487+'s';const _0x59111d=Math['floor'](_0xeda6c6/0x3c),_0x1bd2ce=_0xeda6c6%0x3c;return _0x59111d+'h\x20'+_0x1bd2ce+'m';}function a77_0x3bb7(){const _0x1eeabe=['jobId','3730908xmJAfL','...','isSpinning','6IyncBJ','clock','start','toFixed','phase','83036KvSrWb','715wjKBtr','extra','1499606iQjBJl','\x20[Job\x20ID:\x20','168boaMeF','4xSsCCk','isTTY','floor','stdout','216189ujojpY','now','stop','8315363cRmdse','text','5195920YjZCfd','264410SUbQEF'];a77_0x3bb7=function(){return _0x1eeabe;};return a77_0x3bb7();}
1
+ (function(_0x1ffad5,_0x6591e0){const _0x3acef7=a79_0x1386,_0x2f0d40=_0x1ffad5();while(!![]){try{const _0x520179=parseInt(_0x3acef7(0x9f))/0x1*(parseInt(_0x3acef7(0x9e))/0x2)+parseInt(_0x3acef7(0xb2))/0x3*(-parseInt(_0x3acef7(0xa5))/0x4)+-parseInt(_0x3acef7(0xaf))/0x5+parseInt(_0x3acef7(0xa3))/0x6+-parseInt(_0x3acef7(0xa1))/0x7+parseInt(_0x3acef7(0x9c))/0x8*(parseInt(_0x3acef7(0xa9))/0x9)+parseInt(_0x3acef7(0xa7))/0xa;if(_0x520179===_0x6591e0)break;else _0x2f0d40['push'](_0x2f0d40['shift']());}catch(_0x2b9188){_0x2f0d40['push'](_0x2f0d40['shift']());}}}(a79_0x13e3,0x3c959));import a79_0x3d57da from'ora';function a79_0x1386(_0x42e5c9,_0x2f57c0){const _0x13e3c6=a79_0x13e3();return a79_0x1386=function(_0x1386cf,_0xc9619a){_0x1386cf=_0x1386cf-0x9c;let _0x3083d8=_0x13e3c6[_0x1386cf];return _0x3083d8;},a79_0x1386(_0x42e5c9,_0x2f57c0);}export function createCommandSpinner(_0x5a3a54,_0x13c681={}){const _0xdf4a7c=a79_0x1386,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13c681;return a79_0x3d57da({'text':_0x5a3a54,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0xdf4a7c(0xaa)]&&!verbose});}export async function withSpinner(_0x17a428,_0x4bf6ec,_0x4cd296={}){const _0x2ac5b7=a79_0x1386,_0x3774ca=_0x4cd296[_0x2ac5b7(0x9d)]??(()=>Date[_0x2ac5b7(0xac)]()),_0x3cf5b9=createCommandSpinner(_0x17a428,_0x4cd296);_0x3cf5b9[_0x2ac5b7(0xa2)]();const _0x482456=_0x3774ca();try{const _0x910a09=await _0x4bf6ec(),_0x444ff8=_0x3774ca()-_0x482456;return _0x3cf5b9['stop'](),{'data':_0x910a09,'elapsedMs':_0x444ff8};}catch(_0x1f24b9){_0x3cf5b9['stop']();throw _0x1f24b9;}}export async function withQuerySpinner(_0x20b570,_0x2ddfdd,_0x5dbd3a={}){const _0x5e1164=a79_0x1386,_0x559779=_0x5dbd3a[_0x5e1164(0x9d)]??(()=>Date[_0x5e1164(0xac)]()),_0x3f62cb=_0x5dbd3a['intervalFactory']??setInterval,_0x2700a5=createCommandSpinner(_0x20b570,_0x5dbd3a);_0x2700a5[_0x5e1164(0xa2)]();const _0x4f0b1f=_0x559779(),_0xc65755=_0x20b570[_0x5e1164(0xb0)](_0x5e1164(0xa0),''),_0xabaa90={},_0x103830=()=>{const _0xaa1ddc=_0x5e1164;if(!_0x2700a5['isSpinning'])return;const _0x51eb01=_0x559779()-_0x4f0b1f,_0x49aee2=formatElapsed(_0x51eb01),_0x55186e=_0xabaa90[_0xaa1ddc(0xab)]??_0xc65755,_0x127573=_0xabaa90['jobId']?_0xaa1ddc(0xa6)+_0xabaa90[_0xaa1ddc(0xa8)]+']':'',_0x5cf510=_0xabaa90[_0xaa1ddc(0xad)]?'\x20'+_0xabaa90[_0xaa1ddc(0xad)]:'';_0x2700a5[_0xaa1ddc(0xa4)]=_0x55186e+'\x20'+_0x49aee2+_0x5cf510+_0x127573;},_0x51ac53=_0x3f62cb(()=>{_0x103830();},0x3e8),_0x3f9e42={'setPhase':_0x4539d3=>{_0xabaa90['phase']=_0x4539d3,_0x103830();},'setJobId':_0x1f1fb2=>{const _0x9d5cac=_0x5e1164;_0xabaa90[_0x9d5cac(0xa8)]=_0x1f1fb2,_0x103830();},'setExtra':_0x9f580e=>{_0xabaa90['extra']=_0x9f580e,_0x103830();}};_0x103830();try{const _0x19235f=await _0x2ddfdd(_0x3f9e42),_0xc91cc=_0x559779()-_0x4f0b1f;return{'data':_0x19235f,'elapsedMs':_0xc91cc};}finally{clearInterval(_0x51ac53),_0x2700a5[_0x5e1164(0xae)]();}}function a79_0x13e3(){const _0x1dbd2c=['...','2971388hoGdUw','start','555354LIlWCC','text','70676LArSSO','\x20[Job\x20ID:\x20','4334740jZJswc','jobId','1989lOrKKS','isTTY','phase','now','extra','stop','151205ZJmRZQ','replace','toFixed','51uqJNgN','floor','15992WAWqty','clock','70878cUlHbk','1pPsAln'];a79_0x13e3=function(){return _0x1dbd2c;};return a79_0x13e3();}export function formatElapsed(_0x37295e){const _0x599e17=a79_0x1386,_0x3ddc97=Math[_0x599e17(0xb3)](_0x37295e/0x3e8);if(_0x3ddc97<0x3c)return(_0x37295e/0x3e8)[_0x599e17(0xb1)](0x1)+'s';const _0x390bf3=Math[_0x599e17(0xb3)](_0x3ddc97/0x3c),_0x112182=_0x3ddc97%0x3c;if(_0x390bf3<0x3c)return _0x390bf3+'m\x20'+_0x112182+'s';const _0x227a87=Math[_0x599e17(0xb3)](_0x390bf3/0x3c),_0x362446=_0x390bf3%0x3c;return _0x227a87+'h\x20'+_0x362446+'m';}
@@ -1 +1 @@
1
- function a78_0x5bd0(){const _0x16eb58=['1257798tXreky','56pMztpo','push','EACCES','Content\x20contains\x20no\x20SQL\x20statements','2329576AOkDgq','trim','Error\x20reading\x20file\x20\x27','5906100QORqrx','\x27:\x20','length','message','\x27\x20not\x20found','1466554XYqSwD','5767452ejlyxJ','File\x20\x27','4782104LSqhuZ','map','utf-8','4085412TfEYqq','replace'];a78_0x5bd0=function(){return _0x16eb58;};return a78_0x5bd0();}(function(_0x518124,_0x513705){const _0x4ab702=a78_0x4055,_0x5c70a7=_0x518124();while(!![]){try{const _0x56b28a=parseInt(_0x4ab702(0x1b6))/0x1+-parseInt(_0x4ab702(0x1a9))/0x2+-parseInt(_0x4ab702(0x1a7))/0x3+parseInt(_0x4ab702(0x1a4))/0x4+-parseInt(_0x4ab702(0x1b1))/0x5+-parseInt(_0x4ab702(0x1b7))/0x6+parseInt(_0x4ab702(0x1aa))/0x7*(parseInt(_0x4ab702(0x1ae))/0x8);if(_0x56b28a===_0x513705)break;else _0x5c70a7['push'](_0x5c70a7['shift']());}catch(_0x5ab2dc){_0x5c70a7['push'](_0x5c70a7['shift']());}}}(a78_0x5bd0,0xd197b));import{readFileSync}from'fs';export function stripSqlComments(_0x3ef928){const _0x9cedab=a78_0x4055;let _0x253025=_0x3ef928['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x253025=_0x253025[_0x9cedab(0x1a8)](/--.*$/gm,''),_0x253025['trim']();}function a78_0x4055(_0x3e830a,_0xfc8321){const _0x5bd0a0=a78_0x5bd0();return a78_0x4055=function(_0x4055e6,_0x310d32){_0x4055e6=_0x4055e6-0x1a3;let _0xee7969=_0x5bd0a0[_0x4055e6];return _0xee7969;},a78_0x4055(_0x3e830a,_0xfc8321);}function isEscaped(_0x1d581c,_0x3cbcf7){let _0x1f367a=0x0;for(let _0x17d64e=_0x3cbcf7-0x1;_0x17d64e>=0x0&&_0x1d581c[_0x17d64e]==='\x5c';_0x17d64e--){_0x1f367a++;}return _0x1f367a%0x2===0x1;}export function splitSqlStatements(_0x436c6c){const _0x2db40d=a78_0x4055,_0x4f1889=stripSqlComments(_0x436c6c);if(!_0x4f1889)throw new Error(_0x2db40d(0x1ad));const _0x568f82=[];let _0x3e9da7='',_0x4bb059=![],_0x206ca3=![],_0x2fd846=![];for(let _0x28acf7=0x0;_0x28acf7<_0x436c6c['length'];_0x28acf7++){const _0x2b55a3=_0x436c6c[_0x28acf7];if(_0x2b55a3==='\x27'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x206ca3&&!_0x2fd846)_0x4bb059=!_0x4bb059;else{if(_0x2b55a3==='\x22'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x4bb059&&!_0x2fd846)_0x206ca3=!_0x206ca3;else _0x2b55a3==='`'&&!isEscaped(_0x436c6c,_0x28acf7)&&!_0x4bb059&&!_0x206ca3&&(_0x2fd846=!_0x2fd846);}if(_0x2b55a3===';'&&!_0x4bb059&&!_0x206ca3&&!_0x2fd846){const _0x9e546e=_0x3e9da7[_0x2db40d(0x1af)]();_0x9e546e&&_0x568f82[_0x2db40d(0x1ab)](_0x9e546e),_0x3e9da7='';}else _0x3e9da7+=_0x2b55a3;}const _0x3d5ddf=_0x3e9da7['trim']();_0x3d5ddf&&_0x568f82[_0x2db40d(0x1ab)](_0x3d5ddf);const _0x5ba5fd=_0x568f82[_0x2db40d(0x1a5)](_0x369f38=>_0x369f38[_0x2db40d(0x1af)]())['filter'](_0x446132=>{const _0x302996=_0x2db40d,_0x5d621b=stripSqlComments(_0x446132);return _0x5d621b[_0x302996(0x1b3)]>0x0;});if(_0x5ba5fd[_0x2db40d(0x1b3)]===0x0)throw new Error(_0x2db40d(0x1ad));return _0x5ba5fd;}export function readFileContent(_0x5b22e9){const _0x2d555b=a78_0x4055;try{return readFileSync(_0x5b22e9,_0x2d555b(0x1a6));}catch(_0x39efba){const _0x5b36eb=_0x39efba['code'];if(_0x5b36eb==='ENOENT')throw new Error(_0x2d555b(0x1a3)+_0x5b22e9+_0x2d555b(0x1b5));else{if(_0x5b36eb===_0x2d555b(0x1ac))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5b22e9+'\x27');else throw new Error(_0x2d555b(0x1b0)+_0x5b22e9+_0x2d555b(0x1b2)+_0x39efba[_0x2d555b(0x1b4)]);}}}export function readSqlStatementsFromFile(_0x19e8db){const _0x2fec54=a78_0x4055,_0x190e36=readFileContent(_0x19e8db);try{return splitSqlStatements(_0x190e36);}catch(_0x3b89d5){throw new Error(_0x2fec54(0x1a3)+_0x19e8db+'\x27\x20'+_0x3b89d5[_0x2fec54(0x1b4)]['toLowerCase']());}}
1
+ (function(_0x381bac,_0x2928ff){const _0xa26083=a80_0x24ba,_0x1394a6=_0x381bac();while(!![]){try{const _0x5117bd=-parseInt(_0xa26083(0xd0))/0x1*(-parseInt(_0xa26083(0xd9))/0x2)+parseInt(_0xa26083(0xd2))/0x3+parseInt(_0xa26083(0xdc))/0x4*(parseInt(_0xa26083(0xe0))/0x5)+-parseInt(_0xa26083(0xdf))/0x6*(parseInt(_0xa26083(0xc8))/0x7)+-parseInt(_0xa26083(0xdd))/0x8*(parseInt(_0xa26083(0xd5))/0x9)+parseInt(_0xa26083(0xc7))/0xa+-parseInt(_0xa26083(0xd7))/0xb*(parseInt(_0xa26083(0xdb))/0xc);if(_0x5117bd===_0x2928ff)break;else _0x1394a6['push'](_0x1394a6['shift']());}catch(_0x4a1858){_0x1394a6['push'](_0x1394a6['shift']());}}}(a80_0x8f10,0xe60c9));import{readFileSync}from'fs';export function stripSqlComments(_0x4e0eb0){const _0x338c1e=a80_0x24ba;let _0x32ef4a=_0x4e0eb0[_0x338c1e(0xd6)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x32ef4a=_0x32ef4a['replace'](/--.*$/gm,''),_0x32ef4a[_0x338c1e(0xde)]();}function isEscaped(_0x255acf,_0x5f0c83){let _0x23ab27=0x0;for(let _0xa2a2c3=_0x5f0c83-0x1;_0xa2a2c3>=0x0&&_0x255acf[_0xa2a2c3]==='\x5c';_0xa2a2c3--){_0x23ab27++;}return _0x23ab27%0x2===0x1;}export function splitSqlStatements(_0x1b2aad){const _0x4b0c48=a80_0x24ba,_0x2bac13=stripSqlComments(_0x1b2aad);if(!_0x2bac13)throw new Error(_0x4b0c48(0xd8));const _0x2018e8=[];let _0x52acd8='',_0x5d2583=![],_0xbab4de=![],_0x16be62=![];for(let _0x1f6c05=0x0;_0x1f6c05<_0x1b2aad['length'];_0x1f6c05++){const _0x1400e4=_0x1b2aad[_0x1f6c05];if(_0x1400e4==='\x27'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0xbab4de&&!_0x16be62)_0x5d2583=!_0x5d2583;else{if(_0x1400e4==='\x22'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0x5d2583&&!_0x16be62)_0xbab4de=!_0xbab4de;else _0x1400e4==='`'&&!isEscaped(_0x1b2aad,_0x1f6c05)&&!_0x5d2583&&!_0xbab4de&&(_0x16be62=!_0x16be62);}if(_0x1400e4===';'&&!_0x5d2583&&!_0xbab4de&&!_0x16be62){const _0x313403=_0x52acd8['trim']();_0x313403&&_0x2018e8[_0x4b0c48(0xcb)](_0x313403),_0x52acd8='';}else _0x52acd8+=_0x1400e4;}const _0x290f68=_0x52acd8[_0x4b0c48(0xde)]();_0x290f68&&_0x2018e8[_0x4b0c48(0xcb)](_0x290f68);const _0x122cfa=_0x2018e8[_0x4b0c48(0xcf)](_0x6414f2=>_0x6414f2['trim']())['filter'](_0x352c45=>{const _0x55e11f=stripSqlComments(_0x352c45);return _0x55e11f['length']>0x0;});if(_0x122cfa[_0x4b0c48(0xd3)]===0x0)throw new Error(_0x4b0c48(0xd8));return _0x122cfa;}export function readFileContent(_0x58e23d){const _0x1e797d=a80_0x24ba;try{return readFileSync(_0x58e23d,_0x1e797d(0xca));}catch(_0x6e40be){const _0x8c14d7=_0x6e40be[_0x1e797d(0xda)];if(_0x8c14d7==='ENOENT')throw new Error(_0x1e797d(0xc9)+_0x58e23d+_0x1e797d(0xd1));else{if(_0x8c14d7===_0x1e797d(0xc6))throw new Error(_0x1e797d(0xce)+_0x58e23d+'\x27');else throw new Error(_0x1e797d(0xcc)+_0x58e23d+_0x1e797d(0xd4)+_0x6e40be['message']);}}}export function readSqlStatementsFromFile(_0x580d9c){const _0x1ab7b9=a80_0x24ba,_0x468105=readFileContent(_0x580d9c);try{return splitSqlStatements(_0x468105);}catch(_0x223ca5){throw new Error(_0x1ab7b9(0xc9)+_0x580d9c+'\x27\x20'+_0x223ca5['message'][_0x1ab7b9(0xcd)]());}}function a80_0x24ba(_0x2967f1,_0x186741){const _0x8f10f6=a80_0x8f10();return a80_0x24ba=function(_0x24ba71,_0x5b8ada){_0x24ba71=_0x24ba71-0xc6;let _0x38ebf0=_0x8f10f6[_0x24ba71];return _0x38ebf0;},a80_0x24ba(_0x2967f1,_0x186741);}function a80_0x8f10(){const _0x121cad=['8lOrYzw','trim','7164feNXxX','2881665sZfHTZ','EACCES','18202610XXdCsK','7567ProFTw','File\x20\x27','utf-8','push','Error\x20reading\x20file\x20\x27','toLowerCase','Permission\x20denied\x20reading\x20file\x20\x27','map','1049QwYCPK','\x27\x20not\x20found','89118WttjQr','length','\x27:\x20','5242122nkqGcF','replace','55WukJez','Content\x20contains\x20no\x20SQL\x20statements','1756nvthHh','code','4042884kUxxoY','12pwsHSc'];a80_0x8f10=function(){return _0x121cad;};return a80_0x8f10();}
@@ -1 +1 @@
1
- function a79_0x3856(){const _0x3761cb=['parse','split','Response\x20body\x20is\x20null','5518950NPfFFb','data','24921594lNjOAJ','69111QBfckC','releaseLock','startsWith','event','11863YjSvds','read','5467720NoNCAO','158oydEta','pop','indexOf','4712976JUUTko','trim','slice','[LLM\x20API\x20SSE]\x20','1709298EUdxIA','getReader','body','606RYOhmz'];a79_0x3856=function(){return _0x3761cb;};return a79_0x3856();}(function(_0x5da674,_0x28bb52){const _0x48dc35=a79_0x528e,_0x5d0bc5=_0x5da674();while(!![]){try{const _0x1f277a=-parseInt(_0x48dc35(0x120))/0x1*(parseInt(_0x48dc35(0x123))/0x2)+-parseInt(_0x48dc35(0x12a))/0x3+-parseInt(_0x48dc35(0x126))/0x4+-parseInt(_0x48dc35(0x131))/0x5+-parseInt(_0x48dc35(0x12d))/0x6*(-parseInt(_0x48dc35(0x11c))/0x7)+parseInt(_0x48dc35(0x122))/0x8+parseInt(_0x48dc35(0x11b))/0x9;if(_0x1f277a===_0x28bb52)break;else _0x5d0bc5['push'](_0x5d0bc5['shift']());}catch(_0x5aaa92){_0x5d0bc5['push'](_0x5d0bc5['shift']());}}}(a79_0x3856,0xa14f7));export async function*parseSSEStream(_0x3132a8,_0x21f9e1){const _0x111ea2=a79_0x528e;if(!_0x3132a8[_0x111ea2(0x12c)])throw new Error(_0x111ea2(0x130));const _0x2ca07f=_0x3132a8['body'][_0x111ea2(0x12b)](),_0x20d8ba=new TextDecoder();let _0x4f2c4a='',_0x525a10={};try{while(!![]){const {done:_0x3205df,value:_0x1ff56b}=await _0x2ca07f[_0x111ea2(0x121)]();if(_0x3205df){if(_0x525a10[_0x111ea2(0x11a)]){_0x21f9e1?.['debug'](_0x111ea2(0x129)+_0x525a10['data']);const _0x48192b=parseSSEData(_0x525a10[_0x111ea2(0x11a)]);yield _0x48192b;}break;}_0x4f2c4a+=_0x20d8ba['decode'](_0x1ff56b,{'stream':!![]});const _0x2985cb=_0x4f2c4a[_0x111ea2(0x12f)]('\x0a');_0x4f2c4a=_0x2985cb[_0x111ea2(0x124)]()||'';for(const _0xe71955 of _0x2985cb){if(_0xe71955[_0x111ea2(0x127)]()===''){if(_0x525a10[_0x111ea2(0x11a)]){_0x21f9e1?.['debug'](_0x111ea2(0x129)+_0x525a10['data']);const _0x899600=parseSSEData(_0x525a10['data']);yield _0x899600,_0x525a10={};}continue;}if(_0xe71955[_0x111ea2(0x11e)](':'))continue;const _0x4dac23=_0xe71955[_0x111ea2(0x125)](':');if(_0x4dac23===-0x1)continue;const _0xb2ed74=_0xe71955[_0x111ea2(0x128)](0x0,_0x4dac23);let _0x645b4e=_0xe71955[_0x111ea2(0x128)](_0x4dac23+0x1);_0x645b4e['startsWith']('\x20')&&(_0x645b4e=_0x645b4e[_0x111ea2(0x128)](0x1));switch(_0xb2ed74){case'event':_0x525a10[_0x111ea2(0x11f)]=_0x645b4e;break;case _0x111ea2(0x11a):_0x525a10['data']=_0x525a10[_0x111ea2(0x11a)]?_0x525a10[_0x111ea2(0x11a)]+'\x0a'+_0x645b4e:_0x645b4e;break;case'id':_0x525a10['id']=_0x645b4e;break;}}}}finally{_0x2ca07f[_0x111ea2(0x11d)]();}}function a79_0x528e(_0x39e63f,_0x8f346b){const _0x3856bb=a79_0x3856();return a79_0x528e=function(_0x528e95,_0x426f19){_0x528e95=_0x528e95-0x11a;let _0x39d31b=_0x3856bb[_0x528e95];return _0x39d31b;},a79_0x528e(_0x39e63f,_0x8f346b);}function parseSSEData(_0xafa67a){const _0x506d3c=a79_0x528e;try{return JSON[_0x506d3c(0x12e)](_0xafa67a);}catch(_0x44b5ae){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xafa67a,{'cause':_0x44b5ae});}}
1
+ function a81_0x30b2(_0x5bf7e3,_0x4078fc){const _0x3e3d4f=a81_0x3e3d();return a81_0x30b2=function(_0x30b2ec,_0x33fec0){_0x30b2ec=_0x30b2ec-0x10d;let _0x3c31ae=_0x3e3d4f[_0x30b2ec];return _0x3c31ae;},a81_0x30b2(_0x5bf7e3,_0x4078fc);}(function(_0x2c4df7,_0x315835){const _0x3df361=a81_0x30b2,_0x36096f=_0x2c4df7();while(!![]){try{const _0x513d77=parseInt(_0x3df361(0x120))/0x1*(-parseInt(_0x3df361(0x111))/0x2)+parseInt(_0x3df361(0x11f))/0x3+parseInt(_0x3df361(0x115))/0x4+-parseInt(_0x3df361(0x112))/0x5+-parseInt(_0x3df361(0x113))/0x6+-parseInt(_0x3df361(0x110))/0x7*(-parseInt(_0x3df361(0x10e))/0x8)+parseInt(_0x3df361(0x11c))/0x9;if(_0x513d77===_0x315835)break;else _0x36096f['push'](_0x36096f['shift']());}catch(_0xfa3f3f){_0x36096f['push'](_0x36096f['shift']());}}}(a81_0x3e3d,0x9507b));export async function*parseSSEStream(_0x67694,_0x31d2db){const _0x144d8b=a81_0x30b2;if(!_0x67694[_0x144d8b(0x11a)])throw new Error(_0x144d8b(0x10d));const _0x2f05fe=_0x67694[_0x144d8b(0x11a)]['getReader'](),_0x3e118d=new TextDecoder();let _0x2053c2='',_0x5a2ed9={};try{while(!![]){const {done:_0x17a5e7,value:_0x2b1fcb}=await _0x2f05fe[_0x144d8b(0x11e)]();if(_0x17a5e7){if(_0x5a2ed9[_0x144d8b(0x11b)]){_0x31d2db?.[_0x144d8b(0x11d)](_0x144d8b(0x117)+_0x5a2ed9['data']);const _0x4a2094=parseSSEData(_0x5a2ed9[_0x144d8b(0x11b)]);yield _0x4a2094;}break;}_0x2053c2+=_0x3e118d[_0x144d8b(0x123)](_0x2b1fcb,{'stream':!![]});const _0xb16024=_0x2053c2[_0x144d8b(0x116)]('\x0a');_0x2053c2=_0xb16024['pop']()||'';for(const _0x75bd97 of _0xb16024){if(_0x75bd97[_0x144d8b(0x118)]()===''){if(_0x5a2ed9[_0x144d8b(0x11b)]){_0x31d2db?.[_0x144d8b(0x11d)](_0x144d8b(0x117)+_0x5a2ed9[_0x144d8b(0x11b)]);const _0x115f45=parseSSEData(_0x5a2ed9['data']);yield _0x115f45,_0x5a2ed9={};}continue;}if(_0x75bd97['startsWith'](':'))continue;const _0x388ba3=_0x75bd97['indexOf'](':');if(_0x388ba3===-0x1)continue;const _0x26b89e=_0x75bd97[_0x144d8b(0x10f)](0x0,_0x388ba3);let _0x4c9996=_0x75bd97[_0x144d8b(0x10f)](_0x388ba3+0x1);_0x4c9996[_0x144d8b(0x122)]('\x20')&&(_0x4c9996=_0x4c9996[_0x144d8b(0x10f)](0x1));switch(_0x26b89e){case _0x144d8b(0x121):_0x5a2ed9[_0x144d8b(0x121)]=_0x4c9996;break;case _0x144d8b(0x11b):_0x5a2ed9['data']=_0x5a2ed9[_0x144d8b(0x11b)]?_0x5a2ed9[_0x144d8b(0x11b)]+'\x0a'+_0x4c9996:_0x4c9996;break;case'id':_0x5a2ed9['id']=_0x4c9996;break;}}}}finally{_0x2f05fe[_0x144d8b(0x119)]();}}function parseSSEData(_0x1ac211){const _0x51e71e=a81_0x30b2;try{return JSON[_0x51e71e(0x114)](_0x1ac211);}catch(_0x3194a2){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1ac211,{'cause':_0x3194a2});}}function a81_0x3e3d(){const _0x373569=['split','[LLM\x20API\x20SSE]\x20','trim','releaseLock','body','data','2298483UuhoZM','debug','read','2443938mvHdDl','777817haEoTc','event','startsWith','decode','Response\x20body\x20is\x20null','168ykjXVi','slice','375263XGstiU','2TwsWxo','5069030CvARCi','989202DgJcVs','parse','1484380ZACfIN'];a81_0x3e3d=function(){return _0x373569;};return a81_0x3e3d();}
@@ -1 +1 @@
1
- (function(_0x594f10,_0x3b6a3d){const _0x3f117b=a80_0x1527,_0x11a95e=_0x594f10();while(!![]){try{const _0x596743=parseInt(_0x3f117b(0xc3))/0x1*(-parseInt(_0x3f117b(0xc7))/0x2)+-parseInt(_0x3f117b(0xbf))/0x3+-parseInt(_0x3f117b(0xcb))/0x4+parseInt(_0x3f117b(0xd2))/0x5+-parseInt(_0x3f117b(0xc2))/0x6*(-parseInt(_0x3f117b(0xce))/0x7)+-parseInt(_0x3f117b(0xc8))/0x8+parseInt(_0x3f117b(0xc5))/0x9;if(_0x596743===_0x3b6a3d)break;else _0x11a95e['push'](_0x11a95e['shift']());}catch(_0x58a5df){_0x11a95e['push'](_0x11a95e['shift']());}}}(a80_0x5cb1,0x741a7));import a80_0x10f43b from'string-width';export function stringWidth(_0x366168){return a80_0x10f43b(_0x366168);}export function padEnd(_0x269202,_0x5b7f98){const _0x3c5065=a80_0x1527,_0x3492c9=stringWidth(_0x269202);if(_0x3492c9>=_0x5b7f98)return _0x269202;return _0x269202+'\x20'[_0x3c5065(0xbb)](_0x5b7f98-_0x3492c9);}export function padStart(_0x53f992,_0x3c5252){const _0x907b68=a80_0x1527,_0x56acd1=stringWidth(_0x53f992);if(_0x56acd1>=_0x3c5252)return _0x53f992;return'\x20'[_0x907b68(0xbb)](_0x3c5252-_0x56acd1)+_0x53f992;}export function centerAlign(_0xcad752,_0x2e57d1){const _0x44f55a=a80_0x1527,_0x1714e9=stringWidth(_0xcad752);if(_0x1714e9>_0x2e57d1){if(_0x2e57d1<=0x1)return'…'[_0x44f55a(0xc1)](0x0,_0x2e57d1);let _0x5c10f7=_0xcad752;while(stringWidth(_0x5c10f7+'…')>_0x2e57d1){_0x5c10f7=_0x5c10f7['slice'](0x0,-0x1);}return _0x5c10f7+'…';}if(_0x1714e9===_0x2e57d1)return _0xcad752;const _0x2dff5f=_0x2e57d1-_0x1714e9,_0x5550de=Math['floor'](_0x2dff5f/0x2),_0x5b0060=_0x2dff5f-_0x5550de;return'\x20'[_0x44f55a(0xbb)](_0x5550de)+_0xcad752+'\x20'[_0x44f55a(0xbb)](_0x5b0060);}export function escapeStringLiteral(_0x50fad5){const _0x36dc48=a80_0x1527;if(!_0x50fad5||_0x50fad5[_0x36dc48(0xc6)]()[_0x36dc48(0xbd)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x356589=_0x50fad5['replace'](/'/g,'\x27\x27');return'\x27'+_0x356589+'\x27';}export function globToLike(_0xc6fca4){const _0x37100=a80_0x1527;let _0x483e06=_0xc6fca4[_0x37100(0xca)](/\\/g,'\x5c\x5c')[_0x37100(0xca)](/%/g,'\x5c%')[_0x37100(0xca)](/_/g,'\x5c_');return _0x483e06=_0x483e06[_0x37100(0xca)](/\*/g,'%')[_0x37100(0xca)](/\?/g,'_'),_0x483e06;}export function buildLikePattern(_0xeb2d32){const _0x380b3f=a80_0x1527;if(!_0xeb2d32||_0xeb2d32['trim']()[_0x380b3f(0xbd)]===0x0)throw new Error(_0x380b3f(0xcd));const _0x5a810d=globToLike(_0xeb2d32),_0x5222f7=_0x5a810d[_0x380b3f(0xca)](/'/g,'\x27\x27');return'\x27'+_0x5222f7+'\x27';}export function matchGlobPattern(_0x2eb848,_0x576c86){const _0x471920=a80_0x1527,_0x2be4d0=_0x576c86['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x471920(0xca)](/\*/g,'.*')[_0x471920(0xca)](/\?/g,'.'),_0x3cca79=new RegExp('^'+_0x2be4d0+'$');return _0x3cca79[_0x471920(0xcc)](_0x2eb848);}function a80_0x1527(_0x2952fd,_0x4d8268){const _0x5cb164=a80_0x5cb1();return a80_0x1527=function(_0x152707,_0xaa1146){_0x152707=_0x152707-0xbb;let _0x2f11e1=_0x5cb164[_0x152707];return _0x2f11e1;},a80_0x1527(_0x2952fd,_0x4d8268);}export function getSanitizedUsername(){const _0x1cd1d6=a80_0x1527,_0x457252=process[_0x1cd1d6(0xc9)][_0x1cd1d6(0xd0)]||process['env'][_0x1cd1d6(0xd1)]||_0x1cd1d6(0xbe);return _0x457252[_0x1cd1d6(0xca)](/[^a-zA-Z0-9]/g,'')[_0x1cd1d6(0xbc)]();}export function generateRandomHex(){const _0x411936=a80_0x1527,_0x3dfb8a=Math[_0x411936(0xc0)](Math['random']()*0xfffff);return _0x3dfb8a[_0x411936(0xcf)](0x10)[_0x411936(0xc4)](0x5,'0');}function a80_0x5cb1(){const _0x3352e1=['unknown','1244391WjIrUG','floor','substring','210oGCAul','808966hfcqlj','padStart','23486256SLNvHw','trim','2NDaBex','3601416jzgOxd','env','replace','3716956csFsCk','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','64435TbtXRu','toString','USER','USERNAME','734895FVfQxt','repeat','toLowerCase','length'];a80_0x5cb1=function(){return _0x3352e1;};return a80_0x5cb1();}
1
+ (function(_0x2ea8cb,_0x1d4876){const _0x5e38ec=a82_0x2b99,_0x15c814=_0x2ea8cb();while(!![]){try{const _0x525ceb=parseInt(_0x5e38ec(0x106))/0x1*(parseInt(_0x5e38ec(0x104))/0x2)+-parseInt(_0x5e38ec(0x107))/0x3*(parseInt(_0x5e38ec(0x101))/0x4)+parseInt(_0x5e38ec(0xfe))/0x5+-parseInt(_0x5e38ec(0x10e))/0x6*(parseInt(_0x5e38ec(0x10a))/0x7)+parseInt(_0x5e38ec(0x102))/0x8+-parseInt(_0x5e38ec(0x10f))/0x9+parseInt(_0x5e38ec(0x10b))/0xa*(-parseInt(_0x5e38ec(0x105))/0xb);if(_0x525ceb===_0x1d4876)break;else _0x15c814['push'](_0x15c814['shift']());}catch(_0x4a2b08){_0x15c814['push'](_0x15c814['shift']());}}}(a82_0x1928,0x41ea0));import a82_0x6c8c16 from'string-width';export function stringWidth(_0x50e1d6){return a82_0x6c8c16(_0x50e1d6);}export function padEnd(_0x7227b3,_0x3a4ca8){const _0x1cf31d=a82_0x2b99,_0x2b4a66=stringWidth(_0x7227b3);if(_0x2b4a66>=_0x3a4ca8)return _0x7227b3;return _0x7227b3+'\x20'[_0x1cf31d(0x108)](_0x3a4ca8-_0x2b4a66);}export function padStart(_0x198c59,_0x4f5bad){const _0x3e92a6=a82_0x2b99,_0x57f653=stringWidth(_0x198c59);if(_0x57f653>=_0x4f5bad)return _0x198c59;return'\x20'[_0x3e92a6(0x108)](_0x4f5bad-_0x57f653)+_0x198c59;}export function centerAlign(_0x5a92c1,_0x329e0f){const _0x4a56bc=a82_0x2b99,_0x3de1c8=stringWidth(_0x5a92c1);if(_0x3de1c8>_0x329e0f){if(_0x329e0f<=0x1)return'…'[_0x4a56bc(0xfd)](0x0,_0x329e0f);let _0x44f884=_0x5a92c1;while(stringWidth(_0x44f884+'…')>_0x329e0f){_0x44f884=_0x44f884['slice'](0x0,-0x1);}return _0x44f884+'…';}if(_0x3de1c8===_0x329e0f)return _0x5a92c1;const _0x23960a=_0x329e0f-_0x3de1c8,_0x16d9d3=Math[_0x4a56bc(0x110)](_0x23960a/0x2),_0x2ed19a=_0x23960a-_0x16d9d3;return'\x20'[_0x4a56bc(0x108)](_0x16d9d3)+_0x5a92c1+'\x20'[_0x4a56bc(0x108)](_0x2ed19a);}export function escapeStringLiteral(_0x1acc94){const _0x520f0b=a82_0x2b99;if(!_0x1acc94||_0x1acc94['trim']()[_0x520f0b(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x1d2c17=_0x1acc94[_0x520f0b(0xfb)](/'/g,'\x27\x27');return'\x27'+_0x1d2c17+'\x27';}export function globToLike(_0x5b903f){const _0x57dc96=a82_0x2b99;let _0x571fbb=_0x5b903f[_0x57dc96(0xfb)](/\\/g,'\x5c\x5c')[_0x57dc96(0xfb)](/%/g,'\x5c%')[_0x57dc96(0xfb)](/_/g,'\x5c_');return _0x571fbb=_0x571fbb[_0x57dc96(0xfb)](/\*/g,'%')[_0x57dc96(0xfb)](/\?/g,'_'),_0x571fbb;}function a82_0x1928(){const _0x4eba4d=['17977uMzdVs','31461ohRRPA','repeat','trim','5201mtWqFd','10MEDEbw','\x5c$&','length','2358dRrQQm','2540115yustlI','floor','replace','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','1956190mCnJpI','toString','USER','4ThuyQo','3505544ZJslsW','test','14rUPvhV','1106215GGIefV'];a82_0x1928=function(){return _0x4eba4d;};return a82_0x1928();}export function buildLikePattern(_0x1ffa2e){const _0x4746ce=a82_0x2b99;if(!_0x1ffa2e||_0x1ffa2e[_0x4746ce(0x109)]()[_0x4746ce(0x10d)]===0x0)throw new Error(_0x4746ce(0xfc));const _0x2656e5=globToLike(_0x1ffa2e),_0x31803d=_0x2656e5[_0x4746ce(0xfb)](/'/g,'\x27\x27');return'\x27'+_0x31803d+'\x27';}export function matchGlobPattern(_0x21fcb5,_0x55094c){const _0x57c9c6=a82_0x2b99,_0x40e2ac=_0x55094c[_0x57c9c6(0xfb)](/[.+^${}()|[\]\\]/g,_0x57c9c6(0x10c))[_0x57c9c6(0xfb)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x53d787=new RegExp('^'+_0x40e2ac+'$');return _0x53d787[_0x57c9c6(0x103)](_0x21fcb5);}export function getSanitizedUsername(){const _0x2eb599=a82_0x2b99,_0x466597=process['env'][_0x2eb599(0x100)]||process['env']['USERNAME']||'unknown';return _0x466597[_0x2eb599(0xfb)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}function a82_0x2b99(_0x45d962,_0x1312a7){const _0x1928b4=a82_0x1928();return a82_0x2b99=function(_0x2b99f7,_0x1d8e7e){_0x2b99f7=_0x2b99f7-0xfb;let _0x299fe7=_0x1928b4[_0x2b99f7];return _0x299fe7;},a82_0x2b99(_0x45d962,_0x1312a7);}export function generateRandomHex(){const _0x7f91f2=a82_0x2b99,_0x3f12ca=Math[_0x7f91f2(0x110)](Math['random']()*0xfffff);return _0x3f12ca[_0x7f91f2(0xff)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0xd9a13f,_0x322af4){const _0x1bed3c=a81_0xf80d,_0x2d989e=_0xd9a13f();while(!![]){try{const _0x23afd8=-parseInt(_0x1bed3c(0x16d))/0x1*(-parseInt(_0x1bed3c(0x15c))/0x2)+parseInt(_0x1bed3c(0x15e))/0x3*(parseInt(_0x1bed3c(0x16a))/0x4)+-parseInt(_0x1bed3c(0x169))/0x5+-parseInt(_0x1bed3c(0x162))/0x6*(-parseInt(_0x1bed3c(0x173))/0x7)+-parseInt(_0x1bed3c(0x16e))/0x8+-parseInt(_0x1bed3c(0x170))/0x9*(-parseInt(_0x1bed3c(0x168))/0xa)+-parseInt(_0x1bed3c(0x174))/0xb;if(_0x23afd8===_0x322af4)break;else _0x2d989e['push'](_0x2d989e['shift']());}catch(_0x3b7219){_0x2d989e['push'](_0x2d989e['shift']());}}}(a81_0x48ac,0xc7ef1));function hasWildcard(_0x1c646c){const _0x59bce8=a81_0xf80d;return _0x1c646c[_0x59bce8(0x172)]('*')||_0x1c646c[_0x59bce8(0x172)]('?');}export function parseTableReference(_0x7583a5){const _0x256bff=a81_0xf80d;if(!_0x7583a5||_0x7583a5[_0x256bff(0x16f)]()[_0x256bff(0x165)]===0x0)throw new Error(_0x256bff(0x161));const _0x55faf2=_0x7583a5[_0x256bff(0x16f)](),_0x4817d2={'original':_0x55faf2},_0x116d43=_0x55faf2[_0x256bff(0x163)]('.');if(_0x116d43[_0x256bff(0x165)]===0x1){const _0x2f5a4b=_0x116d43[0x0];if(!_0x2f5a4b)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x4817d2['table']=_0x2f5a4b;}else{if(_0x116d43[_0x256bff(0x165)]===0x2){const [_0x31e9f2,_0xd3fb16]=_0x116d43;if(!_0x31e9f2)throw new Error(_0x256bff(0x15d));if(!_0xd3fb16)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x4817d2['database']=_0x31e9f2,_0x4817d2[_0x256bff(0x160)]=_0xd3fb16;}else{if(_0x116d43[_0x256bff(0x165)]===0x3){const [_0x43dc7c,_0x2434f2,_0x3fb9e2]=_0x116d43;if(!_0x43dc7c||!_0x2434f2||!_0x3fb9e2)throw new Error(_0x256bff(0x167));_0x4817d2[_0x256bff(0x164)]=_0x43dc7c,_0x4817d2[_0x256bff(0x15f)]=_0x2434f2,_0x4817d2[_0x256bff(0x160)]=_0x3fb9e2;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x4817d2;}export function formatTableReference(_0x3b3040){const _0x26dd1e=a81_0xf80d,_0x1230f7=[];return _0x3b3040['catalog']&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040[_0x26dd1e(0x164)]),_0x3b3040[_0x26dd1e(0x15f)]&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040[_0x26dd1e(0x15f)]),_0x3b3040[_0x26dd1e(0x160)]&&_0x1230f7[_0x26dd1e(0x171)](_0x3b3040['table']),_0x1230f7[_0x26dd1e(0x175)]('.');}export function validateTableListReference(_0x48b167){return undefined;}function a81_0xf80d(_0x37264d,_0x35f264){const _0x48ac08=a81_0x48ac();return a81_0xf80d=function(_0xf80d96,_0x181c66){_0xf80d96=_0xf80d96-0x15c;let _0x22f586=_0x48ac08[_0xf80d96];return _0x22f586;},a81_0xf80d(_0x37264d,_0x35f264);}function a81_0x48ac(){const _0x152e14=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','186KXDiQu','split','catalog','length','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','11910aBZvql','4108790eskPhM','16tswVZJ','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','47DtjMzC','12515656tTzBpc','trim','12213zjfwXB','push','includes','174223JupVRp','14984332YLOKyC','join','49732ZVodDF','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','758181poRhZn','database','table'];a81_0x48ac=function(){return _0x152e14;};return a81_0x48ac();}export function validateTableDescribeReference(_0x24eede){const _0x117a6d=a81_0xf80d;if(!_0x24eede[_0x117a6d(0x160)])return _0x117a6d(0x16c);if(_0x24eede[_0x117a6d(0x15f)]&&hasWildcard(_0x24eede['database']))return _0x117a6d(0x166);if(hasWildcard(_0x24eede['table']))return _0x117a6d(0x16b);return undefined;}
1
+ function a83_0xe3c1(){const _0x386482=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','catalog','database','2ICundt','18246ydPKfy','join','10735FplZcH','3794076dttvPe','6911980aTpbSS','push','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','28yCWdNY','14GIeQag','512418ypvkXu','trim','2887848TDdZIg','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','length','541495Mcplrg'];a83_0xe3c1=function(){return _0x386482;};return a83_0xe3c1();}function a83_0x43d4(_0x18a1d1,_0xd1f005){const _0xe3c13=a83_0xe3c1();return a83_0x43d4=function(_0x43d45c,_0x490fa8){_0x43d45c=_0x43d45c-0x1d5;let _0x1dab97=_0xe3c13[_0x43d45c];return _0x1dab97;},a83_0x43d4(_0x18a1d1,_0xd1f005);}(function(_0x1b4dce,_0xa4f252){const _0x6afa6e=a83_0x43d4,_0x4cd250=_0x1b4dce();while(!![]){try{const _0x48d140=parseInt(_0x6afa6e(0x1ec))/0x1*(parseInt(_0x6afa6e(0x1e9))/0x2)+parseInt(_0x6afa6e(0x1ea))/0x3*(-parseInt(_0x6afa6e(0x1d8))/0x4)+-parseInt(_0x6afa6e(0x1e3))/0x5+-parseInt(_0x6afa6e(0x1da))/0x6*(parseInt(_0x6afa6e(0x1d9))/0x7)+-parseInt(_0x6afa6e(0x1dc))/0x8+parseInt(_0x6afa6e(0x1ed))/0x9+parseInt(_0x6afa6e(0x1ee))/0xa;if(_0x48d140===_0xa4f252)break;else _0x4cd250['push'](_0x4cd250['shift']());}catch(_0x5c96a0){_0x4cd250['push'](_0x4cd250['shift']());}}}(a83_0xe3c1,0x6ba05));function hasWildcard(_0x20105b){const _0x446dfa=a83_0x43d4;return _0x20105b[_0x446dfa(0x1d6)]('*')||_0x20105b[_0x446dfa(0x1d6)]('?');}export function parseTableReference(_0x2c3632){const _0x5a4d6e=a83_0x43d4;if(!_0x2c3632||_0x2c3632[_0x5a4d6e(0x1db)]()[_0x5a4d6e(0x1e2)]===0x0)throw new Error(_0x5a4d6e(0x1e0));const _0x27cabd=_0x2c3632[_0x5a4d6e(0x1db)](),_0x1d3898={'original':_0x27cabd},_0x50a91f=_0x27cabd[_0x5a4d6e(0x1e6)]('.');if(_0x50a91f[_0x5a4d6e(0x1e2)]===0x1){const _0x2d881d=_0x50a91f[0x0];if(!_0x2d881d)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1d3898[_0x5a4d6e(0x1e1)]=_0x2d881d;}else{if(_0x50a91f['length']===0x2){const [_0x153b44,_0x4d3b9e]=_0x50a91f;if(!_0x153b44)throw new Error(_0x5a4d6e(0x1e5));if(!_0x4d3b9e)throw new Error(_0x5a4d6e(0x1df));_0x1d3898[_0x5a4d6e(0x1e8)]=_0x153b44,_0x1d3898[_0x5a4d6e(0x1e1)]=_0x4d3b9e;}else{if(_0x50a91f[_0x5a4d6e(0x1e2)]===0x3){const [_0x18c498,_0x20e029,_0x390ca9]=_0x50a91f;if(!_0x18c498||!_0x20e029||!_0x390ca9)throw new Error(_0x5a4d6e(0x1de));_0x1d3898[_0x5a4d6e(0x1e7)]=_0x18c498,_0x1d3898['database']=_0x20e029,_0x1d3898[_0x5a4d6e(0x1e1)]=_0x390ca9;}else throw new Error(_0x5a4d6e(0x1dd));}}return _0x1d3898;}export function formatTableReference(_0x66518d){const _0x20a641=a83_0x43d4,_0x411b52=[];return _0x66518d[_0x20a641(0x1e7)]&&_0x411b52['push'](_0x66518d['catalog']),_0x66518d[_0x20a641(0x1e8)]&&_0x411b52[_0x20a641(0x1d5)](_0x66518d[_0x20a641(0x1e8)]),_0x66518d[_0x20a641(0x1e1)]&&_0x411b52['push'](_0x66518d[_0x20a641(0x1e1)]),_0x411b52[_0x20a641(0x1eb)]('.');}export function validateTableListReference(_0x40c407){return undefined;}export function validateTableDescribeReference(_0x1c70e0){const _0x29e6d3=a83_0x43d4;if(!_0x1c70e0[_0x29e6d3(0x1e1)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x1c70e0['database']&&hasWildcard(_0x1c70e0['database']))return _0x29e6d3(0x1e4);if(hasWildcard(_0x1c70e0[_0x29e6d3(0x1e1)]))return _0x29e6d3(0x1d7);return undefined;}
@@ -1 +1 @@
1
- const a82_0x4ebb56=a82_0xea55;function a82_0x414c(){const _0x1d1a80=['1866108SJHITg','logLevel','11ozeVbK','name','warn','logStream','tdx.log','abs','8saVPcl','DEBUG','.gz','info','getLogPath','getFullYear','2898600bekqDr','Warning:\x20Error\x20writing\x20to\x20tdx.log:','red','cause','TRACE','toISOString','tdx-','tdx','write','debug','init','log','split','getDate','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','error','getHours','415921BNVDEz','70lAqoHS','padStart','logDir','stringify','test','floor','.cache','864378ZwUzzM','message','3141420oPUMNg','WARN','Warning:\x20Failed\x20to\x20compress\x20','trace','.log','stack','includes','getMilliseconds','2KgSgYj','2996328jLcyzu','toString','ERROR','fileOnly','5GOegwM','2768794mlYbmu','map','getSeconds','INFO','join','rotateOldLogs','gray','logs'];a82_0x414c=function(){return _0x1d1a80;};return a82_0x414c();}(function(_0x329d9b,_0x397ae5){const _0x590c83=a82_0xea55,_0x2f5b82=_0x329d9b();while(!![]){try{const _0xf28b1e=-parseInt(_0x590c83(0x1ef))/0x1*(parseInt(_0x590c83(0x201))/0x2)+-parseInt(_0x590c83(0x1de))/0x3+-parseInt(_0x590c83(0x202))/0x4*(-parseInt(_0x590c83(0x206))/0x5)+parseInt(_0x590c83(0x20f))/0x6+-parseInt(_0x590c83(0x207))/0x7*(-parseInt(_0x590c83(0x217))/0x8)+parseInt(_0x590c83(0x1f7))/0x9*(parseInt(_0x590c83(0x1f0))/0xa)+parseInt(_0x590c83(0x211))/0xb*(-parseInt(_0x590c83(0x1f9))/0xc);if(_0xf28b1e===_0x397ae5)break;else _0x2f5b82['push'](_0x2f5b82['shift']());}catch(_0x413ab0){_0x2f5b82['push'](_0x2f5b82['shift']());}}}(a82_0x414c,0x762be));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a82_0x676094 from'chalk';function safeStringify(_0xcb6069){const _0xa6fe76=a82_0xea55;if(typeof _0xcb6069==='string')return _0xcb6069;if(_0xcb6069 instanceof Error)return _0xcb6069[_0xa6fe76(0x1fe)]||_0xcb6069[_0xa6fe76(0x212)]+':\x20'+_0xcb6069[_0xa6fe76(0x1f8)];try{return JSON[_0xa6fe76(0x1f3)](_0xcb6069,(_0x11d891,_0x50e8e0)=>{const _0x1aae06=_0xa6fe76;if(_0x50e8e0 instanceof Error)return{'name':_0x50e8e0[_0x1aae06(0x212)],'message':_0x50e8e0[_0x1aae06(0x1f8)],'stack':_0x50e8e0[_0x1aae06(0x1fe)],'cause':_0x50e8e0[_0x1aae06(0x1e1)]};return _0x50e8e0;});}catch{return String(_0xcb6069);}}function getTimezoneOffset(){const _0x3957a4=a82_0xea55,_0x3adb70=-new Date()['getTimezoneOffset'](),_0x2e872c=Math[_0x3957a4(0x1f5)](Math[_0x3957a4(0x216)](_0x3adb70)/0x3c),_0xfff66b=Math[_0x3957a4(0x216)](_0x3adb70)%0x3c,_0x9fd8ca=_0x3adb70>=0x0?'+':'-';return''+_0x9fd8ca+_0x2e872c[_0x3957a4(0x203)]()[_0x3957a4(0x1f1)](0x2,'0')+_0xfff66b['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x162137=a82_0xea55,_0x34b56e=new Date(),_0xf44e13=_0x34b56e[_0x162137(0x1dd)](),_0x11ede0=(_0x34b56e['getMonth']()+0x1)['toString']()[_0x162137(0x1f1)](0x2,'0'),_0x538f03=_0x34b56e[_0x162137(0x1eb)]()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0x33d557=_0x34b56e[_0x162137(0x1ee)]()['toString']()[_0x162137(0x1f1)](0x2,'0'),_0x20b238=_0x34b56e['getMinutes']()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0xfd8135=_0x34b56e[_0x162137(0x209)]()[_0x162137(0x203)]()[_0x162137(0x1f1)](0x2,'0'),_0x33c32d=_0x34b56e[_0x162137(0x200)]()['toString']()[_0x162137(0x1f1)](0x3,'0'),_0x436d21=getTimezoneOffset();return _0xf44e13+'-'+_0x11ede0+'-'+_0x538f03+'\x20'+_0x33d557+':'+_0x20b238+':'+_0xfd8135+'.'+_0x33c32d+_0x436d21;}function formatColoredLogEntry(_0x32069f,_0x325cbf){const _0x143104=a82_0xea55,_0xc12a51=formatTimestamp(),_0x527876=_0x325cbf[_0x143104(0x208)](safeStringify)[_0x143104(0x20b)]('\x20'),_0x245439=a82_0x676094[_0x143104(0x20d)](_0xc12a51);let _0x1d3496;switch(_0x32069f){case'info':_0x1d3496=a82_0x676094['cyan']('['+_0x32069f+']\x20');break;case _0x143104(0x213):_0x1d3496=a82_0x676094['yellow']('['+_0x32069f+']\x20');break;case _0x143104(0x1ed):_0x1d3496=a82_0x676094[_0x143104(0x1e0)]('['+_0x32069f+']');break;case _0x143104(0x1e7):_0x1d3496=a82_0x676094[_0x143104(0x20d)]('['+_0x32069f+']');break;default:_0x1d3496='['+_0x32069f+']';}return _0x245439+'\x20'+_0x1d3496+'\x20'+_0x527876;}export var LogLevel;function a82_0xea55(_0x545801,_0x1c7bf5){const _0x414c61=a82_0x414c();return a82_0xea55=function(_0xea556d,_0x69f0e6){_0xea556d=_0xea556d-0x1dd;let _0x417e42=_0x414c61[_0xea556d];return _0x417e42;},a82_0xea55(_0x545801,_0x1c7bf5);}(function(_0x3545b5){const _0x5418ee=a82_0xea55;_0x3545b5[_0x3545b5[_0x5418ee(0x1e2)]=-0x2]=_0x5418ee(0x1e2),_0x3545b5[_0x3545b5[_0x5418ee(0x218)]=-0x1]=_0x5418ee(0x218),_0x3545b5[_0x3545b5[_0x5418ee(0x20a)]=0x0]='INFO',_0x3545b5[_0x3545b5[_0x5418ee(0x1fa)]=0x1]=_0x5418ee(0x1fa),_0x3545b5[_0x3545b5[_0x5418ee(0x204)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a82_0x4ebb56(0x214)];[a82_0x4ebb56(0x1f2)];[a82_0x4ebb56(0x210)];['fileOnly'];constructor(_0x1bf0cf=LogLevel['INFO'],_0x4f6a3d=![]){const _0x479d84=a82_0x4ebb56;this[_0x479d84(0x1f2)]=join(homedir(),_0x479d84(0x1f6),_0x479d84(0x1e5),_0x479d84(0x20e)),this['logLevel']=_0x1bf0cf,this[_0x479d84(0x205)]=_0x4f6a3d;}async[a82_0x4ebb56(0x1e8)](){const _0x2b5adb=a82_0x4ebb56;try{await mkdir(this[_0x2b5adb(0x1f2)],{'recursive':!![]}),await this[_0x2b5adb(0x20c)]();const _0x341e30=join(this[_0x2b5adb(0x1f2)],'tdx.log');this[_0x2b5adb(0x214)]=createWriteStream(_0x341e30,{'flags':'a'}),this[_0x2b5adb(0x214)]['on'](_0x2b5adb(0x1ed),_0x54ffec=>{const _0x199f44=_0x2b5adb;console['error'](_0x199f44(0x1df),_0x54ffec[_0x199f44(0x1f8)]);});}catch(_0x259084){console[_0x2b5adb(0x1ed)](_0x2b5adb(0x1ec),_0x259084);}}async[a82_0x4ebb56(0x20c)](){const _0x5ebafb=a82_0x4ebb56;try{const _0x3620d6=await readdir(this[_0x5ebafb(0x1f2)]),_0x1b3b23=new Date()[_0x5ebafb(0x1e3)]()['split']('T')[0x0];if(_0x3620d6[_0x5ebafb(0x1ff)](_0x5ebafb(0x215))){const _0x548b84=join(this[_0x5ebafb(0x1f2)],_0x5ebafb(0x215)),_0x2a68f3=await stat(_0x548b84),_0x2a5fe2=new Date(_0x2a68f3['mtime'])[_0x5ebafb(0x1e3)]()[_0x5ebafb(0x1ea)]('T')[0x0];if(_0x2a5fe2<_0x1b3b23){const _0x5d7981=join(this[_0x5ebafb(0x1f2)],_0x5ebafb(0x1e4)+_0x2a5fe2+_0x5ebafb(0x1fd));await rename(_0x548b84,_0x5d7981);}}const _0x4fa13b=await readdir(this[_0x5ebafb(0x1f2)]),_0x17e547=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x240a7c=_0x4fa13b['filter'](_0x56ebd1=>_0x17e547[_0x5ebafb(0x1f4)](_0x56ebd1));for(const _0x343700 of _0x240a7c){const _0x10f68a=join(this[_0x5ebafb(0x1f2)],_0x343700),_0x3c528c=join(this[_0x5ebafb(0x1f2)],_0x343700+_0x5ebafb(0x219));try{await pipeline(createReadStream(_0x10f68a),createGzip(),createWriteStream(_0x3c528c)),await unlink(_0x10f68a);}catch(_0x5f46a0){console[_0x5ebafb(0x1ed)](_0x5ebafb(0x1fb)+_0x343700+':',_0x5f46a0);}}}catch{}}[a82_0x4ebb56(0x1e7)](..._0x3f0efe){const _0x550892=a82_0x4ebb56;if(this[_0x550892(0x210)]>LogLevel[_0x550892(0x218)])return;const _0x3cb020=formatColoredLogEntry(_0x550892(0x1e7),_0x3f0efe);this['logStream']?.[_0x550892(0x1e6)](_0x3cb020+'\x0a');}['trace'](..._0x5b2da9){const _0x375b17=a82_0x4ebb56;if(this[_0x375b17(0x210)]>LogLevel[_0x375b17(0x1e2)])return;const _0x34bd46=formatColoredLogEntry(_0x375b17(0x1fc),_0x5b2da9);this[_0x375b17(0x214)]?.[_0x375b17(0x1e6)](_0x34bd46+'\x0a');}[a82_0x4ebb56(0x21a)](..._0x16d867){const _0x3e7fda=a82_0x4ebb56;if(this[_0x3e7fda(0x210)]>LogLevel[_0x3e7fda(0x20a)])return;const _0x1e23f0=formatColoredLogEntry(_0x3e7fda(0x21a),_0x16d867);!this[_0x3e7fda(0x205)]&&console[_0x3e7fda(0x1e9)](_0x1e23f0),this[_0x3e7fda(0x214)]?.['write'](_0x1e23f0+'\x0a');}[a82_0x4ebb56(0x213)](..._0x2ea7e5){const _0x5adb30=a82_0x4ebb56;if(this['logLevel']>LogLevel[_0x5adb30(0x1fa)])return;const _0x3246d8=formatColoredLogEntry(_0x5adb30(0x213),_0x2ea7e5);!this[_0x5adb30(0x205)]&&console[_0x5adb30(0x1ed)](_0x3246d8),this['logStream']?.[_0x5adb30(0x1e6)](_0x3246d8+'\x0a');}[a82_0x4ebb56(0x1ed)](..._0xe24ccb){const _0x2b2dc4=a82_0x4ebb56,_0x1c8346=formatColoredLogEntry(_0x2b2dc4(0x1ed),_0xe24ccb);!this[_0x2b2dc4(0x205)]&&console[_0x2b2dc4(0x1ed)](_0x1c8346),this['logStream']?.[_0x2b2dc4(0x1e6)](_0x1c8346+'\x0a');}async['close'](){const _0x473383=a82_0x4ebb56;return this[_0x473383(0x21a)]('Proxy\x20session\x20ended'),new Promise(_0x2a6000=>{const _0x513b53=_0x473383;this[_0x513b53(0x214)]?this[_0x513b53(0x214)]['end'](()=>{_0x2a6000();}):_0x2a6000();});}[a82_0x4ebb56(0x21b)](){const _0x5dcfee=a82_0x4ebb56;return join(this[_0x5dcfee(0x1f2)],_0x5dcfee(0x215));}}
1
+ const a84_0x3322e1=a84_0x3418;function a84_0x153e(){const _0x5bef48=['INFO','.gz','abs','warn','error','cyan','padStart','740628ZjfimP','tdx','logs','209306Fplhyk','tdx.log','write','46660SyKmKu','test','getDate','getHours','3294PNRBDH','getMonth','.cache','floor','string','getMilliseconds','toString','split','DEBUG','info','getMinutes','logStream','stack','3566778ABsdnA','3101aRSlPp','fileOnly','ERROR','name','red','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','363994tmUWrE','TRACE','logLevel','logDir','getLogPath','12Zgovqi','WARN','774715lSugGc','filter','rotateOldLogs','cause','join','includes','12440xLwRTQ','trace','message','getTimezoneOffset','Warning:\x20Failed\x20to\x20compress\x20','.log','debug','toISOString','map'];a84_0x153e=function(){return _0x5bef48;};return a84_0x153e();}(function(_0x55ef4a,_0xd3591f){const _0x1126cf=a84_0x3418,_0x33eb9e=_0x55ef4a();while(!![]){try{const _0x36ae5c=-parseInt(_0x1126cf(0x141))/0x1+-parseInt(_0x1126cf(0x161))/0x2+-parseInt(_0x1126cf(0x15e))/0x3+parseInt(_0x1126cf(0x146))/0x4*(-parseInt(_0x1126cf(0x148))/0x5)+parseInt(_0x1126cf(0x13a))/0x6+parseInt(_0x1126cf(0x13b))/0x7*(-parseInt(_0x1126cf(0x14e))/0x8)+parseInt(_0x1126cf(0x168))/0x9*(parseInt(_0x1126cf(0x164))/0xa);if(_0x36ae5c===_0xd3591f)break;else _0x33eb9e['push'](_0x33eb9e['shift']());}catch(_0x3ddc8b){_0x33eb9e['push'](_0x33eb9e['shift']());}}}(a84_0x153e,0x69b6a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a84_0x3418(_0x610ef1,_0x1d1a3b){const _0x153e67=a84_0x153e();return a84_0x3418=function(_0x34184a,_0x169953){_0x34184a=_0x34184a-0x130;let _0x54e6d4=_0x153e67[_0x34184a];return _0x54e6d4;},a84_0x3418(_0x610ef1,_0x1d1a3b);}import{pipeline}from'stream/promises';import a84_0x20f525 from'chalk';function safeStringify(_0x21b79c){const _0x329294=a84_0x3418;if(typeof _0x21b79c===_0x329294(0x131))return _0x21b79c;if(_0x21b79c instanceof Error)return _0x21b79c[_0x329294(0x139)]||_0x21b79c[_0x329294(0x13e)]+':\x20'+_0x21b79c[_0x329294(0x150)];try{return JSON['stringify'](_0x21b79c,(_0x4b5ddc,_0x1fb5a1)=>{const _0x2363d6=_0x329294;if(_0x1fb5a1 instanceof Error)return{'name':_0x1fb5a1['name'],'message':_0x1fb5a1[_0x2363d6(0x150)],'stack':_0x1fb5a1[_0x2363d6(0x139)],'cause':_0x1fb5a1[_0x2363d6(0x14b)]};return _0x1fb5a1;});}catch{return String(_0x21b79c);}}function getTimezoneOffset(){const _0x39d6e1=a84_0x3418,_0x5796ad=-new Date()[_0x39d6e1(0x151)](),_0x5a676b=Math[_0x39d6e1(0x130)](Math[_0x39d6e1(0x159)](_0x5796ad)/0x3c),_0x4b3dce=Math[_0x39d6e1(0x159)](_0x5796ad)%0x3c,_0x2bd091=_0x5796ad>=0x0?'+':'-';return''+_0x2bd091+_0x5a676b[_0x39d6e1(0x133)]()[_0x39d6e1(0x15d)](0x2,'0')+_0x4b3dce[_0x39d6e1(0x133)]()[_0x39d6e1(0x15d)](0x2,'0');}function formatTimestamp(){const _0x2b1097=a84_0x3418,_0x5248e8=new Date(),_0x9b4498=_0x5248e8['getFullYear'](),_0x2b63c7=(_0x5248e8[_0x2b1097(0x169)]()+0x1)[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x6cfa70=_0x5248e8[_0x2b1097(0x166)]()['toString']()['padStart'](0x2,'0'),_0x4216ee=_0x5248e8[_0x2b1097(0x167)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x5db25a=_0x5248e8[_0x2b1097(0x137)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x2,'0'),_0x43be5a=_0x5248e8['getSeconds']()[_0x2b1097(0x133)]()['padStart'](0x2,'0'),_0x6a6faa=_0x5248e8[_0x2b1097(0x132)]()[_0x2b1097(0x133)]()[_0x2b1097(0x15d)](0x3,'0'),_0x22b7c5=getTimezoneOffset();return _0x9b4498+'-'+_0x2b63c7+'-'+_0x6cfa70+'\x20'+_0x4216ee+':'+_0x5db25a+':'+_0x43be5a+'.'+_0x6a6faa+_0x22b7c5;}function formatColoredLogEntry(_0x320968,_0x24db6d){const _0x1c579b=a84_0x3418,_0x4455f9=formatTimestamp(),_0x4263fb=_0x24db6d[_0x1c579b(0x156)](safeStringify)[_0x1c579b(0x14c)]('\x20'),_0x390b44=a84_0x20f525['gray'](_0x4455f9);let _0x5e9212;switch(_0x320968){case _0x1c579b(0x136):_0x5e9212=a84_0x20f525[_0x1c579b(0x15c)]('['+_0x320968+']\x20');break;case'warn':_0x5e9212=a84_0x20f525['yellow']('['+_0x320968+']\x20');break;case _0x1c579b(0x15b):_0x5e9212=a84_0x20f525[_0x1c579b(0x13f)]('['+_0x320968+']');break;case _0x1c579b(0x154):_0x5e9212=a84_0x20f525['gray']('['+_0x320968+']');break;default:_0x5e9212='['+_0x320968+']';}return _0x390b44+'\x20'+_0x5e9212+'\x20'+_0x4263fb;}export var LogLevel;(function(_0x49261b){const _0x23c85e=a84_0x3418;_0x49261b[_0x49261b[_0x23c85e(0x142)]=-0x2]=_0x23c85e(0x142),_0x49261b[_0x49261b['DEBUG']=-0x1]=_0x23c85e(0x135),_0x49261b[_0x49261b[_0x23c85e(0x157)]=0x0]=_0x23c85e(0x157),_0x49261b[_0x49261b[_0x23c85e(0x147)]=0x1]=_0x23c85e(0x147),_0x49261b[_0x49261b[_0x23c85e(0x13d)]=0x2]=_0x23c85e(0x13d);}(LogLevel||(LogLevel={})));export class TDXLogger{[a84_0x3322e1(0x138)];[a84_0x3322e1(0x144)];[a84_0x3322e1(0x143)];[a84_0x3322e1(0x13c)];constructor(_0xb48ae8=LogLevel['INFO'],_0x4f27c9=![]){const _0x4a2a90=a84_0x3322e1;this[_0x4a2a90(0x144)]=join(homedir(),_0x4a2a90(0x16a),_0x4a2a90(0x15f),_0x4a2a90(0x160)),this[_0x4a2a90(0x143)]=_0xb48ae8,this[_0x4a2a90(0x13c)]=_0x4f27c9;}async['init'](){const _0x8eb0eb=a84_0x3322e1;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x8eb0eb(0x14a)]();const _0x60b636=join(this[_0x8eb0eb(0x144)],_0x8eb0eb(0x162));this[_0x8eb0eb(0x138)]=createWriteStream(_0x60b636,{'flags':'a'}),this[_0x8eb0eb(0x138)]['on']('error',_0x5f2983=>{const _0x5d4560=_0x8eb0eb;console[_0x5d4560(0x15b)]('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x5f2983[_0x5d4560(0x150)]);});}catch(_0x21f657){console[_0x8eb0eb(0x15b)](_0x8eb0eb(0x140),_0x21f657);}}async[a84_0x3322e1(0x14a)](){const _0x32fcb6=a84_0x3322e1;try{const _0x28730a=await readdir(this['logDir']),_0x48f398=new Date()[_0x32fcb6(0x155)]()[_0x32fcb6(0x134)]('T')[0x0];if(_0x28730a[_0x32fcb6(0x14d)](_0x32fcb6(0x162))){const _0x23c7c9=join(this[_0x32fcb6(0x144)],_0x32fcb6(0x162)),_0x26bb03=await stat(_0x23c7c9),_0x8878b1=new Date(_0x26bb03['mtime'])[_0x32fcb6(0x155)]()[_0x32fcb6(0x134)]('T')[0x0];if(_0x8878b1<_0x48f398){const _0x62a0f0=join(this[_0x32fcb6(0x144)],'tdx-'+_0x8878b1+_0x32fcb6(0x153));await rename(_0x23c7c9,_0x62a0f0);}}const _0x3d90c8=await readdir(this[_0x32fcb6(0x144)]),_0x48f824=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x5b8521=_0x3d90c8[_0x32fcb6(0x149)](_0x58f59c=>_0x48f824[_0x32fcb6(0x165)](_0x58f59c));for(const _0x1517d9 of _0x5b8521){const _0x167c2a=join(this[_0x32fcb6(0x144)],_0x1517d9),_0x54addb=join(this['logDir'],_0x1517d9+_0x32fcb6(0x158));try{await pipeline(createReadStream(_0x167c2a),createGzip(),createWriteStream(_0x54addb)),await unlink(_0x167c2a);}catch(_0x440c2b){console[_0x32fcb6(0x15b)](_0x32fcb6(0x152)+_0x1517d9+':',_0x440c2b);}}}catch{}}[a84_0x3322e1(0x154)](..._0x48878d){const _0x5ac085=a84_0x3322e1;if(this[_0x5ac085(0x143)]>LogLevel[_0x5ac085(0x135)])return;const _0xdb3825=formatColoredLogEntry(_0x5ac085(0x154),_0x48878d);this[_0x5ac085(0x138)]?.['write'](_0xdb3825+'\x0a');}[a84_0x3322e1(0x14f)](..._0x5ebd45){const _0x34f332=a84_0x3322e1;if(this[_0x34f332(0x143)]>LogLevel[_0x34f332(0x142)])return;const _0x33ebe3=formatColoredLogEntry(_0x34f332(0x14f),_0x5ebd45);this['logStream']?.[_0x34f332(0x163)](_0x33ebe3+'\x0a');}[a84_0x3322e1(0x136)](..._0x30a2c5){const _0x2b04d5=a84_0x3322e1;if(this[_0x2b04d5(0x143)]>LogLevel[_0x2b04d5(0x157)])return;const _0x9a98bc=formatColoredLogEntry(_0x2b04d5(0x136),_0x30a2c5);!this[_0x2b04d5(0x13c)]&&console['log'](_0x9a98bc),this['logStream']?.[_0x2b04d5(0x163)](_0x9a98bc+'\x0a');}[a84_0x3322e1(0x15a)](..._0x38a320){const _0x3826f8=a84_0x3322e1;if(this[_0x3826f8(0x143)]>LogLevel[_0x3826f8(0x147)])return;const _0x4e0b45=formatColoredLogEntry(_0x3826f8(0x15a),_0x38a320);!this[_0x3826f8(0x13c)]&&console[_0x3826f8(0x15b)](_0x4e0b45),this['logStream']?.['write'](_0x4e0b45+'\x0a');}['error'](..._0x3939a5){const _0x45eb0d=a84_0x3322e1,_0x2e8b0d=formatColoredLogEntry(_0x45eb0d(0x15b),_0x3939a5);!this['fileOnly']&&console[_0x45eb0d(0x15b)](_0x2e8b0d),this[_0x45eb0d(0x138)]?.[_0x45eb0d(0x163)](_0x2e8b0d+'\x0a');}async['close'](){const _0x338b84=a84_0x3322e1;return this[_0x338b84(0x136)]('Proxy\x20session\x20ended'),new Promise(_0x1292bd=>{const _0x74c8f2=_0x338b84;this[_0x74c8f2(0x138)]?this[_0x74c8f2(0x138)]['end'](()=>{_0x1292bd();}):_0x1292bd();});}[a84_0x3322e1(0x145)](){const _0x42b0c3=a84_0x3322e1;return join(this[_0x42b0c3(0x144)],_0x42b0c3(0x162));}}
@@ -1 +1 @@
1
- (function(_0x43b8b8,_0xa8035a){const _0x35c1ac=a83_0x3b64,_0xa9d950=_0x43b8b8();while(!![]){try{const _0x35edc1=-parseInt(_0x35c1ac(0x1ad))/0x1+-parseInt(_0x35c1ac(0x1c2))/0x2+parseInt(_0x35c1ac(0x1bb))/0x3*(parseInt(_0x35c1ac(0x1b3))/0x4)+parseInt(_0x35c1ac(0x1cb))/0x5+-parseInt(_0x35c1ac(0x1b9))/0x6+parseInt(_0x35c1ac(0x1c4))/0x7*(-parseInt(_0x35c1ac(0x1ca))/0x8)+-parseInt(_0x35c1ac(0x1b2))/0x9*(-parseInt(_0x35c1ac(0x1c7))/0xa);if(_0x35edc1===_0xa8035a)break;else _0xa9d950['push'](_0xa9d950['shift']());}catch(_0x49a9c1){_0xa9d950['push'](_0xa9d950['shift']());}}}(a83_0x3698,0x216da));import{formatRows}from'./formatters.js';function a83_0x3b64(_0x2076f2,_0x1c7eb4){const _0x3698d6=a83_0x3698();return a83_0x3b64=function(_0x3b644e,_0x2505ba){_0x3b644e=_0x3b644e-0x1ab;let _0x5e12ee=_0x3698d6[_0x3b644e];return _0x5e12ee;},a83_0x3b64(_0x2076f2,_0x1c7eb4);}import a83_0x2cb42b from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x3104ae,_0x9a1fa6={},_0x171540=0x0,_0x308bed=''){const _0x32ce0c=a83_0x3b64,_0x14ce89={...DEFAULT_OPTIONS,..._0x9a1fa6},_0x1ab219=[],_0xb12788=[..._0x3104ae][_0x32ce0c(0x1c1)]((_0x19cb4a,_0x3defe8)=>_0x19cb4a[_0x32ce0c(0x1ce)][_0x32ce0c(0x1ab)](_0x3defe8['name']));for(let _0x2a84a7=0x0;_0x2a84a7<_0xb12788[_0x32ce0c(0x1bd)];_0x2a84a7++){const _0x4b787b=_0xb12788[_0x2a84a7],_0x30bde4=_0x2a84a7===_0xb12788[_0x32ce0c(0x1bd)]-0x1;let _0x711422='';_0x171540>0x0&&(_0x711422+=_0x308bed);_0x14ce89['showTreeLines']&&_0x171540>0x0&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)](_0x30bde4?_0x32ce0c(0x1bf):_0x32ce0c(0x1cd)));_0x14ce89[_0x32ce0c(0x1c0)]&&(_0x711422+=_0x4b787b[_0x32ce0c(0x1b7)]==='folder'?_0x32ce0c(0x1c9):_0x32ce0c(0x1c8));_0x711422+=_0x4b787b[_0x32ce0c(0x1ce)];if(_0x14ce89['showMetadata']){if(_0x4b787b[_0x32ce0c(0x1b7)]===_0x32ce0c(0x1ba)){const _0x3aec0d=[];_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]&&_0x3aec0d[_0x32ce0c(0x1c3)](_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]+'\x20segment'+(_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1b8)]!==0x1?'s':'')),_0x4b787b[_0x32ce0c(0x1ae)]['folderCount']&&_0x3aec0d[_0x32ce0c(0x1c3)](_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1cc)]+_0x32ce0c(0x1b0)+(_0x4b787b[_0x32ce0c(0x1ae)][_0x32ce0c(0x1cc)]!==0x1?'s':'')),_0x3aec0d[_0x32ce0c(0x1bd)]>0x0&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)]('\x20('+_0x3aec0d['join'](',\x20')+')'));}else _0x4b787b['type']===_0x32ce0c(0x1b6)&&_0x4b787b[_0x32ce0c(0x1c6)]!==undefined&&(_0x711422+=a83_0x2cb42b[_0x32ce0c(0x1cf)]('\x20('+formatRows(_0x4b787b[_0x32ce0c(0x1c6)])+')'));}_0x1ab219['push'](_0x711422);if(_0x4b787b[_0x32ce0c(0x1b1)]&&_0x4b787b[_0x32ce0c(0x1b1)][_0x32ce0c(0x1bd)]>0x0){let _0x4fccc2;if(_0x171540===0x0)_0x4fccc2='';else _0x14ce89[_0x32ce0c(0x1be)]?_0x4fccc2=_0x308bed+(_0x30bde4?_0x32ce0c(0x1b4):a83_0x2cb42b[_0x32ce0c(0x1cf)]('│')+'\x20\x20\x20'):_0x4fccc2=_0x308bed+_0x14ce89[_0x32ce0c(0x1bc)];const _0x529f32=formatTree(_0x4b787b[_0x32ce0c(0x1b1)],_0x14ce89,_0x171540+0x1,_0x4fccc2);_0x1ab219[_0x32ce0c(0x1c3)](_0x529f32);}}return _0x1ab219[_0x32ce0c(0x1b5)]('\x0a');}export function formatFlatList(_0x17b184,_0x4c86e0,_0x187894={}){const _0x4a0e95=a83_0x3b64,_0x387e4f={...DEFAULT_OPTIONS,..._0x187894},_0x306ed3=[];for(const _0x27becd of _0x17b184){_0x306ed3[_0x4a0e95(0x1c3)]({'name':_0x27becd['name'],'icon':_0x387e4f[_0x4a0e95(0x1c0)]?'📁':'','metadata':undefined});}for(const _0x539cfc of _0x4c86e0){const _0x44515b=_0x387e4f[_0x4a0e95(0x1ac)]&&_0x539cfc[_0x4a0e95(0x1c6)]!==undefined?a83_0x2cb42b[_0x4a0e95(0x1cf)]('\x20('+formatRows(_0x539cfc[_0x4a0e95(0x1c6)])+')'):'';_0x306ed3['push']({'name':_0x539cfc[_0x4a0e95(0x1ce)],'icon':_0x387e4f['showIcons']?'🎯':'','metadata':_0x44515b});}_0x306ed3['sort']((_0x39aeed,_0x2e852e)=>_0x39aeed[_0x4a0e95(0x1ce)][_0x4a0e95(0x1ab)](_0x2e852e[_0x4a0e95(0x1ce)]));if(_0x306ed3[_0x4a0e95(0x1bd)]===0x0)return'(empty)';const _0x106ebb=_0x306ed3[_0x4a0e95(0x1af)](_0x43250f=>{const _0x54d006=_0x4a0e95,_0x5e6d01=_0x43250f[_0x54d006(0x1c5)]?_0x43250f['icon']+'\x20':'',_0x4b14ef=_0x43250f[_0x54d006(0x1ae)]||'';return''+_0x5e6d01+_0x43250f[_0x54d006(0x1ce)]+_0x4b14ef;});return _0x106ebb[_0x4a0e95(0x1b5)]('\x0a');}function a83_0x3698(){const _0x2a682c=['374686vyascy','push','1805965fWblTr','icon','population','1811220mNVsnE','🎯\x20','📁\x20','8hwQLHO','735475YUJYVX','folderCount','├──\x20','name','dim','localeCompare','showMetadata','19924hgLZef','metadata','map','\x20folder','children','27WPEHKQ','4zQzaOR','\x20\x20\x20\x20','join','segment','type','segmentCount','974772SslwEM','folder','222555xhbahD','indent','length','showTreeLines','└──\x20','showIcons','sort'];a83_0x3698=function(){return _0x2a682c;};return a83_0x3698();}
1
+ function a85_0xb169(_0x15e739,_0x5e7e83){const _0x217639=a85_0x2176();return a85_0xb169=function(_0xb169a9,_0x599505){_0xb169a9=_0xb169a9-0x79;let _0x5933fa=_0x217639[_0xb169a9];return _0x5933fa;},a85_0xb169(_0x15e739,_0x5e7e83);}function a85_0x2176(){const _0x45eccf=['indent','segment','643776wnRhKa','\x20folder','716934LEaelp','463534onKMXI','map','\x20segment','📁\x20','type','showTreeLines','metadata','3RQbRLa','13392rwNHiH','icon','push','3735389ivbvMK','showIcons','└──\x20','showMetadata','length','9176ziLnwM','folderCount','3363415dlyYMi','name','localeCompare','├──\x20','dim','join','segmentCount','children','\x20\x20\x20\x20','folder','\x20\x20\x20','population','2110784YHrlHj'];a85_0x2176=function(){return _0x45eccf;};return a85_0x2176();}(function(_0x128217,_0x37f9f7){const _0x8c98af=a85_0xb169,_0x286e2f=_0x128217();while(!![]){try{const _0x307bc6=-parseInt(_0x8c98af(0x92))/0x1*(-parseInt(_0x8c98af(0x8b))/0x2)+-parseInt(_0x8c98af(0x88))/0x3+parseInt(_0x8c98af(0x85))/0x4+parseInt(_0x8c98af(0x79))/0x5+-parseInt(_0x8c98af(0x8a))/0x6+parseInt(_0x8c98af(0x96))/0x7+parseInt(_0x8c98af(0x9b))/0x8*(-parseInt(_0x8c98af(0x93))/0x9);if(_0x307bc6===_0x37f9f7)break;else _0x286e2f['push'](_0x286e2f['shift']());}catch(_0x36f7e9){_0x286e2f['push'](_0x286e2f['shift']());}}}(a85_0x2176,0x5ed8a));import{formatRows}from'./formatters.js';import a85_0x5e8c68 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x23f199,_0x434956={},_0x4fa96f=0x0,_0x23953e=''){const _0x3305b2=a85_0xb169,_0x2e8828={...DEFAULT_OPTIONS,..._0x434956},_0x526e3b=[],_0x53a61e=[..._0x23f199]['sort']((_0xd92a19,_0x13da43)=>_0xd92a19[_0x3305b2(0x7a)][_0x3305b2(0x7b)](_0x13da43[_0x3305b2(0x7a)]));for(let _0x15dab8=0x0;_0x15dab8<_0x53a61e[_0x3305b2(0x9a)];_0x15dab8++){const _0x399309=_0x53a61e[_0x15dab8],_0x49b534=_0x15dab8===_0x53a61e[_0x3305b2(0x9a)]-0x1;let _0x9b8af8='';_0x4fa96f>0x0&&(_0x9b8af8+=_0x23953e);_0x2e8828[_0x3305b2(0x90)]&&_0x4fa96f>0x0&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)](_0x49b534?_0x3305b2(0x98):_0x3305b2(0x7c)));_0x2e8828[_0x3305b2(0x97)]&&(_0x9b8af8+=_0x399309['type']===_0x3305b2(0x82)?_0x3305b2(0x8e):'🎯\x20');_0x9b8af8+=_0x399309[_0x3305b2(0x7a)];if(_0x2e8828[_0x3305b2(0x99)]){if(_0x399309[_0x3305b2(0x8f)]===_0x3305b2(0x82)){const _0x56f83b=[];_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]&&_0x56f83b[_0x3305b2(0x95)](_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]+_0x3305b2(0x8d)+(_0x399309[_0x3305b2(0x91)][_0x3305b2(0x7f)]!==0x1?'s':'')),_0x399309['metadata'][_0x3305b2(0x9c)]&&_0x56f83b[_0x3305b2(0x95)](_0x399309[_0x3305b2(0x91)][_0x3305b2(0x9c)]+_0x3305b2(0x89)+(_0x399309[_0x3305b2(0x91)]['folderCount']!==0x1?'s':'')),_0x56f83b[_0x3305b2(0x9a)]>0x0&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)]('\x20('+_0x56f83b[_0x3305b2(0x7e)](',\x20')+')'));}else _0x399309[_0x3305b2(0x8f)]===_0x3305b2(0x87)&&_0x399309[_0x3305b2(0x84)]!==undefined&&(_0x9b8af8+=a85_0x5e8c68[_0x3305b2(0x7d)]('\x20('+formatRows(_0x399309[_0x3305b2(0x84)])+')'));}_0x526e3b['push'](_0x9b8af8);if(_0x399309[_0x3305b2(0x80)]&&_0x399309['children'][_0x3305b2(0x9a)]>0x0){let _0x4acffb;if(_0x4fa96f===0x0)_0x4acffb='';else _0x2e8828[_0x3305b2(0x90)]?_0x4acffb=_0x23953e+(_0x49b534?_0x3305b2(0x81):a85_0x5e8c68[_0x3305b2(0x7d)]('│')+_0x3305b2(0x83)):_0x4acffb=_0x23953e+_0x2e8828[_0x3305b2(0x86)];const _0x3bcce8=formatTree(_0x399309['children'],_0x2e8828,_0x4fa96f+0x1,_0x4acffb);_0x526e3b[_0x3305b2(0x95)](_0x3bcce8);}}return _0x526e3b[_0x3305b2(0x7e)]('\x0a');}export function formatFlatList(_0x345a9c,_0x5dcc66,_0x2be16e={}){const _0x5db8d9=a85_0xb169,_0x12fd5f={...DEFAULT_OPTIONS,..._0x2be16e},_0x2eda31=[];for(const _0x5c39ab of _0x345a9c){_0x2eda31[_0x5db8d9(0x95)]({'name':_0x5c39ab[_0x5db8d9(0x7a)],'icon':_0x12fd5f[_0x5db8d9(0x97)]?'📁':'','metadata':undefined});}for(const _0x5aea6a of _0x5dcc66){const _0x1e033c=_0x12fd5f[_0x5db8d9(0x99)]&&_0x5aea6a[_0x5db8d9(0x84)]!==undefined?a85_0x5e8c68[_0x5db8d9(0x7d)]('\x20('+formatRows(_0x5aea6a['population'])+')'):'';_0x2eda31[_0x5db8d9(0x95)]({'name':_0x5aea6a[_0x5db8d9(0x7a)],'icon':_0x12fd5f[_0x5db8d9(0x97)]?'🎯':'','metadata':_0x1e033c});}_0x2eda31['sort']((_0x2e1c1c,_0x2e66d1)=>_0x2e1c1c['name'][_0x5db8d9(0x7b)](_0x2e66d1[_0x5db8d9(0x7a)]));if(_0x2eda31[_0x5db8d9(0x9a)]===0x0)return'(empty)';const _0x52f829=_0x2eda31[_0x5db8d9(0x8c)](_0x287bb0=>{const _0x4cf30b=_0x5db8d9,_0x6a57a6=_0x287bb0[_0x4cf30b(0x94)]?_0x287bb0[_0x4cf30b(0x94)]+'\x20':'',_0x5f3265=_0x287bb0[_0x4cf30b(0x91)]||'';return''+_0x6a57a6+_0x287bb0[_0x4cf30b(0x7a)]+_0x5f3265;});return _0x52f829[_0x5db8d9(0x7e)]('\x0a');}
@@ -1 +1 @@
1
- function a84_0x37cc(_0x42501e,_0x524587){const _0x5daa7d=a84_0x5daa();return a84_0x37cc=function(_0x37cc94,_0x107f20){_0x37cc94=_0x37cc94-0x8c;let _0x4e21df=_0x5daa7d[_0x37cc94];return _0x4e21df;},a84_0x37cc(_0x42501e,_0x524587);}(function(_0x2ba4be,_0x4b6379){const _0xd6046b=a84_0x37cc,_0xd55cf=_0x2ba4be();while(!![]){try{const _0x55c72e=parseInt(_0xd6046b(0x91))/0x1*(parseInt(_0xd6046b(0x9f))/0x2)+parseInt(_0xd6046b(0x9e))/0x3+parseInt(_0xd6046b(0xad))/0x4*(parseInt(_0xd6046b(0xab))/0x5)+parseInt(_0xd6046b(0x8c))/0x6+parseInt(_0xd6046b(0x93))/0x7+parseInt(_0xd6046b(0x90))/0x8+-parseInt(_0xd6046b(0x8f))/0x9;if(_0x55c72e===_0x4b6379)break;else _0xd55cf['push'](_0xd55cf['shift']());}catch(_0x18c22a){_0xd55cf['push'](_0xd55cf['shift']());}}}(a84_0x5daa,0xd1a81));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x17bbef from'chalk';import{getCacheDir}from'../core/config.js';function a84_0x5daa(){const _0x5d1fbe=['stderr','error','Invalid\x20version\x20format','HTTP\x20','gray','Update\x20available:','latestVersion','env','3273429fyhZdt','22xaGbfp','lastCheck','now','npm\x20install\x20-g\x20@treasuredata/tdx@latest','getTime','destroy','last_version_check','end','version','Run:','cyan','isTTY','267590hLVCbu','currentVersion','88ZqAbvQ','parse','NO_COLOR','\x0aUpdate\x20available:\x20','utf-8','2706102ofOrQy','yellow','updateAvailable','34677432aWeMHE','6551376YbWaVa','53373fPNovt','toISOString','4103540dTbZuz','\x0aRun:\x20','dim'];a84_0x5daa=function(){return _0x5d1fbe;};return a84_0x5daa();}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x908eb3=a84_0x37cc,_0x46db76=getCacheDir();return join(_0x46db76,_0x908eb3(0xa5));}function readCache(){const _0x4b2410=a84_0x37cc;try{const _0x124356=getCacheFilePath(),_0x1453b5=readFileSync(_0x124356,_0x4b2410(0xb1));return JSON[_0x4b2410(0xae)](_0x1453b5);}catch{return null;}}function writeCache(_0x5e5a63){const _0x5652a2=a84_0x37cc;try{const _0x1dc19f=getCacheDir();mkdirSync(_0x1dc19f,{'recursive':!![]});const _0x4332a5={'lastCheck':new Date()[_0x5652a2(0x92)](),'latestVersion':_0x5e5a63},_0x2872b1=getCacheFilePath();writeFileSync(_0x2872b1,JSON['stringify'](_0x4332a5,null,0x2),_0x5652a2(0xb1));}catch{}}function isCacheValid(_0x5072cd){const _0x417706=a84_0x37cc;if(!_0x5072cd)return![];const _0x11133a=new Date(_0x5072cd[_0x417706(0xa0)])[_0x417706(0xa3)](),_0x58263=Date[_0x417706(0xa1)]();return _0x58263-_0x11133a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x49f61b,_0x2e2d72)=>{const _0x436fc5=a84_0x37cc,_0x2972d6=get(NPM_REGISTRY_URL,_0x571edf=>{const _0x2f31c3=a84_0x37cc;if(_0x571edf['statusCode']!==0xc8){clearTimeout(_0xf58985),_0x2e2d72(new Error(_0x2f31c3(0x99)+_0x571edf['statusCode']));return;}let _0x581e63='';_0x571edf['on']('data',_0x288e66=>{_0x581e63+=_0x288e66;}),_0x571edf['on'](_0x2f31c3(0xa6),()=>{const _0x1d53ca=_0x2f31c3;clearTimeout(_0xf58985);try{const _0x15971c=JSON[_0x1d53ca(0xae)](_0x581e63);if(!valid(_0x15971c[_0x1d53ca(0xa7)])){_0x2e2d72(new Error(_0x1d53ca(0x98)));return;}_0x49f61b(_0x15971c[_0x1d53ca(0xa7)]);}catch(_0x36892e){_0x2e2d72(_0x36892e);}});})['on'](_0x436fc5(0x97),_0x24846b=>{clearTimeout(_0xf58985),_0x2e2d72(_0x24846b);}),_0xf58985=setTimeout(()=>{const _0x104f9b=_0x436fc5;_0x2972d6[_0x104f9b(0xa4)](),_0x2e2d72(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x324293){const _0x7b69de=a84_0x37cc;try{const _0x1ee337=readCache();if(isCacheValid(_0x1ee337)){const _0xee4714=gt(_0x1ee337[_0x7b69de(0x9c)],_0x324293);return{'updateAvailable':_0xee4714,'currentVersion':_0x324293,'latestVersion':_0x1ee337[_0x7b69de(0x9c)]};}const _0x54970a=await fetchLatestVersion();writeCache(_0x54970a);const _0x38edf1=gt(_0x54970a,_0x324293);return{'updateAvailable':_0x38edf1,'currentVersion':_0x324293,'latestVersion':_0x54970a};}catch{return null;}}export function displayUpdateNotification(_0x48a85a){const _0x4dc866=a84_0x37cc;if(!_0x48a85a[_0x4dc866(0x8e)])return;const _0x3663fe=process[_0x4dc866(0x96)][_0x4dc866(0xaa)]&&!process[_0x4dc866(0x9d)][_0x4dc866(0xaf)],_0x9ac365=_0x3663fe?a84_0x17bbef[_0x4dc866(0x9a)]('→'):'→',_0x4f7e05=_0x3663fe?a84_0x17bbef[_0x4dc866(0x95)](_0x48a85a[_0x4dc866(0xac)]):_0x48a85a[_0x4dc866(0xac)],_0x31511b=_0x3663fe?a84_0x17bbef['green'](_0x48a85a[_0x4dc866(0x9c)]):_0x48a85a[_0x4dc866(0x9c)],_0x53ec55=_0x3663fe?a84_0x17bbef[_0x4dc866(0xa9)](_0x4dc866(0xa2)):_0x4dc866(0xa2),_0x1bab35=_0x3663fe?'\x0a'+a84_0x17bbef[_0x4dc866(0x8d)](_0x4dc866(0x9b))+'\x20'+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+'\x0a'+a84_0x17bbef[_0x4dc866(0x95)](_0x4dc866(0xa8))+'\x20'+_0x53ec55+'\x0a':_0x4dc866(0xb0)+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+_0x4dc866(0x94)+_0x53ec55+'\x0a';process[_0x4dc866(0x96)]['write'](_0x1bab35);}
1
+ (function(_0x48c5f1,_0x3b36cd){const _0x236482=a86_0x5da7,_0x566e04=_0x48c5f1();while(!![]){try{const _0x5b9c1a=-parseInt(_0x236482(0x154))/0x1*(parseInt(_0x236482(0x137))/0x2)+parseInt(_0x236482(0x15a))/0x3+-parseInt(_0x236482(0x14d))/0x4+-parseInt(_0x236482(0x144))/0x5*(parseInt(_0x236482(0x155))/0x6)+-parseInt(_0x236482(0x158))/0x7+-parseInt(_0x236482(0x153))/0x8*(-parseInt(_0x236482(0x13f))/0x9)+parseInt(_0x236482(0x13a))/0xa*(parseInt(_0x236482(0x14f))/0xb);if(_0x5b9c1a===_0x3b36cd)break;else _0x566e04['push'](_0x566e04['shift']());}catch(_0x4af8bf){_0x566e04['push'](_0x566e04['shift']());}}}(a86_0x4608,0xa16bb));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a86_0x45da0f 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 _0x12c85e=getCacheDir();return join(_0x12c85e,'last_version_check');}function a86_0x4608(){const _0x28a2b9=['parse','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','data','currentVersion','statusCode','3859928eLBeGx','toISOString','23201761GmMLif','version','\x0aRun:\x20','destroy','3287072KRHkzV','12869WeZEMp','2835918ZVKghW','latestVersion','Request\x20timeout','4638683XpHEsD','green','2499966qkhgNs','Update\x20available:','gray','dim','92XEbAaz','cyan','end','10UwYNjA','\x0aUpdate\x20available:\x20','error','write','stringify','9NcQvGR','stderr','yellow','env','isTTY','5BGQgTg','now','HTTP\x20'];a86_0x4608=function(){return _0x28a2b9;};return a86_0x4608();}function a86_0x5da7(_0x56538,_0x1a097e){const _0x460815=a86_0x4608();return a86_0x5da7=function(_0x5da773,_0xd0a749){_0x5da773=_0x5da773-0x134;let _0xc2cc70=_0x460815[_0x5da773];return _0xc2cc70;},a86_0x5da7(_0x56538,_0x1a097e);}function readCache(){try{const _0x2e3437=getCacheFilePath(),_0x285fc3=readFileSync(_0x2e3437,'utf-8');return JSON['parse'](_0x285fc3);}catch{return null;}}function writeCache(_0x20abde){const _0x3a3801=a86_0x5da7;try{const _0x12ef1=getCacheDir();mkdirSync(_0x12ef1,{'recursive':!![]});const _0xaa919d={'lastCheck':new Date()[_0x3a3801(0x14e)](),'latestVersion':_0x20abde},_0x4029ff=getCacheFilePath();writeFileSync(_0x4029ff,JSON[_0x3a3801(0x13e)](_0xaa919d,null,0x2),_0x3a3801(0x148));}catch{}}function isCacheValid(_0x160b63){const _0x5ca0cc=a86_0x5da7;if(!_0x160b63)return![];const _0x5031bd=new Date(_0x160b63['lastCheck'])['getTime'](),_0x3609c8=Date[_0x5ca0cc(0x145)]();return _0x3609c8-_0x5031bd<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x5ace73,_0x81a069)=>{const _0x372401=a86_0x5da7,_0x5e4e0d=get(NPM_REGISTRY_URL,_0x17038a=>{const _0x337828=a86_0x5da7;if(_0x17038a[_0x337828(0x14c)]!==0xc8){clearTimeout(_0x2c78a6),_0x81a069(new Error(_0x337828(0x146)+_0x17038a[_0x337828(0x14c)]));return;}let _0x48e138='';_0x17038a['on'](_0x337828(0x14a),_0x2f27b0=>{_0x48e138+=_0x2f27b0;}),_0x17038a['on'](_0x337828(0x139),()=>{const _0x3e704c=_0x337828;clearTimeout(_0x2c78a6);try{const _0x1f7ff8=JSON[_0x3e704c(0x147)](_0x48e138);if(!valid(_0x1f7ff8[_0x3e704c(0x150)])){_0x81a069(new Error('Invalid\x20version\x20format'));return;}_0x5ace73(_0x1f7ff8[_0x3e704c(0x150)]);}catch(_0x5861e9){_0x81a069(_0x5861e9);}});})['on'](_0x372401(0x13c),_0x1b9d0f=>{clearTimeout(_0x2c78a6),_0x81a069(_0x1b9d0f);}),_0x2c78a6=setTimeout(()=>{const _0xdaf9c=_0x372401;_0x5e4e0d[_0xdaf9c(0x152)](),_0x81a069(new Error(_0xdaf9c(0x157)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x560823){const _0x3f7fe4=a86_0x5da7;try{const _0x5ecf41=readCache();if(isCacheValid(_0x5ecf41)){const _0x354e99=gt(_0x5ecf41[_0x3f7fe4(0x156)],_0x560823);return{'updateAvailable':_0x354e99,'currentVersion':_0x560823,'latestVersion':_0x5ecf41[_0x3f7fe4(0x156)]};}const _0x211c56=await fetchLatestVersion();writeCache(_0x211c56);const _0x4d78c6=gt(_0x211c56,_0x560823);return{'updateAvailable':_0x4d78c6,'currentVersion':_0x560823,'latestVersion':_0x211c56};}catch{return null;}}export function displayUpdateNotification(_0xef4ec6){const _0xd5cda1=a86_0x5da7;if(!_0xef4ec6['updateAvailable'])return;const _0x531298=process[_0xd5cda1(0x140)][_0xd5cda1(0x143)]&&!process[_0xd5cda1(0x142)]['NO_COLOR'],_0x375148=_0x531298?a86_0x45da0f[_0xd5cda1(0x135)]('→'):'→',_0x364a0a=_0x531298?a86_0x45da0f[_0xd5cda1(0x136)](_0xef4ec6[_0xd5cda1(0x14b)]):_0xef4ec6[_0xd5cda1(0x14b)],_0x2e959d=_0x531298?a86_0x45da0f[_0xd5cda1(0x159)](_0xef4ec6[_0xd5cda1(0x156)]):_0xef4ec6[_0xd5cda1(0x156)],_0x4b44c8=_0x531298?a86_0x45da0f[_0xd5cda1(0x138)](_0xd5cda1(0x149)):_0xd5cda1(0x149),_0x23ca6a=_0x531298?'\x0a'+a86_0x45da0f[_0xd5cda1(0x141)](_0xd5cda1(0x134))+'\x20'+_0x364a0a+'\x20'+_0x375148+'\x20'+_0x2e959d+'\x0a'+a86_0x45da0f[_0xd5cda1(0x136)]('Run:')+'\x20'+_0x4b44c8+'\x0a':_0xd5cda1(0x13b)+_0x364a0a+'\x20'+_0x375148+'\x20'+_0x2e959d+_0xd5cda1(0x151)+_0x4b44c8+'\x0a';process['stderr'][_0xd5cda1(0x13d)](_0x23ca6a);}
@@ -1 +1 @@
1
- function a85_0x77ac(_0x3398ef,_0xd08dd8){const _0x1d7283=a85_0x1d72();return a85_0x77ac=function(_0x77acc3,_0x582de9){_0x77acc3=_0x77acc3-0x13d;let _0x499843=_0x1d7283[_0x77acc3];return _0x499843;},a85_0x77ac(_0x3398ef,_0xd08dd8);}(function(_0xc18cfe,_0x5417b8){const _0x3e87c3=a85_0x77ac,_0x40c6fa=_0xc18cfe();while(!![]){try{const _0x585a61=-parseInt(_0x3e87c3(0x148))/0x1*(parseInt(_0x3e87c3(0x13e))/0x2)+-parseInt(_0x3e87c3(0x143))/0x3+-parseInt(_0x3e87c3(0x147))/0x4*(parseInt(_0x3e87c3(0x13f))/0x5)+parseInt(_0x3e87c3(0x146))/0x6*(parseInt(_0x3e87c3(0x145))/0x7)+-parseInt(_0x3e87c3(0x13d))/0x8*(parseInt(_0x3e87c3(0x142))/0x9)+parseInt(_0x3e87c3(0x141))/0xa+parseInt(_0x3e87c3(0x140))/0xb;if(_0x585a61===_0x5417b8)break;else _0x40c6fa['push'](_0x40c6fa['shift']());}catch(_0x3d5781){_0x40c6fa['push'](_0x40c6fa['shift']());}}}(a85_0x1d72,0x265cc));export const WORKFLOW_FILE_EXTENSION='.dig';function a85_0x1d72(){const _0x3ee792=['30332IzOXex','5wdHNyL','6165654PqFbQc','238130WEldnK','414uQyFyW','196284RywWox','.digdag','399665mtZhmA','6LSzMoh','671288eqffVX','2zXuIWb','38384tNPZRM'];a85_0x1d72=function(){return _0x3ee792;};return a85_0x1d72();}export function shouldIncludeInArchive(_0x3a65a7){const _0x157bfc=a85_0x77ac;if(_0x3a65a7===_0x157bfc(0x144))return!![];if(_0x3a65a7['startsWith']('.'))return![];return!![];}
1
+ (function(_0x2acfe0,_0x96f27c){const _0x348373=a87_0x189f,_0x3eeb25=_0x2acfe0();while(!![]){try{const _0x9d88c7=-parseInt(_0x348373(0x84))/0x1*(parseInt(_0x348373(0x7d))/0x2)+parseInt(_0x348373(0x7f))/0x3+-parseInt(_0x348373(0x7a))/0x4*(-parseInt(_0x348373(0x81))/0x5)+-parseInt(_0x348373(0x82))/0x6*(-parseInt(_0x348373(0x80))/0x7)+parseInt(_0x348373(0x79))/0x8*(-parseInt(_0x348373(0x7e))/0x9)+-parseInt(_0x348373(0x7c))/0xa+parseInt(_0x348373(0x7b))/0xb;if(_0x9d88c7===_0x96f27c)break;else _0x3eeb25['push'](_0x3eeb25['shift']());}catch(_0x3487c1){_0x3eeb25['push'](_0x3eeb25['shift']());}}}(a87_0x3fe3,0x6c391));function a87_0x189f(_0x5e080b,_0x40846c){const _0x3fe36e=a87_0x3fe3();return a87_0x189f=function(_0x189f29,_0x23b634){_0x189f29=_0x189f29-0x79;let _0x178c68=_0x3fe36e[_0x189f29];return _0x178c68;},a87_0x189f(_0x5e080b,_0x40846c);}function a87_0x3fe3(){const _0x38d2f0=['711bwPDgI','406035emwzfg','3716881CDhOGC','30GpqTLP','6Bqctmg','.digdag','198NosZCf','5944ctslnF','109948UlpebR','6707470ZyTNDg','4903740WJyejl','4532HuMiQF'];a87_0x3fe3=function(){return _0x38d2f0;};return a87_0x3fe3();}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1036cf){const _0x3f911f=a87_0x189f;if(_0x1036cf===_0x3f911f(0x83))return!![];if(_0x1036cf['startsWith']('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
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": {
@@ -29,6 +29,7 @@
29
29
  "scripts": {
30
30
  "build:info": "bash scripts/generate-build-info.sh",
31
31
  "build:ts": "tsc && chmod +x dist/cli.js && cp src/build-info.json dist/build-info.json",
32
+ "build:install": "npm run build:ts && npm install -g",
32
33
  "build:obfuscate": "javascript-obfuscator ./dist --output ./dist",
33
34
  "build": "npm run build:info && npm run build:ts && npm run build:obfuscate",
34
35
  "prepublishOnly": "npm run build",
@@ -67,6 +68,7 @@
67
68
  "dependencies": {
68
69
  "@fastify/cors": "^11.1.0",
69
70
  "@types/json-bigint": "^1.0.4",
71
+ "@zowe/secrets-for-zowe-sdk": "^8.29.4",
70
72
  "chalk": "^5.3.0",
71
73
  "cli-table3": "^0.6.5",
72
74
  "commander": "^14.0.2",