@treasuredata/tdx 0.14.1 → 0.14.2

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 (143) 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.js +1 -1
  11. package/dist/commands/claude-statusline-command.js +1 -1
  12. package/dist/commands/claude-usage-command.js +1 -1
  13. package/dist/commands/command.js +1 -1
  14. package/dist/commands/connection-command.js +1 -1
  15. package/dist/commands/databases.js +1 -1
  16. package/dist/commands/describe.js +1 -1
  17. package/dist/commands/engage-command.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/journey-command.js +1 -1
  20. package/dist/commands/journey-validate-command.js +1 -1
  21. package/dist/commands/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/parent-segment-command.js +1 -1
  24. package/dist/commands/profile-command.js +1 -1
  25. package/dist/commands/profiles-command.js +1 -1
  26. package/dist/commands/query-command.js +1 -1
  27. package/dist/commands/segment-command.js +1 -1
  28. package/dist/commands/segment-create-command.js +1 -1
  29. package/dist/commands/segment-fields-command.js +1 -1
  30. package/dist/commands/segment-pull-command.js +1 -1
  31. package/dist/commands/segment-push-command.js +1 -1
  32. package/dist/commands/segment-update-command.js +1 -1
  33. package/dist/commands/segment-use-command.js +1 -1
  34. package/dist/commands/segment-validate-command.js +1 -1
  35. package/dist/commands/segments.js +1 -1
  36. package/dist/commands/show.js +1 -1
  37. package/dist/commands/tables.js +1 -1
  38. package/dist/commands/use-command.js +1 -1
  39. package/dist/commands/user-command.js +1 -1
  40. package/dist/commands/workflow-command.js +1 -1
  41. package/dist/core/auth.js +1 -1
  42. package/dist/core/command-output.js +1 -1
  43. package/dist/core/config.js +1 -1
  44. package/dist/core/connection-cache.js +1 -1
  45. package/dist/core/constants.js +1 -1
  46. package/dist/core/credential-cache.js +1 -1
  47. package/dist/core/global-context.js +1 -1
  48. package/dist/core/keychain.js +1 -1
  49. package/dist/core/profile.js +1 -1
  50. package/dist/core/project-config.js +1 -1
  51. package/dist/core/session.js +1 -1
  52. package/dist/core/user-cache.js +1 -1
  53. package/dist/core/version.js +1 -1
  54. package/dist/index.js +1 -1
  55. package/dist/proxy/anthropic-adapter.js +1 -1
  56. package/dist/proxy/claude-usage-tracker.js +1 -1
  57. package/dist/proxy/context-signature.js +1 -1
  58. package/dist/proxy/conversation-utils.js +1 -1
  59. package/dist/proxy/passthrough-server.js +1 -1
  60. package/dist/proxy/server.js +1 -1
  61. package/dist/proxy/session-cache.js +1 -1
  62. package/dist/proxy/sse-usage-parser.js +1 -1
  63. package/dist/sdk/agent/agent-config.js +1 -1
  64. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  65. package/dist/sdk/agent/agent-yaml.js +1 -1
  66. package/dist/sdk/api.js +1 -1
  67. package/dist/sdk/client/cdp-api-client.js +1 -1
  68. package/dist/sdk/client/endpoints.js +1 -1
  69. package/dist/sdk/client/endpoints.js.map +1 -1
  70. package/dist/sdk/client/engage-api-client.js +1 -1
  71. package/dist/sdk/client/http-client.js +1 -1
  72. package/dist/sdk/client/llm-api-client.js +1 -1
  73. package/dist/sdk/client/rate-limiter.js +1 -1
  74. package/dist/sdk/client/td-api-client.js +1 -1
  75. package/dist/sdk/client/trino-api-client.js +1 -1
  76. package/dist/sdk/client/workflow-client.js +1 -1
  77. package/dist/sdk/connection-validator.js +1 -1
  78. package/dist/sdk/connection.js +1 -1
  79. package/dist/sdk/engage.js +1 -1
  80. package/dist/sdk/errors.js +1 -1
  81. package/dist/sdk/index.js +1 -1
  82. package/dist/sdk/io/index.js +1 -1
  83. package/dist/sdk/io/node-filesystem.js +1 -1
  84. package/dist/sdk/job.js +1 -1
  85. package/dist/sdk/journey.js +1 -1
  86. package/dist/sdk/llm/chat-cache.js +1 -1
  87. package/dist/sdk/llm/index.js +1 -1
  88. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  89. package/dist/sdk/llm/model-aliases.js +1 -1
  90. package/dist/sdk/llm/model-factors.js +1 -1
  91. package/dist/sdk/query/index.js +1 -1
  92. package/dist/sdk/query/sql-parser.js +1 -1
  93. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  94. package/dist/sdk/segment/fields-display.js +1 -1
  95. package/dist/sdk/segment/file-discovery.js +1 -1
  96. package/dist/sdk/segment/journey-utils.js +1 -1
  97. package/dist/sdk/segment/journey-yaml.js +1 -1
  98. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  99. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  100. package/dist/sdk/segment/pull-workflow.js +1 -1
  101. package/dist/sdk/segment/push-workflow.js +1 -1
  102. package/dist/sdk/segment/resolution-context.js +1 -1
  103. package/dist/sdk/segment/segment-path-parser.js +1 -1
  104. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  105. package/dist/sdk/segment/target-resolution.js +1 -1
  106. package/dist/sdk/segment/tdx-config.js +1 -1
  107. package/dist/sdk/segment/validate-files.js +1 -1
  108. package/dist/sdk/segment/yaml-validator.js +1 -1
  109. package/dist/sdk/segment.js +1 -1
  110. package/dist/sdk/types/index.js +1 -1
  111. package/dist/sdk/types/progress.js +1 -1
  112. package/dist/sdk/user.js +1 -1
  113. package/dist/sdk/util/format-detector.js +1 -1
  114. package/dist/sdk/util/formatters.js +1 -1
  115. package/dist/sdk/util/index.js +1 -1
  116. package/dist/sdk/util/tree-formatter.js +1 -1
  117. package/dist/sdk/workflow/clone-workflow.js +1 -1
  118. package/dist/sdk/workflow/index.js +1 -1
  119. package/dist/sdk/workflow/pull-workflow.js +1 -1
  120. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  121. package/dist/sdk/workflow/push-workflow.js +1 -1
  122. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  123. package/dist/sdk/workflow/tdx-config.js +1 -1
  124. package/dist/sdk/workflow/workflow-utils.d.ts +60 -0
  125. package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -1
  126. package/dist/sdk/workflow/workflow-utils.js +1 -1
  127. package/dist/sdk/workflow/workflow-utils.js.map +1 -1
  128. package/dist/utils/async.js +1 -1
  129. package/dist/utils/colors.js +1 -1
  130. package/dist/utils/diff.js +1 -1
  131. package/dist/utils/file-permissions.js +1 -1
  132. package/dist/utils/json-loader.js +1 -1
  133. package/dist/utils/option-validation.js +1 -1
  134. package/dist/utils/port.js +1 -1
  135. package/dist/utils/process.js +1 -1
  136. package/dist/utils/prompt.js +1 -1
  137. package/dist/utils/spinner.js +1 -1
  138. package/dist/utils/sse-parser.js +1 -1
  139. package/dist/utils/string-utils.js +1 -1
  140. package/dist/utils/table-ref-parser.js +1 -1
  141. package/dist/utils/tdx-logger.js +1 -1
  142. package/dist/utils/version-check.js +1 -1
  143. package/package.json +2 -1
