@treasuredata/tdx 2026.3.28 → 2026.3.30

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 (203) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.js +1 -1
  65. package/dist/core/profile.js +1 -1
  66. package/dist/core/project-config.js +1 -1
  67. package/dist/core/session.js +1 -1
  68. package/dist/core/user-cache.js +1 -1
  69. package/dist/core/version.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/mcp/server.js +1 -1
  72. package/dist/mcp/tools/index.js +1 -1
  73. package/dist/mcp/tools/tdx-run.js +1 -1
  74. package/dist/mcp/tools/tdx-search.js +1 -1
  75. package/dist/mcp/utils.js +1 -1
  76. package/dist/proxy/claude-usage-tracker.js +1 -1
  77. package/dist/proxy/passthrough-server.js +1 -1
  78. package/dist/proxy/sse-usage-parser.js +1 -1
  79. package/dist/sdk/agent/agent-config.js +1 -1
  80. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  81. package/dist/sdk/agent/agent-yaml.js +1 -1
  82. package/dist/sdk/agent/test/evaluator.js +1 -1
  83. package/dist/sdk/agent/test/executor.js +1 -1
  84. package/dist/sdk/agent/test/index.js +1 -1
  85. package/dist/sdk/agent/test/output.js +1 -1
  86. package/dist/sdk/agent/test/parser.js +1 -1
  87. package/dist/sdk/agent/tool-target-registry.js +1 -1
  88. package/dist/sdk/api.js +1 -1
  89. package/dist/sdk/client/cdp-api-client.js +1 -1
  90. package/dist/sdk/client/delivery-api-client.js +1 -1
  91. package/dist/sdk/client/endpoints.js +1 -1
  92. package/dist/sdk/client/engage-api-client.js +1 -1
  93. package/dist/sdk/client/http-client.js +1 -1
  94. package/dist/sdk/client/llm-api-client.js +1 -1
  95. package/dist/sdk/client/oauth-refresh.js +1 -1
  96. package/dist/sdk/client/rate-limiter.js +1 -1
  97. package/dist/sdk/client/td-api-client.js +1 -1
  98. package/dist/sdk/client/trino-api-client.js +1 -1
  99. package/dist/sdk/client/workflow-client.js +1 -1
  100. package/dist/sdk/connection-validator.js +1 -1
  101. package/dist/sdk/connection.js +1 -1
  102. package/dist/sdk/delivery.js +1 -1
  103. package/dist/sdk/engage/campaign-pull.js +1 -1
  104. package/dist/sdk/engage/campaign-push.js +1 -1
  105. package/dist/sdk/engage/campaign-validator.js +1 -1
  106. package/dist/sdk/engage/campaign-yaml.js +1 -1
  107. package/dist/sdk/engage/template-pull.js +1 -1
  108. package/dist/sdk/engage/template-push.js +1 -1
  109. package/dist/sdk/engage/template-validator.js +1 -1
  110. package/dist/sdk/engage/template-yaml.js +1 -1
  111. package/dist/sdk/engage/types/campaign-def.js +1 -1
  112. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  113. package/dist/sdk/engage/types/template-schema.js +1 -1
  114. package/dist/sdk/engage.js +1 -1
  115. package/dist/sdk/errors.js +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/io/index.js +1 -1
  118. package/dist/sdk/io/node-filesystem.js +1 -1
  119. package/dist/sdk/job.js +1 -1
  120. package/dist/sdk/journey.js +1 -1
  121. package/dist/sdk/llm/chat-cache.js +1 -1
  122. package/dist/sdk/llm/index.js +1 -1
  123. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  124. package/dist/sdk/llm/model-factors.js +1 -1
  125. package/dist/sdk/personalization.js +1 -1
  126. package/dist/sdk/policy.js +1 -1
  127. package/dist/sdk/query/index.js +1 -1
  128. package/dist/sdk/query/sql-parser.js +1 -1
  129. package/dist/sdk/realtime.js +1 -1
  130. package/dist/sdk/schedule.js +1 -1
  131. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  132. package/dist/sdk/segment/fields-display.js +1 -1
  133. package/dist/sdk/segment/file-discovery.js +1 -1
  134. package/dist/sdk/segment/journey-utils.js +1 -1
  135. package/dist/sdk/segment/journey-validator.js +1 -1
  136. package/dist/sdk/segment/journey-yaml.js +1 -1
  137. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  138. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  139. package/dist/sdk/segment/pull-workflow.js +1 -1
  140. package/dist/sdk/segment/push-recovery.js +1 -1
  141. package/dist/sdk/segment/push-workflow.js +1 -1
  142. package/dist/sdk/segment/resolution-context.js +1 -1
  143. package/dist/sdk/segment/segment-path-parser.js +1 -1
  144. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  145. package/dist/sdk/segment/segment-validator.js +1 -1
  146. package/dist/sdk/segment/target-resolution.js +1 -1
  147. package/dist/sdk/segment/tdx-config.js +1 -1
  148. package/dist/sdk/segment/types/activation-schema.js +1 -1
  149. package/dist/sdk/segment/types/journey-def.js +1 -1
  150. package/dist/sdk/segment/types/journey-schema.js +1 -1
  151. package/dist/sdk/segment/types/segment-def.js +1 -1
  152. package/dist/sdk/segment/types/segment-schema.js +1 -1
  153. package/dist/sdk/segment/validate-files.js +1 -1
  154. package/dist/sdk/segment/yaml-validator.js +1 -1
  155. package/dist/sdk/segment.js +1 -1
  156. package/dist/sdk/types/index.js +1 -1
  157. package/dist/sdk/types/progress.js +1 -1
  158. package/dist/sdk/user.js +1 -1
  159. package/dist/sdk/util/format-detector.js +1 -1
  160. package/dist/sdk/util/formatters.js +1 -1
  161. package/dist/sdk/util/index.js +1 -1
  162. package/dist/sdk/util/paginate.js +1 -1
  163. package/dist/sdk/util/tree-formatter.js +1 -1
  164. package/dist/sdk/workflow/archive-validation.js +1 -1
  165. package/dist/sdk/workflow/clone-workflow.js +1 -1
  166. package/dist/sdk/workflow/index.js +1 -1
  167. package/dist/sdk/workflow/pull-workflow.js +1 -1
  168. package/dist/sdk/workflow/push-workflow.js +1 -1
  169. package/dist/sdk/workflow/tdx-config.js +1 -1
  170. package/dist/sdk/workflow/workflow-utils.js +1 -1
  171. package/dist/test-utils/command-runner.js +1 -1
  172. package/dist/test-utils/factories.js +1 -1
  173. package/dist/test-utils/fixtures.js +1 -1
  174. package/dist/test-utils/http-mock.js +1 -1
  175. package/dist/test-utils/index.js +1 -1
  176. package/dist/utils/async.js +1 -1
  177. package/dist/utils/colors.js +1 -1
  178. package/dist/utils/diff.js +1 -1
  179. package/dist/utils/file-permissions.js +1 -1
  180. package/dist/utils/file-reader.js +1 -1
  181. package/dist/utils/github-releases.js +1 -1
  182. package/dist/utils/global-cache.js +1 -1
  183. package/dist/utils/json-loader.js +1 -1
  184. package/dist/utils/local-cache.js +1 -1
  185. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  186. package/dist/utils/logger/formatters/index.js +1 -1
  187. package/dist/utils/logger/handlers/console-handler.js +1 -1
  188. package/dist/utils/logger/handlers/file-handler.js +1 -1
  189. package/dist/utils/logger/handlers/index.js +1 -1
  190. package/dist/utils/logger/handlers/null-handler.js +1 -1
  191. package/dist/utils/logger/index.js +1 -1
  192. package/dist/utils/logger/logger.js +1 -1
  193. package/dist/utils/logger/types.js +1 -1
  194. package/dist/utils/option-validation.js +1 -1
  195. package/dist/utils/process.js +1 -1
  196. package/dist/utils/prompt.js +1 -1
  197. package/dist/utils/spinner.js +1 -1
  198. package/dist/utils/sse-parser.js +1 -1
  199. package/dist/utils/string-utils.js +1 -1
  200. package/dist/utils/table-ref-parser.js +1 -1
  201. package/dist/utils/tdx-logger.js +1 -1
  202. package/dist/utils/version-check.js +1 -1
  203. package/package.json +1 -1
