@treasuredata/tdx 2026.3.28 → 2026.3.29

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 (203) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-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/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.js +1 -1
  65. package/dist/core/profile.js +1 -1
  66. package/dist/core/project-config.js +1 -1
  67. package/dist/core/session.js +1 -1
  68. package/dist/core/user-cache.js +1 -1
  69. package/dist/core/version.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/mcp/server.js +1 -1
  72. package/dist/mcp/tools/index.js +1 -1
  73. package/dist/mcp/tools/tdx-run.js +1 -1
  74. package/dist/mcp/tools/tdx-search.js +1 -1
  75. package/dist/mcp/utils.js +1 -1
  76. package/dist/proxy/claude-usage-tracker.js +1 -1
  77. package/dist/proxy/passthrough-server.js +1 -1
  78. package/dist/proxy/sse-usage-parser.js +1 -1
  79. package/dist/sdk/agent/agent-config.js +1 -1
  80. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  81. package/dist/sdk/agent/agent-yaml.js +1 -1
  82. package/dist/sdk/agent/test/evaluator.js +1 -1
  83. package/dist/sdk/agent/test/executor.js +1 -1
  84. package/dist/sdk/agent/test/index.js +1 -1
  85. package/dist/sdk/agent/test/output.js +1 -1
  86. package/dist/sdk/agent/test/parser.js +1 -1
  87. package/dist/sdk/agent/tool-target-registry.js +1 -1
  88. package/dist/sdk/api.js +1 -1
  89. package/dist/sdk/client/cdp-api-client.js +1 -1
  90. package/dist/sdk/client/delivery-api-client.js +1 -1
  91. package/dist/sdk/client/endpoints.js +1 -1
  92. package/dist/sdk/client/engage-api-client.js +1 -1
  93. package/dist/sdk/client/http-client.js +1 -1
  94. package/dist/sdk/client/llm-api-client.js +1 -1
  95. package/dist/sdk/client/oauth-refresh.js +1 -1
  96. package/dist/sdk/client/rate-limiter.js +1 -1
  97. package/dist/sdk/client/td-api-client.js +1 -1
  98. package/dist/sdk/client/trino-api-client.js +1 -1
  99. package/dist/sdk/client/workflow-client.js +1 -1
  100. package/dist/sdk/connection-validator.js +1 -1
  101. package/dist/sdk/connection.js +1 -1
  102. package/dist/sdk/delivery.js +1 -1
  103. package/dist/sdk/engage/campaign-pull.js +1 -1
  104. package/dist/sdk/engage/campaign-push.js +1 -1
  105. package/dist/sdk/engage/campaign-validator.js +1 -1
  106. package/dist/sdk/engage/campaign-yaml.js +1 -1
  107. package/dist/sdk/engage/template-pull.js +1 -1
  108. package/dist/sdk/engage/template-push.js +1 -1
  109. package/dist/sdk/engage/template-validator.js +1 -1
  110. package/dist/sdk/engage/template-yaml.js +1 -1
  111. package/dist/sdk/engage/types/campaign-def.js +1 -1
  112. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  113. package/dist/sdk/engage/types/template-schema.js +1 -1
  114. package/dist/sdk/engage.js +1 -1
  115. package/dist/sdk/errors.js +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/io/index.js +1 -1
  118. package/dist/sdk/io/node-filesystem.js +1 -1
  119. package/dist/sdk/job.js +1 -1
  120. package/dist/sdk/journey.js +1 -1
  121. package/dist/sdk/llm/chat-cache.js +1 -1
  122. package/dist/sdk/llm/index.js +1 -1
  123. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  124. package/dist/sdk/llm/model-factors.js +1 -1
  125. package/dist/sdk/personalization.js +1 -1
  126. package/dist/sdk/policy.js +1 -1
  127. package/dist/sdk/query/index.js +1 -1
  128. package/dist/sdk/query/sql-parser.js +1 -1
  129. package/dist/sdk/realtime.js +1 -1
  130. package/dist/sdk/schedule.js +1 -1
  131. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  132. package/dist/sdk/segment/fields-display.js +1 -1
  133. package/dist/sdk/segment/file-discovery.js +1 -1
  134. package/dist/sdk/segment/journey-utils.js +1 -1
  135. package/dist/sdk/segment/journey-validator.js +1 -1
  136. package/dist/sdk/segment/journey-yaml.js +1 -1
  137. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  138. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  139. package/dist/sdk/segment/pull-workflow.js +1 -1
  140. package/dist/sdk/segment/push-recovery.js +1 -1
  141. package/dist/sdk/segment/push-workflow.js +1 -1
  142. package/dist/sdk/segment/resolution-context.js +1 -1
  143. package/dist/sdk/segment/segment-path-parser.js +1 -1
  144. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  145. package/dist/sdk/segment/segment-validator.js +1 -1
  146. package/dist/sdk/segment/target-resolution.js +1 -1
  147. package/dist/sdk/segment/tdx-config.js +1 -1
  148. package/dist/sdk/segment/types/activation-schema.js +1 -1
  149. package/dist/sdk/segment/types/journey-def.js +1 -1
  150. package/dist/sdk/segment/types/journey-schema.js +1 -1
  151. package/dist/sdk/segment/types/segment-def.js +1 -1
  152. package/dist/sdk/segment/types/segment-schema.js +1 -1
  153. package/dist/sdk/segment/validate-files.js +1 -1
  154. package/dist/sdk/segment/yaml-validator.js +1 -1
  155. package/dist/sdk/segment.js +1 -1
  156. package/dist/sdk/types/index.js +1 -1
  157. package/dist/sdk/types/progress.js +1 -1
  158. package/dist/sdk/user.js +1 -1
  159. package/dist/sdk/util/format-detector.js +1 -1
  160. package/dist/sdk/util/formatters.js +1 -1
  161. package/dist/sdk/util/index.js +1 -1
  162. package/dist/sdk/util/paginate.js +1 -1
  163. package/dist/sdk/util/tree-formatter.js +1 -1
  164. package/dist/sdk/workflow/archive-validation.js +1 -1
  165. package/dist/sdk/workflow/clone-workflow.js +1 -1
  166. package/dist/sdk/workflow/index.js +1 -1
  167. package/dist/sdk/workflow/pull-workflow.js +1 -1
  168. package/dist/sdk/workflow/push-workflow.js +1 -1
  169. package/dist/sdk/workflow/tdx-config.js +1 -1
  170. package/dist/sdk/workflow/workflow-utils.js +1 -1
  171. package/dist/test-utils/command-runner.js +1 -1
  172. package/dist/test-utils/factories.js +1 -1
  173. package/dist/test-utils/fixtures.js +1 -1
  174. package/dist/test-utils/http-mock.js +1 -1
  175. package/dist/test-utils/index.js +1 -1
  176. package/dist/utils/async.js +1 -1
  177. package/dist/utils/colors.js +1 -1
  178. package/dist/utils/diff.js +1 -1
  179. package/dist/utils/file-permissions.js +1 -1
  180. package/dist/utils/file-reader.js +1 -1
  181. package/dist/utils/github-releases.js +1 -1
  182. package/dist/utils/global-cache.js +1 -1
  183. package/dist/utils/json-loader.js +1 -1
  184. package/dist/utils/local-cache.js +1 -1
  185. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  186. package/dist/utils/logger/formatters/index.js +1 -1
  187. package/dist/utils/logger/handlers/console-handler.js +1 -1
  188. package/dist/utils/logger/handlers/file-handler.js +1 -1
  189. package/dist/utils/logger/handlers/index.js +1 -1
  190. package/dist/utils/logger/handlers/null-handler.js +1 -1
  191. package/dist/utils/logger/index.js +1 -1
  192. package/dist/utils/logger/logger.js +1 -1
  193. package/dist/utils/logger/types.js +1 -1
  194. package/dist/utils/option-validation.js +1 -1
  195. package/dist/utils/process.js +1 -1
  196. package/dist/utils/prompt.js +1 -1
  197. package/dist/utils/spinner.js +1 -1
  198. package/dist/utils/sse-parser.js +1 -1
  199. package/dist/utils/string-utils.js +1 -1
  200. package/dist/utils/table-ref-parser.js +1 -1
  201. package/dist/utils/tdx-logger.js +1 -1
  202. package/dist/utils/version-check.js +1 -1
  203. package/package.json +1 -1
