@treasuredata/tdx 0.4.6 → 0.5.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 (116) hide show
  1. package/README.md +0 -4
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli.js +1 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.d.ts +1 -1
  18. package/dist/commands/claude-command.d.ts.map +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-command.js.map +1 -1
  21. package/dist/commands/claude-statusline-command.d.ts +23 -0
  22. package/dist/commands/claude-statusline-command.d.ts.map +1 -0
  23. package/dist/commands/claude-statusline-command.js +1 -0
  24. package/dist/commands/claude-statusline-command.js.map +1 -0
  25. package/dist/commands/claude-usage-command.d.ts +22 -0
  26. package/dist/commands/claude-usage-command.d.ts.map +1 -0
  27. package/dist/commands/claude-usage-command.js +1 -0
  28. package/dist/commands/claude-usage-command.js.map +1 -0
  29. package/dist/commands/command.js +1 -1
  30. package/dist/commands/context-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/describe.js +1 -1
  33. package/dist/commands/engage-command.js +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/llm-command.js +1 -1
  36. package/dist/commands/llm-proxy.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pwd-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/use-command.js +1 -1
  50. package/dist/commands/workflow-command.js +1 -1
  51. package/dist/core/auth.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/credential-cache.js +1 -1
  54. package/dist/core/global-context.d.ts +1 -0
  55. package/dist/core/global-context.d.ts.map +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/global-context.js.map +1 -1
  58. package/dist/core/keychain.js +1 -1
  59. package/dist/core/profile.js +1 -1
  60. package/dist/core/project-config.js +1 -1
  61. package/dist/core/session.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/proxy/anthropic-adapter.js +1 -1
  64. package/dist/proxy/server.d.ts.map +1 -1
  65. package/dist/proxy/server.js +1 -1
  66. package/dist/proxy/server.js.map +1 -1
  67. package/dist/proxy/session-cache.js +1 -1
  68. package/dist/sdk/api.js +1 -1
  69. package/dist/sdk/engage.js +1 -1
  70. package/dist/sdk/errors.js +1 -1
  71. package/dist/sdk/index.d.ts +10 -0
  72. package/dist/sdk/index.d.ts.map +1 -1
  73. package/dist/sdk/index.js +1 -1
  74. package/dist/sdk/index.js.map +1 -1
  75. package/dist/sdk/job.js +1 -1
  76. package/dist/sdk/llm.js +1 -1
  77. package/dist/sdk/query.js +1 -1
  78. package/dist/sdk/segment.js +1 -1
  79. package/dist/sdk/workflow.js +1 -1
  80. package/dist/types/endpoints.js +1 -1
  81. package/dist/types/index.js +1 -1
  82. package/dist/utils/agent-ref-parser.js +1 -1
  83. package/dist/utils/chat-cache.js +1 -1
  84. package/dist/utils/claude-usage-tracker.d.ts +124 -0
  85. package/dist/utils/claude-usage-tracker.d.ts.map +1 -0
  86. package/dist/utils/claude-usage-tracker.js +1 -0
  87. package/dist/utils/claude-usage-tracker.js.map +1 -0
  88. package/dist/utils/colors.js +1 -1
  89. package/dist/utils/command-output.js +1 -1
  90. package/dist/utils/constants.js +1 -1
  91. package/dist/utils/file-permissions.js +1 -1
  92. package/dist/utils/format-detector.js +1 -1
  93. package/dist/utils/formatters.js +1 -1
  94. package/dist/utils/json-loader.js +1 -1
  95. package/dist/utils/llm-backup-utils.js +1 -1
  96. package/dist/utils/model-aliases.js +1 -1
  97. package/dist/utils/model-factors.d.ts +52 -0
  98. package/dist/utils/model-factors.d.ts.map +1 -0
  99. package/dist/utils/model-factors.js +1 -0
  100. package/dist/utils/model-factors.js.map +1 -0
  101. package/dist/utils/option-validation.js +1 -1
  102. package/dist/utils/port.js +1 -1
  103. package/dist/utils/process.js +1 -1
  104. package/dist/utils/prompt.js +1 -1
  105. package/dist/utils/segment-path-parser.js +1 -1
  106. package/dist/utils/segment-ref-parser.js +1 -1
  107. package/dist/utils/spinner.js +1 -1
  108. package/dist/utils/sql-parser.js +1 -1
  109. package/dist/utils/sse-parser.js +1 -1
  110. package/dist/utils/string-utils.js +1 -1
  111. package/dist/utils/table-ref-parser.js +1 -1
  112. package/dist/utils/tdx-logger.js +1 -1
  113. package/dist/utils/tree-formatter.js +1 -1
  114. package/dist/utils/version-check.js +1 -1
  115. package/dist/utils/workflow-utils.js +1 -1
  116. package/package.json +6 -6
