@lovrabet/rabetbase-cli 2.0.7 → 2.0.8

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 (137) 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/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.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/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -0
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/context.js +1 -1
  91. package/lib/core/alias-resolver.js +1 -1
  92. package/lib/core/api-client.js +1 -1
  93. package/lib/core/bff/config.js +1 -1
  94. package/lib/core/bff/file-system.js +1 -1
  95. package/lib/core/bff/hash.js +1 -1
  96. package/lib/core/bff/lock.js +1 -1
  97. package/lib/core/bff/utils.js +1 -1
  98. package/lib/core/db-resolver.js +1 -1
  99. package/lib/core/sql-validator.js +1 -1
  100. package/lib/errors.js +1 -1
  101. package/lib/framework/build-all-flags.js +1 -0
  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/schema-export.js +1 -0
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.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-command-trace.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -0
  121. package/lib/utils/cdn-config.js +1 -1
  122. package/lib/utils/check-sdk-version.js +1 -1
  123. package/lib/utils/cli-version-check.js +1 -1
  124. package/lib/utils/config.js +1 -1
  125. package/lib/utils/copy-directory.js +1 -1
  126. package/lib/utils/file-utils.js +1 -1
  127. package/lib/utils/guides-cdn.js +1 -1
  128. package/lib/utils/http-client.js +1 -1
  129. package/lib/utils/is-non-interactive.js +1 -1
  130. package/lib/utils/logger.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/rules-cdn.js +1 -1
  133. package/lib/utils/sleep.js +1 -1
  134. package/lib/utils/template-replacer.js +1 -1
  135. package/lib/utils/version.js +1 -1
  136. package/lib/utils/with-active-cookie.js +1 -1
  137. package/package.json +4 -2