@@ -1 +1 @@
1
- function a137_0x4c7a(){const _0x2c8ee1=['85itTdsV','12aUnwRN','boolean','noColor','green','join','192798YpQRXK','null','isTTY','cyan','blue','26YhNbFr','repeat','env','object','40LwXCLS','dim','stdout','map','number','360BOGGWk','length','322911jVHSRK','entries','413iKfhDh','20501569gKCqDX','string','stringify','8438pBNVEc','2173430CiMIRR','20418566RgigvV','yellow','8hzPqEH','328191qmNXtp'];a137_0x4c7a=function(){return _0x2c8ee1;};return a137_0x4c7a();}(function(_0x242614,_0x1973c5){const _0x214df3=a137_0x56df,_0x2a885c=_0x242614();while(!![]){try{const _0x291dde=parseInt(_0x214df3(0x1d5))/0x1*(-parseInt(_0x214df3(0x1d9))/0x2)+parseInt(_0x214df3(0x1de))/0x3*(parseInt(_0x214df3(0x1dd))/0x4)+-parseInt(_0x214df3(0x1df))/0x5*(-parseInt(_0x214df3(0x1e5))/0x6)+parseInt(_0x214df3(0x1da))/0x7*(-parseInt(_0x214df3(0x1ee))/0x8)+-parseInt(_0x214df3(0x1d3))/0x9*(parseInt(_0x214df3(0x1d1))/0xa)+parseInt(_0x214df3(0x1d6))/0xb*(parseInt(_0x214df3(0x1e0))/0xc)+-parseInt(_0x214df3(0x1ea))/0xd*(-parseInt(_0x214df3(0x1db))/0xe);if(_0x291dde===_0x1973c5)break;else _0x2a885c['push'](_0x2a885c['shift']());}catch(_0x3df1f2){_0x2a885c['push'](_0x2a885c['shift']());}}}(a137_0x4c7a,0xea2ff));import{Chalk}from'chalk';export function shouldUseColor(_0x344986={}){const _0x26907c=a137_0x56df;if(_0x344986[_0x26907c(0x1e2)]===!![])return![];if(_0x344986['color']===!![])return!![];if(process[_0x26907c(0x1ec)]['NO_COLOR']!==undefined)return![];return process[_0x26907c(0x1ce)][_0x26907c(0x1e7)]??![];}export function getChalk(_0x1d0f2a={}){if(shouldUseColor(_0x1d0f2a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1012ac,_0x5cbe56={}){return getChalk(_0x5cbe56)['dim'](_0x1012ac);}export function colorHeader(_0xe3f017,_0x10fbae={}){const _0x52ea15=a137_0x56df;return getChalk(_0x10fbae)[_0x52ea15(0x1e8)](_0xe3f017);}export function colorType(_0x3bc353,_0xca0a9e={}){const _0x268a9e=a137_0x56df;return getChalk(_0xca0a9e)[_0x268a9e(0x1ef)](_0x3bc353);}function a137_0x56df(_0x8a2dc5,_0x40f774){_0x8a2dc5=_0x8a2dc5-0x1ce;const _0x4c7a71=a137_0x4c7a();let _0x56df09=_0x4c7a71[_0x8a2dc5];return _0x56df09;}export function colorJSONKey(_0x5212c4,_0x56b536={}){const _0x42abb7=a137_0x56df;return getChalk(_0x56b536)[_0x42abb7(0x1e9)](_0x5212c4);}export function colorJSONString(_0x13dc3e,_0x362982={}){const _0x5c144a=a137_0x56df;return getChalk(_0x362982)[_0x5c144a(0x1e3)](_0x13dc3e);}export function colorJSONNumber(_0x3bd8cd,_0xab6519={}){return getChalk(_0xab6519)['cyan'](_0x3bd8cd);}export function colorJSONBoolean(_0xe441f,_0x254fda={}){const _0x1753c1=a137_0x56df;return getChalk(_0x254fda)[_0x1753c1(0x1dc)](_0xe441f);}export function colorJSONNull(_0xa545a5,_0x4d7d43={}){const _0x5340f7=a137_0x56df;return getChalk(_0x4d7d43)[_0x5340f7(0x1ef)](_0xa545a5);}export function colorizeJSONCompact(_0x214fd7,_0x3170da={}){const _0x52559b=a137_0x56df;if(!shouldUseColor(_0x3170da))return JSON['stringify'](_0x214fd7);if(_0x214fd7===null)return colorJSONNull(_0x52559b(0x1e6),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1e1))return colorJSONBoolean(String(_0x214fd7),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1d0))return colorJSONNumber(String(_0x214fd7),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1d7))return colorJSONString(JSON[_0x52559b(0x1d8)](_0x214fd7),_0x3170da);if(Array['isArray'](_0x214fd7)){if(_0x214fd7[_0x52559b(0x1d2)]===0x0)return'[]';const _0x31e2c5=_0x214fd7[_0x52559b(0x1cf)](_0x51dc70=>colorizeJSONCompact(_0x51dc70,_0x3170da));return'['+_0x31e2c5[_0x52559b(0x1e4)](',')+']';}if(typeof _0x214fd7===_0x52559b(0x1ed)){const _0x2c15d4=Object['entries'](_0x214fd7);if(_0x2c15d4[_0x52559b(0x1d2)]===0x0)return'{}';const _0x2e35a8=_0x2c15d4[_0x52559b(0x1cf)](([_0x18dcb5,_0x37d785])=>{const _0x95be7d=_0x52559b,_0xc4eb9=colorJSONKey(JSON[_0x95be7d(0x1d8)](_0x18dcb5),_0x3170da),_0x1e1ba4=colorizeJSONCompact(_0x37d785,_0x3170da);return _0xc4eb9+':'+_0x1e1ba4;});return'{'+_0x2e35a8[_0x52559b(0x1e4)](',')+'}';}return String(_0x214fd7);}export function colorizeJSON(_0x5761af,_0xf797e6={},_0x59a32c=0x0){const _0x45ca4f=a137_0x56df;if(!shouldUseColor(_0xf797e6))return JSON['stringify'](_0x5761af,null,0x2);const _0x5bbfbd='\x20'[_0x45ca4f(0x1eb)](_0x59a32c),_0x39aa0c=_0x59a32c+0x2;if(_0x5761af===null)return colorJSONNull(_0x45ca4f(0x1e6),_0xf797e6);if(typeof _0x5761af==='boolean')return colorJSONBoolean(String(_0x5761af),_0xf797e6);if(typeof _0x5761af==='number')return colorJSONNumber(String(_0x5761af),_0xf797e6);if(typeof _0x5761af===_0x45ca4f(0x1d7))return colorJSONString(JSON[_0x45ca4f(0x1d8)](_0x5761af),_0xf797e6);if(Array['isArray'](_0x5761af)){if(_0x5761af[_0x45ca4f(0x1d2)]===0x0)return'[]';const _0x322c2c=_0x5761af['map'](_0x4e6315=>{const _0x45dc77=_0x45ca4f,_0x263860=colorizeJSON(_0x4e6315,_0xf797e6,_0x39aa0c);return''+'\x20'[_0x45dc77(0x1eb)](_0x39aa0c)+_0x263860;});return'[\x0a'+_0x322c2c[_0x45ca4f(0x1e4)](',\x0a')+('\x0a'+_0x5bbfbd+']');}if(typeof _0x5761af===_0x45ca4f(0x1ed)){const _0x1f8e4f=Object[_0x45ca4f(0x1d4)](_0x5761af);if(_0x1f8e4f[_0x45ca4f(0x1d2)]===0x0)return'{}';const _0x7dd7db=_0x1f8e4f['map'](([_0x37b827,_0x396105])=>{const _0x1dcb6a=_0x45ca4f,_0x44028f=colorJSONKey(JSON['stringify'](_0x37b827),_0xf797e6),_0x2e63ae=colorizeJSON(_0x396105,_0xf797e6,_0x39aa0c);return''+'\x20'[_0x1dcb6a(0x1eb)](_0x39aa0c)+_0x44028f+':\x20'+_0x2e63ae;});return'{\x0a'+_0x7dd7db[_0x45ca4f(0x1e4)](',\x0a')+('\x0a'+_0x5bbfbd+'}');}return String(_0x5761af);}
1
+ (function(_0x4eab2a,_0x33a2ca){const _0x3cdff7=a137_0x4ee0,_0x52ebe7=_0x4eab2a();while(!![]){try{const _0x244ba7=-parseInt(_0x3cdff7(0x116))/0x1+parseInt(_0x3cdff7(0x119))/0x2*(-parseInt(_0x3cdff7(0x118))/0x3)+-parseInt(_0x3cdff7(0x10a))/0x4*(-parseInt(_0x3cdff7(0x124))/0x5)+-parseInt(_0x3cdff7(0x120))/0x6+parseInt(_0x3cdff7(0x117))/0x7+parseInt(_0x3cdff7(0x10c))/0x8+parseInt(_0x3cdff7(0x106))/0x9*(parseInt(_0x3cdff7(0x113))/0xa);if(_0x244ba7===_0x33a2ca)break;else _0x52ebe7['push'](_0x52ebe7['shift']());}catch(_0xc31c17){_0x52ebe7['push'](_0x52ebe7['shift']());}}}(a137_0x3c8e,0x912b8));import{Chalk}from'chalk';export function shouldUseColor(_0x15f314={}){const _0x301ce3=a137_0x4ee0;if(_0x15f314[_0x301ce3(0x108)]===!![])return![];if(_0x15f314[_0x301ce3(0x111)]===!![])return!![];if(process['env'][_0x301ce3(0x112)]!==undefined)return![];return process[_0x301ce3(0x121)]['isTTY']??![];}export function getChalk(_0x216ed7={}){if(shouldUseColor(_0x216ed7))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5b0363,_0x46691c={}){const _0x2f3e87=a137_0x4ee0;return getChalk(_0x46691c)[_0x2f3e87(0x109)](_0x5b0363);}export function colorHeader(_0x1fa020,_0x15930e={}){const _0x93bbc5=a137_0x4ee0;return getChalk(_0x15930e)[_0x93bbc5(0x10d)](_0x1fa020);}export function colorType(_0x3e42e1,_0x1b8f5d={}){return getChalk(_0x1b8f5d)['dim'](_0x3e42e1);}export function colorJSONKey(_0x487bc8,_0x3f10d7={}){const _0x5964fb=a137_0x4ee0;return getChalk(_0x3f10d7)[_0x5964fb(0x11a)](_0x487bc8);}function a137_0x3c8e(){const _0x442338=['boolean','green','2191794RHMTmI','stdout','entries','number','5874315JgRuNF','684630QSWDEY','yellow','noColor','dim','4lTeezH','isArray','927272WFMlyL','cyan','stringify','join','string','color','NO_COLOR','160lQtWdC','length','object','567084ovXQHt','1124977rPfSNe','856203ejiFxk','8JGQndc','blue','repeat','null','map'];a137_0x3c8e=function(){return _0x442338;};return a137_0x3c8e();}export function colorJSONString(_0x1ea5a9,_0x242881={}){const _0x2fc580=a137_0x4ee0;return getChalk(_0x242881)[_0x2fc580(0x11f)](_0x1ea5a9);}export function colorJSONNumber(_0x3677de,_0x5dd797={}){return getChalk(_0x5dd797)['cyan'](_0x3677de);}export function colorJSONBoolean(_0x266038,_0x2bb435={}){const _0x42faf9=a137_0x4ee0;return getChalk(_0x2bb435)[_0x42faf9(0x107)](_0x266038);}export function colorJSONNull(_0x1faaaf,_0x32bd5d={}){return getChalk(_0x32bd5d)['dim'](_0x1faaaf);}function a137_0x4ee0(_0x2d53d3,_0x41363f){_0x2d53d3=_0x2d53d3-0x106;const _0x3c8ece=a137_0x3c8e();let _0x4ee0af=_0x3c8ece[_0x2d53d3];return _0x4ee0af;}export function colorizeJSONCompact(_0x4e9491,_0x3aaadb={}){const _0x5bdae5=a137_0x4ee0;if(!shouldUseColor(_0x3aaadb))return JSON[_0x5bdae5(0x10e)](_0x4e9491);if(_0x4e9491===null)return colorJSONNull(_0x5bdae5(0x11c),_0x3aaadb);if(typeof _0x4e9491===_0x5bdae5(0x11e))return colorJSONBoolean(String(_0x4e9491),_0x3aaadb);if(typeof _0x4e9491===_0x5bdae5(0x123))return colorJSONNumber(String(_0x4e9491),_0x3aaadb);if(typeof _0x4e9491==='string')return colorJSONString(JSON[_0x5bdae5(0x10e)](_0x4e9491),_0x3aaadb);if(Array[_0x5bdae5(0x10b)](_0x4e9491)){if(_0x4e9491[_0x5bdae5(0x114)]===0x0)return'[]';const _0x90e1cf=_0x4e9491[_0x5bdae5(0x11d)](_0x38be91=>colorizeJSONCompact(_0x38be91,_0x3aaadb));return'['+_0x90e1cf['join'](',')+']';}if(typeof _0x4e9491===_0x5bdae5(0x115)){const _0x2c4e12=Object[_0x5bdae5(0x122)](_0x4e9491);if(_0x2c4e12[_0x5bdae5(0x114)]===0x0)return'{}';const _0x44571b=_0x2c4e12[_0x5bdae5(0x11d)](([_0x2fcead,_0x524f99])=>{const _0x9b134b=colorJSONKey(JSON['stringify'](_0x2fcead),_0x3aaadb),_0x15bd12=colorizeJSONCompact(_0x524f99,_0x3aaadb);return _0x9b134b+':'+_0x15bd12;});return'{'+_0x44571b[_0x5bdae5(0x10f)](',')+'}';}return String(_0x4e9491);}export function colorizeJSON(_0x1c335e,_0x4f3bca={},_0x58465e=0x0){const _0x24e1c4=a137_0x4ee0;if(!shouldUseColor(_0x4f3bca))return JSON[_0x24e1c4(0x10e)](_0x1c335e,null,0x2);const _0x55a7d5='\x20'[_0x24e1c4(0x11b)](_0x58465e),_0x4b336d=_0x58465e+0x2;if(_0x1c335e===null)return colorJSONNull(_0x24e1c4(0x11c),_0x4f3bca);if(typeof _0x1c335e==='boolean')return colorJSONBoolean(String(_0x1c335e),_0x4f3bca);if(typeof _0x1c335e==='number')return colorJSONNumber(String(_0x1c335e),_0x4f3bca);if(typeof _0x1c335e===_0x24e1c4(0x110))return colorJSONString(JSON[_0x24e1c4(0x10e)](_0x1c335e),_0x4f3bca);if(Array[_0x24e1c4(0x10b)](_0x1c335e)){if(_0x1c335e[_0x24e1c4(0x114)]===0x0)return'[]';const _0x5e7fd1=_0x1c335e[_0x24e1c4(0x11d)](_0xfd413=>{const _0x4e9f41=_0x24e1c4,_0x7b337f=colorizeJSON(_0xfd413,_0x4f3bca,_0x4b336d);return''+'\x20'[_0x4e9f41(0x11b)](_0x4b336d)+_0x7b337f;});return'[\x0a'+_0x5e7fd1[_0x24e1c4(0x10f)](',\x0a')+('\x0a'+_0x55a7d5+']');}if(typeof _0x1c335e===_0x24e1c4(0x115)){const _0x5325d5=Object[_0x24e1c4(0x122)](_0x1c335e);if(_0x5325d5[_0x24e1c4(0x114)]===0x0)return'{}';const _0x3d252b=_0x5325d5[_0x24e1c4(0x11d)](([_0xa06d39,_0x2de3d5])=>{const _0x4b2602=_0x24e1c4,_0x259375=colorJSONKey(JSON[_0x4b2602(0x10e)](_0xa06d39),_0x4f3bca),_0x5ea4c0=colorizeJSON(_0x2de3d5,_0x4f3bca,_0x4b336d);return''+'\x20'[_0x4b2602(0x11b)](_0x4b336d)+_0x259375+':\x20'+_0x5ea4c0;});return'{\x0a'+_0x3d252b[_0x24e1c4(0x10f)](',\x0a')+('\x0a'+_0x55a7d5+'}');}return String(_0x1c335e);}
@@ -1 +1 @@
1
- (function(_0x1bbe2f,_0x5ed1dc){const _0x487e26=a138_0x1b06,_0x47abf1=_0x1bbe2f();while(!![]){try{const _0xd3fb33=-parseInt(_0x487e26(0xf1))/0x1*(-parseInt(_0x487e26(0x106))/0x2)+parseInt(_0x487e26(0xed))/0x3+parseInt(_0x487e26(0xe9))/0x4*(-parseInt(_0x487e26(0xfa))/0x5)+-parseInt(_0x487e26(0xf7))/0x6+parseInt(_0x487e26(0x102))/0x7*(parseInt(_0x487e26(0xf3))/0x8)+-parseInt(_0x487e26(0xef))/0x9+parseInt(_0x487e26(0x101))/0xa;if(_0xd3fb33===_0x5ed1dc)break;else _0x47abf1['push'](_0x47abf1['shift']());}catch(_0x4271dd){_0x47abf1['push'](_0x47abf1['shift']());}}}(a138_0xf2bc,0x57359));import a138_0x151845 from'chalk';export function generateDiff(_0x4b5adb,_0x5eb285){const _0x3fe7d4=a138_0x1b06,_0x8b7f5e=_0x4b5adb[_0x3fe7d4(0xf2)]('\x0a'),_0x1f540e=_0x5eb285[_0x3fe7d4(0xf2)]('\x0a'),_0xa64525=[],_0x43d586=computeLCS(_0x8b7f5e,_0x1f540e);let _0x414755=0x0,_0x181efb=0x0,_0x539cae=0x0;while(_0x414755<_0x8b7f5e['length']||_0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]){if(_0x539cae<_0x43d586['length']&&_0x414755<_0x8b7f5e[_0x3fe7d4(0xeb)]&&_0x8b7f5e[_0x414755]===_0x43d586[_0x539cae])_0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]&&_0x1f540e[_0x181efb]===_0x43d586[_0x539cae]?(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf9),'content':_0x8b7f5e[_0x414755]}),_0x414755++,_0x181efb++,_0x539cae++):(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xea),'content':_0x1f540e[_0x181efb]}),_0x181efb++);else{if(_0x539cae<_0x43d586[_0x3fe7d4(0xeb)]&&_0x181efb<_0x1f540e['length']&&_0x1f540e[_0x181efb]===_0x43d586[_0x539cae])_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf5),'content':_0x8b7f5e[_0x414755]}),_0x414755++;else{if(_0x414755<_0x8b7f5e[_0x3fe7d4(0xeb)]&&(_0x539cae>=_0x43d586[_0x3fe7d4(0xeb)]||_0x8b7f5e[_0x414755]!==_0x43d586[_0x539cae]))_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf5),'content':_0x8b7f5e[_0x414755]}),_0x414755++;else _0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]&&(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xea),'content':_0x1f540e[_0x181efb]}),_0x181efb++);}}}return _0xa64525;}function a138_0x1b06(_0x355f05,_0x52a04a){_0x355f05=_0x355f05-0xe7;const _0xf2bc20=a138_0xf2bc();let _0x1b06ee=_0xf2bc20[_0x355f05];return _0x1b06ee;}function computeLCS(_0x5ebd88,_0x191842){const _0x711fc8=a138_0x1b06,_0x808f70=_0x5ebd88[_0x711fc8(0xeb)],_0x229475=_0x191842['length'],_0xcae2dc=Array(_0x808f70+0x1)[_0x711fc8(0xe7)](null)['map'](()=>Array(_0x229475+0x1)[_0x711fc8(0xe7)](0x0));for(let _0x379855=0x1;_0x379855<=_0x808f70;_0x379855++){for(let _0xa19b9b=0x1;_0xa19b9b<=_0x229475;_0xa19b9b++){_0x5ebd88[_0x379855-0x1]===_0x191842[_0xa19b9b-0x1]?_0xcae2dc[_0x379855][_0xa19b9b]=_0xcae2dc[_0x379855-0x1][_0xa19b9b-0x1]+0x1:_0xcae2dc[_0x379855][_0xa19b9b]=Math[_0x711fc8(0xf0)](_0xcae2dc[_0x379855-0x1][_0xa19b9b],_0xcae2dc[_0x379855][_0xa19b9b-0x1]);}}const _0x148d47=[];let _0x21a149=_0x808f70,_0x489c57=_0x229475;while(_0x21a149>0x0&&_0x489c57>0x0){if(_0x5ebd88[_0x21a149-0x1]===_0x191842[_0x489c57-0x1])_0x148d47[_0x711fc8(0xec)](_0x5ebd88[_0x21a149-0x1]),_0x21a149--,_0x489c57--;else _0xcae2dc[_0x21a149-0x1][_0x489c57]>_0xcae2dc[_0x21a149][_0x489c57-0x1]?_0x21a149--:_0x489c57--;}return _0x148d47;}export function formatDiffWithColors(_0x1cf1f0,_0x2afbfe=0x3){const _0x494dc7=a138_0x1b06,_0x4950de=new Set();_0x1cf1f0['forEach']((_0x2884fc,_0x3c11f3)=>{const _0x3a10b0=a138_0x1b06;_0x2884fc[_0x3a10b0(0x103)]!=='unchanged'&&_0x4950de[_0x3a10b0(0xf8)](_0x3c11f3);});if(_0x4950de[_0x494dc7(0xfc)]===0x0)return'';const _0x8c1168=new Set();for(const _0x5d0191 of _0x4950de){for(let _0x4ef473=Math[_0x494dc7(0xf0)](0x0,_0x5d0191-_0x2afbfe);_0x4ef473<=Math[_0x494dc7(0x107)](_0x1cf1f0[_0x494dc7(0xeb)]-0x1,_0x5d0191+_0x2afbfe);_0x4ef473++){_0x8c1168[_0x494dc7(0xf8)](_0x4ef473);}}const _0x4f3e91=[];let _0x1657b1=-0x1;const _0x648571=_0x1cf1f0['length'],_0x16da78=Math[_0x494dc7(0xf0)](0x3,String(_0x648571)[_0x494dc7(0xeb)]),_0x13a784=[];let _0x12bece=0x0,_0x54fcf2=0x0;for(const _0x241b25 of _0x1cf1f0){if(_0x241b25[_0x494dc7(0x103)]===_0x494dc7(0xf5))_0x12bece++,_0x13a784[_0x494dc7(0x108)]({'old':_0x12bece,'new':0x0});else _0x241b25[_0x494dc7(0x103)]===_0x494dc7(0xea)?(_0x54fcf2++,_0x13a784[_0x494dc7(0x108)]({'old':0x0,'new':_0x54fcf2})):(_0x12bece++,_0x54fcf2++,_0x13a784[_0x494dc7(0x108)]({'old':_0x12bece,'new':_0x54fcf2}));}for(let _0x484bdd=0x0;_0x484bdd<_0x1cf1f0[_0x494dc7(0xeb)];_0x484bdd++){if(!_0x8c1168[_0x494dc7(0xff)](_0x484bdd))continue;_0x1657b1!==-0x1&&_0x484bdd>_0x1657b1+0x1&&_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0x104)]('\x20\x20...'));_0x1657b1=_0x484bdd;const _0x407864=_0x1cf1f0[_0x484bdd],_0x3a3c30=_0x13a784[_0x484bdd],_0x52f7e6=_0x3a3c30[_0x494dc7(0xe8)]>0x0?String(_0x3a3c30['old'])[_0x494dc7(0xf6)](_0x16da78):'\x20'[_0x494dc7(0xf4)](_0x16da78),_0x5cda02=_0x3a3c30['new']>0x0?String(_0x3a3c30['new'])['padStart'](_0x16da78):'\x20'[_0x494dc7(0xf4)](_0x16da78);switch(_0x407864[_0x494dc7(0x103)]){case'removed':_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0xee)](_0x52f7e6+'\x20'+_0x5cda02+'\x20-\x20'+_0x407864[_0x494dc7(0x100)]));break;case _0x494dc7(0xea):_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0x105)](_0x52f7e6+'\x20'+_0x5cda02+_0x494dc7(0xfd)+_0x407864['content']));break;default:_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0xfb)](_0x52f7e6+'\x20'+_0x5cda02+'\x20\x20\x20'+_0x407864[_0x494dc7(0x100)]));break;}}return _0x4f3e91[_0x494dc7(0xfe)]('\x0a');}function a138_0xf2bc(){const _0x2e088d=['push','fill','old','556JMFxJC','added','length','unshift','343659wEQjUk','red','499788CQxDSz','max','5zKbMca','split','8oBZnzS','repeat','removed','padStart','2368818EmoMGT','add','unchanged','12065dopDeW','dim','size','\x20+\x20','join','has','content','1846440MaWoJe','3191993mUSxBn','type','cyan','green','155102ZdIyZk','min'];a138_0xf2bc=function(){return _0x2e088d;};return a138_0xf2bc();}export function hasChanges(_0x40102b){const _0x51ed95=a138_0x1b06;return _0x40102b['some'](_0x48bc0c=>_0x48bc0c[_0x51ed95(0x103)]!==_0x51ed95(0xf9));}
1
+ (function(_0x2b4fc7,_0x5b6791){const _0x47c58d=a138_0x4cbe,_0xb98ac4=_0x2b4fc7();while(!![]){try{const _0x40505e=-parseInt(_0x47c58d(0xfa))/0x1+-parseInt(_0x47c58d(0x10f))/0x2*(parseInt(_0x47c58d(0xfe))/0x3)+-parseInt(_0x47c58d(0x10e))/0x4+parseInt(_0x47c58d(0x112))/0x5*(-parseInt(_0x47c58d(0xf8))/0x6)+parseInt(_0x47c58d(0xfb))/0x7+parseInt(_0x47c58d(0x113))/0x8+parseInt(_0x47c58d(0x106))/0x9;if(_0x40505e===_0x5b6791)break;else _0xb98ac4['push'](_0xb98ac4['shift']());}catch(_0x27e081){_0xb98ac4['push'](_0xb98ac4['shift']());}}}(a138_0x8810,0x5deff));function a138_0x8810(){const _0x276bca=['split','added','type','cyan','1972056eJWVrM','11774NJsDRt','\x20+\x20','removed','15xudMZj','6062384cNsJRf','unchanged','old','min','repeat','push','9984kxNtuy','join','763103bhxSuY','2790823DwUkth','fill','has','141gmRWHm','size','length','max','forEach','unshift','dim','some','6894702pduvqf','add','new','content'];a138_0x8810=function(){return _0x276bca;};return a138_0x8810();}import a138_0x57f303 from'chalk';export function generateDiff(_0x1693dc,_0x228dbb){const _0x71ba4c=a138_0x4cbe,_0x4d53e3=_0x1693dc[_0x71ba4c(0x10a)]('\x0a'),_0x15e717=_0x228dbb['split']('\x0a'),_0x17d0af=[],_0x31c612=computeLCS(_0x4d53e3,_0x15e717);let _0x287c65=0x0,_0x255b1f=0x0,_0x374bb5=0x0;while(_0x287c65<_0x4d53e3['length']||_0x255b1f<_0x15e717[_0x71ba4c(0x100)]){if(_0x374bb5<_0x31c612['length']&&_0x287c65<_0x4d53e3[_0x71ba4c(0x100)]&&_0x4d53e3[_0x287c65]===_0x31c612[_0x374bb5])_0x255b1f<_0x15e717[_0x71ba4c(0x100)]&&_0x15e717[_0x255b1f]===_0x31c612[_0x374bb5]?(_0x17d0af[_0x71ba4c(0x118)]({'type':_0x71ba4c(0x114),'content':_0x4d53e3[_0x287c65]}),_0x287c65++,_0x255b1f++,_0x374bb5++):(_0x17d0af[_0x71ba4c(0x118)]({'type':_0x71ba4c(0x10b),'content':_0x15e717[_0x255b1f]}),_0x255b1f++);else{if(_0x374bb5<_0x31c612[_0x71ba4c(0x100)]&&_0x255b1f<_0x15e717[_0x71ba4c(0x100)]&&_0x15e717[_0x255b1f]===_0x31c612[_0x374bb5])_0x17d0af[_0x71ba4c(0x118)]({'type':_0x71ba4c(0x111),'content':_0x4d53e3[_0x287c65]}),_0x287c65++;else{if(_0x287c65<_0x4d53e3[_0x71ba4c(0x100)]&&(_0x374bb5>=_0x31c612[_0x71ba4c(0x100)]||_0x4d53e3[_0x287c65]!==_0x31c612[_0x374bb5]))_0x17d0af[_0x71ba4c(0x118)]({'type':_0x71ba4c(0x111),'content':_0x4d53e3[_0x287c65]}),_0x287c65++;else _0x255b1f<_0x15e717[_0x71ba4c(0x100)]&&(_0x17d0af[_0x71ba4c(0x118)]({'type':_0x71ba4c(0x10b),'content':_0x15e717[_0x255b1f]}),_0x255b1f++);}}}return _0x17d0af;}function computeLCS(_0x261ceb,_0x727e9a){const _0x32d45a=a138_0x4cbe,_0x2c644c=_0x261ceb[_0x32d45a(0x100)],_0x91453=_0x727e9a[_0x32d45a(0x100)],_0x347b42=Array(_0x2c644c+0x1)[_0x32d45a(0xfc)](null)['map'](()=>Array(_0x91453+0x1)[_0x32d45a(0xfc)](0x0));for(let _0x52cba5=0x1;_0x52cba5<=_0x2c644c;_0x52cba5++){for(let _0x53ddab=0x1;_0x53ddab<=_0x91453;_0x53ddab++){_0x261ceb[_0x52cba5-0x1]===_0x727e9a[_0x53ddab-0x1]?_0x347b42[_0x52cba5][_0x53ddab]=_0x347b42[_0x52cba5-0x1][_0x53ddab-0x1]+0x1:_0x347b42[_0x52cba5][_0x53ddab]=Math[_0x32d45a(0x101)](_0x347b42[_0x52cba5-0x1][_0x53ddab],_0x347b42[_0x52cba5][_0x53ddab-0x1]);}}const _0x1412ab=[];let _0x3512f5=_0x2c644c,_0x2b640d=_0x91453;while(_0x3512f5>0x0&&_0x2b640d>0x0){if(_0x261ceb[_0x3512f5-0x1]===_0x727e9a[_0x2b640d-0x1])_0x1412ab[_0x32d45a(0x103)](_0x261ceb[_0x3512f5-0x1]),_0x3512f5--,_0x2b640d--;else _0x347b42[_0x3512f5-0x1][_0x2b640d]>_0x347b42[_0x3512f5][_0x2b640d-0x1]?_0x3512f5--:_0x2b640d--;}return _0x1412ab;}function a138_0x4cbe(_0x244df2,_0x404b63){_0x244df2=_0x244df2-0xf8;const _0x881004=a138_0x8810();let _0x4cbe02=_0x881004[_0x244df2];return _0x4cbe02;}export function formatDiffWithColors(_0x1261bb,_0x5b4f2b=0x3){const _0x138d57=a138_0x4cbe,_0x43e430=new Set();_0x1261bb[_0x138d57(0x102)]((_0x309faf,_0x3a1f07)=>{const _0x9b55bc=_0x138d57;_0x309faf[_0x9b55bc(0x10c)]!==_0x9b55bc(0x114)&&_0x43e430[_0x9b55bc(0x107)](_0x3a1f07);});if(_0x43e430[_0x138d57(0xff)]===0x0)return'';const _0x508be9=new Set();for(const _0x3ff979 of _0x43e430){for(let _0x197628=Math['max'](0x0,_0x3ff979-_0x5b4f2b);_0x197628<=Math[_0x138d57(0x116)](_0x1261bb[_0x138d57(0x100)]-0x1,_0x3ff979+_0x5b4f2b);_0x197628++){_0x508be9[_0x138d57(0x107)](_0x197628);}}const _0x4460f3=[];let _0x587c89=-0x1;const _0x4bebc0=_0x1261bb[_0x138d57(0x100)],_0x3ef837=Math[_0x138d57(0x101)](0x3,String(_0x4bebc0)[_0x138d57(0x100)]),_0x1bb023=[];let _0x1e8b7d=0x0,_0x30b292=0x0;for(const _0x403a98 of _0x1261bb){if(_0x403a98[_0x138d57(0x10c)]===_0x138d57(0x111))_0x1e8b7d++,_0x1bb023[_0x138d57(0x118)]({'old':_0x1e8b7d,'new':0x0});else _0x403a98[_0x138d57(0x10c)]===_0x138d57(0x10b)?(_0x30b292++,_0x1bb023[_0x138d57(0x118)]({'old':0x0,'new':_0x30b292})):(_0x1e8b7d++,_0x30b292++,_0x1bb023[_0x138d57(0x118)]({'old':_0x1e8b7d,'new':_0x30b292}));}for(let _0x20e877=0x0;_0x20e877<_0x1261bb['length'];_0x20e877++){if(!_0x508be9[_0x138d57(0xfd)](_0x20e877))continue;_0x587c89!==-0x1&&_0x20e877>_0x587c89+0x1&&_0x4460f3[_0x138d57(0x118)](a138_0x57f303[_0x138d57(0x10d)]('\x20\x20...'));_0x587c89=_0x20e877;const _0x3c8dd3=_0x1261bb[_0x20e877],_0x243d82=_0x1bb023[_0x20e877],_0x2d65f6=_0x243d82['old']>0x0?String(_0x243d82[_0x138d57(0x115)])['padStart'](_0x3ef837):'\x20'[_0x138d57(0x117)](_0x3ef837),_0xe85236=_0x243d82[_0x138d57(0x108)]>0x0?String(_0x243d82[_0x138d57(0x108)])['padStart'](_0x3ef837):'\x20'[_0x138d57(0x117)](_0x3ef837);switch(_0x3c8dd3[_0x138d57(0x10c)]){case _0x138d57(0x111):_0x4460f3['push'](a138_0x57f303['red'](_0x2d65f6+'\x20'+_0xe85236+'\x20-\x20'+_0x3c8dd3[_0x138d57(0x109)]));break;case _0x138d57(0x10b):_0x4460f3[_0x138d57(0x118)](a138_0x57f303['green'](_0x2d65f6+'\x20'+_0xe85236+_0x138d57(0x110)+_0x3c8dd3[_0x138d57(0x109)]));break;default:_0x4460f3[_0x138d57(0x118)](a138_0x57f303[_0x138d57(0x104)](_0x2d65f6+'\x20'+_0xe85236+'\x20\x20\x20'+_0x3c8dd3['content']));break;}}return _0x4460f3[_0x138d57(0xf9)]('\x0a');}export function hasChanges(_0x2bced5){const _0x4177ee=a138_0x4cbe;return _0x2bced5[_0x4177ee(0x105)](_0x564490=>_0x564490[_0x4177ee(0x10c)]!==_0x4177ee(0x114));}
@@ -1 +1 @@
1
- (function(_0x52db05,_0x235c4e){const _0x5aa1ae=a139_0x268b,_0x38856b=_0x52db05();while(!![]){try{const _0x14a8e0=parseInt(_0x5aa1ae(0xda))/0x1*(parseInt(_0x5aa1ae(0xdc))/0x2)+parseInt(_0x5aa1ae(0xcb))/0x3+-parseInt(_0x5aa1ae(0xd5))/0x4+parseInt(_0x5aa1ae(0xce))/0x5*(parseInt(_0x5aa1ae(0xd4))/0x6)+-parseInt(_0x5aa1ae(0xca))/0x7*(-parseInt(_0x5aa1ae(0xd1))/0x8)+-parseInt(_0x5aa1ae(0xd7))/0x9+-parseInt(_0x5aa1ae(0xd3))/0xa*(-parseInt(_0x5aa1ae(0xcf))/0xb);if(_0x14a8e0===_0x235c4e)break;else _0x38856b['push'](_0x38856b['shift']());}catch(_0x1ac6b1){_0x38856b['push'](_0x38856b['shift']());}}}(a139_0x14dd,0xe7a91));import*as a139_0x1366da from'node:fs';import*as a139_0x1de61b from'node:path';export function setSecureFilePermissions(_0x2e4dea){const _0x5f0935=a139_0x268b;try{a139_0x1366da[_0x5f0935(0xcc)](_0x2e4dea,0x180);}catch{console[_0x5f0935(0xcd)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2e4dea);}}function a139_0x14dd(){const _0x160a07=['122SZBUpG','toString','872529NenLrm','5231331sQyJEl','chmodSync','warn','501755vYhHum','77ndKGuQ','existsSync','32SFuvmy','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','116710casovz','78oksVcc','4182140RivTAp','\x20has\x20insecure\x20permissions\x20(','15556635VTPhgW','mkdirSync','dirname','1546rySgvI',').\x20'];a139_0x14dd=function(){return _0x160a07;};return a139_0x14dd();}function a139_0x268b(_0x46c660,_0x48862a){_0x46c660=_0x46c660-0xca;const _0x14ddfc=a139_0x14dd();let _0x268b48=_0x14ddfc[_0x46c660];return _0x268b48;}export function setSecureDirectoryPermissions(_0xf59e46){const _0x13407a=a139_0x268b;try{a139_0x1366da[_0x13407a(0xcc)](_0xf59e46,0x1c0);}catch{console['warn'](_0x13407a(0xd2)+_0xf59e46);}}export function createSecureDirectory(_0x3add28){const _0x3bb0bc=a139_0x268b;!a139_0x1366da[_0x3bb0bc(0xd0)](_0x3add28)&&(a139_0x1366da[_0x3bb0bc(0xd8)](_0x3add28,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3add28));}export function validateSecureFilePermissions(_0x4a414f){const _0x5373e1=a139_0x268b;try{const _0xf67058=a139_0x1366da['statSync'](_0x4a414f),_0x3d42f7=_0xf67058['mode']&0x1ff,_0x2fe85b=(_0x3d42f7&0x3f)!==0x0;if(_0x2fe85b)return console['warn']('Warning:\x20'+_0x4a414f+_0x5373e1(0xd6)+_0x3d42f7[_0x5373e1(0xdd)](0x8)+_0x5373e1(0xdb)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1349e8,_0x3e1d5d){const _0xd6ebf8=a139_0x268b,_0x5a914f=a139_0x1de61b[_0xd6ebf8(0xd9)](_0x1349e8);createSecureDirectory(_0x5a914f),a139_0x1366da['writeFileSync'](_0x1349e8,_0x3e1d5d,{'mode':0x180}),setSecureFilePermissions(_0x1349e8);}
1
+ (function(_0x2ed6a1,_0x12d6c1){const _0x1cb55a=a139_0x4388,_0x5057dc=_0x2ed6a1();while(!![]){try{const _0x129e3a=parseInt(_0x1cb55a(0xa8))/0x1*(-parseInt(_0x1cb55a(0xb6))/0x2)+parseInt(_0x1cb55a(0xb0))/0x3*(parseInt(_0x1cb55a(0xa6))/0x4)+-parseInt(_0x1cb55a(0xb1))/0x5*(-parseInt(_0x1cb55a(0xb3))/0x6)+parseInt(_0x1cb55a(0xaf))/0x7+parseInt(_0x1cb55a(0xb2))/0x8+parseInt(_0x1cb55a(0xb7))/0x9+-parseInt(_0x1cb55a(0xa7))/0xa;if(_0x129e3a===_0x12d6c1)break;else _0x5057dc['push'](_0x5057dc['shift']());}catch(_0x1b688e){_0x5057dc['push'](_0x5057dc['shift']());}}}(a139_0x212c,0x44488));function a139_0x4388(_0x21975d,_0x1645c1){_0x21975d=_0x21975d-0xa4;const _0x212c06=a139_0x212c();let _0x438834=_0x212c06[_0x21975d];return _0x438834;}import*as a139_0xccb520 from'node:fs';import*as a139_0x27ede2 from'node:path';export function setSecureFilePermissions(_0x393195){const _0x4f531e=a139_0x4388;try{a139_0xccb520['chmodSync'](_0x393195,0x180);}catch{console[_0x4f531e(0xb9)](_0x4f531e(0xa4)+_0x393195);}}export function setSecureDirectoryPermissions(_0x3aa4c6){const _0x5a9922=a139_0x4388;try{a139_0xccb520[_0x5a9922(0xad)](_0x3aa4c6,0x1c0);}catch{console[_0x5a9922(0xb9)](_0x5a9922(0xa4)+_0x3aa4c6);}}export function createSecureDirectory(_0x532953){const _0x5a5e28=a139_0x4388;!a139_0xccb520[_0x5a5e28(0xab)](_0x532953)&&(a139_0xccb520[_0x5a5e28(0xac)](_0x532953,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x532953));}export function validateSecureFilePermissions(_0x56eb27){const _0x4e78bf=a139_0x4388;try{const _0x2f8f9a=a139_0xccb520[_0x4e78bf(0xb8)](_0x56eb27),_0x5d88b2=_0x2f8f9a[_0x4e78bf(0xb5)]&0x1ff,_0x357811=(_0x5d88b2&0x3f)!==0x0;if(_0x357811)return console[_0x4e78bf(0xb9)](_0x4e78bf(0xae)+_0x56eb27+_0x4e78bf(0xa5)+_0x5d88b2['toString'](0x8)+_0x4e78bf(0xb4)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a139_0x212c(){const _0x206432=['warn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','\x20has\x20insecure\x20permissions\x20(','64068CxrPXP','14991850KjIPLQ','31zDYwWR','writeFileSync','dirname','existsSync','mkdirSync','chmodSync','Warning:\x20','1047725HhuCyK','81HzEMKZ','5WJKise','1777848iUEMSJ','3240858RgWlAI',').\x20','mode','7362biGwPP','4936284tnnUPM','statSync'];a139_0x212c=function(){return _0x206432;};return a139_0x212c();}export function writeSecureFile(_0x3af9c0,_0x5ea66c){const _0x38fce0=a139_0x4388,_0x5cb31c=a139_0x27ede2[_0x38fce0(0xaa)](_0x3af9c0);createSecureDirectory(_0x5cb31c),a139_0xccb520[_0x38fce0(0xa9)](_0x3af9c0,_0x5ea66c,{'mode':0x180}),setSecureFilePermissions(_0x3af9c0);}
@@ -1 +1 @@
1
- (function(_0x17ee1b,_0x271787){const _0x1b734e=a140_0x533b,_0x2a079a=_0x17ee1b();while(!![]){try{const _0x50d1b6=parseInt(_0x1b734e(0xe1))/0x1*(parseInt(_0x1b734e(0xdc))/0x2)+parseInt(_0x1b734e(0xdd))/0x3+-parseInt(_0x1b734e(0xcf))/0x4*(-parseInt(_0x1b734e(0xd5))/0x5)+parseInt(_0x1b734e(0xde))/0x6*(parseInt(_0x1b734e(0xd7))/0x7)+-parseInt(_0x1b734e(0xd6))/0x8*(-parseInt(_0x1b734e(0xe4))/0x9)+parseInt(_0x1b734e(0xe3))/0xa*(parseInt(_0x1b734e(0xda))/0xb)+-parseInt(_0x1b734e(0xd2))/0xc;if(_0x50d1b6===_0x271787)break;else _0x2a079a['push'](_0x2a079a['shift']());}catch(_0x578a7f){_0x2a079a['push'](_0x2a079a['shift']());}}}(a140_0x5c0c,0xc1465));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1cfcb7,_0x4fef86){const _0x389aa2=a140_0x533b;try{if(_0x4fef86){const _0x14f146=await readFile(_0x1cfcb7,_0x389aa2(0xdf));try{return JSON[_0x389aa2(0xd3)](_0x14f146);}catch(_0x2256de){throw new SDKError(ErrorCode[_0x389aa2(0xce)],_0x389aa2(0xe5)+_0x1cfcb7+_0x389aa2(0xe0)+(_0x2256de instanceof Error?_0x2256de[_0x389aa2(0xd8)]:String(_0x2256de)));}}else try{return JSON[_0x389aa2(0xd3)](_0x1cfcb7);}catch(_0x2ab3eb){throw new SDKError(ErrorCode[_0x389aa2(0xce)],'Invalid\x20JSON\x20string:\x20'+(_0x2ab3eb instanceof Error?_0x2ab3eb[_0x389aa2(0xd8)]:String(_0x2ab3eb)));}}catch(_0x200be4){if(_0x200be4 instanceof SDKError)throw _0x200be4;if(_0x200be4 instanceof Error&&'code'in _0x200be4){const _0x13cffd=_0x200be4;if(_0x13cffd[_0x389aa2(0xe6)]===_0x389aa2(0xd4))throw new SDKError(ErrorCode[_0x389aa2(0xd9)],'File\x20not\x20found:\x20'+_0x1cfcb7);else{if(_0x13cffd['code']===_0x389aa2(0xd1))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x389aa2(0xd0)+_0x1cfcb7);}}throw new SDKError(ErrorCode[_0x389aa2(0xe7)],_0x389aa2(0xdb)+(_0x200be4 instanceof Error?_0x200be4[_0x389aa2(0xd8)]:String(_0x200be4)));}}function a140_0x533b(_0xba7d0a,_0x32a5ac){_0xba7d0a=_0xba7d0a-0xce;const _0x5c0c90=a140_0x5c0c();let _0x533b51=_0x5c0c90[_0xba7d0a];return _0x533b51;}function a140_0x5c0c(){const _0x872c7f=['NOT_FOUND','363143wkYjWg','Failed\x20to\x20load\x20JSON:\x20','70eJWVpa','358533YeFaea','1506qVQKKG','utf-8','\x27:\x20','3922XbxtJm','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','310gjpgzo','9bfdzqm','Invalid\x20JSON\x20in\x20file\x20\x27','code','INTERNAL','INVALID_ARGUMENT','62068MOKZHS','Permission\x20denied\x20reading\x20file:\x20','EACCES','25487400KnUqwV','parse','ENOENT','305mhcXkE','537240RNWYOF','17339dODDGd','message'];a140_0x5c0c=function(){return _0x872c7f;};return a140_0x5c0c();}export async function loadJSONFromOptions(_0x37ebce,_0x5a25f3){const _0x59edf6=a140_0x533b;if(_0x37ebce&&_0x5a25f3)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x59edf6(0xe2));if(_0x37ebce)return await loadJSON(_0x37ebce,![]);if(_0x5a25f3)return await loadJSON(_0x5a25f3,!![]);return undefined;}
1
+ function a140_0x4352(_0xd8083a,_0x4e405e){_0xd8083a=_0xd8083a-0xbf;const _0x392aa2=a140_0x392a();let _0x435285=_0x392aa2[_0xd8083a];return _0x435285;}(function(_0x28d359,_0x499194){const _0x25b334=a140_0x4352,_0x2a9487=_0x28d359();while(!![]){try{const _0x1d40e6=-parseInt(_0x25b334(0xc6))/0x1+parseInt(_0x25b334(0xc3))/0x2+-parseInt(_0x25b334(0xc7))/0x3+parseInt(_0x25b334(0xce))/0x4+parseInt(_0x25b334(0xcb))/0x5*(-parseInt(_0x25b334(0xcf))/0x6)+-parseInt(_0x25b334(0xc9))/0x7*(parseInt(_0x25b334(0xbf))/0x8)+parseInt(_0x25b334(0xd1))/0x9*(parseInt(_0x25b334(0xd4))/0xa);if(_0x1d40e6===_0x499194)break;else _0x2a9487['push'](_0x2a9487['shift']());}catch(_0x47d52e){_0x2a9487['push'](_0x2a9487['shift']());}}}(a140_0x392a,0xbed68));import{readFile}from'fs/promises';function a140_0x392a(){const _0x487dc4=['PERMISSION_DENIED','2340608tjWUQW','message','code','838415ujeptf','3185100cmriPC','parse','7034741kQAQdi','Invalid\x20JSON\x20string:\x20','56675KbrSdZ','utf-8','EACCES','3051928wsbrhr','636pYPMrw','INTERNAL','9NHUeDz','\x27:\x20','File\x20not\x20found:\x20','29549740nwMjLw','8nnDmLd','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT'];a140_0x392a=function(){return _0x487dc4;};return a140_0x392a();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x47b365,_0x32d448){const _0x5abc65=a140_0x4352;try{if(_0x32d448){const _0x2947aa=await readFile(_0x47b365,_0x5abc65(0xcc));try{return JSON['parse'](_0x2947aa);}catch(_0x45796f){throw new SDKError(ErrorCode[_0x5abc65(0xc1)],_0x5abc65(0xc0)+_0x47b365+_0x5abc65(0xd2)+(_0x45796f instanceof Error?_0x45796f['message']:String(_0x45796f)));}}else try{return JSON[_0x5abc65(0xc8)](_0x47b365);}catch(_0x2502e2){throw new SDKError(ErrorCode[_0x5abc65(0xc1)],_0x5abc65(0xca)+(_0x2502e2 instanceof Error?_0x2502e2[_0x5abc65(0xc4)]:String(_0x2502e2)));}}catch(_0x1fbc51){if(_0x1fbc51 instanceof SDKError)throw _0x1fbc51;if(_0x1fbc51 instanceof Error&&_0x5abc65(0xc5)in _0x1fbc51){const _0x1b6fd4=_0x1fbc51;if(_0x1b6fd4[_0x5abc65(0xc5)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x5abc65(0xd3)+_0x47b365);else{if(_0x1b6fd4['code']===_0x5abc65(0xcd))throw new SDKError(ErrorCode[_0x5abc65(0xc2)],'Permission\x20denied\x20reading\x20file:\x20'+_0x47b365);}}throw new SDKError(ErrorCode[_0x5abc65(0xd0)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1fbc51 instanceof Error?_0x1fbc51[_0x5abc65(0xc4)]:String(_0x1fbc51)));}}export async function loadJSONFromOptions(_0x1a467c,_0x10a2a8){const _0x4b2f36=a140_0x4352;if(_0x1a467c&&_0x10a2a8)throw new SDKError(ErrorCode[_0x4b2f36(0xc1)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x1a467c)return await loadJSON(_0x1a467c,![]);if(_0x10a2a8)return await loadJSON(_0x10a2a8,!![]);return undefined;}
@@ -1 +1 @@
1
- function a141_0x1352(){const _0x216f38=['.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','.\x20Must\x20be\x20an\x20integer.','8abLHOS','849350ActGWM','3731838BvCQkx','63RBSyqK','Invalid\x20timeout\x20value:\x20','3qmvtaU','12bOcExK','2770472KwUAKR','2370qWjClR','Invalid\x20limit\x20value:\x20','3454016aNDmrU','7610TQfYds','476693qyHLXd','number','80213YBXqZk'];a141_0x1352=function(){return _0x216f38;};return a141_0x1352();}(function(_0x3a6ff4,_0x4d5662){const _0x39d036=a141_0x1d95,_0x285c5a=_0x3a6ff4();while(!![]){try{const _0x25431f=parseInt(_0x39d036(0xe3))/0x1*(-parseInt(_0x39d036(0xe7))/0x2)+parseInt(_0x39d036(0xec))/0x3*(parseInt(_0x39d036(0xee))/0x4)+parseInt(_0x39d036(0xf2))/0x5*(-parseInt(_0x39d036(0xef))/0x6)+-parseInt(_0x39d036(0xe1))/0x7+parseInt(_0x39d036(0xf1))/0x8+-parseInt(_0x39d036(0xea))/0x9*(-parseInt(_0x39d036(0xe8))/0xa)+-parseInt(_0x39d036(0xe9))/0xb*(parseInt(_0x39d036(0xed))/0xc);if(_0x25431f===_0x4d5662)break;else _0x285c5a['push'](_0x285c5a['shift']());}catch(_0x51c454){_0x285c5a['push'](_0x285c5a['shift']());}}}(a141_0x1352,0x5f18c));function a141_0x1d95(_0x516f2b,_0x316f80){_0x516f2b=_0x516f2b-0xe1;const _0x135277=a141_0x1352();let _0x1d950e=_0x135277[_0x516f2b];return _0x1d950e;}export function validateLimitOption(_0x513790){const _0x24bb73=a141_0x1d95;if(!Number[_0x24bb73(0xe5)](_0x513790))return{'isValid':![],'error':_0x24bb73(0xf0)+_0x513790+_0x24bb73(0xe6)};if(_0x513790<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x513790+_0x24bb73(0xe4)};return{'isValid':!![],'value':_0x513790};}export function validateTimeoutOption(_0x46155b,_0x5be005=0x1e){const _0x1098b7=a141_0x1d95;if(_0x46155b===undefined)return{'isValid':!![],'value':_0x5be005};const _0x396d83=typeof _0x46155b===_0x1098b7(0xe2)?_0x46155b:parseFloat(_0x46155b);if(isNaN(_0x396d83))return{'isValid':![],'error':_0x1098b7(0xeb)+_0x46155b+'.\x20Must\x20be\x20a\x20number.'};if(_0x396d83<=0x0)return{'isValid':![],'error':_0x1098b7(0xeb)+_0x396d83+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x396d83};}
1
+ (function(_0x34ab3e,_0x40c773){const _0x205e79=a141_0x1b80,_0x55e48a=_0x34ab3e();while(!![]){try{const _0x2d2559=parseInt(_0x205e79(0x15d))/0x1*(-parseInt(_0x205e79(0x157))/0x2)+-parseInt(_0x205e79(0x155))/0x3+parseInt(_0x205e79(0x161))/0x4*(-parseInt(_0x205e79(0x15e))/0x5)+-parseInt(_0x205e79(0x15b))/0x6*(parseInt(_0x205e79(0x159))/0x7)+-parseInt(_0x205e79(0x15c))/0x8+-parseInt(_0x205e79(0x156))/0x9+-parseInt(_0x205e79(0x158))/0xa*(-parseInt(_0x205e79(0x164))/0xb);if(_0x2d2559===_0x40c773)break;else _0x55e48a['push'](_0x55e48a['shift']());}catch(_0x27409e){_0x55e48a['push'](_0x55e48a['shift']());}}}(a141_0x20be,0x77419));export function validateLimitOption(_0x3c7eb6){const _0x21dc46=a141_0x1b80;if(!Number['isInteger'](_0x3c7eb6))return{'isValid':![],'error':_0x21dc46(0x15f)+_0x3c7eb6+_0x21dc46(0x160)};if(_0x3c7eb6<=0x0)return{'isValid':![],'error':_0x21dc46(0x15f)+_0x3c7eb6+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3c7eb6};}export function validateTimeoutOption(_0x3d34f9,_0xd01781=0x1e){const _0x39e896=a141_0x1b80;if(_0x3d34f9===undefined)return{'isValid':!![],'value':_0xd01781};const _0x17e62a=typeof _0x3d34f9===_0x39e896(0x163)?_0x3d34f9:parseFloat(_0x3d34f9);if(isNaN(_0x17e62a))return{'isValid':![],'error':_0x39e896(0x15a)+_0x3d34f9+_0x39e896(0x165)};if(_0x17e62a<=0x0)return{'isValid':![],'error':_0x39e896(0x15a)+_0x17e62a+_0x39e896(0x162)};return{'isValid':!![],'value':_0x17e62a};}function a141_0x1b80(_0x28fa8b,_0x145360){_0x28fa8b=_0x28fa8b-0x155;const _0x20be7e=a141_0x20be();let _0x1b805b=_0x20be7e[_0x28fa8b];return _0x1b805b;}function a141_0x20be(){const _0x42006b=['5812990UEdrCe','7eXPICd','Invalid\x20timeout\x20value:\x20','654138kqGJmB','136536AYfDOv','135dHoomy','5lkZHAn','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','1218716hksOHA','.\x20Must\x20be\x20a\x20positive\x20number.','number','55HfHsWi','.\x20Must\x20be\x20a\x20number.','2488698ysTKzj','1631088BLOciD','14466qjQCzf'];a141_0x20be=function(){return _0x42006b;};return a141_0x20be();}
@@ -1 +1 @@
1
- (function(_0x3fee4c,_0x177389){const _0x2aa513=a142_0x4974,_0x2a0e06=_0x3fee4c();while(!![]){try{const _0x2eee45=parseInt(_0x2aa513(0x14c))/0x1+-parseInt(_0x2aa513(0x14a))/0x2*(parseInt(_0x2aa513(0x158))/0x3)+-parseInt(_0x2aa513(0x152))/0x4*(-parseInt(_0x2aa513(0x159))/0x5)+parseInt(_0x2aa513(0x14e))/0x6+-parseInt(_0x2aa513(0x155))/0x7+parseInt(_0x2aa513(0x14f))/0x8+parseInt(_0x2aa513(0x157))/0x9*(-parseInt(_0x2aa513(0x154))/0xa);if(_0x2eee45===_0x177389)break;else _0x2a0e06['push'](_0x2a0e06['shift']());}catch(_0x317a68){_0x2a0e06['push'](_0x2a0e06['shift']());}}}(a142_0x36f2,0x68ae6));import{createServer}from'node:net';export async function isPortAvailable(_0x377fb8){return new Promise(_0x3ebae1=>{const _0x31544d=a142_0x4974,_0x5c5666=createServer();_0x5c5666[_0x31544d(0x149)]('error',_0x414ec1=>{const _0x4e5280=_0x31544d;_0x414ec1[_0x4e5280(0x14d)]===_0x4e5280(0x156)?_0x3ebae1(![]):_0x3ebae1(![]);}),_0x5c5666[_0x31544d(0x149)](_0x31544d(0x151),()=>{const _0x183742=_0x31544d;_0x5c5666[_0x183742(0x14b)](),_0x3ebae1(!![]);}),_0x5c5666['listen'](_0x377fb8,_0x31544d(0x150));});}export async function findAvailablePort(_0x53170d=0xfa0,_0x990eea=0x64){const _0x338b5c=a142_0x4974;for(let _0x14c1b1=0x0;_0x14c1b1<_0x990eea;_0x14c1b1++){const _0x114cc8=_0x53170d+_0x14c1b1;if(await isPortAvailable(_0x114cc8))return _0x114cc8;}throw new Error(_0x338b5c(0x15a)+_0x53170d+_0x338b5c(0x153)+(_0x53170d+_0x990eea-0x1));}function a142_0x4974(_0x16e69a,_0x1d5162){_0x16e69a=_0x16e69a-0x149;const _0x36f284=a142_0x36f2();let _0x497431=_0x36f284[_0x16e69a];return _0x497431;}function a142_0x36f2(){const _0x1f3db8=['No\x20available\x20port\x20found\x20between\x20','once','58pzxujN','close','387517ApCKZq','code','3891156bXygqQ','6794576RJLgVR','0.0.0.0','listening','627952qbFIGT','\x20and\x20','10yCCgdb','5317193TicAhU','EADDRINUSE','4644387Uxkhvj','34959CJxDWV','5HEcZzj'];a142_0x36f2=function(){return _0x1f3db8;};return a142_0x36f2();}
1
+ (function(_0x1bebf7,_0x3e215b){const _0x1afb89=a142_0x29c3,_0x654770=_0x1bebf7();while(!![]){try{const _0xeac145=parseInt(_0x1afb89(0x103))/0x1+parseInt(_0x1afb89(0x10d))/0x2+parseInt(_0x1afb89(0x107))/0x3*(-parseInt(_0x1afb89(0x105))/0x4)+-parseInt(_0x1afb89(0x106))/0x5+parseInt(_0x1afb89(0x108))/0x6+-parseInt(_0x1afb89(0x109))/0x7*(-parseInt(_0x1afb89(0x104))/0x8)+-parseInt(_0x1afb89(0x10e))/0x9;if(_0xeac145===_0x3e215b)break;else _0x654770['push'](_0x654770['shift']());}catch(_0x4751d0){_0x654770['push'](_0x654770['shift']());}}}(a142_0x438e,0xb53bc));function a142_0x29c3(_0x1ef750,_0x567806){_0x1ef750=_0x1ef750-0x102;const _0x438e64=a142_0x438e();let _0x29c31d=_0x438e64[_0x1ef750];return _0x29c31d;}function a142_0x438e(){const _0x147ae3=['20618253DJlPpu','listening','EADDRINUSE','\x20and\x20','1206727VuPeho','794056FJkLwh','413460uTwHzw','1146520WXvVrb','30WKtiOz','6830526DQMYqj','35nfOyQu','code','listen','0.0.0.0','2909540mzYGLf'];a142_0x438e=function(){return _0x147ae3;};return a142_0x438e();}import{createServer}from'node:net';export async function isPortAvailable(_0x4b4296){return new Promise(_0x2cddf3=>{const _0xd8ef61=a142_0x29c3,_0x47352b=createServer();_0x47352b['once']('error',_0x404cae=>{const _0x540904=a142_0x29c3;_0x404cae[_0x540904(0x10a)]===_0x540904(0x110)?_0x2cddf3(![]):_0x2cddf3(![]);}),_0x47352b['once'](_0xd8ef61(0x10f),()=>{_0x47352b['close'](),_0x2cddf3(!![]);}),_0x47352b[_0xd8ef61(0x10b)](_0x4b4296,_0xd8ef61(0x10c));});}export async function findAvailablePort(_0x354465=0xfa0,_0x35d68d=0x64){const _0x5def4=a142_0x29c3;for(let _0x4ef48b=0x0;_0x4ef48b<_0x35d68d;_0x4ef48b++){const _0x583332=_0x354465+_0x4ef48b;if(await isPortAvailable(_0x583332))return _0x583332;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x354465+_0x5def4(0x102)+(_0x354465+_0x35d68d-0x1));}
@@ -1 +1 @@
1
- const a143_0x5afb32=a143_0x338a;(function(_0x3e090d,_0x4773e3){const _0x228a8b=a143_0x338a,_0x8fdd1f=_0x3e090d();while(!![]){try{const _0x3672e8=-parseInt(_0x228a8b(0x117))/0x1+-parseInt(_0x228a8b(0x112))/0x2*(parseInt(_0x228a8b(0x10c))/0x3)+-parseInt(_0x228a8b(0xff))/0x4+-parseInt(_0x228a8b(0xf1))/0x5+-parseInt(_0x228a8b(0xfc))/0x6*(-parseInt(_0x228a8b(0xfe))/0x7)+-parseInt(_0x228a8b(0x10d))/0x8*(parseInt(_0x228a8b(0xf8))/0x9)+-parseInt(_0x228a8b(0x116))/0xa*(-parseInt(_0x228a8b(0x102))/0xb);if(_0x3672e8===_0x4773e3)break;else _0x8fdd1f['push'](_0x8fdd1f['shift']());}catch(_0x113978){_0x8fdd1f['push'](_0x8fdd1f['shift']());}}}(a143_0x1ecf,0x253d2));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a143_0x5afb32(0x103),a143_0x5afb32(0xf2),'sh',a143_0x5afb32(0x104),'ksh',a143_0x5afb32(0xfd),a143_0x5afb32(0x106),'dash',a143_0x5afb32(0x11a),a143_0x5afb32(0xee),'nu',a143_0x5afb32(0x111),a143_0x5afb32(0xf0),a143_0x5afb32(0x10e)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a143_0x5afb32(0xfa),a143_0x5afb32(0x115),a143_0x5afb32(0x11b)]);function getProcessInfoWindows(_0x581c58){const _0x1b8b6a=a143_0x5afb32;try{if(!Number[_0x1b8b6a(0x119)](_0x581c58)||_0x581c58<=0x0)return null;const _0x147a8b=execSync(_0x1b8b6a(0x10a)+_0x581c58+_0x1b8b6a(0xf4),{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x5e35d4=_0x147a8b[_0x1b8b6a(0x101)]('\x0a')[_0x1b8b6a(0x110)](_0x47c675=>_0x47c675['trim']());if(_0x5e35d4[_0x1b8b6a(0x114)]<0x2)return null;const _0x1eddf1=_0x5e35d4[_0x5e35d4[_0x1b8b6a(0x114)]-0x1]['split'](',');if(_0x1eddf1[_0x1b8b6a(0x114)]<0x3)return null;const _0x47803b=_0x1eddf1[0x1]?.['trim']()||'',_0x4b6f39=parseInt(_0x1eddf1[0x2]?.[_0x1b8b6a(0xf5)]()||'0',0xa);if(isNaN(_0x4b6f39)||!_0x47803b)return null;return{'pid':_0x581c58,'ppid':_0x4b6f39,'comm':_0x47803b[_0x1b8b6a(0x109)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x54f2fb){const _0x243558=a143_0x5afb32;try{const _0x37928b=0x400000;if(!Number[_0x243558(0x119)](_0x54f2fb)||_0x54f2fb<=0x0||_0x54f2fb>_0x37928b)return null;const _0x481934=execSync(_0x243558(0x107)+_0x54f2fb+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x243558(0x113)})['trim'](),[_0x1c5e05,..._0x490426]=_0x481934['split'](/\s+/),_0x56d9a5=parseInt(_0x1c5e05,0xa),_0x4ae17d=_0x490426['join']('\x20');if(isNaN(_0x56d9a5))return null;return{'pid':_0x54f2fb,'ppid':_0x56d9a5,'comm':_0x4ae17d};}catch{return null;}}function getProcessInfo(_0x4577d7){const _0x19ab26=a143_0x5afb32;if(process[_0x19ab26(0x10b)]===_0x19ab26(0xf6))return getProcessInfoWindows(_0x4577d7);return getProcessInfoPosix(_0x4577d7);}function getBasename(_0x33281e){const _0x3fb703=a143_0x5afb32;return _0x33281e[_0x3fb703(0x109)](/^-/,'')[_0x3fb703(0x101)]('/')[_0x3fb703(0xfb)]()?.['toLowerCase']()||'';}function a143_0x338a(_0xd8b6fa,_0xd6be53){_0xd8b6fa=_0xd8b6fa-0xee;const _0x1ecf4f=a143_0x1ecf();let _0x338aa1=_0x1ecf4f[_0xd8b6fa];return _0x338aa1;}function isShell(_0x1c6baa){const _0x5c3f99=a143_0x5afb32;return SHELL_NAMES[_0x5c3f99(0x10f)](getBasename(_0x1c6baa));}function a143_0x1ecf(){const _0x302480=['platform','48ERHryh','1736qtVDQw','xonsh','has','filter','ion','36724LZhptk','pipe','length','code','11320570WDjbTD','130937eXtaLx','pid','isInteger','pwsh','cursor','powershell','darwin','elvish','495530sjJBAo','zsh','comm','\x20get\x20ParentProcessId,Name\x20/format:csv','trim','win32','open','8784zAgeaU','ppid','claude','pop','5862XHRsQW','tcsh','273SbBANI','1128012rsDPch','unref','split','11HxTMGo','bash','fish','xdg-open','csh','ps\x20-p\x20','start','replace','wmic\x20process\x20where\x20ProcessId='];a143_0x1ecf=function(){return _0x302480;};return a143_0x1ecf();}function isEphemeralShellSpawner(_0x25c712){const _0x254506=a143_0x5afb32;return EPHEMERAL_SHELL_SPAWNERS[_0x254506(0x10f)](getBasename(_0x25c712));}let cachedShellPID;function findShellPID(){const _0x490e43=a143_0x5afb32;if(process[_0x490e43(0xf9)]===undefined)return process[_0x490e43(0x118)];let _0x235abd=process[_0x490e43(0xf9)];const _0x4e2c6b=0xa;let _0x283156=0x0;while(_0x283156<_0x4e2c6b){const _0x2bb3d6=getProcessInfo(_0x235abd);if(!_0x2bb3d6)break;if(isShell(_0x2bb3d6['comm'])){const _0x5714a3=getProcessInfo(_0x2bb3d6[_0x490e43(0xf9)]);if(_0x5714a3&&isEphemeralShellSpawner(_0x5714a3['comm'])){_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;continue;}return _0x2bb3d6[_0x490e43(0x118)];}if(_0x2bb3d6[_0x490e43(0xf9)]===0x0||_0x2bb3d6['ppid']===0x1){if(isShell(_0x2bb3d6[_0x490e43(0xf3)]))return _0x2bb3d6[_0x490e43(0x118)];break;}_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;}return process[_0x490e43(0xf9)]!==undefined?process[_0x490e43(0xf9)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x52a6cf){const _0x38b434=a143_0x5afb32;if(!Number[_0x38b434(0x119)](_0x52a6cf)||_0x52a6cf<=0x0)return![];try{return process['kill'](_0x52a6cf,0x0),!![];}catch{return![];}}export function openBrowser(_0x4d824a){const _0x1e3eb9=a143_0x5afb32,_0x364b63=process['platform'],_0xb2773=_0x364b63===_0x1e3eb9(0xef)?_0x1e3eb9(0xf7):_0x364b63===_0x1e3eb9(0xf6)?_0x1e3eb9(0x108):_0x1e3eb9(0x105);spawn(_0xb2773,[_0x4d824a],{'detached':!![],'stdio':'ignore'})[_0x1e3eb9(0x100)]();}
1
+ const a143_0x1c8a1d=a143_0x2b8a;(function(_0x1cfce4,_0x58bc81){const _0x36f0fa=a143_0x2b8a,_0x3fb236=_0x1cfce4();while(!![]){try{const _0x162fa6=-parseInt(_0x36f0fa(0xac))/0x1+parseInt(_0x36f0fa(0x8d))/0x2*(-parseInt(_0x36f0fa(0xb3))/0x3)+parseInt(_0x36f0fa(0xb1))/0x4+parseInt(_0x36f0fa(0xa7))/0x5*(-parseInt(_0x36f0fa(0xa1))/0x6)+-parseInt(_0x36f0fa(0x94))/0x7+-parseInt(_0x36f0fa(0x9e))/0x8+parseInt(_0x36f0fa(0x90))/0x9;if(_0x162fa6===_0x58bc81)break;else _0x3fb236['push'](_0x3fb236['shift']());}catch(_0x3e2d49){_0x3fb236['push'](_0x3fb236['shift']());}}}(a143_0xbc11,0x64550));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a143_0x1c8a1d(0xa9),a143_0x1c8a1d(0xa3),'sh',a143_0x1c8a1d(0xa2),'ksh','tcsh',a143_0x1c8a1d(0x9a),'dash','pwsh',a143_0x1c8a1d(0x95),'nu',a143_0x1c8a1d(0xb2),a143_0x1c8a1d(0x96),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a143_0x1c8a1d(0x92),a143_0x1c8a1d(0x98)]);function getProcessInfoWindows(_0x47252f){const _0x17577f=a143_0x1c8a1d;try{if(!Number[_0x17577f(0x8f)](_0x47252f)||_0x47252f<=0x0)return null;const _0x4ff408=execSync(_0x17577f(0x8c)+_0x47252f+_0x17577f(0xab),{'encoding':_0x17577f(0xb4),'windowsHide':!![]})[_0x17577f(0x99)](),_0x55c3e7=_0x4ff408['split']('\x0a')['filter'](_0x14b735=>_0x14b735['trim']());if(_0x55c3e7[_0x17577f(0xb0)]<0x2)return null;const _0x54f7b4=_0x55c3e7[_0x55c3e7['length']-0x1][_0x17577f(0xae)](',');if(_0x54f7b4['length']<0x3)return null;const _0x5b5041=_0x54f7b4[0x1]?.[_0x17577f(0x99)]()||'',_0x26f74b=parseInt(_0x54f7b4[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x26f74b)||!_0x5b5041)return null;return{'pid':_0x47252f,'ppid':_0x26f74b,'comm':_0x5b5041[_0x17577f(0xa4)](/\.exe$/i,'')};}catch{return null;}}function a143_0x2b8a(_0x3cfbe1,_0x320138){_0x3cfbe1=_0x3cfbe1-0x8c;const _0xbc117f=a143_0xbc11();let _0x2b8adf=_0xbc117f[_0x3cfbe1];return _0x2b8adf;}function getProcessInfoPosix(_0x2753ec){const _0xfc79d8=a143_0x1c8a1d;try{const _0x39ff0c=0x400000;if(!Number[_0xfc79d8(0x8f)](_0x2753ec)||_0x2753ec<=0x0||_0x2753ec>_0x39ff0c)return null;const _0x251a97=execSync(_0xfc79d8(0x9c)+_0x2753ec+'\x20-o\x20ppid=,comm=',{'encoding':_0xfc79d8(0xb4),'stdio':_0xfc79d8(0xb5)})[_0xfc79d8(0x99)](),[_0x254595,..._0xd0807d]=_0x251a97[_0xfc79d8(0xae)](/\s+/),_0x434c3e=parseInt(_0x254595,0xa),_0x3b3c7b=_0xd0807d['join']('\x20');if(isNaN(_0x434c3e))return null;return{'pid':_0x2753ec,'ppid':_0x434c3e,'comm':_0x3b3c7b};}catch{return null;}}function getProcessInfo(_0x388263){const _0x2009cf=a143_0x1c8a1d;if(process['platform']===_0x2009cf(0xa8))return getProcessInfoWindows(_0x388263);return getProcessInfoPosix(_0x388263);}function getBasename(_0x5056cc){const _0x3d80f3=a143_0x1c8a1d;return _0x5056cc['replace'](/^-/,'')[_0x3d80f3(0xae)]('/')[_0x3d80f3(0xad)]()?.[_0x3d80f3(0x9f)]()||'';}function isShell(_0x201e66){const _0x5def68=a143_0x1c8a1d;return SHELL_NAMES[_0x5def68(0xaf)](getBasename(_0x201e66));}function isEphemeralShellSpawner(_0x4aa2f1){const _0x5e4402=a143_0x1c8a1d;return EPHEMERAL_SHELL_SPAWNERS[_0x5e4402(0xaf)](getBasename(_0x4aa2f1));}let cachedShellPID;function findShellPID(){const _0x5ef84a=a143_0x1c8a1d;if(process[_0x5ef84a(0x97)]===undefined)return process[_0x5ef84a(0xaa)];let _0x5dd21e=process[_0x5ef84a(0x97)];const _0x3ce345=0xa;let _0x4e5d8a=0x0;while(_0x4e5d8a<_0x3ce345){const _0x30c1dd=getProcessInfo(_0x5dd21e);if(!_0x30c1dd)break;if(isShell(_0x30c1dd[_0x5ef84a(0x9d)])){const _0x403ffd=getProcessInfo(_0x30c1dd['ppid']);if(_0x403ffd&&isEphemeralShellSpawner(_0x403ffd['comm'])){_0x5dd21e=_0x30c1dd[_0x5ef84a(0x97)],_0x4e5d8a++;continue;}return _0x30c1dd[_0x5ef84a(0xaa)];}if(_0x30c1dd[_0x5ef84a(0x97)]===0x0||_0x30c1dd['ppid']===0x1){if(isShell(_0x30c1dd[_0x5ef84a(0x9d)]))return _0x30c1dd[_0x5ef84a(0xaa)];break;}_0x5dd21e=_0x30c1dd['ppid'],_0x4e5d8a++;}return process['ppid']!==undefined?process[_0x5ef84a(0x97)]:process[_0x5ef84a(0xaa)];}function a143_0xbc11(){const _0xc1237a=['length','758248mpqFSg','ion','62151DbUFXQ','utf-8','pipe','wmic\x20process\x20where\x20ProcessId=','38wfiCGh','unref','isInteger','15950250GkvwdB','xdg-open','code','start','183358srNYcp','powershell','elvish','ppid','cursor','trim','csh','open','ps\x20-p\x20','comm','5353136YUfWBV','toLowerCase','ignore','2295372ajrCXT','fish','zsh','replace','platform','darwin','5vOOJMQ','win32','bash','pid','\x20get\x20ParentProcessId,Name\x20/format:csv','79331QgmfgG','pop','split','has'];a143_0xbc11=function(){return _0xc1237a;};return a143_0xbc11();}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x346578){const _0x2b55af=a143_0x1c8a1d;if(!Number[_0x2b55af(0x8f)](_0x346578)||_0x346578<=0x0)return![];try{return process['kill'](_0x346578,0x0),!![];}catch{return![];}}export function openBrowser(_0x4516aa){const _0x269b03=a143_0x1c8a1d,_0x8e9a5b=process[_0x269b03(0xa5)],_0x103e51=_0x8e9a5b===_0x269b03(0xa6)?_0x269b03(0x9b):_0x8e9a5b===_0x269b03(0xa8)?_0x269b03(0x93):_0x269b03(0x91);spawn(_0x103e51,[_0x4516aa],{'detached':!![],'stdio':_0x269b03(0xa0)})[_0x269b03(0x8e)]();}
@@ -1 +1 @@
1
- function a144_0x8a1e(_0x290d5c,_0x948361){_0x290d5c=_0x290d5c-0xa6;const _0x102a4b=a144_0x102a();let _0x8a1e65=_0x102a4b[_0x290d5c];return _0x8a1e65;}(function(_0x59e2fd,_0x48c33d){const _0x458fcb=a144_0x8a1e,_0x560891=_0x59e2fd();while(!![]){try{const _0x29ee67=-parseInt(_0x458fcb(0xa9))/0x1*(-parseInt(_0x458fcb(0xb5))/0x2)+parseInt(_0x458fcb(0xab))/0x3*(parseInt(_0x458fcb(0xb1))/0x4)+parseInt(_0x458fcb(0xae))/0x5+-parseInt(_0x458fcb(0xb0))/0x6+parseInt(_0x458fcb(0xa8))/0x7*(-parseInt(_0x458fcb(0xaf))/0x8)+parseInt(_0x458fcb(0xb8))/0x9*(parseInt(_0x458fcb(0xb4))/0xa)+-parseInt(_0x458fcb(0xbc))/0xb;if(_0x29ee67===_0x48c33d)break;else _0x560891['push'](_0x560891['shift']());}catch(_0x89a78e){_0x560891['push'](_0x560891['shift']());}}}(a144_0x102a,0x24d1d));import*as a144_0x47efd3 from'readline';export async function confirm(_0x580bec){const _0x1c8060=a144_0x8a1e,_0x46b518=a144_0x47efd3['createInterface']({'input':process[_0x1c8060(0xaa)],'output':process[_0x1c8060(0xa6)]});return new Promise(_0xf27abf=>{const _0x11f68d=_0x1c8060;_0x46b518[_0x11f68d(0xb6)](_0x580bec+'\x20(y/N):\x20',_0x547689=>{const _0x121138=_0x11f68d;_0x46b518['close'](),_0xf27abf(_0x547689[_0x121138(0xac)]()==='y'||_0x547689[_0x121138(0xac)]()===_0x121138(0xb3));});});}export async function confirmKey(_0x41a1d9){const _0x2044ba=a144_0x8a1e;if(!process[_0x2044ba(0xaa)]['isTTY'])return![];return process[_0x2044ba(0xba)]['write'](_0x41a1d9+'\x20[y/N]\x20'),new Promise(_0x104f7a=>{const _0x27632d=_0x2044ba,_0x2334e2=process['stdin'];_0x2334e2[_0x27632d(0xad)](!![]),_0x2334e2['resume'](),_0x2334e2['setEncoding'](_0x27632d(0xb7));const _0x5d5458=_0x462075=>{const _0x2997d0=_0x27632d;_0x2334e2[_0x2997d0(0xad)](![]),_0x2334e2['pause'](),_0x2334e2[_0x2997d0(0xb2)](_0x2997d0(0xb9),_0x5d5458);if(_0x462075==='\x1b'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('\x0a'),_0x104f7a(![]);return;}_0x462075==='\x03'&&(process[_0x2997d0(0xba)]['write']('\x0a'),process[_0x2997d0(0xa7)](0x82));if(_0x462075[_0x2997d0(0xac)]()==='y'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('y\x0a'),_0x104f7a(!![]);return;}process[_0x2997d0(0xba)]['write']('\x0a'),_0x104f7a(![]);};_0x2334e2['on']('data',_0x5d5458);});}function a144_0x102a(){const _0x1b1e16=['exit','15281DZgNGQ','145777obinip','stdin','620439oYodoe','toLowerCase','setRawMode','1504805RMmCWf','152DftRkl','195006NQmIns','4nrJSrj','removeListener','yes','26070afgQlF','4aBnFuz','question','utf8','927kqRFxp','data','stderr','write','9273638ZKkuUW','stdout'];a144_0x102a=function(){return _0x1b1e16;};return a144_0x102a();}
1
+ function a144_0x5e49(){const _0x4c6dc2=['155MBSiPP','exit','106332SIDjlr','764ZamHBQ','stdout','18321Oxohjl','2979876FDqNtA','toLowerCase','close','stdin','\x20[y/N]\x20','\x20(y/N):\x20','setRawMode','9inRSFi','createInterface','data','resume','1907304aKQuPH','write','stderr','1432tMUoee','pause','44IuQtvP','1388736iiGoDj','isTTY','172oShvJL','3165630ZNbbdZ'];a144_0x5e49=function(){return _0x4c6dc2;};return a144_0x5e49();}(function(_0x2a42b6,_0x4c822e){const _0x551286=a144_0xfddb,_0x360021=_0x2a42b6();while(!![]){try{const _0x101a70=-parseInt(_0x551286(0x139))/0x1*(parseInt(_0x551286(0x143))/0x2)+-parseInt(_0x551286(0x12a))/0x3*(-parseInt(_0x551286(0x13e))/0x4)+parseInt(_0x551286(0x140))/0x5*(-parseInt(_0x551286(0x142))/0x6)+parseInt(_0x551286(0x136))/0x7+parseInt(_0x551286(0x13c))/0x8*(parseInt(_0x551286(0x132))/0x9)+-parseInt(_0x551286(0x13f))/0xa+parseInt(_0x551286(0x13b))/0xb*(parseInt(_0x551286(0x12b))/0xc);if(_0x101a70===_0x4c822e)break;else _0x360021['push'](_0x360021['shift']());}catch(_0x297e34){_0x360021['push'](_0x360021['shift']());}}}(a144_0x5e49,0x468dc));function a144_0xfddb(_0xdb6e21,_0x2a9c0d){_0xdb6e21=_0xdb6e21-0x12a;const _0x5e4962=a144_0x5e49();let _0xfddbbc=_0x5e4962[_0xdb6e21];return _0xfddbbc;}import*as a144_0xa85898 from'readline';export async function confirm(_0x55479d){const _0x378dad=a144_0xfddb,_0x17cbd5=a144_0xa85898[_0x378dad(0x133)]({'input':process[_0x378dad(0x12e)],'output':process[_0x378dad(0x144)]});return new Promise(_0x2b441c=>{const _0xca5fe2=_0x378dad;_0x17cbd5['question'](_0x55479d+_0xca5fe2(0x130),_0x41d881=>{const _0x55e0a8=_0xca5fe2;_0x17cbd5[_0x55e0a8(0x12d)](),_0x2b441c(_0x41d881['toLowerCase']()==='y'||_0x41d881[_0x55e0a8(0x12c)]()==='yes');});});}export async function confirmKey(_0xfa7a29){const _0x18243b=a144_0xfddb;if(!process['stdin'][_0x18243b(0x13d)])return![];return process[_0x18243b(0x138)]['write'](_0xfa7a29+_0x18243b(0x12f)),new Promise(_0x31afbf=>{const _0x1b26d5=_0x18243b,_0x155319=process['stdin'];_0x155319[_0x1b26d5(0x131)](!![]),_0x155319[_0x1b26d5(0x135)](),_0x155319['setEncoding']('utf8');const _0x6f034d=_0x297662=>{const _0x295be0=_0x1b26d5;_0x155319[_0x295be0(0x131)](![]),_0x155319[_0x295be0(0x13a)](),_0x155319['removeListener'](_0x295be0(0x134),_0x6f034d);if(_0x297662==='\x1b'){process[_0x295be0(0x138)]['write']('\x0a'),_0x31afbf(![]);return;}_0x297662==='\x03'&&(process[_0x295be0(0x138)][_0x295be0(0x137)]('\x0a'),process[_0x295be0(0x141)](0x82));if(_0x297662[_0x295be0(0x12c)]()==='y'){process[_0x295be0(0x138)][_0x295be0(0x137)]('y\x0a'),_0x31afbf(!![]);return;}process[_0x295be0(0x138)]['write']('\x0a'),_0x31afbf(![]);};_0x155319['on'](_0x1b26d5(0x134),_0x6f034d);});}
@@ -1 +1 @@
1
- (function(_0x41e37f,_0x29a53a){const _0xf039a3=a145_0x5136,_0xc0def5=_0x41e37f();while(!![]){try{const _0x1e5d64=-parseInt(_0xf039a3(0x155))/0x1*(-parseInt(_0xf039a3(0x16a))/0x2)+-parseInt(_0xf039a3(0x160))/0x3*(parseInt(_0xf039a3(0x164))/0x4)+-parseInt(_0xf039a3(0x15f))/0x5*(parseInt(_0xf039a3(0x153))/0x6)+parseInt(_0xf039a3(0x166))/0x7*(parseInt(_0xf039a3(0x168))/0x8)+parseInt(_0xf039a3(0x161))/0x9+parseInt(_0xf039a3(0x167))/0xa+-parseInt(_0xf039a3(0x15c))/0xb;if(_0x1e5d64===_0x29a53a)break;else _0xc0def5['push'](_0xc0def5['shift']());}catch(_0x2c1c6c){_0xc0def5['push'](_0xc0def5['shift']());}}}(a145_0x6dff,0xc111b));import a145_0x32bec1 from'ora';export function createCommandSpinner(_0x445048,_0x11254d={}){const _0x3b353a=a145_0x5136,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x11254d;return a145_0x32bec1({'text':_0x445048,'color':_0x3b353a(0x163),'stream':process[_0x3b353a(0x156)],'isEnabled':forceEnabled||process[_0x3b353a(0x156)][_0x3b353a(0x16d)]&&!verbose});}export async function withSpinner(_0x37117b,_0x383a19,_0x58f0e8={}){const _0x5a142=a145_0x5136,_0x345fe8=_0x58f0e8[_0x5a142(0x15a)]??(()=>Date[_0x5a142(0x154)]()),_0x28dfd7=createCommandSpinner(_0x37117b,_0x58f0e8);_0x28dfd7[_0x5a142(0x152)]();const _0x221fdb=_0x345fe8();try{const _0x2ecddd=await _0x383a19(),_0x5154b2=_0x345fe8()-_0x221fdb;return _0x28dfd7['stop'](),{'data':_0x2ecddd,'elapsedMs':_0x5154b2};}catch(_0x27d3b7){_0x28dfd7[_0x5a142(0x158)]();throw _0x27d3b7;}}function a145_0x6dff(){const _0x56df2e=['floor','5499142UfBmKb','\x20[Job\x20ID:\x20','Processing','1530245oWtewJ','3MBLCbZ','10394847vtvZDj','toFixed','cyan','233048jwaVTb','isSpinning','14ttjyDu','10313730XeRsWa','1511416LatuQC','replace','210020GJDFvw','jobId','trim','isTTY','text','start','30mpWLMo','now','3kJdIMr','stderr','phase','stop','extra','clock'];a145_0x6dff=function(){return _0x56df2e;};return a145_0x6dff();}function a145_0x5136(_0x47e2dc,_0x2f0f8f){_0x47e2dc=_0x47e2dc-0x152;const _0x6dffe0=a145_0x6dff();let _0x513644=_0x6dffe0[_0x47e2dc];return _0x513644;}export async function withProgressSpinner(_0x525287,_0x5033c5,_0x1e37aa={}){const _0x3e33d1=a145_0x5136,_0x38d3c8=_0x1e37aa[_0x3e33d1(0x15a)]??(()=>Date['now']()),_0x67b51a=_0x1e37aa['intervalFactory']??setInterval,_0x42e9b2=createCommandSpinner(_0x525287,_0x1e37aa);_0x42e9b2[_0x3e33d1(0x152)]();const _0x33728f=_0x38d3c8(),_0x18eaef=_0x525287[_0x3e33d1(0x169)]('...','')['trim']()||_0x3e33d1(0x15e),_0x80a810={};let _0x30f0a4=_0x525287;const _0x270c3d=()=>{const _0x17db25=_0x3e33d1;if(!_0x42e9b2['isSpinning'])return;const _0x275b27=_0x38d3c8()-_0x33728f,_0x150061=formatElapsed(_0x275b27),_0x3a4b9b=_0x80a810[_0x17db25(0x157)]?.[_0x17db25(0x16c)]()||_0x18eaef,_0x5bb1d0=_0x80a810[_0x17db25(0x16b)]?_0x17db25(0x15d)+_0x80a810[_0x17db25(0x16b)]+']':'',_0x2df154=_0x80a810[_0x17db25(0x159)]?'\x20'+_0x80a810[_0x17db25(0x159)]:'',_0x4f39e9=_0x3a4b9b+'\x20'+_0x150061+_0x2df154+_0x5bb1d0;_0x4f39e9!==_0x30f0a4&&_0x4f39e9[_0x17db25(0x16c)]()&&(_0x42e9b2[_0x17db25(0x16e)]=_0x4f39e9,_0x30f0a4=_0x4f39e9);},_0x22c1c0=_0x67b51a(()=>{_0x270c3d();},0x3e8),_0x32a46a={'setPhase':_0x3a3fbd=>{const _0x403119=_0x3e33d1;_0x80a810[_0x403119(0x157)]=_0x3a3fbd;const _0x4bb8db=_0x3a3fbd?.['trim']()||_0x18eaef,_0x127265=_0x38d3c8()-_0x33728f,_0x22d8db=formatElapsed(_0x127265),_0xc1ca40=_0x80a810[_0x403119(0x16b)]?_0x403119(0x15d)+_0x80a810['jobId']+']':'',_0x13e996=_0x80a810[_0x403119(0x159)]?'\x20'+_0x80a810['extra']:'',_0x1fb43a=_0x4bb8db+'\x20'+_0x22d8db+_0x13e996+_0xc1ca40;_0x42e9b2[_0x403119(0x165)]&&_0x1fb43a[_0x403119(0x16c)]()&&(_0x42e9b2['text']=_0x1fb43a,_0x30f0a4=_0x1fb43a);},'setJobId':_0xb168b6=>{const _0x5937f9=_0x3e33d1;_0x80a810[_0x5937f9(0x16b)]=_0xb168b6,_0x270c3d();},'setExtra':_0x17d7a8=>{const _0x86d9b8=_0x3e33d1;_0x80a810[_0x86d9b8(0x159)]=_0x17d7a8,_0x270c3d();}};_0x270c3d();try{const _0x5e1a0d=await _0x5033c5(_0x32a46a),_0x59a800=_0x38d3c8()-_0x33728f;return{'data':_0x5e1a0d,'elapsedMs':_0x59a800};}finally{clearInterval(_0x22c1c0),_0x42e9b2[_0x3e33d1(0x158)]();}}export function formatElapsed(_0x277e24){const _0x480f4b=a145_0x5136,_0xbdc78=Math['floor'](_0x277e24/0x3e8);if(_0xbdc78<0x3c)return(_0x277e24/0x3e8)[_0x480f4b(0x162)](0x1)+'s';const _0x297246=Math[_0x480f4b(0x15b)](_0xbdc78/0x3c),_0x35e1e3=_0xbdc78%0x3c;if(_0x297246<0x3c)return _0x297246+'m\x20'+_0x35e1e3+'s';const _0x3c7048=Math[_0x480f4b(0x15b)](_0x297246/0x3c),_0x2b90d5=_0x297246%0x3c;return _0x3c7048+'h\x20'+_0x2b90d5+'m';}
1
+ (function(_0x34b654,_0x5914c6){const _0x79165a=a145_0x71f4,_0x3ceb52=_0x34b654();while(!![]){try{const _0x5c814b=-parseInt(_0x79165a(0x138))/0x1+parseInt(_0x79165a(0x136))/0x2*(-parseInt(_0x79165a(0x134))/0x3)+-parseInt(_0x79165a(0x124))/0x4+-parseInt(_0x79165a(0x12d))/0x5+-parseInt(_0x79165a(0x11f))/0x6*(parseInt(_0x79165a(0x120))/0x7)+-parseInt(_0x79165a(0x128))/0x8*(parseInt(_0x79165a(0x139))/0x9)+-parseInt(_0x79165a(0x125))/0xa*(-parseInt(_0x79165a(0x137))/0xb);if(_0x5c814b===_0x5914c6)break;else _0x3ceb52['push'](_0x3ceb52['shift']());}catch(_0x579518){_0x3ceb52['push'](_0x3ceb52['shift']());}}}(a145_0x1c99,0x1c5b3));function a145_0x1c99(){const _0x594b97=['531540ITnIew','floor','826302degntB','7Qtwnfo','\x20[Job\x20ID:\x20','trim','now','545696nxhJXh','10aAEfAv','start','isTTY','16RAlsDw','text','isSpinning','phase','...','39735mqoQLz','extra','jobId','cyan','Processing','stop','stderr','99lpCmEd','intervalFactory','5534ffKwcv','8240507qqTpVF','141471DuRmPK'];a145_0x1c99=function(){return _0x594b97;};return a145_0x1c99();}import a145_0x33a76e from'ora';function a145_0x71f4(_0x4e5b63,_0x298968){_0x4e5b63=_0x4e5b63-0x11e;const _0x1c99e6=a145_0x1c99();let _0x71f442=_0x1c99e6[_0x4e5b63];return _0x71f442;}export function createCommandSpinner(_0x4ca324,_0x37640e={}){const _0x2b9ef8=a145_0x71f4,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x37640e;return a145_0x33a76e({'text':_0x4ca324,'color':_0x2b9ef8(0x130),'stream':process[_0x2b9ef8(0x133)],'isEnabled':forceEnabled||process['stderr'][_0x2b9ef8(0x127)]&&!verbose});}export async function withSpinner(_0x7288ef,_0x10ef3f,_0x2796fb={}){const _0x368d90=a145_0x71f4,_0x3d1773=_0x2796fb['clock']??(()=>Date[_0x368d90(0x123)]()),_0xedab22=createCommandSpinner(_0x7288ef,_0x2796fb);_0xedab22['start']();const _0x1a3bb7=_0x3d1773();try{const _0x121b03=await _0x10ef3f(),_0x25769f=_0x3d1773()-_0x1a3bb7;return _0xedab22[_0x368d90(0x132)](),{'data':_0x121b03,'elapsedMs':_0x25769f};}catch(_0x236069){_0xedab22[_0x368d90(0x132)]();throw _0x236069;}}export async function withProgressSpinner(_0x3ca481,_0x252720,_0x36bcd5={}){const _0x13f3d5=a145_0x71f4,_0x3d029e=_0x36bcd5['clock']??(()=>Date[_0x13f3d5(0x123)]()),_0xa7766d=_0x36bcd5[_0x13f3d5(0x135)]??setInterval,_0x44bb11=createCommandSpinner(_0x3ca481,_0x36bcd5);_0x44bb11[_0x13f3d5(0x126)]();const _0x3e280b=_0x3d029e(),_0x35af5b=_0x3ca481['replace'](_0x13f3d5(0x12c),'')[_0x13f3d5(0x122)]()||_0x13f3d5(0x131),_0xed7f16={};let _0x970e35=_0x3ca481;const _0x5c0f65=()=>{const _0x34504e=_0x13f3d5;if(!_0x44bb11[_0x34504e(0x12a)])return;const _0x5acf15=_0x3d029e()-_0x3e280b,_0x568c5b=formatElapsed(_0x5acf15),_0x40eee3=_0xed7f16[_0x34504e(0x12b)]?.[_0x34504e(0x122)]()||_0x35af5b,_0x55ccf1=_0xed7f16[_0x34504e(0x12f)]?_0x34504e(0x121)+_0xed7f16['jobId']+']':'',_0x3dc32d=_0xed7f16[_0x34504e(0x12e)]?'\x20'+_0xed7f16['extra']:'',_0x29c7cd=_0x40eee3+'\x20'+_0x568c5b+_0x3dc32d+_0x55ccf1;_0x29c7cd!==_0x970e35&&_0x29c7cd[_0x34504e(0x122)]()&&(_0x44bb11[_0x34504e(0x129)]=_0x29c7cd,_0x970e35=_0x29c7cd);},_0x3e7f3b=_0xa7766d(()=>{_0x5c0f65();},0x3e8),_0x59aa1f={'setPhase':_0x50db90=>{const _0x4ba67f=_0x13f3d5;_0xed7f16[_0x4ba67f(0x12b)]=_0x50db90;const _0x19978c=_0x50db90?.[_0x4ba67f(0x122)]()||_0x35af5b,_0x46d387=_0x3d029e()-_0x3e280b,_0x50d093=formatElapsed(_0x46d387),_0x6f21eb=_0xed7f16[_0x4ba67f(0x12f)]?_0x4ba67f(0x121)+_0xed7f16['jobId']+']':'',_0x45e3f4=_0xed7f16[_0x4ba67f(0x12e)]?'\x20'+_0xed7f16['extra']:'',_0x551f38=_0x19978c+'\x20'+_0x50d093+_0x45e3f4+_0x6f21eb;_0x44bb11[_0x4ba67f(0x12a)]&&_0x551f38[_0x4ba67f(0x122)]()&&(_0x44bb11[_0x4ba67f(0x129)]=_0x551f38,_0x970e35=_0x551f38);},'setJobId':_0x43278a=>{const _0x578f3d=_0x13f3d5;_0xed7f16[_0x578f3d(0x12f)]=_0x43278a,_0x5c0f65();},'setExtra':_0x423352=>{const _0x21d548=_0x13f3d5;_0xed7f16[_0x21d548(0x12e)]=_0x423352,_0x5c0f65();}};_0x5c0f65();try{const _0x3c191f=await _0x252720(_0x59aa1f),_0x3097c9=_0x3d029e()-_0x3e280b;return{'data':_0x3c191f,'elapsedMs':_0x3097c9};}finally{clearInterval(_0x3e7f3b),_0x44bb11[_0x13f3d5(0x132)]();}}export function formatElapsed(_0xbcd8e8){const _0xa6a4d0=a145_0x71f4,_0x40499e=Math['floor'](_0xbcd8e8/0x3e8);if(_0x40499e<0x3c)return(_0xbcd8e8/0x3e8)['toFixed'](0x1)+'s';const _0x1187d6=Math[_0xa6a4d0(0x11e)](_0x40499e/0x3c),_0x1f825a=_0x40499e%0x3c;if(_0x1187d6<0x3c)return _0x1187d6+'m\x20'+_0x1f825a+'s';const _0x3f7cf6=Math[_0xa6a4d0(0x11e)](_0x1187d6/0x3c),_0xd2b03a=_0x1187d6%0x3c;return _0x3f7cf6+'h\x20'+_0xd2b03a+'m';}
@@ -1 +1 @@
1
- (function(_0x205209,_0x4eb0b3){const _0x49437b=a146_0x160b,_0x46f0b2=_0x205209();while(!![]){try{const _0x381028=-parseInt(_0x49437b(0x186))/0x1+-parseInt(_0x49437b(0x17f))/0x2+-parseInt(_0x49437b(0x191))/0x3*(parseInt(_0x49437b(0x192))/0x4)+-parseInt(_0x49437b(0x195))/0x5*(parseInt(_0x49437b(0x181))/0x6)+-parseInt(_0x49437b(0x18e))/0x7+parseInt(_0x49437b(0x190))/0x8+parseInt(_0x49437b(0x188))/0x9*(parseInt(_0x49437b(0x18a))/0xa);if(_0x381028===_0x4eb0b3)break;else _0x46f0b2['push'](_0x46f0b2['shift']());}catch(_0xdc0fd9){_0x46f0b2['push'](_0x46f0b2['shift']());}}}(a146_0x4dfe,0x94e66));export async function*parseSSEStream(_0x1cc71a,_0x5e5326){const _0x28b521=a146_0x160b;if(!_0x1cc71a[_0x28b521(0x185)])throw new Error(_0x28b521(0x193));const _0x47f518=_0x1cc71a[_0x28b521(0x185)][_0x28b521(0x182)](),_0x5e690b=new TextDecoder();let _0x1e704b='',_0x1fec7={};try{while(!![]){const {done:_0x4a7445,value:_0x1166f9}=await _0x47f518['read']();if(_0x4a7445){if(_0x1fec7[_0x28b521(0x18f)]){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5224b2=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5224b2;}break;}_0x1e704b+=_0x5e690b[_0x28b521(0x18b)](_0x1166f9,{'stream':!![]});const _0x1d3329=_0x1e704b[_0x28b521(0x196)]('\x0a');_0x1e704b=_0x1d3329[_0x28b521(0x183)]()||'';for(const _0x581652 of _0x1d3329){if(_0x581652[_0x28b521(0x18c)]()===''){if(_0x1fec7['data']){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5bf7d1=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5bf7d1,_0x1fec7={};}continue;}if(_0x581652[_0x28b521(0x197)](':'))continue;const _0x2c223e=_0x581652['indexOf'](':');if(_0x2c223e===-0x1)continue;const _0x5a8630=_0x581652[_0x28b521(0x194)](0x0,_0x2c223e);let _0x39a508=_0x581652['slice'](_0x2c223e+0x1);_0x39a508[_0x28b521(0x197)]('\x20')&&(_0x39a508=_0x39a508[_0x28b521(0x194)](0x1));switch(_0x5a8630){case _0x28b521(0x18d):_0x1fec7['event']=_0x39a508;break;case _0x28b521(0x18f):_0x1fec7[_0x28b521(0x18f)]=_0x1fec7[_0x28b521(0x18f)]?_0x1fec7[_0x28b521(0x18f)]+'\x0a'+_0x39a508:_0x39a508;break;case'id':_0x1fec7['id']=_0x39a508;break;}}}}finally{_0x47f518[_0x28b521(0x187)]();}}function a146_0x160b(_0x18b952,_0x2f6328){_0x18b952=_0x18b952-0x17f;const _0x4dfe45=a146_0x4dfe();let _0x160b7b=_0x4dfe45[_0x18b952];return _0x160b7b;}function a146_0x4dfe(){const _0x5c9305=['slice','45AuVFbK','split','startsWith','789050DIjwAQ','parse','652884JHSXqf','getReader','pop','debug','body','658371EEbCyl','releaseLock','162fXFRFC','[LLM\x20API\x20SSE]\x20','1603280SyrIzT','decode','trim','event','455777ozgWdd','data','7707488MkNxdJ','3mBsDTr','4568452ONdcdI','Response\x20body\x20is\x20null'];a146_0x4dfe=function(){return _0x5c9305;};return a146_0x4dfe();}function parseSSEData(_0x4a6585){const _0x1dac98=a146_0x160b;try{return JSON[_0x1dac98(0x180)](_0x4a6585);}catch(_0x3c2fac){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4a6585,{'cause':_0x3c2fac});}}
1
+ (function(_0x52fe77,_0x19a9be){const _0x384d72=a146_0x42a4,_0x34d231=_0x52fe77();while(!![]){try{const _0x39fcde=-parseInt(_0x384d72(0xf3))/0x1*(parseInt(_0x384d72(0x109))/0x2)+-parseInt(_0x384d72(0xf0))/0x3+parseInt(_0x384d72(0xfa))/0x4+-parseInt(_0x384d72(0xff))/0x5*(parseInt(_0x384d72(0xf2))/0x6)+parseInt(_0x384d72(0x104))/0x7+parseInt(_0x384d72(0xfd))/0x8*(parseInt(_0x384d72(0x106))/0x9)+-parseInt(_0x384d72(0xf9))/0xa*(-parseInt(_0x384d72(0xf4))/0xb);if(_0x39fcde===_0x19a9be)break;else _0x34d231['push'](_0x34d231['shift']());}catch(_0x5dee28){_0x34d231['push'](_0x34d231['shift']());}}}(a146_0x5acf,0xa66fb));export async function*parseSSEStream(_0xcd7bf,_0x18d34c){const _0x3a14be=a146_0x42a4;if(!_0xcd7bf['body'])throw new Error(_0x3a14be(0x105));const _0x3042c4=_0xcd7bf[_0x3a14be(0xf6)][_0x3a14be(0xf8)](),_0x57b461=new TextDecoder();let _0x206cf1='',_0x250fb5={};try{while(!![]){const {done:_0x80ebbf,value:_0xca4393}=await _0x3042c4[_0x3a14be(0xef)]();if(_0x80ebbf){if(_0x250fb5['data']){_0x18d34c?.[_0x3a14be(0x107)](_0x3a14be(0xfb)+_0x250fb5['data']);const _0xf3b40d=parseSSEData(_0x250fb5[_0x3a14be(0xf7)]);yield _0xf3b40d;}break;}_0x206cf1+=_0x57b461['decode'](_0xca4393,{'stream':!![]});const _0xa4a46b=_0x206cf1[_0x3a14be(0x103)]('\x0a');_0x206cf1=_0xa4a46b[_0x3a14be(0x102)]()||'';for(const _0xc9a631 of _0xa4a46b){if(_0xc9a631[_0x3a14be(0x101)]()===''){if(_0x250fb5[_0x3a14be(0xf7)]){_0x18d34c?.[_0x3a14be(0x107)](_0x3a14be(0xfb)+_0x250fb5['data']);const _0x5365dd=parseSSEData(_0x250fb5[_0x3a14be(0xf7)]);yield _0x5365dd,_0x250fb5={};}continue;}if(_0xc9a631['startsWith'](':'))continue;const _0x4d69b9=_0xc9a631[_0x3a14be(0x100)](':');if(_0x4d69b9===-0x1)continue;const _0x309ce0=_0xc9a631[_0x3a14be(0x108)](0x0,_0x4d69b9);let _0x4e1441=_0xc9a631[_0x3a14be(0x108)](_0x4d69b9+0x1);_0x4e1441[_0x3a14be(0xfc)]('\x20')&&(_0x4e1441=_0x4e1441[_0x3a14be(0x108)](0x1));switch(_0x309ce0){case'event':_0x250fb5[_0x3a14be(0x10a)]=_0x4e1441;break;case _0x3a14be(0xf7):_0x250fb5['data']=_0x250fb5['data']?_0x250fb5[_0x3a14be(0xf7)]+'\x0a'+_0x4e1441:_0x4e1441;break;case'id':_0x250fb5['id']=_0x4e1441;break;}}}}finally{_0x3042c4[_0x3a14be(0xfe)]();}}function parseSSEData(_0x490b6c){const _0x205b57=a146_0x42a4;try{return JSON[_0x205b57(0xf5)](_0x490b6c);}catch(_0x54ea50){throw new Error(_0x205b57(0xf1)+_0x490b6c,{'cause':_0x54ea50});}}function a146_0x42a4(_0x47681c,_0x56731e){_0x47681c=_0x47681c-0xef;const _0x5acf99=a146_0x5acf();let _0x42a482=_0x5acf99[_0x47681c];return _0x42a482;}function a146_0x5acf(){const _0x2e4ea2=['2790564NnVItC','[LLM\x20API\x20SSE]\x20','startsWith','72KvEOks','releaseLock','35345fLOACP','indexOf','trim','pop','split','679532BLTmDU','Response\x20body\x20is\x20null','281835YXbMPw','debug','slice','1548934hqIEPB','event','read','190641fwZorL','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','522FqghhW','1egerlc','84964siqPAN','parse','body','data','getReader','1370gkxajJ'];a146_0x5acf=function(){return _0x2e4ea2;};return a146_0x5acf();}
@@ -1 +1 @@
1
- (function(_0x2dc9aa,_0xf55b96){const _0x4bbe39=a147_0x324a,_0x4074b0=_0x2dc9aa();while(!![]){try{const _0x1dabf7=parseInt(_0x4bbe39(0xe0))/0x1*(-parseInt(_0x4bbe39(0xe7))/0x2)+parseInt(_0x4bbe39(0xdf))/0x3+parseInt(_0x4bbe39(0xdd))/0x4*(parseInt(_0x4bbe39(0xe2))/0x5)+parseInt(_0x4bbe39(0xde))/0x6+-parseInt(_0x4bbe39(0xea))/0x7+parseInt(_0x4bbe39(0xda))/0x8+-parseInt(_0x4bbe39(0xe1))/0x9*(-parseInt(_0x4bbe39(0xec))/0xa);if(_0x1dabf7===_0xf55b96)break;else _0x4074b0['push'](_0x4074b0['shift']());}catch(_0x3d51f6){_0x4074b0['push'](_0x4074b0['shift']());}}}(a147_0x25a4,0x5a967));function a147_0x25a4(){const _0x6b548c=['floor','USER','1501984yyIXHl','length','Cannot\x20escape\x20empty\x20string\x20literal','236712dCTCKY','2666184LvoWXu','640266vlAEGR','196437pXGmzd','63QBQllN','5rPBpcQ','padStart','test','trim','toLowerCase','6sxIMCi','env','substring','1555337ZtqVpK','repeat','396910PuFjxr','replace','USERNAME','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a147_0x25a4=function(){return _0x6b548c;};return a147_0x25a4();}import a147_0x1aed20 from'string-width';function a147_0x324a(_0x1b99e3,_0x188614){_0x1b99e3=_0x1b99e3-0xd9;const _0x25a445=a147_0x25a4();let _0x324a67=_0x25a445[_0x1b99e3];return _0x324a67;}export function stringWidth(_0x1162b3){return a147_0x1aed20(_0x1162b3);}export function padEnd(_0x3f1857,_0x1206aa){const _0x2df753=a147_0x324a,_0x451b12=stringWidth(_0x3f1857);if(_0x451b12>=_0x1206aa)return _0x3f1857;return _0x3f1857+'\x20'[_0x2df753(0xeb)](_0x1206aa-_0x451b12);}export function padStart(_0x5ba7d0,_0x346be4){const _0x2fa778=a147_0x324a,_0x4e331c=stringWidth(_0x5ba7d0);if(_0x4e331c>=_0x346be4)return _0x5ba7d0;return'\x20'[_0x2fa778(0xeb)](_0x346be4-_0x4e331c)+_0x5ba7d0;}export function centerAlign(_0x471b87,_0x15549e){const _0x57c4e9=a147_0x324a,_0x49f1e8=stringWidth(_0x471b87);if(_0x49f1e8>_0x15549e){if(_0x15549e<=0x1)return'…'[_0x57c4e9(0xe9)](0x0,_0x15549e);let _0x53ed8f=_0x471b87;while(stringWidth(_0x53ed8f+'…')>_0x15549e){_0x53ed8f=_0x53ed8f['slice'](0x0,-0x1);}return _0x53ed8f+'…';}if(_0x49f1e8===_0x15549e)return _0x471b87;const _0x6b6011=_0x15549e-_0x49f1e8,_0x49b39a=Math[_0x57c4e9(0xf0)](_0x6b6011/0x2),_0x3fe3e7=_0x6b6011-_0x49b39a;return'\x20'[_0x57c4e9(0xeb)](_0x49b39a)+_0x471b87+'\x20'['repeat'](_0x3fe3e7);}export function escapeStringLiteral(_0x407cb2){const _0x1aaf8c=a147_0x324a;if(!_0x407cb2||_0x407cb2[_0x1aaf8c(0xe5)]()['length']===0x0)throw new Error(_0x1aaf8c(0xdc));const _0x4cdbe2=_0x407cb2['replace'](/'/g,'\x27\x27');return'\x27'+_0x4cdbe2+'\x27';}export function globToLike(_0x3c570d){const _0x318bb2=a147_0x324a;let _0x2344a6=_0x3c570d[_0x318bb2(0xed)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x318bb2(0xed)](/_/g,'\x5c_');return _0x2344a6=_0x2344a6['replace'](/\*/g,'%')[_0x318bb2(0xed)](/\?/g,'_'),_0x2344a6;}export function buildLikePattern(_0x46fd5d){const _0x361927=a147_0x324a;if(!_0x46fd5d||_0x46fd5d[_0x361927(0xe5)]()[_0x361927(0xdb)]===0x0)throw new Error(_0x361927(0xef));const _0x1353cf=globToLike(_0x46fd5d),_0x498901=_0x1353cf[_0x361927(0xed)](/'/g,'\x27\x27');return'\x27'+_0x498901+'\x27';}export function matchGlobPattern(_0x42465e,_0x279faf){const _0x33d118=a147_0x324a,_0x49a072=_0x279faf['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x33d118(0xed)](/\*/g,'.*')[_0x33d118(0xed)](/\?/g,'.'),_0x3475b8=new RegExp('^'+_0x49a072+'$');return _0x3475b8[_0x33d118(0xe4)](_0x42465e);}export function getSanitizedUsername(){const _0xf359e7=a147_0x324a,_0x4283de=process[_0xf359e7(0xe8)][_0xf359e7(0xd9)]||process[_0xf359e7(0xe8)][_0xf359e7(0xee)]||'unknown';return _0x4283de['replace'](/[^a-zA-Z0-9]/g,'')[_0xf359e7(0xe6)]();}export function generateRandomHex(){const _0x18f033=a147_0x324a,_0x1a1fb6=Math[_0x18f033(0xf0)](Math['random']()*0xfffff);return _0x1a1fb6['toString'](0x10)[_0x18f033(0xe3)](0x5,'0');}export function sanitizeFileName(_0x48b3d3){const _0x5dfd2f=a147_0x324a;return _0x48b3d3[_0x5dfd2f(0xe6)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5dfd2f(0xed)](/\s+/g,'-')[_0x5dfd2f(0xed)](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x594c3b,_0x340455){const _0x5d5471=a147_0x55f8,_0x36839a=_0x594c3b();while(!![]){try{const _0x5e1fb9=parseInt(_0x5d5471(0x1a9))/0x1+-parseInt(_0x5d5471(0x19f))/0x2+parseInt(_0x5d5471(0x196))/0x3*(parseInt(_0x5d5471(0x194))/0x4)+-parseInt(_0x5d5471(0x19c))/0x5*(parseInt(_0x5d5471(0x198))/0x6)+-parseInt(_0x5d5471(0x1aa))/0x7+-parseInt(_0x5d5471(0x192))/0x8+-parseInt(_0x5d5471(0x19b))/0x9*(-parseInt(_0x5d5471(0x1a5))/0xa);if(_0x5e1fb9===_0x340455)break;else _0x36839a['push'](_0x36839a['shift']());}catch(_0x4a2199){_0x36839a['push'](_0x36839a['shift']());}}}(a147_0x13f3,0xda753));import a147_0x33aa7b from'string-width';export function stringWidth(_0x526d71){return a147_0x33aa7b(_0x526d71);}export function padEnd(_0x307697,_0x2d955a){const _0xbeafc1=stringWidth(_0x307697);if(_0xbeafc1>=_0x2d955a)return _0x307697;return _0x307697+'\x20'['repeat'](_0x2d955a-_0xbeafc1);}export function padStart(_0x5c452c,_0x59951b){const _0x563b99=a147_0x55f8,_0x2dc00b=stringWidth(_0x5c452c);if(_0x2dc00b>=_0x59951b)return _0x5c452c;return'\x20'[_0x563b99(0x1a4)](_0x59951b-_0x2dc00b)+_0x5c452c;}export function centerAlign(_0x15e743,_0x16ed08){const _0x1ca344=a147_0x55f8,_0x83787a=stringWidth(_0x15e743);if(_0x83787a>_0x16ed08){if(_0x16ed08<=0x1)return'…'[_0x1ca344(0x1a8)](0x0,_0x16ed08);let _0x1dae4a=_0x15e743;while(stringWidth(_0x1dae4a+'…')>_0x16ed08){_0x1dae4a=_0x1dae4a[_0x1ca344(0x19e)](0x0,-0x1);}return _0x1dae4a+'…';}if(_0x83787a===_0x16ed08)return _0x15e743;const _0xd8a2b0=_0x16ed08-_0x83787a,_0x2292da=Math[_0x1ca344(0x19a)](_0xd8a2b0/0x2),_0x456e32=_0xd8a2b0-_0x2292da;return'\x20'[_0x1ca344(0x1a4)](_0x2292da)+_0x15e743+'\x20'[_0x1ca344(0x1a4)](_0x456e32);}export function escapeStringLiteral(_0x8490ec){const _0x5ee377=a147_0x55f8;if(!_0x8490ec||_0x8490ec[_0x5ee377(0x1a7)]()[_0x5ee377(0x1ac)]===0x0)throw new Error(_0x5ee377(0x199));const _0x29a0e8=_0x8490ec[_0x5ee377(0x1a0)](/'/g,'\x27\x27');return'\x27'+_0x29a0e8+'\x27';}export function globToLike(_0x57a4ea){const _0x2ce0d4=a147_0x55f8;let _0x5e7ae6=_0x57a4ea[_0x2ce0d4(0x1a0)](/\\/g,'\x5c\x5c')[_0x2ce0d4(0x1a0)](/%/g,'\x5c%')[_0x2ce0d4(0x1a0)](/_/g,'\x5c_');return _0x5e7ae6=_0x5e7ae6['replace'](/\*/g,'%')[_0x2ce0d4(0x1a0)](/\?/g,'_'),_0x5e7ae6;}export function buildLikePattern(_0x1c454c){const _0x4de43f=a147_0x55f8;if(!_0x1c454c||_0x1c454c['trim']()[_0x4de43f(0x1ac)]===0x0)throw new Error(_0x4de43f(0x1a3));const _0x178c2c=globToLike(_0x1c454c),_0x4db685=_0x178c2c[_0x4de43f(0x1a0)](/'/g,'\x27\x27');return'\x27'+_0x4db685+'\x27';}function a147_0x13f3(){const _0x2c9840=['toString','trim','substring','1193867QYdweL','11012932CzaYoP','USER','length','env','7656840HjCIlv','toLowerCase','6015388TkaPXk','USERNAME','3EtDrQT','\x5c$&','7636218EnxYBq','Cannot\x20escape\x20empty\x20string\x20literal','floor','3273129zCjLkM','5yDBEnn','test','slice','363826ChvdXf','replace','random','padStart','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','repeat','60bczZvo'];a147_0x13f3=function(){return _0x2c9840;};return a147_0x13f3();}function a147_0x55f8(_0x24276a,_0x283b74){_0x24276a=_0x24276a-0x191;const _0x13f399=a147_0x13f3();let _0x55f862=_0x13f399[_0x24276a];return _0x55f862;}export function matchGlobPattern(_0x6135fe,_0x322dbb){const _0x4868fc=a147_0x55f8,_0x16bc61=_0x322dbb[_0x4868fc(0x1a0)](/[.+^${}()|[\]\\]/g,_0x4868fc(0x197))[_0x4868fc(0x1a0)](/\*/g,'.*')[_0x4868fc(0x1a0)](/\?/g,'.'),_0x5c5332=new RegExp('^'+_0x16bc61+'$');return _0x5c5332[_0x4868fc(0x19d)](_0x6135fe);}export function getSanitizedUsername(){const _0x12e5c5=a147_0x55f8,_0x573e8e=process[_0x12e5c5(0x191)][_0x12e5c5(0x1ab)]||process[_0x12e5c5(0x191)][_0x12e5c5(0x195)]||'unknown';return _0x573e8e[_0x12e5c5(0x1a0)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x1ce926=a147_0x55f8,_0x3966f2=Math[_0x1ce926(0x19a)](Math[_0x1ce926(0x1a1)]()*0xfffff);return _0x3966f2[_0x1ce926(0x1a6)](0x10)[_0x1ce926(0x1a2)](0x5,'0');}export function sanitizeFileName(_0x5b1379){const _0x1dfec3=a147_0x55f8;return _0x5b1379[_0x1dfec3(0x193)]()[_0x1dfec3(0x1a0)](/[/\\:*?"<>|]/g,'-')[_0x1dfec3(0x1a0)](/\s+/g,'-')[_0x1dfec3(0x1a0)](/-+/g,'-')[_0x1dfec3(0x1a0)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0xaf86d2,_0x5b5519){const _0x5af286=a148_0x2585,_0x364c7f=_0xaf86d2();while(!![]){try{const _0x325259=-parseInt(_0x5af286(0x19b))/0x1+parseInt(_0x5af286(0x192))/0x2*(-parseInt(_0x5af286(0x195))/0x3)+-parseInt(_0x5af286(0x18c))/0x4+-parseInt(_0x5af286(0x197))/0x5*(parseInt(_0x5af286(0x18b))/0x6)+-parseInt(_0x5af286(0x193))/0x7+parseInt(_0x5af286(0x1a4))/0x8*(parseInt(_0x5af286(0x199))/0x9)+-parseInt(_0x5af286(0x18d))/0xa*(-parseInt(_0x5af286(0x196))/0xb);if(_0x325259===_0x5b5519)break;else _0x364c7f['push'](_0x364c7f['shift']());}catch(_0x158e54){_0x364c7f['push'](_0x364c7f['shift']());}}}(a148_0x4044,0xa68d2));function a148_0x2585(_0x447b46,_0x5221bc){_0x447b46=_0x447b46-0x18b;const _0x40443e=a148_0x4044();let _0x258524=_0x40443e[_0x447b46];return _0x258524;}function hasWildcard(_0x2ccfec){const _0x1b268d=a148_0x2585;return _0x2ccfec['includes']('*')||_0x2ccfec[_0x1b268d(0x19f)]('?');}export function parseTableReference(_0x4abc28){const _0x545006=a148_0x2585;if(!_0x4abc28||_0x4abc28[_0x545006(0x198)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x3d381b=_0x4abc28[_0x545006(0x198)](),_0x36ea71={'original':_0x3d381b},_0x55377f=_0x3d381b[_0x545006(0x1a2)]('.');if(_0x55377f[_0x545006(0x18f)]===0x1){const _0xde9f1c=_0x55377f[0x0];if(!_0xde9f1c)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x36ea71[_0x545006(0x19e)]=_0xde9f1c;}else{if(_0x55377f[_0x545006(0x18f)]===0x2){const [_0xafccc6,_0xc549d1]=_0x55377f;if(!_0xafccc6)throw new Error(_0x545006(0x190));if(!_0xc549d1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x36ea71[_0x545006(0x19c)]=_0xafccc6,_0x36ea71[_0x545006(0x19e)]=_0xc549d1;}else{if(_0x55377f[_0x545006(0x18f)]===0x3){const [_0x33df4e,_0x52bd7b,_0x2386af]=_0x55377f;if(!_0x33df4e||!_0x52bd7b||!_0x2386af)throw new Error(_0x545006(0x19a));_0x36ea71[_0x545006(0x191)]=_0x33df4e,_0x36ea71[_0x545006(0x19c)]=_0x52bd7b,_0x36ea71[_0x545006(0x19e)]=_0x2386af;}else throw new Error(_0x545006(0x194));}}return _0x36ea71;}export function formatTableReference(_0x62bf46){const _0x596f2a=a148_0x2585,_0x4386d6=[];return _0x62bf46[_0x596f2a(0x191)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x191)]),_0x62bf46[_0x596f2a(0x19c)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19c)]),_0x62bf46[_0x596f2a(0x19e)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19e)]),_0x4386d6[_0x596f2a(0x18e)]('.');}function a148_0x4044(){const _0x206560=['460635jYZJuS','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','6bUPLYt','33XEFIPb','6935OSNqpf','trim','63OTDMxH','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1160984ulzOWZ','database','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','includes','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','675856HuNDEJ','2580QKggsE','3482440cVDzps','10486990BGJOLS','join','length','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','catalog','361468VARNcR'];a148_0x4044=function(){return _0x206560;};return a148_0x4044();}export function validateTableListReference(_0x222de6){return undefined;}export function validateTableDescribeReference(_0x2c9ad0){const _0x44b172=a148_0x2585;if(!_0x2c9ad0[_0x44b172(0x19e)])return _0x44b172(0x1a3);if(_0x2c9ad0['database']&&hasWildcard(_0x2c9ad0[_0x44b172(0x19c)]))return _0x44b172(0x19d);if(hasWildcard(_0x2c9ad0[_0x44b172(0x19e)]))return _0x44b172(0x1a1);return undefined;}
1
+ function a148_0x2f89(){const _0x4a67da=['190852YThuTj','trim','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','2663255RVCLLI','join','9DAByXZ','9067652TjlKqs','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','569032ImqqOO','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','2FUUfWl','545850SliVlB','22332yxVXaL','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','length','push','192648UAMKqJ','split','255MxJEQz','includes','12INBNVg','catalog','database'];a148_0x2f89=function(){return _0x4a67da;};return a148_0x2f89();}(function(_0xfb5e81,_0x4c142b){const _0x857a9e=a148_0x3f2f,_0x2d085a=_0xfb5e81();while(!![]){try{const _0x4009f0=parseInt(_0x857a9e(0x6f))/0x1*(parseInt(_0x857a9e(0x79))/0x2)+parseInt(_0x857a9e(0x68))/0x3*(-parseInt(_0x857a9e(0x6c))/0x4)+-parseInt(_0x857a9e(0x6a))/0x5*(parseInt(_0x857a9e(0x7b))/0x6)+-parseInt(_0x857a9e(0x72))/0x7+-parseInt(_0x857a9e(0x77))/0x8*(parseInt(_0x857a9e(0x74))/0x9)+parseInt(_0x857a9e(0x7a))/0xa+parseInt(_0x857a9e(0x75))/0xb;if(_0x4009f0===_0x4c142b)break;else _0x2d085a['push'](_0x2d085a['shift']());}catch(_0x4763eb){_0x2d085a['push'](_0x2d085a['shift']());}}}(a148_0x2f89,0x398b9));function hasWildcard(_0xb93d45){const _0x3e813f=a148_0x3f2f;return _0xb93d45['includes']('*')||_0xb93d45[_0x3e813f(0x6b)]('?');}export function parseTableReference(_0x5f8ff7){const _0xa21060=a148_0x3f2f;if(!_0x5f8ff7||_0x5f8ff7[_0xa21060(0x70)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x5be2a2=_0x5f8ff7[_0xa21060(0x70)](),_0x2a9821={'original':_0x5be2a2},_0x562bb7=_0x5be2a2[_0xa21060(0x69)]('.');if(_0x562bb7[_0xa21060(0x7e)]===0x1){const _0x16069a=_0x562bb7[0x0];if(!_0x16069a)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x2a9821[_0xa21060(0x7c)]=_0x16069a;}else{if(_0x562bb7[_0xa21060(0x7e)]===0x2){const [_0x5e4bdf,_0x1fd951]=_0x562bb7;if(!_0x5e4bdf)throw new Error(_0xa21060(0x7d));if(!_0x1fd951)throw new Error(_0xa21060(0x71));_0x2a9821[_0xa21060(0x6e)]=_0x5e4bdf,_0x2a9821[_0xa21060(0x7c)]=_0x1fd951;}else{if(_0x562bb7['length']===0x3){const [_0x3f2968,_0x40dd4a,_0x4085b8]=_0x562bb7;if(!_0x3f2968||!_0x40dd4a||!_0x4085b8)throw new Error(_0xa21060(0x76));_0x2a9821[_0xa21060(0x6d)]=_0x3f2968,_0x2a9821[_0xa21060(0x6e)]=_0x40dd4a,_0x2a9821[_0xa21060(0x7c)]=_0x4085b8;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x2a9821;}export function formatTableReference(_0x1ffdff){const _0x1fe3b6=a148_0x3f2f,_0xb8734f=[];return _0x1ffdff[_0x1fe3b6(0x6d)]&&_0xb8734f['push'](_0x1ffdff[_0x1fe3b6(0x6d)]),_0x1ffdff[_0x1fe3b6(0x6e)]&&_0xb8734f[_0x1fe3b6(0x7f)](_0x1ffdff[_0x1fe3b6(0x6e)]),_0x1ffdff[_0x1fe3b6(0x7c)]&&_0xb8734f[_0x1fe3b6(0x7f)](_0x1ffdff['table']),_0xb8734f[_0x1fe3b6(0x73)]('.');}export function validateTableListReference(_0x6b0a3a){return undefined;}function a148_0x3f2f(_0x30792f,_0x12d314){_0x30792f=_0x30792f-0x68;const _0x2f89e7=a148_0x2f89();let _0x3f2fd3=_0x2f89e7[_0x30792f];return _0x3f2fd3;}export function validateTableDescribeReference(_0x3fe1d1){const _0x2912e7=a148_0x3f2f;if(!_0x3fe1d1[_0x2912e7(0x7c)])return _0x2912e7(0x78);if(_0x3fe1d1['database']&&hasWildcard(_0x3fe1d1['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x3fe1d1[_0x2912e7(0x7c)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a149_0x359bfa=a149_0xe018;(function(_0x470ca3,_0x2a8a75){const _0x360893=a149_0xe018,_0x232921=_0x470ca3();while(!![]){try{const _0x831b3d=parseInt(_0x360893(0x151))/0x1+parseInt(_0x360893(0x13a))/0x2+parseInt(_0x360893(0x174))/0x3*(-parseInt(_0x360893(0x140))/0x4)+-parseInt(_0x360893(0x156))/0x5+parseInt(_0x360893(0x15a))/0x6*(-parseInt(_0x360893(0x15b))/0x7)+parseInt(_0x360893(0x14a))/0x8*(-parseInt(_0x360893(0x16f))/0x9)+parseInt(_0x360893(0x162))/0xa*(parseInt(_0x360893(0x148))/0xb);if(_0x831b3d===_0x2a8a75)break;else _0x232921['push'](_0x232921['shift']());}catch(_0x3bd3cf){_0x232921['push'](_0x232921['shift']());}}}(a149_0x87d7,0xd9dc5));function a149_0xe018(_0x3e5013,_0x2c7da8){_0x3e5013=_0x3e5013-0x132;const _0x87d750=a149_0x87d7();let _0xe0187e=_0x87d750[_0x3e5013];return _0xe0187e;}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a149_0x5a3e15 from'chalk';function safeStringify(_0x3508b3){const _0x56596b=a149_0xe018;if(typeof _0x3508b3===_0x56596b(0x15e))return _0x3508b3;if(_0x3508b3 instanceof Error)return _0x3508b3['stack']||_0x3508b3['name']+':\x20'+_0x3508b3[_0x56596b(0x133)];try{return JSON[_0x56596b(0x136)](_0x3508b3,(_0x25f75e,_0x2c3d58)=>{const _0x278118=_0x56596b;if(_0x2c3d58 instanceof Error)return{'name':_0x2c3d58[_0x278118(0x165)],'message':_0x2c3d58[_0x278118(0x133)],'stack':_0x2c3d58[_0x278118(0x173)],'cause':_0x2c3d58[_0x278118(0x172)]};return _0x2c3d58;});}catch{return String(_0x3508b3);}}function getTimezoneOffset(){const _0x5d930c=a149_0xe018,_0x22cea7=-new Date()['getTimezoneOffset'](),_0x2f3857=Math[_0x5d930c(0x16d)](Math['abs'](_0x22cea7)/0x3c),_0x3b651e=Math[_0x5d930c(0x157)](_0x22cea7)%0x3c,_0x1d8bc9=_0x22cea7>=0x0?'+':'-';return''+_0x1d8bc9+_0x2f3857[_0x5d930c(0x147)]()[_0x5d930c(0x161)](0x2,'0')+_0x3b651e['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0xbed176=a149_0xe018,_0x131e81=new Date(),_0xcab1ab=_0x131e81[_0xbed176(0x13c)](),_0xa881f0=(_0x131e81['getMonth']()+0x1)['toString']()[_0xbed176(0x161)](0x2,'0'),_0x4d3f56=_0x131e81['getDate']()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x39908a=_0x131e81[_0xbed176(0x16c)]()['toString']()[_0xbed176(0x161)](0x2,'0'),_0xe7e57a=_0x131e81[_0xbed176(0x142)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x1333eb=_0x131e81[_0xbed176(0x15d)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x32de12=_0x131e81[_0xbed176(0x171)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x3,'0'),_0x443095=getTimezoneOffset();return _0xcab1ab+'-'+_0xa881f0+'-'+_0x4d3f56+'\x20'+_0x39908a+':'+_0xe7e57a+':'+_0x1333eb+'.'+_0x32de12+_0x443095;}function formatColoredLogEntry(_0x5758b6,_0x313ffc){const _0x2403b6=a149_0xe018,_0x3e84bd=formatTimestamp(),_0x1d36d7=_0x313ffc[_0x2403b6(0x164)](safeStringify)[_0x2403b6(0x149)]('\x20'),_0x4e808b=a149_0x5a3e15[_0x2403b6(0x154)](_0x3e84bd);let _0x98db95;switch(_0x5758b6){case'info':_0x98db95=a149_0x5a3e15[_0x2403b6(0x166)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x169):_0x98db95=a149_0x5a3e15[_0x2403b6(0x15f)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x16a):_0x98db95=a149_0x5a3e15[_0x2403b6(0x146)]('['+_0x5758b6+']');break;case _0x2403b6(0x14f):_0x98db95=a149_0x5a3e15[_0x2403b6(0x154)]('['+_0x5758b6+']');break;default:_0x98db95='['+_0x5758b6+']';}return _0x4e808b+'\x20'+_0x98db95+'\x20'+_0x1d36d7;}export var LogLevel;function a149_0x87d7(){const _0x2f45af=['trace','warn','error','write','getHours','floor','info','238617bXRDom','tdx','getMilliseconds','cause','stack','63321rzvLaQ','logs','message','TRACE','.log','stringify','end','logStream','mtime','3354136ZwLJIH','includes','getFullYear','Proxy\x20session\x20ended','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','WARN','116VRCOik','test','getMinutes','toISOString','Warning:\x20Failed\x20to\x20compress\x20','tdx-','red','toString','12727847GsAZAI','join','40GNyvtA','getLogPath','log','Warning:\x20Error\x20writing\x20to\x20tdx.log:','split','debug','ERROR','295778AObZWB','DEBUG','logLevel','gray','fileOnly','4451665brtPqc','abs','logDir','tdx.log','8670IClmtP','2919QIvedB','rotateOldLogs','getSeconds','string','yellow','.gz','padStart','10saQMHC','INFO','map','name','cyan','close'];a149_0x87d7=function(){return _0x2f45af;};return a149_0x87d7();}(function(_0x5c5211){const _0x5def85=a149_0xe018;_0x5c5211[_0x5c5211[_0x5def85(0x134)]=-0x2]=_0x5def85(0x134),_0x5c5211[_0x5c5211[_0x5def85(0x152)]=-0x1]='DEBUG',_0x5c5211[_0x5c5211[_0x5def85(0x163)]=0x0]=_0x5def85(0x163),_0x5c5211[_0x5c5211['WARN']=0x1]='WARN',_0x5c5211[_0x5c5211[_0x5def85(0x150)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a149_0x359bfa(0x138)];[a149_0x359bfa(0x158)];['logLevel'];[a149_0x359bfa(0x155)];constructor(_0x25b320=LogLevel[a149_0x359bfa(0x163)],_0x2ea08e=![]){const _0x155e5b=a149_0x359bfa;this['logDir']=join(homedir(),'.cache',_0x155e5b(0x170),_0x155e5b(0x132)),this[_0x155e5b(0x153)]=_0x25b320,this['fileOnly']=_0x2ea08e;}async['init'](){const _0x5bc89a=a149_0x359bfa;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x5bc89a(0x15c)]();const _0x2aa227=join(this[_0x5bc89a(0x158)],'tdx.log');this['logStream']=createWriteStream(_0x2aa227,{'flags':'a'}),this[_0x5bc89a(0x138)]['on'](_0x5bc89a(0x16a),_0x5f579c=>{const _0x5a0dde=_0x5bc89a;console[_0x5a0dde(0x16a)](_0x5a0dde(0x14d),_0x5f579c[_0x5a0dde(0x133)]);});}catch(_0x2dc7b0){console[_0x5bc89a(0x16a)](_0x5bc89a(0x13e),_0x2dc7b0);}}async['rotateOldLogs'](){const _0x311f24=a149_0x359bfa;try{const _0x5bb18e=await readdir(this[_0x311f24(0x158)]),_0x5e8c9c=new Date()[_0x311f24(0x143)]()[_0x311f24(0x14e)]('T')[0x0];if(_0x5bb18e[_0x311f24(0x13b)]('tdx.log')){const _0x22f43d=join(this[_0x311f24(0x158)],_0x311f24(0x159)),_0x4e978f=await stat(_0x22f43d),_0x257919=new Date(_0x4e978f[_0x311f24(0x139)])[_0x311f24(0x143)]()['split']('T')[0x0];if(_0x257919<_0x5e8c9c){const _0x5937fe=join(this[_0x311f24(0x158)],_0x311f24(0x145)+_0x257919+_0x311f24(0x135));await rename(_0x22f43d,_0x5937fe);}}const _0x3214ca=await readdir(this['logDir']),_0x266603=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1e9c25=_0x3214ca['filter'](_0x10158f=>_0x266603[_0x311f24(0x141)](_0x10158f));for(const _0xa79aad of _0x1e9c25){const _0x21e338=join(this[_0x311f24(0x158)],_0xa79aad),_0x302061=join(this[_0x311f24(0x158)],_0xa79aad+_0x311f24(0x160));try{await pipeline(createReadStream(_0x21e338),createGzip(),createWriteStream(_0x302061)),await unlink(_0x21e338);}catch(_0xd4a7aa){console[_0x311f24(0x16a)](_0x311f24(0x144)+_0xa79aad+':',_0xd4a7aa);}}}catch{}}[a149_0x359bfa(0x14f)](..._0x21bfd5){const _0x53c649=a149_0x359bfa;if(this[_0x53c649(0x153)]>LogLevel[_0x53c649(0x152)])return;const _0x156c68=formatColoredLogEntry(_0x53c649(0x14f),_0x21bfd5);this[_0x53c649(0x138)]?.[_0x53c649(0x16b)](_0x156c68+'\x0a');}[a149_0x359bfa(0x168)](..._0x2a144a){const _0x1aa9a4=a149_0x359bfa;if(this['logLevel']>LogLevel[_0x1aa9a4(0x134)])return;const _0x4265a1=formatColoredLogEntry(_0x1aa9a4(0x168),_0x2a144a);this['logStream']?.['write'](_0x4265a1+'\x0a');}[a149_0x359bfa(0x16e)](..._0x53e1ee){const _0x24ac12=a149_0x359bfa;if(this['logLevel']>LogLevel['INFO'])return;const _0x22ea7f=formatColoredLogEntry('info',_0x53e1ee);!this['fileOnly']&&console[_0x24ac12(0x14c)](_0x22ea7f),this[_0x24ac12(0x138)]?.[_0x24ac12(0x16b)](_0x22ea7f+'\x0a');}['warn'](..._0x47b711){const _0x29366a=a149_0x359bfa;if(this[_0x29366a(0x153)]>LogLevel[_0x29366a(0x13f)])return;const _0x23db20=formatColoredLogEntry('warn',_0x47b711);!this[_0x29366a(0x155)]&&console[_0x29366a(0x16a)](_0x23db20),this['logStream']?.[_0x29366a(0x16b)](_0x23db20+'\x0a');}[a149_0x359bfa(0x16a)](..._0x1eda00){const _0x5575f2=a149_0x359bfa,_0x1e715f=formatColoredLogEntry(_0x5575f2(0x16a),_0x1eda00);!this[_0x5575f2(0x155)]&&console[_0x5575f2(0x16a)](_0x1e715f),this[_0x5575f2(0x138)]?.[_0x5575f2(0x16b)](_0x1e715f+'\x0a');}async[a149_0x359bfa(0x167)](){const _0x15434c=a149_0x359bfa;return this[_0x15434c(0x16e)](_0x15434c(0x13d)),new Promise(_0x304d94=>{const _0x8b5f56=_0x15434c;this[_0x8b5f56(0x138)]?this[_0x8b5f56(0x138)][_0x8b5f56(0x137)](()=>{_0x304d94();}):_0x304d94();});}[a149_0x359bfa(0x14b)](){const _0xffa0e8=a149_0x359bfa;return join(this[_0xffa0e8(0x158)],_0xffa0e8(0x159));}}
1
+ const a149_0x48ec42=a149_0x3e43;(function(_0x25b8e4,_0x116abc){const _0x8f9e5e=a149_0x3e43,_0x188b72=_0x25b8e4();while(!![]){try{const _0x2991cd=parseInt(_0x8f9e5e(0x18f))/0x1*(parseInt(_0x8f9e5e(0x196))/0x2)+parseInt(_0x8f9e5e(0x18c))/0x3*(-parseInt(_0x8f9e5e(0x18b))/0x4)+parseInt(_0x8f9e5e(0x19f))/0x5*(-parseInt(_0x8f9e5e(0x194))/0x6)+parseInt(_0x8f9e5e(0x177))/0x7+-parseInt(_0x8f9e5e(0x197))/0x8+-parseInt(_0x8f9e5e(0x179))/0x9+parseInt(_0x8f9e5e(0x180))/0xa;if(_0x2991cd===_0x116abc)break;else _0x188b72['push'](_0x188b72['shift']());}catch(_0x11d970){_0x188b72['push'](_0x188b72['shift']());}}}(a149_0x2234,0x409a7));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a149_0x30ee02 from'chalk';function safeStringify(_0x21705b){const _0x29c12f=a149_0x3e43;if(typeof _0x21705b==='string')return _0x21705b;if(_0x21705b instanceof Error)return _0x21705b[_0x29c12f(0x19e)]||_0x21705b[_0x29c12f(0x183)]+':\x20'+_0x21705b[_0x29c12f(0x198)];try{return JSON[_0x29c12f(0x17a)](_0x21705b,(_0x6af8da,_0x2ce67f)=>{const _0x4be40c=_0x29c12f;if(_0x2ce67f instanceof Error)return{'name':_0x2ce67f[_0x4be40c(0x183)],'message':_0x2ce67f['message'],'stack':_0x2ce67f['stack'],'cause':_0x2ce67f['cause']};return _0x2ce67f;});}catch{return String(_0x21705b);}}function getTimezoneOffset(){const _0x3ffe59=a149_0x3e43,_0x313a0e=-new Date()[_0x3ffe59(0x19c)](),_0x22913d=Math['floor'](Math['abs'](_0x313a0e)/0x3c),_0x5dd78a=Math[_0x3ffe59(0x19d)](_0x313a0e)%0x3c,_0x1ba4be=_0x313a0e>=0x0?'+':'-';return''+_0x1ba4be+_0x22913d['toString']()['padStart'](0x2,'0')+_0x5dd78a[_0x3ffe59(0x184)]()[_0x3ffe59(0x1a3)](0x2,'0');}function a149_0x3e43(_0x4c93ea,_0x3dd278){_0x4c93ea=_0x4c93ea-0x169;const _0x2234da=a149_0x2234();let _0x3e4372=_0x2234da[_0x4c93ea];return _0x3e4372;}function a149_0x2234(){const _0x16eb1b=['fileOnly','500346dQYCCC','stringify','yellow','debug','error','gray','getLogPath','5914050MmloEK','WARN','tdx-','name','toString','DEBUG','rotateOldLogs','getHours','info','Warning:\x20Failed\x20to\x20compress\x20','log','1969576ryareq','3agFdnv','Warning:\x20Error\x20writing\x20to\x20tdx.log:','Proxy\x20session\x20ended','26124VvzRVJ','logDir','getSeconds','toISOString','getDate','92310VouPtQ','logLevel','26BnKnpm','3766464KexRgz','message','filter','logStream','tdx','getTimezoneOffset','abs','stack','25mWUxZQ','test','split','ERROR','padStart','getMinutes','getFullYear','.gz','TRACE','tdx.log','map','warn','getMilliseconds','INFO','end','cyan','.cache','close','trace','write','3005233XuMjVC'];a149_0x2234=function(){return _0x16eb1b;};return a149_0x2234();}function formatTimestamp(){const _0x16ab09=a149_0x3e43,_0x4af101=new Date(),_0x106ae5=_0x4af101[_0x16ab09(0x169)](),_0x907d64=(_0x4af101['getMonth']()+0x1)[_0x16ab09(0x184)]()['padStart'](0x2,'0'),_0xdfef5b=_0x4af101[_0x16ab09(0x193)]()[_0x16ab09(0x184)]()['padStart'](0x2,'0'),_0x448efc=_0x4af101[_0x16ab09(0x187)]()[_0x16ab09(0x184)]()[_0x16ab09(0x1a3)](0x2,'0'),_0x2b05d9=_0x4af101[_0x16ab09(0x1a4)]()[_0x16ab09(0x184)]()[_0x16ab09(0x1a3)](0x2,'0'),_0x193a85=_0x4af101[_0x16ab09(0x191)]()['toString']()['padStart'](0x2,'0'),_0x354325=_0x4af101[_0x16ab09(0x16f)]()[_0x16ab09(0x184)]()[_0x16ab09(0x1a3)](0x3,'0'),_0x1989f6=getTimezoneOffset();return _0x106ae5+'-'+_0x907d64+'-'+_0xdfef5b+'\x20'+_0x448efc+':'+_0x2b05d9+':'+_0x193a85+'.'+_0x354325+_0x1989f6;}function formatColoredLogEntry(_0x21b751,_0x294091){const _0x34a927=a149_0x3e43,_0x183c63=formatTimestamp(),_0x9a5eae=_0x294091[_0x34a927(0x16d)](safeStringify)['join']('\x20'),_0x404a5e=a149_0x30ee02[_0x34a927(0x17e)](_0x183c63);let _0x193b2c;switch(_0x21b751){case _0x34a927(0x188):_0x193b2c=a149_0x30ee02[_0x34a927(0x172)]('['+_0x21b751+']\x20');break;case _0x34a927(0x16e):_0x193b2c=a149_0x30ee02[_0x34a927(0x17b)]('['+_0x21b751+']\x20');break;case'error':_0x193b2c=a149_0x30ee02['red']('['+_0x21b751+']');break;case'debug':_0x193b2c=a149_0x30ee02[_0x34a927(0x17e)]('['+_0x21b751+']');break;default:_0x193b2c='['+_0x21b751+']';}return _0x404a5e+'\x20'+_0x193b2c+'\x20'+_0x9a5eae;}export var LogLevel;(function(_0x584622){const _0x126c98=a149_0x3e43;_0x584622[_0x584622[_0x126c98(0x16b)]=-0x2]=_0x126c98(0x16b),_0x584622[_0x584622[_0x126c98(0x185)]=-0x1]=_0x126c98(0x185),_0x584622[_0x584622['INFO']=0x0]=_0x126c98(0x170),_0x584622[_0x584622[_0x126c98(0x181)]=0x1]=_0x126c98(0x181),_0x584622[_0x584622[_0x126c98(0x1a2)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a149_0x48ec42(0x19a)];[a149_0x48ec42(0x190)];[a149_0x48ec42(0x195)];[a149_0x48ec42(0x178)];constructor(_0x557794=LogLevel[a149_0x48ec42(0x170)],_0x81396f=![]){const _0x380eaa=a149_0x48ec42;this['logDir']=join(homedir(),_0x380eaa(0x173),_0x380eaa(0x19b),'logs'),this['logLevel']=_0x557794,this[_0x380eaa(0x178)]=_0x81396f;}async['init'](){const _0x23a4ff=a149_0x48ec42;try{await mkdir(this[_0x23a4ff(0x190)],{'recursive':!![]}),await this[_0x23a4ff(0x186)]();const _0x5811fb=join(this[_0x23a4ff(0x190)],_0x23a4ff(0x16c));this['logStream']=createWriteStream(_0x5811fb,{'flags':'a'}),this['logStream']['on'](_0x23a4ff(0x17d),_0x465630=>{const _0x9bd0b2=_0x23a4ff;console['error'](_0x9bd0b2(0x18d),_0x465630[_0x9bd0b2(0x198)]);});}catch(_0xeaacb3){console[_0x23a4ff(0x17d)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0xeaacb3);}}async[a149_0x48ec42(0x186)](){const _0x112adf=a149_0x48ec42;try{const _0x58de2c=await readdir(this[_0x112adf(0x190)]),_0x4177bd=new Date()[_0x112adf(0x192)]()['split']('T')[0x0];if(_0x58de2c['includes'](_0x112adf(0x16c))){const _0x493a27=join(this['logDir'],_0x112adf(0x16c)),_0x2902f1=await stat(_0x493a27),_0x2a61b4=new Date(_0x2902f1['mtime'])[_0x112adf(0x192)]()[_0x112adf(0x1a1)]('T')[0x0];if(_0x2a61b4<_0x4177bd){const _0x29e9db=join(this[_0x112adf(0x190)],_0x112adf(0x182)+_0x2a61b4+'.log');await rename(_0x493a27,_0x29e9db);}}const _0x3456e9=await readdir(this[_0x112adf(0x190)]),_0x16778b=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x829fe5=_0x3456e9[_0x112adf(0x199)](_0x492b47=>_0x16778b[_0x112adf(0x1a0)](_0x492b47));for(const _0x4ca5bb of _0x829fe5){const _0x59c62a=join(this[_0x112adf(0x190)],_0x4ca5bb),_0x367b13=join(this['logDir'],_0x4ca5bb+_0x112adf(0x16a));try{await pipeline(createReadStream(_0x59c62a),createGzip(),createWriteStream(_0x367b13)),await unlink(_0x59c62a);}catch(_0x43cf16){console[_0x112adf(0x17d)](_0x112adf(0x189)+_0x4ca5bb+':',_0x43cf16);}}}catch{}}[a149_0x48ec42(0x17c)](..._0x3692d5){const _0x3b1da5=a149_0x48ec42;if(this[_0x3b1da5(0x195)]>LogLevel[_0x3b1da5(0x185)])return;const _0x4e1956=formatColoredLogEntry('debug',_0x3692d5);this[_0x3b1da5(0x19a)]?.['write'](_0x4e1956+'\x0a');}[a149_0x48ec42(0x175)](..._0x553445){const _0x337bf6=a149_0x48ec42;if(this[_0x337bf6(0x195)]>LogLevel[_0x337bf6(0x16b)])return;const _0x37fa35=formatColoredLogEntry(_0x337bf6(0x175),_0x553445);this['logStream']?.[_0x337bf6(0x176)](_0x37fa35+'\x0a');}[a149_0x48ec42(0x188)](..._0x565562){const _0x1c4ec5=a149_0x48ec42;if(this[_0x1c4ec5(0x195)]>LogLevel[_0x1c4ec5(0x170)])return;const _0x4caea8=formatColoredLogEntry(_0x1c4ec5(0x188),_0x565562);!this[_0x1c4ec5(0x178)]&&console[_0x1c4ec5(0x18a)](_0x4caea8),this['logStream']?.['write'](_0x4caea8+'\x0a');}[a149_0x48ec42(0x16e)](..._0x56e77c){const _0x488750=a149_0x48ec42;if(this[_0x488750(0x195)]>LogLevel[_0x488750(0x181)])return;const _0x20e8c5=formatColoredLogEntry('warn',_0x56e77c);!this[_0x488750(0x178)]&&console[_0x488750(0x17d)](_0x20e8c5),this[_0x488750(0x19a)]?.['write'](_0x20e8c5+'\x0a');}[a149_0x48ec42(0x17d)](..._0x550771){const _0x2ec1af=a149_0x48ec42,_0x2a7fbb=formatColoredLogEntry(_0x2ec1af(0x17d),_0x550771);!this[_0x2ec1af(0x178)]&&console['error'](_0x2a7fbb),this[_0x2ec1af(0x19a)]?.[_0x2ec1af(0x176)](_0x2a7fbb+'\x0a');}async[a149_0x48ec42(0x174)](){const _0x5761e4=a149_0x48ec42;return this[_0x5761e4(0x188)](_0x5761e4(0x18e)),new Promise(_0x410929=>{const _0x5e6398=_0x5761e4;this[_0x5e6398(0x19a)]?this[_0x5e6398(0x19a)][_0x5e6398(0x171)](()=>{_0x410929();}):_0x410929();});}[a149_0x48ec42(0x17f)](){const _0x34ddf6=a149_0x48ec42;return join(this['logDir'],_0x34ddf6(0x16c));}}
@@ -1 +1 @@
1
- const a150_0x4259cf=a150_0x2085;(function(_0x370147,_0x40cc7d){const _0x20181c=a150_0x2085,_0x1b61eb=_0x370147();while(!![]){try{const _0x1ff877=-parseInt(_0x20181c(0x98))/0x1*(parseInt(_0x20181c(0xa8))/0x2)+parseInt(_0x20181c(0xad))/0x3*(parseInt(_0x20181c(0xab))/0x4)+-parseInt(_0x20181c(0x9f))/0x5+parseInt(_0x20181c(0x9e))/0x6*(parseInt(_0x20181c(0xa9))/0x7)+parseInt(_0x20181c(0x8d))/0x8*(-parseInt(_0x20181c(0xa7))/0x9)+-parseInt(_0x20181c(0xaf))/0xa+parseInt(_0x20181c(0xa0))/0xb*(parseInt(_0x20181c(0x93))/0xc);if(_0x1ff877===_0x40cc7d)break;else _0x1b61eb['push'](_0x1b61eb['shift']());}catch(_0x5467b5){_0x1b61eb['push'](_0x1b61eb['shift']());}}}(a150_0xa035,0x84037));import{get}from'https';function a150_0x2085(_0x3afb9b,_0x38dd84){_0x3afb9b=_0x3afb9b-0x86;const _0xa03587=a150_0xa035();let _0x208542=_0xa03587[_0x3afb9b];return _0x208542;}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a150_0x5694a0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a150_0x4259cf(0x94),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x47f9d3=a150_0x4259cf,_0x3acd2b=getCacheDir();return join(_0x3acd2b,_0x47f9d3(0x9d));}function readCache(){const _0x484fde=a150_0x4259cf;try{const _0x4bc0de=getCacheFilePath(),_0xedd2ca=readFileSync(_0x4bc0de,_0x484fde(0x91));return JSON[_0x484fde(0x95)](_0xedd2ca);}catch{return null;}}function writeCache(_0x24b1bb){const _0x444170=a150_0x4259cf;try{const _0x26df9a=getCacheDir();mkdirSync(_0x26df9a,{'recursive':!![]});const _0x43340d={'lastCheck':new Date()[_0x444170(0x88)](),'latestVersion':_0x24b1bb},_0x2ae67f=getCacheFilePath();writeFileSync(_0x2ae67f,JSON['stringify'](_0x43340d,null,0x2),_0x444170(0x91));}catch{}}function isCacheValid(_0x45e36a){const _0x217211=a150_0x4259cf;if(!_0x45e36a)return![];const _0x2f5f24=new Date(_0x45e36a[_0x217211(0x97)])[_0x217211(0xa1)](),_0x463fb9=Date[_0x217211(0x9b)]();return _0x463fb9-_0x2f5f24<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x403486,_0x12599c)=>{const _0x52fe03=a150_0x2085,_0x4dd587=get(NPM_REGISTRY_URL,_0x47dfe5=>{const _0x4c152a=a150_0x2085;if(_0x47dfe5[_0x4c152a(0x86)]!==0xc8){clearTimeout(_0x475d52),_0x12599c(new Error(_0x4c152a(0xa6)+_0x47dfe5[_0x4c152a(0x86)]));return;}let _0x28f3be='';_0x47dfe5['on']('data',_0x393825=>{_0x28f3be+=_0x393825;}),_0x47dfe5['on'](_0x4c152a(0xa4),()=>{const _0x4af791=_0x4c152a;clearTimeout(_0x475d52);try{const _0x701fad=JSON['parse'](_0x28f3be);if(!valid(_0x701fad[_0x4af791(0x9a)])){_0x12599c(new Error(_0x4af791(0x8b)));return;}_0x403486(_0x701fad[_0x4af791(0x9a)]);}catch(_0x201e1d){_0x12599c(_0x201e1d);}});})['on'](_0x52fe03(0xaa),_0xd4dc2b=>{clearTimeout(_0x475d52),_0x12599c(_0xd4dc2b);}),_0x475d52=setTimeout(()=>{const _0x3e7ff4=_0x52fe03;_0x4dd587[_0x3e7ff4(0xb0)](),_0x12599c(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x18d15b){const _0x373134=a150_0x4259cf;try{const _0x25a1ec=readCache();if(isCacheValid(_0x25a1ec)){const _0x25df36=gt(_0x25a1ec[_0x373134(0x87)],_0x18d15b);return{'updateAvailable':_0x25df36,'currentVersion':_0x18d15b,'latestVersion':_0x25a1ec[_0x373134(0x87)]};}const _0x33ea3a=await fetchLatestVersion();writeCache(_0x33ea3a);const _0x5ddc99=gt(_0x33ea3a,_0x18d15b);return{'updateAvailable':_0x5ddc99,'currentVersion':_0x18d15b,'latestVersion':_0x33ea3a};}catch{return null;}}function a150_0xa035(){const _0x152247=['506791FvdrdG','write','version','now','currentVersion','last_version_check','12sXSpVQ','2406200nzXceI','3344YwLRTP','getTime','cyan','Run:','end','\x0aRun:\x20','HTTP\x20','5041287cbPHyg','2VMazYg','1736602pKmvnx','error','4WlBwWx','env','3220392XcAUwb','NO_COLOR','2845110jniEzH','destroy','updateAvailable','statusCode','latestVersion','toISOString','green','dim','Invalid\x20version\x20format','Update\x20available:','8hZVgFt','isTTY','stderr','\x0aUpdate\x20available:\x20','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','31728LIshRD','https://registry.npmjs.org/@treasuredata/tdx/latest','parse','gray','lastCheck'];a150_0xa035=function(){return _0x152247;};return a150_0xa035();}export function displayUpdateNotification(_0x4a999b){const _0x21a5e0=a150_0x4259cf;if(!_0x4a999b[_0x21a5e0(0xb1)])return;const _0x93de32=process['stderr'][_0x21a5e0(0x8e)]&&!process[_0x21a5e0(0xac)][_0x21a5e0(0xae)],_0x272c95=_0x93de32?a150_0x5694a0[_0x21a5e0(0x96)]('→'):'→',_0x38b242=_0x93de32?a150_0x5694a0[_0x21a5e0(0x8a)](_0x4a999b[_0x21a5e0(0x9c)]):_0x4a999b[_0x21a5e0(0x9c)],_0x3951b1=_0x93de32?a150_0x5694a0[_0x21a5e0(0x89)](_0x4a999b[_0x21a5e0(0x87)]):_0x4a999b[_0x21a5e0(0x87)],_0x538585=_0x93de32?a150_0x5694a0[_0x21a5e0(0xa2)](_0x21a5e0(0x92)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x540a3d=_0x93de32?'\x0a'+a150_0x5694a0['yellow'](_0x21a5e0(0x8c))+'\x20'+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+'\x0a'+a150_0x5694a0[_0x21a5e0(0x8a)](_0x21a5e0(0xa3))+'\x20'+_0x538585+'\x0a':_0x21a5e0(0x90)+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+_0x21a5e0(0xa5)+_0x538585+'\x0a';process[_0x21a5e0(0x8f)][_0x21a5e0(0x99)](_0x540a3d);}
1
+ const a150_0x373be9=a150_0x5eac;(function(_0x1cb18f,_0x3390a4){const _0x18641f=a150_0x5eac,_0x1cd056=_0x1cb18f();while(!![]){try{const _0x5364e0=-parseInt(_0x18641f(0x1dd))/0x1+-parseInt(_0x18641f(0x1c2))/0x2*(-parseInt(_0x18641f(0x1d3))/0x3)+-parseInt(_0x18641f(0x1e2))/0x4+-parseInt(_0x18641f(0x1ca))/0x5+-parseInt(_0x18641f(0x1d5))/0x6+parseInt(_0x18641f(0x1e0))/0x7*(parseInt(_0x18641f(0x1c8))/0x8)+parseInt(_0x18641f(0x1cb))/0x9;if(_0x5364e0===_0x3390a4)break;else _0x1cd056['push'](_0x1cd056['shift']());}catch(_0x5beb01){_0x1cd056['push'](_0x1cd056['shift']());}}}(a150_0xbb07,0x4e6d8));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';function a150_0x5eac(_0x4e4acf,_0x1425ac){_0x4e4acf=_0x4e4acf-0x1c1;const _0xbb079a=a150_0xbb07();let _0x5eac42=_0xbb079a[_0x4e4acf];return _0x5eac42;}import a150_0x110372 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a150_0x373be9(0x1e4),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x4e51ed=a150_0x373be9,_0x36e86e=getCacheDir();return join(_0x36e86e,_0x4e51ed(0x1d0));}function readCache(){const _0xf431e2=a150_0x373be9;try{const _0x53706d=getCacheFilePath(),_0x57ffc1=readFileSync(_0x53706d,_0xf431e2(0x1de));return JSON['parse'](_0x57ffc1);}catch{return null;}}function writeCache(_0x275d35){const _0x4dfea7=a150_0x373be9;try{const _0x36e96a=getCacheDir();mkdirSync(_0x36e96a,{'recursive':!![]});const _0xa45640={'lastCheck':new Date()[_0x4dfea7(0x1df)](),'latestVersion':_0x275d35},_0x135124=getCacheFilePath();writeFileSync(_0x135124,JSON['stringify'](_0xa45640,null,0x2),_0x4dfea7(0x1de));}catch{}}function isCacheValid(_0x48abe1){const _0x2a23e6=a150_0x373be9;if(!_0x48abe1)return![];const _0x2c98b2=new Date(_0x48abe1[_0x2a23e6(0x1c6)])['getTime'](),_0x3910bd=Date['now']();return _0x3910bd-_0x2c98b2<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4435c8,_0x39f5ce)=>{const _0xb310ac=a150_0x5eac,_0x540cbe=get(NPM_REGISTRY_URL,_0x20601b=>{const _0x59739d=a150_0x5eac;if(_0x20601b['statusCode']!==0xc8){clearTimeout(_0x5e5a8c),_0x39f5ce(new Error(_0x59739d(0x1cc)+_0x20601b[_0x59739d(0x1dc)]));return;}let _0x5a549d='';_0x20601b['on'](_0x59739d(0x1c1),_0x5c9726=>{_0x5a549d+=_0x5c9726;}),_0x20601b['on']('end',()=>{const _0x11a1a9=_0x59739d;clearTimeout(_0x5e5a8c);try{const _0x3f9622=JSON['parse'](_0x5a549d);if(!valid(_0x3f9622[_0x11a1a9(0x1d4)])){_0x39f5ce(new Error(_0x11a1a9(0x1d8)));return;}_0x4435c8(_0x3f9622[_0x11a1a9(0x1d4)]);}catch(_0x4fdd87){_0x39f5ce(_0x4fdd87);}});})['on'](_0xb310ac(0x1db),_0x183f56=>{clearTimeout(_0x5e5a8c),_0x39f5ce(_0x183f56);}),_0x5e5a8c=setTimeout(()=>{const _0x5bfbe1=_0xb310ac;_0x540cbe[_0x5bfbe1(0x1c4)](),_0x39f5ce(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x405e96){const _0x594bcf=a150_0x373be9;try{const _0x52dbd3=readCache();if(isCacheValid(_0x52dbd3)){const _0x28bd6e=gt(_0x52dbd3[_0x594bcf(0x1ce)],_0x405e96);return{'updateAvailable':_0x28bd6e,'currentVersion':_0x405e96,'latestVersion':_0x52dbd3[_0x594bcf(0x1ce)]};}const _0x21c90e=await fetchLatestVersion();writeCache(_0x21c90e);const _0x3985c2=gt(_0x21c90e,_0x405e96);return{'updateAvailable':_0x3985c2,'currentVersion':_0x405e96,'latestVersion':_0x21c90e};}catch{return null;}}export function displayUpdateNotification(_0x5510ee){const _0x556fa9=a150_0x373be9;if(!_0x5510ee['updateAvailable'])return;const _0x1a56f7=process[_0x556fa9(0x1d1)]['isTTY']&&!process[_0x556fa9(0x1cf)][_0x556fa9(0x1d9)],_0x9762f1=_0x1a56f7?a150_0x110372[_0x556fa9(0x1e3)]('→'):'→',_0x5db17e=_0x1a56f7?a150_0x110372['dim'](_0x5510ee[_0x556fa9(0x1c7)]):_0x5510ee[_0x556fa9(0x1c7)],_0x1eb9df=_0x1a56f7?a150_0x110372[_0x556fa9(0x1cd)](_0x5510ee[_0x556fa9(0x1ce)]):_0x5510ee[_0x556fa9(0x1ce)],_0x310af7=_0x1a56f7?a150_0x110372[_0x556fa9(0x1d2)](_0x556fa9(0x1c5)):_0x556fa9(0x1c5),_0x2207a7=_0x1a56f7?'\x0a'+a150_0x110372[_0x556fa9(0x1e1)](_0x556fa9(0x1d7))+'\x20'+_0x5db17e+'\x20'+_0x9762f1+'\x20'+_0x1eb9df+'\x0a'+a150_0x110372['dim'](_0x556fa9(0x1da))+'\x20'+_0x310af7+'\x0a':_0x556fa9(0x1d6)+_0x5db17e+'\x20'+_0x9762f1+'\x20'+_0x1eb9df+_0x556fa9(0x1c9)+_0x310af7+'\x0a';process[_0x556fa9(0x1d1)][_0x556fa9(0x1c3)](_0x2207a7);}function a150_0xbb07(){const _0x4c0c75=['214676AFGkNl','utf-8','toISOString','1363019FfzWXi','yellow','803632BAstHP','gray','https://registry.npmjs.org/@treasuredata/tdx/latest','data','526mrHqit','write','destroy','npm\x20install\x20-g\x20@treasuredata/tdx@latest','lastCheck','currentVersion','8sEgVii','\x0aRun:\x20','2600195qlsuEJ','6916140yOlUAb','HTTP\x20','green','latestVersion','env','last_version_check','stderr','cyan','7050IvdUzD','version','1946184IVikiD','\x0aUpdate\x20available:\x20','Update\x20available:','Invalid\x20version\x20format','NO_COLOR','Run:','error','statusCode'];a150_0xbb07=function(){return _0x4c0c75;};return a150_0xbb07();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
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": {
@@ -74,6 +74,7 @@
74
74
  "commander": "^14.0.2",
75
75
  "dotenv": "^17.2.3",
76
76
  "fastify": "^5.2.0",
77
+ "ignore": "^7.0.5",
77
78
  "json-bigint": "^1.0.0",
78
79
  "ora": "^9.0.0",
79
80
  "prompts": "^2.4.2",