@treasuredata/tdx 0.14.3 → 0.14.4

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 (141) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/api-command.js +1 -1
  8. package/dist/commands/auth-command.js +1 -1
  9. package/dist/commands/chat-command.js +1 -1
  10. package/dist/commands/claude-command.d.ts.map +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-command.js.map +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-command.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/journey-command.js +1 -1
  22. package/dist/commands/journey-validate-command.js +1 -1
  23. package/dist/commands/llm-command.js +1 -1
  24. package/dist/commands/llm-proxy.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/user-command.js +1 -1
  42. package/dist/commands/workflow-command.js +1 -1
  43. package/dist/core/auth.js +1 -1
  44. package/dist/core/command-output.js +1 -1
  45. package/dist/core/config.js +1 -1
  46. package/dist/core/connection-cache.js +1 -1
  47. package/dist/core/constants.js +1 -1
  48. package/dist/core/credential-cache.js +1 -1
  49. package/dist/core/global-context.js +1 -1
  50. package/dist/core/keychain.js +1 -1
  51. package/dist/core/profile.js +1 -1
  52. package/dist/core/project-config.js +1 -1
  53. package/dist/core/session.js +1 -1
  54. package/dist/core/user-cache.js +1 -1
  55. package/dist/core/version.js +1 -1
  56. package/dist/index.js +1 -1
  57. package/dist/proxy/anthropic-adapter.js +1 -1
  58. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  61. package/dist/proxy/context-signature.js +1 -1
  62. package/dist/proxy/conversation-utils.js +1 -1
  63. package/dist/proxy/passthrough-server.js +1 -1
  64. package/dist/proxy/server.js +1 -1
  65. package/dist/proxy/session-cache.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/api.js +1 -1
  71. package/dist/sdk/client/cdp-api-client.js +1 -1
  72. package/dist/sdk/client/endpoints.js +1 -1
  73. package/dist/sdk/client/engage-api-client.js +1 -1
  74. package/dist/sdk/client/http-client.js +1 -1
  75. package/dist/sdk/client/llm-api-client.js +1 -1
  76. package/dist/sdk/client/rate-limiter.js +1 -1
  77. package/dist/sdk/client/td-api-client.js +1 -1
  78. package/dist/sdk/client/trino-api-client.js +1 -1
  79. package/dist/sdk/client/workflow-client.js +1 -1
  80. package/dist/sdk/connection-validator.js +1 -1
  81. package/dist/sdk/connection.js +1 -1
  82. package/dist/sdk/engage.js +1 -1
  83. package/dist/sdk/errors.js +1 -1
  84. package/dist/sdk/index.js +1 -1
  85. package/dist/sdk/io/index.js +1 -1
  86. package/dist/sdk/io/node-filesystem.js +1 -1
  87. package/dist/sdk/job.js +1 -1
  88. package/dist/sdk/journey.js +1 -1
  89. package/dist/sdk/llm/chat-cache.js +1 -1
  90. package/dist/sdk/llm/index.js +1 -1
  91. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  92. package/dist/sdk/llm/model-aliases.js +1 -1
  93. package/dist/sdk/llm/model-factors.js +1 -1
  94. package/dist/sdk/query/index.js +1 -1
  95. package/dist/sdk/query/sql-parser.js +1 -1
  96. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  97. package/dist/sdk/segment/fields-display.js +1 -1
  98. package/dist/sdk/segment/file-discovery.js +1 -1
  99. package/dist/sdk/segment/journey-utils.js +1 -1
  100. package/dist/sdk/segment/journey-yaml.js +1 -1
  101. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  102. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  103. package/dist/sdk/segment/pull-workflow.js +1 -1
  104. package/dist/sdk/segment/push-workflow.js +1 -1
  105. package/dist/sdk/segment/resolution-context.js +1 -1
  106. package/dist/sdk/segment/segment-path-parser.js +1 -1
  107. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  108. package/dist/sdk/segment/target-resolution.js +1 -1
  109. package/dist/sdk/segment/tdx-config.js +1 -1
  110. package/dist/sdk/segment/validate-files.js +1 -1
  111. package/dist/sdk/segment/yaml-validator.js +1 -1
  112. package/dist/sdk/segment.js +1 -1
  113. package/dist/sdk/types/index.js +1 -1
  114. package/dist/sdk/types/progress.js +1 -1
  115. package/dist/sdk/user.js +1 -1
  116. package/dist/sdk/util/format-detector.js +1 -1
  117. package/dist/sdk/util/formatters.js +1 -1
  118. package/dist/sdk/util/index.js +1 -1
  119. package/dist/sdk/util/tree-formatter.js +1 -1
  120. package/dist/sdk/workflow/clone-workflow.js +1 -1
  121. package/dist/sdk/workflow/index.js +1 -1
  122. package/dist/sdk/workflow/pull-workflow.js +1 -1
  123. package/dist/sdk/workflow/push-workflow.js +1 -1
  124. package/dist/sdk/workflow/tdx-config.js +1 -1
  125. package/dist/sdk/workflow/workflow-utils.js +1 -1
  126. package/dist/utils/async.js +1 -1
  127. package/dist/utils/colors.js +1 -1
  128. package/dist/utils/diff.js +1 -1
  129. package/dist/utils/file-permissions.js +1 -1
  130. package/dist/utils/json-loader.js +1 -1
  131. package/dist/utils/option-validation.js +1 -1
  132. package/dist/utils/port.js +1 -1
  133. package/dist/utils/process.js +1 -1
  134. package/dist/utils/prompt.js +1 -1
  135. package/dist/utils/spinner.js +1 -1
  136. package/dist/utils/sse-parser.js +1 -1
  137. package/dist/utils/string-utils.js +1 -1
  138. package/dist/utils/table-ref-parser.js +1 -1
  139. package/dist/utils/tdx-logger.js +1 -1
  140. package/dist/utils/version-check.js +1 -1
  141. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x846840,_0x3809ab){const _0x5e08af=a140_0x206f,_0x331ad2=_0x846840();while(!![]){try{const _0x246fa3=parseInt(_0x5e08af(0x17b))/0x1+parseInt(_0x5e08af(0x181))/0x2*(-parseInt(_0x5e08af(0x177))/0x3)+parseInt(_0x5e08af(0x16b))/0x4+parseInt(_0x5e08af(0x16e))/0x5+-parseInt(_0x5e08af(0x174))/0x6+parseInt(_0x5e08af(0x16d))/0x7*(parseInt(_0x5e08af(0x16c))/0x8)+-parseInt(_0x5e08af(0x17e))/0x9*(-parseInt(_0x5e08af(0x173))/0xa);if(_0x246fa3===_0x3809ab)break;else _0x331ad2['push'](_0x331ad2['shift']());}catch(_0x44bd4b){_0x331ad2['push'](_0x331ad2['shift']());}}}(a140_0x2891,0xf3cb4));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1184eb,_0x3647f3){const _0x2d2a55=a140_0x206f;try{if(_0x3647f3){const _0x27c013=await readFile(_0x1184eb,_0x2d2a55(0x182));try{return JSON['parse'](_0x27c013);}catch(_0x182347){throw new SDKError(ErrorCode[_0x2d2a55(0x180)],_0x2d2a55(0x16f)+_0x1184eb+_0x2d2a55(0x183)+(_0x182347 instanceof Error?_0x182347[_0x2d2a55(0x176)]:String(_0x182347)));}}else try{return JSON['parse'](_0x1184eb);}catch(_0x2a9a0d){throw new SDKError(ErrorCode[_0x2d2a55(0x180)],_0x2d2a55(0x172)+(_0x2a9a0d instanceof Error?_0x2a9a0d['message']:String(_0x2a9a0d)));}}catch(_0x3092d2){if(_0x3092d2 instanceof SDKError)throw _0x3092d2;if(_0x3092d2 instanceof Error&&_0x2d2a55(0x17f)in _0x3092d2){const _0x70129b=_0x3092d2;if(_0x70129b[_0x2d2a55(0x17f)]===_0x2d2a55(0x171))throw new SDKError(ErrorCode[_0x2d2a55(0x175)],_0x2d2a55(0x17c)+_0x1184eb);else{if(_0x70129b['code']===_0x2d2a55(0x179))throw new SDKError(ErrorCode[_0x2d2a55(0x170)],_0x2d2a55(0x17a)+_0x1184eb);}}throw new SDKError(ErrorCode[_0x2d2a55(0x17d)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3092d2 instanceof Error?_0x3092d2[_0x2d2a55(0x176)]:String(_0x3092d2)));}}function a140_0x206f(_0x54c8bd,_0x260b92){_0x54c8bd=_0x54c8bd-0x16b;const _0x289192=a140_0x2891();let _0x206fd8=_0x289192[_0x54c8bd];return _0x206fd8;}function a140_0x2891(){const _0xea4caa=['INVALID_ARGUMENT','1240516FpBCAT','utf-8','\x27:\x20','775552gwjBQt','250944jClNbX','392kDuBPM','7742565KWqBbm','Invalid\x20JSON\x20in\x20file\x20\x27','PERMISSION_DENIED','ENOENT','Invalid\x20JSON\x20string:\x20','619270kqbcdl','7229994iGkXAN','NOT_FOUND','message','9lydjXD','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','EACCES','Permission\x20denied\x20reading\x20file:\x20','131855iRUgMz','File\x20not\x20found:\x20','INTERNAL','63JkjsRg','code'];a140_0x2891=function(){return _0xea4caa;};return a140_0x2891();}export async function loadJSONFromOptions(_0x493333,_0x1f7e24){const _0x1694b2=a140_0x206f;if(_0x493333&&_0x1f7e24)throw new SDKError(ErrorCode[_0x1694b2(0x180)],_0x1694b2(0x178));if(_0x493333)return await loadJSON(_0x493333,![]);if(_0x1f7e24)return await loadJSON(_0x1f7e24,!![]);return undefined;}
