@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app/add.js +1 -1
  18. package/lib/commands/app/index.js +1 -1
  19. package/lib/commands/app/list.js +1 -1
  20. package/lib/commands/app/remote.js +1 -1
  21. package/lib/commands/app/remove.js +1 -1
  22. package/lib/commands/app/shared.js +1 -1
  23. package/lib/commands/app/use.js +1 -1
  24. package/lib/commands/auth.js +1 -1
  25. package/lib/commands/bff/delete.js +1 -1
  26. package/lib/commands/bff/detail.js +1 -1
  27. package/lib/commands/bff/index.js +1 -1
  28. package/lib/commands/bff/list.js +1 -1
  29. package/lib/commands/bff/new.js +1 -1
  30. package/lib/commands/bff/pull.js +1 -1
  31. package/lib/commands/bff/push.js +1 -1
  32. package/lib/commands/bff/status.js +1 -1
  33. package/lib/commands/build.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/create.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/doctor.js +1 -1
  53. package/lib/commands/init.js +1 -1
  54. package/lib/commands/logout.js +1 -1
  55. package/lib/commands/logs.js +1 -1
  56. package/lib/commands/menu/index.js +1 -1
  57. package/lib/commands/menu/shared/compare-table.js +1 -1
  58. package/lib/commands/menu/shared/index.js +1 -1
  59. package/lib/commands/menu/shared/inquirer.js +1 -1
  60. package/lib/commands/menu/shared/local-pages.js +1 -1
  61. package/lib/commands/menu/shared/logic.js +1 -1
  62. package/lib/commands/menu/shared/service.js +1 -1
  63. package/lib/commands/menu/shared/sync-core.js +1 -1
  64. package/lib/commands/menu/shared/update-core.js +1 -1
  65. package/lib/commands/menu/shared/valid-url.js +1 -1
  66. package/lib/commands/menu/sync.js +1 -1
  67. package/lib/commands/menu/update.js +1 -1
  68. package/lib/commands/preview.js +1 -1
  69. package/lib/commands/project-upgrade.js +1 -1
  70. package/lib/commands/registry.js +1 -1
  71. package/lib/commands/run.js +1 -1
  72. package/lib/commands/skill.js +1 -1
  73. package/lib/commands/smart-init.js +1 -1
  74. package/lib/commands/sql/detail.js +1 -1
  75. package/lib/commands/sql/exec.js +1 -1
  76. package/lib/commands/sql/index.js +1 -1
  77. package/lib/commands/sql/list.js +1 -1
  78. package/lib/commands/sql/save.js +1 -1
  79. package/lib/commands/sql/validate.js +1 -1
  80. package/lib/commands/start.js +1 -1
  81. package/lib/constant/cli.js +1 -1
  82. package/lib/constant/domain.js +1 -1
  83. package/lib/constant/env.js +1 -1
  84. package/lib/context.js +1 -1
  85. package/lib/core/alias-resolver.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/bff/config.js +1 -1
  88. package/lib/core/bff/file-system.js +1 -1
  89. package/lib/core/bff/hash.js +1 -1
  90. package/lib/core/bff/lock.js +1 -1
  91. package/lib/core/bff/utils.js +1 -1
  92. package/lib/core/db-resolver.js +1 -1
  93. package/lib/core/sql-validator.js +1 -1
  94. package/lib/create-app/enhanced-guided-create.js +1 -1
  95. package/lib/create-app/format-elapsed.js +1 -1
  96. package/lib/create-app/main.js +1 -1
  97. package/lib/create-app/non-interactive.js +1 -1
  98. package/lib/create-app/use-copy-project-template.js +1 -1
  99. package/lib/create-app/use-format-code.js +1 -1
  100. package/lib/create-app/use-install-dependencies.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/types.js +1 -1
  109. package/lib/generated/build-info.js +1 -1
  110. package/lib/help.js +1 -1
  111. package/lib/init/main.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/telemetry/send-cli-trace-log.js +1 -1
  118. package/lib/utils/ai_config.js +1 -1
  119. package/lib/utils/cdn-config.js +1 -1
  120. package/lib/utils/check-sdk-version.js +1 -1
  121. package/lib/utils/cli-version-check.js +1 -1
  122. package/lib/utils/config.js +1 -1
  123. package/lib/utils/copy-directory.js +1 -1
  124. package/lib/utils/file-utils.js +1 -1
  125. package/lib/utils/guides-cdn.js +1 -1
  126. package/lib/utils/http-client.js +1 -1
  127. package/lib/utils/is-non-interactive.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/rules-cdn.js +1 -1
  131. package/lib/utils/sleep.js +1 -1
  132. package/lib/utils/template-replacer.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/with-active-cookie.js +1 -1
  135. package/package.json +3 -3
