@treasuredata/tdx 0.14.0 → 0.14.1

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 (160) 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.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/api-command.js.map +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts +1 -0
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/job-command.js +1 -1
  25. package/dist/commands/journey-command.js +1 -1
  26. package/dist/commands/journey-validate-command.js +1 -1
  27. package/dist/commands/llm-command.js +1 -1
  28. package/dist/commands/llm-proxy.js +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/profile-command.d.ts +3 -4
  31. package/dist/commands/profile-command.d.ts.map +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profile-command.js.map +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segment-validate-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/tables.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/core/version.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/proxy/anthropic-adapter.js +1 -1
  65. package/dist/proxy/claude-usage-tracker.d.ts +2 -0
  66. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  67. package/dist/proxy/claude-usage-tracker.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  69. package/dist/proxy/context-signature.js +1 -1
  70. package/dist/proxy/conversation-utils.js +1 -1
  71. package/dist/proxy/passthrough-server.d.ts +86 -0
  72. package/dist/proxy/passthrough-server.d.ts.map +1 -0
  73. package/dist/proxy/passthrough-server.js +1 -0
  74. package/dist/proxy/passthrough-server.js.map +1 -0
  75. package/dist/proxy/server.js +1 -1
  76. package/dist/proxy/session-cache.js +1 -1
  77. package/dist/proxy/sse-usage-parser.d.ts +99 -0
  78. package/dist/proxy/sse-usage-parser.d.ts.map +1 -0
  79. package/dist/proxy/sse-usage-parser.js +1 -0
  80. package/dist/proxy/sse-usage-parser.js.map +1 -0
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/api.js +1 -1
  85. package/dist/sdk/client/cdp-api-client.js +1 -1
  86. package/dist/sdk/client/endpoints.d.ts +5 -0
  87. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  88. package/dist/sdk/client/endpoints.js +1 -1
  89. package/dist/sdk/client/endpoints.js.map +1 -1
  90. package/dist/sdk/client/engage-api-client.js +1 -1
  91. package/dist/sdk/client/http-client.js +1 -1
  92. package/dist/sdk/client/llm-api-client.js +1 -1
  93. package/dist/sdk/client/rate-limiter.js +1 -1
  94. package/dist/sdk/client/td-api-client.js +1 -1
  95. package/dist/sdk/client/trino-api-client.js +1 -1
  96. package/dist/sdk/client/workflow-client.js +1 -1
  97. package/dist/sdk/connection-validator.js +1 -1
  98. package/dist/sdk/connection.js +1 -1
  99. package/dist/sdk/engage.js +1 -1
  100. package/dist/sdk/errors.js +1 -1
  101. package/dist/sdk/index.js +1 -1
  102. package/dist/sdk/io/index.js +1 -1
  103. package/dist/sdk/io/node-filesystem.js +1 -1
  104. package/dist/sdk/job.js +1 -1
  105. package/dist/sdk/journey.js +1 -1
  106. package/dist/sdk/llm/chat-cache.js +1 -1
  107. package/dist/sdk/llm/index.js +1 -1
  108. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  109. package/dist/sdk/llm/model-aliases.js +1 -1
  110. package/dist/sdk/llm/model-factors.js +1 -1
  111. package/dist/sdk/query/index.js +1 -1
  112. package/dist/sdk/query/sql-parser.js +1 -1
  113. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  114. package/dist/sdk/segment/fields-display.js +1 -1
  115. package/dist/sdk/segment/file-discovery.js +1 -1
  116. package/dist/sdk/segment/journey-utils.js +1 -1
  117. package/dist/sdk/segment/journey-yaml.js +1 -1
  118. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  119. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  120. package/dist/sdk/segment/pull-workflow.js +1 -1
  121. package/dist/sdk/segment/push-workflow.js +1 -1
  122. package/dist/sdk/segment/resolution-context.js +1 -1
  123. package/dist/sdk/segment/segment-path-parser.js +1 -1
  124. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  125. package/dist/sdk/segment/target-resolution.js +1 -1
  126. package/dist/sdk/segment/tdx-config.js +1 -1
  127. package/dist/sdk/segment/validate-files.js +1 -1
  128. package/dist/sdk/segment/yaml-validator.js +1 -1
  129. package/dist/sdk/segment.js +1 -1
  130. package/dist/sdk/types/index.d.ts +1 -1
  131. package/dist/sdk/types/index.d.ts.map +1 -1
  132. package/dist/sdk/types/index.js +1 -1
  133. package/dist/sdk/types/progress.js +1 -1
  134. package/dist/sdk/user.js +1 -1
  135. package/dist/sdk/util/format-detector.js +1 -1
  136. package/dist/sdk/util/formatters.js +1 -1
  137. package/dist/sdk/util/index.js +1 -1
  138. package/dist/sdk/util/tree-formatter.js +1 -1
  139. package/dist/sdk/workflow/clone-workflow.js +1 -1
  140. package/dist/sdk/workflow/index.js +1 -1
  141. package/dist/sdk/workflow/pull-workflow.js +1 -1
  142. package/dist/sdk/workflow/push-workflow.js +1 -1
  143. package/dist/sdk/workflow/tdx-config.js +1 -1
  144. package/dist/sdk/workflow/workflow-utils.js +1 -1
  145. package/dist/utils/async.js +1 -1
  146. package/dist/utils/colors.js +1 -1
  147. package/dist/utils/diff.js +1 -1
  148. package/dist/utils/file-permissions.js +1 -1
  149. package/dist/utils/json-loader.js +1 -1
  150. package/dist/utils/option-validation.js +1 -1
  151. package/dist/utils/port.js +1 -1
  152. package/dist/utils/process.js +1 -1
  153. package/dist/utils/prompt.js +1 -1
  154. package/dist/utils/spinner.js +1 -1
  155. package/dist/utils/sse-parser.js +1 -1
  156. package/dist/utils/string-utils.js +1 -1
  157. package/dist/utils/table-ref-parser.js +1 -1
  158. package/dist/utils/tdx-logger.js +1 -1
  159. package/dist/utils/version-check.js +1 -1
  160. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1b754e,_0x531875){const _0x231429=a138_0xc01c,_0x2d2158=_0x1b754e();while(!![]){try{const _0x35d234=parseInt(_0x231429(0x128))/0x1+parseInt(_0x231429(0x115))/0x2*(-parseInt(_0x231429(0x11b))/0x3)+-parseInt(_0x231429(0x11a))/0x4+-parseInt(_0x231429(0x121))/0x5*(parseInt(_0x231429(0x120))/0x6)+-parseInt(_0x231429(0x10f))/0x7+-parseInt(_0x231429(0x126))/0x8+-parseInt(_0x231429(0x110))/0x9*(-parseInt(_0x231429(0x11e))/0xa);if(_0x35d234===_0x531875)break;else _0x2d2158['push'](_0x2d2158['shift']());}catch(_0x36639e){_0x2d2158['push'](_0x2d2158['shift']());}}}(a138_0x262b,0x789b1));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x51c061,_0x5a99e0){const _0x2eac26=a138_0xc01c;try{if(_0x5a99e0){const _0x7e5bd=await readFile(_0x51c061,_0x2eac26(0x112));try{return JSON[_0x2eac26(0x122)](_0x7e5bd);}catch(_0x36ad27){throw new SDKError(ErrorCode[_0x2eac26(0x123)],_0x2eac26(0x113)+_0x51c061+_0x2eac26(0x114)+(_0x36ad27 instanceof Error?_0x36ad27[_0x2eac26(0x124)]:String(_0x36ad27)));}}else try{return JSON[_0x2eac26(0x122)](_0x51c061);}catch(_0x1cb2fa){throw new SDKError(ErrorCode[_0x2eac26(0x123)],'Invalid\x20JSON\x20string:\x20'+(_0x1cb2fa instanceof Error?_0x1cb2fa['message']:String(_0x1cb2fa)));}}catch(_0x40eae3){if(_0x40eae3 instanceof SDKError)throw _0x40eae3;if(_0x40eae3 instanceof Error&&_0x2eac26(0x11d)in _0x40eae3){const _0x52c60d=_0x40eae3;if(_0x52c60d[_0x2eac26(0x11d)]===_0x2eac26(0x11c))throw new SDKError(ErrorCode[_0x2eac26(0x11f)],_0x2eac26(0x111)+_0x51c061);else{if(_0x52c60d[_0x2eac26(0x11d)]===_0x2eac26(0x119))throw new SDKError(ErrorCode[_0x2eac26(0x127)],_0x2eac26(0x116)+_0x51c061);}}throw new SDKError(ErrorCode[_0x2eac26(0x125)],_0x2eac26(0x118)+(_0x40eae3 instanceof Error?_0x40eae3[_0x2eac26(0x124)]:String(_0x40eae3)));}}export async function loadJSONFromOptions(_0x509d3f,_0x91da75){const _0x4fc5d6=a138_0xc01c;if(_0x509d3f&&_0x91da75)throw new SDKError(ErrorCode[_0x4fc5d6(0x123)],_0x4fc5d6(0x117));if(_0x509d3f)return await loadJSON(_0x509d3f,![]);if(_0x91da75)return await loadJSON(_0x91da75,!![]);return undefined;}function a138_0xc01c(_0x3dc79b,_0x37a9a4){_0x3dc79b=_0x3dc79b-0x10f;const _0x262be4=a138_0x262b();let _0xc01c7b=_0x262be4[_0x3dc79b];return _0xc01c7b;}function a138_0x262b(){const _0xcfcdda=['INVALID_ARGUMENT','message','INTERNAL','1286736FjXCzD','PERMISSION_DENIED','904568sdmpDn','6186145pJVPWI','639531PkSuro','File\x20not\x20found:\x20','utf-8','Invalid\x20JSON\x20in\x20file\x20\x27','\x27:\x20','94xBiARm','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Failed\x20to\x20load\x20JSON:\x20','EACCES','3252816LHtABk','27717lhOTTw','ENOENT','code','290GTCUSr','NOT_FOUND','134448DCvuBb','40DbeNZs','parse'];a138_0x262b=function(){return _0xcfcdda;};return a138_0x262b();}
