@treasuredata/tdx 2026.3.10 → 2026.3.11

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 (201) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/profile-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/schedule-command.js +1 -1
  37. package/dist/commands/segment-command.js +1 -1
  38. package/dist/commands/segment-create-command.js +1 -1
  39. package/dist/commands/segment-fields-command.js +1 -1
  40. package/dist/commands/segment-pull-command.js +1 -1
  41. package/dist/commands/segment-push-command.js +1 -1
  42. package/dist/commands/segment-update-command.js +1 -1
  43. package/dist/commands/segment-use-command.js +1 -1
  44. package/dist/commands/segment-validate-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/status-command.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/unset-command.js +1 -1
  50. package/dist/commands/upgrade-command.js +1 -1
  51. package/dist/commands/use-command.js +1 -1
  52. package/dist/commands/user-command.js +1 -1
  53. package/dist/commands/workflow-command.js +1 -1
  54. package/dist/core/auth.js +1 -1
  55. package/dist/core/command-output.js +1 -1
  56. package/dist/core/config.js +1 -1
  57. package/dist/core/connection-cache.js +1 -1
  58. package/dist/core/constants.js +1 -1
  59. package/dist/core/credential-cache.js +1 -1
  60. package/dist/core/global-context.js +1 -1
  61. package/dist/core/keychain.js +1 -1
  62. package/dist/core/oauth-keychain.js +1 -1
  63. package/dist/core/oauth.js +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/project-config.js +1 -1
  66. package/dist/core/session.js +1 -1
  67. package/dist/core/user-cache.js +1 -1
  68. package/dist/core/version.js +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/mcp/server.js +1 -1
  71. package/dist/mcp/tools/index.js +1 -1
  72. package/dist/mcp/tools/tdx-run.js +1 -1
  73. package/dist/mcp/tools/tdx-search.js +1 -1
  74. package/dist/mcp/utils.js +1 -1
  75. package/dist/proxy/claude-usage-tracker.js +1 -1
  76. package/dist/proxy/passthrough-server.js +1 -1
  77. package/dist/proxy/sse-usage-parser.js +1 -1
  78. package/dist/sdk/agent/agent-config.js +1 -1
  79. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  80. package/dist/sdk/agent/agent-yaml.js +1 -1
  81. package/dist/sdk/agent/test/evaluator.js +1 -1
  82. package/dist/sdk/agent/test/executor.js +1 -1
  83. package/dist/sdk/agent/test/index.js +1 -1
  84. package/dist/sdk/agent/test/output.js +1 -1
  85. package/dist/sdk/agent/test/parser.js +1 -1
  86. package/dist/sdk/agent/tool-target-registry.js +1 -1
  87. package/dist/sdk/api.js +1 -1
  88. package/dist/sdk/client/cdp-api-client.js +1 -1
  89. package/dist/sdk/client/delivery-api-client.js +1 -1
  90. package/dist/sdk/client/endpoints.js +1 -1
  91. package/dist/sdk/client/engage-api-client.js +1 -1
  92. package/dist/sdk/client/http-client.js +1 -1
  93. package/dist/sdk/client/llm-api-client.js +1 -1
  94. package/dist/sdk/client/oauth-refresh.js +1 -1
  95. package/dist/sdk/client/rate-limiter.js +1 -1
  96. package/dist/sdk/client/td-api-client.js +1 -1
  97. package/dist/sdk/client/trino-api-client.js +1 -1
  98. package/dist/sdk/client/workflow-client.js +1 -1
  99. package/dist/sdk/connection-validator.js +1 -1
  100. package/dist/sdk/connection.js +1 -1
  101. package/dist/sdk/delivery.js +1 -1
  102. package/dist/sdk/engage/campaign-pull.js +1 -1
  103. package/dist/sdk/engage/campaign-push.js +1 -1
  104. package/dist/sdk/engage/campaign-validator.js +1 -1
  105. package/dist/sdk/engage/campaign-yaml.js +1 -1
  106. package/dist/sdk/engage/template-pull.js +1 -1
  107. package/dist/sdk/engage/template-push.js +1 -1
  108. package/dist/sdk/engage/template-validator.js +1 -1
  109. package/dist/sdk/engage/template-yaml.js +1 -1
  110. package/dist/sdk/engage/types/campaign-def.js +1 -1
  111. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  112. package/dist/sdk/engage/types/template-schema.js +1 -1
  113. package/dist/sdk/engage.js +1 -1
  114. package/dist/sdk/errors.js +1 -1
  115. package/dist/sdk/index.js +1 -1
  116. package/dist/sdk/io/index.js +1 -1
  117. package/dist/sdk/io/node-filesystem.js +1 -1
  118. package/dist/sdk/job.js +1 -1
  119. package/dist/sdk/journey.js +1 -1
  120. package/dist/sdk/llm/chat-cache.js +1 -1
  121. package/dist/sdk/llm/index.js +1 -1
  122. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  123. package/dist/sdk/llm/model-factors.js +1 -1
  124. package/dist/sdk/personalization.js +1 -1
  125. package/dist/sdk/query/index.js +1 -1
  126. package/dist/sdk/query/sql-parser.js +1 -1
  127. package/dist/sdk/realtime.js +1 -1
  128. package/dist/sdk/schedule.js +1 -1
  129. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  130. package/dist/sdk/segment/fields-display.js +1 -1
  131. package/dist/sdk/segment/file-discovery.js +1 -1
  132. package/dist/sdk/segment/journey-utils.js +1 -1
  133. package/dist/sdk/segment/journey-validator.js +1 -1
  134. package/dist/sdk/segment/journey-yaml.js +1 -1
  135. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  136. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  137. package/dist/sdk/segment/pull-workflow.js +1 -1
  138. package/dist/sdk/segment/push-recovery.js +1 -1
  139. package/dist/sdk/segment/push-workflow.js +1 -1
  140. package/dist/sdk/segment/resolution-context.js +1 -1
  141. package/dist/sdk/segment/segment-path-parser.js +1 -1
  142. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  143. package/dist/sdk/segment/segment-validator.js +1 -1
  144. package/dist/sdk/segment/target-resolution.js +1 -1
  145. package/dist/sdk/segment/tdx-config.js +1 -1
  146. package/dist/sdk/segment/types/activation-schema.js +1 -1
  147. package/dist/sdk/segment/types/journey-def.js +1 -1
  148. package/dist/sdk/segment/types/journey-schema.js +1 -1
  149. package/dist/sdk/segment/types/segment-def.js +1 -1
  150. package/dist/sdk/segment/types/segment-schema.js +1 -1
  151. package/dist/sdk/segment/validate-files.js +1 -1
  152. package/dist/sdk/segment/yaml-validator.js +1 -1
  153. package/dist/sdk/segment.js +1 -1
  154. package/dist/sdk/types/index.js +1 -1
  155. package/dist/sdk/types/progress.js +1 -1
  156. package/dist/sdk/user.js +1 -1
  157. package/dist/sdk/util/format-detector.js +1 -1
  158. package/dist/sdk/util/formatters.js +1 -1
  159. package/dist/sdk/util/index.js +1 -1
  160. package/dist/sdk/util/paginate.js +1 -1
  161. package/dist/sdk/util/tree-formatter.js +1 -1
  162. package/dist/sdk/workflow/archive-validation.js +1 -1
  163. package/dist/sdk/workflow/clone-workflow.js +1 -1
  164. package/dist/sdk/workflow/index.js +1 -1
  165. package/dist/sdk/workflow/pull-workflow.js +1 -1
  166. package/dist/sdk/workflow/push-workflow.js +1 -1
  167. package/dist/sdk/workflow/tdx-config.js +1 -1
  168. package/dist/sdk/workflow/workflow-utils.js +1 -1
  169. package/dist/test-utils/command-runner.js +1 -1
  170. package/dist/test-utils/factories.js +1 -1
  171. package/dist/test-utils/fixtures.js +1 -1
  172. package/dist/test-utils/http-mock.js +1 -1
  173. package/dist/test-utils/index.js +1 -1
  174. package/dist/utils/async.js +1 -1
  175. package/dist/utils/colors.js +1 -1
  176. package/dist/utils/diff.js +1 -1
  177. package/dist/utils/file-permissions.js +1 -1
  178. package/dist/utils/file-reader.js +1 -1
  179. package/dist/utils/github-releases.js +1 -1
  180. package/dist/utils/global-cache.js +1 -1
  181. package/dist/utils/json-loader.js +1 -1
  182. package/dist/utils/local-cache.js +1 -1
  183. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  184. package/dist/utils/logger/formatters/index.js +1 -1
  185. package/dist/utils/logger/handlers/console-handler.js +1 -1
  186. package/dist/utils/logger/handlers/file-handler.js +1 -1
  187. package/dist/utils/logger/handlers/index.js +1 -1
  188. package/dist/utils/logger/handlers/null-handler.js +1 -1
  189. package/dist/utils/logger/index.js +1 -1
  190. package/dist/utils/logger/logger.js +1 -1
  191. package/dist/utils/logger/types.js +1 -1
  192. package/dist/utils/option-validation.js +1 -1
  193. package/dist/utils/process.js +1 -1
  194. package/dist/utils/prompt.js +1 -1
  195. package/dist/utils/spinner.js +1 -1
  196. package/dist/utils/sse-parser.js +1 -1
  197. package/dist/utils/string-utils.js +1 -1
  198. package/dist/utils/table-ref-parser.js +1 -1
  199. package/dist/utils/tdx-logger.js +1 -1
  200. package/dist/utils/version-check.js +1 -1
  201. package/package.json +1 -1