@@ -1 +1 @@
1
- (function(_0xc3c524,_0x30973c){var _0x3dc47d=a115_0x28b5,_0x2bbeec=_0xc3c524();while(!![]){try{var _0x349903=parseInt(_0x3dc47d(0xd9))/0x1*(parseInt(_0x3dc47d(0xdb))/0x2)+-parseInt(_0x3dc47d(0xda))/0x3*(-parseInt(_0x3dc47d(0xde))/0x4)+-parseInt(_0x3dc47d(0xd7))/0x5+-parseInt(_0x3dc47d(0xd5))/0x6+-parseInt(_0x3dc47d(0xd4))/0x7+-parseInt(_0x3dc47d(0xd8))/0x8+parseInt(_0x3dc47d(0xdc))/0x9;if(_0x349903===_0x30973c)break;else _0x2bbeec['push'](_0x2bbeec['shift']());}catch(_0x12f52c){_0x2bbeec['push'](_0x2bbeec['shift']());}}}(a115_0x373d,0x94c6d));import{sendCliTraceLog}from'./send-cli-trace-log.js';function a115_0x373d(){var _0x45ae6c=['18107820Yztall','service','152MVEONX','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','5839225gvzDoU','3522186LCmLjx','cli.help','3591585HzzXtG','3378752fxDzRi','67680wReutT','64806xaSSMq','10KTIDVn'];a115_0x373d=function(){return _0x45ae6c;};return a115_0x373d();}function a115_0x28b5(_0x575b60,_0x2dd074){_0x575b60=_0x575b60-0xd3;var _0x373df9=a115_0x373d();var _0x28b513=_0x373df9[_0x575b60];return _0x28b513;}export async function reportCliHelpTrace(_0x5eb1b4,_0xdde000){var _0x19f00f=a115_0x28b5;try{await sendCliTraceLog({'spanName':_0x19f00f(0xd6),'logData':{'rabetbase.help.kind':_0x5eb1b4,..._0xdde000?.['service']&&{'rabetbase.help.service':_0xdde000[_0x19f00f(0xdd)]}}});}catch(_0xe00e7c){console[_0x19f00f(0xd3)](_0x19f00f(0xdf),_0xe00e7c);}}
1
+ (function(_0x34242d,_0x23f542){var _0x14291f=a115_0x3ee3,_0x415348=_0x34242d();while(!![]){try{var _0x4cb5da=-parseInt(_0x14291f(0x143))/0x1+parseInt(_0x14291f(0x141))/0x2*(parseInt(_0x14291f(0x13e))/0x3)+parseInt(_0x14291f(0x142))/0x4+-parseInt(_0x14291f(0x13d))/0x5+-parseInt(_0x14291f(0x145))/0x6+-parseInt(_0x14291f(0x144))/0x7+parseInt(_0x14291f(0x140))/0x8;if(_0x4cb5da===_0x23f542)break;else _0x415348['push'](_0x415348['shift']());}catch(_0x4e2285){_0x415348['push'](_0x415348['shift']());}}}(a115_0xdc4d,0x4e352));function a115_0xdc4d(){var _0x1a0cfe=['service','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','2801500VIfSqR','6lhjeAV','error','9846512ttUcIj','251878xOqCpW','726444ZhTTns','436469uoEInj','2092300wgVJUN','289776iweehA'];a115_0xdc4d=function(){return _0x1a0cfe;};return a115_0xdc4d();}function a115_0x3ee3(_0xac4a2a,_0x3ed7f1){_0xac4a2a=_0xac4a2a-0x13b;var _0xdc4d6f=a115_0xdc4d();var _0x3ee33c=_0xdc4d6f[_0xac4a2a];return _0x3ee33c;}import{sendCliTraceLog}from'./send-cli-trace-log.js';export async function reportCliHelpTrace(_0x15a934,_0x2d56db){var _0x53b267=a115_0x3ee3;try{await sendCliTraceLog({'spanName':_0x53b267(0x13b),'logData':{'rabetbase.help.kind':_0x15a934,..._0x2d56db?.[_0x53b267(0x146)]&&{'rabetbase.help.service':_0x2d56db[_0x53b267(0x146)]}}});}catch(_0x5b89ad){console[_0x53b267(0x13f)](_0x53b267(0x13c),_0x5b89ad);}}
@@ -1 +1 @@
1
- const a116_0x489cae=a116_0x54e0;(function(_0x447c20,_0x55e579){const _0x16776a=a116_0x54e0,_0x2e402f=_0x447c20();while(!![]){try{const _0x5f4b0f=-parseInt(_0x16776a(0x1d6))/0x1+parseInt(_0x16776a(0x1cf))/0x2+-parseInt(_0x16776a(0x1d1))/0x3*(-parseInt(_0x16776a(0x1d5))/0x4)+parseInt(_0x16776a(0x1db))/0x5*(parseInt(_0x16776a(0x1ce))/0x6)+-parseInt(_0x16776a(0x1d3))/0x7*(-parseInt(_0x16776a(0x1d4))/0x8)+parseInt(_0x16776a(0x1e1))/0x9+-parseInt(_0x16776a(0x1d9))/0xa*(parseInt(_0x16776a(0x1d7))/0xb);if(_0x5f4b0f===_0x55e579)break;else _0x2e402f['push'](_0x2e402f['shift']());}catch(_0x21eaeb){_0x2e402f['push'](_0x2e402f['shift']());}}}(a116_0x5bd1,0x40a5d));function a116_0x5bd1(){const _0x1a02b7=['userInfo','4589001NEYago','6oGdPkp','455360xUyzzd','username','17583RPTwFb','rabetbase-cli','43421OZAAVN','344zypiBT','280jxrMDo','461931eLAAcu','54505jJZVQQ','nickname','1550hUjVbF','production','400925onQiGd','unknown','../../package.json','name','user'];a116_0x5bd1=function(){return _0x1a02b7;};return a116_0x5bd1();}import{createRequire}from'node:module';import a116_0x325af4 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';const require=createRequire(import.meta.url),pkg=require(a116_0x489cae(0x1dd));let cliOtelTraceInitialized=![];function a116_0x54e0(_0x2facf4,_0x5a1fe9){_0x2facf4=_0x2facf4-0x1ce;const _0x5bd19e=a116_0x5bd1();let _0x54e031=_0x5bd19e[_0x2facf4];return _0x54e031;}export async function ensureCliOtelTraceConfig(){const _0x4be9c4=a116_0x489cae,_0x95e463=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1c3ae0=_0x95e463?.[_0x4be9c4(0x1df)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':pkg[_0x4be9c4(0x1de)],'serviceVersion':GIT_COMMIT!==_0x4be9c4(0x1dc)?VERSION+'+'+GIT_COMMIT:pkg['version'],'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x4be9c4(0x1da)),'username':_0x1c3ae0?.[_0x4be9c4(0x1d0)]??a116_0x325af4[_0x4be9c4(0x1e0)]()[_0x4be9c4(0x1d0)]??_0x4be9c4(0x1d2),..._0x1c3ae0&&{'nickname':_0x1c3ae0[_0x4be9c4(0x1d8)]}}),cliOtelTraceInitialized=!![];}return _0x95e463;}
1
+ const a116_0x5f4342=a116_0x3f71;function a116_0x3f71(_0xd0cab5,_0x2afa89){_0xd0cab5=_0xd0cab5-0x152;const _0x42d0eb=a116_0x42d0();let _0x3f7140=_0x42d0eb[_0xd0cab5];return _0x3f7140;}function a116_0x42d0(){const _0x404b1e=['user','4XGWnhl','nickname','22NKCAPM','production','5bjqedF','104069yOMUfY','318672FnWFRB','version','username','625040yaZACf','3962970APXnWG','daily','unknown','../../package.json','1149828TlcdOx','156664eQErjX','33039RvBCvF','userInfo','376VSOYnG'];a116_0x42d0=function(){return _0x404b1e;};return a116_0x42d0();}(function(_0x55b40,_0x111b5c){const _0x45d735=a116_0x3f71,_0x424091=_0x55b40();while(!![]){try{const _0x21c55e=-parseInt(_0x45d735(0x154))/0x1*(-parseInt(_0x45d735(0x163))/0x2)+parseInt(_0x45d735(0x15a))/0x3+parseInt(_0x45d735(0x15d))/0x4+-parseInt(_0x45d735(0x158))/0x5*(-parseInt(_0x45d735(0x162))/0x6)+parseInt(_0x45d735(0x159))/0x7+-parseInt(_0x45d735(0x152))/0x8*(-parseInt(_0x45d735(0x164))/0x9)+parseInt(_0x45d735(0x15e))/0xa*(-parseInt(_0x45d735(0x156))/0xb);if(_0x21c55e===_0x111b5c)break;else _0x424091['push'](_0x424091['shift']());}catch(_0x374bcd){_0x424091['push'](_0x424091['shift']());}}}(a116_0x42d0,0x279d4));import{createRequire}from'node:module';import a116_0x55cc94 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';const require=createRequire(import.meta.url),pkg=require(a116_0x5f4342(0x161));let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2f6730=a116_0x5f4342,_0x5afaa7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1a7fab=_0x5afaa7?.[_0x2f6730(0x153)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':pkg['name'],'serviceVersion':GIT_COMMIT!==_0x2f6730(0x160)?VERSION+'+'+GIT_COMMIT:pkg[_0x2f6730(0x15b)],'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2f6730(0x15f):_0x2f6730(0x157)),'username':_0x1a7fab?.[_0x2f6730(0x15c)]??a116_0x55cc94[_0x2f6730(0x165)]()['username']??'rabetbase-cli',..._0x1a7fab&&{'nickname':_0x1a7fab[_0x2f6730(0x155)]}}),cliOtelTraceInitialized=!![];}return _0x5afaa7;}
@@ -1 +1 @@
1
- (function(_0x4a58a7,_0x3e7f0f){const _0x44936c=a117_0x3c15,_0x5a995c=_0x4a58a7();while(!![]){try{const _0x2e5803=-parseInt(_0x44936c(0x19c))/0x1+-parseInt(_0x44936c(0x1a1))/0x2*(parseInt(_0x44936c(0x1a4))/0x3)+-parseInt(_0x44936c(0x1a2))/0x4*(-parseInt(_0x44936c(0x1a3))/0x5)+-parseInt(_0x44936c(0x199))/0x6*(-parseInt(_0x44936c(0x19d))/0x7)+-parseInt(_0x44936c(0x19a))/0x8*(parseInt(_0x44936c(0x197))/0x9)+-parseInt(_0x44936c(0x19f))/0xa+parseInt(_0x44936c(0x1a0))/0xb;if(_0x2e5803===_0x3e7f0f)break;else _0x5a995c['push'](_0x5a995c['shift']());}catch(_0x19d59c){_0x5a995c['push'](_0x5a995c['shift']());}}}(a117_0x548b,0xc386c));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a117_0x548b(){const _0x434442=['once','983461XNFiOv','7HCnQiR','then','11262970ffGFPv','13119524lLOVYf','497774ZdEVry','4bbuDIr','7011925pJrZQU','3nbTjiW','SIGTERM','SIGINT','beforeExit','1972233zXtfZc','exit','4701534ScOgDW','8kCSqen'];a117_0x548b=function(){return _0x434442;};return a117_0x548b();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a117_0x3c15(_0x10d645,_0x104c59){_0x10d645=_0x10d645-0x195;const _0x548b9f=a117_0x548b();let _0x3c1544=_0x548b9f[_0x10d645];return _0x3c1544;}export function registerOtelShutdownOnExit(){const _0x6999a8=a117_0x3c15;process[_0x6999a8(0x19b)](_0x6999a8(0x196),()=>{void flushOtelNodeIfUsed();});const _0x11bb0e=()=>{const _0x11a82b=_0x6999a8;void flushOtelNodeIfUsed()[_0x11a82b(0x19e)](()=>process[_0x11a82b(0x198)](0x0));};process[_0x6999a8(0x19b)](_0x6999a8(0x195),_0x11bb0e),process[_0x6999a8(0x19b)](_0x6999a8(0x1a5),_0x11bb0e);}export async function exitWithOtelShutdown(_0x4d3de1){const _0x4c6943=a117_0x3c15;await flushOtelNodeIfUsed(),process[_0x4c6943(0x198)](_0x4d3de1);}
1
+ (function(_0x2b15ce,_0x4ddc52){const _0x1523f8=a117_0x4f96,_0xb7e5f1=_0x2b15ce();while(!![]){try{const _0x300cd9=parseInt(_0x1523f8(0xea))/0x1*(parseInt(_0x1523f8(0xe5))/0x2)+parseInt(_0x1523f8(0xde))/0x3*(-parseInt(_0x1523f8(0xe8))/0x4)+parseInt(_0x1523f8(0xec))/0x5*(parseInt(_0x1523f8(0xe4))/0x6)+-parseInt(_0x1523f8(0xe3))/0x7*(parseInt(_0x1523f8(0xe6))/0x8)+-parseInt(_0x1523f8(0xee))/0x9*(-parseInt(_0x1523f8(0xed))/0xa)+parseInt(_0x1523f8(0xe1))/0xb*(-parseInt(_0x1523f8(0xe0))/0xc)+-parseInt(_0x1523f8(0xdd))/0xd;if(_0x300cd9===_0x4ddc52)break;else _0xb7e5f1['push'](_0xb7e5f1['shift']());}catch(_0x47d020){_0xb7e5f1['push'](_0xb7e5f1['shift']());}}}(a117_0x5cfe,0x5c548));function a117_0x5cfe(){const _0x50b1d7=['994197CqHFrj','SIGINT','81180LWrYwL','869xZbhYq','then','35MAPveI','54wlkaQL','8cWUTqO','155592qCdcfF','once','4TXCNqV','beforeExit','164920swYZJZ','SIGTERM','253455DjScYM','10rKZkdH','4547943glnBOc','exit','3639519fOAegO'];a117_0x5cfe=function(){return _0x50b1d7;};return a117_0x5cfe();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a117_0x4f96(_0x5383c8,_0xd2273d){_0x5383c8=_0x5383c8-0xdd;const _0x5cfe0e=a117_0x5cfe();let _0x4f9623=_0x5cfe0e[_0x5383c8];return _0x4f9623;}export function registerOtelShutdownOnExit(){const _0x40c41b=a117_0x4f96;process[_0x40c41b(0xe7)](_0x40c41b(0xe9),()=>{void flushOtelNodeIfUsed();});const _0x11ad13=()=>{const _0xa26282=_0x40c41b;void flushOtelNodeIfUsed()[_0xa26282(0xe2)](()=>process[_0xa26282(0xef)](0x0));};process[_0x40c41b(0xe7)](_0x40c41b(0xdf),_0x11ad13),process[_0x40c41b(0xe7)](_0x40c41b(0xeb),_0x11ad13);}export async function exitWithOtelShutdown(_0x3f3dc2){const _0x1aefcd=a117_0x4f96;await flushOtelNodeIfUsed(),process[_0x1aefcd(0xef)](_0x3f3dc2);}
@@ -1 +1 @@
1
- const a118_0x583a41=a118_0x44ef;(function(_0x47ad43,_0x154356){const _0x2bd723=a118_0x44ef,_0x4a8816=_0x47ad43();while(!![]){try{const _0x359554=-parseInt(_0x2bd723(0x134))/0x1*(-parseInt(_0x2bd723(0x13f))/0x2)+-parseInt(_0x2bd723(0x13b))/0x3*(-parseInt(_0x2bd723(0x13c))/0x4)+parseInt(_0x2bd723(0x13e))/0x5*(parseInt(_0x2bd723(0x130))/0x6)+-parseInt(_0x2bd723(0x12f))/0x7*(parseInt(_0x2bd723(0x138))/0x8)+-parseInt(_0x2bd723(0x13d))/0x9+parseInt(_0x2bd723(0x137))/0xa+-parseInt(_0x2bd723(0x139))/0xb*(parseInt(_0x2bd723(0x132))/0xc);if(_0x359554===_0x154356)break;else _0x4a8816['push'](_0x4a8816['shift']());}catch(_0x3a2505){_0x4a8816['push'](_0x4a8816['shift']());}}}(a118_0x4b8a,0xe9c6d));import{createRequire}from'node:module';import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';function a118_0x44ef(_0xe6717f,_0x48a50){_0xe6717f=_0xe6717f-0x12f;const _0x4b8a94=a118_0x4b8a();let _0x44ef37=_0x4b8a94[_0xe6717f];return _0x44ef37;}const require=createRequire(import.meta.url),pkg=require('../../package.json'),DEFAULT_TRACE_NAME=a118_0x583a41(0x136);function a118_0x4b8a(){const _0x190ee9=['logData','rabetbase-cli','1308210qTJpaV','2930888IbrfTa','16838701sCjLEg','manual','3vnZcLG','4628884hogKss','130347hpREne','25MWqkFG','1524954CGJOOV','spanName','7ngkoVw','982398TUOlkA','version','12ZKFOwa','traceparent','1XkCjTi'];a118_0x4b8a=function(){return _0x190ee9;};return a118_0x4b8a();}export async function sendCliTraceLog(_0x3ead34){const _0x568d62=a118_0x583a41;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3ead34['traceName']??DEFAULT_TRACE_NAME,'version':_0x3ead34['version']??pkg[_0x568d62(0x131)],'spanName':_0x3ead34[_0x568d62(0x140)],'eventType':_0x568d62(0x13a),'logData':_0x3ead34[_0x568d62(0x135)],..._0x3ead34[_0x568d62(0x133)]&&{'traceparent':_0x3ead34[_0x568d62(0x133)]}});}
1
+ const a118_0x38654b=a118_0x4c83;function a118_0x5b9f(){const _0x58ed23=['2152362hTZicB','manual','traceName','../../package.json','logData','traceparent','1614995iDhGBa','837698yUXtMd','1467244ZAJvpB','version','4641048syufpW','618375NZYohu','11630899KTtFVO','rabetbase-cli','4BMiiOE'];a118_0x5b9f=function(){return _0x58ed23;};return a118_0x5b9f();}(function(_0x15cff1,_0x3a3fe){const _0x206563=a118_0x4c83,_0x1961b7=_0x15cff1();while(!![]){try{const _0x491f4a=parseInt(_0x206563(0x160))/0x1+-parseInt(_0x206563(0x15f))/0x2+parseInt(_0x206563(0x163))/0x3+parseInt(_0x206563(0x166))/0x4*(parseInt(_0x206563(0x15e))/0x5)+parseInt(_0x206563(0x167))/0x6+-parseInt(_0x206563(0x164))/0x7+parseInt(_0x206563(0x162))/0x8;if(_0x491f4a===_0x3a3fe)break;else _0x1961b7['push'](_0x1961b7['shift']());}catch(_0x572c69){_0x1961b7['push'](_0x1961b7['shift']());}}}(a118_0x5b9f,0xd0b24));import{createRequire}from'node:module';function a118_0x4c83(_0x111af5,_0x4e5093){_0x111af5=_0x111af5-0x15a;const _0x5b9fae=a118_0x5b9f();let _0x4c83b3=_0x5b9fae[_0x111af5];return _0x4c83b3;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';const require=createRequire(import.meta.url),pkg=require(a118_0x38654b(0x15b)),DEFAULT_TRACE_NAME=a118_0x38654b(0x165);export async function sendCliTraceLog(_0x573980){const _0x54aefc=a118_0x38654b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x573980[_0x54aefc(0x15a)]??DEFAULT_TRACE_NAME,'version':_0x573980[_0x54aefc(0x161)]??pkg[_0x54aefc(0x161)],'spanName':_0x573980['spanName'],'eventType':_0x54aefc(0x168),'logData':_0x573980[_0x54aefc(0x15c)],..._0x573980[_0x54aefc(0x15d)]&&{'traceparent':_0x573980[_0x54aefc(0x15d)]}});}
@@ -1 +1 @@
1
- function a120_0x46e4(_0x30f09e,_0x1d396f){_0x30f09e=_0x30f09e-0x1aa;const _0x63f3ce=a120_0x63f3();let _0x46e4e1=_0x63f3ce[_0x30f09e];return _0x46e4e1;}function a120_0x63f3(){const _0x5a985e=['.qoder','其他\x20(通用模板)','.cline/skills/lovrabet/SKILL.md','1864yInLTG','Trae\x20IDE','claude','.qoder/skills/lovrabet/SKILL.md','file','.cursorrules','CodeBuddy','.trae','.cursor','CodeBuddy\x20IDE','Cline\x20IDE','Trae','Windsurf','Windsurf\x20IDE','3410498dLyewi','Codex','.codebuddy','.claude/skills/lovrabet/SKILL.md','OpenCode','windsurf','opencode','24471bfgGud','.windsurf/workflows/rabetbase.md','Claude\x20Code','antigravity','Antigravity','通用模板\x20-\x20兜底方案','.cursor/skills/rabetbase.md','.claude','cline','trae','Qoder','.opencode','1528496hOyIZA','SKILL.md.tpl','codex','.agent','6vLjbag','.cline','qoder','.codex','133128vbgGxh','397070FMUoqD','cursor','.opencode/skills/lovrabet/SKILL.md','2319215lWmxLg','.agent/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','13668MfMtxh','.codebuddy/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','Antigravity\x20IDE','codebuddy','Qoder\x20IDE'];a120_0x63f3=function(){return _0x5a985e;};return a120_0x63f3();}const a120_0x42a07c=a120_0x46e4;(function(_0x3a240f,_0x30094d){const _0x50f5b=a120_0x46e4,_0x4d67f0=_0x3a240f();while(!![]){try{const _0x1c3f58=parseInt(_0x50f5b(0x1df))/0x1+parseInt(_0x50f5b(0x1d6))/0x2+-parseInt(_0x50f5b(0x1de))/0x3+-parseInt(_0x50f5b(0x1ac))/0x4+parseInt(_0x50f5b(0x1e2))/0x5*(parseInt(_0x50f5b(0x1da))/0x6)+-parseInt(_0x50f5b(0x1c3))/0x7+parseInt(_0x50f5b(0x1b5))/0x8*(-parseInt(_0x50f5b(0x1ca))/0x9);if(_0x1c3f58===_0x30094d)break;else _0x4d67f0['push'](_0x4d67f0['shift']());}catch(_0x598009){_0x4d67f0['push'](_0x4d67f0['shift']());}}}(a120_0x63f3,0x6f7b3));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a120_0x42a07c(0x1ba),a120_0x42a07c(0x1bd)],'files':[{'type':'file','path':a120_0x42a07c(0x1d0),'template':a120_0x42a07c(0x1d7)}]},'windsurf':{'name':a120_0x42a07c(0x1c1),'description':a120_0x42a07c(0x1c2),'folders':['.windsurf'],'files':[{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1cb),'template':a120_0x42a07c(0x1d7)}]},'claude':{'name':'Claude\x20Code','description':a120_0x42a07c(0x1cc),'folders':[a120_0x42a07c(0x1d1)],'files':[{'type':'file','path':a120_0x42a07c(0x1c6),'template':a120_0x42a07c(0x1d7)}]},'cline':{'name':'Cline','description':a120_0x42a07c(0x1bf),'folders':[a120_0x42a07c(0x1db)],'files':[{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1b4),'template':a120_0x42a07c(0x1d7)}]},'codex':{'name':a120_0x42a07c(0x1c4),'description':'Codex\x20IDE','folders':[a120_0x42a07c(0x1dd)],'files':[{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1ab),'template':a120_0x42a07c(0x1d7)}]},'opencode':{'name':a120_0x42a07c(0x1c7),'description':'OpenCode\x20IDE','folders':[a120_0x42a07c(0x1d5)],'files':[{'type':'file','path':a120_0x42a07c(0x1e1),'template':'SKILL.md.tpl'}]},'qoder':{'name':a120_0x42a07c(0x1d4),'description':a120_0x42a07c(0x1b1),'folders':[a120_0x42a07c(0x1b2)],'files':[{'type':a120_0x42a07c(0x1b9),'path':'.qoder/rules/rabetbase.md','template':a120_0x42a07c(0x1d7)},{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1b8),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a120_0x42a07c(0x1bb),'description':a120_0x42a07c(0x1be),'folders':[a120_0x42a07c(0x1c5)],'files':[{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1ad),'template':a120_0x42a07c(0x1d7)}]},'trae':{'name':a120_0x42a07c(0x1c0),'description':a120_0x42a07c(0x1b6),'folders':[a120_0x42a07c(0x1bc)],'files':[{'type':a120_0x42a07c(0x1b9),'path':a120_0x42a07c(0x1ae),'template':a120_0x42a07c(0x1d7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x42a07c(0x1b3),'description':a120_0x42a07c(0x1cf),'folders':[a120_0x42a07c(0x1d9)],'files':[{'type':'file','path':a120_0x42a07c(0x1aa),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a120_0x42a07c(0x1ce),'description':a120_0x42a07c(0x1af),'folders':[a120_0x42a07c(0x1d9)],'files':[{'type':a120_0x42a07c(0x1b9),'path':'.agent/skills/lovrabet/SKILL.md','template':a120_0x42a07c(0x1d7)}]}};export const CORE_IDE_LIST=['claude',a120_0x42a07c(0x1d2),a120_0x42a07c(0x1b0),a120_0x42a07c(0x1d8),'cursor',a120_0x42a07c(0x1c9),'qoder',a120_0x42a07c(0x1d3),a120_0x42a07c(0x1c8)];export const IDE_LIST=[a120_0x42a07c(0x1cd),a120_0x42a07c(0x1b7),'cline',a120_0x42a07c(0x1b0),a120_0x42a07c(0x1d8),a120_0x42a07c(0x1e0),a120_0x42a07c(0x1c9),a120_0x42a07c(0x1dc),a120_0x42a07c(0x1d3),'windsurf','agent'];export const ALL_CORE_IDES=[a120_0x42a07c(0x1e0),'windsurf','claude',a120_0x42a07c(0x1d2),a120_0x42a07c(0x1d8),a120_0x42a07c(0x1c9),a120_0x42a07c(0x1dc),a120_0x42a07c(0x1b0),a120_0x42a07c(0x1d3)];
1
+ const a120_0x3fdef6=a120_0x5a19;(function(_0x5ad85d,_0x4eb6c8){const _0x30585c=a120_0x5a19,_0x311490=_0x5ad85d();while(!![]){try{const _0x390676=-parseInt(_0x30585c(0xb4))/0x1+parseInt(_0x30585c(0x92))/0x2+-parseInt(_0x30585c(0xa8))/0x3+parseInt(_0x30585c(0xad))/0x4+parseInt(_0x30585c(0x8f))/0x5*(-parseInt(_0x30585c(0xa4))/0x6)+parseInt(_0x30585c(0xb3))/0x7+parseInt(_0x30585c(0xb6))/0x8*(parseInt(_0x30585c(0xb7))/0x9);if(_0x390676===_0x4eb6c8)break;else _0x311490['push'](_0x311490['shift']());}catch(_0x1451cf){_0x311490['push'](_0x311490['shift']());}}}(a120_0x5ce2,0x825b0));export const CORE_IDE_CONFIGS={'cursor':{'name':a120_0x3fdef6(0xc0),'description':'Cursor\x20IDE','folders':[a120_0x3fdef6(0x90),a120_0x3fdef6(0xbd)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.cursor/skills/rabetbase.md','template':a120_0x3fdef6(0xb5)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a120_0x3fdef6(0x9b)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xbf),'template':a120_0x3fdef6(0xb5)}]},'claude':{'name':a120_0x3fdef6(0x99),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a120_0x3fdef6(0xae),'path':'.claude/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'cline':{'name':a120_0x3fdef6(0x9f),'description':a120_0x3fdef6(0x9d),'folders':[a120_0x3fdef6(0xbb)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'codex':{'name':a120_0x3fdef6(0x96),'description':a120_0x3fdef6(0xa5),'folders':[a120_0x3fdef6(0xb2)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xbe),'template':'SKILL.md.tpl'}]},'opencode':{'name':a120_0x3fdef6(0x8c),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xb8),'template':a120_0x3fdef6(0xb5)}]},'qoder':{'name':'Qoder','description':a120_0x3fdef6(0x9c),'folders':[a120_0x3fdef6(0x97)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xb0),'template':a120_0x3fdef6(0xb5)},{'type':'file','path':a120_0x3fdef6(0xa9),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a120_0x3fdef6(0xaa),'description':a120_0x3fdef6(0xa0),'folders':[a120_0x3fdef6(0x98)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0x9a),'template':a120_0x3fdef6(0xb5)}]},'trae':{'name':a120_0x3fdef6(0xac),'description':a120_0x3fdef6(0xa6),'folders':[a120_0x3fdef6(0xbc)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.trae/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x3fdef6(0xa3),'description':a120_0x3fdef6(0xa7),'folders':[a120_0x3fdef6(0x94)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.agent/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'antigravity':{'name':a120_0x3fdef6(0xa1),'description':'Antigravity\x20IDE','folders':[a120_0x3fdef6(0x94)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xaf),'template':'SKILL.md.tpl'}]}};function a120_0x5a19(_0x29a7c2,_0x567975){_0x29a7c2=_0x29a7c2-0x8c;const _0x5ce2aa=a120_0x5ce2();let _0x5a19ed=_0x5ce2aa[_0x29a7c2];return _0x5a19ed;}function a120_0x5ce2(){const _0xb1a3e4=['OpenCode','opencode','cline','20bTwlaY','.cursorrules','codex','392890pwKtBv','codebuddy','.agent','trae','Codex','.qoder','.codebuddy','Claude\x20Code','.codebuddy/skills/lovrabet/SKILL.md','.windsurf','Qoder\x20IDE','Cline\x20IDE','agent','Cline','CodeBuddy\x20IDE','Antigravity','windsurf','其他\x20(通用模板)','865932yWnSad','Codex\x20IDE','Trae\x20IDE','通用模板\x20-\x20兜底方案','1613607KEXMEV','.qoder/skills/lovrabet/SKILL.md','CodeBuddy','qoder','Trae','454644bqnJen','file','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','antigravity','.codex','5646144TOnzEj','526601bksPtg','SKILL.md.tpl','8UroMCH','9530964TUrMkz','.opencode/skills/lovrabet/SKILL.md','cursor','claude','.cline','.trae','.cursor','.codex/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','Cursor'];a120_0x5ce2=function(){return _0xb1a3e4;};return a120_0x5ce2();}export const CORE_IDE_LIST=['claude',a120_0x3fdef6(0x8e),a120_0x3fdef6(0x93),a120_0x3fdef6(0x91),a120_0x3fdef6(0xb9),a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),'trae','windsurf'];export const IDE_LIST=[a120_0x3fdef6(0xb1),a120_0x3fdef6(0xba),a120_0x3fdef6(0x8e),a120_0x3fdef6(0x93),a120_0x3fdef6(0x91),'cursor',a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),a120_0x3fdef6(0x95),'windsurf',a120_0x3fdef6(0x9e)];export const ALL_CORE_IDES=[a120_0x3fdef6(0xb9),a120_0x3fdef6(0xa2),a120_0x3fdef6(0xba),a120_0x3fdef6(0x8e),a120_0x3fdef6(0x91),a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),'codebuddy',a120_0x3fdef6(0x95)];
@@ -1 +1 @@
1
- (function(_0x4653de,_0x49a781){const _0x4867ac=a121_0x3e7e,_0x168d18=_0x4653de();while(!![]){try{const _0x42d649=parseInt(_0x4867ac(0x154))/0x1*(parseInt(_0x4867ac(0x14e))/0x2)+parseInt(_0x4867ac(0x14f))/0x3+parseInt(_0x4867ac(0x150))/0x4+parseInt(_0x4867ac(0x148))/0x5*(parseInt(_0x4867ac(0x153))/0x6)+parseInt(_0x4867ac(0x156))/0x7+parseInt(_0x4867ac(0x151))/0x8+-parseInt(_0x4867ac(0x14a))/0x9;if(_0x42d649===_0x49a781)break;else _0x168d18['push'](_0x168d18['shift']());}catch(_0x478ab3){_0x168d18['push'](_0x168d18['shift']());}}}(a121_0xbd8e,0x8e6c4));import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x2c69b2=a121_0x3e7e;try{const _0x4ae7a0=getTemplateBaseUrl(),_0x5e02fa=_0x4ae7a0+_0x2c69b2(0x14b),_0x5dd809=await fetch(_0x5e02fa,{'headers':{'Accept':_0x2c69b2(0x149)}});if(!_0x5dd809['ok'])return null;const _0xa334a6=await _0x5dd809[_0x2c69b2(0x14c)]();if(!_0xa334a6['cli']?.[_0x2c69b2(0x14d)]||!_0xa334a6[_0x2c69b2(0x155)]?.['node']?.['stableVersion'])return null;return _0xa334a6;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a121_0x3e7e(_0x49733e,_0xe6ed18){_0x49733e=_0x49733e-0x148;const _0xbd8e62=a121_0xbd8e();let _0x3e7eca=_0xbd8e62[_0x49733e];return _0x3e7eca;}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0xa8f898=a121_0x3e7e,_0x1eaf8b=Date[_0xa8f898(0x152)]();if(cachedConfig&&_0x1eaf8b-cacheTime<CACHE_TTL)return cachedConfig;const _0x593f18=await fetchCdnConfig();return _0x593f18&&(cachedConfig=_0x593f18,cacheTime=_0x1eaf8b),_0x593f18;}function a121_0xbd8e(){const _0x4f1cc6=['/config.json','json','stableVersion','16FiOXCp','196188UjsCmZ','634412vKIIaZ','1425928WIDmJa','now','30606Phozqg','5019RbASmT','sdk','4650401bbKFjn','865hTcyDi','application/json','12652596cQmLns'];a121_0xbd8e=function(){return _0x4f1cc6;};return a121_0xbd8e();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ function a121_0x215e(_0x1a6691,_0xbb5b56){_0x1a6691=_0x1a6691-0x8d;const _0x1c7cb8=a121_0x1c7c();let _0x215e61=_0x1c7cb8[_0x1a6691];return _0x215e61;}(function(_0x221b11,_0x53d611){const _0x44e3cb=a121_0x215e,_0xb14575=_0x221b11();while(!![]){try{const _0x7be38a=-parseInt(_0x44e3cb(0x93))/0x1+parseInt(_0x44e3cb(0x99))/0x2+parseInt(_0x44e3cb(0x8d))/0x3*(-parseInt(_0x44e3cb(0x9b))/0x4)+-parseInt(_0x44e3cb(0x90))/0x5+-parseInt(_0x44e3cb(0x8f))/0x6*(parseInt(_0x44e3cb(0x91))/0x7)+-parseInt(_0x44e3cb(0x94))/0x8+parseInt(_0x44e3cb(0x96))/0x9;if(_0x7be38a===_0x53d611)break;else _0xb14575['push'](_0xb14575['shift']());}catch(_0x4fa0cf){_0xb14575['push'](_0xb14575['shift']());}}}(a121_0x1c7c,0x9b9d6));import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x3e0dd4=a121_0x215e;try{const _0x26244=getTemplateBaseUrl(),_0x3f7ce1=_0x26244+'/config.json',_0x23d092=await fetch(_0x3f7ce1,{'headers':{'Accept':_0x3e0dd4(0x9a)}});if(!_0x23d092['ok'])return null;const _0x5adf35=await _0x23d092[_0x3e0dd4(0x8e)]();if(!_0x5adf35['cli']?.[_0x3e0dd4(0x95)]||!_0x5adf35[_0x3e0dd4(0x97)]?.[_0x3e0dd4(0x98)]?.[_0x3e0dd4(0x95)])return null;return _0x5adf35;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x2e8e8a=a121_0x215e,_0x1c01bb=Date[_0x2e8e8a(0x92)]();if(cachedConfig&&_0x1c01bb-cacheTime<CACHE_TTL)return cachedConfig;const _0x3e1216=await fetchCdnConfig();return _0x3e1216&&(cachedConfig=_0x3e1216,cacheTime=_0x1c01bb),_0x3e1216;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a121_0x1c7c(){const _0x34140c=['node','2503234USpWML','application/json','4Oylmxu','284439dvwWfh','json','130794blDRbb','3134235QFGOim','14VvuflP','now','656226ekfdfp','738152HjzkRL','stableVersion','8095806rYXQAr','sdk'];a121_0x1c7c=function(){return _0x34140c;};return a121_0x1c7c();}
@@ -1 +1 @@
1
- function a122_0x5cb6(_0x32933a,_0x1a4a06){_0x32933a=_0x32933a-0x69;const _0x30dc39=a122_0x30dc();let _0x5cb6dc=_0x30dc39[_0x32933a];return _0x5cb6dc;}const a122_0x80bb5b=a122_0x5cb6;(function(_0x3a743b,_0x4ef526){const _0x1d4601=a122_0x5cb6,_0x4fc7e4=_0x3a743b();while(!![]){try{const _0x341eb3=parseInt(_0x1d4601(0x74))/0x1*(parseInt(_0x1d4601(0x91))/0x2)+-parseInt(_0x1d4601(0x6a))/0x3+-parseInt(_0x1d4601(0x7b))/0x4+-parseInt(_0x1d4601(0x6b))/0x5*(-parseInt(_0x1d4601(0x82))/0x6)+-parseInt(_0x1d4601(0x6d))/0x7+parseInt(_0x1d4601(0x75))/0x8*(parseInt(_0x1d4601(0x76))/0x9)+-parseInt(_0x1d4601(0x7f))/0xa*(-parseInt(_0x1d4601(0x72))/0xb);if(_0x341eb3===_0x4ef526)break;else _0x4fc7e4['push'](_0x4fc7e4['shift']());}catch(_0x1c37c8){_0x4fc7e4['push'](_0x4fc7e4['shift']());}}}(a122_0x30dc,0x7a59d));import a122_0x508060 from'node:fs';import a122_0x203503 from'node:path';import a122_0x52ea64 from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x80bb5b(0x70);function isNonNumericVersion(_0x5bfbb1){const _0x5ab7a3=a122_0x80bb5b,_0x322e14=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x322e14[_0x5ab7a3(0x90)](_0xfb82be=>_0xfb82be[_0x5ab7a3(0x6e)](_0x5bfbb1));}function getInstalledVersion(_0x48a51c,_0x5aa67f){const _0x53b3dd=a122_0x80bb5b;try{const _0x472488=a122_0x203503[_0x53b3dd(0x6f)](_0x48a51c,_0x53b3dd(0x7d),_0x5aa67f,'package.json');if(a122_0x508060['existsSync'](_0x472488)){const _0x540068=JSON[_0x53b3dd(0x7e)](a122_0x508060[_0x53b3dd(0x89)](_0x472488,_0x53b3dd(0x83)));return _0x540068[_0x53b3dd(0x8d)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x546abc=a122_0x80bb5b;try{const _0xed216e=await getCdnConfig();return _0xed216e?.[_0x546abc(0x7a)]?.[_0x546abc(0x80)]?.[_0x546abc(0x7c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x26755c=a122_0x80bb5b;try{const _0x5d9099=await getCdnConfig();return _0x5d9099?.[_0x26755c(0x7a)]?.[_0x26755c(0x80)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x26755c(0x8b);}}export async function checkSdkVersion(_0x498ee){const _0x38ab99=a122_0x80bb5b,_0x2b228f=a122_0x203503[_0x38ab99(0x6f)](_0x498ee,'package.json'),[_0x5ef6e3,_0x4e1fe9]=await Promise[_0x38ab99(0x84)]([getSdkStableVersion(),getSdkPackageName()]),_0x273a3d=_0x5ef6e3||FALLBACK_MIN_SDK_VERSION;if(!a122_0x508060['existsSync'](_0x2b228f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x273a3d,'packageName':_0x4e1fe9,'stableVersion':_0x5ef6e3};try{const _0x13b575=JSON[_0x38ab99(0x7e)](a122_0x508060[_0x38ab99(0x89)](_0x2b228f,'utf8')),_0x4ed349=_0x13b575['dependencies']||{},_0x3d0418=_0x13b575[_0x38ab99(0x8a)]||{},_0x8f4c81=_0x4ed349[_0x4e1fe9]||_0x3d0418[_0x4e1fe9];if(!_0x8f4c81)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x273a3d,'packageName':_0x4e1fe9,'stableVersion':_0x5ef6e3};let _0x158018=getInstalledVersion(_0x498ee,_0x4e1fe9);!_0x158018&&(_0x158018=_0x8f4c81);if(isNonNumericVersion(_0x8f4c81))return{'installed':!![],'version':_0x158018,'needsUpgrade':![],'minVersion':_0x273a3d,'packageName':_0x4e1fe9,'stableVersion':_0x5ef6e3};const _0x2bdef4=a122_0x52ea64[_0x38ab99(0x78)](_0x158018),_0x290973=a122_0x52ea64['coerce'](_0x273a3d),_0x389d39=_0x2bdef4&&_0x290973?a122_0x52ea64['lt'](_0x2bdef4,_0x290973):![];return{'installed':!![],'version':_0x158018,'needsUpgrade':_0x389d39,'minVersion':_0x273a3d,'packageName':_0x4e1fe9,'stableVersion':_0x5ef6e3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x273a3d,'packageName':_0x4e1fe9,'stableVersion':_0x5ef6e3};}}export function checkSdkVersionSync(_0x165159){const _0x36fcf4=a122_0x80bb5b,_0x3a8b2b=a122_0x203503[_0x36fcf4(0x6f)](_0x165159,_0x36fcf4(0x87)),_0x3048e3='@lovrabet/sdk';if(!a122_0x508060[_0x36fcf4(0x73)](_0x3a8b2b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3048e3,'stableVersion':null};try{const _0x420762=JSON[_0x36fcf4(0x7e)](a122_0x508060[_0x36fcf4(0x89)](_0x3a8b2b,_0x36fcf4(0x88))),_0x1c797a=_0x420762['dependencies']||{},_0x37661b=_0x420762[_0x36fcf4(0x8a)]||{},_0x22ce8e=_0x1c797a[_0x3048e3]||_0x37661b[_0x3048e3];if(!_0x22ce8e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3048e3,'stableVersion':null};let _0x4bbc31=getInstalledVersion(_0x165159,_0x3048e3);!_0x4bbc31&&(_0x4bbc31=_0x22ce8e);if(isNonNumericVersion(_0x22ce8e))return{'installed':!![],'version':_0x4bbc31,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3048e3,'stableVersion':null};const _0xc9f939=a122_0x52ea64[_0x36fcf4(0x78)](_0x4bbc31),_0x394664=_0xc9f939?a122_0x52ea64['lt'](_0xc9f939,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4bbc31,'needsUpgrade':_0x394664,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3048e3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3048e3,'stableVersion':null};}}function a122_0x30dc(){const _0x2b5caa=['1XpPkPr','16cdxzUm','2527353OLISRM','needsUpgrade','coerce','\x20\x20\x20Current\x20version:\x20','sdk','3003364wsGtpw','stableVersion','node_modules','parse','12730840FbHPmT','node','\x20\x20\x20Upgrade\x20command:\x20','7476Sivrae','utf-8','all','\x1b[1m','minVersion','package.json','utf8','readFileSync','devDependencies','@lovrabet/sdk','latest','version','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','some','396978WDXqwX','\x1b[33m','2890914saDDWU','3920kdITiY','log','5561101WbXlUR','test','join','1.2.0','npm\x20install\x20','11EhxyzF','existsSync'];a122_0x30dc=function(){return _0x2b5caa;};return a122_0x30dc();}export function printSdkUpgradeWarning(_0x15a4ab){const _0x4916cb=a122_0x80bb5b;if(!_0x15a4ab[_0x4916cb(0x77)])return;const _0x15a527=_0x4916cb(0x69),_0x23168d='\x1b[0m',_0x1fc7f4=_0x4916cb(0x85),_0x24701e=_0x15a4ab['packageName']||_0x4916cb(0x8b),_0x6865b=_0x15a4ab[_0x4916cb(0x7c)]||_0x15a4ab[_0x4916cb(0x86)],_0x13abe1=_0x4916cb(0x71)+_0x24701e+'@'+(_0x6865b||_0x4916cb(0x8c));console[_0x4916cb(0x6c)](),console[_0x4916cb(0x6c)](''+_0x15a527+_0x1fc7f4+_0x4916cb(0x8f)+_0x23168d),console['log'](_0x15a527+_0x4916cb(0x79)+_0x24701e+'@'+_0x15a4ab['version']+_0x23168d),console[_0x4916cb(0x6c)](_0x15a527+_0x4916cb(0x8e)+_0x6865b+_0x23168d),console[_0x4916cb(0x6c)](_0x15a527+_0x4916cb(0x81)+_0x13abe1+_0x23168d),console[_0x4916cb(0x6c)]();}
1
+ function a122_0x420b(){const _0x52c227=['version','933072DPDcjK','stableVersion','@lovrabet/sdk','some','876564SoFyHN','package.json','132cumndJ','packageName','1.2.0','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','143EqfKDB','30CthWdQ','149759DiaeZu','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','1004964sZHOMh','sdk','log','existsSync','join','utf8','4dwzNXj','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','node_modules','parse','test','130446OCATHY','14OHFErJ','devDependencies','coerce','\x1b[0m','49205EnyVuH','dependencies','node','readFileSync','\x1b[1m','743544SGFoNp','needsUpgrade'];a122_0x420b=function(){return _0x52c227;};return a122_0x420b();}const a122_0x4e8d5a=a122_0x5d47;(function(_0xeb56bd,_0x4b56c9){const _0x144143=a122_0x5d47,_0x194006=_0xeb56bd();while(!![]){try{const _0x530ef2=parseInt(_0x144143(0xe2))/0x1*(-parseInt(_0x144143(0xeb))/0x2)+-parseInt(_0x144143(0xf1))/0x3+-parseInt(_0x144143(0xe5))/0x4+-parseInt(_0x144143(0xf6))/0x5*(parseInt(_0x144143(0xdb))/0x6)+-parseInt(_0x144143(0xf2))/0x7*(parseInt(_0x144143(0xd5))/0x8)+parseInt(_0x144143(0xd2))/0x9*(parseInt(_0x144143(0xe1))/0xa)+-parseInt(_0x144143(0xe0))/0xb*(-parseInt(_0x144143(0xd9))/0xc);if(_0x530ef2===_0x4b56c9)break;else _0x194006['push'](_0x194006['shift']());}catch(_0x3c86b2){_0x194006['push'](_0x194006['shift']());}}}(a122_0x420b,0x25768));import a122_0x12da22 from'node:fs';import a122_0x3f2a4a from'node:path';import a122_0x41757b from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x4e8d5a(0xdd);function isNonNumericVersion(_0x15f71d){const _0x4666d6=a122_0x4e8d5a,_0x428a90=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x428a90[_0x4666d6(0xd8)](_0x50164b=>_0x50164b[_0x4666d6(0xf0)](_0x15f71d));}function getInstalledVersion(_0x200cb0,_0x33549c){const _0x1cd27d=a122_0x4e8d5a;try{const _0x53ac8a=a122_0x3f2a4a['join'](_0x200cb0,_0x1cd27d(0xee),_0x33549c,_0x1cd27d(0xda));if(a122_0x12da22['existsSync'](_0x53ac8a)){const _0x5f48a9=JSON[_0x1cd27d(0xef)](a122_0x12da22['readFileSync'](_0x53ac8a,'utf-8'));return _0x5f48a9[_0x1cd27d(0xd4)]||null;}}catch{}return null;}function a122_0x5d47(_0x27f73f,_0x5ad1d3){_0x27f73f=_0x27f73f-0xce;const _0x420b91=a122_0x420b();let _0x5d47ba=_0x420b91[_0x27f73f];return _0x5d47ba;}async function getSdkStableVersion(){const _0x22b1b0=a122_0x4e8d5a;try{const _0x2d4037=await getCdnConfig();return _0x2d4037?.['sdk']?.['node']?.[_0x22b1b0(0xd6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x30a5b4=a122_0x4e8d5a;try{const _0x4ae4dc=await getCdnConfig();return _0x4ae4dc?.[_0x30a5b4(0xe6)]?.[_0x30a5b4(0xcf)]?.[_0x30a5b4(0xdc)]||_0x30a5b4(0xd7);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x42447d){const _0x4dc313=a122_0x4e8d5a,_0x27ae51=a122_0x3f2a4a[_0x4dc313(0xe9)](_0x42447d,_0x4dc313(0xda)),[_0x45c786,_0x160451]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0xc63c09=_0x45c786||FALLBACK_MIN_SDK_VERSION;if(!a122_0x12da22['existsSync'](_0x27ae51))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};try{const _0x286366=JSON[_0x4dc313(0xef)](a122_0x12da22[_0x4dc313(0xd0)](_0x27ae51,_0x4dc313(0xea))),_0xabf62f=_0x286366[_0x4dc313(0xce)]||{},_0x174025=_0x286366['devDependencies']||{},_0x1fb2b3=_0xabf62f[_0x160451]||_0x174025[_0x160451];if(!_0x1fb2b3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};let _0x2bbf8e=getInstalledVersion(_0x42447d,_0x160451);!_0x2bbf8e&&(_0x2bbf8e=_0x1fb2b3);if(isNonNumericVersion(_0x1fb2b3))return{'installed':!![],'version':_0x2bbf8e,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};const _0x9e4d04=a122_0x41757b[_0x4dc313(0xf4)](_0x2bbf8e),_0x4887a9=a122_0x41757b[_0x4dc313(0xf4)](_0xc63c09),_0x18d484=_0x9e4d04&&_0x4887a9?a122_0x41757b['lt'](_0x9e4d04,_0x4887a9):![];return{'installed':!![],'version':_0x2bbf8e,'needsUpgrade':_0x18d484,'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};}}export function checkSdkVersionSync(_0x2388d2){const _0x174d92=a122_0x4e8d5a,_0x1d276b=a122_0x3f2a4a[_0x174d92(0xe9)](_0x2388d2,_0x174d92(0xda)),_0x33371f='@lovrabet/sdk';if(!a122_0x12da22[_0x174d92(0xe8)](_0x1d276b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};try{const _0xf1d9cd=JSON['parse'](a122_0x12da22[_0x174d92(0xd0)](_0x1d276b,'utf8')),_0x466262=_0xf1d9cd[_0x174d92(0xce)]||{},_0x24dc2f=_0xf1d9cd[_0x174d92(0xf3)]||{},_0x390c3e=_0x466262[_0x33371f]||_0x24dc2f[_0x33371f];if(!_0x390c3e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};let _0x408d5d=getInstalledVersion(_0x2388d2,_0x33371f);!_0x408d5d&&(_0x408d5d=_0x390c3e);if(isNonNumericVersion(_0x390c3e))return{'installed':!![],'version':_0x408d5d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};const _0x5bf577=a122_0x41757b[_0x174d92(0xf4)](_0x408d5d),_0xb33029=_0x5bf577?a122_0x41757b['lt'](_0x5bf577,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x408d5d,'needsUpgrade':_0xb33029,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x36f6ce){const _0x566fc0=a122_0x4e8d5a;if(!_0x36f6ce[_0x566fc0(0xd3)])return;const _0x252b3d=_0x566fc0(0xe3),_0x4d816d=_0x566fc0(0xf5),_0x3949cc=_0x566fc0(0xd1),_0x3642b5=_0x36f6ce[_0x566fc0(0xdc)]||_0x566fc0(0xd7),_0x328739=_0x36f6ce[_0x566fc0(0xd6)]||_0x36f6ce['minVersion'],_0x1f503e=_0x566fc0(0xec)+_0x3642b5+'@'+(_0x328739||'latest');console[_0x566fc0(0xe7)](),console[_0x566fc0(0xe7)](''+_0x252b3d+_0x3949cc+_0x566fc0(0xde)+_0x4d816d),console['log'](_0x252b3d+_0x566fc0(0xed)+_0x3642b5+'@'+_0x36f6ce[_0x566fc0(0xd4)]+_0x4d816d),console['log'](_0x252b3d+_0x566fc0(0xdf)+_0x328739+_0x4d816d),console[_0x566fc0(0xe7)](_0x252b3d+_0x566fc0(0xe4)+_0x1f503e+_0x4d816d),console['log']();}
@@ -1 +1 @@
1
- (function(_0x53390b,_0x304265){const _0x3e36bd=a123_0x2f05,_0x242b3f=_0x53390b();while(!![]){try{const _0x450e7e=parseInt(_0x3e36bd(0xb0))/0x1+-parseInt(_0x3e36bd(0xca))/0x2*(-parseInt(_0x3e36bd(0xc3))/0x3)+-parseInt(_0x3e36bd(0xc7))/0x4+-parseInt(_0x3e36bd(0xbb))/0x5+-parseInt(_0x3e36bd(0xc1))/0x6*(-parseInt(_0x3e36bd(0xba))/0x7)+parseInt(_0x3e36bd(0xb8))/0x8*(-parseInt(_0x3e36bd(0xc9))/0x9)+-parseInt(_0x3e36bd(0xbe))/0xa*(-parseInt(_0x3e36bd(0xcb))/0xb);if(_0x450e7e===_0x304265)break;else _0x242b3f['push'](_0x242b3f['shift']());}catch(_0x3ffd2a){_0x242b3f['push'](_0x242b3f['shift']());}}}(a123_0x1389,0x44eca));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a123_0x45ca9a from'semver';import{getCdnConfig}from'./cdn-config.js';function a123_0x2f05(_0x408e7c,_0x24792f){_0x408e7c=_0x408e7c-0xb0;const _0x1389cb=a123_0x1389();let _0x2f0555=_0x1389cb[_0x408e7c];return _0x2f0555;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a123_0x1389(){const _0x5beeaa=['8vXhBnN','parse','78491FKyodw','1808875zunkxs','log','version','1426970mQvXAQ','\x20\x20\x20Stable\x20version:\x20','some','48YJYAnm','\x1b[33m','847164FADwhG','\x1b[1m','stableVersion','../..','2136720NieqSq','cli','690831jeDgdd','2BauIQP','33rJDNrB','@latest','454845hlkesA','1.0.0','↪\x20New\x20version\x20available','currentVersion','package.json','needsUpgrade','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce'];a123_0x1389=function(){return _0x5beeaa;};return a123_0x1389();}function getCurrentCliVersion(){const _0x45b671=a123_0x2f05;try{const _0x260249=fileURLToPath(import.meta.url),_0x10d9e4=resolve(dirname(_0x260249),_0x45b671(0xc6)),_0x5a9039=resolve(_0x10d9e4,_0x45b671(0xb4)),_0x54fc51=JSON[_0x45b671(0xb9)](readFileSync(_0x5a9039,'utf-8'));return _0x54fc51[_0x45b671(0xbd)]||'1.0.0';}catch{return _0x45b671(0xb1);}}function isNonNumericVersion(_0x5369d0){const _0x4b24ff=a123_0x2f05,_0x414dba=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x414dba[_0x4b24ff(0xc0)](_0x5667ab=>_0x5667ab['test'](_0x5369d0));}export async function checkCliVersion(){const _0x5ec2ce=a123_0x2f05,_0xa0de76=getCurrentCliVersion(),_0x364a3b=await getCdnConfig(),_0x4cbc9b=_0x364a3b?.[_0x5ec2ce(0xc8)]?.['stableVersion']||null;let _0x256f5e=![];if(_0x4cbc9b)try{const _0x4e6fce=a123_0x45ca9a[_0x5ec2ce(0xb7)](_0xa0de76),_0x378305=a123_0x45ca9a[_0x5ec2ce(0xb7)](_0x4cbc9b);_0x4e6fce&&_0x378305&&(_0x256f5e=a123_0x45ca9a['lt'](_0x4e6fce,_0x378305));}catch{_0x256f5e=![];}return{'currentVersion':_0xa0de76,'stableVersion':_0x4cbc9b,'needsUpgrade':_0x256f5e,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x110a36){const _0x5b1012=a123_0x2f05;if(!_0x110a36[_0x5b1012(0xb5)])return;const _0x2350dc=_0x5b1012(0xc2),_0xabebd9='\x1b[0m',_0xc2ca58=_0x5b1012(0xc4),_0x356a71='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x5b1012(0xcc);console['log'](),console[_0x5b1012(0xbc)](''+_0x2350dc+_0xc2ca58+_0x5b1012(0xb2)+_0xabebd9),console[_0x5b1012(0xbc)](_0x2350dc+_0x5b1012(0xb6)+_0x110a36[_0x5b1012(0xb3)]+_0xabebd9),console[_0x5b1012(0xbc)](_0x2350dc+_0x5b1012(0xbf)+_0x110a36[_0x5b1012(0xc5)]+_0xabebd9),console[_0x5b1012(0xbc)](_0x2350dc+'\x20\x20\x20Upgrade\x20command:\x20'+_0x356a71+_0xabebd9),console['log']();}
1
+ (function(_0x4ffafa,_0x6368e2){const _0x2660cf=a123_0x1174,_0x5be714=_0x4ffafa();while(!![]){try{const _0x5af96a=parseInt(_0x2660cf(0xd3))/0x1+parseInt(_0x2660cf(0xd8))/0x2+parseInt(_0x2660cf(0xe7))/0x3+parseInt(_0x2660cf(0xe1))/0x4+-parseInt(_0x2660cf(0xdd))/0x5*(-parseInt(_0x2660cf(0xe5))/0x6)+parseInt(_0x2660cf(0xe2))/0x7*(-parseInt(_0x2660cf(0xd6))/0x8)+parseInt(_0x2660cf(0xde))/0x9*(-parseInt(_0x2660cf(0xe3))/0xa);if(_0x5af96a===_0x6368e2)break;else _0x5be714['push'](_0x5be714['shift']());}catch(_0x20bca6){_0x5be714['push'](_0x5be714['shift']());}}}(a123_0x5e46,0xc6424));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a123_0x219d73 from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x305d33=a123_0x1174;try{const _0xdc9e3d=fileURLToPath(import.meta.url),_0x57fac1=resolve(dirname(_0xdc9e3d),_0x305d33(0xdf)),_0x2b28ca=resolve(_0x57fac1,'package.json'),_0x20ecfd=JSON[_0x305d33(0xe4)](readFileSync(_0x2b28ca,_0x305d33(0xd0)));return _0x20ecfd[_0x305d33(0xd9)]||_0x305d33(0xdc);}catch{return _0x305d33(0xdc);}}function isNonNumericVersion(_0x4ac1e4){const _0x89477c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x89477c['some'](_0x1c83b1=>_0x1c83b1['test'](_0x4ac1e4));}function a123_0x1174(_0x4f7a4e,_0x47c881){_0x4f7a4e=_0x4f7a4e-0xcf;const _0x5e4676=a123_0x5e46();let _0x1174e0=_0x5e4676[_0x4f7a4e];return _0x1174e0;}function a123_0x5e46(){const _0x2bba64=['currentVersion','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','utf-8','log','\x1b[33m','1431361sEmLBf','\x20\x20\x20Current\x20CLI\x20version:\x20','npm\x20install\x20-g\x20','557144mjAgLg','needsUpgrade','2962550SKVcYP','version','cli','coerce','1.0.0','5nDugei','9oFMSNv','../..','@latest','1905500JDxmxa','140DrHePe','24925010XjmAUN','parse','6359682ZmngIN','stableVersion','745413oQJelr'];a123_0x5e46=function(){return _0x2bba64;};return a123_0x5e46();}export async function checkCliVersion(){const _0x1e6bc1=a123_0x1174,_0x37b652=getCurrentCliVersion(),_0x3a8045=await getCdnConfig(),_0x5c8f0d=_0x3a8045?.[_0x1e6bc1(0xda)]?.[_0x1e6bc1(0xe6)]||null;let _0x4486cd=![];if(_0x5c8f0d)try{const _0x244461=a123_0x219d73['coerce'](_0x37b652),_0x5bd1b5=a123_0x219d73[_0x1e6bc1(0xdb)](_0x5c8f0d);_0x244461&&_0x5bd1b5&&(_0x4486cd=a123_0x219d73['lt'](_0x244461,_0x5bd1b5));}catch{_0x4486cd=![];}return{'currentVersion':_0x37b652,'stableVersion':_0x5c8f0d,'needsUpgrade':_0x4486cd,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x434573){const _0x37efb3=a123_0x1174;if(!_0x434573[_0x37efb3(0xd7)])return;const _0x23ef97=_0x37efb3(0xd2),_0x57201d='\x1b[0m',_0x177bcc='\x1b[1m',_0x5f18e0=_0x37efb3(0xd5)+NPM_PACKAGE_NAME+_0x37efb3(0xe0);console[_0x37efb3(0xd1)](),console['log'](''+_0x23ef97+_0x177bcc+'↪\x20New\x20version\x20available'+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xd4)+_0x434573[_0x37efb3(0xe8)]+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xcf)+_0x434573[_0x37efb3(0xe6)]+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xe9)+_0x5f18e0+_0x57201d),console[_0x37efb3(0xd1)]();}
@@ -1 +1 @@
1
- (function(_0x19a0ef,_0x31c185){const _0x23c836=a124_0x2366,_0x3391db=_0x19a0ef();while(!![]){try{const _0x3c32aa=-parseInt(_0x23c836(0xc0))/0x1*(parseInt(_0x23c836(0xc9))/0x2)+parseInt(_0x23c836(0xb6))/0x3*(parseInt(_0x23c836(0xbe))/0x4)+-parseInt(_0x23c836(0xcc))/0x5*(-parseInt(_0x23c836(0xc3))/0x6)+parseInt(_0x23c836(0xce))/0x7+-parseInt(_0x23c836(0xbb))/0x8*(parseInt(_0x23c836(0xcf))/0x9)+parseInt(_0x23c836(0xc4))/0xa*(-parseInt(_0x23c836(0xba))/0xb)+-parseInt(_0x23c836(0xb5))/0xc*(parseInt(_0x23c836(0xc2))/0xd);if(_0x3c32aa===_0x31c185)break;else _0x3391db['push'](_0x3391db['shift']());}catch(_0x29ca08){_0x3391db['push'](_0x3391db['shift']());}}}(a124_0x11cb,0x2f6c4));import{initEnv}from'../constant/env.js';function a124_0x2366(_0x31330a,_0x5542e9){_0x31330a=_0x31330a-0xb1;const _0x11cb6e=a124_0x11cb();let _0x2366ea=_0x11cb6e[_0x31330a];return _0x2366ea;}import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xb39975){const _0x222618=a124_0x2366,_0x3b7e8e=readRawConfig(_0xb39975);return _0x3b7e8e[_0x222618(0xcb)]&&typeof _0x3b7e8e[_0x222618(0xcb)]===_0x222618(0xb2)&&initEnv(_0x3b7e8e[_0x222618(0xcb)]),_0x3b7e8e;}export function getConfigAppCode(){const _0x11afcc=a124_0x2366,_0x22d142=readRawConfig();if(_0x22d142[_0x11afcc(0xb1)]&&typeof _0x22d142[_0x11afcc(0xb1)]===_0x11afcc(0xb3)){const _0x46bfa0=_0x22d142[_0x11afcc(0xbd)];if(_0x46bfa0&&_0x22d142[_0x11afcc(0xb1)][_0x46bfa0]?.[_0x11afcc(0xb8)])return String(_0x22d142[_0x11afcc(0xb1)][_0x46bfa0][_0x11afcc(0xb8)])[_0x11afcc(0xcd)]();const _0x48055c=Object[_0x11afcc(0xb9)](_0x22d142[_0x11afcc(0xb1)])[0x0];if(_0x48055c?.['appcode'])return String(_0x48055c['appcode'])[_0x11afcc(0xcd)]();}const _0x4bac9c=_0x22d142[_0x11afcc(0xb8)]||_0x22d142[_0x11afcc(0xc5)];if(typeof _0x4bac9c!==_0x11afcc(0xb2)||_0x4bac9c['trim']()==='')return undefined;return _0x4bac9c[_0x11afcc(0xcd)]();}export function getMultiAppConfigs(){const _0x35e7d2=a124_0x2366,_0x3804b2=readRawConfig(),_0x1106e5=_0x3804b2[_0x35e7d2(0xb1)];if(!_0x1106e5||typeof _0x1106e5!==_0x35e7d2(0xb3)||Object[_0x35e7d2(0xca)](_0x1106e5)[_0x35e7d2(0xb7)]===0x0)return null;const _0x45fef7=_0x3804b2[_0x35e7d2(0xbd)];return Object[_0x35e7d2(0xc1)](_0x1106e5)[_0x35e7d2(0xbc)](([_0x3f03bc,_0x3a4614])=>({'name':_0x3f03bc,'appcode':_0x3a4614?.[_0x35e7d2(0xb8)]||'','isDefault':_0x3f03bc===_0x45fef7,'env':_0x3a4614?.['env'],'apiDir':_0x3a4614?.[_0x35e7d2(0xc7)],'cookie':_0x3a4614?.['cookie']||undefined}))[_0x35e7d2(0xb4)](_0xfb4a3a=>_0xfb4a3a['appcode']);}export function getTemplateBaseUrl(){const _0x1eb7f3=a124_0x2366,_0x2e75b8=readRawConfig();if(_0x2e75b8['template_base_url']&&typeof _0x2e75b8[_0x1eb7f3(0xbf)]==='string')return _0x2e75b8[_0x1eb7f3(0xbf)][_0x1eb7f3(0xc8)](/\/$/,'');return _0x1eb7f3(0xc6);}function a124_0x11cb(){const _0x5f0cec=['length','appcode','values','44YVfRkf','503912oaHVCX','map','defaultApp','8dTbVCL','template_base_url','83jIypbB','entries','1292174aCehaF','1693434iHpriE','794060ujXove','app','https://g.lovrabet.com/dist/lovrabet-skill','apiDir','replace','1046qGHeDk','keys','env','5mCZqww','trim','1832985JZTkPH','9rPTBWT','apps','string','object','filter','12unuquu','260355NkpbfD'];a124_0x11cb=function(){return _0x5f0cec;};return a124_0x11cb();}
1
+ (function(_0x482889,_0x3ea0ab){const _0x5e89fc=a124_0x4bf5,_0xbd1a70=_0x482889();while(!![]){try{const _0x4ef5dc=-parseInt(_0x5e89fc(0x187))/0x1+-parseInt(_0x5e89fc(0x188))/0x2+parseInt(_0x5e89fc(0x18e))/0x3*(parseInt(_0x5e89fc(0x191))/0x4)+parseInt(_0x5e89fc(0x199))/0x5+-parseInt(_0x5e89fc(0x194))/0x6*(-parseInt(_0x5e89fc(0x189))/0x7)+parseInt(_0x5e89fc(0x196))/0x8+-parseInt(_0x5e89fc(0x197))/0x9;if(_0x4ef5dc===_0x3ea0ab)break;else _0xbd1a70['push'](_0xbd1a70['shift']());}catch(_0x3c3918){_0xbd1a70['push'](_0xbd1a70['shift']());}}}(a124_0x39ef,0xc5d5b));import{initEnv}from'../constant/env.js';import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a124_0x4bf5(_0x3fde01,_0x210407){_0x3fde01=_0x3fde01-0x181;const _0x39efa3=a124_0x39ef();let _0x4bf538=_0x39efa3[_0x3fde01];return _0x4bf538;}function a124_0x39ef(){const _0x536309=['keys','app','filter','apiDir','628156PjKKdN','937834oYXpXQ','21WMCVKq','entries','map','env','cookie','345702IlbfAG','apps','object','24bikUxl','appcode','template_base_url','220530spVcag','replace','10976016rkgTkF','15960285xrnLvj','defaultApp','7535490fopAII','length','string','https://g.lovrabet.com/dist/lovrabet-skill','trim'];a124_0x39ef=function(){return _0x536309;};return a124_0x39ef();}export function readConfig(_0x1a7fb1){const _0x3699c2=a124_0x4bf5,_0x594cd3=readRawConfig(_0x1a7fb1);return _0x594cd3[_0x3699c2(0x18c)]&&typeof _0x594cd3[_0x3699c2(0x18c)]===_0x3699c2(0x19b)&&initEnv(_0x594cd3[_0x3699c2(0x18c)]),_0x594cd3;}export function getConfigAppCode(){const _0x30fe60=a124_0x4bf5,_0xa4f129=readRawConfig();if(_0xa4f129[_0x30fe60(0x18f)]&&typeof _0xa4f129[_0x30fe60(0x18f)]===_0x30fe60(0x190)){const _0x3648cd=_0xa4f129['defaultApp'];if(_0x3648cd&&_0xa4f129[_0x30fe60(0x18f)][_0x3648cd]?.[_0x30fe60(0x192)])return String(_0xa4f129[_0x30fe60(0x18f)][_0x3648cd][_0x30fe60(0x192)])[_0x30fe60(0x182)]();const _0x1ed327=Object['values'](_0xa4f129[_0x30fe60(0x18f)])[0x0];if(_0x1ed327?.[_0x30fe60(0x192)])return String(_0x1ed327[_0x30fe60(0x192)])[_0x30fe60(0x182)]();}const _0x3969ee=_0xa4f129[_0x30fe60(0x192)]||_0xa4f129[_0x30fe60(0x184)];if(typeof _0x3969ee!=='string'||_0x3969ee[_0x30fe60(0x182)]()==='')return undefined;return _0x3969ee[_0x30fe60(0x182)]();}export function getMultiAppConfigs(){const _0x4b8f75=a124_0x4bf5,_0x27040f=readRawConfig(),_0x238ea7=_0x27040f['apps'];if(!_0x238ea7||typeof _0x238ea7!==_0x4b8f75(0x190)||Object[_0x4b8f75(0x183)](_0x238ea7)[_0x4b8f75(0x19a)]===0x0)return null;const _0x1870c5=_0x27040f[_0x4b8f75(0x198)];return Object[_0x4b8f75(0x18a)](_0x238ea7)[_0x4b8f75(0x18b)](([_0x19b3e9,_0x4d76b0])=>({'name':_0x19b3e9,'appcode':_0x4d76b0?.[_0x4b8f75(0x192)]||'','isDefault':_0x19b3e9===_0x1870c5,'env':_0x4d76b0?.[_0x4b8f75(0x18c)],'apiDir':_0x4d76b0?.[_0x4b8f75(0x186)],'cookie':_0x4d76b0?.[_0x4b8f75(0x18d)]||undefined}))[_0x4b8f75(0x185)](_0xfe4b73=>_0xfe4b73[_0x4b8f75(0x192)]);}export function getTemplateBaseUrl(){const _0xc8521f=a124_0x4bf5,_0x37ce6e=readRawConfig();if(_0x37ce6e['template_base_url']&&typeof _0x37ce6e[_0xc8521f(0x193)]===_0xc8521f(0x19b))return _0x37ce6e['template_base_url'][_0xc8521f(0x195)](/\/$/,'');return _0xc8521f(0x181);}
@@ -1 +1 @@
1
- function a125_0x367c(_0x5f4c49,_0x27380c){_0x5f4c49=_0x5f4c49-0x13c;const _0x3c6529=a125_0x3c65();let _0x367cf5=_0x3c6529[_0x5f4c49];return _0x367cf5;}function a125_0x3c65(){const _0x1d9273=['isDirectory','name','552985zuqwWv','144136tCNRDj','mkdirSync','23023224OHlEkg','copyFileSync','复制目录时出错:','readdirSync','25tmWLAZ','6533226ltjsSf','error','8Isvyyy','3388005zXJMaA','85112MGWpqn','2577546ZVHyqf'];a125_0x3c65=function(){return _0x1d9273;};return a125_0x3c65();}(function(_0x1c6c5f,_0x494c1e){const _0x67b432=a125_0x367c,_0x122ee8=_0x1c6c5f();while(!![]){try{const _0x255f66=-parseInt(_0x67b432(0x13f))/0x1*(parseInt(_0x67b432(0x144))/0x2)+-parseInt(_0x67b432(0x143))/0x3+-parseInt(_0x67b432(0x142))/0x4*(parseInt(_0x67b432(0x148))/0x5)+-parseInt(_0x67b432(0x145))/0x6+parseInt(_0x67b432(0x140))/0x7+-parseInt(_0x67b432(0x149))/0x8+parseInt(_0x67b432(0x14b))/0x9;if(_0x255f66===_0x494c1e)break;else _0x122ee8['push'](_0x122ee8['shift']());}catch(_0x4c129d){_0x122ee8['push'](_0x122ee8['shift']());}}}(a125_0x3c65,0x99aa9));import a125_0x40e833 from'node:path';import a125_0x20271a from'node:fs';export async function copyDirectory(_0x3112ed,_0x12a762){const _0x5e7f0b=a125_0x367c;try{const _0x13adb7=a125_0x20271a[_0x5e7f0b(0x13e)](_0x3112ed,{'withFileTypes':!![]});a125_0x20271a[_0x5e7f0b(0x14a)](_0x12a762,{'recursive':!![]});for(const _0x3a92f7 of _0x13adb7){const _0x227440=a125_0x40e833['join'](_0x3112ed,_0x3a92f7[_0x5e7f0b(0x147)]),_0x11c6df=a125_0x40e833['join'](_0x12a762,_0x3a92f7[_0x5e7f0b(0x147)]);_0x3a92f7[_0x5e7f0b(0x146)]()?await copyDirectory(_0x227440,_0x11c6df):a125_0x20271a[_0x5e7f0b(0x13c)](_0x227440,_0x11c6df);}}catch(_0x5d6587){console[_0x5e7f0b(0x141)](_0x5e7f0b(0x13d),_0x5d6587);}}
1
+ (function(_0x4f6fff,_0x422f1e){const _0x5c8026=a125_0x118f,_0x220c6c=_0x4f6fff();while(!![]){try{const _0x4cb78d=-parseInt(_0x5c8026(0x166))/0x1*(-parseInt(_0x5c8026(0x16e))/0x2)+-parseInt(_0x5c8026(0x174))/0x3*(parseInt(_0x5c8026(0x165))/0x4)+-parseInt(_0x5c8026(0x173))/0x5+parseInt(_0x5c8026(0x16d))/0x6+parseInt(_0x5c8026(0x168))/0x7+-parseInt(_0x5c8026(0x16b))/0x8*(-parseInt(_0x5c8026(0x167))/0x9)+parseInt(_0x5c8026(0x171))/0xa*(parseInt(_0x5c8026(0x172))/0xb);if(_0x4cb78d===_0x422f1e)break;else _0x220c6c['push'](_0x220c6c['shift']());}catch(_0x34f22d){_0x220c6c['push'](_0x220c6c['shift']());}}}(a125_0x56ad,0xe9a45));import a125_0x14f01f from'node:path';function a125_0x118f(_0x4949c1,_0x255797){_0x4949c1=_0x4949c1-0x165;const _0x56ad88=a125_0x56ad();let _0x118f09=_0x56ad88[_0x4949c1];return _0x118f09;}import a125_0x42ffdc from'node:fs';export async function copyDirectory(_0x2439db,_0x5ea3fd){const _0x43b17b=a125_0x118f;try{const _0x2f1ac1=a125_0x42ffdc[_0x43b17b(0x16c)](_0x2439db,{'withFileTypes':!![]});a125_0x42ffdc[_0x43b17b(0x16f)](_0x5ea3fd,{'recursive':!![]});for(const _0x497202 of _0x2f1ac1){const _0xf1afd7=a125_0x14f01f[_0x43b17b(0x16a)](_0x2439db,_0x497202[_0x43b17b(0x176)]),_0x18ae0f=a125_0x14f01f[_0x43b17b(0x16a)](_0x5ea3fd,_0x497202[_0x43b17b(0x176)]);_0x497202[_0x43b17b(0x169)]()?await copyDirectory(_0xf1afd7,_0x18ae0f):a125_0x42ffdc['copyFileSync'](_0xf1afd7,_0x18ae0f);}}catch(_0x179700){console[_0x43b17b(0x175)](_0x43b17b(0x170),_0x179700);}}function a125_0x56ad(){const _0x1fdf8e=['180484wxQJly','39wxRJJH','9116532BsdaZN','4263231QAYXuU','isDirectory','join','8aEChKw','readdirSync','1798302mwOFxV','10448TjsnUd','mkdirSync','复制目录时出错:','3530CESmga','61589UZNTAq','6249010FumSxQ','126dcSxdn','error','name'];a125_0x56ad=function(){return _0x1fdf8e;};return a125_0x56ad();}
@@ -1 +1 @@
1
- (function(_0x3a8bcb,_0x4acb19){const _0x27ea69=a126_0x1ed7,_0x1bb598=_0x3a8bcb();while(!![]){try{const _0x5b9a56=-parseInt(_0x27ea69(0xeb))/0x1*(parseInt(_0x27ea69(0xea))/0x2)+parseInt(_0x27ea69(0xec))/0x3+-parseInt(_0x27ea69(0xe8))/0x4+-parseInt(_0x27ea69(0xe7))/0x5+-parseInt(_0x27ea69(0xef))/0x6+parseInt(_0x27ea69(0xe9))/0x7+-parseInt(_0x27ea69(0xee))/0x8*(-parseInt(_0x27ea69(0xed))/0x9);if(_0x5b9a56===_0x4acb19)break;else _0x1bb598['push'](_0x1bb598['shift']());}catch(_0x253e56){_0x1bb598['push'](_0x1bb598['shift']());}}}(a126_0x1afb,0x1ab9d));function a126_0x1ed7(_0x1491b0,_0x3985d6){_0x1491b0=_0x1491b0-0xe7;const _0x1afb8c=a126_0x1afb();let _0x1ed7e1=_0x1afb8c[_0x1491b0];return _0x1ed7e1;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x24f672,_0x2efdff){const _0x17513e=statSync(_0x24f672);if(_0x17513e['isDirectory']()){!existsSync(_0x2efdff)&&mkdirSync(_0x2efdff,{'recursive':!![]});const _0x1282fd=readdirSync(_0x24f672);for(const _0x1059c9 of _0x1282fd){await copyDir(join(_0x24f672,_0x1059c9),join(_0x2efdff,_0x1059c9));}}else copyFileSync(_0x24f672,_0x2efdff);}export function ensureDir(_0x347a9d){!existsSync(_0x347a9d)&&mkdirSync(_0x347a9d,{'recursive':!![]});}function a126_0x1afb(){const _0x199aa1=['183798tIcYZc','40icmqmg','50802JnmMTy','192675whucsW','380816bySoFc','25242aBenIN','2ZZoUpt','38679TAaTOv','553914shdqUn'];a126_0x1afb=function(){return _0x199aa1;};return a126_0x1afb();}export function pathExists(_0x23872e){return existsSync(_0x23872e);}
1
+ (function(_0x1a78b5,_0x55c498){const _0x2e76ab=a126_0x3a1b,_0xab7291=_0x1a78b5();while(!![]){try{const _0x40ef28=-parseInt(_0x2e76ab(0x13a))/0x1+parseInt(_0x2e76ab(0x135))/0x2+-parseInt(_0x2e76ab(0x137))/0x3+parseInt(_0x2e76ab(0x13c))/0x4*(-parseInt(_0x2e76ab(0x134))/0x5)+-parseInt(_0x2e76ab(0x138))/0x6+-parseInt(_0x2e76ab(0x139))/0x7+-parseInt(_0x2e76ab(0x133))/0x8*(-parseInt(_0x2e76ab(0x136))/0x9);if(_0x40ef28===_0x55c498)break;else _0xab7291['push'](_0xab7291['shift']());}catch(_0x371fcd){_0xab7291['push'](_0xab7291['shift']());}}}(a126_0x2e62,0xbc20f));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a126_0x2e62(){const _0x10c8c7=['4157667FybNLn','4378725psouRf','5636820YXifWp','174944hTbkkZ','506031SwYAqh','isDirectory','4CXfHMG','80FHqWOr','7499285MOTEBh','1161740LEPeKG'];a126_0x2e62=function(){return _0x10c8c7;};return a126_0x2e62();}import{join}from'node:path';function a126_0x3a1b(_0x2ad8d0,_0x2bdd5c){_0x2ad8d0=_0x2ad8d0-0x133;const _0x2e6222=a126_0x2e62();let _0x3a1b8f=_0x2e6222[_0x2ad8d0];return _0x3a1b8f;}export async function copyDir(_0xd79dc8,_0x4bf4d0){const _0x2600c4=a126_0x3a1b,_0x162134=statSync(_0xd79dc8);if(_0x162134[_0x2600c4(0x13b)]()){!existsSync(_0x4bf4d0)&&mkdirSync(_0x4bf4d0,{'recursive':!![]});const _0x23bf62=readdirSync(_0xd79dc8);for(const _0x23c04c of _0x23bf62){await copyDir(join(_0xd79dc8,_0x23c04c),join(_0x4bf4d0,_0x23c04c));}}else copyFileSync(_0xd79dc8,_0x4bf4d0);}export function ensureDir(_0x38a1c8){!existsSync(_0x38a1c8)&&mkdirSync(_0x38a1c8,{'recursive':!![]});}export function pathExists(_0x392094){return existsSync(_0x392094);}
@@ -1 +1 @@
1
- const a127_0x6300ae=a127_0x4172;function a127_0x4172(_0x8dca31,_0x286ab4){_0x8dca31=_0x8dca31-0x1e7;const _0x57be56=a127_0x57be();let _0x417251=_0x57be56[_0x8dca31];return _0x417251;}(function(_0x1a57ae,_0x1b88b7){const _0x5cdd0c=a127_0x4172,_0x488425=_0x1a57ae();while(!![]){try{const _0xcb0acf=-parseInt(_0x5cdd0c(0x1ec))/0x1*(-parseInt(_0x5cdd0c(0x1ef))/0x2)+-parseInt(_0x5cdd0c(0x1f0))/0x3*(parseInt(_0x5cdd0c(0x1f4))/0x4)+parseInt(_0x5cdd0c(0x1ff))/0x5*(-parseInt(_0x5cdd0c(0x1f8))/0x6)+parseInt(_0x5cdd0c(0x1fe))/0x7*(-parseInt(_0x5cdd0c(0x209))/0x8)+parseInt(_0x5cdd0c(0x200))/0x9+-parseInt(_0x5cdd0c(0x202))/0xa+parseInt(_0x5cdd0c(0x1e7))/0xb;if(_0xcb0acf===_0x1b88b7)break;else _0x488425['push'](_0x488425['shift']());}catch(_0x1dae9b){_0x488425['push'](_0x488425['shift']());}}}(a127_0x57be,0x6f3e0));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a127_0x57be(){const _0x3ac9c9=['5uubyFZ','2767410eDwser','content','3027390iMNStT','utf-8','skillTemplate','path','object','CDN\x20返回数据格式错误','/skills/guides.json','8iEAypI','17496578JfJkQu','\x0a\x0a>更新时间:','trimEnd','length','lastUpdated','22877ySRprY','cache','join','4mOWsWB','306NeGilP','extendContent','title','entries','836tWmBEP','.md','guides','.lovrabet','3991836btcAEL','.lovrabet/skill/guides','CDN\x20请求失败:\x20','push','CDN\x20数据中缺少\x20skillTemplate','statusText','3491817hKtLRy'];a127_0x57be=function(){return _0x3ac9c9;};return a127_0x57be();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x450aed=a127_0x4172,_0x576d9f=getTemplateBaseUrl();return _0x576d9f+_0x450aed(0x208);}const CACHE_DIR=join(homedir(),a127_0x6300ae(0x1f7),a127_0x6300ae(0x1ed));export async function fetchGuidesFromCDN(){const _0x4d7e5d=a127_0x6300ae,_0x4d97f3=getGuidesCdnUrl(),_0xf3caab=await fetch(_0x4d97f3,{'headers':{'Accept':'application/json'}});if(!_0xf3caab['ok'])throw new Error(_0x4d7e5d(0x1fa)+_0xf3caab['status']+'\x20'+_0xf3caab[_0x4d7e5d(0x1fd)]);const _0x443678=await _0xf3caab['json']();if(!_0x443678[_0x4d7e5d(0x1f6)]||typeof _0x443678[_0x4d7e5d(0x1f6)]!==_0x4d7e5d(0x206))throw new Error(_0x4d7e5d(0x207));return _0x443678;}export function writeGuidesToProject(_0x574101,_0x4d590f,_0x55d454=a127_0x6300ae(0x1f9),_0x3493e5){const _0x1ca040=a127_0x6300ae,_0xdeb377=join(_0x4d590f,_0x55d454);mkdirSync(_0xdeb377,{'recursive':!![]});for(const [_0x4e01ea,_0x231742]of Object['entries'](_0x574101[_0x1ca040(0x1f6)])){let _0x526931=_0x231742['content'];_0x231742[_0x1ca040(0x1eb)]&&(_0x526931=appendUpdateTime(_0x526931,_0x231742[_0x1ca040(0x1eb)])),writeFileSync(join(_0xdeb377,_0x4e01ea+_0x1ca040(0x1f5)),_0x526931,_0x1ca040(0x203));}}export function appendUpdateTime(_0x4a3e52,_0x3c4db2){const _0x21bdab=a127_0x6300ae;return _0x4a3e52=_0x4a3e52['replace'](/\n*>更新时间:.*$/m,''),_0x4a3e52['trimEnd']()+(_0x21bdab(0x1e8)+_0x3c4db2);}export function getSkillTemplate(_0x4dc415){const _0x339efe=a127_0x6300ae;return _0x4dc415[_0x339efe(0x204)]?.[_0x339efe(0x201)]||'';}export function appendExtendContents(_0x511668,_0x27f4a9,_0x2adf14){const _0x1134ca=a127_0x6300ae,_0x3dc0c9=[];for(const [,_0x2212c9]of Object['entries'](_0x27f4a9[_0x1134ca(0x1f6)])){_0x2212c9[_0x1134ca(0x1f1)]&&_0x3dc0c9[_0x1134ca(0x1fb)](_0x2212c9[_0x1134ca(0x1f1)][_0x1134ca(0x1e9)]());}if(_0x3dc0c9[_0x1134ca(0x1ea)]===0x0)return _0x511668;return _0x511668[_0x1134ca(0x1e9)]()+'\x0a\x0a'+_0x3dc0c9[_0x1134ca(0x1ee)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xd18c24,_0x15c114,_0xd5d118){const _0x49c1df=a127_0x6300ae,_0x296063=getSkillTemplate(_0xd18c24);if(!_0x296063)throw new Error(_0x49c1df(0x1fc));const _0x13ecd8=dirname(_0x15c114);mkdirSync(_0x13ecd8,{'recursive':!![]});let _0xbdbfdb=_0x296063['replace'](/\{\{IDE_NAME\}\}/g,_0xd5d118);_0xbdbfdb=appendExtendContents(_0xbdbfdb,_0xd18c24),_0xd18c24[_0x49c1df(0x204)][_0x49c1df(0x1eb)]&&(_0xbdbfdb=appendUpdateTime(_0xbdbfdb,_0xd18c24['skillTemplate']['lastUpdated'])),writeFileSync(_0x15c114,_0xbdbfdb,_0x49c1df(0x203));}export async function installGuides(_0x307024){const _0x1e82f7=a127_0x6300ae,_0x224c8b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x224c8b,_0x307024),Object['keys'](_0x224c8b[_0x1e82f7(0x1f6)])[_0x1e82f7(0x1ea)];}export function getGuidesSummary(_0x86d0a2){const _0x34f92f=a127_0x6300ae;return Object[_0x34f92f(0x1f3)](_0x86d0a2[_0x34f92f(0x1f6)])['map'](([_0x1a4dad,_0x42d77d])=>({'key':_0x1a4dad,'title':_0x42d77d[_0x34f92f(0x1f2)],'path':_0x42d77d[_0x34f92f(0x205)]}));}
1
+ const a127_0x2a0978=a127_0x2156;(function(_0x4d4cb7,_0x1d6d65){const _0x3a074b=a127_0x2156,_0xce9b82=_0x4d4cb7();while(!![]){try{const _0xca731c=-parseInt(_0x3a074b(0xcd))/0x1+-parseInt(_0x3a074b(0xc4))/0x2+-parseInt(_0x3a074b(0xc5))/0x3*(-parseInt(_0x3a074b(0xc1))/0x4)+-parseInt(_0x3a074b(0xc2))/0x5*(-parseInt(_0x3a074b(0xd7))/0x6)+-parseInt(_0x3a074b(0xbf))/0x7*(-parseInt(_0x3a074b(0xcc))/0x8)+-parseInt(_0x3a074b(0xd5))/0x9+parseInt(_0x3a074b(0xbc))/0xa;if(_0xca731c===_0x1d6d65)break;else _0xce9b82['push'](_0xce9b82['shift']());}catch(_0x9709d){_0xce9b82['push'](_0xce9b82['shift']());}}}(a127_0x3efc,0x22559));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x4887b5=a127_0x2156,_0x60de2f=getTemplateBaseUrl();return _0x60de2f+_0x4887b5(0xd3);}const CACHE_DIR=join(homedir(),a127_0x2a0978(0xca),a127_0x2a0978(0xcf));export async function fetchGuidesFromCDN(){const _0x5a88ee=a127_0x2a0978,_0x5c2e0b=getGuidesCdnUrl(),_0x395d14=await fetch(_0x5c2e0b,{'headers':{'Accept':_0x5a88ee(0xb8)}});if(!_0x395d14['ok'])throw new Error(_0x5a88ee(0xc8)+_0x395d14[_0x5a88ee(0xc9)]+'\x20'+_0x395d14[_0x5a88ee(0xce)]);const _0x933843=await _0x395d14['json']();if(!_0x933843[_0x5a88ee(0xbe)]||typeof _0x933843['guides']!==_0x5a88ee(0xc0))throw new Error(_0x5a88ee(0xd1));return _0x933843;}export function writeGuidesToProject(_0x542524,_0x1f091f,_0x57b5e5=a127_0x2a0978(0xba),_0x40d505){const _0x3dc5ce=a127_0x2a0978,_0x22f4ea=join(_0x1f091f,_0x57b5e5);mkdirSync(_0x22f4ea,{'recursive':!![]});for(const [_0x1d24c4,_0x35b020]of Object['entries'](_0x542524['guides'])){let _0x25ed31=_0x35b020[_0x3dc5ce(0xbd)];_0x35b020[_0x3dc5ce(0xd9)]&&(_0x25ed31=appendUpdateTime(_0x25ed31,_0x35b020[_0x3dc5ce(0xd9)])),writeFileSync(join(_0x22f4ea,_0x1d24c4+'.md'),_0x25ed31,'utf-8');}}export function appendUpdateTime(_0x1522ec,_0x4101c3){const _0x54826c=a127_0x2a0978;return _0x1522ec=_0x1522ec[_0x54826c(0xbb)](/\n*>更新时间:.*$/m,''),_0x1522ec['trimEnd']()+(_0x54826c(0xd2)+_0x4101c3);}export function getSkillTemplate(_0x59bb80){const _0x246b1d=a127_0x2a0978;return _0x59bb80[_0x246b1d(0xc6)]?.['content']||'';}export function appendExtendContents(_0x207c44,_0x430147,_0x15a2f0){const _0xf2d92f=a127_0x2a0978,_0x595882=[];for(const [,_0x171b1d]of Object[_0xf2d92f(0xb9)](_0x430147[_0xf2d92f(0xbe)])){_0x171b1d[_0xf2d92f(0xd8)]&&_0x595882[_0xf2d92f(0xc3)](_0x171b1d[_0xf2d92f(0xd8)][_0xf2d92f(0xd0)]());}if(_0x595882['length']===0x0)return _0x207c44;return _0x207c44[_0xf2d92f(0xd0)]()+'\x0a\x0a'+_0x595882['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3c0df6,_0x224346,_0x26e816){const _0x4a02fe=a127_0x2a0978,_0x791677=getSkillTemplate(_0x3c0df6);if(!_0x791677)throw new Error(_0x4a02fe(0xd4));const _0x2257a6=dirname(_0x224346);mkdirSync(_0x2257a6,{'recursive':!![]});let _0x557fd3=_0x791677[_0x4a02fe(0xbb)](/\{\{IDE_NAME\}\}/g,_0x26e816);_0x557fd3=appendExtendContents(_0x557fd3,_0x3c0df6),_0x3c0df6[_0x4a02fe(0xc6)][_0x4a02fe(0xd9)]&&(_0x557fd3=appendUpdateTime(_0x557fd3,_0x3c0df6['skillTemplate']['lastUpdated'])),writeFileSync(_0x224346,_0x557fd3,_0x4a02fe(0xda));}export async function installGuides(_0xcbf2b4){const _0x158bbd=a127_0x2a0978,_0x4aef86=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4aef86,_0xcbf2b4),Object[_0x158bbd(0xcb)](_0x4aef86[_0x158bbd(0xbe)])['length'];}function a127_0x3efc(){const _0x2f002a=['entries','.lovrabet/skill/guides','replace','335230zZiXIB','content','guides','49ZZwSDw','object','1015756WmvUIi','185oFZHAU','push','379556FCaBpr','3gmxTay','skillTemplate','title','CDN\x20请求失败:\x20','status','.lovrabet','keys','92048YXTYQE','207381KoOYjr','statusText','cache','trimEnd','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','/skills/guides.json','CDN\x20数据中缺少\x20skillTemplate','339372lCMAEX','map','33648dBNTgb','extendContent','lastUpdated','utf-8','application/json'];a127_0x3efc=function(){return _0x2f002a;};return a127_0x3efc();}function a127_0x2156(_0x5acbfa,_0xfd767a){_0x5acbfa=_0x5acbfa-0xb8;const _0x3efcb4=a127_0x3efc();let _0x215616=_0x3efcb4[_0x5acbfa];return _0x215616;}export function getGuidesSummary(_0x10af5f){const _0x59d198=a127_0x2a0978;return Object['entries'](_0x10af5f[_0x59d198(0xbe)])[_0x59d198(0xd6)](([_0x4c5111,_0x45e4c9])=>({'key':_0x4c5111,'title':_0x45e4c9[_0x59d198(0xc7)],'path':_0x45e4c9['path']}));}
@@ -1 +1 @@
1
- (function(_0x505570,_0x9c45f4){const _0x2bbd8d=a128_0x52ea,_0x4da9ec=_0x505570();while(!![]){try{const _0x186326=-parseInt(_0x2bbd8d(0x1cc))/0x1+-parseInt(_0x2bbd8d(0x1cf))/0x2*(parseInt(_0x2bbd8d(0x1ba))/0x3)+-parseInt(_0x2bbd8d(0x1bf))/0x4+-parseInt(_0x2bbd8d(0x1cd))/0x5*(parseInt(_0x2bbd8d(0x1c7))/0x6)+parseInt(_0x2bbd8d(0x1d0))/0x7*(-parseInt(_0x2bbd8d(0x1b5))/0x8)+-parseInt(_0x2bbd8d(0x1b8))/0x9*(-parseInt(_0x2bbd8d(0x1b6))/0xa)+parseInt(_0x2bbd8d(0x1bd))/0xb;if(_0x186326===_0x9c45f4)break;else _0x4da9ec['push'](_0x4da9ec['shift']());}catch(_0x4c9015){_0x4da9ec['push'](_0x4da9ec['shift']());}}}(a128_0x5833,0x911c1));function a128_0x52ea(_0x132142,_0x4c6ccc){_0x132142=_0x132142-0x1b4;const _0x5833df=a128_0x5833();let _0x52ea0f=_0x5833df[_0x132142];return _0x52ea0f;}export async function httpRequest(_0x1009ce,_0x51828f={}){const _0x6b7ee4=a128_0x52ea,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x51828f;let _0x56bbc6=null;for(let _0x4702a3=0x0;_0x4702a3<=retries;_0x4702a3++){try{const _0x3f5cf4=new AbortController(),_0x1fae55=setTimeout(()=>_0x3f5cf4[_0x6b7ee4(0x1c5)](),timeout),_0x5636e0=await fetch(_0x1009ce,{'headers':headers,'signal':_0x3f5cf4['signal']});clearTimeout(_0x1fae55);let _0x100a25;const _0x1242cd=_0x5636e0[_0x6b7ee4(0x1c3)][_0x6b7ee4(0x1b4)](_0x6b7ee4(0x1b7));return _0x1242cd?.[_0x6b7ee4(0x1c6)]('application/json')?_0x100a25=await _0x5636e0[_0x6b7ee4(0x1cb)]():_0x100a25=await _0x5636e0[_0x6b7ee4(0x1bc)](),{'ok':_0x5636e0['ok'],'status':_0x5636e0[_0x6b7ee4(0x1b9)],'statusText':_0x5636e0[_0x6b7ee4(0x1c2)],'data':_0x100a25,'headers':_0x5636e0[_0x6b7ee4(0x1c3)],'url':_0x5636e0['url'],'text':()=>_0x5636e0['text']()};}catch(_0x45e1e5){_0x56bbc6=_0x45e1e5 instanceof Error?_0x45e1e5:new Error(String(_0x45e1e5));if(_0x4702a3===retries)break;if(shouldRetry(_0x45e1e5)){console[_0x6b7ee4(0x1ca)](_0x6b7ee4(0x1bb)+retryDelay+_0x6b7ee4(0x1d1)+(_0x4702a3+0x1)+_0x6b7ee4(0x1be)),await sleep(retryDelay);continue;}else break;}}throw _0x56bbc6||new Error(_0x6b7ee4(0x1c1));}function shouldRetry(_0x4675d0){const _0x3f5ce7=a128_0x52ea;if(_0x4675d0 instanceof Error){if(_0x4675d0[_0x3f5ce7(0x1c4)]===_0x3f5ce7(0x1ce))return![];if(_0x4675d0[_0x3f5ce7(0x1c4)]===_0x3f5ce7(0x1c0)&&_0x4675d0[_0x3f5ce7(0x1c9)]['includes'](_0x3f5ce7(0x1d2)))return!![];if(_0x4675d0[_0x3f5ce7(0x1c9)][_0x3f5ce7(0x1c6)](_0x3f5ce7(0x1c8)))return!![];if(_0x4675d0[_0x3f5ce7(0x1c9)][_0x3f5ce7(0x1c6)]('ENOTFOUND'))return![];}return![];}function sleep(_0x1d4b9e){return new Promise(_0x3eca2f=>setTimeout(_0x3eca2f,_0x1d4b9e));}export function validateUrl(_0x2772ef){try{return new URL(_0x2772ef),!![];}catch{return![];}}function a128_0x5833(){const _0x2855d8=['name','abort','includes','5915928lXBeQf','ECONNRESET','message','log','json','680134nIztRR','5gWqOsO','AbortError','2xAASNQ','7BcsMge','ms\x20后进行第\x20','fetch','get','235784uPdtsD','8000560OdkYYc','content-type','9jVrAGT','status','2262099FtdcjB','*\x20请求失败,','text','35994849oJGymx','\x20次重试...','4113272uNaryo','TypeError','Request\x20failed','statusText','headers'];a128_0x5833=function(){return _0x2855d8;};return a128_0x5833();}
1
+ (function(_0x488396,_0x1c5b1e){const _0x480e7f=a128_0x41c1,_0x5aaaf4=_0x488396();while(!![]){try{const _0x1878cb=parseInt(_0x480e7f(0x166))/0x1+-parseInt(_0x480e7f(0x15d))/0x2+-parseInt(_0x480e7f(0x162))/0x3*(parseInt(_0x480e7f(0x16d))/0x4)+-parseInt(_0x480e7f(0x174))/0x5*(parseInt(_0x480e7f(0x16f))/0x6)+parseInt(_0x480e7f(0x165))/0x7*(parseInt(_0x480e7f(0x168))/0x8)+parseInt(_0x480e7f(0x173))/0x9*(parseInt(_0x480e7f(0x167))/0xa)+-parseInt(_0x480e7f(0x160))/0xb;if(_0x1878cb===_0x1c5b1e)break;else _0x5aaaf4['push'](_0x5aaaf4['shift']());}catch(_0x1e6ec2){_0x5aaaf4['push'](_0x5aaaf4['shift']());}}}(a128_0x5905,0xacf1d));export async function httpRequest(_0x2ef1fd,_0x439f76={}){const _0x48f072=a128_0x41c1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x439f76;let _0x15eee4=null;for(let _0x1c9acb=0x0;_0x1c9acb<=retries;_0x1c9acb++){try{const _0x173529=new AbortController(),_0x2b6a66=setTimeout(()=>_0x173529['abort'](),timeout),_0x5bd04a=await fetch(_0x2ef1fd,{'headers':headers,'signal':_0x173529['signal']});clearTimeout(_0x2b6a66);let _0x5cbfa7;const _0x1a64ec=_0x5bd04a[_0x48f072(0x15f)]['get'](_0x48f072(0x16c));return _0x1a64ec?.[_0x48f072(0x16a)]('application/json')?_0x5cbfa7=await _0x5bd04a['json']():_0x5cbfa7=await _0x5bd04a[_0x48f072(0x163)](),{'ok':_0x5bd04a['ok'],'status':_0x5bd04a[_0x48f072(0x175)],'statusText':_0x5bd04a['statusText'],'data':_0x5cbfa7,'headers':_0x5bd04a[_0x48f072(0x15f)],'url':_0x5bd04a[_0x48f072(0x15c)],'text':()=>_0x5bd04a[_0x48f072(0x163)]()};}catch(_0x41b0b2){_0x15eee4=_0x41b0b2 instanceof Error?_0x41b0b2:new Error(String(_0x41b0b2));if(_0x1c9acb===retries)break;if(shouldRetry(_0x41b0b2)){console[_0x48f072(0x170)](_0x48f072(0x16e)+retryDelay+'ms\x20后进行第\x20'+(_0x1c9acb+0x1)+_0x48f072(0x171)),await sleep(retryDelay);continue;}else break;}}throw _0x15eee4||new Error(_0x48f072(0x169));}function a128_0x41c1(_0x1e9612,_0x588e7e){_0x1e9612=_0x1e9612-0x15b;const _0x5905fd=a128_0x5905();let _0x41c136=_0x5905fd[_0x1e9612];return _0x41c136;}function a128_0x5905(){const _0x2d9eda=['36zrfmHy','3155YBnONE','status','ECONNRESET','fetch','url','1744284cxnnmO','name','headers','148324uGvfew','AbortError','111654uRiQiY','text','ENOTFOUND','7VIXDVU','1242287yEKELy','1173890oXvITj','8672520XOVdjV','Request\x20failed','includes','message','content-type','56HDHhYi','*\x20请求失败,','6474dElFoS','log','\x20次重试...','TypeError'];a128_0x5905=function(){return _0x2d9eda;};return a128_0x5905();}function shouldRetry(_0x18f18d){const _0x13719c=a128_0x41c1;if(_0x18f18d instanceof Error){if(_0x18f18d[_0x13719c(0x15e)]===_0x13719c(0x161))return![];if(_0x18f18d[_0x13719c(0x15e)]===_0x13719c(0x172)&&_0x18f18d[_0x13719c(0x16b)][_0x13719c(0x16a)](_0x13719c(0x15b)))return!![];if(_0x18f18d[_0x13719c(0x16b)]['includes'](_0x13719c(0x176)))return!![];if(_0x18f18d[_0x13719c(0x16b)][_0x13719c(0x16a)](_0x13719c(0x164)))return![];}return![];}function sleep(_0x15dd6c){return new Promise(_0x564ad0=>setTimeout(_0x564ad0,_0x15dd6c));}export function validateUrl(_0x1cfe40){try{return new URL(_0x1cfe40),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a129_0xf187(_0x5809e3,_0x4d9abe){_0x5809e3=_0x5809e3-0xcd;const _0x4e7ad2=a129_0x4e7a();let _0xf18792=_0x4e7ad2[_0x5809e3];return _0xf18792;}(function(_0x429acb,_0x5c6fa5){const _0x215cf9=a129_0xf187,_0x226a65=_0x429acb();while(!![]){try{const _0x52dc2b=parseInt(_0x215cf9(0xdb))/0x1*(parseInt(_0x215cf9(0xde))/0x2)+-parseInt(_0x215cf9(0xd4))/0x3*(parseInt(_0x215cf9(0xd3))/0x4)+-parseInt(_0x215cf9(0xdf))/0x5*(-parseInt(_0x215cf9(0xd7))/0x6)+-parseInt(_0x215cf9(0xd2))/0x7*(parseInt(_0x215cf9(0xce))/0x8)+parseInt(_0x215cf9(0xdd))/0x9+-parseInt(_0x215cf9(0xd6))/0xa*(-parseInt(_0x215cf9(0xd9))/0xb)+parseInt(_0x215cf9(0xd1))/0xc*(parseInt(_0x215cf9(0xcf))/0xd);if(_0x52dc2b===_0x5c6fa5)break;else _0x226a65['push'](_0x226a65['shift']());}catch(_0x190ff1){_0x226a65['push'](_0x226a65['shift']());}}}(a129_0x4e7a,0xe3546));function a129_0x4e7a(){const _0x23f320=['583857tgjQoQ','2789254EmXpTF','25pRqwEl','stdin','3376RKfDgT','4901KOqzKu','isRaw','1332hudifN','22526twsLDQ','516NxfCEp','3228OgQCAG','isTTY','1341530PDJAsJ','306996GiFvuo','nonInteractive','55SnQRzl','true','1HRQayq','stdout'];a129_0x4e7a=function(){return _0x23f320;};return a129_0x4e7a();}function env(_0x1c338a){return process.env[`RABETBASE_${_0x1c338a}`]||process.env[`LOVRABET_${_0x1c338a}`]||undefined;}export function isNonInteractive(_0x4f9670){const _0x5c7d70=a129_0xf187;return!!(_0x4f9670[_0x5c7d70(0xd8)]||_0x4f9670['ci']||env('CI')===_0x5c7d70(0xda)||process.env.CI===_0x5c7d70(0xda)||!process[_0x5c7d70(0xdc)][_0x5c7d70(0xd5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x60710c=a129_0xf187;if(!process[_0x60710c(0xcd)][_0x60710c(0xd5)])return![];try{const _0x545c94=process[_0x60710c(0xcd)][_0x60710c(0xd0)];return process[_0x60710c(0xcd)]['setRawMode'](!![]),process['stdin']['setRawMode'](_0x545c94??![]),!![];}catch{return![];}}
1
+ function a129_0x5765(_0x161349,_0x1112a3){_0x161349=_0x161349-0xbe;const _0x526c95=a129_0x526c();let _0x57658d=_0x526c95[_0x161349];return _0x57658d;}function a129_0x526c(){const _0x4fece8=['1617tEiEsi','840942PQAZxR','isRaw','true','798blEClq','277956zKEfNZ','7KjAHQu','setRawMode','39945diJpXY','427bbfPMh','68410SipNWR','1494392IapGSf','2423907Ddzyzh','140UpebJP','isTTY'];a129_0x526c=function(){return _0x4fece8;};return a129_0x526c();}(function(_0xba6df3,_0x166c74){const _0x2d6b3b=a129_0x5765,_0x3b2253=_0xba6df3();while(!![]){try{const _0x25f56b=parseInt(_0x2d6b3b(0xbf))/0x1*(-parseInt(_0x2d6b3b(0xc9))/0x2)+-parseInt(_0x2d6b3b(0xc6))/0x3+-parseInt(_0x2d6b3b(0xc3))/0x4*(parseInt(_0x2d6b3b(0xbe))/0x5)+-parseInt(_0x2d6b3b(0xca))/0x6+-parseInt(_0x2d6b3b(0xcb))/0x7*(-parseInt(_0x2d6b3b(0xc1))/0x8)+-parseInt(_0x2d6b3b(0xc2))/0x9+parseInt(_0x2d6b3b(0xc0))/0xa*(parseInt(_0x2d6b3b(0xc5))/0xb);if(_0x25f56b===_0x166c74)break;else _0x3b2253['push'](_0x3b2253['shift']());}catch(_0x5c7302){_0x3b2253['push'](_0x3b2253['shift']());}}}(a129_0x526c,0x23c2b));function env(_0x597e69){return process.env[`RABETBASE_${_0x597e69}`]||process.env[`LOVRABET_${_0x597e69}`]||undefined;}export function isNonInteractive(_0x194114){const _0x1040ca=a129_0x5765;return!!(_0x194114['nonInteractive']||_0x194114['ci']||env('CI')===_0x1040ca(0xc8)||process.env.CI===_0x1040ca(0xc8)||!process['stdout'][_0x1040ca(0xc4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x52143c=a129_0x5765;if(!process['stdin'][_0x52143c(0xc4)])return![];try{const _0xbbb867=process['stdin'][_0x52143c(0xc7)];return process['stdin'][_0x52143c(0xcc)](!![]),process['stdin'][_0x52143c(0xcc)](_0xbbb867??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a130_0x328069=a130_0x3c11;function a130_0x5a24(){const _0x3a2573=['green','setLogPath','timestamp','失败:\x20','filter','printf','3459870pDPoBj','map','blue','readFileSync','error','1493674rCwSKE','message','now','command','Failed\x20to\x20read\x20logs:','createLogger','writeFileSync','logTask','combine','297870HROneT','完成:\x20','success','setRawCommand','mkdirSync','duration','winstonLogger','utf8','details','4Bvgsab','readLogs','info','dirname','existsSync','logFilePath','addColors','clear','currentRawCommand','initWinstonLogger','开始执行:\x20','19523jBPpkw','5578695UwPcKA','level','Failed\x20to\x20clear\x20logs:','split','641028wneuxV','rawCommand','46dtvWcH','stringify','File','toISOString','join','5DoMKlQ','3083824UbVbbE','clearLogs','format','warn'];a130_0x5a24=function(){return _0x3a2573;};return a130_0x5a24();}function a130_0x3c11(_0x1df81e,_0x15bef6){_0x1df81e=_0x1df81e-0x99;const _0x5a24d9=a130_0x5a24();let _0x3c11af=_0x5a24d9[_0x1df81e];return _0x3c11af;}(function(_0x1b1c8d,_0x509503){const _0x2ed218=a130_0x3c11,_0x27c725=_0x1b1c8d();while(!![]){try{const _0x545f2f=-parseInt(_0x2ed218(0xd0))/0x1*(-parseInt(_0x2ed218(0x9e))/0x2)+parseInt(_0x2ed218(0xbc))/0x3*(parseInt(_0x2ed218(0xc5))/0x4)+-parseInt(_0x2ed218(0xa3))/0x5*(-parseInt(_0x2ed218(0x9c))/0x6)+-parseInt(_0x2ed218(0xb3))/0x7+-parseInt(_0x2ed218(0xa4))/0x8+parseInt(_0x2ed218(0xd1))/0x9+-parseInt(_0x2ed218(0xae))/0xa;if(_0x545f2f===_0x509503)break;else _0x27c725['push'](_0x27c725['shift']());}catch(_0x560afc){_0x27c725['push'](_0x27c725['shift']());}}}(a130_0x5a24,0x509b5));import a130_0x3d9b57 from'winston';import a130_0x42280b from'node:fs';import a130_0x12f18e from'node:path';class Logger{['winstonLogger'];[a130_0x328069(0xca)];[a130_0x328069(0xcd)]='';constructor(){this['logFilePath']='';}[a130_0x328069(0xbf)](_0x366685){const _0xcaf641=a130_0x328069;this[_0xcaf641(0xcd)]=_0x366685;}[a130_0x328069(0xce)](){const _0x5d0baa=a130_0x328069,_0x179b97=a130_0x12f18e[_0x5d0baa(0xc8)](this[_0x5d0baa(0xca)]);!a130_0x42280b['existsSync'](_0x179b97)&&a130_0x42280b[_0x5d0baa(0xc0)](_0x179b97,{'recursive':!![]});const _0x133e5d=a130_0x3d9b57[_0x5d0baa(0xa6)][_0x5d0baa(0xbb)](a130_0x3d9b57['format'][_0x5d0baa(0xaa)](),a130_0x3d9b57[_0x5d0baa(0xa6)]['errors']({'stack':!![]}),a130_0x3d9b57[_0x5d0baa(0xa6)][_0x5d0baa(0xad)](_0x143e78=>{const _0x2d4bbe=_0x5d0baa,_0x1aae2f={'timestamp':_0x143e78[_0x2d4bbe(0xaa)]||new Date()[_0x2d4bbe(0xa1)](),'level':_0x143e78[_0x2d4bbe(0x99)]||'info','command':_0x143e78[_0x2d4bbe(0xb6)]||'unknown','rawCommand':_0x143e78[_0x2d4bbe(0x9d)]||this[_0x2d4bbe(0xcd)]||undefined,'message':_0x143e78['message']||'','duration':_0x143e78[_0x2d4bbe(0xc1)]||undefined,'details':_0x143e78[_0x2d4bbe(0xc4)]||undefined};return JSON[_0x2d4bbe(0x9f)](_0x1aae2f);}));this[_0x5d0baa(0xc2)]=a130_0x3d9b57[_0x5d0baa(0xb8)]({'level':_0x5d0baa(0xc7),'format':_0x133e5d,'transports':[new a130_0x3d9b57['transports'][(_0x5d0baa(0xa0))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a130_0x3d9b57[_0x5d0baa(0xcb)]({'success':_0x5d0baa(0xa8),'error':'red','warn':'yellow','info':_0x5d0baa(0xb0)});}[a130_0x328069(0xa9)](_0x65e7bc){const _0x246bdc=a130_0x328069;this[_0x246bdc(0xca)]=a130_0x12f18e[_0x246bdc(0xa2)](_0x65e7bc,'.lovrabet.log'),this[_0x246bdc(0xc2)]&&this[_0x246bdc(0xc2)][_0x246bdc(0xcc)](),this['initWinstonLogger']();}[a130_0x328069(0xc7)](_0x499d6c,_0x1e0edf,_0x51a6d2){const _0x39e0c1=a130_0x328069;if(!this[_0x39e0c1(0xca)]||!this[_0x39e0c1(0xc2)])return;this[_0x39e0c1(0xc2)]['info'](_0x1e0edf,{'command':_0x499d6c,'details':_0x51a6d2});}[a130_0x328069(0xbe)](_0x4b6709,_0x10c9aa,_0x1f68a5,_0x3b04c2){const _0x32adf7=a130_0x328069;if(!this[_0x32adf7(0xca)]||!this[_0x32adf7(0xc2)])return;this[_0x32adf7(0xc2)]['log'](_0x32adf7(0xc7),_0x10c9aa,{'level':_0x32adf7(0xbe),'command':_0x4b6709,'duration':_0x1f68a5,'details':_0x3b04c2});}[a130_0x328069(0xb2)](_0x561d02,_0x5085e7,_0x1dd734){const _0x8fd21=a130_0x328069;if(!this[_0x8fd21(0xca)]||!this[_0x8fd21(0xc2)])return;this['winstonLogger'][_0x8fd21(0xb2)](_0x5085e7,{'command':_0x561d02,'details':_0x1dd734});}[a130_0x328069(0xa7)](_0x433dfd,_0x44fde3,_0x520b88){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['warn'](_0x44fde3,{'command':_0x433dfd,'details':_0x520b88});}async[a130_0x328069(0xba)](_0x307a42,_0x1a5c5a,_0x5eca58){const _0x29e800=a130_0x328069,_0x5458bf=Date[_0x29e800(0xb5)]();this[_0x29e800(0xc7)](_0x307a42,_0x29e800(0xcf)+_0x1a5c5a);try{const _0x56ac44=await _0x5eca58(),_0xb13829=Date[_0x29e800(0xb5)]()-_0x5458bf;return this['success'](_0x307a42,_0x29e800(0xbd)+_0x1a5c5a,_0xb13829),_0x56ac44;}catch(_0x508137){const _0x16dde9=Date[_0x29e800(0xb5)]()-_0x5458bf;this[_0x29e800(0xb2)](_0x307a42,_0x29e800(0xab)+_0x1a5c5a,{'error':_0x508137 instanceof Error?_0x508137[_0x29e800(0xb4)]:String(_0x508137),'duration':_0x16dde9});throw _0x508137;}}[a130_0x328069(0xc6)](){const _0x1f584b=a130_0x328069;try{if(!a130_0x42280b[_0x1f584b(0xc9)](this[_0x1f584b(0xca)]))return[];const _0x3684cf=a130_0x42280b[_0x1f584b(0xb1)](this[_0x1f584b(0xca)],_0x1f584b(0xc3));return _0x3684cf[_0x1f584b(0x9b)]('\x0a')[_0x1f584b(0xac)](_0x1354d7=>_0x1354d7['trim']())[_0x1f584b(0xaf)](_0x39ae66=>JSON['parse'](_0x39ae66));}catch(_0x36ff75){return console[_0x1f584b(0xa7)](_0x1f584b(0xb7),_0x36ff75),[];}}[a130_0x328069(0xa5)](){const _0x3110d2=a130_0x328069;try{a130_0x42280b[_0x3110d2(0xc9)](this[_0x3110d2(0xca)])&&a130_0x42280b[_0x3110d2(0xb9)](this[_0x3110d2(0xca)],'','utf8');}catch(_0xe0b9ae){console['warn'](_0x3110d2(0x9a),_0xe0b9ae);}}['getWinstonInstance'](){const _0x491668=a130_0x328069;return this[_0x491668(0xc2)];}}export const logger=new Logger();
1
+ const a130_0x185aaf=a130_0x3271;(function(_0x27bbdd,_0x5ed1dc){const _0x4f259e=a130_0x3271,_0x3c75f3=_0x27bbdd();while(!![]){try{const _0x3fe432=-parseInt(_0x4f259e(0x13d))/0x1*(-parseInt(_0x4f259e(0x11c))/0x2)+-parseInt(_0x4f259e(0x144))/0x3*(parseInt(_0x4f259e(0x11b))/0x4)+-parseInt(_0x4f259e(0x146))/0x5+parseInt(_0x4f259e(0x14b))/0x6+-parseInt(_0x4f259e(0x126))/0x7*(parseInt(_0x4f259e(0x147))/0x8)+parseInt(_0x4f259e(0x14e))/0x9+parseInt(_0x4f259e(0x132))/0xa*(parseInt(_0x4f259e(0x115))/0xb);if(_0x3fe432===_0x5ed1dc)break;else _0x3c75f3['push'](_0x3c75f3['shift']());}catch(_0x4b4707){_0x3c75f3['push'](_0x3c75f3['shift']());}}}(a130_0x2fed,0x9f0e2));import a130_0x2f26d3 from'winston';import a130_0x3d107d from'node:fs';import a130_0x34c494 from'node:path';function a130_0x2fed(){const _0x3d0ab0=['1777530RlVLeF','toISOString','mkdirSync','9330840etCexp','combine','parse','timestamp','1287VMZqMA','format','createLogger','logFilePath','rawCommand','readLogs','42064JBqHCP','461444xqYFxC','logTask','command','filter','unknown','currentRawCommand','stringify','setLogPath','trim','utf8','2079auHUyR','开始执行:\x20','yellow','success','level','readFileSync','red','warn','File','split','info','error','132190XzxeJF','message','.lovrabet.log','join','printf','getWinstonInstance','existsSync','winstonLogger','initWinstonLogger','blue','失败:\x20','3rGDYnh','green','log','Failed\x20to\x20read\x20logs:','now','setRawCommand','addColors','354nIHaOv','clearLogs','2957575KAAQOF','29304jHqcLl','Failed\x20to\x20clear\x20logs:','writeFileSync','duration'];a130_0x2fed=function(){return _0x3d0ab0;};return a130_0x2fed();}function a130_0x3271(_0x4191b0,_0x37b9dc){_0x4191b0=_0x4191b0-0x112;const _0x2fedca=a130_0x2fed();let _0x327192=_0x2fedca[_0x4191b0];return _0x327192;}class Logger{[a130_0x185aaf(0x139)];[a130_0x185aaf(0x118)];[a130_0x185aaf(0x121)]='';constructor(){this['logFilePath']='';}[a130_0x185aaf(0x142)](_0x1b21ca){const _0x15e3a0=a130_0x185aaf;this[_0x15e3a0(0x121)]=_0x1b21ca;}['initWinstonLogger'](){const _0x356fbf=a130_0x185aaf,_0x198f63=a130_0x34c494['dirname'](this['logFilePath']);!a130_0x3d107d[_0x356fbf(0x138)](_0x198f63)&&a130_0x3d107d[_0x356fbf(0x14d)](_0x198f63,{'recursive':!![]});const _0x2f3632=a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x112)](a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x114)](),a130_0x2f26d3['format']['errors']({'stack':!![]}),a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x136)](_0xbc10fd=>{const _0x569430=_0x356fbf,_0x3b0586={'timestamp':_0xbc10fd['timestamp']||new Date()[_0x569430(0x14c)](),'level':_0xbc10fd[_0x569430(0x12a)]||_0x569430(0x130),'command':_0xbc10fd[_0x569430(0x11e)]||_0x569430(0x120),'rawCommand':_0xbc10fd[_0x569430(0x119)]||this['currentRawCommand']||undefined,'message':_0xbc10fd[_0x569430(0x133)]||'','duration':_0xbc10fd[_0x569430(0x14a)]||undefined,'details':_0xbc10fd['details']||undefined};return JSON[_0x569430(0x122)](_0x3b0586);}));this['winstonLogger']=a130_0x2f26d3[_0x356fbf(0x117)]({'level':_0x356fbf(0x130),'format':_0x2f3632,'transports':[new a130_0x2f26d3['transports'][(_0x356fbf(0x12e))]({'filename':this[_0x356fbf(0x118)],'level':_0x356fbf(0x130)})],'silent':![]}),a130_0x2f26d3[_0x356fbf(0x143)]({'success':_0x356fbf(0x13e),'error':_0x356fbf(0x12c),'warn':_0x356fbf(0x128),'info':_0x356fbf(0x13b)});}[a130_0x185aaf(0x123)](_0x3cc8fc){const _0x4fdaca=a130_0x185aaf;this[_0x4fdaca(0x118)]=a130_0x34c494[_0x4fdaca(0x135)](_0x3cc8fc,_0x4fdaca(0x134)),this[_0x4fdaca(0x139)]&&this[_0x4fdaca(0x139)]['clear'](),this[_0x4fdaca(0x13a)]();}[a130_0x185aaf(0x130)](_0x4a7644,_0x4b7bd2,_0x5848c4){const _0x4f54ac=a130_0x185aaf;if(!this[_0x4f54ac(0x118)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x4b7bd2,{'command':_0x4a7644,'details':_0x5848c4});}['success'](_0x254ce4,_0x3ac428,_0x571033,_0x2d61bc){const _0x5776ea=a130_0x185aaf;if(!this[_0x5776ea(0x118)]||!this['winstonLogger'])return;this[_0x5776ea(0x139)][_0x5776ea(0x13f)]('info',_0x3ac428,{'level':_0x5776ea(0x129),'command':_0x254ce4,'duration':_0x571033,'details':_0x2d61bc});}[a130_0x185aaf(0x131)](_0x5d6130,_0x507a86,_0x4912a6){const _0x292248=a130_0x185aaf;if(!this[_0x292248(0x118)]||!this[_0x292248(0x139)])return;this[_0x292248(0x139)][_0x292248(0x131)](_0x507a86,{'command':_0x5d6130,'details':_0x4912a6});}[a130_0x185aaf(0x12d)](_0xb1f7f8,_0x434b88,_0x315afd){const _0x9318ab=a130_0x185aaf;if(!this[_0x9318ab(0x118)]||!this[_0x9318ab(0x139)])return;this['winstonLogger']['warn'](_0x434b88,{'command':_0xb1f7f8,'details':_0x315afd});}async[a130_0x185aaf(0x11d)](_0x1afcab,_0x35ecbb,_0x23f7a4){const _0x12048b=a130_0x185aaf,_0x3d630b=Date[_0x12048b(0x141)]();this[_0x12048b(0x130)](_0x1afcab,_0x12048b(0x127)+_0x35ecbb);try{const _0x21bdc2=await _0x23f7a4(),_0x3dc683=Date[_0x12048b(0x141)]()-_0x3d630b;return this[_0x12048b(0x129)](_0x1afcab,'完成:\x20'+_0x35ecbb,_0x3dc683),_0x21bdc2;}catch(_0x50444d){const _0x42a8c3=Date[_0x12048b(0x141)]()-_0x3d630b;this['error'](_0x1afcab,_0x12048b(0x13c)+_0x35ecbb,{'error':_0x50444d instanceof Error?_0x50444d[_0x12048b(0x133)]:String(_0x50444d),'duration':_0x42a8c3});throw _0x50444d;}}[a130_0x185aaf(0x11a)](){const _0x5ce8d2=a130_0x185aaf;try{if(!a130_0x3d107d[_0x5ce8d2(0x138)](this[_0x5ce8d2(0x118)]))return[];const _0x4dfa18=a130_0x3d107d[_0x5ce8d2(0x12b)](this[_0x5ce8d2(0x118)],_0x5ce8d2(0x125));return _0x4dfa18[_0x5ce8d2(0x12f)]('\x0a')[_0x5ce8d2(0x11f)](_0x34f9b3=>_0x34f9b3[_0x5ce8d2(0x124)]())['map'](_0x175613=>JSON[_0x5ce8d2(0x113)](_0x175613));}catch(_0x5399e6){return console[_0x5ce8d2(0x12d)](_0x5ce8d2(0x140),_0x5399e6),[];}}[a130_0x185aaf(0x145)](){const _0x49aa9a=a130_0x185aaf;try{a130_0x3d107d[_0x49aa9a(0x138)](this[_0x49aa9a(0x118)])&&a130_0x3d107d[_0x49aa9a(0x149)](this[_0x49aa9a(0x118)],'',_0x49aa9a(0x125));}catch(_0x359c3f){console[_0x49aa9a(0x12d)](_0x49aa9a(0x148),_0x359c3f);}}[a130_0x185aaf(0x137)](){const _0x477e34=a130_0x185aaf;return this[_0x477e34(0x139)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a131_0x27d309=a131_0x2723;function a131_0x2723(_0x253516,_0xf9c99a){_0x253516=_0x253516-0x151;const _0x56e30e=a131_0x56e3();let _0x2723fe=_0x56e30e[_0x253516];return _0x2723fe;}(function(_0xfde759,_0x30bda7){const _0xa5deb3=a131_0x2723,_0x2cb2ad=_0xfde759();while(!![]){try{const _0x320b23=-parseInt(_0xa5deb3(0x157))/0x1*(-parseInt(_0xa5deb3(0x153))/0x2)+-parseInt(_0xa5deb3(0x155))/0x3*(-parseInt(_0xa5deb3(0x15e))/0x4)+parseInt(_0xa5deb3(0x159))/0x5*(parseInt(_0xa5deb3(0x15d))/0x6)+-parseInt(_0xa5deb3(0x151))/0x7+parseInt(_0xa5deb3(0x154))/0x8+-parseInt(_0xa5deb3(0x156))/0x9*(parseInt(_0xa5deb3(0x15b))/0xa)+-parseInt(_0xa5deb3(0x15a))/0xb;if(_0x320b23===_0x30bda7)break;else _0x2cb2ad['push'](_0x2cb2ad['shift']());}catch(_0x1fa95b){_0x2cb2ad['push'](_0x2cb2ad['shift']());}}}(a131_0x56e3,0x61619));export const isWindows=process[a131_0x27d309(0x152)]===a131_0x27d309(0x15c);function a131_0x56e3(){const _0x174819=['2270DVnTkj','win32','58944TDpnio','4IMPHIy','3619364EJbWGE','platform','138bWfmeh','3720368QRPuqi','300039UeBqTJ','12087zTkGCX','493ROiPnA','.cmd','330XbBThO','293414WSOTyI'];a131_0x56e3=function(){return _0x174819;};return a131_0x56e3();}export function resolveNpmBin(_0x426969){const _0x1f0612=a131_0x27d309;return isWindows?_0x426969+_0x1f0612(0x158):_0x426969;}
1
+ const a131_0x2bd3ad=a131_0x848c;function a131_0xc637(){const _0x104cb1=['250048YIqiFp','win32','298596ZCzfWN','2326313mzFAED','457428rTTXXk','4nlTlLo','.cmd','20IhOYSh','76863qXmEca','7qeylxp','1513265rhjgUo','3177HZKcDv','5392QYeGFV'];a131_0xc637=function(){return _0x104cb1;};return a131_0xc637();}(function(_0x4380a3,_0xbac2dc){const _0x1b21e5=a131_0x848c,_0x2caf3a=_0x4380a3();while(!![]){try{const _0x48c7f3=parseInt(_0x1b21e5(0xda))/0x1+-parseInt(_0x1b21e5(0xd2))/0x2*(parseInt(_0x1b21e5(0xd5))/0x3)+parseInt(_0x1b21e5(0xcf))/0x4+-parseInt(_0x1b21e5(0xd7))/0x5+parseInt(_0x1b21e5(0xd1))/0x6*(parseInt(_0x1b21e5(0xd6))/0x7)+parseInt(_0x1b21e5(0xd9))/0x8*(-parseInt(_0x1b21e5(0xd8))/0x9)+-parseInt(_0x1b21e5(0xd4))/0xa*(-parseInt(_0x1b21e5(0xd0))/0xb);if(_0x48c7f3===_0xbac2dc)break;else _0x2caf3a['push'](_0x2caf3a['shift']());}catch(_0x57b183){_0x2caf3a['push'](_0x2caf3a['shift']());}}}(a131_0xc637,0x38a94));function a131_0x848c(_0x20f895,_0x172c9b){_0x20f895=_0x20f895-0xcf;const _0xc637b=a131_0xc637();let _0x848cd1=_0xc637b[_0x20f895];return _0x848cd1;}export const isWindows=process['platform']===a131_0x2bd3ad(0xdb);export function resolveNpmBin(_0x32d106){const _0x4d434c=a131_0x2bd3ad;return isWindows?_0x32d106+_0x4d434c(0xd3):_0x32d106;}
@@ -1 +1 @@
1
- const a132_0x29572a=a132_0xbc94;(function(_0x5f4d78,_0x15933b){const _0x59314a=a132_0xbc94,_0xa16406=_0x5f4d78();while(!![]){try{const _0x389ea7=-parseInt(_0x59314a(0x1d7))/0x1+parseInt(_0x59314a(0x1db))/0x2+-parseInt(_0x59314a(0x1d1))/0x3+parseInt(_0x59314a(0x1ce))/0x4*(parseInt(_0x59314a(0x1e2))/0x5)+-parseInt(_0x59314a(0x1d3))/0x6*(parseInt(_0x59314a(0x1e0))/0x7)+parseInt(_0x59314a(0x1d6))/0x8*(-parseInt(_0x59314a(0x1cf))/0x9)+-parseInt(_0x59314a(0x1d2))/0xa*(-parseInt(_0x59314a(0x1d9))/0xb);if(_0x389ea7===_0x15933b)break;else _0xa16406['push'](_0xa16406['shift']());}catch(_0x21c319){_0xa16406['push'](_0xa16406['shift']());}}}(a132_0x3709,0x37189));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a132_0xbc94(_0x1e0133,_0xd801ac){_0x1e0133=_0x1e0133-0x1cb;const _0x3709f3=a132_0x3709();let _0xbc94d=_0x3709f3[_0x1e0133];return _0xbc94d;}function getRulesCdnUrl(){const _0x582708=a132_0xbc94,_0x34584a=getTemplateBaseUrl();return _0x34584a+_0x582708(0x1d5);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x29572a(0x1df));export async function fetchRulesFromCDN(){const _0x3d3027=a132_0x29572a,_0x7522a6=getRulesCdnUrl(),_0x1b28b9=await fetch(_0x7522a6,{'headers':{'Accept':_0x3d3027(0x1d8)}});if(!_0x1b28b9['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1b28b9['status']+'\x20'+_0x1b28b9['statusText']);const _0x39ac78=await _0x1b28b9['json']();if(!_0x39ac78[_0x3d3027(0x1cb)]||typeof _0x39ac78[_0x3d3027(0x1cb)]!==_0x3d3027(0x1d0))throw new Error(_0x3d3027(0x1cc));return _0x39ac78;}export async function getRulesContent(){const _0x2a3ac3=a132_0x29572a;try{const _0x120d0e=await fetchRulesFromCDN();return _0x120d0e[_0x2a3ac3(0x1cb)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x22aac3=a132_0x29572a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x22aac3(0x1de));throw new Error(_0x22aac3(0x1dd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1b3405){const _0x1d2425=a132_0x29572a,_0x56ab1a=await fetchRulesFromCDN()[_0x1d2425(0x1da)](()=>null);let _0x56729e;_0x56ab1a?(_0x56729e=_0x56ab1a[_0x1d2425(0x1cb)],_0x56ab1a[_0x1d2425(0x1cd)]&&(_0x56729e=appendUpdateTime(_0x56729e,_0x56ab1a[_0x1d2425(0x1cd)]))):_0x56729e=readLocalTemplate();const _0x1f15ca=dirname(_0x1b3405);!existsSync(_0x1f15ca)&&mkdirSync(_0x1f15ca,{'recursive':!![]}),writeFileSync(_0x1b3405,_0x56729e,_0x1d2425(0x1de));}export async function copyRulesToCursor(_0x59367b){const _0x1a676d=a132_0x29572a,_0x49887e=join(_0x59367b,_0x1a676d(0x1e1)),_0x10733f=join(_0x49887e,_0x1a676d(0x1d4));if(existsSync(_0x10733f))return![];return await writeRulesFile(_0x10733f),!![];}export async function copyRulesToAgentsMd(_0x53f4aa){const _0x4b2868=a132_0x29572a,_0x4ef284=join(_0x53f4aa,_0x4b2868(0x1dc));if(existsSync(_0x4ef284))return![];return await writeRulesFile(_0x4ef284),!![];}function a132_0x3709(){const _0x436d68=['49007cNNhpl','.cursor/rules','2820XucUbv','content','CDN\x20返回数据格式错误','lastUpdated','620fMoIUc','9mkuQen','string','51249vIyZpz','8916790zeZqRh','258aQHvMR','lovrabet_rules.mdc','/rules/rules.json','2466680GbLBCy','286558wjpIPg','application/json','11MfSfgj','catch','319186ZqkUym','agents.md','本地模板文件不存在:\x20','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl'];a132_0x3709=function(){return _0x436d68;};return a132_0x3709();}
1
+ const a132_0x111262=a132_0xdf92;(function(_0x325808,_0x1523cb){const _0x152ea9=a132_0xdf92,_0x28831b=_0x325808();while(!![]){try{const _0x483070=parseInt(_0x152ea9(0x1b4))/0x1+-parseInt(_0x152ea9(0x1a0))/0x2*(parseInt(_0x152ea9(0x1ae))/0x3)+parseInt(_0x152ea9(0x19c))/0x4*(-parseInt(_0x152ea9(0x1a9))/0x5)+-parseInt(_0x152ea9(0x1b5))/0x6*(parseInt(_0x152ea9(0x1a5))/0x7)+parseInt(_0x152ea9(0x1aa))/0x8*(parseInt(_0x152ea9(0x1a4))/0x9)+-parseInt(_0x152ea9(0x1a3))/0xa+parseInt(_0x152ea9(0x1a8))/0xb*(parseInt(_0x152ea9(0x1b2))/0xc);if(_0x483070===_0x1523cb)break;else _0x28831b['push'](_0x28831b['shift']());}catch(_0x25eec7){_0x28831b['push'](_0x28831b['shift']());}}}(a132_0x5620,0x58b7e));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x4ec89e=a132_0xdf92,_0x5d4254=getTemplateBaseUrl();return _0x5d4254+_0x4ec89e(0x1ab);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x111262(0x1b1));export async function fetchRulesFromCDN(){const _0x301b5e=a132_0x111262,_0x15a461=getRulesCdnUrl(),_0x424ea4=await fetch(_0x15a461,{'headers':{'Accept':_0x301b5e(0x1b0)}});if(!_0x424ea4['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x424ea4[_0x301b5e(0x19b)]+'\x20'+_0x424ea4[_0x301b5e(0x1af)]);const _0x3331fa=await _0x424ea4[_0x301b5e(0x19d)]();if(!_0x3331fa[_0x301b5e(0x19f)]||typeof _0x3331fa[_0x301b5e(0x19f)]!==_0x301b5e(0x19e))throw new Error(_0x301b5e(0x1ad));return _0x3331fa;}export async function getRulesContent(){try{const _0x10d5b7=await fetchRulesFromCDN();return _0x10d5b7['content'];}catch{return readLocalTemplate();}}function a132_0xdf92(_0x1859da,_0x5b1c9b){_0x1859da=_0x1859da-0x19b;const _0x56202f=a132_0x5620();let _0xdf923f=_0x56202f[_0x1859da];return _0xdf923f;}export function readLocalTemplate(){const _0x45dde7=a132_0x111262;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x45dde7(0x1b3)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1e4e07){const _0x4f2f90=a132_0x111262,_0x406ef5=await fetchRulesFromCDN()[_0x4f2f90(0x1a7)](()=>null);let _0x4dd249;_0x406ef5?(_0x4dd249=_0x406ef5['content'],_0x406ef5[_0x4f2f90(0x1a2)]&&(_0x4dd249=appendUpdateTime(_0x4dd249,_0x406ef5['lastUpdated']))):_0x4dd249=readLocalTemplate();const _0x5075ba=dirname(_0x1e4e07);!existsSync(_0x5075ba)&&mkdirSync(_0x5075ba,{'recursive':!![]}),writeFileSync(_0x1e4e07,_0x4dd249,_0x4f2f90(0x1ac));}export async function copyRulesToCursor(_0x3c0c95){const _0x1cbf44=a132_0x111262,_0x5a7d27=join(_0x3c0c95,_0x1cbf44(0x1a6)),_0x2b0f07=join(_0x5a7d27,'lovrabet_rules.mdc');if(existsSync(_0x2b0f07))return![];return await writeRulesFile(_0x2b0f07),!![];}function a132_0x5620(){const _0x21e898=['104316CcKQyL','status','636gagDtf','json','string','content','408948ZtOhpI','agents.md','lastUpdated','453990STEfXc','126135NmDInF','28hztmZO','.cursor/rules','catch','11fupxwB','4685TSfwLN','200ELDAJz','/rules/rules.json','utf-8','CDN\x20返回数据格式错误','9sJbNAc','statusText','application/json','../../templates/rules/lovrabet_rules.mdc.tpl','7089828dqTFXW','本地模板文件不存在:\x20','299544aiSJGi'];a132_0x5620=function(){return _0x21e898;};return a132_0x5620();}export async function copyRulesToAgentsMd(_0x4472d8){const _0x553102=a132_0x111262,_0x188957=join(_0x4472d8,_0x553102(0x1a1));if(existsSync(_0x188957))return![];return await writeRulesFile(_0x188957),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1ef420){return new Promise(_0x51a8a9=>setTimeout(_0x51a8a9,_0x1ef420));}
1
+ export function sleep(_0x5963fb){return new Promise(_0x3048a7=>setTimeout(_0x3048a7,_0x5963fb));}
@@ -1 +1 @@
1
- const a134_0x8d1683=a134_0x3cb4;(function(_0x23fd51,_0x3aa3c3){const _0xbc07b1=a134_0x3cb4,_0x58cbce=_0x23fd51();while(!![]){try{const _0x19df5f=-parseInt(_0xbc07b1(0x14a))/0x1*(-parseInt(_0xbc07b1(0x15b))/0x2)+parseInt(_0xbc07b1(0x153))/0x3+-parseInt(_0xbc07b1(0x145))/0x4+-parseInt(_0xbc07b1(0x164))/0x5*(-parseInt(_0xbc07b1(0x147))/0x6)+-parseInt(_0xbc07b1(0x17f))/0x7+parseInt(_0xbc07b1(0x15d))/0x8*(-parseInt(_0xbc07b1(0x177))/0x9)+-parseInt(_0xbc07b1(0x167))/0xa;if(_0x19df5f===_0x3aa3c3)break;else _0x58cbce['push'](_0x58cbce['shift']());}catch(_0x1f97e9){_0x58cbce['push'](_0x58cbce['shift']());}}}(a134_0x1ff6,0x1a25d));import a134_0x5726da from'node:fs';function a134_0x3cb4(_0x131120,_0x413847){_0x131120=_0x131120-0x13e;const _0x1ff65c=a134_0x1ff6();let _0x3cb41a=_0x1ff65c[_0x131120];return _0x3cb41a;}import a134_0x23d065 from'node:path';import{createRequire}from'node:module';function a134_0x1ff6(){const _0x2b8873=['utf8','258tYDrkv','join','alias','9vqHjBY','pop','模板内容替换失败','datasetCode:\x20\x22','toDisplayTitle','.tpl','name','toLocaleDateString','mkdir','520710iMvIsj','toUpperCase','charAt','.md','extname','map','2-digit','alias:\x20\x22','34598ztytTl','split','1048mQzifY','processDirectory','name:\x20\x22','isFile','tableName','\x20},','tableName:\x20\x22','15835ZkpHzQ','toLocaleTimeString','replace','883730OYYedq','LOVRABET','YourModel','.js','api','replaceApiContent','readFile','isDirectory','\x0a\x20\x20\x20\x20{\x20','error','includes','now','toLowerCase','promises','copyFile','开始处理模板内容替换','711wgTXJN','default','.json','processFile','replaceContent','toComponentName','readdir','.ts','1021209ygjddt','slice','template','endsWith','.tsx','模板内容替换完成','../../package.json','numeric','454928sXOpjs'];a134_0x1ff6=function(){return _0x2b8873;};return a134_0x1ff6();}import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a134_0x8d1683(0x143))['version'];export class TemplateReplacer{static[a134_0x8d1683(0x17c)](_0x4b80c8){const _0x4bef17=a134_0x8d1683,_0x54e941=_0x4b80c8[_0x4bef17(0x15c)]('/')[_0x4bef17(0x14b)]()||_0x4b80c8;return _0x54e941[_0x4bef17(0x15c)]('-')['map'](_0x5d8edc=>_0x5d8edc[_0x4bef17(0x155)](0x0)[_0x4bef17(0x154)]()+_0x5d8edc[_0x4bef17(0x13e)](0x1)[_0x4bef17(0x173)]())[_0x4bef17(0x148)]('');}static[a134_0x8d1683(0x14e)](_0x38c9f2){const _0x232c93=a134_0x8d1683,_0x369562=_0x38c9f2['split']('/')[_0x232c93(0x14b)]()||_0x38c9f2;return _0x369562[_0x232c93(0x15c)]('-')['map'](_0x33628d=>_0x33628d[_0x232c93(0x155)](0x0)['toUpperCase']()+_0x33628d['slice'](0x1)['toLowerCase']())[_0x232c93(0x148)]('\x20');}static[a134_0x8d1683(0x17b)](_0x2421e4,_0xb2c478,_0x44f0a9){const _0x2104d7=a134_0x8d1683,_0x2804eb=this[_0x2104d7(0x17c)](_0xb2c478),_0x10a340=this['toDisplayTitle'](_0xb2c478),_0x33f69e=new Date(),_0x695271=_0x33f69e['toLocaleString'](undefined,{'year':_0x2104d7(0x144),'month':_0x2104d7(0x159),'day':'2-digit','hour':_0x2104d7(0x159),'minute':_0x2104d7(0x159),'second':_0x2104d7(0x159),'hour12':![]})[_0x2104d7(0x166)](/\//g,'-'),_0x55bb0d=_0x33f69e[_0x2104d7(0x151)](undefined,{'year':_0x2104d7(0x144),'month':_0x2104d7(0x159),'day':'2-digit'})['replace'](/\//g,'-'),_0x530502=_0x33f69e[_0x2104d7(0x165)](undefined,{'hour12':![]});let _0x5c4ffe=_0x2421e4[_0x2104d7(0x166)](/\{CliVersion\}/g,CLI_VERSION)[_0x2104d7(0x166)](/\{ComponentName\}/g,_0x2804eb)[_0x2104d7(0x166)](/\{DisplayTitle\}/g,_0x10a340)[_0x2104d7(0x166)](/\{PageName\}/g,_0xb2c478)[_0x2104d7(0x166)](/\{TemplateName\}/g,_0x44f0a9)[_0x2104d7(0x166)](/\{CreatedAt\}/g,_0x695271)[_0x2104d7(0x166)](/\{CreatedDate\}/g,_0x55bb0d)['replace'](/\{CreatedTime\}/g,_0x530502);return _0x5c4ffe;}static[a134_0x8d1683(0x16c)](_0x1aaf68,_0x25799e,_0x1629e9,_0x3b45a1,_0xe85948,_0x413418,_0x1cdc45,_0x54cb68){const _0x3fa2ba=a134_0x8d1683,_0x4054b4=new Date(),_0x4f6c1d=_0x4054b4['toISOString'](),_0x390766=_0x1629e9[_0x3fa2ba(0x158)](_0x5f440f=>{const _0x4d4059=_0x3fa2ba,_0xcd9a2f=[_0x4d4059(0x14d)+_0x5f440f['datasetCode']+'\x22',_0x4d4059(0x163)+_0x5f440f[_0x4d4059(0x161)]+'\x22',_0x4d4059(0x15f)+_0x5f440f[_0x4d4059(0x150)]+'\x22'];return _0x5f440f[_0x4d4059(0x149)]&&_0xcd9a2f['push'](_0x4d4059(0x15a)+_0x5f440f[_0x4d4059(0x149)]+'\x22'),_0x4d4059(0x16f)+_0xcd9a2f[_0x4d4059(0x148)](',\x20')+_0x4d4059(0x162);})[_0x3fa2ba(0x148)](''),_0xbaf629=_0x3b45a1||_0x1629e9[0x0]?.[_0x3fa2ba(0x149)]||_0x3fa2ba(0x169);let _0x54b9df=_0x1aaf68[_0x3fa2ba(0x166)](/\{AppCode\}/g,_0x25799e)[_0x3fa2ba(0x166)](/\{ModelConfigs\}/g,_0x390766)[_0x3fa2ba(0x166)](/\{ExampleModelName\}/g,_0xbaf629)[_0x3fa2ba(0x166)](/\{ApiFileName\}/g,_0xe85948||_0x3fa2ba(0x16b))['replace'](/\{ConfigName\}/g,_0x413418||_0x3fa2ba(0x178))[_0x3fa2ba(0x166)](/\{ClientConfigParam\}/g,_0x1cdc45||'')[_0x3fa2ba(0x166)](/\{VarPrefix\}/g,_0x54cb68||_0x3fa2ba(0x168))[_0x3fa2ba(0x166)](/\{CreatedAt\}/g,_0x4f6c1d);return _0x54b9df;}static async['processTemplate'](_0x1728c6,_0xf1b72e,_0x5e00cc,_0x10c30c,_0x21ddf2=!![]){const _0x476957=a134_0x8d1683,_0x5e2be3=Date['now']();try{_0x21ddf2&&logger['info'](_0x476957(0x13f),_0x476957(0x176),{'templatePath':_0x1728c6,'targetPath':_0xf1b72e,'pageName':_0x5e00cc,'templateName':_0x10c30c});await a134_0x5726da[_0x476957(0x174)]['mkdir'](_0xf1b72e,{'recursive':!![]}),await this[_0x476957(0x15e)](_0x1728c6,_0xf1b72e,_0x5e00cc,_0x10c30c);if(_0x21ddf2){const _0xfeb9c6=Date[_0x476957(0x172)]()-_0x5e2be3;logger['success'](_0x476957(0x13f),_0x476957(0x142),_0xfeb9c6,{'pageName':_0x5e00cc,'templateName':_0x10c30c});}}catch(_0x2c1901){if(_0x21ddf2){const _0x46b767=Date['now']()-_0x5e2be3;logger[_0x476957(0x170)](_0x476957(0x13f),_0x476957(0x14c),{'templatePath':_0x1728c6,'targetPath':_0xf1b72e,'pageName':_0x5e00cc,'templateName':_0x10c30c,'error':_0x2c1901 instanceof Error?_0x2c1901['message']:String(_0x2c1901),'duration':_0x46b767});}throw _0x2c1901;}}static async[a134_0x8d1683(0x15e)](_0x3779a4,_0x5c825c,_0x49c329,_0x117ed2){const _0x40ed02=a134_0x8d1683,_0x1414f1=await a134_0x5726da[_0x40ed02(0x174)][_0x40ed02(0x17d)](_0x3779a4,{'withFileTypes':!![]});for(const _0x1b7e52 of _0x1414f1){const _0x72c4e6=a134_0x23d065['join'](_0x3779a4,_0x1b7e52[_0x40ed02(0x150)]);let _0x9d5083=a134_0x23d065[_0x40ed02(0x148)](_0x5c825c,_0x1b7e52[_0x40ed02(0x150)]);_0x1b7e52[_0x40ed02(0x150)][_0x40ed02(0x140)]('.tpl')&&(_0x9d5083=a134_0x23d065[_0x40ed02(0x148)](_0x5c825c,_0x1b7e52[_0x40ed02(0x150)]['replace'](/\.tpl$/,'')));if(_0x1b7e52[_0x40ed02(0x16e)]())await a134_0x5726da['promises'][_0x40ed02(0x152)](_0x9d5083,{'recursive':!![]}),await this[_0x40ed02(0x15e)](_0x72c4e6,_0x9d5083,_0x49c329,_0x117ed2);else _0x1b7e52[_0x40ed02(0x160)]()&&await this[_0x40ed02(0x17a)](_0x72c4e6,_0x9d5083,_0x49c329,_0x117ed2);}}static async[a134_0x8d1683(0x17a)](_0xc6c721,_0x4205a4,_0x35a0ad,_0x266d73){const _0xf6a097=a134_0x8d1683,_0x89db96=a134_0x23d065[_0xf6a097(0x157)](_0xc6c721)[_0xf6a097(0x173)]();_0xc6c721[_0xf6a097(0x140)](_0xf6a097(0x14f))&&(_0x4205a4=_0x4205a4[_0xf6a097(0x166)](/\.tpl$/,''));const _0x560815=[_0xf6a097(0x141),_0xf6a097(0x17e),'.jsx',_0xf6a097(0x16a),_0xf6a097(0x179),_0xf6a097(0x156),'.css','.scss',_0xf6a097(0x14f)];if(_0x560815[_0xf6a097(0x171)](_0x89db96)||_0xc6c721[_0xf6a097(0x140)](_0xf6a097(0x14f))){const _0x208708=await a134_0x5726da[_0xf6a097(0x174)][_0xf6a097(0x16d)](_0xc6c721,_0xf6a097(0x146)),_0x2e079f=this[_0xf6a097(0x17b)](_0x208708,_0x35a0ad,_0x266d73);await a134_0x5726da[_0xf6a097(0x174)]['writeFile'](_0x4205a4,_0x2e079f,_0xf6a097(0x146));}else await a134_0x5726da['promises'][_0xf6a097(0x175)](_0xc6c721,_0x4205a4);}}
1
+ const a134_0x592bfe=a134_0xd079;(function(_0x186fd2,_0x5b7b6c){const _0x43f5bc=a134_0xd079,_0x18f147=_0x186fd2();while(!![]){try{const _0x40427b=-parseInt(_0x43f5bc(0xfe))/0x1+parseInt(_0x43f5bc(0xfc))/0x2*(parseInt(_0x43f5bc(0x113))/0x3)+parseInt(_0x43f5bc(0xec))/0x4*(-parseInt(_0x43f5bc(0x126))/0x5)+parseInt(_0x43f5bc(0x107))/0x6+parseInt(_0x43f5bc(0x12b))/0x7*(parseInt(_0x43f5bc(0xf1))/0x8)+parseInt(_0x43f5bc(0x117))/0x9*(parseInt(_0x43f5bc(0xf0))/0xa)+parseInt(_0x43f5bc(0x11d))/0xb*(-parseInt(_0x43f5bc(0x114))/0xc);if(_0x40427b===_0x5b7b6c)break;else _0x18f147['push'](_0x18f147['shift']());}catch(_0x31fbb5){_0x18f147['push'](_0x18f147['shift']());}}}(a134_0x4b9e,0xb84d4));import a134_0x206aa2 from'node:fs';import a134_0x1f22c6 from'node:path';function a134_0xd079(_0x2787f9,_0x48ebdf){_0x2787f9=_0x2787f9-0xea;const _0x4b9e51=a134_0x4b9e();let _0xd07938=_0x4b9e51[_0x2787f9];return _0xd07938;}import{createRequire}from'node:module';import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a134_0x592bfe(0xef))['version'];export class TemplateReplacer{static['toComponentName'](_0x1762a){const _0x2b8920=a134_0x592bfe,_0x248dbc=_0x1762a[_0x2b8920(0x10f)]('/')[_0x2b8920(0x122)]()||_0x1762a;return _0x248dbc[_0x2b8920(0x10f)]('-')[_0x2b8920(0x11f)](_0xe499f7=>_0xe499f7[_0x2b8920(0x128)](0x0)[_0x2b8920(0x104)]()+_0xe499f7['slice'](0x1)[_0x2b8920(0x125)]())['join']('');}static[a134_0x592bfe(0x124)](_0x523cba){const _0x312aad=a134_0x592bfe,_0x215d5c=_0x523cba['split']('/')[_0x312aad(0x122)]()||_0x523cba;return _0x215d5c[_0x312aad(0x10f)]('-')['map'](_0xd99c2f=>_0xd99c2f[_0x312aad(0x128)](0x0)['toUpperCase']()+_0xd99c2f['slice'](0x1)[_0x312aad(0x125)]())[_0x312aad(0x12c)]('\x20');}static[a134_0x592bfe(0x108)](_0x46d4e1,_0x2d4e75,_0xde26ae){const _0x1e3b40=a134_0x592bfe,_0x4435b5=this[_0x1e3b40(0x120)](_0x2d4e75),_0x2d6c20=this[_0x1e3b40(0x124)](_0x2d4e75),_0x489078=new Date(),_0x1bdff8=_0x489078[_0x1e3b40(0xf6)](undefined,{'year':'numeric','month':_0x1e3b40(0x111),'day':'2-digit','hour':_0x1e3b40(0x111),'minute':_0x1e3b40(0x111),'second':_0x1e3b40(0x111),'hour12':![]})[_0x1e3b40(0x12a)](/\//g,'-'),_0x1db81c=_0x489078[_0x1e3b40(0x11e)](undefined,{'year':'numeric','month':_0x1e3b40(0x111),'day':_0x1e3b40(0x111)})[_0x1e3b40(0x12a)](/\//g,'-'),_0x1fcd3e=_0x489078[_0x1e3b40(0xf4)](undefined,{'hour12':![]});let _0x329c58=_0x46d4e1[_0x1e3b40(0x12a)](/\{CliVersion\}/g,CLI_VERSION)[_0x1e3b40(0x12a)](/\{ComponentName\}/g,_0x4435b5)[_0x1e3b40(0x12a)](/\{DisplayTitle\}/g,_0x2d6c20)[_0x1e3b40(0x12a)](/\{PageName\}/g,_0x2d4e75)[_0x1e3b40(0x12a)](/\{TemplateName\}/g,_0xde26ae)['replace'](/\{CreatedAt\}/g,_0x1bdff8)[_0x1e3b40(0x12a)](/\{CreatedDate\}/g,_0x1db81c)[_0x1e3b40(0x12a)](/\{CreatedTime\}/g,_0x1fcd3e);return _0x329c58;}static['replaceApiContent'](_0x1bb996,_0xca89ac,_0x3be40c,_0x28373d,_0x449201,_0x2a40b7,_0x1db956,_0x4f0d34){const _0x169e28=a134_0x592bfe,_0x46dda1=new Date(),_0xcc099a=_0x46dda1[_0x169e28(0xee)](),_0x2dc6c5=_0x3be40c[_0x169e28(0x11f)](_0x4e767c=>{const _0x42b03f=_0x169e28,_0xa8e497=[_0x42b03f(0x10d)+_0x4e767c[_0x42b03f(0xeb)]+'\x22','tableName:\x20\x22'+_0x4e767c[_0x42b03f(0xfb)]+'\x22','name:\x20\x22'+_0x4e767c[_0x42b03f(0x115)]+'\x22'];return _0x4e767c[_0x42b03f(0x12d)]&&_0xa8e497[_0x42b03f(0xea)](_0x42b03f(0x105)+_0x4e767c['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xa8e497['join'](',\x20')+_0x42b03f(0x102);})['join'](''),_0x103144=_0x28373d||_0x3be40c[0x0]?.[_0x169e28(0x12d)]||'YourModel';let _0x5319de=_0x1bb996[_0x169e28(0x12a)](/\{AppCode\}/g,_0xca89ac)[_0x169e28(0x12a)](/\{ModelConfigs\}/g,_0x2dc6c5)[_0x169e28(0x12a)](/\{ExampleModelName\}/g,_0x103144)[_0x169e28(0x12a)](/\{ApiFileName\}/g,_0x449201||'api')[_0x169e28(0x12a)](/\{ConfigName\}/g,_0x2a40b7||'default')[_0x169e28(0x12a)](/\{ClientConfigParam\}/g,_0x1db956||'')[_0x169e28(0x12a)](/\{VarPrefix\}/g,_0x4f0d34||_0x169e28(0x11a))[_0x169e28(0x12a)](/\{CreatedAt\}/g,_0xcc099a);return _0x5319de;}static async[a134_0x592bfe(0x10a)](_0x493166,_0x360d81,_0x2da9ea,_0x4e0b42,_0x35c5a0=!![]){const _0x38f530=a134_0x592bfe,_0x42c36c=Date[_0x38f530(0xfd)]();try{_0x35c5a0&&logger[_0x38f530(0xed)]('template',_0x38f530(0x123),{'templatePath':_0x493166,'targetPath':_0x360d81,'pageName':_0x2da9ea,'templateName':_0x4e0b42});await a134_0x206aa2[_0x38f530(0xf8)][_0x38f530(0xf5)](_0x360d81,{'recursive':!![]}),await this[_0x38f530(0x116)](_0x493166,_0x360d81,_0x2da9ea,_0x4e0b42);if(_0x35c5a0){const _0xb6456f=Date['now']()-_0x42c36c;logger[_0x38f530(0xfa)](_0x38f530(0x106),_0x38f530(0xf9),_0xb6456f,{'pageName':_0x2da9ea,'templateName':_0x4e0b42});}}catch(_0x405ad2){if(_0x35c5a0){const _0x2db2d3=Date[_0x38f530(0xfd)]()-_0x42c36c;logger[_0x38f530(0xff)](_0x38f530(0x106),_0x38f530(0xf7),{'templatePath':_0x493166,'targetPath':_0x360d81,'pageName':_0x2da9ea,'templateName':_0x4e0b42,'error':_0x405ad2 instanceof Error?_0x405ad2[_0x38f530(0x10e)]:String(_0x405ad2),'duration':_0x2db2d3});}throw _0x405ad2;}}static async[a134_0x592bfe(0x116)](_0xf72ffb,_0x14e56c,_0x2f9176,_0x22459c){const _0x20500b=a134_0x592bfe,_0x5754cb=await a134_0x206aa2[_0x20500b(0xf8)]['readdir'](_0xf72ffb,{'withFileTypes':!![]});for(const _0x22f669 of _0x5754cb){const _0x4d46c4=a134_0x1f22c6[_0x20500b(0x12c)](_0xf72ffb,_0x22f669[_0x20500b(0x115)]);let _0x2b78bf=a134_0x1f22c6['join'](_0x14e56c,_0x22f669[_0x20500b(0x115)]);_0x22f669['name'][_0x20500b(0x103)]('.tpl')&&(_0x2b78bf=a134_0x1f22c6[_0x20500b(0x12c)](_0x14e56c,_0x22f669[_0x20500b(0x115)][_0x20500b(0x12a)](/\.tpl$/,'')));if(_0x22f669['isDirectory']())await a134_0x206aa2[_0x20500b(0xf8)]['mkdir'](_0x2b78bf,{'recursive':!![]}),await this[_0x20500b(0x116)](_0x4d46c4,_0x2b78bf,_0x2f9176,_0x22459c);else _0x22f669[_0x20500b(0x11c)]()&&await this[_0x20500b(0x100)](_0x4d46c4,_0x2b78bf,_0x2f9176,_0x22459c);}}static async[a134_0x592bfe(0x100)](_0x2e3fdf,_0x428120,_0xfaceb2,_0x53816a){const _0x4c6651=a134_0x592bfe,_0x1f144e=a134_0x1f22c6[_0x4c6651(0x118)](_0x2e3fdf)[_0x4c6651(0x125)]();_0x2e3fdf[_0x4c6651(0x103)](_0x4c6651(0x112))&&(_0x428120=_0x428120[_0x4c6651(0x12a)](/\.tpl$/,''));const _0x24e443=[_0x4c6651(0x10b),_0x4c6651(0xf3),_0x4c6651(0x127),_0x4c6651(0x11b),_0x4c6651(0x101),_0x4c6651(0x109),'.css',_0x4c6651(0x119),_0x4c6651(0x112)];if(_0x24e443[_0x4c6651(0x129)](_0x1f144e)||_0x2e3fdf['endsWith'](_0x4c6651(0x112))){const _0x5a6f0b=await a134_0x206aa2['promises'][_0x4c6651(0x110)](_0x2e3fdf,_0x4c6651(0x121)),_0x16775c=this[_0x4c6651(0x108)](_0x5a6f0b,_0xfaceb2,_0x53816a);await a134_0x206aa2['promises'][_0x4c6651(0xf2)](_0x428120,_0x16775c,'utf8');}else await a134_0x206aa2[_0x4c6651(0xf8)][_0x4c6651(0x10c)](_0x2e3fdf,_0x428120);}}function a134_0x4b9e(){const _0x542f6b=['replace','4525829bRrqIm','join','alias','push','datasetCode','5155548qPLNXr','info','toISOString','../../package.json','70uZVako','8GJpoBX','writeFile','.ts','toLocaleTimeString','mkdir','toLocaleString','模板内容替换失败','promises','模板内容替换完成','success','tableName','969562JugAIu','now','173181xCDYmK','error','processFile','.json','\x20},','endsWith','toUpperCase','alias:\x20\x22','template','7812354kJcRvb','replaceContent','.md','processTemplate','.tsx','copyFile','datasetCode:\x20\x22','message','split','readFile','2-digit','.tpl','6NoArgJ','6610056xHEJsu','name','processDirectory','1223118rCZwaJ','extname','.scss','LOVRABET','.js','isFile','33mZzICo','toLocaleDateString','map','toComponentName','utf8','pop','开始处理模板内容替换','toDisplayTitle','toLowerCase','5xRsXmz','.jsx','charAt','includes'];a134_0x4b9e=function(){return _0x542f6b;};return a134_0x4b9e();}
@@ -1 +1 @@
1
- (function(_0x265202,_0x55278b){const _0x1cc762=a135_0x55f1,_0x34347d=_0x265202();while(!![]){try{const _0x227b30=parseInt(_0x1cc762(0x1cc))/0x1*(-parseInt(_0x1cc762(0x1d1))/0x2)+parseInt(_0x1cc762(0x1c6))/0x3*(parseInt(_0x1cc762(0x1d2))/0x4)+-parseInt(_0x1cc762(0x1d4))/0x5*(-parseInt(_0x1cc762(0x1cf))/0x6)+parseInt(_0x1cc762(0x1cd))/0x7*(parseInt(_0x1cc762(0x1c9))/0x8)+-parseInt(_0x1cc762(0x1c7))/0x9+parseInt(_0x1cc762(0x1c8))/0xa*(parseInt(_0x1cc762(0x1cb))/0xb)+-parseInt(_0x1cc762(0x1ca))/0xc;if(_0x227b30===_0x55278b)break;else _0x34347d['push'](_0x34347d['shift']());}catch(_0xcd863b){_0x34347d['push'](_0x34347d['shift']());}}}(a135_0x1b51,0x94db0));import{readFileSync}from'node:fs';function a135_0x55f1(_0x56ae96,_0x322328){_0x56ae96=_0x56ae96-0x1c6;const _0x1b5127=a135_0x1b51();let _0x55f18e=_0x1b5127[_0x56ae96];return _0x55f18e;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';let _cached='';export function getCliVersion(){const _0x5bf582=a135_0x55f1;if(_cached)return _cached;try{const _0x373f0f=fileURLToPath(import.meta.url),_0x12b659=resolve(dirname(_0x373f0f),'../..'),_0x5d5235=JSON[_0x5bf582(0x1d0)](readFileSync(resolve(_0x12b659,'package.json'),_0x5bf582(0x1d5)));_cached=_0x5d5235[_0x5bf582(0x1ce)]||'0.0.0';}catch{_cached=_0x5bf582(0x1d3);}return _cached;}function a135_0x1b51(){const _0xd515c9=['455230ObizyH','32hsplPc','3741408dCAxbU','121UvEmGq','1aQSXoU','2012199ttiQrq','version','9042gJmMJJ','parse','1506066CRDEXf','669492GaGzhM','0.0.0','265JeYwcF','utf8','3ltOeRt','2009664NGoABJ'];a135_0x1b51=function(){return _0xd515c9;};return a135_0x1b51();}
1
+ (function(_0x9e3c61,_0x74770){const _0x4710ec=a135_0x165a,_0x2fdbeb=_0x9e3c61();while(!![]){try{const _0x174abc=parseInt(_0x4710ec(0x175))/0x1*(-parseInt(_0x4710ec(0x17d))/0x2)+parseInt(_0x4710ec(0x183))/0x3*(parseInt(_0x4710ec(0x179))/0x4)+-parseInt(_0x4710ec(0x17c))/0x5+parseInt(_0x4710ec(0x184))/0x6*(parseInt(_0x4710ec(0x17f))/0x7)+parseInt(_0x4710ec(0x17b))/0x8+parseInt(_0x4710ec(0x182))/0x9*(-parseInt(_0x4710ec(0x178))/0xa)+parseInt(_0x4710ec(0x180))/0xb;if(_0x174abc===_0x74770)break;else _0x2fdbeb['push'](_0x2fdbeb['shift']());}catch(_0xc0b0df){_0x2fdbeb['push'](_0x2fdbeb['shift']());}}}(a135_0x11b9,0x3914d));function a135_0x165a(_0x2aa061,_0x189d14){_0x2aa061=_0x2aa061-0x175;const _0x11b920=a135_0x11b9();let _0x165aee=_0x11b920[_0x2aa061];return _0x165aee;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';let _cached='';export function getCliVersion(){const _0x4e455a=a135_0x165a;if(_cached)return _cached;try{const _0x57beba=fileURLToPath(import.meta.url),_0xda9f8e=resolve(dirname(_0x57beba),_0x4e455a(0x177)),_0x491bda=JSON[_0x4e455a(0x181)](readFileSync(resolve(_0xda9f8e,_0x4e455a(0x17a)),_0x4e455a(0x176)));_cached=_0x491bda['version']||_0x4e455a(0x17e);}catch{_cached='0.0.0';}return _cached;}function a135_0x11b9(){const _0x1affb6=['539376EFNkeL','948440hBWkOp','8776sfmwwi','0.0.0','193949DxawHt','8775767blLwoc','parse','5013gXXvun','659361zBgYff','6uvcGLa','87zImxCg','utf8','../..','5520AXYqHm','4MxsEYM','package.json'];a135_0x11b9=function(){return _0x1affb6;};return a135_0x11b9();}
@@ -1 +1 @@
1
- function a136_0x1241(_0x2c6baf,_0x4b2724){_0x2c6baf=_0x2c6baf-0x108;var _0x189451=a136_0x1894();var _0x1241ea=_0x189451[_0x2c6baf];return _0x1241ea;}function a136_0x1894(){var _0x220690=['239352xgcIwW','70dcBbqE','506421eOFGvH','292XAuqEh','17898sCYeaP','1034VWggqD','78tIgKGO','426DsohHg','8275848bLmYGM','319767geuUHz','59655UViYiG','1401665pRIuoI'];a136_0x1894=function(){return _0x220690;};return a136_0x1894();}(function(_0x43e315,_0x4d39f7){var _0x35a25c=a136_0x1241,_0x435434=_0x43e315();while(!![]){try{var _0x25dfad=parseInt(_0x35a25c(0x111))/0x1+parseInt(_0x35a25c(0x10a))/0x2*(parseInt(_0x35a25c(0x10d))/0x3)+parseInt(_0x35a25c(0x109))/0x4*(parseInt(_0x35a25c(0x110))/0x5)+parseInt(_0x35a25c(0x10c))/0x6*(parseInt(_0x35a25c(0x10f))/0x7)+-parseInt(_0x35a25c(0x10e))/0x8+parseInt(_0x35a25c(0x108))/0x9*(-parseInt(_0x35a25c(0x113))/0xa)+-parseInt(_0x35a25c(0x10b))/0xb*(parseInt(_0x35a25c(0x112))/0xc);if(_0x25dfad===_0x4d39f7)break;else _0x435434['push'](_0x435434['shift']());}catch(_0x357653){_0x435434['push'](_0x435434['shift']());}}}(a136_0x1894,0xcb99f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4bfa02,_0x1175e1){setActiveCookie(_0x4bfa02);try{return await _0x1175e1();}finally{clearActiveCookie();}}
1
+ (function(_0x13e2c9,_0x3f80ee){var _0x5089e9=a136_0x2d90,_0x11aa6b=_0x13e2c9();while(!![]){try{var _0x2a7b7f=parseInt(_0x5089e9(0x6c))/0x1+parseInt(_0x5089e9(0x71))/0x2+parseInt(_0x5089e9(0x6f))/0x3*(parseInt(_0x5089e9(0x6e))/0x4)+parseInt(_0x5089e9(0x6d))/0x5*(parseInt(_0x5089e9(0x74))/0x6)+-parseInt(_0x5089e9(0x73))/0x7+parseInt(_0x5089e9(0x75))/0x8+-parseInt(_0x5089e9(0x70))/0x9*(parseInt(_0x5089e9(0x72))/0xa);if(_0x2a7b7f===_0x3f80ee)break;else _0x11aa6b['push'](_0x11aa6b['shift']());}catch(_0x3e26e5){_0x11aa6b['push'](_0x11aa6b['shift']());}}}(a136_0x3c2b,0x5c873));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a136_0x2d90(_0x93bced,_0x3e068c){_0x93bced=_0x93bced-0x6c;var _0x3c2b26=a136_0x3c2b();var _0x2d904a=_0x3c2b26[_0x93bced];return _0x2d904a;}export async function withActiveCookie(_0x2cf66e,_0x3d6ed5){setActiveCookie(_0x2cf66e);try{return await _0x3d6ed5();}finally{clearActiveCookie();}}function a136_0x3c2b(){var _0x2ac391=['108095mPfAYN','1916vBYOLm','4227rDKalT','72eiuHzI','311836EWycZf','1445440FQVxvO','513870ElQpje','18FxlpDp','4844392zYLoVY','107522pZjDWA'];a136_0x3c2b=function(){return _0x2ac391;};return a136_0x3c2b();}