@treasuredata/tdx 2026.3.6 → 2026.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-command.js.map +1 -1
  11. package/dist/commands/auth-login-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.d.ts.map +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/profiles-command.js.map +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.d.ts.map +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/user-command.js.map +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.d.ts.map +1 -1
  69. package/dist/core/oauth.js +1 -1
  70. package/dist/core/oauth.js.map +1 -1
  71. package/dist/core/profile.js +1 -1
  72. package/dist/core/project-config.js +1 -1
  73. package/dist/core/session.js +1 -1
  74. package/dist/core/user-cache.js +1 -1
  75. package/dist/core/version.js +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/mcp/server.js +1 -1
  78. package/dist/mcp/tools/index.js +1 -1
  79. package/dist/mcp/tools/tdx-run.js +1 -1
  80. package/dist/mcp/tools/tdx-search.js +1 -1
  81. package/dist/mcp/utils.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js +1 -1
  83. package/dist/proxy/passthrough-server.js +1 -1
  84. package/dist/proxy/sse-usage-parser.js +1 -1
  85. package/dist/sdk/agent/agent-config.js +1 -1
  86. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  87. package/dist/sdk/agent/agent-yaml.js +1 -1
  88. package/dist/sdk/agent/test/evaluator.js +1 -1
  89. package/dist/sdk/agent/test/executor.js +1 -1
  90. package/dist/sdk/agent/test/index.js +1 -1
  91. package/dist/sdk/agent/test/output.js +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/tool-target-registry.js +1 -1
  94. package/dist/sdk/api.js +1 -1
  95. package/dist/sdk/client/cdp-api-client.js +1 -1
  96. package/dist/sdk/client/delivery-api-client.js +1 -1
  97. package/dist/sdk/client/endpoints.js +1 -1
  98. package/dist/sdk/client/engage-api-client.js +1 -1
  99. package/dist/sdk/client/http-client.js +1 -1
  100. package/dist/sdk/client/llm-api-client.js +1 -1
  101. package/dist/sdk/client/oauth-refresh.js +1 -1
  102. package/dist/sdk/client/rate-limiter.js +1 -1
  103. package/dist/sdk/client/td-api-client.js +1 -1
  104. package/dist/sdk/client/trino-api-client.js +1 -1
  105. package/dist/sdk/client/workflow-client.js +1 -1
  106. package/dist/sdk/connection-validator.js +1 -1
  107. package/dist/sdk/connection.js +1 -1
  108. package/dist/sdk/delivery.js +1 -1
  109. package/dist/sdk/engage/campaign-pull.js +1 -1
  110. package/dist/sdk/engage/campaign-push.js +1 -1
  111. package/dist/sdk/engage/campaign-validator.js +1 -1
  112. package/dist/sdk/engage/campaign-yaml.js +1 -1
  113. package/dist/sdk/engage/template-pull.js +1 -1
  114. package/dist/sdk/engage/template-push.js +1 -1
  115. package/dist/sdk/engage/template-validator.js +1 -1
  116. package/dist/sdk/engage/template-yaml.js +1 -1
  117. package/dist/sdk/engage/types/campaign-def.js +1 -1
  118. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  119. package/dist/sdk/engage/types/template-schema.js +1 -1
  120. package/dist/sdk/engage.js +1 -1
  121. package/dist/sdk/errors.js +1 -1
  122. package/dist/sdk/index.js +1 -1
  123. package/dist/sdk/io/index.js +1 -1
  124. package/dist/sdk/io/node-filesystem.js +1 -1
  125. package/dist/sdk/job.js +1 -1
  126. package/dist/sdk/journey.js +1 -1
  127. package/dist/sdk/llm/chat-cache.js +1 -1
  128. package/dist/sdk/llm/index.js +1 -1
  129. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  130. package/dist/sdk/llm/model-factors.js +1 -1
  131. package/dist/sdk/personalization.js +1 -1
  132. package/dist/sdk/query/index.js +1 -1
  133. package/dist/sdk/query/sql-parser.js +1 -1
  134. package/dist/sdk/realtime.js +1 -1
  135. package/dist/sdk/schedule.js +1 -1
  136. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  137. package/dist/sdk/segment/fields-display.js +1 -1
  138. package/dist/sdk/segment/file-discovery.js +1 -1
  139. package/dist/sdk/segment/journey-utils.js +1 -1
  140. package/dist/sdk/segment/journey-validator.js +1 -1
  141. package/dist/sdk/segment/journey-yaml.js +1 -1
  142. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  143. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  144. package/dist/sdk/segment/pull-workflow.js +1 -1
  145. package/dist/sdk/segment/push-recovery.js +1 -1
  146. package/dist/sdk/segment/push-workflow.js +1 -1
  147. package/dist/sdk/segment/resolution-context.js +1 -1
  148. package/dist/sdk/segment/segment-path-parser.js +1 -1
  149. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  150. package/dist/sdk/segment/segment-validator.js +1 -1
  151. package/dist/sdk/segment/target-resolution.js +1 -1
  152. package/dist/sdk/segment/tdx-config.js +1 -1
  153. package/dist/sdk/segment/types/activation-schema.js +1 -1
  154. package/dist/sdk/segment/types/journey-def.js +1 -1
  155. package/dist/sdk/segment/types/journey-schema.js +1 -1
  156. package/dist/sdk/segment/types/segment-def.js +1 -1
  157. package/dist/sdk/segment/types/segment-schema.js +1 -1
  158. package/dist/sdk/segment/validate-files.js +1 -1
  159. package/dist/sdk/segment/yaml-validator.js +1 -1
  160. package/dist/sdk/segment.js +1 -1
  161. package/dist/sdk/types/index.js +1 -1
  162. package/dist/sdk/types/progress.js +1 -1
  163. package/dist/sdk/user.js +1 -1
  164. package/dist/sdk/util/format-detector.js +1 -1
  165. package/dist/sdk/util/formatters.js +1 -1
  166. package/dist/sdk/util/index.js +1 -1
  167. package/dist/sdk/util/paginate.js +1 -1
  168. package/dist/sdk/util/tree-formatter.js +1 -1
  169. package/dist/sdk/workflow/archive-validation.js +1 -1
  170. package/dist/sdk/workflow/clone-workflow.js +1 -1
  171. package/dist/sdk/workflow/index.js +1 -1
  172. package/dist/sdk/workflow/pull-workflow.js +1 -1
  173. package/dist/sdk/workflow/push-workflow.js +1 -1
  174. package/dist/sdk/workflow/tdx-config.js +1 -1
  175. package/dist/sdk/workflow/workflow-utils.js +1 -1
  176. package/dist/test-utils/command-runner.js +1 -1
  177. package/dist/test-utils/factories.js +1 -1
  178. package/dist/test-utils/fixtures.js +1 -1
  179. package/dist/test-utils/http-mock.js +1 -1
  180. package/dist/test-utils/index.js +1 -1
  181. package/dist/utils/async.js +1 -1
  182. package/dist/utils/colors.js +1 -1
  183. package/dist/utils/diff.js +1 -1
  184. package/dist/utils/file-permissions.js +1 -1
  185. package/dist/utils/file-reader.js +1 -1
  186. package/dist/utils/github-releases.js +1 -1
  187. package/dist/utils/global-cache.js +1 -1
  188. package/dist/utils/json-loader.js +1 -1
  189. package/dist/utils/local-cache.js +1 -1
  190. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  191. package/dist/utils/logger/formatters/index.js +1 -1
  192. package/dist/utils/logger/handlers/console-handler.js +1 -1
  193. package/dist/utils/logger/handlers/file-handler.js +1 -1
  194. package/dist/utils/logger/handlers/index.js +1 -1
  195. package/dist/utils/logger/handlers/null-handler.js +1 -1
  196. package/dist/utils/logger/index.js +1 -1
  197. package/dist/utils/logger/logger.js +1 -1
  198. package/dist/utils/logger/types.js +1 -1
  199. package/dist/utils/option-validation.js +1 -1
  200. package/dist/utils/process.js +1 -1
  201. package/dist/utils/prompt.js +1 -1
  202. package/dist/utils/spinner.js +1 -1
  203. package/dist/utils/sse-parser.js +1 -1
  204. package/dist/utils/string-utils.js +1 -1
  205. package/dist/utils/table-ref-parser.js +1 -1
  206. package/dist/utils/tdx-logger.js +1 -1
  207. package/dist/utils/version-check.js +1 -1
  208. package/package.json +1 -1
