@treasuredata/tdx 0.9.0 β†’ 0.9.1

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 (119) 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/agent-command.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/tables.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/server.js +1 -1
  63. package/dist/proxy/session-cache.js +1 -1
  64. package/dist/sdk/agent/agent-yaml.d.ts +1 -1
  65. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  66. package/dist/sdk/agent/agent-yaml.js +1 -1
  67. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  68. package/dist/sdk/api.js +1 -1
  69. package/dist/sdk/connection.js +1 -1
  70. package/dist/sdk/engage.js +1 -1
  71. package/dist/sdk/errors.js +1 -1
  72. package/dist/sdk/index.js +1 -1
  73. package/dist/sdk/job.js +1 -1
  74. package/dist/sdk/journey.js +1 -1
  75. package/dist/sdk/llm.js +1 -1
  76. package/dist/sdk/query.js +1 -1
  77. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  78. package/dist/sdk/segment/journey-yaml.js +1 -1
  79. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  80. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  81. package/dist/sdk/segment.js +1 -1
  82. package/dist/sdk/user.js +1 -1
  83. package/dist/sdk/workflow.js +1 -1
  84. package/dist/types/endpoints.js +1 -1
  85. package/dist/types/index.js +1 -1
  86. package/dist/utils/agent-config.js +1 -1
  87. package/dist/utils/agent-ref-parser.js +1 -1
  88. package/dist/utils/async.js +1 -1
  89. package/dist/utils/chat-cache.js +1 -1
  90. package/dist/utils/colors.js +1 -1
  91. package/dist/utils/command-output.js +1 -1
  92. package/dist/utils/constants.js +1 -1
  93. package/dist/utils/diff.js +1 -1
  94. package/dist/utils/fields-display.js +1 -1
  95. package/dist/utils/file-permissions.js +1 -1
  96. package/dist/utils/format-detector.js +1 -1
  97. package/dist/utils/formatters.js +1 -1
  98. package/dist/utils/journey-utils.js +1 -1
  99. package/dist/utils/json-loader.js +1 -1
  100. package/dist/utils/llm-backup-utils.js +1 -1
  101. package/dist/utils/model-aliases.js +1 -1
  102. package/dist/utils/model-factors.js +1 -1
  103. package/dist/utils/option-validation.js +1 -1
  104. package/dist/utils/port.js +1 -1
  105. package/dist/utils/process.js +1 -1
  106. package/dist/utils/prompt.js +1 -1
  107. package/dist/utils/segment-path-parser.js +1 -1
  108. package/dist/utils/segment-ref-parser.js +1 -1
  109. package/dist/utils/spinner.js +1 -1
  110. package/dist/utils/sql-parser.js +1 -1
  111. package/dist/utils/sse-parser.js +1 -1
  112. package/dist/utils/string-utils.js +1 -1
  113. package/dist/utils/table-ref-parser.js +1 -1
  114. package/dist/utils/tdx-config.js +1 -1
  115. package/dist/utils/tdx-logger.js +1 -1
  116. package/dist/utils/tree-formatter.js +1 -1
  117. package/dist/utils/version-check.js +1 -1
  118. package/dist/utils/workflow-utils.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4780d6,_0x4d9ef3){const _0x21ea6e=a111_0xe529,_0x3b5c69=_0x4780d6();while(!![]){try{const _0x5eb230=parseInt(_0x21ea6e(0xc5))/0x1+parseInt(_0x21ea6e(0xb8))/0x2+-parseInt(_0x21ea6e(0xac))/0x3*(parseInt(_0x21ea6e(0xc3))/0x4)+-parseInt(_0x21ea6e(0xb2))/0x5+parseInt(_0x21ea6e(0xbf))/0x6*(parseInt(_0x21ea6e(0xc9))/0x7)+-parseInt(_0x21ea6e(0xb3))/0x8+parseInt(_0x21ea6e(0xcb))/0x9;if(_0x5eb230===_0x4d9ef3)break;else _0x3b5c69['push'](_0x3b5c69['shift']());}catch(_0x33c2f4){_0x3b5c69['push'](_0x3b5c69['shift']());}}}(a111_0x59ca,0xd8011));import{existsSync,readFileSync}from'fs';import a111_0xc3a9ca from'path';import{parse as a111_0x29acde}from'yaml';export function parsePath(_0x3e7493){const _0xa4a37c=a111_0xe529;if(!_0x3e7493||_0x3e7493[_0xa4a37c(0xce)]()==='')throw new Error(_0xa4a37c(0xcf));const _0x27f202=_0x3e7493[_0xa4a37c(0xce)]();if(_0x27f202==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3e7493};const _0x314862=_0x27f202[_0xa4a37c(0xb1)]('/')?_0x27f202[_0xa4a37c(0xb4)](0x1):_0x27f202,_0x232bf7=_0x314862[_0xa4a37c(0xb0)]('/')['filter'](_0x4f295b=>_0x4f295b!=='');if(_0x232bf7[_0xa4a37c(0xb6)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x2e8955=_0x27f202[_0xa4a37c(0xb1)]('/')||!isRelativePathSegment(_0x232bf7[0x0]);for(const _0x2d2646 of _0x232bf7){validatePathSegment(_0x2d2646);}return{'segments':_0x232bf7,'isAbsolute':_0x2e8955,'raw':_0x3e7493};}function a111_0xe529(_0x3a2442,_0x3cb41a){_0x3a2442=_0x3a2442-0xaa;const _0x59ca10=a111_0x59ca();let _0xe5294f=_0x59ca10[_0x3a2442];return _0xe5294f;}function isRelativePathSegment(_0x1913ed){return _0x1913ed==='.'||_0x1913ed==='..';}function validatePathSegment(_0x89d67e){const _0x5834dc=a111_0xe529;if(_0x89d67e==='')throw new Error(_0x5834dc(0xca));if(_0x89d67e==='.'||_0x89d67e==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x89d67e))throw new Error(_0x5834dc(0xaf)+_0x89d67e);if(_0x89d67e!==_0x89d67e['trim']()){}}export function validatePath(_0x2cd7f7){const _0x4edc76=a111_0xe529;if(_0x2cd7f7[_0x4edc76(0xba)][_0x4edc76(0xb6)]===0x0&&!_0x2cd7f7[_0x4edc76(0xc0)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x2cd7f7['isAbsolute']){if(_0x2cd7f7['segments'][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x56a4ee=0x0;for(const _0x2f4c48 of _0x2cd7f7[_0x4edc76(0xba)]){if(_0x2f4c48==='..'){if(_0x56a4ee===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x56a4ee--;}else _0x2f4c48!=='.'&&_0x56a4ee++;}}}export function joinPaths(_0x4ce535,_0x1bd7e5){const _0x260abc=a111_0xe529;if(!_0x4ce535||_0x4ce535==='/')return _0x1bd7e5;if(!_0x1bd7e5||_0x1bd7e5==='.')return _0x4ce535;if(_0x1bd7e5[_0x260abc(0xb1)]('/'))return _0x1bd7e5;const _0x56e81a=parsePath(_0x4ce535),_0x2669ef=parsePath(_0x1bd7e5),_0x559836=[..._0x56e81a[_0x260abc(0xba)]];for(const _0x27ee2d of _0x2669ef[_0x260abc(0xba)]){if(_0x27ee2d==='.')continue;else{if(_0x27ee2d==='..'){if(_0x559836[_0x260abc(0xb6)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x559836[_0x260abc(0xcd)]();}else _0x559836['push'](_0x27ee2d);}}const _0x55a380=_0x559836['join']('/');return _0x56e81a[_0x260abc(0xbd)][_0x260abc(0xb1)]('/')?'/'+_0x55a380:_0x55a380;}export function normalizePath(_0x3dbe7a){const _0x35cb02=a111_0xe529,_0x113f5f=parsePath(_0x3dbe7a),_0x7d47e1=[];for(const _0x38d1d7 of _0x113f5f['segments']){if(_0x38d1d7==='.')continue;else{if(_0x38d1d7==='..'){if(_0x7d47e1['length']===0x0){if(_0x113f5f[_0x35cb02(0xc0)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x7d47e1[_0x35cb02(0xab)]('..');}else _0x7d47e1[_0x7d47e1[_0x35cb02(0xb6)]-0x1]==='..'?_0x7d47e1[_0x35cb02(0xab)]('..'):_0x7d47e1[_0x35cb02(0xcd)]();}else _0x7d47e1[_0x35cb02(0xab)](_0x38d1d7);}}if(_0x7d47e1['length']===0x0)return _0x113f5f['isAbsolute']?'/':'.';const _0x1db8ce=_0x7d47e1[_0x35cb02(0xcc)]('/');return _0x113f5f[_0x35cb02(0xbd)]['startsWith']('/')?'/'+_0x1db8ce:_0x1db8ce;}export function getParentPath(_0x4c5d34){const _0x6fb9ba=a111_0xe529,_0x50449d=parsePath(_0x4c5d34);if(_0x50449d['segments'][_0x6fb9ba(0xb6)]<=0x1)return'/';const _0x256c19=_0x50449d['segments']['slice'](0x0,-0x1)[_0x6fb9ba(0xcc)]('/');return _0x50449d[_0x6fb9ba(0xbd)][_0x6fb9ba(0xb1)]('/')?'/'+_0x256c19:_0x256c19;}function a111_0x59ca(){const _0x1ab4eb=['isAbsolute','dirname','utf-8','16340QFPADU','tdx.json','1142150fvoRup','type','name','Cannot\x20split\x20empty\x20path','2247YNfGml','Path\x20segment\x20cannot\x20be\x20empty','11430621LGSRZW','join','pop','trim','Path\x20cannot\x20be\x20empty','parse','relative','journey','push','645ACqzfW','endsWith','replace','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','split','startsWith','8587935CYhQPj','7646712KHkNBB','substring','No\x20tdx.json\x20found\x20for\x20file:\x20','length','slice','3018060pcxNYo','root','segments','.yaml','parent_segment','raw','resolve','9630xxIIzT'];a111_0x59ca=function(){return _0x1ab4eb;};return a111_0x59ca();}export function getBaseName(_0x12fbf9){const _0x47ddbc=a111_0xe529,_0x11126a=parsePath(_0x12fbf9);return _0x11126a['segments'][_0x11126a['segments'][_0x47ddbc(0xb6)]-0x1]||'';}export function isChildPath(_0x1c9dcb,_0x44302e){const _0x1ee7fe=a111_0xe529,_0x9cbc91=parsePath(_0x1c9dcb),_0x59a5ae=parsePath(_0x44302e);if(_0x9cbc91[_0x1ee7fe(0xba)]['length']<=_0x59a5ae[_0x1ee7fe(0xba)]['length'])return![];for(let _0x4f22e3=0x0;_0x4f22e3<_0x59a5ae[_0x1ee7fe(0xba)]['length'];_0x4f22e3++){if(_0x9cbc91[_0x1ee7fe(0xba)][_0x4f22e3]!==_0x59a5ae['segments'][_0x4f22e3])return![];}return!![];}export function splitPath(_0x3f7abb){const _0x29ebac=a111_0xe529,_0x1edcb2=parsePath(_0x3f7abb);if(_0x1edcb2[_0x29ebac(0xba)][_0x29ebac(0xb6)]===0x0)throw new Error(_0x29ebac(0xc8));if(_0x1edcb2[_0x29ebac(0xba)][_0x29ebac(0xb6)]===0x1)return{'parent':_0x1edcb2[_0x29ebac(0xba)][0x0]};return{'parent':_0x1edcb2[_0x29ebac(0xba)][0x0],'child':_0x1edcb2[_0x29ebac(0xba)][_0x29ebac(0xb7)](0x1)[_0x29ebac(0xcc)]('/')};}export function isYamlFilePath(_0x47d23f){const _0x2c1c33=a111_0xe529;return _0x47d23f[_0x2c1c33(0xad)]('.yml')||_0x47d23f[_0x2c1c33(0xad)](_0x2c1c33(0xbb));}export function resolveYamlFilePath(_0xd63564){const _0x4918c4=a111_0xe529,_0x5f473f=a111_0xc3a9ca[_0x4918c4(0xbe)](_0xd63564);if(!existsSync(_0x5f473f))throw new Error('File\x20not\x20found:\x20'+_0xd63564);let _0x3daf25=a111_0xc3a9ca['dirname'](_0x5f473f),_0x450d0b=null,_0x2c0f90=null;const _0x52f873=a111_0xc3a9ca[_0x4918c4(0xd0)](_0x3daf25)[_0x4918c4(0xb9)];while(_0x3daf25!==_0x52f873){const _0x207f33=a111_0xc3a9ca[_0x4918c4(0xcc)](_0x3daf25,_0x4918c4(0xc4));if(existsSync(_0x207f33)){_0x450d0b=_0x207f33,_0x2c0f90=_0x3daf25;break;}_0x3daf25=a111_0xc3a9ca['dirname'](_0x3daf25);}if(!_0x450d0b||!_0x2c0f90)throw new Error(_0x4918c4(0xb5)+_0xd63564);const _0xd840c3=readFileSync(_0x450d0b,_0x4918c4(0xc2)),_0xf173a5=JSON[_0x4918c4(0xd0)](_0xd840c3),_0x17eddf=_0xf173a5[_0x4918c4(0xbc)];if(!_0x17eddf)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x1d49ed=readFileSync(_0x5f473f,_0x4918c4(0xc2)),_0x204fd2=a111_0x29acde(_0x1d49ed),_0x46e2ec=_0x204fd2[_0x4918c4(0xc7)];if(!_0x46e2ec)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0xd63564);const _0x14870e=_0x204fd2[_0x4918c4(0xc6)]===_0x4918c4(0xaa)?'journey':'segment',_0x3a5ac5=a111_0xc3a9ca[_0x4918c4(0xd1)](_0x2c0f90,_0x5f473f),_0x14ffec=a111_0xc3a9ca[_0x4918c4(0xc1)](_0x3a5ac5),_0x347caf=_0x14ffec==='.'?'':_0x14ffec[_0x4918c4(0xae)](/\\/g,'/'),_0x543f88=_0x347caf?_0x17eddf+'/'+_0x347caf+'/'+_0x46e2ec:_0x17eddf+'/'+_0x46e2ec;return{'parentSegment':_0x17eddf,'segmentName':_0x46e2ec,'folderPath':_0x347caf,'fullPath':_0x543f88,'resourceType':_0x14870e};}
1
+ (function(_0x16b0d4,_0x10c95e){const _0x1655fc=a111_0x3900,_0x4d5907=_0x16b0d4();while(!![]){try{const _0x340f9d=parseInt(_0x1655fc(0xf0))/0x1+-parseInt(_0x1655fc(0x118))/0x2*(parseInt(_0x1655fc(0x113))/0x3)+-parseInt(_0x1655fc(0xf7))/0x4+parseInt(_0x1655fc(0xfa))/0x5*(parseInt(_0x1655fc(0xf6))/0x6)+parseInt(_0x1655fc(0x106))/0x7*(parseInt(_0x1655fc(0xf1))/0x8)+-parseInt(_0x1655fc(0x10b))/0x9*(-parseInt(_0x1655fc(0xf8))/0xa)+parseInt(_0x1655fc(0x100))/0xb;if(_0x340f9d===_0x10c95e)break;else _0x4d5907['push'](_0x4d5907['shift']());}catch(_0xd3b8f6){_0x4d5907['push'](_0x4d5907['shift']());}}}(a111_0x12ea,0xae117));import{existsSync,readFileSync}from'fs';import a111_0x5a2d0e from'path';import{parse as a111_0x2b20bf}from'yaml';export function parsePath(_0x167858){const _0x243dc0=a111_0x3900;if(!_0x167858||_0x167858[_0x243dc0(0x103)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x309723=_0x167858[_0x243dc0(0x103)]();if(_0x309723==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x167858};const _0x23d200=_0x309723[_0x243dc0(0x101)]('/')?_0x309723['substring'](0x1):_0x309723,_0x217d9c=_0x23d200[_0x243dc0(0xfd)]('/')[_0x243dc0(0xfb)](_0x4ce9f5=>_0x4ce9f5!=='');if(_0x217d9c[_0x243dc0(0x110)]===0x0)throw new Error(_0x243dc0(0xf9));const _0x5d3781=_0x309723['startsWith']('/')||!isRelativePathSegment(_0x217d9c[0x0]);for(const _0x3fa5ec of _0x217d9c){validatePathSegment(_0x3fa5ec);}return{'segments':_0x217d9c,'isAbsolute':_0x5d3781,'raw':_0x167858};}function isRelativePathSegment(_0xa9f963){return _0xa9f963==='.'||_0xa9f963==='..';}function validatePathSegment(_0x4f633b){const _0x1bacad=a111_0x3900;if(_0x4f633b==='')throw new Error(_0x1bacad(0x102));if(_0x4f633b==='.'||_0x4f633b==='..')return;if(/[\x00-\x1F\x7F]/[_0x1bacad(0xfc)](_0x4f633b))throw new Error(_0x1bacad(0xeb)+_0x4f633b);if(_0x4f633b!==_0x4f633b[_0x1bacad(0x103)]()){}}function a111_0x3900(_0x1dfed4,_0x4038c6){_0x1dfed4=_0x1dfed4-0xeb;const _0x12ea67=a111_0x12ea();let _0x390099=_0x12ea67[_0x1dfed4];return _0x390099;}export function validatePath(_0x477f5c){const _0x493f02=a111_0x3900;if(_0x477f5c['segments'][_0x493f02(0x110)]===0x0&&!_0x477f5c[_0x493f02(0x10e)])throw new Error(_0x493f02(0xef));if(_0x477f5c[_0x493f02(0x10e)]){if(_0x477f5c[_0x493f02(0x114)][0x0]==='..')throw new Error(_0x493f02(0x111));let _0x1a4be0=0x0;for(const _0x5deddf of _0x477f5c[_0x493f02(0x114)]){if(_0x5deddf==='..'){if(_0x1a4be0===0x0)throw new Error(_0x493f02(0x117));_0x1a4be0--;}else _0x5deddf!=='.'&&_0x1a4be0++;}}}export function joinPaths(_0x4ce4a4,_0x501148){const _0x5f3494=a111_0x3900;if(!_0x4ce4a4||_0x4ce4a4==='/')return _0x501148;if(!_0x501148||_0x501148==='.')return _0x4ce4a4;if(_0x501148[_0x5f3494(0x101)]('/'))return _0x501148;const _0xfd6d28=parsePath(_0x4ce4a4),_0x16d756=parsePath(_0x501148),_0x51717c=[..._0xfd6d28[_0x5f3494(0x114)]];for(const _0x597b17 of _0x16d756['segments']){if(_0x597b17==='.')continue;else{if(_0x597b17==='..'){if(_0x51717c[_0x5f3494(0x110)]===0x0)throw new Error(_0x5f3494(0xf3));_0x51717c['pop']();}else _0x51717c['push'](_0x597b17);}}const _0x6c6f0d=_0x51717c[_0x5f3494(0x107)]('/');return _0xfd6d28[_0x5f3494(0x10f)]['startsWith']('/')?'/'+_0x6c6f0d:_0x6c6f0d;}export function normalizePath(_0x40bb19){const _0x169776=a111_0x3900,_0x397ecb=parsePath(_0x40bb19),_0x3f63f5=[];for(const _0x627d14 of _0x397ecb['segments']){if(_0x627d14==='.')continue;else{if(_0x627d14==='..'){if(_0x3f63f5['length']===0x0){if(_0x397ecb[_0x169776(0x10e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x3f63f5['push']('..');}else _0x3f63f5[_0x3f63f5[_0x169776(0x110)]-0x1]==='..'?_0x3f63f5[_0x169776(0x115)]('..'):_0x3f63f5[_0x169776(0x116)]();}else _0x3f63f5[_0x169776(0x115)](_0x627d14);}}if(_0x3f63f5[_0x169776(0x110)]===0x0)return _0x397ecb[_0x169776(0x10e)]?'/':'.';const _0x20eebd=_0x3f63f5[_0x169776(0x107)]('/');return _0x397ecb[_0x169776(0x10f)]['startsWith']('/')?'/'+_0x20eebd:_0x20eebd;}export function getParentPath(_0x4d9e20){const _0x1901f7=a111_0x3900,_0x857da1=parsePath(_0x4d9e20);if(_0x857da1[_0x1901f7(0x114)][_0x1901f7(0x110)]<=0x1)return'/';const _0x1b78df=_0x857da1[_0x1901f7(0x114)][_0x1901f7(0x112)](0x0,-0x1)[_0x1901f7(0x107)]('/');return _0x857da1[_0x1901f7(0x10f)][_0x1901f7(0x101)]('/')?'/'+_0x1b78df:_0x1b78df;}function a111_0x12ea(){const _0xd3af15=['2100sKHESC','filter','test','split','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','resolve','4935777xkzDHj','startsWith','Path\x20segment\x20cannot\x20be\x20empty','trim','No\x20tdx.json\x20found\x20for\x20file:\x20','endsWith','145985nHDdOG','join','dirname','Cannot\x20split\x20empty\x20path','journey','1557XVqGzY','utf-8','relative','isAbsolute','raw','length','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','slice','3nlLtTl','segments','push','pop','Path\x20attempts\x20to\x20navigate\x20above\x20root','2480194cBayvH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','.yaml','parse','type','Relative\x20path\x20cannot\x20be\x20empty','324587ZUZzgb','328NvuqRx','File\x20not\x20found:\x20','Cannot\x20navigate\x20above\x20root','name','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','15798nwfmbC','3148736RGEnZB','350tJkpSx','Path\x20must\x20contain\x20at\x20least\x20one\x20segment'];a111_0x12ea=function(){return _0xd3af15;};return a111_0x12ea();}export function getBaseName(_0x31ccbe){const _0x21c17c=a111_0x3900,_0x55edbb=parsePath(_0x31ccbe);return _0x55edbb[_0x21c17c(0x114)][_0x55edbb[_0x21c17c(0x114)][_0x21c17c(0x110)]-0x1]||'';}export function isChildPath(_0x229d0d,_0x1c1730){const _0x5db2dc=a111_0x3900,_0xb2b206=parsePath(_0x229d0d),_0x4bd5d8=parsePath(_0x1c1730);if(_0xb2b206['segments'][_0x5db2dc(0x110)]<=_0x4bd5d8[_0x5db2dc(0x114)]['length'])return![];for(let _0x4a32c3=0x0;_0x4a32c3<_0x4bd5d8['segments']['length'];_0x4a32c3++){if(_0xb2b206[_0x5db2dc(0x114)][_0x4a32c3]!==_0x4bd5d8['segments'][_0x4a32c3])return![];}return!![];}export function splitPath(_0x5783b9){const _0x2292b8=a111_0x3900,_0x48434d=parsePath(_0x5783b9);if(_0x48434d[_0x2292b8(0x114)][_0x2292b8(0x110)]===0x0)throw new Error(_0x2292b8(0x109));if(_0x48434d[_0x2292b8(0x114)][_0x2292b8(0x110)]===0x1)return{'parent':_0x48434d[_0x2292b8(0x114)][0x0]};return{'parent':_0x48434d['segments'][0x0],'child':_0x48434d['segments'][_0x2292b8(0x112)](0x1)[_0x2292b8(0x107)]('/')};}export function isYamlFilePath(_0x45b0a2){const _0xc260dc=a111_0x3900;return _0x45b0a2[_0xc260dc(0x105)]('.yml')||_0x45b0a2[_0xc260dc(0x105)](_0xc260dc(0xec));}export function resolveYamlFilePath(_0xab894){const _0x1bef82=a111_0x3900,_0x4d40b3=a111_0x5a2d0e[_0x1bef82(0xff)](_0xab894);if(!existsSync(_0x4d40b3))throw new Error(_0x1bef82(0xf2)+_0xab894);let _0x158a70=a111_0x5a2d0e[_0x1bef82(0x108)](_0x4d40b3),_0x95cc8e=null,_0x4a4e6e=null;const _0x285610=a111_0x5a2d0e[_0x1bef82(0xed)](_0x158a70)['root'];while(_0x158a70!==_0x285610){const _0x56ab55=a111_0x5a2d0e['join'](_0x158a70,'tdx.json');if(existsSync(_0x56ab55)){_0x95cc8e=_0x56ab55,_0x4a4e6e=_0x158a70;break;}_0x158a70=a111_0x5a2d0e[_0x1bef82(0x108)](_0x158a70);}if(!_0x95cc8e||!_0x4a4e6e)throw new Error(_0x1bef82(0x104)+_0xab894);const _0x223440=readFileSync(_0x95cc8e,_0x1bef82(0x10c)),_0x1d2a3a=JSON['parse'](_0x223440),_0xb7f51e=_0x1d2a3a['parent_segment'];if(!_0xb7f51e)throw new Error(_0x1bef82(0xf5));const _0x219723=readFileSync(_0x4d40b3,_0x1bef82(0x10c)),_0x13a315=a111_0x2b20bf(_0x219723),_0x1b1dfa=_0x13a315[_0x1bef82(0xf4)];if(!_0x1b1dfa)throw new Error(_0x1bef82(0xfe)+_0xab894);const _0x227ccb=_0x13a315[_0x1bef82(0xee)]===_0x1bef82(0x10a)?_0x1bef82(0x10a):'segment',_0x4b2793=a111_0x5a2d0e[_0x1bef82(0x10d)](_0x4a4e6e,_0x4d40b3),_0xf618bf=a111_0x5a2d0e[_0x1bef82(0x108)](_0x4b2793),_0x501c51=_0xf618bf==='.'?'':_0xf618bf['replace'](/\\/g,'/'),_0x495d97=_0x501c51?_0xb7f51e+'/'+_0x501c51+'/'+_0x1b1dfa:_0xb7f51e+'/'+_0x1b1dfa;return{'parentSegment':_0xb7f51e,'segmentName':_0x1b1dfa,'folderPath':_0x501c51,'fullPath':_0x495d97,'resourceType':_0x227ccb};}
@@ -1 +1 @@
1
- (function(_0x1565c4,_0x2b243a){const _0x4c7d69=a112_0x30a2,_0x15b872=_0x1565c4();while(!![]){try{const _0x4d60fb=-parseInt(_0x4c7d69(0x76))/0x1+-parseInt(_0x4c7d69(0x75))/0x2+-parseInt(_0x4c7d69(0x70))/0x3+-parseInt(_0x4c7d69(0x73))/0x4+parseInt(_0x4c7d69(0x6f))/0x5*(parseInt(_0x4c7d69(0x77))/0x6)+parseInt(_0x4c7d69(0x6d))/0x7+-parseInt(_0x4c7d69(0x71))/0x8*(-parseInt(_0x4c7d69(0x72))/0x9);if(_0x4d60fb===_0x2b243a)break;else _0x15b872['push'](_0x15b872['shift']());}catch(_0x13fe59){_0x15b872['push'](_0x15b872['shift']());}}}(a112_0x325f,0x8cd03));function a112_0x325f(){const _0x18c425=['8790asoMSN','.\x20Parent\x20name\x20cannot\x20be\x20empty','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','6026811qlCONs','indexOf','3020uQgPHr','1860204ltbrNb','68664yRaAWb','1386iCiueW','3773176BxNkzD','Invalid\x20segment\x20reference\x20format:\x20','183216kSucJy','835874mrFohb'];a112_0x325f=function(){return _0x18c425;};return a112_0x325f();}function a112_0x30a2(_0x55f9e1,_0x4a759a){_0x55f9e1=_0x55f9e1-0x6d;const _0x325fe0=a112_0x325f();let _0x30a20b=_0x325fe0[_0x55f9e1];return _0x30a20b;}export function parseSegmentRef(_0x450328){const _0x57c58f=a112_0x30a2,_0x1222af=_0x450328[_0x57c58f(0x6e)]('/');if(_0x1222af===-0x1)return{'parentId':_0x450328};if(_0x1222af===0x0)throw new Error(_0x57c58f(0x74)+_0x450328+_0x57c58f(0x78));const _0x1f9210=_0x450328[_0x57c58f(0x7a)](0x0,_0x1222af),_0x61afba=_0x450328[_0x57c58f(0x7a)](_0x1222af+0x1);if(_0x61afba==='')throw new Error(_0x57c58f(0x74)+_0x450328+_0x57c58f(0x79));return{'parentId':_0x1f9210,'childId':_0x61afba};}
1
+ function a112_0x4258(_0x45ed70,_0x185fc4){_0x45ed70=_0x45ed70-0x1db;const _0x239eef=a112_0x239e();let _0x4258e3=_0x239eef[_0x45ed70];return _0x4258e3;}function a112_0x239e(){const _0x279a0d=['694410auiFkC','3WHWNiy','90chgKye','substring','75310dUCkmD','Invalid\x20segment\x20reference\x20format:\x20','1547705zecHIJ','.\x20Parent\x20name\x20cannot\x20be\x20empty','3356171apTmYP','582196Szfzfm','.\x20Child\x20name\x20cannot\x20be\x20empty','299239LhmoSD','2189daVxTP','97232nRklVJ','2Tijixt'];a112_0x239e=function(){return _0x279a0d;};return a112_0x239e();}(function(_0xd34441,_0x33ed6d){const _0x4a5d04=a112_0x4258,_0x439676=_0xd34441();while(!![]){try{const _0x5739bb=parseInt(_0x4a5d04(0x1e5))/0x1*(-parseInt(_0x4a5d04(0x1e8))/0x2)+-parseInt(_0x4a5d04(0x1db))/0x3*(parseInt(_0x4a5d04(0x1e3))/0x4)+-parseInt(_0x4a5d04(0x1e0))/0x5+parseInt(_0x4a5d04(0x1e9))/0x6+-parseInt(_0x4a5d04(0x1e2))/0x7+-parseInt(_0x4a5d04(0x1e7))/0x8*(parseInt(_0x4a5d04(0x1dc))/0x9)+-parseInt(_0x4a5d04(0x1de))/0xa*(-parseInt(_0x4a5d04(0x1e6))/0xb);if(_0x5739bb===_0x33ed6d)break;else _0x439676['push'](_0x439676['shift']());}catch(_0x14fece){_0x439676['push'](_0x439676['shift']());}}}(a112_0x239e,0x3f40a));export function parseSegmentRef(_0x345830){const _0x251176=a112_0x4258,_0x155dcf=_0x345830['indexOf']('/');if(_0x155dcf===-0x1)return{'parentId':_0x345830};if(_0x155dcf===0x0)throw new Error(_0x251176(0x1df)+_0x345830+_0x251176(0x1e1));const _0x2d4d99=_0x345830[_0x251176(0x1dd)](0x0,_0x155dcf),_0xb38251=_0x345830['substring'](_0x155dcf+0x1);if(_0xb38251==='')throw new Error(_0x251176(0x1df)+_0x345830+_0x251176(0x1e4));return{'parentId':_0x2d4d99,'childId':_0xb38251};}
@@ -1 +1 @@
1
- function a113_0x26a9(_0x107508,_0xbba8eb){_0x107508=_0x107508-0x12a;const _0x5e8132=a113_0x5e81();let _0x26a90b=_0x5e8132[_0x107508];return _0x26a90b;}(function(_0x34059b,_0x3c310f){const _0x50a6b2=a113_0x26a9,_0x2b7cdd=_0x34059b();while(!![]){try{const _0x17547a=-parseInt(_0x50a6b2(0x135))/0x1*(parseInt(_0x50a6b2(0x12b))/0x2)+parseInt(_0x50a6b2(0x140))/0x3*(-parseInt(_0x50a6b2(0x134))/0x4)+parseInt(_0x50a6b2(0x13e))/0x5+-parseInt(_0x50a6b2(0x12d))/0x6*(parseInt(_0x50a6b2(0x132))/0x7)+-parseInt(_0x50a6b2(0x138))/0x8+parseInt(_0x50a6b2(0x142))/0x9*(-parseInt(_0x50a6b2(0x13a))/0xa)+parseInt(_0x50a6b2(0x143))/0xb*(parseInt(_0x50a6b2(0x139))/0xc);if(_0x17547a===_0x3c310f)break;else _0x2b7cdd['push'](_0x2b7cdd['shift']());}catch(_0x33f021){_0x2b7cdd['push'](_0x2b7cdd['shift']());}}}(a113_0x5e81,0x5e788));import a113_0x1fc7bd from'ora';function a113_0x5e81(){const _0x283332=['...','4163352CrRELH','70020ndtrOM','27220LPnFxY','cyan','extra','isTTY','2295515RHCkju','text','36DKvJoo','intervalFactory','2349FejHCB','4994RwqHpu','clock','phase','jobId','stop','562jrmWCJ','stdout','2795262JJAUbp','start','isSpinning','now','floor','7XekaSj','\x20[Job\x20ID:\x20','180488HUUWLG','1719RKUmmm','toFixed'];a113_0x5e81=function(){return _0x283332;};return a113_0x5e81();}export function createCommandSpinner(_0x5a2e53,_0x341c23={}){const _0x537671=a113_0x26a9,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x341c23;return a113_0x1fc7bd({'text':_0x5a2e53,'color':_0x537671(0x13b),'isEnabled':forceEnabled||process[_0x537671(0x12c)][_0x537671(0x13d)]&&!verbose});}export async function withSpinner(_0x4b9b78,_0x5aa9db,_0x2f6918={}){const _0x19a6bf=a113_0x26a9,_0x30b2e4=_0x2f6918[_0x19a6bf(0x144)]??(()=>Date['now']()),_0x27a633=createCommandSpinner(_0x4b9b78,_0x2f6918);_0x27a633[_0x19a6bf(0x12e)]();const _0x33b909=_0x30b2e4();try{const _0x3cc6df=await _0x5aa9db(),_0x41eb30=_0x30b2e4()-_0x33b909;return _0x27a633[_0x19a6bf(0x12a)](),{'data':_0x3cc6df,'elapsedMs':_0x41eb30};}catch(_0xaacf50){_0x27a633[_0x19a6bf(0x12a)]();throw _0xaacf50;}}export async function withQuerySpinner(_0x823b5a,_0x292114,_0x5da750={}){const _0x2f977c=a113_0x26a9,_0x535403=_0x5da750[_0x2f977c(0x144)]??(()=>Date[_0x2f977c(0x130)]()),_0x2f7f42=_0x5da750[_0x2f977c(0x141)]??setInterval,_0x501b6c=createCommandSpinner(_0x823b5a,_0x5da750);_0x501b6c[_0x2f977c(0x12e)]();const _0x36e64a=_0x535403(),_0x20d337=_0x823b5a['replace'](_0x2f977c(0x137),''),_0x35c3a0={},_0x37bfdf=()=>{const _0x3bf9a9=_0x2f977c;if(!_0x501b6c[_0x3bf9a9(0x12f)])return;const _0x500de9=_0x535403()-_0x36e64a,_0x2b2309=formatElapsed(_0x500de9),_0xd0e622=_0x35c3a0[_0x3bf9a9(0x145)]??_0x20d337,_0x1bf0f3=_0x35c3a0[_0x3bf9a9(0x146)]?_0x3bf9a9(0x133)+_0x35c3a0[_0x3bf9a9(0x146)]+']':'',_0x14d463=_0x35c3a0[_0x3bf9a9(0x13c)]?'\x20'+_0x35c3a0[_0x3bf9a9(0x13c)]:'';_0x501b6c[_0x3bf9a9(0x13f)]=_0xd0e622+'\x20'+_0x2b2309+_0x14d463+_0x1bf0f3;},_0x4a8197=_0x2f7f42(()=>{_0x37bfdf();},0x3e8),_0x5561dc={'setPhase':_0x28dd45=>{const _0x45e2e7=_0x2f977c;_0x35c3a0[_0x45e2e7(0x145)]=_0x28dd45,_0x37bfdf();},'setJobId':_0x1eb05d=>{const _0x570a74=_0x2f977c;_0x35c3a0[_0x570a74(0x146)]=_0x1eb05d,_0x37bfdf();},'setExtra':_0xb4c056=>{_0x35c3a0['extra']=_0xb4c056,_0x37bfdf();}};_0x37bfdf();try{const _0x491294=await _0x292114(_0x5561dc),_0x3dd55b=_0x535403()-_0x36e64a;return{'data':_0x491294,'elapsedMs':_0x3dd55b};}finally{clearInterval(_0x4a8197),_0x501b6c[_0x2f977c(0x12a)]();}}export function formatElapsed(_0x5c732b){const _0x518ca5=a113_0x26a9,_0xafce87=Math[_0x518ca5(0x131)](_0x5c732b/0x3e8);if(_0xafce87<0x3c)return(_0x5c732b/0x3e8)[_0x518ca5(0x136)](0x1)+'s';const _0x180bd4=Math[_0x518ca5(0x131)](_0xafce87/0x3c),_0x38316e=_0xafce87%0x3c;if(_0x180bd4<0x3c)return _0x180bd4+'m\x20'+_0x38316e+'s';const _0x39c322=Math[_0x518ca5(0x131)](_0x180bd4/0x3c),_0x9387f4=_0x180bd4%0x3c;return _0x39c322+'h\x20'+_0x9387f4+'m';}
1
+ (function(_0x552ed5,_0x3100e9){const _0x40142e=a113_0x1468,_0x7bfc24=_0x552ed5();while(!![]){try{const _0x18afa0=-parseInt(_0x40142e(0x165))/0x1*(-parseInt(_0x40142e(0x16a))/0x2)+parseInt(_0x40142e(0x178))/0x3+parseInt(_0x40142e(0x16c))/0x4+parseInt(_0x40142e(0x167))/0x5*(parseInt(_0x40142e(0x17d))/0x6)+parseInt(_0x40142e(0x17b))/0x7*(-parseInt(_0x40142e(0x16f))/0x8)+parseInt(_0x40142e(0x16d))/0x9+-parseInt(_0x40142e(0x172))/0xa;if(_0x18afa0===_0x3100e9)break;else _0x7bfc24['push'](_0x7bfc24['shift']());}catch(_0x5c432e){_0x7bfc24['push'](_0x7bfc24['shift']());}}}(a113_0x40ff,0x8e6e1));function a113_0x1468(_0x36c055,_0x1e058b){_0x36c055=_0x36c055-0x164;const _0x40ffa7=a113_0x40ff();let _0x1468e4=_0x40ffa7[_0x36c055];return _0x1468e4;}import a113_0x29eebf from'ora';export function createCommandSpinner(_0xc86f79,_0x54fe8f={}){const _0x162d57=a113_0x1468,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x54fe8f;return a113_0x29eebf({'text':_0xc86f79,'color':_0x162d57(0x179),'isEnabled':forceEnabled||process[_0x162d57(0x17c)]['isTTY']&&!verbose});}export async function withSpinner(_0x28176d,_0x426d66,_0x2633ee={}){const _0x159e78=a113_0x1468,_0x3c51bf=_0x2633ee[_0x159e78(0x177)]??(()=>Date[_0x159e78(0x168)]()),_0x1ed477=createCommandSpinner(_0x28176d,_0x2633ee);_0x1ed477['start']();const _0x1141d6=_0x3c51bf();try{const _0x17fc2f=await _0x426d66(),_0x5ecc7b=_0x3c51bf()-_0x1141d6;return _0x1ed477[_0x159e78(0x16e)](),{'data':_0x17fc2f,'elapsedMs':_0x5ecc7b};}catch(_0x4e5098){_0x1ed477[_0x159e78(0x16e)]();throw _0x4e5098;}}export async function withQuerySpinner(_0x14d6b6,_0x16dd7b,_0x49bb2a={}){const _0x183a70=a113_0x1468,_0x1e17fd=_0x49bb2a[_0x183a70(0x177)]??(()=>Date[_0x183a70(0x168)]()),_0x28f4df=_0x49bb2a[_0x183a70(0x164)]??setInterval,_0x24c941=createCommandSpinner(_0x14d6b6,_0x49bb2a);_0x24c941[_0x183a70(0x169)]();const _0x5ac063=_0x1e17fd(),_0x4fa2fc=_0x14d6b6[_0x183a70(0x175)](_0x183a70(0x173),''),_0x1f8209={},_0xd1da43=()=>{const _0x3fdd59=_0x183a70;if(!_0x24c941[_0x3fdd59(0x16b)])return;const _0x1f50ca=_0x1e17fd()-_0x5ac063,_0x22671f=formatElapsed(_0x1f50ca),_0x4e1509=_0x1f8209[_0x3fdd59(0x17a)]??_0x4fa2fc,_0x2282ac=_0x1f8209[_0x3fdd59(0x174)]?_0x3fdd59(0x171)+_0x1f8209[_0x3fdd59(0x174)]+']':'',_0x44e537=_0x1f8209[_0x3fdd59(0x166)]?'\x20'+_0x1f8209[_0x3fdd59(0x166)]:'';_0x24c941['text']=_0x4e1509+'\x20'+_0x22671f+_0x44e537+_0x2282ac;},_0x2c3a0c=_0x28f4df(()=>{_0xd1da43();},0x3e8),_0x4c26a6={'setPhase':_0x3338ea=>{const _0x275dd6=_0x183a70;_0x1f8209[_0x275dd6(0x17a)]=_0x3338ea,_0xd1da43();},'setJobId':_0x1a4c3a=>{_0x1f8209['jobId']=_0x1a4c3a,_0xd1da43();},'setExtra':_0x3e64d7=>{const _0x41779c=_0x183a70;_0x1f8209[_0x41779c(0x166)]=_0x3e64d7,_0xd1da43();}};_0xd1da43();try{const _0x2cfa18=await _0x16dd7b(_0x4c26a6),_0x3d0ebc=_0x1e17fd()-_0x5ac063;return{'data':_0x2cfa18,'elapsedMs':_0x3d0ebc};}finally{clearInterval(_0x2c3a0c),_0x24c941[_0x183a70(0x16e)]();}}function a113_0x40ff(){const _0x13f638=['floor','clock','1108284xrhVKu','cyan','phase','147gQSGjQ','stdout','876pvvNiH','intervalFactory','166SIXVQQ','extra','25585SCDsuz','now','start','13624MjCOzz','isSpinning','1585064Qoejwp','3317130bAPfFa','stop','1136RpfulP','toFixed','\x20[Job\x20ID:\x20','24257630wPEUyZ','...','jobId','replace'];a113_0x40ff=function(){return _0x13f638;};return a113_0x40ff();}export function formatElapsed(_0x41e5a3){const _0x5d29e3=a113_0x1468,_0x87f831=Math[_0x5d29e3(0x176)](_0x41e5a3/0x3e8);if(_0x87f831<0x3c)return(_0x41e5a3/0x3e8)[_0x5d29e3(0x170)](0x1)+'s';const _0x3091bf=Math['floor'](_0x87f831/0x3c),_0x2bbad7=_0x87f831%0x3c;if(_0x3091bf<0x3c)return _0x3091bf+'m\x20'+_0x2bbad7+'s';const _0x346472=Math[_0x5d29e3(0x176)](_0x3091bf/0x3c),_0x314827=_0x3091bf%0x3c;return _0x346472+'h\x20'+_0x314827+'m';}
@@ -1 +1 @@
1
- (function(_0x448352,_0x21fb3c){const _0x5a51a5=a114_0x1b72,_0x4da1c5=_0x448352();while(!![]){try{const _0x531d92=-parseInt(_0x5a51a5(0x131))/0x1*(parseInt(_0x5a51a5(0x136))/0x2)+parseInt(_0x5a51a5(0x13e))/0x3+-parseInt(_0x5a51a5(0x149))/0x4+parseInt(_0x5a51a5(0x145))/0x5*(-parseInt(_0x5a51a5(0x141))/0x6)+parseInt(_0x5a51a5(0x127))/0x7+parseInt(_0x5a51a5(0x148))/0x8*(parseInt(_0x5a51a5(0x140))/0x9)+parseInt(_0x5a51a5(0x138))/0xa;if(_0x531d92===_0x21fb3c)break;else _0x4da1c5['push'](_0x4da1c5['shift']());}catch(_0x973925){_0x4da1c5['push'](_0x4da1c5['shift']());}}}(a114_0x2372,0x6cc32));function a114_0x1b72(_0x26b33a,_0xa88b03){_0x26b33a=_0x26b33a-0x125;const _0x2372d7=a114_0x2372();let _0x1b72a5=_0x2372d7[_0x26b33a];return _0x1b72a5;}function a114_0x2372(){const _0x12d577=['11112jnKexF','2163588DDOpbl','toLowerCase','File\x20\x27','5262929tJZLHo','Error\x20reading\x20file\x20\x27','EACCES','close','isTTY','Error\x20reading\x20from\x20stdin:\x20','replace','code','stdin','trim','79VBncjW','map','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','stdin\x20','join','19762eZYySA','line','13373350SUzUle','test','push','\x27\x20not\x20found','ENOENT','filter','75168kIoWRv','\x27:\x20','1269TlXJIz','6hMsiAX','length','utf-8','message','2715505VoekCH','error','Content\x20contains\x20no\x20SQL\x20statements'];a114_0x2372=function(){return _0x12d577;};return a114_0x2372();}import{readFileSync}from'fs';import{createInterface}from'readline';export function stripSqlComments(_0x28cf88){const _0x47c58a=a114_0x1b72;let _0x38dde9=_0x28cf88['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x38dde9=_0x38dde9[_0x47c58a(0x12d)](/--.*$/gm,''),_0x38dde9[_0x47c58a(0x130)]();}function isEscaped(_0x3b9e7d,_0x163ea1){let _0x524658=0x0;for(let _0xc6d399=_0x163ea1-0x1;_0xc6d399>=0x0&&_0x3b9e7d[_0xc6d399]==='\x5c';_0xc6d399--){_0x524658++;}return _0x524658%0x2===0x1;}export function splitSqlStatements(_0x3c5427){const _0x146791=a114_0x1b72,_0xc42a61=stripSqlComments(_0x3c5427);if(!_0xc42a61)throw new Error(_0x146791(0x147));const _0x1e4e1c=[];let _0x2e960f='',_0xba01eb=![],_0x1b2258=![],_0x3139c3=![];for(let _0x44e055=0x0;_0x44e055<_0x3c5427['length'];_0x44e055++){const _0x309beb=_0x3c5427[_0x44e055];if(_0x309beb==='\x27'&&!isEscaped(_0x3c5427,_0x44e055)&&!_0x1b2258&&!_0x3139c3)_0xba01eb=!_0xba01eb;else{if(_0x309beb==='\x22'&&!isEscaped(_0x3c5427,_0x44e055)&&!_0xba01eb&&!_0x3139c3)_0x1b2258=!_0x1b2258;else _0x309beb==='`'&&!isEscaped(_0x3c5427,_0x44e055)&&!_0xba01eb&&!_0x1b2258&&(_0x3139c3=!_0x3139c3);}if(_0x309beb===';'&&!_0xba01eb&&!_0x1b2258&&!_0x3139c3){const _0x5ab16d=_0x2e960f[_0x146791(0x130)]();_0x5ab16d&&_0x1e4e1c[_0x146791(0x13a)](_0x5ab16d),_0x2e960f='';}else _0x2e960f+=_0x309beb;}const _0x4349df=_0x2e960f[_0x146791(0x130)]();_0x4349df&&_0x1e4e1c[_0x146791(0x13a)](_0x4349df);const _0x37c6e2=_0x1e4e1c[_0x146791(0x132)](_0xcb6bbe=>_0xcb6bbe[_0x146791(0x130)]())[_0x146791(0x13d)](_0x575d86=>{const _0x2733ae=_0x146791,_0x2e9d4d=stripSqlComments(_0x575d86);return _0x2e9d4d[_0x2733ae(0x142)]>0x0;});if(_0x37c6e2[_0x146791(0x142)]===0x0)throw new Error(_0x146791(0x147));return _0x37c6e2;}export function readFileContent(_0xa4af85){const _0x4fce7c=a114_0x1b72;try{return readFileSync(_0xa4af85,_0x4fce7c(0x143));}catch(_0x1595ca){const _0x2f2e9e=_0x1595ca[_0x4fce7c(0x12e)];if(_0x2f2e9e===_0x4fce7c(0x13c))throw new Error(_0x4fce7c(0x126)+_0xa4af85+_0x4fce7c(0x13b));else{if(_0x2f2e9e===_0x4fce7c(0x129))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0xa4af85+'\x27');else throw new Error(_0x4fce7c(0x128)+_0xa4af85+_0x4fce7c(0x13f)+_0x1595ca[_0x4fce7c(0x144)]);}}}export function readSqlStatementsFromFile(_0x3a2422){const _0x41ddea=a114_0x1b72,_0x561581=readFileContent(_0x3a2422);try{return splitSqlStatements(_0x561581);}catch(_0x5421dd){throw new Error(_0x41ddea(0x126)+_0x3a2422+'\x27\x20'+_0x5421dd['message'][_0x41ddea(0x125)]());}}export async function readStdinContent(){const _0x595514=a114_0x1b72;if(process[_0x595514(0x12f)][_0x595514(0x12b)])throw new Error(_0x595514(0x133));return new Promise((_0x30b000,_0x59206c)=>{const _0x5b6051=_0x595514,_0x457976=[],_0x1550da=createInterface({'input':process[_0x5b6051(0x12f)],'terminal':![]});_0x1550da['on'](_0x5b6051(0x137),_0x3285a8=>{_0x457976['push'](_0x3285a8);}),_0x1550da['on']('close',()=>{const _0x3d871a=_0x5b6051;_0x30b000(_0x457976[_0x3d871a(0x135)]('\x0a'));}),_0x1550da['on'](_0x5b6051(0x146),_0x16e88f=>{const _0x330b8d=_0x5b6051;_0x1550da[_0x330b8d(0x12a)](),_0x59206c(new Error(_0x330b8d(0x12c)+_0x16e88f['message']));});});}export async function readSqlStatementsFromStdin(){const _0x2f6237=a114_0x1b72,_0x42b241=await readStdinContent();try{return splitSqlStatements(_0x42b241);}catch(_0x584bbc){throw new Error(_0x2f6237(0x134)+_0x584bbc[_0x2f6237(0x144)][_0x2f6237(0x125)]());}}export function isSqlFilePath(_0x2ca7ec){const _0x3c9125=a114_0x1b72;return/\w\.sql$/[_0x3c9125(0x139)](_0x2ca7ec);}
1
+ (function(_0x3636b4,_0x3deeb7){const _0x467993=a114_0x38f4,_0x2f6a70=_0x3636b4();while(!![]){try{const _0x456d90=-parseInt(_0x467993(0x14c))/0x1+-parseInt(_0x467993(0x139))/0x2*(parseInt(_0x467993(0x140))/0x3)+-parseInt(_0x467993(0x152))/0x4+-parseInt(_0x467993(0x130))/0x5*(parseInt(_0x467993(0x149))/0x6)+parseInt(_0x467993(0x14b))/0x7*(parseInt(_0x467993(0x136))/0x8)+parseInt(_0x467993(0x143))/0x9+parseInt(_0x467993(0x141))/0xa*(parseInt(_0x467993(0x14e))/0xb);if(_0x456d90===_0x3deeb7)break;else _0x2f6a70['push'](_0x2f6a70['shift']());}catch(_0x80a00a){_0x2f6a70['push'](_0x2f6a70['shift']());}}}(a114_0xdb07,0xe7473));import{readFileSync}from'fs';function a114_0xdb07(){const _0x26ec36=['utf-8','\x27:\x20','test','stdin','error','3ihtQDy','10drPCvM','map','3111813KNwBtV','length','stdin\x20','Permission\x20denied\x20reading\x20file\x20\x27','EACCES','message','6SyMDeS','isTTY','112PzqJyn','1839824AYwteN','trim','55222981oGKegp','line','join','toLowerCase','6079860Urpsfo','346930iqXNFB','replace','Error\x20reading\x20file\x20\x27','code','close','filter','255536AOmnii','push','ENOENT','3001220nclTSN','File\x20\x27'];a114_0xdb07=function(){return _0x26ec36;};return a114_0xdb07();}import{createInterface}from'readline';export function stripSqlComments(_0x192613){const _0x3bfe2b=a114_0x38f4;let _0x570f34=_0x192613[_0x3bfe2b(0x131)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x570f34=_0x570f34['replace'](/--.*$/gm,''),_0x570f34[_0x3bfe2b(0x14d)]();}function isEscaped(_0x41a0b9,_0x4f4fd5){let _0x3be7e8=0x0;for(let _0x468960=_0x4f4fd5-0x1;_0x468960>=0x0&&_0x41a0b9[_0x468960]==='\x5c';_0x468960--){_0x3be7e8++;}return _0x3be7e8%0x2===0x1;}export function splitSqlStatements(_0x2919fd){const _0x3b3830=a114_0x38f4,_0x2a675f=stripSqlComments(_0x2919fd);if(!_0x2a675f)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x15ba42=[];let _0x17cfa='',_0x4a7640=![],_0x1ae097=![],_0x5d7197=![];for(let _0x3d0a60=0x0;_0x3d0a60<_0x2919fd['length'];_0x3d0a60++){const _0x2d4921=_0x2919fd[_0x3d0a60];if(_0x2d4921==='\x27'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x1ae097&&!_0x5d7197)_0x4a7640=!_0x4a7640;else{if(_0x2d4921==='\x22'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x4a7640&&!_0x5d7197)_0x1ae097=!_0x1ae097;else _0x2d4921==='`'&&!isEscaped(_0x2919fd,_0x3d0a60)&&!_0x4a7640&&!_0x1ae097&&(_0x5d7197=!_0x5d7197);}if(_0x2d4921===';'&&!_0x4a7640&&!_0x1ae097&&!_0x5d7197){const _0x3f985a=_0x17cfa[_0x3b3830(0x14d)]();_0x3f985a&&_0x15ba42['push'](_0x3f985a),_0x17cfa='';}else _0x17cfa+=_0x2d4921;}const _0x560d80=_0x17cfa['trim']();_0x560d80&&_0x15ba42['push'](_0x560d80);const _0x10dc83=_0x15ba42[_0x3b3830(0x142)](_0x3711b3=>_0x3711b3['trim']())[_0x3b3830(0x135)](_0x6ab66c=>{const _0x45759a=stripSqlComments(_0x6ab66c);return _0x45759a['length']>0x0;});if(_0x10dc83[_0x3b3830(0x144)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x10dc83;}export function readFileContent(_0x5df13d){const _0x15430b=a114_0x38f4;try{return readFileSync(_0x5df13d,_0x15430b(0x13b));}catch(_0x420c70){const _0x57b728=_0x420c70[_0x15430b(0x133)];if(_0x57b728===_0x15430b(0x138))throw new Error(_0x15430b(0x13a)+_0x5df13d+'\x27\x20not\x20found');else{if(_0x57b728===_0x15430b(0x147))throw new Error(_0x15430b(0x146)+_0x5df13d+'\x27');else throw new Error(_0x15430b(0x132)+_0x5df13d+_0x15430b(0x13c)+_0x420c70['message']);}}}export function readSqlStatementsFromFile(_0xf1dab5){const _0x2b274e=a114_0x38f4,_0x16d9c2=readFileContent(_0xf1dab5);try{return splitSqlStatements(_0x16d9c2);}catch(_0x31f706){throw new Error('File\x20\x27'+_0xf1dab5+'\x27\x20'+_0x31f706[_0x2b274e(0x148)][_0x2b274e(0x151)]());}}export async function readStdinContent(){const _0x332cac=a114_0x38f4;if(process['stdin'][_0x332cac(0x14a)])throw new Error('No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-');return new Promise((_0x153e10,_0x4e302a)=>{const _0x5a016a=_0x332cac,_0x106bff=[],_0x4cff16=createInterface({'input':process[_0x5a016a(0x13e)],'terminal':![]});_0x4cff16['on'](_0x5a016a(0x14f),_0x4fbbd2=>{const _0x429636=_0x5a016a;_0x106bff[_0x429636(0x137)](_0x4fbbd2);}),_0x4cff16['on'](_0x5a016a(0x134),()=>{const _0x24bfa7=_0x5a016a;_0x153e10(_0x106bff[_0x24bfa7(0x150)]('\x0a'));}),_0x4cff16['on'](_0x5a016a(0x13f),_0x437392=>{const _0x2aa6cc=_0x5a016a;_0x4cff16[_0x2aa6cc(0x134)](),_0x4e302a(new Error('Error\x20reading\x20from\x20stdin:\x20'+_0x437392[_0x2aa6cc(0x148)]));});});}export async function readSqlStatementsFromStdin(){const _0x95ee0c=a114_0x38f4,_0x24644d=await readStdinContent();try{return splitSqlStatements(_0x24644d);}catch(_0x35ff65){throw new Error(_0x95ee0c(0x145)+_0x35ff65[_0x95ee0c(0x148)][_0x95ee0c(0x151)]());}}function a114_0x38f4(_0x36f56c,_0x439c8f){_0x36f56c=_0x36f56c-0x130;const _0xdb07d=a114_0xdb07();let _0x38f414=_0xdb07d[_0x36f56c];return _0x38f414;}export function isSqlFilePath(_0x24a2af){const _0x52a075=a114_0x38f4;return/\w\.sql$/[_0x52a075(0x13d)](_0x24a2af);}
@@ -1 +1 @@
1
- function a115_0x257b(_0x225f9d,_0x22c4be){_0x225f9d=_0x225f9d-0x15f;const _0x29963=a115_0x2996();let _0x257ba0=_0x29963[_0x225f9d];return _0x257ba0;}(function(_0x17cb1e,_0x580856){const _0x17d666=a115_0x257b,_0x18f89d=_0x17cb1e();while(!![]){try{const _0x4ec56b=parseInt(_0x17d666(0x176))/0x1*(-parseInt(_0x17d666(0x172))/0x2)+parseInt(_0x17d666(0x171))/0x3+-parseInt(_0x17d666(0x163))/0x4+-parseInt(_0x17d666(0x167))/0x5+-parseInt(_0x17d666(0x173))/0x6*(-parseInt(_0x17d666(0x162))/0x7)+-parseInt(_0x17d666(0x168))/0x8+parseInt(_0x17d666(0x16b))/0x9;if(_0x4ec56b===_0x580856)break;else _0x18f89d['push'](_0x18f89d['shift']());}catch(_0x1f1c9f){_0x18f89d['push'](_0x18f89d['shift']());}}}(a115_0x2996,0xac2f5));function a115_0x2996(){const _0x448b02=['debug','Response\x20body\x20is\x20null','indexOf','5299660UcLosL','4652408eTzrzk','releaseLock','decode','9912258IdUfZg','startsWith','trim','body','slice','split','4158993TPAWAJ','202222IBDvOC','114MmIWcq','pop','[LLM\x20API\x20SSE]\x20','7VgriNp','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','data','parse','read','352562DohvCP','1560472idmdog'];a115_0x2996=function(){return _0x448b02;};return a115_0x2996();}export async function*parseSSEStream(_0x84808d,_0x10f0e5){const _0x26f519=a115_0x257b;if(!_0x84808d[_0x26f519(0x16e)])throw new Error(_0x26f519(0x165));const _0x15522d=_0x84808d[_0x26f519(0x16e)]['getReader'](),_0x4494e8=new TextDecoder();let _0x36f2a9='',_0x5deeec={};try{while(!![]){const {done:_0x101171,value:_0x3c2c4e}=await _0x15522d[_0x26f519(0x161)]();if(_0x101171){if(_0x5deeec[_0x26f519(0x15f)]){_0x10f0e5?.[_0x26f519(0x164)]('[LLM\x20API\x20SSE]\x20'+_0x5deeec['data']);const _0xb786de=parseSSEData(_0x5deeec[_0x26f519(0x15f)]);yield _0xb786de;}break;}_0x36f2a9+=_0x4494e8[_0x26f519(0x16a)](_0x3c2c4e,{'stream':!![]});const _0x176cc8=_0x36f2a9[_0x26f519(0x170)]('\x0a');_0x36f2a9=_0x176cc8[_0x26f519(0x174)]()||'';for(const _0x5bbd68 of _0x176cc8){if(_0x5bbd68[_0x26f519(0x16d)]()===''){if(_0x5deeec[_0x26f519(0x15f)]){_0x10f0e5?.[_0x26f519(0x164)](_0x26f519(0x175)+_0x5deeec[_0x26f519(0x15f)]);const _0x2361b5=parseSSEData(_0x5deeec['data']);yield _0x2361b5,_0x5deeec={};}continue;}if(_0x5bbd68[_0x26f519(0x16c)](':'))continue;const _0x5a3c9b=_0x5bbd68[_0x26f519(0x166)](':');if(_0x5a3c9b===-0x1)continue;const _0x5dfb36=_0x5bbd68[_0x26f519(0x16f)](0x0,_0x5a3c9b);let _0x5adb71=_0x5bbd68[_0x26f519(0x16f)](_0x5a3c9b+0x1);_0x5adb71[_0x26f519(0x16c)]('\x20')&&(_0x5adb71=_0x5adb71[_0x26f519(0x16f)](0x1));switch(_0x5dfb36){case _0x26f519(0x178):_0x5deeec['event']=_0x5adb71;break;case'data':_0x5deeec['data']=_0x5deeec[_0x26f519(0x15f)]?_0x5deeec[_0x26f519(0x15f)]+'\x0a'+_0x5adb71:_0x5adb71;break;case'id':_0x5deeec['id']=_0x5adb71;break;}}}}finally{_0x15522d[_0x26f519(0x169)]();}}function parseSSEData(_0x1e6209){const _0x304384=a115_0x257b;try{return JSON[_0x304384(0x160)](_0x1e6209);}catch(_0x12f4a1){throw new Error(_0x304384(0x177)+_0x1e6209,{'cause':_0x12f4a1});}}
1
+ (function(_0x509d87,_0x31d06a){const _0x24e1f1=a115_0x4ed7,_0x6adda9=_0x509d87();while(!![]){try{const _0x404882=parseInt(_0x24e1f1(0x17e))/0x1*(parseInt(_0x24e1f1(0x181))/0x2)+-parseInt(_0x24e1f1(0x16d))/0x3+parseInt(_0x24e1f1(0x173))/0x4+parseInt(_0x24e1f1(0x178))/0x5+parseInt(_0x24e1f1(0x183))/0x6*(-parseInt(_0x24e1f1(0x186))/0x7)+-parseInt(_0x24e1f1(0x17c))/0x8+parseInt(_0x24e1f1(0x179))/0x9*(parseInt(_0x24e1f1(0x17a))/0xa);if(_0x404882===_0x31d06a)break;else _0x6adda9['push'](_0x6adda9['shift']());}catch(_0x41cc3f){_0x6adda9['push'](_0x6adda9['shift']());}}}(a115_0x14a9,0xf1dcc));function a115_0x4ed7(_0x54e023,_0x39c642){_0x54e023=_0x54e023-0x16d;const _0x14a9c1=a115_0x14a9();let _0x4ed793=_0x14a9c1[_0x54e023];return _0x4ed793;}export async function*parseSSEStream(_0x5f4969,_0xed8194){const _0x534886=a115_0x4ed7;if(!_0x5f4969[_0x534886(0x171)])throw new Error(_0x534886(0x175));const _0x28122c=_0x5f4969[_0x534886(0x171)][_0x534886(0x16f)](),_0x565374=new TextDecoder();let _0x55fb06='',_0x52829c={};try{while(!![]){const {done:_0xc3adc5,value:_0x1bfb72}=await _0x28122c[_0x534886(0x176)]();if(_0xc3adc5){if(_0x52829c[_0x534886(0x17b)]){_0xed8194?.[_0x534886(0x184)]('[LLM\x20API\x20SSE]\x20'+_0x52829c[_0x534886(0x17b)]);const _0x4d3c28=parseSSEData(_0x52829c[_0x534886(0x17b)]);yield _0x4d3c28;}break;}_0x55fb06+=_0x565374[_0x534886(0x17f)](_0x1bfb72,{'stream':!![]});const _0x14d6bf=_0x55fb06[_0x534886(0x16e)]('\x0a');_0x55fb06=_0x14d6bf['pop']()||'';for(const _0x35e366 of _0x14d6bf){if(_0x35e366[_0x534886(0x170)]()===''){if(_0x52829c[_0x534886(0x17b)]){_0xed8194?.['debug'](_0x534886(0x174)+_0x52829c['data']);const _0x14229b=parseSSEData(_0x52829c[_0x534886(0x17b)]);yield _0x14229b,_0x52829c={};}continue;}if(_0x35e366['startsWith'](':'))continue;const _0x3edf8d=_0x35e366[_0x534886(0x182)](':');if(_0x3edf8d===-0x1)continue;const _0x29d4e4=_0x35e366[_0x534886(0x17d)](0x0,_0x3edf8d);let _0x238880=_0x35e366[_0x534886(0x17d)](_0x3edf8d+0x1);_0x238880['startsWith']('\x20')&&(_0x238880=_0x238880[_0x534886(0x17d)](0x1));switch(_0x29d4e4){case _0x534886(0x177):_0x52829c[_0x534886(0x177)]=_0x238880;break;case _0x534886(0x17b):_0x52829c[_0x534886(0x17b)]=_0x52829c[_0x534886(0x17b)]?_0x52829c[_0x534886(0x17b)]+'\x0a'+_0x238880:_0x238880;break;case'id':_0x52829c['id']=_0x238880;break;}}}}finally{_0x28122c[_0x534886(0x180)]();}}function parseSSEData(_0x25a6cc){const _0x3652fe=a115_0x4ed7;try{return JSON[_0x3652fe(0x185)](_0x25a6cc);}catch(_0x2a5977){throw new Error(_0x3652fe(0x172)+_0x25a6cc,{'cause':_0x2a5977});}}function a115_0x14a9(){const _0x51f7e4=['30sRueLc','data','1711464eDTzCn','slice','25017gpBWrq','decode','releaseLock','44vjnovL','indexOf','2709330wgapUF','debug','parse','7wBnGxl','5060598eKRPFx','split','getReader','trim','body','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','2557256hKBgMD','[LLM\x20API\x20SSE]\x20','Response\x20body\x20is\x20null','read','event','8012265AEtfuP','1652643pxPsui'];a115_0x14a9=function(){return _0x51f7e4;};return a115_0x14a9();}
@@ -1 +1 @@
1
- (function(_0x17331e,_0x250746){const _0x1bb6d5=a116_0x33c5,_0x19b47e=_0x17331e();while(!![]){try{const _0x1ded7c=-parseInt(_0x1bb6d5(0x199))/0x1+parseInt(_0x1bb6d5(0x19c))/0x2*(-parseInt(_0x1bb6d5(0x1a5))/0x3)+-parseInt(_0x1bb6d5(0x19a))/0x4+-parseInt(_0x1bb6d5(0x197))/0x5*(-parseInt(_0x1bb6d5(0x19d))/0x6)+parseInt(_0x1bb6d5(0x19f))/0x7*(parseInt(_0x1bb6d5(0x19e))/0x8)+-parseInt(_0x1bb6d5(0x1a4))/0x9+parseInt(_0x1bb6d5(0x193))/0xa;if(_0x1ded7c===_0x250746)break;else _0x19b47e['push'](_0x19b47e['shift']());}catch(_0x1d9b44){_0x19b47e['push'](_0x19b47e['shift']());}}}(a116_0x107d,0xde94c));function a116_0x33c5(_0x134ec8,_0x3c6b0b){_0x134ec8=_0x134ec8-0x192;const _0x107d83=a116_0x107d();let _0x33c51b=_0x107d83[_0x134ec8];return _0x33c51b;}import a116_0x169b0e from'string-width';export function stringWidth(_0x1d3d5d){return a116_0x169b0e(_0x1d3d5d);}export function padEnd(_0xbad48f,_0x4b6b16){const _0x112b73=a116_0x33c5,_0x3ba1c1=stringWidth(_0xbad48f);if(_0x3ba1c1>=_0x4b6b16)return _0xbad48f;return _0xbad48f+'\x20'[_0x112b73(0x192)](_0x4b6b16-_0x3ba1c1);}export function padStart(_0x395066,_0x2c529e){const _0xddec9b=a116_0x33c5,_0x15aaa8=stringWidth(_0x395066);if(_0x15aaa8>=_0x2c529e)return _0x395066;return'\x20'[_0xddec9b(0x192)](_0x2c529e-_0x15aaa8)+_0x395066;}export function centerAlign(_0x3d0f18,_0x37173b){const _0x40c493=a116_0x33c5,_0x15bc72=stringWidth(_0x3d0f18);if(_0x15bc72>_0x37173b){if(_0x37173b<=0x1)return'…'[_0x40c493(0x1a0)](0x0,_0x37173b);let _0x6e634f=_0x3d0f18;while(stringWidth(_0x6e634f+'…')>_0x37173b){_0x6e634f=_0x6e634f[_0x40c493(0x1a6)](0x0,-0x1);}return _0x6e634f+'…';}if(_0x15bc72===_0x37173b)return _0x3d0f18;const _0x1e6a90=_0x37173b-_0x15bc72,_0x3620cb=Math[_0x40c493(0x1a8)](_0x1e6a90/0x2),_0x568622=_0x1e6a90-_0x3620cb;return'\x20'[_0x40c493(0x192)](_0x3620cb)+_0x3d0f18+'\x20'[_0x40c493(0x192)](_0x568622);}export function escapeStringLiteral(_0x2d151c){const _0x4c6512=a116_0x33c5;if(!_0x2d151c||_0x2d151c[_0x4c6512(0x1a7)]()[_0x4c6512(0x195)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x3fdb29=_0x2d151c[_0x4c6512(0x198)](/'/g,'\x27\x27');return'\x27'+_0x3fdb29+'\x27';}export function globToLike(_0x20bb08){const _0x34abcc=a116_0x33c5;let _0x114b1e=_0x20bb08[_0x34abcc(0x198)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x34abcc(0x198)](/_/g,'\x5c_');return _0x114b1e=_0x114b1e[_0x34abcc(0x198)](/\*/g,'%')[_0x34abcc(0x198)](/\?/g,'_'),_0x114b1e;}function a116_0x107d(){const _0xf68b31=['length','test','30zkJBho','replace','963902IFyHNq','3027716exwvyM','toLowerCase','1592624gsOcXU','1739022oCwUWE','8iSjcfv','2626813uHmYyr','substring','padStart','USER','env','11966463WyxLjR','6EYSzwM','slice','trim','floor','toString','unknown','repeat','34404730FgKZrm','random'];a116_0x107d=function(){return _0xf68b31;};return a116_0x107d();}export function buildLikePattern(_0x10ef1e){const _0x4f9e93=a116_0x33c5;if(!_0x10ef1e||_0x10ef1e[_0x4f9e93(0x1a7)]()[_0x4f9e93(0x195)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x52ee46=globToLike(_0x10ef1e),_0x5a5a44=_0x52ee46[_0x4f9e93(0x198)](/'/g,'\x27\x27');return'\x27'+_0x5a5a44+'\x27';}export function matchGlobPattern(_0x232dea,_0x26a88b){const _0x36871c=a116_0x33c5,_0x5d55fb=_0x26a88b[_0x36871c(0x198)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x36871c(0x198)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x502203=new RegExp('^'+_0x5d55fb+'$');return _0x502203[_0x36871c(0x196)](_0x232dea);}export function getSanitizedUsername(){const _0xae2f86=a116_0x33c5,_0x51d950=process[_0xae2f86(0x1a3)][_0xae2f86(0x1a2)]||process[_0xae2f86(0x1a3)]['USERNAME']||_0xae2f86(0x1aa);return _0x51d950[_0xae2f86(0x198)](/[^a-zA-Z0-9]/g,'')[_0xae2f86(0x19b)]();}export function generateRandomHex(){const _0x181556=a116_0x33c5,_0x154dc4=Math[_0x181556(0x1a8)](Math[_0x181556(0x194)]()*0xfffff);return _0x154dc4[_0x181556(0x1a9)](0x10)[_0x181556(0x1a1)](0x5,'0');}export function sanitizeFileName(_0x7d76c7){const _0x1416de=a116_0x33c5;return _0x7d76c7[_0x1416de(0x19b)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x1416de(0x198)](/\s+/g,'-')[_0x1416de(0x198)](/-+/g,'-')[_0x1416de(0x198)](/^-|-$/g,'');}
1
+ function a116_0xc869(){const _0x4bebca=['random','13910Zysdpd','env','slice','unknown','replace','\x5c$&','2556528RnzHck','720453FOfPVV','18LenTXm','floor','length','test','22674jqbNit','toString','279738xmftwV','424ysKNGL','35480uXYmHW','145528lQBftF','210NLaAmU','repeat','toLowerCase'];a116_0xc869=function(){return _0x4bebca;};return a116_0xc869();}(function(_0x333c7b,_0x55684b){const _0x4ca746=a116_0x45f1,_0x1fcf0d=_0x333c7b();while(!![]){try{const _0x1f8012=-parseInt(_0x4ca746(0x18a))/0x1+-parseInt(_0x4ca746(0x187))/0x2+-parseInt(_0x4ca746(0x180))/0x3+parseInt(_0x4ca746(0x188))/0x4*(parseInt(_0x4ca746(0x18f))/0x5)+parseInt(_0x4ca746(0x185))/0x6*(parseInt(_0x4ca746(0x18b))/0x7)+parseInt(_0x4ca746(0x17f))/0x8+parseInt(_0x4ca746(0x181))/0x9*(-parseInt(_0x4ca746(0x189))/0xa);if(_0x1f8012===_0x55684b)break;else _0x1fcf0d['push'](_0x1fcf0d['shift']());}catch(_0xb6cda){_0x1fcf0d['push'](_0x1fcf0d['shift']());}}}(a116_0xc869,0x2fa70));import a116_0x52aff8 from'string-width';export function stringWidth(_0x10e593){return a116_0x52aff8(_0x10e593);}export function padEnd(_0x4c8d83,_0xe8052e){const _0x3d729c=a116_0x45f1,_0x3226eb=stringWidth(_0x4c8d83);if(_0x3226eb>=_0xe8052e)return _0x4c8d83;return _0x4c8d83+'\x20'[_0x3d729c(0x18c)](_0xe8052e-_0x3226eb);}function a116_0x45f1(_0x493c04,_0xf85ed9){_0x493c04=_0x493c04-0x17d;const _0xc8692f=a116_0xc869();let _0x45f137=_0xc8692f[_0x493c04];return _0x45f137;}export function padStart(_0x3f3286,_0x57d4e7){const _0x3ffa05=a116_0x45f1,_0xd07a60=stringWidth(_0x3f3286);if(_0xd07a60>=_0x57d4e7)return _0x3f3286;return'\x20'[_0x3ffa05(0x18c)](_0x57d4e7-_0xd07a60)+_0x3f3286;}export function centerAlign(_0x116fba,_0x299fd5){const _0x599299=a116_0x45f1,_0x1c7b50=stringWidth(_0x116fba);if(_0x1c7b50>_0x299fd5){if(_0x299fd5<=0x1)return'…'['substring'](0x0,_0x299fd5);let _0xc6931c=_0x116fba;while(stringWidth(_0xc6931c+'…')>_0x299fd5){_0xc6931c=_0xc6931c[_0x599299(0x191)](0x0,-0x1);}return _0xc6931c+'…';}if(_0x1c7b50===_0x299fd5)return _0x116fba;const _0x519e17=_0x299fd5-_0x1c7b50,_0x393b59=Math[_0x599299(0x182)](_0x519e17/0x2),_0x36f0e9=_0x519e17-_0x393b59;return'\x20'['repeat'](_0x393b59)+_0x116fba+'\x20'[_0x599299(0x18c)](_0x36f0e9);}export function escapeStringLiteral(_0x537518){const _0x17c55c=a116_0x45f1;if(!_0x537518||_0x537518['trim']()[_0x17c55c(0x183)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x52a6f1=_0x537518['replace'](/'/g,'\x27\x27');return'\x27'+_0x52a6f1+'\x27';}export function globToLike(_0xfcb9d8){const _0x45a4b0=a116_0x45f1;let _0x16097a=_0xfcb9d8[_0x45a4b0(0x17d)](/\\/g,'\x5c\x5c')[_0x45a4b0(0x17d)](/%/g,'\x5c%')[_0x45a4b0(0x17d)](/_/g,'\x5c_');return _0x16097a=_0x16097a['replace'](/\*/g,'%')[_0x45a4b0(0x17d)](/\?/g,'_'),_0x16097a;}export function buildLikePattern(_0x34e1a4){if(!_0x34e1a4||_0x34e1a4['trim']()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x52063c=globToLike(_0x34e1a4),_0x2e5e46=_0x52063c['replace'](/'/g,'\x27\x27');return'\x27'+_0x2e5e46+'\x27';}export function matchGlobPattern(_0x5ec4f3,_0x1cd5ac){const _0x4891c4=a116_0x45f1,_0x5afc8f=_0x1cd5ac[_0x4891c4(0x17d)](/[.+^${}()|[\]\\]/g,_0x4891c4(0x17e))['replace'](/\*/g,'.*')[_0x4891c4(0x17d)](/\?/g,'.'),_0x5995a7=new RegExp('^'+_0x5afc8f+'$');return _0x5995a7[_0x4891c4(0x184)](_0x5ec4f3);}export function getSanitizedUsername(){const _0x3f7bba=a116_0x45f1,_0xec83af=process['env']['USER']||process[_0x3f7bba(0x190)]['USERNAME']||_0x3f7bba(0x192);return _0xec83af[_0x3f7bba(0x17d)](/[^a-zA-Z0-9]/g,'')[_0x3f7bba(0x18d)]();}export function generateRandomHex(){const _0x84baad=a116_0x45f1,_0x5c120a=Math[_0x84baad(0x182)](Math[_0x84baad(0x18e)]()*0xfffff);return _0x5c120a[_0x84baad(0x186)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x2a26b1){const _0x204e23=a116_0x45f1;return _0x2a26b1[_0x204e23(0x18d)]()[_0x204e23(0x17d)](/[/\\:*?"<>|]/g,'-')[_0x204e23(0x17d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x204e23(0x17d)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0xbda231,_0x559939){const _0x423fd0=a117_0x2962,_0x5712fc=_0xbda231();while(!![]){try{const _0x57f48a=-parseInt(_0x423fd0(0x15d))/0x1*(-parseInt(_0x423fd0(0x15b))/0x2)+parseInt(_0x423fd0(0x15f))/0x3+parseInt(_0x423fd0(0x15e))/0x4*(-parseInt(_0x423fd0(0x15c))/0x5)+parseInt(_0x423fd0(0x151))/0x6*(parseInt(_0x423fd0(0x166))/0x7)+-parseInt(_0x423fd0(0x159))/0x8+-parseInt(_0x423fd0(0x167))/0x9*(parseInt(_0x423fd0(0x161))/0xa)+parseInt(_0x423fd0(0x156))/0xb;if(_0x57f48a===_0x559939)break;else _0x5712fc['push'](_0x5712fc['shift']());}catch(_0x59ebb7){_0x5712fc['push'](_0x5712fc['shift']());}}}(a117_0x36ce,0x4dff2));function a117_0x36ce(){const _0x19cb20=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','168wsbNXV','27OoKMoF','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','68898CDQANr','catalog','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','10189531Jeobxy','includes','join','1869432iqTFBh','database','964340EMeuxt','2745805IXYjQe','1tRcWHl','4ToJiWO','131553efwAYs','trim','2085400KARYZa','split','push','length'];a117_0x36ce=function(){return _0x19cb20;};return a117_0x36ce();}function hasWildcard(_0x15b577){const _0x3f3a98=a117_0x2962;return _0x15b577[_0x3f3a98(0x157)]('*')||_0x15b577[_0x3f3a98(0x157)]('?');}export function parseTableReference(_0x376161){const _0x83210c=a117_0x2962;if(!_0x376161||_0x376161['trim']()[_0x83210c(0x164)]===0x0)throw new Error(_0x83210c(0x165));const _0x554c9f=_0x376161[_0x83210c(0x160)](),_0xdcfef1={'original':_0x554c9f},_0x341acc=_0x554c9f[_0x83210c(0x162)]('.');if(_0x341acc[_0x83210c(0x164)]===0x1){const _0x3cc0cf=_0x341acc[0x0];if(!_0x3cc0cf)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0xdcfef1[_0x83210c(0x154)]=_0x3cc0cf;}else{if(_0x341acc['length']===0x2){const [_0x42996a,_0x1f3a00]=_0x341acc;if(!_0x42996a)throw new Error(_0x83210c(0x168));if(!_0x1f3a00)throw new Error(_0x83210c(0x155));_0xdcfef1[_0x83210c(0x15a)]=_0x42996a,_0xdcfef1['table']=_0x1f3a00;}else{if(_0x341acc[_0x83210c(0x164)]===0x3){const [_0x467704,_0x158124,_0x4a3c18]=_0x341acc;if(!_0x467704||!_0x158124||!_0x4a3c18)throw new Error(_0x83210c(0x153));_0xdcfef1[_0x83210c(0x152)]=_0x467704,_0xdcfef1[_0x83210c(0x15a)]=_0x158124,_0xdcfef1[_0x83210c(0x154)]=_0x4a3c18;}else throw new Error(_0x83210c(0x150));}}return _0xdcfef1;}export function formatTableReference(_0x2c9a70){const _0x5db40b=a117_0x2962,_0x3fe4e6=[];return _0x2c9a70[_0x5db40b(0x152)]&&_0x3fe4e6[_0x5db40b(0x163)](_0x2c9a70['catalog']),_0x2c9a70['database']&&_0x3fe4e6[_0x5db40b(0x163)](_0x2c9a70[_0x5db40b(0x15a)]),_0x2c9a70[_0x5db40b(0x154)]&&_0x3fe4e6[_0x5db40b(0x163)](_0x2c9a70['table']),_0x3fe4e6[_0x5db40b(0x158)]('.');}function a117_0x2962(_0x504731,_0x54aad8){_0x504731=_0x504731-0x150;const _0x36ce0b=a117_0x36ce();let _0x2962f8=_0x36ce0b[_0x504731];return _0x2962f8;}export function validateTableListReference(_0x43f0b2){return undefined;}export function validateTableDescribeReference(_0xa7a1ad){const _0x4031b7=a117_0x2962;if(!_0xa7a1ad[_0x4031b7(0x154)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0xa7a1ad[_0x4031b7(0x15a)]&&hasWildcard(_0xa7a1ad[_0x4031b7(0x15a)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0xa7a1ad[_0x4031b7(0x154)]))return _0x4031b7(0x169);return undefined;}
1
+ (function(_0x51c325,_0x54fa4d){const _0x233e50=a117_0x4bef,_0x4c5327=_0x51c325();while(!![]){try{const _0x22c2f2=parseInt(_0x233e50(0x105))/0x1*(parseInt(_0x233e50(0x103))/0x2)+-parseInt(_0x233e50(0xfc))/0x3*(-parseInt(_0x233e50(0xf1))/0x4)+-parseInt(_0x233e50(0xf3))/0x5+parseInt(_0x233e50(0xef))/0x6*(parseInt(_0x233e50(0xf2))/0x7)+-parseInt(_0x233e50(0x101))/0x8*(parseInt(_0x233e50(0xf7))/0x9)+-parseInt(_0x233e50(0xed))/0xa*(-parseInt(_0x233e50(0xf5))/0xb)+-parseInt(_0x233e50(0x104))/0xc*(parseInt(_0x233e50(0xf6))/0xd);if(_0x22c2f2===_0x54fa4d)break;else _0x4c5327['push'](_0x4c5327['shift']());}catch(_0x48e506){_0x4c5327['push'](_0x4c5327['shift']());}}}(a117_0x4702,0x7658f));function a117_0x4702(){const _0x436012=['Pattern\x20cannot\x20be\x20just\x20a\x20dot','length','20UCANXk','includes','1416mwkVMC','push','1856WMeYxM','4144SSwBSO','2956990yAkUgM','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4303178hMpUUJ','26xhnxdu','15327gtjGni','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','split','catalog','6207xsrEkt','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','trim','2312TmmmBu','join','4muQhAP','5843076klpwgt','330019WrgCev','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','table'];a117_0x4702=function(){return _0x436012;};return a117_0x4702();}function hasWildcard(_0x1e4951){const _0x2ae8ee=a117_0x4bef;return _0x1e4951[_0x2ae8ee(0xee)]('*')||_0x1e4951['includes']('?');}export function parseTableReference(_0x5c4498){const _0x542503=a117_0x4bef;if(!_0x5c4498||_0x5c4498[_0x542503(0x100)]()[_0x542503(0x109)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0xad6090=_0x5c4498[_0x542503(0x100)](),_0x4084f0={'original':_0xad6090},_0x3133e5=_0xad6090[_0x542503(0xfa)]('.');if(_0x3133e5[_0x542503(0x109)]===0x1){const _0x319089=_0x3133e5[0x0];if(!_0x319089)throw new Error(_0x542503(0x108));_0x4084f0['table']=_0x319089;}else{if(_0x3133e5[_0x542503(0x109)]===0x2){const [_0xd8c4ef,_0x4eda17]=_0x3133e5;if(!_0xd8c4ef)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4eda17)throw new Error(_0x542503(0xfd));_0x4084f0['database']=_0xd8c4ef,_0x4084f0[_0x542503(0x107)]=_0x4eda17;}else{if(_0x3133e5[_0x542503(0x109)]===0x3){const [_0x3184e5,_0x128781,_0x1fe6a2]=_0x3133e5;if(!_0x3184e5||!_0x128781||!_0x1fe6a2)throw new Error(_0x542503(0x106));_0x4084f0['catalog']=_0x3184e5,_0x4084f0['database']=_0x128781,_0x4084f0['table']=_0x1fe6a2;}else throw new Error(_0x542503(0xf4));}}return _0x4084f0;}export function formatTableReference(_0x52e3ae){const _0x66a3b5=a117_0x4bef,_0x3a6768=[];return _0x52e3ae[_0x66a3b5(0xfb)]&&_0x3a6768['push'](_0x52e3ae['catalog']),_0x52e3ae['database']&&_0x3a6768[_0x66a3b5(0xf0)](_0x52e3ae[_0x66a3b5(0xf9)]),_0x52e3ae[_0x66a3b5(0x107)]&&_0x3a6768[_0x66a3b5(0xf0)](_0x52e3ae[_0x66a3b5(0x107)]),_0x3a6768[_0x66a3b5(0x102)]('.');}function a117_0x4bef(_0x2c3d79,_0x43a51c){_0x2c3d79=_0x2c3d79-0xed;const _0x470202=a117_0x4702();let _0x4bef03=_0x470202[_0x2c3d79];return _0x4bef03;}export function validateTableListReference(_0x5dfc09){return undefined;}export function validateTableDescribeReference(_0x297044){const _0x102f3a=a117_0x4bef;if(!_0x297044[_0x102f3a(0x107)])return _0x102f3a(0xff);if(_0x297044[_0x102f3a(0xf9)]&&hasWildcard(_0x297044['database']))return _0x102f3a(0xf8);if(hasWildcard(_0x297044[_0x102f3a(0x107)]))return _0x102f3a(0xfe);return undefined;}
@@ -1 +1 @@
1
- const a118_0x34959f=a118_0x29cc;(function(_0x4eade1,_0x4c8ef2){const _0x168314=a118_0x29cc,_0x262777=_0x4eade1();while(!![]){try{const _0x41137c=-parseInt(_0x168314(0x1bb))/0x1+-parseInt(_0x168314(0x1cc))/0x2*(-parseInt(_0x168314(0x1bf))/0x3)+-parseInt(_0x168314(0x1c5))/0x4+-parseInt(_0x168314(0x1c4))/0x5+parseInt(_0x168314(0x1be))/0x6*(parseInt(_0x168314(0x1ce))/0x7)+parseInt(_0x168314(0x1cb))/0x8+parseInt(_0x168314(0x1c2))/0x9;if(_0x41137c===_0x4c8ef2)break;else _0x262777['push'](_0x262777['shift']());}catch(_0x4f9ffa){_0x262777['push'](_0x262777['shift']());}}}(a118_0x5ed6,0x2d948));import{existsSync,readFileSync}from'fs';import a118_0x4efed7 from'path';const TDX_CONFIG_FILE=a118_0x34959f(0x1c0),SEGMENTS_DIR=a118_0x34959f(0x1c1);export function findTdxConfigPath(_0x1f82a9=process[a118_0x34959f(0x1bc)]()){const _0x52238f=a118_0x34959f;let _0x4c8e66=a118_0x4efed7[_0x52238f(0x1c3)](_0x1f82a9);const _0x5bb6a2=a118_0x4efed7[_0x52238f(0x1c7)](_0x4c8e66)[_0x52238f(0x1cf)];while(_0x4c8e66!==_0x5bb6a2){const _0x1ec85e=a118_0x4efed7['join'](_0x4c8e66,TDX_CONFIG_FILE);if(existsSync(_0x1ec85e))return _0x1ec85e;_0x4c8e66=a118_0x4efed7[_0x52238f(0x1d0)](_0x4c8e66);}return null;}export function loadTdxConfig(_0x5ea3e9){const _0x2b41be=a118_0x34959f,_0x1ac34e=readFileSync(_0x5ea3e9,'utf-8');let _0x1b939f;try{_0x1b939f=JSON['parse'](_0x1ac34e);}catch{throw new Error(_0x2b41be(0x1d4)+_0x5ea3e9);}if(!_0x1b939f||typeof _0x1b939f!==_0x2b41be(0x1ca))throw new Error(_0x2b41be(0x1d3));const _0x5a3822=_0x1b939f;if(!_0x5a3822[_0x2b41be(0x1ba)]||typeof _0x5a3822[_0x2b41be(0x1ba)]!==_0x2b41be(0x1cd))throw new Error(_0x2b41be(0x1d1));return{'parent_segment':_0x5a3822['parent_segment']};}export function findTdxConfig(_0x1f1fef=process[a118_0x34959f(0x1bc)]()){const _0x2246c5=a118_0x34959f,_0x1d13f2=findTdxConfigPath(_0x1f1fef);if(!_0x1d13f2)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x46845d=loadTdxConfig(_0x1d13f2),_0x42238d=a118_0x4efed7[_0x2246c5(0x1d0)](_0x1d13f2);return{'config':_0x46845d,'configPath':_0x1d13f2,'configDir':_0x42238d};}function a118_0x5ed6(){const _0x40d57f=['Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','startsWith','Invalid\x20tdx.json:\x20expected\x20object','Invalid\x20JSON\x20in\x20','parent_segment','133519wJhQhm','cwd','stringify','15354BOKVOn','3TAtpMW','tdx.json','segments','3533211Ecedbi','resolve','405010RfQscZ','643584DnDuRg','replace','parse','relative','join','object','671712eqFZBJ','135314AFyXNC','string','49LgunoC','root','dirname'];a118_0x5ed6=function(){return _0x40d57f;};return a118_0x5ed6();}export function getSegmentRootDir(_0x2f797b,_0xcd1c0=process[a118_0x34959f(0x1bc)]()){return a118_0x4efed7['join'](_0xcd1c0,SEGMENTS_DIR,_0x2f797b);}export function getTdxConfigPath(_0x1a4581,_0x161bfe=process[a118_0x34959f(0x1bc)]()){const _0x2c30ca=a118_0x34959f;return a118_0x4efed7[_0x2c30ca(0x1c9)](getSegmentRootDir(_0x1a4581,_0x161bfe),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x1b5995,_0x481fad){const _0x556004=a118_0x34959f,_0x397360=a118_0x4efed7[_0x556004(0x1c3)](_0x1b5995),_0x1f14f5=a118_0x4efed7[_0x556004(0x1c8)](_0x481fad,_0x397360);if(_0x1f14f5[_0x556004(0x1d2)]('..'))return'';return _0x1f14f5;}export function localPathToTdFolderPath(_0x1f618c){const _0x4c0056=a118_0x34959f,_0x25f146=a118_0x4efed7['dirname'](_0x1f618c);if(_0x25f146==='.'||_0x25f146==='')return'';return _0x25f146[_0x4c0056(0x1c6)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x773be,_0x217032){const _0x3dc00c=a118_0x34959f;if(!_0x773be)return _0x217032;return a118_0x4efed7[_0x3dc00c(0x1c9)](_0x217032,_0x773be);}function a118_0x29cc(_0x3bf2e2,_0x5b83f3){_0x3bf2e2=_0x3bf2e2-0x1ba;const _0x5ed682=a118_0x5ed6();let _0x29ccf7=_0x5ed682[_0x3bf2e2];return _0x29ccf7;}export function createTdxConfigContent(_0x44bd4d){const _0x240b0a=a118_0x34959f,_0x15eab9={'parent_segment':_0x44bd4d};return JSON[_0x240b0a(0x1bd)](_0x15eab9,null,0x2)+'\x0a';}
1
+ const a118_0x29de9a=a118_0x47f5;(function(_0x526414,_0x287174){const _0xa426f1=a118_0x47f5,_0xc7573e=_0x526414();while(!![]){try{const _0x457f61=parseInt(_0xa426f1(0xf6))/0x1*(-parseInt(_0xa426f1(0xfb))/0x2)+-parseInt(_0xa426f1(0x103))/0x3+parseInt(_0xa426f1(0x101))/0x4*(-parseInt(_0xa426f1(0xef))/0x5)+-parseInt(_0xa426f1(0xf2))/0x6*(parseInt(_0xa426f1(0xf7))/0x7)+-parseInt(_0xa426f1(0xf1))/0x8*(-parseInt(_0xa426f1(0xf3))/0x9)+-parseInt(_0xa426f1(0x104))/0xa+parseInt(_0xa426f1(0xfd))/0xb;if(_0x457f61===_0x287174)break;else _0xc7573e['push'](_0xc7573e['shift']());}catch(_0x1ef203){_0xc7573e['push'](_0xc7573e['shift']());}}}(a118_0x35ae,0x229e6));import{existsSync,readFileSync}from'fs';import a118_0x3ba5b8 from'path';const TDX_CONFIG_FILE=a118_0x29de9a(0xfe),SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x1e373b=process[a118_0x29de9a(0xff)]()){const _0x1667cc=a118_0x29de9a;let _0x4d4ab3=a118_0x3ba5b8[_0x1667cc(0xfc)](_0x1e373b);const _0x2146d7=a118_0x3ba5b8[_0x1667cc(0x102)](_0x4d4ab3)['root'];while(_0x4d4ab3!==_0x2146d7){const _0x382e57=a118_0x3ba5b8[_0x1667cc(0xf0)](_0x4d4ab3,TDX_CONFIG_FILE);if(existsSync(_0x382e57))return _0x382e57;_0x4d4ab3=a118_0x3ba5b8[_0x1667cc(0xf5)](_0x4d4ab3);}return null;}export function loadTdxConfig(_0x51314c){const _0x1d0ef4=a118_0x29de9a,_0x1bf16f=readFileSync(_0x51314c,_0x1d0ef4(0xf9));let _0xfed1b4;try{_0xfed1b4=JSON[_0x1d0ef4(0x102)](_0x1bf16f);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x51314c);}if(!_0xfed1b4||typeof _0xfed1b4!==_0x1d0ef4(0xf8))throw new Error(_0x1d0ef4(0xed));const _0x516c76=_0xfed1b4;if(!_0x516c76[_0x1d0ef4(0xfa)]||typeof _0x516c76[_0x1d0ef4(0xfa)]!==_0x1d0ef4(0x100))throw new Error('Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field');return{'parent_segment':_0x516c76['parent_segment']};}export function findTdxConfig(_0x1c4b4e=process[a118_0x29de9a(0xff)]()){const _0x52fade=a118_0x29de9a,_0x2dd654=findTdxConfigPath(_0x1c4b4e);if(!_0x2dd654)throw new Error(_0x52fade(0x106));const _0x231f8a=loadTdxConfig(_0x2dd654),_0x44c941=a118_0x3ba5b8[_0x52fade(0xf5)](_0x2dd654);return{'config':_0x231f8a,'configPath':_0x2dd654,'configDir':_0x44c941};}function a118_0x47f5(_0x8b62e8,_0x194e13){_0x8b62e8=_0x8b62e8-0xed;const _0x35aeee=a118_0x35ae();let _0x47f5d0=_0x35aeee[_0x8b62e8];return _0x47f5d0;}export function getSegmentRootDir(_0x263b17,_0x553cc1=process[a118_0x29de9a(0xff)]()){return a118_0x3ba5b8['join'](_0x553cc1,SEGMENTS_DIR,_0x263b17);}export function getTdxConfigPath(_0x209a6c,_0x17debb=process['cwd']()){const _0x18b588=a118_0x29de9a;return a118_0x3ba5b8[_0x18b588(0xf0)](getSegmentRootDir(_0x209a6c,_0x17debb),TDX_CONFIG_FILE);}function a118_0x35ae(){const _0x3fc14c=['Invalid\x20tdx.json:\x20expected\x20object','replace','630265wvWsrT','join','62416HLvlPL','317778tVXyhA','279LpGvrc','stringify','dirname','569lWDSkj','21eyDfTV','object','utf-8','parent_segment','922fIwGBT','resolve','6976640grHWkR','tdx.json','cwd','string','4ZOIPAZ','parse','61500mMMRCn','1665530eSqiZi','startsWith','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.'];a118_0x35ae=function(){return _0x3fc14c;};return a118_0x35ae();}export function getRelativePathFromConfig(_0x69f845,_0x1f77b7){const _0x4ec1bf=a118_0x29de9a,_0x3c5825=a118_0x3ba5b8[_0x4ec1bf(0xfc)](_0x69f845),_0x198e91=a118_0x3ba5b8['relative'](_0x1f77b7,_0x3c5825);if(_0x198e91[_0x4ec1bf(0x105)]('..'))return'';return _0x198e91;}export function localPathToTdFolderPath(_0x163bc4){const _0x102f97=a118_0x29de9a,_0x20de26=a118_0x3ba5b8[_0x102f97(0xf5)](_0x163bc4);if(_0x20de26==='.'||_0x20de26==='')return'';return _0x20de26[_0x102f97(0xee)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x44da55,_0x1077e6){const _0x46ea30=a118_0x29de9a;if(!_0x44da55)return _0x1077e6;return a118_0x3ba5b8[_0x46ea30(0xf0)](_0x1077e6,_0x44da55);}export function createTdxConfigContent(_0x203936){const _0x2bcd1d=a118_0x29de9a,_0xda336b={'parent_segment':_0x203936};return JSON[_0x2bcd1d(0xf4)](_0xda336b,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a119_0x3ab53b=a119_0x1644;(function(_0x3c458d,_0x48c76e){const _0x5d1e1d=a119_0x1644,_0x368fbd=_0x3c458d();while(!![]){try{const _0x4e9153=-parseInt(_0x5d1e1d(0x151))/0x1+parseInt(_0x5d1e1d(0x158))/0x2*(-parseInt(_0x5d1e1d(0x163))/0x3)+parseInt(_0x5d1e1d(0x139))/0x4*(parseInt(_0x5d1e1d(0x149))/0x5)+-parseInt(_0x5d1e1d(0x145))/0x6*(-parseInt(_0x5d1e1d(0x155))/0x7)+-parseInt(_0x5d1e1d(0x16d))/0x8*(-parseInt(_0x5d1e1d(0x137))/0x9)+-parseInt(_0x5d1e1d(0x165))/0xa+-parseInt(_0x5d1e1d(0x156))/0xb*(parseInt(_0x5d1e1d(0x16a))/0xc);if(_0x4e9153===_0x48c76e)break;else _0x368fbd['push'](_0x368fbd['shift']());}catch(_0x557d76){_0x368fbd['push'](_0x368fbd['shift']());}}}(a119_0x7d88,0xa50cb));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 a119_0x1644(_0x526d34,_0x1028f7){_0x526d34=_0x526d34-0x12c;const _0x7d885d=a119_0x7d88();let _0x16446f=_0x7d885d[_0x526d34];return _0x16446f;}function a119_0x7d88(){const _0x4b694a=['logStream','36DccTzD','logLevel','4JuhNCx','rotateOldLogs','message','gray','getDate','getHours','split','cyan','cause','debug','trace','stack','522QBAOOo','tdx','toISOString','logs','3176135spoMAt','Warning:\x20Error\x20writing\x20to\x20tdx.log:','Proxy\x20session\x20ended','string','abs','floor','getMinutes','test','105208KciZTV','mtime','filter','getMilliseconds','51177RLVqep','616QAdBMZ','padStart','40IMRRAj','name','close','INFO','log','red','error','.log','getMonth','getTimezoneOffset','warn','182751MDwIFf','logDir','4121330uzHvZp','TRACE','join','tdx-','WARN','15660EKTYne','ERROR','Warning:\x20Failed\x20to\x20compress\x20','2427040RTiXHh','getFullYear','toString','DEBUG','end','write','getSeconds','fileOnly','tdx.log','stringify','includes','info'];a119_0x7d88=function(){return _0x4b694a;};return a119_0x7d88();}import{pipeline}from'stream/promises';import a119_0x31df2d from'chalk';function safeStringify(_0x414fae){const _0x35c6e6=a119_0x1644;if(typeof _0x414fae===_0x35c6e6(0x14c))return _0x414fae;if(_0x414fae instanceof Error)return _0x414fae['stack']||_0x414fae[_0x35c6e6(0x159)]+':\x20'+_0x414fae[_0x35c6e6(0x13b)];try{return JSON[_0x35c6e6(0x133)](_0x414fae,(_0x5238e3,_0x152c8a)=>{const _0x20a9c5=_0x35c6e6;if(_0x152c8a instanceof Error)return{'name':_0x152c8a['name'],'message':_0x152c8a[_0x20a9c5(0x13b)],'stack':_0x152c8a[_0x20a9c5(0x144)],'cause':_0x152c8a[_0x20a9c5(0x141)]};return _0x152c8a;});}catch{return String(_0x414fae);}}function getTimezoneOffset(){const _0x401cb8=a119_0x1644,_0x4afa1e=-new Date()[_0x401cb8(0x161)](),_0x55aaf0=Math[_0x401cb8(0x14e)](Math[_0x401cb8(0x14d)](_0x4afa1e)/0x3c),_0x26e5c2=Math[_0x401cb8(0x14d)](_0x4afa1e)%0x3c,_0x2f9b80=_0x4afa1e>=0x0?'+':'-';return''+_0x2f9b80+_0x55aaf0['toString']()[_0x401cb8(0x157)](0x2,'0')+_0x26e5c2['toString']()[_0x401cb8(0x157)](0x2,'0');}function formatTimestamp(){const _0x17935c=a119_0x1644,_0x58bf78=new Date(),_0x338251=_0x58bf78[_0x17935c(0x16e)](),_0xe35873=(_0x58bf78[_0x17935c(0x160)]()+0x1)[_0x17935c(0x12c)]()[_0x17935c(0x157)](0x2,'0'),_0x4bdd8a=_0x58bf78[_0x17935c(0x13d)]()[_0x17935c(0x12c)]()[_0x17935c(0x157)](0x2,'0'),_0x38ef3a=_0x58bf78[_0x17935c(0x13e)]()[_0x17935c(0x12c)]()[_0x17935c(0x157)](0x2,'0'),_0x4340c0=_0x58bf78[_0x17935c(0x14f)]()[_0x17935c(0x12c)]()[_0x17935c(0x157)](0x2,'0'),_0x5e8317=_0x58bf78[_0x17935c(0x130)]()[_0x17935c(0x12c)]()['padStart'](0x2,'0'),_0x138e3a=_0x58bf78[_0x17935c(0x154)]()[_0x17935c(0x12c)]()[_0x17935c(0x157)](0x3,'0'),_0x3bef3d=getTimezoneOffset();return _0x338251+'-'+_0xe35873+'-'+_0x4bdd8a+'\x20'+_0x38ef3a+':'+_0x4340c0+':'+_0x5e8317+'.'+_0x138e3a+_0x3bef3d;}function formatColoredLogEntry(_0x251e16,_0x19c02c){const _0x5370ea=a119_0x1644,_0x4bf08d=formatTimestamp(),_0x1e718c=_0x19c02c['map'](safeStringify)[_0x5370ea(0x167)]('\x20'),_0x1469fc=a119_0x31df2d['gray'](_0x4bf08d);let _0x360a92;switch(_0x251e16){case'info':_0x360a92=a119_0x31df2d[_0x5370ea(0x140)]('['+_0x251e16+']\x20');break;case _0x5370ea(0x162):_0x360a92=a119_0x31df2d['yellow']('['+_0x251e16+']\x20');break;case _0x5370ea(0x15e):_0x360a92=a119_0x31df2d[_0x5370ea(0x15d)]('['+_0x251e16+']');break;case'debug':_0x360a92=a119_0x31df2d[_0x5370ea(0x13c)]('['+_0x251e16+']');break;default:_0x360a92='['+_0x251e16+']';}return _0x1469fc+'\x20'+_0x360a92+'\x20'+_0x1e718c;}export var LogLevel;(function(_0x4f791e){const _0x34a31a=a119_0x1644;_0x4f791e[_0x4f791e[_0x34a31a(0x166)]=-0x2]=_0x34a31a(0x166),_0x4f791e[_0x4f791e['DEBUG']=-0x1]=_0x34a31a(0x12d),_0x4f791e[_0x4f791e[_0x34a31a(0x15b)]=0x0]=_0x34a31a(0x15b),_0x4f791e[_0x4f791e[_0x34a31a(0x169)]=0x1]=_0x34a31a(0x169),_0x4f791e[_0x4f791e[_0x34a31a(0x16b)]=0x2]=_0x34a31a(0x16b);}(LogLevel||(LogLevel={})));export class TDXLogger{[a119_0x3ab53b(0x136)];[a119_0x3ab53b(0x164)];['logLevel'];[a119_0x3ab53b(0x131)];constructor(_0x3bcddb=LogLevel['INFO'],_0x23597b=![]){const _0x45e8b0=a119_0x3ab53b;this['logDir']=join(homedir(),'.cache',_0x45e8b0(0x146),_0x45e8b0(0x148)),this['logLevel']=_0x3bcddb,this['fileOnly']=_0x23597b;}async['init'](){const _0x9c855f=a119_0x3ab53b;try{await mkdir(this[_0x9c855f(0x164)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x3001ae=join(this['logDir'],'tdx.log');this['logStream']=createWriteStream(_0x3001ae,{'flags':'a'}),this[_0x9c855f(0x136)]['on'](_0x9c855f(0x15e),_0x213ce7=>{const _0x5893e1=_0x9c855f;console[_0x5893e1(0x15e)](_0x5893e1(0x14a),_0x213ce7[_0x5893e1(0x13b)]);});}catch(_0x206e02){console[_0x9c855f(0x15e)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x206e02);}}async[a119_0x3ab53b(0x13a)](){const _0x431b42=a119_0x3ab53b;try{const _0x5d8680=await readdir(this[_0x431b42(0x164)]),_0x222698=new Date()['toISOString']()[_0x431b42(0x13f)]('T')[0x0];if(_0x5d8680[_0x431b42(0x134)]('tdx.log')){const _0x2e7816=join(this[_0x431b42(0x164)],'tdx.log'),_0xa0011d=await stat(_0x2e7816),_0x5b326a=new Date(_0xa0011d[_0x431b42(0x152)])[_0x431b42(0x147)]()['split']('T')[0x0];if(_0x5b326a<_0x222698){const _0xa7cea9=join(this[_0x431b42(0x164)],_0x431b42(0x168)+_0x5b326a+_0x431b42(0x15f));await rename(_0x2e7816,_0xa7cea9);}}const _0x208700=await readdir(this['logDir']),_0x1c6178=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x14efb8=_0x208700[_0x431b42(0x153)](_0x596b4d=>_0x1c6178[_0x431b42(0x150)](_0x596b4d));for(const _0x14f950 of _0x14efb8){const _0x16256d=join(this[_0x431b42(0x164)],_0x14f950),_0x2bd3b3=join(this[_0x431b42(0x164)],_0x14f950+'.gz');try{await pipeline(createReadStream(_0x16256d),createGzip(),createWriteStream(_0x2bd3b3)),await unlink(_0x16256d);}catch(_0x2a6dfb){console['error'](_0x431b42(0x16c)+_0x14f950+':',_0x2a6dfb);}}}catch{}}[a119_0x3ab53b(0x142)](..._0x518856){const _0x11a147=a119_0x3ab53b;if(this[_0x11a147(0x138)]>LogLevel[_0x11a147(0x12d)])return;const _0x3ac55d=formatColoredLogEntry('debug',_0x518856);this['logStream']?.[_0x11a147(0x12f)](_0x3ac55d+'\x0a');}[a119_0x3ab53b(0x143)](..._0x1c0005){const _0x2f3405=a119_0x3ab53b;if(this['logLevel']>LogLevel[_0x2f3405(0x166)])return;const _0x17b8c5=formatColoredLogEntry(_0x2f3405(0x143),_0x1c0005);this[_0x2f3405(0x136)]?.['write'](_0x17b8c5+'\x0a');}[a119_0x3ab53b(0x135)](..._0x24d070){const _0x48ac92=a119_0x3ab53b;if(this['logLevel']>LogLevel[_0x48ac92(0x15b)])return;const _0x3d525c=formatColoredLogEntry(_0x48ac92(0x135),_0x24d070);!this[_0x48ac92(0x131)]&&console[_0x48ac92(0x15c)](_0x3d525c),this[_0x48ac92(0x136)]?.['write'](_0x3d525c+'\x0a');}[a119_0x3ab53b(0x162)](..._0x1f804e){const _0xd1ecc3=a119_0x3ab53b;if(this[_0xd1ecc3(0x138)]>LogLevel[_0xd1ecc3(0x169)])return;const _0x55bf2a=formatColoredLogEntry(_0xd1ecc3(0x162),_0x1f804e);!this[_0xd1ecc3(0x131)]&&console['error'](_0x55bf2a),this['logStream']?.['write'](_0x55bf2a+'\x0a');}[a119_0x3ab53b(0x15e)](..._0x545ad6){const _0x183394=a119_0x3ab53b,_0x32d133=formatColoredLogEntry(_0x183394(0x15e),_0x545ad6);!this['fileOnly']&&console[_0x183394(0x15e)](_0x32d133),this['logStream']?.[_0x183394(0x12f)](_0x32d133+'\x0a');}async[a119_0x3ab53b(0x15a)](){const _0x420ba5=a119_0x3ab53b;return this[_0x420ba5(0x135)](_0x420ba5(0x14b)),new Promise(_0x21776a=>{const _0x103b81=_0x420ba5;this[_0x103b81(0x136)]?this[_0x103b81(0x136)][_0x103b81(0x12e)](()=>{_0x21776a();}):_0x21776a();});}['getLogPath'](){const _0x324456=a119_0x3ab53b;return join(this[_0x324456(0x164)],_0x324456(0x132));}}
1
+ function a119_0x17de(_0x14ff2b,_0x531c30){_0x14ff2b=_0x14ff2b-0xe7;const _0x9a92a2=a119_0x9a92();let _0x17def4=_0x9a92a2[_0x14ff2b];return _0x17def4;}const a119_0x4d0d4b=a119_0x17de;(function(_0x111cfe,_0x51ef48){const _0x465c84=a119_0x17de,_0x50198b=_0x111cfe();while(!![]){try{const _0x2170b8=parseInt(_0x465c84(0x11c))/0x1*(-parseInt(_0x465c84(0x101))/0x2)+parseInt(_0x465c84(0xf1))/0x3+parseInt(_0x465c84(0x105))/0x4*(-parseInt(_0x465c84(0xeb))/0x5)+parseInt(_0x465c84(0xf8))/0x6*(-parseInt(_0x465c84(0xfd))/0x7)+parseInt(_0x465c84(0xf7))/0x8+-parseInt(_0x465c84(0xef))/0x9+parseInt(_0x465c84(0xea))/0xa*(parseInt(_0x465c84(0xf6))/0xb);if(_0x2170b8===_0x51ef48)break;else _0x50198b['push'](_0x50198b['shift']());}catch(_0x4837c9){_0x50198b['push'](_0x50198b['shift']());}}}(a119_0x9a92,0xae921));function a119_0x9a92(){const _0x4f3748=['ERROR','end','WARN','logLevel','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','red','close','1066729WkBZaV','log','tdx-','yellow','error','init','fileOnly','.cache','debug','getHours','tdx.log','getMonth','38330tVQmSv','6640135vIhykp','TRACE','getDate','getTimezoneOffset','11041596faVGKJ','info','3471252KIyCfM','string','.log','logDir','split','10780YOADjS','2204144aRkCcz','6gMhHKF','test','trace','abs','write','5966107NLYpEz','message','padStart','toString','2OFkOJY','name','mtime','Proxy\x20session\x20ended','4dxlIQU','INFO','gray','join','.gz','toISOString','stringify','warn','floor','getLogPath','logStream','getMinutes','filter','stack','rotateOldLogs','includes'];a119_0x9a92=function(){return _0x4f3748;};return a119_0x9a92();}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 a119_0x469397 from'chalk';function safeStringify(_0xf7d59){const _0x57a790=a119_0x17de;if(typeof _0xf7d59===_0x57a790(0xf2))return _0xf7d59;if(_0xf7d59 instanceof Error)return _0xf7d59[_0x57a790(0x112)]||_0xf7d59[_0x57a790(0x102)]+':\x20'+_0xf7d59[_0x57a790(0xfe)];try{return JSON[_0x57a790(0x10b)](_0xf7d59,(_0x1b3698,_0x22f99e)=>{const _0x4306fb=_0x57a790;if(_0x22f99e instanceof Error)return{'name':_0x22f99e['name'],'message':_0x22f99e[_0x4306fb(0xfe)],'stack':_0x22f99e['stack'],'cause':_0x22f99e['cause']};return _0x22f99e;});}catch{return String(_0xf7d59);}}function getTimezoneOffset(){const _0x58ab67=a119_0x17de,_0x13ea4f=-new Date()[_0x58ab67(0xee)](),_0x21868a=Math[_0x58ab67(0x10d)](Math[_0x58ab67(0xfb)](_0x13ea4f)/0x3c),_0x5ad8e0=Math[_0x58ab67(0xfb)](_0x13ea4f)%0x3c,_0xa64995=_0x13ea4f>=0x0?'+':'-';return''+_0xa64995+_0x21868a[_0x58ab67(0x100)]()[_0x58ab67(0xff)](0x2,'0')+_0x5ad8e0[_0x58ab67(0x100)]()[_0x58ab67(0xff)](0x2,'0');}function formatTimestamp(){const _0x228bb5=a119_0x17de,_0xb16066=new Date(),_0x5b54a0=_0xb16066['getFullYear'](),_0x36e14f=(_0xb16066[_0x228bb5(0xe9)]()+0x1)[_0x228bb5(0x100)]()[_0x228bb5(0xff)](0x2,'0'),_0x3f219e=_0xb16066[_0x228bb5(0xed)]()[_0x228bb5(0x100)]()[_0x228bb5(0xff)](0x2,'0'),_0x10e029=_0xb16066[_0x228bb5(0xe7)]()[_0x228bb5(0x100)]()[_0x228bb5(0xff)](0x2,'0'),_0x392a07=_0xb16066[_0x228bb5(0x110)]()[_0x228bb5(0x100)]()['padStart'](0x2,'0'),_0x23c511=_0xb16066['getSeconds']()[_0x228bb5(0x100)]()['padStart'](0x2,'0'),_0x4c50d2=_0xb16066['getMilliseconds']()[_0x228bb5(0x100)]()[_0x228bb5(0xff)](0x3,'0'),_0x285d7c=getTimezoneOffset();return _0x5b54a0+'-'+_0x36e14f+'-'+_0x3f219e+'\x20'+_0x10e029+':'+_0x392a07+':'+_0x23c511+'.'+_0x4c50d2+_0x285d7c;}function formatColoredLogEntry(_0x1917bf,_0x11a480){const _0x5f4d33=a119_0x17de,_0x502a92=formatTimestamp(),_0x36fe21=_0x11a480['map'](safeStringify)[_0x5f4d33(0x108)]('\x20'),_0x1a65c7=a119_0x469397[_0x5f4d33(0x107)](_0x502a92);let _0x5762cd;switch(_0x1917bf){case'info':_0x5762cd=a119_0x469397['cyan']('['+_0x1917bf+']\x20');break;case _0x5f4d33(0x10c):_0x5762cd=a119_0x469397[_0x5f4d33(0x11f)]('['+_0x1917bf+']\x20');break;case _0x5f4d33(0x120):_0x5762cd=a119_0x469397[_0x5f4d33(0x11a)]('['+_0x1917bf+']');break;case _0x5f4d33(0x124):_0x5762cd=a119_0x469397[_0x5f4d33(0x107)]('['+_0x1917bf+']');break;default:_0x5762cd='['+_0x1917bf+']';}return _0x1a65c7+'\x20'+_0x5762cd+'\x20'+_0x36fe21;}export var LogLevel;(function(_0x823de7){const _0x511508=a119_0x17de;_0x823de7[_0x823de7[_0x511508(0xec)]=-0x2]=_0x511508(0xec),_0x823de7[_0x823de7['DEBUG']=-0x1]='DEBUG',_0x823de7[_0x823de7[_0x511508(0x106)]=0x0]=_0x511508(0x106),_0x823de7[_0x823de7[_0x511508(0x117)]=0x1]=_0x511508(0x117),_0x823de7[_0x823de7['ERROR']=0x2]=_0x511508(0x115);}(LogLevel||(LogLevel={})));export class TDXLogger{[a119_0x4d0d4b(0x10f)];['logDir'];[a119_0x4d0d4b(0x118)];[a119_0x4d0d4b(0x122)];constructor(_0x4aba11=LogLevel[a119_0x4d0d4b(0x106)],_0x2617a3=![]){const _0x2f2ac5=a119_0x4d0d4b;this[_0x2f2ac5(0xf4)]=join(homedir(),_0x2f2ac5(0x123),'tdx','logs'),this[_0x2f2ac5(0x118)]=_0x4aba11,this[_0x2f2ac5(0x122)]=_0x2617a3;}async[a119_0x4d0d4b(0x121)](){const _0x581edc=a119_0x4d0d4b;try{await mkdir(this[_0x581edc(0xf4)],{'recursive':!![]}),await this[_0x581edc(0x113)]();const _0x36ab3f=join(this['logDir'],_0x581edc(0xe8));this['logStream']=createWriteStream(_0x36ab3f,{'flags':'a'}),this[_0x581edc(0x10f)]['on'](_0x581edc(0x120),_0x9d7496=>{const _0x387b33=_0x581edc;console[_0x387b33(0x120)]('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x9d7496[_0x387b33(0xfe)]);});}catch(_0xcc8abb){console[_0x581edc(0x120)](_0x581edc(0x119),_0xcc8abb);}}async['rotateOldLogs'](){const _0x1313c4=a119_0x4d0d4b;try{const _0x4c0eb6=await readdir(this[_0x1313c4(0xf4)]),_0x217856=new Date()[_0x1313c4(0x10a)]()[_0x1313c4(0xf5)]('T')[0x0];if(_0x4c0eb6[_0x1313c4(0x114)]('tdx.log')){const _0x138a23=join(this[_0x1313c4(0xf4)],_0x1313c4(0xe8)),_0x435da8=await stat(_0x138a23),_0x35909c=new Date(_0x435da8[_0x1313c4(0x103)])['toISOString']()[_0x1313c4(0xf5)]('T')[0x0];if(_0x35909c<_0x217856){const _0x403d4e=join(this['logDir'],_0x1313c4(0x11e)+_0x35909c+_0x1313c4(0xf3));await rename(_0x138a23,_0x403d4e);}}const _0x48e866=await readdir(this[_0x1313c4(0xf4)]),_0x410608=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x498217=_0x48e866[_0x1313c4(0x111)](_0x226ea6=>_0x410608[_0x1313c4(0xf9)](_0x226ea6));for(const _0x4a2d99 of _0x498217){const _0x3599f0=join(this[_0x1313c4(0xf4)],_0x4a2d99),_0x37fb89=join(this['logDir'],_0x4a2d99+_0x1313c4(0x109));try{await pipeline(createReadStream(_0x3599f0),createGzip(),createWriteStream(_0x37fb89)),await unlink(_0x3599f0);}catch(_0x4041d8){console[_0x1313c4(0x120)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x4a2d99+':',_0x4041d8);}}}catch{}}['debug'](..._0x290cc1){const _0x59e759=a119_0x4d0d4b;if(this[_0x59e759(0x118)]>LogLevel['DEBUG'])return;const _0xbbcfdd=formatColoredLogEntry(_0x59e759(0x124),_0x290cc1);this[_0x59e759(0x10f)]?.[_0x59e759(0xfc)](_0xbbcfdd+'\x0a');}['trace'](..._0x35725a){const _0x133853=a119_0x4d0d4b;if(this[_0x133853(0x118)]>LogLevel[_0x133853(0xec)])return;const _0x2d0de7=formatColoredLogEntry(_0x133853(0xfa),_0x35725a);this[_0x133853(0x10f)]?.['write'](_0x2d0de7+'\x0a');}['info'](..._0x420008){const _0x5705e9=a119_0x4d0d4b;if(this[_0x5705e9(0x118)]>LogLevel[_0x5705e9(0x106)])return;const _0x4912b5=formatColoredLogEntry(_0x5705e9(0xf0),_0x420008);!this[_0x5705e9(0x122)]&&console[_0x5705e9(0x11d)](_0x4912b5),this[_0x5705e9(0x10f)]?.[_0x5705e9(0xfc)](_0x4912b5+'\x0a');}[a119_0x4d0d4b(0x10c)](..._0x4c93f0){const _0xb67c54=a119_0x4d0d4b;if(this[_0xb67c54(0x118)]>LogLevel['WARN'])return;const _0x3ed49f=formatColoredLogEntry('warn',_0x4c93f0);!this[_0xb67c54(0x122)]&&console['error'](_0x3ed49f),this[_0xb67c54(0x10f)]?.[_0xb67c54(0xfc)](_0x3ed49f+'\x0a');}[a119_0x4d0d4b(0x120)](..._0x50282e){const _0x2d96ba=a119_0x4d0d4b,_0x28e2c0=formatColoredLogEntry(_0x2d96ba(0x120),_0x50282e);!this[_0x2d96ba(0x122)]&&console[_0x2d96ba(0x120)](_0x28e2c0),this[_0x2d96ba(0x10f)]?.[_0x2d96ba(0xfc)](_0x28e2c0+'\x0a');}async[a119_0x4d0d4b(0x11b)](){const _0x12eae9=a119_0x4d0d4b;return this[_0x12eae9(0xf0)](_0x12eae9(0x104)),new Promise(_0x1c7c8d=>{const _0x2ac7f0=_0x12eae9;this[_0x2ac7f0(0x10f)]?this[_0x2ac7f0(0x10f)][_0x2ac7f0(0x116)](()=>{_0x1c7c8d();}):_0x1c7c8d();});}[a119_0x4d0d4b(0x10e)](){const _0x53fb40=a119_0x4d0d4b;return join(this['logDir'],_0x53fb40(0xe8));}}
@@ -1 +1 @@
1
- (function(_0x55592a,_0x5d62a8){const _0x1e667a=a120_0x282f,_0x6ba462=_0x55592a();while(!![]){try{const _0x10632e=parseInt(_0x1e667a(0x1a9))/0x1*(-parseInt(_0x1e667a(0x19b))/0x2)+-parseInt(_0x1e667a(0x194))/0x3+parseInt(_0x1e667a(0x19c))/0x4*(parseInt(_0x1e667a(0x1a6))/0x5)+-parseInt(_0x1e667a(0x19f))/0x6+-parseInt(_0x1e667a(0x1ac))/0x7*(parseInt(_0x1e667a(0x196))/0x8)+parseInt(_0x1e667a(0x1b5))/0x9*(parseInt(_0x1e667a(0x1ad))/0xa)+-parseInt(_0x1e667a(0x192))/0xb*(-parseInt(_0x1e667a(0x1b7))/0xc);if(_0x10632e===_0x5d62a8)break;else _0x6ba462['push'](_0x6ba462['shift']());}catch(_0x3fb7bf){_0x6ba462['push'](_0x6ba462['shift']());}}}(a120_0x4b9e,0xe27df));import{formatRows}from'./formatters.js';import a120_0x3524e6 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20','showUrl':![],'getSegmentUrl':undefined};export function formatTree(_0x5dea91,_0x4fc82d={},_0x2d6df7=0x0,_0x52f29a=''){const _0x2a618a=a120_0x282f,_0x1685d0={...DEFAULT_OPTIONS,..._0x4fc82d},_0x331e4f=[],_0x3392ad=[..._0x5dea91][_0x2a618a(0x1a2)]((_0xe87375,_0x3bcc9f)=>_0xe87375[_0x2a618a(0x18c)][_0x2a618a(0x190)](_0x3bcc9f[_0x2a618a(0x18c)]));for(let _0x286f1e=0x0;_0x286f1e<_0x3392ad[_0x2a618a(0x1ae)];_0x286f1e++){const _0x3b19b0=_0x3392ad[_0x286f1e],_0x3c8246=_0x286f1e===_0x3392ad[_0x2a618a(0x1ae)]-0x1;let _0x227545='';_0x2d6df7>0x0&&(_0x227545+=_0x52f29a);_0x1685d0['showTreeLines']&&_0x2d6df7>0x0&&(_0x227545+=a120_0x3524e6[_0x2a618a(0x198)](_0x3c8246?_0x2a618a(0x193):_0x2a618a(0x1a3)));_0x1685d0[_0x2a618a(0x1a1)]&&(_0x227545+=_0x3b19b0['type']==='folder'?'πŸ“\x20':_0x2a618a(0x1a4));_0x227545+=_0x3b19b0[_0x2a618a(0x18c)];if(_0x1685d0[_0x2a618a(0x1b2)]){if(_0x3b19b0[_0x2a618a(0x1b6)]===_0x2a618a(0x189)){const _0x5b396f=[];_0x3b19b0[_0x2a618a(0x1b0)]['segmentCount']&&_0x5b396f['push'](_0x3b19b0[_0x2a618a(0x1b0)]['segmentCount']+_0x2a618a(0x1a0)+(_0x3b19b0[_0x2a618a(0x1b0)][_0x2a618a(0x1af)]!==0x1?'s':'')),_0x3b19b0['metadata'][_0x2a618a(0x1a8)]&&_0x5b396f['push'](_0x3b19b0[_0x2a618a(0x1b0)][_0x2a618a(0x1a8)]+'\x20folder'+(_0x3b19b0['metadata'][_0x2a618a(0x1a8)]!==0x1?'s':'')),_0x5b396f[_0x2a618a(0x1ae)]>0x0&&(_0x227545+=a120_0x3524e6[_0x2a618a(0x198)]('\x20('+_0x5b396f[_0x2a618a(0x199)](',\x20')+')'));}else _0x3b19b0['type']===_0x2a618a(0x1b9)&&_0x3b19b0[_0x2a618a(0x1b3)]!==undefined&&(_0x227545+=a120_0x3524e6[_0x2a618a(0x198)]('\x20('+formatRows(_0x3b19b0[_0x2a618a(0x1b3)])+')'));}_0x1685d0['showUrl']&&_0x1685d0[_0x2a618a(0x18b)]&&_0x3b19b0[_0x2a618a(0x1b6)]===_0x2a618a(0x1b9)&&(_0x227545+='\x20'+a120_0x3524e6[_0x2a618a(0x18d)](_0x1685d0[_0x2a618a(0x18b)](_0x3b19b0['id'])));_0x331e4f['push'](_0x227545);if(_0x3b19b0['children']&&_0x3b19b0[_0x2a618a(0x1b4)][_0x2a618a(0x1ae)]>0x0){let _0x315d28;if(_0x2d6df7===0x0)_0x315d28='';else _0x1685d0[_0x2a618a(0x195)]?_0x315d28=_0x52f29a+(_0x3c8246?_0x2a618a(0x1ba):a120_0x3524e6[_0x2a618a(0x198)]('β”‚')+_0x2a618a(0x191)):_0x315d28=_0x52f29a+_0x1685d0[_0x2a618a(0x19d)];const _0x961c78=formatTree(_0x3b19b0[_0x2a618a(0x1b4)],_0x1685d0,_0x2d6df7+0x1,_0x315d28);_0x331e4f['push'](_0x961c78);}}return _0x331e4f['join']('\x0a');}function a120_0x282f(_0x8b93bc,_0x5e548a){_0x8b93bc=_0x8b93bc-0x188;const _0x4b9e00=a120_0x4b9e();let _0x282fd7=_0x4b9e00[_0x8b93bc];return _0x282fd7;}export function formatFlatList(_0x45ffbc,_0x1db8dd,_0x3ea9e1={},_0x5a8edc=[]){const _0x427e24=a120_0x282f,_0x1177ad={...DEFAULT_OPTIONS,..._0x3ea9e1},_0x22a4bc=[];for(const _0x12e513 of _0x45ffbc){_0x22a4bc[_0x427e24(0x19a)]({'name':_0x12e513[_0x427e24(0x18c)],'icon':_0x1177ad['showIcons']?'πŸ“':'','metadata':undefined});}for(const _0xa1c54f of _0x1db8dd){const _0x33b6a1=_0x1177ad[_0x427e24(0x1b2)]&&_0xa1c54f[_0x427e24(0x1b3)]!==undefined?a120_0x3524e6['dim']('\x20('+formatRows(_0xa1c54f[_0x427e24(0x1b3)])+')'):'',_0xd70607=_0x1177ad[_0x427e24(0x19e)]&&_0x1177ad[_0x427e24(0x18b)]?_0x1177ad['getSegmentUrl'](_0xa1c54f['id']):undefined;_0x22a4bc[_0x427e24(0x19a)]({'name':_0xa1c54f['name'],'icon':_0x1177ad['showIcons']?'🎯':'','metadata':_0x33b6a1,'url':_0xd70607});}for(const _0x52a91e of _0x5a8edc){const _0x51cbca=getJourneyStateIndicator(_0x52a91e[_0x427e24(0x1ab)]),_0x44e638=_0x1177ad['showMetadata']?a120_0x3524e6['dim']('\x20'+_0x51cbca):'',_0x5816dd=_0x1177ad['showUrl']&&_0x1177ad[_0x427e24(0x1b1)]?_0x1177ad[_0x427e24(0x1b1)](_0x52a91e['id']):undefined;_0x22a4bc[_0x427e24(0x19a)]({'name':_0x52a91e['journeyBundleName'],'icon':_0x1177ad['showIcons']?'πŸ—ΊοΈ':'','metadata':_0x44e638,'url':_0x5816dd});}_0x22a4bc[_0x427e24(0x1a2)]((_0x128f70,_0x67daf6)=>_0x128f70[_0x427e24(0x18c)][_0x427e24(0x190)](_0x67daf6[_0x427e24(0x18c)]));if(_0x22a4bc[_0x427e24(0x1ae)]===0x0)return _0x427e24(0x1aa);const _0xadcf0b=_0x22a4bc[_0x427e24(0x18e)](_0x5b0266=>{const _0x4ef5c0=_0x427e24,_0x4ee01a=_0x5b0266[_0x4ef5c0(0x1a5)]?_0x5b0266['icon']+'\x20':'',_0x541ab7=_0x5b0266['metadata']||'',_0x40f96b=_0x5b0266[_0x4ef5c0(0x18f)]?'\x20'+a120_0x3524e6[_0x4ef5c0(0x18d)](_0x5b0266[_0x4ef5c0(0x18f)]):'';return''+_0x4ee01a+_0x5b0266['name']+_0x541ab7+_0x40f96b;});return _0xadcf0b[_0x427e24(0x199)]('\x0a');}function a120_0x4b9e(){const _0x367a69=['dim','join','push','796466oxjpbT','3006796WZUjeZ','indent','showUrl','6817914DwKecf','\x20segment','showIcons','sort','β”œβ”€β”€\x20','🎯\x20','icon','5FsbOqO','completed','folderCount','1dUMFbg','(empty)','state','413980UmdZly','10qmqpCS','length','segmentCount','metadata','getJourneyUrl','showMetadata','population','children','7894872zIbbHM','type','38604jlDosP','launched','segment','\x20\x20\x20\x20','(draft)','folder','(completed)','getSegmentUrl','name','cyan','map','url','localeCompare','\x20\x20\x20','4829VQgJDP','└──\x20','1559301TtaLnL','showTreeLines','8FtwGJm','paused'];a120_0x4b9e=function(){return _0x367a69;};return a120_0x4b9e();}function getJourneyStateIndicator(_0x471428){const _0x8510e7=a120_0x282f;switch(_0x471428){case'draft':return _0x8510e7(0x188);case _0x8510e7(0x1b8):return'(running)';case _0x8510e7(0x197):return'(paused)';case _0x8510e7(0x1a7):return _0x8510e7(0x18a);default:return'('+_0x471428+')';}}
1
+ function a120_0x3023(_0x2d5615,_0x207539){_0x2d5615=_0x2d5615-0xc9;const _0x8606e3=a120_0x8606();let _0x302314=_0x8606e3[_0x2d5615];return _0x302314;}(function(_0x44b43b,_0x4af7e8){const _0x2f9ecc=a120_0x3023,_0x2344e8=_0x44b43b();while(!![]){try{const _0x90a2f8=parseInt(_0x2f9ecc(0xf4))/0x1*(parseInt(_0x2f9ecc(0xdc))/0x2)+parseInt(_0x2f9ecc(0xcb))/0x3*(parseInt(_0x2f9ecc(0xed))/0x4)+-parseInt(_0x2f9ecc(0xcd))/0x5+parseInt(_0x2f9ecc(0xf0))/0x6+-parseInt(_0x2f9ecc(0xe3))/0x7+-parseInt(_0x2f9ecc(0xe9))/0x8+parseInt(_0x2f9ecc(0xda))/0x9;if(_0x90a2f8===_0x4af7e8)break;else _0x2344e8['push'](_0x2344e8['shift']());}catch(_0x1f7203){_0x2344e8['push'](_0x2344e8['shift']());}}}(a120_0x8606,0x61dee));import{formatRows}from'./formatters.js';import a120_0x2f51c8 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20','showUrl':![],'getSegmentUrl':undefined};export function formatTree(_0x249bf3,_0x171974={},_0x13897e=0x0,_0x51f247=''){const _0x989c88=a120_0x3023,_0xb98303={...DEFAULT_OPTIONS,..._0x171974},_0x11d31a=[],_0x46bc11=[..._0x249bf3][_0x989c88(0xd9)]((_0x319b00,_0x60add9)=>_0x319b00['name']['localeCompare'](_0x60add9[_0x989c88(0xd2)]));for(let _0x43eb40=0x0;_0x43eb40<_0x46bc11[_0x989c88(0xf3)];_0x43eb40++){const _0x384b17=_0x46bc11[_0x43eb40],_0x418d82=_0x43eb40===_0x46bc11[_0x989c88(0xf3)]-0x1;let _0x28d017='';_0x13897e>0x0&&(_0x28d017+=_0x51f247);_0xb98303[_0x989c88(0xde)]&&_0x13897e>0x0&&(_0x28d017+=a120_0x2f51c8[_0x989c88(0xe4)](_0x418d82?_0x989c88(0xca):_0x989c88(0xd6)));_0xb98303[_0x989c88(0xdb)]&&(_0x28d017+=_0x384b17[_0x989c88(0xe7)]==='folder'?_0x989c88(0xf5):_0x989c88(0xcc));_0x28d017+=_0x384b17['name'];if(_0xb98303[_0x989c88(0xcf)]){if(_0x384b17[_0x989c88(0xe7)]===_0x989c88(0xee)){const _0x2c3cd6=[];_0x384b17[_0x989c88(0xd0)][_0x989c88(0xe1)]&&_0x2c3cd6[_0x989c88(0xd7)](_0x384b17[_0x989c88(0xd0)][_0x989c88(0xe1)]+'\x20segment'+(_0x384b17[_0x989c88(0xd0)]['segmentCount']!==0x1?'s':'')),_0x384b17[_0x989c88(0xd0)][_0x989c88(0xd5)]&&_0x2c3cd6[_0x989c88(0xd7)](_0x384b17[_0x989c88(0xd0)][_0x989c88(0xd5)]+'\x20folder'+(_0x384b17[_0x989c88(0xd0)][_0x989c88(0xd5)]!==0x1?'s':'')),_0x2c3cd6[_0x989c88(0xf3)]>0x0&&(_0x28d017+=a120_0x2f51c8[_0x989c88(0xe4)]('\x20('+_0x2c3cd6[_0x989c88(0xdd)](',\x20')+')'));}else _0x384b17['type']===_0x989c88(0xc9)&&_0x384b17[_0x989c88(0xdf)]!==undefined&&(_0x28d017+=a120_0x2f51c8[_0x989c88(0xe4)]('\x20('+formatRows(_0x384b17[_0x989c88(0xdf)])+')'));}_0xb98303['showUrl']&&_0xb98303[_0x989c88(0xe6)]&&_0x384b17[_0x989c88(0xe7)]===_0x989c88(0xc9)&&(_0x28d017+='\x20'+a120_0x2f51c8[_0x989c88(0xec)](_0xb98303[_0x989c88(0xe6)](_0x384b17['id'])));_0x11d31a[_0x989c88(0xd7)](_0x28d017);if(_0x384b17[_0x989c88(0xd1)]&&_0x384b17['children'][_0x989c88(0xf3)]>0x0){let _0x19cc3f;if(_0x13897e===0x0)_0x19cc3f='';else _0xb98303['showTreeLines']?_0x19cc3f=_0x51f247+(_0x418d82?_0x989c88(0xd4):a120_0x2f51c8[_0x989c88(0xe4)]('β”‚')+_0x989c88(0xe5)):_0x19cc3f=_0x51f247+_0xb98303['indent'];const _0x18da98=formatTree(_0x384b17['children'],_0xb98303,_0x13897e+0x1,_0x19cc3f);_0x11d31a[_0x989c88(0xd7)](_0x18da98);}}return _0x11d31a['join']('\x0a');}export function formatFlatList(_0x201d9b,_0xd5b29,_0xc61327={},_0x59a79d=[]){const _0x15ffef=a120_0x3023,_0xb81fe0={...DEFAULT_OPTIONS,..._0xc61327},_0x5c03a8=[];for(const _0x35924c of _0x201d9b){_0x5c03a8['push']({'name':_0x35924c[_0x15ffef(0xd2)],'icon':_0xb81fe0[_0x15ffef(0xdb)]?'πŸ“':'','metadata':undefined});}for(const _0x43f543 of _0xd5b29){const _0x13d7b4=_0xb81fe0[_0x15ffef(0xcf)]&&_0x43f543['population']!==undefined?a120_0x2f51c8[_0x15ffef(0xe4)]('\x20('+formatRows(_0x43f543[_0x15ffef(0xdf)])+')'):'',_0x4089e4=_0xb81fe0[_0x15ffef(0xe0)]&&_0xb81fe0[_0x15ffef(0xe6)]?_0xb81fe0['getSegmentUrl'](_0x43f543['id']):undefined;_0x5c03a8[_0x15ffef(0xd7)]({'name':_0x43f543[_0x15ffef(0xd2)],'icon':_0xb81fe0[_0x15ffef(0xdb)]?'🎯':'','metadata':_0x13d7b4,'url':_0x4089e4});}for(const _0x554d55 of _0x59a79d){const _0x500acb=getJourneyStateIndicator(_0x554d55[_0x15ffef(0xf1)]),_0x527eaf=_0xb81fe0[_0x15ffef(0xcf)]?a120_0x2f51c8[_0x15ffef(0xe4)]('\x20'+_0x500acb):'',_0x51778c=_0xb81fe0[_0x15ffef(0xe0)]&&_0xb81fe0[_0x15ffef(0xea)]?_0xb81fe0[_0x15ffef(0xea)](_0x554d55['id']):undefined;_0x5c03a8['push']({'name':_0x554d55[_0x15ffef(0xe8)],'icon':_0xb81fe0[_0x15ffef(0xdb)]?'πŸ—ΊοΈ':'','metadata':_0x527eaf,'url':_0x51778c});}_0x5c03a8[_0x15ffef(0xd9)]((_0x2edd54,_0x319c52)=>_0x2edd54['name'][_0x15ffef(0xe2)](_0x319c52[_0x15ffef(0xd2)]));if(_0x5c03a8[_0x15ffef(0xf3)]===0x0)return _0x15ffef(0xd3);const _0xc878cf=_0x5c03a8['map'](_0x25e875=>{const _0x4eba3f=_0x15ffef,_0x9befcc=_0x25e875['icon']?_0x25e875[_0x4eba3f(0xef)]+'\x20':'',_0x51c0e7=_0x25e875['metadata']||'',_0x5a7281=_0x25e875['url']?'\x20'+a120_0x2f51c8[_0x4eba3f(0xec)](_0x25e875[_0x4eba3f(0xf2)]):'';return''+_0x9befcc+_0x25e875[_0x4eba3f(0xd2)]+_0x51c0e7+_0x5a7281;});return _0xc878cf[_0x15ffef(0xdd)]('\x0a');}function a120_0x8606(){const _0x2afbdd=['showMetadata','metadata','children','name','(empty)','\x20\x20\x20\x20','folderCount','β”œβ”€β”€\x20','push','paused','sort','2824587wAePJs','showIcons','6310oBwDgP','join','showTreeLines','population','showUrl','segmentCount','localeCompare','4059013YoyhbM','dim','\x20\x20\x20','getSegmentUrl','type','journeyBundleName','1629200hbMOqJ','getJourneyUrl','(paused)','cyan','4yjTxmH','folder','icon','163188CGMIpP','state','url','length','133reStqS','πŸ“\x20','(draft)','completed','segment','└──\x20','1718961LzxDAW','🎯\x20','746280QCMQHB','(running)'];a120_0x8606=function(){return _0x2afbdd;};return a120_0x8606();}function getJourneyStateIndicator(_0x4b0ace){const _0x5f57ae=a120_0x3023;switch(_0x4b0ace){case'draft':return _0x5f57ae(0xf6);case'launched':return _0x5f57ae(0xce);case _0x5f57ae(0xd8):return _0x5f57ae(0xeb);case _0x5f57ae(0xf7):return'(completed)';default:return'('+_0x4b0ace+')';}}
@@ -1 +1 @@
1
- const a121_0x969f96=a121_0x3e69;(function(_0x518a4c,_0x26f731){const _0x28d5fb=a121_0x3e69,_0x3789bf=_0x518a4c();while(!![]){try{const _0x39248f=parseInt(_0x28d5fb(0x158))/0x1+parseInt(_0x28d5fb(0x168))/0x2+parseInt(_0x28d5fb(0x16e))/0x3+-parseInt(_0x28d5fb(0x173))/0x4+-parseInt(_0x28d5fb(0x172))/0x5+-parseInt(_0x28d5fb(0x162))/0x6+parseInt(_0x28d5fb(0x160))/0x7*(-parseInt(_0x28d5fb(0x155))/0x8);if(_0x39248f===_0x26f731)break;else _0x3789bf['push'](_0x3789bf['shift']());}catch(_0x2e1d8b){_0x3789bf['push'](_0x3789bf['shift']());}}}(a121_0x2dc9,0x34d5e));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a121_0x414cb5 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a121_0x969f96(0x175),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x205445=a121_0x969f96,_0x1134e4=getCacheDir();return join(_0x1134e4,_0x205445(0x178));}function readCache(){const _0x21fd86=a121_0x969f96;try{const _0x324722=getCacheFilePath(),_0x64503a=readFileSync(_0x324722,_0x21fd86(0x179));return JSON[_0x21fd86(0x16c)](_0x64503a);}catch{return null;}}function writeCache(_0x3b863e){const _0x2b791c=a121_0x969f96;try{const _0x4a546a=getCacheDir();mkdirSync(_0x4a546a,{'recursive':!![]});const _0x2c1714={'lastCheck':new Date()[_0x2b791c(0x164)](),'latestVersion':_0x3b863e},_0x165e39=getCacheFilePath();writeFileSync(_0x165e39,JSON[_0x2b791c(0x163)](_0x2c1714,null,0x2),_0x2b791c(0x179));}catch{}}function a121_0x2dc9(){const _0x27411e=['last_version_check','utf-8','yellow','updateAvailable','37208FpSXen','npm\x20install\x20-g\x20@treasuredata/tdx@latest','getTime','417325TuwCoG','lastCheck','env','HTTP\x20','currentVersion','latestVersion','gray','version','140upXCQW','green','1589532aKmMDd','stringify','toISOString','\x0aUpdate\x20available:\x20','Request\x20timeout','error','241564nZCUpp','Update\x20available:','\x0aRun:\x20','statusCode','parse','stderr','1033371uDEUtL','dim','write','now','732445lFRabL','646876AYxCNI','end','https://registry.npmjs.org/@treasuredata/tdx/latest','Invalid\x20version\x20format','data'];a121_0x2dc9=function(){return _0x27411e;};return a121_0x2dc9();}function a121_0x3e69(_0x273a1c,_0x1bba9a){_0x273a1c=_0x273a1c-0x155;const _0x2dc98e=a121_0x2dc9();let _0x3e690a=_0x2dc98e[_0x273a1c];return _0x3e690a;}function isCacheValid(_0x5cca47){const _0x3e28a5=a121_0x969f96;if(!_0x5cca47)return![];const _0x350e46=new Date(_0x5cca47[_0x3e28a5(0x159)])[_0x3e28a5(0x157)](),_0x4a316d=Date[_0x3e28a5(0x171)]();return _0x4a316d-_0x350e46<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x2c452d,_0xaf2fe0)=>{const _0x3ffff5=a121_0x3e69,_0x54ca9c=get(NPM_REGISTRY_URL,_0x5aff56=>{const _0x571901=a121_0x3e69;if(_0x5aff56[_0x571901(0x16b)]!==0xc8){clearTimeout(_0x331ff7),_0xaf2fe0(new Error(_0x571901(0x15b)+_0x5aff56[_0x571901(0x16b)]));return;}let _0x65ffad='';_0x5aff56['on'](_0x571901(0x177),_0x175327=>{_0x65ffad+=_0x175327;}),_0x5aff56['on'](_0x571901(0x174),()=>{const _0x32f056=_0x571901;clearTimeout(_0x331ff7);try{const _0x1fda1b=JSON['parse'](_0x65ffad);if(!valid(_0x1fda1b[_0x32f056(0x15f)])){_0xaf2fe0(new Error(_0x32f056(0x176)));return;}_0x2c452d(_0x1fda1b[_0x32f056(0x15f)]);}catch(_0x2709f0){_0xaf2fe0(_0x2709f0);}});})['on'](_0x3ffff5(0x167),_0x41e5e4=>{clearTimeout(_0x331ff7),_0xaf2fe0(_0x41e5e4);}),_0x331ff7=setTimeout(()=>{const _0x538fc9=_0x3ffff5;_0x54ca9c['destroy'](),_0xaf2fe0(new Error(_0x538fc9(0x166)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x59d6ad){const _0x85f67d=a121_0x969f96;try{const _0x41fefe=readCache();if(isCacheValid(_0x41fefe)){const _0x156ebd=gt(_0x41fefe[_0x85f67d(0x15d)],_0x59d6ad);return{'updateAvailable':_0x156ebd,'currentVersion':_0x59d6ad,'latestVersion':_0x41fefe[_0x85f67d(0x15d)]};}const _0x357a8e=await fetchLatestVersion();writeCache(_0x357a8e);const _0x175fa4=gt(_0x357a8e,_0x59d6ad);return{'updateAvailable':_0x175fa4,'currentVersion':_0x59d6ad,'latestVersion':_0x357a8e};}catch{return null;}}export function displayUpdateNotification(_0x1603ca){const _0x2ccd97=a121_0x969f96;if(!_0x1603ca[_0x2ccd97(0x17b)])return;const _0x4f60b6=process[_0x2ccd97(0x16d)]['isTTY']&&!process[_0x2ccd97(0x15a)]['NO_COLOR'],_0x3099c9=_0x4f60b6?a121_0x414cb5[_0x2ccd97(0x15e)]('β†’'):'β†’',_0x18f392=_0x4f60b6?a121_0x414cb5[_0x2ccd97(0x16f)](_0x1603ca[_0x2ccd97(0x15c)]):_0x1603ca[_0x2ccd97(0x15c)],_0x4054f8=_0x4f60b6?a121_0x414cb5[_0x2ccd97(0x161)](_0x1603ca[_0x2ccd97(0x15d)]):_0x1603ca[_0x2ccd97(0x15d)],_0x3707b0=_0x4f60b6?a121_0x414cb5['cyan'](_0x2ccd97(0x156)):_0x2ccd97(0x156),_0x25d88c=_0x4f60b6?'\x0a'+a121_0x414cb5[_0x2ccd97(0x17a)](_0x2ccd97(0x169))+'\x20'+_0x18f392+'\x20'+_0x3099c9+'\x20'+_0x4054f8+'\x0a'+a121_0x414cb5[_0x2ccd97(0x16f)]('Run:')+'\x20'+_0x3707b0+'\x0a':_0x2ccd97(0x165)+_0x18f392+'\x20'+_0x3099c9+'\x20'+_0x4054f8+_0x2ccd97(0x16a)+_0x3707b0+'\x0a';process['stderr'][_0x2ccd97(0x170)](_0x25d88c);}
1
+ const a121_0xd34b1a=a121_0x8131;(function(_0x28c0c1,_0x4e533a){const _0x1f02b6=a121_0x8131,_0x30a870=_0x28c0c1();while(!![]){try{const _0x16734b=parseInt(_0x1f02b6(0x1f4))/0x1*(parseInt(_0x1f02b6(0x1ec))/0x2)+-parseInt(_0x1f02b6(0x1e5))/0x3+-parseInt(_0x1f02b6(0x1e3))/0x4+-parseInt(_0x1f02b6(0x1e6))/0x5+parseInt(_0x1f02b6(0x1ed))/0x6*(-parseInt(_0x1f02b6(0x1d6))/0x7)+-parseInt(_0x1f02b6(0x1e8))/0x8*(parseInt(_0x1f02b6(0x1de))/0x9)+parseInt(_0x1f02b6(0x1ea))/0xa;if(_0x16734b===_0x4e533a)break;else _0x30a870['push'](_0x30a870['shift']());}catch(_0x4cd3d5){_0x30a870['push'](_0x30a870['shift']());}}}(a121_0x31d7,0x5bfdc));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a121_0x31d7(){const _0x527d6b=['Update\x20available:','904wpjtwj','end','23191840gyTnoL','NO_COLOR','264566pzncog','492mApBpE','parse','getTime','stringify','HTTP\x20','toISOString','data','1pppiqr','isTTY','\x0aRun:\x20','npm\x20install\x20-g\x20@treasuredata/tdx@latest','\x0aUpdate\x20available:\x20','now','28693fRCvha','latestVersion','green','https://registry.npmjs.org/@treasuredata/tdx/latest','currentVersion','dim','version','statusCode','57573Kxbkpk','utf-8','cyan','gray','updateAvailable','1412336pFbkEF','stderr','1802454MwGTGl','308950PXKMui'];a121_0x31d7=function(){return _0x527d6b;};return a121_0x31d7();}import{gt,valid}from'semver';import a121_0x5c1846 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a121_0xd34b1a(0x1d9),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x1d765b=getCacheDir();return join(_0x1d765b,'last_version_check');}function readCache(){const _0x1037c1=a121_0xd34b1a;try{const _0x413dde=getCacheFilePath(),_0x3fc88c=readFileSync(_0x413dde,_0x1037c1(0x1df));return JSON[_0x1037c1(0x1ee)](_0x3fc88c);}catch{return null;}}function writeCache(_0x181d8d){const _0x2001d1=a121_0xd34b1a;try{const _0x579e31=getCacheDir();mkdirSync(_0x579e31,{'recursive':!![]});const _0x3530c6={'lastCheck':new Date()[_0x2001d1(0x1f2)](),'latestVersion':_0x181d8d},_0x4a8312=getCacheFilePath();writeFileSync(_0x4a8312,JSON[_0x2001d1(0x1f0)](_0x3530c6,null,0x2),_0x2001d1(0x1df));}catch{}}function isCacheValid(_0x4a663f){const _0x149217=a121_0xd34b1a;if(!_0x4a663f)return![];const _0x5f14c4=new Date(_0x4a663f['lastCheck'])[_0x149217(0x1ef)](),_0xa6fcca=Date[_0x149217(0x1d5)]();return _0xa6fcca-_0x5f14c4<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x136baa,_0x5892df)=>{const _0x390842=get(NPM_REGISTRY_URL,_0x35e111=>{const _0x229961=a121_0x8131;if(_0x35e111[_0x229961(0x1dd)]!==0xc8){clearTimeout(_0xb540b1),_0x5892df(new Error(_0x229961(0x1f1)+_0x35e111[_0x229961(0x1dd)]));return;}let _0x382ba4='';_0x35e111['on'](_0x229961(0x1f3),_0x1668b6=>{_0x382ba4+=_0x1668b6;}),_0x35e111['on'](_0x229961(0x1e9),()=>{const _0x4a4778=_0x229961;clearTimeout(_0xb540b1);try{const _0x53c794=JSON[_0x4a4778(0x1ee)](_0x382ba4);if(!valid(_0x53c794[_0x4a4778(0x1dc)])){_0x5892df(new Error('Invalid\x20version\x20format'));return;}_0x136baa(_0x53c794[_0x4a4778(0x1dc)]);}catch(_0x30b7c3){_0x5892df(_0x30b7c3);}});})['on']('error',_0x17ac49=>{clearTimeout(_0xb540b1),_0x5892df(_0x17ac49);}),_0xb540b1=setTimeout(()=>{_0x390842['destroy'](),_0x5892df(new Error('Request\x20timeout'));},TIMEOUT_MS);});}function a121_0x8131(_0x4c37b8,_0x14064e){_0x4c37b8=_0x4c37b8-0x1d1;const _0x31d79d=a121_0x31d7();let _0x8131c5=_0x31d79d[_0x4c37b8];return _0x8131c5;}export async function checkForUpdate(_0xd97a03){const _0x2fa364=a121_0xd34b1a;try{const _0x4c9211=readCache();if(isCacheValid(_0x4c9211)){const _0x9ddb73=gt(_0x4c9211[_0x2fa364(0x1d7)],_0xd97a03);return{'updateAvailable':_0x9ddb73,'currentVersion':_0xd97a03,'latestVersion':_0x4c9211[_0x2fa364(0x1d7)]};}const _0x397315=await fetchLatestVersion();writeCache(_0x397315);const _0x456f3f=gt(_0x397315,_0xd97a03);return{'updateAvailable':_0x456f3f,'currentVersion':_0xd97a03,'latestVersion':_0x397315};}catch{return null;}}export function displayUpdateNotification(_0x29069f){const _0x3fd7bb=a121_0xd34b1a;if(!_0x29069f[_0x3fd7bb(0x1e2)])return;const _0x3c4847=process[_0x3fd7bb(0x1e4)][_0x3fd7bb(0x1d1)]&&!process['env'][_0x3fd7bb(0x1eb)],_0x52c88e=_0x3c4847?a121_0x5c1846[_0x3fd7bb(0x1e1)]('β†’'):'β†’',_0x1d18b6=_0x3c4847?a121_0x5c1846[_0x3fd7bb(0x1db)](_0x29069f[_0x3fd7bb(0x1da)]):_0x29069f[_0x3fd7bb(0x1da)],_0x3961cd=_0x3c4847?a121_0x5c1846[_0x3fd7bb(0x1d8)](_0x29069f[_0x3fd7bb(0x1d7)]):_0x29069f[_0x3fd7bb(0x1d7)],_0x932b49=_0x3c4847?a121_0x5c1846[_0x3fd7bb(0x1e0)]('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x3fd7bb(0x1d3),_0x2a6d93=_0x3c4847?'\x0a'+a121_0x5c1846['yellow'](_0x3fd7bb(0x1e7))+'\x20'+_0x1d18b6+'\x20'+_0x52c88e+'\x20'+_0x3961cd+'\x0a'+a121_0x5c1846[_0x3fd7bb(0x1db)]('Run:')+'\x20'+_0x932b49+'\x0a':_0x3fd7bb(0x1d4)+_0x1d18b6+'\x20'+_0x52c88e+'\x20'+_0x3961cd+_0x3fd7bb(0x1d2)+_0x932b49+'\x0a';process[_0x3fd7bb(0x1e4)]['write'](_0x2a6d93);}
@@ -1 +1 @@
1
- const a122_0x5c3bcf=a122_0x27a7;function a122_0x27a7(_0x56cbcd,_0x2e8092){_0x56cbcd=_0x56cbcd-0x1ad;const _0x5e5e12=a122_0x5e5e();let _0x27a78d=_0x5e5e12[_0x56cbcd];return _0x27a78d;}(function(_0x2ce36f,_0x3df44f){const _0x21d7ec=a122_0x27a7,_0x18c764=_0x2ce36f();while(!![]){try{const _0x1f2671=parseInt(_0x21d7ec(0x1af))/0x1+parseInt(_0x21d7ec(0x1b0))/0x2+-parseInt(_0x21d7ec(0x1b3))/0x3+-parseInt(_0x21d7ec(0x1ad))/0x4*(parseInt(_0x21d7ec(0x1b2))/0x5)+-parseInt(_0x21d7ec(0x1b7))/0x6+parseInt(_0x21d7ec(0x1b6))/0x7+parseInt(_0x21d7ec(0x1b1))/0x8;if(_0x1f2671===_0x3df44f)break;else _0x18c764['push'](_0x18c764['shift']());}catch(_0x2dcccd){_0x18c764['push'](_0x18c764['shift']());}}}(a122_0x5e5e,0x4b859));export const WORKFLOW_FILE_EXTENSION=a122_0x5c3bcf(0x1b4);function a122_0x5e5e(){const _0x49339b=['1385755fJsfle','84726IIiLkY','4ORSwIh','.digdag','329606TnuwKL','536692kgLOHF','1674688VAfAdw','1903575UmrMQL','903240ZQYzBI','.dig','startsWith'];a122_0x5e5e=function(){return _0x49339b;};return a122_0x5e5e();}export function shouldIncludeInArchive(_0xbeb673){const _0x2b60cf=a122_0x5c3bcf;if(_0xbeb673===_0x2b60cf(0x1ae))return!![];if(_0xbeb673[_0x2b60cf(0x1b5)]('.'))return![];return!![];}
1
+ const a122_0x45b7a2=a122_0x2c3f;(function(_0x277393,_0x5628fa){const _0x47d330=a122_0x2c3f,_0x13c96f=_0x277393();while(!![]){try{const _0x2e03cd=-parseInt(_0x47d330(0x107))/0x1*(parseInt(_0x47d330(0x106))/0x2)+parseInt(_0x47d330(0x102))/0x3+-parseInt(_0x47d330(0x10e))/0x4*(-parseInt(_0x47d330(0x103))/0x5)+parseInt(_0x47d330(0x104))/0x6+-parseInt(_0x47d330(0x110))/0x7*(-parseInt(_0x47d330(0x10d))/0x8)+parseInt(_0x47d330(0x10c))/0x9*(parseInt(_0x47d330(0x10b))/0xa)+-parseInt(_0x47d330(0x10a))/0xb*(parseInt(_0x47d330(0x10f))/0xc);if(_0x2e03cd===_0x5628fa)break;else _0x13c96f['push'](_0x13c96f['shift']());}catch(_0x29b20e){_0x13c96f['push'](_0x13c96f['shift']());}}}(a122_0x267a,0x95a61));function a122_0x2c3f(_0x426089,_0x1b886d){_0x426089=_0x426089-0x102;const _0x267a2b=a122_0x267a();let _0x2c3f07=_0x267a2b[_0x426089];return _0x2c3f07;}function a122_0x267a(){const _0x5d2fb=['6134880mWqgUL','startsWith','1585938UlRIEL','1qmbhRq','.digdag','.dig','913wvUsud','564690xsFUMQ','144JMwkLq','1331720eLrifH','4NIcGzT','367548PQlOgp','21qDjidp','1779567OOHIwm','4647845sFHpHH'];a122_0x267a=function(){return _0x5d2fb;};return a122_0x267a();}export const WORKFLOW_FILE_EXTENSION=a122_0x45b7a2(0x109);export function shouldIncludeInArchive(_0x3bc785){const _0x6c0c50=a122_0x45b7a2;if(_0x3bc785===_0x6c0c50(0x108))return!![];if(_0x3bc785[_0x6c0c50(0x105)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
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": {