1
+ (function(_0x17ee1b,_0x271787){const _0x1b734e=a140_0x533b,_0x2a079a=_0x17ee1b();while(!![]){try{const _0x50d1b6=parseInt(_0x1b734e(0xe1))/0x1*(parseInt(_0x1b734e(0xdc))/0x2)+parseInt(_0x1b734e(0xdd))/0x3+-parseInt(_0x1b734e(0xcf))/0x4*(-parseInt(_0x1b734e(0xd5))/0x5)+parseInt(_0x1b734e(0xde))/0x6*(parseInt(_0x1b734e(0xd7))/0x7)+-parseInt(_0x1b734e(0xd6))/0x8*(-parseInt(_0x1b734e(0xe4))/0x9)+parseInt(_0x1b734e(0xe3))/0xa*(parseInt(_0x1b734e(0xda))/0xb)+-parseInt(_0x1b734e(0xd2))/0xc;if(_0x50d1b6===_0x271787)break;else _0x2a079a['push'](_0x2a079a['shift']());}catch(_0x578a7f){_0x2a079a['push'](_0x2a079a['shift']());}}}(a140_0x5c0c,0xc1465));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1cfcb7,_0x4fef86){const _0x389aa2=a140_0x533b;try{if(_0x4fef86){const _0x14f146=await readFile(_0x1cfcb7,_0x389aa2(0xdf));try{return JSON[_0x389aa2(0xd3)](_0x14f146);}catch(_0x2256de){throw new SDKError(ErrorCode[_0x389aa2(0xce)],_0x389aa2(0xe5)+_0x1cfcb7+_0x389aa2(0xe0)+(_0x2256de instanceof Error?_0x2256de[_0x389aa2(0xd8)]:String(_0x2256de)));}}else try{return JSON[_0x389aa2(0xd3)](_0x1cfcb7);}catch(_0x2ab3eb){throw new SDKError(ErrorCode[_0x389aa2(0xce)],'Invalid\x20JSON\x20string:\x20'+(_0x2ab3eb instanceof Error?_0x2ab3eb[_0x389aa2(0xd8)]:String(_0x2ab3eb)));}}catch(_0x200be4){if(_0x200be4 instanceof SDKError)throw _0x200be4;if(_0x200be4 instanceof Error&&'code'in _0x200be4){const _0x13cffd=_0x200be4;if(_0x13cffd[_0x389aa2(0xe6)]===_0x389aa2(0xd4))throw new SDKError(ErrorCode[_0x389aa2(0xd9)],'File\x20not\x20found:\x20'+_0x1cfcb7);else{if(_0x13cffd['code']===_0x389aa2(0xd1))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x389aa2(0xd0)+_0x1cfcb7);}}throw new SDKError(ErrorCode[_0x389aa2(0xe7)],_0x389aa2(0xdb)+(_0x200be4 instanceof Error?_0x200be4[_0x389aa2(0xd8)]:String(_0x200be4)));}}function a140_0x533b(_0xba7d0a,_0x32a5ac){_0xba7d0a=_0xba7d0a-0xce;const _0x5c0c90=a140_0x5c0c();let _0x533b51=_0x5c0c90[_0xba7d0a];return _0x533b51;}function a140_0x5c0c(){const _0x872c7f=['NOT_FOUND','363143wkYjWg','Failed\x20to\x20load\x20JSON:\x20','70eJWVpa','358533YeFaea','1506qVQKKG','utf-8','\x27:\x20','3922XbxtJm','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','310gjpgzo','9bfdzqm','Invalid\x20JSON\x20in\x20file\x20\x27','code','INTERNAL','INVALID_ARGUMENT','62068MOKZHS','Permission\x20denied\x20reading\x20file:\x20','EACCES','25487400KnUqwV','parse','ENOENT','305mhcXkE','537240RNWYOF','17339dODDGd','message'];a140_0x5c0c=function(){return _0x872c7f;};return a140_0x5c0c();}export async function loadJSONFromOptions(_0x37ebce,_0x5a25f3){const _0x59edf6=a140_0x533b;if(_0x37ebce&&_0x5a25f3)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x59edf6(0xe2));if(_0x37ebce)return await loadJSON(_0x37ebce,![]);if(_0x5a25f3)return await loadJSON(_0x5a25f3,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x5d2575,_0x1a4e4b){const _0x39f6aa=a139_0x1431,_0x174ffd=_0x5d2575();while(!![]){try{const _0x448d2f=-parseInt(_0x39f6aa(0x1a7))/0x1*(-parseInt(_0x39f6aa(0x1b3))/0x2)+-parseInt(_0x39f6aa(0x1b4))/0x3*(-parseInt(_0x39f6aa(0x1b6))/0x4)+-parseInt(_0x39f6aa(0x1b1))/0x5*(-parseInt(_0x39f6aa(0x1a6))/0x6)+-parseInt(_0x39f6aa(0x1a9))/0x7*(parseInt(_0x39f6aa(0x1ae))/0x8)+-parseInt(_0x39f6aa(0x1b7))/0x9+parseInt(_0x39f6aa(0x1b5))/0xa*(-parseInt(_0x39f6aa(0x1ac))/0xb)+parseInt(_0x39f6aa(0x1ad))/0xc*(parseInt(_0x39f6aa(0x1af))/0xd);if(_0x448d2f===_0x1a4e4b)break;else _0x174ffd['push'](_0x174ffd['shift']());}catch(_0x2073e5){_0x174ffd['push'](_0x174ffd['shift']());}}}(a139_0x2248,0xc220e));export function validateLimitOption(_0x47b594){const _0x419d1e=a139_0x1431;if(!Number['isInteger'](_0x47b594))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x47b594+_0x419d1e(0x1b2)};if(_0x47b594<=0x0)return{'isValid':![],'error':_0x419d1e(0x1b0)+_0x47b594+_0x419d1e(0x1ab)};return{'isValid':!![],'value':_0x47b594};}export function validateTimeoutOption(_0x15f770,_0x21589f=0x1e){const _0x7ae83f=a139_0x1431;if(_0x15f770===undefined)return{'isValid':!![],'value':_0x21589f};const _0x297b68=typeof _0x15f770===_0x7ae83f(0x1a8)?_0x15f770:parseFloat(_0x15f770);if(isNaN(_0x297b68))return{'isValid':![],'error':_0x7ae83f(0x1a5)+_0x15f770+'.\x20Must\x20be\x20a\x20number.'};if(_0x297b68<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x297b68+_0x7ae83f(0x1aa)};return{'isValid':!![],'value':_0x297b68};}function a139_0x1431(_0x5f4178,_0x40927c){_0x5f4178=_0x5f4178-0x1a5;const _0x224898=a139_0x2248();let _0x143101=_0x224898[_0x5f4178];return _0x143101;}function a139_0x2248(){const _0x47c5fe=['.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','225731AccFbI','12DvGGyK','3024CQRqfV','6400953hfDVjv','Invalid\x20limit\x20value:\x20','15zSWGrT','.\x20Must\x20be\x20an\x20integer.','227864inxXwY','1182THZqrR','170anwpml','6172FLwjar','9027963QAkWcb','Invalid\x20timeout\x20value:\x20','1772814AoFGby','13qxWOod','number','24458apFEuC'];a139_0x2248=function(){return _0x47c5fe;};return a139_0x2248();}
1
+ function a141_0x1352(){const _0x216f38=['.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','.\x20Must\x20be\x20an\x20integer.','8abLHOS','849350ActGWM','3731838BvCQkx','63RBSyqK','Invalid\x20timeout\x20value:\x20','3qmvtaU','12bOcExK','2770472KwUAKR','2370qWjClR','Invalid\x20limit\x20value:\x20','3454016aNDmrU','7610TQfYds','476693qyHLXd','number','80213YBXqZk'];a141_0x1352=function(){return _0x216f38;};return a141_0x1352();}(function(_0x3a6ff4,_0x4d5662){const _0x39d036=a141_0x1d95,_0x285c5a=_0x3a6ff4();while(!![]){try{const _0x25431f=parseInt(_0x39d036(0xe3))/0x1*(-parseInt(_0x39d036(0xe7))/0x2)+parseInt(_0x39d036(0xec))/0x3*(parseInt(_0x39d036(0xee))/0x4)+parseInt(_0x39d036(0xf2))/0x5*(-parseInt(_0x39d036(0xef))/0x6)+-parseInt(_0x39d036(0xe1))/0x7+parseInt(_0x39d036(0xf1))/0x8+-parseInt(_0x39d036(0xea))/0x9*(-parseInt(_0x39d036(0xe8))/0xa)+-parseInt(_0x39d036(0xe9))/0xb*(parseInt(_0x39d036(0xed))/0xc);if(_0x25431f===_0x4d5662)break;else _0x285c5a['push'](_0x285c5a['shift']());}catch(_0x51c454){_0x285c5a['push'](_0x285c5a['shift']());}}}(a141_0x1352,0x5f18c));function a141_0x1d95(_0x516f2b,_0x316f80){_0x516f2b=_0x516f2b-0xe1;const _0x135277=a141_0x1352();let _0x1d950e=_0x135277[_0x516f2b];return _0x1d950e;}export function validateLimitOption(_0x513790){const _0x24bb73=a141_0x1d95;if(!Number[_0x24bb73(0xe5)](_0x513790))return{'isValid':![],'error':_0x24bb73(0xf0)+_0x513790+_0x24bb73(0xe6)};if(_0x513790<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x513790+_0x24bb73(0xe4)};return{'isValid':!![],'value':_0x513790};}export function validateTimeoutOption(_0x46155b,_0x5be005=0x1e){const _0x1098b7=a141_0x1d95;if(_0x46155b===undefined)return{'isValid':!![],'value':_0x5be005};const _0x396d83=typeof _0x46155b===_0x1098b7(0xe2)?_0x46155b:parseFloat(_0x46155b);if(isNaN(_0x396d83))return{'isValid':![],'error':_0x1098b7(0xeb)+_0x46155b+'.\x20Must\x20be\x20a\x20number.'};if(_0x396d83<=0x0)return{'isValid':![],'error':_0x1098b7(0xeb)+_0x396d83+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x396d83};}
@@ -1 +1 @@
1
- (function(_0x4741de,_0x26a75d){const _0x2479a0=a140_0x6895,_0x235401=_0x4741de();while(!![]){try{const _0x4fa230=parseInt(_0x2479a0(0x12d))/0x1*(parseInt(_0x2479a0(0x132))/0x2)+parseInt(_0x2479a0(0x12f))/0x3*(-parseInt(_0x2479a0(0x121))/0x4)+-parseInt(_0x2479a0(0x12a))/0x5+-parseInt(_0x2479a0(0x129))/0x6*(-parseInt(_0x2479a0(0x122))/0x7)+-parseInt(_0x2479a0(0x127))/0x8+-parseInt(_0x2479a0(0x12b))/0x9*(parseInt(_0x2479a0(0x124))/0xa)+parseInt(_0x2479a0(0x128))/0xb;if(_0x4fa230===_0x26a75d)break;else _0x235401['push'](_0x235401['shift']());}catch(_0x551b16){_0x235401['push'](_0x235401['shift']());}}}(a140_0x4b41,0x8b6da));function a140_0x4b41(){const _0x1adf12=['67690VvBEBC','No\x20available\x20port\x20found\x20between\x20','EADDRINUSE','6529656NhJdXk','29011455ZqySIm','3623682jnmwGI','4753875JiQbMI','1143DLubMc','listening','5utCINE','once','196572jWOyTN','listen','code','139814rbvkHY','\x20and\x20','24KWqISy','7jCITaT','error'];a140_0x4b41=function(){return _0x1adf12;};return a140_0x4b41();}function a140_0x6895(_0x261c40,_0x35b4cd){_0x261c40=_0x261c40-0x121;const _0x4b4188=a140_0x4b41();let _0x6895db=_0x4b4188[_0x261c40];return _0x6895db;}import{createServer}from'node:net';export async function isPortAvailable(_0x47a17d){return new Promise(_0x33273a=>{const _0x385b2e=a140_0x6895,_0x10ab85=createServer();_0x10ab85['once'](_0x385b2e(0x123),_0x48848a=>{const _0x16c225=_0x385b2e;_0x48848a[_0x16c225(0x131)]===_0x16c225(0x126)?_0x33273a(![]):_0x33273a(![]);}),_0x10ab85[_0x385b2e(0x12e)](_0x385b2e(0x12c),()=>{_0x10ab85['close'](),_0x33273a(!![]);}),_0x10ab85[_0x385b2e(0x130)](_0x47a17d,'0.0.0.0');});}export async function findAvailablePort(_0x7b7d04=0xfa0,_0x1eebd7=0x64){const _0x751e98=a140_0x6895;for(let _0x35a210=0x0;_0x35a210<_0x1eebd7;_0x35a210++){const _0x2d19bb=_0x7b7d04+_0x35a210;if(await isPortAvailable(_0x2d19bb))return _0x2d19bb;}throw new Error(_0x751e98(0x125)+_0x7b7d04+_0x751e98(0x133)+(_0x7b7d04+_0x1eebd7-0x1));}
1
+ (function(_0x3fee4c,_0x177389){const _0x2aa513=a142_0x4974,_0x2a0e06=_0x3fee4c();while(!![]){try{const _0x2eee45=parseInt(_0x2aa513(0x14c))/0x1+-parseInt(_0x2aa513(0x14a))/0x2*(parseInt(_0x2aa513(0x158))/0x3)+-parseInt(_0x2aa513(0x152))/0x4*(-parseInt(_0x2aa513(0x159))/0x5)+parseInt(_0x2aa513(0x14e))/0x6+-parseInt(_0x2aa513(0x155))/0x7+parseInt(_0x2aa513(0x14f))/0x8+parseInt(_0x2aa513(0x157))/0x9*(-parseInt(_0x2aa513(0x154))/0xa);if(_0x2eee45===_0x177389)break;else _0x2a0e06['push'](_0x2a0e06['shift']());}catch(_0x317a68){_0x2a0e06['push'](_0x2a0e06['shift']());}}}(a142_0x36f2,0x68ae6));import{createServer}from'node:net';export async function isPortAvailable(_0x377fb8){return new Promise(_0x3ebae1=>{const _0x31544d=a142_0x4974,_0x5c5666=createServer();_0x5c5666[_0x31544d(0x149)]('error',_0x414ec1=>{const _0x4e5280=_0x31544d;_0x414ec1[_0x4e5280(0x14d)]===_0x4e5280(0x156)?_0x3ebae1(![]):_0x3ebae1(![]);}),_0x5c5666[_0x31544d(0x149)](_0x31544d(0x151),()=>{const _0x183742=_0x31544d;_0x5c5666[_0x183742(0x14b)](),_0x3ebae1(!![]);}),_0x5c5666['listen'](_0x377fb8,_0x31544d(0x150));});}export async function findAvailablePort(_0x53170d=0xfa0,_0x990eea=0x64){const _0x338b5c=a142_0x4974;for(let _0x14c1b1=0x0;_0x14c1b1<_0x990eea;_0x14c1b1++){const _0x114cc8=_0x53170d+_0x14c1b1;if(await isPortAvailable(_0x114cc8))return _0x114cc8;}throw new Error(_0x338b5c(0x15a)+_0x53170d+_0x338b5c(0x153)+(_0x53170d+_0x990eea-0x1));}function a142_0x4974(_0x16e69a,_0x1d5162){_0x16e69a=_0x16e69a-0x149;const _0x36f284=a142_0x36f2();let _0x497431=_0x36f284[_0x16e69a];return _0x497431;}function a142_0x36f2(){const _0x1f3db8=['No\x20available\x20port\x20found\x20between\x20','once','58pzxujN','close','387517ApCKZq','code','3891156bXygqQ','6794576RJLgVR','0.0.0.0','listening','627952qbFIGT','\x20and\x20','10yCCgdb','5317193TicAhU','EADDRINUSE','4644387Uxkhvj','34959CJxDWV','5HEcZzj'];a142_0x36f2=function(){return _0x1f3db8;};return a142_0x36f2();}
@@ -1 +1 @@
1
- const a141_0x58dfba=a141_0x3584;function a141_0x28d9(){const _0x1670d3=['xdg-open','tcsh','comm','23bxyMmu','fish','ppid','platform','trim','join','wmic\x20process\x20where\x20ProcessId=','ignore','pop','ksh','5zAgfXr','2980180hSGQzQ','ps\x20-p\x20','48HNFcLd','133690xcEKyU','dash','214312XzSAyW','toLowerCase','csh','start','xonsh','pid','5702RJWEqB','claude','open','pwsh','14693140aOAVuu','6662360QPlCVo','powershell','\x20-o\x20ppid=,comm=','win32','elvish','567AfRFfi','bash','utf-8','zsh','ion','length','isInteger','has','split','3532128vDcPcT'];a141_0x28d9=function(){return _0x1670d3;};return a141_0x28d9();}(function(_0x39d721,_0x26bb2b){const _0x45621a=a141_0x3584,_0x4577e0=_0x39d721();while(!![]){try{const _0x423166=parseInt(_0x45621a(0x144))/0x1*(-parseInt(_0x45621a(0x15a))/0x2)+parseInt(_0x45621a(0x151))/0x3*(-parseInt(_0x45621a(0x154))/0x4)+parseInt(_0x45621a(0x14e))/0x5*(parseInt(_0x45621a(0x140))/0x6)+parseInt(_0x45621a(0x14f))/0x7+parseInt(_0x45621a(0x15f))/0x8+parseInt(_0x45621a(0x164))/0x9*(parseInt(_0x45621a(0x152))/0xa)+-parseInt(_0x45621a(0x15e))/0xb;if(_0x423166===_0x26bb2b)break;else _0x4577e0['push'](_0x4577e0['shift']());}catch(_0x3cbe5c){_0x4577e0['push'](_0x4577e0['shift']());}}}(a141_0x28d9,0x6933d));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a141_0x58dfba(0x165),a141_0x58dfba(0x167),'sh',a141_0x58dfba(0x145),a141_0x58dfba(0x14d),a141_0x58dfba(0x142),a141_0x58dfba(0x156),a141_0x58dfba(0x153),a141_0x58dfba(0x15d),a141_0x58dfba(0x160),'nu',a141_0x58dfba(0x168),a141_0x58dfba(0x163),a141_0x58dfba(0x158)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a141_0x58dfba(0x15b),'code','cursor']);function getProcessInfoWindows(_0x5a0d9a){const _0x40a3f5=a141_0x58dfba;try{if(!Number['isInteger'](_0x5a0d9a)||_0x5a0d9a<=0x0)return null;const _0x28118d=execSync(_0x40a3f5(0x14a)+_0x5a0d9a+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x40a3f5(0x166),'windowsHide':!![]})[_0x40a3f5(0x148)](),_0x972308=_0x28118d['split']('\x0a')['filter'](_0x3e85a7=>_0x3e85a7[_0x40a3f5(0x148)]());if(_0x972308['length']<0x2)return null;const _0x5a000d=_0x972308[_0x972308[_0x40a3f5(0x169)]-0x1][_0x40a3f5(0x13f)](',');if(_0x5a000d[_0x40a3f5(0x169)]<0x3)return null;const _0x1d50aa=_0x5a000d[0x1]?.[_0x40a3f5(0x148)]()||'',_0x59b90b=parseInt(_0x5a000d[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x59b90b)||!_0x1d50aa)return null;return{'pid':_0x5a0d9a,'ppid':_0x59b90b,'comm':_0x1d50aa['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x4bd798){const _0xe04226=a141_0x58dfba;try{const _0x87a12=0x400000;if(!Number[_0xe04226(0x16a)](_0x4bd798)||_0x4bd798<=0x0||_0x4bd798>_0x87a12)return null;const _0x26399a=execSync(_0xe04226(0x150)+_0x4bd798+_0xe04226(0x161),{'encoding':_0xe04226(0x166),'stdio':'pipe'})[_0xe04226(0x148)](),[_0x22f095,..._0xcc844b]=_0x26399a[_0xe04226(0x13f)](/\s+/),_0x3eb3f6=parseInt(_0x22f095,0xa),_0x45fb49=_0xcc844b[_0xe04226(0x149)]('\x20');if(isNaN(_0x3eb3f6))return null;return{'pid':_0x4bd798,'ppid':_0x3eb3f6,'comm':_0x45fb49};}catch{return null;}}function getProcessInfo(_0x2cfeeb){const _0x5b370b=a141_0x58dfba;if(process[_0x5b370b(0x147)]===_0x5b370b(0x162))return getProcessInfoWindows(_0x2cfeeb);return getProcessInfoPosix(_0x2cfeeb);}function getBasename(_0x4e823d){const _0x23aa2d=a141_0x58dfba;return _0x4e823d['replace'](/^-/,'')[_0x23aa2d(0x13f)]('/')[_0x23aa2d(0x14c)]()?.[_0x23aa2d(0x155)]()||'';}function isShell(_0x1549d7){return SHELL_NAMES['has'](getBasename(_0x1549d7));}function isEphemeralShellSpawner(_0x185428){const _0x190472=a141_0x58dfba;return EPHEMERAL_SHELL_SPAWNERS[_0x190472(0x16b)](getBasename(_0x185428));}let cachedShellPID;function a141_0x3584(_0x59860b,_0x19b48a){_0x59860b=_0x59860b-0x13f;const _0x28d964=a141_0x28d9();let _0x358423=_0x28d964[_0x59860b];return _0x358423;}function findShellPID(){const _0x4e9f2f=a141_0x58dfba;if(process[_0x4e9f2f(0x146)]===undefined)return process['pid'];let _0x3e9a58=process['ppid'];const _0x3db7c1=0xa;let _0x2fc497=0x0;while(_0x2fc497<_0x3db7c1){const _0x36a4a2=getProcessInfo(_0x3e9a58);if(!_0x36a4a2)break;if(isShell(_0x36a4a2['comm'])){const _0x1d353d=getProcessInfo(_0x36a4a2[_0x4e9f2f(0x146)]);if(_0x1d353d&&isEphemeralShellSpawner(_0x1d353d[_0x4e9f2f(0x143)])){_0x3e9a58=_0x36a4a2[_0x4e9f2f(0x146)],_0x2fc497++;continue;}return _0x36a4a2[_0x4e9f2f(0x159)];}if(_0x36a4a2['ppid']===0x0||_0x36a4a2[_0x4e9f2f(0x146)]===0x1){if(isShell(_0x36a4a2[_0x4e9f2f(0x143)]))return _0x36a4a2['pid'];break;}_0x3e9a58=_0x36a4a2['ppid'],_0x2fc497++;}return process['ppid']!==undefined?process[_0x4e9f2f(0x146)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4a9fc3){const _0x53014a=a141_0x58dfba;if(!Number[_0x53014a(0x16a)](_0x4a9fc3)||_0x4a9fc3<=0x0)return![];try{return process['kill'](_0x4a9fc3,0x0),!![];}catch{return![];}}export function openBrowser(_0x4f1348){const _0x2daefe=a141_0x58dfba,_0x3a24b0=process[_0x2daefe(0x147)],_0x466b1a=_0x3a24b0==='darwin'?_0x2daefe(0x15c):_0x3a24b0===_0x2daefe(0x162)?_0x2daefe(0x157):_0x2daefe(0x141);spawn(_0x466b1a,[_0x4f1348],{'detached':!![],'stdio':_0x2daefe(0x14b)})['unref']();}
1
+ const a143_0x5afb32=a143_0x338a;(function(_0x3e090d,_0x4773e3){const _0x228a8b=a143_0x338a,_0x8fdd1f=_0x3e090d();while(!![]){try{const _0x3672e8=-parseInt(_0x228a8b(0x117))/0x1+-parseInt(_0x228a8b(0x112))/0x2*(parseInt(_0x228a8b(0x10c))/0x3)+-parseInt(_0x228a8b(0xff))/0x4+-parseInt(_0x228a8b(0xf1))/0x5+-parseInt(_0x228a8b(0xfc))/0x6*(-parseInt(_0x228a8b(0xfe))/0x7)+-parseInt(_0x228a8b(0x10d))/0x8*(parseInt(_0x228a8b(0xf8))/0x9)+-parseInt(_0x228a8b(0x116))/0xa*(-parseInt(_0x228a8b(0x102))/0xb);if(_0x3672e8===_0x4773e3)break;else _0x8fdd1f['push'](_0x8fdd1f['shift']());}catch(_0x113978){_0x8fdd1f['push'](_0x8fdd1f['shift']());}}}(a143_0x1ecf,0x253d2));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a143_0x5afb32(0x103),a143_0x5afb32(0xf2),'sh',a143_0x5afb32(0x104),'ksh',a143_0x5afb32(0xfd),a143_0x5afb32(0x106),'dash',a143_0x5afb32(0x11a),a143_0x5afb32(0xee),'nu',a143_0x5afb32(0x111),a143_0x5afb32(0xf0),a143_0x5afb32(0x10e)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a143_0x5afb32(0xfa),a143_0x5afb32(0x115),a143_0x5afb32(0x11b)]);function getProcessInfoWindows(_0x581c58){const _0x1b8b6a=a143_0x5afb32;try{if(!Number[_0x1b8b6a(0x119)](_0x581c58)||_0x581c58<=0x0)return null;const _0x147a8b=execSync(_0x1b8b6a(0x10a)+_0x581c58+_0x1b8b6a(0xf4),{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x5e35d4=_0x147a8b[_0x1b8b6a(0x101)]('\x0a')[_0x1b8b6a(0x110)](_0x47c675=>_0x47c675['trim']());if(_0x5e35d4[_0x1b8b6a(0x114)]<0x2)return null;const _0x1eddf1=_0x5e35d4[_0x5e35d4[_0x1b8b6a(0x114)]-0x1]['split'](',');if(_0x1eddf1[_0x1b8b6a(0x114)]<0x3)return null;const _0x47803b=_0x1eddf1[0x1]?.['trim']()||'',_0x4b6f39=parseInt(_0x1eddf1[0x2]?.[_0x1b8b6a(0xf5)]()||'0',0xa);if(isNaN(_0x4b6f39)||!_0x47803b)return null;return{'pid':_0x581c58,'ppid':_0x4b6f39,'comm':_0x47803b[_0x1b8b6a(0x109)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x54f2fb){const _0x243558=a143_0x5afb32;try{const _0x37928b=0x400000;if(!Number[_0x243558(0x119)](_0x54f2fb)||_0x54f2fb<=0x0||_0x54f2fb>_0x37928b)return null;const _0x481934=execSync(_0x243558(0x107)+_0x54f2fb+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x243558(0x113)})['trim'](),[_0x1c5e05,..._0x490426]=_0x481934['split'](/\s+/),_0x56d9a5=parseInt(_0x1c5e05,0xa),_0x4ae17d=_0x490426['join']('\x20');if(isNaN(_0x56d9a5))return null;return{'pid':_0x54f2fb,'ppid':_0x56d9a5,'comm':_0x4ae17d};}catch{return null;}}function getProcessInfo(_0x4577d7){const _0x19ab26=a143_0x5afb32;if(process[_0x19ab26(0x10b)]===_0x19ab26(0xf6))return getProcessInfoWindows(_0x4577d7);return getProcessInfoPosix(_0x4577d7);}function getBasename(_0x33281e){const _0x3fb703=a143_0x5afb32;return _0x33281e[_0x3fb703(0x109)](/^-/,'')[_0x3fb703(0x101)]('/')[_0x3fb703(0xfb)]()?.['toLowerCase']()||'';}function a143_0x338a(_0xd8b6fa,_0xd6be53){_0xd8b6fa=_0xd8b6fa-0xee;const _0x1ecf4f=a143_0x1ecf();let _0x338aa1=_0x1ecf4f[_0xd8b6fa];return _0x338aa1;}function isShell(_0x1c6baa){const _0x5c3f99=a143_0x5afb32;return SHELL_NAMES[_0x5c3f99(0x10f)](getBasename(_0x1c6baa));}function a143_0x1ecf(){const _0x302480=['platform','48ERHryh','1736qtVDQw','xonsh','has','filter','ion','36724LZhptk','pipe','length','code','11320570WDjbTD','130937eXtaLx','pid','isInteger','pwsh','cursor','powershell','darwin','elvish','495530sjJBAo','zsh','comm','\x20get\x20ParentProcessId,Name\x20/format:csv','trim','win32','open','8784zAgeaU','ppid','claude','pop','5862XHRsQW','tcsh','273SbBANI','1128012rsDPch','unref','split','11HxTMGo','bash','fish','xdg-open','csh','ps\x20-p\x20','start','replace','wmic\x20process\x20where\x20ProcessId='];a143_0x1ecf=function(){return _0x302480;};return a143_0x1ecf();}function isEphemeralShellSpawner(_0x25c712){const _0x254506=a143_0x5afb32;return EPHEMERAL_SHELL_SPAWNERS[_0x254506(0x10f)](getBasename(_0x25c712));}let cachedShellPID;function findShellPID(){const _0x490e43=a143_0x5afb32;if(process[_0x490e43(0xf9)]===undefined)return process[_0x490e43(0x118)];let _0x235abd=process[_0x490e43(0xf9)];const _0x4e2c6b=0xa;let _0x283156=0x0;while(_0x283156<_0x4e2c6b){const _0x2bb3d6=getProcessInfo(_0x235abd);if(!_0x2bb3d6)break;if(isShell(_0x2bb3d6['comm'])){const _0x5714a3=getProcessInfo(_0x2bb3d6[_0x490e43(0xf9)]);if(_0x5714a3&&isEphemeralShellSpawner(_0x5714a3['comm'])){_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;continue;}return _0x2bb3d6[_0x490e43(0x118)];}if(_0x2bb3d6[_0x490e43(0xf9)]===0x0||_0x2bb3d6['ppid']===0x1){if(isShell(_0x2bb3d6[_0x490e43(0xf3)]))return _0x2bb3d6[_0x490e43(0x118)];break;}_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;}return process[_0x490e43(0xf9)]!==undefined?process[_0x490e43(0xf9)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x52a6cf){const _0x38b434=a143_0x5afb32;if(!Number[_0x38b434(0x119)](_0x52a6cf)||_0x52a6cf<=0x0)return![];try{return process['kill'](_0x52a6cf,0x0),!![];}catch{return![];}}export function openBrowser(_0x4d824a){const _0x1e3eb9=a143_0x5afb32,_0x364b63=process['platform'],_0xb2773=_0x364b63===_0x1e3eb9(0xef)?_0x1e3eb9(0xf7):_0x364b63===_0x1e3eb9(0xf6)?_0x1e3eb9(0x108):_0x1e3eb9(0x105);spawn(_0xb2773,[_0x4d824a],{'detached':!![],'stdio':'ignore'})[_0x1e3eb9(0x100)]();}
@@ -1 +1 @@
1
- (function(_0x41d9bd,_0x1d58fb){const _0x354b97=a142_0x56fc,_0x40e803=_0x41d9bd();while(!![]){try{const _0x3669b3=parseInt(_0x354b97(0x1b7))/0x1+-parseInt(_0x354b97(0x1b4))/0x2*(-parseInt(_0x354b97(0x1ad))/0x3)+-parseInt(_0x354b97(0x1b2))/0x4*(parseInt(_0x354b97(0x1b6))/0x5)+parseInt(_0x354b97(0x1a8))/0x6*(-parseInt(_0x354b97(0x1be))/0x7)+-parseInt(_0x354b97(0x1c3))/0x8*(-parseInt(_0x354b97(0x1b1))/0x9)+parseInt(_0x354b97(0x1a7))/0xa+-parseInt(_0x354b97(0x1ae))/0xb;if(_0x3669b3===_0x1d58fb)break;else _0x40e803['push'](_0x40e803['shift']());}catch(_0x1aa3da){_0x40e803['push'](_0x40e803['shift']());}}}(a142_0x2eb3,0xd859f));import*as a142_0x384828 from'readline';export async function confirm(_0x3042e1){const _0x4b83e5=a142_0x56fc,_0x4c1bc5=a142_0x384828[_0x4b83e5(0x1aa)]({'input':process[_0x4b83e5(0x1bc)],'output':process[_0x4b83e5(0x1ab)]});return new Promise(_0x27d45=>{const _0x21a365=_0x4b83e5;_0x4c1bc5[_0x21a365(0x1b9)](_0x3042e1+_0x21a365(0x1c2),_0x5ab1ca=>{const _0x243e1b=_0x21a365;_0x4c1bc5['close'](),_0x27d45(_0x5ab1ca[_0x243e1b(0x1ba)]()==='y'||_0x5ab1ca[_0x243e1b(0x1ba)]()===_0x243e1b(0x1bd));});});}export async function confirmKey(_0x4db531){const _0x1993b2=a142_0x56fc;if(!process[_0x1993b2(0x1bc)][_0x1993b2(0x1bb)])return![];return process[_0x1993b2(0x1b3)]['write'](_0x4db531+_0x1993b2(0x1b0)),new Promise(_0x4b4e4e=>{const _0x270785=_0x1993b2,_0x295840=process[_0x270785(0x1bc)];_0x295840[_0x270785(0x1a9)](!![]),_0x295840[_0x270785(0x1ac)](),_0x295840[_0x270785(0x1c0)](_0x270785(0x1af));const _0x5bb9df=_0x277bf7=>{const _0x2a461c=_0x270785;_0x295840[_0x2a461c(0x1a9)](![]),_0x295840[_0x2a461c(0x1b8)](),_0x295840[_0x2a461c(0x1c1)]('data',_0x5bb9df);if(_0x277bf7==='\x1b'){process['stderr'][_0x2a461c(0x1bf)]('\x0a'),_0x4b4e4e(![]);return;}_0x277bf7==='\x03'&&(process[_0x2a461c(0x1b3)]['write']('\x0a'),process['exit'](0x82));if(_0x277bf7[_0x2a461c(0x1ba)]()==='y'){process[_0x2a461c(0x1b3)]['write']('y\x0a'),_0x4b4e4e(!![]);return;}process[_0x2a461c(0x1b3)][_0x2a461c(0x1bf)]('\x0a'),_0x4b4e4e(![]);};_0x295840['on'](_0x270785(0x1b5),_0x5bb9df);});}function a142_0x56fc(_0x56a1c4,_0x2e4288){_0x56a1c4=_0x56a1c4-0x1a7;const _0x2eb3d1=a142_0x2eb3();let _0x56fc0f=_0x2eb3d1[_0x56a1c4];return _0x56fc0f;}function a142_0x2eb3(){const _0x5c4215=['8754420gOFfFR','162942gHgvwx','setRawMode','createInterface','stdout','resume','2900289kagZbD','3791997oboQzA','utf8','\x20[y/N]\x20','2366577kCXsdN','1132FHwGdg','stderr','2uAmpDc','data','25175qecEBM','1155414dDyVTH','pause','question','toLowerCase','isTTY','stdin','yes','427gApImX','write','setEncoding','removeListener','\x20(y/N):\x20','40nhpFOf'];a142_0x2eb3=function(){return _0x5c4215;};return a142_0x2eb3();}
1
+ function a144_0x8a1e(_0x290d5c,_0x948361){_0x290d5c=_0x290d5c-0xa6;const _0x102a4b=a144_0x102a();let _0x8a1e65=_0x102a4b[_0x290d5c];return _0x8a1e65;}(function(_0x59e2fd,_0x48c33d){const _0x458fcb=a144_0x8a1e,_0x560891=_0x59e2fd();while(!![]){try{const _0x29ee67=-parseInt(_0x458fcb(0xa9))/0x1*(-parseInt(_0x458fcb(0xb5))/0x2)+parseInt(_0x458fcb(0xab))/0x3*(parseInt(_0x458fcb(0xb1))/0x4)+parseInt(_0x458fcb(0xae))/0x5+-parseInt(_0x458fcb(0xb0))/0x6+parseInt(_0x458fcb(0xa8))/0x7*(-parseInt(_0x458fcb(0xaf))/0x8)+parseInt(_0x458fcb(0xb8))/0x9*(parseInt(_0x458fcb(0xb4))/0xa)+-parseInt(_0x458fcb(0xbc))/0xb;if(_0x29ee67===_0x48c33d)break;else _0x560891['push'](_0x560891['shift']());}catch(_0x89a78e){_0x560891['push'](_0x560891['shift']());}}}(a144_0x102a,0x24d1d));import*as a144_0x47efd3 from'readline';export async function confirm(_0x580bec){const _0x1c8060=a144_0x8a1e,_0x46b518=a144_0x47efd3['createInterface']({'input':process[_0x1c8060(0xaa)],'output':process[_0x1c8060(0xa6)]});return new Promise(_0xf27abf=>{const _0x11f68d=_0x1c8060;_0x46b518[_0x11f68d(0xb6)](_0x580bec+'\x20(y/N):\x20',_0x547689=>{const _0x121138=_0x11f68d;_0x46b518['close'](),_0xf27abf(_0x547689[_0x121138(0xac)]()==='y'||_0x547689[_0x121138(0xac)]()===_0x121138(0xb3));});});}export async function confirmKey(_0x41a1d9){const _0x2044ba=a144_0x8a1e;if(!process[_0x2044ba(0xaa)]['isTTY'])return![];return process[_0x2044ba(0xba)]['write'](_0x41a1d9+'\x20[y/N]\x20'),new Promise(_0x104f7a=>{const _0x27632d=_0x2044ba,_0x2334e2=process['stdin'];_0x2334e2[_0x27632d(0xad)](!![]),_0x2334e2['resume'](),_0x2334e2['setEncoding'](_0x27632d(0xb7));const _0x5d5458=_0x462075=>{const _0x2997d0=_0x27632d;_0x2334e2[_0x2997d0(0xad)](![]),_0x2334e2['pause'](),_0x2334e2[_0x2997d0(0xb2)](_0x2997d0(0xb9),_0x5d5458);if(_0x462075==='\x1b'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('\x0a'),_0x104f7a(![]);return;}_0x462075==='\x03'&&(process[_0x2997d0(0xba)]['write']('\x0a'),process[_0x2997d0(0xa7)](0x82));if(_0x462075[_0x2997d0(0xac)]()==='y'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('y\x0a'),_0x104f7a(!![]);return;}process[_0x2997d0(0xba)]['write']('\x0a'),_0x104f7a(![]);};_0x2334e2['on']('data',_0x5d5458);});}function a144_0x102a(){const _0x1b1e16=['exit','15281DZgNGQ','145777obinip','stdin','620439oYodoe','toLowerCase','setRawMode','1504805RMmCWf','152DftRkl','195006NQmIns','4nrJSrj','removeListener','yes','26070afgQlF','4aBnFuz','question','utf8','927kqRFxp','data','stderr','write','9273638ZKkuUW','stdout'];a144_0x102a=function(){return _0x1b1e16;};return a144_0x102a();}
@@ -1 +1 @@
1
- (function(_0x2f9380,_0x4f637f){const _0x562cd0=a143_0x2943,_0x44d084=_0x2f9380();while(!![]){try{const _0x34223a=-parseInt(_0x562cd0(0x172))/0x1+-parseInt(_0x562cd0(0x185))/0x2+parseInt(_0x562cd0(0x183))/0x3+parseInt(_0x562cd0(0x17c))/0x4+-parseInt(_0x562cd0(0x169))/0x5*(parseInt(_0x562cd0(0x179))/0x6)+parseInt(_0x562cd0(0x182))/0x7*(parseInt(_0x562cd0(0x17a))/0x8)+-parseInt(_0x562cd0(0x178))/0x9*(parseInt(_0x562cd0(0x181))/0xa);if(_0x34223a===_0x4f637f)break;else _0x44d084['push'](_0x44d084['shift']());}catch(_0x710a80){_0x44d084['push'](_0x44d084['shift']());}}}(a143_0x195a,0x9d800));import a143_0x55daef from'ora';export function createCommandSpinner(_0x3fd479,_0x217a63={}){const _0xf707b4=a143_0x2943,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x217a63;return a143_0x55daef({'text':_0x3fd479,'color':_0xf707b4(0x170),'stream':process[_0xf707b4(0x171)],'isEnabled':forceEnabled||process[_0xf707b4(0x171)][_0xf707b4(0x17b)]&&!verbose});}function a143_0x2943(_0x3a4d5a,_0x16617f){_0x3a4d5a=_0x3a4d5a-0x169;const _0x195ae6=a143_0x195a();let _0x2943fe=_0x195ae6[_0x3a4d5a];return _0x2943fe;}export async function withSpinner(_0x20e3a5,_0x2aa98f,_0x19a7ac={}){const _0x2cf018=a143_0x2943,_0x80fe5e=_0x19a7ac[_0x2cf018(0x176)]??(()=>Date[_0x2cf018(0x17d)]()),_0x1b0f71=createCommandSpinner(_0x20e3a5,_0x19a7ac);_0x1b0f71[_0x2cf018(0x17f)]();const _0x2cf08a=_0x80fe5e();try{const _0x1e5665=await _0x2aa98f(),_0x39b564=_0x80fe5e()-_0x2cf08a;return _0x1b0f71[_0x2cf018(0x17e)](),{'data':_0x1e5665,'elapsedMs':_0x39b564};}catch(_0x14c724){_0x1b0f71[_0x2cf018(0x17e)]();throw _0x14c724;}}export async function withProgressSpinner(_0x3797f4,_0x154ce9,_0x3d9cb8={}){const _0x5a52ca=a143_0x2943,_0x451ddd=_0x3d9cb8['clock']??(()=>Date[_0x5a52ca(0x17d)]()),_0x1d675d=_0x3d9cb8[_0x5a52ca(0x184)]??setInterval,_0xae6f40=createCommandSpinner(_0x3797f4,_0x3d9cb8);_0xae6f40['start']();const _0x3a1eaa=_0x451ddd(),_0x2c01d3=_0x3797f4[_0x5a52ca(0x16e)](_0x5a52ca(0x16b),'')[_0x5a52ca(0x180)]()||_0x5a52ca(0x173),_0x21f5e3={};let _0xd57ccb=_0x3797f4;const _0xacf3=()=>{const _0xc5db2f=_0x5a52ca;if(!_0xae6f40[_0xc5db2f(0x186)])return;const _0x1fe7ac=_0x451ddd()-_0x3a1eaa,_0x472976=formatElapsed(_0x1fe7ac),_0x339353=_0x21f5e3[_0xc5db2f(0x16f)]?.[_0xc5db2f(0x180)]()||_0x2c01d3,_0x11e5b4=_0x21f5e3[_0xc5db2f(0x174)]?_0xc5db2f(0x16d)+_0x21f5e3[_0xc5db2f(0x174)]+']':'',_0x4e9448=_0x21f5e3[_0xc5db2f(0x16c)]?'\x20'+_0x21f5e3[_0xc5db2f(0x16c)]:'',_0x5e2470=_0x339353+'\x20'+_0x472976+_0x4e9448+_0x11e5b4;_0x5e2470!==_0xd57ccb&&_0x5e2470[_0xc5db2f(0x180)]()&&(_0xae6f40[_0xc5db2f(0x177)]=_0x5e2470,_0xd57ccb=_0x5e2470);},_0x108c38=_0x1d675d(()=>{_0xacf3();},0x3e8),_0x372810={'setPhase':_0x5516a2=>{const _0x2255d8=_0x5a52ca;_0x21f5e3[_0x2255d8(0x16f)]=_0x5516a2;const _0x3a28a7=_0x5516a2?.[_0x2255d8(0x180)]()||_0x2c01d3,_0x3d3d06=_0x451ddd()-_0x3a1eaa,_0x31e0d6=formatElapsed(_0x3d3d06),_0x473753=_0x21f5e3[_0x2255d8(0x174)]?_0x2255d8(0x16d)+_0x21f5e3[_0x2255d8(0x174)]+']':'',_0x5ebf76=_0x21f5e3[_0x2255d8(0x16c)]?'\x20'+_0x21f5e3[_0x2255d8(0x16c)]:'',_0x519388=_0x3a28a7+'\x20'+_0x31e0d6+_0x5ebf76+_0x473753;_0xae6f40['isSpinning']&&_0x519388[_0x2255d8(0x180)]()&&(_0xae6f40['text']=_0x519388,_0xd57ccb=_0x519388);},'setJobId':_0xb9dd13=>{const _0x4d966e=_0x5a52ca;_0x21f5e3[_0x4d966e(0x174)]=_0xb9dd13,_0xacf3();},'setExtra':_0x103702=>{const _0x3c5442=_0x5a52ca;_0x21f5e3[_0x3c5442(0x16c)]=_0x103702,_0xacf3();}};_0xacf3();try{const _0x53e623=await _0x154ce9(_0x372810),_0x302a58=_0x451ddd()-_0x3a1eaa;return{'data':_0x53e623,'elapsedMs':_0x302a58};}finally{clearInterval(_0x108c38),_0xae6f40['stop']();}}export function formatElapsed(_0x1aab6d){const _0x2bdc5a=a143_0x2943,_0x3a9704=Math['floor'](_0x1aab6d/0x3e8);if(_0x3a9704<0x3c)return(_0x1aab6d/0x3e8)[_0x2bdc5a(0x175)](0x1)+'s';const _0x5751c6=Math[_0x2bdc5a(0x16a)](_0x3a9704/0x3c),_0x58d18e=_0x3a9704%0x3c;if(_0x5751c6<0x3c)return _0x5751c6+'m\x20'+_0x58d18e+'s';const _0x587cdd=Math['floor'](_0x5751c6/0x3c),_0x70a32d=_0x5751c6%0x3c;return _0x587cdd+'h\x20'+_0x70a32d+'m';}function a143_0x195a(){const _0x202468=['\x20[Job\x20ID:\x20','replace','phase','cyan','stderr','500579SQhIyT','Processing','jobId','toFixed','clock','text','4554snyaEl','36yoFxwJ','26008chlGmb','isTTY','2801488wuDUBy','now','stop','start','trim','10XhYWMw','707XmxYYt','777729XKBdXv','intervalFactory','46426FSfxKg','isSpinning','98790hgfvKI','floor','...','extra'];a143_0x195a=function(){return _0x202468;};return a143_0x195a();}
1
+ (function(_0x41e37f,_0x29a53a){const _0xf039a3=a145_0x5136,_0xc0def5=_0x41e37f();while(!![]){try{const _0x1e5d64=-parseInt(_0xf039a3(0x155))/0x1*(-parseInt(_0xf039a3(0x16a))/0x2)+-parseInt(_0xf039a3(0x160))/0x3*(parseInt(_0xf039a3(0x164))/0x4)+-parseInt(_0xf039a3(0x15f))/0x5*(parseInt(_0xf039a3(0x153))/0x6)+parseInt(_0xf039a3(0x166))/0x7*(parseInt(_0xf039a3(0x168))/0x8)+parseInt(_0xf039a3(0x161))/0x9+parseInt(_0xf039a3(0x167))/0xa+-parseInt(_0xf039a3(0x15c))/0xb;if(_0x1e5d64===_0x29a53a)break;else _0xc0def5['push'](_0xc0def5['shift']());}catch(_0x2c1c6c){_0xc0def5['push'](_0xc0def5['shift']());}}}(a145_0x6dff,0xc111b));import a145_0x32bec1 from'ora';export function createCommandSpinner(_0x445048,_0x11254d={}){const _0x3b353a=a145_0x5136,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x11254d;return a145_0x32bec1({'text':_0x445048,'color':_0x3b353a(0x163),'stream':process[_0x3b353a(0x156)],'isEnabled':forceEnabled||process[_0x3b353a(0x156)][_0x3b353a(0x16d)]&&!verbose});}export async function withSpinner(_0x37117b,_0x383a19,_0x58f0e8={}){const _0x5a142=a145_0x5136,_0x345fe8=_0x58f0e8[_0x5a142(0x15a)]??(()=>Date[_0x5a142(0x154)]()),_0x28dfd7=createCommandSpinner(_0x37117b,_0x58f0e8);_0x28dfd7[_0x5a142(0x152)]();const _0x221fdb=_0x345fe8();try{const _0x2ecddd=await _0x383a19(),_0x5154b2=_0x345fe8()-_0x221fdb;return _0x28dfd7['stop'](),{'data':_0x2ecddd,'elapsedMs':_0x5154b2};}catch(_0x27d3b7){_0x28dfd7[_0x5a142(0x158)]();throw _0x27d3b7;}}function a145_0x6dff(){const _0x56df2e=['floor','5499142UfBmKb','\x20[Job\x20ID:\x20','Processing','1530245oWtewJ','3MBLCbZ','10394847vtvZDj','toFixed','cyan','233048jwaVTb','isSpinning','14ttjyDu','10313730XeRsWa','1511416LatuQC','replace','210020GJDFvw','jobId','trim','isTTY','text','start','30mpWLMo','now','3kJdIMr','stderr','phase','stop','extra','clock'];a145_0x6dff=function(){return _0x56df2e;};return a145_0x6dff();}function a145_0x5136(_0x47e2dc,_0x2f0f8f){_0x47e2dc=_0x47e2dc-0x152;const _0x6dffe0=a145_0x6dff();let _0x513644=_0x6dffe0[_0x47e2dc];return _0x513644;}export async function withProgressSpinner(_0x525287,_0x5033c5,_0x1e37aa={}){const _0x3e33d1=a145_0x5136,_0x38d3c8=_0x1e37aa[_0x3e33d1(0x15a)]??(()=>Date['now']()),_0x67b51a=_0x1e37aa['intervalFactory']??setInterval,_0x42e9b2=createCommandSpinner(_0x525287,_0x1e37aa);_0x42e9b2[_0x3e33d1(0x152)]();const _0x33728f=_0x38d3c8(),_0x18eaef=_0x525287[_0x3e33d1(0x169)]('...','')['trim']()||_0x3e33d1(0x15e),_0x80a810={};let _0x30f0a4=_0x525287;const _0x270c3d=()=>{const _0x17db25=_0x3e33d1;if(!_0x42e9b2['isSpinning'])return;const _0x275b27=_0x38d3c8()-_0x33728f,_0x150061=formatElapsed(_0x275b27),_0x3a4b9b=_0x80a810[_0x17db25(0x157)]?.[_0x17db25(0x16c)]()||_0x18eaef,_0x5bb1d0=_0x80a810[_0x17db25(0x16b)]?_0x17db25(0x15d)+_0x80a810[_0x17db25(0x16b)]+']':'',_0x2df154=_0x80a810[_0x17db25(0x159)]?'\x20'+_0x80a810[_0x17db25(0x159)]:'',_0x4f39e9=_0x3a4b9b+'\x20'+_0x150061+_0x2df154+_0x5bb1d0;_0x4f39e9!==_0x30f0a4&&_0x4f39e9[_0x17db25(0x16c)]()&&(_0x42e9b2[_0x17db25(0x16e)]=_0x4f39e9,_0x30f0a4=_0x4f39e9);},_0x22c1c0=_0x67b51a(()=>{_0x270c3d();},0x3e8),_0x32a46a={'setPhase':_0x3a3fbd=>{const _0x403119=_0x3e33d1;_0x80a810[_0x403119(0x157)]=_0x3a3fbd;const _0x4bb8db=_0x3a3fbd?.['trim']()||_0x18eaef,_0x127265=_0x38d3c8()-_0x33728f,_0x22d8db=formatElapsed(_0x127265),_0xc1ca40=_0x80a810[_0x403119(0x16b)]?_0x403119(0x15d)+_0x80a810['jobId']+']':'',_0x13e996=_0x80a810[_0x403119(0x159)]?'\x20'+_0x80a810['extra']:'',_0x1fb43a=_0x4bb8db+'\x20'+_0x22d8db+_0x13e996+_0xc1ca40;_0x42e9b2[_0x403119(0x165)]&&_0x1fb43a[_0x403119(0x16c)]()&&(_0x42e9b2['text']=_0x1fb43a,_0x30f0a4=_0x1fb43a);},'setJobId':_0xb168b6=>{const _0x5937f9=_0x3e33d1;_0x80a810[_0x5937f9(0x16b)]=_0xb168b6,_0x270c3d();},'setExtra':_0x17d7a8=>{const _0x86d9b8=_0x3e33d1;_0x80a810[_0x86d9b8(0x159)]=_0x17d7a8,_0x270c3d();}};_0x270c3d();try{const _0x5e1a0d=await _0x5033c5(_0x32a46a),_0x59a800=_0x38d3c8()-_0x33728f;return{'data':_0x5e1a0d,'elapsedMs':_0x59a800};}finally{clearInterval(_0x22c1c0),_0x42e9b2[_0x3e33d1(0x158)]();}}export function formatElapsed(_0x277e24){const _0x480f4b=a145_0x5136,_0xbdc78=Math['floor'](_0x277e24/0x3e8);if(_0xbdc78<0x3c)return(_0x277e24/0x3e8)[_0x480f4b(0x162)](0x1)+'s';const _0x297246=Math[_0x480f4b(0x15b)](_0xbdc78/0x3c),_0x35e1e3=_0xbdc78%0x3c;if(_0x297246<0x3c)return _0x297246+'m\x20'+_0x35e1e3+'s';const _0x3c7048=Math[_0x480f4b(0x15b)](_0x297246/0x3c),_0x2b90d5=_0x297246%0x3c;return _0x3c7048+'h\x20'+_0x2b90d5+'m';}
@@ -1 +1 @@
1
- (function(_0x4af1a1,_0xa3f4d5){const _0xc45a16=a144_0x1d4b,_0x1fc3d6=_0x4af1a1();while(!![]){try{const _0x3eb8fe=-parseInt(_0xc45a16(0x160))/0x1*(parseInt(_0xc45a16(0x151))/0x2)+parseInt(_0xc45a16(0x158))/0x3+parseInt(_0xc45a16(0x15f))/0x4+parseInt(_0xc45a16(0x155))/0x5+parseInt(_0xc45a16(0x150))/0x6*(parseInt(_0xc45a16(0x14d))/0x7)+parseInt(_0xc45a16(0x156))/0x8+parseInt(_0xc45a16(0x15c))/0x9*(-parseInt(_0xc45a16(0x14c))/0xa);if(_0x3eb8fe===_0xa3f4d5)break;else _0x1fc3d6['push'](_0x1fc3d6['shift']());}catch(_0x355723){_0x1fc3d6['push'](_0x1fc3d6['shift']());}}}(a144_0x566c,0xeb8d6));function a144_0x1d4b(_0x284b9b,_0x4f2fb1){_0x284b9b=_0x284b9b-0x14a;const _0x566cbc=a144_0x566c();let _0x1d4b3d=_0x566cbc[_0x284b9b];return _0x1d4b3d;}export async function*parseSSEStream(_0xd69150,_0x1c47c8){const _0x585283=a144_0x1d4b;if(!_0xd69150[_0x585283(0x14e)])throw new Error(_0x585283(0x153));const _0x5a6c94=_0xd69150[_0x585283(0x14e)][_0x585283(0x15b)](),_0x1ed47d=new TextDecoder();let _0x1c3dbf='',_0x3c6828={};try{while(!![]){const {done:_0x1b88f5,value:_0x1cc9bf}=await _0x5a6c94['read']();if(_0x1b88f5){if(_0x3c6828[_0x585283(0x159)]){_0x1c47c8?.[_0x585283(0x152)](_0x585283(0x14b)+_0x3c6828[_0x585283(0x159)]);const _0x5012eb=parseSSEData(_0x3c6828['data']);yield _0x5012eb;}break;}_0x1c3dbf+=_0x1ed47d['decode'](_0x1cc9bf,{'stream':!![]});const _0x46a5b4=_0x1c3dbf[_0x585283(0x154)]('\x0a');_0x1c3dbf=_0x46a5b4['pop']()||'';for(const _0x1406f5 of _0x46a5b4){if(_0x1406f5[_0x585283(0x14f)]()===''){if(_0x3c6828['data']){_0x1c47c8?.['debug'](_0x585283(0x14b)+_0x3c6828[_0x585283(0x159)]);const _0x4bd9ce=parseSSEData(_0x3c6828['data']);yield _0x4bd9ce,_0x3c6828={};}continue;}if(_0x1406f5[_0x585283(0x15e)](':'))continue;const _0x737ea6=_0x1406f5['indexOf'](':');if(_0x737ea6===-0x1)continue;const _0xc6a7a5=_0x1406f5['slice'](0x0,_0x737ea6);let _0x2285f8=_0x1406f5['slice'](_0x737ea6+0x1);_0x2285f8[_0x585283(0x15e)]('\x20')&&(_0x2285f8=_0x2285f8[_0x585283(0x15a)](0x1));switch(_0xc6a7a5){case'event':_0x3c6828[_0x585283(0x15d)]=_0x2285f8;break;case _0x585283(0x159):_0x3c6828[_0x585283(0x159)]=_0x3c6828[_0x585283(0x159)]?_0x3c6828[_0x585283(0x159)]+'\x0a'+_0x2285f8:_0x2285f8;break;case'id':_0x3c6828['id']=_0x2285f8;break;}}}}finally{_0x5a6c94[_0x585283(0x14a)]();}}function a144_0x566c(){const _0xddd1b1=['trim','5012088OlJXxY','34xnMAce','debug','Response\x20body\x20is\x20null','split','366605tRNDDp','3594816iLuguo','parse','2504664ovahMw','data','slice','getReader','20217537mapDVR','event','startsWith','6953628LzHxAX','91497jqXFQR','releaseLock','[LLM\x20API\x20SSE]\x20','10Wbbpru','14FKlZSi','body'];a144_0x566c=function(){return _0xddd1b1;};return a144_0x566c();}function parseSSEData(_0x12586d){const _0x16f671=a144_0x1d4b;try{return JSON[_0x16f671(0x157)](_0x12586d);}catch(_0x978ee8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x12586d,{'cause':_0x978ee8});}}
1
+ (function(_0x205209,_0x4eb0b3){const _0x49437b=a146_0x160b,_0x46f0b2=_0x205209();while(!![]){try{const _0x381028=-parseInt(_0x49437b(0x186))/0x1+-parseInt(_0x49437b(0x17f))/0x2+-parseInt(_0x49437b(0x191))/0x3*(parseInt(_0x49437b(0x192))/0x4)+-parseInt(_0x49437b(0x195))/0x5*(parseInt(_0x49437b(0x181))/0x6)+-parseInt(_0x49437b(0x18e))/0x7+parseInt(_0x49437b(0x190))/0x8+parseInt(_0x49437b(0x188))/0x9*(parseInt(_0x49437b(0x18a))/0xa);if(_0x381028===_0x4eb0b3)break;else _0x46f0b2['push'](_0x46f0b2['shift']());}catch(_0xdc0fd9){_0x46f0b2['push'](_0x46f0b2['shift']());}}}(a146_0x4dfe,0x94e66));export async function*parseSSEStream(_0x1cc71a,_0x5e5326){const _0x28b521=a146_0x160b;if(!_0x1cc71a[_0x28b521(0x185)])throw new Error(_0x28b521(0x193));const _0x47f518=_0x1cc71a[_0x28b521(0x185)][_0x28b521(0x182)](),_0x5e690b=new TextDecoder();let _0x1e704b='',_0x1fec7={};try{while(!![]){const {done:_0x4a7445,value:_0x1166f9}=await _0x47f518['read']();if(_0x4a7445){if(_0x1fec7[_0x28b521(0x18f)]){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5224b2=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5224b2;}break;}_0x1e704b+=_0x5e690b[_0x28b521(0x18b)](_0x1166f9,{'stream':!![]});const _0x1d3329=_0x1e704b[_0x28b521(0x196)]('\x0a');_0x1e704b=_0x1d3329[_0x28b521(0x183)]()||'';for(const _0x581652 of _0x1d3329){if(_0x581652[_0x28b521(0x18c)]()===''){if(_0x1fec7['data']){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5bf7d1=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5bf7d1,_0x1fec7={};}continue;}if(_0x581652[_0x28b521(0x197)](':'))continue;const _0x2c223e=_0x581652['indexOf'](':');if(_0x2c223e===-0x1)continue;const _0x5a8630=_0x581652[_0x28b521(0x194)](0x0,_0x2c223e);let _0x39a508=_0x581652['slice'](_0x2c223e+0x1);_0x39a508[_0x28b521(0x197)]('\x20')&&(_0x39a508=_0x39a508[_0x28b521(0x194)](0x1));switch(_0x5a8630){case _0x28b521(0x18d):_0x1fec7['event']=_0x39a508;break;case _0x28b521(0x18f):_0x1fec7[_0x28b521(0x18f)]=_0x1fec7[_0x28b521(0x18f)]?_0x1fec7[_0x28b521(0x18f)]+'\x0a'+_0x39a508:_0x39a508;break;case'id':_0x1fec7['id']=_0x39a508;break;}}}}finally{_0x47f518[_0x28b521(0x187)]();}}function a146_0x160b(_0x18b952,_0x2f6328){_0x18b952=_0x18b952-0x17f;const _0x4dfe45=a146_0x4dfe();let _0x160b7b=_0x4dfe45[_0x18b952];return _0x160b7b;}function a146_0x4dfe(){const _0x5c9305=['slice','45AuVFbK','split','startsWith','789050DIjwAQ','parse','652884JHSXqf','getReader','pop','debug','body','658371EEbCyl','releaseLock','162fXFRFC','[LLM\x20API\x20SSE]\x20','1603280SyrIzT','decode','trim','event','455777ozgWdd','data','7707488MkNxdJ','3mBsDTr','4568452ONdcdI','Response\x20body\x20is\x20null'];a146_0x4dfe=function(){return _0x5c9305;};return a146_0x4dfe();}function parseSSEData(_0x4a6585){const _0x1dac98=a146_0x160b;try{return JSON[_0x1dac98(0x180)](_0x4a6585);}catch(_0x3c2fac){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4a6585,{'cause':_0x3c2fac});}}
@@ -1 +1 @@
1
- (function(_0x6a9b9c,_0x2b9c80){const _0x3779b5=a145_0x53ff,_0x27c1e4=_0x6a9b9c();while(!![]){try{const _0x4c7230=parseInt(_0x3779b5(0x17a))/0x1+-parseInt(_0x3779b5(0x180))/0x2*(parseInt(_0x3779b5(0x179))/0x3)+parseInt(_0x3779b5(0x17e))/0x4*(parseInt(_0x3779b5(0x172))/0x5)+parseInt(_0x3779b5(0x17d))/0x6+parseInt(_0x3779b5(0x186))/0x7+parseInt(_0x3779b5(0x184))/0x8+-parseInt(_0x3779b5(0x17f))/0x9;if(_0x4c7230===_0x2b9c80)break;else _0x27c1e4['push'](_0x27c1e4['shift']());}catch(_0x50dcdb){_0x27c1e4['push'](_0x27c1e4['shift']());}}}(a145_0x4285,0x46baf));function a145_0x4285(){const _0x5bb9ac=['37652whvxzh','6152850SZsWcD','227464EKkghU','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','replace','toLowerCase','4209072UrEzwy','padStart','160363ExkZZK','env','\x5c$&','275ZlaFBy','repeat','USER','test','random','Cannot\x20escape\x20empty\x20string\x20literal','trim','15CqldFf','16318ZlTpAt','length','slice','2753670EMcekS'];a145_0x4285=function(){return _0x5bb9ac;};return a145_0x4285();}import a145_0x4d7e7a from'string-width';export function stringWidth(_0x2ff58e){return a145_0x4d7e7a(_0x2ff58e);}export function padEnd(_0x4edfc8,_0x5e3af0){const _0x1234ff=stringWidth(_0x4edfc8);if(_0x1234ff>=_0x5e3af0)return _0x4edfc8;return _0x4edfc8+'\x20'['repeat'](_0x5e3af0-_0x1234ff);}export function padStart(_0x1bd6b2,_0x386b9e){const _0x4d0304=a145_0x53ff,_0x13add5=stringWidth(_0x1bd6b2);if(_0x13add5>=_0x386b9e)return _0x1bd6b2;return'\x20'[_0x4d0304(0x173)](_0x386b9e-_0x13add5)+_0x1bd6b2;}export function centerAlign(_0x58b229,_0x753232){const _0x5a6e12=a145_0x53ff,_0xb5743b=stringWidth(_0x58b229);if(_0xb5743b>_0x753232){if(_0x753232<=0x1)return'…'['substring'](0x0,_0x753232);let _0x31bccf=_0x58b229;while(stringWidth(_0x31bccf+'…')>_0x753232){_0x31bccf=_0x31bccf[_0x5a6e12(0x17c)](0x0,-0x1);}return _0x31bccf+'…';}if(_0xb5743b===_0x753232)return _0x58b229;const _0x559d83=_0x753232-_0xb5743b,_0x33d278=Math['floor'](_0x559d83/0x2),_0x367923=_0x559d83-_0x33d278;return'\x20'[_0x5a6e12(0x173)](_0x33d278)+_0x58b229+'\x20'[_0x5a6e12(0x173)](_0x367923);}export function escapeStringLiteral(_0x4273d1){const _0x72333e=a145_0x53ff;if(!_0x4273d1||_0x4273d1[_0x72333e(0x178)]()[_0x72333e(0x17b)]===0x0)throw new Error(_0x72333e(0x177));const _0x2465ce=_0x4273d1[_0x72333e(0x182)](/'/g,'\x27\x27');return'\x27'+_0x2465ce+'\x27';}export function globToLike(_0x3790d5){const _0x52ff97=a145_0x53ff;let _0x54b672=_0x3790d5[_0x52ff97(0x182)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x52ff97(0x182)](/_/g,'\x5c_');return _0x54b672=_0x54b672[_0x52ff97(0x182)](/\*/g,'%')[_0x52ff97(0x182)](/\?/g,'_'),_0x54b672;}function a145_0x53ff(_0x307211,_0x1ef45c){_0x307211=_0x307211-0x172;const _0x428563=a145_0x4285();let _0x53ffbc=_0x428563[_0x307211];return _0x53ffbc;}export function buildLikePattern(_0x342a14){const _0x5d1eef=a145_0x53ff;if(!_0x342a14||_0x342a14['trim']()['length']===0x0)throw new Error(_0x5d1eef(0x181));const _0x3b823c=globToLike(_0x342a14),_0x2d4bbe=_0x3b823c[_0x5d1eef(0x182)](/'/g,'\x27\x27');return'\x27'+_0x2d4bbe+'\x27';}export function matchGlobPattern(_0x5f5b36,_0x816324){const _0x2e0c0c=a145_0x53ff,_0x191d35=_0x816324[_0x2e0c0c(0x182)](/[.+^${}()|[\]\\]/g,_0x2e0c0c(0x188))['replace'](/\*/g,'.*')[_0x2e0c0c(0x182)](/\?/g,'.'),_0x2b9ab5=new RegExp('^'+_0x191d35+'$');return _0x2b9ab5[_0x2e0c0c(0x175)](_0x5f5b36);}export function getSanitizedUsername(){const _0x1bef7b=a145_0x53ff,_0xb9b9f9=process[_0x1bef7b(0x187)][_0x1bef7b(0x174)]||process[_0x1bef7b(0x187)]['USERNAME']||'unknown';return _0xb9b9f9[_0x1bef7b(0x182)](/[^a-zA-Z0-9]/g,'')[_0x1bef7b(0x183)]();}export function generateRandomHex(){const _0x1b1024=a145_0x53ff,_0x2b358f=Math['floor'](Math[_0x1b1024(0x176)]()*0xfffff);return _0x2b358f['toString'](0x10)[_0x1b1024(0x185)](0x5,'0');}export function sanitizeFileName(_0x43d5ce){const _0x44137e=a145_0x53ff;return _0x43d5ce['toLowerCase']()[_0x44137e(0x182)](/[/\\:*?"<>|]/g,'-')[_0x44137e(0x182)](/\s+/g,'-')[_0x44137e(0x182)](/-+/g,'-')[_0x44137e(0x182)](/^-|-$/g,'');}
1
+ (function(_0x2dc9aa,_0xf55b96){const _0x4bbe39=a147_0x324a,_0x4074b0=_0x2dc9aa();while(!![]){try{const _0x1dabf7=parseInt(_0x4bbe39(0xe0))/0x1*(-parseInt(_0x4bbe39(0xe7))/0x2)+parseInt(_0x4bbe39(0xdf))/0x3+parseInt(_0x4bbe39(0xdd))/0x4*(parseInt(_0x4bbe39(0xe2))/0x5)+parseInt(_0x4bbe39(0xde))/0x6+-parseInt(_0x4bbe39(0xea))/0x7+parseInt(_0x4bbe39(0xda))/0x8+-parseInt(_0x4bbe39(0xe1))/0x9*(-parseInt(_0x4bbe39(0xec))/0xa);if(_0x1dabf7===_0xf55b96)break;else _0x4074b0['push'](_0x4074b0['shift']());}catch(_0x3d51f6){_0x4074b0['push'](_0x4074b0['shift']());}}}(a147_0x25a4,0x5a967));function a147_0x25a4(){const _0x6b548c=['floor','USER','1501984yyIXHl','length','Cannot\x20escape\x20empty\x20string\x20literal','236712dCTCKY','2666184LvoWXu','640266vlAEGR','196437pXGmzd','63QBQllN','5rPBpcQ','padStart','test','trim','toLowerCase','6sxIMCi','env','substring','1555337ZtqVpK','repeat','396910PuFjxr','replace','USERNAME','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a147_0x25a4=function(){return _0x6b548c;};return a147_0x25a4();}import a147_0x1aed20 from'string-width';function a147_0x324a(_0x1b99e3,_0x188614){_0x1b99e3=_0x1b99e3-0xd9;const _0x25a445=a147_0x25a4();let _0x324a67=_0x25a445[_0x1b99e3];return _0x324a67;}export function stringWidth(_0x1162b3){return a147_0x1aed20(_0x1162b3);}export function padEnd(_0x3f1857,_0x1206aa){const _0x2df753=a147_0x324a,_0x451b12=stringWidth(_0x3f1857);if(_0x451b12>=_0x1206aa)return _0x3f1857;return _0x3f1857+'\x20'[_0x2df753(0xeb)](_0x1206aa-_0x451b12);}export function padStart(_0x5ba7d0,_0x346be4){const _0x2fa778=a147_0x324a,_0x4e331c=stringWidth(_0x5ba7d0);if(_0x4e331c>=_0x346be4)return _0x5ba7d0;return'\x20'[_0x2fa778(0xeb)](_0x346be4-_0x4e331c)+_0x5ba7d0;}export function centerAlign(_0x471b87,_0x15549e){const _0x57c4e9=a147_0x324a,_0x49f1e8=stringWidth(_0x471b87);if(_0x49f1e8>_0x15549e){if(_0x15549e<=0x1)return'…'[_0x57c4e9(0xe9)](0x0,_0x15549e);let _0x53ed8f=_0x471b87;while(stringWidth(_0x53ed8f+'…')>_0x15549e){_0x53ed8f=_0x53ed8f['slice'](0x0,-0x1);}return _0x53ed8f+'…';}if(_0x49f1e8===_0x15549e)return _0x471b87;const _0x6b6011=_0x15549e-_0x49f1e8,_0x49b39a=Math[_0x57c4e9(0xf0)](_0x6b6011/0x2),_0x3fe3e7=_0x6b6011-_0x49b39a;return'\x20'[_0x57c4e9(0xeb)](_0x49b39a)+_0x471b87+'\x20'['repeat'](_0x3fe3e7);}export function escapeStringLiteral(_0x407cb2){const _0x1aaf8c=a147_0x324a;if(!_0x407cb2||_0x407cb2[_0x1aaf8c(0xe5)]()['length']===0x0)throw new Error(_0x1aaf8c(0xdc));const _0x4cdbe2=_0x407cb2['replace'](/'/g,'\x27\x27');return'\x27'+_0x4cdbe2+'\x27';}export function globToLike(_0x3c570d){const _0x318bb2=a147_0x324a;let _0x2344a6=_0x3c570d[_0x318bb2(0xed)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x318bb2(0xed)](/_/g,'\x5c_');return _0x2344a6=_0x2344a6['replace'](/\*/g,'%')[_0x318bb2(0xed)](/\?/g,'_'),_0x2344a6;}export function buildLikePattern(_0x46fd5d){const _0x361927=a147_0x324a;if(!_0x46fd5d||_0x46fd5d[_0x361927(0xe5)]()[_0x361927(0xdb)]===0x0)throw new Error(_0x361927(0xef));const _0x1353cf=globToLike(_0x46fd5d),_0x498901=_0x1353cf[_0x361927(0xed)](/'/g,'\x27\x27');return'\x27'+_0x498901+'\x27';}export function matchGlobPattern(_0x42465e,_0x279faf){const _0x33d118=a147_0x324a,_0x49a072=_0x279faf['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x33d118(0xed)](/\*/g,'.*')[_0x33d118(0xed)](/\?/g,'.'),_0x3475b8=new RegExp('^'+_0x49a072+'$');return _0x3475b8[_0x33d118(0xe4)](_0x42465e);}export function getSanitizedUsername(){const _0xf359e7=a147_0x324a,_0x4283de=process[_0xf359e7(0xe8)][_0xf359e7(0xd9)]||process[_0xf359e7(0xe8)][_0xf359e7(0xee)]||'unknown';return _0x4283de['replace'](/[^a-zA-Z0-9]/g,'')[_0xf359e7(0xe6)]();}export function generateRandomHex(){const _0x18f033=a147_0x324a,_0x1a1fb6=Math[_0x18f033(0xf0)](Math['random']()*0xfffff);return _0x1a1fb6['toString'](0x10)[_0x18f033(0xe3)](0x5,'0');}export function sanitizeFileName(_0x48b3d3){const _0x5dfd2f=a147_0x324a;return _0x48b3d3[_0x5dfd2f(0xe6)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5dfd2f(0xed)](/\s+/g,'-')[_0x5dfd2f(0xed)](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a146_0x3041(_0x53dc0b,_0x25ad9c){_0x53dc0b=_0x53dc0b-0x102;const _0x230cac=a146_0x230c();let _0x30411e=_0x230cac[_0x53dc0b];return _0x30411e;}(function(_0x2dfee2,_0x91c59d){const _0x3de37a=a146_0x3041,_0x1fd5d0=_0x2dfee2();while(!![]){try{const _0x13b53c=-parseInt(_0x3de37a(0x103))/0x1*(-parseInt(_0x3de37a(0x114))/0x2)+-parseInt(_0x3de37a(0x104))/0x3+parseInt(_0x3de37a(0x119))/0x4+parseInt(_0x3de37a(0x11a))/0x5*(parseInt(_0x3de37a(0x111))/0x6)+-parseInt(_0x3de37a(0x10b))/0x7+parseInt(_0x3de37a(0x105))/0x8*(-parseInt(_0x3de37a(0x115))/0x9)+parseInt(_0x3de37a(0x112))/0xa*(parseInt(_0x3de37a(0x113))/0xb);if(_0x13b53c===_0x91c59d)break;else _0x1fd5d0['push'](_0x1fd5d0['shift']());}catch(_0x46efff){_0x1fd5d0['push'](_0x1fd5d0['shift']());}}}(a146_0x230c,0xe9902));function a146_0x230c(){const _0x26c896=['Pattern\x20cannot\x20be\x20just\x20a\x20dot','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','push','6212892ZeVUvo','trim','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length','catalog','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','6rBiJpx','3274730zbClxc','22wMxyMH','1201048VPpnbC','16637301rrEDVs','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','3856292MSjAHw','8613835zdaqGZ','table','3MvqWNv','4351617HvtaGs','8zWxvkN','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','database'];a146_0x230c=function(){return _0x26c896;};return a146_0x230c();}function hasWildcard(_0x1b6b8b){const _0x27a103=a146_0x3041;return _0x1b6b8b[_0x27a103(0x116)]('*')||_0x1b6b8b[_0x27a103(0x116)]('?');}export function parseTableReference(_0x110996){const _0x281f8b=a146_0x3041;if(!_0x110996||_0x110996[_0x281f8b(0x10c)]()[_0x281f8b(0x10e)]===0x0)throw new Error(_0x281f8b(0x110));const _0x518ce7=_0x110996[_0x281f8b(0x10c)](),_0x29d53c={'original':_0x518ce7},_0x2307ed=_0x518ce7['split']('.');if(_0x2307ed[_0x281f8b(0x10e)]===0x1){const _0x5bf7cf=_0x2307ed[0x0];if(!_0x5bf7cf)throw new Error(_0x281f8b(0x108));_0x29d53c[_0x281f8b(0x102)]=_0x5bf7cf;}else{if(_0x2307ed['length']===0x2){const [_0x290dca,_0x3b42e6]=_0x2307ed;if(!_0x290dca)throw new Error(_0x281f8b(0x10d));if(!_0x3b42e6)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x29d53c[_0x281f8b(0x107)]=_0x290dca,_0x29d53c[_0x281f8b(0x102)]=_0x3b42e6;}else{if(_0x2307ed['length']===0x3){const [_0x102de4,_0x4c4818,_0x738364]=_0x2307ed;if(!_0x102de4||!_0x4c4818||!_0x738364)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x29d53c[_0x281f8b(0x10f)]=_0x102de4,_0x29d53c[_0x281f8b(0x107)]=_0x4c4818,_0x29d53c['table']=_0x738364;}else throw new Error(_0x281f8b(0x109));}}return _0x29d53c;}export function formatTableReference(_0x3426dc){const _0x5bf649=a146_0x3041,_0x5c0871=[];return _0x3426dc[_0x5bf649(0x10f)]&&_0x5c0871[_0x5bf649(0x10a)](_0x3426dc['catalog']),_0x3426dc['database']&&_0x5c0871[_0x5bf649(0x10a)](_0x3426dc['database']),_0x3426dc[_0x5bf649(0x102)]&&_0x5c0871[_0x5bf649(0x10a)](_0x3426dc[_0x5bf649(0x102)]),_0x5c0871['join']('.');}export function validateTableListReference(_0x40fa7c){return undefined;}export function validateTableDescribeReference(_0x2baf5f){const _0x25dcad=a146_0x3041;if(!_0x2baf5f[_0x25dcad(0x102)])return _0x25dcad(0x106);if(_0x2baf5f[_0x25dcad(0x107)]&&hasWildcard(_0x2baf5f[_0x25dcad(0x107)]))return _0x25dcad(0x117);if(hasWildcard(_0x2baf5f[_0x25dcad(0x102)]))return _0x25dcad(0x118);return undefined;}
1
+ (function(_0xaf86d2,_0x5b5519){const _0x5af286=a148_0x2585,_0x364c7f=_0xaf86d2();while(!![]){try{const _0x325259=-parseInt(_0x5af286(0x19b))/0x1+parseInt(_0x5af286(0x192))/0x2*(-parseInt(_0x5af286(0x195))/0x3)+-parseInt(_0x5af286(0x18c))/0x4+-parseInt(_0x5af286(0x197))/0x5*(parseInt(_0x5af286(0x18b))/0x6)+-parseInt(_0x5af286(0x193))/0x7+parseInt(_0x5af286(0x1a4))/0x8*(parseInt(_0x5af286(0x199))/0x9)+-parseInt(_0x5af286(0x18d))/0xa*(-parseInt(_0x5af286(0x196))/0xb);if(_0x325259===_0x5b5519)break;else _0x364c7f['push'](_0x364c7f['shift']());}catch(_0x158e54){_0x364c7f['push'](_0x364c7f['shift']());}}}(a148_0x4044,0xa68d2));function a148_0x2585(_0x447b46,_0x5221bc){_0x447b46=_0x447b46-0x18b;const _0x40443e=a148_0x4044();let _0x258524=_0x40443e[_0x447b46];return _0x258524;}function hasWildcard(_0x2ccfec){const _0x1b268d=a148_0x2585;return _0x2ccfec['includes']('*')||_0x2ccfec[_0x1b268d(0x19f)]('?');}export function parseTableReference(_0x4abc28){const _0x545006=a148_0x2585;if(!_0x4abc28||_0x4abc28[_0x545006(0x198)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x3d381b=_0x4abc28[_0x545006(0x198)](),_0x36ea71={'original':_0x3d381b},_0x55377f=_0x3d381b[_0x545006(0x1a2)]('.');if(_0x55377f[_0x545006(0x18f)]===0x1){const _0xde9f1c=_0x55377f[0x0];if(!_0xde9f1c)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x36ea71[_0x545006(0x19e)]=_0xde9f1c;}else{if(_0x55377f[_0x545006(0x18f)]===0x2){const [_0xafccc6,_0xc549d1]=_0x55377f;if(!_0xafccc6)throw new Error(_0x545006(0x190));if(!_0xc549d1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x36ea71[_0x545006(0x19c)]=_0xafccc6,_0x36ea71[_0x545006(0x19e)]=_0xc549d1;}else{if(_0x55377f[_0x545006(0x18f)]===0x3){const [_0x33df4e,_0x52bd7b,_0x2386af]=_0x55377f;if(!_0x33df4e||!_0x52bd7b||!_0x2386af)throw new Error(_0x545006(0x19a));_0x36ea71[_0x545006(0x191)]=_0x33df4e,_0x36ea71[_0x545006(0x19c)]=_0x52bd7b,_0x36ea71[_0x545006(0x19e)]=_0x2386af;}else throw new Error(_0x545006(0x194));}}return _0x36ea71;}export function formatTableReference(_0x62bf46){const _0x596f2a=a148_0x2585,_0x4386d6=[];return _0x62bf46[_0x596f2a(0x191)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x191)]),_0x62bf46[_0x596f2a(0x19c)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19c)]),_0x62bf46[_0x596f2a(0x19e)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19e)]),_0x4386d6[_0x596f2a(0x18e)]('.');}function a148_0x4044(){const _0x206560=['460635jYZJuS','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','6bUPLYt','33XEFIPb','6935OSNqpf','trim','63OTDMxH','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1160984ulzOWZ','database','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','includes','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','675856HuNDEJ','2580QKggsE','3482440cVDzps','10486990BGJOLS','join','length','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','catalog','361468VARNcR'];a148_0x4044=function(){return _0x206560;};return a148_0x4044();}export function validateTableListReference(_0x222de6){return undefined;}export function validateTableDescribeReference(_0x2c9ad0){const _0x44b172=a148_0x2585;if(!_0x2c9ad0[_0x44b172(0x19e)])return _0x44b172(0x1a3);if(_0x2c9ad0['database']&&hasWildcard(_0x2c9ad0[_0x44b172(0x19c)]))return _0x44b172(0x19d);if(hasWildcard(_0x2c9ad0[_0x44b172(0x19e)]))return _0x44b172(0x1a1);return undefined;}
@@ -1 +1 @@
1
- const a147_0x409087=a147_0x21cb;function a147_0x21cb(_0x57b6fc,_0x1b9901){_0x57b6fc=_0x57b6fc-0xa3;const _0x1f157a=a147_0x1f15();let _0x21cbdf=_0x1f157a[_0x57b6fc];return _0x21cbdf;}(function(_0x49f404,_0x787325){const _0x59650c=a147_0x21cb,_0x4c74cb=_0x49f404();while(!![]){try{const _0x3965a3=parseInt(_0x59650c(0xe2))/0x1+-parseInt(_0x59650c(0xbf))/0x2+parseInt(_0x59650c(0xa8))/0x3*(-parseInt(_0x59650c(0xdc))/0x4)+-parseInt(_0x59650c(0xe0))/0x5*(parseInt(_0x59650c(0xb8))/0x6)+parseInt(_0x59650c(0xca))/0x7*(-parseInt(_0x59650c(0xd5))/0x8)+parseInt(_0x59650c(0xc4))/0x9*(parseInt(_0x59650c(0xce))/0xa)+parseInt(_0x59650c(0xde))/0xb;if(_0x3965a3===_0x787325)break;else _0x4c74cb['push'](_0x4c74cb['shift']());}catch(_0x5b5947){_0x4c74cb['push'](_0x4c74cb['shift']());}}}(a147_0x1f15,0x581f7));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';import a147_0x276e10 from'chalk';function safeStringify(_0x54a567){const _0x45c2ac=a147_0x21cb;if(typeof _0x54a567===_0x45c2ac(0xd7))return _0x54a567;if(_0x54a567 instanceof Error)return _0x54a567[_0x45c2ac(0xc0)]||_0x54a567['name']+':\x20'+_0x54a567[_0x45c2ac(0xaa)];try{return JSON[_0x45c2ac(0xc2)](_0x54a567,(_0x5e7161,_0x6b80f6)=>{const _0x21293a=_0x45c2ac;if(_0x6b80f6 instanceof Error)return{'name':_0x6b80f6[_0x21293a(0xad)],'message':_0x6b80f6[_0x21293a(0xaa)],'stack':_0x6b80f6[_0x21293a(0xc0)],'cause':_0x6b80f6[_0x21293a(0xaf)]};return _0x6b80f6;});}catch{return String(_0x54a567);}}function getTimezoneOffset(){const _0xe2aceb=a147_0x21cb,_0x88f443=-new Date()[_0xe2aceb(0xe3)](),_0x4e5d58=Math[_0xe2aceb(0xb9)](Math[_0xe2aceb(0xbc)](_0x88f443)/0x3c),_0x466256=Math[_0xe2aceb(0xbc)](_0x88f443)%0x3c,_0x447d72=_0x88f443>=0x0?'+':'-';return''+_0x447d72+_0x4e5d58[_0xe2aceb(0xb7)]()[_0xe2aceb(0xcd)](0x2,'0')+_0x466256[_0xe2aceb(0xb7)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x38b85b=a147_0x21cb,_0x58ae7c=new Date(),_0x32080a=_0x58ae7c[_0x38b85b(0xd6)](),_0x4bf6f5=(_0x58ae7c[_0x38b85b(0xc3)]()+0x1)[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x2,'0'),_0x3b985e=_0x58ae7c[_0x38b85b(0xd2)]()[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x2,'0'),_0x3545ce=_0x58ae7c[_0x38b85b(0xcc)]()[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x2,'0'),_0x3af170=_0x58ae7c[_0x38b85b(0xbe)]()[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x2,'0'),_0x5658cf=_0x58ae7c[_0x38b85b(0xb3)]()[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x2,'0'),_0x1863c9=_0x58ae7c[_0x38b85b(0xb1)]()[_0x38b85b(0xb7)]()[_0x38b85b(0xcd)](0x3,'0'),_0x43a385=getTimezoneOffset();return _0x32080a+'-'+_0x4bf6f5+'-'+_0x3b985e+'\x20'+_0x3545ce+':'+_0x3af170+':'+_0x5658cf+'.'+_0x1863c9+_0x43a385;}function formatColoredLogEntry(_0x147334,_0x6528b7){const _0x5bf939=a147_0x21cb,_0x4be715=formatTimestamp(),_0x56813b=_0x6528b7[_0x5bf939(0xd9)](safeStringify)[_0x5bf939(0xae)]('\x20'),_0x2775da=a147_0x276e10[_0x5bf939(0xba)](_0x4be715);let _0x1c3bba;switch(_0x147334){case _0x5bf939(0xab):_0x1c3bba=a147_0x276e10[_0x5bf939(0xbb)]('['+_0x147334+']\x20');break;case'warn':_0x1c3bba=a147_0x276e10[_0x5bf939(0xac)]('['+_0x147334+']\x20');break;case _0x5bf939(0xb2):_0x1c3bba=a147_0x276e10[_0x5bf939(0xd4)]('['+_0x147334+']');break;case _0x5bf939(0xbd):_0x1c3bba=a147_0x276e10[_0x5bf939(0xba)]('['+_0x147334+']');break;default:_0x1c3bba='['+_0x147334+']';}return _0x2775da+'\x20'+_0x1c3bba+'\x20'+_0x56813b;}export var LogLevel;(function(_0xc4506a){const _0x41266b=a147_0x21cb;_0xc4506a[_0xc4506a[_0x41266b(0xc7)]=-0x2]='TRACE',_0xc4506a[_0xc4506a[_0x41266b(0xb6)]=-0x1]=_0x41266b(0xb6),_0xc4506a[_0xc4506a['INFO']=0x0]=_0x41266b(0xdf),_0xc4506a[_0xc4506a[_0x41266b(0xdd)]=0x1]=_0x41266b(0xdd),_0xc4506a[_0xc4506a['ERROR']=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a147_0x409087(0xd1)];[a147_0x409087(0xc1)];[a147_0x409087(0xc6)];[a147_0x409087(0xb5)];constructor(_0x13467f=LogLevel[a147_0x409087(0xdf)],_0xf87353=![]){const _0x32b08b=a147_0x409087;this[_0x32b08b(0xc1)]=join(homedir(),_0x32b08b(0xd8),'tdx',_0x32b08b(0xd0)),this[_0x32b08b(0xc6)]=_0x13467f,this[_0x32b08b(0xb5)]=_0xf87353;}async['init'](){const _0x10df13=a147_0x409087;try{await mkdir(this[_0x10df13(0xc1)],{'recursive':!![]}),await this[_0x10df13(0xdb)]();const _0x4e33c6=join(this[_0x10df13(0xc1)],'tdx.log');this['logStream']=createWriteStream(_0x4e33c6,{'flags':'a'}),this[_0x10df13(0xd1)]['on'](_0x10df13(0xb2),_0x201482=>{const _0x3c26b0=_0x10df13;console[_0x3c26b0(0xb2)](_0x3c26b0(0xd3),_0x201482[_0x3c26b0(0xaa)]);});}catch(_0x543053){console[_0x10df13(0xb2)](_0x10df13(0xa6),_0x543053);}}async[a147_0x409087(0xdb)](){const _0xc182da=a147_0x409087;try{const _0x5c8f31=await readdir(this[_0xc182da(0xc1)]),_0x57fc3e=new Date()[_0xc182da(0xb0)]()[_0xc182da(0xa7)]('T')[0x0];if(_0x5c8f31[_0xc182da(0xe1)](_0xc182da(0xa3))){const _0x30649e=join(this[_0xc182da(0xc1)],_0xc182da(0xa3)),_0x3b0222=await stat(_0x30649e),_0x3093c0=new Date(_0x3b0222[_0xc182da(0xb4)])['toISOString']()[_0xc182da(0xa7)]('T')[0x0];if(_0x3093c0<_0x57fc3e){const _0x377493=join(this[_0xc182da(0xc1)],_0xc182da(0xa5)+_0x3093c0+_0xc182da(0xc8));await rename(_0x30649e,_0x377493);}}const _0x1c2eef=await readdir(this['logDir']),_0xb02414=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x144fb3=_0x1c2eef[_0xc182da(0xcf)](_0x191d0d=>_0xb02414['test'](_0x191d0d));for(const _0x1d6e40 of _0x144fb3){const _0x3268d0=join(this[_0xc182da(0xc1)],_0x1d6e40),_0x2ec0f8=join(this[_0xc182da(0xc1)],_0x1d6e40+_0xc182da(0xcb));try{await pipeline(createReadStream(_0x3268d0),createGzip(),createWriteStream(_0x2ec0f8)),await unlink(_0x3268d0);}catch(_0x4e0aed){console[_0xc182da(0xb2)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x1d6e40+':',_0x4e0aed);}}}catch{}}[a147_0x409087(0xbd)](..._0xf7439f){const _0x412716=a147_0x409087;if(this[_0x412716(0xc6)]>LogLevel['DEBUG'])return;const _0x4199c5=formatColoredLogEntry(_0x412716(0xbd),_0xf7439f);this[_0x412716(0xd1)]?.['write'](_0x4199c5+'\x0a');}['trace'](..._0x2b4010){const _0x3f5253=a147_0x409087;if(this['logLevel']>LogLevel['TRACE'])return;const _0x10e89d=formatColoredLogEntry(_0x3f5253(0xc5),_0x2b4010);this[_0x3f5253(0xd1)]?.['write'](_0x10e89d+'\x0a');}[a147_0x409087(0xab)](..._0x1a758c){const _0x2a341b=a147_0x409087;if(this[_0x2a341b(0xc6)]>LogLevel[_0x2a341b(0xdf)])return;const _0x18d17e=formatColoredLogEntry(_0x2a341b(0xab),_0x1a758c);!this[_0x2a341b(0xb5)]&&console['log'](_0x18d17e),this['logStream']?.[_0x2a341b(0xa4)](_0x18d17e+'\x0a');}['warn'](..._0x3ab0da){const _0x196576=a147_0x409087;if(this[_0x196576(0xc6)]>LogLevel[_0x196576(0xdd)])return;const _0xa23a47=formatColoredLogEntry(_0x196576(0xda),_0x3ab0da);!this[_0x196576(0xb5)]&&console[_0x196576(0xb2)](_0xa23a47),this[_0x196576(0xd1)]?.[_0x196576(0xa4)](_0xa23a47+'\x0a');}[a147_0x409087(0xb2)](..._0x268a81){const _0x3c0c17=a147_0x409087,_0xac0bfd=formatColoredLogEntry('error',_0x268a81);!this[_0x3c0c17(0xb5)]&&console[_0x3c0c17(0xb2)](_0xac0bfd),this[_0x3c0c17(0xd1)]?.[_0x3c0c17(0xa4)](_0xac0bfd+'\x0a');}async[a147_0x409087(0xe4)](){const _0x28a2b8=a147_0x409087;return this[_0x28a2b8(0xab)](_0x28a2b8(0xa9)),new Promise(_0x32cea1=>{const _0x2676b3=_0x28a2b8;this[_0x2676b3(0xd1)]?this[_0x2676b3(0xd1)]['end'](()=>{_0x32cea1();}):_0x32cea1();});}[a147_0x409087(0xc9)](){const _0x27e24f=a147_0x409087;return join(this[_0x27e24f(0xc1)],'tdx.log');}}function a147_0x1f15(){const _0x53e05b=['.cache','map','warn','rotateOldLogs','24TfOsUX','WARN','8095021EkGTlH','INFO','5wvkaEd','includes','449904modLfG','getTimezoneOffset','close','tdx.log','write','tdx-','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','split','266922jaNIER','Proxy\x20session\x20ended','message','info','yellow','name','join','cause','toISOString','getMilliseconds','error','getSeconds','mtime','fileOnly','DEBUG','toString','993066qNEKHB','floor','gray','cyan','abs','debug','getMinutes','1224978ScoRFc','stack','logDir','stringify','getMonth','27LFbnbh','trace','logLevel','TRACE','.log','getLogPath','623497TRWvvg','.gz','getHours','padStart','1920170HAIzTC','filter','logs','logStream','getDate','Warning:\x20Error\x20writing\x20to\x20tdx.log:','red','8qUYSWp','getFullYear','string'];a147_0x1f15=function(){return _0x53e05b;};return a147_0x1f15();}
1
+ const a149_0x359bfa=a149_0xe018;(function(_0x470ca3,_0x2a8a75){const _0x360893=a149_0xe018,_0x232921=_0x470ca3();while(!![]){try{const _0x831b3d=parseInt(_0x360893(0x151))/0x1+parseInt(_0x360893(0x13a))/0x2+parseInt(_0x360893(0x174))/0x3*(-parseInt(_0x360893(0x140))/0x4)+-parseInt(_0x360893(0x156))/0x5+parseInt(_0x360893(0x15a))/0x6*(-parseInt(_0x360893(0x15b))/0x7)+parseInt(_0x360893(0x14a))/0x8*(-parseInt(_0x360893(0x16f))/0x9)+parseInt(_0x360893(0x162))/0xa*(parseInt(_0x360893(0x148))/0xb);if(_0x831b3d===_0x2a8a75)break;else _0x232921['push'](_0x232921['shift']());}catch(_0x3bd3cf){_0x232921['push'](_0x232921['shift']());}}}(a149_0x87d7,0xd9dc5));function a149_0xe018(_0x3e5013,_0x2c7da8){_0x3e5013=_0x3e5013-0x132;const _0x87d750=a149_0x87d7();let _0xe0187e=_0x87d750[_0x3e5013];return _0xe0187e;}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';import a149_0x5a3e15 from'chalk';function safeStringify(_0x3508b3){const _0x56596b=a149_0xe018;if(typeof _0x3508b3===_0x56596b(0x15e))return _0x3508b3;if(_0x3508b3 instanceof Error)return _0x3508b3['stack']||_0x3508b3['name']+':\x20'+_0x3508b3[_0x56596b(0x133)];try{return JSON[_0x56596b(0x136)](_0x3508b3,(_0x25f75e,_0x2c3d58)=>{const _0x278118=_0x56596b;if(_0x2c3d58 instanceof Error)return{'name':_0x2c3d58[_0x278118(0x165)],'message':_0x2c3d58[_0x278118(0x133)],'stack':_0x2c3d58[_0x278118(0x173)],'cause':_0x2c3d58[_0x278118(0x172)]};return _0x2c3d58;});}catch{return String(_0x3508b3);}}function getTimezoneOffset(){const _0x5d930c=a149_0xe018,_0x22cea7=-new Date()['getTimezoneOffset'](),_0x2f3857=Math[_0x5d930c(0x16d)](Math['abs'](_0x22cea7)/0x3c),_0x3b651e=Math[_0x5d930c(0x157)](_0x22cea7)%0x3c,_0x1d8bc9=_0x22cea7>=0x0?'+':'-';return''+_0x1d8bc9+_0x2f3857[_0x5d930c(0x147)]()[_0x5d930c(0x161)](0x2,'0')+_0x3b651e['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0xbed176=a149_0xe018,_0x131e81=new Date(),_0xcab1ab=_0x131e81[_0xbed176(0x13c)](),_0xa881f0=(_0x131e81['getMonth']()+0x1)['toString']()[_0xbed176(0x161)](0x2,'0'),_0x4d3f56=_0x131e81['getDate']()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x39908a=_0x131e81[_0xbed176(0x16c)]()['toString']()[_0xbed176(0x161)](0x2,'0'),_0xe7e57a=_0x131e81[_0xbed176(0x142)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x1333eb=_0x131e81[_0xbed176(0x15d)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x32de12=_0x131e81[_0xbed176(0x171)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x3,'0'),_0x443095=getTimezoneOffset();return _0xcab1ab+'-'+_0xa881f0+'-'+_0x4d3f56+'\x20'+_0x39908a+':'+_0xe7e57a+':'+_0x1333eb+'.'+_0x32de12+_0x443095;}function formatColoredLogEntry(_0x5758b6,_0x313ffc){const _0x2403b6=a149_0xe018,_0x3e84bd=formatTimestamp(),_0x1d36d7=_0x313ffc[_0x2403b6(0x164)](safeStringify)[_0x2403b6(0x149)]('\x20'),_0x4e808b=a149_0x5a3e15[_0x2403b6(0x154)](_0x3e84bd);let _0x98db95;switch(_0x5758b6){case'info':_0x98db95=a149_0x5a3e15[_0x2403b6(0x166)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x169):_0x98db95=a149_0x5a3e15[_0x2403b6(0x15f)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x16a):_0x98db95=a149_0x5a3e15[_0x2403b6(0x146)]('['+_0x5758b6+']');break;case _0x2403b6(0x14f):_0x98db95=a149_0x5a3e15[_0x2403b6(0x154)]('['+_0x5758b6+']');break;default:_0x98db95='['+_0x5758b6+']';}return _0x4e808b+'\x20'+_0x98db95+'\x20'+_0x1d36d7;}export var LogLevel;function a149_0x87d7(){const _0x2f45af=['trace','warn','error','write','getHours','floor','info','238617bXRDom','tdx','getMilliseconds','cause','stack','63321rzvLaQ','logs','message','TRACE','.log','stringify','end','logStream','mtime','3354136ZwLJIH','includes','getFullYear','Proxy\x20session\x20ended','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','WARN','116VRCOik','test','getMinutes','toISOString','Warning:\x20Failed\x20to\x20compress\x20','tdx-','red','toString','12727847GsAZAI','join','40GNyvtA','getLogPath','log','Warning:\x20Error\x20writing\x20to\x20tdx.log:','split','debug','ERROR','295778AObZWB','DEBUG','logLevel','gray','fileOnly','4451665brtPqc','abs','logDir','tdx.log','8670IClmtP','2919QIvedB','rotateOldLogs','getSeconds','string','yellow','.gz','padStart','10saQMHC','INFO','map','name','cyan','close'];a149_0x87d7=function(){return _0x2f45af;};return a149_0x87d7();}(function(_0x5c5211){const _0x5def85=a149_0xe018;_0x5c5211[_0x5c5211[_0x5def85(0x134)]=-0x2]=_0x5def85(0x134),_0x5c5211[_0x5c5211[_0x5def85(0x152)]=-0x1]='DEBUG',_0x5c5211[_0x5c5211[_0x5def85(0x163)]=0x0]=_0x5def85(0x163),_0x5c5211[_0x5c5211['WARN']=0x1]='WARN',_0x5c5211[_0x5c5211[_0x5def85(0x150)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a149_0x359bfa(0x138)];[a149_0x359bfa(0x158)];['logLevel'];[a149_0x359bfa(0x155)];constructor(_0x25b320=LogLevel[a149_0x359bfa(0x163)],_0x2ea08e=![]){const _0x155e5b=a149_0x359bfa;this['logDir']=join(homedir(),'.cache',_0x155e5b(0x170),_0x155e5b(0x132)),this[_0x155e5b(0x153)]=_0x25b320,this['fileOnly']=_0x2ea08e;}async['init'](){const _0x5bc89a=a149_0x359bfa;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x5bc89a(0x15c)]();const _0x2aa227=join(this[_0x5bc89a(0x158)],'tdx.log');this['logStream']=createWriteStream(_0x2aa227,{'flags':'a'}),this[_0x5bc89a(0x138)]['on'](_0x5bc89a(0x16a),_0x5f579c=>{const _0x5a0dde=_0x5bc89a;console[_0x5a0dde(0x16a)](_0x5a0dde(0x14d),_0x5f579c[_0x5a0dde(0x133)]);});}catch(_0x2dc7b0){console[_0x5bc89a(0x16a)](_0x5bc89a(0x13e),_0x2dc7b0);}}async['rotateOldLogs'](){const _0x311f24=a149_0x359bfa;try{const _0x5bb18e=await readdir(this[_0x311f24(0x158)]),_0x5e8c9c=new Date()[_0x311f24(0x143)]()[_0x311f24(0x14e)]('T')[0x0];if(_0x5bb18e[_0x311f24(0x13b)]('tdx.log')){const _0x22f43d=join(this[_0x311f24(0x158)],_0x311f24(0x159)),_0x4e978f=await stat(_0x22f43d),_0x257919=new Date(_0x4e978f[_0x311f24(0x139)])[_0x311f24(0x143)]()['split']('T')[0x0];if(_0x257919<_0x5e8c9c){const _0x5937fe=join(this[_0x311f24(0x158)],_0x311f24(0x145)+_0x257919+_0x311f24(0x135));await rename(_0x22f43d,_0x5937fe);}}const _0x3214ca=await readdir(this['logDir']),_0x266603=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1e9c25=_0x3214ca['filter'](_0x10158f=>_0x266603[_0x311f24(0x141)](_0x10158f));for(const _0xa79aad of _0x1e9c25){const _0x21e338=join(this[_0x311f24(0x158)],_0xa79aad),_0x302061=join(this[_0x311f24(0x158)],_0xa79aad+_0x311f24(0x160));try{await pipeline(createReadStream(_0x21e338),createGzip(),createWriteStream(_0x302061)),await unlink(_0x21e338);}catch(_0xd4a7aa){console[_0x311f24(0x16a)](_0x311f24(0x144)+_0xa79aad+':',_0xd4a7aa);}}}catch{}}[a149_0x359bfa(0x14f)](..._0x21bfd5){const _0x53c649=a149_0x359bfa;if(this[_0x53c649(0x153)]>LogLevel[_0x53c649(0x152)])return;const _0x156c68=formatColoredLogEntry(_0x53c649(0x14f),_0x21bfd5);this[_0x53c649(0x138)]?.[_0x53c649(0x16b)](_0x156c68+'\x0a');}[a149_0x359bfa(0x168)](..._0x2a144a){const _0x1aa9a4=a149_0x359bfa;if(this['logLevel']>LogLevel[_0x1aa9a4(0x134)])return;const _0x4265a1=formatColoredLogEntry(_0x1aa9a4(0x168),_0x2a144a);this['logStream']?.['write'](_0x4265a1+'\x0a');}[a149_0x359bfa(0x16e)](..._0x53e1ee){const _0x24ac12=a149_0x359bfa;if(this['logLevel']>LogLevel['INFO'])return;const _0x22ea7f=formatColoredLogEntry('info',_0x53e1ee);!this['fileOnly']&&console[_0x24ac12(0x14c)](_0x22ea7f),this[_0x24ac12(0x138)]?.[_0x24ac12(0x16b)](_0x22ea7f+'\x0a');}['warn'](..._0x47b711){const _0x29366a=a149_0x359bfa;if(this[_0x29366a(0x153)]>LogLevel[_0x29366a(0x13f)])return;const _0x23db20=formatColoredLogEntry('warn',_0x47b711);!this[_0x29366a(0x155)]&&console[_0x29366a(0x16a)](_0x23db20),this['logStream']?.[_0x29366a(0x16b)](_0x23db20+'\x0a');}[a149_0x359bfa(0x16a)](..._0x1eda00){const _0x5575f2=a149_0x359bfa,_0x1e715f=formatColoredLogEntry(_0x5575f2(0x16a),_0x1eda00);!this[_0x5575f2(0x155)]&&console[_0x5575f2(0x16a)](_0x1e715f),this[_0x5575f2(0x138)]?.[_0x5575f2(0x16b)](_0x1e715f+'\x0a');}async[a149_0x359bfa(0x167)](){const _0x15434c=a149_0x359bfa;return this[_0x15434c(0x16e)](_0x15434c(0x13d)),new Promise(_0x304d94=>{const _0x8b5f56=_0x15434c;this[_0x8b5f56(0x138)]?this[_0x8b5f56(0x138)][_0x8b5f56(0x137)](()=>{_0x304d94();}):_0x304d94();});}[a149_0x359bfa(0x14b)](){const _0xffa0e8=a149_0x359bfa;return join(this[_0xffa0e8(0x158)],_0xffa0e8(0x159));}}
@@ -1 +1 @@
1
- (function(_0x41e3ea,_0xefa164){const _0xc2df82=a148_0x2399,_0x5aeb0b=_0x41e3ea();while(!![]){try{const _0x234f54=-parseInt(_0xc2df82(0x1e4))/0x1*(-parseInt(_0xc2df82(0x1f7))/0x2)+parseInt(_0xc2df82(0x1df))/0x3+parseInt(_0xc2df82(0x1eb))/0x4*(parseInt(_0xc2df82(0x1e0))/0x5)+-parseInt(_0xc2df82(0x1ee))/0x6+parseInt(_0xc2df82(0x1e2))/0x7+parseInt(_0xc2df82(0x1f2))/0x8*(-parseInt(_0xc2df82(0x1e3))/0x9)+-parseInt(_0xc2df82(0x1f4))/0xa;if(_0x234f54===_0xefa164)break;else _0x5aeb0b['push'](_0x5aeb0b['shift']());}catch(_0x5c71a6){_0x5aeb0b['push'](_0x5aeb0b['shift']());}}}(a148_0x62c4,0x9a364));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a148_0x2399(_0x26d476,_0x18f12f){_0x26d476=_0x26d476-0x1d5;const _0x62c4f7=a148_0x62c4();let _0x2399f3=_0x62c4f7[_0x26d476];return _0x2399f3;}import{join}from'path';import{gt,valid}from'semver';import a148_0x199bdc from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x146020=a148_0x2399,_0x58c537=getCacheDir();return join(_0x58c537,_0x146020(0x1db));}function readCache(){const _0x568650=a148_0x2399;try{const _0x2cfb61=getCacheFilePath(),_0x112bc2=readFileSync(_0x2cfb61,_0x568650(0x1ea));return JSON['parse'](_0x112bc2);}catch{return null;}}function writeCache(_0x35e755){const _0x2b4c59=a148_0x2399;try{const _0x7f6098=getCacheDir();mkdirSync(_0x7f6098,{'recursive':!![]});const _0x20433f={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x35e755},_0x5f316a=getCacheFilePath();writeFileSync(_0x5f316a,JSON['stringify'](_0x20433f,null,0x2),_0x2b4c59(0x1ea));}catch{}}function isCacheValid(_0x263bf1){const _0x2ac88b=a148_0x2399;if(!_0x263bf1)return![];const _0x5f307b=new Date(_0x263bf1[_0x2ac88b(0x1d5)])[_0x2ac88b(0x1fa)](),_0x1f20bb=Date[_0x2ac88b(0x1de)]();return _0x1f20bb-_0x5f307b<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x19a281,_0x4598ad)=>{const _0x248bc1=a148_0x2399,_0x2e7054=get(NPM_REGISTRY_URL,_0x214656=>{const _0x3a862d=a148_0x2399;if(_0x214656[_0x3a862d(0x1da)]!==0xc8){clearTimeout(_0x1855da),_0x4598ad(new Error(_0x3a862d(0x1e8)+_0x214656[_0x3a862d(0x1da)]));return;}let _0x21087a='';_0x214656['on'](_0x3a862d(0x1e1),_0x4c0178=>{_0x21087a+=_0x4c0178;}),_0x214656['on'](_0x3a862d(0x1f5),()=>{const _0x1cddc6=_0x3a862d;clearTimeout(_0x1855da);try{const _0x11159d=JSON[_0x1cddc6(0x1dd)](_0x21087a);if(!valid(_0x11159d[_0x1cddc6(0x1dc)])){_0x4598ad(new Error(_0x1cddc6(0x1f6)));return;}_0x19a281(_0x11159d[_0x1cddc6(0x1dc)]);}catch(_0x155006){_0x4598ad(_0x155006);}});})['on'](_0x248bc1(0x1e5),_0x1e9e2a=>{clearTimeout(_0x1855da),_0x4598ad(_0x1e9e2a);}),_0x1855da=setTimeout(()=>{const _0x406196=_0x248bc1;_0x2e7054[_0x406196(0x1f0)](),_0x4598ad(new Error(_0x406196(0x1e7)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x19a5fe){try{const _0x23caa4=readCache();if(isCacheValid(_0x23caa4)){const _0x20f4eb=gt(_0x23caa4['latestVersion'],_0x19a5fe);return{'updateAvailable':_0x20f4eb,'currentVersion':_0x19a5fe,'latestVersion':_0x23caa4['latestVersion']};}const _0x155206=await fetchLatestVersion();writeCache(_0x155206);const _0x5395e4=gt(_0x155206,_0x19a5fe);return{'updateAvailable':_0x5395e4,'currentVersion':_0x19a5fe,'latestVersion':_0x155206};}catch{return null;}}export function displayUpdateNotification(_0x4110a6){const _0x2fe525=a148_0x2399;if(!_0x4110a6[_0x2fe525(0x1fb)])return;const _0x1e71bd=process[_0x2fe525(0x1ef)][_0x2fe525(0x1f1)]&&!process[_0x2fe525(0x1d9)][_0x2fe525(0x1d7)],_0x5cd5c6=_0x1e71bd?a148_0x199bdc['gray']('→'):'→',_0x214193=_0x1e71bd?a148_0x199bdc[_0x2fe525(0x1f3)](_0x4110a6[_0x2fe525(0x1f9)]):_0x4110a6[_0x2fe525(0x1f9)],_0x128fe0=_0x1e71bd?a148_0x199bdc[_0x2fe525(0x1ec)](_0x4110a6['latestVersion']):_0x4110a6[_0x2fe525(0x1fd)],_0x51ea3b=_0x1e71bd?a148_0x199bdc['cyan']('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x2fe525(0x1e6),_0x154db6=_0x1e71bd?'\x0a'+a148_0x199bdc[_0x2fe525(0x1f8)](_0x2fe525(0x1d8))+'\x20'+_0x214193+'\x20'+_0x5cd5c6+'\x20'+_0x128fe0+'\x0a'+a148_0x199bdc[_0x2fe525(0x1f3)](_0x2fe525(0x1e9))+'\x20'+_0x51ea3b+'\x0a':_0x2fe525(0x1fc)+_0x214193+'\x20'+_0x5cd5c6+'\x20'+_0x128fe0+_0x2fe525(0x1ed)+_0x51ea3b+'\x0a';process['stderr'][_0x2fe525(0x1d6)](_0x154db6);}function a148_0x62c4(){const _0x3fdb9d=['env','statusCode','last_version_check','version','parse','now','2540319oqmWwJ','30AgYUah','data','1891820qrjuRJ','18NNjvfJ','1172IZwHMu','error','npm\x20install\x20-g\x20@treasuredata/tdx@latest','Request\x20timeout','HTTP\x20','Run:','utf-8','201428kkrAHz','green','\x0aRun:\x20','5739870NqkMNk','stderr','destroy','isTTY','439840izsvLX','dim','7804060jJhPjQ','end','Invalid\x20version\x20format','1808IMuBGt','yellow','currentVersion','getTime','updateAvailable','\x0aUpdate\x20available:\x20','latestVersion','lastCheck','write','NO_COLOR','Update\x20available:'];a148_0x62c4=function(){return _0x3fdb9d;};return a148_0x62c4();}
1
+ const a150_0x4259cf=a150_0x2085;(function(_0x370147,_0x40cc7d){const _0x20181c=a150_0x2085,_0x1b61eb=_0x370147();while(!![]){try{const _0x1ff877=-parseInt(_0x20181c(0x98))/0x1*(parseInt(_0x20181c(0xa8))/0x2)+parseInt(_0x20181c(0xad))/0x3*(parseInt(_0x20181c(0xab))/0x4)+-parseInt(_0x20181c(0x9f))/0x5+parseInt(_0x20181c(0x9e))/0x6*(parseInt(_0x20181c(0xa9))/0x7)+parseInt(_0x20181c(0x8d))/0x8*(-parseInt(_0x20181c(0xa7))/0x9)+-parseInt(_0x20181c(0xaf))/0xa+parseInt(_0x20181c(0xa0))/0xb*(parseInt(_0x20181c(0x93))/0xc);if(_0x1ff877===_0x40cc7d)break;else _0x1b61eb['push'](_0x1b61eb['shift']());}catch(_0x5467b5){_0x1b61eb['push'](_0x1b61eb['shift']());}}}(a150_0xa035,0x84037));import{get}from'https';function a150_0x2085(_0x3afb9b,_0x38dd84){_0x3afb9b=_0x3afb9b-0x86;const _0xa03587=a150_0xa035();let _0x208542=_0xa03587[_0x3afb9b];return _0x208542;}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a150_0x5694a0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a150_0x4259cf(0x94),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x47f9d3=a150_0x4259cf,_0x3acd2b=getCacheDir();return join(_0x3acd2b,_0x47f9d3(0x9d));}function readCache(){const _0x484fde=a150_0x4259cf;try{const _0x4bc0de=getCacheFilePath(),_0xedd2ca=readFileSync(_0x4bc0de,_0x484fde(0x91));return JSON[_0x484fde(0x95)](_0xedd2ca);}catch{return null;}}function writeCache(_0x24b1bb){const _0x444170=a150_0x4259cf;try{const _0x26df9a=getCacheDir();mkdirSync(_0x26df9a,{'recursive':!![]});const _0x43340d={'lastCheck':new Date()[_0x444170(0x88)](),'latestVersion':_0x24b1bb},_0x2ae67f=getCacheFilePath();writeFileSync(_0x2ae67f,JSON['stringify'](_0x43340d,null,0x2),_0x444170(0x91));}catch{}}function isCacheValid(_0x45e36a){const _0x217211=a150_0x4259cf;if(!_0x45e36a)return![];const _0x2f5f24=new Date(_0x45e36a[_0x217211(0x97)])[_0x217211(0xa1)](),_0x463fb9=Date[_0x217211(0x9b)]();return _0x463fb9-_0x2f5f24<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x403486,_0x12599c)=>{const _0x52fe03=a150_0x2085,_0x4dd587=get(NPM_REGISTRY_URL,_0x47dfe5=>{const _0x4c152a=a150_0x2085;if(_0x47dfe5[_0x4c152a(0x86)]!==0xc8){clearTimeout(_0x475d52),_0x12599c(new Error(_0x4c152a(0xa6)+_0x47dfe5[_0x4c152a(0x86)]));return;}let _0x28f3be='';_0x47dfe5['on']('data',_0x393825=>{_0x28f3be+=_0x393825;}),_0x47dfe5['on'](_0x4c152a(0xa4),()=>{const _0x4af791=_0x4c152a;clearTimeout(_0x475d52);try{const _0x701fad=JSON['parse'](_0x28f3be);if(!valid(_0x701fad[_0x4af791(0x9a)])){_0x12599c(new Error(_0x4af791(0x8b)));return;}_0x403486(_0x701fad[_0x4af791(0x9a)]);}catch(_0x201e1d){_0x12599c(_0x201e1d);}});})['on'](_0x52fe03(0xaa),_0xd4dc2b=>{clearTimeout(_0x475d52),_0x12599c(_0xd4dc2b);}),_0x475d52=setTimeout(()=>{const _0x3e7ff4=_0x52fe03;_0x4dd587[_0x3e7ff4(0xb0)](),_0x12599c(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x18d15b){const _0x373134=a150_0x4259cf;try{const _0x25a1ec=readCache();if(isCacheValid(_0x25a1ec)){const _0x25df36=gt(_0x25a1ec[_0x373134(0x87)],_0x18d15b);return{'updateAvailable':_0x25df36,'currentVersion':_0x18d15b,'latestVersion':_0x25a1ec[_0x373134(0x87)]};}const _0x33ea3a=await fetchLatestVersion();writeCache(_0x33ea3a);const _0x5ddc99=gt(_0x33ea3a,_0x18d15b);return{'updateAvailable':_0x5ddc99,'currentVersion':_0x18d15b,'latestVersion':_0x33ea3a};}catch{return null;}}function a150_0xa035(){const _0x152247=['506791FvdrdG','write','version','now','currentVersion','last_version_check','12sXSpVQ','2406200nzXceI','3344YwLRTP','getTime','cyan','Run:','end','\x0aRun:\x20','HTTP\x20','5041287cbPHyg','2VMazYg','1736602pKmvnx','error','4WlBwWx','env','3220392XcAUwb','NO_COLOR','2845110jniEzH','destroy','updateAvailable','statusCode','latestVersion','toISOString','green','dim','Invalid\x20version\x20format','Update\x20available:','8hZVgFt','isTTY','stderr','\x0aUpdate\x20available:\x20','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','31728LIshRD','https://registry.npmjs.org/@treasuredata/tdx/latest','parse','gray','lastCheck'];a150_0xa035=function(){return _0x152247;};return a150_0xa035();}export function displayUpdateNotification(_0x4a999b){const _0x21a5e0=a150_0x4259cf;if(!_0x4a999b[_0x21a5e0(0xb1)])return;const _0x93de32=process['stderr'][_0x21a5e0(0x8e)]&&!process[_0x21a5e0(0xac)][_0x21a5e0(0xae)],_0x272c95=_0x93de32?a150_0x5694a0[_0x21a5e0(0x96)]('→'):'→',_0x38b242=_0x93de32?a150_0x5694a0[_0x21a5e0(0x8a)](_0x4a999b[_0x21a5e0(0x9c)]):_0x4a999b[_0x21a5e0(0x9c)],_0x3951b1=_0x93de32?a150_0x5694a0[_0x21a5e0(0x89)](_0x4a999b[_0x21a5e0(0x87)]):_0x4a999b[_0x21a5e0(0x87)],_0x538585=_0x93de32?a150_0x5694a0[_0x21a5e0(0xa2)](_0x21a5e0(0x92)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x540a3d=_0x93de32?'\x0a'+a150_0x5694a0['yellow'](_0x21a5e0(0x8c))+'\x20'+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+'\x0a'+a150_0x5694a0[_0x21a5e0(0x8a)](_0x21a5e0(0xa3))+'\x20'+_0x538585+'\x0a':_0x21a5e0(0x90)+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+_0x21a5e0(0xa5)+_0x538585+'\x0a';process[_0x21a5e0(0x8f)][_0x21a5e0(0x99)](_0x540a3d);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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": {