@treasuredata/tdx 0.10.1 → 0.12.0

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 (180) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/auth-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/context-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/llm-proxy.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/user-command.js +1 -1
  42. package/dist/commands/workflow-command.d.ts +111 -7
  43. package/dist/commands/workflow-command.d.ts.map +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/commands/workflow-command.js.map +1 -1
  46. package/dist/core/auth.js +1 -1
  47. package/dist/core/command-output.d.ts +1 -1
  48. package/dist/core/command-output.d.ts.map +1 -1
  49. package/dist/core/command-output.js +1 -1
  50. package/dist/core/config.js +1 -1
  51. package/dist/core/connection-cache.js +1 -1
  52. package/dist/core/constants.js +1 -1
  53. package/dist/core/credential-cache.js +1 -1
  54. package/dist/core/global-context.d.ts +1 -0
  55. package/dist/core/global-context.d.ts.map +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/global-context.js.map +1 -1
  58. package/dist/core/keychain.js +1 -1
  59. package/dist/core/profile.js +1 -1
  60. package/dist/core/project-config.js +1 -1
  61. package/dist/core/session.d.ts +1 -0
  62. package/dist/core/session.d.ts.map +1 -1
  63. package/dist/core/session.js +1 -1
  64. package/dist/core/session.js.map +1 -1
  65. package/dist/core/user-cache.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/proxy/anthropic-adapter.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/context-signature.js +1 -1
  70. package/dist/proxy/conversation-utils.js +1 -1
  71. package/dist/proxy/server.js +1 -1
  72. package/dist/proxy/session-cache.js +1 -1
  73. package/dist/sdk/agent/agent-config.js +1 -1
  74. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  75. package/dist/sdk/agent/agent-yaml.js +1 -1
  76. package/dist/sdk/api.js +1 -1
  77. package/dist/sdk/client/cdp-api-client.js +1 -1
  78. package/dist/sdk/client/endpoints.d.ts +8 -0
  79. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  80. package/dist/sdk/client/endpoints.js +1 -1
  81. package/dist/sdk/client/endpoints.js.map +1 -1
  82. package/dist/sdk/client/engage-api-client.js +1 -1
  83. package/dist/sdk/client/http-client.js +1 -1
  84. package/dist/sdk/client/llm-api-client.js +1 -1
  85. package/dist/sdk/client/rate-limiter.js +1 -1
  86. package/dist/sdk/client/td-api-client.js +1 -1
  87. package/dist/sdk/client/trino-api-client.js +1 -1
  88. package/dist/sdk/client/workflow-client.d.ts +32 -4
  89. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/client/workflow-client.js.map +1 -1
  92. package/dist/sdk/connection-validator.d.ts +10 -6
  93. package/dist/sdk/connection-validator.d.ts.map +1 -1
  94. package/dist/sdk/connection-validator.js +1 -1
  95. package/dist/sdk/connection-validator.js.map +1 -1
  96. package/dist/sdk/connection.js +1 -1
  97. package/dist/sdk/engage.js +1 -1
  98. package/dist/sdk/errors.d.ts +4 -0
  99. package/dist/sdk/errors.d.ts.map +1 -1
  100. package/dist/sdk/errors.js +1 -1
  101. package/dist/sdk/errors.js.map +1 -1
  102. package/dist/sdk/index.js +1 -1
  103. package/dist/sdk/io/index.js +1 -1
  104. package/dist/sdk/io/node-filesystem.js +1 -1
  105. package/dist/sdk/job.js +1 -1
  106. package/dist/sdk/journey.js +1 -1
  107. package/dist/sdk/llm/chat-cache.js +1 -1
  108. package/dist/sdk/llm/index.js +1 -1
  109. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  110. package/dist/sdk/llm/model-aliases.js +1 -1
  111. package/dist/sdk/llm/model-factors.js +1 -1
  112. package/dist/sdk/query/index.js +1 -1
  113. package/dist/sdk/query/sql-parser.js +1 -1
  114. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  115. package/dist/sdk/segment/fields-display.js +1 -1
  116. package/dist/sdk/segment/file-discovery.js +1 -1
  117. package/dist/sdk/segment/journey-utils.js +1 -1
  118. package/dist/sdk/segment/journey-yaml.js +1 -1
  119. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  120. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  121. package/dist/sdk/segment/pull-workflow.js +1 -1
  122. package/dist/sdk/segment/push-workflow.js +1 -1
  123. package/dist/sdk/segment/resolution-context.js +1 -1
  124. package/dist/sdk/segment/segment-path-parser.js +1 -1
  125. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  126. package/dist/sdk/segment/target-resolution.js +1 -1
  127. package/dist/sdk/segment/tdx-config.js +1 -1
  128. package/dist/sdk/segment/validate-files.js +1 -1
  129. package/dist/sdk/segment/yaml-validator.js +1 -1
  130. package/dist/sdk/segment.js +1 -1
  131. package/dist/sdk/types/index.d.ts +1 -0
  132. package/dist/sdk/types/index.d.ts.map +1 -1
  133. package/dist/sdk/types/index.js +1 -1
  134. package/dist/sdk/types/index.js.map +1 -1
  135. package/dist/sdk/types/progress.js +1 -1
  136. package/dist/sdk/user.js +1 -1
  137. package/dist/sdk/util/format-detector.js +1 -1
  138. package/dist/sdk/util/formatters.js +1 -1
  139. package/dist/sdk/util/index.js +1 -1
  140. package/dist/sdk/util/tree-formatter.js +1 -1
  141. package/dist/sdk/workflow/clone-workflow.d.ts +80 -0
  142. package/dist/sdk/workflow/clone-workflow.d.ts.map +1 -0
  143. package/dist/sdk/workflow/clone-workflow.js +1 -0
  144. package/dist/sdk/workflow/clone-workflow.js.map +1 -0
  145. package/dist/sdk/workflow/index.d.ts +168 -4
  146. package/dist/sdk/workflow/index.d.ts.map +1 -1
  147. package/dist/sdk/workflow/index.js +1 -1
  148. package/dist/sdk/workflow/index.js.map +1 -1
  149. package/dist/sdk/workflow/pull-workflow.d.ts +77 -0
  150. package/dist/sdk/workflow/pull-workflow.d.ts.map +1 -0
  151. package/dist/sdk/workflow/pull-workflow.js +1 -0
  152. package/dist/sdk/workflow/pull-workflow.js.map +1 -0
  153. package/dist/sdk/workflow/push-workflow.d.ts +66 -0
  154. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -0
  155. package/dist/sdk/workflow/push-workflow.js +1 -0
  156. package/dist/sdk/workflow/push-workflow.js.map +1 -0
  157. package/dist/sdk/workflow/tdx-config.d.ts +110 -0
  158. package/dist/sdk/workflow/tdx-config.d.ts.map +1 -0
  159. package/dist/sdk/workflow/tdx-config.js +1 -0
  160. package/dist/sdk/workflow/tdx-config.js.map +1 -0
  161. package/dist/sdk/workflow/workflow-utils.d.ts +10 -7
  162. package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -1
  163. package/dist/sdk/workflow/workflow-utils.js +1 -1
  164. package/dist/sdk/workflow/workflow-utils.js.map +1 -1
  165. package/dist/utils/async.js +1 -1
  166. package/dist/utils/colors.js +1 -1
  167. package/dist/utils/diff.js +1 -1
  168. package/dist/utils/file-permissions.js +1 -1
  169. package/dist/utils/json-loader.js +1 -1
  170. package/dist/utils/option-validation.js +1 -1
  171. package/dist/utils/port.js +1 -1
  172. package/dist/utils/process.js +1 -1
  173. package/dist/utils/prompt.js +1 -1
  174. package/dist/utils/spinner.js +1 -1
  175. package/dist/utils/sse-parser.js +1 -1
  176. package/dist/utils/string-utils.js +1 -1
  177. package/dist/utils/table-ref-parser.js +1 -1
  178. package/dist/utils/tdx-logger.js +1 -1
  179. package/dist/utils/version-check.js +1 -1
  180. package/package.json +1 -1
