@treasuredata/tdx 2026.3.26 → 2026.3.27

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 (205) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.d.ts.map +1 -1
  65. package/dist/core/oauth.js +1 -1
  66. package/dist/core/oauth.js.map +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/utils.js +1 -1
  78. package/dist/proxy/claude-usage-tracker.js +1 -1
  79. package/dist/proxy/passthrough-server.js +1 -1
  80. package/dist/proxy/sse-usage-parser.js +1 -1
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/agent/test/evaluator.js +1 -1
  85. package/dist/sdk/agent/test/executor.js +1 -1
  86. package/dist/sdk/agent/test/index.js +1 -1
  87. package/dist/sdk/agent/test/output.js +1 -1
  88. package/dist/sdk/agent/test/parser.js +1 -1
  89. package/dist/sdk/agent/tool-target-registry.js +1 -1
  90. package/dist/sdk/api.js +1 -1
  91. package/dist/sdk/client/cdp-api-client.js +1 -1
  92. package/dist/sdk/client/delivery-api-client.js +1 -1
  93. package/dist/sdk/client/endpoints.js +1 -1
  94. package/dist/sdk/client/engage-api-client.js +1 -1
  95. package/dist/sdk/client/http-client.js +1 -1
  96. package/dist/sdk/client/llm-api-client.js +1 -1
  97. package/dist/sdk/client/oauth-refresh.js +1 -1
  98. package/dist/sdk/client/rate-limiter.js +1 -1
  99. package/dist/sdk/client/td-api-client.js +1 -1
  100. package/dist/sdk/client/trino-api-client.js +1 -1
  101. package/dist/sdk/client/workflow-client.js +1 -1
  102. package/dist/sdk/connection-validator.js +1 -1
  103. package/dist/sdk/connection.js +1 -1
  104. package/dist/sdk/delivery.js +1 -1
  105. package/dist/sdk/engage/campaign-pull.js +1 -1
  106. package/dist/sdk/engage/campaign-push.js +1 -1
  107. package/dist/sdk/engage/campaign-validator.js +1 -1
  108. package/dist/sdk/engage/campaign-yaml.js +1 -1
  109. package/dist/sdk/engage/template-pull.js +1 -1
  110. package/dist/sdk/engage/template-push.js +1 -1
  111. package/dist/sdk/engage/template-validator.js +1 -1
  112. package/dist/sdk/engage/template-yaml.js +1 -1
  113. package/dist/sdk/engage/types/campaign-def.js +1 -1
  114. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  115. package/dist/sdk/engage/types/template-schema.js +1 -1
  116. package/dist/sdk/engage.js +1 -1
  117. package/dist/sdk/errors.js +1 -1
  118. package/dist/sdk/index.js +1 -1
  119. package/dist/sdk/io/index.js +1 -1
  120. package/dist/sdk/io/node-filesystem.js +1 -1
  121. package/dist/sdk/job.js +1 -1
  122. package/dist/sdk/journey.js +1 -1
  123. package/dist/sdk/llm/chat-cache.js +1 -1
  124. package/dist/sdk/llm/index.js +1 -1
  125. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  126. package/dist/sdk/llm/model-factors.js +1 -1
  127. package/dist/sdk/personalization.js +1 -1
  128. package/dist/sdk/policy.js +1 -1
  129. package/dist/sdk/query/index.js +1 -1
  130. package/dist/sdk/query/sql-parser.js +1 -1
  131. package/dist/sdk/realtime.js +1 -1
  132. package/dist/sdk/schedule.js +1 -1
  133. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  134. package/dist/sdk/segment/fields-display.js +1 -1
  135. package/dist/sdk/segment/file-discovery.js +1 -1
  136. package/dist/sdk/segment/journey-utils.js +1 -1
  137. package/dist/sdk/segment/journey-validator.js +1 -1
  138. package/dist/sdk/segment/journey-yaml.js +1 -1
  139. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  140. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/pull-workflow.js +1 -1
  142. package/dist/sdk/segment/push-recovery.js +1 -1
  143. package/dist/sdk/segment/push-workflow.js +1 -1
  144. package/dist/sdk/segment/resolution-context.js +1 -1
  145. package/dist/sdk/segment/segment-path-parser.js +1 -1
  146. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  147. package/dist/sdk/segment/segment-validator.js +1 -1
  148. package/dist/sdk/segment/target-resolution.js +1 -1
  149. package/dist/sdk/segment/tdx-config.js +1 -1
  150. package/dist/sdk/segment/types/activation-schema.js +1 -1
  151. package/dist/sdk/segment/types/journey-def.js +1 -1
  152. package/dist/sdk/segment/types/journey-schema.js +1 -1
  153. package/dist/sdk/segment/types/segment-def.js +1 -1
  154. package/dist/sdk/segment/types/segment-schema.js +1 -1
  155. package/dist/sdk/segment/validate-files.js +1 -1
  156. package/dist/sdk/segment/yaml-validator.js +1 -1
  157. package/dist/sdk/segment.js +1 -1
  158. package/dist/sdk/types/index.js +1 -1
  159. package/dist/sdk/types/progress.js +1 -1
  160. package/dist/sdk/user.js +1 -1
  161. package/dist/sdk/util/format-detector.js +1 -1
  162. package/dist/sdk/util/formatters.js +1 -1
  163. package/dist/sdk/util/index.js +1 -1
  164. package/dist/sdk/util/paginate.js +1 -1
  165. package/dist/sdk/util/tree-formatter.js +1 -1
  166. package/dist/sdk/workflow/archive-validation.js +1 -1
  167. package/dist/sdk/workflow/clone-workflow.js +1 -1
  168. package/dist/sdk/workflow/index.js +1 -1
  169. package/dist/sdk/workflow/pull-workflow.js +1 -1
  170. package/dist/sdk/workflow/push-workflow.js +1 -1
  171. package/dist/sdk/workflow/tdx-config.js +1 -1
  172. package/dist/sdk/workflow/workflow-utils.js +1 -1
  173. package/dist/test-utils/command-runner.js +1 -1
  174. package/dist/test-utils/factories.js +1 -1
  175. package/dist/test-utils/fixtures.js +1 -1
  176. package/dist/test-utils/http-mock.js +1 -1
  177. package/dist/test-utils/index.js +1 -1
  178. package/dist/utils/async.js +1 -1
  179. package/dist/utils/colors.js +1 -1
  180. package/dist/utils/diff.js +1 -1
  181. package/dist/utils/file-permissions.js +1 -1
  182. package/dist/utils/file-reader.js +1 -1
  183. package/dist/utils/github-releases.js +1 -1
  184. package/dist/utils/global-cache.js +1 -1
  185. package/dist/utils/json-loader.js +1 -1
  186. package/dist/utils/local-cache.js +1 -1
  187. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  188. package/dist/utils/logger/formatters/index.js +1 -1
  189. package/dist/utils/logger/handlers/console-handler.js +1 -1
  190. package/dist/utils/logger/handlers/file-handler.js +1 -1
  191. package/dist/utils/logger/handlers/index.js +1 -1
  192. package/dist/utils/logger/handlers/null-handler.js +1 -1
  193. package/dist/utils/logger/index.js +1 -1
  194. package/dist/utils/logger/logger.js +1 -1
  195. package/dist/utils/logger/types.js +1 -1
  196. package/dist/utils/option-validation.js +1 -1
  197. package/dist/utils/process.js +1 -1
  198. package/dist/utils/prompt.js +1 -1
  199. package/dist/utils/spinner.js +1 -1
  200. package/dist/utils/sse-parser.js +1 -1
  201. package/dist/utils/string-utils.js +1 -1
  202. package/dist/utils/table-ref-parser.js +1 -1
  203. package/dist/utils/tdx-logger.js +1 -1
  204. package/dist/utils/version-check.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- const a209_0x19efc8=a209_0x1cc7;(function(_0x42f647,_0x1fdf5d){const _0x57858e=a209_0x1cc7,_0x4994f2=_0x42f647();while(!![]){try{const _0x5ad317=parseInt(_0x57858e(0x18f))/0x1+-parseInt(_0x57858e(0x17a))/0x2*(-parseInt(_0x57858e(0x1ac))/0x3)+parseInt(_0x57858e(0x198))/0x4+parseInt(_0x57858e(0x189))/0x5*(-parseInt(_0x57858e(0x19a))/0x6)+-parseInt(_0x57858e(0x177))/0x7*(-parseInt(_0x57858e(0x193))/0x8)+parseInt(_0x57858e(0x178))/0x9+parseInt(_0x57858e(0x190))/0xa*(-parseInt(_0x57858e(0x179))/0xb);if(_0x5ad317===_0x1fdf5d)break;else _0x4994f2['push'](_0x4994f2['shift']());}catch(_0x36c303){_0x4994f2['push'](_0x4994f2['shift']());}}}(a209_0x8dbf,0xd4209));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a209_0x19efc8(0x183),a209_0x19efc8(0x173),'sh',a209_0x19efc8(0x170),a209_0x19efc8(0x1ab),a209_0x19efc8(0x181),a209_0x19efc8(0x17c),a209_0x19efc8(0x197),'pwsh',a209_0x19efc8(0x1a5),'nu',a209_0x19efc8(0x172),a209_0x19efc8(0x17d),a209_0x19efc8(0x175)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x19efc8(0x1a0),a209_0x19efc8(0x176),a209_0x19efc8(0x1aa),a209_0x19efc8(0x1ae),a209_0x19efc8(0x195)]);function getProcessInfoWindows(_0x4e515e){const _0x3aa7aa=a209_0x19efc8;try{if(!Number[_0x3aa7aa(0x19f)](_0x4e515e)||_0x4e515e<=0x0)return null;const _0x4e9738=_0x3aa7aa(0x18c)+_0x4e515e+_0x3aa7aa(0x192),_0x2f8e93=execSync(_0x3aa7aa(0x18a)+_0x4e9738+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':['pipe',_0x3aa7aa(0x18e),_0x3aa7aa(0x18e)]})['trim']();if(!_0x2f8e93)return null;const [_0x28dac8,..._0x5c2338]=_0x2f8e93[_0x3aa7aa(0x1af)](','),_0x2875ec=parseInt(_0x28dac8,0xa),_0x1e3006=_0x5c2338['join'](',')[_0x3aa7aa(0x188)]();if(isNaN(_0x2875ec)||!_0x1e3006)return null;return{'pid':_0x4e515e,'ppid':_0x2875ec,'comm':_0x1e3006[_0x3aa7aa(0x1a6)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x572219){const _0x28c66f=a209_0x19efc8;try{const _0x2ef189=0x400000;if(!Number['isInteger'](_0x572219)||_0x572219<=0x0||_0x572219>_0x2ef189)return null;const _0x2cf50c=execSync(_0x28c66f(0x19e)+_0x572219+_0x28c66f(0x1a4),{'encoding':'utf-8','stdio':'pipe'})['trim'](),[_0x5c2bb8,..._0x1c8e7c]=_0x2cf50c[_0x28c66f(0x1af)](/\s+/),_0x453b8f=parseInt(_0x5c2bb8,0xa),_0x3da51b=_0x1c8e7c['join']('\x20');if(isNaN(_0x453b8f))return null;return{'pid':_0x572219,'ppid':_0x453b8f,'comm':_0x3da51b};}catch{return null;}}function getProcessInfo(_0x4f5d1b){const _0x3d0246=a209_0x19efc8;if(process[_0x3d0246(0x196)]===_0x3d0246(0x171))return getProcessInfoWindows(_0x4f5d1b);return getProcessInfoPosix(_0x4f5d1b);}function getBasename(_0x481f2d){const _0x31e532=a209_0x19efc8;return _0x481f2d[_0x31e532(0x1a6)](/^-/,'')[_0x31e532(0x1af)]('/')['pop']()?.[_0x31e532(0x18b)]()||'';}function a209_0x8dbf(){const _0xa42195=['csh','elvish','unref','map','where.exe','tcsh','ignore','bash','kill','join','comm','cmd.exe','trim','10WYTYew','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','toLowerCase','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','start','pipe','876292PkNcEr','400bDwzwB','has','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','8291544TNcZqm','Invalid\x20URL:\x20','treasure\x20studio','platform','dash','4958612QxkQpi','ppid','3666924YlILYY','protocol','xdg-open','pid','ps\x20-p\x20','isInteger','claude','data','Unsupported\x20protocol:\x20','https:','\x20-o\x20ppid=,comm=','powershell','replace','stderr','open','which','cursor','ksh','105iTDlGB','exit','electron','split','fish','win32','ion','zsh','http:','xonsh','code','7IlEyEu','7045992gchhdK','543961JgztjV','7654cxyCzN','stdout'];a209_0x8dbf=function(){return _0xa42195;};return a209_0x8dbf();}function isShell(_0x33658b){return SHELL_NAMES['has'](getBasename(_0x33658b));}function a209_0x1cc7(_0x3696d2,_0x52afa1){_0x3696d2=_0x3696d2-0x170;const _0x8dbfba=a209_0x8dbf();let _0x1cc7d8=_0x8dbfba[_0x3696d2];return _0x1cc7d8;}function isEphemeralShellSpawner(_0x386f8b){const _0x53b13f=a209_0x19efc8;return EPHEMERAL_SHELL_SPAWNERS[_0x53b13f(0x191)](getBasename(_0x386f8b));}let cachedShellPID;function findShellPID(){const _0x1908aa=a209_0x19efc8;if(process['ppid']===undefined)return process['pid'];let _0x417a42=process[_0x1908aa(0x199)];const _0x143511=0xa;let _0x57eef3=0x0;while(_0x57eef3<_0x143511){const _0x5bfc24=getProcessInfo(_0x417a42);if(!_0x5bfc24)break;if(isShell(_0x5bfc24[_0x1908aa(0x186)])){const _0x5c4174=getProcessInfo(_0x5bfc24[_0x1908aa(0x199)]);if(_0x5c4174&&isEphemeralShellSpawner(_0x5c4174[_0x1908aa(0x186)])){_0x417a42=_0x5bfc24[_0x1908aa(0x199)],_0x57eef3++;continue;}return _0x5bfc24['pid'];}if(_0x5bfc24[_0x1908aa(0x199)]===0x0||_0x5bfc24[_0x1908aa(0x199)]===0x1){if(isShell(_0x5bfc24[_0x1908aa(0x186)]))return _0x5bfc24[_0x1908aa(0x19d)];break;}_0x417a42=_0x5bfc24['ppid'],_0x57eef3++;}return process['ppid']!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x23c96f){const _0x15f739=a209_0x19efc8;if(!Number[_0x15f739(0x19f)](_0x23c96f)||_0x23c96f<=0x0)return![];try{return process[_0x15f739(0x184)](_0x23c96f,0x0),!![];}catch{return![];}}export function openBrowser(_0x272b67){const _0x1fe529=a209_0x19efc8;let _0x3fb4fa;try{_0x3fb4fa=new URL(_0x272b67);}catch{throw new Error(_0x1fe529(0x194)+_0x272b67);}if(_0x3fb4fa[_0x1fe529(0x19b)]!==_0x1fe529(0x174)&&_0x3fb4fa['protocol']!==_0x1fe529(0x1a3))throw new Error(_0x1fe529(0x1a2)+_0x3fb4fa['protocol']);const _0x243931=_0x3fb4fa['href'],_0x43ff11=process['platform'];if(_0x43ff11===_0x1fe529(0x171))spawn(_0x1fe529(0x187),['/c',_0x1fe529(0x18d),'',_0x243931],{'detached':!![],'stdio':_0x1fe529(0x182)})[_0x1fe529(0x17e)]();else{const _0x5dcda6=_0x43ff11==='darwin'?_0x1fe529(0x1a8):_0x1fe529(0x19c);spawn(_0x5dcda6,[_0x243931],{'detached':!![],'stdio':'ignore'})[_0x1fe529(0x17e)]();}}export function isWindows(){const _0x23c46d=a209_0x19efc8;return process[_0x23c46d(0x196)]===_0x23c46d(0x171);}export function getCrossSpawnOptions(_0x2d0fe6){return{..._0x2d0fe6??{},'shell':isWindows()};}export function escapeWindowsArg(_0x11cd56){const _0x48ef5a=a209_0x19efc8;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x11cd56))return _0x11cd56;const _0x277b5f=_0x11cd56[_0x48ef5a(0x1a6)](/"/g,'\x22\x22');return'\x22'+_0x277b5f+'\x22';}export function crossSpawn(_0x512664,_0x417071,_0x299097){const _0x480d76=a209_0x19efc8;if(isWindows()){const _0x4bd037=escapeWindowsArg(_0x512664),_0x8c406e=_0x417071[_0x480d76(0x17f)](escapeWindowsArg),_0x16ebc0=[_0x4bd037,..._0x8c406e][_0x480d76(0x185)]('\x20');return spawn(_0x16ebc0,[],{..._0x299097,'shell':!![]});}return spawn(_0x512664,_0x417071,{..._0x299097,'shell':![]});}export function gracefulExit(_0x4c0aae=0x0){const _0x446476=a209_0x19efc8;isWindows()?setTimeout(()=>process[_0x446476(0x1ad)](_0x4c0aae),0x32):process[_0x446476(0x1ad)](_0x4c0aae);}export function findExecutable(_0xbaa4cb,_0x8750b3=0x1388){return new Promise(_0x2473fd=>{const _0x5796ee=a209_0x1cc7,_0x51efe5=isWindows()?_0x5796ee(0x180):_0x5796ee(0x1a9);let _0x5d2f2f=![];const _0x3d5b42=crossSpawn(_0x51efe5,[_0xbaa4cb],{'stdio':'pipe','shell':isWindows()}),_0xa8e76a=setTimeout(()=>{const _0x107e21=_0x5796ee;!_0x5d2f2f&&(_0x5d2f2f=!![],_0x3d5b42[_0x107e21(0x184)](),_0x2473fd(null));},_0x8750b3);let _0x5419ce='';_0x3d5b42[_0x5796ee(0x17b)]?.['on'](_0x5796ee(0x1a1),_0xd34bc1=>{_0x5419ce+=_0xd34bc1['toString']();}),_0x3d5b42[_0x5796ee(0x1a7)]?.['on'](_0x5796ee(0x1a1),()=>{}),_0x3d5b42['on'](_0x5796ee(0x1ad),_0x1a6dee=>{const _0x34d47a=_0x5796ee;if(_0x5d2f2f)return;_0x5d2f2f=!![],clearTimeout(_0xa8e76a);if(_0x1a6dee===0x0&&_0x5419ce[_0x34d47a(0x188)]()){const _0x4dd73f=_0x5419ce[_0x34d47a(0x188)]()['split'](/\r?\n/)[0x0];_0x2473fd(_0x4dd73f);}else _0x2473fd(null);}),_0x3d5b42['on']('error',()=>{if(_0x5d2f2f)return;_0x5d2f2f=!![],clearTimeout(_0xa8e76a),_0x2473fd(null);});});}
1
+ const a209_0x36bc75=a209_0x511d;(function(_0x30d50e,_0x3d25e3){const _0x154a31=a209_0x511d,_0x126c8a=_0x30d50e();while(!![]){try{const _0x2880b7=-parseInt(_0x154a31(0x1cb))/0x1+-parseInt(_0x154a31(0x1f1))/0x2+-parseInt(_0x154a31(0x1d4))/0x3*(parseInt(_0x154a31(0x1e2))/0x4)+-parseInt(_0x154a31(0x1b6))/0x5*(-parseInt(_0x154a31(0x1c7))/0x6)+-parseInt(_0x154a31(0x1be))/0x7+parseInt(_0x154a31(0x1e8))/0x8*(-parseInt(_0x154a31(0x1ce))/0x9)+parseInt(_0x154a31(0x1cd))/0xa;if(_0x2880b7===_0x3d25e3)break;else _0x126c8a['push'](_0x126c8a['shift']());}catch(_0x518381){_0x126c8a['push'](_0x126c8a['shift']());}}}(a209_0x1212,0xb032c));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a209_0x36bc75(0x1db),'zsh','sh','fish','ksh',a209_0x36bc75(0x1eb),a209_0x36bc75(0x1d3),a209_0x36bc75(0x1d8),a209_0x36bc75(0x1b9),a209_0x36bc75(0x1d2),'nu',a209_0x36bc75(0x1ef),'elvish',a209_0x36bc75(0x1e1)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x36bc75(0x1ca),a209_0x36bc75(0x1ee),a209_0x36bc75(0x1b7),a209_0x36bc75(0x1d9),a209_0x36bc75(0x1d1)]);function getProcessInfoWindows(_0x54cabe){const _0x22c092=a209_0x36bc75;try{if(!Number['isInteger'](_0x54cabe)||_0x54cabe<=0x0)return null;const _0x46a5cd='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x54cabe+_0x22c092(0x1ed),_0x3ea04d=execSync(_0x22c092(0x1e5)+_0x46a5cd+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x22c092(0x1dd),_0x22c092(0x1dd),_0x22c092(0x1dd)]})['trim']();if(!_0x3ea04d)return null;const [_0x499b2f,..._0x41973c]=_0x3ea04d['split'](','),_0x18fe84=parseInt(_0x499b2f,0xa),_0x14e7ff=_0x41973c[_0x22c092(0x1d6)](',')[_0x22c092(0x1f2)]();if(isNaN(_0x18fe84)||!_0x14e7ff)return null;return{'pid':_0x54cabe,'ppid':_0x18fe84,'comm':_0x14e7ff['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x225517){const _0x392ff6=a209_0x36bc75;try{const _0x75f310=0x400000;if(!Number[_0x392ff6(0x1c5)](_0x225517)||_0x225517<=0x0||_0x225517>_0x75f310)return null;const _0x1930b8=execSync(_0x392ff6(0x1dc)+_0x225517+'\x20-o\x20ppid=,comm=',{'encoding':_0x392ff6(0x1da),'stdio':_0x392ff6(0x1dd)})[_0x392ff6(0x1f2)](),[_0x138c6d,..._0x1fc7e0]=_0x1930b8[_0x392ff6(0x1bd)](/\s+/),_0x54e921=parseInt(_0x138c6d,0xa),_0x4aa367=_0x1fc7e0[_0x392ff6(0x1d6)]('\x20');if(isNaN(_0x54e921))return null;return{'pid':_0x225517,'ppid':_0x54e921,'comm':_0x4aa367};}catch{return null;}}function getProcessInfo(_0x19436d){const _0xdef282=a209_0x36bc75;if(process[_0xdef282(0x1e6)]===_0xdef282(0x1df))return getProcessInfoWindows(_0x19436d);return getProcessInfoPosix(_0x19436d);}function getBasename(_0x13d526){const _0xfffce8=a209_0x36bc75;return _0x13d526[_0xfffce8(0x1bb)](/^-/,'')[_0xfffce8(0x1bd)]('/')[_0xfffce8(0x1d7)]()?.['toLowerCase']()||'';}function isShell(_0x48bed1){const _0xc77ecd=a209_0x36bc75;return SHELL_NAMES[_0xc77ecd(0x1c8)](getBasename(_0x48bed1));}function isEphemeralShellSpawner(_0xe085a5){const _0x31b722=a209_0x36bc75;return EPHEMERAL_SHELL_SPAWNERS[_0x31b722(0x1c8)](getBasename(_0xe085a5));}let cachedShellPID;function findShellPID(){const _0x4168b3=a209_0x36bc75;if(process['ppid']===undefined)return process[_0x4168b3(0x1d5)];let _0x4c9b06=process[_0x4168b3(0x1c2)];const _0x261a9b=0xa;let _0x207a83=0x0;while(_0x207a83<_0x261a9b){const _0x49f8d1=getProcessInfo(_0x4c9b06);if(!_0x49f8d1)break;if(isShell(_0x49f8d1[_0x4168b3(0x1e4)])){const _0x479b2d=getProcessInfo(_0x49f8d1[_0x4168b3(0x1c2)]);if(_0x479b2d&&isEphemeralShellSpawner(_0x479b2d[_0x4168b3(0x1e4)])){_0x4c9b06=_0x49f8d1['ppid'],_0x207a83++;continue;}return _0x49f8d1[_0x4168b3(0x1d5)];}if(_0x49f8d1[_0x4168b3(0x1c2)]===0x0||_0x49f8d1[_0x4168b3(0x1c2)]===0x1){if(isShell(_0x49f8d1[_0x4168b3(0x1e4)]))return _0x49f8d1[_0x4168b3(0x1d5)];break;}_0x4c9b06=_0x49f8d1[_0x4168b3(0x1c2)],_0x207a83++;}return process[_0x4168b3(0x1c2)]!==undefined?process[_0x4168b3(0x1c2)]:process[_0x4168b3(0x1d5)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a209_0x1212(){const _0x3d0896=['ps\x20-p\x20','pipe','exit','win32','cmd.exe','xonsh','28umjCwF','unref','comm','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','platform','error','8YcyfYr','Invalid\x20URL:\x20','ignore','tcsh','toString','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','code','ion','open','2260326AYRLcK','trim','start','995dgwGxN','cursor','https:','pwsh','stderr','replace','kill','split','8131403ZCwoCm','which','href','stdout','ppid','darwin','Unsupported\x20protocol:\x20','isInteger','xdg-open','41694AUVDml','has','data','claude','22817XzemLm','map','42484540qcdyTF','10412109wNRiVn','protocol','where.exe','treasure\x20studio','powershell','csh','616323zOdHEs','pid','join','pop','dash','electron','utf-8','bash'];a209_0x1212=function(){return _0x3d0896;};return a209_0x1212();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x24c2e0){const _0x46f263=a209_0x36bc75;if(!Number['isInteger'](_0x24c2e0)||_0x24c2e0<=0x0)return![];try{return process[_0x46f263(0x1bc)](_0x24c2e0,0x0),!![];}catch{return![];}}export function openBrowser(_0x49877e){const _0x3b5ea3=a209_0x36bc75;let _0x13b9c6;try{_0x13b9c6=new URL(_0x49877e);}catch{throw new Error(_0x3b5ea3(0x1e9)+_0x49877e);}if(_0x13b9c6[_0x3b5ea3(0x1cf)]!=='http:'&&_0x13b9c6[_0x3b5ea3(0x1cf)]!==_0x3b5ea3(0x1b8))throw new Error(_0x3b5ea3(0x1c4)+_0x13b9c6[_0x3b5ea3(0x1cf)]);const _0x210ed9=_0x13b9c6[_0x3b5ea3(0x1c0)],_0x2ddf73=process[_0x3b5ea3(0x1e6)];if(_0x2ddf73===_0x3b5ea3(0x1df))spawn(_0x3b5ea3(0x1e0),['/c',_0x3b5ea3(0x1f3),'',_0x210ed9],{'detached':!![],'stdio':_0x3b5ea3(0x1ea)})['unref']();else{const _0x490c59=_0x2ddf73===_0x3b5ea3(0x1c3)?_0x3b5ea3(0x1f0):_0x3b5ea3(0x1c6);spawn(_0x490c59,[_0x210ed9],{'detached':!![],'stdio':'ignore'})[_0x3b5ea3(0x1e3)]();}}function a209_0x511d(_0x397e6f,_0x4063fe){_0x397e6f=_0x397e6f-0x1b6;const _0x121260=a209_0x1212();let _0x511dc7=_0x121260[_0x397e6f];return _0x511dc7;}export function isWindows(){const _0x3e818e=a209_0x36bc75;return process[_0x3e818e(0x1e6)]===_0x3e818e(0x1df);}export function getCrossSpawnOptions(_0x1b5102){return{..._0x1b5102??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2652f1){const _0x53d4cb=a209_0x36bc75;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x2652f1))return _0x2652f1;const _0x543d66=_0x2652f1[_0x53d4cb(0x1bb)](/"/g,'\x22\x22');return'\x22'+_0x543d66+'\x22';}export function crossSpawn(_0x1471d0,_0x29e035,_0x1784b6){const _0x57f1a4=a209_0x36bc75;if(isWindows()){const _0x46256a=escapeWindowsArg(_0x1471d0),_0xebb257=_0x29e035[_0x57f1a4(0x1cc)](escapeWindowsArg),_0x586417=[_0x46256a,..._0xebb257][_0x57f1a4(0x1d6)]('\x20');return spawn(_0x586417,[],{..._0x1784b6,'shell':!![]});}return spawn(_0x1471d0,_0x29e035,{..._0x1784b6,'shell':![]});}export function gracefulExit(_0x47d0bc=0x0){const _0x414afa=a209_0x36bc75;isWindows()?setTimeout(()=>process[_0x414afa(0x1de)](_0x47d0bc),0x32):process[_0x414afa(0x1de)](_0x47d0bc);}export function findExecutable(_0x3647f7,_0x43951d=0x1388){return new Promise(_0x605bbd=>{const _0x58ab6c=a209_0x511d,_0x20e02b=isWindows()?_0x58ab6c(0x1d0):_0x58ab6c(0x1bf);let _0x580372=![];const _0x352d98=crossSpawn(_0x20e02b,[_0x3647f7],{'stdio':_0x58ab6c(0x1dd),'shell':isWindows()}),_0x586e98=setTimeout(()=>{const _0x9dfe5c=_0x58ab6c;!_0x580372&&(_0x580372=!![],_0x352d98[_0x9dfe5c(0x1bc)](),_0x605bbd(null));},_0x43951d);let _0x51ad8d='';_0x352d98[_0x58ab6c(0x1c1)]?.['on'](_0x58ab6c(0x1c9),_0x555241=>{const _0xc27885=_0x58ab6c;_0x51ad8d+=_0x555241[_0xc27885(0x1ec)]();}),_0x352d98[_0x58ab6c(0x1ba)]?.['on'](_0x58ab6c(0x1c9),()=>{}),_0x352d98['on'](_0x58ab6c(0x1de),_0x625654=>{const _0x48c8e0=_0x58ab6c;if(_0x580372)return;_0x580372=!![],clearTimeout(_0x586e98);if(_0x625654===0x0&&_0x51ad8d[_0x48c8e0(0x1f2)]()){const _0x247077=_0x51ad8d[_0x48c8e0(0x1f2)]()[_0x48c8e0(0x1bd)](/\r?\n/)[0x0];_0x605bbd(_0x247077);}else _0x605bbd(null);}),_0x352d98['on'](_0x58ab6c(0x1e7),()=>{if(_0x580372)return;_0x580372=!![],clearTimeout(_0x586e98),_0x605bbd(null);});});}
@@ -1 +1 @@
1
- (function(_0x131a3a,_0x62aa23){const _0x4ee16e=a210_0xbd75,_0x3d44cd=_0x131a3a();while(!![]){try{const _0x1e9b37=parseInt(_0x4ee16e(0xa4))/0x1+parseInt(_0x4ee16e(0xa8))/0x2+-parseInt(_0x4ee16e(0x9e))/0x3*(parseInt(_0x4ee16e(0x97))/0x4)+parseInt(_0x4ee16e(0x9b))/0x5*(parseInt(_0x4ee16e(0x99))/0x6)+parseInt(_0x4ee16e(0xa2))/0x7+parseInt(_0x4ee16e(0xa6))/0x8+-parseInt(_0x4ee16e(0x96))/0x9*(parseInt(_0x4ee16e(0xa5))/0xa);if(_0x1e9b37===_0x62aa23)break;else _0x3d44cd['push'](_0x3d44cd['shift']());}catch(_0x260e66){_0x3d44cd['push'](_0x3d44cd['shift']());}}}(a210_0x522b,0x4745b));function a210_0x522b(){const _0x4110f2=['874348ZZwNTJ','stdin','setRawMode','question','\x20(y/N):\x20','data','10376550zJwVNg','26392ChocdU','close','1800768IVoGPJ','toLowerCase','5dFWEVU','stderr','stdout','108KiykIg','createInterface','write','yes','3961475zkesSK','setEncoding','197579uBjElJ','10rqcHAj','1452824BqijvA','utf8'];a210_0x522b=function(){return _0x4110f2;};return a210_0x522b();}import*as a210_0x32c82a from'readline';function a210_0xbd75(_0x2f3ee2,_0x5bdb07){_0x2f3ee2=_0x2f3ee2-0x91;const _0x522b65=a210_0x522b();let _0xbd75fc=_0x522b65[_0x2f3ee2];return _0xbd75fc;}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x30e1e1=a210_0xbd75;return process[_0x30e1e1(0x91)]['isTTY']===!![];}export async function confirm(_0x193ddd){const _0x45da5d=a210_0xbd75,_0x206809=a210_0x32c82a[_0x45da5d(0x9f)]({'input':process['stdin'],'output':process[_0x45da5d(0x9d)]});return new Promise(_0x6ea607=>{const _0x1f352a=_0x45da5d;_0x206809[_0x1f352a(0x93)](_0x193ddd+_0x1f352a(0x94),_0x5815c1=>{const _0x5e86fe=_0x1f352a;_0x206809[_0x5e86fe(0x98)](),_0x6ea607(_0x5815c1[_0x5e86fe(0x9a)]()==='y'||_0x5815c1['toLowerCase']()===_0x5e86fe(0xa1));});});}export async function confirmKey(_0x5c69bc){const _0xd40e3c=a210_0xbd75;if(!process['stdin']['isTTY'])return![];return process[_0xd40e3c(0x9c)][_0xd40e3c(0xa0)](_0x5c69bc+'\x20[y/N]\x20'),new Promise(_0x213fad=>{const _0x5a03f7=_0xd40e3c,_0x5c5f89=process[_0x5a03f7(0x91)];_0x5c5f89[_0x5a03f7(0x92)](!![]),_0x5c5f89['resume'](),_0x5c5f89[_0x5a03f7(0xa3)](_0x5a03f7(0xa7));const _0x4d54f4=_0x1c1856=>{const _0x174f7f=_0x5a03f7;_0x5c5f89['setRawMode'](![]),_0x5c5f89['pause'](),_0x5c5f89['removeListener'](_0x174f7f(0x95),_0x4d54f4);if(_0x1c1856==='\x1b'){process[_0x174f7f(0x9c)][_0x174f7f(0xa0)]('\x0a'),_0x213fad(![]);return;}_0x1c1856==='\x03'&&(process[_0x174f7f(0x9c)][_0x174f7f(0xa0)]('\x0a'),gracefulExit(0x82));if(_0x1c1856[_0x174f7f(0x9a)]()==='y'){process[_0x174f7f(0x9c)]['write']('y\x0a'),_0x213fad(!![]);return;}process[_0x174f7f(0x9c)]['write']('\x0a'),_0x213fad(![]);};_0x5c5f89['on'](_0x5a03f7(0x95),_0x4d54f4);});}
1
+ (function(_0x37dd09,_0x1985f7){const _0x132494=a210_0x4bae,_0xa45fa8=_0x37dd09();while(!![]){try{const _0x3c054b=parseInt(_0x132494(0xfb))/0x1+parseInt(_0x132494(0xf8))/0x2+parseInt(_0x132494(0xf3))/0x3+-parseInt(_0x132494(0x105))/0x4*(parseInt(_0x132494(0xf7))/0x5)+-parseInt(_0x132494(0xfc))/0x6*(-parseInt(_0x132494(0xf2))/0x7)+-parseInt(_0x132494(0x100))/0x8+parseInt(_0x132494(0x108))/0x9*(parseInt(_0x132494(0x103))/0xa);if(_0x3c054b===_0x1985f7)break;else _0xa45fa8['push'](_0xa45fa8['shift']());}catch(_0x2eb783){_0xa45fa8['push'](_0xa45fa8['shift']());}}}(a210_0x52f6,0x5ef46));import*as a210_0x44fd30 from'readline';function a210_0x4bae(_0x3ec5ea,_0x4beca8){_0x3ec5ea=_0x3ec5ea-0xf0;const _0x52f619=a210_0x52f6();let _0x4baeeb=_0x52f619[_0x3ec5ea];return _0x4baeeb;}function a210_0x52f6(){const _0x125a15=['pause','toLowerCase','262932aWfYKa','18jtsHsV','removeListener','data','isTTY','2358592YHCzsA','\x20(y/N):\x20','setEncoding','10HtzeXE','\x20[y/N]\x20','584316pnyzHt','stderr','createInterface','1425069zXuwud','yes','resume','177142IWkrPD','349716kmbwSr','stdin','write','setRawMode','5MOoOVT','432148EiGTID'];a210_0x52f6=function(){return _0x125a15;};return a210_0x52f6();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x55f8b8=a210_0x4bae;return process[_0x55f8b8(0xf4)][_0x55f8b8(0xff)]===!![];}export async function confirm(_0x33dd39){const _0x1e9e2a=a210_0x4bae,_0x4e2c7a=a210_0x44fd30[_0x1e9e2a(0x107)]({'input':process[_0x1e9e2a(0xf4)],'output':process['stdout']});return new Promise(_0x577a25=>{const _0x58bdaf=_0x1e9e2a;_0x4e2c7a['question'](_0x33dd39+_0x58bdaf(0x101),_0x2cb3d6=>{const _0x508208=_0x58bdaf;_0x4e2c7a['close'](),_0x577a25(_0x2cb3d6['toLowerCase']()==='y'||_0x2cb3d6['toLowerCase']()===_0x508208(0xf0));});});}export async function confirmKey(_0x33db68){const _0x12a288=a210_0x4bae;if(!process[_0x12a288(0xf4)]['isTTY'])return![];return process[_0x12a288(0x106)][_0x12a288(0xf5)](_0x33db68+_0x12a288(0x104)),new Promise(_0x48f448=>{const _0x362197=_0x12a288,_0x5bf742=process['stdin'];_0x5bf742[_0x362197(0xf6)](!![]),_0x5bf742[_0x362197(0xf1)](),_0x5bf742[_0x362197(0x102)]('utf8');const _0x2e8c68=_0x3b4a7e=>{const _0xc041ef=_0x362197;_0x5bf742[_0xc041ef(0xf6)](![]),_0x5bf742[_0xc041ef(0xf9)](),_0x5bf742[_0xc041ef(0xfd)](_0xc041ef(0xfe),_0x2e8c68);if(_0x3b4a7e==='\x1b'){process[_0xc041ef(0x106)]['write']('\x0a'),_0x48f448(![]);return;}_0x3b4a7e==='\x03'&&(process[_0xc041ef(0x106)][_0xc041ef(0xf5)]('\x0a'),gracefulExit(0x82));if(_0x3b4a7e[_0xc041ef(0xfa)]()==='y'){process[_0xc041ef(0x106)][_0xc041ef(0xf5)]('y\x0a'),_0x48f448(!![]);return;}process['stderr'][_0xc041ef(0xf5)]('\x0a'),_0x48f448(![]);};_0x5bf742['on'](_0x362197(0xfe),_0x2e8c68);});}
@@ -1 +1 @@
1
- (function(_0x298ec8,_0xe3ea1d){const _0x47869c=a211_0x2e7c,_0x557fcc=_0x298ec8();while(!![]){try{const _0x5cfc6b=-parseInt(_0x47869c(0x1a2))/0x1*(parseInt(_0x47869c(0x1ab))/0x2)+-parseInt(_0x47869c(0x1a9))/0x3+parseInt(_0x47869c(0x19c))/0x4*(parseInt(_0x47869c(0x1a5))/0x5)+parseInt(_0x47869c(0x1a6))/0x6*(parseInt(_0x47869c(0x19a))/0x7)+parseInt(_0x47869c(0x19e))/0x8+-parseInt(_0x47869c(0x199))/0x9+parseInt(_0x47869c(0x1ac))/0xa;if(_0x5cfc6b===_0xe3ea1d)break;else _0x557fcc['push'](_0x557fcc['shift']());}catch(_0x25d9ce){_0x557fcc['push'](_0x557fcc['shift']());}}}(a211_0x5e65,0x804b8));import a211_0x3fa10f from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x52a7d0,_0x4cfe20={}){const _0x2f5435=a211_0x2e7c,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x4cfe20;return a211_0x3fa10f({'text':_0x52a7d0,'color':_0x2f5435(0x1af),'stream':process[_0x2f5435(0x1a4)],'isEnabled':forceEnabled||process['stderr'][_0x2f5435(0x194)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x5bb42f,_0x54ff84,_0x25fdee={}){const _0x505d8a=a211_0x2e7c,_0x2e929f=_0x25fdee[_0x505d8a(0x1ad)]??(()=>Date['now']()),_0x21a5c0=createCommandSpinner(_0x5bb42f,_0x25fdee);_0x21a5c0['start']();const _0x9c4af8=_0x2e929f();try{const _0x587e8f=await _0x54ff84(),_0x5d4d9f=_0x2e929f()-_0x9c4af8;return _0x21a5c0[_0x505d8a(0x1a3)](),{'data':_0x587e8f,'elapsedMs':_0x5d4d9f};}catch(_0x3b55f5){_0x21a5c0[_0x505d8a(0x1a3)]();throw _0x3b55f5;}}function a211_0x5e65(){const _0x2adddb=['floor','extra','1pQKkTw','stop','stderr','21380rpNuZV','672vQdOip','trim','jobId','640599ZiNuns','Processing','2033854AlEahy','2896730hNBSFY','clock','isSpinning','cyan','isTTY','phase','\x20[Job\x20ID:\x20','text','now','2752875hgELjV','56504XSBUUP','start','428xGhLiG','replace','3284496EKkGLA','toFixed'];a211_0x5e65=function(){return _0x2adddb;};return a211_0x5e65();}export async function withProgressSpinner(_0xc64116,_0x5539d9,_0x4a94b5={}){const _0x2f19a2=a211_0x2e7c,_0x45cdaf=_0x4a94b5[_0x2f19a2(0x1ad)]??(()=>Date[_0x2f19a2(0x198)]()),_0x455104=_0x4a94b5['intervalFactory']??setInterval,_0x217c64=createCommandSpinner(_0xc64116,_0x4a94b5);_0x217c64[_0x2f19a2(0x19b)]();const _0x2b300c=_0x45cdaf(),_0x1f2b93=_0xc64116[_0x2f19a2(0x19d)]('...','')['trim']()||_0x2f19a2(0x1aa),_0x54e869={};let _0x4fc83d=_0xc64116;const _0x45756f=()=>{const _0x16a9db=_0x2f19a2;if(!_0x217c64['isSpinning'])return;const _0x3d2864=_0x45cdaf()-_0x2b300c,_0x2e4134=formatElapsed(_0x3d2864),_0x30c5ee=_0x54e869[_0x16a9db(0x195)]?.[_0x16a9db(0x1a7)]()||_0x1f2b93,_0x81f669=_0x54e869[_0x16a9db(0x1a8)]?_0x16a9db(0x196)+_0x54e869['jobId']+']':'',_0x4196f3=_0x54e869[_0x16a9db(0x1a1)]?'\x20'+_0x54e869[_0x16a9db(0x1a1)]:'',_0x3a8d36=_0x30c5ee+'\x20'+_0x2e4134+_0x4196f3+_0x81f669;_0x3a8d36!==_0x4fc83d&&_0x3a8d36[_0x16a9db(0x1a7)]()&&(_0x217c64[_0x16a9db(0x197)]=_0x3a8d36,_0x4fc83d=_0x3a8d36);},_0x5849a7=_0x455104(()=>{_0x45756f();},0x3e8),_0x1e1f4f={'setPhase':_0x188ae9=>{const _0x61ec89=_0x2f19a2;_0x54e869[_0x61ec89(0x195)]=_0x188ae9;const _0x571920=_0x188ae9?.['trim']()||_0x1f2b93,_0x42cf5b=_0x45cdaf()-_0x2b300c,_0x2ecacf=formatElapsed(_0x42cf5b),_0x4325d1=_0x54e869[_0x61ec89(0x1a8)]?'\x20[Job\x20ID:\x20'+_0x54e869['jobId']+']':'',_0x100444=_0x54e869[_0x61ec89(0x1a1)]?'\x20'+_0x54e869[_0x61ec89(0x1a1)]:'',_0x24eb0b=_0x571920+'\x20'+_0x2ecacf+_0x100444+_0x4325d1;_0x217c64[_0x61ec89(0x1ae)]&&_0x24eb0b[_0x61ec89(0x1a7)]()&&(_0x217c64['text']=_0x24eb0b,_0x4fc83d=_0x24eb0b);},'setJobId':_0x365945=>{const _0x5c833c=_0x2f19a2;_0x54e869[_0x5c833c(0x1a8)]=_0x365945,_0x45756f();},'setExtra':_0x10a11b=>{const _0x5e7c8e=_0x2f19a2;_0x54e869[_0x5e7c8e(0x1a1)]=_0x10a11b,_0x45756f();}};_0x45756f();try{const _0x3e0efe=await _0x5539d9(_0x1e1f4f),_0x4778dc=_0x45cdaf()-_0x2b300c;return{'data':_0x3e0efe,'elapsedMs':_0x4778dc};}finally{clearInterval(_0x5849a7),_0x217c64[_0x2f19a2(0x1a3)]();}}function a211_0x2e7c(_0x500fe9,_0x372f77){_0x500fe9=_0x500fe9-0x194;const _0x5e6553=a211_0x5e65();let _0x2e7c5f=_0x5e6553[_0x500fe9];return _0x2e7c5f;}export function formatElapsed(_0x3a7c31){const _0x5d6c6c=a211_0x2e7c,_0x391517=Math['floor'](_0x3a7c31/0x3e8);if(_0x391517<0x3c)return(_0x3a7c31/0x3e8)[_0x5d6c6c(0x19f)](0x1)+'s';const _0x425284=Math[_0x5d6c6c(0x1a0)](_0x391517/0x3c),_0x2e0351=_0x391517%0x3c;if(_0x425284<0x3c)return _0x425284+'m\x20'+_0x2e0351+'s';const _0x493776=Math[_0x5d6c6c(0x1a0)](_0x425284/0x3c),_0x1d2fea=_0x425284%0x3c;return _0x493776+'h\x20'+_0x1d2fea+'m';}
1
+ (function(_0xcaf399,_0x1a849e){const _0x49b36b=a211_0x2737,_0xe8e42c=_0xcaf399();while(!![]){try{const _0x3e1633=parseInt(_0x49b36b(0x141))/0x1*(-parseInt(_0x49b36b(0x14d))/0x2)+-parseInt(_0x49b36b(0x155))/0x3*(-parseInt(_0x49b36b(0x144))/0x4)+-parseInt(_0x49b36b(0x143))/0x5*(parseInt(_0x49b36b(0x150))/0x6)+parseInt(_0x49b36b(0x151))/0x7+-parseInt(_0x49b36b(0x14c))/0x8*(-parseInt(_0x49b36b(0x14b))/0x9)+-parseInt(_0x49b36b(0x13b))/0xa*(parseInt(_0x49b36b(0x146))/0xb)+parseInt(_0x49b36b(0x147))/0xc;if(_0x3e1633===_0x1a849e)break;else _0xe8e42c['push'](_0xe8e42c['shift']());}catch(_0x10c4d3){_0xe8e42c['push'](_0xe8e42c['shift']());}}}(a211_0x53d9,0x5478d));import a211_0x38a1e0 from'ora';function a211_0x53d9(){const _0x496f62=['14090cWzjOm','start','now','text','trim','clock','1xzxzlr','intervalFactory','3267455oNVxaC','18764hmzjkb','stderr','2299fxdYIn','10764492fOWMVw','Processing','isTTY','stop','63720rtDwAS','80bDjigx','348412vCEias','isSpinning','cyan','6ZWJlIq','382823JvUtGV','jobId','extra','floor','285pgbHSN','...','phase','\x20[Job\x20ID:\x20'];a211_0x53d9=function(){return _0x496f62;};return a211_0x53d9();}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x494623,_0x54155e={}){const _0x546eff=a211_0x2737,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x54155e;return a211_0x38a1e0({'text':_0x494623,'color':_0x546eff(0x14f),'stream':process[_0x546eff(0x145)],'isEnabled':forceEnabled||process[_0x546eff(0x145)][_0x546eff(0x149)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x408e5e,_0x45d6e8,_0x4e4b99={}){const _0x1d4400=a211_0x2737,_0x45320f=_0x4e4b99[_0x1d4400(0x140)]??(()=>Date[_0x1d4400(0x13d)]()),_0x5c0bd3=createCommandSpinner(_0x408e5e,_0x4e4b99);_0x5c0bd3[_0x1d4400(0x13c)]();const _0x51a828=_0x45320f();try{const _0x292db4=await _0x45d6e8(),_0x59f919=_0x45320f()-_0x51a828;return _0x5c0bd3[_0x1d4400(0x14a)](),{'data':_0x292db4,'elapsedMs':_0x59f919};}catch(_0x41421e){_0x5c0bd3[_0x1d4400(0x14a)]();throw _0x41421e;}}function a211_0x2737(_0x472f78,_0x46c62d){_0x472f78=_0x472f78-0x139;const _0x53d9f1=a211_0x53d9();let _0x2737b8=_0x53d9f1[_0x472f78];return _0x2737b8;}export async function withProgressSpinner(_0x418578,_0x5a4037,_0x16f713={}){const _0x4f080d=a211_0x2737,_0x4b4fe4=_0x16f713[_0x4f080d(0x140)]??(()=>Date[_0x4f080d(0x13d)]()),_0x1bdbfa=_0x16f713[_0x4f080d(0x142)]??setInterval,_0x4b62fa=createCommandSpinner(_0x418578,_0x16f713);_0x4b62fa['start']();const _0x46848f=_0x4b4fe4(),_0x59eac9=_0x418578['replace'](_0x4f080d(0x156),'')[_0x4f080d(0x13f)]()||_0x4f080d(0x148),_0x4841cb={};let _0x11a660=_0x418578;const _0x3a96ae=()=>{const _0xd6709b=_0x4f080d;if(!_0x4b62fa[_0xd6709b(0x14e)])return;const _0x5c610d=_0x4b4fe4()-_0x46848f,_0x68b56b=formatElapsed(_0x5c610d),_0xcb5d8e=_0x4841cb[_0xd6709b(0x139)]?.['trim']()||_0x59eac9,_0x170312=_0x4841cb['jobId']?_0xd6709b(0x13a)+_0x4841cb[_0xd6709b(0x152)]+']':'',_0x40df8d=_0x4841cb['extra']?'\x20'+_0x4841cb[_0xd6709b(0x153)]:'',_0xddb4c3=_0xcb5d8e+'\x20'+_0x68b56b+_0x40df8d+_0x170312;_0xddb4c3!==_0x11a660&&_0xddb4c3['trim']()&&(_0x4b62fa[_0xd6709b(0x13e)]=_0xddb4c3,_0x11a660=_0xddb4c3);},_0x48f4ad=_0x1bdbfa(()=>{_0x3a96ae();},0x3e8),_0x58429e={'setPhase':_0x131e93=>{const _0xca3f5d=_0x4f080d;_0x4841cb[_0xca3f5d(0x139)]=_0x131e93;const _0xf224ec=_0x131e93?.[_0xca3f5d(0x13f)]()||_0x59eac9,_0x37bc0f=_0x4b4fe4()-_0x46848f,_0x29be82=formatElapsed(_0x37bc0f),_0x2fdf0b=_0x4841cb[_0xca3f5d(0x152)]?'\x20[Job\x20ID:\x20'+_0x4841cb[_0xca3f5d(0x152)]+']':'',_0xc74eed=_0x4841cb[_0xca3f5d(0x153)]?'\x20'+_0x4841cb[_0xca3f5d(0x153)]:'',_0x4deea3=_0xf224ec+'\x20'+_0x29be82+_0xc74eed+_0x2fdf0b;_0x4b62fa[_0xca3f5d(0x14e)]&&_0x4deea3[_0xca3f5d(0x13f)]()&&(_0x4b62fa['text']=_0x4deea3,_0x11a660=_0x4deea3);},'setJobId':_0x2102ce=>{const _0x5c1c19=_0x4f080d;_0x4841cb[_0x5c1c19(0x152)]=_0x2102ce,_0x3a96ae();},'setExtra':_0x2f09de=>{const _0x5b5d65=_0x4f080d;_0x4841cb[_0x5b5d65(0x153)]=_0x2f09de,_0x3a96ae();}};_0x3a96ae();try{const _0x2c8ca9=await _0x5a4037(_0x58429e),_0x1c5c8b=_0x4b4fe4()-_0x46848f;return{'data':_0x2c8ca9,'elapsedMs':_0x1c5c8b};}finally{clearInterval(_0x48f4ad),_0x4b62fa['stop']();}}export function formatElapsed(_0x56d3b5){const _0xd6bea3=a211_0x2737,_0x21d90c=Math[_0xd6bea3(0x154)](_0x56d3b5/0x3e8);if(_0x21d90c<0x3c)return(_0x56d3b5/0x3e8)['toFixed'](0x1)+'s';const _0x107c3a=Math['floor'](_0x21d90c/0x3c),_0x1d215c=_0x21d90c%0x3c;if(_0x107c3a<0x3c)return _0x107c3a+'m\x20'+_0x1d215c+'s';const _0xd9535c=Math[_0xd6bea3(0x154)](_0x107c3a/0x3c),_0x5f50b8=_0x107c3a%0x3c;return _0xd9535c+'h\x20'+_0x5f50b8+'m';}
@@ -1 +1 @@
1
- (function(_0x5ee277,_0x2e17f2){const _0x3fb064=a212_0xb310,_0x520dc8=_0x5ee277();while(!![]){try{const _0x4f19a2=parseInt(_0x3fb064(0xb1))/0x1*(parseInt(_0x3fb064(0xb0))/0x2)+parseInt(_0x3fb064(0xaf))/0x3+parseInt(_0x3fb064(0xae))/0x4*(parseInt(_0x3fb064(0x9e))/0x5)+-parseInt(_0x3fb064(0xab))/0x6+-parseInt(_0x3fb064(0xa8))/0x7*(parseInt(_0x3fb064(0x9d))/0x8)+parseInt(_0x3fb064(0xa1))/0x9+-parseInt(_0x3fb064(0xa5))/0xa;if(_0x4f19a2===_0x2e17f2)break;else _0x520dc8['push'](_0x520dc8['shift']());}catch(_0x1ba193){_0x520dc8['push'](_0x520dc8['shift']());}}}(a212_0xcc91,0x759c5));function a212_0xcc91(){const _0x5c5bd7=['trim','[LLM\x20API\x20SSE]\x20','323598CKCOAQ','split','body','8kunCrB','627189ltAlhF','2xInrip','266206UDAMoh','indexOf','releaseLock','parse','slice','338432qrtYAl','907190kynDSS','event','Response\x20body\x20is\x20null','2801754MmSCgH','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','debug','data','3176570itzaaH','decode','startsWith','49RhtdOV'];a212_0xcc91=function(){return _0x5c5bd7;};return a212_0xcc91();}export async function*parseSSEStream(_0x308484,_0x4b55f7){const _0x581cfb=a212_0xb310;if(!_0x308484[_0x581cfb(0xad)])throw new Error(_0x581cfb(0xa0));const _0x161353=_0x308484[_0x581cfb(0xad)]['getReader'](),_0x472215=new TextDecoder();let _0x3fb929='',_0x340ff5={};try{while(!![]){const {done:_0x531973,value:_0x2fd8a2}=await _0x161353['read']();if(_0x531973){if(_0x340ff5['data']){_0x4b55f7?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x340ff5[_0x581cfb(0xa4)]);const _0x5ecdb5=parseSSEData(_0x340ff5[_0x581cfb(0xa4)]);yield _0x5ecdb5;}break;}_0x3fb929+=_0x472215[_0x581cfb(0xa6)](_0x2fd8a2,{'stream':!![]});const _0x3fe0e0=_0x3fb929[_0x581cfb(0xac)]('\x0a');_0x3fb929=_0x3fe0e0['pop']()||'';for(const _0x20cbeb of _0x3fe0e0){if(_0x20cbeb[_0x581cfb(0xa9)]()===''){if(_0x340ff5[_0x581cfb(0xa4)]){_0x4b55f7?.[_0x581cfb(0xa3)](_0x581cfb(0xaa)+_0x340ff5['data']);const _0xc19aa9=parseSSEData(_0x340ff5[_0x581cfb(0xa4)]);yield _0xc19aa9,_0x340ff5={};}continue;}if(_0x20cbeb['startsWith'](':'))continue;const _0x471313=_0x20cbeb[_0x581cfb(0xb2)](':');if(_0x471313===-0x1)continue;const _0x597c40=_0x20cbeb[_0x581cfb(0x9c)](0x0,_0x471313);let _0x41b549=_0x20cbeb[_0x581cfb(0x9c)](_0x471313+0x1);_0x41b549[_0x581cfb(0xa7)]('\x20')&&(_0x41b549=_0x41b549[_0x581cfb(0x9c)](0x1));switch(_0x597c40){case _0x581cfb(0x9f):_0x340ff5[_0x581cfb(0x9f)]=_0x41b549;break;case'data':_0x340ff5[_0x581cfb(0xa4)]=_0x340ff5[_0x581cfb(0xa4)]?_0x340ff5['data']+'\x0a'+_0x41b549:_0x41b549;break;case'id':_0x340ff5['id']=_0x41b549;break;}}}}finally{_0x161353[_0x581cfb(0x9a)]();}}function a212_0xb310(_0x2738d3,_0x1ad6f5){_0x2738d3=_0x2738d3-0x9a;const _0xcc9191=a212_0xcc91();let _0xb310dd=_0xcc9191[_0x2738d3];return _0xb310dd;}function parseSSEData(_0x536621){const _0x3a9d9f=a212_0xb310;try{return JSON[_0x3a9d9f(0x9b)](_0x536621);}catch(_0xd4b60){throw new Error(_0x3a9d9f(0xa2)+_0x536621,{'cause':_0xd4b60});}}
1
+ (function(_0x3e776c,_0x2d706a){const _0x430741=a212_0xd4fc,_0x4e44fe=_0x3e776c();while(!![]){try{const _0x355a37=-parseInt(_0x430741(0xec))/0x1*(-parseInt(_0x430741(0xf4))/0x2)+parseInt(_0x430741(0xf6))/0x3+-parseInt(_0x430741(0xf7))/0x4+parseInt(_0x430741(0xf0))/0x5+-parseInt(_0x430741(0xfd))/0x6+parseInt(_0x430741(0xf2))/0x7*(parseInt(_0x430741(0xea))/0x8)+parseInt(_0x430741(0xe9))/0x9*(-parseInt(_0x430741(0xe8))/0xa);if(_0x355a37===_0x2d706a)break;else _0x4e44fe['push'](_0x4e44fe['shift']());}catch(_0x2dc105){_0x4e44fe['push'](_0x4e44fe['shift']());}}}(a212_0xac7c,0x7e8a5));function a212_0xd4fc(_0x18d579,_0x3ee8a8){_0x18d579=_0x18d579-0xe6;const _0xac7c27=a212_0xac7c();let _0xd4fc3c=_0xac7c27[_0x18d579];return _0xd4fc3c;}export async function*parseSSEStream(_0x434445,_0x1d45bb){const _0x29bdcd=a212_0xd4fc;if(!_0x434445['body'])throw new Error(_0x29bdcd(0xfb));const _0x27fa89=_0x434445[_0x29bdcd(0xe6)][_0x29bdcd(0xfc)](),_0x2c02c3=new TextDecoder();let _0x1fc518='',_0x422dce={};try{while(!![]){const {done:_0x38e50e,value:_0x49863e}=await _0x27fa89['read']();if(_0x38e50e){if(_0x422dce[_0x29bdcd(0xf5)]){_0x1d45bb?.['debug'](_0x29bdcd(0xef)+_0x422dce[_0x29bdcd(0xf5)]);const _0xfd1400=parseSSEData(_0x422dce[_0x29bdcd(0xf5)]);yield _0xfd1400;}break;}_0x1fc518+=_0x2c02c3['decode'](_0x49863e,{'stream':!![]});const _0x4e9900=_0x1fc518[_0x29bdcd(0xed)]('\x0a');_0x1fc518=_0x4e9900[_0x29bdcd(0xf1)]()||'';for(const _0x483402 of _0x4e9900){if(_0x483402[_0x29bdcd(0xf8)]()===''){if(_0x422dce[_0x29bdcd(0xf5)]){_0x1d45bb?.[_0x29bdcd(0xf3)](_0x29bdcd(0xef)+_0x422dce[_0x29bdcd(0xf5)]);const _0x432154=parseSSEData(_0x422dce[_0x29bdcd(0xf5)]);yield _0x432154,_0x422dce={};}continue;}if(_0x483402['startsWith'](':'))continue;const _0x50dabf=_0x483402[_0x29bdcd(0xfa)](':');if(_0x50dabf===-0x1)continue;const _0x362319=_0x483402[_0x29bdcd(0xe7)](0x0,_0x50dabf);let _0x187d30=_0x483402[_0x29bdcd(0xe7)](_0x50dabf+0x1);_0x187d30['startsWith']('\x20')&&(_0x187d30=_0x187d30[_0x29bdcd(0xe7)](0x1));switch(_0x362319){case'event':_0x422dce[_0x29bdcd(0xfe)]=_0x187d30;break;case _0x29bdcd(0xf5):_0x422dce['data']=_0x422dce[_0x29bdcd(0xf5)]?_0x422dce[_0x29bdcd(0xf5)]+'\x0a'+_0x187d30:_0x187d30;break;case'id':_0x422dce['id']=_0x187d30;break;}}}}finally{_0x27fa89[_0x29bdcd(0xee)]();}}function parseSSEData(_0x8b331c){const _0x24807b=a212_0xd4fc;try{return JSON[_0x24807b(0xf9)](_0x8b331c);}catch(_0x5c804f){throw new Error(_0x24807b(0xeb)+_0x8b331c,{'cause':_0x5c804f});}}function a212_0xac7c(){const _0x4b7681=['slice','3044790uEOFtF','72ZsdWTS','40YYNURv','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','868899QLXxKH','split','releaseLock','[LLM\x20API\x20SSE]\x20','4986110oRFQFM','pop','1301461HWplxp','debug','2TnUgGZ','data','2228856fHRhFp','814440YVrKDG','trim','parse','indexOf','Response\x20body\x20is\x20null','getReader','2285622nLzxHo','event','body'];a212_0xac7c=function(){return _0x4b7681;};return a212_0xac7c();}
@@ -1 +1 @@
1
- (function(_0x2d33b4,_0x3af1ad){const _0x5e2a47=a213_0x52b8,_0x3ada18=_0x2d33b4();while(!![]){try{const _0x22d620=parseInt(_0x5e2a47(0x1af))/0x1*(-parseInt(_0x5e2a47(0x1a8))/0x2)+-parseInt(_0x5e2a47(0x1ae))/0x3*(parseInt(_0x5e2a47(0x1be))/0x4)+parseInt(_0x5e2a47(0x1bd))/0x5*(parseInt(_0x5e2a47(0x1a9))/0x6)+-parseInt(_0x5e2a47(0x1b5))/0x7+-parseInt(_0x5e2a47(0x1b2))/0x8*(parseInt(_0x5e2a47(0x1bb))/0x9)+parseInt(_0x5e2a47(0x1b7))/0xa+parseInt(_0x5e2a47(0x1b9))/0xb;if(_0x22d620===_0x3af1ad)break;else _0x3ada18['push'](_0x3ada18['shift']());}catch(_0x4651ee){_0x3ada18['push'](_0x3ada18['shift']());}}}(a213_0xd2e3,0x98174));import a213_0x25668a from'string-width';export function stringWidth(_0x36c8de){return a213_0x25668a(_0x36c8de);}export function padEnd(_0x3d7a86,_0x51b0c5){const _0x2d24c2=stringWidth(_0x3d7a86);if(_0x2d24c2>=_0x51b0c5)return _0x3d7a86;return _0x3d7a86+'\x20'['repeat'](_0x51b0c5-_0x2d24c2);}export function padStart(_0x1cf9e8,_0xf8c04){const _0x1cec81=a213_0x52b8,_0xe1a520=stringWidth(_0x1cf9e8);if(_0xe1a520>=_0xf8c04)return _0x1cf9e8;return'\x20'[_0x1cec81(0x1b8)](_0xf8c04-_0xe1a520)+_0x1cf9e8;}export function centerAlign(_0x5e6bce,_0x184773){const _0x3920dd=a213_0x52b8,_0x1c23a9=stringWidth(_0x5e6bce);if(_0x1c23a9>_0x184773){if(_0x184773<=0x1)return'…'[_0x3920dd(0x1b4)](0x0,_0x184773);let _0x26eb4d=_0x5e6bce;while(stringWidth(_0x26eb4d+'…')>_0x184773){_0x26eb4d=_0x26eb4d[_0x3920dd(0x1b1)](0x0,-0x1);}return _0x26eb4d+'…';}if(_0x1c23a9===_0x184773)return _0x5e6bce;const _0x39cc49=_0x184773-_0x1c23a9,_0x5c070b=Math[_0x3920dd(0x1ab)](_0x39cc49/0x2),_0x4c0e28=_0x39cc49-_0x5c070b;return'\x20'[_0x3920dd(0x1b8)](_0x5c070b)+_0x5e6bce+'\x20'['repeat'](_0x4c0e28);}function a213_0x52b8(_0x118b69,_0x30f0b2){_0x118b69=_0x118b69-0x1a8;const _0xd2e3b3=a213_0xd2e3();let _0x52b80f=_0xd2e3b3[_0x118b69];return _0x52b80f;}export function escapeStringLiteral(_0x385382){const _0x3fc900=a213_0x52b8;if(!_0x385382||_0x385382[_0x3fc900(0x1ad)]()['length']===0x0)throw new Error(_0x3fc900(0x1ac));const _0x1cdbe0=_0x385382[_0x3fc900(0x1ba)](/'/g,'\x27\x27');return'\x27'+_0x1cdbe0+'\x27';}export function globToLike(_0x1bb08e){const _0x1e1e92=a213_0x52b8;let _0x354034=_0x1bb08e[_0x1e1e92(0x1ba)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x354034=_0x354034[_0x1e1e92(0x1ba)](/\*/g,'%')[_0x1e1e92(0x1ba)](/\?/g,'_'),_0x354034;}export function buildLikePattern(_0x418280){const _0x755d88=a213_0x52b8;if(!_0x418280||_0x418280[_0x755d88(0x1ad)]()[_0x755d88(0x1b0)]===0x0)throw new Error(_0x755d88(0x1aa));const _0x4ac939=globToLike(_0x418280),_0x31e49b=_0x4ac939['replace'](/'/g,'\x27\x27');return'\x27'+_0x31e49b+'\x27';}export function matchGlobPattern(_0x2f615c,_0x208558){const _0x18cc98=a213_0x52b8,_0xbad4f9=_0x208558[_0x18cc98(0x1ba)](/[.+^${}()|[\]\\]/g,_0x18cc98(0x1bf))[_0x18cc98(0x1ba)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x3b083a=new RegExp('^'+_0xbad4f9+'$');return _0x3b083a['test'](_0x2f615c);}export function getSanitizedUsername(){const _0x379d12=a213_0x52b8,_0x5154be=process.env.USER||process.env.USERNAME||_0x379d12(0x1b6);return _0x5154be['replace'](/[^a-zA-Z0-9]/g,'')[_0x379d12(0x1b3)]();}export function generateRandomHex(){const _0x758dc8=a213_0x52b8,_0x1b5adf=Math[_0x758dc8(0x1ab)](Math[_0x758dc8(0x1bc)]()*0xfffff);return _0x1b5adf['toString'](0x10)['padStart'](0x5,'0');}function a213_0xd2e3(){const _0x3257e4=['2389030tERPRC','repeat','37588606DKzrJC','replace','105201kNxgZO','random','7135McKaRY','892xxWtQM','\x5c$&','2vNzfIi','1446KZfBhD','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','floor','Cannot\x20escape\x20empty\x20string\x20literal','trim','13569RDkmoV','941384xhWxIJ','length','slice','208wiPhiK','toLowerCase','substring','7861455YTjUpN','unknown'];a213_0xd2e3=function(){return _0x3257e4;};return a213_0xd2e3();}export function sanitizeFileName(_0x1a4c01){const _0x4aa923=a213_0x52b8;return _0x1a4c01[_0x4aa923(0x1b3)]()[_0x4aa923(0x1ba)](/[/\\:*?"<>|]/g,'-')[_0x4aa923(0x1ba)](/\s+/g,'-')[_0x4aa923(0x1ba)](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x5ebc0f,_0x391a92){const _0x5a35c2=a213_0x3086,_0x3abccf=_0x5ebc0f();while(!![]){try{const _0xa69362=-parseInt(_0x5a35c2(0x14c))/0x1+-parseInt(_0x5a35c2(0x157))/0x2*(-parseInt(_0x5a35c2(0x154))/0x3)+-parseInt(_0x5a35c2(0x159))/0x4+parseInt(_0x5a35c2(0x14d))/0x5*(parseInt(_0x5a35c2(0x158))/0x6)+parseInt(_0x5a35c2(0x145))/0x7*(-parseInt(_0x5a35c2(0x150))/0x8)+parseInt(_0x5a35c2(0x152))/0x9+parseInt(_0x5a35c2(0x14f))/0xa*(-parseInt(_0x5a35c2(0x146))/0xb);if(_0xa69362===_0x391a92)break;else _0x3abccf['push'](_0x3abccf['shift']());}catch(_0x5576c4){_0x3abccf['push'](_0x3abccf['shift']());}}}(a213_0x5a97,0x54c2b));import a213_0x56d204 from'string-width';export function stringWidth(_0x1073e0){return a213_0x56d204(_0x1073e0);}export function padEnd(_0x441cac,_0x1ecfea){const _0x82b68d=a213_0x3086,_0x25ed84=stringWidth(_0x441cac);if(_0x25ed84>=_0x1ecfea)return _0x441cac;return _0x441cac+'\x20'[_0x82b68d(0x14b)](_0x1ecfea-_0x25ed84);}export function padStart(_0x512e52,_0xacc28){const _0x2c842b=stringWidth(_0x512e52);if(_0x2c842b>=_0xacc28)return _0x512e52;return'\x20'['repeat'](_0xacc28-_0x2c842b)+_0x512e52;}function a213_0x5a97(){const _0x463d70=['12VoWNEd','1853184wGFfdR','slice','toString','toLowerCase','73577GjtuXI','11SxOISh','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','floor','replace','repeat','54469ZMPKmZ','1451055RVsSAp','length','5274860qcHuOA','352FQwEji','Cannot\x20escape\x20empty\x20string\x20literal','5776965IQMXGC','trim','1897821ROFRmT','unknown','padStart','2xFgiRS'];a213_0x5a97=function(){return _0x463d70;};return a213_0x5a97();}export function centerAlign(_0x355a48,_0x2af955){const _0x39fd1a=a213_0x3086,_0x2dfe1c=stringWidth(_0x355a48);if(_0x2dfe1c>_0x2af955){if(_0x2af955<=0x1)return'…'['substring'](0x0,_0x2af955);let _0x408a9c=_0x355a48;while(stringWidth(_0x408a9c+'…')>_0x2af955){_0x408a9c=_0x408a9c[_0x39fd1a(0x15a)](0x0,-0x1);}return _0x408a9c+'…';}if(_0x2dfe1c===_0x2af955)return _0x355a48;const _0x5e0b97=_0x2af955-_0x2dfe1c,_0x424360=Math[_0x39fd1a(0x149)](_0x5e0b97/0x2),_0x3f2188=_0x5e0b97-_0x424360;return'\x20'[_0x39fd1a(0x14b)](_0x424360)+_0x355a48+'\x20'['repeat'](_0x3f2188);}function a213_0x3086(_0xee9fae,_0x21ce9e){_0xee9fae=_0xee9fae-0x144;const _0x5a97b1=a213_0x5a97();let _0x3086c5=_0x5a97b1[_0xee9fae];return _0x3086c5;}export function escapeStringLiteral(_0x3ff4f1){const _0x34a536=a213_0x3086;if(!_0x3ff4f1||_0x3ff4f1[_0x34a536(0x153)]()[_0x34a536(0x14e)]===0x0)throw new Error(_0x34a536(0x151));const _0x17e031=_0x3ff4f1['replace'](/'/g,'\x27\x27');return'\x27'+_0x17e031+'\x27';}export function globToLike(_0xb702da){const _0x331faa=a213_0x3086;let _0x357649=_0xb702da[_0x331faa(0x14a)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x331faa(0x14a)](/_/g,'\x5c_');return _0x357649=_0x357649['replace'](/\*/g,'%')[_0x331faa(0x14a)](/\?/g,'_'),_0x357649;}export function buildLikePattern(_0x3fab9b){const _0x5e9645=a213_0x3086;if(!_0x3fab9b||_0x3fab9b[_0x5e9645(0x153)]()[_0x5e9645(0x14e)]===0x0)throw new Error(_0x5e9645(0x147));const _0x17b4df=globToLike(_0x3fab9b),_0xc1383b=_0x17b4df[_0x5e9645(0x14a)](/'/g,'\x27\x27');return'\x27'+_0xc1383b+'\x27';}export function matchGlobPattern(_0x4c9423,_0x52d475){const _0x3f2730=a213_0x3086,_0x56d582=_0x52d475[_0x3f2730(0x14a)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x3f2730(0x14a)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x3b2da3=new RegExp('^'+_0x56d582+'$');return _0x3b2da3['test'](_0x4c9423);}export function getSanitizedUsername(){const _0x897528=a213_0x3086,_0x47abc6=process.env.USER||process.env.USERNAME||_0x897528(0x155);return _0x47abc6[_0x897528(0x14a)](/[^a-zA-Z0-9]/g,'')[_0x897528(0x144)]();}export function generateRandomHex(){const _0x46a81f=a213_0x3086,_0x4c75fe=Math[_0x46a81f(0x149)](Math[_0x46a81f(0x148)]()*0xfffff);return _0x4c75fe[_0x46a81f(0x15b)](0x10)[_0x46a81f(0x156)](0x5,'0');}export function sanitizeFileName(_0x5dd6e3){const _0x457c7d=a213_0x3086;return _0x5dd6e3[_0x457c7d(0x144)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x457c7d(0x14a)](/\s+/g,'-')[_0x457c7d(0x14a)](/-+/g,'-')[_0x457c7d(0x14a)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a214_0x3e3a(_0x1591b2,_0x529740){_0x1591b2=_0x1591b2-0x1d5;const _0x18dfd0=a214_0x18df();let _0x3e3a16=_0x18dfd0[_0x1591b2];return _0x3e3a16;}(function(_0x574399,_0x57831c){const _0x3da8eb=a214_0x3e3a,_0x490b51=_0x574399();while(!![]){try{const _0x39f1ad=parseInt(_0x3da8eb(0x1ea))/0x1+parseInt(_0x3da8eb(0x1df))/0x2*(-parseInt(_0x3da8eb(0x1e5))/0x3)+parseInt(_0x3da8eb(0x1e8))/0x4*(parseInt(_0x3da8eb(0x1ec))/0x5)+parseInt(_0x3da8eb(0x1e2))/0x6*(-parseInt(_0x3da8eb(0x1e3))/0x7)+parseInt(_0x3da8eb(0x1e7))/0x8+parseInt(_0x3da8eb(0x1d7))/0x9*(parseInt(_0x3da8eb(0x1e6))/0xa)+-parseInt(_0x3da8eb(0x1de))/0xb;if(_0x39f1ad===_0x57831c)break;else _0x490b51['push'](_0x490b51['shift']());}catch(_0x563f1b){_0x490b51['push'](_0x490b51['shift']());}}}(a214_0x18df,0xd8eff));function hasWildcard(_0x40eee2){const _0x2c241a=a214_0x3e3a;return _0x40eee2[_0x2c241a(0x1db)]('*')||_0x40eee2[_0x2c241a(0x1db)]('?');}function a214_0x18df(){const _0x301dfe=['9177864AelUai','124836pEkVsF','table','237843ICcRWW','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','40KXaFjo','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','569367mUiTPo','database','catalog','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','includes','trim','push','20109122oQuCDF','8hWbfKF','split','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','24UyKYwX','790132aqGoWM','length','131001AjPvbq','270QjCcJw'];a214_0x18df=function(){return _0x301dfe;};return a214_0x18df();}export function parseTableReference(_0x2212bd){const _0x34b2c8=a214_0x3e3a;if(!_0x2212bd||_0x2212bd['trim']()[_0x34b2c8(0x1e4)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x136b27=_0x2212bd[_0x34b2c8(0x1dc)](),_0x1b6d34={'original':_0x136b27},_0x3c602f=_0x136b27[_0x34b2c8(0x1e0)]('.');if(_0x3c602f['length']===0x1){const _0x2c9702=_0x3c602f[0x0];if(!_0x2c9702)throw new Error(_0x34b2c8(0x1d6));_0x1b6d34[_0x34b2c8(0x1e9)]=_0x2c9702;}else{if(_0x3c602f['length']===0x2){const [_0x48cb77,_0x381c12]=_0x3c602f;if(!_0x48cb77)throw new Error(_0x34b2c8(0x1e1));if(!_0x381c12)throw new Error(_0x34b2c8(0x1d5));_0x1b6d34['database']=_0x48cb77,_0x1b6d34[_0x34b2c8(0x1e9)]=_0x381c12;}else{if(_0x3c602f['length']===0x3){const [_0xed846e,_0x4645c3,_0x26cb60]=_0x3c602f;if(!_0xed846e||!_0x4645c3||!_0x26cb60)throw new Error(_0x34b2c8(0x1da));_0x1b6d34[_0x34b2c8(0x1d9)]=_0xed846e,_0x1b6d34['database']=_0x4645c3,_0x1b6d34[_0x34b2c8(0x1e9)]=_0x26cb60;}else throw new Error(_0x34b2c8(0x1eb));}}return _0x1b6d34;}export function formatTableReference(_0x2f9612){const _0xf62a54=a214_0x3e3a,_0x4b48c2=[];return _0x2f9612[_0xf62a54(0x1d9)]&&_0x4b48c2[_0xf62a54(0x1dd)](_0x2f9612[_0xf62a54(0x1d9)]),_0x2f9612[_0xf62a54(0x1d8)]&&_0x4b48c2[_0xf62a54(0x1dd)](_0x2f9612[_0xf62a54(0x1d8)]),_0x2f9612['table']&&_0x4b48c2[_0xf62a54(0x1dd)](_0x2f9612['table']),_0x4b48c2['join']('.');}export function validateTableListReference(_0xa3e8d4){return undefined;}export function validateTableDescribeReference(_0x315279){const _0x33190f=a214_0x3e3a;if(!_0x315279[_0x33190f(0x1e9)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x315279[_0x33190f(0x1d8)]&&hasWildcard(_0x315279[_0x33190f(0x1d8)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x315279['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
1
+ (function(_0x4f39a6,_0x4f1279){const _0x10aad3=a214_0x3ca2,_0x3bcda8=_0x4f39a6();while(!![]){try{const _0x4ffdc2=parseInt(_0x10aad3(0x1a8))/0x1*(-parseInt(_0x10aad3(0x197))/0x2)+parseInt(_0x10aad3(0x1aa))/0x3*(parseInt(_0x10aad3(0x1a1))/0x4)+parseInt(_0x10aad3(0x1a5))/0x5+parseInt(_0x10aad3(0x19f))/0x6+parseInt(_0x10aad3(0x1a0))/0x7+parseInt(_0x10aad3(0x1a2))/0x8+-parseInt(_0x10aad3(0x1a9))/0x9*(parseInt(_0x10aad3(0x1a4))/0xa);if(_0x4ffdc2===_0x4f1279)break;else _0x3bcda8['push'](_0x3bcda8['shift']());}catch(_0x55932c){_0x3bcda8['push'](_0x3bcda8['shift']());}}}(a214_0x500e,0x9a292));function hasWildcard(_0x475926){const _0x4bafee=a214_0x3ca2;return _0x475926[_0x4bafee(0x1ab)]('*')||_0x475926['includes']('?');}export function parseTableReference(_0x6f535){const _0x5f1293=a214_0x3ca2;if(!_0x6f535||_0x6f535[_0x5f1293(0x19b)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x5cc18b=_0x6f535['trim'](),_0x8adffb={'original':_0x5cc18b},_0x47467f=_0x5cc18b['split']('.');if(_0x47467f[_0x5f1293(0x19d)]===0x1){const _0x4b37e6=_0x47467f[0x0];if(!_0x4b37e6)throw new Error(_0x5f1293(0x1ad));_0x8adffb[_0x5f1293(0x199)]=_0x4b37e6;}else{if(_0x47467f[_0x5f1293(0x19d)]===0x2){const [_0x4789aa,_0x5864ce]=_0x47467f;if(!_0x4789aa)throw new Error(_0x5f1293(0x1af));if(!_0x5864ce)throw new Error(_0x5f1293(0x1a6));_0x8adffb[_0x5f1293(0x1a3)]=_0x4789aa,_0x8adffb[_0x5f1293(0x199)]=_0x5864ce;}else{if(_0x47467f[_0x5f1293(0x19d)]===0x3){const [_0x1ff976,_0x36e01a,_0x245e82]=_0x47467f;if(!_0x1ff976||!_0x36e01a||!_0x245e82)throw new Error(_0x5f1293(0x1b0));_0x8adffb[_0x5f1293(0x19e)]=_0x1ff976,_0x8adffb[_0x5f1293(0x1a3)]=_0x36e01a,_0x8adffb[_0x5f1293(0x199)]=_0x245e82;}else throw new Error(_0x5f1293(0x1ac));}}return _0x8adffb;}function a214_0x3ca2(_0x3efa79,_0x269e5e){_0x3efa79=_0x3efa79-0x197;const _0x500e43=a214_0x500e();let _0x3ca204=_0x500e43[_0x3efa79];return _0x3ca204;}export function formatTableReference(_0xe6e2c5){const _0x5a9b3b=a214_0x3ca2,_0x592902=[];return _0xe6e2c5[_0x5a9b3b(0x19e)]&&_0x592902[_0x5a9b3b(0x1ae)](_0xe6e2c5['catalog']),_0xe6e2c5['database']&&_0x592902[_0x5a9b3b(0x1ae)](_0xe6e2c5[_0x5a9b3b(0x1a3)]),_0xe6e2c5[_0x5a9b3b(0x199)]&&_0x592902[_0x5a9b3b(0x1ae)](_0xe6e2c5[_0x5a9b3b(0x199)]),_0x592902[_0x5a9b3b(0x19c)]('.');}export function validateTableListReference(_0x3071ff){return undefined;}export function validateTableDescribeReference(_0x449101){const _0x3ea301=a214_0x3ca2;if(!_0x449101['table'])return _0x3ea301(0x1a7);if(_0x449101[_0x3ea301(0x1a3)]&&hasWildcard(_0x449101[_0x3ea301(0x1a3)]))return _0x3ea301(0x198);if(hasWildcard(_0x449101[_0x3ea301(0x199)]))return _0x3ea301(0x19a);return undefined;}function a214_0x500e(){const _0x257b00=['push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1944678SlGfjq','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','trim','join','length','catalog','3694644mjchhv','8718633QFlpTH','468kJFMIb','8006048npQjPo','database','23962850NvYSfP','3720390tnBhwm','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','1puFHvp','9UYjsXy','10101RuerFW','includes','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a214_0x500e=function(){return _0x257b00;};return a214_0x500e();}
@@ -1 +1 @@
1
- const a215_0x4f868e=a215_0x1daf;function a215_0x5b13(){const _0x14bac9=['12162TecfyG','fileHandler','fileOnly','Session\x20ended','close','754524mnDNdV','3LCMDQp','5sQqEjq','shutdown','176058nPmqwy','logDir','error','INFO','debug','12456950fmSffi','3175860sCUcPC','info','12dSfWok','739172nvkNXT','push','logFileName','warn','logs','consoleHandler','isInitialized','init','32sHAiuI','logLevel','1232014GBgXgm','tdx.log','getLogPath','trace','logger'];a215_0x5b13=function(){return _0x14bac9;};return a215_0x5b13();}(function(_0x36ace2,_0x4264ea){const _0x2c856d=a215_0x1daf,_0x5b38c4=_0x36ace2();while(!![]){try{const _0x1d8aeb=-parseInt(_0x2c856d(0xa6))/0x1*(parseInt(_0x2c856d(0xa0))/0x2)+-parseInt(_0x2c856d(0xa9))/0x3+-parseInt(_0x2c856d(0xb2))/0x4*(-parseInt(_0x2c856d(0xa7))/0x5)+parseInt(_0x2c856d(0xb1))/0x6*(-parseInt(_0x2c856d(0x9b))/0x7)+-parseInt(_0x2c856d(0x99))/0x8*(parseInt(_0x2c856d(0xa5))/0x9)+-parseInt(_0x2c856d(0xaf))/0xa+parseInt(_0x2c856d(0xae))/0xb;if(_0x1d8aeb===_0x4264ea)break;else _0x5b38c4['push'](_0x5b38c4['shift']());}catch(_0x338294){_0x5b38c4['push'](_0x5b38c4['shift']());}}}(a215_0x5b13,0x39774));import{join}from'path';function a215_0x1daf(_0x4634f4,_0x1238eb){_0x4634f4=_0x4634f4-0x97;const _0x5b139a=a215_0x5b13();let _0x1daf97=_0x5b139a[_0x4634f4];return _0x1daf97;}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x4f868e(0x9a)];[a215_0x4f868e(0xa2)];[a215_0x4f868e(0xaa)];['logFileName'];[a215_0x4f868e(0x9f)];[a215_0x4f868e(0xa1)]=null;[a215_0x4f868e(0xb7)]=null;constructor(_0xc046ae=LogLevel[a215_0x4f868e(0xac)],_0x3e13f4=![],_0x3cee41,_0x13f451=a215_0x4f868e(0x9c)){const _0x2f7fe1=a215_0x4f868e;this[_0x2f7fe1(0x9a)]=_0xc046ae,this[_0x2f7fe1(0xa2)]=_0x3e13f4,this['logDir']=_0x3cee41||join(getGlobalCacheDir(),_0x2f7fe1(0xb6)),this[_0x2f7fe1(0xb4)]=_0x13f451,this[_0x2f7fe1(0x9f)]=Logger['of']('tdx');}async[a215_0x4f868e(0x98)](){const _0x10d127=a215_0x4f868e,_0x29dc1c=join(this[_0x10d127(0xaa)],this[_0x10d127(0xb4)]);if(Logger[_0x10d127(0x97)]()){!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x10d127(0xac)],'colors':!![]}),Logger['addHandler'](this['consoleHandler']));return;}this[_0x10d127(0xa1)]=new FileHandler({'filePath':_0x29dc1c});const _0x141f17=[this[_0x10d127(0xa1)]];!this[_0x10d127(0xa2)]&&(this[_0x10d127(0xb7)]=new ConsoleHandler({'minLevel':LogLevel[_0x10d127(0xac)],'colors':!![]}),_0x141f17[_0x10d127(0xb3)](this[_0x10d127(0xb7)])),await Logger[_0x10d127(0x98)]({'defaultLevel':this['logLevel'],'handlers':_0x141f17,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x4f868e(0xad)](..._0x2170de){const _0x59e062=a215_0x4f868e;this[_0x59e062(0x9f)][_0x59e062(0xad)](..._0x2170de);}[a215_0x4f868e(0x9e)](..._0x581439){const _0x12f617=a215_0x4f868e;this['logger'][_0x12f617(0x9e)](..._0x581439);}[a215_0x4f868e(0xb0)](..._0x2dbd39){const _0x1e9598=a215_0x4f868e;this[_0x1e9598(0x9f)][_0x1e9598(0xb0)](..._0x2dbd39);}[a215_0x4f868e(0xb5)](..._0x1b35e5){const _0x3d337b=a215_0x4f868e;this[_0x3d337b(0x9f)][_0x3d337b(0xb5)](..._0x1b35e5);}['error'](..._0x14666a){const _0x2324a6=a215_0x4f868e;this[_0x2324a6(0x9f)][_0x2324a6(0xab)](..._0x14666a);}async[a215_0x4f868e(0xa4)](){const _0x14af45=a215_0x4f868e;this[_0x14af45(0x9f)][_0x14af45(0xb0)](_0x14af45(0xa3)),await Logger[_0x14af45(0xa8)]();}[a215_0x4f868e(0x9d)](){const _0x124935=a215_0x4f868e;return join(this[_0x124935(0xaa)],this[_0x124935(0xb4)]);}}
1
+ const a215_0x179eaf=a215_0x23a4;(function(_0x2b621d,_0x2664c8){const _0x2ff41d=a215_0x23a4,_0x797b80=_0x2b621d();while(!![]){try{const _0x1f8df5=parseInt(_0x2ff41d(0x200))/0x1*(-parseInt(_0x2ff41d(0x207))/0x2)+parseInt(_0x2ff41d(0x203))/0x3+-parseInt(_0x2ff41d(0x1f1))/0x4*(-parseInt(_0x2ff41d(0x201))/0x5)+-parseInt(_0x2ff41d(0x202))/0x6*(parseInt(_0x2ff41d(0x20a))/0x7)+-parseInt(_0x2ff41d(0x1ed))/0x8*(-parseInt(_0x2ff41d(0x1f3))/0x9)+parseInt(_0x2ff41d(0x1f4))/0xa+-parseInt(_0x2ff41d(0x1fc))/0xb;if(_0x1f8df5===_0x2664c8)break;else _0x797b80['push'](_0x797b80['shift']());}catch(_0x51b662){_0x797b80['push'](_0x797b80['shift']());}}}(a215_0x19a2,0x1c81f));function a215_0x19a2(){const _0x55f664=['warn','logger','shutdown','1916BdIuXJ','Session\x20ended','62622oEizmg','1971960WJUJWg','fileOnly','info','INFO','trace','logDir','error','push','3895067KaTKLK','init','fileHandler','addHandler','169fpDfiz','2085poghWV','42RgEBXd','361311uGxfPz','getLogPath','debug','logLevel','1702XNqJFd','consoleHandler','logFileName','34895MswBgb','tdx','isInitialized','152ojqSnu'];a215_0x19a2=function(){return _0x55f664;};return a215_0x19a2();}function a215_0x23a4(_0x186a10,_0x2c01eb){_0x186a10=_0x186a10-0x1eb;const _0x19a215=a215_0x19a2();let _0x23a443=_0x19a215[_0x186a10];return _0x23a443;}import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x179eaf(0x206)];[a215_0x179eaf(0x1f5)];[a215_0x179eaf(0x1f9)];[a215_0x179eaf(0x209)];[a215_0x179eaf(0x1ef)];[a215_0x179eaf(0x1fe)]=null;['consoleHandler']=null;constructor(_0x43e1f0=LogLevel['INFO'],_0x3f999e=![],_0x58138c,_0x8c914='tdx.log'){const _0x2664d9=a215_0x179eaf;this[_0x2664d9(0x206)]=_0x43e1f0,this[_0x2664d9(0x1f5)]=_0x3f999e,this[_0x2664d9(0x1f9)]=_0x58138c||join(getGlobalCacheDir(),'logs'),this[_0x2664d9(0x209)]=_0x8c914,this[_0x2664d9(0x1ef)]=Logger['of'](_0x2664d9(0x1eb));}async[a215_0x179eaf(0x1fd)](){const _0x266979=a215_0x179eaf,_0x324b6a=join(this[_0x266979(0x1f9)],this[_0x266979(0x209)]);if(Logger[_0x266979(0x1ec)]()){!this[_0x266979(0x1f5)]&&(this[_0x266979(0x208)]=new ConsoleHandler({'minLevel':LogLevel[_0x266979(0x1f7)],'colors':!![]}),Logger[_0x266979(0x1ff)](this[_0x266979(0x208)]));return;}this['fileHandler']=new FileHandler({'filePath':_0x324b6a});const _0x326db6=[this[_0x266979(0x1fe)]];!this[_0x266979(0x1f5)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x266979(0x1f7)],'colors':!![]}),_0x326db6[_0x266979(0x1fb)](this['consoleHandler'])),await Logger['init']({'defaultLevel':this[_0x266979(0x206)],'handlers':_0x326db6,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x179eaf(0x205)](..._0x3ceee6){const _0x1658d8=a215_0x179eaf;this['logger'][_0x1658d8(0x205)](..._0x3ceee6);}[a215_0x179eaf(0x1f8)](..._0x5e47b9){const _0x18e8db=a215_0x179eaf;this[_0x18e8db(0x1ef)][_0x18e8db(0x1f8)](..._0x5e47b9);}[a215_0x179eaf(0x1f6)](..._0x1bf572){const _0x18d9ad=a215_0x179eaf;this[_0x18d9ad(0x1ef)]['info'](..._0x1bf572);}['warn'](..._0x561ae5){const _0x4dd5dc=a215_0x179eaf;this[_0x4dd5dc(0x1ef)][_0x4dd5dc(0x1ee)](..._0x561ae5);}[a215_0x179eaf(0x1fa)](..._0x1e62a5){const _0x539a91=a215_0x179eaf;this[_0x539a91(0x1ef)][_0x539a91(0x1fa)](..._0x1e62a5);}async['close'](){const _0x52000b=a215_0x179eaf;this[_0x52000b(0x1ef)][_0x52000b(0x1f6)](_0x52000b(0x1f2)),await Logger[_0x52000b(0x1f0)]();}[a215_0x179eaf(0x204)](){const _0x22c2b8=a215_0x179eaf;return join(this['logDir'],this[_0x22c2b8(0x209)]);}}
@@ -1 +1 @@
1
- const a216_0x1b6eeb=a216_0x537c;(function(_0x36ea8d,_0x2d0edc){const _0x12148f=a216_0x537c,_0x5d9f18=_0x36ea8d();while(!![]){try{const _0x339704=-parseInt(_0x12148f(0xdc))/0x1*(-parseInt(_0x12148f(0xf5))/0x2)+-parseInt(_0x12148f(0xe0))/0x3+parseInt(_0x12148f(0xd8))/0x4*(parseInt(_0x12148f(0xd2))/0x5)+-parseInt(_0x12148f(0xd3))/0x6+-parseInt(_0x12148f(0xef))/0x7+-parseInt(_0x12148f(0xd0))/0x8*(-parseInt(_0x12148f(0xdb))/0x9)+parseInt(_0x12148f(0xde))/0xa;if(_0x339704===_0x2d0edc)break;else _0x5d9f18['push'](_0x5d9f18['shift']());}catch(_0x1364fa){_0x5d9f18['push'](_0x5d9f18['shift']());}}}(a216_0x3fff,0x41415));import{get}from'https';import{gt,valid}from'semver';import a216_0x5c2e56 from'chalk';import{createGlobalCache}from'./global-cache.js';function a216_0x537c(_0x4b1d76,_0x13b9cd){_0x4b1d76=_0x4b1d76-0xc9;const _0x3fffce=a216_0x3fff();let _0x537c56=_0x3fffce[_0x4b1d76];return _0x537c56;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a216_0x1b6eeb(0xcf),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a216_0x1b6eeb(0xf2),a216_0x1b6eeb(0xcb)),nextVersionCache=createGlobalCache('last_version_check_next','utils/version-check-next');function getCacheForChannel(_0x296854){const _0x3be630=a216_0x1b6eeb;return _0x296854===_0x3be630(0xd6)?nextVersionCache:stableVersionCache;}function readCache(_0x5d8667){const _0x1af194=a216_0x1b6eeb;return getCacheForChannel(_0x5d8667)[_0x1af194(0xf3)]()??null;}function writeCache(_0x5dc363,_0x6d18d3){const _0x18b4be=a216_0x1b6eeb;try{getCacheForChannel(_0x6d18d3)[_0x18b4be(0xeb)]({'lastCheck':new Date()[_0x18b4be(0xd4)](),'latestVersion':_0x5dc363});}catch{}}function isCacheValid(_0x91dd6f){const _0x51c35f=a216_0x1b6eeb;if(!_0x91dd6f)return![];const _0x1819b4=new Date(_0x91dd6f[_0x51c35f(0xe4)])[_0x51c35f(0xce)](),_0x54a11f=Date[_0x51c35f(0xc9)]();return _0x54a11f-_0x1819b4<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x13a779=a216_0x1b6eeb(0xe5)){const _0x3e8b1c=a216_0x1b6eeb,_0x1d23c9=_0x13a779===_0x3e8b1c(0xd6)?_0x3e8b1c(0xd6):'latest',_0x388f60=NPM_REGISTRY_BASE+'/'+_0x1d23c9;return new Promise((_0x5e126e,_0x110edf)=>{const _0x10ff95=_0x3e8b1c,_0x594b6b=get(_0x388f60,{'timeout':TIMEOUT_MS},_0x464f13=>{const _0x998e6b=a216_0x537c;if(_0x464f13['statusCode']!==0xc8){clearTimeout(_0x5218ad),_0x110edf(new Error(_0x998e6b(0xd9)+_0x464f13['statusCode']));return;}let _0xf24ff='';_0x464f13['on'](_0x998e6b(0xcc),_0x286ccd=>{_0xf24ff+=_0x286ccd;}),_0x464f13['on'](_0x998e6b(0xf1),()=>{const _0x2b96f7=_0x998e6b;clearTimeout(_0x5218ad);try{const _0x34ec77=JSON[_0x2b96f7(0xea)](_0xf24ff);if(!valid(_0x34ec77['version'])){_0x110edf(new Error('Invalid\x20version\x20format'));return;}_0x5e126e(_0x34ec77[_0x2b96f7(0xe2)]);}catch(_0x123832){_0x110edf(_0x123832);}});})['on'](_0x10ff95(0xda),_0x35f68d=>{clearTimeout(_0x5218ad),_0x110edf(_0x35f68d);});_0x594b6b['on'](_0x10ff95(0xed),_0x45e6fa=>{const _0x542b56=_0x10ff95;_0x45e6fa[_0x542b56(0xf0)]();});const _0x5218ad=setTimeout(()=>{const _0x222e36=_0x10ff95;_0x594b6b['destroy'](),_0x110edf(new Error(_0x222e36(0xf4)));},TIMEOUT_MS);_0x5218ad[_0x10ff95(0xf0)]();});}function a216_0x3fff(){const _0x354d1c=['now','Run:','utils/version-check','data','channel','getTime','https://registry.npmjs.org/@treasuredata/tdx','653232YbLcaT','gray','93715dIXGxT','2853444iOKuCk','toISOString','green','next','stderr','76HkKjdG','HTTP\x20','error','18KMGRLs','155JpdXVU','updateAvailable','3788140yhJFYw','tdx\x20upgrade\x20--next','117837ReZBmN','cyan','version','yellow','lastCheck','stable','currentVersion','isTTY','\x0aUpdate\x20available:\x20','dim','parse','write','latestVersion','socket','Update\x20available:','3697722TQugMF','unref','end','last_version_check','read','Request\x20timeout','5318exgyZX'];a216_0x3fff=function(){return _0x354d1c;};return a216_0x3fff();}export async function checkForUpdate(_0x22d5b5,_0x4ed787=a216_0x1b6eeb(0xe5)){const _0x1393c8=a216_0x1b6eeb;try{const _0x3f59b5=readCache(_0x4ed787);if(isCacheValid(_0x3f59b5)){const _0x324bf3=gt(_0x3f59b5[_0x1393c8(0xec)],_0x22d5b5);return{'updateAvailable':_0x324bf3,'currentVersion':_0x22d5b5,'latestVersion':_0x3f59b5[_0x1393c8(0xec)],'channel':_0x4ed787};}const _0x1ed7be=await fetchLatestVersion(_0x4ed787);writeCache(_0x1ed7be,_0x4ed787);const _0x49d814=gt(_0x1ed7be,_0x22d5b5);return{'updateAvailable':_0x49d814,'currentVersion':_0x22d5b5,'latestVersion':_0x1ed7be,'channel':_0x4ed787};}catch{return null;}}export function displayUpdateNotification(_0x2c38eb){const _0x33996a=a216_0x1b6eeb;if(!_0x2c38eb[_0x33996a(0xdd)])return;const _0x4aa672=_0x2c38eb[_0x33996a(0xcd)]==='next'?_0x33996a(0xdf):'tdx\x20upgrade',_0x915589=process['stderr'][_0x33996a(0xe7)]&&!process.env.NO_COLOR,_0x2bba00=_0x915589?a216_0x5c2e56[_0x33996a(0xd1)]('→'):'→',_0x4c9f54=_0x915589?a216_0x5c2e56[_0x33996a(0xe9)](_0x2c38eb['currentVersion']):_0x2c38eb[_0x33996a(0xe6)],_0x106906=_0x915589?a216_0x5c2e56[_0x33996a(0xd5)](_0x2c38eb['latestVersion']):_0x2c38eb[_0x33996a(0xec)],_0x29ff09=_0x915589?a216_0x5c2e56[_0x33996a(0xe1)](_0x4aa672):_0x4aa672,_0x21476c=_0x915589?'\x0a'+a216_0x5c2e56[_0x33996a(0xe3)](_0x33996a(0xee))+'\x20'+_0x4c9f54+'\x20'+_0x2bba00+'\x20'+_0x106906+'\x0a'+a216_0x5c2e56['dim'](_0x33996a(0xca))+'\x20'+_0x29ff09+'\x0a':_0x33996a(0xe8)+_0x4c9f54+'\x20'+_0x2bba00+'\x20'+_0x106906+'\x0aRun:\x20'+_0x29ff09+'\x0a';process[_0x33996a(0xd7)][_0x33996a(0xeb)](_0x21476c);}
1
+ const a216_0xf87182=a216_0xd956;(function(_0x155b20,_0x528b2c){const _0x3c4dfc=a216_0xd956,_0x29e7df=_0x155b20();while(!![]){try{const _0x547be4=-parseInt(_0x3c4dfc(0x130))/0x1+parseInt(_0x3c4dfc(0x144))/0x2+-parseInt(_0x3c4dfc(0x13a))/0x3+-parseInt(_0x3c4dfc(0x12f))/0x4+parseInt(_0x3c4dfc(0x145))/0x5*(parseInt(_0x3c4dfc(0x137))/0x6)+-parseInt(_0x3c4dfc(0x13f))/0x7*(parseInt(_0x3c4dfc(0x12b))/0x8)+parseInt(_0x3c4dfc(0x13b))/0x9*(parseInt(_0x3c4dfc(0x12d))/0xa);if(_0x547be4===_0x528b2c)break;else _0x29e7df['push'](_0x29e7df['shift']());}catch(_0xa9cf86){_0x29e7df['push'](_0x29e7df['shift']());}}}(a216_0x2979,0xf0d76));import{get}from'https';import{gt,valid}from'semver';import a216_0x4d3042 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE='https://registry.npmjs.org/@treasuredata/tdx',TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a216_0xf87182(0x11c),a216_0xf87182(0x136)),nextVersionCache=createGlobalCache(a216_0xf87182(0x128),a216_0xf87182(0x143));function a216_0x2979(){const _0x3aceaf=['write','isTTY','Invalid\x20version\x20format','utils/version-check','6BzOwaq','currentVersion','\x0aRun:\x20','5369058pyCgWB','9liyaWx','stable','Run:','read','7oUTtfL','HTTP\x20','yellow','data','utils/version-check-next','2716478biccMP','4390825gXHWOu','last_version_check','latestVersion','Request\x20timeout','stderr','cyan','error','toISOString','next','Update\x20available:','tdx\x20upgrade','version','\x0aUpdate\x20available:\x20','last_version_check_next','gray','dim','10110536JZcsAS','unref','48884180GbHCle','statusCode','4760516RKWIzD','1894704eemOTh','now','updateAvailable'];a216_0x2979=function(){return _0x3aceaf;};return a216_0x2979();}function getCacheForChannel(_0xcf540e){const _0x106246=a216_0xf87182;return _0xcf540e===_0x106246(0x123)?nextVersionCache:stableVersionCache;}function readCache(_0x45cbeb){const _0x31ddf6=a216_0xf87182;return getCacheForChannel(_0x45cbeb)[_0x31ddf6(0x13e)]()??null;}function writeCache(_0xb9d7bd,_0x2ce03a){const _0x526892=a216_0xf87182;try{getCacheForChannel(_0x2ce03a)[_0x526892(0x133)]({'lastCheck':new Date()[_0x526892(0x122)](),'latestVersion':_0xb9d7bd});}catch{}}function a216_0xd956(_0x48ee95,_0x3ef6d9){_0x48ee95=_0x48ee95-0x11c;const _0x297968=a216_0x2979();let _0xd95639=_0x297968[_0x48ee95];return _0xd95639;}function isCacheValid(_0x5ac06c){const _0x40f864=a216_0xf87182;if(!_0x5ac06c)return![];const _0x5165f6=new Date(_0x5ac06c['lastCheck'])['getTime'](),_0x41a67a=Date[_0x40f864(0x131)]();return _0x41a67a-_0x5165f6<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x21a96f=a216_0xf87182(0x13c)){const _0x2ac051=a216_0xf87182,_0x189476=_0x21a96f===_0x2ac051(0x123)?'next':'latest',_0x1c7e0b=NPM_REGISTRY_BASE+'/'+_0x189476;return new Promise((_0x28279c,_0x2065d9)=>{const _0x3e76d2=_0x2ac051,_0x406920=get(_0x1c7e0b,{'timeout':TIMEOUT_MS},_0x4efb76=>{const _0x214b92=a216_0xd956;if(_0x4efb76['statusCode']!==0xc8){clearTimeout(_0x7ad217),_0x2065d9(new Error(_0x214b92(0x140)+_0x4efb76[_0x214b92(0x12e)]));return;}let _0x68673='';_0x4efb76['on'](_0x214b92(0x142),_0x363fa2=>{_0x68673+=_0x363fa2;}),_0x4efb76['on']('end',()=>{const _0x3e8073=_0x214b92;clearTimeout(_0x7ad217);try{const _0x3fd415=JSON['parse'](_0x68673);if(!valid(_0x3fd415[_0x3e8073(0x126)])){_0x2065d9(new Error(_0x3e8073(0x135)));return;}_0x28279c(_0x3fd415[_0x3e8073(0x126)]);}catch(_0x4a6e5c){_0x2065d9(_0x4a6e5c);}});})['on'](_0x3e76d2(0x121),_0x5dc44a=>{clearTimeout(_0x7ad217),_0x2065d9(_0x5dc44a);});_0x406920['on']('socket',_0x4ebbde=>{const _0xd096dc=_0x3e76d2;_0x4ebbde[_0xd096dc(0x12c)]();});const _0x7ad217=setTimeout(()=>{const _0x10bd04=_0x3e76d2;_0x406920['destroy'](),_0x2065d9(new Error(_0x10bd04(0x11e)));},TIMEOUT_MS);_0x7ad217[_0x3e76d2(0x12c)]();});}export async function checkForUpdate(_0x56cf13,_0xb52870='stable'){const _0x4cc205=a216_0xf87182;try{const _0x138e55=readCache(_0xb52870);if(isCacheValid(_0x138e55)){const _0x33ca5a=gt(_0x138e55[_0x4cc205(0x11d)],_0x56cf13);return{'updateAvailable':_0x33ca5a,'currentVersion':_0x56cf13,'latestVersion':_0x138e55[_0x4cc205(0x11d)],'channel':_0xb52870};}const _0x5b11de=await fetchLatestVersion(_0xb52870);writeCache(_0x5b11de,_0xb52870);const _0xe51a8a=gt(_0x5b11de,_0x56cf13);return{'updateAvailable':_0xe51a8a,'currentVersion':_0x56cf13,'latestVersion':_0x5b11de,'channel':_0xb52870};}catch{return null;}}export function displayUpdateNotification(_0x47a662){const _0x5cdd40=a216_0xf87182;if(!_0x47a662[_0x5cdd40(0x132)])return;const _0x3c0d66=_0x47a662['channel']===_0x5cdd40(0x123)?'tdx\x20upgrade\x20--next':_0x5cdd40(0x125),_0x12fe9f=process[_0x5cdd40(0x11f)][_0x5cdd40(0x134)]&&!process.env.NO_COLOR,_0x4b785d=_0x12fe9f?a216_0x4d3042[_0x5cdd40(0x129)]('→'):'→',_0x3b133d=_0x12fe9f?a216_0x4d3042[_0x5cdd40(0x12a)](_0x47a662['currentVersion']):_0x47a662[_0x5cdd40(0x138)],_0x473001=_0x12fe9f?a216_0x4d3042['green'](_0x47a662['latestVersion']):_0x47a662[_0x5cdd40(0x11d)],_0x41bce9=_0x12fe9f?a216_0x4d3042[_0x5cdd40(0x120)](_0x3c0d66):_0x3c0d66,_0x3b8780=_0x12fe9f?'\x0a'+a216_0x4d3042[_0x5cdd40(0x141)](_0x5cdd40(0x124))+'\x20'+_0x3b133d+'\x20'+_0x4b785d+'\x20'+_0x473001+'\x0a'+a216_0x4d3042['dim'](_0x5cdd40(0x13d))+'\x20'+_0x41bce9+'\x0a':_0x5cdd40(0x127)+_0x3b133d+'\x20'+_0x4b785d+'\x20'+_0x473001+_0x5cdd40(0x139)+_0x41bce9+'\x0a';process[_0x5cdd40(0x11f)][_0x5cdd40(0x133)](_0x3b8780);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.26",
3
+ "version": "2026.3.27",
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": {