@@ -1 +1 @@
1
- const a206_0xe76935=a206_0x47d1;(function(_0x295673,_0xe3732a){const _0x258123=a206_0x47d1,_0x13edb4=_0x295673();while(!![]){try{const _0xc6329c=-parseInt(_0x258123(0x1ec))/0x1*(parseInt(_0x258123(0x210))/0x2)+parseInt(_0x258123(0x215))/0x3*(-parseInt(_0x258123(0x1f6))/0x4)+-parseInt(_0x258123(0x1fd))/0x5*(parseInt(_0x258123(0x1f2))/0x6)+parseInt(_0x258123(0x21f))/0x7*(parseInt(_0x258123(0x20a))/0x8)+-parseInt(_0x258123(0x213))/0x9*(-parseInt(_0x258123(0x222))/0xa)+-parseInt(_0x258123(0x22a))/0xb+parseInt(_0x258123(0x216))/0xc;if(_0xc6329c===_0xe3732a)break;else _0x13edb4['push'](_0x13edb4['shift']());}catch(_0x5a365d){_0x13edb4['push'](_0x13edb4['shift']());}}}(a206_0x5b76,0x2ae5a));import{execSync,spawn}from'node:child_process';function a206_0x5b76(){const _0x5878f8=['8emrOPq','pwsh','xonsh','pop','trim','pipe','toString','5hxBVLp','ppid','isInteger','Invalid\x20URL:\x20','electron','join','comm','cursor','which','\x20-o\x20ppid=,comm=','data','http:','stderr','70568hYxfrO','ksh','darwin','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','bash','map','2tRRdYU','toLowerCase','href','9niaKqP','stdout','86073lNXZlJ','5957136VFVDBY','cmd.exe','where.exe','zsh','unref','fish','csh','protocol','code','49UvIqHY','claude','test','1657390gRVkcn','pid','split','ignore','error','open','utf-8','has','140228AxNkxG','Unsupported\x20protocol:\x20','kill','tcsh','elvish','347482jGdMsc','replace','start','ion','win32','xdg-open','783576gPTShp','treasure\x20studio','exit','platform'];a206_0x5b76=function(){return _0x5878f8;};return a206_0x5b76();}const SHELL_NAMES=new Set([a206_0xe76935(0x20e),a206_0xe76935(0x219),'sh',a206_0xe76935(0x21b),a206_0xe76935(0x20b),a206_0xe76935(0x1ea),a206_0xe76935(0x21c),'dash',a206_0xe76935(0x1f7),'powershell','nu',a206_0xe76935(0x1ef),a206_0xe76935(0x1eb),a206_0xe76935(0x1f8)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0xe76935(0x220),a206_0xe76935(0x21e),a206_0xe76935(0x204),a206_0xe76935(0x201),a206_0xe76935(0x1f3)]);function getProcessInfoWindows(_0x494cb5){const _0x3f6443=a206_0xe76935;try{if(!Number[_0x3f6443(0x1ff)](_0x494cb5)||_0x494cb5<=0x0)return null;const _0x1d6978=_0x3f6443(0x20d)+_0x494cb5+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x1a4905=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x1d6978+'\x22',{'encoding':_0x3f6443(0x228),'windowsHide':!![],'stdio':[_0x3f6443(0x1fb),'pipe',_0x3f6443(0x1fb)]})[_0x3f6443(0x1fa)]();if(!_0x1a4905)return null;const [_0x50518b,..._0x194206]=_0x1a4905['split'](','),_0x4be7fa=parseInt(_0x50518b,0xa),_0x1478c2=_0x194206[_0x3f6443(0x202)](',')[_0x3f6443(0x1fa)]();if(isNaN(_0x4be7fa)||!_0x1478c2)return null;return{'pid':_0x494cb5,'ppid':_0x4be7fa,'comm':_0x1478c2[_0x3f6443(0x1ed)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x50cd50){const _0x1fb89f=a206_0xe76935;try{const _0x26043a=0x400000;if(!Number[_0x1fb89f(0x1ff)](_0x50cd50)||_0x50cd50<=0x0||_0x50cd50>_0x26043a)return null;const _0x5388fe=execSync('ps\x20-p\x20'+_0x50cd50+_0x1fb89f(0x206),{'encoding':_0x1fb89f(0x228),'stdio':'pipe'})[_0x1fb89f(0x1fa)](),[_0x5bda29,..._0x4fdc85]=_0x5388fe[_0x1fb89f(0x224)](/\s+/),_0xb8c2e5=parseInt(_0x5bda29,0xa),_0x5b7237=_0x4fdc85['join']('\x20');if(isNaN(_0xb8c2e5))return null;return{'pid':_0x50cd50,'ppid':_0xb8c2e5,'comm':_0x5b7237};}catch{return null;}}function getProcessInfo(_0x44ee5c){const _0x401ec8=a206_0xe76935;if(process[_0x401ec8(0x1f5)]===_0x401ec8(0x1f0))return getProcessInfoWindows(_0x44ee5c);return getProcessInfoPosix(_0x44ee5c);}function getBasename(_0x3581a4){const _0xc16d67=a206_0xe76935;return _0x3581a4[_0xc16d67(0x1ed)](/^-/,'')[_0xc16d67(0x224)]('/')[_0xc16d67(0x1f9)]()?.[_0xc16d67(0x211)]()||'';}function isShell(_0x240a97){const _0x53bcc4=a206_0xe76935;return SHELL_NAMES[_0x53bcc4(0x229)](getBasename(_0x240a97));}function isEphemeralShellSpawner(_0x98bacc){const _0x54582d=a206_0xe76935;return EPHEMERAL_SHELL_SPAWNERS[_0x54582d(0x229)](getBasename(_0x98bacc));}let cachedShellPID;function findShellPID(){const _0x2c7119=a206_0xe76935;if(process[_0x2c7119(0x1fe)]===undefined)return process['pid'];let _0x56c69a=process['ppid'];const _0x412552=0xa;let _0x1f912a=0x0;while(_0x1f912a<_0x412552){const _0x3f94d1=getProcessInfo(_0x56c69a);if(!_0x3f94d1)break;if(isShell(_0x3f94d1[_0x2c7119(0x203)])){const _0xe779a5=getProcessInfo(_0x3f94d1[_0x2c7119(0x1fe)]);if(_0xe779a5&&isEphemeralShellSpawner(_0xe779a5['comm'])){_0x56c69a=_0x3f94d1[_0x2c7119(0x1fe)],_0x1f912a++;continue;}return _0x3f94d1[_0x2c7119(0x223)];}if(_0x3f94d1['ppid']===0x0||_0x3f94d1[_0x2c7119(0x1fe)]===0x1){if(isShell(_0x3f94d1[_0x2c7119(0x203)]))return _0x3f94d1[_0x2c7119(0x223)];break;}_0x56c69a=_0x3f94d1[_0x2c7119(0x1fe)],_0x1f912a++;}return process['ppid']!==undefined?process[_0x2c7119(0x1fe)]:process[_0x2c7119(0x223)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x46c9b0){const _0x13f7ce=a206_0xe76935;if(!Number[_0x13f7ce(0x1ff)](_0x46c9b0)||_0x46c9b0<=0x0)return![];try{return process[_0x13f7ce(0x1e9)](_0x46c9b0,0x0),!![];}catch{return![];}}export function openBrowser(_0x2ba482){const _0x23edf3=a206_0xe76935;let _0x6e2c76;try{_0x6e2c76=new URL(_0x2ba482);}catch{throw new Error(_0x23edf3(0x200)+_0x2ba482);}if(_0x6e2c76[_0x23edf3(0x21d)]!==_0x23edf3(0x208)&&_0x6e2c76[_0x23edf3(0x21d)]!=='https:')throw new Error(_0x23edf3(0x1e8)+_0x6e2c76[_0x23edf3(0x21d)]);const _0x33d99a=_0x6e2c76[_0x23edf3(0x212)],_0x7613ca=process[_0x23edf3(0x1f5)];if(_0x7613ca===_0x23edf3(0x1f0))spawn(_0x23edf3(0x217),['/c',_0x23edf3(0x1ee),'',_0x33d99a],{'detached':!![],'stdio':'ignore'})[_0x23edf3(0x21a)]();else{const _0x3fd57d=_0x7613ca===_0x23edf3(0x20c)?_0x23edf3(0x227):_0x23edf3(0x1f1);spawn(_0x3fd57d,[_0x33d99a],{'detached':!![],'stdio':_0x23edf3(0x225)})[_0x23edf3(0x21a)]();}}export function isWindows(){const _0x5a1c33=a206_0xe76935;return process['platform']===_0x5a1c33(0x1f0);}export function getCrossSpawnOptions(_0x1edc2a){return{..._0x1edc2a??{},'shell':isWindows()};}export function escapeWindowsArg(_0x4870ed){const _0x5a4559=a206_0xe76935;if(!/[ \t"&|<>^%!`\r\n]/[_0x5a4559(0x221)](_0x4870ed))return _0x4870ed;const _0x4334d6=_0x4870ed[_0x5a4559(0x1ed)](/"/g,'\x22\x22');return'\x22'+_0x4334d6+'\x22';}function a206_0x47d1(_0x297582,_0x311490){_0x297582=_0x297582-0x1e8;const _0x5b7606=a206_0x5b76();let _0x47d1df=_0x5b7606[_0x297582];return _0x47d1df;}export function crossSpawn(_0x2cc2f4,_0x44de9a,_0x57c863){const _0x1f59be=a206_0xe76935;if(isWindows()){const _0x493d58=escapeWindowsArg(_0x2cc2f4),_0x16c05e=_0x44de9a[_0x1f59be(0x20f)](escapeWindowsArg),_0x46e31a=[_0x493d58,..._0x16c05e]['join']('\x20');return spawn(_0x46e31a,[],{..._0x57c863,'shell':!![]});}return spawn(_0x2cc2f4,_0x44de9a,{..._0x57c863,'shell':![]});}export function gracefulExit(_0x143b30=0x0){const _0xa7547c=a206_0xe76935;isWindows()?setTimeout(()=>process[_0xa7547c(0x1f4)](_0x143b30),0x32):process[_0xa7547c(0x1f4)](_0x143b30);}export function findExecutable(_0x9ccb0,_0x55a939=0x1388){return new Promise(_0x24f03c=>{const _0x2ff08b=a206_0x47d1,_0x1a6427=isWindows()?_0x2ff08b(0x218):_0x2ff08b(0x205);let _0x2ce920=![];const _0x2dc206=crossSpawn(_0x1a6427,[_0x9ccb0],{'stdio':_0x2ff08b(0x1fb),'shell':isWindows()}),_0x259c57=setTimeout(()=>{const _0x533522=_0x2ff08b;!_0x2ce920&&(_0x2ce920=!![],_0x2dc206[_0x533522(0x1e9)](),_0x24f03c(null));},_0x55a939);let _0x12761e='';_0x2dc206[_0x2ff08b(0x214)]?.['on'](_0x2ff08b(0x207),_0x2c087d=>{const _0x1950b3=_0x2ff08b;_0x12761e+=_0x2c087d[_0x1950b3(0x1fc)]();}),_0x2dc206[_0x2ff08b(0x209)]?.['on'](_0x2ff08b(0x207),()=>{}),_0x2dc206['on'](_0x2ff08b(0x1f4),_0x15895c=>{const _0x20a2c7=_0x2ff08b;if(_0x2ce920)return;_0x2ce920=!![],clearTimeout(_0x259c57);if(_0x15895c===0x0&&_0x12761e['trim']()){const _0x2fc797=_0x12761e[_0x20a2c7(0x1fa)]()[_0x20a2c7(0x224)](/\r?\n/)[0x0];_0x24f03c(_0x2fc797);}else _0x24f03c(null);}),_0x2dc206['on'](_0x2ff08b(0x226),()=>{if(_0x2ce920)return;_0x2ce920=!![],clearTimeout(_0x259c57),_0x24f03c(null);});});}
1
+ const a206_0x4db3d2=a206_0x4e6b;(function(_0x4d86e2,_0x3c790a){const _0x3349d3=a206_0x4e6b,_0x564e32=_0x4d86e2();while(!![]){try{const _0x407b50=-parseInt(_0x3349d3(0x1f0))/0x1+-parseInt(_0x3349d3(0x1f7))/0x2+parseInt(_0x3349d3(0x220))/0x3*(-parseInt(_0x3349d3(0x1fe))/0x4)+parseInt(_0x3349d3(0x217))/0x5+-parseInt(_0x3349d3(0x213))/0x6*(parseInt(_0x3349d3(0x20e))/0x7)+-parseInt(_0x3349d3(0x1fd))/0x8+parseInt(_0x3349d3(0x1f6))/0x9*(parseInt(_0x3349d3(0x210))/0xa);if(_0x407b50===_0x3c790a)break;else _0x564e32['push'](_0x564e32['shift']());}catch(_0x110aee){_0x564e32['push'](_0x564e32['shift']());}}}(a206_0x5057,0x5edf4));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x4db3d2(0x22d),a206_0x4db3d2(0x1f8),'sh',a206_0x4db3d2(0x21c),a206_0x4db3d2(0x215),a206_0x4db3d2(0x20b),'csh',a206_0x4db3d2(0x203),a206_0x4db3d2(0x22e),'powershell','nu','ion',a206_0x4db3d2(0x21a),a206_0x4db3d2(0x204)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x4db3d2(0x22f),a206_0x4db3d2(0x22b),a206_0x4db3d2(0x222),a206_0x4db3d2(0x202),a206_0x4db3d2(0x21f)]);function getProcessInfoWindows(_0x3c281d){const _0x5ecfad=a206_0x4db3d2;try{if(!Number[_0x5ecfad(0x1fa)](_0x3c281d)||_0x3c281d<=0x0)return null;const _0x88e817=_0x5ecfad(0x20d)+_0x3c281d+_0x5ecfad(0x219),_0x547727=execSync(_0x5ecfad(0x218)+_0x88e817+'\x22',{'encoding':_0x5ecfad(0x207),'windowsHide':!![],'stdio':[_0x5ecfad(0x1f4),_0x5ecfad(0x1f4),_0x5ecfad(0x1f4)]})['trim']();if(!_0x547727)return null;const [_0x6dc866,..._0x1d280b]=_0x547727['split'](','),_0x3697bd=parseInt(_0x6dc866,0xa),_0x55abab=_0x1d280b[_0x5ecfad(0x223)](',')[_0x5ecfad(0x212)]();if(isNaN(_0x3697bd)||!_0x55abab)return null;return{'pid':_0x3c281d,'ppid':_0x3697bd,'comm':_0x55abab[_0x5ecfad(0x200)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x47f384){const _0x24dec9=a206_0x4db3d2;try{const _0x3b31b1=0x400000;if(!Number[_0x24dec9(0x1fa)](_0x47f384)||_0x47f384<=0x0||_0x47f384>_0x3b31b1)return null;const _0x116b35=execSync('ps\x20-p\x20'+_0x47f384+'\x20-o\x20ppid=,comm=',{'encoding':_0x24dec9(0x207),'stdio':_0x24dec9(0x1f4)})[_0x24dec9(0x212)](),[_0x115699,..._0x29b7c8]=_0x116b35[_0x24dec9(0x1f2)](/\s+/),_0xee3c77=parseInt(_0x115699,0xa),_0x5c4ffe=_0x29b7c8[_0x24dec9(0x223)]('\x20');if(isNaN(_0xee3c77))return null;return{'pid':_0x47f384,'ppid':_0xee3c77,'comm':_0x5c4ffe};}catch{return null;}}function getProcessInfo(_0xda7e36){const _0x4abd45=a206_0x4db3d2;if(process[_0x4abd45(0x1fb)]===_0x4abd45(0x21b))return getProcessInfoWindows(_0xda7e36);return getProcessInfoPosix(_0xda7e36);}function a206_0x5057(){const _0x328e66=['Unsupported\x20protocol:\x20','tcsh','Invalid\x20URL:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','7BDakOc','which','50mtmrAW','https:','trim','2406762qhjjUk','cmd.exe','ksh','toString','51715IKyDTN','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','elvish','win32','fish','error','pid','treasure\x20studio','6eINqiH','test','cursor','join','toLowerCase','href','start','has','ppid','http:','pop','code','ignore','bash','pwsh','claude','protocol','172919YHVnpa','where.exe','split','unref','pipe','stderr','2889279ORLwXf','603396WvumWE','zsh','exit','isInteger','platform','data','2761664VGgjqq','11900yxjeTx','xdg-open','replace','map','electron','dash','xonsh','comm','open','utf-8','kill','stdout'];a206_0x5057=function(){return _0x328e66;};return a206_0x5057();}function getBasename(_0x42999a){const _0x2f73e8=a206_0x4db3d2;return _0x42999a['replace'](/^-/,'')[_0x2f73e8(0x1f2)]('/')[_0x2f73e8(0x22a)]()?.[_0x2f73e8(0x224)]()||'';}function isShell(_0x41e6a5){const _0x148774=a206_0x4db3d2;return SHELL_NAMES[_0x148774(0x227)](getBasename(_0x41e6a5));}function isEphemeralShellSpawner(_0x182c48){const _0x29b2c9=a206_0x4db3d2;return EPHEMERAL_SHELL_SPAWNERS[_0x29b2c9(0x227)](getBasename(_0x182c48));}let cachedShellPID;function findShellPID(){const _0x4c8c98=a206_0x4db3d2;if(process[_0x4c8c98(0x228)]===undefined)return process[_0x4c8c98(0x21e)];let _0x5bf744=process['ppid'];const _0x269980=0xa;let _0xdffe73=0x0;while(_0xdffe73<_0x269980){const _0xaca642=getProcessInfo(_0x5bf744);if(!_0xaca642)break;if(isShell(_0xaca642['comm'])){const _0x41c193=getProcessInfo(_0xaca642[_0x4c8c98(0x228)]);if(_0x41c193&&isEphemeralShellSpawner(_0x41c193[_0x4c8c98(0x205)])){_0x5bf744=_0xaca642['ppid'],_0xdffe73++;continue;}return _0xaca642['pid'];}if(_0xaca642[_0x4c8c98(0x228)]===0x0||_0xaca642[_0x4c8c98(0x228)]===0x1){if(isShell(_0xaca642['comm']))return _0xaca642[_0x4c8c98(0x21e)];break;}_0x5bf744=_0xaca642[_0x4c8c98(0x228)],_0xdffe73++;}return process[_0x4c8c98(0x228)]!==undefined?process['ppid']:process[_0x4c8c98(0x21e)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x998cce){const _0x445070=a206_0x4db3d2;if(!Number['isInteger'](_0x998cce)||_0x998cce<=0x0)return![];try{return process[_0x445070(0x208)](_0x998cce,0x0),!![];}catch{return![];}}export function openBrowser(_0x4caa62){const _0x6b2162=a206_0x4db3d2;let _0x406f6;try{_0x406f6=new URL(_0x4caa62);}catch{throw new Error(_0x6b2162(0x20c)+_0x4caa62);}if(_0x406f6[_0x6b2162(0x1ef)]!==_0x6b2162(0x229)&&_0x406f6[_0x6b2162(0x1ef)]!==_0x6b2162(0x211))throw new Error(_0x6b2162(0x20a)+_0x406f6['protocol']);const _0x519289=_0x406f6[_0x6b2162(0x225)],_0x404fc3=process['platform'];if(_0x404fc3===_0x6b2162(0x21b))spawn(_0x6b2162(0x214),['/c',_0x6b2162(0x226),'',_0x519289],{'detached':!![],'stdio':_0x6b2162(0x22c)})[_0x6b2162(0x1f3)]();else{const _0x1155d8=_0x404fc3==='darwin'?_0x6b2162(0x206):_0x6b2162(0x1ff);spawn(_0x1155d8,[_0x519289],{'detached':!![],'stdio':_0x6b2162(0x22c)})[_0x6b2162(0x1f3)]();}}function a206_0x4e6b(_0x179b1f,_0x50aeb3){_0x179b1f=_0x179b1f-0x1ef;const _0x505782=a206_0x5057();let _0x4e6bc5=_0x505782[_0x179b1f];return _0x4e6bc5;}export function isWindows(){const _0x59407d=a206_0x4db3d2;return process[_0x59407d(0x1fb)]==='win32';}export function getCrossSpawnOptions(_0x304cfc){return{..._0x304cfc??{},'shell':isWindows()};}export function escapeWindowsArg(_0x539bf3){const _0xb9820c=a206_0x4db3d2;if(!/[ \t"&|<>^%!`\r\n]/[_0xb9820c(0x221)](_0x539bf3))return _0x539bf3;const _0x455e64=_0x539bf3[_0xb9820c(0x200)](/"/g,'\x22\x22');return'\x22'+_0x455e64+'\x22';}export function crossSpawn(_0x25d30a,_0x7256c8,_0x49d799){const _0x3b2d8e=a206_0x4db3d2;if(isWindows()){const _0x38b0f1=escapeWindowsArg(_0x25d30a),_0x4b3ac6=_0x7256c8[_0x3b2d8e(0x201)](escapeWindowsArg),_0x50c574=[_0x38b0f1,..._0x4b3ac6][_0x3b2d8e(0x223)]('\x20');return spawn(_0x50c574,[],{..._0x49d799,'shell':!![]});}return spawn(_0x25d30a,_0x7256c8,{..._0x49d799,'shell':![]});}export function gracefulExit(_0x55a97f=0x0){const _0x599447=a206_0x4db3d2;isWindows()?setTimeout(()=>process[_0x599447(0x1f9)](_0x55a97f),0x32):process[_0x599447(0x1f9)](_0x55a97f);}export function findExecutable(_0x1680e5,_0x5c0904=0x1388){return new Promise(_0x4443e6=>{const _0x5881e9=a206_0x4e6b,_0x22ede8=isWindows()?_0x5881e9(0x1f1):_0x5881e9(0x20f);let _0x341322=![];const _0x46e417=crossSpawn(_0x22ede8,[_0x1680e5],{'stdio':_0x5881e9(0x1f4),'shell':isWindows()}),_0x1a26c8=setTimeout(()=>{!_0x341322&&(_0x341322=!![],_0x46e417['kill'](),_0x4443e6(null));},_0x5c0904);let _0x3944d='';_0x46e417[_0x5881e9(0x209)]?.['on'](_0x5881e9(0x1fc),_0x4efd54=>{const _0x25ca40=_0x5881e9;_0x3944d+=_0x4efd54[_0x25ca40(0x216)]();}),_0x46e417[_0x5881e9(0x1f5)]?.['on'](_0x5881e9(0x1fc),()=>{}),_0x46e417['on']('exit',_0x508f42=>{const _0x139697=_0x5881e9;if(_0x341322)return;_0x341322=!![],clearTimeout(_0x1a26c8);if(_0x508f42===0x0&&_0x3944d['trim']()){const _0x4e9d7c=_0x3944d[_0x139697(0x212)]()[_0x139697(0x1f2)](/\r?\n/)[0x0];_0x4443e6(_0x4e9d7c);}else _0x4443e6(null);}),_0x46e417['on'](_0x5881e9(0x21d),()=>{if(_0x341322)return;_0x341322=!![],clearTimeout(_0x1a26c8),_0x4443e6(null);});});}
@@ -1 +1 @@
1
- function a207_0x5d5a(_0x184e2b,_0x43ec42){_0x184e2b=_0x184e2b-0x195;const _0x44086e=a207_0x4408();let _0x5d5a42=_0x44086e[_0x184e2b];return _0x5d5a42;}(function(_0x342ec8,_0x1bd98d){const _0x4d16e9=a207_0x5d5a,_0xc4b71b=_0x342ec8();while(!![]){try{const _0x5298e5=parseInt(_0x4d16e9(0x1a0))/0x1+parseInt(_0x4d16e9(0x1a7))/0x2*(-parseInt(_0x4d16e9(0x197))/0x3)+parseInt(_0x4d16e9(0x195))/0x4*(-parseInt(_0x4d16e9(0x198))/0x5)+parseInt(_0x4d16e9(0x1ad))/0x6+-parseInt(_0x4d16e9(0x1a9))/0x7+parseInt(_0x4d16e9(0x1a3))/0x8*(-parseInt(_0x4d16e9(0x196))/0x9)+parseInt(_0x4d16e9(0x1aa))/0xa;if(_0x5298e5===_0x1bd98d)break;else _0xc4b71b['push'](_0xc4b71b['shift']());}catch(_0x2b7b5f){_0xc4b71b['push'](_0xc4b71b['shift']());}}}(a207_0x4408,0xba971));import*as a207_0x223d3f from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x1689df=a207_0x5d5a;return process[_0x1689df(0x19e)][_0x1689df(0x19c)]===!![];}function a207_0x4408(){const _0x7367cb=['77245hdMZkQ','close','stderr','pause','isTTY','removeListener','stdin','createInterface','40320dvRpUB','yes','setRawMode','2667480qaSpqe','setEncoding','utf8','toLowerCase','86bbQnxc','\x20[y/N]\x20','2417177ZGxxyb','14575660OVriWX','write','resume','5770728GNGOsQ','88mWYKkk','9mwfHle','47217nAoJcO'];a207_0x4408=function(){return _0x7367cb;};return a207_0x4408();}export async function confirm(_0xbdfcb6){const _0x394956=a207_0x5d5a,_0x4d7332=a207_0x223d3f[_0x394956(0x19f)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x43ca68=>{_0x4d7332['question'](_0xbdfcb6+'\x20(y/N):\x20',_0x204c2c=>{const _0x368660=a207_0x5d5a;_0x4d7332[_0x368660(0x199)](),_0x43ca68(_0x204c2c['toLowerCase']()==='y'||_0x204c2c[_0x368660(0x1a6)]()===_0x368660(0x1a1));});});}export async function confirmKey(_0x569a36){const _0x5e3bec=a207_0x5d5a;if(!process[_0x5e3bec(0x19e)]['isTTY'])return![];return process[_0x5e3bec(0x19a)][_0x5e3bec(0x1ab)](_0x569a36+_0x5e3bec(0x1a8)),new Promise(_0x2a1752=>{const _0x214b95=_0x5e3bec,_0x1282ea=process[_0x214b95(0x19e)];_0x1282ea[_0x214b95(0x1a2)](!![]),_0x1282ea[_0x214b95(0x1ac)](),_0x1282ea[_0x214b95(0x1a4)](_0x214b95(0x1a5));const _0x547c73=_0x467ded=>{const _0x283ca6=_0x214b95;_0x1282ea['setRawMode'](![]),_0x1282ea[_0x283ca6(0x19b)](),_0x1282ea[_0x283ca6(0x19d)]('data',_0x547c73);if(_0x467ded==='\x1b'){process[_0x283ca6(0x19a)]['write']('\x0a'),_0x2a1752(![]);return;}_0x467ded==='\x03'&&(process[_0x283ca6(0x19a)][_0x283ca6(0x1ab)]('\x0a'),gracefulExit(0x82));if(_0x467ded[_0x283ca6(0x1a6)]()==='y'){process[_0x283ca6(0x19a)][_0x283ca6(0x1ab)]('y\x0a'),_0x2a1752(!![]);return;}process[_0x283ca6(0x19a)]['write']('\x0a'),_0x2a1752(![]);};_0x1282ea['on']('data',_0x547c73);});}
1
+ (function(_0x5468a2,_0x4c21c9){const _0x5179d1=a207_0x4ea0,_0x13bb69=_0x5468a2();while(!![]){try{const _0x3d47d9=parseInt(_0x5179d1(0x1d7))/0x1+-parseInt(_0x5179d1(0x1d1))/0x2+parseInt(_0x5179d1(0x1c1))/0x3*(-parseInt(_0x5179d1(0x1d3))/0x4)+parseInt(_0x5179d1(0x1d0))/0x5*(-parseInt(_0x5179d1(0x1d8))/0x6)+parseInt(_0x5179d1(0x1c8))/0x7+parseInt(_0x5179d1(0x1d4))/0x8*(-parseInt(_0x5179d1(0x1bf))/0x9)+parseInt(_0x5179d1(0x1d2))/0xa*(parseInt(_0x5179d1(0x1cd))/0xb);if(_0x3d47d9===_0x4c21c9)break;else _0x13bb69['push'](_0x13bb69['shift']());}catch(_0x553f13){_0x13bb69['push'](_0x13bb69['shift']());}}}(a207_0x10da,0x31eea));import*as a207_0x1fa554 from'readline';function a207_0x10da(){const _0x40038a=['108vQXJKq','440sKsRYx','toLowerCase','data','370083tqhEZC','2316zZygWl','19062zYvWph','question','18231ukvOFN','write','isTTY','resume','stdin','removeListener','stderr','1642676PWssaK','setRawMode','\x20(y/N):\x20','pause','stdout','83809mJrIqI','utf8','setEncoding','1570PaiwQY','12150oypRRS','10aPrIpj'];a207_0x10da=function(){return _0x40038a;};return a207_0x10da();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}function a207_0x4ea0(_0x5cbbb4,_0x2570f6){_0x5cbbb4=_0x5cbbb4-0x1bf;const _0x10da30=a207_0x10da();let _0x4ea089=_0x10da30[_0x5cbbb4];return _0x4ea089;}export async function confirm(_0x1b9819){const _0x43c32a=a207_0x4ea0,_0x4b0ad7=a207_0x1fa554['createInterface']({'input':process[_0x43c32a(0x1c5)],'output':process[_0x43c32a(0x1cc)]});return new Promise(_0x2df559=>{const _0x27eb7c=_0x43c32a;_0x4b0ad7[_0x27eb7c(0x1c0)](_0x1b9819+_0x27eb7c(0x1ca),_0x284669=>{const _0x317dd0=_0x27eb7c;_0x4b0ad7['close'](),_0x2df559(_0x284669[_0x317dd0(0x1d5)]()==='y'||_0x284669['toLowerCase']()==='yes');});});}export async function confirmKey(_0x33f067){const _0x2fc12f=a207_0x4ea0;if(!process[_0x2fc12f(0x1c5)][_0x2fc12f(0x1c3)])return![];return process[_0x2fc12f(0x1c7)]['write'](_0x33f067+'\x20[y/N]\x20'),new Promise(_0x368785=>{const _0x1f1d9d=_0x2fc12f,_0x1df520=process[_0x1f1d9d(0x1c5)];_0x1df520[_0x1f1d9d(0x1c9)](!![]),_0x1df520[_0x1f1d9d(0x1c4)](),_0x1df520[_0x1f1d9d(0x1cf)](_0x1f1d9d(0x1ce));const _0x24be80=_0x889c5c=>{const _0x52c9b8=_0x1f1d9d;_0x1df520[_0x52c9b8(0x1c9)](![]),_0x1df520[_0x52c9b8(0x1cb)](),_0x1df520[_0x52c9b8(0x1c6)](_0x52c9b8(0x1d6),_0x24be80);if(_0x889c5c==='\x1b'){process[_0x52c9b8(0x1c7)][_0x52c9b8(0x1c2)]('\x0a'),_0x368785(![]);return;}_0x889c5c==='\x03'&&(process[_0x52c9b8(0x1c7)]['write']('\x0a'),gracefulExit(0x82));if(_0x889c5c['toLowerCase']()==='y'){process[_0x52c9b8(0x1c7)][_0x52c9b8(0x1c2)]('y\x0a'),_0x368785(!![]);return;}process['stderr']['write']('\x0a'),_0x368785(![]);};_0x1df520['on'](_0x1f1d9d(0x1d6),_0x24be80);});}
@@ -1 +1 @@
1
- function a208_0x2027(){const _0x1a47f7=['...','923992apxXkb','92435joUtdZ','5kRLYsR','trim','stop','198477IWzBOZ','stderr','extra','42OzkKPu','cyan','isSpinning','isTTY','intervalFactory','46506UmHQwn','40unIrMj','now','jobId','clock','start','1546130qYcGsO','phase','208031ZUInBg','replace','text','Processing','\x20[Job\x20ID:\x20','11ieWDJn','floor','176169ncLIBp'];a208_0x2027=function(){return _0x1a47f7;};return a208_0x2027();}(function(_0x491772,_0x18d491){const _0x8e8108=a208_0xf6df,_0x3409e1=_0x491772();while(!![]){try{const _0x3e132b=parseInt(_0x8e8108(0x145))/0x1+-parseInt(_0x8e8108(0x13d))/0x2+parseInt(_0x8e8108(0x14c))/0x3+parseInt(_0x8e8108(0x14e))/0x4*(parseInt(_0x8e8108(0x150))/0x5)+parseInt(_0x8e8108(0x156))/0x6*(-parseInt(_0x8e8108(0x14f))/0x7)+parseInt(_0x8e8108(0x13e))/0x8*(-parseInt(_0x8e8108(0x153))/0x9)+parseInt(_0x8e8108(0x143))/0xa*(-parseInt(_0x8e8108(0x14a))/0xb);if(_0x3e132b===_0x18d491)break;else _0x3409e1['push'](_0x3409e1['shift']());}catch(_0x5b417b){_0x3409e1['push'](_0x3409e1['shift']());}}}(a208_0x2027,0x1c9c2));function a208_0xf6df(_0x2178c6,_0x910e26){_0x2178c6=_0x2178c6-0x13a;const _0x202724=a208_0x2027();let _0xf6df7=_0x202724[_0x2178c6];return _0xf6df7;}import a208_0x38370a from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x5cf674,_0x3a6566={}){const _0x451556=a208_0xf6df,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3a6566;return a208_0x38370a({'text':_0x5cf674,'color':_0x451556(0x157),'stream':process[_0x451556(0x154)],'isEnabled':forceEnabled||process['stderr'][_0x451556(0x13b)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x526f7d,_0x31e3f0,_0x8626c1={}){const _0x52600a=a208_0xf6df,_0x26a8e9=_0x8626c1[_0x52600a(0x141)]??(()=>Date[_0x52600a(0x13f)]()),_0x291836=createCommandSpinner(_0x526f7d,_0x8626c1);_0x291836['start']();const _0x1225f7=_0x26a8e9();try{const _0x2c519a=await _0x31e3f0(),_0x355ee0=_0x26a8e9()-_0x1225f7;return _0x291836[_0x52600a(0x152)](),{'data':_0x2c519a,'elapsedMs':_0x355ee0};}catch(_0x2feb36){_0x291836['stop']();throw _0x2feb36;}}export async function withProgressSpinner(_0x49c611,_0x14daa9,_0x1335a4={}){const _0x2a729c=a208_0xf6df,_0x85850=_0x1335a4[_0x2a729c(0x141)]??(()=>Date[_0x2a729c(0x13f)]()),_0x5bae5a=_0x1335a4[_0x2a729c(0x13c)]??setInterval,_0x585ff2=createCommandSpinner(_0x49c611,_0x1335a4);_0x585ff2[_0x2a729c(0x142)]();const _0x12ba1b=_0x85850(),_0x53dbc3=_0x49c611[_0x2a729c(0x146)](_0x2a729c(0x14d),'')[_0x2a729c(0x151)]()||_0x2a729c(0x148),_0x5509fb={};let _0x229c7f=_0x49c611;const _0x221bee=()=>{const _0x29c951=_0x2a729c;if(!_0x585ff2[_0x29c951(0x13a)])return;const _0x2fb830=_0x85850()-_0x12ba1b,_0x2ff320=formatElapsed(_0x2fb830),_0xcde027=_0x5509fb[_0x29c951(0x144)]?.[_0x29c951(0x151)]()||_0x53dbc3,_0x38d3bb=_0x5509fb[_0x29c951(0x140)]?_0x29c951(0x149)+_0x5509fb[_0x29c951(0x140)]+']':'',_0x36f158=_0x5509fb[_0x29c951(0x155)]?'\x20'+_0x5509fb[_0x29c951(0x155)]:'',_0x107e9b=_0xcde027+'\x20'+_0x2ff320+_0x36f158+_0x38d3bb;_0x107e9b!==_0x229c7f&&_0x107e9b[_0x29c951(0x151)]()&&(_0x585ff2[_0x29c951(0x147)]=_0x107e9b,_0x229c7f=_0x107e9b);},_0x25ecef=_0x5bae5a(()=>{_0x221bee();},0x3e8),_0x510889={'setPhase':_0x36e88a=>{const _0x1444d0=_0x2a729c;_0x5509fb[_0x1444d0(0x144)]=_0x36e88a;const _0x383dae=_0x36e88a?.[_0x1444d0(0x151)]()||_0x53dbc3,_0x3ada2b=_0x85850()-_0x12ba1b,_0x546e63=formatElapsed(_0x3ada2b),_0x302f2d=_0x5509fb[_0x1444d0(0x140)]?_0x1444d0(0x149)+_0x5509fb['jobId']+']':'',_0x2f13a4=_0x5509fb['extra']?'\x20'+_0x5509fb['extra']:'',_0x3c9053=_0x383dae+'\x20'+_0x546e63+_0x2f13a4+_0x302f2d;_0x585ff2[_0x1444d0(0x13a)]&&_0x3c9053[_0x1444d0(0x151)]()&&(_0x585ff2[_0x1444d0(0x147)]=_0x3c9053,_0x229c7f=_0x3c9053);},'setJobId':_0xa63a=>{const _0x3d1834=_0x2a729c;_0x5509fb[_0x3d1834(0x140)]=_0xa63a,_0x221bee();},'setExtra':_0x4c1345=>{const _0xbcfebf=_0x2a729c;_0x5509fb[_0xbcfebf(0x155)]=_0x4c1345,_0x221bee();}};_0x221bee();try{const _0xef5709=await _0x14daa9(_0x510889),_0x37ed04=_0x85850()-_0x12ba1b;return{'data':_0xef5709,'elapsedMs':_0x37ed04};}finally{clearInterval(_0x25ecef),_0x585ff2[_0x2a729c(0x152)]();}}export function formatElapsed(_0xcbbed9){const _0x5e5942=a208_0xf6df,_0x305abb=Math[_0x5e5942(0x14b)](_0xcbbed9/0x3e8);if(_0x305abb<0x3c)return(_0xcbbed9/0x3e8)['toFixed'](0x1)+'s';const _0x3e5142=Math['floor'](_0x305abb/0x3c),_0x3ce8aa=_0x305abb%0x3c;if(_0x3e5142<0x3c)return _0x3e5142+'m\x20'+_0x3ce8aa+'s';const _0x2fb990=Math[_0x5e5942(0x14b)](_0x3e5142/0x3c),_0x11d1eb=_0x3e5142%0x3c;return _0x2fb990+'h\x20'+_0x11d1eb+'m';}
1
+ (function(_0x19505c,_0x34d44b){const _0x51dc8d=a208_0x59f8,_0x327e2f=_0x19505c();while(!![]){try{const _0x41e3c4=-parseInt(_0x51dc8d(0x117))/0x1+-parseInt(_0x51dc8d(0x115))/0x2+-parseInt(_0x51dc8d(0x112))/0x3+-parseInt(_0x51dc8d(0x107))/0x4+-parseInt(_0x51dc8d(0x11a))/0x5*(parseInt(_0x51dc8d(0x10e))/0x6)+parseInt(_0x51dc8d(0x11b))/0x7+parseInt(_0x51dc8d(0x116))/0x8*(parseInt(_0x51dc8d(0x110))/0x9);if(_0x41e3c4===_0x34d44b)break;else _0x327e2f['push'](_0x327e2f['shift']());}catch(_0x831ccc){_0x327e2f['push'](_0x327e2f['shift']());}}}(a208_0x3ad3,0x6d38f));import a208_0x39ce83 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x59f8(_0xaf0f8b,_0x17f7df){_0xaf0f8b=_0xaf0f8b-0x106;const _0x3ad33c=a208_0x3ad3();let _0x59f834=_0x3ad33c[_0xaf0f8b];return _0x59f834;}export function createCommandSpinner(_0x49ff20,_0x1ce7d2={}){const _0x258eff=a208_0x59f8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1ce7d2;return a208_0x39ce83({'text':_0x49ff20,'color':'cyan','stream':process[_0x258eff(0x118)],'isEnabled':forceEnabled||process[_0x258eff(0x118)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x5ab4a2,_0x4296e1,_0x9002eb={}){const _0x342db1=a208_0x59f8,_0x57b888=_0x9002eb['clock']??(()=>Date[_0x342db1(0x114)]()),_0x27a2d8=createCommandSpinner(_0x5ab4a2,_0x9002eb);_0x27a2d8[_0x342db1(0x10f)]();const _0x28d56a=_0x57b888();try{const _0xb16768=await _0x4296e1(),_0x25759e=_0x57b888()-_0x28d56a;return _0x27a2d8[_0x342db1(0x11d)](),{'data':_0xb16768,'elapsedMs':_0x25759e};}catch(_0x17ab1d){_0x27a2d8['stop']();throw _0x17ab1d;}}export async function withProgressSpinner(_0x5974db,_0x189b7c,_0x2c9922={}){const _0x34238b=a208_0x59f8,_0x546e01=_0x2c9922[_0x34238b(0x111)]??(()=>Date[_0x34238b(0x114)]()),_0x2cde0b=_0x2c9922[_0x34238b(0x10a)]??setInterval,_0x54f34b=createCommandSpinner(_0x5974db,_0x2c9922);_0x54f34b['start']();const _0x4dd86c=_0x546e01(),_0x203698=_0x5974db['replace'](_0x34238b(0x106),'')['trim']()||'Processing',_0x2f153c={};let _0x399a16=_0x5974db;const _0x16b047=()=>{const _0x512093=_0x34238b;if(!_0x54f34b[_0x512093(0x10d)])return;const _0x83fb21=_0x546e01()-_0x4dd86c,_0x49dec2=formatElapsed(_0x83fb21),_0x3bf016=_0x2f153c['phase']?.['trim']()||_0x203698,_0x40ad95=_0x2f153c[_0x512093(0x11c)]?'\x20[Job\x20ID:\x20'+_0x2f153c[_0x512093(0x11c)]+']':'',_0x3f7203=_0x2f153c[_0x512093(0x119)]?'\x20'+_0x2f153c['extra']:'',_0x1a2d58=_0x3bf016+'\x20'+_0x49dec2+_0x3f7203+_0x40ad95;_0x1a2d58!==_0x399a16&&_0x1a2d58[_0x512093(0x10c)]()&&(_0x54f34b['text']=_0x1a2d58,_0x399a16=_0x1a2d58);},_0x30197e=_0x2cde0b(()=>{_0x16b047();},0x3e8),_0x3218a2={'setPhase':_0x36e372=>{const _0xe2f196=_0x34238b;_0x2f153c[_0xe2f196(0x113)]=_0x36e372;const _0x22ba4d=_0x36e372?.[_0xe2f196(0x10c)]()||_0x203698,_0x3e441b=_0x546e01()-_0x4dd86c,_0xc0dbab=formatElapsed(_0x3e441b),_0x1b568b=_0x2f153c['jobId']?_0xe2f196(0x109)+_0x2f153c[_0xe2f196(0x11c)]+']':'',_0x50e8aa=_0x2f153c[_0xe2f196(0x119)]?'\x20'+_0x2f153c[_0xe2f196(0x119)]:'',_0x43101e=_0x22ba4d+'\x20'+_0xc0dbab+_0x50e8aa+_0x1b568b;_0x54f34b['isSpinning']&&_0x43101e[_0xe2f196(0x10c)]()&&(_0x54f34b['text']=_0x43101e,_0x399a16=_0x43101e);},'setJobId':_0x4e5e53=>{_0x2f153c['jobId']=_0x4e5e53,_0x16b047();},'setExtra':_0x553e0b=>{_0x2f153c['extra']=_0x553e0b,_0x16b047();}};_0x16b047();try{const _0x297e30=await _0x189b7c(_0x3218a2),_0x461c92=_0x546e01()-_0x4dd86c;return{'data':_0x297e30,'elapsedMs':_0x461c92};}finally{clearInterval(_0x30197e),_0x54f34b['stop']();}}export function formatElapsed(_0x3a3c07){const _0x2fd2c5=a208_0x59f8,_0x38ce46=Math['floor'](_0x3a3c07/0x3e8);if(_0x38ce46<0x3c)return(_0x3a3c07/0x3e8)[_0x2fd2c5(0x108)](0x1)+'s';const _0x4d194a=Math[_0x2fd2c5(0x10b)](_0x38ce46/0x3c),_0x552ece=_0x38ce46%0x3c;if(_0x4d194a<0x3c)return _0x4d194a+'m\x20'+_0x552ece+'s';const _0xc96270=Math[_0x2fd2c5(0x10b)](_0x4d194a/0x3c),_0x4b0589=_0x4d194a%0x3c;return _0xc96270+'h\x20'+_0x4b0589+'m';}function a208_0x3ad3(){const _0x51212b=['164539vUlEzL','stderr','extra','1175mHEqOg','4609766ZBowtf','jobId','stop','...','2401292iadnpy','toFixed','\x20[Job\x20ID:\x20','intervalFactory','floor','trim','isSpinning','5598IwIDTN','start','108gMOxqd','clock','1751856jhIQRQ','phase','now','408084cHtBSj','1040632kQeTIi'];a208_0x3ad3=function(){return _0x51212b;};return a208_0x3ad3();}
@@ -1 +1 @@
1
- (function(_0x598951,_0x17a580){const _0x7c8504=a209_0x3854,_0x2e1b0e=_0x598951();while(!![]){try{const _0x149c24=parseInt(_0x7c8504(0x1b3))/0x1*(parseInt(_0x7c8504(0x1ad))/0x2)+-parseInt(_0x7c8504(0x1b1))/0x3+parseInt(_0x7c8504(0x1a8))/0x4+parseInt(_0x7c8504(0x1bb))/0x5*(-parseInt(_0x7c8504(0x1af))/0x6)+-parseInt(_0x7c8504(0x1c0))/0x7*(-parseInt(_0x7c8504(0x1bf))/0x8)+-parseInt(_0x7c8504(0x1a9))/0x9+parseInt(_0x7c8504(0x1b7))/0xa*(parseInt(_0x7c8504(0x1bc))/0xb);if(_0x149c24===_0x17a580)break;else _0x2e1b0e['push'](_0x2e1b0e['shift']());}catch(_0x317a20){_0x2e1b0e['push'](_0x2e1b0e['shift']());}}}(a209_0x5dad,0xb6400));function a209_0x5dad(){const _0x601f1=['90264ekRIJV','217FfGtOV','2636232XTLqnt','10987938YGHQuc','body','slice','startsWith','634cusNce','Response\x20body\x20is\x20null','271314TOMjQm','debug','3836340dHsHOJ','data','799VfbNby','event','pop','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','831510mOXxsq','read','parse','indexOf','130NegYTG','418DeFupQ','[LLM\x20API\x20SSE]\x20','split'];a209_0x5dad=function(){return _0x601f1;};return a209_0x5dad();}export async function*parseSSEStream(_0x56f7a3,_0x115d3b){const _0x282e74=a209_0x3854;if(!_0x56f7a3[_0x282e74(0x1aa)])throw new Error(_0x282e74(0x1ae));const _0x707938=_0x56f7a3[_0x282e74(0x1aa)]['getReader'](),_0x55e560=new TextDecoder();let _0x128e92='',_0x3b1966={};try{while(!![]){const {done:_0x50aa20,value:_0x22d07c}=await _0x707938[_0x282e74(0x1b8)]();if(_0x50aa20){if(_0x3b1966[_0x282e74(0x1b2)]){_0x115d3b?.[_0x282e74(0x1b0)](_0x282e74(0x1bd)+_0x3b1966[_0x282e74(0x1b2)]);const _0x4f1f65=parseSSEData(_0x3b1966[_0x282e74(0x1b2)]);yield _0x4f1f65;}break;}_0x128e92+=_0x55e560['decode'](_0x22d07c,{'stream':!![]});const _0x84a548=_0x128e92[_0x282e74(0x1be)]('\x0a');_0x128e92=_0x84a548[_0x282e74(0x1b5)]()||'';for(const _0x4dbbf5 of _0x84a548){if(_0x4dbbf5['trim']()===''){if(_0x3b1966[_0x282e74(0x1b2)]){_0x115d3b?.['debug'](_0x282e74(0x1bd)+_0x3b1966[_0x282e74(0x1b2)]);const _0x2a9c9a=parseSSEData(_0x3b1966[_0x282e74(0x1b2)]);yield _0x2a9c9a,_0x3b1966={};}continue;}if(_0x4dbbf5[_0x282e74(0x1ac)](':'))continue;const _0x8147b5=_0x4dbbf5[_0x282e74(0x1ba)](':');if(_0x8147b5===-0x1)continue;const _0x3c0afc=_0x4dbbf5[_0x282e74(0x1ab)](0x0,_0x8147b5);let _0x7a57ab=_0x4dbbf5['slice'](_0x8147b5+0x1);_0x7a57ab[_0x282e74(0x1ac)]('\x20')&&(_0x7a57ab=_0x7a57ab[_0x282e74(0x1ab)](0x1));switch(_0x3c0afc){case _0x282e74(0x1b4):_0x3b1966[_0x282e74(0x1b4)]=_0x7a57ab;break;case _0x282e74(0x1b2):_0x3b1966[_0x282e74(0x1b2)]=_0x3b1966[_0x282e74(0x1b2)]?_0x3b1966['data']+'\x0a'+_0x7a57ab:_0x7a57ab;break;case'id':_0x3b1966['id']=_0x7a57ab;break;}}}}finally{_0x707938['releaseLock']();}}function a209_0x3854(_0x207057,_0x1fc238){_0x207057=_0x207057-0x1a8;const _0x5dadb5=a209_0x5dad();let _0x385406=_0x5dadb5[_0x207057];return _0x385406;}function parseSSEData(_0xb3259a){const _0x1bdec6=a209_0x3854;try{return JSON[_0x1bdec6(0x1b9)](_0xb3259a);}catch(_0x303a41){throw new Error(_0x1bdec6(0x1b6)+_0xb3259a,{'cause':_0x303a41});}}
1
+ (function(_0x47da69,_0x188563){const _0x1ce2d6=a209_0x4e2a,_0x170988=_0x47da69();while(!![]){try{const _0x1fafc4=parseInt(_0x1ce2d6(0x8b))/0x1+-parseInt(_0x1ce2d6(0x9e))/0x2+-parseInt(_0x1ce2d6(0x93))/0x3+-parseInt(_0x1ce2d6(0xa2))/0x4*(parseInt(_0x1ce2d6(0x9a))/0x5)+-parseInt(_0x1ce2d6(0x8d))/0x6+parseInt(_0x1ce2d6(0x92))/0x7*(parseInt(_0x1ce2d6(0x90))/0x8)+parseInt(_0x1ce2d6(0x94))/0x9*(parseInt(_0x1ce2d6(0x9b))/0xa);if(_0x1fafc4===_0x188563)break;else _0x170988['push'](_0x170988['shift']());}catch(_0x152328){_0x170988['push'](_0x170988['shift']());}}}(a209_0x5266,0xba3da));function a209_0x4e2a(_0x533797,_0x439c7d){_0x533797=_0x533797-0x8b;const _0x5266b5=a209_0x5266();let _0x4e2a52=_0x5266b5[_0x533797];return _0x4e2a52;}export async function*parseSSEStream(_0xac2f13,_0x44cc48){const _0x293ea3=a209_0x4e2a;if(!_0xac2f13[_0x293ea3(0xa4)])throw new Error(_0x293ea3(0xa3));const _0x19c49b=_0xac2f13[_0x293ea3(0xa4)][_0x293ea3(0x98)](),_0x246484=new TextDecoder();let _0x434757='',_0x69dc17={};try{while(!![]){const {done:_0x4f88e7,value:_0x566974}=await _0x19c49b[_0x293ea3(0x8c)]();if(_0x4f88e7){if(_0x69dc17[_0x293ea3(0x8e)]){_0x44cc48?.['debug'](_0x293ea3(0x91)+_0x69dc17[_0x293ea3(0x8e)]);const _0x284d3d=parseSSEData(_0x69dc17['data']);yield _0x284d3d;}break;}_0x434757+=_0x246484[_0x293ea3(0x9f)](_0x566974,{'stream':!![]});const _0x4cf94a=_0x434757[_0x293ea3(0x95)]('\x0a');_0x434757=_0x4cf94a[_0x293ea3(0x97)]()||'';for(const _0x1a56aa of _0x4cf94a){if(_0x1a56aa[_0x293ea3(0x99)]()===''){if(_0x69dc17[_0x293ea3(0x8e)]){_0x44cc48?.[_0x293ea3(0x8f)](_0x293ea3(0x91)+_0x69dc17[_0x293ea3(0x8e)]);const _0x4828e9=parseSSEData(_0x69dc17[_0x293ea3(0x8e)]);yield _0x4828e9,_0x69dc17={};}continue;}if(_0x1a56aa[_0x293ea3(0xa0)](':'))continue;const _0x1f2eb5=_0x1a56aa['indexOf'](':');if(_0x1f2eb5===-0x1)continue;const _0x284b7c=_0x1a56aa[_0x293ea3(0xa1)](0x0,_0x1f2eb5);let _0x4d5b53=_0x1a56aa[_0x293ea3(0xa1)](_0x1f2eb5+0x1);_0x4d5b53[_0x293ea3(0xa0)]('\x20')&&(_0x4d5b53=_0x4d5b53[_0x293ea3(0xa1)](0x1));switch(_0x284b7c){case _0x293ea3(0x9d):_0x69dc17[_0x293ea3(0x9d)]=_0x4d5b53;break;case'data':_0x69dc17[_0x293ea3(0x8e)]=_0x69dc17['data']?_0x69dc17[_0x293ea3(0x8e)]+'\x0a'+_0x4d5b53:_0x4d5b53;break;case'id':_0x69dc17['id']=_0x4d5b53;break;}}}}finally{_0x19c49b['releaseLock']();}}function a209_0x5266(){const _0xfc98c7=['15UlvOMd','1780TzdZVQ','parse','event','1356294TLUUZM','decode','startsWith','slice','1793836nuXLFA','Response\x20body\x20is\x20null','body','1305948mvSArm','read','1704246XnTXNe','data','debug','34616VXNEPC','[LLM\x20API\x20SSE]\x20','203ctRtBX','1520976eijayv','108504LtsMwy','split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','pop','getReader','trim'];a209_0x5266=function(){return _0xfc98c7;};return a209_0x5266();}function parseSSEData(_0x8d222b){const _0x1db660=a209_0x4e2a;try{return JSON[_0x1db660(0x9c)](_0x8d222b);}catch(_0x3f5e23){throw new Error(_0x1db660(0x96)+_0x8d222b,{'cause':_0x3f5e23});}}
@@ -1 +1 @@
1
- (function(_0x4e561a,_0x4d9b55){const _0xc1cb91=a210_0x5413,_0x56123a=_0x4e561a();while(!![]){try{const _0x418325=-parseInt(_0xc1cb91(0x184))/0x1+parseInt(_0xc1cb91(0x189))/0x2+-parseInt(_0xc1cb91(0x185))/0x3+parseInt(_0xc1cb91(0x18a))/0x4+-parseInt(_0xc1cb91(0x197))/0x5*(parseInt(_0xc1cb91(0x191))/0x6)+parseInt(_0xc1cb91(0x188))/0x7+-parseInt(_0xc1cb91(0x18f))/0x8;if(_0x418325===_0x4d9b55)break;else _0x56123a['push'](_0x56123a['shift']());}catch(_0x2b2643){_0x56123a['push'](_0x56123a['shift']());}}}(a210_0x4b7d,0x8c2b0));import a210_0x2f0d3a from'string-width';export function stringWidth(_0x1aaa06){return a210_0x2f0d3a(_0x1aaa06);}export function padEnd(_0x842f58,_0x115b08){const _0x3a2747=stringWidth(_0x842f58);if(_0x3a2747>=_0x115b08)return _0x842f58;return _0x842f58+'\x20'['repeat'](_0x115b08-_0x3a2747);}export function padStart(_0xfc71a3,_0x484b4a){const _0x4edb03=stringWidth(_0xfc71a3);if(_0x4edb03>=_0x484b4a)return _0xfc71a3;return'\x20'['repeat'](_0x484b4a-_0x4edb03)+_0xfc71a3;}function a210_0x5413(_0x202d2c,_0x4bb4f3){_0x202d2c=_0x202d2c-0x184;const _0x4b7d6d=a210_0x4b7d();let _0x541384=_0x4b7d6d[_0x202d2c];return _0x541384;}export function centerAlign(_0x44bc9b,_0x3870bc){const _0x34f1b6=a210_0x5413,_0x3941df=stringWidth(_0x44bc9b);if(_0x3941df>_0x3870bc){if(_0x3870bc<=0x1)return'…'[_0x34f1b6(0x186)](0x0,_0x3870bc);let _0x16e096=_0x44bc9b;while(stringWidth(_0x16e096+'…')>_0x3870bc){_0x16e096=_0x16e096['slice'](0x0,-0x1);}return _0x16e096+'…';}if(_0x3941df===_0x3870bc)return _0x44bc9b;const _0x3ba6ce=_0x3870bc-_0x3941df,_0x1f46a3=Math[_0x34f1b6(0x193)](_0x3ba6ce/0x2),_0x21c436=_0x3ba6ce-_0x1f46a3;return'\x20'[_0x34f1b6(0x190)](_0x1f46a3)+_0x44bc9b+'\x20'[_0x34f1b6(0x190)](_0x21c436);}export function escapeStringLiteral(_0x34528b){const _0x1f9e70=a210_0x5413;if(!_0x34528b||_0x34528b[_0x1f9e70(0x18b)]()[_0x1f9e70(0x194)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x5da4de=_0x34528b[_0x1f9e70(0x192)](/'/g,'\x27\x27');return'\x27'+_0x5da4de+'\x27';}export function globToLike(_0x5d35c8){const _0x490c17=a210_0x5413;let _0x4fd918=_0x5d35c8['replace'](/\\/g,'\x5c\x5c')[_0x490c17(0x192)](/%/g,'\x5c%')[_0x490c17(0x192)](/_/g,'\x5c_');return _0x4fd918=_0x4fd918[_0x490c17(0x192)](/\*/g,'%')[_0x490c17(0x192)](/\?/g,'_'),_0x4fd918;}export function buildLikePattern(_0x59e6e4){const _0x224dfd=a210_0x5413;if(!_0x59e6e4||_0x59e6e4['trim']()[_0x224dfd(0x194)]===0x0)throw new Error(_0x224dfd(0x18c));const _0x2597b0=globToLike(_0x59e6e4),_0x58ded6=_0x2597b0[_0x224dfd(0x192)](/'/g,'\x27\x27');return'\x27'+_0x58ded6+'\x27';}export function matchGlobPattern(_0x4cf443,_0x506d40){const _0x1ba960=a210_0x5413,_0x538426=_0x506d40[_0x1ba960(0x192)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x1ba960(0x192)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x3073cd=new RegExp('^'+_0x538426+'$');return _0x3073cd[_0x1ba960(0x196)](_0x4cf443);}export function getSanitizedUsername(){const _0x5d9bda=a210_0x5413,_0x485168=process.env.USER||process.env.USERNAME||_0x5d9bda(0x195);return _0x485168[_0x5d9bda(0x192)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x27e62f=a210_0x5413,_0x37c280=Math[_0x27e62f(0x193)](Math[_0x27e62f(0x18d)]()*0xfffff);return _0x37c280['toString'](0x10)[_0x27e62f(0x187)](0x5,'0');}export function sanitizeFileName(_0x36af96){const _0xccab73=a210_0x5413;return _0x36af96[_0xccab73(0x18e)]()[_0xccab73(0x192)](/[/\\:*?"<>|]/g,'-')[_0xccab73(0x192)](/\s+/g,'-')[_0xccab73(0x192)](/-+/g,'-')[_0xccab73(0x192)](/^-|-$/g,'');}function a210_0x4b7d(){const _0x4907ed=['1389674ukjRLL','3399992wEgORI','trim','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','toLowerCase','6160144ryySae','repeat','225942WIybct','replace','floor','length','unknown','test','25tUPczl','711709dXpooU','556593HTwkwv','substring','padStart','6193852jlBeZH'];a210_0x4b7d=function(){return _0x4907ed;};return a210_0x4b7d();}
1
+ (function(_0x5af6df,_0x5bb470){const _0x501893=a210_0x517b,_0x38cb29=_0x5af6df();while(!![]){try{const _0x301ed5=parseInt(_0x501893(0x12b))/0x1*(-parseInt(_0x501893(0x130))/0x2)+parseInt(_0x501893(0x121))/0x3+parseInt(_0x501893(0x122))/0x4*(-parseInt(_0x501893(0x128))/0x5)+-parseInt(_0x501893(0x129))/0x6+parseInt(_0x501893(0x12c))/0x7*(parseInt(_0x501893(0x11f))/0x8)+parseInt(_0x501893(0x12e))/0x9*(-parseInt(_0x501893(0x11e))/0xa)+parseInt(_0x501893(0x133))/0xb;if(_0x301ed5===_0x5bb470)break;else _0x38cb29['push'](_0x38cb29['shift']());}catch(_0x414ba4){_0x38cb29['push'](_0x38cb29['shift']());}}}(a210_0x2ad1,0x65a86));import a210_0x3f17c1 from'string-width';export function stringWidth(_0x3a1665){return a210_0x3f17c1(_0x3a1665);}export function padEnd(_0x463b86,_0x3f0805){const _0x38d5c4=a210_0x517b,_0x4b5984=stringWidth(_0x463b86);if(_0x4b5984>=_0x3f0805)return _0x463b86;return _0x463b86+'\x20'[_0x38d5c4(0x125)](_0x3f0805-_0x4b5984);}function a210_0x517b(_0x34839a,_0x2265de){_0x34839a=_0x34839a-0x11d;const _0x2ad1cd=a210_0x2ad1();let _0x517b3b=_0x2ad1cd[_0x34839a];return _0x517b3b;}export function padStart(_0x155ade,_0x5ccf5c){const _0x11e775=stringWidth(_0x155ade);if(_0x11e775>=_0x5ccf5c)return _0x155ade;return'\x20'['repeat'](_0x5ccf5c-_0x11e775)+_0x155ade;}export function centerAlign(_0x131781,_0x3aebc4){const _0x3c0c7d=a210_0x517b,_0x1b591e=stringWidth(_0x131781);if(_0x1b591e>_0x3aebc4){if(_0x3aebc4<=0x1)return'…'[_0x3c0c7d(0x126)](0x0,_0x3aebc4);let _0x10e02f=_0x131781;while(stringWidth(_0x10e02f+'…')>_0x3aebc4){_0x10e02f=_0x10e02f[_0x3c0c7d(0x12f)](0x0,-0x1);}return _0x10e02f+'…';}if(_0x1b591e===_0x3aebc4)return _0x131781;const _0xa3282b=_0x3aebc4-_0x1b591e,_0x36ce97=Math[_0x3c0c7d(0x12a)](_0xa3282b/0x2),_0x2f48f7=_0xa3282b-_0x36ce97;return'\x20'[_0x3c0c7d(0x125)](_0x36ce97)+_0x131781+'\x20'[_0x3c0c7d(0x125)](_0x2f48f7);}export function escapeStringLiteral(_0x432ad0){const _0x201ec2=a210_0x517b;if(!_0x432ad0||_0x432ad0[_0x201ec2(0x127)]()['length']===0x0)throw new Error(_0x201ec2(0x11d));const _0x21ccb7=_0x432ad0[_0x201ec2(0x134)](/'/g,'\x27\x27');return'\x27'+_0x21ccb7+'\x27';}function a210_0x2ad1(){const _0x12793d=['repeat','substring','trim','5BmtJvG','795750zKIios','floor','158dcbWDO','807744qKPlPh','toLowerCase','1450665xJEouu','slice','2578lnaOlO','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','padStart','2442121OffQSG','replace','length','Cannot\x20escape\x20empty\x20string\x20literal','10wbOwXX','40vKykGo','\x5c$&','1434624mcjzWm','1453268TcWUME','test','random'];a210_0x2ad1=function(){return _0x12793d;};return a210_0x2ad1();}export function globToLike(_0x1bf0e9){const _0x42dc6c=a210_0x517b;let _0x219258=_0x1bf0e9[_0x42dc6c(0x134)](/\\/g,'\x5c\x5c')[_0x42dc6c(0x134)](/%/g,'\x5c%')[_0x42dc6c(0x134)](/_/g,'\x5c_');return _0x219258=_0x219258['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x219258;}export function buildLikePattern(_0x40af25){const _0x2e8a16=a210_0x517b;if(!_0x40af25||_0x40af25[_0x2e8a16(0x127)]()[_0x2e8a16(0x135)]===0x0)throw new Error(_0x2e8a16(0x131));const _0x2770d5=globToLike(_0x40af25),_0x7e5abd=_0x2770d5['replace'](/'/g,'\x27\x27');return'\x27'+_0x7e5abd+'\x27';}export function matchGlobPattern(_0x4a11e2,_0x39ff5d){const _0x40aee2=a210_0x517b,_0x56b71b=_0x39ff5d[_0x40aee2(0x134)](/[.+^${}()|[\]\\]/g,_0x40aee2(0x120))[_0x40aee2(0x134)](/\*/g,'.*')[_0x40aee2(0x134)](/\?/g,'.'),_0x476314=new RegExp('^'+_0x56b71b+'$');return _0x476314[_0x40aee2(0x123)](_0x4a11e2);}export function getSanitizedUsername(){const _0x5a146f=a210_0x517b,_0x2b5a01=process.env.USER||process.env.USERNAME||'unknown';return _0x2b5a01[_0x5a146f(0x134)](/[^a-zA-Z0-9]/g,'')[_0x5a146f(0x12d)]();}export function generateRandomHex(){const _0x4ccaa5=a210_0x517b,_0x434f74=Math[_0x4ccaa5(0x12a)](Math[_0x4ccaa5(0x124)]()*0xfffff);return _0x434f74['toString'](0x10)[_0x4ccaa5(0x132)](0x5,'0');}export function sanitizeFileName(_0x59ebff){const _0x5b1093=a210_0x517b;return _0x59ebff[_0x5b1093(0x12d)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5b1093(0x134)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x5b1093(0x134)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x99388d,_0xd2d10d){const _0x5ba3a3=a211_0x4a97,_0x23b0f5=_0x99388d();while(!![]){try{const _0x48924c=-parseInt(_0x5ba3a3(0x10c))/0x1*(-parseInt(_0x5ba3a3(0x10a))/0x2)+parseInt(_0x5ba3a3(0x10f))/0x3+-parseInt(_0x5ba3a3(0x11d))/0x4*(parseInt(_0x5ba3a3(0x11b))/0x5)+-parseInt(_0x5ba3a3(0x117))/0x6+parseInt(_0x5ba3a3(0x109))/0x7+parseInt(_0x5ba3a3(0x11c))/0x8+-parseInt(_0x5ba3a3(0x110))/0x9;if(_0x48924c===_0xd2d10d)break;else _0x23b0f5['push'](_0x23b0f5['shift']());}catch(_0x22e5de){_0x23b0f5['push'](_0x23b0f5['shift']());}}}(a211_0x53bc,0xa588a));function a211_0x53bc(){const _0x294a1e=['2429778PifDRk','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','35aPPBjU','4129456VdSKdw','645672jNQKFa','join','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','split','includes','5215469uErUqG','1470HPSMNl','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','1817AjERUr','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','catalog','2288859eKuPYX','10321038pWlPFm','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','database','push','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','trim'];a211_0x53bc=function(){return _0x294a1e;};return a211_0x53bc();}function hasWildcard(_0x406e00){const _0x14d6cb=a211_0x4a97;return _0x406e00[_0x14d6cb(0x108)]('*')||_0x406e00[_0x14d6cb(0x108)]('?');}function a211_0x4a97(_0x22e7af,_0x58b297){_0x22e7af=_0x22e7af-0x107;const _0x53bcac=a211_0x53bc();let _0x4a9787=_0x53bcac[_0x22e7af];return _0x4a9787;}export function parseTableReference(_0x4dc05a){const _0x1833fd=a211_0x4a97;if(!_0x4dc05a||_0x4dc05a[_0x1833fd(0x116)]()[_0x1833fd(0x111)]===0x0)throw new Error(_0x1833fd(0x11a));const _0x16c821=_0x4dc05a[_0x1833fd(0x116)](),_0x1411c2={'original':_0x16c821},_0x2dcb5b=_0x16c821[_0x1833fd(0x107)]('.');if(_0x2dcb5b[_0x1833fd(0x111)]===0x1){const _0x472344=_0x2dcb5b[0x0];if(!_0x472344)throw new Error(_0x1833fd(0x118));_0x1411c2['table']=_0x472344;}else{if(_0x2dcb5b[_0x1833fd(0x111)]===0x2){const [_0x29ff4d,_0x465965]=_0x2dcb5b;if(!_0x29ff4d)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x465965)throw new Error(_0x1833fd(0x119));_0x1411c2[_0x1833fd(0x113)]=_0x29ff4d,_0x1411c2[_0x1833fd(0x120)]=_0x465965;}else{if(_0x2dcb5b[_0x1833fd(0x111)]===0x3){const [_0x348c85,_0x51aead,_0x52abb8]=_0x2dcb5b;if(!_0x348c85||!_0x51aead||!_0x52abb8)throw new Error(_0x1833fd(0x112));_0x1411c2['catalog']=_0x348c85,_0x1411c2[_0x1833fd(0x113)]=_0x51aead,_0x1411c2['table']=_0x52abb8;}else throw new Error(_0x1833fd(0x11f));}}return _0x1411c2;}export function formatTableReference(_0x5ea8eb){const _0x5ba1e9=a211_0x4a97,_0x44abc7=[];return _0x5ea8eb[_0x5ba1e9(0x10e)]&&_0x44abc7['push'](_0x5ea8eb[_0x5ba1e9(0x10e)]),_0x5ea8eb[_0x5ba1e9(0x113)]&&_0x44abc7[_0x5ba1e9(0x114)](_0x5ea8eb[_0x5ba1e9(0x113)]),_0x5ea8eb[_0x5ba1e9(0x120)]&&_0x44abc7[_0x5ba1e9(0x114)](_0x5ea8eb[_0x5ba1e9(0x120)]),_0x44abc7[_0x5ba1e9(0x11e)]('.');}export function validateTableListReference(_0x135612){return undefined;}export function validateTableDescribeReference(_0x5a4f20){const _0x2cb113=a211_0x4a97;if(!_0x5a4f20[_0x2cb113(0x120)])return _0x2cb113(0x10b);if(_0x5a4f20['database']&&hasWildcard(_0x5a4f20[_0x2cb113(0x113)]))return _0x2cb113(0x115);if(hasWildcard(_0x5a4f20[_0x2cb113(0x120)]))return _0x2cb113(0x10d);return undefined;}
1
+ (function(_0x523be8,_0x3c672e){const _0x247e33=a211_0x55e3,_0x35922a=_0x523be8();while(!![]){try{const _0x570289=-parseInt(_0x247e33(0x17c))/0x1*(-parseInt(_0x247e33(0x17e))/0x2)+parseInt(_0x247e33(0x190))/0x3*(-parseInt(_0x247e33(0x193))/0x4)+-parseInt(_0x247e33(0x191))/0x5+parseInt(_0x247e33(0x186))/0x6+parseInt(_0x247e33(0x18a))/0x7*(parseInt(_0x247e33(0x18b))/0x8)+parseInt(_0x247e33(0x180))/0x9*(parseInt(_0x247e33(0x18d))/0xa)+-parseInt(_0x247e33(0x18c))/0xb;if(_0x570289===_0x3c672e)break;else _0x35922a['push'](_0x35922a['shift']());}catch(_0xb415e5){_0x35922a['push'](_0x35922a['shift']());}}}(a211_0x45c4,0xd9a65));function hasWildcard(_0x1cb6a1){const _0x3e57eb=a211_0x55e3;return _0x1cb6a1['includes']('*')||_0x1cb6a1[_0x3e57eb(0x18e)]('?');}function a211_0x45c4(){const _0x6a160a=['trim','599724NHMayV','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','push','database','8942652RCDakq','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','split','Pattern\x20cannot\x20be\x20just\x20a\x20dot','931JwXWYP','67528zSqJYO','12381083QuUKTS','110tAVFVO','includes','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','33159dchOck','6652065SYgOBN','table','292JbHVAq','length','1RtVoGT','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','1616474YQlVBW'];a211_0x45c4=function(){return _0x6a160a;};return a211_0x45c4();}export function parseTableReference(_0x2033c8){const _0x81ad4d=a211_0x55e3;if(!_0x2033c8||_0x2033c8[_0x81ad4d(0x17f)]()[_0x81ad4d(0x194)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x5c4be3=_0x2033c8[_0x81ad4d(0x17f)](),_0x23e80c={'original':_0x5c4be3},_0x2f39c3=_0x5c4be3[_0x81ad4d(0x188)]('.');if(_0x2f39c3[_0x81ad4d(0x194)]===0x1){const _0x2ed1ed=_0x2f39c3[0x0];if(!_0x2ed1ed)throw new Error(_0x81ad4d(0x189));_0x23e80c['table']=_0x2ed1ed;}else{if(_0x2f39c3[_0x81ad4d(0x194)]===0x2){const [_0xf6387a,_0x59bb09]=_0x2f39c3;if(!_0xf6387a)throw new Error(_0x81ad4d(0x183));if(!_0x59bb09)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x23e80c[_0x81ad4d(0x185)]=_0xf6387a,_0x23e80c[_0x81ad4d(0x192)]=_0x59bb09;}else{if(_0x2f39c3[_0x81ad4d(0x194)]===0x3){const [_0x2553d9,_0x20cf3b,_0x463bb8]=_0x2f39c3;if(!_0x2553d9||!_0x20cf3b||!_0x463bb8)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x23e80c['catalog']=_0x2553d9,_0x23e80c[_0x81ad4d(0x185)]=_0x20cf3b,_0x23e80c[_0x81ad4d(0x192)]=_0x463bb8;}else throw new Error(_0x81ad4d(0x187));}}return _0x23e80c;}function a211_0x55e3(_0xd4d733,_0xc22652){_0xd4d733=_0xd4d733-0x17c;const _0x45c482=a211_0x45c4();let _0x55e346=_0x45c482[_0xd4d733];return _0x55e346;}export function formatTableReference(_0x51e1a4){const _0x1ba43d=a211_0x55e3,_0x9e4253=[];return _0x51e1a4[_0x1ba43d(0x181)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x181)]),_0x51e1a4[_0x1ba43d(0x185)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x185)]),_0x51e1a4[_0x1ba43d(0x192)]&&_0x9e4253[_0x1ba43d(0x184)](_0x51e1a4[_0x1ba43d(0x192)]),_0x9e4253['join']('.');}export function validateTableListReference(_0x384be8){return undefined;}export function validateTableDescribeReference(_0x27325b){const _0x4b32c0=a211_0x55e3;if(!_0x27325b[_0x4b32c0(0x192)])return _0x4b32c0(0x18f);if(_0x27325b[_0x4b32c0(0x185)]&&hasWildcard(_0x27325b[_0x4b32c0(0x185)]))return _0x4b32c0(0x182);if(hasWildcard(_0x27325b[_0x4b32c0(0x192)]))return _0x4b32c0(0x17d);return undefined;}
@@ -1 +1 @@
1
- const a212_0xff82ec=a212_0x138b;(function(_0x18847b,_0x4a076e){const _0x3e9d35=a212_0x138b,_0x3b6e8e=_0x18847b();while(!![]){try{const _0x3f50cf=-parseInt(_0x3e9d35(0xd1))/0x1+parseInt(_0x3e9d35(0xc2))/0x2+-parseInt(_0x3e9d35(0xc7))/0x3*(parseInt(_0x3e9d35(0xda))/0x4)+-parseInt(_0x3e9d35(0xd4))/0x5*(-parseInt(_0x3e9d35(0xcd))/0x6)+-parseInt(_0x3e9d35(0xd6))/0x7+parseInt(_0x3e9d35(0xce))/0x8+parseInt(_0x3e9d35(0xd9))/0x9;if(_0x3f50cf===_0x4a076e)break;else _0x3b6e8e['push'](_0x3b6e8e['shift']());}catch(_0x43434b){_0x3b6e8e['push'](_0x3b6e8e['shift']());}}}(a212_0x67f4,0x1ef6d));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a212_0x67f4(){const _0x112a79=['logDir','getLogPath','fileHandler','150270HkowXB','1033032KUcuFJ','INFO','logLevel','213431WntrWB','isInitialized','warn','15bIfzxU','shutdown','300174kQmbEI','error','logger','593343qHuMSG','8oUvcaj','logs','fileOnly','logFileName','tdx','Session\x20ended','tdx.log','366486RtAgEs','addHandler','info','debug','close','105438QQlAnO','consoleHandler','trace'];a212_0x67f4=function(){return _0x112a79;};return a212_0x67f4();}export{LogLevel}from'./logger/index.js';function a212_0x138b(_0x2d5012,_0x2ed36f){_0x2d5012=_0x2d5012-0xc1;const _0x67f49=a212_0x67f4();let _0x138b39=_0x67f49[_0x2d5012];return _0x138b39;}export class TDXLogger{[a212_0xff82ec(0xd0)];['fileOnly'];['logDir'];[a212_0xff82ec(0xdd)];[a212_0xff82ec(0xd8)];['fileHandler']=null;['consoleHandler']=null;constructor(_0x477f6a=LogLevel[a212_0xff82ec(0xcf)],_0x4c0b26=![],_0x159f5b,_0x95ce02=a212_0xff82ec(0xc1)){const _0x41eb37=a212_0xff82ec;this[_0x41eb37(0xd0)]=_0x477f6a,this[_0x41eb37(0xdc)]=_0x4c0b26,this[_0x41eb37(0xca)]=_0x159f5b||join(getGlobalCacheDir(),_0x41eb37(0xdb)),this[_0x41eb37(0xdd)]=_0x95ce02,this['logger']=Logger['of'](_0x41eb37(0xde));}async['init'](){const _0x4f9c1d=a212_0xff82ec,_0x198edc=join(this[_0x4f9c1d(0xca)],this[_0x4f9c1d(0xdd)]);if(Logger[_0x4f9c1d(0xd2)]()){!this['fileOnly']&&(this[_0x4f9c1d(0xc8)]=new ConsoleHandler({'minLevel':LogLevel[_0x4f9c1d(0xcf)],'colors':!![]}),Logger[_0x4f9c1d(0xc3)](this[_0x4f9c1d(0xc8)]));return;}this[_0x4f9c1d(0xcc)]=new FileHandler({'filePath':_0x198edc});const _0x2a5772=[this[_0x4f9c1d(0xcc)]];!this[_0x4f9c1d(0xdc)]&&(this[_0x4f9c1d(0xc8)]=new ConsoleHandler({'minLevel':LogLevel[_0x4f9c1d(0xcf)],'colors':!![]}),_0x2a5772['push'](this[_0x4f9c1d(0xc8)])),await Logger['init']({'defaultLevel':this[_0x4f9c1d(0xd0)],'handlers':_0x2a5772,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0xff82ec(0xc5)](..._0x93622d){const _0x5556e1=a212_0xff82ec;this[_0x5556e1(0xd8)][_0x5556e1(0xc5)](..._0x93622d);}[a212_0xff82ec(0xc9)](..._0xce9061){const _0x10761c=a212_0xff82ec;this[_0x10761c(0xd8)][_0x10761c(0xc9)](..._0xce9061);}[a212_0xff82ec(0xc4)](..._0x3ec093){const _0x9d8bd7=a212_0xff82ec;this[_0x9d8bd7(0xd8)][_0x9d8bd7(0xc4)](..._0x3ec093);}['warn'](..._0x431b00){const _0x5480b9=a212_0xff82ec;this[_0x5480b9(0xd8)][_0x5480b9(0xd3)](..._0x431b00);}[a212_0xff82ec(0xd7)](..._0x117f73){const _0x1ccb48=a212_0xff82ec;this[_0x1ccb48(0xd8)][_0x1ccb48(0xd7)](..._0x117f73);}async[a212_0xff82ec(0xc6)](){const _0x628e90=a212_0xff82ec;this[_0x628e90(0xd8)]['info'](_0x628e90(0xdf)),await Logger[_0x628e90(0xd5)]();}[a212_0xff82ec(0xcb)](){return join(this['logDir'],this['logFileName']);}}
1
+ const a212_0x2f4e7a=a212_0x2b07;(function(_0x548986,_0x455aa8){const _0x3b3505=a212_0x2b07,_0x3b160d=_0x548986();while(!![]){try{const _0x28d170=-parseInt(_0x3b3505(0x1da))/0x1+-parseInt(_0x3b3505(0x1e2))/0x2*(-parseInt(_0x3b3505(0x1e5))/0x3)+parseInt(_0x3b3505(0x1e3))/0x4+-parseInt(_0x3b3505(0x1e8))/0x5+-parseInt(_0x3b3505(0x1e7))/0x6*(parseInt(_0x3b3505(0x1e1))/0x7)+-parseInt(_0x3b3505(0x1e9))/0x8+parseInt(_0x3b3505(0x1d8))/0x9;if(_0x28d170===_0x455aa8)break;else _0x3b160d['push'](_0x3b160d['shift']());}catch(_0x23519e){_0x3b160d['push'](_0x3b160d['shift']());}}}(a212_0x15f0,0x99030));function a212_0x15f0(){const _0x407dbb=['error','fileHandler','info','26859fZBJVo','1240FDpGUB','4759228hDoGHk','INFO','4581CMMrAJ','shutdown','66cjTIxe','3891645FOSwhj','2319592vFTIDr','tdx.log','addHandler','trace','init','getLogPath','logFileName','consoleHandler','logs','debug','push','tdx','fileOnly','2802537ztQYnX','logDir','710719etYXvI','logLevel','logger','warn'];a212_0x15f0=function(){return _0x407dbb;};return a212_0x15f0();}import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';function a212_0x2b07(_0x13ee1b,_0x205f3d){_0x13ee1b=_0x13ee1b-0x1d7;const _0x15f03e=a212_0x15f0();let _0x2b07c5=_0x15f03e[_0x13ee1b];return _0x2b07c5;}export class TDXLogger{[a212_0x2f4e7a(0x1db)];['fileOnly'];['logDir'];[a212_0x2f4e7a(0x1ef)];[a212_0x2f4e7a(0x1dc)];[a212_0x2f4e7a(0x1df)]=null;[a212_0x2f4e7a(0x1f0)]=null;constructor(_0x10135a=LogLevel[a212_0x2f4e7a(0x1e4)],_0x18ae33=![],_0x48dfe9,_0x17e5cd=a212_0x2f4e7a(0x1ea)){const _0x281478=a212_0x2f4e7a;this[_0x281478(0x1db)]=_0x10135a,this[_0x281478(0x1d7)]=_0x18ae33,this[_0x281478(0x1d9)]=_0x48dfe9||join(getGlobalCacheDir(),_0x281478(0x1f1)),this[_0x281478(0x1ef)]=_0x17e5cd,this[_0x281478(0x1dc)]=Logger['of'](_0x281478(0x1f4));}async[a212_0x2f4e7a(0x1ed)](){const _0x3a26f7=a212_0x2f4e7a,_0x334973=join(this[_0x3a26f7(0x1d9)],this['logFileName']);if(Logger['isInitialized']()){!this[_0x3a26f7(0x1d7)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x3a26f7(0x1e4)],'colors':!![]}),Logger[_0x3a26f7(0x1eb)](this['consoleHandler']));return;}this['fileHandler']=new FileHandler({'filePath':_0x334973});const _0x3ec6a5=[this[_0x3a26f7(0x1df)]];!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x3ec6a5[_0x3a26f7(0x1f3)](this[_0x3a26f7(0x1f0)])),await Logger[_0x3a26f7(0x1ed)]({'defaultLevel':this['logLevel'],'handlers':_0x3ec6a5,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x2f4e7a(0x1f2)](..._0x1e428f){const _0xfd488d=a212_0x2f4e7a;this[_0xfd488d(0x1dc)][_0xfd488d(0x1f2)](..._0x1e428f);}[a212_0x2f4e7a(0x1ec)](..._0x422e9d){const _0x2e716b=a212_0x2f4e7a;this[_0x2e716b(0x1dc)]['trace'](..._0x422e9d);}['info'](..._0xae3824){const _0x11e209=a212_0x2f4e7a;this[_0x11e209(0x1dc)]['info'](..._0xae3824);}['warn'](..._0x202666){const _0x3ff053=a212_0x2f4e7a;this['logger'][_0x3ff053(0x1dd)](..._0x202666);}[a212_0x2f4e7a(0x1de)](..._0x7137f2){const _0x5a16c2=a212_0x2f4e7a;this[_0x5a16c2(0x1dc)]['error'](..._0x7137f2);}async['close'](){const _0xff9d35=a212_0x2f4e7a;this['logger'][_0xff9d35(0x1e0)]('Session\x20ended'),await Logger[_0xff9d35(0x1e6)]();}[a212_0x2f4e7a(0x1ee)](){const _0x5ca929=a212_0x2f4e7a;return join(this[_0x5ca929(0x1d9)],this['logFileName']);}}
@@ -1 +1 @@
1
- const a213_0x3f1641=a213_0x3c9a;(function(_0x5b11cf,_0x5c3d8c){const _0x2e8671=a213_0x3c9a,_0x71229f=_0x5b11cf();while(!![]){try{const _0x3132d2=-parseInt(_0x2e8671(0x173))/0x1*(-parseInt(_0x2e8671(0x18c))/0x2)+-parseInt(_0x2e8671(0x182))/0x3*(-parseInt(_0x2e8671(0x171))/0x4)+-parseInt(_0x2e8671(0x19c))/0x5*(parseInt(_0x2e8671(0x191))/0x6)+parseInt(_0x2e8671(0x19b))/0x7*(parseInt(_0x2e8671(0x1a0))/0x8)+parseInt(_0x2e8671(0x18e))/0x9+-parseInt(_0x2e8671(0x17d))/0xa+parseInt(_0x2e8671(0x1a1))/0xb;if(_0x3132d2===_0x5c3d8c)break;else _0x71229f['push'](_0x71229f['shift']());}catch(_0xfb03ed){_0x71229f['push'](_0x71229f['shift']());}}}(a213_0x5912,0x67adb));import{get}from'https';function a213_0x5912(){const _0x363aea=['Invalid\x20version\x20format','stderr','3448080POActt','last_version_check','yellow','channel','green','3QrbraF','latest','tdx\x20upgrade\x20--next','write','next','last_version_check_next','isTTY','statusCode','version','socket','64EYLHMK','utils/version-check-next','4303998VgBtUX','latestVersion','currentVersion','6FhLYUU','data','Update\x20available:','utils/version-check','toISOString','now','gray','Request\x20timeout','end','stable','7343bzvEqM','4100650weSQJT','cyan','tdx\x20upgrade','getTime','328lWvHvk','2048937YyrHRX','3072364XHFdVO','\x0aUpdate\x20available:\x20','3563LKDUcr','updateAvailable','error','destroy','Run:','parse','unref','lastCheck'];a213_0x5912=function(){return _0x363aea;};return a213_0x5912();}function a213_0x3c9a(_0x49f449,_0x10871f){_0x49f449=_0x49f449-0x171;const _0x5912f2=a213_0x5912();let _0x3c9a79=_0x5912f2[_0x49f449];return _0x3c9a79;}import{gt,valid}from'semver';import a213_0x336f34 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_0x3f1641(0x17e),a213_0x3f1641(0x194)),nextVersionCache=createGlobalCache(a213_0x3f1641(0x187),a213_0x3f1641(0x18d));function getCacheForChannel(_0x285695){const _0x4e53fa=a213_0x3f1641;return _0x285695===_0x4e53fa(0x186)?nextVersionCache:stableVersionCache;}function readCache(_0x262905){return getCacheForChannel(_0x262905)['read']()??null;}function writeCache(_0x3e2a18,_0x17fa07){const _0x52401c=a213_0x3f1641;try{getCacheForChannel(_0x17fa07)['write']({'lastCheck':new Date()[_0x52401c(0x195)](),'latestVersion':_0x3e2a18});}catch{}}function isCacheValid(_0x4a57d1){const _0xfe40c=a213_0x3f1641;if(!_0x4a57d1)return![];const _0x4c74d4=new Date(_0x4a57d1[_0xfe40c(0x17a)])[_0xfe40c(0x19f)](),_0x4bc876=Date[_0xfe40c(0x196)]();return _0x4bc876-_0x4c74d4<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2777ad=a213_0x3f1641(0x19a)){const _0x24445f=a213_0x3f1641,_0x443606=_0x2777ad===_0x24445f(0x186)?_0x24445f(0x186):_0x24445f(0x183),_0x36baf6=NPM_REGISTRY_BASE+'/'+_0x443606;return new Promise((_0x191288,_0x2f7a7f)=>{const _0x2d3101=_0x24445f,_0x367c72=get(_0x36baf6,{'timeout':TIMEOUT_MS},_0x52dc87=>{const _0x42b876=a213_0x3c9a;if(_0x52dc87[_0x42b876(0x189)]!==0xc8){clearTimeout(_0x5c7d97),_0x2f7a7f(new Error('HTTP\x20'+_0x52dc87[_0x42b876(0x189)]));return;}let _0x2642f6='';_0x52dc87['on'](_0x42b876(0x192),_0x19c17f=>{_0x2642f6+=_0x19c17f;}),_0x52dc87['on'](_0x42b876(0x199),()=>{const _0x2e4c2e=_0x42b876;clearTimeout(_0x5c7d97);try{const _0x27815d=JSON[_0x2e4c2e(0x178)](_0x2642f6);if(!valid(_0x27815d[_0x2e4c2e(0x18a)])){_0x2f7a7f(new Error(_0x2e4c2e(0x17b)));return;}_0x191288(_0x27815d[_0x2e4c2e(0x18a)]);}catch(_0x356ea6){_0x2f7a7f(_0x356ea6);}});})['on'](_0x2d3101(0x175),_0x98a27f=>{clearTimeout(_0x5c7d97),_0x2f7a7f(_0x98a27f);});_0x367c72['on'](_0x2d3101(0x18b),_0x5e0d2a=>{const _0x3e3616=_0x2d3101;_0x5e0d2a[_0x3e3616(0x179)]();});const _0x5c7d97=setTimeout(()=>{const _0x975c5d=_0x2d3101;_0x367c72[_0x975c5d(0x176)](),_0x2f7a7f(new Error(_0x975c5d(0x198)));},TIMEOUT_MS);_0x5c7d97['unref']();});}export async function checkForUpdate(_0x4d0cfc,_0x5d2787=a213_0x3f1641(0x19a)){const _0x3d8145=a213_0x3f1641;try{const _0x3d8d82=readCache(_0x5d2787);if(isCacheValid(_0x3d8d82)){const _0x3b0645=gt(_0x3d8d82[_0x3d8145(0x18f)],_0x4d0cfc);return{'updateAvailable':_0x3b0645,'currentVersion':_0x4d0cfc,'latestVersion':_0x3d8d82['latestVersion'],'channel':_0x5d2787};}const _0x565370=await fetchLatestVersion(_0x5d2787);writeCache(_0x565370,_0x5d2787);const _0x1a9179=gt(_0x565370,_0x4d0cfc);return{'updateAvailable':_0x1a9179,'currentVersion':_0x4d0cfc,'latestVersion':_0x565370,'channel':_0x5d2787};}catch{return null;}}export function displayUpdateNotification(_0x5b8f66){const _0x3fb6c5=a213_0x3f1641;if(!_0x5b8f66[_0x3fb6c5(0x174)])return;const _0xde433a=_0x5b8f66[_0x3fb6c5(0x180)]===_0x3fb6c5(0x186)?_0x3fb6c5(0x184):_0x3fb6c5(0x19e),_0x19892d=process['stderr'][_0x3fb6c5(0x188)]&&!process.env.NO_COLOR,_0xb30e84=_0x19892d?a213_0x336f34[_0x3fb6c5(0x197)]('→'):'→',_0x45fc77=_0x19892d?a213_0x336f34['dim'](_0x5b8f66[_0x3fb6c5(0x190)]):_0x5b8f66['currentVersion'],_0x196c41=_0x19892d?a213_0x336f34[_0x3fb6c5(0x181)](_0x5b8f66['latestVersion']):_0x5b8f66['latestVersion'],_0x2a71ad=_0x19892d?a213_0x336f34[_0x3fb6c5(0x19d)](_0xde433a):_0xde433a,_0x381c43=_0x19892d?'\x0a'+a213_0x336f34[_0x3fb6c5(0x17f)](_0x3fb6c5(0x193))+'\x20'+_0x45fc77+'\x20'+_0xb30e84+'\x20'+_0x196c41+'\x0a'+a213_0x336f34['dim'](_0x3fb6c5(0x177))+'\x20'+_0x2a71ad+'\x0a':_0x3fb6c5(0x172)+_0x45fc77+'\x20'+_0xb30e84+'\x20'+_0x196c41+'\x0aRun:\x20'+_0x2a71ad+'\x0a';process[_0x3fb6c5(0x17c)][_0x3fb6c5(0x185)](_0x381c43);}
1
+ const a213_0x46d049=a213_0x5a46;(function(_0x580eef,_0x38044f){const _0x318c3c=a213_0x5a46,_0x164095=_0x580eef();while(!![]){try{const _0x267318=parseInt(_0x318c3c(0x11b))/0x1*(-parseInt(_0x318c3c(0x141))/0x2)+parseInt(_0x318c3c(0x11e))/0x3*(parseInt(_0x318c3c(0x143))/0x4)+-parseInt(_0x318c3c(0x12f))/0x5+parseInt(_0x318c3c(0x11a))/0x6+-parseInt(_0x318c3c(0x11d))/0x7+-parseInt(_0x318c3c(0x134))/0x8*(parseInt(_0x318c3c(0x117))/0x9)+parseInt(_0x318c3c(0x12c))/0xa*(parseInt(_0x318c3c(0x133))/0xb);if(_0x267318===_0x38044f)break;else _0x164095['push'](_0x164095['shift']());}catch(_0x3b3b3){_0x164095['push'](_0x164095['shift']());}}}(a213_0x64fe,0x53f24));function a213_0x5a46(_0x4f8066,_0x355d31){_0x4f8066=_0x4f8066-0x116;const _0x64fe9f=a213_0x64fe();let _0x5a46e6=_0x64fe9f[_0x4f8066];return _0x5a46e6;}import{get}from'https';function a213_0x64fe(){const _0x101ebb=['Invalid\x20version\x20format','48879hyWZNW','latest','last_version_check_next','3353988qKMqJl','41IDqzHG','statusCode','4051810loGtFl','15JGCLCb','data','last_version_check','Request\x20timeout','updateAvailable','utils/version-check-next','latestVersion','HTTP\x20','https://registry.npmjs.org/@treasuredata/tdx','tdx\x20upgrade\x20--next','unref','getTime','dim','gray','870ocLURb','next','version','3220680bqWVWh','isTTY','socket','cyan','168586DPkmJN','808KTGLvL','\x0aRun:\x20','lastCheck','stderr','destroy','parse','\x0aUpdate\x20available:\x20','write','tdx\x20upgrade','Update\x20available:','now','Run:','error','8088tRUUJq','utils/version-check','311028XPoJIR','currentVersion'];a213_0x64fe=function(){return _0x101ebb;};return a213_0x64fe();}import{gt,valid}from'semver';import a213_0x96268b from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a213_0x46d049(0x126),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a213_0x46d049(0x120),a213_0x46d049(0x142)),nextVersionCache=createGlobalCache(a213_0x46d049(0x119),a213_0x46d049(0x123));function getCacheForChannel(_0x417a8d){const _0x4b7083=a213_0x46d049;return _0x417a8d===_0x4b7083(0x12d)?nextVersionCache:stableVersionCache;}function readCache(_0x2325f7){return getCacheForChannel(_0x2325f7)['read']()??null;}function writeCache(_0x2332de,_0x5afa61){const _0x31f705=a213_0x46d049;try{getCacheForChannel(_0x5afa61)[_0x31f705(0x13b)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2332de});}catch{}}function isCacheValid(_0x531507){const _0x27f2f8=a213_0x46d049;if(!_0x531507)return![];const _0x3f5058=new Date(_0x531507[_0x27f2f8(0x136)])[_0x27f2f8(0x129)](),_0x59bc1d=Date[_0x27f2f8(0x13e)]();return _0x59bc1d-_0x3f5058<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x22a4b0='stable'){const _0xd883d=a213_0x46d049,_0x5a183a=_0x22a4b0===_0xd883d(0x12d)?_0xd883d(0x12d):_0xd883d(0x118),_0x1fc8ba=NPM_REGISTRY_BASE+'/'+_0x5a183a;return new Promise((_0x39cdcf,_0x2d9f6c)=>{const _0x340e4f=_0xd883d,_0x27e12c=get(_0x1fc8ba,{'timeout':TIMEOUT_MS},_0x5c441e=>{const _0x194055=a213_0x5a46;if(_0x5c441e[_0x194055(0x11c)]!==0xc8){clearTimeout(_0x1da971),_0x2d9f6c(new Error(_0x194055(0x125)+_0x5c441e[_0x194055(0x11c)]));return;}let _0x30adbe='';_0x5c441e['on'](_0x194055(0x11f),_0x2ae337=>{_0x30adbe+=_0x2ae337;}),_0x5c441e['on']('end',()=>{const _0x155a51=_0x194055;clearTimeout(_0x1da971);try{const _0x1f663d=JSON[_0x155a51(0x139)](_0x30adbe);if(!valid(_0x1f663d['version'])){_0x2d9f6c(new Error(_0x155a51(0x116)));return;}_0x39cdcf(_0x1f663d[_0x155a51(0x12e)]);}catch(_0x5d17db){_0x2d9f6c(_0x5d17db);}});})['on'](_0x340e4f(0x140),_0x50c216=>{clearTimeout(_0x1da971),_0x2d9f6c(_0x50c216);});_0x27e12c['on'](_0x340e4f(0x131),_0x198aa2=>{const _0x4de0a1=_0x340e4f;_0x198aa2[_0x4de0a1(0x128)]();});const _0x1da971=setTimeout(()=>{const _0xfc021d=_0x340e4f;_0x27e12c[_0xfc021d(0x138)](),_0x2d9f6c(new Error(_0xfc021d(0x121)));},TIMEOUT_MS);_0x1da971[_0x340e4f(0x128)]();});}export async function checkForUpdate(_0x4ee05c,_0x43087f='stable'){const _0x3fb028=a213_0x46d049;try{const _0x3653d2=readCache(_0x43087f);if(isCacheValid(_0x3653d2)){const _0x3864f3=gt(_0x3653d2[_0x3fb028(0x124)],_0x4ee05c);return{'updateAvailable':_0x3864f3,'currentVersion':_0x4ee05c,'latestVersion':_0x3653d2[_0x3fb028(0x124)],'channel':_0x43087f};}const _0x23a7c7=await fetchLatestVersion(_0x43087f);writeCache(_0x23a7c7,_0x43087f);const _0x126856=gt(_0x23a7c7,_0x4ee05c);return{'updateAvailable':_0x126856,'currentVersion':_0x4ee05c,'latestVersion':_0x23a7c7,'channel':_0x43087f};}catch{return null;}}export function displayUpdateNotification(_0x3f28a2){const _0x4ed7f0=a213_0x46d049;if(!_0x3f28a2[_0x4ed7f0(0x122)])return;const _0x3649f4=_0x3f28a2['channel']==='next'?_0x4ed7f0(0x127):_0x4ed7f0(0x13c),_0xa68b7e=process[_0x4ed7f0(0x137)][_0x4ed7f0(0x130)]&&!process.env.NO_COLOR,_0x57d961=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x12b)]('→'):'→',_0x5f4677=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x12a)](_0x3f28a2[_0x4ed7f0(0x144)]):_0x3f28a2[_0x4ed7f0(0x144)],_0x11cdad=_0xa68b7e?a213_0x96268b['green'](_0x3f28a2['latestVersion']):_0x3f28a2[_0x4ed7f0(0x124)],_0x545019=_0xa68b7e?a213_0x96268b[_0x4ed7f0(0x132)](_0x3649f4):_0x3649f4,_0x1136db=_0xa68b7e?'\x0a'+a213_0x96268b['yellow'](_0x4ed7f0(0x13d))+'\x20'+_0x5f4677+'\x20'+_0x57d961+'\x20'+_0x11cdad+'\x0a'+a213_0x96268b[_0x4ed7f0(0x12a)](_0x4ed7f0(0x13f))+'\x20'+_0x545019+'\x0a':_0x4ed7f0(0x13a)+_0x5f4677+'\x20'+_0x57d961+'\x20'+_0x11cdad+_0x4ed7f0(0x135)+_0x545019+'\x0a';process['stderr'][_0x4ed7f0(0x13b)](_0x1136db);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.6",
3
+ "version": "2026.3.8",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {