@treasuredata/tdx 2026.3.13 → 2026.3.14

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_0x2fe4f4=a206_0x2355;(function(_0xef955e,_0x24909e){const _0x23b8ad=a206_0x2355,_0x252993=_0xef955e();while(!![]){try{const _0x3f5b59=parseInt(_0x23b8ad(0xb2))/0x1+parseInt(_0x23b8ad(0xb4))/0x2*(-parseInt(_0x23b8ad(0xc7))/0x3)+parseInt(_0x23b8ad(0xce))/0x4*(-parseInt(_0x23b8ad(0xcc))/0x5)+-parseInt(_0x23b8ad(0xbc))/0x6*(parseInt(_0x23b8ad(0xae))/0x7)+-parseInt(_0x23b8ad(0xda))/0x8*(-parseInt(_0x23b8ad(0xb0))/0x9)+-parseInt(_0x23b8ad(0xb3))/0xa*(parseInt(_0x23b8ad(0xcf))/0xb)+parseInt(_0x23b8ad(0xb7))/0xc*(parseInt(_0x23b8ad(0xb6))/0xd);if(_0x3f5b59===_0x24909e)break;else _0x252993['push'](_0x252993['shift']());}catch(_0x14395e){_0x252993['push'](_0x252993['shift']());}}}(a206_0x5d9d,0x46815));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x2fe4f4(0xab),'zsh','sh','fish',a206_0x2fe4f4(0xbe),a206_0x2fe4f4(0xd5),'csh',a206_0x2fe4f4(0xca),a206_0x2fe4f4(0xbd),a206_0x2fe4f4(0xc2),'nu',a206_0x2fe4f4(0xbb),a206_0x2fe4f4(0xa5),a206_0x2fe4f4(0xaa)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x2fe4f4(0xd0),a206_0x2fe4f4(0xaf),a206_0x2fe4f4(0xcd),'electron',a206_0x2fe4f4(0xc8)]);function getProcessInfoWindows(_0x27aefc){const _0x3ee5c6=a206_0x2fe4f4;try{if(!Number['isInteger'](_0x27aefc)||_0x27aefc<=0x0)return null;const _0x2f366=_0x3ee5c6(0xb9)+_0x27aefc+_0x3ee5c6(0xb5),_0x477a4e=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x2f366+'\x22',{'encoding':_0x3ee5c6(0xc0),'windowsHide':!![],'stdio':[_0x3ee5c6(0xa9),_0x3ee5c6(0xa9),'pipe']})[_0x3ee5c6(0xcb)]();if(!_0x477a4e)return null;const [_0x354ef0,..._0x3a7c05]=_0x477a4e[_0x3ee5c6(0xc5)](','),_0x55f9e8=parseInt(_0x354ef0,0xa),_0x3a37a1=_0x3a7c05[_0x3ee5c6(0xc6)](',')['trim']();if(isNaN(_0x55f9e8)||!_0x3a37a1)return null;return{'pid':_0x27aefc,'ppid':_0x55f9e8,'comm':_0x3a37a1[_0x3ee5c6(0xd1)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x4fe14f){const _0x35f894=a206_0x2fe4f4;try{const _0x1a3bfd=0x400000;if(!Number['isInteger'](_0x4fe14f)||_0x4fe14f<=0x0||_0x4fe14f>_0x1a3bfd)return null;const _0x30484e=execSync('ps\x20-p\x20'+_0x4fe14f+'\x20-o\x20ppid=,comm=',{'encoding':_0x35f894(0xc0),'stdio':'pipe'})['trim'](),[_0xfb8f5b,..._0x4c9a2d]=_0x30484e['split'](/\s+/),_0x2457e7=parseInt(_0xfb8f5b,0xa),_0x34202b=_0x4c9a2d[_0x35f894(0xc6)]('\x20');if(isNaN(_0x2457e7))return null;return{'pid':_0x4fe14f,'ppid':_0x2457e7,'comm':_0x34202b};}catch{return null;}}function getProcessInfo(_0x4b9d61){const _0x163fa0=a206_0x2fe4f4;if(process[_0x163fa0(0xdb)]==='win32')return getProcessInfoWindows(_0x4b9d61);return getProcessInfoPosix(_0x4b9d61);}function getBasename(_0x52f63e){const _0x403495=a206_0x2fe4f4;return _0x52f63e[_0x403495(0xd1)](/^-/,'')[_0x403495(0xc5)]('/')['pop']()?.[_0x403495(0xc4)]()||'';}function isShell(_0x21fdce){return SHELL_NAMES['has'](getBasename(_0x21fdce));}function isEphemeralShellSpawner(_0x39593a){const _0x436389=a206_0x2fe4f4;return EPHEMERAL_SHELL_SPAWNERS[_0x436389(0xb8)](getBasename(_0x39593a));}let cachedShellPID;function a206_0x5d9d(){const _0x14e22b=['href','ppid','data','pipe','xonsh','bash','open','ignore','1062943ROiRvi','code','18DfoaGR','map','25500sPmuOz','10rjxPCj','3190HfwiRE','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','4095iYeUnk','34824XZGRMP','has','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','pid','ion','6fHhOUY','pwsh','ksh','isInteger','utf-8','http:','powershell','darwin','toLowerCase','split','join','993aaptkf','treasure\x20studio','Unsupported\x20protocol:\x20','dash','trim','364830TzRvkE','cursor','8GjmTvz','241219BiQDta','claude','replace','Invalid\x20URL:\x20','unref','comm','tcsh','https:','where.exe','protocol','cmd.exe','787256PwkeOM','platform','which','win32','exit','stderr','elvish'];a206_0x5d9d=function(){return _0x14e22b;};return a206_0x5d9d();}function findShellPID(){const _0x36c4c4=a206_0x2fe4f4;if(process['ppid']===undefined)return process[_0x36c4c4(0xba)];let _0x42b766=process['ppid'];const _0x54d2c0=0xa;let _0x3d6c11=0x0;while(_0x3d6c11<_0x54d2c0){const _0x30d568=getProcessInfo(_0x42b766);if(!_0x30d568)break;if(isShell(_0x30d568[_0x36c4c4(0xd4)])){const _0x2dadf6=getProcessInfo(_0x30d568[_0x36c4c4(0xa7)]);if(_0x2dadf6&&isEphemeralShellSpawner(_0x2dadf6['comm'])){_0x42b766=_0x30d568[_0x36c4c4(0xa7)],_0x3d6c11++;continue;}return _0x30d568[_0x36c4c4(0xba)];}if(_0x30d568['ppid']===0x0||_0x30d568[_0x36c4c4(0xa7)]===0x1){if(isShell(_0x30d568[_0x36c4c4(0xd4)]))return _0x30d568[_0x36c4c4(0xba)];break;}_0x42b766=_0x30d568[_0x36c4c4(0xa7)],_0x3d6c11++;}return process['ppid']!==undefined?process['ppid']:process[_0x36c4c4(0xba)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2ce139){const _0x566ba2=a206_0x2fe4f4;if(!Number[_0x566ba2(0xbf)](_0x2ce139)||_0x2ce139<=0x0)return![];try{return process['kill'](_0x2ce139,0x0),!![];}catch{return![];}}export function openBrowser(_0xc33a92){const _0x3735eb=a206_0x2fe4f4;let _0x2190ff;try{_0x2190ff=new URL(_0xc33a92);}catch{throw new Error(_0x3735eb(0xd2)+_0xc33a92);}if(_0x2190ff['protocol']!==_0x3735eb(0xc1)&&_0x2190ff[_0x3735eb(0xd8)]!==_0x3735eb(0xd6))throw new Error(_0x3735eb(0xc9)+_0x2190ff[_0x3735eb(0xd8)]);const _0x492f7a=_0x2190ff[_0x3735eb(0xa6)],_0x49a400=process['platform'];if(_0x49a400==='win32')spawn(_0x3735eb(0xd9),['/c','start','',_0x492f7a],{'detached':!![],'stdio':_0x3735eb(0xad)})['unref']();else{const _0x202eec=_0x49a400===_0x3735eb(0xc3)?_0x3735eb(0xac):'xdg-open';spawn(_0x202eec,[_0x492f7a],{'detached':!![],'stdio':'ignore'})[_0x3735eb(0xd3)]();}}export function isWindows(){const _0x1bb14e=a206_0x2fe4f4;return process['platform']===_0x1bb14e(0xdd);}export function getCrossSpawnOptions(_0x5a991f){return{..._0x5a991f??{},'shell':isWindows()};}function a206_0x2355(_0x5766c0,_0x5a1e5f){_0x5766c0=_0x5766c0-0xa4;const _0x5d9df5=a206_0x5d9d();let _0x2355fe=_0x5d9df5[_0x5766c0];return _0x2355fe;}export function escapeWindowsArg(_0x37f561){const _0x31353f=a206_0x2fe4f4;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x37f561))return _0x37f561;const _0x44c933=_0x37f561[_0x31353f(0xd1)](/"/g,'\x22\x22');return'\x22'+_0x44c933+'\x22';}export function crossSpawn(_0xf4555f,_0x5bf4d5,_0x539599){const _0x14816a=a206_0x2fe4f4;if(isWindows()){const _0x5f5612=escapeWindowsArg(_0xf4555f),_0x3c2add=_0x5bf4d5[_0x14816a(0xb1)](escapeWindowsArg),_0x57885c=[_0x5f5612,..._0x3c2add]['join']('\x20');return spawn(_0x57885c,[],{..._0x539599,'shell':!![]});}return spawn(_0xf4555f,_0x5bf4d5,{..._0x539599,'shell':![]});}export function gracefulExit(_0x43d1d6=0x0){const _0x22c823=a206_0x2fe4f4;isWindows()?setTimeout(()=>process[_0x22c823(0xde)](_0x43d1d6),0x32):process[_0x22c823(0xde)](_0x43d1d6);}export function findExecutable(_0x4e6b86,_0x519672=0x1388){return new Promise(_0x2a1203=>{const _0x1530a6=a206_0x2355,_0x337d51=isWindows()?_0x1530a6(0xd7):_0x1530a6(0xdc);let _0xbbee23=![];const _0x2be2f1=crossSpawn(_0x337d51,[_0x4e6b86],{'stdio':_0x1530a6(0xa9),'shell':isWindows()}),_0x38541e=setTimeout(()=>{!_0xbbee23&&(_0xbbee23=!![],_0x2be2f1['kill'](),_0x2a1203(null));},_0x519672);let _0x32ca4c='';_0x2be2f1['stdout']?.['on'](_0x1530a6(0xa8),_0x1fc730=>{_0x32ca4c+=_0x1fc730['toString']();}),_0x2be2f1[_0x1530a6(0xa4)]?.['on'](_0x1530a6(0xa8),()=>{}),_0x2be2f1['on']('exit',_0x3a2999=>{const _0xf9235=_0x1530a6;if(_0xbbee23)return;_0xbbee23=!![],clearTimeout(_0x38541e);if(_0x3a2999===0x0&&_0x32ca4c[_0xf9235(0xcb)]()){const _0x30e50e=_0x32ca4c[_0xf9235(0xcb)]()[_0xf9235(0xc5)](/\r?\n/)[0x0];_0x2a1203(_0x30e50e);}else _0x2a1203(null);}),_0x2be2f1['on']('error',()=>{if(_0xbbee23)return;_0xbbee23=!![],clearTimeout(_0x38541e),_0x2a1203(null);});});}
1
+ const a206_0x5f2878=a206_0x34f6;(function(_0x583734,_0x5bbf1d){const _0x3ca66e=a206_0x34f6,_0x3b04b6=_0x583734();while(!![]){try{const _0x2f3348=parseInt(_0x3ca66e(0x118))/0x1+-parseInt(_0x3ca66e(0xf8))/0x2+-parseInt(_0x3ca66e(0x101))/0x3*(-parseInt(_0x3ca66e(0x108))/0x4)+parseInt(_0x3ca66e(0x11c))/0x5*(-parseInt(_0x3ca66e(0xfa))/0x6)+parseInt(_0x3ca66e(0xfd))/0x7*(parseInt(_0x3ca66e(0x10a))/0x8)+parseInt(_0x3ca66e(0x10f))/0x9*(-parseInt(_0x3ca66e(0xf1))/0xa)+parseInt(_0x3ca66e(0x110))/0xb;if(_0x2f3348===_0x5bbf1d)break;else _0x3b04b6['push'](_0x3b04b6['shift']());}catch(_0x248549){_0x3b04b6['push'](_0x3b04b6['shift']());}}}(a206_0x2cf0,0x3ad15));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a206_0x5f2878(0xf6),a206_0x5f2878(0x104),'sh','fish','ksh',a206_0x5f2878(0xf7),'csh',a206_0x5f2878(0xf5),a206_0x5f2878(0x10d),a206_0x5f2878(0x114),'nu',a206_0x5f2878(0xe8),a206_0x5f2878(0xec),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a206_0x5f2878(0x11d),a206_0x5f2878(0xfe),a206_0x5f2878(0xe7),a206_0x5f2878(0x11e),'treasure\x20studio']);function getProcessInfoWindows(_0x2c44f4){const _0x32c172=a206_0x5f2878;try{if(!Number[_0x32c172(0x120)](_0x2c44f4)||_0x2c44f4<=0x0)return null;const _0x5f50fc=_0x32c172(0x107)+_0x2c44f4+_0x32c172(0x119),_0x210f3c=execSync(_0x32c172(0x11f)+_0x5f50fc+'\x22',{'encoding':_0x32c172(0xf2),'windowsHide':!![],'stdio':[_0x32c172(0x103),'pipe',_0x32c172(0x103)]})['trim']();if(!_0x210f3c)return null;const [_0x3f7157,..._0x517807]=_0x210f3c[_0x32c172(0x116)](','),_0x1f5864=parseInt(_0x3f7157,0xa),_0x18af6d=_0x517807['join'](',')[_0x32c172(0x112)]();if(isNaN(_0x1f5864)||!_0x18af6d)return null;return{'pid':_0x2c44f4,'ppid':_0x1f5864,'comm':_0x18af6d[_0x32c172(0xe9)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x61dc04){const _0x29b5a6=a206_0x5f2878;try{const _0x1e27e2=0x400000;if(!Number[_0x29b5a6(0x120)](_0x61dc04)||_0x61dc04<=0x0||_0x61dc04>_0x1e27e2)return null;const _0x5093c2=execSync(_0x29b5a6(0x11b)+_0x61dc04+_0x29b5a6(0xeb),{'encoding':'utf-8','stdio':_0x29b5a6(0x103)})[_0x29b5a6(0x112)](),[_0x4ffa8e,..._0x4727b5]=_0x5093c2[_0x29b5a6(0x116)](/\s+/),_0x384611=parseInt(_0x4ffa8e,0xa),_0x520891=_0x4727b5[_0x29b5a6(0x102)]('\x20');if(isNaN(_0x384611))return null;return{'pid':_0x61dc04,'ppid':_0x384611,'comm':_0x520891};}catch{return null;}}function getProcessInfo(_0x206c7e){const _0x42680f=a206_0x5f2878;if(process[_0x42680f(0xe6)]===_0x42680f(0xef))return getProcessInfoWindows(_0x206c7e);return getProcessInfoPosix(_0x206c7e);}function getBasename(_0x122493){const _0x446d60=a206_0x5f2878;return _0x122493[_0x446d60(0xe9)](/^-/,'')['split']('/')[_0x446d60(0x10e)]()?.[_0x446d60(0xee)]()||'';}function isShell(_0x24f344){const _0x54e517=a206_0x5f2878;return SHELL_NAMES[_0x54e517(0x111)](getBasename(_0x24f344));}function isEphemeralShellSpawner(_0x46e3d1){const _0x2dc546=a206_0x5f2878;return EPHEMERAL_SHELL_SPAWNERS[_0x2dc546(0x111)](getBasename(_0x46e3d1));}let cachedShellPID;function findShellPID(){const _0x2e11c1=a206_0x5f2878;if(process[_0x2e11c1(0x100)]===undefined)return process[_0x2e11c1(0xff)];let _0x33dd6c=process[_0x2e11c1(0x100)];const _0x2f1456=0xa;let _0x34e274=0x0;while(_0x34e274<_0x2f1456){const _0x5e662e=getProcessInfo(_0x33dd6c);if(!_0x5e662e)break;if(isShell(_0x5e662e[_0x2e11c1(0x117)])){const _0xcadadf=getProcessInfo(_0x5e662e[_0x2e11c1(0x100)]);if(_0xcadadf&&isEphemeralShellSpawner(_0xcadadf['comm'])){_0x33dd6c=_0x5e662e[_0x2e11c1(0x100)],_0x34e274++;continue;}return _0x5e662e[_0x2e11c1(0xff)];}if(_0x5e662e[_0x2e11c1(0x100)]===0x0||_0x5e662e['ppid']===0x1){if(isShell(_0x5e662e[_0x2e11c1(0x117)]))return _0x5e662e[_0x2e11c1(0xff)];break;}_0x33dd6c=_0x5e662e[_0x2e11c1(0x100)],_0x34e274++;}return process['ppid']!==undefined?process['ppid']:process[_0x2e11c1(0xff)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a206_0x2cf0(){const _0x338aea=['start','split','comm','59483vIUjOg','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','Unsupported\x20protocol:\x20','ps\x20-p\x20','1755RKFSnL','claude','electron','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','isInteger','kill','protocol','platform','cursor','ion','replace','data','\x20-o\x20ppid=,comm=','elvish','toString','toLowerCase','win32','ignore','90mMrjGa','utf-8','http:','unref','dash','bash','tcsh','362936NVgiJb','open','4572ARbaaj','cmd.exe','stdout','51583CqakGc','code','pid','ppid','330453lErEVb','join','pipe','zsh','exit','test','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','16bpbRcU','darwin','40vAzaad','which','xdg-open','pwsh','pop','232443yfygUi','4238938DOXCtR','has','trim','error','powershell'];a206_0x2cf0=function(){return _0x338aea;};return a206_0x2cf0();}export function clearPPIDCache(){cachedShellPID=undefined;}function a206_0x34f6(_0x389f08,_0x36bb64){_0x389f08=_0x389f08-0xe5;const _0x2cf0c1=a206_0x2cf0();let _0x34f62b=_0x2cf0c1[_0x389f08];return _0x34f62b;}export function isProcessRunning(_0x57545e){const _0x4bd530=a206_0x5f2878;if(!Number[_0x4bd530(0x120)](_0x57545e)||_0x57545e<=0x0)return![];try{return process[_0x4bd530(0x121)](_0x57545e,0x0),!![];}catch{return![];}}export function openBrowser(_0x4a301e){const _0x272413=a206_0x5f2878;let _0x4be65b;try{_0x4be65b=new URL(_0x4a301e);}catch{throw new Error('Invalid\x20URL:\x20'+_0x4a301e);}if(_0x4be65b[_0x272413(0xe5)]!==_0x272413(0xf3)&&_0x4be65b[_0x272413(0xe5)]!=='https:')throw new Error(_0x272413(0x11a)+_0x4be65b['protocol']);const _0x31858d=_0x4be65b['href'],_0x32a501=process['platform'];if(_0x32a501===_0x272413(0xef))spawn(_0x272413(0xfb),['/c',_0x272413(0x115),'',_0x31858d],{'detached':!![],'stdio':_0x272413(0xf0)})[_0x272413(0xf4)]();else{const _0xe9e3b0=_0x32a501===_0x272413(0x109)?_0x272413(0xf9):_0x272413(0x10c);spawn(_0xe9e3b0,[_0x31858d],{'detached':!![],'stdio':'ignore'})[_0x272413(0xf4)]();}}export function isWindows(){const _0x5793fe=a206_0x5f2878;return process[_0x5793fe(0xe6)]==='win32';}export function getCrossSpawnOptions(_0x42c811){return{..._0x42c811??{},'shell':isWindows()};}export function escapeWindowsArg(_0xc2e08a){const _0x414b0d=a206_0x5f2878;if(!/[ \t"&|<>^%!`\r\n]/[_0x414b0d(0x106)](_0xc2e08a))return _0xc2e08a;const _0x337986=_0xc2e08a[_0x414b0d(0xe9)](/"/g,'\x22\x22');return'\x22'+_0x337986+'\x22';}export function crossSpawn(_0x2cdbc2,_0x2711f9,_0x306f65){const _0x52c88d=a206_0x5f2878;if(isWindows()){const _0x597ec2=escapeWindowsArg(_0x2cdbc2),_0x32f62d=_0x2711f9['map'](escapeWindowsArg),_0x7f1721=[_0x597ec2,..._0x32f62d][_0x52c88d(0x102)]('\x20');return spawn(_0x7f1721,[],{..._0x306f65,'shell':!![]});}return spawn(_0x2cdbc2,_0x2711f9,{..._0x306f65,'shell':![]});}export function gracefulExit(_0x496a48=0x0){const _0x221ce1=a206_0x5f2878;isWindows()?setTimeout(()=>process[_0x221ce1(0x105)](_0x496a48),0x32):process['exit'](_0x496a48);}export function findExecutable(_0x2eb759,_0xd09b14=0x1388){return new Promise(_0x5cb4a1=>{const _0x1f3f45=a206_0x34f6,_0x49334b=isWindows()?'where.exe':_0x1f3f45(0x10b);let _0x5bbf95=![];const _0x5ba5aa=crossSpawn(_0x49334b,[_0x2eb759],{'stdio':_0x1f3f45(0x103),'shell':isWindows()}),_0x5b1688=setTimeout(()=>{!_0x5bbf95&&(_0x5bbf95=!![],_0x5ba5aa['kill'](),_0x5cb4a1(null));},_0xd09b14);let _0x634074='';_0x5ba5aa[_0x1f3f45(0xfc)]?.['on'](_0x1f3f45(0xea),_0x277af7=>{const _0x2dbec9=_0x1f3f45;_0x634074+=_0x277af7[_0x2dbec9(0xed)]();}),_0x5ba5aa['stderr']?.['on']('data',()=>{}),_0x5ba5aa['on']('exit',_0xcdf8e2=>{const _0x213e9c=_0x1f3f45;if(_0x5bbf95)return;_0x5bbf95=!![],clearTimeout(_0x5b1688);if(_0xcdf8e2===0x0&&_0x634074[_0x213e9c(0x112)]()){const _0x5a8115=_0x634074['trim']()[_0x213e9c(0x116)](/\r?\n/)[0x0];_0x5cb4a1(_0x5a8115);}else _0x5cb4a1(null);}),_0x5ba5aa['on'](_0x1f3f45(0x113),()=>{if(_0x5bbf95)return;_0x5bbf95=!![],clearTimeout(_0x5b1688),_0x5cb4a1(null);});});}
@@ -1 +1 @@
1
- (function(_0x3c377d,_0xe4aa0a){const _0x230f05=a207_0x3a8c,_0x349365=_0x3c377d();while(!![]){try{const _0x10b5e3=parseInt(_0x230f05(0x116))/0x1*(-parseInt(_0x230f05(0x105))/0x2)+-parseInt(_0x230f05(0x111))/0x3+parseInt(_0x230f05(0x10f))/0x4*(-parseInt(_0x230f05(0x114))/0x5)+-parseInt(_0x230f05(0x10d))/0x6*(parseInt(_0x230f05(0x112))/0x7)+parseInt(_0x230f05(0x11b))/0x8*(parseInt(_0x230f05(0x115))/0x9)+-parseInt(_0x230f05(0x113))/0xa*(-parseInt(_0x230f05(0x11e))/0xb)+parseInt(_0x230f05(0x109))/0xc;if(_0x10b5e3===_0xe4aa0a)break;else _0x349365['push'](_0x349365['shift']());}catch(_0x5c511f){_0x349365['push'](_0x349365['shift']());}}}(a207_0x3fe1,0x662a5));import*as a207_0x5885d5 from'readline';function a207_0x3a8c(_0x5df8c1,_0x174f7d){_0x5df8c1=_0x5df8c1-0x103;const _0x3fe1a7=a207_0x3fe1();let _0x3a8c34=_0x3fe1a7[_0x5df8c1];return _0x3a8c34;}function a207_0x3fe1(){const _0x25f5c3=['12HzkUJL','isTTY','4QBvohk','setEncoding','1739328OYBDpa','716051fhGCoz','112370aeVDBE','706595qdbHSa','77391uVHDOa','3Sudkdk','stdin','setRawMode','utf8','data','24JFlAti','\x20[y/N]\x20','stderr','605qGIVeD','createInterface','pause','close','307218CYHqKV','question','yes','toLowerCase','13933740UUhOiV','resume','write','stdout'];a207_0x3fe1=function(){return _0x25f5c3;};return a207_0x3fe1();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x3a1f2f=a207_0x3a8c;return process[_0x3a1f2f(0x117)][_0x3a1f2f(0x10e)]===!![];}export async function confirm(_0x5531f4){const _0xd4df6a=a207_0x3a8c,_0x281929=a207_0x5885d5[_0xd4df6a(0x11f)]({'input':process[_0xd4df6a(0x117)],'output':process[_0xd4df6a(0x10c)]});return new Promise(_0x2081d9=>{const _0x1d88c6=_0xd4df6a;_0x281929[_0x1d88c6(0x106)](_0x5531f4+'\x20(y/N):\x20',_0x10ca92=>{const _0x57541e=_0x1d88c6;_0x281929[_0x57541e(0x104)](),_0x2081d9(_0x10ca92[_0x57541e(0x108)]()==='y'||_0x10ca92['toLowerCase']()===_0x57541e(0x107));});});}export async function confirmKey(_0x4d25a0){const _0x392dfb=a207_0x3a8c;if(!process[_0x392dfb(0x117)]['isTTY'])return![];return process[_0x392dfb(0x11d)][_0x392dfb(0x10b)](_0x4d25a0+_0x392dfb(0x11c)),new Promise(_0x571f7b=>{const _0x1400eb=_0x392dfb,_0x5e1553=process[_0x1400eb(0x117)];_0x5e1553[_0x1400eb(0x118)](!![]),_0x5e1553[_0x1400eb(0x10a)](),_0x5e1553[_0x1400eb(0x110)](_0x1400eb(0x119));const _0x9c330=_0xa91bca=>{const _0x365ddf=_0x1400eb;_0x5e1553[_0x365ddf(0x118)](![]),_0x5e1553[_0x365ddf(0x103)](),_0x5e1553['removeListener'](_0x365ddf(0x11a),_0x9c330);if(_0xa91bca==='\x1b'){process[_0x365ddf(0x11d)][_0x365ddf(0x10b)]('\x0a'),_0x571f7b(![]);return;}_0xa91bca==='\x03'&&(process[_0x365ddf(0x11d)]['write']('\x0a'),gracefulExit(0x82));if(_0xa91bca[_0x365ddf(0x108)]()==='y'){process[_0x365ddf(0x11d)][_0x365ddf(0x10b)]('y\x0a'),_0x571f7b(!![]);return;}process[_0x365ddf(0x11d)][_0x365ddf(0x10b)]('\x0a'),_0x571f7b(![]);};_0x5e1553['on'](_0x1400eb(0x11a),_0x9c330);});}
1
+ (function(_0x310e41,_0x4907aa){const _0x3dcba9=a207_0x2817,_0x4af8fe=_0x310e41();while(!![]){try{const _0x4797db=parseInt(_0x3dcba9(0x196))/0x1+-parseInt(_0x3dcba9(0x197))/0x2+-parseInt(_0x3dcba9(0x187))/0x3*(parseInt(_0x3dcba9(0x18e))/0x4)+parseInt(_0x3dcba9(0x189))/0x5+parseInt(_0x3dcba9(0x18d))/0x6+parseInt(_0x3dcba9(0x188))/0x7*(-parseInt(_0x3dcba9(0x195))/0x8)+parseInt(_0x3dcba9(0x199))/0x9*(parseInt(_0x3dcba9(0x193))/0xa);if(_0x4797db===_0x4907aa)break;else _0x4af8fe['push'](_0x4af8fe['shift']());}catch(_0x1e6ec8){_0x4af8fe['push'](_0x4af8fe['shift']());}}}(a207_0x18be,0x71f27));import*as a207_0x58d27e from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x1dd12d=a207_0x2817;return process[_0x1dd12d(0x19a)]['isTTY']===!![];}function a207_0x18be(){const _0x438621=['stdout','toLowerCase','996fetLDL','7FMUEGv','1164200hMhkDV','write','question','yes','4527768yCmhdN','10852MEcxDb','data','removeListener','isTTY','\x20(y/N):\x20','170jsWpUW','close','770344uwjUMI','772388PEoKmQ','1785606bETbhZ','createInterface','315891lDXUHt','stdin','setRawMode','stderr','setEncoding','resume','\x20[y/N]\x20'];a207_0x18be=function(){return _0x438621;};return a207_0x18be();}export async function confirm(_0x1d30d6){const _0x575c07=a207_0x2817,_0x54d1b4=a207_0x58d27e[_0x575c07(0x198)]({'input':process[_0x575c07(0x19a)],'output':process[_0x575c07(0x1a0)]});return new Promise(_0x38daaa=>{const _0x2dbf87=_0x575c07;_0x54d1b4[_0x2dbf87(0x18b)](_0x1d30d6+_0x2dbf87(0x192),_0x18a4a4=>{const _0x151b11=_0x2dbf87;_0x54d1b4[_0x151b11(0x194)](),_0x38daaa(_0x18a4a4[_0x151b11(0x186)]()==='y'||_0x18a4a4[_0x151b11(0x186)]()===_0x151b11(0x18c));});});}function a207_0x2817(_0x28c0d8,_0x43f8d3){_0x28c0d8=_0x28c0d8-0x186;const _0x18be1c=a207_0x18be();let _0x281776=_0x18be1c[_0x28c0d8];return _0x281776;}export async function confirmKey(_0x3b6f3d){const _0x54261d=a207_0x2817;if(!process['stdin'][_0x54261d(0x191)])return![];return process[_0x54261d(0x19c)][_0x54261d(0x18a)](_0x3b6f3d+_0x54261d(0x19f)),new Promise(_0x503b35=>{const _0x5c16d6=_0x54261d,_0x184741=process[_0x5c16d6(0x19a)];_0x184741[_0x5c16d6(0x19b)](!![]),_0x184741[_0x5c16d6(0x19e)](),_0x184741[_0x5c16d6(0x19d)]('utf8');const _0x1ae10c=_0x16f998=>{const _0x48edeb=_0x5c16d6;_0x184741[_0x48edeb(0x19b)](![]),_0x184741['pause'](),_0x184741[_0x48edeb(0x190)](_0x48edeb(0x18f),_0x1ae10c);if(_0x16f998==='\x1b'){process[_0x48edeb(0x19c)][_0x48edeb(0x18a)]('\x0a'),_0x503b35(![]);return;}_0x16f998==='\x03'&&(process[_0x48edeb(0x19c)][_0x48edeb(0x18a)]('\x0a'),gracefulExit(0x82));if(_0x16f998[_0x48edeb(0x186)]()==='y'){process[_0x48edeb(0x19c)][_0x48edeb(0x18a)]('y\x0a'),_0x503b35(!![]);return;}process['stderr'][_0x48edeb(0x18a)]('\x0a'),_0x503b35(![]);};_0x184741['on'](_0x5c16d6(0x18f),_0x1ae10c);});}
@@ -1 +1 @@
1
- (function(_0x316107,_0x1d2948){const _0x36a7ab=a208_0xe735,_0x599153=_0x316107();while(!![]){try{const _0x33babb=-parseInt(_0x36a7ab(0xaa))/0x1+parseInt(_0x36a7ab(0x98))/0x2*(parseInt(_0x36a7ab(0xa2))/0x3)+parseInt(_0x36a7ab(0xac))/0x4+-parseInt(_0x36a7ab(0xa3))/0x5+-parseInt(_0x36a7ab(0xa7))/0x6*(-parseInt(_0x36a7ab(0x94))/0x7)+-parseInt(_0x36a7ab(0xa0))/0x8+-parseInt(_0x36a7ab(0xaf))/0x9*(parseInt(_0x36a7ab(0x9e))/0xa);if(_0x33babb===_0x1d2948)break;else _0x599153['push'](_0x599153['shift']());}catch(_0x3b0d55){_0x599153['push'](_0x599153['shift']());}}}(a208_0x315b,0x754ad));import a208_0x399e9e from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4090aa,_0x5824ce={}){const _0x3492cc=a208_0xe735,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5824ce;return a208_0x399e9e({'text':_0x4090aa,'color':_0x3492cc(0x96),'stream':process['stderr'],'isEnabled':forceEnabled||process['stderr'][_0x3492cc(0xa6)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a208_0x315b(){const _0x3a4fa6=['isTTY','6VYyWvz','isSpinning','trim','185083GLMwAo','extra','3266888HbaLcy','text','phase','9NUfGOt','4619699MZhzGA','intervalFactory','cyan','floor','150846WyHaSv','replace','...','stop','\x20[Job\x20ID:\x20','toFixed','5375240vgrrSE','clock','626992nNmUWh','start','21oSEwNu','3616150auaPzp','jobId','Processing'];a208_0x315b=function(){return _0x3a4fa6;};return a208_0x315b();}export async function withSpinner(_0x480545,_0x4768a3,_0x3968d6={}){const _0x3760b8=a208_0xe735,_0x4403f4=_0x3968d6['clock']??(()=>Date['now']()),_0x3e275a=createCommandSpinner(_0x480545,_0x3968d6);_0x3e275a[_0x3760b8(0xa1)]();const _0x20edaa=_0x4403f4();try{const _0x2f98f1=await _0x4768a3(),_0x23c9a4=_0x4403f4()-_0x20edaa;return _0x3e275a[_0x3760b8(0x9b)](),{'data':_0x2f98f1,'elapsedMs':_0x23c9a4};}catch(_0x14d887){_0x3e275a[_0x3760b8(0x9b)]();throw _0x14d887;}}function a208_0xe735(_0x30b77f,_0x24df36){_0x30b77f=_0x30b77f-0x94;const _0x315be5=a208_0x315b();let _0xe73534=_0x315be5[_0x30b77f];return _0xe73534;}export async function withProgressSpinner(_0x5081e4,_0x2ac40e,_0x4973cd={}){const _0x34447f=a208_0xe735,_0x3716be=_0x4973cd[_0x34447f(0x9f)]??(()=>Date['now']()),_0x32cec2=_0x4973cd[_0x34447f(0x95)]??setInterval,_0x5dc3de=createCommandSpinner(_0x5081e4,_0x4973cd);_0x5dc3de[_0x34447f(0xa1)]();const _0x3dd250=_0x3716be(),_0x2567c0=_0x5081e4[_0x34447f(0x99)](_0x34447f(0x9a),'')[_0x34447f(0xa9)]()||_0x34447f(0xa5),_0x197875={};let _0x5db9bc=_0x5081e4;const _0x472bc3=()=>{const _0xab9e0c=_0x34447f;if(!_0x5dc3de[_0xab9e0c(0xa8)])return;const _0x15712e=_0x3716be()-_0x3dd250,_0xdb7462=formatElapsed(_0x15712e),_0x29d510=_0x197875[_0xab9e0c(0xae)]?.[_0xab9e0c(0xa9)]()||_0x2567c0,_0x5e6a0c=_0x197875['jobId']?_0xab9e0c(0x9c)+_0x197875[_0xab9e0c(0xa4)]+']':'',_0x5e6187=_0x197875['extra']?'\x20'+_0x197875[_0xab9e0c(0xab)]:'',_0x1b1ffd=_0x29d510+'\x20'+_0xdb7462+_0x5e6187+_0x5e6a0c;_0x1b1ffd!==_0x5db9bc&&_0x1b1ffd[_0xab9e0c(0xa9)]()&&(_0x5dc3de[_0xab9e0c(0xad)]=_0x1b1ffd,_0x5db9bc=_0x1b1ffd);},_0x23676b=_0x32cec2(()=>{_0x472bc3();},0x3e8),_0x4be205={'setPhase':_0x4fc0e4=>{const _0x3be55a=_0x34447f;_0x197875[_0x3be55a(0xae)]=_0x4fc0e4;const _0x1bd70f=_0x4fc0e4?.['trim']()||_0x2567c0,_0x4adb8f=_0x3716be()-_0x3dd250,_0x2a8c57=formatElapsed(_0x4adb8f),_0x2c66f8=_0x197875[_0x3be55a(0xa4)]?_0x3be55a(0x9c)+_0x197875['jobId']+']':'',_0x1b5ce4=_0x197875['extra']?'\x20'+_0x197875['extra']:'',_0x1c7206=_0x1bd70f+'\x20'+_0x2a8c57+_0x1b5ce4+_0x2c66f8;_0x5dc3de['isSpinning']&&_0x1c7206[_0x3be55a(0xa9)]()&&(_0x5dc3de['text']=_0x1c7206,_0x5db9bc=_0x1c7206);},'setJobId':_0x40e89e=>{_0x197875['jobId']=_0x40e89e,_0x472bc3();},'setExtra':_0x5ba83c=>{_0x197875['extra']=_0x5ba83c,_0x472bc3();}};_0x472bc3();try{const _0x4673f7=await _0x2ac40e(_0x4be205),_0x106c64=_0x3716be()-_0x3dd250;return{'data':_0x4673f7,'elapsedMs':_0x106c64};}finally{clearInterval(_0x23676b),_0x5dc3de[_0x34447f(0x9b)]();}}export function formatElapsed(_0x394585){const _0x6d39d7=a208_0xe735,_0x1fd9e3=Math['floor'](_0x394585/0x3e8);if(_0x1fd9e3<0x3c)return(_0x394585/0x3e8)[_0x6d39d7(0x9d)](0x1)+'s';const _0x542a5e=Math[_0x6d39d7(0x97)](_0x1fd9e3/0x3c),_0xde2a0a=_0x1fd9e3%0x3c;if(_0x542a5e<0x3c)return _0x542a5e+'m\x20'+_0xde2a0a+'s';const _0x121209=Math[_0x6d39d7(0x97)](_0x542a5e/0x3c),_0x143602=_0x542a5e%0x3c;return _0x121209+'h\x20'+_0x143602+'m';}
1
+ (function(_0x103869,_0x336f47){const _0x24ee14=a208_0x2e7e,_0x1db123=_0x103869();while(!![]){try{const _0xbb332c=-parseInt(_0x24ee14(0xb4))/0x1+parseInt(_0x24ee14(0xb5))/0x2*(parseInt(_0x24ee14(0xb1))/0x3)+-parseInt(_0x24ee14(0xaa))/0x4+-parseInt(_0x24ee14(0xba))/0x5*(parseInt(_0x24ee14(0xad))/0x6)+-parseInt(_0x24ee14(0xb6))/0x7+-parseInt(_0x24ee14(0xa7))/0x8+parseInt(_0x24ee14(0xb2))/0x9;if(_0xbb332c===_0x336f47)break;else _0x1db123['push'](_0x1db123['shift']());}catch(_0x3960a3){_0x1db123['push'](_0x1db123['shift']());}}}(a208_0x3f52,0xa461a));import a208_0x551dbe from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a208_0x2e7e(_0x2e1d81,_0xc59b0a){_0x2e1d81=_0x2e1d81-0xa3;const _0x3f5216=a208_0x3f52();let _0x2e7e5b=_0x3f5216[_0x2e1d81];return _0x2e7e5b;}export function createCommandSpinner(_0x4b464c,_0x5d29a7={}){const _0x5b9009=a208_0x2e7e,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5d29a7;return a208_0x551dbe({'text':_0x4b464c,'color':_0x5b9009(0xb7),'stream':process[_0x5b9009(0xa3)],'isEnabled':forceEnabled||process['stderr']['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x1132b9,_0x463e9c,_0x13f5dc={}){const _0x447055=a208_0x2e7e,_0x39d5e1=_0x13f5dc['clock']??(()=>Date[_0x447055(0xa9)]()),_0x913d1e=createCommandSpinner(_0x1132b9,_0x13f5dc);_0x913d1e['start']();const _0x4e3a16=_0x39d5e1();try{const _0x3ebd6c=await _0x463e9c(),_0x201328=_0x39d5e1()-_0x4e3a16;return _0x913d1e[_0x447055(0xaf)](),{'data':_0x3ebd6c,'elapsedMs':_0x201328};}catch(_0x60159e){_0x913d1e[_0x447055(0xaf)]();throw _0x60159e;}}export async function withProgressSpinner(_0x12c114,_0x1b7f51,_0x376ae2={}){const _0x26413a=a208_0x2e7e,_0x31d3c7=_0x376ae2[_0x26413a(0xb9)]??(()=>Date[_0x26413a(0xa9)]()),_0x4868dd=_0x376ae2[_0x26413a(0xa6)]??setInterval,_0x53cc00=createCommandSpinner(_0x12c114,_0x376ae2);_0x53cc00[_0x26413a(0xa5)]();const _0x978c0d=_0x31d3c7(),_0x27db24=_0x12c114['replace']('...','')[_0x26413a(0xac)]()||_0x26413a(0xb3),_0x1968de={};let _0x322286=_0x12c114;const _0x1a498e=()=>{const _0x542a25=_0x26413a;if(!_0x53cc00['isSpinning'])return;const _0x3b90ac=_0x31d3c7()-_0x978c0d,_0x223769=formatElapsed(_0x3b90ac),_0x3725b2=_0x1968de[_0x542a25(0xa4)]?.[_0x542a25(0xac)]()||_0x27db24,_0x17b2f1=_0x1968de[_0x542a25(0xbb)]?_0x542a25(0xb8)+_0x1968de[_0x542a25(0xbb)]+']':'',_0x1860cd=_0x1968de[_0x542a25(0xab)]?'\x20'+_0x1968de[_0x542a25(0xab)]:'',_0x57162e=_0x3725b2+'\x20'+_0x223769+_0x1860cd+_0x17b2f1;_0x57162e!==_0x322286&&_0x57162e[_0x542a25(0xac)]()&&(_0x53cc00[_0x542a25(0xa8)]=_0x57162e,_0x322286=_0x57162e);},_0x453af4=_0x4868dd(()=>{_0x1a498e();},0x3e8),_0x18b322={'setPhase':_0x20f55e=>{const _0x41486d=_0x26413a;_0x1968de[_0x41486d(0xa4)]=_0x20f55e;const _0x871ec8=_0x20f55e?.['trim']()||_0x27db24,_0x27bd63=_0x31d3c7()-_0x978c0d,_0x26ea25=formatElapsed(_0x27bd63),_0x8c441=_0x1968de[_0x41486d(0xbb)]?'\x20[Job\x20ID:\x20'+_0x1968de[_0x41486d(0xbb)]+']':'',_0x178a13=_0x1968de[_0x41486d(0xab)]?'\x20'+_0x1968de[_0x41486d(0xab)]:'',_0x395a54=_0x871ec8+'\x20'+_0x26ea25+_0x178a13+_0x8c441;_0x53cc00[_0x41486d(0xb0)]&&_0x395a54[_0x41486d(0xac)]()&&(_0x53cc00['text']=_0x395a54,_0x322286=_0x395a54);},'setJobId':_0x1142bb=>{_0x1968de['jobId']=_0x1142bb,_0x1a498e();},'setExtra':_0x28b7e8=>{const _0x36f6e5=_0x26413a;_0x1968de[_0x36f6e5(0xab)]=_0x28b7e8,_0x1a498e();}};_0x1a498e();try{const _0x23ff0d=await _0x1b7f51(_0x18b322),_0x5d6eba=_0x31d3c7()-_0x978c0d;return{'data':_0x23ff0d,'elapsedMs':_0x5d6eba};}finally{clearInterval(_0x453af4),_0x53cc00[_0x26413a(0xaf)]();}}function a208_0x3f52(){const _0xc211ee=['clock','12725REGSby','jobId','floor','stderr','phase','start','intervalFactory','451720aLjJdB','text','now','5233268RsOduI','extra','trim','54NykOBo','toFixed','stop','isSpinning','1941OwObdE','26629209nCZxqb','Processing','887081CHaYPD','2474ZLRyEr','5677462bOYfHX','cyan','\x20[Job\x20ID:\x20'];a208_0x3f52=function(){return _0xc211ee;};return a208_0x3f52();}export function formatElapsed(_0x38b580){const _0x3b864e=a208_0x2e7e,_0x58041a=Math[_0x3b864e(0xbc)](_0x38b580/0x3e8);if(_0x58041a<0x3c)return(_0x38b580/0x3e8)[_0x3b864e(0xae)](0x1)+'s';const _0x2ff814=Math[_0x3b864e(0xbc)](_0x58041a/0x3c),_0x588413=_0x58041a%0x3c;if(_0x2ff814<0x3c)return _0x2ff814+'m\x20'+_0x588413+'s';const _0xc85939=Math['floor'](_0x2ff814/0x3c),_0x1c0837=_0x2ff814%0x3c;return _0xc85939+'h\x20'+_0x1c0837+'m';}
@@ -1 +1 @@
1
- function a209_0x2640(_0x52969e,_0x4d39a9){_0x52969e=_0x52969e-0xad;const _0x13ffba=a209_0x13ff();let _0x264020=_0x13ffba[_0x52969e];return _0x264020;}(function(_0x3ac546,_0x5d8f82){const _0x31aa13=a209_0x2640,_0x417745=_0x3ac546();while(!![]){try{const _0x5fb57e=-parseInt(_0x31aa13(0xb0))/0x1+-parseInt(_0x31aa13(0xc3))/0x2+parseInt(_0x31aa13(0xb4))/0x3*(parseInt(_0x31aa13(0xc4))/0x4)+parseInt(_0x31aa13(0xb9))/0x5+parseInt(_0x31aa13(0xc5))/0x6*(parseInt(_0x31aa13(0xb7))/0x7)+parseInt(_0x31aa13(0xb1))/0x8+parseInt(_0x31aa13(0xbe))/0x9;if(_0x5fb57e===_0x5d8f82)break;else _0x417745['push'](_0x417745['shift']());}catch(_0x10239b){_0x417745['push'](_0x417745['shift']());}}}(a209_0x13ff,0xbd071));export async function*parseSSEStream(_0xe728be,_0x1b21f4){const _0x33b2b4=a209_0x2640;if(!_0xe728be['body'])throw new Error(_0x33b2b4(0xc1));const _0x2f1285=_0xe728be[_0x33b2b4(0xb3)]['getReader'](),_0x32d1ac=new TextDecoder();let _0x40f10e='',_0x2c19b9={};try{while(!![]){const {done:_0x3d2d91,value:_0x3bf788}=await _0x2f1285[_0x33b2b4(0xb2)]();if(_0x3d2d91){if(_0x2c19b9['data']){_0x1b21f4?.[_0x33b2b4(0xb6)](_0x33b2b4(0xae)+_0x2c19b9[_0x33b2b4(0xbb)]);const _0x64b3a1=parseSSEData(_0x2c19b9[_0x33b2b4(0xbb)]);yield _0x64b3a1;}break;}_0x40f10e+=_0x32d1ac[_0x33b2b4(0xb8)](_0x3bf788,{'stream':!![]});const _0x511dd8=_0x40f10e[_0x33b2b4(0xad)]('\x0a');_0x40f10e=_0x511dd8[_0x33b2b4(0xbc)]()||'';for(const _0xad9c44 of _0x511dd8){if(_0xad9c44[_0x33b2b4(0xbd)]()===''){if(_0x2c19b9[_0x33b2b4(0xbb)]){_0x1b21f4?.[_0x33b2b4(0xb6)](_0x33b2b4(0xae)+_0x2c19b9[_0x33b2b4(0xbb)]);const _0x2548e4=parseSSEData(_0x2c19b9['data']);yield _0x2548e4,_0x2c19b9={};}continue;}if(_0xad9c44[_0x33b2b4(0xc2)](':'))continue;const _0x5069eb=_0xad9c44[_0x33b2b4(0xc6)](':');if(_0x5069eb===-0x1)continue;const _0x9b3799=_0xad9c44[_0x33b2b4(0xaf)](0x0,_0x5069eb);let _0x1fbd74=_0xad9c44[_0x33b2b4(0xaf)](_0x5069eb+0x1);_0x1fbd74[_0x33b2b4(0xc2)]('\x20')&&(_0x1fbd74=_0x1fbd74[_0x33b2b4(0xaf)](0x1));switch(_0x9b3799){case _0x33b2b4(0xba):_0x2c19b9[_0x33b2b4(0xba)]=_0x1fbd74;break;case _0x33b2b4(0xbb):_0x2c19b9[_0x33b2b4(0xbb)]=_0x2c19b9[_0x33b2b4(0xbb)]?_0x2c19b9[_0x33b2b4(0xbb)]+'\x0a'+_0x1fbd74:_0x1fbd74;break;case'id':_0x2c19b9['id']=_0x1fbd74;break;}}}}finally{_0x2f1285[_0x33b2b4(0xc0)]();}}function parseSSEData(_0x5477a9){const _0x1c8c60=a209_0x2640;try{return JSON[_0x1c8c60(0xbf)](_0x5477a9);}catch(_0x3a5641){throw new Error(_0x1c8c60(0xb5)+_0x5477a9,{'cause':_0x3a5641});}}function a209_0x13ff(){const _0x546eb5=['trim','11118492uqSZoh','parse','releaseLock','Response\x20body\x20is\x20null','startsWith','2850598pXWDXn','50348NUwqdh','18uhXxwz','indexOf','split','[LLM\x20API\x20SSE]\x20','slice','1014725HemoAt','5716464tSYByc','read','body','63etOaWa','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','debug','1281413DRWwZB','decode','2254155fwtzrw','event','data','pop'];a209_0x13ff=function(){return _0x546eb5;};return a209_0x13ff();}
1
+ (function(_0x28063e,_0x421a55){const _0x377dab=a209_0x4feb,_0xf92637=_0x28063e();while(!![]){try{const _0x130233=-parseInt(_0x377dab(0x162))/0x1*(-parseInt(_0x377dab(0x164))/0x2)+-parseInt(_0x377dab(0x15d))/0x3+-parseInt(_0x377dab(0x168))/0x4*(-parseInt(_0x377dab(0x159))/0x5)+parseInt(_0x377dab(0x16f))/0x6*(parseInt(_0x377dab(0x15c))/0x7)+parseInt(_0x377dab(0x169))/0x8*(-parseInt(_0x377dab(0x165))/0x9)+parseInt(_0x377dab(0x157))/0xa+-parseInt(_0x377dab(0x15e))/0xb*(parseInt(_0x377dab(0x16a))/0xc);if(_0x130233===_0x421a55)break;else _0xf92637['push'](_0xf92637['shift']());}catch(_0x26f8e6){_0xf92637['push'](_0xf92637['shift']());}}}(a209_0x1f29,0xa5969));function a209_0x1f29(){const _0x56fadd=['split','6AKRpVi','9415590mjXYLb','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','10VHhKLb','startsWith','slice','6236118RfipsA','3100893fmqsWY','726132nydGTK','debug','indexOf','body','235rlVXHO','pop','4872wfaEtv','2351547PrSEgm','[LLM\x20API\x20SSE]\x20','trim','709768nuduUK','24mTUHPu','48CSxNxv','event','data','parse'];a209_0x1f29=function(){return _0x56fadd;};return a209_0x1f29();}function a209_0x4feb(_0x137575,_0x1c7098){_0x137575=_0x137575-0x157;const _0x1f298e=a209_0x1f29();let _0x4feb95=_0x1f298e[_0x137575];return _0x4feb95;}export async function*parseSSEStream(_0x347bf3,_0x22af11){const _0x5f24f7=a209_0x4feb;if(!_0x347bf3[_0x5f24f7(0x161)])throw new Error('Response\x20body\x20is\x20null');const _0x463832=_0x347bf3[_0x5f24f7(0x161)]['getReader'](),_0x42c4e2=new TextDecoder();let _0x703ddc='',_0x42ee73={};try{while(!![]){const {done:_0x3fca60,value:_0x3317ef}=await _0x463832['read']();if(_0x3fca60){if(_0x42ee73[_0x5f24f7(0x16c)]){_0x22af11?.[_0x5f24f7(0x15f)](_0x5f24f7(0x166)+_0x42ee73[_0x5f24f7(0x16c)]);const _0x4d5295=parseSSEData(_0x42ee73[_0x5f24f7(0x16c)]);yield _0x4d5295;}break;}_0x703ddc+=_0x42c4e2['decode'](_0x3317ef,{'stream':!![]});const _0x4f2ee5=_0x703ddc[_0x5f24f7(0x16e)]('\x0a');_0x703ddc=_0x4f2ee5[_0x5f24f7(0x163)]()||'';for(const _0x52d678 of _0x4f2ee5){if(_0x52d678[_0x5f24f7(0x167)]()===''){if(_0x42ee73[_0x5f24f7(0x16c)]){_0x22af11?.[_0x5f24f7(0x15f)](_0x5f24f7(0x166)+_0x42ee73[_0x5f24f7(0x16c)]);const _0x5bd7fb=parseSSEData(_0x42ee73[_0x5f24f7(0x16c)]);yield _0x5bd7fb,_0x42ee73={};}continue;}if(_0x52d678[_0x5f24f7(0x15a)](':'))continue;const _0x13fcec=_0x52d678[_0x5f24f7(0x160)](':');if(_0x13fcec===-0x1)continue;const _0xc7696d=_0x52d678[_0x5f24f7(0x15b)](0x0,_0x13fcec);let _0x401f32=_0x52d678[_0x5f24f7(0x15b)](_0x13fcec+0x1);_0x401f32['startsWith']('\x20')&&(_0x401f32=_0x401f32[_0x5f24f7(0x15b)](0x1));switch(_0xc7696d){case _0x5f24f7(0x16b):_0x42ee73[_0x5f24f7(0x16b)]=_0x401f32;break;case _0x5f24f7(0x16c):_0x42ee73[_0x5f24f7(0x16c)]=_0x42ee73[_0x5f24f7(0x16c)]?_0x42ee73[_0x5f24f7(0x16c)]+'\x0a'+_0x401f32:_0x401f32;break;case'id':_0x42ee73['id']=_0x401f32;break;}}}}finally{_0x463832['releaseLock']();}}function parseSSEData(_0x2355bc){const _0x3a8629=a209_0x4feb;try{return JSON[_0x3a8629(0x16d)](_0x2355bc);}catch(_0x956cc6){throw new Error(_0x3a8629(0x158)+_0x2355bc,{'cause':_0x956cc6});}}
@@ -1 +1 @@
1
- function a210_0x3b07(_0x90092d,_0x401605){_0x90092d=_0x90092d-0x186;const _0x424dda=a210_0x424d();let _0x3b07a4=_0x424dda[_0x90092d];return _0x3b07a4;}(function(_0xfc2bdd,_0x1e8a23){const _0x1e1f41=a210_0x3b07,_0x305e01=_0xfc2bdd();while(!![]){try{const _0x66b706=-parseInt(_0x1e1f41(0x188))/0x1+parseInt(_0x1e1f41(0x18a))/0x2+-parseInt(_0x1e1f41(0x18d))/0x3*(parseInt(_0x1e1f41(0x18b))/0x4)+parseInt(_0x1e1f41(0x19b))/0x5*(parseInt(_0x1e1f41(0x194))/0x6)+-parseInt(_0x1e1f41(0x197))/0x7*(-parseInt(_0x1e1f41(0x18f))/0x8)+-parseInt(_0x1e1f41(0x187))/0x9*(parseInt(_0x1e1f41(0x192))/0xa)+-parseInt(_0x1e1f41(0x18e))/0xb*(-parseInt(_0x1e1f41(0x198))/0xc);if(_0x66b706===_0x1e8a23)break;else _0x305e01['push'](_0x305e01['shift']());}catch(_0x97ef2f){_0x305e01['push'](_0x305e01['shift']());}}}(a210_0x424d,0x8f454));import a210_0x24bbd8 from'string-width';export function stringWidth(_0x2ec233){return a210_0x24bbd8(_0x2ec233);}function a210_0x424d(){const _0x468196=['1993962eiOZZO','132qoYbzr','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','99255FCLCvj','15377417oQRqkq','6756664hEBYwT','replace','trim','10nRZqTu','\x5c$&','48fOSqUZ','length','floor','7IWnXIR','12ehToFX','repeat','toLowerCase','84190iIbZLM','substring','slice','toString','padStart','Cannot\x20escape\x20empty\x20string\x20literal','unknown','6927957sneGXJ','925801Pkctek','test'];a210_0x424d=function(){return _0x468196;};return a210_0x424d();}export function padEnd(_0xdc7010,_0x428d1d){const _0x17c3da=stringWidth(_0xdc7010);if(_0x17c3da>=_0x428d1d)return _0xdc7010;return _0xdc7010+'\x20'['repeat'](_0x428d1d-_0x17c3da);}export function padStart(_0x174570,_0x18a8d3){const _0x29a67c=a210_0x3b07,_0x1a9073=stringWidth(_0x174570);if(_0x1a9073>=_0x18a8d3)return _0x174570;return'\x20'[_0x29a67c(0x199)](_0x18a8d3-_0x1a9073)+_0x174570;}export function centerAlign(_0x44df12,_0x16dbf8){const _0x22d564=a210_0x3b07,_0xb5b883=stringWidth(_0x44df12);if(_0xb5b883>_0x16dbf8){if(_0x16dbf8<=0x1)return'…'[_0x22d564(0x19c)](0x0,_0x16dbf8);let _0x47b64b=_0x44df12;while(stringWidth(_0x47b64b+'…')>_0x16dbf8){_0x47b64b=_0x47b64b[_0x22d564(0x19d)](0x0,-0x1);}return _0x47b64b+'…';}if(_0xb5b883===_0x16dbf8)return _0x44df12;const _0x13a0d5=_0x16dbf8-_0xb5b883,_0x2179a5=Math['floor'](_0x13a0d5/0x2),_0x320d94=_0x13a0d5-_0x2179a5;return'\x20'[_0x22d564(0x199)](_0x2179a5)+_0x44df12+'\x20'['repeat'](_0x320d94);}export function escapeStringLiteral(_0x29b333){const _0x3f944a=a210_0x3b07;if(!_0x29b333||_0x29b333[_0x3f944a(0x191)]()['length']===0x0)throw new Error(_0x3f944a(0x1a0));const _0x4010f3=_0x29b333[_0x3f944a(0x190)](/'/g,'\x27\x27');return'\x27'+_0x4010f3+'\x27';}export function globToLike(_0x27c0ab){const _0x186c42=a210_0x3b07;let _0x27cc8d=_0x27c0ab[_0x186c42(0x190)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x186c42(0x190)](/_/g,'\x5c_');return _0x27cc8d=_0x27cc8d[_0x186c42(0x190)](/\*/g,'%')[_0x186c42(0x190)](/\?/g,'_'),_0x27cc8d;}export function buildLikePattern(_0x2cbfd7){const _0x5b47dd=a210_0x3b07;if(!_0x2cbfd7||_0x2cbfd7[_0x5b47dd(0x191)]()[_0x5b47dd(0x195)]===0x0)throw new Error(_0x5b47dd(0x18c));const _0x55b699=globToLike(_0x2cbfd7),_0x1353a5=_0x55b699[_0x5b47dd(0x190)](/'/g,'\x27\x27');return'\x27'+_0x1353a5+'\x27';}export function matchGlobPattern(_0x12175f,_0x596f0e){const _0x2872e4=a210_0x3b07,_0x2d7b32=_0x596f0e[_0x2872e4(0x190)](/[.+^${}()|[\]\\]/g,_0x2872e4(0x193))[_0x2872e4(0x190)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x396da5=new RegExp('^'+_0x2d7b32+'$');return _0x396da5[_0x2872e4(0x189)](_0x12175f);}export function getSanitizedUsername(){const _0x58fc91=a210_0x3b07,_0x3b2e50=process.env.USER||process.env.USERNAME||_0x58fc91(0x186);return _0x3b2e50[_0x58fc91(0x190)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x9b8741=a210_0x3b07,_0x295b46=Math[_0x9b8741(0x196)](Math['random']()*0xfffff);return _0x295b46[_0x9b8741(0x19e)](0x10)[_0x9b8741(0x19f)](0x5,'0');}export function sanitizeFileName(_0x45aca5){const _0x8fe0be=a210_0x3b07;return _0x45aca5[_0x8fe0be(0x19a)]()['replace'](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x8fe0be(0x190)](/-+/g,'-')[_0x8fe0be(0x190)](/^-|-$/g,'');}
1
+ (function(_0x25d0fb,_0x2db7bb){const _0x42f30e=a210_0x4ead,_0x2fc060=_0x25d0fb();while(!![]){try{const _0x106481=-parseInt(_0x42f30e(0x199))/0x1*(-parseInt(_0x42f30e(0x1ab))/0x2)+-parseInt(_0x42f30e(0x198))/0x3+-parseInt(_0x42f30e(0x1a6))/0x4+-parseInt(_0x42f30e(0x19b))/0x5+-parseInt(_0x42f30e(0x1aa))/0x6+parseInt(_0x42f30e(0x1a2))/0x7*(parseInt(_0x42f30e(0x1a1))/0x8)+parseInt(_0x42f30e(0x19f))/0x9*(parseInt(_0x42f30e(0x19d))/0xa);if(_0x106481===_0x2db7bb)break;else _0x2fc060['push'](_0x2fc060['shift']());}catch(_0x4303e1){_0x2fc060['push'](_0x2fc060['shift']());}}}(a210_0x4078,0xa203e));function a210_0x4ead(_0x4c0372,_0x4aa7f9){_0x4c0372=_0x4c0372-0x197;const _0x40789a=a210_0x4078();let _0x4ead84=_0x40789a[_0x4c0372];return _0x4ead84;}import a210_0x503d79 from'string-width';export function stringWidth(_0x4edd08){return a210_0x503d79(_0x4edd08);}export function padEnd(_0x54d155,_0x4e3cdc){const _0x6b6e94=a210_0x4ead,_0x37938e=stringWidth(_0x54d155);if(_0x37938e>=_0x4e3cdc)return _0x54d155;return _0x54d155+'\x20'[_0x6b6e94(0x197)](_0x4e3cdc-_0x37938e);}export function padStart(_0x3fee81,_0x437b5d){const _0x542951=a210_0x4ead,_0x531cff=stringWidth(_0x3fee81);if(_0x531cff>=_0x437b5d)return _0x3fee81;return'\x20'[_0x542951(0x197)](_0x437b5d-_0x531cff)+_0x3fee81;}export function centerAlign(_0x52cd82,_0x5100f5){const _0x32f3c1=a210_0x4ead,_0x42a5dd=stringWidth(_0x52cd82);if(_0x42a5dd>_0x5100f5){if(_0x5100f5<=0x1)return'…'[_0x32f3c1(0x1ac)](0x0,_0x5100f5);let _0xad9d=_0x52cd82;while(stringWidth(_0xad9d+'…')>_0x5100f5){_0xad9d=_0xad9d[_0x32f3c1(0x1a9)](0x0,-0x1);}return _0xad9d+'…';}if(_0x42a5dd===_0x5100f5)return _0x52cd82;const _0x47cbc9=_0x5100f5-_0x42a5dd,_0x44b112=Math[_0x32f3c1(0x1a7)](_0x47cbc9/0x2),_0x1449f7=_0x47cbc9-_0x44b112;return'\x20'['repeat'](_0x44b112)+_0x52cd82+'\x20'[_0x32f3c1(0x197)](_0x1449f7);}export function escapeStringLiteral(_0x567ca6){const _0xdb0f8d=a210_0x4ead;if(!_0x567ca6||_0x567ca6[_0xdb0f8d(0x1a3)]()[_0xdb0f8d(0x1a8)]===0x0)throw new Error(_0xdb0f8d(0x19c));const _0x20ac7e=_0x567ca6[_0xdb0f8d(0x1a5)](/'/g,'\x27\x27');return'\x27'+_0x20ac7e+'\x27';}export function globToLike(_0x1e8d51){const _0x32d802=a210_0x4ead;let _0x12937b=_0x1e8d51[_0x32d802(0x1a5)](/\\/g,'\x5c\x5c')[_0x32d802(0x1a5)](/%/g,'\x5c%')[_0x32d802(0x1a5)](/_/g,'\x5c_');return _0x12937b=_0x12937b[_0x32d802(0x1a5)](/\*/g,'%')[_0x32d802(0x1a5)](/\?/g,'_'),_0x12937b;}export function buildLikePattern(_0x29997b){const _0x5b89e0=a210_0x4ead;if(!_0x29997b||_0x29997b[_0x5b89e0(0x1a3)]()[_0x5b89e0(0x1a8)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x3cffa7=globToLike(_0x29997b),_0x4e5500=_0x3cffa7[_0x5b89e0(0x1a5)](/'/g,'\x27\x27');return'\x27'+_0x4e5500+'\x27';}export function matchGlobPattern(_0x20f5b0,_0x5b2f87){const _0x413d11=a210_0x4ead,_0x1e7609=_0x5b2f87[_0x413d11(0x1a5)](/[.+^${}()|[\]\\]/g,_0x413d11(0x1a0))[_0x413d11(0x1a5)](/\*/g,'.*')[_0x413d11(0x1a5)](/\?/g,'.'),_0x4e61a7=new RegExp('^'+_0x1e7609+'$');return _0x4e61a7['test'](_0x20f5b0);}export function getSanitizedUsername(){const _0x5c0417=a210_0x4ead,_0x9bbbe1=process.env.USER||process.env.USERNAME||'unknown';return _0x9bbbe1['replace'](/[^a-zA-Z0-9]/g,'')[_0x5c0417(0x1ad)]();}export function generateRandomHex(){const _0x4d8473=a210_0x4ead,_0x1bb4d7=Math[_0x4d8473(0x1a7)](Math[_0x4d8473(0x19e)]()*0xfffff);return _0x1bb4d7[_0x4d8473(0x1a4)](0x10)[_0x4d8473(0x19a)](0x5,'0');}function a210_0x4078(){const _0x375234=['substring','toLowerCase','repeat','3263532IuNeSo','131DfnQVh','padStart','4740055TGuRWE','Cannot\x20escape\x20empty\x20string\x20literal','15142430tVbBLq','random','9cdDlvX','\x5c$&','8KiZDOv','2383780oKCJHi','trim','toString','replace','756608ZYqpXO','floor','length','slice','1234890hEfOdm','18926XdTguU'];a210_0x4078=function(){return _0x375234;};return a210_0x4078();}export function sanitizeFileName(_0x424365){const _0x419de8=a210_0x4ead;return _0x424365[_0x419de8(0x1ad)]()[_0x419de8(0x1a5)](/[/\\:*?"<>|]/g,'-')[_0x419de8(0x1a5)](/\s+/g,'-')[_0x419de8(0x1a5)](/-+/g,'-')[_0x419de8(0x1a5)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x1a1749,_0x19061c){const _0x554c9e=a211_0x64eb,_0x4c06a9=_0x1a1749();while(!![]){try{const _0x2f62ac=parseInt(_0x554c9e(0x97))/0x1*(parseInt(_0x554c9e(0xa7))/0x2)+parseInt(_0x554c9e(0x9d))/0x3+-parseInt(_0x554c9e(0x9f))/0x4*(parseInt(_0x554c9e(0xa2))/0x5)+parseInt(_0x554c9e(0xa3))/0x6*(parseInt(_0x554c9e(0x90))/0x7)+parseInt(_0x554c9e(0xa4))/0x8+parseInt(_0x554c9e(0x96))/0x9+-parseInt(_0x554c9e(0xa8))/0xa*(parseInt(_0x554c9e(0x9e))/0xb);if(_0x2f62ac===_0x19061c)break;else _0x4c06a9['push'](_0x4c06a9['shift']());}catch(_0x28d3a4){_0x4c06a9['push'](_0x4c06a9['shift']());}}}(a211_0x1d91,0xd18a1));function hasWildcard(_0x1f4936){const _0x43667f=a211_0x64eb;return _0x1f4936['includes']('*')||_0x1f4936[_0x43667f(0x9b)]('?');}function a211_0x1d91(){const _0x12019e=['10iWNSCw','672cvMfQG','1745104eIxnre','database','Pattern\x20cannot\x20be\x20just\x20a\x20dot','58ZilkIn','190IKpQiq','catalog','trim','17227wcXjoT','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','join','2993067TPCyvC','9751kPnDFe','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','push','includes','table','753207aPdPcJ','98868FZoSDK','662272slNrLE','length','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)'];a211_0x1d91=function(){return _0x12019e;};return a211_0x1d91();}export function parseTableReference(_0xfb06dd){const _0x5e8913=a211_0x64eb;if(!_0xfb06dd||_0xfb06dd[_0x5e8913(0xaa)]()[_0x5e8913(0xa0)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x4e6102=_0xfb06dd[_0x5e8913(0xaa)](),_0xad3822={'original':_0x4e6102},_0x2c227b=_0x4e6102[_0x5e8913(0x99)]('.');if(_0x2c227b[_0x5e8913(0xa0)]===0x1){const _0x3bd406=_0x2c227b[0x0];if(!_0x3bd406)throw new Error(_0x5e8913(0xa6));_0xad3822['table']=_0x3bd406;}else{if(_0x2c227b['length']===0x2){const [_0x4cbb35,_0x1f3cdc]=_0x2c227b;if(!_0x4cbb35)throw new Error(_0x5e8913(0x98));if(!_0x1f3cdc)throw new Error(_0x5e8913(0xa1));_0xad3822['database']=_0x4cbb35,_0xad3822[_0x5e8913(0x9c)]=_0x1f3cdc;}else{if(_0x2c227b['length']===0x3){const [_0x583c0d,_0x4335aa,_0x455835]=_0x2c227b;if(!_0x583c0d||!_0x4335aa||!_0x455835)throw new Error(_0x5e8913(0x93));_0xad3822[_0x5e8913(0xa9)]=_0x583c0d,_0xad3822['database']=_0x4335aa,_0xad3822[_0x5e8913(0x9c)]=_0x455835;}else throw new Error(_0x5e8913(0x94));}}return _0xad3822;}export function formatTableReference(_0x26bc96){const _0x2aa8c3=a211_0x64eb,_0x246836=[];return _0x26bc96[_0x2aa8c3(0xa9)]&&_0x246836[_0x2aa8c3(0x9a)](_0x26bc96['catalog']),_0x26bc96[_0x2aa8c3(0xa5)]&&_0x246836[_0x2aa8c3(0x9a)](_0x26bc96['database']),_0x26bc96['table']&&_0x246836[_0x2aa8c3(0x9a)](_0x26bc96['table']),_0x246836[_0x2aa8c3(0x95)]('.');}export function validateTableListReference(_0x1590e3){return undefined;}function a211_0x64eb(_0xce6ff0,_0x2f2256){_0xce6ff0=_0xce6ff0-0x90;const _0x1d9174=a211_0x1d91();let _0x64eb0b=_0x1d9174[_0xce6ff0];return _0x64eb0b;}export function validateTableDescribeReference(_0x5cdede){const _0x31c95d=a211_0x64eb;if(!_0x5cdede[_0x31c95d(0x9c)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x5cdede[_0x31c95d(0xa5)]&&hasWildcard(_0x5cdede[_0x31c95d(0xa5)]))return _0x31c95d(0x92);if(hasWildcard(_0x5cdede[_0x31c95d(0x9c)]))return _0x31c95d(0x91);return undefined;}
1
+ (function(_0x14e39a,_0x2eebc8){const _0x3cbe70=a211_0x1a2b,_0x473bfb=_0x14e39a();while(!![]){try{const _0x4ad0b7=parseInt(_0x3cbe70(0x15a))/0x1*(-parseInt(_0x3cbe70(0x14f))/0x2)+parseInt(_0x3cbe70(0x156))/0x3*(parseInt(_0x3cbe70(0x144))/0x4)+-parseInt(_0x3cbe70(0x145))/0x5+parseInt(_0x3cbe70(0x13e))/0x6*(parseInt(_0x3cbe70(0x14b))/0x7)+parseInt(_0x3cbe70(0x14c))/0x8*(parseInt(_0x3cbe70(0x14d))/0x9)+parseInt(_0x3cbe70(0x159))/0xa*(parseInt(_0x3cbe70(0x141))/0xb)+-parseInt(_0x3cbe70(0x149))/0xc*(parseInt(_0x3cbe70(0x146))/0xd);if(_0x4ad0b7===_0x2eebc8)break;else _0x473bfb['push'](_0x473bfb['shift']());}catch(_0x47b830){_0x473bfb['push'](_0x473bfb['shift']());}}}(a211_0x27a2,0x99744));function a211_0x27a2(){const _0x335216=['7978952owywfG','9ZpZeIS','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','18WeKnzi','table','join','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','includes','126rBDNQg','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database','480Vmpnya','41889eTaWFA','1688232QGZHFX','split','Pattern\x20cannot\x20be\x20just\x20a\x20dot','287133BgKRHt','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length','89428LznZpf','6281280jfCrnQ','5213GeIYWy','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','catalog','53016WuQAhs','push','21kFAOYc'];a211_0x27a2=function(){return _0x335216;};return a211_0x27a2();}function a211_0x1a2b(_0x3297f9,_0x14d7d3){_0x3297f9=_0x3297f9-0x13e;const _0x27a2fb=a211_0x27a2();let _0x1a2b8b=_0x27a2fb[_0x3297f9];return _0x1a2b8b;}function hasWildcard(_0x2e9db4){const _0x4199a2=a211_0x1a2b;return _0x2e9db4['includes']('*')||_0x2e9db4[_0x4199a2(0x155)]('?');}export function parseTableReference(_0x10aa2b){const _0x5b5520=a211_0x1a2b;if(!_0x10aa2b||_0x10aa2b['trim']()[_0x5b5520(0x143)]===0x0)throw new Error(_0x5b5520(0x147));const _0x5f2b1b=_0x10aa2b['trim'](),_0x3f02ed={'original':_0x5f2b1b},_0x2f52b5=_0x5f2b1b[_0x5b5520(0x13f)]('.');if(_0x2f52b5['length']===0x1){const _0x1af7cd=_0x2f52b5[0x0];if(!_0x1af7cd)throw new Error(_0x5b5520(0x140));_0x3f02ed['table']=_0x1af7cd;}else{if(_0x2f52b5[_0x5b5520(0x143)]===0x2){const [_0x539275,_0x2c2b75]=_0x2f52b5;if(!_0x539275)throw new Error(_0x5b5520(0x142));if(!_0x2c2b75)throw new Error(_0x5b5520(0x152));_0x3f02ed[_0x5b5520(0x158)]=_0x539275,_0x3f02ed[_0x5b5520(0x150)]=_0x2c2b75;}else{if(_0x2f52b5['length']===0x3){const [_0xb52711,_0x1122cd,_0x259f2d]=_0x2f52b5;if(!_0xb52711||!_0x1122cd||!_0x259f2d)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x3f02ed[_0x5b5520(0x148)]=_0xb52711,_0x3f02ed[_0x5b5520(0x158)]=_0x1122cd,_0x3f02ed[_0x5b5520(0x150)]=_0x259f2d;}else throw new Error(_0x5b5520(0x154));}}return _0x3f02ed;}export function formatTableReference(_0x3afd76){const _0xe27c=a211_0x1a2b,_0x5b607d=[];return _0x3afd76[_0xe27c(0x148)]&&_0x5b607d[_0xe27c(0x14a)](_0x3afd76['catalog']),_0x3afd76[_0xe27c(0x158)]&&_0x5b607d[_0xe27c(0x14a)](_0x3afd76['database']),_0x3afd76[_0xe27c(0x150)]&&_0x5b607d[_0xe27c(0x14a)](_0x3afd76['table']),_0x5b607d[_0xe27c(0x151)]('.');}export function validateTableListReference(_0x181afb){return undefined;}export function validateTableDescribeReference(_0xa2d8a8){const _0x28f9cc=a211_0x1a2b;if(!_0xa2d8a8[_0x28f9cc(0x150)])return _0x28f9cc(0x157);if(_0xa2d8a8['database']&&hasWildcard(_0xa2d8a8[_0x28f9cc(0x158)]))return _0x28f9cc(0x153);if(hasWildcard(_0xa2d8a8[_0x28f9cc(0x150)]))return _0x28f9cc(0x14e);return undefined;}
@@ -1 +1 @@
1
- const a212_0x22b27c=a212_0x433a;(function(_0x185d1f,_0x57198d){const _0x1df186=a212_0x433a,_0x3ddffe=_0x185d1f();while(!![]){try{const _0x3ca4ec=parseInt(_0x1df186(0x1ee))/0x1*(-parseInt(_0x1df186(0x1f2))/0x2)+parseInt(_0x1df186(0x1e8))/0x3+-parseInt(_0x1df186(0x1eb))/0x4*(parseInt(_0x1df186(0x1e6))/0x5)+-parseInt(_0x1df186(0x1de))/0x6*(parseInt(_0x1df186(0x1ec))/0x7)+parseInt(_0x1df186(0x1d8))/0x8+-parseInt(_0x1df186(0x1e1))/0x9+parseInt(_0x1df186(0x1e4))/0xa;if(_0x3ca4ec===_0x57198d)break;else _0x3ddffe['push'](_0x3ddffe['shift']());}catch(_0x1192ec){_0x3ddffe['push'](_0x3ddffe['shift']());}}}(a212_0x7402,0x480ec));import{join}from'path';function a212_0x7402(){const _0x394f4f=['Session\x20ended','trace','2360096dKCPdU','logs','logger','logLevel','info','INFO','318crljuR','logDir','fileHandler','2194632UUPGyA','init','warn','10108700aNmTfa','logFileName','1935905VTkTPN','push','24747FlNYdf','addHandler','debug','4NGCmUF','31199BBxGeu','isInitialized','151733LFLcKM','shutdown','error','getLogPath','2LizCGf','fileOnly','consoleHandler'];a212_0x7402=function(){return _0x394f4f;};return a212_0x7402();}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';function a212_0x433a(_0x42ae16,_0x20ab60){_0x42ae16=_0x42ae16-0x1d6;const _0x740298=a212_0x7402();let _0x433a93=_0x740298[_0x42ae16];return _0x433a93;}import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{['logLevel'];[a212_0x22b27c(0x1f3)];['logDir'];[a212_0x22b27c(0x1e5)];['logger'];[a212_0x22b27c(0x1e0)]=null;['consoleHandler']=null;constructor(_0x1944cc=LogLevel[a212_0x22b27c(0x1dd)],_0x28eb50=![],_0x4c78e1,_0x5752d2='tdx.log'){const _0x5b9d71=a212_0x22b27c;this[_0x5b9d71(0x1db)]=_0x1944cc,this[_0x5b9d71(0x1f3)]=_0x28eb50,this[_0x5b9d71(0x1df)]=_0x4c78e1||join(getGlobalCacheDir(),_0x5b9d71(0x1d9)),this[_0x5b9d71(0x1e5)]=_0x5752d2,this['logger']=Logger['of']('tdx');}async[a212_0x22b27c(0x1e2)](){const _0x532f37=a212_0x22b27c,_0x288762=join(this[_0x532f37(0x1df)],this[_0x532f37(0x1e5)]);if(Logger[_0x532f37(0x1ed)]()){!this[_0x532f37(0x1f3)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x532f37(0x1dd)],'colors':!![]}),Logger[_0x532f37(0x1e9)](this[_0x532f37(0x1f4)]));return;}this[_0x532f37(0x1e0)]=new FileHandler({'filePath':_0x288762});const _0x2a1709=[this['fileHandler']];!this['fileOnly']&&(this[_0x532f37(0x1f4)]=new ConsoleHandler({'minLevel':LogLevel[_0x532f37(0x1dd)],'colors':!![]}),_0x2a1709[_0x532f37(0x1e7)](this[_0x532f37(0x1f4)])),await Logger[_0x532f37(0x1e2)]({'defaultLevel':this['logLevel'],'handlers':_0x2a1709,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x22b27c(0x1ea)](..._0x170f69){const _0x19f377=a212_0x22b27c;this[_0x19f377(0x1da)]['debug'](..._0x170f69);}[a212_0x22b27c(0x1d7)](..._0xfd8750){const _0x3da436=a212_0x22b27c;this[_0x3da436(0x1da)]['trace'](..._0xfd8750);}['info'](..._0x462f41){const _0x5a3f3d=a212_0x22b27c;this[_0x5a3f3d(0x1da)][_0x5a3f3d(0x1dc)](..._0x462f41);}[a212_0x22b27c(0x1e3)](..._0x454fd1){const _0x59df32=a212_0x22b27c;this[_0x59df32(0x1da)][_0x59df32(0x1e3)](..._0x454fd1);}[a212_0x22b27c(0x1f0)](..._0x2c53c9){const _0x131ef6=a212_0x22b27c;this['logger'][_0x131ef6(0x1f0)](..._0x2c53c9);}async['close'](){const _0x14dcd0=a212_0x22b27c;this['logger'][_0x14dcd0(0x1dc)](_0x14dcd0(0x1d6)),await Logger[_0x14dcd0(0x1ef)]();}[a212_0x22b27c(0x1f1)](){const _0x438938=a212_0x22b27c;return join(this[_0x438938(0x1df)],this['logFileName']);}}
1
+ const a212_0x4130ef=a212_0x2f3b;function a212_0x2f3b(_0x3d282a,_0x50ca4c){_0x3d282a=_0x3d282a-0x124;const _0x4bd3ef=a212_0x4bd3();let _0x2f3bfe=_0x4bd3ef[_0x3d282a];return _0x2f3bfe;}(function(_0x32ddee,_0x159c41){const _0x5148c5=a212_0x2f3b,_0x2cdd38=_0x32ddee();while(!![]){try{const _0x224d90=parseInt(_0x5148c5(0x13f))/0x1+parseInt(_0x5148c5(0x12b))/0x2*(-parseInt(_0x5148c5(0x13a))/0x3)+parseInt(_0x5148c5(0x130))/0x4+-parseInt(_0x5148c5(0x141))/0x5+-parseInt(_0x5148c5(0x138))/0x6*(parseInt(_0x5148c5(0x124))/0x7)+-parseInt(_0x5148c5(0x12c))/0x8*(parseInt(_0x5148c5(0x136))/0x9)+parseInt(_0x5148c5(0x126))/0xa;if(_0x224d90===_0x159c41)break;else _0x2cdd38['push'](_0x2cdd38['shift']());}catch(_0x450a14){_0x2cdd38['push'](_0x2cdd38['shift']());}}}(a212_0x4bd3,0x450d4));import{join}from'path';function a212_0x4bd3(){const _0x28e97f=['addHandler','1022kytCaT','debug','4939160LDPruc','tdx.log','getLogPath','push','logDir','142oRLUFh','48gcgVgn','logger','tdx','fileHandler','2218296chSmLh','isInitialized','init','warn','logs','info','146061QczZYP','fileOnly','21606XahkPK','shutdown','12666wzFMBd','INFO','error','logFileName','logLevel','331886rmPKiq','Session\x20ended','873290HCbEdr','consoleHandler'];a212_0x4bd3=function(){return _0x28e97f;};return a212_0x4bd3();}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_0x4130ef(0x13e)];[a212_0x4130ef(0x137)];[a212_0x4130ef(0x12a)];[a212_0x4130ef(0x13d)];[a212_0x4130ef(0x12d)];[a212_0x4130ef(0x12f)]=null;[a212_0x4130ef(0x142)]=null;constructor(_0x2494cc=LogLevel[a212_0x4130ef(0x13b)],_0x1fc0b3=![],_0x4af30f,_0x4b011c=a212_0x4130ef(0x127)){const _0x44ea3d=a212_0x4130ef;this[_0x44ea3d(0x13e)]=_0x2494cc,this[_0x44ea3d(0x137)]=_0x1fc0b3,this[_0x44ea3d(0x12a)]=_0x4af30f||join(getGlobalCacheDir(),_0x44ea3d(0x134)),this[_0x44ea3d(0x13d)]=_0x4b011c,this['logger']=Logger['of'](_0x44ea3d(0x12e));}async['init'](){const _0x17cb5d=a212_0x4130ef,_0x2bf71f=join(this[_0x17cb5d(0x12a)],this[_0x17cb5d(0x13d)]);if(Logger[_0x17cb5d(0x131)]()){!this[_0x17cb5d(0x137)]&&(this[_0x17cb5d(0x142)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0x17cb5d(0x143)](this[_0x17cb5d(0x142)]));return;}this[_0x17cb5d(0x12f)]=new FileHandler({'filePath':_0x2bf71f});const _0x51b27a=[this['fileHandler']];!this[_0x17cb5d(0x137)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x17cb5d(0x13b)],'colors':!![]}),_0x51b27a[_0x17cb5d(0x129)](this[_0x17cb5d(0x142)])),await Logger[_0x17cb5d(0x132)]({'defaultLevel':this['logLevel'],'handlers':_0x51b27a,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a212_0x4130ef(0x125)](..._0x5a431d){const _0x185bc3=a212_0x4130ef;this[_0x185bc3(0x12d)]['debug'](..._0x5a431d);}['trace'](..._0xc6eaea){this['logger']['trace'](..._0xc6eaea);}[a212_0x4130ef(0x135)](..._0x207fb7){const _0x494d13=a212_0x4130ef;this['logger'][_0x494d13(0x135)](..._0x207fb7);}[a212_0x4130ef(0x133)](..._0x4e87e6){const _0x1f7644=a212_0x4130ef;this[_0x1f7644(0x12d)][_0x1f7644(0x133)](..._0x4e87e6);}[a212_0x4130ef(0x13c)](..._0x5d0120){const _0x277335=a212_0x4130ef;this[_0x277335(0x12d)][_0x277335(0x13c)](..._0x5d0120);}async['close'](){const _0x1b65e0=a212_0x4130ef;this['logger'][_0x1b65e0(0x135)](_0x1b65e0(0x140)),await Logger[_0x1b65e0(0x139)]();}[a212_0x4130ef(0x128)](){const _0x393a07=a212_0x4130ef;return join(this[_0x393a07(0x12a)],this[_0x393a07(0x13d)]);}}
@@ -1 +1 @@
1
- const a213_0x538add=a213_0x1113;(function(_0x39c673,_0x4de5a2){const _0x4e9f4e=a213_0x1113,_0x35da71=_0x39c673();while(!![]){try{const _0xec26c3=-parseInt(_0x4e9f4e(0xee))/0x1*(-parseInt(_0x4e9f4e(0xf6))/0x2)+-parseInt(_0x4e9f4e(0xf2))/0x3+parseInt(_0x4e9f4e(0xe6))/0x4*(-parseInt(_0x4e9f4e(0xf8))/0x5)+-parseInt(_0x4e9f4e(0xed))/0x6+-parseInt(_0x4e9f4e(0xf5))/0x7+-parseInt(_0x4e9f4e(0xf4))/0x8+parseInt(_0x4e9f4e(0xff))/0x9;if(_0xec26c3===_0x4de5a2)break;else _0x35da71['push'](_0x35da71['shift']());}catch(_0x38925d){_0x35da71['push'](_0x35da71['shift']());}}}(a213_0x3bea,0xf2f75));import{get}from'https';import{gt,valid}from'semver';import a213_0x3d46d1 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('last_version_check','utils/version-check'),nextVersionCache=createGlobalCache(a213_0x538add(0xfc),a213_0x538add(0xeb));function a213_0x3bea(){const _0x39a281=['statusCode','getTime','last_version_check_next','end','latestVersion','27333792uoVTQS','cyan','write','channel','toISOString','gray','tdx\x20upgrade','data','\x0aUpdate\x20available:\x20','read','socket','stable','destroy','updateAvailable','3868UOlflB','Invalid\x20version\x20format','unref','latest','now','utils/version-check-next','isTTY','10272768VLzMna','34333BWgtDv','dim','parse','lastCheck','1604127KYlolK','next','4798608GwiqQF','1604351FpuUcQ','104gvtkGC','version','3885FLlcnP','stderr'];a213_0x3bea=function(){return _0x39a281;};return a213_0x3bea();}function getCacheForChannel(_0x4e5c92){return _0x4e5c92==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x5327f5){const _0x36f235=a213_0x538add;return getCacheForChannel(_0x5327f5)[_0x36f235(0xe1)]()??null;}function writeCache(_0x115411,_0x1be141){const _0x37a076=a213_0x538add;try{getCacheForChannel(_0x1be141)[_0x37a076(0x101)]({'lastCheck':new Date()[_0x37a076(0x103)](),'latestVersion':_0x115411});}catch{}}function a213_0x1113(_0x49d03b,_0x3ec6bc){_0x49d03b=_0x49d03b-0xe1;const _0x3bea44=a213_0x3bea();let _0x11137c=_0x3bea44[_0x49d03b];return _0x11137c;}function isCacheValid(_0x277be9){const _0xffc6d8=a213_0x538add;if(!_0x277be9)return![];const _0x27f41f=new Date(_0x277be9[_0xffc6d8(0xf1)])[_0xffc6d8(0xfb)](),_0x5eb297=Date[_0xffc6d8(0xea)]();return _0x5eb297-_0x27f41f<CACHE_DURATION_MS;}export function fetchLatestVersion(_0xedabcf=a213_0x538add(0xe3)){const _0x565d54=a213_0x538add,_0x24019d=_0xedabcf==='next'?_0x565d54(0xf3):_0x565d54(0xe9),_0x52af25=NPM_REGISTRY_BASE+'/'+_0x24019d;return new Promise((_0x12a87f,_0x1feabb)=>{const _0xc63ef3=_0x565d54,_0x4fede9=get(_0x52af25,{'timeout':TIMEOUT_MS},_0x5aa0c7=>{const _0x4e797d=a213_0x1113;if(_0x5aa0c7[_0x4e797d(0xfa)]!==0xc8){clearTimeout(_0x914739),_0x1feabb(new Error('HTTP\x20'+_0x5aa0c7[_0x4e797d(0xfa)]));return;}let _0x49dc5d='';_0x5aa0c7['on'](_0x4e797d(0x106),_0xf7d8b4=>{_0x49dc5d+=_0xf7d8b4;}),_0x5aa0c7['on'](_0x4e797d(0xfd),()=>{const _0x2c28c0=_0x4e797d;clearTimeout(_0x914739);try{const _0x192e08=JSON[_0x2c28c0(0xf0)](_0x49dc5d);if(!valid(_0x192e08[_0x2c28c0(0xf7)])){_0x1feabb(new Error(_0x2c28c0(0xe7)));return;}_0x12a87f(_0x192e08['version']);}catch(_0x184841){_0x1feabb(_0x184841);}});})['on']('error',_0x9f2a22=>{clearTimeout(_0x914739),_0x1feabb(_0x9f2a22);});_0x4fede9['on'](_0xc63ef3(0xe2),_0x1931ca=>{_0x1931ca['unref']();});const _0x914739=setTimeout(()=>{const _0x47bdc0=_0xc63ef3;_0x4fede9[_0x47bdc0(0xe4)](),_0x1feabb(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x914739[_0xc63ef3(0xe8)]();});}export async function checkForUpdate(_0x2bb9f4,_0x2f7e1d=a213_0x538add(0xe3)){const _0x5f4ff2=a213_0x538add;try{const _0x35ff85=readCache(_0x2f7e1d);if(isCacheValid(_0x35ff85)){const _0x16323b=gt(_0x35ff85[_0x5f4ff2(0xfe)],_0x2bb9f4);return{'updateAvailable':_0x16323b,'currentVersion':_0x2bb9f4,'latestVersion':_0x35ff85[_0x5f4ff2(0xfe)],'channel':_0x2f7e1d};}const _0x4039b6=await fetchLatestVersion(_0x2f7e1d);writeCache(_0x4039b6,_0x2f7e1d);const _0x4aae9e=gt(_0x4039b6,_0x2bb9f4);return{'updateAvailable':_0x4aae9e,'currentVersion':_0x2bb9f4,'latestVersion':_0x4039b6,'channel':_0x2f7e1d};}catch{return null;}}export function displayUpdateNotification(_0x490570){const _0x2181e5=a213_0x538add;if(!_0x490570[_0x2181e5(0xe5)])return;const _0x590b61=_0x490570[_0x2181e5(0x102)]===_0x2181e5(0xf3)?'tdx\x20upgrade\x20--next':_0x2181e5(0x105),_0x4ae87d=process[_0x2181e5(0xf9)][_0x2181e5(0xec)]&&!process.env.NO_COLOR,_0x5c52d5=_0x4ae87d?a213_0x3d46d1[_0x2181e5(0x104)]('→'):'→',_0x2c5681=_0x4ae87d?a213_0x3d46d1[_0x2181e5(0xef)](_0x490570['currentVersion']):_0x490570['currentVersion'],_0x537c71=_0x4ae87d?a213_0x3d46d1['green'](_0x490570[_0x2181e5(0xfe)]):_0x490570[_0x2181e5(0xfe)],_0x20aad5=_0x4ae87d?a213_0x3d46d1[_0x2181e5(0x100)](_0x590b61):_0x590b61,_0xcd3114=_0x4ae87d?'\x0a'+a213_0x3d46d1['yellow']('Update\x20available:')+'\x20'+_0x2c5681+'\x20'+_0x5c52d5+'\x20'+_0x537c71+'\x0a'+a213_0x3d46d1[_0x2181e5(0xef)]('Run:')+'\x20'+_0x20aad5+'\x0a':_0x2181e5(0x107)+_0x2c5681+'\x20'+_0x5c52d5+'\x20'+_0x537c71+'\x0aRun:\x20'+_0x20aad5+'\x0a';process['stderr']['write'](_0xcd3114);}
1
+ const a213_0x3b1f4d=a213_0x19c1;(function(_0x8df9f2,_0x38a659){const _0x43c673=a213_0x19c1,_0xc30c24=_0x8df9f2();while(!![]){try{const _0x76353b=parseInt(_0x43c673(0x185))/0x1+parseInt(_0x43c673(0x197))/0x2+parseInt(_0x43c673(0x190))/0x3+-parseInt(_0x43c673(0x19a))/0x4+parseInt(_0x43c673(0x177))/0x5*(parseInt(_0x43c673(0x17c))/0x6)+-parseInt(_0x43c673(0x17e))/0x7*(-parseInt(_0x43c673(0x196))/0x8)+-parseInt(_0x43c673(0x18c))/0x9;if(_0x76353b===_0x38a659)break;else _0xc30c24['push'](_0xc30c24['shift']());}catch(_0x1bf196){_0xc30c24['push'](_0xc30c24['shift']());}}}(a213_0x2fb6,0xd07fc));import{get}from'https';import{gt,valid}from'semver';import a213_0x30ccdf 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_0x3b1f4d(0x17d),a213_0x3b1f4d(0x176)),nextVersionCache=createGlobalCache(a213_0x3b1f4d(0x192),a213_0x3b1f4d(0x189));function getCacheForChannel(_0x1862c0){const _0x4a6e03=a213_0x3b1f4d;return _0x1862c0===_0x4a6e03(0x18b)?nextVersionCache:stableVersionCache;}function readCache(_0x1a3005){return getCacheForChannel(_0x1a3005)['read']()??null;}function writeCache(_0xcbe12e,_0x36b2c4){const _0x2222f1=a213_0x3b1f4d;try{getCacheForChannel(_0x36b2c4)['write']({'lastCheck':new Date()[_0x2222f1(0x183)](),'latestVersion':_0xcbe12e});}catch{}}function isCacheValid(_0x56912e){const _0x4962ed=a213_0x3b1f4d;if(!_0x56912e)return![];const _0x917d8f=new Date(_0x56912e[_0x4962ed(0x178)])['getTime'](),_0x46cd85=Date['now']();return _0x46cd85-_0x917d8f<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x268891='stable'){const _0x2558e3=a213_0x3b1f4d,_0x2bb7bc=_0x268891===_0x2558e3(0x18b)?_0x2558e3(0x18b):'latest',_0x3d131b=NPM_REGISTRY_BASE+'/'+_0x2bb7bc;return new Promise((_0x3bcb5c,_0x1736b5)=>{const _0x3a7f31=_0x2558e3,_0x9391d1=get(_0x3d131b,{'timeout':TIMEOUT_MS},_0x990e4e=>{const _0x4615f0=a213_0x19c1;if(_0x990e4e[_0x4615f0(0x193)]!==0xc8){clearTimeout(_0x9a839b),_0x1736b5(new Error(_0x4615f0(0x182)+_0x990e4e[_0x4615f0(0x193)]));return;}let _0x4523be='';_0x990e4e['on']('data',_0x59b6d0=>{_0x4523be+=_0x59b6d0;}),_0x990e4e['on'](_0x4615f0(0x18e),()=>{const _0x267ad8=_0x4615f0;clearTimeout(_0x9a839b);try{const _0x4cfec7=JSON[_0x267ad8(0x184)](_0x4523be);if(!valid(_0x4cfec7[_0x267ad8(0x188)])){_0x1736b5(new Error('Invalid\x20version\x20format'));return;}_0x3bcb5c(_0x4cfec7[_0x267ad8(0x188)]);}catch(_0x1ec988){_0x1736b5(_0x1ec988);}});})['on'](_0x3a7f31(0x18f),_0x293e12=>{clearTimeout(_0x9a839b),_0x1736b5(_0x293e12);});_0x9391d1['on'](_0x3a7f31(0x187),_0x1d6b11=>{const _0x14309b=_0x3a7f31;_0x1d6b11[_0x14309b(0x18a)]();});const _0x9a839b=setTimeout(()=>{const _0x510454=_0x3a7f31;_0x9391d1['destroy'](),_0x1736b5(new Error(_0x510454(0x194)));},TIMEOUT_MS);_0x9a839b[_0x3a7f31(0x18a)]();});}function a213_0x2fb6(){const _0x14bc4f=['channel','last_version_check_next','statusCode','Request\x20timeout','stderr','148576EpVFSk','493494GojutZ','dim','stable','3136052bBeGAB','utils/version-check','15NNGaMM','lastCheck','Update\x20available:','\x0aUpdate\x20available:\x20','green','1530264daUoYF','last_version_check','196rbdzgB','tdx\x20upgrade','currentVersion','\x0aRun:\x20','HTTP\x20','toISOString','parse','1090311danGcW','tdx\x20upgrade\x20--next','socket','version','utils/version-check-next','unref','next','20947194aFZpoo','latestVersion','end','error','4029855eirtNy'];a213_0x2fb6=function(){return _0x14bc4f;};return a213_0x2fb6();}function a213_0x19c1(_0x249076,_0x1d5668){_0x249076=_0x249076-0x176;const _0x2fb669=a213_0x2fb6();let _0x19c16a=_0x2fb669[_0x249076];return _0x19c16a;}export async function checkForUpdate(_0x3c5fb1,_0x62b9c1=a213_0x3b1f4d(0x199)){const _0x57f37e=a213_0x3b1f4d;try{const _0x16976e=readCache(_0x62b9c1);if(isCacheValid(_0x16976e)){const _0x4aa044=gt(_0x16976e[_0x57f37e(0x18d)],_0x3c5fb1);return{'updateAvailable':_0x4aa044,'currentVersion':_0x3c5fb1,'latestVersion':_0x16976e[_0x57f37e(0x18d)],'channel':_0x62b9c1};}const _0x5e12ca=await fetchLatestVersion(_0x62b9c1);writeCache(_0x5e12ca,_0x62b9c1);const _0x24df73=gt(_0x5e12ca,_0x3c5fb1);return{'updateAvailable':_0x24df73,'currentVersion':_0x3c5fb1,'latestVersion':_0x5e12ca,'channel':_0x62b9c1};}catch{return null;}}export function displayUpdateNotification(_0x356a87){const _0x3cc975=a213_0x3b1f4d;if(!_0x356a87['updateAvailable'])return;const _0x554608=_0x356a87[_0x3cc975(0x191)]===_0x3cc975(0x18b)?_0x3cc975(0x186):_0x3cc975(0x17f),_0x100196=process['stderr']['isTTY']&&!process.env.NO_COLOR,_0x598625=_0x100196?a213_0x30ccdf['gray']('→'):'→',_0x2ac9af=_0x100196?a213_0x30ccdf[_0x3cc975(0x198)](_0x356a87[_0x3cc975(0x180)]):_0x356a87[_0x3cc975(0x180)],_0x98529f=_0x100196?a213_0x30ccdf[_0x3cc975(0x17b)](_0x356a87[_0x3cc975(0x18d)]):_0x356a87[_0x3cc975(0x18d)],_0x60a4f0=_0x100196?a213_0x30ccdf['cyan'](_0x554608):_0x554608,_0x55b8dd=_0x100196?'\x0a'+a213_0x30ccdf['yellow'](_0x3cc975(0x179))+'\x20'+_0x2ac9af+'\x20'+_0x598625+'\x20'+_0x98529f+'\x0a'+a213_0x30ccdf['dim']('Run:')+'\x20'+_0x60a4f0+'\x0a':_0x3cc975(0x17a)+_0x2ac9af+'\x20'+_0x598625+'\x20'+_0x98529f+_0x3cc975(0x181)+_0x60a4f0+'\x0a';process[_0x3cc975(0x195)]['write'](_0x55b8dd);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.13",
3
+ "version": "2026.3.14",
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": {