@@ -1 +1 @@
1
- (function(_0x1be507,_0x2f5ba6){const _0x602bf4=a82_0x54e6,_0x339c20=_0x1be507();while(!![]){try{const _0x2bc63d=-parseInt(_0x602bf4(0x173))/0x1+-parseInt(_0x602bf4(0x18c))/0x2+parseInt(_0x602bf4(0x17c))/0x3*(parseInt(_0x602bf4(0x183))/0x4)+parseInt(_0x602bf4(0x189))/0x5+parseInt(_0x602bf4(0x177))/0x6*(parseInt(_0x602bf4(0x18e))/0x7)+parseInt(_0x602bf4(0x17f))/0x8*(-parseInt(_0x602bf4(0x188))/0x9)+parseInt(_0x602bf4(0x17e))/0xa;if(_0x2bc63d===_0x2f5ba6)break;else _0x339c20['push'](_0x339c20['shift']());}catch(_0xb337c2){_0x339c20['push'](_0x339c20['shift']());}}}(a82_0x31b5,0xa1c5f));function a82_0x54e6(_0x577388,_0x5ad2bf){const _0x31b55e=a82_0x31b5();return a82_0x54e6=function(_0x54e6cf,_0x2912cb){_0x54e6cf=_0x54e6cf-0x173;let _0x46fd30=_0x31b55e[_0x54e6cf];return _0x46fd30;},a82_0x54e6(_0x577388,_0x5ad2bf);}export function parsePath(_0x1d46bf){const _0x460ec4=a82_0x54e6;if(!_0x1d46bf||_0x1d46bf[_0x460ec4(0x17d)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x182818=_0x1d46bf['trim']();if(_0x182818==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1d46bf};const _0x5164e4=_0x182818[_0x460ec4(0x175)]('/')?_0x182818[_0x460ec4(0x18a)](0x1):_0x182818,_0x342046=_0x5164e4[_0x460ec4(0x185)]('/')[_0x460ec4(0x184)](_0x30da1b=>_0x30da1b!=='');if(_0x342046[_0x460ec4(0x18b)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x115f8d=_0x182818[_0x460ec4(0x175)]('/')||!isRelativePathSegment(_0x342046[0x0]);for(const _0x1fde54 of _0x342046){validatePathSegment(_0x1fde54);}return{'segments':_0x342046,'isAbsolute':_0x115f8d,'raw':_0x1d46bf};}function isRelativePathSegment(_0x5beef7){return _0x5beef7==='.'||_0x5beef7==='..';}function validatePathSegment(_0x5625f4){const _0xaa4818=a82_0x54e6;if(_0x5625f4==='')throw new Error(_0xaa4818(0x174));if(_0x5625f4==='.'||_0x5625f4==='..')return;if(/[\x00-\x1F\x7F]/[_0xaa4818(0x178)](_0x5625f4))throw new Error(_0xaa4818(0x18f)+_0x5625f4);if(_0x5625f4!==_0x5625f4[_0xaa4818(0x17d)]()){}}export function validatePath(_0x53cef1){const _0x276bb6=a82_0x54e6;if(_0x53cef1[_0x276bb6(0x181)][_0x276bb6(0x18b)]===0x0&&!_0x53cef1[_0x276bb6(0x187)])throw new Error(_0x276bb6(0x17b));if(_0x53cef1['isAbsolute']){if(_0x53cef1[_0x276bb6(0x181)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1b4a4b=0x0;for(const _0x2ea1b9 of _0x53cef1[_0x276bb6(0x181)]){if(_0x2ea1b9==='..'){if(_0x1b4a4b===0x0)throw new Error(_0x276bb6(0x176));_0x1b4a4b--;}else _0x2ea1b9!=='.'&&_0x1b4a4b++;}}}export function joinPaths(_0x2f4d00,_0x2b1b5d){const _0x46490d=a82_0x54e6;if(!_0x2f4d00||_0x2f4d00==='/')return _0x2b1b5d;if(!_0x2b1b5d||_0x2b1b5d==='.')return _0x2f4d00;if(_0x2b1b5d[_0x46490d(0x175)]('/'))return _0x2b1b5d;const _0x11dfe0=parsePath(_0x2f4d00),_0x92b9be=parsePath(_0x2b1b5d),_0x47039b=[..._0x11dfe0[_0x46490d(0x181)]];for(const _0x144bc3 of _0x92b9be[_0x46490d(0x181)]){if(_0x144bc3==='.')continue;else{if(_0x144bc3==='..'){if(_0x47039b[_0x46490d(0x18b)]===0x0)throw new Error(_0x46490d(0x18d));_0x47039b['pop']();}else _0x47039b[_0x46490d(0x186)](_0x144bc3);}}const _0x2497bf=_0x47039b[_0x46490d(0x17a)]('/');return _0x11dfe0[_0x46490d(0x180)][_0x46490d(0x175)]('/')?'/'+_0x2497bf:_0x2497bf;}export function normalizePath(_0x196594){const _0x14cd7c=a82_0x54e6,_0x267c48=parsePath(_0x196594),_0xff7576=[];for(const _0x49d59e of _0x267c48[_0x14cd7c(0x181)]){if(_0x49d59e==='.')continue;else{if(_0x49d59e==='..'){if(_0xff7576['length']===0x0){if(_0x267c48['isAbsolute'])throw new Error(_0x14cd7c(0x18d));_0xff7576[_0x14cd7c(0x186)]('..');}else _0xff7576[_0xff7576[_0x14cd7c(0x18b)]-0x1]==='..'?_0xff7576['push']('..'):_0xff7576['pop']();}else _0xff7576['push'](_0x49d59e);}}if(_0xff7576[_0x14cd7c(0x18b)]===0x0)return _0x267c48[_0x14cd7c(0x187)]?'/':'.';const _0x249c12=_0xff7576[_0x14cd7c(0x17a)]('/');return _0x267c48[_0x14cd7c(0x180)][_0x14cd7c(0x175)]('/')?'/'+_0x249c12:_0x249c12;}export function getParentPath(_0x248db0){const _0x3057ed=a82_0x54e6,_0x1007dd=parsePath(_0x248db0);if(_0x1007dd['segments']['length']<=0x1)return'/';const _0x242150=_0x1007dd[_0x3057ed(0x181)][_0x3057ed(0x179)](0x0,-0x1)[_0x3057ed(0x17a)]('/');return _0x1007dd['raw'][_0x3057ed(0x175)]('/')?'/'+_0x242150:_0x242150;}export function getBaseName(_0x4bcdaa){const _0x651787=a82_0x54e6,_0x29eeb4=parsePath(_0x4bcdaa);return _0x29eeb4[_0x651787(0x181)][_0x29eeb4[_0x651787(0x181)]['length']-0x1]||'';}export function isChildPath(_0x1af4d5,_0x1495e9){const _0x1acd12=a82_0x54e6,_0x478324=parsePath(_0x1af4d5),_0x5bcf60=parsePath(_0x1495e9);if(_0x478324[_0x1acd12(0x181)][_0x1acd12(0x18b)]<=_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)])return![];for(let _0x29a6c1=0x0;_0x29a6c1<_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)];_0x29a6c1++){if(_0x478324[_0x1acd12(0x181)][_0x29a6c1]!==_0x5bcf60[_0x1acd12(0x181)][_0x29a6c1])return![];}return!![];}export function splitPath(_0x2c591b){const _0x66640d=a82_0x54e6,_0x2dcf21=parsePath(_0x2c591b);if(_0x2dcf21[_0x66640d(0x181)]['length']===0x0)throw new Error(_0x66640d(0x182));if(_0x2dcf21['segments'][_0x66640d(0x18b)]===0x1)return{'parent':_0x2dcf21['segments'][0x0]};return{'parent':_0x2dcf21['segments'][0x0],'child':_0x2dcf21[_0x66640d(0x181)][_0x66640d(0x179)](0x1)[_0x66640d(0x17a)]('/')};}function a82_0x31b5(){const _0x4119a3=['slice','join','Relative\x20path\x20cannot\x20be\x20empty','1776555zQlWIJ','trim','9851080yqaXgI','66200XPUzGS','raw','segments','Cannot\x20split\x20empty\x20path','4MrlpFS','filter','split','push','isAbsolute','1404CyQsdO','1730260ikUuzL','substring','length','1548462aWBvDO','Cannot\x20navigate\x20above\x20root','1043kkmsbM','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','275394PUoueH','Path\x20segment\x20cannot\x20be\x20empty','startsWith','Path\x20attempts\x20to\x20navigate\x20above\x20root','43482GLLfMH','test'];a82_0x31b5=function(){return _0x4119a3;};return a82_0x31b5();}
1
+ (function(_0x7ec591,_0x192d39){const _0x4696ce=a86_0x10b8,_0x1ac5b6=_0x7ec591();while(!![]){try{const _0x2f43dc=parseInt(_0x4696ce(0x1cf))/0x1+-parseInt(_0x4696ce(0x1df))/0x2*(-parseInt(_0x4696ce(0x1ce))/0x3)+-parseInt(_0x4696ce(0x1dc))/0x4*(parseInt(_0x4696ce(0x1de))/0x5)+-parseInt(_0x4696ce(0x1d0))/0x6+parseInt(_0x4696ce(0x1cb))/0x7+-parseInt(_0x4696ce(0x1d3))/0x8*(-parseInt(_0x4696ce(0x1c6))/0x9)+parseInt(_0x4696ce(0x1d7))/0xa*(-parseInt(_0x4696ce(0x1db))/0xb);if(_0x2f43dc===_0x192d39)break;else _0x1ac5b6['push'](_0x1ac5b6['shift']());}catch(_0x76bb9f){_0x1ac5b6['push'](_0x1ac5b6['shift']());}}}(a86_0x4ea7,0x935c3));function a86_0x10b8(_0x38ea37,_0x45839e){const _0x4ea728=a86_0x4ea7();return a86_0x10b8=function(_0x10b83c,_0x3ebc73){_0x10b83c=_0x10b83c-0x1c3;let _0x2bf352=_0x4ea728[_0x10b83c];return _0x2bf352;},a86_0x10b8(_0x38ea37,_0x45839e);}export function parsePath(_0x1cdf15){const _0x1de452=a86_0x10b8;if(!_0x1cdf15||_0x1cdf15[_0x1de452(0x1c4)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x66855c=_0x1cdf15['trim']();if(_0x66855c==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1cdf15};const _0x253108=_0x66855c[_0x1de452(0x1c5)]('/')?_0x66855c[_0x1de452(0x1cd)](0x1):_0x66855c,_0x52fbcd=_0x253108[_0x1de452(0x1c7)]('/')[_0x1de452(0x1d4)](_0x84a9d2=>_0x84a9d2!=='');if(_0x52fbcd[_0x1de452(0x1dd)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0xe3666c=_0x66855c[_0x1de452(0x1c5)]('/')||!isRelativePathSegment(_0x52fbcd[0x0]);for(const _0x6d3106 of _0x52fbcd){validatePathSegment(_0x6d3106);}return{'segments':_0x52fbcd,'isAbsolute':_0xe3666c,'raw':_0x1cdf15};}function isRelativePathSegment(_0x241236){return _0x241236==='.'||_0x241236==='..';}function validatePathSegment(_0x50f0cc){const _0x52708c=a86_0x10b8;if(_0x50f0cc==='')throw new Error(_0x52708c(0x1d9));if(_0x50f0cc==='.'||_0x50f0cc==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x50f0cc))throw new Error(_0x52708c(0x1c9)+_0x50f0cc);if(_0x50f0cc!==_0x50f0cc[_0x52708c(0x1c4)]()){}}export function validatePath(_0x5de2d7){const _0x3c55f6=a86_0x10b8;if(_0x5de2d7[_0x3c55f6(0x1ca)]['length']===0x0&&!_0x5de2d7[_0x3c55f6(0x1e0)])throw new Error(_0x3c55f6(0x1d6));if(_0x5de2d7['isAbsolute']){if(_0x5de2d7[_0x3c55f6(0x1ca)][0x0]==='..')throw new Error(_0x3c55f6(0x1d2));let _0x55c22c=0x0;for(const _0x31781a of _0x5de2d7['segments']){if(_0x31781a==='..'){if(_0x55c22c===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x55c22c--;}else _0x31781a!=='.'&&_0x55c22c++;}}}export function joinPaths(_0x4a7b02,_0x55fac8){const _0x12a38f=a86_0x10b8;if(!_0x4a7b02||_0x4a7b02==='/')return _0x55fac8;if(!_0x55fac8||_0x55fac8==='.')return _0x4a7b02;if(_0x55fac8[_0x12a38f(0x1c5)]('/'))return _0x55fac8;const _0x46031f=parsePath(_0x4a7b02),_0x5a75ed=parsePath(_0x55fac8),_0x510419=[..._0x46031f[_0x12a38f(0x1ca)]];for(const _0x6c0edb of _0x5a75ed[_0x12a38f(0x1ca)]){if(_0x6c0edb==='.')continue;else{if(_0x6c0edb==='..'){if(_0x510419[_0x12a38f(0x1dd)]===0x0)throw new Error(_0x12a38f(0x1d1));_0x510419[_0x12a38f(0x1cc)]();}else _0x510419[_0x12a38f(0x1c3)](_0x6c0edb);}}const _0x42f288=_0x510419[_0x12a38f(0x1d5)]('/');return _0x46031f[_0x12a38f(0x1c8)]['startsWith']('/')?'/'+_0x42f288:_0x42f288;}export function normalizePath(_0x3b970e){const _0x5ecc23=a86_0x10b8,_0x1a4a10=parsePath(_0x3b970e),_0x43ddd9=[];for(const _0x3ad19f of _0x1a4a10['segments']){if(_0x3ad19f==='.')continue;else{if(_0x3ad19f==='..'){if(_0x43ddd9[_0x5ecc23(0x1dd)]===0x0){if(_0x1a4a10[_0x5ecc23(0x1e0)])throw new Error(_0x5ecc23(0x1d1));_0x43ddd9[_0x5ecc23(0x1c3)]('..');}else _0x43ddd9[_0x43ddd9[_0x5ecc23(0x1dd)]-0x1]==='..'?_0x43ddd9['push']('..'):_0x43ddd9['pop']();}else _0x43ddd9[_0x5ecc23(0x1c3)](_0x3ad19f);}}if(_0x43ddd9[_0x5ecc23(0x1dd)]===0x0)return _0x1a4a10[_0x5ecc23(0x1e0)]?'/':'.';const _0x50f041=_0x43ddd9['join']('/');return _0x1a4a10[_0x5ecc23(0x1c8)][_0x5ecc23(0x1c5)]('/')?'/'+_0x50f041:_0x50f041;}export function getParentPath(_0x30e876){const _0xc89dbd=a86_0x10b8,_0x4c9420=parsePath(_0x30e876);if(_0x4c9420[_0xc89dbd(0x1ca)][_0xc89dbd(0x1dd)]<=0x1)return'/';const _0x4d86d3=_0x4c9420['segments']['slice'](0x0,-0x1)['join']('/');return _0x4c9420[_0xc89dbd(0x1c8)][_0xc89dbd(0x1c5)]('/')?'/'+_0x4d86d3:_0x4d86d3;}export function getBaseName(_0x2ed8cd){const _0x3f9680=a86_0x10b8,_0x25148f=parsePath(_0x2ed8cd);return _0x25148f[_0x3f9680(0x1ca)][_0x25148f[_0x3f9680(0x1ca)][_0x3f9680(0x1dd)]-0x1]||'';}function a86_0x4ea7(){const _0x518be3=['slice','2871EiSceH','4oMNgpj','length','3434215KdvBTV','6246SnVJIy','isAbsolute','push','trim','startsWith','7281513kZcQdH','split','raw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','segments','7035413bBZJcV','pop','substring','525aaPZwy','447496JfHwOQ','4372224GemGDB','Cannot\x20navigate\x20above\x20root','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','8XRONPw','filter','join','Relative\x20path\x20cannot\x20be\x20empty','30230klmdvI','Cannot\x20split\x20empty\x20path','Path\x20segment\x20cannot\x20be\x20empty'];a86_0x4ea7=function(){return _0x518be3;};return a86_0x4ea7();}export function isChildPath(_0x3eb12a,_0xfe6b41){const _0x3623c6=a86_0x10b8,_0x55f8c5=parsePath(_0x3eb12a),_0x1c09bb=parsePath(_0xfe6b41);if(_0x55f8c5[_0x3623c6(0x1ca)][_0x3623c6(0x1dd)]<=_0x1c09bb[_0x3623c6(0x1ca)][_0x3623c6(0x1dd)])return![];for(let _0x3ede83=0x0;_0x3ede83<_0x1c09bb[_0x3623c6(0x1ca)][_0x3623c6(0x1dd)];_0x3ede83++){if(_0x55f8c5[_0x3623c6(0x1ca)][_0x3ede83]!==_0x1c09bb[_0x3623c6(0x1ca)][_0x3ede83])return![];}return!![];}export function splitPath(_0x18a00f){const _0x3f7de1=a86_0x10b8,_0x46f038=parsePath(_0x18a00f);if(_0x46f038[_0x3f7de1(0x1ca)][_0x3f7de1(0x1dd)]===0x0)throw new Error(_0x3f7de1(0x1d8));if(_0x46f038[_0x3f7de1(0x1ca)][_0x3f7de1(0x1dd)]===0x1)return{'parent':_0x46f038[_0x3f7de1(0x1ca)][0x0]};return{'parent':_0x46f038[_0x3f7de1(0x1ca)][0x0],'child':_0x46f038['segments'][_0x3f7de1(0x1da)](0x1)[_0x3f7de1(0x1d5)]('/')};}
@@ -1 +1 @@
1
- function a83_0x4f7e(_0x174cf6,_0xc9a3){const _0x1ce0aa=a83_0x1ce0();return a83_0x4f7e=function(_0x4f7e3c,_0x19c6d1){_0x4f7e3c=_0x4f7e3c-0xb0;let _0x2db22f=_0x1ce0aa[_0x4f7e3c];return _0x2db22f;},a83_0x4f7e(_0x174cf6,_0xc9a3);}(function(_0x216413,_0x3a91ab){const _0x1afa69=a83_0x4f7e,_0x377d01=_0x216413();while(!![]){try{const _0x1bd7bd=parseInt(_0x1afa69(0xb1))/0x1*(-parseInt(_0x1afa69(0xb9))/0x2)+-parseInt(_0x1afa69(0xb0))/0x3+-parseInt(_0x1afa69(0xba))/0x4*(parseInt(_0x1afa69(0xb4))/0x5)+-parseInt(_0x1afa69(0xbb))/0x6+-parseInt(_0x1afa69(0xb5))/0x7+parseInt(_0x1afa69(0xb3))/0x8+parseInt(_0x1afa69(0xb6))/0x9*(parseInt(_0x1afa69(0xb8))/0xa);if(_0x1bd7bd===_0x3a91ab)break;else _0x377d01['push'](_0x377d01['shift']());}catch(_0x2ff6cb){_0x377d01['push'](_0x377d01['shift']());}}}(a83_0x1ce0,0xe228c));export function parseSegmentRef(_0x4e53da){const _0x191a00=a83_0x4f7e,_0x4a06e4=_0x4e53da['indexOf']('/');if(_0x4a06e4===-0x1)return{'parentId':_0x4e53da};if(_0x4a06e4===0x0)throw new Error(_0x191a00(0xbc)+_0x4e53da+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5cf0ae=_0x4e53da[_0x191a00(0xb7)](0x0,_0x4a06e4),_0xbcc2c7=_0x4e53da[_0x191a00(0xb7)](_0x4a06e4+0x1);if(_0xbcc2c7==='')throw new Error(_0x191a00(0xbc)+_0x4e53da+_0x191a00(0xb2));return{'parentId':_0x5cf0ae,'childId':_0xbcc2c7};}function a83_0x1ce0(){const _0x8c5591=['974DDSKsD','6284VfdDwN','1429098znwzKC','Invalid\x20segment\x20reference\x20format:\x20','653358hhfiFF','1143ZypjPy','.\x20Child\x20name\x20cannot\x20be\x20empty','23272YnKuzC','3545TbTdzM','431088pnSrfB','250029DGkDLl','substring','1120uMUOep'];a83_0x1ce0=function(){return _0x8c5591;};return a83_0x1ce0();}
1
+ function a87_0x5d7a(){const _0xa8505a=['185VCTVix','3470840oSuiWl','224862nZCvdu','substring','760363DgwxRj','1731699kcXKMK','4172iMdZjW','2HRloCw','Invalid\x20segment\x20reference\x20format:\x20','84858rEoKaT','indexOf','3711420UtXVNG','.\x20Child\x20name\x20cannot\x20be\x20empty','1090HgAdTt','11120lYjjFP'];a87_0x5d7a=function(){return _0xa8505a;};return a87_0x5d7a();}function a87_0x3703(_0x852693,_0x10e2f6){const _0x5d7a75=a87_0x5d7a();return a87_0x3703=function(_0x3703a0,_0x43d15b){_0x3703a0=_0x3703a0-0x1d7;let _0x1c5af0=_0x5d7a75[_0x3703a0];return _0x1c5af0;},a87_0x3703(_0x852693,_0x10e2f6);}(function(_0xc76b03,_0x5780a7){const _0x279e93=a87_0x3703,_0x32f4e1=_0xc76b03();while(!![]){try{const _0x19690f=parseInt(_0x279e93(0x1da))/0x1*(-parseInt(_0x279e93(0x1dd))/0x2)+parseInt(_0x279e93(0x1db))/0x3+-parseInt(_0x279e93(0x1d7))/0x4+parseInt(_0x279e93(0x1e5))/0x5*(parseInt(_0x279e93(0x1df))/0x6)+-parseInt(_0x279e93(0x1dc))/0x7*(parseInt(_0x279e93(0x1e4))/0x8)+-parseInt(_0x279e93(0x1e1))/0x9+parseInt(_0x279e93(0x1e3))/0xa*(parseInt(_0x279e93(0x1d8))/0xb);if(_0x19690f===_0x5780a7)break;else _0x32f4e1['push'](_0x32f4e1['shift']());}catch(_0x3e640e){_0x32f4e1['push'](_0x32f4e1['shift']());}}}(a87_0x5d7a,0x70421));export function parseSegmentRef(_0x5de85d){const _0x9c4e5f=a87_0x3703,_0x31a931=_0x5de85d[_0x9c4e5f(0x1e0)]('/');if(_0x31a931===-0x1)return{'parentId':_0x5de85d};if(_0x31a931===0x0)throw new Error(_0x9c4e5f(0x1de)+_0x5de85d+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x338b16=_0x5de85d['substring'](0x0,_0x31a931),_0x4cf499=_0x5de85d[_0x9c4e5f(0x1d9)](_0x31a931+0x1);if(_0x4cf499==='')throw new Error(_0x9c4e5f(0x1de)+_0x5de85d+_0x9c4e5f(0x1e2));return{'parentId':_0x338b16,'childId':_0x4cf499};}
@@ -1 +1 @@
1
- (function(_0x1a71fd,_0x575cdb){const _0x33b635=a84_0x235f,_0x3edf6e=_0x1a71fd();while(!![]){try{const _0x1eebe6=-parseInt(_0x33b635(0x1d5))/0x1+parseInt(_0x33b635(0x1c0))/0x2*(-parseInt(_0x33b635(0x1c9))/0x3)+parseInt(_0x33b635(0x1ca))/0x4*(parseInt(_0x33b635(0x1ce))/0x5)+-parseInt(_0x33b635(0x1d0))/0x6*(parseInt(_0x33b635(0x1d3))/0x7)+parseInt(_0x33b635(0x1c6))/0x8+-parseInt(_0x33b635(0x1d9))/0x9+-parseInt(_0x33b635(0x1cf))/0xa*(-parseInt(_0x33b635(0x1be))/0xb);if(_0x1eebe6===_0x575cdb)break;else _0x3edf6e['push'](_0x3edf6e['shift']());}catch(_0x2ccf80){_0x3edf6e['push'](_0x3edf6e['shift']());}}}(a84_0x2a28,0xc1fe9));function a84_0x235f(_0x4555fb,_0x4f363b){const _0x2a2849=a84_0x2a28();return a84_0x235f=function(_0x235fc0,_0x1ad1dc){_0x235fc0=_0x235fc0-0x1be;let _0x560478=_0x2a2849[_0x235fc0];return _0x560478;},a84_0x235f(_0x4555fb,_0x4f363b);}import a84_0x205bda from'ora';function a84_0x2a28(){const _0x445252=['6220015csCvRI','7780wZPMEr','62364wOUttD','start','cyan','189qltCru','\x20[Job\x20ID:\x20','105060vPwLaa','replace','phase','isTTY','7908525MPdwFP','18007kRMNcg','intervalFactory','1807434sdIDJw','toFixed','stop','stdout','isSpinning','jobId','3561216KsTsAd','now','text','3OBJFRm','4RDwvaj','extra','clock','floor'];a84_0x2a28=function(){return _0x445252;};return a84_0x2a28();}export function createCommandSpinner(_0x10b4d6,_0x9e5ee6={}){const _0x4aceda=a84_0x235f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x9e5ee6;return a84_0x205bda({'text':_0x10b4d6,'color':_0x4aceda(0x1d2),'isEnabled':forceEnabled||process[_0x4aceda(0x1c3)][_0x4aceda(0x1d8)]&&!verbose});}export async function withSpinner(_0x61a246,_0x3eff16,_0x2a5f65={}){const _0x2f4928=a84_0x235f,_0x65eb46=_0x2a5f65['clock']??(()=>Date[_0x2f4928(0x1c7)]()),_0x3e2047=createCommandSpinner(_0x61a246,_0x2a5f65);_0x3e2047[_0x2f4928(0x1d1)]();const _0x4c034f=_0x65eb46();try{const _0x3ec375=await _0x3eff16(),_0x26de8f=_0x65eb46()-_0x4c034f;return _0x3e2047[_0x2f4928(0x1c2)](),{'data':_0x3ec375,'elapsedMs':_0x26de8f};}catch(_0x20f4b9){_0x3e2047[_0x2f4928(0x1c2)]();throw _0x20f4b9;}}export async function withQuerySpinner(_0x419f91,_0x314718,_0xc6f8a={}){const _0x2472af=a84_0x235f,_0x197916=_0xc6f8a[_0x2472af(0x1cc)]??(()=>Date[_0x2472af(0x1c7)]()),_0x33d72e=_0xc6f8a[_0x2472af(0x1bf)]??setInterval,_0x3ccc0d=createCommandSpinner(_0x419f91,_0xc6f8a);_0x3ccc0d['start']();const _0x6daae=_0x197916(),_0x16e499=_0x419f91[_0x2472af(0x1d6)]('...',''),_0x4cb110={},_0x1a403f=()=>{const _0x26dfcb=_0x2472af;if(!_0x3ccc0d[_0x26dfcb(0x1c4)])return;const _0x4318bd=_0x197916()-_0x6daae,_0x1c8e2e=formatElapsed(_0x4318bd),_0x52446c=_0x4cb110[_0x26dfcb(0x1d7)]??_0x16e499,_0x567cda=_0x4cb110['jobId']?_0x26dfcb(0x1d4)+_0x4cb110['jobId']+']':'',_0x2d84c8=_0x4cb110[_0x26dfcb(0x1cb)]?'\x20'+_0x4cb110[_0x26dfcb(0x1cb)]:'';_0x3ccc0d[_0x26dfcb(0x1c8)]=_0x52446c+'\x20'+_0x1c8e2e+_0x2d84c8+_0x567cda;},_0xcf1f1e=_0x33d72e(()=>{_0x1a403f();},0x3e8),_0x4ee1db={'setPhase':_0x36817f=>{const _0x59fd74=_0x2472af;_0x4cb110[_0x59fd74(0x1d7)]=_0x36817f,_0x1a403f();},'setJobId':_0x4a7973=>{const _0x201fc3=_0x2472af;_0x4cb110[_0x201fc3(0x1c5)]=_0x4a7973,_0x1a403f();},'setExtra':_0x54858f=>{const _0x496993=_0x2472af;_0x4cb110[_0x496993(0x1cb)]=_0x54858f,_0x1a403f();}};_0x1a403f();try{const _0x58ca94=await _0x314718(_0x4ee1db),_0x22a4dc=_0x197916()-_0x6daae;return{'data':_0x58ca94,'elapsedMs':_0x22a4dc};}finally{clearInterval(_0xcf1f1e),_0x3ccc0d[_0x2472af(0x1c2)]();}}export function formatElapsed(_0x132a1d){const _0x243114=a84_0x235f,_0x43c754=Math[_0x243114(0x1cd)](_0x132a1d/0x3e8);if(_0x43c754<0x3c)return(_0x132a1d/0x3e8)[_0x243114(0x1c1)](0x1)+'s';const _0x18805c=Math[_0x243114(0x1cd)](_0x43c754/0x3c),_0x4cb0e6=_0x43c754%0x3c;if(_0x18805c<0x3c)return _0x18805c+'m\x20'+_0x4cb0e6+'s';const _0xd23e01=Math['floor'](_0x18805c/0x3c),_0x3c9627=_0x18805c%0x3c;return _0xd23e01+'h\x20'+_0x3c9627+'m';}
1
+ function a88_0x338c(){const _0x2a52a8=['now','intervalFactory','cyan','5997960QOUAKr','text','5409930DTeKtN','replace','1115419FDbvPZ','floor','clock','11986616LpEolq','17006150kedSzh','233133mJUNkN','jobId','8xRRwTk','isTTY','...','phase','stop','start','\x20[Job\x20ID:\x20','extra','7vlOgKm','isSpinning','12pALqAI','2622560yUVlLo'];a88_0x338c=function(){return _0x2a52a8;};return a88_0x338c();}(function(_0x4250ec,_0x466222){const _0xd578e5=a88_0x1191,_0x276fa8=_0x4250ec();while(!![]){try{const _0x284ad0=-parseInt(_0xd578e5(0x176))/0x1+-parseInt(_0xd578e5(0x163))/0x2*(-parseInt(_0xd578e5(0x17b))/0x3)+parseInt(_0xd578e5(0x16d))/0x4*(parseInt(_0xd578e5(0x16e))/0x5)+parseInt(_0xd578e5(0x174))/0x6+-parseInt(_0xd578e5(0x16b))/0x7*(-parseInt(_0xd578e5(0x179))/0x8)+-parseInt(_0xd578e5(0x172))/0x9+-parseInt(_0xd578e5(0x17a))/0xa;if(_0x284ad0===_0x466222)break;else _0x276fa8['push'](_0x276fa8['shift']());}catch(_0x5e9229){_0x276fa8['push'](_0x276fa8['shift']());}}}(a88_0x338c,0xc3c60));import a88_0x5b2164 from'ora';export function createCommandSpinner(_0x37a968,_0x32b65f={}){const _0x450029=a88_0x1191,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x32b65f;return a88_0x5b2164({'text':_0x37a968,'color':_0x450029(0x171),'isEnabled':forceEnabled||process['stdout'][_0x450029(0x164)]&&!verbose});}export async function withSpinner(_0x4d4f1d,_0x553449,_0x5a22e5={}){const _0x34154e=a88_0x1191,_0x5bf509=_0x5a22e5['clock']??(()=>Date[_0x34154e(0x16f)]()),_0x541a43=createCommandSpinner(_0x4d4f1d,_0x5a22e5);_0x541a43['start']();const _0x5e6cac=_0x5bf509();try{const _0x51bfd4=await _0x553449(),_0x46bfd0=_0x5bf509()-_0x5e6cac;return _0x541a43[_0x34154e(0x167)](),{'data':_0x51bfd4,'elapsedMs':_0x46bfd0};}catch(_0x2a0229){_0x541a43[_0x34154e(0x167)]();throw _0x2a0229;}}function a88_0x1191(_0x4a98d0,_0x750b1a){const _0x338cc7=a88_0x338c();return a88_0x1191=function(_0x1191b9,_0x283019){_0x1191b9=_0x1191b9-0x162;let _0x2b6c34=_0x338cc7[_0x1191b9];return _0x2b6c34;},a88_0x1191(_0x4a98d0,_0x750b1a);}export async function withQuerySpinner(_0x5ad74f,_0x2ad2c0,_0x1d267d={}){const _0x536e41=a88_0x1191,_0xe5eddc=_0x1d267d[_0x536e41(0x178)]??(()=>Date[_0x536e41(0x16f)]()),_0x5be196=_0x1d267d[_0x536e41(0x170)]??setInterval,_0x150fc7=createCommandSpinner(_0x5ad74f,_0x1d267d);_0x150fc7[_0x536e41(0x168)]();const _0x4ad4a6=_0xe5eddc(),_0x1f3eb8=_0x5ad74f[_0x536e41(0x175)](_0x536e41(0x165),''),_0x2f80c6={},_0x1b6def=()=>{const _0x5dbbf6=_0x536e41;if(!_0x150fc7[_0x5dbbf6(0x16c)])return;const _0x1b8a51=_0xe5eddc()-_0x4ad4a6,_0x74ed82=formatElapsed(_0x1b8a51),_0x22d545=_0x2f80c6[_0x5dbbf6(0x166)]??_0x1f3eb8,_0x5053d7=_0x2f80c6[_0x5dbbf6(0x162)]?_0x5dbbf6(0x169)+_0x2f80c6[_0x5dbbf6(0x162)]+']':'',_0x2107ad=_0x2f80c6[_0x5dbbf6(0x16a)]?'\x20'+_0x2f80c6[_0x5dbbf6(0x16a)]:'';_0x150fc7[_0x5dbbf6(0x173)]=_0x22d545+'\x20'+_0x74ed82+_0x2107ad+_0x5053d7;},_0x5a9fa4=_0x5be196(()=>{_0x1b6def();},0x3e8),_0x4c1d83={'setPhase':_0x3f3906=>{const _0x55ee63=_0x536e41;_0x2f80c6[_0x55ee63(0x166)]=_0x3f3906,_0x1b6def();},'setJobId':_0x48769b=>{_0x2f80c6['jobId']=_0x48769b,_0x1b6def();},'setExtra':_0x4e45ba=>{const _0x79c6d2=_0x536e41;_0x2f80c6[_0x79c6d2(0x16a)]=_0x4e45ba,_0x1b6def();}};_0x1b6def();try{const _0x108542=await _0x2ad2c0(_0x4c1d83),_0xbade8c=_0xe5eddc()-_0x4ad4a6;return{'data':_0x108542,'elapsedMs':_0xbade8c};}finally{clearInterval(_0x5a9fa4),_0x150fc7[_0x536e41(0x167)]();}}export function formatElapsed(_0x418f4e){const _0x5a5e17=a88_0x1191,_0x507d7c=Math[_0x5a5e17(0x177)](_0x418f4e/0x3e8);if(_0x507d7c<0x3c)return(_0x418f4e/0x3e8)['toFixed'](0x1)+'s';const _0x1083a4=Math[_0x5a5e17(0x177)](_0x507d7c/0x3c),_0x4b6457=_0x507d7c%0x3c;if(_0x1083a4<0x3c)return _0x1083a4+'m\x20'+_0x4b6457+'s';const _0x2a81c3=Math[_0x5a5e17(0x177)](_0x1083a4/0x3c),_0x521393=_0x1083a4%0x3c;return _0x2a81c3+'h\x20'+_0x521393+'m';}
@@ -1 +1 @@
1
- (function(_0x4de609,_0x55850f){const _0x2c0648=a85_0x3c14,_0x4386e9=_0x4de609();while(!![]){try{const _0x5a3eea=-parseInt(_0x2c0648(0x13a))/0x1*(parseInt(_0x2c0648(0x123))/0x2)+parseInt(_0x2c0648(0x12e))/0x3+-parseInt(_0x2c0648(0x126))/0x4+-parseInt(_0x2c0648(0x129))/0x5+-parseInt(_0x2c0648(0x12f))/0x6+parseInt(_0x2c0648(0x139))/0x7+parseInt(_0x2c0648(0x134))/0x8*(parseInt(_0x2c0648(0x125))/0x9);if(_0x5a3eea===_0x55850f)break;else _0x4386e9['push'](_0x4386e9['shift']());}catch(_0xf312dc){_0x4386e9['push'](_0x4386e9['shift']());}}}(a85_0x491d,0x96fd3));import{readFileSync}from'fs';export function stripSqlComments(_0x497fc4){const _0x42eeff=a85_0x3c14;let _0x3dc652=_0x497fc4[_0x42eeff(0x133)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3dc652=_0x3dc652[_0x42eeff(0x133)](/--.*$/gm,''),_0x3dc652[_0x42eeff(0x135)]();}function a85_0x3c14(_0x59ff21,_0x11a810){const _0x491dc6=a85_0x491d();return a85_0x3c14=function(_0x3c14eb,_0x4e625b){_0x3c14eb=_0x3c14eb-0x123;let _0x2fddd8=_0x491dc6[_0x3c14eb];return _0x2fddd8;},a85_0x3c14(_0x59ff21,_0x11a810);}function isEscaped(_0x57d695,_0x16f8a5){let _0x3b7e7e=0x0;for(let _0x327850=_0x16f8a5-0x1;_0x327850>=0x0&&_0x57d695[_0x327850]==='\x5c';_0x327850--){_0x3b7e7e++;}return _0x3b7e7e%0x2===0x1;}export function splitSqlStatements(_0x4debca){const _0x495ebb=a85_0x3c14,_0x15297e=stripSqlComments(_0x4debca);if(!_0x15297e)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1b891d=[];let _0x458113='',_0x260cbf=![],_0x2ffa43=![],_0x571d88=![];for(let _0x1c007a=0x0;_0x1c007a<_0x4debca['length'];_0x1c007a++){const _0x456cac=_0x4debca[_0x1c007a];if(_0x456cac==='\x27'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x2ffa43&&!_0x571d88)_0x260cbf=!_0x260cbf;else{if(_0x456cac==='\x22'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x571d88)_0x2ffa43=!_0x2ffa43;else _0x456cac==='`'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x2ffa43&&(_0x571d88=!_0x571d88);}if(_0x456cac===';'&&!_0x260cbf&&!_0x2ffa43&&!_0x571d88){const _0x1ef458=_0x458113[_0x495ebb(0x135)]();_0x1ef458&&_0x1b891d['push'](_0x1ef458),_0x458113='';}else _0x458113+=_0x456cac;}const _0x3c2222=_0x458113[_0x495ebb(0x135)]();_0x3c2222&&_0x1b891d['push'](_0x3c2222);const _0x27d8b8=_0x1b891d[_0x495ebb(0x137)](_0x406281=>_0x406281[_0x495ebb(0x135)]())[_0x495ebb(0x12b)](_0x57948b=>{const _0x3c3eaa=_0x495ebb,_0x44eec5=stripSqlComments(_0x57948b);return _0x44eec5[_0x3c3eaa(0x131)]>0x0;});if(_0x27d8b8['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x27d8b8;}export function readFileContent(_0x50beab){const _0xe3b6ad=a85_0x3c14;try{return readFileSync(_0x50beab,_0xe3b6ad(0x12d));}catch(_0x5e94ec){const _0x4621a7=_0x5e94ec[_0xe3b6ad(0x138)];if(_0x4621a7==='ENOENT')throw new Error(_0xe3b6ad(0x130)+_0x50beab+_0xe3b6ad(0x124));else{if(_0x4621a7===_0xe3b6ad(0x136))throw new Error(_0xe3b6ad(0x12c)+_0x50beab+'\x27');else throw new Error(_0xe3b6ad(0x127)+_0x50beab+_0xe3b6ad(0x128)+_0x5e94ec[_0xe3b6ad(0x12a)]);}}}export function readSqlStatementsFromFile(_0x14ca81){const _0x3bf976=a85_0x3c14,_0x460cec=readFileContent(_0x14ca81);try{return splitSqlStatements(_0x460cec);}catch(_0x8629be){throw new Error(_0x3bf976(0x130)+_0x14ca81+'\x27\x20'+_0x8629be[_0x3bf976(0x12a)][_0x3bf976(0x132)]());}}function a85_0x491d(){const _0x254322=['819kgGNMt','165640eiRCFz','Error\x20reading\x20file\x20\x27','\x27:\x20','1143545nVsrBy','message','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','2521125FFWQKs','2054784oTRFex','File\x20\x27','length','toLowerCase','replace','54488cAJQRF','trim','EACCES','map','code','4062765KarhFG','809537DtMcPn','2pkyipi','\x27\x20not\x20found'];a85_0x491d=function(){return _0x254322;};return a85_0x491d();}
1
+ (function(_0x359e7e,_0x4dcd87){const _0x5b4705=a89_0x2b00,_0x92e567=_0x359e7e();while(!![]){try{const _0x401ab7=parseInt(_0x5b4705(0x1e3))/0x1+-parseInt(_0x5b4705(0x1e0))/0x2+-parseInt(_0x5b4705(0x1d7))/0x3+-parseInt(_0x5b4705(0x1e4))/0x4*(parseInt(_0x5b4705(0x1ef))/0x5)+-parseInt(_0x5b4705(0x1e6))/0x6*(-parseInt(_0x5b4705(0x1ec))/0x7)+parseInt(_0x5b4705(0x1dd))/0x8*(parseInt(_0x5b4705(0x1db))/0x9)+parseInt(_0x5b4705(0x1d8))/0xa*(parseInt(_0x5b4705(0x1d9))/0xb);if(_0x401ab7===_0x4dcd87)break;else _0x92e567['push'](_0x92e567['shift']());}catch(_0x15502c){_0x92e567['push'](_0x92e567['shift']());}}}(a89_0x2c43,0x37ac7));import{readFileSync}from'fs';function a89_0x2c43(){const _0x4095e7=['trim','code','EACCES','ENOENT','14OqSeWY','replace','Content\x20contains\x20no\x20SQL\x20statements','129430FPXaFa','741258VFOiIH','40RRpMGh','894839ZzMcZY','push','315153bxxTde','toLowerCase','16rpjdOW','Error\x20reading\x20file\x20\x27','utf-8','818870pcIQIz','map','message','422410ggLRDL','48zQOHcB','File\x20\x27','1132056XKlAYT','length'];a89_0x2c43=function(){return _0x4095e7;};return a89_0x2c43();}export function stripSqlComments(_0x1ca975){const _0x34a679=a89_0x2b00;let _0x5b5e42=_0x1ca975[_0x34a679(0x1ed)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5b5e42=_0x5b5e42[_0x34a679(0x1ed)](/--.*$/gm,''),_0x5b5e42[_0x34a679(0x1e8)]();}function isEscaped(_0x2c693f,_0x477640){let _0x9480e2=0x0;for(let _0x173814=_0x477640-0x1;_0x173814>=0x0&&_0x2c693f[_0x173814]==='\x5c';_0x173814--){_0x9480e2++;}return _0x9480e2%0x2===0x1;}export function splitSqlStatements(_0x3386a2){const _0x2fff64=a89_0x2b00,_0xc15d6e=stripSqlComments(_0x3386a2);if(!_0xc15d6e)throw new Error(_0x2fff64(0x1ee));const _0x2c91b6=[];let _0x2afcc8='',_0x477afc=![],_0x54faab=![],_0xbfec00=![];for(let _0x5178b1=0x0;_0x5178b1<_0x3386a2[_0x2fff64(0x1e7)];_0x5178b1++){const _0x4e933=_0x3386a2[_0x5178b1];if(_0x4e933==='\x27'&&!isEscaped(_0x3386a2,_0x5178b1)&&!_0x54faab&&!_0xbfec00)_0x477afc=!_0x477afc;else{if(_0x4e933==='\x22'&&!isEscaped(_0x3386a2,_0x5178b1)&&!_0x477afc&&!_0xbfec00)_0x54faab=!_0x54faab;else _0x4e933==='`'&&!isEscaped(_0x3386a2,_0x5178b1)&&!_0x477afc&&!_0x54faab&&(_0xbfec00=!_0xbfec00);}if(_0x4e933===';'&&!_0x477afc&&!_0x54faab&&!_0xbfec00){const _0x2643b8=_0x2afcc8[_0x2fff64(0x1e8)]();_0x2643b8&&_0x2c91b6[_0x2fff64(0x1da)](_0x2643b8),_0x2afcc8='';}else _0x2afcc8+=_0x4e933;}const _0x33546c=_0x2afcc8['trim']();_0x33546c&&_0x2c91b6['push'](_0x33546c);const _0x2836e3=_0x2c91b6[_0x2fff64(0x1e1)](_0x5b809b=>_0x5b809b[_0x2fff64(0x1e8)]())['filter'](_0xe72e81=>{const _0x47d46d=_0x2fff64,_0x38b4c1=stripSqlComments(_0xe72e81);return _0x38b4c1[_0x47d46d(0x1e7)]>0x0;});if(_0x2836e3[_0x2fff64(0x1e7)]===0x0)throw new Error(_0x2fff64(0x1ee));return _0x2836e3;}export function readFileContent(_0x4c4c27){const _0x376f6f=a89_0x2b00;try{return readFileSync(_0x4c4c27,_0x376f6f(0x1df));}catch(_0x52f4bb){const _0x5bf30d=_0x52f4bb[_0x376f6f(0x1e9)];if(_0x5bf30d===_0x376f6f(0x1eb))throw new Error(_0x376f6f(0x1e5)+_0x4c4c27+'\x27\x20not\x20found');else{if(_0x5bf30d===_0x376f6f(0x1ea))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x4c4c27+'\x27');else throw new Error(_0x376f6f(0x1de)+_0x4c4c27+'\x27:\x20'+_0x52f4bb[_0x376f6f(0x1e2)]);}}}function a89_0x2b00(_0xef94bf,_0x1429c1){const _0x2c43f0=a89_0x2c43();return a89_0x2b00=function(_0x2b00f3,_0x45a0cd){_0x2b00f3=_0x2b00f3-0x1d7;let _0x1b49b4=_0x2c43f0[_0x2b00f3];return _0x1b49b4;},a89_0x2b00(_0xef94bf,_0x1429c1);}export function readSqlStatementsFromFile(_0x444b88){const _0x33c741=a89_0x2b00,_0x244178=readFileContent(_0x444b88);try{return splitSqlStatements(_0x244178);}catch(_0x58d6d1){throw new Error(_0x33c741(0x1e5)+_0x444b88+'\x27\x20'+_0x58d6d1['message'][_0x33c741(0x1dc)]());}}
@@ -1 +1 @@
1
- function a86_0x3485(_0x1dbb75,_0x4e9039){const _0x2f691c=a86_0x2f69();return a86_0x3485=function(_0x348539,_0x2f61e6){_0x348539=_0x348539-0x131;let _0x331a92=_0x2f691c[_0x348539];return _0x331a92;},a86_0x3485(_0x1dbb75,_0x4e9039);}(function(_0x8afdff,_0x2ec08a){const _0x2a76fd=a86_0x3485,_0x33bdb9=_0x8afdff();while(!![]){try{const _0x163b98=parseInt(_0x2a76fd(0x13c))/0x1*(parseInt(_0x2a76fd(0x13f))/0x2)+-parseInt(_0x2a76fd(0x133))/0x3*(-parseInt(_0x2a76fd(0x138))/0x4)+parseInt(_0x2a76fd(0x135))/0x5*(-parseInt(_0x2a76fd(0x137))/0x6)+-parseInt(_0x2a76fd(0x13e))/0x7+parseInt(_0x2a76fd(0x139))/0x8*(-parseInt(_0x2a76fd(0x142))/0x9)+parseInt(_0x2a76fd(0x144))/0xa*(-parseInt(_0x2a76fd(0x145))/0xb)+parseInt(_0x2a76fd(0x132))/0xc;if(_0x163b98===_0x2ec08a)break;else _0x33bdb9['push'](_0x33bdb9['shift']());}catch(_0x435752){_0x33bdb9['push'](_0x33bdb9['shift']());}}}(a86_0x2f69,0x9c37d));export async function*parseSSEStream(_0x375fc7,_0x566152){const _0x65d315=a86_0x3485;if(!_0x375fc7[_0x65d315(0x13d)])throw new Error('Response\x20body\x20is\x20null');const _0x2d6012=_0x375fc7[_0x65d315(0x13d)][_0x65d315(0x13a)](),_0x3e3f75=new TextDecoder();let _0x559ae5='',_0x17c04a={};try{while(!![]){const {done:_0x54fcda,value:_0x285e2d}=await _0x2d6012[_0x65d315(0x13b)]();if(_0x54fcda){if(_0x17c04a[_0x65d315(0x146)]){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x2ddc4c=parseSSEData(_0x17c04a[_0x65d315(0x146)]);yield _0x2ddc4c;}break;}_0x559ae5+=_0x3e3f75[_0x65d315(0x140)](_0x285e2d,{'stream':!![]});const _0x58ec59=_0x559ae5['split']('\x0a');_0x559ae5=_0x58ec59[_0x65d315(0x141)]()||'';for(const _0x426aa3 of _0x58ec59){if(_0x426aa3[_0x65d315(0x136)]()===''){if(_0x17c04a['data']){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x11e7b4=parseSSEData(_0x17c04a['data']);yield _0x11e7b4,_0x17c04a={};}continue;}if(_0x426aa3[_0x65d315(0x148)](':'))continue;const _0x369ea7=_0x426aa3['indexOf'](':');if(_0x369ea7===-0x1)continue;const _0x4fa288=_0x426aa3[_0x65d315(0x131)](0x0,_0x369ea7);let _0x3cd8ce=_0x426aa3['slice'](_0x369ea7+0x1);_0x3cd8ce[_0x65d315(0x148)]('\x20')&&(_0x3cd8ce=_0x3cd8ce[_0x65d315(0x131)](0x1));switch(_0x4fa288){case'event':_0x17c04a['event']=_0x3cd8ce;break;case _0x65d315(0x146):_0x17c04a['data']=_0x17c04a['data']?_0x17c04a[_0x65d315(0x146)]+'\x0a'+_0x3cd8ce:_0x3cd8ce;break;case'id':_0x17c04a['id']=_0x3cd8ce;break;}}}}finally{_0x2d6012[_0x65d315(0x143)]();}}function parseSSEData(_0x207d43){const _0x353d4c=a86_0x3485;try{return JSON[_0x353d4c(0x147)](_0x207d43);}catch(_0x1bcab8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x207d43,{'cause':_0x1bcab8});}}function a86_0x2f69(){const _0x2c4a63=['[LLM\x20API\x20SSE]\x20','5ikhguH','trim','7232838zuhYcL','146404TveIqX','2237416cPhzDe','getReader','read','166772jFbwyb','body','7432152zPkXXr','4BhzWOX','decode','pop','18eYEYKR','releaseLock','1930ubqhbN','10769jALOJG','data','parse','startsWith','debug','slice','37226748qwLgQm','18evkcsA'];a86_0x2f69=function(){return _0x2c4a63;};return a86_0x2f69();}
1
+ (function(_0x5d5475,_0x418b11){const _0x3e7252=a90_0x110e,_0x190e4b=_0x5d5475();while(!![]){try{const _0x33701c=-parseInt(_0x3e7252(0x188))/0x1+parseInt(_0x3e7252(0x176))/0x2*(-parseInt(_0x3e7252(0x17a))/0x3)+parseInt(_0x3e7252(0x174))/0x4*(-parseInt(_0x3e7252(0x17b))/0x5)+parseInt(_0x3e7252(0x184))/0x6*(parseInt(_0x3e7252(0x189))/0x7)+parseInt(_0x3e7252(0x187))/0x8*(-parseInt(_0x3e7252(0x179))/0x9)+parseInt(_0x3e7252(0x175))/0xa+parseInt(_0x3e7252(0x183))/0xb;if(_0x33701c===_0x418b11)break;else _0x190e4b['push'](_0x190e4b['shift']());}catch(_0x4cf18){_0x190e4b['push'](_0x190e4b['shift']());}}}(a90_0x1a14,0xe5657));function a90_0x1a14(){const _0x195dea=['712486emFdrj','data','pop','9XWBjpT','15GjTFmY','2690CzcAnR','parse','[LLM\x20API\x20SSE]\x20','slice','read','body','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','startsWith','45519782VWUpCB','694074qXUMmu','trim','decode','13438568rahYSF','178208aMgDkI','42eOHdXs','debug','8604DNhdmk','9038530TyUShD'];a90_0x1a14=function(){return _0x195dea;};return a90_0x1a14();}function a90_0x110e(_0x206405,_0x28a418){const _0x1a1441=a90_0x1a14();return a90_0x110e=function(_0x110ed8,_0xcd7e18){_0x110ed8=_0x110ed8-0x174;let _0x19c72c=_0x1a1441[_0x110ed8];return _0x19c72c;},a90_0x110e(_0x206405,_0x28a418);}export async function*parseSSEStream(_0x31a742,_0xa4325d){const _0x50432f=a90_0x110e;if(!_0x31a742['body'])throw new Error('Response\x20body\x20is\x20null');const _0x529cbf=_0x31a742[_0x50432f(0x180)]['getReader'](),_0x403ec5=new TextDecoder();let _0x1f73aa='',_0x30a4ac={};try{while(!![]){const {done:_0x39049e,value:_0x5d4d88}=await _0x529cbf[_0x50432f(0x17f)]();if(_0x39049e){if(_0x30a4ac[_0x50432f(0x177)]){_0xa4325d?.[_0x50432f(0x18a)](_0x50432f(0x17d)+_0x30a4ac['data']);const _0x1a3d9c=parseSSEData(_0x30a4ac[_0x50432f(0x177)]);yield _0x1a3d9c;}break;}_0x1f73aa+=_0x403ec5[_0x50432f(0x186)](_0x5d4d88,{'stream':!![]});const _0x13cb65=_0x1f73aa['split']('\x0a');_0x1f73aa=_0x13cb65[_0x50432f(0x178)]()||'';for(const _0x5951e2 of _0x13cb65){if(_0x5951e2[_0x50432f(0x185)]()===''){if(_0x30a4ac[_0x50432f(0x177)]){_0xa4325d?.[_0x50432f(0x18a)](_0x50432f(0x17d)+_0x30a4ac[_0x50432f(0x177)]);const _0x55de0d=parseSSEData(_0x30a4ac[_0x50432f(0x177)]);yield _0x55de0d,_0x30a4ac={};}continue;}if(_0x5951e2[_0x50432f(0x182)](':'))continue;const _0x54bdfa=_0x5951e2['indexOf'](':');if(_0x54bdfa===-0x1)continue;const _0x4c12a9=_0x5951e2[_0x50432f(0x17e)](0x0,_0x54bdfa);let _0x1f4c04=_0x5951e2[_0x50432f(0x17e)](_0x54bdfa+0x1);_0x1f4c04[_0x50432f(0x182)]('\x20')&&(_0x1f4c04=_0x1f4c04[_0x50432f(0x17e)](0x1));switch(_0x4c12a9){case'event':_0x30a4ac['event']=_0x1f4c04;break;case _0x50432f(0x177):_0x30a4ac['data']=_0x30a4ac[_0x50432f(0x177)]?_0x30a4ac[_0x50432f(0x177)]+'\x0a'+_0x1f4c04:_0x1f4c04;break;case'id':_0x30a4ac['id']=_0x1f4c04;break;}}}}finally{_0x529cbf['releaseLock']();}}function parseSSEData(_0x54e3ae){const _0x412915=a90_0x110e;try{return JSON[_0x412915(0x17c)](_0x54e3ae);}catch(_0x56527c){throw new Error(_0x412915(0x181)+_0x54e3ae,{'cause':_0x56527c});}}
@@ -1 +1 @@
1
- (function(_0x143fc9,_0x1e9160){const _0xc81d0b=a87_0x4acb,_0x2c7bc0=_0x143fc9();while(!![]){try{const _0x58aed4=-parseInt(_0xc81d0b(0x207))/0x1+-parseInt(_0xc81d0b(0x205))/0x2*(-parseInt(_0xc81d0b(0x1f3))/0x3)+-parseInt(_0xc81d0b(0x1fe))/0x4+parseInt(_0xc81d0b(0x1f7))/0x5+-parseInt(_0xc81d0b(0x206))/0x6*(-parseInt(_0xc81d0b(0x204))/0x7)+-parseInt(_0xc81d0b(0x1f5))/0x8+-parseInt(_0xc81d0b(0x1f4))/0x9*(-parseInt(_0xc81d0b(0x1f9))/0xa);if(_0x58aed4===_0x1e9160)break;else _0x2c7bc0['push'](_0x2c7bc0['shift']());}catch(_0x37025d){_0x2c7bc0['push'](_0x2c7bc0['shift']());}}}(a87_0x4c1b,0x1a327));import a87_0x54c074 from'string-width';export function stringWidth(_0xcf9c5c){return a87_0x54c074(_0xcf9c5c);}export function padEnd(_0x20c156,_0x92035f){const _0x3d0857=a87_0x4acb,_0x3b30fc=stringWidth(_0x20c156);if(_0x3b30fc>=_0x92035f)return _0x20c156;return _0x20c156+'\x20'[_0x3d0857(0x208)](_0x92035f-_0x3b30fc);}function a87_0x4c1b(){const _0x3b2cdd=['3PtOXti','2556mjexFm','664728RffRME','unknown','838570KwbWHH','trim','7430wwxrga','substring','\x5c$&','test','toString','618264ecNylc','toLowerCase','random','floor','env','padStart','303499evKQqF','175704JhJgkQ','6eJyhef','164975fUUxET','repeat','USERNAME','length','replace','USER','Cannot\x20escape\x20empty\x20string\x20literal'];a87_0x4c1b=function(){return _0x3b2cdd;};return a87_0x4c1b();}export function padStart(_0x4ec16d,_0x4e3352){const _0x34873b=a87_0x4acb,_0x1e2544=stringWidth(_0x4ec16d);if(_0x1e2544>=_0x4e3352)return _0x4ec16d;return'\x20'[_0x34873b(0x208)](_0x4e3352-_0x1e2544)+_0x4ec16d;}export function centerAlign(_0xa5e501,_0xb09867){const _0x307043=a87_0x4acb,_0x11048b=stringWidth(_0xa5e501);if(_0x11048b>_0xb09867){if(_0xb09867<=0x1)return'…'[_0x307043(0x1fa)](0x0,_0xb09867);let _0x305f04=_0xa5e501;while(stringWidth(_0x305f04+'…')>_0xb09867){_0x305f04=_0x305f04['slice'](0x0,-0x1);}return _0x305f04+'…';}if(_0x11048b===_0xb09867)return _0xa5e501;const _0x375244=_0xb09867-_0x11048b,_0x2db6f2=Math[_0x307043(0x201)](_0x375244/0x2),_0x53fe47=_0x375244-_0x2db6f2;return'\x20'[_0x307043(0x208)](_0x2db6f2)+_0xa5e501+'\x20'['repeat'](_0x53fe47);}function a87_0x4acb(_0x58aa1c,_0x44cd1e){const _0x4c1bd4=a87_0x4c1b();return a87_0x4acb=function(_0x4acb2b,_0x287a35){_0x4acb2b=_0x4acb2b-0x1f3;let _0x2965f2=_0x4c1bd4[_0x4acb2b];return _0x2965f2;},a87_0x4acb(_0x58aa1c,_0x44cd1e);}export function escapeStringLiteral(_0x4c5861){const _0x32b974=a87_0x4acb;if(!_0x4c5861||_0x4c5861[_0x32b974(0x1f8)]()[_0x32b974(0x20a)]===0x0)throw new Error(_0x32b974(0x20d));const _0x26ff4d=_0x4c5861[_0x32b974(0x20b)](/'/g,'\x27\x27');return'\x27'+_0x26ff4d+'\x27';}export function globToLike(_0x5bf058){const _0x49a08f=a87_0x4acb;let _0x79ec4f=_0x5bf058['replace'](/\\/g,'\x5c\x5c')[_0x49a08f(0x20b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x79ec4f=_0x79ec4f[_0x49a08f(0x20b)](/\*/g,'%')[_0x49a08f(0x20b)](/\?/g,'_'),_0x79ec4f;}export function buildLikePattern(_0x3202a8){const _0x21408d=a87_0x4acb;if(!_0x3202a8||_0x3202a8['trim']()[_0x21408d(0x20a)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x443136=globToLike(_0x3202a8),_0xf4ca13=_0x443136[_0x21408d(0x20b)](/'/g,'\x27\x27');return'\x27'+_0xf4ca13+'\x27';}export function matchGlobPattern(_0x90a1c,_0x39b5c7){const _0x40636e=a87_0x4acb,_0x4f2a33=_0x39b5c7['replace'](/[.+^${}()|[\]\\]/g,_0x40636e(0x1fb))['replace'](/\*/g,'.*')[_0x40636e(0x20b)](/\?/g,'.'),_0x5d8f1f=new RegExp('^'+_0x4f2a33+'$');return _0x5d8f1f[_0x40636e(0x1fc)](_0x90a1c);}export function getSanitizedUsername(){const _0x5dceb9=a87_0x4acb,_0x3cde66=process[_0x5dceb9(0x202)][_0x5dceb9(0x20c)]||process[_0x5dceb9(0x202)][_0x5dceb9(0x209)]||_0x5dceb9(0x1f6);return _0x3cde66[_0x5dceb9(0x20b)](/[^a-zA-Z0-9]/g,'')[_0x5dceb9(0x1ff)]();}export function generateRandomHex(){const _0x22fc24=a87_0x4acb,_0x20494f=Math[_0x22fc24(0x201)](Math[_0x22fc24(0x200)]()*0xfffff);return _0x20494f[_0x22fc24(0x1fd)](0x10)[_0x22fc24(0x203)](0x5,'0');}
1
+ (function(_0x30ef47,_0x576cfe){const _0x567b8a=a91_0x546e,_0x5e5152=_0x30ef47();while(!![]){try{const _0x416266=-parseInt(_0x567b8a(0x150))/0x1*(-parseInt(_0x567b8a(0x14d))/0x2)+parseInt(_0x567b8a(0x147))/0x3*(parseInt(_0x567b8a(0x14f))/0x4)+-parseInt(_0x567b8a(0x142))/0x5+parseInt(_0x567b8a(0x149))/0x6*(parseInt(_0x567b8a(0x151))/0x7)+parseInt(_0x567b8a(0x155))/0x8+-parseInt(_0x567b8a(0x143))/0x9*(-parseInt(_0x567b8a(0x13f))/0xa)+-parseInt(_0x567b8a(0x146))/0xb;if(_0x416266===_0x576cfe)break;else _0x5e5152['push'](_0x5e5152['shift']());}catch(_0x21326c){_0x5e5152['push'](_0x5e5152['shift']());}}}(a91_0x4e29,0x1daaf));import a91_0x4ca5d5 from'string-width';export function stringWidth(_0x25693a){return a91_0x4ca5d5(_0x25693a);}export function padEnd(_0x23ee3b,_0x2cf68c){const _0x420ba0=a91_0x546e,_0x446af9=stringWidth(_0x23ee3b);if(_0x446af9>=_0x2cf68c)return _0x23ee3b;return _0x23ee3b+'\x20'[_0x420ba0(0x145)](_0x2cf68c-_0x446af9);}function a91_0x4e29(){const _0x4acf07=['144008qivvvl','15241YRuuIA','7OfpxVx','padStart','length','random','35472dxKtac','replace','USERNAME','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','floor','Cannot\x20escape\x20empty\x20string\x20literal','3710JlxQMw','toString','toLowerCase','1135965WBOlRU','2043gbZhkX','unknown','repeat','981915qwuaVP','9eYDKuF','trim','1356474HnsKcN','env','test','USER','2zOBtmH','substring'];a91_0x4e29=function(){return _0x4acf07;};return a91_0x4e29();}export function padStart(_0x36682c,_0x5a2a01){const _0x403973=a91_0x546e,_0x5625de=stringWidth(_0x36682c);if(_0x5625de>=_0x5a2a01)return _0x36682c;return'\x20'[_0x403973(0x145)](_0x5a2a01-_0x5625de)+_0x36682c;}export function centerAlign(_0xbf75a3,_0x3d4c27){const _0x10e0c0=a91_0x546e,_0x5d0259=stringWidth(_0xbf75a3);if(_0x5d0259>_0x3d4c27){if(_0x3d4c27<=0x1)return'…'[_0x10e0c0(0x14e)](0x0,_0x3d4c27);let _0x2ed22b=_0xbf75a3;while(stringWidth(_0x2ed22b+'…')>_0x3d4c27){_0x2ed22b=_0x2ed22b['slice'](0x0,-0x1);}return _0x2ed22b+'…';}if(_0x5d0259===_0x3d4c27)return _0xbf75a3;const _0x319122=_0x3d4c27-_0x5d0259,_0x274f14=Math[_0x10e0c0(0x15a)](_0x319122/0x2),_0x597a5b=_0x319122-_0x274f14;return'\x20'[_0x10e0c0(0x145)](_0x274f14)+_0xbf75a3+'\x20'['repeat'](_0x597a5b);}export function escapeStringLiteral(_0x25adb7){const _0x11dbee=a91_0x546e;if(!_0x25adb7||_0x25adb7[_0x11dbee(0x148)]()[_0x11dbee(0x153)]===0x0)throw new Error(_0x11dbee(0x13e));const _0x537e7e=_0x25adb7['replace'](/'/g,'\x27\x27');return'\x27'+_0x537e7e+'\x27';}export function globToLike(_0x51129b){const _0x2742a7=a91_0x546e;let _0xcf4886=_0x51129b[_0x2742a7(0x156)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x2742a7(0x156)](/_/g,'\x5c_');return _0xcf4886=_0xcf4886[_0x2742a7(0x156)](/\*/g,'%')['replace'](/\?/g,'_'),_0xcf4886;}export function buildLikePattern(_0x2c18e8){const _0x6e965a=a91_0x546e;if(!_0x2c18e8||_0x2c18e8['trim']()[_0x6e965a(0x153)]===0x0)throw new Error(_0x6e965a(0x159));const _0x24a5a9=globToLike(_0x2c18e8),_0x4121b9=_0x24a5a9[_0x6e965a(0x156)](/'/g,'\x27\x27');return'\x27'+_0x4121b9+'\x27';}function a91_0x546e(_0x2d7cfc,_0x839e13){const _0x4e29f9=a91_0x4e29();return a91_0x546e=function(_0x546e32,_0x42b456){_0x546e32=_0x546e32-0x13e;let _0x100a75=_0x4e29f9[_0x546e32];return _0x100a75;},a91_0x546e(_0x2d7cfc,_0x839e13);}export function matchGlobPattern(_0x38e746,_0x45967a){const _0x149668=a91_0x546e,_0x173616=_0x45967a['replace'](/[.+^${}()|[\]\\]/g,_0x149668(0x158))[_0x149668(0x156)](/\*/g,'.*')[_0x149668(0x156)](/\?/g,'.'),_0x59eadd=new RegExp('^'+_0x173616+'$');return _0x59eadd[_0x149668(0x14b)](_0x38e746);}export function getSanitizedUsername(){const _0x25e0d5=a91_0x546e,_0x3d76e0=process['env'][_0x25e0d5(0x14c)]||process[_0x25e0d5(0x14a)][_0x25e0d5(0x157)]||_0x25e0d5(0x144);return _0x3d76e0[_0x25e0d5(0x156)](/[^a-zA-Z0-9]/g,'')[_0x25e0d5(0x141)]();}export function generateRandomHex(){const _0x31b720=a91_0x546e,_0xd8932=Math[_0x31b720(0x15a)](Math[_0x31b720(0x154)]()*0xfffff);return _0xd8932[_0x31b720(0x140)](0x10)[_0x31b720(0x152)](0x5,'0');}
@@ -1 +1 @@
1
- function a88_0x2bd2(_0x41a527,_0x5bf7cc){const _0x1470f2=a88_0x1470();return a88_0x2bd2=function(_0x2bd26c,_0x2e1c18){_0x2bd26c=_0x2bd26c-0x16a;let _0x3bf414=_0x1470f2[_0x2bd26c];return _0x3bf414;},a88_0x2bd2(_0x41a527,_0x5bf7cc);}(function(_0x21de68,_0x520b95){const _0x2b2f91=a88_0x2bd2,_0x50b603=_0x21de68();while(!![]){try{const _0x399e19=parseInt(_0x2b2f91(0x180))/0x1+parseInt(_0x2b2f91(0x179))/0x2+parseInt(_0x2b2f91(0x17c))/0x3+-parseInt(_0x2b2f91(0x175))/0x4*(-parseInt(_0x2b2f91(0x182))/0x5)+parseInt(_0x2b2f91(0x174))/0x6*(-parseInt(_0x2b2f91(0x178))/0x7)+parseInt(_0x2b2f91(0x16c))/0x8*(parseInt(_0x2b2f91(0x17b))/0x9)+-parseInt(_0x2b2f91(0x16e))/0xa;if(_0x399e19===_0x520b95)break;else _0x50b603['push'](_0x50b603['shift']());}catch(_0x25ebaf){_0x50b603['push'](_0x50b603['shift']());}}}(a88_0x1470,0xded4f));function hasWildcard(_0x323097){const _0x5e6b4a=a88_0x2bd2;return _0x323097[_0x5e6b4a(0x16b)]('*')||_0x323097[_0x5e6b4a(0x16b)]('?');}export function parseTableReference(_0x4800fa){const _0x281396=a88_0x2bd2;if(!_0x4800fa||_0x4800fa[_0x281396(0x17d)]()[_0x281396(0x16f)]===0x0)throw new Error(_0x281396(0x170));const _0x72bb76=_0x4800fa[_0x281396(0x17d)](),_0x3f1f02={'original':_0x72bb76},_0x32773c=_0x72bb76[_0x281396(0x177)]('.');if(_0x32773c[_0x281396(0x16f)]===0x1){const _0x217aae=_0x32773c[0x0];if(!_0x217aae)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x3f1f02['table']=_0x217aae;}else{if(_0x32773c[_0x281396(0x16f)]===0x2){const [_0x3d71c7,_0x19b03f]=_0x32773c;if(!_0x3d71c7)throw new Error(_0x281396(0x176));if(!_0x19b03f)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3f1f02[_0x281396(0x172)]=_0x3d71c7,_0x3f1f02[_0x281396(0x171)]=_0x19b03f;}else{if(_0x32773c['length']===0x3){const [_0x4f4089,_0xeb5f02,_0x1652de]=_0x32773c;if(!_0x4f4089||!_0xeb5f02||!_0x1652de)throw new Error(_0x281396(0x17f));_0x3f1f02[_0x281396(0x17a)]=_0x4f4089,_0x3f1f02[_0x281396(0x172)]=_0xeb5f02,_0x3f1f02[_0x281396(0x171)]=_0x1652de;}else throw new Error(_0x281396(0x181));}}return _0x3f1f02;}export function formatTableReference(_0x46811e){const _0x5b6f8c=a88_0x2bd2,_0x6de60c=[];return _0x46811e[_0x5b6f8c(0x17a)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x17a)]),_0x46811e[_0x5b6f8c(0x172)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x172)]),_0x46811e[_0x5b6f8c(0x171)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x171)]),_0x6de60c[_0x5b6f8c(0x16a)]('.');}export function validateTableListReference(_0x2d5f29){return undefined;}function a88_0x1470(){const _0x1301c5=['237845yjnBNU','join','includes','1739896blqmqO','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','33578010caiiSY','length','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','57582zAaEII','68mnivyS','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','49RtYukO','3144224xDKeFs','catalog','27cZcOsw','947718tIiZWp','trim','push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','988547BVjsYg','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)'];a88_0x1470=function(){return _0x1301c5;};return a88_0x1470();}export function validateTableDescribeReference(_0x5720fe){const _0x596f1c=a88_0x2bd2;if(!_0x5720fe[_0x596f1c(0x171)])return _0x596f1c(0x173);if(_0x5720fe[_0x596f1c(0x172)]&&hasWildcard(_0x5720fe[_0x596f1c(0x172)]))return _0x596f1c(0x16d);if(hasWildcard(_0x5720fe[_0x596f1c(0x171)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ function a92_0x11c7(){const _0x2e0a0e=['table','trim','split','1675806hXOgxH','1809241TlrRyx','510563wNjUSk','length','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','database','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','332BglxSL','2WufgIr','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','9111QAvzfI','catalog','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','3917460MGnlVS','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','4748841JvAGnZ','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','push','4906432SalkKi'];a92_0x11c7=function(){return _0x2e0a0e;};return a92_0x11c7();}(function(_0x5781b8,_0x50c7ab){const _0x105166=a92_0x28b0,_0x3efe80=_0x5781b8();while(!![]){try{const _0x42ef6f=-parseInt(_0x105166(0x195))/0x1*(-parseInt(_0x105166(0x19c))/0x2)+-parseInt(_0x105166(0x19e))/0x3*(-parseInt(_0x105166(0x19b))/0x4)+parseInt(_0x105166(0x1a2))/0x5+parseInt(_0x105166(0x193))/0x6+-parseInt(_0x105166(0x194))/0x7+-parseInt(_0x105166(0x1a8))/0x8+-parseInt(_0x105166(0x1a5))/0x9;if(_0x42ef6f===_0x50c7ab)break;else _0x3efe80['push'](_0x3efe80['shift']());}catch(_0x42f8ee){_0x3efe80['push'](_0x3efe80['shift']());}}}(a92_0x11c7,0x6801b));function a92_0x28b0(_0x231719,_0x227bb6){const _0x11c7c2=a92_0x11c7();return a92_0x28b0=function(_0x28b0cc,_0x224fc0){_0x28b0cc=_0x28b0cc-0x192;let _0x212e02=_0x11c7c2[_0x28b0cc];return _0x212e02;},a92_0x28b0(_0x231719,_0x227bb6);}function hasWildcard(_0x468228){const _0xa8fc10=a92_0x28b0;return _0x468228['includes']('*')||_0x468228[_0xa8fc10(0x19a)]('?');}export function parseTableReference(_0x248ae5){const _0x45014f=a92_0x28b0;if(!_0x248ae5||_0x248ae5[_0x45014f(0x1aa)]()['length']===0x0)throw new Error(_0x45014f(0x1a6));const _0xaf72e4=_0x248ae5[_0x45014f(0x1aa)](),_0x4a4c30={'original':_0xaf72e4},_0x3d7eea=_0xaf72e4[_0x45014f(0x192)]('.');if(_0x3d7eea[_0x45014f(0x196)]===0x1){const _0x4e39fc=_0x3d7eea[0x0];if(!_0x4e39fc)throw new Error(_0x45014f(0x1a3));_0x4a4c30['table']=_0x4e39fc;}else{if(_0x3d7eea[_0x45014f(0x196)]===0x2){const [_0x138e33,_0x4d3111]=_0x3d7eea;if(!_0x138e33)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4d3111)throw new Error(_0x45014f(0x19d));_0x4a4c30[_0x45014f(0x198)]=_0x138e33,_0x4a4c30[_0x45014f(0x1a9)]=_0x4d3111;}else{if(_0x3d7eea[_0x45014f(0x196)]===0x3){const [_0xfbf62f,_0x2f126e,_0xa21d72]=_0x3d7eea;if(!_0xfbf62f||!_0x2f126e||!_0xa21d72)throw new Error(_0x45014f(0x199));_0x4a4c30[_0x45014f(0x19f)]=_0xfbf62f,_0x4a4c30[_0x45014f(0x198)]=_0x2f126e,_0x4a4c30[_0x45014f(0x1a9)]=_0xa21d72;}else throw new Error(_0x45014f(0x197));}}return _0x4a4c30;}export function formatTableReference(_0x53fa84){const _0x4cb852=a92_0x28b0,_0x390daf=[];return _0x53fa84['catalog']&&_0x390daf[_0x4cb852(0x1a7)](_0x53fa84[_0x4cb852(0x19f)]),_0x53fa84[_0x4cb852(0x198)]&&_0x390daf[_0x4cb852(0x1a7)](_0x53fa84['database']),_0x53fa84[_0x4cb852(0x1a9)]&&_0x390daf[_0x4cb852(0x1a7)](_0x53fa84[_0x4cb852(0x1a9)]),_0x390daf[_0x4cb852(0x1a0)]('.');}export function validateTableListReference(_0x3b3efd){return undefined;}export function validateTableDescribeReference(_0xd764a9){const _0x668c69=a92_0x28b0;if(!_0xd764a9[_0x668c69(0x1a9)])return _0x668c69(0x1a1);if(_0xd764a9[_0x668c69(0x198)]&&hasWildcard(_0xd764a9['database']))return _0x668c69(0x1a4);if(hasWildcard(_0xd764a9[_0x668c69(0x1a9)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a89_0x4a091d=a89_0x3e19;(function(_0x2f5293,_0x43031e){const _0x30d054=a89_0x3e19,_0x1de929=_0x2f5293();while(!![]){try{const _0x3ebf30=-parseInt(_0x30d054(0x178))/0x1+-parseInt(_0x30d054(0x16c))/0x2*(-parseInt(_0x30d054(0x1a1))/0x3)+-parseInt(_0x30d054(0x166))/0x4+parseInt(_0x30d054(0x189))/0x5*(-parseInt(_0x30d054(0x175))/0x6)+-parseInt(_0x30d054(0x196))/0x7*(-parseInt(_0x30d054(0x1a4))/0x8)+-parseInt(_0x30d054(0x169))/0x9+-parseInt(_0x30d054(0x19c))/0xa*(-parseInt(_0x30d054(0x173))/0xb);if(_0x3ebf30===_0x43031e)break;else _0x1de929['push'](_0x1de929['shift']());}catch(_0x374c52){_0x1de929['push'](_0x1de929['shift']());}}}(a89_0x42d0,0x5fe7e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a89_0x42d0(){const _0x1565c6=['message','tdx-','mtime','toISOString','ERROR','write','cause','182xpBGUK','logStream','info','.gz','fileOnly','getMinutes','30vmmzON','red','Warning:\x20Error\x20writing\x20to\x20tdx.log:','.log','padStart','1533dzLITF','getHours','error','205528wjwnpf','gray','close','1218316jesBgb','tdx.log','TRACE','2593512CKrAxD','map','getMonth','1898QKXxQK','getSeconds','logLevel','includes','rotateOldLogs','WARN','test','4172179lpZQqV','.cache','5298UPBpUJ','logs','getDate','758618bzIzbl','Warning:\x20Failed\x20to\x20compress\x20','trace','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','warn','Proxy\x20session\x20ended','toString','stack','DEBUG','tdx','log','abs','floor','split','getTimezoneOffset','getMilliseconds','name','3095ZHUxHC','debug','INFO','logDir','getLogPath','end'];a89_0x42d0=function(){return _0x1565c6;};return a89_0x42d0();}function a89_0x3e19(_0x92738,_0x45235d){const _0x42d0d2=a89_0x42d0();return a89_0x3e19=function(_0x3e19c1,_0x3b5f8e){_0x3e19c1=_0x3e19c1-0x166;let _0x55456f=_0x42d0d2[_0x3e19c1];return _0x55456f;},a89_0x3e19(_0x92738,_0x45235d);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x4e5053 from'chalk';function safeStringify(_0xdba028){const _0x2f6629=a89_0x3e19;if(typeof _0xdba028==='string')return _0xdba028;if(_0xdba028 instanceof Error)return _0xdba028[_0x2f6629(0x17f)]||_0xdba028[_0x2f6629(0x188)]+':\x20'+_0xdba028[_0x2f6629(0x18f)];try{return JSON['stringify'](_0xdba028,(_0x5429a2,_0x3f12ef)=>{const _0x2d8526=_0x2f6629;if(_0x3f12ef instanceof Error)return{'name':_0x3f12ef[_0x2d8526(0x188)],'message':_0x3f12ef['message'],'stack':_0x3f12ef[_0x2d8526(0x17f)],'cause':_0x3f12ef[_0x2d8526(0x195)]};return _0x3f12ef;});}catch{return String(_0xdba028);}}function getTimezoneOffset(){const _0x1f7238=a89_0x3e19,_0x412321=-new Date()[_0x1f7238(0x186)](),_0x4df58d=Math[_0x1f7238(0x184)](Math['abs'](_0x412321)/0x3c),_0x2867ed=Math[_0x1f7238(0x183)](_0x412321)%0x3c,_0x2efacf=_0x412321>=0x0?'+':'-';return''+_0x2efacf+_0x4df58d[_0x1f7238(0x17e)]()['padStart'](0x2,'0')+_0x2867ed[_0x1f7238(0x17e)]()[_0x1f7238(0x1a0)](0x2,'0');}function formatTimestamp(){const _0x3bee6f=a89_0x3e19,_0x5b7b15=new Date(),_0x1bdca7=_0x5b7b15['getFullYear'](),_0x3afd9f=(_0x5b7b15[_0x3bee6f(0x16b)]()+0x1)['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0x226c61=_0x5b7b15[_0x3bee6f(0x177)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x243b73=_0x5b7b15[_0x3bee6f(0x1a2)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xaf31bc=_0x5b7b15[_0x3bee6f(0x19b)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x308c1c=_0x5b7b15[_0x3bee6f(0x16d)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xce8571=_0x5b7b15[_0x3bee6f(0x187)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x3,'0'),_0x450f1b=getTimezoneOffset();return _0x1bdca7+'-'+_0x3afd9f+'-'+_0x226c61+'\x20'+_0x243b73+':'+_0xaf31bc+':'+_0x308c1c+'.'+_0xce8571+_0x450f1b;}function formatColoredLogEntry(_0x5157db,_0xf9cb5b){const _0x51c0f2=a89_0x3e19,_0x2e9d7a=formatTimestamp(),_0x153409=_0xf9cb5b[_0x51c0f2(0x16a)](safeStringify)['join']('\x20'),_0x571e41=a89_0x4e5053[_0x51c0f2(0x1a5)](_0x2e9d7a);let _0x403088;switch(_0x5157db){case _0x51c0f2(0x198):_0x403088=a89_0x4e5053['cyan']('['+_0x5157db+']\x20');break;case _0x51c0f2(0x17c):_0x403088=a89_0x4e5053['yellow']('['+_0x5157db+']\x20');break;case'error':_0x403088=a89_0x4e5053[_0x51c0f2(0x19d)]('['+_0x5157db+']');break;case _0x51c0f2(0x18a):_0x403088=a89_0x4e5053[_0x51c0f2(0x1a5)]('['+_0x5157db+']');break;default:_0x403088='['+_0x5157db+']';}return _0x571e41+'\x20'+_0x403088+'\x20'+_0x153409;}export var LogLevel;(function(_0x206fa3){const _0xd293b1=a89_0x3e19;_0x206fa3[_0x206fa3[_0xd293b1(0x168)]=-0x2]='TRACE',_0x206fa3[_0x206fa3[_0xd293b1(0x180)]=-0x1]=_0xd293b1(0x180),_0x206fa3[_0x206fa3[_0xd293b1(0x18b)]=0x0]=_0xd293b1(0x18b),_0x206fa3[_0x206fa3[_0xd293b1(0x171)]=0x1]=_0xd293b1(0x171),_0x206fa3[_0x206fa3['ERROR']=0x2]=_0xd293b1(0x193);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x4a091d(0x197)];[a89_0x4a091d(0x18c)];[a89_0x4a091d(0x16e)];['fileOnly'];constructor(_0x421508=LogLevel[a89_0x4a091d(0x18b)],_0x3d28e3=![]){const _0x3eae98=a89_0x4a091d;this[_0x3eae98(0x18c)]=join(homedir(),_0x3eae98(0x174),_0x3eae98(0x181),_0x3eae98(0x176)),this['logLevel']=_0x421508,this['fileOnly']=_0x3d28e3;}async['init'](){const _0x416534=a89_0x4a091d;try{await mkdir(this[_0x416534(0x18c)],{'recursive':!![]}),await this[_0x416534(0x170)]();const _0x2621e1=join(this[_0x416534(0x18c)],_0x416534(0x167));this[_0x416534(0x197)]=createWriteStream(_0x2621e1,{'flags':'a'}),this[_0x416534(0x197)]['on'](_0x416534(0x1a3),_0xe593a3=>{const _0x381c85=_0x416534;console[_0x381c85(0x1a3)](_0x381c85(0x19e),_0xe593a3[_0x381c85(0x18f)]);});}catch(_0x4eb46c){console[_0x416534(0x1a3)](_0x416534(0x17b),_0x4eb46c);}}async[a89_0x4a091d(0x170)](){const _0x22671c=a89_0x4a091d;try{const _0x1d75d4=await readdir(this['logDir']),_0x4b58f=new Date()[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x1d75d4[_0x22671c(0x16f)](_0x22671c(0x167))){const _0x18eb8f=join(this['logDir'],_0x22671c(0x167)),_0x2f7235=await stat(_0x18eb8f),_0x354f27=new Date(_0x2f7235[_0x22671c(0x191)])[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x354f27<_0x4b58f){const _0x3d14f4=join(this['logDir'],_0x22671c(0x190)+_0x354f27+_0x22671c(0x19f));await rename(_0x18eb8f,_0x3d14f4);}}const _0x3ccf2f=await readdir(this[_0x22671c(0x18c)]),_0x1d3954=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x9c5ec=_0x3ccf2f['filter'](_0x36f54e=>_0x1d3954[_0x22671c(0x172)](_0x36f54e));for(const _0x34ea0d of _0x9c5ec){const _0xf4abfd=join(this[_0x22671c(0x18c)],_0x34ea0d),_0x48592c=join(this['logDir'],_0x34ea0d+_0x22671c(0x199));try{await pipeline(createReadStream(_0xf4abfd),createGzip(),createWriteStream(_0x48592c)),await unlink(_0xf4abfd);}catch(_0x49dd7e){console[_0x22671c(0x1a3)](_0x22671c(0x179)+_0x34ea0d+':',_0x49dd7e);}}}catch{}}[a89_0x4a091d(0x18a)](..._0x2bf9df){const _0x1a16e2=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x1a16e2(0x180)])return;const _0x1202ba=formatColoredLogEntry(_0x1a16e2(0x18a),_0x2bf9df);this[_0x1a16e2(0x197)]?.[_0x1a16e2(0x194)](_0x1202ba+'\x0a');}[a89_0x4a091d(0x17a)](..._0x1e2a31){const _0x41f5c9=a89_0x4a091d;if(this[_0x41f5c9(0x16e)]>LogLevel['TRACE'])return;const _0x578e1f=formatColoredLogEntry(_0x41f5c9(0x17a),_0x1e2a31);this['logStream']?.['write'](_0x578e1f+'\x0a');}[a89_0x4a091d(0x198)](..._0x5a2d64){const _0x13fa88=a89_0x4a091d;if(this[_0x13fa88(0x16e)]>LogLevel[_0x13fa88(0x18b)])return;const _0x155f3e=formatColoredLogEntry(_0x13fa88(0x198),_0x5a2d64);!this['fileOnly']&&console[_0x13fa88(0x182)](_0x155f3e),this[_0x13fa88(0x197)]?.[_0x13fa88(0x194)](_0x155f3e+'\x0a');}['warn'](..._0x21e628){const _0x497a7e=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x497a7e(0x171)])return;const _0x50407d=formatColoredLogEntry(_0x497a7e(0x17c),_0x21e628);!this[_0x497a7e(0x19a)]&&console[_0x497a7e(0x1a3)](_0x50407d),this[_0x497a7e(0x197)]?.[_0x497a7e(0x194)](_0x50407d+'\x0a');}['error'](..._0x302cc7){const _0xacee0d=a89_0x4a091d,_0x27a58e=formatColoredLogEntry(_0xacee0d(0x1a3),_0x302cc7);!this[_0xacee0d(0x19a)]&&console[_0xacee0d(0x1a3)](_0x27a58e),this['logStream']?.[_0xacee0d(0x194)](_0x27a58e+'\x0a');}async[a89_0x4a091d(0x1a6)](){const _0x447c5b=a89_0x4a091d;return this[_0x447c5b(0x198)](_0x447c5b(0x17d)),new Promise(_0x224b84=>{const _0x1a7dce=_0x447c5b;this['logStream']?this[_0x1a7dce(0x197)][_0x1a7dce(0x18e)](()=>{_0x224b84();}):_0x224b84();});}[a89_0x4a091d(0x18d)](){const _0x2db494=a89_0x4a091d;return join(this['logDir'],_0x2db494(0x167));}}
1
+ function a93_0x14ef(){const _0x523554=['196155dALHYY','abs','92260qMcdxM','tdx.log','name','getSeconds','toString','Warning:\x20Error\x20writing\x20to\x20tdx.log:','2rkPKBw','118434zlYbmx','getMinutes','7wFwpzz','543291kKJdvl','9385222ieyUvN','tdx-','message','includes','70YycgVy','stringify','logStream','trace','12xKJPOe','padStart','debug','logDir','test','logLevel','.cache','rotateOldLogs','TRACE','cause','16lWgRVX','.gz','write','ERROR','getMilliseconds','getDate','toISOString','log','.log','mtime','1877968NhyJfj','Proxy\x20session\x20ended','warn','split','WARN','end','getMonth','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','error','DEBUG','gray','info','getFullYear','INFO','init','Warning:\x20Failed\x20to\x20compress\x20','getHours','close','stack','filter','fileOnly','140772LjudVW'];a93_0x14ef=function(){return _0x523554;};return a93_0x14ef();}const a93_0x61ac29=a93_0x390b;(function(_0x48205c,_0x5cab8a){const _0x23a62d=a93_0x390b,_0x1c0b17=_0x48205c();while(!![]){try{const _0x72c3ee=-parseInt(_0x23a62d(0xad))/0x1*(parseInt(_0x23a62d(0xae))/0x2)+-parseInt(_0x23a62d(0xb1))/0x3+parseInt(_0x23a62d(0x85))/0x4*(parseInt(_0x23a62d(0xa7))/0x5)+-parseInt(_0x23a62d(0xa4))/0x6*(-parseInt(_0x23a62d(0xb0))/0x7)+-parseInt(_0x23a62d(0x8f))/0x8+-parseInt(_0x23a62d(0xa5))/0x9*(parseInt(_0x23a62d(0x77))/0xa)+-parseInt(_0x23a62d(0xb2))/0xb*(-parseInt(_0x23a62d(0x7b))/0xc);if(_0x72c3ee===_0x5cab8a)break;else _0x1c0b17['push'](_0x1c0b17['shift']());}catch(_0x16345b){_0x1c0b17['push'](_0x1c0b17['shift']());}}}(a93_0x14ef,0x405ce));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';function a93_0x390b(_0x5b7caa,_0xda5acf){const _0x14efa0=a93_0x14ef();return a93_0x390b=function(_0x390b07,_0x379caa){_0x390b07=_0x390b07-0x77;let _0x41e224=_0x14efa0[_0x390b07];return _0x41e224;},a93_0x390b(_0x5b7caa,_0xda5acf);}import a93_0x10c693 from'chalk';function safeStringify(_0x4ca7a3){const _0x588df3=a93_0x390b;if(typeof _0x4ca7a3==='string')return _0x4ca7a3;if(_0x4ca7a3 instanceof Error)return _0x4ca7a3['stack']||_0x4ca7a3[_0x588df3(0xa9)]+':\x20'+_0x4ca7a3[_0x588df3(0xb4)];try{return JSON[_0x588df3(0x78)](_0x4ca7a3,(_0x2d0343,_0x3c63d3)=>{const _0x13d881=_0x588df3;if(_0x3c63d3 instanceof Error)return{'name':_0x3c63d3['name'],'message':_0x3c63d3[_0x13d881(0xb4)],'stack':_0x3c63d3[_0x13d881(0xa1)],'cause':_0x3c63d3[_0x13d881(0x84)]};return _0x3c63d3;});}catch{return String(_0x4ca7a3);}}function getTimezoneOffset(){const _0x435afb=a93_0x390b,_0x1d089a=-new Date()['getTimezoneOffset'](),_0x367f8a=Math['floor'](Math['abs'](_0x1d089a)/0x3c),_0x5949c=Math[_0x435afb(0xa6)](_0x1d089a)%0x3c,_0x2783cf=_0x1d089a>=0x0?'+':'-';return''+_0x2783cf+_0x367f8a[_0x435afb(0xab)]()[_0x435afb(0x7c)](0x2,'0')+_0x5949c['toString']()[_0x435afb(0x7c)](0x2,'0');}function formatTimestamp(){const _0x4ac268=a93_0x390b,_0x4967ef=new Date(),_0xcd1375=_0x4967ef[_0x4ac268(0x9b)](),_0x1d2ab3=(_0x4967ef[_0x4ac268(0x95)]()+0x1)[_0x4ac268(0xab)]()['padStart'](0x2,'0'),_0x66a871=_0x4967ef[_0x4ac268(0x8a)]()[_0x4ac268(0xab)]()['padStart'](0x2,'0'),_0x4654f2=_0x4967ef[_0x4ac268(0x9f)]()[_0x4ac268(0xab)]()['padStart'](0x2,'0'),_0x2814e4=_0x4967ef[_0x4ac268(0xaf)]()[_0x4ac268(0xab)]()[_0x4ac268(0x7c)](0x2,'0'),_0x3261e0=_0x4967ef[_0x4ac268(0xaa)]()[_0x4ac268(0xab)]()[_0x4ac268(0x7c)](0x2,'0'),_0x478d4a=_0x4967ef[_0x4ac268(0x89)]()[_0x4ac268(0xab)]()[_0x4ac268(0x7c)](0x3,'0'),_0x56888b=getTimezoneOffset();return _0xcd1375+'-'+_0x1d2ab3+'-'+_0x66a871+'\x20'+_0x4654f2+':'+_0x2814e4+':'+_0x3261e0+'.'+_0x478d4a+_0x56888b;}function formatColoredLogEntry(_0x2b8f5c,_0x3d35ce){const _0x272b36=a93_0x390b,_0x53cf89=formatTimestamp(),_0x2aeae8=_0x3d35ce['map'](safeStringify)['join']('\x20'),_0x14dd8d=a93_0x10c693['gray'](_0x53cf89);let _0x46a789;switch(_0x2b8f5c){case _0x272b36(0x9a):_0x46a789=a93_0x10c693['cyan']('['+_0x2b8f5c+']\x20');break;case _0x272b36(0x91):_0x46a789=a93_0x10c693['yellow']('['+_0x2b8f5c+']\x20');break;case _0x272b36(0x97):_0x46a789=a93_0x10c693['red']('['+_0x2b8f5c+']');break;case _0x272b36(0x7d):_0x46a789=a93_0x10c693[_0x272b36(0x99)]('['+_0x2b8f5c+']');break;default:_0x46a789='['+_0x2b8f5c+']';}return _0x14dd8d+'\x20'+_0x46a789+'\x20'+_0x2aeae8;}export var LogLevel;(function(_0x3e3206){const _0x247eed=a93_0x390b;_0x3e3206[_0x3e3206[_0x247eed(0x83)]=-0x2]=_0x247eed(0x83),_0x3e3206[_0x3e3206['DEBUG']=-0x1]='DEBUG',_0x3e3206[_0x3e3206[_0x247eed(0x9c)]=0x0]=_0x247eed(0x9c),_0x3e3206[_0x3e3206[_0x247eed(0x93)]=0x1]='WARN',_0x3e3206[_0x3e3206[_0x247eed(0x88)]=0x2]=_0x247eed(0x88);}(LogLevel||(LogLevel={})));export class TDXLogger{[a93_0x61ac29(0x79)];['logDir'];[a93_0x61ac29(0x80)];[a93_0x61ac29(0xa3)];constructor(_0x50ecd1=LogLevel['INFO'],_0x3491b5=![]){const _0x437d92=a93_0x61ac29;this[_0x437d92(0x7e)]=join(homedir(),_0x437d92(0x81),'tdx','logs'),this[_0x437d92(0x80)]=_0x50ecd1,this[_0x437d92(0xa3)]=_0x3491b5;}async[a93_0x61ac29(0x9d)](){const _0x188a3b=a93_0x61ac29;try{await mkdir(this[_0x188a3b(0x7e)],{'recursive':!![]}),await this[_0x188a3b(0x82)]();const _0x2474c3=join(this['logDir'],_0x188a3b(0xa8));this[_0x188a3b(0x79)]=createWriteStream(_0x2474c3,{'flags':'a'}),this['logStream']['on']('error',_0x1e2d82=>{const _0x138b79=_0x188a3b;console[_0x138b79(0x97)](_0x138b79(0xac),_0x1e2d82[_0x138b79(0xb4)]);});}catch(_0x491b78){console[_0x188a3b(0x97)](_0x188a3b(0x96),_0x491b78);}}async[a93_0x61ac29(0x82)](){const _0x5f9537=a93_0x61ac29;try{const _0x3896fb=await readdir(this['logDir']),_0x5b28c5=new Date()[_0x5f9537(0x8b)]()['split']('T')[0x0];if(_0x3896fb[_0x5f9537(0xb5)]('tdx.log')){const _0x8b326f=join(this[_0x5f9537(0x7e)],_0x5f9537(0xa8)),_0x239100=await stat(_0x8b326f),_0x253bf4=new Date(_0x239100[_0x5f9537(0x8e)])['toISOString']()[_0x5f9537(0x92)]('T')[0x0];if(_0x253bf4<_0x5b28c5){const _0x1fcc08=join(this[_0x5f9537(0x7e)],_0x5f9537(0xb3)+_0x253bf4+_0x5f9537(0x8d));await rename(_0x8b326f,_0x1fcc08);}}const _0x1eac1c=await readdir(this[_0x5f9537(0x7e)]),_0x4305b3=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0xf13edb=_0x1eac1c[_0x5f9537(0xa2)](_0x29b039=>_0x4305b3[_0x5f9537(0x7f)](_0x29b039));for(const _0x2daebb of _0xf13edb){const _0x344950=join(this[_0x5f9537(0x7e)],_0x2daebb),_0x468f24=join(this[_0x5f9537(0x7e)],_0x2daebb+_0x5f9537(0x86));try{await pipeline(createReadStream(_0x344950),createGzip(),createWriteStream(_0x468f24)),await unlink(_0x344950);}catch(_0x31e974){console['error'](_0x5f9537(0x9e)+_0x2daebb+':',_0x31e974);}}}catch{}}[a93_0x61ac29(0x7d)](..._0x338009){const _0x3c21d3=a93_0x61ac29;if(this['logLevel']>LogLevel[_0x3c21d3(0x98)])return;const _0x1f427a=formatColoredLogEntry('debug',_0x338009);this['logStream']?.[_0x3c21d3(0x87)](_0x1f427a+'\x0a');}['trace'](..._0x4d44ee){const _0x341f43=a93_0x61ac29;if(this[_0x341f43(0x80)]>LogLevel['TRACE'])return;const _0x24ace5=formatColoredLogEntry(_0x341f43(0x7a),_0x4d44ee);this[_0x341f43(0x79)]?.['write'](_0x24ace5+'\x0a');}[a93_0x61ac29(0x9a)](..._0x30ba3e){const _0x4874ea=a93_0x61ac29;if(this[_0x4874ea(0x80)]>LogLevel[_0x4874ea(0x9c)])return;const _0x3b9b3a=formatColoredLogEntry(_0x4874ea(0x9a),_0x30ba3e);!this['fileOnly']&&console[_0x4874ea(0x8c)](_0x3b9b3a),this[_0x4874ea(0x79)]?.[_0x4874ea(0x87)](_0x3b9b3a+'\x0a');}[a93_0x61ac29(0x91)](..._0x24faae){const _0x3d634d=a93_0x61ac29;if(this[_0x3d634d(0x80)]>LogLevel[_0x3d634d(0x93)])return;const _0x5b94b9=formatColoredLogEntry('warn',_0x24faae);!this[_0x3d634d(0xa3)]&&console['error'](_0x5b94b9),this['logStream']?.[_0x3d634d(0x87)](_0x5b94b9+'\x0a');}[a93_0x61ac29(0x97)](..._0x2e86e4){const _0x1e275c=a93_0x61ac29,_0x1b112e=formatColoredLogEntry('error',_0x2e86e4);!this[_0x1e275c(0xa3)]&&console[_0x1e275c(0x97)](_0x1b112e),this[_0x1e275c(0x79)]?.['write'](_0x1b112e+'\x0a');}async[a93_0x61ac29(0xa0)](){const _0x5b896b=a93_0x61ac29;return this[_0x5b896b(0x9a)](_0x5b896b(0x90)),new Promise(_0x3d7329=>{const _0x17e35e=_0x5b896b;this[_0x17e35e(0x79)]?this['logStream'][_0x17e35e(0x94)](()=>{_0x3d7329();}):_0x3d7329();});}['getLogPath'](){const _0x1874fc=a93_0x61ac29;return join(this['logDir'],_0x1874fc(0xa8));}}
@@ -1 +1 @@
1
- (function(_0x51e1a0,_0x364e8d){const _0x4ed0e0=a90_0x4a41,_0x2bc3f2=_0x51e1a0();while(!![]){try{const _0x7f6d93=parseInt(_0x4ed0e0(0x1bf))/0x1+-parseInt(_0x4ed0e0(0x1be))/0x2+parseInt(_0x4ed0e0(0x1b4))/0x3+-parseInt(_0x4ed0e0(0x1b7))/0x4*(parseInt(_0x4ed0e0(0x1cc))/0x5)+parseInt(_0x4ed0e0(0x1d0))/0x6*(parseInt(_0x4ed0e0(0x1b0))/0x7)+parseInt(_0x4ed0e0(0x1ae))/0x8*(parseInt(_0x4ed0e0(0x1bd))/0x9)+-parseInt(_0x4ed0e0(0x1ce))/0xa*(parseInt(_0x4ed0e0(0x1c9))/0xb);if(_0x7f6d93===_0x364e8d)break;else _0x2bc3f2['push'](_0x2bc3f2['shift']());}catch(_0x4dec9c){_0x2bc3f2['push'](_0x2bc3f2['shift']());}}}(a90_0x2a54,0xb19c0));function a90_0x2a54(){const _0x5b2981=['population','map','210195nyAxdo','1970556ESctFn','211027KtVDNV','join','name','showTreeLines','icon','segmentCount','segment','\x20\x20\x20','folderCount','\x20\x20\x20\x20','15466935djldjt','localeCompare','length','186715rYlWVT','🎯\x20','10tRFwct','(empty)','96xOGePM','type','392OBVxvz','metadata','626787WhMLtO','children','folder','├──\x20','2672754zmMEpH','push','\x20folder','60ZzxqME','showIcons','dim','sort'];a90_0x2a54=function(){return _0x5b2981;};return a90_0x2a54();}import{formatRows}from'./formatters.js';function a90_0x4a41(_0x264912,_0x55b528){const _0x2a54af=a90_0x2a54();return a90_0x4a41=function(_0x4a4128,_0x5e5de6){_0x4a4128=_0x4a4128-0x1ae;let _0x7041db=_0x2a54af[_0x4a4128];return _0x7041db;},a90_0x4a41(_0x264912,_0x55b528);}import a90_0x578692 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x5582cb,_0x391835={},_0x1402b5=0x0,_0x224caf=''){const _0x5e1fa5=a90_0x4a41,_0x3990dd={...DEFAULT_OPTIONS,..._0x391835},_0x1ec065=[],_0x5f4b46=[..._0x5582cb][_0x5e1fa5(0x1ba)]((_0x5326fd,_0x221fc8)=>_0x5326fd[_0x5e1fa5(0x1c1)][_0x5e1fa5(0x1ca)](_0x221fc8[_0x5e1fa5(0x1c1)]));for(let _0xf3f7eb=0x0;_0xf3f7eb<_0x5f4b46[_0x5e1fa5(0x1cb)];_0xf3f7eb++){const _0x472f3b=_0x5f4b46[_0xf3f7eb],_0x4070fa=_0xf3f7eb===_0x5f4b46['length']-0x1;let _0x404f16='';_0x1402b5>0x0&&(_0x404f16+=_0x224caf);_0x3990dd[_0x5e1fa5(0x1c2)]&&_0x1402b5>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)](_0x4070fa?'└──\x20':_0x5e1fa5(0x1b3)));_0x3990dd['showIcons']&&(_0x404f16+=_0x472f3b['type']===_0x5e1fa5(0x1b2)?'📁\x20':_0x5e1fa5(0x1cd));_0x404f16+=_0x472f3b[_0x5e1fa5(0x1c1)];if(_0x3990dd['showMetadata']){if(_0x472f3b[_0x5e1fa5(0x1d1)]===_0x5e1fa5(0x1b2)){const _0x3286db=[];_0x472f3b['metadata'][_0x5e1fa5(0x1c4)]&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]+'\x20segment'+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]!==0x1?'s':'')),_0x472f3b['metadata']['folderCount']&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]+_0x5e1fa5(0x1b6)+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]!==0x1?'s':'')),_0x3286db[_0x5e1fa5(0x1cb)]>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+_0x3286db[_0x5e1fa5(0x1c0)](',\x20')+')'));}else _0x472f3b['type']===_0x5e1fa5(0x1c5)&&_0x472f3b['population']!==undefined&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+formatRows(_0x472f3b[_0x5e1fa5(0x1bb)])+')'));}_0x1ec065[_0x5e1fa5(0x1b5)](_0x404f16);if(_0x472f3b[_0x5e1fa5(0x1b1)]&&_0x472f3b[_0x5e1fa5(0x1b1)]['length']>0x0){let _0x1349a9;if(_0x1402b5===0x0)_0x1349a9='';else _0x3990dd[_0x5e1fa5(0x1c2)]?_0x1349a9=_0x224caf+(_0x4070fa?_0x5e1fa5(0x1c8):a90_0x578692[_0x5e1fa5(0x1b9)]('│')+_0x5e1fa5(0x1c6)):_0x1349a9=_0x224caf+_0x3990dd['indent'];const _0x3f2537=formatTree(_0x472f3b[_0x5e1fa5(0x1b1)],_0x3990dd,_0x1402b5+0x1,_0x1349a9);_0x1ec065['push'](_0x3f2537);}}return _0x1ec065['join']('\x0a');}export function formatFlatList(_0xaa585e,_0x38a139,_0x34a4c8={}){const _0x59929e=a90_0x4a41,_0x14a12e={...DEFAULT_OPTIONS,..._0x34a4c8},_0x4d89db=[];for(const _0x5c2e80 of _0xaa585e){_0x4d89db[_0x59929e(0x1b5)]({'name':_0x5c2e80['name'],'icon':_0x14a12e['showIcons']?'📁':'','metadata':undefined});}for(const _0x33e24c of _0x38a139){const _0x18a4c7=_0x14a12e['showMetadata']&&_0x33e24c['population']!==undefined?a90_0x578692[_0x59929e(0x1b9)]('\x20('+formatRows(_0x33e24c[_0x59929e(0x1bb)])+')'):'';_0x4d89db[_0x59929e(0x1b5)]({'name':_0x33e24c[_0x59929e(0x1c1)],'icon':_0x14a12e[_0x59929e(0x1b8)]?'🎯':'','metadata':_0x18a4c7});}_0x4d89db['sort']((_0xc7eb46,_0xbe2ca6)=>_0xc7eb46[_0x59929e(0x1c1)]['localeCompare'](_0xbe2ca6[_0x59929e(0x1c1)]));if(_0x4d89db[_0x59929e(0x1cb)]===0x0)return _0x59929e(0x1cf);const _0x26093b=_0x4d89db[_0x59929e(0x1bc)](_0x5a9fef=>{const _0x317dd9=_0x59929e,_0x10e940=_0x5a9fef[_0x317dd9(0x1c3)]?_0x5a9fef[_0x317dd9(0x1c3)]+'\x20':'',_0x45bc44=_0x5a9fef[_0x317dd9(0x1af)]||'';return''+_0x10e940+_0x5a9fef['name']+_0x45bc44;});return _0x26093b[_0x59929e(0x1c0)]('\x0a');}
1
+ (function(_0xd139b0,_0x5d1856){const _0xbf0518=a94_0x433c,_0x1dfc95=_0xd139b0();while(!![]){try{const _0xed01db=parseInt(_0xbf0518(0x10c))/0x1*(-parseInt(_0xbf0518(0x127))/0x2)+-parseInt(_0xbf0518(0x10b))/0x3+-parseInt(_0xbf0518(0x117))/0x4*(-parseInt(_0xbf0518(0x105))/0x5)+-parseInt(_0xbf0518(0x124))/0x6+-parseInt(_0xbf0518(0x10d))/0x7+parseInt(_0xbf0518(0x10a))/0x8*(parseInt(_0xbf0518(0x107))/0x9)+parseInt(_0xbf0518(0x116))/0xa;if(_0xed01db===_0x5d1856)break;else _0x1dfc95['push'](_0x1dfc95['shift']());}catch(_0x558c7f){_0x1dfc95['push'](_0x1dfc95['shift']());}}}(a94_0x3609,0xd4e55));import{formatRows}from'./formatters.js';import a94_0x47a098 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x4d62b2,_0xcb8a08={},_0x42679e=0x0,_0x60f273=''){const _0xc73c96=a94_0x433c,_0x3e0f6c={...DEFAULT_OPTIONS,..._0xcb8a08},_0x1b4a02=[],_0x374a82=[..._0x4d62b2][_0xc73c96(0x115)]((_0xd71ca0,_0x3bcfc1)=>_0xd71ca0[_0xc73c96(0x106)][_0xc73c96(0x110)](_0x3bcfc1[_0xc73c96(0x106)]));for(let _0x3c1dfd=0x0;_0x3c1dfd<_0x374a82['length'];_0x3c1dfd++){const _0x502a77=_0x374a82[_0x3c1dfd],_0x5c7260=_0x3c1dfd===_0x374a82['length']-0x1;let _0x5eb3b8='';_0x42679e>0x0&&(_0x5eb3b8+=_0x60f273);_0x3e0f6c['showTreeLines']&&_0x42679e>0x0&&(_0x5eb3b8+=a94_0x47a098[_0xc73c96(0x109)](_0x5c7260?'└──\x20':_0xc73c96(0x108)));_0x3e0f6c[_0xc73c96(0x120)]&&(_0x5eb3b8+=_0x502a77[_0xc73c96(0x118)]===_0xc73c96(0x10f)?_0xc73c96(0x11f):_0xc73c96(0x11e));_0x5eb3b8+=_0x502a77[_0xc73c96(0x106)];if(_0x3e0f6c['showMetadata']){if(_0x502a77['type']===_0xc73c96(0x10f)){const _0x474567=[];_0x502a77[_0xc73c96(0x122)][_0xc73c96(0x11a)]&&_0x474567['push'](_0x502a77['metadata'][_0xc73c96(0x11a)]+_0xc73c96(0x123)+(_0x502a77[_0xc73c96(0x122)]['segmentCount']!==0x1?'s':'')),_0x502a77['metadata']['folderCount']&&_0x474567[_0xc73c96(0x119)](_0x502a77[_0xc73c96(0x122)][_0xc73c96(0x126)]+_0xc73c96(0x125)+(_0x502a77[_0xc73c96(0x122)][_0xc73c96(0x126)]!==0x1?'s':'')),_0x474567[_0xc73c96(0x128)]>0x0&&(_0x5eb3b8+=a94_0x47a098['dim']('\x20('+_0x474567['join'](',\x20')+')'));}else _0x502a77[_0xc73c96(0x118)]===_0xc73c96(0x114)&&_0x502a77[_0xc73c96(0x10e)]!==undefined&&(_0x5eb3b8+=a94_0x47a098[_0xc73c96(0x109)]('\x20('+formatRows(_0x502a77[_0xc73c96(0x10e)])+')'));}_0x1b4a02[_0xc73c96(0x119)](_0x5eb3b8);if(_0x502a77[_0xc73c96(0x111)]&&_0x502a77[_0xc73c96(0x111)][_0xc73c96(0x128)]>0x0){let _0x55e230;if(_0x42679e===0x0)_0x55e230='';else _0x3e0f6c['showTreeLines']?_0x55e230=_0x60f273+(_0x5c7260?_0xc73c96(0x113):a94_0x47a098['dim']('│')+_0xc73c96(0x11b)):_0x55e230=_0x60f273+_0x3e0f6c[_0xc73c96(0x112)];const _0x3212db=formatTree(_0x502a77[_0xc73c96(0x111)],_0x3e0f6c,_0x42679e+0x1,_0x55e230);_0x1b4a02[_0xc73c96(0x119)](_0x3212db);}}return _0x1b4a02['join']('\x0a');}function a94_0x433c(_0x542970,_0x1b49ac){const _0x360959=a94_0x3609();return a94_0x433c=function(_0x433cd9,_0x316f61){_0x433cd9=_0x433cd9-0x105;let _0x3ad1f3=_0x360959[_0x433cd9];return _0x3ad1f3;},a94_0x433c(_0x542970,_0x1b49ac);}function a94_0x3609(){const _0x5e32f2=['\x20segment','2727570TXOWux','\x20folder','folderCount','578nYToNW','length','1219485EqMvPI','name','188532QerQbv','├──\x20','dim','456XYgIWT','5195754Mrcuoz','1349mjonzf','8198008paocAy','population','folder','localeCompare','children','indent','\x20\x20\x20\x20','segment','sort','29377090GrTZKj','8rGrlUz','type','push','segmentCount','\x20\x20\x20','icon','map','🎯\x20','📁\x20','showIcons','join','metadata'];a94_0x3609=function(){return _0x5e32f2;};return a94_0x3609();}export function formatFlatList(_0x1d3f8e,_0x52110d,_0xd1c5e7={}){const _0x10bbf5=a94_0x433c,_0x1b3e17={...DEFAULT_OPTIONS,..._0xd1c5e7},_0x5764aa=[];for(const _0x567138 of _0x1d3f8e){_0x5764aa[_0x10bbf5(0x119)]({'name':_0x567138[_0x10bbf5(0x106)],'icon':_0x1b3e17[_0x10bbf5(0x120)]?'📁':'','metadata':undefined});}for(const _0x5310f4 of _0x52110d){const _0x45910=_0x1b3e17['showMetadata']&&_0x5310f4[_0x10bbf5(0x10e)]!==undefined?a94_0x47a098[_0x10bbf5(0x109)]('\x20('+formatRows(_0x5310f4[_0x10bbf5(0x10e)])+')'):'';_0x5764aa['push']({'name':_0x5310f4['name'],'icon':_0x1b3e17[_0x10bbf5(0x120)]?'🎯':'','metadata':_0x45910});}_0x5764aa['sort']((_0x5a730f,_0x559729)=>_0x5a730f[_0x10bbf5(0x106)][_0x10bbf5(0x110)](_0x559729[_0x10bbf5(0x106)]));if(_0x5764aa['length']===0x0)return'(empty)';const _0x403e7b=_0x5764aa[_0x10bbf5(0x11d)](_0x5fa675=>{const _0x4f6375=_0x10bbf5,_0x127bd2=_0x5fa675[_0x4f6375(0x11c)]?_0x5fa675[_0x4f6375(0x11c)]+'\x20':'',_0x4f825c=_0x5fa675[_0x4f6375(0x122)]||'';return''+_0x127bd2+_0x5fa675[_0x4f6375(0x106)]+_0x4f825c;});return _0x403e7b[_0x10bbf5(0x121)]('\x0a');}
@@ -1 +1 @@
1
- const a91_0x6afa3b=a91_0x2197;function a91_0x4aa6(){const _0x19cbb4=['8749806yZZSHN','now','5aXpYbZ','getTime','statusCode','6pwMzjL','gray','1080557bGnRsO','\x0aUpdate\x20available:\x20','67330IvCQTm','toISOString','2077446YsGgIp','env','12119346XKSXeo','data','latestVersion','utf-8','3566584AFCEIY','Update\x20available:','currentVersion','66EFlEWs','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','isTTY','end','https://registry.npmjs.org/@treasuredata/tdx/latest','stderr','yellow','lastCheck','2vdAEHo','green','93364yixRMy','last_version_check','Run:','version','error','stringify','dim','updateAvailable','\x0aRun:\x20','NO_COLOR','parse'];a91_0x4aa6=function(){return _0x19cbb4;};return a91_0x4aa6();}(function(_0x2423ab,_0x450588){const _0x2f2197=a91_0x2197,_0x3bf1fa=_0x2423ab();while(!![]){try{const _0x39484a=-parseInt(_0x2f2197(0x193))/0x1*(-parseInt(_0x2f2197(0x17f))/0x2)+-parseInt(_0x2f2197(0x191))/0x3*(parseInt(_0x2f2197(0x181))/0x4)+-parseInt(_0x2f2197(0x18e))/0x5*(parseInt(_0x2f2197(0x18c))/0x6)+parseInt(_0x2f2197(0x197))/0x7+-parseInt(_0x2f2197(0x173))/0x8+parseInt(_0x2f2197(0x199))/0x9+parseInt(_0x2f2197(0x195))/0xa*(-parseInt(_0x2f2197(0x176))/0xb);if(_0x39484a===_0x450588)break;else _0x3bf1fa['push'](_0x3bf1fa['shift']());}catch(_0x55d4ea){_0x3bf1fa['push'](_0x3bf1fa['shift']());}}}(a91_0x4aa6,0xb2e35));function a91_0x2197(_0x40dfa7,_0x12fc36){const _0x4aa6de=a91_0x4aa6();return a91_0x2197=function(_0x2197ed,_0x18c6e0){_0x2197ed=_0x2197ed-0x171;let _0x2f9cec=_0x4aa6de[_0x2197ed];return _0x2f9cec;},a91_0x2197(_0x40dfa7,_0x12fc36);}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a91_0x4ce1fe from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x6afa3b(0x17b),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x43df61=a91_0x6afa3b,_0x2d58f5=getCacheDir();return join(_0x2d58f5,_0x43df61(0x182));}function readCache(){const _0x4e0084=a91_0x6afa3b;try{const _0xff3a56=getCacheFilePath(),_0x4684fd=readFileSync(_0xff3a56,_0x4e0084(0x172));return JSON[_0x4e0084(0x18b)](_0x4684fd);}catch{return null;}}function writeCache(_0x30b4e8){const _0x3adbf2=a91_0x6afa3b;try{const _0x3c5306=getCacheDir();mkdirSync(_0x3c5306,{'recursive':!![]});const _0x2e42f6={'lastCheck':new Date()[_0x3adbf2(0x196)](),'latestVersion':_0x30b4e8},_0x2266d1=getCacheFilePath();writeFileSync(_0x2266d1,JSON[_0x3adbf2(0x186)](_0x2e42f6,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x2d5b88){const _0x1411cc=a91_0x6afa3b;if(!_0x2d5b88)return![];const _0x11935a=new Date(_0x2d5b88[_0x1411cc(0x17e)])[_0x1411cc(0x18f)](),_0x4a9d2d=Date[_0x1411cc(0x18d)]();return _0x4a9d2d-_0x11935a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1a7540,_0x4c6fe3)=>{const _0xb6292e=a91_0x2197,_0x52db33=get(NPM_REGISTRY_URL,_0x43dd89=>{const _0x3eb8ff=a91_0x2197;if(_0x43dd89[_0x3eb8ff(0x190)]!==0xc8){clearTimeout(_0x5b73bb),_0x4c6fe3(new Error('HTTP\x20'+_0x43dd89[_0x3eb8ff(0x190)]));return;}let _0x508238='';_0x43dd89['on'](_0x3eb8ff(0x19a),_0x3a6264=>{_0x508238+=_0x3a6264;}),_0x43dd89['on'](_0x3eb8ff(0x17a),()=>{const _0x2638bf=_0x3eb8ff;clearTimeout(_0x5b73bb);try{const _0x5f1d52=JSON[_0x2638bf(0x18b)](_0x508238);if(!valid(_0x5f1d52['version'])){_0x4c6fe3(new Error('Invalid\x20version\x20format'));return;}_0x1a7540(_0x5f1d52[_0x2638bf(0x184)]);}catch(_0x42451b){_0x4c6fe3(_0x42451b);}});})['on'](_0xb6292e(0x185),_0x241106=>{clearTimeout(_0x5b73bb),_0x4c6fe3(_0x241106);}),_0x5b73bb=setTimeout(()=>{_0x52db33['destroy'](),_0x4c6fe3(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4d4e36){const _0x4518f3=a91_0x6afa3b;try{const _0x21d9a2=readCache();if(isCacheValid(_0x21d9a2)){const _0xab8756=gt(_0x21d9a2[_0x4518f3(0x171)],_0x4d4e36);return{'updateAvailable':_0xab8756,'currentVersion':_0x4d4e36,'latestVersion':_0x21d9a2['latestVersion']};}const _0x4c8d93=await fetchLatestVersion();writeCache(_0x4c8d93);const _0x5e2619=gt(_0x4c8d93,_0x4d4e36);return{'updateAvailable':_0x5e2619,'currentVersion':_0x4d4e36,'latestVersion':_0x4c8d93};}catch{return null;}}export function displayUpdateNotification(_0x19dfdf){const _0x55e1e5=a91_0x6afa3b;if(!_0x19dfdf[_0x55e1e5(0x188)])return;const _0x2c2d55=process[_0x55e1e5(0x17c)][_0x55e1e5(0x179)]&&!process[_0x55e1e5(0x198)][_0x55e1e5(0x18a)],_0x367e50=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x192)]('→'):'→',_0x32cdf2=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x187)](_0x19dfdf[_0x55e1e5(0x175)]):_0x19dfdf[_0x55e1e5(0x175)],_0x216620=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x180)](_0x19dfdf[_0x55e1e5(0x171)]):_0x19dfdf[_0x55e1e5(0x171)],_0x5dc3c6=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x177)](_0x55e1e5(0x178)):_0x55e1e5(0x178),_0x44060e=_0x2c2d55?'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x17d)](_0x55e1e5(0x174))+'\x20'+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x187)](_0x55e1e5(0x183))+'\x20'+_0x5dc3c6+'\x0a':_0x55e1e5(0x194)+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+_0x55e1e5(0x189)+_0x5dc3c6+'\x0a';process['stderr']['write'](_0x44060e);}
1
+ const a95_0xd92826=a95_0x5527;(function(_0x2c767b,_0x590783){const _0x139c73=a95_0x5527,_0x5a2425=_0x2c767b();while(!![]){try{const _0x5afcea=parseInt(_0x139c73(0x1f6))/0x1+-parseInt(_0x139c73(0x203))/0x2*(parseInt(_0x139c73(0x1f1))/0x3)+parseInt(_0x139c73(0x1ff))/0x4+parseInt(_0x139c73(0x1f8))/0x5*(-parseInt(_0x139c73(0x1fe))/0x6)+parseInt(_0x139c73(0x1e8))/0x7*(parseInt(_0x139c73(0x1f5))/0x8)+parseInt(_0x139c73(0x1ea))/0x9*(parseInt(_0x139c73(0x1f0))/0xa)+-parseInt(_0x139c73(0x209))/0xb*(parseInt(_0x139c73(0x1f4))/0xc);if(_0x5afcea===_0x590783)break;else _0x5a2425['push'](_0x5a2425['shift']());}catch(_0x468efc){_0x5a2425['push'](_0x5a2425['shift']());}}}(a95_0xcbe1,0xb14f9));import{get}from'https';function a95_0xcbe1(){const _0x20f091=['36FDQreY','\x0aRun:\x20','lastCheck','cyan','green','npm\x20install\x20-g\x20@treasuredata/tdx@latest','1963810xxoMgx','164652FFNLWx','write','last_version_check','120GAEzCZ','216hrQgtu','1248684sThMKw','env','10UnEVrA','now','toISOString','getTime','statusCode','utf-8','1302738hQyJAH','5507152SQMDnu','data','HTTP\x20','\x0aUpdate\x20available:\x20','34NpqHBN','Request\x20timeout','parse','gray','destroy','version','2037827PFmZKQ','NO_COLOR','end','https://registry.npmjs.org/@treasuredata/tdx/latest','currentVersion','stringify','latestVersion','error','138733UfcNuL','stderr'];a95_0xcbe1=function(){return _0x20f091;};return a95_0xcbe1();}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a95_0x35d535 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a95_0xd92826(0x20c),TIMEOUT_MS=0x7d0;function a95_0x5527(_0x46ce0a,_0x4abdad){const _0xcbe1a1=a95_0xcbe1();return a95_0x5527=function(_0x552754,_0x19ea65){_0x552754=_0x552754-0x1e8;let _0x4e641c=_0xcbe1a1[_0x552754];return _0x4e641c;},a95_0x5527(_0x46ce0a,_0x4abdad);}function getCacheFilePath(){const _0x44c9ba=a95_0xd92826,_0x161649=getCacheDir();return join(_0x161649,_0x44c9ba(0x1f3));}function readCache(){const _0x14eac8=a95_0xd92826;try{const _0x5c9a6f=getCacheFilePath(),_0x17e9d6=readFileSync(_0x5c9a6f,'utf-8');return JSON[_0x14eac8(0x205)](_0x17e9d6);}catch{return null;}}function writeCache(_0x37deea){const _0x29aa94=a95_0xd92826;try{const _0x35a223=getCacheDir();mkdirSync(_0x35a223,{'recursive':!![]});const _0x504bab={'lastCheck':new Date()[_0x29aa94(0x1fa)](),'latestVersion':_0x37deea},_0xe3be34=getCacheFilePath();writeFileSync(_0xe3be34,JSON[_0x29aa94(0x20e)](_0x504bab,null,0x2),_0x29aa94(0x1fd));}catch{}}function isCacheValid(_0x48587b){const _0x66bd68=a95_0xd92826;if(!_0x48587b)return![];const _0x402cb7=new Date(_0x48587b[_0x66bd68(0x1ec)])[_0x66bd68(0x1fb)](),_0x38667c=Date[_0x66bd68(0x1f9)]();return _0x38667c-_0x402cb7<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1b8ed7,_0x167077)=>{const _0x1b2d72=a95_0x5527,_0x2fbbf2=get(NPM_REGISTRY_URL,_0x3bdc2b=>{const _0x17dd31=a95_0x5527;if(_0x3bdc2b[_0x17dd31(0x1fc)]!==0xc8){clearTimeout(_0x5645f2),_0x167077(new Error(_0x17dd31(0x201)+_0x3bdc2b[_0x17dd31(0x1fc)]));return;}let _0x22f54c='';_0x3bdc2b['on'](_0x17dd31(0x200),_0x2df034=>{_0x22f54c+=_0x2df034;}),_0x3bdc2b['on'](_0x17dd31(0x20b),()=>{const _0x24c096=_0x17dd31;clearTimeout(_0x5645f2);try{const _0x447b18=JSON[_0x24c096(0x205)](_0x22f54c);if(!valid(_0x447b18['version'])){_0x167077(new Error('Invalid\x20version\x20format'));return;}_0x1b8ed7(_0x447b18[_0x24c096(0x208)]);}catch(_0x274a7f){_0x167077(_0x274a7f);}});})['on'](_0x1b2d72(0x210),_0x1abd18=>{clearTimeout(_0x5645f2),_0x167077(_0x1abd18);}),_0x5645f2=setTimeout(()=>{const _0x4e7cd1=_0x1b2d72;_0x2fbbf2[_0x4e7cd1(0x207)](),_0x167077(new Error(_0x4e7cd1(0x204)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4908e7){const _0x3a078a=a95_0xd92826;try{const _0x374947=readCache();if(isCacheValid(_0x374947)){const _0x16fca1=gt(_0x374947[_0x3a078a(0x20f)],_0x4908e7);return{'updateAvailable':_0x16fca1,'currentVersion':_0x4908e7,'latestVersion':_0x374947[_0x3a078a(0x20f)]};}const _0x29763a=await fetchLatestVersion();writeCache(_0x29763a);const _0x26d690=gt(_0x29763a,_0x4908e7);return{'updateAvailable':_0x26d690,'currentVersion':_0x4908e7,'latestVersion':_0x29763a};}catch{return null;}}export function displayUpdateNotification(_0x3f9c56){const _0x3ae650=a95_0xd92826;if(!_0x3f9c56['updateAvailable'])return;const _0x2b523e=process[_0x3ae650(0x1e9)]['isTTY']&&!process[_0x3ae650(0x1f7)][_0x3ae650(0x20a)],_0x4f0ed5=_0x2b523e?a95_0x35d535[_0x3ae650(0x206)]('→'):'→',_0x37c993=_0x2b523e?a95_0x35d535['dim'](_0x3f9c56[_0x3ae650(0x20d)]):_0x3f9c56['currentVersion'],_0x456aa5=_0x2b523e?a95_0x35d535[_0x3ae650(0x1ee)](_0x3f9c56[_0x3ae650(0x20f)]):_0x3f9c56[_0x3ae650(0x20f)],_0x191a0e=_0x2b523e?a95_0x35d535[_0x3ae650(0x1ed)](_0x3ae650(0x1ef)):_0x3ae650(0x1ef),_0x371e19=_0x2b523e?'\x0a'+a95_0x35d535['yellow']('Update\x20available:')+'\x20'+_0x37c993+'\x20'+_0x4f0ed5+'\x20'+_0x456aa5+'\x0a'+a95_0x35d535['dim']('Run:')+'\x20'+_0x191a0e+'\x0a':_0x3ae650(0x202)+_0x37c993+'\x20'+_0x4f0ed5+'\x20'+_0x456aa5+_0x3ae650(0x1eb)+_0x191a0e+'\x0a';process[_0x3ae650(0x1e9)][_0x3ae650(0x1f2)](_0x371e19);}
@@ -1 +1 @@
1
- function a92_0x7f63(_0x19dad2,_0x3ae822){const _0x1d1956=a92_0x1d19();return a92_0x7f63=function(_0x7f6388,_0xed2c5d){_0x7f6388=_0x7f6388-0x76;let _0x74c66d=_0x1d1956[_0x7f6388];return _0x74c66d;},a92_0x7f63(_0x19dad2,_0x3ae822);}const a92_0x5e88db=a92_0x7f63;(function(_0x12a2d1,_0x1744ca){const _0x4e0a95=a92_0x7f63,_0x31e687=_0x12a2d1();while(!![]){try{const _0x4dd42d=-parseInt(_0x4e0a95(0x7e))/0x1+-parseInt(_0x4e0a95(0x83))/0x2+parseInt(_0x4e0a95(0x78))/0x3*(-parseInt(_0x4e0a95(0x80))/0x4)+-parseInt(_0x4e0a95(0x76))/0x5*(parseInt(_0x4e0a95(0x7c))/0x6)+-parseInt(_0x4e0a95(0x82))/0x7*(-parseInt(_0x4e0a95(0x77))/0x8)+parseInt(_0x4e0a95(0x79))/0x9+-parseInt(_0x4e0a95(0x81))/0xa*(-parseInt(_0x4e0a95(0x7b))/0xb);if(_0x4dd42d===_0x1744ca)break;else _0x31e687['push'](_0x31e687['shift']());}catch(_0x5e014b){_0x31e687['push'](_0x31e687['shift']());}}}(a92_0x1d19,0x972e5));export const WORKFLOW_FILE_EXTENSION=a92_0x5e88db(0x7d);export function shouldIncludeInArchive(_0x46691b){const _0x4abb57=a92_0x5e88db;if(_0x46691b===_0x4abb57(0x7a))return!![];if(_0x46691b[_0x4abb57(0x7f)]('.'))return![];return!![];}function a92_0x1d19(){const _0x213f41=['104jQGMab','15IevqEk','9350163EqmIIp','.digdag','46354TCHrBB','54JNFwxz','.dig','649090YyKSFz','startsWith','323740mfgaho','290YGWPvZ','534583HckIFa','870160RrCpvt','25460YnaWQu'];a92_0x1d19=function(){return _0x213f41;};return a92_0x1d19();}
1
+ const a96_0x39bd76=a96_0x3c70;(function(_0x350e5f,_0x81a86){const _0x5998c1=a96_0x3c70,_0x10c1ae=_0x350e5f();while(!![]){try{const _0x141389=parseInt(_0x5998c1(0x1eb))/0x1+parseInt(_0x5998c1(0x1ec))/0x2+parseInt(_0x5998c1(0x1f2))/0x3+parseInt(_0x5998c1(0x1f4))/0x4+-parseInt(_0x5998c1(0x1f3))/0x5*(parseInt(_0x5998c1(0x1f0))/0x6)+parseInt(_0x5998c1(0x1ed))/0x7+-parseInt(_0x5998c1(0x1ef))/0x8;if(_0x141389===_0x81a86)break;else _0x10c1ae['push'](_0x10c1ae['shift']());}catch(_0x4e4529){_0x10c1ae['push'](_0x10c1ae['shift']());}}}(a96_0xba01,0xc7c09));export const WORKFLOW_FILE_EXTENSION=a96_0x39bd76(0x1ee);function a96_0x3c70(_0x12d2f0,_0x5da0de){const _0xba016e=a96_0xba01();return a96_0x3c70=function(_0x3c70a6,_0x7f58ca){_0x3c70a6=_0x3c70a6-0x1eb;let _0x3e3f53=_0xba016e[_0x3c70a6];return _0x3e3f53;},a96_0x3c70(_0x12d2f0,_0x5da0de);}function a96_0xba01(){const _0x461671=['895CuMFIy','2230996siaYFk','10668nytYeS','2533332eYQBGM','10796898rvQhEr','.dig','12753152dGwlPg','53202mrcZZs','startsWith','1866075NHALIK'];a96_0xba01=function(){return _0x461671;};return a96_0xba01();}export function shouldIncludeInArchive(_0x1447c1){const _0x484e7f=a96_0x39bd76;if(_0x1447c1==='.digdag')return!![];if(_0x1447c1[_0x484e7f(0x1f1)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.4.6",
3
+ "version": "0.5.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": {
@@ -24,7 +24,7 @@
24
24
  "LICENSE"
25
25
  ],
26
26
  "engines": {
27
- "node": ">=22.0.0"
27
+ "node": ">=22.12.0"
28
28
  },
29
29
  "scripts": {
30
30
  "build:info": "bash scripts/generate-build-info.sh",
@@ -42,8 +42,9 @@
42
42
  "typecheck": "tsc --noEmit",
43
43
  "release": "scripts/prepare-release.sh",
44
44
  "typedoc": "typedoc",
45
- "docs:dev": "npm run typedoc && npm --prefix docs run docs:dev",
46
- "docs:build": "npm run typedoc && npm --prefix docs run docs:build",
45
+ "design-notes": "node scripts/generate-design-notes-sidebar.mjs",
46
+ "docs:dev": "npm run typedoc && npm run design-notes && npm --prefix docs run docs:dev",
47
+ "docs:build": "npm run typedoc && npm run design-notes && npm --prefix docs run docs:build",
47
48
  "docs:preview": "npm --prefix docs run docs:preview"
48
49
  },
49
50
  "keywords": [
@@ -56,7 +57,6 @@
56
57
  "workflow"
57
58
  ],
58
59
  "author": "Treasure Data DevAI Unit",
59
- "license": "Apache-2.0",
60
60
  "repository": {
61
61
  "type": "git",
62
62
  "url": "https://github.com/treasure-data/tdx.git"
@@ -64,7 +64,7 @@
64
64
  "bugs": {
65
65
  "url": "https://github.com/treasure-data/tdx/issues"
66
66
  },
67
- "homepage": "https://github.com/treasure-data/tdx#readme",
67
+ "homepage": "https://tdx.treasuredata.com/",
68
68
  "dependencies": {
69
69
  "@fastify/cors": "^11.1.0",
70
70
  "@types/json-bigint": "^1.0.4",