@treasuredata/tdx 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +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 -0
  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.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/context-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/describe.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segments.js +1 -1
  44. package/dist/commands/show.js +1 -1
  45. package/dist/commands/tables.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/config.js +1 -1
  51. package/dist/core/connection-cache.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/core/user-cache.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/proxy/anthropic-adapter.js +1 -1
  61. package/dist/proxy/claude-usage-tracker.js +1 -1
  62. package/dist/proxy/context-signature.js +1 -1
  63. package/dist/proxy/conversation-utils.js +1 -1
  64. package/dist/proxy/server.js +1 -1
  65. package/dist/proxy/session-cache.js +1 -1
  66. package/dist/sdk/api.js +1 -1
  67. package/dist/sdk/connection.js +1 -1
  68. package/dist/sdk/engage.js +1 -1
  69. package/dist/sdk/errors.js +1 -1
  70. package/dist/sdk/index.js +1 -1
  71. package/dist/sdk/job.js +1 -1
  72. package/dist/sdk/journey.js +1 -1
  73. package/dist/sdk/llm.js +1 -1
  74. package/dist/sdk/query.js +1 -1
  75. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  76. package/dist/sdk/segment/journey-yaml.js +1 -1
  77. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  78. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  79. package/dist/sdk/segment.js +1 -1
  80. package/dist/sdk/user.js +1 -1
  81. package/dist/sdk/workflow.js +1 -1
  82. package/dist/types/endpoints.js +1 -1
  83. package/dist/types/index.js +1 -1
  84. package/dist/utils/agent-ref-parser.js +1 -1
  85. package/dist/utils/async.js +1 -1
  86. package/dist/utils/chat-cache.js +1 -1
  87. package/dist/utils/colors.js +1 -1
  88. package/dist/utils/command-output.js +1 -1
  89. package/dist/utils/constants.js +1 -1
  90. package/dist/utils/diff.js +1 -1
  91. package/dist/utils/fields-display.js +1 -1
  92. package/dist/utils/file-permissions.js +1 -1
  93. package/dist/utils/format-detector.js +1 -1
  94. package/dist/utils/formatters.js +1 -1
  95. package/dist/utils/json-loader.js +1 -1
  96. package/dist/utils/llm-backup-utils.js +1 -1
  97. package/dist/utils/model-aliases.js +1 -1
  98. package/dist/utils/model-factors.js +1 -1
  99. package/dist/utils/option-validation.js +1 -1
  100. package/dist/utils/port.js +1 -1
  101. package/dist/utils/process.js +1 -1
  102. package/dist/utils/prompt.js +1 -1
  103. package/dist/utils/segment-path-parser.js +1 -1
  104. package/dist/utils/segment-ref-parser.js +1 -1
  105. package/dist/utils/spinner.js +1 -1
  106. package/dist/utils/sql-parser.js +1 -1
  107. package/dist/utils/sse-parser.js +1 -1
  108. package/dist/utils/string-utils.js +1 -1
  109. package/dist/utils/table-ref-parser.js +1 -1
  110. package/dist/utils/tdx-config.js +1 -1
  111. package/dist/utils/tdx-logger.js +1 -1
  112. package/dist/utils/tree-formatter.js +1 -1
  113. package/dist/utils/version-check.js +1 -1
  114. package/dist/utils/workflow-utils.js +1 -1
  115. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x25ad2f,_0x403be0){const _0x14338e=a112_0x4f19,_0x145652=_0x25ad2f();while(!![]){try{const _0x3994eb=-parseInt(_0x14338e(0x1ef))/0x1+-parseInt(_0x14338e(0x1f7))/0x2+parseInt(_0x14338e(0x1fd))/0x3+parseInt(_0x14338e(0x1fb))/0x4*(parseInt(_0x14338e(0x1fe))/0x5)+parseInt(_0x14338e(0x1fa))/0x6+parseInt(_0x14338e(0x1f1))/0x7*(parseInt(_0x14338e(0x1ff))/0x8)+-parseInt(_0x14338e(0x1f5))/0x9*(parseInt(_0x14338e(0x1f9))/0xa);if(_0x3994eb===_0x403be0)break;else _0x145652['push'](_0x145652['shift']());}catch(_0x3a9536){_0x145652['push'](_0x145652['shift']());}}}(a112_0x8d17,0x2ec67));import a112_0x4b96c5 from'string-width';export function stringWidth(_0x818e0f){return a112_0x4b96c5(_0x818e0f);}export function padEnd(_0x17cdda,_0x3615fa){const _0x459212=stringWidth(_0x17cdda);if(_0x459212>=_0x3615fa)return _0x17cdda;return _0x17cdda+'\x20'['repeat'](_0x3615fa-_0x459212);}export function padStart(_0x3955da,_0x355274){const _0x403472=a112_0x4f19,_0x4c373d=stringWidth(_0x3955da);if(_0x4c373d>=_0x355274)return _0x3955da;return'\x20'[_0x403472(0x1ec)](_0x355274-_0x4c373d)+_0x3955da;}export function centerAlign(_0x18f02e,_0x27652e){const _0x1aa833=a112_0x4f19,_0x34acc7=stringWidth(_0x18f02e);if(_0x34acc7>_0x27652e){if(_0x27652e<=0x1)return'…'['substring'](0x0,_0x27652e);let _0x2d4644=_0x18f02e;while(stringWidth(_0x2d4644+'…')>_0x27652e){_0x2d4644=_0x2d4644[_0x1aa833(0x1f8)](0x0,-0x1);}return _0x2d4644+'…';}if(_0x34acc7===_0x27652e)return _0x18f02e;const _0x499974=_0x27652e-_0x34acc7,_0x3ab7a1=Math[_0x1aa833(0x1ee)](_0x499974/0x2),_0x493ae7=_0x499974-_0x3ab7a1;return'\x20'[_0x1aa833(0x1ec)](_0x3ab7a1)+_0x18f02e+'\x20'['repeat'](_0x493ae7);}function a112_0x8d17(){const _0x114ab6=['toString','982065IuAeZV','194885jIcViB','3992HrvdMR','trim','padStart','\x5c$&','repeat','toLowerCase','floor','113092BXYVea','unknown','4515HrYgkW','length','USER','Cannot\x20escape\x20empty\x20string\x20literal','174141ihXLmc','replace','40026TPWPlZ','slice','230ijAeXY','21492XmVLJu','12VcGaZc'];a112_0x8d17=function(){return _0x114ab6;};return a112_0x8d17();}export function escapeStringLiteral(_0x5cfa07){const _0x564dbe=a112_0x4f19;if(!_0x5cfa07||_0x5cfa07[_0x564dbe(0x200)]()[_0x564dbe(0x1f2)]===0x0)throw new Error(_0x564dbe(0x1f4));const _0x5397c8=_0x5cfa07[_0x564dbe(0x1f6)](/'/g,'\x27\x27');return'\x27'+_0x5397c8+'\x27';}function a112_0x4f19(_0x5398b4,_0x589180){_0x5398b4=_0x5398b4-0x1ec;const _0x8d1708=a112_0x8d17();let _0x4f194f=_0x8d1708[_0x5398b4];return _0x4f194f;}export function globToLike(_0x31f6af){const _0x28909d=a112_0x4f19;let _0x3669bc=_0x31f6af[_0x28909d(0x1f6)](/\\/g,'\x5c\x5c')[_0x28909d(0x1f6)](/%/g,'\x5c%')[_0x28909d(0x1f6)](/_/g,'\x5c_');return _0x3669bc=_0x3669bc['replace'](/\*/g,'%')[_0x28909d(0x1f6)](/\?/g,'_'),_0x3669bc;}export function buildLikePattern(_0x7f9f2){const _0x52e63b=a112_0x4f19;if(!_0x7f9f2||_0x7f9f2[_0x52e63b(0x200)]()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x53f171=globToLike(_0x7f9f2),_0x30d58d=_0x53f171[_0x52e63b(0x1f6)](/'/g,'\x27\x27');return'\x27'+_0x30d58d+'\x27';}export function matchGlobPattern(_0x265f99,_0x217145){const _0x2365c1=a112_0x4f19,_0x1530fe=_0x217145[_0x2365c1(0x1f6)](/[.+^${}()|[\]\\]/g,_0x2365c1(0x202))[_0x2365c1(0x1f6)](/\*/g,'.*')[_0x2365c1(0x1f6)](/\?/g,'.'),_0x17b67a=new RegExp('^'+_0x1530fe+'$');return _0x17b67a['test'](_0x265f99);}export function getSanitizedUsername(){const _0x146623=a112_0x4f19,_0x28173f=process['env'][_0x146623(0x1f3)]||process['env']['USERNAME']||_0x146623(0x1f0);return _0x28173f['replace'](/[^a-zA-Z0-9]/g,'')[_0x146623(0x1ed)]();}export function generateRandomHex(){const _0x2f8e30=a112_0x4f19,_0x14c2bc=Math[_0x2f8e30(0x1ee)](Math['random']()*0xfffff);return _0x14c2bc[_0x2f8e30(0x1fc)](0x10)[_0x2f8e30(0x201)](0x5,'0');}export function sanitizeFileName(_0x40d05c){const _0x361be1=a112_0x4f19;return _0x40d05c[_0x361be1(0x1ed)]()[_0x361be1(0x1f6)](/[/\\:*?"<>|]/g,'-')[_0x361be1(0x1f6)](/\s+/g,'-')[_0x361be1(0x1f6)](/-+/g,'-')[_0x361be1(0x1f6)](/^-|-$/g,'');}
1
+ (function(_0x3922f4,_0x2605de){const _0x481fa6=a112_0x2861,_0x3d9d7d=_0x3922f4();while(!![]){try{const _0x413cc3=parseInt(_0x481fa6(0x162))/0x1+-parseInt(_0x481fa6(0x15c))/0x2+-parseInt(_0x481fa6(0x15a))/0x3+-parseInt(_0x481fa6(0x15b))/0x4+parseInt(_0x481fa6(0x152))/0x5*(-parseInt(_0x481fa6(0x167))/0x6)+parseInt(_0x481fa6(0x163))/0x7+parseInt(_0x481fa6(0x161))/0x8;if(_0x413cc3===_0x2605de)break;else _0x3d9d7d['push'](_0x3d9d7d['shift']());}catch(_0x250e2b){_0x3d9d7d['push'](_0x3d9d7d['shift']());}}}(a112_0x403a,0xde887));import a112_0xd115df from'string-width';function a112_0x403a(){const _0x2c992b=['env','680292KfigTY','7146688fUpxut','1026124MBCwik','unknown','test','floor','USER','23890608VnrJWG','511088LLFJEd','8324855SokCMm','toString','length','repeat','12KqAWxr','3121715xoJIZn','replace','Cannot\x20escape\x20empty\x20string\x20literal','slice','padStart','trim','toLowerCase'];a112_0x403a=function(){return _0x2c992b;};return a112_0x403a();}export function stringWidth(_0x51e681){return a112_0xd115df(_0x51e681);}export function padEnd(_0x365e12,_0x169450){const _0x1fcb84=stringWidth(_0x365e12);if(_0x1fcb84>=_0x169450)return _0x365e12;return _0x365e12+'\x20'['repeat'](_0x169450-_0x1fcb84);}export function padStart(_0x147654,_0x318a5c){const _0x2d9f48=a112_0x2861,_0xe1c237=stringWidth(_0x147654);if(_0xe1c237>=_0x318a5c)return _0x147654;return'\x20'[_0x2d9f48(0x166)](_0x318a5c-_0xe1c237)+_0x147654;}export function centerAlign(_0x1128db,_0x30d07c){const _0x18dfa3=a112_0x2861,_0x243d2c=stringWidth(_0x1128db);if(_0x243d2c>_0x30d07c){if(_0x30d07c<=0x1)return'…'['substring'](0x0,_0x30d07c);let _0x589103=_0x1128db;while(stringWidth(_0x589103+'…')>_0x30d07c){_0x589103=_0x589103[_0x18dfa3(0x155)](0x0,-0x1);}return _0x589103+'…';}if(_0x243d2c===_0x30d07c)return _0x1128db;const _0x37a7be=_0x30d07c-_0x243d2c,_0x528b12=Math[_0x18dfa3(0x15f)](_0x37a7be/0x2),_0x316ad6=_0x37a7be-_0x528b12;return'\x20'['repeat'](_0x528b12)+_0x1128db+'\x20'[_0x18dfa3(0x166)](_0x316ad6);}function a112_0x2861(_0x4bfae0,_0x14e3c3){_0x4bfae0=_0x4bfae0-0x152;const _0x403ade=a112_0x403a();let _0x2861ad=_0x403ade[_0x4bfae0];return _0x2861ad;}export function escapeStringLiteral(_0x3ddad5){const _0x41e5ca=a112_0x2861;if(!_0x3ddad5||_0x3ddad5[_0x41e5ca(0x157)]()[_0x41e5ca(0x165)]===0x0)throw new Error(_0x41e5ca(0x154));const _0x471d3d=_0x3ddad5['replace'](/'/g,'\x27\x27');return'\x27'+_0x471d3d+'\x27';}export function globToLike(_0x480791){const _0x124fa1=a112_0x2861;let _0x2a4902=_0x480791['replace'](/\\/g,'\x5c\x5c')[_0x124fa1(0x153)](/%/g,'\x5c%')[_0x124fa1(0x153)](/_/g,'\x5c_');return _0x2a4902=_0x2a4902[_0x124fa1(0x153)](/\*/g,'%')['replace'](/\?/g,'_'),_0x2a4902;}export function buildLikePattern(_0x23ef0b){const _0x5f0ee0=a112_0x2861;if(!_0x23ef0b||_0x23ef0b[_0x5f0ee0(0x157)]()[_0x5f0ee0(0x165)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x513e0d=globToLike(_0x23ef0b),_0x4f906a=_0x513e0d['replace'](/'/g,'\x27\x27');return'\x27'+_0x4f906a+'\x27';}export function matchGlobPattern(_0x43da95,_0x52f5af){const _0x193444=a112_0x2861,_0x311031=_0x52f5af[_0x193444(0x153)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x193444(0x153)](/\*/g,'.*')[_0x193444(0x153)](/\?/g,'.'),_0x3c65d2=new RegExp('^'+_0x311031+'$');return _0x3c65d2[_0x193444(0x15e)](_0x43da95);}export function getSanitizedUsername(){const _0x26435f=a112_0x2861,_0x28621a=process['env'][_0x26435f(0x160)]||process[_0x26435f(0x159)]['USERNAME']||_0x26435f(0x15d);return _0x28621a[_0x26435f(0x153)](/[^a-zA-Z0-9]/g,'')[_0x26435f(0x158)]();}export function generateRandomHex(){const _0x41b1fc=a112_0x2861,_0x484d07=Math['floor'](Math['random']()*0xfffff);return _0x484d07[_0x41b1fc(0x164)](0x10)[_0x41b1fc(0x156)](0x5,'0');}export function sanitizeFileName(_0x3a215b){const _0x56c4e8=a112_0x2861;return _0x3a215b[_0x56c4e8(0x158)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x56c4e8(0x153)](/\s+/g,'-')[_0x56c4e8(0x153)](/-+/g,'-')[_0x56c4e8(0x153)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x58c5c7,_0x2ec3cf){const _0x21ef03=a113_0x1e88,_0x19f77=_0x58c5c7();while(!![]){try{const _0x1afbd8=-parseInt(_0x21ef03(0xee))/0x1*(parseInt(_0x21ef03(0xe2))/0x2)+parseInt(_0x21ef03(0xea))/0x3+parseInt(_0x21ef03(0xe9))/0x4*(parseInt(_0x21ef03(0xe3))/0x5)+parseInt(_0x21ef03(0xe8))/0x6*(parseInt(_0x21ef03(0xe7))/0x7)+-parseInt(_0x21ef03(0xdd))/0x8+-parseInt(_0x21ef03(0xe1))/0x9*(-parseInt(_0x21ef03(0xda))/0xa)+-parseInt(_0x21ef03(0xef))/0xb*(parseInt(_0x21ef03(0xf0))/0xc);if(_0x1afbd8===_0x2ec3cf)break;else _0x19f77['push'](_0x19f77['shift']());}catch(_0x3ae2d6){_0x19f77['push'](_0x19f77['shift']());}}}(a113_0x38a3,0x47dfd));function hasWildcard(_0x1e1d52){const _0x29120f=a113_0x1e88;return _0x1e1d52['includes']('*')||_0x1e1d52[_0x29120f(0xd8)]('?');}function a113_0x38a3(){const _0x258e60=['trim','3669952jfoOeO','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1567260EfmPdx','51638nUfEih','552365LWYMGs','split','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','database','1547224WRdfRU','12NJSTlW','4AMFWFV','184491INyAwg','push','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','8wAuQow','11WAllil','31452tLmwkz','Pattern\x20cannot\x20be\x20just\x20a\x20dot','join','catalog','includes','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','20pwPuzK','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)'];a113_0x38a3=function(){return _0x258e60;};return a113_0x38a3();}export function parseTableReference(_0x290c95){const _0x2336c0=a113_0x1e88;if(!_0x290c95||_0x290c95[_0x2336c0(0xdc)]()['length']===0x0)throw new Error(_0x2336c0(0xe5));const _0x1a0062=_0x290c95[_0x2336c0(0xdc)](),_0x8c14e0={'original':_0x1a0062},_0x4acc19=_0x1a0062[_0x2336c0(0xe4)]('.');if(_0x4acc19[_0x2336c0(0xdf)]===0x1){const _0x417f7a=_0x4acc19[0x0];if(!_0x417f7a)throw new Error(_0x2336c0(0xf1));_0x8c14e0[_0x2336c0(0xec)]=_0x417f7a;}else{if(_0x4acc19['length']===0x2){const [_0x445d11,_0x5c10c8]=_0x4acc19;if(!_0x445d11)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x5c10c8)throw new Error(_0x2336c0(0xd9));_0x8c14e0[_0x2336c0(0xe6)]=_0x445d11,_0x8c14e0[_0x2336c0(0xec)]=_0x5c10c8;}else{if(_0x4acc19[_0x2336c0(0xdf)]===0x3){const [_0x116a97,_0x52a1fb,_0x226277]=_0x4acc19;if(!_0x116a97||!_0x52a1fb||!_0x226277)throw new Error(_0x2336c0(0xe0));_0x8c14e0[_0x2336c0(0xf3)]=_0x116a97,_0x8c14e0[_0x2336c0(0xe6)]=_0x52a1fb,_0x8c14e0[_0x2336c0(0xec)]=_0x226277;}else throw new Error(_0x2336c0(0xdb));}}return _0x8c14e0;}export function formatTableReference(_0x4c0e40){const _0xaeffcc=a113_0x1e88,_0x5560d1=[];return _0x4c0e40['catalog']&&_0x5560d1[_0xaeffcc(0xeb)](_0x4c0e40[_0xaeffcc(0xf3)]),_0x4c0e40[_0xaeffcc(0xe6)]&&_0x5560d1[_0xaeffcc(0xeb)](_0x4c0e40[_0xaeffcc(0xe6)]),_0x4c0e40['table']&&_0x5560d1[_0xaeffcc(0xeb)](_0x4c0e40[_0xaeffcc(0xec)]),_0x5560d1[_0xaeffcc(0xf2)]('.');}export function validateTableListReference(_0x4c77ee){return undefined;}function a113_0x1e88(_0x121d58,_0x1a02fb){_0x121d58=_0x121d58-0xd8;const _0x38a3f7=a113_0x38a3();let _0x1e8871=_0x38a3f7[_0x121d58];return _0x1e8871;}export function validateTableDescribeReference(_0x367ffd){const _0x552be7=a113_0x1e88;if(!_0x367ffd['table'])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x367ffd[_0x552be7(0xe6)]&&hasWildcard(_0x367ffd[_0x552be7(0xe6)]))return _0x552be7(0xde);if(hasWildcard(_0x367ffd[_0x552be7(0xec)]))return _0x552be7(0xed);return undefined;}
1
+ (function(_0x267dd8,_0x5dff5d){const _0x431086=a113_0x5277,_0x2972e2=_0x267dd8();while(!![]){try{const _0x380180=-parseInt(_0x431086(0x1cb))/0x1*(parseInt(_0x431086(0x1c4))/0x2)+-parseInt(_0x431086(0x1c0))/0x3*(parseInt(_0x431086(0x1ba))/0x4)+-parseInt(_0x431086(0x1c9))/0x5+-parseInt(_0x431086(0x1b4))/0x6+parseInt(_0x431086(0x1c3))/0x7*(-parseInt(_0x431086(0x1b8))/0x8)+-parseInt(_0x431086(0x1c1))/0x9*(parseInt(_0x431086(0x1bb))/0xa)+parseInt(_0x431086(0x1be))/0xb;if(_0x380180===_0x5dff5d)break;else _0x2972e2['push'](_0x2972e2['shift']());}catch(_0x1a3e89){_0x2972e2['push'](_0x2972e2['shift']());}}}(a113_0x241c,0xbdde2));function hasWildcard(_0x477c35){const _0x1b17ad=a113_0x5277;return _0x477c35[_0x1b17ad(0x1b9)]('*')||_0x477c35[_0x1b17ad(0x1b9)]('?');}function a113_0x5277(_0x29f209,_0x43b7af){_0x29f209=_0x29f209-0x1b3;const _0x241cfe=a113_0x241c();let _0x5277a9=_0x241cfe[_0x29f209];return _0x5277a9;}export function parseTableReference(_0x3393c6){const _0x21dfbf=a113_0x5277;if(!_0x3393c6||_0x3393c6[_0x21dfbf(0x1c8)]()[_0x21dfbf(0x1c7)]===0x0)throw new Error(_0x21dfbf(0x1b3));const _0x53ec5f=_0x3393c6[_0x21dfbf(0x1c8)](),_0x35d424={'original':_0x53ec5f},_0x37e770=_0x53ec5f[_0x21dfbf(0x1b5)]('.');if(_0x37e770[_0x21dfbf(0x1c7)]===0x1){const _0x5bda9c=_0x37e770[0x0];if(!_0x5bda9c)throw new Error(_0x21dfbf(0x1bd));_0x35d424['table']=_0x5bda9c;}else{if(_0x37e770[_0x21dfbf(0x1c7)]===0x2){const [_0x453b57,_0x2ba61a]=_0x37e770;if(!_0x453b57)throw new Error(_0x21dfbf(0x1c2));if(!_0x2ba61a)throw new Error(_0x21dfbf(0x1bf));_0x35d424[_0x21dfbf(0x1ca)]=_0x453b57,_0x35d424[_0x21dfbf(0x1b6)]=_0x2ba61a;}else{if(_0x37e770['length']===0x3){const [_0x3bdd72,_0x2f03b7,_0x1e830f]=_0x37e770;if(!_0x3bdd72||!_0x2f03b7||!_0x1e830f)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x35d424[_0x21dfbf(0x1b7)]=_0x3bdd72,_0x35d424['database']=_0x2f03b7,_0x35d424[_0x21dfbf(0x1b6)]=_0x1e830f;}else throw new Error(_0x21dfbf(0x1cc));}}return _0x35d424;}export function formatTableReference(_0x58fff4){const _0x123356=a113_0x5277,_0x2df2d1=[];return _0x58fff4[_0x123356(0x1b7)]&&_0x2df2d1[_0x123356(0x1c6)](_0x58fff4[_0x123356(0x1b7)]),_0x58fff4[_0x123356(0x1ca)]&&_0x2df2d1[_0x123356(0x1c6)](_0x58fff4['database']),_0x58fff4[_0x123356(0x1b6)]&&_0x2df2d1['push'](_0x58fff4[_0x123356(0x1b6)]),_0x2df2d1['join']('.');}function a113_0x241c(){const _0x1c3361=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2546280ArBhrj','split','table','catalog','144paLayY','includes','42188iJxqQu','10240750yRjbIC','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','45918191MYcYLR','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','45zucAHk','9UZRuqJ','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','317142sLuuUJ','4GQexcb','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','push','length','trim','3438385GjTFQT','database','143419tYgGPt','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)'];a113_0x241c=function(){return _0x1c3361;};return a113_0x241c();}export function validateTableListReference(_0x35fc4c){return undefined;}export function validateTableDescribeReference(_0xa4da73){const _0x5ee646=a113_0x5277;if(!_0xa4da73[_0x5ee646(0x1b6)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0xa4da73['database']&&hasWildcard(_0xa4da73[_0x5ee646(0x1ca)]))return _0x5ee646(0x1c5);if(hasWildcard(_0xa4da73[_0x5ee646(0x1b6)]))return _0x5ee646(0x1bc);return undefined;}
@@ -1 +1 @@
1
- const a114_0x247564=a114_0x2c1e;(function(_0x11a5e4,_0xe7f8dc){const _0x208eb4=a114_0x2c1e,_0x2a8d7e=_0x11a5e4();while(!![]){try{const _0xc9b5b7=-parseInt(_0x208eb4(0x200))/0x1*(parseInt(_0x208eb4(0x1f1))/0x2)+parseInt(_0x208eb4(0x1ed))/0x3+-parseInt(_0x208eb4(0x1ec))/0x4*(-parseInt(_0x208eb4(0x202))/0x5)+parseInt(_0x208eb4(0x1ff))/0x6*(parseInt(_0x208eb4(0x1f2))/0x7)+-parseInt(_0x208eb4(0x203))/0x8*(-parseInt(_0x208eb4(0x204))/0x9)+parseInt(_0x208eb4(0x1fe))/0xa*(parseInt(_0x208eb4(0x1fa))/0xb)+parseInt(_0x208eb4(0x1f8))/0xc*(-parseInt(_0x208eb4(0x1ef))/0xd);if(_0xc9b5b7===_0xe7f8dc)break;else _0x2a8d7e['push'](_0x2a8d7e['shift']());}catch(_0x4debbf){_0x2a8d7e['push'](_0x2a8d7e['shift']());}}}(a114_0x3fac,0x87228));function a114_0x2c1e(_0xcaa55,_0x10dbdf){_0xcaa55=_0xcaa55-0x1e9;const _0x3fac95=a114_0x3fac();let _0x2c1ede=_0x3fac95[_0xcaa55];return _0x2c1ede;}import{existsSync,readFileSync}from'fs';import a114_0x48fa02 from'path';const TDX_CONFIG_FILE=a114_0x247564(0x1fd),SEGMENTS_DIR=a114_0x247564(0x1ea);export function findTdxConfigPath(_0x37a757=process[a114_0x247564(0x1f9)]()){const _0x57dc1a=a114_0x247564;let _0x331c97=a114_0x48fa02['resolve'](_0x37a757);const _0x5b4027=a114_0x48fa02[_0x57dc1a(0x1f3)](_0x331c97)[_0x57dc1a(0x1ee)];while(_0x331c97!==_0x5b4027){const _0x1c75da=a114_0x48fa02[_0x57dc1a(0x1f5)](_0x331c97,TDX_CONFIG_FILE);if(existsSync(_0x1c75da))return _0x1c75da;_0x331c97=a114_0x48fa02['dirname'](_0x331c97);}return null;}export function loadTdxConfig(_0x56ce0e){const _0x59d4bb=a114_0x247564,_0x1315fb=readFileSync(_0x56ce0e,_0x59d4bb(0x1f4));let _0x2c716c;try{_0x2c716c=JSON[_0x59d4bb(0x1f3)](_0x1315fb);}catch{throw new Error(_0x59d4bb(0x1eb)+_0x56ce0e);}if(!_0x2c716c||typeof _0x2c716c!==_0x59d4bb(0x201))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x5a94aa=_0x2c716c;if(!_0x5a94aa[_0x59d4bb(0x1fc)]||typeof _0x5a94aa[_0x59d4bb(0x1fc)]!==_0x59d4bb(0x1f7))throw new Error(_0x59d4bb(0x1f0));return{'parent_segment':_0x5a94aa[_0x59d4bb(0x1fc)]};}export function findTdxConfig(_0x1035e5=process[a114_0x247564(0x1f9)]()){const _0x3dc622=a114_0x247564,_0x5bdc10=findTdxConfigPath(_0x1035e5);if(!_0x5bdc10)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x282820=loadTdxConfig(_0x5bdc10),_0x5cd6c6=a114_0x48fa02[_0x3dc622(0x205)](_0x5bdc10);return{'config':_0x282820,'configPath':_0x5bdc10,'configDir':_0x5cd6c6};}export function getSegmentRootDir(_0x4e06b2,_0x25ae40=process[a114_0x247564(0x1f9)]()){return a114_0x48fa02['join'](_0x25ae40,SEGMENTS_DIR,_0x4e06b2);}export function getTdxConfigPath(_0x2b851e,_0x548546=process[a114_0x247564(0x1f9)]()){const _0x490132=a114_0x247564;return a114_0x48fa02[_0x490132(0x1f5)](getSegmentRootDir(_0x2b851e,_0x548546),TDX_CONFIG_FILE);}function a114_0x3fac(){const _0x1f94b0=['171hWKXaO','dirname','stringify','segments','Invalid\x20JSON\x20in\x20','356smtyty','2705787rwmCRH','root','134303emOaJu','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','7374mhxjsh','7LmLirb','parse','utf-8','join','replace','string','2460dyAxxl','cwd','2784122OLnuNY','resolve','parent_segment','tdx.json','10ElFZMa','6135018zFLUtl','263aGuMuM','object','21865mLruBe','452344zhUTKN'];a114_0x3fac=function(){return _0x1f94b0;};return a114_0x3fac();}export function getRelativePathFromConfig(_0x5750ab,_0x7f2527){const _0x1bd9be=a114_0x247564,_0x50692a=a114_0x48fa02[_0x1bd9be(0x1fb)](_0x5750ab),_0xa5a5ae=a114_0x48fa02['relative'](_0x7f2527,_0x50692a);if(_0xa5a5ae['startsWith']('..'))return'';return _0xa5a5ae;}export function localPathToTdFolderPath(_0x5a7b6f){const _0x106eb4=a114_0x247564,_0x2be445=a114_0x48fa02['dirname'](_0x5a7b6f);if(_0x2be445==='.'||_0x2be445==='')return'';return _0x2be445[_0x106eb4(0x1f6)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x5ec6be,_0x20d783){if(!_0x5ec6be)return _0x20d783;return a114_0x48fa02['join'](_0x20d783,_0x5ec6be);}export function createTdxConfigContent(_0x4c0e2e){const _0x587389=a114_0x247564,_0x16fa28={'parent_segment':_0x4c0e2e};return JSON[_0x587389(0x1e9)](_0x16fa28,null,0x2)+'\x0a';}
1
+ const a114_0x59e712=a114_0x1a11;(function(_0x2b5f4a,_0x4e7d8b){const _0x59994f=a114_0x1a11,_0x17ae88=_0x2b5f4a();while(!![]){try{const _0x107ebc=-parseInt(_0x59994f(0x1ec))/0x1*(parseInt(_0x59994f(0x1fc))/0x2)+-parseInt(_0x59994f(0x204))/0x3*(parseInt(_0x59994f(0x1ed))/0x4)+-parseInt(_0x59994f(0x1f8))/0x5+-parseInt(_0x59994f(0x203))/0x6*(parseInt(_0x59994f(0x1fd))/0x7)+-parseInt(_0x59994f(0x1f4))/0x8+parseInt(_0x59994f(0x1f9))/0x9+-parseInt(_0x59994f(0x200))/0xa*(-parseInt(_0x59994f(0x1fe))/0xb);if(_0x107ebc===_0x4e7d8b)break;else _0x17ae88['push'](_0x17ae88['shift']());}catch(_0x1cea56){_0x17ae88['push'](_0x17ae88['shift']());}}}(a114_0x2578,0x3966e));import{existsSync,readFileSync}from'fs';import a114_0x26bd6d from'path';const TDX_CONFIG_FILE=a114_0x59e712(0x1fa),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x5b94e7=process[a114_0x59e712(0x1f0)]()){const _0x10136c=a114_0x59e712;let _0x3228b2=a114_0x26bd6d[_0x10136c(0x1f2)](_0x5b94e7);const _0x14f90e=a114_0x26bd6d['parse'](_0x3228b2)['root'];while(_0x3228b2!==_0x14f90e){const _0x468b85=a114_0x26bd6d[_0x10136c(0x1f5)](_0x3228b2,TDX_CONFIG_FILE);if(existsSync(_0x468b85))return _0x468b85;_0x3228b2=a114_0x26bd6d['dirname'](_0x3228b2);}return null;}export function loadTdxConfig(_0x3c2bd7){const _0x102808=a114_0x59e712,_0x4c05a0=readFileSync(_0x3c2bd7,'utf-8');let _0x15b767;try{_0x15b767=JSON[_0x102808(0x1f7)](_0x4c05a0);}catch{throw new Error(_0x102808(0x202)+_0x3c2bd7);}if(!_0x15b767||typeof _0x15b767!=='object')throw new Error(_0x102808(0x201));const _0x2819c6=_0x15b767;if(!_0x2819c6[_0x102808(0x1fb)]||typeof _0x2819c6['parent_segment']!=='string')throw new Error(_0x102808(0x1ee));return{'parent_segment':_0x2819c6[_0x102808(0x1fb)]};}function a114_0x1a11(_0x5dac86,_0x1bea42){_0x5dac86=_0x5dac86-0x1ec;const _0x25784b=a114_0x2578();let _0x1a1171=_0x25784b[_0x5dac86];return _0x1a1171;}function a114_0x2578(){const _0x538ea0=['1892210yOvnzU','2412225XJHCPK','tdx.json','parent_segment','2tKREmq','7QTTAgm','253JMWXXE','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','523870oekLxd','Invalid\x20tdx.json:\x20expected\x20object','Invalid\x20JSON\x20in\x20','2577006jEdgaX','3681zwVyce','34513nCUSrD','316RxUNWy','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','relative','cwd','dirname','resolve','stringify','2387352dGlSUD','join','replace','parse'];a114_0x2578=function(){return _0x538ea0;};return a114_0x2578();}export function findTdxConfig(_0x2a6c9c=process[a114_0x59e712(0x1f0)]()){const _0x59b9f4=a114_0x59e712,_0x36c4fd=findTdxConfigPath(_0x2a6c9c);if(!_0x36c4fd)throw new Error(_0x59b9f4(0x1ff));const _0x1b395a=loadTdxConfig(_0x36c4fd),_0x56d189=a114_0x26bd6d[_0x59b9f4(0x1f1)](_0x36c4fd);return{'config':_0x1b395a,'configPath':_0x36c4fd,'configDir':_0x56d189};}export function getSegmentRootDir(_0x5abb05,_0x2deb0c=process['cwd']()){const _0x2ef477=a114_0x59e712;return a114_0x26bd6d[_0x2ef477(0x1f5)](_0x2deb0c,SEGMENTS_DIR,_0x5abb05);}export function getTdxConfigPath(_0x487127,_0x1e780d=process[a114_0x59e712(0x1f0)]()){return a114_0x26bd6d['join'](getSegmentRootDir(_0x487127,_0x1e780d),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x1ede89,_0xf08ff){const _0x5422ff=a114_0x59e712,_0x27ba76=a114_0x26bd6d[_0x5422ff(0x1f2)](_0x1ede89),_0x204681=a114_0x26bd6d[_0x5422ff(0x1ef)](_0xf08ff,_0x27ba76);if(_0x204681['startsWith']('..'))return'';return _0x204681;}export function localPathToTdFolderPath(_0x481729){const _0x3c2964=a114_0x59e712,_0x217f26=a114_0x26bd6d[_0x3c2964(0x1f1)](_0x481729);if(_0x217f26==='.'||_0x217f26==='')return'';return _0x217f26[_0x3c2964(0x1f6)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x3fa4cb,_0x3aa593){const _0x373718=a114_0x59e712;if(!_0x3fa4cb)return _0x3aa593;return a114_0x26bd6d[_0x373718(0x1f5)](_0x3aa593,_0x3fa4cb);}export function createTdxConfigContent(_0x10c6a7){const _0x4af6f9=a114_0x59e712,_0x1ba877={'parent_segment':_0x10c6a7};return JSON[_0x4af6f9(0x1f3)](_0x1ba877,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a115_0x4ee6cc=a115_0x524a;(function(_0x147184,_0x270bf2){const _0x1c07dd=a115_0x524a,_0x239e95=_0x147184();while(!![]){try{const _0x39388e=parseInt(_0x1c07dd(0x92))/0x1*(-parseInt(_0x1c07dd(0xaa))/0x2)+-parseInt(_0x1c07dd(0x90))/0x3*(-parseInt(_0x1c07dd(0xb5))/0x4)+-parseInt(_0x1c07dd(0xbe))/0x5+-parseInt(_0x1c07dd(0xa0))/0x6*(parseInt(_0x1c07dd(0x9c))/0x7)+-parseInt(_0x1c07dd(0x8f))/0x8+parseInt(_0x1c07dd(0x99))/0x9+-parseInt(_0x1c07dd(0x93))/0xa*(-parseInt(_0x1c07dd(0xb3))/0xb);if(_0x39388e===_0x270bf2)break;else _0x239e95['push'](_0x239e95['shift']());}catch(_0x149039){_0x239e95['push'](_0x239e95['shift']());}}}(a115_0x2a68,0xf3f32));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a115_0x524a(_0x259e79,_0x2071aa){_0x259e79=_0x259e79-0x8e;const _0x2a6800=a115_0x2a68();let _0x524acd=_0x2a6800[_0x259e79];return _0x524acd;}import{pipeline}from'stream/promises';import a115_0x423151 from'chalk';function safeStringify(_0x577668){const _0x2717f5=a115_0x524a;if(typeof _0x577668==='string')return _0x577668;if(_0x577668 instanceof Error)return _0x577668[_0x2717f5(0x96)]||_0x577668['name']+':\x20'+_0x577668[_0x2717f5(0x9d)];try{return JSON[_0x2717f5(0xac)](_0x577668,(_0x264471,_0x54a41c)=>{const _0x280f9b=_0x2717f5;if(_0x54a41c instanceof Error)return{'name':_0x54a41c[_0x280f9b(0xc0)],'message':_0x54a41c['message'],'stack':_0x54a41c['stack'],'cause':_0x54a41c[_0x280f9b(0xaf)]};return _0x54a41c;});}catch{return String(_0x577668);}}function getTimezoneOffset(){const _0x5e9d9e=a115_0x524a,_0x415f4a=-new Date()[_0x5e9d9e(0xad)](),_0x38f990=Math[_0x5e9d9e(0x97)](Math[_0x5e9d9e(0xc7)](_0x415f4a)/0x3c),_0xcbe891=Math[_0x5e9d9e(0xc7)](_0x415f4a)%0x3c,_0x4b6e99=_0x415f4a>=0x0?'+':'-';return''+_0x4b6e99+_0x38f990[_0x5e9d9e(0x98)]()['padStart'](0x2,'0')+_0xcbe891[_0x5e9d9e(0x98)]()[_0x5e9d9e(0xa1)](0x2,'0');}function formatTimestamp(){const _0x423472=a115_0x524a,_0x6ab527=new Date(),_0x3fd1fa=_0x6ab527['getFullYear'](),_0x3b73b3=(_0x6ab527[_0x423472(0xb9)]()+0x1)[_0x423472(0x98)]()[_0x423472(0xa1)](0x2,'0'),_0x26e49e=_0x6ab527['getDate']()[_0x423472(0x98)]()[_0x423472(0xa1)](0x2,'0'),_0x46056d=_0x6ab527['getHours']()[_0x423472(0x98)]()[_0x423472(0xa1)](0x2,'0'),_0x18e491=_0x6ab527[_0x423472(0xc1)]()[_0x423472(0x98)]()[_0x423472(0xa1)](0x2,'0'),_0x328590=_0x6ab527[_0x423472(0x91)]()['toString']()[_0x423472(0xa1)](0x2,'0'),_0x2f3350=_0x6ab527[_0x423472(0xb2)]()[_0x423472(0x98)]()[_0x423472(0xa1)](0x3,'0'),_0x23de39=getTimezoneOffset();return _0x3fd1fa+'-'+_0x3b73b3+'-'+_0x26e49e+'\x20'+_0x46056d+':'+_0x18e491+':'+_0x328590+'.'+_0x2f3350+_0x23de39;}function formatColoredLogEntry(_0x119b8d,_0x1afa6c){const _0xae8e3b=a115_0x524a,_0x345cdf=formatTimestamp(),_0x2a2bc4=_0x1afa6c[_0xae8e3b(0x95)](safeStringify)[_0xae8e3b(0xa9)]('\x20'),_0x19570a=a115_0x423151[_0xae8e3b(0xb0)](_0x345cdf);let _0x557336;switch(_0x119b8d){case _0xae8e3b(0x8e):_0x557336=a115_0x423151[_0xae8e3b(0x9b)]('['+_0x119b8d+']\x20');break;case _0xae8e3b(0xb8):_0x557336=a115_0x423151[_0xae8e3b(0xbd)]('['+_0x119b8d+']\x20');break;case'error':_0x557336=a115_0x423151['red']('['+_0x119b8d+']');break;case'debug':_0x557336=a115_0x423151[_0xae8e3b(0xb0)]('['+_0x119b8d+']');break;default:_0x557336='['+_0x119b8d+']';}return _0x19570a+'\x20'+_0x557336+'\x20'+_0x2a2bc4;}export var LogLevel;(function(_0xb1ef14){const _0x1ddd42=a115_0x524a;_0xb1ef14[_0xb1ef14[_0x1ddd42(0xbb)]=-0x2]=_0x1ddd42(0xbb),_0xb1ef14[_0xb1ef14[_0x1ddd42(0xae)]=-0x1]=_0x1ddd42(0xae),_0xb1ef14[_0xb1ef14['INFO']=0x0]='INFO',_0xb1ef14[_0xb1ef14[_0x1ddd42(0xc6)]=0x1]=_0x1ddd42(0xc6),_0xb1ef14[_0xb1ef14[_0x1ddd42(0xa4)]=0x2]=_0x1ddd42(0xa4);}(LogLevel||(LogLevel={})));export class TDXLogger{[a115_0x4ee6cc(0xc4)];[a115_0x4ee6cc(0xa3)];[a115_0x4ee6cc(0x9a)];['fileOnly'];constructor(_0x163a86=LogLevel['INFO'],_0x4f369e=![]){const _0x3f7a76=a115_0x4ee6cc;this['logDir']=join(homedir(),'.cache',_0x3f7a76(0xab),_0x3f7a76(0xbf)),this[_0x3f7a76(0x9a)]=_0x163a86,this[_0x3f7a76(0xa8)]=_0x4f369e;}async[a115_0x4ee6cc(0xc2)](){const _0x1f0a47=a115_0x4ee6cc;try{await mkdir(this['logDir'],{'recursive':!![]}),await this['rotateOldLogs']();const _0x29acbe=join(this[_0x1f0a47(0xa3)],_0x1f0a47(0xa2));this[_0x1f0a47(0xc4)]=createWriteStream(_0x29acbe,{'flags':'a'}),this[_0x1f0a47(0xc4)]['on'](_0x1f0a47(0xc5),_0x4bc159=>{const _0x168a2a=_0x1f0a47;console['error'](_0x168a2a(0xc3),_0x4bc159['message']);});}catch(_0x3cdcef){console[_0x1f0a47(0xc5)](_0x1f0a47(0xba),_0x3cdcef);}}async['rotateOldLogs'](){const _0x3a455f=a115_0x4ee6cc;try{const _0x38941a=await readdir(this[_0x3a455f(0xa3)]),_0x3546e1=new Date()['toISOString']()['split']('T')[0x0];if(_0x38941a['includes'](_0x3a455f(0xa2))){const _0x595581=join(this[_0x3a455f(0xa3)],'tdx.log'),_0x1e6270=await stat(_0x595581),_0xa3cdbf=new Date(_0x1e6270[_0x3a455f(0xb1)])[_0x3a455f(0x9f)]()[_0x3a455f(0xc9)]('T')[0x0];if(_0xa3cdbf<_0x3546e1){const _0x4b3894=join(this['logDir'],_0x3a455f(0xa6)+_0xa3cdbf+_0x3a455f(0xb6));await rename(_0x595581,_0x4b3894);}}const _0x161c5b=await readdir(this[_0x3a455f(0xa3)]),_0x4b1361=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x370f19=_0x161c5b[_0x3a455f(0xa5)](_0xe3fbb=>_0x4b1361[_0x3a455f(0xbc)](_0xe3fbb));for(const _0x2f4f74 of _0x370f19){const _0x5afc8c=join(this[_0x3a455f(0xa3)],_0x2f4f74),_0x402cab=join(this[_0x3a455f(0xa3)],_0x2f4f74+_0x3a455f(0x9e));try{await pipeline(createReadStream(_0x5afc8c),createGzip(),createWriteStream(_0x402cab)),await unlink(_0x5afc8c);}catch(_0x3c82e0){console[_0x3a455f(0xc5)](_0x3a455f(0xa7)+_0x2f4f74+':',_0x3c82e0);}}}catch{}}[a115_0x4ee6cc(0xc8)](..._0x40c7f5){const _0x2b8a74=a115_0x4ee6cc;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x5cf74d=formatColoredLogEntry('debug',_0x40c7f5);this[_0x2b8a74(0xc4)]?.[_0x2b8a74(0x94)](_0x5cf74d+'\x0a');}['trace'](..._0x3d58f2){const _0xb50f8=a115_0x4ee6cc;if(this[_0xb50f8(0x9a)]>LogLevel[_0xb50f8(0xbb)])return;const _0x569d79=formatColoredLogEntry('trace',_0x3d58f2);this[_0xb50f8(0xc4)]?.['write'](_0x569d79+'\x0a');}[a115_0x4ee6cc(0x8e)](..._0x4a3701){const _0x3557d5=a115_0x4ee6cc;if(this['logLevel']>LogLevel['INFO'])return;const _0x30cb77=formatColoredLogEntry(_0x3557d5(0x8e),_0x4a3701);!this[_0x3557d5(0xa8)]&&console[_0x3557d5(0xb4)](_0x30cb77),this[_0x3557d5(0xc4)]?.[_0x3557d5(0x94)](_0x30cb77+'\x0a');}[a115_0x4ee6cc(0xb8)](..._0x107bab){const _0x566bc2=a115_0x4ee6cc;if(this['logLevel']>LogLevel['WARN'])return;const _0x4d855b=formatColoredLogEntry(_0x566bc2(0xb8),_0x107bab);!this[_0x566bc2(0xa8)]&&console[_0x566bc2(0xc5)](_0x4d855b),this['logStream']?.['write'](_0x4d855b+'\x0a');}[a115_0x4ee6cc(0xc5)](..._0x4a071e){const _0x44ac05=a115_0x4ee6cc,_0x53b435=formatColoredLogEntry(_0x44ac05(0xc5),_0x4a071e);!this['fileOnly']&&console['error'](_0x53b435),this[_0x44ac05(0xc4)]?.['write'](_0x53b435+'\x0a');}async['close'](){const _0x228418=a115_0x4ee6cc;return this[_0x228418(0x8e)](_0x228418(0xca)),new Promise(_0x55c283=>{const _0x53fc3a=_0x228418;this[_0x53fc3a(0xc4)]?this['logStream']['end'](()=>{_0x55c283();}):_0x55c283();});}[a115_0x4ee6cc(0xb7)](){const _0x3c645a=a115_0x4ee6cc;return join(this['logDir'],_0x3c645a(0xa2));}}function a115_0x2a68(){const _0xc7dec8=['floor','toString','3364272qwRanH','logLevel','cyan','2415049AktYgd','message','.gz','toISOString','18KoxnlZ','padStart','tdx.log','logDir','ERROR','filter','tdx-','Warning:\x20Failed\x20to\x20compress\x20','fileOnly','join','310462XNzfqU','tdx','stringify','getTimezoneOffset','DEBUG','cause','gray','mtime','getMilliseconds','4667762fwoCHp','log','36QHEHEw','.log','getLogPath','warn','getMonth','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','TRACE','test','yellow','163885vPOAxw','logs','name','getMinutes','init','Warning:\x20Error\x20writing\x20to\x20tdx.log:','logStream','error','WARN','abs','debug','split','Proxy\x20session\x20ended','info','7069808NCxRvW','165525sQqcwx','getSeconds','3zgLwJf','60RjvFkk','write','map','stack'];a115_0x2a68=function(){return _0xc7dec8;};return a115_0x2a68();}
1
+ const a115_0x4b917e=a115_0x56eb;(function(_0x24db13,_0x38a0d8){const _0xc8c239=a115_0x56eb,_0xb725c3=_0x24db13();while(!![]){try{const _0xc6aa60=parseInt(_0xc8c239(0xca))/0x1*(-parseInt(_0xc8c239(0xde))/0x2)+-parseInt(_0xc8c239(0xc2))/0x3+-parseInt(_0xc8c239(0xcb))/0x4+parseInt(_0xc8c239(0xc8))/0x5+parseInt(_0xc8c239(0xb3))/0x6*(parseInt(_0xc8c239(0xcc))/0x7)+parseInt(_0xc8c239(0xbe))/0x8+parseInt(_0xc8c239(0xb4))/0x9;if(_0xc6aa60===_0x38a0d8)break;else _0xb725c3['push'](_0xb725c3['shift']());}catch(_0x125b7d){_0xb725c3['push'](_0xb725c3['shift']());}}}(a115_0xd925,0xbd1f3));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a115_0x3bb11b from'chalk';function safeStringify(_0x23db2c){const _0x196349=a115_0x56eb;if(typeof _0x23db2c===_0x196349(0xe6))return _0x23db2c;if(_0x23db2c instanceof Error)return _0x23db2c[_0x196349(0xdb)]||_0x23db2c[_0x196349(0xd8)]+':\x20'+_0x23db2c[_0x196349(0xd4)];try{return JSON[_0x196349(0xb5)](_0x23db2c,(_0x5be9b4,_0x4771b9)=>{const _0x5db1a0=_0x196349;if(_0x4771b9 instanceof Error)return{'name':_0x4771b9[_0x5db1a0(0xd8)],'message':_0x4771b9[_0x5db1a0(0xd4)],'stack':_0x4771b9[_0x5db1a0(0xdb)],'cause':_0x4771b9[_0x5db1a0(0xb2)]};return _0x4771b9;});}catch{return String(_0x23db2c);}}function getTimezoneOffset(){const _0x9208f4=a115_0x56eb,_0x3e3cbc=-new Date()['getTimezoneOffset'](),_0xfdaf72=Math[_0x9208f4(0xbf)](Math[_0x9208f4(0xc6)](_0x3e3cbc)/0x3c),_0x4c4c5e=Math[_0x9208f4(0xc6)](_0x3e3cbc)%0x3c,_0x46eaf4=_0x3e3cbc>=0x0?'+':'-';return''+_0x46eaf4+_0xfdaf72['toString']()[_0x9208f4(0xb0)](0x2,'0')+_0x4c4c5e[_0x9208f4(0xe5)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x3981f9=a115_0x56eb,_0x472fe0=new Date(),_0x318ca9=_0x472fe0['getFullYear'](),_0xcf66a=(_0x472fe0['getMonth']()+0x1)[_0x3981f9(0xe5)]()[_0x3981f9(0xb0)](0x2,'0'),_0xf90144=_0x472fe0[_0x3981f9(0xd2)]()[_0x3981f9(0xe5)]()[_0x3981f9(0xb0)](0x2,'0'),_0x12b3cf=_0x472fe0['getHours']()[_0x3981f9(0xe5)]()[_0x3981f9(0xb0)](0x2,'0'),_0x33f3a2=_0x472fe0[_0x3981f9(0xe3)]()[_0x3981f9(0xe5)]()['padStart'](0x2,'0'),_0x52aca2=_0x472fe0[_0x3981f9(0xd5)]()['toString']()[_0x3981f9(0xb0)](0x2,'0'),_0x356064=_0x472fe0['getMilliseconds']()['toString']()[_0x3981f9(0xb0)](0x3,'0'),_0x30bcc0=getTimezoneOffset();return _0x318ca9+'-'+_0xcf66a+'-'+_0xf90144+'\x20'+_0x12b3cf+':'+_0x33f3a2+':'+_0x52aca2+'.'+_0x356064+_0x30bcc0;}function formatColoredLogEntry(_0x376283,_0xcb766c){const _0x5ae15e=a115_0x56eb,_0x75bb52=formatTimestamp(),_0x33c780=_0xcb766c['map'](safeStringify)[_0x5ae15e(0xda)]('\x20'),_0x4383b3=a115_0x3bb11b[_0x5ae15e(0xc3)](_0x75bb52);let _0x2a8352;switch(_0x376283){case _0x5ae15e(0xce):_0x2a8352=a115_0x3bb11b[_0x5ae15e(0xc1)]('['+_0x376283+']\x20');break;case _0x5ae15e(0xe2):_0x2a8352=a115_0x3bb11b['yellow']('['+_0x376283+']\x20');break;case'error':_0x2a8352=a115_0x3bb11b[_0x5ae15e(0xdd)]('['+_0x376283+']');break;case _0x5ae15e(0xb7):_0x2a8352=a115_0x3bb11b['gray']('['+_0x376283+']');break;default:_0x2a8352='['+_0x376283+']';}return _0x4383b3+'\x20'+_0x2a8352+'\x20'+_0x33c780;}function a115_0x56eb(_0x5ba664,_0x12ced4){_0x5ba664=_0x5ba664-0xaf;const _0xd925ac=a115_0xd925();let _0x56ebb6=_0xd925ac[_0x5ba664];return _0x56ebb6;}export var LogLevel;(function(_0x4b77e5){const _0x5b32cd=a115_0x56eb;_0x4b77e5[_0x4b77e5[_0x5b32cd(0xbc)]=-0x2]=_0x5b32cd(0xbc),_0x4b77e5[_0x4b77e5[_0x5b32cd(0xe0)]=-0x1]=_0x5b32cd(0xe0),_0x4b77e5[_0x4b77e5[_0x5b32cd(0xd7)]=0x0]=_0x5b32cd(0xd7),_0x4b77e5[_0x4b77e5['WARN']=0x1]='WARN',_0x4b77e5[_0x4b77e5[_0x5b32cd(0xe9)]=0x2]=_0x5b32cd(0xe9);}(LogLevel||(LogLevel={})));function a115_0xd925(){const _0x235828=['getDate','includes','message','getSeconds','logDir','INFO','name','write','join','stack','Warning:\x20Failed\x20to\x20compress\x20','red','2EEQYvA','logLevel','DEBUG','WARN','warn','getMinutes','error','toString','string','.cache','tdx.log','ERROR','close','.gz','padStart','logStream','cause','168vEPUTX','6769071oqbNgT','stringify','Proxy\x20session\x20ended','debug','mtime','logs','rotateOldLogs','test','TRACE','end','3142064OJwAcH','floor','tdx','cyan','1082673NdWvel','gray','fileOnly','log','abs','filter','579270Upjwii','trace','981818mQVamE','2597100GiFCuS','376474kYfpLC','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','info','getLogPath','split','toISOString'];a115_0xd925=function(){return _0x235828;};return a115_0xd925();}export class TDXLogger{[a115_0x4b917e(0xb1)];[a115_0x4b917e(0xd6)];[a115_0x4b917e(0xdf)];[a115_0x4b917e(0xc4)];constructor(_0x417a23=LogLevel[a115_0x4b917e(0xd7)],_0xdb662c=![]){const _0x327412=a115_0x4b917e;this[_0x327412(0xd6)]=join(homedir(),_0x327412(0xe7),_0x327412(0xc0),_0x327412(0xb9)),this[_0x327412(0xdf)]=_0x417a23,this[_0x327412(0xc4)]=_0xdb662c;}async['init'](){const _0x56be8c=a115_0x4b917e;try{await mkdir(this[_0x56be8c(0xd6)],{'recursive':!![]}),await this[_0x56be8c(0xba)]();const _0x5d704d=join(this['logDir'],_0x56be8c(0xe8));this[_0x56be8c(0xb1)]=createWriteStream(_0x5d704d,{'flags':'a'}),this[_0x56be8c(0xb1)]['on']('error',_0x240d44=>{const _0x3d859e=_0x56be8c;console['error']('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x240d44[_0x3d859e(0xd4)]);});}catch(_0x390196){console[_0x56be8c(0xe4)](_0x56be8c(0xcd),_0x390196);}}async[a115_0x4b917e(0xba)](){const _0x55ce19=a115_0x4b917e;try{const _0x18a987=await readdir(this[_0x55ce19(0xd6)]),_0x49addc=new Date()[_0x55ce19(0xd1)]()[_0x55ce19(0xd0)]('T')[0x0];if(_0x18a987[_0x55ce19(0xd3)](_0x55ce19(0xe8))){const _0xccc5d4=join(this[_0x55ce19(0xd6)],_0x55ce19(0xe8)),_0x268a2f=await stat(_0xccc5d4),_0x3c542f=new Date(_0x268a2f[_0x55ce19(0xb8)])[_0x55ce19(0xd1)]()['split']('T')[0x0];if(_0x3c542f<_0x49addc){const _0x15d9c6=join(this['logDir'],'tdx-'+_0x3c542f+'.log');await rename(_0xccc5d4,_0x15d9c6);}}const _0x564528=await readdir(this[_0x55ce19(0xd6)]),_0x2caa9b=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x48b2d5=_0x564528[_0x55ce19(0xc7)](_0x50bb9f=>_0x2caa9b[_0x55ce19(0xbb)](_0x50bb9f));for(const _0x5392bb of _0x48b2d5){const _0x37732e=join(this[_0x55ce19(0xd6)],_0x5392bb),_0x272890=join(this[_0x55ce19(0xd6)],_0x5392bb+_0x55ce19(0xaf));try{await pipeline(createReadStream(_0x37732e),createGzip(),createWriteStream(_0x272890)),await unlink(_0x37732e);}catch(_0xc82771){console[_0x55ce19(0xe4)](_0x55ce19(0xdc)+_0x5392bb+':',_0xc82771);}}}catch{}}[a115_0x4b917e(0xb7)](..._0x22fa84){const _0x5b6b32=a115_0x4b917e;if(this['logLevel']>LogLevel[_0x5b6b32(0xe0)])return;const _0x8fd425=formatColoredLogEntry(_0x5b6b32(0xb7),_0x22fa84);this['logStream']?.[_0x5b6b32(0xd9)](_0x8fd425+'\x0a');}[a115_0x4b917e(0xc9)](..._0x4961b3){const _0x2a020b=a115_0x4b917e;if(this['logLevel']>LogLevel[_0x2a020b(0xbc)])return;const _0x154bf3=formatColoredLogEntry(_0x2a020b(0xc9),_0x4961b3);this[_0x2a020b(0xb1)]?.[_0x2a020b(0xd9)](_0x154bf3+'\x0a');}['info'](..._0x123374){const _0x19cdd9=a115_0x4b917e;if(this[_0x19cdd9(0xdf)]>LogLevel[_0x19cdd9(0xd7)])return;const _0x1ed8bf=formatColoredLogEntry(_0x19cdd9(0xce),_0x123374);!this['fileOnly']&&console[_0x19cdd9(0xc5)](_0x1ed8bf),this[_0x19cdd9(0xb1)]?.[_0x19cdd9(0xd9)](_0x1ed8bf+'\x0a');}[a115_0x4b917e(0xe2)](..._0x489ed8){const _0x5e28cb=a115_0x4b917e;if(this['logLevel']>LogLevel[_0x5e28cb(0xe1)])return;const _0x2f63c8=formatColoredLogEntry(_0x5e28cb(0xe2),_0x489ed8);!this[_0x5e28cb(0xc4)]&&console[_0x5e28cb(0xe4)](_0x2f63c8),this[_0x5e28cb(0xb1)]?.[_0x5e28cb(0xd9)](_0x2f63c8+'\x0a');}[a115_0x4b917e(0xe4)](..._0x1ba427){const _0x3da21c=a115_0x4b917e,_0x25511f=formatColoredLogEntry(_0x3da21c(0xe4),_0x1ba427);!this[_0x3da21c(0xc4)]&&console[_0x3da21c(0xe4)](_0x25511f),this['logStream']?.[_0x3da21c(0xd9)](_0x25511f+'\x0a');}async[a115_0x4b917e(0xea)](){const _0x4f155b=a115_0x4b917e;return this[_0x4f155b(0xce)](_0x4f155b(0xb6)),new Promise(_0x350f29=>{const _0x5aa341=_0x4f155b;this[_0x5aa341(0xb1)]?this['logStream'][_0x5aa341(0xbd)](()=>{_0x350f29();}):_0x350f29();});}[a115_0x4b917e(0xcf)](){const _0x75c3ba=a115_0x4b917e;return join(this[_0x75c3ba(0xd6)],_0x75c3ba(0xe8));}}
@@ -1 +1 @@
1
- (function(_0x2d1491,_0x5bd1e0){const _0x2e4eaa=a116_0x5d7e,_0x2d213d=_0x2d1491();while(!![]){try{const _0x4dc0b0=parseInt(_0x2e4eaa(0x19b))/0x1*(parseInt(_0x2e4eaa(0x19c))/0x2)+parseInt(_0x2e4eaa(0x1a3))/0x3*(-parseInt(_0x2e4eaa(0x18f))/0x4)+-parseInt(_0x2e4eaa(0x193))/0x5+parseInt(_0x2e4eaa(0x1a7))/0x6*(-parseInt(_0x2e4eaa(0x194))/0x7)+-parseInt(_0x2e4eaa(0x18e))/0x8+parseInt(_0x2e4eaa(0x19d))/0x9+parseInt(_0x2e4eaa(0x192))/0xa;if(_0x4dc0b0===_0x5bd1e0)break;else _0x2d213d['push'](_0x2d213d['shift']());}catch(_0x423db4){_0x2d213d['push'](_0x2d213d['shift']());}}}(a116_0x307f,0x7a408));import{formatRows}from'./formatters.js';import a116_0x294d9f from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20','showUrl':![],'getSegmentUrl':undefined};export function formatTree(_0x330461,_0x115480={},_0x27979a=0x0,_0x300712=''){const _0x51db61=a116_0x5d7e,_0xcf6961={...DEFAULT_OPTIONS,..._0x115480},_0x2ba1a2=[],_0x37aba1=[..._0x330461][_0x51db61(0x199)]((_0x16bf38,_0x413f69)=>_0x16bf38[_0x51db61(0x19f)][_0x51db61(0x183)](_0x413f69[_0x51db61(0x19f)]));for(let _0x4dc744=0x0;_0x4dc744<_0x37aba1[_0x51db61(0x1a9)];_0x4dc744++){const _0x31614d=_0x37aba1[_0x4dc744],_0x3dbb2c=_0x4dc744===_0x37aba1[_0x51db61(0x1a9)]-0x1;let _0x1a17c0='';_0x27979a>0x0&&(_0x1a17c0+=_0x300712);_0xcf6961[_0x51db61(0x1a4)]&&_0x27979a>0x0&&(_0x1a17c0+=a116_0x294d9f[_0x51db61(0x18a)](_0x3dbb2c?_0x51db61(0x19a):'├──\x20'));_0xcf6961['showIcons']&&(_0x1a17c0+=_0x31614d[_0x51db61(0x1a5)]==='folder'?_0x51db61(0x188):_0x51db61(0x189));_0x1a17c0+=_0x31614d[_0x51db61(0x19f)];if(_0xcf6961[_0x51db61(0x18b)]){if(_0x31614d[_0x51db61(0x1a5)]==='folder'){const _0x6a5b5f=[];_0x31614d[_0x51db61(0x197)][_0x51db61(0x18c)]&&_0x6a5b5f['push'](_0x31614d[_0x51db61(0x197)]['segmentCount']+'\x20segment'+(_0x31614d[_0x51db61(0x197)][_0x51db61(0x18c)]!==0x1?'s':'')),_0x31614d[_0x51db61(0x197)][_0x51db61(0x1a0)]&&_0x6a5b5f[_0x51db61(0x190)](_0x31614d[_0x51db61(0x197)]['folderCount']+_0x51db61(0x184)+(_0x31614d[_0x51db61(0x197)][_0x51db61(0x1a0)]!==0x1?'s':'')),_0x6a5b5f[_0x51db61(0x1a9)]>0x0&&(_0x1a17c0+=a116_0x294d9f[_0x51db61(0x18a)]('\x20('+_0x6a5b5f[_0x51db61(0x1a8)](',\x20')+')'));}else _0x31614d[_0x51db61(0x1a5)]===_0x51db61(0x1a1)&&_0x31614d[_0x51db61(0x187)]!==undefined&&(_0x1a17c0+=a116_0x294d9f[_0x51db61(0x18a)]('\x20('+formatRows(_0x31614d[_0x51db61(0x187)])+')'));}_0xcf6961[_0x51db61(0x191)]&&_0xcf6961[_0x51db61(0x1a2)]&&_0x31614d[_0x51db61(0x1a5)]===_0x51db61(0x1a1)&&(_0x1a17c0+='\x20'+a116_0x294d9f[_0x51db61(0x186)](_0xcf6961[_0x51db61(0x1a2)](_0x31614d['id'])));_0x2ba1a2['push'](_0x1a17c0);if(_0x31614d['children']&&_0x31614d[_0x51db61(0x19e)][_0x51db61(0x1a9)]>0x0){let _0x1b5e9e;if(_0x27979a===0x0)_0x1b5e9e='';else _0xcf6961[_0x51db61(0x1a4)]?_0x1b5e9e=_0x300712+(_0x3dbb2c?_0x51db61(0x185):a116_0x294d9f[_0x51db61(0x18a)]('│')+_0x51db61(0x196)):_0x1b5e9e=_0x300712+_0xcf6961['indent'];const _0x5add5d=formatTree(_0x31614d[_0x51db61(0x19e)],_0xcf6961,_0x27979a+0x1,_0x1b5e9e);_0x2ba1a2[_0x51db61(0x190)](_0x5add5d);}}return _0x2ba1a2[_0x51db61(0x1a8)]('\x0a');}export function formatFlatList(_0x2c4872,_0x2e17e6,_0x4cbbe3={}){const _0x92317b=a116_0x5d7e,_0x29032b={...DEFAULT_OPTIONS,..._0x4cbbe3},_0x33177b=[];for(const _0x37f13c of _0x2c4872){_0x33177b[_0x92317b(0x190)]({'name':_0x37f13c[_0x92317b(0x19f)],'icon':_0x29032b[_0x92317b(0x198)]?'📁':'','metadata':undefined});}for(const _0x2756fa of _0x2e17e6){const _0x14f9a3=_0x29032b[_0x92317b(0x18b)]&&_0x2756fa['population']!==undefined?a116_0x294d9f['dim']('\x20('+formatRows(_0x2756fa['population'])+')'):'',_0x205b8f=_0x29032b[_0x92317b(0x191)]&&_0x29032b[_0x92317b(0x1a2)]?_0x29032b[_0x92317b(0x1a2)](_0x2756fa['id']):undefined;_0x33177b[_0x92317b(0x190)]({'name':_0x2756fa['name'],'icon':_0x29032b[_0x92317b(0x198)]?'🎯':'','metadata':_0x14f9a3,'url':_0x205b8f});}_0x33177b['sort']((_0x1622d4,_0x1f1fc9)=>_0x1622d4[_0x92317b(0x19f)][_0x92317b(0x183)](_0x1f1fc9['name']));if(_0x33177b[_0x92317b(0x1a9)]===0x0)return _0x92317b(0x195);const _0x19b5b4=_0x33177b['map'](_0x4dacbb=>{const _0x25b8ac=_0x92317b,_0xe64c32=_0x4dacbb[_0x25b8ac(0x1a6)]?_0x4dacbb[_0x25b8ac(0x1a6)]+'\x20':'',_0x386ab3=_0x4dacbb[_0x25b8ac(0x197)]||'',_0x28cd90=_0x4dacbb[_0x25b8ac(0x18d)]?'\x20'+a116_0x294d9f[_0x25b8ac(0x186)](_0x4dacbb['url']):'';return''+_0xe64c32+_0x4dacbb['name']+_0x386ab3+_0x28cd90;});return _0x19b5b4[_0x92317b(0x1a8)]('\x0a');}function a116_0x5d7e(_0x184a23,_0x3f17e8){_0x184a23=_0x184a23-0x183;const _0x307fe0=a116_0x307f();let _0x5d7e2c=_0x307fe0[_0x184a23];return _0x5d7e2c;}function a116_0x307f(){const _0x44bbbb=['population','📁\x20','🎯\x20','dim','showMetadata','segmentCount','url','2029152qECHQS','1689308HmEPol','push','showUrl','26352090RFlxoI','3386810uGsrDa','273BdhKWK','(empty)','\x20\x20\x20','metadata','showIcons','sort','└──\x20','89372rhbAKW','2ADmwdk','2781774GRRQBH','children','name','folderCount','segment','getSegmentUrl','6RxCcKj','showTreeLines','type','icon','116502zSSxOt','join','length','localeCompare','\x20folder','\x20\x20\x20\x20','cyan'];a116_0x307f=function(){return _0x44bbbb;};return a116_0x307f();}
1
+ (function(_0x1e9d38,_0x2fbd89){const _0x18a367=a116_0x59a7,_0x51719e=_0x1e9d38();while(!![]){try{const _0x46bbda=parseInt(_0x18a367(0x1f1))/0x1*(parseInt(_0x18a367(0x1df))/0x2)+-parseInt(_0x18a367(0x1d2))/0x3*(parseInt(_0x18a367(0x1e5))/0x4)+-parseInt(_0x18a367(0x1eb))/0x5*(-parseInt(_0x18a367(0x1e8))/0x6)+-parseInt(_0x18a367(0x1ea))/0x7+parseInt(_0x18a367(0x1da))/0x8+-parseInt(_0x18a367(0x1d6))/0x9*(parseInt(_0x18a367(0x1f3))/0xa)+-parseInt(_0x18a367(0x1dd))/0xb*(-parseInt(_0x18a367(0x1ec))/0xc);if(_0x46bbda===_0x2fbd89)break;else _0x51719e['push'](_0x51719e['shift']());}catch(_0xfeb3d5){_0x51719e['push'](_0x51719e['shift']());}}}(a116_0x21e9,0x810f7));import{formatRows}from'./formatters.js';import a116_0x1bb8b3 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20','showUrl':![],'getSegmentUrl':undefined};function a116_0x21e9(){const _0x5731e5=['\x20segment','3763165QLrZdQ','25llhXUW','13645284MBHqcm','type','\x20\x20\x20\x20','showIcons','name','146YgQJUV','map','330QiBLnI','length','dim','segment','showUrl','folder','showMetadata','24222iwffls','join','push','└──\x20','173223GGyocq','metadata','sort','showTreeLines','3807136gHlUbs','population','segmentCount','11tasbMN','\x20\x20\x20','1758MVHfaX','icon','\x20folder','folderCount','indent','📁\x20','76cCVmKy','├──\x20','getSegmentUrl','136140DqWoLK'];a116_0x21e9=function(){return _0x5731e5;};return a116_0x21e9();}export function formatTree(_0x5bf19b,_0x260212={},_0x33e1dd=0x0,_0x5dc7ce=''){const _0x250e84=a116_0x59a7,_0x372fd1={...DEFAULT_OPTIONS,..._0x260212},_0x4713f8=[],_0x18f12b=[..._0x5bf19b][_0x250e84(0x1d8)]((_0x2f0029,_0x2dfe1d)=>_0x2f0029[_0x250e84(0x1f0)]['localeCompare'](_0x2dfe1d[_0x250e84(0x1f0)]));for(let _0x1ebb0d=0x0;_0x1ebb0d<_0x18f12b['length'];_0x1ebb0d++){const _0x38e1ca=_0x18f12b[_0x1ebb0d],_0x265ecd=_0x1ebb0d===_0x18f12b['length']-0x1;let _0x21509f='';_0x33e1dd>0x0&&(_0x21509f+=_0x5dc7ce);_0x372fd1[_0x250e84(0x1d9)]&&_0x33e1dd>0x0&&(_0x21509f+=a116_0x1bb8b3[_0x250e84(0x1f5)](_0x265ecd?_0x250e84(0x1d5):_0x250e84(0x1e6)));_0x372fd1[_0x250e84(0x1ef)]&&(_0x21509f+=_0x38e1ca[_0x250e84(0x1ed)]===_0x250e84(0x1d0)?_0x250e84(0x1e4):'🎯\x20');_0x21509f+=_0x38e1ca['name'];if(_0x372fd1['showMetadata']){if(_0x38e1ca[_0x250e84(0x1ed)]===_0x250e84(0x1d0)){const _0x49c9d2=[];_0x38e1ca[_0x250e84(0x1d7)][_0x250e84(0x1dc)]&&_0x49c9d2['push'](_0x38e1ca['metadata'][_0x250e84(0x1dc)]+_0x250e84(0x1e9)+(_0x38e1ca['metadata'][_0x250e84(0x1dc)]!==0x1?'s':'')),_0x38e1ca[_0x250e84(0x1d7)]['folderCount']&&_0x49c9d2[_0x250e84(0x1d4)](_0x38e1ca[_0x250e84(0x1d7)][_0x250e84(0x1e2)]+_0x250e84(0x1e1)+(_0x38e1ca[_0x250e84(0x1d7)]['folderCount']!==0x1?'s':'')),_0x49c9d2[_0x250e84(0x1f4)]>0x0&&(_0x21509f+=a116_0x1bb8b3[_0x250e84(0x1f5)]('\x20('+_0x49c9d2[_0x250e84(0x1d3)](',\x20')+')'));}else _0x38e1ca['type']==='segment'&&_0x38e1ca[_0x250e84(0x1db)]!==undefined&&(_0x21509f+=a116_0x1bb8b3[_0x250e84(0x1f5)]('\x20('+formatRows(_0x38e1ca[_0x250e84(0x1db)])+')'));}_0x372fd1[_0x250e84(0x1f7)]&&_0x372fd1[_0x250e84(0x1e7)]&&_0x38e1ca[_0x250e84(0x1ed)]===_0x250e84(0x1f6)&&(_0x21509f+='\x20'+a116_0x1bb8b3['cyan'](_0x372fd1['getSegmentUrl'](_0x38e1ca['id'])));_0x4713f8[_0x250e84(0x1d4)](_0x21509f);if(_0x38e1ca['children']&&_0x38e1ca['children'][_0x250e84(0x1f4)]>0x0){let _0x5db1df;if(_0x33e1dd===0x0)_0x5db1df='';else _0x372fd1['showTreeLines']?_0x5db1df=_0x5dc7ce+(_0x265ecd?_0x250e84(0x1ee):a116_0x1bb8b3['dim']('│')+_0x250e84(0x1de)):_0x5db1df=_0x5dc7ce+_0x372fd1[_0x250e84(0x1e3)];const _0xf2990b=formatTree(_0x38e1ca['children'],_0x372fd1,_0x33e1dd+0x1,_0x5db1df);_0x4713f8[_0x250e84(0x1d4)](_0xf2990b);}}return _0x4713f8['join']('\x0a');}function a116_0x59a7(_0x12b20c,_0x399fca){_0x12b20c=_0x12b20c-0x1d0;const _0x21e9c7=a116_0x21e9();let _0x59a711=_0x21e9c7[_0x12b20c];return _0x59a711;}export function formatFlatList(_0x2307e7,_0x1af6a8,_0x1d587d={}){const _0x5201d7=a116_0x59a7,_0x27945c={...DEFAULT_OPTIONS,..._0x1d587d},_0x4d3ab4=[];for(const _0x27d379 of _0x2307e7){_0x4d3ab4[_0x5201d7(0x1d4)]({'name':_0x27d379['name'],'icon':_0x27945c[_0x5201d7(0x1ef)]?'📁':'','metadata':undefined});}for(const _0xe6e9c1 of _0x1af6a8){const _0x5b9718=_0x27945c[_0x5201d7(0x1d1)]&&_0xe6e9c1[_0x5201d7(0x1db)]!==undefined?a116_0x1bb8b3[_0x5201d7(0x1f5)]('\x20('+formatRows(_0xe6e9c1[_0x5201d7(0x1db)])+')'):'',_0x54f7bf=_0x27945c[_0x5201d7(0x1f7)]&&_0x27945c['getSegmentUrl']?_0x27945c[_0x5201d7(0x1e7)](_0xe6e9c1['id']):undefined;_0x4d3ab4[_0x5201d7(0x1d4)]({'name':_0xe6e9c1[_0x5201d7(0x1f0)],'icon':_0x27945c[_0x5201d7(0x1ef)]?'🎯':'','metadata':_0x5b9718,'url':_0x54f7bf});}_0x4d3ab4[_0x5201d7(0x1d8)]((_0x384091,_0x2de1f3)=>_0x384091[_0x5201d7(0x1f0)]['localeCompare'](_0x2de1f3[_0x5201d7(0x1f0)]));if(_0x4d3ab4[_0x5201d7(0x1f4)]===0x0)return'(empty)';const _0x5a78cc=_0x4d3ab4[_0x5201d7(0x1f2)](_0xab3c6e=>{const _0x170a96=_0x5201d7,_0x4af7ac=_0xab3c6e[_0x170a96(0x1e0)]?_0xab3c6e[_0x170a96(0x1e0)]+'\x20':'',_0x87d4a7=_0xab3c6e[_0x170a96(0x1d7)]||'',_0x30369=_0xab3c6e['url']?'\x20'+a116_0x1bb8b3['cyan'](_0xab3c6e['url']):'';return''+_0x4af7ac+_0xab3c6e['name']+_0x87d4a7+_0x30369;});return _0x5a78cc['join']('\x0a');}
@@ -1 +1 @@
1
- const a117_0x41b971=a117_0x4c82;(function(_0x1cca7e,_0x4b48d6){const _0x2e1685=a117_0x4c82,_0xca14=_0x1cca7e();while(!![]){try{const _0x4ce917=parseInt(_0x2e1685(0x132))/0x1*(parseInt(_0x2e1685(0x140))/0x2)+parseInt(_0x2e1685(0x123))/0x3+-parseInt(_0x2e1685(0x144))/0x4+-parseInt(_0x2e1685(0x143))/0x5*(-parseInt(_0x2e1685(0x136))/0x6)+-parseInt(_0x2e1685(0x135))/0x7+-parseInt(_0x2e1685(0x12e))/0x8+-parseInt(_0x2e1685(0x12f))/0x9;if(_0x4ce917===_0x4b48d6)break;else _0xca14['push'](_0xca14['shift']());}catch(_0xef6967){_0xca14['push'](_0xca14['shift']());}}}(a117_0xb0f8,0xb30cc));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a117_0x16062f from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a117_0x41b971(0x129),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x100449=getCacheDir();return join(_0x100449,'last_version_check');}function a117_0x4c82(_0x2aae28,_0x522dfc){_0x2aae28=_0x2aae28-0x123;const _0xb0f87=a117_0xb0f8();let _0x4c82cf=_0xb0f87[_0x2aae28];return _0x4c82cf;}function readCache(){const _0x50c03c=a117_0x41b971;try{const _0x382b0d=getCacheFilePath(),_0x498683=readFileSync(_0x382b0d,_0x50c03c(0x13c));return JSON['parse'](_0x498683);}catch{return null;}}function a117_0xb0f8(){const _0x48820d=['utf-8','yellow','dim','Run:','156242wTPEBK','isTTY','currentVersion','6205UYjyfa','158376BWOOqY','now','1484907Lppmys','env','green','statusCode','latestVersion','\x0aUpdate\x20available:\x20','https://registry.npmjs.org/@treasuredata/tdx/latest','cyan','write','NO_COLOR','\x0aRun:\x20','4624448zlnESR','2323845wprHAD','end','version','15CltMQb','destroy','npm\x20install\x20-g\x20@treasuredata/tdx@latest','5606300NKOPRk','3594WFdIdD','stringify','stderr','Update\x20available:','HTTP\x20','gray'];a117_0xb0f8=function(){return _0x48820d;};return a117_0xb0f8();}function writeCache(_0x3f627c){const _0x4efd21=a117_0x41b971;try{const _0x1b8659=getCacheDir();mkdirSync(_0x1b8659,{'recursive':!![]});const _0x462b9d={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x3f627c},_0x2103a2=getCacheFilePath();writeFileSync(_0x2103a2,JSON[_0x4efd21(0x137)](_0x462b9d,null,0x2),_0x4efd21(0x13c));}catch{}}function isCacheValid(_0x5d172c){const _0x117cfc=a117_0x41b971;if(!_0x5d172c)return![];const _0x294aff=new Date(_0x5d172c['lastCheck'])['getTime'](),_0x243027=Date[_0x117cfc(0x145)]();return _0x243027-_0x294aff<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x19e34a,_0x58c87d)=>{const _0x221fce=get(NPM_REGISTRY_URL,_0x465c00=>{const _0x18f133=a117_0x4c82;if(_0x465c00['statusCode']!==0xc8){clearTimeout(_0x23960e),_0x58c87d(new Error(_0x18f133(0x13a)+_0x465c00[_0x18f133(0x126)]));return;}let _0x3c82c3='';_0x465c00['on']('data',_0xa87bfd=>{_0x3c82c3+=_0xa87bfd;}),_0x465c00['on'](_0x18f133(0x130),()=>{const _0x40628c=_0x18f133;clearTimeout(_0x23960e);try{const _0x598dcc=JSON['parse'](_0x3c82c3);if(!valid(_0x598dcc[_0x40628c(0x131)])){_0x58c87d(new Error('Invalid\x20version\x20format'));return;}_0x19e34a(_0x598dcc['version']);}catch(_0x2194ee){_0x58c87d(_0x2194ee);}});})['on']('error',_0x450e40=>{clearTimeout(_0x23960e),_0x58c87d(_0x450e40);}),_0x23960e=setTimeout(()=>{const _0x1fcf3b=a117_0x4c82;_0x221fce[_0x1fcf3b(0x133)](),_0x58c87d(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x356d83){const _0x39e5b4=a117_0x41b971;try{const _0x271df2=readCache();if(isCacheValid(_0x271df2)){const _0x1483f2=gt(_0x271df2['latestVersion'],_0x356d83);return{'updateAvailable':_0x1483f2,'currentVersion':_0x356d83,'latestVersion':_0x271df2[_0x39e5b4(0x127)]};}const _0x41ce25=await fetchLatestVersion();writeCache(_0x41ce25);const _0x38823b=gt(_0x41ce25,_0x356d83);return{'updateAvailable':_0x38823b,'currentVersion':_0x356d83,'latestVersion':_0x41ce25};}catch{return null;}}export function displayUpdateNotification(_0x16c921){const _0x57cf01=a117_0x41b971;if(!_0x16c921['updateAvailable'])return;const _0x452380=process['stderr'][_0x57cf01(0x141)]&&!process[_0x57cf01(0x124)][_0x57cf01(0x12c)],_0x4bd3aa=_0x452380?a117_0x16062f[_0x57cf01(0x13b)]('→'):'→',_0x419919=_0x452380?a117_0x16062f['dim'](_0x16c921[_0x57cf01(0x142)]):_0x16c921['currentVersion'],_0x30b7bf=_0x452380?a117_0x16062f[_0x57cf01(0x125)](_0x16c921[_0x57cf01(0x127)]):_0x16c921[_0x57cf01(0x127)],_0x4502be=_0x452380?a117_0x16062f[_0x57cf01(0x12a)](_0x57cf01(0x134)):_0x57cf01(0x134),_0x3415fe=_0x452380?'\x0a'+a117_0x16062f[_0x57cf01(0x13d)](_0x57cf01(0x139))+'\x20'+_0x419919+'\x20'+_0x4bd3aa+'\x20'+_0x30b7bf+'\x0a'+a117_0x16062f[_0x57cf01(0x13e)](_0x57cf01(0x13f))+'\x20'+_0x4502be+'\x0a':_0x57cf01(0x128)+_0x419919+'\x20'+_0x4bd3aa+'\x20'+_0x30b7bf+_0x57cf01(0x12d)+_0x4502be+'\x0a';process[_0x57cf01(0x138)][_0x57cf01(0x12b)](_0x3415fe);}
1
+ const a117_0x121096=a117_0x440b;(function(_0x2b596d,_0x2b548a){const _0x5a316e=a117_0x440b,_0x294a47=_0x2b596d();while(!![]){try{const _0x430b51=parseInt(_0x5a316e(0x1a6))/0x1+-parseInt(_0x5a316e(0x199))/0x2+-parseInt(_0x5a316e(0x192))/0x3+-parseInt(_0x5a316e(0x186))/0x4+parseInt(_0x5a316e(0x187))/0x5+-parseInt(_0x5a316e(0x191))/0x6*(-parseInt(_0x5a316e(0x1a7))/0x7)+parseInt(_0x5a316e(0x184))/0x8;if(_0x430b51===_0x2b548a)break;else _0x294a47['push'](_0x294a47['shift']());}catch(_0xf0b72b){_0x294a47['push'](_0x294a47['shift']());}}}(a117_0x20ac,0xa13ff));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a117_0x20ac(){const _0x4b8fe7=['848296aLyyAb','isTTY','595252tEzDkH','2974420cxITJp','utf-8','green','toISOString','currentVersion','destroy','stderr','npm\x20install\x20-g\x20@treasuredata/tdx@latest','env','data','3138bTrySW','521805qCYJmF','getTime','statusCode','yellow','\x0aUpdate\x20available:\x20','Run:','HTTP\x20','1648948lErjMG','error','Request\x20timeout','stringify','Invalid\x20version\x20format','now','version','write','gray','latestVersion','NO_COLOR','https://registry.npmjs.org/@treasuredata/tdx/latest','\x0aRun:\x20','628235caQTuZ','6405pjcQQk','lastCheck','last_version_check'];a117_0x20ac=function(){return _0x4b8fe7;};return a117_0x20ac();}import{gt,valid}from'semver';import a117_0x486b4f from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a117_0x121096(0x1a4),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x7ad6f9=a117_0x121096,_0x3809e4=getCacheDir();return join(_0x3809e4,_0x7ad6f9(0x1a9));}function readCache(){const _0x53c009=a117_0x121096;try{const _0x236b2d=getCacheFilePath(),_0x39b877=readFileSync(_0x236b2d,_0x53c009(0x188));return JSON['parse'](_0x39b877);}catch{return null;}}function writeCache(_0x1714bf){const _0x2048db=a117_0x121096;try{const _0x148578=getCacheDir();mkdirSync(_0x148578,{'recursive':!![]});const _0xde74ff={'lastCheck':new Date()[_0x2048db(0x18a)](),'latestVersion':_0x1714bf},_0x45c79f=getCacheFilePath();writeFileSync(_0x45c79f,JSON[_0x2048db(0x19c)](_0xde74ff,null,0x2),_0x2048db(0x188));}catch{}}function isCacheValid(_0x3424e5){const _0x334c65=a117_0x121096;if(!_0x3424e5)return![];const _0x58356b=new Date(_0x3424e5[_0x334c65(0x1a8)])[_0x334c65(0x193)](),_0xd71576=Date[_0x334c65(0x19e)]();return _0xd71576-_0x58356b<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x40014d,_0x327642)=>{const _0x5c69da=a117_0x440b,_0x5df290=get(NPM_REGISTRY_URL,_0x49e24f=>{const _0x5d267f=a117_0x440b;if(_0x49e24f[_0x5d267f(0x194)]!==0xc8){clearTimeout(_0x32138f),_0x327642(new Error(_0x5d267f(0x198)+_0x49e24f['statusCode']));return;}let _0x1045ea='';_0x49e24f['on'](_0x5d267f(0x190),_0x53a6b1=>{_0x1045ea+=_0x53a6b1;}),_0x49e24f['on']('end',()=>{const _0x51af28=_0x5d267f;clearTimeout(_0x32138f);try{const _0x1822cc=JSON['parse'](_0x1045ea);if(!valid(_0x1822cc['version'])){_0x327642(new Error(_0x51af28(0x19d)));return;}_0x40014d(_0x1822cc[_0x51af28(0x19f)]);}catch(_0x17a0f7){_0x327642(_0x17a0f7);}});})['on'](_0x5c69da(0x19a),_0x42dd1c=>{clearTimeout(_0x32138f),_0x327642(_0x42dd1c);}),_0x32138f=setTimeout(()=>{const _0x5059c6=_0x5c69da;_0x5df290[_0x5059c6(0x18c)](),_0x327642(new Error(_0x5059c6(0x19b)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x277d25){const _0x56e5d9=a117_0x121096;try{const _0x3f009a=readCache();if(isCacheValid(_0x3f009a)){const _0x64077a=gt(_0x3f009a[_0x56e5d9(0x1a2)],_0x277d25);return{'updateAvailable':_0x64077a,'currentVersion':_0x277d25,'latestVersion':_0x3f009a[_0x56e5d9(0x1a2)]};}const _0x330f79=await fetchLatestVersion();writeCache(_0x330f79);const _0xd0975b=gt(_0x330f79,_0x277d25);return{'updateAvailable':_0xd0975b,'currentVersion':_0x277d25,'latestVersion':_0x330f79};}catch{return null;}}function a117_0x440b(_0x23c5f0,_0x69ca56){_0x23c5f0=_0x23c5f0-0x184;const _0x20acdf=a117_0x20ac();let _0x440bf5=_0x20acdf[_0x23c5f0];return _0x440bf5;}export function displayUpdateNotification(_0x1909f9){const _0x19071f=a117_0x121096;if(!_0x1909f9['updateAvailable'])return;const _0x557229=process[_0x19071f(0x18d)][_0x19071f(0x185)]&&!process[_0x19071f(0x18f)][_0x19071f(0x1a3)],_0x5ddb16=_0x557229?a117_0x486b4f[_0x19071f(0x1a1)]('→'):'→',_0x814954=_0x557229?a117_0x486b4f['dim'](_0x1909f9[_0x19071f(0x18b)]):_0x1909f9[_0x19071f(0x18b)],_0xb5e34e=_0x557229?a117_0x486b4f[_0x19071f(0x189)](_0x1909f9[_0x19071f(0x1a2)]):_0x1909f9[_0x19071f(0x1a2)],_0x389e5e=_0x557229?a117_0x486b4f['cyan']('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x19071f(0x18e),_0x1a273c=_0x557229?'\x0a'+a117_0x486b4f[_0x19071f(0x195)]('Update\x20available:')+'\x20'+_0x814954+'\x20'+_0x5ddb16+'\x20'+_0xb5e34e+'\x0a'+a117_0x486b4f['dim'](_0x19071f(0x197))+'\x20'+_0x389e5e+'\x0a':_0x19071f(0x196)+_0x814954+'\x20'+_0x5ddb16+'\x20'+_0xb5e34e+_0x19071f(0x1a5)+_0x389e5e+'\x0a';process[_0x19071f(0x18d)][_0x19071f(0x1a0)](_0x1a273c);}
@@ -1 +1 @@
1
- (function(_0x107f9b,_0xf3434c){const _0x2499c9=a118_0x29ab,_0x4a5b4b=_0x107f9b();while(!![]){try{const _0xa73d3b=-parseInt(_0x2499c9(0xa4))/0x1+parseInt(_0x2499c9(0xae))/0x2*(-parseInt(_0x2499c9(0xaf))/0x3)+parseInt(_0x2499c9(0xac))/0x4*(parseInt(_0x2499c9(0xa6))/0x5)+-parseInt(_0x2499c9(0xa7))/0x6+-parseInt(_0x2499c9(0xad))/0x7*(-parseInt(_0x2499c9(0xa3))/0x8)+-parseInt(_0x2499c9(0xab))/0x9*(parseInt(_0x2499c9(0xa5))/0xa)+parseInt(_0x2499c9(0xa9))/0xb*(parseInt(_0x2499c9(0xa8))/0xc);if(_0xa73d3b===_0xf3434c)break;else _0x4a5b4b['push'](_0x4a5b4b['shift']());}catch(_0x3a90be){_0x4a5b4b['push'](_0x4a5b4b['shift']());}}}(a118_0x451f,0xae8a0));export const WORKFLOW_FILE_EXTENSION='.dig';function a118_0x29ab(_0x4ac06b,_0x463887){_0x4ac06b=_0x4ac06b-0xa3;const _0x451ff3=a118_0x451f();let _0x29ab8a=_0x451ff3[_0x4ac06b];return _0x29ab8a;}function a118_0x451f(){const _0x40e03a=['922HveFvL','771VgMqoq','45208NhsLwO','377719iRGnaO','805520CDffds','492110hrKiiF','8199348GkHoly','9868956JvGYoJ','22nyWgic','.digdag','18Bloebh','44HypZus','14KOYAAU'];a118_0x451f=function(){return _0x40e03a;};return a118_0x451f();}export function shouldIncludeInArchive(_0x44e0c5){const _0x394ef5=a118_0x29ab;if(_0x44e0c5===_0x394ef5(0xaa))return!![];if(_0x44e0c5['startsWith']('.'))return![];return!![];}
1
+ const a118_0xb69b3b=a118_0x1bdc;(function(_0xcf72c3,_0x186851){const _0x68a644=a118_0x1bdc,_0x57459b=_0xcf72c3();while(!![]){try{const _0x97b277=-parseInt(_0x68a644(0x8a))/0x1+-parseInt(_0x68a644(0x8d))/0x2+parseInt(_0x68a644(0x93))/0x3*(parseInt(_0x68a644(0x8e))/0x4)+parseInt(_0x68a644(0x89))/0x5+-parseInt(_0x68a644(0x87))/0x6*(parseInt(_0x68a644(0x91))/0x7)+parseInt(_0x68a644(0x94))/0x8*(parseInt(_0x68a644(0x8b))/0x9)+parseInt(_0x68a644(0x90))/0xa*(parseInt(_0x68a644(0x88))/0xb);if(_0x97b277===_0x186851)break;else _0x57459b['push'](_0x57459b['shift']());}catch(_0x2027f5){_0x57459b['push'](_0x57459b['shift']());}}}(a118_0x41d5,0x397e9));function a118_0x41d5(){const _0x3beae3=['150gzEzxS','2750293RyrhQY','startsWith','3BWMAXG','8NvORwg','6VtBoku','119086uNPzLP','2253940TDsxmk','143890IVFuMy','1683693XMtHkG','.dig','878670MsuvsY','1645464hSAQMO','.digdag'];a118_0x41d5=function(){return _0x3beae3;};return a118_0x41d5();}export const WORKFLOW_FILE_EXTENSION=a118_0xb69b3b(0x8c);function a118_0x1bdc(_0x195d7d,_0x3e8905){_0x195d7d=_0x195d7d-0x87;const _0x41d5f3=a118_0x41d5();let _0x1bdc67=_0x41d5f3[_0x195d7d];return _0x1bdc67;}export function shouldIncludeInArchive(_0x1c8848){const _0x54d865=a118_0xb69b3b;if(_0x1c8848===_0x54d865(0x8f))return!![];if(_0x1c8848[_0x54d865(0x92)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {