@lovrabet/rabetbase-cli 2.0.4-beta.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/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/build.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/doctor.js +1 -1
  53. package/lib/commands/init/index.js +1 -1
  54. package/lib/commands/logs/index.js +1 -1
  55. package/lib/commands/menu/index.js +1 -1
  56. package/lib/commands/menu/shared/compare-table.js +1 -1
  57. package/lib/commands/menu/shared/index.js +1 -1
  58. package/lib/commands/menu/shared/inquirer.js +1 -1
  59. package/lib/commands/menu/shared/local-pages.js +1 -1
  60. package/lib/commands/menu/shared/logic.js +1 -1
  61. package/lib/commands/menu/shared/service.js +1 -1
  62. package/lib/commands/menu/shared/sync-core.js +1 -1
  63. package/lib/commands/menu/shared/update-core.js +1 -1
  64. package/lib/commands/menu/shared/valid-url.js +1 -1
  65. package/lib/commands/menu/sync.js +1 -1
  66. package/lib/commands/menu/update.js +1 -1
  67. package/lib/commands/preview.js +1 -1
  68. package/lib/commands/project/index.js +1 -1
  69. package/lib/commands/project-upgrade.js +1 -1
  70. package/lib/commands/registry.js +1 -1
  71. package/lib/commands/run/index.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/sql/detail.js +1 -1
  74. package/lib/commands/sql/exec.js +1 -1
  75. package/lib/commands/sql/index.js +1 -1
  76. package/lib/commands/sql/list.js +1 -1
  77. package/lib/commands/sql/save.js +1 -1
  78. package/lib/commands/sql/validate.js +1 -1
  79. package/lib/commands/start.js +1 -1
  80. package/lib/constant/cli.js +1 -1
  81. package/lib/constant/domain.js +1 -1
  82. package/lib/constant/env.js +1 -1
  83. package/lib/context.js +1 -1
  84. package/lib/core/alias-resolver.js +1 -1
  85. package/lib/core/api-client.js +1 -1
  86. package/lib/core/bff/config.js +1 -1
  87. package/lib/core/bff/file-system.js +1 -1
  88. package/lib/core/bff/hash.js +1 -1
  89. package/lib/core/bff/lock.js +1 -1
  90. package/lib/core/bff/utils.js +1 -1
  91. package/lib/core/db-resolver.js +1 -1
  92. package/lib/core/sql-validator.js +1 -1
  93. package/lib/create-app/enhanced-guided-create.js +1 -1
  94. package/lib/create-app/format-elapsed.js +1 -1
  95. package/lib/create-app/main.js +1 -1
  96. package/lib/create-app/non-interactive.js +1 -1
  97. package/lib/create-app/use-copy-project-template.js +1 -1
  98. package/lib/create-app/use-format-code.js +1 -1
  99. package/lib/create-app/use-install-dependencies.js +1 -1
  100. package/lib/errors.js +1 -1
  101. package/lib/framework/flags.js +1 -1
  102. package/lib/framework/help.js +1 -1
  103. package/lib/framework/index.js +1 -1
  104. package/lib/framework/output.js +1 -1
  105. package/lib/framework/response.js +1 -1
  106. package/lib/framework/runner.js +1 -1
  107. package/lib/framework/types.js +1 -1
  108. package/lib/generated/build-info.js +1 -1
  109. package/lib/help.js +1 -1
  110. package/lib/init/main.js +1 -1
  111. package/lib/skills/main.js +1 -1
  112. package/lib/skills/npx-skills-add.js +1 -1
  113. package/lib/telemetry/cli-command-trace.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/telemetry/send-cli-trace-log.js +1 -1
  118. package/lib/utils/ai_config.js +1 -1
  119. package/lib/utils/cdn-config.js +1 -1
  120. package/lib/utils/check-sdk-version.js +1 -1
  121. package/lib/utils/cli-version-check.js +1 -1
  122. package/lib/utils/config.js +1 -1
  123. package/lib/utils/copy-directory.js +1 -1
  124. package/lib/utils/file-utils.js +1 -1
  125. package/lib/utils/guides-cdn.js +1 -1
  126. package/lib/utils/http-client.js +1 -1
  127. package/lib/utils/is-non-interactive.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/rules-cdn.js +1 -1
  131. package/lib/utils/sleep.js +1 -1
  132. package/lib/utils/template-replacer.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/with-active-cookie.js +1 -1
  135. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x3e80fb,_0xb463b4){const _0x118ecc=a116_0x2981,_0x5211a8=_0x3e80fb();while(!![]){try{const _0x4caef2=-parseInt(_0x118ecc(0x1ba))/0x1*(parseInt(_0x118ecc(0x1bf))/0x2)+-parseInt(_0x118ecc(0x1c5))/0x3*(-parseInt(_0x118ecc(0x1c7))/0x4)+parseInt(_0x118ecc(0x1c6))/0x5*(parseInt(_0x118ecc(0x1be))/0x6)+-parseInt(_0x118ecc(0x1ca))/0x7+-parseInt(_0x118ecc(0x1c1))/0x8+-parseInt(_0x118ecc(0x1bd))/0x9*(parseInt(_0x118ecc(0x1c0))/0xa)+parseInt(_0x118ecc(0x1c8))/0xb*(parseInt(_0x118ecc(0x1cb))/0xc);if(_0x4caef2===_0xb463b4)break;else _0x5211a8['push'](_0x5211a8['shift']());}catch(_0xbd4a72){_0x5211a8['push'](_0x5211a8['shift']());}}}(a116_0x58d8,0x3673c));import a116_0x40233 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a116_0x58d8(){const _0x35e6d8=['daily','rabetbase-cli','3843FcBSWq','105itZQpk','280nofcgd','451CuBsjT','user','1921563OGNPKm','282684HUxxHg','nickname','127PCFjHd','username','unknown','342imPJQB','75978NPPuaN','6614PUBMTr','15340httNwi','2764832FsptWT','userInfo'];a116_0x58d8=function(){return _0x35e6d8;};return a116_0x58d8();}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a116_0x2981(_0x59c46d,_0x33e5df){_0x59c46d=_0x59c46d-0x1b9;const _0x58d8fc=a116_0x58d8();let _0x2981fe=_0x58d8fc[_0x59c46d];return _0x2981fe;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x41d581=a116_0x2981,_0x517e35=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x24ea70=_0x517e35?.[_0x41d581(0x1c9)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x41d581(0x1bc)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x41d581(0x1c3):'production'),'username':_0x24ea70?.['username']??a116_0x40233[_0x41d581(0x1c2)]()[_0x41d581(0x1bb)]??_0x41d581(0x1c4),..._0x24ea70&&{'nickname':_0x24ea70[_0x41d581(0x1b9)]}}),cliOtelTraceInitialized=!![];}return _0x517e35;}
1
+ (function(_0x55273b,_0x2b5763){const _0x28b311=a116_0x5e55,_0x3ef80d=_0x55273b();while(!![]){try{const _0x23d2f9=-parseInt(_0x28b311(0x123))/0x1*(parseInt(_0x28b311(0x11f))/0x2)+parseInt(_0x28b311(0x120))/0x3*(-parseInt(_0x28b311(0x128))/0x4)+parseInt(_0x28b311(0x126))/0x5+-parseInt(_0x28b311(0x129))/0x6+-parseInt(_0x28b311(0x127))/0x7*(parseInt(_0x28b311(0x11d))/0x8)+-parseInt(_0x28b311(0x12b))/0x9*(-parseInt(_0x28b311(0x121))/0xa)+parseInt(_0x28b311(0x122))/0xb;if(_0x23d2f9===_0x2b5763)break;else _0x3ef80d['push'](_0x3ef80d['shift']());}catch(_0x4b2b53){_0x3ef80d['push'](_0x3ef80d['shift']());}}}(a116_0x51e2,0x88aa1));import a116_0x31f396 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 a116_0x5e55(_0x12624b,_0x37d60f){_0x12624b=_0x12624b-0x11c;const _0x51e23f=a116_0x51e2();let _0x5e55b6=_0x51e23f[_0x12624b];return _0x5e55b6;}let cliOtelTraceInitialized=![];function a116_0x51e2(){const _0x459ef4=['190iJrgUC','19980543rnAWko','549817BAuzVm','userInfo','production','4410585YjEtqT','3563wsgEFj','1044NqTOcr','5048154lluirk','rabetbase-cli','501129NFFFHZ','nickname','username','14024YdpQsK','daily','2EOSoTk','10497RGUrxq'];a116_0x51e2=function(){return _0x459ef4;};return a116_0x51e2();}export async function ensureCliOtelTraceConfig(){const _0x57cdf8=a116_0x5e55,_0x1c9f7e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1f5208=_0x1c9f7e?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57cdf8(0x11e):_0x57cdf8(0x125)),'username':_0x1f5208?.[_0x57cdf8(0x11c)]??a116_0x31f396[_0x57cdf8(0x124)]()[_0x57cdf8(0x11c)]??_0x57cdf8(0x12a),..._0x1f5208&&{'nickname':_0x1f5208[_0x57cdf8(0x12c)]}}),cliOtelTraceInitialized=!![];}return _0x1c9f7e;}
@@ -1 +1 @@
1
- (function(_0x570278,_0x2da38f){const _0x50517b=a117_0x36a2,_0xe43028=_0x570278();while(!![]){try{const _0x280767=parseInt(_0x50517b(0x1ec))/0x1+-parseInt(_0x50517b(0x1e5))/0x2*(-parseInt(_0x50517b(0x1e3))/0x3)+parseInt(_0x50517b(0x1ee))/0x4+parseInt(_0x50517b(0x1e7))/0x5+parseInt(_0x50517b(0x1e4))/0x6+parseInt(_0x50517b(0x1e8))/0x7+-parseInt(_0x50517b(0x1e9))/0x8;if(_0x280767===_0x2da38f)break;else _0xe43028['push'](_0xe43028['shift']());}catch(_0x317344){_0xe43028['push'](_0xe43028['shift']());}}}(a117_0x4fc1,0xbd6aa));import{shutdownTraces}from'@lovrabet/otel-logger';function a117_0x36a2(_0x181706,_0x5ebee9){_0x181706=_0x181706-0x1e3;const _0x4fc109=a117_0x4fc1();let _0x36a2f2=_0x4fc109[_0x181706];return _0x36a2f2;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3eb870=a117_0x36a2;process[_0x3eb870(0x1e6)](_0x3eb870(0x1ea),()=>{void flushOtelNodeIfUsed();});const _0x403fd5=()=>{const _0x29b799=_0x3eb870;void flushOtelNodeIfUsed()['then'](()=>process[_0x29b799(0x1eb)](0x0));};process[_0x3eb870(0x1e6)]('SIGINT',_0x403fd5),process[_0x3eb870(0x1e6)](_0x3eb870(0x1ed),_0x403fd5);}export async function exitWithOtelShutdown(_0x21e128){const _0x26de79=a117_0x36a2;await flushOtelNodeIfUsed(),process[_0x26de79(0x1eb)](_0x21e128);}function a117_0x4fc1(){const _0x142032=['31539NCLHXS','9167190YmDNtA','118dxxPdR','once','4151845TYsAuX','3432548tNLbKa','35132584AKCifu','beforeExit','exit','1211016fmDFkd','SIGTERM','1950168jgANqp'];a117_0x4fc1=function(){return _0x142032;};return a117_0x4fc1();}
1
+ (function(_0x54806c,_0x32ea95){const _0x166b58=a117_0x478d,_0x2aa570=_0x54806c();while(!![]){try{const _0x5f13ba=-parseInt(_0x166b58(0xc2))/0x1*(-parseInt(_0x166b58(0xcb))/0x2)+parseInt(_0x166b58(0xc9))/0x3+parseInt(_0x166b58(0xbe))/0x4+-parseInt(_0x166b58(0xc3))/0x5+parseInt(_0x166b58(0xbd))/0x6*(-parseInt(_0x166b58(0xc1))/0x7)+parseInt(_0x166b58(0xc4))/0x8*(parseInt(_0x166b58(0xc8))/0x9)+-parseInt(_0x166b58(0xc0))/0xa*(parseInt(_0x166b58(0xc5))/0xb);if(_0x5f13ba===_0x32ea95)break;else _0x2aa570['push'](_0x2aa570['shift']());}catch(_0x52a6da){_0x2aa570['push'](_0x2aa570['shift']());}}}(a117_0x3f11,0x8bf23));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x25b23d=a117_0x478d;process[_0x25b23d(0xc7)](_0x25b23d(0xbf),()=>{void flushOtelNodeIfUsed();});const _0x118d4b=()=>{const _0x3bef06=_0x25b23d;void flushOtelNodeIfUsed()['then'](()=>process[_0x3bef06(0xcc)](0x0));};process['once'](_0x25b23d(0xc6),_0x118d4b),process[_0x25b23d(0xc7)](_0x25b23d(0xca),_0x118d4b);}function a117_0x3f11(){const _0x4f10ac=['47179VWVmVe','SIGINT','once','351EZOOYV','3131895oFFOor','SIGTERM','238166fWcqmU','exit','6xtkwVU','2511228HRIVtp','beforeExit','3040VVgIUy','1233302LERjDb','1XoyaZX','258500IwInKg','64432aIzaKf'];a117_0x3f11=function(){return _0x4f10ac;};return a117_0x3f11();}function a117_0x478d(_0x50b201,_0x4c67c9){_0x50b201=_0x50b201-0xbd;const _0x3f11ae=a117_0x3f11();let _0x478df6=_0x3f11ae[_0x50b201];return _0x478df6;}export async function exitWithOtelShutdown(_0x41017c){const _0x100811=a117_0x478d;await flushOtelNodeIfUsed(),process[_0x100811(0xcc)](_0x41017c);}
@@ -1 +1 @@
1
- const a118_0x4c729b=a118_0x230d;(function(_0x30201b,_0x2b215f){const _0x19b11c=a118_0x230d,_0x535fe8=_0x30201b();while(!![]){try{const _0x1b219a=parseInt(_0x19b11c(0xab))/0x1+-parseInt(_0x19b11c(0xac))/0x2+parseInt(_0x19b11c(0xad))/0x3+-parseInt(_0x19b11c(0xb4))/0x4*(-parseInt(_0x19b11c(0xb1))/0x5)+parseInt(_0x19b11c(0xb6))/0x6*(parseInt(_0x19b11c(0xb2))/0x7)+parseInt(_0x19b11c(0xb7))/0x8+-parseInt(_0x19b11c(0xaf))/0x9;if(_0x1b219a===_0x2b215f)break;else _0x535fe8['push'](_0x535fe8['shift']());}catch(_0x44b0b8){_0x535fe8['push'](_0x535fe8['shift']());}}}(a118_0x13cc,0x92501));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a118_0x4c729b(0xb5);function a118_0x230d(_0x34a3dd,_0x4faa12){_0x34a3dd=_0x34a3dd-0xab;const _0x13ccd8=a118_0x13cc();let _0x230dbd=_0x13ccd8[_0x34a3dd];return _0x230dbd;}function a118_0x13cc(){const _0x5d2d9e=['rabetbase-cli','111594HhfiJZ','3325344yeLIJK','manual','369591glCEEm','319010yRHTvZ','2214003SNVMuw','version','20906676xYvqwV','traceparent','368170eTncjI','448KnlIJn','traceName','20mqNtMV'];a118_0x13cc=function(){return _0x5d2d9e;};return a118_0x13cc();}export async function sendCliTraceLog(_0x4f9779){const _0x1c3a69=a118_0x4c729b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4f9779[_0x1c3a69(0xb3)]??DEFAULT_TRACE_NAME,'version':_0x4f9779[_0x1c3a69(0xae)]??getCliVersion(),'spanName':_0x4f9779['spanName'],'eventType':_0x1c3a69(0xb8),'logData':_0x4f9779['logData'],..._0x4f9779[_0x1c3a69(0xb0)]&&{'traceparent':_0x4f9779['traceparent']}});}
1
+ const a118_0x454694=a118_0x5b4e;function a118_0x2709(){const _0x4f9e3a=['rabetbase-cli','5324rLgGKd','2778243McwGTH','traceparent','spanName','240JORbRq','version','21430260XWisRX','638980sEZlsf','logData','42unYUui','1vjDIBX','151911qjOdeJ','3287268RYcAQy','215262kybNaE','manual','2780yFsVZr','5Ewdbby'];a118_0x2709=function(){return _0x4f9e3a;};return a118_0x2709();}(function(_0x3ab648,_0x374eb2){const _0xa70b4a=a118_0x5b4e,_0x446bb5=_0x3ab648();while(!![]){try{const _0x1c92de=parseInt(_0xa70b4a(0x17f))/0x1*(parseInt(_0xa70b4a(0x17c))/0x2)+-parseInt(_0xa70b4a(0x176))/0x3+-parseInt(_0xa70b4a(0x181))/0x4*(parseInt(_0xa70b4a(0x185))/0x5)+parseInt(_0xa70b4a(0x182))/0x6*(-parseInt(_0xa70b4a(0x17e))/0x7)+-parseInt(_0xa70b4a(0x179))/0x8*(-parseInt(_0xa70b4a(0x180))/0x9)+-parseInt(_0xa70b4a(0x184))/0xa*(parseInt(_0xa70b4a(0x187))/0xb)+parseInt(_0xa70b4a(0x17b))/0xc;if(_0x1c92de===_0x374eb2)break;else _0x446bb5['push'](_0x446bb5['shift']());}catch(_0x3dce4a){_0x446bb5['push'](_0x446bb5['shift']());}}}(a118_0x2709,0x7d7d3));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a118_0x454694(0x186);function a118_0x5b4e(_0x51d522,_0x5ebc28){_0x51d522=_0x51d522-0x176;const _0x270906=a118_0x2709();let _0x5b4e28=_0x270906[_0x51d522];return _0x5b4e28;}export async function sendCliTraceLog(_0x46a5d4){const _0x4f76b3=a118_0x454694;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x46a5d4['traceName']??DEFAULT_TRACE_NAME,'version':_0x46a5d4[_0x4f76b3(0x17a)]??getCliVersion(),'spanName':_0x46a5d4[_0x4f76b3(0x178)],'eventType':_0x4f76b3(0x183),'logData':_0x46a5d4[_0x4f76b3(0x17d)],..._0x46a5d4[_0x4f76b3(0x177)]&&{'traceparent':_0x46a5d4[_0x4f76b3(0x177)]}});}
@@ -1 +1 @@
1
- const a120_0x6f9f55=a120_0xdd15;(function(_0xa4d607,_0xe4c326){const _0x3a68f2=a120_0xdd15,_0x2a8f41=_0xa4d607();while(!![]){try{const _0x6c7a24=parseInt(_0x3a68f2(0x168))/0x1*(parseInt(_0x3a68f2(0x15c))/0x2)+-parseInt(_0x3a68f2(0x165))/0x3+-parseInt(_0x3a68f2(0x167))/0x4*(-parseInt(_0x3a68f2(0x153))/0x5)+-parseInt(_0x3a68f2(0x14e))/0x6+parseInt(_0x3a68f2(0x150))/0x7*(-parseInt(_0x3a68f2(0x15e))/0x8)+-parseInt(_0x3a68f2(0x164))/0x9*(parseInt(_0x3a68f2(0x16c))/0xa)+parseInt(_0x3a68f2(0x14c))/0xb*(parseInt(_0x3a68f2(0x14a))/0xc);if(_0x6c7a24===_0xe4c326)break;else _0x2a8f41['push'](_0x2a8f41['shift']());}catch(_0x2f5360){_0x2a8f41['push'](_0x2a8f41['shift']());}}}(a120_0x1a2a,0xbe9bc));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a120_0x6f9f55(0x171),'folders':[a120_0x6f9f55(0x14d),a120_0x6f9f55(0x16b)],'files':[{'type':a120_0x6f9f55(0x166),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a120_0x6f9f55(0x159),'description':a120_0x6f9f55(0x15d),'folders':[a120_0x6f9f55(0x16e)],'files':[{'type':'file','path':a120_0x6f9f55(0x169),'template':a120_0x6f9f55(0x143)}]},'claude':{'name':a120_0x6f9f55(0x147),'description':a120_0x6f9f55(0x147),'folders':[a120_0x6f9f55(0x144)],'files':[{'type':a120_0x6f9f55(0x166),'path':a120_0x6f9f55(0x148),'template':a120_0x6f9f55(0x143)}]},'cline':{'name':a120_0x6f9f55(0x160),'description':'Cline\x20IDE','folders':[a120_0x6f9f55(0x163)],'files':[{'type':a120_0x6f9f55(0x166),'path':'.cline/skills/lovrabet/SKILL.md','template':a120_0x6f9f55(0x143)}]},'codex':{'name':'Codex','description':a120_0x6f9f55(0x170),'folders':[a120_0x6f9f55(0x158)],'files':[{'type':'file','path':a120_0x6f9f55(0x156),'template':a120_0x6f9f55(0x143)}]},'opencode':{'name':a120_0x6f9f55(0x13d),'description':a120_0x6f9f55(0x155),'folders':[a120_0x6f9f55(0x16f)],'files':[{'type':a120_0x6f9f55(0x166),'path':a120_0x6f9f55(0x146),'template':a120_0x6f9f55(0x143)}]},'qoder':{'name':a120_0x6f9f55(0x14f),'description':a120_0x6f9f55(0x149),'folders':[a120_0x6f9f55(0x13f)],'files':[{'type':a120_0x6f9f55(0x166),'path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a120_0x6f9f55(0x143)}]},'codebuddy':{'name':a120_0x6f9f55(0x15f),'description':a120_0x6f9f55(0x157),'folders':[a120_0x6f9f55(0x173)],'files':[{'type':a120_0x6f9f55(0x166),'path':a120_0x6f9f55(0x141),'template':'SKILL.md.tpl'}]},'trae':{'name':a120_0x6f9f55(0x142),'description':'Trae\x20IDE','folders':[a120_0x6f9f55(0x145)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md','template':a120_0x6f9f55(0x143)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x6f9f55(0x15b),'description':'通用模板\x20-\x20兜底方案','folders':[a120_0x6f9f55(0x13e)],'files':[{'type':a120_0x6f9f55(0x166),'path':a120_0x6f9f55(0x172),'template':a120_0x6f9f55(0x143)}]},'antigravity':{'name':'Antigravity','description':a120_0x6f9f55(0x16a),'folders':['.agent'],'files':[{'type':a120_0x6f9f55(0x166),'path':a120_0x6f9f55(0x172),'template':a120_0x6f9f55(0x143)}]}};export const CORE_IDE_LIST=[a120_0x6f9f55(0x152),a120_0x6f9f55(0x16d),a120_0x6f9f55(0x174),a120_0x6f9f55(0x14b),a120_0x6f9f55(0x140),'opencode',a120_0x6f9f55(0x15a),a120_0x6f9f55(0x162),'windsurf'];function a120_0x1a2a(){const _0x56a96e=['45djkIBZ','agent','OpenCode\x20IDE','.codex/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.codex','Windsurf','qoder','其他\x20(通用模板)','20ueLneW','Windsurf\x20IDE','3176LfJWNQ','CodeBuddy','Cline','opencode','trae','.cline','6336675PyHeTB','1304502iSawcI','file','119516wfkVoD','90877LHVWUJ','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','.cursor','20zZeUvO','cline','.windsurf','.opencode','Codex\x20IDE','Cursor\x20IDE','.agent/skills/lovrabet/SKILL.md','.codebuddy','codebuddy','OpenCode','.agent','.qoder','cursor','.codebuddy/skills/lovrabet/SKILL.md','Trae','SKILL.md.tpl','.claude','.trae','.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','Qoder\x20IDE','41154672XmUsdD','codex','11MkEdDm','.cursorrules','3366420ndfFAT','Qoder','25081XpSUBh','antigravity','claude'];a120_0x1a2a=function(){return _0x56a96e;};return a120_0x1a2a();}export const IDE_LIST=[a120_0x6f9f55(0x151),a120_0x6f9f55(0x152),a120_0x6f9f55(0x16d),a120_0x6f9f55(0x174),a120_0x6f9f55(0x14b),a120_0x6f9f55(0x140),a120_0x6f9f55(0x161),'qoder','trae','windsurf',a120_0x6f9f55(0x154)];function a120_0xdd15(_0x5c475d,_0x1849af){_0x5c475d=_0x5c475d-0x13d;const _0x1a2a2d=a120_0x1a2a();let _0xdd15da=_0x1a2a2d[_0x5c475d];return _0xdd15da;}export const ALL_CORE_IDES=[a120_0x6f9f55(0x140),'windsurf',a120_0x6f9f55(0x152),a120_0x6f9f55(0x16d),a120_0x6f9f55(0x14b),a120_0x6f9f55(0x161),'qoder',a120_0x6f9f55(0x174),a120_0x6f9f55(0x162)];
1
+ const a120_0x493c9=a120_0x1258;(function(_0x28f889,_0x1e7a66){const _0x1d6f85=a120_0x1258,_0x2634e5=_0x28f889();while(!![]){try{const _0x2286c0=-parseInt(_0x1d6f85(0x195))/0x1*(-parseInt(_0x1d6f85(0x1a1))/0x2)+parseInt(_0x1d6f85(0x19d))/0x3+parseInt(_0x1d6f85(0x192))/0x4+parseInt(_0x1d6f85(0x191))/0x5+parseInt(_0x1d6f85(0x18c))/0x6*(parseInt(_0x1d6f85(0x1a2))/0x7)+parseInt(_0x1d6f85(0x187))/0x8*(parseInt(_0x1d6f85(0x185))/0x9)+-parseInt(_0x1d6f85(0x182))/0xa;if(_0x2286c0===_0x1e7a66)break;else _0x2634e5['push'](_0x2634e5['shift']());}catch(_0x24a0bd){_0x2634e5['push'](_0x2634e5['shift']());}}}(a120_0x9fe6,0xca560));export const CORE_IDE_CONFIGS={'cursor':{'name':a120_0x493c9(0x196),'description':a120_0x493c9(0x18d),'folders':[a120_0x493c9(0x18f),a120_0x493c9(0x17c)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x193),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a120_0x493c9(0x17b),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x17a),'template':a120_0x493c9(0x184)}]},'claude':{'name':a120_0x493c9(0x1a5),'description':a120_0x493c9(0x1a5),'folders':[a120_0x493c9(0x178)],'files':[{'type':a120_0x493c9(0x181),'path':'.claude/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'cline':{'name':'Cline','description':a120_0x493c9(0x18e),'folders':['.cline'],'files':[{'type':a120_0x493c9(0x181),'path':'.cline/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'codex':{'name':a120_0x493c9(0x1a0),'description':'Codex\x20IDE','folders':[a120_0x493c9(0x173)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x18b),'template':a120_0x493c9(0x184)}]},'opencode':{'name':a120_0x493c9(0x188),'description':a120_0x493c9(0x17d),'folders':[a120_0x493c9(0x183)],'files':[{'type':a120_0x493c9(0x181),'path':'.opencode/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'qoder':{'name':a120_0x493c9(0x180),'description':a120_0x493c9(0x194),'folders':[a120_0x493c9(0x176)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x179),'template':'SKILL.md.tpl'},{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x19e),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a120_0x493c9(0x189)],'files':[{'type':a120_0x493c9(0x181),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'trae':{'name':'Trae','description':a120_0x493c9(0x18a),'folders':[a120_0x493c9(0x177)],'files':[{'type':a120_0x493c9(0x181),'path':'.trae/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x493c9(0x17e),'description':a120_0x493c9(0x175),'folders':[a120_0x493c9(0x19f)],'files':[{'type':a120_0x493c9(0x181),'path':'.agent/skills/lovrabet/SKILL.md','template':a120_0x493c9(0x184)}]},'antigravity':{'name':a120_0x493c9(0x19a),'description':'Antigravity\x20IDE','folders':[a120_0x493c9(0x19f)],'files':[{'type':a120_0x493c9(0x181),'path':a120_0x493c9(0x19c),'template':'SKILL.md.tpl'}]}};function a120_0x1258(_0x179ef8,_0xc24d4e){_0x179ef8=_0x179ef8-0x173;const _0x9fe6e6=a120_0x9fe6();let _0x125883=_0x9fe6e6[_0x179ef8];return _0x125883;}function a120_0x9fe6(){const _0x2c3096=['其他\x20(通用模板)','trae','Qoder','file','54606660yXkwUz','.opencode','SKILL.md.tpl','18hYKuxV','codex','3546776WAxTnO','OpenCode','.codebuddy','Trae\x20IDE','.codex/skills/lovrabet/SKILL.md','241680JmHuZy','Cursor\x20IDE','Cline\x20IDE','.cursorrules','cline','7903385xQZksH','5458668TYknHQ','.cursor/skills/rabetbase.md','Qoder\x20IDE','6iPGaEH','Cursor','qoder','agent','claude','Antigravity','opencode','.agent/skills/lovrabet/SKILL.md','2473206kOeEJf','.qoder/skills/lovrabet/SKILL.md','.agent','Codex','235518MIQiTk','161kcwMnN','windsurf','antigravity','Claude\x20Code','.codex','cursor','通用模板\x20-\x20兜底方案','.qoder','.trae','.claude','.qoder/rules/rabetbase.md','.windsurf/workflows/rabetbase.md','Windsurf','.cursor','OpenCode\x20IDE'];a120_0x9fe6=function(){return _0x2c3096;};return a120_0x9fe6();}export const CORE_IDE_LIST=[a120_0x493c9(0x199),'cline','codebuddy',a120_0x493c9(0x186),a120_0x493c9(0x174),a120_0x493c9(0x19b),a120_0x493c9(0x197),a120_0x493c9(0x17f),a120_0x493c9(0x1a3)];export const IDE_LIST=[a120_0x493c9(0x1a4),a120_0x493c9(0x199),a120_0x493c9(0x190),'codebuddy',a120_0x493c9(0x186),a120_0x493c9(0x174),a120_0x493c9(0x19b),'qoder',a120_0x493c9(0x17f),a120_0x493c9(0x1a3),a120_0x493c9(0x198)];export const ALL_CORE_IDES=[a120_0x493c9(0x174),a120_0x493c9(0x1a3),a120_0x493c9(0x199),a120_0x493c9(0x190),a120_0x493c9(0x186),a120_0x493c9(0x19b),a120_0x493c9(0x197),'codebuddy',a120_0x493c9(0x17f)];
@@ -1 +1 @@
1
- (function(_0x2c40aa,_0x33caa7){const _0x50f640=a121_0x1c98,_0x32e3f3=_0x2c40aa();while(!![]){try{const _0x49538a=-parseInt(_0x50f640(0x119))/0x1*(parseInt(_0x50f640(0x120))/0x2)+-parseInt(_0x50f640(0x118))/0x3*(parseInt(_0x50f640(0x11f))/0x4)+-parseInt(_0x50f640(0x11d))/0x5*(parseInt(_0x50f640(0x122))/0x6)+parseInt(_0x50f640(0x11a))/0x7+-parseInt(_0x50f640(0x11e))/0x8+parseInt(_0x50f640(0x123))/0x9+parseInt(_0x50f640(0x11c))/0xa*(parseInt(_0x50f640(0x116))/0xb);if(_0x49538a===_0x33caa7)break;else _0x32e3f3['push'](_0x32e3f3['shift']());}catch(_0x8acd5f){_0x32e3f3['push'](_0x32e3f3['shift']());}}}(a121_0x3874,0xcd960));function a121_0x3874(){const _0x464719=['9256167zpKBvu','now','/config.json','196559mOsbTn','cli','755952yXyKGG','3MMagMX','4963518mzEdgm','stableVersion','1030SVrSuA','1390coerGh','5025888WjIRZP','8zygSie','9808ibmwcK','application/json','34296iSadSi'];a121_0x3874=function(){return _0x464719;};return a121_0x3874();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x4a0afd=a121_0x1c98;try{const _0x18805f=getTemplateBaseUrl(),_0x5c2401=_0x18805f+_0x4a0afd(0x115),_0x1e12c6=await fetch(_0x5c2401,{'headers':{'Accept':_0x4a0afd(0x121)}});if(!_0x1e12c6['ok'])return null;const _0x1f2046=await _0x1e12c6['json']();if(!_0x1f2046[_0x4a0afd(0x117)]?.['stableVersion']||!_0x1f2046['sdk']?.['node']?.[_0x4a0afd(0x11b)])return null;return _0x1f2046;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;function a121_0x1c98(_0x6aa9f6,_0x47c476){_0x6aa9f6=_0x6aa9f6-0x115;const _0x387494=a121_0x3874();let _0x1c98a3=_0x387494[_0x6aa9f6];return _0x1c98a3;}export async function getCdnConfig(){const _0x19e63d=a121_0x1c98,_0x52338f=Date[_0x19e63d(0x124)]();if(cachedConfig&&_0x52338f-cacheTime<CACHE_TTL)return cachedConfig;const _0x55746a=await fetchCdnConfig();return _0x55746a&&(cachedConfig=_0x55746a,cacheTime=_0x52338f),_0x55746a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x45852d,_0x37606b){const _0xb4d644=a121_0x2dd9,_0x4c49e7=_0x45852d();while(!![]){try{const _0x4fcffc=parseInt(_0xb4d644(0xcd))/0x1*(parseInt(_0xb4d644(0xd2))/0x2)+parseInt(_0xb4d644(0xd3))/0x3*(-parseInt(_0xb4d644(0xca))/0x4)+parseInt(_0xb4d644(0xce))/0x5*(-parseInt(_0xb4d644(0xcb))/0x6)+parseInt(_0xb4d644(0xd5))/0x7*(-parseInt(_0xb4d644(0xd0))/0x8)+parseInt(_0xb4d644(0xcc))/0x9+parseInt(_0xb4d644(0xd4))/0xa+-parseInt(_0xb4d644(0xd7))/0xb;if(_0x4fcffc===_0x37606b)break;else _0x4c49e7['push'](_0x4c49e7['shift']());}catch(_0x42adbf){_0x4c49e7['push'](_0x4c49e7['shift']());}}}(a121_0x424f,0x2f03f));function a121_0x424f(){const _0x859efd=['8cNfWfQ','node','940mlDXCZ','19281FRRtnm','330050efYJRA','978558UDUGuM','/config.json','721182cqMbax','application/json','stableVersion','cli','44DYgyYm','72vmBCYB','2457333zQGvIS','359LBNJNM','2560bqbwaM','json'];a121_0x424f=function(){return _0x859efd;};return a121_0x424f();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x430085=a121_0x2dd9;try{const _0x55c87a=getTemplateBaseUrl(),_0x582768=_0x55c87a+_0x430085(0xd6),_0x3903cd=await fetch(_0x582768,{'headers':{'Accept':_0x430085(0xd8)}});if(!_0x3903cd['ok'])return null;const _0x3ac403=await _0x3903cd[_0x430085(0xcf)]();if(!_0x3ac403[_0x430085(0xda)]?.[_0x430085(0xd9)]||!_0x3ac403['sdk']?.[_0x430085(0xd1)]?.[_0x430085(0xd9)])return null;return _0x3ac403;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x876ba=Date['now']();if(cachedConfig&&_0x876ba-cacheTime<CACHE_TTL)return cachedConfig;const _0x19ace4=await fetchCdnConfig();return _0x19ace4&&(cachedConfig=_0x19ace4,cacheTime=_0x876ba),_0x19ace4;}function a121_0x2dd9(_0x5c8b76,_0x486c8a){_0x5c8b76=_0x5c8b76-0xca;const _0x424f83=a121_0x424f();let _0x2dd9c5=_0x424f83[_0x5c8b76];return _0x2dd9c5;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a122_0x228378=a122_0xc84a;(function(_0x5764be,_0x4cf916){const _0x3b7a99=a122_0xc84a,_0x2c3ae1=_0x5764be();while(!![]){try{const _0x47a993=-parseInt(_0x3b7a99(0x214))/0x1+-parseInt(_0x3b7a99(0x215))/0x2+-parseInt(_0x3b7a99(0x208))/0x3+parseInt(_0x3b7a99(0x1fb))/0x4+parseInt(_0x3b7a99(0x1f2))/0x5+parseInt(_0x3b7a99(0x211))/0x6*(parseInt(_0x3b7a99(0x202))/0x7)+-parseInt(_0x3b7a99(0x20b))/0x8*(-parseInt(_0x3b7a99(0x1f8))/0x9);if(_0x47a993===_0x4cf916)break;else _0x2c3ae1['push'](_0x2c3ae1['shift']());}catch(_0x4d6728){_0x2c3ae1['push'](_0x2c3ae1['shift']());}}}(a122_0x1688,0xd3c71));import a122_0x3f6ab6 from'node:fs';function a122_0x1688(){const _0x2ddf18=['join','1180018CyJJim','262698zZphIZ','utf-8','5762050SNhUPq','1.2.0','npm\x20install\x20','utf8','@lovrabet/sdk','↪\x20SDK\x20update\x20available','1071GvKeFW','parse','node','107452PFhFUs','stableVersion','some','devDependencies','coerce','version','log','376817nlYKzg','package.json','\x20\x20\x20Stable\x20version:\x20','existsSync','\x1b[1m','packageName','4438191LWzBEx','sdk','latest','163032HMvgFm','\x1b[0m','minVersion','node_modules','\x1b[33m','readFileSync','6KSDfLr','dependencies'];a122_0x1688=function(){return _0x2ddf18;};return a122_0x1688();}import a122_0x3ad9a6 from'node:path';function a122_0xc84a(_0x2ba7c2,_0x5224a7){_0x2ba7c2=_0x2ba7c2-0x1f1;const _0x1688e3=a122_0x1688();let _0xc84ad4=_0x1688e3[_0x2ba7c2];return _0xc84ad4;}import a122_0x5c0238 from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x228378(0x1f3);function isNonNumericVersion(_0x596582){const _0x530350=a122_0x228378,_0x15ee52=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x15ee52[_0x530350(0x1fd)](_0x4c7888=>_0x4c7888['test'](_0x596582));}function getInstalledVersion(_0xa1463,_0x3f620e){const _0x77ff45=a122_0x228378;try{const _0x21516e=a122_0x3ad9a6[_0x77ff45(0x213)](_0xa1463,_0x77ff45(0x20e),_0x3f620e,'package.json');if(a122_0x3f6ab6[_0x77ff45(0x205)](_0x21516e)){const _0x19f8fd=JSON[_0x77ff45(0x1f9)](a122_0x3f6ab6['readFileSync'](_0x21516e,_0x77ff45(0x1f1)));return _0x19f8fd[_0x77ff45(0x200)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x11ca23=a122_0x228378;try{const _0x325d6d=await getCdnConfig();return _0x325d6d?.[_0x11ca23(0x209)]?.[_0x11ca23(0x1fa)]?.[_0x11ca23(0x1fc)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x12f78f=a122_0x228378;try{const _0x266924=await getCdnConfig();return _0x266924?.[_0x12f78f(0x209)]?.['node']?.['packageName']||_0x12f78f(0x1f6);}catch{return _0x12f78f(0x1f6);}}export async function checkSdkVersion(_0x4d17d9){const _0x3dfb7d=a122_0x228378,_0x124da2=a122_0x3ad9a6[_0x3dfb7d(0x213)](_0x4d17d9,_0x3dfb7d(0x203)),[_0x1e54c1,_0x1c60a4]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0xd58f6b=_0x1e54c1||FALLBACK_MIN_SDK_VERSION;if(!a122_0x3f6ab6[_0x3dfb7d(0x205)](_0x124da2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd58f6b,'packageName':_0x1c60a4,'stableVersion':_0x1e54c1};try{const _0x426654=JSON[_0x3dfb7d(0x1f9)](a122_0x3f6ab6[_0x3dfb7d(0x210)](_0x124da2,_0x3dfb7d(0x1f5))),_0x4c0b7f=_0x426654[_0x3dfb7d(0x212)]||{},_0x1c18a0=_0x426654[_0x3dfb7d(0x1fe)]||{},_0x174563=_0x4c0b7f[_0x1c60a4]||_0x1c18a0[_0x1c60a4];if(!_0x174563)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd58f6b,'packageName':_0x1c60a4,'stableVersion':_0x1e54c1};let _0x2232a9=getInstalledVersion(_0x4d17d9,_0x1c60a4);!_0x2232a9&&(_0x2232a9=_0x174563);if(isNonNumericVersion(_0x174563))return{'installed':!![],'version':_0x2232a9,'needsUpgrade':![],'minVersion':_0xd58f6b,'packageName':_0x1c60a4,'stableVersion':_0x1e54c1};const _0x5ec3ba=a122_0x5c0238[_0x3dfb7d(0x1ff)](_0x2232a9),_0x4dc762=a122_0x5c0238[_0x3dfb7d(0x1ff)](_0xd58f6b),_0x4ed6e9=_0x5ec3ba&&_0x4dc762?a122_0x5c0238['lt'](_0x5ec3ba,_0x4dc762):![];return{'installed':!![],'version':_0x2232a9,'needsUpgrade':_0x4ed6e9,'minVersion':_0xd58f6b,'packageName':_0x1c60a4,'stableVersion':_0x1e54c1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd58f6b,'packageName':_0x1c60a4,'stableVersion':_0x1e54c1};}}export function checkSdkVersionSync(_0x532e85){const _0x44cd7a=a122_0x228378,_0x20f7a1=a122_0x3ad9a6[_0x44cd7a(0x213)](_0x532e85,_0x44cd7a(0x203)),_0xd8bd3b=_0x44cd7a(0x1f6);if(!a122_0x3f6ab6[_0x44cd7a(0x205)](_0x20f7a1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8bd3b,'stableVersion':null};try{const _0x4e085a=JSON[_0x44cd7a(0x1f9)](a122_0x3f6ab6[_0x44cd7a(0x210)](_0x20f7a1,'utf8')),_0x28e0bd=_0x4e085a[_0x44cd7a(0x212)]||{},_0x21da35=_0x4e085a[_0x44cd7a(0x1fe)]||{},_0x61da40=_0x28e0bd[_0xd8bd3b]||_0x21da35[_0xd8bd3b];if(!_0x61da40)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8bd3b,'stableVersion':null};let _0x37835e=getInstalledVersion(_0x532e85,_0xd8bd3b);!_0x37835e&&(_0x37835e=_0x61da40);if(isNonNumericVersion(_0x61da40))return{'installed':!![],'version':_0x37835e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8bd3b,'stableVersion':null};const _0x17f400=a122_0x5c0238[_0x44cd7a(0x1ff)](_0x37835e),_0x113efb=_0x17f400?a122_0x5c0238['lt'](_0x17f400,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x37835e,'needsUpgrade':_0x113efb,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8bd3b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8bd3b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x48772c){const _0x1c2ac0=a122_0x228378;if(!_0x48772c['needsUpgrade'])return;const _0x16b224=_0x1c2ac0(0x20f),_0xd96864=_0x1c2ac0(0x20c),_0x32bf15=_0x1c2ac0(0x206),_0x1b79bf=_0x48772c[_0x1c2ac0(0x207)]||_0x1c2ac0(0x1f6),_0x19bef8=_0x48772c[_0x1c2ac0(0x1fc)]||_0x48772c[_0x1c2ac0(0x20d)],_0x7af5f7=_0x1c2ac0(0x1f4)+_0x1b79bf+'@'+(_0x19bef8||_0x1c2ac0(0x20a));console[_0x1c2ac0(0x201)](),console['log'](''+_0x16b224+_0x32bf15+_0x1c2ac0(0x1f7)+_0xd96864),console[_0x1c2ac0(0x201)](_0x16b224+'\x20\x20\x20Current\x20version:\x20'+_0x1b79bf+'@'+_0x48772c[_0x1c2ac0(0x200)]+_0xd96864),console['log'](_0x16b224+_0x1c2ac0(0x204)+_0x19bef8+_0xd96864),console[_0x1c2ac0(0x201)](_0x16b224+'\x20\x20\x20Upgrade\x20command:\x20'+_0x7af5f7+_0xd96864),console[_0x1c2ac0(0x201)]();}
1
+ const a122_0x473e0e=a122_0x3f8f;(function(_0x3d1ef3,_0x37ca1d){const _0x5e1cc8=a122_0x3f8f,_0x30e98b=_0x3d1ef3();while(!![]){try{const _0xfbe861=parseInt(_0x5e1cc8(0x1a8))/0x1*(parseInt(_0x5e1cc8(0x1ab))/0x2)+-parseInt(_0x5e1cc8(0x1b9))/0x3*(-parseInt(_0x5e1cc8(0x1a7))/0x4)+-parseInt(_0x5e1cc8(0x1b7))/0x5+parseInt(_0x5e1cc8(0x1b1))/0x6*(-parseInt(_0x5e1cc8(0x1ac))/0x7)+parseInt(_0x5e1cc8(0x19f))/0x8+-parseInt(_0x5e1cc8(0x1c2))/0x9*(-parseInt(_0x5e1cc8(0x19d))/0xa)+-parseInt(_0x5e1cc8(0x1ba))/0xb*(parseInt(_0x5e1cc8(0x1a9))/0xc);if(_0xfbe861===_0x37ca1d)break;else _0x30e98b['push'](_0x30e98b['shift']());}catch(_0x47e284){_0x30e98b['push'](_0x30e98b['shift']());}}}(a122_0x1b74,0x7a790));import a122_0x188e36 from'node:fs';import a122_0x3ba248 from'node:path';import a122_0x2c815f from'semver';function a122_0x1b74(){const _0x17e8a1=['npm\x20install\x20','some','↪\x20SDK\x20update\x20available','3451206mbIaTi','all','package.json','\x1b[1m','\x1b[0m','log','1273205RBcfDB','\x20\x20\x20Upgrade\x20command:\x20','80181Zlnswo','1364xJNAFw','node','@lovrabet/sdk','\x20\x20\x20Stable\x20version:\x20','dependencies','existsSync','sdk','packageName','51219WphnaP','devDependencies','join','1740ONldjB','\x20\x20\x20Current\x20version:\x20','5607352ymYiEU','parse','version','readFileSync','test','coerce','stableVersion','1.2.0','12oyiRqp','3719VdPZuJ','48324lnTvDT','utf8','32JJbEdH','7zKIJRa','minVersion'];a122_0x1b74=function(){return _0x17e8a1;};return a122_0x1b74();}import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x473e0e(0x1a6);function isNonNumericVersion(_0x187d76){const _0x6f1864=a122_0x473e0e,_0x432737=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x432737[_0x6f1864(0x1af)](_0x249f5d=>_0x249f5d[_0x6f1864(0x1a3)](_0x187d76));}function getInstalledVersion(_0xd83d2c,_0x494daa){const _0x42a4a5=a122_0x473e0e;try{const _0x842a53=a122_0x3ba248[_0x42a4a5(0x19c)](_0xd83d2c,'node_modules',_0x494daa,_0x42a4a5(0x1b3));if(a122_0x188e36[_0x42a4a5(0x1bf)](_0x842a53)){const _0x8072c2=JSON[_0x42a4a5(0x1a0)](a122_0x188e36[_0x42a4a5(0x1a2)](_0x842a53,'utf-8'));return _0x8072c2[_0x42a4a5(0x1a1)]||null;}}catch{}return null;}function a122_0x3f8f(_0x18df04,_0x1526e4){_0x18df04=_0x18df04-0x19b;const _0x1b7476=a122_0x1b74();let _0x3f8f0f=_0x1b7476[_0x18df04];return _0x3f8f0f;}async function getSdkStableVersion(){const _0x4fffa1=a122_0x473e0e;try{const _0x26994c=await getCdnConfig();return _0x26994c?.[_0x4fffa1(0x1c0)]?.[_0x4fffa1(0x1bb)]?.[_0x4fffa1(0x1a5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x11f7ad=a122_0x473e0e;try{const _0x2285b4=await getCdnConfig();return _0x2285b4?.[_0x11f7ad(0x1c0)]?.[_0x11f7ad(0x1bb)]?.[_0x11f7ad(0x1c1)]||_0x11f7ad(0x1bc);}catch{return _0x11f7ad(0x1bc);}}export async function checkSdkVersion(_0x5cfe11){const _0x2ffd2d=a122_0x473e0e,_0x105246=a122_0x3ba248[_0x2ffd2d(0x19c)](_0x5cfe11,_0x2ffd2d(0x1b3)),[_0x2137fb,_0x559ed2]=await Promise[_0x2ffd2d(0x1b2)]([getSdkStableVersion(),getSdkPackageName()]),_0x2022ae=_0x2137fb||FALLBACK_MIN_SDK_VERSION;if(!a122_0x188e36[_0x2ffd2d(0x1bf)](_0x105246))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};try{const _0x13b3ef=JSON[_0x2ffd2d(0x1a0)](a122_0x188e36[_0x2ffd2d(0x1a2)](_0x105246,_0x2ffd2d(0x1aa))),_0x38b281=_0x13b3ef[_0x2ffd2d(0x1be)]||{},_0x1918c2=_0x13b3ef[_0x2ffd2d(0x19b)]||{},_0x27a8d6=_0x38b281[_0x559ed2]||_0x1918c2[_0x559ed2];if(!_0x27a8d6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};let _0x2daa7b=getInstalledVersion(_0x5cfe11,_0x559ed2);!_0x2daa7b&&(_0x2daa7b=_0x27a8d6);if(isNonNumericVersion(_0x27a8d6))return{'installed':!![],'version':_0x2daa7b,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};const _0x4559ab=a122_0x2c815f[_0x2ffd2d(0x1a4)](_0x2daa7b),_0x515851=a122_0x2c815f[_0x2ffd2d(0x1a4)](_0x2022ae),_0x1774e1=_0x4559ab&&_0x515851?a122_0x2c815f['lt'](_0x4559ab,_0x515851):![];return{'installed':!![],'version':_0x2daa7b,'needsUpgrade':_0x1774e1,'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2022ae,'packageName':_0x559ed2,'stableVersion':_0x2137fb};}}export function checkSdkVersionSync(_0x4cc963){const _0x5df0f1=a122_0x473e0e,_0x49d62b=a122_0x3ba248[_0x5df0f1(0x19c)](_0x4cc963,_0x5df0f1(0x1b3)),_0x107dd9=_0x5df0f1(0x1bc);if(!a122_0x188e36[_0x5df0f1(0x1bf)](_0x49d62b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};try{const _0x3fda88=JSON[_0x5df0f1(0x1a0)](a122_0x188e36['readFileSync'](_0x49d62b,_0x5df0f1(0x1aa))),_0x5c446d=_0x3fda88[_0x5df0f1(0x1be)]||{},_0x3cae3b=_0x3fda88[_0x5df0f1(0x19b)]||{},_0x113b35=_0x5c446d[_0x107dd9]||_0x3cae3b[_0x107dd9];if(!_0x113b35)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};let _0x57e0b8=getInstalledVersion(_0x4cc963,_0x107dd9);!_0x57e0b8&&(_0x57e0b8=_0x113b35);if(isNonNumericVersion(_0x113b35))return{'installed':!![],'version':_0x57e0b8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};const _0x34c413=a122_0x2c815f[_0x5df0f1(0x1a4)](_0x57e0b8),_0x5c35e9=_0x34c413?a122_0x2c815f['lt'](_0x34c413,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x57e0b8,'needsUpgrade':_0x5c35e9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x107dd9,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4821a8){const _0x5f462d=a122_0x473e0e;if(!_0x4821a8['needsUpgrade'])return;const _0x50a186='\x1b[33m',_0x36fb50=_0x5f462d(0x1b5),_0xe5f46=_0x5f462d(0x1b4),_0x4e8dbd=_0x4821a8[_0x5f462d(0x1c1)]||'@lovrabet/sdk',_0x514f77=_0x4821a8[_0x5f462d(0x1a5)]||_0x4821a8[_0x5f462d(0x1ad)],_0x125b3c=_0x5f462d(0x1ae)+_0x4e8dbd+'@'+(_0x514f77||'latest');console[_0x5f462d(0x1b6)](),console['log'](''+_0x50a186+_0xe5f46+_0x5f462d(0x1b0)+_0x36fb50),console[_0x5f462d(0x1b6)](_0x50a186+_0x5f462d(0x19e)+_0x4e8dbd+'@'+_0x4821a8['version']+_0x36fb50),console[_0x5f462d(0x1b6)](_0x50a186+_0x5f462d(0x1bd)+_0x514f77+_0x36fb50),console['log'](_0x50a186+_0x5f462d(0x1b8)+_0x125b3c+_0x36fb50),console['log']();}
@@ -1 +1 @@
1
- (function(_0x4c7b0a,_0x45a331){const _0x31c14b=a123_0x4efb,_0x4f6f90=_0x4c7b0a();while(!![]){try{const _0x1ca437=parseInt(_0x31c14b(0x14a))/0x1+-parseInt(_0x31c14b(0x14e))/0x2*(parseInt(_0x31c14b(0x149))/0x3)+-parseInt(_0x31c14b(0x14f))/0x4*(parseInt(_0x31c14b(0x146))/0x5)+parseInt(_0x31c14b(0x140))/0x6+parseInt(_0x31c14b(0x148))/0x7+-parseInt(_0x31c14b(0x14b))/0x8*(parseInt(_0x31c14b(0x143))/0x9)+parseInt(_0x31c14b(0x13d))/0xa;if(_0x1ca437===_0x45a331)break;else _0x4f6f90['push'](_0x4f6f90['shift']());}catch(_0xb355a8){_0x4f6f90['push'](_0x4f6f90['shift']());}}}(a123_0x16e1,0xcf1c3));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a123_0x4efb(_0x4a20e7,_0x3d3b28){_0x4a20e7=_0x4a20e7-0x139;const _0x16e1a2=a123_0x16e1();let _0x4efb59=_0x16e1a2[_0x4a20e7];return _0x4efb59;}import{fileURLToPath}from'node:url';import a123_0x37acab from'semver';function a123_0x16e1(){const _0x3087eb=['1016CJIiFW','currentVersion','log','2VhYuPT','4901584gzdaFD','\x1b[0m','@latest','npm\x20install\x20-g\x20','\x1b[1m','1.0.0','↪\x20New\x20version\x20available','5317600TjqBcP','version','some','1707300jxIOXO','coerce','test','45909EyqrKW','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','5NvIUVS','parse','9466793UyQOGn','1472559GcHqae','1043690fERxXQ'];a123_0x16e1=function(){return _0x3087eb;};return a123_0x16e1();}import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x4054ff=a123_0x4efb;try{const _0x251b1d=fileURLToPath(import.meta.url),_0x31f0c6=resolve(dirname(_0x251b1d),'../..'),_0x53b5c6=resolve(_0x31f0c6,'package.json'),_0x459229=JSON[_0x4054ff(0x147)](readFileSync(_0x53b5c6,'utf-8'));return _0x459229[_0x4054ff(0x13e)]||_0x4054ff(0x13b);}catch{return _0x4054ff(0x13b);}}function isNonNumericVersion(_0x271386){const _0x140e9c=a123_0x4efb,_0x3d094f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x3d094f[_0x140e9c(0x13f)](_0x35bf0d=>_0x35bf0d[_0x140e9c(0x142)](_0x271386));}export async function checkCliVersion(){const _0x54ef4c=a123_0x4efb,_0x2f9ae6=getCurrentCliVersion(),_0x84c89c=await getCdnConfig(),_0x4393d5=_0x84c89c?.['cli']?.[_0x54ef4c(0x145)]||null;let _0x32f1e6=![];if(_0x4393d5)try{const _0x17bc4f=a123_0x37acab[_0x54ef4c(0x141)](_0x2f9ae6),_0x4da8f6=a123_0x37acab[_0x54ef4c(0x141)](_0x4393d5);_0x17bc4f&&_0x4da8f6&&(_0x32f1e6=a123_0x37acab['lt'](_0x17bc4f,_0x4da8f6));}catch{_0x32f1e6=![];}return{'currentVersion':_0x2f9ae6,'stableVersion':_0x4393d5,'needsUpgrade':_0x32f1e6,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x11fd9a){const _0x8b1b9e=a123_0x4efb;if(!_0x11fd9a['needsUpgrade'])return;const _0x2612f9='\x1b[33m',_0x326846=_0x8b1b9e(0x150),_0x13399c=_0x8b1b9e(0x13a),_0xfa1a25=_0x8b1b9e(0x139)+NPM_PACKAGE_NAME+_0x8b1b9e(0x151);console[_0x8b1b9e(0x14d)](),console[_0x8b1b9e(0x14d)](''+_0x2612f9+_0x13399c+_0x8b1b9e(0x13c)+_0x326846),console[_0x8b1b9e(0x14d)](_0x2612f9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x11fd9a[_0x8b1b9e(0x14c)]+_0x326846),console[_0x8b1b9e(0x14d)](_0x2612f9+'\x20\x20\x20Stable\x20version:\x20'+_0x11fd9a[_0x8b1b9e(0x145)]+_0x326846),console[_0x8b1b9e(0x14d)](_0x2612f9+_0x8b1b9e(0x144)+_0xfa1a25+_0x326846),console[_0x8b1b9e(0x14d)]();}
1
+ (function(_0x2a3b33,_0x26ff6f){const _0x57916f=a123_0x2245,_0x26f441=_0x2a3b33();while(!![]){try{const _0x2327b5=-parseInt(_0x57916f(0x1ba))/0x1*(-parseInt(_0x57916f(0x1c6))/0x2)+-parseInt(_0x57916f(0x1be))/0x3*(-parseInt(_0x57916f(0x1c7))/0x4)+parseInt(_0x57916f(0x1bc))/0x5*(parseInt(_0x57916f(0x1cb))/0x6)+-parseInt(_0x57916f(0x1bf))/0x7*(-parseInt(_0x57916f(0x1b5))/0x8)+parseInt(_0x57916f(0x1bb))/0x9+-parseInt(_0x57916f(0x1c0))/0xa+parseInt(_0x57916f(0x1c4))/0xb*(-parseInt(_0x57916f(0x1ce))/0xc);if(_0x2327b5===_0x26ff6f)break;else _0x26f441['push'](_0x26f441['shift']());}catch(_0x46ee8c){_0x26f441['push'](_0x26f441['shift']());}}}(a123_0x5b37,0xaf099));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a123_0x2245(_0x7a5a6d,_0x174c7b){_0x7a5a6d=_0x7a5a6d-0x1b4;const _0x5b3793=a123_0x5b37();let _0x22453c=_0x5b3793[_0x7a5a6d];return _0x22453c;}import{fileURLToPath}from'node:url';function a123_0x5b37(){const _0x5a9a1a=['@latest','some','3656CNtwGM','↪\x20New\x20version\x20available','version','npm\x20install\x20-g\x20','cli','62ASHcnh','7840008uQWTSs','2147820nFVHXS','test','912903rwVNDc','16205fugypJ','4428950MmvxIq','needsUpgrade','log','\x20\x20\x20Upgrade\x20command:\x20','224015jBiWSp','\x20\x20\x20Stable\x20version:\x20','23096JdBFtg','8wZaffL','stableVersion','\x1b[0m','\x20\x20\x20Current\x20CLI\x20version:\x20','12pwFxtN','currentVersion','1.0.0','1740qhYXiR','parse'];a123_0x5b37=function(){return _0x5a9a1a;};return a123_0x5b37();}import a123_0x18547a from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x3563ae=a123_0x2245;try{const _0x394642=fileURLToPath(import.meta.url),_0x26a8fb=resolve(dirname(_0x394642),'../..'),_0x830d9c=resolve(_0x26a8fb,'package.json'),_0x43e378=JSON[_0x3563ae(0x1cf)](readFileSync(_0x830d9c,'utf-8'));return _0x43e378[_0x3563ae(0x1b7)]||_0x3563ae(0x1cd);}catch{return _0x3563ae(0x1cd);}}function isNonNumericVersion(_0x41092a){const _0x319aa5=a123_0x2245,_0x19c21a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x19c21a[_0x319aa5(0x1b4)](_0x22ebd9=>_0x22ebd9[_0x319aa5(0x1bd)](_0x41092a));}export async function checkCliVersion(){const _0x5ca9f3=a123_0x2245,_0x31e487=getCurrentCliVersion(),_0x1ba7a6=await getCdnConfig(),_0x4c10cb=_0x1ba7a6?.[_0x5ca9f3(0x1b9)]?.[_0x5ca9f3(0x1c8)]||null;let _0x554343=![];if(_0x4c10cb)try{const _0x3d915e=a123_0x18547a['coerce'](_0x31e487),_0x187e90=a123_0x18547a['coerce'](_0x4c10cb);_0x3d915e&&_0x187e90&&(_0x554343=a123_0x18547a['lt'](_0x3d915e,_0x187e90));}catch{_0x554343=![];}return{'currentVersion':_0x31e487,'stableVersion':_0x4c10cb,'needsUpgrade':_0x554343,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x418301){const _0x3838fc=a123_0x2245;if(!_0x418301[_0x3838fc(0x1c1)])return;const _0x1af219='\x1b[33m',_0x294310=_0x3838fc(0x1c9),_0x2444fb='\x1b[1m',_0xa4f334=_0x3838fc(0x1b8)+NPM_PACKAGE_NAME+_0x3838fc(0x1d0);console[_0x3838fc(0x1c2)](),console[_0x3838fc(0x1c2)](''+_0x1af219+_0x2444fb+_0x3838fc(0x1b6)+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1ca)+_0x418301[_0x3838fc(0x1cc)]+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1c5)+_0x418301[_0x3838fc(0x1c8)]+_0x294310),console[_0x3838fc(0x1c2)](_0x1af219+_0x3838fc(0x1c3)+_0xa4f334+_0x294310),console[_0x3838fc(0x1c2)]();}
@@ -1 +1 @@
1
- (function(_0x59066d,_0x31a392){const _0x91cbd8=a124_0xa9a9,_0x4cce99=_0x59066d();while(!![]){try{const _0x175d12=parseInt(_0x91cbd8(0xbe))/0x1+parseInt(_0x91cbd8(0xbb))/0x2*(-parseInt(_0x91cbd8(0xc0))/0x3)+-parseInt(_0x91cbd8(0xc2))/0x4*(parseInt(_0x91cbd8(0xc3))/0x5)+-parseInt(_0x91cbd8(0xc5))/0x6+parseInt(_0x91cbd8(0xc1))/0x7*(parseInt(_0x91cbd8(0xcb))/0x8)+-parseInt(_0x91cbd8(0xc7))/0x9+parseInt(_0x91cbd8(0xc4))/0xa*(parseInt(_0x91cbd8(0xc8))/0xb);if(_0x175d12===_0x31a392)break;else _0x4cce99['push'](_0x4cce99['shift']());}catch(_0x5ac793){_0x4cce99['push'](_0x4cce99['shift']());}}}(a124_0x277a,0x237d7));function a124_0xa9a9(_0x41a507,_0x57905b){_0x41a507=_0x41a507-0xba;const _0x277a6a=a124_0x277a();let _0xa9a956=_0x277a6a[_0x41a507];return _0xa9a956;}import{initEnv}from'../constant/env.js';import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a124_0x277a(){const _0x11f78c=['3VWzYPe','130865flvYSs','15644otGjUI','20chqSSZ','70CRkoQq','1640322GEotiC','defaultApp','1326888JgLqAP','1085293LFImMJ','apps','env','40HeIobq','values','object','template_base_url','entries','appcode','string','480918keqdhg','trim','app','38173oZMZRT','cookie'];a124_0x277a=function(){return _0x11f78c;};return a124_0x277a();}export{isInProject}from'../context.js';export function readConfig(_0x33e5c0){const _0x4e3faa=a124_0xa9a9,_0x5ef0fd=readRawConfig(_0x33e5c0);return _0x5ef0fd[_0x4e3faa(0xca)]&&typeof _0x5ef0fd['env']==='string'&&initEnv(_0x5ef0fd[_0x4e3faa(0xca)]),_0x5ef0fd;}export function getConfigAppCode(){const _0x21ea2c=a124_0xa9a9,_0x3dbc1e=readRawConfig();if(_0x3dbc1e[_0x21ea2c(0xc9)]&&typeof _0x3dbc1e['apps']==='object'){const _0x50a385=_0x3dbc1e[_0x21ea2c(0xc6)];if(_0x50a385&&_0x3dbc1e['apps'][_0x50a385]?.['appcode'])return String(_0x3dbc1e[_0x21ea2c(0xc9)][_0x50a385][_0x21ea2c(0xd0)])[_0x21ea2c(0xbc)]();const _0x1e1a1b=Object[_0x21ea2c(0xcc)](_0x3dbc1e[_0x21ea2c(0xc9)])[0x0];if(_0x1e1a1b?.[_0x21ea2c(0xd0)])return String(_0x1e1a1b[_0x21ea2c(0xd0)])['trim']();}const _0x330a7e=_0x3dbc1e[_0x21ea2c(0xd0)]||_0x3dbc1e[_0x21ea2c(0xbd)];if(typeof _0x330a7e!==_0x21ea2c(0xba)||_0x330a7e[_0x21ea2c(0xbc)]()==='')return undefined;return _0x330a7e[_0x21ea2c(0xbc)]();}export function getMultiAppConfigs(){const _0x149c37=a124_0xa9a9,_0x2a951f=readRawConfig(),_0x7ee1af=_0x2a951f[_0x149c37(0xc9)];if(!_0x7ee1af||typeof _0x7ee1af!==_0x149c37(0xcd)||Object['keys'](_0x7ee1af)['length']===0x0)return null;const _0xc10431=_0x2a951f[_0x149c37(0xc6)];return Object[_0x149c37(0xcf)](_0x7ee1af)['map'](([_0x59370f,_0x5d68ac])=>({'name':_0x59370f,'appcode':_0x5d68ac?.[_0x149c37(0xd0)]||'','isDefault':_0x59370f===_0xc10431,'env':_0x5d68ac?.[_0x149c37(0xca)],'apiDir':_0x5d68ac?.['apiDir'],'cookie':_0x5d68ac?.[_0x149c37(0xbf)]||undefined}))['filter'](_0xe0a8cb=>_0xe0a8cb[_0x149c37(0xd0)]);}export function getTemplateBaseUrl(){const _0x457087=a124_0xa9a9,_0x469ae2=readRawConfig();if(_0x469ae2[_0x457087(0xce)]&&typeof _0x469ae2['template_base_url']==='string')return _0x469ae2['template_base_url']['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}
1
+ (function(_0x4e0a76,_0x5d74db){const _0x1f67a7=a124_0x3026,_0xa8ebe5=_0x4e0a76();while(!![]){try{const _0x366cc5=-parseInt(_0x1f67a7(0x181))/0x1+parseInt(_0x1f67a7(0x182))/0x2+parseInt(_0x1f67a7(0x186))/0x3+-parseInt(_0x1f67a7(0x18d))/0x4*(-parseInt(_0x1f67a7(0x17e))/0x5)+parseInt(_0x1f67a7(0x184))/0x6*(parseInt(_0x1f67a7(0x179))/0x7)+parseInt(_0x1f67a7(0x191))/0x8*(parseInt(_0x1f67a7(0x17f))/0x9)+-parseInt(_0x1f67a7(0x192))/0xa*(parseInt(_0x1f67a7(0x18c))/0xb);if(_0x366cc5===_0x5d74db)break;else _0xa8ebe5['push'](_0xa8ebe5['shift']());}catch(_0x3c69e1){_0xa8ebe5['push'](_0xa8ebe5['shift']());}}}(a124_0x5772,0x610b7));function a124_0x5772(){const _0x2838ee=['length','32Sfjaej','7239940wrHCbR','object','apiDir','21cFgddm','defaultApp','env','cookie','apps','95685jRhePa','1017369NpYLpz','replace','245184YeLdDh','602116AHomfm','map','178998mDxAiI','trim','1227390jNNPUy','appcode','https://g.lovrabet.com/dist/lovrabet-skill','values','app','template_base_url','11aXxbhZ','24jhZAov','keys','string'];a124_0x5772=function(){return _0x2838ee;};return a124_0x5772();}function a124_0x3026(_0x2993dc,_0x1aba15){_0x2993dc=_0x2993dc-0x179;const _0x57720d=a124_0x5772();let _0x30261b=_0x57720d[_0x2993dc];return _0x30261b;}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(_0x608551){const _0x1ca7da=a124_0x3026,_0x1b0f09=readRawConfig(_0x608551);return _0x1b0f09['env']&&typeof _0x1b0f09[_0x1ca7da(0x17b)]===_0x1ca7da(0x18f)&&initEnv(_0x1b0f09[_0x1ca7da(0x17b)]),_0x1b0f09;}export function getConfigAppCode(){const _0x501fb7=a124_0x3026,_0x2deca0=readRawConfig();if(_0x2deca0[_0x501fb7(0x17d)]&&typeof _0x2deca0[_0x501fb7(0x17d)]===_0x501fb7(0x193)){const _0x1cb89e=_0x2deca0['defaultApp'];if(_0x1cb89e&&_0x2deca0[_0x501fb7(0x17d)][_0x1cb89e]?.[_0x501fb7(0x187)])return String(_0x2deca0[_0x501fb7(0x17d)][_0x1cb89e]['appcode'])[_0x501fb7(0x185)]();const _0x371b50=Object[_0x501fb7(0x189)](_0x2deca0[_0x501fb7(0x17d)])[0x0];if(_0x371b50?.['appcode'])return String(_0x371b50[_0x501fb7(0x187)])[_0x501fb7(0x185)]();}const _0x311582=_0x2deca0[_0x501fb7(0x187)]||_0x2deca0[_0x501fb7(0x18a)];if(typeof _0x311582!==_0x501fb7(0x18f)||_0x311582['trim']()==='')return undefined;return _0x311582[_0x501fb7(0x185)]();}export function getMultiAppConfigs(){const _0xada48a=a124_0x3026,_0x48b6b0=readRawConfig(),_0x2272b7=_0x48b6b0['apps'];if(!_0x2272b7||typeof _0x2272b7!==_0xada48a(0x193)||Object[_0xada48a(0x18e)](_0x2272b7)[_0xada48a(0x190)]===0x0)return null;const _0x5cc8f3=_0x48b6b0[_0xada48a(0x17a)];return Object['entries'](_0x2272b7)[_0xada48a(0x183)](([_0x23a28d,_0x30c716])=>({'name':_0x23a28d,'appcode':_0x30c716?.[_0xada48a(0x187)]||'','isDefault':_0x23a28d===_0x5cc8f3,'env':_0x30c716?.[_0xada48a(0x17b)],'apiDir':_0x30c716?.[_0xada48a(0x194)],'cookie':_0x30c716?.[_0xada48a(0x17c)]||undefined}))['filter'](_0x41eed4=>_0x41eed4[_0xada48a(0x187)]);}export function getTemplateBaseUrl(){const _0x27baec=a124_0x3026,_0x701685=readRawConfig();if(_0x701685['template_base_url']&&typeof _0x701685[_0x27baec(0x18b)]===_0x27baec(0x18f))return _0x701685[_0x27baec(0x18b)][_0x27baec(0x180)](/\/$/,'');return _0x27baec(0x188);}
@@ -1 +1 @@
1
- (function(_0x1b478c,_0x285a5c){const _0x809172=a125_0x43f3,_0x534ef5=_0x1b478c();while(!![]){try{const _0x1b3de9=parseInt(_0x809172(0x18b))/0x1+parseInt(_0x809172(0x181))/0x2+parseInt(_0x809172(0x189))/0x3*(-parseInt(_0x809172(0x18c))/0x4)+-parseInt(_0x809172(0x182))/0x5+parseInt(_0x809172(0x188))/0x6*(parseInt(_0x809172(0x180))/0x7)+-parseInt(_0x809172(0x184))/0x8*(parseInt(_0x809172(0x187))/0x9)+parseInt(_0x809172(0x18d))/0xa;if(_0x1b3de9===_0x285a5c)break;else _0x534ef5['push'](_0x534ef5['shift']());}catch(_0x9e3588){_0x534ef5['push'](_0x534ef5['shift']());}}}(a125_0x29c3,0xbe248));function a125_0x43f3(_0xfa2298,_0x2c0a9b){_0xfa2298=_0xfa2298-0x180;const _0x29c310=a125_0x29c3();let _0x43f3ff=_0x29c310[_0xfa2298];return _0x43f3ff;}function a125_0x29c3(){const _0x3fd072=['join','1356202kDJTAS','5172BHUSub','5238210ZxGKRu','name','readdirSync','9822827chdvej','1749588nkdeED','4088340QiPVWj','isDirectory','24sJFYxL','error','mkdirSync','4267359EIucTt','6EXdwWw','2643qJYdHq'];a125_0x29c3=function(){return _0x3fd072;};return a125_0x29c3();}import a125_0x3844a1 from'node:path';import a125_0x26c480 from'node:fs';export async function copyDirectory(_0xbb8694,_0x50236c){const _0x329058=a125_0x43f3;try{const _0x44f955=a125_0x26c480[_0x329058(0x18f)](_0xbb8694,{'withFileTypes':!![]});a125_0x26c480[_0x329058(0x186)](_0x50236c,{'recursive':!![]});for(const _0xc3c225 of _0x44f955){const _0x47a237=a125_0x3844a1[_0x329058(0x18a)](_0xbb8694,_0xc3c225[_0x329058(0x18e)]),_0x4ca189=a125_0x3844a1['join'](_0x50236c,_0xc3c225[_0x329058(0x18e)]);_0xc3c225[_0x329058(0x183)]()?await copyDirectory(_0x47a237,_0x4ca189):a125_0x26c480['copyFileSync'](_0x47a237,_0x4ca189);}}catch(_0x2b3d2c){console[_0x329058(0x185)]('复制目录时出错:',_0x2b3d2c);}}
1
+ (function(_0x4583b4,_0x1a8ccd){const _0x300e5b=a125_0x593b,_0x5e2eaf=_0x4583b4();while(!![]){try{const _0x3c2031=-parseInt(_0x300e5b(0x1dd))/0x1+parseInt(_0x300e5b(0x1d9))/0x2+parseInt(_0x300e5b(0x1d3))/0x3*(parseInt(_0x300e5b(0x1d7))/0x4)+-parseInt(_0x300e5b(0x1d4))/0x5*(parseInt(_0x300e5b(0x1d8))/0x6)+parseInt(_0x300e5b(0x1d2))/0x7*(-parseInt(_0x300e5b(0x1d0))/0x8)+-parseInt(_0x300e5b(0x1da))/0x9+parseInt(_0x300e5b(0x1d1))/0xa;if(_0x3c2031===_0x1a8ccd)break;else _0x5e2eaf['push'](_0x5e2eaf['shift']());}catch(_0x329ce0){_0x5e2eaf['push'](_0x5e2eaf['shift']());}}}(a125_0x9473,0x78460));function a125_0x593b(_0x5a96a6,_0x80eb70){_0x5a96a6=_0x5a96a6-0x1d0;const _0x9473f3=a125_0x9473();let _0x593b02=_0x9473f3[_0x5a96a6];return _0x593b02;}function a125_0x9473(){const _0x29d095=['8118081pNfrnA','name','error','549383inSmzJ','join','16CdJDOe','17056850smgkaR','3202493XFBiJV','823206LxDIqP','150pQCKix','copyFileSync','isDirectory','4VNoBqV','10380DwKKSk','1861686WWxZmL'];a125_0x9473=function(){return _0x29d095;};return a125_0x9473();}import a125_0x448e72 from'node:path';import a125_0x30aa82 from'node:fs';export async function copyDirectory(_0x18fbc5,_0x5daf00){const _0x1310df=a125_0x593b;try{const _0x7c3de4=a125_0x30aa82['readdirSync'](_0x18fbc5,{'withFileTypes':!![]});a125_0x30aa82['mkdirSync'](_0x5daf00,{'recursive':!![]});for(const _0x1818c8 of _0x7c3de4){const _0x448663=a125_0x448e72[_0x1310df(0x1de)](_0x18fbc5,_0x1818c8[_0x1310df(0x1db)]),_0x36647d=a125_0x448e72[_0x1310df(0x1de)](_0x5daf00,_0x1818c8[_0x1310df(0x1db)]);_0x1818c8[_0x1310df(0x1d6)]()?await copyDirectory(_0x448663,_0x36647d):a125_0x30aa82[_0x1310df(0x1d5)](_0x448663,_0x36647d);}}catch(_0x528ba1){console[_0x1310df(0x1dc)]('复制目录时出错:',_0x528ba1);}}
@@ -1 +1 @@
1
- (function(_0xa9023c,_0x3d6572){const _0x7d441e=a126_0x198e,_0x623920=_0xa9023c();while(!![]){try{const _0x20ff4c=-parseInt(_0x7d441e(0x17d))/0x1*(parseInt(_0x7d441e(0x182))/0x2)+-parseInt(_0x7d441e(0x17a))/0x3*(parseInt(_0x7d441e(0x17f))/0x4)+parseInt(_0x7d441e(0x181))/0x5+parseInt(_0x7d441e(0x184))/0x6+parseInt(_0x7d441e(0x180))/0x7+-parseInt(_0x7d441e(0x17c))/0x8+-parseInt(_0x7d441e(0x183))/0x9*(-parseInt(_0x7d441e(0x17b))/0xa);if(_0x20ff4c===_0x3d6572)break;else _0x623920['push'](_0x623920['shift']());}catch(_0x2a37c4){_0x623920['push'](_0x623920['shift']());}}}(a126_0x3ce4,0xf35d0));function a126_0x198e(_0x525e9f,_0x412499){_0x525e9f=_0x525e9f-0x17a;const _0x3ce4fc=a126_0x3ce4();let _0x198ecb=_0x3ce4fc[_0x525e9f];return _0x198ecb;}function a126_0x3ce4(){const _0x5bd70c=['2831256hXynIq','11349576lNpHCH','8923530lyrIOZ','6MgYOVE','63paEBXg','7732896xyGHHl','3XUaKRY','439820yAbmdo','13287432Pgefyu','545735tfxxwS','isDirectory'];a126_0x3ce4=function(){return _0x5bd70c;};return a126_0x3ce4();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x45aac8,_0x41c3bf){const _0x3840aa=a126_0x198e,_0x71c3d7=statSync(_0x45aac8);if(_0x71c3d7[_0x3840aa(0x17e)]()){!existsSync(_0x41c3bf)&&mkdirSync(_0x41c3bf,{'recursive':!![]});const _0x4d8895=readdirSync(_0x45aac8);for(const _0x42504f of _0x4d8895){await copyDir(join(_0x45aac8,_0x42504f),join(_0x41c3bf,_0x42504f));}}else copyFileSync(_0x45aac8,_0x41c3bf);}export function ensureDir(_0x152902){!existsSync(_0x152902)&&mkdirSync(_0x152902,{'recursive':!![]});}export function pathExists(_0xc06904){return existsSync(_0xc06904);}
1
+ (function(_0x4d2ea9,_0x184cc0){const _0x53182a=a126_0x5407,_0x31626d=_0x4d2ea9();while(!![]){try{const _0x3994db=parseInt(_0x53182a(0x1b8))/0x1+-parseInt(_0x53182a(0x1b6))/0x2+parseInt(_0x53182a(0x1bc))/0x3*(parseInt(_0x53182a(0x1be))/0x4)+parseInt(_0x53182a(0x1ba))/0x5+-parseInt(_0x53182a(0x1b7))/0x6+parseInt(_0x53182a(0x1b5))/0x7*(parseInt(_0x53182a(0x1bd))/0x8)+parseInt(_0x53182a(0x1b4))/0x9*(parseInt(_0x53182a(0x1bb))/0xa);if(_0x3994db===_0x184cc0)break;else _0x31626d['push'](_0x31626d['shift']());}catch(_0xda1b09){_0x31626d['push'](_0x31626d['shift']());}}}(a126_0x45fc,0x2fb8f));function a126_0x5407(_0x27acf6,_0x14f3eb){_0x27acf6=_0x27acf6-0x1b4;const _0x45fcdd=a126_0x45fc();let _0x5407f1=_0x45fcdd[_0x27acf6];return _0x5407f1;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a126_0x45fc(){const _0x5904e3=['759306HtxgBv','1689798RONKda','104144XpNabB','isDirectory','298605smxhJA','20870FBdhHt','18NUNMAy','40tyqbRv','128372jRsNPp','963wGCARw','387835yYhETN'];a126_0x45fc=function(){return _0x5904e3;};return a126_0x45fc();}import{join}from'node:path';export async function copyDir(_0x47e1ff,_0x2079a4){const _0x266a56=a126_0x5407,_0xb60925=statSync(_0x47e1ff);if(_0xb60925[_0x266a56(0x1b9)]()){!existsSync(_0x2079a4)&&mkdirSync(_0x2079a4,{'recursive':!![]});const _0x5b5738=readdirSync(_0x47e1ff);for(const _0xe3d3f4 of _0x5b5738){await copyDir(join(_0x47e1ff,_0xe3d3f4),join(_0x2079a4,_0xe3d3f4));}}else copyFileSync(_0x47e1ff,_0x2079a4);}export function ensureDir(_0xc00e3a){!existsSync(_0xc00e3a)&&mkdirSync(_0xc00e3a,{'recursive':!![]});}export function pathExists(_0xafe866){return existsSync(_0xafe866);}
@@ -1 +1 @@
1
- const a127_0x4b8230=a127_0x280f;(function(_0x2f8bb7,_0x422c0f){const _0x1a86b3=a127_0x280f,_0x4eef25=_0x2f8bb7();while(!![]){try{const _0x2b66ca=parseInt(_0x1a86b3(0xd4))/0x1*(-parseInt(_0x1a86b3(0xf2))/0x2)+parseInt(_0x1a86b3(0xea))/0x3*(parseInt(_0x1a86b3(0xdb))/0x4)+-parseInt(_0x1a86b3(0xe6))/0x5*(-parseInt(_0x1a86b3(0xdf))/0x6)+-parseInt(_0x1a86b3(0xe5))/0x7*(parseInt(_0x1a86b3(0xf3))/0x8)+parseInt(_0x1a86b3(0xd9))/0x9*(-parseInt(_0x1a86b3(0xe9))/0xa)+-parseInt(_0x1a86b3(0xd2))/0xb*(-parseInt(_0x1a86b3(0xe4))/0xc)+-parseInt(_0x1a86b3(0xf5))/0xd*(-parseInt(_0x1a86b3(0xdc))/0xe);if(_0x2b66ca===_0x422c0f)break;else _0x4eef25['push'](_0x4eef25['shift']());}catch(_0x29a009){_0x4eef25['push'](_0x4eef25['shift']());}}}(a127_0x506a,0xcdfb4));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a127_0x506a(){const _0x167383=['4055495AEqwYM','keys','extendContent','10UpCAPC','159BMtpvG','.lovrabet','CDN\x20请求失败:\x20','skillTemplate','replace','\x0a\x0a>更新时间:','trimEnd','path','4wKVArJ','10527464jZtryG','join','26SBlLyD','utf-8','guides','1746569MDtWdA','.md','743417cJPaPj','cache','object','json','map','14779269gHHAew','CDN\x20数据中缺少\x20skillTemplate','32916sTruvG','21500458tLiZTN','title','statusText','12XiCfno','lastUpdated','content','push','entries','12QdkoaX','7gXBhjW'];a127_0x506a=function(){return _0x167383;};return a127_0x506a();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x409404=getTemplateBaseUrl();return _0x409404+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a127_0x4b8230(0xeb),a127_0x4b8230(0xd5));export async function fetchGuidesFromCDN(){const _0x398c01=a127_0x4b8230,_0x41a621=getGuidesCdnUrl(),_0x26bc68=await fetch(_0x41a621,{'headers':{'Accept':'application/json'}});if(!_0x26bc68['ok'])throw new Error(_0x398c01(0xec)+_0x26bc68['status']+'\x20'+_0x26bc68[_0x398c01(0xde)]);const _0x46eed9=await _0x26bc68[_0x398c01(0xd7)]();if(!_0x46eed9[_0x398c01(0xf7)]||typeof _0x46eed9['guides']!==_0x398c01(0xd6))throw new Error('CDN\x20返回数据格式错误');return _0x46eed9;}export function writeGuidesToProject(_0x31378a,_0x9a4cbd,_0x47a390='.lovrabet/skill/guides',_0xd8e921){const _0x560e42=a127_0x4b8230,_0x19611f=join(_0x9a4cbd,_0x47a390);mkdirSync(_0x19611f,{'recursive':!![]});for(const [_0x53ff7a,_0x2de5f0]of Object[_0x560e42(0xe3)](_0x31378a[_0x560e42(0xf7)])){let _0x539ec8=_0x2de5f0[_0x560e42(0xe1)];_0x2de5f0[_0x560e42(0xe0)]&&(_0x539ec8=appendUpdateTime(_0x539ec8,_0x2de5f0[_0x560e42(0xe0)])),writeFileSync(join(_0x19611f,_0x53ff7a+_0x560e42(0xd3)),_0x539ec8,_0x560e42(0xf6));}}export function appendUpdateTime(_0x3fa23c,_0x4005b4){const _0x442f30=a127_0x4b8230;return _0x3fa23c=_0x3fa23c[_0x442f30(0xee)](/\n*>更新时间:.*$/m,''),_0x3fa23c['trimEnd']()+(_0x442f30(0xef)+_0x4005b4);}export function getSkillTemplate(_0x1d6521){const _0x1965c0=a127_0x4b8230;return _0x1d6521[_0x1965c0(0xed)]?.[_0x1965c0(0xe1)]||'';}export function appendExtendContents(_0x397e7e,_0x9a4a88,_0x38b0e4){const _0x37ed92=a127_0x4b8230,_0x3c5f36=[];for(const [,_0x5232ef]of Object['entries'](_0x9a4a88[_0x37ed92(0xf7)])){_0x5232ef[_0x37ed92(0xe8)]&&_0x3c5f36[_0x37ed92(0xe2)](_0x5232ef[_0x37ed92(0xe8)][_0x37ed92(0xf0)]());}if(_0x3c5f36['length']===0x0)return _0x397e7e;return _0x397e7e[_0x37ed92(0xf0)]()+'\x0a\x0a'+_0x3c5f36[_0x37ed92(0xf4)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2cb51e,_0x3f621a,_0x44f877){const _0x5bac9d=a127_0x4b8230,_0x933b0c=getSkillTemplate(_0x2cb51e);if(!_0x933b0c)throw new Error(_0x5bac9d(0xda));const _0x2d3c49=dirname(_0x3f621a);mkdirSync(_0x2d3c49,{'recursive':!![]});let _0x133812=_0x933b0c['replace'](/\{\{IDE_NAME\}\}/g,_0x44f877);_0x133812=appendExtendContents(_0x133812,_0x2cb51e),_0x2cb51e[_0x5bac9d(0xed)]['lastUpdated']&&(_0x133812=appendUpdateTime(_0x133812,_0x2cb51e['skillTemplate']['lastUpdated'])),writeFileSync(_0x3f621a,_0x133812,'utf-8');}function a127_0x280f(_0x1b8e02,_0x59b3d8){_0x1b8e02=_0x1b8e02-0xd2;const _0x506a3a=a127_0x506a();let _0x280f79=_0x506a3a[_0x1b8e02];return _0x280f79;}export async function installGuides(_0x26bb0d){const _0x4f87c6=a127_0x4b8230,_0x5ad785=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5ad785,_0x26bb0d),Object[_0x4f87c6(0xe7)](_0x5ad785[_0x4f87c6(0xf7)])['length'];}export function getGuidesSummary(_0xfa1271){const _0x526346=a127_0x4b8230;return Object[_0x526346(0xe3)](_0xfa1271['guides'])[_0x526346(0xd8)](([_0x913ef1,_0x13b692])=>({'key':_0x913ef1,'title':_0x13b692[_0x526346(0xdd)],'path':_0x13b692[_0x526346(0xf1)]}));}
1
+ const a127_0x262dc7=a127_0x3747;function a127_0x1bfc(){const _0x1a5614=['replace','.lovrabet','utf-8','CDN\x20请求失败:\x20','.lovrabet/skill/guides','lastUpdated','trimEnd','11850363mSnpal','cache','8793xRtjvl','7887948rcoyWw','status','142itjXac','path','.md','CDN\x20数据中缺少\x20skillTemplate','object','guides','skillTemplate','entries','length','3761175iCgECs','25FFGjYV','879676zrzpQd','content','7586610XsUCXm','3672PlsRMC','join','/skills/guides.json','10537XVaBOC','extendContent','CDN\x20返回数据格式错误','map'];a127_0x1bfc=function(){return _0x1a5614;};return a127_0x1bfc();}(function(_0x216722,_0x585080){const _0x508f31=a127_0x3747,_0xfdbf7f=_0x216722();while(!![]){try{const _0x8641a6=parseInt(_0x508f31(0x1e8))/0x1*(-parseInt(_0x508f31(0x1f8))/0x2)+-parseInt(_0x508f31(0x201))/0x3+-parseInt(_0x508f31(0x1e2))/0x4*(-parseInt(_0x508f31(0x1e1))/0x5)+parseInt(_0x508f31(0x1f6))/0x6+parseInt(_0x508f31(0x1f3))/0x7+-parseInt(_0x508f31(0x1e5))/0x8*(parseInt(_0x508f31(0x1f5))/0x9)+-parseInt(_0x508f31(0x1e4))/0xa;if(_0x8641a6===_0x585080)break;else _0xfdbf7f['push'](_0xfdbf7f['shift']());}catch(_0x528972){_0xfdbf7f['push'](_0xfdbf7f['shift']());}}}(a127_0x1bfc,0xdb49e));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x377dc5=a127_0x3747,_0x3f1eac=getTemplateBaseUrl();return _0x3f1eac+_0x377dc5(0x1e7);}const CACHE_DIR=join(homedir(),a127_0x262dc7(0x1ed),a127_0x262dc7(0x1f4));function a127_0x3747(_0x7a4278,_0x288a64){_0x7a4278=_0x7a4278-0x1e1;const _0x1bfc52=a127_0x1bfc();let _0x3747b9=_0x1bfc52[_0x7a4278];return _0x3747b9;}export async function fetchGuidesFromCDN(){const _0x3e6e5c=a127_0x262dc7,_0x597f25=getGuidesCdnUrl(),_0x4eebcd=await fetch(_0x597f25,{'headers':{'Accept':'application/json'}});if(!_0x4eebcd['ok'])throw new Error(_0x3e6e5c(0x1ef)+_0x4eebcd[_0x3e6e5c(0x1f7)]+'\x20'+_0x4eebcd['statusText']);const _0x184258=await _0x4eebcd['json']();if(!_0x184258[_0x3e6e5c(0x1fd)]||typeof _0x184258[_0x3e6e5c(0x1fd)]!==_0x3e6e5c(0x1fc))throw new Error(_0x3e6e5c(0x1ea));return _0x184258;}export function writeGuidesToProject(_0x143ad8,_0x52df70,_0x519ccf=a127_0x262dc7(0x1f0),_0x584988){const _0x5c1e5a=a127_0x262dc7,_0x29d3ab=join(_0x52df70,_0x519ccf);mkdirSync(_0x29d3ab,{'recursive':!![]});for(const [_0x447406,_0x8cc671]of Object['entries'](_0x143ad8[_0x5c1e5a(0x1fd)])){let _0x376a4a=_0x8cc671[_0x5c1e5a(0x1e3)];_0x8cc671[_0x5c1e5a(0x1f1)]&&(_0x376a4a=appendUpdateTime(_0x376a4a,_0x8cc671['lastUpdated'])),writeFileSync(join(_0x29d3ab,_0x447406+_0x5c1e5a(0x1fa)),_0x376a4a,_0x5c1e5a(0x1ee));}}export function appendUpdateTime(_0x92c2af,_0xb8039b){const _0xe90ec9=a127_0x262dc7;return _0x92c2af=_0x92c2af[_0xe90ec9(0x1ec)](/\n*>更新时间:.*$/m,''),_0x92c2af[_0xe90ec9(0x1f2)]()+('\x0a\x0a>更新时间:'+_0xb8039b);}export function getSkillTemplate(_0x3ffb71){const _0x2da1dd=a127_0x262dc7;return _0x3ffb71[_0x2da1dd(0x1fe)]?.[_0x2da1dd(0x1e3)]||'';}export function appendExtendContents(_0x5edebe,_0x3e9f44,_0x10c4e8){const _0x567edd=a127_0x262dc7,_0x1219c9=[];for(const [,_0xadc5f0]of Object['entries'](_0x3e9f44[_0x567edd(0x1fd)])){_0xadc5f0['extendContent']&&_0x1219c9['push'](_0xadc5f0[_0x567edd(0x1e9)][_0x567edd(0x1f2)]());}if(_0x1219c9[_0x567edd(0x200)]===0x0)return _0x5edebe;return _0x5edebe[_0x567edd(0x1f2)]()+'\x0a\x0a'+_0x1219c9[_0x567edd(0x1e6)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3a553f,_0x4f8666,_0x36c9de){const _0x1800c4=a127_0x262dc7,_0x3059f3=getSkillTemplate(_0x3a553f);if(!_0x3059f3)throw new Error(_0x1800c4(0x1fb));const _0x5e94f7=dirname(_0x4f8666);mkdirSync(_0x5e94f7,{'recursive':!![]});let _0x2c49f2=_0x3059f3[_0x1800c4(0x1ec)](/\{\{IDE_NAME\}\}/g,_0x36c9de);_0x2c49f2=appendExtendContents(_0x2c49f2,_0x3a553f),_0x3a553f[_0x1800c4(0x1fe)][_0x1800c4(0x1f1)]&&(_0x2c49f2=appendUpdateTime(_0x2c49f2,_0x3a553f[_0x1800c4(0x1fe)]['lastUpdated'])),writeFileSync(_0x4f8666,_0x2c49f2,_0x1800c4(0x1ee));}export async function installGuides(_0x591d7f){const _0x18e4ef=a127_0x262dc7,_0x11e5ee=await fetchGuidesFromCDN();return writeGuidesToProject(_0x11e5ee,_0x591d7f),Object['keys'](_0x11e5ee[_0x18e4ef(0x1fd)])[_0x18e4ef(0x200)];}export function getGuidesSummary(_0x222fe8){const _0x4b3170=a127_0x262dc7;return Object[_0x4b3170(0x1ff)](_0x222fe8[_0x4b3170(0x1fd)])[_0x4b3170(0x1eb)](([_0x33a3ff,_0x235e2a])=>({'key':_0x33a3ff,'title':_0x235e2a['title'],'path':_0x235e2a[_0x4b3170(0x1f9)]}));}
@@ -1 +1 @@
1
- (function(_0x2190bb,_0x3c9a39){const _0x408507=a128_0xadf2,_0xe48672=_0x2190bb();while(!![]){try{const _0x477cd6=-parseInt(_0x408507(0x1ab))/0x1+-parseInt(_0x408507(0x1a9))/0x2*(parseInt(_0x408507(0x1aa))/0x3)+parseInt(_0x408507(0x1c2))/0x4+parseInt(_0x408507(0x1b8))/0x5+parseInt(_0x408507(0x1c1))/0x6*(-parseInt(_0x408507(0x1b0))/0x7)+parseInt(_0x408507(0x1bc))/0x8+parseInt(_0x408507(0x1a7))/0x9;if(_0x477cd6===_0x3c9a39)break;else _0xe48672['push'](_0xe48672['shift']());}catch(_0x35028f){_0xe48672['push'](_0xe48672['shift']());}}}(a128_0xfa29,0x4650d));function a128_0xadf2(_0x3b1664,_0x1cc244){_0x3b1664=_0x3b1664-0x1a3;const _0xfa2914=a128_0xfa29();let _0xadf24a=_0xfa2914[_0x3b1664];return _0xadf24a;}export async function httpRequest(_0x51f77b,_0x30f89d={}){const _0x2da6db=a128_0xadf2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x30f89d;let _0x3d1982=null;for(let _0x24f290=0x0;_0x24f290<=retries;_0x24f290++){try{const _0x23ee2c=new AbortController(),_0x5520a2=setTimeout(()=>_0x23ee2c[_0x2da6db(0x1a4)](),timeout),_0x4233df=await fetch(_0x51f77b,{'headers':headers,'signal':_0x23ee2c[_0x2da6db(0x1ad)]});clearTimeout(_0x5520a2);let _0xce4b18;const _0x108e6a=_0x4233df[_0x2da6db(0x1b1)][_0x2da6db(0x1b4)](_0x2da6db(0x1ba));return _0x108e6a?.[_0x2da6db(0x1c0)](_0x2da6db(0x1b3))?_0xce4b18=await _0x4233df[_0x2da6db(0x1b2)]():_0xce4b18=await _0x4233df[_0x2da6db(0x1a3)](),{'ok':_0x4233df['ok'],'status':_0x4233df[_0x2da6db(0x1a6)],'statusText':_0x4233df[_0x2da6db(0x1bb)],'data':_0xce4b18,'headers':_0x4233df[_0x2da6db(0x1b1)],'url':_0x4233df[_0x2da6db(0x1af)],'text':()=>_0x4233df[_0x2da6db(0x1a3)]()};}catch(_0x5c979a){_0x3d1982=_0x5c979a instanceof Error?_0x5c979a:new Error(String(_0x5c979a));if(_0x24f290===retries)break;if(shouldRetry(_0x5c979a)){console[_0x2da6db(0x1a5)](_0x2da6db(0x1bd)+retryDelay+_0x2da6db(0x1bf)+(_0x24f290+0x1)+_0x2da6db(0x1be)),await sleep(retryDelay);continue;}else break;}}throw _0x3d1982||new Error(_0x2da6db(0x1ac));}function shouldRetry(_0xd9474b){const _0x328055=a128_0xadf2;if(_0xd9474b instanceof Error){if(_0xd9474b[_0x328055(0x1b6)]===_0x328055(0x1b5))return![];if(_0xd9474b[_0x328055(0x1b6)]===_0x328055(0x1b9)&&_0xd9474b['message'][_0x328055(0x1c0)](_0x328055(0x1a8)))return!![];if(_0xd9474b[_0x328055(0x1ae)][_0x328055(0x1c0)]('ECONNRESET'))return!![];if(_0xd9474b[_0x328055(0x1ae)][_0x328055(0x1c0)](_0x328055(0x1b7)))return![];}return![];}function a128_0xfa29(){const _0x16dc5c=['TypeError','content-type','statusText','2475552rDLwTI','*\x20请求失败,','\x20次重试...','ms\x20后进行第\x20','includes','1917336XdOoUy','2050120HRpbAu','text','abort','log','status','1851723Mfvwnd','fetch','2heuojA','1586703eISOCP','264809hDJMbi','Request\x20failed','signal','message','url','7EhAERW','headers','json','application/json','get','AbortError','name','ENOTFOUND','1867790LmVrwI'];a128_0xfa29=function(){return _0x16dc5c;};return a128_0xfa29();}function sleep(_0x52bcc9){return new Promise(_0xa327bb=>setTimeout(_0xa327bb,_0x52bcc9));}export function validateUrl(_0x3a1a57){try{return new URL(_0x3a1a57),!![];}catch{return![];}}
1
+ function a128_0x3f6e(_0x3b7d79,_0x32e7a6){_0x3b7d79=_0x3b7d79-0x14e;const _0x4b0fc3=a128_0x4b0f();let _0x3f6e6d=_0x4b0fc3[_0x3b7d79];return _0x3f6e6d;}(function(_0x12cf18,_0x3a8ac0){const _0x4d65ec=a128_0x3f6e,_0x40f623=_0x12cf18();while(!![]){try{const _0x228bc8=parseInt(_0x4d65ec(0x165))/0x1+-parseInt(_0x4d65ec(0x161))/0x2+parseInt(_0x4d65ec(0x166))/0x3+-parseInt(_0x4d65ec(0x15c))/0x4*(parseInt(_0x4d65ec(0x151))/0x5)+-parseInt(_0x4d65ec(0x15f))/0x6+-parseInt(_0x4d65ec(0x154))/0x7+parseInt(_0x4d65ec(0x158))/0x8;if(_0x228bc8===_0x3a8ac0)break;else _0x40f623['push'](_0x40f623['shift']());}catch(_0x17118f){_0x40f623['push'](_0x40f623['shift']());}}}(a128_0x4b0f,0xb3a46));export async function httpRequest(_0xaf3db4,_0x3c4f7e={}){const _0x5a45d0=a128_0x3f6e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3c4f7e;let _0x4c4bd0=null;for(let _0x5d9808=0x0;_0x5d9808<=retries;_0x5d9808++){try{const _0x521500=new AbortController(),_0x6eeb27=setTimeout(()=>_0x521500[_0x5a45d0(0x150)](),timeout),_0x47545d=await fetch(_0xaf3db4,{'headers':headers,'signal':_0x521500[_0x5a45d0(0x14e)]});clearTimeout(_0x6eeb27);let _0x15dc08;const _0x735da5=_0x47545d[_0x5a45d0(0x167)][_0x5a45d0(0x153)]('content-type');return _0x735da5?.[_0x5a45d0(0x15e)](_0x5a45d0(0x15d))?_0x15dc08=await _0x47545d['json']():_0x15dc08=await _0x47545d[_0x5a45d0(0x163)](),{'ok':_0x47545d['ok'],'status':_0x47545d['status'],'statusText':_0x47545d[_0x5a45d0(0x164)],'data':_0x15dc08,'headers':_0x47545d[_0x5a45d0(0x167)],'url':_0x47545d[_0x5a45d0(0x157)],'text':()=>_0x47545d['text']()};}catch(_0x315676){_0x4c4bd0=_0x315676 instanceof Error?_0x315676:new Error(String(_0x315676));if(_0x5d9808===retries)break;if(shouldRetry(_0x315676)){console[_0x5a45d0(0x15b)]('*\x20请求失败,'+retryDelay+_0x5a45d0(0x156)+(_0x5d9808+0x1)+_0x5a45d0(0x159)),await sleep(retryDelay);continue;}else break;}}throw _0x4c4bd0||new Error(_0x5a45d0(0x155));}function shouldRetry(_0x29a11b){const _0x388afe=a128_0x3f6e;if(_0x29a11b instanceof Error){if(_0x29a11b[_0x388afe(0x15a)]==='AbortError')return![];if(_0x29a11b['name']===_0x388afe(0x160)&&_0x29a11b[_0x388afe(0x152)][_0x388afe(0x15e)]('fetch'))return!![];if(_0x29a11b['message'][_0x388afe(0x15e)](_0x388afe(0x162)))return!![];if(_0x29a11b[_0x388afe(0x152)][_0x388afe(0x15e)](_0x388afe(0x14f)))return![];}return![];}function a128_0x4b0f(){const _0x29c973=['headers','signal','ENOTFOUND','abort','2045VAZNVQ','message','get','1684340XOGbqL','Request\x20failed','ms\x20后进行第\x20','url','8258776Jmjmnj','\x20次重试...','name','log','9788ogLvjN','application/json','includes','3655236gYxxfT','TypeError','1537530QhXaAH','ECONNRESET','text','statusText','1375422cejlqK','2842377XBqBav'];a128_0x4b0f=function(){return _0x29c973;};return a128_0x4b0f();}function sleep(_0x2b26c8){return new Promise(_0x3106e5=>setTimeout(_0x3106e5,_0x2b26c8));}export function validateUrl(_0x6a88b9){try{return new URL(_0x6a88b9),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x26b606,_0x2e62c5){const _0x54b467=a129_0x4d68,_0x5eb83f=_0x26b606();while(!![]){try{const _0x2beb68=-parseInt(_0x54b467(0x17b))/0x1+parseInt(_0x54b467(0x183))/0x2+-parseInt(_0x54b467(0x17e))/0x3*(parseInt(_0x54b467(0x181))/0x4)+parseInt(_0x54b467(0x180))/0x5+parseInt(_0x54b467(0x177))/0x6+-parseInt(_0x54b467(0x179))/0x7+parseInt(_0x54b467(0x17f))/0x8;if(_0x2beb68===_0x2e62c5)break;else _0x5eb83f['push'](_0x5eb83f['shift']());}catch(_0x2e9ebc){_0x5eb83f['push'](_0x5eb83f['shift']());}}}(a129_0x3b42,0x37208));function a129_0x4d68(_0x30bc31,_0x1d2c18){_0x30bc31=_0x30bc31-0x176;const _0x3b4285=a129_0x3b42();let _0x4d6838=_0x3b4285[_0x30bc31];return _0x4d6838;}function env(_0x4c5316){return process.env[`RABETBASE_${_0x4c5316}`]||process.env[`LOVRABET_${_0x4c5316}`]||undefined;}export function isNonInteractive(_0x21edf9){const _0x563bbf=a129_0x4d68;return!!(_0x21edf9[_0x563bbf(0x182)]||_0x21edf9['ci']||env('CI')===_0x563bbf(0x17c)||process.env.CI==='true'||!process[_0x563bbf(0x17d)][_0x563bbf(0x176)]||!isStdinRawModeSupported());}function a129_0x3b42(){const _0x422a12=['5516672hjLgkB','526390UXeVcK','3292RWsGbW','nonInteractive','370184FtUuWk','isTTY','569040jXfVmc','stdin','1936578ZdcUAt','setRawMode','341077obKHXq','true','stdout','843JagZif'];a129_0x3b42=function(){return _0x422a12;};return a129_0x3b42();}function isStdinRawModeSupported(){const _0x22fb49=a129_0x4d68;if(!process['stdin']['isTTY'])return![];try{const _0x10d62a=process[_0x22fb49(0x178)]['isRaw'];return process['stdin'][_0x22fb49(0x17a)](!![]),process[_0x22fb49(0x178)][_0x22fb49(0x17a)](_0x10d62a??![]),!![];}catch{return![];}}
1
+ function a129_0x95ac(_0x36ba21,_0x347f0f){_0x36ba21=_0x36ba21-0xd8;const _0x13dd26=a129_0x13dd();let _0x95acc5=_0x13dd26[_0x36ba21];return _0x95acc5;}(function(_0x271462,_0x40ac31){const _0x55274d=a129_0x95ac,_0x59e859=_0x271462();while(!![]){try{const _0x12d648=parseInt(_0x55274d(0xe3))/0x1*(parseInt(_0x55274d(0xdb))/0x2)+-parseInt(_0x55274d(0xe0))/0x3+parseInt(_0x55274d(0xe5))/0x4+parseInt(_0x55274d(0xe1))/0x5+-parseInt(_0x55274d(0xd9))/0x6+-parseInt(_0x55274d(0xe2))/0x7*(-parseInt(_0x55274d(0xda))/0x8)+-parseInt(_0x55274d(0xd8))/0x9;if(_0x12d648===_0x40ac31)break;else _0x59e859['push'](_0x59e859['shift']());}catch(_0x2a2937){_0x59e859['push'](_0x59e859['shift']());}}}(a129_0x13dd,0xd9c5c));function env(_0x3a701a){return process.env[`RABETBASE_${_0x3a701a}`]||process.env[`LOVRABET_${_0x3a701a}`]||undefined;}export function isNonInteractive(_0x4068ab){const _0x4e81c7=a129_0x95ac;return!!(_0x4068ab[_0x4e81c7(0xe6)]||_0x4068ab['ci']||env('CI')===_0x4e81c7(0xdc)||process.env.CI===_0x4e81c7(0xdc)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function a129_0x13dd(){const _0x35d212=['1948984JsWnQP','24982PRTZAG','true','setRawMode','isRaw','isTTY','1247490fwJOdb','6213800SKrxva','49WjjeRo','101SeJGbM','stdin','3256164OZzZRl','nonInteractive','19922499eNGycw','9013896pHXNFf'];a129_0x13dd=function(){return _0x35d212;};return a129_0x13dd();}function isStdinRawModeSupported(){const _0x22461f=a129_0x95ac;if(!process[_0x22461f(0xe4)][_0x22461f(0xdf)])return![];try{const _0xb233ee=process[_0x22461f(0xe4)][_0x22461f(0xde)];return process[_0x22461f(0xe4)][_0x22461f(0xdd)](!![]),process[_0x22461f(0xe4)][_0x22461f(0xdd)](_0xb233ee??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a130_0x187514=a130_0x5418;(function(_0x3fe423,_0x2a2c78){const _0x2df97e=a130_0x5418,_0x1b1b12=_0x3fe423();while(!![]){try{const _0x3c8e48=-parseInt(_0x2df97e(0x198))/0x1+-parseInt(_0x2df97e(0x180))/0x2+parseInt(_0x2df97e(0x18e))/0x3*(parseInt(_0x2df97e(0x194))/0x4)+parseInt(_0x2df97e(0x173))/0x5+-parseInt(_0x2df97e(0x16c))/0x6+-parseInt(_0x2df97e(0x197))/0x7*(parseInt(_0x2df97e(0x172))/0x8)+parseInt(_0x2df97e(0x17a))/0x9;if(_0x3c8e48===_0x2a2c78)break;else _0x1b1b12['push'](_0x1b1b12['shift']());}catch(_0x6713ee){_0x1b1b12['push'](_0x1b1b12['shift']());}}}(a130_0x1158,0x9182a));import a130_0x339c9a from'winston';function a130_0x5418(_0x5e0427,_0x5573ea){_0x5e0427=_0x5e0427-0x165;const _0x1158b8=a130_0x1158();let _0x541823=_0x1158b8[_0x5e0427];return _0x541823;}import a130_0x38bfec from'node:fs';import a130_0x4ffa34 from'node:path';class Logger{[a130_0x187514(0x176)];['logFilePath'];[a130_0x187514(0x187)]='';constructor(){this['logFilePath']='';}[a130_0x187514(0x16d)](_0x3f0537){const _0x5916fe=a130_0x187514;this[_0x5916fe(0x187)]=_0x3f0537;}[a130_0x187514(0x189)](){const _0x145600=a130_0x187514,_0x2fa422=a130_0x4ffa34['dirname'](this[_0x145600(0x17c)]);!a130_0x38bfec['existsSync'](_0x2fa422)&&a130_0x38bfec['mkdirSync'](_0x2fa422,{'recursive':!![]});const _0x4a2fb0=a130_0x339c9a[_0x145600(0x18f)][_0x145600(0x192)](a130_0x339c9a[_0x145600(0x18f)][_0x145600(0x16f)](),a130_0x339c9a[_0x145600(0x18f)]['errors']({'stack':!![]}),a130_0x339c9a[_0x145600(0x18f)][_0x145600(0x17d)](_0x159917=>{const _0x51629c=_0x145600,_0x2b03b7={'timestamp':_0x159917[_0x51629c(0x16f)]||new Date()[_0x51629c(0x19b)](),'level':_0x159917[_0x51629c(0x182)]||_0x51629c(0x185),'command':_0x159917[_0x51629c(0x191)]||_0x51629c(0x18b),'rawCommand':_0x159917['rawCommand']||this[_0x51629c(0x187)]||undefined,'message':_0x159917[_0x51629c(0x16a)]||'','duration':_0x159917[_0x51629c(0x195)]||undefined,'details':_0x159917[_0x51629c(0x193)]||undefined};return JSON[_0x51629c(0x181)](_0x2b03b7);}));this['winstonLogger']=a130_0x339c9a[_0x145600(0x196)]({'level':_0x145600(0x185),'format':_0x4a2fb0,'transports':[new a130_0x339c9a[(_0x145600(0x170))]['File']({'filename':this['logFilePath'],'level':_0x145600(0x185)})],'silent':![]}),a130_0x339c9a[_0x145600(0x190)]({'success':_0x145600(0x16b),'error':_0x145600(0x17b),'warn':'yellow','info':'blue'});}[a130_0x187514(0x16e)](_0x5a81a2){const _0x5e1a7c=a130_0x187514;this['logFilePath']=a130_0x4ffa34['join'](_0x5a81a2,_0x5e1a7c(0x18d)),this[_0x5e1a7c(0x176)]&&this[_0x5e1a7c(0x176)][_0x5e1a7c(0x165)](),this['initWinstonLogger']();}['info'](_0x180b64,_0x2f56b3,_0x2d605c){const _0x26c81a=a130_0x187514;if(!this[_0x26c81a(0x17c)]||!this[_0x26c81a(0x176)])return;this[_0x26c81a(0x176)][_0x26c81a(0x185)](_0x2f56b3,{'command':_0x180b64,'details':_0x2d605c});}[a130_0x187514(0x18a)](_0x2c5d00,_0x429e1f,_0x4c6823,_0x45db37){const _0x30bfe1=a130_0x187514;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x30bfe1(0x176)][_0x30bfe1(0x186)]('info',_0x429e1f,{'level':_0x30bfe1(0x18a),'command':_0x2c5d00,'duration':_0x4c6823,'details':_0x45db37});}[a130_0x187514(0x175)](_0x2dfd45,_0x31a5ec,_0x3682bd){const _0x1d60b8=a130_0x187514;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x1d60b8(0x175)](_0x31a5ec,{'command':_0x2dfd45,'details':_0x3682bd});}[a130_0x187514(0x18c)](_0x4d23df,_0x1cbe97,_0x17a17b){const _0xabc33d=a130_0x187514;if(!this[_0xabc33d(0x17c)]||!this[_0xabc33d(0x176)])return;this[_0xabc33d(0x176)][_0xabc33d(0x18c)](_0x1cbe97,{'command':_0x4d23df,'details':_0x17a17b});}async[a130_0x187514(0x169)](_0x1a0489,_0x4ae816,_0x4a1fd5){const _0xfd8efd=a130_0x187514,_0x390636=Date[_0xfd8efd(0x183)]();this[_0xfd8efd(0x185)](_0x1a0489,_0xfd8efd(0x167)+_0x4ae816);try{const _0x36800d=await _0x4a1fd5(),_0x4f8533=Date[_0xfd8efd(0x183)]()-_0x390636;return this[_0xfd8efd(0x18a)](_0x1a0489,_0xfd8efd(0x178)+_0x4ae816,_0x4f8533),_0x36800d;}catch(_0x383ea9){const _0x2747c8=Date[_0xfd8efd(0x183)]()-_0x390636;this[_0xfd8efd(0x175)](_0x1a0489,'失败:\x20'+_0x4ae816,{'error':_0x383ea9 instanceof Error?_0x383ea9[_0xfd8efd(0x16a)]:String(_0x383ea9),'duration':_0x2747c8});throw _0x383ea9;}}[a130_0x187514(0x19a)](){const _0x2de9de=a130_0x187514;try{if(!a130_0x38bfec[_0x2de9de(0x171)](this[_0x2de9de(0x17c)]))return[];const _0x201c13=a130_0x38bfec[_0x2de9de(0x168)](this['logFilePath'],_0x2de9de(0x188));return _0x201c13[_0x2de9de(0x177)]('\x0a')[_0x2de9de(0x17f)](_0x42cabe=>_0x42cabe[_0x2de9de(0x174)]())['map'](_0x41b85c=>JSON[_0x2de9de(0x179)](_0x41b85c));}catch(_0x1f94bb){return console[_0x2de9de(0x18c)](_0x2de9de(0x199),_0x1f94bb),[];}}[a130_0x187514(0x166)](){const _0x3f1c54=a130_0x187514;try{a130_0x38bfec['existsSync'](this[_0x3f1c54(0x17c)])&&a130_0x38bfec[_0x3f1c54(0x17e)](this[_0x3f1c54(0x17c)],'',_0x3f1c54(0x188));}catch(_0xbe8ec6){console['warn'](_0x3f1c54(0x19c),_0xbe8ec6);}}[a130_0x187514(0x184)](){const _0x7e8713=a130_0x187514;return this[_0x7e8713(0x176)];}}function a130_0x1158(){const _0x29076a=['timestamp','transports','existsSync','8zDXrDl','3744415PtzJjP','trim','error','winstonLogger','split','完成:\x20','parse','21208446gAhVfC','red','logFilePath','printf','writeFileSync','filter','903388hGWFiy','stringify','level','now','getWinstonInstance','info','log','currentRawCommand','utf8','initWinstonLogger','success','unknown','warn','.lovrabet.log','395358QLCKUF','format','addColors','command','combine','details','16eCCFFG','duration','createLogger','2508037dwJZSp','1089825mtYDKi','Failed\x20to\x20read\x20logs:','readLogs','toISOString','Failed\x20to\x20clear\x20logs:','clear','clearLogs','开始执行:\x20','readFileSync','logTask','message','green','6820206IKygLU','setRawCommand','setLogPath'];a130_0x1158=function(){return _0x29076a;};return a130_0x1158();}export const logger=new Logger();
1
+ const a130_0x239a89=a130_0x5068;(function(_0xf3ec2d,_0x59a6b5){const _0x3cfcfb=a130_0x5068,_0x355058=_0xf3ec2d();while(!![]){try{const _0x20b174=-parseInt(_0x3cfcfb(0xdf))/0x1+parseInt(_0x3cfcfb(0xf6))/0x2*(-parseInt(_0x3cfcfb(0xe4))/0x3)+-parseInt(_0x3cfcfb(0xe9))/0x4*(parseInt(_0x3cfcfb(0xf9))/0x5)+-parseInt(_0x3cfcfb(0xe5))/0x6*(parseInt(_0x3cfcfb(0xea))/0x7)+parseInt(_0x3cfcfb(0x107))/0x8*(-parseInt(_0x3cfcfb(0xf1))/0x9)+-parseInt(_0x3cfcfb(0x10b))/0xa+parseInt(_0x3cfcfb(0xf4))/0xb*(parseInt(_0x3cfcfb(0xf2))/0xc);if(_0x20b174===_0x59a6b5)break;else _0x355058['push'](_0x355058['shift']());}catch(_0x2571a2){_0x355058['push'](_0x355058['shift']());}}}(a130_0x3a30,0x2af16));import a130_0x13be7d from'winston';function a130_0x5068(_0x5bb719,_0x270122){_0x5bb719=_0x5bb719-0xda;const _0x3a302e=a130_0x3a30();let _0x5068de=_0x3a302e[_0x5bb719];return _0x5068de;}import a130_0x14b9ea from'node:fs';import a130_0x4e6d1c from'node:path';class Logger{['winstonLogger'];[a130_0x239a89(0x10c)];[a130_0x239a89(0xec)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x4c4843){const _0x44e2bf=a130_0x239a89;this[_0x44e2bf(0xec)]=_0x4c4843;}[a130_0x239a89(0xfb)](){const _0x165322=a130_0x239a89,_0x5c5cc6=a130_0x4e6d1c[_0x165322(0xed)](this[_0x165322(0x10c)]);!a130_0x14b9ea['existsSync'](_0x5c5cc6)&&a130_0x14b9ea[_0x165322(0xe6)](_0x5c5cc6,{'recursive':!![]});const _0x17b6fc=a130_0x13be7d[_0x165322(0x10a)][_0x165322(0x103)](a130_0x13be7d['format'][_0x165322(0xee)](),a130_0x13be7d[_0x165322(0x10a)]['errors']({'stack':!![]}),a130_0x13be7d[_0x165322(0x10a)][_0x165322(0xe3)](_0x41c91e=>{const _0x5f1dd5=_0x165322,_0x1d4881={'timestamp':_0x41c91e[_0x5f1dd5(0xee)]||new Date()[_0x5f1dd5(0xe0)](),'level':_0x41c91e['level']||'info','command':_0x41c91e[_0x5f1dd5(0xde)]||'unknown','rawCommand':_0x41c91e['rawCommand']||this[_0x5f1dd5(0xec)]||undefined,'message':_0x41c91e['message']||'','duration':_0x41c91e['duration']||undefined,'details':_0x41c91e[_0x5f1dd5(0xfd)]||undefined};return JSON['stringify'](_0x1d4881);}));this[_0x165322(0xfa)]=a130_0x13be7d[_0x165322(0xe1)]({'level':'info','format':_0x17b6fc,'transports':[new a130_0x13be7d[(_0x165322(0x108))]['File']({'filename':this[_0x165322(0x10c)],'level':_0x165322(0x106)})],'silent':![]}),a130_0x13be7d[_0x165322(0xf7)]({'success':_0x165322(0xf0),'error':'red','warn':_0x165322(0xda),'info':_0x165322(0xf8)});}[a130_0x239a89(0x100)](_0x28b63b){const _0x4fccb9=a130_0x239a89;this[_0x4fccb9(0x10c)]=a130_0x4e6d1c[_0x4fccb9(0x101)](_0x28b63b,_0x4fccb9(0xe8)),this['winstonLogger']&&this[_0x4fccb9(0xfa)][_0x4fccb9(0xe2)](),this[_0x4fccb9(0xfb)]();}[a130_0x239a89(0x106)](_0xf04f2e,_0x3da89f,_0x5c9db5){const _0x3c4851=a130_0x239a89;if(!this[_0x3c4851(0x10c)]||!this[_0x3c4851(0xfa)])return;this[_0x3c4851(0xfa)][_0x3c4851(0x106)](_0x3da89f,{'command':_0xf04f2e,'details':_0x5c9db5});}[a130_0x239a89(0x104)](_0x2b5363,_0x3d8c1f,_0x483516,_0x4f658f){const _0x566d8f=a130_0x239a89;if(!this[_0x566d8f(0x10c)]||!this['winstonLogger'])return;this[_0x566d8f(0xfa)][_0x566d8f(0xff)](_0x566d8f(0x106),_0x3d8c1f,{'level':_0x566d8f(0x104),'command':_0x2b5363,'duration':_0x483516,'details':_0x4f658f});}[a130_0x239a89(0xdd)](_0x245462,_0x3e426c,_0x10c839){const _0x5ba7f9=a130_0x239a89;if(!this[_0x5ba7f9(0x10c)]||!this[_0x5ba7f9(0xfa)])return;this[_0x5ba7f9(0xfa)][_0x5ba7f9(0xdd)](_0x3e426c,{'command':_0x245462,'details':_0x10c839});}[a130_0x239a89(0xfc)](_0x534913,_0x253788,_0x2a3164){const _0xbd17e=a130_0x239a89;if(!this['logFilePath']||!this[_0xbd17e(0xfa)])return;this[_0xbd17e(0xfa)][_0xbd17e(0xfc)](_0x253788,{'command':_0x534913,'details':_0x2a3164});}async[a130_0x239a89(0xf3)](_0x236285,_0x10b2a3,_0x4b7f4f){const _0x10cd5a=a130_0x239a89,_0x129afa=Date[_0x10cd5a(0x109)]();this['info'](_0x236285,_0x10cd5a(0xf5)+_0x10b2a3);try{const _0x3f4b80=await _0x4b7f4f(),_0x477d08=Date[_0x10cd5a(0x109)]()-_0x129afa;return this[_0x10cd5a(0x104)](_0x236285,'完成:\x20'+_0x10b2a3,_0x477d08),_0x3f4b80;}catch(_0x10bf4b){const _0x192a39=Date[_0x10cd5a(0x109)]()-_0x129afa;this[_0x10cd5a(0xdd)](_0x236285,'失败:\x20'+_0x10b2a3,{'error':_0x10bf4b instanceof Error?_0x10bf4b[_0x10cd5a(0xdc)]:String(_0x10bf4b),'duration':_0x192a39});throw _0x10bf4b;}}['readLogs'](){const _0x2b660d=a130_0x239a89;try{if(!a130_0x14b9ea[_0x2b660d(0x102)](this[_0x2b660d(0x10c)]))return[];const _0xa2fa1a=a130_0x14b9ea[_0x2b660d(0xeb)](this[_0x2b660d(0x10c)],'utf8');return _0xa2fa1a['split']('\x0a')['filter'](_0x294a8=>_0x294a8['trim']())[_0x2b660d(0xdb)](_0x3a7a39=>JSON[_0x2b660d(0x105)](_0x3a7a39));}catch(_0x3b5e80){return console[_0x2b660d(0xfc)]('Failed\x20to\x20read\x20logs:',_0x3b5e80),[];}}['clearLogs'](){const _0x1bafc0=a130_0x239a89;try{a130_0x14b9ea[_0x1bafc0(0x102)](this[_0x1bafc0(0x10c)])&&a130_0x14b9ea[_0x1bafc0(0xef)](this[_0x1bafc0(0x10c)],'',_0x1bafc0(0xfe));}catch(_0xde588a){console[_0x1bafc0(0xfc)](_0x1bafc0(0xe7),_0xde588a);}}['getWinstonInstance'](){return this['winstonLogger'];}}function a130_0x3a30(){const _0x94bb51=['error','command','72294BLzFpU','toISOString','createLogger','clear','printf','9939QJlEGQ','6kPpTyy','mkdirSync','Failed\x20to\x20clear\x20logs:','.lovrabet.log','56852PFutDl','1439711uCSuzB','readFileSync','currentRawCommand','dirname','timestamp','writeFileSync','green','9WvKxny','15011148xrKfAT','logTask','11YDMjUh','开始执行:\x20','166ZiOrDA','addColors','blue','15ILfSzv','winstonLogger','initWinstonLogger','warn','details','utf8','log','setLogPath','join','existsSync','combine','success','parse','info','1061176cuoRcF','transports','now','format','3468030jKOTAE','logFilePath','yellow','map','message'];a130_0x3a30=function(){return _0x94bb51;};return a130_0x3a30();}export const logger=new Logger();
@@ -1 +1 @@
1
- const a131_0x50b1ff=a131_0x2e53;function a131_0x2e53(_0x314353,_0x2f813a){_0x314353=_0x314353-0x160;const _0xfdcc4b=a131_0xfdcc();let _0x2e5312=_0xfdcc4b[_0x314353];return _0x2e5312;}(function(_0x364e36,_0x2dfc54){const _0x40dd1f=a131_0x2e53,_0x525b95=_0x364e36();while(!![]){try{const _0x25d76f=parseInt(_0x40dd1f(0x16e))/0x1*(-parseInt(_0x40dd1f(0x16a))/0x2)+-parseInt(_0x40dd1f(0x16b))/0x3*(parseInt(_0x40dd1f(0x168))/0x4)+parseInt(_0x40dd1f(0x16c))/0x5+parseInt(_0x40dd1f(0x165))/0x6*(-parseInt(_0x40dd1f(0x162))/0x7)+parseInt(_0x40dd1f(0x164))/0x8*(-parseInt(_0x40dd1f(0x160))/0x9)+-parseInt(_0x40dd1f(0x161))/0xa+-parseInt(_0x40dd1f(0x16d))/0xb*(-parseInt(_0x40dd1f(0x167))/0xc);if(_0x25d76f===_0x2dfc54)break;else _0x525b95['push'](_0x525b95['shift']());}catch(_0xd44039){_0x525b95['push'](_0x525b95['shift']());}}}(a131_0xfdcc,0x61b8f));export const isWindows=process[a131_0x50b1ff(0x166)]===a131_0x50b1ff(0x169);export function resolveNpmBin(_0x34b00e){const _0x2af406=a131_0x50b1ff;return isWindows?_0x34b00e+_0x2af406(0x163):_0x34b00e;}function a131_0xfdcc(){const _0x39d4b5=['36exlIDF','2588IVtlTm','win32','2spdtgZ','3039FguVNn','1336370kvvblD','10769671xMPqXu','65053mYYwia','4890159hruUHC','7754130mELZKZ','21FULlUR','.cmd','8kzrgGU','1529916JlPlIb','platform'];a131_0xfdcc=function(){return _0x39d4b5;};return a131_0xfdcc();}
1
+ function a131_0x38c4(_0x2aca59,_0x17e6d1){_0x2aca59=_0x2aca59-0xde;const _0x5c30c7=a131_0x5c30();let _0x38c43f=_0x5c30c7[_0x2aca59];return _0x38c43f;}const a131_0x1fd270=a131_0x38c4;(function(_0x113a1f,_0x18d20b){const _0xeec04b=a131_0x38c4,_0x75d508=_0x113a1f();while(!![]){try{const _0x162323=parseInt(_0xeec04b(0xe9))/0x1*(-parseInt(_0xeec04b(0xe4))/0x2)+parseInt(_0xeec04b(0xe7))/0x3+parseInt(_0xeec04b(0xe1))/0x4+parseInt(_0xeec04b(0xe0))/0x5*(-parseInt(_0xeec04b(0xe5))/0x6)+-parseInt(_0xeec04b(0xde))/0x7*(-parseInt(_0xeec04b(0xe8))/0x8)+-parseInt(_0xeec04b(0xe2))/0x9*(parseInt(_0xeec04b(0xdf))/0xa)+-parseInt(_0xeec04b(0xe3))/0xb;if(_0x162323===_0x18d20b)break;else _0x75d508['push'](_0x75d508['shift']());}catch(_0x56bd37){_0x75d508['push'](_0x75d508['shift']());}}}(a131_0x5c30,0x64d5a));export const isWindows=process['platform']===a131_0x1fd270(0xe6);function a131_0x5c30(){const _0x77409f=['15032IOAjiq','3UnnyCS','2779EMlzpH','885780OWXMri','855370nkOiki','1684788WyzMbi','27QPmkKo','6023435AEXhNW','224914UWCiUK','12QtWEUK','win32','2216088JIEfOy'];a131_0x5c30=function(){return _0x77409f;};return a131_0x5c30();}export function resolveNpmBin(_0x397246){return isWindows?_0x397246+'.cmd':_0x397246;}
@@ -1 +1 @@
1
- (function(_0xd9a61,_0x52d341){const _0x4577d7=a132_0x1d22,_0x556b7e=_0xd9a61();while(!![]){try{const _0x324356=parseInt(_0x4577d7(0x185))/0x1+-parseInt(_0x4577d7(0x177))/0x2+-parseInt(_0x4577d7(0x17c))/0x3*(-parseInt(_0x4577d7(0x17e))/0x4)+parseInt(_0x4577d7(0x17f))/0x5+-parseInt(_0x4577d7(0x173))/0x6*(-parseInt(_0x4577d7(0x172))/0x7)+-parseInt(_0x4577d7(0x175))/0x8+-parseInt(_0x4577d7(0x17a))/0x9*(-parseInt(_0x4577d7(0x16f))/0xa);if(_0x324356===_0x52d341)break;else _0x556b7e['push'](_0x556b7e['shift']());}catch(_0x312819){_0x556b7e['push'](_0x556b7e['shift']());}}}(a132_0x5e8a,0xa7c12));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 _0x436143=a132_0x1d22,_0x470f6a=getTemplateBaseUrl();return _0x470f6a+_0x436143(0x170);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x248eed=a132_0x1d22,_0xc10a11=getRulesCdnUrl(),_0x2b7224=await fetch(_0xc10a11,{'headers':{'Accept':_0x248eed(0x16e)}});if(!_0x2b7224['ok'])throw new Error(_0x248eed(0x179)+_0x2b7224[_0x248eed(0x171)]+'\x20'+_0x2b7224['statusText']);const _0x244503=await _0x2b7224[_0x248eed(0x17b)]();if(!_0x244503[_0x248eed(0x174)]||typeof _0x244503[_0x248eed(0x174)]!==_0x248eed(0x183))throw new Error('CDN\x20返回数据格式错误');return _0x244503;}function a132_0x5e8a(){const _0x64f10b=['3854785ztYQUA','lastUpdated','catch','本地模板文件不存在:\x20','string','agents.md','316486hJnTEW','application/json','475770eSfpCt','/rules/rules.json','status','1036IzOwkL','29724abSLam','content','7053024NpHngn','.cursor/rules','1975860xABOOL','lovrabet_rules.mdc','CDN\x20请求失败:\x20','108AoGvfT','json','2649wYBTPP','utf-8','748TuVShH'];a132_0x5e8a=function(){return _0x64f10b;};return a132_0x5e8a();}export async function getRulesContent(){const _0x51aabe=a132_0x1d22;try{const _0x144e4f=await fetchRulesFromCDN();return _0x144e4f[_0x51aabe(0x174)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x24fda1=a132_0x1d22;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x24fda1(0x17d));throw new Error(_0x24fda1(0x182)+LOCAL_TEMPLATE_PATH);}function a132_0x1d22(_0x3b2c1d,_0x47fb13){_0x3b2c1d=_0x3b2c1d-0x16e;const _0x5e8aaa=a132_0x5e8a();let _0x1d225e=_0x5e8aaa[_0x3b2c1d];return _0x1d225e;}export async function writeRulesFile(_0xe0e1c1){const _0x2d638c=a132_0x1d22,_0x54b5c4=await fetchRulesFromCDN()[_0x2d638c(0x181)](()=>null);let _0x529dc1;_0x54b5c4?(_0x529dc1=_0x54b5c4[_0x2d638c(0x174)],_0x54b5c4[_0x2d638c(0x180)]&&(_0x529dc1=appendUpdateTime(_0x529dc1,_0x54b5c4[_0x2d638c(0x180)]))):_0x529dc1=readLocalTemplate();const _0x47cdcc=dirname(_0xe0e1c1);!existsSync(_0x47cdcc)&&mkdirSync(_0x47cdcc,{'recursive':!![]}),writeFileSync(_0xe0e1c1,_0x529dc1,_0x2d638c(0x17d));}export async function copyRulesToCursor(_0x2a5368){const _0x42a604=a132_0x1d22,_0x135d38=join(_0x2a5368,_0x42a604(0x176)),_0x7cb9f=join(_0x135d38,_0x42a604(0x178));if(existsSync(_0x7cb9f))return![];return await writeRulesFile(_0x7cb9f),!![];}export async function copyRulesToAgentsMd(_0x5a921d){const _0x2bba1e=a132_0x1d22,_0x1290ac=join(_0x5a921d,_0x2bba1e(0x184));if(existsSync(_0x1290ac))return![];return await writeRulesFile(_0x1290ac),!![];}
1
+ const a132_0x2c7d22=a132_0x3140;(function(_0x168f28,_0xee2e26){const _0x58723a=a132_0x3140,_0x3b4a28=_0x168f28();while(!![]){try{const _0x3ce885=-parseInt(_0x58723a(0xd9))/0x1*(parseInt(_0x58723a(0xdb))/0x2)+-parseInt(_0x58723a(0xcc))/0x3+parseInt(_0x58723a(0xd2))/0x4*(parseInt(_0x58723a(0xde))/0x5)+parseInt(_0x58723a(0xcf))/0x6+parseInt(_0x58723a(0xda))/0x7*(parseInt(_0x58723a(0xdd))/0x8)+parseInt(_0x58723a(0xcd))/0x9+-parseInt(_0x58723a(0xe1))/0xa;if(_0x3ce885===_0xee2e26)break;else _0x3b4a28['push'](_0x3b4a28['shift']());}catch(_0x3e93b2){_0x3b4a28['push'](_0x3b4a28['shift']());}}}(a132_0x3a21,0x310ab));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a132_0x3140(_0x2127e4,_0x2fef26){_0x2127e4=_0x2127e4-0xc9;const _0x3a21b9=a132_0x3a21();let _0x31401c=_0x3a21b9[_0x2127e4];return _0x31401c;}function getRulesCdnUrl(){const _0xde5c65=a132_0x3140,_0x5817cf=getTemplateBaseUrl();return _0x5817cf+_0xde5c65(0xe2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x2c7d22(0xcb));export async function fetchRulesFromCDN(){const _0x416829=a132_0x2c7d22,_0x3bb83e=getRulesCdnUrl(),_0x36f392=await fetch(_0x3bb83e,{'headers':{'Accept':_0x416829(0xd5)}});if(!_0x36f392['ok'])throw new Error(_0x416829(0xd6)+_0x36f392[_0x416829(0xd1)]+'\x20'+_0x36f392[_0x416829(0xc9)]);const _0x4016dd=await _0x36f392[_0x416829(0xdc)]();if(!_0x4016dd[_0x416829(0xd8)]||typeof _0x4016dd[_0x416829(0xd8)]!==_0x416829(0xdf))throw new Error(_0x416829(0xca));return _0x4016dd;}export async function getRulesContent(){const _0x5f3369=a132_0x2c7d22;try{const _0x134bee=await fetchRulesFromCDN();return _0x134bee[_0x5f3369(0xd8)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5cbba8=a132_0x2c7d22;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x5cbba8(0xd0));throw new Error(_0x5cbba8(0xd3)+LOCAL_TEMPLATE_PATH);}function a132_0x3a21(){const _0x85714c=['39361aYoGIY','3714CZEBIF','json','568TKXMvM','55zayVss','string','catch','1685830kimDEL','/rules/rules.json','statusText','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','864444fHTNlL','2042190qzmIMb','.cursor/rules','67608nRwdPN','utf-8','status','85000CXBuub','本地模板文件不存在:\x20','lastUpdated','application/json','CDN\x20请求失败:\x20','agents.md','content','115jAcrKG'];a132_0x3a21=function(){return _0x85714c;};return a132_0x3a21();}export async function writeRulesFile(_0xa49da9){const _0x1168b9=a132_0x2c7d22,_0x2404f7=await fetchRulesFromCDN()[_0x1168b9(0xe0)](()=>null);let _0x485e82;_0x2404f7?(_0x485e82=_0x2404f7[_0x1168b9(0xd8)],_0x2404f7['lastUpdated']&&(_0x485e82=appendUpdateTime(_0x485e82,_0x2404f7[_0x1168b9(0xd4)]))):_0x485e82=readLocalTemplate();const _0xf3c1d3=dirname(_0xa49da9);!existsSync(_0xf3c1d3)&&mkdirSync(_0xf3c1d3,{'recursive':!![]}),writeFileSync(_0xa49da9,_0x485e82,_0x1168b9(0xd0));}export async function copyRulesToCursor(_0xae3937){const _0x2afafa=a132_0x2c7d22,_0x28f960=join(_0xae3937,_0x2afafa(0xce)),_0x53a88a=join(_0x28f960,'lovrabet_rules.mdc');if(existsSync(_0x53a88a))return![];return await writeRulesFile(_0x53a88a),!![];}export async function copyRulesToAgentsMd(_0x35414d){const _0x26b8da=a132_0x2c7d22,_0x4d8e48=join(_0x35414d,_0x26b8da(0xd7));if(existsSync(_0x4d8e48))return![];return await writeRulesFile(_0x4d8e48),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x16ca36){return new Promise(_0x566d69=>setTimeout(_0x566d69,_0x16ca36));}
1
+ export function sleep(_0x54a7d4){return new Promise(_0x57a5c1=>setTimeout(_0x57a5c1,_0x54a7d4));}
@@ -1 +1 @@
1
- const a134_0x52f52b=a134_0x3294;(function(_0x118555,_0x1f3c4f){const _0x5294aa=a134_0x3294,_0x27e142=_0x118555();while(!![]){try{const _0x289e8f=-parseInt(_0x5294aa(0xa9))/0x1*(-parseInt(_0x5294aa(0xbe))/0x2)+-parseInt(_0x5294aa(0x92))/0x3*(parseInt(_0x5294aa(0xb0))/0x4)+parseInt(_0x5294aa(0x8e))/0x5*(parseInt(_0x5294aa(0x8b))/0x6)+parseInt(_0x5294aa(0xb2))/0x7*(parseInt(_0x5294aa(0xa3))/0x8)+parseInt(_0x5294aa(0xbc))/0x9*(-parseInt(_0x5294aa(0xa0))/0xa)+parseInt(_0x5294aa(0xb6))/0xb*(parseInt(_0x5294aa(0x95))/0xc)+-parseInt(_0x5294aa(0xc0))/0xd;if(_0x289e8f===_0x1f3c4f)break;else _0x27e142['push'](_0x27e142['shift']());}catch(_0x51bb97){_0x27e142['push'](_0x27e142['shift']());}}}(a134_0x5469,0x8ab67));import a134_0x29a18f from'node:fs';function a134_0x3294(_0x2b61ff,_0x17809f){_0x2b61ff=_0x2b61ff-0x7c;const _0x54690b=a134_0x5469();let _0x3294a5=_0x54690b[_0x2b61ff];return _0x3294a5;}function a134_0x5469(){const _0x5aa2bd=['347534rziqeo','.md','isDirectory','replace','.jsx','mkdir','5742JHzqpp','error','2EiprqF','\x0a\x20\x20\x20\x20{\x20','33444515GaQiQD','toLocaleString','toComponentName','numeric','toISOString','.js','utf8','default','message','extname','now','.tsx','template','模板内容替换完成','datasetCode:\x20\x22','charAt','datasetCode','replaceContent','isFile','283212YxfGys','.scss','info','80gIwFuc','toLowerCase','toDisplayTitle','.tpl','836709AljHLQ','promises','api','348ToDBHP','name','push','pop','toUpperCase','alias:\x20\x22','slice','2-digit','readdir','copyFile','模板内容替换失败','5160gEXldl','YourModel','LOVRABET','8wcZozi','readFile','processFile','map','toLocaleTimeString','toLocaleDateString','1052408dZgjZD','join','alias','\x20},','processDirectory','split','.ts','4gSgJfq','processTemplate','7175469VLVPvH','includes','endsWith','.css'];a134_0x5469=function(){return _0x5aa2bd;};return a134_0x5469();}import a134_0x1caf7e from'node:path';import{logger}from'./logger.js';import{getCliVersion}from'./version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a134_0x52f52b(0xc2)](_0x5865b3){const _0x8db42b=a134_0x52f52b,_0x1bd9cd=_0x5865b3[_0x8db42b(0xae)]('/')[_0x8db42b(0x98)]()||_0x5865b3;return _0x1bd9cd[_0x8db42b(0xae)]('-')['map'](_0x4efca4=>_0x4efca4[_0x8db42b(0x87)](0x0)['toUpperCase']()+_0x4efca4[_0x8db42b(0x9b)](0x1)[_0x8db42b(0x8f)]())[_0x8db42b(0xaa)]('');}static[a134_0x52f52b(0x90)](_0x1e4e94){const _0x3003bf=a134_0x52f52b,_0x4b9473=_0x1e4e94['split']('/')[_0x3003bf(0x98)]()||_0x1e4e94;return _0x4b9473[_0x3003bf(0xae)]('-')['map'](_0x23528c=>_0x23528c[_0x3003bf(0x87)](0x0)[_0x3003bf(0x99)]()+_0x23528c[_0x3003bf(0x9b)](0x1)[_0x3003bf(0x8f)]())['join']('\x20');}static[a134_0x52f52b(0x89)](_0xe76a1f,_0x2139d1,_0x4a53db){const _0x2463bb=a134_0x52f52b,_0x58b64e=this[_0x2463bb(0xc2)](_0x2139d1),_0x164bcb=this['toDisplayTitle'](_0x2139d1),_0x3435db=new Date(),_0x58d79a=_0x3435db[_0x2463bb(0xc1)](undefined,{'year':'numeric','month':_0x2463bb(0x9c),'day':_0x2463bb(0x9c),'hour':_0x2463bb(0x9c),'minute':_0x2463bb(0x9c),'second':_0x2463bb(0x9c),'hour12':![]})[_0x2463bb(0xb9)](/\//g,'-'),_0x403d92=_0x3435db[_0x2463bb(0xa8)](undefined,{'year':_0x2463bb(0xc3),'month':_0x2463bb(0x9c),'day':'2-digit'})[_0x2463bb(0xb9)](/\//g,'-'),_0x2d9e5b=_0x3435db[_0x2463bb(0xa7)](undefined,{'hour12':![]});let _0x703674=_0xe76a1f[_0x2463bb(0xb9)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x58b64e)[_0x2463bb(0xb9)](/\{DisplayTitle\}/g,_0x164bcb)['replace'](/\{PageName\}/g,_0x2139d1)['replace'](/\{TemplateName\}/g,_0x4a53db)['replace'](/\{CreatedAt\}/g,_0x58d79a)[_0x2463bb(0xb9)](/\{CreatedDate\}/g,_0x403d92)['replace'](/\{CreatedTime\}/g,_0x2d9e5b);return _0x703674;}static['replaceApiContent'](_0x163062,_0x4be819,_0x1a688e,_0x43c0a0,_0x3265c1,_0x1f3892,_0x4bcd56,_0x153eaa){const _0x2492c8=a134_0x52f52b,_0x27fb8b=new Date(),_0x4f7a73=_0x27fb8b[_0x2492c8(0x7c)](),_0x3b6039=_0x1a688e[_0x2492c8(0xa6)](_0x21099e=>{const _0x1d3c1f=_0x2492c8,_0x5ef1db=[_0x1d3c1f(0x86)+_0x21099e[_0x1d3c1f(0x88)]+'\x22','tableName:\x20\x22'+_0x21099e['tableName']+'\x22','name:\x20\x22'+_0x21099e[_0x1d3c1f(0x96)]+'\x22'];return _0x21099e[_0x1d3c1f(0xab)]&&_0x5ef1db[_0x1d3c1f(0x97)](_0x1d3c1f(0x9a)+_0x21099e['alias']+'\x22'),_0x1d3c1f(0xbf)+_0x5ef1db[_0x1d3c1f(0xaa)](',\x20')+_0x1d3c1f(0xac);})[_0x2492c8(0xaa)](''),_0x2263e8=_0x43c0a0||_0x1a688e[0x0]?.['alias']||_0x2492c8(0xa1);let _0x1a8809=_0x163062[_0x2492c8(0xb9)](/\{AppCode\}/g,_0x4be819)['replace'](/\{ModelConfigs\}/g,_0x3b6039)['replace'](/\{ExampleModelName\}/g,_0x2263e8)[_0x2492c8(0xb9)](/\{ApiFileName\}/g,_0x3265c1||_0x2492c8(0x94))['replace'](/\{ConfigName\}/g,_0x1f3892||_0x2492c8(0x7f))[_0x2492c8(0xb9)](/\{ClientConfigParam\}/g,_0x4bcd56||'')[_0x2492c8(0xb9)](/\{VarPrefix\}/g,_0x153eaa||_0x2492c8(0xa2))[_0x2492c8(0xb9)](/\{CreatedAt\}/g,_0x4f7a73);return _0x1a8809;}static async[a134_0x52f52b(0xb1)](_0x300fc4,_0xbb7807,_0x29785c,_0x406493,_0x574dd1=!![]){const _0x2cb038=a134_0x52f52b,_0x369b96=Date['now']();try{_0x574dd1&&logger[_0x2cb038(0x8d)](_0x2cb038(0x84),'开始处理模板内容替换',{'templatePath':_0x300fc4,'targetPath':_0xbb7807,'pageName':_0x29785c,'templateName':_0x406493});await a134_0x29a18f[_0x2cb038(0x93)]['mkdir'](_0xbb7807,{'recursive':!![]}),await this['processDirectory'](_0x300fc4,_0xbb7807,_0x29785c,_0x406493);if(_0x574dd1){const _0x59a6be=Date[_0x2cb038(0x82)]()-_0x369b96;logger['success'](_0x2cb038(0x84),_0x2cb038(0x85),_0x59a6be,{'pageName':_0x29785c,'templateName':_0x406493});}}catch(_0x23a71a){if(_0x574dd1){const _0x13f04d=Date[_0x2cb038(0x82)]()-_0x369b96;logger[_0x2cb038(0xbd)](_0x2cb038(0x84),_0x2cb038(0x9f),{'templatePath':_0x300fc4,'targetPath':_0xbb7807,'pageName':_0x29785c,'templateName':_0x406493,'error':_0x23a71a instanceof Error?_0x23a71a[_0x2cb038(0x80)]:String(_0x23a71a),'duration':_0x13f04d});}throw _0x23a71a;}}static async[a134_0x52f52b(0xad)](_0x94cb12,_0x5915b2,_0x55dc1d,_0x5d6e21){const _0x484f8d=a134_0x52f52b,_0x3b8906=await a134_0x29a18f['promises'][_0x484f8d(0x9d)](_0x94cb12,{'withFileTypes':!![]});for(const _0x15dd8e of _0x3b8906){const _0x5d25f0=a134_0x1caf7e[_0x484f8d(0xaa)](_0x94cb12,_0x15dd8e[_0x484f8d(0x96)]);let _0x5cf15c=a134_0x1caf7e[_0x484f8d(0xaa)](_0x5915b2,_0x15dd8e[_0x484f8d(0x96)]);_0x15dd8e[_0x484f8d(0x96)][_0x484f8d(0xb4)](_0x484f8d(0x91))&&(_0x5cf15c=a134_0x1caf7e[_0x484f8d(0xaa)](_0x5915b2,_0x15dd8e[_0x484f8d(0x96)]['replace'](/\.tpl$/,'')));if(_0x15dd8e[_0x484f8d(0xb8)]())await a134_0x29a18f[_0x484f8d(0x93)][_0x484f8d(0xbb)](_0x5cf15c,{'recursive':!![]}),await this[_0x484f8d(0xad)](_0x5d25f0,_0x5cf15c,_0x55dc1d,_0x5d6e21);else _0x15dd8e[_0x484f8d(0x8a)]()&&await this[_0x484f8d(0xa5)](_0x5d25f0,_0x5cf15c,_0x55dc1d,_0x5d6e21);}}static async['processFile'](_0x26a395,_0x432627,_0x418b5b,_0x147e9a){const _0x422ed5=a134_0x52f52b,_0x1ae6d4=a134_0x1caf7e[_0x422ed5(0x81)](_0x26a395)[_0x422ed5(0x8f)]();_0x26a395[_0x422ed5(0xb4)](_0x422ed5(0x91))&&(_0x432627=_0x432627['replace'](/\.tpl$/,''));const _0x136868=[_0x422ed5(0x83),_0x422ed5(0xaf),_0x422ed5(0xba),_0x422ed5(0x7d),'.json',_0x422ed5(0xb7),_0x422ed5(0xb5),_0x422ed5(0x8c),_0x422ed5(0x91)];if(_0x136868[_0x422ed5(0xb3)](_0x1ae6d4)||_0x26a395['endsWith'](_0x422ed5(0x91))){const _0x1b0d0d=await a134_0x29a18f[_0x422ed5(0x93)][_0x422ed5(0xa4)](_0x26a395,_0x422ed5(0x7e)),_0x494b16=this['replaceContent'](_0x1b0d0d,_0x418b5b,_0x147e9a);await a134_0x29a18f[_0x422ed5(0x93)]['writeFile'](_0x432627,_0x494b16,_0x422ed5(0x7e));}else await a134_0x29a18f[_0x422ed5(0x93)][_0x422ed5(0x9e)](_0x26a395,_0x432627);}}
1
+ const a134_0x35ed66=a134_0x3a0e;(function(_0x3e7f40,_0x537493){const _0x28c24d=a134_0x3a0e,_0x862481=_0x3e7f40();while(!![]){try{const _0x1b5a1d=-parseInt(_0x28c24d(0x1ab))/0x1+-parseInt(_0x28c24d(0x18a))/0x2+-parseInt(_0x28c24d(0x18b))/0x3+parseInt(_0x28c24d(0x1aa))/0x4+-parseInt(_0x28c24d(0x187))/0x5*(-parseInt(_0x28c24d(0x1a6))/0x6)+-parseInt(_0x28c24d(0x19c))/0x7+parseInt(_0x28c24d(0x185))/0x8*(parseInt(_0x28c24d(0x1a2))/0x9);if(_0x1b5a1d===_0x537493)break;else _0x862481['push'](_0x862481['shift']());}catch(_0x2a2539){_0x862481['push'](_0x862481['shift']());}}}(a134_0x2ebb,0x2d367));function a134_0x2ebb(){const _0xc4f488=['toISOString','success','2058363iCMGsC','split','toLocaleTimeString','replaceApiContent','72216SKqtTQ','replace','error','pop','1314504tEQKNw','295316zlJhdw','tableName','.json','writeFile','toLocaleDateString','endsWith','toLocaleString','\x20},','.jsx','utf8','readdir','datasetCode:\x20\x22','promises','numeric','push','name','processFile','now','readFile','2-digit','charAt','toUpperCase','mkdir','api','YourModel','开始处理模板内容替换','message','.css','slice','模板内容替换完成','16FZJNih','copyFile','85UVRUPf','processDirectory','toDisplayTitle','374084urTAdf','683094ABYsNs','isFile','LOVRABET','toComponentName','template','\x0a\x20\x20\x20\x20{\x20','includes','.scss','map','.md','.tpl','datasetCode','toLowerCase','.tsx','replaceContent','processTemplate','.js','667835NJLGFl','tableName:\x20\x22','alias','join'];a134_0x2ebb=function(){return _0xc4f488;};return a134_0x2ebb();}import a134_0xfa34ad from'node:fs';import a134_0x4b9670 from'node:path';function a134_0x3a0e(_0x2b6679,_0x5bda3f){_0x2b6679=_0x2b6679-0x16b;const _0x2ebb07=a134_0x2ebb();let _0x3a0ec6=_0x2ebb07[_0x2b6679];return _0x3a0ec6;}import{logger}from'./logger.js';import{getCliVersion}from'./version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a134_0x35ed66(0x18e)](_0x21cd7b){const _0x12e7d2=a134_0x35ed66,_0x144fd0=_0x21cd7b[_0x12e7d2(0x1a3)]('/')[_0x12e7d2(0x1a9)]()||_0x21cd7b;return _0x144fd0[_0x12e7d2(0x1a3)]('-')[_0x12e7d2(0x193)](_0x3489dd=>_0x3489dd[_0x12e7d2(0x17b)](0x0)['toUpperCase']()+_0x3489dd[_0x12e7d2(0x183)](0x1)['toLowerCase']())[_0x12e7d2(0x19f)]('');}static[a134_0x35ed66(0x189)](_0x3b5b1f){const _0x3036c9=a134_0x35ed66,_0x14a822=_0x3b5b1f[_0x3036c9(0x1a3)]('/')[_0x3036c9(0x1a9)]()||_0x3b5b1f;return _0x14a822[_0x3036c9(0x1a3)]('-')[_0x3036c9(0x193)](_0x551f3d=>_0x551f3d[_0x3036c9(0x17b)](0x0)[_0x3036c9(0x17c)]()+_0x551f3d[_0x3036c9(0x183)](0x1)[_0x3036c9(0x197)]())['join']('\x20');}static[a134_0x35ed66(0x199)](_0x41c2b1,_0x1ba6e0,_0x3716e0){const _0x149c33=a134_0x35ed66,_0x5c2cef=this[_0x149c33(0x18e)](_0x1ba6e0),_0x1d37c7=this[_0x149c33(0x189)](_0x1ba6e0),_0x4ba153=new Date(),_0x1f4a95=_0x4ba153[_0x149c33(0x16d)](undefined,{'year':_0x149c33(0x174),'month':_0x149c33(0x17a),'day':'2-digit','hour':_0x149c33(0x17a),'minute':'2-digit','second':_0x149c33(0x17a),'hour12':![]})['replace'](/\//g,'-'),_0x39dbcf=_0x4ba153[_0x149c33(0x16b)](undefined,{'year':_0x149c33(0x174),'month':_0x149c33(0x17a),'day':'2-digit'})['replace'](/\//g,'-'),_0x5a81c6=_0x4ba153[_0x149c33(0x1a4)](undefined,{'hour12':![]});let _0x11ea3a=_0x41c2b1[_0x149c33(0x1a7)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x5c2cef)[_0x149c33(0x1a7)](/\{DisplayTitle\}/g,_0x1d37c7)[_0x149c33(0x1a7)](/\{PageName\}/g,_0x1ba6e0)[_0x149c33(0x1a7)](/\{TemplateName\}/g,_0x3716e0)[_0x149c33(0x1a7)](/\{CreatedAt\}/g,_0x1f4a95)[_0x149c33(0x1a7)](/\{CreatedDate\}/g,_0x39dbcf)[_0x149c33(0x1a7)](/\{CreatedTime\}/g,_0x5a81c6);return _0x11ea3a;}static[a134_0x35ed66(0x1a5)](_0x501561,_0x4350b8,_0x4ba98c,_0x509184,_0x1b992d,_0x35c70c,_0x52d36d,_0x76032b){const _0x39b036=a134_0x35ed66,_0x41aea6=new Date(),_0x4ee418=_0x41aea6[_0x39b036(0x1a0)](),_0x434dc7=_0x4ba98c[_0x39b036(0x193)](_0x37c813=>{const _0x4acc97=_0x39b036,_0xd59083=[_0x4acc97(0x172)+_0x37c813[_0x4acc97(0x196)]+'\x22',_0x4acc97(0x19d)+_0x37c813[_0x4acc97(0x1ac)]+'\x22','name:\x20\x22'+_0x37c813['name']+'\x22'];return _0x37c813[_0x4acc97(0x19e)]&&_0xd59083[_0x4acc97(0x175)]('alias:\x20\x22'+_0x37c813[_0x4acc97(0x19e)]+'\x22'),_0x4acc97(0x190)+_0xd59083[_0x4acc97(0x19f)](',\x20')+_0x4acc97(0x16e);})[_0x39b036(0x19f)](''),_0x90913b=_0x509184||_0x4ba98c[0x0]?.[_0x39b036(0x19e)]||_0x39b036(0x17f);let _0x3926db=_0x501561[_0x39b036(0x1a7)](/\{AppCode\}/g,_0x4350b8)['replace'](/\{ModelConfigs\}/g,_0x434dc7)[_0x39b036(0x1a7)](/\{ExampleModelName\}/g,_0x90913b)[_0x39b036(0x1a7)](/\{ApiFileName\}/g,_0x1b992d||_0x39b036(0x17e))['replace'](/\{ConfigName\}/g,_0x35c70c||'default')[_0x39b036(0x1a7)](/\{ClientConfigParam\}/g,_0x52d36d||'')[_0x39b036(0x1a7)](/\{VarPrefix\}/g,_0x76032b||_0x39b036(0x18d))['replace'](/\{CreatedAt\}/g,_0x4ee418);return _0x3926db;}static async[a134_0x35ed66(0x19a)](_0x3f0b34,_0x35fddd,_0x4b11b2,_0xbddc3,_0x2ea13f=!![]){const _0x3e8879=a134_0x35ed66,_0x21e3d1=Date[_0x3e8879(0x178)]();try{_0x2ea13f&&logger['info']('template',_0x3e8879(0x180),{'templatePath':_0x3f0b34,'targetPath':_0x35fddd,'pageName':_0x4b11b2,'templateName':_0xbddc3});await a134_0xfa34ad[_0x3e8879(0x173)][_0x3e8879(0x17d)](_0x35fddd,{'recursive':!![]}),await this['processDirectory'](_0x3f0b34,_0x35fddd,_0x4b11b2,_0xbddc3);if(_0x2ea13f){const _0x4d517f=Date['now']()-_0x21e3d1;logger[_0x3e8879(0x1a1)](_0x3e8879(0x18f),_0x3e8879(0x184),_0x4d517f,{'pageName':_0x4b11b2,'templateName':_0xbddc3});}}catch(_0xf22747){if(_0x2ea13f){const _0x25d4dc=Date[_0x3e8879(0x178)]()-_0x21e3d1;logger[_0x3e8879(0x1a8)](_0x3e8879(0x18f),'模板内容替换失败',{'templatePath':_0x3f0b34,'targetPath':_0x35fddd,'pageName':_0x4b11b2,'templateName':_0xbddc3,'error':_0xf22747 instanceof Error?_0xf22747[_0x3e8879(0x181)]:String(_0xf22747),'duration':_0x25d4dc});}throw _0xf22747;}}static async[a134_0x35ed66(0x188)](_0x82b3d,_0x3d6fd9,_0x3d9fbc,_0x2b395b){const _0x1be4f6=a134_0x35ed66,_0x3333b1=await a134_0xfa34ad[_0x1be4f6(0x173)][_0x1be4f6(0x171)](_0x82b3d,{'withFileTypes':!![]});for(const _0xcd2057 of _0x3333b1){const _0x4ea76e=a134_0x4b9670[_0x1be4f6(0x19f)](_0x82b3d,_0xcd2057[_0x1be4f6(0x176)]);let _0x17b801=a134_0x4b9670[_0x1be4f6(0x19f)](_0x3d6fd9,_0xcd2057[_0x1be4f6(0x176)]);_0xcd2057[_0x1be4f6(0x176)][_0x1be4f6(0x16c)]('.tpl')&&(_0x17b801=a134_0x4b9670[_0x1be4f6(0x19f)](_0x3d6fd9,_0xcd2057[_0x1be4f6(0x176)][_0x1be4f6(0x1a7)](/\.tpl$/,'')));if(_0xcd2057['isDirectory']())await a134_0xfa34ad[_0x1be4f6(0x173)][_0x1be4f6(0x17d)](_0x17b801,{'recursive':!![]}),await this[_0x1be4f6(0x188)](_0x4ea76e,_0x17b801,_0x3d9fbc,_0x2b395b);else _0xcd2057[_0x1be4f6(0x18c)]()&&await this[_0x1be4f6(0x177)](_0x4ea76e,_0x17b801,_0x3d9fbc,_0x2b395b);}}static async[a134_0x35ed66(0x177)](_0x325cdf,_0x4c78fa,_0x156d07,_0x8a385d){const _0x1f615d=a134_0x35ed66,_0x42540f=a134_0x4b9670['extname'](_0x325cdf)[_0x1f615d(0x197)]();_0x325cdf['endsWith']('.tpl')&&(_0x4c78fa=_0x4c78fa[_0x1f615d(0x1a7)](/\.tpl$/,''));const _0x1e1202=[_0x1f615d(0x198),'.ts',_0x1f615d(0x16f),_0x1f615d(0x19b),_0x1f615d(0x1ad),_0x1f615d(0x194),_0x1f615d(0x182),_0x1f615d(0x192),_0x1f615d(0x195)];if(_0x1e1202[_0x1f615d(0x191)](_0x42540f)||_0x325cdf[_0x1f615d(0x16c)](_0x1f615d(0x195))){const _0x3cc683=await a134_0xfa34ad[_0x1f615d(0x173)][_0x1f615d(0x179)](_0x325cdf,'utf8'),_0x5582be=this[_0x1f615d(0x199)](_0x3cc683,_0x156d07,_0x8a385d);await a134_0xfa34ad['promises'][_0x1f615d(0x1ae)](_0x4c78fa,_0x5582be,_0x1f615d(0x170));}else await a134_0xfa34ad['promises'][_0x1f615d(0x186)](_0x325cdf,_0x4c78fa);}}
@@ -1 +1 @@
1
- function a135_0x3b9c(){var _0x53d4f1=['266301IGXVNd','114oZgCfr','40kDWHoo','385336bvoNsq','863302lwongF','16947bUiFCr','398104vgkizS','4212145qNkPca','6440JwMVxa','286170vdeJzd'];a135_0x3b9c=function(){return _0x53d4f1;};return a135_0x3b9c();}function a135_0xe14b(_0x1ebc92,_0x383876){_0x1ebc92=_0x1ebc92-0x153;var _0x3b9c0d=a135_0x3b9c();var _0xe14bde=_0x3b9c0d[_0x1ebc92];return _0xe14bde;}(function(_0x376f47,_0x531b44){var _0x1a9182=a135_0xe14b,_0x1b5ea4=_0x376f47();while(!![]){try{var _0x3ad02d=-parseInt(_0x1a9182(0x155))/0x1+-parseInt(_0x1a9182(0x154))/0x2+parseInt(_0x1a9182(0x15b))/0x3*(parseInt(_0x1a9182(0x153))/0x4)+-parseInt(_0x1a9182(0x15a))/0x5*(parseInt(_0x1a9182(0x15c))/0x6)+parseInt(_0x1a9182(0x158))/0x7+parseInt(_0x1a9182(0x157))/0x8+-parseInt(_0x1a9182(0x156))/0x9*(-parseInt(_0x1a9182(0x159))/0xa);if(_0x3ad02d===_0x531b44)break;else _0x1b5ea4['push'](_0x1b5ea4['shift']());}catch(_0x144c7e){_0x1b5ea4['push'](_0x1b5ea4['shift']());}}}(a135_0x3b9c,0x94894));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a135_0x5082(_0x25e265,_0x4fb69e){_0x25e265=_0x25e265-0xc5;var _0x42bd91=a135_0x42bd();var _0x50822c=_0x42bd91[_0x25e265];return _0x50822c;}(function(_0x416215,_0x26a32d){var _0x1519f5=a135_0x5082,_0x8d8a06=_0x416215();while(!![]){try{var _0x19e16b=parseInt(_0x1519f5(0xc7))/0x1+-parseInt(_0x1519f5(0xc8))/0x2*(parseInt(_0x1519f5(0xca))/0x3)+parseInt(_0x1519f5(0xcc))/0x4*(-parseInt(_0x1519f5(0xcf))/0x5)+-parseInt(_0x1519f5(0xce))/0x6+-parseInt(_0x1519f5(0xc9))/0x7*(parseInt(_0x1519f5(0xc5))/0x8)+parseInt(_0x1519f5(0xcb))/0x9*(parseInt(_0x1519f5(0xcd))/0xa)+parseInt(_0x1519f5(0xc6))/0xb;if(_0x19e16b===_0x26a32d)break;else _0x8d8a06['push'](_0x8d8a06['shift']());}catch(_0x85bc6){_0x8d8a06['push'](_0x8d8a06['shift']());}}}(a135_0x42bd,0x7a119));function a135_0x42bd(){var _0x4d7ddd=['11981wuVgpe','14BUWDER','25928WyDpoO','312789MhzVCi','821025IzirGg','12ijfmxc','10bCuPEI','3568092hbrTiY','1284345uavXDu','1560gTWwBC','35356167DhQIdp'];a135_0x42bd=function(){return _0x4d7ddd;};return a135_0x42bd();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a136_0x2ceb(){var _0x472ff0=['10CFIODr','394qwKPca','5553KAvpWF','7702xzOeGn','29507005RuYBHY','3423xSFOfD','16592jZOeLA','520IAgPcd','9017868fhynPC','7702740LHgzYG','4811541FmqGzK'];a136_0x2ceb=function(){return _0x472ff0;};return a136_0x2ceb();}function a136_0x23ca(_0x2af90b,_0x49d3fe){_0x2af90b=_0x2af90b-0xb2;var _0x2cebc6=a136_0x2ceb();var _0x23ca94=_0x2cebc6[_0x2af90b];return _0x23ca94;}(function(_0x104ccb,_0x55dd6a){var _0x2fc5db=a136_0x23ca,_0x241715=_0x104ccb();while(!![]){try{var _0x303504=-parseInt(_0x2fc5db(0xb6))/0x1*(-parseInt(_0x2fc5db(0xb8))/0x2)+-parseInt(_0x2fc5db(0xba))/0x3*(-parseInt(_0x2fc5db(0xbc))/0x4)+parseInt(_0x2fc5db(0xb3))/0x5+-parseInt(_0x2fc5db(0xb2))/0x6+parseInt(_0x2fc5db(0xb4))/0x7+parseInt(_0x2fc5db(0xbb))/0x8*(parseInt(_0x2fc5db(0xb7))/0x9)+parseInt(_0x2fc5db(0xb5))/0xa*(-parseInt(_0x2fc5db(0xb9))/0xb);if(_0x303504===_0x55dd6a)break;else _0x241715['push'](_0x241715['shift']());}catch(_0x381371){_0x241715['push'](_0x241715['shift']());}}}(a136_0x2ceb,0xf1270));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4e4fb8,_0x1b8bc7){setActiveCookie(_0x4e4fb8);try{return await _0x1b8bc7();}finally{clearActiveCookie();}}
1
+ (function(_0x6efd7d,_0x45aace){var _0xb1c40a=a136_0x1153,_0x3bf02f=_0x6efd7d();while(!![]){try{var _0x458bde=parseInt(_0xb1c40a(0x14f))/0x1+-parseInt(_0xb1c40a(0x156))/0x2*(parseInt(_0xb1c40a(0x152))/0x3)+-parseInt(_0xb1c40a(0x157))/0x4*(-parseInt(_0xb1c40a(0x158))/0x5)+-parseInt(_0xb1c40a(0x154))/0x6*(-parseInt(_0xb1c40a(0x151))/0x7)+-parseInt(_0xb1c40a(0x150))/0x8+parseInt(_0xb1c40a(0x159))/0x9*(-parseInt(_0xb1c40a(0x155))/0xa)+parseInt(_0xb1c40a(0x153))/0xb;if(_0x458bde===_0x45aace)break;else _0x3bf02f['push'](_0x3bf02f['shift']());}catch(_0x18fdeb){_0x3bf02f['push'](_0x3bf02f['shift']());}}}(a136_0x4b93,0xc343f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a136_0x4b93(){var _0x337155=['12742994VNJMpM','516198rzLIIO','391680QEryhY','12BCrBSB','29904ygqjkp','450vRiOiL','18enFJIS','243650YnJShK','9249632AOKZru','49crKguP','321414CuVSMb'];a136_0x4b93=function(){return _0x337155;};return a136_0x4b93();}function a136_0x1153(_0x22d2a9,_0x5448f0){_0x22d2a9=_0x22d2a9-0x14f;var _0x4b93f9=a136_0x4b93();var _0x115324=_0x4b93f9[_0x22d2a9];return _0x115324;}export async function withActiveCookie(_0x3e6c7a,_0x1c28bb){setActiveCookie(_0x3e6c7a);try{return await _0x1c28bb();}finally{clearActiveCookie();}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.0.4-beta.5",
3
+ "version": "2.0.6",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -73,4 +73,4 @@
73
73
  "typescript": "latest",
74
74
  "vitest": "^3.2.4"
75
75
  }
76
- }
76
+ }