@treasuredata/tdx 2026.3.7 → 2026.3.8

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 (208) 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-command.js.map +1 -1
  11. package/dist/commands/auth-login-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.d.ts.map +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/profiles-command.js.map +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.d.ts.map +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/user-command.js.map +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.d.ts.map +1 -1
  69. package/dist/core/oauth.js +1 -1
  70. package/dist/core/oauth.js.map +1 -1
  71. package/dist/core/profile.js +1 -1
  72. package/dist/core/project-config.js +1 -1
  73. package/dist/core/session.js +1 -1
  74. package/dist/core/user-cache.js +1 -1
  75. package/dist/core/version.js +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/mcp/server.js +1 -1
  78. package/dist/mcp/tools/index.js +1 -1
  79. package/dist/mcp/tools/tdx-run.js +1 -1
  80. package/dist/mcp/tools/tdx-search.js +1 -1
  81. package/dist/mcp/utils.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js +1 -1
  83. package/dist/proxy/passthrough-server.js +1 -1
  84. package/dist/proxy/sse-usage-parser.js +1 -1
  85. package/dist/sdk/agent/agent-config.js +1 -1
  86. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  87. package/dist/sdk/agent/agent-yaml.js +1 -1
  88. package/dist/sdk/agent/test/evaluator.js +1 -1
  89. package/dist/sdk/agent/test/executor.js +1 -1
  90. package/dist/sdk/agent/test/index.js +1 -1
  91. package/dist/sdk/agent/test/output.js +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/tool-target-registry.js +1 -1
  94. package/dist/sdk/api.js +1 -1
  95. package/dist/sdk/client/cdp-api-client.js +1 -1
  96. package/dist/sdk/client/delivery-api-client.js +1 -1
  97. package/dist/sdk/client/endpoints.js +1 -1
  98. package/dist/sdk/client/engage-api-client.js +1 -1
  99. package/dist/sdk/client/http-client.js +1 -1
  100. package/dist/sdk/client/llm-api-client.js +1 -1
  101. package/dist/sdk/client/oauth-refresh.js +1 -1
  102. package/dist/sdk/client/rate-limiter.js +1 -1
  103. package/dist/sdk/client/td-api-client.js +1 -1
  104. package/dist/sdk/client/trino-api-client.js +1 -1
  105. package/dist/sdk/client/workflow-client.js +1 -1
  106. package/dist/sdk/connection-validator.js +1 -1
  107. package/dist/sdk/connection.js +1 -1
  108. package/dist/sdk/delivery.js +1 -1
  109. package/dist/sdk/engage/campaign-pull.js +1 -1
  110. package/dist/sdk/engage/campaign-push.js +1 -1
  111. package/dist/sdk/engage/campaign-validator.js +1 -1
  112. package/dist/sdk/engage/campaign-yaml.js +1 -1
  113. package/dist/sdk/engage/template-pull.js +1 -1
  114. package/dist/sdk/engage/template-push.js +1 -1
  115. package/dist/sdk/engage/template-validator.js +1 -1
  116. package/dist/sdk/engage/template-yaml.js +1 -1
  117. package/dist/sdk/engage/types/campaign-def.js +1 -1
  118. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  119. package/dist/sdk/engage/types/template-schema.js +1 -1
  120. package/dist/sdk/engage.js +1 -1
  121. package/dist/sdk/errors.js +1 -1
  122. package/dist/sdk/index.js +1 -1
  123. package/dist/sdk/io/index.js +1 -1
  124. package/dist/sdk/io/node-filesystem.js +1 -1
  125. package/dist/sdk/job.js +1 -1
  126. package/dist/sdk/journey.js +1 -1
  127. package/dist/sdk/llm/chat-cache.js +1 -1
  128. package/dist/sdk/llm/index.js +1 -1
  129. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  130. package/dist/sdk/llm/model-factors.js +1 -1
  131. package/dist/sdk/personalization.js +1 -1
  132. package/dist/sdk/query/index.js +1 -1
  133. package/dist/sdk/query/sql-parser.js +1 -1
  134. package/dist/sdk/realtime.js +1 -1
  135. package/dist/sdk/schedule.js +1 -1
  136. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  137. package/dist/sdk/segment/fields-display.js +1 -1
  138. package/dist/sdk/segment/file-discovery.js +1 -1
  139. package/dist/sdk/segment/journey-utils.js +1 -1
  140. package/dist/sdk/segment/journey-validator.js +1 -1
  141. package/dist/sdk/segment/journey-yaml.js +1 -1
  142. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  143. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  144. package/dist/sdk/segment/pull-workflow.js +1 -1
  145. package/dist/sdk/segment/push-recovery.js +1 -1
  146. package/dist/sdk/segment/push-workflow.js +1 -1
  147. package/dist/sdk/segment/resolution-context.js +1 -1
  148. package/dist/sdk/segment/segment-path-parser.js +1 -1
  149. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  150. package/dist/sdk/segment/segment-validator.js +1 -1
  151. package/dist/sdk/segment/target-resolution.js +1 -1
  152. package/dist/sdk/segment/tdx-config.js +1 -1
  153. package/dist/sdk/segment/types/activation-schema.js +1 -1
  154. package/dist/sdk/segment/types/journey-def.js +1 -1
  155. package/dist/sdk/segment/types/journey-schema.js +1 -1
  156. package/dist/sdk/segment/types/segment-def.js +1 -1
  157. package/dist/sdk/segment/types/segment-schema.js +1 -1
  158. package/dist/sdk/segment/validate-files.js +1 -1
  159. package/dist/sdk/segment/yaml-validator.js +1 -1
  160. package/dist/sdk/segment.js +1 -1
  161. package/dist/sdk/types/index.js +1 -1
  162. package/dist/sdk/types/progress.js +1 -1
  163. package/dist/sdk/user.js +1 -1
  164. package/dist/sdk/util/format-detector.js +1 -1
  165. package/dist/sdk/util/formatters.js +1 -1
  166. package/dist/sdk/util/index.js +1 -1
  167. package/dist/sdk/util/paginate.js +1 -1
  168. package/dist/sdk/util/tree-formatter.js +1 -1
  169. package/dist/sdk/workflow/archive-validation.js +1 -1
  170. package/dist/sdk/workflow/clone-workflow.js +1 -1
  171. package/dist/sdk/workflow/index.js +1 -1
  172. package/dist/sdk/workflow/pull-workflow.js +1 -1
  173. package/dist/sdk/workflow/push-workflow.js +1 -1
  174. package/dist/sdk/workflow/tdx-config.js +1 -1
  175. package/dist/sdk/workflow/workflow-utils.js +1 -1
  176. package/dist/test-utils/command-runner.js +1 -1
  177. package/dist/test-utils/factories.js +1 -1
  178. package/dist/test-utils/fixtures.js +1 -1
  179. package/dist/test-utils/http-mock.js +1 -1
  180. package/dist/test-utils/index.js +1 -1
  181. package/dist/utils/async.js +1 -1
  182. package/dist/utils/colors.js +1 -1
  183. package/dist/utils/diff.js +1 -1
  184. package/dist/utils/file-permissions.js +1 -1
  185. package/dist/utils/file-reader.js +1 -1
  186. package/dist/utils/github-releases.js +1 -1
  187. package/dist/utils/global-cache.js +1 -1
  188. package/dist/utils/json-loader.js +1 -1
  189. package/dist/utils/local-cache.js +1 -1
  190. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  191. package/dist/utils/logger/formatters/index.js +1 -1
  192. package/dist/utils/logger/handlers/console-handler.js +1 -1
  193. package/dist/utils/logger/handlers/file-handler.js +1 -1
  194. package/dist/utils/logger/handlers/index.js +1 -1
  195. package/dist/utils/logger/handlers/null-handler.js +1 -1
  196. package/dist/utils/logger/index.js +1 -1
  197. package/dist/utils/logger/logger.js +1 -1
  198. package/dist/utils/logger/types.js +1 -1
  199. package/dist/utils/option-validation.js +1 -1
  200. package/dist/utils/process.js +1 -1
  201. package/dist/utils/prompt.js +1 -1
  202. package/dist/utils/spinner.js +1 -1
  203. package/dist/utils/sse-parser.js +1 -1
  204. package/dist/utils/string-utils.js +1 -1
  205. package/dist/utils/table-ref-parser.js +1 -1
  206. package/dist/utils/tdx-logger.js +1 -1
  207. package/dist/utils/version-check.js +1 -1
  208. package/package.json +1 -1
@@ -1 +1 @@
1
- const a206_0x3745be=a206_0x3a37;(function(_0x13abd9,_0x5dc4d5){const _0x2bab65=a206_0x3a37,_0x4d32b0=_0x13abd9();while(!![]){try{const _0x325549=-parseInt(_0x2bab65(0x1bd))/0x1*(-parseInt(_0x2bab65(0x1a9))/0x2)+-parseInt(_0x2bab65(0x1d3))/0x3*(parseInt(_0x2bab65(0x1ae))/0x4)+parseInt(_0x2bab65(0x1be))/0x5*(parseInt(_0x2bab65(0x1bc))/0x6)+parseInt(_0x2bab65(0x1aa))/0x7*(parseInt(_0x2bab65(0x1c0))/0x8)+-parseInt(_0x2bab65(0x1d9))/0x9*(parseInt(_0x2bab65(0x1ad))/0xa)+-parseInt(_0x2bab65(0x1c8))/0xb*(-parseInt(_0x2bab65(0x1b6))/0xc)+-parseInt(_0x2bab65(0x1e2))/0xd*(parseInt(_0x2bab65(0x1b5))/0xe);if(_0x325549===_0x5dc4d5)break;else _0x4d32b0['push'](_0x4d32b0['shift']());}catch(_0x45c076){_0x4d32b0['push'](_0x4d32b0['shift']());}}}(a206_0x638f,0xe8470));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x3745be(0x1cf),a206_0x3745be(0x1dc),'sh',a206_0x3745be(0x1d7),a206_0x3745be(0x1d0),'tcsh',a206_0x3745be(0x1e4),a206_0x3745be(0x1e0),a206_0x3745be(0x1cc),a206_0x3745be(0x1cb),'nu',a206_0x3745be(0x1b8),a206_0x3745be(0x1ca),a206_0x3745be(0x1a6)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x3745be(0x1c3),a206_0x3745be(0x1c9),'cursor',a206_0x3745be(0x1c1),'treasure\x20studio']);function getProcessInfoWindows(_0x4557da){const _0x337cc6=a206_0x3745be;try{if(!Number['isInteger'](_0x4557da)||_0x4557da<=0x0)return null;const _0x2ac15c=_0x337cc6(0x1df)+_0x4557da+_0x337cc6(0x1ab),_0x153ef4=execSync(_0x337cc6(0x1a7)+_0x2ac15c+'\x22',{'encoding':_0x337cc6(0x1ba),'windowsHide':!![],'stdio':[_0x337cc6(0x1bf),_0x337cc6(0x1bf),'pipe']})['trim']();if(!_0x153ef4)return null;const [_0x839014,..._0x4e2272]=_0x153ef4[_0x337cc6(0x1c7)](','),_0x7cd30e=parseInt(_0x839014,0xa),_0x16e509=_0x4e2272[_0x337cc6(0x1a4)](',')[_0x337cc6(0x1de)]();if(isNaN(_0x7cd30e)||!_0x16e509)return null;return{'pid':_0x4557da,'ppid':_0x7cd30e,'comm':_0x16e509['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x35f6c2){const _0x1bfb80=a206_0x3745be;try{const _0x193271=0x400000;if(!Number[_0x1bfb80(0x1c4)](_0x35f6c2)||_0x35f6c2<=0x0||_0x35f6c2>_0x193271)return null;const _0x2b2bfe=execSync('ps\x20-p\x20'+_0x35f6c2+_0x1bfb80(0x1b9),{'encoding':_0x1bfb80(0x1ba),'stdio':'pipe'})[_0x1bfb80(0x1de)](),[_0x39520c,..._0x57c20c]=_0x2b2bfe[_0x1bfb80(0x1c7)](/\s+/),_0x2df242=parseInt(_0x39520c,0xa),_0x24e417=_0x57c20c[_0x1bfb80(0x1a4)]('\x20');if(isNaN(_0x2df242))return null;return{'pid':_0x35f6c2,'ppid':_0x2df242,'comm':_0x24e417};}catch{return null;}}function getProcessInfo(_0x29b593){const _0xae09a=a206_0x3745be;if(process['platform']===_0xae09a(0x1ce))return getProcessInfoWindows(_0x29b593);return getProcessInfoPosix(_0x29b593);}function getBasename(_0xa0ed06){const _0x3583af=a206_0x3745be;return _0xa0ed06[_0x3583af(0x1c5)](/^-/,'')[_0x3583af(0x1c7)]('/')[_0x3583af(0x1ac)]()?.['toLowerCase']()||'';}function isShell(_0x279b6e){const _0x25b3bf=a206_0x3745be;return SHELL_NAMES[_0x25b3bf(0x1d2)](getBasename(_0x279b6e));}function isEphemeralShellSpawner(_0x2ed68b){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x2ed68b));}let cachedShellPID;function findShellPID(){const _0x4f0e4b=a206_0x3745be;if(process[_0x4f0e4b(0x1e7)]===undefined)return process['pid'];let _0x576543=process[_0x4f0e4b(0x1e7)];const _0x2b10c5=0xa;let _0x4d0e24=0x0;while(_0x4d0e24<_0x2b10c5){const _0x594766=getProcessInfo(_0x576543);if(!_0x594766)break;if(isShell(_0x594766[_0x4f0e4b(0x1d8)])){const _0x5c94a5=getProcessInfo(_0x594766[_0x4f0e4b(0x1e7)]);if(_0x5c94a5&&isEphemeralShellSpawner(_0x5c94a5[_0x4f0e4b(0x1d8)])){_0x576543=_0x594766[_0x4f0e4b(0x1e7)],_0x4d0e24++;continue;}return _0x594766['pid'];}if(_0x594766['ppid']===0x0||_0x594766[_0x4f0e4b(0x1e7)]===0x1){if(isShell(_0x594766[_0x4f0e4b(0x1d8)]))return _0x594766['pid'];break;}_0x576543=_0x594766[_0x4f0e4b(0x1e7)],_0x4d0e24++;}return process['ppid']!==undefined?process['ppid']:process[_0x4f0e4b(0x1a5)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x229c1d){const _0x4b101f=a206_0x3745be;if(!Number[_0x4b101f(0x1c4)](_0x229c1d)||_0x229c1d<=0x0)return![];try{return process[_0x4b101f(0x1af)](_0x229c1d,0x0),!![];}catch{return![];}}export function openBrowser(_0x221f0a){const _0x3c8fd7=a206_0x3745be;let _0x30a875;try{_0x30a875=new URL(_0x221f0a);}catch{throw new Error(_0x3c8fd7(0x1e3)+_0x221f0a);}if(_0x30a875[_0x3c8fd7(0x1c2)]!==_0x3c8fd7(0x1a8)&&_0x30a875[_0x3c8fd7(0x1c2)]!==_0x3c8fd7(0x1d6))throw new Error(_0x3c8fd7(0x1b4)+_0x30a875[_0x3c8fd7(0x1c2)]);const _0x8c276a=_0x30a875[_0x3c8fd7(0x1dd)],_0x37f0af=process[_0x3c8fd7(0x1d1)];if(_0x37f0af==='win32')spawn(_0x3c8fd7(0x1b7),['/c',_0x3c8fd7(0x1d5),'',_0x8c276a],{'detached':!![],'stdio':_0x3c8fd7(0x1b3)})[_0x3c8fd7(0x1e5)]();else{const _0x1faed0=_0x37f0af===_0x3c8fd7(0x1b1)?_0x3c8fd7(0x1b0):_0x3c8fd7(0x1bb);spawn(_0x1faed0,[_0x8c276a],{'detached':!![],'stdio':'ignore'})['unref']();}}export function isWindows(){const _0x3fd025=a206_0x3745be;return process[_0x3fd025(0x1d1)]===_0x3fd025(0x1ce);}export function getCrossSpawnOptions(_0x4a6c7b){return{..._0x4a6c7b??{},'shell':isWindows()};}export function escapeWindowsArg(_0x84f17f){const _0x10bc7c=a206_0x3745be;if(!/[ \t"&|<>^%!`\r\n]/[_0x10bc7c(0x1d4)](_0x84f17f))return _0x84f17f;const _0x144745=_0x84f17f[_0x10bc7c(0x1c5)](/"/g,'\x22\x22');return'\x22'+_0x144745+'\x22';}function a206_0x638f(){const _0x35a379=['Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','dash','error','2275cdzIbq','Invalid\x20URL:\x20','csh','unref','data','ppid','join','pid','xonsh','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','http:','2029882pdKTxm','329GzJkfq','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','pop','70vGaGRU','604VJzWwK','kill','open','darwin','stdout','ignore','Unsupported\x20protocol:\x20','267470DgMktb','420vLOTeM','cmd.exe','ion','\x20-o\x20ppid=,comm=','utf-8','xdg-open','6258foXCie','1QIhiCJ','8585iZzzuV','pipe','247352JDJjcs','electron','protocol','claude','isInteger','replace','exit','split','475706JocfjL','code','elvish','powershell','pwsh','stderr','win32','bash','ksh','platform','has','24177lDXupm','test','start','https:','fish','comm','335421OrNYSg','toString','where.exe','zsh','href','trim'];a206_0x638f=function(){return _0x35a379;};return a206_0x638f();}export function crossSpawn(_0x384e30,_0x46fc9d,_0x29e022){const _0x22be46=a206_0x3745be;if(isWindows()){const _0x4390d2=escapeWindowsArg(_0x384e30),_0x265c66=_0x46fc9d['map'](escapeWindowsArg),_0x288b71=[_0x4390d2,..._0x265c66][_0x22be46(0x1a4)]('\x20');return spawn(_0x288b71,[],{..._0x29e022,'shell':!![]});}return spawn(_0x384e30,_0x46fc9d,{..._0x29e022,'shell':![]});}export function gracefulExit(_0x2e5b04=0x0){const _0x49c6c0=a206_0x3745be;isWindows()?setTimeout(()=>process[_0x49c6c0(0x1c6)](_0x2e5b04),0x32):process[_0x49c6c0(0x1c6)](_0x2e5b04);}function a206_0x3a37(_0x5703b5,_0x41a33d){_0x5703b5=_0x5703b5-0x1a4;const _0x638f2c=a206_0x638f();let _0x3a37ba=_0x638f2c[_0x5703b5];return _0x3a37ba;}export function findExecutable(_0x13b75d,_0x1468ac=0x1388){return new Promise(_0x1fccb4=>{const _0x326c5d=a206_0x3a37,_0xaafca9=isWindows()?_0x326c5d(0x1db):'which';let _0x522936=![];const _0x13ccb9=crossSpawn(_0xaafca9,[_0x13b75d],{'stdio':'pipe','shell':isWindows()}),_0x185f23=setTimeout(()=>{!_0x522936&&(_0x522936=!![],_0x13ccb9['kill'](),_0x1fccb4(null));},_0x1468ac);let _0x41f2fc='';_0x13ccb9[_0x326c5d(0x1b2)]?.['on']('data',_0x33b0f6=>{const _0x5bc6f8=_0x326c5d;_0x41f2fc+=_0x33b0f6[_0x5bc6f8(0x1da)]();}),_0x13ccb9[_0x326c5d(0x1cd)]?.['on'](_0x326c5d(0x1e6),()=>{}),_0x13ccb9['on'](_0x326c5d(0x1c6),_0x28879f=>{const _0x424a27=_0x326c5d;if(_0x522936)return;_0x522936=!![],clearTimeout(_0x185f23);if(_0x28879f===0x0&&_0x41f2fc['trim']()){const _0x436427=_0x41f2fc['trim']()[_0x424a27(0x1c7)](/\r?\n/)[0x0];_0x1fccb4(_0x436427);}else _0x1fccb4(null);}),_0x13ccb9['on'](_0x326c5d(0x1e1),()=>{if(_0x522936)return;_0x522936=!![],clearTimeout(_0x185f23),_0x1fccb4(null);});});}
1
+ const a206_0x4db3d2=a206_0x4e6b;(function(_0x4d86e2,_0x3c790a){const _0x3349d3=a206_0x4e6b,_0x564e32=_0x4d86e2();while(!![]){try{const _0x407b50=-parseInt(_0x3349d3(0x1f0))/0x1+-parseInt(_0x3349d3(0x1f7))/0x2+parseInt(_0x3349d3(0x220))/0x3*(-parseInt(_0x3349d3(0x1fe))/0x4)+parseInt(_0x3349d3(0x217))/0x5+-parseInt(_0x3349d3(0x213))/0x6*(parseInt(_0x3349d3(0x20e))/0x7)+-parseInt(_0x3349d3(0x1fd))/0x8+parseInt(_0x3349d3(0x1f6))/0x9*(parseInt(_0x3349d3(0x210))/0xa);if(_0x407b50===_0x3c790a)break;else _0x564e32['push'](_0x564e32['shift']());}catch(_0x110aee){_0x564e32['push'](_0x564e32['shift']());}}}(a206_0x5057,0x5edf4));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x4db3d2(0x22d),a206_0x4db3d2(0x1f8),'sh',a206_0x4db3d2(0x21c),a206_0x4db3d2(0x215),a206_0x4db3d2(0x20b),'csh',a206_0x4db3d2(0x203),a206_0x4db3d2(0x22e),'powershell','nu','ion',a206_0x4db3d2(0x21a),a206_0x4db3d2(0x204)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x4db3d2(0x22f),a206_0x4db3d2(0x22b),a206_0x4db3d2(0x222),a206_0x4db3d2(0x202),a206_0x4db3d2(0x21f)]);function getProcessInfoWindows(_0x3c281d){const _0x5ecfad=a206_0x4db3d2;try{if(!Number[_0x5ecfad(0x1fa)](_0x3c281d)||_0x3c281d<=0x0)return null;const _0x88e817=_0x5ecfad(0x20d)+_0x3c281d+_0x5ecfad(0x219),_0x547727=execSync(_0x5ecfad(0x218)+_0x88e817+'\x22',{'encoding':_0x5ecfad(0x207),'windowsHide':!![],'stdio':[_0x5ecfad(0x1f4),_0x5ecfad(0x1f4),_0x5ecfad(0x1f4)]})['trim']();if(!_0x547727)return null;const [_0x6dc866,..._0x1d280b]=_0x547727['split'](','),_0x3697bd=parseInt(_0x6dc866,0xa),_0x55abab=_0x1d280b[_0x5ecfad(0x223)](',')[_0x5ecfad(0x212)]();if(isNaN(_0x3697bd)||!_0x55abab)return null;return{'pid':_0x3c281d,'ppid':_0x3697bd,'comm':_0x55abab[_0x5ecfad(0x200)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x47f384){const _0x24dec9=a206_0x4db3d2;try{const _0x3b31b1=0x400000;if(!Number[_0x24dec9(0x1fa)](_0x47f384)||_0x47f384<=0x0||_0x47f384>_0x3b31b1)return null;const _0x116b35=execSync('ps\x20-p\x20'+_0x47f384+'\x20-o\x20ppid=,comm=',{'encoding':_0x24dec9(0x207),'stdio':_0x24dec9(0x1f4)})[_0x24dec9(0x212)](),[_0x115699,..._0x29b7c8]=_0x116b35[_0x24dec9(0x1f2)](/\s+/),_0xee3c77=parseInt(_0x115699,0xa),_0x5c4ffe=_0x29b7c8[_0x24dec9(0x223)]('\x20');if(isNaN(_0xee3c77))return null;return{'pid':_0x47f384,'ppid':_0xee3c77,'comm':_0x5c4ffe};}catch{return null;}}function getProcessInfo(_0xda7e36){const _0x4abd45=a206_0x4db3d2;if(process[_0x4abd45(0x1fb)]===_0x4abd45(0x21b))return getProcessInfoWindows(_0xda7e36);return getProcessInfoPosix(_0xda7e36);}function a206_0x5057(){const _0x328e66=['Unsupported\x20protocol:\x20','tcsh','Invalid\x20URL:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','7BDakOc','which','50mtmrAW','https:','trim','2406762qhjjUk','cmd.exe','ksh','toString','51715IKyDTN','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','elvish','win32','fish','error','pid','treasure\x20studio','6eINqiH','test','cursor','join','toLowerCase','href','start','has','ppid','http:','pop','code','ignore','bash','pwsh','claude','protocol','172919YHVnpa','where.exe','split','unref','pipe','stderr','2889279ORLwXf','603396WvumWE','zsh','exit','isInteger','platform','data','2761664VGgjqq','11900yxjeTx','xdg-open','replace','map','electron','dash','xonsh','comm','open','utf-8','kill','stdout'];a206_0x5057=function(){return _0x328e66;};return a206_0x5057();}function getBasename(_0x42999a){const _0x2f73e8=a206_0x4db3d2;return _0x42999a['replace'](/^-/,'')[_0x2f73e8(0x1f2)]('/')[_0x2f73e8(0x22a)]()?.[_0x2f73e8(0x224)]()||'';}function isShell(_0x41e6a5){const _0x148774=a206_0x4db3d2;return SHELL_NAMES[_0x148774(0x227)](getBasename(_0x41e6a5));}function isEphemeralShellSpawner(_0x182c48){const _0x29b2c9=a206_0x4db3d2;return EPHEMERAL_SHELL_SPAWNERS[_0x29b2c9(0x227)](getBasename(_0x182c48));}let cachedShellPID;function findShellPID(){const _0x4c8c98=a206_0x4db3d2;if(process[_0x4c8c98(0x228)]===undefined)return process[_0x4c8c98(0x21e)];let _0x5bf744=process['ppid'];const _0x269980=0xa;let _0xdffe73=0x0;while(_0xdffe73<_0x269980){const _0xaca642=getProcessInfo(_0x5bf744);if(!_0xaca642)break;if(isShell(_0xaca642['comm'])){const _0x41c193=getProcessInfo(_0xaca642[_0x4c8c98(0x228)]);if(_0x41c193&&isEphemeralShellSpawner(_0x41c193[_0x4c8c98(0x205)])){_0x5bf744=_0xaca642['ppid'],_0xdffe73++;continue;}return _0xaca642['pid'];}if(_0xaca642[_0x4c8c98(0x228)]===0x0||_0xaca642[_0x4c8c98(0x228)]===0x1){if(isShell(_0xaca642['comm']))return _0xaca642[_0x4c8c98(0x21e)];break;}_0x5bf744=_0xaca642[_0x4c8c98(0x228)],_0xdffe73++;}return process[_0x4c8c98(0x228)]!==undefined?process['ppid']:process[_0x4c8c98(0x21e)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x998cce){const _0x445070=a206_0x4db3d2;if(!Number['isInteger'](_0x998cce)||_0x998cce<=0x0)return![];try{return process[_0x445070(0x208)](_0x998cce,0x0),!![];}catch{return![];}}export function openBrowser(_0x4caa62){const _0x6b2162=a206_0x4db3d2;let _0x406f6;try{_0x406f6=new URL(_0x4caa62);}catch{throw new Error(_0x6b2162(0x20c)+_0x4caa62);}if(_0x406f6[_0x6b2162(0x1ef)]!==_0x6b2162(0x229)&&_0x406f6[_0x6b2162(0x1ef)]!==_0x6b2162(0x211))throw new Error(_0x6b2162(0x20a)+_0x406f6['protocol']);const _0x519289=_0x406f6[_0x6b2162(0x225)],_0x404fc3=process['platform'];if(_0x404fc3===_0x6b2162(0x21b))spawn(_0x6b2162(0x214),['/c',_0x6b2162(0x226),'',_0x519289],{'detached':!![],'stdio':_0x6b2162(0x22c)})[_0x6b2162(0x1f3)]();else{const _0x1155d8=_0x404fc3==='darwin'?_0x6b2162(0x206):_0x6b2162(0x1ff);spawn(_0x1155d8,[_0x519289],{'detached':!![],'stdio':_0x6b2162(0x22c)})[_0x6b2162(0x1f3)]();}}function a206_0x4e6b(_0x179b1f,_0x50aeb3){_0x179b1f=_0x179b1f-0x1ef;const _0x505782=a206_0x5057();let _0x4e6bc5=_0x505782[_0x179b1f];return _0x4e6bc5;}export function isWindows(){const _0x59407d=a206_0x4db3d2;return process[_0x59407d(0x1fb)]==='win32';}export function getCrossSpawnOptions(_0x304cfc){return{..._0x304cfc??{},'shell':isWindows()};}export function escapeWindowsArg(_0x539bf3){const _0xb9820c=a206_0x4db3d2;if(!/[ \t"&|<>^%!`\r\n]/[_0xb9820c(0x221)](_0x539bf3))return _0x539bf3;const _0x455e64=_0x539bf3[_0xb9820c(0x200)](/"/g,'\x22\x22');return'\x22'+_0x455e64+'\x22';}export function crossSpawn(_0x25d30a,_0x7256c8,_0x49d799){const _0x3b2d8e=a206_0x4db3d2;if(isWindows()){const _0x38b0f1=escapeWindowsArg(_0x25d30a),_0x4b3ac6=_0x7256c8[_0x3b2d8e(0x201)](escapeWindowsArg),_0x50c574=[_0x38b0f1,..._0x4b3ac6][_0x3b2d8e(0x223)]('\x20');return spawn(_0x50c574,[],{..._0x49d799,'shell':!![]});}return spawn(_0x25d30a,_0x7256c8,{..._0x49d799,'shell':![]});}export function gracefulExit(_0x55a97f=0x0){const _0x599447=a206_0x4db3d2;isWindows()?setTimeout(()=>process[_0x599447(0x1f9)](_0x55a97f),0x32):process[_0x599447(0x1f9)](_0x55a97f);}export function findExecutable(_0x1680e5,_0x5c0904=0x1388){return new Promise(_0x4443e6=>{const _0x5881e9=a206_0x4e6b,_0x22ede8=isWindows()?_0x5881e9(0x1f1):_0x5881e9(0x20f);let _0x341322=![];const _0x46e417=crossSpawn(_0x22ede8,[_0x1680e5],{'stdio':_0x5881e9(0x1f4),'shell':isWindows()}),_0x1a26c8=setTimeout(()=>{!_0x341322&&(_0x341322=!![],_0x46e417['kill'](),_0x4443e6(null));},_0x5c0904);let _0x3944d='';_0x46e417[_0x5881e9(0x209)]?.['on'](_0x5881e9(0x1fc),_0x4efd54=>{const _0x25ca40=_0x5881e9;_0x3944d+=_0x4efd54[_0x25ca40(0x216)]();}),_0x46e417[_0x5881e9(0x1f5)]?.['on'](_0x5881e9(0x1fc),()=>{}),_0x46e417['on']('exit',_0x508f42=>{const _0x139697=_0x5881e9;if(_0x341322)return;_0x341322=!![],clearTimeout(_0x1a26c8);if(_0x508f42===0x0&&_0x3944d['trim']()){const _0x4e9d7c=_0x3944d[_0x139697(0x212)]()[_0x139697(0x1f2)](/\r?\n/)[0x0];_0x4443e6(_0x4e9d7c);}else _0x4443e6(null);}),_0x46e417['on'](_0x5881e9(0x21d),()=>{if(_0x341322)return;_0x341322=!![],clearTimeout(_0x1a26c8),_0x4443e6(null);});});}
@@ -1 +1 @@
1
- (function(_0x84a9a5,_0x319099){const _0x2fc7a1=a207_0x5d9b,_0x164d56=_0x84a9a5();while(!![]){try{const _0x116fe5=-parseInt(_0x2fc7a1(0xa2))/0x1*(-parseInt(_0x2fc7a1(0xa5))/0x2)+parseInt(_0x2fc7a1(0xa9))/0x3*(-parseInt(_0x2fc7a1(0xb1))/0x4)+-parseInt(_0x2fc7a1(0xa3))/0x5*(parseInt(_0x2fc7a1(0xb4))/0x6)+-parseInt(_0x2fc7a1(0xad))/0x7*(-parseInt(_0x2fc7a1(0xae))/0x8)+parseInt(_0x2fc7a1(0xac))/0x9*(parseInt(_0x2fc7a1(0xb8))/0xa)+parseInt(_0x2fc7a1(0xa0))/0xb+-parseInt(_0x2fc7a1(0xb0))/0xc;if(_0x116fe5===_0x319099)break;else _0x164d56['push'](_0x164d56['shift']());}catch(_0x1e1e9c){_0x164d56['push'](_0x164d56['shift']());}}}(a207_0x2738,0x99813));function a207_0x5d9b(_0x408c97,_0x30d6d8){_0x408c97=_0x408c97-0xa0;const _0x273885=a207_0x2738();let _0x5d9b23=_0x273885[_0x408c97];return _0x5d9b23;}import*as a207_0x1c3b7a from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x209677=a207_0x5d9b;return process[_0x209677(0xab)]['isTTY']===!![];}export async function confirm(_0x3bd0cc){const _0x58bbf5=a207_0x5d9b,_0x56cdc6=a207_0x1c3b7a[_0x58bbf5(0xb3)]({'input':process[_0x58bbf5(0xab)],'output':process['stdout']});return new Promise(_0x40bf02=>{const _0x135fcf=_0x58bbf5;_0x56cdc6[_0x135fcf(0xaf)](_0x3bd0cc+_0x135fcf(0xa6),_0x4dee6d=>{const _0x2ba645=_0x135fcf;_0x56cdc6['close'](),_0x40bf02(_0x4dee6d[_0x2ba645(0xa4)]()==='y'||_0x4dee6d[_0x2ba645(0xa4)]()===_0x2ba645(0xb5));});});}function a207_0x2738(){const _0x2428d2=['44EQhIiz','data','createInterface','3156558OIWBVj','yes','utf8','removeListener','1333150bQShbW','\x20[y/N]\x20','8822803XoyREU','resume','2rdMOuE','5FakOuE','toLowerCase','680894GeTiWe','\x20(y/N):\x20','stderr','write','108339DfoePq','isTTY','stdin','81fCQDjE','7140497FZjUBR','8jsYVoT','question','25809384KUEStF'];a207_0x2738=function(){return _0x2428d2;};return a207_0x2738();}export async function confirmKey(_0x237c14){const _0x4a23a8=a207_0x5d9b;if(!process[_0x4a23a8(0xab)][_0x4a23a8(0xaa)])return![];return process[_0x4a23a8(0xa7)][_0x4a23a8(0xa8)](_0x237c14+_0x4a23a8(0xb9)),new Promise(_0x2442ed=>{const _0x7c8ef1=_0x4a23a8,_0x4729f0=process[_0x7c8ef1(0xab)];_0x4729f0['setRawMode'](!![]),_0x4729f0[_0x7c8ef1(0xa1)](),_0x4729f0['setEncoding'](_0x7c8ef1(0xb6));const _0x25748f=_0x5a27f6=>{const _0x569723=_0x7c8ef1;_0x4729f0['setRawMode'](![]),_0x4729f0['pause'](),_0x4729f0[_0x569723(0xb7)](_0x569723(0xb2),_0x25748f);if(_0x5a27f6==='\x1b'){process[_0x569723(0xa7)]['write']('\x0a'),_0x2442ed(![]);return;}_0x5a27f6==='\x03'&&(process[_0x569723(0xa7)][_0x569723(0xa8)]('\x0a'),gracefulExit(0x82));if(_0x5a27f6['toLowerCase']()==='y'){process['stderr']['write']('y\x0a'),_0x2442ed(!![]);return;}process[_0x569723(0xa7)][_0x569723(0xa8)]('\x0a'),_0x2442ed(![]);};_0x4729f0['on']('data',_0x25748f);});}
1
+ (function(_0x5468a2,_0x4c21c9){const _0x5179d1=a207_0x4ea0,_0x13bb69=_0x5468a2();while(!![]){try{const _0x3d47d9=parseInt(_0x5179d1(0x1d7))/0x1+-parseInt(_0x5179d1(0x1d1))/0x2+parseInt(_0x5179d1(0x1c1))/0x3*(-parseInt(_0x5179d1(0x1d3))/0x4)+parseInt(_0x5179d1(0x1d0))/0x5*(-parseInt(_0x5179d1(0x1d8))/0x6)+parseInt(_0x5179d1(0x1c8))/0x7+parseInt(_0x5179d1(0x1d4))/0x8*(-parseInt(_0x5179d1(0x1bf))/0x9)+parseInt(_0x5179d1(0x1d2))/0xa*(parseInt(_0x5179d1(0x1cd))/0xb);if(_0x3d47d9===_0x4c21c9)break;else _0x13bb69['push'](_0x13bb69['shift']());}catch(_0x553f13){_0x13bb69['push'](_0x13bb69['shift']());}}}(a207_0x10da,0x31eea));import*as a207_0x1fa554 from'readline';function a207_0x10da(){const _0x40038a=['108vQXJKq','440sKsRYx','toLowerCase','data','370083tqhEZC','2316zZygWl','19062zYvWph','question','18231ukvOFN','write','isTTY','resume','stdin','removeListener','stderr','1642676PWssaK','setRawMode','\x20(y/N):\x20','pause','stdout','83809mJrIqI','utf8','setEncoding','1570PaiwQY','12150oypRRS','10aPrIpj'];a207_0x10da=function(){return _0x40038a;};return a207_0x10da();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}function a207_0x4ea0(_0x5cbbb4,_0x2570f6){_0x5cbbb4=_0x5cbbb4-0x1bf;const _0x10da30=a207_0x10da();let _0x4ea089=_0x10da30[_0x5cbbb4];return _0x4ea089;}export async function confirm(_0x1b9819){const _0x43c32a=a207_0x4ea0,_0x4b0ad7=a207_0x1fa554['createInterface']({'input':process[_0x43c32a(0x1c5)],'output':process[_0x43c32a(0x1cc)]});return new Promise(_0x2df559=>{const _0x27eb7c=_0x43c32a;_0x4b0ad7[_0x27eb7c(0x1c0)](_0x1b9819+_0x27eb7c(0x1ca),_0x284669=>{const _0x317dd0=_0x27eb7c;_0x4b0ad7['close'](),_0x2df559(_0x284669[_0x317dd0(0x1d5)]()==='y'||_0x284669['toLowerCase']()==='yes');});});}export async function confirmKey(_0x33f067){const _0x2fc12f=a207_0x4ea0;if(!process[_0x2fc12f(0x1c5)][_0x2fc12f(0x1c3)])return![];return process[_0x2fc12f(0x1c7)]['write'](_0x33f067+'\x20[y/N]\x20'),new Promise(_0x368785=>{const _0x1f1d9d=_0x2fc12f,_0x1df520=process[_0x1f1d9d(0x1c5)];_0x1df520[_0x1f1d9d(0x1c9)](!![]),_0x1df520[_0x1f1d9d(0x1c4)](),_0x1df520[_0x1f1d9d(0x1cf)](_0x1f1d9d(0x1ce));const _0x24be80=_0x889c5c=>{const _0x52c9b8=_0x1f1d9d;_0x1df520[_0x52c9b8(0x1c9)](![]),_0x1df520[_0x52c9b8(0x1cb)](),_0x1df520[_0x52c9b8(0x1c6)](_0x52c9b8(0x1d6),_0x24be80);if(_0x889c5c==='\x1b'){process[_0x52c9b8(0x1c7)][_0x52c9b8(0x1c2)]('\x0a'),_0x368785(![]);return;}_0x889c5c==='\x03'&&(process[_0x52c9b8(0x1c7)]['write']('\x0a'),gracefulExit(0x82));if(_0x889c5c['toLowerCase']()==='y'){process[_0x52c9b8(0x1c7)][_0x52c9b8(0x1c2)]('y\x0a'),_0x368785(!![]);return;}process['stderr']['write']('\x0a'),_0x368785(![]);};_0x1df520['on'](_0x1f1d9d(0x1d6),_0x24be80);});}
@@ -1 +1 @@
1
- function a208_0x2205(_0x5ef970,_0xdc351){_0x5ef970=_0x5ef970-0x1c0;const _0x27b7d1=a208_0x27b7();let _0x2205fa=_0x27b7d1[_0x5ef970];return _0x2205fa;}(function(_0x21e57f,_0x5ee0f7){const _0x1da002=a208_0x2205,_0x30d1ea=_0x21e57f();while(!![]){try{const _0x3152cb=-parseInt(_0x1da002(0x1cf))/0x1*(parseInt(_0x1da002(0x1c7))/0x2)+-parseInt(_0x1da002(0x1ce))/0x3+-parseInt(_0x1da002(0x1c5))/0x4+-parseInt(_0x1da002(0x1c8))/0x5+parseInt(_0x1da002(0x1d2))/0x6+parseInt(_0x1da002(0x1c1))/0x7+parseInt(_0x1da002(0x1c3))/0x8;if(_0x3152cb===_0x5ee0f7)break;else _0x30d1ea['push'](_0x30d1ea['shift']());}catch(_0x36562b){_0x30d1ea['push'](_0x30d1ea['shift']());}}}(a208_0x27b7,0x841fa));import a208_0x1968e0 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x304238,_0xf7c3e={}){const _0xf5d2b6=a208_0x2205,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xf7c3e;return a208_0x1968e0({'text':_0x304238,'color':'cyan','stream':process[_0xf5d2b6(0x1cb)],'isEnabled':forceEnabled||process['stderr'][_0xf5d2b6(0x1d8)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x3827e2,_0x155c1d,_0x321bb2={}){const _0x6cfcf8=a208_0x2205,_0x30a811=_0x321bb2['clock']??(()=>Date[_0x6cfcf8(0x1d5)]()),_0x462c95=createCommandSpinner(_0x3827e2,_0x321bb2);_0x462c95[_0x6cfcf8(0x1d3)]();const _0x416e9d=_0x30a811();try{const _0x4f5be8=await _0x155c1d(),_0x5caf54=_0x30a811()-_0x416e9d;return _0x462c95[_0x6cfcf8(0x1c9)](),{'data':_0x4f5be8,'elapsedMs':_0x5caf54};}catch(_0x2dd432){_0x462c95['stop']();throw _0x2dd432;}}function a208_0x27b7(){const _0x431ddd=['12112648GbswaT','intervalFactory','1994924NXEptP','Processing','114SzHMzr','1258010EreUVL','stop','...','stderr','jobId','text','163500JGLYqd','12235UoUBEG','clock','phase','2671452vuXgCv','start','\x20[Job\x20ID:\x20','now','floor','trim','isTTY','extra','replace','588581zoRVNr','isSpinning'];a208_0x27b7=function(){return _0x431ddd;};return a208_0x27b7();}export async function withProgressSpinner(_0x4471ff,_0x5e1e91,_0x3a02d7={}){const _0x114063=a208_0x2205,_0xd87e96=_0x3a02d7[_0x114063(0x1d0)]??(()=>Date[_0x114063(0x1d5)]()),_0x5116c2=_0x3a02d7[_0x114063(0x1c4)]??setInterval,_0x1fa998=createCommandSpinner(_0x4471ff,_0x3a02d7);_0x1fa998['start']();const _0x39c8a3=_0xd87e96(),_0x5db641=_0x4471ff[_0x114063(0x1c0)](_0x114063(0x1ca),'')['trim']()||_0x114063(0x1c6),_0x5c0b71={};let _0x2e417e=_0x4471ff;const _0x33176e=()=>{const _0x58fff5=_0x114063;if(!_0x1fa998['isSpinning'])return;const _0x534526=_0xd87e96()-_0x39c8a3,_0x17c589=formatElapsed(_0x534526),_0x8d62d9=_0x5c0b71[_0x58fff5(0x1d1)]?.['trim']()||_0x5db641,_0xdee734=_0x5c0b71[_0x58fff5(0x1cc)]?_0x58fff5(0x1d4)+_0x5c0b71[_0x58fff5(0x1cc)]+']':'',_0x22142c=_0x5c0b71[_0x58fff5(0x1d9)]?'\x20'+_0x5c0b71[_0x58fff5(0x1d9)]:'',_0x491e51=_0x8d62d9+'\x20'+_0x17c589+_0x22142c+_0xdee734;_0x491e51!==_0x2e417e&&_0x491e51[_0x58fff5(0x1d7)]()&&(_0x1fa998[_0x58fff5(0x1cd)]=_0x491e51,_0x2e417e=_0x491e51);},_0x58fd8f=_0x5116c2(()=>{_0x33176e();},0x3e8),_0x17029a={'setPhase':_0x12c4f1=>{const _0x29907c=_0x114063;_0x5c0b71[_0x29907c(0x1d1)]=_0x12c4f1;const _0x9a11f6=_0x12c4f1?.[_0x29907c(0x1d7)]()||_0x5db641,_0x4b94a4=_0xd87e96()-_0x39c8a3,_0x26eb1a=formatElapsed(_0x4b94a4),_0x22f311=_0x5c0b71[_0x29907c(0x1cc)]?_0x29907c(0x1d4)+_0x5c0b71[_0x29907c(0x1cc)]+']':'',_0x14fbbc=_0x5c0b71[_0x29907c(0x1d9)]?'\x20'+_0x5c0b71[_0x29907c(0x1d9)]:'',_0x34f067=_0x9a11f6+'\x20'+_0x26eb1a+_0x14fbbc+_0x22f311;_0x1fa998[_0x29907c(0x1c2)]&&_0x34f067['trim']()&&(_0x1fa998[_0x29907c(0x1cd)]=_0x34f067,_0x2e417e=_0x34f067);},'setJobId':_0x1f1e10=>{const _0x44e589=_0x114063;_0x5c0b71[_0x44e589(0x1cc)]=_0x1f1e10,_0x33176e();},'setExtra':_0x5c144f=>{const _0x187b7e=_0x114063;_0x5c0b71[_0x187b7e(0x1d9)]=_0x5c144f,_0x33176e();}};_0x33176e();try{const _0x21291f=await _0x5e1e91(_0x17029a),_0x3291eb=_0xd87e96()-_0x39c8a3;return{'data':_0x21291f,'elapsedMs':_0x3291eb};}finally{clearInterval(_0x58fd8f),_0x1fa998[_0x114063(0x1c9)]();}}export function formatElapsed(_0x1e85aa){const _0xab6608=a208_0x2205,_0x1c9bff=Math[_0xab6608(0x1d6)](_0x1e85aa/0x3e8);if(_0x1c9bff<0x3c)return(_0x1e85aa/0x3e8)['toFixed'](0x1)+'s';const _0x52bc1c=Math[_0xab6608(0x1d6)](_0x1c9bff/0x3c),_0xe2b465=_0x1c9bff%0x3c;if(_0x52bc1c<0x3c)return _0x52bc1c+'m\x20'+_0xe2b465+'s';const _0x4f6a14=Math[_0xab6608(0x1d6)](_0x52bc1c/0x3c),_0x2797f7=_0x52bc1c%0x3c;return _0x4f6a14+'h\x20'+_0x2797f7+'m';}
1
+ (function(_0x19505c,_0x34d44b){const _0x51dc8d=a208_0x59f8,_0x327e2f=_0x19505c();while(!![]){try{const _0x41e3c4=-parseInt(_0x51dc8d(0x117))/0x1+-parseInt(_0x51dc8d(0x115))/0x2+-parseInt(_0x51dc8d(0x112))/0x3+-parseInt(_0x51dc8d(0x107))/0x4+-parseInt(_0x51dc8d(0x11a))/0x5*(parseInt(_0x51dc8d(0x10e))/0x6)+parseInt(_0x51dc8d(0x11b))/0x7+parseInt(_0x51dc8d(0x116))/0x8*(parseInt(_0x51dc8d(0x110))/0x9);if(_0x41e3c4===_0x34d44b)break;else _0x327e2f['push'](_0x327e2f['shift']());}catch(_0x831ccc){_0x327e2f['push'](_0x327e2f['shift']());}}}(a208_0x3ad3,0x6d38f));import a208_0x39ce83 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x59f8(_0xaf0f8b,_0x17f7df){_0xaf0f8b=_0xaf0f8b-0x106;const _0x3ad33c=a208_0x3ad3();let _0x59f834=_0x3ad33c[_0xaf0f8b];return _0x59f834;}export function createCommandSpinner(_0x49ff20,_0x1ce7d2={}){const _0x258eff=a208_0x59f8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1ce7d2;return a208_0x39ce83({'text':_0x49ff20,'color':'cyan','stream':process[_0x258eff(0x118)],'isEnabled':forceEnabled||process[_0x258eff(0x118)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x5ab4a2,_0x4296e1,_0x9002eb={}){const _0x342db1=a208_0x59f8,_0x57b888=_0x9002eb['clock']??(()=>Date[_0x342db1(0x114)]()),_0x27a2d8=createCommandSpinner(_0x5ab4a2,_0x9002eb);_0x27a2d8[_0x342db1(0x10f)]();const _0x28d56a=_0x57b888();try{const _0xb16768=await _0x4296e1(),_0x25759e=_0x57b888()-_0x28d56a;return _0x27a2d8[_0x342db1(0x11d)](),{'data':_0xb16768,'elapsedMs':_0x25759e};}catch(_0x17ab1d){_0x27a2d8['stop']();throw _0x17ab1d;}}export async function withProgressSpinner(_0x5974db,_0x189b7c,_0x2c9922={}){const _0x34238b=a208_0x59f8,_0x546e01=_0x2c9922[_0x34238b(0x111)]??(()=>Date[_0x34238b(0x114)]()),_0x2cde0b=_0x2c9922[_0x34238b(0x10a)]??setInterval,_0x54f34b=createCommandSpinner(_0x5974db,_0x2c9922);_0x54f34b['start']();const _0x4dd86c=_0x546e01(),_0x203698=_0x5974db['replace'](_0x34238b(0x106),'')['trim']()||'Processing',_0x2f153c={};let _0x399a16=_0x5974db;const _0x16b047=()=>{const _0x512093=_0x34238b;if(!_0x54f34b[_0x512093(0x10d)])return;const _0x83fb21=_0x546e01()-_0x4dd86c,_0x49dec2=formatElapsed(_0x83fb21),_0x3bf016=_0x2f153c['phase']?.['trim']()||_0x203698,_0x40ad95=_0x2f153c[_0x512093(0x11c)]?'\x20[Job\x20ID:\x20'+_0x2f153c[_0x512093(0x11c)]+']':'',_0x3f7203=_0x2f153c[_0x512093(0x119)]?'\x20'+_0x2f153c['extra']:'',_0x1a2d58=_0x3bf016+'\x20'+_0x49dec2+_0x3f7203+_0x40ad95;_0x1a2d58!==_0x399a16&&_0x1a2d58[_0x512093(0x10c)]()&&(_0x54f34b['text']=_0x1a2d58,_0x399a16=_0x1a2d58);},_0x30197e=_0x2cde0b(()=>{_0x16b047();},0x3e8),_0x3218a2={'setPhase':_0x36e372=>{const _0xe2f196=_0x34238b;_0x2f153c[_0xe2f196(0x113)]=_0x36e372;const _0x22ba4d=_0x36e372?.[_0xe2f196(0x10c)]()||_0x203698,_0x3e441b=_0x546e01()-_0x4dd86c,_0xc0dbab=formatElapsed(_0x3e441b),_0x1b568b=_0x2f153c['jobId']?_0xe2f196(0x109)+_0x2f153c[_0xe2f196(0x11c)]+']':'',_0x50e8aa=_0x2f153c[_0xe2f196(0x119)]?'\x20'+_0x2f153c[_0xe2f196(0x119)]:'',_0x43101e=_0x22ba4d+'\x20'+_0xc0dbab+_0x50e8aa+_0x1b568b;_0x54f34b['isSpinning']&&_0x43101e[_0xe2f196(0x10c)]()&&(_0x54f34b['text']=_0x43101e,_0x399a16=_0x43101e);},'setJobId':_0x4e5e53=>{_0x2f153c['jobId']=_0x4e5e53,_0x16b047();},'setExtra':_0x553e0b=>{_0x2f153c['extra']=_0x553e0b,_0x16b047();}};_0x16b047();try{const _0x297e30=await _0x189b7c(_0x3218a2),_0x461c92=_0x546e01()-_0x4dd86c;return{'data':_0x297e30,'elapsedMs':_0x461c92};}finally{clearInterval(_0x30197e),_0x54f34b['stop']();}}export function formatElapsed(_0x3a3c07){const _0x2fd2c5=a208_0x59f8,_0x38ce46=Math['floor'](_0x3a3c07/0x3e8);if(_0x38ce46<0x3c)return(_0x3a3c07/0x3e8)[_0x2fd2c5(0x108)](0x1)+'s';const _0x4d194a=Math[_0x2fd2c5(0x10b)](_0x38ce46/0x3c),_0x552ece=_0x38ce46%0x3c;if(_0x4d194a<0x3c)return _0x4d194a+'m\x20'+_0x552ece+'s';const _0xc96270=Math[_0x2fd2c5(0x10b)](_0x4d194a/0x3c),_0x4b0589=_0x4d194a%0x3c;return _0xc96270+'h\x20'+_0x4b0589+'m';}function a208_0x3ad3(){const _0x51212b=['164539vUlEzL','stderr','extra','1175mHEqOg','4609766ZBowtf','jobId','stop','...','2401292iadnpy','toFixed','\x20[Job\x20ID:\x20','intervalFactory','floor','trim','isSpinning','5598IwIDTN','start','108gMOxqd','clock','1751856jhIQRQ','phase','now','408084cHtBSj','1040632kQeTIi'];a208_0x3ad3=function(){return _0x51212b;};return a208_0x3ad3();}
@@ -1 +1 @@
1
- (function(_0x2de205,_0x1079f8){const _0xc56d5e=a209_0x2ede,_0x45f496=_0x2de205();while(!![]){try{const _0xcba073=-parseInt(_0xc56d5e(0xff))/0x1+-parseInt(_0xc56d5e(0x100))/0x2*(parseInt(_0xc56d5e(0x102))/0x3)+-parseInt(_0xc56d5e(0x110))/0x4+-parseInt(_0xc56d5e(0x112))/0x5+-parseInt(_0xc56d5e(0x10c))/0x6+-parseInt(_0xc56d5e(0x108))/0x7+parseInt(_0xc56d5e(0x10d))/0x8;if(_0xcba073===_0x1079f8)break;else _0x45f496['push'](_0x45f496['shift']());}catch(_0x5b53cb){_0x45f496['push'](_0x45f496['shift']());}}}(a209_0x4caa,0x684c6));export async function*parseSSEStream(_0x2a9096,_0x1486f8){const _0x44b76d=a209_0x2ede;if(!_0x2a9096[_0x44b76d(0xfe)])throw new Error(_0x44b76d(0x113));const _0xfca7f3=_0x2a9096['body']['getReader'](),_0x387033=new TextDecoder();let _0x5bb46c='',_0x569dc6={};try{while(!![]){const {done:_0x48c50e,value:_0x25ebab}=await _0xfca7f3[_0x44b76d(0x10a)]();if(_0x48c50e){if(_0x569dc6['data']){_0x1486f8?.[_0x44b76d(0x107)](_0x44b76d(0x114)+_0x569dc6[_0x44b76d(0x10b)]);const _0x2966f1=parseSSEData(_0x569dc6['data']);yield _0x2966f1;}break;}_0x5bb46c+=_0x387033[_0x44b76d(0x105)](_0x25ebab,{'stream':!![]});const _0x4e80c4=_0x5bb46c[_0x44b76d(0x103)]('\x0a');_0x5bb46c=_0x4e80c4[_0x44b76d(0x10e)]()||'';for(const _0x17d1e4 of _0x4e80c4){if(_0x17d1e4['trim']()===''){if(_0x569dc6[_0x44b76d(0x10b)]){_0x1486f8?.[_0x44b76d(0x107)](_0x44b76d(0x114)+_0x569dc6[_0x44b76d(0x10b)]);const _0x2c2a3e=parseSSEData(_0x569dc6[_0x44b76d(0x10b)]);yield _0x2c2a3e,_0x569dc6={};}continue;}if(_0x17d1e4[_0x44b76d(0x106)](':'))continue;const _0x3405b1=_0x17d1e4[_0x44b76d(0x101)](':');if(_0x3405b1===-0x1)continue;const _0xef2f5f=_0x17d1e4[_0x44b76d(0x111)](0x0,_0x3405b1);let _0x1767f0=_0x17d1e4[_0x44b76d(0x111)](_0x3405b1+0x1);_0x1767f0['startsWith']('\x20')&&(_0x1767f0=_0x1767f0[_0x44b76d(0x111)](0x1));switch(_0xef2f5f){case _0x44b76d(0x109):_0x569dc6[_0x44b76d(0x109)]=_0x1767f0;break;case _0x44b76d(0x10b):_0x569dc6[_0x44b76d(0x10b)]=_0x569dc6[_0x44b76d(0x10b)]?_0x569dc6['data']+'\x0a'+_0x1767f0:_0x1767f0;break;case'id':_0x569dc6['id']=_0x1767f0;break;}}}}finally{_0xfca7f3['releaseLock']();}}function a209_0x4caa(){const _0xfd9f2b=['startsWith','debug','1878331OfJJnS','event','read','data','5065638qknDbn','28560584cRNFpn','pop','parse','1463360evxLja','slice','2597595BInJNz','Response\x20body\x20is\x20null','[LLM\x20API\x20SSE]\x20','body','700926NYmXyy','2UGcTxb','indexOf','1331928rdUNzZ','split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode'];a209_0x4caa=function(){return _0xfd9f2b;};return a209_0x4caa();}function a209_0x2ede(_0x43abd6,_0x4a6a86){_0x43abd6=_0x43abd6-0xfe;const _0x4caad0=a209_0x4caa();let _0x2edec0=_0x4caad0[_0x43abd6];return _0x2edec0;}function parseSSEData(_0x5bf9f5){const _0x1c56e7=a209_0x2ede;try{return JSON[_0x1c56e7(0x10f)](_0x5bf9f5);}catch(_0x33a29d){throw new Error(_0x1c56e7(0x104)+_0x5bf9f5,{'cause':_0x33a29d});}}
1
+ (function(_0x47da69,_0x188563){const _0x1ce2d6=a209_0x4e2a,_0x170988=_0x47da69();while(!![]){try{const _0x1fafc4=parseInt(_0x1ce2d6(0x8b))/0x1+-parseInt(_0x1ce2d6(0x9e))/0x2+-parseInt(_0x1ce2d6(0x93))/0x3+-parseInt(_0x1ce2d6(0xa2))/0x4*(parseInt(_0x1ce2d6(0x9a))/0x5)+-parseInt(_0x1ce2d6(0x8d))/0x6+parseInt(_0x1ce2d6(0x92))/0x7*(parseInt(_0x1ce2d6(0x90))/0x8)+parseInt(_0x1ce2d6(0x94))/0x9*(parseInt(_0x1ce2d6(0x9b))/0xa);if(_0x1fafc4===_0x188563)break;else _0x170988['push'](_0x170988['shift']());}catch(_0x152328){_0x170988['push'](_0x170988['shift']());}}}(a209_0x5266,0xba3da));function a209_0x4e2a(_0x533797,_0x439c7d){_0x533797=_0x533797-0x8b;const _0x5266b5=a209_0x5266();let _0x4e2a52=_0x5266b5[_0x533797];return _0x4e2a52;}export async function*parseSSEStream(_0xac2f13,_0x44cc48){const _0x293ea3=a209_0x4e2a;if(!_0xac2f13[_0x293ea3(0xa4)])throw new Error(_0x293ea3(0xa3));const _0x19c49b=_0xac2f13[_0x293ea3(0xa4)][_0x293ea3(0x98)](),_0x246484=new TextDecoder();let _0x434757='',_0x69dc17={};try{while(!![]){const {done:_0x4f88e7,value:_0x566974}=await _0x19c49b[_0x293ea3(0x8c)]();if(_0x4f88e7){if(_0x69dc17[_0x293ea3(0x8e)]){_0x44cc48?.['debug'](_0x293ea3(0x91)+_0x69dc17[_0x293ea3(0x8e)]);const _0x284d3d=parseSSEData(_0x69dc17['data']);yield _0x284d3d;}break;}_0x434757+=_0x246484[_0x293ea3(0x9f)](_0x566974,{'stream':!![]});const _0x4cf94a=_0x434757[_0x293ea3(0x95)]('\x0a');_0x434757=_0x4cf94a[_0x293ea3(0x97)]()||'';for(const _0x1a56aa of _0x4cf94a){if(_0x1a56aa[_0x293ea3(0x99)]()===''){if(_0x69dc17[_0x293ea3(0x8e)]){_0x44cc48?.[_0x293ea3(0x8f)](_0x293ea3(0x91)+_0x69dc17[_0x293ea3(0x8e)]);const _0x4828e9=parseSSEData(_0x69dc17[_0x293ea3(0x8e)]);yield _0x4828e9,_0x69dc17={};}continue;}if(_0x1a56aa[_0x293ea3(0xa0)](':'))continue;const _0x1f2eb5=_0x1a56aa['indexOf'](':');if(_0x1f2eb5===-0x1)continue;const _0x284b7c=_0x1a56aa[_0x293ea3(0xa1)](0x0,_0x1f2eb5);let _0x4d5b53=_0x1a56aa[_0x293ea3(0xa1)](_0x1f2eb5+0x1);_0x4d5b53[_0x293ea3(0xa0)]('\x20')&&(_0x4d5b53=_0x4d5b53[_0x293ea3(0xa1)](0x1));switch(_0x284b7c){case _0x293ea3(0x9d):_0x69dc17[_0x293ea3(0x9d)]=_0x4d5b53;break;case'data':_0x69dc17[_0x293ea3(0x8e)]=_0x69dc17['data']?_0x69dc17[_0x293ea3(0x8e)]+'\x0a'+_0x4d5b53:_0x4d5b53;break;case'id':_0x69dc17['id']=_0x4d5b53;break;}}}}finally{_0x19c49b['releaseLock']();}}function a209_0x5266(){const _0xfc98c7=['15UlvOMd','1780TzdZVQ','parse','event','1356294TLUUZM','decode','startsWith','slice','1793836nuXLFA','Response\x20body\x20is\x20null','body','1305948mvSArm','read','1704246XnTXNe','data','debug','34616VXNEPC','[LLM\x20API\x20SSE]\x20','203ctRtBX','1520976eijayv','108504LtsMwy','split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','pop','getReader','trim'];a209_0x5266=function(){return _0xfc98c7;};return a209_0x5266();}function parseSSEData(_0x8d222b){const _0x1db660=a209_0x4e2a;try{return JSON[_0x1db660(0x9c)](_0x8d222b);}catch(_0x3f5e23){throw new Error(_0x1db660(0x96)+_0x8d222b,{'cause':_0x3f5e23});}}
@@ -1 +1 @@
1
- (function(_0x5a6129,_0x15716c){const _0x3363f6=a210_0xcb50,_0x119984=_0x5a6129();while(!![]){try{const _0x64b3c2=-parseInt(_0x3363f6(0x1d7))/0x1*(-parseInt(_0x3363f6(0x1d0))/0x2)+parseInt(_0x3363f6(0x1d6))/0x3*(parseInt(_0x3363f6(0x1c3))/0x4)+parseInt(_0x3363f6(0x1c8))/0x5+-parseInt(_0x3363f6(0x1d1))/0x6+-parseInt(_0x3363f6(0x1c1))/0x7+-parseInt(_0x3363f6(0x1c5))/0x8+parseInt(_0x3363f6(0x1cf))/0x9;if(_0x64b3c2===_0x15716c)break;else _0x119984['push'](_0x119984['shift']());}catch(_0x15c489){_0x119984['push'](_0x119984['shift']());}}}(a210_0x3e99,0x99954));import a210_0x23d71d from'string-width';export function stringWidth(_0x3ac6df){return a210_0x23d71d(_0x3ac6df);}export function padEnd(_0x3e1f53,_0x3a562d){const _0x3195ff=a210_0xcb50,_0x3b75f7=stringWidth(_0x3e1f53);if(_0x3b75f7>=_0x3a562d)return _0x3e1f53;return _0x3e1f53+'\x20'[_0x3195ff(0x1ce)](_0x3a562d-_0x3b75f7);}export function padStart(_0x535dfb,_0x2dc71d){const _0x395ee1=a210_0xcb50,_0x21fcb5=stringWidth(_0x535dfb);if(_0x21fcb5>=_0x2dc71d)return _0x535dfb;return'\x20'[_0x395ee1(0x1ce)](_0x2dc71d-_0x21fcb5)+_0x535dfb;}export function centerAlign(_0x7759f0,_0x4567eb){const _0x2f98d6=a210_0xcb50,_0x487aa=stringWidth(_0x7759f0);if(_0x487aa>_0x4567eb){if(_0x4567eb<=0x1)return'…'[_0x2f98d6(0x1d4)](0x0,_0x4567eb);let _0x451c4d=_0x7759f0;while(stringWidth(_0x451c4d+'…')>_0x4567eb){_0x451c4d=_0x451c4d[_0x2f98d6(0x1d5)](0x0,-0x1);}return _0x451c4d+'…';}if(_0x487aa===_0x4567eb)return _0x7759f0;const _0x5b76ab=_0x4567eb-_0x487aa,_0xbe34e9=Math['floor'](_0x5b76ab/0x2),_0x498c17=_0x5b76ab-_0xbe34e9;return'\x20'['repeat'](_0xbe34e9)+_0x7759f0+'\x20'[_0x2f98d6(0x1ce)](_0x498c17);}export function escapeStringLiteral(_0x107e61){const _0x2c0b71=a210_0xcb50;if(!_0x107e61||_0x107e61[_0x2c0b71(0x1c7)]()[_0x2c0b71(0x1c0)]===0x0)throw new Error(_0x2c0b71(0x1d3));const _0xbd934c=_0x107e61[_0x2c0b71(0x1cd)](/'/g,'\x27\x27');return'\x27'+_0xbd934c+'\x27';}export function globToLike(_0x341542){const _0x35f0ec=a210_0xcb50;let _0xdb9127=_0x341542['replace'](/\\/g,'\x5c\x5c')[_0x35f0ec(0x1cd)](/%/g,'\x5c%')[_0x35f0ec(0x1cd)](/_/g,'\x5c_');return _0xdb9127=_0xdb9127[_0x35f0ec(0x1cd)](/\*/g,'%')[_0x35f0ec(0x1cd)](/\?/g,'_'),_0xdb9127;}export function buildLikePattern(_0x16ae3d){const _0x33fc35=a210_0xcb50;if(!_0x16ae3d||_0x16ae3d[_0x33fc35(0x1c7)]()[_0x33fc35(0x1c0)]===0x0)throw new Error(_0x33fc35(0x1d2));const _0x5eaf77=globToLike(_0x16ae3d),_0x3cd60d=_0x5eaf77[_0x33fc35(0x1cd)](/'/g,'\x27\x27');return'\x27'+_0x3cd60d+'\x27';}export function matchGlobPattern(_0x311de0,_0x537d36){const _0x4843fd=a210_0xcb50,_0x415dcd=_0x537d36[_0x4843fd(0x1cd)](/[.+^${}()|[\]\\]/g,_0x4843fd(0x1cb))[_0x4843fd(0x1cd)](/\*/g,'.*')[_0x4843fd(0x1cd)](/\?/g,'.'),_0xdff5d7=new RegExp('^'+_0x415dcd+'$');return _0xdff5d7[_0x4843fd(0x1c9)](_0x311de0);}export function getSanitizedUsername(){const _0x2f8e9c=a210_0xcb50,_0x1102ea=process.env.USER||process.env.USERNAME||_0x2f8e9c(0x1c6);return _0x1102ea[_0x2f8e9c(0x1cd)](/[^a-zA-Z0-9]/g,'')[_0x2f8e9c(0x1cc)]();}export function generateRandomHex(){const _0x484f4d=a210_0xcb50,_0x5c7d88=Math[_0x484f4d(0x1c2)](Math['random']()*0xfffff);return _0x5c7d88[_0x484f4d(0x1ca)](0x10)[_0x484f4d(0x1c4)](0x5,'0');}function a210_0x3e99(){const _0x1ebc25=['toString','\x5c$&','toLowerCase','replace','repeat','10834155XXovbA','2XNOlnP','6238476XhsxPD','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','Cannot\x20escape\x20empty\x20string\x20literal','substring','slice','4458VKSOQv','510731VeHRTK','length','4100530VCHRur','floor','1796xPKDmC','padStart','2723744yitpWy','unknown','trim','1066700GqZIVm','test'];a210_0x3e99=function(){return _0x1ebc25;};return a210_0x3e99();}function a210_0xcb50(_0x388d03,_0xb376a7){_0x388d03=_0x388d03-0x1c0;const _0x3e9996=a210_0x3e99();let _0xcb5092=_0x3e9996[_0x388d03];return _0xcb5092;}export function sanitizeFileName(_0x5698c6){const _0x35aa09=a210_0xcb50;return _0x5698c6[_0x35aa09(0x1cc)]()[_0x35aa09(0x1cd)](/[/\\:*?"<>|]/g,'-')[_0x35aa09(0x1cd)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x35aa09(0x1cd)](/^-|-$/g,'');}
1
+ (function(_0x5af6df,_0x5bb470){const _0x501893=a210_0x517b,_0x38cb29=_0x5af6df();while(!![]){try{const _0x301ed5=parseInt(_0x501893(0x12b))/0x1*(-parseInt(_0x501893(0x130))/0x2)+parseInt(_0x501893(0x121))/0x3+parseInt(_0x501893(0x122))/0x4*(-parseInt(_0x501893(0x128))/0x5)+-parseInt(_0x501893(0x129))/0x6+parseInt(_0x501893(0x12c))/0x7*(parseInt(_0x501893(0x11f))/0x8)+parseInt(_0x501893(0x12e))/0x9*(-parseInt(_0x501893(0x11e))/0xa)+parseInt(_0x501893(0x133))/0xb;if(_0x301ed5===_0x5bb470)break;else _0x38cb29['push'](_0x38cb29['shift']());}catch(_0x414ba4){_0x38cb29['push'](_0x38cb29['shift']());}}}(a210_0x2ad1,0x65a86));import a210_0x3f17c1 from'string-width';export function stringWidth(_0x3a1665){return a210_0x3f17c1(_0x3a1665);}export function padEnd(_0x463b86,_0x3f0805){const _0x38d5c4=a210_0x517b,_0x4b5984=stringWidth(_0x463b86);if(_0x4b5984>=_0x3f0805)return _0x463b86;return _0x463b86+'\x20'[_0x38d5c4(0x125)](_0x3f0805-_0x4b5984);}function a210_0x517b(_0x34839a,_0x2265de){_0x34839a=_0x34839a-0x11d;const _0x2ad1cd=a210_0x2ad1();let _0x517b3b=_0x2ad1cd[_0x34839a];return _0x517b3b;}export function padStart(_0x155ade,_0x5ccf5c){const _0x11e775=stringWidth(_0x155ade);if(_0x11e775>=_0x5ccf5c)return _0x155ade;return'\x20'['repeat'](_0x5ccf5c-_0x11e775)+_0x155ade;}export function centerAlign(_0x131781,_0x3aebc4){const _0x3c0c7d=a210_0x517b,_0x1b591e=stringWidth(_0x131781);if(_0x1b591e>_0x3aebc4){if(_0x3aebc4<=0x1)return'…'[_0x3c0c7d(0x126)](0x0,_0x3aebc4);let _0x10e02f=_0x131781;while(stringWidth(_0x10e02f+'…')>_0x3aebc4){_0x10e02f=_0x10e02f[_0x3c0c7d(0x12f)](0x0,-0x1);}return _0x10e02f+'…';}if(_0x1b591e===_0x3aebc4)return _0x131781;const _0xa3282b=_0x3aebc4-_0x1b591e,_0x36ce97=Math[_0x3c0c7d(0x12a)](_0xa3282b/0x2),_0x2f48f7=_0xa3282b-_0x36ce97;return'\x20'[_0x3c0c7d(0x125)](_0x36ce97)+_0x131781+'\x20'[_0x3c0c7d(0x125)](_0x2f48f7);}export function escapeStringLiteral(_0x432ad0){const _0x201ec2=a210_0x517b;if(!_0x432ad0||_0x432ad0[_0x201ec2(0x127)]()['length']===0x0)throw new Error(_0x201ec2(0x11d));const _0x21ccb7=_0x432ad0[_0x201ec2(0x134)](/'/g,'\x27\x27');return'\x27'+_0x21ccb7+'\x27';}function a210_0x2ad1(){const _0x12793d=['repeat','substring','trim','5BmtJvG','795750zKIios','floor','158dcbWDO','807744qKPlPh','toLowerCase','1450665xJEouu','slice','2578lnaOlO','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','padStart','2442121OffQSG','replace','length','Cannot\x20escape\x20empty\x20string\x20literal','10wbOwXX','40vKykGo','\x5c$&','1434624mcjzWm','1453268TcWUME','test','random'];a210_0x2ad1=function(){return _0x12793d;};return a210_0x2ad1();}export function globToLike(_0x1bf0e9){const _0x42dc6c=a210_0x517b;let _0x219258=_0x1bf0e9[_0x42dc6c(0x134)](/\\/g,'\x5c\x5c')[_0x42dc6c(0x134)](/%/g,'\x5c%')[_0x42dc6c(0x134)](/_/g,'\x5c_');return _0x219258=_0x219258['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x219258;}export function buildLikePattern(_0x40af25){const _0x2e8a16=a210_0x517b;if(!_0x40af25||_0x40af25[_0x2e8a16(0x127)]()[_0x2e8a16(0x135)]===0x0)throw new Error(_0x2e8a16(0x131));const _0x2770d5=globToLike(_0x40af25),_0x7e5abd=_0x2770d5['replace'](/'/g,'\x27\x27');return'\x27'+_0x7e5abd+'\x27';}export function matchGlobPattern(_0x4a11e2,_0x39ff5d){const _0x40aee2=a210_0x517b,_0x56b71b=_0x39ff5d[_0x40aee2(0x134)](/[.+^${}()|[\]\\]/g,_0x40aee2(0x120))[_0x40aee2(0x134)](/\*/g,'.*')[_0x40aee2(0x134)](/\?/g,'.'),_0x476314=new RegExp('^'+_0x56b71b+'$');return _0x476314[_0x40aee2(0x123)](_0x4a11e2);}export function getSanitizedUsername(){const _0x5a146f=a210_0x517b,_0x2b5a01=process.env.USER||process.env.USERNAME||'unknown';return _0x2b5a01[_0x5a146f(0x134)](/[^a-zA-Z0-9]/g,'')[_0x5a146f(0x12d)]();}export function generateRandomHex(){const _0x4ccaa5=a210_0x517b,_0x434f74=Math[_0x4ccaa5(0x12a)](Math[_0x4ccaa5(0x124)]()*0xfffff);return _0x434f74['toString'](0x10)[_0x4ccaa5(0x132)](0x5,'0');}export function sanitizeFileName(_0x59ebff){const _0x5b1093=a210_0x517b;return _0x59ebff[_0x5b1093(0x12d)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5b1093(0x134)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x5b1093(0x134)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a211_0x2f3a(){const _0x45a7e7=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','3skjmco','split','Pattern\x20cannot\x20be\x20just\x20a\x20dot','trim','52107432uNqdCd','508746YUiHgl','155836ZhfBuX','6256080VeLMQY','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','9wTYOOL','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','database','table','7dyrCNj','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','11mTQTDY','4578545ubqMBr','length','push','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','45HRIjkJ','6273616EcuESH','7815560jVgtFQ','includes','catalog'];a211_0x2f3a=function(){return _0x45a7e7;};return a211_0x2f3a();}(function(_0x2bd16d,_0x4534e2){const _0x550236=a211_0x4e77,_0xe31484=_0x2bd16d();while(!![]){try{const _0x279a2d=-parseInt(_0x550236(0x94))/0x1*(parseInt(_0x550236(0x99))/0x2)+parseInt(_0x550236(0x8e))/0x3*(parseInt(_0x550236(0x9a))/0x4)+-parseInt(_0x550236(0x8a))/0x5+-parseInt(_0x550236(0x9b))/0x6+-parseInt(_0x550236(0x86))/0x7*(parseInt(_0x550236(0x8f))/0x8)+-parseInt(_0x550236(0x9d))/0x9*(parseInt(_0x550236(0x90))/0xa)+-parseInt(_0x550236(0x89))/0xb*(-parseInt(_0x550236(0x98))/0xc);if(_0x279a2d===_0x4534e2)break;else _0xe31484['push'](_0xe31484['shift']());}catch(_0x3a9647){_0xe31484['push'](_0xe31484['shift']());}}}(a211_0x2f3a,0x9c1ad));function a211_0x4e77(_0x5bce4e,_0x396071){_0x5bce4e=_0x5bce4e-0x85;const _0x2f3a98=a211_0x2f3a();let _0x4e77d7=_0x2f3a98[_0x5bce4e];return _0x4e77d7;}function hasWildcard(_0x497f21){const _0x54dcb8=a211_0x4e77;return _0x497f21[_0x54dcb8(0x91)]('*')||_0x497f21['includes']('?');}export function parseTableReference(_0x3ae3bf){const _0x577367=a211_0x4e77;if(!_0x3ae3bf||_0x3ae3bf['trim']()[_0x577367(0x8b)]===0x0)throw new Error(_0x577367(0x9e));const _0x49cedf=_0x3ae3bf[_0x577367(0x97)](),_0x39fe65={'original':_0x49cedf},_0x42aece=_0x49cedf[_0x577367(0x95)]('.');if(_0x42aece[_0x577367(0x8b)]===0x1){const _0x43c8e6=_0x42aece[0x0];if(!_0x43c8e6)throw new Error(_0x577367(0x96));_0x39fe65[_0x577367(0x85)]=_0x43c8e6;}else{if(_0x42aece[_0x577367(0x8b)]===0x2){const [_0x5c9c21,_0x5e6023]=_0x42aece;if(!_0x5c9c21)throw new Error(_0x577367(0x93));if(!_0x5e6023)throw new Error(_0x577367(0x9c));_0x39fe65[_0x577367(0x9f)]=_0x5c9c21,_0x39fe65[_0x577367(0x85)]=_0x5e6023;}else{if(_0x42aece['length']===0x3){const [_0x40856c,_0x400c62,_0x18168d]=_0x42aece;if(!_0x40856c||!_0x400c62||!_0x18168d)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x39fe65[_0x577367(0x92)]=_0x40856c,_0x39fe65['database']=_0x400c62,_0x39fe65[_0x577367(0x85)]=_0x18168d;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x39fe65;}export function formatTableReference(_0x36c9c8){const _0x102be6=a211_0x4e77,_0xbf8e60=[];return _0x36c9c8['catalog']&&_0xbf8e60[_0x102be6(0x8c)](_0x36c9c8['catalog']),_0x36c9c8['database']&&_0xbf8e60[_0x102be6(0x8c)](_0x36c9c8[_0x102be6(0x9f)]),_0x36c9c8[_0x102be6(0x85)]&&_0xbf8e60[_0x102be6(0x8c)](_0x36c9c8[_0x102be6(0x85)]),_0xbf8e60[_0x102be6(0x87)]('.');}export function validateTableListReference(_0x4e4559){return undefined;}export function validateTableDescribeReference(_0x3b604d){const _0x1b77f5=a211_0x4e77;if(!_0x3b604d[_0x1b77f5(0x85)])return _0x1b77f5(0x88);if(_0x3b604d['database']&&hasWildcard(_0x3b604d[_0x1b77f5(0x9f)]))return _0x1b77f5(0x8d);if(hasWildcard(_0x3b604d['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ (function(_0x523be8,_0x3c672e){const _0x247e33=a211_0x55e3,_0x35922a=_0x523be8();while(!![]){try{const _0x570289=-parseInt(_0x247e33(0x17c))/0x1*(-parseInt(_0x247e33(0x17e))/0x2)+parseInt(_0x247e33(0x190))/0x3*(-parseInt(_0x247e33(0x193))/0x4)+-parseInt(_0x247e33(0x191))/0x5+parseInt(_0x247e33(0x186))/0x6+parseInt(_0x247e33(0x18a))/0x7*(parseInt(_0x247e33(0x18b))/0x8)+parseInt(_0x247e33(0x180))/0x9*(parseInt(_0x247e33(0x18d))/0xa)+-parseInt(_0x247e33(0x18c))/0xb;if(_0x570289===_0x3c672e)break;else _0x35922a['push'](_0x35922a['shift']());}catch(_0xb415e5){_0x35922a['push'](_0x35922a['shift']());}}}(a211_0x45c4,0xd9a65));function hasWildcard(_0x1cb6a1){const _0x3e57eb=a211_0x55e3;return _0x1cb6a1['includes']('*')||_0x1cb6a1[_0x3e57eb(0x18e)]('?');}function a211_0x45c4(){const _0x6a160a=['trim','599724NHMayV','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','push','database','8942652RCDakq','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','split','Pattern\x20cannot\x20be\x20just\x20a\x20dot','931JwXWYP','67528zSqJYO','12381083QuUKTS','110tAVFVO','includes','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','33159dchOck','6652065SYgOBN','table','292JbHVAq','length','1RtVoGT','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','1616474YQlVBW'];a211_0x45c4=function(){return _0x6a160a;};return a211_0x45c4();}export function parseTableReference(_0x2033c8){const _0x81ad4d=a211_0x55e3;if(!_0x2033c8||_0x2033c8[_0x81ad4d(0x17f)]()[_0x81ad4d(0x194)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x5c4be3=_0x2033c8[_0x81ad4d(0x17f)](),_0x23e80c={'original':_0x5c4be3},_0x2f39c3=_0x5c4be3[_0x81ad4d(0x188)]('.');if(_0x2f39c3[_0x81ad4d(0x194)]===0x1){const _0x2ed1ed=_0x2f39c3[0x0];if(!_0x2ed1ed)throw new Error(_0x81ad4d(0x189));_0x23e80c['table']=_0x2ed1ed;}else{if(_0x2f39c3[_0x81ad4d(0x194)]===0x2){const [_0xf6387a,_0x59bb09]=_0x2f39c3;if(!_0xf6387a)throw new Error(_0x81ad4d(0x183));if(!_0x59bb09)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x23e80c[_0x81ad4d(0x185)]=_0xf6387a,_0x23e80c[_0x81ad4d(0x192)]=_0x59bb09;}else{if(_0x2f39c3[_0x81ad4d(0x194)]===0x3){const [_0x2553d9,_0x20cf3b,_0x463bb8]=_0x2f39c3;if(!_0x2553d9||!_0x20cf3b||!_0x463bb8)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x23e80c['catalog']=_0x2553d9,_0x23e80c[_0x81ad4d(0x185)]=_0x20cf3b,_0x23e80c[_0x81ad4d(0x192)]=_0x463bb8;}else throw new Error(_0x81ad4d(0x187));}}return _0x23e80c;}function a211_0x55e3(_0xd4d733,_0xc22652){_0xd4d733=_0xd4d733-0x17c;const _0x45c482=a211_0x45c4();let _0x55e346=_0x45c482[_0xd4d733];return _0x55e346;}export function formatTableReference(_0x51e1a4){const _0x1ba43d=a211_0x55e3,_0x9e4253=[];return _0x51e1a4[_0x1ba43d(0x181)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x181)]),_0x51e1a4[_0x1ba43d(0x185)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x185)]),_0x51e1a4[_0x1ba43d(0x192)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x192)]),_0x9e4253['join']('.');}export function validateTableListReference(_0x384be8){return undefined;}export function validateTableDescribeReference(_0x27325b){const _0x4b32c0=a211_0x55e3;if(!_0x27325b[_0x4b32c0(0x192)])return _0x4b32c0(0x18f);if(_0x27325b[_0x4b32c0(0x185)]&&hasWildcard(_0x27325b[_0x4b32c0(0x185)]))return _0x4b32c0(0x182);if(hasWildcard(_0x27325b[_0x4b32c0(0x192)]))return _0x4b32c0(0x17d);return undefined;}
@@ -1 +1 @@
1
- function a212_0x4fcf(_0x578e5f,_0x496814){_0x578e5f=_0x578e5f-0xa4;const _0x4258d8=a212_0x4258();let _0x4fcf5c=_0x4258d8[_0x578e5f];return _0x4fcf5c;}const a212_0x516e5d=a212_0x4fcf;(function(_0x56bf66,_0x5ab858){const _0xe4292d=a212_0x4fcf,_0x21dd92=_0x56bf66();while(!![]){try{const _0xd4ee2c=-parseInt(_0xe4292d(0xa5))/0x1*(parseInt(_0xe4292d(0xb0))/0x2)+parseInt(_0xe4292d(0xb8))/0x3*(-parseInt(_0xe4292d(0xae))/0x4)+parseInt(_0xe4292d(0xa9))/0x5+-parseInt(_0xe4292d(0xb1))/0x6*(parseInt(_0xe4292d(0xbe))/0x7)+-parseInt(_0xe4292d(0xb7))/0x8+-parseInt(_0xe4292d(0xb4))/0x9*(parseInt(_0xe4292d(0xbc))/0xa)+-parseInt(_0xe4292d(0xc1))/0xb*(-parseInt(_0xe4292d(0xbd))/0xc);if(_0xd4ee2c===_0x5ab858)break;else _0x21dd92['push'](_0x21dd92['shift']());}catch(_0x18a4fc){_0x21dd92['push'](_0x21dd92['shift']());}}}(a212_0x4258,0xe2fb8));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';function a212_0x4258(){const _0xec0316=['isInitialized','getLogPath','fileOnly','44132fIZnkt','logs','1212sniqbt','6GRohpJ','shutdown','info','7370667CqvuLk','consoleHandler','init','3057864vcFNHh','33qsGaRI','fileHandler','logDir','tdx.log','20qdqsab','575292zsnePT','2055473waVTCP','tdx','logLevel','506imjvrU','trace','warn','logFileName','INFO','922jtzHym','logger','push','error','8591635VysTSR','Session\x20ended'];a212_0x4258=function(){return _0xec0316;};return a212_0x4258();}export class TDXLogger{['logLevel'];[a212_0x516e5d(0xad)];[a212_0x516e5d(0xba)];[a212_0x516e5d(0xc4)];['logger'];[a212_0x516e5d(0xb9)]=null;[a212_0x516e5d(0xb5)]=null;constructor(_0x4747e1=LogLevel[a212_0x516e5d(0xa4)],_0x2c9f14=![],_0x41c197,_0x3c3eda=a212_0x516e5d(0xbb)){const _0x37be7e=a212_0x516e5d;this[_0x37be7e(0xc0)]=_0x4747e1,this[_0x37be7e(0xad)]=_0x2c9f14,this['logDir']=_0x41c197||join(getGlobalCacheDir(),_0x37be7e(0xaf)),this[_0x37be7e(0xc4)]=_0x3c3eda,this[_0x37be7e(0xa6)]=Logger['of'](_0x37be7e(0xbf));}async['init'](){const _0x5c6aec=a212_0x516e5d,_0x3c5b60=join(this[_0x5c6aec(0xba)],this[_0x5c6aec(0xc4)]);if(Logger[_0x5c6aec(0xab)]()){!this[_0x5c6aec(0xad)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger['addHandler'](this[_0x5c6aec(0xb5)]));return;}this[_0x5c6aec(0xb9)]=new FileHandler({'filePath':_0x3c5b60});const _0x6a027a=[this[_0x5c6aec(0xb9)]];!this[_0x5c6aec(0xad)]&&(this[_0x5c6aec(0xb5)]=new ConsoleHandler({'minLevel':LogLevel[_0x5c6aec(0xa4)],'colors':!![]}),_0x6a027a[_0x5c6aec(0xa7)](this[_0x5c6aec(0xb5)])),await Logger[_0x5c6aec(0xb6)]({'defaultLevel':this[_0x5c6aec(0xc0)],'handlers':_0x6a027a,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x2a2867){const _0x5d273d=a212_0x516e5d;this[_0x5d273d(0xa6)]['debug'](..._0x2a2867);}[a212_0x516e5d(0xc2)](..._0x427159){const _0x4943c1=a212_0x516e5d;this[_0x4943c1(0xa6)][_0x4943c1(0xc2)](..._0x427159);}[a212_0x516e5d(0xb3)](..._0x37c350){const _0x409ed2=a212_0x516e5d;this[_0x409ed2(0xa6)][_0x409ed2(0xb3)](..._0x37c350);}[a212_0x516e5d(0xc3)](..._0x54977a){const _0x251b15=a212_0x516e5d;this[_0x251b15(0xa6)][_0x251b15(0xc3)](..._0x54977a);}[a212_0x516e5d(0xa8)](..._0x2fcc06){const _0x3e216c=a212_0x516e5d;this[_0x3e216c(0xa6)][_0x3e216c(0xa8)](..._0x2fcc06);}async['close'](){const _0x315d37=a212_0x516e5d;this[_0x315d37(0xa6)][_0x315d37(0xb3)](_0x315d37(0xaa)),await Logger[_0x315d37(0xb2)]();}[a212_0x516e5d(0xac)](){const _0x331c3a=a212_0x516e5d;return join(this[_0x331c3a(0xba)],this['logFileName']);}}
1
+ const a212_0x2f4e7a=a212_0x2b07;(function(_0x548986,_0x455aa8){const _0x3b3505=a212_0x2b07,_0x3b160d=_0x548986();while(!![]){try{const _0x28d170=-parseInt(_0x3b3505(0x1da))/0x1+-parseInt(_0x3b3505(0x1e2))/0x2*(-parseInt(_0x3b3505(0x1e5))/0x3)+parseInt(_0x3b3505(0x1e3))/0x4+-parseInt(_0x3b3505(0x1e8))/0x5+-parseInt(_0x3b3505(0x1e7))/0x6*(parseInt(_0x3b3505(0x1e1))/0x7)+-parseInt(_0x3b3505(0x1e9))/0x8+parseInt(_0x3b3505(0x1d8))/0x9;if(_0x28d170===_0x455aa8)break;else _0x3b160d['push'](_0x3b160d['shift']());}catch(_0x23519e){_0x3b160d['push'](_0x3b160d['shift']());}}}(a212_0x15f0,0x99030));function a212_0x15f0(){const _0x407dbb=['error','fileHandler','info','26859fZBJVo','1240FDpGUB','4759228hDoGHk','INFO','4581CMMrAJ','shutdown','66cjTIxe','3891645FOSwhj','2319592vFTIDr','tdx.log','addHandler','trace','init','getLogPath','logFileName','consoleHandler','logs','debug','push','tdx','fileOnly','2802537ztQYnX','logDir','710719etYXvI','logLevel','logger','warn'];a212_0x15f0=function(){return _0x407dbb;};return a212_0x15f0();}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';function a212_0x2b07(_0x13ee1b,_0x205f3d){_0x13ee1b=_0x13ee1b-0x1d7;const _0x15f03e=a212_0x15f0();let _0x2b07c5=_0x15f03e[_0x13ee1b];return _0x2b07c5;}export class TDXLogger{[a212_0x2f4e7a(0x1db)];['fileOnly'];['logDir'];[a212_0x2f4e7a(0x1ef)];[a212_0x2f4e7a(0x1dc)];[a212_0x2f4e7a(0x1df)]=null;[a212_0x2f4e7a(0x1f0)]=null;constructor(_0x10135a=LogLevel[a212_0x2f4e7a(0x1e4)],_0x18ae33=![],_0x48dfe9,_0x17e5cd=a212_0x2f4e7a(0x1ea)){const _0x281478=a212_0x2f4e7a;this[_0x281478(0x1db)]=_0x10135a,this[_0x281478(0x1d7)]=_0x18ae33,this[_0x281478(0x1d9)]=_0x48dfe9||join(getGlobalCacheDir(),_0x281478(0x1f1)),this[_0x281478(0x1ef)]=_0x17e5cd,this[_0x281478(0x1dc)]=Logger['of'](_0x281478(0x1f4));}async[a212_0x2f4e7a(0x1ed)](){const _0x3a26f7=a212_0x2f4e7a,_0x334973=join(this[_0x3a26f7(0x1d9)],this['logFileName']);if(Logger['isInitialized']()){!this[_0x3a26f7(0x1d7)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x3a26f7(0x1e4)],'colors':!![]}),Logger[_0x3a26f7(0x1eb)](this['consoleHandler']));return;}this['fileHandler']=new FileHandler({'filePath':_0x334973});const _0x3ec6a5=[this[_0x3a26f7(0x1df)]];!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x3ec6a5[_0x3a26f7(0x1f3)](this[_0x3a26f7(0x1f0)])),await Logger[_0x3a26f7(0x1ed)]({'defaultLevel':this['logLevel'],'handlers':_0x3ec6a5,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x2f4e7a(0x1f2)](..._0x1e428f){const _0xfd488d=a212_0x2f4e7a;this[_0xfd488d(0x1dc)][_0xfd488d(0x1f2)](..._0x1e428f);}[a212_0x2f4e7a(0x1ec)](..._0x422e9d){const _0x2e716b=a212_0x2f4e7a;this[_0x2e716b(0x1dc)]['trace'](..._0x422e9d);}['info'](..._0xae3824){const _0x11e209=a212_0x2f4e7a;this[_0x11e209(0x1dc)]['info'](..._0xae3824);}['warn'](..._0x202666){const _0x3ff053=a212_0x2f4e7a;this['logger'][_0x3ff053(0x1dd)](..._0x202666);}[a212_0x2f4e7a(0x1de)](..._0x7137f2){const _0x5a16c2=a212_0x2f4e7a;this[_0x5a16c2(0x1dc)]['error'](..._0x7137f2);}async['close'](){const _0xff9d35=a212_0x2f4e7a;this['logger'][_0xff9d35(0x1e0)]('Session\x20ended'),await Logger[_0xff9d35(0x1e6)]();}[a212_0x2f4e7a(0x1ee)](){const _0x5ca929=a212_0x2f4e7a;return join(this[_0x5ca929(0x1d9)],this['logFileName']);}}
@@ -1 +1 @@
1
- const a213_0xedde66=a213_0x895b;(function(_0x55b3a2,_0x3bf63b){const _0x27fabb=a213_0x895b,_0x87abe2=_0x55b3a2();while(!![]){try{const _0x5ef771=parseInt(_0x27fabb(0xa8))/0x1*(parseInt(_0x27fabb(0x99))/0x2)+parseInt(_0x27fabb(0x9c))/0x3+-parseInt(_0x27fabb(0x95))/0x4+parseInt(_0x27fabb(0x88))/0x5+-parseInt(_0x27fabb(0x9b))/0x6*(-parseInt(_0x27fabb(0x91))/0x7)+parseInt(_0x27fabb(0x9e))/0x8+-parseInt(_0x27fabb(0x8e))/0x9;if(_0x5ef771===_0x3bf63b)break;else _0x87abe2['push'](_0x87abe2['shift']());}catch(_0x65d6d0){_0x87abe2['push'](_0x87abe2['shift']());}}}(a213_0xfd67,0x6a52c));import{get}from'https';import{gt,valid}from'semver';function a213_0x895b(_0x797a57,_0x28e436){_0x797a57=_0x797a57-0x80;const _0xfd67fc=a213_0xfd67();let _0x895b1b=_0xfd67fc[_0x797a57];return _0x895b1b;}import a213_0x4bc8d6 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a213_0xedde66(0x87),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0xedde66(0x9d),'utils/version-check'),nextVersionCache=createGlobalCache('last_version_check_next','utils/version-check-next');function getCacheForChannel(_0x23a455){const _0x1b79fb=a213_0xedde66;return _0x23a455===_0x1b79fb(0x8b)?nextVersionCache:stableVersionCache;}function readCache(_0x1de2db){const _0x5d8635=a213_0xedde66;return getCacheForChannel(_0x1de2db)[_0x5d8635(0xa1)]()??null;}function writeCache(_0x560a4d,_0x2b8dd6){const _0x383b3f=a213_0xedde66;try{getCacheForChannel(_0x2b8dd6)[_0x383b3f(0x8f)]({'lastCheck':new Date()[_0x383b3f(0x82)](),'latestVersion':_0x560a4d});}catch{}}function isCacheValid(_0x24563b){const _0x1dc27e=a213_0xedde66;if(!_0x24563b)return![];const _0x53b5f3=new Date(_0x24563b[_0x1dc27e(0xaa)])[_0x1dc27e(0x81)](),_0xed01fd=Date[_0x1dc27e(0x93)]();return _0xed01fd-_0x53b5f3<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x556f48=a213_0xedde66(0x9f)){const _0x247da5=a213_0xedde66,_0x419d51=_0x556f48==='next'?_0x247da5(0x8b):_0x247da5(0x94),_0x51d8ea=NPM_REGISTRY_BASE+'/'+_0x419d51;return new Promise((_0x316346,_0x366dc8)=>{const _0x5d811d=_0x247da5,_0x38aff5=get(_0x51d8ea,{'timeout':TIMEOUT_MS},_0x1682ed=>{const _0x5542c0=a213_0x895b;if(_0x1682ed[_0x5542c0(0xa9)]!==0xc8){clearTimeout(_0x57c854),_0x366dc8(new Error(_0x5542c0(0x92)+_0x1682ed[_0x5542c0(0xa9)]));return;}let _0x3c88a6='';_0x1682ed['on'](_0x5542c0(0x8d),_0xdf9f15=>{_0x3c88a6+=_0xdf9f15;}),_0x1682ed['on'](_0x5542c0(0xa3),()=>{const _0x22f75f=_0x5542c0;clearTimeout(_0x57c854);try{const _0x40c2f3=JSON['parse'](_0x3c88a6);if(!valid(_0x40c2f3[_0x22f75f(0x98)])){_0x366dc8(new Error('Invalid\x20version\x20format'));return;}_0x316346(_0x40c2f3['version']);}catch(_0x476487){_0x366dc8(_0x476487);}});})['on'](_0x5d811d(0xa6),_0x1b32bc=>{clearTimeout(_0x57c854),_0x366dc8(_0x1b32bc);});_0x38aff5['on'](_0x5d811d(0xab),_0x515464=>{const _0x5b2a76=_0x5d811d;_0x515464[_0x5b2a76(0xa7)]();});const _0x57c854=setTimeout(()=>{const _0x21134e=_0x5d811d;_0x38aff5[_0x21134e(0x86)](),_0x366dc8(new Error(_0x21134e(0x89)));},TIMEOUT_MS);_0x57c854['unref']();});}export async function checkForUpdate(_0x3f6833,_0x25319d=a213_0xedde66(0x9f)){const _0x471daa=a213_0xedde66;try{const _0x545076=readCache(_0x25319d);if(isCacheValid(_0x545076)){const _0x47461c=gt(_0x545076[_0x471daa(0x8a)],_0x3f6833);return{'updateAvailable':_0x47461c,'currentVersion':_0x3f6833,'latestVersion':_0x545076[_0x471daa(0x8a)],'channel':_0x25319d};}const _0x3e7b78=await fetchLatestVersion(_0x25319d);writeCache(_0x3e7b78,_0x25319d);const _0x268beb=gt(_0x3e7b78,_0x3f6833);return{'updateAvailable':_0x268beb,'currentVersion':_0x3f6833,'latestVersion':_0x3e7b78,'channel':_0x25319d};}catch{return null;}}export function displayUpdateNotification(_0x1c9c3c){const _0x12ec21=a213_0xedde66;if(!_0x1c9c3c[_0x12ec21(0x97)])return;const _0x2bcc0a=_0x1c9c3c[_0x12ec21(0xa2)]===_0x12ec21(0x8b)?_0x12ec21(0x96):_0x12ec21(0x84),_0x254b1a=process[_0x12ec21(0x9a)]['isTTY']&&!process.env.NO_COLOR,_0x11fb4b=_0x254b1a?a213_0x4bc8d6[_0x12ec21(0xa4)]('→'):'→',_0x1dafb5=_0x254b1a?a213_0x4bc8d6[_0x12ec21(0xa0)](_0x1c9c3c['currentVersion']):_0x1c9c3c[_0x12ec21(0xa5)],_0x5afeb7=_0x254b1a?a213_0x4bc8d6['green'](_0x1c9c3c[_0x12ec21(0x8a)]):_0x1c9c3c['latestVersion'],_0x36a2d3=_0x254b1a?a213_0x4bc8d6[_0x12ec21(0x8c)](_0x2bcc0a):_0x2bcc0a,_0x49a502=_0x254b1a?'\x0a'+a213_0x4bc8d6['yellow'](_0x12ec21(0x90))+'\x20'+_0x1dafb5+'\x20'+_0x11fb4b+'\x20'+_0x5afeb7+'\x0a'+a213_0x4bc8d6[_0x12ec21(0xa0)](_0x12ec21(0x85))+'\x20'+_0x36a2d3+'\x0a':_0x12ec21(0x83)+_0x1dafb5+'\x20'+_0x11fb4b+'\x20'+_0x5afeb7+_0x12ec21(0x80)+_0x36a2d3+'\x0a';process[_0x12ec21(0x9a)][_0x12ec21(0x8f)](_0x49a502);}function a213_0xfd67(){const _0x3d2281=['cyan','data','17208405lzhkSR','write','Update\x20available:','604177WcJxwW','HTTP\x20','now','latest','3085708qYFLAp','tdx\x20upgrade\x20--next','updateAvailable','version','1727672IkQTuV','stderr','24zKoBEP','1039248GQQiSS','last_version_check','5737552HgRyVy','stable','dim','read','channel','end','gray','currentVersion','error','unref','1WhVIxb','statusCode','lastCheck','socket','\x0aRun:\x20','getTime','toISOString','\x0aUpdate\x20available:\x20','tdx\x20upgrade','Run:','destroy','https://registry.npmjs.org/@treasuredata/tdx','4231410EUJgIg','Request\x20timeout','latestVersion','next'];a213_0xfd67=function(){return _0x3d2281;};return a213_0xfd67();}
1
+ const a213_0x46d049=a213_0x5a46;(function(_0x580eef,_0x38044f){const _0x318c3c=a213_0x5a46,_0x164095=_0x580eef();while(!![]){try{const _0x267318=parseInt(_0x318c3c(0x11b))/0x1*(-parseInt(_0x318c3c(0x141))/0x2)+parseInt(_0x318c3c(0x11e))/0x3*(parseInt(_0x318c3c(0x143))/0x4)+-parseInt(_0x318c3c(0x12f))/0x5+parseInt(_0x318c3c(0x11a))/0x6+-parseInt(_0x318c3c(0x11d))/0x7+-parseInt(_0x318c3c(0x134))/0x8*(parseInt(_0x318c3c(0x117))/0x9)+parseInt(_0x318c3c(0x12c))/0xa*(parseInt(_0x318c3c(0x133))/0xb);if(_0x267318===_0x38044f)break;else _0x164095['push'](_0x164095['shift']());}catch(_0x3b3b3){_0x164095['push'](_0x164095['shift']());}}}(a213_0x64fe,0x53f24));function a213_0x5a46(_0x4f8066,_0x355d31){_0x4f8066=_0x4f8066-0x116;const _0x64fe9f=a213_0x64fe();let _0x5a46e6=_0x64fe9f[_0x4f8066];return _0x5a46e6;}import{get}from'https';function a213_0x64fe(){const _0x101ebb=['Invalid\x20version\x20format','48879hyWZNW','latest','last_version_check_next','3353988qKMqJl','41IDqzHG','statusCode','4051810loGtFl','15JGCLCb','data','last_version_check','Request\x20timeout','updateAvailable','utils/version-check-next','latestVersion','HTTP\x20','https://registry.npmjs.org/@treasuredata/tdx','tdx\x20upgrade\x20--next','unref','getTime','dim','gray','870ocLURb','next','version','3220680bqWVWh','isTTY','socket','cyan','168586DPkmJN','808KTGLvL','\x0aRun:\x20','lastCheck','stderr','destroy','parse','\x0aUpdate\x20available:\x20','write','tdx\x20upgrade','Update\x20available:','now','Run:','error','8088tRUUJq','utils/version-check','311028XPoJIR','currentVersion'];a213_0x64fe=function(){return _0x101ebb;};return a213_0x64fe();}import{gt,valid}from'semver';import a213_0x96268b from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a213_0x46d049(0x126),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0x46d049(0x120),a213_0x46d049(0x142)),nextVersionCache=createGlobalCache(a213_0x46d049(0x119),a213_0x46d049(0x123));function getCacheForChannel(_0x417a8d){const _0x4b7083=a213_0x46d049;return _0x417a8d===_0x4b7083(0x12d)?nextVersionCache:stableVersionCache;}function readCache(_0x2325f7){return getCacheForChannel(_0x2325f7)['read']()??null;}function writeCache(_0x2332de,_0x5afa61){const _0x31f705=a213_0x46d049;try{getCacheForChannel(_0x5afa61)[_0x31f705(0x13b)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2332de});}catch{}}function isCacheValid(_0x531507){const _0x27f2f8=a213_0x46d049;if(!_0x531507)return![];const _0x3f5058=new Date(_0x531507[_0x27f2f8(0x136)])[_0x27f2f8(0x129)](),_0x59bc1d=Date[_0x27f2f8(0x13e)]();return _0x59bc1d-_0x3f5058<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x22a4b0='stable'){const _0xd883d=a213_0x46d049,_0x5a183a=_0x22a4b0===_0xd883d(0x12d)?_0xd883d(0x12d):_0xd883d(0x118),_0x1fc8ba=NPM_REGISTRY_BASE+'/'+_0x5a183a;return new Promise((_0x39cdcf,_0x2d9f6c)=>{const _0x340e4f=_0xd883d,_0x27e12c=get(_0x1fc8ba,{'timeout':TIMEOUT_MS},_0x5c441e=>{const _0x194055=a213_0x5a46;if(_0x5c441e[_0x194055(0x11c)]!==0xc8){clearTimeout(_0x1da971),_0x2d9f6c(new Error(_0x194055(0x125)+_0x5c441e[_0x194055(0x11c)]));return;}let _0x30adbe='';_0x5c441e['on'](_0x194055(0x11f),_0x2ae337=>{_0x30adbe+=_0x2ae337;}),_0x5c441e['on']('end',()=>{const _0x155a51=_0x194055;clearTimeout(_0x1da971);try{const _0x1f663d=JSON[_0x155a51(0x139)](_0x30adbe);if(!valid(_0x1f663d['version'])){_0x2d9f6c(new Error(_0x155a51(0x116)));return;}_0x39cdcf(_0x1f663d[_0x155a51(0x12e)]);}catch(_0x5d17db){_0x2d9f6c(_0x5d17db);}});})['on'](_0x340e4f(0x140),_0x50c216=>{clearTimeout(_0x1da971),_0x2d9f6c(_0x50c216);});_0x27e12c['on'](_0x340e4f(0x131),_0x198aa2=>{const _0x4de0a1=_0x340e4f;_0x198aa2[_0x4de0a1(0x128)]();});const _0x1da971=setTimeout(()=>{const _0xfc021d=_0x340e4f;_0x27e12c[_0xfc021d(0x138)](),_0x2d9f6c(new Error(_0xfc021d(0x121)));},TIMEOUT_MS);_0x1da971[_0x340e4f(0x128)]();});}export async function checkForUpdate(_0x4ee05c,_0x43087f='stable'){const _0x3fb028=a213_0x46d049;try{const _0x3653d2=readCache(_0x43087f);if(isCacheValid(_0x3653d2)){const _0x3864f3=gt(_0x3653d2[_0x3fb028(0x124)],_0x4ee05c);return{'updateAvailable':_0x3864f3,'currentVersion':_0x4ee05c,'latestVersion':_0x3653d2[_0x3fb028(0x124)],'channel':_0x43087f};}const _0x23a7c7=await fetchLatestVersion(_0x43087f);writeCache(_0x23a7c7,_0x43087f);const _0x126856=gt(_0x23a7c7,_0x4ee05c);return{'updateAvailable':_0x126856,'currentVersion':_0x4ee05c,'latestVersion':_0x23a7c7,'channel':_0x43087f};}catch{return null;}}export function displayUpdateNotification(_0x3f28a2){const _0x4ed7f0=a213_0x46d049;if(!_0x3f28a2[_0x4ed7f0(0x122)])return;const _0x3649f4=_0x3f28a2['channel']==='next'?_0x4ed7f0(0x127):_0x4ed7f0(0x13c),_0xa68b7e=process[_0x4ed7f0(0x137)][_0x4ed7f0(0x130)]&&!process.env.NO_COLOR,_0x57d961=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x12b)]('→'):'→',_0x5f4677=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x12a)](_0x3f28a2[_0x4ed7f0(0x144)]):_0x3f28a2[_0x4ed7f0(0x144)],_0x11cdad=_0xa68b7e?a213_0x96268b['green'](_0x3f28a2['latestVersion']):_0x3f28a2[_0x4ed7f0(0x124)],_0x545019=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x132)](_0x3649f4):_0x3649f4,_0x1136db=_0xa68b7e?'\x0a'+a213_0x96268b['yellow'](_0x4ed7f0(0x13d))+'\x20'+_0x5f4677+'\x20'+_0x57d961+'\x20'+_0x11cdad+'\x0a'+a213_0x96268b[_0x4ed7f0(0x12a)](_0x4ed7f0(0x13f))+'\x20'+_0x545019+'\x0a':_0x4ed7f0(0x13a)+_0x5f4677+'\x20'+_0x57d961+'\x20'+_0x11cdad+_0x4ed7f0(0x135)+_0x545019+'\x0a';process['stderr'][_0x4ed7f0(0x13b)](_0x1136db);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.7",
3
+ "version": "2026.3.8",
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": {