@treasuredata/tdx 2026.3.53 → 2026.3.54

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 (219) 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/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.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.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/frontmatter.js +1 -1
  182. package/dist/sdk/workspace/git.js +1 -1
  183. package/dist/sdk/workspace/index.js +1 -1
  184. package/dist/sdk/workspace/templates.js +1 -1
  185. package/dist/sdk/workspace/weekly.js +1 -1
  186. package/dist/sdk/workspace/wikilinks.js +1 -1
  187. package/dist/test-utils/command-runner.js +1 -1
  188. package/dist/test-utils/factories.js +1 -1
  189. package/dist/test-utils/fixtures.js +1 -1
  190. package/dist/test-utils/http-mock.js +1 -1
  191. package/dist/test-utils/index.js +1 -1
  192. package/dist/utils/async.js +1 -1
  193. package/dist/utils/colors.js +1 -1
  194. package/dist/utils/diff.js +1 -1
  195. package/dist/utils/file-permissions.js +1 -1
  196. package/dist/utils/file-reader.js +1 -1
  197. package/dist/utils/github-releases.js +1 -1
  198. package/dist/utils/global-cache.js +1 -1
  199. package/dist/utils/json-loader.js +1 -1
  200. package/dist/utils/local-cache.js +1 -1
  201. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  202. package/dist/utils/logger/formatters/index.js +1 -1
  203. package/dist/utils/logger/handlers/console-handler.js +1 -1
  204. package/dist/utils/logger/handlers/file-handler.js +1 -1
  205. package/dist/utils/logger/handlers/index.js +1 -1
  206. package/dist/utils/logger/handlers/null-handler.js +1 -1
  207. package/dist/utils/logger/index.js +1 -1
  208. package/dist/utils/logger/logger.js +1 -1
  209. package/dist/utils/logger/types.js +1 -1
  210. package/dist/utils/option-validation.js +1 -1
  211. package/dist/utils/process.js +1 -1
  212. package/dist/utils/prompt.js +1 -1
  213. package/dist/utils/spinner.js +1 -1
  214. package/dist/utils/sse-parser.js +1 -1
  215. package/dist/utils/string-utils.js +1 -1
  216. package/dist/utils/table-ref-parser.js +1 -1
  217. package/dist/utils/tdx-logger.js +1 -1
  218. package/dist/utils/version-check.js +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x11b6f5,_0x3cfc91){const _0x468827=a225_0x4fe3,_0x40e2fb=_0x11b6f5();while(!![]){try{const _0x38b320=parseInt(_0x468827(0x1f3))/0x1*(-parseInt(_0x468827(0x1e5))/0x2)+-parseInt(_0x468827(0x1dd))/0x3*(parseInt(_0x468827(0x1d9))/0x4)+parseInt(_0x468827(0x1f1))/0x5*(-parseInt(_0x468827(0x1ec))/0x6)+-parseInt(_0x468827(0x1e8))/0x7*(-parseInt(_0x468827(0x1db))/0x8)+-parseInt(_0x468827(0x1f0))/0x9+parseInt(_0x468827(0x1e6))/0xa+parseInt(_0x468827(0x1e9))/0xb;if(_0x38b320===_0x3cfc91)break;else _0x40e2fb['push'](_0x40e2fb['shift']());}catch(_0x3764c0){_0x40e2fb['push'](_0x40e2fb['shift']());}}}(a225_0xfd57,0x87213));function a225_0xfd57(){const _0x270a70=['ERROR','toUpperCase','getMonth','4FyYrRv','WARNING','88FQfibv','TRACE','538899gQphpI','getMilliseconds','debug','padStart','warn','floor','getFullYear','getMinutes','66VTDJKK','6846630QbMhwM','INFO','651721mLfHlz','6400262RmOqlq','WARN','abs','2204658bUbEKX','getHours','toString','DEBUG','3194676YoVNvQ','15kpkkkV','info','3037kqVBgA'];a225_0xfd57=function(){return _0x270a70;};return a225_0xfd57();}export var LogLevel;(function(_0x350642){const _0x583ae7=a225_0x4fe3;_0x350642[_0x350642[_0x583ae7(0x1dc)]=-0x2]=_0x583ae7(0x1dc),_0x350642[_0x350642['DEBUG']=-0x1]=_0x583ae7(0x1ef),_0x350642[_0x350642[_0x583ae7(0x1e7)]=0x0]=_0x583ae7(0x1e7),_0x350642[_0x350642[_0x583ae7(0x1ea)]=0x1]=_0x583ae7(0x1ea),_0x350642[_0x350642[_0x583ae7(0x1f4)]=0x2]=_0x583ae7(0x1f4);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5949f2){const _0x3e372c=a225_0x4fe3;switch(_0x5949f2[_0x3e372c(0x1d7)]()){case _0x3e372c(0x1dc):return LogLevel[_0x3e372c(0x1dc)];case _0x3e372c(0x1ef):return LogLevel[_0x3e372c(0x1ef)];case _0x3e372c(0x1e7):return LogLevel[_0x3e372c(0x1e7)];case _0x3e372c(0x1ea):case _0x3e372c(0x1da):return LogLevel[_0x3e372c(0x1ea)];case _0x3e372c(0x1f4):return LogLevel[_0x3e372c(0x1f4)];default:return LogLevel[_0x3e372c(0x1e7)];}}export function logLevelToString(_0x327fc5){const _0x4dfe4d=a225_0x4fe3;switch(_0x327fc5){case LogLevel[_0x4dfe4d(0x1dc)]:return'trace';case LogLevel[_0x4dfe4d(0x1ef)]:return _0x4dfe4d(0x1df);case LogLevel[_0x4dfe4d(0x1e7)]:return _0x4dfe4d(0x1f2);case LogLevel[_0x4dfe4d(0x1ea)]:return _0x4dfe4d(0x1e1);case LogLevel['ERROR']:return'error';default:return _0x4dfe4d(0x1f2);}}function a225_0x4fe3(_0x518eb2,_0x57747f){_0x518eb2=_0x518eb2-0x1d7;const _0xfd57d7=a225_0xfd57();let _0x4fe353=_0xfd57d7[_0x518eb2];return _0x4fe353;}export function formatTimestamp(_0x37bd39){const _0x30b4de=a225_0x4fe3,_0x421c7f=_0x37bd39[_0x30b4de(0x1e3)](),_0x39d3e4=(_0x37bd39[_0x30b4de(0x1d8)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x3fc572=_0x37bd39['getDate']()[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x2,'0'),_0x57abe7=_0x37bd39[_0x30b4de(0x1ed)]()[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x2,'0'),_0x1007e3=_0x37bd39[_0x30b4de(0x1e4)]()['toString']()[_0x30b4de(0x1e0)](0x2,'0'),_0x2eff75=_0x37bd39['getSeconds']()[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x2,'0'),_0x11905d=_0x37bd39[_0x30b4de(0x1de)]()[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x3,'0'),_0x3208ce=-_0x37bd39['getTimezoneOffset'](),_0x3733f0=Math[_0x30b4de(0x1e2)](Math[_0x30b4de(0x1eb)](_0x3208ce)/0x3c),_0x25fc49=Math['abs'](_0x3208ce)%0x3c,_0x5ebc34=_0x3208ce>=0x0?'+':'-',_0x1008c0=''+_0x5ebc34+_0x3733f0[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x2,'0')+_0x25fc49[_0x30b4de(0x1ee)]()[_0x30b4de(0x1e0)](0x2,'0');return _0x421c7f+'-'+_0x39d3e4+'-'+_0x3fc572+'\x20'+_0x57abe7+':'+_0x1007e3+':'+_0x2eff75+'.'+_0x11905d+_0x1008c0;}
1
+ (function(_0x412e94,_0x3a3dd3){const _0x59ac62=a225_0x51c1,_0x29cdc7=_0x412e94();while(!![]){try{const _0x1dfd5a=-parseInt(_0x59ac62(0x7d))/0x1*(parseInt(_0x59ac62(0x8b))/0x2)+parseInt(_0x59ac62(0x78))/0x3*(-parseInt(_0x59ac62(0x83))/0x4)+-parseInt(_0x59ac62(0x87))/0x5*(-parseInt(_0x59ac62(0x72))/0x6)+parseInt(_0x59ac62(0x7c))/0x7+-parseInt(_0x59ac62(0x7a))/0x8+-parseInt(_0x59ac62(0x81))/0x9*(-parseInt(_0x59ac62(0x77))/0xa)+parseInt(_0x59ac62(0x76))/0xb;if(_0x1dfd5a===_0x3a3dd3)break;else _0x29cdc7['push'](_0x29cdc7['shift']());}catch(_0xae65af){_0x29cdc7['push'](_0x29cdc7['shift']());}}}(a225_0x29b4,0x8fd68));export var LogLevel;function a225_0x29b4(){const _0x2ef484=['ERROR','padStart','7062616lcAbGG','1609070tdZbsz','21Cuzfhe','getFullYear','6320312jqNNaS','WARN','219821CEmqjL','270EkiSDC','debug','getMonth','abs','36nOiVPw','DEBUG','71320MqHpvQ','toString','INFO','toUpperCase','978955DDCGDp','warn','floor','TRACE','1516yCpbwu','trace','WARNING','error','12EihMuG','getMilliseconds'];a225_0x29b4=function(){return _0x2ef484;};return a225_0x29b4();}(function(_0x453415){const _0x43bd72=a225_0x51c1;_0x453415[_0x453415[_0x43bd72(0x8a)]=-0x2]=_0x43bd72(0x8a),_0x453415[_0x453415[_0x43bd72(0x82)]=-0x1]='DEBUG',_0x453415[_0x453415[_0x43bd72(0x85)]=0x0]=_0x43bd72(0x85),_0x453415[_0x453415[_0x43bd72(0x7b)]=0x1]='WARN',_0x453415[_0x453415[_0x43bd72(0x74)]=0x2]=_0x43bd72(0x74);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x3ce4fe){const _0x491b5e=a225_0x51c1;switch(_0x3ce4fe[_0x491b5e(0x86)]()){case _0x491b5e(0x8a):return LogLevel[_0x491b5e(0x8a)];case'DEBUG':return LogLevel[_0x491b5e(0x82)];case _0x491b5e(0x85):return LogLevel['INFO'];case _0x491b5e(0x7b):case _0x491b5e(0x70):return LogLevel['WARN'];case _0x491b5e(0x74):return LogLevel[_0x491b5e(0x74)];default:return LogLevel[_0x491b5e(0x85)];}}export function logLevelToString(_0x3eea31){const _0x54df59=a225_0x51c1;switch(_0x3eea31){case LogLevel[_0x54df59(0x8a)]:return _0x54df59(0x8c);case LogLevel[_0x54df59(0x82)]:return _0x54df59(0x7e);case LogLevel['INFO']:return'info';case LogLevel['WARN']:return _0x54df59(0x88);case LogLevel['ERROR']:return _0x54df59(0x71);default:return'info';}}function a225_0x51c1(_0x20917f,_0x2e741f){_0x20917f=_0x20917f-0x70;const _0x29b410=a225_0x29b4();let _0x51c164=_0x29b410[_0x20917f];return _0x51c164;}export function formatTimestamp(_0x54cb41){const _0xef8cf4=a225_0x51c1,_0x3b4d1f=_0x54cb41[_0xef8cf4(0x79)](),_0x30d836=(_0x54cb41[_0xef8cf4(0x7f)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x111b62=_0x54cb41['getDate']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x183919=_0x54cb41['getHours']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x2d7c35=_0x54cb41['getMinutes']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x50b4c1=_0x54cb41['getSeconds']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x4c4ea5=_0x54cb41[_0xef8cf4(0x73)]()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x3,'0'),_0x41ed33=-_0x54cb41['getTimezoneOffset'](),_0x18b0f7=Math[_0xef8cf4(0x89)](Math['abs'](_0x41ed33)/0x3c),_0x152229=Math[_0xef8cf4(0x80)](_0x41ed33)%0x3c,_0x53a06d=_0x41ed33>=0x0?'+':'-',_0x348de4=''+_0x53a06d+_0x18b0f7[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0')+_0x152229[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0');return _0x3b4d1f+'-'+_0x30d836+'-'+_0x111b62+'\x20'+_0x183919+':'+_0x2d7c35+':'+_0x50b4c1+'.'+_0x4c4ea5+_0x348de4;}
@@ -1 +1 @@
1
- function a226_0x5c91(){const _0x322217=['.\x20Must\x20be\x20a\x20number.','324675oBjkVp','594520dryGRo','isInteger','490794okPMhN','171JcbxlN','4282xcPpJQ','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','18wCfRHo','1522816nguSkR','.\x20Must\x20be\x20a\x20positive\x20number.','2173390wAHIPJ','7Vehsdl','113731VhcKsS'];a226_0x5c91=function(){return _0x322217;};return a226_0x5c91();}function a226_0x4c6d(_0x3c33cb,_0x1ffd88){_0x3c33cb=_0x3c33cb-0xab;const _0x5c9181=a226_0x5c91();let _0x4c6d75=_0x5c9181[_0x3c33cb];return _0x4c6d75;}(function(_0x5a7c85,_0x58c876){const _0x572b3f=a226_0x4c6d,_0x1b437f=_0x5a7c85();while(!![]){try{const _0x3af695=-parseInt(_0x572b3f(0xb1))/0x1+-parseInt(_0x572b3f(0xb8))/0x2*(-parseInt(_0x572b3f(0xb7))/0x3)+-parseInt(_0x572b3f(0xb4))/0x4+-parseInt(_0x572b3f(0xb3))/0x5+parseInt(_0x572b3f(0xb6))/0x6*(parseInt(_0x572b3f(0xb0))/0x7)+-parseInt(_0x572b3f(0xad))/0x8+parseInt(_0x572b3f(0xac))/0x9*(parseInt(_0x572b3f(0xaf))/0xa);if(_0x3af695===_0x58c876)break;else _0x1b437f['push'](_0x1b437f['shift']());}catch(_0x4441ba){_0x1b437f['push'](_0x1b437f['shift']());}}}(a226_0x5c91,0x1d822));export function validateLimitOption(_0x4b46e3){const _0x53aac0=a226_0x4c6d;if(!Number[_0x53aac0(0xb5)](_0x4b46e3))return{'isValid':![],'error':_0x53aac0(0xab)+_0x4b46e3+'.\x20Must\x20be\x20an\x20integer.'};if(_0x4b46e3<=0x0)return{'isValid':![],'error':_0x53aac0(0xab)+_0x4b46e3+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x4b46e3};}export function validateTimeoutOption(_0x4f7a94,_0x4cbf04=0x1e){const _0x1b9ef5=a226_0x4c6d;if(_0x4f7a94===undefined)return{'isValid':!![],'value':_0x4cbf04};const _0x46fe2d=typeof _0x4f7a94==='number'?_0x4f7a94:parseFloat(_0x4f7a94);if(isNaN(_0x46fe2d))return{'isValid':![],'error':_0x1b9ef5(0xb9)+_0x4f7a94+_0x1b9ef5(0xb2)};if(_0x46fe2d<=0x0)return{'isValid':![],'error':_0x1b9ef5(0xb9)+_0x46fe2d+_0x1b9ef5(0xae)};return{'isValid':!![],'value':_0x46fe2d};}
1
+ (function(_0x96ab39,_0x3d1251){const _0x4f40c4=a226_0x19c1,_0x5bc0f1=_0x96ab39();while(!![]){try{const _0x797f9f=parseInt(_0x4f40c4(0x77))/0x1+-parseInt(_0x4f40c4(0x7b))/0x2+-parseInt(_0x4f40c4(0x83))/0x3+parseInt(_0x4f40c4(0x7a))/0x4+-parseInt(_0x4f40c4(0x82))/0x5+-parseInt(_0x4f40c4(0x7e))/0x6+parseInt(_0x4f40c4(0x80))/0x7;if(_0x797f9f===_0x3d1251)break;else _0x5bc0f1['push'](_0x5bc0f1['shift']());}catch(_0x499807){_0x5bc0f1['push'](_0x5bc0f1['shift']());}}}(a226_0x367e,0x4c85c));function a226_0x367e(){const _0x14f800=['719272JoLCZz','.\x20Must\x20be\x20a\x20positive\x20number.','isInteger','3365844kQFXPV','.\x20Must\x20be\x20a\x20number.','10049543IecUSh','Invalid\x20limit\x20value:\x20','954185yjaXWW','1851261xYdGCS','Invalid\x20timeout\x20value:\x20','170433QZHbWc','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20an\x20integer.','1743552GOpQZy'];a226_0x367e=function(){return _0x14f800;};return a226_0x367e();}export function validateLimitOption(_0x4e98a4){const _0x2b254f=a226_0x19c1;if(!Number[_0x2b254f(0x7d)](_0x4e98a4))return{'isValid':![],'error':_0x2b254f(0x81)+_0x4e98a4+_0x2b254f(0x79)};if(_0x4e98a4<=0x0)return{'isValid':![],'error':_0x2b254f(0x81)+_0x4e98a4+_0x2b254f(0x78)};return{'isValid':!![],'value':_0x4e98a4};}function a226_0x19c1(_0x3d32a0,_0x3c877a){_0x3d32a0=_0x3d32a0-0x76;const _0x367ea1=a226_0x367e();let _0x19c149=_0x367ea1[_0x3d32a0];return _0x19c149;}export function validateTimeoutOption(_0x273237,_0x4cc5df=0x1e){const _0x141262=a226_0x19c1;if(_0x273237===undefined)return{'isValid':!![],'value':_0x4cc5df};const _0x45a4b7=typeof _0x273237==='number'?_0x273237:parseFloat(_0x273237);if(isNaN(_0x45a4b7))return{'isValid':![],'error':_0x141262(0x76)+_0x273237+_0x141262(0x7f)};if(_0x45a4b7<=0x0)return{'isValid':![],'error':_0x141262(0x76)+_0x45a4b7+_0x141262(0x7c)};return{'isValid':!![],'value':_0x45a4b7};}
@@ -1 +1 @@
1
- const a227_0x5e6af4=a227_0x4352;(function(_0x4b42ce,_0x1711d3){const _0x4fb7d3=a227_0x4352,_0x7e6778=_0x4b42ce();while(!![]){try{const _0x19eee3=parseInt(_0x4fb7d3(0x143))/0x1*(-parseInt(_0x4fb7d3(0x14f))/0x2)+-parseInt(_0x4fb7d3(0x154))/0x3*(-parseInt(_0x4fb7d3(0x15b))/0x4)+parseInt(_0x4fb7d3(0x169))/0x5*(parseInt(_0x4fb7d3(0x15c))/0x6)+parseInt(_0x4fb7d3(0x160))/0x7+-parseInt(_0x4fb7d3(0x152))/0x8*(-parseInt(_0x4fb7d3(0x171))/0x9)+-parseInt(_0x4fb7d3(0x148))/0xa*(parseInt(_0x4fb7d3(0x177))/0xb)+-parseInt(_0x4fb7d3(0x167))/0xc;if(_0x19eee3===_0x1711d3)break;else _0x7e6778['push'](_0x7e6778['shift']());}catch(_0xc0b3bd){_0x7e6778['push'](_0x7e6778['shift']());}}}(a227_0xe21f,0x709e0));function a227_0xe21f(){const _0x5a3920=['16140xqYSDX','platform','xonsh','join','http:','250lmaEsM','stderr','split','exit','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','toString','data','38iMlsBT','pid','which','3783952BuaJuZ','unref','19002SCeJxS','href','protocol','isInteger','code','win32','pwsh','492HpFMLG','12lPWJKK','map','pipe','open','895608ZtGCMr','comm','\x20-o\x20ppid=,comm=','tcsh','fish','error','ion','4602816vPMydk','elvish','63345nHXZjq','zsh','ppid','darwin','kill','replace','ignore','has','9ZKNyHh','ps\x20-p\x20','test','dash','stdout','utf-8','111694jEHqNQ','Invalid\x20URL:\x20','claude','pop','start','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','trim','csh'];a227_0xe21f=function(){return _0x5a3920;};return a227_0xe21f();}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a227_0x5e6af4(0x16a),'sh',a227_0x5e6af4(0x164),'ksh',a227_0x5e6af4(0x163),a227_0x5e6af4(0x142),a227_0x5e6af4(0x174),a227_0x5e6af4(0x15a),'powershell','nu',a227_0x5e6af4(0x166),a227_0x5e6af4(0x168),a227_0x5e6af4(0x145)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x5e6af4(0x179),a227_0x5e6af4(0x158),'cursor','electron','treasure\x20studio']);function getProcessInfoWindows(_0x5fa475){const _0x4417c6=a227_0x5e6af4;try{if(!Number['isInteger'](_0x5fa475)||_0x5fa475<=0x0)return null;const _0x412775='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x5fa475+_0x4417c6(0x140),_0x51ec8f=execSync(_0x4417c6(0x14c)+_0x412775+'\x22',{'encoding':_0x4417c6(0x176),'windowsHide':!![],'stdio':[_0x4417c6(0x15e),_0x4417c6(0x15e),_0x4417c6(0x15e)]})[_0x4417c6(0x141)]();if(!_0x51ec8f)return null;const [_0x60aa64,..._0x793132]=_0x51ec8f[_0x4417c6(0x14a)](','),_0x45ef01=parseInt(_0x60aa64,0xa),_0x432834=_0x793132['join'](',')[_0x4417c6(0x141)]();if(isNaN(_0x45ef01)||!_0x432834)return null;return{'pid':_0x5fa475,'ppid':_0x45ef01,'comm':_0x432834['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x5ad8cd){const _0x261c4a=a227_0x5e6af4;try{const _0x1c18e0=0x400000;if(!Number[_0x261c4a(0x157)](_0x5ad8cd)||_0x5ad8cd<=0x0||_0x5ad8cd>_0x1c18e0)return null;const _0x5c499c=execSync(_0x261c4a(0x172)+_0x5ad8cd+_0x261c4a(0x162),{'encoding':_0x261c4a(0x176),'stdio':_0x261c4a(0x15e)})[_0x261c4a(0x141)](),[_0x34fdc1,..._0x5e6e5d]=_0x5c499c[_0x261c4a(0x14a)](/\s+/),_0x5efdb3=parseInt(_0x34fdc1,0xa),_0x33726f=_0x5e6e5d[_0x261c4a(0x146)]('\x20');if(isNaN(_0x5efdb3))return null;return{'pid':_0x5ad8cd,'ppid':_0x5efdb3,'comm':_0x33726f};}catch{return null;}}function getProcessInfo(_0x4f68b9){const _0x5cbcfd=a227_0x5e6af4;if(process[_0x5cbcfd(0x144)]===_0x5cbcfd(0x159))return getProcessInfoWindows(_0x4f68b9);return getProcessInfoPosix(_0x4f68b9);}function getBasename(_0x4fd063){const _0x14d5df=a227_0x5e6af4;return _0x4fd063[_0x14d5df(0x16e)](/^-/,'')[_0x14d5df(0x14a)]('/')[_0x14d5df(0x13e)]()?.['toLowerCase']()||'';}function isShell(_0x434676){const _0x25ee8c=a227_0x5e6af4;return SHELL_NAMES[_0x25ee8c(0x170)](getBasename(_0x434676));}function isEphemeralShellSpawner(_0x2baede){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x2baede));}let cachedShellPID;function findShellPID(){const _0xa191f3=a227_0x5e6af4;if(process[_0xa191f3(0x16b)]===undefined)return process[_0xa191f3(0x150)];let _0xa5070c=process[_0xa191f3(0x16b)];const _0x361abd=0xa;let _0x903d69=0x0;while(_0x903d69<_0x361abd){const _0x556e9b=getProcessInfo(_0xa5070c);if(!_0x556e9b)break;if(isShell(_0x556e9b[_0xa191f3(0x161)])){const _0x40c89e=getProcessInfo(_0x556e9b[_0xa191f3(0x16b)]);if(_0x40c89e&&isEphemeralShellSpawner(_0x40c89e['comm'])){_0xa5070c=_0x556e9b[_0xa191f3(0x16b)],_0x903d69++;continue;}return _0x556e9b[_0xa191f3(0x150)];}if(_0x556e9b['ppid']===0x0||_0x556e9b[_0xa191f3(0x16b)]===0x1){if(isShell(_0x556e9b[_0xa191f3(0x161)]))return _0x556e9b[_0xa191f3(0x150)];break;}_0xa5070c=_0x556e9b[_0xa191f3(0x16b)],_0x903d69++;}return process[_0xa191f3(0x16b)]!==undefined?process[_0xa191f3(0x16b)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x37ff19){const _0x7e2e68=a227_0x5e6af4;if(!Number[_0x7e2e68(0x157)](_0x37ff19)||_0x37ff19<=0x0)return![];try{return process['kill'](_0x37ff19,0x0),!![];}catch{return![];}}function a227_0x4352(_0x2d44e8,_0x5e109f){_0x2d44e8=_0x2d44e8-0x13e;const _0xe21f58=a227_0xe21f();let _0x43528a=_0xe21f58[_0x2d44e8];return _0x43528a;}export function openBrowser(_0x1df1dc){const _0x261ee4=a227_0x5e6af4;let _0x3b226a;try{_0x3b226a=new URL(_0x1df1dc);}catch{throw new Error(_0x261ee4(0x178)+_0x1df1dc);}if(_0x3b226a[_0x261ee4(0x156)]!==_0x261ee4(0x147)&&_0x3b226a['protocol']!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x3b226a[_0x261ee4(0x156)]);const _0x29b288=_0x3b226a[_0x261ee4(0x155)],_0x465662=process['platform'];if(_0x465662===_0x261ee4(0x159))spawn('cmd.exe',['/c',_0x261ee4(0x13f),'',_0x29b288],{'detached':!![],'stdio':_0x261ee4(0x16f)})[_0x261ee4(0x153)]();else{const _0x42d3c8=_0x465662===_0x261ee4(0x16c)?_0x261ee4(0x15f):'xdg-open';spawn(_0x42d3c8,[_0x29b288],{'detached':!![],'stdio':_0x261ee4(0x16f)})[_0x261ee4(0x153)]();}}export function isWindows(){const _0x35ddcb=a227_0x5e6af4;return process['platform']===_0x35ddcb(0x159);}export function getCrossSpawnOptions(_0x21fe29){return{..._0x21fe29??{},'shell':isWindows()};}export function escapeWindowsArg(_0x58a5e0){const _0x1587ff=a227_0x5e6af4;if(!/[ \t"&|<>^%!`\r\n]/[_0x1587ff(0x173)](_0x58a5e0))return _0x58a5e0;const _0x53371c=_0x58a5e0['replace'](/"/g,'\x22\x22');return'\x22'+_0x53371c+'\x22';}export function crossSpawn(_0x3be8d9,_0x193d35,_0x3b6eeb){const _0x5c041e=a227_0x5e6af4;if(isWindows()){const _0xfcfe5d=escapeWindowsArg(_0x3be8d9),_0x3b40ea=_0x193d35[_0x5c041e(0x15d)](escapeWindowsArg),_0x4300c4=[_0xfcfe5d,..._0x3b40ea]['join']('\x20');return spawn(_0x4300c4,[],{..._0x3b6eeb,'shell':!![]});}return spawn(_0x3be8d9,_0x193d35,{..._0x3b6eeb,'shell':![]});}export function gracefulExit(_0x522e6d=0x0){const _0x25ba1e=a227_0x5e6af4;isWindows()?setTimeout(()=>process['exit'](_0x522e6d),0x32):process[_0x25ba1e(0x14b)](_0x522e6d);}export function findExecutable(_0xa33c1f,_0x2c13e8=0x1388){return new Promise(_0x296f53=>{const _0x991956=a227_0x4352,_0x2b00d0=isWindows()?'where.exe':_0x991956(0x151);let _0x34b56e=![];const _0x2e58a0=crossSpawn(_0x2b00d0,[_0xa33c1f],{'stdio':_0x991956(0x15e),'shell':isWindows()}),_0xf7c76a=setTimeout(()=>{const _0x44346a=_0x991956;!_0x34b56e&&(_0x34b56e=!![],_0x2e58a0[_0x44346a(0x16d)](),_0x296f53(null));},_0x2c13e8);let _0x3c0984='';_0x2e58a0[_0x991956(0x175)]?.['on'](_0x991956(0x14e),_0x445299=>{const _0x5c7999=_0x991956;_0x3c0984+=_0x445299[_0x5c7999(0x14d)]();}),_0x2e58a0[_0x991956(0x149)]?.['on']('data',()=>{}),_0x2e58a0['on'](_0x991956(0x14b),_0x325ef0=>{const _0x32a97e=_0x991956;if(_0x34b56e)return;_0x34b56e=!![],clearTimeout(_0xf7c76a);if(_0x325ef0===0x0&&_0x3c0984[_0x32a97e(0x141)]()){const _0x452c1b=_0x3c0984[_0x32a97e(0x141)]()[_0x32a97e(0x14a)](/\r?\n/)[0x0];_0x296f53(_0x452c1b);}else _0x296f53(null);}),_0x2e58a0['on'](_0x991956(0x165),()=>{if(_0x34b56e)return;_0x34b56e=!![],clearTimeout(_0xf7c76a),_0x296f53(null);});});}
1
+ function a227_0x22b8(_0x3ec075,_0xc4d37b){_0x3ec075=_0x3ec075-0xc8;const _0x2f94a3=a227_0x2f94();let _0x22b83d=_0x2f94a3[_0x3ec075];return _0x22b83d;}const a227_0x36b2e3=a227_0x22b8;(function(_0x316095,_0x5216f5){const _0x57e6ec=a227_0x22b8,_0x16fedd=_0x316095();while(!![]){try{const _0x543ca2=-parseInt(_0x57e6ec(0xf7))/0x1*(-parseInt(_0x57e6ec(0xe0))/0x2)+parseInt(_0x57e6ec(0xd9))/0x3+-parseInt(_0x57e6ec(0xe8))/0x4*(-parseInt(_0x57e6ec(0xd5))/0x5)+parseInt(_0x57e6ec(0xe6))/0x6+-parseInt(_0x57e6ec(0xc8))/0x7+parseInt(_0x57e6ec(0xd6))/0x8*(-parseInt(_0x57e6ec(0xcd))/0x9)+parseInt(_0x57e6ec(0xd3))/0xa*(-parseInt(_0x57e6ec(0xfe))/0xb);if(_0x543ca2===_0x5216f5)break;else _0x16fedd['push'](_0x16fedd['shift']());}catch(_0x1541c8){_0x16fedd['push'](_0x16fedd['shift']());}}}(a227_0x2f94,0xd591c));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a227_0x36b2e3(0xeb),a227_0x36b2e3(0xe5),'sh',a227_0x36b2e3(0xd0),a227_0x36b2e3(0xf2),'tcsh',a227_0x36b2e3(0xd8),a227_0x36b2e3(0xfd),a227_0x36b2e3(0x101),'powershell','nu',a227_0x36b2e3(0xcb),a227_0x36b2e3(0xfa),a227_0x36b2e3(0xdc)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x36b2e3(0x100),a227_0x36b2e3(0xef),a227_0x36b2e3(0xfb),a227_0x36b2e3(0xd7),a227_0x36b2e3(0xf9)]);function getProcessInfoWindows(_0x3a1856){const _0x4c7061=a227_0x36b2e3;try{if(!Number['isInteger'](_0x3a1856)||_0x3a1856<=0x0)return null;const _0x3d647d='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x3a1856+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x28d8f4=execSync(_0x4c7061(0xf5)+_0x3d647d+'\x22',{'encoding':_0x4c7061(0x104),'windowsHide':!![],'stdio':[_0x4c7061(0xcf),_0x4c7061(0xcf),'pipe']})[_0x4c7061(0xca)]();if(!_0x28d8f4)return null;const [_0x4400ff,..._0x1b2446]=_0x28d8f4[_0x4c7061(0xd2)](','),_0x3d45f4=parseInt(_0x4400ff,0xa),_0x1cc9b6=_0x1b2446[_0x4c7061(0x106)](',')[_0x4c7061(0xca)]();if(isNaN(_0x3d45f4)||!_0x1cc9b6)return null;return{'pid':_0x3a1856,'ppid':_0x3d45f4,'comm':_0x1cc9b6[_0x4c7061(0xea)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x295450){const _0x285f88=a227_0x36b2e3;try{const _0x42f046=0x400000;if(!Number['isInteger'](_0x295450)||_0x295450<=0x0||_0x295450>_0x42f046)return null;const _0x348908=execSync(_0x285f88(0xf4)+_0x295450+'\x20-o\x20ppid=,comm=',{'encoding':_0x285f88(0x104),'stdio':_0x285f88(0xcf)})[_0x285f88(0xca)](),[_0x642c86,..._0x52d64e]=_0x348908['split'](/\s+/),_0x49977f=parseInt(_0x642c86,0xa),_0x1ddc32=_0x52d64e['join']('\x20');if(isNaN(_0x49977f))return null;return{'pid':_0x295450,'ppid':_0x49977f,'comm':_0x1ddc32};}catch{return null;}}function getProcessInfo(_0x11374d){const _0x3c65ce=a227_0x36b2e3;if(process[_0x3c65ce(0xec)]===_0x3c65ce(0xe2))return getProcessInfoWindows(_0x11374d);return getProcessInfoPosix(_0x11374d);}function getBasename(_0x5b6b08){const _0x37b639=a227_0x36b2e3;return _0x5b6b08['replace'](/^-/,'')[_0x37b639(0xd2)]('/')[_0x37b639(0xd4)]()?.[_0x37b639(0xdf)]()||'';}function isShell(_0x4fb6d2){const _0x1507ea=a227_0x36b2e3;return SHELL_NAMES[_0x1507ea(0xf1)](getBasename(_0x4fb6d2));}function isEphemeralShellSpawner(_0x3c32b3){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x3c32b3));}let cachedShellPID;function findShellPID(){const _0x43ccf7=a227_0x36b2e3;if(process[_0x43ccf7(0xfc)]===undefined)return process['pid'];let _0x6c155f=process[_0x43ccf7(0xfc)];const _0x47bae4=0xa;let _0x3fd0cd=0x0;while(_0x3fd0cd<_0x47bae4){const _0x299cea=getProcessInfo(_0x6c155f);if(!_0x299cea)break;if(isShell(_0x299cea[_0x43ccf7(0xf8)])){const _0x4e54c=getProcessInfo(_0x299cea[_0x43ccf7(0xfc)]);if(_0x4e54c&&isEphemeralShellSpawner(_0x4e54c[_0x43ccf7(0xf8)])){_0x6c155f=_0x299cea[_0x43ccf7(0xfc)],_0x3fd0cd++;continue;}return _0x299cea[_0x43ccf7(0x105)];}if(_0x299cea[_0x43ccf7(0xfc)]===0x0||_0x299cea[_0x43ccf7(0xfc)]===0x1){if(isShell(_0x299cea[_0x43ccf7(0xf8)]))return _0x299cea['pid'];break;}_0x6c155f=_0x299cea[_0x43ccf7(0xfc)],_0x3fd0cd++;}return process[_0x43ccf7(0xfc)]!==undefined?process[_0x43ccf7(0xfc)]:process[_0x43ccf7(0x105)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x57d6c7){const _0x1c7717=a227_0x36b2e3;if(!Number[_0x1c7717(0xe9)](_0x57d6c7)||_0x57d6c7<=0x0)return![];try{return process[_0x1c7717(0xd1)](_0x57d6c7,0x0),!![];}catch{return![];}}export function openBrowser(_0x5d523c){const _0x108179=a227_0x36b2e3;let _0x2f7c26;try{_0x2f7c26=new URL(_0x5d523c);}catch{throw new Error(_0x108179(0xf6)+_0x5d523c);}if(_0x2f7c26[_0x108179(0xda)]!==_0x108179(0xe1)&&_0x2f7c26[_0x108179(0xda)]!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x2f7c26[_0x108179(0xda)]);const _0x4de6cc=_0x2f7c26[_0x108179(0xc9)],_0x17be03=process[_0x108179(0xec)];if(_0x17be03===_0x108179(0xe2))spawn(_0x108179(0xf0),['/c','start','',_0x4de6cc],{'detached':!![],'stdio':_0x108179(0xe7)})[_0x108179(0xe3)]();else{const _0x5eef46=_0x17be03===_0x108179(0xde)?'open':_0x108179(0xdd);spawn(_0x5eef46,[_0x4de6cc],{'detached':!![],'stdio':_0x108179(0xe7)})[_0x108179(0xe3)]();}}export function isWindows(){const _0x37243d=a227_0x36b2e3;return process[_0x37243d(0xec)]===_0x37243d(0xe2);}export function getCrossSpawnOptions(_0x500148){return{..._0x500148??{},'shell':isWindows()};}function a227_0x2f94(){const _0x378422=['xdg-open','darwin','toLowerCase','30FqNfCp','http:','win32','unref','stdout','zsh','2204034irokav','ignore','980XDttpD','isInteger','replace','bash','platform','test','stderr','code','cmd.exe','has','ksh','which','ps\x20-p\x20','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Invalid\x20URL:\x20','3117wTqDIr','comm','treasure\x20studio','elvish','cursor','ppid','dash','7882391PEqvjq','data','claude','pwsh','where.exe','error','utf-8','pid','join','1161384jVFdPl','href','trim','ion','exit','27NeNiuX','toString','pipe','fish','kill','split','20riDRmU','pop','32890gykMNi','1943896GLqHHs','electron','csh','3531333XnvCOt','protocol','map','xonsh'];a227_0x2f94=function(){return _0x378422;};return a227_0x2f94();}export function escapeWindowsArg(_0x2a823b){const _0x38a47e=a227_0x36b2e3;if(!/[ \t"&|<>^%!`\r\n]/[_0x38a47e(0xed)](_0x2a823b))return _0x2a823b;const _0x545bbb=_0x2a823b['replace'](/"/g,'\x22\x22');return'\x22'+_0x545bbb+'\x22';}export function crossSpawn(_0x4f49e9,_0x1c362e,_0x477691){const _0x3f6eb9=a227_0x36b2e3;if(isWindows()){const _0x5ce355=escapeWindowsArg(_0x4f49e9),_0x174931=_0x1c362e[_0x3f6eb9(0xdb)](escapeWindowsArg),_0x5e463e=[_0x5ce355,..._0x174931][_0x3f6eb9(0x106)]('\x20');return spawn(_0x5e463e,[],{..._0x477691,'shell':!![]});}return spawn(_0x4f49e9,_0x1c362e,{..._0x477691,'shell':![]});}export function gracefulExit(_0xfc870d=0x0){const _0x4b4d79=a227_0x36b2e3;isWindows()?setTimeout(()=>process[_0x4b4d79(0xcc)](_0xfc870d),0x32):process['exit'](_0xfc870d);}export function findExecutable(_0x5d0b42,_0x557951=0x1388){return new Promise(_0x1f0488=>{const _0x26f023=a227_0x22b8,_0x3e25aa=isWindows()?_0x26f023(0x102):_0x26f023(0xf3);let _0x2850d5=![];const _0x41732d=crossSpawn(_0x3e25aa,[_0x5d0b42],{'stdio':_0x26f023(0xcf),'shell':isWindows()}),_0x69a207=setTimeout(()=>{const _0xd059a5=_0x26f023;!_0x2850d5&&(_0x2850d5=!![],_0x41732d[_0xd059a5(0xd1)](),_0x1f0488(null));},_0x557951);let _0x591595='';_0x41732d[_0x26f023(0xe4)]?.['on'](_0x26f023(0xff),_0x5f4a01=>{const _0x45ca9c=_0x26f023;_0x591595+=_0x5f4a01[_0x45ca9c(0xce)]();}),_0x41732d[_0x26f023(0xee)]?.['on'](_0x26f023(0xff),()=>{}),_0x41732d['on'](_0x26f023(0xcc),_0x12c0da=>{if(_0x2850d5)return;_0x2850d5=!![],clearTimeout(_0x69a207);if(_0x12c0da===0x0&&_0x591595['trim']()){const _0x3c242f=_0x591595['trim']()['split'](/\r?\n/)[0x0];_0x1f0488(_0x3c242f);}else _0x1f0488(null);}),_0x41732d['on'](_0x26f023(0x103),()=>{if(_0x2850d5)return;_0x2850d5=!![],clearTimeout(_0x69a207),_0x1f0488(null);});});}
@@ -1 +1 @@
1
- (function(_0x45f01b,_0x4b4fc7){const _0x34a183=a228_0x5391,_0x4250a8=_0x45f01b();while(!![]){try{const _0x5f043b=parseInt(_0x34a183(0x84))/0x1+parseInt(_0x34a183(0x8a))/0x2+-parseInt(_0x34a183(0x90))/0x3*(parseInt(_0x34a183(0x8f))/0x4)+-parseInt(_0x34a183(0x82))/0x5+parseInt(_0x34a183(0x85))/0x6+parseInt(_0x34a183(0x88))/0x7*(parseInt(_0x34a183(0x8c))/0x8)+-parseInt(_0x34a183(0x8b))/0x9;if(_0x5f043b===_0x4b4fc7)break;else _0x4250a8['push'](_0x4250a8['shift']());}catch(_0x38ee6e){_0x4250a8['push'](_0x4250a8['shift']());}}}(a228_0xee40,0xa1dff));import*as a228_0xffa9f6 from'readline';function a228_0x5391(_0x552492,_0xe9444b){_0x552492=_0x552492-0x80;const _0xee400a=a228_0xee40();let _0x53916a=_0xee400a[_0x552492];return _0x53916a;}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x221c46=a228_0x5391;return process[_0x221c46(0x94)][_0x221c46(0x8d)]===!![];}function a228_0xee40(){const _0x39628d=['pause','stdin','\x20(y/N):\x20','question','data','write','1596420HtBXIQ','stderr','881966eLFhUP','3386544mJmyjl','utf8','toLowerCase','4172630wRRnpw','createInterface','1996454UjMUTs','15239772rLonlM','8PxfMng','isTTY','close','121692oydAFr','36PPhROX','setRawMode','removeListener'];a228_0xee40=function(){return _0x39628d;};return a228_0xee40();}export async function confirm(_0x400cd9){const _0x3a41a7=a228_0x5391,_0x28b3e4=a228_0xffa9f6[_0x3a41a7(0x89)]({'input':process[_0x3a41a7(0x94)],'output':process['stdout']});return new Promise(_0x1eb323=>{const _0x45837e=_0x3a41a7;_0x28b3e4[_0x45837e(0x96)](_0x400cd9+_0x45837e(0x95),_0x20fbf4=>{const _0x595afe=_0x45837e;_0x28b3e4[_0x595afe(0x8e)](),_0x1eb323(_0x20fbf4[_0x595afe(0x87)]()==='y'||_0x20fbf4[_0x595afe(0x87)]()==='yes');});});}export async function confirmKey(_0xb23891){const _0x1a97ab=a228_0x5391;if(!process[_0x1a97ab(0x94)]['isTTY'])return![];return process[_0x1a97ab(0x83)]['write'](_0xb23891+'\x20[y/N]\x20'),new Promise(_0x242f0a=>{const _0x24fe46=_0x1a97ab,_0x1f47d3=process[_0x24fe46(0x94)];_0x1f47d3[_0x24fe46(0x91)](!![]),_0x1f47d3['resume'](),_0x1f47d3['setEncoding'](_0x24fe46(0x86));const _0x1bccae=_0x2d2f9c=>{const _0x47ff2f=_0x24fe46;_0x1f47d3['setRawMode'](![]),_0x1f47d3[_0x47ff2f(0x93)](),_0x1f47d3[_0x47ff2f(0x92)](_0x47ff2f(0x80),_0x1bccae);if(_0x2d2f9c==='\x1b'){process['stderr'][_0x47ff2f(0x81)]('\x0a'),_0x242f0a(![]);return;}_0x2d2f9c==='\x03'&&(process[_0x47ff2f(0x83)][_0x47ff2f(0x81)]('\x0a'),gracefulExit(0x82));if(_0x2d2f9c[_0x47ff2f(0x87)]()==='y'){process[_0x47ff2f(0x83)][_0x47ff2f(0x81)]('y\x0a'),_0x242f0a(!![]);return;}process[_0x47ff2f(0x83)]['write']('\x0a'),_0x242f0a(![]);};_0x1f47d3['on'](_0x24fe46(0x80),_0x1bccae);});}
1
+ (function(_0x20849f,_0x2e335d){const _0x32f519=a228_0x3f61,_0xceb4af=_0x20849f();while(!![]){try{const _0x33203f=-parseInt(_0x32f519(0x168))/0x1+-parseInt(_0x32f519(0x164))/0x2*(parseInt(_0x32f519(0x161))/0x3)+parseInt(_0x32f519(0x15d))/0x4+-parseInt(_0x32f519(0x159))/0x5+parseInt(_0x32f519(0x162))/0x6*(parseInt(_0x32f519(0x169))/0x7)+parseInt(_0x32f519(0x15c))/0x8+parseInt(_0x32f519(0x15a))/0x9*(parseInt(_0x32f519(0x15f))/0xa);if(_0x33203f===_0x2e335d)break;else _0xceb4af['push'](_0xceb4af['shift']());}catch(_0xeaf11c){_0xceb4af['push'](_0xceb4af['shift']());}}}(a228_0x1a2c,0x5f9c6));import*as a228_0x1faf42 from'readline';function a228_0x1a2c(){const _0x3ae2f4=['\x20(y/N):\x20','pause','write','data','2603165EqVMKx','166473ZzUbWs','\x20[y/N]\x20','4281672jUnLGa','1753244sUEGpt','createInterface','30cltyQN','toLowerCase','3MqnGuY','73572btqwlK','stdout','83374bMlwVO','stdin','question','setRawMode','357095CRTtOk','161FnHcxj','stderr'];a228_0x1a2c=function(){return _0x3ae2f4;};return a228_0x1a2c();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x4e57f9=a228_0x3f61;return process[_0x4e57f9(0x165)]['isTTY']===!![];}function a228_0x3f61(_0x1f72b3,_0x5a4126){_0x1f72b3=_0x1f72b3-0x159;const _0x1a2cff=a228_0x1a2c();let _0x3f6179=_0x1a2cff[_0x1f72b3];return _0x3f6179;}export async function confirm(_0xbc3aad){const _0x3dc6a8=a228_0x3f61,_0x5ab68a=a228_0x1faf42[_0x3dc6a8(0x15e)]({'input':process['stdin'],'output':process[_0x3dc6a8(0x163)]});return new Promise(_0x5171d9=>{const _0x128f57=_0x3dc6a8;_0x5ab68a[_0x128f57(0x166)](_0xbc3aad+_0x128f57(0x16b),_0x1f23c=>{const _0x58b133=_0x128f57;_0x5ab68a['close'](),_0x5171d9(_0x1f23c[_0x58b133(0x160)]()==='y'||_0x1f23c[_0x58b133(0x160)]()==='yes');});});}export async function confirmKey(_0x3b975e){const _0x4641cf=a228_0x3f61;if(!process[_0x4641cf(0x165)]['isTTY'])return![];return process[_0x4641cf(0x16a)][_0x4641cf(0x16d)](_0x3b975e+_0x4641cf(0x15b)),new Promise(_0xb263e7=>{const _0x102fa3=_0x4641cf,_0x3df97d=process[_0x102fa3(0x165)];_0x3df97d[_0x102fa3(0x167)](!![]),_0x3df97d['resume'](),_0x3df97d['setEncoding']('utf8');const _0x1eb86a=_0x230eba=>{const _0x37614b=_0x102fa3;_0x3df97d['setRawMode'](![]),_0x3df97d[_0x37614b(0x16c)](),_0x3df97d['removeListener'](_0x37614b(0x16e),_0x1eb86a);if(_0x230eba==='\x1b'){process['stderr'][_0x37614b(0x16d)]('\x0a'),_0xb263e7(![]);return;}_0x230eba==='\x03'&&(process['stderr'][_0x37614b(0x16d)]('\x0a'),gracefulExit(0x82));if(_0x230eba['toLowerCase']()==='y'){process[_0x37614b(0x16a)][_0x37614b(0x16d)]('y\x0a'),_0xb263e7(!![]);return;}process[_0x37614b(0x16a)][_0x37614b(0x16d)]('\x0a'),_0xb263e7(![]);};_0x3df97d['on'](_0x102fa3(0x16e),_0x1eb86a);});}
@@ -1 +1 @@
1
- (function(_0x29791a,_0x70cbb3){const _0x3810d7=a229_0x1473,_0x3ef362=_0x29791a();while(!![]){try{const _0x4f7495=parseInt(_0x3810d7(0x1f5))/0x1*(-parseInt(_0x3810d7(0x1eb))/0x2)+parseInt(_0x3810d7(0x1fb))/0x3+parseInt(_0x3810d7(0x1f3))/0x4*(-parseInt(_0x3810d7(0x1f8))/0x5)+parseInt(_0x3810d7(0x1e1))/0x6*(parseInt(_0x3810d7(0x1de))/0x7)+parseInt(_0x3810d7(0x1e0))/0x8+parseInt(_0x3810d7(0x1f7))/0x9*(-parseInt(_0x3810d7(0x1ed))/0xa)+parseInt(_0x3810d7(0x1ef))/0xb*(parseInt(_0x3810d7(0x1e2))/0xc);if(_0x4f7495===_0x70cbb3)break;else _0x3ef362['push'](_0x3ef362['shift']());}catch(_0x5972be){_0x3ef362['push'](_0x3ef362['shift']());}}}(a229_0x2ec0,0x9af5f));import a229_0x593e10 from'ora';import{isWindows}from'./process.js';function a229_0x1473(_0x3e7529,_0x44ecda){_0x3e7529=_0x3e7529-0x1dd;const _0x2ec0b6=a229_0x2ec0();let _0x14737e=_0x2ec0b6[_0x3e7529];return _0x14737e;}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4675b3,_0x477079={}){const _0x182e81=a229_0x1473,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x477079;return a229_0x593e10({'text':_0x4675b3,'color':_0x182e81(0x1f6),'stream':process[_0x182e81(0x1e3)],'isEnabled':forceEnabled||process[_0x182e81(0x1e3)][_0x182e81(0x1e9)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a229_0x2ec0(){const _0x35ee8d=['\x20[Job\x20ID:\x20','phase','...','32lvxfBd','floor','97562MiSXaV','cyan','171seZwKs','310510sezSzv','clock','jobId','2538168MAIDfB','text','7nfZHlr','start','33280DwGgot','2944596cdacPK','4669188JfoxWF','stderr','trim','extra','intervalFactory','isSpinning','now','isTTY','toFixed','10rDktpa','stop','467860ygobIk','Processing','33TyrsGn'];a229_0x2ec0=function(){return _0x35ee8d;};return a229_0x2ec0();}export async function withSpinner(_0x3b337c,_0x4539b7,_0x302a89={}){const _0x575a4a=a229_0x1473,_0x38d361=_0x302a89[_0x575a4a(0x1f9)]??(()=>Date[_0x575a4a(0x1e8)]()),_0x5b93b1=createCommandSpinner(_0x3b337c,_0x302a89);_0x5b93b1[_0x575a4a(0x1df)]();const _0x245a3d=_0x38d361();try{const _0x1dc04f=await _0x4539b7(),_0x3611bc=_0x38d361()-_0x245a3d;return _0x5b93b1[_0x575a4a(0x1ec)](),{'data':_0x1dc04f,'elapsedMs':_0x3611bc};}catch(_0x59b45a){_0x5b93b1[_0x575a4a(0x1ec)]();throw _0x59b45a;}}export async function withProgressSpinner(_0x53bcc6,_0x3631cd,_0x11a240={}){const _0x12038c=a229_0x1473,_0x5520fe=_0x11a240[_0x12038c(0x1f9)]??(()=>Date[_0x12038c(0x1e8)]()),_0xd1d7cc=_0x11a240[_0x12038c(0x1e6)]??setInterval,_0x49bf52=createCommandSpinner(_0x53bcc6,_0x11a240);_0x49bf52['start']();const _0x3f1521=_0x5520fe(),_0xed68fd=_0x53bcc6['replace'](_0x12038c(0x1f2),'')['trim']()||_0x12038c(0x1ee),_0x3f5b9c={};let _0x31eaa3=_0x53bcc6;const _0x534e3c=()=>{const _0x1027f7=_0x12038c;if(!_0x49bf52['isSpinning'])return;const _0x305a88=_0x5520fe()-_0x3f1521,_0x5484ac=formatElapsed(_0x305a88),_0x44be40=_0x3f5b9c[_0x1027f7(0x1f1)]?.[_0x1027f7(0x1e4)]()||_0xed68fd,_0x3f8440=_0x3f5b9c[_0x1027f7(0x1fa)]?_0x1027f7(0x1f0)+_0x3f5b9c[_0x1027f7(0x1fa)]+']':'',_0x52b9f8=_0x3f5b9c['extra']?'\x20'+_0x3f5b9c[_0x1027f7(0x1e5)]:'',_0x3467d1=_0x44be40+'\x20'+_0x5484ac+_0x52b9f8+_0x3f8440;_0x3467d1!==_0x31eaa3&&_0x3467d1[_0x1027f7(0x1e4)]()&&(_0x49bf52['text']=_0x3467d1,_0x31eaa3=_0x3467d1);},_0x481c30=_0xd1d7cc(()=>{_0x534e3c();},0x3e8),_0xf849e0={'setPhase':_0x1625fd=>{const _0x51d211=_0x12038c;_0x3f5b9c[_0x51d211(0x1f1)]=_0x1625fd;const _0x3e5275=_0x1625fd?.[_0x51d211(0x1e4)]()||_0xed68fd,_0x2161db=_0x5520fe()-_0x3f1521,_0x6b3a17=formatElapsed(_0x2161db),_0x27a337=_0x3f5b9c[_0x51d211(0x1fa)]?_0x51d211(0x1f0)+_0x3f5b9c[_0x51d211(0x1fa)]+']':'',_0x2fa200=_0x3f5b9c[_0x51d211(0x1e5)]?'\x20'+_0x3f5b9c[_0x51d211(0x1e5)]:'',_0x3c8f00=_0x3e5275+'\x20'+_0x6b3a17+_0x2fa200+_0x27a337;_0x49bf52[_0x51d211(0x1e7)]&&_0x3c8f00[_0x51d211(0x1e4)]()&&(_0x49bf52[_0x51d211(0x1dd)]=_0x3c8f00,_0x31eaa3=_0x3c8f00);},'setJobId':_0x9194b8=>{const _0x2fff12=_0x12038c;_0x3f5b9c[_0x2fff12(0x1fa)]=_0x9194b8,_0x534e3c();},'setExtra':_0x4099ba=>{const _0x27e0af=_0x12038c;_0x3f5b9c[_0x27e0af(0x1e5)]=_0x4099ba,_0x534e3c();}};_0x534e3c();try{const _0x3f182b=await _0x3631cd(_0xf849e0),_0x1218e1=_0x5520fe()-_0x3f1521;return{'data':_0x3f182b,'elapsedMs':_0x1218e1};}finally{clearInterval(_0x481c30),_0x49bf52['stop']();}}export function formatElapsed(_0x312c40){const _0x13cfce=a229_0x1473,_0x1b4d36=Math[_0x13cfce(0x1f4)](_0x312c40/0x3e8);if(_0x1b4d36<0x3c)return(_0x312c40/0x3e8)[_0x13cfce(0x1ea)](0x1)+'s';const _0x13533d=Math[_0x13cfce(0x1f4)](_0x1b4d36/0x3c),_0x4d279f=_0x1b4d36%0x3c;if(_0x13533d<0x3c)return _0x13533d+'m\x20'+_0x4d279f+'s';const _0x286085=Math[_0x13cfce(0x1f4)](_0x13533d/0x3c),_0x299529=_0x13533d%0x3c;return _0x286085+'h\x20'+_0x299529+'m';}
1
+ (function(_0x8f3576,_0x55607c){const _0x25ac2a=a229_0x2988,_0xb09fe4=_0x8f3576();while(!![]){try{const _0xe89a83=parseInt(_0x25ac2a(0x1ec))/0x1+-parseInt(_0x25ac2a(0x1d0))/0x2+parseInt(_0x25ac2a(0x1d9))/0x3*(parseInt(_0x25ac2a(0x1e2))/0x4)+parseInt(_0x25ac2a(0x1ea))/0x5*(-parseInt(_0x25ac2a(0x1d2))/0x6)+-parseInt(_0x25ac2a(0x1eb))/0x7*(-parseInt(_0x25ac2a(0x1d4))/0x8)+parseInt(_0x25ac2a(0x1e0))/0x9*(-parseInt(_0x25ac2a(0x1ce))/0xa)+parseInt(_0x25ac2a(0x1df))/0xb;if(_0xe89a83===_0x55607c)break;else _0xb09fe4['push'](_0xb09fe4['shift']());}catch(_0x54a106){_0xb09fe4['push'](_0xb09fe4['shift']());}}}(a229_0x191b,0x83ce8));function a229_0x2988(_0x534e74,_0x3e0860){_0x534e74=_0x534e74-0x1ce;const _0x191b27=a229_0x191b();let _0x298806=_0x191b27[_0x534e74];return _0x298806;}import a229_0x59dea0 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x212d3f,_0x3d5eb8={}){const _0x30f25d=a229_0x2988,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3d5eb8;return a229_0x59dea0({'text':_0x212d3f,'color':_0x30f25d(0x1dc),'stream':process[_0x30f25d(0x1da)],'isEnabled':forceEnabled||process['stderr'][_0x30f25d(0x1cf)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x34c25c,_0x2475c3,_0x12aa84={}){const _0x558d0a=a229_0x2988,_0x11427=_0x12aa84['clock']??(()=>Date[_0x558d0a(0x1d6)]()),_0x911f21=createCommandSpinner(_0x34c25c,_0x12aa84);_0x911f21[_0x558d0a(0x1d8)]();const _0x12fab9=_0x11427();try{const _0xd4912e=await _0x2475c3(),_0x34b54c=_0x11427()-_0x12fab9;return _0x911f21[_0x558d0a(0x1dd)](),{'data':_0xd4912e,'elapsedMs':_0x34b54c};}catch(_0x1eaa61){_0x911f21[_0x558d0a(0x1dd)]();throw _0x1eaa61;}}export async function withProgressSpinner(_0x465d04,_0x17e2e6,_0x374aa9={}){const _0x16fbd9=a229_0x2988,_0x3ce23b=_0x374aa9[_0x16fbd9(0x1e3)]??(()=>Date[_0x16fbd9(0x1d6)]()),_0x23cbe3=_0x374aa9[_0x16fbd9(0x1e9)]??setInterval,_0x2d975f=createCommandSpinner(_0x465d04,_0x374aa9);_0x2d975f['start']();const _0x46cfd1=_0x3ce23b(),_0x37d28a=_0x465d04[_0x16fbd9(0x1d1)](_0x16fbd9(0x1de),'')[_0x16fbd9(0x1d5)]()||_0x16fbd9(0x1e6),_0x3f4f3b={};let _0x10586f=_0x465d04;const _0x1f5f04=()=>{const _0x2d245f=_0x16fbd9;if(!_0x2d975f[_0x2d245f(0x1d7)])return;const _0x14abbb=_0x3ce23b()-_0x46cfd1,_0x3f94f9=formatElapsed(_0x14abbb),_0x5ed99b=_0x3f4f3b[_0x2d245f(0x1e1)]?.[_0x2d245f(0x1d5)]()||_0x37d28a,_0x5b8434=_0x3f4f3b[_0x2d245f(0x1e5)]?_0x2d245f(0x1e4)+_0x3f4f3b[_0x2d245f(0x1e5)]+']':'',_0x1b086d=_0x3f4f3b['extra']?'\x20'+_0x3f4f3b['extra']:'',_0x1d5209=_0x5ed99b+'\x20'+_0x3f94f9+_0x1b086d+_0x5b8434;_0x1d5209!==_0x10586f&&_0x1d5209[_0x2d245f(0x1d5)]()&&(_0x2d975f[_0x2d245f(0x1e8)]=_0x1d5209,_0x10586f=_0x1d5209);},_0x1d0dac=_0x23cbe3(()=>{_0x1f5f04();},0x3e8),_0x4b5011={'setPhase':_0x3c2f96=>{const _0x41af61=_0x16fbd9;_0x3f4f3b[_0x41af61(0x1e1)]=_0x3c2f96;const _0x1ad37f=_0x3c2f96?.['trim']()||_0x37d28a,_0x516bb9=_0x3ce23b()-_0x46cfd1,_0x39eb8f=formatElapsed(_0x516bb9),_0x5c487c=_0x3f4f3b[_0x41af61(0x1e5)]?_0x41af61(0x1e4)+_0x3f4f3b['jobId']+']':'',_0x2dee6c=_0x3f4f3b[_0x41af61(0x1e7)]?'\x20'+_0x3f4f3b[_0x41af61(0x1e7)]:'',_0x47c7ee=_0x1ad37f+'\x20'+_0x39eb8f+_0x2dee6c+_0x5c487c;_0x2d975f[_0x41af61(0x1d7)]&&_0x47c7ee[_0x41af61(0x1d5)]()&&(_0x2d975f[_0x41af61(0x1e8)]=_0x47c7ee,_0x10586f=_0x47c7ee);},'setJobId':_0x4cd6e7=>{const _0x2a86db=_0x16fbd9;_0x3f4f3b[_0x2a86db(0x1e5)]=_0x4cd6e7,_0x1f5f04();},'setExtra':_0x21353a=>{const _0x178f23=_0x16fbd9;_0x3f4f3b[_0x178f23(0x1e7)]=_0x21353a,_0x1f5f04();}};_0x1f5f04();try{const _0x1f2cbd=await _0x17e2e6(_0x4b5011),_0x3457d8=_0x3ce23b()-_0x46cfd1;return{'data':_0x1f2cbd,'elapsedMs':_0x3457d8};}finally{clearInterval(_0x1d0dac),_0x2d975f[_0x16fbd9(0x1dd)]();}}export function formatElapsed(_0x6d7765){const _0x301376=a229_0x2988,_0x53a0f3=Math[_0x301376(0x1d3)](_0x6d7765/0x3e8);if(_0x53a0f3<0x3c)return(_0x6d7765/0x3e8)[_0x301376(0x1db)](0x1)+'s';const _0x35a2b6=Math[_0x301376(0x1d3)](_0x53a0f3/0x3c),_0x5619f9=_0x53a0f3%0x3c;if(_0x35a2b6<0x3c)return _0x35a2b6+'m\x20'+_0x5619f9+'s';const _0x45b4ef=Math[_0x301376(0x1d3)](_0x35a2b6/0x3c),_0x4a05b7=_0x35a2b6%0x3c;return _0x45b4ef+'h\x20'+_0x4a05b7+'m';}function a229_0x191b(){const _0x1fc7f4=['stop','...','7895646IpOtKX','10323fRvtGg','phase','60eNIjyX','clock','\x20[Job\x20ID:\x20','jobId','Processing','extra','text','intervalFactory','446815qfkeHw','2968phBsTn','119452pSPxIO','2330XJpDfu','isTTY','935176EmTjiX','replace','42DqPqGe','floor','1864uSNclY','trim','now','isSpinning','start','192846htvhwu','stderr','toFixed','cyan'];a229_0x191b=function(){return _0x1fc7f4;};return a229_0x191b();}
@@ -1 +1 @@
1
- function a230_0x42c6(_0xe35b4d,_0x175796){_0xe35b4d=_0xe35b4d-0x149;const _0x1042cf=a230_0x1042();let _0x42c6d8=_0x1042cf[_0xe35b4d];return _0x42c6d8;}(function(_0x4fca5a,_0x40f6dc){const _0x59485c=a230_0x42c6,_0x2c51cd=_0x4fca5a();while(!![]){try{const _0x1b9f97=-parseInt(_0x59485c(0x156))/0x1+parseInt(_0x59485c(0x14d))/0x2+parseInt(_0x59485c(0x14c))/0x3*(parseInt(_0x59485c(0x15b))/0x4)+-parseInt(_0x59485c(0x159))/0x5+parseInt(_0x59485c(0x14b))/0x6*(parseInt(_0x59485c(0x15e))/0x7)+-parseInt(_0x59485c(0x149))/0x8+-parseInt(_0x59485c(0x160))/0x9*(-parseInt(_0x59485c(0x155))/0xa);if(_0x1b9f97===_0x40f6dc)break;else _0x2c51cd['push'](_0x2c51cd['shift']());}catch(_0x412e00){_0x2c51cd['push'](_0x2c51cd['shift']());}}}(a230_0x1042,0x43cfa));function a230_0x1042(){const _0x23a51a=['851967LmOSGz','1560688MqVHPY','releaseLock','105204emVVAs','3ghlRbn','870784GTMcaH','split','getReader','event','[LLM\x20API\x20SSE]\x20','pop','read','parse','30mfCiwb','475510CKdBrH','trim','debug','270325XiBoIZ','data','150232PKAbaJ','indexOf','startsWith','98XgGUqw','body'];a230_0x1042=function(){return _0x23a51a;};return a230_0x1042();}export async function*parseSSEStream(_0x35f14c,_0x531608){const _0x5ca19a=a230_0x42c6;if(!_0x35f14c[_0x5ca19a(0x15f)])throw new Error('Response\x20body\x20is\x20null');const _0x5b2047=_0x35f14c[_0x5ca19a(0x15f)][_0x5ca19a(0x14f)](),_0x5b8e28=new TextDecoder();let _0x505b13='',_0x4d8a8d={};try{while(!![]){const {done:_0xbca919,value:_0x4dd554}=await _0x5b2047[_0x5ca19a(0x153)]();if(_0xbca919){if(_0x4d8a8d[_0x5ca19a(0x15a)]){_0x531608?.[_0x5ca19a(0x158)](_0x5ca19a(0x151)+_0x4d8a8d[_0x5ca19a(0x15a)]);const _0x3bfed3=parseSSEData(_0x4d8a8d[_0x5ca19a(0x15a)]);yield _0x3bfed3;}break;}_0x505b13+=_0x5b8e28['decode'](_0x4dd554,{'stream':!![]});const _0x10ee61=_0x505b13[_0x5ca19a(0x14e)]('\x0a');_0x505b13=_0x10ee61[_0x5ca19a(0x152)]()||'';for(const _0x3506b9 of _0x10ee61){if(_0x3506b9[_0x5ca19a(0x157)]()===''){if(_0x4d8a8d[_0x5ca19a(0x15a)]){_0x531608?.[_0x5ca19a(0x158)](_0x5ca19a(0x151)+_0x4d8a8d[_0x5ca19a(0x15a)]);const _0x3fbbcf=parseSSEData(_0x4d8a8d[_0x5ca19a(0x15a)]);yield _0x3fbbcf,_0x4d8a8d={};}continue;}if(_0x3506b9[_0x5ca19a(0x15d)](':'))continue;const _0x5b5986=_0x3506b9[_0x5ca19a(0x15c)](':');if(_0x5b5986===-0x1)continue;const _0x751470=_0x3506b9['slice'](0x0,_0x5b5986);let _0x2171c3=_0x3506b9['slice'](_0x5b5986+0x1);_0x2171c3[_0x5ca19a(0x15d)]('\x20')&&(_0x2171c3=_0x2171c3['slice'](0x1));switch(_0x751470){case _0x5ca19a(0x150):_0x4d8a8d[_0x5ca19a(0x150)]=_0x2171c3;break;case _0x5ca19a(0x15a):_0x4d8a8d['data']=_0x4d8a8d[_0x5ca19a(0x15a)]?_0x4d8a8d[_0x5ca19a(0x15a)]+'\x0a'+_0x2171c3:_0x2171c3;break;case'id':_0x4d8a8d['id']=_0x2171c3;break;}}}}finally{_0x5b2047[_0x5ca19a(0x14a)]();}}function parseSSEData(_0x23d008){const _0x29069a=a230_0x42c6;try{return JSON[_0x29069a(0x154)](_0x23d008);}catch(_0x810bb2){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x23d008,{'cause':_0x810bb2});}}
1
+ function a230_0x58bb(_0x1c002b,_0x2a9a66){_0x1c002b=_0x1c002b-0xc4;const _0x16c49b=a230_0x16c4();let _0x58bb1b=_0x16c49b[_0x1c002b];return _0x58bb1b;}(function(_0x2731df,_0x437cae){const _0x34358e=a230_0x58bb,_0x41840e=_0x2731df();while(!![]){try{const _0x53f02c=parseInt(_0x34358e(0xd3))/0x1*(-parseInt(_0x34358e(0xcd))/0x2)+parseInt(_0x34358e(0xc9))/0x3*(-parseInt(_0x34358e(0xc5))/0x4)+-parseInt(_0x34358e(0xda))/0x5+parseInt(_0x34358e(0xc6))/0x6*(-parseInt(_0x34358e(0xca))/0x7)+parseInt(_0x34358e(0xc4))/0x8+parseInt(_0x34358e(0xcc))/0x9+parseInt(_0x34358e(0xd6))/0xa;if(_0x53f02c===_0x437cae)break;else _0x41840e['push'](_0x41840e['shift']());}catch(_0xd3fb7a){_0x41840e['push'](_0x41840e['shift']());}}}(a230_0x16c4,0x44b71));export async function*parseSSEStream(_0x54c9a3,_0x2a1498){const _0x564217=a230_0x58bb;if(!_0x54c9a3[_0x564217(0xc7)])throw new Error('Response\x20body\x20is\x20null');const _0x342047=_0x54c9a3[_0x564217(0xc7)][_0x564217(0xd7)](),_0x5d4501=new TextDecoder();let _0x266390='',_0x3ec2ce={};try{while(!![]){const {done:_0x1cd7bf,value:_0x225150}=await _0x342047[_0x564217(0xd9)]();if(_0x1cd7bf){if(_0x3ec2ce['data']){_0x2a1498?.[_0x564217(0xcf)](_0x564217(0xc8)+_0x3ec2ce[_0x564217(0xd8)]);const _0xe95130=parseSSEData(_0x3ec2ce[_0x564217(0xd8)]);yield _0xe95130;}break;}_0x266390+=_0x5d4501[_0x564217(0xd1)](_0x225150,{'stream':!![]});const _0x26bf33=_0x266390[_0x564217(0xd4)]('\x0a');_0x266390=_0x26bf33['pop']()||'';for(const _0x129064 of _0x26bf33){if(_0x129064[_0x564217(0xd5)]()===''){if(_0x3ec2ce[_0x564217(0xd8)]){_0x2a1498?.[_0x564217(0xcf)](_0x564217(0xc8)+_0x3ec2ce[_0x564217(0xd8)]);const _0x35bd2d=parseSSEData(_0x3ec2ce[_0x564217(0xd8)]);yield _0x35bd2d,_0x3ec2ce={};}continue;}if(_0x129064['startsWith'](':'))continue;const _0x1474ec=_0x129064[_0x564217(0xcb)](':');if(_0x1474ec===-0x1)continue;const _0x2c864f=_0x129064[_0x564217(0xdb)](0x0,_0x1474ec);let _0x270049=_0x129064[_0x564217(0xdb)](_0x1474ec+0x1);_0x270049['startsWith']('\x20')&&(_0x270049=_0x270049[_0x564217(0xdb)](0x1));switch(_0x2c864f){case _0x564217(0xdc):_0x3ec2ce[_0x564217(0xdc)]=_0x270049;break;case _0x564217(0xd8):_0x3ec2ce[_0x564217(0xd8)]=_0x3ec2ce[_0x564217(0xd8)]?_0x3ec2ce['data']+'\x0a'+_0x270049:_0x270049;break;case'id':_0x3ec2ce['id']=_0x270049;break;}}}}finally{_0x342047[_0x564217(0xce)]();}}function parseSSEData(_0x5371c8){const _0x56f8a0=a230_0x58bb;try{return JSON[_0x56f8a0(0xd2)](_0x5371c8);}catch(_0x11a7cf){throw new Error(_0x56f8a0(0xd0)+_0x5371c8,{'cause':_0x11a7cf});}}function a230_0x16c4(){const _0x76b52b=['body','[LLM\x20API\x20SSE]\x20','6hPbKLL','629713CGAdiH','indexOf','2379159zQtSro','140BBSrQt','releaseLock','debug','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','parse','3467WIijdY','split','trim','7899600tDEFEB','getReader','data','read','1727785oNdRgm','slice','event','2999776YUPfLQ','219568NURnVK','30noohRS'];a230_0x16c4=function(){return _0x76b52b;};return a230_0x16c4();}
@@ -1 +1 @@
1
- (function(_0x37c676,_0x5bae44){const _0x1a7ee3=a231_0x5e47,_0x4b396e=_0x37c676();while(!![]){try{const _0x1442f0=parseInt(_0x1a7ee3(0x131))/0x1*(parseInt(_0x1a7ee3(0x126))/0x2)+parseInt(_0x1a7ee3(0x124))/0x3+parseInt(_0x1a7ee3(0x12f))/0x4+parseInt(_0x1a7ee3(0x121))/0x5+parseInt(_0x1a7ee3(0x127))/0x6+parseInt(_0x1a7ee3(0x135))/0x7*(-parseInt(_0x1a7ee3(0x122))/0x8)+-parseInt(_0x1a7ee3(0x130))/0x9;if(_0x1442f0===_0x5bae44)break;else _0x4b396e['push'](_0x4b396e['shift']());}catch(_0x5b062f){_0x4b396e['push'](_0x4b396e['shift']());}}}(a231_0x2ab9,0xaa9f3));import a231_0x3bd239 from'string-width';export function stringWidth(_0x5e8d29){return a231_0x3bd239(_0x5e8d29);}export function padEnd(_0x22cf86,_0x52cf74){const _0x14fb77=a231_0x5e47,_0x34f7ab=stringWidth(_0x22cf86);if(_0x34f7ab>=_0x52cf74)return _0x22cf86;return _0x22cf86+'\x20'[_0x14fb77(0x132)](_0x52cf74-_0x34f7ab);}export function padStart(_0x3694f8,_0x58edd3){const _0x2cec14=a231_0x5e47,_0x960421=stringWidth(_0x3694f8);if(_0x960421>=_0x58edd3)return _0x3694f8;return'\x20'[_0x2cec14(0x132)](_0x58edd3-_0x960421)+_0x3694f8;}export function centerAlign(_0x545c5b,_0x1041b0){const _0x20c329=a231_0x5e47,_0x5caf66=stringWidth(_0x545c5b);if(_0x5caf66>_0x1041b0){if(_0x1041b0<=0x1)return'…'[_0x20c329(0x128)](0x0,_0x1041b0);let _0x31d052=_0x545c5b;while(stringWidth(_0x31d052+'…')>_0x1041b0){_0x31d052=_0x31d052[_0x20c329(0x125)](0x0,-0x1);}return _0x31d052+'…';}if(_0x5caf66===_0x1041b0)return _0x545c5b;const _0x140df7=_0x1041b0-_0x5caf66,_0x25f4c1=Math[_0x20c329(0x129)](_0x140df7/0x2),_0x112d06=_0x140df7-_0x25f4c1;return'\x20'[_0x20c329(0x132)](_0x25f4c1)+_0x545c5b+'\x20'[_0x20c329(0x132)](_0x112d06);}export function escapeStringLiteral(_0x19985a){const _0x149833=a231_0x5e47;if(!_0x19985a||_0x19985a[_0x149833(0x11f)]()[_0x149833(0x12d)]===0x0)throw new Error(_0x149833(0x12e));const _0xec2e18=_0x19985a['replace'](/'/g,'\x27\x27');return'\x27'+_0xec2e18+'\x27';}export function globToLike(_0x4724f9){const _0xc8423a=a231_0x5e47;let _0x65f70e=_0x4724f9[_0xc8423a(0x123)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0xc8423a(0x123)](/_/g,'\x5c_');return _0x65f70e=_0x65f70e[_0xc8423a(0x123)](/\*/g,'%')[_0xc8423a(0x123)](/\?/g,'_'),_0x65f70e;}export function buildLikePattern(_0x5fdf35){const _0x5077b7=a231_0x5e47;if(!_0x5fdf35||_0x5fdf35['trim']()['length']===0x0)throw new Error(_0x5077b7(0x12c));const _0x6207ad=globToLike(_0x5fdf35),_0x582f51=_0x6207ad[_0x5077b7(0x123)](/'/g,'\x27\x27');return'\x27'+_0x582f51+'\x27';}export function matchGlobPattern(_0x59093d,_0x5eb5d8){const _0x32b6ff=a231_0x5e47,_0x56ebc8=_0x5eb5d8['replace'](/[.+^${}()|[\]\\]/g,_0x32b6ff(0x12b))['replace'](/\*/g,'.*')[_0x32b6ff(0x123)](/\?/g,'.'),_0x47311d=new RegExp('^'+_0x56ebc8+'$');return _0x47311d[_0x32b6ff(0x133)](_0x59093d);}function a231_0x2ab9(){const _0x38ce34=['unknown','trim','toString','67010kooiWy','537776iJcyPl','replace','1270593IPrXqs','slice','2KzMMOc','1852746shUxwZ','substring','floor','toLowerCase','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','length','Cannot\x20escape\x20empty\x20string\x20literal','1161996NrBmgC','5630130YUPyqY','1296544ewsmsk','repeat','test','padStart','105ckFGfW','random'];a231_0x2ab9=function(){return _0x38ce34;};return a231_0x2ab9();}function a231_0x5e47(_0x3076b8,_0x197214){_0x3076b8=_0x3076b8-0x11d;const _0x2ab99f=a231_0x2ab9();let _0x5e4732=_0x2ab99f[_0x3076b8];return _0x5e4732;}export function getSanitizedUsername(){const _0x5a4b56=a231_0x5e47,_0x5f5114=process.env.USER||process.env.USERNAME||_0x5a4b56(0x11e);return _0x5f5114[_0x5a4b56(0x123)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x208154=a231_0x5e47,_0x10eb4d=Math['floor'](Math[_0x208154(0x11d)]()*0xfffff);return _0x10eb4d[_0x208154(0x120)](0x10)[_0x208154(0x134)](0x5,'0');}export function sanitizeFileName(_0x309ea3){const _0x316755=a231_0x5e47;return _0x309ea3[_0x316755(0x12a)]()[_0x316755(0x123)](/[/\\:*?"<>|]/g,'-')[_0x316755(0x123)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x2ffbb0,_0x5d1132){const _0x3f3201=a231_0x5f3a,_0x41b431=_0x2ffbb0();while(!![]){try{const _0x74c9c2=parseInt(_0x3f3201(0x97))/0x1+-parseInt(_0x3f3201(0x9b))/0x2*(parseInt(_0x3f3201(0x92))/0x3)+-parseInt(_0x3f3201(0x98))/0x4+-parseInt(_0x3f3201(0x95))/0x5+-parseInt(_0x3f3201(0xa2))/0x6*(-parseInt(_0x3f3201(0x8f))/0x7)+parseInt(_0x3f3201(0xa1))/0x8+parseInt(_0x3f3201(0xa0))/0x9;if(_0x74c9c2===_0x5d1132)break;else _0x41b431['push'](_0x41b431['shift']());}catch(_0x3b8a02){_0x41b431['push'](_0x41b431['shift']());}}}(a231_0x3034,0xb958f));import a231_0x383749 from'string-width';function a231_0x5f3a(_0x34884f,_0x250ff4){_0x34884f=_0x34884f-0x8e;const _0x3034dd=a231_0x3034();let _0x5f3a9b=_0x3034dd[_0x34884f];return _0x5f3a9b;}export function stringWidth(_0x41dc71){return a231_0x383749(_0x41dc71);}function a231_0x3034(){const _0xbaf4d0=['substring','20266920yORrYB','1103464bnmNwg','30YzkchG','\x5c$&','120596zWUhaL','repeat','unknown','826521zEXksh','slice','trim','6381195ANuPzg','floor','924533vBtKJY','4358228XBFOLz','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','2wZvGvL','replace','length','test'];a231_0x3034=function(){return _0xbaf4d0;};return a231_0x3034();}export function padEnd(_0x36d2a0,_0x59e1f0){const _0x3112f5=a231_0x5f3a,_0x2990ee=stringWidth(_0x36d2a0);if(_0x2990ee>=_0x59e1f0)return _0x36d2a0;return _0x36d2a0+'\x20'[_0x3112f5(0x90)](_0x59e1f0-_0x2990ee);}export function padStart(_0x3ce64c,_0x59ab14){const _0x122382=a231_0x5f3a,_0x316151=stringWidth(_0x3ce64c);if(_0x316151>=_0x59ab14)return _0x3ce64c;return'\x20'[_0x122382(0x90)](_0x59ab14-_0x316151)+_0x3ce64c;}export function centerAlign(_0x2edbc,_0xd7c32b){const _0x47af69=a231_0x5f3a,_0xaf7e52=stringWidth(_0x2edbc);if(_0xaf7e52>_0xd7c32b){if(_0xd7c32b<=0x1)return'…'[_0x47af69(0x9f)](0x0,_0xd7c32b);let _0x1dd268=_0x2edbc;while(stringWidth(_0x1dd268+'…')>_0xd7c32b){_0x1dd268=_0x1dd268[_0x47af69(0x93)](0x0,-0x1);}return _0x1dd268+'…';}if(_0xaf7e52===_0xd7c32b)return _0x2edbc;const _0x2e7766=_0xd7c32b-_0xaf7e52,_0x5e1902=Math[_0x47af69(0x96)](_0x2e7766/0x2),_0x505b10=_0x2e7766-_0x5e1902;return'\x20'[_0x47af69(0x90)](_0x5e1902)+_0x2edbc+'\x20'[_0x47af69(0x90)](_0x505b10);}export function escapeStringLiteral(_0x15d14d){const _0x14b7da=a231_0x5f3a;if(!_0x15d14d||_0x15d14d[_0x14b7da(0x94)]()[_0x14b7da(0x9d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2340b7=_0x15d14d[_0x14b7da(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x2340b7+'\x27';}export function globToLike(_0x2d9f5f){const _0x25abc5=a231_0x5f3a;let _0x193f26=_0x2d9f5f[_0x25abc5(0x9c)](/\\/g,'\x5c\x5c')[_0x25abc5(0x9c)](/%/g,'\x5c%')[_0x25abc5(0x9c)](/_/g,'\x5c_');return _0x193f26=_0x193f26[_0x25abc5(0x9c)](/\*/g,'%')[_0x25abc5(0x9c)](/\?/g,'_'),_0x193f26;}export function buildLikePattern(_0x2bb2b8){const _0x2893b4=a231_0x5f3a;if(!_0x2bb2b8||_0x2bb2b8['trim']()[_0x2893b4(0x9d)]===0x0)throw new Error(_0x2893b4(0x99));const _0x135d66=globToLike(_0x2bb2b8),_0x465072=_0x135d66[_0x2893b4(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x465072+'\x27';}export function matchGlobPattern(_0x1812d7,_0x145237){const _0x5d8706=a231_0x5f3a,_0x3b0c66=_0x145237[_0x5d8706(0x9c)](/[.+^${}()|[\]\\]/g,_0x5d8706(0x8e))[_0x5d8706(0x9c)](/\*/g,'.*')[_0x5d8706(0x9c)](/\?/g,'.'),_0x57d73d=new RegExp('^'+_0x3b0c66+'$');return _0x57d73d[_0x5d8706(0x9e)](_0x1812d7);}export function getSanitizedUsername(){const _0x216476=a231_0x5f3a,_0x45c8b9=process.env.USER||process.env.USERNAME||_0x216476(0x91);return _0x45c8b9['replace'](/[^a-zA-Z0-9]/g,'')[_0x216476(0x9a)]();}export function generateRandomHex(){const _0x42457c=a231_0x5f3a,_0x532628=Math[_0x42457c(0x96)](Math['random']()*0xfffff);return _0x532628['toString'](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x40fcd9){const _0x469877=a231_0x5f3a;return _0x40fcd9[_0x469877(0x9a)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x469877(0x9c)](/\s+/g,'-')[_0x469877(0x9c)](/-+/g,'-')[_0x469877(0x9c)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x10ce98,_0x4ff6e4){const _0x239af6=a232_0x2573,_0x4c7c5e=_0x10ce98();while(!![]){try{const _0x3dc5cf=parseInt(_0x239af6(0xad))/0x1*(-parseInt(_0x239af6(0xbf))/0x2)+-parseInt(_0x239af6(0xba))/0x3*(-parseInt(_0x239af6(0xb8))/0x4)+-parseInt(_0x239af6(0xbb))/0x5*(-parseInt(_0x239af6(0xbd))/0x6)+-parseInt(_0x239af6(0xc1))/0x7*(-parseInt(_0x239af6(0xb5))/0x8)+-parseInt(_0x239af6(0xac))/0x9+parseInt(_0x239af6(0xab))/0xa+-parseInt(_0x239af6(0xbc))/0xb;if(_0x3dc5cf===_0x4ff6e4)break;else _0x4c7c5e['push'](_0x4c7c5e['shift']());}catch(_0x267ee1){_0x4c7c5e['push'](_0x4c7c5e['shift']());}}}(a232_0x3cfc,0xb6bcc));function hasWildcard(_0x54892c){const _0x2ff37d=a232_0x2573;return _0x54892c[_0x2ff37d(0xb2)]('*')||_0x54892c[_0x2ff37d(0xb2)]('?');}export function parseTableReference(_0xd4b7c9){const _0x5b49b0=a232_0x2573;if(!_0xd4b7c9||_0xd4b7c9[_0x5b49b0(0xaa)]()['length']===0x0)throw new Error(_0x5b49b0(0xb6));const _0x1e5231=_0xd4b7c9[_0x5b49b0(0xaa)](),_0x3d9ca3={'original':_0x1e5231},_0x107175=_0x1e5231[_0x5b49b0(0xb9)]('.');if(_0x107175[_0x5b49b0(0xb4)]===0x1){const _0x2a2ed2=_0x107175[0x0];if(!_0x2a2ed2)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x3d9ca3['table']=_0x2a2ed2;}else{if(_0x107175['length']===0x2){const [_0x451b45,_0x16c335]=_0x107175;if(!_0x451b45)throw new Error(_0x5b49b0(0xbe));if(!_0x16c335)throw new Error(_0x5b49b0(0xc0));_0x3d9ca3[_0x5b49b0(0xae)]=_0x451b45,_0x3d9ca3['table']=_0x16c335;}else{if(_0x107175[_0x5b49b0(0xb4)]===0x3){const [_0x197a99,_0x240ae8,_0x4e4c3a]=_0x107175;if(!_0x197a99||!_0x240ae8||!_0x4e4c3a)throw new Error(_0x5b49b0(0xb0));_0x3d9ca3[_0x5b49b0(0xb7)]=_0x197a99,_0x3d9ca3[_0x5b49b0(0xae)]=_0x240ae8,_0x3d9ca3['table']=_0x4e4c3a;}else throw new Error(_0x5b49b0(0xc3));}}return _0x3d9ca3;}function a232_0x2573(_0x5855ba,_0x3dd3ac){_0x5855ba=_0x5855ba-0xaa;const _0x3cfce3=a232_0x3cfc();let _0x2573bb=_0x3cfce3[_0x5855ba];return _0x2573bb;}export function formatTableReference(_0x58ddfe){const _0x4b39a7=a232_0x2573,_0x179f8c=[];return _0x58ddfe[_0x4b39a7(0xb7)]&&_0x179f8c[_0x4b39a7(0xc2)](_0x58ddfe[_0x4b39a7(0xb7)]),_0x58ddfe['database']&&_0x179f8c['push'](_0x58ddfe[_0x4b39a7(0xae)]),_0x58ddfe['table']&&_0x179f8c['push'](_0x58ddfe['table']),_0x179f8c[_0x4b39a7(0xb1)]('.');}export function validateTableListReference(_0x39d09b){return undefined;}function a232_0x3cfc(){const _0x1c0d35=['Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','length','96iqIgRE','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','catalog','5098756quzDmj','split','3AbVctw','10LnNDoa','15831684PAyrvx','2614458JloDIw','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','54KmRxEo','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','326956caEsBN','push','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','trim','10333250DJpWut','10920933FVoCGW','12549NEUJcN','database','table','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','join','includes'];a232_0x3cfc=function(){return _0x1c0d35;};return a232_0x3cfc();}export function validateTableDescribeReference(_0x13dcb7){const _0x320721=a232_0x2573;if(!_0x13dcb7[_0x320721(0xaf)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x13dcb7['database']&&hasWildcard(_0x13dcb7[_0x320721(0xae)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x13dcb7[_0x320721(0xaf)]))return _0x320721(0xb3);return undefined;}
1
+ (function(_0xcfc3f1,_0x3c33a2){const _0x226e8a=a232_0x35ef,_0x5ea76d=_0xcfc3f1();while(!![]){try{const _0x488534=-parseInt(_0x226e8a(0x1e1))/0x1*(parseInt(_0x226e8a(0x1f4))/0x2)+parseInt(_0x226e8a(0x1f1))/0x3+-parseInt(_0x226e8a(0x1de))/0x4+-parseInt(_0x226e8a(0x1f3))/0x5*(-parseInt(_0x226e8a(0x1e0))/0x6)+-parseInt(_0x226e8a(0x1dc))/0x7*(parseInt(_0x226e8a(0x1e6))/0x8)+parseInt(_0x226e8a(0x1f2))/0x9*(parseInt(_0x226e8a(0x1ee))/0xa)+parseInt(_0x226e8a(0x1e3))/0xb;if(_0x488534===_0x3c33a2)break;else _0x5ea76d['push'](_0x5ea76d['shift']());}catch(_0x2a10c3){_0x5ea76d['push'](_0x5ea76d['shift']());}}}(a232_0x3d7d,0x9e067));function hasWildcard(_0x387420){const _0x5943b2=a232_0x35ef;return _0x387420[_0x5943b2(0x1e4)]('*')||_0x387420[_0x5943b2(0x1e4)]('?');}export function parseTableReference(_0x2290ee){const _0x395db3=a232_0x35ef;if(!_0x2290ee||_0x2290ee[_0x395db3(0x1e5)]()[_0x395db3(0x1e9)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x56ef6d=_0x2290ee[_0x395db3(0x1e5)](),_0x383280={'original':_0x56ef6d},_0x5c4cad=_0x56ef6d['split']('.');if(_0x5c4cad[_0x395db3(0x1e9)]===0x1){const _0x2ff917=_0x5c4cad[0x0];if(!_0x2ff917)throw new Error(_0x395db3(0x1ef));_0x383280[_0x395db3(0x1ea)]=_0x2ff917;}else{if(_0x5c4cad[_0x395db3(0x1e9)]===0x2){const [_0x1f522a,_0x290c29]=_0x5c4cad;if(!_0x1f522a)throw new Error(_0x395db3(0x1df));if(!_0x290c29)throw new Error(_0x395db3(0x1e7));_0x383280[_0x395db3(0x1e8)]=_0x1f522a,_0x383280[_0x395db3(0x1ea)]=_0x290c29;}else{if(_0x5c4cad['length']===0x3){const [_0x27d5f7,_0x2e1600,_0x3ec055]=_0x5c4cad;if(!_0x27d5f7||!_0x2e1600||!_0x3ec055)throw new Error(_0x395db3(0x1ed));_0x383280[_0x395db3(0x1f0)]=_0x27d5f7,_0x383280['database']=_0x2e1600,_0x383280[_0x395db3(0x1ea)]=_0x3ec055;}else throw new Error(_0x395db3(0x1db));}}return _0x383280;}export function formatTableReference(_0x18e1a0){const _0x11f3c4=a232_0x35ef,_0x4d3399=[];return _0x18e1a0[_0x11f3c4(0x1f0)]&&_0x4d3399['push'](_0x18e1a0[_0x11f3c4(0x1f0)]),_0x18e1a0[_0x11f3c4(0x1e8)]&&_0x4d3399[_0x11f3c4(0x1dd)](_0x18e1a0['database']),_0x18e1a0[_0x11f3c4(0x1ea)]&&_0x4d3399[_0x11f3c4(0x1dd)](_0x18e1a0[_0x11f3c4(0x1ea)]),_0x4d3399[_0x11f3c4(0x1ec)]('.');}export function validateTableListReference(_0x5aa954){return undefined;}export function validateTableDescribeReference(_0x559829){const _0x9366cb=a232_0x35ef;if(!_0x559829[_0x9366cb(0x1ea)])return _0x9366cb(0x1eb);if(_0x559829[_0x9366cb(0x1e8)]&&hasWildcard(_0x559829['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x559829[_0x9366cb(0x1ea)]))return _0x9366cb(0x1e2);return undefined;}function a232_0x35ef(_0x2708ff,_0x3d68b7){_0x2708ff=_0x2708ff-0x1db;const _0x3d7d46=a232_0x3d7d();let _0x35efd2=_0x3d7d46[_0x2708ff];return _0x35efd2;}function a232_0x3d7d(){const _0x35fba5=['push','1053060VQqDHt','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','198bitehx','7EiAUFd','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','5056667ueYmmr','includes','trim','40pRKKKz','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','database','length','table','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','join','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','890KHmKOU','Pattern\x20cannot\x20be\x20just\x20a\x20dot','catalog','2914812MktDjD','21249hCqEIG','70350ZKrfXb','251734VLpUXM','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','439789kUYpOB'];a232_0x3d7d=function(){return _0x35fba5;};return a232_0x3d7d();}
@@ -1 +1 @@
1
- const a233_0x1f7070=a233_0x190b;function a233_0x8f42(){const _0xf2a2f6=['push','addHandler','init','logDir','close','fileHandler','Session\x20ended','142VeatKs','logFileName','logLevel','logs','fileOnly','debug','INFO','error','4asSBDD','trace','7433qXsKVz','7LkjNEJ','isInitialized','shutdown','805428kKTrMo','tdx.log','4904168MwZqCC','tdx','1609435ADtcYS','2670040iIVdJP','consoleHandler','4172778QDcZlv','warn','3322086XDQgVe','logger','info'];a233_0x8f42=function(){return _0xf2a2f6;};return a233_0x8f42();}(function(_0x334e4a,_0x1ebf48){const _0x504a19=a233_0x190b,_0x264a0e=_0x334e4a();while(!![]){try{const _0x2b8179=-parseInt(_0x504a19(0x187))/0x1*(parseInt(_0x504a19(0x17d))/0x2)+-parseInt(_0x504a19(0x18b))/0x3+parseInt(_0x504a19(0x185))/0x4*(parseInt(_0x504a19(0x18f))/0x5)+-parseInt(_0x504a19(0x194))/0x6+-parseInt(_0x504a19(0x188))/0x7*(-parseInt(_0x504a19(0x18d))/0x8)+parseInt(_0x504a19(0x192))/0x9+parseInt(_0x504a19(0x190))/0xa;if(_0x2b8179===_0x1ebf48)break;else _0x264a0e['push'](_0x264a0e['shift']());}catch(_0x214bcb){_0x264a0e['push'](_0x264a0e['shift']());}}}(a233_0x8f42,0x4d106));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';function a233_0x190b(_0x361949,_0x58cd2e){_0x361949=_0x361949-0x17c;const _0x8f4249=a233_0x8f42();let _0x190b8a=_0x8f4249[_0x361949];return _0x190b8a;}import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a233_0x1f7070(0x17f)];[a233_0x1f7070(0x181)];['logDir'];[a233_0x1f7070(0x17e)];['logger'];['fileHandler']=null;[a233_0x1f7070(0x191)]=null;constructor(_0x4a5eac=LogLevel[a233_0x1f7070(0x183)],_0xf69ab=![],_0x284455,_0x312499=a233_0x1f7070(0x18c)){const _0x22fb2c=a233_0x1f7070;this[_0x22fb2c(0x17f)]=_0x4a5eac,this[_0x22fb2c(0x181)]=_0xf69ab,this['logDir']=_0x284455||join(getGlobalCacheDir(),_0x22fb2c(0x180)),this[_0x22fb2c(0x17e)]=_0x312499,this[_0x22fb2c(0x195)]=Logger['of'](_0x22fb2c(0x18e));}async[a233_0x1f7070(0x199)](){const _0x41896a=a233_0x1f7070,_0x39e211=join(this[_0x41896a(0x19a)],this[_0x41896a(0x17e)]);if(Logger[_0x41896a(0x189)]()){!this[_0x41896a(0x181)]&&(this[_0x41896a(0x191)]=new ConsoleHandler({'minLevel':LogLevel[_0x41896a(0x183)],'colors':!![]}),Logger[_0x41896a(0x198)](this[_0x41896a(0x191)]));return;}this[_0x41896a(0x19c)]=new FileHandler({'filePath':_0x39e211});const _0x2dbeb6=[this['fileHandler']];!this[_0x41896a(0x181)]&&(this[_0x41896a(0x191)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x2dbeb6[_0x41896a(0x197)](this[_0x41896a(0x191)])),await Logger[_0x41896a(0x199)]({'defaultLevel':this[_0x41896a(0x17f)],'handlers':_0x2dbeb6,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a233_0x1f7070(0x182)](..._0x315add){const _0x432bbb=a233_0x1f7070;this['logger'][_0x432bbb(0x182)](..._0x315add);}[a233_0x1f7070(0x186)](..._0x584bdd){const _0x4a78bf=a233_0x1f7070;this[_0x4a78bf(0x195)][_0x4a78bf(0x186)](..._0x584bdd);}[a233_0x1f7070(0x196)](..._0x314ab1){const _0x2a664d=a233_0x1f7070;this[_0x2a664d(0x195)][_0x2a664d(0x196)](..._0x314ab1);}[a233_0x1f7070(0x193)](..._0x791623){const _0x7a6015=a233_0x1f7070;this[_0x7a6015(0x195)][_0x7a6015(0x193)](..._0x791623);}['error'](..._0x12e10b){const _0x4f0be9=a233_0x1f7070;this[_0x4f0be9(0x195)][_0x4f0be9(0x184)](..._0x12e10b);}async[a233_0x1f7070(0x19b)](){const _0x37a8ca=a233_0x1f7070;this[_0x37a8ca(0x195)][_0x37a8ca(0x196)](_0x37a8ca(0x17c)),await Logger[_0x37a8ca(0x18a)]();}['getLogPath'](){const _0x3e0e0b=a233_0x1f7070;return join(this[_0x3e0e0b(0x19a)],this[_0x3e0e0b(0x17e)]);}}
1
+ const a233_0x112b3c=a233_0x4867;(function(_0x4f4d6a,_0x1c09eb){const _0x2aef77=a233_0x4867,_0x33fbfb=_0x4f4d6a();while(!![]){try{const _0x104c13=parseInt(_0x2aef77(0x11b))/0x1+-parseInt(_0x2aef77(0x10e))/0x2*(parseInt(_0x2aef77(0x116))/0x3)+-parseInt(_0x2aef77(0x125))/0x4*(parseInt(_0x2aef77(0x110))/0x5)+parseInt(_0x2aef77(0x111))/0x6*(-parseInt(_0x2aef77(0x117))/0x7)+parseInt(_0x2aef77(0x11a))/0x8*(parseInt(_0x2aef77(0x120))/0x9)+-parseInt(_0x2aef77(0x113))/0xa+parseInt(_0x2aef77(0x10d))/0xb;if(_0x104c13===_0x1c09eb)break;else _0x33fbfb['push'](_0x33fbfb['shift']());}catch(_0x5e3434){_0x33fbfb['push'](_0x33fbfb['shift']());}}}(a233_0x380d,0x880a3));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a233_0x4867(_0x15f55f,_0x5afb19){_0x15f55f=_0x15f55f-0x105;const _0x380dc9=a233_0x380d();let _0x486729=_0x380dc9[_0x15f55f];return _0x486729;}export{LogLevel}from'./logger/index.js';function a233_0x380d(){const _0x4fa4ac=['debug','25YIuVlT','3358854wBDVBv','logger','485050lChpee','addHandler','trace','2238PfauAJ','7bhdIsB','getLogPath','tdx.log','40QoMtHH','117707JqRByq','fileHandler','warn','close','push','1581003bJNUKJ','INFO','logFileName','logLevel','isInitialized','110164vuHOwq','fileOnly','logDir','init','consoleHandler','tdx','Session\x20ended','info','error','15204002OzyCgj','2882udAoYD'];a233_0x380d=function(){return _0x4fa4ac;};return a233_0x380d();}export class TDXLogger{[a233_0x112b3c(0x123)];[a233_0x112b3c(0x105)];[a233_0x112b3c(0x106)];[a233_0x112b3c(0x122)];[a233_0x112b3c(0x112)];[a233_0x112b3c(0x11c)]=null;['consoleHandler']=null;constructor(_0x145f7e=LogLevel[a233_0x112b3c(0x121)],_0x3c9921=![],_0x26a5c9,_0x5594fe=a233_0x112b3c(0x119)){const _0x471573=a233_0x112b3c;this[_0x471573(0x123)]=_0x145f7e,this['fileOnly']=_0x3c9921,this['logDir']=_0x26a5c9||join(getGlobalCacheDir(),'logs'),this[_0x471573(0x122)]=_0x5594fe,this[_0x471573(0x112)]=Logger['of'](_0x471573(0x109));}async[a233_0x112b3c(0x107)](){const _0x5d58ed=a233_0x112b3c,_0x7edd7d=join(this['logDir'],this[_0x5d58ed(0x122)]);if(Logger[_0x5d58ed(0x124)]()){!this[_0x5d58ed(0x105)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x5d58ed(0x121)],'colors':!![]}),Logger[_0x5d58ed(0x114)](this[_0x5d58ed(0x108)]));return;}this[_0x5d58ed(0x11c)]=new FileHandler({'filePath':_0x7edd7d});const _0x20d2d1=[this[_0x5d58ed(0x11c)]];!this[_0x5d58ed(0x105)]&&(this[_0x5d58ed(0x108)]=new ConsoleHandler({'minLevel':LogLevel[_0x5d58ed(0x121)],'colors':!![]}),_0x20d2d1[_0x5d58ed(0x11f)](this['consoleHandler'])),await Logger[_0x5d58ed(0x107)]({'defaultLevel':this['logLevel'],'handlers':_0x20d2d1,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a233_0x112b3c(0x10f)](..._0x337f45){const _0x40ae28=a233_0x112b3c;this[_0x40ae28(0x112)][_0x40ae28(0x10f)](..._0x337f45);}['trace'](..._0x16e0fe){const _0x5f5d73=a233_0x112b3c;this[_0x5f5d73(0x112)][_0x5f5d73(0x115)](..._0x16e0fe);}['info'](..._0x2c1eda){const _0x1cc4e7=a233_0x112b3c;this[_0x1cc4e7(0x112)][_0x1cc4e7(0x10b)](..._0x2c1eda);}[a233_0x112b3c(0x11d)](..._0x188577){const _0xaa17f5=a233_0x112b3c;this[_0xaa17f5(0x112)][_0xaa17f5(0x11d)](..._0x188577);}[a233_0x112b3c(0x10c)](..._0x31666e){const _0x32b853=a233_0x112b3c;this['logger'][_0x32b853(0x10c)](..._0x31666e);}async[a233_0x112b3c(0x11e)](){const _0x33921e=a233_0x112b3c;this['logger'][_0x33921e(0x10b)](_0x33921e(0x10a)),await Logger['shutdown']();}[a233_0x112b3c(0x118)](){const _0x451d2c=a233_0x112b3c;return join(this[_0x451d2c(0x106)],this['logFileName']);}}
@@ -1 +1 @@
1
- function a234_0x5e06(_0x1e9c9f,_0x40f1de){_0x1e9c9f=_0x1e9c9f-0x108;const _0x5e7ea5=a234_0x5e7e();let _0x5e060e=_0x5e7ea5[_0x1e9c9f];return _0x5e060e;}const a234_0x2d4296=a234_0x5e06;(function(_0x16c247,_0x19c738){const _0x444b53=a234_0x5e06,_0x4e7f63=_0x16c247();while(!![]){try{const _0x118658=-parseInt(_0x444b53(0x127))/0x1+parseInt(_0x444b53(0x135))/0x2*(parseInt(_0x444b53(0x122))/0x3)+parseInt(_0x444b53(0x123))/0x4+parseInt(_0x444b53(0x132))/0x5+parseInt(_0x444b53(0x11d))/0x6*(parseInt(_0x444b53(0x136))/0x7)+-parseInt(_0x444b53(0x12f))/0x8*(parseInt(_0x444b53(0x120))/0x9)+parseInt(_0x444b53(0x129))/0xa;if(_0x118658===_0x19c738)break;else _0x4e7f63['push'](_0x4e7f63['shift']());}catch(_0x1361f9){_0x4e7f63['push'](_0x4e7f63['shift']());}}}(a234_0x5e7e,0x48910));import{get}from'https';import{gt,valid}from'semver';import a234_0x4b18dc from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x2d4296(0x111),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a234_0x2d4296(0x134),a234_0x2d4296(0x119)),nextVersionCache=createGlobalCache(a234_0x2d4296(0x131),'utils/version-check-next');function getCacheForChannel(_0x489e1c){const _0x53106f=a234_0x2d4296;return _0x489e1c===_0x53106f(0x10a)?nextVersionCache:stableVersionCache;}function readCache(_0x535dfa){const _0x38f98b=a234_0x2d4296;return getCacheForChannel(_0x535dfa)[_0x38f98b(0x10f)]()??null;}function a234_0x5e7e(){const _0x37b662=['last_version_check_next','278115ERaPis','end','last_version_check','136946BLgbTq','191261CCxqwC','data','write','isTTY','next','Invalid\x20version\x20format','statusCode','\x0aRun:\x20','tdx\x20upgrade','read','version','https://registry.npmjs.org/@treasuredata/tdx','latest','tdx\x20upgrade\x20--next','green','currentVersion','cyan','Run:','Update\x20available:','utils/version-check','now','\x0aUpdate\x20available:\x20','getTime','114tQmCht','channel','stderr','81ruvwln','Request\x20timeout','3XpIgyK','815440klfamd','destroy','error','gray','42184oKojjr','HTTP\x20','767560NcKoEv','stable','toISOString','updateAvailable','unref','parse','519496XwDQDV','latestVersion'];a234_0x5e7e=function(){return _0x37b662;};return a234_0x5e7e();}function writeCache(_0x4582cd,_0x5ecc01){const _0x460317=a234_0x2d4296;try{getCacheForChannel(_0x5ecc01)[_0x460317(0x108)]({'lastCheck':new Date()[_0x460317(0x12b)](),'latestVersion':_0x4582cd});}catch{}}function isCacheValid(_0x3dae7c){const _0x323618=a234_0x2d4296;if(!_0x3dae7c)return![];const _0x27d388=new Date(_0x3dae7c['lastCheck'])[_0x323618(0x11c)](),_0x129b0d=Date[_0x323618(0x11a)]();return _0x129b0d-_0x27d388<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x4e4007=a234_0x2d4296(0x12a)){const _0x59e83a=a234_0x2d4296,_0x610b7e=_0x4e4007==='next'?_0x59e83a(0x10a):_0x59e83a(0x112),_0x11389c=NPM_REGISTRY_BASE+'/'+_0x610b7e;return new Promise((_0x1cf049,_0xa4c3bf)=>{const _0x29db63=_0x59e83a,_0x2f72a4=get(_0x11389c,{'timeout':TIMEOUT_MS},_0x34861f=>{const _0x1e199f=a234_0x5e06;if(_0x34861f[_0x1e199f(0x10c)]!==0xc8){clearTimeout(_0x34980a),_0xa4c3bf(new Error(_0x1e199f(0x128)+_0x34861f[_0x1e199f(0x10c)]));return;}let _0x2de51e='';_0x34861f['on'](_0x1e199f(0x137),_0xa69075=>{_0x2de51e+=_0xa69075;}),_0x34861f['on'](_0x1e199f(0x133),()=>{const _0x27dae9=_0x1e199f;clearTimeout(_0x34980a);try{const _0x26435f=JSON[_0x27dae9(0x12e)](_0x2de51e);if(!valid(_0x26435f[_0x27dae9(0x110)])){_0xa4c3bf(new Error(_0x27dae9(0x10b)));return;}_0x1cf049(_0x26435f['version']);}catch(_0x320bd1){_0xa4c3bf(_0x320bd1);}});})['on'](_0x29db63(0x125),_0x568a80=>{clearTimeout(_0x34980a),_0xa4c3bf(_0x568a80);});_0x2f72a4['on']('socket',_0x4c1ea8=>{_0x4c1ea8['unref']();});const _0x34980a=setTimeout(()=>{const _0x5661bb=_0x29db63;_0x2f72a4[_0x5661bb(0x124)](),_0xa4c3bf(new Error(_0x5661bb(0x121)));},TIMEOUT_MS);_0x34980a[_0x29db63(0x12d)]();});}export async function checkForUpdate(_0x2c47b8,_0x2d8246='stable'){const _0x178f5d=a234_0x2d4296;try{const _0x5ac204=readCache(_0x2d8246);if(isCacheValid(_0x5ac204)){const _0x166f16=gt(_0x5ac204[_0x178f5d(0x130)],_0x2c47b8);return{'updateAvailable':_0x166f16,'currentVersion':_0x2c47b8,'latestVersion':_0x5ac204['latestVersion'],'channel':_0x2d8246};}const _0x3ad874=await fetchLatestVersion(_0x2d8246);writeCache(_0x3ad874,_0x2d8246);const _0xc9e916=gt(_0x3ad874,_0x2c47b8);return{'updateAvailable':_0xc9e916,'currentVersion':_0x2c47b8,'latestVersion':_0x3ad874,'channel':_0x2d8246};}catch{return null;}}export function displayUpdateNotification(_0x497a59){const _0x417d14=a234_0x2d4296;if(!_0x497a59[_0x417d14(0x12c)])return;const _0x22cfe0=_0x497a59[_0x417d14(0x11e)]===_0x417d14(0x10a)?_0x417d14(0x113):_0x417d14(0x10e),_0x2cf1f8=process[_0x417d14(0x11f)][_0x417d14(0x109)]&&!process.env.NO_COLOR,_0x1ee752=_0x2cf1f8?a234_0x4b18dc[_0x417d14(0x126)]('→'):'→',_0x4c6b73=_0x2cf1f8?a234_0x4b18dc['dim'](_0x497a59['currentVersion']):_0x497a59[_0x417d14(0x115)],_0x12ebe1=_0x2cf1f8?a234_0x4b18dc[_0x417d14(0x114)](_0x497a59[_0x417d14(0x130)]):_0x497a59[_0x417d14(0x130)],_0x31df89=_0x2cf1f8?a234_0x4b18dc[_0x417d14(0x116)](_0x22cfe0):_0x22cfe0,_0x1c9322=_0x2cf1f8?'\x0a'+a234_0x4b18dc['yellow'](_0x417d14(0x118))+'\x20'+_0x4c6b73+'\x20'+_0x1ee752+'\x20'+_0x12ebe1+'\x0a'+a234_0x4b18dc['dim'](_0x417d14(0x117))+'\x20'+_0x31df89+'\x0a':_0x417d14(0x11b)+_0x4c6b73+'\x20'+_0x1ee752+'\x20'+_0x12ebe1+_0x417d14(0x10d)+_0x31df89+'\x0a';process['stderr']['write'](_0x1c9322);}
1
+ const a234_0x2d4979=a234_0x48a7;(function(_0x366273,_0x27f8dd){const _0x5b2add=a234_0x48a7,_0x5ed14c=_0x366273();while(!![]){try{const _0x48198e=parseInt(_0x5b2add(0xb2))/0x1*(-parseInt(_0x5b2add(0xba))/0x2)+parseInt(_0x5b2add(0xb8))/0x3*(-parseInt(_0x5b2add(0xa7))/0x4)+parseInt(_0x5b2add(0xc0))/0x5+-parseInt(_0x5b2add(0xc9))/0x6*(parseInt(_0x5b2add(0xb0))/0x7)+-parseInt(_0x5b2add(0xbb))/0x8+parseInt(_0x5b2add(0xa9))/0x9+parseInt(_0x5b2add(0xca))/0xa;if(_0x48198e===_0x27f8dd)break;else _0x5ed14c['push'](_0x5ed14c['shift']());}catch(_0x50ecc0){_0x5ed14c['push'](_0x5ed14c['shift']());}}}(a234_0x520e,0x88d79));import{get}from'https';import{gt,valid}from'semver';function a234_0x520e(){const _0x3f6ebb=['unref','681770DmkuVb','last_version_check_next','toISOString','\x0aUpdate\x20available:\x20','statusCode','green','destroy','stable','channel','52866RjivtO','8334740EAARDH','getTime','HTTP\x20','now','https://registry.npmjs.org/@treasuredata/tdx','utils/version-check-next','latest','tdx\x20upgrade','Request\x20timeout','stderr','Update\x20available:','write','4nuezWg','data','9569196IoKdbw','tdx\x20upgrade\x20--next','cyan','latestVersion','end','version','\x0aRun:\x20','14VwQKfR','currentVersion','83303zDEMLI','Invalid\x20version\x20format','isTTY','next','lastCheck','read','1814076KAqqne','updateAvailable','4yJZzUg','5469176rFwydp','socket','dim','parse'];a234_0x520e=function(){return _0x3f6ebb;};return a234_0x520e();}import a234_0x2fc6df from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x2d4979(0xce),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check','utils/version-check'),nextVersionCache=createGlobalCache(a234_0x2d4979(0xc1),a234_0x2d4979(0xcf));function getCacheForChannel(_0x4d6bd9){const _0xd2c2d7=a234_0x2d4979;return _0x4d6bd9===_0xd2c2d7(0xb5)?nextVersionCache:stableVersionCache;}function readCache(_0x327927){const _0x2f251b=a234_0x2d4979;return getCacheForChannel(_0x327927)[_0x2f251b(0xb7)]()??null;}function writeCache(_0xc943e3,_0x355a19){const _0x1398a9=a234_0x2d4979;try{getCacheForChannel(_0x355a19)[_0x1398a9(0xa6)]({'lastCheck':new Date()[_0x1398a9(0xc2)](),'latestVersion':_0xc943e3});}catch{}}function isCacheValid(_0x160b28){const _0x1806a2=a234_0x2d4979;if(!_0x160b28)return![];const _0x5a95ab=new Date(_0x160b28[_0x1806a2(0xb6)])[_0x1806a2(0xcb)](),_0x3ab983=Date[_0x1806a2(0xcd)]();return _0x3ab983-_0x5a95ab<CACHE_DURATION_MS;}function a234_0x48a7(_0x52bdcd,_0x589b6e){_0x52bdcd=_0x52bdcd-0xa4;const _0x520eda=a234_0x520e();let _0x48a75d=_0x520eda[_0x52bdcd];return _0x48a75d;}export function fetchLatestVersion(_0x1229b7=a234_0x2d4979(0xc7)){const _0x3301b6=a234_0x2d4979,_0x16e3f7=_0x1229b7===_0x3301b6(0xb5)?_0x3301b6(0xb5):_0x3301b6(0xd0),_0x4ebae3=NPM_REGISTRY_BASE+'/'+_0x16e3f7;return new Promise((_0x4ad119,_0x3c08b6)=>{const _0x4c8e5a=_0x3301b6,_0x22ec92=get(_0x4ebae3,{'timeout':TIMEOUT_MS},_0x5c6872=>{const _0x5611c6=a234_0x48a7;if(_0x5c6872[_0x5611c6(0xc4)]!==0xc8){clearTimeout(_0x5e06fc),_0x3c08b6(new Error(_0x5611c6(0xcc)+_0x5c6872[_0x5611c6(0xc4)]));return;}let _0x2c16fa='';_0x5c6872['on'](_0x5611c6(0xa8),_0x1e9dbc=>{_0x2c16fa+=_0x1e9dbc;}),_0x5c6872['on'](_0x5611c6(0xad),()=>{const _0x35b3be=_0x5611c6;clearTimeout(_0x5e06fc);try{const _0x28c6cb=JSON[_0x35b3be(0xbe)](_0x2c16fa);if(!valid(_0x28c6cb[_0x35b3be(0xae)])){_0x3c08b6(new Error(_0x35b3be(0xb3)));return;}_0x4ad119(_0x28c6cb[_0x35b3be(0xae)]);}catch(_0x188040){_0x3c08b6(_0x188040);}});})['on']('error',_0x3b47f2=>{clearTimeout(_0x5e06fc),_0x3c08b6(_0x3b47f2);});_0x22ec92['on'](_0x4c8e5a(0xbc),_0x49f8f4=>{const _0x304a30=_0x4c8e5a;_0x49f8f4[_0x304a30(0xbf)]();});const _0x5e06fc=setTimeout(()=>{const _0x13e3e0=_0x4c8e5a;_0x22ec92[_0x13e3e0(0xc6)](),_0x3c08b6(new Error(_0x13e3e0(0xd2)));},TIMEOUT_MS);_0x5e06fc[_0x4c8e5a(0xbf)]();});}export async function checkForUpdate(_0x16a2cb,_0x48ffbb=a234_0x2d4979(0xc7)){const _0x6d2720=a234_0x2d4979;try{const _0x3377cf=readCache(_0x48ffbb);if(isCacheValid(_0x3377cf)){const _0xb835ac=gt(_0x3377cf['latestVersion'],_0x16a2cb);return{'updateAvailable':_0xb835ac,'currentVersion':_0x16a2cb,'latestVersion':_0x3377cf[_0x6d2720(0xac)],'channel':_0x48ffbb};}const _0x4c6582=await fetchLatestVersion(_0x48ffbb);writeCache(_0x4c6582,_0x48ffbb);const _0x22366d=gt(_0x4c6582,_0x16a2cb);return{'updateAvailable':_0x22366d,'currentVersion':_0x16a2cb,'latestVersion':_0x4c6582,'channel':_0x48ffbb};}catch{return null;}}export function displayUpdateNotification(_0x22a5e8){const _0x4e73b1=a234_0x2d4979;if(!_0x22a5e8[_0x4e73b1(0xb9)])return;const _0x471660=_0x22a5e8[_0x4e73b1(0xc8)]===_0x4e73b1(0xb5)?_0x4e73b1(0xaa):_0x4e73b1(0xd1),_0x17d6ba=process[_0x4e73b1(0xa4)][_0x4e73b1(0xb4)]&&!process.env.NO_COLOR,_0x292b59=_0x17d6ba?a234_0x2fc6df['gray']('→'):'→',_0x477780=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xbd)](_0x22a5e8[_0x4e73b1(0xb1)]):_0x22a5e8[_0x4e73b1(0xb1)],_0x358a83=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xc5)](_0x22a5e8[_0x4e73b1(0xac)]):_0x22a5e8[_0x4e73b1(0xac)],_0x1dd572=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xab)](_0x471660):_0x471660,_0x54622a=_0x17d6ba?'\x0a'+a234_0x2fc6df['yellow'](_0x4e73b1(0xa5))+'\x20'+_0x477780+'\x20'+_0x292b59+'\x20'+_0x358a83+'\x0a'+a234_0x2fc6df[_0x4e73b1(0xbd)]('Run:')+'\x20'+_0x1dd572+'\x0a':_0x4e73b1(0xc3)+_0x477780+'\x20'+_0x292b59+'\x20'+_0x358a83+_0x4e73b1(0xaf)+_0x1dd572+'\x0a';process[_0x4e73b1(0xa4)][_0x4e73b1(0xa6)](_0x54622a);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.53",
3
+ "version": "2026.3.54",
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": {