@@ -1 +1 @@
1
- const a209_0x2b7244=a209_0x5bdc;(function(_0x18ec52,_0x218f8b){const _0x5c91af=a209_0x5bdc,_0x350a80=_0x18ec52();while(!![]){try{const _0x128f60=parseInt(_0x5c91af(0xf1))/0x1*(-parseInt(_0x5c91af(0xe6))/0x2)+parseInt(_0x5c91af(0xe4))/0x3*(parseInt(_0x5c91af(0xf9))/0x4)+-parseInt(_0x5c91af(0x103))/0x5*(parseInt(_0x5c91af(0x10d))/0x6)+-parseInt(_0x5c91af(0xf6))/0x7+parseInt(_0x5c91af(0xea))/0x8+parseInt(_0x5c91af(0x118))/0x9*(parseInt(_0x5c91af(0xda))/0xa)+parseInt(_0x5c91af(0xfe))/0xb*(parseInt(_0x5c91af(0xe5))/0xc);if(_0x128f60===_0x218f8b)break;else _0x350a80['push'](_0x350a80['shift']());}catch(_0x47166b){_0x350a80['push'](_0x350a80['shift']());}}}(a209_0x548f,0xc7600));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a209_0x2b7244(0xe8),a209_0x2b7244(0x100),'sh',a209_0x2b7244(0xeb),'ksh','tcsh',a209_0x2b7244(0xdc),'dash',a209_0x2b7244(0xfd),a209_0x2b7244(0xfa),'nu',a209_0x2b7244(0x10b),a209_0x2b7244(0xf4),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x2b7244(0x10a),a209_0x2b7244(0xdb),a209_0x2b7244(0xe1),'electron',a209_0x2b7244(0xf3)]);function getProcessInfoWindows(_0x3b4826){const _0x163f6d=a209_0x2b7244;try{if(!Number['isInteger'](_0x3b4826)||_0x3b4826<=0x0)return null;const _0x30d327=_0x163f6d(0xf2)+_0x3b4826+_0x163f6d(0xe7),_0x364726=execSync(_0x163f6d(0xe9)+_0x30d327+'\x22',{'encoding':_0x163f6d(0xdd),'windowsHide':!![],'stdio':[_0x163f6d(0x105),_0x163f6d(0x105),_0x163f6d(0x105)]})[_0x163f6d(0xfc)]();if(!_0x364726)return null;const [_0x24e524,..._0x3206a4]=_0x364726['split'](','),_0x5dd8af=parseInt(_0x24e524,0xa),_0x7fa703=_0x3206a4[_0x163f6d(0x108)](',')['trim']();if(isNaN(_0x5dd8af)||!_0x7fa703)return null;return{'pid':_0x3b4826,'ppid':_0x5dd8af,'comm':_0x7fa703['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x2e16cd){const _0x44a14a=a209_0x2b7244;try{const _0x3c479b=0x400000;if(!Number['isInteger'](_0x2e16cd)||_0x2e16cd<=0x0||_0x2e16cd>_0x3c479b)return null;const _0x30b93d=execSync('ps\x20-p\x20'+_0x2e16cd+_0x44a14a(0xe2),{'encoding':_0x44a14a(0xdd),'stdio':_0x44a14a(0x105)})[_0x44a14a(0xfc)](),[_0x3c78c8,..._0x4efb3b]=_0x30b93d[_0x44a14a(0x109)](/\s+/),_0xef7a7a=parseInt(_0x3c78c8,0xa),_0x10c555=_0x4efb3b[_0x44a14a(0x108)]('\x20');if(isNaN(_0xef7a7a))return null;return{'pid':_0x2e16cd,'ppid':_0xef7a7a,'comm':_0x10c555};}catch{return null;}}function getProcessInfo(_0x442584){const _0x5195bc=a209_0x2b7244;if(process[_0x5195bc(0x116)]===_0x5195bc(0x104))return getProcessInfoWindows(_0x442584);return getProcessInfoPosix(_0x442584);}function getBasename(_0x2c535f){const _0x3e11a4=a209_0x2b7244;return _0x2c535f[_0x3e11a4(0xed)](/^-/,'')[_0x3e11a4(0x109)]('/')[_0x3e11a4(0x10e)]()?.[_0x3e11a4(0x107)]()||'';}function a209_0x548f(){const _0x5dcc22=['powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','5496288SNRCnZ','fish','toString','replace','ignore','cmd.exe','isInteger','1619stfVkr','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','treasure\x20studio','elvish','unref','4599553BaRruV','map','Invalid\x20URL:\x20','120AMGCTI','powershell','has','trim','pwsh','1476244RCbheG','error','zsh','which','Unsupported\x20protocol:\x20','58495mqBKHP','win32','pipe','protocol','toLowerCase','join','split','claude','ion','exit','582AFSgMw','pop','where.exe','ppid','stderr','kill','href','stdout','comm','platform','pid','9ymuuRz','2088430KYseMf','code','csh','utf-8','test','data','open','cursor','\x20-o\x20ppid=,comm=','darwin','122127PldcOa','168vVRyNC','1714oNgpmK','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','bash'];a209_0x548f=function(){return _0x5dcc22;};return a209_0x548f();}function isShell(_0x3b107c){const _0xc5f8e0=a209_0x2b7244;return SHELL_NAMES[_0xc5f8e0(0xfb)](getBasename(_0x3b107c));}function isEphemeralShellSpawner(_0x5f8f5e){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x5f8f5e));}let cachedShellPID;function findShellPID(){const _0x370229=a209_0x2b7244;if(process[_0x370229(0x110)]===undefined)return process[_0x370229(0x117)];let _0x665346=process[_0x370229(0x110)];const _0x2b1893=0xa;let _0x436fc2=0x0;while(_0x436fc2<_0x2b1893){const _0xc2a8a9=getProcessInfo(_0x665346);if(!_0xc2a8a9)break;if(isShell(_0xc2a8a9['comm'])){const _0x209c4d=getProcessInfo(_0xc2a8a9['ppid']);if(_0x209c4d&&isEphemeralShellSpawner(_0x209c4d['comm'])){_0x665346=_0xc2a8a9[_0x370229(0x110)],_0x436fc2++;continue;}return _0xc2a8a9[_0x370229(0x117)];}if(_0xc2a8a9[_0x370229(0x110)]===0x0||_0xc2a8a9[_0x370229(0x110)]===0x1){if(isShell(_0xc2a8a9[_0x370229(0x115)]))return _0xc2a8a9[_0x370229(0x117)];break;}_0x665346=_0xc2a8a9[_0x370229(0x110)],_0x436fc2++;}return process[_0x370229(0x110)]!==undefined?process[_0x370229(0x110)]:process[_0x370229(0x117)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4c14c1){const _0x44a7db=a209_0x2b7244;if(!Number[_0x44a7db(0xf0)](_0x4c14c1)||_0x4c14c1<=0x0)return![];try{return process[_0x44a7db(0x112)](_0x4c14c1,0x0),!![];}catch{return![];}}export function openBrowser(_0xcea9a8){const _0x3093e8=a209_0x2b7244;let _0x4f1b0e;try{_0x4f1b0e=new URL(_0xcea9a8);}catch{throw new Error(_0x3093e8(0xf8)+_0xcea9a8);}if(_0x4f1b0e['protocol']!=='http:'&&_0x4f1b0e[_0x3093e8(0x106)]!=='https:')throw new Error(_0x3093e8(0x102)+_0x4f1b0e[_0x3093e8(0x106)]);const _0x2a2bda=_0x4f1b0e[_0x3093e8(0x113)],_0x475d1c=process[_0x3093e8(0x116)];if(_0x475d1c===_0x3093e8(0x104))spawn(_0x3093e8(0xef),['/c','start','',_0x2a2bda],{'detached':!![],'stdio':'ignore'})['unref']();else{const _0x134950=_0x475d1c===_0x3093e8(0xe3)?_0x3093e8(0xe0):'xdg-open';spawn(_0x134950,[_0x2a2bda],{'detached':!![],'stdio':_0x3093e8(0xee)})[_0x3093e8(0xf5)]();}}export function isWindows(){const _0x91182=a209_0x2b7244;return process['platform']===_0x91182(0x104);}export function getCrossSpawnOptions(_0x4df312){return{..._0x4df312??{},'shell':isWindows()};}export function escapeWindowsArg(_0x40373a){const _0x449b38=a209_0x2b7244;if(!/[ \t"&|<>^%!`\r\n]/[_0x449b38(0xde)](_0x40373a))return _0x40373a;const _0xa88277=_0x40373a[_0x449b38(0xed)](/"/g,'\x22\x22');return'\x22'+_0xa88277+'\x22';}export function crossSpawn(_0x3fca32,_0x2d150b,_0x23aa9a){const _0x58607a=a209_0x2b7244;if(isWindows()){const _0x4743ce=escapeWindowsArg(_0x3fca32),_0x5cfac7=_0x2d150b[_0x58607a(0xf7)](escapeWindowsArg),_0xc225b6=[_0x4743ce,..._0x5cfac7][_0x58607a(0x108)]('\x20');return spawn(_0xc225b6,[],{..._0x23aa9a,'shell':!![]});}return spawn(_0x3fca32,_0x2d150b,{..._0x23aa9a,'shell':![]});}function a209_0x5bdc(_0x298c71,_0x3f0bbb){_0x298c71=_0x298c71-0xda;const _0x548f17=a209_0x548f();let _0x5bdc34=_0x548f17[_0x298c71];return _0x5bdc34;}export function gracefulExit(_0xa8f1d6=0x0){const _0x4e624a=a209_0x2b7244;isWindows()?setTimeout(()=>process['exit'](_0xa8f1d6),0x32):process[_0x4e624a(0x10c)](_0xa8f1d6);}export function findExecutable(_0x32c918,_0x27eb5d=0x1388){return new Promise(_0x514b92=>{const _0x119260=a209_0x5bdc,_0x47e868=isWindows()?_0x119260(0x10f):_0x119260(0x101);let _0x1443ed=![];const _0x4332f5=crossSpawn(_0x47e868,[_0x32c918],{'stdio':_0x119260(0x105),'shell':isWindows()}),_0x3d9494=setTimeout(()=>{const _0x4b7562=_0x119260;!_0x1443ed&&(_0x1443ed=!![],_0x4332f5[_0x4b7562(0x112)](),_0x514b92(null));},_0x27eb5d);let _0x507147='';_0x4332f5[_0x119260(0x114)]?.['on'](_0x119260(0xdf),_0xacae88=>{const _0x2a96dd=_0x119260;_0x507147+=_0xacae88[_0x2a96dd(0xec)]();}),_0x4332f5[_0x119260(0x111)]?.['on']('data',()=>{}),_0x4332f5['on']('exit',_0x219805=>{const _0x5da2e9=_0x119260;if(_0x1443ed)return;_0x1443ed=!![],clearTimeout(_0x3d9494);if(_0x219805===0x0&&_0x507147[_0x5da2e9(0xfc)]()){const _0x1c7688=_0x507147[_0x5da2e9(0xfc)]()[_0x5da2e9(0x109)](/\r?\n/)[0x0];_0x514b92(_0x1c7688);}else _0x514b92(null);}),_0x4332f5['on'](_0x119260(0xff),()=>{if(_0x1443ed)return;_0x1443ed=!![],clearTimeout(_0x3d9494),_0x514b92(null);});});}
1
+ const a209_0x5afdb9=a209_0x1d14;(function(_0x1efa8a,_0x19a80e){const _0xe2837b=a209_0x1d14,_0x48796c=_0x1efa8a();while(!![]){try{const _0x56c364=-parseInt(_0xe2837b(0x118))/0x1+-parseInt(_0xe2837b(0x119))/0x2*(parseInt(_0xe2837b(0x126))/0x3)+-parseInt(_0xe2837b(0x123))/0x4*(parseInt(_0xe2837b(0x145))/0x5)+parseInt(_0xe2837b(0x139))/0x6+parseInt(_0xe2837b(0x12b))/0x7*(-parseInt(_0xe2837b(0x149))/0x8)+-parseInt(_0xe2837b(0x13d))/0x9+parseInt(_0xe2837b(0x140))/0xa;if(_0x56c364===_0x19a80e)break;else _0x48796c['push'](_0x48796c['shift']());}catch(_0x28b58e){_0x48796c['push'](_0x48796c['shift']());}}}(a209_0x1864,0xc0c66));function a209_0x1864(){const _0x1f4d12=['win32','kill','darwin','http:','claude','zsh','where.exe','4zxgmpg','xonsh','test','2967fbsqMQ','Unsupported\x20protocol:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','toString','data','21259VEgYOK','fish','exit','join','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pipe','dash','stdout','elvish','ignore','ppid','comm','pid','code','8532576eAVPZC','csh','unref','isInteger','12603321QRUGqM','protocol','ion','45140300aiqscG','error','powershell','has','platform','5821270qGnXpp','map','open','cmd.exe','1304vmpaew','ksh','cursor','replace','\x20-o\x20ppid=,comm=','split','tcsh','https:','href','Invalid\x20URL:\x20','trim','utf-8','1575553XyqkWK','1034cWUpxE','pop','xdg-open'];a209_0x1864=function(){return _0x1f4d12;};return a209_0x1864();}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a209_0x5afdb9(0x121),'sh',a209_0x5afdb9(0x12c),a209_0x5afdb9(0x14a),a209_0x5afdb9(0x112),a209_0x5afdb9(0x13a),a209_0x5afdb9(0x131),'pwsh',a209_0x5afdb9(0x142),'nu',a209_0x5afdb9(0x13f),a209_0x5afdb9(0x133),a209_0x5afdb9(0x124)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x5afdb9(0x120),a209_0x5afdb9(0x138),a209_0x5afdb9(0x14b),'electron','treasure\x20studio']);function getProcessInfoWindows(_0x2787ae){const _0x11ed9f=a209_0x5afdb9;try{if(!Number['isInteger'](_0x2787ae)||_0x2787ae<=0x0)return null;const _0x4900db=_0x11ed9f(0x128)+_0x2787ae+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x5f48a9=execSync(_0x11ed9f(0x12f)+_0x4900db+'\x22',{'encoding':_0x11ed9f(0x117),'windowsHide':!![],'stdio':['pipe',_0x11ed9f(0x130),_0x11ed9f(0x130)]})[_0x11ed9f(0x116)]();if(!_0x5f48a9)return null;const [_0x1f6ddb,..._0x3ecbdb]=_0x5f48a9[_0x11ed9f(0x14e)](','),_0x7ae7e7=parseInt(_0x1f6ddb,0xa),_0x12d200=_0x3ecbdb[_0x11ed9f(0x12e)](',')[_0x11ed9f(0x116)]();if(isNaN(_0x7ae7e7)||!_0x12d200)return null;return{'pid':_0x2787ae,'ppid':_0x7ae7e7,'comm':_0x12d200[_0x11ed9f(0x14c)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x28b823){const _0x5de24f=a209_0x5afdb9;try{const _0x535643=0x400000;if(!Number[_0x5de24f(0x13c)](_0x28b823)||_0x28b823<=0x0||_0x28b823>_0x535643)return null;const _0x6b8e9f=execSync('ps\x20-p\x20'+_0x28b823+_0x5de24f(0x14d),{'encoding':'utf-8','stdio':_0x5de24f(0x130)})[_0x5de24f(0x116)](),[_0x5306e5,..._0x5e93ba]=_0x6b8e9f[_0x5de24f(0x14e)](/\s+/),_0x13bdf3=parseInt(_0x5306e5,0xa),_0x1b6c0a=_0x5e93ba['join']('\x20');if(isNaN(_0x13bdf3))return null;return{'pid':_0x28b823,'ppid':_0x13bdf3,'comm':_0x1b6c0a};}catch{return null;}}function getProcessInfo(_0x3908a4){const _0x27a346=a209_0x5afdb9;if(process['platform']===_0x27a346(0x11c))return getProcessInfoWindows(_0x3908a4);return getProcessInfoPosix(_0x3908a4);}function getBasename(_0x2224ee){const _0x3820aa=a209_0x5afdb9;return _0x2224ee[_0x3820aa(0x14c)](/^-/,'')['split']('/')[_0x3820aa(0x11a)]()?.['toLowerCase']()||'';}function isShell(_0x31310f){const _0x4f21d3=a209_0x5afdb9;return SHELL_NAMES[_0x4f21d3(0x143)](getBasename(_0x31310f));}function isEphemeralShellSpawner(_0x58a616){const _0x497a7c=a209_0x5afdb9;return EPHEMERAL_SHELL_SPAWNERS[_0x497a7c(0x143)](getBasename(_0x58a616));}let cachedShellPID;function findShellPID(){const _0x4c1faa=a209_0x5afdb9;if(process[_0x4c1faa(0x135)]===undefined)return process[_0x4c1faa(0x137)];let _0x53c76b=process[_0x4c1faa(0x135)];const _0x4980e0=0xa;let _0x159976=0x0;while(_0x159976<_0x4980e0){const _0x2e033c=getProcessInfo(_0x53c76b);if(!_0x2e033c)break;if(isShell(_0x2e033c['comm'])){const _0x54798c=getProcessInfo(_0x2e033c[_0x4c1faa(0x135)]);if(_0x54798c&&isEphemeralShellSpawner(_0x54798c[_0x4c1faa(0x136)])){_0x53c76b=_0x2e033c[_0x4c1faa(0x135)],_0x159976++;continue;}return _0x2e033c['pid'];}if(_0x2e033c[_0x4c1faa(0x135)]===0x0||_0x2e033c[_0x4c1faa(0x135)]===0x1){if(isShell(_0x2e033c[_0x4c1faa(0x136)]))return _0x2e033c[_0x4c1faa(0x137)];break;}_0x53c76b=_0x2e033c[_0x4c1faa(0x135)],_0x159976++;}return process[_0x4c1faa(0x135)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x20c5b4){const _0xf3e4d0=a209_0x5afdb9;if(!Number[_0xf3e4d0(0x13c)](_0x20c5b4)||_0x20c5b4<=0x0)return![];try{return process[_0xf3e4d0(0x11d)](_0x20c5b4,0x0),!![];}catch{return![];}}export function openBrowser(_0x5cce78){const _0x36695d=a209_0x5afdb9;let _0x572985;try{_0x572985=new URL(_0x5cce78);}catch{throw new Error(_0x36695d(0x115)+_0x5cce78);}if(_0x572985[_0x36695d(0x13e)]!==_0x36695d(0x11f)&&_0x572985[_0x36695d(0x13e)]!==_0x36695d(0x113))throw new Error(_0x36695d(0x127)+_0x572985[_0x36695d(0x13e)]);const _0x5a5f92=_0x572985[_0x36695d(0x114)],_0x3cacfd=process[_0x36695d(0x144)];if(_0x3cacfd===_0x36695d(0x11c))spawn(_0x36695d(0x148),['/c','start','',_0x5a5f92],{'detached':!![],'stdio':_0x36695d(0x134)})[_0x36695d(0x13b)]();else{const _0x12a4f6=_0x3cacfd===_0x36695d(0x11e)?_0x36695d(0x147):_0x36695d(0x11b);spawn(_0x12a4f6,[_0x5a5f92],{'detached':!![],'stdio':'ignore'})[_0x36695d(0x13b)]();}}export function isWindows(){const _0x25771f=a209_0x5afdb9;return process[_0x25771f(0x144)]===_0x25771f(0x11c);}export function getCrossSpawnOptions(_0x132b5d){return{..._0x132b5d??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3e1b78){const _0xa955d9=a209_0x5afdb9;if(!/[ \t"&|<>^%!`\r\n]/[_0xa955d9(0x125)](_0x3e1b78))return _0x3e1b78;const _0x406351=_0x3e1b78[_0xa955d9(0x14c)](/"/g,'\x22\x22');return'\x22'+_0x406351+'\x22';}export function crossSpawn(_0x10b327,_0x3e9a5f,_0x4a04bd){const _0x556860=a209_0x5afdb9;if(isWindows()){const _0x259b90=escapeWindowsArg(_0x10b327),_0x1c873f=_0x3e9a5f[_0x556860(0x146)](escapeWindowsArg),_0x2f07e7=[_0x259b90,..._0x1c873f][_0x556860(0x12e)]('\x20');return spawn(_0x2f07e7,[],{..._0x4a04bd,'shell':!![]});}return spawn(_0x10b327,_0x3e9a5f,{..._0x4a04bd,'shell':![]});}export function gracefulExit(_0x37dc0d=0x0){const _0x562250=a209_0x5afdb9;isWindows()?setTimeout(()=>process['exit'](_0x37dc0d),0x32):process[_0x562250(0x12d)](_0x37dc0d);}function a209_0x1d14(_0xef5501,_0x481b00){_0xef5501=_0xef5501-0x112;const _0x1864a6=a209_0x1864();let _0x1d140c=_0x1864a6[_0xef5501];return _0x1d140c;}export function findExecutable(_0x56d6db,_0x47e059=0x1388){return new Promise(_0x43e004=>{const _0x90a54f=a209_0x1d14,_0x5f59fa=isWindows()?_0x90a54f(0x122):'which';let _0x1a2234=![];const _0x244679=crossSpawn(_0x5f59fa,[_0x56d6db],{'stdio':_0x90a54f(0x130),'shell':isWindows()}),_0x2654b4=setTimeout(()=>{!_0x1a2234&&(_0x1a2234=!![],_0x244679['kill'](),_0x43e004(null));},_0x47e059);let _0x54d6e8='';_0x244679[_0x90a54f(0x132)]?.['on']('data',_0x326a54=>{const _0x411509=_0x90a54f;_0x54d6e8+=_0x326a54[_0x411509(0x129)]();}),_0x244679['stderr']?.['on'](_0x90a54f(0x12a),()=>{}),_0x244679['on'](_0x90a54f(0x12d),_0x31b9f3=>{const _0x2183c3=_0x90a54f;if(_0x1a2234)return;_0x1a2234=!![],clearTimeout(_0x2654b4);if(_0x31b9f3===0x0&&_0x54d6e8[_0x2183c3(0x116)]()){const _0x4241f7=_0x54d6e8[_0x2183c3(0x116)]()[_0x2183c3(0x14e)](/\r?\n/)[0x0];_0x43e004(_0x4241f7);}else _0x43e004(null);}),_0x244679['on'](_0x90a54f(0x141),()=>{if(_0x1a2234)return;_0x1a2234=!![],clearTimeout(_0x2654b4),_0x43e004(null);});});}
@@ -1 +1 @@
1
- function a210_0x4f8c(_0x158188,_0x28af8e){_0x158188=_0x158188-0x16c;const _0x1cdb71=a210_0x1cdb();let _0x4f8ccf=_0x1cdb71[_0x158188];return _0x4f8ccf;}(function(_0x3625a2,_0x360359){const _0x392bad=a210_0x4f8c,_0x13e1e3=_0x3625a2();while(!![]){try{const _0x6915e4=-parseInt(_0x392bad(0x172))/0x1*(parseInt(_0x392bad(0x170))/0x2)+-parseInt(_0x392bad(0x16d))/0x3*(-parseInt(_0x392bad(0x183))/0x4)+parseInt(_0x392bad(0x17f))/0x5*(-parseInt(_0x392bad(0x178))/0x6)+-parseInt(_0x392bad(0x16c))/0x7+-parseInt(_0x392bad(0x185))/0x8*(-parseInt(_0x392bad(0x173))/0x9)+-parseInt(_0x392bad(0x17d))/0xa+parseInt(_0x392bad(0x16f))/0xb;if(_0x6915e4===_0x360359)break;else _0x13e1e3['push'](_0x13e1e3['shift']());}catch(_0xe2431f){_0x13e1e3['push'](_0x13e1e3['shift']());}}}(a210_0x1cdb,0x8bbb9));function a210_0x1cdb(){const _0x3cb111=['206411GvWwCM','7299PWSHPU','resume','close','isTTY','createInterface','106530COeebb','pause','stdout','toLowerCase','yes','2602690KXsrGN','\x20(y/N):\x20','105dzIivN','setEncoding','stderr','question','8548uGeJYB','data','5048BXoFtT','stdin','setRawMode','3423784zdOJFM','423MyauCF','utf8','11967274NnEuqa','2eVWtaz','write'];a210_0x1cdb=function(){return _0x3cb111;};return a210_0x1cdb();}import*as a210_0x3501b0 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x5d327f=a210_0x4f8c;return process[_0x5d327f(0x186)][_0x5d327f(0x176)]===!![];}export async function confirm(_0x4fafd1){const _0x5cd90e=a210_0x4f8c,_0x633202=a210_0x3501b0[_0x5cd90e(0x177)]({'input':process[_0x5cd90e(0x186)],'output':process[_0x5cd90e(0x17a)]});return new Promise(_0x352703=>{const _0x15ec27=_0x5cd90e;_0x633202[_0x15ec27(0x182)](_0x4fafd1+_0x15ec27(0x17e),_0x16a423=>{const _0xfd7c94=_0x15ec27;_0x633202[_0xfd7c94(0x175)](),_0x352703(_0x16a423[_0xfd7c94(0x17b)]()==='y'||_0x16a423[_0xfd7c94(0x17b)]()===_0xfd7c94(0x17c));});});}export async function confirmKey(_0x16425a){const _0x238ef6=a210_0x4f8c;if(!process[_0x238ef6(0x186)][_0x238ef6(0x176)])return![];return process[_0x238ef6(0x181)][_0x238ef6(0x171)](_0x16425a+'\x20[y/N]\x20'),new Promise(_0x497526=>{const _0x573ac9=_0x238ef6,_0x20b5db=process['stdin'];_0x20b5db[_0x573ac9(0x187)](!![]),_0x20b5db[_0x573ac9(0x174)](),_0x20b5db[_0x573ac9(0x180)](_0x573ac9(0x16e));const _0x59a2fe=_0x4bfff7=>{const _0xca628f=_0x573ac9;_0x20b5db[_0xca628f(0x187)](![]),_0x20b5db[_0xca628f(0x179)](),_0x20b5db['removeListener'](_0xca628f(0x184),_0x59a2fe);if(_0x4bfff7==='\x1b'){process[_0xca628f(0x181)][_0xca628f(0x171)]('\x0a'),_0x497526(![]);return;}_0x4bfff7==='\x03'&&(process['stderr']['write']('\x0a'),gracefulExit(0x82));if(_0x4bfff7[_0xca628f(0x17b)]()==='y'){process[_0xca628f(0x181)][_0xca628f(0x171)]('y\x0a'),_0x497526(!![]);return;}process[_0xca628f(0x181)][_0xca628f(0x171)]('\x0a'),_0x497526(![]);};_0x20b5db['on'](_0x573ac9(0x184),_0x59a2fe);});}
1
+ (function(_0xddcf5b,_0xb12bd3){const _0x6d8a62=a210_0x58df,_0x55c3b8=_0xddcf5b();while(!![]){try{const _0x577dca=-parseInt(_0x6d8a62(0x1bb))/0x1+-parseInt(_0x6d8a62(0x1bd))/0x2*(-parseInt(_0x6d8a62(0x1be))/0x3)+parseInt(_0x6d8a62(0x1b0))/0x4+parseInt(_0x6d8a62(0x1bf))/0x5+parseInt(_0x6d8a62(0x1c4))/0x6*(parseInt(_0x6d8a62(0x1bc))/0x7)+-parseInt(_0x6d8a62(0x1b6))/0x8+-parseInt(_0x6d8a62(0x1c2))/0x9;if(_0x577dca===_0xb12bd3)break;else _0x55c3b8['push'](_0x55c3b8['shift']());}catch(_0x321917){_0x55c3b8['push'](_0x55c3b8['shift']());}}}(a210_0x91c1,0xdb4ec));import*as a210_0x3c7698 from'readline';function a210_0x58df(_0x391170,_0x45dfd4){_0x391170=_0x391170-0x1ad;const _0x91c13e=a210_0x91c1();let _0x58df66=_0x91c13e[_0x391170];return _0x58df66;}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x5e4de9=a210_0x58df;return process[_0x5e4de9(0x1b8)]['isTTY']===!![];}export async function confirm(_0x427d84){const _0x4d7cfb=a210_0x58df,_0x279cd1=a210_0x3c7698[_0x4d7cfb(0x1af)]({'input':process['stdin'],'output':process[_0x4d7cfb(0x1b5)]});return new Promise(_0x2ab7b6=>{_0x279cd1['question'](_0x427d84+'\x20(y/N):\x20',_0x521871=>{const _0x3c06a0=a210_0x58df;_0x279cd1[_0x3c06a0(0x1b4)](),_0x2ab7b6(_0x521871['toLowerCase']()==='y'||_0x521871[_0x3c06a0(0x1b2)]()==='yes');});});}export async function confirmKey(_0x197960){const _0x45052c=a210_0x58df;if(!process[_0x45052c(0x1b8)]['isTTY'])return![];return process[_0x45052c(0x1ba)][_0x45052c(0x1b9)](_0x197960+_0x45052c(0x1b3)),new Promise(_0x3f0440=>{const _0x58cc91=_0x45052c,_0x539c8a=process[_0x58cc91(0x1b8)];_0x539c8a[_0x58cc91(0x1b1)](!![]),_0x539c8a[_0x58cc91(0x1c3)](),_0x539c8a[_0x58cc91(0x1ae)](_0x58cc91(0x1c1));const _0x31394a=_0x2fc757=>{const _0x314e91=_0x58cc91;_0x539c8a[_0x314e91(0x1b1)](![]),_0x539c8a[_0x314e91(0x1c0)](),_0x539c8a[_0x314e91(0x1ad)](_0x314e91(0x1b7),_0x31394a);if(_0x2fc757==='\x1b'){process[_0x314e91(0x1ba)][_0x314e91(0x1b9)]('\x0a'),_0x3f0440(![]);return;}_0x2fc757==='\x03'&&(process[_0x314e91(0x1ba)]['write']('\x0a'),gracefulExit(0x82));if(_0x2fc757[_0x314e91(0x1b2)]()==='y'){process['stderr'][_0x314e91(0x1b9)]('y\x0a'),_0x3f0440(!![]);return;}process[_0x314e91(0x1ba)][_0x314e91(0x1b9)]('\x0a'),_0x3f0440(![]);};_0x539c8a['on'](_0x58cc91(0x1b7),_0x31394a);});}function a210_0x91c1(){const _0x2b676a=['11187183LXYBtU','1107774jnkuew','3rznjUY','6516975RahyvJ','pause','utf8','22012308FylOFz','resume','6ktiEqG','removeListener','setEncoding','createInterface','1948728QCAtrW','setRawMode','toLowerCase','\x20[y/N]\x20','close','stdout','2250848VCLBQj','data','stdin','write','stderr','317181BQWSuo'];a210_0x91c1=function(){return _0x2b676a;};return a210_0x91c1();}
@@ -1 +1 @@
1
- (function(_0x2c7371,_0x561a9b){const _0x5950f9=a211_0x457d,_0x4ac993=_0x2c7371();while(!![]){try{const _0x3e26ad=-parseInt(_0x5950f9(0x15a))/0x1+-parseInt(_0x5950f9(0x167))/0x2+parseInt(_0x5950f9(0x176))/0x3*(parseInt(_0x5950f9(0x160))/0x4)+-parseInt(_0x5950f9(0x16a))/0x5+parseInt(_0x5950f9(0x161))/0x6*(parseInt(_0x5950f9(0x16c))/0x7)+-parseInt(_0x5950f9(0x15e))/0x8+-parseInt(_0x5950f9(0x15c))/0x9*(-parseInt(_0x5950f9(0x166))/0xa);if(_0x3e26ad===_0x561a9b)break;else _0x4ac993['push'](_0x4ac993['shift']());}catch(_0x2bbe2b){_0x4ac993['push'](_0x4ac993['shift']());}}}(a211_0x48b8,0x80ebc));import a211_0x39b4db from'ora';function a211_0x48b8(){const _0x15c476=['stderr','isSpinning','extra','3CyRMTb','163287yzoRsY','intervalFactory','63369ZfcOwa','isTTY','7961808zQoLRl','...','182884ENmsBX','192frBEib','clock','now','trim','toFixed','3210sbreMs','1305096DOQRzd','start','phase','40045oBraPA','Processing','9023idcShh','jobId','stop','text','\x20[Job\x20ID:\x20','replace','floor'];a211_0x48b8=function(){return _0x15c476;};return a211_0x48b8();}import{isWindows}from'./process.js';function a211_0x457d(_0x5b1e19,_0x1538c9){_0x5b1e19=_0x5b1e19-0x15a;const _0x48b8eb=a211_0x48b8();let _0x457d49=_0x48b8eb[_0x5b1e19];return _0x457d49;}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x2571df,_0x32e528={}){const _0x12d7c1=a211_0x457d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x32e528;return a211_0x39b4db({'text':_0x2571df,'color':'cyan','stream':process[_0x12d7c1(0x173)],'isEnabled':forceEnabled||process['stderr'][_0x12d7c1(0x15d)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x5364e9,_0x2391d0,_0x320b46={}){const _0x2bc5b1=a211_0x457d,_0x3e9a4b=_0x320b46[_0x2bc5b1(0x162)]??(()=>Date['now']()),_0x5ddf91=createCommandSpinner(_0x5364e9,_0x320b46);_0x5ddf91[_0x2bc5b1(0x168)]();const _0xc1c61f=_0x3e9a4b();try{const _0x4ab5ec=await _0x2391d0(),_0x360dfd=_0x3e9a4b()-_0xc1c61f;return _0x5ddf91[_0x2bc5b1(0x16e)](),{'data':_0x4ab5ec,'elapsedMs':_0x360dfd};}catch(_0x2f0991){_0x5ddf91[_0x2bc5b1(0x16e)]();throw _0x2f0991;}}export async function withProgressSpinner(_0xce9970,_0x45f3eb,_0x3c2700={}){const _0x284232=a211_0x457d,_0x2e31bc=_0x3c2700['clock']??(()=>Date[_0x284232(0x163)]()),_0x28e59c=_0x3c2700[_0x284232(0x15b)]??setInterval,_0x4147ef=createCommandSpinner(_0xce9970,_0x3c2700);_0x4147ef[_0x284232(0x168)]();const _0x17a83a=_0x2e31bc(),_0x5374f7=_0xce9970[_0x284232(0x171)](_0x284232(0x15f),'')[_0x284232(0x164)]()||_0x284232(0x16b),_0x1a1cdd={};let _0x531d1c=_0xce9970;const _0x25bc0b=()=>{const _0x550a13=_0x284232;if(!_0x4147ef['isSpinning'])return;const _0x4d7333=_0x2e31bc()-_0x17a83a,_0x16ed40=formatElapsed(_0x4d7333),_0x3a3644=_0x1a1cdd[_0x550a13(0x169)]?.[_0x550a13(0x164)]()||_0x5374f7,_0x3c8d22=_0x1a1cdd[_0x550a13(0x16d)]?_0x550a13(0x170)+_0x1a1cdd[_0x550a13(0x16d)]+']':'',_0x5b32de=_0x1a1cdd[_0x550a13(0x175)]?'\x20'+_0x1a1cdd[_0x550a13(0x175)]:'',_0x16164f=_0x3a3644+'\x20'+_0x16ed40+_0x5b32de+_0x3c8d22;_0x16164f!==_0x531d1c&&_0x16164f[_0x550a13(0x164)]()&&(_0x4147ef['text']=_0x16164f,_0x531d1c=_0x16164f);},_0x4bdd04=_0x28e59c(()=>{_0x25bc0b();},0x3e8),_0x30a293={'setPhase':_0x4c6479=>{const _0x1b793d=_0x284232;_0x1a1cdd[_0x1b793d(0x169)]=_0x4c6479;const _0x5c5678=_0x4c6479?.[_0x1b793d(0x164)]()||_0x5374f7,_0x2b36ba=_0x2e31bc()-_0x17a83a,_0x97a3f9=formatElapsed(_0x2b36ba),_0x428be8=_0x1a1cdd['jobId']?'\x20[Job\x20ID:\x20'+_0x1a1cdd[_0x1b793d(0x16d)]+']':'',_0x48b259=_0x1a1cdd[_0x1b793d(0x175)]?'\x20'+_0x1a1cdd[_0x1b793d(0x175)]:'',_0x3b3df0=_0x5c5678+'\x20'+_0x97a3f9+_0x48b259+_0x428be8;_0x4147ef[_0x1b793d(0x174)]&&_0x3b3df0['trim']()&&(_0x4147ef[_0x1b793d(0x16f)]=_0x3b3df0,_0x531d1c=_0x3b3df0);},'setJobId':_0x2cb762=>{const _0x147c17=_0x284232;_0x1a1cdd[_0x147c17(0x16d)]=_0x2cb762,_0x25bc0b();},'setExtra':_0x5d625a=>{_0x1a1cdd['extra']=_0x5d625a,_0x25bc0b();}};_0x25bc0b();try{const _0xc4fd25=await _0x45f3eb(_0x30a293),_0x537542=_0x2e31bc()-_0x17a83a;return{'data':_0xc4fd25,'elapsedMs':_0x537542};}finally{clearInterval(_0x4bdd04),_0x4147ef[_0x284232(0x16e)]();}}export function formatElapsed(_0x2b19de){const _0x575dd6=a211_0x457d,_0x50d3c0=Math[_0x575dd6(0x172)](_0x2b19de/0x3e8);if(_0x50d3c0<0x3c)return(_0x2b19de/0x3e8)[_0x575dd6(0x165)](0x1)+'s';const _0xb758ed=Math[_0x575dd6(0x172)](_0x50d3c0/0x3c),_0x1621de=_0x50d3c0%0x3c;if(_0xb758ed<0x3c)return _0xb758ed+'m\x20'+_0x1621de+'s';const _0x14817f=Math[_0x575dd6(0x172)](_0xb758ed/0x3c),_0x1bc599=_0xb758ed%0x3c;return _0x14817f+'h\x20'+_0x1bc599+'m';}
1
+ (function(_0x1221bf,_0x231af5){const _0x520fe2=a211_0x8ae8,_0x2893e1=_0x1221bf();while(!![]){try{const _0x32a02a=parseInt(_0x520fe2(0x15d))/0x1+parseInt(_0x520fe2(0x14b))/0x2*(parseInt(_0x520fe2(0x15b))/0x3)+parseInt(_0x520fe2(0x149))/0x4+parseInt(_0x520fe2(0x14a))/0x5+-parseInt(_0x520fe2(0x145))/0x6*(parseInt(_0x520fe2(0x14d))/0x7)+-parseInt(_0x520fe2(0x15c))/0x8+-parseInt(_0x520fe2(0x148))/0x9;if(_0x32a02a===_0x231af5)break;else _0x2893e1['push'](_0x2893e1['shift']());}catch(_0x2f1c59){_0x2893e1['push'](_0x2893e1['shift']());}}}(a211_0x20bb,0xa9fa6));import a211_0x39040f from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4a4901,_0x5360f1={}){const _0xe8c46=a211_0x8ae8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5360f1;return a211_0x39040f({'text':_0x4a4901,'color':_0xe8c46(0x15a),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0xe8c46(0x151)][_0xe8c46(0x152)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x1259fc,_0x510707,_0xc2baeb={}){const _0x50cb67=a211_0x8ae8,_0x1ae20c=_0xc2baeb[_0x50cb67(0x150)]??(()=>Date['now']()),_0x83b840=createCommandSpinner(_0x1259fc,_0xc2baeb);_0x83b840[_0x50cb67(0x14f)]();const _0x3b922f=_0x1ae20c();try{const _0x1dac90=await _0x510707(),_0x5b8983=_0x1ae20c()-_0x3b922f;return _0x83b840[_0x50cb67(0x153)](),{'data':_0x1dac90,'elapsedMs':_0x5b8983};}catch(_0x3d795b){_0x83b840['stop']();throw _0x3d795b;}}export async function withProgressSpinner(_0x55561a,_0x370931,_0x57814d={}){const _0x850d6f=a211_0x8ae8,_0x39504d=_0x57814d[_0x850d6f(0x150)]??(()=>Date[_0x850d6f(0x14e)]()),_0x43e2f0=_0x57814d[_0x850d6f(0x146)]??setInterval,_0x1459a6=createCommandSpinner(_0x55561a,_0x57814d);_0x1459a6[_0x850d6f(0x14f)]();const _0x42d038=_0x39504d(),_0x5ac739=_0x55561a[_0x850d6f(0x154)](_0x850d6f(0x156),'')[_0x850d6f(0x159)]()||'Processing',_0x41cc3a={};let _0x32b055=_0x55561a;const _0xa0fe83=()=>{const _0x2b3a1e=_0x850d6f;if(!_0x1459a6[_0x2b3a1e(0x158)])return;const _0x39cf8b=_0x39504d()-_0x42d038,_0x491e83=formatElapsed(_0x39cf8b),_0x4df11f=_0x41cc3a['phase']?.['trim']()||_0x5ac739,_0x5262ae=_0x41cc3a[_0x2b3a1e(0x147)]?_0x2b3a1e(0x157)+_0x41cc3a[_0x2b3a1e(0x147)]+']':'',_0x12cc7a=_0x41cc3a[_0x2b3a1e(0x155)]?'\x20'+_0x41cc3a['extra']:'',_0x327813=_0x4df11f+'\x20'+_0x491e83+_0x12cc7a+_0x5262ae;_0x327813!==_0x32b055&&_0x327813[_0x2b3a1e(0x159)]()&&(_0x1459a6[_0x2b3a1e(0x144)]=_0x327813,_0x32b055=_0x327813);},_0x1f3b03=_0x43e2f0(()=>{_0xa0fe83();},0x3e8),_0x39db2b={'setPhase':_0x233187=>{const _0x428e9d=_0x850d6f;_0x41cc3a[_0x428e9d(0x14c)]=_0x233187;const _0x525ff2=_0x233187?.['trim']()||_0x5ac739,_0x55683e=_0x39504d()-_0x42d038,_0xa49796=formatElapsed(_0x55683e),_0x153ef1=_0x41cc3a[_0x428e9d(0x147)]?_0x428e9d(0x157)+_0x41cc3a[_0x428e9d(0x147)]+']':'',_0x570189=_0x41cc3a['extra']?'\x20'+_0x41cc3a[_0x428e9d(0x155)]:'',_0x4c7143=_0x525ff2+'\x20'+_0xa49796+_0x570189+_0x153ef1;_0x1459a6['isSpinning']&&_0x4c7143[_0x428e9d(0x159)]()&&(_0x1459a6[_0x428e9d(0x144)]=_0x4c7143,_0x32b055=_0x4c7143);},'setJobId':_0x3bd7fe=>{const _0x50eb4f=_0x850d6f;_0x41cc3a[_0x50eb4f(0x147)]=_0x3bd7fe,_0xa0fe83();},'setExtra':_0x363513=>{_0x41cc3a['extra']=_0x363513,_0xa0fe83();}};_0xa0fe83();try{const _0x1051e7=await _0x370931(_0x39db2b),_0x40d6b1=_0x39504d()-_0x42d038;return{'data':_0x1051e7,'elapsedMs':_0x40d6b1};}finally{clearInterval(_0x1f3b03),_0x1459a6[_0x850d6f(0x153)]();}}function a211_0x20bb(){const _0x1fa6eb=['673482mLtSTJ','intervalFactory','jobId','11323764gNWDST','3377340mexqwC','1040625UrclGQ','18354oFDwSW','phase','7aLtNDD','now','start','clock','stderr','isTTY','stop','replace','extra','...','\x20[Job\x20ID:\x20','isSpinning','trim','cyan','306GgkScu','1515600aBkgAX','267609CRTwLp','text'];a211_0x20bb=function(){return _0x1fa6eb;};return a211_0x20bb();}function a211_0x8ae8(_0x3a8dff,_0xad2a9f){_0x3a8dff=_0x3a8dff-0x144;const _0x20bb99=a211_0x20bb();let _0x8ae895=_0x20bb99[_0x3a8dff];return _0x8ae895;}export function formatElapsed(_0xdc670e){const _0xed98fe=Math['floor'](_0xdc670e/0x3e8);if(_0xed98fe<0x3c)return(_0xdc670e/0x3e8)['toFixed'](0x1)+'s';const _0x5039bd=Math['floor'](_0xed98fe/0x3c),_0x167654=_0xed98fe%0x3c;if(_0x5039bd<0x3c)return _0x5039bd+'m\x20'+_0x167654+'s';const _0x5c04c5=Math['floor'](_0x5039bd/0x3c),_0x2d85d6=_0x5039bd%0x3c;return _0x5c04c5+'h\x20'+_0x2d85d6+'m';}
@@ -1 +1 @@
1
- function a212_0x242c(){const _0x1809c3=['5pbApZz','event','data','pop','356442qetFNG','1733992nZbUON','split','parse','[LLM\x20API\x20SSE]\x20','1880670mFfcbF','body','3336222DCezFx','startsWith','3906091LSUqaZ','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','releaseLock','976518KrRCaq','debug','892560vPgbeB','slice'];a212_0x242c=function(){return _0x1809c3;};return a212_0x242c();}function a212_0x5678(_0x115931,_0x5338b8){_0x115931=_0x115931-0x1af;const _0x242c24=a212_0x242c();let _0x56789b=_0x242c24[_0x115931];return _0x56789b;}(function(_0xc7536d,_0x1a8545){const _0x3d2566=a212_0x5678,_0x58dc97=_0xc7536d();while(!![]){try{const _0x2fcf7f=parseInt(_0x3d2566(0x1c1))/0x1+-parseInt(_0x3d2566(0x1b9))/0x2+parseInt(_0x3d2566(0x1b2))/0x3+-parseInt(_0x3d2566(0x1bb))/0x4+parseInt(_0x3d2566(0x1bd))/0x5*(-parseInt(_0x3d2566(0x1b4))/0x6)+parseInt(_0x3d2566(0x1b6))/0x7+parseInt(_0x3d2566(0x1c2))/0x8;if(_0x2fcf7f===_0x1a8545)break;else _0x58dc97['push'](_0x58dc97['shift']());}catch(_0x1d8a33){_0x58dc97['push'](_0x58dc97['shift']());}}}(a212_0x242c,0x77ca2));export async function*parseSSEStream(_0x597975,_0x1c8696){const _0x1b4387=a212_0x5678;if(!_0x597975[_0x1b4387(0x1b3)])throw new Error('Response\x20body\x20is\x20null');const _0x37e574=_0x597975[_0x1b4387(0x1b3)]['getReader'](),_0x25763b=new TextDecoder();let _0x5ee396='',_0x4573dd={};try{while(!![]){const {done:_0x352e60,value:_0x15e63c}=await _0x37e574['read']();if(_0x352e60){if(_0x4573dd[_0x1b4387(0x1bf)]){_0x1c8696?.['debug'](_0x1b4387(0x1b1)+_0x4573dd[_0x1b4387(0x1bf)]);const _0x777ae=parseSSEData(_0x4573dd[_0x1b4387(0x1bf)]);yield _0x777ae;}break;}_0x5ee396+=_0x25763b['decode'](_0x15e63c,{'stream':!![]});const _0x5ae66b=_0x5ee396[_0x1b4387(0x1af)]('\x0a');_0x5ee396=_0x5ae66b[_0x1b4387(0x1c0)]()||'';for(const _0x27fc2f of _0x5ae66b){if(_0x27fc2f['trim']()===''){if(_0x4573dd[_0x1b4387(0x1bf)]){_0x1c8696?.[_0x1b4387(0x1ba)](_0x1b4387(0x1b1)+_0x4573dd[_0x1b4387(0x1bf)]);const _0x415e46=parseSSEData(_0x4573dd[_0x1b4387(0x1bf)]);yield _0x415e46,_0x4573dd={};}continue;}if(_0x27fc2f[_0x1b4387(0x1b5)](':'))continue;const _0x4762e4=_0x27fc2f['indexOf'](':');if(_0x4762e4===-0x1)continue;const _0x30398b=_0x27fc2f[_0x1b4387(0x1bc)](0x0,_0x4762e4);let _0x2794dc=_0x27fc2f[_0x1b4387(0x1bc)](_0x4762e4+0x1);_0x2794dc['startsWith']('\x20')&&(_0x2794dc=_0x2794dc[_0x1b4387(0x1bc)](0x1));switch(_0x30398b){case _0x1b4387(0x1be):_0x4573dd[_0x1b4387(0x1be)]=_0x2794dc;break;case'data':_0x4573dd[_0x1b4387(0x1bf)]=_0x4573dd[_0x1b4387(0x1bf)]?_0x4573dd[_0x1b4387(0x1bf)]+'\x0a'+_0x2794dc:_0x2794dc;break;case'id':_0x4573dd['id']=_0x2794dc;break;}}}}finally{_0x37e574[_0x1b4387(0x1b8)]();}}function parseSSEData(_0x314eee){const _0x61153e=a212_0x5678;try{return JSON[_0x61153e(0x1b0)](_0x314eee);}catch(_0x23d8f8){throw new Error(_0x61153e(0x1b7)+_0x314eee,{'cause':_0x23d8f8});}}
1
+ (function(_0x56ef22,_0x543ce2){const _0x99a79e=a212_0x2a3d,_0x5cbb4c=_0x56ef22();while(!![]){try{const _0x4b7010=-parseInt(_0x99a79e(0x16d))/0x1*(parseInt(_0x99a79e(0x15d))/0x2)+parseInt(_0x99a79e(0x160))/0x3*(parseInt(_0x99a79e(0x15f))/0x4)+-parseInt(_0x99a79e(0x168))/0x5*(parseInt(_0x99a79e(0x159))/0x6)+parseInt(_0x99a79e(0x16a))/0x7*(-parseInt(_0x99a79e(0x166))/0x8)+-parseInt(_0x99a79e(0x15a))/0x9*(parseInt(_0x99a79e(0x15b))/0xa)+-parseInt(_0x99a79e(0x161))/0xb+parseInt(_0x99a79e(0x158))/0xc;if(_0x4b7010===_0x543ce2)break;else _0x5cbb4c['push'](_0x5cbb4c['shift']());}catch(_0x2b988b){_0x5cbb4c['push'](_0x5cbb4c['shift']());}}}(a212_0x2ac7,0xaeb2d));export async function*parseSSEStream(_0x19edc4,_0x5793cc){const _0x1869f7=a212_0x2a3d;if(!_0x19edc4[_0x1869f7(0x170)])throw new Error(_0x1869f7(0x167));const _0x545340=_0x19edc4[_0x1869f7(0x170)][_0x1869f7(0x163)](),_0x112b10=new TextDecoder();let _0x1a4871='',_0x5f077a={};try{while(!![]){const {done:_0x547215,value:_0x55d165}=await _0x545340['read']();if(_0x547215){if(_0x5f077a[_0x1869f7(0x15e)]){_0x5793cc?.['debug'](_0x1869f7(0x15c)+_0x5f077a[_0x1869f7(0x15e)]);const _0x296209=parseSSEData(_0x5f077a[_0x1869f7(0x15e)]);yield _0x296209;}break;}_0x1a4871+=_0x112b10[_0x1869f7(0x164)](_0x55d165,{'stream':!![]});const _0x2f0b34=_0x1a4871[_0x1869f7(0x16f)]('\x0a');_0x1a4871=_0x2f0b34['pop']()||'';for(const _0x514780 of _0x2f0b34){if(_0x514780[_0x1869f7(0x157)]()===''){if(_0x5f077a[_0x1869f7(0x15e)]){_0x5793cc?.[_0x1869f7(0x162)](_0x1869f7(0x15c)+_0x5f077a[_0x1869f7(0x15e)]);const _0x2f5664=parseSSEData(_0x5f077a['data']);yield _0x2f5664,_0x5f077a={};}continue;}if(_0x514780[_0x1869f7(0x16b)](':'))continue;const _0x2443b1=_0x514780[_0x1869f7(0x16c)](':');if(_0x2443b1===-0x1)continue;const _0x2a4def=_0x514780[_0x1869f7(0x169)](0x0,_0x2443b1);let _0x7a196=_0x514780['slice'](_0x2443b1+0x1);_0x7a196[_0x1869f7(0x16b)]('\x20')&&(_0x7a196=_0x7a196['slice'](0x1));switch(_0x2a4def){case _0x1869f7(0x156):_0x5f077a[_0x1869f7(0x156)]=_0x7a196;break;case _0x1869f7(0x15e):_0x5f077a[_0x1869f7(0x15e)]=_0x5f077a['data']?_0x5f077a[_0x1869f7(0x15e)]+'\x0a'+_0x7a196:_0x7a196;break;case'id':_0x5f077a['id']=_0x7a196;break;}}}}finally{_0x545340[_0x1869f7(0x16e)]();}}function a212_0x2a3d(_0x4b3824,_0x4ec0ce){_0x4b3824=_0x4b3824-0x155;const _0x2ac760=a212_0x2ac7();let _0x2a3dd6=_0x2ac760[_0x4b3824];return _0x2a3dd6;}function a212_0x2ac7(){const _0x1bd8f5=['releaseLock','split','body','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','trim','26621172CYyiOD','4014402GHgyka','9zQJSdo','2842570VUuHur','[LLM\x20API\x20SSE]\x20','2EFpjEc','data','275524rxjrKI','57sJWhNG','6277315iiKfFK','debug','getReader','decode','parse','10275832xJnXCI','Response\x20body\x20is\x20null','5ZQOLzB','slice','7WastNM','startsWith','indexOf','3137HbIaCv'];a212_0x2ac7=function(){return _0x1bd8f5;};return a212_0x2ac7();}function parseSSEData(_0x3d7610){const _0x34efe8=a212_0x2a3d;try{return JSON[_0x34efe8(0x165)](_0x3d7610);}catch(_0x336377){throw new Error(_0x34efe8(0x155)+_0x3d7610,{'cause':_0x336377});}}
@@ -1 +1 @@
1
- function a213_0x389d(){const _0x3fc3c6=['trim','toLowerCase','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','repeat','4QoMVDg','1360807cdKvUZ','370pkKJRR','237348TGyuXC','827568DaDQSp','216954JEfBOK','unknown','padStart','38cAidFd','Cannot\x20escape\x20empty\x20string\x20literal','1092882TzYljp','random','toString','224GKICTg','floor','length','2610ZFvejt','replace'];a213_0x389d=function(){return _0x3fc3c6;};return a213_0x389d();}(function(_0x56d8b5,_0xe0b717){const _0x12fdf1=a213_0x5413,_0x37cfe2=_0x56d8b5();while(!![]){try{const _0x28e56f=-parseInt(_0x12fdf1(0x1a8))/0x1*(-parseInt(_0x12fdf1(0x1b0))/0x2)+-parseInt(_0x12fdf1(0x1b2))/0x3+-parseInt(_0x12fdf1(0x1b5))/0x4*(parseInt(_0x12fdf1(0x1a1))/0x5)+parseInt(_0x12fdf1(0x1ad))/0x6+-parseInt(_0x12fdf1(0x1a9))/0x7+-parseInt(_0x12fdf1(0x1ac))/0x8+parseInt(_0x12fdf1(0x1ab))/0x9*(parseInt(_0x12fdf1(0x1aa))/0xa);if(_0x28e56f===_0xe0b717)break;else _0x37cfe2['push'](_0x37cfe2['shift']());}catch(_0x34d42f){_0x37cfe2['push'](_0x37cfe2['shift']());}}}(a213_0x389d,0x4e472));import a213_0x19ba1c from'string-width';export function stringWidth(_0x226135){return a213_0x19ba1c(_0x226135);}export function padEnd(_0x39fa12,_0x54b839){const _0x13bffb=a213_0x5413,_0xcbca8=stringWidth(_0x39fa12);if(_0xcbca8>=_0x54b839)return _0x39fa12;return _0x39fa12+'\x20'[_0x13bffb(0x1a7)](_0x54b839-_0xcbca8);}export function padStart(_0x4f0273,_0x19b187){const _0x1e57e3=a213_0x5413,_0x385747=stringWidth(_0x4f0273);if(_0x385747>=_0x19b187)return _0x4f0273;return'\x20'[_0x1e57e3(0x1a7)](_0x19b187-_0x385747)+_0x4f0273;}export function centerAlign(_0x5a826f,_0x162d3f){const _0x4c1a1f=a213_0x5413,_0x5bad6f=stringWidth(_0x5a826f);if(_0x5bad6f>_0x162d3f){if(_0x162d3f<=0x1)return'…'['substring'](0x0,_0x162d3f);let _0x13f6ad=_0x5a826f;while(stringWidth(_0x13f6ad+'…')>_0x162d3f){_0x13f6ad=_0x13f6ad['slice'](0x0,-0x1);}return _0x13f6ad+'…';}if(_0x5bad6f===_0x162d3f)return _0x5a826f;const _0x35bfc5=_0x162d3f-_0x5bad6f,_0x578b0f=Math[_0x4c1a1f(0x1b6)](_0x35bfc5/0x2),_0x3c40bd=_0x35bfc5-_0x578b0f;return'\x20'[_0x4c1a1f(0x1a7)](_0x578b0f)+_0x5a826f+'\x20'[_0x4c1a1f(0x1a7)](_0x3c40bd);}export function escapeStringLiteral(_0x5067c2){const _0x482f5d=a213_0x5413;if(!_0x5067c2||_0x5067c2[_0x482f5d(0x1a3)]()[_0x482f5d(0x1a0)]===0x0)throw new Error(_0x482f5d(0x1b1));const _0xa04800=_0x5067c2[_0x482f5d(0x1a2)](/'/g,'\x27\x27');return'\x27'+_0xa04800+'\x27';}export function globToLike(_0xa897c3){const _0x4f8ea2=a213_0x5413;let _0x329c30=_0xa897c3[_0x4f8ea2(0x1a2)](/\\/g,'\x5c\x5c')[_0x4f8ea2(0x1a2)](/%/g,'\x5c%')[_0x4f8ea2(0x1a2)](/_/g,'\x5c_');return _0x329c30=_0x329c30['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x329c30;}export function buildLikePattern(_0x11d031){const _0x50d562=a213_0x5413;if(!_0x11d031||_0x11d031[_0x50d562(0x1a3)]()[_0x50d562(0x1a0)]===0x0)throw new Error(_0x50d562(0x1a6));const _0x41c707=globToLike(_0x11d031),_0x39e50e=_0x41c707[_0x50d562(0x1a2)](/'/g,'\x27\x27');return'\x27'+_0x39e50e+'\x27';}function a213_0x5413(_0xe63666,_0x5d39ca){_0xe63666=_0xe63666-0x1a0;const _0x389d8e=a213_0x389d();let _0x5413e0=_0x389d8e[_0xe63666];return _0x5413e0;}export function matchGlobPattern(_0x26c463,_0x455981){const _0x17c691=a213_0x5413,_0x53f2cb=_0x455981[_0x17c691(0x1a2)](/[.+^${}()|[\]\\]/g,_0x17c691(0x1a5))[_0x17c691(0x1a2)](/\*/g,'.*')[_0x17c691(0x1a2)](/\?/g,'.'),_0x2ffd83=new RegExp('^'+_0x53f2cb+'$');return _0x2ffd83['test'](_0x26c463);}export function getSanitizedUsername(){const _0x503bca=a213_0x5413,_0x8916a9=process.env.USER||process.env.USERNAME||_0x503bca(0x1ae);return _0x8916a9[_0x503bca(0x1a2)](/[^a-zA-Z0-9]/g,'')[_0x503bca(0x1a4)]();}export function generateRandomHex(){const _0x29655e=a213_0x5413,_0x101c7a=Math[_0x29655e(0x1b6)](Math[_0x29655e(0x1b3)]()*0xfffff);return _0x101c7a[_0x29655e(0x1b4)](0x10)[_0x29655e(0x1af)](0x5,'0');}export function sanitizeFileName(_0x1c00ef){const _0xad2ae6=a213_0x5413;return _0x1c00ef['toLowerCase']()[_0xad2ae6(0x1a2)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0xad2ae6(0x1a2)](/-+/g,'-')[_0xad2ae6(0x1a2)](/^-|-$/g,'');}
1
+ (function(_0x36c2e5,_0x2ff8bd){const _0x323422=a213_0x1d07,_0x2e566d=_0x36c2e5();while(!![]){try{const _0x59999d=-parseInt(_0x323422(0x178))/0x1*(-parseInt(_0x323422(0x166))/0x2)+-parseInt(_0x323422(0x177))/0x3+parseInt(_0x323422(0x172))/0x4*(-parseInt(_0x323422(0x169))/0x5)+parseInt(_0x323422(0x16e))/0x6*(-parseInt(_0x323422(0x176))/0x7)+-parseInt(_0x323422(0x175))/0x8*(-parseInt(_0x323422(0x171))/0x9)+parseInt(_0x323422(0x16c))/0xa+parseInt(_0x323422(0x16a))/0xb;if(_0x59999d===_0x2ff8bd)break;else _0x2e566d['push'](_0x2e566d['shift']());}catch(_0x239ccd){_0x2e566d['push'](_0x2e566d['shift']());}}}(a213_0xb76b,0xbf930));import a213_0x4fd636 from'string-width';function a213_0xb76b(){const _0x2b3099=['4541360hCbTvB','slice','1600806nXJDYP','substring','replace','18zhRMgL','34028uAbINX','floor','trim','3289784oBTbcI','14JZtzHe','4304172hHgFPJ','3NVKaet','padStart','Cannot\x20escape\x20empty\x20string\x20literal','toString','toLowerCase','length','159830PytPej','repeat','\x5c$&','295ITwsCl','19124600LPUkww','random'];a213_0xb76b=function(){return _0x2b3099;};return a213_0xb76b();}export function stringWidth(_0x143993){return a213_0x4fd636(_0x143993);}export function padEnd(_0x27d779,_0x2326e5){const _0x4bcc5a=a213_0x1d07,_0x218e49=stringWidth(_0x27d779);if(_0x218e49>=_0x2326e5)return _0x27d779;return _0x27d779+'\x20'[_0x4bcc5a(0x167)](_0x2326e5-_0x218e49);}export function padStart(_0x7038c,_0x1026ee){const _0x2fe782=a213_0x1d07,_0x5a6aa9=stringWidth(_0x7038c);if(_0x5a6aa9>=_0x1026ee)return _0x7038c;return'\x20'[_0x2fe782(0x167)](_0x1026ee-_0x5a6aa9)+_0x7038c;}export function centerAlign(_0x22ac34,_0x484a39){const _0x22d774=a213_0x1d07,_0x5d3953=stringWidth(_0x22ac34);if(_0x5d3953>_0x484a39){if(_0x484a39<=0x1)return'…'[_0x22d774(0x16f)](0x0,_0x484a39);let _0x476b88=_0x22ac34;while(stringWidth(_0x476b88+'…')>_0x484a39){_0x476b88=_0x476b88[_0x22d774(0x16d)](0x0,-0x1);}return _0x476b88+'…';}if(_0x5d3953===_0x484a39)return _0x22ac34;const _0x1b43d0=_0x484a39-_0x5d3953,_0x67f138=Math[_0x22d774(0x173)](_0x1b43d0/0x2),_0xae1e06=_0x1b43d0-_0x67f138;return'\x20'['repeat'](_0x67f138)+_0x22ac34+'\x20'[_0x22d774(0x167)](_0xae1e06);}function a213_0x1d07(_0x146a9e,_0xdd2e4f){_0x146a9e=_0x146a9e-0x162;const _0xb76b71=a213_0xb76b();let _0x1d0771=_0xb76b71[_0x146a9e];return _0x1d0771;}export function escapeStringLiteral(_0x3e9548){const _0x82f7d0=a213_0x1d07;if(!_0x3e9548||_0x3e9548[_0x82f7d0(0x174)]()[_0x82f7d0(0x165)]===0x0)throw new Error(_0x82f7d0(0x162));const _0x6c8841=_0x3e9548[_0x82f7d0(0x170)](/'/g,'\x27\x27');return'\x27'+_0x6c8841+'\x27';}export function globToLike(_0x30ee74){const _0x5e369d=a213_0x1d07;let _0x2323a4=_0x30ee74[_0x5e369d(0x170)](/\\/g,'\x5c\x5c')[_0x5e369d(0x170)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x2323a4=_0x2323a4[_0x5e369d(0x170)](/\*/g,'%')[_0x5e369d(0x170)](/\?/g,'_'),_0x2323a4;}export function buildLikePattern(_0x5098cb){const _0x57f67c=a213_0x1d07;if(!_0x5098cb||_0x5098cb[_0x57f67c(0x174)]()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x41a484=globToLike(_0x5098cb),_0x578291=_0x41a484[_0x57f67c(0x170)](/'/g,'\x27\x27');return'\x27'+_0x578291+'\x27';}export function matchGlobPattern(_0x13fe31,_0xf1e311){const _0x971035=a213_0x1d07,_0x1019e2=_0xf1e311[_0x971035(0x170)](/[.+^${}()|[\]\\]/g,_0x971035(0x168))[_0x971035(0x170)](/\*/g,'.*')[_0x971035(0x170)](/\?/g,'.'),_0x32e54d=new RegExp('^'+_0x1019e2+'$');return _0x32e54d['test'](_0x13fe31);}export function getSanitizedUsername(){const _0x559e6e=a213_0x1d07,_0x5c0135=process.env.USER||process.env.USERNAME||'unknown';return _0x5c0135[_0x559e6e(0x170)](/[^a-zA-Z0-9]/g,'')[_0x559e6e(0x164)]();}export function generateRandomHex(){const _0x47c8da=a213_0x1d07,_0x4bd0f6=Math[_0x47c8da(0x173)](Math[_0x47c8da(0x16b)]()*0xfffff);return _0x4bd0f6[_0x47c8da(0x163)](0x10)[_0x47c8da(0x179)](0x5,'0');}export function sanitizeFileName(_0x5e1180){const _0x12113c=a213_0x1d07;return _0x5e1180[_0x12113c(0x164)]()[_0x12113c(0x170)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0xf0df04,_0x3324c8){const _0x2f6162=a214_0x1991,_0x1e874e=_0xf0df04();while(!![]){try{const _0x5ac6af=parseInt(_0x2f6162(0x15b))/0x1+parseInt(_0x2f6162(0x156))/0x2+-parseInt(_0x2f6162(0x15a))/0x3*(-parseInt(_0x2f6162(0x155))/0x4)+parseInt(_0x2f6162(0x149))/0x5*(-parseInt(_0x2f6162(0x148))/0x6)+-parseInt(_0x2f6162(0x147))/0x7+-parseInt(_0x2f6162(0x14e))/0x8*(parseInt(_0x2f6162(0x143))/0x9)+parseInt(_0x2f6162(0x152))/0xa;if(_0x5ac6af===_0x3324c8)break;else _0x1e874e['push'](_0x1e874e['shift']());}catch(_0x1d3937){_0x1e874e['push'](_0x1e874e['shift']());}}}(a214_0x2c36,0x353a9));function hasWildcard(_0x28979c){const _0x23a6a3=a214_0x1991;return _0x28979c[_0x23a6a3(0x145)]('*')||_0x28979c[_0x23a6a3(0x145)]('?');}export function parseTableReference(_0x1b492c){const _0x47d61e=a214_0x1991;if(!_0x1b492c||_0x1b492c[_0x47d61e(0x157)]()['length']===0x0)throw new Error(_0x47d61e(0x14f));const _0x332138=_0x1b492c[_0x47d61e(0x157)](),_0x2295dc={'original':_0x332138},_0x5133f4=_0x332138[_0x47d61e(0x158)]('.');if(_0x5133f4[_0x47d61e(0x150)]===0x1){const _0x8340b2=_0x5133f4[0x0];if(!_0x8340b2)throw new Error(_0x47d61e(0x14c));_0x2295dc[_0x47d61e(0x14b)]=_0x8340b2;}else{if(_0x5133f4[_0x47d61e(0x150)]===0x2){const [_0x2cad5c,_0x35cd74]=_0x5133f4;if(!_0x2cad5c)throw new Error(_0x47d61e(0x153));if(!_0x35cd74)throw new Error(_0x47d61e(0x154));_0x2295dc[_0x47d61e(0x15c)]=_0x2cad5c,_0x2295dc[_0x47d61e(0x14b)]=_0x35cd74;}else{if(_0x5133f4[_0x47d61e(0x150)]===0x3){const [_0x5553db,_0x38223c,_0xa1fcf3]=_0x5133f4;if(!_0x5553db||!_0x38223c||!_0xa1fcf3)throw new Error(_0x47d61e(0x151));_0x2295dc['catalog']=_0x5553db,_0x2295dc[_0x47d61e(0x15c)]=_0x38223c,_0x2295dc[_0x47d61e(0x14b)]=_0xa1fcf3;}else throw new Error(_0x47d61e(0x146));}}return _0x2295dc;}export function formatTableReference(_0x2f4b31){const _0x377338=a214_0x1991,_0x6cf055=[];return _0x2f4b31[_0x377338(0x14a)]&&_0x6cf055['push'](_0x2f4b31['catalog']),_0x2f4b31['database']&&_0x6cf055[_0x377338(0x14d)](_0x2f4b31[_0x377338(0x15c)]),_0x2f4b31[_0x377338(0x14b)]&&_0x6cf055[_0x377338(0x14d)](_0x2f4b31[_0x377338(0x14b)]),_0x6cf055[_0x377338(0x144)]('.');}function a214_0x1991(_0x3246ea,_0x4e782f){_0x3246ea=_0x3246ea-0x143;const _0x2c36b7=a214_0x2c36();let _0x199193=_0x2c36b7[_0x3246ea];return _0x199193;}export function validateTableListReference(_0x302009){return undefined;}export function validateTableDescribeReference(_0x261c76){const _0x1d2a50=a214_0x1991;if(!_0x261c76[_0x1d2a50(0x14b)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x261c76[_0x1d2a50(0x15c)]&&hasWildcard(_0x261c76['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x261c76[_0x1d2a50(0x14b)]))return _0x1d2a50(0x159);return undefined;}function a214_0x2c36(){const _0x2a04a3=['split','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','24upHcJj','229272lpkdCu','database','331254HcVbRi','join','includes','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1046563sYFwSR','30kgDCBe','151205OVyPNX','catalog','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push','88mkQvQN','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','4866200mmtqiK','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','8564ZVGqtm','381170purcPI','trim'];a214_0x2c36=function(){return _0x2a04a3;};return a214_0x2c36();}
1
+ (function(_0x2bf28e,_0x243c3f){const _0x450e3e=a214_0x1570,_0x29505a=_0x2bf28e();while(!![]){try{const _0x510a1e=-parseInt(_0x450e3e(0x1c6))/0x1*(-parseInt(_0x450e3e(0x1d4))/0x2)+parseInt(_0x450e3e(0x1d1))/0x3+-parseInt(_0x450e3e(0x1cf))/0x4*(-parseInt(_0x450e3e(0x1d3))/0x5)+parseInt(_0x450e3e(0x1c4))/0x6*(-parseInt(_0x450e3e(0x1c8))/0x7)+parseInt(_0x450e3e(0x1d0))/0x8+-parseInt(_0x450e3e(0x1de))/0x9+-parseInt(_0x450e3e(0x1cb))/0xa*(parseInt(_0x450e3e(0x1d8))/0xb);if(_0x510a1e===_0x243c3f)break;else _0x29505a['push'](_0x29505a['shift']());}catch(_0x491d0f){_0x29505a['push'](_0x29505a['shift']());}}}(a214_0x4b2e,0x92563));function hasWildcard(_0x2c6971){const _0x38037f=a214_0x1570;return _0x2c6971[_0x38037f(0x1dc)]('*')||_0x2c6971[_0x38037f(0x1dc)]('?');}export function parseTableReference(_0x3a96ef){const _0x4f9759=a214_0x1570;if(!_0x3a96ef||_0x3a96ef[_0x4f9759(0x1d2)]()[_0x4f9759(0x1c5)]===0x0)throw new Error(_0x4f9759(0x1c9));const _0x5c0e74=_0x3a96ef[_0x4f9759(0x1d2)](),_0x21f868={'original':_0x5c0e74},_0x481167=_0x5c0e74[_0x4f9759(0x1ca)]('.');if(_0x481167[_0x4f9759(0x1c5)]===0x1){const _0x21240e=_0x481167[0x0];if(!_0x21240e)throw new Error(_0x4f9759(0x1d6));_0x21f868[_0x4f9759(0x1d9)]=_0x21240e;}else{if(_0x481167[_0x4f9759(0x1c5)]===0x2){const [_0x1ef433,_0x550ed5]=_0x481167;if(!_0x1ef433)throw new Error(_0x4f9759(0x1da));if(!_0x550ed5)throw new Error(_0x4f9759(0x1dd));_0x21f868[_0x4f9759(0x1cd)]=_0x1ef433,_0x21f868[_0x4f9759(0x1d9)]=_0x550ed5;}else{if(_0x481167['length']===0x3){const [_0x394da0,_0xc5f8e4,_0x43c8b6]=_0x481167;if(!_0x394da0||!_0xc5f8e4||!_0x43c8b6)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x21f868['catalog']=_0x394da0,_0x21f868['database']=_0xc5f8e4,_0x21f868['table']=_0x43c8b6;}else throw new Error(_0x4f9759(0x1d5));}}return _0x21f868;}export function formatTableReference(_0x5dc719){const _0x5556ec=a214_0x1570,_0x3869ac=[];return _0x5dc719[_0x5556ec(0x1db)]&&_0x3869ac[_0x5556ec(0x1d7)](_0x5dc719[_0x5556ec(0x1db)]),_0x5dc719[_0x5556ec(0x1cd)]&&_0x3869ac[_0x5556ec(0x1d7)](_0x5dc719[_0x5556ec(0x1cd)]),_0x5dc719['table']&&_0x3869ac[_0x5556ec(0x1d7)](_0x5dc719[_0x5556ec(0x1d9)]),_0x3869ac[_0x5556ec(0x1ce)]('.');}export function validateTableListReference(_0x227527){return undefined;}function a214_0x1570(_0x1221b9,_0x24c63c){_0x1221b9=_0x1221b9-0x1c4;const _0x4b2e1b=a214_0x4b2e();let _0x1570ed=_0x4b2e1b[_0x1221b9];return _0x1570ed;}function a214_0x4b2e(){const _0x37c20e=['catalog','includes','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','2361492HYStLZ','49812hmoyNG','length','865153RQbmhF','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','658kkBHOI','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','split','7713910xkuupu','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database','join','136vtXnvp','5926464zvTEGo','1079361YnlTun','trim','65855gmJEEv','2kutsRr','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push','11HqceLs','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)'];a214_0x4b2e=function(){return _0x37c20e;};return a214_0x4b2e();}export function validateTableDescribeReference(_0xfdf15e){const _0xab7cfa=a214_0x1570;if(!_0xfdf15e[_0xab7cfa(0x1d9)])return _0xab7cfa(0x1cc);if(_0xfdf15e[_0xab7cfa(0x1cd)]&&hasWildcard(_0xfdf15e[_0xab7cfa(0x1cd)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0xfdf15e[_0xab7cfa(0x1d9)]))return _0xab7cfa(0x1c7);return undefined;}
@@ -1 +1 @@
1
- function a215_0x2877(_0x17ee25,_0x3a5fa0){_0x17ee25=_0x17ee25-0x11b;const _0x3c00ca=a215_0x3c00();let _0x28774e=_0x3c00ca[_0x17ee25];return _0x28774e;}function a215_0x3c00(){const _0x2dc90a=['4WLBkbQ','tdx','10548SdHfKu','148194yXhaYF','240693XabHKZ','getLogPath','426584ekjRfX','debug','1049909qrIgel','Session\x20ended','consoleHandler','398945MadfBQ','logger','init','warn','logFileName','info','addHandler','8Uhkkdw','6LKyYRd','push','11zmnMpb','logDir','shutdown','error','217148FvLrkX','logLevel','fileOnly','fileHandler','trace','INFO','70AqgZbk'];a215_0x3c00=function(){return _0x2dc90a;};return a215_0x3c00();}const a215_0x311153=a215_0x2877;(function(_0x5e8be6,_0x290283){const _0x22a035=a215_0x2877,_0x4cf48a=_0x5e8be6();while(!![]){try{const _0x634009=-parseInt(_0x22a035(0x138))/0x1+parseInt(_0x22a035(0x125))/0x2+parseInt(_0x22a035(0x123))/0x3*(parseInt(_0x22a035(0x11f))/0x4)+parseInt(_0x22a035(0x12a))/0x5*(parseInt(_0x22a035(0x132))/0x6)+-parseInt(_0x22a035(0x127))/0x7*(parseInt(_0x22a035(0x131))/0x8)+parseInt(_0x22a035(0x122))/0x9*(parseInt(_0x22a035(0x11e))/0xa)+parseInt(_0x22a035(0x134))/0xb*(-parseInt(_0x22a035(0x121))/0xc);if(_0x634009===_0x290283)break;else _0x4cf48a['push'](_0x4cf48a['shift']());}catch(_0x151da8){_0x4cf48a['push'](_0x4cf48a['shift']());}}}(a215_0x3c00,0x1d6f0));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x311153(0x139)];[a215_0x311153(0x13a)];['logDir'];['logFileName'];['logger'];[a215_0x311153(0x11b)]=null;[a215_0x311153(0x129)]=null;constructor(_0x6c1eb7=LogLevel['INFO'],_0x4c9d14=![],_0x1cc1d0,_0x1a155a='tdx.log'){const _0xd8aaf6=a215_0x311153;this[_0xd8aaf6(0x139)]=_0x6c1eb7,this[_0xd8aaf6(0x13a)]=_0x4c9d14,this[_0xd8aaf6(0x135)]=_0x1cc1d0||join(getGlobalCacheDir(),'logs'),this[_0xd8aaf6(0x12e)]=_0x1a155a,this[_0xd8aaf6(0x12b)]=Logger['of'](_0xd8aaf6(0x120));}async[a215_0x311153(0x12c)](){const _0x19cf6f=a215_0x311153,_0x2eb2ad=join(this[_0x19cf6f(0x135)],this['logFileName']);if(Logger['isInitialized']()){!this[_0x19cf6f(0x13a)]&&(this[_0x19cf6f(0x129)]=new ConsoleHandler({'minLevel':LogLevel[_0x19cf6f(0x11d)],'colors':!![]}),Logger[_0x19cf6f(0x130)](this[_0x19cf6f(0x129)]));return;}this[_0x19cf6f(0x11b)]=new FileHandler({'filePath':_0x2eb2ad});const _0x3e73da=[this['fileHandler']];!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x19cf6f(0x11d)],'colors':!![]}),_0x3e73da[_0x19cf6f(0x133)](this['consoleHandler'])),await Logger[_0x19cf6f(0x12c)]({'defaultLevel':this[_0x19cf6f(0x139)],'handlers':_0x3e73da,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x311153(0x126)](..._0x3479de){const _0x1de66e=a215_0x311153;this['logger'][_0x1de66e(0x126)](..._0x3479de);}[a215_0x311153(0x11c)](..._0xbab811){const _0x3a6829=a215_0x311153;this[_0x3a6829(0x12b)]['trace'](..._0xbab811);}[a215_0x311153(0x12f)](..._0xf4c738){const _0x407d99=a215_0x311153;this['logger'][_0x407d99(0x12f)](..._0xf4c738);}[a215_0x311153(0x12d)](..._0x3f8209){const _0x1bd02c=a215_0x311153;this[_0x1bd02c(0x12b)]['warn'](..._0x3f8209);}[a215_0x311153(0x137)](..._0x51b2eb){const _0x435feb=a215_0x311153;this[_0x435feb(0x12b)][_0x435feb(0x137)](..._0x51b2eb);}async['close'](){const _0x3b563a=a215_0x311153;this['logger'][_0x3b563a(0x12f)](_0x3b563a(0x128)),await Logger[_0x3b563a(0x136)]();}[a215_0x311153(0x124)](){const _0x30f65e=a215_0x311153;return join(this[_0x30f65e(0x135)],this[_0x30f65e(0x12e)]);}}
1
+ function a215_0x50ef(_0x1084ca,_0x1a254d){_0x1084ca=_0x1084ca-0x1ac;const _0x182eb9=a215_0x182e();let _0x50ef3a=_0x182eb9[_0x1084ca];return _0x50ef3a;}function a215_0x182e(){const _0xf57487=['27624dADpjx','consoleHandler','addHandler','error','250966iUVOxi','logLevel','INFO','13zmxOMp','10877152Fnlaqn','debug','34719izAGDD','20601405TfnFKO','Session\x20ended','logDir','10WQWdMt','192YqPcAq','info','1065rkavzq','isInitialized','logger','trace','fileOnly','close','tdx.log','fileHandler','init','shutdown','11733147oDNmiv','getLogPath','push','logFileName','warn','4369757uUfrld'];a215_0x182e=function(){return _0xf57487;};return a215_0x182e();}const a215_0x2194dc=a215_0x50ef;(function(_0x12f990,_0x40469d){const _0x2f860d=a215_0x50ef,_0x2b793b=_0x12f990();while(!![]){try{const _0x589c47=-parseInt(_0x2f860d(0x1ba))/0x1*(-parseInt(_0x2f860d(0x1b7))/0x2)+parseInt(_0x2f860d(0x1bd))/0x3*(-parseInt(_0x2f860d(0x1c2))/0x4)+-parseInt(_0x2f860d(0x1c4))/0x5*(-parseInt(_0x2f860d(0x1b3))/0x6)+parseInt(_0x2f860d(0x1b2))/0x7+parseInt(_0x2f860d(0x1bb))/0x8+parseInt(_0x2f860d(0x1ad))/0x9*(-parseInt(_0x2f860d(0x1c1))/0xa)+-parseInt(_0x2f860d(0x1be))/0xb;if(_0x589c47===_0x40469d)break;else _0x2b793b['push'](_0x2b793b['shift']());}catch(_0x4ae54f){_0x2b793b['push'](_0x2b793b['shift']());}}}(a215_0x182e,0xd2e28));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a215_0x2194dc(0x1b8)];['fileOnly'];[a215_0x2194dc(0x1c0)];[a215_0x2194dc(0x1b0)];[a215_0x2194dc(0x1c6)];['fileHandler']=null;[a215_0x2194dc(0x1b4)]=null;constructor(_0x4138c6=LogLevel[a215_0x2194dc(0x1b9)],_0x4962f7=![],_0x3d3a24,_0x4d71f9=a215_0x2194dc(0x1ca)){const _0x529a28=a215_0x2194dc;this[_0x529a28(0x1b8)]=_0x4138c6,this['fileOnly']=_0x4962f7,this[_0x529a28(0x1c0)]=_0x3d3a24||join(getGlobalCacheDir(),'logs'),this[_0x529a28(0x1b0)]=_0x4d71f9,this['logger']=Logger['of']('tdx');}async[a215_0x2194dc(0x1cc)](){const _0x33f1fe=a215_0x2194dc,_0x102cd3=join(this[_0x33f1fe(0x1c0)],this[_0x33f1fe(0x1b0)]);if(Logger[_0x33f1fe(0x1c5)]()){!this[_0x33f1fe(0x1c8)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x33f1fe(0x1b9)],'colors':!![]}),Logger[_0x33f1fe(0x1b5)](this[_0x33f1fe(0x1b4)]));return;}this[_0x33f1fe(0x1cb)]=new FileHandler({'filePath':_0x102cd3});const _0x5b8fd3=[this[_0x33f1fe(0x1cb)]];!this['fileOnly']&&(this[_0x33f1fe(0x1b4)]=new ConsoleHandler({'minLevel':LogLevel[_0x33f1fe(0x1b9)],'colors':!![]}),_0x5b8fd3[_0x33f1fe(0x1af)](this['consoleHandler'])),await Logger['init']({'defaultLevel':this[_0x33f1fe(0x1b8)],'handlers':_0x5b8fd3,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a215_0x2194dc(0x1bc)](..._0x58ba45){const _0x2324c4=a215_0x2194dc;this['logger'][_0x2324c4(0x1bc)](..._0x58ba45);}[a215_0x2194dc(0x1c7)](..._0x168a36){const _0x154060=a215_0x2194dc;this[_0x154060(0x1c6)]['trace'](..._0x168a36);}['info'](..._0xd04779){const _0x4ca59e=a215_0x2194dc;this[_0x4ca59e(0x1c6)]['info'](..._0xd04779);}['warn'](..._0x23041e){const _0x38f671=a215_0x2194dc;this[_0x38f671(0x1c6)][_0x38f671(0x1b1)](..._0x23041e);}[a215_0x2194dc(0x1b6)](..._0x387481){const _0x3afbd8=a215_0x2194dc;this[_0x3afbd8(0x1c6)][_0x3afbd8(0x1b6)](..._0x387481);}async[a215_0x2194dc(0x1c9)](){const _0x159194=a215_0x2194dc;this[_0x159194(0x1c6)][_0x159194(0x1c3)](_0x159194(0x1bf)),await Logger[_0x159194(0x1ac)]();}[a215_0x2194dc(0x1ae)](){const _0x453c03=a215_0x2194dc;return join(this[_0x453c03(0x1c0)],this['logFileName']);}}
@@ -1 +1 @@
1
- const a216_0x519b0b=a216_0x5b6e;function a216_0x19f4(){const _0x14e35c=['statusCode','Request\x20timeout','3728188SoIOZM','last_version_check_next','166865LorhfR','21RXXUor','Update\x20available:','tdx\x20upgrade\x20--next','utils/version-check','now','2151VbLTxs','stderr','HTTP\x20','unref','updateAvailable','green','966648LnPGic','parse','last_version_check','channel','Invalid\x20version\x20format','tdx\x20upgrade','lastCheck','217220dIZwwJ','currentVersion','latestVersion','\x0aUpdate\x20available:\x20','45424tktubv','https://registry.npmjs.org/@treasuredata/tdx','write','version','toISOString','isTTY','989703WNYhAO','Run:','\x0aRun:\x20','latest','yellow','next','dim','getTime','socket','stable','2079610rAVUHS'];a216_0x19f4=function(){return _0x14e35c;};return a216_0x19f4();}(function(_0x1386c0,_0x420ae9){const _0x4133ca=a216_0x5b6e,_0x4cecf8=_0x1386c0();while(!![]){try{const _0x2428dd=parseInt(_0x4133ca(0xbe))/0x1+-parseInt(_0x4133ca(0xa6))/0x2+-parseInt(_0x4133ca(0xc8))/0x3+parseInt(_0x4133ca(0xa9))/0x4+-parseInt(_0x4133ca(0xab))/0x5+parseInt(_0x4133ca(0xb7))/0x6*(-parseInt(_0x4133ca(0xac))/0x7)+parseInt(_0x4133ca(0xc2))/0x8*(parseInt(_0x4133ca(0xb1))/0x9);if(_0x2428dd===_0x420ae9)break;else _0x4cecf8['push'](_0x4cecf8['shift']());}catch(_0x37173e){_0x4cecf8['push'](_0x4cecf8['shift']());}}}(a216_0x19f4,0x97582));import{get}from'https';import{gt,valid}from'semver';import a216_0x3000d6 from'chalk';function a216_0x5b6e(_0x30573d,_0x155cae){_0x30573d=_0x30573d-0xa1;const _0x19f4b0=a216_0x19f4();let _0x5b6e21=_0x19f4b0[_0x30573d];return _0x5b6e21;}import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a216_0x519b0b(0xc3),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a216_0x519b0b(0xb9),a216_0x519b0b(0xaf)),nextVersionCache=createGlobalCache(a216_0x519b0b(0xaa),'utils/version-check-next');function getCacheForChannel(_0x5ea3de){const _0x542da0=a216_0x519b0b;return _0x5ea3de===_0x542da0(0xa1)?nextVersionCache:stableVersionCache;}function readCache(_0x2df455){return getCacheForChannel(_0x2df455)['read']()??null;}function writeCache(_0x16f7d1,_0xf1178){const _0x386095=a216_0x519b0b;try{getCacheForChannel(_0xf1178)['write']({'lastCheck':new Date()[_0x386095(0xc6)](),'latestVersion':_0x16f7d1});}catch{}}function isCacheValid(_0x513be6){const _0x5e16cd=a216_0x519b0b;if(!_0x513be6)return![];const _0x1a76e9=new Date(_0x513be6[_0x5e16cd(0xbd)])[_0x5e16cd(0xa3)](),_0x4ecb9b=Date[_0x5e16cd(0xb0)]();return _0x4ecb9b-_0x1a76e9<CACHE_DURATION_MS;}export function fetchLatestVersion(_0xb22208=a216_0x519b0b(0xa5)){const _0x1e62db=a216_0x519b0b,_0xaea9=_0xb22208===_0x1e62db(0xa1)?_0x1e62db(0xa1):_0x1e62db(0xcb),_0x129ffd=NPM_REGISTRY_BASE+'/'+_0xaea9;return new Promise((_0x1f07a9,_0x1cca13)=>{const _0xd1ce91=_0x1e62db,_0x2a2f8e=get(_0x129ffd,{'timeout':TIMEOUT_MS},_0x1c308b=>{const _0x3c51f7=a216_0x5b6e;if(_0x1c308b[_0x3c51f7(0xa7)]!==0xc8){clearTimeout(_0x2589ac),_0x1cca13(new Error(_0x3c51f7(0xb3)+_0x1c308b[_0x3c51f7(0xa7)]));return;}let _0x3b339c='';_0x1c308b['on']('data',_0x381028=>{_0x3b339c+=_0x381028;}),_0x1c308b['on']('end',()=>{const _0x2daede=_0x3c51f7;clearTimeout(_0x2589ac);try{const _0x31f5d0=JSON[_0x2daede(0xb8)](_0x3b339c);if(!valid(_0x31f5d0[_0x2daede(0xc5)])){_0x1cca13(new Error(_0x2daede(0xbb)));return;}_0x1f07a9(_0x31f5d0['version']);}catch(_0x45c57c){_0x1cca13(_0x45c57c);}});})['on']('error',_0x278d58=>{clearTimeout(_0x2589ac),_0x1cca13(_0x278d58);});_0x2a2f8e['on'](_0xd1ce91(0xa4),_0x1b0372=>{const _0x1e9d1b=_0xd1ce91;_0x1b0372[_0x1e9d1b(0xb4)]();});const _0x2589ac=setTimeout(()=>{const _0x3fa898=_0xd1ce91;_0x2a2f8e['destroy'](),_0x1cca13(new Error(_0x3fa898(0xa8)));},TIMEOUT_MS);_0x2589ac['unref']();});}export async function checkForUpdate(_0x317b9b,_0x8ecfc6='stable'){const _0x28c66b=a216_0x519b0b;try{const _0x3e42c2=readCache(_0x8ecfc6);if(isCacheValid(_0x3e42c2)){const _0x12c5d9=gt(_0x3e42c2[_0x28c66b(0xc0)],_0x317b9b);return{'updateAvailable':_0x12c5d9,'currentVersion':_0x317b9b,'latestVersion':_0x3e42c2[_0x28c66b(0xc0)],'channel':_0x8ecfc6};}const _0x3dc86e=await fetchLatestVersion(_0x8ecfc6);writeCache(_0x3dc86e,_0x8ecfc6);const _0x6b4a01=gt(_0x3dc86e,_0x317b9b);return{'updateAvailable':_0x6b4a01,'currentVersion':_0x317b9b,'latestVersion':_0x3dc86e,'channel':_0x8ecfc6};}catch{return null;}}export function displayUpdateNotification(_0x56ff43){const _0x1d46cc=a216_0x519b0b;if(!_0x56ff43[_0x1d46cc(0xb5)])return;const _0x207851=_0x56ff43[_0x1d46cc(0xba)]==='next'?_0x1d46cc(0xae):_0x1d46cc(0xbc),_0x3f6e68=process[_0x1d46cc(0xb2)][_0x1d46cc(0xc7)]&&!process.env.NO_COLOR,_0x403d43=_0x3f6e68?a216_0x3000d6['gray']('→'):'→',_0x5ec4d6=_0x3f6e68?a216_0x3000d6['dim'](_0x56ff43['currentVersion']):_0x56ff43[_0x1d46cc(0xbf)],_0x2e30c6=_0x3f6e68?a216_0x3000d6[_0x1d46cc(0xb6)](_0x56ff43['latestVersion']):_0x56ff43[_0x1d46cc(0xc0)],_0x18ae56=_0x3f6e68?a216_0x3000d6['cyan'](_0x207851):_0x207851,_0x4de315=_0x3f6e68?'\x0a'+a216_0x3000d6[_0x1d46cc(0xcc)](_0x1d46cc(0xad))+'\x20'+_0x5ec4d6+'\x20'+_0x403d43+'\x20'+_0x2e30c6+'\x0a'+a216_0x3000d6[_0x1d46cc(0xa2)](_0x1d46cc(0xc9))+'\x20'+_0x18ae56+'\x0a':_0x1d46cc(0xc1)+_0x5ec4d6+'\x20'+_0x403d43+'\x20'+_0x2e30c6+_0x1d46cc(0xca)+_0x18ae56+'\x0a';process[_0x1d46cc(0xb2)][_0x1d46cc(0xc4)](_0x4de315);}
1
+ const a216_0x35248f=a216_0x44fc;(function(_0x1a99e4,_0x138067){const _0x15339f=a216_0x44fc,_0x7cc215=_0x1a99e4();while(!![]){try{const _0x483dbb=-parseInt(_0x15339f(0x134))/0x1+-parseInt(_0x15339f(0x14c))/0x2+parseInt(_0x15339f(0x13e))/0x3+parseInt(_0x15339f(0x13c))/0x4*(parseInt(_0x15339f(0x135))/0x5)+parseInt(_0x15339f(0x150))/0x6+parseInt(_0x15339f(0x142))/0x7+parseInt(_0x15339f(0x12e))/0x8*(parseInt(_0x15339f(0x139))/0x9);if(_0x483dbb===_0x138067)break;else _0x7cc215['push'](_0x7cc215['shift']());}catch(_0x30d711){_0x7cc215['push'](_0x7cc215['shift']());}}}(a216_0x1b40,0x3d854));import{get}from'https';import{gt,valid}from'semver';import a216_0x19de55 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a216_0x35248f(0x14a),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check',a216_0x35248f(0x149)),nextVersionCache=createGlobalCache(a216_0x35248f(0x14f),a216_0x35248f(0x14b));function getCacheForChannel(_0x37593c){const _0x22767c=a216_0x35248f;return _0x37593c===_0x22767c(0x153)?nextVersionCache:stableVersionCache;}function readCache(_0x2008d0){const _0x4ad8cc=a216_0x35248f;return getCacheForChannel(_0x2008d0)[_0x4ad8cc(0x13b)]()??null;}function writeCache(_0xc19bab,_0x39196a){const _0x2ad6f1=a216_0x35248f;try{getCacheForChannel(_0x39196a)['write']({'lastCheck':new Date()[_0x2ad6f1(0x154)](),'latestVersion':_0xc19bab});}catch{}}function isCacheValid(_0x35fba6){const _0x1a9acf=a216_0x35248f;if(!_0x35fba6)return![];const _0x3ed327=new Date(_0x35fba6[_0x1a9acf(0x136)])[_0x1a9acf(0x133)](),_0x107720=Date[_0x1a9acf(0x145)]();return _0x107720-_0x3ed327<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x24cfcf=a216_0x35248f(0x12d)){const _0x6b48d4=a216_0x35248f,_0x27a0e2=_0x24cfcf===_0x6b48d4(0x153)?'next':'latest',_0x3c582c=NPM_REGISTRY_BASE+'/'+_0x27a0e2;return new Promise((_0x2b4f1a,_0x308134)=>{const _0x3ed95b=_0x6b48d4,_0x7b8223=get(_0x3c582c,{'timeout':TIMEOUT_MS},_0x373a27=>{const _0xdfe8da=a216_0x44fc;if(_0x373a27[_0xdfe8da(0x14d)]!==0xc8){clearTimeout(_0x125bee),_0x308134(new Error(_0xdfe8da(0x138)+_0x373a27[_0xdfe8da(0x14d)]));return;}let _0x17fe34='';_0x373a27['on']('data',_0xa8bc40=>{_0x17fe34+=_0xa8bc40;}),_0x373a27['on'](_0xdfe8da(0x140),()=>{const _0x5403dc=_0xdfe8da;clearTimeout(_0x125bee);try{const _0x30cbe7=JSON[_0x5403dc(0x12f)](_0x17fe34);if(!valid(_0x30cbe7[_0x5403dc(0x148)])){_0x308134(new Error(_0x5403dc(0x147)));return;}_0x2b4f1a(_0x30cbe7[_0x5403dc(0x148)]);}catch(_0x462cc5){_0x308134(_0x462cc5);}});})['on'](_0x3ed95b(0x144),_0x1452b2=>{clearTimeout(_0x125bee),_0x308134(_0x1452b2);});_0x7b8223['on'](_0x3ed95b(0x151),_0x2f2ead=>{const _0x1feb8d=_0x3ed95b;_0x2f2ead[_0x1feb8d(0x152)]();});const _0x125bee=setTimeout(()=>{const _0x41bbeb=_0x3ed95b;_0x7b8223['destroy'](),_0x308134(new Error(_0x41bbeb(0x137)));},TIMEOUT_MS);_0x125bee[_0x3ed95b(0x152)]();});}export async function checkForUpdate(_0x107aa1,_0x500ff8=a216_0x35248f(0x12d)){const _0xd83eed=a216_0x35248f;try{const _0x4c86d2=readCache(_0x500ff8);if(isCacheValid(_0x4c86d2)){const _0xc878b1=gt(_0x4c86d2[_0xd83eed(0x13f)],_0x107aa1);return{'updateAvailable':_0xc878b1,'currentVersion':_0x107aa1,'latestVersion':_0x4c86d2[_0xd83eed(0x13f)],'channel':_0x500ff8};}const _0x34bfe9=await fetchLatestVersion(_0x500ff8);writeCache(_0x34bfe9,_0x500ff8);const _0x447170=gt(_0x34bfe9,_0x107aa1);return{'updateAvailable':_0x447170,'currentVersion':_0x107aa1,'latestVersion':_0x34bfe9,'channel':_0x500ff8};}catch{return null;}}function a216_0x1b40(){const _0x469804=['last_version_check_next','419052RtKEIk','socket','unref','next','toISOString','green','tdx\x20upgrade\x20--next','stable','56RsrMYY','parse','tdx\x20upgrade','stderr','write','getTime','378919kWlKeP','20kGpPdq','lastCheck','Request\x20timeout','HTTP\x20','514314wRtvmt','yellow','read','222004urNIPU','gray','297285nQcund','latestVersion','end','Update\x20available:','814170XFdhjh','channel','error','now','dim','Invalid\x20version\x20format','version','utils/version-check','https://registry.npmjs.org/@treasuredata/tdx','utils/version-check-next','552732WnDEcF','statusCode','currentVersion'];a216_0x1b40=function(){return _0x469804;};return a216_0x1b40();}function a216_0x44fc(_0x803ba,_0x48576c){_0x803ba=_0x803ba-0x12b;const _0x1b4040=a216_0x1b40();let _0x44fc1f=_0x1b4040[_0x803ba];return _0x44fc1f;}export function displayUpdateNotification(_0x1bf9eb){const _0x5cff80=a216_0x35248f;if(!_0x1bf9eb['updateAvailable'])return;const _0x483b91=_0x1bf9eb[_0x5cff80(0x143)]===_0x5cff80(0x153)?_0x5cff80(0x12c):_0x5cff80(0x130),_0x1b9194=process[_0x5cff80(0x131)]['isTTY']&&!process.env.NO_COLOR,_0x4fd80a=_0x1b9194?a216_0x19de55[_0x5cff80(0x13d)]('→'):'→',_0x171301=_0x1b9194?a216_0x19de55['dim'](_0x1bf9eb[_0x5cff80(0x14e)]):_0x1bf9eb[_0x5cff80(0x14e)],_0x59f57d=_0x1b9194?a216_0x19de55[_0x5cff80(0x12b)](_0x1bf9eb[_0x5cff80(0x13f)]):_0x1bf9eb[_0x5cff80(0x13f)],_0x3f9165=_0x1b9194?a216_0x19de55['cyan'](_0x483b91):_0x483b91,_0x343b16=_0x1b9194?'\x0a'+a216_0x19de55[_0x5cff80(0x13a)](_0x5cff80(0x141))+'\x20'+_0x171301+'\x20'+_0x4fd80a+'\x20'+_0x59f57d+'\x0a'+a216_0x19de55[_0x5cff80(0x146)]('Run:')+'\x20'+_0x3f9165+'\x0a':'\x0aUpdate\x20available:\x20'+_0x171301+'\x20'+_0x4fd80a+'\x20'+_0x59f57d+'\x0aRun:\x20'+_0x3f9165+'\x0a';process[_0x5cff80(0x131)][_0x5cff80(0x132)](_0x343b16);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.28",
3
+ "version": "2026.3.30",
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": {