@treasuredata/tdx 2026.3.42 → 2026.3.44

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 (222) 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/cas-command.js +1 -1
  12. package/dist/commands/cas-segment-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/delivery-command.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/engage-campaign-pull-command.js +1 -1
  23. package/dist/commands/engage-campaign-push-command.js +1 -1
  24. package/dist/commands/engage-campaign-validate-command.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/engage-template-pull-command.js +1 -1
  27. package/dist/commands/engage-template-push-command.js +1 -1
  28. package/dist/commands/engage-template-validate-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-validate-command.js +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.js +1 -1
  35. package/dist/commands/policy-command.js +1 -1
  36. package/dist/commands/profile-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/work-command.js +1 -1
  57. package/dist/commands/workflow-command.js +1 -1
  58. package/dist/core/auth.js +1 -1
  59. package/dist/core/command-output.js +1 -1
  60. package/dist/core/config.js +1 -1
  61. package/dist/core/connection-cache.js +1 -1
  62. package/dist/core/constants.js +1 -1
  63. package/dist/core/credential-cache.js +1 -1
  64. package/dist/core/global-context.js +1 -1
  65. package/dist/core/keychain.js +1 -1
  66. package/dist/core/oauth-keychain.js +1 -1
  67. package/dist/core/oauth.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/project-config.js +1 -1
  70. package/dist/core/session.js +1 -1
  71. package/dist/core/user-cache.js +1 -1
  72. package/dist/core/version.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/mcp/server.js +1 -1
  75. package/dist/mcp/tools/index.js +1 -1
  76. package/dist/mcp/tools/tdx-run.js +1 -1
  77. package/dist/mcp/tools/tdx-search.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.d.ts +4 -1
  141. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  142. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  143. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  144. package/dist/sdk/segment/fields-display.js +1 -1
  145. package/dist/sdk/segment/file-discovery.js +1 -1
  146. package/dist/sdk/segment/journey-utils.js +1 -1
  147. package/dist/sdk/segment/journey-validator.js +1 -1
  148. package/dist/sdk/segment/journey-yaml.js +1 -1
  149. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  150. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  151. package/dist/sdk/segment/pull-workflow.js +1 -1
  152. package/dist/sdk/segment/push-recovery.js +1 -1
  153. package/dist/sdk/segment/push-workflow.js +1 -1
  154. package/dist/sdk/segment/resolution-context.js +1 -1
  155. package/dist/sdk/segment/segment-path-parser.js +1 -1
  156. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  157. package/dist/sdk/segment/segment-validator.js +1 -1
  158. package/dist/sdk/segment/target-resolution.js +1 -1
  159. package/dist/sdk/segment/tdx-config.js +1 -1
  160. package/dist/sdk/segment/types/activation-schema.js +1 -1
  161. package/dist/sdk/segment/types/journey-def.js +1 -1
  162. package/dist/sdk/segment/types/journey-schema.js +1 -1
  163. package/dist/sdk/segment/types/segment-def.js +1 -1
  164. package/dist/sdk/segment/types/segment-schema.js +1 -1
  165. package/dist/sdk/segment/validate-files.js +1 -1
  166. package/dist/sdk/segment/yaml-validator.js +1 -1
  167. package/dist/sdk/segment.js +1 -1
  168. package/dist/sdk/types/index.js +1 -1
  169. package/dist/sdk/types/progress.js +1 -1
  170. package/dist/sdk/types/workspace.js +1 -1
  171. package/dist/sdk/user.js +1 -1
  172. package/dist/sdk/util/format-detector.js +1 -1
  173. package/dist/sdk/util/formatters.js +1 -1
  174. package/dist/sdk/util/index.js +1 -1
  175. package/dist/sdk/util/paginate.js +1 -1
  176. package/dist/sdk/util/tree-formatter.js +1 -1
  177. package/dist/sdk/workflow/archive-validation.js +1 -1
  178. package/dist/sdk/workflow/clone-workflow.js +1 -1
  179. package/dist/sdk/workflow/index.js +1 -1
  180. package/dist/sdk/workflow/pull-workflow.js +1 -1
  181. package/dist/sdk/workflow/push-workflow.js +1 -1
  182. package/dist/sdk/workflow/tdx-config.js +1 -1
  183. package/dist/sdk/workflow/workflow-utils.js +1 -1
  184. package/dist/sdk/workspace/frontmatter.js +1 -1
  185. package/dist/sdk/workspace/git.js +1 -1
  186. package/dist/sdk/workspace/index.js +1 -1
  187. package/dist/sdk/workspace/templates.js +1 -1
  188. package/dist/sdk/workspace/weekly.js +1 -1
  189. package/dist/sdk/workspace/wikilinks.js +1 -1
  190. package/dist/test-utils/command-runner.js +1 -1
  191. package/dist/test-utils/factories.js +1 -1
  192. package/dist/test-utils/fixtures.js +1 -1
  193. package/dist/test-utils/http-mock.js +1 -1
  194. package/dist/test-utils/index.js +1 -1
  195. package/dist/utils/async.js +1 -1
  196. package/dist/utils/colors.js +1 -1
  197. package/dist/utils/diff.js +1 -1
  198. package/dist/utils/file-permissions.js +1 -1
  199. package/dist/utils/file-reader.js +1 -1
  200. package/dist/utils/github-releases.js +1 -1
  201. package/dist/utils/global-cache.js +1 -1
  202. package/dist/utils/json-loader.js +1 -1
  203. package/dist/utils/local-cache.js +1 -1
  204. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  205. package/dist/utils/logger/formatters/index.js +1 -1
  206. package/dist/utils/logger/handlers/console-handler.js +1 -1
  207. package/dist/utils/logger/handlers/file-handler.js +1 -1
  208. package/dist/utils/logger/handlers/index.js +1 -1
  209. package/dist/utils/logger/handlers/null-handler.js +1 -1
  210. package/dist/utils/logger/index.js +1 -1
  211. package/dist/utils/logger/logger.js +1 -1
  212. package/dist/utils/logger/types.js +1 -1
  213. package/dist/utils/option-validation.js +1 -1
  214. package/dist/utils/process.js +1 -1
  215. package/dist/utils/prompt.js +1 -1
  216. package/dist/utils/spinner.js +1 -1
  217. package/dist/utils/sse-parser.js +1 -1
  218. package/dist/utils/string-utils.js +1 -1
  219. package/dist/utils/table-ref-parser.js +1 -1
  220. package/dist/utils/tdx-logger.js +1 -1
  221. package/dist/utils/version-check.js +1 -1
  222. package/package.json +1 -1