@@ -1 +1 @@
1
- const a206_0x5d5f90=a206_0x2743;(function(_0x3d5da6,_0x1455f1){const _0x34110a=a206_0x2743,_0x5d5dd4=_0x3d5da6();while(!![]){try{const _0x24bd38=-parseInt(_0x34110a(0xd5))/0x1*(parseInt(_0x34110a(0xa1))/0x2)+parseInt(_0x34110a(0xa8))/0x3*(parseInt(_0x34110a(0xb7))/0x4)+parseInt(_0x34110a(0xaf))/0x5*(-parseInt(_0x34110a(0xd3))/0x6)+-parseInt(_0x34110a(0xa4))/0x7*(parseInt(_0x34110a(0xa2))/0x8)+parseInt(_0x34110a(0xa0))/0x9+-parseInt(_0x34110a(0xc4))/0xa+parseInt(_0x34110a(0xa9))/0xb*(parseInt(_0x34110a(0xb9))/0xc);if(_0x24bd38===_0x1455f1)break;else _0x5d5dd4['push'](_0x5d5dd4['shift']());}catch(_0x242e6a){_0x5d5dd4['push'](_0x5d5dd4['shift']());}}}(a206_0x3762,0xd04ac));function a206_0x2743(_0x317d55,_0xcee58){_0x317d55=_0x317d55-0xa0;const _0x3762be=a206_0x3762();let _0x274349=_0x3762be[_0x317d55];return _0x274349;}function a206_0x3762(){const _0xa10edf=['stdout','ps\x20-p\x20','error','tcsh','ksh','1743900ycqAsI','where.exe','stderr','open','treasure\x20studio','href','trim','protocol','ppid','dash','join','Unsupported\x20protocol:\x20','ion','data','kill','2502vCKZSk','pwsh','1gceOir','https:','map','test','powershell','exit','comm','xonsh','14335038Dwleom','2163714IuaYXE','3671504WPnHND','split','21SPofRu','pipe','zsh','xdg-open','985353VDXYcM','22fkIkjP','platform','fish','which','cmd.exe','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','11080ubkkRJ','win32','isInteger','has','pop','replace','unref','pid','20jyQoDy','code','7051560USqfcI','toString','elvish','start','Invalid\x20URL:\x20','electron'];a206_0x3762=function(){return _0xa10edf;};return a206_0x3762();}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a206_0x5d5f90(0xa6),'sh',a206_0x5d5f90(0xab),a206_0x5d5f90(0xc3),a206_0x5d5f90(0xc2),'csh',a206_0x5d5f90(0xcd),a206_0x5d5f90(0xd4),a206_0x5d5f90(0xd9),'nu',a206_0x5d5f90(0xd0),a206_0x5d5f90(0xbb),a206_0x5d5f90(0xdc)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a206_0x5d5f90(0xb8),'cursor',a206_0x5d5f90(0xbe),a206_0x5d5f90(0xc8)]);function getProcessInfoWindows(_0x30a4fa){const _0x145d28=a206_0x5d5f90;try{if(!Number[_0x145d28(0xb1)](_0x30a4fa)||_0x30a4fa<=0x0)return null;const _0x321e01='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x30a4fa+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0xc43f45=execSync(_0x145d28(0xae)+_0x321e01+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x145d28(0xa5),_0x145d28(0xa5),_0x145d28(0xa5)]})[_0x145d28(0xca)]();if(!_0xc43f45)return null;const [_0x59dfd5,..._0x2a19d8]=_0xc43f45['split'](','),_0x3d6d65=parseInt(_0x59dfd5,0xa),_0x2d8b7a=_0x2a19d8['join'](',')[_0x145d28(0xca)]();if(isNaN(_0x3d6d65)||!_0x2d8b7a)return null;return{'pid':_0x30a4fa,'ppid':_0x3d6d65,'comm':_0x2d8b7a['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x526aac){const _0x4473b9=a206_0x5d5f90;try{const _0x2920c1=0x400000;if(!Number[_0x4473b9(0xb1)](_0x526aac)||_0x526aac<=0x0||_0x526aac>_0x2920c1)return null;const _0xd16601=execSync(_0x4473b9(0xc0)+_0x526aac+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x4473b9(0xa5)})['trim'](),[_0x29fd4f,..._0x53b7e1]=_0xd16601['split'](/\s+/),_0x6fba48=parseInt(_0x29fd4f,0xa),_0x1339ae=_0x53b7e1[_0x4473b9(0xce)]('\x20');if(isNaN(_0x6fba48))return null;return{'pid':_0x526aac,'ppid':_0x6fba48,'comm':_0x1339ae};}catch{return null;}}function getProcessInfo(_0x4af919){const _0x4d8be3=a206_0x5d5f90;if(process[_0x4d8be3(0xaa)]===_0x4d8be3(0xb0))return getProcessInfoWindows(_0x4af919);return getProcessInfoPosix(_0x4af919);}function getBasename(_0x50b0a8){const _0x5247d1=a206_0x5d5f90;return _0x50b0a8[_0x5247d1(0xb4)](/^-/,'')[_0x5247d1(0xa3)]('/')[_0x5247d1(0xb3)]()?.['toLowerCase']()||'';}function isShell(_0xf28b95){const _0x40f2ad=a206_0x5d5f90;return SHELL_NAMES[_0x40f2ad(0xb2)](getBasename(_0xf28b95));}function isEphemeralShellSpawner(_0x18c5f8){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x18c5f8));}let cachedShellPID;function findShellPID(){const _0x19290f=a206_0x5d5f90;if(process[_0x19290f(0xcc)]===undefined)return process[_0x19290f(0xb6)];let _0x1c53c0=process['ppid'];const _0x43bdcf=0xa;let _0x4c4022=0x0;while(_0x4c4022<_0x43bdcf){const _0x4b5360=getProcessInfo(_0x1c53c0);if(!_0x4b5360)break;if(isShell(_0x4b5360[_0x19290f(0xdb)])){const _0x1b053e=getProcessInfo(_0x4b5360[_0x19290f(0xcc)]);if(_0x1b053e&&isEphemeralShellSpawner(_0x1b053e[_0x19290f(0xdb)])){_0x1c53c0=_0x4b5360[_0x19290f(0xcc)],_0x4c4022++;continue;}return _0x4b5360[_0x19290f(0xb6)];}if(_0x4b5360[_0x19290f(0xcc)]===0x0||_0x4b5360[_0x19290f(0xcc)]===0x1){if(isShell(_0x4b5360[_0x19290f(0xdb)]))return _0x4b5360[_0x19290f(0xb6)];break;}_0x1c53c0=_0x4b5360['ppid'],_0x4c4022++;}return process['ppid']!==undefined?process[_0x19290f(0xcc)]:process[_0x19290f(0xb6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2daf2d){const _0x1cd832=a206_0x5d5f90;if(!Number[_0x1cd832(0xb1)](_0x2daf2d)||_0x2daf2d<=0x0)return![];try{return process[_0x1cd832(0xd2)](_0x2daf2d,0x0),!![];}catch{return![];}}export function openBrowser(_0x3ca662){const _0x10685f=a206_0x5d5f90;let _0x3b94f6;try{_0x3b94f6=new URL(_0x3ca662);}catch{throw new Error(_0x10685f(0xbd)+_0x3ca662);}if(_0x3b94f6[_0x10685f(0xcb)]!=='http:'&&_0x3b94f6[_0x10685f(0xcb)]!==_0x10685f(0xd6))throw new Error(_0x10685f(0xcf)+_0x3b94f6['protocol']);const _0x237b0e=_0x3b94f6[_0x10685f(0xc9)],_0x16eea5=process[_0x10685f(0xaa)];if(_0x16eea5===_0x10685f(0xb0))spawn(_0x10685f(0xad),['/c',_0x10685f(0xbc),'',_0x237b0e],{'detached':!![],'stdio':'ignore'})[_0x10685f(0xb5)]();else{const _0x197769=_0x16eea5==='darwin'?_0x10685f(0xc7):_0x10685f(0xa7);spawn(_0x197769,[_0x237b0e],{'detached':!![],'stdio':'ignore'})[_0x10685f(0xb5)]();}}export function isWindows(){const _0x20763e=a206_0x5d5f90;return process[_0x20763e(0xaa)]===_0x20763e(0xb0);}export function getCrossSpawnOptions(_0x22666e){return{..._0x22666e??{},'shell':isWindows()};}export function escapeWindowsArg(_0x23af78){const _0x52c3c2=a206_0x5d5f90;if(!/[ \t"&|<>^%!`\r\n]/[_0x52c3c2(0xd8)](_0x23af78))return _0x23af78;const _0x1376e2=_0x23af78['replace'](/"/g,'\x22\x22');return'\x22'+_0x1376e2+'\x22';}export function crossSpawn(_0x487d48,_0x2efa0f,_0x2e92ce){const _0x501b50=a206_0x5d5f90;if(isWindows()){const _0x13e7e1=escapeWindowsArg(_0x487d48),_0x8b6710=_0x2efa0f[_0x501b50(0xd7)](escapeWindowsArg),_0x22797b=[_0x13e7e1,..._0x8b6710][_0x501b50(0xce)]('\x20');return spawn(_0x22797b,[],{..._0x2e92ce,'shell':!![]});}return spawn(_0x487d48,_0x2efa0f,{..._0x2e92ce,'shell':![]});}export function gracefulExit(_0x489207=0x0){const _0x349820=a206_0x5d5f90;isWindows()?setTimeout(()=>process[_0x349820(0xda)](_0x489207),0x32):process[_0x349820(0xda)](_0x489207);}export function findExecutable(_0xcab5fa,_0x538cb4=0x1388){return new Promise(_0x538726=>{const _0x5f42cb=a206_0x2743,_0x16eeb8=isWindows()?_0x5f42cb(0xc5):_0x5f42cb(0xac);let _0x11d53a=![];const _0x42230d=crossSpawn(_0x16eeb8,[_0xcab5fa],{'stdio':_0x5f42cb(0xa5),'shell':isWindows()}),_0x7c2458=setTimeout(()=>{const _0x27ccc6=_0x5f42cb;!_0x11d53a&&(_0x11d53a=!![],_0x42230d[_0x27ccc6(0xd2)](),_0x538726(null));},_0x538cb4);let _0x595aec='';_0x42230d[_0x5f42cb(0xbf)]?.['on'](_0x5f42cb(0xd1),_0x190c98=>{const _0x462cb8=_0x5f42cb;_0x595aec+=_0x190c98[_0x462cb8(0xba)]();}),_0x42230d[_0x5f42cb(0xc6)]?.['on']('data',()=>{}),_0x42230d['on'](_0x5f42cb(0xda),_0x5c3b0d=>{const _0x3018bb=_0x5f42cb;if(_0x11d53a)return;_0x11d53a=!![],clearTimeout(_0x7c2458);if(_0x5c3b0d===0x0&&_0x595aec[_0x3018bb(0xca)]()){const _0x285d7f=_0x595aec['trim']()['split'](/\r?\n/)[0x0];_0x538726(_0x285d7f);}else _0x538726(null);}),_0x42230d['on'](_0x5f42cb(0xc1),()=>{if(_0x11d53a)return;_0x11d53a=!![],clearTimeout(_0x7c2458),_0x538726(null);});});}
1
+ const a206_0x38247e=a206_0x3b72;(function(_0x33fa7c,_0x31b73d){const _0x1a53a4=a206_0x3b72,_0x1ead57=_0x33fa7c();while(!![]){try{const _0x3f516d=-parseInt(_0x1a53a4(0x13d))/0x1*(-parseInt(_0x1a53a4(0x132))/0x2)+-parseInt(_0x1a53a4(0x108))/0x3*(parseInt(_0x1a53a4(0x138))/0x4)+parseInt(_0x1a53a4(0x131))/0x5*(-parseInt(_0x1a53a4(0x116))/0x6)+-parseInt(_0x1a53a4(0x139))/0x7*(-parseInt(_0x1a53a4(0x109))/0x8)+-parseInt(_0x1a53a4(0x110))/0x9*(parseInt(_0x1a53a4(0x124))/0xa)+-parseInt(_0x1a53a4(0x10d))/0xb*(-parseInt(_0x1a53a4(0x10a))/0xc)+-parseInt(_0x1a53a4(0x120))/0xd;if(_0x3f516d===_0x31b73d)break;else _0x1ead57['push'](_0x1ead57['shift']());}catch(_0xb139ab){_0x1ead57['push'](_0x1ead57['shift']());}}}(a206_0x590f,0x6d827));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x38247e(0x126),'zsh','sh',a206_0x38247e(0x12d),a206_0x38247e(0x11e),a206_0x38247e(0x12c),a206_0x38247e(0x111),a206_0x38247e(0x12e),a206_0x38247e(0x115),a206_0x38247e(0x128),'nu',a206_0x38247e(0x113),a206_0x38247e(0x127),a206_0x38247e(0x135)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x38247e(0x10c),a206_0x38247e(0x13c),'cursor',a206_0x38247e(0x12a),a206_0x38247e(0x119)]);function getProcessInfoWindows(_0x4b9e12){const _0x1bfd34=a206_0x38247e;try{if(!Number[_0x1bfd34(0x10e)](_0x4b9e12)||_0x4b9e12<=0x0)return null;const _0xcbab51=_0x1bfd34(0x105)+_0x4b9e12+_0x1bfd34(0x10b),_0x1cfa6f=execSync(_0x1bfd34(0x133)+_0xcbab51+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x1bfd34(0x103),_0x1bfd34(0x103),_0x1bfd34(0x103)]})[_0x1bfd34(0x129)]();if(!_0x1cfa6f)return null;const [_0x584197,..._0x584412]=_0x1cfa6f[_0x1bfd34(0x123)](','),_0x1d4690=parseInt(_0x584197,0xa),_0x11859b=_0x584412[_0x1bfd34(0x121)](',')[_0x1bfd34(0x129)]();if(isNaN(_0x1d4690)||!_0x11859b)return null;return{'pid':_0x4b9e12,'ppid':_0x1d4690,'comm':_0x11859b[_0x1bfd34(0x12b)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x503543){const _0x22bb31=a206_0x38247e;try{const _0x1444e8=0x400000;if(!Number[_0x22bb31(0x10e)](_0x503543)||_0x503543<=0x0||_0x503543>_0x1444e8)return null;const _0x2e0509=execSync(_0x22bb31(0x117)+_0x503543+_0x22bb31(0x102),{'encoding':_0x22bb31(0x107),'stdio':_0x22bb31(0x103)})[_0x22bb31(0x129)](),[_0x53a1e7,..._0x332eea]=_0x2e0509[_0x22bb31(0x123)](/\s+/),_0x2d147e=parseInt(_0x53a1e7,0xa),_0x47eac8=_0x332eea[_0x22bb31(0x121)]('\x20');if(isNaN(_0x2d147e))return null;return{'pid':_0x503543,'ppid':_0x2d147e,'comm':_0x47eac8};}catch{return null;}}function getProcessInfo(_0xf7404c){const _0x4a5ab9=a206_0x38247e;if(process[_0x4a5ab9(0x10f)]===_0x4a5ab9(0x130))return getProcessInfoWindows(_0xf7404c);return getProcessInfoPosix(_0xf7404c);}function getBasename(_0x15dce8){const _0xe03cca=a206_0x38247e;return _0x15dce8[_0xe03cca(0x12b)](/^-/,'')[_0xe03cca(0x123)]('/')[_0xe03cca(0x104)]()?.['toLowerCase']()||'';}function isShell(_0x3d2549){const _0x11efd6=a206_0x38247e;return SHELL_NAMES[_0x11efd6(0x11b)](getBasename(_0x3d2549));}function isEphemeralShellSpawner(_0x585e04){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x585e04));}function a206_0x3b72(_0x251995,_0x3fe966){_0x251995=_0x251995-0x102;const _0x590f21=a206_0x590f();let _0x3b72fa=_0x590f21[_0x251995];return _0x3b72fa;}let cachedShellPID;function findShellPID(){const _0x47eaf7=a206_0x38247e;if(process[_0x47eaf7(0x106)]===undefined)return process['pid'];let _0x2b8553=process[_0x47eaf7(0x106)];const _0xba9fc3=0xa;let _0x24a371=0x0;while(_0x24a371<_0xba9fc3){const _0x26916f=getProcessInfo(_0x2b8553);if(!_0x26916f)break;if(isShell(_0x26916f[_0x47eaf7(0x11c)])){const _0x299506=getProcessInfo(_0x26916f[_0x47eaf7(0x106)]);if(_0x299506&&isEphemeralShellSpawner(_0x299506['comm'])){_0x2b8553=_0x26916f[_0x47eaf7(0x106)],_0x24a371++;continue;}return _0x26916f[_0x47eaf7(0x11d)];}if(_0x26916f['ppid']===0x0||_0x26916f[_0x47eaf7(0x106)]===0x1){if(isShell(_0x26916f[_0x47eaf7(0x11c)]))return _0x26916f[_0x47eaf7(0x11d)];break;}_0x2b8553=_0x26916f['ppid'],_0x24a371++;}return process[_0x47eaf7(0x106)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x55d099){const _0x49a509=a206_0x38247e;if(!Number[_0x49a509(0x10e)](_0x55d099)||_0x55d099<=0x0)return![];try{return process['kill'](_0x55d099,0x0),!![];}catch{return![];}}export function openBrowser(_0x2e4327){const _0x3e0554=a206_0x38247e;let _0x5344df;try{_0x5344df=new URL(_0x2e4327);}catch{throw new Error('Invalid\x20URL:\x20'+_0x2e4327);}if(_0x5344df[_0x3e0554(0x118)]!=='http:'&&_0x5344df[_0x3e0554(0x118)]!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x5344df['protocol']);const _0x4620f9=_0x5344df['href'],_0x1fb5c6=process[_0x3e0554(0x10f)];if(_0x1fb5c6===_0x3e0554(0x130))spawn(_0x3e0554(0x12f),['/c',_0x3e0554(0x114),'',_0x4620f9],{'detached':!![],'stdio':_0x3e0554(0x125)})[_0x3e0554(0x13a)]();else{const _0x3fb2c7=_0x1fb5c6===_0x3e0554(0x13b)?_0x3e0554(0x134):'xdg-open';spawn(_0x3fb2c7,[_0x4620f9],{'detached':!![],'stdio':_0x3e0554(0x125)})['unref']();}}export function isWindows(){const _0x482303=a206_0x38247e;return process[_0x482303(0x10f)]===_0x482303(0x130);}export function getCrossSpawnOptions(_0x51e34b){return{..._0x51e34b??{},'shell':isWindows()};}function a206_0x590f(){const _0x5cbbfc=['2473718raeEHl','join','kill','split','180XsHmro','ignore','bash','elvish','powershell','trim','electron','replace','tcsh','fish','dash','cmd.exe','win32','85RgIEiC','4666fPKLLE','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','open','xonsh','data','stderr','68EHoaES','2653VEqHcf','unref','darwin','code','191JCxEtO','\x20-o\x20ppid=,comm=','pipe','pop','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','ppid','utf-8','32898aFFqTY','17504zAwaGi','84OGTrdb','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','claude','1091585OkqCdQ','isInteger','platform','360819xKGYcl','csh','which','ion','start','pwsh','149154bBDHTX','ps\x20-p\x20','protocol','treasure\x20studio','exit','has','comm','pid','ksh','stdout'];a206_0x590f=function(){return _0x5cbbfc;};return a206_0x590f();}export function escapeWindowsArg(_0x4613b8){const _0xeebc18=a206_0x38247e;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x4613b8))return _0x4613b8;const _0x3ec939=_0x4613b8[_0xeebc18(0x12b)](/"/g,'\x22\x22');return'\x22'+_0x3ec939+'\x22';}export function crossSpawn(_0x17b49d,_0x3e1641,_0x2b4793){const _0x9d3dd7=a206_0x38247e;if(isWindows()){const _0x6a5a66=escapeWindowsArg(_0x17b49d),_0x115e29=_0x3e1641['map'](escapeWindowsArg),_0x3f0c71=[_0x6a5a66,..._0x115e29][_0x9d3dd7(0x121)]('\x20');return spawn(_0x3f0c71,[],{..._0x2b4793,'shell':!![]});}return spawn(_0x17b49d,_0x3e1641,{..._0x2b4793,'shell':![]});}export function gracefulExit(_0x7e1d76=0x0){const _0x3a3c24=a206_0x38247e;isWindows()?setTimeout(()=>process[_0x3a3c24(0x11a)](_0x7e1d76),0x32):process[_0x3a3c24(0x11a)](_0x7e1d76);}export function findExecutable(_0x22c7ed,_0x23ebb6=0x1388){return new Promise(_0x4f7ac9=>{const _0x1209dc=a206_0x3b72,_0x51da48=isWindows()?'where.exe':_0x1209dc(0x112);let _0x42fcc1=![];const _0x34a4ff=crossSpawn(_0x51da48,[_0x22c7ed],{'stdio':_0x1209dc(0x103),'shell':isWindows()}),_0x12d868=setTimeout(()=>{const _0x3a8250=_0x1209dc;!_0x42fcc1&&(_0x42fcc1=!![],_0x34a4ff[_0x3a8250(0x122)](),_0x4f7ac9(null));},_0x23ebb6);let _0x4ad661='';_0x34a4ff[_0x1209dc(0x11f)]?.['on'](_0x1209dc(0x136),_0xce974c=>{_0x4ad661+=_0xce974c['toString']();}),_0x34a4ff[_0x1209dc(0x137)]?.['on'](_0x1209dc(0x136),()=>{}),_0x34a4ff['on'](_0x1209dc(0x11a),_0x28d2b1=>{const _0x1cae1c=_0x1209dc;if(_0x42fcc1)return;_0x42fcc1=!![],clearTimeout(_0x12d868);if(_0x28d2b1===0x0&&_0x4ad661[_0x1cae1c(0x129)]()){const _0x2f56dd=_0x4ad661[_0x1cae1c(0x129)]()[_0x1cae1c(0x123)](/\r?\n/)[0x0];_0x4f7ac9(_0x2f56dd);}else _0x4f7ac9(null);}),_0x34a4ff['on']('error',()=>{if(_0x42fcc1)return;_0x42fcc1=!![],clearTimeout(_0x12d868),_0x4f7ac9(null);});});}
@@ -1 +1 @@
1
- function a207_0x32c2(_0x412d16,_0x575fff){_0x412d16=_0x412d16-0x1bc;const _0x293a1a=a207_0x293a();let _0x32c2ef=_0x293a1a[_0x412d16];return _0x32c2ef;}(function(_0x142d4e,_0x3ef44d){const _0x3f8512=a207_0x32c2,_0x56283f=_0x142d4e();while(!![]){try{const _0x41a158=parseInt(_0x3f8512(0x1c6))/0x1*(parseInt(_0x3f8512(0x1d2))/0x2)+parseInt(_0x3f8512(0x1c1))/0x3+parseInt(_0x3f8512(0x1c4))/0x4+-parseInt(_0x3f8512(0x1ce))/0x5+-parseInt(_0x3f8512(0x1c2))/0x6*(parseInt(_0x3f8512(0x1bd))/0x7)+-parseInt(_0x3f8512(0x1cf))/0x8+parseInt(_0x3f8512(0x1cb))/0x9;if(_0x41a158===_0x3ef44d)break;else _0x56283f['push'](_0x56283f['shift']());}catch(_0x381cbc){_0x56283f['push'](_0x56283f['shift']());}}}(a207_0x293a,0xab77a));function a207_0x293a(){const _0xa32f2b=['4045984iijzZT','write','18439dHqtOz','stdout','stdin','toLowerCase','isTTY','9326502IvoJJR','stderr','close','6605205WaVAdJ','7478632OjNALI','pause','question','68JIGtbL','setRawMode','56gdPSOB','\x20[y/N]\x20','data','resume','3727788ZjYeXG','719322DlHIWN','createInterface'];a207_0x293a=function(){return _0xa32f2b;};return a207_0x293a();}import*as a207_0x2c6a00 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x493716){const _0x119e75=a207_0x32c2,_0x5e4c34=a207_0x2c6a00[_0x119e75(0x1c3)]({'input':process[_0x119e75(0x1c8)],'output':process[_0x119e75(0x1c7)]});return new Promise(_0x508ceb=>{const _0x563a0e=_0x119e75;_0x5e4c34[_0x563a0e(0x1d1)](_0x493716+'\x20(y/N):\x20',_0x48ec95=>{const _0x455b42=_0x563a0e;_0x5e4c34[_0x455b42(0x1cd)](),_0x508ceb(_0x48ec95['toLowerCase']()==='y'||_0x48ec95[_0x455b42(0x1c9)]()==='yes');});});}export async function confirmKey(_0x8c3ec8){const _0x5bf635=a207_0x32c2;if(!process[_0x5bf635(0x1c8)][_0x5bf635(0x1ca)])return![];return process[_0x5bf635(0x1cc)][_0x5bf635(0x1c5)](_0x8c3ec8+_0x5bf635(0x1be)),new Promise(_0x52c4bb=>{const _0x576245=_0x5bf635,_0x1ea76a=process[_0x576245(0x1c8)];_0x1ea76a[_0x576245(0x1bc)](!![]),_0x1ea76a[_0x576245(0x1c0)](),_0x1ea76a['setEncoding']('utf8');const _0x318135=_0x305948=>{const _0x3f008d=_0x576245;_0x1ea76a['setRawMode'](![]),_0x1ea76a[_0x3f008d(0x1d0)](),_0x1ea76a['removeListener']('data',_0x318135);if(_0x305948==='\x1b'){process[_0x3f008d(0x1cc)][_0x3f008d(0x1c5)]('\x0a'),_0x52c4bb(![]);return;}_0x305948==='\x03'&&(process[_0x3f008d(0x1cc)]['write']('\x0a'),gracefulExit(0x82));if(_0x305948[_0x3f008d(0x1c9)]()==='y'){process['stderr']['write']('y\x0a'),_0x52c4bb(!![]);return;}process[_0x3f008d(0x1cc)]['write']('\x0a'),_0x52c4bb(![]);};_0x1ea76a['on'](_0x576245(0x1bf),_0x318135);});}
1
+ (function(_0x352f5e,_0x22a481){const _0x266c07=a207_0x3aa4,_0x19d827=_0x352f5e();while(!![]){try{const _0x2f08f0=parseInt(_0x266c07(0x14a))/0x1*(-parseInt(_0x266c07(0x13c))/0x2)+parseInt(_0x266c07(0x143))/0x3*(parseInt(_0x266c07(0x14c))/0x4)+-parseInt(_0x266c07(0x140))/0x5*(parseInt(_0x266c07(0x151))/0x6)+-parseInt(_0x266c07(0x13e))/0x7+-parseInt(_0x266c07(0x142))/0x8+-parseInt(_0x266c07(0x144))/0x9*(parseInt(_0x266c07(0x138))/0xa)+-parseInt(_0x266c07(0x148))/0xb*(-parseInt(_0x266c07(0x141))/0xc);if(_0x2f08f0===_0x22a481)break;else _0x19d827['push'](_0x19d827['shift']());}catch(_0x516a20){_0x19d827['push'](_0x19d827['shift']());}}}(a207_0x5ccd,0xec333));import*as a207_0x1fbe34 from'readline';import{gracefulExit}from'./process.js';function a207_0x3aa4(_0x1f3b4e,_0x3760b6){_0x1f3b4e=_0x1f3b4e-0x137;const _0x5ccd07=a207_0x5ccd();let _0x3aa4a6=_0x5ccd07[_0x1f3b4e];return _0x3aa4a6;}export function isInteractive(){const _0x147b9d=a207_0x3aa4;return process[_0x147b9d(0x13f)][_0x147b9d(0x139)]===!![];}export async function confirm(_0x37554f){const _0x3cfa63=a207_0x3aa4,_0x5d52dd=a207_0x1fbe34[_0x3cfa63(0x147)]({'input':process['stdin'],'output':process[_0x3cfa63(0x150)]});return new Promise(_0x35a78c=>{const _0x356965=_0x3cfa63;_0x5d52dd['question'](_0x37554f+_0x356965(0x14f),_0x21ef8c=>{const _0x305440=_0x356965;_0x5d52dd[_0x305440(0x14e)](),_0x35a78c(_0x21ef8c[_0x305440(0x13b)]()==='y'||_0x21ef8c[_0x305440(0x13b)]()===_0x305440(0x13a));});});}export async function confirmKey(_0x43ca12){const _0x394444=a207_0x3aa4;if(!process[_0x394444(0x13f)]['isTTY'])return![];return process[_0x394444(0x14b)][_0x394444(0x152)](_0x43ca12+_0x394444(0x14d)),new Promise(_0x596ae2=>{const _0x53fe20=_0x394444,_0x752a1c=process['stdin'];_0x752a1c[_0x53fe20(0x137)](!![]),_0x752a1c['resume'](),_0x752a1c['setEncoding'](_0x53fe20(0x149));const _0x250b6f=_0x58df33=>{const _0x2f1a77=_0x53fe20;_0x752a1c['setRawMode'](![]),_0x752a1c[_0x2f1a77(0x145)](),_0x752a1c[_0x2f1a77(0x146)](_0x2f1a77(0x13d),_0x250b6f);if(_0x58df33==='\x1b'){process[_0x2f1a77(0x14b)][_0x2f1a77(0x152)]('\x0a'),_0x596ae2(![]);return;}_0x58df33==='\x03'&&(process[_0x2f1a77(0x14b)][_0x2f1a77(0x152)]('\x0a'),gracefulExit(0x82));if(_0x58df33[_0x2f1a77(0x13b)]()==='y'){process['stderr']['write']('y\x0a'),_0x596ae2(!![]);return;}process[_0x2f1a77(0x14b)][_0x2f1a77(0x152)]('\x0a'),_0x596ae2(![]);};_0x752a1c['on'](_0x53fe20(0x13d),_0x250b6f);});}function a207_0x5ccd(){const _0x42f8fe=['43023UntFMt','9fgXDrp','pause','removeListener','createInterface','11341qDmsIB','utf8','3KYgxxh','stderr','164hhjoHA','\x20[y/N]\x20','close','\x20(y/N):\x20','stdout','6fRrTKq','write','setRawMode','4793420AuSklV','isTTY','yes','toLowerCase','622964NJUfnq','data','9787477DJEwSB','stdin','6858030oDHUiI','75444ogqiQn','15350384aeyJAl'];a207_0x5ccd=function(){return _0x42f8fe;};return a207_0x5ccd();}
@@ -1 +1 @@
1
- (function(_0x445076,_0x1661e8){const _0x5e474b=a208_0x5ea0,_0x9a69da=_0x445076();while(!![]){try{const _0x105bb9=parseInt(_0x5e474b(0x1b1))/0x1+-parseInt(_0x5e474b(0x1b2))/0x2+-parseInt(_0x5e474b(0x1c0))/0x3+parseInt(_0x5e474b(0x1af))/0x4*(parseInt(_0x5e474b(0x1c2))/0x5)+parseInt(_0x5e474b(0x1b4))/0x6*(parseInt(_0x5e474b(0x1ba))/0x7)+-parseInt(_0x5e474b(0x1ad))/0x8*(parseInt(_0x5e474b(0x1b3))/0x9)+-parseInt(_0x5e474b(0x1b8))/0xa*(parseInt(_0x5e474b(0x1b0))/0xb);if(_0x105bb9===_0x1661e8)break;else _0x9a69da['push'](_0x9a69da['shift']());}catch(_0x3bf183){_0x9a69da['push'](_0x9a69da['shift']());}}}(a208_0x5d1b,0xa1584));import a208_0x500382 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x5ea0(_0x53cd17,_0x42741e){_0x53cd17=_0x53cd17-0x1a7;const _0x5d1b3a=a208_0x5d1b();let _0x5ea0bd=_0x5d1b3a[_0x53cd17];return _0x5ea0bd;}export function createCommandSpinner(_0x3d98e4,_0x3aff54={}){const _0x3393f3=a208_0x5ea0,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3aff54;return a208_0x500382({'text':_0x3d98e4,'color':_0x3393f3(0x1bc),'stream':process[_0x3393f3(0x1b5)],'isEnabled':forceEnabled||process[_0x3393f3(0x1b5)][_0x3393f3(0x1a8)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x4a8147,_0x41cc2f,_0x22c620={}){const _0x21cd28=a208_0x5ea0,_0x167c33=_0x22c620[_0x21cd28(0x1c1)]??(()=>Date['now']()),_0x3fec5a=createCommandSpinner(_0x4a8147,_0x22c620);_0x3fec5a['start']();const _0x301632=_0x167c33();try{const _0x46b532=await _0x41cc2f(),_0x2e878f=_0x167c33()-_0x301632;return _0x3fec5a[_0x21cd28(0x1ac)](),{'data':_0x46b532,'elapsedMs':_0x2e878f};}catch(_0x7c3cf6){_0x3fec5a['stop']();throw _0x7c3cf6;}}export async function withProgressSpinner(_0xbc0fda,_0x241e4c,_0x4af13f={}){const _0x5ee578=a208_0x5ea0,_0x3fcf4c=_0x4af13f[_0x5ee578(0x1c1)]??(()=>Date[_0x5ee578(0x1ae)]()),_0x561896=_0x4af13f[_0x5ee578(0x1a9)]??setInterval,_0x9399a8=createCommandSpinner(_0xbc0fda,_0x4af13f);_0x9399a8['start']();const _0x2a549d=_0x3fcf4c(),_0x1c4fee=_0xbc0fda[_0x5ee578(0x1aa)](_0x5ee578(0x1bd),'')[_0x5ee578(0x1bf)]()||_0x5ee578(0x1c3),_0x19c3a9={};let _0x35acc3=_0xbc0fda;const _0x340fe8=()=>{const _0x2f6f17=_0x5ee578;if(!_0x9399a8[_0x2f6f17(0x1a7)])return;const _0x2381ff=_0x3fcf4c()-_0x2a549d,_0x11d88f=formatElapsed(_0x2381ff),_0x429eee=_0x19c3a9[_0x2f6f17(0x1bb)]?.[_0x2f6f17(0x1bf)]()||_0x1c4fee,_0x2201e5=_0x19c3a9[_0x2f6f17(0x1b6)]?'\x20[Job\x20ID:\x20'+_0x19c3a9[_0x2f6f17(0x1b6)]+']':'',_0x23e941=_0x19c3a9[_0x2f6f17(0x1b7)]?'\x20'+_0x19c3a9['extra']:'',_0x2fbcc0=_0x429eee+'\x20'+_0x11d88f+_0x23e941+_0x2201e5;_0x2fbcc0!==_0x35acc3&&_0x2fbcc0[_0x2f6f17(0x1bf)]()&&(_0x9399a8[_0x2f6f17(0x1ab)]=_0x2fbcc0,_0x35acc3=_0x2fbcc0);},_0x73c0d2=_0x561896(()=>{_0x340fe8();},0x3e8),_0x5786bb={'setPhase':_0x4d46cb=>{const _0x366adc=_0x5ee578;_0x19c3a9[_0x366adc(0x1bb)]=_0x4d46cb;const _0x25a880=_0x4d46cb?.[_0x366adc(0x1bf)]()||_0x1c4fee,_0x38a469=_0x3fcf4c()-_0x2a549d,_0x4f8e36=formatElapsed(_0x38a469),_0x3e2c28=_0x19c3a9[_0x366adc(0x1b6)]?'\x20[Job\x20ID:\x20'+_0x19c3a9[_0x366adc(0x1b6)]+']':'',_0x3ef2ee=_0x19c3a9[_0x366adc(0x1b7)]?'\x20'+_0x19c3a9[_0x366adc(0x1b7)]:'',_0x2e212c=_0x25a880+'\x20'+_0x4f8e36+_0x3ef2ee+_0x3e2c28;_0x9399a8[_0x366adc(0x1a7)]&&_0x2e212c[_0x366adc(0x1bf)]()&&(_0x9399a8['text']=_0x2e212c,_0x35acc3=_0x2e212c);},'setJobId':_0x84418a=>{const _0x563009=_0x5ee578;_0x19c3a9[_0x563009(0x1b6)]=_0x84418a,_0x340fe8();},'setExtra':_0xb9d292=>{_0x19c3a9['extra']=_0xb9d292,_0x340fe8();}};_0x340fe8();try{const _0x2bba2e=await _0x241e4c(_0x5786bb),_0x34173f=_0x3fcf4c()-_0x2a549d;return{'data':_0x2bba2e,'elapsedMs':_0x34173f};}finally{clearInterval(_0x73c0d2),_0x9399a8[_0x5ee578(0x1ac)]();}}function a208_0x5d1b(){const _0x2efe32=['stop','272KHUGxG','now','4eOKgsS','174779piFaJN','388040jbQrpb','304514OwWkLs','62289CdUqFh','6gWuLIh','stderr','jobId','extra','30vXfJbU','toFixed','6976599XjTZBl','phase','cyan','...','floor','trim','1667466KfxXvR','clock','1336155IfOzCC','Processing','isSpinning','isTTY','intervalFactory','replace','text'];a208_0x5d1b=function(){return _0x2efe32;};return a208_0x5d1b();}export function formatElapsed(_0x442688){const _0x899b76=a208_0x5ea0,_0x59082f=Math[_0x899b76(0x1be)](_0x442688/0x3e8);if(_0x59082f<0x3c)return(_0x442688/0x3e8)[_0x899b76(0x1b9)](0x1)+'s';const _0x53d682=Math[_0x899b76(0x1be)](_0x59082f/0x3c),_0x40f6c6=_0x59082f%0x3c;if(_0x53d682<0x3c)return _0x53d682+'m\x20'+_0x40f6c6+'s';const _0x5543c5=Math[_0x899b76(0x1be)](_0x53d682/0x3c),_0x4de37a=_0x53d682%0x3c;return _0x5543c5+'h\x20'+_0x4de37a+'m';}
1
+ (function(_0x76c053,_0x48fec9){const _0xe39324=a208_0x58c6,_0x19c614=_0x76c053();while(!![]){try{const _0x38f5f3=-parseInt(_0xe39324(0x138))/0x1*(parseInt(_0xe39324(0x145))/0x2)+parseInt(_0xe39324(0x136))/0x3*(parseInt(_0xe39324(0x13f))/0x4)+-parseInt(_0xe39324(0x12c))/0x5*(-parseInt(_0xe39324(0x13b))/0x6)+-parseInt(_0xe39324(0x12d))/0x7+parseInt(_0xe39324(0x12e))/0x8*(-parseInt(_0xe39324(0x13c))/0x9)+-parseInt(_0xe39324(0x137))/0xa*(parseInt(_0xe39324(0x147))/0xb)+parseInt(_0xe39324(0x13e))/0xc;if(_0x38f5f3===_0x48fec9)break;else _0x19c614['push'](_0x19c614['shift']());}catch(_0x384fd8){_0x19c614['push'](_0x19c614['shift']());}}}(a208_0x2096,0x8a667));function a208_0x58c6(_0x12d22a,_0x2e0449){_0x12d22a=_0x12d22a-0x12b;const _0x2096c1=a208_0x2096();let _0x58c6d4=_0x2096c1[_0x12d22a];return _0x58c6d4;}import a208_0x58bae7 from'ora';function a208_0x2096(){const _0x1a20b2=['13046040NxgAYN','12SuKgQc','extra','start','isSpinning','cyan','phase','4mKSPVj','trim','239206tEJDtO','clock','4192970kEjlZO','1244229kOVmMx','2484472EAiQrO','isTTY','stop','intervalFactory','floor','now','toFixed','jobId','808662AzOlIy','170YFWlcS','499496ZNYuqC','text','replace','6TLYcJk','18tsQnad','stderr'];a208_0x2096=function(){return _0x1a20b2;};return a208_0x2096();}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x5ab0a3,_0x295dc5={}){const _0x4ab238=a208_0x58c6,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x295dc5;return a208_0x58bae7({'text':_0x5ab0a3,'color':_0x4ab238(0x143),'stream':process[_0x4ab238(0x13d)],'isEnabled':forceEnabled||process[_0x4ab238(0x13d)][_0x4ab238(0x12f)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x3234a7,_0x4b9dad,_0x4826d7={}){const _0x211617=a208_0x58c6,_0x453861=_0x4826d7[_0x211617(0x12b)]??(()=>Date[_0x211617(0x133)]()),_0x1671f9=createCommandSpinner(_0x3234a7,_0x4826d7);_0x1671f9[_0x211617(0x141)]();const _0x4f81c3=_0x453861();try{const _0x173490=await _0x4b9dad(),_0x3441ea=_0x453861()-_0x4f81c3;return _0x1671f9[_0x211617(0x130)](),{'data':_0x173490,'elapsedMs':_0x3441ea};}catch(_0x1baf60){_0x1671f9[_0x211617(0x130)]();throw _0x1baf60;}}export async function withProgressSpinner(_0x3deb0e,_0xbb1265,_0x18b41b={}){const _0x51e6c7=a208_0x58c6,_0x1428fd=_0x18b41b[_0x51e6c7(0x12b)]??(()=>Date[_0x51e6c7(0x133)]()),_0x22b3fd=_0x18b41b[_0x51e6c7(0x131)]??setInterval,_0x2b5305=createCommandSpinner(_0x3deb0e,_0x18b41b);_0x2b5305[_0x51e6c7(0x141)]();const _0x4c51cf=_0x1428fd(),_0x57341a=_0x3deb0e[_0x51e6c7(0x13a)]('...','')[_0x51e6c7(0x146)]()||'Processing',_0x3a55eb={};let _0x5b1b49=_0x3deb0e;const _0x47c584=()=>{const _0x4dacec=_0x51e6c7;if(!_0x2b5305[_0x4dacec(0x142)])return;const _0x3833a4=_0x1428fd()-_0x4c51cf,_0x4af6c2=formatElapsed(_0x3833a4),_0x361cea=_0x3a55eb[_0x4dacec(0x144)]?.[_0x4dacec(0x146)]()||_0x57341a,_0x50915e=_0x3a55eb['jobId']?'\x20[Job\x20ID:\x20'+_0x3a55eb[_0x4dacec(0x135)]+']':'',_0x453bc8=_0x3a55eb['extra']?'\x20'+_0x3a55eb[_0x4dacec(0x140)]:'',_0x5a5716=_0x361cea+'\x20'+_0x4af6c2+_0x453bc8+_0x50915e;_0x5a5716!==_0x5b1b49&&_0x5a5716['trim']()&&(_0x2b5305[_0x4dacec(0x139)]=_0x5a5716,_0x5b1b49=_0x5a5716);},_0x1a060b=_0x22b3fd(()=>{_0x47c584();},0x3e8),_0x3862a2={'setPhase':_0x207b20=>{const _0x210940=_0x51e6c7;_0x3a55eb[_0x210940(0x144)]=_0x207b20;const _0x54d283=_0x207b20?.[_0x210940(0x146)]()||_0x57341a,_0x3136ef=_0x1428fd()-_0x4c51cf,_0x58d9a3=formatElapsed(_0x3136ef),_0x457c9b=_0x3a55eb[_0x210940(0x135)]?'\x20[Job\x20ID:\x20'+_0x3a55eb['jobId']+']':'',_0x303a7d=_0x3a55eb[_0x210940(0x140)]?'\x20'+_0x3a55eb[_0x210940(0x140)]:'',_0x3076b6=_0x54d283+'\x20'+_0x58d9a3+_0x303a7d+_0x457c9b;_0x2b5305['isSpinning']&&_0x3076b6[_0x210940(0x146)]()&&(_0x2b5305[_0x210940(0x139)]=_0x3076b6,_0x5b1b49=_0x3076b6);},'setJobId':_0x2e8cf6=>{_0x3a55eb['jobId']=_0x2e8cf6,_0x47c584();},'setExtra':_0x36c4c5=>{const _0x484fe3=_0x51e6c7;_0x3a55eb[_0x484fe3(0x140)]=_0x36c4c5,_0x47c584();}};_0x47c584();try{const _0x53c33b=await _0xbb1265(_0x3862a2),_0x2f216e=_0x1428fd()-_0x4c51cf;return{'data':_0x53c33b,'elapsedMs':_0x2f216e};}finally{clearInterval(_0x1a060b),_0x2b5305['stop']();}}export function formatElapsed(_0x58f3c2){const _0x1d1608=a208_0x58c6,_0x1e7dee=Math[_0x1d1608(0x132)](_0x58f3c2/0x3e8);if(_0x1e7dee<0x3c)return(_0x58f3c2/0x3e8)[_0x1d1608(0x134)](0x1)+'s';const _0x5631d2=Math[_0x1d1608(0x132)](_0x1e7dee/0x3c),_0x5580ff=_0x1e7dee%0x3c;if(_0x5631d2<0x3c)return _0x5631d2+'m\x20'+_0x5580ff+'s';const _0x2c7af5=Math['floor'](_0x5631d2/0x3c),_0xaab3f4=_0x5631d2%0x3c;return _0x2c7af5+'h\x20'+_0xaab3f4+'m';}
@@ -1 +1 @@
1
- (function(_0x48521d,_0xc923b1){const _0x2b0994=a209_0x3b83,_0x23406f=_0x48521d();while(!![]){try{const _0x2941e8=-parseInt(_0x2b0994(0x206))/0x1*(-parseInt(_0x2b0994(0x203))/0x2)+parseInt(_0x2b0994(0x209))/0x3*(-parseInt(_0x2b0994(0x20d))/0x4)+parseInt(_0x2b0994(0x1fc))/0x5*(-parseInt(_0x2b0994(0x1f7))/0x6)+-parseInt(_0x2b0994(0x1f9))/0x7+-parseInt(_0x2b0994(0x20a))/0x8*(-parseInt(_0x2b0994(0x1ff))/0x9)+parseInt(_0x2b0994(0x20c))/0xa*(parseInt(_0x2b0994(0x1f5))/0xb)+-parseInt(_0x2b0994(0x200))/0xc*(-parseInt(_0x2b0994(0x20b))/0xd);if(_0x2941e8===_0xc923b1)break;else _0x23406f['push'](_0x23406f['shift']());}catch(_0xc81997){_0x23406f['push'](_0x23406f['shift']());}}}(a209_0x3761,0xc3aad));export async function*parseSSEStream(_0x226afd,_0x1e6474){const _0x4c211e=a209_0x3b83;if(!_0x226afd['body'])throw new Error(_0x4c211e(0x1f6));const _0x477fca=_0x226afd[_0x4c211e(0x207)][_0x4c211e(0x208)](),_0x1521d8=new TextDecoder();let _0x517ea3='',_0x449f57={};try{while(!![]){const {done:_0x11eeb4,value:_0x2b416e}=await _0x477fca[_0x4c211e(0x1f3)]();if(_0x11eeb4){if(_0x449f57[_0x4c211e(0x1fe)]){_0x1e6474?.['debug'](_0x4c211e(0x1fa)+_0x449f57[_0x4c211e(0x1fe)]);const _0x190dff=parseSSEData(_0x449f57[_0x4c211e(0x1fe)]);yield _0x190dff;}break;}_0x517ea3+=_0x1521d8['decode'](_0x2b416e,{'stream':!![]});const _0x432b34=_0x517ea3[_0x4c211e(0x205)]('\x0a');_0x517ea3=_0x432b34[_0x4c211e(0x1f4)]()||'';for(const _0xed2c73 of _0x432b34){if(_0xed2c73[_0x4c211e(0x1fb)]()===''){if(_0x449f57[_0x4c211e(0x1fe)]){_0x1e6474?.[_0x4c211e(0x20f)](_0x4c211e(0x1fa)+_0x449f57[_0x4c211e(0x1fe)]);const _0x1aed00=parseSSEData(_0x449f57['data']);yield _0x1aed00,_0x449f57={};}continue;}if(_0xed2c73['startsWith'](':'))continue;const _0x25b270=_0xed2c73[_0x4c211e(0x204)](':');if(_0x25b270===-0x1)continue;const _0x39ae9e=_0xed2c73[_0x4c211e(0x20e)](0x0,_0x25b270);let _0x1e8cdf=_0xed2c73[_0x4c211e(0x20e)](_0x25b270+0x1);_0x1e8cdf[_0x4c211e(0x1f8)]('\x20')&&(_0x1e8cdf=_0x1e8cdf[_0x4c211e(0x20e)](0x1));switch(_0x39ae9e){case'event':_0x449f57[_0x4c211e(0x1fd)]=_0x1e8cdf;break;case _0x4c211e(0x1fe):_0x449f57[_0x4c211e(0x1fe)]=_0x449f57[_0x4c211e(0x1fe)]?_0x449f57[_0x4c211e(0x1fe)]+'\x0a'+_0x1e8cdf:_0x1e8cdf;break;case'id':_0x449f57['id']=_0x1e8cdf;break;}}}}finally{_0x477fca[_0x4c211e(0x1f2)]();}}function parseSSEData(_0x306189){const _0x131a74=a209_0x3b83;try{return JSON[_0x131a74(0x202)](_0x306189);}catch(_0x21ddeb){throw new Error(_0x131a74(0x201)+_0x306189,{'cause':_0x21ddeb});}}function a209_0x3b83(_0x5f3cfb,_0x45ec95){_0x5f3cfb=_0x5f3cfb-0x1f2;const _0x37619c=a209_0x3761();let _0x3b83e1=_0x37619c[_0x5f3cfb];return _0x3b83e1;}function a209_0x3761(){const _0x513beb=['indexOf','split','45581TGrRbq','body','getReader','4638723lbnexq','648xNJoTk','2939729oLDyes','348590bwkPyA','4FslnDs','slice','debug','releaseLock','read','pop','297OJwiqc','Response\x20body\x20is\x20null','100344zdiJTe','startsWith','4139639CyfnIb','[LLM\x20API\x20SSE]\x20','trim','30cqAZJe','event','data','112374ziVAYS','48JlWqye','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','parse','8XAjHni'];a209_0x3761=function(){return _0x513beb;};return a209_0x3761();}
1
+ (function(_0x3715ed,_0x30bf2f){const _0x5f3d04=a209_0x5aee,_0x510d62=_0x3715ed();while(!![]){try{const _0x1e21b9=parseInt(_0x5f3d04(0xa8))/0x1*(-parseInt(_0x5f3d04(0xaa))/0x2)+-parseInt(_0x5f3d04(0xb6))/0x3*(parseInt(_0x5f3d04(0xa1))/0x4)+parseInt(_0x5f3d04(0xb0))/0x5+parseInt(_0x5f3d04(0xb5))/0x6*(parseInt(_0x5f3d04(0xab))/0x7)+-parseInt(_0x5f3d04(0xa6))/0x8+-parseInt(_0x5f3d04(0xb1))/0x9*(parseInt(_0x5f3d04(0x9e))/0xa)+parseInt(_0x5f3d04(0xb7))/0xb*(parseInt(_0x5f3d04(0xac))/0xc);if(_0x1e21b9===_0x30bf2f)break;else _0x510d62['push'](_0x510d62['shift']());}catch(_0x5e9bd8){_0x510d62['push'](_0x510d62['shift']());}}}(a209_0x5995,0x7d2a2));export async function*parseSSEStream(_0x183f17,_0x28336e){const _0x46151e=a209_0x5aee;if(!_0x183f17['body'])throw new Error(_0x46151e(0xa5));const _0x134cbc=_0x183f17['body'][_0x46151e(0xa7)](),_0x13c018=new TextDecoder();let _0x4e1c2d='',_0x448e55={};try{while(!![]){const {done:_0x18054e,value:_0x7f2387}=await _0x134cbc[_0x46151e(0xa0)]();if(_0x18054e){if(_0x448e55['data']){_0x28336e?.['debug'](_0x46151e(0xa3)+_0x448e55['data']);const _0x27e6b1=parseSSEData(_0x448e55[_0x46151e(0x9d)]);yield _0x27e6b1;}break;}_0x4e1c2d+=_0x13c018['decode'](_0x7f2387,{'stream':!![]});const _0x3b6fa6=_0x4e1c2d[_0x46151e(0xae)]('\x0a');_0x4e1c2d=_0x3b6fa6[_0x46151e(0xa9)]()||'';for(const _0x1e92df of _0x3b6fa6){if(_0x1e92df[_0x46151e(0xa2)]()===''){if(_0x448e55[_0x46151e(0x9d)]){_0x28336e?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x448e55['data']);const _0x1d24eb=parseSSEData(_0x448e55[_0x46151e(0x9d)]);yield _0x1d24eb,_0x448e55={};}continue;}if(_0x1e92df[_0x46151e(0xb4)](':'))continue;const _0x41996d=_0x1e92df[_0x46151e(0xaf)](':');if(_0x41996d===-0x1)continue;const _0xb6b696=_0x1e92df[_0x46151e(0xa4)](0x0,_0x41996d);let _0x5c3ab4=_0x1e92df[_0x46151e(0xa4)](_0x41996d+0x1);_0x5c3ab4['startsWith']('\x20')&&(_0x5c3ab4=_0x5c3ab4[_0x46151e(0xa4)](0x1));switch(_0xb6b696){case _0x46151e(0x9f):_0x448e55[_0x46151e(0x9f)]=_0x5c3ab4;break;case _0x46151e(0x9d):_0x448e55[_0x46151e(0x9d)]=_0x448e55[_0x46151e(0x9d)]?_0x448e55[_0x46151e(0x9d)]+'\x0a'+_0x5c3ab4:_0x5c3ab4;break;case'id':_0x448e55['id']=_0x5c3ab4;break;}}}}finally{_0x134cbc[_0x46151e(0xb2)]();}}function a209_0x5995(){const _0x22c5b3=['1adNfUy','pop','930690hgsGrZ','288323tggAtF','871116YASWdh','parse','split','indexOf','4676085MuOTCX','32688UgTOqk','releaseLock','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','startsWith','36LyoNZG','330chWRIB','176UCIfqe','data','20TtVJBG','event','read','26776Eufivk','trim','[LLM\x20API\x20SSE]\x20','slice','Response\x20body\x20is\x20null','4977728Hbqlei','getReader'];a209_0x5995=function(){return _0x22c5b3;};return a209_0x5995();}function a209_0x5aee(_0xfac090,_0x44af0a){_0xfac090=_0xfac090-0x9d;const _0x599568=a209_0x5995();let _0x5aee81=_0x599568[_0xfac090];return _0x5aee81;}function parseSSEData(_0x7b352){const _0x5477b9=a209_0x5aee;try{return JSON[_0x5477b9(0xad)](_0x7b352);}catch(_0x56b1b0){throw new Error(_0x5477b9(0xb3)+_0x7b352,{'cause':_0x56b1b0});}}
@@ -1 +1 @@
1
- (function(_0x2530b0,_0x548258){const _0x1f12e0=a210_0xc0d7,_0x7836ee=_0x2530b0();while(!![]){try{const _0x4f4a34=-parseInt(_0x1f12e0(0xdd))/0x1*(parseInt(_0x1f12e0(0xe3))/0x2)+parseInt(_0x1f12e0(0xcf))/0x3+-parseInt(_0x1f12e0(0xd3))/0x4+-parseInt(_0x1f12e0(0xe1))/0x5*(parseInt(_0x1f12e0(0xce))/0x6)+parseInt(_0x1f12e0(0xd0))/0x7*(parseInt(_0x1f12e0(0xe5))/0x8)+-parseInt(_0x1f12e0(0xdb))/0x9*(parseInt(_0x1f12e0(0xe2))/0xa)+parseInt(_0x1f12e0(0xd5))/0xb*(parseInt(_0x1f12e0(0xd6))/0xc);if(_0x4f4a34===_0x548258)break;else _0x7836ee['push'](_0x7836ee['shift']());}catch(_0x35df66){_0x7836ee['push'](_0x7836ee['shift']());}}}(a210_0x4d4d,0x4a091));import a210_0x2e6307 from'string-width';export function stringWidth(_0x2885ce){return a210_0x2e6307(_0x2885ce);}export function padEnd(_0x4cae3e,_0x591697){const _0x2e47f5=a210_0xc0d7,_0x3ea6d1=stringWidth(_0x4cae3e);if(_0x3ea6d1>=_0x591697)return _0x4cae3e;return _0x4cae3e+'\x20'[_0x2e47f5(0xd1)](_0x591697-_0x3ea6d1);}export function padStart(_0x431162,_0x516146){const _0x18f763=stringWidth(_0x431162);if(_0x18f763>=_0x516146)return _0x431162;return'\x20'['repeat'](_0x516146-_0x18f763)+_0x431162;}export function centerAlign(_0x4609f1,_0x19079f){const _0x26f125=a210_0xc0d7,_0x5b58df=stringWidth(_0x4609f1);if(_0x5b58df>_0x19079f){if(_0x19079f<=0x1)return'…'['substring'](0x0,_0x19079f);let _0x1df686=_0x4609f1;while(stringWidth(_0x1df686+'…')>_0x19079f){_0x1df686=_0x1df686[_0x26f125(0xd4)](0x0,-0x1);}return _0x1df686+'…';}if(_0x5b58df===_0x19079f)return _0x4609f1;const _0x488c0b=_0x19079f-_0x5b58df,_0x214749=Math[_0x26f125(0xe0)](_0x488c0b/0x2),_0x37172d=_0x488c0b-_0x214749;return'\x20'['repeat'](_0x214749)+_0x4609f1+'\x20'[_0x26f125(0xd1)](_0x37172d);}function a210_0x4d4d(){const _0x486e5a=['floor','153575vqwByW','940PzZIRd','124150lvAeYX','length','16kdisPw','padStart','78EitjgV','1081656mONJGj','518889UcsQjL','repeat','trim','2136344rKocfL','slice','1254NomKmo','115764CQlWPa','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','unknown','toLowerCase','replace','23724IhTQud','random','2ZvFhFm','\x5c$&','toString'];a210_0x4d4d=function(){return _0x486e5a;};return a210_0x4d4d();}export function escapeStringLiteral(_0x5ac4ad){const _0x342aec=a210_0xc0d7;if(!_0x5ac4ad||_0x5ac4ad[_0x342aec(0xd2)]()[_0x342aec(0xe4)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2ef396=_0x5ac4ad[_0x342aec(0xda)](/'/g,'\x27\x27');return'\x27'+_0x2ef396+'\x27';}export function globToLike(_0xd41144){const _0x26e2ce=a210_0xc0d7;let _0x3aa243=_0xd41144[_0x26e2ce(0xda)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x26e2ce(0xda)](/_/g,'\x5c_');return _0x3aa243=_0x3aa243[_0x26e2ce(0xda)](/\*/g,'%')[_0x26e2ce(0xda)](/\?/g,'_'),_0x3aa243;}function a210_0xc0d7(_0x8e365a,_0x1d2f81){_0x8e365a=_0x8e365a-0xce;const _0x4d4d36=a210_0x4d4d();let _0xc0d7cb=_0x4d4d36[_0x8e365a];return _0xc0d7cb;}export function buildLikePattern(_0x23bf85){const _0x3ba70f=a210_0xc0d7;if(!_0x23bf85||_0x23bf85[_0x3ba70f(0xd2)]()[_0x3ba70f(0xe4)]===0x0)throw new Error(_0x3ba70f(0xd7));const _0x392c43=globToLike(_0x23bf85),_0x25a20f=_0x392c43['replace'](/'/g,'\x27\x27');return'\x27'+_0x25a20f+'\x27';}export function matchGlobPattern(_0x47d869,_0x32bed6){const _0x1eb847=a210_0xc0d7,_0x438ed0=_0x32bed6[_0x1eb847(0xda)](/[.+^${}()|[\]\\]/g,_0x1eb847(0xde))[_0x1eb847(0xda)](/\*/g,'.*')[_0x1eb847(0xda)](/\?/g,'.'),_0x33127d=new RegExp('^'+_0x438ed0+'$');return _0x33127d['test'](_0x47d869);}export function getSanitizedUsername(){const _0x442ff8=a210_0xc0d7,_0x118538=process.env.USER||process.env.USERNAME||_0x442ff8(0xd8);return _0x118538[_0x442ff8(0xda)](/[^a-zA-Z0-9]/g,'')[_0x442ff8(0xd9)]();}export function generateRandomHex(){const _0x652357=a210_0xc0d7,_0x5bcbb4=Math['floor'](Math[_0x652357(0xdc)]()*0xfffff);return _0x5bcbb4[_0x652357(0xdf)](0x10)[_0x652357(0xe6)](0x5,'0');}export function sanitizeFileName(_0x34c375){const _0x227b5e=a210_0xc0d7;return _0x34c375[_0x227b5e(0xd9)]()[_0x227b5e(0xda)](/[/\\:*?"<>|]/g,'-')[_0x227b5e(0xda)](/\s+/g,'-')[_0x227b5e(0xda)](/-+/g,'-')[_0x227b5e(0xda)](/^-|-$/g,'');}
1
+ (function(_0x4521df,_0x52add9){const _0x289595=a210_0x41a9,_0x345aa6=_0x4521df();while(!![]){try{const _0xf26079=-parseInt(_0x289595(0x82))/0x1*(parseInt(_0x289595(0x81))/0x2)+-parseInt(_0x289595(0x85))/0x3*(-parseInt(_0x289595(0x74))/0x4)+-parseInt(_0x289595(0x6d))/0x5+-parseInt(_0x289595(0x75))/0x6*(-parseInt(_0x289595(0x71))/0x7)+-parseInt(_0x289595(0x80))/0x8*(parseInt(_0x289595(0x70))/0x9)+parseInt(_0x289595(0x76))/0xa*(-parseInt(_0x289595(0x79))/0xb)+parseInt(_0x289595(0x77))/0xc;if(_0xf26079===_0x52add9)break;else _0x345aa6['push'](_0x345aa6['shift']());}catch(_0x3d357d){_0x345aa6['push'](_0x345aa6['shift']());}}}(a210_0x8779,0x2a83c));function a210_0x41a9(_0x56f814,_0x2f0854){_0x56f814=_0x56f814-0x6d;const _0x877998=a210_0x8779();let _0x41a955=_0x877998[_0x56f814];return _0x41a955;}import a210_0x102a23 from'string-width';export function stringWidth(_0x3d8bb8){return a210_0x102a23(_0x3d8bb8);}export function padEnd(_0x40b92c,_0x521ab2){const _0x27b85e=stringWidth(_0x40b92c);if(_0x27b85e>=_0x521ab2)return _0x40b92c;return _0x40b92c+'\x20'['repeat'](_0x521ab2-_0x27b85e);}export function padStart(_0x31c1b2,_0x2c0c38){const _0x218988=a210_0x41a9,_0x61c0c3=stringWidth(_0x31c1b2);if(_0x61c0c3>=_0x2c0c38)return _0x31c1b2;return'\x20'[_0x218988(0x7c)](_0x2c0c38-_0x61c0c3)+_0x31c1b2;}export function centerAlign(_0x2e65e5,_0x1f5abb){const _0x4b38e7=a210_0x41a9,_0x2c54a7=stringWidth(_0x2e65e5);if(_0x2c54a7>_0x1f5abb){if(_0x1f5abb<=0x1)return'…'[_0x4b38e7(0x7b)](0x0,_0x1f5abb);let _0x3b045c=_0x2e65e5;while(stringWidth(_0x3b045c+'…')>_0x1f5abb){_0x3b045c=_0x3b045c['slice'](0x0,-0x1);}return _0x3b045c+'…';}if(_0x2c54a7===_0x1f5abb)return _0x2e65e5;const _0x2cb0f1=_0x1f5abb-_0x2c54a7,_0x146444=Math[_0x4b38e7(0x6e)](_0x2cb0f1/0x2),_0x155b18=_0x2cb0f1-_0x146444;return'\x20'[_0x4b38e7(0x7c)](_0x146444)+_0x2e65e5+'\x20'['repeat'](_0x155b18);}export function escapeStringLiteral(_0x42d4a1){const _0x15539d=a210_0x41a9;if(!_0x42d4a1||_0x42d4a1['trim']()[_0x15539d(0x7d)]===0x0)throw new Error(_0x15539d(0x83));const _0x1c8b15=_0x42d4a1[_0x15539d(0x72)](/'/g,'\x27\x27');return'\x27'+_0x1c8b15+'\x27';}export function globToLike(_0x16e17d){const _0x170a6f=a210_0x41a9;let _0x1f0c1b=_0x16e17d[_0x170a6f(0x72)](/\\/g,'\x5c\x5c')[_0x170a6f(0x72)](/%/g,'\x5c%')[_0x170a6f(0x72)](/_/g,'\x5c_');return _0x1f0c1b=_0x1f0c1b[_0x170a6f(0x72)](/\*/g,'%')[_0x170a6f(0x72)](/\?/g,'_'),_0x1f0c1b;}export function buildLikePattern(_0x1a9987){const _0x1092f3=a210_0x41a9;if(!_0x1a9987||_0x1a9987[_0x1092f3(0x78)]()[_0x1092f3(0x7d)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x30b851=globToLike(_0x1a9987),_0xff1d7d=_0x30b851['replace'](/'/g,'\x27\x27');return'\x27'+_0xff1d7d+'\x27';}export function matchGlobPattern(_0x38893f,_0x19fbd8){const _0x25452f=a210_0x41a9,_0x1515b0=_0x19fbd8[_0x25452f(0x72)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x25452f(0x72)](/\*/g,'.*')[_0x25452f(0x72)](/\?/g,'.'),_0x5dabaa=new RegExp('^'+_0x1515b0+'$');return _0x5dabaa[_0x25452f(0x6f)](_0x38893f);}export function getSanitizedUsername(){const _0xd19351=a210_0x41a9,_0x2b3634=process.env.USER||process.env.USERNAME||_0xd19351(0x73);return _0x2b3634[_0xd19351(0x72)](/[^a-zA-Z0-9]/g,'')[_0xd19351(0x7f)]();}export function generateRandomHex(){const _0x2c4333=a210_0x41a9,_0x565513=Math[_0x2c4333(0x6e)](Math[_0x2c4333(0x7e)]()*0xfffff);return _0x565513[_0x2c4333(0x7a)](0x10)[_0x2c4333(0x84)](0x5,'0');}export function sanitizeFileName(_0x585b0d){const _0x3c12ee=a210_0x41a9;return _0x585b0d['toLowerCase']()[_0x3c12ee(0x72)](/[/\\:*?"<>|]/g,'-')[_0x3c12ee(0x72)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');}function a210_0x8779(){const _0x522384=['test','9VbybLE','1316XHmXaN','replace','unknown','1003148QEPfiU','6162NlDnkg','788210YNGbgI','5281140seDQPE','trim','11IiyZKC','toString','substring','repeat','length','random','toLowerCase','2062216zGGbmn','15392aYPaYW','27GAkVML','Cannot\x20escape\x20empty\x20string\x20literal','padStart','3PyvcMz','827140ePiAxx','floor'];a210_0x8779=function(){return _0x522384;};return a210_0x8779();}
@@ -1 +1 @@
1
- function a211_0x178a(_0x4aa56c,_0x3f6750){_0x4aa56c=_0x4aa56c-0x1b6;const _0x547343=a211_0x5473();let _0x178ad5=_0x547343[_0x4aa56c];return _0x178ad5;}(function(_0x2145d1,_0x4d98ef){const _0x17f117=a211_0x178a,_0x4e98d2=_0x2145d1();while(!![]){try{const _0x23ba14=-parseInt(_0x17f117(0x1c5))/0x1+parseInt(_0x17f117(0x1bf))/0x2+-parseInt(_0x17f117(0x1c8))/0x3+parseInt(_0x17f117(0x1c6))/0x4*(-parseInt(_0x17f117(0x1cc))/0x5)+parseInt(_0x17f117(0x1cb))/0x6+parseInt(_0x17f117(0x1cd))/0x7*(-parseInt(_0x17f117(0x1c7))/0x8)+parseInt(_0x17f117(0x1bc))/0x9;if(_0x23ba14===_0x4d98ef)break;else _0x4e98d2['push'](_0x4e98d2['shift']());}catch(_0x4063ba){_0x4e98d2['push'](_0x4e98d2['shift']());}}}(a211_0x5473,0x6bc48));function hasWildcard(_0x4bc89f){const _0x2e3bb3=a211_0x178a;return _0x4bc89f[_0x2e3bb3(0x1b8)]('*')||_0x4bc89f[_0x2e3bb3(0x1b8)]('?');}export function parseTableReference(_0x20fa0c){const _0x282e3b=a211_0x178a;if(!_0x20fa0c||_0x20fa0c[_0x282e3b(0x1b9)]()[_0x282e3b(0x1c1)]===0x0)throw new Error(_0x282e3b(0x1b7));const _0x5dee15=_0x20fa0c['trim'](),_0x549f00={'original':_0x5dee15},_0x3473a1=_0x5dee15[_0x282e3b(0x1bd)]('.');if(_0x3473a1[_0x282e3b(0x1c1)]===0x1){const _0x326648=_0x3473a1[0x0];if(!_0x326648)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x549f00[_0x282e3b(0x1c0)]=_0x326648;}else{if(_0x3473a1[_0x282e3b(0x1c1)]===0x2){const [_0x4316d0,_0x126587]=_0x3473a1;if(!_0x4316d0)throw new Error(_0x282e3b(0x1ba));if(!_0x126587)throw new Error(_0x282e3b(0x1c4));_0x549f00[_0x282e3b(0x1c2)]=_0x4316d0,_0x549f00[_0x282e3b(0x1c0)]=_0x126587;}else{if(_0x3473a1['length']===0x3){const [_0x4f544e,_0x53db22,_0x31f291]=_0x3473a1;if(!_0x4f544e||!_0x53db22||!_0x31f291)throw new Error(_0x282e3b(0x1be));_0x549f00[_0x282e3b(0x1c3)]=_0x4f544e,_0x549f00[_0x282e3b(0x1c2)]=_0x53db22,_0x549f00[_0x282e3b(0x1c0)]=_0x31f291;}else throw new Error(_0x282e3b(0x1bb));}}return _0x549f00;}function a211_0x5473(){const _0x166539=['Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','166860TFVreB','2456EIFgBb','1528rWJhbu','933105sUQOkc','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','2377182jRcpbr','4835GUZplp','12026lcwhUt','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','includes','trim','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','10830348IRGTLY','split','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','483236jrbVMG','table','length','database','catalog'];a211_0x5473=function(){return _0x166539;};return a211_0x5473();}export function formatTableReference(_0x11e7f8){const _0x3e00ab=a211_0x178a,_0x547136=[];return _0x11e7f8['catalog']&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c3)]),_0x11e7f8[_0x3e00ab(0x1c2)]&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c2)]),_0x11e7f8[_0x3e00ab(0x1c0)]&&_0x547136['push'](_0x11e7f8[_0x3e00ab(0x1c0)]),_0x547136[_0x3e00ab(0x1c9)]('.');}export function validateTableListReference(_0x3f4608){return undefined;}export function validateTableDescribeReference(_0x55e833){const _0x256d44=a211_0x178a;if(!_0x55e833[_0x256d44(0x1c0)])return _0x256d44(0x1ca);if(_0x55e833['database']&&hasWildcard(_0x55e833[_0x256d44(0x1c2)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x55e833['table']))return _0x256d44(0x1b6);return undefined;}
1
+ (function(_0x3aac47,_0x100d1c){const _0x420ef5=a211_0x4680,_0x33cdd8=_0x3aac47();while(!![]){try{const _0x231b23=parseInt(_0x420ef5(0x1fc))/0x1*(-parseInt(_0x420ef5(0x1ef))/0x2)+-parseInt(_0x420ef5(0x1f2))/0x3+parseInt(_0x420ef5(0x207))/0x4+parseInt(_0x420ef5(0x201))/0x5+parseInt(_0x420ef5(0x1f3))/0x6+parseInt(_0x420ef5(0x1fd))/0x7*(parseInt(_0x420ef5(0x204))/0x8)+-parseInt(_0x420ef5(0x1f9))/0x9*(parseInt(_0x420ef5(0x205))/0xa);if(_0x231b23===_0x100d1c)break;else _0x33cdd8['push'](_0x33cdd8['shift']());}catch(_0xb7d897){_0x33cdd8['push'](_0x33cdd8['shift']());}}}(a211_0x3b02,0x93a25));function a211_0x4680(_0x215615,_0x4033a3){_0x215615=_0x215615-0x1ef;const _0x3b023a=a211_0x3b02();let _0x468015=_0x3b023a[_0x215615];return _0x468015;}function a211_0x3b02(){const _0xbefb01=['435560xNxgfv','push','includes','2635164kwjCYR','1164018kcavpv','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','table','trim','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database','101538QcnNYQ','catalog','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','2HLKkNc','7QSMFyU','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','674350VYQSNN','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','join','9360632BHbVAX','410DPWHlY','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','3529068EQBMXz'];a211_0x3b02=function(){return _0xbefb01;};return a211_0x3b02();}function hasWildcard(_0x159967){const _0x2c4283=a211_0x4680;return _0x159967[_0x2c4283(0x1f1)]('*')||_0x159967['includes']('?');}export function parseTableReference(_0x3e7430){const _0x1ab734=a211_0x4680;if(!_0x3e7430||_0x3e7430[_0x1ab734(0x1f6)]()[_0x1ab734(0x1fe)]===0x0)throw new Error(_0x1ab734(0x202));const _0x2ab27e=_0x3e7430[_0x1ab734(0x1f6)](),_0x1b4f4a={'original':_0x2ab27e},_0x276f85=_0x2ab27e['split']('.');if(_0x276f85['length']===0x1){const _0x170ec5=_0x276f85[0x0];if(!_0x170ec5)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1b4f4a[_0x1ab734(0x1f5)]=_0x170ec5;}else{if(_0x276f85[_0x1ab734(0x1fe)]===0x2){const [_0x5a7060,_0x41452b]=_0x276f85;if(!_0x5a7060)throw new Error(_0x1ab734(0x200));if(!_0x41452b)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x1b4f4a[_0x1ab734(0x1f8)]=_0x5a7060,_0x1b4f4a['table']=_0x41452b;}else{if(_0x276f85[_0x1ab734(0x1fe)]===0x3){const [_0x476c6,_0x53f392,_0x598905]=_0x276f85;if(!_0x476c6||!_0x53f392||!_0x598905)throw new Error(_0x1ab734(0x1ff));_0x1b4f4a[_0x1ab734(0x1fa)]=_0x476c6,_0x1b4f4a[_0x1ab734(0x1f8)]=_0x53f392,_0x1b4f4a[_0x1ab734(0x1f5)]=_0x598905;}else throw new Error(_0x1ab734(0x1fb));}}return _0x1b4f4a;}export function formatTableReference(_0x1caba6){const _0x2af97=a211_0x4680,_0x198860=[];return _0x1caba6[_0x2af97(0x1fa)]&&_0x198860[_0x2af97(0x1f0)](_0x1caba6[_0x2af97(0x1fa)]),_0x1caba6['database']&&_0x198860[_0x2af97(0x1f0)](_0x1caba6['database']),_0x1caba6['table']&&_0x198860[_0x2af97(0x1f0)](_0x1caba6[_0x2af97(0x1f5)]),_0x198860[_0x2af97(0x203)]('.');}export function validateTableListReference(_0xd70951){return undefined;}export function validateTableDescribeReference(_0x5d8476){const _0x4dd14a=a211_0x4680;if(!_0x5d8476[_0x4dd14a(0x1f5)])return _0x4dd14a(0x1f7);if(_0x5d8476[_0x4dd14a(0x1f8)]&&hasWildcard(_0x5d8476[_0x4dd14a(0x1f8)]))return _0x4dd14a(0x206);if(hasWildcard(_0x5d8476[_0x4dd14a(0x1f5)]))return _0x4dd14a(0x1f4);return undefined;}
@@ -1 +1 @@
1
- const a212_0x3fa210=a212_0x4d08;(function(_0x5784c7,_0x28ff93){const _0x170dbf=a212_0x4d08,_0x18190c=_0x5784c7();while(!![]){try{const _0x56e1ca=-parseInt(_0x170dbf(0x1ba))/0x1+-parseInt(_0x170dbf(0x1ce))/0x2*(parseInt(_0x170dbf(0x1cd))/0x3)+parseInt(_0x170dbf(0x1c0))/0x4+parseInt(_0x170dbf(0x1d1))/0x5*(-parseInt(_0x170dbf(0x1d5))/0x6)+parseInt(_0x170dbf(0x1d2))/0x7+-parseInt(_0x170dbf(0x1cf))/0x8*(parseInt(_0x170dbf(0x1be))/0x9)+parseInt(_0x170dbf(0x1c8))/0xa;if(_0x56e1ca===_0x28ff93)break;else _0x18190c['push'](_0x18190c['shift']());}catch(_0x446533){_0x18190c['push'](_0x18190c['shift']());}}}(a212_0x3f04,0x6ecfc));function a212_0x4d08(_0x15fff6,_0x470354){_0x15fff6=_0x15fff6-0x1b8;const _0x3f0414=a212_0x3f04();let _0x4d0827=_0x3f0414[_0x15fff6];return _0x4d0827;}import{join}from'path';function a212_0x3f04(){const _0x3aab1d=['close','push','479185NcAdbK','fileOnly','Session\x20ended','isInitialized','261jFCnYG','fileHandler','3426176ClEjPx','logDir','warn','INFO','logger','consoleHandler','init','trace','14297070mWaqRn','tdx','logLevel','debug','addHandler','3867MSsenS','1126NxFPBN','135656eODXAl','tdx.log','2111165UhdRpC','4961208BCkRUJ','shutdown','logFileName','12JNOZeU','getLogPath','info'];a212_0x3f04=function(){return _0x3aab1d;};return a212_0x3f04();}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a212_0x3fa210(0x1ca)];[a212_0x3fa210(0x1bb)];[a212_0x3fa210(0x1c1)];[a212_0x3fa210(0x1d4)];[a212_0x3fa210(0x1c4)];[a212_0x3fa210(0x1bf)]=null;[a212_0x3fa210(0x1c5)]=null;constructor(_0x5a93af=LogLevel[a212_0x3fa210(0x1c3)],_0x4aa5f0=![],_0x351636,_0x3eb4ad=a212_0x3fa210(0x1d0)){const _0x16ce3c=a212_0x3fa210;this[_0x16ce3c(0x1ca)]=_0x5a93af,this[_0x16ce3c(0x1bb)]=_0x4aa5f0,this['logDir']=_0x351636||join(getGlobalCacheDir(),'logs'),this[_0x16ce3c(0x1d4)]=_0x3eb4ad,this[_0x16ce3c(0x1c4)]=Logger['of'](_0x16ce3c(0x1c9));}async[a212_0x3fa210(0x1c6)](){const _0x3cd991=a212_0x3fa210,_0x547a9c=join(this[_0x3cd991(0x1c1)],this[_0x3cd991(0x1d4)]);if(Logger[_0x3cd991(0x1bd)]()){!this[_0x3cd991(0x1bb)]&&(this[_0x3cd991(0x1c5)]=new ConsoleHandler({'minLevel':LogLevel[_0x3cd991(0x1c3)],'colors':!![]}),Logger[_0x3cd991(0x1cc)](this['consoleHandler']));return;}this[_0x3cd991(0x1bf)]=new FileHandler({'filePath':_0x547a9c});const _0x1307f1=[this[_0x3cd991(0x1bf)]];!this[_0x3cd991(0x1bb)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x3cd991(0x1c3)],'colors':!![]}),_0x1307f1[_0x3cd991(0x1b9)](this['consoleHandler'])),await Logger[_0x3cd991(0x1c6)]({'defaultLevel':this['logLevel'],'handlers':_0x1307f1,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x3fa210(0x1cb)](..._0x1925e6){const _0x415880=a212_0x3fa210;this[_0x415880(0x1c4)]['debug'](..._0x1925e6);}[a212_0x3fa210(0x1c7)](..._0xe0e2dd){const _0x187808=a212_0x3fa210;this['logger'][_0x187808(0x1c7)](..._0xe0e2dd);}[a212_0x3fa210(0x1d7)](..._0x346248){const _0x22c337=a212_0x3fa210;this[_0x22c337(0x1c4)][_0x22c337(0x1d7)](..._0x346248);}[a212_0x3fa210(0x1c2)](..._0x483a5f){const _0x3f3532=a212_0x3fa210;this[_0x3f3532(0x1c4)][_0x3f3532(0x1c2)](..._0x483a5f);}['error'](..._0x1f2e86){const _0x1b6599=a212_0x3fa210;this[_0x1b6599(0x1c4)]['error'](..._0x1f2e86);}async[a212_0x3fa210(0x1b8)](){const _0x348e5f=a212_0x3fa210;this['logger'][_0x348e5f(0x1d7)](_0x348e5f(0x1bc)),await Logger[_0x348e5f(0x1d3)]();}[a212_0x3fa210(0x1d6)](){return join(this['logDir'],this['logFileName']);}}
1
+ const a212_0x3e85a4=a212_0x3a61;(function(_0xb9ced7,_0x4ee36b){const _0x5bc0cd=a212_0x3a61,_0x5da27a=_0xb9ced7();while(!![]){try{const _0x13b522=parseInt(_0x5bc0cd(0x174))/0x1+-parseInt(_0x5bc0cd(0x16c))/0x2+parseInt(_0x5bc0cd(0x161))/0x3*(-parseInt(_0x5bc0cd(0x177))/0x4)+parseInt(_0x5bc0cd(0x173))/0x5*(parseInt(_0x5bc0cd(0x181))/0x6)+parseInt(_0x5bc0cd(0x163))/0x7*(-parseInt(_0x5bc0cd(0x164))/0x8)+-parseInt(_0x5bc0cd(0x169))/0x9*(-parseInt(_0x5bc0cd(0x167))/0xa)+-parseInt(_0x5bc0cd(0x182))/0xb;if(_0x13b522===_0x4ee36b)break;else _0x5da27a['push'](_0x5da27a['shift']());}catch(_0x20479c){_0x5da27a['push'](_0x5da27a['shift']());}}}(a212_0x2e33,0x50e7b));import{join}from'path';function a212_0x2e33(){const _0x52dbf3=['info','6wuvEyR','1671285VOgpqI','230961aWCgRu','Session\x20ended','3717nKxlvh','6632hPOulI','fileHandler','addHandler','8780cpVxWi','fileOnly','5391IsRvPe','getLogPath','logFileName','679172atFXNw','logLevel','trace','init','consoleHandler','shutdown','warn','3210065EzuQvF','634081vyboKn','logDir','INFO','28Fipnmt','close','tdx.log','error','logs','debug','push','logger','isInitialized'];a212_0x2e33=function(){return _0x52dbf3;};return a212_0x2e33();}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';function a212_0x3a61(_0x31deb1,_0x1ac331){_0x31deb1=_0x31deb1-0x161;const _0x2e333d=a212_0x2e33();let _0x3a611a=_0x2e333d[_0x31deb1];return _0x3a611a;}import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a212_0x3e85a4(0x16d)];[a212_0x3e85a4(0x168)];[a212_0x3e85a4(0x175)];['logFileName'];[a212_0x3e85a4(0x17e)];['fileHandler']=null;[a212_0x3e85a4(0x170)]=null;constructor(_0x222f3a=LogLevel[a212_0x3e85a4(0x176)],_0x3c5bd9=![],_0x5b5b88,_0x34e838=a212_0x3e85a4(0x179)){const _0x138314=a212_0x3e85a4;this[_0x138314(0x16d)]=_0x222f3a,this[_0x138314(0x168)]=_0x3c5bd9,this[_0x138314(0x175)]=_0x5b5b88||join(getGlobalCacheDir(),_0x138314(0x17b)),this[_0x138314(0x16b)]=_0x34e838,this[_0x138314(0x17e)]=Logger['of']('tdx');}async[a212_0x3e85a4(0x16f)](){const _0x51940a=a212_0x3e85a4,_0x491f84=join(this[_0x51940a(0x175)],this[_0x51940a(0x16b)]);if(Logger[_0x51940a(0x17f)]()){!this[_0x51940a(0x168)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x51940a(0x176)],'colors':!![]}),Logger[_0x51940a(0x166)](this[_0x51940a(0x170)]));return;}this['fileHandler']=new FileHandler({'filePath':_0x491f84});const _0x366506=[this[_0x51940a(0x165)]];!this['fileOnly']&&(this[_0x51940a(0x170)]=new ConsoleHandler({'minLevel':LogLevel[_0x51940a(0x176)],'colors':!![]}),_0x366506[_0x51940a(0x17d)](this[_0x51940a(0x170)])),await Logger[_0x51940a(0x16f)]({'defaultLevel':this[_0x51940a(0x16d)],'handlers':_0x366506,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x3e85a4(0x17c)](..._0x3952e9){const _0x2fbaa4=a212_0x3e85a4;this[_0x2fbaa4(0x17e)][_0x2fbaa4(0x17c)](..._0x3952e9);}[a212_0x3e85a4(0x16e)](..._0x25048d){const _0x213f56=a212_0x3e85a4;this[_0x213f56(0x17e)]['trace'](..._0x25048d);}['info'](..._0x1fa345){const _0x50d811=a212_0x3e85a4;this['logger'][_0x50d811(0x180)](..._0x1fa345);}[a212_0x3e85a4(0x172)](..._0x59f530){const _0x537c8b=a212_0x3e85a4;this[_0x537c8b(0x17e)][_0x537c8b(0x172)](..._0x59f530);}[a212_0x3e85a4(0x17a)](..._0x46583b){const _0xdb37db=a212_0x3e85a4;this[_0xdb37db(0x17e)][_0xdb37db(0x17a)](..._0x46583b);}async[a212_0x3e85a4(0x178)](){const _0x20d275=a212_0x3e85a4;this['logger'][_0x20d275(0x180)](_0x20d275(0x162)),await Logger[_0x20d275(0x171)]();}[a212_0x3e85a4(0x16a)](){const _0x4f8aaf=a212_0x3e85a4;return join(this[_0x4f8aaf(0x175)],this[_0x4f8aaf(0x16b)]);}}
@@ -1 +1 @@
1
- const a213_0x170c05=a213_0x30dd;(function(_0x343f9a,_0xfc8666){const _0x45b2b6=a213_0x30dd,_0x527551=_0x343f9a();while(!![]){try{const _0x12483b=parseInt(_0x45b2b6(0xe7))/0x1*(-parseInt(_0x45b2b6(0xf9))/0x2)+parseInt(_0x45b2b6(0x10e))/0x3+-parseInt(_0x45b2b6(0xe2))/0x4+parseInt(_0x45b2b6(0xfc))/0x5*(parseInt(_0x45b2b6(0x106))/0x6)+-parseInt(_0x45b2b6(0xe4))/0x7+parseInt(_0x45b2b6(0xe1))/0x8+parseInt(_0x45b2b6(0x10c))/0x9*(parseInt(_0x45b2b6(0xee))/0xa);if(_0x12483b===_0xfc8666)break;else _0x527551['push'](_0x527551['shift']());}catch(_0x16011f){_0x527551['push'](_0x527551['shift']());}}}(a213_0x3217,0xb83de));import{get}from'https';import{gt,valid}from'semver';import a213_0x4814c8 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_0x170c05(0x107),'utils/version-check'),nextVersionCache=createGlobalCache(a213_0x170c05(0x10b),a213_0x170c05(0xf6));function getCacheForChannel(_0x873e43){const _0x30d168=a213_0x170c05;return _0x873e43===_0x30d168(0xfa)?nextVersionCache:stableVersionCache;}function readCache(_0x51721b){const _0x5dfb51=a213_0x170c05;return getCacheForChannel(_0x51721b)[_0x5dfb51(0xf7)]()??null;}function a213_0x3217(){const _0x1e9bf7=['end','464358xqrACw','last_version_check','isTTY','Run:','gray','last_version_check_next','34794mhPwHc','\x0aRun:\x20','3629919gpbxEy','4439640IzoSUt','5513352WjMOpU','lastCheck','8232630wySgLT','cyan','error','26nCcCoS','parse','getTime','unref','currentVersion','stable','HTTP\x20','5060drhPrD','Request\x20timeout','version','latestVersion','tdx\x20upgrade\x20--next','write','Update\x20available:','socket','utils/version-check-next','read','stderr','79322zHrfUY','next','now','40ofLQvj','dim','data','channel','yellow','\x0aUpdate\x20available:\x20','statusCode','destroy','Invalid\x20version\x20format'];a213_0x3217=function(){return _0x1e9bf7;};return a213_0x3217();}function writeCache(_0x4db1dc,_0x472a08){const _0x49e39=a213_0x170c05;try{getCacheForChannel(_0x472a08)[_0x49e39(0xf3)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x4db1dc});}catch{}}function isCacheValid(_0xb67092){const _0x1dc637=a213_0x170c05;if(!_0xb67092)return![];const _0x38789e=new Date(_0xb67092[_0x1dc637(0xe3)])[_0x1dc637(0xe9)](),_0x1831d1=Date[_0x1dc637(0xfb)]();return _0x1831d1-_0x38789e<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x45459d=a213_0x170c05(0xec)){const _0x1c61ab=a213_0x170c05,_0xbafed=_0x45459d==='next'?_0x1c61ab(0xfa):'latest',_0x1a09d2=NPM_REGISTRY_BASE+'/'+_0xbafed;return new Promise((_0xb4ab90,_0x578f3c)=>{const _0x20f900=_0x1c61ab,_0x52550b=get(_0x1a09d2,{'timeout':TIMEOUT_MS},_0xca9bd=>{const _0x1d288e=a213_0x30dd;if(_0xca9bd[_0x1d288e(0x102)]!==0xc8){clearTimeout(_0x35b811),_0x578f3c(new Error(_0x1d288e(0xed)+_0xca9bd[_0x1d288e(0x102)]));return;}let _0x324163='';_0xca9bd['on'](_0x1d288e(0xfe),_0x6f6bda=>{_0x324163+=_0x6f6bda;}),_0xca9bd['on'](_0x1d288e(0x105),()=>{const _0x25270f=_0x1d288e;clearTimeout(_0x35b811);try{const _0x128219=JSON[_0x25270f(0xe8)](_0x324163);if(!valid(_0x128219[_0x25270f(0xf0)])){_0x578f3c(new Error(_0x25270f(0x104)));return;}_0xb4ab90(_0x128219['version']);}catch(_0x4e3095){_0x578f3c(_0x4e3095);}});})['on'](_0x20f900(0xe6),_0x1c164e=>{clearTimeout(_0x35b811),_0x578f3c(_0x1c164e);});_0x52550b['on'](_0x20f900(0xf5),_0x33703d=>{const _0x4e0035=_0x20f900;_0x33703d[_0x4e0035(0xea)]();});const _0x35b811=setTimeout(()=>{const _0x57d364=_0x20f900;_0x52550b[_0x57d364(0x103)](),_0x578f3c(new Error(_0x57d364(0xef)));},TIMEOUT_MS);_0x35b811[_0x20f900(0xea)]();});}export async function checkForUpdate(_0x2524df,_0x3465f1=a213_0x170c05(0xec)){const _0x32e519=a213_0x170c05;try{const _0x3572d8=readCache(_0x3465f1);if(isCacheValid(_0x3572d8)){const _0x49fd4e=gt(_0x3572d8[_0x32e519(0xf1)],_0x2524df);return{'updateAvailable':_0x49fd4e,'currentVersion':_0x2524df,'latestVersion':_0x3572d8['latestVersion'],'channel':_0x3465f1};}const _0x195f80=await fetchLatestVersion(_0x3465f1);writeCache(_0x195f80,_0x3465f1);const _0x27a691=gt(_0x195f80,_0x2524df);return{'updateAvailable':_0x27a691,'currentVersion':_0x2524df,'latestVersion':_0x195f80,'channel':_0x3465f1};}catch{return null;}}function a213_0x30dd(_0x3edc7f,_0x46ad5b){_0x3edc7f=_0x3edc7f-0xe1;const _0x32179c=a213_0x3217();let _0x30dd40=_0x32179c[_0x3edc7f];return _0x30dd40;}export function displayUpdateNotification(_0x3b6b60){const _0x6a1442=a213_0x170c05;if(!_0x3b6b60['updateAvailable'])return;const _0x4fb458=_0x3b6b60[_0x6a1442(0xff)]===_0x6a1442(0xfa)?_0x6a1442(0xf2):'tdx\x20upgrade',_0x2d7157=process[_0x6a1442(0xf8)][_0x6a1442(0x108)]&&!process.env.NO_COLOR,_0xab354e=_0x2d7157?a213_0x4814c8[_0x6a1442(0x10a)]('→'):'→',_0x222425=_0x2d7157?a213_0x4814c8[_0x6a1442(0xfd)](_0x3b6b60[_0x6a1442(0xeb)]):_0x3b6b60[_0x6a1442(0xeb)],_0x322227=_0x2d7157?a213_0x4814c8['green'](_0x3b6b60[_0x6a1442(0xf1)]):_0x3b6b60[_0x6a1442(0xf1)],_0x3f89c2=_0x2d7157?a213_0x4814c8[_0x6a1442(0xe5)](_0x4fb458):_0x4fb458,_0x655fcf=_0x2d7157?'\x0a'+a213_0x4814c8[_0x6a1442(0x100)](_0x6a1442(0xf4))+'\x20'+_0x222425+'\x20'+_0xab354e+'\x20'+_0x322227+'\x0a'+a213_0x4814c8[_0x6a1442(0xfd)](_0x6a1442(0x109))+'\x20'+_0x3f89c2+'\x0a':_0x6a1442(0x101)+_0x222425+'\x20'+_0xab354e+'\x20'+_0x322227+_0x6a1442(0x10d)+_0x3f89c2+'\x0a';process['stderr'][_0x6a1442(0xf3)](_0x655fcf);}
1
+ const a213_0x63e580=a213_0x5ee0;(function(_0x9bd740,_0x18cb69){const _0x43138d=a213_0x5ee0,_0x21ebf3=_0x9bd740();while(!![]){try{const _0x3734f4=-parseInt(_0x43138d(0x1af))/0x1*(parseInt(_0x43138d(0x1ae))/0x2)+parseInt(_0x43138d(0x1b0))/0x3+-parseInt(_0x43138d(0x199))/0x4+parseInt(_0x43138d(0x1be))/0x5*(parseInt(_0x43138d(0x1b2))/0x6)+-parseInt(_0x43138d(0x196))/0x7*(-parseInt(_0x43138d(0x1a8))/0x8)+-parseInt(_0x43138d(0x19a))/0x9*(parseInt(_0x43138d(0x194))/0xa)+parseInt(_0x43138d(0x193))/0xb*(-parseInt(_0x43138d(0x1bd))/0xc);if(_0x3734f4===_0x18cb69)break;else _0x21ebf3['push'](_0x21ebf3['shift']());}catch(_0x402566){_0x21ebf3['push'](_0x21ebf3['shift']());}}}(a213_0x15f4,0x971bf));import{get}from'https';import{gt,valid}from'semver';import a213_0x4f9a48 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_0x63e580(0x197),a213_0x63e580(0x1ad)),nextVersionCache=createGlobalCache('last_version_check_next',a213_0x63e580(0x1a9));function a213_0x15f4(){const _0x241ccb=['utils/version-check-next','lastCheck','end','data','utils/version-check','1852946JqqfYY','1SIVaGt','3672186ZmIlBr','version','6007866wnRNQp','currentVersion','tdx\x20upgrade\x20--next','isTTY','latest','stderr','now','read','unref','HTTP\x20','updateAvailable','3356076AXsEqW','5hRTWnd','socket','\x0aUpdate\x20available:\x20','11ErnXyt','80ERAsAy','\x0aRun:\x20','7FwDLop','last_version_check','parse','2008760QlrCvp','603738RrXkvO','toISOString','stable','green','error','tdx\x20upgrade','dim','Run:','latestVersion','next','statusCode','channel','write','yellow','5108496xwWHkS'];a213_0x15f4=function(){return _0x241ccb;};return a213_0x15f4();}function getCacheForChannel(_0x461758){const _0x504278=a213_0x63e580;return _0x461758===_0x504278(0x1a3)?nextVersionCache:stableVersionCache;}function readCache(_0x438f58){const _0x46454c=a213_0x63e580;return getCacheForChannel(_0x438f58)[_0x46454c(0x1b9)]()??null;}function writeCache(_0xd20cf8,_0x69eb9d){const _0x451749=a213_0x63e580;try{getCacheForChannel(_0x69eb9d)[_0x451749(0x1a6)]({'lastCheck':new Date()[_0x451749(0x19b)](),'latestVersion':_0xd20cf8});}catch{}}function a213_0x5ee0(_0x3aa244,_0x2861c2){_0x3aa244=_0x3aa244-0x192;const _0x15f4ca=a213_0x15f4();let _0x5ee058=_0x15f4ca[_0x3aa244];return _0x5ee058;}function isCacheValid(_0x480d10){const _0x13044b=a213_0x63e580;if(!_0x480d10)return![];const _0x190283=new Date(_0x480d10[_0x13044b(0x1aa)])['getTime'](),_0xf6714f=Date[_0x13044b(0x1b8)]();return _0xf6714f-_0x190283<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x24d555=a213_0x63e580(0x19c)){const _0x4d4afb=a213_0x63e580,_0x203a0b=_0x24d555==='next'?'next':_0x4d4afb(0x1b6),_0x1b180a=NPM_REGISTRY_BASE+'/'+_0x203a0b;return new Promise((_0x45d5e9,_0x5d306e)=>{const _0x4fb00d=_0x4d4afb,_0x5beb04=get(_0x1b180a,{'timeout':TIMEOUT_MS},_0x45a89c=>{const _0x464775=a213_0x5ee0;if(_0x45a89c['statusCode']!==0xc8){clearTimeout(_0x18f2f2),_0x5d306e(new Error(_0x464775(0x1bb)+_0x45a89c[_0x464775(0x1a4)]));return;}let _0x31b799='';_0x45a89c['on'](_0x464775(0x1ac),_0x84ae08=>{_0x31b799+=_0x84ae08;}),_0x45a89c['on'](_0x464775(0x1ab),()=>{const _0x1d4561=_0x464775;clearTimeout(_0x18f2f2);try{const _0x5a041a=JSON[_0x1d4561(0x198)](_0x31b799);if(!valid(_0x5a041a['version'])){_0x5d306e(new Error('Invalid\x20version\x20format'));return;}_0x45d5e9(_0x5a041a[_0x1d4561(0x1b1)]);}catch(_0x3037c2){_0x5d306e(_0x3037c2);}});})['on'](_0x4fb00d(0x19e),_0x25d314=>{clearTimeout(_0x18f2f2),_0x5d306e(_0x25d314);});_0x5beb04['on'](_0x4fb00d(0x1bf),_0x171099=>{_0x171099['unref']();});const _0x18f2f2=setTimeout(()=>{_0x5beb04['destroy'](),_0x5d306e(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x18f2f2[_0x4fb00d(0x1ba)]();});}export async function checkForUpdate(_0x194a44,_0x16bd29='stable'){const _0x1797ff=a213_0x63e580;try{const _0x17320b=readCache(_0x16bd29);if(isCacheValid(_0x17320b)){const _0x21e5e5=gt(_0x17320b[_0x1797ff(0x1a2)],_0x194a44);return{'updateAvailable':_0x21e5e5,'currentVersion':_0x194a44,'latestVersion':_0x17320b[_0x1797ff(0x1a2)],'channel':_0x16bd29};}const _0x41de6a=await fetchLatestVersion(_0x16bd29);writeCache(_0x41de6a,_0x16bd29);const _0x57549a=gt(_0x41de6a,_0x194a44);return{'updateAvailable':_0x57549a,'currentVersion':_0x194a44,'latestVersion':_0x41de6a,'channel':_0x16bd29};}catch{return null;}}export function displayUpdateNotification(_0xd2b4a7){const _0x168f9b=a213_0x63e580;if(!_0xd2b4a7[_0x168f9b(0x1bc)])return;const _0x56acfa=_0xd2b4a7[_0x168f9b(0x1a5)]===_0x168f9b(0x1a3)?_0x168f9b(0x1b4):_0x168f9b(0x19f),_0xd584d1=process[_0x168f9b(0x1b7)][_0x168f9b(0x1b5)]&&!process.env.NO_COLOR,_0x555628=_0xd584d1?a213_0x4f9a48['gray']('→'):'→',_0x84cbfe=_0xd584d1?a213_0x4f9a48[_0x168f9b(0x1a0)](_0xd2b4a7[_0x168f9b(0x1b3)]):_0xd2b4a7['currentVersion'],_0x513ec5=_0xd584d1?a213_0x4f9a48[_0x168f9b(0x19d)](_0xd2b4a7[_0x168f9b(0x1a2)]):_0xd2b4a7['latestVersion'],_0x1adef1=_0xd584d1?a213_0x4f9a48['cyan'](_0x56acfa):_0x56acfa,_0x3d4c5c=_0xd584d1?'\x0a'+a213_0x4f9a48[_0x168f9b(0x1a7)]('Update\x20available:')+'\x20'+_0x84cbfe+'\x20'+_0x555628+'\x20'+_0x513ec5+'\x0a'+a213_0x4f9a48['dim'](_0x168f9b(0x1a1))+'\x20'+_0x1adef1+'\x0a':_0x168f9b(0x192)+_0x84cbfe+'\x20'+_0x555628+'\x20'+_0x513ec5+_0x168f9b(0x195)+_0x1adef1+'\x0a';process['stderr'][_0x168f9b(0x1a6)](_0x3d4c5c);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.10",
3
+ "version": "2026.3.11",
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": {