@@ -1 +1 @@
1
- const a209_0x2b7244=a209_0x5bdc;(function(_0x18ec52,_0x218f8b){const _0x5c91af=a209_0x5bdc,_0x350a80=_0x18ec52();while(!![]){try{const _0x128f60=parseInt(_0x5c91af(0xf1))/0x1*(-parseInt(_0x5c91af(0xe6))/0x2)+parseInt(_0x5c91af(0xe4))/0x3*(parseInt(_0x5c91af(0xf9))/0x4)+-parseInt(_0x5c91af(0x103))/0x5*(parseInt(_0x5c91af(0x10d))/0x6)+-parseInt(_0x5c91af(0xf6))/0x7+parseInt(_0x5c91af(0xea))/0x8+parseInt(_0x5c91af(0x118))/0x9*(parseInt(_0x5c91af(0xda))/0xa)+parseInt(_0x5c91af(0xfe))/0xb*(parseInt(_0x5c91af(0xe5))/0xc);if(_0x128f60===_0x218f8b)break;else _0x350a80['push'](_0x350a80['shift']());}catch(_0x47166b){_0x350a80['push'](_0x350a80['shift']());}}}(a209_0x548f,0xc7600));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a209_0x2b7244(0xe8),a209_0x2b7244(0x100),'sh',a209_0x2b7244(0xeb),'ksh','tcsh',a209_0x2b7244(0xdc),'dash',a209_0x2b7244(0xfd),a209_0x2b7244(0xfa),'nu',a209_0x2b7244(0x10b),a209_0x2b7244(0xf4),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x2b7244(0x10a),a209_0x2b7244(0xdb),a209_0x2b7244(0xe1),'electron',a209_0x2b7244(0xf3)]);function getProcessInfoWindows(_0x3b4826){const _0x163f6d=a209_0x2b7244;try{if(!Number['isInteger'](_0x3b4826)||_0x3b4826<=0x0)return null;const _0x30d327=_0x163f6d(0xf2)+_0x3b4826+_0x163f6d(0xe7),_0x364726=execSync(_0x163f6d(0xe9)+_0x30d327+'\x22',{'encoding':_0x163f6d(0xdd),'windowsHide':!![],'stdio':[_0x163f6d(0x105),_0x163f6d(0x105),_0x163f6d(0x105)]})[_0x163f6d(0xfc)]();if(!_0x364726)return null;const [_0x24e524,..._0x3206a4]=_0x364726['split'](','),_0x5dd8af=parseInt(_0x24e524,0xa),_0x7fa703=_0x3206a4[_0x163f6d(0x108)](',')['trim']();if(isNaN(_0x5dd8af)||!_0x7fa703)return null;return{'pid':_0x3b4826,'ppid':_0x5dd8af,'comm':_0x7fa703['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x2e16cd){const _0x44a14a=a209_0x2b7244;try{const _0x3c479b=0x400000;if(!Number['isInteger'](_0x2e16cd)||_0x2e16cd<=0x0||_0x2e16cd>_0x3c479b)return null;const _0x30b93d=execSync('ps\x20-p\x20'+_0x2e16cd+_0x44a14a(0xe2),{'encoding':_0x44a14a(0xdd),'stdio':_0x44a14a(0x105)})[_0x44a14a(0xfc)](),[_0x3c78c8,..._0x4efb3b]=_0x30b93d[_0x44a14a(0x109)](/\s+/),_0xef7a7a=parseInt(_0x3c78c8,0xa),_0x10c555=_0x4efb3b[_0x44a14a(0x108)]('\x20');if(isNaN(_0xef7a7a))return null;return{'pid':_0x2e16cd,'ppid':_0xef7a7a,'comm':_0x10c555};}catch{return null;}}function getProcessInfo(_0x442584){const _0x5195bc=a209_0x2b7244;if(process[_0x5195bc(0x116)]===_0x5195bc(0x104))return getProcessInfoWindows(_0x442584);return getProcessInfoPosix(_0x442584);}function getBasename(_0x2c535f){const _0x3e11a4=a209_0x2b7244;return _0x2c535f[_0x3e11a4(0xed)](/^-/,'')[_0x3e11a4(0x109)]('/')[_0x3e11a4(0x10e)]()?.[_0x3e11a4(0x107)]()||'';}function a209_0x548f(){const _0x5dcc22=['powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','5496288SNRCnZ','fish','toString','replace','ignore','cmd.exe','isInteger','1619stfVkr','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','treasure\x20studio','elvish','unref','4599553BaRruV','map','Invalid\x20URL:\x20','120AMGCTI','powershell','has','trim','pwsh','1476244RCbheG','error','zsh','which','Unsupported\x20protocol:\x20','58495mqBKHP','win32','pipe','protocol','toLowerCase','join','split','claude','ion','exit','582AFSgMw','pop','where.exe','ppid','stderr','kill','href','stdout','comm','platform','pid','9ymuuRz','2088430KYseMf','code','csh','utf-8','test','data','open','cursor','\x20-o\x20ppid=,comm=','darwin','122127PldcOa','168vVRyNC','1714oNgpmK','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','bash'];a209_0x548f=function(){return _0x5dcc22;};return a209_0x548f();}function isShell(_0x3b107c){const _0xc5f8e0=a209_0x2b7244;return SHELL_NAMES[_0xc5f8e0(0xfb)](getBasename(_0x3b107c));}function isEphemeralShellSpawner(_0x5f8f5e){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x5f8f5e));}let cachedShellPID;function findShellPID(){const _0x370229=a209_0x2b7244;if(process[_0x370229(0x110)]===undefined)return process[_0x370229(0x117)];let _0x665346=process[_0x370229(0x110)];const _0x2b1893=0xa;let _0x436fc2=0x0;while(_0x436fc2<_0x2b1893){const _0xc2a8a9=getProcessInfo(_0x665346);if(!_0xc2a8a9)break;if(isShell(_0xc2a8a9['comm'])){const _0x209c4d=getProcessInfo(_0xc2a8a9['ppid']);if(_0x209c4d&&isEphemeralShellSpawner(_0x209c4d['comm'])){_0x665346=_0xc2a8a9[_0x370229(0x110)],_0x436fc2++;continue;}return _0xc2a8a9[_0x370229(0x117)];}if(_0xc2a8a9[_0x370229(0x110)]===0x0||_0xc2a8a9[_0x370229(0x110)]===0x1){if(isShell(_0xc2a8a9[_0x370229(0x115)]))return _0xc2a8a9[_0x370229(0x117)];break;}_0x665346=_0xc2a8a9[_0x370229(0x110)],_0x436fc2++;}return process[_0x370229(0x110)]!==undefined?process[_0x370229(0x110)]:process[_0x370229(0x117)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4c14c1){const _0x44a7db=a209_0x2b7244;if(!Number[_0x44a7db(0xf0)](_0x4c14c1)||_0x4c14c1<=0x0)return![];try{return process[_0x44a7db(0x112)](_0x4c14c1,0x0),!![];}catch{return![];}}export function openBrowser(_0xcea9a8){const _0x3093e8=a209_0x2b7244;let _0x4f1b0e;try{_0x4f1b0e=new URL(_0xcea9a8);}catch{throw new Error(_0x3093e8(0xf8)+_0xcea9a8);}if(_0x4f1b0e['protocol']!=='http:'&&_0x4f1b0e[_0x3093e8(0x106)]!=='https:')throw new Error(_0x3093e8(0x102)+_0x4f1b0e[_0x3093e8(0x106)]);const _0x2a2bda=_0x4f1b0e[_0x3093e8(0x113)],_0x475d1c=process[_0x3093e8(0x116)];if(_0x475d1c===_0x3093e8(0x104))spawn(_0x3093e8(0xef),['/c','start','',_0x2a2bda],{'detached':!![],'stdio':'ignore'})['unref']();else{const _0x134950=_0x475d1c===_0x3093e8(0xe3)?_0x3093e8(0xe0):'xdg-open';spawn(_0x134950,[_0x2a2bda],{'detached':!![],'stdio':_0x3093e8(0xee)})[_0x3093e8(0xf5)]();}}export function isWindows(){const _0x91182=a209_0x2b7244;return process['platform']===_0x91182(0x104);}export function getCrossSpawnOptions(_0x4df312){return{..._0x4df312??{},'shell':isWindows()};}export function escapeWindowsArg(_0x40373a){const _0x449b38=a209_0x2b7244;if(!/[ \t"&|<>^%!`\r\n]/[_0x449b38(0xde)](_0x40373a))return _0x40373a;const _0xa88277=_0x40373a[_0x449b38(0xed)](/"/g,'\x22\x22');return'\x22'+_0xa88277+'\x22';}export function crossSpawn(_0x3fca32,_0x2d150b,_0x23aa9a){const _0x58607a=a209_0x2b7244;if(isWindows()){const _0x4743ce=escapeWindowsArg(_0x3fca32),_0x5cfac7=_0x2d150b[_0x58607a(0xf7)](escapeWindowsArg),_0xc225b6=[_0x4743ce,..._0x5cfac7][_0x58607a(0x108)]('\x20');return spawn(_0xc225b6,[],{..._0x23aa9a,'shell':!![]});}return spawn(_0x3fca32,_0x2d150b,{..._0x23aa9a,'shell':![]});}function a209_0x5bdc(_0x298c71,_0x3f0bbb){_0x298c71=_0x298c71-0xda;const _0x548f17=a209_0x548f();let _0x5bdc34=_0x548f17[_0x298c71];return _0x5bdc34;}export function gracefulExit(_0xa8f1d6=0x0){const _0x4e624a=a209_0x2b7244;isWindows()?setTimeout(()=>process['exit'](_0xa8f1d6),0x32):process[_0x4e624a(0x10c)](_0xa8f1d6);}export function findExecutable(_0x32c918,_0x27eb5d=0x1388){return new Promise(_0x514b92=>{const _0x119260=a209_0x5bdc,_0x47e868=isWindows()?_0x119260(0x10f):_0x119260(0x101);let _0x1443ed=![];const _0x4332f5=crossSpawn(_0x47e868,[_0x32c918],{'stdio':_0x119260(0x105),'shell':isWindows()}),_0x3d9494=setTimeout(()=>{const _0x4b7562=_0x119260;!_0x1443ed&&(_0x1443ed=!![],_0x4332f5[_0x4b7562(0x112)](),_0x514b92(null));},_0x27eb5d);let _0x507147='';_0x4332f5[_0x119260(0x114)]?.['on'](_0x119260(0xdf),_0xacae88=>{const _0x2a96dd=_0x119260;_0x507147+=_0xacae88[_0x2a96dd(0xec)]();}),_0x4332f5[_0x119260(0x111)]?.['on']('data',()=>{}),_0x4332f5['on']('exit',_0x219805=>{const _0x5da2e9=_0x119260;if(_0x1443ed)return;_0x1443ed=!![],clearTimeout(_0x3d9494);if(_0x219805===0x0&&_0x507147[_0x5da2e9(0xfc)]()){const _0x1c7688=_0x507147[_0x5da2e9(0xfc)]()[_0x5da2e9(0x109)](/\r?\n/)[0x0];_0x514b92(_0x1c7688);}else _0x514b92(null);}),_0x4332f5['on'](_0x119260(0xff),()=>{if(_0x1443ed)return;_0x1443ed=!![],clearTimeout(_0x3d9494),_0x514b92(null);});});}
1
+ function a209_0x2b6d(_0x488de8,_0x57ddb1){_0x488de8=_0x488de8-0xb2;const _0x506fec=a209_0x506f();let _0x2b6d88=_0x506fec[_0x488de8];return _0x2b6d88;}const a209_0xfe8d69=a209_0x2b6d;(function(_0x1e56e1,_0x2f187a){const _0x5dbd7b=a209_0x2b6d,_0x39a390=_0x1e56e1();while(!![]){try{const _0x5fae=parseInt(_0x5dbd7b(0xd7))/0x1+-parseInt(_0x5dbd7b(0xe8))/0x2+-parseInt(_0x5dbd7b(0xc9))/0x3+parseInt(_0x5dbd7b(0xc2))/0x4+parseInt(_0x5dbd7b(0xb8))/0x5+-parseInt(_0x5dbd7b(0xe7))/0x6*(-parseInt(_0x5dbd7b(0xea))/0x7)+-parseInt(_0x5dbd7b(0xdf))/0x8*(-parseInt(_0x5dbd7b(0xc3))/0x9);if(_0x5fae===_0x2f187a)break;else _0x39a390['push'](_0x39a390['shift']());}catch(_0x10babe){_0x39a390['push'](_0x39a390['shift']());}}}(a209_0x506f,0xd8204));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a209_0xfe8d69(0xe3),a209_0xfe8d69(0xd2),'sh','fish',a209_0xfe8d69(0xd3),a209_0xfe8d69(0xe1),a209_0xfe8d69(0xb4),a209_0xfe8d69(0xcb),a209_0xfe8d69(0xb2),a209_0xfe8d69(0xc5),'nu',a209_0xfe8d69(0xe2),'elvish',a209_0xfe8d69(0xde)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0xfe8d69(0xe9),a209_0xfe8d69(0xeb),a209_0xfe8d69(0xb6),a209_0xfe8d69(0xce),a209_0xfe8d69(0xbb)]);function getProcessInfoWindows(_0x461ce5){const _0x354d1b=a209_0xfe8d69;try{if(!Number['isInteger'](_0x461ce5)||_0x461ce5<=0x0)return null;const _0x22f471='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x461ce5+_0x354d1b(0xdd),_0x49a520=execSync(_0x354d1b(0xd6)+_0x22f471+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x354d1b(0xb9),_0x354d1b(0xb9),_0x354d1b(0xb9)]})['trim']();if(!_0x49a520)return null;const [_0x6c31df,..._0x43b58d]=_0x49a520[_0x354d1b(0xbe)](','),_0x245cad=parseInt(_0x6c31df,0xa),_0x30f60d=_0x43b58d[_0x354d1b(0xc7)](',')[_0x354d1b(0xc8)]();if(isNaN(_0x245cad)||!_0x30f60d)return null;return{'pid':_0x461ce5,'ppid':_0x245cad,'comm':_0x30f60d[_0x354d1b(0xcc)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x7126c1){const _0x1706b1=a209_0xfe8d69;try{const _0x243dca=0x400000;if(!Number[_0x1706b1(0xe6)](_0x7126c1)||_0x7126c1<=0x0||_0x7126c1>_0x243dca)return null;const _0x478147=execSync('ps\x20-p\x20'+_0x7126c1+_0x1706b1(0xb5),{'encoding':_0x1706b1(0xba),'stdio':_0x1706b1(0xb9)})[_0x1706b1(0xc8)](),[_0x14e8de,..._0x1182f0]=_0x478147[_0x1706b1(0xbe)](/\s+/),_0x39f27a=parseInt(_0x14e8de,0xa),_0x1a92e2=_0x1182f0[_0x1706b1(0xc7)]('\x20');if(isNaN(_0x39f27a))return null;return{'pid':_0x7126c1,'ppid':_0x39f27a,'comm':_0x1a92e2};}catch{return null;}}function getProcessInfo(_0x24124f){const _0x46d85c=a209_0xfe8d69;if(process[_0x46d85c(0xb3)]==='win32')return getProcessInfoWindows(_0x24124f);return getProcessInfoPosix(_0x24124f);}function getBasename(_0x37a3da){const _0xab5874=a209_0xfe8d69;return _0x37a3da[_0xab5874(0xcc)](/^-/,'')[_0xab5874(0xbe)]('/')['pop']()?.['toLowerCase']()||'';}function isShell(_0x4bf8d0){const _0x2f797b=a209_0xfe8d69;return SHELL_NAMES[_0x2f797b(0xdb)](getBasename(_0x4bf8d0));}function isEphemeralShellSpawner(_0x2a5615){const _0x56d6e8=a209_0xfe8d69;return EPHEMERAL_SHELL_SPAWNERS[_0x56d6e8(0xdb)](getBasename(_0x2a5615));}let cachedShellPID;function findShellPID(){const _0x6d7754=a209_0xfe8d69;if(process['ppid']===undefined)return process['pid'];let _0x2da2c5=process[_0x6d7754(0xe5)];const _0x4d93b9=0xa;let _0x58aa64=0x0;while(_0x58aa64<_0x4d93b9){const _0x21926a=getProcessInfo(_0x2da2c5);if(!_0x21926a)break;if(isShell(_0x21926a[_0x6d7754(0xc4)])){const _0x1f247c=getProcessInfo(_0x21926a[_0x6d7754(0xe5)]);if(_0x1f247c&&isEphemeralShellSpawner(_0x1f247c[_0x6d7754(0xc4)])){_0x2da2c5=_0x21926a[_0x6d7754(0xe5)],_0x58aa64++;continue;}return _0x21926a['pid'];}if(_0x21926a[_0x6d7754(0xe5)]===0x0||_0x21926a[_0x6d7754(0xe5)]===0x1){if(isShell(_0x21926a[_0x6d7754(0xc4)]))return _0x21926a[_0x6d7754(0xc1)];break;}_0x2da2c5=_0x21926a[_0x6d7754(0xe5)],_0x58aa64++;}return process[_0x6d7754(0xe5)]!==undefined?process[_0x6d7754(0xe5)]:process[_0x6d7754(0xc1)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x449872){const _0x2634c5=a209_0xfe8d69;if(!Number[_0x2634c5(0xe6)](_0x449872)||_0x449872<=0x0)return![];try{return process['kill'](_0x449872,0x0),!![];}catch{return![];}}export function openBrowser(_0x5ef7b6){const _0x75a7d3=a209_0xfe8d69;let _0x5dc07f;try{_0x5dc07f=new URL(_0x5ef7b6);}catch{throw new Error(_0x75a7d3(0xc0)+_0x5ef7b6);}if(_0x5dc07f[_0x75a7d3(0xc6)]!==_0x75a7d3(0xed)&&_0x5dc07f[_0x75a7d3(0xc6)]!==_0x75a7d3(0xd1))throw new Error(_0x75a7d3(0xbd)+_0x5dc07f[_0x75a7d3(0xc6)]);const _0x4b76c9=_0x5dc07f['href'],_0x275273=process[_0x75a7d3(0xb3)];if(_0x275273==='win32')spawn(_0x75a7d3(0xe4),['/c',_0x75a7d3(0xd5),'',_0x4b76c9],{'detached':!![],'stdio':_0x75a7d3(0xda)})[_0x75a7d3(0xd4)]();else{const _0x1441c0=_0x275273===_0x75a7d3(0xbc)?_0x75a7d3(0xec):_0x75a7d3(0xcf);spawn(_0x1441c0,[_0x4b76c9],{'detached':!![],'stdio':_0x75a7d3(0xda)})[_0x75a7d3(0xd4)]();}}export function isWindows(){const _0x4784b6=a209_0xfe8d69;return process[_0x4784b6(0xb3)]===_0x4784b6(0xd0);}function a209_0x506f(){const _0x574694=['toString','4688105iIknpR','pipe','utf-8','treasure\x20studio','darwin','Unsupported\x20protocol:\x20','split','test','Invalid\x20URL:\x20','pid','360708NlPblM','9udJRrw','comm','powershell','protocol','join','trim','3518784WXAIzF','stdout','dash','replace','kill','electron','xdg-open','win32','https:','zsh','ksh','unref','start','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','90172dyIRcu','data','error','ignore','has','where.exe','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','xonsh','2596592tLBKjO','exit','tcsh','ion','bash','cmd.exe','ppid','isInteger','2844DtktLT','1147260arIGrq','claude','17563aJbJLj','code','open','http:','pwsh','platform','csh','\x20-o\x20ppid=,comm=','cursor'];a209_0x506f=function(){return _0x574694;};return a209_0x506f();}export function getCrossSpawnOptions(_0x228d42){return{..._0x228d42??{},'shell':isWindows()};}export function escapeWindowsArg(_0x1e7269){const _0x1fd26a=a209_0xfe8d69;if(!/[ \t"&|<>^%!`\r\n]/[_0x1fd26a(0xbf)](_0x1e7269))return _0x1e7269;const _0x12cc70=_0x1e7269[_0x1fd26a(0xcc)](/"/g,'\x22\x22');return'\x22'+_0x12cc70+'\x22';}export function crossSpawn(_0x39842a,_0xc6423b,_0x4063aa){const _0x3796e3=a209_0xfe8d69;if(isWindows()){const _0x8e0ae1=escapeWindowsArg(_0x39842a),_0x5b6283=_0xc6423b['map'](escapeWindowsArg),_0x482461=[_0x8e0ae1,..._0x5b6283][_0x3796e3(0xc7)]('\x20');return spawn(_0x482461,[],{..._0x4063aa,'shell':!![]});}return spawn(_0x39842a,_0xc6423b,{..._0x4063aa,'shell':![]});}export function gracefulExit(_0x17aa2d=0x0){const _0x24989b=a209_0xfe8d69;isWindows()?setTimeout(()=>process[_0x24989b(0xe0)](_0x17aa2d),0x32):process[_0x24989b(0xe0)](_0x17aa2d);}export function findExecutable(_0x53d104,_0x34d05a=0x1388){return new Promise(_0x585b78=>{const _0x2c726b=a209_0x2b6d,_0x5ef39c=isWindows()?_0x2c726b(0xdc):'which';let _0x748138=![];const _0x4dbbe6=crossSpawn(_0x5ef39c,[_0x53d104],{'stdio':_0x2c726b(0xb9),'shell':isWindows()}),_0x1ab6fa=setTimeout(()=>{const _0x5c9766=_0x2c726b;!_0x748138&&(_0x748138=!![],_0x4dbbe6[_0x5c9766(0xcd)](),_0x585b78(null));},_0x34d05a);let _0x3a5421='';_0x4dbbe6[_0x2c726b(0xca)]?.['on']('data',_0x5728b6=>{const _0x3f7e46=_0x2c726b;_0x3a5421+=_0x5728b6[_0x3f7e46(0xb7)]();}),_0x4dbbe6['stderr']?.['on'](_0x2c726b(0xd8),()=>{}),_0x4dbbe6['on']('exit',_0x44ba63=>{const _0x55e47f=_0x2c726b;if(_0x748138)return;_0x748138=!![],clearTimeout(_0x1ab6fa);if(_0x44ba63===0x0&&_0x3a5421[_0x55e47f(0xc8)]()){const _0x39cf74=_0x3a5421[_0x55e47f(0xc8)]()['split'](/\r?\n/)[0x0];_0x585b78(_0x39cf74);}else _0x585b78(null);}),_0x4dbbe6['on'](_0x2c726b(0xd9),()=>{if(_0x748138)return;_0x748138=!![],clearTimeout(_0x1ab6fa),_0x585b78(null);});});}
@@ -1 +1 @@
1
- function a210_0x4f8c(_0x158188,_0x28af8e){_0x158188=_0x158188-0x16c;const _0x1cdb71=a210_0x1cdb();let _0x4f8ccf=_0x1cdb71[_0x158188];return _0x4f8ccf;}(function(_0x3625a2,_0x360359){const _0x392bad=a210_0x4f8c,_0x13e1e3=_0x3625a2();while(!![]){try{const _0x6915e4=-parseInt(_0x392bad(0x172))/0x1*(parseInt(_0x392bad(0x170))/0x2)+-parseInt(_0x392bad(0x16d))/0x3*(-parseInt(_0x392bad(0x183))/0x4)+parseInt(_0x392bad(0x17f))/0x5*(-parseInt(_0x392bad(0x178))/0x6)+-parseInt(_0x392bad(0x16c))/0x7+-parseInt(_0x392bad(0x185))/0x8*(-parseInt(_0x392bad(0x173))/0x9)+-parseInt(_0x392bad(0x17d))/0xa+parseInt(_0x392bad(0x16f))/0xb;if(_0x6915e4===_0x360359)break;else _0x13e1e3['push'](_0x13e1e3['shift']());}catch(_0xe2431f){_0x13e1e3['push'](_0x13e1e3['shift']());}}}(a210_0x1cdb,0x8bbb9));function a210_0x1cdb(){const _0x3cb111=['206411GvWwCM','7299PWSHPU','resume','close','isTTY','createInterface','106530COeebb','pause','stdout','toLowerCase','yes','2602690KXsrGN','\x20(y/N):\x20','105dzIivN','setEncoding','stderr','question','8548uGeJYB','data','5048BXoFtT','stdin','setRawMode','3423784zdOJFM','423MyauCF','utf8','11967274NnEuqa','2eVWtaz','write'];a210_0x1cdb=function(){return _0x3cb111;};return a210_0x1cdb();}import*as a210_0x3501b0 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x5d327f=a210_0x4f8c;return process[_0x5d327f(0x186)][_0x5d327f(0x176)]===!![];}export async function confirm(_0x4fafd1){const _0x5cd90e=a210_0x4f8c,_0x633202=a210_0x3501b0[_0x5cd90e(0x177)]({'input':process[_0x5cd90e(0x186)],'output':process[_0x5cd90e(0x17a)]});return new Promise(_0x352703=>{const _0x15ec27=_0x5cd90e;_0x633202[_0x15ec27(0x182)](_0x4fafd1+_0x15ec27(0x17e),_0x16a423=>{const _0xfd7c94=_0x15ec27;_0x633202[_0xfd7c94(0x175)](),_0x352703(_0x16a423[_0xfd7c94(0x17b)]()==='y'||_0x16a423[_0xfd7c94(0x17b)]()===_0xfd7c94(0x17c));});});}export async function confirmKey(_0x16425a){const _0x238ef6=a210_0x4f8c;if(!process[_0x238ef6(0x186)][_0x238ef6(0x176)])return![];return process[_0x238ef6(0x181)][_0x238ef6(0x171)](_0x16425a+'\x20[y/N]\x20'),new Promise(_0x497526=>{const _0x573ac9=_0x238ef6,_0x20b5db=process['stdin'];_0x20b5db[_0x573ac9(0x187)](!![]),_0x20b5db[_0x573ac9(0x174)](),_0x20b5db[_0x573ac9(0x180)](_0x573ac9(0x16e));const _0x59a2fe=_0x4bfff7=>{const _0xca628f=_0x573ac9;_0x20b5db[_0xca628f(0x187)](![]),_0x20b5db[_0xca628f(0x179)](),_0x20b5db['removeListener'](_0xca628f(0x184),_0x59a2fe);if(_0x4bfff7==='\x1b'){process[_0xca628f(0x181)][_0xca628f(0x171)]('\x0a'),_0x497526(![]);return;}_0x4bfff7==='\x03'&&(process['stderr']['write']('\x0a'),gracefulExit(0x82));if(_0x4bfff7[_0xca628f(0x17b)]()==='y'){process[_0xca628f(0x181)][_0xca628f(0x171)]('y\x0a'),_0x497526(!![]);return;}process[_0xca628f(0x181)][_0xca628f(0x171)]('\x0a'),_0x497526(![]);};_0x20b5db['on'](_0x573ac9(0x184),_0x59a2fe);});}
1
+ (function(_0x5b9da5,_0x1cec95){const _0x301f3c=a210_0x1081,_0x19540b=_0x5b9da5();while(!![]){try{const _0x575595=-parseInt(_0x301f3c(0x171))/0x1+-parseInt(_0x301f3c(0x16b))/0x2*(-parseInt(_0x301f3c(0x17b))/0x3)+-parseInt(_0x301f3c(0x17f))/0x4+-parseInt(_0x301f3c(0x179))/0x5+parseInt(_0x301f3c(0x17a))/0x6+-parseInt(_0x301f3c(0x16d))/0x7+parseInt(_0x301f3c(0x174))/0x8;if(_0x575595===_0x1cec95)break;else _0x19540b['push'](_0x19540b['shift']());}catch(_0x14ece3){_0x19540b['push'](_0x19540b['shift']());}}}(a210_0x50fa,0x4ddf0));function a210_0x1081(_0xd2faa1,_0x5bc703){_0xd2faa1=_0xd2faa1-0x16a;const _0x50fade=a210_0x50fa();let _0x108194=_0x50fade[_0xd2faa1];return _0x108194;}import*as a210_0x9dd2e6 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x4512d0=a210_0x1081;return process[_0x4512d0(0x177)][_0x4512d0(0x16a)]===!![];}function a210_0x50fa(){const _0x4f3d3c=['\x20[y/N]\x20','5305240ATAbTi','createInterface','stdout','stdin','\x20(y/N):\x20','1634680PuYvjm','1384206wDQxDO','989895JNcoqh','toLowerCase','removeListener','close','654516AvIVOK','write','isTTY','2PDyMXS','setRawMode','1584898xeCVzI','data','stderr','yes','187882gkvsYV','resume'];a210_0x50fa=function(){return _0x4f3d3c;};return a210_0x50fa();}export async function confirm(_0x38df56){const _0x48ebff=a210_0x1081,_0x45fa56=a210_0x9dd2e6[_0x48ebff(0x175)]({'input':process[_0x48ebff(0x177)],'output':process[_0x48ebff(0x176)]});return new Promise(_0x1e3bfa=>{const _0x16642d=_0x48ebff;_0x45fa56['question'](_0x38df56+_0x16642d(0x178),_0x423bba=>{const _0x295513=_0x16642d;_0x45fa56[_0x295513(0x17e)](),_0x1e3bfa(_0x423bba[_0x295513(0x17c)]()==='y'||_0x423bba[_0x295513(0x17c)]()===_0x295513(0x170));});});}export async function confirmKey(_0x3cd0a6){const _0x1d49c1=a210_0x1081;if(!process[_0x1d49c1(0x177)][_0x1d49c1(0x16a)])return![];return process[_0x1d49c1(0x16f)]['write'](_0x3cd0a6+_0x1d49c1(0x173)),new Promise(_0x55289c=>{const _0x245600=_0x1d49c1,_0x5229be=process[_0x245600(0x177)];_0x5229be[_0x245600(0x16c)](!![]),_0x5229be[_0x245600(0x172)](),_0x5229be['setEncoding']('utf8');const _0x5a939f=_0x55bdc4=>{const _0x43ad8a=_0x245600;_0x5229be[_0x43ad8a(0x16c)](![]),_0x5229be['pause'](),_0x5229be[_0x43ad8a(0x17d)](_0x43ad8a(0x16e),_0x5a939f);if(_0x55bdc4==='\x1b'){process[_0x43ad8a(0x16f)][_0x43ad8a(0x180)]('\x0a'),_0x55289c(![]);return;}_0x55bdc4==='\x03'&&(process[_0x43ad8a(0x16f)][_0x43ad8a(0x180)]('\x0a'),gracefulExit(0x82));if(_0x55bdc4[_0x43ad8a(0x17c)]()==='y'){process['stderr'][_0x43ad8a(0x180)]('y\x0a'),_0x55289c(!![]);return;}process['stderr']['write']('\x0a'),_0x55289c(![]);};_0x5229be['on'](_0x245600(0x16e),_0x5a939f);});}
@@ -1 +1 @@
1
- (function(_0x2c7371,_0x561a9b){const _0x5950f9=a211_0x457d,_0x4ac993=_0x2c7371();while(!![]){try{const _0x3e26ad=-parseInt(_0x5950f9(0x15a))/0x1+-parseInt(_0x5950f9(0x167))/0x2+parseInt(_0x5950f9(0x176))/0x3*(parseInt(_0x5950f9(0x160))/0x4)+-parseInt(_0x5950f9(0x16a))/0x5+parseInt(_0x5950f9(0x161))/0x6*(parseInt(_0x5950f9(0x16c))/0x7)+-parseInt(_0x5950f9(0x15e))/0x8+-parseInt(_0x5950f9(0x15c))/0x9*(-parseInt(_0x5950f9(0x166))/0xa);if(_0x3e26ad===_0x561a9b)break;else _0x4ac993['push'](_0x4ac993['shift']());}catch(_0x2bbe2b){_0x4ac993['push'](_0x4ac993['shift']());}}}(a211_0x48b8,0x80ebc));import a211_0x39b4db from'ora';function a211_0x48b8(){const _0x15c476=['stderr','isSpinning','extra','3CyRMTb','163287yzoRsY','intervalFactory','63369ZfcOwa','isTTY','7961808zQoLRl','...','182884ENmsBX','192frBEib','clock','now','trim','toFixed','3210sbreMs','1305096DOQRzd','start','phase','40045oBraPA','Processing','9023idcShh','jobId','stop','text','\x20[Job\x20ID:\x20','replace','floor'];a211_0x48b8=function(){return _0x15c476;};return a211_0x48b8();}import{isWindows}from'./process.js';function a211_0x457d(_0x5b1e19,_0x1538c9){_0x5b1e19=_0x5b1e19-0x15a;const _0x48b8eb=a211_0x48b8();let _0x457d49=_0x48b8eb[_0x5b1e19];return _0x457d49;}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x2571df,_0x32e528={}){const _0x12d7c1=a211_0x457d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x32e528;return a211_0x39b4db({'text':_0x2571df,'color':'cyan','stream':process[_0x12d7c1(0x173)],'isEnabled':forceEnabled||process['stderr'][_0x12d7c1(0x15d)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x5364e9,_0x2391d0,_0x320b46={}){const _0x2bc5b1=a211_0x457d,_0x3e9a4b=_0x320b46[_0x2bc5b1(0x162)]??(()=>Date['now']()),_0x5ddf91=createCommandSpinner(_0x5364e9,_0x320b46);_0x5ddf91[_0x2bc5b1(0x168)]();const _0xc1c61f=_0x3e9a4b();try{const _0x4ab5ec=await _0x2391d0(),_0x360dfd=_0x3e9a4b()-_0xc1c61f;return _0x5ddf91[_0x2bc5b1(0x16e)](),{'data':_0x4ab5ec,'elapsedMs':_0x360dfd};}catch(_0x2f0991){_0x5ddf91[_0x2bc5b1(0x16e)]();throw _0x2f0991;}}export async function withProgressSpinner(_0xce9970,_0x45f3eb,_0x3c2700={}){const _0x284232=a211_0x457d,_0x2e31bc=_0x3c2700['clock']??(()=>Date[_0x284232(0x163)]()),_0x28e59c=_0x3c2700[_0x284232(0x15b)]??setInterval,_0x4147ef=createCommandSpinner(_0xce9970,_0x3c2700);_0x4147ef[_0x284232(0x168)]();const _0x17a83a=_0x2e31bc(),_0x5374f7=_0xce9970[_0x284232(0x171)](_0x284232(0x15f),'')[_0x284232(0x164)]()||_0x284232(0x16b),_0x1a1cdd={};let _0x531d1c=_0xce9970;const _0x25bc0b=()=>{const _0x550a13=_0x284232;if(!_0x4147ef['isSpinning'])return;const _0x4d7333=_0x2e31bc()-_0x17a83a,_0x16ed40=formatElapsed(_0x4d7333),_0x3a3644=_0x1a1cdd[_0x550a13(0x169)]?.[_0x550a13(0x164)]()||_0x5374f7,_0x3c8d22=_0x1a1cdd[_0x550a13(0x16d)]?_0x550a13(0x170)+_0x1a1cdd[_0x550a13(0x16d)]+']':'',_0x5b32de=_0x1a1cdd[_0x550a13(0x175)]?'\x20'+_0x1a1cdd[_0x550a13(0x175)]:'',_0x16164f=_0x3a3644+'\x20'+_0x16ed40+_0x5b32de+_0x3c8d22;_0x16164f!==_0x531d1c&&_0x16164f[_0x550a13(0x164)]()&&(_0x4147ef['text']=_0x16164f,_0x531d1c=_0x16164f);},_0x4bdd04=_0x28e59c(()=>{_0x25bc0b();},0x3e8),_0x30a293={'setPhase':_0x4c6479=>{const _0x1b793d=_0x284232;_0x1a1cdd[_0x1b793d(0x169)]=_0x4c6479;const _0x5c5678=_0x4c6479?.[_0x1b793d(0x164)]()||_0x5374f7,_0x2b36ba=_0x2e31bc()-_0x17a83a,_0x97a3f9=formatElapsed(_0x2b36ba),_0x428be8=_0x1a1cdd['jobId']?'\x20[Job\x20ID:\x20'+_0x1a1cdd[_0x1b793d(0x16d)]+']':'',_0x48b259=_0x1a1cdd[_0x1b793d(0x175)]?'\x20'+_0x1a1cdd[_0x1b793d(0x175)]:'',_0x3b3df0=_0x5c5678+'\x20'+_0x97a3f9+_0x48b259+_0x428be8;_0x4147ef[_0x1b793d(0x174)]&&_0x3b3df0['trim']()&&(_0x4147ef[_0x1b793d(0x16f)]=_0x3b3df0,_0x531d1c=_0x3b3df0);},'setJobId':_0x2cb762=>{const _0x147c17=_0x284232;_0x1a1cdd[_0x147c17(0x16d)]=_0x2cb762,_0x25bc0b();},'setExtra':_0x5d625a=>{_0x1a1cdd['extra']=_0x5d625a,_0x25bc0b();}};_0x25bc0b();try{const _0xc4fd25=await _0x45f3eb(_0x30a293),_0x537542=_0x2e31bc()-_0x17a83a;return{'data':_0xc4fd25,'elapsedMs':_0x537542};}finally{clearInterval(_0x4bdd04),_0x4147ef[_0x284232(0x16e)]();}}export function formatElapsed(_0x2b19de){const _0x575dd6=a211_0x457d,_0x50d3c0=Math[_0x575dd6(0x172)](_0x2b19de/0x3e8);if(_0x50d3c0<0x3c)return(_0x2b19de/0x3e8)[_0x575dd6(0x165)](0x1)+'s';const _0xb758ed=Math[_0x575dd6(0x172)](_0x50d3c0/0x3c),_0x1621de=_0x50d3c0%0x3c;if(_0xb758ed<0x3c)return _0xb758ed+'m\x20'+_0x1621de+'s';const _0x14817f=Math[_0x575dd6(0x172)](_0xb758ed/0x3c),_0x1bc599=_0xb758ed%0x3c;return _0x14817f+'h\x20'+_0x1bc599+'m';}
1
+ (function(_0x2826e7,_0x1261b1){const _0x53cf3e=a211_0x1180,_0x5dee08=_0x2826e7();while(!![]){try{const _0x157055=-parseInt(_0x53cf3e(0x14c))/0x1+parseInt(_0x53cf3e(0x146))/0x2+parseInt(_0x53cf3e(0x145))/0x3+parseInt(_0x53cf3e(0x136))/0x4+-parseInt(_0x53cf3e(0x134))/0x5*(-parseInt(_0x53cf3e(0x138))/0x6)+parseInt(_0x53cf3e(0x142))/0x7*(-parseInt(_0x53cf3e(0x131))/0x8)+parseInt(_0x53cf3e(0x132))/0x9*(parseInt(_0x53cf3e(0x13e))/0xa);if(_0x157055===_0x1261b1)break;else _0x5dee08['push'](_0x5dee08['shift']());}catch(_0x162657){_0x5dee08['push'](_0x5dee08['shift']());}}}(a211_0xf24b,0x713f6));function a211_0xf24b(){const _0x3aaef8=['replace','290frIlFI','clock','500720mohecL','phase','3366xOcyhv','text','stop','isSpinning','cyan','floor','8300aenGGO','intervalFactory','Processing','toFixed','39403RNpaiM','start','stderr','1584141AuDmPR','1563996LgxeUk','extra','trim','jobId','now','\x20[Job\x20ID:\x20','802930MNzFzx','472UnxJPM','1422lObTUW'];a211_0xf24b=function(){return _0x3aaef8;};return a211_0xf24b();}import a211_0xb866d4 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x86b0cd,_0x5e4527={}){const _0x5613a3=a211_0x1180,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5e4527;return a211_0xb866d4({'text':_0x86b0cd,'color':_0x5613a3(0x13c),'stream':process[_0x5613a3(0x144)],'isEnabled':forceEnabled||process[_0x5613a3(0x144)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a211_0x1180(_0x20f987,_0xea1008){_0x20f987=_0x20f987-0x131;const _0xf24b88=a211_0xf24b();let _0x11808d=_0xf24b88[_0x20f987];return _0x11808d;}export async function withSpinner(_0x15b817,_0x5d7c69,_0x2edbd0={}){const _0x4b97ac=a211_0x1180,_0x116cf3=_0x2edbd0[_0x4b97ac(0x135)]??(()=>Date[_0x4b97ac(0x14a)]()),_0x3af802=createCommandSpinner(_0x15b817,_0x2edbd0);_0x3af802[_0x4b97ac(0x143)]();const _0x2c9d2e=_0x116cf3();try{const _0x116ae2=await _0x5d7c69(),_0x995d2d=_0x116cf3()-_0x2c9d2e;return _0x3af802[_0x4b97ac(0x13a)](),{'data':_0x116ae2,'elapsedMs':_0x995d2d};}catch(_0x4c9271){_0x3af802['stop']();throw _0x4c9271;}}export async function withProgressSpinner(_0x3b5517,_0x65c3b1,_0x26a8da={}){const _0x159ec0=a211_0x1180,_0x389af8=_0x26a8da[_0x159ec0(0x135)]??(()=>Date[_0x159ec0(0x14a)]()),_0x15e0a1=_0x26a8da[_0x159ec0(0x13f)]??setInterval,_0x5a466b=createCommandSpinner(_0x3b5517,_0x26a8da);_0x5a466b[_0x159ec0(0x143)]();const _0x1c43cf=_0x389af8(),_0xec9948=_0x3b5517[_0x159ec0(0x133)]('...','')[_0x159ec0(0x148)]()||_0x159ec0(0x140),_0x6ef5d2={};let _0x5af235=_0x3b5517;const _0x365de4=()=>{const _0x1d06e3=_0x159ec0;if(!_0x5a466b[_0x1d06e3(0x13b)])return;const _0x1e512c=_0x389af8()-_0x1c43cf,_0x300af3=formatElapsed(_0x1e512c),_0x5e8614=_0x6ef5d2[_0x1d06e3(0x137)]?.[_0x1d06e3(0x148)]()||_0xec9948,_0x1ae88d=_0x6ef5d2[_0x1d06e3(0x149)]?_0x1d06e3(0x14b)+_0x6ef5d2[_0x1d06e3(0x149)]+']':'',_0x1f2463=_0x6ef5d2[_0x1d06e3(0x147)]?'\x20'+_0x6ef5d2[_0x1d06e3(0x147)]:'',_0x97296d=_0x5e8614+'\x20'+_0x300af3+_0x1f2463+_0x1ae88d;_0x97296d!==_0x5af235&&_0x97296d[_0x1d06e3(0x148)]()&&(_0x5a466b[_0x1d06e3(0x139)]=_0x97296d,_0x5af235=_0x97296d);},_0x2592ab=_0x15e0a1(()=>{_0x365de4();},0x3e8),_0x1ad76f={'setPhase':_0x37c560=>{const _0x149aa6=_0x159ec0;_0x6ef5d2[_0x149aa6(0x137)]=_0x37c560;const _0xc2fe92=_0x37c560?.[_0x149aa6(0x148)]()||_0xec9948,_0x44137a=_0x389af8()-_0x1c43cf,_0x25b70e=formatElapsed(_0x44137a),_0x42f93e=_0x6ef5d2[_0x149aa6(0x149)]?_0x149aa6(0x14b)+_0x6ef5d2[_0x149aa6(0x149)]+']':'',_0x3cd0b1=_0x6ef5d2[_0x149aa6(0x147)]?'\x20'+_0x6ef5d2[_0x149aa6(0x147)]:'',_0x3055be=_0xc2fe92+'\x20'+_0x25b70e+_0x3cd0b1+_0x42f93e;_0x5a466b[_0x149aa6(0x13b)]&&_0x3055be[_0x149aa6(0x148)]()&&(_0x5a466b['text']=_0x3055be,_0x5af235=_0x3055be);},'setJobId':_0x1368fe=>{_0x6ef5d2['jobId']=_0x1368fe,_0x365de4();},'setExtra':_0x3a8101=>{const _0x1ac9e9=_0x159ec0;_0x6ef5d2[_0x1ac9e9(0x147)]=_0x3a8101,_0x365de4();}};_0x365de4();try{const _0x520836=await _0x65c3b1(_0x1ad76f),_0x43da71=_0x389af8()-_0x1c43cf;return{'data':_0x520836,'elapsedMs':_0x43da71};}finally{clearInterval(_0x2592ab),_0x5a466b[_0x159ec0(0x13a)]();}}export function formatElapsed(_0x2cb820){const _0x4a7783=a211_0x1180,_0x32e79b=Math[_0x4a7783(0x13d)](_0x2cb820/0x3e8);if(_0x32e79b<0x3c)return(_0x2cb820/0x3e8)[_0x4a7783(0x141)](0x1)+'s';const _0x576c69=Math[_0x4a7783(0x13d)](_0x32e79b/0x3c),_0x4f48d9=_0x32e79b%0x3c;if(_0x576c69<0x3c)return _0x576c69+'m\x20'+_0x4f48d9+'s';const _0x32fd07=Math['floor'](_0x576c69/0x3c),_0x1d2b3f=_0x576c69%0x3c;return _0x32fd07+'h\x20'+_0x1d2b3f+'m';}
@@ -1 +1 @@
1
- function a212_0x242c(){const _0x1809c3=['5pbApZz','event','data','pop','356442qetFNG','1733992nZbUON','split','parse','[LLM\x20API\x20SSE]\x20','1880670mFfcbF','body','3336222DCezFx','startsWith','3906091LSUqaZ','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','releaseLock','976518KrRCaq','debug','892560vPgbeB','slice'];a212_0x242c=function(){return _0x1809c3;};return a212_0x242c();}function a212_0x5678(_0x115931,_0x5338b8){_0x115931=_0x115931-0x1af;const _0x242c24=a212_0x242c();let _0x56789b=_0x242c24[_0x115931];return _0x56789b;}(function(_0xc7536d,_0x1a8545){const _0x3d2566=a212_0x5678,_0x58dc97=_0xc7536d();while(!![]){try{const _0x2fcf7f=parseInt(_0x3d2566(0x1c1))/0x1+-parseInt(_0x3d2566(0x1b9))/0x2+parseInt(_0x3d2566(0x1b2))/0x3+-parseInt(_0x3d2566(0x1bb))/0x4+parseInt(_0x3d2566(0x1bd))/0x5*(-parseInt(_0x3d2566(0x1b4))/0x6)+parseInt(_0x3d2566(0x1b6))/0x7+parseInt(_0x3d2566(0x1c2))/0x8;if(_0x2fcf7f===_0x1a8545)break;else _0x58dc97['push'](_0x58dc97['shift']());}catch(_0x1d8a33){_0x58dc97['push'](_0x58dc97['shift']());}}}(a212_0x242c,0x77ca2));export async function*parseSSEStream(_0x597975,_0x1c8696){const _0x1b4387=a212_0x5678;if(!_0x597975[_0x1b4387(0x1b3)])throw new Error('Response\x20body\x20is\x20null');const _0x37e574=_0x597975[_0x1b4387(0x1b3)]['getReader'](),_0x25763b=new TextDecoder();let _0x5ee396='',_0x4573dd={};try{while(!![]){const {done:_0x352e60,value:_0x15e63c}=await _0x37e574['read']();if(_0x352e60){if(_0x4573dd[_0x1b4387(0x1bf)]){_0x1c8696?.['debug'](_0x1b4387(0x1b1)+_0x4573dd[_0x1b4387(0x1bf)]);const _0x777ae=parseSSEData(_0x4573dd[_0x1b4387(0x1bf)]);yield _0x777ae;}break;}_0x5ee396+=_0x25763b['decode'](_0x15e63c,{'stream':!![]});const _0x5ae66b=_0x5ee396[_0x1b4387(0x1af)]('\x0a');_0x5ee396=_0x5ae66b[_0x1b4387(0x1c0)]()||'';for(const _0x27fc2f of _0x5ae66b){if(_0x27fc2f['trim']()===''){if(_0x4573dd[_0x1b4387(0x1bf)]){_0x1c8696?.[_0x1b4387(0x1ba)](_0x1b4387(0x1b1)+_0x4573dd[_0x1b4387(0x1bf)]);const _0x415e46=parseSSEData(_0x4573dd[_0x1b4387(0x1bf)]);yield _0x415e46,_0x4573dd={};}continue;}if(_0x27fc2f[_0x1b4387(0x1b5)](':'))continue;const _0x4762e4=_0x27fc2f['indexOf'](':');if(_0x4762e4===-0x1)continue;const _0x30398b=_0x27fc2f[_0x1b4387(0x1bc)](0x0,_0x4762e4);let _0x2794dc=_0x27fc2f[_0x1b4387(0x1bc)](_0x4762e4+0x1);_0x2794dc['startsWith']('\x20')&&(_0x2794dc=_0x2794dc[_0x1b4387(0x1bc)](0x1));switch(_0x30398b){case _0x1b4387(0x1be):_0x4573dd[_0x1b4387(0x1be)]=_0x2794dc;break;case'data':_0x4573dd[_0x1b4387(0x1bf)]=_0x4573dd[_0x1b4387(0x1bf)]?_0x4573dd[_0x1b4387(0x1bf)]+'\x0a'+_0x2794dc:_0x2794dc;break;case'id':_0x4573dd['id']=_0x2794dc;break;}}}}finally{_0x37e574[_0x1b4387(0x1b8)]();}}function parseSSEData(_0x314eee){const _0x61153e=a212_0x5678;try{return JSON[_0x61153e(0x1b0)](_0x314eee);}catch(_0x23d8f8){throw new Error(_0x61153e(0x1b7)+_0x314eee,{'cause':_0x23d8f8});}}
1
+ (function(_0x2a74cc,_0x2369e5){const _0x30af36=a212_0x3da5,_0x2c453a=_0x2a74cc();while(!![]){try{const _0x4f0d6c=-parseInt(_0x30af36(0x1cb))/0x1*(parseInt(_0x30af36(0x1d6))/0x2)+parseInt(_0x30af36(0x1cc))/0x3*(parseInt(_0x30af36(0x1c1))/0x4)+parseInt(_0x30af36(0x1ce))/0x5+-parseInt(_0x30af36(0x1c6))/0x6+parseInt(_0x30af36(0x1c2))/0x7*(-parseInt(_0x30af36(0x1c3))/0x8)+parseInt(_0x30af36(0x1c5))/0x9*(-parseInt(_0x30af36(0x1d7))/0xa)+parseInt(_0x30af36(0x1c4))/0xb;if(_0x4f0d6c===_0x2369e5)break;else _0x2c453a['push'](_0x2c453a['shift']());}catch(_0x596001){_0x2c453a['push'](_0x2c453a['shift']());}}}(a212_0x5d1a,0x6594a));export async function*parseSSEStream(_0x363db6,_0x189b47){const _0x12e8b5=a212_0x3da5;if(!_0x363db6[_0x12e8b5(0x1d5)])throw new Error(_0x12e8b5(0x1c7));const _0x4153cc=_0x363db6[_0x12e8b5(0x1d5)]['getReader'](),_0x2b0527=new TextDecoder();let _0x52cd41='',_0x7b5bfc={};try{while(!![]){const {done:_0xf05d96,value:_0x4f54ce}=await _0x4153cc['read']();if(_0xf05d96){if(_0x7b5bfc[_0x12e8b5(0x1d3)]){_0x189b47?.[_0x12e8b5(0x1c9)](_0x12e8b5(0x1d4)+_0x7b5bfc[_0x12e8b5(0x1d3)]);const _0x2ea603=parseSSEData(_0x7b5bfc[_0x12e8b5(0x1d3)]);yield _0x2ea603;}break;}_0x52cd41+=_0x2b0527['decode'](_0x4f54ce,{'stream':!![]});const _0x41fdb9=_0x52cd41['split']('\x0a');_0x52cd41=_0x41fdb9[_0x12e8b5(0x1d9)]()||'';for(const _0x5fffea of _0x41fdb9){if(_0x5fffea[_0x12e8b5(0x1d1)]()===''){if(_0x7b5bfc[_0x12e8b5(0x1d3)]){_0x189b47?.[_0x12e8b5(0x1c9)](_0x12e8b5(0x1d4)+_0x7b5bfc[_0x12e8b5(0x1d3)]);const _0x4e869e=parseSSEData(_0x7b5bfc[_0x12e8b5(0x1d3)]);yield _0x4e869e,_0x7b5bfc={};}continue;}if(_0x5fffea[_0x12e8b5(0x1ca)](':'))continue;const _0x12b1e9=_0x5fffea[_0x12e8b5(0x1d8)](':');if(_0x12b1e9===-0x1)continue;const _0x28bd7c=_0x5fffea[_0x12e8b5(0x1d0)](0x0,_0x12b1e9);let _0x494dfb=_0x5fffea[_0x12e8b5(0x1d0)](_0x12b1e9+0x1);_0x494dfb[_0x12e8b5(0x1ca)]('\x20')&&(_0x494dfb=_0x494dfb['slice'](0x1));switch(_0x28bd7c){case _0x12e8b5(0x1c8):_0x7b5bfc[_0x12e8b5(0x1c8)]=_0x494dfb;break;case _0x12e8b5(0x1d3):_0x7b5bfc[_0x12e8b5(0x1d3)]=_0x7b5bfc[_0x12e8b5(0x1d3)]?_0x7b5bfc[_0x12e8b5(0x1d3)]+'\x0a'+_0x494dfb:_0x494dfb;break;case'id':_0x7b5bfc['id']=_0x494dfb;break;}}}}finally{_0x4153cc[_0x12e8b5(0x1d2)]();}}function a212_0x5d1a(){const _0x25407d=['3437LEMkkk','10464ZdIgBw','11678590NiyYzE','18NsZRFQ','2976702bsxnNM','Response\x20body\x20is\x20null','event','debug','startsWith','1pTTaum','807TNfvjP','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','85255QoSqMq','parse','slice','trim','releaseLock','data','[LLM\x20API\x20SSE]\x20','body','27490hgMdDd','257680dQfQRo','indexOf','pop','8044MqeMez'];a212_0x5d1a=function(){return _0x25407d;};return a212_0x5d1a();}function a212_0x3da5(_0x42d4f8,_0x23f14f){_0x42d4f8=_0x42d4f8-0x1c1;const _0x5d1abb=a212_0x5d1a();let _0x3da50a=_0x5d1abb[_0x42d4f8];return _0x3da50a;}function parseSSEData(_0x32943d){const _0x43d124=a212_0x3da5;try{return JSON[_0x43d124(0x1cf)](_0x32943d);}catch(_0x41365c){throw new Error(_0x43d124(0x1cd)+_0x32943d,{'cause':_0x41365c});}}
@@ -1 +1 @@
1
- function a213_0x389d(){const _0x3fc3c6=['trim','toLowerCase','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','repeat','4QoMVDg','1360807cdKvUZ','370pkKJRR','237348TGyuXC','827568DaDQSp','216954JEfBOK','unknown','padStart','38cAidFd','Cannot\x20escape\x20empty\x20string\x20literal','1092882TzYljp','random','toString','224GKICTg','floor','length','2610ZFvejt','replace'];a213_0x389d=function(){return _0x3fc3c6;};return a213_0x389d();}(function(_0x56d8b5,_0xe0b717){const _0x12fdf1=a213_0x5413,_0x37cfe2=_0x56d8b5();while(!![]){try{const _0x28e56f=-parseInt(_0x12fdf1(0x1a8))/0x1*(-parseInt(_0x12fdf1(0x1b0))/0x2)+-parseInt(_0x12fdf1(0x1b2))/0x3+-parseInt(_0x12fdf1(0x1b5))/0x4*(parseInt(_0x12fdf1(0x1a1))/0x5)+parseInt(_0x12fdf1(0x1ad))/0x6+-parseInt(_0x12fdf1(0x1a9))/0x7+-parseInt(_0x12fdf1(0x1ac))/0x8+parseInt(_0x12fdf1(0x1ab))/0x9*(parseInt(_0x12fdf1(0x1aa))/0xa);if(_0x28e56f===_0xe0b717)break;else _0x37cfe2['push'](_0x37cfe2['shift']());}catch(_0x34d42f){_0x37cfe2['push'](_0x37cfe2['shift']());}}}(a213_0x389d,0x4e472));import a213_0x19ba1c from'string-width';export function stringWidth(_0x226135){return a213_0x19ba1c(_0x226135);}export function padEnd(_0x39fa12,_0x54b839){const _0x13bffb=a213_0x5413,_0xcbca8=stringWidth(_0x39fa12);if(_0xcbca8>=_0x54b839)return _0x39fa12;return _0x39fa12+'\x20'[_0x13bffb(0x1a7)](_0x54b839-_0xcbca8);}export function padStart(_0x4f0273,_0x19b187){const _0x1e57e3=a213_0x5413,_0x385747=stringWidth(_0x4f0273);if(_0x385747>=_0x19b187)return _0x4f0273;return'\x20'[_0x1e57e3(0x1a7)](_0x19b187-_0x385747)+_0x4f0273;}export function centerAlign(_0x5a826f,_0x162d3f){const _0x4c1a1f=a213_0x5413,_0x5bad6f=stringWidth(_0x5a826f);if(_0x5bad6f>_0x162d3f){if(_0x162d3f<=0x1)return'…'['substring'](0x0,_0x162d3f);let _0x13f6ad=_0x5a826f;while(stringWidth(_0x13f6ad+'…')>_0x162d3f){_0x13f6ad=_0x13f6ad['slice'](0x0,-0x1);}return _0x13f6ad+'…';}if(_0x5bad6f===_0x162d3f)return _0x5a826f;const _0x35bfc5=_0x162d3f-_0x5bad6f,_0x578b0f=Math[_0x4c1a1f(0x1b6)](_0x35bfc5/0x2),_0x3c40bd=_0x35bfc5-_0x578b0f;return'\x20'[_0x4c1a1f(0x1a7)](_0x578b0f)+_0x5a826f+'\x20'[_0x4c1a1f(0x1a7)](_0x3c40bd);}export function escapeStringLiteral(_0x5067c2){const _0x482f5d=a213_0x5413;if(!_0x5067c2||_0x5067c2[_0x482f5d(0x1a3)]()[_0x482f5d(0x1a0)]===0x0)throw new Error(_0x482f5d(0x1b1));const _0xa04800=_0x5067c2[_0x482f5d(0x1a2)](/'/g,'\x27\x27');return'\x27'+_0xa04800+'\x27';}export function globToLike(_0xa897c3){const _0x4f8ea2=a213_0x5413;let _0x329c30=_0xa897c3[_0x4f8ea2(0x1a2)](/\\/g,'\x5c\x5c')[_0x4f8ea2(0x1a2)](/%/g,'\x5c%')[_0x4f8ea2(0x1a2)](/_/g,'\x5c_');return _0x329c30=_0x329c30['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x329c30;}export function buildLikePattern(_0x11d031){const _0x50d562=a213_0x5413;if(!_0x11d031||_0x11d031[_0x50d562(0x1a3)]()[_0x50d562(0x1a0)]===0x0)throw new Error(_0x50d562(0x1a6));const _0x41c707=globToLike(_0x11d031),_0x39e50e=_0x41c707[_0x50d562(0x1a2)](/'/g,'\x27\x27');return'\x27'+_0x39e50e+'\x27';}function a213_0x5413(_0xe63666,_0x5d39ca){_0xe63666=_0xe63666-0x1a0;const _0x389d8e=a213_0x389d();let _0x5413e0=_0x389d8e[_0xe63666];return _0x5413e0;}export function matchGlobPattern(_0x26c463,_0x455981){const _0x17c691=a213_0x5413,_0x53f2cb=_0x455981[_0x17c691(0x1a2)](/[.+^${}()|[\]\\]/g,_0x17c691(0x1a5))[_0x17c691(0x1a2)](/\*/g,'.*')[_0x17c691(0x1a2)](/\?/g,'.'),_0x2ffd83=new RegExp('^'+_0x53f2cb+'$');return _0x2ffd83['test'](_0x26c463);}export function getSanitizedUsername(){const _0x503bca=a213_0x5413,_0x8916a9=process.env.USER||process.env.USERNAME||_0x503bca(0x1ae);return _0x8916a9[_0x503bca(0x1a2)](/[^a-zA-Z0-9]/g,'')[_0x503bca(0x1a4)]();}export function generateRandomHex(){const _0x29655e=a213_0x5413,_0x101c7a=Math[_0x29655e(0x1b6)](Math[_0x29655e(0x1b3)]()*0xfffff);return _0x101c7a[_0x29655e(0x1b4)](0x10)[_0x29655e(0x1af)](0x5,'0');}export function sanitizeFileName(_0x1c00ef){const _0xad2ae6=a213_0x5413;return _0x1c00ef['toLowerCase']()[_0xad2ae6(0x1a2)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0xad2ae6(0x1a2)](/-+/g,'-')[_0xad2ae6(0x1a2)](/^-|-$/g,'');}
1
+ (function(_0x39f170,_0x2f777f){const _0x27e8c6=a213_0x3a80,_0x171f73=_0x39f170();while(!![]){try{const _0x49a242=parseInt(_0x27e8c6(0x1ca))/0x1*(parseInt(_0x27e8c6(0x1cf))/0x2)+-parseInt(_0x27e8c6(0x1ce))/0x3*(parseInt(_0x27e8c6(0x1c8))/0x4)+-parseInt(_0x27e8c6(0x1d1))/0x5*(-parseInt(_0x27e8c6(0x1cc))/0x6)+parseInt(_0x27e8c6(0x1c2))/0x7+-parseInt(_0x27e8c6(0x1d0))/0x8*(-parseInt(_0x27e8c6(0x1d3))/0x9)+parseInt(_0x27e8c6(0x1cd))/0xa+-parseInt(_0x27e8c6(0x1c6))/0xb*(parseInt(_0x27e8c6(0x1d7))/0xc);if(_0x49a242===_0x2f777f)break;else _0x171f73['push'](_0x171f73['shift']());}catch(_0x101577){_0x171f73['push'](_0x171f73['shift']());}}}(a213_0xc461,0x95b96));import a213_0x67d410 from'string-width';export function stringWidth(_0x4e0239){return a213_0x67d410(_0x4e0239);}export function padEnd(_0xf0e872,_0xba373f){const _0x20e0ba=a213_0x3a80,_0x6664db=stringWidth(_0xf0e872);if(_0x6664db>=_0xba373f)return _0xf0e872;return _0xf0e872+'\x20'[_0x20e0ba(0x1cb)](_0xba373f-_0x6664db);}export function padStart(_0x175976,_0xcc4288){const _0x12614f=a213_0x3a80,_0x3e7ffc=stringWidth(_0x175976);if(_0x3e7ffc>=_0xcc4288)return _0x175976;return'\x20'[_0x12614f(0x1cb)](_0xcc4288-_0x3e7ffc)+_0x175976;}export function centerAlign(_0x799d66,_0x40fd4b){const _0x221cb7=a213_0x3a80,_0x5b01c6=stringWidth(_0x799d66);if(_0x5b01c6>_0x40fd4b){if(_0x40fd4b<=0x1)return'…'[_0x221cb7(0x1c1)](0x0,_0x40fd4b);let _0x552e43=_0x799d66;while(stringWidth(_0x552e43+'…')>_0x40fd4b){_0x552e43=_0x552e43[_0x221cb7(0x1c3)](0x0,-0x1);}return _0x552e43+'…';}if(_0x5b01c6===_0x40fd4b)return _0x799d66;const _0x4e49db=_0x40fd4b-_0x5b01c6,_0x37a09e=Math['floor'](_0x4e49db/0x2),_0xd8a730=_0x4e49db-_0x37a09e;return'\x20'[_0x221cb7(0x1cb)](_0x37a09e)+_0x799d66+'\x20'[_0x221cb7(0x1cb)](_0xd8a730);}function a213_0x3a80(_0x422039,_0x541be5){_0x422039=_0x422039-0x1bf;const _0xc461b7=a213_0xc461();let _0x3a80f9=_0xc461b7[_0x422039];return _0x3a80f9;}function a213_0xc461(){const _0x5a057c=['Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','2982287syVmMY','slice','floor','\x5c$&','2202189eYAjRi','random','49072zlVpBu','padStart','1002999NEXWMt','repeat','6cWCamV','2691030hRQEHo','15FpGVsM','2tNARFk','488kgSViL','5832815rsBSJV','toLowerCase','149472ACksuL','trim','replace','Cannot\x20escape\x20empty\x20string\x20literal','192qzzGJU','length','test'];a213_0xc461=function(){return _0x5a057c;};return a213_0xc461();}export function escapeStringLiteral(_0x49744f){const _0x1b83e7=a213_0x3a80;if(!_0x49744f||_0x49744f['trim']()[_0x1b83e7(0x1d8)]===0x0)throw new Error(_0x1b83e7(0x1d6));const _0x4c063c=_0x49744f['replace'](/'/g,'\x27\x27');return'\x27'+_0x4c063c+'\x27';}export function globToLike(_0x44922e){const _0x4d62f8=a213_0x3a80;let _0x3b00ba=_0x44922e[_0x4d62f8(0x1d5)](/\\/g,'\x5c\x5c')[_0x4d62f8(0x1d5)](/%/g,'\x5c%')[_0x4d62f8(0x1d5)](/_/g,'\x5c_');return _0x3b00ba=_0x3b00ba[_0x4d62f8(0x1d5)](/\*/g,'%')[_0x4d62f8(0x1d5)](/\?/g,'_'),_0x3b00ba;}export function buildLikePattern(_0x3137d0){const _0xd3daa7=a213_0x3a80;if(!_0x3137d0||_0x3137d0[_0xd3daa7(0x1d4)]()[_0xd3daa7(0x1d8)]===0x0)throw new Error(_0xd3daa7(0x1c0));const _0xd94950=globToLike(_0x3137d0),_0x195fa2=_0xd94950[_0xd3daa7(0x1d5)](/'/g,'\x27\x27');return'\x27'+_0x195fa2+'\x27';}export function matchGlobPattern(_0x26450c,_0x2d1cf3){const _0x16aade=a213_0x3a80,_0x6dd4fd=_0x2d1cf3[_0x16aade(0x1d5)](/[.+^${}()|[\]\\]/g,_0x16aade(0x1c5))[_0x16aade(0x1d5)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x24584d=new RegExp('^'+_0x6dd4fd+'$');return _0x24584d[_0x16aade(0x1bf)](_0x26450c);}export function getSanitizedUsername(){const _0x890afd=a213_0x3a80,_0x1503ac=process.env.USER||process.env.USERNAME||'unknown';return _0x1503ac[_0x890afd(0x1d5)](/[^a-zA-Z0-9]/g,'')[_0x890afd(0x1d2)]();}export function generateRandomHex(){const _0x1a396c=a213_0x3a80,_0xfbd4e4=Math[_0x1a396c(0x1c4)](Math[_0x1a396c(0x1c7)]()*0xfffff);return _0xfbd4e4['toString'](0x10)[_0x1a396c(0x1c9)](0x5,'0');}export function sanitizeFileName(_0x4a32a0){const _0x4cf4e7=a213_0x3a80;return _0x4a32a0['toLowerCase']()[_0x4cf4e7(0x1d5)](/[/\\:*?"<>|]/g,'-')[_0x4cf4e7(0x1d5)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x4cf4e7(0x1d5)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0xf0df04,_0x3324c8){const _0x2f6162=a214_0x1991,_0x1e874e=_0xf0df04();while(!![]){try{const _0x5ac6af=parseInt(_0x2f6162(0x15b))/0x1+parseInt(_0x2f6162(0x156))/0x2+-parseInt(_0x2f6162(0x15a))/0x3*(-parseInt(_0x2f6162(0x155))/0x4)+parseInt(_0x2f6162(0x149))/0x5*(-parseInt(_0x2f6162(0x148))/0x6)+-parseInt(_0x2f6162(0x147))/0x7+-parseInt(_0x2f6162(0x14e))/0x8*(parseInt(_0x2f6162(0x143))/0x9)+parseInt(_0x2f6162(0x152))/0xa;if(_0x5ac6af===_0x3324c8)break;else _0x1e874e['push'](_0x1e874e['shift']());}catch(_0x1d3937){_0x1e874e['push'](_0x1e874e['shift']());}}}(a214_0x2c36,0x353a9));function hasWildcard(_0x28979c){const _0x23a6a3=a214_0x1991;return _0x28979c[_0x23a6a3(0x145)]('*')||_0x28979c[_0x23a6a3(0x145)]('?');}export function parseTableReference(_0x1b492c){const _0x47d61e=a214_0x1991;if(!_0x1b492c||_0x1b492c[_0x47d61e(0x157)]()['length']===0x0)throw new Error(_0x47d61e(0x14f));const _0x332138=_0x1b492c[_0x47d61e(0x157)](),_0x2295dc={'original':_0x332138},_0x5133f4=_0x332138[_0x47d61e(0x158)]('.');if(_0x5133f4[_0x47d61e(0x150)]===0x1){const _0x8340b2=_0x5133f4[0x0];if(!_0x8340b2)throw new Error(_0x47d61e(0x14c));_0x2295dc[_0x47d61e(0x14b)]=_0x8340b2;}else{if(_0x5133f4[_0x47d61e(0x150)]===0x2){const [_0x2cad5c,_0x35cd74]=_0x5133f4;if(!_0x2cad5c)throw new Error(_0x47d61e(0x153));if(!_0x35cd74)throw new Error(_0x47d61e(0x154));_0x2295dc[_0x47d61e(0x15c)]=_0x2cad5c,_0x2295dc[_0x47d61e(0x14b)]=_0x35cd74;}else{if(_0x5133f4[_0x47d61e(0x150)]===0x3){const [_0x5553db,_0x38223c,_0xa1fcf3]=_0x5133f4;if(!_0x5553db||!_0x38223c||!_0xa1fcf3)throw new Error(_0x47d61e(0x151));_0x2295dc['catalog']=_0x5553db,_0x2295dc[_0x47d61e(0x15c)]=_0x38223c,_0x2295dc[_0x47d61e(0x14b)]=_0xa1fcf3;}else throw new Error(_0x47d61e(0x146));}}return _0x2295dc;}export function formatTableReference(_0x2f4b31){const _0x377338=a214_0x1991,_0x6cf055=[];return _0x2f4b31[_0x377338(0x14a)]&&_0x6cf055['push'](_0x2f4b31['catalog']),_0x2f4b31['database']&&_0x6cf055[_0x377338(0x14d)](_0x2f4b31[_0x377338(0x15c)]),_0x2f4b31[_0x377338(0x14b)]&&_0x6cf055[_0x377338(0x14d)](_0x2f4b31[_0x377338(0x14b)]),_0x6cf055[_0x377338(0x144)]('.');}function a214_0x1991(_0x3246ea,_0x4e782f){_0x3246ea=_0x3246ea-0x143;const _0x2c36b7=a214_0x2c36();let _0x199193=_0x2c36b7[_0x3246ea];return _0x199193;}export function validateTableListReference(_0x302009){return undefined;}export function validateTableDescribeReference(_0x261c76){const _0x1d2a50=a214_0x1991;if(!_0x261c76[_0x1d2a50(0x14b)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x261c76[_0x1d2a50(0x15c)]&&hasWildcard(_0x261c76['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x261c76[_0x1d2a50(0x14b)]))return _0x1d2a50(0x159);return undefined;}function a214_0x2c36(){const _0x2a04a3=['split','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','24upHcJj','229272lpkdCu','database','331254HcVbRi','join','includes','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1046563sYFwSR','30kgDCBe','151205OVyPNX','catalog','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push','88mkQvQN','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','4866200mmtqiK','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','8564ZVGqtm','381170purcPI','trim'];a214_0x2c36=function(){return _0x2a04a3;};return a214_0x2c36();}
1
+ function a214_0x25eb(){const _0x3caeba=['catalog','18080909dSsDPw','96QkVsvD','1115DwSRuM','database','923880PwcXAN','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','6QWsuQW','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','Pattern\x20cannot\x20be\x20just\x20a\x20dot','4632687WORnYb','112436TapFWx','11358mENLfR','push','1285782IbenBk','148337BQCvQS','table','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\x20database\x20name\x20for\x20describe\x20operation','length','trim','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','10jyyiuB'];a214_0x25eb=function(){return _0x3caeba;};return a214_0x25eb();}function a214_0xd600(_0x42706b,_0x416817){_0x42706b=_0x42706b-0x9f;const _0x25eb4e=a214_0x25eb();let _0xd60066=_0x25eb4e[_0x42706b];return _0xd60066;}(function(_0x53a1c9,_0x21bed8){const _0x458db0=a214_0xd600,_0xe6faea=_0x53a1c9();while(!![]){try{const _0x46ce70=-parseInt(_0x458db0(0xad))/0x1*(parseInt(_0x458db0(0xa8))/0x2)+parseInt(_0x458db0(0xb0))/0x3+-parseInt(_0x458db0(0xa6))/0x4+parseInt(_0x458db0(0xa4))/0x5*(-parseInt(_0x458db0(0xae))/0x6)+-parseInt(_0x458db0(0xb1))/0x7*(parseInt(_0x458db0(0xa3))/0x8)+-parseInt(_0x458db0(0xac))/0x9+-parseInt(_0x458db0(0xa0))/0xa*(-parseInt(_0x458db0(0xa2))/0xb);if(_0x46ce70===_0x21bed8)break;else _0xe6faea['push'](_0xe6faea['shift']());}catch(_0x17b748){_0xe6faea['push'](_0xe6faea['shift']());}}}(a214_0x25eb,0x4c61d));function hasWildcard(_0x8198f5){const _0x20622e=a214_0xd600;return _0x8198f5[_0x20622e(0xaa)]('*')||_0x8198f5[_0x20622e(0xaa)]('?');}export function parseTableReference(_0x721e10){const _0x346f1c=a214_0xd600;if(!_0x721e10||_0x721e10[_0x346f1c(0xb6)]()[_0x346f1c(0xb5)]===0x0)throw new Error(_0x346f1c(0x9f));const _0x4122b7=_0x721e10[_0x346f1c(0xb6)](),_0x203a2b={'original':_0x4122b7},_0x4352a6=_0x4122b7['split']('.');if(_0x4352a6[_0x346f1c(0xb5)]===0x1){const _0x4e2fae=_0x4352a6[0x0];if(!_0x4e2fae)throw new Error(_0x346f1c(0xab));_0x203a2b['table']=_0x4e2fae;}else{if(_0x4352a6[_0x346f1c(0xb5)]===0x2){const [_0x4cf309,_0x3f10d9]=_0x4352a6;if(!_0x4cf309)throw new Error(_0x346f1c(0xb3));if(!_0x3f10d9)throw new Error(_0x346f1c(0xa7));_0x203a2b[_0x346f1c(0xa5)]=_0x4cf309,_0x203a2b['table']=_0x3f10d9;}else{if(_0x4352a6[_0x346f1c(0xb5)]===0x3){const [_0x2fbdec,_0x879792,_0xc48b19]=_0x4352a6;if(!_0x2fbdec||!_0x879792||!_0xc48b19)throw new Error(_0x346f1c(0xa9));_0x203a2b['catalog']=_0x2fbdec,_0x203a2b[_0x346f1c(0xa5)]=_0x879792,_0x203a2b[_0x346f1c(0xb2)]=_0xc48b19;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x203a2b;}export function formatTableReference(_0x408e5a){const _0x192dec=a214_0xd600,_0x2997c2=[];return _0x408e5a[_0x192dec(0xa1)]&&_0x2997c2[_0x192dec(0xaf)](_0x408e5a[_0x192dec(0xa1)]),_0x408e5a[_0x192dec(0xa5)]&&_0x2997c2[_0x192dec(0xaf)](_0x408e5a[_0x192dec(0xa5)]),_0x408e5a['table']&&_0x2997c2[_0x192dec(0xaf)](_0x408e5a[_0x192dec(0xb2)]),_0x2997c2['join']('.');}export function validateTableListReference(_0x3f06d9){return undefined;}export function validateTableDescribeReference(_0x301492){const _0xf865f5=a214_0xd600;if(!_0x301492[_0xf865f5(0xb2)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x301492[_0xf865f5(0xa5)]&&hasWildcard(_0x301492[_0xf865f5(0xa5)]))return _0xf865f5(0xb4);if(hasWildcard(_0x301492['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- function a215_0x2877(_0x17ee25,_0x3a5fa0){_0x17ee25=_0x17ee25-0x11b;const _0x3c00ca=a215_0x3c00();let _0x28774e=_0x3c00ca[_0x17ee25];return _0x28774e;}function a215_0x3c00(){const _0x2dc90a=['4WLBkbQ','tdx','10548SdHfKu','148194yXhaYF','240693XabHKZ','getLogPath','426584ekjRfX','debug','1049909qrIgel','Session\x20ended','consoleHandler','398945MadfBQ','logger','init','warn','logFileName','info','addHandler','8Uhkkdw','6LKyYRd','push','11zmnMpb','logDir','shutdown','error','217148FvLrkX','logLevel','fileOnly','fileHandler','trace','INFO','70AqgZbk'];a215_0x3c00=function(){return _0x2dc90a;};return a215_0x3c00();}const a215_0x311153=a215_0x2877;(function(_0x5e8be6,_0x290283){const _0x22a035=a215_0x2877,_0x4cf48a=_0x5e8be6();while(!![]){try{const _0x634009=-parseInt(_0x22a035(0x138))/0x1+parseInt(_0x22a035(0x125))/0x2+parseInt(_0x22a035(0x123))/0x3*(parseInt(_0x22a035(0x11f))/0x4)+parseInt(_0x22a035(0x12a))/0x5*(parseInt(_0x22a035(0x132))/0x6)+-parseInt(_0x22a035(0x127))/0x7*(parseInt(_0x22a035(0x131))/0x8)+parseInt(_0x22a035(0x122))/0x9*(parseInt(_0x22a035(0x11e))/0xa)+parseInt(_0x22a035(0x134))/0xb*(-parseInt(_0x22a035(0x121))/0xc);if(_0x634009===_0x290283)break;else _0x4cf48a['push'](_0x4cf48a['shift']());}catch(_0x151da8){_0x4cf48a['push'](_0x4cf48a['shift']());}}}(a215_0x3c00,0x1d6f0));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x311153(0x139)];[a215_0x311153(0x13a)];['logDir'];['logFileName'];['logger'];[a215_0x311153(0x11b)]=null;[a215_0x311153(0x129)]=null;constructor(_0x6c1eb7=LogLevel['INFO'],_0x4c9d14=![],_0x1cc1d0,_0x1a155a='tdx.log'){const _0xd8aaf6=a215_0x311153;this[_0xd8aaf6(0x139)]=_0x6c1eb7,this[_0xd8aaf6(0x13a)]=_0x4c9d14,this[_0xd8aaf6(0x135)]=_0x1cc1d0||join(getGlobalCacheDir(),'logs'),this[_0xd8aaf6(0x12e)]=_0x1a155a,this[_0xd8aaf6(0x12b)]=Logger['of'](_0xd8aaf6(0x120));}async[a215_0x311153(0x12c)](){const _0x19cf6f=a215_0x311153,_0x2eb2ad=join(this[_0x19cf6f(0x135)],this['logFileName']);if(Logger['isInitialized']()){!this[_0x19cf6f(0x13a)]&&(this[_0x19cf6f(0x129)]=new ConsoleHandler({'minLevel':LogLevel[_0x19cf6f(0x11d)],'colors':!![]}),Logger[_0x19cf6f(0x130)](this[_0x19cf6f(0x129)]));return;}this[_0x19cf6f(0x11b)]=new FileHandler({'filePath':_0x2eb2ad});const _0x3e73da=[this['fileHandler']];!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x19cf6f(0x11d)],'colors':!![]}),_0x3e73da[_0x19cf6f(0x133)](this['consoleHandler'])),await Logger[_0x19cf6f(0x12c)]({'defaultLevel':this[_0x19cf6f(0x139)],'handlers':_0x3e73da,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x311153(0x126)](..._0x3479de){const _0x1de66e=a215_0x311153;this['logger'][_0x1de66e(0x126)](..._0x3479de);}[a215_0x311153(0x11c)](..._0xbab811){const _0x3a6829=a215_0x311153;this[_0x3a6829(0x12b)]['trace'](..._0xbab811);}[a215_0x311153(0x12f)](..._0xf4c738){const _0x407d99=a215_0x311153;this['logger'][_0x407d99(0x12f)](..._0xf4c738);}[a215_0x311153(0x12d)](..._0x3f8209){const _0x1bd02c=a215_0x311153;this[_0x1bd02c(0x12b)]['warn'](..._0x3f8209);}[a215_0x311153(0x137)](..._0x51b2eb){const _0x435feb=a215_0x311153;this[_0x435feb(0x12b)][_0x435feb(0x137)](..._0x51b2eb);}async['close'](){const _0x3b563a=a215_0x311153;this['logger'][_0x3b563a(0x12f)](_0x3b563a(0x128)),await Logger[_0x3b563a(0x136)]();}[a215_0x311153(0x124)](){const _0x30f65e=a215_0x311153;return join(this[_0x30f65e(0x135)],this[_0x30f65e(0x12e)]);}}
1
+ const a215_0x481d74=a215_0x18cd;(function(_0x339994,_0x2418fc){const _0x1fcea0=a215_0x18cd,_0x38ea37=_0x339994();while(!![]){try{const _0x5516a3=parseInt(_0x1fcea0(0xfb))/0x1+-parseInt(_0x1fcea0(0xf6))/0x2*(-parseInt(_0x1fcea0(0xfe))/0x3)+parseInt(_0x1fcea0(0xfc))/0x4*(parseInt(_0x1fcea0(0x101))/0x5)+parseInt(_0x1fcea0(0xf0))/0x6*(-parseInt(_0x1fcea0(0xf1))/0x7)+-parseInt(_0x1fcea0(0xee))/0x8*(parseInt(_0x1fcea0(0xe5))/0x9)+parseInt(_0x1fcea0(0xe8))/0xa+parseInt(_0x1fcea0(0xea))/0xb*(-parseInt(_0x1fcea0(0xeb))/0xc);if(_0x5516a3===_0x2418fc)break;else _0x38ea37['push'](_0x38ea37['shift']());}catch(_0x5d8d60){_0x38ea37['push'](_0x38ea37['shift']());}}}(a215_0x2875,0xe752c));function a215_0x2875(){const _0x2fe39d=['18cUxDfh','3202892MQJzHi','error','logLevel','getLogPath','INFO','2fyNuwu','Session\x20ended','tdx.log','fileHandler','info','1766333victov','4BrtWTa','init','4195644wvtyxw','warn','logDir','231260QWaonU','logger','isInitialized','670374eshdQu','debug','fileOnly','12453160AyLLVY','logFileName','2643839jbhMNO','36rTGMHE','addHandler','consoleHandler','152ybLalW','trace'];a215_0x2875=function(){return _0x2fe39d;};return a215_0x2875();}import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a215_0x18cd(_0x207b11,_0x18968b){_0x207b11=_0x207b11-0xe3;const _0x2875b3=a215_0x2875();let _0x18cd76=_0x2875b3[_0x207b11];return _0x18cd76;}export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x481d74(0xf3)];['fileOnly'];[a215_0x481d74(0x100)];[a215_0x481d74(0xe9)];[a215_0x481d74(0xe3)];[a215_0x481d74(0xf9)]=null;[a215_0x481d74(0xed)]=null;constructor(_0x371cd7=LogLevel['INFO'],_0xe2544a=![],_0x348d82,_0x557c9e=a215_0x481d74(0xf8)){const _0x2b4afd=a215_0x481d74;this[_0x2b4afd(0xf3)]=_0x371cd7,this[_0x2b4afd(0xe7)]=_0xe2544a,this[_0x2b4afd(0x100)]=_0x348d82||join(getGlobalCacheDir(),'logs'),this[_0x2b4afd(0xe9)]=_0x557c9e,this[_0x2b4afd(0xe3)]=Logger['of']('tdx');}async[a215_0x481d74(0xfd)](){const _0x2b01b0=a215_0x481d74,_0x55aee4=join(this['logDir'],this[_0x2b01b0(0xe9)]);if(Logger[_0x2b01b0(0xe4)]()){!this[_0x2b01b0(0xe7)]&&(this[_0x2b01b0(0xed)]=new ConsoleHandler({'minLevel':LogLevel[_0x2b01b0(0xf5)],'colors':!![]}),Logger[_0x2b01b0(0xec)](this['consoleHandler']));return;}this['fileHandler']=new FileHandler({'filePath':_0x55aee4});const _0x10cfde=[this[_0x2b01b0(0xf9)]];!this[_0x2b01b0(0xe7)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x2b01b0(0xf5)],'colors':!![]}),_0x10cfde['push'](this[_0x2b01b0(0xed)])),await Logger[_0x2b01b0(0xfd)]({'defaultLevel':this['logLevel'],'handlers':_0x10cfde,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x481d74(0xe6)](..._0x2473c9){const _0x470d4d=a215_0x481d74;this[_0x470d4d(0xe3)][_0x470d4d(0xe6)](..._0x2473c9);}[a215_0x481d74(0xef)](..._0x1a2be1){const _0x2f2532=a215_0x481d74;this[_0x2f2532(0xe3)][_0x2f2532(0xef)](..._0x1a2be1);}[a215_0x481d74(0xfa)](..._0x2dea30){const _0x4f1504=a215_0x481d74;this['logger'][_0x4f1504(0xfa)](..._0x2dea30);}[a215_0x481d74(0xff)](..._0x2d21f9){const _0x28d740=a215_0x481d74;this['logger'][_0x28d740(0xff)](..._0x2d21f9);}[a215_0x481d74(0xf2)](..._0x4465e7){const _0x4742d6=a215_0x481d74;this[_0x4742d6(0xe3)][_0x4742d6(0xf2)](..._0x4465e7);}async['close'](){const _0xa78e8e=a215_0x481d74;this[_0xa78e8e(0xe3)]['info'](_0xa78e8e(0xf7)),await Logger['shutdown']();}[a215_0x481d74(0xf4)](){const _0x26b800=a215_0x481d74;return join(this[_0x26b800(0x100)],this[_0x26b800(0xe9)]);}}
@@ -1 +1 @@
1
- const a216_0x519b0b=a216_0x5b6e;function a216_0x19f4(){const _0x14e35c=['statusCode','Request\x20timeout','3728188SoIOZM','last_version_check_next','166865LorhfR','21RXXUor','Update\x20available:','tdx\x20upgrade\x20--next','utils/version-check','now','2151VbLTxs','stderr','HTTP\x20','unref','updateAvailable','green','966648LnPGic','parse','last_version_check','channel','Invalid\x20version\x20format','tdx\x20upgrade','lastCheck','217220dIZwwJ','currentVersion','latestVersion','\x0aUpdate\x20available:\x20','45424tktubv','https://registry.npmjs.org/@treasuredata/tdx','write','version','toISOString','isTTY','989703WNYhAO','Run:','\x0aRun:\x20','latest','yellow','next','dim','getTime','socket','stable','2079610rAVUHS'];a216_0x19f4=function(){return _0x14e35c;};return a216_0x19f4();}(function(_0x1386c0,_0x420ae9){const _0x4133ca=a216_0x5b6e,_0x4cecf8=_0x1386c0();while(!![]){try{const _0x2428dd=parseInt(_0x4133ca(0xbe))/0x1+-parseInt(_0x4133ca(0xa6))/0x2+-parseInt(_0x4133ca(0xc8))/0x3+parseInt(_0x4133ca(0xa9))/0x4+-parseInt(_0x4133ca(0xab))/0x5+parseInt(_0x4133ca(0xb7))/0x6*(-parseInt(_0x4133ca(0xac))/0x7)+parseInt(_0x4133ca(0xc2))/0x8*(parseInt(_0x4133ca(0xb1))/0x9);if(_0x2428dd===_0x420ae9)break;else _0x4cecf8['push'](_0x4cecf8['shift']());}catch(_0x37173e){_0x4cecf8['push'](_0x4cecf8['shift']());}}}(a216_0x19f4,0x97582));import{get}from'https';import{gt,valid}from'semver';import a216_0x3000d6 from'chalk';function a216_0x5b6e(_0x30573d,_0x155cae){_0x30573d=_0x30573d-0xa1;const _0x19f4b0=a216_0x19f4();let _0x5b6e21=_0x19f4b0[_0x30573d];return _0x5b6e21;}import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a216_0x519b0b(0xc3),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a216_0x519b0b(0xb9),a216_0x519b0b(0xaf)),nextVersionCache=createGlobalCache(a216_0x519b0b(0xaa),'utils/version-check-next');function getCacheForChannel(_0x5ea3de){const _0x542da0=a216_0x519b0b;return _0x5ea3de===_0x542da0(0xa1)?nextVersionCache:stableVersionCache;}function readCache(_0x2df455){return getCacheForChannel(_0x2df455)['read']()??null;}function writeCache(_0x16f7d1,_0xf1178){const _0x386095=a216_0x519b0b;try{getCacheForChannel(_0xf1178)['write']({'lastCheck':new Date()[_0x386095(0xc6)](),'latestVersion':_0x16f7d1});}catch{}}function isCacheValid(_0x513be6){const _0x5e16cd=a216_0x519b0b;if(!_0x513be6)return![];const _0x1a76e9=new Date(_0x513be6[_0x5e16cd(0xbd)])[_0x5e16cd(0xa3)](),_0x4ecb9b=Date[_0x5e16cd(0xb0)]();return _0x4ecb9b-_0x1a76e9<CACHE_DURATION_MS;}export function fetchLatestVersion(_0xb22208=a216_0x519b0b(0xa5)){const _0x1e62db=a216_0x519b0b,_0xaea9=_0xb22208===_0x1e62db(0xa1)?_0x1e62db(0xa1):_0x1e62db(0xcb),_0x129ffd=NPM_REGISTRY_BASE+'/'+_0xaea9;return new Promise((_0x1f07a9,_0x1cca13)=>{const _0xd1ce91=_0x1e62db,_0x2a2f8e=get(_0x129ffd,{'timeout':TIMEOUT_MS},_0x1c308b=>{const _0x3c51f7=a216_0x5b6e;if(_0x1c308b[_0x3c51f7(0xa7)]!==0xc8){clearTimeout(_0x2589ac),_0x1cca13(new Error(_0x3c51f7(0xb3)+_0x1c308b[_0x3c51f7(0xa7)]));return;}let _0x3b339c='';_0x1c308b['on']('data',_0x381028=>{_0x3b339c+=_0x381028;}),_0x1c308b['on']('end',()=>{const _0x2daede=_0x3c51f7;clearTimeout(_0x2589ac);try{const _0x31f5d0=JSON[_0x2daede(0xb8)](_0x3b339c);if(!valid(_0x31f5d0[_0x2daede(0xc5)])){_0x1cca13(new Error(_0x2daede(0xbb)));return;}_0x1f07a9(_0x31f5d0['version']);}catch(_0x45c57c){_0x1cca13(_0x45c57c);}});})['on']('error',_0x278d58=>{clearTimeout(_0x2589ac),_0x1cca13(_0x278d58);});_0x2a2f8e['on'](_0xd1ce91(0xa4),_0x1b0372=>{const _0x1e9d1b=_0xd1ce91;_0x1b0372[_0x1e9d1b(0xb4)]();});const _0x2589ac=setTimeout(()=>{const _0x3fa898=_0xd1ce91;_0x2a2f8e['destroy'](),_0x1cca13(new Error(_0x3fa898(0xa8)));},TIMEOUT_MS);_0x2589ac['unref']();});}export async function checkForUpdate(_0x317b9b,_0x8ecfc6='stable'){const _0x28c66b=a216_0x519b0b;try{const _0x3e42c2=readCache(_0x8ecfc6);if(isCacheValid(_0x3e42c2)){const _0x12c5d9=gt(_0x3e42c2[_0x28c66b(0xc0)],_0x317b9b);return{'updateAvailable':_0x12c5d9,'currentVersion':_0x317b9b,'latestVersion':_0x3e42c2[_0x28c66b(0xc0)],'channel':_0x8ecfc6};}const _0x3dc86e=await fetchLatestVersion(_0x8ecfc6);writeCache(_0x3dc86e,_0x8ecfc6);const _0x6b4a01=gt(_0x3dc86e,_0x317b9b);return{'updateAvailable':_0x6b4a01,'currentVersion':_0x317b9b,'latestVersion':_0x3dc86e,'channel':_0x8ecfc6};}catch{return null;}}export function displayUpdateNotification(_0x56ff43){const _0x1d46cc=a216_0x519b0b;if(!_0x56ff43[_0x1d46cc(0xb5)])return;const _0x207851=_0x56ff43[_0x1d46cc(0xba)]==='next'?_0x1d46cc(0xae):_0x1d46cc(0xbc),_0x3f6e68=process[_0x1d46cc(0xb2)][_0x1d46cc(0xc7)]&&!process.env.NO_COLOR,_0x403d43=_0x3f6e68?a216_0x3000d6['gray']('→'):'→',_0x5ec4d6=_0x3f6e68?a216_0x3000d6['dim'](_0x56ff43['currentVersion']):_0x56ff43[_0x1d46cc(0xbf)],_0x2e30c6=_0x3f6e68?a216_0x3000d6[_0x1d46cc(0xb6)](_0x56ff43['latestVersion']):_0x56ff43[_0x1d46cc(0xc0)],_0x18ae56=_0x3f6e68?a216_0x3000d6['cyan'](_0x207851):_0x207851,_0x4de315=_0x3f6e68?'\x0a'+a216_0x3000d6[_0x1d46cc(0xcc)](_0x1d46cc(0xad))+'\x20'+_0x5ec4d6+'\x20'+_0x403d43+'\x20'+_0x2e30c6+'\x0a'+a216_0x3000d6[_0x1d46cc(0xa2)](_0x1d46cc(0xc9))+'\x20'+_0x18ae56+'\x0a':_0x1d46cc(0xc1)+_0x5ec4d6+'\x20'+_0x403d43+'\x20'+_0x2e30c6+_0x1d46cc(0xca)+_0x18ae56+'\x0a';process[_0x1d46cc(0xb2)][_0x1d46cc(0xc4)](_0x4de315);}
1
+ const a216_0x21719a=a216_0x45ce;(function(_0x3a2ad2,_0x5609ca){const _0x491545=a216_0x45ce,_0x41674f=_0x3a2ad2();while(!![]){try{const _0x52fbdd=-parseInt(_0x491545(0x1a6))/0x1*(parseInt(_0x491545(0x1a5))/0x2)+-parseInt(_0x491545(0x199))/0x3+-parseInt(_0x491545(0x1a0))/0x4+-parseInt(_0x491545(0x183))/0x5+-parseInt(_0x491545(0x1a2))/0x6+-parseInt(_0x491545(0x181))/0x7+-parseInt(_0x491545(0x1a9))/0x8*(-parseInt(_0x491545(0x19f))/0x9);if(_0x52fbdd===_0x5609ca)break;else _0x41674f['push'](_0x41674f['shift']());}catch(_0x27aadd){_0x41674f['push'](_0x41674f['shift']());}}}(a216_0x410a,0x2f62f));import{get}from'https';import{gt,valid}from'semver';import a216_0x245f5a from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE='https://registry.npmjs.org/@treasuredata/tdx',TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a216_0x21719a(0x1a8),a216_0x21719a(0x195)),nextVersionCache=createGlobalCache(a216_0x21719a(0x180),a216_0x21719a(0x18c));function a216_0x410a(){const _0x364934=['toISOString','destroy','currentVersion','tdx\x20upgrade','latest','3527181bUsuda','840344DygNjp','parse','2037738rHHDub','next','Update\x20available:','50ZUBinQ','1550vRlkYM','latestVersion','last_version_check','32kDsFmE','statusCode','gray','version','Invalid\x20version\x20format','last_version_check_next','746788LiEpvf','stderr','1617200nZAvvV','now','write','dim','HTTP\x20','cyan','green','socket','isTTY','utils/version-check-next','error','data','tdx\x20upgrade\x20--next','Request\x20timeout','unref','read','getTime','stable','utils/version-check','\x0aUpdate\x20available:\x20','Run:','lastCheck','1064874nPWfWZ'];a216_0x410a=function(){return _0x364934;};return a216_0x410a();}function getCacheForChannel(_0x1bef38){const _0x1beea5=a216_0x21719a;return _0x1bef38===_0x1beea5(0x1a3)?nextVersionCache:stableVersionCache;}function readCache(_0x32d91c){const _0x47b213=a216_0x21719a;return getCacheForChannel(_0x32d91c)[_0x47b213(0x192)]()??null;}function a216_0x45ce(_0x41bb07,_0x434ec3){_0x41bb07=_0x41bb07-0x17c;const _0x410a86=a216_0x410a();let _0x45cef2=_0x410a86[_0x41bb07];return _0x45cef2;}function writeCache(_0x59bf59,_0x1db4d3){const _0x158b0e=a216_0x21719a;try{getCacheForChannel(_0x1db4d3)['write']({'lastCheck':new Date()[_0x158b0e(0x19a)](),'latestVersion':_0x59bf59});}catch{}}function isCacheValid(_0x119767){const _0xd494c5=a216_0x21719a;if(!_0x119767)return![];const _0x4974c7=new Date(_0x119767[_0xd494c5(0x198)])[_0xd494c5(0x193)](),_0x1e8f42=Date[_0xd494c5(0x184)]();return _0x1e8f42-_0x4974c7<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x10438b=a216_0x21719a(0x194)){const _0x30a75f=a216_0x21719a,_0x2fcb6f=_0x10438b===_0x30a75f(0x1a3)?_0x30a75f(0x1a3):_0x30a75f(0x19e),_0x4fcc22=NPM_REGISTRY_BASE+'/'+_0x2fcb6f;return new Promise((_0x2833d4,_0x505c50)=>{const _0x44c713=_0x30a75f,_0x4847d9=get(_0x4fcc22,{'timeout':TIMEOUT_MS},_0x5bc3c3=>{const _0x4f81d3=a216_0x45ce;if(_0x5bc3c3['statusCode']!==0xc8){clearTimeout(_0x433154),_0x505c50(new Error(_0x4f81d3(0x187)+_0x5bc3c3[_0x4f81d3(0x17c)]));return;}let _0x32f444='';_0x5bc3c3['on'](_0x4f81d3(0x18e),_0x229c31=>{_0x32f444+=_0x229c31;}),_0x5bc3c3['on']('end',()=>{const _0x135487=_0x4f81d3;clearTimeout(_0x433154);try{const _0x43a74d=JSON[_0x135487(0x1a1)](_0x32f444);if(!valid(_0x43a74d[_0x135487(0x17e)])){_0x505c50(new Error(_0x135487(0x17f)));return;}_0x2833d4(_0x43a74d['version']);}catch(_0x157a4a){_0x505c50(_0x157a4a);}});})['on'](_0x44c713(0x18d),_0x1bb92f=>{clearTimeout(_0x433154),_0x505c50(_0x1bb92f);});_0x4847d9['on'](_0x44c713(0x18a),_0x14e63c=>{const _0x147566=_0x44c713;_0x14e63c[_0x147566(0x191)]();});const _0x433154=setTimeout(()=>{const _0x4f65e3=_0x44c713;_0x4847d9[_0x4f65e3(0x19b)](),_0x505c50(new Error(_0x4f65e3(0x190)));},TIMEOUT_MS);_0x433154[_0x44c713(0x191)]();});}export async function checkForUpdate(_0x442b4,_0x1d0b6b=a216_0x21719a(0x194)){const _0x4cdf79=a216_0x21719a;try{const _0xffc0d0=readCache(_0x1d0b6b);if(isCacheValid(_0xffc0d0)){const _0xe806a8=gt(_0xffc0d0[_0x4cdf79(0x1a7)],_0x442b4);return{'updateAvailable':_0xe806a8,'currentVersion':_0x442b4,'latestVersion':_0xffc0d0['latestVersion'],'channel':_0x1d0b6b};}const _0x3df69e=await fetchLatestVersion(_0x1d0b6b);writeCache(_0x3df69e,_0x1d0b6b);const _0x11fbc1=gt(_0x3df69e,_0x442b4);return{'updateAvailable':_0x11fbc1,'currentVersion':_0x442b4,'latestVersion':_0x3df69e,'channel':_0x1d0b6b};}catch{return null;}}export function displayUpdateNotification(_0x4e3a35){const _0x230714=a216_0x21719a;if(!_0x4e3a35['updateAvailable'])return;const _0x54462a=_0x4e3a35['channel']===_0x230714(0x1a3)?_0x230714(0x18f):_0x230714(0x19d),_0x268c1a=process['stderr'][_0x230714(0x18b)]&&!process.env.NO_COLOR,_0x7b6ae9=_0x268c1a?a216_0x245f5a[_0x230714(0x17d)]('→'):'→',_0x47328c=_0x268c1a?a216_0x245f5a[_0x230714(0x186)](_0x4e3a35[_0x230714(0x19c)]):_0x4e3a35[_0x230714(0x19c)],_0x311449=_0x268c1a?a216_0x245f5a[_0x230714(0x189)](_0x4e3a35[_0x230714(0x1a7)]):_0x4e3a35['latestVersion'],_0x3b37f8=_0x268c1a?a216_0x245f5a[_0x230714(0x188)](_0x54462a):_0x54462a,_0x515418=_0x268c1a?'\x0a'+a216_0x245f5a['yellow'](_0x230714(0x1a4))+'\x20'+_0x47328c+'\x20'+_0x7b6ae9+'\x20'+_0x311449+'\x0a'+a216_0x245f5a[_0x230714(0x186)](_0x230714(0x197))+'\x20'+_0x3b37f8+'\x0a':_0x230714(0x196)+_0x47328c+'\x20'+_0x7b6ae9+'\x20'+_0x311449+'\x0aRun:\x20'+_0x3b37f8+'\x0a';process[_0x230714(0x182)][_0x230714(0x185)](_0x515418);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.28",
3
+ "version": "2026.3.29",
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": {