@@ -1 +1 @@
1
- const a227_0x3a3afa=a227_0x4889;(function(_0x5eacc7,_0x448e31){const _0x24e168=a227_0x4889,_0x2f6204=_0x5eacc7();while(!![]){try{const _0x36d883=-parseInt(_0x24e168(0xc0))/0x1*(-parseInt(_0x24e168(0xcb))/0x2)+-parseInt(_0x24e168(0xe2))/0x3+-parseInt(_0x24e168(0xce))/0x4+-parseInt(_0x24e168(0xc9))/0x5*(parseInt(_0x24e168(0xec))/0x6)+-parseInt(_0x24e168(0xbc))/0x7*(parseInt(_0x24e168(0xc7))/0x8)+parseInt(_0x24e168(0xe9))/0x9*(parseInt(_0x24e168(0xdc))/0xa)+parseInt(_0x24e168(0xd5))/0xb*(parseInt(_0x24e168(0xcc))/0xc);if(_0x36d883===_0x448e31)break;else _0x2f6204['push'](_0x2f6204['shift']());}catch(_0x44452a){_0x2f6204['push'](_0x2f6204['shift']());}}}(a227_0xf9bd,0x97511));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a227_0x3a3afa(0xef),a227_0x3a3afa(0xe8),'sh',a227_0x3a3afa(0xe3),'ksh',a227_0x3a3afa(0xdf),'csh','dash','pwsh','powershell','nu',a227_0x3a3afa(0xd0),a227_0x3a3afa(0xea),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x3a3afa(0xf0),a227_0x3a3afa(0xdb),a227_0x3a3afa(0xdd),'electron','treasure\x20studio']);function getProcessInfoWindows(_0x41e3cc){const _0x67cce9=a227_0x3a3afa;try{if(!Number[_0x67cce9(0xd1)](_0x41e3cc)||_0x41e3cc<=0x0)return null;const _0x383d62=_0x67cce9(0xe7)+_0x41e3cc+_0x67cce9(0xbe),_0x485570=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x383d62+'\x22',{'encoding':_0x67cce9(0xd9),'windowsHide':!![],'stdio':[_0x67cce9(0xc8),_0x67cce9(0xc8),_0x67cce9(0xc8)]})['trim']();if(!_0x485570)return null;const [_0x17f69c,..._0x515cb5]=_0x485570[_0x67cce9(0xcf)](','),_0x41cf80=parseInt(_0x17f69c,0xa),_0x396c63=_0x515cb5[_0x67cce9(0xe0)](',')[_0x67cce9(0xd6)]();if(isNaN(_0x41cf80)||!_0x396c63)return null;return{'pid':_0x41e3cc,'ppid':_0x41cf80,'comm':_0x396c63[_0x67cce9(0xeb)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x4b0931){const _0x5a537c=a227_0x3a3afa;try{const _0x2740d3=0x400000;if(!Number['isInteger'](_0x4b0931)||_0x4b0931<=0x0||_0x4b0931>_0x2740d3)return null;const _0x305f70=execSync('ps\x20-p\x20'+_0x4b0931+'\x20-o\x20ppid=,comm=',{'encoding':_0x5a537c(0xd9),'stdio':_0x5a537c(0xc8)})[_0x5a537c(0xd6)](),[_0x13b00d,..._0x22c647]=_0x305f70[_0x5a537c(0xcf)](/\s+/),_0x320eb0=parseInt(_0x13b00d,0xa),_0x5660c8=_0x22c647[_0x5a537c(0xe0)]('\x20');if(isNaN(_0x320eb0))return null;return{'pid':_0x4b0931,'ppid':_0x320eb0,'comm':_0x5660c8};}catch{return null;}}function getProcessInfo(_0x3b89f3){const _0x406a0c=a227_0x3a3afa;if(process['platform']===_0x406a0c(0xd8))return getProcessInfoWindows(_0x3b89f3);return getProcessInfoPosix(_0x3b89f3);}function getBasename(_0x55b6e2){const _0x262c85=a227_0x3a3afa;return _0x55b6e2['replace'](/^-/,'')[_0x262c85(0xcf)]('/')[_0x262c85(0xe4)]()?.[_0x262c85(0xe6)]()||'';}function a227_0x4889(_0x5a8a09,_0x5c2d12){_0x5a8a09=_0x5a8a09-0xbc;const _0xf9bd20=a227_0xf9bd();let _0x4889fd=_0xf9bd20[_0x5a8a09];return _0x4889fd;}function isShell(_0x1e1a49){const _0x3124bd=a227_0x3a3afa;return SHELL_NAMES[_0x3124bd(0xe5)](getBasename(_0x1e1a49));}function isEphemeralShellSpawner(_0x24ec52){const _0x2bd308=a227_0x3a3afa;return EPHEMERAL_SHELL_SPAWNERS[_0x2bd308(0xe5)](getBasename(_0x24ec52));}let cachedShellPID;function findShellPID(){const _0x381487=a227_0x3a3afa;if(process['ppid']===undefined)return process['pid'];let _0x5c40db=process[_0x381487(0xe1)];const _0x1a3043=0xa;let _0x3b1916=0x0;while(_0x3b1916<_0x1a3043){const _0xc21e91=getProcessInfo(_0x5c40db);if(!_0xc21e91)break;if(isShell(_0xc21e91[_0x381487(0xc2)])){const _0x57a43b=getProcessInfo(_0xc21e91[_0x381487(0xe1)]);if(_0x57a43b&&isEphemeralShellSpawner(_0x57a43b[_0x381487(0xc2)])){_0x5c40db=_0xc21e91['ppid'],_0x3b1916++;continue;}return _0xc21e91[_0x381487(0xcd)];}if(_0xc21e91[_0x381487(0xe1)]===0x0||_0xc21e91[_0x381487(0xe1)]===0x1){if(isShell(_0xc21e91[_0x381487(0xc2)]))return _0xc21e91[_0x381487(0xcd)];break;}_0x5c40db=_0xc21e91[_0x381487(0xe1)],_0x3b1916++;}return process[_0x381487(0xe1)]!==undefined?process[_0x381487(0xe1)]:process[_0x381487(0xcd)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x38c635){const _0x4dfa9a=a227_0x3a3afa;if(!Number[_0x4dfa9a(0xd1)](_0x38c635)||_0x38c635<=0x0)return![];try{return process[_0x4dfa9a(0xbf)](_0x38c635,0x0),!![];}catch{return![];}}export function openBrowser(_0x1d357e){const _0x309e70=a227_0x3a3afa;let _0x31bc19;try{_0x31bc19=new URL(_0x1d357e);}catch{throw new Error(_0x309e70(0xf2)+_0x1d357e);}if(_0x31bc19['protocol']!==_0x309e70(0xd2)&&_0x31bc19[_0x309e70(0xd7)]!==_0x309e70(0xd3))throw new Error('Unsupported\x20protocol:\x20'+_0x31bc19[_0x309e70(0xd7)]);const _0x32c605=_0x31bc19[_0x309e70(0xc6)],_0x4b75fa=process[_0x309e70(0xc5)];if(_0x4b75fa===_0x309e70(0xd8))spawn('cmd.exe',['/c','start','',_0x32c605],{'detached':!![],'stdio':'ignore'})[_0x309e70(0xde)]();else{const _0x5877ae=_0x4b75fa===_0x309e70(0xf4)?_0x309e70(0xee):_0x309e70(0xc4);spawn(_0x5877ae,[_0x32c605],{'detached':!![],'stdio':_0x309e70(0xd4)})['unref']();}}export function isWindows(){const _0x28c91e=a227_0x3a3afa;return process[_0x28c91e(0xc5)]===_0x28c91e(0xd8);}export function getCrossSpawnOptions(_0x18c089){return{..._0x18c089??{},'shell':isWindows()};}function a227_0xf9bd(){const _0x29ee41=['ppid','2186136eldddD','fish','pop','has','toLowerCase','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','zsh','5922ygAhum','elvish','replace','6qKqNgb','which','open','bash','claude','stderr','Invalid\x20URL:\x20','exit','darwin','69307eTsMZT','map','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','kill','537dfNyTH','data','comm','toString','xdg-open','platform','href','776qPmttn','pipe','3476035accCDK','error','3602NKrDrX','12Cwlhss','pid','459764cYChYL','split','ion','isInteger','http:','https:','ignore','17714169lLpVDH','trim','protocol','win32','utf-8','test','code','8230liCucF','cursor','unref','tcsh','join'];a227_0xf9bd=function(){return _0x29ee41;};return a227_0xf9bd();}export function escapeWindowsArg(_0x2810a2){const _0xb6a4b4=a227_0x3a3afa;if(!/[ \t"&|<>^%!`\r\n]/[_0xb6a4b4(0xda)](_0x2810a2))return _0x2810a2;const _0x3fa24c=_0x2810a2[_0xb6a4b4(0xeb)](/"/g,'\x22\x22');return'\x22'+_0x3fa24c+'\x22';}export function crossSpawn(_0x5ec92c,_0xa615f2,_0x8dca6){const _0x48fb88=a227_0x3a3afa;if(isWindows()){const _0x5f2a1e=escapeWindowsArg(_0x5ec92c),_0x220b59=_0xa615f2[_0x48fb88(0xbd)](escapeWindowsArg),_0x44d096=[_0x5f2a1e,..._0x220b59][_0x48fb88(0xe0)]('\x20');return spawn(_0x44d096,[],{..._0x8dca6,'shell':!![]});}return spawn(_0x5ec92c,_0xa615f2,{..._0x8dca6,'shell':![]});}export function gracefulExit(_0x135883=0x0){isWindows()?setTimeout(()=>process['exit'](_0x135883),0x32):process['exit'](_0x135883);}export function findExecutable(_0x130ad0,_0x438051=0x1388){return new Promise(_0x768cfb=>{const _0x428585=a227_0x4889,_0x2201b6=isWindows()?'where.exe':_0x428585(0xed);let _0x2fee4b=![];const _0x479f70=crossSpawn(_0x2201b6,[_0x130ad0],{'stdio':_0x428585(0xc8),'shell':isWindows()}),_0x521a14=setTimeout(()=>{!_0x2fee4b&&(_0x2fee4b=!![],_0x479f70['kill'](),_0x768cfb(null));},_0x438051);let _0x29fc1b='';_0x479f70['stdout']?.['on'](_0x428585(0xc1),_0x5121ba=>{const _0x51ae12=_0x428585;_0x29fc1b+=_0x5121ba[_0x51ae12(0xc3)]();}),_0x479f70[_0x428585(0xf1)]?.['on']('data',()=>{}),_0x479f70['on'](_0x428585(0xf3),_0x5b98f1=>{const _0x2b7336=_0x428585;if(_0x2fee4b)return;_0x2fee4b=!![],clearTimeout(_0x521a14);if(_0x5b98f1===0x0&&_0x29fc1b[_0x2b7336(0xd6)]()){const _0x31d368=_0x29fc1b[_0x2b7336(0xd6)]()[_0x2b7336(0xcf)](/\r?\n/)[0x0];_0x768cfb(_0x31d368);}else _0x768cfb(null);}),_0x479f70['on'](_0x428585(0xca),()=>{if(_0x2fee4b)return;_0x2fee4b=!![],clearTimeout(_0x521a14),_0x768cfb(null);});});}
1
+ function a227_0xbb03(_0x469e92,_0x4cea41){_0x469e92=_0x469e92-0xa1;const _0x4f7271=a227_0x4f72();let _0xbb0343=_0x4f7271[_0x469e92];return _0xbb0343;}const a227_0x28407d=a227_0xbb03;(function(_0x487a88,_0x2a776c){const _0x4df7b9=a227_0xbb03,_0xb0a59d=_0x487a88();while(!![]){try{const _0x435155=parseInt(_0x4df7b9(0xc7))/0x1*(parseInt(_0x4df7b9(0xb2))/0x2)+parseInt(_0x4df7b9(0xc3))/0x3+-parseInt(_0x4df7b9(0xd8))/0x4*(-parseInt(_0x4df7b9(0xb0))/0x5)+-parseInt(_0x4df7b9(0xbb))/0x6+parseInt(_0x4df7b9(0xbe))/0x7+-parseInt(_0x4df7b9(0xba))/0x8*(parseInt(_0x4df7b9(0xb3))/0x9)+-parseInt(_0x4df7b9(0xab))/0xa*(parseInt(_0x4df7b9(0xdb))/0xb);if(_0x435155===_0x2a776c)break;else _0xb0a59d['push'](_0xb0a59d['shift']());}catch(_0x337932){_0xb0a59d['push'](_0xb0a59d['shift']());}}}(a227_0x4f72,0x1da26));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a227_0x28407d(0xad),a227_0x28407d(0xce),'sh',a227_0x28407d(0xd7),a227_0x28407d(0xa1),a227_0x28407d(0xda),a227_0x28407d(0xbf),a227_0x28407d(0xc5),a227_0x28407d(0xa8),a227_0x28407d(0xbd),'nu','ion',a227_0x28407d(0xae),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x28407d(0xcf),a227_0x28407d(0xd2),a227_0x28407d(0xca),a227_0x28407d(0xc2),a227_0x28407d(0xcd)]);function getProcessInfoWindows(_0x472233){const _0x9263c7=a227_0x28407d;try{if(!Number[_0x9263c7(0xa4)](_0x472233)||_0x472233<=0x0)return null;const _0x40a1a1=_0x9263c7(0xd4)+_0x472233+_0x9263c7(0xa2),_0x444549=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x40a1a1+'\x22',{'encoding':_0x9263c7(0xc6),'windowsHide':!![],'stdio':['pipe',_0x9263c7(0xcc),'pipe']})[_0x9263c7(0xac)]();if(!_0x444549)return null;const [_0x4edfe7,..._0x607ccb]=_0x444549[_0x9263c7(0xb8)](','),_0x3f0f89=parseInt(_0x4edfe7,0xa),_0x2a002b=_0x607ccb['join'](',')['trim']();if(isNaN(_0x3f0f89)||!_0x2a002b)return null;return{'pid':_0x472233,'ppid':_0x3f0f89,'comm':_0x2a002b[_0x9263c7(0xd1)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x1d4fe2){const _0x2f4778=a227_0x28407d;try{const _0x3cdf94=0x400000;if(!Number[_0x2f4778(0xa4)](_0x1d4fe2)||_0x1d4fe2<=0x0||_0x1d4fe2>_0x3cdf94)return null;const _0x439b09=execSync(_0x2f4778(0xa5)+_0x1d4fe2+'\x20-o\x20ppid=,comm=',{'encoding':_0x2f4778(0xc6),'stdio':_0x2f4778(0xcc)})[_0x2f4778(0xac)](),[_0x230998,..._0x292dc3]=_0x439b09[_0x2f4778(0xb8)](/\s+/),_0x38c482=parseInt(_0x230998,0xa),_0x1992d9=_0x292dc3['join']('\x20');if(isNaN(_0x38c482))return null;return{'pid':_0x1d4fe2,'ppid':_0x38c482,'comm':_0x1992d9};}catch{return null;}}function getProcessInfo(_0x219f48){const _0x245300=a227_0x28407d;if(process[_0x245300(0xaa)]==='win32')return getProcessInfoWindows(_0x219f48);return getProcessInfoPosix(_0x219f48);}function getBasename(_0xfd5e33){const _0x433d45=a227_0x28407d;return _0xfd5e33['replace'](/^-/,'')[_0x433d45(0xb8)]('/')[_0x433d45(0xaf)]()?.[_0x433d45(0xb7)]()||'';}function a227_0x4f72(){const _0x574031=['kill','isInteger','ps\x20-p\x20','protocol','map','pwsh','xdg-open','platform','33610epEgYY','trim','bash','elvish','pop','421810AOtzVG','where.exe','2634iPyifB','9cEceme','data','join','stdout','toLowerCase','split','open','1637304YRHaZE','450756GvMmLn','pid','powershell','922313QxmGpK','csh','href','ignore','electron','90576OWqvOm','start','dash','utf-8','138NdWQlc','which','exit','cursor','test','pipe','treasure\x20studio','zsh','claude','comm','replace','code','error','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','win32','Invalid\x20URL:\x20','fish','4uJfnub','ppid','tcsh','88PhBXKp','unref','has','ksh','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}'];a227_0x4f72=function(){return _0x574031;};return a227_0x4f72();}function isShell(_0x2c7425){const _0x5adc6b=a227_0x28407d;return SHELL_NAMES[_0x5adc6b(0xdd)](getBasename(_0x2c7425));}function isEphemeralShellSpawner(_0x3ad0af){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x3ad0af));}let cachedShellPID;function findShellPID(){const _0x2efee7=a227_0x28407d;if(process[_0x2efee7(0xd9)]===undefined)return process[_0x2efee7(0xbc)];let _0x47ea74=process[_0x2efee7(0xd9)];const _0x3ab265=0xa;let _0x12047e=0x0;while(_0x12047e<_0x3ab265){const _0x29a7b0=getProcessInfo(_0x47ea74);if(!_0x29a7b0)break;if(isShell(_0x29a7b0['comm'])){const _0x2de679=getProcessInfo(_0x29a7b0[_0x2efee7(0xd9)]);if(_0x2de679&&isEphemeralShellSpawner(_0x2de679[_0x2efee7(0xd0)])){_0x47ea74=_0x29a7b0[_0x2efee7(0xd9)],_0x12047e++;continue;}return _0x29a7b0[_0x2efee7(0xbc)];}if(_0x29a7b0[_0x2efee7(0xd9)]===0x0||_0x29a7b0[_0x2efee7(0xd9)]===0x1){if(isShell(_0x29a7b0['comm']))return _0x29a7b0[_0x2efee7(0xbc)];break;}_0x47ea74=_0x29a7b0[_0x2efee7(0xd9)],_0x12047e++;}return process[_0x2efee7(0xd9)]!==undefined?process['ppid']:process[_0x2efee7(0xbc)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4e1408){const _0x4ea68c=a227_0x28407d;if(!Number['isInteger'](_0x4e1408)||_0x4e1408<=0x0)return![];try{return process[_0x4ea68c(0xa3)](_0x4e1408,0x0),!![];}catch{return![];}}export function openBrowser(_0x18d7df){const _0x44e949=a227_0x28407d;let _0x5d6b38;try{_0x5d6b38=new URL(_0x18d7df);}catch{throw new Error(_0x44e949(0xd6)+_0x18d7df);}if(_0x5d6b38[_0x44e949(0xa6)]!=='http:'&&_0x5d6b38[_0x44e949(0xa6)]!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x5d6b38[_0x44e949(0xa6)]);const _0x18f2dc=_0x5d6b38[_0x44e949(0xc0)],_0x274aff=process['platform'];if(_0x274aff===_0x44e949(0xd5))spawn('cmd.exe',['/c',_0x44e949(0xc4),'',_0x18f2dc],{'detached':!![],'stdio':_0x44e949(0xc1)})[_0x44e949(0xdc)]();else{const _0x128250=_0x274aff==='darwin'?_0x44e949(0xb9):_0x44e949(0xa9);spawn(_0x128250,[_0x18f2dc],{'detached':!![],'stdio':_0x44e949(0xc1)})[_0x44e949(0xdc)]();}}export function isWindows(){const _0x3896ba=a227_0x28407d;return process[_0x3896ba(0xaa)]==='win32';}export function getCrossSpawnOptions(_0x45db41){return{..._0x45db41??{},'shell':isWindows()};}export function escapeWindowsArg(_0x28fc23){const _0xa5ff73=a227_0x28407d;if(!/[ \t"&|<>^%!`\r\n]/[_0xa5ff73(0xcb)](_0x28fc23))return _0x28fc23;const _0x4088b1=_0x28fc23[_0xa5ff73(0xd1)](/"/g,'\x22\x22');return'\x22'+_0x4088b1+'\x22';}export function crossSpawn(_0x3119eb,_0xbe0d49,_0x400ed3){const _0x38cfc1=a227_0x28407d;if(isWindows()){const _0x39bcbd=escapeWindowsArg(_0x3119eb),_0x557e3b=_0xbe0d49[_0x38cfc1(0xa7)](escapeWindowsArg),_0x45af03=[_0x39bcbd,..._0x557e3b][_0x38cfc1(0xb5)]('\x20');return spawn(_0x45af03,[],{..._0x400ed3,'shell':!![]});}return spawn(_0x3119eb,_0xbe0d49,{..._0x400ed3,'shell':![]});}export function gracefulExit(_0x3750b2=0x0){const _0x364f39=a227_0x28407d;isWindows()?setTimeout(()=>process[_0x364f39(0xc9)](_0x3750b2),0x32):process['exit'](_0x3750b2);}export function findExecutable(_0x6895c4,_0x2926c3=0x1388){return new Promise(_0x36d9d2=>{const _0x15f326=a227_0xbb03,_0xb85572=isWindows()?_0x15f326(0xb1):_0x15f326(0xc8);let _0x5dca32=![];const _0x1fde5f=crossSpawn(_0xb85572,[_0x6895c4],{'stdio':_0x15f326(0xcc),'shell':isWindows()}),_0x2977b9=setTimeout(()=>{const _0x1425d0=_0x15f326;!_0x5dca32&&(_0x5dca32=!![],_0x1fde5f[_0x1425d0(0xa3)](),_0x36d9d2(null));},_0x2926c3);let _0x5828c4='';_0x1fde5f[_0x15f326(0xb6)]?.['on'](_0x15f326(0xb4),_0xbdb6ba=>{_0x5828c4+=_0xbdb6ba['toString']();}),_0x1fde5f['stderr']?.['on'](_0x15f326(0xb4),()=>{}),_0x1fde5f['on'](_0x15f326(0xc9),_0x203c09=>{const _0x59383e=_0x15f326;if(_0x5dca32)return;_0x5dca32=!![],clearTimeout(_0x2977b9);if(_0x203c09===0x0&&_0x5828c4[_0x59383e(0xac)]()){const _0x19d7af=_0x5828c4[_0x59383e(0xac)]()[_0x59383e(0xb8)](/\r?\n/)[0x0];_0x36d9d2(_0x19d7af);}else _0x36d9d2(null);}),_0x1fde5f['on'](_0x15f326(0xd3),()=>{if(_0x5dca32)return;_0x5dca32=!![],clearTimeout(_0x2977b9),_0x36d9d2(null);});});}
@@ -1 +1 @@
1
- (function(_0x2f726e,_0x56738d){const _0x1da98d=a228_0x33c3,_0x421bb4=_0x2f726e();while(!![]){try{const _0x484fe5=-parseInt(_0x1da98d(0xd7))/0x1+-parseInt(_0x1da98d(0xd8))/0x2+-parseInt(_0x1da98d(0xdb))/0x3+-parseInt(_0x1da98d(0xcb))/0x4+-parseInt(_0x1da98d(0xdc))/0x5*(-parseInt(_0x1da98d(0xdd))/0x6)+-parseInt(_0x1da98d(0xd0))/0x7+-parseInt(_0x1da98d(0xd6))/0x8*(-parseInt(_0x1da98d(0xe0))/0x9);if(_0x484fe5===_0x56738d)break;else _0x421bb4['push'](_0x421bb4['shift']());}catch(_0x5be6d7){_0x421bb4['push'](_0x421bb4['shift']());}}}(a228_0x269a,0x1f1f2));import*as a228_0x86156e from'readline';function a228_0x33c3(_0x425d54,_0x3ac682){_0x425d54=_0x425d54-0xca;const _0x269add=a228_0x269a();let _0x33c355=_0x269add[_0x425d54];return _0x33c355;}import{gracefulExit}from'./process.js';function a228_0x269a(){const _0x54d231=['question','stdout','9kKfdTA','data','setEncoding','createInterface','668600WQUgFq','stderr','close','toLowerCase','write','144669wriSOK','yes','pause','setRawMode','resume','\x20(y/N):\x20','6347760YREHTj','86312xxAWbP','429632nnGrrY','isTTY','stdin','639840ydGJab','5qJEKPt','217374KdfSgb'];a228_0x269a=function(){return _0x54d231;};return a228_0x269a();}export function isInteractive(){const _0x4805c6=a228_0x33c3;return process[_0x4805c6(0xda)][_0x4805c6(0xd9)]===!![];}export async function confirm(_0x3c97dc){const _0x2d4603=a228_0x33c3,_0x54e01a=a228_0x86156e[_0x2d4603(0xca)]({'input':process['stdin'],'output':process[_0x2d4603(0xdf)]});return new Promise(_0x2e0d1c=>{const _0x3fe1ad=_0x2d4603;_0x54e01a[_0x3fe1ad(0xde)](_0x3c97dc+_0x3fe1ad(0xd5),_0x10284c=>{const _0x138b29=_0x3fe1ad;_0x54e01a[_0x138b29(0xcd)](),_0x2e0d1c(_0x10284c[_0x138b29(0xce)]()==='y'||_0x10284c[_0x138b29(0xce)]()===_0x138b29(0xd1));});});}export async function confirmKey(_0x3c3ee0){const _0x544d0=a228_0x33c3;if(!process['stdin'][_0x544d0(0xd9)])return![];return process['stderr']['write'](_0x3c3ee0+'\x20[y/N]\x20'),new Promise(_0x41c1af=>{const _0x1cf97a=_0x544d0,_0x133546=process[_0x1cf97a(0xda)];_0x133546[_0x1cf97a(0xd3)](!![]),_0x133546[_0x1cf97a(0xd4)](),_0x133546[_0x1cf97a(0xe2)]('utf8');const _0x2c3568=_0x37c59e=>{const _0xba16d8=_0x1cf97a;_0x133546[_0xba16d8(0xd3)](![]),_0x133546[_0xba16d8(0xd2)](),_0x133546['removeListener'](_0xba16d8(0xe1),_0x2c3568);if(_0x37c59e==='\x1b'){process['stderr']['write']('\x0a'),_0x41c1af(![]);return;}_0x37c59e==='\x03'&&(process[_0xba16d8(0xcc)][_0xba16d8(0xcf)]('\x0a'),gracefulExit(0x82));if(_0x37c59e[_0xba16d8(0xce)]()==='y'){process['stderr'][_0xba16d8(0xcf)]('y\x0a'),_0x41c1af(!![]);return;}process[_0xba16d8(0xcc)]['write']('\x0a'),_0x41c1af(![]);};_0x133546['on'](_0x1cf97a(0xe1),_0x2c3568);});}
1
+ (function(_0x5be420,_0x4833ef){const _0x125e08=a228_0x22d7,_0xb0b311=_0x5be420();while(!![]){try{const _0x2f4268=parseInt(_0x125e08(0xb0))/0x1+parseInt(_0x125e08(0xa1))/0x2+parseInt(_0x125e08(0xa6))/0x3+-parseInt(_0x125e08(0x9d))/0x4+-parseInt(_0x125e08(0xa9))/0x5*(parseInt(_0x125e08(0xa3))/0x6)+parseInt(_0x125e08(0xb5))/0x7*(-parseInt(_0x125e08(0x9c))/0x8)+parseInt(_0x125e08(0xa8))/0x9;if(_0x2f4268===_0x4833ef)break;else _0xb0b311['push'](_0xb0b311['shift']());}catch(_0x56a8e0){_0xb0b311['push'](_0xb0b311['shift']());}}}(a228_0x4ee7,0xf39dd));function a228_0x22d7(_0x5d104e,_0xba98bc){_0x5d104e=_0x5d104e-0x9c;const _0x4ee770=a228_0x4ee7();let _0x22d727=_0x4ee770[_0x5d104e];return _0x22d727;}import*as a228_0x5d756f from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x454d07=a228_0x22d7;return process[_0x454d07(0xb6)][_0x454d07(0xb1)]===!![];}export async function confirm(_0x4891cd){const _0x10ba44=a228_0x22d7,_0x400b00=a228_0x5d756f[_0x10ba44(0x9e)]({'input':process[_0x10ba44(0xb6)],'output':process[_0x10ba44(0xae)]});return new Promise(_0x499642=>{const _0x2de159=_0x10ba44;_0x400b00[_0x2de159(0xa2)](_0x4891cd+_0x2de159(0xab),_0x31ede7=>{const _0x122e24=_0x2de159;_0x400b00[_0x122e24(0x9f)](),_0x499642(_0x31ede7[_0x122e24(0xb4)]()==='y'||_0x31ede7['toLowerCase']()===_0x122e24(0xb2));});});}function a228_0x4ee7(){const _0x2e5b39=['isTTY','yes','\x20[y/N]\x20','toLowerCase','413iOARUO','stdin','237896GnyHEh','1839920hFvWTl','createInterface','close','stderr','1082420rOvSuE','question','84BGWzCM','resume','setRawMode','999480FXNPqf','pause','25639470pISprQ','599855wJHbKz','write','\x20(y/N):\x20','removeListener','utf8','stdout','data','1168710DHFYlE'];a228_0x4ee7=function(){return _0x2e5b39;};return a228_0x4ee7();}export async function confirmKey(_0x12d57a){const _0x5d38d6=a228_0x22d7;if(!process['stdin'][_0x5d38d6(0xb1)])return![];return process['stderr'][_0x5d38d6(0xaa)](_0x12d57a+_0x5d38d6(0xb3)),new Promise(_0x2e9218=>{const _0x5836ac=_0x5d38d6,_0x517c68=process[_0x5836ac(0xb6)];_0x517c68[_0x5836ac(0xa5)](!![]),_0x517c68[_0x5836ac(0xa4)](),_0x517c68['setEncoding'](_0x5836ac(0xad));const _0x51a693=_0x2761fe=>{const _0x4716c1=_0x5836ac;_0x517c68[_0x4716c1(0xa5)](![]),_0x517c68[_0x4716c1(0xa7)](),_0x517c68[_0x4716c1(0xac)](_0x4716c1(0xaf),_0x51a693);if(_0x2761fe==='\x1b'){process[_0x4716c1(0xa0)][_0x4716c1(0xaa)]('\x0a'),_0x2e9218(![]);return;}_0x2761fe==='\x03'&&(process['stderr'][_0x4716c1(0xaa)]('\x0a'),gracefulExit(0x82));if(_0x2761fe['toLowerCase']()==='y'){process[_0x4716c1(0xa0)][_0x4716c1(0xaa)]('y\x0a'),_0x2e9218(!![]);return;}process[_0x4716c1(0xa0)]['write']('\x0a'),_0x2e9218(![]);};_0x517c68['on'](_0x5836ac(0xaf),_0x51a693);});}
@@ -1 +1 @@
1
- (function(_0x8b0039,_0x235832){const _0xa16ffb=a229_0x69d0,_0x20a761=_0x8b0039();while(!![]){try{const _0x4667f1=-parseInt(_0xa16ffb(0x76))/0x1*(-parseInt(_0xa16ffb(0x79))/0x2)+parseInt(_0xa16ffb(0x80))/0x3+parseInt(_0xa16ffb(0x78))/0x4+parseInt(_0xa16ffb(0x6d))/0x5+-parseInt(_0xa16ffb(0x7c))/0x6+parseInt(_0xa16ffb(0x6a))/0x7*(parseInt(_0xa16ffb(0x6c))/0x8)+-parseInt(_0xa16ffb(0x6b))/0x9;if(_0x4667f1===_0x235832)break;else _0x20a761['push'](_0x20a761['shift']());}catch(_0x2ffd26){_0x20a761['push'](_0x20a761['shift']());}}}(a229_0x2449,0xee7e8));import a229_0x2b1b0 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x23a925,_0x155d71={}){const _0x38b4db=a229_0x69d0,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x155d71;return a229_0x2b1b0({'text':_0x23a925,'color':_0x38b4db(0x7e),'stream':process[_0x38b4db(0x82)],'isEnabled':forceEnabled||process[_0x38b4db(0x82)][_0x38b4db(0x71)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x58660a,_0xdf23c3,_0x3391ff={}){const _0x14be63=a229_0x69d0,_0x3da097=_0x3391ff[_0x14be63(0x77)]??(()=>Date['now']()),_0x52c4aa=createCommandSpinner(_0x58660a,_0x3391ff);_0x52c4aa[_0x14be63(0x81)]();const _0x4fb0b7=_0x3da097();try{const _0x2dc27c=await _0xdf23c3(),_0x43a506=_0x3da097()-_0x4fb0b7;return _0x52c4aa[_0x14be63(0x7f)](),{'data':_0x2dc27c,'elapsedMs':_0x43a506};}catch(_0x3e8ba2){_0x52c4aa[_0x14be63(0x7f)]();throw _0x3e8ba2;}}export async function withProgressSpinner(_0x2da33a,_0x3e38f0,_0x23f875={}){const _0x53dc82=a229_0x69d0,_0x59b86c=_0x23f875[_0x53dc82(0x77)]??(()=>Date['now']()),_0x2212d7=_0x23f875['intervalFactory']??setInterval,_0x5ecfa3=createCommandSpinner(_0x2da33a,_0x23f875);_0x5ecfa3[_0x53dc82(0x81)]();const _0x7c384a=_0x59b86c(),_0x11bec8=_0x2da33a[_0x53dc82(0x69)](_0x53dc82(0x7b),'')[_0x53dc82(0x6f)]()||_0x53dc82(0x72),_0x3110c6={};let _0x51d0a0=_0x2da33a;const _0x14f74e=()=>{const _0x5ac2e1=_0x53dc82;if(!_0x5ecfa3[_0x5ac2e1(0x68)])return;const _0x55fd36=_0x59b86c()-_0x7c384a,_0x495587=formatElapsed(_0x55fd36),_0x4e3701=_0x3110c6['phase']?.[_0x5ac2e1(0x6f)]()||_0x11bec8,_0x222e5d=_0x3110c6['jobId']?_0x5ac2e1(0x7d)+_0x3110c6[_0x5ac2e1(0x70)]+']':'',_0x134038=_0x3110c6[_0x5ac2e1(0x75)]?'\x20'+_0x3110c6['extra']:'',_0x3cd0f5=_0x4e3701+'\x20'+_0x495587+_0x134038+_0x222e5d;_0x3cd0f5!==_0x51d0a0&&_0x3cd0f5[_0x5ac2e1(0x6f)]()&&(_0x5ecfa3[_0x5ac2e1(0x73)]=_0x3cd0f5,_0x51d0a0=_0x3cd0f5);},_0x56bcf1=_0x2212d7(()=>{_0x14f74e();},0x3e8),_0x16f72c={'setPhase':_0x4262d6=>{const _0x309adc=_0x53dc82;_0x3110c6[_0x309adc(0x6e)]=_0x4262d6;const _0x450590=_0x4262d6?.[_0x309adc(0x6f)]()||_0x11bec8,_0x369110=_0x59b86c()-_0x7c384a,_0x358d6d=formatElapsed(_0x369110),_0x5bbf9a=_0x3110c6[_0x309adc(0x70)]?'\x20[Job\x20ID:\x20'+_0x3110c6[_0x309adc(0x70)]+']':'',_0x1d36f6=_0x3110c6['extra']?'\x20'+_0x3110c6['extra']:'',_0x3996e4=_0x450590+'\x20'+_0x358d6d+_0x1d36f6+_0x5bbf9a;_0x5ecfa3['isSpinning']&&_0x3996e4[_0x309adc(0x6f)]()&&(_0x5ecfa3['text']=_0x3996e4,_0x51d0a0=_0x3996e4);},'setJobId':_0x53b79c=>{const _0x5f58d6=_0x53dc82;_0x3110c6[_0x5f58d6(0x70)]=_0x53b79c,_0x14f74e();},'setExtra':_0x55ad4a=>{const _0x48cbef=_0x53dc82;_0x3110c6[_0x48cbef(0x75)]=_0x55ad4a,_0x14f74e();}};_0x14f74e();try{const _0x2079c2=await _0x3e38f0(_0x16f72c),_0xc76fc=_0x59b86c()-_0x7c384a;return{'data':_0x2079c2,'elapsedMs':_0xc76fc};}finally{clearInterval(_0x56bcf1),_0x5ecfa3[_0x53dc82(0x7f)]();}}export function formatElapsed(_0x3dce3c){const _0x1aed38=a229_0x69d0,_0x26ce79=Math[_0x1aed38(0x74)](_0x3dce3c/0x3e8);if(_0x26ce79<0x3c)return(_0x3dce3c/0x3e8)[_0x1aed38(0x7a)](0x1)+'s';const _0x5e7390=Math[_0x1aed38(0x74)](_0x26ce79/0x3c),_0x1fbea7=_0x26ce79%0x3c;if(_0x5e7390<0x3c)return _0x5e7390+'m\x20'+_0x1fbea7+'s';const _0x575ffc=Math['floor'](_0x5e7390/0x3c),_0x4dd650=_0x5e7390%0x3c;return _0x575ffc+'h\x20'+_0x4dd650+'m';}function a229_0x69d0(_0x45c66a,_0xc34634){_0x45c66a=_0x45c66a-0x68;const _0x244938=a229_0x2449();let _0x69d0b1=_0x244938[_0x45c66a];return _0x69d0b1;}function a229_0x2449(){const _0x13d834=['553FGyjjA','32174739AQHfLH','152968zRZyNw','7843290lxDIHL','phase','trim','jobId','isTTY','Processing','text','floor','extra','16649vtiKMH','clock','1934620FFytww','194bqDLlJ','toFixed','...','6337188HCBPsE','\x20[Job\x20ID:\x20','cyan','stop','1290648LZMqJT','start','stderr','isSpinning','replace'];a229_0x2449=function(){return _0x13d834;};return a229_0x2449();}
1
+ function a229_0x3842(_0x40760a,_0x43346a){_0x40760a=_0x40760a-0x1c6;const _0x30ddef=a229_0x30dd();let _0x3842a4=_0x30ddef[_0x40760a];return _0x3842a4;}(function(_0x34af5e,_0x463298){const _0x2da727=a229_0x3842,_0x191767=_0x34af5e();while(!![]){try{const _0x59cc4e=-parseInt(_0x2da727(0x1d4))/0x1+-parseInt(_0x2da727(0x1e0))/0x2+parseInt(_0x2da727(0x1d9))/0x3+-parseInt(_0x2da727(0x1db))/0x4+parseInt(_0x2da727(0x1d3))/0x5+parseInt(_0x2da727(0x1d8))/0x6*(-parseInt(_0x2da727(0x1ce))/0x7)+parseInt(_0x2da727(0x1dc))/0x8;if(_0x59cc4e===_0x463298)break;else _0x191767['push'](_0x191767['shift']());}catch(_0x48eaef){_0x191767['push'](_0x191767['shift']());}}}(a229_0x30dd,0xa65d3));import a229_0xbd6cd7 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};function a229_0x30dd(){const _0x40fb03=['extra','start','intervalFactory','isTTY','cyan','clock','floor','308VvsIVq','phase','isSpinning','Processing','jobId','5904890rhUnEh','448660lkuoap','stderr','replace','now','137724ZwUmDl','14355SeFGul','text','563616ODjWHM','19619632FhUUaB','\x20[Job\x20ID:\x20','trim','stop','2714500mWlNCT','...'];a229_0x30dd=function(){return _0x40fb03;};return a229_0x30dd();}export function createCommandSpinner(_0x84137c,_0x1bfd18={}){const _0x16013e=a229_0x3842,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1bfd18;return a229_0xbd6cd7({'text':_0x84137c,'color':_0x16013e(0x1cb),'stream':process[_0x16013e(0x1d5)],'isEnabled':forceEnabled||process['stderr'][_0x16013e(0x1ca)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x4d2598,_0x5f8bf3,_0x4550fb={}){const _0x56739b=a229_0x3842,_0x1b58f1=_0x4550fb[_0x56739b(0x1cc)]??(()=>Date['now']()),_0x54037f=createCommandSpinner(_0x4d2598,_0x4550fb);_0x54037f['start']();const _0x34d060=_0x1b58f1();try{const _0x1046a9=await _0x5f8bf3(),_0x263d5a=_0x1b58f1()-_0x34d060;return _0x54037f[_0x56739b(0x1df)](),{'data':_0x1046a9,'elapsedMs':_0x263d5a};}catch(_0x4b87c9){_0x54037f[_0x56739b(0x1df)]();throw _0x4b87c9;}}export async function withProgressSpinner(_0x53ae6f,_0x275a30,_0xe8b5dc={}){const _0x35d5e3=a229_0x3842,_0x2eecbc=_0xe8b5dc[_0x35d5e3(0x1cc)]??(()=>Date[_0x35d5e3(0x1d7)]()),_0x1b007f=_0xe8b5dc[_0x35d5e3(0x1c9)]??setInterval,_0x2bd49c=createCommandSpinner(_0x53ae6f,_0xe8b5dc);_0x2bd49c[_0x35d5e3(0x1c8)]();const _0x29b4b7=_0x2eecbc(),_0x150efa=_0x53ae6f[_0x35d5e3(0x1d6)](_0x35d5e3(0x1c6),'')[_0x35d5e3(0x1de)]()||_0x35d5e3(0x1d1),_0x4fb16d={};let _0x56dd5d=_0x53ae6f;const _0x4eee3f=()=>{const _0x27761f=_0x35d5e3;if(!_0x2bd49c[_0x27761f(0x1d0)])return;const _0x1e1068=_0x2eecbc()-_0x29b4b7,_0x22dab4=formatElapsed(_0x1e1068),_0x1b2f2c=_0x4fb16d[_0x27761f(0x1cf)]?.['trim']()||_0x150efa,_0x43c41c=_0x4fb16d[_0x27761f(0x1d2)]?_0x27761f(0x1dd)+_0x4fb16d[_0x27761f(0x1d2)]+']':'',_0x3a3759=_0x4fb16d[_0x27761f(0x1c7)]?'\x20'+_0x4fb16d[_0x27761f(0x1c7)]:'',_0x157453=_0x1b2f2c+'\x20'+_0x22dab4+_0x3a3759+_0x43c41c;_0x157453!==_0x56dd5d&&_0x157453[_0x27761f(0x1de)]()&&(_0x2bd49c['text']=_0x157453,_0x56dd5d=_0x157453);},_0xd85d15=_0x1b007f(()=>{_0x4eee3f();},0x3e8),_0x93adab={'setPhase':_0x4cf011=>{const _0x561a46=_0x35d5e3;_0x4fb16d['phase']=_0x4cf011;const _0x28a2bc=_0x4cf011?.[_0x561a46(0x1de)]()||_0x150efa,_0x2d41d9=_0x2eecbc()-_0x29b4b7,_0x126184=formatElapsed(_0x2d41d9),_0xcb8321=_0x4fb16d[_0x561a46(0x1d2)]?'\x20[Job\x20ID:\x20'+_0x4fb16d[_0x561a46(0x1d2)]+']':'',_0x11dd3f=_0x4fb16d['extra']?'\x20'+_0x4fb16d[_0x561a46(0x1c7)]:'',_0x8d43c8=_0x28a2bc+'\x20'+_0x126184+_0x11dd3f+_0xcb8321;_0x2bd49c[_0x561a46(0x1d0)]&&_0x8d43c8[_0x561a46(0x1de)]()&&(_0x2bd49c[_0x561a46(0x1da)]=_0x8d43c8,_0x56dd5d=_0x8d43c8);},'setJobId':_0x150483=>{const _0x50dcd7=_0x35d5e3;_0x4fb16d[_0x50dcd7(0x1d2)]=_0x150483,_0x4eee3f();},'setExtra':_0x1564a2=>{const _0x435746=_0x35d5e3;_0x4fb16d[_0x435746(0x1c7)]=_0x1564a2,_0x4eee3f();}};_0x4eee3f();try{const _0xf3b6c2=await _0x275a30(_0x93adab),_0x213984=_0x2eecbc()-_0x29b4b7;return{'data':_0xf3b6c2,'elapsedMs':_0x213984};}finally{clearInterval(_0xd85d15),_0x2bd49c[_0x35d5e3(0x1df)]();}}export function formatElapsed(_0x25fe7b){const _0x20e264=a229_0x3842,_0x489366=Math[_0x20e264(0x1cd)](_0x25fe7b/0x3e8);if(_0x489366<0x3c)return(_0x25fe7b/0x3e8)['toFixed'](0x1)+'s';const _0x54034c=Math[_0x20e264(0x1cd)](_0x489366/0x3c),_0x1e6851=_0x489366%0x3c;if(_0x54034c<0x3c)return _0x54034c+'m\x20'+_0x1e6851+'s';const _0x466846=Math[_0x20e264(0x1cd)](_0x54034c/0x3c),_0x58b70c=_0x54034c%0x3c;return _0x466846+'h\x20'+_0x58b70c+'m';}
@@ -1 +1 @@
1
- (function(_0xc6f135,_0x26ee3c){const _0x6c8e1=a230_0x4f2c,_0x26307e=_0xc6f135();while(!![]){try{const _0x4480a9=-parseInt(_0x6c8e1(0x121))/0x1*(-parseInt(_0x6c8e1(0x11e))/0x2)+-parseInt(_0x6c8e1(0x12d))/0x3+parseInt(_0x6c8e1(0x11d))/0x4+parseInt(_0x6c8e1(0x130))/0x5+parseInt(_0x6c8e1(0x125))/0x6+-parseInt(_0x6c8e1(0x12b))/0x7+-parseInt(_0x6c8e1(0x11b))/0x8*(-parseInt(_0x6c8e1(0x129))/0x9);if(_0x4480a9===_0x26ee3c)break;else _0x26307e['push'](_0x26307e['shift']());}catch(_0x55a161){_0x26307e['push'](_0x26307e['shift']());}}}(a230_0xbb99,0x30d9d));export async function*parseSSEStream(_0x189c4e,_0x566884){const _0x1b6ed2=a230_0x4f2c;if(!_0x189c4e[_0x1b6ed2(0x131)])throw new Error(_0x1b6ed2(0x120));const _0x86f7b8=_0x189c4e['body'][_0x1b6ed2(0x126)](),_0x28359d=new TextDecoder();let _0x43be5b='',_0x3649b1={};try{while(!![]){const {done:_0x31fcab,value:_0x1dfc73}=await _0x86f7b8[_0x1b6ed2(0x123)]();if(_0x31fcab){if(_0x3649b1[_0x1b6ed2(0x127)]){_0x566884?.[_0x1b6ed2(0x12c)](_0x1b6ed2(0x11c)+_0x3649b1[_0x1b6ed2(0x127)]);const _0x24eb4d=parseSSEData(_0x3649b1['data']);yield _0x24eb4d;}break;}_0x43be5b+=_0x28359d['decode'](_0x1dfc73,{'stream':!![]});const _0x34e6c4=_0x43be5b[_0x1b6ed2(0x12e)]('\x0a');_0x43be5b=_0x34e6c4[_0x1b6ed2(0x11f)]()||'';for(const _0x5e17d1 of _0x34e6c4){if(_0x5e17d1['trim']()===''){if(_0x3649b1['data']){_0x566884?.['debug'](_0x1b6ed2(0x11c)+_0x3649b1['data']);const _0x4dbc8e=parseSSEData(_0x3649b1[_0x1b6ed2(0x127)]);yield _0x4dbc8e,_0x3649b1={};}continue;}if(_0x5e17d1[_0x1b6ed2(0x128)](':'))continue;const _0x43096b=_0x5e17d1['indexOf'](':');if(_0x43096b===-0x1)continue;const _0x508feb=_0x5e17d1[_0x1b6ed2(0x12a)](0x0,_0x43096b);let _0x3fbbb5=_0x5e17d1['slice'](_0x43096b+0x1);_0x3fbbb5[_0x1b6ed2(0x128)]('\x20')&&(_0x3fbbb5=_0x3fbbb5['slice'](0x1));switch(_0x508feb){case _0x1b6ed2(0x124):_0x3649b1[_0x1b6ed2(0x124)]=_0x3fbbb5;break;case _0x1b6ed2(0x127):_0x3649b1[_0x1b6ed2(0x127)]=_0x3649b1[_0x1b6ed2(0x127)]?_0x3649b1[_0x1b6ed2(0x127)]+'\x0a'+_0x3fbbb5:_0x3fbbb5;break;case'id':_0x3649b1['id']=_0x3fbbb5;break;}}}}finally{_0x86f7b8[_0x1b6ed2(0x122)]();}}function a230_0xbb99(){const _0x45ab0a=['split','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1003965YZXfGU','body','2265224AGmzjc','[LLM\x20API\x20SSE]\x20','925592MkGnev','698XzYXfC','pop','Response\x20body\x20is\x20null','79PfrOfk','releaseLock','read','event','1329264iKvAZS','getReader','data','startsWith','9ellFIM','slice','2750188ZxHBdD','debug','1114446OSkDwF'];a230_0xbb99=function(){return _0x45ab0a;};return a230_0xbb99();}function a230_0x4f2c(_0x461bb9,_0x232704){_0x461bb9=_0x461bb9-0x11b;const _0xbb99da=a230_0xbb99();let _0x4f2c8e=_0xbb99da[_0x461bb9];return _0x4f2c8e;}function parseSSEData(_0x4d6b34){const _0x339d81=a230_0x4f2c;try{return JSON['parse'](_0x4d6b34);}catch(_0x87573c){throw new Error(_0x339d81(0x12f)+_0x4d6b34,{'cause':_0x87573c});}}
1
+ (function(_0x283ad7,_0x531937){const _0x25cbcb=a230_0x284b,_0x277d27=_0x283ad7();while(!![]){try{const _0xdc938e=-parseInt(_0x25cbcb(0x11d))/0x1+parseInt(_0x25cbcb(0x12c))/0x2*(parseInt(_0x25cbcb(0x126))/0x3)+parseInt(_0x25cbcb(0x128))/0x4+-parseInt(_0x25cbcb(0x11f))/0x5+parseInt(_0x25cbcb(0x127))/0x6+parseInt(_0x25cbcb(0x12f))/0x7+parseInt(_0x25cbcb(0x122))/0x8*(parseInt(_0x25cbcb(0x124))/0x9);if(_0xdc938e===_0x531937)break;else _0x277d27['push'](_0x277d27['shift']());}catch(_0x209d1f){_0x277d27['push'](_0x277d27['shift']());}}}(a230_0x2f4b,0x20a4b));function a230_0x2f4b(){const _0x4f1de9=['1023805KtypaM','indexOf','data','1709256WHjRUN','pop','9lTdoJm','parse','993fHkxUx','162840gJITxF','86876bhhqnq','body','read','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1158lxfKJs','Response\x20body\x20is\x20null','slice','822997grkEcl','[LLM\x20API\x20SSE]\x20','debug','decode','event','startsWith','split','233268XsTMbX','trim'];a230_0x2f4b=function(){return _0x4f1de9;};return a230_0x2f4b();}export async function*parseSSEStream(_0x576c00,_0x2f2d34){const _0x168d1d=a230_0x284b;if(!_0x576c00['body'])throw new Error(_0x168d1d(0x12d));const _0xc46a6b=_0x576c00[_0x168d1d(0x129)]['getReader'](),_0x4f3de9=new TextDecoder();let _0x276591='',_0x48f2a8={};try{while(!![]){const {done:_0x574067,value:_0x3524fd}=await _0xc46a6b[_0x168d1d(0x12a)]();if(_0x574067){if(_0x48f2a8['data']){_0x2f2d34?.['debug'](_0x168d1d(0x130)+_0x48f2a8['data']);const _0x4eb258=parseSSEData(_0x48f2a8[_0x168d1d(0x121)]);yield _0x4eb258;}break;}_0x276591+=_0x4f3de9[_0x168d1d(0x119)](_0x3524fd,{'stream':!![]});const _0x1883c6=_0x276591[_0x168d1d(0x11c)]('\x0a');_0x276591=_0x1883c6[_0x168d1d(0x123)]()||'';for(const _0x3b13b2 of _0x1883c6){if(_0x3b13b2[_0x168d1d(0x11e)]()===''){if(_0x48f2a8[_0x168d1d(0x121)]){_0x2f2d34?.[_0x168d1d(0x118)]('[LLM\x20API\x20SSE]\x20'+_0x48f2a8['data']);const _0x1536de=parseSSEData(_0x48f2a8['data']);yield _0x1536de,_0x48f2a8={};}continue;}if(_0x3b13b2[_0x168d1d(0x11b)](':'))continue;const _0x91539d=_0x3b13b2[_0x168d1d(0x120)](':');if(_0x91539d===-0x1)continue;const _0x5cd918=_0x3b13b2['slice'](0x0,_0x91539d);let _0x483b74=_0x3b13b2[_0x168d1d(0x12e)](_0x91539d+0x1);_0x483b74[_0x168d1d(0x11b)]('\x20')&&(_0x483b74=_0x483b74[_0x168d1d(0x12e)](0x1));switch(_0x5cd918){case _0x168d1d(0x11a):_0x48f2a8['event']=_0x483b74;break;case _0x168d1d(0x121):_0x48f2a8[_0x168d1d(0x121)]=_0x48f2a8[_0x168d1d(0x121)]?_0x48f2a8[_0x168d1d(0x121)]+'\x0a'+_0x483b74:_0x483b74;break;case'id':_0x48f2a8['id']=_0x483b74;break;}}}}finally{_0xc46a6b['releaseLock']();}}function a230_0x284b(_0x3004dc,_0x10055a){_0x3004dc=_0x3004dc-0x118;const _0x2f4bb8=a230_0x2f4b();let _0x284b92=_0x2f4bb8[_0x3004dc];return _0x284b92;}function parseSSEData(_0x25f8b0){const _0x5e7718=a230_0x284b;try{return JSON[_0x5e7718(0x125)](_0x25f8b0);}catch(_0x459629){throw new Error(_0x5e7718(0x12b)+_0x25f8b0,{'cause':_0x459629});}}
@@ -1 +1 @@
1
- (function(_0x25968d,_0x3f028a){const _0xb4200d=a231_0x3014,_0xcc812d=_0x25968d();while(!![]){try{const _0x551751=parseInt(_0xb4200d(0x1a0))/0x1+parseInt(_0xb4200d(0x19c))/0x2*(parseInt(_0xb4200d(0x1a4))/0x3)+-parseInt(_0xb4200d(0x1a3))/0x4*(parseInt(_0xb4200d(0x197))/0x5)+-parseInt(_0xb4200d(0x1a9))/0x6+-parseInt(_0xb4200d(0x1a8))/0x7+parseInt(_0xb4200d(0x1a2))/0x8+parseInt(_0xb4200d(0x1a6))/0x9;if(_0x551751===_0x3f028a)break;else _0xcc812d['push'](_0xcc812d['shift']());}catch(_0x4da3d8){_0xcc812d['push'](_0xcc812d['shift']());}}}(a231_0x4213,0x791f1));import a231_0x304158 from'string-width';function a231_0x3014(_0x5549f1,_0x56197f){_0x5549f1=_0x5549f1-0x197;const _0x421375=a231_0x4213();let _0x301432=_0x421375[_0x5549f1];return _0x301432;}export function stringWidth(_0xac49c0){return a231_0x304158(_0xac49c0);}export function padEnd(_0x4e65d2,_0x1eccf2){const _0x140029=a231_0x3014,_0x448b5c=stringWidth(_0x4e65d2);if(_0x448b5c>=_0x1eccf2)return _0x4e65d2;return _0x4e65d2+'\x20'[_0x140029(0x1ad)](_0x1eccf2-_0x448b5c);}export function padStart(_0x12e82e,_0x1a02a5){const _0x400c7c=a231_0x3014,_0x11cd14=stringWidth(_0x12e82e);if(_0x11cd14>=_0x1a02a5)return _0x12e82e;return'\x20'[_0x400c7c(0x1ad)](_0x1a02a5-_0x11cd14)+_0x12e82e;}export function centerAlign(_0xe1c415,_0x402db1){const _0x4e07dc=a231_0x3014,_0x48f4cc=stringWidth(_0xe1c415);if(_0x48f4cc>_0x402db1){if(_0x402db1<=0x1)return'…'[_0x4e07dc(0x1a7)](0x0,_0x402db1);let _0x3b2362=_0xe1c415;while(stringWidth(_0x3b2362+'…')>_0x402db1){_0x3b2362=_0x3b2362[_0x4e07dc(0x198)](0x0,-0x1);}return _0x3b2362+'…';}if(_0x48f4cc===_0x402db1)return _0xe1c415;const _0x236eb9=_0x402db1-_0x48f4cc,_0x25207e=Math[_0x4e07dc(0x1ab)](_0x236eb9/0x2),_0x498762=_0x236eb9-_0x25207e;return'\x20'[_0x4e07dc(0x1ad)](_0x25207e)+_0xe1c415+'\x20'['repeat'](_0x498762);}export function escapeStringLiteral(_0x1a4de9){const _0x42ebb5=a231_0x3014;if(!_0x1a4de9||_0x1a4de9['trim']()['length']===0x0)throw new Error(_0x42ebb5(0x199));const _0x3069a8=_0x1a4de9[_0x42ebb5(0x19a)](/'/g,'\x27\x27');return'\x27'+_0x3069a8+'\x27';}export function globToLike(_0x20dc51){const _0x233d65=a231_0x3014;let _0x48fe5d=_0x20dc51[_0x233d65(0x19a)](/\\/g,'\x5c\x5c')[_0x233d65(0x19a)](/%/g,'\x5c%')[_0x233d65(0x19a)](/_/g,'\x5c_');return _0x48fe5d=_0x48fe5d[_0x233d65(0x19a)](/\*/g,'%')[_0x233d65(0x19a)](/\?/g,'_'),_0x48fe5d;}function a231_0x4213(){const _0x334e01=['test','474398afbZvK','toLowerCase','3594416OEFzvu','8YTfnvc','3RKdWwE','trim','11078811YQwrfs','substring','5485179SUSMEv','3477804tcoJTA','padStart','floor','length','repeat','2120620KZmUYW','slice','Cannot\x20escape\x20empty\x20string\x20literal','replace','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1105826WRWeyV','unknown','\x5c$&'];a231_0x4213=function(){return _0x334e01;};return a231_0x4213();}export function buildLikePattern(_0x5c435c){const _0x24de3b=a231_0x3014;if(!_0x5c435c||_0x5c435c[_0x24de3b(0x1a5)]()[_0x24de3b(0x1ac)]===0x0)throw new Error(_0x24de3b(0x19b));const _0x32d144=globToLike(_0x5c435c),_0x14942a=_0x32d144[_0x24de3b(0x19a)](/'/g,'\x27\x27');return'\x27'+_0x14942a+'\x27';}export function matchGlobPattern(_0x468703,_0x541c5e){const _0x3f6dd1=a231_0x3014,_0x24f78f=_0x541c5e[_0x3f6dd1(0x19a)](/[.+^${}()|[\]\\]/g,_0x3f6dd1(0x19e))[_0x3f6dd1(0x19a)](/\*/g,'.*')[_0x3f6dd1(0x19a)](/\?/g,'.'),_0x51045f=new RegExp('^'+_0x24f78f+'$');return _0x51045f[_0x3f6dd1(0x19f)](_0x468703);}export function getSanitizedUsername(){const _0x246689=a231_0x3014,_0x17ee4c=process.env.USER||process.env.USERNAME||_0x246689(0x19d);return _0x17ee4c[_0x246689(0x19a)](/[^a-zA-Z0-9]/g,'')[_0x246689(0x1a1)]();}export function generateRandomHex(){const _0x1f998a=a231_0x3014,_0xa0e778=Math[_0x1f998a(0x1ab)](Math['random']()*0xfffff);return _0xa0e778['toString'](0x10)[_0x1f998a(0x1aa)](0x5,'0');}export function sanitizeFileName(_0x38fb2e){const _0xf7fac7=a231_0x3014;return _0x38fb2e[_0xf7fac7(0x1a1)]()['replace'](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0xf7fac7(0x19a)](/-+/g,'-')[_0xf7fac7(0x19a)](/^-|-$/g,'');}
1
+ function a231_0x2f0a(_0x2b3e8f,_0x40ea89){_0x2b3e8f=_0x2b3e8f-0x8a;const _0x4e4f32=a231_0x4e4f();let _0x2f0ad6=_0x4e4f32[_0x2b3e8f];return _0x2f0ad6;}(function(_0x36c4af,_0x5d2dd6){const _0x39ef8c=a231_0x2f0a,_0x5df18d=_0x36c4af();while(!![]){try{const _0x5bc9cf=parseInt(_0x39ef8c(0x9e))/0x1*(-parseInt(_0x39ef8c(0x97))/0x2)+-parseInt(_0x39ef8c(0x91))/0x3+parseInt(_0x39ef8c(0x96))/0x4*(parseInt(_0x39ef8c(0x8b))/0x5)+parseInt(_0x39ef8c(0x8c))/0x6*(-parseInt(_0x39ef8c(0x8e))/0x7)+parseInt(_0x39ef8c(0x92))/0x8+parseInt(_0x39ef8c(0x9f))/0x9*(parseInt(_0x39ef8c(0xa0))/0xa)+-parseInt(_0x39ef8c(0x8f))/0xb*(parseInt(_0x39ef8c(0x95))/0xc);if(_0x5bc9cf===_0x5d2dd6)break;else _0x5df18d['push'](_0x5df18d['shift']());}catch(_0x471673){_0x5df18d['push'](_0x5df18d['shift']());}}}(a231_0x4e4f,0x8b0d6));import a231_0x7e840f from'string-width';export function stringWidth(_0x43a608){return a231_0x7e840f(_0x43a608);}export function padEnd(_0xacc2f7,_0x55f901){const _0x5b9e70=stringWidth(_0xacc2f7);if(_0x5b9e70>=_0x55f901)return _0xacc2f7;return _0xacc2f7+'\x20'['repeat'](_0x55f901-_0x5b9e70);}export function padStart(_0x394bd4,_0xba1082){const _0x44784f=stringWidth(_0x394bd4);if(_0x44784f>=_0xba1082)return _0x394bd4;return'\x20'['repeat'](_0xba1082-_0x44784f)+_0x394bd4;}function a231_0x4e4f(){const _0x11bd63=['trim','7dBqIxy','2924471WWZPkn','repeat','1653042MvuQoZ','2778184YETXrw','floor','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','12NPEoDn','4NJHtCX','366566AIXzRH','length','unknown','\x5c$&','replace','Cannot\x20escape\x20empty\x20string\x20literal','toString','1PmDZOI','270324UCCgxK','260UdTDmZ','toLowerCase','2987725MhMBXh','936228mWERbA'];a231_0x4e4f=function(){return _0x11bd63;};return a231_0x4e4f();}export function centerAlign(_0x2d8a42,_0x972dee){const _0x66e840=a231_0x2f0a,_0x43b2e8=stringWidth(_0x2d8a42);if(_0x43b2e8>_0x972dee){if(_0x972dee<=0x1)return'…'['substring'](0x0,_0x972dee);let _0x57266f=_0x2d8a42;while(stringWidth(_0x57266f+'…')>_0x972dee){_0x57266f=_0x57266f['slice'](0x0,-0x1);}return _0x57266f+'…';}if(_0x43b2e8===_0x972dee)return _0x2d8a42;const _0xc366b5=_0x972dee-_0x43b2e8,_0x16c37e=Math[_0x66e840(0x93)](_0xc366b5/0x2),_0x3bdcb8=_0xc366b5-_0x16c37e;return'\x20'[_0x66e840(0x90)](_0x16c37e)+_0x2d8a42+'\x20'[_0x66e840(0x90)](_0x3bdcb8);}export function escapeStringLiteral(_0x58d1b1){const _0xf4117f=a231_0x2f0a;if(!_0x58d1b1||_0x58d1b1[_0xf4117f(0x8d)]()[_0xf4117f(0x98)]===0x0)throw new Error(_0xf4117f(0x9c));const _0xd0c94d=_0x58d1b1[_0xf4117f(0x9b)](/'/g,'\x27\x27');return'\x27'+_0xd0c94d+'\x27';}export function globToLike(_0x48ef3e){const _0x4ec9a3=a231_0x2f0a;let _0x2a7504=_0x48ef3e[_0x4ec9a3(0x9b)](/\\/g,'\x5c\x5c')[_0x4ec9a3(0x9b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x2a7504=_0x2a7504['replace'](/\*/g,'%')[_0x4ec9a3(0x9b)](/\?/g,'_'),_0x2a7504;}export function buildLikePattern(_0x4b4e35){const _0x138afd=a231_0x2f0a;if(!_0x4b4e35||_0x4b4e35['trim']()[_0x138afd(0x98)]===0x0)throw new Error(_0x138afd(0x94));const _0x55de45=globToLike(_0x4b4e35),_0x39544b=_0x55de45['replace'](/'/g,'\x27\x27');return'\x27'+_0x39544b+'\x27';}export function matchGlobPattern(_0x28a5af,_0x33dcfc){const _0x6d7ed4=a231_0x2f0a,_0x353774=_0x33dcfc['replace'](/[.+^${}()|[\]\\]/g,_0x6d7ed4(0x9a))[_0x6d7ed4(0x9b)](/\*/g,'.*')[_0x6d7ed4(0x9b)](/\?/g,'.'),_0x17a4f4=new RegExp('^'+_0x353774+'$');return _0x17a4f4['test'](_0x28a5af);}export function getSanitizedUsername(){const _0x530179=a231_0x2f0a,_0x297412=process.env.USER||process.env.USERNAME||_0x530179(0x99);return _0x297412['replace'](/[^a-zA-Z0-9]/g,'')[_0x530179(0x8a)]();}export function generateRandomHex(){const _0x11f4ae=a231_0x2f0a,_0x343bd3=Math[_0x11f4ae(0x93)](Math['random']()*0xfffff);return _0x343bd3[_0x11f4ae(0x9d)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x204506){const _0x5120f1=a231_0x2f0a;return _0x204506[_0x5120f1(0x8a)]()[_0x5120f1(0x9b)](/[/\\:*?"<>|]/g,'-')[_0x5120f1(0x9b)](/\s+/g,'-')[_0x5120f1(0x9b)](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x4698d9,_0x58d32e){const _0x4858a4=a232_0x6d44,_0x420bb8=_0x4698d9();while(!![]){try{const _0x3cbbd6=-parseInt(_0x4858a4(0xe6))/0x1+parseInt(_0x4858a4(0xdf))/0x2+-parseInt(_0x4858a4(0xeb))/0x3*(-parseInt(_0x4858a4(0xd7))/0x4)+-parseInt(_0x4858a4(0xde))/0x5*(-parseInt(_0x4858a4(0xdb))/0x6)+-parseInt(_0x4858a4(0xe5))/0x7*(parseInt(_0x4858a4(0xe3))/0x8)+-parseInt(_0x4858a4(0xe1))/0x9*(parseInt(_0x4858a4(0xd5))/0xa)+parseInt(_0x4858a4(0xe4))/0xb*(parseInt(_0x4858a4(0xd8))/0xc);if(_0x3cbbd6===_0x58d32e)break;else _0x420bb8['push'](_0x420bb8['shift']());}catch(_0x56d11d){_0x420bb8['push'](_0x420bb8['shift']());}}}(a232_0x39b7,0xdb161));function hasWildcard(_0x4e3636){const _0xc3f7b5=a232_0x6d44;return _0x4e3636[_0xc3f7b5(0xe8)]('*')||_0x4e3636['includes']('?');}function a232_0x39b7(){const _0x327cb0=['catalog','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','59810fMzLdz','2618122jBBHrY','database','31554MiOsnH','table','6975536SOeUAA','18057083imnUxg','14LLSyPM','1643413THqiTf','trim','includes','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','216dbvDYR','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','split','1230vjNYTn','join','7028THqXBD','12NFwGWS','push','length','822ULHTRj'];a232_0x39b7=function(){return _0x327cb0;};return a232_0x39b7();}export function parseTableReference(_0x32fece){const _0x546d8f=a232_0x6d44;if(!_0x32fece||_0x32fece['trim']()[_0x546d8f(0xda)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x3da84e=_0x32fece[_0x546d8f(0xe7)](),_0x161352={'original':_0x3da84e},_0x3529b4=_0x3da84e[_0x546d8f(0xd4)]('.');if(_0x3529b4[_0x546d8f(0xda)]===0x1){const _0x5a67b2=_0x3529b4[0x0];if(!_0x5a67b2)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x161352['table']=_0x5a67b2;}else{if(_0x3529b4['length']===0x2){const [_0x10c3ee,_0x760966]=_0x3529b4;if(!_0x10c3ee)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x760966)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x161352[_0x546d8f(0xe0)]=_0x10c3ee,_0x161352[_0x546d8f(0xe2)]=_0x760966;}else{if(_0x3529b4['length']===0x3){const [_0x3ff39a,_0x2fa76f,_0x1d3cfa]=_0x3529b4;if(!_0x3ff39a||!_0x2fa76f||!_0x1d3cfa)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x161352[_0x546d8f(0xdc)]=_0x3ff39a,_0x161352['database']=_0x2fa76f,_0x161352[_0x546d8f(0xe2)]=_0x1d3cfa;}else throw new Error(_0x546d8f(0xdd));}}return _0x161352;}function a232_0x6d44(_0x48fead,_0x18e4a2){_0x48fead=_0x48fead-0xd4;const _0x39b78a=a232_0x39b7();let _0x6d444e=_0x39b78a[_0x48fead];return _0x6d444e;}export function formatTableReference(_0x36a970){const _0x48e194=a232_0x6d44,_0x4e3643=[];return _0x36a970['catalog']&&_0x4e3643[_0x48e194(0xd9)](_0x36a970['catalog']),_0x36a970[_0x48e194(0xe0)]&&_0x4e3643[_0x48e194(0xd9)](_0x36a970['database']),_0x36a970[_0x48e194(0xe2)]&&_0x4e3643[_0x48e194(0xd9)](_0x36a970[_0x48e194(0xe2)]),_0x4e3643[_0x48e194(0xd6)]('.');}export function validateTableListReference(_0x18e065){return undefined;}export function validateTableDescribeReference(_0x317950){const _0x22df0b=a232_0x6d44;if(!_0x317950[_0x22df0b(0xe2)])return _0x22df0b(0xe9);if(_0x317950[_0x22df0b(0xe0)]&&hasWildcard(_0x317950['database']))return _0x22df0b(0xec);if(hasWildcard(_0x317950['table']))return _0x22df0b(0xea);return undefined;}
1
+ (function(_0x3aeba6,_0x368ee1){const _0x5493fe=a232_0x5a29,_0x460fb7=_0x3aeba6();while(!![]){try{const _0x340138=-parseInt(_0x5493fe(0x1fe))/0x1+-parseInt(_0x5493fe(0x1f2))/0x2+-parseInt(_0x5493fe(0x204))/0x3+parseInt(_0x5493fe(0x1f7))/0x4+-parseInt(_0x5493fe(0x1ee))/0x5*(parseInt(_0x5493fe(0x1f8))/0x6)+-parseInt(_0x5493fe(0x201))/0x7+parseInt(_0x5493fe(0x1f9))/0x8;if(_0x340138===_0x368ee1)break;else _0x460fb7['push'](_0x460fb7['shift']());}catch(_0x2a4f31){_0x460fb7['push'](_0x460fb7['shift']());}}}(a232_0x1396,0x3d479));function hasWildcard(_0x4bd7a3){const _0xda78e4=a232_0x5a29;return _0x4bd7a3[_0xda78e4(0x1fa)]('*')||_0x4bd7a3[_0xda78e4(0x1fa)]('?');}function a232_0x5a29(_0x584dba,_0x437654){_0x584dba=_0x584dba-0x1ee;const _0x1396a0=a232_0x1396();let _0x5a292f=_0x1396a0[_0x584dba];return _0x5a292f;}export function parseTableReference(_0x18bc45){const _0x45e2bc=a232_0x5a29;if(!_0x18bc45||_0x18bc45[_0x45e2bc(0x203)]()[_0x45e2bc(0x200)]===0x0)throw new Error(_0x45e2bc(0x1fb));const _0x39a00e=_0x18bc45[_0x45e2bc(0x203)](),_0x2852f0={'original':_0x39a00e},_0x3eaed3=_0x39a00e[_0x45e2bc(0x1f1)]('.');if(_0x3eaed3[_0x45e2bc(0x200)]===0x1){const _0x52f816=_0x3eaed3[0x0];if(!_0x52f816)throw new Error(_0x45e2bc(0x202));_0x2852f0[_0x45e2bc(0x1ff)]=_0x52f816;}else{if(_0x3eaed3[_0x45e2bc(0x200)]===0x2){const [_0x4e8a57,_0x35ae9b]=_0x3eaed3;if(!_0x4e8a57)throw new Error(_0x45e2bc(0x1f0));if(!_0x35ae9b)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x2852f0[_0x45e2bc(0x1f5)]=_0x4e8a57,_0x2852f0[_0x45e2bc(0x1ff)]=_0x35ae9b;}else{if(_0x3eaed3[_0x45e2bc(0x200)]===0x3){const [_0x565fd9,_0x5df100,_0x4d91f1]=_0x3eaed3;if(!_0x565fd9||!_0x5df100||!_0x4d91f1)throw new Error(_0x45e2bc(0x1fd));_0x2852f0[_0x45e2bc(0x1f4)]=_0x565fd9,_0x2852f0['database']=_0x5df100,_0x2852f0[_0x45e2bc(0x1ff)]=_0x4d91f1;}else throw new Error(_0x45e2bc(0x1ef));}}return _0x2852f0;}export function formatTableReference(_0x5989a6){const _0x4e9ffb=a232_0x5a29,_0x32a106=[];return _0x5989a6[_0x4e9ffb(0x1f4)]&&_0x32a106[_0x4e9ffb(0x1fc)](_0x5989a6[_0x4e9ffb(0x1f4)]),_0x5989a6[_0x4e9ffb(0x1f5)]&&_0x32a106[_0x4e9ffb(0x1fc)](_0x5989a6['database']),_0x5989a6[_0x4e9ffb(0x1ff)]&&_0x32a106['push'](_0x5989a6['table']),_0x32a106[_0x4e9ffb(0x1f6)]('.');}function a232_0x1396(){const _0x1545fb=['2645839MkWpPm','Pattern\x20cannot\x20be\x20just\x20a\x20dot','trim','737868eTBJFH','24275dHlWGh','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','210238SkXSfV','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','catalog','database','join','1669432dqHxAN','84RzFcmz','5835984rjkzzP','includes','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','98833HLvdqs','table','length'];a232_0x1396=function(){return _0x1545fb;};return a232_0x1396();}export function validateTableListReference(_0xcbe5cb){return undefined;}export function validateTableDescribeReference(_0xfb176f){const _0x3e4007=a232_0x5a29;if(!_0xfb176f[_0x3e4007(0x1ff)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0xfb176f[_0x3e4007(0x1f5)]&&hasWildcard(_0xfb176f[_0x3e4007(0x1f5)]))return _0x3e4007(0x1f3);if(hasWildcard(_0xfb176f[_0x3e4007(0x1ff)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a233_0x200621=a233_0x4be4;function a233_0x4f85(){const _0x328e67=['Session\x20ended','logger','1278495gwutSB','tdx.log','trace','logs','debug','8dXvJld','isInitialized','logLevel','246462VWFkBN','548210NkwiPA','16gcXhEN','getLogPath','fileHandler','info','close','2NSIPUk','2277012fxLBEa','addHandler','21999HlhBvl','230630DRdTEN','consoleHandler','fileOnly','98WIucZZ','logFileName','INFO','5368419oMoztP','77RGNMjS','warn','tdx','logDir'];a233_0x4f85=function(){return _0x328e67;};return a233_0x4f85();}(function(_0x31d075,_0x2662a6){const _0x388d0a=a233_0x4be4,_0x502852=_0x31d075();while(!![]){try{const _0x5bef30=parseInt(_0x388d0a(0x133))/0x1*(-parseInt(_0x388d0a(0x130))/0x2)+-parseInt(_0x388d0a(0x141))/0x3+-parseInt(_0x388d0a(0x12b))/0x4*(-parseInt(_0x388d0a(0x14a))/0x5)+-parseInt(_0x388d0a(0x149))/0x6*(-parseInt(_0x388d0a(0x137))/0x7)+parseInt(_0x388d0a(0x146))/0x8*(-parseInt(_0x388d0a(0x13a))/0x9)+parseInt(_0x388d0a(0x134))/0xa*(parseInt(_0x388d0a(0x13b))/0xb)+parseInt(_0x388d0a(0x131))/0xc;if(_0x5bef30===_0x2662a6)break;else _0x502852['push'](_0x502852['shift']());}catch(_0x12c167){_0x502852['push'](_0x502852['shift']());}}}(a233_0x4f85,0x4e2b7));function a233_0x4be4(_0x4965a1,_0x51d103){_0x4965a1=_0x4965a1-0x12b;const _0x4f85dd=a233_0x4f85();let _0x4be40a=_0x4f85dd[_0x4965a1];return _0x4be40a;}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{[a233_0x200621(0x148)];[a233_0x200621(0x136)];[a233_0x200621(0x13e)];[a233_0x200621(0x138)];[a233_0x200621(0x140)];[a233_0x200621(0x12d)]=null;[a233_0x200621(0x135)]=null;constructor(_0x10bc3e=LogLevel[a233_0x200621(0x139)],_0x47a419=![],_0x14dbc5,_0x28b6ef=a233_0x200621(0x142)){const _0x535d5c=a233_0x200621;this[_0x535d5c(0x148)]=_0x10bc3e,this[_0x535d5c(0x136)]=_0x47a419,this[_0x535d5c(0x13e)]=_0x14dbc5||join(getGlobalCacheDir(),_0x535d5c(0x144)),this[_0x535d5c(0x138)]=_0x28b6ef,this['logger']=Logger['of'](_0x535d5c(0x13d));}async['init'](){const _0x40a481=a233_0x200621,_0x44b3d8=join(this[_0x40a481(0x13e)],this['logFileName']);if(Logger[_0x40a481(0x147)]()){!this[_0x40a481(0x136)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x40a481(0x139)],'colors':!![]}),Logger[_0x40a481(0x132)](this['consoleHandler']));return;}this[_0x40a481(0x12d)]=new FileHandler({'filePath':_0x44b3d8});const _0x355287=[this['fileHandler']];!this[_0x40a481(0x136)]&&(this[_0x40a481(0x135)]=new ConsoleHandler({'minLevel':LogLevel[_0x40a481(0x139)],'colors':!![]}),_0x355287['push'](this[_0x40a481(0x135)])),await Logger['init']({'defaultLevel':this[_0x40a481(0x148)],'handlers':_0x355287,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a233_0x200621(0x145)](..._0x2f17e0){const _0x228610=a233_0x200621;this['logger'][_0x228610(0x145)](..._0x2f17e0);}[a233_0x200621(0x143)](..._0x169341){const _0x3ae713=a233_0x200621;this[_0x3ae713(0x140)][_0x3ae713(0x143)](..._0x169341);}[a233_0x200621(0x12e)](..._0x104a4f){const _0x48e048=a233_0x200621;this[_0x48e048(0x140)][_0x48e048(0x12e)](..._0x104a4f);}['warn'](..._0x6f8be2){const _0x1db5a4=a233_0x200621;this[_0x1db5a4(0x140)][_0x1db5a4(0x13c)](..._0x6f8be2);}['error'](..._0x4db025){const _0x108a02=a233_0x200621;this[_0x108a02(0x140)]['error'](..._0x4db025);}async[a233_0x200621(0x12f)](){const _0x552cc6=a233_0x200621;this['logger'][_0x552cc6(0x12e)](_0x552cc6(0x13f)),await Logger['shutdown']();}[a233_0x200621(0x12c)](){const _0x2fd98f=a233_0x200621;return join(this['logDir'],this[_0x2fd98f(0x138)]);}}
1
+ const a233_0x41fffe=a233_0x29cc;(function(_0x1cd458,_0x34b39a){const _0x28041c=a233_0x29cc,_0x1b60a3=_0x1cd458();while(!![]){try{const _0x4f8285=-parseInt(_0x28041c(0x1c1))/0x1*(-parseInt(_0x28041c(0x1d6))/0x2)+-parseInt(_0x28041c(0x1d8))/0x3*(-parseInt(_0x28041c(0x1ca))/0x4)+-parseInt(_0x28041c(0x1c5))/0x5+parseInt(_0x28041c(0x1d3))/0x6+parseInt(_0x28041c(0x1ba))/0x7+-parseInt(_0x28041c(0x1bc))/0x8*(parseInt(_0x28041c(0x1cc))/0x9)+-parseInt(_0x28041c(0x1c8))/0xa*(parseInt(_0x28041c(0x1d4))/0xb);if(_0x4f8285===_0x34b39a)break;else _0x1b60a3['push'](_0x1b60a3['shift']());}catch(_0x47425f){_0x1b60a3['push'](_0x1b60a3['shift']());}}}(a233_0x5ed7,0xce073));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a233_0x5ed7(){const _0x191dd8=['tdx.log','9qkSROf','logs','push','Session\x20ended','INFO','isInitialized','logger','4578342JEAHYI','33xDlJmO','init','6zVIpIw','shutdown','64443qyInkR','tdx','trace','logDir','2139858SyfEGp','fileOnly','6888760lYvBdu','fileHandler','debug','logFileName','warn','157513vNHtNP','logLevel','addHandler','error','2479725fnkcgl','info','consoleHandler','665330TSCsaP','close','160hzXpmw'];a233_0x5ed7=function(){return _0x191dd8;};return a233_0x5ed7();}function a233_0x29cc(_0x59f825,_0x3c560e){_0x59f825=_0x59f825-0x1b9;const _0x5ed7d8=a233_0x5ed7();let _0x29cc56=_0x5ed7d8[_0x59f825];return _0x29cc56;}export{LogLevel}from'./logger/index.js';export class TDXLogger{[a233_0x41fffe(0x1c2)];['fileOnly'];['logDir'];[a233_0x41fffe(0x1bf)];[a233_0x41fffe(0x1d2)];[a233_0x41fffe(0x1bd)]=null;[a233_0x41fffe(0x1c7)]=null;constructor(_0x345e03=LogLevel['INFO'],_0x5b5af5=![],_0x501c8f,_0x3bfb8e=a233_0x41fffe(0x1cb)){const _0x107f32=a233_0x41fffe;this['logLevel']=_0x345e03,this[_0x107f32(0x1bb)]=_0x5b5af5,this[_0x107f32(0x1b9)]=_0x501c8f||join(getGlobalCacheDir(),_0x107f32(0x1cd)),this['logFileName']=_0x3bfb8e,this[_0x107f32(0x1d2)]=Logger['of'](_0x107f32(0x1d9));}async['init'](){const _0x348d5d=a233_0x41fffe,_0x44a624=join(this[_0x348d5d(0x1b9)],this[_0x348d5d(0x1bf)]);if(Logger[_0x348d5d(0x1d1)]()){!this[_0x348d5d(0x1bb)]&&(this[_0x348d5d(0x1c7)]=new ConsoleHandler({'minLevel':LogLevel[_0x348d5d(0x1d0)],'colors':!![]}),Logger[_0x348d5d(0x1c3)](this['consoleHandler']));return;}this[_0x348d5d(0x1bd)]=new FileHandler({'filePath':_0x44a624});const _0x121807=[this[_0x348d5d(0x1bd)]];!this['fileOnly']&&(this[_0x348d5d(0x1c7)]=new ConsoleHandler({'minLevel':LogLevel[_0x348d5d(0x1d0)],'colors':!![]}),_0x121807[_0x348d5d(0x1ce)](this['consoleHandler'])),await Logger[_0x348d5d(0x1d5)]({'defaultLevel':this[_0x348d5d(0x1c2)],'handlers':_0x121807,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a233_0x41fffe(0x1be)](..._0x5764d9){const _0x38eb70=a233_0x41fffe;this[_0x38eb70(0x1d2)][_0x38eb70(0x1be)](..._0x5764d9);}[a233_0x41fffe(0x1da)](..._0x5bb2ce){const _0x40c983=a233_0x41fffe;this[_0x40c983(0x1d2)]['trace'](..._0x5bb2ce);}['info'](..._0x513e49){this['logger']['info'](..._0x513e49);}[a233_0x41fffe(0x1c0)](..._0x3ee6ab){const _0xf90bd8=a233_0x41fffe;this[_0xf90bd8(0x1d2)][_0xf90bd8(0x1c0)](..._0x3ee6ab);}[a233_0x41fffe(0x1c4)](..._0x1b0701){const _0x125d99=a233_0x41fffe;this['logger'][_0x125d99(0x1c4)](..._0x1b0701);}async[a233_0x41fffe(0x1c9)](){const _0x4320a9=a233_0x41fffe;this[_0x4320a9(0x1d2)][_0x4320a9(0x1c6)](_0x4320a9(0x1cf)),await Logger[_0x4320a9(0x1d7)]();}['getLogPath'](){const _0x29ea91=a233_0x41fffe;return join(this[_0x29ea91(0x1b9)],this[_0x29ea91(0x1bf)]);}}
@@ -1 +1 @@
1
- const a234_0x26e36d=a234_0x5e81;function a234_0x18e2(){const _0x451906=['channel','Invalid\x20version\x20format','isTTY','version','HTTP\x20','now','\x0aRun:\x20','destroy','1127168Vyraoe','lastCheck','Run:','776aPjevi','dim','gray','write','cyan','read','error','3561488WaNszB','green','last_version_check','tdx\x20upgrade\x20--next','110855vwiwPf','updateAvailable','toISOString','latestVersion','currentVersion','stable','12035961VaaDHe','247392PuesCI','unref','222imPodu','parse','Update\x20available:','latest','next','https://registry.npmjs.org/@treasuredata/tdx','1261632gIIiPX','yellow','\x0aUpdate\x20available:\x20','utils/version-check-next','stderr','data','2143FBOzIM'];a234_0x18e2=function(){return _0x451906;};return a234_0x18e2();}(function(_0x4c5dcd,_0x1936a1){const _0x4e9c6e=a234_0x5e81,_0x4a02d7=_0x4c5dcd();while(!![]){try{const _0x214c64=parseInt(_0x4e9c6e(0x111))/0x1*(-parseInt(_0x4e9c6e(0xf1))/0x2)+parseInt(_0x4e9c6e(0x103))/0x3+-parseInt(_0x4e9c6e(0x10b))/0x4+parseInt(_0x4e9c6e(0xfc))/0x5*(parseInt(_0x4e9c6e(0x105))/0x6)+-parseInt(_0x4e9c6e(0xf8))/0x7+-parseInt(_0x4e9c6e(0xee))/0x8+parseInt(_0x4e9c6e(0x102))/0x9;if(_0x214c64===_0x1936a1)break;else _0x4a02d7['push'](_0x4a02d7['shift']());}catch(_0x399222){_0x4a02d7['push'](_0x4a02d7['shift']());}}}(a234_0x18e2,0x6c49c));import{get}from'https';function a234_0x5e81(_0xd1cda7,_0x444af0){_0xd1cda7=_0xd1cda7-0xee;const _0x18e244=a234_0x18e2();let _0x5e811e=_0x18e244[_0xd1cda7];return _0x5e811e;}import{gt,valid}from'semver';import a234_0x8cfaa3 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x26e36d(0x10a),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a234_0x26e36d(0xfa),'utils/version-check'),nextVersionCache=createGlobalCache('last_version_check_next',a234_0x26e36d(0x10e));function getCacheForChannel(_0x1769a6){const _0x532279=a234_0x26e36d;return _0x1769a6===_0x532279(0x109)?nextVersionCache:stableVersionCache;}function readCache(_0x131f7e){const _0x236b4c=a234_0x26e36d;return getCacheForChannel(_0x131f7e)[_0x236b4c(0xf6)]()??null;}function writeCache(_0x5babe6,_0x30cd98){const _0x1565a3=a234_0x26e36d;try{getCacheForChannel(_0x30cd98)['write']({'lastCheck':new Date()[_0x1565a3(0xfe)](),'latestVersion':_0x5babe6});}catch{}}function isCacheValid(_0x59a529){const _0xe6b481=a234_0x26e36d;if(!_0x59a529)return![];const _0x5d4dc9=new Date(_0x59a529[_0xe6b481(0xef)])['getTime'](),_0x12fbc9=Date[_0xe6b481(0x117)]();return _0x12fbc9-_0x5d4dc9<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x930088=a234_0x26e36d(0x101)){const _0x55dbbf=a234_0x26e36d,_0x4d4f82=_0x930088===_0x55dbbf(0x109)?'next':_0x55dbbf(0x108),_0x361085=NPM_REGISTRY_BASE+'/'+_0x4d4f82;return new Promise((_0x538ef9,_0x55193c)=>{const _0x5ac750=_0x55dbbf,_0xbbfbdd=get(_0x361085,{'timeout':TIMEOUT_MS},_0x32feae=>{const _0x3778e3=a234_0x5e81;if(_0x32feae['statusCode']!==0xc8){clearTimeout(_0x426da6),_0x55193c(new Error(_0x3778e3(0x116)+_0x32feae['statusCode']));return;}let _0x19f569='';_0x32feae['on'](_0x3778e3(0x110),_0x6bc1a0=>{_0x19f569+=_0x6bc1a0;}),_0x32feae['on']('end',()=>{const _0xbdbc4a=_0x3778e3;clearTimeout(_0x426da6);try{const _0x7b2926=JSON[_0xbdbc4a(0x106)](_0x19f569);if(!valid(_0x7b2926[_0xbdbc4a(0x115)])){_0x55193c(new Error(_0xbdbc4a(0x113)));return;}_0x538ef9(_0x7b2926[_0xbdbc4a(0x115)]);}catch(_0x3d344e){_0x55193c(_0x3d344e);}});})['on'](_0x5ac750(0xf7),_0x4778ec=>{clearTimeout(_0x426da6),_0x55193c(_0x4778ec);});_0xbbfbdd['on']('socket',_0x66ff6c=>{_0x66ff6c['unref']();});const _0x426da6=setTimeout(()=>{const _0x501bb5=_0x5ac750;_0xbbfbdd[_0x501bb5(0x119)](),_0x55193c(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x426da6[_0x5ac750(0x104)]();});}export async function checkForUpdate(_0xf8fbba,_0x5d8fad=a234_0x26e36d(0x101)){const _0x4c24c2=a234_0x26e36d;try{const _0x56bca7=readCache(_0x5d8fad);if(isCacheValid(_0x56bca7)){const _0x2f447d=gt(_0x56bca7[_0x4c24c2(0xff)],_0xf8fbba);return{'updateAvailable':_0x2f447d,'currentVersion':_0xf8fbba,'latestVersion':_0x56bca7['latestVersion'],'channel':_0x5d8fad};}const _0x36c021=await fetchLatestVersion(_0x5d8fad);writeCache(_0x36c021,_0x5d8fad);const _0x49a01d=gt(_0x36c021,_0xf8fbba);return{'updateAvailable':_0x49a01d,'currentVersion':_0xf8fbba,'latestVersion':_0x36c021,'channel':_0x5d8fad};}catch{return null;}}export function displayUpdateNotification(_0x380ae9){const _0x379366=a234_0x26e36d;if(!_0x380ae9[_0x379366(0xfd)])return;const _0x1a9c50=_0x380ae9[_0x379366(0x112)]===_0x379366(0x109)?_0x379366(0xfb):'tdx\x20upgrade',_0x20531f=process[_0x379366(0x10f)][_0x379366(0x114)]&&!process.env.NO_COLOR,_0x7a27c4=_0x20531f?a234_0x8cfaa3[_0x379366(0xf3)]('→'):'→',_0x4340e9=_0x20531f?a234_0x8cfaa3['dim'](_0x380ae9[_0x379366(0x100)]):_0x380ae9[_0x379366(0x100)],_0x1591a8=_0x20531f?a234_0x8cfaa3[_0x379366(0xf9)](_0x380ae9[_0x379366(0xff)]):_0x380ae9[_0x379366(0xff)],_0x5ac87d=_0x20531f?a234_0x8cfaa3[_0x379366(0xf5)](_0x1a9c50):_0x1a9c50,_0x3de240=_0x20531f?'\x0a'+a234_0x8cfaa3[_0x379366(0x10c)](_0x379366(0x107))+'\x20'+_0x4340e9+'\x20'+_0x7a27c4+'\x20'+_0x1591a8+'\x0a'+a234_0x8cfaa3[_0x379366(0xf2)](_0x379366(0xf0))+'\x20'+_0x5ac87d+'\x0a':_0x379366(0x10d)+_0x4340e9+'\x20'+_0x7a27c4+'\x20'+_0x1591a8+_0x379366(0x118)+_0x5ac87d+'\x0a';process[_0x379366(0x10f)][_0x379366(0xf4)](_0x3de240);}
1
+ const a234_0x144dff=a234_0x5018;(function(_0x42253c,_0x3f0177){const _0x4dfaa9=a234_0x5018,_0x1440a5=_0x42253c();while(!![]){try{const _0x3e2e6e=-parseInt(_0x4dfaa9(0x160))/0x1*(-parseInt(_0x4dfaa9(0x169))/0x2)+-parseInt(_0x4dfaa9(0x15d))/0x3+parseInt(_0x4dfaa9(0x152))/0x4*(-parseInt(_0x4dfaa9(0x14a))/0x5)+-parseInt(_0x4dfaa9(0x16f))/0x6*(parseInt(_0x4dfaa9(0x150))/0x7)+-parseInt(_0x4dfaa9(0x178))/0x8*(parseInt(_0x4dfaa9(0x16b))/0x9)+parseInt(_0x4dfaa9(0x15a))/0xa*(parseInt(_0x4dfaa9(0x15c))/0xb)+parseInt(_0x4dfaa9(0x16d))/0xc;if(_0x3e2e6e===_0x3f0177)break;else _0x1440a5['push'](_0x1440a5['shift']());}catch(_0x421592){_0x1440a5['push'](_0x1440a5['shift']());}}}(a234_0x5414,0xe546a));import{get}from'https';import{gt,valid}from'semver';function a234_0x5414(){const _0x1c80ec=['2046208CqpDDG','dim','last_version_check_next','parse','Invalid\x20version\x20format','https://registry.npmjs.org/@treasuredata/tdx','\x0aUpdate\x20available:\x20','version','10sATkCY','green','1611753KevLoU','5336688tgOwVa','now','error','412JmqxYD','tdx\x20upgrade','next','getTime','destroy','data','unref','currentVersion','channel','116NOiGUy','gray','297pCqVlN','utils/version-check-next','52435584yQjEWu','statusCode','258OWqQXg','latest','Request\x20timeout','yellow','tdx\x20upgrade\x20--next','latestVersion','lastCheck','toISOString','utils/version-check','57328Fiznkl','5iKgOLy','socket','Run:','stderr','write','\x0aRun:\x20','174839uzTCZK','stable'];a234_0x5414=function(){return _0x1c80ec;};return a234_0x5414();}import a234_0x5be250 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x144dff(0x157),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check',a234_0x144dff(0x177)),nextVersionCache=createGlobalCache(a234_0x144dff(0x154),a234_0x144dff(0x16c));function getCacheForChannel(_0x44e11f){return _0x44e11f==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x1c35b6){return getCacheForChannel(_0x1c35b6)['read']()??null;}function writeCache(_0x39ac14,_0x36cfef){const _0x3032a2=a234_0x144dff;try{getCacheForChannel(_0x36cfef)[_0x3032a2(0x14e)]({'lastCheck':new Date()[_0x3032a2(0x176)](),'latestVersion':_0x39ac14});}catch{}}function isCacheValid(_0x262aff){const _0x39bef5=a234_0x144dff;if(!_0x262aff)return![];const _0x20e507=new Date(_0x262aff[_0x39bef5(0x175)])[_0x39bef5(0x163)](),_0x25bd63=Date[_0x39bef5(0x15e)]();return _0x25bd63-_0x20e507<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x30bf94=a234_0x144dff(0x151)){const _0x5e0308=a234_0x144dff,_0x293768=_0x30bf94===_0x5e0308(0x162)?'next':_0x5e0308(0x170),_0x20c3bd=NPM_REGISTRY_BASE+'/'+_0x293768;return new Promise((_0x31086a,_0x286045)=>{const _0x179c50=_0x5e0308,_0x5cbfa8=get(_0x20c3bd,{'timeout':TIMEOUT_MS},_0x1c0313=>{const _0x339a16=a234_0x5018;if(_0x1c0313[_0x339a16(0x16e)]!==0xc8){clearTimeout(_0x40faf5),_0x286045(new Error('HTTP\x20'+_0x1c0313[_0x339a16(0x16e)]));return;}let _0x5ba79f='';_0x1c0313['on'](_0x339a16(0x165),_0x11f640=>{_0x5ba79f+=_0x11f640;}),_0x1c0313['on']('end',()=>{const _0x32ad43=_0x339a16;clearTimeout(_0x40faf5);try{const _0xf985d7=JSON[_0x32ad43(0x155)](_0x5ba79f);if(!valid(_0xf985d7[_0x32ad43(0x159)])){_0x286045(new Error(_0x32ad43(0x156)));return;}_0x31086a(_0xf985d7[_0x32ad43(0x159)]);}catch(_0x29a28b){_0x286045(_0x29a28b);}});})['on'](_0x179c50(0x15f),_0x563d5e=>{clearTimeout(_0x40faf5),_0x286045(_0x563d5e);});_0x5cbfa8['on'](_0x179c50(0x14b),_0xf19e35=>{const _0x35d394=_0x179c50;_0xf19e35[_0x35d394(0x166)]();});const _0x40faf5=setTimeout(()=>{const _0x58c532=_0x179c50;_0x5cbfa8[_0x58c532(0x164)](),_0x286045(new Error(_0x58c532(0x171)));},TIMEOUT_MS);_0x40faf5[_0x179c50(0x166)]();});}export async function checkForUpdate(_0x2ee5dd,_0xdc94bc='stable'){const _0x342714=a234_0x144dff;try{const _0x10839a=readCache(_0xdc94bc);if(isCacheValid(_0x10839a)){const _0x4b3550=gt(_0x10839a[_0x342714(0x174)],_0x2ee5dd);return{'updateAvailable':_0x4b3550,'currentVersion':_0x2ee5dd,'latestVersion':_0x10839a[_0x342714(0x174)],'channel':_0xdc94bc};}const _0x115af0=await fetchLatestVersion(_0xdc94bc);writeCache(_0x115af0,_0xdc94bc);const _0x2d1267=gt(_0x115af0,_0x2ee5dd);return{'updateAvailable':_0x2d1267,'currentVersion':_0x2ee5dd,'latestVersion':_0x115af0,'channel':_0xdc94bc};}catch{return null;}}function a234_0x5018(_0x329704,_0x9726f1){_0x329704=_0x329704-0x14a;const _0x541448=a234_0x5414();let _0x501865=_0x541448[_0x329704];return _0x501865;}export function displayUpdateNotification(_0x362c2b){const _0x589d60=a234_0x144dff;if(!_0x362c2b['updateAvailable'])return;const _0xc7fca2=_0x362c2b[_0x589d60(0x168)]===_0x589d60(0x162)?_0x589d60(0x173):_0x589d60(0x161),_0x1f9679=process[_0x589d60(0x14d)]['isTTY']&&!process.env.NO_COLOR,_0x2b5ae2=_0x1f9679?a234_0x5be250[_0x589d60(0x16a)]('→'):'→',_0x40af5f=_0x1f9679?a234_0x5be250['dim'](_0x362c2b[_0x589d60(0x167)]):_0x362c2b[_0x589d60(0x167)],_0x2d9c91=_0x1f9679?a234_0x5be250[_0x589d60(0x15b)](_0x362c2b['latestVersion']):_0x362c2b[_0x589d60(0x174)],_0x487f6b=_0x1f9679?a234_0x5be250['cyan'](_0xc7fca2):_0xc7fca2,_0x2ec95e=_0x1f9679?'\x0a'+a234_0x5be250[_0x589d60(0x172)]('Update\x20available:')+'\x20'+_0x40af5f+'\x20'+_0x2b5ae2+'\x20'+_0x2d9c91+'\x0a'+a234_0x5be250[_0x589d60(0x153)](_0x589d60(0x14c))+'\x20'+_0x487f6b+'\x0a':_0x589d60(0x158)+_0x40af5f+'\x20'+_0x2b5ae2+'\x20'+_0x2d9c91+_0x589d60(0x14f)+_0x487f6b+'\x0a';process['stderr']['write'](_0x2ec95e);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.42",
3
+ "version": "2026.3.44",
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": {