@@ -1 +1 @@
1
- const a136_0x410fd7=a136_0x141d;function a136_0x141d(_0x19ceee,_0x2093e8){_0x19ceee=_0x19ceee-0x1ef;const _0xeabc35=a136_0xeabc();let _0x141dde=_0xeabc35[_0x19ceee];return _0x141dde;}(function(_0x3a8ac4,_0x4c4b83){const _0x37980c=a136_0x141d,_0x21e072=_0x3a8ac4();while(!![]){try{const _0x5c69cc=parseInt(_0x37980c(0x1fe))/0x1*(-parseInt(_0x37980c(0x202))/0x2)+-parseInt(_0x37980c(0x1f6))/0x3*(parseInt(_0x37980c(0x20d))/0x4)+-parseInt(_0x37980c(0x205))/0x5*(-parseInt(_0x37980c(0x215))/0x6)+-parseInt(_0x37980c(0x1ff))/0x7+parseInt(_0x37980c(0x200))/0x8+parseInt(_0x37980c(0x1f5))/0x9+-parseInt(_0x37980c(0x1fc))/0xa;if(_0x5c69cc===_0x4c4b83)break;else _0x21e072['push'](_0x21e072['shift']());}catch(_0x367556){_0x21e072['push'](_0x21e072['shift']());}}}(a136_0xeabc,0x9eb36));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a136_0x410fd7(0x1f0),a136_0x410fd7(0x1fd),'sh','fish',a136_0x410fd7(0x201),a136_0x410fd7(0x1fb),'csh','dash',a136_0x410fd7(0x20b),'powershell','nu','ion',a136_0x410fd7(0x21c),a136_0x410fd7(0x21a)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a136_0x410fd7(0x209),a136_0x410fd7(0x216),a136_0x410fd7(0x206)]);function getProcessInfoWindows(_0x5ef167){const _0x13beb1=a136_0x410fd7;try{if(!Number['isInteger'](_0x5ef167)||_0x5ef167<=0x0)return null;const _0x5022fc=execSync(_0x13beb1(0x1f3)+_0x5ef167+_0x13beb1(0x219),{'encoding':_0x13beb1(0x1f2),'windowsHide':!![]})['trim'](),_0x4cf893=_0x5022fc[_0x13beb1(0x20c)]('\x0a')['filter'](_0x1d2354=>_0x1d2354[_0x13beb1(0x1f4)]());if(_0x4cf893[_0x13beb1(0x212)]<0x2)return null;const _0x11c296=_0x4cf893[_0x4cf893[_0x13beb1(0x212)]-0x1][_0x13beb1(0x20c)](',');if(_0x11c296['length']<0x3)return null;const _0x393ace=_0x11c296[0x1]?.['trim']()||'',_0x2265b4=parseInt(_0x11c296[0x2]?.[_0x13beb1(0x1f4)]()||'0',0xa);if(isNaN(_0x2265b4)||!_0x393ace)return null;return{'pid':_0x5ef167,'ppid':_0x2265b4,'comm':_0x393ace['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x157af4){const _0x43964e=a136_0x410fd7;try{const _0x207dce=0x400000;if(!Number[_0x43964e(0x20f)](_0x157af4)||_0x157af4<=0x0||_0x157af4>_0x207dce)return null;const _0x5da01f=execSync('ps\x20-p\x20'+_0x157af4+_0x43964e(0x1ef),{'encoding':'utf-8','stdio':_0x43964e(0x20e)})['trim'](),[_0x4f807c,..._0x114b86]=_0x5da01f[_0x43964e(0x20c)](/\s+/),_0x4fc9e1=parseInt(_0x4f807c,0xa),_0x105f0a=_0x114b86[_0x43964e(0x21b)]('\x20');if(isNaN(_0x4fc9e1))return null;return{'pid':_0x157af4,'ppid':_0x4fc9e1,'comm':_0x105f0a};}catch{return null;}}function getProcessInfo(_0x5ee0ae){const _0xdb3c68=a136_0x410fd7;if(process[_0xdb3c68(0x203)]===_0xdb3c68(0x204))return getProcessInfoWindows(_0x5ee0ae);return getProcessInfoPosix(_0x5ee0ae);}function getBasename(_0x272f2e){const _0x54839d=a136_0x410fd7;return _0x272f2e[_0x54839d(0x218)](/^-/,'')[_0x54839d(0x20c)]('/')[_0x54839d(0x1f7)]()?.[_0x54839d(0x20a)]()||'';}function isShell(_0x51dddf){const _0x156a1f=a136_0x410fd7;return SHELL_NAMES[_0x156a1f(0x217)](getBasename(_0x51dddf));}function isEphemeralShellSpawner(_0x390238){const _0x2dfbe1=a136_0x410fd7;return EPHEMERAL_SHELL_SPAWNERS[_0x2dfbe1(0x217)](getBasename(_0x390238));}let cachedShellPID;function findShellPID(){const _0x2b7e6f=a136_0x410fd7;if(process[_0x2b7e6f(0x207)]===undefined)return process[_0x2b7e6f(0x1f9)];let _0x2a66b2=process[_0x2b7e6f(0x207)];const _0x3b3be2=0xa;let _0x401f43=0x0;while(_0x401f43<_0x3b3be2){const _0x132e86=getProcessInfo(_0x2a66b2);if(!_0x132e86)break;if(isShell(_0x132e86[_0x2b7e6f(0x214)])){const _0x4922ee=getProcessInfo(_0x132e86[_0x2b7e6f(0x207)]);if(_0x4922ee&&isEphemeralShellSpawner(_0x4922ee[_0x2b7e6f(0x214)])){_0x2a66b2=_0x132e86[_0x2b7e6f(0x207)],_0x401f43++;continue;}return _0x132e86[_0x2b7e6f(0x1f9)];}if(_0x132e86[_0x2b7e6f(0x207)]===0x0||_0x132e86['ppid']===0x1){if(isShell(_0x132e86[_0x2b7e6f(0x214)]))return _0x132e86[_0x2b7e6f(0x1f9)];break;}_0x2a66b2=_0x132e86[_0x2b7e6f(0x207)],_0x401f43++;}return process[_0x2b7e6f(0x207)]!==undefined?process[_0x2b7e6f(0x207)]:process[_0x2b7e6f(0x1f9)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a136_0xeabc(){const _0x4c1b27=['start','tcsh','6283230dUHdlv','zsh','8937bDJIrG','312249dFTeeL','8898352jhPKer','ksh','84PaTbqv','platform','win32','30xDvCeR','cursor','ppid','xdg-open','claude','toLowerCase','pwsh','split','3487828QTAJPb','pipe','isInteger','ignore','unref','length','open','comm','1085334uoubBd','code','has','replace','\x20get\x20ParentProcessId,Name\x20/format:csv','xonsh','join','elvish','\x20-o\x20ppid=,comm=','bash','kill','utf-8','wmic\x20process\x20where\x20ProcessId=','trim','3353859CdlQJI','3MTSbmh','pop','darwin','pid'];a136_0xeabc=function(){return _0x4c1b27;};return a136_0xeabc();}export function isProcessRunning(_0x44c5de){const _0x4ad864=a136_0x410fd7;if(!Number[_0x4ad864(0x20f)](_0x44c5de)||_0x44c5de<=0x0)return![];try{return process[_0x4ad864(0x1f1)](_0x44c5de,0x0),!![];}catch{return![];}}export function openBrowser(_0x13d3b8){const _0x248828=a136_0x410fd7,_0x272f81=process['platform'],_0x490874=_0x272f81===_0x248828(0x1f8)?_0x248828(0x213):_0x272f81===_0x248828(0x204)?_0x248828(0x1fa):_0x248828(0x208);spawn(_0x490874,[_0x13d3b8],{'detached':!![],'stdio':_0x248828(0x210)})[_0x248828(0x211)]();}
1
+ function a140_0x4203(_0xc84c66,_0x48e952){_0xc84c66=_0xc84c66-0x6d;const _0xbc4550=a140_0xbc45();let _0x420353=_0xbc4550[_0xc84c66];return _0x420353;}const a140_0x5181cb=a140_0x4203;(function(_0x1eb2be,_0x76d9a6){const _0x5f268c=a140_0x4203,_0x3b03a7=_0x1eb2be();while(!![]){try{const _0x4fb131=-parseInt(_0x5f268c(0x83))/0x1*(-parseInt(_0x5f268c(0x95))/0x2)+parseInt(_0x5f268c(0x8b))/0x3+parseInt(_0x5f268c(0x77))/0x4*(parseInt(_0x5f268c(0x6d))/0x5)+parseInt(_0x5f268c(0x84))/0x6*(parseInt(_0x5f268c(0x6e))/0x7)+-parseInt(_0x5f268c(0x8a))/0x8+-parseInt(_0x5f268c(0x8e))/0x9+-parseInt(_0x5f268c(0x73))/0xa;if(_0x4fb131===_0x76d9a6)break;else _0x3b03a7['push'](_0x3b03a7['shift']());}catch(_0x1f401e){_0x3b03a7['push'](_0x3b03a7['shift']());}}}(a140_0xbc45,0x4963e));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a140_0x5181cb(0x6f),a140_0x5181cb(0x7d),'sh','fish','ksh',a140_0x5181cb(0x91),'csh',a140_0x5181cb(0x80),a140_0x5181cb(0x88),a140_0x5181cb(0x74),'nu',a140_0x5181cb(0x79),'elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a140_0x5181cb(0x81),a140_0x5181cb(0x7c),a140_0x5181cb(0x75)]);function getProcessInfoWindows(_0xccbf92){const _0x81ce19=a140_0x5181cb;try{if(!Number[_0x81ce19(0x7b)](_0xccbf92)||_0xccbf92<=0x0)return null;const _0xed052a=execSync(_0x81ce19(0x90)+_0xccbf92+_0x81ce19(0x8f),{'encoding':_0x81ce19(0x96),'windowsHide':!![]})[_0x81ce19(0x7e)](),_0x29b1e8=_0xed052a[_0x81ce19(0x92)]('\x0a')[_0x81ce19(0x93)](_0x4c3ba6=>_0x4c3ba6[_0x81ce19(0x7e)]());if(_0x29b1e8['length']<0x2)return null;const _0x1b284e=_0x29b1e8[_0x29b1e8[_0x81ce19(0x82)]-0x1]['split'](',');if(_0x1b284e[_0x81ce19(0x82)]<0x3)return null;const _0x2f9031=_0x1b284e[0x1]?.['trim']()||'',_0x701844=parseInt(_0x1b284e[0x2]?.[_0x81ce19(0x7e)]()||'0',0xa);if(isNaN(_0x701844)||!_0x2f9031)return null;return{'pid':_0xccbf92,'ppid':_0x701844,'comm':_0x2f9031['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x25aeb5){const _0x2fd8f5=a140_0x5181cb;try{const _0xf412b3=0x400000;if(!Number[_0x2fd8f5(0x7b)](_0x25aeb5)||_0x25aeb5<=0x0||_0x25aeb5>_0xf412b3)return null;const _0x346ea1=execSync(_0x2fd8f5(0x8c)+_0x25aeb5+_0x2fd8f5(0x78),{'encoding':'utf-8','stdio':'pipe'})['trim'](),[_0x427825,..._0x187a16]=_0x346ea1[_0x2fd8f5(0x92)](/\s+/),_0x1bd860=parseInt(_0x427825,0xa),_0x3a3c20=_0x187a16[_0x2fd8f5(0x71)]('\x20');if(isNaN(_0x1bd860))return null;return{'pid':_0x25aeb5,'ppid':_0x1bd860,'comm':_0x3a3c20};}catch{return null;}}function getProcessInfo(_0x58e404){if(process['platform']==='win32')return getProcessInfoWindows(_0x58e404);return getProcessInfoPosix(_0x58e404);}function getBasename(_0xec8c3b){const _0x542035=a140_0x5181cb;return _0xec8c3b[_0x542035(0x86)](/^-/,'')[_0x542035(0x92)]('/')['pop']()?.[_0x542035(0x8d)]()||'';}function isShell(_0x1e4909){const _0x42bd77=a140_0x5181cb;return SHELL_NAMES[_0x42bd77(0x72)](getBasename(_0x1e4909));}function isEphemeralShellSpawner(_0x1bdfcc){const _0x50d918=a140_0x5181cb;return EPHEMERAL_SHELL_SPAWNERS[_0x50d918(0x72)](getBasename(_0x1bdfcc));}let cachedShellPID;function a140_0xbc45(){const _0x3f93ab=['has','2035000KDVwnN','powershell','cursor','kill','24wMfexB','\x20-o\x20ppid=,comm=','ion','open','isInteger','code','zsh','trim','pid','dash','claude','length','4kJTPKz','2870886GZgCpm','start','replace','win32','pwsh','platform','4392504WTlVWk','490488tpgvrX','ps\x20-p\x20','toLowerCase','935082CUFVCv','\x20get\x20ParentProcessId,Name\x20/format:csv','wmic\x20process\x20where\x20ProcessId=','tcsh','split','filter','comm','184738vjrChS','utf-8','darwin','121345LjfuVP','7RSOeiB','bash','ppid','join'];a140_0xbc45=function(){return _0x3f93ab;};return a140_0xbc45();}function findShellPID(){const _0x2fa262=a140_0x5181cb;if(process[_0x2fa262(0x70)]===undefined)return process[_0x2fa262(0x7f)];let _0x44b6a2=process['ppid'];const _0x4ab188=0xa;let _0x1f7a99=0x0;while(_0x1f7a99<_0x4ab188){const _0x2f31f0=getProcessInfo(_0x44b6a2);if(!_0x2f31f0)break;if(isShell(_0x2f31f0[_0x2fa262(0x94)])){const _0x113b3d=getProcessInfo(_0x2f31f0[_0x2fa262(0x70)]);if(_0x113b3d&&isEphemeralShellSpawner(_0x113b3d[_0x2fa262(0x94)])){_0x44b6a2=_0x2f31f0['ppid'],_0x1f7a99++;continue;}return _0x2f31f0['pid'];}if(_0x2f31f0[_0x2fa262(0x70)]===0x0||_0x2f31f0['ppid']===0x1){if(isShell(_0x2f31f0['comm']))return _0x2f31f0['pid'];break;}_0x44b6a2=_0x2f31f0[_0x2fa262(0x70)],_0x1f7a99++;}return process['ppid']!==undefined?process[_0x2fa262(0x70)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0xafb1bb){const _0x497217=a140_0x5181cb;if(!Number[_0x497217(0x7b)](_0xafb1bb)||_0xafb1bb<=0x0)return![];try{return process[_0x497217(0x76)](_0xafb1bb,0x0),!![];}catch{return![];}}export function openBrowser(_0x59d910){const _0x3cbe7c=a140_0x5181cb,_0x58cc60=process[_0x3cbe7c(0x89)],_0x1a53d3=_0x58cc60===_0x3cbe7c(0x97)?_0x3cbe7c(0x7a):_0x58cc60===_0x3cbe7c(0x87)?_0x3cbe7c(0x85):'xdg-open';spawn(_0x1a53d3,[_0x59d910],{'detached':!![],'stdio':'ignore'})['unref']();}
@@ -1 +1 @@
1
- function a137_0x471f(){const _0x808aa6=['\x20[y/N]\x20','stdout','7610fitlzc','yes','18328OHrEba','resume','stdin','close','createInterface','5067VqqSXL','160kMkpxs','54416AoyObS','1722fesSLd','setEncoding','7412496HjfbZG','1613JINVya','data','question','toLowerCase','write','133RLWVHk','16408887wNAZjV','1839933jixewA','exit','setRawMode','stderr','utf8'];a137_0x471f=function(){return _0x808aa6;};return a137_0x471f();}(function(_0x126c40,_0x4571e9){const _0xfb88b1=a137_0x162d,_0x2099fa=_0x126c40();while(!![]){try{const _0x463ba6=-parseInt(_0xfb88b1(0x89))/0x1*(-parseInt(_0xfb88b1(0x86))/0x2)+-parseInt(_0xfb88b1(0x90))/0x3+-parseInt(_0xfb88b1(0x85))/0x4*(-parseInt(_0xfb88b1(0x84))/0x5)+-parseInt(_0xfb88b1(0x88))/0x6+-parseInt(_0xfb88b1(0x8e))/0x7*(parseInt(_0xfb88b1(0x99))/0x8)+-parseInt(_0xfb88b1(0x83))/0x9*(parseInt(_0xfb88b1(0x97))/0xa)+parseInt(_0xfb88b1(0x8f))/0xb;if(_0x463ba6===_0x4571e9)break;else _0x2099fa['push'](_0x2099fa['shift']());}catch(_0x897f87){_0x2099fa['push'](_0x2099fa['shift']());}}}(a137_0x471f,0xf2f43));import*as a137_0x5c588b from'readline';export async function confirm(_0x5563d2){const _0x38cce3=a137_0x162d,_0x38813d=a137_0x5c588b[_0x38cce3(0x82)]({'input':process[_0x38cce3(0x80)],'output':process[_0x38cce3(0x96)]});return new Promise(_0x15eb86=>{const _0x15087a=_0x38cce3;_0x38813d[_0x15087a(0x8b)](_0x5563d2+'\x20(y/N):\x20',_0x26876b=>{const _0x5d80f7=_0x15087a;_0x38813d[_0x5d80f7(0x81)](),_0x15eb86(_0x26876b[_0x5d80f7(0x8c)]()==='y'||_0x26876b['toLowerCase']()===_0x5d80f7(0x98));});});}function a137_0x162d(_0x5b9de4,_0x5b6b0b){_0x5b9de4=_0x5b9de4-0x80;const _0x471f81=a137_0x471f();let _0x162df9=_0x471f81[_0x5b9de4];return _0x162df9;}export async function confirmKey(_0x186a9e){const _0x4fc2c8=a137_0x162d;if(!process[_0x4fc2c8(0x80)]['isTTY'])return![];return process[_0x4fc2c8(0x93)][_0x4fc2c8(0x8d)](_0x186a9e+_0x4fc2c8(0x95)),new Promise(_0x38cb17=>{const _0x3cd23b=_0x4fc2c8,_0x1fc719=process['stdin'];_0x1fc719[_0x3cd23b(0x92)](!![]),_0x1fc719[_0x3cd23b(0x9a)](),_0x1fc719[_0x3cd23b(0x87)](_0x3cd23b(0x94));const _0x545284=_0x3557a4=>{const _0x2d388d=_0x3cd23b;_0x1fc719['setRawMode'](![]),_0x1fc719['pause'](),_0x1fc719['removeListener'](_0x2d388d(0x8a),_0x545284);if(_0x3557a4==='\x1b'){process[_0x2d388d(0x93)]['write']('\x0a'),_0x38cb17(![]);return;}_0x3557a4==='\x03'&&(process[_0x2d388d(0x93)][_0x2d388d(0x8d)]('\x0a'),process[_0x2d388d(0x91)](0x82));if(_0x3557a4[_0x2d388d(0x8c)]()==='y'){process[_0x2d388d(0x93)]['write']('y\x0a'),_0x38cb17(!![]);return;}process['stderr'][_0x2d388d(0x8d)]('\x0a'),_0x38cb17(![]);};_0x1fc719['on']('data',_0x545284);});}
1
+ (function(_0x5b0f27,_0xfc8499){const _0x4bf1e6=a141_0xcb7b,_0x397e39=_0x5b0f27();while(!![]){try{const _0x4bf45d=-parseInt(_0x4bf1e6(0x98))/0x1*(parseInt(_0x4bf1e6(0x8d))/0x2)+-parseInt(_0x4bf1e6(0x8f))/0x3+-parseInt(_0x4bf1e6(0x86))/0x4*(-parseInt(_0x4bf1e6(0x96))/0x5)+-parseInt(_0x4bf1e6(0x82))/0x6+parseInt(_0x4bf1e6(0x8a))/0x7+-parseInt(_0x4bf1e6(0x80))/0x8*(parseInt(_0x4bf1e6(0x85))/0x9)+-parseInt(_0x4bf1e6(0x83))/0xa*(-parseInt(_0x4bf1e6(0x7f))/0xb);if(_0x4bf45d===_0xfc8499)break;else _0x397e39['push'](_0x397e39['shift']());}catch(_0x1e2325){_0x397e39['push'](_0x397e39['shift']());}}}(a141_0x10aa,0x272a7));function a141_0xcb7b(_0x115f75,_0x267fa6){_0x115f75=_0x115f75-0x7e;const _0x10aac4=a141_0x10aa();let _0xcb7be2=_0x10aac4[_0x115f75];return _0xcb7be2;}import*as a141_0xb8ded4 from'readline';export async function confirm(_0x289f15){const _0x1e6251=a141_0xcb7b,_0x149494=a141_0xb8ded4[_0x1e6251(0x87)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x3663fc=>{const _0x2a8265=_0x1e6251;_0x149494[_0x2a8265(0x8c)](_0x289f15+_0x2a8265(0x81),_0x2969d6=>{const _0x5db290=_0x2a8265;_0x149494[_0x5db290(0x97)](),_0x3663fc(_0x2969d6[_0x5db290(0x95)]()==='y'||_0x2969d6[_0x5db290(0x95)]()==='yes');});});}export async function confirmKey(_0x23cb8e){const _0x456be2=a141_0xcb7b;if(!process[_0x456be2(0x93)]['isTTY'])return![];return process[_0x456be2(0x92)][_0x456be2(0x8e)](_0x23cb8e+_0x456be2(0x84)),new Promise(_0x13a08e=>{const _0x5d7463=_0x456be2,_0x44cd2b=process['stdin'];_0x44cd2b[_0x5d7463(0x7e)](!![]),_0x44cd2b[_0x5d7463(0x88)](),_0x44cd2b[_0x5d7463(0x89)](_0x5d7463(0x91));const _0x483ba6=_0x22029d=>{const _0x4e4240=_0x5d7463;_0x44cd2b['setRawMode'](![]),_0x44cd2b['pause'](),_0x44cd2b[_0x4e4240(0x94)]('data',_0x483ba6);if(_0x22029d==='\x1b'){process[_0x4e4240(0x92)]['write']('\x0a'),_0x13a08e(![]);return;}_0x22029d==='\x03'&&(process[_0x4e4240(0x92)][_0x4e4240(0x8e)]('\x0a'),process[_0x4e4240(0x8b)](0x82));if(_0x22029d[_0x4e4240(0x95)]()==='y'){process[_0x4e4240(0x92)][_0x4e4240(0x8e)]('y\x0a'),_0x13a08e(!![]);return;}process[_0x4e4240(0x92)]['write']('\x0a'),_0x13a08e(![]);};_0x44cd2b['on'](_0x5d7463(0x90),_0x483ba6);});}function a141_0x10aa(){const _0x38e04c=['691968ziIAjW','data','utf8','stderr','stdin','removeListener','toLowerCase','366295cNxGpW','close','13obOZbm','setRawMode','539ZEEvnv','1725872AfyBmG','\x20(y/N):\x20','729426qUJobp','114850nEMdFj','\x20[y/N]\x20','9uzWamm','4Difcnt','createInterface','resume','setEncoding','2146837MIEPtG','exit','question','32974AAWLAN','write'];a141_0x10aa=function(){return _0x38e04c;};return a141_0x10aa();}
@@ -1 +1 @@
1
- function a138_0x4e5a(_0x1d48c7,_0x1a2b54){_0x1d48c7=_0x1d48c7-0x1e2;const _0x488464=a138_0x4884();let _0x4e5a0c=_0x488464[_0x1d48c7];return _0x4e5a0c;}(function(_0x2ebf82,_0x518229){const _0x53b0a6=a138_0x4e5a,_0x16c508=_0x2ebf82();while(!![]){try{const _0x407c95=-parseInt(_0x53b0a6(0x1f3))/0x1*(-parseInt(_0x53b0a6(0x1f2))/0x2)+-parseInt(_0x53b0a6(0x1eb))/0x3+parseInt(_0x53b0a6(0x1e3))/0x4+parseInt(_0x53b0a6(0x1fa))/0x5+-parseInt(_0x53b0a6(0x1f9))/0x6+-parseInt(_0x53b0a6(0x1ef))/0x7*(-parseInt(_0x53b0a6(0x1e4))/0x8)+parseInt(_0x53b0a6(0x1f0))/0x9;if(_0x407c95===_0x518229)break;else _0x16c508['push'](_0x16c508['shift']());}catch(_0x48532b){_0x16c508['push'](_0x16c508['shift']());}}}(a138_0x4884,0xa70dc));import a138_0x16a497 from'ora';export function createCommandSpinner(_0x2714c2,_0x12850d={}){const _0x50246b=a138_0x4e5a,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x12850d;return a138_0x16a497({'text':_0x2714c2,'color':_0x50246b(0x1ea),'stream':process['stderr'],'isEnabled':forceEnabled||process['stderr']['isTTY']&&!verbose});}export async function withSpinner(_0x3e3925,_0x110522,_0x33cd49={}){const _0x3a4eda=a138_0x4e5a,_0x46c922=_0x33cd49['clock']??(()=>Date[_0x3a4eda(0x1ee)]()),_0x360bd8=createCommandSpinner(_0x3e3925,_0x33cd49);_0x360bd8[_0x3a4eda(0x1e2)]();const _0x38ab6f=_0x46c922();try{const _0xfe83ce=await _0x110522(),_0x4d214e=_0x46c922()-_0x38ab6f;return _0x360bd8[_0x3a4eda(0x1f7)](),{'data':_0xfe83ce,'elapsedMs':_0x4d214e};}catch(_0x50b466){_0x360bd8['stop']();throw _0x50b466;}}function a138_0x4884(){const _0xe49c73=['1274664mCuVKT','phase','intervalFactory','now','7irwuEU','6101181dnSwds','isSpinning','102Flalmx','15497TIOgtD','clock','Processing','\x20[Job\x20ID:\x20','stop','...','7531788akSzpz','4107450fxTYVu','text','start','150852jtemdT','295832RteeXS','extra','floor','replace','trim','jobId','cyan'];a138_0x4884=function(){return _0xe49c73;};return a138_0x4884();}export async function withProgressSpinner(_0x4b1a0e,_0x3af8ad,_0x35dd60={}){const _0x4c3fa8=a138_0x4e5a,_0x44c05f=_0x35dd60[_0x4c3fa8(0x1f4)]??(()=>Date[_0x4c3fa8(0x1ee)]()),_0x42de84=_0x35dd60[_0x4c3fa8(0x1ed)]??setInterval,_0x435f3e=createCommandSpinner(_0x4b1a0e,_0x35dd60);_0x435f3e[_0x4c3fa8(0x1e2)]();const _0x1182da=_0x44c05f(),_0x2d46dc=_0x4b1a0e[_0x4c3fa8(0x1e7)](_0x4c3fa8(0x1f8),'')['trim']()||_0x4c3fa8(0x1f5),_0x152880={};let _0x29fce2=_0x4b1a0e;const _0x3d85a1=()=>{const _0x2108f1=_0x4c3fa8;if(!_0x435f3e[_0x2108f1(0x1f1)])return;const _0x302fc4=_0x44c05f()-_0x1182da,_0x3bb2d8=formatElapsed(_0x302fc4),_0x571d9e=_0x152880[_0x2108f1(0x1ec)]?.['trim']()||_0x2d46dc,_0x31df81=_0x152880[_0x2108f1(0x1e9)]?_0x2108f1(0x1f6)+_0x152880[_0x2108f1(0x1e9)]+']':'',_0x39c714=_0x152880[_0x2108f1(0x1e5)]?'\x20'+_0x152880[_0x2108f1(0x1e5)]:'',_0x4a18d3=_0x571d9e+'\x20'+_0x3bb2d8+_0x39c714+_0x31df81;_0x4a18d3!==_0x29fce2&&_0x4a18d3['trim']()&&(_0x435f3e['text']=_0x4a18d3,_0x29fce2=_0x4a18d3);},_0x3fac76=_0x42de84(()=>{_0x3d85a1();},0x3e8),_0x404bde={'setPhase':_0x8a27f5=>{const _0x3efda0=_0x4c3fa8;_0x152880['phase']=_0x8a27f5;const _0xe21408=_0x8a27f5?.[_0x3efda0(0x1e8)]()||_0x2d46dc,_0x3c312a=_0x44c05f()-_0x1182da,_0x4940d0=formatElapsed(_0x3c312a),_0x24bb9a=_0x152880['jobId']?_0x3efda0(0x1f6)+_0x152880[_0x3efda0(0x1e9)]+']':'',_0x2443fa=_0x152880[_0x3efda0(0x1e5)]?'\x20'+_0x152880[_0x3efda0(0x1e5)]:'',_0x2bbcf0=_0xe21408+'\x20'+_0x4940d0+_0x2443fa+_0x24bb9a;_0x435f3e[_0x3efda0(0x1f1)]&&_0x2bbcf0[_0x3efda0(0x1e8)]()&&(_0x435f3e[_0x3efda0(0x1fb)]=_0x2bbcf0,_0x29fce2=_0x2bbcf0);},'setJobId':_0x3b3d74=>{_0x152880['jobId']=_0x3b3d74,_0x3d85a1();},'setExtra':_0x5ba03c=>{_0x152880['extra']=_0x5ba03c,_0x3d85a1();}};_0x3d85a1();try{const _0x1c3761=await _0x3af8ad(_0x404bde),_0x3945ff=_0x44c05f()-_0x1182da;return{'data':_0x1c3761,'elapsedMs':_0x3945ff};}finally{clearInterval(_0x3fac76),_0x435f3e[_0x4c3fa8(0x1f7)]();}}export function formatElapsed(_0x51f4df){const _0x28b6b8=a138_0x4e5a,_0x30d17e=Math[_0x28b6b8(0x1e6)](_0x51f4df/0x3e8);if(_0x30d17e<0x3c)return(_0x51f4df/0x3e8)['toFixed'](0x1)+'s';const _0x5f0370=Math[_0x28b6b8(0x1e6)](_0x30d17e/0x3c),_0x3dea9f=_0x30d17e%0x3c;if(_0x5f0370<0x3c)return _0x5f0370+'m\x20'+_0x3dea9f+'s';const _0x1fd3c1=Math['floor'](_0x5f0370/0x3c),_0x30a393=_0x5f0370%0x3c;return _0x1fd3c1+'h\x20'+_0x30a393+'m';}
1
+ (function(_0x225c15,_0x1103d5){const _0x34ebb6=a142_0x2b21,_0x3c582d=_0x225c15();while(!![]){try{const _0x46b1b6=parseInt(_0x34ebb6(0x1b7))/0x1+-parseInt(_0x34ebb6(0x1c9))/0x2*(-parseInt(_0x34ebb6(0x1bb))/0x3)+parseInt(_0x34ebb6(0x1c1))/0x4+parseInt(_0x34ebb6(0x1b8))/0x5*(parseInt(_0x34ebb6(0x1c4))/0x6)+parseInt(_0x34ebb6(0x1cf))/0x7*(parseInt(_0x34ebb6(0x1c8))/0x8)+parseInt(_0x34ebb6(0x1ca))/0x9+-parseInt(_0x34ebb6(0x1b9))/0xa;if(_0x46b1b6===_0x1103d5)break;else _0x3c582d['push'](_0x3c582d['shift']());}catch(_0x4c8e1f){_0x3c582d['push'](_0x3c582d['shift']());}}}(a142_0x4d2f,0x6608a));function a142_0x4d2f(){const _0x2310d5=['Processing','intervalFactory','35sCZbeM','start','370284hfgjgN','335jDuRHt','14329710nQBCnR','stop','415689usIJcj','phase','now','text','...','jobId','239768KNMyUi','floor','\x20[Job\x20ID:\x20','35214bDxrvS','isSpinning','extra','trim','1209400RrYeXO','2AjSWek','1197126sqgFpJ','cyan','stderr'];a142_0x4d2f=function(){return _0x2310d5;};return a142_0x4d2f();}function a142_0x2b21(_0x3d73ed,_0x3e99d5){_0x3d73ed=_0x3d73ed-0x1b7;const _0x4d2f9e=a142_0x4d2f();let _0x2b218a=_0x4d2f9e[_0x3d73ed];return _0x2b218a;}import a142_0x58beca from'ora';export function createCommandSpinner(_0x80b2d8,_0x5ce0f9={}){const _0x4b1890=a142_0x2b21,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5ce0f9;return a142_0x58beca({'text':_0x80b2d8,'color':_0x4b1890(0x1cb),'stream':process[_0x4b1890(0x1cc)],'isEnabled':forceEnabled||process[_0x4b1890(0x1cc)]['isTTY']&&!verbose});}export async function withSpinner(_0x427217,_0xf8d697,_0x269d05={}){const _0xaee31d=a142_0x2b21,_0x40528a=_0x269d05['clock']??(()=>Date[_0xaee31d(0x1bd)]()),_0x503001=createCommandSpinner(_0x427217,_0x269d05);_0x503001['start']();const _0x553b18=_0x40528a();try{const _0x4b1543=await _0xf8d697(),_0x24c8f6=_0x40528a()-_0x553b18;return _0x503001['stop'](),{'data':_0x4b1543,'elapsedMs':_0x24c8f6};}catch(_0x5c6c0f){_0x503001[_0xaee31d(0x1ba)]();throw _0x5c6c0f;}}export async function withProgressSpinner(_0x446e6a,_0x15ebe3,_0x3dfa60={}){const _0x526123=a142_0x2b21,_0x358c09=_0x3dfa60['clock']??(()=>Date['now']()),_0x190d31=_0x3dfa60[_0x526123(0x1ce)]??setInterval,_0x26ce7a=createCommandSpinner(_0x446e6a,_0x3dfa60);_0x26ce7a[_0x526123(0x1d0)]();const _0x4470d5=_0x358c09(),_0x19e5d8=_0x446e6a['replace'](_0x526123(0x1bf),'')[_0x526123(0x1c7)]()||_0x526123(0x1cd),_0x1693e3={};let _0x52ecd5=_0x446e6a;const _0x1fa12f=()=>{const _0x244914=_0x526123;if(!_0x26ce7a['isSpinning'])return;const _0x760287=_0x358c09()-_0x4470d5,_0x1e66df=formatElapsed(_0x760287),_0x3bcdf6=_0x1693e3[_0x244914(0x1bc)]?.[_0x244914(0x1c7)]()||_0x19e5d8,_0x22c194=_0x1693e3[_0x244914(0x1c0)]?_0x244914(0x1c3)+_0x1693e3[_0x244914(0x1c0)]+']':'',_0x20f072=_0x1693e3[_0x244914(0x1c6)]?'\x20'+_0x1693e3['extra']:'',_0x10b8f5=_0x3bcdf6+'\x20'+_0x1e66df+_0x20f072+_0x22c194;_0x10b8f5!==_0x52ecd5&&_0x10b8f5[_0x244914(0x1c7)]()&&(_0x26ce7a[_0x244914(0x1be)]=_0x10b8f5,_0x52ecd5=_0x10b8f5);},_0x5e80af=_0x190d31(()=>{_0x1fa12f();},0x3e8),_0x14e4a1={'setPhase':_0x590fb4=>{const _0x48267e=_0x526123;_0x1693e3[_0x48267e(0x1bc)]=_0x590fb4;const _0x5507c9=_0x590fb4?.[_0x48267e(0x1c7)]()||_0x19e5d8,_0xbaaaef=_0x358c09()-_0x4470d5,_0x7d531a=formatElapsed(_0xbaaaef),_0x41f030=_0x1693e3[_0x48267e(0x1c0)]?'\x20[Job\x20ID:\x20'+_0x1693e3['jobId']+']':'',_0x22b452=_0x1693e3['extra']?'\x20'+_0x1693e3['extra']:'',_0x4756e9=_0x5507c9+'\x20'+_0x7d531a+_0x22b452+_0x41f030;_0x26ce7a[_0x48267e(0x1c5)]&&_0x4756e9[_0x48267e(0x1c7)]()&&(_0x26ce7a[_0x48267e(0x1be)]=_0x4756e9,_0x52ecd5=_0x4756e9);},'setJobId':_0xaa2487=>{_0x1693e3['jobId']=_0xaa2487,_0x1fa12f();},'setExtra':_0x28a8a=>{const _0x17f3e9=_0x526123;_0x1693e3[_0x17f3e9(0x1c6)]=_0x28a8a,_0x1fa12f();}};_0x1fa12f();try{const _0x5af7d4=await _0x15ebe3(_0x14e4a1),_0x254e30=_0x358c09()-_0x4470d5;return{'data':_0x5af7d4,'elapsedMs':_0x254e30};}finally{clearInterval(_0x5e80af),_0x26ce7a[_0x526123(0x1ba)]();}}export function formatElapsed(_0x31cd88){const _0x30c689=a142_0x2b21,_0x28e293=Math[_0x30c689(0x1c2)](_0x31cd88/0x3e8);if(_0x28e293<0x3c)return(_0x31cd88/0x3e8)['toFixed'](0x1)+'s';const _0x255e75=Math[_0x30c689(0x1c2)](_0x28e293/0x3c),_0x79cf7a=_0x28e293%0x3c;if(_0x255e75<0x3c)return _0x255e75+'m\x20'+_0x79cf7a+'s';const _0x1bc671=Math[_0x30c689(0x1c2)](_0x255e75/0x3c),_0x2c7c0c=_0x255e75%0x3c;return _0x1bc671+'h\x20'+_0x2c7c0c+'m';}
@@ -1 +1 @@
1
- (function(_0x3f019f,_0x177299){const _0x18ecb5=a139_0x4960,_0x446c1a=_0x3f019f();while(!![]){try{const _0x3f4758=parseInt(_0x18ecb5(0x12f))/0x1*(parseInt(_0x18ecb5(0x13b))/0x2)+-parseInt(_0x18ecb5(0x140))/0x3*(parseInt(_0x18ecb5(0x13f))/0x4)+parseInt(_0x18ecb5(0x126))/0x5*(-parseInt(_0x18ecb5(0x130))/0x6)+-parseInt(_0x18ecb5(0x137))/0x7*(-parseInt(_0x18ecb5(0x129))/0x8)+-parseInt(_0x18ecb5(0x12a))/0x9+-parseInt(_0x18ecb5(0x12e))/0xa+parseInt(_0x18ecb5(0x13e))/0xb*(parseInt(_0x18ecb5(0x134))/0xc);if(_0x3f4758===_0x177299)break;else _0x446c1a['push'](_0x446c1a['shift']());}catch(_0x13f1f8){_0x446c1a['push'](_0x446c1a['shift']());}}}(a139_0x414f,0xb8615));function a139_0x4960(_0xddb8c1,_0xccb32){_0xddb8c1=_0xddb8c1-0x126;const _0x414fad=a139_0x414f();let _0x496017=_0x414fad[_0xddb8c1];return _0x496017;}export async function*parseSSEStream(_0x29240e,_0x8761dc){const _0x1f797f=a139_0x4960;if(!_0x29240e[_0x1f797f(0x13c)])throw new Error(_0x1f797f(0x138));const _0x5ba6e6=_0x29240e[_0x1f797f(0x13c)][_0x1f797f(0x141)](),_0x106aba=new TextDecoder();let _0x3d8440='',_0x23c4eb={};try{while(!![]){const {done:_0x3d629d,value:_0x394641}=await _0x5ba6e6[_0x1f797f(0x128)]();if(_0x3d629d){if(_0x23c4eb['data']){_0x8761dc?.[_0x1f797f(0x12b)]('[LLM\x20API\x20SSE]\x20'+_0x23c4eb[_0x1f797f(0x139)]);const _0x2d23b4=parseSSEData(_0x23c4eb[_0x1f797f(0x139)]);yield _0x2d23b4;}break;}_0x3d8440+=_0x106aba[_0x1f797f(0x127)](_0x394641,{'stream':!![]});const _0x3f3821=_0x3d8440[_0x1f797f(0x133)]('\x0a');_0x3d8440=_0x3f3821[_0x1f797f(0x131)]()||'';for(const _0x5aea5a of _0x3f3821){if(_0x5aea5a[_0x1f797f(0x135)]()===''){if(_0x23c4eb['data']){_0x8761dc?.[_0x1f797f(0x12b)](_0x1f797f(0x13d)+_0x23c4eb['data']);const _0x2d0732=parseSSEData(_0x23c4eb['data']);yield _0x2d0732,_0x23c4eb={};}continue;}if(_0x5aea5a[_0x1f797f(0x136)](':'))continue;const _0x2dc254=_0x5aea5a[_0x1f797f(0x142)](':');if(_0x2dc254===-0x1)continue;const _0x32a28f=_0x5aea5a[_0x1f797f(0x13a)](0x0,_0x2dc254);let _0x4d21b4=_0x5aea5a[_0x1f797f(0x13a)](_0x2dc254+0x1);_0x4d21b4[_0x1f797f(0x136)]('\x20')&&(_0x4d21b4=_0x4d21b4[_0x1f797f(0x13a)](0x1));switch(_0x32a28f){case _0x1f797f(0x12d):_0x23c4eb[_0x1f797f(0x12d)]=_0x4d21b4;break;case _0x1f797f(0x139):_0x23c4eb[_0x1f797f(0x139)]=_0x23c4eb[_0x1f797f(0x139)]?_0x23c4eb['data']+'\x0a'+_0x4d21b4:_0x4d21b4;break;case'id':_0x23c4eb['id']=_0x4d21b4;break;}}}}finally{_0x5ba6e6[_0x1f797f(0x132)]();}}function a139_0x414f(){const _0x5dd32e=['debug','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','event','13733640vqFWOf','1580bElefT','13788xNiZGA','pop','releaseLock','split','5748cbljmF','trim','startsWith','7VgVLJX','Response\x20body\x20is\x20null','data','slice','1206JaVWKj','body','[LLM\x20API\x20SSE]\x20','74811ILjtBS','4NxOuPb','1867362XYTjDL','getReader','indexOf','85ihDWRb','decode','read','37704VaphXT','12825243GIouUw'];a139_0x414f=function(){return _0x5dd32e;};return a139_0x414f();}function parseSSEData(_0x26cdde){const _0x81b260=a139_0x4960;try{return JSON['parse'](_0x26cdde);}catch(_0x2367ba){throw new Error(_0x81b260(0x12c)+_0x26cdde,{'cause':_0x2367ba});}}
1
+ (function(_0xe78e2f,_0x38b2a9){const _0x370a4b=a143_0x3900,_0xe38653=_0xe78e2f();while(!![]){try{const _0x469205=-parseInt(_0x370a4b(0x103))/0x1*(-parseInt(_0x370a4b(0x10d))/0x2)+parseInt(_0x370a4b(0xfc))/0x3+-parseInt(_0x370a4b(0x107))/0x4+-parseInt(_0x370a4b(0x108))/0x5*(-parseInt(_0x370a4b(0x104))/0x6)+parseInt(_0x370a4b(0xfe))/0x7+-parseInt(_0x370a4b(0xfb))/0x8+parseInt(_0x370a4b(0x106))/0x9*(-parseInt(_0x370a4b(0x10e))/0xa);if(_0x469205===_0x38b2a9)break;else _0xe38653['push'](_0xe38653['shift']());}catch(_0x3f9d14){_0xe38653['push'](_0xe38653['shift']());}}}(a143_0x1059,0x35e83));export async function*parseSSEStream(_0x5955c8,_0x4a5b3e){const _0x4b8327=a143_0x3900;if(!_0x5955c8[_0x4b8327(0x10a)])throw new Error(_0x4b8327(0xff));const _0x1c1408=_0x5955c8[_0x4b8327(0x10a)]['getReader'](),_0x5db050=new TextDecoder();let _0x17ed2c='',_0x47d028={};try{while(!![]){const {done:_0x16eef2,value:_0xa11398}=await _0x1c1408[_0x4b8327(0x10c)]();if(_0x16eef2){if(_0x47d028[_0x4b8327(0x102)]){_0x4a5b3e?.[_0x4b8327(0x109)](_0x4b8327(0xfa)+_0x47d028[_0x4b8327(0x102)]);const _0x388942=parseSSEData(_0x47d028[_0x4b8327(0x102)]);yield _0x388942;}break;}_0x17ed2c+=_0x5db050[_0x4b8327(0xf8)](_0xa11398,{'stream':!![]});const _0x567fa7=_0x17ed2c[_0x4b8327(0xf9)]('\x0a');_0x17ed2c=_0x567fa7[_0x4b8327(0x101)]()||'';for(const _0x4f7c19 of _0x567fa7){if(_0x4f7c19[_0x4b8327(0x10f)]()===''){if(_0x47d028[_0x4b8327(0x102)]){_0x4a5b3e?.[_0x4b8327(0x109)](_0x4b8327(0xfa)+_0x47d028[_0x4b8327(0x102)]);const _0x299fd4=parseSSEData(_0x47d028[_0x4b8327(0x102)]);yield _0x299fd4,_0x47d028={};}continue;}if(_0x4f7c19['startsWith'](':'))continue;const _0x3913cd=_0x4f7c19[_0x4b8327(0xfd)](':');if(_0x3913cd===-0x1)continue;const _0x55e7a4=_0x4f7c19[_0x4b8327(0x105)](0x0,_0x3913cd);let _0x2a43d6=_0x4f7c19['slice'](_0x3913cd+0x1);_0x2a43d6[_0x4b8327(0x100)]('\x20')&&(_0x2a43d6=_0x2a43d6[_0x4b8327(0x105)](0x1));switch(_0x55e7a4){case _0x4b8327(0x10b):_0x47d028['event']=_0x2a43d6;break;case _0x4b8327(0x102):_0x47d028[_0x4b8327(0x102)]=_0x47d028[_0x4b8327(0x102)]?_0x47d028[_0x4b8327(0x102)]+'\x0a'+_0x2a43d6:_0x2a43d6;break;case'id':_0x47d028['id']=_0x2a43d6;break;}}}}finally{_0x1c1408['releaseLock']();}}function a143_0x1059(){const _0x5dde72=['[LLM\x20API\x20SSE]\x20','948072tIQlKb','316380fyQaEN','indexOf','2585688iFcBlW','Response\x20body\x20is\x20null','startsWith','pop','data','156059BJgnlP','499308eELgja','slice','30879sitBvr','1156136WSEAXo','5gFIkUK','debug','body','event','read','2FrLIsW','250VKHLrS','trim','decode','split'];a143_0x1059=function(){return _0x5dde72;};return a143_0x1059();}function a143_0x3900(_0x3b4659,_0x54652e){_0x3b4659=_0x3b4659-0xf8;const _0x1059e5=a143_0x1059();let _0x39004e=_0x1059e5[_0x3b4659];return _0x39004e;}function parseSSEData(_0x448b94){try{return JSON['parse'](_0x448b94);}catch(_0x5ef26b){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x448b94,{'cause':_0x5ef26b});}}
@@ -1 +1 @@
1
- (function(_0x4f15c6,_0x1101dc){const _0x1877a8=a140_0x1f76,_0x557ea9=_0x4f15c6();while(!![]){try{const _0x5255e7=-parseInt(_0x1877a8(0xd4))/0x1+-parseInt(_0x1877a8(0xe7))/0x2*(parseInt(_0x1877a8(0xe3))/0x3)+-parseInt(_0x1877a8(0xea))/0x4+parseInt(_0x1877a8(0xec))/0x5*(-parseInt(_0x1877a8(0xdb))/0x6)+parseInt(_0x1877a8(0xd5))/0x7+parseInt(_0x1877a8(0xd8))/0x8*(-parseInt(_0x1877a8(0xdf))/0x9)+parseInt(_0x1877a8(0xd9))/0xa*(parseInt(_0x1877a8(0xd3))/0xb);if(_0x5255e7===_0x1101dc)break;else _0x557ea9['push'](_0x557ea9['shift']());}catch(_0x10a9f9){_0x557ea9['push'](_0x557ea9['shift']());}}}(a140_0xe8b9,0x62b77));import a140_0xa8be67 from'string-width';export function stringWidth(_0x96e002){return a140_0xa8be67(_0x96e002);}export function padEnd(_0xab58ce,_0x23a000){const _0x39cff0=a140_0x1f76,_0x5c035b=stringWidth(_0xab58ce);if(_0x5c035b>=_0x23a000)return _0xab58ce;return _0xab58ce+'\x20'[_0x39cff0(0xeb)](_0x23a000-_0x5c035b);}export function padStart(_0xae184a,_0x237511){const _0x34a43d=a140_0x1f76,_0x205fe9=stringWidth(_0xae184a);if(_0x205fe9>=_0x237511)return _0xae184a;return'\x20'[_0x34a43d(0xeb)](_0x237511-_0x205fe9)+_0xae184a;}function a140_0xe8b9(){const _0x59cee2=['735vwyIYV','11bDofqr','695696wwNhmv','5538344hacfQJ','toString','unknown','3741896UriZrO','18548030cBnsGe','length','2778ZZtIVb','replace','trim','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','9xhsCRV','env','Cannot\x20escape\x20empty\x20string\x20literal','toLowerCase','2337468hxOYJk','USER','padStart','floor','2TVzjvd','substring','slice','924008vviyQs','repeat'];a140_0xe8b9=function(){return _0x59cee2;};return a140_0xe8b9();}export function centerAlign(_0x47073f,_0x157118){const _0x5c42f9=a140_0x1f76,_0x2b5921=stringWidth(_0x47073f);if(_0x2b5921>_0x157118){if(_0x157118<=0x1)return'…'[_0x5c42f9(0xe8)](0x0,_0x157118);let _0xcb2485=_0x47073f;while(stringWidth(_0xcb2485+'…')>_0x157118){_0xcb2485=_0xcb2485[_0x5c42f9(0xe9)](0x0,-0x1);}return _0xcb2485+'…';}if(_0x2b5921===_0x157118)return _0x47073f;const _0x296138=_0x157118-_0x2b5921,_0x2bbf36=Math[_0x5c42f9(0xe6)](_0x296138/0x2),_0x2d0866=_0x296138-_0x2bbf36;return'\x20'[_0x5c42f9(0xeb)](_0x2bbf36)+_0x47073f+'\x20'[_0x5c42f9(0xeb)](_0x2d0866);}export function escapeStringLiteral(_0x3800a2){const _0x2f176f=a140_0x1f76;if(!_0x3800a2||_0x3800a2[_0x2f176f(0xdd)]()[_0x2f176f(0xda)]===0x0)throw new Error(_0x2f176f(0xe1));const _0x5bb68e=_0x3800a2[_0x2f176f(0xdc)](/'/g,'\x27\x27');return'\x27'+_0x5bb68e+'\x27';}export function globToLike(_0x24096e){const _0x107efb=a140_0x1f76;let _0x5118b2=_0x24096e[_0x107efb(0xdc)](/\\/g,'\x5c\x5c')[_0x107efb(0xdc)](/%/g,'\x5c%')[_0x107efb(0xdc)](/_/g,'\x5c_');return _0x5118b2=_0x5118b2['replace'](/\*/g,'%')[_0x107efb(0xdc)](/\?/g,'_'),_0x5118b2;}export function buildLikePattern(_0x1ff095){const _0xbd6f32=a140_0x1f76;if(!_0x1ff095||_0x1ff095[_0xbd6f32(0xdd)]()[_0xbd6f32(0xda)]===0x0)throw new Error(_0xbd6f32(0xde));const _0x792aff=globToLike(_0x1ff095),_0x93d87e=_0x792aff[_0xbd6f32(0xdc)](/'/g,'\x27\x27');return'\x27'+_0x93d87e+'\x27';}export function matchGlobPattern(_0x33ea01,_0x1c61f3){const _0x4efb88=a140_0x1f76,_0x4bea09=_0x1c61f3[_0x4efb88(0xdc)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x4efb88(0xdc)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x58de3d=new RegExp('^'+_0x4bea09+'$');return _0x58de3d['test'](_0x33ea01);}function a140_0x1f76(_0x2d7998,_0x2b86eb){_0x2d7998=_0x2d7998-0xd3;const _0xe8b9e3=a140_0xe8b9();let _0x1f76b2=_0xe8b9e3[_0x2d7998];return _0x1f76b2;}export function getSanitizedUsername(){const _0x11904b=a140_0x1f76,_0xdf2498=process['env'][_0x11904b(0xe4)]||process[_0x11904b(0xe0)]['USERNAME']||_0x11904b(0xd7);return _0xdf2498[_0x11904b(0xdc)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x4337c5=a140_0x1f76,_0x190ef7=Math[_0x4337c5(0xe6)](Math['random']()*0xfffff);return _0x190ef7[_0x4337c5(0xd6)](0x10)[_0x4337c5(0xe5)](0x5,'0');}export function sanitizeFileName(_0x252c45){const _0x2fb5c8=a140_0x1f76;return _0x252c45[_0x2fb5c8(0xe2)]()[_0x2fb5c8(0xdc)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x2fb5c8(0xdc)](/-+/g,'-')[_0x2fb5c8(0xdc)](/^-|-$/g,'');}
1
+ (function(_0x47e5d5,_0x4102d3){const _0x548523=a144_0x5028,_0x4b6e89=_0x47e5d5();while(!![]){try{const _0x2e1274=parseInt(_0x548523(0x167))/0x1+parseInt(_0x548523(0x162))/0x2+parseInt(_0x548523(0x151))/0x3+-parseInt(_0x548523(0x15d))/0x4*(parseInt(_0x548523(0x159))/0x5)+parseInt(_0x548523(0x157))/0x6+-parseInt(_0x548523(0x160))/0x7*(parseInt(_0x548523(0x154))/0x8)+parseInt(_0x548523(0x15b))/0x9;if(_0x2e1274===_0x4102d3)break;else _0x4b6e89['push'](_0x4b6e89['shift']());}catch(_0x4f7c96){_0x4b6e89['push'](_0x4b6e89['shift']());}}}(a144_0xa1c3,0x82234));import a144_0x326db7 from'string-width';export function stringWidth(_0x3d0b23){return a144_0x326db7(_0x3d0b23);}export function padEnd(_0xee6b7c,_0x4f66f0){const _0x2a4581=stringWidth(_0xee6b7c);if(_0x2a4581>=_0x4f66f0)return _0xee6b7c;return _0xee6b7c+'\x20'['repeat'](_0x4f66f0-_0x2a4581);}export function padStart(_0x3b2e87,_0x32c67a){const _0xd19448=a144_0x5028,_0x447112=stringWidth(_0x3b2e87);if(_0x447112>=_0x32c67a)return _0x3b2e87;return'\x20'[_0xd19448(0x15a)](_0x32c67a-_0x447112)+_0x3b2e87;}export function centerAlign(_0x31a1ca,_0x5c3a36){const _0x2b9c2=a144_0x5028,_0x53b45d=stringWidth(_0x31a1ca);if(_0x53b45d>_0x5c3a36){if(_0x5c3a36<=0x1)return'…'[_0x2b9c2(0x15c)](0x0,_0x5c3a36);let _0x4b3c60=_0x31a1ca;while(stringWidth(_0x4b3c60+'…')>_0x5c3a36){_0x4b3c60=_0x4b3c60[_0x2b9c2(0x168)](0x0,-0x1);}return _0x4b3c60+'…';}if(_0x53b45d===_0x5c3a36)return _0x31a1ca;const _0x55a279=_0x5c3a36-_0x53b45d,_0x4f3d64=Math[_0x2b9c2(0x158)](_0x55a279/0x2),_0x5ea562=_0x55a279-_0x4f3d64;return'\x20'['repeat'](_0x4f3d64)+_0x31a1ca+'\x20'['repeat'](_0x5ea562);}export function escapeStringLiteral(_0x3e1058){const _0x273f0a=a144_0x5028;if(!_0x3e1058||_0x3e1058[_0x273f0a(0x156)]()[_0x273f0a(0x163)]===0x0)throw new Error(_0x273f0a(0x15e));const _0x3575d0=_0x3e1058['replace'](/'/g,'\x27\x27');return'\x27'+_0x3575d0+'\x27';}export function globToLike(_0x3b96b0){const _0xf4c4c0=a144_0x5028;let _0xb4bf96=_0x3b96b0['replace'](/\\/g,'\x5c\x5c')[_0xf4c4c0(0x161)](/%/g,'\x5c%')[_0xf4c4c0(0x161)](/_/g,'\x5c_');return _0xb4bf96=_0xb4bf96[_0xf4c4c0(0x161)](/\*/g,'%')[_0xf4c4c0(0x161)](/\?/g,'_'),_0xb4bf96;}export function buildLikePattern(_0x341d5a){const _0x495ac9=a144_0x5028;if(!_0x341d5a||_0x341d5a[_0x495ac9(0x156)]()['length']===0x0)throw new Error(_0x495ac9(0x153));const _0x48d2ba=globToLike(_0x341d5a),_0x43a33d=_0x48d2ba['replace'](/'/g,'\x27\x27');return'\x27'+_0x43a33d+'\x27';}export function matchGlobPattern(_0x3eb0c1,_0x4459aa){const _0x5f58e7=a144_0x5028,_0x3341a9=_0x4459aa[_0x5f58e7(0x161)](/[.+^${}()|[\]\\]/g,_0x5f58e7(0x164))[_0x5f58e7(0x161)](/\*/g,'.*')[_0x5f58e7(0x161)](/\?/g,'.'),_0x56c17a=new RegExp('^'+_0x3341a9+'$');return _0x56c17a[_0x5f58e7(0x15f)](_0x3eb0c1);}function a144_0x5028(_0x345e37,_0x514528){_0x345e37=_0x345e37-0x14f;const _0xa1c3eb=a144_0xa1c3();let _0x5028cd=_0xa1c3eb[_0x345e37];return _0x5028cd;}export function getSanitizedUsername(){const _0x20039e=a144_0x5028,_0x5d4258=process['env'][_0x20039e(0x150)]||process['env'][_0x20039e(0x165)]||_0x20039e(0x152);return _0x5d4258[_0x20039e(0x161)](/[^a-zA-Z0-9]/g,'')[_0x20039e(0x155)]();}export function generateRandomHex(){const _0x356f97=a144_0x5028,_0x4a9804=Math[_0x356f97(0x158)](Math[_0x356f97(0x14f)]()*0xfffff);return _0x4a9804['toString'](0x10)[_0x356f97(0x166)](0x5,'0');}export function sanitizeFileName(_0x1ff9fd){const _0x4c5314=a144_0x5028;return _0x1ff9fd['toLowerCase']()[_0x4c5314(0x161)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x4c5314(0x161)](/^-|-$/g,'');}function a144_0xa1c3(){const _0x383c18=['6707475cTVZNz','substring','31908DOyiYr','Cannot\x20escape\x20empty\x20string\x20literal','test','2303966egDFEg','replace','951240eeeJlM','length','\x5c$&','USERNAME','padStart','61383yiYFTU','slice','random','USER','2317608WFzTfC','unknown','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','16WhLYEx','toLowerCase','trim','610338mHHfHv','floor','605lhOCbJ','repeat'];a144_0xa1c3=function(){return _0x383c18;};return a144_0xa1c3();}
@@ -1 +1 @@
1
- (function(_0x1c5db1,_0x385de6){const _0x40f7e3=a141_0x1ac3,_0x4393cf=_0x1c5db1();while(!![]){try{const _0x36f6bc=-parseInt(_0x40f7e3(0x1e7))/0x1+parseInt(_0x40f7e3(0x1ec))/0x2+parseInt(_0x40f7e3(0x1e0))/0x3+-parseInt(_0x40f7e3(0x1e4))/0x4+parseInt(_0x40f7e3(0x1ea))/0x5+parseInt(_0x40f7e3(0x1e3))/0x6+-parseInt(_0x40f7e3(0x1f1))/0x7;if(_0x36f6bc===_0x385de6)break;else _0x4393cf['push'](_0x4393cf['shift']());}catch(_0x25cf43){_0x4393cf['push'](_0x4393cf['shift']());}}}(a141_0x4179,0xe86b6));function hasWildcard(_0x26f2c){const _0x2fb975=a141_0x1ac3;return _0x26f2c[_0x2fb975(0x1eb)]('*')||_0x26f2c[_0x2fb975(0x1eb)]('?');}export function parseTableReference(_0x3ae680){const _0x4ce39d=a141_0x1ac3;if(!_0x3ae680||_0x3ae680[_0x4ce39d(0x1f4)]()[_0x4ce39d(0x1e2)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x1cda35=_0x3ae680[_0x4ce39d(0x1f4)](),_0x34178b={'original':_0x1cda35},_0x2e1211=_0x1cda35['split']('.');if(_0x2e1211[_0x4ce39d(0x1e2)]===0x1){const _0x349914=_0x2e1211[0x0];if(!_0x349914)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x34178b[_0x4ce39d(0x1e5)]=_0x349914;}else{if(_0x2e1211[_0x4ce39d(0x1e2)]===0x2){const [_0x51e6af,_0x3e247f]=_0x2e1211;if(!_0x51e6af)throw new Error(_0x4ce39d(0x1f0));if(!_0x3e247f)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x34178b[_0x4ce39d(0x1f3)]=_0x51e6af,_0x34178b[_0x4ce39d(0x1e5)]=_0x3e247f;}else{if(_0x2e1211['length']===0x3){const [_0x361a86,_0x158d61,_0x49b3a4]=_0x2e1211;if(!_0x361a86||!_0x158d61||!_0x49b3a4)throw new Error(_0x4ce39d(0x1e6));_0x34178b['catalog']=_0x361a86,_0x34178b[_0x4ce39d(0x1f3)]=_0x158d61,_0x34178b[_0x4ce39d(0x1e5)]=_0x49b3a4;}else throw new Error(_0x4ce39d(0x1ef));}}return _0x34178b;}export function formatTableReference(_0x2cf01f){const _0x117e72=a141_0x1ac3,_0x140b4=[];return _0x2cf01f[_0x117e72(0x1ee)]&&_0x140b4['push'](_0x2cf01f['catalog']),_0x2cf01f[_0x117e72(0x1f3)]&&_0x140b4[_0x117e72(0x1e1)](_0x2cf01f[_0x117e72(0x1f3)]),_0x2cf01f[_0x117e72(0x1e5)]&&_0x140b4[_0x117e72(0x1e1)](_0x2cf01f[_0x117e72(0x1e5)]),_0x140b4[_0x117e72(0x1e9)]('.');}function a141_0x4179(){const _0x57c481=['2057781UEGLkU','push','length','7949526tLBdKS','1210852gkfUvN','table','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1019230mJMkrT','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','join','6011700VNtlxd','includes','2399954vbPNWk','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','catalog','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','14974624UflOHR','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','trim'];a141_0x4179=function(){return _0x57c481;};return a141_0x4179();}export function validateTableListReference(_0x1961a2){return undefined;}function a141_0x1ac3(_0x26180a,_0x5a762a){_0x26180a=_0x26180a-0x1e0;const _0x41794f=a141_0x4179();let _0x1ac309=_0x41794f[_0x26180a];return _0x1ac309;}export function validateTableDescribeReference(_0x452794){const _0x3c3aaf=a141_0x1ac3;if(!_0x452794[_0x3c3aaf(0x1e5)])return _0x3c3aaf(0x1e8);if(_0x452794[_0x3c3aaf(0x1f3)]&&hasWildcard(_0x452794[_0x3c3aaf(0x1f3)]))return _0x3c3aaf(0x1f2);if(hasWildcard(_0x452794[_0x3c3aaf(0x1e5)]))return _0x3c3aaf(0x1ed);return undefined;}
1
+ (function(_0xb02246,_0x93737){const _0x31e87b=a145_0x7c91,_0x1e279d=_0xb02246();while(!![]){try{const _0x4e0c94=parseInt(_0x31e87b(0x1d7))/0x1*(-parseInt(_0x31e87b(0x1d8))/0x2)+-parseInt(_0x31e87b(0x1dc))/0x3+-parseInt(_0x31e87b(0x1eb))/0x4+parseInt(_0x31e87b(0x1e8))/0x5+parseInt(_0x31e87b(0x1ea))/0x6+-parseInt(_0x31e87b(0x1e2))/0x7+parseInt(_0x31e87b(0x1de))/0x8*(parseInt(_0x31e87b(0x1db))/0x9);if(_0x4e0c94===_0x93737)break;else _0x1e279d['push'](_0x1e279d['shift']());}catch(_0x4be3a9){_0x1e279d['push'](_0x1e279d['shift']());}}}(a145_0x4d03,0xccd8b));function hasWildcard(_0x14ba34){const _0x5f370f=a145_0x7c91;return _0x14ba34[_0x5f370f(0x1e0)]('*')||_0x14ba34['includes']('?');}function a145_0x7c91(_0x598a62,_0x2773dc){_0x598a62=_0x598a62-0x1d4;const _0x4d0354=a145_0x4d03();let _0x7c9158=_0x4d0354[_0x598a62];return _0x7c9158;}function a145_0x4d03(){const _0x499f35=['16248pRTFTA','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','8167593QwwUTg','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','database','catalog','table','join','7992485ewzZYL','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','212406zIeuog','1448080kZqVlV','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','7LqeSXD','161648eFcngH','Pattern\x20cannot\x20be\x20just\x20a\x20dot','length','8028BNXdrv','1535736ohYLWN','push'];a145_0x4d03=function(){return _0x499f35;};return a145_0x4d03();}export function parseTableReference(_0x5ebc63){const _0x2d7979=a145_0x7c91;if(!_0x5ebc63||_0x5ebc63['trim']()['length']===0x0)throw new Error(_0x2d7979(0x1e9));const _0x3a7050=_0x5ebc63['trim'](),_0x22853c={'original':_0x3a7050},_0x248be8=_0x3a7050['split']('.');if(_0x248be8[_0x2d7979(0x1da)]===0x1){const _0x5e9391=_0x248be8[0x0];if(!_0x5e9391)throw new Error(_0x2d7979(0x1d9));_0x22853c['table']=_0x5e9391;}else{if(_0x248be8[_0x2d7979(0x1da)]===0x2){const [_0x3e46d6,_0x114f94]=_0x248be8;if(!_0x3e46d6)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x114f94)throw new Error(_0x2d7979(0x1d5));_0x22853c[_0x2d7979(0x1e4)]=_0x3e46d6,_0x22853c[_0x2d7979(0x1e6)]=_0x114f94;}else{if(_0x248be8[_0x2d7979(0x1da)]===0x3){const [_0x3b6f67,_0x507931,_0x301c5d]=_0x248be8;if(!_0x3b6f67||!_0x507931||!_0x301c5d)throw new Error(_0x2d7979(0x1e3));_0x22853c[_0x2d7979(0x1e5)]=_0x3b6f67,_0x22853c['database']=_0x507931,_0x22853c[_0x2d7979(0x1e6)]=_0x301c5d;}else throw new Error(_0x2d7979(0x1d6));}}return _0x22853c;}export function formatTableReference(_0x2c54ef){const _0x1cd870=a145_0x7c91,_0x47d6e1=[];return _0x2c54ef['catalog']&&_0x47d6e1['push'](_0x2c54ef[_0x1cd870(0x1e5)]),_0x2c54ef['database']&&_0x47d6e1[_0x1cd870(0x1dd)](_0x2c54ef['database']),_0x2c54ef[_0x1cd870(0x1e6)]&&_0x47d6e1[_0x1cd870(0x1dd)](_0x2c54ef['table']),_0x47d6e1[_0x1cd870(0x1e7)]('.');}export function validateTableListReference(_0x31a9c8){return undefined;}export function validateTableDescribeReference(_0x54cc74){const _0x8c51bf=a145_0x7c91;if(!_0x54cc74[_0x8c51bf(0x1e6)])return _0x8c51bf(0x1df);if(_0x54cc74[_0x8c51bf(0x1e4)]&&hasWildcard(_0x54cc74[_0x8c51bf(0x1e4)]))return _0x8c51bf(0x1d4);if(hasWildcard(_0x54cc74[_0x8c51bf(0x1e6)]))return _0x8c51bf(0x1e1);return undefined;}
@@ -1 +1 @@
1
- const a142_0x3cf6d5=a142_0x5efc;(function(_0x5bd6ac,_0x4c8d34){const _0x3ab43a=a142_0x5efc,_0x956de7=_0x5bd6ac();while(!![]){try{const _0x506448=-parseInt(_0x3ab43a(0xec))/0x1+parseInt(_0x3ab43a(0xea))/0x2+parseInt(_0x3ab43a(0xfc))/0x3+parseInt(_0x3ab43a(0xfd))/0x4*(parseInt(_0x3ab43a(0xf9))/0x5)+-parseInt(_0x3ab43a(0xf4))/0x6*(parseInt(_0x3ab43a(0x107))/0x7)+-parseInt(_0x3ab43a(0xf6))/0x8*(-parseInt(_0x3ab43a(0xd7))/0x9)+-parseInt(_0x3ab43a(0xd3))/0xa*(-parseInt(_0x3ab43a(0xe5))/0xb);if(_0x506448===_0x4c8d34)break;else _0x956de7['push'](_0x956de7['shift']());}catch(_0x4f09a6){_0x956de7['push'](_0x956de7['shift']());}}}(a142_0xe199,0xe1974));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a142_0xe199(){const _0x582787=['DEBUG','tdx.log','WARN','7iQbERp','write','cause','.log','.cache','rotateOldLogs','stack','getDate','logs','warn','10uAPBPh','close','toString','getLogPath','1259001zUNTnH','split','debug','getSeconds','gray','info','padStart','abs','map','end','Proxy\x20session\x20ended','Warning:\x20Error\x20writing\x20to\x20tdx.log:','getHours','toISOString','2215917xOguYX','INFO','stringify','ERROR','init','3179258HqDZCR','logDir','931694NDGHqO','error','name','.gz','floor','message','mtime','getMinutes','9978354tiVxmz','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','32cSqevX','tdx-','log','877005IYnrbV','logStream','string','1399611TvCYpf','16BZWmXx','getFullYear','logLevel','join','red','TRACE','fileOnly'];a142_0xe199=function(){return _0x582787;};return a142_0xe199();}import a142_0x77de2b from'chalk';function safeStringify(_0x17b405){const _0x5a68e0=a142_0x5efc;if(typeof _0x17b405===_0x5a68e0(0xfb))return _0x17b405;if(_0x17b405 instanceof Error)return _0x17b405[_0x5a68e0(0xcf)]||_0x17b405[_0x5a68e0(0xee)]+':\x20'+_0x17b405['message'];try{return JSON[_0x5a68e0(0xe7)](_0x17b405,(_0x1099ce,_0x3ecc4e)=>{const _0x54251e=_0x5a68e0;if(_0x3ecc4e instanceof Error)return{'name':_0x3ecc4e[_0x54251e(0xee)],'message':_0x3ecc4e[_0x54251e(0xf1)],'stack':_0x3ecc4e[_0x54251e(0xcf)],'cause':_0x3ecc4e[_0x54251e(0x109)]};return _0x3ecc4e;});}catch{return String(_0x17b405);}}function getTimezoneOffset(){const _0x3ba080=a142_0x5efc,_0x30443c=-new Date()['getTimezoneOffset'](),_0x4ef6eb=Math[_0x3ba080(0xf0)](Math['abs'](_0x30443c)/0x3c),_0x353d39=Math[_0x3ba080(0xde)](_0x30443c)%0x3c,_0x529000=_0x30443c>=0x0?'+':'-';return''+_0x529000+_0x4ef6eb['toString']()[_0x3ba080(0xdd)](0x2,'0')+_0x353d39['toString']()[_0x3ba080(0xdd)](0x2,'0');}function a142_0x5efc(_0x134096,_0x3b3fc7){_0x134096=_0x134096-0xcd;const _0xe19906=a142_0xe199();let _0x5efcbf=_0xe19906[_0x134096];return _0x5efcbf;}function formatTimestamp(){const _0x33e1f6=a142_0x5efc,_0x504610=new Date(),_0x333bab=_0x504610[_0x33e1f6(0xfe)](),_0xc30b91=(_0x504610['getMonth']()+0x1)[_0x33e1f6(0xd5)]()['padStart'](0x2,'0'),_0x310372=_0x504610[_0x33e1f6(0xd0)]()[_0x33e1f6(0xd5)]()[_0x33e1f6(0xdd)](0x2,'0'),_0x1aedc8=_0x504610[_0x33e1f6(0xe3)]()['toString']()[_0x33e1f6(0xdd)](0x2,'0'),_0x13aeb5=_0x504610[_0x33e1f6(0xf3)]()[_0x33e1f6(0xd5)]()[_0x33e1f6(0xdd)](0x2,'0'),_0x3229d9=_0x504610[_0x33e1f6(0xda)]()[_0x33e1f6(0xd5)]()[_0x33e1f6(0xdd)](0x2,'0'),_0x32f827=_0x504610['getMilliseconds']()[_0x33e1f6(0xd5)]()[_0x33e1f6(0xdd)](0x3,'0'),_0xb5b2cd=getTimezoneOffset();return _0x333bab+'-'+_0xc30b91+'-'+_0x310372+'\x20'+_0x1aedc8+':'+_0x13aeb5+':'+_0x3229d9+'.'+_0x32f827+_0xb5b2cd;}function formatColoredLogEntry(_0x2aa6c1,_0xbb0199){const _0x2cea6a=a142_0x5efc,_0x572d38=formatTimestamp(),_0x5054e2=_0xbb0199[_0x2cea6a(0xdf)](safeStringify)[_0x2cea6a(0x100)]('\x20'),_0x5e73f3=a142_0x77de2b[_0x2cea6a(0xdb)](_0x572d38);let _0x484ca1;switch(_0x2aa6c1){case _0x2cea6a(0xdc):_0x484ca1=a142_0x77de2b['cyan']('['+_0x2aa6c1+']\x20');break;case _0x2cea6a(0xd2):_0x484ca1=a142_0x77de2b['yellow']('['+_0x2aa6c1+']\x20');break;case'error':_0x484ca1=a142_0x77de2b[_0x2cea6a(0x101)]('['+_0x2aa6c1+']');break;case _0x2cea6a(0xd9):_0x484ca1=a142_0x77de2b[_0x2cea6a(0xdb)]('['+_0x2aa6c1+']');break;default:_0x484ca1='['+_0x2aa6c1+']';}return _0x5e73f3+'\x20'+_0x484ca1+'\x20'+_0x5054e2;}export var LogLevel;(function(_0x7f98de){const _0xc54f10=a142_0x5efc;_0x7f98de[_0x7f98de[_0xc54f10(0x102)]=-0x2]=_0xc54f10(0x102),_0x7f98de[_0x7f98de[_0xc54f10(0x104)]=-0x1]='DEBUG',_0x7f98de[_0x7f98de[_0xc54f10(0xe6)]=0x0]=_0xc54f10(0xe6),_0x7f98de[_0x7f98de[_0xc54f10(0x106)]=0x1]='WARN',_0x7f98de[_0x7f98de[_0xc54f10(0xe8)]=0x2]=_0xc54f10(0xe8);}(LogLevel||(LogLevel={})));export class TDXLogger{[a142_0x3cf6d5(0xfa)];[a142_0x3cf6d5(0xeb)];[a142_0x3cf6d5(0xff)];[a142_0x3cf6d5(0x103)];constructor(_0x5eadc5=LogLevel['INFO'],_0x1b4bdb=![]){const _0x698bc2=a142_0x3cf6d5;this[_0x698bc2(0xeb)]=join(homedir(),_0x698bc2(0xcd),'tdx',_0x698bc2(0xd1)),this['logLevel']=_0x5eadc5,this[_0x698bc2(0x103)]=_0x1b4bdb;}async[a142_0x3cf6d5(0xe9)](){const _0x4d9f34=a142_0x3cf6d5;try{await mkdir(this[_0x4d9f34(0xeb)],{'recursive':!![]}),await this[_0x4d9f34(0xce)]();const _0x56fc38=join(this[_0x4d9f34(0xeb)],'tdx.log');this['logStream']=createWriteStream(_0x56fc38,{'flags':'a'}),this[_0x4d9f34(0xfa)]['on']('error',_0x49b560=>{const _0x2f8a23=_0x4d9f34;console[_0x2f8a23(0xed)](_0x2f8a23(0xe2),_0x49b560[_0x2f8a23(0xf1)]);});}catch(_0x39608f){console['error'](_0x4d9f34(0xf5),_0x39608f);}}async[a142_0x3cf6d5(0xce)](){const _0x3c5527=a142_0x3cf6d5;try{const _0x2d942c=await readdir(this[_0x3c5527(0xeb)]),_0x4a8380=new Date()['toISOString']()[_0x3c5527(0xd8)]('T')[0x0];if(_0x2d942c['includes']('tdx.log')){const _0x350d5f=join(this[_0x3c5527(0xeb)],_0x3c5527(0x105)),_0x241fed=await stat(_0x350d5f),_0x2ff529=new Date(_0x241fed[_0x3c5527(0xf2)])[_0x3c5527(0xe4)]()[_0x3c5527(0xd8)]('T')[0x0];if(_0x2ff529<_0x4a8380){const _0x4696cd=join(this[_0x3c5527(0xeb)],_0x3c5527(0xf7)+_0x2ff529+_0x3c5527(0x10a));await rename(_0x350d5f,_0x4696cd);}}const _0x63b400=await readdir(this[_0x3c5527(0xeb)]),_0x16812e=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x776a2e=_0x63b400['filter'](_0x278be0=>_0x16812e['test'](_0x278be0));for(const _0x524c8e of _0x776a2e){const _0x2749ca=join(this['logDir'],_0x524c8e),_0x2c3ccc=join(this[_0x3c5527(0xeb)],_0x524c8e+_0x3c5527(0xef));try{await pipeline(createReadStream(_0x2749ca),createGzip(),createWriteStream(_0x2c3ccc)),await unlink(_0x2749ca);}catch(_0x417446){console[_0x3c5527(0xed)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x524c8e+':',_0x417446);}}}catch{}}['debug'](..._0x23ffcf){const _0x31dc43=a142_0x3cf6d5;if(this[_0x31dc43(0xff)]>LogLevel['DEBUG'])return;const _0x440cc4=formatColoredLogEntry('debug',_0x23ffcf);this['logStream']?.['write'](_0x440cc4+'\x0a');}['trace'](..._0x4152ed){const _0x20dc8c=a142_0x3cf6d5;if(this[_0x20dc8c(0xff)]>LogLevel[_0x20dc8c(0x102)])return;const _0x25095f=formatColoredLogEntry('trace',_0x4152ed);this['logStream']?.[_0x20dc8c(0x108)](_0x25095f+'\x0a');}[a142_0x3cf6d5(0xdc)](..._0x55ca9d){const _0x5efba1=a142_0x3cf6d5;if(this[_0x5efba1(0xff)]>LogLevel[_0x5efba1(0xe6)])return;const _0x22de02=formatColoredLogEntry(_0x5efba1(0xdc),_0x55ca9d);!this[_0x5efba1(0x103)]&&console[_0x5efba1(0xf8)](_0x22de02),this['logStream']?.['write'](_0x22de02+'\x0a');}[a142_0x3cf6d5(0xd2)](..._0x4142fb){const _0x372d6e=a142_0x3cf6d5;if(this[_0x372d6e(0xff)]>LogLevel[_0x372d6e(0x106)])return;const _0x328e9f=formatColoredLogEntry(_0x372d6e(0xd2),_0x4142fb);!this['fileOnly']&&console[_0x372d6e(0xed)](_0x328e9f),this[_0x372d6e(0xfa)]?.[_0x372d6e(0x108)](_0x328e9f+'\x0a');}[a142_0x3cf6d5(0xed)](..._0x2b8cd9){const _0x22d7bc=a142_0x3cf6d5,_0x11a80e=formatColoredLogEntry(_0x22d7bc(0xed),_0x2b8cd9);!this[_0x22d7bc(0x103)]&&console[_0x22d7bc(0xed)](_0x11a80e),this[_0x22d7bc(0xfa)]?.['write'](_0x11a80e+'\x0a');}async[a142_0x3cf6d5(0xd4)](){const _0x4ffb80=a142_0x3cf6d5;return this[_0x4ffb80(0xdc)](_0x4ffb80(0xe1)),new Promise(_0x431954=>{const _0x15f741=_0x4ffb80;this[_0x15f741(0xfa)]?this[_0x15f741(0xfa)][_0x15f741(0xe0)](()=>{_0x431954();}):_0x431954();});}[a142_0x3cf6d5(0xd6)](){const _0x2b8635=a142_0x3cf6d5;return join(this[_0x2b8635(0xeb)],'tdx.log');}}
1
+ const a146_0x132119=a146_0x4599;(function(_0xa55aff,_0x1a4070){const _0x52de1f=a146_0x4599,_0x207787=_0xa55aff();while(!![]){try{const _0x5966fb=parseInt(_0x52de1f(0x120))/0x1+parseInt(_0x52de1f(0x122))/0x2*(parseInt(_0x52de1f(0x132))/0x3)+parseInt(_0x52de1f(0x111))/0x4*(parseInt(_0x52de1f(0x12d))/0x5)+-parseInt(_0x52de1f(0x129))/0x6+-parseInt(_0x52de1f(0x125))/0x7+-parseInt(_0x52de1f(0x12b))/0x8*(-parseInt(_0x52de1f(0x130))/0x9)+-parseInt(_0x52de1f(0xf8))/0xa;if(_0x5966fb===_0x1a4070)break;else _0x207787['push'](_0x207787['shift']());}catch(_0x15077a){_0x207787['push'](_0x207787['shift']());}}}(a146_0x3071,0x98346));import{createWriteStream,createReadStream}from'fs';function a146_0x4599(_0x3be3cf,_0x387ca5){_0x3be3cf=_0x3be3cf-0xf6;const _0x3071b6=a146_0x3071();let _0x4599a2=_0x3071b6[_0x3be3cf];return _0x4599a2;}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a146_0x172a10 from'chalk';function safeStringify(_0x4b1163){const _0x3ad036=a146_0x4599;if(typeof _0x4b1163==='string')return _0x4b1163;if(_0x4b1163 instanceof Error)return _0x4b1163[_0x3ad036(0x114)]||_0x4b1163[_0x3ad036(0x110)]+':\x20'+_0x4b1163[_0x3ad036(0x10b)];try{return JSON['stringify'](_0x4b1163,(_0x2c7d55,_0x648651)=>{const _0x8a7759=_0x3ad036;if(_0x648651 instanceof Error)return{'name':_0x648651[_0x8a7759(0x110)],'message':_0x648651[_0x8a7759(0x10b)],'stack':_0x648651['stack'],'cause':_0x648651['cause']};return _0x648651;});}catch{return String(_0x4b1163);}}function a146_0x3071(){const _0x40bc11=['warn','debug','init','WARN','Proxy\x20session\x20ended','toISOString','map','filter','Warning:\x20Failed\x20to\x20compress\x20','TRACE','end','892502DfQYZf','.cache','105954ErQyBv','ERROR','getHours','7931686devwaL','tdx.log','.log','toString','2258478afMrqP','Warning:\x20Error\x20writing\x20to\x20tdx.log:','6704072HIiaxe','logDir','26660ndQObs','INFO','trace','9CvQRbr','getTimezoneOffset','30WpYFME','close','padStart','tdx','5805600CFQnJK','write','cyan','getFullYear','join','mtime','getLogPath','test','includes','getSeconds','logStream','info','abs','error','logs','split','getDate','DEBUG','fileOnly','message','yellow','floor','logLevel','gray','name','340XpLpyc','getMinutes','rotateOldLogs','stack'];a146_0x3071=function(){return _0x40bc11;};return a146_0x3071();}function getTimezoneOffset(){const _0x5f5cd1=a146_0x4599,_0x2573ef=-new Date()[_0x5f5cd1(0x131)](),_0x20e4a8=Math[_0x5f5cd1(0x10d)](Math[_0x5f5cd1(0x104)](_0x2573ef)/0x3c),_0x176333=Math[_0x5f5cd1(0x104)](_0x2573ef)%0x3c,_0x2c942a=_0x2573ef>=0x0?'+':'-';return''+_0x2c942a+_0x20e4a8[_0x5f5cd1(0x128)]()[_0x5f5cd1(0xf6)](0x2,'0')+_0x176333['toString']()[_0x5f5cd1(0xf6)](0x2,'0');}function formatTimestamp(){const _0x54e268=a146_0x4599,_0x5099e5=new Date(),_0x5a898b=_0x5099e5[_0x54e268(0xfb)](),_0x6dd502=(_0x5099e5['getMonth']()+0x1)['toString']()[_0x54e268(0xf6)](0x2,'0'),_0x57fa5c=_0x5099e5[_0x54e268(0x108)]()['toString']()['padStart'](0x2,'0'),_0x53aeaa=_0x5099e5[_0x54e268(0x124)]()['toString']()[_0x54e268(0xf6)](0x2,'0'),_0x2074bb=_0x5099e5[_0x54e268(0x112)]()['toString']()[_0x54e268(0xf6)](0x2,'0'),_0x21befa=_0x5099e5[_0x54e268(0x101)]()[_0x54e268(0x128)]()[_0x54e268(0xf6)](0x2,'0'),_0x47b978=_0x5099e5['getMilliseconds']()['toString']()[_0x54e268(0xf6)](0x3,'0'),_0x557be1=getTimezoneOffset();return _0x5a898b+'-'+_0x6dd502+'-'+_0x57fa5c+'\x20'+_0x53aeaa+':'+_0x2074bb+':'+_0x21befa+'.'+_0x47b978+_0x557be1;}function formatColoredLogEntry(_0x2e400a,_0x4f88f5){const _0x22e5c9=a146_0x4599,_0x1f083a=formatTimestamp(),_0x45899a=_0x4f88f5[_0x22e5c9(0x11b)](safeStringify)[_0x22e5c9(0xfc)]('\x20'),_0x397789=a146_0x172a10[_0x22e5c9(0x10f)](_0x1f083a);let _0x1fac75;switch(_0x2e400a){case'info':_0x1fac75=a146_0x172a10[_0x22e5c9(0xfa)]('['+_0x2e400a+']\x20');break;case _0x22e5c9(0x115):_0x1fac75=a146_0x172a10[_0x22e5c9(0x10c)]('['+_0x2e400a+']\x20');break;case _0x22e5c9(0x105):_0x1fac75=a146_0x172a10['red']('['+_0x2e400a+']');break;case _0x22e5c9(0x116):_0x1fac75=a146_0x172a10[_0x22e5c9(0x10f)]('['+_0x2e400a+']');break;default:_0x1fac75='['+_0x2e400a+']';}return _0x397789+'\x20'+_0x1fac75+'\x20'+_0x45899a;}export var LogLevel;(function(_0xd6b10d){const _0x47c6f2=a146_0x4599;_0xd6b10d[_0xd6b10d['TRACE']=-0x2]=_0x47c6f2(0x11e),_0xd6b10d[_0xd6b10d['DEBUG']=-0x1]=_0x47c6f2(0x109),_0xd6b10d[_0xd6b10d[_0x47c6f2(0x12e)]=0x0]='INFO',_0xd6b10d[_0xd6b10d[_0x47c6f2(0x118)]=0x1]=_0x47c6f2(0x118),_0xd6b10d[_0xd6b10d[_0x47c6f2(0x123)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a146_0x132119(0x102)];[a146_0x132119(0x12c)];[a146_0x132119(0x10e)];[a146_0x132119(0x10a)];constructor(_0x3a6a25=LogLevel[a146_0x132119(0x12e)],_0x47dd6b=![]){const _0x36c0cd=a146_0x132119;this['logDir']=join(homedir(),_0x36c0cd(0x121),_0x36c0cd(0xf7),_0x36c0cd(0x106)),this['logLevel']=_0x3a6a25,this[_0x36c0cd(0x10a)]=_0x47dd6b;}async[a146_0x132119(0x117)](){const _0x12f83d=a146_0x132119;try{await mkdir(this[_0x12f83d(0x12c)],{'recursive':!![]}),await this[_0x12f83d(0x113)]();const _0x412ef1=join(this[_0x12f83d(0x12c)],'tdx.log');this[_0x12f83d(0x102)]=createWriteStream(_0x412ef1,{'flags':'a'}),this[_0x12f83d(0x102)]['on'](_0x12f83d(0x105),_0x451c89=>{const _0x452932=_0x12f83d;console[_0x452932(0x105)](_0x452932(0x12a),_0x451c89[_0x452932(0x10b)]);});}catch(_0x18411e){console[_0x12f83d(0x105)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x18411e);}}async[a146_0x132119(0x113)](){const _0x22b9ec=a146_0x132119;try{const _0x46839d=await readdir(this['logDir']),_0x4eb827=new Date()[_0x22b9ec(0x11a)]()['split']('T')[0x0];if(_0x46839d[_0x22b9ec(0x100)](_0x22b9ec(0x126))){const _0x4e7e68=join(this['logDir'],'tdx.log'),_0x49b6e4=await stat(_0x4e7e68),_0x1331e1=new Date(_0x49b6e4[_0x22b9ec(0xfd)])[_0x22b9ec(0x11a)]()[_0x22b9ec(0x107)]('T')[0x0];if(_0x1331e1<_0x4eb827){const _0x2e310c=join(this['logDir'],'tdx-'+_0x1331e1+_0x22b9ec(0x127));await rename(_0x4e7e68,_0x2e310c);}}const _0x5a88ff=await readdir(this['logDir']),_0x33e427=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x54c4f6=_0x5a88ff[_0x22b9ec(0x11c)](_0x55534d=>_0x33e427[_0x22b9ec(0xff)](_0x55534d));for(const _0xc218eb of _0x54c4f6){const _0x3f7b28=join(this[_0x22b9ec(0x12c)],_0xc218eb),_0x322528=join(this[_0x22b9ec(0x12c)],_0xc218eb+'.gz');try{await pipeline(createReadStream(_0x3f7b28),createGzip(),createWriteStream(_0x322528)),await unlink(_0x3f7b28);}catch(_0x40834c){console[_0x22b9ec(0x105)](_0x22b9ec(0x11d)+_0xc218eb+':',_0x40834c);}}}catch{}}[a146_0x132119(0x116)](..._0x35eed3){const _0x339e44=a146_0x132119;if(this[_0x339e44(0x10e)]>LogLevel[_0x339e44(0x109)])return;const _0x972d9=formatColoredLogEntry(_0x339e44(0x116),_0x35eed3);this[_0x339e44(0x102)]?.[_0x339e44(0xf9)](_0x972d9+'\x0a');}[a146_0x132119(0x12f)](..._0x202c23){const _0x524b05=a146_0x132119;if(this[_0x524b05(0x10e)]>LogLevel[_0x524b05(0x11e)])return;const _0x353b50=formatColoredLogEntry('trace',_0x202c23);this[_0x524b05(0x102)]?.['write'](_0x353b50+'\x0a');}[a146_0x132119(0x103)](..._0x30ac33){const _0x44776e=a146_0x132119;if(this['logLevel']>LogLevel['INFO'])return;const _0x1067f1=formatColoredLogEntry(_0x44776e(0x103),_0x30ac33);!this[_0x44776e(0x10a)]&&console['log'](_0x1067f1),this[_0x44776e(0x102)]?.[_0x44776e(0xf9)](_0x1067f1+'\x0a');}['warn'](..._0x201b85){const _0x484dcf=a146_0x132119;if(this[_0x484dcf(0x10e)]>LogLevel['WARN'])return;const _0x42220e=formatColoredLogEntry(_0x484dcf(0x115),_0x201b85);!this[_0x484dcf(0x10a)]&&console[_0x484dcf(0x105)](_0x42220e),this['logStream']?.['write'](_0x42220e+'\x0a');}[a146_0x132119(0x105)](..._0x4ded89){const _0x446e2f=a146_0x132119,_0x40876f=formatColoredLogEntry(_0x446e2f(0x105),_0x4ded89);!this['fileOnly']&&console[_0x446e2f(0x105)](_0x40876f),this[_0x446e2f(0x102)]?.['write'](_0x40876f+'\x0a');}async[a146_0x132119(0x133)](){const _0x4240fc=a146_0x132119;return this[_0x4240fc(0x103)](_0x4240fc(0x119)),new Promise(_0x182f61=>{const _0xf5d636=_0x4240fc;this[_0xf5d636(0x102)]?this[_0xf5d636(0x102)][_0xf5d636(0x11f)](()=>{_0x182f61();}):_0x182f61();});}[a146_0x132119(0xfe)](){const _0x440985=a146_0x132119;return join(this['logDir'],_0x440985(0x126));}}
@@ -1 +1 @@
1
- const a143_0x4fb666=a143_0x5a82;(function(_0x4dcf56,_0x3dca7f){const _0x365fe6=a143_0x5a82,_0x1b0e7a=_0x4dcf56();while(!![]){try{const _0x556399=parseInt(_0x365fe6(0x135))/0x1*(parseInt(_0x365fe6(0x148))/0x2)+-parseInt(_0x365fe6(0x143))/0x3*(parseInt(_0x365fe6(0x139))/0x4)+-parseInt(_0x365fe6(0x14a))/0x5*(parseInt(_0x365fe6(0x14d))/0x6)+-parseInt(_0x365fe6(0x13a))/0x7+-parseInt(_0x365fe6(0x134))/0x8*(-parseInt(_0x365fe6(0x14b))/0x9)+-parseInt(_0x365fe6(0x14f))/0xa+parseInt(_0x365fe6(0x13f))/0xb;if(_0x556399===_0x3dca7f)break;else _0x1b0e7a['push'](_0x1b0e7a['shift']());}catch(_0x19ca53){_0x1b0e7a['push'](_0x1b0e7a['shift']());}}}(a143_0x5674,0xb5f90));function a143_0x5674(){const _0x15dda6=['\x0aUpdate\x20available:\x20','destroy','yellow','714471JYOAcL','NO_COLOR','npm\x20install\x20-g\x20@treasuredata/tdx@latest','toISOString','last_version_check','789856zqFwIH','Invalid\x20version\x20format','170skiZpx','18yDSIkk','version','246810owTjYe','currentVersion','11829180eBgfqa','Run:','https://registry.npmjs.org/@treasuredata/tdx/latest','dim','end','green','HTTP\x20','write','latestVersion','getTime','now','4783648DzFXCr','1ThCNgr','statusCode','data','\x0aRun:\x20','20AtnrRc','2518285gYLyjv','Request\x20timeout','parse','updateAvailable','utf-8','36152248ozqdbA'];a143_0x5674=function(){return _0x15dda6;};return a143_0x5674();}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a143_0x10e078 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a143_0x4fb666(0x151),TIMEOUT_MS=0x7d0;function a143_0x5a82(_0x1fb9cb,_0x1f5af1){_0x1fb9cb=_0x1fb9cb-0x12c;const _0x567461=a143_0x5674();let _0x5a8264=_0x567461[_0x1fb9cb];return _0x5a8264;}function getCacheFilePath(){const _0x55d07f=a143_0x4fb666,_0x5151a8=getCacheDir();return join(_0x5151a8,_0x55d07f(0x147));}function readCache(){const _0x22237f=a143_0x4fb666;try{const _0x52424e=getCacheFilePath(),_0x1c594f=readFileSync(_0x52424e,_0x22237f(0x13e));return JSON['parse'](_0x1c594f);}catch{return null;}}function writeCache(_0x1915c9){const _0x44b8c2=a143_0x4fb666;try{const _0x2f0296=getCacheDir();mkdirSync(_0x2f0296,{'recursive':!![]});const _0x5956d6={'lastCheck':new Date()[_0x44b8c2(0x146)](),'latestVersion':_0x1915c9},_0x233672=getCacheFilePath();writeFileSync(_0x233672,JSON['stringify'](_0x5956d6,null,0x2),_0x44b8c2(0x13e));}catch{}}function isCacheValid(_0x150196){const _0x2af6d1=a143_0x4fb666;if(!_0x150196)return![];const _0xdddd98=new Date(_0x150196['lastCheck'])[_0x2af6d1(0x132)](),_0x4d3204=Date[_0x2af6d1(0x133)]();return _0x4d3204-_0xdddd98<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4c0559,_0x29bf21)=>{const _0x1bae5d=get(NPM_REGISTRY_URL,_0x5f992f=>{const _0x417ee0=a143_0x5a82;if(_0x5f992f[_0x417ee0(0x136)]!==0xc8){clearTimeout(_0x4fb3f5),_0x29bf21(new Error(_0x417ee0(0x12f)+_0x5f992f['statusCode']));return;}let _0x43dedf='';_0x5f992f['on'](_0x417ee0(0x137),_0x11dc5a=>{_0x43dedf+=_0x11dc5a;}),_0x5f992f['on'](_0x417ee0(0x12d),()=>{const _0x2253bd=_0x417ee0;clearTimeout(_0x4fb3f5);try{const _0x251f68=JSON[_0x2253bd(0x13c)](_0x43dedf);if(!valid(_0x251f68[_0x2253bd(0x14c)])){_0x29bf21(new Error(_0x2253bd(0x149)));return;}_0x4c0559(_0x251f68[_0x2253bd(0x14c)]);}catch(_0x11e3b6){_0x29bf21(_0x11e3b6);}});})['on']('error',_0x1f9e0e=>{clearTimeout(_0x4fb3f5),_0x29bf21(_0x1f9e0e);}),_0x4fb3f5=setTimeout(()=>{const _0x17817d=a143_0x5a82;_0x1bae5d[_0x17817d(0x141)](),_0x29bf21(new Error(_0x17817d(0x13b)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x11e79a){const _0x89cf0a=a143_0x4fb666;try{const _0x4bf142=readCache();if(isCacheValid(_0x4bf142)){const _0x4f3453=gt(_0x4bf142[_0x89cf0a(0x131)],_0x11e79a);return{'updateAvailable':_0x4f3453,'currentVersion':_0x11e79a,'latestVersion':_0x4bf142[_0x89cf0a(0x131)]};}const _0x2884ba=await fetchLatestVersion();writeCache(_0x2884ba);const _0x22b218=gt(_0x2884ba,_0x11e79a);return{'updateAvailable':_0x22b218,'currentVersion':_0x11e79a,'latestVersion':_0x2884ba};}catch{return null;}}export function displayUpdateNotification(_0x109cf4){const _0x49a19f=a143_0x4fb666;if(!_0x109cf4[_0x49a19f(0x13d)])return;const _0x1d0d75=process['stderr']['isTTY']&&!process['env'][_0x49a19f(0x144)],_0x203b44=_0x1d0d75?a143_0x10e078['gray']('→'):'→',_0x296ec4=_0x1d0d75?a143_0x10e078[_0x49a19f(0x12c)](_0x109cf4[_0x49a19f(0x14e)]):_0x109cf4[_0x49a19f(0x14e)],_0x12a9ee=_0x1d0d75?a143_0x10e078[_0x49a19f(0x12e)](_0x109cf4['latestVersion']):_0x109cf4[_0x49a19f(0x131)],_0x3debbe=_0x1d0d75?a143_0x10e078['cyan']('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x49a19f(0x145),_0x2c8be7=_0x1d0d75?'\x0a'+a143_0x10e078[_0x49a19f(0x142)]('Update\x20available:')+'\x20'+_0x296ec4+'\x20'+_0x203b44+'\x20'+_0x12a9ee+'\x0a'+a143_0x10e078['dim'](_0x49a19f(0x150))+'\x20'+_0x3debbe+'\x0a':_0x49a19f(0x140)+_0x296ec4+'\x20'+_0x203b44+'\x20'+_0x12a9ee+_0x49a19f(0x138)+_0x3debbe+'\x0a';process['stderr'][_0x49a19f(0x130)](_0x2c8be7);}
1
+ const a147_0x29a7f0=a147_0x2453;(function(_0x4f2db7,_0xbd2344){const _0x3b7343=a147_0x2453,_0x3e5e00=_0x4f2db7();while(!![]){try{const _0x4c62a6=-parseInt(_0x3b7343(0x16a))/0x1+-parseInt(_0x3b7343(0x154))/0x2+-parseInt(_0x3b7343(0x15c))/0x3+parseInt(_0x3b7343(0x159))/0x4+-parseInt(_0x3b7343(0x163))/0x5+parseInt(_0x3b7343(0x158))/0x6*(parseInt(_0x3b7343(0x167))/0x7)+parseInt(_0x3b7343(0x15d))/0x8;if(_0x4c62a6===_0xbd2344)break;else _0x3e5e00['push'](_0x3e5e00['shift']());}catch(_0x363fdb){_0x3e5e00['push'](_0x3e5e00['shift']());}}}(a147_0x18ae,0x6c6cf));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a147_0x2453(_0x21fcae,_0x8142cb){_0x21fcae=_0x21fcae-0x14c;const _0x18aeea=a147_0x18ae();let _0x24535b=_0x18aeea[_0x21fcae];return _0x24535b;}import{gt,valid}from'semver';import a147_0x544a73 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a147_0x29a7f0(0x169),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x54fa1e=getCacheDir();return join(_0x54fa1e,'last_version_check');}function readCache(){const _0x5afce5=a147_0x29a7f0;try{const _0x4717e7=getCacheFilePath(),_0x6b6200=readFileSync(_0x4717e7,_0x5afce5(0x16c));return JSON[_0x5afce5(0x155)](_0x6b6200);}catch{return null;}}function writeCache(_0x1e06bc){const _0x1741ea=a147_0x29a7f0;try{const _0xfe0cc6=getCacheDir();mkdirSync(_0xfe0cc6,{'recursive':!![]});const _0x37e748={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x1e06bc},_0x3f9195=getCacheFilePath();writeFileSync(_0x3f9195,JSON[_0x1741ea(0x14c)](_0x37e748,null,0x2),'utf-8');}catch{}}function a147_0x18ae(){const _0x27d8e7=['cyan','Run:','236955AkJoqk','2557264iAQnrL','Invalid\x20version\x20format','\x0aUpdate\x20available:\x20','dim','HTTP\x20','Request\x20timeout','2378745CYMdpm','currentVersion','data','write','329crjssx','destroy','https://registry.npmjs.org/@treasuredata/tdx/latest','41458rgISab','end','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','statusCode','now','error','stringify','getTime','gray','version','Update\x20available:','latestVersion','\x0aRun:\x20','stderr','1610876fTlplo','parse','yellow','NO_COLOR','111798MENdvx','2601328UUNPgq'];a147_0x18ae=function(){return _0x27d8e7;};return a147_0x18ae();}function isCacheValid(_0x4788c7){const _0x24e2fc=a147_0x29a7f0;if(!_0x4788c7)return![];const _0x45134e=new Date(_0x4788c7['lastCheck'])[_0x24e2fc(0x14d)](),_0x3714d3=Date[_0x24e2fc(0x16f)]();return _0x3714d3-_0x45134e<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1f1a75,_0x3c3c62)=>{const _0xa945e9=a147_0x2453,_0x34d842=get(NPM_REGISTRY_URL,_0x12c94f=>{const _0x122aa1=a147_0x2453;if(_0x12c94f[_0x122aa1(0x16e)]!==0xc8){clearTimeout(_0x3dc1ee),_0x3c3c62(new Error(_0x122aa1(0x161)+_0x12c94f[_0x122aa1(0x16e)]));return;}let _0x426b8c='';_0x12c94f['on'](_0x122aa1(0x165),_0x4b3040=>{_0x426b8c+=_0x4b3040;}),_0x12c94f['on'](_0x122aa1(0x16b),()=>{const _0x468c6d=_0x122aa1;clearTimeout(_0x3dc1ee);try{const _0x3d7693=JSON[_0x468c6d(0x155)](_0x426b8c);if(!valid(_0x3d7693[_0x468c6d(0x14f)])){_0x3c3c62(new Error(_0x468c6d(0x15e)));return;}_0x1f1a75(_0x3d7693['version']);}catch(_0x24edf6){_0x3c3c62(_0x24edf6);}});})['on'](_0xa945e9(0x170),_0x3c78bd=>{clearTimeout(_0x3dc1ee),_0x3c3c62(_0x3c78bd);}),_0x3dc1ee=setTimeout(()=>{const _0x5206c2=_0xa945e9;_0x34d842[_0x5206c2(0x168)](),_0x3c3c62(new Error(_0x5206c2(0x162)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x34363b){try{const _0x2ccb70=readCache();if(isCacheValid(_0x2ccb70)){const _0x437732=gt(_0x2ccb70['latestVersion'],_0x34363b);return{'updateAvailable':_0x437732,'currentVersion':_0x34363b,'latestVersion':_0x2ccb70['latestVersion']};}const _0x31889b=await fetchLatestVersion();writeCache(_0x31889b);const _0x52a14d=gt(_0x31889b,_0x34363b);return{'updateAvailable':_0x52a14d,'currentVersion':_0x34363b,'latestVersion':_0x31889b};}catch{return null;}}export function displayUpdateNotification(_0x325d64){const _0x204ba2=a147_0x29a7f0;if(!_0x325d64['updateAvailable'])return;const _0x16f548=process[_0x204ba2(0x153)]['isTTY']&&!process['env'][_0x204ba2(0x157)],_0x4248bb=_0x16f548?a147_0x544a73[_0x204ba2(0x14e)]('→'):'→',_0x4e16d3=_0x16f548?a147_0x544a73['dim'](_0x325d64[_0x204ba2(0x164)]):_0x325d64[_0x204ba2(0x164)],_0x608918=_0x16f548?a147_0x544a73['green'](_0x325d64[_0x204ba2(0x151)]):_0x325d64['latestVersion'],_0x15574c=_0x16f548?a147_0x544a73[_0x204ba2(0x15a)](_0x204ba2(0x16d)):_0x204ba2(0x16d),_0xdd8c3b=_0x16f548?'\x0a'+a147_0x544a73[_0x204ba2(0x156)](_0x204ba2(0x150))+'\x20'+_0x4e16d3+'\x20'+_0x4248bb+'\x20'+_0x608918+'\x0a'+a147_0x544a73[_0x204ba2(0x160)](_0x204ba2(0x15b))+'\x20'+_0x15574c+'\x0a':_0x204ba2(0x15f)+_0x4e16d3+'\x20'+_0x4248bb+'\x20'+_0x608918+_0x204ba2(0x152)+_0x15574c+'\x0a';process[_0x204ba2(0x153)][_0x204ba2(0x166)](_0xdd8c3b);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
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": {