1
+ (function(_0x4bdc52,_0x2115e7){const _0x57c84a=a140_0x21dc,_0x6f6066=_0x4bdc52();while(!![]){try{const _0x54ddfd=parseInt(_0x57c84a(0x165))/0x1*(parseInt(_0x57c84a(0x150))/0x2)+-parseInt(_0x57c84a(0x14d))/0x3*(parseInt(_0x57c84a(0x154))/0x4)+-parseInt(_0x57c84a(0x155))/0x5*(-parseInt(_0x57c84a(0x14e))/0x6)+-parseInt(_0x57c84a(0x14c))/0x7*(parseInt(_0x57c84a(0x152))/0x8)+parseInt(_0x57c84a(0x15e))/0x9*(parseInt(_0x57c84a(0x15f))/0xa)+parseInt(_0x57c84a(0x156))/0xb+-parseInt(_0x57c84a(0x15c))/0xc;if(_0x54ddfd===_0x2115e7)break;else _0x6f6066['push'](_0x6f6066['shift']());}catch(_0x1584f5){_0x6f6066['push'](_0x6f6066['shift']());}}}(a140_0x24ff,0x45d22));import{readFile}from'fs/promises';function a140_0x24ff(){const _0x1b70ea=['5467605MjESoR','\x27:\x20','parse','INTERNAL','INVALID_ARGUMENT','File\x20not\x20found:\x20','9381816EjNsxY','Invalid\x20JSON\x20string:\x20','1707120KsAqbz','20nTZZIs','Failed\x20to\x20load\x20JSON:\x20','code','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','340419vmYgIs','3353TFJFSS','6wBIyoN','642Geiusy','utf-8','2BAzDJd','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2456CFfMor','NOT_FOUND','322600IByOfG','7445EJwQrs'];a140_0x24ff=function(){return _0x1b70ea;};return a140_0x24ff();}function a140_0x21dc(_0x4ed2be,_0x3f1b56){_0x4ed2be=_0x4ed2be-0x14c;const _0x24fff7=a140_0x24ff();let _0x21dc9e=_0x24fff7[_0x4ed2be];return _0x21dc9e;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x37aabd,_0x2ebe37){const _0x5de56d=a140_0x21dc;try{if(_0x2ebe37){const _0x336109=await readFile(_0x37aabd,_0x5de56d(0x14f));try{return JSON[_0x5de56d(0x158)](_0x336109);}catch(_0x9c6f9b){throw new SDKError(ErrorCode[_0x5de56d(0x15a)],_0x5de56d(0x164)+_0x37aabd+_0x5de56d(0x157)+(_0x9c6f9b instanceof Error?_0x9c6f9b['message']:String(_0x9c6f9b)));}}else try{return JSON[_0x5de56d(0x158)](_0x37aabd);}catch(_0x3061b8){throw new SDKError(ErrorCode[_0x5de56d(0x15a)],_0x5de56d(0x15d)+(_0x3061b8 instanceof Error?_0x3061b8['message']:String(_0x3061b8)));}}catch(_0x1e50ae){if(_0x1e50ae instanceof SDKError)throw _0x1e50ae;if(_0x1e50ae instanceof Error&&_0x5de56d(0x161)in _0x1e50ae){const _0x706b7d=_0x1e50ae;if(_0x706b7d[_0x5de56d(0x161)]==='ENOENT')throw new SDKError(ErrorCode[_0x5de56d(0x153)],_0x5de56d(0x15b)+_0x37aabd);else{if(_0x706b7d['code']==='EACCES')throw new SDKError(ErrorCode[_0x5de56d(0x162)],_0x5de56d(0x163)+_0x37aabd);}}throw new SDKError(ErrorCode[_0x5de56d(0x159)],_0x5de56d(0x160)+(_0x1e50ae instanceof Error?_0x1e50ae['message']:String(_0x1e50ae)));}}export async function loadJSONFromOptions(_0x59efdd,_0x998ad2){const _0xc3f23c=a140_0x21dc;if(_0x59efdd&&_0x998ad2)throw new SDKError(ErrorCode[_0xc3f23c(0x15a)],_0xc3f23c(0x151));if(_0x59efdd)return await loadJSON(_0x59efdd,![]);if(_0x998ad2)return await loadJSON(_0x998ad2,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x21ca96,_0x153460){const _0x201c08=a141_0x3cc5,_0x262663=_0x21ca96();while(!![]){try{const _0x4b3ec8=-parseInt(_0x201c08(0x78))/0x1*(-parseInt(_0x201c08(0x6f))/0x2)+parseInt(_0x201c08(0x71))/0x3*(-parseInt(_0x201c08(0x7e))/0x4)+parseInt(_0x201c08(0x7c))/0x5+-parseInt(_0x201c08(0x75))/0x6+-parseInt(_0x201c08(0x7d))/0x7+parseInt(_0x201c08(0x79))/0x8*(parseInt(_0x201c08(0x74))/0x9)+-parseInt(_0x201c08(0x77))/0xa*(-parseInt(_0x201c08(0x70))/0xb);if(_0x4b3ec8===_0x153460)break;else _0x262663['push'](_0x262663['shift']());}catch(_0x20856c){_0x262663['push'](_0x262663['shift']());}}}(a141_0x2e80,0x40bf1));export function validateLimitOption(_0x1a0fc5){const _0x28ca8f=a141_0x3cc5;if(!Number['isInteger'](_0x1a0fc5))return{'isValid':![],'error':_0x28ca8f(0x7a)+_0x1a0fc5+_0x28ca8f(0x6e)};if(_0x1a0fc5<=0x0)return{'isValid':![],'error':_0x28ca8f(0x7a)+_0x1a0fc5+_0x28ca8f(0x73)};return{'isValid':!![],'value':_0x1a0fc5};}function a141_0x3cc5(_0x165247,_0x52eb0e){_0x165247=_0x165247-0x6e;const _0x2e80f7=a141_0x2e80();let _0x3cc558=_0x2e80f7[_0x165247];return _0x3cc558;}export function validateTimeoutOption(_0x1a196b,_0x14bfc3=0x1e){const _0x57fd75=a141_0x3cc5;if(_0x1a196b===undefined)return{'isValid':!![],'value':_0x14bfc3};const _0x4f55f4=typeof _0x1a196b===_0x57fd75(0x7b)?_0x1a196b:parseFloat(_0x1a196b);if(isNaN(_0x4f55f4))return{'isValid':![],'error':_0x57fd75(0x72)+_0x1a196b+'.\x20Must\x20be\x20a\x20number.'};if(_0x4f55f4<=0x0)return{'isValid':![],'error':_0x57fd75(0x72)+_0x4f55f4+_0x57fd75(0x76)};return{'isValid':!![],'value':_0x4f55f4};}function a141_0x2e80(){const _0x207c57=['1201200tcdroG','.\x20Must\x20be\x20a\x20positive\x20number.','2540yboCWn','1AlMVAE','8xZBPor','Invalid\x20limit\x20value:\x20','number','1002165SMgVSN','2699116CAkeJM','12pXeJff','.\x20Must\x20be\x20an\x20integer.','687028xoFIZH','17589kyxzHn','275367uKIfXo','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','1586367ChBIec'];a141_0x2e80=function(){return _0x207c57;};return a141_0x2e80();}
1
+ function a141_0x4ba5(){const _0x4667ec=['4veFgNG','21ONBxFW','4026ligBQr','3pSCtnO','10235124BpUBNU','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20timeout\x20value:\x20','16395966flSFMj','1063928LoMluj','3382760EuzhZm','7540VJcmYf','Invalid\x20limit\x20value:\x20','18744600GnELwr','99aWVGVz','3296475MftnAe'];a141_0x4ba5=function(){return _0x4667ec;};return a141_0x4ba5();}function a141_0x2439(_0x4cc3e7,_0x506e74){_0x4cc3e7=_0x4cc3e7-0x7b;const _0x4ba5f2=a141_0x4ba5();let _0x2439e3=_0x4ba5f2[_0x4cc3e7];return _0x2439e3;}(function(_0x4e4a02,_0x14b440){const _0x139159=a141_0x2439,_0xbe41d7=_0x4e4a02();while(!![]){try{const _0x435072=parseInt(_0x139159(0x84))/0x1*(parseInt(_0x139159(0x8a))/0x2)+-parseInt(_0x139159(0x80))/0x3*(-parseInt(_0x139159(0x81))/0x4)+parseInt(_0x139159(0x7c))/0x5*(parseInt(_0x139159(0x83))/0x6)+-parseInt(_0x139159(0x82))/0x7*(-parseInt(_0x139159(0x7b))/0x8)+parseInt(_0x139159(0x89))/0x9+parseInt(_0x139159(0x7e))/0xa+parseInt(_0x139159(0x7f))/0xb*(-parseInt(_0x139159(0x85))/0xc);if(_0x435072===_0x14b440)break;else _0xbe41d7['push'](_0xbe41d7['shift']());}catch(_0x9b9f22){_0xbe41d7['push'](_0xbe41d7['shift']());}}}(a141_0x4ba5,0xf2ec3));export function validateLimitOption(_0x1eb5b4){const _0xfec68a=a141_0x2439;if(!Number['isInteger'](_0x1eb5b4))return{'isValid':![],'error':_0xfec68a(0x7d)+_0x1eb5b4+'.\x20Must\x20be\x20an\x20integer.'};if(_0x1eb5b4<=0x0)return{'isValid':![],'error':_0xfec68a(0x7d)+_0x1eb5b4+_0xfec68a(0x87)};return{'isValid':!![],'value':_0x1eb5b4};}export function validateTimeoutOption(_0x2766f5,_0x29ffa4=0x1e){const _0x453aee=a141_0x2439;if(_0x2766f5===undefined)return{'isValid':!![],'value':_0x29ffa4};const _0x4a319b=typeof _0x2766f5==='number'?_0x2766f5:parseFloat(_0x2766f5);if(isNaN(_0x4a319b))return{'isValid':![],'error':_0x453aee(0x88)+_0x2766f5+'.\x20Must\x20be\x20a\x20number.'};if(_0x4a319b<=0x0)return{'isValid':![],'error':_0x453aee(0x88)+_0x4a319b+_0x453aee(0x86)};return{'isValid':!![],'value':_0x4a319b};}
@@ -1 +1 @@
1
- function a142_0x58c6(){const _0x277d06=['once','16hEyioU','code','1370545zfvRLj','921465EFdetS','5355623ZeVaxe','171EBjYGz','No\x20available\x20port\x20found\x20between\x20','listening','3573465MlbTqn','close','50JqUuNG','940256oQeIsq','\x20and\x20','EADDRINUSE','10351284xjTtpo','5914enyWzt'];a142_0x58c6=function(){return _0x277d06;};return a142_0x58c6();}(function(_0x399185,_0x190c56){const _0x23b693=a142_0x4e80,_0x224683=_0x399185();while(!![]){try{const _0x27e631=-parseInt(_0x23b693(0x183))/0x1*(parseInt(_0x23b693(0x17c))/0x2)+parseInt(_0x23b693(0x186))/0x3+parseInt(_0x23b693(0x178))/0x4+parseInt(_0x23b693(0x180))/0x5+parseInt(_0x23b693(0x17b))/0x6+parseInt(_0x23b693(0x182))/0x7*(-parseInt(_0x23b693(0x17e))/0x8)+parseInt(_0x23b693(0x181))/0x9*(-parseInt(_0x23b693(0x177))/0xa);if(_0x27e631===_0x190c56)break;else _0x224683['push'](_0x224683['shift']());}catch(_0x54992e){_0x224683['push'](_0x224683['shift']());}}}(a142_0x58c6,0xd64e0));import{createServer}from'node:net';function a142_0x4e80(_0x1e2cdf,_0x14397f){_0x1e2cdf=_0x1e2cdf-0x177;const _0x58c6b0=a142_0x58c6();let _0x4e805c=_0x58c6b0[_0x1e2cdf];return _0x4e805c;}export async function isPortAvailable(_0x3f13d4){return new Promise(_0x15b5f1=>{const _0x5a2fa2=a142_0x4e80,_0x45e8d1=createServer();_0x45e8d1[_0x5a2fa2(0x17d)]('error',_0x4ff7de=>{const _0x2e3643=_0x5a2fa2;_0x4ff7de[_0x2e3643(0x17f)]===_0x2e3643(0x17a)?_0x15b5f1(![]):_0x15b5f1(![]);}),_0x45e8d1[_0x5a2fa2(0x17d)](_0x5a2fa2(0x185),()=>{const _0x40b09c=_0x5a2fa2;_0x45e8d1[_0x40b09c(0x187)](),_0x15b5f1(!![]);}),_0x45e8d1['listen'](_0x3f13d4,'0.0.0.0');});}export async function findAvailablePort(_0x50b855=0xfa0,_0x527b8c=0x64){const _0x4dd242=a142_0x4e80;for(let _0x3f79c6=0x0;_0x3f79c6<_0x527b8c;_0x3f79c6++){const _0x533d11=_0x50b855+_0x3f79c6;if(await isPortAvailable(_0x533d11))return _0x533d11;}throw new Error(_0x4dd242(0x184)+_0x50b855+_0x4dd242(0x179)+(_0x50b855+_0x527b8c-0x1));}
1
+ (function(_0x550df0,_0x16b139){const _0x5d828e=a142_0xb860,_0x347c40=_0x550df0();while(!![]){try{const _0x300af3=-parseInt(_0x5d828e(0x1f9))/0x1*(parseInt(_0x5d828e(0x1f6))/0x2)+parseInt(_0x5d828e(0x1fa))/0x3*(-parseInt(_0x5d828e(0x1f5))/0x4)+-parseInt(_0x5d828e(0x1eb))/0x5+-parseInt(_0x5d828e(0x1f3))/0x6*(-parseInt(_0x5d828e(0x1f8))/0x7)+-parseInt(_0x5d828e(0x1ef))/0x8+parseInt(_0x5d828e(0x1f4))/0x9+parseInt(_0x5d828e(0x1ee))/0xa*(parseInt(_0x5d828e(0x1f0))/0xb);if(_0x300af3===_0x16b139)break;else _0x347c40['push'](_0x347c40['shift']());}catch(_0x4781be){_0x347c40['push'](_0x347c40['shift']());}}}(a142_0x3939,0x5f392));import{createServer}from'node:net';export async function isPortAvailable(_0x529650){return new Promise(_0x5224c9=>{const _0x1fac9c=a142_0xb860,_0x29dabf=createServer();_0x29dabf[_0x1fac9c(0x1e9)]('error',_0xed3b9b=>{const _0x2c3a9b=_0x1fac9c;_0xed3b9b[_0x2c3a9b(0x1f2)]===_0x2c3a9b(0x1ec)?_0x5224c9(![]):_0x5224c9(![]);}),_0x29dabf[_0x1fac9c(0x1e9)](_0x1fac9c(0x1f1),()=>{_0x29dabf['close'](),_0x5224c9(!![]);}),_0x29dabf['listen'](_0x529650,_0x1fac9c(0x1ed));});}function a142_0xb860(_0x36f8fa,_0x43d1a7){_0x36f8fa=_0x36f8fa-0x1e9;const _0x39398c=a142_0x3939();let _0xb86099=_0x39398c[_0x36f8fa];return _0xb86099;}export async function findAvailablePort(_0xe18eeb=0xfa0,_0xd8cc14=0x64){const _0x560dd3=a142_0xb860;for(let _0x29dc7b=0x0;_0x29dc7b<_0xd8cc14;_0x29dc7b++){const _0x113d39=_0xe18eeb+_0x29dc7b;if(await isPortAvailable(_0x113d39))return _0x113d39;}throw new Error(_0x560dd3(0x1ea)+_0xe18eeb+_0x560dd3(0x1f7)+(_0xe18eeb+_0xd8cc14-0x1));}function a142_0x3939(){const _0x51778b=['once','No\x20available\x20port\x20found\x20between\x20','3592915qflFaB','EADDRINUSE','0.0.0.0','30WvCksG','5810872vMnhEK','4085345uCXocu','listening','code','22254zLiQSE','5985603Vkdcev','1120328AZracV','2AQWqkE','\x20and\x20','791NSpQaN','83311Ydcguz','3YPbjSP'];a142_0x3939=function(){return _0x51778b;};return a142_0x3939();}
@@ -1 +1 @@
1
- const a143_0x26ad0d=a143_0x5132;(function(_0xdf2c92,_0x22d1a8){const _0x13ac1f=a143_0x5132,_0x36ee16=_0xdf2c92();while(!![]){try{const _0x2fe590=parseInt(_0x13ac1f(0x8b))/0x1+-parseInt(_0x13ac1f(0xa4))/0x2*(-parseInt(_0x13ac1f(0x98))/0x3)+parseInt(_0x13ac1f(0xb0))/0x4*(-parseInt(_0x13ac1f(0x97))/0x5)+parseInt(_0x13ac1f(0x96))/0x6*(-parseInt(_0x13ac1f(0xab))/0x7)+-parseInt(_0x13ac1f(0xb1))/0x8+-parseInt(_0x13ac1f(0x9a))/0x9+parseInt(_0x13ac1f(0xaf))/0xa;if(_0x2fe590===_0x22d1a8)break;else _0x36ee16['push'](_0x36ee16['shift']());}catch(_0x29f6b2){_0x36ee16['push'](_0x36ee16['shift']());}}}(a143_0x58e0,0x42aaf));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a143_0x26ad0d(0x9b),'sh',a143_0x26ad0d(0xa8),'ksh',a143_0x26ad0d(0xa3),a143_0x26ad0d(0x9e),a143_0x26ad0d(0xb4),a143_0x26ad0d(0x9d),a143_0x26ad0d(0x93),'nu',a143_0x26ad0d(0xae),a143_0x26ad0d(0xb7),a143_0x26ad0d(0xa5)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a143_0x26ad0d(0xb2),'code','cursor']);function getProcessInfoWindows(_0x4acf94){const _0x536361=a143_0x26ad0d;try{if(!Number[_0x536361(0x8e)](_0x4acf94)||_0x4acf94<=0x0)return null;const _0x20f8c7=execSync(_0x536361(0xaa)+_0x4acf94+_0x536361(0x99),{'encoding':_0x536361(0x8d),'windowsHide':!![]})[_0x536361(0x95)](),_0x429ade=_0x20f8c7['split']('\x0a')[_0x536361(0xa7)](_0x1b436e=>_0x1b436e[_0x536361(0x95)]());if(_0x429ade[_0x536361(0xad)]<0x2)return null;const _0x13233d=_0x429ade[_0x429ade[_0x536361(0xad)]-0x1][_0x536361(0xa9)](',');if(_0x13233d[_0x536361(0xad)]<0x3)return null;const _0x314e29=_0x13233d[0x1]?.[_0x536361(0x95)]()||'',_0x902709=parseInt(_0x13233d[0x2]?.[_0x536361(0x95)]()||'0',0xa);if(isNaN(_0x902709)||!_0x314e29)return null;return{'pid':_0x4acf94,'ppid':_0x902709,'comm':_0x314e29['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x1c8f7e){const _0x15c1ff=a143_0x26ad0d;try{const _0x26fd48=0x400000;if(!Number[_0x15c1ff(0x8e)](_0x1c8f7e)||_0x1c8f7e<=0x0||_0x1c8f7e>_0x26fd48)return null;const _0x237b37=execSync('ps\x20-p\x20'+_0x1c8f7e+_0x15c1ff(0xac),{'encoding':'utf-8','stdio':_0x15c1ff(0x90)})[_0x15c1ff(0x95)](),[_0x1b9ee9,..._0x4cef0e]=_0x237b37[_0x15c1ff(0xa9)](/\s+/),_0x391148=parseInt(_0x1b9ee9,0xa),_0x586708=_0x4cef0e[_0x15c1ff(0xa2)]('\x20');if(isNaN(_0x391148))return null;return{'pid':_0x1c8f7e,'ppid':_0x391148,'comm':_0x586708};}catch{return null;}}function getProcessInfo(_0x1efd38){const _0x3f097f=a143_0x26ad0d;if(process[_0x3f097f(0xb3)]===_0x3f097f(0x94))return getProcessInfoWindows(_0x1efd38);return getProcessInfoPosix(_0x1efd38);}function getBasename(_0x3c92f1){const _0x12c1a4=a143_0x26ad0d;return _0x3c92f1[_0x12c1a4(0xa1)](/^-/,'')['split']('/')[_0x12c1a4(0x8c)]()?.[_0x12c1a4(0x8a)]()||'';}function a143_0x58e0(){const _0x5c9b61=['ion','5791450MkNvvh','1936QXtJmj','4258096qDmyFf','claude','platform','dash','kill','start','elvish','toLowerCase','332867uQHlZx','pop','utf-8','isInteger','comm','pipe','pid','ppid','powershell','win32','trim','402864QlSecE','670yIOZMB','1488819pGLANe','\x20get\x20ParentProcessId,Name\x20/format:csv','1821384ClnlyI','zsh','ignore','pwsh','csh','has','unref','replace','join','tcsh','2blNXIE','xonsh','open','filter','fish','split','wmic\x20process\x20where\x20ProcessId=','35bHjfGI','\x20-o\x20ppid=,comm=','length'];a143_0x58e0=function(){return _0x5c9b61;};return a143_0x58e0();}function isShell(_0x1ec850){const _0x12fa0e=a143_0x26ad0d;return SHELL_NAMES[_0x12fa0e(0x9f)](getBasename(_0x1ec850));}function isEphemeralShellSpawner(_0x1e9166){const _0x8f7350=a143_0x26ad0d;return EPHEMERAL_SHELL_SPAWNERS[_0x8f7350(0x9f)](getBasename(_0x1e9166));}let cachedShellPID;function a143_0x5132(_0x894ade,_0x5fcee4){_0x894ade=_0x894ade-0x8a;const _0x58e03d=a143_0x58e0();let _0x51329b=_0x58e03d[_0x894ade];return _0x51329b;}function findShellPID(){const _0x3a337f=a143_0x26ad0d;if(process[_0x3a337f(0x92)]===undefined)return process[_0x3a337f(0x91)];let _0x96fa6e=process[_0x3a337f(0x92)];const _0x2335c7=0xa;let _0x304a6e=0x0;while(_0x304a6e<_0x2335c7){const _0x5a3986=getProcessInfo(_0x96fa6e);if(!_0x5a3986)break;if(isShell(_0x5a3986['comm'])){const _0x43cac5=getProcessInfo(_0x5a3986[_0x3a337f(0x92)]);if(_0x43cac5&&isEphemeralShellSpawner(_0x43cac5[_0x3a337f(0x8f)])){_0x96fa6e=_0x5a3986[_0x3a337f(0x92)],_0x304a6e++;continue;}return _0x5a3986[_0x3a337f(0x91)];}if(_0x5a3986['ppid']===0x0||_0x5a3986['ppid']===0x1){if(isShell(_0x5a3986['comm']))return _0x5a3986[_0x3a337f(0x91)];break;}_0x96fa6e=_0x5a3986['ppid'],_0x304a6e++;}return process[_0x3a337f(0x92)]!==undefined?process[_0x3a337f(0x92)]:process[_0x3a337f(0x91)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5de6ca){const _0x5081e5=a143_0x26ad0d;if(!Number['isInteger'](_0x5de6ca)||_0x5de6ca<=0x0)return![];try{return process[_0x5081e5(0xb5)](_0x5de6ca,0x0),!![];}catch{return![];}}export function openBrowser(_0x3d7f19){const _0x1de51f=a143_0x26ad0d,_0x43f2da=process[_0x1de51f(0xb3)],_0x4f3c94=_0x43f2da==='darwin'?_0x1de51f(0xa6):_0x43f2da===_0x1de51f(0x94)?_0x1de51f(0xb6):'xdg-open';spawn(_0x4f3c94,[_0x3d7f19],{'detached':!![],'stdio':_0x1de51f(0x9c)})[_0x1de51f(0xa0)]();}
1
+ const a143_0x3aa20b=a143_0xfa1e;function a143_0xfa1e(_0x3c67b9,_0x137706){_0x3c67b9=_0x3c67b9-0x110;const _0x475a39=a143_0x475a();let _0xfa1ee6=_0x475a39[_0x3c67b9];return _0xfa1ee6;}(function(_0x2b9c07,_0x3415b7){const _0x1a2b1b=a143_0xfa1e,_0x3c542f=_0x2b9c07();while(!![]){try{const _0x1db3c1=-parseInt(_0x1a2b1b(0x11b))/0x1*(-parseInt(_0x1a2b1b(0x111))/0x2)+-parseInt(_0x1a2b1b(0x11c))/0x3*(-parseInt(_0x1a2b1b(0x13c))/0x4)+-parseInt(_0x1a2b1b(0x12e))/0x5*(parseInt(_0x1a2b1b(0x13e))/0x6)+parseInt(_0x1a2b1b(0x116))/0x7+-parseInt(_0x1a2b1b(0x13a))/0x8*(parseInt(_0x1a2b1b(0x119))/0x9)+-parseInt(_0x1a2b1b(0x130))/0xa*(parseInt(_0x1a2b1b(0x134))/0xb)+parseInt(_0x1a2b1b(0x121))/0xc*(parseInt(_0x1a2b1b(0x126))/0xd);if(_0x1db3c1===_0x3415b7)break;else _0x3c542f['push'](_0x3c542f['shift']());}catch(_0x16aecd){_0x3c542f['push'](_0x3c542f['shift']());}}}(a143_0x475a,0xee31e));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a143_0x3aa20b(0x11a),a143_0x3aa20b(0x112),'sh',a143_0x3aa20b(0x131),a143_0x3aa20b(0x13f),a143_0x3aa20b(0x12d),a143_0x3aa20b(0x110),'dash',a143_0x3aa20b(0x124),a143_0x3aa20b(0x138),'nu','ion','elvish',a143_0x3aa20b(0x12a)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a143_0x3aa20b(0x122),a143_0x3aa20b(0x133),'cursor']);function a143_0x475a(){const _0x59eb4e=['534OgXauh','pid','darwin','pop','isInteger','1805592ErdwWw','claude','trim','pwsh','join','13FPbJhB','pipe','wmic\x20process\x20where\x20ProcessId=','split','xonsh','ps\x20-p\x20','utf-8','tcsh','5wXOsEO','xdg-open','118670xRLYJI','fish','win32','code','649VfIIuM','\x20get\x20ParentProcessId,Name\x20/format:csv','open','comm','powershell','unref','7928vKidkz','length','24916IsxecO','platform','9641838sCtMYW','ksh','csh','7666wDxNqs','zsh','filter','has','ppid','8970997WotUKY','replace','kill','711AfebTs','bash','214tdBTGZ'];a143_0x475a=function(){return _0x59eb4e;};return a143_0x475a();}function getProcessInfoWindows(_0x269a02){const _0x4b52d1=a143_0x3aa20b;try{if(!Number[_0x4b52d1(0x120)](_0x269a02)||_0x269a02<=0x0)return null;const _0x49527d=execSync(_0x4b52d1(0x128)+_0x269a02+_0x4b52d1(0x135),{'encoding':'utf-8','windowsHide':!![]})[_0x4b52d1(0x123)](),_0x546b59=_0x49527d[_0x4b52d1(0x129)]('\x0a')[_0x4b52d1(0x113)](_0x1e2ce9=>_0x1e2ce9[_0x4b52d1(0x123)]());if(_0x546b59[_0x4b52d1(0x13b)]<0x2)return null;const _0x23b614=_0x546b59[_0x546b59['length']-0x1][_0x4b52d1(0x129)](',');if(_0x23b614[_0x4b52d1(0x13b)]<0x3)return null;const _0x1592f5=_0x23b614[0x1]?.['trim']()||'',_0x1fdb01=parseInt(_0x23b614[0x2]?.[_0x4b52d1(0x123)]()||'0',0xa);if(isNaN(_0x1fdb01)||!_0x1592f5)return null;return{'pid':_0x269a02,'ppid':_0x1fdb01,'comm':_0x1592f5[_0x4b52d1(0x117)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3810d1){const _0x20ff10=a143_0x3aa20b;try{const _0x55a698=0x400000;if(!Number['isInteger'](_0x3810d1)||_0x3810d1<=0x0||_0x3810d1>_0x55a698)return null;const _0x49f873=execSync(_0x20ff10(0x12b)+_0x3810d1+'\x20-o\x20ppid=,comm=',{'encoding':_0x20ff10(0x12c),'stdio':_0x20ff10(0x127)})[_0x20ff10(0x123)](),[_0xe2450e,..._0x481b8f]=_0x49f873[_0x20ff10(0x129)](/\s+/),_0x37260a=parseInt(_0xe2450e,0xa),_0x3b3c4d=_0x481b8f[_0x20ff10(0x125)]('\x20');if(isNaN(_0x37260a))return null;return{'pid':_0x3810d1,'ppid':_0x37260a,'comm':_0x3b3c4d};}catch{return null;}}function getProcessInfo(_0x7e59c1){const _0x47d460=a143_0x3aa20b;if(process[_0x47d460(0x13d)]===_0x47d460(0x132))return getProcessInfoWindows(_0x7e59c1);return getProcessInfoPosix(_0x7e59c1);}function getBasename(_0x26d97d){const _0x1ab8a3=a143_0x3aa20b;return _0x26d97d[_0x1ab8a3(0x117)](/^-/,'')[_0x1ab8a3(0x129)]('/')[_0x1ab8a3(0x11f)]()?.['toLowerCase']()||'';}function isShell(_0x4ffb14){return SHELL_NAMES['has'](getBasename(_0x4ffb14));}function isEphemeralShellSpawner(_0x5212c1){const _0x2b65f9=a143_0x3aa20b;return EPHEMERAL_SHELL_SPAWNERS[_0x2b65f9(0x114)](getBasename(_0x5212c1));}let cachedShellPID;function findShellPID(){const _0x52a370=a143_0x3aa20b;if(process['ppid']===undefined)return process[_0x52a370(0x11d)];let _0x13ca2d=process[_0x52a370(0x115)];const _0x2962aa=0xa;let _0x147c5a=0x0;while(_0x147c5a<_0x2962aa){const _0x19af36=getProcessInfo(_0x13ca2d);if(!_0x19af36)break;if(isShell(_0x19af36[_0x52a370(0x137)])){const _0x594b02=getProcessInfo(_0x19af36['ppid']);if(_0x594b02&&isEphemeralShellSpawner(_0x594b02[_0x52a370(0x137)])){_0x13ca2d=_0x19af36[_0x52a370(0x115)],_0x147c5a++;continue;}return _0x19af36['pid'];}if(_0x19af36['ppid']===0x0||_0x19af36[_0x52a370(0x115)]===0x1){if(isShell(_0x19af36['comm']))return _0x19af36['pid'];break;}_0x13ca2d=_0x19af36[_0x52a370(0x115)],_0x147c5a++;}return process['ppid']!==undefined?process[_0x52a370(0x115)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x235506){const _0x25dd42=a143_0x3aa20b;if(!Number['isInteger'](_0x235506)||_0x235506<=0x0)return![];try{return process[_0x25dd42(0x118)](_0x235506,0x0),!![];}catch{return![];}}export function openBrowser(_0x102fd5){const _0x1de0ec=a143_0x3aa20b,_0x254e27=process[_0x1de0ec(0x13d)],_0x1aff90=_0x254e27===_0x1de0ec(0x11e)?_0x1de0ec(0x136):_0x254e27===_0x1de0ec(0x132)?'start':_0x1de0ec(0x12f);spawn(_0x1aff90,[_0x102fd5],{'detached':!![],'stdio':'ignore'})[_0x1de0ec(0x139)]();}
@@ -1 +1 @@
1
- (function(_0xaafcde,_0x1c8e9b){const _0x1d55fb=a144_0x153d,_0x519985=_0xaafcde();while(!![]){try{const _0x1b3525=parseInt(_0x1d55fb(0x1c7))/0x1+parseInt(_0x1d55fb(0x1bc))/0x2*(-parseInt(_0x1d55fb(0x1c5))/0x3)+parseInt(_0x1d55fb(0x1b4))/0x4+-parseInt(_0x1d55fb(0x1b9))/0x5*(parseInt(_0x1d55fb(0x1b2))/0x6)+-parseInt(_0x1d55fb(0x1be))/0x7+-parseInt(_0x1d55fb(0x1c1))/0x8+parseInt(_0x1d55fb(0x1b6))/0x9;if(_0x1b3525===_0x1c8e9b)break;else _0x519985['push'](_0x519985['shift']());}catch(_0x4d8b9a){_0x519985['push'](_0x519985['shift']());}}}(a144_0x3c98,0x6633a));function a144_0x3c98(){const _0x4080b7=['\x20(y/N):\x20','14733045gFziap','utf8','setRawMode','95455AVmNwe','stdin','isTTY','214JhnfmO','stderr','5255460aiKAnF','exit','stdout','5874592hgFViU','close','setEncoding','question','17337QOKQsl','toLowerCase','715066hFxUHl','data','yes','createInterface','resume','pause','96QQlBuU','write','1901840VKroEq'];a144_0x3c98=function(){return _0x4080b7;};return a144_0x3c98();}function a144_0x153d(_0x1a7af5,_0x5014fe){_0x1a7af5=_0x1a7af5-0x1b2;const _0x3c985d=a144_0x3c98();let _0x153dd0=_0x3c985d[_0x1a7af5];return _0x153dd0;}import*as a144_0x3c155a from'readline';export async function confirm(_0x4b23de){const _0x35eabd=a144_0x153d,_0x65fd7f=a144_0x3c155a[_0x35eabd(0x1ca)]({'input':process[_0x35eabd(0x1ba)],'output':process[_0x35eabd(0x1c0)]});return new Promise(_0x79a93a=>{const _0x46a452=_0x35eabd;_0x65fd7f[_0x46a452(0x1c4)](_0x4b23de+_0x46a452(0x1b5),_0x4fb8c6=>{const _0x5d36ba=_0x46a452;_0x65fd7f[_0x5d36ba(0x1c2)](),_0x79a93a(_0x4fb8c6[_0x5d36ba(0x1c6)]()==='y'||_0x4fb8c6['toLowerCase']()===_0x5d36ba(0x1c9));});});}export async function confirmKey(_0x1b8724){const _0x39282=a144_0x153d;if(!process[_0x39282(0x1ba)][_0x39282(0x1bb)])return![];return process[_0x39282(0x1bd)][_0x39282(0x1b3)](_0x1b8724+'\x20[y/N]\x20'),new Promise(_0x14ce4d=>{const _0x46256a=_0x39282,_0x942421=process['stdin'];_0x942421[_0x46256a(0x1b8)](!![]),_0x942421[_0x46256a(0x1cb)](),_0x942421[_0x46256a(0x1c3)](_0x46256a(0x1b7));const _0x27bc57=_0x112f88=>{const _0x4d5bcb=_0x46256a;_0x942421[_0x4d5bcb(0x1b8)](![]),_0x942421[_0x4d5bcb(0x1cc)](),_0x942421['removeListener'](_0x4d5bcb(0x1c8),_0x27bc57);if(_0x112f88==='\x1b'){process['stderr'][_0x4d5bcb(0x1b3)]('\x0a'),_0x14ce4d(![]);return;}_0x112f88==='\x03'&&(process[_0x4d5bcb(0x1bd)][_0x4d5bcb(0x1b3)]('\x0a'),process[_0x4d5bcb(0x1bf)](0x82));if(_0x112f88[_0x4d5bcb(0x1c6)]()==='y'){process[_0x4d5bcb(0x1bd)]['write']('y\x0a'),_0x14ce4d(!![]);return;}process[_0x4d5bcb(0x1bd)][_0x4d5bcb(0x1b3)]('\x0a'),_0x14ce4d(![]);};_0x942421['on'](_0x46256a(0x1c8),_0x27bc57);});}
1
+ (function(_0x5047bd,_0x2a2fdb){const _0x477d65=a144_0x3edc,_0x2f3a73=_0x5047bd();while(!![]){try{const _0xda932b=-parseInt(_0x477d65(0xd4))/0x1*(-parseInt(_0x477d65(0xc7))/0x2)+parseInt(_0x477d65(0xc5))/0x3*(parseInt(_0x477d65(0xcb))/0x4)+parseInt(_0x477d65(0xc8))/0x5*(parseInt(_0x477d65(0xce))/0x6)+parseInt(_0x477d65(0xc6))/0x7+parseInt(_0x477d65(0xc2))/0x8+-parseInt(_0x477d65(0xbd))/0x9*(parseInt(_0x477d65(0xbe))/0xa)+-parseInt(_0x477d65(0xc0))/0xb*(parseInt(_0x477d65(0xd6))/0xc);if(_0xda932b===_0x2a2fdb)break;else _0x2f3a73['push'](_0x2f3a73['shift']());}catch(_0x2bcd8f){_0x2f3a73['push'](_0x2f3a73['shift']());}}}(a144_0x413b,0x2f0c5));import*as a144_0x1c8141 from'readline';export async function confirm(_0x3253e8){const _0x224353=a144_0x3edc,_0xcb18eb=a144_0x1c8141[_0x224353(0xd3)]({'input':process[_0x224353(0xd2)],'output':process['stdout']});return new Promise(_0x190180=>{const _0xf30469=_0x224353;_0xcb18eb[_0xf30469(0xbf)](_0x3253e8+_0xf30469(0xc1),_0x480cf9=>{const _0x2fa3a3=_0xf30469;_0xcb18eb['close'](),_0x190180(_0x480cf9[_0x2fa3a3(0xbc)]()==='y'||_0x480cf9[_0x2fa3a3(0xbc)]()===_0x2fa3a3(0xc4));});});}function a144_0x413b(){const _0x51f3fa=['exit','data','484FgtMsx','removeListener','write','1866iUbwWH','stderr','setEncoding','setRawMode','stdin','createInterface','53eNZAiX','resume','936WaenJy','utf8','toLowerCase','345339uncYiC','80PceLbi','question','59939NUidSX','\x20(y/N):\x20','1363520UzwhvO','isTTY','yes','8292RVvvfo','329630faaIfw','4606jrSVVu','4030bQAaud'];a144_0x413b=function(){return _0x51f3fa;};return a144_0x413b();}function a144_0x3edc(_0x6bdbe,_0x1ce1e5){_0x6bdbe=_0x6bdbe-0xbb;const _0x413b32=a144_0x413b();let _0x3edc9c=_0x413b32[_0x6bdbe];return _0x3edc9c;}export async function confirmKey(_0x291d9b){const _0x3b8106=a144_0x3edc;if(!process[_0x3b8106(0xd2)][_0x3b8106(0xc3)])return![];return process[_0x3b8106(0xcf)][_0x3b8106(0xcd)](_0x291d9b+'\x20[y/N]\x20'),new Promise(_0x503e0c=>{const _0x12c12d=_0x3b8106,_0x2a6c4b=process[_0x12c12d(0xd2)];_0x2a6c4b[_0x12c12d(0xd1)](!![]),_0x2a6c4b[_0x12c12d(0xd5)](),_0x2a6c4b[_0x12c12d(0xd0)](_0x12c12d(0xbb));const _0x215ac2=_0x1b34a1=>{const _0x45b6ac=_0x12c12d;_0x2a6c4b['setRawMode'](![]),_0x2a6c4b['pause'](),_0x2a6c4b[_0x45b6ac(0xcc)](_0x45b6ac(0xca),_0x215ac2);if(_0x1b34a1==='\x1b'){process[_0x45b6ac(0xcf)][_0x45b6ac(0xcd)]('\x0a'),_0x503e0c(![]);return;}_0x1b34a1==='\x03'&&(process[_0x45b6ac(0xcf)][_0x45b6ac(0xcd)]('\x0a'),process[_0x45b6ac(0xc9)](0x82));if(_0x1b34a1['toLowerCase']()==='y'){process[_0x45b6ac(0xcf)][_0x45b6ac(0xcd)]('y\x0a'),_0x503e0c(!![]);return;}process[_0x45b6ac(0xcf)][_0x45b6ac(0xcd)]('\x0a'),_0x503e0c(![]);};_0x2a6c4b['on']('data',_0x215ac2);});}
@@ -1 +1 @@
1
- (function(_0x260187,_0x2dd8cc){const _0x2f5070=a145_0xabf2,_0x286b1d=_0x260187();while(!![]){try{const _0x470b59=parseInt(_0x2f5070(0x89))/0x1+-parseInt(_0x2f5070(0x91))/0x2*(-parseInt(_0x2f5070(0x8d))/0x3)+parseInt(_0x2f5070(0x92))/0x4+-parseInt(_0x2f5070(0x99))/0x5*(-parseInt(_0x2f5070(0x87))/0x6)+parseInt(_0x2f5070(0x9f))/0x7*(-parseInt(_0x2f5070(0x88))/0x8)+parseInt(_0x2f5070(0x9e))/0x9+-parseInt(_0x2f5070(0x96))/0xa;if(_0x470b59===_0x2dd8cc)break;else _0x286b1d['push'](_0x286b1d['shift']());}catch(_0x5cb4ad){_0x286b1d['push'](_0x286b1d['shift']());}}}(a145_0x370d,0x58f23));import a145_0x2cbaed from'ora';export function createCommandSpinner(_0x162395,_0x57b943={}){const _0x343795=a145_0xabf2,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x57b943;return a145_0x2cbaed({'text':_0x162395,'color':_0x343795(0xa2),'stream':process[_0x343795(0x93)],'isEnabled':forceEnabled||process[_0x343795(0x93)][_0x343795(0x9c)]&&!verbose});}function a145_0xabf2(_0x1f22e5,_0x11f5c3){_0x1f22e5=_0x1f22e5-0x86;const _0x370de1=a145_0x370d();let _0xabf2e0=_0x370de1[_0x1f22e5];return _0xabf2e0;}function a145_0x370d(){const _0x148acf=['...','floor','cyan','trim','708rUEGKN','4528616qMKQaK','168688WnqMUA','Processing','toFixed','clock','121860FKDOyI','intervalFactory','\x20[Job\x20ID:\x20','isSpinning','32EMckmk','2380556NTMovm','stderr','phase','stop','15710390LzOZPL','extra','jobId','15845BDJvrL','start','now','isTTY','text','6423750XsdGQz','7tAwPpK'];a145_0x370d=function(){return _0x148acf;};return a145_0x370d();}export async function withSpinner(_0x1d038c,_0x1d2bf3,_0x423d53={}){const _0x58c3f2=a145_0xabf2,_0x35a559=_0x423d53[_0x58c3f2(0x8c)]??(()=>Date[_0x58c3f2(0x9b)]()),_0x2fa366=createCommandSpinner(_0x1d038c,_0x423d53);_0x2fa366[_0x58c3f2(0x9a)]();const _0x5f5491=_0x35a559();try{const _0x7a1ff6=await _0x1d2bf3(),_0x3436b7=_0x35a559()-_0x5f5491;return _0x2fa366[_0x58c3f2(0x95)](),{'data':_0x7a1ff6,'elapsedMs':_0x3436b7};}catch(_0x4eb1dd){_0x2fa366[_0x58c3f2(0x95)]();throw _0x4eb1dd;}}export async function withProgressSpinner(_0x2f9e28,_0x3e9120,_0x2d26aa={}){const _0x24054c=a145_0xabf2,_0x438141=_0x2d26aa[_0x24054c(0x8c)]??(()=>Date[_0x24054c(0x9b)]()),_0xcf9e3c=_0x2d26aa[_0x24054c(0x8e)]??setInterval,_0x551499=createCommandSpinner(_0x2f9e28,_0x2d26aa);_0x551499[_0x24054c(0x9a)]();const _0x56c258=_0x438141(),_0x31ce34=_0x2f9e28['replace'](_0x24054c(0xa0),'')['trim']()||_0x24054c(0x8a),_0x30d4de={};let _0x592b9b=_0x2f9e28;const _0x58d102=()=>{const _0x3593cb=_0x24054c;if(!_0x551499['isSpinning'])return;const _0x24b2b7=_0x438141()-_0x56c258,_0x56c22a=formatElapsed(_0x24b2b7),_0x28f689=_0x30d4de[_0x3593cb(0x94)]?.[_0x3593cb(0x86)]()||_0x31ce34,_0x3aa133=_0x30d4de[_0x3593cb(0x98)]?_0x3593cb(0x8f)+_0x30d4de[_0x3593cb(0x98)]+']':'',_0x401d5d=_0x30d4de[_0x3593cb(0x97)]?'\x20'+_0x30d4de[_0x3593cb(0x97)]:'',_0x3f537a=_0x28f689+'\x20'+_0x56c22a+_0x401d5d+_0x3aa133;_0x3f537a!==_0x592b9b&&_0x3f537a[_0x3593cb(0x86)]()&&(_0x551499[_0x3593cb(0x9d)]=_0x3f537a,_0x592b9b=_0x3f537a);},_0x234ab4=_0xcf9e3c(()=>{_0x58d102();},0x3e8),_0x80d772={'setPhase':_0x379411=>{const _0x4deaa4=_0x24054c;_0x30d4de[_0x4deaa4(0x94)]=_0x379411;const _0x2763c5=_0x379411?.[_0x4deaa4(0x86)]()||_0x31ce34,_0x224458=_0x438141()-_0x56c258,_0x2dc22d=formatElapsed(_0x224458),_0x4c0005=_0x30d4de['jobId']?'\x20[Job\x20ID:\x20'+_0x30d4de[_0x4deaa4(0x98)]+']':'',_0x4d51c7=_0x30d4de[_0x4deaa4(0x97)]?'\x20'+_0x30d4de[_0x4deaa4(0x97)]:'',_0x4f21d4=_0x2763c5+'\x20'+_0x2dc22d+_0x4d51c7+_0x4c0005;_0x551499[_0x4deaa4(0x90)]&&_0x4f21d4['trim']()&&(_0x551499[_0x4deaa4(0x9d)]=_0x4f21d4,_0x592b9b=_0x4f21d4);},'setJobId':_0x32ba14=>{const _0x53d5fd=_0x24054c;_0x30d4de[_0x53d5fd(0x98)]=_0x32ba14,_0x58d102();},'setExtra':_0x22e22f=>{_0x30d4de['extra']=_0x22e22f,_0x58d102();}};_0x58d102();try{const _0x1fe775=await _0x3e9120(_0x80d772),_0x597001=_0x438141()-_0x56c258;return{'data':_0x1fe775,'elapsedMs':_0x597001};}finally{clearInterval(_0x234ab4),_0x551499[_0x24054c(0x95)]();}}export function formatElapsed(_0x2a8703){const _0x268ce4=a145_0xabf2,_0x1246a9=Math[_0x268ce4(0xa1)](_0x2a8703/0x3e8);if(_0x1246a9<0x3c)return(_0x2a8703/0x3e8)[_0x268ce4(0x8b)](0x1)+'s';const _0x308674=Math[_0x268ce4(0xa1)](_0x1246a9/0x3c),_0x43d971=_0x1246a9%0x3c;if(_0x308674<0x3c)return _0x308674+'m\x20'+_0x43d971+'s';const _0x49f9e7=Math[_0x268ce4(0xa1)](_0x308674/0x3c),_0x5c3f86=_0x308674%0x3c;return _0x49f9e7+'h\x20'+_0x5c3f86+'m';}
1
+ function a145_0x23f7(_0x16dbc1,_0x299b45){_0x16dbc1=_0x16dbc1-0xcb;const _0x8fd1dc=a145_0x8fd1();let _0x23f7eb=_0x8fd1dc[_0x16dbc1];return _0x23f7eb;}function a145_0x8fd1(){const _0x2d675a=['intervalFactory','732624OQBgOg','31914kzQnkI','start','8npuixF','205AFgoJk','now','jobId','\x20[Job\x20ID:\x20','floor','14373gohOWh','extra','stderr','cyan','isSpinning','78ODEATj','3332147RjqVtK','8WgPhXZ','toFixed','clock','400119GXCIdX','isTTY','3122856UxZXje','phase','11561RrIQcQ','...','trim','replace','stop','text','3670hNxlqo'];a145_0x8fd1=function(){return _0x2d675a;};return a145_0x8fd1();}(function(_0x4650eb,_0x3d8213){const _0x4d0f47=a145_0x23f7,_0x3501ce=_0x4650eb();while(!![]){try{const _0x3f963a=-parseInt(_0x4d0f47(0xd9))/0x1*(-parseInt(_0x4d0f47(0xd0))/0x2)+-parseInt(_0x4d0f47(0xd5))/0x3*(-parseInt(_0x4d0f47(0xd2))/0x4)+parseInt(_0x4d0f47(0xe5))/0x5*(-parseInt(_0x4d0f47(0xe2))/0x6)+-parseInt(_0x4d0f47(0xd1))/0x7*(parseInt(_0x4d0f47(0xe4))/0x8)+-parseInt(_0x4d0f47(0xcb))/0x9*(-parseInt(_0x4d0f47(0xdf))/0xa)+-parseInt(_0x4d0f47(0xd7))/0xb+parseInt(_0x4d0f47(0xe1))/0xc;if(_0x3f963a===_0x3d8213)break;else _0x3501ce['push'](_0x3501ce['shift']());}catch(_0x1b39b0){_0x3501ce['push'](_0x3501ce['shift']());}}}(a145_0x8fd1,0x5e6dc));import a145_0x20433d from'ora';export function createCommandSpinner(_0x35cc8c,_0x17a0f1={}){const _0x2a9614=a145_0x23f7,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x17a0f1;return a145_0x20433d({'text':_0x35cc8c,'color':_0x2a9614(0xce),'stream':process[_0x2a9614(0xcd)],'isEnabled':forceEnabled||process[_0x2a9614(0xcd)][_0x2a9614(0xd6)]&&!verbose});}export async function withSpinner(_0x17df1e,_0x1dd9ac,_0x234f38={}){const _0x1e34f0=a145_0x23f7,_0x24ad5d=_0x234f38[_0x1e34f0(0xd4)]??(()=>Date[_0x1e34f0(0xe6)]()),_0x10809b=createCommandSpinner(_0x17df1e,_0x234f38);_0x10809b[_0x1e34f0(0xe3)]();const _0x2a7aff=_0x24ad5d();try{const _0x34fa6c=await _0x1dd9ac(),_0x3d718e=_0x24ad5d()-_0x2a7aff;return _0x10809b[_0x1e34f0(0xdd)](),{'data':_0x34fa6c,'elapsedMs':_0x3d718e};}catch(_0x5bb9f0){_0x10809b['stop']();throw _0x5bb9f0;}}export async function withProgressSpinner(_0x3fcfd9,_0x212817,_0x49020c={}){const _0x3bba99=a145_0x23f7,_0x347d99=_0x49020c[_0x3bba99(0xd4)]??(()=>Date['now']()),_0x2d7a5a=_0x49020c[_0x3bba99(0xe0)]??setInterval,_0x2f2799=createCommandSpinner(_0x3fcfd9,_0x49020c);_0x2f2799[_0x3bba99(0xe3)]();const _0x358328=_0x347d99(),_0x5b3f44=_0x3fcfd9[_0x3bba99(0xdc)](_0x3bba99(0xda),'')[_0x3bba99(0xdb)]()||'Processing',_0x27f037={};let _0x529aad=_0x3fcfd9;const _0x279be2=()=>{const _0x258f58=_0x3bba99;if(!_0x2f2799[_0x258f58(0xcf)])return;const _0x19a1e4=_0x347d99()-_0x358328,_0x16e501=formatElapsed(_0x19a1e4),_0x115527=_0x27f037[_0x258f58(0xd8)]?.[_0x258f58(0xdb)]()||_0x5b3f44,_0x391836=_0x27f037[_0x258f58(0xe7)]?_0x258f58(0xe8)+_0x27f037[_0x258f58(0xe7)]+']':'',_0x3566f6=_0x27f037[_0x258f58(0xcc)]?'\x20'+_0x27f037[_0x258f58(0xcc)]:'',_0x383844=_0x115527+'\x20'+_0x16e501+_0x3566f6+_0x391836;_0x383844!==_0x529aad&&_0x383844[_0x258f58(0xdb)]()&&(_0x2f2799[_0x258f58(0xde)]=_0x383844,_0x529aad=_0x383844);},_0x54620e=_0x2d7a5a(()=>{_0x279be2();},0x3e8),_0x13ec4e={'setPhase':_0x3e3683=>{const _0x1f773d=_0x3bba99;_0x27f037['phase']=_0x3e3683;const _0x3b566a=_0x3e3683?.['trim']()||_0x5b3f44,_0x3c8310=_0x347d99()-_0x358328,_0x276316=formatElapsed(_0x3c8310),_0x13d9f6=_0x27f037[_0x1f773d(0xe7)]?'\x20[Job\x20ID:\x20'+_0x27f037['jobId']+']':'',_0x1a3c14=_0x27f037[_0x1f773d(0xcc)]?'\x20'+_0x27f037[_0x1f773d(0xcc)]:'',_0x583869=_0x3b566a+'\x20'+_0x276316+_0x1a3c14+_0x13d9f6;_0x2f2799['isSpinning']&&_0x583869[_0x1f773d(0xdb)]()&&(_0x2f2799[_0x1f773d(0xde)]=_0x583869,_0x529aad=_0x583869);},'setJobId':_0x309567=>{const _0x4a0abe=_0x3bba99;_0x27f037[_0x4a0abe(0xe7)]=_0x309567,_0x279be2();},'setExtra':_0x1f5cae=>{const _0x4b89ae=_0x3bba99;_0x27f037[_0x4b89ae(0xcc)]=_0x1f5cae,_0x279be2();}};_0x279be2();try{const _0x3649c9=await _0x212817(_0x13ec4e),_0x983b7b=_0x347d99()-_0x358328;return{'data':_0x3649c9,'elapsedMs':_0x983b7b};}finally{clearInterval(_0x54620e),_0x2f2799[_0x3bba99(0xdd)]();}}export function formatElapsed(_0x1f97d7){const _0x36584a=a145_0x23f7,_0x4cafee=Math[_0x36584a(0xe9)](_0x1f97d7/0x3e8);if(_0x4cafee<0x3c)return(_0x1f97d7/0x3e8)[_0x36584a(0xd3)](0x1)+'s';const _0xc03ee6=Math[_0x36584a(0xe9)](_0x4cafee/0x3c),_0x5b8f4a=_0x4cafee%0x3c;if(_0xc03ee6<0x3c)return _0xc03ee6+'m\x20'+_0x5b8f4a+'s';const _0x36fd70=Math[_0x36584a(0xe9)](_0xc03ee6/0x3c),_0x4963ff=_0xc03ee6%0x3c;return _0x36fd70+'h\x20'+_0x4963ff+'m';}
@@ -1 +1 @@
1
- (function(_0x17a04a,_0x2f56f0){const _0x49ad9d=a146_0x450e,_0x59ae8d=_0x17a04a();while(!![]){try{const _0x18e1d1=-parseInt(_0x49ad9d(0x1e3))/0x1*(parseInt(_0x49ad9d(0x1e8))/0x2)+-parseInt(_0x49ad9d(0x1e2))/0x3+parseInt(_0x49ad9d(0x1f1))/0x4*(-parseInt(_0x49ad9d(0x1e6))/0x5)+parseInt(_0x49ad9d(0x1f3))/0x6+parseInt(_0x49ad9d(0x1ec))/0x7+parseInt(_0x49ad9d(0x1ef))/0x8+-parseInt(_0x49ad9d(0x1f0))/0x9*(-parseInt(_0x49ad9d(0x1f2))/0xa);if(_0x18e1d1===_0x2f56f0)break;else _0x59ae8d['push'](_0x59ae8d['shift']());}catch(_0x2fae41){_0x59ae8d['push'](_0x59ae8d['shift']());}}}(a146_0x43bd,0x761ff));function a146_0x450e(_0x4f4bce,_0x26d9c3){_0x4f4bce=_0x4f4bce-0x1df;const _0x43bd22=a146_0x43bd();let _0x450e6c=_0x43bd22[_0x4f4bce];return _0x450e6c;}export async function*parseSSEStream(_0xcc9dc2,_0x1e4d12){const _0x32a307=a146_0x450e;if(!_0xcc9dc2[_0x32a307(0x1e5)])throw new Error(_0x32a307(0x1f5));const _0x197518=_0xcc9dc2[_0x32a307(0x1e5)]['getReader'](),_0x5eb057=new TextDecoder();let _0x49d1b9='',_0x15438e={};try{while(!![]){const {done:_0x314e3b,value:_0x1ca6b4}=await _0x197518[_0x32a307(0x1f4)]();if(_0x314e3b){if(_0x15438e['data']){_0x1e4d12?.[_0x32a307(0x1df)](_0x32a307(0x1e7)+_0x15438e[_0x32a307(0x1e9)]);const _0x4cd6e2=parseSSEData(_0x15438e[_0x32a307(0x1e9)]);yield _0x4cd6e2;}break;}_0x49d1b9+=_0x5eb057['decode'](_0x1ca6b4,{'stream':!![]});const _0x5d2aae=_0x49d1b9[_0x32a307(0x1e4)]('\x0a');_0x49d1b9=_0x5d2aae[_0x32a307(0x1e1)]()||'';for(const _0x1a218e of _0x5d2aae){if(_0x1a218e[_0x32a307(0x1f8)]()===''){if(_0x15438e['data']){_0x1e4d12?.[_0x32a307(0x1df)](_0x32a307(0x1e7)+_0x15438e[_0x32a307(0x1e9)]);const _0x20dcee=parseSSEData(_0x15438e[_0x32a307(0x1e9)]);yield _0x20dcee,_0x15438e={};}continue;}if(_0x1a218e['startsWith'](':'))continue;const _0x34c908=_0x1a218e[_0x32a307(0x1ee)](':');if(_0x34c908===-0x1)continue;const _0x4ca8ea=_0x1a218e['slice'](0x0,_0x34c908);let _0x5b56bf=_0x1a218e['slice'](_0x34c908+0x1);_0x5b56bf[_0x32a307(0x1ea)]('\x20')&&(_0x5b56bf=_0x5b56bf[_0x32a307(0x1ed)](0x1));switch(_0x4ca8ea){case _0x32a307(0x1e0):_0x15438e[_0x32a307(0x1e0)]=_0x5b56bf;break;case _0x32a307(0x1e9):_0x15438e[_0x32a307(0x1e9)]=_0x15438e['data']?_0x15438e[_0x32a307(0x1e9)]+'\x0a'+_0x5b56bf:_0x5b56bf;break;case'id':_0x15438e['id']=_0x5b56bf;break;}}}}finally{_0x197518[_0x32a307(0x1f7)]();}}function parseSSEData(_0x3c68b4){const _0x484a3d=a146_0x450e;try{return JSON[_0x484a3d(0x1eb)](_0x3c68b4);}catch(_0x2b08b7){throw new Error(_0x484a3d(0x1f6)+_0x3c68b4,{'cause':_0x2b08b7});}}function a146_0x43bd(){const _0x5185d0=['pop','1152864iAfTrx','242971SmGeGi','split','body','480IpNxIg','[LLM\x20API\x20SSE]\x20','4gNQnNy','data','startsWith','parse','3901030piJMnk','slice','indexOf','1374056JraTlO','9wMXRYA','39188KIAcTv','13391490xKjaha','1358310bRrrnL','read','Response\x20body\x20is\x20null','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','releaseLock','trim','debug','event'];a146_0x43bd=function(){return _0x5185d0;};return a146_0x43bd();}
1
+ (function(_0x4a2589,_0x276294){const _0x4b1a99=a146_0xede0,_0x495689=_0x4a2589();while(!![]){try{const _0x1de8d6=-parseInt(_0x4b1a99(0x10e))/0x1*(parseInt(_0x4b1a99(0x114))/0x2)+-parseInt(_0x4b1a99(0x108))/0x3+-parseInt(_0x4b1a99(0x119))/0x4+-parseInt(_0x4b1a99(0x110))/0x5+parseInt(_0x4b1a99(0x109))/0x6*(-parseInt(_0x4b1a99(0x11b))/0x7)+parseInt(_0x4b1a99(0x118))/0x8+parseInt(_0x4b1a99(0x112))/0x9;if(_0x1de8d6===_0x276294)break;else _0x495689['push'](_0x495689['shift']());}catch(_0x1eddd9){_0x495689['push'](_0x495689['shift']());}}}(a146_0x1abf,0xb4128));export async function*parseSSEStream(_0xef684b,_0x3271bf){const _0x3da18d=a146_0xede0;if(!_0xef684b[_0x3da18d(0x111)])throw new Error(_0x3da18d(0x11c));const _0x3d4de7=_0xef684b[_0x3da18d(0x111)][_0x3da18d(0x115)](),_0x5d12c6=new TextDecoder();let _0x1c05ad='',_0x30cd77={};try{while(!![]){const {done:_0x48aae4,value:_0x2591bf}=await _0x3d4de7[_0x3da18d(0x10d)]();if(_0x48aae4){if(_0x30cd77[_0x3da18d(0x117)]){_0x3271bf?.[_0x3da18d(0x10c)](_0x3da18d(0x11e)+_0x30cd77[_0x3da18d(0x117)]);const _0x1b4fb0=parseSSEData(_0x30cd77[_0x3da18d(0x117)]);yield _0x1b4fb0;}break;}_0x1c05ad+=_0x5d12c6[_0x3da18d(0x11a)](_0x2591bf,{'stream':!![]});const _0x9dc7e7=_0x1c05ad['split']('\x0a');_0x1c05ad=_0x9dc7e7['pop']()||'';for(const _0x4858e5 of _0x9dc7e7){if(_0x4858e5[_0x3da18d(0x10f)]()===''){if(_0x30cd77[_0x3da18d(0x117)]){_0x3271bf?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x30cd77[_0x3da18d(0x117)]);const _0x5df7db=parseSSEData(_0x30cd77['data']);yield _0x5df7db,_0x30cd77={};}continue;}if(_0x4858e5[_0x3da18d(0x107)](':'))continue;const _0x350eaa=_0x4858e5[_0x3da18d(0x10b)](':');if(_0x350eaa===-0x1)continue;const _0x2b6e1b=_0x4858e5[_0x3da18d(0x11d)](0x0,_0x350eaa);let _0x168b5a=_0x4858e5['slice'](_0x350eaa+0x1);_0x168b5a['startsWith']('\x20')&&(_0x168b5a=_0x168b5a['slice'](0x1));switch(_0x2b6e1b){case _0x3da18d(0x113):_0x30cd77[_0x3da18d(0x113)]=_0x168b5a;break;case _0x3da18d(0x117):_0x30cd77['data']=_0x30cd77['data']?_0x30cd77[_0x3da18d(0x117)]+'\x0a'+_0x168b5a:_0x168b5a;break;case'id':_0x30cd77['id']=_0x168b5a;break;}}}}finally{_0x3d4de7['releaseLock']();}}function parseSSEData(_0x206207){const _0x20a2f3=a146_0xede0;try{return JSON[_0x20a2f3(0x10a)](_0x206207);}catch(_0x2eb4a9){throw new Error(_0x20a2f3(0x116)+_0x206207,{'cause':_0x2eb4a9});}}function a146_0xede0(_0x590c15,_0x595e20){_0x590c15=_0x590c15-0x107;const _0x1abf3e=a146_0x1abf();let _0xede0e9=_0x1abf3e[_0x590c15];return _0xede0e9;}function a146_0x1abf(){const _0x24a47d=['Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','data','10910232PWYhwl','2492792VzibPh','decode','14QGMGcP','Response\x20body\x20is\x20null','slice','[LLM\x20API\x20SSE]\x20','startsWith','1417410lBPLya','3117594FxwWDb','parse','indexOf','debug','read','7874TJRvxL','trim','1662680SCgCct','body','25358175HjiQJu','event','248yKkPwX','getReader'];a146_0x1abf=function(){return _0x24a47d;};return a146_0x1abf();}
@@ -1 +1 @@
1
- (function(_0x44e73c,_0x14a263){const _0x57bce7=a147_0xed68,_0x254c67=_0x44e73c();while(!![]){try{const _0x457b08=-parseInt(_0x57bce7(0x19b))/0x1*(parseInt(_0x57bce7(0x192))/0x2)+-parseInt(_0x57bce7(0x196))/0x3+parseInt(_0x57bce7(0x18f))/0x4+-parseInt(_0x57bce7(0x1a4))/0x5*(parseInt(_0x57bce7(0x1a2))/0x6)+-parseInt(_0x57bce7(0x190))/0x7+parseInt(_0x57bce7(0x19a))/0x8+parseInt(_0x57bce7(0x18e))/0x9*(parseInt(_0x57bce7(0x1a5))/0xa);if(_0x457b08===_0x14a263)break;else _0x254c67['push'](_0x254c67['shift']());}catch(_0xf71c08){_0x254c67['push'](_0x254c67['shift']());}}}(a147_0x5ba1,0x35ae2));import a147_0x135729 from'string-width';export function stringWidth(_0x336593){return a147_0x135729(_0x336593);}export function padEnd(_0x52c4c0,_0x131d53){const _0x3fa709=a147_0xed68,_0x224986=stringWidth(_0x52c4c0);if(_0x224986>=_0x131d53)return _0x52c4c0;return _0x52c4c0+'\x20'[_0x3fa709(0x191)](_0x131d53-_0x224986);}export function padStart(_0x16454d,_0xd6fd3f){const _0x40de23=a147_0xed68,_0x2a7cde=stringWidth(_0x16454d);if(_0x2a7cde>=_0xd6fd3f)return _0x16454d;return'\x20'[_0x40de23(0x191)](_0xd6fd3f-_0x2a7cde)+_0x16454d;}export function centerAlign(_0x397bea,_0x1d6f52){const _0x4e28db=a147_0xed68,_0x225d0b=stringWidth(_0x397bea);if(_0x225d0b>_0x1d6f52){if(_0x1d6f52<=0x1)return'…'[_0x4e28db(0x197)](0x0,_0x1d6f52);let _0x23ed31=_0x397bea;while(stringWidth(_0x23ed31+'…')>_0x1d6f52){_0x23ed31=_0x23ed31[_0x4e28db(0x19f)](0x0,-0x1);}return _0x23ed31+'…';}if(_0x225d0b===_0x1d6f52)return _0x397bea;const _0x35a111=_0x1d6f52-_0x225d0b,_0x46eb83=Math[_0x4e28db(0x1a0)](_0x35a111/0x2),_0x2a14a4=_0x35a111-_0x46eb83;return'\x20'[_0x4e28db(0x191)](_0x46eb83)+_0x397bea+'\x20'['repeat'](_0x2a14a4);}export function escapeStringLiteral(_0x1f37c8){const _0x110c1d=a147_0xed68;if(!_0x1f37c8||_0x1f37c8['trim']()[_0x110c1d(0x199)]===0x0)throw new Error(_0x110c1d(0x194));const _0x3a18a5=_0x1f37c8['replace'](/'/g,'\x27\x27');return'\x27'+_0x3a18a5+'\x27';}export function globToLike(_0x1d91f4){const _0x1559d7=a147_0xed68;let _0x474e80=_0x1d91f4[_0x1559d7(0x19e)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x474e80=_0x474e80[_0x1559d7(0x19e)](/\*/g,'%')[_0x1559d7(0x19e)](/\?/g,'_'),_0x474e80;}export function buildLikePattern(_0x51be33){const _0x167048=a147_0xed68;if(!_0x51be33||_0x51be33[_0x167048(0x193)]()[_0x167048(0x199)]===0x0)throw new Error(_0x167048(0x19d));const _0x3ca012=globToLike(_0x51be33),_0x319795=_0x3ca012[_0x167048(0x19e)](/'/g,'\x27\x27');return'\x27'+_0x319795+'\x27';}export function matchGlobPattern(_0x2f4a7a,_0x2e509d){const _0x45656d=a147_0xed68,_0x488e48=_0x2e509d['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x45656d(0x19e)](/\*/g,'.*')[_0x45656d(0x19e)](/\?/g,'.'),_0x14b031=new RegExp('^'+_0x488e48+'$');return _0x14b031[_0x45656d(0x18d)](_0x2f4a7a);}export function getSanitizedUsername(){const _0x2c814b=a147_0xed68,_0x988fe1=process[_0x2c814b(0x19c)]['USER']||process['env']['USERNAME']||'unknown';return _0x988fe1['replace'](/[^a-zA-Z0-9]/g,'')[_0x2c814b(0x1a3)]();}function a147_0xed68(_0x1e7807,_0xb3933f){_0x1e7807=_0x1e7807-0x18d;const _0x5ba180=a147_0x5ba1();let _0xed6834=_0x5ba180[_0x1e7807];return _0xed6834;}export function generateRandomHex(){const _0x316660=a147_0xed68,_0x223cd7=Math['floor'](Math[_0x316660(0x198)]()*0xfffff);return _0x223cd7[_0x316660(0x1a1)](0x10)[_0x316660(0x195)](0x5,'0');}export function sanitizeFileName(_0x4074f2){const _0x390b1f=a147_0xed68;return _0x4074f2['toLowerCase']()[_0x390b1f(0x19e)](/[/\\:*?"<>|]/g,'-')[_0x390b1f(0x19e)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');}function a147_0x5ba1(){const _0x4889c6=['Cannot\x20escape\x20empty\x20string\x20literal','padStart','854763LikMFq','substring','random','length','2652800BlXUKm','10417wYxwUw','env','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','replace','slice','floor','toString','2433282dffPFX','toLowerCase','5BmSPjR','370aFZmjS','test','185985TUQoXA','853916tvEDHC','1264095FFGXtM','repeat','42CJAMBE','trim'];a147_0x5ba1=function(){return _0x4889c6;};return a147_0x5ba1();}
1
+ (function(_0x43b74a,_0xd95864){const _0x572791=a147_0x3141,_0x2d61eb=_0x43b74a();while(!![]){try{const _0x6e54ae=parseInt(_0x572791(0x166))/0x1*(parseInt(_0x572791(0x160))/0x2)+parseInt(_0x572791(0x162))/0x3+parseInt(_0x572791(0x16a))/0x4+parseInt(_0x572791(0x169))/0x5*(parseInt(_0x572791(0x150))/0x6)+parseInt(_0x572791(0x168))/0x7+-parseInt(_0x572791(0x16b))/0x8*(-parseInt(_0x572791(0x167))/0x9)+-parseInt(_0x572791(0x15d))/0xa*(parseInt(_0x572791(0x158))/0xb);if(_0x6e54ae===_0xd95864)break;else _0x2d61eb['push'](_0x2d61eb['shift']());}catch(_0x7493c8){_0x2d61eb['push'](_0x2d61eb['shift']());}}}(a147_0x3689,0xde610));import a147_0x5e568c from'string-width';export function stringWidth(_0x230640){return a147_0x5e568c(_0x230640);}export function padEnd(_0x2bc385,_0x12585e){const _0x195b82=stringWidth(_0x2bc385);if(_0x195b82>=_0x12585e)return _0x2bc385;return _0x2bc385+'\x20'['repeat'](_0x12585e-_0x195b82);}export function padStart(_0x149627,_0x5c12d0){const _0x3aebd0=a147_0x3141,_0x1f3a4a=stringWidth(_0x149627);if(_0x1f3a4a>=_0x5c12d0)return _0x149627;return'\x20'[_0x3aebd0(0x165)](_0x5c12d0-_0x1f3a4a)+_0x149627;}function a147_0x3141(_0x562e54,_0x13e101){_0x562e54=_0x562e54-0x150;const _0x36895c=a147_0x3689();let _0x3141e3=_0x36895c[_0x562e54];return _0x3141e3;}export function centerAlign(_0x1b0540,_0x158e14){const _0x4ee111=a147_0x3141,_0x5f20f2=stringWidth(_0x1b0540);if(_0x5f20f2>_0x158e14){if(_0x158e14<=0x1)return'…'[_0x4ee111(0x154)](0x0,_0x158e14);let _0x5566f5=_0x1b0540;while(stringWidth(_0x5566f5+'…')>_0x158e14){_0x5566f5=_0x5566f5[_0x4ee111(0x15c)](0x0,-0x1);}return _0x5566f5+'…';}if(_0x5f20f2===_0x158e14)return _0x1b0540;const _0x35be04=_0x158e14-_0x5f20f2,_0x2baea4=Math[_0x4ee111(0x15e)](_0x35be04/0x2),_0x4c1a6e=_0x35be04-_0x2baea4;return'\x20'['repeat'](_0x2baea4)+_0x1b0540+'\x20'[_0x4ee111(0x165)](_0x4c1a6e);}export function escapeStringLiteral(_0x429e2f){const _0x3741fc=a147_0x3141;if(!_0x429e2f||_0x429e2f[_0x3741fc(0x156)]()['length']===0x0)throw new Error(_0x3741fc(0x15a));const _0x49a130=_0x429e2f[_0x3741fc(0x15f)](/'/g,'\x27\x27');return'\x27'+_0x49a130+'\x27';}export function globToLike(_0x52fb48){const _0x44f999=a147_0x3141;let _0x7389b1=_0x52fb48[_0x44f999(0x15f)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x44f999(0x15f)](/_/g,'\x5c_');return _0x7389b1=_0x7389b1[_0x44f999(0x15f)](/\*/g,'%')[_0x44f999(0x15f)](/\?/g,'_'),_0x7389b1;}export function buildLikePattern(_0x40a54f){const _0x448e66=a147_0x3141;if(!_0x40a54f||_0x40a54f[_0x448e66(0x156)]()[_0x448e66(0x163)]===0x0)throw new Error(_0x448e66(0x152));const _0x3c7c67=globToLike(_0x40a54f),_0x1f15c3=_0x3c7c67[_0x448e66(0x15f)](/'/g,'\x27\x27');return'\x27'+_0x1f15c3+'\x27';}function a147_0x3689(){const _0x964f1d=['3xvVCnp','18ZNJiSB','10146619dTlhym','420THxoah','6382660WJqoud','399440pVcjQr','70188ygHjKt','env','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','substring','USER','trim','toLowerCase','17545880tjJoDA','unknown','Cannot\x20escape\x20empty\x20string\x20literal','toString','slice','40jmJeYu','floor','replace','953938lQPGhS','padStart','5197809eaIFQR','length','USERNAME','repeat'];a147_0x3689=function(){return _0x964f1d;};return a147_0x3689();}export function matchGlobPattern(_0x3a1819,_0x23c35e){const _0x203244=a147_0x3141,_0x42e991=_0x23c35e['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x203244(0x15f)](/\?/g,'.'),_0x245cdf=new RegExp('^'+_0x42e991+'$');return _0x245cdf['test'](_0x3a1819);}export function getSanitizedUsername(){const _0x2f0af9=a147_0x3141,_0xcf5240=process[_0x2f0af9(0x151)][_0x2f0af9(0x155)]||process[_0x2f0af9(0x151)][_0x2f0af9(0x164)]||_0x2f0af9(0x159);return _0xcf5240[_0x2f0af9(0x15f)](/[^a-zA-Z0-9]/g,'')[_0x2f0af9(0x157)]();}export function generateRandomHex(){const _0x5a299b=a147_0x3141,_0x2c0c05=Math[_0x5a299b(0x15e)](Math[_0x5a299b(0x153)]()*0xfffff);return _0x2c0c05[_0x5a299b(0x15b)](0x10)[_0x5a299b(0x161)](0x5,'0');}export function sanitizeFileName(_0x2ad9db){const _0x4fe357=a147_0x3141;return _0x2ad9db[_0x4fe357(0x157)]()[_0x4fe357(0x15f)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x4fe357(0x15f)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x29d4bb,_0xdbcbae){const _0x2f2c33=a148_0x3a17,_0x359735=_0x29d4bb();while(!![]){try{const _0x43916f=parseInt(_0x2f2c33(0x122))/0x1*(-parseInt(_0x2f2c33(0x125))/0x2)+-parseInt(_0x2f2c33(0x134))/0x3+-parseInt(_0x2f2c33(0x130))/0x4+-parseInt(_0x2f2c33(0x137))/0x5*(-parseInt(_0x2f2c33(0x12e))/0x6)+parseInt(_0x2f2c33(0x12d))/0x7*(parseInt(_0x2f2c33(0x131))/0x8)+-parseInt(_0x2f2c33(0x123))/0x9*(-parseInt(_0x2f2c33(0x120))/0xa)+-parseInt(_0x2f2c33(0x124))/0xb*(-parseInt(_0x2f2c33(0x12a))/0xc);if(_0x43916f===_0xdbcbae)break;else _0x359735['push'](_0x359735['shift']());}catch(_0x2b9074){_0x359735['push'](_0x359735['shift']());}}}(a148_0x480d,0xe5863));function hasWildcard(_0x5e6c77){const _0x50f76d=a148_0x3a17;return _0x5e6c77['includes']('*')||_0x5e6c77[_0x50f76d(0x121)]('?');}export function parseTableReference(_0x2b6c7c){const _0x32a222=a148_0x3a17;if(!_0x2b6c7c||_0x2b6c7c['trim']()['length']===0x0)throw new Error(_0x32a222(0x128));const _0x4d5719=_0x2b6c7c[_0x32a222(0x11e)](),_0x263e18={'original':_0x4d5719},_0x12d453=_0x4d5719[_0x32a222(0x12b)]('.');if(_0x12d453['length']===0x1){const _0x5d5d56=_0x12d453[0x0];if(!_0x5d5d56)throw new Error(_0x32a222(0x12f));_0x263e18[_0x32a222(0x133)]=_0x5d5d56;}else{if(_0x12d453[_0x32a222(0x126)]===0x2){const [_0x235124,_0x18c5d9]=_0x12d453;if(!_0x235124)throw new Error(_0x32a222(0x132));if(!_0x18c5d9)throw new Error(_0x32a222(0x11d));_0x263e18['database']=_0x235124,_0x263e18[_0x32a222(0x133)]=_0x18c5d9;}else{if(_0x12d453[_0x32a222(0x126)]===0x3){const [_0xfff4db,_0xf4727,_0x2a84e7]=_0x12d453;if(!_0xfff4db||!_0xf4727||!_0x2a84e7)throw new Error(_0x32a222(0x129));_0x263e18[_0x32a222(0x11c)]=_0xfff4db,_0x263e18['database']=_0xf4727,_0x263e18[_0x32a222(0x133)]=_0x2a84e7;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x263e18;}export function formatTableReference(_0xe6f9aa){const _0x313e31=a148_0x3a17,_0x5db308=[];return _0xe6f9aa[_0x313e31(0x11c)]&&_0x5db308['push'](_0xe6f9aa[_0x313e31(0x11c)]),_0xe6f9aa['database']&&_0x5db308[_0x313e31(0x127)](_0xe6f9aa[_0x313e31(0x12c)]),_0xe6f9aa[_0x313e31(0x133)]&&_0x5db308[_0x313e31(0x127)](_0xe6f9aa[_0x313e31(0x133)]),_0x5db308['join']('.');}function a148_0x480d(){const _0xe2c550=['4560060zDOeAl','split','database','22484bRVOjy','644298cpiuNY','Pattern\x20cannot\x20be\x20just\x20a\x20dot','3293820MqGxfn','880sxMePT','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','table','174462ssLMiJ','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','40Vvyrdk','catalog','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','1148100zvWmGA','includes','2fDZFFt','63aVmuEM','44WNkBdd','1714334iGNuyS','length','push','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a148_0x480d=function(){return _0xe2c550;};return a148_0x480d();}export function validateTableListReference(_0x48fbc2){return undefined;}function a148_0x3a17(_0x47f057,_0x1cf2a0){_0x47f057=_0x47f057-0x11c;const _0x480d9f=a148_0x480d();let _0x3a1794=_0x480d9f[_0x47f057];return _0x3a1794;}export function validateTableDescribeReference(_0x10c7e8){const _0x723a71=a148_0x3a17;if(!_0x10c7e8[_0x723a71(0x133)])return _0x723a71(0x136);if(_0x10c7e8[_0x723a71(0x12c)]&&hasWildcard(_0x10c7e8[_0x723a71(0x12c)]))return _0x723a71(0x11f);if(hasWildcard(_0x10c7e8['table']))return _0x723a71(0x135);return undefined;}
1
+ (function(_0x2e7ff5,_0x31e37c){const _0x320ab5=a148_0x3ef5,_0x38e9f9=_0x2e7ff5();while(!![]){try{const _0x2d5796=-parseInt(_0x320ab5(0x135))/0x1*(parseInt(_0x320ab5(0x137))/0x2)+-parseInt(_0x320ab5(0x12a))/0x3+parseInt(_0x320ab5(0x140))/0x4*(parseInt(_0x320ab5(0x12e))/0x5)+parseInt(_0x320ab5(0x13e))/0x6+-parseInt(_0x320ab5(0x13f))/0x7+-parseInt(_0x320ab5(0x13a))/0x8+-parseInt(_0x320ab5(0x136))/0x9*(-parseInt(_0x320ab5(0x131))/0xa);if(_0x2d5796===_0x31e37c)break;else _0x38e9f9['push'](_0x38e9f9['shift']());}catch(_0x27bf07){_0x38e9f9['push'](_0x38e9f9['shift']());}}}(a148_0x148e,0x1fcbf));function hasWildcard(_0xd4741f){const _0x4b9474=a148_0x3ef5;return _0xd4741f[_0x4b9474(0x130)]('*')||_0xd4741f[_0x4b9474(0x130)]('?');}export function parseTableReference(_0x77607b){const _0x1d7f1a=a148_0x3ef5;if(!_0x77607b||_0x77607b['trim']()['length']===0x0)throw new Error(_0x1d7f1a(0x13b));const _0x12e6cb=_0x77607b['trim'](),_0x143149={'original':_0x12e6cb},_0x1a817f=_0x12e6cb[_0x1d7f1a(0x134)]('.');if(_0x1a817f['length']===0x1){const _0x50b7c1=_0x1a817f[0x0];if(!_0x50b7c1)throw new Error(_0x1d7f1a(0x12c));_0x143149['table']=_0x50b7c1;}else{if(_0x1a817f[_0x1d7f1a(0x12d)]===0x2){const [_0x4d02a3,_0x2b8935]=_0x1a817f;if(!_0x4d02a3)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x2b8935)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x143149['database']=_0x4d02a3,_0x143149[_0x1d7f1a(0x132)]=_0x2b8935;}else{if(_0x1a817f[_0x1d7f1a(0x12d)]===0x3){const [_0x161357,_0x363f06,_0x553c0d]=_0x1a817f;if(!_0x161357||!_0x363f06||!_0x553c0d)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x143149['catalog']=_0x161357,_0x143149['database']=_0x363f06,_0x143149[_0x1d7f1a(0x132)]=_0x553c0d;}else throw new Error(_0x1d7f1a(0x13c));}}return _0x143149;}export function formatTableReference(_0x17ecee){const _0x2eb4d7=a148_0x3ef5,_0x270b1d=[];return _0x17ecee[_0x2eb4d7(0x133)]&&_0x270b1d['push'](_0x17ecee[_0x2eb4d7(0x133)]),_0x17ecee[_0x2eb4d7(0x12b)]&&_0x270b1d['push'](_0x17ecee['database']),_0x17ecee[_0x2eb4d7(0x132)]&&_0x270b1d[_0x2eb4d7(0x138)](_0x17ecee[_0x2eb4d7(0x132)]),_0x270b1d[_0x2eb4d7(0x13d)]('.');}function a148_0x3ef5(_0x30cd03,_0x545c8d){_0x30cd03=_0x30cd03-0x12a;const _0x148e71=a148_0x148e();let _0x3ef510=_0x148e71[_0x30cd03];return _0x3ef510;}export function validateTableListReference(_0x5ebd56){return undefined;}export function validateTableDescribeReference(_0x4c722e){const _0x582f53=a148_0x3ef5;if(!_0x4c722e[_0x582f53(0x132)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x4c722e[_0x582f53(0x12b)]&&hasWildcard(_0x4c722e[_0x582f53(0x12b)]))return _0x582f53(0x12f);if(hasWildcard(_0x4c722e[_0x582f53(0x132)]))return _0x582f53(0x139);return undefined;}function a148_0x148e(){const _0x467a92=['table','catalog','split','3498eKTTTt','1456353bHkNve','38jmkGgE','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','1866320NChbwo','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','join','342474yYEzsO','252189nwjlFy','296xWgCnI','559428nktrgw','database','Pattern\x20cannot\x20be\x20just\x20a\x20dot','length','7430iBMIQj','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','includes','30UqjgWx'];a148_0x148e=function(){return _0x467a92;};return a148_0x148e();}
@@ -1 +1 @@
1
- const a149_0x24a84a=a149_0x5593;(function(_0x39ae29,_0x43cee7){const _0x4bce37=a149_0x5593,_0x1b519a=_0x39ae29();while(!![]){try{const _0x2f7231=-parseInt(_0x4bce37(0xa7))/0x1*(-parseInt(_0x4bce37(0x6b))/0x2)+parseInt(_0x4bce37(0x6f))/0x3*(parseInt(_0x4bce37(0x6e))/0x4)+-parseInt(_0x4bce37(0x8a))/0x5*(-parseInt(_0x4bce37(0x7e))/0x6)+parseInt(_0x4bce37(0x92))/0x7+-parseInt(_0x4bce37(0x77))/0x8*(-parseInt(_0x4bce37(0x99))/0x9)+-parseInt(_0x4bce37(0x91))/0xa*(parseInt(_0x4bce37(0x8c))/0xb)+-parseInt(_0x4bce37(0x6a))/0xc;if(_0x2f7231===_0x43cee7)break;else _0x1b519a['push'](_0x1b519a['shift']());}catch(_0x10b988){_0x1b519a['push'](_0x1b519a['shift']());}}}(a149_0x3d52,0x702ff));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a149_0x5593(_0x470729,_0x4d1355){_0x470729=_0x470729-0x67;const _0x3d52bf=a149_0x3d52();let _0x5593d2=_0x3d52bf[_0x470729];return _0x5593d2;}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a149_0x3d52(){const _0x3740f1=['TRACE','floor','log','toString','tdx-','getSeconds','error','626qjEmyg','getMilliseconds','abs','logDir','.cache','map','34260372qeeape','1278koVPJx','red','tdx.log','2396CwdLcN','3249IbDWPm','ERROR','DEBUG','warn','info','includes','Proxy\x20session\x20ended','getLogPath','3432952UzdlHF','logLevel','debug','.log','toISOString','string','filter','458526RomHOY','padStart','getHours','getMonth','end','getFullYear','WARN','join','init','stack','write','Warning:\x20Error\x20writing\x20to\x20tdx.log:','60jeswKu','close','88bTrVLs','rotateOldLogs','fileOnly','test','mtime','44830ueEoto','3684751ZvFqte','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','message','getMinutes','stringify','logStream','.gz','18UzOwLz','cause','name','INFO','split','trace','getTimezoneOffset'];a149_0x3d52=function(){return _0x3740f1;};return a149_0x3d52();}import a149_0xc918d1 from'chalk';function safeStringify(_0xde4352){const _0x3b9510=a149_0x5593;if(typeof _0xde4352===_0x3b9510(0x7c))return _0xde4352;if(_0xde4352 instanceof Error)return _0xde4352[_0x3b9510(0x87)]||_0xde4352[_0x3b9510(0x9b)]+':\x20'+_0xde4352[_0x3b9510(0x94)];try{return JSON[_0x3b9510(0x96)](_0xde4352,(_0x289f42,_0x58f1f2)=>{const _0x2718fb=_0x3b9510;if(_0x58f1f2 instanceof Error)return{'name':_0x58f1f2[_0x2718fb(0x9b)],'message':_0x58f1f2[_0x2718fb(0x94)],'stack':_0x58f1f2[_0x2718fb(0x87)],'cause':_0x58f1f2[_0x2718fb(0x9a)]};return _0x58f1f2;});}catch{return String(_0xde4352);}}function getTimezoneOffset(){const _0x125e64=a149_0x5593,_0x551312=-new Date()[_0x125e64(0x9f)](),_0x2f5b90=Math[_0x125e64(0xa1)](Math[_0x125e64(0xa9)](_0x551312)/0x3c),_0x5179e6=Math[_0x125e64(0xa9)](_0x551312)%0x3c,_0xa4fb84=_0x551312>=0x0?'+':'-';return''+_0xa4fb84+_0x2f5b90[_0x125e64(0xa3)]()[_0x125e64(0x7f)](0x2,'0')+_0x5179e6[_0x125e64(0xa3)]()[_0x125e64(0x7f)](0x2,'0');}function formatTimestamp(){const _0x89764e=a149_0x5593,_0x75017a=new Date(),_0x5598d7=_0x75017a[_0x89764e(0x83)](),_0x323ce9=(_0x75017a[_0x89764e(0x81)]()+0x1)[_0x89764e(0xa3)]()[_0x89764e(0x7f)](0x2,'0'),_0x34cdde=_0x75017a['getDate']()[_0x89764e(0xa3)]()[_0x89764e(0x7f)](0x2,'0'),_0x58de2a=_0x75017a[_0x89764e(0x80)]()[_0x89764e(0xa3)]()['padStart'](0x2,'0'),_0x519814=_0x75017a[_0x89764e(0x95)]()[_0x89764e(0xa3)]()[_0x89764e(0x7f)](0x2,'0'),_0x4603f9=_0x75017a[_0x89764e(0xa5)]()[_0x89764e(0xa3)]()[_0x89764e(0x7f)](0x2,'0'),_0x4c3d68=_0x75017a[_0x89764e(0xa8)]()['toString']()['padStart'](0x3,'0'),_0x1ef6ec=getTimezoneOffset();return _0x5598d7+'-'+_0x323ce9+'-'+_0x34cdde+'\x20'+_0x58de2a+':'+_0x519814+':'+_0x4603f9+'.'+_0x4c3d68+_0x1ef6ec;}function formatColoredLogEntry(_0x5d87de,_0x49559b){const _0x52ab14=a149_0x5593,_0x455f29=formatTimestamp(),_0x1dc8a1=_0x49559b[_0x52ab14(0x69)](safeStringify)[_0x52ab14(0x85)]('\x20'),_0x4487ce=a149_0xc918d1['gray'](_0x455f29);let _0x2ab842;switch(_0x5d87de){case _0x52ab14(0x73):_0x2ab842=a149_0xc918d1['cyan']('['+_0x5d87de+']\x20');break;case'warn':_0x2ab842=a149_0xc918d1['yellow']('['+_0x5d87de+']\x20');break;case'error':_0x2ab842=a149_0xc918d1[_0x52ab14(0x6c)]('['+_0x5d87de+']');break;case _0x52ab14(0x79):_0x2ab842=a149_0xc918d1['gray']('['+_0x5d87de+']');break;default:_0x2ab842='['+_0x5d87de+']';}return _0x4487ce+'\x20'+_0x2ab842+'\x20'+_0x1dc8a1;}export var LogLevel;(function(_0x58b4e1){const _0x2af096=a149_0x5593;_0x58b4e1[_0x58b4e1[_0x2af096(0xa0)]=-0x2]=_0x2af096(0xa0),_0x58b4e1[_0x58b4e1[_0x2af096(0x71)]=-0x1]='DEBUG',_0x58b4e1[_0x58b4e1[_0x2af096(0x9c)]=0x0]='INFO',_0x58b4e1[_0x58b4e1['WARN']=0x1]=_0x2af096(0x84),_0x58b4e1[_0x58b4e1['ERROR']=0x2]=_0x2af096(0x70);}(LogLevel||(LogLevel={})));export class TDXLogger{[a149_0x24a84a(0x97)];[a149_0x24a84a(0x67)];[a149_0x24a84a(0x78)];[a149_0x24a84a(0x8e)];constructor(_0x3c843f=LogLevel[a149_0x24a84a(0x9c)],_0x310ded=![]){const _0x309a95=a149_0x24a84a;this['logDir']=join(homedir(),_0x309a95(0x68),'tdx','logs'),this[_0x309a95(0x78)]=_0x3c843f,this[_0x309a95(0x8e)]=_0x310ded;}async[a149_0x24a84a(0x86)](){const _0x31135d=a149_0x24a84a;try{await mkdir(this[_0x31135d(0x67)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x2077dc=join(this['logDir'],_0x31135d(0x6d));this['logStream']=createWriteStream(_0x2077dc,{'flags':'a'}),this[_0x31135d(0x97)]['on'](_0x31135d(0xa6),_0x483090=>{const _0x598809=_0x31135d;console[_0x598809(0xa6)](_0x598809(0x89),_0x483090[_0x598809(0x94)]);});}catch(_0x3d4e3e){console[_0x31135d(0xa6)](_0x31135d(0x93),_0x3d4e3e);}}async[a149_0x24a84a(0x8d)](){const _0x29bbad=a149_0x24a84a;try{const _0x344202=await readdir(this[_0x29bbad(0x67)]),_0x2fa19e=new Date()['toISOString']()[_0x29bbad(0x9d)]('T')[0x0];if(_0x344202[_0x29bbad(0x74)](_0x29bbad(0x6d))){const _0x3de23f=join(this['logDir'],_0x29bbad(0x6d)),_0x3a3475=await stat(_0x3de23f),_0x2b5632=new Date(_0x3a3475[_0x29bbad(0x90)])[_0x29bbad(0x7b)]()[_0x29bbad(0x9d)]('T')[0x0];if(_0x2b5632<_0x2fa19e){const _0xc1d3f=join(this[_0x29bbad(0x67)],_0x29bbad(0xa4)+_0x2b5632+_0x29bbad(0x7a));await rename(_0x3de23f,_0xc1d3f);}}const _0x1f331e=await readdir(this[_0x29bbad(0x67)]),_0x13eeea=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0xa46ea=_0x1f331e[_0x29bbad(0x7d)](_0x39d788=>_0x13eeea[_0x29bbad(0x8f)](_0x39d788));for(const _0x52e822 of _0xa46ea){const _0x201dc5=join(this['logDir'],_0x52e822),_0x56a92c=join(this['logDir'],_0x52e822+_0x29bbad(0x98));try{await pipeline(createReadStream(_0x201dc5),createGzip(),createWriteStream(_0x56a92c)),await unlink(_0x201dc5);}catch(_0x36091e){console[_0x29bbad(0xa6)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x52e822+':',_0x36091e);}}}catch{}}[a149_0x24a84a(0x79)](..._0x5be364){const _0x2ef12e=a149_0x24a84a;if(this['logLevel']>LogLevel[_0x2ef12e(0x71)])return;const _0xe2798e=formatColoredLogEntry(_0x2ef12e(0x79),_0x5be364);this[_0x2ef12e(0x97)]?.['write'](_0xe2798e+'\x0a');}['trace'](..._0x50b84f){const _0x4b02b6=a149_0x24a84a;if(this['logLevel']>LogLevel[_0x4b02b6(0xa0)])return;const _0x1c601b=formatColoredLogEntry(_0x4b02b6(0x9e),_0x50b84f);this[_0x4b02b6(0x97)]?.[_0x4b02b6(0x88)](_0x1c601b+'\x0a');}[a149_0x24a84a(0x73)](..._0x4d8070){const _0x1d1e7a=a149_0x24a84a;if(this['logLevel']>LogLevel['INFO'])return;const _0x246886=formatColoredLogEntry('info',_0x4d8070);!this['fileOnly']&&console[_0x1d1e7a(0xa2)](_0x246886),this[_0x1d1e7a(0x97)]?.[_0x1d1e7a(0x88)](_0x246886+'\x0a');}[a149_0x24a84a(0x72)](..._0x491bab){const _0x6fc5c=a149_0x24a84a;if(this['logLevel']>LogLevel[_0x6fc5c(0x84)])return;const _0x1dafd7=formatColoredLogEntry(_0x6fc5c(0x72),_0x491bab);!this[_0x6fc5c(0x8e)]&&console['error'](_0x1dafd7),this[_0x6fc5c(0x97)]?.[_0x6fc5c(0x88)](_0x1dafd7+'\x0a');}['error'](..._0x1b9b32){const _0x1805af=a149_0x24a84a,_0x216e94=formatColoredLogEntry(_0x1805af(0xa6),_0x1b9b32);!this['fileOnly']&&console[_0x1805af(0xa6)](_0x216e94),this[_0x1805af(0x97)]?.[_0x1805af(0x88)](_0x216e94+'\x0a');}async[a149_0x24a84a(0x8b)](){const _0x21c20f=a149_0x24a84a;return this[_0x21c20f(0x73)](_0x21c20f(0x75)),new Promise(_0x250153=>{const _0xc6bf25=_0x21c20f;this[_0xc6bf25(0x97)]?this[_0xc6bf25(0x97)][_0xc6bf25(0x82)](()=>{_0x250153();}):_0x250153();});}[a149_0x24a84a(0x76)](){return join(this['logDir'],'tdx.log');}}
1
+ const a149_0x9090eb=a149_0x3958;(function(_0x3a30c8,_0x162cfb){const _0x476623=a149_0x3958,_0x4d1292=_0x3a30c8();while(!![]){try{const _0x420485=-parseInt(_0x476623(0x136))/0x1+-parseInt(_0x476623(0x124))/0x2*(parseInt(_0x476623(0x106))/0x3)+parseInt(_0x476623(0x117))/0x4*(parseInt(_0x476623(0x127))/0x5)+-parseInt(_0x476623(0x119))/0x6+parseInt(_0x476623(0x115))/0x7*(parseInt(_0x476623(0x104))/0x8)+parseInt(_0x476623(0x103))/0x9*(-parseInt(_0x476623(0x10f))/0xa)+parseInt(_0x476623(0x107))/0xb;if(_0x420485===_0x162cfb)break;else _0x4d1292['push'](_0x4d1292['shift']());}catch(_0x393dcc){_0x4d1292['push'](_0x4d1292['shift']());}}}(a149_0x50e0,0xea2b4));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a149_0x50e0(){const _0x24f9ed=['getMinutes','fileOnly','cyan','getDate','rotateOldLogs','split','cause','debug','.log','floor','warn','396EbKROE','3927776soqVSd','init','3dazbaS','41451498SCrbCb','close','trace','join','yellow','tdx.log','write','error','146030JtfPIs','.cache','string','ERROR','includes','map','7WaLkfO','info','456CTumbb','toString','9450498HxdsBA','name','getTimezoneOffset','getLogPath','padStart','TRACE','INFO','stringify','.gz','tdx-','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','1226246ZzCkKa','message','filter','30005NiNLgb','DEBUG','stack','end','logDir','mtime','test','toISOString','getFullYear','WARN','logStream','getMilliseconds','logLevel','Warning:\x20Failed\x20to\x20compress\x20','gray','1153510zIyXke','getHours'];a149_0x50e0=function(){return _0x24f9ed;};return a149_0x50e0();}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a149_0x36b337 from'chalk';function a149_0x3958(_0x1775c8,_0x4877f5){_0x1775c8=_0x1775c8-0xfe;const _0x50e029=a149_0x50e0();let _0x39585d=_0x50e029[_0x1775c8];return _0x39585d;}function safeStringify(_0x43a192){const _0x41a111=a149_0x3958;if(typeof _0x43a192===_0x41a111(0x111))return _0x43a192;if(_0x43a192 instanceof Error)return _0x43a192[_0x41a111(0x129)]||_0x43a192[_0x41a111(0x11a)]+':\x20'+_0x43a192[_0x41a111(0x125)];try{return JSON[_0x41a111(0x120)](_0x43a192,(_0xd6f2f3,_0x4328d3)=>{const _0x51f265=_0x41a111;if(_0x4328d3 instanceof Error)return{'name':_0x4328d3[_0x51f265(0x11a)],'message':_0x4328d3['message'],'stack':_0x4328d3[_0x51f265(0x129)],'cause':_0x4328d3[_0x51f265(0xfe)]};return _0x4328d3;});}catch{return String(_0x43a192);}}function getTimezoneOffset(){const _0x41f1d8=a149_0x3958,_0x3fd24d=-new Date()[_0x41f1d8(0x11b)](),_0x198ddb=Math[_0x41f1d8(0x101)](Math['abs'](_0x3fd24d)/0x3c),_0x473dee=Math['abs'](_0x3fd24d)%0x3c,_0x3d8032=_0x3fd24d>=0x0?'+':'-';return''+_0x3d8032+_0x198ddb[_0x41f1d8(0x118)]()[_0x41f1d8(0x11d)](0x2,'0')+_0x473dee[_0x41f1d8(0x118)]()[_0x41f1d8(0x11d)](0x2,'0');}function formatTimestamp(){const _0xc37b06=a149_0x3958,_0x40df9f=new Date(),_0x2d841d=_0x40df9f[_0xc37b06(0x12f)](),_0x35a3be=(_0x40df9f['getMonth']()+0x1)['toString']()[_0xc37b06(0x11d)](0x2,'0'),_0x471c5b=_0x40df9f[_0xc37b06(0x13b)]()[_0xc37b06(0x118)]()[_0xc37b06(0x11d)](0x2,'0'),_0x522079=_0x40df9f[_0xc37b06(0x137)]()[_0xc37b06(0x118)]()[_0xc37b06(0x11d)](0x2,'0'),_0x5b7479=_0x40df9f[_0xc37b06(0x138)]()[_0xc37b06(0x118)]()[_0xc37b06(0x11d)](0x2,'0'),_0x531552=_0x40df9f['getSeconds']()['toString']()['padStart'](0x2,'0'),_0x58a4dd=_0x40df9f[_0xc37b06(0x132)]()[_0xc37b06(0x118)]()[_0xc37b06(0x11d)](0x3,'0'),_0x2c402a=getTimezoneOffset();return _0x2d841d+'-'+_0x35a3be+'-'+_0x471c5b+'\x20'+_0x522079+':'+_0x5b7479+':'+_0x531552+'.'+_0x58a4dd+_0x2c402a;}function formatColoredLogEntry(_0xf4cfe8,_0x284c12){const _0x3ab72a=a149_0x3958,_0x112c67=formatTimestamp(),_0x2c2948=_0x284c12[_0x3ab72a(0x114)](safeStringify)[_0x3ab72a(0x10a)]('\x20'),_0x5d01a4=a149_0x36b337['gray'](_0x112c67);let _0x2fbd67;switch(_0xf4cfe8){case'info':_0x2fbd67=a149_0x36b337[_0x3ab72a(0x13a)]('['+_0xf4cfe8+']\x20');break;case _0x3ab72a(0x102):_0x2fbd67=a149_0x36b337[_0x3ab72a(0x10b)]('['+_0xf4cfe8+']\x20');break;case _0x3ab72a(0x10e):_0x2fbd67=a149_0x36b337['red']('['+_0xf4cfe8+']');break;case _0x3ab72a(0xff):_0x2fbd67=a149_0x36b337[_0x3ab72a(0x135)]('['+_0xf4cfe8+']');break;default:_0x2fbd67='['+_0xf4cfe8+']';}return _0x5d01a4+'\x20'+_0x2fbd67+'\x20'+_0x2c2948;}export var LogLevel;(function(_0x57af53){const _0x1f090f=a149_0x3958;_0x57af53[_0x57af53[_0x1f090f(0x11e)]=-0x2]=_0x1f090f(0x11e),_0x57af53[_0x57af53[_0x1f090f(0x128)]=-0x1]='DEBUG',_0x57af53[_0x57af53[_0x1f090f(0x11f)]=0x0]='INFO',_0x57af53[_0x57af53[_0x1f090f(0x130)]=0x1]=_0x1f090f(0x130),_0x57af53[_0x57af53[_0x1f090f(0x112)]=0x2]=_0x1f090f(0x112);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];[a149_0x9090eb(0x12b)];['logLevel'];[a149_0x9090eb(0x139)];constructor(_0x3667d3=LogLevel[a149_0x9090eb(0x11f)],_0x55147a=![]){const _0x8c77af=a149_0x9090eb;this['logDir']=join(homedir(),_0x8c77af(0x110),'tdx','logs'),this[_0x8c77af(0x133)]=_0x3667d3,this['fileOnly']=_0x55147a;}async[a149_0x9090eb(0x105)](){const _0x25dfc4=a149_0x9090eb;try{await mkdir(this[_0x25dfc4(0x12b)],{'recursive':!![]}),await this[_0x25dfc4(0x13c)]();const _0x3eb346=join(this[_0x25dfc4(0x12b)],'tdx.log');this[_0x25dfc4(0x131)]=createWriteStream(_0x3eb346,{'flags':'a'}),this['logStream']['on']('error',_0x581d45=>{console['error']('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x581d45['message']);});}catch(_0x2d5f8f){console['error'](_0x25dfc4(0x123),_0x2d5f8f);}}async[a149_0x9090eb(0x13c)](){const _0x3b783f=a149_0x9090eb;try{const _0xa69de6=await readdir(this[_0x3b783f(0x12b)]),_0x3896aa=new Date()['toISOString']()[_0x3b783f(0x13d)]('T')[0x0];if(_0xa69de6[_0x3b783f(0x113)](_0x3b783f(0x10c))){const _0x2dc219=join(this[_0x3b783f(0x12b)],_0x3b783f(0x10c)),_0x16ad2f=await stat(_0x2dc219),_0x5971d0=new Date(_0x16ad2f[_0x3b783f(0x12c)])[_0x3b783f(0x12e)]()[_0x3b783f(0x13d)]('T')[0x0];if(_0x5971d0<_0x3896aa){const _0x1ef188=join(this[_0x3b783f(0x12b)],_0x3b783f(0x122)+_0x5971d0+_0x3b783f(0x100));await rename(_0x2dc219,_0x1ef188);}}const _0x1a3c9b=await readdir(this[_0x3b783f(0x12b)]),_0x2cf4ac=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x373dec=_0x1a3c9b[_0x3b783f(0x126)](_0x2596d6=>_0x2cf4ac[_0x3b783f(0x12d)](_0x2596d6));for(const _0xbdf4bb of _0x373dec){const _0x54609b=join(this[_0x3b783f(0x12b)],_0xbdf4bb),_0x185e53=join(this[_0x3b783f(0x12b)],_0xbdf4bb+_0x3b783f(0x121));try{await pipeline(createReadStream(_0x54609b),createGzip(),createWriteStream(_0x185e53)),await unlink(_0x54609b);}catch(_0x54e24e){console['error'](_0x3b783f(0x134)+_0xbdf4bb+':',_0x54e24e);}}}catch{}}[a149_0x9090eb(0xff)](..._0x2911d8){const _0x2a1952=a149_0x9090eb;if(this[_0x2a1952(0x133)]>LogLevel[_0x2a1952(0x128)])return;const _0x1eec56=formatColoredLogEntry(_0x2a1952(0xff),_0x2911d8);this[_0x2a1952(0x131)]?.[_0x2a1952(0x10d)](_0x1eec56+'\x0a');}[a149_0x9090eb(0x109)](..._0x1e784a){const _0x555b19=a149_0x9090eb;if(this[_0x555b19(0x133)]>LogLevel[_0x555b19(0x11e)])return;const _0x3bb519=formatColoredLogEntry(_0x555b19(0x109),_0x1e784a);this[_0x555b19(0x131)]?.[_0x555b19(0x10d)](_0x3bb519+'\x0a');}[a149_0x9090eb(0x116)](..._0x3ecffe){const _0x3b39ab=a149_0x9090eb;if(this[_0x3b39ab(0x133)]>LogLevel[_0x3b39ab(0x11f)])return;const _0x1cc3b7=formatColoredLogEntry('info',_0x3ecffe);!this[_0x3b39ab(0x139)]&&console['log'](_0x1cc3b7),this['logStream']?.['write'](_0x1cc3b7+'\x0a');}[a149_0x9090eb(0x102)](..._0x3e6f30){const _0x3ca909=a149_0x9090eb;if(this['logLevel']>LogLevel[_0x3ca909(0x130)])return;const _0x463a5d=formatColoredLogEntry(_0x3ca909(0x102),_0x3e6f30);!this[_0x3ca909(0x139)]&&console[_0x3ca909(0x10e)](_0x463a5d),this[_0x3ca909(0x131)]?.[_0x3ca909(0x10d)](_0x463a5d+'\x0a');}[a149_0x9090eb(0x10e)](..._0x190b67){const _0xcc6ac2=a149_0x9090eb,_0x36513c=formatColoredLogEntry(_0xcc6ac2(0x10e),_0x190b67);!this[_0xcc6ac2(0x139)]&&console[_0xcc6ac2(0x10e)](_0x36513c),this[_0xcc6ac2(0x131)]?.[_0xcc6ac2(0x10d)](_0x36513c+'\x0a');}async[a149_0x9090eb(0x108)](){const _0x28e201=a149_0x9090eb;return this[_0x28e201(0x116)]('Proxy\x20session\x20ended'),new Promise(_0x39101a=>{const _0x5164e9=_0x28e201;this[_0x5164e9(0x131)]?this['logStream'][_0x5164e9(0x12a)](()=>{_0x39101a();}):_0x39101a();});}[a149_0x9090eb(0x11c)](){const _0x33aa4b=a149_0x9090eb;return join(this['logDir'],_0x33aa4b(0x10c));}}
@@ -1 +1 @@
1
- const a150_0x15adc9=a150_0x4623;(function(_0x4f90b6,_0x1a4537){const _0x22f0c0=a150_0x4623,_0x40f011=_0x4f90b6();while(!![]){try{const _0x594f96=-parseInt(_0x22f0c0(0x154))/0x1*(parseInt(_0x22f0c0(0x146))/0x2)+parseInt(_0x22f0c0(0x15c))/0x3+-parseInt(_0x22f0c0(0x159))/0x4*(-parseInt(_0x22f0c0(0x157))/0x5)+-parseInt(_0x22f0c0(0x13b))/0x6*(parseInt(_0x22f0c0(0x15f))/0x7)+-parseInt(_0x22f0c0(0x142))/0x8+-parseInt(_0x22f0c0(0x13c))/0x9+parseInt(_0x22f0c0(0x15d))/0xa*(parseInt(_0x22f0c0(0x13f))/0xb);if(_0x594f96===_0x1a4537)break;else _0x40f011['push'](_0x40f011['shift']());}catch(_0x580a78){_0x40f011['push'](_0x40f011['shift']());}}}(a150_0x26eb,0x9d930));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a150_0x39bf4b from'chalk';function a150_0x26eb(){const _0xa10ed3=['version','9207MkSPVk','cyan','toISOString','4696720lCRHAu','parse','latestVersion','stringify','1049842oKJfEg','Update\x20available:','gray','dim','https://registry.npmjs.org/@treasuredata/tdx/latest','utf-8','stderr','npm\x20install\x20-g\x20@treasuredata/tdx@latest','updateAvailable','HTTP\x20','currentVersion','env','destroy','write','1vMnXiH','end','last_version_check','1070jbQHcq','statusCode','10776QCXEvY','\x0aUpdate\x20available:\x20','now','3019692SPJPwF','19640hbiDQP','Run:','595LmIOwj','\x0aRun:\x20','isTTY','Invalid\x20version\x20format','35094ASLIXP','8751132IplAOU','yellow'];a150_0x26eb=function(){return _0xa10ed3;};return a150_0x26eb();}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a150_0x15adc9(0x14a),TIMEOUT_MS=0x7d0;function a150_0x4623(_0x57a848,_0x3c0e6b){_0x57a848=_0x57a848-0x139;const _0x26eb91=a150_0x26eb();let _0x4623a5=_0x26eb91[_0x57a848];return _0x4623a5;}function getCacheFilePath(){const _0x479eb5=a150_0x15adc9,_0x243d1e=getCacheDir();return join(_0x243d1e,_0x479eb5(0x156));}function readCache(){const _0x36b0fa=a150_0x15adc9;try{const _0x3e1df6=getCacheFilePath(),_0x13111d=readFileSync(_0x3e1df6,'utf-8');return JSON[_0x36b0fa(0x143)](_0x13111d);}catch{return null;}}function writeCache(_0x5ebe35){const _0x18cc6a=a150_0x15adc9;try{const _0x3ed7a7=getCacheDir();mkdirSync(_0x3ed7a7,{'recursive':!![]});const _0x107e38={'lastCheck':new Date()[_0x18cc6a(0x141)](),'latestVersion':_0x5ebe35},_0x5c9259=getCacheFilePath();writeFileSync(_0x5c9259,JSON[_0x18cc6a(0x145)](_0x107e38,null,0x2),_0x18cc6a(0x14b));}catch{}}function isCacheValid(_0x5ad4ff){const _0x21a12d=a150_0x15adc9;if(!_0x5ad4ff)return![];const _0x3af224=new Date(_0x5ad4ff['lastCheck'])['getTime'](),_0x48041d=Date[_0x21a12d(0x15b)]();return _0x48041d-_0x3af224<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x59ff07,_0x18e5eb)=>{const _0x1a20a2=get(NPM_REGISTRY_URL,_0xd5553d=>{const _0x580ca4=a150_0x4623;if(_0xd5553d[_0x580ca4(0x158)]!==0xc8){clearTimeout(_0x1683a3),_0x18e5eb(new Error(_0x580ca4(0x14f)+_0xd5553d['statusCode']));return;}let _0x11c99f='';_0xd5553d['on']('data',_0x1ba3e0=>{_0x11c99f+=_0x1ba3e0;}),_0xd5553d['on'](_0x580ca4(0x155),()=>{const _0x2cae46=_0x580ca4;clearTimeout(_0x1683a3);try{const _0x3cbb3d=JSON[_0x2cae46(0x143)](_0x11c99f);if(!valid(_0x3cbb3d[_0x2cae46(0x13e)])){_0x18e5eb(new Error(_0x2cae46(0x13a)));return;}_0x59ff07(_0x3cbb3d[_0x2cae46(0x13e)]);}catch(_0x49e0e1){_0x18e5eb(_0x49e0e1);}});})['on']('error',_0x214fb7=>{clearTimeout(_0x1683a3),_0x18e5eb(_0x214fb7);}),_0x1683a3=setTimeout(()=>{const _0x44f903=a150_0x4623;_0x1a20a2[_0x44f903(0x152)](),_0x18e5eb(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x2ffd0d){const _0x3750f2=a150_0x15adc9;try{const _0x4294d7=readCache();if(isCacheValid(_0x4294d7)){const _0x5f3a20=gt(_0x4294d7[_0x3750f2(0x144)],_0x2ffd0d);return{'updateAvailable':_0x5f3a20,'currentVersion':_0x2ffd0d,'latestVersion':_0x4294d7[_0x3750f2(0x144)]};}const _0x2a6648=await fetchLatestVersion();writeCache(_0x2a6648);const _0x41681f=gt(_0x2a6648,_0x2ffd0d);return{'updateAvailable':_0x41681f,'currentVersion':_0x2ffd0d,'latestVersion':_0x2a6648};}catch{return null;}}export function displayUpdateNotification(_0xaaee4b){const _0x3c57d3=a150_0x15adc9;if(!_0xaaee4b[_0x3c57d3(0x14e)])return;const _0x1114fe=process[_0x3c57d3(0x14c)][_0x3c57d3(0x139)]&&!process[_0x3c57d3(0x151)]['NO_COLOR'],_0x1c7356=_0x1114fe?a150_0x39bf4b[_0x3c57d3(0x148)]('→'):'→',_0xa3fe63=_0x1114fe?a150_0x39bf4b[_0x3c57d3(0x149)](_0xaaee4b[_0x3c57d3(0x150)]):_0xaaee4b['currentVersion'],_0x432a89=_0x1114fe?a150_0x39bf4b['green'](_0xaaee4b['latestVersion']):_0xaaee4b[_0x3c57d3(0x144)],_0x1e39b2=_0x1114fe?a150_0x39bf4b[_0x3c57d3(0x140)]('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x3c57d3(0x14d),_0x2aa1a3=_0x1114fe?'\x0a'+a150_0x39bf4b[_0x3c57d3(0x13d)](_0x3c57d3(0x147))+'\x20'+_0xa3fe63+'\x20'+_0x1c7356+'\x20'+_0x432a89+'\x0a'+a150_0x39bf4b[_0x3c57d3(0x149)](_0x3c57d3(0x15e))+'\x20'+_0x1e39b2+'\x0a':_0x3c57d3(0x15a)+_0xa3fe63+'\x20'+_0x1c7356+'\x20'+_0x432a89+_0x3c57d3(0x160)+_0x1e39b2+'\x0a';process[_0x3c57d3(0x14c)][_0x3c57d3(0x153)](_0x2aa1a3);}
1
+ (function(_0x37040e,_0x58536){const _0x4f0609=a150_0x2537,_0x3ea0b7=_0x37040e();while(!![]){try{const _0x206a6f=parseInt(_0x4f0609(0x1cf))/0x1+-parseInt(_0x4f0609(0x1c5))/0x2*(parseInt(_0x4f0609(0x1e2))/0x3)+-parseInt(_0x4f0609(0x1c8))/0x4*(parseInt(_0x4f0609(0x1e0))/0x5)+parseInt(_0x4f0609(0x1ce))/0x6*(parseInt(_0x4f0609(0x1c9))/0x7)+parseInt(_0x4f0609(0x1df))/0x8+parseInt(_0x4f0609(0x1d4))/0x9+parseInt(_0x4f0609(0x1e5))/0xa*(-parseInt(_0x4f0609(0x1e8))/0xb);if(_0x206a6f===_0x58536)break;else _0x3ea0b7['push'](_0x3ea0b7['shift']());}catch(_0x4b23a){_0x3ea0b7['push'](_0x3ea0b7['shift']());}}}(a150_0x1add,0x8c39f));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a150_0x45657e 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 _0x53d532=a150_0x2537,_0x4c71e7=getCacheDir();return join(_0x4c71e7,_0x53d532(0x1e3));}function readCache(){const _0x319cab=a150_0x2537;try{const _0x2134b9=getCacheFilePath(),_0x2954aa=readFileSync(_0x2134b9,_0x319cab(0x1d7));return JSON['parse'](_0x2954aa);}catch{return null;}}function a150_0x1add(){const _0x4ba56c=['4324150ikfjLC','HTTP\x20','green','11lMLfJe','stderr','lastCheck','version','\x0aUpdate\x20available:\x20','npm\x20install\x20-g\x20@treasuredata/tdx@latest','8266jCWHwE','dim','updateAvailable','41620TwKUDj','21KgacFJ','NO_COLOR','cyan','statusCode','Invalid\x20version\x20format','1517640RZalEq','223779zNfmZc','Run:','Request\x20timeout','write','Update\x20available:','6770277OVIJmI','latestVersion','error','utf-8','currentVersion','parse','data','destroy','now','getTime','isTTY','5246072DgjAdk','520nQSBwB','yellow','219Vvjcfp','last_version_check','gray'];a150_0x1add=function(){return _0x4ba56c;};return a150_0x1add();}function a150_0x2537(_0x1632eb,_0x2f19a3){_0x1632eb=_0x1632eb-0x1c3;const _0x1adda9=a150_0x1add();let _0x25371d=_0x1adda9[_0x1632eb];return _0x25371d;}function writeCache(_0x4210d4){const _0x5a6dc4=a150_0x2537;try{const _0x5a4900=getCacheDir();mkdirSync(_0x5a4900,{'recursive':!![]});const _0xe15242={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x4210d4},_0x2f5413=getCacheFilePath();writeFileSync(_0x2f5413,JSON['stringify'](_0xe15242,null,0x2),_0x5a6dc4(0x1d7));}catch{}}function isCacheValid(_0x31ed80){const _0x34415b=a150_0x2537;if(!_0x31ed80)return![];const _0x9a0af9=new Date(_0x31ed80[_0x34415b(0x1ea)])[_0x34415b(0x1dd)](),_0x2a77ad=Date[_0x34415b(0x1dc)]();return _0x2a77ad-_0x9a0af9<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x56912a,_0x43498b)=>{const _0x11dc84=a150_0x2537,_0x5c31b2=get(NPM_REGISTRY_URL,_0x2acbf1=>{const _0x11f786=a150_0x2537;if(_0x2acbf1[_0x11f786(0x1cc)]!==0xc8){clearTimeout(_0x1ded95),_0x43498b(new Error(_0x11f786(0x1e6)+_0x2acbf1[_0x11f786(0x1cc)]));return;}let _0x29775c='';_0x2acbf1['on'](_0x11f786(0x1da),_0x68ecb5=>{_0x29775c+=_0x68ecb5;}),_0x2acbf1['on']('end',()=>{const _0x2051c8=_0x11f786;clearTimeout(_0x1ded95);try{const _0x1d5557=JSON[_0x2051c8(0x1d9)](_0x29775c);if(!valid(_0x1d5557[_0x2051c8(0x1eb)])){_0x43498b(new Error(_0x2051c8(0x1cd)));return;}_0x56912a(_0x1d5557[_0x2051c8(0x1eb)]);}catch(_0x2da0ed){_0x43498b(_0x2da0ed);}});})['on'](_0x11dc84(0x1d6),_0x47c6bb=>{clearTimeout(_0x1ded95),_0x43498b(_0x47c6bb);}),_0x1ded95=setTimeout(()=>{const _0xf24a51=_0x11dc84;_0x5c31b2[_0xf24a51(0x1db)](),_0x43498b(new Error(_0xf24a51(0x1d1)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4e263b){const _0x5aa145=a150_0x2537;try{const _0x2a45a5=readCache();if(isCacheValid(_0x2a45a5)){const _0x3f84fd=gt(_0x2a45a5[_0x5aa145(0x1d5)],_0x4e263b);return{'updateAvailable':_0x3f84fd,'currentVersion':_0x4e263b,'latestVersion':_0x2a45a5[_0x5aa145(0x1d5)]};}const _0x258f1e=await fetchLatestVersion();writeCache(_0x258f1e);const _0x20e58d=gt(_0x258f1e,_0x4e263b);return{'updateAvailable':_0x20e58d,'currentVersion':_0x4e263b,'latestVersion':_0x258f1e};}catch{return null;}}export function displayUpdateNotification(_0xcc2c58){const _0x36ef79=a150_0x2537;if(!_0xcc2c58[_0x36ef79(0x1c7)])return;const _0x4144d8=process[_0x36ef79(0x1e9)][_0x36ef79(0x1de)]&&!process['env'][_0x36ef79(0x1ca)],_0x5c0b47=_0x4144d8?a150_0x45657e[_0x36ef79(0x1e4)]('→'):'→',_0x3fb5fd=_0x4144d8?a150_0x45657e[_0x36ef79(0x1c6)](_0xcc2c58[_0x36ef79(0x1d8)]):_0xcc2c58[_0x36ef79(0x1d8)],_0x51bdcb=_0x4144d8?a150_0x45657e[_0x36ef79(0x1e7)](_0xcc2c58[_0x36ef79(0x1d5)]):_0xcc2c58[_0x36ef79(0x1d5)],_0x101e0f=_0x4144d8?a150_0x45657e[_0x36ef79(0x1cb)](_0x36ef79(0x1c4)):_0x36ef79(0x1c4),_0x4a740d=_0x4144d8?'\x0a'+a150_0x45657e[_0x36ef79(0x1e1)](_0x36ef79(0x1d3))+'\x20'+_0x3fb5fd+'\x20'+_0x5c0b47+'\x20'+_0x51bdcb+'\x0a'+a150_0x45657e[_0x36ef79(0x1c6)](_0x36ef79(0x1d0))+'\x20'+_0x101e0f+'\x0a':_0x36ef79(0x1c3)+_0x3fb5fd+'\x20'+_0x5c0b47+'\x20'+_0x51bdcb+'\x0aRun:\x20'+_0x101e0f+'\x0a';process[_0x36ef79(0x1e9)][_0x36ef79(0x1d2)](_0x4a740d);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.14.3",
3
+ "version": "0.14.4",
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": {