@@ -1 +1 @@
1
- (function(_0x3d7d8b,_0x5455f1){const _0x120537=a114_0x520c,_0x5df2a9=_0x3d7d8b();while(!![]){try{const _0x5bf72b=-parseInt(_0x120537(0x1fd))/0x1*(parseInt(_0x120537(0x1fc))/0x2)+-parseInt(_0x120537(0x1f8))/0x3+-parseInt(_0x120537(0x1fb))/0x4*(parseInt(_0x120537(0x1f2))/0x5)+-parseInt(_0x120537(0x203))/0x6*(-parseInt(_0x120537(0x1ff))/0x7)+-parseInt(_0x120537(0x1fa))/0x8+-parseInt(_0x120537(0x1f5))/0x9+parseInt(_0x120537(0x202))/0xa*(parseInt(_0x120537(0x200))/0xb);if(_0x5bf72b===_0x5455f1)break;else _0x5df2a9['push'](_0x5df2a9['shift']());}catch(_0x40ded5){_0x5df2a9['push'](_0x5df2a9['shift']());}}}(a114_0x4cda,0x4e5c8));import a114_0x528ff7 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';function a114_0x520c(_0x52ca0e,_0xf54c83){_0x52ca0e=_0x52ca0e-0x1f2;const _0x4cdaa4=a114_0x4cda();let _0x520c49=_0x4cdaa4[_0x52ca0e];return _0x520c49;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2df437=a114_0x520c,_0x555b9b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1d71bf=_0x555b9b?.[_0x2df437(0x1f6)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2df437(0x201)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2df437(0x1f4):_0x2df437(0x1f7)),'username':_0x1d71bf?.['username']??a114_0x528ff7[_0x2df437(0x1f9)]()[_0x2df437(0x1fe)]??_0x2df437(0x1f3),..._0x1d71bf&&{'nickname':_0x1d71bf['nickname']}}),cliOtelTraceInitialized=!![];}return _0x555b9b;}function a114_0x4cda(){const _0x4731c6=['username','1225SkKuUN','34364ehIZwl','unknown','4430noOotR','19698LaWdKF','2118335OCjVbH','rabetbase-cli','daily','998118cEuYgF','user','production','488076PEiDiA','userInfo','2899752QLofoZ','4NXlAqi','1274CaSRvO','907wXtiMs'];a114_0x4cda=function(){return _0x4731c6;};return a114_0x4cda();}
1
+ (function(_0x3468f8,_0x4a4736){const _0x28b31f=a117_0x3edc,_0x42bcfe=_0x3468f8();while(!![]){try{const _0x3db9d9=parseInt(_0x28b31f(0x1d1))/0x1+-parseInt(_0x28b31f(0x1c6))/0x2*(parseInt(_0x28b31f(0x1c5))/0x3)+parseInt(_0x28b31f(0x1c0))/0x4*(parseInt(_0x28b31f(0x1cb))/0x5)+-parseInt(_0x28b31f(0x1cc))/0x6+parseInt(_0x28b31f(0x1bf))/0x7*(-parseInt(_0x28b31f(0x1c8))/0x8)+-parseInt(_0x28b31f(0x1d0))/0x9+-parseInt(_0x28b31f(0x1c4))/0xa*(-parseInt(_0x28b31f(0x1ca))/0xb);if(_0x3db9d9===_0x4a4736)break;else _0x42bcfe['push'](_0x42bcfe['shift']());}catch(_0x2d148a){_0x42bcfe['push'](_0x42bcfe['shift']());}}}(a117_0x3aa1,0xc66d8));function a117_0x3aa1(){const _0x16def0=['user','userInfo','12636567CmvXup','278105JQUUZr','7465969iydkXm','52892bMeKhj','production','daily','username','30xYKjBl','2507754XfAFxH','2zfdnqF','unknown','8QMzSQh','nickname','14000041slfbjl','415bAyrbT','6446994FWuOKa','rabetbase-cli'];a117_0x3aa1=function(){return _0x16def0;};return a117_0x3aa1();}import a117_0x4d04f7 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';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a117_0x3edc(_0x53da4c,_0x27b6e9){_0x53da4c=_0x53da4c-0x1bf;const _0x3aa105=a117_0x3aa1();let _0x3edc4e=_0x3aa105[_0x53da4c];return _0x3edc4e;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x28afeb=a117_0x3edc,_0x322412=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x145c7a=_0x322412?.[_0x28afeb(0x1ce)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x28afeb(0x1c7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x28afeb(0x1c2):_0x28afeb(0x1c1)),'username':_0x145c7a?.[_0x28afeb(0x1c3)]??a117_0x4d04f7[_0x28afeb(0x1cf)]()[_0x28afeb(0x1c3)]??_0x28afeb(0x1cd),..._0x145c7a&&{'nickname':_0x145c7a[_0x28afeb(0x1c9)]}}),cliOtelTraceInitialized=!![];}return _0x322412;}
@@ -1 +1 @@
1
- function a115_0x37f4(){const _0x4246b8=['SIGINT','872220qaIBuG','1231129MwLOHH','96XDFZio','129326wyxLja','213017lRBfYd','18ivLwAa','3609135ETUFZA','4567904AhNsQE','31601890cWGONd','SIGTERM','9ithRGJ','then','exit'];a115_0x37f4=function(){return _0x4246b8;};return a115_0x37f4();}(function(_0x47d1d7,_0x3f1471){const _0x5c3ee7=a115_0x5d74,_0x12c3f3=_0x47d1d7();while(!![]){try{const _0x18384c=-parseInt(_0x5c3ee7(0x190))/0x1+parseInt(_0x5c3ee7(0x192))/0x2*(parseInt(_0x5c3ee7(0x194))/0x3)+-parseInt(_0x5c3ee7(0x196))/0x4+-parseInt(_0x5c3ee7(0x195))/0x5+-parseInt(_0x5c3ee7(0x18f))/0x6+-parseInt(_0x5c3ee7(0x193))/0x7*(-parseInt(_0x5c3ee7(0x191))/0x8)+parseInt(_0x5c3ee7(0x199))/0x9*(parseInt(_0x5c3ee7(0x197))/0xa);if(_0x18384c===_0x3f1471)break;else _0x12c3f3['push'](_0x12c3f3['shift']());}catch(_0x817328){_0x12c3f3['push'](_0x12c3f3['shift']());}}}(a115_0x37f4,0xa450d));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a115_0x5d74(_0x2f359c,_0x2a656c){_0x2f359c=_0x2f359c-0x18e;const _0x37f487=a115_0x37f4();let _0x5d74e1=_0x37f487[_0x2f359c];return _0x5d74e1;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x59761e=a115_0x5d74;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x711574=()=>{const _0x161613=a115_0x5d74;void flushOtelNodeIfUsed()[_0x161613(0x19a)](()=>process[_0x161613(0x19b)](0x0));};process['once'](_0x59761e(0x18e),_0x711574),process['once'](_0x59761e(0x198),_0x711574);}export async function exitWithOtelShutdown(_0x529f64){const _0x599a6a=a115_0x5d74;await flushOtelNodeIfUsed(),process[_0x599a6a(0x19b)](_0x529f64);}
1
+ (function(_0x2fbb00,_0x1cc955){const _0x548850=a118_0x5800,_0x23643e=_0x2fbb00();while(!![]){try{const _0x518809=-parseInt(_0x548850(0xc9))/0x1*(parseInt(_0x548850(0xc2))/0x2)+parseInt(_0x548850(0xce))/0x3*(parseInt(_0x548850(0xcb))/0x4)+-parseInt(_0x548850(0xbf))/0x5+parseInt(_0x548850(0xc0))/0x6+parseInt(_0x548850(0xc8))/0x7+-parseInt(_0x548850(0xc6))/0x8+parseInt(_0x548850(0xc7))/0x9*(-parseInt(_0x548850(0xc3))/0xa);if(_0x518809===_0x1cc955)break;else _0x23643e['push'](_0x23643e['shift']());}catch(_0x261a2c){_0x23643e['push'](_0x23643e['shift']());}}}(a118_0x386d,0xdcaef));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a118_0x386d(){const _0x27938f=['1956376AjkqiZ','509607hbFLcc','12160638kZBReB','23332ieyhHe','beforeExit','4CZmatJ','SIGTERM','SIGINT','4609209hlewZP','5576320fhCiVc','1995246vrKbPd','then','18tNKAgS','200WqUtAr','once','exit'];a118_0x386d=function(){return _0x27938f;};return a118_0x386d();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x27750a=a118_0x5800;process[_0x27750a(0xc4)](_0x27750a(0xca),()=>{void flushOtelNodeIfUsed();});const _0x462415=()=>{const _0x57acf1=_0x27750a;void flushOtelNodeIfUsed()[_0x57acf1(0xc1)](()=>process[_0x57acf1(0xc5)](0x0));};process['once'](_0x27750a(0xcd),_0x462415),process[_0x27750a(0xc4)](_0x27750a(0xcc),_0x462415);}function a118_0x5800(_0x3692f5,_0x3cd336){_0x3692f5=_0x3692f5-0xbf;const _0x386d3b=a118_0x386d();let _0x580073=_0x386d3b[_0x3692f5];return _0x580073;}export async function exitWithOtelShutdown(_0x4bd260){const _0x549501=a118_0x5800;await flushOtelNodeIfUsed(),process[_0x549501(0xc5)](_0x4bd260);}
@@ -1 +1 @@
1
- const a116_0x4eb77e=a116_0x4c64;(function(_0x1a4705,_0x2b8fd4){const _0x425b53=a116_0x4c64,_0x4eb6b=_0x1a4705();while(!![]){try{const _0x1bcc12=-parseInt(_0x425b53(0x1e0))/0x1*(-parseInt(_0x425b53(0x1e3))/0x2)+parseInt(_0x425b53(0x1de))/0x3*(-parseInt(_0x425b53(0x1d6))/0x4)+parseInt(_0x425b53(0x1d3))/0x5+-parseInt(_0x425b53(0x1db))/0x6+-parseInt(_0x425b53(0x1e2))/0x7*(parseInt(_0x425b53(0x1e1))/0x8)+parseInt(_0x425b53(0x1d7))/0x9*(parseInt(_0x425b53(0x1df))/0xa)+-parseInt(_0x425b53(0x1d8))/0xb*(-parseInt(_0x425b53(0x1d5))/0xc);if(_0x1bcc12===_0x2b8fd4)break;else _0x4eb6b['push'](_0x4eb6b['shift']());}catch(_0x1b1dd4){_0x4eb6b['push'](_0x4eb6b['shift']());}}}(a116_0x19c9,0x5bed2));function a116_0x4c64(_0x12c7f5,_0x18118f){_0x12c7f5=_0x12c7f5-0x1d2;const _0x19c925=a116_0x19c9();let _0x4c64f1=_0x19c925[_0x12c7f5];return _0x4c64f1;}import{sendTraceLog}from'@lovrabet/otel-logger';function a116_0x19c9(){const _0x524cfb=['936804txbdRC','18LhLIta','64526OLsohP','traceparent','traceName','225714CrunjN','logData','rabetbase-cli','6PwovQC','1600360bqIHXj','410819Jfciww','5636872VcASuI','7wWLQYr','2lUPohs','version','3636085DPhRCl','manual','264HbNShb'];a116_0x19c9=function(){return _0x524cfb;};return a116_0x19c9();}import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a116_0x4eb77e(0x1dd);export async function sendCliTraceLog(_0xc35dae){const _0x171603=a116_0x4eb77e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xc35dae[_0x171603(0x1da)]??DEFAULT_TRACE_NAME,'version':_0xc35dae[_0x171603(0x1d2)]??getCliVersion(),'spanName':_0xc35dae['spanName'],'eventType':_0x171603(0x1d4),'logData':_0xc35dae[_0x171603(0x1dc)],..._0xc35dae[_0x171603(0x1d9)]&&{'traceparent':_0xc35dae[_0x171603(0x1d9)]}});}
1
+ const a119_0x16fabc=a119_0x3322;(function(_0x2e2196,_0x166a99){const _0x155e96=a119_0x3322,_0x2fdb91=_0x2e2196();while(!![]){try{const _0x5af778=parseInt(_0x155e96(0x1f6))/0x1*(parseInt(_0x155e96(0x1f7))/0x2)+-parseInt(_0x155e96(0x1f1))/0x3*(-parseInt(_0x155e96(0x1ec))/0x4)+-parseInt(_0x155e96(0x1f9))/0x5*(-parseInt(_0x155e96(0x1f2))/0x6)+parseInt(_0x155e96(0x1ed))/0x7+parseInt(_0x155e96(0x1f0))/0x8+-parseInt(_0x155e96(0x1fc))/0x9+parseInt(_0x155e96(0x1fa))/0xa*(-parseInt(_0x155e96(0x1f5))/0xb);if(_0x5af778===_0x166a99)break;else _0x2fdb91['push'](_0x2fdb91['shift']());}catch(_0x2100f0){_0x2fdb91['push'](_0x2fdb91['shift']());}}}(a119_0x3321,0xcfd90));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';function a119_0x3322(_0x27fd90,_0x2a9cc7){_0x27fd90=_0x27fd90-0x1ec;const _0x3321c1=a119_0x3321();let _0x332236=_0x3321c1[_0x27fd90];return _0x332236;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a119_0x16fabc(0x1f4);export async function sendCliTraceLog(_0x12c948){const _0x3d7635=a119_0x16fabc;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x12c948[_0x3d7635(0x1f8)]??DEFAULT_TRACE_NAME,'version':_0x12c948[_0x3d7635(0x1fb)]??getCliVersion(),'spanName':_0x12c948[_0x3d7635(0x1ee)],'eventType':_0x3d7635(0x1f3),'logData':_0x12c948[_0x3d7635(0x1fd)],..._0x12c948[_0x3d7635(0x1ef)]&&{'traceparent':_0x12c948['traceparent']}});}function a119_0x3321(){const _0x11e738=['manual','rabetbase-cli','44931590IMZtPj','871sZUTnk','3906LeYprD','traceName','127770aJYyEJ','10esAAyX','version','8672364SkIvNr','logData','68mhzruo','4290608DHpSwN','spanName','traceparent','6013928gZdWJC','220506aMyUyC','372avMvkQ'];a119_0x3321=function(){return _0x11e738;};return a119_0x3321();}
@@ -1 +1 @@
1
- const a118_0x2ee717=a118_0x4ee2;function a118_0x4ee2(_0x3e6368,_0x54d644){_0x3e6368=_0x3e6368-0xa5;const _0x1d078d=a118_0x1d07();let _0x4ee216=_0x1d078d[_0x3e6368];return _0x4ee216;}(function(_0x4d2ae4,_0x4add62){const _0x4ac435=a118_0x4ee2,_0x5546b2=_0x4d2ae4();while(!![]){try{const _0x107eec=parseInt(_0x4ac435(0xcc))/0x1+-parseInt(_0x4ac435(0xce))/0x2+parseInt(_0x4ac435(0xbd))/0x3+parseInt(_0x4ac435(0xd1))/0x4*(-parseInt(_0x4ac435(0xcd))/0x5)+-parseInt(_0x4ac435(0xd3))/0x6+-parseInt(_0x4ac435(0xc2))/0x7*(-parseInt(_0x4ac435(0xc9))/0x8)+parseInt(_0x4ac435(0xc1))/0x9;if(_0x107eec===_0x4add62)break;else _0x5546b2['push'](_0x5546b2['shift']());}catch(_0x24ecff){_0x5546b2['push'](_0x5546b2['shift']());}}}(a118_0x1d07,0xccbd6));export const CORE_IDE_CONFIGS={'cursor':{'name':a118_0x2ee717(0xb8),'description':a118_0x2ee717(0xdc),'folders':[a118_0x2ee717(0xd9),a118_0x2ee717(0xbc)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a118_0x2ee717(0xab),'folders':[a118_0x2ee717(0xd4)],'files':[{'type':'file','path':a118_0x2ee717(0xaa),'template':a118_0x2ee717(0xb0)}]},'claude':{'name':'Claude\x20Code','description':a118_0x2ee717(0xb3),'folders':[a118_0x2ee717(0xbb)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'cline':{'name':a118_0x2ee717(0xca),'description':a118_0x2ee717(0xbf),'folders':[a118_0x2ee717(0xdb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xd6),'template':'SKILL.md.tpl'}]},'codex':{'name':a118_0x2ee717(0xc3),'description':a118_0x2ee717(0xa9),'folders':[a118_0x2ee717(0xb6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb5),'template':a118_0x2ee717(0xb0)}]},'opencode':{'name':a118_0x2ee717(0xa7),'description':a118_0x2ee717(0xd8),'folders':['.opencode'],'files':[{'type':a118_0x2ee717(0xa8),'path':'.opencode/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'qoder':{'name':a118_0x2ee717(0xaf),'description':a118_0x2ee717(0xb2),'folders':[a118_0x2ee717(0xc6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb7),'template':a118_0x2ee717(0xb0)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'codebuddy':{'name':a118_0x2ee717(0xda),'description':a118_0x2ee717(0xc8),'folders':[a118_0x2ee717(0xd2)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'trae':{'name':a118_0x2ee717(0xba),'description':'Trae\x20IDE','folders':[a118_0x2ee717(0xc5)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xc4),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a118_0x2ee717(0xae),'description':a118_0x2ee717(0xac),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb4),'template':a118_0x2ee717(0xb0)}]},'antigravity':{'name':a118_0x2ee717(0xd0),'description':a118_0x2ee717(0xd7),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a118_0x1d07(){const _0x4d2e1b=['3885tHXylf','Codex','.trae/skills/lovrabet/SKILL.md','.trae','.qoder','codex','CodeBuddy\x20IDE','8408xHTMnx','Cline','.agent','294824BCfSHn','460RPXHby','630912IXAwjP','windsurf','Antigravity','18188jnqbFa','.codebuddy','3483462ocIfVr','.windsurf','codebuddy','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','OpenCode\x20IDE','.cursorrules','CodeBuddy','.cline','Cursor\x20IDE','claude','qoder','OpenCode','file','Codex\x20IDE','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','通用模板\x20-\x20兜底方案','cursor','其他\x20(通用模板)','Qoder','SKILL.md.tpl','trae','Qoder\x20IDE','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.codex','.qoder/rules/rabetbase.md','Cursor','antigravity','Trae','.claude','.cursor','3451521CiLUgi','opencode','Cline\x20IDE','cline','1119015SSBClW'];a118_0x1d07=function(){return _0x4d2e1b;};return a118_0x1d07();}export const CORE_IDE_LIST=['claude',a118_0x2ee717(0xc0),'codebuddy','codex',a118_0x2ee717(0xad),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),'trae',a118_0x2ee717(0xcf)];export const IDE_LIST=[a118_0x2ee717(0xb9),'claude','cline','codebuddy',a118_0x2ee717(0xc7),a118_0x2ee717(0xad),'opencode','qoder',a118_0x2ee717(0xb1),a118_0x2ee717(0xcf),'agent'];export const ALL_CORE_IDES=[a118_0x2ee717(0xad),a118_0x2ee717(0xcf),a118_0x2ee717(0xa5),a118_0x2ee717(0xc0),a118_0x2ee717(0xc7),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),a118_0x2ee717(0xd5),a118_0x2ee717(0xb1)];
1
+ const a121_0xfb0f17=a121_0x2191;(function(_0x453d99,_0x55acd7){const _0x55a303=a121_0x2191,_0x53a76f=_0x453d99();while(!![]){try{const _0x51f12b=-parseInt(_0x55a303(0x119))/0x1+-parseInt(_0x55a303(0xfa))/0x2+-parseInt(_0x55a303(0x11e))/0x3*(parseInt(_0x55a303(0xfc))/0x4)+-parseInt(_0x55a303(0x111))/0x5*(-parseInt(_0x55a303(0x10d))/0x6)+parseInt(_0x55a303(0x108))/0x7*(-parseInt(_0x55a303(0xfd))/0x8)+-parseInt(_0x55a303(0x11f))/0x9+parseInt(_0x55a303(0x110))/0xa;if(_0x51f12b===_0x55acd7)break;else _0x53a76f['push'](_0x53a76f['shift']());}catch(_0x2ea86b){_0x53a76f['push'](_0x53a76f['shift']());}}}(a121_0x3b4f,0x19a64));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a121_0xfb0f17(0xfe),a121_0xfb0f17(0x121)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0x11a),'template':a121_0xfb0f17(0x117)}]},'windsurf':{'name':a121_0xfb0f17(0x115),'description':a121_0xfb0f17(0x10c),'folders':['.windsurf'],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0xff),'template':a121_0xfb0f17(0x117)}]},'claude':{'name':a121_0xfb0f17(0xfb),'description':'Claude\x20Code','folders':[a121_0xfb0f17(0xf1)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0x10f),'template':a121_0xfb0f17(0x117)}]},'cline':{'name':a121_0xfb0f17(0x105),'description':a121_0xfb0f17(0x10a),'folders':[a121_0xfb0f17(0x11b)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0x103),'template':a121_0xfb0f17(0x117)}]},'codex':{'name':'Codex','description':a121_0xfb0f17(0x112),'folders':['.codex'],'files':[{'type':a121_0xfb0f17(0x118),'path':'.codex/skills/lovrabet/SKILL.md','template':a121_0xfb0f17(0x117)}]},'opencode':{'name':a121_0xfb0f17(0xf9),'description':'OpenCode\x20IDE','folders':[a121_0xfb0f17(0x11d)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0xf2),'template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a121_0xfb0f17(0x101)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0x106),'template':a121_0xfb0f17(0x117)},{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0x100),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':a121_0xfb0f17(0xf4),'folders':['.codebuddy'],'files':[{'type':'file','path':a121_0xfb0f17(0x102),'template':a121_0xfb0f17(0x117)}]},'trae':{'name':'Trae','description':a121_0xfb0f17(0x109),'folders':[a121_0xfb0f17(0xf6)],'files':[{'type':a121_0xfb0f17(0x118),'path':'.trae/skills/lovrabet/SKILL.md','template':a121_0xfb0f17(0x117)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a121_0xfb0f17(0x11c),'description':'通用模板\x20-\x20兜底方案','folders':[a121_0xfb0f17(0x114)],'files':[{'type':a121_0xfb0f17(0x118),'path':a121_0xfb0f17(0xf8),'template':a121_0xfb0f17(0x117)}]},'antigravity':{'name':a121_0xfb0f17(0xf7),'description':'Antigravity\x20IDE','folders':[a121_0xfb0f17(0x114)],'files':[{'type':a121_0xfb0f17(0x118),'path':'.agent/skills/lovrabet/SKILL.md','template':a121_0xfb0f17(0x117)}]}};function a121_0x2191(_0x529403,_0x31b01e){_0x529403=_0x529403-0xf1;const _0x3b4f32=a121_0x3b4f();let _0x219177=_0x3b4f32[_0x529403];return _0x219177;}function a121_0x3b4f(){const _0x5531b4=['.qoder/rules/rabetbase.md','claude','609LQJEEa','Trae\x20IDE','Cline\x20IDE','cline','Windsurf\x20IDE','110052oDpGOp','opencode','.claude/skills/lovrabet/SKILL.md','8091490rFhFcH','15rLkerp','Codex\x20IDE','qoder','.agent','Windsurf','windsurf','SKILL.md.tpl','file','196758giNXTT','.cursor/skills/rabetbase.md','.cline','其他\x20(通用模板)','.opencode','12oRkdBL','856161SGWRMT','cursor','.cursor','codex','.claude','.opencode/skills/lovrabet/SKILL.md','codebuddy','CodeBuddy\x20IDE','antigravity','.trae','Antigravity','.agent/skills/lovrabet/SKILL.md','OpenCode','384156fnXwkQ','Claude\x20Code','179972nDHkvK','8752QJobkj','.cursorrules','.windsurf/workflows/rabetbase.md','.qoder/skills/lovrabet/SKILL.md','.qoder','.codebuddy/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','trae','Cline'];a121_0x3b4f=function(){return _0x5531b4;};return a121_0x3b4f();}export const CORE_IDE_LIST=[a121_0xfb0f17(0x107),a121_0xfb0f17(0x10b),a121_0xfb0f17(0xf3),'codex','cursor',a121_0xfb0f17(0x10e),'qoder',a121_0xfb0f17(0x104),a121_0xfb0f17(0x116)];export const IDE_LIST=[a121_0xfb0f17(0xf5),a121_0xfb0f17(0x107),a121_0xfb0f17(0x10b),a121_0xfb0f17(0xf3),a121_0xfb0f17(0x122),a121_0xfb0f17(0x120),a121_0xfb0f17(0x10e),a121_0xfb0f17(0x113),a121_0xfb0f17(0x104),a121_0xfb0f17(0x116),'agent'];export const ALL_CORE_IDES=[a121_0xfb0f17(0x120),a121_0xfb0f17(0x116),a121_0xfb0f17(0x107),a121_0xfb0f17(0x10b),'codex',a121_0xfb0f17(0x10e),a121_0xfb0f17(0x113),'codebuddy',a121_0xfb0f17(0x104)];
@@ -0,0 +1 @@
1
+ (function(_0x529309,_0x1ed6b5){const _0x41f9ac=a122_0x5697,_0x1d61a1=_0x529309();while(!![]){try{const _0x3d2ef5=parseInt(_0x41f9ac(0x106))/0x1+-parseInt(_0x41f9ac(0x112))/0x2+-parseInt(_0x41f9ac(0x102))/0x3+-parseInt(_0x41f9ac(0x104))/0x4*(parseInt(_0x41f9ac(0x115))/0x5)+parseInt(_0x41f9ac(0x105))/0x6+-parseInt(_0x41f9ac(0x107))/0x7*(-parseInt(_0x41f9ac(0x10e))/0x8)+parseInt(_0x41f9ac(0x10d))/0x9*(parseInt(_0x41f9ac(0x108))/0xa);if(_0x3d2ef5===_0x1ed6b5)break;else _0x1d61a1['push'](_0x1d61a1['shift']());}catch(_0x184947){_0x1d61a1['push'](_0x1d61a1['shift']());}}}(a122_0x42b7,0xdefb0));import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';import{createRequire}from'node:module';import a122_0x5d7af2 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x5424d9=a122_0x5697;try{const _0x4db56f=createRequire(import.meta.url),_0x2f0a91=a122_0x5d7af2[_0x5424d9(0x103)](_0x4db56f[_0x5424d9(0x119)]('node-jq/package.json')),_0x36212f=a122_0x5d7af2[_0x5424d9(0x110)](_0x2f0a91,_0x5424d9(0x10a)),_0xa2f505=process[_0x5424d9(0x10b)]===_0x5424d9(0x111)?_0x5424d9(0x10c):'jq',_0x230633=a122_0x5d7af2[_0x5424d9(0x110)](_0x36212f,_0xa2f505);if(existsSync(_0x230633))return _0x230633;}catch{}return'jq';}export function applyJqFilter(_0x5dd0fa,_0x56ac26){const _0x287502=a122_0x5697,_0x448a9d=resolveJqBinary();try{return execFileSync(_0x448a9d,[_0x56ac26],{'input':_0x5dd0fa,'encoding':_0x287502(0x101),'maxBuffer':MAX_BUFFER});}catch(_0x2b5726){const _0x1e92a4=_0x2b5726;if(_0x1e92a4[_0x287502(0x114)]===_0x287502(0x118))throw CliErrors[_0x287502(0x116)](_0x287502(0x11a),_0x287502(0x11b));const _0x7e5df8=_0x1e92a4[_0x287502(0x117)]?.[_0x287502(0x113)]?.()['trim']()??_0x1e92a4[_0x287502(0x109)]??String(_0x2b5726);throw CliErrors['validation'](_0x287502(0x10f)+_0x7e5df8);}}function a122_0x5697(_0xdac0,_0x3b56e3){_0xdac0=_0xdac0-0x101;const _0x42b7a6=a122_0x42b7();let _0x569786=_0x42b7a6[_0xdac0];return _0x569786;}function a122_0x42b7(){const _0xca864e=['join','win32','3063348XHtpuh','toString','code','70hohXEB','validation','stderr','ENOENT','resolve','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','utf8','2130438yRpdnl','dirname','183268JEpAeW','5252088vnhSns','1157128rSxtph','53151XvsyVa','5170YkpNNT','message','bin','platform','jq.exe','13923GmZaZv','1016RgmTxJ','jq:\x20'];a122_0x42b7=function(){return _0xca864e;};return a122_0x42b7();}
@@ -1 +1 @@
1
- (function(_0x1a1cbe,_0x4f757e){const _0x15a994=a119_0x4af3,_0x42f1f6=_0x1a1cbe();while(!![]){try{const _0x59798b=parseInt(_0x15a994(0x1d2))/0x1+parseInt(_0x15a994(0x1c3))/0x2+-parseInt(_0x15a994(0x1c6))/0x3*(-parseInt(_0x15a994(0x1cd))/0x4)+parseInt(_0x15a994(0x1cb))/0x5+-parseInt(_0x15a994(0x1c8))/0x6+parseInt(_0x15a994(0x1c4))/0x7+parseInt(_0x15a994(0x1d1))/0x8*(-parseInt(_0x15a994(0x1ca))/0x9);if(_0x59798b===_0x4f757e)break;else _0x42f1f6['push'](_0x42f1f6['shift']());}catch(_0x2677d2){_0x42f1f6['push'](_0x42f1f6['shift']());}}}(a119_0x2c84,0x86e79));function a119_0x2c84(){const _0x55eae4=['5594157OODWjI','4483445FBwgji','now','116fyjazA','sdk','cli','application/json','40rupUMO','959969muyWEV','810994XkZNsG','7678475JMjnTR','node','63237mGyFiO','stableVersion','1859622awFZdI','/config.json'];a119_0x2c84=function(){return _0x55eae4;};return a119_0x2c84();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x21493b=a119_0x4af3;try{const _0x26a0cf=getTemplateBaseUrl(),_0x3d3c3f=_0x26a0cf+_0x21493b(0x1c9),_0x5a848d=await fetch(_0x3d3c3f,{'headers':{'Accept':_0x21493b(0x1d0)}});if(!_0x5a848d['ok'])return null;const _0xc046ea=await _0x5a848d['json']();if(!_0xc046ea[_0x21493b(0x1cf)]?.[_0x21493b(0x1c7)]||!_0xc046ea[_0x21493b(0x1ce)]?.[_0x21493b(0x1c5)]?.[_0x21493b(0x1c7)])return null;return _0xc046ea;}catch{return null;}}function a119_0x4af3(_0x1b3f10,_0x3e264d){_0x1b3f10=_0x1b3f10-0x1c3;const _0x2c84a7=a119_0x2c84();let _0x4af327=_0x2c84a7[_0x1b3f10];return _0x4af327;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0xf9c01d=a119_0x4af3,_0x271661=Date[_0xf9c01d(0x1cc)]();if(cachedConfig&&_0x271661-cacheTime<CACHE_TTL)return cachedConfig;const _0x596f55=await fetchCdnConfig();return _0x596f55&&(cachedConfig=_0x596f55,cacheTime=_0x271661),_0x596f55;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x428292,_0x4c2166){const _0x2fc1b7=a123_0x373a,_0x4af530=_0x428292();while(!![]){try{const _0x178d81=parseInt(_0x2fc1b7(0x7e))/0x1+-parseInt(_0x2fc1b7(0x81))/0x2*(-parseInt(_0x2fc1b7(0x73))/0x3)+-parseInt(_0x2fc1b7(0x77))/0x4+-parseInt(_0x2fc1b7(0x7b))/0x5+-parseInt(_0x2fc1b7(0x7f))/0x6*(-parseInt(_0x2fc1b7(0x7c))/0x7)+parseInt(_0x2fc1b7(0x7d))/0x8+parseInt(_0x2fc1b7(0x79))/0x9*(-parseInt(_0x2fc1b7(0x72))/0xa);if(_0x178d81===_0x4c2166)break;else _0x4af530['push'](_0x4af530['shift']());}catch(_0x500503){_0x4af530['push'](_0x4af530['shift']());}}}(a123_0x28e3,0xd3fd4));import{getTemplateBaseUrl}from'./config.js';function a123_0x28e3(){const _0x566d41=['477JrHxtv','stableVersion','sdk','cli','2246788nUAmfu','node','8676xczOkD','json','8399325XSvEXH','2013767moogUe','12906184gcRuTy','90975ozeOgc','30VhTVwj','application/json','1358PSVhRC','/config.json','1460vWcdsP'];a123_0x28e3=function(){return _0x566d41;};return a123_0x28e3();}export async function fetchCdnConfig(){const _0x516f20=a123_0x373a;try{const _0x12613d=getTemplateBaseUrl(),_0x412d29=_0x12613d+_0x516f20(0x82),_0xe00352=await fetch(_0x412d29,{'headers':{'Accept':_0x516f20(0x80)}});if(!_0xe00352['ok'])return null;const _0x2d0208=await _0xe00352[_0x516f20(0x7a)]();if(!_0x2d0208[_0x516f20(0x76)]?.[_0x516f20(0x74)]||!_0x2d0208[_0x516f20(0x75)]?.[_0x516f20(0x78)]?.['stableVersion'])return null;return _0x2d0208;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x4fa4ad=Date['now']();if(cachedConfig&&_0x4fa4ad-cacheTime<CACHE_TTL)return cachedConfig;const _0x3a27c7=await fetchCdnConfig();return _0x3a27c7&&(cachedConfig=_0x3a27c7,cacheTime=_0x4fa4ad),_0x3a27c7;}function a123_0x373a(_0xa5bec6,_0x97a08b){_0xa5bec6=_0xa5bec6-0x72;const _0x28e3a2=a123_0x28e3();let _0x373aeb=_0x28e3a2[_0xa5bec6];return _0x373aeb;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- function a120_0x43fe(_0xa5841e,_0x4fae75){_0xa5841e=_0xa5841e-0xb7;const _0x4d6443=a120_0x4d64();let _0x43fe75=_0x4d6443[_0xa5841e];return _0x43fe75;}const a120_0xbf2119=a120_0x43fe;(function(_0x4c26f2,_0x4328e3){const _0x147878=a120_0x43fe,_0x3474a8=_0x4c26f2();while(!![]){try{const _0x5c823d=-parseInt(_0x147878(0xd0))/0x1*(-parseInt(_0x147878(0xca))/0x2)+-parseInt(_0x147878(0xc6))/0x3+-parseInt(_0x147878(0xd8))/0x4*(parseInt(_0x147878(0xcc))/0x5)+-parseInt(_0x147878(0xbe))/0x6*(parseInt(_0x147878(0xc1))/0x7)+parseInt(_0x147878(0xcd))/0x8*(parseInt(_0x147878(0xc7))/0x9)+-parseInt(_0x147878(0xcb))/0xa*(parseInt(_0x147878(0xbc))/0xb)+parseInt(_0x147878(0xd3))/0xc;if(_0x5c823d===_0x4328e3)break;else _0x3474a8['push'](_0x3474a8['shift']());}catch(_0x5abac2){_0x3474a8['push'](_0x3474a8['shift']());}}}(a120_0x4d64,0x98278));import a120_0x4e47ee from'node:fs';import a120_0xae3625 from'node:path';import a120_0x446a1a from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a120_0xbf2119(0xbd);function isNonNumericVersion(_0x55dc68){const _0x6a9132=a120_0xbf2119,_0x442d2b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x442d2b['some'](_0x21f4ab=>_0x21f4ab[_0x6a9132(0xd4)](_0x55dc68));}function getInstalledVersion(_0x49e443,_0x21d706){const _0x27732d=a120_0xbf2119;try{const _0x14e8aa=a120_0xae3625[_0x27732d(0xda)](_0x49e443,_0x27732d(0xcf),_0x21d706,'package.json');if(a120_0x4e47ee[_0x27732d(0xd1)](_0x14e8aa)){const _0x5c7e2d=JSON[_0x27732d(0xd5)](a120_0x4e47ee[_0x27732d(0xbf)](_0x14e8aa,'utf-8'));return _0x5c7e2d[_0x27732d(0xc4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4ef49b=a120_0xbf2119;try{const _0x2534e4=await getCdnConfig();return _0x2534e4?.[_0x4ef49b(0xc2)]?.['node']?.[_0x4ef49b(0xc9)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x21d754=a120_0xbf2119;try{const _0x5913f3=await getCdnConfig();return _0x5913f3?.[_0x21d754(0xc2)]?.['node']?.[_0x21d754(0xd6)]||'@lovrabet/sdk';}catch{return _0x21d754(0xdb);}}export async function checkSdkVersion(_0x4fd3b4){const _0x7836a=a120_0xbf2119,_0x4af0fc=a120_0xae3625['join'](_0x4fd3b4,_0x7836a(0xbb)),[_0x3a62b1,_0x4ff2ca]=await Promise[_0x7836a(0xb9)]([getSdkStableVersion(),getSdkPackageName()]),_0x2f6ed4=_0x3a62b1||FALLBACK_MIN_SDK_VERSION;if(!a120_0x4e47ee[_0x7836a(0xd1)](_0x4af0fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};try{const _0x13b5df=JSON[_0x7836a(0xd5)](a120_0x4e47ee[_0x7836a(0xbf)](_0x4af0fc,_0x7836a(0xb8))),_0x27cd71=_0x13b5df[_0x7836a(0xc5)]||{},_0x255307=_0x13b5df[_0x7836a(0xc3)]||{},_0x4c60ed=_0x27cd71[_0x4ff2ca]||_0x255307[_0x4ff2ca];if(!_0x4c60ed)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};let _0x20c37e=getInstalledVersion(_0x4fd3b4,_0x4ff2ca);!_0x20c37e&&(_0x20c37e=_0x4c60ed);if(isNonNumericVersion(_0x4c60ed))return{'installed':!![],'version':_0x20c37e,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};const _0x99992c=a120_0x446a1a[_0x7836a(0xd9)](_0x20c37e),_0x31bf54=a120_0x446a1a['coerce'](_0x2f6ed4),_0x474676=_0x99992c&&_0x31bf54?a120_0x446a1a['lt'](_0x99992c,_0x31bf54):![];return{'installed':!![],'version':_0x20c37e,'needsUpgrade':_0x474676,'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}}export function checkSdkVersionSync(_0x10b1ac){const _0x3b08db=a120_0xbf2119,_0x4055d0=a120_0xae3625['join'](_0x10b1ac,_0x3b08db(0xbb)),_0x25f8ba=_0x3b08db(0xdb);if(!a120_0x4e47ee[_0x3b08db(0xd1)](_0x4055d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};try{const _0x492124=JSON[_0x3b08db(0xd5)](a120_0x4e47ee[_0x3b08db(0xbf)](_0x4055d0,_0x3b08db(0xb8))),_0x26df44=_0x492124[_0x3b08db(0xc5)]||{},_0x35e2ed=_0x492124[_0x3b08db(0xc3)]||{},_0xae46bf=_0x26df44[_0x25f8ba]||_0x35e2ed[_0x25f8ba];if(!_0xae46bf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};let _0x571601=getInstalledVersion(_0x10b1ac,_0x25f8ba);!_0x571601&&(_0x571601=_0xae46bf);if(isNonNumericVersion(_0xae46bf))return{'installed':!![],'version':_0x571601,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};const _0x5586e0=a120_0x446a1a['coerce'](_0x571601),_0x441294=_0x5586e0?a120_0x446a1a['lt'](_0x5586e0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x571601,'needsUpgrade':_0x441294,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}}function a120_0x4d64(){const _0x1a86a4=['node_modules','31chXSbt','existsSync','↪\x20SDK\x20update\x20available','30125616VjsgeT','test','parse','packageName','\x20\x20\x20Stable\x20version:\x20','174012bdUdDb','coerce','join','@lovrabet/sdk','\x20\x20\x20Upgrade\x20command:\x20','utf8','all','npm\x20install\x20','package.json','820699juztzF','1.2.0','48CwQnwu','readFileSync','latest','473074EmbUnP','sdk','devDependencies','version','dependencies','3374949wwGYTY','160299MwoACT','log','stableVersion','1086KzRvjo','50YOWpgX','5kMtISK','80WXoqDk','\x1b[0m'];a120_0x4d64=function(){return _0x1a86a4;};return a120_0x4d64();}export function printSdkUpgradeWarning(_0x34def8){const _0x5d3c0e=a120_0xbf2119;if(!_0x34def8['needsUpgrade'])return;const _0x577575='\x1b[33m',_0x33840d=_0x5d3c0e(0xce),_0x4f221d='\x1b[1m',_0x16b19c=_0x34def8[_0x5d3c0e(0xd6)]||_0x5d3c0e(0xdb),_0x1d83e3=_0x34def8[_0x5d3c0e(0xc9)]||_0x34def8['minVersion'],_0x59d219=_0x5d3c0e(0xba)+_0x16b19c+'@'+(_0x1d83e3||_0x5d3c0e(0xc0));console['log'](),console[_0x5d3c0e(0xc8)](''+_0x577575+_0x4f221d+_0x5d3c0e(0xd2)+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+'\x20\x20\x20Current\x20version:\x20'+_0x16b19c+'@'+_0x34def8['version']+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xd7)+_0x1d83e3+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xb7)+_0x59d219+_0x33840d),console[_0x5d3c0e(0xc8)]();}
1
+ const a124_0x5db7e5=a124_0x407d;(function(_0x34b14d,_0x552808){const _0x28f08a=a124_0x407d,_0x2855d2=_0x34b14d();while(!![]){try{const _0x553352=parseInt(_0x28f08a(0x16f))/0x1+-parseInt(_0x28f08a(0x185))/0x2+parseInt(_0x28f08a(0x170))/0x3*(parseInt(_0x28f08a(0x182))/0x4)+-parseInt(_0x28f08a(0x175))/0x5*(parseInt(_0x28f08a(0x16c))/0x6)+parseInt(_0x28f08a(0x179))/0x7+parseInt(_0x28f08a(0x187))/0x8*(parseInt(_0x28f08a(0x168))/0x9)+parseInt(_0x28f08a(0x180))/0xa*(-parseInt(_0x28f08a(0x183))/0xb);if(_0x553352===_0x552808)break;else _0x2855d2['push'](_0x2855d2['shift']());}catch(_0x2bc8b9){_0x2855d2['push'](_0x2855d2['shift']());}}}(a124_0x2a00,0x1fbec));import a124_0x122a9b from'node:fs';import a124_0x2bcda5 from'node:path';function a124_0x407d(_0x3d13d4,_0x199608){_0x3d13d4=_0x3d13d4-0x164;const _0x2a003d=a124_0x2a00();let _0x407d1b=_0x2a003d[_0x3d13d4];return _0x407d1b;}import a124_0x32d733 from'semver';function a124_0x2a00(){const _0xbbf091=['test','packageName','existsSync','stableVersion','all','1.2.0','log','latest','devDependencies','package.json','9lMvInK','version','@lovrabet/sdk','↪\x20SDK\x20update\x20available','77628gWLltm','join','utf-8','106732gRCsKl','6DXkptp','minVersion','coerce','readFileSync','\x1b[0m','25RgitdM','dependencies','utf8','\x1b[1m','855820MJQcpu','\x20\x20\x20Stable\x20version:\x20','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','node_modules','sdk','node','594320TPvGbT','needsUpgrade','495284wNWnit','55OCGNWs','some','362190IUBlbc','parse','1570712JRnDYe'];a124_0x2a00=function(){return _0xbbf091;};return a124_0x2a00();}import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a124_0x5db7e5(0x18d);function isNonNumericVersion(_0x481a8d){const _0x1b0202=a124_0x5db7e5,_0x1d43d9=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1d43d9[_0x1b0202(0x184)](_0x4c3796=>_0x4c3796[_0x1b0202(0x188)](_0x481a8d));}function getInstalledVersion(_0x499d07,_0x11679b){const _0x4803dd=a124_0x5db7e5;try{const _0x1b521b=a124_0x2bcda5[_0x4803dd(0x16d)](_0x499d07,_0x4803dd(0x17d),_0x11679b,_0x4803dd(0x167));if(a124_0x122a9b[_0x4803dd(0x18a)](_0x1b521b)){const _0x44dbc1=JSON[_0x4803dd(0x186)](a124_0x122a9b['readFileSync'](_0x1b521b,_0x4803dd(0x16e)));return _0x44dbc1[_0x4803dd(0x169)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4bdd1f=a124_0x5db7e5;try{const _0x3458ee=await getCdnConfig();return _0x3458ee?.[_0x4bdd1f(0x17e)]?.[_0x4bdd1f(0x17f)]?.[_0x4bdd1f(0x18b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xb6dfd4=a124_0x5db7e5;try{const _0x4431a7=await getCdnConfig();return _0x4431a7?.[_0xb6dfd4(0x17e)]?.[_0xb6dfd4(0x17f)]?.[_0xb6dfd4(0x189)]||_0xb6dfd4(0x16a);}catch{return _0xb6dfd4(0x16a);}}export async function checkSdkVersion(_0x554fe1){const _0x1ca8ae=a124_0x5db7e5,_0x5efbf0=a124_0x2bcda5[_0x1ca8ae(0x16d)](_0x554fe1,_0x1ca8ae(0x167)),[_0x280039,_0x3e3eec]=await Promise[_0x1ca8ae(0x18c)]([getSdkStableVersion(),getSdkPackageName()]),_0x389e77=_0x280039||FALLBACK_MIN_SDK_VERSION;if(!a124_0x122a9b['existsSync'](_0x5efbf0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x389e77,'packageName':_0x3e3eec,'stableVersion':_0x280039};try{const _0x10b0b7=JSON[_0x1ca8ae(0x186)](a124_0x122a9b[_0x1ca8ae(0x173)](_0x5efbf0,_0x1ca8ae(0x177))),_0x300096=_0x10b0b7['dependencies']||{},_0x4e7002=_0x10b0b7[_0x1ca8ae(0x166)]||{},_0x85c1fb=_0x300096[_0x3e3eec]||_0x4e7002[_0x3e3eec];if(!_0x85c1fb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x389e77,'packageName':_0x3e3eec,'stableVersion':_0x280039};let _0x29c8e6=getInstalledVersion(_0x554fe1,_0x3e3eec);!_0x29c8e6&&(_0x29c8e6=_0x85c1fb);if(isNonNumericVersion(_0x85c1fb))return{'installed':!![],'version':_0x29c8e6,'needsUpgrade':![],'minVersion':_0x389e77,'packageName':_0x3e3eec,'stableVersion':_0x280039};const _0x56b751=a124_0x32d733[_0x1ca8ae(0x172)](_0x29c8e6),_0x35f06c=a124_0x32d733[_0x1ca8ae(0x172)](_0x389e77),_0x280818=_0x56b751&&_0x35f06c?a124_0x32d733['lt'](_0x56b751,_0x35f06c):![];return{'installed':!![],'version':_0x29c8e6,'needsUpgrade':_0x280818,'minVersion':_0x389e77,'packageName':_0x3e3eec,'stableVersion':_0x280039};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x389e77,'packageName':_0x3e3eec,'stableVersion':_0x280039};}}export function checkSdkVersionSync(_0x2da125){const _0x42d392=a124_0x5db7e5,_0x50cfc3=a124_0x2bcda5[_0x42d392(0x16d)](_0x2da125,_0x42d392(0x167)),_0x4538df=_0x42d392(0x16a);if(!a124_0x122a9b[_0x42d392(0x18a)](_0x50cfc3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4538df,'stableVersion':null};try{const _0xf15007=JSON[_0x42d392(0x186)](a124_0x122a9b['readFileSync'](_0x50cfc3,_0x42d392(0x177))),_0x133af2=_0xf15007[_0x42d392(0x176)]||{},_0x4a88e0=_0xf15007[_0x42d392(0x166)]||{},_0x54ef14=_0x133af2[_0x4538df]||_0x4a88e0[_0x4538df];if(!_0x54ef14)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4538df,'stableVersion':null};let _0x1655e5=getInstalledVersion(_0x2da125,_0x4538df);!_0x1655e5&&(_0x1655e5=_0x54ef14);if(isNonNumericVersion(_0x54ef14))return{'installed':!![],'version':_0x1655e5,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4538df,'stableVersion':null};const _0x31e906=a124_0x32d733[_0x42d392(0x172)](_0x1655e5),_0x3c95c2=_0x31e906?a124_0x32d733['lt'](_0x31e906,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1655e5,'needsUpgrade':_0x3c95c2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4538df,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4538df,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x45e41a){const _0x154d1a=a124_0x5db7e5;if(!_0x45e41a[_0x154d1a(0x181)])return;const _0x8b7206=_0x154d1a(0x17b),_0xc793e4=_0x154d1a(0x174),_0x493c6b=_0x154d1a(0x178),_0x5f8278=_0x45e41a[_0x154d1a(0x189)]||'@lovrabet/sdk',_0x35f6c2=_0x45e41a['stableVersion']||_0x45e41a[_0x154d1a(0x171)],_0x2b7fe8='npm\x20install\x20'+_0x5f8278+'@'+(_0x35f6c2||_0x154d1a(0x165));console[_0x154d1a(0x164)](),console[_0x154d1a(0x164)](''+_0x8b7206+_0x493c6b+_0x154d1a(0x16b)+_0xc793e4),console[_0x154d1a(0x164)](_0x8b7206+'\x20\x20\x20Current\x20version:\x20'+_0x5f8278+'@'+_0x45e41a[_0x154d1a(0x169)]+_0xc793e4),console[_0x154d1a(0x164)](_0x8b7206+_0x154d1a(0x17a)+_0x35f6c2+_0xc793e4),console[_0x154d1a(0x164)](_0x8b7206+_0x154d1a(0x17c)+_0x2b7fe8+_0xc793e4),console['log']();}
@@ -1 +1 @@
1
- (function(_0x28f7d7,_0x1c658e){const _0x29e80d=a121_0x4361,_0x17196a=_0x28f7d7();while(!![]){try{const _0x81ecc1=parseInt(_0x29e80d(0x179))/0x1+parseInt(_0x29e80d(0x16f))/0x2+-parseInt(_0x29e80d(0x17f))/0x3*(parseInt(_0x29e80d(0x176))/0x4)+parseInt(_0x29e80d(0x17e))/0x5*(parseInt(_0x29e80d(0x174))/0x6)+-parseInt(_0x29e80d(0x187))/0x7*(parseInt(_0x29e80d(0x16e))/0x8)+parseInt(_0x29e80d(0x17d))/0x9*(parseInt(_0x29e80d(0x17c))/0xa)+parseInt(_0x29e80d(0x180))/0xb;if(_0x81ecc1===_0x1c658e)break;else _0x17196a['push'](_0x17196a['shift']());}catch(_0x460764){_0x17196a['push'](_0x17196a['shift']());}}}(a121_0x12ca,0xb581f));import{readFileSync}from'node:fs';function a121_0x4361(_0x4471e8,_0xfb1f6d){_0x4471e8=_0x4471e8-0x16c;const _0x12ca46=a121_0x12ca();let _0x436163=_0x12ca46[_0x4471e8];return _0x436163;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a121_0x5c33a1 from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x550da3=a121_0x4361;try{const _0x3d29c3=fileURLToPath(import.meta.url),_0x4625dd=resolve(dirname(_0x3d29c3),_0x550da3(0x173)),_0x2ee065=resolve(_0x4625dd,'package.json'),_0x147375=JSON['parse'](readFileSync(_0x2ee065,_0x550da3(0x172)));return _0x147375[_0x550da3(0x178)]||_0x550da3(0x177);}catch{return _0x550da3(0x177);}}function a121_0x12ca(){const _0x497b6a=['177kfqfiO','1112441kNsudD','coerce','↪\x20New\x20version\x20available','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','cli','\x1b[1m','8498MIyxIy','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','some','5112EwAaMY','1122444oAStHw','log','stableVersion','utf-8','../..','76542zXZcFL','\x20\x20\x20Stable\x20version:\x20','6528HuozCz','1.0.0','version','336466wCSxim','@latest','needsUpgrade','10iDypCJ','3368583iAEEBr','95UgilMb'];a121_0x12ca=function(){return _0x497b6a;};return a121_0x12ca();}function isNonNumericVersion(_0x445707){const _0x2b5ef5=a121_0x4361,_0x145f06=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x145f06[_0x2b5ef5(0x16d)](_0x41e73b=>_0x41e73b['test'](_0x445707));}export async function checkCliVersion(){const _0x39eec2=a121_0x4361,_0x4c3241=getCurrentCliVersion(),_0x4bb41b=await getCdnConfig(),_0x4610c7=_0x4bb41b?.[_0x39eec2(0x185)]?.[_0x39eec2(0x171)]||null;let _0x2363d9=![];if(_0x4610c7)try{const _0x3f5eb0=a121_0x5c33a1[_0x39eec2(0x181)](_0x4c3241),_0x1ad758=a121_0x5c33a1[_0x39eec2(0x181)](_0x4610c7);_0x3f5eb0&&_0x1ad758&&(_0x2363d9=a121_0x5c33a1['lt'](_0x3f5eb0,_0x1ad758));}catch{_0x2363d9=![];}return{'currentVersion':_0x4c3241,'stableVersion':_0x4610c7,'needsUpgrade':_0x2363d9,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42ce94){const _0x15dfc1=a121_0x4361;if(!_0x42ce94[_0x15dfc1(0x17b)])return;const _0x2043c7='\x1b[33m',_0x267213='\x1b[0m',_0x21fe21=_0x15dfc1(0x186),_0xfddc4=_0x15dfc1(0x16c)+NPM_PACKAGE_NAME+_0x15dfc1(0x17a);console[_0x15dfc1(0x170)](),console['log'](''+_0x2043c7+_0x21fe21+_0x15dfc1(0x182)+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x184)+_0x42ce94[_0x15dfc1(0x183)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x175)+_0x42ce94[_0x15dfc1(0x171)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x188)+_0xfddc4+_0x267213),console['log']();}
1
+ (function(_0x2b065d,_0x3ae2e8){const _0x230a8e=a125_0x1967,_0x292a91=_0x2b065d();while(!![]){try{const _0x1fab9a=parseInt(_0x230a8e(0x134))/0x1*(-parseInt(_0x230a8e(0x13f))/0x2)+parseInt(_0x230a8e(0x14a))/0x3*(parseInt(_0x230a8e(0x14f))/0x4)+parseInt(_0x230a8e(0x139))/0x5+parseInt(_0x230a8e(0x135))/0x6+parseInt(_0x230a8e(0x142))/0x7*(parseInt(_0x230a8e(0x138))/0x8)+parseInt(_0x230a8e(0x13b))/0x9*(parseInt(_0x230a8e(0x132))/0xa)+-parseInt(_0x230a8e(0x145))/0xb;if(_0x1fab9a===_0x3ae2e8)break;else _0x292a91['push'](_0x292a91['shift']());}catch(_0x409e90){_0x292a91['push'](_0x292a91['shift']());}}}(a125_0x2658,0xad5cf));import{readFileSync}from'node:fs';function a125_0x1967(_0x1c03ac,_0x45a1d3){_0x1c03ac=_0x1c03ac-0x132;const _0x265885=a125_0x2658();let _0x196737=_0x265885[_0x1c03ac];return _0x196737;}function a125_0x2658(){const _0x2add71=['test','1.0.0','60JZlLkY','needsUpgrade','328870NFlIpj','version','3zZBEOU','4055172iyoTCv','cli','coerce','1939664GVsHLb','777190UYAUSL','npm\x20install\x20-g\x20','54ucKmWm','\x1b[0m','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','421404UyrBhK','some','log','7WDnDhP','stableVersion','../..','10913859KTbdaR','\x20\x20\x20Stable\x20version:\x20','currentVersion','utf-8','\x1b[33m','212658mFBzYN','\x1b[1m','@latest'];a125_0x2658=function(){return _0x2add71;};return a125_0x2658();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a125_0x231bdc from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x13f7a5=a125_0x1967;try{const _0x83a7a6=fileURLToPath(import.meta.url),_0x5a282c=resolve(dirname(_0x83a7a6),_0x13f7a5(0x144)),_0x5d1dcf=resolve(_0x5a282c,'package.json'),_0x2522d5=JSON['parse'](readFileSync(_0x5d1dcf,_0x13f7a5(0x148)));return _0x2522d5[_0x13f7a5(0x133)]||_0x13f7a5(0x14e);}catch{return _0x13f7a5(0x14e);}}function isNonNumericVersion(_0x3e8602){const _0x344b2a=a125_0x1967,_0x288fd7=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x288fd7[_0x344b2a(0x140)](_0x5d1f1b=>_0x5d1f1b[_0x344b2a(0x14d)](_0x3e8602));}export async function checkCliVersion(){const _0x100701=a125_0x1967,_0x1e596f=getCurrentCliVersion(),_0x38f820=await getCdnConfig(),_0x998076=_0x38f820?.[_0x100701(0x136)]?.[_0x100701(0x143)]||null;let _0x4265ac=![];if(_0x998076)try{const _0x29b786=a125_0x231bdc[_0x100701(0x137)](_0x1e596f),_0x2e2ce7=a125_0x231bdc[_0x100701(0x137)](_0x998076);_0x29b786&&_0x2e2ce7&&(_0x4265ac=a125_0x231bdc['lt'](_0x29b786,_0x2e2ce7));}catch{_0x4265ac=![];}return{'currentVersion':_0x1e596f,'stableVersion':_0x998076,'needsUpgrade':_0x4265ac,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x247ddf){const _0x348b1f=a125_0x1967;if(!_0x247ddf[_0x348b1f(0x150)])return;const _0x4a7e58=_0x348b1f(0x149),_0x461044=_0x348b1f(0x13c),_0x1efa28=_0x348b1f(0x14b),_0x301041=_0x348b1f(0x13a)+NPM_PACKAGE_NAME+_0x348b1f(0x14c);console[_0x348b1f(0x141)](),console['log'](''+_0x4a7e58+_0x1efa28+'↪\x20New\x20version\x20available'+_0x461044),console[_0x348b1f(0x141)](_0x4a7e58+_0x348b1f(0x13d)+_0x247ddf[_0x348b1f(0x147)]+_0x461044),console[_0x348b1f(0x141)](_0x4a7e58+_0x348b1f(0x146)+_0x247ddf[_0x348b1f(0x143)]+_0x461044),console[_0x348b1f(0x141)](_0x4a7e58+_0x348b1f(0x13e)+_0x301041+_0x461044),console[_0x348b1f(0x141)]();}
@@ -1 +1 @@
1
- (function(_0x835266,_0x5774f1){const _0x451f5f=a122_0x3f6f,_0x3a0e31=_0x835266();while(!![]){try{const _0xdd98c6=parseInt(_0x451f5f(0x1a7))/0x1*(parseInt(_0x451f5f(0x1a5))/0x2)+-parseInt(_0x451f5f(0x1a3))/0x3+-parseInt(_0x451f5f(0x1ac))/0x4*(-parseInt(_0x451f5f(0x19e))/0x5)+-parseInt(_0x451f5f(0x194))/0x6+-parseInt(_0x451f5f(0x1a4))/0x7*(parseInt(_0x451f5f(0x1a8))/0x8)+-parseInt(_0x451f5f(0x19d))/0x9*(-parseInt(_0x451f5f(0x196))/0xa)+-parseInt(_0x451f5f(0x1a1))/0xb;if(_0xdd98c6===_0x5774f1)break;else _0x3a0e31['push'](_0x3a0e31['shift']());}catch(_0x4fbe2a){_0x3a0e31['push'](_0x3a0e31['shift']());}}}(a122_0x1a94,0xb3816));import{initEnv}from'../constant/env.js';function a122_0x1a94(){const _0x3e8847=['45IYlbbw','265gaZeho','app','apiDir','1545654UAYtBb','replace','1229376vSlZEm','52493raYbyH','6408kHzJiB','appcode','251XAtqcC','512YNJdnB','defaultApp','string','keys','55228sIUsmR','entries','env','object','6287064xRobji','cookie','2554730Pzntig','apps','trim','map','https://g.lovrabet.com/dist/lovrabet-skill','values','template_base_url'];a122_0x1a94=function(){return _0x3e8847;};return a122_0x1a94();}import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a122_0x3f6f(_0x29969f,_0x1c7429){_0x29969f=_0x29969f-0x194;const _0x1a94d1=a122_0x1a94();let _0x3f6f44=_0x1a94d1[_0x29969f];return _0x3f6f44;}export{isInProject}from'../context.js';export function readConfig(_0x4ac76c){const _0x57cb7f=a122_0x3f6f,_0x12f017=readRawConfig(_0x4ac76c);return _0x12f017['env']&&typeof _0x12f017[_0x57cb7f(0x1ae)]==='string'&&initEnv(_0x12f017[_0x57cb7f(0x1ae)]),_0x12f017;}export function getConfigAppCode(){const _0x5ce275=a122_0x3f6f,_0x223866=readRawConfig();if(_0x223866[_0x5ce275(0x197)]&&typeof _0x223866[_0x5ce275(0x197)]===_0x5ce275(0x1af)){const _0x72d582=_0x223866[_0x5ce275(0x1a9)];if(_0x72d582&&_0x223866[_0x5ce275(0x197)][_0x72d582]?.[_0x5ce275(0x1a6)])return String(_0x223866[_0x5ce275(0x197)][_0x72d582]['appcode'])[_0x5ce275(0x198)]();const _0x51cc9b=Object[_0x5ce275(0x19b)](_0x223866[_0x5ce275(0x197)])[0x0];if(_0x51cc9b?.['appcode'])return String(_0x51cc9b['appcode'])[_0x5ce275(0x198)]();}const _0x72cc87=_0x223866[_0x5ce275(0x1a6)]||_0x223866[_0x5ce275(0x19f)];if(typeof _0x72cc87!==_0x5ce275(0x1aa)||_0x72cc87[_0x5ce275(0x198)]()==='')return undefined;return _0x72cc87[_0x5ce275(0x198)]();}export function getMultiAppConfigs(){const _0x53793f=a122_0x3f6f,_0x5a7a4a=readRawConfig(),_0x2f9f5f=_0x5a7a4a[_0x53793f(0x197)];if(!_0x2f9f5f||typeof _0x2f9f5f!==_0x53793f(0x1af)||Object[_0x53793f(0x1ab)](_0x2f9f5f)['length']===0x0)return null;const _0x2ca972=_0x5a7a4a['defaultApp'];return Object[_0x53793f(0x1ad)](_0x2f9f5f)[_0x53793f(0x199)](([_0x415b61,_0x2f23cb])=>({'name':_0x415b61,'appcode':_0x2f23cb?.[_0x53793f(0x1a6)]||'','isDefault':_0x415b61===_0x2ca972,'env':_0x2f23cb?.[_0x53793f(0x1ae)],'apiDir':_0x2f23cb?.[_0x53793f(0x1a0)],'cookie':_0x2f23cb?.[_0x53793f(0x195)]||undefined}))['filter'](_0x402e4f=>_0x402e4f[_0x53793f(0x1a6)]);}export function getTemplateBaseUrl(){const _0x2ad64d=a122_0x3f6f,_0x456dcf=readRawConfig();if(_0x456dcf['template_base_url']&&typeof _0x456dcf[_0x2ad64d(0x19c)]==='string')return _0x456dcf['template_base_url'][_0x2ad64d(0x1a2)](/\/$/,'');return _0x2ad64d(0x19a);}
1
+ (function(_0x4be763,_0x3cdda9){const _0x1c464a=a126_0x3bb8,_0x12c5b4=_0x4be763();while(!![]){try{const _0x1fde14=parseInt(_0x1c464a(0x1e4))/0x1+-parseInt(_0x1c464a(0x1d4))/0x2+-parseInt(_0x1c464a(0x1e7))/0x3*(parseInt(_0x1c464a(0x1dd))/0x4)+parseInt(_0x1c464a(0x1d8))/0x5*(parseInt(_0x1c464a(0x1d2))/0x6)+-parseInt(_0x1c464a(0x1db))/0x7+-parseInt(_0x1c464a(0x1d5))/0x8+parseInt(_0x1c464a(0x1e0))/0x9;if(_0x1fde14===_0x3cdda9)break;else _0x12c5b4['push'](_0x12c5b4['shift']());}catch(_0x16cfa6){_0x12c5b4['push'](_0x12c5b4['shift']());}}}(a126_0x418e,0xe5a6d));import{initEnv}from'../constant/env.js';import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2963d0){const _0xc342ee=a126_0x3bb8,_0x282723=readRawConfig(_0x2963d0);return _0x282723[_0xc342ee(0x1df)]&&typeof _0x282723[_0xc342ee(0x1df)]==='string'&&initEnv(_0x282723['env']),_0x282723;}function a126_0x3bb8(_0x1782e1,_0xcf4d0f){_0x1782e1=_0x1782e1-0x1d1;const _0x418e25=a126_0x418e();let _0x3bb879=_0x418e25[_0x1782e1];return _0x3bb879;}export function getConfigAppCode(){const _0x624d42=a126_0x3bb8,_0x2095c5=readRawConfig();if(_0x2095c5['apps']&&typeof _0x2095c5['apps']===_0x624d42(0x1d1)){const _0x4849f2=_0x2095c5['defaultApp'];if(_0x4849f2&&_0x2095c5[_0x624d42(0x1e3)][_0x4849f2]?.[_0x624d42(0x1e8)])return String(_0x2095c5[_0x624d42(0x1e3)][_0x4849f2][_0x624d42(0x1e8)])[_0x624d42(0x1d7)]();const _0x4ad4dd=Object[_0x624d42(0x1e5)](_0x2095c5['apps'])[0x0];if(_0x4ad4dd?.['appcode'])return String(_0x4ad4dd[_0x624d42(0x1e8)])[_0x624d42(0x1d7)]();}const _0x443a78=_0x2095c5[_0x624d42(0x1e8)]||_0x2095c5['app'];if(typeof _0x443a78!==_0x624d42(0x1de)||_0x443a78[_0x624d42(0x1d7)]()==='')return undefined;return _0x443a78['trim']();}export function getMultiAppConfigs(){const _0x27353e=a126_0x3bb8,_0x352ce6=readRawConfig(),_0x4ff018=_0x352ce6[_0x27353e(0x1e3)];if(!_0x4ff018||typeof _0x4ff018!==_0x27353e(0x1d1)||Object[_0x27353e(0x1d6)](_0x4ff018)['length']===0x0)return null;const _0x39b25a=_0x352ce6['defaultApp'];return Object[_0x27353e(0x1e2)](_0x4ff018)[_0x27353e(0x1e6)](([_0x5408fc,_0x4432ed])=>({'name':_0x5408fc,'appcode':_0x4432ed?.[_0x27353e(0x1e8)]||'','isDefault':_0x5408fc===_0x39b25a,'env':_0x4432ed?.[_0x27353e(0x1df)],'apiDir':_0x4432ed?.[_0x27353e(0x1dc)],'cookie':_0x4432ed?.[_0x27353e(0x1da)]||undefined}))[_0x27353e(0x1e1)](_0x2d3f36=>_0x2d3f36[_0x27353e(0x1e8)]);}function a126_0x418e(){const _0x38178f=['5493318IOZLXJ','template_base_url','3696148qYCFmB','957496wmbtMR','keys','trim','5FSfxwO','replace','cookie','2568664OzHQjG','apiDir','44CvzYCV','string','env','18055899YUWfLr','filter','entries','apps','1469981JJcEwg','values','map','304467HyiZTt','appcode','object'];a126_0x418e=function(){return _0x38178f;};return a126_0x418e();}export function getTemplateBaseUrl(){const _0x513d38=a126_0x3bb8,_0x1f439f=readRawConfig();if(_0x1f439f['template_base_url']&&typeof _0x1f439f[_0x513d38(0x1d3)]===_0x513d38(0x1de))return _0x1f439f[_0x513d38(0x1d3)][_0x513d38(0x1d9)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}
@@ -1 +1 @@
1
- function a123_0x2bca(){const _0x3ad02a=['readdirSync','13665KXbEuo','name','复制目录时出错:','284568GOKFYt','2559375pQKxDK','error','isDirectory','1719ouJVLZ','copyFileSync','mkdirSync','415689VFGwyq','join','628KNxSvx','552974MPXPwY','8688VaUaSf','767430lEWmRt'];a123_0x2bca=function(){return _0x3ad02a;};return a123_0x2bca();}(function(_0xb949bf,_0x269893){const _0x835317=a123_0x3435,_0x111b31=_0xb949bf();while(!![]){try{const _0x5320fc=parseInt(_0x835317(0x1d1))/0x1+parseInt(_0x835317(0x1ca))/0x2+parseInt(_0x835317(0x1c7))/0x3+-parseInt(_0x835317(0x1c9))/0x4*(parseInt(_0x835317(0x1ce))/0x5)+parseInt(_0x835317(0x1cc))/0x6+-parseInt(_0x835317(0x1d2))/0x7+parseInt(_0x835317(0x1cb))/0x8*(parseInt(_0x835317(0x1c4))/0x9);if(_0x5320fc===_0x269893)break;else _0x111b31['push'](_0x111b31['shift']());}catch(_0x280bf1){_0x111b31['push'](_0x111b31['shift']());}}}(a123_0x2bca,0x3aa73));function a123_0x3435(_0x5c0357,_0x4898c2){_0x5c0357=_0x5c0357-0x1c2;const _0x2bca21=a123_0x2bca();let _0x34355a=_0x2bca21[_0x5c0357];return _0x34355a;}import a123_0xf1082a from'node:path';import a123_0xb63ffe from'node:fs';export async function copyDirectory(_0x383a35,_0x298d10){const _0x707386=a123_0x3435;try{const _0x1aee46=a123_0xb63ffe[_0x707386(0x1cd)](_0x383a35,{'withFileTypes':!![]});a123_0xb63ffe[_0x707386(0x1c6)](_0x298d10,{'recursive':!![]});for(const _0x58a9f5 of _0x1aee46){const _0x7a6fdb=a123_0xf1082a[_0x707386(0x1c8)](_0x383a35,_0x58a9f5[_0x707386(0x1cf)]),_0x28df15=a123_0xf1082a['join'](_0x298d10,_0x58a9f5[_0x707386(0x1cf)]);_0x58a9f5[_0x707386(0x1c3)]()?await copyDirectory(_0x7a6fdb,_0x28df15):a123_0xb63ffe[_0x707386(0x1c5)](_0x7a6fdb,_0x28df15);}}catch(_0x529897){console[_0x707386(0x1c2)](_0x707386(0x1d0),_0x529897);}}
1
+ (function(_0x1aad13,_0x4831cc){const _0x3286e9=a127_0x1dc3,_0x307e90=_0x1aad13();while(!![]){try{const _0x1dde19=parseInt(_0x3286e9(0x116))/0x1*(parseInt(_0x3286e9(0x114))/0x2)+-parseInt(_0x3286e9(0x110))/0x3+parseInt(_0x3286e9(0x11a))/0x4+-parseInt(_0x3286e9(0x118))/0x5*(-parseInt(_0x3286e9(0x10f))/0x6)+-parseInt(_0x3286e9(0x10d))/0x7+-parseInt(_0x3286e9(0x111))/0x8+parseInt(_0x3286e9(0x113))/0x9;if(_0x1dde19===_0x4831cc)break;else _0x307e90['push'](_0x307e90['shift']());}catch(_0x3feb1b){_0x307e90['push'](_0x307e90['shift']());}}}(a127_0x3f3b,0x859d9));import a127_0x42e722 from'node:path';import a127_0x5bf221 from'node:fs';export async function copyDirectory(_0x498bd4,_0xc9ac4a){const _0x51cd41=a127_0x1dc3;try{const _0x3166fe=a127_0x5bf221[_0x51cd41(0x10b)](_0x498bd4,{'withFileTypes':!![]});a127_0x5bf221[_0x51cd41(0x119)](_0xc9ac4a,{'recursive':!![]});for(const _0x3844e7 of _0x3166fe){const _0x38231a=a127_0x42e722[_0x51cd41(0x117)](_0x498bd4,_0x3844e7[_0x51cd41(0x10c)]),_0x215161=a127_0x42e722[_0x51cd41(0x117)](_0xc9ac4a,_0x3844e7[_0x51cd41(0x10c)]);_0x3844e7[_0x51cd41(0x115)]()?await copyDirectory(_0x38231a,_0x215161):a127_0x5bf221[_0x51cd41(0x10a)](_0x38231a,_0x215161);}}catch(_0x2401f9){console[_0x51cd41(0x10e)](_0x51cd41(0x112),_0x2401f9);}}function a127_0x1dc3(_0xe8cf48,_0x358d1){_0xe8cf48=_0xe8cf48-0x10a;const _0x3f3bd5=a127_0x3f3b();let _0x1dc340=_0x3f3bd5[_0xe8cf48];return _0x1dc340;}function a127_0x3f3b(){const _0x4c1834=['mkdirSync','1243216mGOljk','copyFileSync','readdirSync','name','5984482oEcqsp','error','95244vsJSKi','1850508QmoqIR','4833776foIhPd','复制目录时出错:','8712612kyxYmq','716362bJcbEb','isDirectory','3WQXhnt','join','85aidJla'];a127_0x3f3b=function(){return _0x4c1834;};return a127_0x3f3b();}
@@ -1 +1 @@
1
- function a124_0x1caf(_0x57c313,_0x1573aa){_0x57c313=_0x57c313-0xbf;const _0x5ae951=a124_0x5ae9();let _0x1caf94=_0x5ae951[_0x57c313];return _0x1caf94;}(function(_0x34ea16,_0x55047a){const _0x2bed64=a124_0x1caf,_0x422ef2=_0x34ea16();while(!![]){try{const _0xd5f90=parseInt(_0x2bed64(0xca))/0x1+parseInt(_0x2bed64(0xc0))/0x2+parseInt(_0x2bed64(0xc8))/0x3+parseInt(_0x2bed64(0xc3))/0x4*(-parseInt(_0x2bed64(0xc7))/0x5)+parseInt(_0x2bed64(0xc2))/0x6*(-parseInt(_0x2bed64(0xc6))/0x7)+parseInt(_0x2bed64(0xc5))/0x8*(-parseInt(_0x2bed64(0xbf))/0x9)+parseInt(_0x2bed64(0xc9))/0xa*(-parseInt(_0x2bed64(0xc4))/0xb);if(_0xd5f90===_0x55047a)break;else _0x422ef2['push'](_0x422ef2['shift']());}catch(_0x8ea5ce){_0x422ef2['push'](_0x422ef2['shift']());}}}(a124_0x5ae9,0xaaa72));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a124_0x5ae9(){const _0x2562fb=['417230Woyybb','1146593bXmvvk','10269bliKOs','1748834DjBwDX','isDirectory','6EJRAYJ','501924CUMHsw','209VDkyRS','72jTULaT','7977186tBOPvE','5ISjwZY','2238207dEzsMH'];a124_0x5ae9=function(){return _0x2562fb;};return a124_0x5ae9();}export async function copyDir(_0x16901f,_0x405a23){const _0x84b8ad=a124_0x1caf,_0x48fdf2=statSync(_0x16901f);if(_0x48fdf2[_0x84b8ad(0xc1)]()){!existsSync(_0x405a23)&&mkdirSync(_0x405a23,{'recursive':!![]});const _0x52cc97=readdirSync(_0x16901f);for(const _0x337b9e of _0x52cc97){await copyDir(join(_0x16901f,_0x337b9e),join(_0x405a23,_0x337b9e));}}else copyFileSync(_0x16901f,_0x405a23);}export function ensureDir(_0x1d391d){!existsSync(_0x1d391d)&&mkdirSync(_0x1d391d,{'recursive':!![]});}export function pathExists(_0x5e35cb){return existsSync(_0x5e35cb);}
1
+ function a128_0x3004(){const _0x4eff91=['1836204VRBLWp','1507482BDIZwE','14269144OgpckH','702332sITYlY','isDirectory','256952AwdaWo','1768191sIjFlh','14QNTwIV','3443650ITftKU'];a128_0x3004=function(){return _0x4eff91;};return a128_0x3004();}(function(_0x432670,_0x575e2a){const _0x3fbe8e=a128_0x2773,_0x133a49=_0x432670();while(!![]){try{const _0x150cd2=-parseInt(_0x3fbe8e(0xae))/0x1+-parseInt(_0x3fbe8e(0xab))/0x2+parseInt(_0x3fbe8e(0xb1))/0x3+parseInt(_0x3fbe8e(0xb0))/0x4+-parseInt(_0x3fbe8e(0xaa))/0x5+-parseInt(_0x3fbe8e(0xac))/0x6*(-parseInt(_0x3fbe8e(0xb2))/0x7)+parseInt(_0x3fbe8e(0xad))/0x8;if(_0x150cd2===_0x575e2a)break;else _0x133a49['push'](_0x133a49['shift']());}catch(_0x3e693f){_0x133a49['push'](_0x133a49['shift']());}}}(a128_0x3004,0x99f50));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1fb758,_0x2c62a4){const _0x3cc1f4=a128_0x2773,_0x3d2975=statSync(_0x1fb758);if(_0x3d2975[_0x3cc1f4(0xaf)]()){!existsSync(_0x2c62a4)&&mkdirSync(_0x2c62a4,{'recursive':!![]});const _0x33e65f=readdirSync(_0x1fb758);for(const _0x2fdd60 of _0x33e65f){await copyDir(join(_0x1fb758,_0x2fdd60),join(_0x2c62a4,_0x2fdd60));}}else copyFileSync(_0x1fb758,_0x2c62a4);}function a128_0x2773(_0x327a7f,_0xc1836f){_0x327a7f=_0x327a7f-0xaa;const _0x30049c=a128_0x3004();let _0x277335=_0x30049c[_0x327a7f];return _0x277335;}export function ensureDir(_0x490dfa){!existsSync(_0x490dfa)&&mkdirSync(_0x490dfa,{'recursive':!![]});}export function pathExists(_0x409670){return existsSync(_0x409670);}
@@ -1 +1 @@
1
- const a125_0x5f8407=a125_0x208a;(function(_0x346435,_0x1ea359){const _0x319954=a125_0x208a,_0x568560=_0x346435();while(!![]){try{const _0x1b049e=parseInt(_0x319954(0x10e))/0x1*(parseInt(_0x319954(0x102))/0x2)+parseInt(_0x319954(0x115))/0x3*(parseInt(_0x319954(0x120))/0x4)+parseInt(_0x319954(0x10d))/0x5*(parseInt(_0x319954(0x10a))/0x6)+-parseInt(_0x319954(0x11a))/0x7+parseInt(_0x319954(0x103))/0x8+-parseInt(_0x319954(0x124))/0x9*(parseInt(_0x319954(0x122))/0xa)+-parseInt(_0x319954(0x109))/0xb*(parseInt(_0x319954(0x126))/0xc);if(_0x1b049e===_0x1ea359)break;else _0x568560['push'](_0x568560['shift']());}catch(_0x10f5af){_0x568560['push'](_0x568560['shift']());}}}(a125_0x36c8,0x2e1e2));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a125_0x208a(_0x5d26e8,_0x28d8a0){_0x5d26e8=_0x5d26e8-0x102;const _0x36c80b=a125_0x36c8();let _0x208a21=_0x36c80b[_0x5d26e8];return _0x208a21;}import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x3f591e=a125_0x208a,_0x1559ab=getTemplateBaseUrl();return _0x1559ab+_0x3f591e(0x116);}const CACHE_DIR=join(homedir(),'.lovrabet',a125_0x5f8407(0x10b));export async function fetchGuidesFromCDN(){const _0x55bc66=a125_0x5f8407,_0x566e7b=getGuidesCdnUrl(),_0x43f587=await fetch(_0x566e7b,{'headers':{'Accept':'application/json'}});if(!_0x43f587['ok'])throw new Error(_0x55bc66(0x106)+_0x43f587[_0x55bc66(0x104)]+'\x20'+_0x43f587[_0x55bc66(0x11c)]);const _0x3b7647=await _0x43f587[_0x55bc66(0x105)]();if(!_0x3b7647[_0x55bc66(0x125)]||typeof _0x3b7647['guides']!==_0x55bc66(0x119))throw new Error(_0x55bc66(0x110));return _0x3b7647;}export function writeGuidesToProject(_0x45f2ce,_0x14b9d9,_0x2a5b76=a125_0x5f8407(0x121),_0x3f9b10){const _0x2d1699=a125_0x5f8407,_0x226d68=join(_0x14b9d9,_0x2a5b76);mkdirSync(_0x226d68,{'recursive':!![]});for(const [_0x49ce1f,_0x401ae8]of Object[_0x2d1699(0x108)](_0x45f2ce[_0x2d1699(0x125)])){let _0x3b6b23=_0x401ae8[_0x2d1699(0x11e)];_0x401ae8[_0x2d1699(0x10c)]&&(_0x3b6b23=appendUpdateTime(_0x3b6b23,_0x401ae8['lastUpdated'])),writeFileSync(join(_0x226d68,_0x49ce1f+_0x2d1699(0x11b)),_0x3b6b23,_0x2d1699(0x117));}}export function appendUpdateTime(_0x4b9067,_0x186c3f){const _0x325a7f=a125_0x5f8407;return _0x4b9067=_0x4b9067[_0x325a7f(0x114)](/\n*>更新时间:.*$/m,''),_0x4b9067['trimEnd']()+('\x0a\x0a>更新时间:'+_0x186c3f);}export function getSkillTemplate(_0x259f8f){const _0x161150=a125_0x5f8407;return _0x259f8f[_0x161150(0x123)]?.[_0x161150(0x11e)]||'';}export function appendExtendContents(_0x4a1224,_0x6afdb6,_0x212631){const _0x2e0b5f=a125_0x5f8407,_0x564129=[];for(const [,_0x1b2189]of Object[_0x2e0b5f(0x108)](_0x6afdb6[_0x2e0b5f(0x125)])){_0x1b2189[_0x2e0b5f(0x112)]&&_0x564129[_0x2e0b5f(0x111)](_0x1b2189[_0x2e0b5f(0x112)][_0x2e0b5f(0x118)]());}if(_0x564129[_0x2e0b5f(0x11f)]===0x0)return _0x4a1224;return _0x4a1224[_0x2e0b5f(0x118)]()+'\x0a\x0a'+_0x564129['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x16c3ce,_0x3cb72b,_0x512c9d){const _0xe85514=a125_0x5f8407,_0x2b008d=getSkillTemplate(_0x16c3ce);if(!_0x2b008d)throw new Error(_0xe85514(0x11d));const _0xd04c20=dirname(_0x3cb72b);mkdirSync(_0xd04c20,{'recursive':!![]});let _0x2536bf=_0x2b008d[_0xe85514(0x114)](/\{\{IDE_NAME\}\}/g,_0x512c9d);_0x2536bf=appendExtendContents(_0x2536bf,_0x16c3ce),_0x16c3ce[_0xe85514(0x123)][_0xe85514(0x10c)]&&(_0x2536bf=appendUpdateTime(_0x2536bf,_0x16c3ce['skillTemplate'][_0xe85514(0x10c)])),writeFileSync(_0x3cb72b,_0x2536bf,_0xe85514(0x117));}export async function installGuides(_0x27311c){const _0x38e969=a125_0x5f8407,_0x3d40b6=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3d40b6,_0x27311c),Object[_0x38e969(0x113)](_0x3d40b6[_0x38e969(0x125)])[_0x38e969(0x11f)];}function a125_0x36c8(){const _0x10f545=['5nQVmcE','8864AjpOfZ','path','CDN\x20返回数据格式错误','push','extendContent','keys','replace','47163oBRSMC','/skills/guides.json','utf-8','trimEnd','object','1012256ZfESGl','.md','statusText','CDN\x20数据中缺少\x20skillTemplate','content','length','4yocLTD','.lovrabet/skill/guides','20JuYfMh','skillTemplate','478809ZCNGPi','guides','18996mAfFQc','76lCTeGv','2582088XGPEYW','status','json','CDN\x20请求失败:\x20','map','entries','3531EwKJOu','1636422fGNTQN','cache','lastUpdated'];a125_0x36c8=function(){return _0x10f545;};return a125_0x36c8();}export function getGuidesSummary(_0x576213){const _0x2855ac=a125_0x5f8407;return Object[_0x2855ac(0x108)](_0x576213['guides'])[_0x2855ac(0x107)](([_0x41dde0,_0x113fa0])=>({'key':_0x41dde0,'title':_0x113fa0['title'],'path':_0x113fa0[_0x2855ac(0x10f)]}));}
1
+ const a129_0x4d2497=a129_0x8c86;function a129_0x8c86(_0x450804,_0x3a45d0){_0x450804=_0x450804-0xbe;const _0x271fb4=a129_0x271f();let _0x8c86e1=_0x271fb4[_0x450804];return _0x8c86e1;}(function(_0x4950cc,_0x35f0ba){const _0x3604fa=a129_0x8c86,_0x1f14a9=_0x4950cc();while(!![]){try{const _0x1abe8e=parseInt(_0x3604fa(0xcf))/0x1*(-parseInt(_0x3604fa(0xbe))/0x2)+-parseInt(_0x3604fa(0xdd))/0x3+parseInt(_0x3604fa(0xc8))/0x4*(parseInt(_0x3604fa(0xc6))/0x5)+parseInt(_0x3604fa(0xc7))/0x6+-parseInt(_0x3604fa(0xc2))/0x7+-parseInt(_0x3604fa(0xd3))/0x8*(parseInt(_0x3604fa(0xc0))/0x9)+-parseInt(_0x3604fa(0xd2))/0xa*(-parseInt(_0x3604fa(0xd0))/0xb);if(_0x1abe8e===_0x35f0ba)break;else _0x1f14a9['push'](_0x1f14a9['shift']());}catch(_0x2ac4e6){_0x1f14a9['push'](_0x1f14a9['shift']());}}}(a129_0x271f,0xcd7e8));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a129_0x271f(){const _0x15dfed=['5031ALCBqG','\x0a\x0a>更新时间:','5984195MzfMIQ','entries','statusText','CDN\x20数据中缺少\x20skillTemplate','36535YnyzrP','2186430fQREuW','904AyFxUT','keys','push','.lovrabet/skill/guides','application/json','utf-8','guides','19xnCtDH','11YkbmGO','title','27024610XNjzKZ','4376fsQdXA','trimEnd','.md','lastUpdated','status','map','cache','skillTemplate','replace','content','3788925yxFeBd','object','extendContent','CDN\x20返回数据格式错误','152938kmUfgS','CDN\x20请求失败:\x20'];a129_0x271f=function(){return _0x15dfed;};return a129_0x271f();}import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x36237b=getTemplateBaseUrl();return _0x36237b+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a129_0x4d2497(0xd9));export async function fetchGuidesFromCDN(){const _0x4b5497=a129_0x4d2497,_0x581e72=getGuidesCdnUrl(),_0x5ab532=await fetch(_0x581e72,{'headers':{'Accept':_0x4b5497(0xcc)}});if(!_0x5ab532['ok'])throw new Error(_0x4b5497(0xbf)+_0x5ab532[_0x4b5497(0xd7)]+'\x20'+_0x5ab532[_0x4b5497(0xc4)]);const _0x28dfbc=await _0x5ab532['json']();if(!_0x28dfbc[_0x4b5497(0xce)]||typeof _0x28dfbc[_0x4b5497(0xce)]!==_0x4b5497(0xde))throw new Error(_0x4b5497(0xe0));return _0x28dfbc;}export function writeGuidesToProject(_0x9b1fc2,_0x262567,_0x2092aa=a129_0x4d2497(0xcb),_0x286f8d){const _0x4b6071=a129_0x4d2497,_0x24453d=join(_0x262567,_0x2092aa);mkdirSync(_0x24453d,{'recursive':!![]});for(const [_0xd8b48d,_0x490018]of Object[_0x4b6071(0xc3)](_0x9b1fc2[_0x4b6071(0xce)])){let _0x11177a=_0x490018['content'];_0x490018['lastUpdated']&&(_0x11177a=appendUpdateTime(_0x11177a,_0x490018[_0x4b6071(0xd6)])),writeFileSync(join(_0x24453d,_0xd8b48d+_0x4b6071(0xd5)),_0x11177a,_0x4b6071(0xcd));}}export function appendUpdateTime(_0x4b2c5b,_0x143ba1){const _0x2a4c4a=a129_0x4d2497;return _0x4b2c5b=_0x4b2c5b[_0x2a4c4a(0xdb)](/\n*>更新时间:.*$/m,''),_0x4b2c5b['trimEnd']()+(_0x2a4c4a(0xc1)+_0x143ba1);}export function getSkillTemplate(_0x41bc4d){const _0x30a262=a129_0x4d2497;return _0x41bc4d[_0x30a262(0xda)]?.[_0x30a262(0xdc)]||'';}export function appendExtendContents(_0x254a50,_0x50de16,_0x19f12b){const _0x57795c=a129_0x4d2497,_0x295f6d=[];for(const [,_0x530159]of Object[_0x57795c(0xc3)](_0x50de16['guides'])){_0x530159[_0x57795c(0xdf)]&&_0x295f6d[_0x57795c(0xca)](_0x530159[_0x57795c(0xdf)][_0x57795c(0xd4)]());}if(_0x295f6d['length']===0x0)return _0x254a50;return _0x254a50['trimEnd']()+'\x0a\x0a'+_0x295f6d['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x55d088,_0x33e4e1,_0x3e537d){const _0x48dca3=a129_0x4d2497,_0x3433f7=getSkillTemplate(_0x55d088);if(!_0x3433f7)throw new Error(_0x48dca3(0xc5));const _0x3d2f4e=dirname(_0x33e4e1);mkdirSync(_0x3d2f4e,{'recursive':!![]});let _0xd34677=_0x3433f7[_0x48dca3(0xdb)](/\{\{IDE_NAME\}\}/g,_0x3e537d);_0xd34677=appendExtendContents(_0xd34677,_0x55d088),_0x55d088[_0x48dca3(0xda)]['lastUpdated']&&(_0xd34677=appendUpdateTime(_0xd34677,_0x55d088[_0x48dca3(0xda)][_0x48dca3(0xd6)])),writeFileSync(_0x33e4e1,_0xd34677,_0x48dca3(0xcd));}export async function installGuides(_0x4baa15){const _0x405b61=a129_0x4d2497,_0x3e7fab=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3e7fab,_0x4baa15),Object[_0x405b61(0xc9)](_0x3e7fab[_0x405b61(0xce)])['length'];}export function getGuidesSummary(_0x544685){const _0x3b24ad=a129_0x4d2497;return Object['entries'](_0x544685[_0x3b24ad(0xce)])[_0x3b24ad(0xd8)](([_0x2f235c,_0x39a67d])=>({'key':_0x2f235c,'title':_0x39a67d[_0x3b24ad(0xd1)],'path':_0x39a67d['path']}));}
@@ -1 +1 @@
1
- (function(_0x1006bd,_0x573f9d){const _0x5efa85=a126_0x654c,_0x320f8e=_0x1006bd();while(!![]){try{const _0x52c881=-parseInt(_0x5efa85(0x147))/0x1+-parseInt(_0x5efa85(0x14e))/0x2+-parseInt(_0x5efa85(0x15b))/0x3+-parseInt(_0x5efa85(0x159))/0x4+parseInt(_0x5efa85(0x153))/0x5+-parseInt(_0x5efa85(0x152))/0x6+-parseInt(_0x5efa85(0x15a))/0x7*(-parseInt(_0x5efa85(0x15d))/0x8);if(_0x52c881===_0x573f9d)break;else _0x320f8e['push'](_0x320f8e['shift']());}catch(_0x53bd5f){_0x320f8e['push'](_0x320f8e['shift']());}}}(a126_0x23a9,0xe9944));export async function httpRequest(_0x2fef9f,_0x19cc7d={}){const _0x1d425a=a126_0x654c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x19cc7d;let _0x894258=null;for(let _0x315aeb=0x0;_0x315aeb<=retries;_0x315aeb++){try{const _0x456ba9=new AbortController(),_0x48d8b5=setTimeout(()=>_0x456ba9['abort'](),timeout),_0x288836=await fetch(_0x2fef9f,{'headers':headers,'signal':_0x456ba9[_0x1d425a(0x150)]});clearTimeout(_0x48d8b5);let _0xf7bab;const _0x4e0668=_0x288836[_0x1d425a(0x143)][_0x1d425a(0x157)](_0x1d425a(0x15e));return _0x4e0668?.[_0x1d425a(0x146)](_0x1d425a(0x155))?_0xf7bab=await _0x288836[_0x1d425a(0x14a)]():_0xf7bab=await _0x288836['text'](),{'ok':_0x288836['ok'],'status':_0x288836[_0x1d425a(0x158)],'statusText':_0x288836[_0x1d425a(0x14c)],'data':_0xf7bab,'headers':_0x288836[_0x1d425a(0x143)],'url':_0x288836[_0x1d425a(0x148)],'text':()=>_0x288836[_0x1d425a(0x149)]()};}catch(_0x38497e){_0x894258=_0x38497e instanceof Error?_0x38497e:new Error(String(_0x38497e));if(_0x315aeb===retries)break;if(shouldRetry(_0x38497e)){console[_0x1d425a(0x14f)](_0x1d425a(0x15c)+retryDelay+_0x1d425a(0x156)+(_0x315aeb+0x1)+_0x1d425a(0x14d)),await sleep(retryDelay);continue;}else break;}}throw _0x894258||new Error('Request\x20failed');}function a126_0x23a9(){const _0x408582=['1820370SNJPjR','message','application/json','ms\x20后进行第\x20','get','status','7156900xTIfDK','35WjSKCY','371220UhkoEa','*\x20请求失败,','9864632FDDPaR','content-type','name','headers','TypeError','ENOTFOUND','includes','517783oOJZFT','url','text','json','fetch','statusText','\x20次重试...','3103652zVoKRI','log','signal','AbortError','9540930gHgMPs'];a126_0x23a9=function(){return _0x408582;};return a126_0x23a9();}function shouldRetry(_0x4e0251){const _0x52833d=a126_0x654c;if(_0x4e0251 instanceof Error){if(_0x4e0251[_0x52833d(0x15f)]===_0x52833d(0x151))return![];if(_0x4e0251[_0x52833d(0x15f)]===_0x52833d(0x144)&&_0x4e0251[_0x52833d(0x154)][_0x52833d(0x146)](_0x52833d(0x14b)))return!![];if(_0x4e0251[_0x52833d(0x154)][_0x52833d(0x146)]('ECONNRESET'))return!![];if(_0x4e0251[_0x52833d(0x154)][_0x52833d(0x146)](_0x52833d(0x145)))return![];}return![];}function a126_0x654c(_0xc8b5c,_0x292b1a){_0xc8b5c=_0xc8b5c-0x143;const _0x23a9a8=a126_0x23a9();let _0x654c7f=_0x23a9a8[_0xc8b5c];return _0x654c7f;}function sleep(_0x35c62c){return new Promise(_0x5c945b=>setTimeout(_0x5c945b,_0x35c62c));}export function validateUrl(_0x56eeb9){try{return new URL(_0x56eeb9),!![];}catch{return![];}}
1
+ (function(_0x20b8b7,_0x2f0dee){const _0x175463=a130_0x2239,_0x5f2dae=_0x20b8b7();while(!![]){try{const _0xc38fbe=parseInt(_0x175463(0x128))/0x1+parseInt(_0x175463(0x127))/0x2*(parseInt(_0x175463(0x126))/0x3)+-parseInt(_0x175463(0x117))/0x4+parseInt(_0x175463(0x12c))/0x5*(parseInt(_0x175463(0x120))/0x6)+parseInt(_0x175463(0x129))/0x7*(-parseInt(_0x175463(0x12d))/0x8)+parseInt(_0x175463(0x11c))/0x9*(parseInt(_0x175463(0x118))/0xa)+-parseInt(_0x175463(0x12f))/0xb*(-parseInt(_0x175463(0x130))/0xc);if(_0xc38fbe===_0x2f0dee)break;else _0x5f2dae['push'](_0x5f2dae['shift']());}catch(_0x1aaf94){_0x5f2dae['push'](_0x5f2dae['shift']());}}}(a130_0x196f,0x49f5a));function a130_0x2239(_0xe06f9c,_0x373438){_0xe06f9c=_0xe06f9c-0x115;const _0x196ff7=a130_0x196f();let _0x22390d=_0x196ff7[_0xe06f9c];return _0x22390d;}export async function httpRequest(_0x26b9b8,_0x3926ed={}){const _0x3bb6d4=a130_0x2239,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3926ed;let _0x636445=null;for(let _0x21f2ce=0x0;_0x21f2ce<=retries;_0x21f2ce++){try{const _0x4491e0=new AbortController(),_0x447339=setTimeout(()=>_0x4491e0[_0x3bb6d4(0x133)](),timeout),_0x5b0d5f=await fetch(_0x26b9b8,{'headers':headers,'signal':_0x4491e0[_0x3bb6d4(0x131)]});clearTimeout(_0x447339);let _0x530056;const _0x1d0224=_0x5b0d5f[_0x3bb6d4(0x119)]['get'](_0x3bb6d4(0x121));return _0x1d0224?.[_0x3bb6d4(0x11d)](_0x3bb6d4(0x11b))?_0x530056=await _0x5b0d5f[_0x3bb6d4(0x122)]():_0x530056=await _0x5b0d5f[_0x3bb6d4(0x12b)](),{'ok':_0x5b0d5f['ok'],'status':_0x5b0d5f[_0x3bb6d4(0x124)],'statusText':_0x5b0d5f['statusText'],'data':_0x530056,'headers':_0x5b0d5f['headers'],'url':_0x5b0d5f[_0x3bb6d4(0x11a)],'text':()=>_0x5b0d5f[_0x3bb6d4(0x12b)]()};}catch(_0x184dcb){_0x636445=_0x184dcb instanceof Error?_0x184dcb:new Error(String(_0x184dcb));if(_0x21f2ce===retries)break;if(shouldRetry(_0x184dcb)){console[_0x3bb6d4(0x132)](_0x3bb6d4(0x123)+retryDelay+'ms\x20后进行第\x20'+(_0x21f2ce+0x1)+_0x3bb6d4(0x12e)),await sleep(retryDelay);continue;}else break;}}throw _0x636445||new Error(_0x3bb6d4(0x116));}function shouldRetry(_0x464826){const _0x1fae1a=a130_0x2239;if(_0x464826 instanceof Error){if(_0x464826[_0x1fae1a(0x115)]===_0x1fae1a(0x11e))return![];if(_0x464826[_0x1fae1a(0x115)]==='TypeError'&&_0x464826[_0x1fae1a(0x12a)]['includes']('fetch'))return!![];if(_0x464826[_0x1fae1a(0x12a)][_0x1fae1a(0x11d)](_0x1fae1a(0x125)))return!![];if(_0x464826[_0x1fae1a(0x12a)][_0x1fae1a(0x11d)](_0x1fae1a(0x11f)))return![];}return![];}function a130_0x196f(){const _0x50cc95=['1158hkyQnp','content-type','json','*\x20请求失败,','status','ECONNRESET','93909eecfYC','4emvMaJ','219730AneDDY','1414Ovleoo','message','text','14290itmJOK','14312rKGlMA','\x20次重试...','286451GSKZhA','72txQBcI','signal','log','abort','name','Request\x20failed','2145048qMwUhe','10TksgiG','headers','url','application/json','1893618GVKgyw','includes','AbortError','ENOTFOUND'];a130_0x196f=function(){return _0x50cc95;};return a130_0x196f();}function sleep(_0x3e4e8e){return new Promise(_0x2546b6=>setTimeout(_0x2546b6,_0x3e4e8e));}export function validateUrl(_0x29a058){try{return new URL(_0x29a058),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x9a2df4,_0x560548){const _0x4934f9=a127_0xc47d,_0x3bd283=_0x9a2df4();while(!![]){try{const _0x226019=parseInt(_0x4934f9(0x1a5))/0x1*(parseInt(_0x4934f9(0x1a3))/0x2)+parseInt(_0x4934f9(0x1a1))/0x3+-parseInt(_0x4934f9(0x19f))/0x4+-parseInt(_0x4934f9(0x1a4))/0x5+-parseInt(_0x4934f9(0x1aa))/0x6*(parseInt(_0x4934f9(0x1af))/0x7)+parseInt(_0x4934f9(0x1a2))/0x8*(-parseInt(_0x4934f9(0x1a8))/0x9)+-parseInt(_0x4934f9(0x1ad))/0xa*(-parseInt(_0x4934f9(0x1a6))/0xb);if(_0x226019===_0x560548)break;else _0x3bd283['push'](_0x3bd283['shift']());}catch(_0x51d7e9){_0x3bd283['push'](_0x3bd283['shift']());}}}(a127_0x5414,0x51319));function a127_0xc47d(_0x5e63c0,_0x231ceb){_0x5e63c0=_0x5e63c0-0x19f;const _0x5414df=a127_0x5414();let _0xc47d92=_0x5414df[_0x5e63c0];return _0xc47d92;}function env(_0x12ce88){return process.env[`RABETBASE_${_0x12ce88}`]||process.env[`LOVRABET_${_0x12ce88}`]||undefined;}function a127_0x5414(){const _0xca7b31=['94fXWxOY','2737025nfiLUw','3369STGLnX','8729875heBlcS','stdout','81nHmxdm','stdin','6RKnZcN','nonInteractive','true','20WqdeMZ','setRawMode','1001749NbcdzA','isRaw','2096756xFNYCs','isTTY','488028ejDXct','320888vXfSXQ'];a127_0x5414=function(){return _0xca7b31;};return a127_0x5414();}export function isNonInteractive(_0x51cedb){const _0x11e827=a127_0xc47d;return!!(_0x51cedb[_0x11e827(0x1ab)]||_0x51cedb['ci']||env('CI')===_0x11e827(0x1ac)||process.env.CI==='true'||!process[_0x11e827(0x1a7)][_0x11e827(0x1a0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x126bd9=a127_0xc47d;if(!process[_0x126bd9(0x1a9)][_0x126bd9(0x1a0)])return![];try{const _0x30153c=process[_0x126bd9(0x1a9)][_0x126bd9(0x1b0)];return process[_0x126bd9(0x1a9)][_0x126bd9(0x1ae)](!![]),process[_0x126bd9(0x1a9)]['setRawMode'](_0x30153c??![]),!![];}catch{return![];}}
1
+ (function(_0x567184,_0x31416b){const _0x12afef=a131_0x5d53,_0x2abd08=_0x567184();while(!![]){try{const _0x261b88=parseInt(_0x12afef(0x115))/0x1*(-parseInt(_0x12afef(0x114))/0x2)+-parseInt(_0x12afef(0x109))/0x3*(-parseInt(_0x12afef(0x10d))/0x4)+parseInt(_0x12afef(0x10b))/0x5+parseInt(_0x12afef(0x10c))/0x6*(-parseInt(_0x12afef(0x116))/0x7)+-parseInt(_0x12afef(0x10a))/0x8*(-parseInt(_0x12afef(0x110))/0x9)+parseInt(_0x12afef(0x112))/0xa*(parseInt(_0x12afef(0x10f))/0xb)+-parseInt(_0x12afef(0x113))/0xc;if(_0x261b88===_0x31416b)break;else _0x2abd08['push'](_0x2abd08['shift']());}catch(_0x48c1f6){_0x2abd08['push'](_0x2abd08['shift']());}}}(a131_0x3940,0x6d280));function env(_0x2a140e){return process.env[`RABETBASE_${_0x2a140e}`]||process.env[`LOVRABET_${_0x2a140e}`]||undefined;}export function isNonInteractive(_0x4613e9){const _0x21efc9=a131_0x5d53;return!!(_0x4613e9[_0x21efc9(0x117)]||_0x4613e9['ci']||env('CI')===_0x21efc9(0x108)||process.env.CI===_0x21efc9(0x108)||!process['stdout'][_0x21efc9(0x111)]||!isStdinRawModeSupported());}function a131_0x3940(){const _0x1156a6=['isTTY','2070pUAsud','11670576wUodoz','2uSWLsL','211719gSTqCm','397726RzEmRk','nonInteractive','true','3iNxOYL','34568YZUMjV','2515495tkziyo','42AWpfAz','2054016aljRnS','stdin','15917pktXWu','1485xQnMZr'];a131_0x3940=function(){return _0x1156a6;};return a131_0x3940();}function a131_0x5d53(_0x36e7a4,_0x5d3f8a){_0x36e7a4=_0x36e7a4-0x108;const _0x3940cc=a131_0x3940();let _0x5d5351=_0x3940cc[_0x36e7a4];return _0x5d5351;}function isStdinRawModeSupported(){const _0x1fc8ae=a131_0x5d53;if(!process[_0x1fc8ae(0x10e)][_0x1fc8ae(0x111)])return![];try{const _0x28df0a=process[_0x1fc8ae(0x10e)]['isRaw'];return process[_0x1fc8ae(0x10e)]['setRawMode'](!![]),process[_0x1fc8ae(0x10e)]['setRawMode'](_0x28df0a??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a128_0x40c987=a128_0x48a6;(function(_0x12ffea,_0x26a007){const _0x3f514e=a128_0x48a6,_0x3b9867=_0x12ffea();while(!![]){try{const _0x42b730=parseInt(_0x3f514e(0x9a))/0x1+parseInt(_0x3f514e(0xb6))/0x2+parseInt(_0x3f514e(0xad))/0x3+-parseInt(_0x3f514e(0xb3))/0x4+parseInt(_0x3f514e(0xb1))/0x5*(parseInt(_0x3f514e(0x95))/0x6)+-parseInt(_0x3f514e(0xbb))/0x7*(-parseInt(_0x3f514e(0xa4))/0x8)+-parseInt(_0x3f514e(0xac))/0x9;if(_0x42b730===_0x26a007)break;else _0x3b9867['push'](_0x3b9867['shift']());}catch(_0xf1ff80){_0x3b9867['push'](_0x3b9867['shift']());}}}(a128_0x2b20,0x74003));import a128_0x542c10 from'winston';import a128_0x781118 from'node:fs';import a128_0x1c397e from'node:path';function a128_0x2b20(){const _0x41e7ef=['errors','1310456XCRnHP','combine','clearLogs','605124cuHRnf','printf','warn','setLogPath','message','7lrdDDV','existsSync','winstonLogger','filter','timestamp','info','blue','Failed\x20to\x20read\x20logs:','toISOString','red','success','currentRawCommand','204xbmGIA','initWinstonLogger','level','完成:\x20','transports','816091HFtdRK','format','dirname','addColors','logFilePath','error','utf8','logTask','trim','green','2990424cMvSxX','Failed\x20to\x20clear\x20logs:','yellow','stringify','clear','writeFileSync','command','createLogger','14012901EnZDqq','368058jacfZX','parse','rawCommand','now','109500CzePLX'];a128_0x2b20=function(){return _0x41e7ef;};return a128_0x2b20();}class Logger{[a128_0x40c987(0xbd)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x211587){this['currentRawCommand']=_0x211587;}['initWinstonLogger'](){const _0x4e9f98=a128_0x40c987,_0x1c3851=a128_0x1c397e[_0x4e9f98(0x9c)](this[_0x4e9f98(0x9e)]);!a128_0x781118['existsSync'](_0x1c3851)&&a128_0x781118['mkdirSync'](_0x1c3851,{'recursive':!![]});const _0x40c632=a128_0x542c10[_0x4e9f98(0x9b)][_0x4e9f98(0xb4)](a128_0x542c10['format'][_0x4e9f98(0x8d)](),a128_0x542c10[_0x4e9f98(0x9b)][_0x4e9f98(0xb2)]({'stack':!![]}),a128_0x542c10[_0x4e9f98(0x9b)][_0x4e9f98(0xb7)](_0x49098e=>{const _0x23972b=_0x4e9f98,_0x3031db={'timestamp':_0x49098e[_0x23972b(0x8d)]||new Date()[_0x23972b(0x91)](),'level':_0x49098e[_0x23972b(0x97)]||_0x23972b(0x8e),'command':_0x49098e[_0x23972b(0xaa)]||'unknown','rawCommand':_0x49098e[_0x23972b(0xaf)]||this[_0x23972b(0x94)]||undefined,'message':_0x49098e[_0x23972b(0xba)]||'','duration':_0x49098e['duration']||undefined,'details':_0x49098e['details']||undefined};return JSON[_0x23972b(0xa7)](_0x3031db);}));this[_0x4e9f98(0xbd)]=a128_0x542c10[_0x4e9f98(0xab)]({'level':_0x4e9f98(0x8e),'format':_0x40c632,'transports':[new a128_0x542c10[(_0x4e9f98(0x99))]['File']({'filename':this[_0x4e9f98(0x9e)],'level':_0x4e9f98(0x8e)})],'silent':![]}),a128_0x542c10[_0x4e9f98(0x9d)]({'success':_0x4e9f98(0xa3),'error':_0x4e9f98(0x92),'warn':_0x4e9f98(0xa6),'info':_0x4e9f98(0x8f)});}[a128_0x40c987(0xb9)](_0x2ae8f4){const _0x5107fd=a128_0x40c987;this[_0x5107fd(0x9e)]=a128_0x1c397e['join'](_0x2ae8f4,'.lovrabet.log'),this[_0x5107fd(0xbd)]&&this[_0x5107fd(0xbd)][_0x5107fd(0xa8)](),this[_0x5107fd(0x96)]();}[a128_0x40c987(0x8e)](_0x357b6e,_0x3b4590,_0x3ddb59){const _0x10ba73=a128_0x40c987;if(!this['logFilePath']||!this[_0x10ba73(0xbd)])return;this[_0x10ba73(0xbd)]['info'](_0x3b4590,{'command':_0x357b6e,'details':_0x3ddb59});}[a128_0x40c987(0x93)](_0x5c2250,_0xd3e503,_0x4e70fb,_0xb53820){const _0x4aa22b=a128_0x40c987;if(!this[_0x4aa22b(0x9e)]||!this[_0x4aa22b(0xbd)])return;this[_0x4aa22b(0xbd)]['log'](_0x4aa22b(0x8e),_0xd3e503,{'level':'success','command':_0x5c2250,'duration':_0x4e70fb,'details':_0xb53820});}['error'](_0x5817dc,_0x28aa91,_0x2960da){const _0x1590a4=a128_0x40c987;if(!this[_0x1590a4(0x9e)]||!this[_0x1590a4(0xbd)])return;this['winstonLogger']['error'](_0x28aa91,{'command':_0x5817dc,'details':_0x2960da});}[a128_0x40c987(0xb8)](_0x265509,_0x324017,_0x2a0d6d){const _0x433421=a128_0x40c987;if(!this[_0x433421(0x9e)]||!this['winstonLogger'])return;this[_0x433421(0xbd)][_0x433421(0xb8)](_0x324017,{'command':_0x265509,'details':_0x2a0d6d});}async[a128_0x40c987(0xa1)](_0x247c48,_0x2e4435,_0x36d0b4){const _0x20ddc8=a128_0x40c987,_0x15653b=Date[_0x20ddc8(0xb0)]();this[_0x20ddc8(0x8e)](_0x247c48,'开始执行:\x20'+_0x2e4435);try{const _0x3c9d54=await _0x36d0b4(),_0x2ea450=Date['now']()-_0x15653b;return this[_0x20ddc8(0x93)](_0x247c48,_0x20ddc8(0x98)+_0x2e4435,_0x2ea450),_0x3c9d54;}catch(_0x10755e){const _0x386b64=Date['now']()-_0x15653b;this[_0x20ddc8(0x9f)](_0x247c48,'失败:\x20'+_0x2e4435,{'error':_0x10755e instanceof Error?_0x10755e['message']:String(_0x10755e),'duration':_0x386b64});throw _0x10755e;}}['readLogs'](){const _0x1b82ac=a128_0x40c987;try{if(!a128_0x781118[_0x1b82ac(0xbc)](this['logFilePath']))return[];const _0x47b7e8=a128_0x781118['readFileSync'](this[_0x1b82ac(0x9e)],_0x1b82ac(0xa0));return _0x47b7e8['split']('\x0a')[_0x1b82ac(0xbe)](_0x4e1d1c=>_0x4e1d1c[_0x1b82ac(0xa2)]())['map'](_0x564d62=>JSON[_0x1b82ac(0xae)](_0x564d62));}catch(_0x2add6f){return console[_0x1b82ac(0xb8)](_0x1b82ac(0x90),_0x2add6f),[];}}[a128_0x40c987(0xb5)](){const _0x3aa6c0=a128_0x40c987;try{a128_0x781118[_0x3aa6c0(0xbc)](this[_0x3aa6c0(0x9e)])&&a128_0x781118[_0x3aa6c0(0xa9)](this[_0x3aa6c0(0x9e)],'',_0x3aa6c0(0xa0));}catch(_0x32e1b5){console[_0x3aa6c0(0xb8)](_0x3aa6c0(0xa5),_0x32e1b5);}}['getWinstonInstance'](){const _0x50a47e=a128_0x40c987;return this[_0x50a47e(0xbd)];}}function a128_0x48a6(_0x8a03,_0x55181f){_0x8a03=_0x8a03-0x8d;const _0x2b2018=a128_0x2b20();let _0x48a646=_0x2b2018[_0x8a03];return _0x48a646;}export const logger=new Logger();
1
+ function a132_0x5e7e(_0x4b9a11,_0x3276ef){_0x4b9a11=_0x4b9a11-0xd6;const _0xb390a3=a132_0xb390();let _0x5e7e0d=_0xb390a3[_0x4b9a11];return _0x5e7e0d;}const a132_0x19ea64=a132_0x5e7e;function a132_0xb390(){const _0x3e5d35=['3440073IhSzGa','2KJINxM','2556jOSwCr','yellow','map','6762742SzMFAK','error','setRawCommand','失败:\x20','existsSync','initWinstonLogger','logFilePath','readFileSync','message','writeFileSync','readLogs','stringify','clear','Failed\x20to\x20read\x20logs:','createLogger','success','6QKotUr','filter','printf','now','38690BDPkNI','mkdirSync','errors','dirname','logTask','combine','format','Failed\x20to\x20clear\x20logs:','21478140fjacBa','join','currentRawCommand','329934GxNjue','124CLMSDJ','开始执行:\x20','info','clearLogs','details','warn','完成:\x20','green','trim','File','734535InpPnE','blue','rawCommand','40PgEsLl','level','log','winstonLogger','toISOString','getWinstonInstance','utf8','24992jOIBWR','.lovrabet.log'];a132_0xb390=function(){return _0x3e5d35;};return a132_0xb390();}(function(_0x341a8d,_0x20ad57){const _0x4f090c=a132_0x5e7e,_0x1e1f84=_0x341a8d();while(!![]){try{const _0x135acb=-parseInt(_0x4f090c(0xed))/0x1+-parseInt(_0x4f090c(0xfa))/0x2*(-parseInt(_0x4f090c(0xf9))/0x3)+parseInt(_0x4f090c(0xe3))/0x4*(parseInt(_0x4f090c(0xd7))/0x5)+-parseInt(_0x4f090c(0x10e))/0x6*(parseInt(_0x4f090c(0xfe))/0x7)+parseInt(_0x4f090c(0xf7))/0x8*(-parseInt(_0x4f090c(0xfb))/0x9)+parseInt(_0x4f090c(0xf0))/0xa*(parseInt(_0x4f090c(0xe2))/0xb)+parseInt(_0x4f090c(0xdf))/0xc;if(_0x135acb===_0x20ad57)break;else _0x1e1f84['push'](_0x1e1f84['shift']());}catch(_0x5b9de4){_0x1e1f84['push'](_0x1e1f84['shift']());}}}(a132_0xb390,0xacfb5));import a132_0x1d4933 from'winston';import a132_0x1ac914 from'node:fs';import a132_0x406fcd from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a132_0x19ea64(0x100)](_0x4cf8ba){const _0x30abbf=a132_0x19ea64;this[_0x30abbf(0xe1)]=_0x4cf8ba;}['initWinstonLogger'](){const _0x3754bf=a132_0x19ea64,_0x3d9db3=a132_0x406fcd[_0x3754bf(0xda)](this['logFilePath']);!a132_0x1ac914[_0x3754bf(0x102)](_0x3d9db3)&&a132_0x1ac914[_0x3754bf(0xd8)](_0x3d9db3,{'recursive':!![]});const _0x3d81f7=a132_0x1d4933[_0x3754bf(0xdd)][_0x3754bf(0xdc)](a132_0x1d4933[_0x3754bf(0xdd)]['timestamp'](),a132_0x1d4933['format'][_0x3754bf(0xd9)]({'stack':!![]}),a132_0x1d4933[_0x3754bf(0xdd)][_0x3754bf(0x110)](_0x185232=>{const _0x4e6216=_0x3754bf,_0x155a75={'timestamp':_0x185232['timestamp']||new Date()[_0x4e6216(0xf4)](),'level':_0x185232[_0x4e6216(0xf1)]||_0x4e6216(0xe5),'command':_0x185232['command']||'unknown','rawCommand':_0x185232[_0x4e6216(0xef)]||this[_0x4e6216(0xe1)]||undefined,'message':_0x185232[_0x4e6216(0x106)]||'','duration':_0x185232['duration']||undefined,'details':_0x185232[_0x4e6216(0xe7)]||undefined};return JSON[_0x4e6216(0x109)](_0x155a75);}));this[_0x3754bf(0xf3)]=a132_0x1d4933[_0x3754bf(0x10c)]({'level':_0x3754bf(0xe5),'format':_0x3d81f7,'transports':[new a132_0x1d4933['transports'][(_0x3754bf(0xec))]({'filename':this[_0x3754bf(0x104)],'level':_0x3754bf(0xe5)})],'silent':![]}),a132_0x1d4933['addColors']({'success':_0x3754bf(0xea),'error':'red','warn':_0x3754bf(0xfc),'info':_0x3754bf(0xee)});}['setLogPath'](_0x5484e0){const _0x469da3=a132_0x19ea64;this[_0x469da3(0x104)]=a132_0x406fcd[_0x469da3(0xe0)](_0x5484e0,_0x469da3(0xf8)),this[_0x469da3(0xf3)]&&this['winstonLogger'][_0x469da3(0x10a)](),this[_0x469da3(0x103)]();}[a132_0x19ea64(0xe5)](_0xed2026,_0x4b6f6d,_0x3a7e54){const _0x5bbc30=a132_0x19ea64;if(!this[_0x5bbc30(0x104)]||!this[_0x5bbc30(0xf3)])return;this[_0x5bbc30(0xf3)][_0x5bbc30(0xe5)](_0x4b6f6d,{'command':_0xed2026,'details':_0x3a7e54});}['success'](_0x14319e,_0x3bf097,_0x41aa4b,_0x5de62d){const _0x25a13f=a132_0x19ea64;if(!this[_0x25a13f(0x104)]||!this[_0x25a13f(0xf3)])return;this[_0x25a13f(0xf3)][_0x25a13f(0xf2)](_0x25a13f(0xe5),_0x3bf097,{'level':_0x25a13f(0x10d),'command':_0x14319e,'duration':_0x41aa4b,'details':_0x5de62d});}[a132_0x19ea64(0xff)](_0x4bb316,_0x5cd36b,_0x13f812){const _0x528e51=a132_0x19ea64;if(!this[_0x528e51(0x104)]||!this[_0x528e51(0xf3)])return;this[_0x528e51(0xf3)][_0x528e51(0xff)](_0x5cd36b,{'command':_0x4bb316,'details':_0x13f812});}[a132_0x19ea64(0xe8)](_0x110e95,_0x3d969d,_0x15b047){const _0x272a33=a132_0x19ea64;if(!this[_0x272a33(0x104)]||!this[_0x272a33(0xf3)])return;this['winstonLogger'][_0x272a33(0xe8)](_0x3d969d,{'command':_0x110e95,'details':_0x15b047});}async[a132_0x19ea64(0xdb)](_0x1b55c2,_0x65fc18,_0x154969){const _0x22bcc9=a132_0x19ea64,_0x1efd88=Date[_0x22bcc9(0xd6)]();this['info'](_0x1b55c2,_0x22bcc9(0xe4)+_0x65fc18);try{const _0x3683ee=await _0x154969(),_0x4daec6=Date['now']()-_0x1efd88;return this[_0x22bcc9(0x10d)](_0x1b55c2,_0x22bcc9(0xe9)+_0x65fc18,_0x4daec6),_0x3683ee;}catch(_0x964ee2){const _0x556ce9=Date[_0x22bcc9(0xd6)]()-_0x1efd88;this[_0x22bcc9(0xff)](_0x1b55c2,_0x22bcc9(0x101)+_0x65fc18,{'error':_0x964ee2 instanceof Error?_0x964ee2['message']:String(_0x964ee2),'duration':_0x556ce9});throw _0x964ee2;}}[a132_0x19ea64(0x108)](){const _0x231d09=a132_0x19ea64;try{if(!a132_0x1ac914[_0x231d09(0x102)](this['logFilePath']))return[];const _0x2ffaf5=a132_0x1ac914[_0x231d09(0x105)](this[_0x231d09(0x104)],_0x231d09(0xf6));return _0x2ffaf5['split']('\x0a')[_0x231d09(0x10f)](_0x4468bc=>_0x4468bc[_0x231d09(0xeb)]())[_0x231d09(0xfd)](_0x3382fd=>JSON['parse'](_0x3382fd));}catch(_0x4e1094){return console[_0x231d09(0xe8)](_0x231d09(0x10b),_0x4e1094),[];}}[a132_0x19ea64(0xe6)](){const _0x2def7b=a132_0x19ea64;try{a132_0x1ac914['existsSync'](this[_0x2def7b(0x104)])&&a132_0x1ac914[_0x2def7b(0x107)](this[_0x2def7b(0x104)],'',_0x2def7b(0xf6));}catch(_0x75b091){console['warn'](_0x2def7b(0xde),_0x75b091);}}[a132_0x19ea64(0xf5)](){const _0x3b50d1=a132_0x19ea64;return this[_0x3b50d1(0xf3)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a129_0x120c85=a129_0x2ef2;function a129_0x2ef2(_0xf07c92,_0x35f673){_0xf07c92=_0xf07c92-0x1b3;const _0x398545=a129_0x3985();let _0x2ef2cb=_0x398545[_0xf07c92];return _0x2ef2cb;}(function(_0x211449,_0x3b9f2c){const _0x5a4cb1=a129_0x2ef2,_0x90abf6=_0x211449();while(!![]){try{const _0x212305=parseInt(_0x5a4cb1(0x1b3))/0x1*(-parseInt(_0x5a4cb1(0x1b4))/0x2)+-parseInt(_0x5a4cb1(0x1b7))/0x3*(-parseInt(_0x5a4cb1(0x1b8))/0x4)+-parseInt(_0x5a4cb1(0x1b5))/0x5+-parseInt(_0x5a4cb1(0x1ba))/0x6+-parseInt(_0x5a4cb1(0x1b6))/0x7*(-parseInt(_0x5a4cb1(0x1b9))/0x8)+-parseInt(_0x5a4cb1(0x1be))/0x9+parseInt(_0x5a4cb1(0x1bc))/0xa;if(_0x212305===_0x3b9f2c)break;else _0x90abf6['push'](_0x90abf6['shift']());}catch(_0x29b51b){_0x90abf6['push'](_0x90abf6['shift']());}}}(a129_0x3985,0x851fb));export const isWindows=process['platform']===a129_0x120c85(0x1bd);export function resolveNpmBin(_0x49dcb9){const _0x381add=a129_0x120c85;return isWindows?_0x49dcb9+_0x381add(0x1bb):_0x49dcb9;}function a129_0x3985(){const _0x32a8af=['4173UQGNWK','1844qmKQCx','58472BLQjws','2238384nKgiZA','.cmd','19384050asHhqt','win32','6130638XsmLCv','1MRKMsz','1954642ShVzHa','708425nfepUC','133FEefnN'];a129_0x3985=function(){return _0x32a8af;};return a129_0x3985();}
1
+ const a133_0x4268a1=a133_0x3012;(function(_0x2c613f,_0x187278){const _0x9712be=a133_0x3012,_0x1717cc=_0x2c613f();while(!![]){try{const _0x4df3a7=parseInt(_0x9712be(0x1a5))/0x1+-parseInt(_0x9712be(0x19d))/0x2+parseInt(_0x9712be(0x1a0))/0x3+-parseInt(_0x9712be(0x1a6))/0x4*(-parseInt(_0x9712be(0x1a3))/0x5)+-parseInt(_0x9712be(0x1a4))/0x6+-parseInt(_0x9712be(0x19c))/0x7*(parseInt(_0x9712be(0x19f))/0x8)+parseInt(_0x9712be(0x1a1))/0x9;if(_0x4df3a7===_0x187278)break;else _0x1717cc['push'](_0x1717cc['shift']());}catch(_0x2a4318){_0x1717cc['push'](_0x1717cc['shift']());}}}(a133_0x241b,0x7900c));export const isWindows=process[a133_0x4268a1(0x19e)]===a133_0x4268a1(0x19b);function a133_0x3012(_0xf22e52,_0x29fe0c){_0xf22e52=_0xf22e52-0x19b;const _0x241b40=a133_0x241b();let _0x30126e=_0x241b40[_0xf22e52];return _0x30126e;}function a133_0x241b(){const _0x2dfad7=['2243043SfFZMF','9998064JgWSlU','.cmd','5295OQPoDr','4892460kroEsc','638666nMxtoA','380riMOmD','win32','4697KBzsmx','850492KkKsWN','platform','10272wNrmol'];a133_0x241b=function(){return _0x2dfad7;};return a133_0x241b();}export function resolveNpmBin(_0x55fd1f){const _0x2e1adf=a133_0x4268a1;return isWindows?_0x55fd1f+_0x2e1adf(0x1a2):_0x55fd1f;}
@@ -1 +1 @@
1
- function a130_0x1c37(_0x3d8eda,_0x25b848){_0x3d8eda=_0x3d8eda-0x1cc;const _0xe67abf=a130_0xe67a();let _0x1c370b=_0xe67abf[_0x3d8eda];return _0x1c370b;}const a130_0x13d191=a130_0x1c37;(function(_0x3c659f,_0x1cd929){const _0x24f526=a130_0x1c37,_0xdde557=_0x3c659f();while(!![]){try{const _0x552654=parseInt(_0x24f526(0x1e3))/0x1*(parseInt(_0x24f526(0x1d1))/0x2)+parseInt(_0x24f526(0x1d6))/0x3*(parseInt(_0x24f526(0x1d8))/0x4)+-parseInt(_0x24f526(0x1d9))/0x5*(parseInt(_0x24f526(0x1dc))/0x6)+-parseInt(_0x24f526(0x1de))/0x7+-parseInt(_0x24f526(0x1e5))/0x8+parseInt(_0x24f526(0x1cd))/0x9*(-parseInt(_0x24f526(0x1e4))/0xa)+parseInt(_0x24f526(0x1d2))/0xb*(parseInt(_0x24f526(0x1d7))/0xc);if(_0x552654===_0x1cd929)break;else _0xdde557['push'](_0xdde557['shift']());}catch(_0x37a6d3){_0xdde557['push'](_0xdde557['shift']());}}}(a130_0xe67a,0x37dbf));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 _0x4a9a22=a130_0x1c37,_0x194dc4=getTemplateBaseUrl();return _0x194dc4+_0x4a9a22(0x1df);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a130_0x13d191(0x1e0));export async function fetchRulesFromCDN(){const _0x21b6ac=a130_0x13d191,_0x2374e6=getRulesCdnUrl(),_0x57d2f2=await fetch(_0x2374e6,{'headers':{'Accept':_0x21b6ac(0x1cf)}});if(!_0x57d2f2['ok'])throw new Error(_0x21b6ac(0x1ce)+_0x57d2f2[_0x21b6ac(0x1d3)]+'\x20'+_0x57d2f2['statusText']);const _0x48e245=await _0x57d2f2[_0x21b6ac(0x1cc)]();if(!_0x48e245[_0x21b6ac(0x1d0)]||typeof _0x48e245[_0x21b6ac(0x1d0)]!==_0x21b6ac(0x1d5))throw new Error(_0x21b6ac(0x1d4));return _0x48e245;}export async function getRulesContent(){const _0x44cb74=a130_0x13d191;try{const _0x508e0e=await fetchRulesFromCDN();return _0x508e0e[_0x44cb74(0x1d0)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1eec81=a130_0x13d191;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1eec81(0x1e2));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}function a130_0xe67a(){const _0x46150b=['utf-8','16Lfdhmw','2819480HZqlIx','3318712GMKrIe','json','9XiDCqE','CDN\x20请求失败:\x20','application/json','content','54110pFXpRr','4909982HpQtAl','status','CDN\x20返回数据格式错误','string','69DSRylV','24qpIQIt','60444qFReMg','2235505BRDtDu','lastUpdated','agents.md','6FjcUMl','catch','2103290FvIESM','/rules/rules.json','../../templates/rules/lovrabet_rules.mdc.tpl','.cursor/rules'];a130_0xe67a=function(){return _0x46150b;};return a130_0xe67a();}export async function writeRulesFile(_0x464245){const _0xa3064b=a130_0x13d191,_0x4eab5a=await fetchRulesFromCDN()[_0xa3064b(0x1dd)](()=>null);let _0x1bb40a;_0x4eab5a?(_0x1bb40a=_0x4eab5a[_0xa3064b(0x1d0)],_0x4eab5a['lastUpdated']&&(_0x1bb40a=appendUpdateTime(_0x1bb40a,_0x4eab5a[_0xa3064b(0x1da)]))):_0x1bb40a=readLocalTemplate();const _0x607509=dirname(_0x464245);!existsSync(_0x607509)&&mkdirSync(_0x607509,{'recursive':!![]}),writeFileSync(_0x464245,_0x1bb40a,_0xa3064b(0x1e2));}export async function copyRulesToCursor(_0x229cb7){const _0x48f749=a130_0x13d191,_0x5a467d=join(_0x229cb7,_0x48f749(0x1e1)),_0x2ace9d=join(_0x5a467d,'lovrabet_rules.mdc');if(existsSync(_0x2ace9d))return![];return await writeRulesFile(_0x2ace9d),!![];}export async function copyRulesToAgentsMd(_0x4ac75e){const _0x570f89=a130_0x13d191,_0x37c744=join(_0x4ac75e,_0x570f89(0x1db));if(existsSync(_0x37c744))return![];return await writeRulesFile(_0x37c744),!![];}
1
+ const a134_0x5d5204=a134_0x470e;(function(_0x4869eb,_0xe1e6a8){const _0x4dc3c3=a134_0x470e,_0x4d921e=_0x4869eb();while(!![]){try{const _0x49cd7b=parseInt(_0x4dc3c3(0x12c))/0x1+-parseInt(_0x4dc3c3(0x132))/0x2+-parseInt(_0x4dc3c3(0x124))/0x3+parseInt(_0x4dc3c3(0x133))/0x4*(parseInt(_0x4dc3c3(0x136))/0x5)+-parseInt(_0x4dc3c3(0x137))/0x6*(parseInt(_0x4dc3c3(0x12f))/0x7)+parseInt(_0x4dc3c3(0x130))/0x8*(parseInt(_0x4dc3c3(0x126))/0x9)+parseInt(_0x4dc3c3(0x127))/0xa*(parseInt(_0x4dc3c3(0x12e))/0xb);if(_0x49cd7b===_0xe1e6a8)break;else _0x4d921e['push'](_0x4d921e['shift']());}catch(_0x3a549b){_0x4d921e['push'](_0x4d921e['shift']());}}}(a134_0x236e,0x42b5d));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';function a134_0x236e(){const _0x194ef8=['statusText','lastUpdated','string','315517AKXyQW','CDN\x20请求失败:\x20','2783qLHtjE','3997lFmbRp','191320eJejTZ','json','422888MDKvng','4pVyLSr','CDN\x20返回数据格式错误','.cursor/rules','250355jXCwzb','1626Xxwmle','content','358593MQYEih','../../templates/rules/lovrabet_rules.mdc.tpl','117VYRPEb','3260eyFOOZ','utf-8'];a134_0x236e=function(){return _0x194ef8;};return a134_0x236e();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x56bdc5=getTemplateBaseUrl();return _0x56bdc5+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a134_0x5d5204(0x125));export async function fetchRulesFromCDN(){const _0x517c05=a134_0x5d5204,_0x3f61e0=getRulesCdnUrl(),_0x446b85=await fetch(_0x3f61e0,{'headers':{'Accept':'application/json'}});if(!_0x446b85['ok'])throw new Error(_0x517c05(0x12d)+_0x446b85['status']+'\x20'+_0x446b85[_0x517c05(0x129)]);const _0x1531f8=await _0x446b85[_0x517c05(0x131)]();if(!_0x1531f8[_0x517c05(0x138)]||typeof _0x1531f8[_0x517c05(0x138)]!==_0x517c05(0x12b))throw new Error(_0x517c05(0x134));return _0x1531f8;}export async function getRulesContent(){const _0x220432=a134_0x5d5204;try{const _0x5a3f82=await fetchRulesFromCDN();return _0x5a3f82[_0x220432(0x138)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x411feb=a134_0x5d5204;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x411feb(0x128));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3ec2f0){const _0x34abbc=a134_0x5d5204,_0x13ce7d=await fetchRulesFromCDN()['catch'](()=>null);let _0x371821;_0x13ce7d?(_0x371821=_0x13ce7d['content'],_0x13ce7d[_0x34abbc(0x12a)]&&(_0x371821=appendUpdateTime(_0x371821,_0x13ce7d[_0x34abbc(0x12a)]))):_0x371821=readLocalTemplate();const _0x498002=dirname(_0x3ec2f0);!existsSync(_0x498002)&&mkdirSync(_0x498002,{'recursive':!![]}),writeFileSync(_0x3ec2f0,_0x371821,_0x34abbc(0x128));}function a134_0x470e(_0x183475,_0x3afeea){_0x183475=_0x183475-0x124;const _0x236eaa=a134_0x236e();let _0x470e3e=_0x236eaa[_0x183475];return _0x470e3e;}export async function copyRulesToCursor(_0x10de1a){const _0x45a49c=a134_0x5d5204,_0x30e5a0=join(_0x10de1a,_0x45a49c(0x135)),_0x2f770e=join(_0x30e5a0,'lovrabet_rules.mdc');if(existsSync(_0x2f770e))return![];return await writeRulesFile(_0x2f770e),!![];}export async function copyRulesToAgentsMd(_0x1d9ae2){const _0x157b35=join(_0x1d9ae2,'agents.md');if(existsSync(_0x157b35))return![];return await writeRulesFile(_0x157b35),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x30b7b6){return new Promise(_0x257ca6=>setTimeout(_0x257ca6,_0x30b7b6));}
1
+ export function sleep(_0x1b9740){return new Promise(_0x408e03=>setTimeout(_0x408e03,_0x1b9740));}
@@ -1 +1 @@
1
- const a132_0x3d4cf4=a132_0x5c53;(function(_0x2a37b2,_0x495c26){const _0x34e0d4=a132_0x5c53,_0x413e3d=_0x2a37b2();while(!![]){try{const _0x1ae413=-parseInt(_0x34e0d4(0x94))/0x1*(-parseInt(_0x34e0d4(0x68))/0x2)+parseInt(_0x34e0d4(0xa6))/0x3+-parseInt(_0x34e0d4(0x8d))/0x4+parseInt(_0x34e0d4(0x67))/0x5+-parseInt(_0x34e0d4(0x91))/0x6*(-parseInt(_0x34e0d4(0xa1))/0x7)+parseInt(_0x34e0d4(0x90))/0x8*(-parseInt(_0x34e0d4(0x7e))/0x9)+parseInt(_0x34e0d4(0x81))/0xa*(-parseInt(_0x34e0d4(0x86))/0xb);if(_0x1ae413===_0x495c26)break;else _0x413e3d['push'](_0x413e3d['shift']());}catch(_0x31861b){_0x413e3d['push'](_0x413e3d['shift']());}}}(a132_0x1a65,0x56522));import a132_0x545e31 from'node:fs';import a132_0x7bbee5 from'node:path';function a132_0x5c53(_0x3e3b59,_0x26e266){_0x3e3b59=_0x3e3b59-0x66;const _0x1a650c=a132_0x1a65();let _0x5c53c2=_0x1a650c[_0x3e3b59];return _0x5c53c2;}import{logger}from'./logger.js';import{getCliVersion}from'./version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a132_0x3d4cf4(0x95)](_0x141144){const _0x2be606=a132_0x3d4cf4,_0x172242=_0x141144['split']('/')[_0x2be606(0x80)]()||_0x141144;return _0x172242[_0x2be606(0x89)]('-')[_0x2be606(0x84)](_0x573f0f=>_0x573f0f[_0x2be606(0x74)](0x0)[_0x2be606(0x7d)]()+_0x573f0f[_0x2be606(0x88)](0x1)[_0x2be606(0x83)]())[_0x2be606(0x8b)]('');}static['toDisplayTitle'](_0x41031f){const _0x3afd0e=a132_0x3d4cf4,_0x3edb07=_0x41031f['split']('/')['pop']()||_0x41031f;return _0x3edb07[_0x3afd0e(0x89)]('-')['map'](_0x3b74d3=>_0x3b74d3[_0x3afd0e(0x74)](0x0)['toUpperCase']()+_0x3b74d3[_0x3afd0e(0x88)](0x1)[_0x3afd0e(0x83)]())['join']('\x20');}static[a132_0x3d4cf4(0x6f)](_0x20812d,_0x1f3111,_0x548405){const _0x584b3e=a132_0x3d4cf4,_0x194038=this[_0x584b3e(0x95)](_0x1f3111),_0x4d124b=this['toDisplayTitle'](_0x1f3111),_0x267149=new Date(),_0x2e1149=_0x267149[_0x584b3e(0x79)](undefined,{'year':_0x584b3e(0xa7),'month':_0x584b3e(0x8c),'day':_0x584b3e(0x8c),'hour':'2-digit','minute':_0x584b3e(0x8c),'second':'2-digit','hour12':![]})[_0x584b3e(0x70)](/\//g,'-'),_0x2409fe=_0x267149[_0x584b3e(0x66)](undefined,{'year':_0x584b3e(0xa7),'month':'2-digit','day':'2-digit'})[_0x584b3e(0x70)](/\//g,'-'),_0x1ea8ed=_0x267149[_0x584b3e(0x75)](undefined,{'hour12':![]});let _0x2a84e7=_0x20812d[_0x584b3e(0x70)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x194038)[_0x584b3e(0x70)](/\{DisplayTitle\}/g,_0x4d124b)[_0x584b3e(0x70)](/\{PageName\}/g,_0x1f3111)[_0x584b3e(0x70)](/\{TemplateName\}/g,_0x548405)[_0x584b3e(0x70)](/\{CreatedAt\}/g,_0x2e1149)['replace'](/\{CreatedDate\}/g,_0x2409fe)[_0x584b3e(0x70)](/\{CreatedTime\}/g,_0x1ea8ed);return _0x2a84e7;}static[a132_0x3d4cf4(0x69)](_0x19f5b2,_0x50a57c,_0x91e5a6,_0x44238c,_0x57566e,_0xdb6960,_0x5d9762,_0x7b9a44){const _0x278bae=a132_0x3d4cf4,_0x1e2c88=new Date(),_0x7d99ce=_0x1e2c88[_0x278bae(0xa8)](),_0x12348e=_0x91e5a6[_0x278bae(0x84)](_0x78c509=>{const _0x110b1b=_0x278bae,_0x579793=[_0x110b1b(0x7c)+_0x78c509['datasetCode']+'\x22','tableName:\x20\x22'+_0x78c509[_0x110b1b(0x82)]+'\x22',_0x110b1b(0x6d)+_0x78c509[_0x110b1b(0x92)]+'\x22'];return _0x78c509['alias']&&_0x579793[_0x110b1b(0x7f)]('alias:\x20\x22'+_0x78c509[_0x110b1b(0x9c)]+'\x22'),_0x110b1b(0x99)+_0x579793[_0x110b1b(0x8b)](',\x20')+_0x110b1b(0x6e);})[_0x278bae(0x8b)](''),_0x405a32=_0x44238c||_0x91e5a6[0x0]?.['alias']||_0x278bae(0x8a);let _0x484d23=_0x19f5b2[_0x278bae(0x70)](/\{AppCode\}/g,_0x50a57c)['replace'](/\{ModelConfigs\}/g,_0x12348e)[_0x278bae(0x70)](/\{ExampleModelName\}/g,_0x405a32)[_0x278bae(0x70)](/\{ApiFileName\}/g,_0x57566e||_0x278bae(0x98))[_0x278bae(0x70)](/\{ConfigName\}/g,_0xdb6960||_0x278bae(0x72))['replace'](/\{ClientConfigParam\}/g,_0x5d9762||'')[_0x278bae(0x70)](/\{VarPrefix\}/g,_0x7b9a44||_0x278bae(0x9a))[_0x278bae(0x70)](/\{CreatedAt\}/g,_0x7d99ce);return _0x484d23;}static async['processTemplate'](_0x1b9ac7,_0xf8b44c,_0x2c03ce,_0x2a2378,_0x17c745=!![]){const _0x57bb93=a132_0x3d4cf4,_0x9ee78=Date['now']();try{_0x17c745&&logger[_0x57bb93(0x7b)](_0x57bb93(0xa0),_0x57bb93(0x8f),{'templatePath':_0x1b9ac7,'targetPath':_0xf8b44c,'pageName':_0x2c03ce,'templateName':_0x2a2378});await a132_0x545e31[_0x57bb93(0x77)][_0x57bb93(0x76)](_0xf8b44c,{'recursive':!![]}),await this[_0x57bb93(0x85)](_0x1b9ac7,_0xf8b44c,_0x2c03ce,_0x2a2378);if(_0x17c745){const _0xd664f4=Date[_0x57bb93(0x78)]()-_0x9ee78;logger['success'](_0x57bb93(0xa0),_0x57bb93(0x97),_0xd664f4,{'pageName':_0x2c03ce,'templateName':_0x2a2378});}}catch(_0x7df323){if(_0x17c745){const _0x427635=Date[_0x57bb93(0x78)]()-_0x9ee78;logger[_0x57bb93(0x71)](_0x57bb93(0xa0),_0x57bb93(0xa5),{'templatePath':_0x1b9ac7,'targetPath':_0xf8b44c,'pageName':_0x2c03ce,'templateName':_0x2a2378,'error':_0x7df323 instanceof Error?_0x7df323[_0x57bb93(0x93)]:String(_0x7df323),'duration':_0x427635});}throw _0x7df323;}}static async[a132_0x3d4cf4(0x85)](_0x24d753,_0x195181,_0x40ccaa,_0x37b0dd){const _0x1deec3=a132_0x3d4cf4,_0x3a5338=await a132_0x545e31[_0x1deec3(0x77)]['readdir'](_0x24d753,{'withFileTypes':!![]});for(const _0x435e2b of _0x3a5338){const _0x45bfb3=a132_0x7bbee5['join'](_0x24d753,_0x435e2b['name']);let _0x30c367=a132_0x7bbee5['join'](_0x195181,_0x435e2b['name']);_0x435e2b[_0x1deec3(0x92)][_0x1deec3(0x96)](_0x1deec3(0x6c))&&(_0x30c367=a132_0x7bbee5[_0x1deec3(0x8b)](_0x195181,_0x435e2b['name'][_0x1deec3(0x70)](/\.tpl$/,'')));if(_0x435e2b[_0x1deec3(0x6a)]())await a132_0x545e31[_0x1deec3(0x77)][_0x1deec3(0x76)](_0x30c367,{'recursive':!![]}),await this[_0x1deec3(0x85)](_0x45bfb3,_0x30c367,_0x40ccaa,_0x37b0dd);else _0x435e2b[_0x1deec3(0xa3)]()&&await this[_0x1deec3(0x8e)](_0x45bfb3,_0x30c367,_0x40ccaa,_0x37b0dd);}}static async['processFile'](_0x215c56,_0x270c69,_0x154b66,_0x4e8bb1){const _0x5b1125=a132_0x3d4cf4,_0x3f7938=a132_0x7bbee5[_0x5b1125(0x9e)](_0x215c56)['toLowerCase']();_0x215c56[_0x5b1125(0x96)](_0x5b1125(0x6c))&&(_0x270c69=_0x270c69[_0x5b1125(0x70)](/\.tpl$/,''));const _0x3d56b3=[_0x5b1125(0xa2),_0x5b1125(0xa4),'.jsx',_0x5b1125(0x9f),'.json',_0x5b1125(0x9d),_0x5b1125(0x6b),_0x5b1125(0x7a),_0x5b1125(0x6c)];if(_0x3d56b3['includes'](_0x3f7938)||_0x215c56[_0x5b1125(0x96)](_0x5b1125(0x6c))){const _0x323d92=await a132_0x545e31['promises'][_0x5b1125(0x73)](_0x215c56,'utf8'),_0x57b830=this[_0x5b1125(0x6f)](_0x323d92,_0x154b66,_0x4e8bb1);await a132_0x545e31[_0x5b1125(0x77)][_0x5b1125(0x87)](_0x270c69,_0x57b830,'utf8');}else await a132_0x545e31['promises'][_0x5b1125(0x9b)](_0x215c56,_0x270c69);}}function a132_0x1a65(){const _0x591dbe=['replaceApiContent','isDirectory','.css','.tpl','name:\x20\x22','\x20},','replaceContent','replace','error','default','readFile','charAt','toLocaleTimeString','mkdir','promises','now','toLocaleString','.scss','info','datasetCode:\x20\x22','toUpperCase','422037YBkTUR','push','pop','446570SOPiWz','tableName','toLowerCase','map','processDirectory','187iJJOEQ','writeFile','slice','split','YourModel','join','2-digit','326660XvXBXE','processFile','开始处理模板内容替换','16jdDAjl','182424GsBcBd','name','message','20pYrSXO','toComponentName','endsWith','模板内容替换完成','api','\x0a\x20\x20\x20\x20{\x20','LOVRABET','copyFile','alias','.md','extname','.js','template','161YKpHBu','.tsx','isFile','.ts','模板内容替换失败','26433HUOwil','numeric','toISOString','toLocaleDateString','1048435SyGudq','37040xbpFJN'];a132_0x1a65=function(){return _0x591dbe;};return a132_0x1a65();}
1
+ const a136_0x305ad1=a136_0xb29a;(function(_0x343bee,_0x233be8){const _0x3c485c=a136_0xb29a,_0x1eae49=_0x343bee();while(!![]){try{const _0x47659d=parseInt(_0x3c485c(0x209))/0x1*(parseInt(_0x3c485c(0x1ed))/0x2)+parseInt(_0x3c485c(0x1e7))/0x3+-parseInt(_0x3c485c(0x1f7))/0x4+-parseInt(_0x3c485c(0x222))/0x5*(-parseInt(_0x3c485c(0x1ea))/0x6)+parseInt(_0x3c485c(0x217))/0x7+-parseInt(_0x3c485c(0x1fd))/0x8+parseInt(_0x3c485c(0x227))/0x9*(parseInt(_0x3c485c(0x200))/0xa);if(_0x47659d===_0x233be8)break;else _0x1eae49['push'](_0x1eae49['shift']());}catch(_0x11ef89){_0x1eae49['push'](_0x1eae49['shift']());}}}(a136_0x5313,0x8b528));function a136_0xb29a(_0x199367,_0x5632fb){_0x199367=_0x199367-0x1e6;const _0x531318=a136_0x5313();let _0xb29aa5=_0x531318[_0x199367];return _0xb29aa5;}import a136_0x27a27e from'node:fs';function a136_0x5313(){const _0x1b66e9=['toLocaleDateString','.js','push','6282lJMWjP','template','770346SjJluv','YourModel','now','6btHZdp','alias','开始处理模板内容替换','514tMusQL','processDirectory','replaceApiContent','.json','.scss','default','replace','toComponentName','toLocaleString','utf8','3857396MNmLVa','processTemplate','isFile','info','toUpperCase','datasetCode','888824aXUtyT','slice','endsWith','1740BUrEMb','split','writeFile','name','charAt','.css','promises','tableName','\x0a\x20\x20\x20\x20{\x20','3329LUdkWU','模板内容替换失败','includes','processFile','replaceContent','.jsx','toISOString','map','.tpl','mkdir','alias:\x20\x22','2-digit','.md','pop','1588307DQEKPs','join','numeric','error','LOVRABET','toLowerCase','readdir','datasetCode:\x20\x22','readFile','name:\x20\x22','toDisplayTitle','927140SDcBoA','tableName:\x20\x22'];a136_0x5313=function(){return _0x1b66e9;};return a136_0x5313();}import a136_0x82e33c from'node:path';import{logger}from'./logger.js';import{getCliVersion}from'./version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a136_0x305ad1(0x1f4)](_0x3ce191){const _0x3faa3=a136_0x305ad1,_0x24daff=_0x3ce191[_0x3faa3(0x201)]('/')[_0x3faa3(0x216)]()||_0x3ce191;return _0x24daff['split']('-')[_0x3faa3(0x210)](_0x489fe8=>_0x489fe8[_0x3faa3(0x204)](0x0)['toUpperCase']()+_0x489fe8[_0x3faa3(0x1fe)](0x1)['toLowerCase']())[_0x3faa3(0x218)]('');}static[a136_0x305ad1(0x221)](_0x1eb8c9){const _0x20b605=a136_0x305ad1,_0x4bb9aa=_0x1eb8c9[_0x20b605(0x201)]('/')[_0x20b605(0x216)]()||_0x1eb8c9;return _0x4bb9aa[_0x20b605(0x201)]('-')[_0x20b605(0x210)](_0x37983d=>_0x37983d[_0x20b605(0x204)](0x0)[_0x20b605(0x1fb)]()+_0x37983d['slice'](0x1)[_0x20b605(0x21c)]())[_0x20b605(0x218)]('\x20');}static[a136_0x305ad1(0x20d)](_0x560810,_0x158a0c,_0x23cec2){const _0x3c7c1a=a136_0x305ad1,_0x111310=this[_0x3c7c1a(0x1f4)](_0x158a0c),_0x5a5af8=this[_0x3c7c1a(0x221)](_0x158a0c),_0x28b826=new Date(),_0x34922f=_0x28b826[_0x3c7c1a(0x1f5)](undefined,{'year':_0x3c7c1a(0x219),'month':'2-digit','day':_0x3c7c1a(0x214),'hour':_0x3c7c1a(0x214),'minute':'2-digit','second':'2-digit','hour12':![]})[_0x3c7c1a(0x1f3)](/\//g,'-'),_0x32017a=_0x28b826[_0x3c7c1a(0x224)](undefined,{'year':'numeric','month':_0x3c7c1a(0x214),'day':_0x3c7c1a(0x214)})[_0x3c7c1a(0x1f3)](/\//g,'-'),_0x1e662b=_0x28b826['toLocaleTimeString'](undefined,{'hour12':![]});let _0xca481b=_0x560810[_0x3c7c1a(0x1f3)](/\{CliVersion\}/g,CLI_VERSION)[_0x3c7c1a(0x1f3)](/\{ComponentName\}/g,_0x111310)[_0x3c7c1a(0x1f3)](/\{DisplayTitle\}/g,_0x5a5af8)[_0x3c7c1a(0x1f3)](/\{PageName\}/g,_0x158a0c)['replace'](/\{TemplateName\}/g,_0x23cec2)[_0x3c7c1a(0x1f3)](/\{CreatedAt\}/g,_0x34922f)[_0x3c7c1a(0x1f3)](/\{CreatedDate\}/g,_0x32017a)[_0x3c7c1a(0x1f3)](/\{CreatedTime\}/g,_0x1e662b);return _0xca481b;}static[a136_0x305ad1(0x1ef)](_0x2ed6e4,_0x5321c3,_0x2b4a13,_0x5ba0eb,_0x3afb71,_0x46ffaf,_0x3dda74,_0x2cd4f1){const _0x5e1e4c=a136_0x305ad1,_0x51f939=new Date(),_0xce4a09=_0x51f939[_0x5e1e4c(0x20f)](),_0x40f8c6=_0x2b4a13[_0x5e1e4c(0x210)](_0x3e7b68=>{const _0x33cec1=_0x5e1e4c,_0x2a9b4b=[_0x33cec1(0x21e)+_0x3e7b68[_0x33cec1(0x1fc)]+'\x22',_0x33cec1(0x223)+_0x3e7b68[_0x33cec1(0x207)]+'\x22',_0x33cec1(0x220)+_0x3e7b68[_0x33cec1(0x203)]+'\x22'];return _0x3e7b68[_0x33cec1(0x1eb)]&&_0x2a9b4b[_0x33cec1(0x226)](_0x33cec1(0x213)+_0x3e7b68[_0x33cec1(0x1eb)]+'\x22'),_0x33cec1(0x208)+_0x2a9b4b[_0x33cec1(0x218)](',\x20')+'\x20},';})[_0x5e1e4c(0x218)](''),_0x851eb0=_0x5ba0eb||_0x2b4a13[0x0]?.[_0x5e1e4c(0x1eb)]||_0x5e1e4c(0x1e8);let _0x188b0a=_0x2ed6e4[_0x5e1e4c(0x1f3)](/\{AppCode\}/g,_0x5321c3)['replace'](/\{ModelConfigs\}/g,_0x40f8c6)[_0x5e1e4c(0x1f3)](/\{ExampleModelName\}/g,_0x851eb0)[_0x5e1e4c(0x1f3)](/\{ApiFileName\}/g,_0x3afb71||'api')['replace'](/\{ConfigName\}/g,_0x46ffaf||_0x5e1e4c(0x1f2))[_0x5e1e4c(0x1f3)](/\{ClientConfigParam\}/g,_0x3dda74||'')[_0x5e1e4c(0x1f3)](/\{VarPrefix\}/g,_0x2cd4f1||_0x5e1e4c(0x21b))['replace'](/\{CreatedAt\}/g,_0xce4a09);return _0x188b0a;}static async[a136_0x305ad1(0x1f8)](_0x1fade7,_0x534104,_0x1a6f6a,_0x1d4a6b,_0x5a86d8=!![]){const _0x2578de=a136_0x305ad1,_0x528b93=Date[_0x2578de(0x1e9)]();try{_0x5a86d8&&logger[_0x2578de(0x1fa)](_0x2578de(0x1e6),_0x2578de(0x1ec),{'templatePath':_0x1fade7,'targetPath':_0x534104,'pageName':_0x1a6f6a,'templateName':_0x1d4a6b});await a136_0x27a27e['promises'][_0x2578de(0x212)](_0x534104,{'recursive':!![]}),await this[_0x2578de(0x1ee)](_0x1fade7,_0x534104,_0x1a6f6a,_0x1d4a6b);if(_0x5a86d8){const _0x2f7daf=Date[_0x2578de(0x1e9)]()-_0x528b93;logger['success'](_0x2578de(0x1e6),'模板内容替换完成',_0x2f7daf,{'pageName':_0x1a6f6a,'templateName':_0x1d4a6b});}}catch(_0x122cd7){if(_0x5a86d8){const _0x123553=Date[_0x2578de(0x1e9)]()-_0x528b93;logger[_0x2578de(0x21a)](_0x2578de(0x1e6),_0x2578de(0x20a),{'templatePath':_0x1fade7,'targetPath':_0x534104,'pageName':_0x1a6f6a,'templateName':_0x1d4a6b,'error':_0x122cd7 instanceof Error?_0x122cd7['message']:String(_0x122cd7),'duration':_0x123553});}throw _0x122cd7;}}static async[a136_0x305ad1(0x1ee)](_0x2a4579,_0x2e5337,_0x1b323c,_0x4499fb){const _0x4c94b2=a136_0x305ad1,_0x114aa1=await a136_0x27a27e[_0x4c94b2(0x206)][_0x4c94b2(0x21d)](_0x2a4579,{'withFileTypes':!![]});for(const _0x4edcc1 of _0x114aa1){const _0x17113b=a136_0x82e33c[_0x4c94b2(0x218)](_0x2a4579,_0x4edcc1[_0x4c94b2(0x203)]);let _0x50d6b9=a136_0x82e33c[_0x4c94b2(0x218)](_0x2e5337,_0x4edcc1[_0x4c94b2(0x203)]);_0x4edcc1[_0x4c94b2(0x203)]['endsWith'](_0x4c94b2(0x211))&&(_0x50d6b9=a136_0x82e33c[_0x4c94b2(0x218)](_0x2e5337,_0x4edcc1[_0x4c94b2(0x203)][_0x4c94b2(0x1f3)](/\.tpl$/,'')));if(_0x4edcc1['isDirectory']())await a136_0x27a27e['promises'][_0x4c94b2(0x212)](_0x50d6b9,{'recursive':!![]}),await this[_0x4c94b2(0x1ee)](_0x17113b,_0x50d6b9,_0x1b323c,_0x4499fb);else _0x4edcc1[_0x4c94b2(0x1f9)]()&&await this[_0x4c94b2(0x20c)](_0x17113b,_0x50d6b9,_0x1b323c,_0x4499fb);}}static async[a136_0x305ad1(0x20c)](_0x5b4853,_0x28fc06,_0x2d5ad8,_0xe8533f){const _0x3bb1f5=a136_0x305ad1,_0x385ca8=a136_0x82e33c['extname'](_0x5b4853)[_0x3bb1f5(0x21c)]();_0x5b4853[_0x3bb1f5(0x1ff)]('.tpl')&&(_0x28fc06=_0x28fc06[_0x3bb1f5(0x1f3)](/\.tpl$/,''));const _0x59bf81=['.tsx','.ts',_0x3bb1f5(0x20e),_0x3bb1f5(0x225),_0x3bb1f5(0x1f0),_0x3bb1f5(0x215),_0x3bb1f5(0x205),_0x3bb1f5(0x1f1),_0x3bb1f5(0x211)];if(_0x59bf81[_0x3bb1f5(0x20b)](_0x385ca8)||_0x5b4853[_0x3bb1f5(0x1ff)](_0x3bb1f5(0x211))){const _0x5cea28=await a136_0x27a27e[_0x3bb1f5(0x206)][_0x3bb1f5(0x21f)](_0x5b4853,_0x3bb1f5(0x1f6)),_0x4fab74=this[_0x3bb1f5(0x20d)](_0x5cea28,_0x2d5ad8,_0xe8533f);await a136_0x27a27e[_0x3bb1f5(0x206)][_0x3bb1f5(0x202)](_0x28fc06,_0x4fab74,_0x3bb1f5(0x1f6));}else await a136_0x27a27e[_0x3bb1f5(0x206)]['copyFile'](_0x5b4853,_0x28fc06);}}
@@ -1 +1 @@
1
- (function(_0x59044c,_0xe6aeb0){var _0x5b985f=a133_0x2a1d,_0x3abb5b=_0x59044c();while(!![]){try{var _0x4a2242=parseInt(_0x5b985f(0xa9))/0x1*(parseInt(_0x5b985f(0xa2))/0x2)+parseInt(_0x5b985f(0xa8))/0x3+parseInt(_0x5b985f(0xa6))/0x4+parseInt(_0x5b985f(0xaa))/0x5*(-parseInt(_0x5b985f(0xa1))/0x6)+parseInt(_0x5b985f(0xa5))/0x7+parseInt(_0x5b985f(0xa7))/0x8*(-parseInt(_0x5b985f(0xa3))/0x9)+-parseInt(_0x5b985f(0xab))/0xa*(-parseInt(_0x5b985f(0xa4))/0xb);if(_0x4a2242===_0xe6aeb0)break;else _0x3abb5b['push'](_0x3abb5b['shift']());}catch(_0x12279c){_0x3abb5b['push'](_0x3abb5b['shift']());}}}(a133_0x16c9,0x30dd0));function a133_0x16c9(){var _0x4237b8=['192358HJwEDS','3289329VGIubH','10219oCwdCC','2533006OqxiNH','1574368blUFFK','8XCVHTy','238725GfxyoC','1JOvmYp','30710KuenYg','230uUzINU','378HYLwQI'];a133_0x16c9=function(){return _0x4237b8;};return a133_0x16c9();}function a133_0x2a1d(_0x51fd9b,_0xfe01bb){_0x51fd9b=_0x51fd9b-0xa1;var _0x16c9b2=a133_0x16c9();var _0x2a1d7e=_0x16c9b2[_0x51fd9b];return _0x2a1d7e;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a137_0x59e1(){var _0x25269a=['781856WtQvNb','126yKawDl','6TkKspw','10JTMoyF','8VlyvMo','431832xVSCaJ','4736268CJCCHC','480193PjwNMU','158035LAtRIC','322348kScqLu','4862044ZngPMj'];a137_0x59e1=function(){return _0x25269a;};return a137_0x59e1();}(function(_0x4842a1,_0x1b0f86){var _0x51a664=a137_0x3e63,_0x157133=_0x4842a1();while(!![]){try{var _0x324e99=parseInt(_0x51a664(0x1ca))/0x1+parseInt(_0x51a664(0x1c4))/0x2*(parseInt(_0x51a664(0x1c1))/0x3)+-parseInt(_0x51a664(0x1c8))/0x4+parseInt(_0x51a664(0x1c7))/0x5*(-parseInt(_0x51a664(0x1c0))/0x6)+-parseInt(_0x51a664(0x1c6))/0x7*(parseInt(_0x51a664(0x1c3))/0x8)+parseInt(_0x51a664(0x1c5))/0x9+parseInt(_0x51a664(0x1c2))/0xa*(-parseInt(_0x51a664(0x1c9))/0xb);if(_0x324e99===_0x1b0f86)break;else _0x157133['push'](_0x157133['shift']());}catch(_0x388639){_0x157133['push'](_0x157133['shift']());}}}(a137_0x59e1,0x7668b));function a137_0x3e63(_0x29061b,_0x51be4c){_0x29061b=_0x29061b-0x1c0;var _0x59e1f1=a137_0x59e1();var _0x3e637e=_0x59e1f1[_0x29061b];return _0x3e637e;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a134_0x5627(){var _0x28dca9=['110139XRNxcM','1669997RKKzGM','10ODVZKu','457301ApitGb','12pxNfDj','3568OvfCGV','23409mTFtSc','2134562eHKzCp','23189630tSHddy','807642FAaTvn'];a134_0x5627=function(){return _0x28dca9;};return a134_0x5627();}(function(_0x4684f2,_0x1a688b){var _0x2a9b9a=a134_0x1aae,_0x42f370=_0x4684f2();while(!![]){try{var _0x3dfb4e=parseInt(_0x2a9b9a(0x14b))/0x1+-parseInt(_0x2a9b9a(0x14f))/0x2+parseInt(_0x2a9b9a(0x148))/0x3*(parseInt(_0x2a9b9a(0x14c))/0x4)+parseInt(_0x2a9b9a(0x14a))/0x5*(-parseInt(_0x2a9b9a(0x147))/0x6)+parseInt(_0x2a9b9a(0x149))/0x7+parseInt(_0x2a9b9a(0x14d))/0x8*(-parseInt(_0x2a9b9a(0x14e))/0x9)+parseInt(_0x2a9b9a(0x150))/0xa;if(_0x3dfb4e===_0x1a688b)break;else _0x42f370['push'](_0x42f370['shift']());}catch(_0x4764d9){_0x42f370['push'](_0x42f370['shift']());}}}(a134_0x5627,0x996d1));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a134_0x1aae(_0xfe496b,_0x5760a2){_0xfe496b=_0xfe496b-0x147;var _0x5627a2=a134_0x5627();var _0x1aae64=_0x5627a2[_0xfe496b];return _0x1aae64;}export async function withActiveCookie(_0x4b4079,_0xf8d1f9){setActiveCookie(_0x4b4079);try{return await _0xf8d1f9();}finally{clearActiveCookie();}}
1
+ function a138_0x3a3e(_0x500c0f,_0x2342c1){_0x500c0f=_0x500c0f-0xa0;var _0x4c19c2=a138_0x4c19();var _0x3a3e0=_0x4c19c2[_0x500c0f];return _0x3a3e0;}(function(_0x123572,_0x458ad5){var _0x4a945a=a138_0x3a3e,_0x2c0016=_0x123572();while(!![]){try{var _0x426199=-parseInt(_0x4a945a(0xa4))/0x1*(parseInt(_0x4a945a(0xa6))/0x2)+parseInt(_0x4a945a(0xa9))/0x3*(-parseInt(_0x4a945a(0xa2))/0x4)+parseInt(_0x4a945a(0xab))/0x5*(parseInt(_0x4a945a(0xa7))/0x6)+parseInt(_0x4a945a(0xa0))/0x7+parseInt(_0x4a945a(0xaa))/0x8+-parseInt(_0x4a945a(0xa1))/0x9*(-parseInt(_0x4a945a(0xa8))/0xa)+parseInt(_0x4a945a(0xa5))/0xb*(-parseInt(_0x4a945a(0xa3))/0xc);if(_0x426199===_0x458ad5)break;else _0x2c0016['push'](_0x2c0016['shift']());}catch(_0x251a92){_0x2c0016['push'](_0x2c0016['shift']());}}}(a138_0x4c19,0xca99f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3bf54f,_0x1158d5){setActiveCookie(_0x3bf54f);try{return await _0x1158d5();}finally{clearActiveCookie();}}function a138_0x4c19(){var _0xf86ff4=['249846tYUajd','2810dRAuEA','3sYymVJ','7052760cYWKdK','95vDdTTq','10370108GdLJYA','18243RTUIyo','4360860XIMfVK','6133476LUMDEa','1CyCGCd','22xaSduD','1562978GKwpKE'];a138_0x4c19=function(){return _0xf86ff4;};return a138_0x4c19();}