@treasuredata/tdx 2026.3.19 → 2026.3.20

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 (204) 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/profile-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/schedule-command.js +1 -1
  37. package/dist/commands/segment-command.js +1 -1
  38. package/dist/commands/segment-create-command.js +1 -1
  39. package/dist/commands/segment-fields-command.js +1 -1
  40. package/dist/commands/segment-pull-command.js +1 -1
  41. package/dist/commands/segment-push-command.js +1 -1
  42. package/dist/commands/segment-update-command.js +1 -1
  43. package/dist/commands/segment-use-command.js +1 -1
  44. package/dist/commands/segment-validate-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/status-command.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/unset-command.js +1 -1
  50. package/dist/commands/upgrade-command.js +1 -1
  51. package/dist/commands/use-command.js +1 -1
  52. package/dist/commands/user-command.js +1 -1
  53. package/dist/commands/workflow-command.js +1 -1
  54. package/dist/core/auth.js +1 -1
  55. package/dist/core/command-output.js +1 -1
  56. package/dist/core/config.js +1 -1
  57. package/dist/core/connection-cache.js +1 -1
  58. package/dist/core/constants.js +1 -1
  59. package/dist/core/credential-cache.js +1 -1
  60. package/dist/core/global-context.js +1 -1
  61. package/dist/core/keychain.js +1 -1
  62. package/dist/core/oauth-keychain.js +1 -1
  63. package/dist/core/oauth.js +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/project-config.js +1 -1
  66. package/dist/core/session.js +1 -1
  67. package/dist/core/user-cache.js +1 -1
  68. package/dist/core/version.js +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/mcp/server.js +1 -1
  71. package/dist/mcp/tools/index.js +1 -1
  72. package/dist/mcp/tools/tdx-run.js +1 -1
  73. package/dist/mcp/tools/tdx-search.js +1 -1
  74. package/dist/mcp/utils.js +1 -1
  75. package/dist/proxy/claude-usage-tracker.js +1 -1
  76. package/dist/proxy/passthrough-server.js +1 -1
  77. package/dist/proxy/sse-usage-parser.js +1 -1
  78. package/dist/sdk/agent/agent-config.js +1 -1
  79. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  80. package/dist/sdk/agent/agent-yaml.js +1 -1
  81. package/dist/sdk/agent/test/evaluator.js +1 -1
  82. package/dist/sdk/agent/test/executor.js +1 -1
  83. package/dist/sdk/agent/test/index.js +1 -1
  84. package/dist/sdk/agent/test/output.js +1 -1
  85. package/dist/sdk/agent/test/parser.js +1 -1
  86. package/dist/sdk/agent/tool-target-registry.js +1 -1
  87. package/dist/sdk/api.js +1 -1
  88. package/dist/sdk/client/cdp-api-client.js +1 -1
  89. package/dist/sdk/client/delivery-api-client.js +1 -1
  90. package/dist/sdk/client/endpoints.js +1 -1
  91. package/dist/sdk/client/engage-api-client.js +1 -1
  92. package/dist/sdk/client/http-client.js +1 -1
  93. package/dist/sdk/client/llm-api-client.js +1 -1
  94. package/dist/sdk/client/oauth-refresh.js +1 -1
  95. package/dist/sdk/client/rate-limiter.js +1 -1
  96. package/dist/sdk/client/td-api-client.js +1 -1
  97. package/dist/sdk/client/trino-api-client.js +1 -1
  98. package/dist/sdk/client/workflow-client.js +1 -1
  99. package/dist/sdk/connection-validator.js +1 -1
  100. package/dist/sdk/connection.js +1 -1
  101. package/dist/sdk/delivery.js +1 -1
  102. package/dist/sdk/engage/campaign-pull.js +1 -1
  103. package/dist/sdk/engage/campaign-push.js +1 -1
  104. package/dist/sdk/engage/campaign-validator.js +1 -1
  105. package/dist/sdk/engage/campaign-yaml.js +1 -1
  106. package/dist/sdk/engage/template-pull.js +1 -1
  107. package/dist/sdk/engage/template-push.js +1 -1
  108. package/dist/sdk/engage/template-validator.js +1 -1
  109. package/dist/sdk/engage/template-yaml.js +1 -1
  110. package/dist/sdk/engage/types/campaign-def.js +1 -1
  111. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  112. package/dist/sdk/engage/types/template-schema.js +1 -1
  113. package/dist/sdk/engage.js +1 -1
  114. package/dist/sdk/errors.js +1 -1
  115. package/dist/sdk/index.js +1 -1
  116. package/dist/sdk/io/index.js +1 -1
  117. package/dist/sdk/io/node-filesystem.js +1 -1
  118. package/dist/sdk/job.js +1 -1
  119. package/dist/sdk/journey.js +1 -1
  120. package/dist/sdk/llm/chat-cache.js +1 -1
  121. package/dist/sdk/llm/index.js +1 -1
  122. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  123. package/dist/sdk/llm/model-factors.js +1 -1
  124. package/dist/sdk/personalization.js +1 -1
  125. package/dist/sdk/query/index.js +1 -1
  126. package/dist/sdk/query/sql-parser.js +1 -1
  127. package/dist/sdk/realtime.js +1 -1
  128. package/dist/sdk/schedule.js +1 -1
  129. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  130. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  131. package/dist/sdk/segment/child-segment-yaml.js.map +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/segment-validator.js.map +1 -1
  147. package/dist/sdk/segment/target-resolution.js +1 -1
  148. package/dist/sdk/segment/tdx-config.js +1 -1
  149. package/dist/sdk/segment/types/activation-schema.js +1 -1
  150. package/dist/sdk/segment/types/journey-def.js +1 -1
  151. package/dist/sdk/segment/types/journey-schema.js +1 -1
  152. package/dist/sdk/segment/types/segment-def.js +1 -1
  153. package/dist/sdk/segment/types/segment-schema.js +1 -1
  154. package/dist/sdk/segment/validate-files.js +1 -1
  155. package/dist/sdk/segment/yaml-validator.js +1 -1
  156. package/dist/sdk/segment.js +1 -1
  157. package/dist/sdk/types/index.js +1 -1
  158. package/dist/sdk/types/progress.js +1 -1
  159. package/dist/sdk/user.js +1 -1
  160. package/dist/sdk/util/format-detector.js +1 -1
  161. package/dist/sdk/util/formatters.js +1 -1
  162. package/dist/sdk/util/index.js +1 -1
  163. package/dist/sdk/util/paginate.js +1 -1
  164. package/dist/sdk/util/tree-formatter.js +1 -1
  165. package/dist/sdk/workflow/archive-validation.js +1 -1
  166. package/dist/sdk/workflow/clone-workflow.js +1 -1
  167. package/dist/sdk/workflow/index.js +1 -1
  168. package/dist/sdk/workflow/pull-workflow.js +1 -1
  169. package/dist/sdk/workflow/push-workflow.js +1 -1
  170. package/dist/sdk/workflow/tdx-config.js +1 -1
  171. package/dist/sdk/workflow/workflow-utils.js +1 -1
  172. package/dist/test-utils/command-runner.js +1 -1
  173. package/dist/test-utils/factories.js +1 -1
  174. package/dist/test-utils/fixtures.js +1 -1
  175. package/dist/test-utils/http-mock.js +1 -1
  176. package/dist/test-utils/index.js +1 -1
  177. package/dist/utils/async.js +1 -1
  178. package/dist/utils/colors.js +1 -1
  179. package/dist/utils/diff.js +1 -1
  180. package/dist/utils/file-permissions.js +1 -1
  181. package/dist/utils/file-reader.js +1 -1
  182. package/dist/utils/github-releases.js +1 -1
  183. package/dist/utils/global-cache.js +1 -1
  184. package/dist/utils/json-loader.js +1 -1
  185. package/dist/utils/local-cache.js +1 -1
  186. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  187. package/dist/utils/logger/formatters/index.js +1 -1
  188. package/dist/utils/logger/handlers/console-handler.js +1 -1
  189. package/dist/utils/logger/handlers/file-handler.js +1 -1
  190. package/dist/utils/logger/handlers/index.js +1 -1
  191. package/dist/utils/logger/handlers/null-handler.js +1 -1
  192. package/dist/utils/logger/index.js +1 -1
  193. package/dist/utils/logger/logger.js +1 -1
  194. package/dist/utils/logger/types.js +1 -1
  195. package/dist/utils/option-validation.js +1 -1
  196. package/dist/utils/process.js +1 -1
  197. package/dist/utils/prompt.js +1 -1
  198. package/dist/utils/spinner.js +1 -1
  199. package/dist/utils/sse-parser.js +1 -1
  200. package/dist/utils/string-utils.js +1 -1
  201. package/dist/utils/table-ref-parser.js +1 -1
  202. package/dist/utils/tdx-logger.js +1 -1
  203. package/dist/utils/version-check.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a206_0x5641(){const _0xd44b30=['pipe','platform','62887fQzTIj','ion','electron','href','error','toString','15676548KbdQmm','trim','toLowerCase','\x20-o\x20ppid=,comm=','map','utf-8','3930IsrIMj','csh','treasure\x20studio','split','7OMEphw','stdout','1kSirSB','ppid','claude','pid','9xmrNvv','xdg-open','pwsh','code','comm','ksh','zsh','405770ppcxNv','data','start','unref','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','win32','join','xonsh','1352712hMJArh','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','138306krrXot','Invalid\x20URL:\x20','replace','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','isInteger','http:','cursor','2340810ybWvKt','420kcJSsM','powershell','open','ignore','bash','exit','kill','Unsupported\x20protocol:\x20','cmd.exe','1176qqBYmu','fish'];a206_0x5641=function(){return _0xd44b30;};return a206_0x5641();}const a206_0x5a1ffc=a206_0x4204;(function(_0x2639eb,_0x58c7d3){const _0x1df621=a206_0x4204,_0x4fb109=_0x2639eb();while(!![]){try{const _0x5b2d78=parseInt(_0x1df621(0x142))/0x1*(-parseInt(_0x1df621(0x14d))/0x2)+-parseInt(_0x1df621(0x122))/0x3+parseInt(_0x1df621(0x12c))/0x4*(parseInt(_0x1df621(0x13c))/0x5)+parseInt(_0x1df621(0x11b))/0x6*(-parseInt(_0x1df621(0x140))/0x7)+-parseInt(_0x1df621(0x119))/0x8*(-parseInt(_0x1df621(0x146))/0x9)+-parseInt(_0x1df621(0x123))/0xa*(parseInt(_0x1df621(0x130))/0xb)+parseInt(_0x1df621(0x136))/0xc;if(_0x5b2d78===_0x58c7d3)break;else _0x4fb109['push'](_0x4fb109['shift']());}catch(_0x4227df){_0x4fb109['push'](_0x4fb109['shift']());}}}(a206_0x5641,0x705c8));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x5a1ffc(0x127),a206_0x5a1ffc(0x14c),'sh',a206_0x5a1ffc(0x12d),a206_0x5a1ffc(0x14b),'tcsh',a206_0x5a1ffc(0x13d),'dash',a206_0x5a1ffc(0x148),a206_0x5a1ffc(0x124),'nu',a206_0x5a1ffc(0x131),'elvish',a206_0x5a1ffc(0x118)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x5a1ffc(0x144),a206_0x5a1ffc(0x149),a206_0x5a1ffc(0x121),a206_0x5a1ffc(0x132),a206_0x5a1ffc(0x13e)]);function getProcessInfoWindows(_0x589c9c){const _0x41941f=a206_0x5a1ffc;try{if(!Number[_0x41941f(0x11f)](_0x589c9c)||_0x589c9c<=0x0)return null;const _0x5a1038=_0x41941f(0x11e)+_0x589c9c+_0x41941f(0x11a),_0x2a94fa=execSync(_0x41941f(0x151)+_0x5a1038+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x41941f(0x12e),_0x41941f(0x12e),_0x41941f(0x12e)]})[_0x41941f(0x137)]();if(!_0x2a94fa)return null;const [_0x1f2f38,..._0x1f858d]=_0x2a94fa[_0x41941f(0x13f)](','),_0x593521=parseInt(_0x1f2f38,0xa),_0x1480b0=_0x1f858d[_0x41941f(0x153)](',')[_0x41941f(0x137)]();if(isNaN(_0x593521)||!_0x1480b0)return null;return{'pid':_0x589c9c,'ppid':_0x593521,'comm':_0x1480b0['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x444439){const _0x281b34=a206_0x5a1ffc;try{const _0x4149ef=0x400000;if(!Number[_0x281b34(0x11f)](_0x444439)||_0x444439<=0x0||_0x444439>_0x4149ef)return null;const _0xc16895=execSync('ps\x20-p\x20'+_0x444439+_0x281b34(0x139),{'encoding':_0x281b34(0x13b),'stdio':'pipe'})[_0x281b34(0x137)](),[_0x38ff51,..._0x49bbda]=_0xc16895[_0x281b34(0x13f)](/\s+/),_0x1ea955=parseInt(_0x38ff51,0xa),_0x4bfd34=_0x49bbda['join']('\x20');if(isNaN(_0x1ea955))return null;return{'pid':_0x444439,'ppid':_0x1ea955,'comm':_0x4bfd34};}catch{return null;}}function a206_0x4204(_0x14afef,_0x12b56e){_0x14afef=_0x14afef-0x118;const _0x5641ae=a206_0x5641();let _0x420402=_0x5641ae[_0x14afef];return _0x420402;}function getProcessInfo(_0x4624f1){const _0x583ac2=a206_0x5a1ffc;if(process[_0x583ac2(0x12f)]==='win32')return getProcessInfoWindows(_0x4624f1);return getProcessInfoPosix(_0x4624f1);}function getBasename(_0x2be423){const _0x114ce5=a206_0x5a1ffc;return _0x2be423[_0x114ce5(0x11d)](/^-/,'')['split']('/')['pop']()?.[_0x114ce5(0x138)]()||'';}function isShell(_0x3d7d10){return SHELL_NAMES['has'](getBasename(_0x3d7d10));}function isEphemeralShellSpawner(_0x23617e){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x23617e));}let cachedShellPID;function findShellPID(){const _0x5295b5=a206_0x5a1ffc;if(process['ppid']===undefined)return process['pid'];let _0x5ec554=process[_0x5295b5(0x143)];const _0x454919=0xa;let _0x167f79=0x0;while(_0x167f79<_0x454919){const _0x2088f1=getProcessInfo(_0x5ec554);if(!_0x2088f1)break;if(isShell(_0x2088f1[_0x5295b5(0x14a)])){const _0x3e0e15=getProcessInfo(_0x2088f1[_0x5295b5(0x143)]);if(_0x3e0e15&&isEphemeralShellSpawner(_0x3e0e15['comm'])){_0x5ec554=_0x2088f1[_0x5295b5(0x143)],_0x167f79++;continue;}return _0x2088f1[_0x5295b5(0x145)];}if(_0x2088f1['ppid']===0x0||_0x2088f1[_0x5295b5(0x143)]===0x1){if(isShell(_0x2088f1['comm']))return _0x2088f1[_0x5295b5(0x145)];break;}_0x5ec554=_0x2088f1[_0x5295b5(0x143)],_0x167f79++;}return process[_0x5295b5(0x143)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3739dc){const _0x1da3df=a206_0x5a1ffc;if(!Number[_0x1da3df(0x11f)](_0x3739dc)||_0x3739dc<=0x0)return![];try{return process[_0x1da3df(0x129)](_0x3739dc,0x0),!![];}catch{return![];}}export function openBrowser(_0x430ae6){const _0xb5159a=a206_0x5a1ffc;let _0x37ada9;try{_0x37ada9=new URL(_0x430ae6);}catch{throw new Error(_0xb5159a(0x11c)+_0x430ae6);}if(_0x37ada9['protocol']!==_0xb5159a(0x120)&&_0x37ada9['protocol']!=='https:')throw new Error(_0xb5159a(0x12a)+_0x37ada9['protocol']);const _0x215ec3=_0x37ada9[_0xb5159a(0x133)],_0x3cb930=process[_0xb5159a(0x12f)];if(_0x3cb930==='win32')spawn(_0xb5159a(0x12b),['/c',_0xb5159a(0x14f),'',_0x215ec3],{'detached':!![],'stdio':_0xb5159a(0x126)})[_0xb5159a(0x150)]();else{const _0x14b8cc=_0x3cb930==='darwin'?_0xb5159a(0x125):_0xb5159a(0x147);spawn(_0x14b8cc,[_0x215ec3],{'detached':!![],'stdio':_0xb5159a(0x126)})['unref']();}}export function isWindows(){const _0x295b96=a206_0x5a1ffc;return process[_0x295b96(0x12f)]===_0x295b96(0x152);}export function getCrossSpawnOptions(_0x5c9651){return{..._0x5c9651??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2ad716){const _0x4ba30d=a206_0x5a1ffc;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x2ad716))return _0x2ad716;const _0x421f8c=_0x2ad716[_0x4ba30d(0x11d)](/"/g,'\x22\x22');return'\x22'+_0x421f8c+'\x22';}export function crossSpawn(_0x5ca0da,_0x424b2b,_0x5ce80b){const _0x1653a9=a206_0x5a1ffc;if(isWindows()){const _0x8def4a=escapeWindowsArg(_0x5ca0da),_0x3b2d39=_0x424b2b[_0x1653a9(0x13a)](escapeWindowsArg),_0x5239c0=[_0x8def4a,..._0x3b2d39][_0x1653a9(0x153)]('\x20');return spawn(_0x5239c0,[],{..._0x5ce80b,'shell':!![]});}return spawn(_0x5ca0da,_0x424b2b,{..._0x5ce80b,'shell':![]});}export function gracefulExit(_0x326528=0x0){const _0x2fdd94=a206_0x5a1ffc;isWindows()?setTimeout(()=>process[_0x2fdd94(0x128)](_0x326528),0x32):process[_0x2fdd94(0x128)](_0x326528);}export function findExecutable(_0x4d9243,_0x167c76=0x1388){return new Promise(_0x16d909=>{const _0xc3640e=a206_0x4204,_0x489d83=isWindows()?'where.exe':'which';let _0x3e0914=![];const _0x1072e3=crossSpawn(_0x489d83,[_0x4d9243],{'stdio':_0xc3640e(0x12e),'shell':isWindows()}),_0x2881e2=setTimeout(()=>{const _0x228746=_0xc3640e;!_0x3e0914&&(_0x3e0914=!![],_0x1072e3[_0x228746(0x129)](),_0x16d909(null));},_0x167c76);let _0x3708ce='';_0x1072e3[_0xc3640e(0x141)]?.['on'](_0xc3640e(0x14e),_0xad53a0=>{const _0x153584=_0xc3640e;_0x3708ce+=_0xad53a0[_0x153584(0x135)]();}),_0x1072e3['stderr']?.['on'](_0xc3640e(0x14e),()=>{}),_0x1072e3['on'](_0xc3640e(0x128),_0x47e8e6=>{const _0x1db5f6=_0xc3640e;if(_0x3e0914)return;_0x3e0914=!![],clearTimeout(_0x2881e2);if(_0x47e8e6===0x0&&_0x3708ce[_0x1db5f6(0x137)]()){const _0x22c561=_0x3708ce[_0x1db5f6(0x137)]()[_0x1db5f6(0x13f)](/\r?\n/)[0x0];_0x16d909(_0x22c561);}else _0x16d909(null);}),_0x1072e3['on'](_0xc3640e(0x134),()=>{if(_0x3e0914)return;_0x3e0914=!![],clearTimeout(_0x2881e2),_0x16d909(null);});});}
1
+ const a206_0x1b0891=a206_0x243a;(function(_0x1da24f,_0x2eb346){const _0x173d8c=a206_0x243a,_0x27c822=_0x1da24f();while(!![]){try{const _0x170b61=parseInt(_0x173d8c(0x127))/0x1*(-parseInt(_0x173d8c(0x13a))/0x2)+parseInt(_0x173d8c(0x155))/0x3*(parseInt(_0x173d8c(0x126))/0x4)+-parseInt(_0x173d8c(0x133))/0x5*(-parseInt(_0x173d8c(0x12b))/0x6)+-parseInt(_0x173d8c(0x137))/0x7*(parseInt(_0x173d8c(0x143))/0x8)+parseInt(_0x173d8c(0x12a))/0x9+-parseInt(_0x173d8c(0x14e))/0xa*(-parseInt(_0x173d8c(0x14b))/0xb)+parseInt(_0x173d8c(0x14d))/0xc*(-parseInt(_0x173d8c(0x14a))/0xd);if(_0x170b61===_0x2eb346)break;else _0x27c822['push'](_0x27c822['shift']());}catch(_0xd59a72){_0x27c822['push'](_0x27c822['shift']());}}}(a206_0x1e58,0xb16cb));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x1b0891(0x120),'zsh','sh','fish',a206_0x1b0891(0x121),a206_0x1b0891(0x14f),'csh',a206_0x1b0891(0x149),a206_0x1b0891(0x131),a206_0x1b0891(0x122),'nu','ion',a206_0x1b0891(0x12e),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x1b0891(0x151),a206_0x1b0891(0x147),a206_0x1b0891(0x13f),'electron','treasure\x20studio']);function getProcessInfoWindows(_0x44c85e){const _0x1d62dd=a206_0x1b0891;try{if(!Number[_0x1d62dd(0x152)](_0x44c85e)||_0x44c85e<=0x0)return null;const _0x478e95=_0x1d62dd(0x11f)+_0x44c85e+_0x1d62dd(0x11e),_0xce22de=execSync(_0x1d62dd(0x140)+_0x478e95+'\x22',{'encoding':_0x1d62dd(0x13c),'windowsHide':!![],'stdio':[_0x1d62dd(0x11b),_0x1d62dd(0x11b),_0x1d62dd(0x11b)]})[_0x1d62dd(0x124)]();if(!_0xce22de)return null;const [_0x3cc966,..._0x4d232c]=_0xce22de[_0x1d62dd(0x13e)](','),_0x5752c7=parseInt(_0x3cc966,0xa),_0x3406d7=_0x4d232c[_0x1d62dd(0x14c)](',')[_0x1d62dd(0x124)]();if(isNaN(_0x5752c7)||!_0x3406d7)return null;return{'pid':_0x44c85e,'ppid':_0x5752c7,'comm':_0x3406d7[_0x1d62dd(0x12f)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x184c64){const _0x4c8021=a206_0x1b0891;try{const _0x90f0a7=0x400000;if(!Number[_0x4c8021(0x152)](_0x184c64)||_0x184c64<=0x0||_0x184c64>_0x90f0a7)return null;const _0x1e770a=execSync(_0x4c8021(0x144)+_0x184c64+_0x4c8021(0x154),{'encoding':_0x4c8021(0x13c),'stdio':'pipe'})[_0x4c8021(0x124)](),[_0x554269,..._0x5dad57]=_0x1e770a[_0x4c8021(0x13e)](/\s+/),_0x557345=parseInt(_0x554269,0xa),_0x50b742=_0x5dad57[_0x4c8021(0x14c)]('\x20');if(isNaN(_0x557345))return null;return{'pid':_0x184c64,'ppid':_0x557345,'comm':_0x50b742};}catch{return null;}}function getProcessInfo(_0x30ac5b){const _0xdf82ab=a206_0x1b0891;if(process['platform']===_0xdf82ab(0x146))return getProcessInfoWindows(_0x30ac5b);return getProcessInfoPosix(_0x30ac5b);}function getBasename(_0x29c040){const _0x15dfee=a206_0x1b0891;return _0x29c040[_0x15dfee(0x12f)](/^-/,'')[_0x15dfee(0x13e)]('/')[_0x15dfee(0x125)]()?.[_0x15dfee(0x12d)]()||'';}function isShell(_0x7bec5f){return SHELL_NAMES['has'](getBasename(_0x7bec5f));}function isEphemeralShellSpawner(_0x2b18e3){const _0x1a94a7=a206_0x1b0891;return EPHEMERAL_SHELL_SPAWNERS[_0x1a94a7(0x128)](getBasename(_0x2b18e3));}function a206_0x1e58(){const _0x28312a=['error','pid','stderr','77JaXLnU','data','kill','70264iLZkmX','unref','utf-8','href','split','cursor','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','open','ignore','610120wVjLzl','ps\x20-p\x20','xdg-open','win32','code','protocol','dash','260CxyOwy','528ltmPpx','join','261336NJhEqw','208410kAZJgt','tcsh','Unsupported\x20protocol:\x20','claude','isInteger','comm','\x20-o\x20ppid=,comm=','9LOXWjk','ppid','pipe','exit','stdout','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','bash','ksh','powershell','where.exe','trim','pop','1118080cbHDoi','30zfDhkx','has','platform','7859745mkrKSR','18ZlKvcO','toString','toLowerCase','elvish','replace','start','pwsh','test','571555kHeBIP'];a206_0x1e58=function(){return _0x28312a;};return a206_0x1e58();}function a206_0x243a(_0x51e891,_0x49ee87){_0x51e891=_0x51e891-0x11a;const _0x1e581c=a206_0x1e58();let _0x243a83=_0x1e581c[_0x51e891];return _0x243a83;}let cachedShellPID;function findShellPID(){const _0x56fb6c=a206_0x1b0891;if(process['ppid']===undefined)return process[_0x56fb6c(0x135)];let _0x2f98b9=process[_0x56fb6c(0x11a)];const _0x53a64f=0xa;let _0x1b9bc1=0x0;while(_0x1b9bc1<_0x53a64f){const _0x1f5ab1=getProcessInfo(_0x2f98b9);if(!_0x1f5ab1)break;if(isShell(_0x1f5ab1['comm'])){const _0x45f87b=getProcessInfo(_0x1f5ab1[_0x56fb6c(0x11a)]);if(_0x45f87b&&isEphemeralShellSpawner(_0x45f87b[_0x56fb6c(0x153)])){_0x2f98b9=_0x1f5ab1[_0x56fb6c(0x11a)],_0x1b9bc1++;continue;}return _0x1f5ab1[_0x56fb6c(0x135)];}if(_0x1f5ab1['ppid']===0x0||_0x1f5ab1['ppid']===0x1){if(isShell(_0x1f5ab1['comm']))return _0x1f5ab1[_0x56fb6c(0x135)];break;}_0x2f98b9=_0x1f5ab1['ppid'],_0x1b9bc1++;}return process[_0x56fb6c(0x11a)]!==undefined?process[_0x56fb6c(0x11a)]:process[_0x56fb6c(0x135)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3a5fb4){const _0x1805a9=a206_0x1b0891;if(!Number[_0x1805a9(0x152)](_0x3a5fb4)||_0x3a5fb4<=0x0)return![];try{return process['kill'](_0x3a5fb4,0x0),!![];}catch{return![];}}export function openBrowser(_0x58e588){const _0x348461=a206_0x1b0891;let _0x16adc1;try{_0x16adc1=new URL(_0x58e588);}catch{throw new Error('Invalid\x20URL:\x20'+_0x58e588);}if(_0x16adc1['protocol']!=='http:'&&_0x16adc1[_0x348461(0x148)]!=='https:')throw new Error(_0x348461(0x150)+_0x16adc1['protocol']);const _0x3eb253=_0x16adc1[_0x348461(0x13d)],_0x2fa66c=process['platform'];if(_0x2fa66c===_0x348461(0x146))spawn('cmd.exe',['/c',_0x348461(0x130),'',_0x3eb253],{'detached':!![],'stdio':_0x348461(0x142)})['unref']();else{const _0x5c4b01=_0x2fa66c==='darwin'?_0x348461(0x141):_0x348461(0x145);spawn(_0x5c4b01,[_0x3eb253],{'detached':!![],'stdio':_0x348461(0x142)})[_0x348461(0x13b)]();}}export function isWindows(){const _0x3c80a5=a206_0x1b0891;return process[_0x3c80a5(0x129)]===_0x3c80a5(0x146);}export function getCrossSpawnOptions(_0x1963b6){return{..._0x1963b6??{},'shell':isWindows()};}export function escapeWindowsArg(_0x5a9dbb){const _0x47bca7=a206_0x1b0891;if(!/[ \t"&|<>^%!`\r\n]/[_0x47bca7(0x132)](_0x5a9dbb))return _0x5a9dbb;const _0x1cf7ac=_0x5a9dbb['replace'](/"/g,'\x22\x22');return'\x22'+_0x1cf7ac+'\x22';}export function crossSpawn(_0x4eca34,_0x5cb509,_0x12d59d){const _0x267800=a206_0x1b0891;if(isWindows()){const _0x445183=escapeWindowsArg(_0x4eca34),_0x2fe283=_0x5cb509['map'](escapeWindowsArg),_0x2a780d=[_0x445183,..._0x2fe283][_0x267800(0x14c)]('\x20');return spawn(_0x2a780d,[],{..._0x12d59d,'shell':!![]});}return spawn(_0x4eca34,_0x5cb509,{..._0x12d59d,'shell':![]});}export function gracefulExit(_0x2ce618=0x0){const _0x52a0f8=a206_0x1b0891;isWindows()?setTimeout(()=>process[_0x52a0f8(0x11c)](_0x2ce618),0x32):process[_0x52a0f8(0x11c)](_0x2ce618);}export function findExecutable(_0x42fe0b,_0x4d7cb5=0x1388){return new Promise(_0x3a9870=>{const _0x4eb772=a206_0x243a,_0x49d653=isWindows()?_0x4eb772(0x123):'which';let _0x430526=![];const _0x35437a=crossSpawn(_0x49d653,[_0x42fe0b],{'stdio':_0x4eb772(0x11b),'shell':isWindows()}),_0x2fbcaa=setTimeout(()=>{const _0xd4ee8=_0x4eb772;!_0x430526&&(_0x430526=!![],_0x35437a[_0xd4ee8(0x139)](),_0x3a9870(null));},_0x4d7cb5);let _0x3f5189='';_0x35437a[_0x4eb772(0x11d)]?.['on'](_0x4eb772(0x138),_0x2f3742=>{const _0x57008e=_0x4eb772;_0x3f5189+=_0x2f3742[_0x57008e(0x12c)]();}),_0x35437a[_0x4eb772(0x136)]?.['on']('data',()=>{}),_0x35437a['on'](_0x4eb772(0x11c),_0x158de8=>{const _0x2d03e8=_0x4eb772;if(_0x430526)return;_0x430526=!![],clearTimeout(_0x2fbcaa);if(_0x158de8===0x0&&_0x3f5189[_0x2d03e8(0x124)]()){const _0x19569c=_0x3f5189['trim']()['split'](/\r?\n/)[0x0];_0x3a9870(_0x19569c);}else _0x3a9870(null);}),_0x35437a['on'](_0x4eb772(0x134),()=>{if(_0x430526)return;_0x430526=!![],clearTimeout(_0x2fbcaa),_0x3a9870(null);});});}
@@ -1 +1 @@
1
- function a207_0x4835(){const _0x5c87c0=['createInterface','setEncoding','resume','378380nbnFuR','stdout','4188CvcHqd','isTTY','stdin','8KEeznn','1514iZuGNk','write','4795380xWgwBJ','pause','toLowerCase','setRawMode','2350iDUgwc','8922258DbfAIs','data','125609lOXZrb','question','2774107ApKvxz','\x20(y/N):\x20','72HpnnHN','1673114LLMKwz','stderr','utf8'];a207_0x4835=function(){return _0x5c87c0;};return a207_0x4835();}(function(_0x434a78,_0x51d627){const _0x4cd6ce=a207_0x1c44,_0x1497b2=_0x434a78();while(!![]){try{const _0x156f30=-parseInt(_0x4cd6ce(0x97))/0x1+-parseInt(_0x4cd6ce(0xa3))/0x2*(parseInt(_0x4cd6ce(0x9f))/0x3)+parseInt(_0x4cd6ce(0xa5))/0x4+parseInt(_0x4cd6ce(0x9d))/0x5*(-parseInt(_0x4cd6ce(0x96))/0x6)+parseInt(_0x4cd6ce(0x94))/0x7*(-parseInt(_0x4cd6ce(0xa2))/0x8)+parseInt(_0x4cd6ce(0x90))/0x9+-parseInt(_0x4cd6ce(0x8f))/0xa*(-parseInt(_0x4cd6ce(0x92))/0xb);if(_0x156f30===_0x51d627)break;else _0x1497b2['push'](_0x1497b2['shift']());}catch(_0x568396){_0x1497b2['push'](_0x1497b2['shift']());}}}(a207_0x4835,0xccecd));import*as a207_0x459a3d from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x48912c=a207_0x1c44;return process[_0x48912c(0xa1)]['isTTY']===!![];}function a207_0x1c44(_0x53e7d7,_0x52bbee){_0x53e7d7=_0x53e7d7-0x8c;const _0x483527=a207_0x4835();let _0x1c44bb=_0x483527[_0x53e7d7];return _0x1c44bb;}export async function confirm(_0xfd7392){const _0x325fad=a207_0x1c44,_0x4270bc=a207_0x459a3d[_0x325fad(0x9a)]({'input':process[_0x325fad(0xa1)],'output':process[_0x325fad(0x9e)]});return new Promise(_0x2d8ac8=>{const _0x674b68=_0x325fad;_0x4270bc[_0x674b68(0x93)](_0xfd7392+_0x674b68(0x95),_0x2995d1=>{const _0x475cd2=_0x674b68;_0x4270bc['close'](),_0x2d8ac8(_0x2995d1[_0x475cd2(0x8d)]()==='y'||_0x2995d1[_0x475cd2(0x8d)]()==='yes');});});}export async function confirmKey(_0x321cd3){const _0x15af03=a207_0x1c44;if(!process[_0x15af03(0xa1)][_0x15af03(0xa0)])return![];return process['stderr']['write'](_0x321cd3+'\x20[y/N]\x20'),new Promise(_0x2b1e4e=>{const _0x5178c4=_0x15af03,_0x4503b5=process[_0x5178c4(0xa1)];_0x4503b5[_0x5178c4(0x8e)](!![]),_0x4503b5[_0x5178c4(0x9c)](),_0x4503b5[_0x5178c4(0x9b)](_0x5178c4(0x99));const _0x1c55a8=_0xda73a9=>{const _0x2a773f=_0x5178c4;_0x4503b5[_0x2a773f(0x8e)](![]),_0x4503b5[_0x2a773f(0x8c)](),_0x4503b5['removeListener'](_0x2a773f(0x91),_0x1c55a8);if(_0xda73a9==='\x1b'){process[_0x2a773f(0x98)]['write']('\x0a'),_0x2b1e4e(![]);return;}_0xda73a9==='\x03'&&(process['stderr'][_0x2a773f(0xa4)]('\x0a'),gracefulExit(0x82));if(_0xda73a9[_0x2a773f(0x8d)]()==='y'){process['stderr']['write']('y\x0a'),_0x2b1e4e(!![]);return;}process[_0x2a773f(0x98)][_0x2a773f(0xa4)]('\x0a'),_0x2b1e4e(![]);};_0x4503b5['on'](_0x5178c4(0x91),_0x1c55a8);});}
1
+ function a207_0x2408(){const _0x376e67=['\x20(y/N):\x20','\x20[y/N]\x20','stdin','close','data','setRawMode','3869214ZAocpm','4918960YzHihP','4301055EnPHYl','resume','setEncoding','301721VjlOLo','question','96CfRfiG','write','2618725wcEyoJ','removeListener','24785340AyruZp','stdout','1RevPRp','2801212ppxpZO','8OQbHxs','stderr','yes','isTTY'];a207_0x2408=function(){return _0x376e67;};return a207_0x2408();}(function(_0x45033e,_0xf24a6){const _0x4426d2=a207_0x1aef,_0x33af05=_0x45033e();while(!![]){try{const _0x5cce25=parseInt(_0x4426d2(0x185))/0x1*(parseInt(_0x4426d2(0x186))/0x2)+parseInt(_0x4426d2(0x178))/0x3+parseInt(_0x4426d2(0x179))/0x4+-parseInt(_0x4426d2(0x181))/0x5+parseInt(_0x4426d2(0x17f))/0x6*(-parseInt(_0x4426d2(0x17d))/0x7)+parseInt(_0x4426d2(0x187))/0x8*(parseInt(_0x4426d2(0x17a))/0x9)+-parseInt(_0x4426d2(0x183))/0xa;if(_0x5cce25===_0xf24a6)break;else _0x33af05['push'](_0x33af05['shift']());}catch(_0x5f2f81){_0x33af05['push'](_0x33af05['shift']());}}}(a207_0x2408,0xac604));import*as a207_0x35201d from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x45bfdc=a207_0x1aef;return process['stdin'][_0x45bfdc(0x171)]===!![];}function a207_0x1aef(_0x34870e,_0x20a901){_0x34870e=_0x34870e-0x171;const _0x2408e6=a207_0x2408();let _0x1aef46=_0x2408e6[_0x34870e];return _0x1aef46;}export async function confirm(_0x412e6b){const _0x12e855=a207_0x1aef,_0x14cee0=a207_0x35201d['createInterface']({'input':process[_0x12e855(0x174)],'output':process[_0x12e855(0x184)]});return new Promise(_0x32512e=>{const _0x679780=_0x12e855;_0x14cee0[_0x679780(0x17e)](_0x412e6b+_0x679780(0x172),_0x1571d4=>{const _0x3c4d91=_0x679780;_0x14cee0[_0x3c4d91(0x175)](),_0x32512e(_0x1571d4['toLowerCase']()==='y'||_0x1571d4['toLowerCase']()===_0x3c4d91(0x189));});});}export async function confirmKey(_0x44ede4){const _0x7bdc98=a207_0x1aef;if(!process[_0x7bdc98(0x174)][_0x7bdc98(0x171)])return![];return process[_0x7bdc98(0x188)][_0x7bdc98(0x180)](_0x44ede4+_0x7bdc98(0x173)),new Promise(_0x2b4855=>{const _0x59c39a=_0x7bdc98,_0x17310c=process[_0x59c39a(0x174)];_0x17310c[_0x59c39a(0x177)](!![]),_0x17310c[_0x59c39a(0x17b)](),_0x17310c[_0x59c39a(0x17c)]('utf8');const _0xef4153=_0x1ecf6c=>{const _0x54b840=_0x59c39a;_0x17310c[_0x54b840(0x177)](![]),_0x17310c['pause'](),_0x17310c[_0x54b840(0x182)](_0x54b840(0x176),_0xef4153);if(_0x1ecf6c==='\x1b'){process['stderr'][_0x54b840(0x180)]('\x0a'),_0x2b4855(![]);return;}_0x1ecf6c==='\x03'&&(process[_0x54b840(0x188)]['write']('\x0a'),gracefulExit(0x82));if(_0x1ecf6c['toLowerCase']()==='y'){process['stderr']['write']('y\x0a'),_0x2b4855(!![]);return;}process[_0x54b840(0x188)][_0x54b840(0x180)]('\x0a'),_0x2b4855(![]);};_0x17310c['on'](_0x59c39a(0x176),_0xef4153);});}
@@ -1 +1 @@
1
- (function(_0x1b2182,_0x59d198){const _0x8d32cd=a208_0x1bd0,_0x2e3ea7=_0x1b2182();while(!![]){try{const _0x443395=parseInt(_0x8d32cd(0x14b))/0x1*(-parseInt(_0x8d32cd(0x152))/0x2)+-parseInt(_0x8d32cd(0x154))/0x3*(-parseInt(_0x8d32cd(0x158))/0x4)+-parseInt(_0x8d32cd(0x14c))/0x5*(-parseInt(_0x8d32cd(0x147))/0x6)+parseInt(_0x8d32cd(0x14d))/0x7+parseInt(_0x8d32cd(0x150))/0x8+parseInt(_0x8d32cd(0x155))/0x9*(parseInt(_0x8d32cd(0x15e))/0xa)+-parseInt(_0x8d32cd(0x15b))/0xb*(parseInt(_0x8d32cd(0x163))/0xc);if(_0x443395===_0x59d198)break;else _0x2e3ea7['push'](_0x2e3ea7['shift']());}catch(_0x34854e){_0x2e3ea7['push'](_0x2e3ea7['shift']());}}}(a208_0x5b4a,0x72b26));import a208_0x340e60 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x5b4a(){const _0x51ae4a=['now','4906QEkhCk','start','stop','10ABDclo','clock','floor','\x20[Job\x20ID:\x20','text','7932PfuJyS','cyan','extra','205566KOFDpC','isTTY','toFixed','replace','5102BUFkzv','15MkKNSY','334047sjAaYB','intervalFactory','...','3577456fnNSca','stderr','202iYUnWA','trim','549uJDSoo','2880567TMROxp','phase','isSpinning','7916gkAXzy','jobId'];a208_0x5b4a=function(){return _0x51ae4a;};return a208_0x5b4a();}export function createCommandSpinner(_0xe3e58c,_0x16f71c={}){const _0x1909d0=a208_0x1bd0,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x16f71c;return a208_0x340e60({'text':_0xe3e58c,'color':_0x1909d0(0x164),'stream':process[_0x1909d0(0x151)],'isEnabled':forceEnabled||process[_0x1909d0(0x151)][_0x1909d0(0x148)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0xa33225,_0x2dacfc,_0x222158={}){const _0x12b41b=a208_0x1bd0,_0x482da2=_0x222158['clock']??(()=>Date[_0x12b41b(0x15a)]()),_0x157c12=createCommandSpinner(_0xa33225,_0x222158);_0x157c12[_0x12b41b(0x15c)]();const _0x5027d8=_0x482da2();try{const _0x904290=await _0x2dacfc(),_0x2988c1=_0x482da2()-_0x5027d8;return _0x157c12[_0x12b41b(0x15d)](),{'data':_0x904290,'elapsedMs':_0x2988c1};}catch(_0x3f472a){_0x157c12['stop']();throw _0x3f472a;}}export async function withProgressSpinner(_0x376f23,_0x506aca,_0x355221={}){const _0x162771=a208_0x1bd0,_0x28fd70=_0x355221[_0x162771(0x15f)]??(()=>Date[_0x162771(0x15a)]()),_0x4c9ff7=_0x355221[_0x162771(0x14e)]??setInterval,_0x5deae8=createCommandSpinner(_0x376f23,_0x355221);_0x5deae8[_0x162771(0x15c)]();const _0x10a100=_0x28fd70(),_0x5da91a=_0x376f23[_0x162771(0x14a)](_0x162771(0x14f),'')['trim']()||'Processing',_0x9b8f43={};let _0x2ec2f7=_0x376f23;const _0x4bd7d=()=>{const _0x34a7cd=_0x162771;if(!_0x5deae8[_0x34a7cd(0x157)])return;const _0x5a4f94=_0x28fd70()-_0x10a100,_0xc34e15=formatElapsed(_0x5a4f94),_0x339e1f=_0x9b8f43['phase']?.[_0x34a7cd(0x153)]()||_0x5da91a,_0x42a9a1=_0x9b8f43[_0x34a7cd(0x159)]?_0x34a7cd(0x161)+_0x9b8f43['jobId']+']':'',_0x476f9e=_0x9b8f43[_0x34a7cd(0x146)]?'\x20'+_0x9b8f43['extra']:'',_0x16bc6b=_0x339e1f+'\x20'+_0xc34e15+_0x476f9e+_0x42a9a1;_0x16bc6b!==_0x2ec2f7&&_0x16bc6b[_0x34a7cd(0x153)]()&&(_0x5deae8['text']=_0x16bc6b,_0x2ec2f7=_0x16bc6b);},_0x3a917c=_0x4c9ff7(()=>{_0x4bd7d();},0x3e8),_0x264286={'setPhase':_0x5b551d=>{const _0x57cc4c=_0x162771;_0x9b8f43[_0x57cc4c(0x156)]=_0x5b551d;const _0x49bd2c=_0x5b551d?.['trim']()||_0x5da91a,_0xb019e6=_0x28fd70()-_0x10a100,_0x3fe62c=formatElapsed(_0xb019e6),_0x43f412=_0x9b8f43['jobId']?_0x57cc4c(0x161)+_0x9b8f43[_0x57cc4c(0x159)]+']':'',_0x476030=_0x9b8f43[_0x57cc4c(0x146)]?'\x20'+_0x9b8f43['extra']:'',_0x22366d=_0x49bd2c+'\x20'+_0x3fe62c+_0x476030+_0x43f412;_0x5deae8[_0x57cc4c(0x157)]&&_0x22366d['trim']()&&(_0x5deae8[_0x57cc4c(0x162)]=_0x22366d,_0x2ec2f7=_0x22366d);},'setJobId':_0x10d624=>{_0x9b8f43['jobId']=_0x10d624,_0x4bd7d();},'setExtra':_0x55581f=>{const _0x593ea8=_0x162771;_0x9b8f43[_0x593ea8(0x146)]=_0x55581f,_0x4bd7d();}};_0x4bd7d();try{const _0x870c18=await _0x506aca(_0x264286),_0x277baf=_0x28fd70()-_0x10a100;return{'data':_0x870c18,'elapsedMs':_0x277baf};}finally{clearInterval(_0x3a917c),_0x5deae8[_0x162771(0x15d)]();}}function a208_0x1bd0(_0xd614e7,_0x21e9fd){_0xd614e7=_0xd614e7-0x146;const _0x5b4a0a=a208_0x5b4a();let _0x1bd08a=_0x5b4a0a[_0xd614e7];return _0x1bd08a;}export function formatElapsed(_0xf946f3){const _0x4b4634=a208_0x1bd0,_0x9e8c81=Math[_0x4b4634(0x160)](_0xf946f3/0x3e8);if(_0x9e8c81<0x3c)return(_0xf946f3/0x3e8)[_0x4b4634(0x149)](0x1)+'s';const _0xf386dc=Math[_0x4b4634(0x160)](_0x9e8c81/0x3c),_0x28d273=_0x9e8c81%0x3c;if(_0xf386dc<0x3c)return _0xf386dc+'m\x20'+_0x28d273+'s';const _0x50aed0=Math[_0x4b4634(0x160)](_0xf386dc/0x3c),_0x572b09=_0xf386dc%0x3c;return _0x50aed0+'h\x20'+_0x572b09+'m';}
1
+ (function(_0x2c9242,_0x253f5a){const _0x42c8ef=a208_0x4a1e,_0x1b0a6c=_0x2c9242();while(!![]){try{const _0x1e6415=-parseInt(_0x42c8ef(0x186))/0x1*(parseInt(_0x42c8ef(0x17b))/0x2)+parseInt(_0x42c8ef(0x187))/0x3+-parseInt(_0x42c8ef(0x183))/0x4+parseInt(_0x42c8ef(0x175))/0x5+parseInt(_0x42c8ef(0x17c))/0x6*(-parseInt(_0x42c8ef(0x178))/0x7)+parseInt(_0x42c8ef(0x16f))/0x8+-parseInt(_0x42c8ef(0x173))/0x9*(-parseInt(_0x42c8ef(0x181))/0xa);if(_0x1e6415===_0x253f5a)break;else _0x1b0a6c['push'](_0x1b0a6c['shift']());}catch(_0x318b2b){_0x1b0a6c['push'](_0x1b0a6c['shift']());}}}(a208_0x5491,0x6e2fa));import a208_0xf04028 from'ora';import{isWindows}from'./process.js';function a208_0x5491(){const _0x58401b=['text','clock','4869557vbjWPJ','extra','start','2GjxcZS','6auzQcU','isSpinning','toFixed','floor','replace','220LCGXns','\x20[Job\x20ID:\x20','3346600XEClwa','trim','now','351053isUqvd','852633aOWyFk','stderr','isTTY','98392hGTkpH','jobId','phase','stop','787293VFIrej','Processing','568360ZSUaQL'];a208_0x5491=function(){return _0x58401b;};return a208_0x5491();}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x1a1a22,_0x81a51e={}){const _0x31d581=a208_0x4a1e,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x81a51e;return a208_0xf04028({'text':_0x1a1a22,'color':'cyan','stream':process['stderr'],'isEnabled':forceEnabled||process[_0x31d581(0x188)][_0x31d581(0x189)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x4d997d,_0x21fdec,_0x105957={}){const _0x102498=a208_0x4a1e,_0x3d388=_0x105957[_0x102498(0x177)]??(()=>Date[_0x102498(0x185)]()),_0x456a1e=createCommandSpinner(_0x4d997d,_0x105957);_0x456a1e[_0x102498(0x17a)]();const _0x15f1c5=_0x3d388();try{const _0x455051=await _0x21fdec(),_0x41823e=_0x3d388()-_0x15f1c5;return _0x456a1e[_0x102498(0x172)](),{'data':_0x455051,'elapsedMs':_0x41823e};}catch(_0x3f0ea4){_0x456a1e[_0x102498(0x172)]();throw _0x3f0ea4;}}export async function withProgressSpinner(_0xa3083a,_0x2899ea,_0x316714={}){const _0x395ff0=a208_0x4a1e,_0x115574=_0x316714[_0x395ff0(0x177)]??(()=>Date[_0x395ff0(0x185)]()),_0x245b3c=_0x316714['intervalFactory']??setInterval,_0x15cc59=createCommandSpinner(_0xa3083a,_0x316714);_0x15cc59[_0x395ff0(0x17a)]();const _0x344ff5=_0x115574(),_0x3c58ac=_0xa3083a[_0x395ff0(0x180)]('...','')[_0x395ff0(0x184)]()||_0x395ff0(0x174),_0x563ac1={};let _0x1dad54=_0xa3083a;const _0x4cd4ed=()=>{const _0x4ee00f=_0x395ff0;if(!_0x15cc59[_0x4ee00f(0x17d)])return;const _0x4cd447=_0x115574()-_0x344ff5,_0x1fa519=formatElapsed(_0x4cd447),_0x841dc5=_0x563ac1[_0x4ee00f(0x171)]?.[_0x4ee00f(0x184)]()||_0x3c58ac,_0x70f734=_0x563ac1[_0x4ee00f(0x170)]?_0x4ee00f(0x182)+_0x563ac1['jobId']+']':'',_0x50530e=_0x563ac1[_0x4ee00f(0x179)]?'\x20'+_0x563ac1['extra']:'',_0x449504=_0x841dc5+'\x20'+_0x1fa519+_0x50530e+_0x70f734;_0x449504!==_0x1dad54&&_0x449504[_0x4ee00f(0x184)]()&&(_0x15cc59[_0x4ee00f(0x176)]=_0x449504,_0x1dad54=_0x449504);},_0x1a62e3=_0x245b3c(()=>{_0x4cd4ed();},0x3e8),_0x3cc558={'setPhase':_0x267319=>{const _0x48defc=_0x395ff0;_0x563ac1['phase']=_0x267319;const _0x3e7bde=_0x267319?.[_0x48defc(0x184)]()||_0x3c58ac,_0x145108=_0x115574()-_0x344ff5,_0x39db30=formatElapsed(_0x145108),_0x6b2cc9=_0x563ac1['jobId']?'\x20[Job\x20ID:\x20'+_0x563ac1[_0x48defc(0x170)]+']':'',_0x14fbce=_0x563ac1[_0x48defc(0x179)]?'\x20'+_0x563ac1[_0x48defc(0x179)]:'',_0xe65e00=_0x3e7bde+'\x20'+_0x39db30+_0x14fbce+_0x6b2cc9;_0x15cc59[_0x48defc(0x17d)]&&_0xe65e00[_0x48defc(0x184)]()&&(_0x15cc59[_0x48defc(0x176)]=_0xe65e00,_0x1dad54=_0xe65e00);},'setJobId':_0x32d5c5=>{const _0x26d163=_0x395ff0;_0x563ac1[_0x26d163(0x170)]=_0x32d5c5,_0x4cd4ed();},'setExtra':_0x5528f6=>{_0x563ac1['extra']=_0x5528f6,_0x4cd4ed();}};_0x4cd4ed();try{const _0x617dca=await _0x2899ea(_0x3cc558),_0x2c21bb=_0x115574()-_0x344ff5;return{'data':_0x617dca,'elapsedMs':_0x2c21bb};}finally{clearInterval(_0x1a62e3),_0x15cc59[_0x395ff0(0x172)]();}}function a208_0x4a1e(_0xabee30,_0x19f347){_0xabee30=_0xabee30-0x16f;const _0x5491f3=a208_0x5491();let _0x4a1eef=_0x5491f3[_0xabee30];return _0x4a1eef;}export function formatElapsed(_0x1bd419){const _0x1e2c67=a208_0x4a1e,_0x3044f8=Math[_0x1e2c67(0x17f)](_0x1bd419/0x3e8);if(_0x3044f8<0x3c)return(_0x1bd419/0x3e8)[_0x1e2c67(0x17e)](0x1)+'s';const _0x4cf012=Math[_0x1e2c67(0x17f)](_0x3044f8/0x3c),_0x4cdabc=_0x3044f8%0x3c;if(_0x4cf012<0x3c)return _0x4cf012+'m\x20'+_0x4cdabc+'s';const _0x1e4057=Math['floor'](_0x4cf012/0x3c),_0x1e0c01=_0x4cf012%0x3c;return _0x1e4057+'h\x20'+_0x1e0c01+'m';}
@@ -1 +1 @@
1
- (function(_0x9a9a92,_0x1b415c){const _0xf429a6=a209_0x35c3,_0x153c8c=_0x9a9a92();while(!![]){try{const _0x5ba3db=-parseInt(_0xf429a6(0x134))/0x1*(parseInt(_0xf429a6(0x143))/0x2)+-parseInt(_0xf429a6(0x133))/0x3*(-parseInt(_0xf429a6(0x141))/0x4)+-parseInt(_0xf429a6(0x140))/0x5+parseInt(_0xf429a6(0x13a))/0x6+parseInt(_0xf429a6(0x13b))/0x7*(parseInt(_0xf429a6(0x13d))/0x8)+-parseInt(_0xf429a6(0x145))/0x9+-parseInt(_0xf429a6(0x146))/0xa*(-parseInt(_0xf429a6(0x131))/0xb);if(_0x5ba3db===_0x1b415c)break;else _0x153c8c['push'](_0x153c8c['shift']());}catch(_0x57485b){_0x153c8c['push'](_0x153c8c['shift']());}}}(a209_0xd1ba,0x59188));function a209_0xd1ba(){const _0x26c8c8=['debug','Response\x20body\x20is\x20null','33SGfjym','decode','165zGdVdD','158kIhBCX','read','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','pop','[LLM\x20API\x20SSE]\x20','indexOf','2613036XntsLC','647647gIOiEL','data','8puPZex','body','trim','1242670piIPYy','29336pvbpZu','event','2866olZPRY','getReader','1030032OAZZTH','76450qdgOWF','slice','startsWith','releaseLock'];a209_0xd1ba=function(){return _0x26c8c8;};return a209_0xd1ba();}export async function*parseSSEStream(_0x4069cd,_0x5b06d5){const _0x4ee9b8=a209_0x35c3;if(!_0x4069cd['body'])throw new Error(_0x4ee9b8(0x14b));const _0x443daf=_0x4069cd[_0x4ee9b8(0x13e)][_0x4ee9b8(0x144)](),_0x13f3c9=new TextDecoder();let _0x3cc331='',_0x24be1f={};try{while(!![]){const {done:_0x25ac5e,value:_0x191a1f}=await _0x443daf[_0x4ee9b8(0x135)]();if(_0x25ac5e){if(_0x24be1f[_0x4ee9b8(0x13c)]){_0x5b06d5?.[_0x4ee9b8(0x14a)](_0x4ee9b8(0x138)+_0x24be1f[_0x4ee9b8(0x13c)]);const _0x54ed19=parseSSEData(_0x24be1f[_0x4ee9b8(0x13c)]);yield _0x54ed19;}break;}_0x3cc331+=_0x13f3c9[_0x4ee9b8(0x132)](_0x191a1f,{'stream':!![]});const _0x1871b5=_0x3cc331['split']('\x0a');_0x3cc331=_0x1871b5[_0x4ee9b8(0x137)]()||'';for(const _0x2477b1 of _0x1871b5){if(_0x2477b1[_0x4ee9b8(0x13f)]()===''){if(_0x24be1f[_0x4ee9b8(0x13c)]){_0x5b06d5?.[_0x4ee9b8(0x14a)](_0x4ee9b8(0x138)+_0x24be1f[_0x4ee9b8(0x13c)]);const _0x1882c2=parseSSEData(_0x24be1f[_0x4ee9b8(0x13c)]);yield _0x1882c2,_0x24be1f={};}continue;}if(_0x2477b1[_0x4ee9b8(0x148)](':'))continue;const _0x40f19b=_0x2477b1[_0x4ee9b8(0x139)](':');if(_0x40f19b===-0x1)continue;const _0x2fafab=_0x2477b1['slice'](0x0,_0x40f19b);let _0xe8dac4=_0x2477b1[_0x4ee9b8(0x147)](_0x40f19b+0x1);_0xe8dac4[_0x4ee9b8(0x148)]('\x20')&&(_0xe8dac4=_0xe8dac4[_0x4ee9b8(0x147)](0x1));switch(_0x2fafab){case _0x4ee9b8(0x142):_0x24be1f[_0x4ee9b8(0x142)]=_0xe8dac4;break;case _0x4ee9b8(0x13c):_0x24be1f['data']=_0x24be1f['data']?_0x24be1f['data']+'\x0a'+_0xe8dac4:_0xe8dac4;break;case'id':_0x24be1f['id']=_0xe8dac4;break;}}}}finally{_0x443daf[_0x4ee9b8(0x149)]();}}function a209_0x35c3(_0x109119,_0x41b4b9){_0x109119=_0x109119-0x131;const _0xd1ba27=a209_0xd1ba();let _0x35c30c=_0xd1ba27[_0x109119];return _0x35c30c;}function parseSSEData(_0x12e060){const _0x1184e6=a209_0x35c3;try{return JSON['parse'](_0x12e060);}catch(_0x384e8c){throw new Error(_0x1184e6(0x136)+_0x12e060,{'cause':_0x384e8c});}}
1
+ function a209_0xcf7d(_0x49161d,_0x3d1a9f){_0x49161d=_0x49161d-0xd9;const _0x15ac59=a209_0x15ac();let _0xcf7d01=_0x15ac59[_0x49161d];return _0xcf7d01;}(function(_0x5f3f1a,_0xaf88e1){const _0x55ffd9=a209_0xcf7d,_0x2fb30a=_0x5f3f1a();while(!![]){try{const _0x397d29=-parseInt(_0x55ffd9(0xe3))/0x1*(-parseInt(_0x55ffd9(0xe5))/0x2)+parseInt(_0x55ffd9(0xdb))/0x3*(-parseInt(_0x55ffd9(0xf3))/0x4)+parseInt(_0x55ffd9(0xea))/0x5+parseInt(_0x55ffd9(0xec))/0x6+parseInt(_0x55ffd9(0xe8))/0x7+-parseInt(_0x55ffd9(0xed))/0x8*(parseInt(_0x55ffd9(0xe0))/0x9)+-parseInt(_0x55ffd9(0xe2))/0xa*(-parseInt(_0x55ffd9(0xef))/0xb);if(_0x397d29===_0xaf88e1)break;else _0x2fb30a['push'](_0x2fb30a['shift']());}catch(_0x2749da){_0x2fb30a['push'](_0x2fb30a['shift']());}}}(a209_0x15ac,0x1f43a));export async function*parseSSEStream(_0x3c3734,_0x40f86c){const _0x32f3af=a209_0xcf7d;if(!_0x3c3734['body'])throw new Error(_0x32f3af(0xdf));const _0x387ff0=_0x3c3734[_0x32f3af(0xde)][_0x32f3af(0xd9)](),_0x4b5653=new TextDecoder();let _0x312c11='',_0x579640={};try{while(!![]){const {done:_0x46be18,value:_0x4480d3}=await _0x387ff0[_0x32f3af(0xf0)]();if(_0x46be18){if(_0x579640[_0x32f3af(0xf4)]){_0x40f86c?.[_0x32f3af(0xe9)]('[LLM\x20API\x20SSE]\x20'+_0x579640[_0x32f3af(0xf4)]);const _0x4b7795=parseSSEData(_0x579640['data']);yield _0x4b7795;}break;}_0x312c11+=_0x4b5653[_0x32f3af(0xf2)](_0x4480d3,{'stream':!![]});const _0x54fce0=_0x312c11[_0x32f3af(0xe4)]('\x0a');_0x312c11=_0x54fce0[_0x32f3af(0xe7)]()||'';for(const _0x43a105 of _0x54fce0){if(_0x43a105[_0x32f3af(0xe6)]()===''){if(_0x579640['data']){_0x40f86c?.[_0x32f3af(0xe9)](_0x32f3af(0xeb)+_0x579640[_0x32f3af(0xf4)]);const _0x566952=parseSSEData(_0x579640[_0x32f3af(0xf4)]);yield _0x566952,_0x579640={};}continue;}if(_0x43a105['startsWith'](':'))continue;const _0x5b5b3d=_0x43a105[_0x32f3af(0xdc)](':');if(_0x5b5b3d===-0x1)continue;const _0x43b53a=_0x43a105[_0x32f3af(0xf1)](0x0,_0x5b5b3d);let _0x46a60e=_0x43a105[_0x32f3af(0xf1)](_0x5b5b3d+0x1);_0x46a60e[_0x32f3af(0xda)]('\x20')&&(_0x46a60e=_0x46a60e[_0x32f3af(0xf1)](0x1));switch(_0x43b53a){case _0x32f3af(0xdd):_0x579640[_0x32f3af(0xdd)]=_0x46a60e;break;case'data':_0x579640[_0x32f3af(0xf4)]=_0x579640[_0x32f3af(0xf4)]?_0x579640[_0x32f3af(0xf4)]+'\x0a'+_0x46a60e:_0x46a60e;break;case'id':_0x579640['id']=_0x46a60e;break;}}}}finally{_0x387ff0[_0x32f3af(0xe1)]();}}function a209_0x15ac(){const _0xf7ee1b=['releaseLock','298630haGGjM','217BPjYfY','split','938zVRapn','trim','pop','140980SkVOvR','debug','136340yEsSLI','[LLM\x20API\x20SSE]\x20','1404672VRzdNN','1432mxFlUX','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','22KgBPrH','read','slice','decode','472960GosqyX','data','getReader','startsWith','3CyqUgX','indexOf','event','body','Response\x20body\x20is\x20null','9891DXUnsD'];a209_0x15ac=function(){return _0xf7ee1b;};return a209_0x15ac();}function parseSSEData(_0x27382e){const _0x3ee35c=a209_0xcf7d;try{return JSON['parse'](_0x27382e);}catch(_0x14c9fc){throw new Error(_0x3ee35c(0xee)+_0x27382e,{'cause':_0x14c9fc});}}
@@ -1 +1 @@
1
- (function(_0x8203df,_0x39d464){const _0x5719fa=a210_0x45c6,_0x1c2ad2=_0x8203df();while(!![]){try{const _0x4f7a88=-parseInt(_0x5719fa(0x187))/0x1+parseInt(_0x5719fa(0x186))/0x2*(parseInt(_0x5719fa(0x17e))/0x3)+-parseInt(_0x5719fa(0x183))/0x4*(parseInt(_0x5719fa(0x185))/0x5)+-parseInt(_0x5719fa(0x18d))/0x6*(parseInt(_0x5719fa(0x195))/0x7)+-parseInt(_0x5719fa(0x182))/0x8*(-parseInt(_0x5719fa(0x190))/0x9)+-parseInt(_0x5719fa(0x17f))/0xa+parseInt(_0x5719fa(0x181))/0xb;if(_0x4f7a88===_0x39d464)break;else _0x1c2ad2['push'](_0x1c2ad2['shift']());}catch(_0x4e8400){_0x1c2ad2['push'](_0x1c2ad2['shift']());}}}(a210_0x4857,0x44326));import a210_0x2a3efe from'string-width';export function stringWidth(_0x33f181){return a210_0x2a3efe(_0x33f181);}export function padEnd(_0x2aa180,_0x1aaff9){const _0x28629e=a210_0x45c6,_0x863bd4=stringWidth(_0x2aa180);if(_0x863bd4>=_0x1aaff9)return _0x2aa180;return _0x2aa180+'\x20'[_0x28629e(0x184)](_0x1aaff9-_0x863bd4);}export function padStart(_0x1673a7,_0x23d66f){const _0xdc199e=a210_0x45c6,_0x7df9dd=stringWidth(_0x1673a7);if(_0x7df9dd>=_0x23d66f)return _0x1673a7;return'\x20'[_0xdc199e(0x184)](_0x23d66f-_0x7df9dd)+_0x1673a7;}export function centerAlign(_0x425aae,_0x1e84e8){const _0x5d5285=a210_0x45c6,_0x458ee3=stringWidth(_0x425aae);if(_0x458ee3>_0x1e84e8){if(_0x1e84e8<=0x1)return'…'[_0x5d5285(0x18c)](0x0,_0x1e84e8);let _0x139073=_0x425aae;while(stringWidth(_0x139073+'…')>_0x1e84e8){_0x139073=_0x139073[_0x5d5285(0x17d)](0x0,-0x1);}return _0x139073+'…';}if(_0x458ee3===_0x1e84e8)return _0x425aae;const _0x2e9cc2=_0x1e84e8-_0x458ee3,_0x4a4c25=Math['floor'](_0x2e9cc2/0x2),_0x43e216=_0x2e9cc2-_0x4a4c25;return'\x20'[_0x5d5285(0x184)](_0x4a4c25)+_0x425aae+'\x20'[_0x5d5285(0x184)](_0x43e216);}function a210_0x4857(){const _0x522ea6=['168AWmVgm','trim','slice','4146aeLFtZ','34570vhEgGl','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','3637887udIXfO','16ysGsVX','988ZpGFUj','repeat','7995WnEhNh','458iLvbcQ','28721NNauKd','unknown','\x5c$&','toString','length','substring','22962zORfpT','padStart','floor','680031yWLzag','random','replace','Cannot\x20escape\x20empty\x20string\x20literal','toLowerCase'];a210_0x4857=function(){return _0x522ea6;};return a210_0x4857();}export function escapeStringLiteral(_0x4ce431){const _0x2be955=a210_0x45c6;if(!_0x4ce431||_0x4ce431['trim']()[_0x2be955(0x18b)]===0x0)throw new Error(_0x2be955(0x193));const _0x468dff=_0x4ce431['replace'](/'/g,'\x27\x27');return'\x27'+_0x468dff+'\x27';}export function globToLike(_0x2061de){const _0x3abc86=a210_0x45c6;let _0x37ebb9=_0x2061de['replace'](/\\/g,'\x5c\x5c')[_0x3abc86(0x192)](/%/g,'\x5c%')[_0x3abc86(0x192)](/_/g,'\x5c_');return _0x37ebb9=_0x37ebb9[_0x3abc86(0x192)](/\*/g,'%')['replace'](/\?/g,'_'),_0x37ebb9;}export function buildLikePattern(_0x1bb4f7){const _0xda01d9=a210_0x45c6;if(!_0x1bb4f7||_0x1bb4f7[_0xda01d9(0x17c)]()[_0xda01d9(0x18b)]===0x0)throw new Error(_0xda01d9(0x180));const _0x1f621a=globToLike(_0x1bb4f7),_0xe5d0c0=_0x1f621a[_0xda01d9(0x192)](/'/g,'\x27\x27');return'\x27'+_0xe5d0c0+'\x27';}export function matchGlobPattern(_0x70a97d,_0x3751b6){const _0x4ff49f=a210_0x45c6,_0x44cd48=_0x3751b6['replace'](/[.+^${}()|[\]\\]/g,_0x4ff49f(0x189))[_0x4ff49f(0x192)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x23e279=new RegExp('^'+_0x44cd48+'$');return _0x23e279['test'](_0x70a97d);}export function getSanitizedUsername(){const _0x304d27=a210_0x45c6,_0x2297cd=process.env.USER||process.env.USERNAME||_0x304d27(0x188);return _0x2297cd['replace'](/[^a-zA-Z0-9]/g,'')[_0x304d27(0x194)]();}function a210_0x45c6(_0x36856a,_0x419101){_0x36856a=_0x36856a-0x17c;const _0x4857a4=a210_0x4857();let _0x45c66c=_0x4857a4[_0x36856a];return _0x45c66c;}export function generateRandomHex(){const _0x2b4a6a=a210_0x45c6,_0x3f42a4=Math[_0x2b4a6a(0x18f)](Math[_0x2b4a6a(0x191)]()*0xfffff);return _0x3f42a4[_0x2b4a6a(0x18a)](0x10)[_0x2b4a6a(0x18e)](0x5,'0');}export function sanitizeFileName(_0x3a7e1a){const _0x16b119=a210_0x45c6;return _0x3a7e1a[_0x16b119(0x194)]()[_0x16b119(0x192)](/[/\\:*?"<>|]/g,'-')[_0x16b119(0x192)](/\s+/g,'-')[_0x16b119(0x192)](/-+/g,'-')[_0x16b119(0x192)](/^-|-$/g,'');}
1
+ (function(_0x38276f,_0x57539d){const _0x2b8c73=a210_0x17ff,_0x449b19=_0x38276f();while(!![]){try{const _0x4981fc=parseInt(_0x2b8c73(0xe4))/0x1+-parseInt(_0x2b8c73(0xdf))/0x2*(-parseInt(_0x2b8c73(0xdd))/0x3)+-parseInt(_0x2b8c73(0xd4))/0x4*(-parseInt(_0x2b8c73(0xd7))/0x5)+-parseInt(_0x2b8c73(0xdb))/0x6+parseInt(_0x2b8c73(0xe5))/0x7*(-parseInt(_0x2b8c73(0xe0))/0x8)+parseInt(_0x2b8c73(0xd3))/0x9+parseInt(_0x2b8c73(0xe1))/0xa*(-parseInt(_0x2b8c73(0xd9))/0xb);if(_0x4981fc===_0x57539d)break;else _0x449b19['push'](_0x449b19['shift']());}catch(_0x9a883a){_0x449b19['push'](_0x449b19['shift']());}}}(a210_0x123e,0x7c049));import a210_0x50131f from'string-width';export function stringWidth(_0x398330){return a210_0x50131f(_0x398330);}function a210_0x123e(){const _0x5f1c2e=['45753nZcPQQ','toLowerCase','68kwSwDK','230504KCHfja','5130YReGwo','\x5c$&','length','219424KtVfit','126brvGwr','random','trim','repeat','Cannot\x20escape\x20empty\x20string\x20literal','padStart','949779KLqKNI','469948HLjYcZ','toString','test','25pWekfA','replace','2299uiakUK','substring','1782576SBWnlo','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a210_0x123e=function(){return _0x5f1c2e;};return a210_0x123e();}export function padEnd(_0x4e4102,_0x5254f7){const _0xefea7b=a210_0x17ff,_0x4a7266=stringWidth(_0x4e4102);if(_0x4a7266>=_0x5254f7)return _0x4e4102;return _0x4e4102+'\x20'[_0xefea7b(0xe8)](_0x5254f7-_0x4a7266);}export function padStart(_0x462e8d,_0x22dc26){const _0x1a04e0=stringWidth(_0x462e8d);if(_0x1a04e0>=_0x22dc26)return _0x462e8d;return'\x20'['repeat'](_0x22dc26-_0x1a04e0)+_0x462e8d;}export function centerAlign(_0x401ea1,_0x5c11e0){const _0x7c5fd1=a210_0x17ff,_0x402af7=stringWidth(_0x401ea1);if(_0x402af7>_0x5c11e0){if(_0x5c11e0<=0x1)return'…'[_0x7c5fd1(0xda)](0x0,_0x5c11e0);let _0x64bf2e=_0x401ea1;while(stringWidth(_0x64bf2e+'…')>_0x5c11e0){_0x64bf2e=_0x64bf2e['slice'](0x0,-0x1);}return _0x64bf2e+'…';}if(_0x402af7===_0x5c11e0)return _0x401ea1;const _0x27d947=_0x5c11e0-_0x402af7,_0x51aec5=Math['floor'](_0x27d947/0x2),_0x18ace3=_0x27d947-_0x51aec5;return'\x20'['repeat'](_0x51aec5)+_0x401ea1+'\x20'['repeat'](_0x18ace3);}export function escapeStringLiteral(_0x4913dd){const _0x16726d=a210_0x17ff;if(!_0x4913dd||_0x4913dd[_0x16726d(0xe7)]()[_0x16726d(0xe3)]===0x0)throw new Error(_0x16726d(0xe9));const _0x2abf22=_0x4913dd[_0x16726d(0xd8)](/'/g,'\x27\x27');return'\x27'+_0x2abf22+'\x27';}export function globToLike(_0xc97dc8){const _0x556db8=a210_0x17ff;let _0x1192b2=_0xc97dc8[_0x556db8(0xd8)](/\\/g,'\x5c\x5c')[_0x556db8(0xd8)](/%/g,'\x5c%')[_0x556db8(0xd8)](/_/g,'\x5c_');return _0x1192b2=_0x1192b2[_0x556db8(0xd8)](/\*/g,'%')['replace'](/\?/g,'_'),_0x1192b2;}export function buildLikePattern(_0x12900a){const _0x408efd=a210_0x17ff;if(!_0x12900a||_0x12900a[_0x408efd(0xe7)]()[_0x408efd(0xe3)]===0x0)throw new Error(_0x408efd(0xdc));const _0x21ff7a=globToLike(_0x12900a),_0x3e7b81=_0x21ff7a[_0x408efd(0xd8)](/'/g,'\x27\x27');return'\x27'+_0x3e7b81+'\x27';}export function matchGlobPattern(_0x509b67,_0x57e8f9){const _0x7c6096=a210_0x17ff,_0x841ebd=_0x57e8f9[_0x7c6096(0xd8)](/[.+^${}()|[\]\\]/g,_0x7c6096(0xe2))[_0x7c6096(0xd8)](/\*/g,'.*')[_0x7c6096(0xd8)](/\?/g,'.'),_0x3e4b52=new RegExp('^'+_0x841ebd+'$');return _0x3e4b52[_0x7c6096(0xd6)](_0x509b67);}function a210_0x17ff(_0x2fa18f,_0x41e09b){_0x2fa18f=_0x2fa18f-0xd3;const _0x123eee=a210_0x123e();let _0x17ff5b=_0x123eee[_0x2fa18f];return _0x17ff5b;}export function getSanitizedUsername(){const _0x4594d6=a210_0x17ff,_0x403f8c=process.env.USER||process.env.USERNAME||'unknown';return _0x403f8c['replace'](/[^a-zA-Z0-9]/g,'')[_0x4594d6(0xde)]();}export function generateRandomHex(){const _0x506142=a210_0x17ff,_0x39dcd0=Math['floor'](Math[_0x506142(0xe6)]()*0xfffff);return _0x39dcd0[_0x506142(0xd5)](0x10)[_0x506142(0xea)](0x5,'0');}export function sanitizeFileName(_0x170904){const _0x2852bc=a210_0x17ff;return _0x170904[_0x2852bc(0xde)]()[_0x2852bc(0xd8)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x2852bc(0xd8)](/-+/g,'-')[_0x2852bc(0xd8)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a211_0x1c5a(){const _0x5bf490=['catalog','224wMrOtG','database','514991FrPhyf','74088HFKlOy','4984220wyYXxS','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','1457684yCkXWO','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','8mETusr','split','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','2RxYZDi','trim','includes','length','216280qquoVy','table','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','22oLlVXz','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','push','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','2671353hASkgD','1469958beECir'];a211_0x1c5a=function(){return _0x5bf490;};return a211_0x1c5a();}(function(_0xc0f08f,_0x54c353){const _0x55e848=a211_0x44ee,_0x2680cb=_0xc0f08f();while(!![]){try{const _0x3f1bfb=parseInt(_0x55e848(0x12b))/0x1*(parseInt(_0x55e848(0x134))/0x2)+parseInt(_0x55e848(0x127))/0x3+parseInt(_0x55e848(0x12f))/0x4+parseInt(_0x55e848(0x138))/0x5+-parseInt(_0x55e848(0x12c))/0x6*(parseInt(_0x55e848(0x129))/0x7)+-parseInt(_0x55e848(0x131))/0x8*(-parseInt(_0x55e848(0x126))/0x9)+-parseInt(_0x55e848(0x12d))/0xa*(parseInt(_0x55e848(0x13b))/0xb);if(_0x3f1bfb===_0x54c353)break;else _0x2680cb['push'](_0x2680cb['shift']());}catch(_0x3556af){_0x2680cb['push'](_0x2680cb['shift']());}}}(a211_0x1c5a,0x4d833));function a211_0x44ee(_0x135ea4,_0x300326){_0x135ea4=_0x135ea4-0x126;const _0x1c5a30=a211_0x1c5a();let _0x44ee02=_0x1c5a30[_0x135ea4];return _0x44ee02;}function hasWildcard(_0x493d14){const _0x4e5fdd=a211_0x44ee;return _0x493d14[_0x4e5fdd(0x136)]('*')||_0x493d14[_0x4e5fdd(0x136)]('?');}export function parseTableReference(_0x331493){const _0x35ced6=a211_0x44ee;if(!_0x331493||_0x331493['trim']()[_0x35ced6(0x137)]===0x0)throw new Error(_0x35ced6(0x13c));const _0x1fec89=_0x331493[_0x35ced6(0x135)](),_0xfffe72={'original':_0x1fec89},_0x25b002=_0x1fec89[_0x35ced6(0x132)]('.');if(_0x25b002['length']===0x1){const _0x287ba2=_0x25b002[0x0];if(!_0x287ba2)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0xfffe72[_0x35ced6(0x139)]=_0x287ba2;}else{if(_0x25b002[_0x35ced6(0x137)]===0x2){const [_0x1d1e21,_0x5d0ecd]=_0x25b002;if(!_0x1d1e21)throw new Error(_0x35ced6(0x12e));if(!_0x5d0ecd)throw new Error(_0x35ced6(0x13e));_0xfffe72['database']=_0x1d1e21,_0xfffe72[_0x35ced6(0x139)]=_0x5d0ecd;}else{if(_0x25b002[_0x35ced6(0x137)]===0x3){const [_0x166ce8,_0x4971f9,_0x28f181]=_0x25b002;if(!_0x166ce8||!_0x4971f9||!_0x28f181)throw new Error(_0x35ced6(0x130));_0xfffe72[_0x35ced6(0x128)]=_0x166ce8,_0xfffe72[_0x35ced6(0x12a)]=_0x4971f9,_0xfffe72['table']=_0x28f181;}else throw new Error(_0x35ced6(0x13a));}}return _0xfffe72;}export function formatTableReference(_0x17e2c4){const _0x1d13d1=a211_0x44ee,_0x383941=[];return _0x17e2c4['catalog']&&_0x383941[_0x1d13d1(0x13d)](_0x17e2c4[_0x1d13d1(0x128)]),_0x17e2c4[_0x1d13d1(0x12a)]&&_0x383941[_0x1d13d1(0x13d)](_0x17e2c4[_0x1d13d1(0x12a)]),_0x17e2c4[_0x1d13d1(0x139)]&&_0x383941[_0x1d13d1(0x13d)](_0x17e2c4['table']),_0x383941['join']('.');}export function validateTableListReference(_0x269d6c){return undefined;}export function validateTableDescribeReference(_0x131377){const _0xa48532=a211_0x44ee;if(!_0x131377[_0xa48532(0x139)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x131377[_0xa48532(0x12a)]&&hasWildcard(_0x131377['database']))return _0xa48532(0x133);if(hasWildcard(_0x131377['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ (function(_0x157fd7,_0x498ef7){const _0x2a7f98=a211_0x52f1,_0x12ccb1=_0x157fd7();while(!![]){try{const _0x498743=parseInt(_0x2a7f98(0xfb))/0x1+parseInt(_0x2a7f98(0x100))/0x2+-parseInt(_0x2a7f98(0xfe))/0x3*(-parseInt(_0x2a7f98(0x106))/0x4)+parseInt(_0x2a7f98(0x109))/0x5+parseInt(_0x2a7f98(0xfd))/0x6+-parseInt(_0x2a7f98(0x108))/0x7+parseInt(_0x2a7f98(0xf8))/0x8*(-parseInt(_0x2a7f98(0xf9))/0x9);if(_0x498743===_0x498ef7)break;else _0x12ccb1['push'](_0x12ccb1['shift']());}catch(_0x20eb9a){_0x12ccb1['push'](_0x12ccb1['shift']());}}}(a211_0x3e88,0xd9f8a));function hasWildcard(_0x55a89e){const _0x37caf6=a211_0x52f1;return _0x55a89e[_0x37caf6(0x10a)]('*')||_0x55a89e[_0x37caf6(0x10a)]('?');}export function parseTableReference(_0x12a5dd){const _0x5ddd37=a211_0x52f1;if(!_0x12a5dd||_0x12a5dd[_0x5ddd37(0xf7)]()[_0x5ddd37(0x102)]===0x0)throw new Error(_0x5ddd37(0xff));const _0x13ec4a=_0x12a5dd[_0x5ddd37(0xf7)](),_0x5f2eb7={'original':_0x13ec4a},_0x1e431e=_0x13ec4a[_0x5ddd37(0xf6)]('.');if(_0x1e431e['length']===0x1){const _0x1a0810=_0x1e431e[0x0];if(!_0x1a0810)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x5f2eb7[_0x5ddd37(0x103)]=_0x1a0810;}else{if(_0x1e431e[_0x5ddd37(0x102)]===0x2){const [_0x3fc440,_0x20aceb]=_0x1e431e;if(!_0x3fc440)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x20aceb)throw new Error(_0x5ddd37(0xfc));_0x5f2eb7[_0x5ddd37(0x104)]=_0x3fc440,_0x5f2eb7['table']=_0x20aceb;}else{if(_0x1e431e[_0x5ddd37(0x102)]===0x3){const [_0x3ca000,_0xd2f78b,_0x17dde2]=_0x1e431e;if(!_0x3ca000||!_0xd2f78b||!_0x17dde2)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x5f2eb7[_0x5ddd37(0x107)]=_0x3ca000,_0x5f2eb7[_0x5ddd37(0x104)]=_0xd2f78b,_0x5f2eb7['table']=_0x17dde2;}else throw new Error(_0x5ddd37(0x101));}}return _0x5f2eb7;}export function formatTableReference(_0x281137){const _0x11480b=a211_0x52f1,_0xcbfefa=[];return _0x281137[_0x11480b(0x107)]&&_0xcbfefa['push'](_0x281137[_0x11480b(0x107)]),_0x281137[_0x11480b(0x104)]&&_0xcbfefa[_0x11480b(0xfa)](_0x281137[_0x11480b(0x104)]),_0x281137[_0x11480b(0x103)]&&_0xcbfefa['push'](_0x281137[_0x11480b(0x103)]),_0xcbfefa[_0x11480b(0xf4)]('.');}export function validateTableListReference(_0x5232de){return undefined;}function a211_0x3e88(){const _0x3ed278=['1474262DqsZis','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','length','table','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','548SGsCcB','catalog','10399536zsiFjW','3254225CPgAgG','includes','join','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','trim','124888hbDDJC','783fusWCN','push','821942jQMlbL','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','49956OxkCkA','33249PpeppY','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only'];a211_0x3e88=function(){return _0x3ed278;};return a211_0x3e88();}function a211_0x52f1(_0x445ce7,_0x809cd1){_0x445ce7=_0x445ce7-0xf4;const _0x3e889f=a211_0x3e88();let _0x52f1a5=_0x3e889f[_0x445ce7];return _0x52f1a5;}export function validateTableDescribeReference(_0x5e1088){const _0x370267=a211_0x52f1;if(!_0x5e1088[_0x370267(0x103)])return _0x370267(0x105);if(_0x5e1088[_0x370267(0x104)]&&hasWildcard(_0x5e1088['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x5e1088[_0x370267(0x103)]))return _0x370267(0xf5);return undefined;}
@@ -1 +1 @@
1
- const a212_0x4e5cdf=a212_0x264d;function a212_0x264d(_0x235528,_0x13d760){_0x235528=_0x235528-0x1e5;const _0x1a1b59=a212_0x1a1b();let _0x264d5e=_0x1a1b59[_0x235528];return _0x264d5e;}(function(_0x4b2217,_0x503582){const _0xc06343=a212_0x264d,_0x32a7d1=_0x4b2217();while(!![]){try{const _0xbc4cad=-parseInt(_0xc06343(0x1f3))/0x1*(parseInt(_0xc06343(0x1e7))/0x2)+-parseInt(_0xc06343(0x1e5))/0x3+parseInt(_0xc06343(0x1ee))/0x4+parseInt(_0xc06343(0x1fd))/0x5*(-parseInt(_0xc06343(0x1ec))/0x6)+-parseInt(_0xc06343(0x1ef))/0x7*(-parseInt(_0xc06343(0x1fe))/0x8)+-parseInt(_0xc06343(0x203))/0x9+parseInt(_0xc06343(0x1f7))/0xa;if(_0xbc4cad===_0x503582)break;else _0x32a7d1['push'](_0x32a7d1['shift']());}catch(_0x40ea70){_0x32a7d1['push'](_0x32a7d1['shift']());}}}(a212_0x1a1b,0xb7aa7));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a212_0x1a1b(){const _0x267746=['40SnJnCr','logFileName','consoleHandler','logger','fileHandler','54GSEMdg','push','5516392WElFTA','2461018bJTtSh','debug','init','isInitialized','26569PxNSdl','getLogPath','info','Session\x20ended','10751100XNytrw','logs','tdx','close','logDir','warn','121995mSuRQB','8sJCcCm','fileOnly','trace','INFO','error','2193957qCgIZb','3176229hTLWFF','logLevel'];a212_0x1a1b=function(){return _0x267746;};return a212_0x1a1b();}export{LogLevel}from'./logger/index.js';export class TDXLogger{[a212_0x4e5cdf(0x1e6)];[a212_0x4e5cdf(0x1ff)];[a212_0x4e5cdf(0x1fb)];['logFileName'];[a212_0x4e5cdf(0x1ea)];[a212_0x4e5cdf(0x1eb)]=null;[a212_0x4e5cdf(0x1e9)]=null;constructor(_0x30e86b=LogLevel['INFO'],_0x16b6fc=![],_0x15321b,_0x1ed969='tdx.log'){const _0x43bc80=a212_0x4e5cdf;this[_0x43bc80(0x1e6)]=_0x30e86b,this[_0x43bc80(0x1ff)]=_0x16b6fc,this[_0x43bc80(0x1fb)]=_0x15321b||join(getGlobalCacheDir(),_0x43bc80(0x1f8)),this[_0x43bc80(0x1e8)]=_0x1ed969,this[_0x43bc80(0x1ea)]=Logger['of'](_0x43bc80(0x1f9));}async[a212_0x4e5cdf(0x1f1)](){const _0x5dc10c=a212_0x4e5cdf,_0x2e03d2=join(this[_0x5dc10c(0x1fb)],this['logFileName']);if(Logger[_0x5dc10c(0x1f2)]()){!this[_0x5dc10c(0x1ff)]&&(this[_0x5dc10c(0x1e9)]=new ConsoleHandler({'minLevel':LogLevel[_0x5dc10c(0x201)],'colors':!![]}),Logger['addHandler'](this[_0x5dc10c(0x1e9)]));return;}this['fileHandler']=new FileHandler({'filePath':_0x2e03d2});const _0x2dd44a=[this[_0x5dc10c(0x1eb)]];!this[_0x5dc10c(0x1ff)]&&(this[_0x5dc10c(0x1e9)]=new ConsoleHandler({'minLevel':LogLevel[_0x5dc10c(0x201)],'colors':!![]}),_0x2dd44a[_0x5dc10c(0x1ed)](this[_0x5dc10c(0x1e9)])),await Logger[_0x5dc10c(0x1f1)]({'defaultLevel':this[_0x5dc10c(0x1e6)],'handlers':_0x2dd44a,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x4e5cdf(0x1f0)](..._0x210ef9){const _0x445040=a212_0x4e5cdf;this['logger'][_0x445040(0x1f0)](..._0x210ef9);}[a212_0x4e5cdf(0x200)](..._0x7ee289){const _0x56513a=a212_0x4e5cdf;this[_0x56513a(0x1ea)][_0x56513a(0x200)](..._0x7ee289);}[a212_0x4e5cdf(0x1f5)](..._0x397033){const _0x7d8ddb=a212_0x4e5cdf;this[_0x7d8ddb(0x1ea)][_0x7d8ddb(0x1f5)](..._0x397033);}[a212_0x4e5cdf(0x1fc)](..._0x2db93e){const _0x455fc=a212_0x4e5cdf;this[_0x455fc(0x1ea)][_0x455fc(0x1fc)](..._0x2db93e);}[a212_0x4e5cdf(0x202)](..._0x543123){const _0x3accd7=a212_0x4e5cdf;this[_0x3accd7(0x1ea)][_0x3accd7(0x202)](..._0x543123);}async[a212_0x4e5cdf(0x1fa)](){const _0x401812=a212_0x4e5cdf;this[_0x401812(0x1ea)][_0x401812(0x1f5)](_0x401812(0x1f6)),await Logger['shutdown']();}[a212_0x4e5cdf(0x1f4)](){const _0x33103b=a212_0x4e5cdf;return join(this[_0x33103b(0x1fb)],this['logFileName']);}}
1
+ const a212_0x485363=a212_0x3e6b;(function(_0x5ac616,_0x5a3520){const _0x226cde=a212_0x3e6b,_0x56f826=_0x5ac616();while(!![]){try{const _0x4b8ecd=parseInt(_0x226cde(0x10c))/0x1*(-parseInt(_0x226cde(0xfc))/0x2)+-parseInt(_0x226cde(0x10e))/0x3+parseInt(_0x226cde(0xfa))/0x4+-parseInt(_0x226cde(0x104))/0x5+parseInt(_0x226cde(0x109))/0x6+-parseInt(_0x226cde(0x105))/0x7*(parseInt(_0x226cde(0x10b))/0x8)+-parseInt(_0x226cde(0x101))/0x9*(-parseInt(_0x226cde(0x106))/0xa);if(_0x4b8ecd===_0x5a3520)break;else _0x56f826['push'](_0x56f826['shift']());}catch(_0x1a3047){_0x56f826['push'](_0x56f826['shift']());}}}(a212_0xf915,0x5dd7f));import{join}from'path';function a212_0xf915(){const _0x173bcd=['4580772BmCtIR','debug','1024UuoZhi','10FwJujT','getLogPath','303882OFtZHU','info','addHandler','logFileName','logger','tdx.log','trace','close','fileHandler','consoleHandler','1181220edBCAI','isInitialized','29482uoFKmu','fileOnly','logs','tdx','warn','197091gMCzpM','INFO','logLevel','3245275uYgZqG','3353msogcx','130mGiaHC','logDir','error'];a212_0xf915=function(){return _0x173bcd;};return a212_0xf915();}function a212_0x3e6b(_0x143e5f,_0x246a0c){_0x143e5f=_0x143e5f-0xf8;const _0xf91577=a212_0xf915();let _0x3e6b57=_0xf91577[_0x143e5f];return _0x3e6b57;}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{[a212_0x485363(0x103)];[a212_0x485363(0xfd)];[a212_0x485363(0x107)];[a212_0x485363(0x111)];[a212_0x485363(0x112)];['fileHandler']=null;[a212_0x485363(0xf9)]=null;constructor(_0x2ca2f8=LogLevel['INFO'],_0x1eba08=![],_0x3ee128,_0x13182d=a212_0x485363(0x113)){const _0x781bca=a212_0x485363;this[_0x781bca(0x103)]=_0x2ca2f8,this['fileOnly']=_0x1eba08,this[_0x781bca(0x107)]=_0x3ee128||join(getGlobalCacheDir(),_0x781bca(0xfe)),this[_0x781bca(0x111)]=_0x13182d,this['logger']=Logger['of'](_0x781bca(0xff));}async['init'](){const _0x253a85=a212_0x485363,_0x4e2b48=join(this[_0x253a85(0x107)],this[_0x253a85(0x111)]);if(Logger[_0x253a85(0xfb)]()){!this['fileOnly']&&(this[_0x253a85(0xf9)]=new ConsoleHandler({'minLevel':LogLevel[_0x253a85(0x102)],'colors':!![]}),Logger[_0x253a85(0x110)](this['consoleHandler']));return;}this['fileHandler']=new FileHandler({'filePath':_0x4e2b48});const _0x4ed2a3=[this[_0x253a85(0xf8)]];!this[_0x253a85(0xfd)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x253a85(0x102)],'colors':!![]}),_0x4ed2a3['push'](this[_0x253a85(0xf9)])),await Logger['init']({'defaultLevel':this[_0x253a85(0x103)],'handlers':_0x4ed2a3,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x485363(0x10a)](..._0x5f1e6f){const _0x1e4191=a212_0x485363;this[_0x1e4191(0x112)][_0x1e4191(0x10a)](..._0x5f1e6f);}[a212_0x485363(0x114)](..._0x5d8218){const _0x41a04b=a212_0x485363;this['logger'][_0x41a04b(0x114)](..._0x5d8218);}[a212_0x485363(0x10f)](..._0x46b9c2){const _0x3f4855=a212_0x485363;this[_0x3f4855(0x112)][_0x3f4855(0x10f)](..._0x46b9c2);}[a212_0x485363(0x100)](..._0x32b0a8){const _0x4414ff=a212_0x485363;this['logger'][_0x4414ff(0x100)](..._0x32b0a8);}[a212_0x485363(0x108)](..._0x4cbddc){const _0x5c22b6=a212_0x485363;this[_0x5c22b6(0x112)][_0x5c22b6(0x108)](..._0x4cbddc);}async[a212_0x485363(0x115)](){const _0x3e1eda=a212_0x485363;this[_0x3e1eda(0x112)][_0x3e1eda(0x10f)]('Session\x20ended'),await Logger['shutdown']();}[a212_0x485363(0x10d)](){const _0xaa550d=a212_0x485363;return join(this['logDir'],this[_0xaa550d(0x111)]);}}
@@ -1 +1 @@
1
- const a213_0x218a78=a213_0x3d22;(function(_0x357d8a,_0x25995a){const _0x2366cd=a213_0x3d22,_0x54dfef=_0x357d8a();while(!![]){try{const _0x3e6807=-parseInt(_0x2366cd(0xdc))/0x1*(parseInt(_0x2366cd(0xe4))/0x2)+-parseInt(_0x2366cd(0xe7))/0x3+parseInt(_0x2366cd(0xef))/0x4+-parseInt(_0x2366cd(0xec))/0x5+parseInt(_0x2366cd(0xe2))/0x6+-parseInt(_0x2366cd(0xe8))/0x7*(-parseInt(_0x2366cd(0xe3))/0x8)+-parseInt(_0x2366cd(0xde))/0x9;if(_0x3e6807===_0x25995a)break;else _0x54dfef['push'](_0x54dfef['shift']());}catch(_0xee083a){_0x54dfef['push'](_0x54dfef['shift']());}}}(a213_0x28ce,0xd93f8));import{get}from'https';import{gt,valid}from'semver';import a213_0x45f06d from'chalk';function a213_0x28ce(){const _0x2bb580=['https://registry.npmjs.org/@treasuredata/tdx','parse','getTime','dim','write','lastCheck','now','socket','stable','\x0aUpdate\x20available:\x20','45joJTMH','end','5970159PhghnF','currentVersion','Request\x20timeout','utils/version-check-next','5832174IsALqn','128wAKZfD','5198cILpkw','version','latestVersion','5139354uImxgF','619955DDStre','next','unref','cyan','2472295NGKLIO','destroy','data','5954648XVOgnJ','stderr','last_version_check_next','utils/version-check','updateAvailable','yellow','Invalid\x20version\x20format','\x0aRun:\x20','tdx\x20upgrade\x20--next','toISOString','last_version_check','error'];a213_0x28ce=function(){return _0x2bb580;};return a213_0x28ce();}import{createGlobalCache}from'./global-cache.js';function a213_0x3d22(_0x4502d2,_0x10a1f1){_0x4502d2=_0x4502d2-0xd9;const _0x28ce44=a213_0x28ce();let _0x3d22cc=_0x28ce44[_0x4502d2];return _0x3d22cc;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a213_0x218a78(0xfb),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0x218a78(0xf9),a213_0x218a78(0xf2)),nextVersionCache=createGlobalCache(a213_0x218a78(0xf1),a213_0x218a78(0xe1));function getCacheForChannel(_0x3cd17b){const _0x12e405=a213_0x218a78;return _0x3cd17b===_0x12e405(0xe9)?nextVersionCache:stableVersionCache;}function readCache(_0xaa866d){return getCacheForChannel(_0xaa866d)['read']()??null;}function writeCache(_0x44b4be,_0x535114){const _0x41c2ae=a213_0x218a78;try{getCacheForChannel(_0x535114)[_0x41c2ae(0xff)]({'lastCheck':new Date()[_0x41c2ae(0xf8)](),'latestVersion':_0x44b4be});}catch{}}function isCacheValid(_0x5dad6e){const _0x144b7d=a213_0x218a78;if(!_0x5dad6e)return![];const _0x24304e=new Date(_0x5dad6e[_0x144b7d(0x100)])[_0x144b7d(0xfd)](),_0x27c657=Date[_0x144b7d(0x101)]();return _0x27c657-_0x24304e<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x399ced=a213_0x218a78(0xda)){const _0x2c3f6f=a213_0x218a78,_0x1d91d5=_0x399ced===_0x2c3f6f(0xe9)?_0x2c3f6f(0xe9):'latest',_0x177fb2=NPM_REGISTRY_BASE+'/'+_0x1d91d5;return new Promise((_0x3e7995,_0x3e8e14)=>{const _0x3ff942=_0x2c3f6f,_0xf4e7f3=get(_0x177fb2,{'timeout':TIMEOUT_MS},_0x4e75dc=>{const _0x2722cc=a213_0x3d22;if(_0x4e75dc['statusCode']!==0xc8){clearTimeout(_0x559133),_0x3e8e14(new Error('HTTP\x20'+_0x4e75dc['statusCode']));return;}let _0x41c2f8='';_0x4e75dc['on'](_0x2722cc(0xee),_0x4b09f9=>{_0x41c2f8+=_0x4b09f9;}),_0x4e75dc['on'](_0x2722cc(0xdd),()=>{const _0x5d3bd2=_0x2722cc;clearTimeout(_0x559133);try{const _0x2e08bf=JSON[_0x5d3bd2(0xfc)](_0x41c2f8);if(!valid(_0x2e08bf['version'])){_0x3e8e14(new Error(_0x5d3bd2(0xf5)));return;}_0x3e7995(_0x2e08bf[_0x5d3bd2(0xe5)]);}catch(_0x5e9e11){_0x3e8e14(_0x5e9e11);}});})['on'](_0x3ff942(0xfa),_0x295452=>{clearTimeout(_0x559133),_0x3e8e14(_0x295452);});_0xf4e7f3['on'](_0x3ff942(0xd9),_0x155a21=>{const _0x332e5b=_0x3ff942;_0x155a21[_0x332e5b(0xea)]();});const _0x559133=setTimeout(()=>{const _0x206282=_0x3ff942;_0xf4e7f3[_0x206282(0xed)](),_0x3e8e14(new Error(_0x206282(0xe0)));},TIMEOUT_MS);_0x559133['unref']();});}export async function checkForUpdate(_0x2c5b7a,_0x5a1476=a213_0x218a78(0xda)){const _0x362c75=a213_0x218a78;try{const _0x270cb5=readCache(_0x5a1476);if(isCacheValid(_0x270cb5)){const _0x496eb5=gt(_0x270cb5[_0x362c75(0xe6)],_0x2c5b7a);return{'updateAvailable':_0x496eb5,'currentVersion':_0x2c5b7a,'latestVersion':_0x270cb5[_0x362c75(0xe6)],'channel':_0x5a1476};}const _0x582ace=await fetchLatestVersion(_0x5a1476);writeCache(_0x582ace,_0x5a1476);const _0x5aebf0=gt(_0x582ace,_0x2c5b7a);return{'updateAvailable':_0x5aebf0,'currentVersion':_0x2c5b7a,'latestVersion':_0x582ace,'channel':_0x5a1476};}catch{return null;}}export function displayUpdateNotification(_0x243db1){const _0x1b5cb2=a213_0x218a78;if(!_0x243db1[_0x1b5cb2(0xf3)])return;const _0xc92c91=_0x243db1['channel']===_0x1b5cb2(0xe9)?_0x1b5cb2(0xf7):'tdx\x20upgrade',_0x2dd85b=process[_0x1b5cb2(0xf0)]['isTTY']&&!process.env.NO_COLOR,_0x3336eb=_0x2dd85b?a213_0x45f06d['gray']('→'):'→',_0x3498ba=_0x2dd85b?a213_0x45f06d[_0x1b5cb2(0xfe)](_0x243db1[_0x1b5cb2(0xdf)]):_0x243db1[_0x1b5cb2(0xdf)],_0x21c0f4=_0x2dd85b?a213_0x45f06d['green'](_0x243db1['latestVersion']):_0x243db1['latestVersion'],_0xb29a25=_0x2dd85b?a213_0x45f06d[_0x1b5cb2(0xeb)](_0xc92c91):_0xc92c91,_0x54ff3f=_0x2dd85b?'\x0a'+a213_0x45f06d[_0x1b5cb2(0xf4)]('Update\x20available:')+'\x20'+_0x3498ba+'\x20'+_0x3336eb+'\x20'+_0x21c0f4+'\x0a'+a213_0x45f06d[_0x1b5cb2(0xfe)]('Run:')+'\x20'+_0xb29a25+'\x0a':_0x1b5cb2(0xdb)+_0x3498ba+'\x20'+_0x3336eb+'\x20'+_0x21c0f4+_0x1b5cb2(0xf6)+_0xb29a25+'\x0a';process['stderr']['write'](_0x54ff3f);}
1
+ const a213_0x3a6e13=a213_0x568c;(function(_0x2cb422,_0x4a421b){const _0x8d60b=a213_0x568c,_0x3f364d=_0x2cb422();while(!![]){try{const _0x138f92=-parseInt(_0x8d60b(0x185))/0x1*(parseInt(_0x8d60b(0x18d))/0x2)+parseInt(_0x8d60b(0x177))/0x3*(-parseInt(_0x8d60b(0x17b))/0x4)+-parseInt(_0x8d60b(0x183))/0x5+-parseInt(_0x8d60b(0x178))/0x6*(-parseInt(_0x8d60b(0x1a1))/0x7)+-parseInt(_0x8d60b(0x180))/0x8+-parseInt(_0x8d60b(0x19e))/0x9+parseInt(_0x8d60b(0x184))/0xa;if(_0x138f92===_0x4a421b)break;else _0x3f364d['push'](_0x3f364d['shift']());}catch(_0x490cb2){_0x3f364d['push'](_0x3f364d['shift']());}}}(a213_0x1121,0x982ab));function a213_0x1121(){const _0x502463=['socket','dim','end','version','lastCheck','HTTP\x20','\x0aRun:\x20','48OwAJIN','toISOString','data','latestVersion','unref','utils/version-check-next','Run:','statusCode','write','gray','last_version_check','stable','cyan','now','updateAvailable','Invalid\x20version\x20format','\x0aUpdate\x20available:\x20','2950965UsLiVt','getTime','utils/version-check','47999YIlmZN','parse','3driYUH','582pAoCKw','Update\x20available:','read','4077508aFTJjl','stderr','next','tdx\x20upgrade\x20--next','Request\x20timeout','1247816MRXelX','currentVersion','tdx\x20upgrade','2189915xNENjO','22740560fTNypO','15612QZZbOU'];a213_0x1121=function(){return _0x502463;};return a213_0x1121();}import{get}from'https';import{gt,valid}from'semver';import a213_0x599dce 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(a213_0x3a6e13(0x197),a213_0x3a6e13(0x1a0)),nextVersionCache=createGlobalCache('last_version_check_next',a213_0x3a6e13(0x192));function getCacheForChannel(_0x297833){const _0x3d2787=a213_0x3a6e13;return _0x297833===_0x3d2787(0x17d)?nextVersionCache:stableVersionCache;}function readCache(_0x23c825){const _0x12b9bd=a213_0x3a6e13;return getCacheForChannel(_0x23c825)[_0x12b9bd(0x17a)]()??null;}function a213_0x568c(_0xfa2042,_0x255a72){_0xfa2042=_0xfa2042-0x177;const _0x1121ed=a213_0x1121();let _0x568cbd=_0x1121ed[_0xfa2042];return _0x568cbd;}function writeCache(_0x247cdb,_0x1aefa1){const _0x346582=a213_0x3a6e13;try{getCacheForChannel(_0x1aefa1)[_0x346582(0x195)]({'lastCheck':new Date()[_0x346582(0x18e)](),'latestVersion':_0x247cdb});}catch{}}function isCacheValid(_0x218aa6){const _0x2de32e=a213_0x3a6e13;if(!_0x218aa6)return![];const _0x59b4a9=new Date(_0x218aa6[_0x2de32e(0x18a)])[_0x2de32e(0x19f)](),_0x3d424b=Date[_0x2de32e(0x19a)]();return _0x3d424b-_0x59b4a9<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2f3844=a213_0x3a6e13(0x198)){const _0x5ed29a=a213_0x3a6e13,_0x5b4df0=_0x2f3844===_0x5ed29a(0x17d)?_0x5ed29a(0x17d):'latest',_0x594b6e=NPM_REGISTRY_BASE+'/'+_0x5b4df0;return new Promise((_0x1c1a38,_0x57fa72)=>{const _0x34b5b5=_0x5ed29a,_0x3fda6c=get(_0x594b6e,{'timeout':TIMEOUT_MS},_0x303432=>{const _0x540e4c=a213_0x568c;if(_0x303432[_0x540e4c(0x194)]!==0xc8){clearTimeout(_0x4329d9),_0x57fa72(new Error(_0x540e4c(0x18b)+_0x303432[_0x540e4c(0x194)]));return;}let _0x13d011='';_0x303432['on'](_0x540e4c(0x18f),_0xf61968=>{_0x13d011+=_0xf61968;}),_0x303432['on'](_0x540e4c(0x188),()=>{const _0xe6e08b=_0x540e4c;clearTimeout(_0x4329d9);try{const _0x229a33=JSON[_0xe6e08b(0x1a2)](_0x13d011);if(!valid(_0x229a33[_0xe6e08b(0x189)])){_0x57fa72(new Error(_0xe6e08b(0x19c)));return;}_0x1c1a38(_0x229a33[_0xe6e08b(0x189)]);}catch(_0x1753f6){_0x57fa72(_0x1753f6);}});})['on']('error',_0x5cebe9=>{clearTimeout(_0x4329d9),_0x57fa72(_0x5cebe9);});_0x3fda6c['on'](_0x34b5b5(0x186),_0x326f93=>{const _0x553657=_0x34b5b5;_0x326f93[_0x553657(0x191)]();});const _0x4329d9=setTimeout(()=>{const _0x1b3b26=_0x34b5b5;_0x3fda6c['destroy'](),_0x57fa72(new Error(_0x1b3b26(0x17f)));},TIMEOUT_MS);_0x4329d9['unref']();});}export async function checkForUpdate(_0x1b8570,_0xe0cfc6=a213_0x3a6e13(0x198)){const _0x532b48=a213_0x3a6e13;try{const _0x5c733c=readCache(_0xe0cfc6);if(isCacheValid(_0x5c733c)){const _0x3350ac=gt(_0x5c733c['latestVersion'],_0x1b8570);return{'updateAvailable':_0x3350ac,'currentVersion':_0x1b8570,'latestVersion':_0x5c733c[_0x532b48(0x190)],'channel':_0xe0cfc6};}const _0xb3aa47=await fetchLatestVersion(_0xe0cfc6);writeCache(_0xb3aa47,_0xe0cfc6);const _0x57056c=gt(_0xb3aa47,_0x1b8570);return{'updateAvailable':_0x57056c,'currentVersion':_0x1b8570,'latestVersion':_0xb3aa47,'channel':_0xe0cfc6};}catch{return null;}}export function displayUpdateNotification(_0x5cbf3e){const _0xbd82c4=a213_0x3a6e13;if(!_0x5cbf3e[_0xbd82c4(0x19b)])return;const _0x21fecb=_0x5cbf3e['channel']==='next'?_0xbd82c4(0x17e):_0xbd82c4(0x182),_0x5e430d=process[_0xbd82c4(0x17c)]['isTTY']&&!process.env.NO_COLOR,_0x23ab3e=_0x5e430d?a213_0x599dce[_0xbd82c4(0x196)]('→'):'→',_0x390f4e=_0x5e430d?a213_0x599dce[_0xbd82c4(0x187)](_0x5cbf3e[_0xbd82c4(0x181)]):_0x5cbf3e['currentVersion'],_0x2fa848=_0x5e430d?a213_0x599dce['green'](_0x5cbf3e[_0xbd82c4(0x190)]):_0x5cbf3e[_0xbd82c4(0x190)],_0x15f19a=_0x5e430d?a213_0x599dce[_0xbd82c4(0x199)](_0x21fecb):_0x21fecb,_0x301250=_0x5e430d?'\x0a'+a213_0x599dce['yellow'](_0xbd82c4(0x179))+'\x20'+_0x390f4e+'\x20'+_0x23ab3e+'\x20'+_0x2fa848+'\x0a'+a213_0x599dce['dim'](_0xbd82c4(0x193))+'\x20'+_0x15f19a+'\x0a':_0xbd82c4(0x19d)+_0x390f4e+'\x20'+_0x23ab3e+'\x20'+_0x2fa848+_0xbd82c4(0x18c)+_0x15f19a+'\x0a';process[_0xbd82c4(0x17c)][_0xbd82c4(0x195)](_0x301250);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.19",
3
+ "version": "2026.3.20",
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": {