@lovrabet/rabetbase-cli 2.1.2-beta.1 → 2.1.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) 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/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.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/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x52c256,_0x3cc303){const _0x9dc724=a135_0x1c43,_0x1a6f7c=_0x52c256();while(!![]){try{const _0x3202be=parseInt(_0x9dc724(0x140))/0x1*(parseInt(_0x9dc724(0x146))/0x2)+-parseInt(_0x9dc724(0x138))/0x3*(parseInt(_0x9dc724(0x130))/0x4)+parseInt(_0x9dc724(0x143))/0x5+-parseInt(_0x9dc724(0x14d))/0x6+parseInt(_0x9dc724(0x152))/0x7+parseInt(_0x9dc724(0x136))/0x8*(-parseInt(_0x9dc724(0x14c))/0x9)+parseInt(_0x9dc724(0x137))/0xa;if(_0x3202be===_0x3cc303)break;else _0x1a6f7c['push'](_0x1a6f7c['shift']());}catch(_0x5cc0b8){_0x1a6f7c['push'](_0x1a6f7c['shift']());}}}(a135_0x553f,0x7db9b));import{logger}from'../utils/logger.js';function a135_0x1c43(_0x1b49af,_0x1d00aa){_0x1b49af=_0x1b49af-0x12e;const _0x553f32=a135_0x553f();let _0x1c4353=_0x553f32[_0x1b49af];return _0x1c4353;}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x347c99){const _0x21a22f=a135_0x1c43,_0x2da1e3=[];for(const [_0x3dc57a,_0xf59bb3]of Object[_0x21a22f(0x13f)](_0x347c99)){if(_0xf59bb3===!![]){const _0x5d3386=_0x3dc57a[_0x21a22f(0x13a)](/([A-Z])/g,'-$1')[_0x21a22f(0x144)]();_0x2da1e3[_0x21a22f(0x14e)](_0x5d3386);}}return _0x2da1e3;}export function parseDynamicFlags(){const _0x69661d=a135_0x1c43,_0x828935=[];for(let _0xc8b3f2=0x3;_0xc8b3f2<process[_0x69661d(0x149)][_0x69661d(0x148)];_0xc8b3f2++){const _0x42987c=process[_0x69661d(0x149)][_0xc8b3f2];if(_0x42987c&&_0x42987c[_0x69661d(0x145)]('--')){const _0x3e8ca4=_0x42987c[_0x69661d(0x12f)](0x2);_0x3e8ca4&&!_0x3e8ca4['includes']('=')&&_0x828935['push'](_0x3e8ca4);}}return _0x828935;}export function getAllProvidedFlags(_0x3da787){const _0x5b84ec=a135_0x1c43,_0x4caa05=camelCaseFlagsToKebab(_0x3da787),_0x30ef51=parseDynamicFlags(),_0x148f46=new Set([..._0x4caa05,..._0x30ef51]);return Array[_0x5b84ec(0x135)](_0x148f46);}export function normalizeLegacyBffSaveFlags(_0x10ed70){const _0x13d346=a135_0x1c43,_0x2d8851=new Set(_0x10ed70);return _0x2d8851['has'](_0x13d346(0x141))&&_0x2d8851[_0x13d346(0x142)](_0x13d346(0x151)),Array[_0x13d346(0x135)](_0x2d8851);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a135_0x553f(){const _0x2776d3=['45939rrZJMS','dangerously-bff-save','add','1010005WOTSwv','toLowerCase','startsWith','2mOJcoN','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','length','argv','Equivalent\x20command:\x20','\x20skill\x20--help\x0a\x20\x20','234nJjVNR','3893604ZHLFse','push','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','enable-bff-save','7198793Nruxhd','--help','slice','532172GIGzRF','log','不支持的命令:\x20','\x0aAvailable\x20commands:','exit','from','303528IkOzuL','16722900iKIsNx','18CiLjeN','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','replace','skill','error','help','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','entries'];a135_0x553f=function(){return _0x2776d3;};return a135_0x553f();}export async function skillsCommand(_0x1478e6,_0x536136,_0x5f381d){const _0x8dd481=a135_0x1c43;logger[_0x8dd481(0x14f)](process['cwd']());if(_0x5f381d?.[_0x8dd481(0x13d)]||_0x1478e6===_0x8dd481(0x12e)){showHelp();return;}console[_0x8dd481(0x13c)]('Error:\x20Unsupported\x20command:\x20'+(_0x1478e6||'(empty)')),console[_0x8dd481(0x131)](_0x8dd481(0x133)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x147)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x150)),console[_0x8dd481(0x131)](''),console[_0x8dd481(0x131)](_0x8dd481(0x14a)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x8dd481(0x13b),_0x8dd481(0x132)+_0x1478e6),process[_0x8dd481(0x134)](0x1);}function showHelp(){const _0x25e230=a135_0x1c43;console[_0x25e230(0x131)](_0x25e230(0x13e)+CLI_BIN_NAME+_0x25e230(0x14b)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x25e230(0x139));}
1
+ (function(_0x23a9df,_0xf38d6d){const _0x20bfc8=a135_0x6942,_0xbf813f=_0x23a9df();while(!![]){try{const _0x167159=parseInt(_0x20bfc8(0x1a3))/0x1+-parseInt(_0x20bfc8(0x19e))/0x2*(-parseInt(_0x20bfc8(0x1a0))/0x3)+-parseInt(_0x20bfc8(0x1ab))/0x4*(parseInt(_0x20bfc8(0x1b3))/0x5)+parseInt(_0x20bfc8(0x1a4))/0x6*(-parseInt(_0x20bfc8(0x1af))/0x7)+parseInt(_0x20bfc8(0x1b9))/0x8+-parseInt(_0x20bfc8(0x1ba))/0x9+parseInt(_0x20bfc8(0x1b1))/0xa;if(_0x167159===_0xf38d6d)break;else _0xbf813f['push'](_0xbf813f['shift']());}catch(_0x2e1fe7){_0xbf813f['push'](_0xbf813f['shift']());}}}(a135_0x4636,0x6f688));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x430a40){const _0x37c594=a135_0x6942,_0x9720af=[];for(const [_0x39f95c,_0x53c69b]of Object[_0x37c594(0x1ae)](_0x430a40)){if(_0x53c69b===!![]){const _0x2f51c4=_0x39f95c[_0x37c594(0x1ad)](/([A-Z])/g,_0x37c594(0x1a1))[_0x37c594(0x19d)]();_0x9720af[_0x37c594(0x1bc)](_0x2f51c4);}}return _0x9720af;}function a135_0x6942(_0x1d6697,_0x4c66dc){_0x1d6697=_0x1d6697-0x19c;const _0x463618=a135_0x4636();let _0x694227=_0x463618[_0x1d6697];return _0x694227;}export function parseDynamicFlags(){const _0x4198d4=a135_0x6942,_0x53a185=[];for(let _0x1c0127=0x3;_0x1c0127<process[_0x4198d4(0x1bb)]['length'];_0x1c0127++){const _0x25f01c=process[_0x4198d4(0x1bb)][_0x1c0127];if(_0x25f01c&&_0x25f01c[_0x4198d4(0x1b8)]('--')){const _0x59364c=_0x25f01c[_0x4198d4(0x1a7)](0x2);_0x59364c&&!_0x59364c[_0x4198d4(0x1a9)]('=')&&_0x53a185[_0x4198d4(0x1bc)](_0x59364c);}}return _0x53a185;}export function getAllProvidedFlags(_0x211872){const _0x518d6b=a135_0x6942,_0x5b832c=camelCaseFlagsToKebab(_0x211872),_0x311c1d=parseDynamicFlags(),_0x4d6523=new Set([..._0x5b832c,..._0x311c1d]);return Array[_0x518d6b(0x1a8)](_0x4d6523);}export function normalizeLegacyBffSaveFlags(_0x19c580){const _0x3680b2=a135_0x6942,_0x373aa5=new Set(_0x19c580);return _0x373aa5['has']('dangerously-bff-save')&&_0x373aa5['add']('enable-bff-save'),Array[_0x3680b2(0x1a8)](_0x373aa5);}function a135_0x4636(){const _0x37894=['\x0aAvailable\x20commands:','20utZAnZ','log','replace','entries','28gdpKtD','error','10702980hvPWIf','cwd','378555QMjgmA','help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','exit','startsWith','996072vbFoDS','5567391CGnJGp','argv','push','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','toLowerCase','2kslYfv','(empty)','1180923WgJuyT','-$1','\x20skill\x20--help\x0a\x20\x20','18102HsTEqt','229602ontHHG','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','不支持的命令:\x20','slice','from','includes'];a135_0x4636=function(){return _0x37894;};return a135_0x4636();}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x5de790,_0x1358ad,_0x12bbf1){const _0x5e5818=a135_0x6942;logger['setLogPath'](process[_0x5e5818(0x1b2)]());if(_0x12bbf1?.[_0x5e5818(0x1b4)]||_0x5de790==='--help'){showHelp();return;}console[_0x5e5818(0x1b0)]('Error:\x20Unsupported\x20command:\x20'+(_0x5de790||_0x5e5818(0x19f))),console[_0x5e5818(0x1ac)](_0x5e5818(0x1aa)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+_0x5e5818(0x1b5)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x5e5818(0x1ac)](''),console['log'](_0x5e5818(0x19c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5e5818(0x1b0)]('skill',_0x5e5818(0x1a6)+_0x5de790),process[_0x5e5818(0x1b7)](0x1);}function showHelp(){const _0x30506b=a135_0x6942;console[_0x30506b(0x1ac)](_0x30506b(0x1bd)+CLI_BIN_NAME+_0x30506b(0x1a2)+CLI_BIN_NAME+_0x30506b(0x1b6)+SKILLS_INSTALL_COMMAND_LINE+_0x30506b(0x1a5));}
@@ -1 +1 @@
1
- function a136_0x279b(){const _0x575e79=['--skill','skill','175wYVuZh','exit\x20','trim','55733HPesbP','1692900jJVHQi','skills','remove','4658260fjdaNr','inherit','297itAkKE','lovrabet/lovrabet-skill','toString','--global','Lovrabet','stdout','3675532FqkEay','yes','246912hSLAaf','394254tBtVbR','33PNVCNV','stderr','add','unknown','4QCpVjc','235064AEkHGC','log','stdio','npx','pipe','join','status'];a136_0x279b=function(){return _0x575e79;};return a136_0x279b();}const a136_0x532639=a136_0x2c62;(function(_0x2eb426,_0x3f64c5){const _0xf813b4=a136_0x2c62,_0x40a139=_0x2eb426();while(!![]){try{const _0x5938ca=parseInt(_0xf813b4(0x6d))/0x1*(-parseInt(_0xf813b4(0x81))/0x2)+-parseInt(_0xf813b4(0x7c))/0x3+-parseInt(_0xf813b4(0x79))/0x4+parseInt(_0xf813b4(0x6e))/0x5+-parseInt(_0xf813b4(0x7b))/0x6*(parseInt(_0xf813b4(0x6a))/0x7)+parseInt(_0xf813b4(0x82))/0x8*(parseInt(_0xf813b4(0x73))/0x9)+parseInt(_0xf813b4(0x71))/0xa*(parseInt(_0xf813b4(0x7d))/0xb);if(_0x5938ca===_0x3f64c5)break;else _0x40a139['push'](_0x40a139['shift']());}catch(_0x21dc44){_0x40a139['push'](_0x40a139['shift']());}}}(a136_0x279b,0x7dc3a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x2c62(_0x57df1d,_0x48069a){_0x57df1d=_0x57df1d-0x68;const _0x279b22=a136_0x279b();let _0x2c62fe=_0x279b22[_0x57df1d];return _0x2c62fe;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x532639(0x6f);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x532639(0x7f);export const NPX_SKILLS_FLAG_SKILL=a136_0x532639(0x68);export const RABETBASE_SKILL_SOURCE=a136_0x532639(0x74);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x532639(0x77);export function buildNpxSkillsAddArgv(_0x22ee52=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x22ee52];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x532639(0x85),...buildNpxSkillsAddArgv()][a136_0x532639(0x87)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4d8b4a,_0x517285){const _0x3f2e1f=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44e0b8=_0x517285?.[_0x3f2e1f(0x84)]??_0x3f2e1f(0x72),_0x572903=resolveNpmBin(_0x3f2e1f(0x85)),_0x264ed0=buildNpxSkillsAddArgv(_0x517285?.[_0x3f2e1f(0x69)]??DEFAULT_RABETBASE_SKILL_NAME),_0xfcf862=[_0x572903,..._0x264ed0][_0x3f2e1f(0x87)]('\x20');console[_0x3f2e1f(0x83)]('*\x20'+_0xfcf862);const _0x1ffae4=spawnSync(_0x572903,_0x264ed0,{'cwd':_0x4d8b4a,'stdio':_0x44e0b8,'env':process.env,'shell':![]}),_0x5e692f=_0x1ffae4[_0x3f2e1f(0x88)];if(_0x5e692f===0x0)return{'ok':!![],'status':0x0};let _0x3fe8e0='exit\x20'+(_0x5e692f??_0x3f2e1f(0x80));if(_0x44e0b8===_0x3f2e1f(0x86)){const _0x244ad9=_0x1ffae4[_0x3f2e1f(0x7e)]?_0x1ffae4[_0x3f2e1f(0x7e)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'',_0x33a8ab=_0x1ffae4[_0x3f2e1f(0x78)]?_0x1ffae4[_0x3f2e1f(0x78)][_0x3f2e1f(0x75)]()[_0x3f2e1f(0x6c)]():'';if(_0x244ad9)_0x3fe8e0=_0x244ad9;else{if(_0x33a8ab)_0x3fe8e0=_0x33a8ab;}}return{'ok':![],'status':_0x5e692f??null,'error':_0x3fe8e0};}export function runNpxSkillsRemove(_0x54ad32,_0x5a5f92){const _0x2384f1=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35ad70=_0x5a5f92?.[_0x2384f1(0x84)]??_0x2384f1(0x72),_0x5defa2=resolveNpmBin(_0x2384f1(0x85)),_0x16d188=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2384f1(0x70),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x5a5f92?.[_0x2384f1(0x69)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x5a5f92?.[_0x2384f1(0x7a)]?['-y']:[]],_0x19742b=[_0x5defa2,..._0x16d188][_0x2384f1(0x87)]('\x20');console[_0x2384f1(0x83)]('*\x20'+_0x19742b);const _0x565ad9=spawnSync(_0x5defa2,_0x16d188,{'cwd':_0x54ad32,'stdio':_0x35ad70,'env':process.env,'shell':![]}),_0xce6564=_0x565ad9['status'];if(_0xce6564===0x0)return{'ok':!![],'status':0x0};let _0xe1a7bf=_0x2384f1(0x6b)+(_0xce6564??_0x2384f1(0x80));if(_0x35ad70==='pipe'){const _0x3f9811=_0x565ad9[_0x2384f1(0x7e)]?_0x565ad9[_0x2384f1(0x7e)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'',_0x867dca=_0x565ad9[_0x2384f1(0x78)]?_0x565ad9[_0x2384f1(0x78)][_0x2384f1(0x75)]()[_0x2384f1(0x6c)]():'';if(_0x3f9811)_0xe1a7bf=_0x3f9811;else{if(_0x867dca)_0xe1a7bf=_0x867dca;}}return{'ok':![],'status':_0xce6564??null,'error':_0xe1a7bf};}export function runNpxSkillsAddGlobal(_0x33e59e,_0x3dadb4,_0x156971){const _0x3e75ce=a136_0x532639;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4cb0be=_0x156971?.[_0x3e75ce(0x84)]??_0x3e75ce(0x72),_0x25c042=resolveNpmBin(_0x3e75ce(0x85)),_0x43a87d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dadb4,_0x3e75ce(0x76),..._0x156971?.[_0x3e75ce(0x7a)]?['-y']:[]],_0x672da8=[_0x25c042,..._0x43a87d][_0x3e75ce(0x87)]('\x20');console[_0x3e75ce(0x83)]('*\x20'+_0x672da8);const _0x59d786=spawnSync(_0x25c042,_0x43a87d,{'cwd':_0x33e59e,'stdio':_0x4cb0be,'env':process.env,'shell':![]}),_0x3f89a8=_0x59d786[_0x3e75ce(0x88)];if(_0x3f89a8===0x0)return{'ok':!![],'status':0x0};let _0x3061a2=_0x3e75ce(0x6b)+(_0x3f89a8??_0x3e75ce(0x80));if(_0x4cb0be===_0x3e75ce(0x86)){const _0x1d0643=_0x59d786[_0x3e75ce(0x7e)]?_0x59d786['stderr'][_0x3e75ce(0x75)]()[_0x3e75ce(0x6c)]():'',_0x4a3efb=_0x59d786['stdout']?_0x59d786[_0x3e75ce(0x78)]['toString']()['trim']():'';if(_0x1d0643)_0x3061a2=_0x1d0643;else{if(_0x4a3efb)_0x3061a2=_0x4a3efb;}}return{'ok':![],'status':_0x3f89a8??null,'error':_0x3061a2};}
1
+ const a136_0x558cb8=a136_0x5986;(function(_0x3c2fdc,_0x1927d7){const _0x3c037b=a136_0x5986,_0x2aab86=_0x3c2fdc();while(!![]){try{const _0x379fc4=parseInt(_0x3c037b(0x128))/0x1+parseInt(_0x3c037b(0x11d))/0x2*(-parseInt(_0x3c037b(0x134))/0x3)+-parseInt(_0x3c037b(0x136))/0x4*(parseInt(_0x3c037b(0x11a))/0x5)+parseInt(_0x3c037b(0x12c))/0x6+-parseInt(_0x3c037b(0x124))/0x7+parseInt(_0x3c037b(0x126))/0x8+-parseInt(_0x3c037b(0x133))/0x9*(-parseInt(_0x3c037b(0x11b))/0xa);if(_0x379fc4===_0x1927d7)break;else _0x2aab86['push'](_0x2aab86['shift']());}catch(_0x542cc8){_0x2aab86['push'](_0x2aab86['shift']());}}}(a136_0x566d,0x5e07e));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x5986(_0x11298d,_0x32dbdd){_0x11298d=_0x11298d-0x119;const _0x566dac=a136_0x566d();let _0x5986f6=_0x566dac[_0x11298d];return _0x5986f6;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x558cb8(0x125);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x558cb8(0x11c);export const NPX_SKILLS_FLAG_SKILL='--skill';function a136_0x566d(){const _0x1fead6=['--global','toString','3203091FpGRqZ','51099qpwpFF','trim','2644108qKVUXQ','join','yes','5QwSiZP','30CTpEXI','add','82JBZuOf','unknown','npx','stderr','pipe','stdio','status','4423762ttpJMK','skills','5954864SnGKAM','exit\x20','561147FTjfmZ','skill','lovrabet/lovrabet-skill','Lovrabet','19764GyoWqu','inherit','log','remove','stdout'];a136_0x566d=function(){return _0x1fead6;};return a136_0x566d();}export const RABETBASE_SKILL_SOURCE=a136_0x558cb8(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x558cb8(0x12b);export function buildNpxSkillsAddArgv(_0x3fb649=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3fb649];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x558cb8(0x11f),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x15b1f6,_0x2f908f){const _0x6403d=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x318226=_0x2f908f?.[_0x6403d(0x122)]??_0x6403d(0x12d),_0x24a8d8=resolveNpmBin(_0x6403d(0x11f)),_0x790500=buildNpxSkillsAddArgv(_0x2f908f?.[_0x6403d(0x129)]??DEFAULT_RABETBASE_SKILL_NAME),_0x34f8fb=[_0x24a8d8,..._0x790500][_0x6403d(0x137)]('\x20');console[_0x6403d(0x12e)]('*\x20'+_0x34f8fb);const _0x27bb78=spawnSync(_0x24a8d8,_0x790500,{'cwd':_0x15b1f6,'stdio':_0x318226,'env':process.env,'shell':![]}),_0x142fb3=_0x27bb78[_0x6403d(0x123)];if(_0x142fb3===0x0)return{'ok':!![],'status':0x0};let _0x115f68='exit\x20'+(_0x142fb3??_0x6403d(0x11e));if(_0x318226===_0x6403d(0x121)){const _0x44175c=_0x27bb78[_0x6403d(0x120)]?_0x27bb78[_0x6403d(0x120)][_0x6403d(0x132)]()['trim']():'',_0x4fbf08=_0x27bb78[_0x6403d(0x130)]?_0x27bb78[_0x6403d(0x130)]['toString']()['trim']():'';if(_0x44175c)_0x115f68=_0x44175c;else{if(_0x4fbf08)_0x115f68=_0x4fbf08;}}return{'ok':![],'status':_0x142fb3??null,'error':_0x115f68};}export function runNpxSkillsRemove(_0x3af052,_0x94e3bb){const _0x26a57c=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28b5cb=_0x94e3bb?.['stdio']??'inherit',_0x23b006=resolveNpmBin(_0x26a57c(0x11f)),_0x1f35f0=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x26a57c(0x12f),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x94e3bb?.[_0x26a57c(0x129)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x94e3bb?.[_0x26a57c(0x119)]?['-y']:[]],_0x556632=[_0x23b006,..._0x1f35f0][_0x26a57c(0x137)]('\x20');console[_0x26a57c(0x12e)]('*\x20'+_0x556632);const _0x1c3946=spawnSync(_0x23b006,_0x1f35f0,{'cwd':_0x3af052,'stdio':_0x28b5cb,'env':process.env,'shell':![]}),_0x3b22eb=_0x1c3946[_0x26a57c(0x123)];if(_0x3b22eb===0x0)return{'ok':!![],'status':0x0};let _0x1a976b=_0x26a57c(0x127)+(_0x3b22eb??_0x26a57c(0x11e));if(_0x28b5cb===_0x26a57c(0x121)){const _0xf571ef=_0x1c3946['stderr']?_0x1c3946[_0x26a57c(0x120)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'',_0x3a5b22=_0x1c3946[_0x26a57c(0x130)]?_0x1c3946[_0x26a57c(0x130)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'';if(_0xf571ef)_0x1a976b=_0xf571ef;else{if(_0x3a5b22)_0x1a976b=_0x3a5b22;}}return{'ok':![],'status':_0x3b22eb??null,'error':_0x1a976b};}export function runNpxSkillsAddGlobal(_0x3cd7ec,_0x4b9b5d,_0x19c5ef){const _0x4c2706=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x523095=_0x19c5ef?.['stdio']??_0x4c2706(0x12d),_0x435b05=resolveNpmBin(_0x4c2706(0x11f)),_0x36a068=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4b9b5d,_0x4c2706(0x131),..._0x19c5ef?.[_0x4c2706(0x119)]?['-y']:[]],_0xc0a4b3=[_0x435b05,..._0x36a068][_0x4c2706(0x137)]('\x20');console[_0x4c2706(0x12e)]('*\x20'+_0xc0a4b3);const _0x3ce431=spawnSync(_0x435b05,_0x36a068,{'cwd':_0x3cd7ec,'stdio':_0x523095,'env':process.env,'shell':![]}),_0x52914c=_0x3ce431[_0x4c2706(0x123)];if(_0x52914c===0x0)return{'ok':!![],'status':0x0};let _0x476664=_0x4c2706(0x127)+(_0x52914c??_0x4c2706(0x11e));if(_0x523095===_0x4c2706(0x121)){const _0x333105=_0x3ce431[_0x4c2706(0x120)]?_0x3ce431['stderr'][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'',_0xea06ed=_0x3ce431[_0x4c2706(0x130)]?_0x3ce431[_0x4c2706(0x130)][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'';if(_0x333105)_0x476664=_0x333105;else{if(_0xea06ed)_0x476664=_0xea06ed;}}return{'ok':![],'status':_0x52914c??null,'error':_0x476664};}
@@ -1 +1 @@
1
- (function(_0x1a97b9,_0x13793f){const _0x20c5be=a137_0x73cd,_0x404138=_0x1a97b9();while(!![]){try{const _0x34c8e1=-parseInt(_0x20c5be(0x12b))/0x1*(parseInt(_0x20c5be(0x11c))/0x2)+-parseInt(_0x20c5be(0x12a))/0x3*(parseInt(_0x20c5be(0x127))/0x4)+-parseInt(_0x20c5be(0x122))/0x5*(parseInt(_0x20c5be(0x120))/0x6)+parseInt(_0x20c5be(0x118))/0x7+parseInt(_0x20c5be(0x126))/0x8*(parseInt(_0x20c5be(0x129))/0x9)+-parseInt(_0x20c5be(0x11a))/0xa*(parseInt(_0x20c5be(0x121))/0xb)+parseInt(_0x20c5be(0x117))/0xc*(parseInt(_0x20c5be(0x119))/0xd);if(_0x34c8e1===_0x13793f)break;else _0x404138['push'](_0x404138['shift']());}catch(_0x1f5deb){_0x404138['push'](_0x404138['shift']());}}}(a137_0x4e9d,0x7e20f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a137_0x4e9d(){const _0x42b469=['170MefquS','[REDACTED]','71224FTOFPa','entries','durationMs','stringify','6mqiZzf','617870XBIfJe','1302485snLXLY','flags','some','error','2688fDKnzL','4MtNFKi','message','11241OJOgFf','2568561bLOlnL','6osTqAT','service','96IuEBbL','7133651tXXlOD','2215057ruQUnu'];a137_0x4e9d=function(){return _0x42b469;};return a137_0x4e9d();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3b11b2){const _0x4f5cd3=a137_0x73cd;return SENSITIVE_PATTERNS[_0x4f5cd3(0x124)](_0x579ae6=>_0x579ae6['test'](_0x3b11b2));}function sanitizeFlags(_0xd7663b){const _0x4418ab=a137_0x73cd,_0x4185a6={};for(const [_0x55dde5,_0x52c03e]of Object[_0x4418ab(0x11d)](_0xd7663b)){isSensitiveKey(_0x55dde5)?_0x4185a6[_0x55dde5]=_0x52c03e!=null&&_0x52c03e!==''?_0x4418ab(0x11b):_0x52c03e:_0x4185a6[_0x55dde5]=_0x52c03e;}return _0x4185a6;}function a137_0x73cd(_0x39aabe,_0x21a3bc){_0x39aabe=_0x39aabe-0x116;const _0x4e9d61=a137_0x4e9d();let _0x73cddb=_0x4e9d61[_0x39aabe];return _0x73cddb;}export async function reportCommandTrace(_0x4e4f22){const _0xc82e12=a137_0x73cd;try{const _0x5b6a6f=sanitizeFlags(_0x4e4f22[_0xc82e12(0x123)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e4f22[_0xc82e12(0x116)],'command.name':_0x4e4f22['command'],'command.flags':JSON[_0xc82e12(0x11f)](_0x5b6a6f),..._0x4e4f22[_0xc82e12(0x11e)]!=null?{'command.duration_ms':_0x4e4f22[_0xc82e12(0x11e)]}:{},..._0x4e4f22['error']?{'command.error':_0x4e4f22[_0xc82e12(0x125)]instanceof Error?_0x4e4f22[_0xc82e12(0x125)][_0xc82e12(0x128)]:String(_0x4e4f22[_0xc82e12(0x125)])}:{}}});}catch{}}
1
+ (function(_0x21e909,_0x3c1dbe){const _0x26dfae=a137_0xf666,_0x2d6754=_0x21e909();while(!![]){try{const _0xcd3254=-parseInt(_0x26dfae(0x8d))/0x1*(-parseInt(_0x26dfae(0x8f))/0x2)+parseInt(_0x26dfae(0x92))/0x3*(parseInt(_0x26dfae(0x7f))/0x4)+-parseInt(_0x26dfae(0x87))/0x5+-parseInt(_0x26dfae(0x83))/0x6*(parseInt(_0x26dfae(0x82))/0x7)+-parseInt(_0x26dfae(0x84))/0x8+parseInt(_0x26dfae(0x90))/0x9*(parseInt(_0x26dfae(0x81))/0xa)+parseInt(_0x26dfae(0x88))/0xb;if(_0xcd3254===_0x3c1dbe)break;else _0x2d6754['push'](_0x2d6754['shift']());}catch(_0x203e48){_0x2d6754['push'](_0x2d6754['shift']());}}}(a137_0x33c3,0xeb23f));function a137_0x33c3(){const _0x36226a=['service','command','stringify','1483bEIsmL','some','1814pqlTqP','246159IIqRNp','error','12FqDGny','1220812cbuxho','message','500ZqfmHz','7vaqXEr','4923738DSiaZl','7184064lRziiO','entries','durationMs','8255935wMvaSI','4394610dNrljf','[REDACTED]'];a137_0x33c3=function(){return _0x36226a;};return a137_0x33c3();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a137_0xf666(_0x363548,_0x4af6ae){_0x363548=_0x363548-0x7f;const _0x33c39a=a137_0x33c3();let _0xf666cc=_0x33c39a[_0x363548];return _0xf666cc;}function isSensitiveKey(_0x5ebe4d){const _0x24181d=a137_0xf666;return SENSITIVE_PATTERNS[_0x24181d(0x8e)](_0x5d3b8f=>_0x5d3b8f['test'](_0x5ebe4d));}function sanitizeFlags(_0x1f33f5){const _0x523518=a137_0xf666,_0x175044={};for(const [_0x441121,_0x4cd02c]of Object[_0x523518(0x85)](_0x1f33f5)){isSensitiveKey(_0x441121)?_0x175044[_0x441121]=_0x4cd02c!=null&&_0x4cd02c!==''?_0x523518(0x89):_0x4cd02c:_0x175044[_0x441121]=_0x4cd02c;}return _0x175044;}export async function reportCommandTrace(_0x528b64){const _0x182982=a137_0xf666;try{const _0xd36b0b=sanitizeFlags(_0x528b64['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x528b64[_0x182982(0x8a)],'command.name':_0x528b64[_0x182982(0x8b)],'command.flags':JSON[_0x182982(0x8c)](_0xd36b0b),..._0x528b64[_0x182982(0x86)]!=null?{'command.duration_ms':_0x528b64[_0x182982(0x86)]}:{},..._0x528b64[_0x182982(0x91)]?{'command.error':_0x528b64[_0x182982(0x91)]instanceof Error?_0x528b64['error'][_0x182982(0x80)]:String(_0x528b64['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a138_0xf0ee(_0x39d9f2,_0x4356b8){_0x39d9f2=_0x39d9f2-0xd8;var _0x2d23a7=a138_0x2d23();var _0xf0ee3f=_0x2d23a7[_0x39d9f2];return _0xf0ee3f;}(function(_0x5a647a,_0x14f31c){var _0x1eaad3=a138_0xf0ee,_0x2990d5=_0x5a647a();while(!![]){try{var _0x45ceef=-parseInt(_0x1eaad3(0xda))/0x1+-parseInt(_0x1eaad3(0xe0))/0x2*(parseInt(_0x1eaad3(0xe4))/0x3)+parseInt(_0x1eaad3(0xdc))/0x4*(-parseInt(_0x1eaad3(0xe2))/0x5)+-parseInt(_0x1eaad3(0xe1))/0x6+-parseInt(_0x1eaad3(0xdb))/0x7*(parseInt(_0x1eaad3(0xde))/0x8)+parseInt(_0x1eaad3(0xe3))/0x9+-parseInt(_0x1eaad3(0xd9))/0xa*(-parseInt(_0x1eaad3(0xdf))/0xb);if(_0x45ceef===_0x14f31c)break;else _0x2990d5['push'](_0x2990d5['shift']());}catch(_0x14280e){_0x2990d5['push'](_0x2990d5['shift']());}}}(a138_0x2d23,0x73f06));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x24f552,_0x4483d5){var _0x134dc5=a138_0xf0ee;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x24f552,..._0x4483d5?.[_0x134dc5(0xe5)]&&{'rabetbase.help.service':_0x4483d5[_0x134dc5(0xe5)]}}});}catch(_0x594e48){console[_0x134dc5(0xd8)](_0x134dc5(0xdd),_0x594e48);}}function a138_0x2d23(){var _0x20d8e1=['service','error','10wIqePu','271787oKWRkq','1518762ynEzIm','148WuQGYS','Failed\x20to\x20report\x20CLI\x20help\x20trace:','32zKpimo','26573459coIrzg','753266nUMuuv','5630706MsUHOa','49785OUndaR','7940349XTwANp','3FOIizQ'];a138_0x2d23=function(){return _0x20d8e1;};return a138_0x2d23();}
1
+ (function(_0x1657ee,_0x21bd72){var _0x42deee=a138_0x24e6,_0xc2d99f=_0x1657ee();while(!![]){try{var _0x1ce492=-parseInt(_0x42deee(0xe6))/0x1*(parseInt(_0x42deee(0xe2))/0x2)+-parseInt(_0x42deee(0xec))/0x3+parseInt(_0x42deee(0xeb))/0x4+-parseInt(_0x42deee(0xe8))/0x5*(parseInt(_0x42deee(0xe7))/0x6)+-parseInt(_0x42deee(0xed))/0x7+parseInt(_0x42deee(0xe5))/0x8*(-parseInt(_0x42deee(0xea))/0x9)+-parseInt(_0x42deee(0xef))/0xa*(-parseInt(_0x42deee(0xe4))/0xb);if(_0x1ce492===_0x21bd72)break;else _0xc2d99f['push'](_0xc2d99f['shift']());}catch(_0x5d472a){_0xc2d99f['push'](_0xc2d99f['shift']());}}}(a138_0xd5f5,0xd74de));function a138_0xd5f5(){var _0xdeecd8=['5317794IhcIFp','1554420oIEZWD','4155489DlVSCd','441644lpOYGL','service','14370dNkaWf','cli.help','2dCHMeK','error','37939VYhbnl','16PYJiRf','869691EMdYOz','4182gMtzwJ','6910bmcQnq','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a138_0xd5f5=function(){return _0xdeecd8;};return a138_0xd5f5();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x24e6(_0x30149b,_0x365466){_0x30149b=_0x30149b-0xe1;var _0xd5f573=a138_0xd5f5();var _0x24e65c=_0xd5f573[_0x30149b];return _0x24e65c;}export async function reportCliHelpTrace(_0x36c26a,_0x2a58f2){var _0x163dd2=a138_0x24e6;try{await sendCliTraceLog({'spanName':_0x163dd2(0xe1),'logData':{'rabetbase.help.kind':_0x36c26a,..._0x2a58f2?.[_0x163dd2(0xee)]&&{'rabetbase.help.service':_0x2a58f2[_0x163dd2(0xee)]}}});}catch(_0x4e5f48){console[_0x163dd2(0xe3)](_0x163dd2(0xe9),_0x4e5f48);}}
@@ -1 +1 @@
1
- function a139_0x31ba(){const _0x12cf86=['rabetbase-cli','7cSRHCX','394950DAqHls','unknown','2VbVzgH','20zPFqjF','user','264198wLeUPp','7253960rKnZsb','nickname','216820WVXtLo','808931GjzljF','4687227AymRYY','70xvmzvQ','6756002zeuMLL','username'];a139_0x31ba=function(){return _0x12cf86;};return a139_0x31ba();}(function(_0x15fbb2,_0xf13f9c){const _0x1407d2=a139_0x2430,_0x5b416a=_0x15fbb2();while(!![]){try{const _0x4da35e=parseInt(_0x1407d2(0x19e))/0x1*(parseInt(_0x1407d2(0x197))/0x2)+parseInt(_0x1407d2(0x195))/0x3*(-parseInt(_0x1407d2(0x198))/0x4)+-parseInt(_0x1407d2(0x1a0))/0x5*(-parseInt(_0x1407d2(0x19a))/0x6)+parseInt(_0x1407d2(0x194))/0x7*(parseInt(_0x1407d2(0x19b))/0x8)+-parseInt(_0x1407d2(0x19f))/0x9+-parseInt(_0x1407d2(0x19d))/0xa+-parseInt(_0x1407d2(0x1a1))/0xb;if(_0x4da35e===_0xf13f9c)break;else _0x5b416a['push'](_0x5b416a['shift']());}catch(_0x4c53e2){_0x5b416a['push'](_0x5b416a['shift']());}}}(a139_0x31ba,0x7e465));import a139_0x350645 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 a139_0x2430(_0x278979,_0x5428ec){_0x278979=_0x278979-0x194;const _0x31ba35=a139_0x31ba();let _0x243028=_0x31ba35[_0x278979];return _0x243028;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x12a0f0=a139_0x2430,_0x5a92f7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xd08396=_0x5a92f7?.[_0x12a0f0(0x199)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x12a0f0(0x196)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production'),'username':_0xd08396?.[_0x12a0f0(0x1a2)]??a139_0x350645['userInfo']()[_0x12a0f0(0x1a2)]??_0x12a0f0(0x1a3),..._0xd08396&&{'nickname':_0xd08396[_0x12a0f0(0x19c)]}}),cliOtelTraceInitialized=!![];}return _0x5a92f7;}
1
+ (function(_0x553c5f,_0x4a4d7b){const _0x2f6b42=a139_0x1238,_0x51c0ef=_0x553c5f();while(!![]){try{const _0x278e27=parseInt(_0x2f6b42(0x1ad))/0x1+parseInt(_0x2f6b42(0x1ab))/0x2+-parseInt(_0x2f6b42(0x1b7))/0x3+-parseInt(_0x2f6b42(0x1ac))/0x4+-parseInt(_0x2f6b42(0x1ae))/0x5+-parseInt(_0x2f6b42(0x1b4))/0x6+parseInt(_0x2f6b42(0x1b0))/0x7;if(_0x278e27===_0x4a4d7b)break;else _0x51c0ef['push'](_0x51c0ef['shift']());}catch(_0x217b25){_0x51c0ef['push'](_0x51c0ef['shift']());}}}(a139_0xb98d,0x7341d));function a139_0x1238(_0x5117de,_0x693d53){_0x5117de=_0x5117de-0x1ab;const _0xb98d83=a139_0xb98d();let _0x123855=_0xb98d83[_0x5117de];return _0x123855;}function a139_0xb98d(){const _0x11c750=['daily','8567965cxPfyK','rabetbase-cli','userInfo','username','2239614edVnZL','production','unknown','405549wfDOJO','248484YAqPsD','3215016cZSxka','922904qwuLQZ','2434210pzBAPb'];a139_0xb98d=function(){return _0x11c750;};return a139_0xb98d();}import a139_0x19a5d7 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';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x520f27=a139_0x1238,_0x69e599=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xba39d1=_0x69e599?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x520f27(0x1b6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x520f27(0x1af):_0x520f27(0x1b5)),'username':_0xba39d1?.['username']??a139_0x19a5d7[_0x520f27(0x1b2)]()[_0x520f27(0x1b3)]??_0x520f27(0x1b1),..._0xba39d1&&{'nickname':_0xba39d1['nickname']}}),cliOtelTraceInitialized=!![];}return _0x69e599;}
@@ -1 +1 @@
1
- (function(_0x54d39c,_0x426d28){const _0x366056=a140_0x50c2,_0x5e8d2a=_0x54d39c();while(!![]){try{const _0x4dd11e=-parseInt(_0x366056(0x15a))/0x1*(parseInt(_0x366056(0x164))/0x2)+-parseInt(_0x366056(0x163))/0x3*(parseInt(_0x366056(0x15d))/0x4)+-parseInt(_0x366056(0x15c))/0x5+-parseInt(_0x366056(0x158))/0x6+-parseInt(_0x366056(0x160))/0x7+parseInt(_0x366056(0x157))/0x8*(-parseInt(_0x366056(0x161))/0x9)+parseInt(_0x366056(0x159))/0xa;if(_0x4dd11e===_0x426d28)break;else _0x5e8d2a['push'](_0x5e8d2a['shift']());}catch(_0xb5a170){_0x5e8d2a['push'](_0x5e8d2a['shift']());}}}(a140_0x59ba,0x78b95));import{shutdownTraces}from'@lovrabet/otel-logger';function a140_0x59ba(){const _0x1a3c16=['2661835MsnCwz','12NXDIbn','once','SIGINT','5812184GEgoPz','1342287cDqkQO','exit','229761IquXwi','1962TzSqSQ','then','SIGTERM','24OqOCFS','2615370VNHCXQ','30281280EHvSCH','59HUlReS','beforeExit'];a140_0x59ba=function(){return _0x1a3c16;};return a140_0x59ba();}let shutdownPromise=null;function a140_0x50c2(_0x2446cd,_0x37c226){_0x2446cd=_0x2446cd-0x157;const _0x59baac=a140_0x59ba();let _0x50c2cf=_0x59baac[_0x2446cd];return _0x50c2cf;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3000af=a140_0x50c2;process['once'](_0x3000af(0x15b),()=>{void flushOtelNodeIfUsed();});const _0x733ae8=()=>{const _0x172819=_0x3000af;void flushOtelNodeIfUsed()[_0x172819(0x165)](()=>process['exit'](0x0));};process[_0x3000af(0x15e)](_0x3000af(0x15f),_0x733ae8),process[_0x3000af(0x15e)](_0x3000af(0x166),_0x733ae8);}export async function exitWithOtelShutdown(_0x4d7fc8){const _0x65abfb=a140_0x50c2;await flushOtelNodeIfUsed(),process[_0x65abfb(0x162)](_0x4d7fc8);}
1
+ (function(_0x430090,_0xafe690){const _0x448983=a140_0x9bea,_0x2a1877=_0x430090();while(!![]){try{const _0x290d07=parseInt(_0x448983(0x1f0))/0x1+parseInt(_0x448983(0x1f1))/0x2*(parseInt(_0x448983(0x1f3))/0x3)+parseInt(_0x448983(0x1ed))/0x4+-parseInt(_0x448983(0x1f2))/0x5*(-parseInt(_0x448983(0x1f9))/0x6)+parseInt(_0x448983(0x1f4))/0x7*(parseInt(_0x448983(0x1ec))/0x8)+-parseInt(_0x448983(0x1ee))/0x9+-parseInt(_0x448983(0x1f5))/0xa;if(_0x290d07===_0xafe690)break;else _0x2a1877['push'](_0x2a1877['shift']());}catch(_0x4f60d2){_0x2a1877['push'](_0x2a1877['shift']());}}}(a140_0x450b,0xf17c4));function a140_0x9bea(_0x288864,_0x1bdc2a){_0x288864=_0x288864-0x1eb;const _0x450b76=a140_0x450b();let _0x9bea86=_0x450b76[_0x288864];return _0x9bea86;}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 _0x30ef12=a140_0x9bea;process[_0x30ef12(0x1f6)](_0x30ef12(0x1f7),()=>{void flushOtelNodeIfUsed();});const _0x4defc6=()=>{const _0x36bb7e=_0x30ef12;void flushOtelNodeIfUsed()['then'](()=>process[_0x36bb7e(0x1eb)](0x0));};process[_0x30ef12(0x1f6)](_0x30ef12(0x1ef),_0x4defc6),process['once'](_0x30ef12(0x1f8),_0x4defc6);}function a140_0x450b(){const _0x4e60da=['SIGINT','1435271ogcYOe','3788012fzNDVl','5MfUhba','3KnuGUK','4809378dXjVVw','52070710YCXEmP','once','beforeExit','SIGTERM','9170532aKQlyN','exit','8VCdWUe','6593300iCPulh','8971947avxKMl'];a140_0x450b=function(){return _0x4e60da;};return a140_0x450b();}export async function exitWithOtelShutdown(_0x3b7c43){await flushOtelNodeIfUsed(),process['exit'](_0x3b7c43);}
@@ -1 +1 @@
1
- function a141_0x4041(_0x37c0c3,_0x752b22){_0x37c0c3=_0x37c0c3-0x86;const _0xfa144d=a141_0xfa14();let _0x4041ea=_0xfa144d[_0x37c0c3];return _0x4041ea;}(function(_0x315504,_0x39b800){const _0x28cbbe=a141_0x4041,_0x21bf97=_0x315504();while(!![]){try{const _0x47f4d1=-parseInt(_0x28cbbe(0x88))/0x1+parseInt(_0x28cbbe(0x8b))/0x2+parseInt(_0x28cbbe(0x90))/0x3+-parseInt(_0x28cbbe(0x8c))/0x4+parseInt(_0x28cbbe(0x89))/0x5*(-parseInt(_0x28cbbe(0x92))/0x6)+-parseInt(_0x28cbbe(0x8a))/0x7+parseInt(_0x28cbbe(0x8f))/0x8;if(_0x47f4d1===_0x39b800)break;else _0x21bf97['push'](_0x21bf97['shift']());}catch(_0xfae9fb){_0x21bf97['push'](_0x21bf97['shift']());}}}(a141_0xfa14,0x3ace2));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x49e02d){const _0x20e624=a141_0x4041;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x49e02d['traceName']??DEFAULT_TRACE_NAME,'version':_0x49e02d[_0x20e624(0x87)]??getCliVersion(),'spanName':_0x49e02d[_0x20e624(0x8e)],'eventType':_0x20e624(0x86),'logData':_0x49e02d[_0x20e624(0x8d)],..._0x49e02d[_0x20e624(0x91)]&&{'traceparent':_0x49e02d[_0x20e624(0x91)]}});}function a141_0xfa14(){const _0x533d41=['18PBurhW','manual','version','440166RmLvWO','495545RAMDmE','3263694Ylbaja','576046wOTrYn','1856764iSoIrA','logData','spanName','11157152kHcVHf','678375EkoFGm','traceparent'];a141_0xfa14=function(){return _0x533d41;};return a141_0xfa14();}
1
+ const a141_0x7116bc=a141_0x5b6b;(function(_0x19a542,_0x4272c5){const _0x57511a=a141_0x5b6b,_0x3cda39=_0x19a542();while(!![]){try{const _0x390c70=-parseInt(_0x57511a(0xd2))/0x1*(parseInt(_0x57511a(0xc4))/0x2)+-parseInt(_0x57511a(0xc8))/0x3*(parseInt(_0x57511a(0xca))/0x4)+-parseInt(_0x57511a(0xce))/0x5+-parseInt(_0x57511a(0xc7))/0x6+-parseInt(_0x57511a(0xc3))/0x7*(-parseInt(_0x57511a(0xcb))/0x8)+-parseInt(_0x57511a(0xc9))/0x9*(-parseInt(_0x57511a(0xcf))/0xa)+parseInt(_0x57511a(0xc5))/0xb*(parseInt(_0x57511a(0xd0))/0xc);if(_0x390c70===_0x4272c5)break;else _0x3cda39['push'](_0x3cda39['shift']());}catch(_0x4f1eef){_0x3cda39['push'](_0x3cda39['shift']());}}}(a141_0x4048,0x99d7b));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a141_0x5b6b(_0x5c9c19,_0x2d684f){_0x5c9c19=_0x5c9c19-0xc3;const _0x404855=a141_0x4048();let _0x5b6bcd=_0x404855[_0x5c9c19];return _0x5b6bcd;}const DEFAULT_TRACE_NAME=a141_0x7116bc(0xc6);export async function sendCliTraceLog(_0x476e53){const _0x35d0ab=a141_0x7116bc;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x476e53[_0x35d0ab(0xcc)]??DEFAULT_TRACE_NAME,'version':_0x476e53['version']??getCliVersion(),'spanName':_0x476e53[_0x35d0ab(0xd3)],'eventType':_0x35d0ab(0xd1),'logData':_0x476e53['logData'],..._0x476e53['traceparent']&&{'traceparent':_0x476e53[_0x35d0ab(0xcd)]}});}function a141_0x4048(){const _0x37bcb7=['traceName','traceparent','5864195gMkosh','4901930nnqzdS','12UoYYcf','manual','3LtxLTS','spanName','7Jpmyyv','163712oYhDGv','31448857eOBNqf','rabetbase-cli','3812346sxeyAg','21hSfnyd','9jmDGTL','607364KuxzFA','3181152wzCTJt'];a141_0x4048=function(){return _0x37bcb7;};return a141_0x4048();}
@@ -1 +1 @@
1
- const a143_0x4646b2=a143_0x5cd7;function a143_0x5cd7(_0x1de91d,_0x502f5d){_0x1de91d=_0x1de91d-0x181;const _0x5235a5=a143_0x5235();let _0x5cd700=_0x5235a5[_0x1de91d];return _0x5cd700;}(function(_0x56dc19,_0x268156){const _0x76347=a143_0x5cd7,_0x1d223b=_0x56dc19();while(!![]){try{const _0x3119d2=-parseInt(_0x76347(0x199))/0x1*(parseInt(_0x76347(0x1a5))/0x2)+parseInt(_0x76347(0x18e))/0x3+parseInt(_0x76347(0x18a))/0x4+parseInt(_0x76347(0x193))/0x5+parseInt(_0x76347(0x1ae))/0x6*(parseInt(_0x76347(0x188))/0x7)+-parseInt(_0x76347(0x181))/0x8*(-parseInt(_0x76347(0x1a9))/0x9)+-parseInt(_0x76347(0x186))/0xa;if(_0x3119d2===_0x268156)break;else _0x1d223b['push'](_0x1d223b['shift']());}catch(_0x5b198a){_0x1d223b['push'](_0x1d223b['shift']());}}}(a143_0x5235,0xc761b));function a143_0x5235(){const _0x2b75b4=['1WPkbCe','opencode','.opencode','cline','.codebuddy/skills/lovrabet/SKILL.md','Qoder\x20IDE','codebuddy','qoder','.trae','.qoder/skills/lovrabet/SKILL.md','windsurf','.opencode/skills/lovrabet/SKILL.md','1845338lHGIoh','OpenCode\x20IDE','agent','.codebuddy','724122kCMmXF','codex','Windsurf','.cursorrules','.agent','6EZRdPc','.qoder/rules/rabetbase.md','.trae/skills/lovrabet/SKILL.md','.claude','Antigravity','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','.qoder','.cline','Codex','128LAkCgz','trae','.codex/skills/lovrabet/SKILL.md','.codex','Codex\x20IDE','29493670aGJUwB','Antigravity\x20IDE','4773965xnwwlX','Cline','5595780AYDTnH','file','Qoder','SKILL.md.tpl','2200377BwsxVz','Trae','claude','.windsurf/workflows/rabetbase.md','其他\x20(通用模板)','2934880BaTdjF','cursor','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','Cursor','Windsurf\x20IDE'];a143_0x5235=function(){return _0x2b75b4;};return a143_0x5235();}export const CORE_IDE_CONFIGS={'cursor':{'name':a143_0x4646b2(0x197),'description':'Cursor\x20IDE','folders':[a143_0x4646b2(0x1ac),'.cursor'],'files':[{'type':a143_0x4646b2(0x18b),'path':'.cursor/skills/rabetbase.md','template':a143_0x4646b2(0x18d)}]},'windsurf':{'name':a143_0x4646b2(0x1ab),'description':a143_0x4646b2(0x198),'folders':['.windsurf'],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x191),'template':'SKILL.md.tpl'}]},'claude':{'name':a143_0x4646b2(0x195),'description':a143_0x4646b2(0x195),'folders':[a143_0x4646b2(0x1b1)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x196),'template':'SKILL.md.tpl'}]},'cline':{'name':a143_0x4646b2(0x189),'description':'Cline\x20IDE','folders':[a143_0x4646b2(0x1b6)],'files':[{'type':a143_0x4646b2(0x18b),'path':'.cline/skills/lovrabet/SKILL.md','template':a143_0x4646b2(0x18d)}]},'codex':{'name':a143_0x4646b2(0x1b7),'description':a143_0x4646b2(0x185),'folders':[a143_0x4646b2(0x184)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x183),'template':a143_0x4646b2(0x18d)}]},'opencode':{'name':'OpenCode','description':a143_0x4646b2(0x1a6),'folders':[a143_0x4646b2(0x19b)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1a4),'template':a143_0x4646b2(0x18d)}]},'qoder':{'name':a143_0x4646b2(0x18c),'description':a143_0x4646b2(0x19e),'folders':[a143_0x4646b2(0x1b5)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1af),'template':a143_0x4646b2(0x18d)},{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1a2),'template':a143_0x4646b2(0x18d)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a143_0x4646b2(0x1a8)],'files':[{'type':'file','path':a143_0x4646b2(0x19d),'template':a143_0x4646b2(0x18d)}]},'trae':{'name':a143_0x4646b2(0x18f),'description':a143_0x4646b2(0x1b4),'folders':[a143_0x4646b2(0x1a1)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b0),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a143_0x4646b2(0x192),'description':'通用模板\x20-\x20兜底方案','folders':[a143_0x4646b2(0x1ad)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b3),'template':a143_0x4646b2(0x18d)}]},'antigravity':{'name':a143_0x4646b2(0x1b2),'description':a143_0x4646b2(0x187),'folders':[a143_0x4646b2(0x1ad)],'files':[{'type':a143_0x4646b2(0x18b),'path':a143_0x4646b2(0x1b3),'template':a143_0x4646b2(0x18d)}]}};export const CORE_IDE_LIST=[a143_0x4646b2(0x190),a143_0x4646b2(0x19c),'codebuddy',a143_0x4646b2(0x1aa),a143_0x4646b2(0x194),a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x182),a143_0x4646b2(0x1a3)];export const IDE_LIST=['antigravity',a143_0x4646b2(0x190),'cline',a143_0x4646b2(0x19f),a143_0x4646b2(0x1aa),'cursor',a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x182),'windsurf',a143_0x4646b2(0x1a7)];export const ALL_CORE_IDES=[a143_0x4646b2(0x194),a143_0x4646b2(0x1a3),a143_0x4646b2(0x190),a143_0x4646b2(0x19c),'codex',a143_0x4646b2(0x19a),a143_0x4646b2(0x1a0),a143_0x4646b2(0x19f),a143_0x4646b2(0x182)];
1
+ const a143_0x17203b=a143_0x3bfe;(function(_0x233a16,_0x1792f7){const _0x25e13c=a143_0x3bfe,_0x213956=_0x233a16();while(!![]){try{const _0x2252e8=parseInt(_0x25e13c(0x1ff))/0x1+parseInt(_0x25e13c(0x1e9))/0x2+parseInt(_0x25e13c(0x1e7))/0x3+parseInt(_0x25e13c(0x205))/0x4*(-parseInt(_0x25e13c(0x1e3))/0x5)+parseInt(_0x25e13c(0x1f4))/0x6*(parseInt(_0x25e13c(0x202))/0x7)+parseInt(_0x25e13c(0x1e6))/0x8+-parseInt(_0x25e13c(0x207))/0x9*(parseInt(_0x25e13c(0x1fc))/0xa);if(_0x2252e8===_0x1792f7)break;else _0x213956['push'](_0x213956['shift']());}catch(_0x57269a){_0x213956['push'](_0x213956['shift']());}}}(a143_0x5d36,0xe0242));export const CORE_IDE_CONFIGS={'cursor':{'name':a143_0x17203b(0x1ea),'description':a143_0x17203b(0x1df),'folders':['.cursorrules',a143_0x17203b(0x20b)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f6),'template':a143_0x17203b(0x1d8)}]},'windsurf':{'name':a143_0x17203b(0x1f5),'description':'Windsurf\x20IDE','folders':[a143_0x17203b(0x1e5)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1ee),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a143_0x17203b(0x1eb),'folders':[a143_0x17203b(0x1dd)],'files':[{'type':'file','path':a143_0x17203b(0x1f7),'template':a143_0x17203b(0x1d8)}]},'cline':{'name':a143_0x17203b(0x204),'description':a143_0x17203b(0x1e0),'folders':[a143_0x17203b(0x206)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1ed),'template':a143_0x17203b(0x1d8)}]},'codex':{'name':a143_0x17203b(0x1ec),'description':a143_0x17203b(0x1e1),'folders':[a143_0x17203b(0x1fa)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x209),'template':'SKILL.md.tpl'}]},'opencode':{'name':a143_0x17203b(0x1f2),'description':'OpenCode\x20IDE','folders':[a143_0x17203b(0x1fe)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f0),'template':a143_0x17203b(0x1d8)}]},'qoder':{'name':'Qoder','description':a143_0x17203b(0x1e8),'folders':['.qoder'],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1fb),'template':a143_0x17203b(0x1d8)},{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f3),'template':a143_0x17203b(0x1d8)}]},'codebuddy':{'name':a143_0x17203b(0x1f8),'description':a143_0x17203b(0x1db),'folders':[a143_0x17203b(0x1e4)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x20f),'template':a143_0x17203b(0x1d8)}]},'trae':{'name':a143_0x17203b(0x1d9),'description':'Trae\x20IDE','folders':[a143_0x17203b(0x203)],'files':[{'type':a143_0x17203b(0x208),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a143_0x17203b(0x20a),'description':'通用模板\x20-\x20兜底方案','folders':[a143_0x17203b(0x1f9)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x201),'template':a143_0x17203b(0x1d8)}]},'antigravity':{'name':a143_0x17203b(0x1dc),'description':'Antigravity\x20IDE','folders':[a143_0x17203b(0x1f9)],'files':[{'type':'file','path':a143_0x17203b(0x201),'template':'SKILL.md.tpl'}]}};function a143_0x5d36(){const _0x7a906e=['CodeBuddy\x20IDE','Antigravity','.claude','opencode','Cursor\x20IDE','Cline\x20IDE','Codex\x20IDE','antigravity','181435gePOzd','.codebuddy','.windsurf','4573192ajvzeq','3148770OiZOPT','Qoder\x20IDE','252602ERftbW','Cursor','Claude\x20Code','Codex','.cline/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','codex','.opencode/skills/lovrabet/SKILL.md','claude','OpenCode','.qoder/skills/lovrabet/SKILL.md','7552842HbvIuf','Windsurf','.cursor/skills/rabetbase.md','.claude/skills/lovrabet/SKILL.md','CodeBuddy','.agent','.codex','.qoder/rules/rabetbase.md','2270GyFgia','windsurf','.opencode','1701063YFixTX','qoder','.agent/skills/lovrabet/SKILL.md','7FlrYGL','.trae','Cline','108AwKeKv','.cline','111393JTbMtJ','file','.codex/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.cursor','codebuddy','agent','cursor','.codebuddy/skills/lovrabet/SKILL.md','trae','SKILL.md.tpl','Trae','cline'];a143_0x5d36=function(){return _0x7a906e;};return a143_0x5d36();}export const CORE_IDE_LIST=[a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x20c),a143_0x17203b(0x1ef),a143_0x17203b(0x20e),'opencode',a143_0x17203b(0x200),'trae',a143_0x17203b(0x1fd)];export const IDE_LIST=[a143_0x17203b(0x1e2),a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x20c),a143_0x17203b(0x1ef),a143_0x17203b(0x20e),a143_0x17203b(0x1de),a143_0x17203b(0x200),'trae','windsurf',a143_0x17203b(0x20d)];function a143_0x3bfe(_0x1ee5a4,_0x5721f7){_0x1ee5a4=_0x1ee5a4-0x1d7;const _0x5d36c6=a143_0x5d36();let _0x3bfe7a=_0x5d36c6[_0x1ee5a4];return _0x3bfe7a;}export const ALL_CORE_IDES=[a143_0x17203b(0x20e),a143_0x17203b(0x1fd),a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x1ef),a143_0x17203b(0x1de),a143_0x17203b(0x200),'codebuddy',a143_0x17203b(0x1d7)];
@@ -1 +1 @@
1
- (function(_0x27347c,_0x1c15cd){const _0x907142=a144_0x344d,_0x106c46=_0x27347c();while(!![]){try{const _0x401d91=parseInt(_0x907142(0x129))/0x1*(-parseInt(_0x907142(0x126))/0x2)+-parseInt(_0x907142(0x125))/0x3*(parseInt(_0x907142(0x128))/0x4)+-parseInt(_0x907142(0x12c))/0x5+-parseInt(_0x907142(0x127))/0x6+-parseInt(_0x907142(0x12b))/0x7+parseInt(_0x907142(0x12d))/0x8+parseInt(_0x907142(0x12a))/0x9;if(_0x401d91===_0x1c15cd)break;else _0x106c46['push'](_0x106c46['shift']());}catch(_0x59f07d){_0x106c46['push'](_0x106c46['shift']());}}}(a144_0x2e19,0xb26b3));function a144_0x344d(_0x1e52a2,_0x374c67){_0x1e52a2=_0x1e52a2-0x125;const _0x2e1948=a144_0x2e19();let _0x344d20=_0x2e1948[_0x1e52a2];return _0x344d20;}function a144_0x2e19(){const _0x3dd2ee=['2bPyhei','4380246Fnxhuy','404SQOQKG','1457818dpMcfw','50018526IWRfKg','9355892hIjqkc','3768320QehxSs','5848312zvUuyi','38013ehjEig'];a144_0x2e19=function(){return _0x3dd2ee;};return a144_0x2e19();}import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);
1
+ function a144_0x13a0(_0x3a6af6,_0x493ea5){_0x3a6af6=_0x3a6af6-0xa7;const _0x2c5d99=a144_0x2c5d();let _0x13a0be=_0x2c5d99[_0x3a6af6];return _0x13a0be;}(function(_0x3d7a82,_0x3bcdde){const _0x41f72e=a144_0x13a0,_0x18dd64=_0x3d7a82();while(!![]){try{const _0x1cbb00=parseInt(_0x41f72e(0xaa))/0x1+parseInt(_0x41f72e(0xa7))/0x2+-parseInt(_0x41f72e(0xa9))/0x3+-parseInt(_0x41f72e(0xad))/0x4+parseInt(_0x41f72e(0xa8))/0x5+-parseInt(_0x41f72e(0xae))/0x6+parseInt(_0x41f72e(0xac))/0x7*(parseInt(_0x41f72e(0xab))/0x8);if(_0x1cbb00===_0x3bcdde)break;else _0x18dd64['push'](_0x18dd64['shift']());}catch(_0x21fd2e){_0x18dd64['push'](_0x18dd64['shift']());}}}(a144_0x2c5d,0x2bb0a));import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a144_0x2c5d(){const _0x10d17c=['1067164JXAlgG','1700802UJaeiK','366814suXBMD','1478120PgUKkN','993753FNVNFv','216020mSLmqP','79008Bsvyxe','259XAkQju'];a144_0x2c5d=function(){return _0x10d17c;};return a144_0x2c5d();}export const applyJqFilter=createJqFilter(CliErrors);
@@ -1 +1 @@
1
- (function(_0x50ed7b,_0x8e0440){const _0xd8fdeb=a145_0x1aef,_0x30c759=_0x50ed7b();while(!![]){try{const _0x363c0d=parseInt(_0xd8fdeb(0x1a7))/0x1*(-parseInt(_0xd8fdeb(0x1b7))/0x2)+parseInt(_0xd8fdeb(0x1b6))/0x3*(parseInt(_0xd8fdeb(0x1a6))/0x4)+parseInt(_0xd8fdeb(0x1b5))/0x5*(-parseInt(_0xd8fdeb(0x1ad))/0x6)+-parseInt(_0xd8fdeb(0x1b0))/0x7*(parseInt(_0xd8fdeb(0x1a8))/0x8)+-parseInt(_0xd8fdeb(0x1ab))/0x9+-parseInt(_0xd8fdeb(0x1b3))/0xa*(-parseInt(_0xd8fdeb(0x1af))/0xb)+-parseInt(_0xd8fdeb(0x1ae))/0xc*(-parseInt(_0xd8fdeb(0x1ac))/0xd);if(_0x363c0d===_0x8e0440)break;else _0x30c759['push'](_0x30c759['shift']());}catch(_0x27be8c){_0x30c759['push'](_0x30c759['shift']());}}}(a145_0x1576,0x8ca5e));import{getTemplateBaseUrl}from'../utils/config.js';function a145_0x1aef(_0x28b615,_0x374206){_0x28b615=_0x28b615-0x1a6;const _0x15762d=a145_0x1576();let _0x1aeff4=_0x15762d[_0x28b615];return _0x1aeff4;}export async function fetchCdnConfig(){const _0x4650a8=a145_0x1aef;try{const _0x29c06a=getTemplateBaseUrl(),_0x201f06=_0x29c06a+_0x4650a8(0x1a9),_0x1e2ea3=await fetch(_0x201f06,{'headers':{'Accept':_0x4650a8(0x1aa)}});if(!_0x1e2ea3['ok'])return null;const _0x123eac=await _0x1e2ea3[_0x4650a8(0x1b1)]();if(!_0x123eac[_0x4650a8(0x1b4)]?.[_0x4650a8(0x1b8)]||!_0x123eac[_0x4650a8(0x1b9)]?.['node']?.[_0x4650a8(0x1b8)])return null;return _0x123eac;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;function a145_0x1576(){const _0x3c8674=['now','5855420vlJnNT','cli','5LsyqdN','3QNnOyv','8374nsIjGx','stableVersion','sdk','3108476rNfgtT','63rcXSZo','138320radhFE','/config.json','application/json','5402817FodTpw','13xzxIXQ','6702414EWcjgh','17862312dnLxjk','11ScURxd','119WbeZrR','json'];a145_0x1576=function(){return _0x3c8674;};return a145_0x1576();}export async function getCdnConfig(){const _0x4eff79=a145_0x1aef,_0x59086e=Date[_0x4eff79(0x1b2)]();if(cachedConfig&&_0x59086e-cacheTime<CACHE_TTL)return cachedConfig;const _0x58eb2e=await fetchCdnConfig();return _0x58eb2e&&(cachedConfig=_0x58eb2e,cacheTime=_0x59086e),_0x58eb2e;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x2d55a4,_0x4d5aee){const _0x96e9a1=a145_0x26cb,_0x3aaaaf=_0x2d55a4();while(!![]){try{const _0x44f0d8=parseInt(_0x96e9a1(0x13a))/0x1*(-parseInt(_0x96e9a1(0x131))/0x2)+parseInt(_0x96e9a1(0x137))/0x3*(-parseInt(_0x96e9a1(0x13b))/0x4)+-parseInt(_0x96e9a1(0x135))/0x5+-parseInt(_0x96e9a1(0x132))/0x6*(-parseInt(_0x96e9a1(0x136))/0x7)+parseInt(_0x96e9a1(0x139))/0x8*(-parseInt(_0x96e9a1(0x138))/0x9)+parseInt(_0x96e9a1(0x12e))/0xa*(-parseInt(_0x96e9a1(0x133))/0xb)+parseInt(_0x96e9a1(0x13c))/0xc;if(_0x44f0d8===_0x4d5aee)break;else _0x3aaaaf['push'](_0x3aaaaf['shift']());}catch(_0x32652e){_0x3aaaaf['push'](_0x3aaaaf['shift']());}}}(a145_0x5bf7,0x8a030));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3bc412=a145_0x26cb;try{const _0x5cc891=getTemplateBaseUrl(),_0x9d6577=_0x5cc891+_0x3bc412(0x134),_0x1dc7ec=await fetch(_0x9d6577,{'headers':{'Accept':'application/json'}});if(!_0x1dc7ec['ok'])return null;const _0x1e1edb=await _0x1dc7ec['json']();if(!_0x1e1edb['cli']?.[_0x3bc412(0x12f)]||!_0x1e1edb['sdk']?.[_0x3bc412(0x130)]?.[_0x3bc412(0x12f)])return null;return _0x1e1edb;}catch{return null;}}function a145_0x26cb(_0x201086,_0x46f96f){_0x201086=_0x201086-0x12e;const _0x5bf7b7=a145_0x5bf7();let _0x26cb99=_0x5bf7b7[_0x201086];return _0x26cb99;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x320a7e=Date['now']();if(cachedConfig&&_0x320a7e-cacheTime<CACHE_TTL)return cachedConfig;const _0x1609f3=await fetchCdnConfig();return _0x1609f3&&(cachedConfig=_0x1609f3,cacheTime=_0x320a7e),_0x1609f3;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a145_0x5bf7(){const _0x2cb5e3=['1164606UUypVH','6618fjORRc','5159143SZjmmx','/config.json','4681310CwVovW','3493DzhDiq','2139ylKdUI','549ArwIYD','140816FDfPze','1wqhuic','2284qiCoSO','41799864oWpMfz','10VGKasy','stableVersion','node'];a145_0x5bf7=function(){return _0x2cb5e3;};return a145_0x5bf7();}
@@ -1 +1 @@
1
- function a146_0x1cc0(_0x226dec,_0x196d75){_0x226dec=_0x226dec-0x14c;const _0x3c079e=a146_0x3c07();let _0x1cc0cc=_0x3c079e[_0x226dec];return _0x1cc0cc;}const a146_0xaf5544=a146_0x1cc0;(function(_0x3c7075,_0x2f9b5a){const _0x5594eb=a146_0x1cc0,_0xf2681f=_0x3c7075();while(!![]){try{const _0x4f22d8=-parseInt(_0x5594eb(0x16f))/0x1*(-parseInt(_0x5594eb(0x160))/0x2)+parseInt(_0x5594eb(0x14f))/0x3+-parseInt(_0x5594eb(0x15e))/0x4*(parseInt(_0x5594eb(0x152))/0x5)+parseInt(_0x5594eb(0x157))/0x6*(-parseInt(_0x5594eb(0x151))/0x7)+-parseInt(_0x5594eb(0x15c))/0x8+-parseInt(_0x5594eb(0x16b))/0x9+parseInt(_0x5594eb(0x159))/0xa;if(_0x4f22d8===_0x2f9b5a)break;else _0xf2681f['push'](_0xf2681f['shift']());}catch(_0x4abe9f){_0xf2681f['push'](_0xf2681f['shift']());}}}(a146_0x3c07,0x33cb1));import a146_0x258436 from'node:fs';import a146_0x52723a from'node:path';import a146_0x4af0d6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a146_0xaf5544(0x161);function isNonNumericVersion(_0x1b468f){const _0x3f6c5d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3f6c5d['some'](_0x530acb=>_0x530acb['test'](_0x1b468f));}function getInstalledVersion(_0x11eb2a,_0x259302){const _0x41a437=a146_0xaf5544;try{const _0x113f34=a146_0x52723a[_0x41a437(0x156)](_0x11eb2a,'node_modules',_0x259302,_0x41a437(0x169));if(a146_0x258436[_0x41a437(0x14c)](_0x113f34)){const _0x438bbb=JSON[_0x41a437(0x16a)](a146_0x258436['readFileSync'](_0x113f34,_0x41a437(0x153)));return _0x438bbb[_0x41a437(0x15d)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3c860d=a146_0xaf5544;try{const _0x4dca1b=await getCdnConfig();return _0x4dca1b?.[_0x3c860d(0x158)]?.[_0x3c860d(0x15b)]?.[_0x3c860d(0x162)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2ce438=a146_0xaf5544;try{const _0x48860a=await getCdnConfig();return _0x48860a?.[_0x2ce438(0x158)]?.[_0x2ce438(0x15b)]?.[_0x2ce438(0x16e)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}function a146_0x3c07(){const _0x1fc25d=['\x1b[0m','11400KqdrZf','@lovrabet/sdk','7pOHMwS','1190CWqCCh','utf-8','\x1b[33m','all','join','1829160tfeYhe','sdk','7114330VocHTT','↪\x20SDK\x20update\x20available','node','1439064edRNgT','version','2504jKWrEu','dependencies','176652XnaRXK','1.2.0','stableVersion','\x1b[1m','latest','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','devDependencies','package.json','parse','1209015LObIVv','npm\x20install\x20','readFileSync','packageName','3evgpED','existsSync','log'];a146_0x3c07=function(){return _0x1fc25d;};return a146_0x3c07();}export async function checkSdkVersion(_0xff803f){const _0x19b17b=a146_0xaf5544,_0x3e1634=a146_0x52723a[_0x19b17b(0x156)](_0xff803f,'package.json'),[_0x41d9d4,_0x38ee86]=await Promise[_0x19b17b(0x155)]([getSdkStableVersion(),getSdkPackageName()]),_0x39b451=_0x41d9d4||FALLBACK_MIN_SDK_VERSION;if(!a146_0x258436[_0x19b17b(0x14c)](_0x3e1634))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};try{const _0x132701=JSON[_0x19b17b(0x16a)](a146_0x258436[_0x19b17b(0x16d)](_0x3e1634,'utf8')),_0x48b03f=_0x132701[_0x19b17b(0x15f)]||{},_0x2f8e10=_0x132701['devDependencies']||{},_0x591068=_0x48b03f[_0x38ee86]||_0x2f8e10[_0x38ee86];if(!_0x591068)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};let _0x2fdc83=getInstalledVersion(_0xff803f,_0x38ee86);!_0x2fdc83&&(_0x2fdc83=_0x591068);if(isNonNumericVersion(_0x591068))return{'installed':!![],'version':_0x2fdc83,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};const _0x495186=a146_0x4af0d6['coerce'](_0x2fdc83),_0x34e515=a146_0x4af0d6['coerce'](_0x39b451),_0x36e431=_0x495186&&_0x34e515?a146_0x4af0d6['lt'](_0x495186,_0x34e515):![];return{'installed':!![],'version':_0x2fdc83,'needsUpgrade':_0x36e431,'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39b451,'packageName':_0x38ee86,'stableVersion':_0x41d9d4};}}export function checkSdkVersionSync(_0xafae05){const _0x125daa=a146_0xaf5544,_0x8662b0=a146_0x52723a[_0x125daa(0x156)](_0xafae05,_0x125daa(0x169)),_0x2863e1=_0x125daa(0x150);if(!a146_0x258436[_0x125daa(0x14c)](_0x8662b0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};try{const _0x4d9388=JSON[_0x125daa(0x16a)](a146_0x258436[_0x125daa(0x16d)](_0x8662b0,'utf8')),_0x130cc7=_0x4d9388[_0x125daa(0x15f)]||{},_0x292aa7=_0x4d9388[_0x125daa(0x168)]||{},_0x5758a9=_0x130cc7[_0x2863e1]||_0x292aa7[_0x2863e1];if(!_0x5758a9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};let _0x2ef5dc=getInstalledVersion(_0xafae05,_0x2863e1);!_0x2ef5dc&&(_0x2ef5dc=_0x5758a9);if(isNonNumericVersion(_0x5758a9))return{'installed':!![],'version':_0x2ef5dc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};const _0x2a3fba=a146_0x4af0d6['coerce'](_0x2ef5dc),_0x1a07dd=_0x2a3fba?a146_0x4af0d6['lt'](_0x2a3fba,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ef5dc,'needsUpgrade':_0x1a07dd,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2863e1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x522b3c){const _0xc33d86=a146_0xaf5544;if(!_0x522b3c[_0xc33d86(0x165)])return;const _0x52986e=_0xc33d86(0x154),_0xbdc345=_0xc33d86(0x14e),_0x2dc146=_0xc33d86(0x163),_0x131612=_0x522b3c['packageName']||'@lovrabet/sdk',_0x4e8ed8=_0x522b3c[_0xc33d86(0x162)]||_0x522b3c['minVersion'],_0x589045=_0xc33d86(0x16c)+_0x131612+'@'+(_0x4e8ed8||_0xc33d86(0x164));console[_0xc33d86(0x14d)](),console[_0xc33d86(0x14d)](''+_0x52986e+_0x2dc146+_0xc33d86(0x15a)+_0xbdc345),console[_0xc33d86(0x14d)](_0x52986e+_0xc33d86(0x167)+_0x131612+'@'+_0x522b3c[_0xc33d86(0x15d)]+_0xbdc345),console[_0xc33d86(0x14d)](_0x52986e+'\x20\x20\x20Stable\x20version:\x20'+_0x4e8ed8+_0xbdc345),console['log'](_0x52986e+_0xc33d86(0x166)+_0x589045+_0xbdc345),console['log']();}
1
+ const a146_0x4486ae=a146_0x44b1;function a146_0x324d(){const _0xdb825e=['1.2.0','test','dependencies','stableVersion','readFileSync','log','50108hhhXgt','\x1b[33m','@lovrabet/sdk','node_modules','latest','version','packageName','npm\x20install\x20','5154115wOfqkx','141634lptBLN','↪\x20SDK\x20update\x20available','node','utf-8','5104022ZJHhDq','\x1b[0m','needsUpgrade','package.json','parse','coerce','devDependencies','141wwkaNM','join','all','\x20\x20\x20Upgrade\x20command:\x20','99124uaSFYC','existsSync','\x20\x20\x20Current\x20version:\x20','sdk','2928780ETuucT','minVersion','\x20\x20\x20Stable\x20version:\x20','2722208EtDPRW'];a146_0x324d=function(){return _0xdb825e;};return a146_0x324d();}(function(_0x7cf88,_0x10a9ed){const _0x5b113c=a146_0x44b1,_0x432af6=_0x7cf88();while(!![]){try{const _0x319814=parseInt(_0x5b113c(0x19a))/0x1+-parseInt(_0x5b113c(0x1a3))/0x2+-parseInt(_0x5b113c(0x1ae))/0x3*(-parseInt(_0x5b113c(0x1b2))/0x4)+parseInt(_0x5b113c(0x1a2))/0x5+-parseInt(_0x5b113c(0x1b6))/0x6+-parseInt(_0x5b113c(0x1a7))/0x7+-parseInt(_0x5b113c(0x1b9))/0x8;if(_0x319814===_0x10a9ed)break;else _0x432af6['push'](_0x432af6['shift']());}catch(_0x287b23){_0x432af6['push'](_0x432af6['shift']());}}}(a146_0x324d,0x96b35));import a146_0x497724 from'node:fs';import a146_0x3e7b64 from'node:path';import a146_0x256f2d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a146_0x44b1(_0x30c30a,_0x4fbdeb){_0x30c30a=_0x30c30a-0x194;const _0x324d5c=a146_0x324d();let _0x44b1a2=_0x324d5c[_0x30c30a];return _0x44b1a2;}const FALLBACK_MIN_SDK_VERSION=a146_0x4486ae(0x194);function isNonNumericVersion(_0x5c9bef){const _0x43ea03=a146_0x4486ae,_0x34cd9f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x34cd9f['some'](_0x403648=>_0x403648[_0x43ea03(0x195)](_0x5c9bef));}function getInstalledVersion(_0x50e323,_0x4f621d){const _0x5d395b=a146_0x4486ae;try{const _0x4d6ddb=a146_0x3e7b64[_0x5d395b(0x1af)](_0x50e323,_0x5d395b(0x19d),_0x4f621d,_0x5d395b(0x1aa));if(a146_0x497724[_0x5d395b(0x1b3)](_0x4d6ddb)){const _0x3940ab=JSON[_0x5d395b(0x1ab)](a146_0x497724[_0x5d395b(0x198)](_0x4d6ddb,_0x5d395b(0x1a6)));return _0x3940ab[_0x5d395b(0x19f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xf93785=a146_0x4486ae;try{const _0x5216e6=await getCdnConfig();return _0x5216e6?.[_0xf93785(0x1b5)]?.['node']?.[_0xf93785(0x197)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x44a35a=a146_0x4486ae;try{const _0x103e2a=await getCdnConfig();return _0x103e2a?.[_0x44a35a(0x1b5)]?.[_0x44a35a(0x1a5)]?.[_0x44a35a(0x1a0)]||_0x44a35a(0x19c);}catch{return _0x44a35a(0x19c);}}export async function checkSdkVersion(_0x265a7d){const _0x16cf14=a146_0x4486ae,_0x48f0a0=a146_0x3e7b64[_0x16cf14(0x1af)](_0x265a7d,_0x16cf14(0x1aa)),[_0x2d9ffe,_0x4b98e9]=await Promise[_0x16cf14(0x1b0)]([getSdkStableVersion(),getSdkPackageName()]),_0x28bd6=_0x2d9ffe||FALLBACK_MIN_SDK_VERSION;if(!a146_0x497724[_0x16cf14(0x1b3)](_0x48f0a0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};try{const _0x4344ef=JSON[_0x16cf14(0x1ab)](a146_0x497724[_0x16cf14(0x198)](_0x48f0a0,'utf8')),_0x57f376=_0x4344ef[_0x16cf14(0x196)]||{},_0x191c08=_0x4344ef[_0x16cf14(0x1ad)]||{},_0x4c89f0=_0x57f376[_0x4b98e9]||_0x191c08[_0x4b98e9];if(!_0x4c89f0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};let _0x43410e=getInstalledVersion(_0x265a7d,_0x4b98e9);!_0x43410e&&(_0x43410e=_0x4c89f0);if(isNonNumericVersion(_0x4c89f0))return{'installed':!![],'version':_0x43410e,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};const _0x3a0a92=a146_0x256f2d[_0x16cf14(0x1ac)](_0x43410e),_0x4adc6f=a146_0x256f2d[_0x16cf14(0x1ac)](_0x28bd6),_0x4fec24=_0x3a0a92&&_0x4adc6f?a146_0x256f2d['lt'](_0x3a0a92,_0x4adc6f):![];return{'installed':!![],'version':_0x43410e,'needsUpgrade':_0x4fec24,'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};}}export function checkSdkVersionSync(_0x3f3e6f){const _0x5e6373=a146_0x4486ae,_0x5a9f43=a146_0x3e7b64[_0x5e6373(0x1af)](_0x3f3e6f,_0x5e6373(0x1aa)),_0x458b87=_0x5e6373(0x19c);if(!a146_0x497724['existsSync'](_0x5a9f43))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};try{const _0x3679f2=JSON['parse'](a146_0x497724[_0x5e6373(0x198)](_0x5a9f43,'utf8')),_0x512fa2=_0x3679f2[_0x5e6373(0x196)]||{},_0x669302=_0x3679f2[_0x5e6373(0x1ad)]||{},_0x3351f8=_0x512fa2[_0x458b87]||_0x669302[_0x458b87];if(!_0x3351f8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};let _0x1046d4=getInstalledVersion(_0x3f3e6f,_0x458b87);!_0x1046d4&&(_0x1046d4=_0x3351f8);if(isNonNumericVersion(_0x3351f8))return{'installed':!![],'version':_0x1046d4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};const _0x575088=a146_0x256f2d[_0x5e6373(0x1ac)](_0x1046d4),_0x24b3ef=_0x575088?a146_0x256f2d['lt'](_0x575088,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1046d4,'needsUpgrade':_0x24b3ef,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x34382e){const _0x31ff66=a146_0x4486ae;if(!_0x34382e[_0x31ff66(0x1a9)])return;const _0x2929d6=_0x31ff66(0x19b),_0x1744e5=_0x31ff66(0x1a8),_0x2e2359='\x1b[1m',_0xb1a512=_0x34382e[_0x31ff66(0x1a0)]||_0x31ff66(0x19c),_0x40fa25=_0x34382e['stableVersion']||_0x34382e[_0x31ff66(0x1b7)],_0x6e9f2a=_0x31ff66(0x1a1)+_0xb1a512+'@'+(_0x40fa25||_0x31ff66(0x19e));console[_0x31ff66(0x199)](),console[_0x31ff66(0x199)](''+_0x2929d6+_0x2e2359+_0x31ff66(0x1a4)+_0x1744e5),console[_0x31ff66(0x199)](_0x2929d6+_0x31ff66(0x1b4)+_0xb1a512+'@'+_0x34382e['version']+_0x1744e5),console[_0x31ff66(0x199)](_0x2929d6+_0x31ff66(0x1b8)+_0x40fa25+_0x1744e5),console['log'](_0x2929d6+_0x31ff66(0x1b1)+_0x6e9f2a+_0x1744e5),console[_0x31ff66(0x199)]();}
@@ -1 +1 @@
1
- (function(_0xa2c901,_0x499d6d){const _0x2874ea=a147_0x160f,_0x50292f=_0xa2c901();while(!![]){try{const _0x27cd26=parseInt(_0x2874ea(0x137))/0x1+-parseInt(_0x2874ea(0x133))/0x2+parseInt(_0x2874ea(0x126))/0x3+parseInt(_0x2874ea(0x13a))/0x4+-parseInt(_0x2874ea(0x123))/0x5+-parseInt(_0x2874ea(0x12a))/0x6+parseInt(_0x2874ea(0x124))/0x7*(parseInt(_0x2874ea(0x130))/0x8);if(_0x27cd26===_0x499d6d)break;else _0x50292f['push'](_0x50292f['shift']());}catch(_0x27419b){_0x50292f['push'](_0x50292f['shift']());}}}(a147_0x144a,0xbaebd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a147_0x3d8258 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a147_0x144a(){const _0x50fa42=['package.json','2144268GwjDht','test','@latest','\x20\x20\x20Current\x20CLI\x20version:\x20','7982646wFmPpS','\x1b[33m','some','coerce','npm\x20install\x20-g\x20','needsUpgrade','16410872EhEfYU','stableVersion','log','507518AbIAwf','../..','parse','utf-8','446105DMvyWa','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','474320sOwTio','\x1b[0m','↪\x20New\x20version\x20available','cli','1.0.0','currentVersion','4904855GRKyoY','7CpaAmb'];a147_0x144a=function(){return _0x50fa42;};return a147_0x144a();}function getCurrentCliVersion(){const _0x141c58=a147_0x160f;try{const _0x348bca=fileURLToPath(import.meta.url),_0x20d35d=resolve(dirname(_0x348bca),_0x141c58(0x134)),_0x33239a=resolve(_0x20d35d,_0x141c58(0x125)),_0x4347d4=JSON[_0x141c58(0x135)](readFileSync(_0x33239a,_0x141c58(0x136)));return _0x4347d4['version']||_0x141c58(0x121);}catch{return _0x141c58(0x121);}}function isNonNumericVersion(_0x3eccbe){const _0x4e36c0=a147_0x160f,_0x18cecf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x18cecf[_0x4e36c0(0x12c)](_0x290287=>_0x290287[_0x4e36c0(0x127)](_0x3eccbe));}export async function checkCliVersion(){const _0x5437de=a147_0x160f,_0x2c5130=getCurrentCliVersion(),_0x4803bf=await getCdnConfig(),_0x373da4=_0x4803bf?.[_0x5437de(0x120)]?.['stableVersion']||null;let _0x16bc3f=![];if(_0x373da4)try{const _0x198b1c=a147_0x3d8258[_0x5437de(0x12d)](_0x2c5130),_0x50ebf6=a147_0x3d8258[_0x5437de(0x12d)](_0x373da4);_0x198b1c&&_0x50ebf6&&(_0x16bc3f=a147_0x3d8258['lt'](_0x198b1c,_0x50ebf6));}catch{_0x16bc3f=![];}return{'currentVersion':_0x2c5130,'stableVersion':_0x373da4,'needsUpgrade':_0x16bc3f,'isPreRelease':![]};}function a147_0x160f(_0x315191,_0x201fb3){_0x315191=_0x315191-0x11e;const _0x144a13=a147_0x144a();let _0x160f60=_0x144a13[_0x315191];return _0x160f60;}export function printCliUpgradeWarning(_0x510f07){const _0x1ac9b3=a147_0x160f;if(!_0x510f07[_0x1ac9b3(0x12f)])return;const _0x3277a9=_0x1ac9b3(0x12b),_0x2f1fc3=_0x1ac9b3(0x11e),_0x4c8c96='\x1b[1m',_0x36f7ac=_0x1ac9b3(0x12e)+NPM_PACKAGE_NAME+_0x1ac9b3(0x128);console[_0x1ac9b3(0x132)](),console[_0x1ac9b3(0x132)](''+_0x3277a9+_0x4c8c96+_0x1ac9b3(0x11f)+_0x2f1fc3),console[_0x1ac9b3(0x132)](_0x3277a9+_0x1ac9b3(0x129)+_0x510f07[_0x1ac9b3(0x122)]+_0x2f1fc3),console['log'](_0x3277a9+_0x1ac9b3(0x139)+_0x510f07[_0x1ac9b3(0x131)]+_0x2f1fc3),console[_0x1ac9b3(0x132)](_0x3277a9+_0x1ac9b3(0x138)+_0x36f7ac+_0x2f1fc3),console[_0x1ac9b3(0x132)]();}
1
+ (function(_0x10750b,_0xbf0cd){const _0x103906=a147_0x4ff3,_0x19f648=_0x10750b();while(!![]){try{const _0x18950f=parseInt(_0x103906(0xe2))/0x1+parseInt(_0x103906(0xd8))/0x2+parseInt(_0x103906(0xe8))/0x3*(-parseInt(_0x103906(0xd3))/0x4)+parseInt(_0x103906(0xd7))/0x5*(parseInt(_0x103906(0xe1))/0x6)+parseInt(_0x103906(0xe3))/0x7*(-parseInt(_0x103906(0xe6))/0x8)+-parseInt(_0x103906(0xde))/0x9*(-parseInt(_0x103906(0xe5))/0xa)+-parseInt(_0x103906(0xdc))/0xb;if(_0x18950f===_0xbf0cd)break;else _0x19f648['push'](_0x19f648['shift']());}catch(_0x3d948c){_0x19f648['push'](_0x19f648['shift']());}}}(a147_0xb49f,0x29199));function a147_0x4ff3(_0x563e0c,_0x8270e6){_0x563e0c=_0x563e0c-0xd1;const _0xb49f74=a147_0xb49f();let _0x4ff36a=_0xb49f74[_0x563e0c];return _0x4ff36a;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a147_0xb49f(){const _0x493aac=['26056giBSIg','some','6GmVFXf','stableVersion','needsUpgrade','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','../..','\x1b[33m','package.json','506036CxzKhg','currentVersion','log','parse','583820kABtdK','669320oXpxKu','test','version','\x20\x20\x20Stable\x20version:\x20','3036550cZqAhN','\x1b[0m','9wzpqSt','npm\x20install\x20-g\x20','utf-8','12JumqUI','112930LUlwvC','280EMEofz','1.0.0','1465750IhMwrj'];a147_0xb49f=function(){return _0x493aac;};return a147_0xb49f();}import{fileURLToPath}from'node:url';import a147_0x46fd0a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x44361b=a147_0x4ff3;try{const _0x4f5de2=fileURLToPath(import.meta.url),_0x2c8a36=resolve(dirname(_0x4f5de2),_0x44361b(0xed)),_0x370c79=resolve(_0x2c8a36,_0x44361b(0xd2)),_0x1cf01f=JSON[_0x44361b(0xd6)](readFileSync(_0x370c79,_0x44361b(0xe0)));return _0x1cf01f[_0x44361b(0xda)]||_0x44361b(0xe4);}catch{return _0x44361b(0xe4);}}function isNonNumericVersion(_0x34bbc7){const _0x5381ba=a147_0x4ff3,_0x8fc462=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x8fc462[_0x5381ba(0xe7)](_0x16b2f0=>_0x16b2f0[_0x5381ba(0xd9)](_0x34bbc7));}export async function checkCliVersion(){const _0x1b707c=a147_0x4ff3,_0x4d3e82=getCurrentCliVersion(),_0x417e5e=await getCdnConfig(),_0x36a643=_0x417e5e?.['cli']?.['stableVersion']||null;let _0x5f87f9=![];if(_0x36a643)try{const _0x396a6e=a147_0x46fd0a['coerce'](_0x4d3e82),_0xa5905f=a147_0x46fd0a[_0x1b707c(0xeb)](_0x36a643);_0x396a6e&&_0xa5905f&&(_0x5f87f9=a147_0x46fd0a['lt'](_0x396a6e,_0xa5905f));}catch{_0x5f87f9=![];}return{'currentVersion':_0x4d3e82,'stableVersion':_0x36a643,'needsUpgrade':_0x5f87f9,'isPreRelease':![]};}export function printCliUpgradeWarning(_0xb0a599){const _0x220417=a147_0x4ff3;if(!_0xb0a599[_0x220417(0xea)])return;const _0x5848d5=_0x220417(0xd1),_0x1203ac=_0x220417(0xdd),_0x2c9060='\x1b[1m',_0x472d09=_0x220417(0xdf)+NPM_PACKAGE_NAME+'@latest';console[_0x220417(0xd5)](),console[_0x220417(0xd5)](''+_0x5848d5+_0x2c9060+'↪\x20New\x20version\x20available'+_0x1203ac),console[_0x220417(0xd5)](_0x5848d5+_0x220417(0xec)+_0xb0a599[_0x220417(0xd4)]+_0x1203ac),console[_0x220417(0xd5)](_0x5848d5+_0x220417(0xdb)+_0xb0a599[_0x220417(0xe9)]+_0x1203ac),console['log'](_0x5848d5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x472d09+_0x1203ac),console[_0x220417(0xd5)]();}
@@ -1 +1 @@
1
- const a148_0x5cc0a4=a148_0x4bdc;(function(_0x198744,_0xa092c8){const _0x2ce089=a148_0x4bdc,_0x3dfff1=_0x198744();while(!![]){try{const _0x5919a9=parseInt(_0x2ce089(0x1b2))/0x1+-parseInt(_0x2ce089(0x1b9))/0x2+-parseInt(_0x2ce089(0x1ae))/0x3*(-parseInt(_0x2ce089(0x1b0))/0x4)+-parseInt(_0x2ce089(0x1b4))/0x5+parseInt(_0x2ce089(0x1b6))/0x6*(-parseInt(_0x2ce089(0x1af))/0x7)+parseInt(_0x2ce089(0x1b5))/0x8+parseInt(_0x2ce089(0x1b3))/0x9*(parseInt(_0x2ce089(0x1b8))/0xa);if(_0x5919a9===_0xa092c8)break;else _0x3dfff1['push'](_0x3dfff1['shift']());}catch(_0x2b5652){_0x3dfff1['push'](_0x3dfff1['shift']());}}}(a148_0xab4d,0xdd6aa));function a148_0xab4d(){const _0x3dd461=['1254ipZofv','string','4170630jaokQk','1718952BMLTIp','project','6epGPyU','57022ftikKf','2842556jQGEMn','env','1462650NNaciX','27dSAhGt','9054345WsYEUI','9157312xvjmjc'];a148_0xab4d=function(){return _0x3dd461;};return a148_0xab4d();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a148_0x81f43a,getMultiAppConfigs as a148_0x53949d,getTemplateBaseUrl as a148_0x56312d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a148_0x4bdc(_0x1ce5f0,_0x5e06eb){_0x1ce5f0=_0x1ce5f0-0x1ae;const _0xab4d36=a148_0xab4d();let _0x4bdc91=_0xab4d36[_0x1ce5f0];return _0x4bdc91;}export{isInProject}from'../context.js';export function readConfig(_0x3c9354){const _0x441a6c=a148_0x4bdc,_0x1851b1=readRawConfig(_0x3c9354);return _0x1851b1[_0x441a6c(0x1b1)]&&typeof _0x1851b1[_0x441a6c(0x1b1)]===_0x441a6c(0x1b7)&&initEnv(_0x1851b1['env']),_0x1851b1;}export function getConfigAppCode(){return a148_0x81f43a();}export function getMultiAppConfigs(_0x171abb=a148_0x5cc0a4(0x1ba)){return a148_0x53949d(_0x171abb);}export function getTemplateBaseUrl(){return a148_0x56312d();}
1
+ (function(_0x4b8ce4,_0x4dd600){const _0x13f38b=a148_0x5409,_0x462c44=_0x4b8ce4();while(!![]){try{const _0x3e2897=-parseInt(_0x13f38b(0x1a1))/0x1+-parseInt(_0x13f38b(0x1a8))/0x2*(parseInt(_0x13f38b(0x19e))/0x3)+-parseInt(_0x13f38b(0x1a7))/0x4+-parseInt(_0x13f38b(0x1a2))/0x5*(-parseInt(_0x13f38b(0x1a5))/0x6)+parseInt(_0x13f38b(0x1a0))/0x7+parseInt(_0x13f38b(0x1a6))/0x8+-parseInt(_0x13f38b(0x1a4))/0x9;if(_0x3e2897===_0x4dd600)break;else _0x462c44['push'](_0x462c44['shift']());}catch(_0x18bfaa){_0x462c44['push'](_0x462c44['shift']());}}}(a148_0x1c71,0x2e3b1));function a148_0x1c71(){const _0x5484ac=['env','2432773oFdvYV','45396pTEizX','323995FUkCwO','string','2666763AIUpgr','12AUpKkL','2551712ixENll','383004KFCHLc','26yWMIak','39066KQuGia'];a148_0x1c71=function(){return _0x5484ac;};return a148_0x1c71();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a148_0x527cc8,getMultiAppConfigs as a148_0xd950e8,getTemplateBaseUrl as a148_0x12fc6e}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a148_0x5409(_0x26e45a,_0x30d3bd){_0x26e45a=_0x26e45a-0x19e;const _0x1c7193=a148_0x1c71();let _0x54090f=_0x1c7193[_0x26e45a];return _0x54090f;}export{isInProject}from'../context.js';export function readConfig(_0x1cfe9d){const _0x42aa57=a148_0x5409,_0x3a501f=readRawConfig(_0x1cfe9d);return _0x3a501f[_0x42aa57(0x19f)]&&typeof _0x3a501f[_0x42aa57(0x19f)]===_0x42aa57(0x1a3)&&initEnv(_0x3a501f[_0x42aa57(0x19f)]),_0x3a501f;}export function getConfigAppCode(){return a148_0x527cc8();}export function getMultiAppConfigs(_0x433fd9='project'){return a148_0xd950e8(_0x433fd9);}export function getTemplateBaseUrl(){return a148_0x12fc6e();}
@@ -1 +1 @@
1
- (function(_0x4d7f5c,_0x141847){const _0xa6c2fd=a149_0x38b0,_0x44f3e5=_0x4d7f5c();while(!![]){try{const _0x32f413=parseInt(_0xa6c2fd(0xdd))/0x1+-parseInt(_0xa6c2fd(0xda))/0x2*(parseInt(_0xa6c2fd(0xe2))/0x3)+-parseInt(_0xa6c2fd(0xdb))/0x4+parseInt(_0xa6c2fd(0xe0))/0x5*(parseInt(_0xa6c2fd(0xde))/0x6)+-parseInt(_0xa6c2fd(0xe1))/0x7+-parseInt(_0xa6c2fd(0xdc))/0x8+parseInt(_0xa6c2fd(0xe7))/0x9;if(_0x32f413===_0x141847)break;else _0x44f3e5['push'](_0x44f3e5['shift']());}catch(_0x40381c){_0x44f3e5['push'](_0x44f3e5['shift']());}}}(a149_0xd3f6,0xd7d95));import a149_0x40c54e from'node:path';function a149_0x38b0(_0x371993,_0x565ee9){_0x371993=_0x371993-0xda;const _0xd3f63b=a149_0xd3f6();let _0x38b0a1=_0xd3f63b[_0x371993];return _0x38b0a1;}import a149_0x54b0d3 from'node:fs';function a149_0xd3f6(){const _0x59f714=['7191115gpBqwg','3609529zYOLXC','6UxrNtm','readdirSync','error','name','copyFileSync','12900600vjnGpd','join','mkdirSync','113686GGAAuC','4944388pJQrXM','6395616VHaxoK','677376LnwkGT','6AJNwVl','isDirectory'];a149_0xd3f6=function(){return _0x59f714;};return a149_0xd3f6();}export async function copyDirectory(_0x24bef7,_0x376cb5){const _0x55ce6f=a149_0x38b0;try{const _0x4ba89d=a149_0x54b0d3[_0x55ce6f(0xe3)](_0x24bef7,{'withFileTypes':!![]});a149_0x54b0d3[_0x55ce6f(0xe9)](_0x376cb5,{'recursive':!![]});for(const _0x373fe5 of _0x4ba89d){const _0x588b56=a149_0x40c54e[_0x55ce6f(0xe8)](_0x24bef7,_0x373fe5[_0x55ce6f(0xe5)]),_0x368f7=a149_0x40c54e['join'](_0x376cb5,_0x373fe5[_0x55ce6f(0xe5)]);_0x373fe5[_0x55ce6f(0xdf)]()?await copyDirectory(_0x588b56,_0x368f7):a149_0x54b0d3[_0x55ce6f(0xe6)](_0x588b56,_0x368f7);}}catch(_0x3c2e07){console[_0x55ce6f(0xe4)]('复制目录时出错:',_0x3c2e07);}}
1
+ function a149_0x2713(_0x94805e,_0x183b38){_0x94805e=_0x94805e-0x89;const _0x1afc3a=a149_0x1afc();let _0x2713a7=_0x1afc3a[_0x94805e];return _0x2713a7;}(function(_0x5de89c,_0xe609e4){const _0x3b1f00=a149_0x2713,_0x19a858=_0x5de89c();while(!![]){try{const _0x1e7e07=-parseInt(_0x3b1f00(0x89))/0x1+-parseInt(_0x3b1f00(0x91))/0x2*(-parseInt(_0x3b1f00(0x90))/0x3)+parseInt(_0x3b1f00(0x8c))/0x4*(-parseInt(_0x3b1f00(0x99))/0x5)+parseInt(_0x3b1f00(0x95))/0x6+-parseInt(_0x3b1f00(0x8d))/0x7*(-parseInt(_0x3b1f00(0x94))/0x8)+-parseInt(_0x3b1f00(0x8b))/0x9*(parseInt(_0x3b1f00(0x92))/0xa)+parseInt(_0x3b1f00(0x8a))/0xb;if(_0x1e7e07===_0xe609e4)break;else _0x19a858['push'](_0x19a858['shift']());}catch(_0x3f43e8){_0x19a858['push'](_0x19a858['shift']());}}}(a149_0x1afc,0x888d6));import a149_0x4282a0 from'node:path';import a149_0x2cd4b0 from'node:fs';export async function copyDirectory(_0x405509,_0x1a98a4){const _0x42f555=a149_0x2713;try{const _0x50fba2=a149_0x2cd4b0[_0x42f555(0x96)](_0x405509,{'withFileTypes':!![]});a149_0x2cd4b0[_0x42f555(0x8e)](_0x1a98a4,{'recursive':!![]});for(const _0x834192 of _0x50fba2){const _0x12300e=a149_0x4282a0[_0x42f555(0x97)](_0x405509,_0x834192[_0x42f555(0x93)]),_0x2bd67b=a149_0x4282a0['join'](_0x1a98a4,_0x834192[_0x42f555(0x93)]);_0x834192[_0x42f555(0x98)]()?await copyDirectory(_0x12300e,_0x2bd67b):a149_0x2cd4b0['copyFileSync'](_0x12300e,_0x2bd67b);}}catch(_0x43efe3){console[_0x42f555(0x8f)]('复制目录时出错:',_0x43efe3);}}function a149_0x1afc(){const _0x58f986=['join','isDirectory','5iiwHSN','17184SonDKE','10794399XmgGvH','9803583DotmqM','3871592qRAiYR','1479177TgKqvy','mkdirSync','error','232266RjJmoZ','6UQGAJf','10wVxzsy','name','40TlJJrp','2181342LMGnFs','readdirSync'];a149_0x1afc=function(){return _0x58f986;};return a149_0x1afc();}
@@ -0,0 +1 @@
1
+ (function(_0x4d5731,_0x24417b){const _0x427e28=a150_0x1030,_0x183b86=_0x4d5731();while(!![]){try{const _0x39cc39=parseInt(_0x427e28(0xec))/0x1+parseInt(_0x427e28(0xf6))/0x2*(-parseInt(_0x427e28(0xf2))/0x3)+-parseInt(_0x427e28(0xf1))/0x4*(parseInt(_0x427e28(0xf5))/0x5)+-parseInt(_0x427e28(0xf7))/0x6*(parseInt(_0x427e28(0xef))/0x7)+parseInt(_0x427e28(0xe9))/0x8*(-parseInt(_0x427e28(0xee))/0x9)+parseInt(_0x427e28(0xed))/0xa+parseInt(_0x427e28(0xf3))/0xb*(parseInt(_0x427e28(0xf4))/0xc);if(_0x39cc39===_0x24417b)break;else _0x183b86['push'](_0x183b86['shift']());}catch(_0x491baf){_0x183b86['push'](_0x183b86['shift']());}}}(a150_0x81df,0x375e9));function a150_0x1030(_0x2557bf,_0x1738ab){_0x2557bf=_0x2557bf-0xe8;const _0x81df43=a150_0x81df();let _0x103036=_0x81df43[_0x2557bf];return _0x103036;}function a150_0x81df(){const _0x1cc6af=['3414790WoeSgw','13653zvIGzI','7aiPcsD','isFinite','703268vCYOSv','130671uCsTpA','9977LIEiaZ','7764imaZSX','5CPlLJD','2OINhjH','713892tylPLf','number','object','2320cmucRL','string','trim','76771COfATs'];a150_0x81df=function(){return _0x1cc6af;};return a150_0x81df();}function toFiniteNumber(_0x30d99e){const _0x4fc730=a150_0x1030;if(typeof _0x30d99e===_0x4fc730(0xf8)&&Number[_0x4fc730(0xf0)](_0x30d99e))return _0x30d99e;if(typeof _0x30d99e===_0x4fc730(0xea)){const _0x5d6eec=_0x30d99e[_0x4fc730(0xeb)]();if(!_0x5d6eec)return undefined;const _0x175203=Number(_0x5d6eec);if(Number[_0x4fc730(0xf0)](_0x175203))return _0x175203;}return undefined;}export function normalizeEntityWithIdResponse(_0x5d3965){const _0xfdfa11=a150_0x1030,_0x15af20=toFiniteNumber(_0x5d3965);if(_0x15af20!==undefined)return{'id':_0x15af20,'entity':{'id':_0x15af20}};if(!_0x5d3965||typeof _0x5d3965!==_0xfdfa11(0xe8))return{'id':undefined,'entity':{}};const _0x1f0a15={..._0x5d3965},_0x5c06ac=toFiniteNumber(_0x1f0a15['id']);return _0x5c06ac!==undefined&&(_0x1f0a15['id']=_0x5c06ac),{'id':_0x5c06ac,'entity':_0x1f0a15};}
@@ -1 +1 @@
1
- function a150_0x60e6(_0x1dd051,_0x142a4d){_0x1dd051=_0x1dd051-0x1db;const _0x1e26a0=a150_0x1e26();let _0x60e6cd=_0x1e26a0[_0x1dd051];return _0x60e6cd;}(function(_0x92a65d,_0x3d9e5f){const _0x422ad4=a150_0x60e6,_0x8f20bd=_0x92a65d();while(!![]){try{const _0x30ce57=-parseInt(_0x422ad4(0x1e0))/0x1*(parseInt(_0x422ad4(0x1e4))/0x2)+-parseInt(_0x422ad4(0x1e1))/0x3*(parseInt(_0x422ad4(0x1e3))/0x4)+parseInt(_0x422ad4(0x1de))/0x5+parseInt(_0x422ad4(0x1e2))/0x6*(-parseInt(_0x422ad4(0x1dd))/0x7)+parseInt(_0x422ad4(0x1db))/0x8+parseInt(_0x422ad4(0x1dc))/0x9+parseInt(_0x422ad4(0x1df))/0xa;if(_0x30ce57===_0x3d9e5f)break;else _0x8f20bd['push'](_0x8f20bd['shift']());}catch(_0x2beff5){_0x8f20bd['push'](_0x8f20bd['shift']());}}}(a150_0x1e26,0xc1c7d));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a150_0x1e26(){const _0x279a3c=['555053yhIkxf','224076ZWwwNu','79008UxNuJy','44rDScNO','2GguFGv','8019896RZRizV','6048207dOtcnL','630ERISUW','7482335yTLbBn','1845330hjpypm'];a150_0x1e26=function(){return _0x279a3c;};return a150_0x1e26();}import{join}from'node:path';export async function copyDir(_0x29aebe,_0x480ede){const _0x4a095d=statSync(_0x29aebe);if(_0x4a095d['isDirectory']()){!existsSync(_0x480ede)&&mkdirSync(_0x480ede,{'recursive':!![]});const _0x4cedfb=readdirSync(_0x29aebe);for(const _0x193c2a of _0x4cedfb){await copyDir(join(_0x29aebe,_0x193c2a),join(_0x480ede,_0x193c2a));}}else copyFileSync(_0x29aebe,_0x480ede);}export function ensureDir(_0x3a2fad){!existsSync(_0x3a2fad)&&mkdirSync(_0x3a2fad,{'recursive':!![]});}export function pathExists(_0xf46db4){return existsSync(_0xf46db4);}
1
+ function a151_0x252c(){const _0x20f2ed=['6574CqymXS','1360373bHxoqv','isDirectory','11MAXIKG','8777940avhLrs','3783996zHrzxs','735928WsXVNM','13235YCtQKy','6mBKWjo','105qAjTjq','3655608KCgxCS','954gWGmlQ'];a151_0x252c=function(){return _0x20f2ed;};return a151_0x252c();}(function(_0x2b1fd2,_0x4b3c1c){const _0x52b7be=a151_0x2ada,_0x3c81fa=_0x2b1fd2();while(!![]){try{const _0x8cd6e=-parseInt(_0x52b7be(0x95))/0x1*(parseInt(_0x52b7be(0x98))/0x2)+-parseInt(_0x52b7be(0x94))/0x3*(-parseInt(_0x52b7be(0x9e))/0x4)+-parseInt(_0x52b7be(0x9f))/0x5*(-parseInt(_0x52b7be(0x97))/0x6)+-parseInt(_0x52b7be(0x99))/0x7+parseInt(_0x52b7be(0x96))/0x8+parseInt(_0x52b7be(0x9d))/0x9+-parseInt(_0x52b7be(0x9c))/0xa*(parseInt(_0x52b7be(0x9b))/0xb);if(_0x8cd6e===_0x4b3c1c)break;else _0x3c81fa['push'](_0x3c81fa['shift']());}catch(_0x586472){_0x3c81fa['push'](_0x3c81fa['shift']());}}}(a151_0x252c,0x3cc84));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a151_0x2ada(_0x8ecb4e,_0x56cf74){_0x8ecb4e=_0x8ecb4e-0x94;const _0x252c8f=a151_0x252c();let _0x2ada9c=_0x252c8f[_0x8ecb4e];return _0x2ada9c;}import{join}from'node:path';export async function copyDir(_0x3e17eb,_0x2defa1){const _0x4bdfbc=a151_0x2ada,_0x5588ef=statSync(_0x3e17eb);if(_0x5588ef[_0x4bdfbc(0x9a)]()){!existsSync(_0x2defa1)&&mkdirSync(_0x2defa1,{'recursive':!![]});const _0x18b419=readdirSync(_0x3e17eb);for(const _0x25480a of _0x18b419){await copyDir(join(_0x3e17eb,_0x25480a),join(_0x2defa1,_0x25480a));}}else copyFileSync(_0x3e17eb,_0x2defa1);}export function ensureDir(_0x5b2844){!existsSync(_0x5b2844)&&mkdirSync(_0x5b2844,{'recursive':!![]});}export function pathExists(_0x5cf324){return existsSync(_0x5cf324);}
@@ -1 +1 @@
1
- const a151_0x327728=a151_0x5358;(function(_0x14b399,_0x6db752){const _0x2d4830=a151_0x5358,_0x1229d6=_0x14b399();while(!![]){try{const _0x34c788=-parseInt(_0x2d4830(0x200))/0x1+-parseInt(_0x2d4830(0x208))/0x2*(-parseInt(_0x2d4830(0x20d))/0x3)+-parseInt(_0x2d4830(0x213))/0x4*(-parseInt(_0x2d4830(0x1fc))/0x5)+parseInt(_0x2d4830(0x207))/0x6*(-parseInt(_0x2d4830(0x210))/0x7)+-parseInt(_0x2d4830(0x209))/0x8*(-parseInt(_0x2d4830(0x1f8))/0x9)+parseInt(_0x2d4830(0x1f3))/0xa+-parseInt(_0x2d4830(0x203))/0xb*(parseInt(_0x2d4830(0x1fd))/0xc);if(_0x34c788===_0x6db752)break;else _0x1229d6['push'](_0x1229d6['shift']());}catch(_0x585926){_0x1229d6['push'](_0x1229d6['shift']());}}}(a151_0x4adf,0x6bb42));import{mkdirSync,writeFileSync}from'node:fs';function a151_0x5358(_0x12128d,_0x43b1f9){_0x12128d=_0x12128d-0x1f0;const _0x4adf25=a151_0x4adf();let _0x53581e=_0x4adf25[_0x12128d];return _0x53581e;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x559604=a151_0x5358,_0x21f3bc=getTemplateBaseUrl();return _0x21f3bc+_0x559604(0x1fb);}const CACHE_DIR=join(homedir(),'.lovrabet',a151_0x327728(0x1fa));export async function fetchGuidesFromCDN(){const _0x43157e=a151_0x327728,_0x46b2d2=getGuidesCdnUrl(),_0x3b7528=await fetch(_0x46b2d2,{'headers':{'Accept':'application/json'}});if(!_0x3b7528['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3b7528[_0x43157e(0x20a)]+'\x20'+_0x3b7528[_0x43157e(0x1f1)]);const _0x41888e=await _0x3b7528[_0x43157e(0x1f6)]();if(!_0x41888e[_0x43157e(0x205)]||typeof _0x41888e[_0x43157e(0x205)]!==_0x43157e(0x1f2))throw new Error(_0x43157e(0x212));return _0x41888e;}export function writeGuidesToProject(_0x13ef9a,_0x22142c,_0x1a1aa1=a151_0x327728(0x206),_0x173175){const _0x4c6c8c=a151_0x327728,_0x954809=join(_0x22142c,_0x1a1aa1);mkdirSync(_0x954809,{'recursive':!![]});for(const [_0x13953f,_0x29480c]of Object['entries'](_0x13ef9a[_0x4c6c8c(0x205)])){let _0x1b9b19=_0x29480c[_0x4c6c8c(0x1ff)];_0x29480c[_0x4c6c8c(0x1f9)]&&(_0x1b9b19=appendUpdateTime(_0x1b9b19,_0x29480c[_0x4c6c8c(0x1f9)])),writeFileSync(join(_0x954809,_0x13953f+_0x4c6c8c(0x1f5)),_0x1b9b19,'utf-8');}}export function appendUpdateTime(_0x451724,_0xdb2e0b){const _0x432469=a151_0x327728;return _0x451724=_0x451724[_0x432469(0x1f7)](/\n*>更新时间:.*$/m,''),_0x451724[_0x432469(0x20e)]()+(_0x432469(0x1f0)+_0xdb2e0b);}export function getSkillTemplate(_0xc7c06d){const _0x72bc65=a151_0x327728;return _0xc7c06d['skillTemplate']?.[_0x72bc65(0x1ff)]||'';}export function appendExtendContents(_0x5545fc,_0x314192,_0x1ed00c){const _0x217642=a151_0x327728,_0x500995=[];for(const [,_0x2d887b]of Object[_0x217642(0x1f4)](_0x314192[_0x217642(0x205)])){_0x2d887b[_0x217642(0x20b)]&&_0x500995[_0x217642(0x211)](_0x2d887b[_0x217642(0x20b)]['trimEnd']());}if(_0x500995[_0x217642(0x201)]===0x0)return _0x5545fc;return _0x5545fc[_0x217642(0x20e)]()+'\x0a\x0a'+_0x500995[_0x217642(0x204)]('\x0a\x0a')+'\x0a';}function a151_0x4adf(){const _0xaf2871=['status','extendContent','title','3mybFBy','trimEnd','map','1855Fzmfug','push','CDN\x20返回数据格式错误','294580yGyCca','skillTemplate','\x0a\x0a>更新时间:','statusText','object','6286070LvOOLe','entries','.md','json','replace','324HjTjfp','lastUpdated','cache','/skills/guides.json','55ISmTNY','39840mWNgBL','CDN\x20数据中缺少\x20skillTemplate','content','641572yPplLd','length','keys','1507vcUNAR','join','guides','.lovrabet/skill/guides','12594tCaFvj','543038JmrOvb','85240TUjmXk'];a151_0x4adf=function(){return _0xaf2871;};return a151_0x4adf();}export function writeSkillFile(_0x48e3c8,_0x23efc3,_0x118d7a){const _0xbad77a=a151_0x327728,_0x5be890=getSkillTemplate(_0x48e3c8);if(!_0x5be890)throw new Error(_0xbad77a(0x1fe));const _0x31753e=dirname(_0x23efc3);mkdirSync(_0x31753e,{'recursive':!![]});let _0x2a8bf0=_0x5be890[_0xbad77a(0x1f7)](/\{\{IDE_NAME\}\}/g,_0x118d7a);_0x2a8bf0=appendExtendContents(_0x2a8bf0,_0x48e3c8),_0x48e3c8[_0xbad77a(0x214)][_0xbad77a(0x1f9)]&&(_0x2a8bf0=appendUpdateTime(_0x2a8bf0,_0x48e3c8[_0xbad77a(0x214)][_0xbad77a(0x1f9)])),writeFileSync(_0x23efc3,_0x2a8bf0,'utf-8');}export async function installGuides(_0x39026d){const _0x16bb56=a151_0x327728,_0x1980e0=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1980e0,_0x39026d),Object[_0x16bb56(0x202)](_0x1980e0['guides'])[_0x16bb56(0x201)];}export function getGuidesSummary(_0x2e1cba){const _0x148f42=a151_0x327728;return Object[_0x148f42(0x1f4)](_0x2e1cba[_0x148f42(0x205)])[_0x148f42(0x20f)](([_0x2c2e94,_0x38cc00])=>({'key':_0x2c2e94,'title':_0x38cc00[_0x148f42(0x20c)],'path':_0x38cc00['path']}));}
1
+ const a152_0x5cc31c=a152_0x2e47;(function(_0x5e9007,_0x1d98dd){const _0x1cd535=a152_0x2e47,_0xe6c6c=_0x5e9007();while(!![]){try{const _0x164c9b=-parseInt(_0x1cd535(0x177))/0x1+-parseInt(_0x1cd535(0x16c))/0x2+-parseInt(_0x1cd535(0x16f))/0x3+-parseInt(_0x1cd535(0x163))/0x4*(-parseInt(_0x1cd535(0x176))/0x5)+-parseInt(_0x1cd535(0x173))/0x6+parseInt(_0x1cd535(0x179))/0x7*(parseInt(_0x1cd535(0x174))/0x8)+parseInt(_0x1cd535(0x16e))/0x9;if(_0x164c9b===_0x1d98dd)break;else _0xe6c6c['push'](_0xe6c6c['shift']());}catch(_0x42d5e2){_0xe6c6c['push'](_0xe6c6c['shift']());}}}(a152_0x544f,0x38766));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2b0589=a152_0x2e47,_0x484f20=getTemplateBaseUrl();return _0x484f20+_0x2b0589(0x160);}function a152_0x2e47(_0x21f64b,_0x51122e){_0x21f64b=_0x21f64b-0x15d;const _0x544fed=a152_0x544f();let _0x2e470f=_0x544fed[_0x21f64b];return _0x2e470f;}const CACHE_DIR=join(homedir(),'.lovrabet',a152_0x5cc31c(0x16d));export async function fetchGuidesFromCDN(){const _0x309ec7=a152_0x5cc31c,_0xb17164=getGuidesCdnUrl(),_0x4110b7=await fetch(_0xb17164,{'headers':{'Accept':'application/json'}});if(!_0x4110b7['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4110b7['status']+'\x20'+_0x4110b7[_0x309ec7(0x165)]);const _0x3ce314=await _0x4110b7['json']();if(!_0x3ce314[_0x309ec7(0x15e)]||typeof _0x3ce314[_0x309ec7(0x15e)]!==_0x309ec7(0x166))throw new Error('CDN\x20返回数据格式错误');return _0x3ce314;}export function writeGuidesToProject(_0x3b41e9,_0x5383c3,_0x4b7c29=a152_0x5cc31c(0x16b),_0x4caa7e){const _0xff9a51=a152_0x5cc31c,_0x542e8a=join(_0x5383c3,_0x4b7c29);mkdirSync(_0x542e8a,{'recursive':!![]});for(const [_0x1c84bc,_0x4bc444]of Object[_0xff9a51(0x15d)](_0x3b41e9['guides'])){let _0x5e5d2e=_0x4bc444[_0xff9a51(0x164)];_0x4bc444['lastUpdated']&&(_0x5e5d2e=appendUpdateTime(_0x5e5d2e,_0x4bc444[_0xff9a51(0x169)])),writeFileSync(join(_0x542e8a,_0x1c84bc+_0xff9a51(0x17d)),_0x5e5d2e,_0xff9a51(0x17c));}}export function appendUpdateTime(_0x51a9e6,_0x5af24d){const _0x269fdc=a152_0x5cc31c;return _0x51a9e6=_0x51a9e6[_0x269fdc(0x172)](/\n*>更新时间:.*$/m,''),_0x51a9e6[_0x269fdc(0x171)]()+(_0x269fdc(0x15f)+_0x5af24d);}export function getSkillTemplate(_0x18a8ce){const _0x3595cd=a152_0x5cc31c;return _0x18a8ce['skillTemplate']?.[_0x3595cd(0x164)]||'';}export function appendExtendContents(_0x2bdd7d,_0x29cfe1,_0x2e31a3){const _0x4cf961=a152_0x5cc31c,_0x3db337=[];for(const [,_0x1c2fab]of Object[_0x4cf961(0x15d)](_0x29cfe1[_0x4cf961(0x15e)])){_0x1c2fab[_0x4cf961(0x162)]&&_0x3db337[_0x4cf961(0x17a)](_0x1c2fab[_0x4cf961(0x162)][_0x4cf961(0x171)]());}if(_0x3db337[_0x4cf961(0x170)]===0x0)return _0x2bdd7d;return _0x2bdd7d[_0x4cf961(0x171)]()+'\x0a\x0a'+_0x3db337[_0x4cf961(0x167)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x195a75,_0x3568ee,_0x102d9f){const _0x1d2a5a=a152_0x5cc31c,_0x31515f=getSkillTemplate(_0x195a75);if(!_0x31515f)throw new Error(_0x1d2a5a(0x17b));const _0x308fe7=dirname(_0x3568ee);mkdirSync(_0x308fe7,{'recursive':!![]});let _0x2af2e0=_0x31515f[_0x1d2a5a(0x172)](/\{\{IDE_NAME\}\}/g,_0x102d9f);_0x2af2e0=appendExtendContents(_0x2af2e0,_0x195a75),_0x195a75[_0x1d2a5a(0x161)]['lastUpdated']&&(_0x2af2e0=appendUpdateTime(_0x2af2e0,_0x195a75[_0x1d2a5a(0x161)]['lastUpdated'])),writeFileSync(_0x3568ee,_0x2af2e0,_0x1d2a5a(0x17c));}export async function installGuides(_0x20f280){const _0x28955a=a152_0x5cc31c,_0x275790=await fetchGuidesFromCDN();return writeGuidesToProject(_0x275790,_0x20f280),Object[_0x28955a(0x16a)](_0x275790[_0x28955a(0x15e)])[_0x28955a(0x170)];}function a152_0x544f(){const _0x206b14=['113323pwcJia','push','CDN\x20数据中缺少\x20skillTemplate','utf-8','.md','entries','guides','\x0a\x0a>更新时间:','/skills/guides.json','skillTemplate','extendContent','4AmzEuu','content','statusText','object','join','map','lastUpdated','keys','.lovrabet/skill/guides','762586sScwpO','cache','10091070fgHlxy','837963PGdJhJ','length','trimEnd','replace','2574234umupOH','120QLBpor','path','28540deJWJK','48850ZreSrx','title'];a152_0x544f=function(){return _0x206b14;};return a152_0x544f();}export function getGuidesSummary(_0x2aaf6b){const _0x31c2aa=a152_0x5cc31c;return Object['entries'](_0x2aaf6b[_0x31c2aa(0x15e)])[_0x31c2aa(0x168)](([_0x53a6f4,_0x15a3a7])=>({'key':_0x53a6f4,'title':_0x15a3a7[_0x31c2aa(0x178)],'path':_0x15a3a7[_0x31c2aa(0x175)]}));}
@@ -1 +1 @@
1
- function a152_0x2b3e(){const _0x39fd1a=['message','headers','content-type','1283632bZuRUQ','statusText','includes','abort','get','1822263aSrYiq','text','7015155GFcjOp','1670ndotqW','json','fetch','4QPjrFh','21378aIdkXS','387cpIIZD','*\x20请求失败,','60fMvOwL','name','ms\x20后进行第\x20','\x20次重试...','90144ieYfOD','application/json','Request\x20failed','ECONNRESET','6948854QlQjFm','AbortError','2194938TShwnT'];a152_0x2b3e=function(){return _0x39fd1a;};return a152_0x2b3e();}(function(_0x3d9500,_0x128179){const _0x4112bc=a152_0x4f8e,_0x4c5b1d=_0x3d9500();while(!![]){try{const _0x373888=parseInt(_0x4112bc(0x10a))/0x1+parseInt(_0x4112bc(0x106))/0x2+-parseInt(_0x4112bc(0xf2))/0x3*(parseInt(_0x4112bc(0xf8))/0x4)+-parseInt(_0x4112bc(0xf5))/0x5*(-parseInt(_0x4112bc(0xf9))/0x6)+parseInt(_0x4112bc(0xf4))/0x7+parseInt(_0x4112bc(0x100))/0x8*(parseInt(_0x4112bc(0xfa))/0x9)+-parseInt(_0x4112bc(0xfc))/0xa*(parseInt(_0x4112bc(0x104))/0xb);if(_0x373888===_0x128179)break;else _0x4c5b1d['push'](_0x4c5b1d['shift']());}catch(_0x517bb6){_0x4c5b1d['push'](_0x4c5b1d['shift']());}}}(a152_0x2b3e,0xa129f));function a152_0x4f8e(_0xad277b,_0x5ad85d){_0xad277b=_0xad277b-0xf2;const _0x2b3ebe=a152_0x2b3e();let _0x4f8ebc=_0x2b3ebe[_0xad277b];return _0x4f8ebc;}export async function httpRequest(_0x5a43ed,_0x3c0397={}){const _0x2662d1=a152_0x4f8e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3c0397;let _0xe0928b=null;for(let _0xb75972=0x0;_0xb75972<=retries;_0xb75972++){try{const _0xbc58ee=new AbortController(),_0x67c513=setTimeout(()=>_0xbc58ee[_0x2662d1(0x10d)](),timeout),_0x4d152b=await fetch(_0x5a43ed,{'headers':headers,'signal':_0xbc58ee['signal']});clearTimeout(_0x67c513);let _0x9ea190;const _0x511486=_0x4d152b[_0x2662d1(0x108)][_0x2662d1(0x10e)](_0x2662d1(0x109));return _0x511486?.[_0x2662d1(0x10c)](_0x2662d1(0x101))?_0x9ea190=await _0x4d152b[_0x2662d1(0xf6)]():_0x9ea190=await _0x4d152b['text'](),{'ok':_0x4d152b['ok'],'status':_0x4d152b['status'],'statusText':_0x4d152b[_0x2662d1(0x10b)],'data':_0x9ea190,'headers':_0x4d152b['headers'],'url':_0x4d152b['url'],'text':()=>_0x4d152b[_0x2662d1(0xf3)]()};}catch(_0x45a0e6){_0xe0928b=_0x45a0e6 instanceof Error?_0x45a0e6:new Error(String(_0x45a0e6));if(_0xb75972===retries)break;if(shouldRetry(_0x45a0e6)){console['log'](_0x2662d1(0xfb)+retryDelay+_0x2662d1(0xfe)+(_0xb75972+0x1)+_0x2662d1(0xff)),await sleep(retryDelay);continue;}else break;}}throw _0xe0928b||new Error(_0x2662d1(0x102));}function shouldRetry(_0x38bf2e){const _0x39412a=a152_0x4f8e;if(_0x38bf2e instanceof Error){if(_0x38bf2e[_0x39412a(0xfd)]===_0x39412a(0x105))return![];if(_0x38bf2e[_0x39412a(0xfd)]==='TypeError'&&_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)](_0x39412a(0xf7)))return!![];if(_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)](_0x39412a(0x103)))return!![];if(_0x38bf2e[_0x39412a(0x107)][_0x39412a(0x10c)]('ENOTFOUND'))return![];}return![];}function sleep(_0x22174f){return new Promise(_0xda2a78=>setTimeout(_0xda2a78,_0x22174f));}export function validateUrl(_0x198fc9){try{return new URL(_0x198fc9),!![];}catch{return![];}}
1
+ (function(_0x15544c,_0x4be1e8){const _0x2a2bba=a153_0x4376,_0x4318b9=_0x15544c();while(!![]){try{const _0xe23599=-parseInt(_0x2a2bba(0x1e7))/0x1*(-parseInt(_0x2a2bba(0x1da))/0x2)+parseInt(_0x2a2bba(0x1d9))/0x3+parseInt(_0x2a2bba(0x1e8))/0x4*(parseInt(_0x2a2bba(0x1ec))/0x5)+-parseInt(_0x2a2bba(0x1f0))/0x6*(-parseInt(_0x2a2bba(0x1ea))/0x7)+parseInt(_0x2a2bba(0x1db))/0x8*(parseInt(_0x2a2bba(0x1f1))/0x9)+-parseInt(_0x2a2bba(0x1e9))/0xa*(parseInt(_0x2a2bba(0x1eb))/0xb)+-parseInt(_0x2a2bba(0x1de))/0xc;if(_0xe23599===_0x4be1e8)break;else _0x4318b9['push'](_0x4318b9['shift']());}catch(_0x51ab1d){_0x4318b9['push'](_0x4318b9['shift']());}}}(a153_0x118b,0xaa4f8));export async function httpRequest(_0x1284f8,_0x1119e7={}){const _0x218fbb=a153_0x4376,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1119e7;let _0x21c607=null;for(let _0x4e1325=0x0;_0x4e1325<=retries;_0x4e1325++){try{const _0x5152f2=new AbortController(),_0x5827db=setTimeout(()=>_0x5152f2['abort'](),timeout),_0x3b127b=await fetch(_0x1284f8,{'headers':headers,'signal':_0x5152f2[_0x218fbb(0x1d6)]});clearTimeout(_0x5827db);let _0x565a0a;const _0x33fa85=_0x3b127b['headers'][_0x218fbb(0x1ed)](_0x218fbb(0x1d8));return _0x33fa85?.[_0x218fbb(0x1ef)](_0x218fbb(0x1e0))?_0x565a0a=await _0x3b127b[_0x218fbb(0x1e3)]():_0x565a0a=await _0x3b127b[_0x218fbb(0x1d5)](),{'ok':_0x3b127b['ok'],'status':_0x3b127b[_0x218fbb(0x1e6)],'statusText':_0x3b127b[_0x218fbb(0x1df)],'data':_0x565a0a,'headers':_0x3b127b['headers'],'url':_0x3b127b[_0x218fbb(0x1e1)],'text':()=>_0x3b127b[_0x218fbb(0x1d5)]()};}catch(_0x4ce62e){_0x21c607=_0x4ce62e instanceof Error?_0x4ce62e:new Error(String(_0x4ce62e));if(_0x4e1325===retries)break;if(shouldRetry(_0x4ce62e)){console[_0x218fbb(0x1e5)](_0x218fbb(0x1dd)+retryDelay+_0x218fbb(0x1e2)+(_0x4e1325+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x21c607||new Error(_0x218fbb(0x1e4));}function shouldRetry(_0x4c1a1d){const _0x35c069=a153_0x4376;if(_0x4c1a1d instanceof Error){if(_0x4c1a1d['name']===_0x35c069(0x1ee))return![];if(_0x4c1a1d['name']==='TypeError'&&_0x4c1a1d[_0x35c069(0x1d7)][_0x35c069(0x1ef)]('fetch'))return!![];if(_0x4c1a1d['message'][_0x35c069(0x1ef)]('ECONNRESET'))return!![];if(_0x4c1a1d[_0x35c069(0x1d7)][_0x35c069(0x1ef)](_0x35c069(0x1dc)))return![];}return![];}function sleep(_0x4c9d9f){return new Promise(_0x29c833=>setTimeout(_0x29c833,_0x4c9d9f));}function a153_0x4376(_0xa99d80,_0x1e7248){_0xa99d80=_0xa99d80-0x1d5;const _0x118bee=a153_0x118b();let _0x437624=_0x118bee[_0xa99d80];return _0x437624;}export function validateUrl(_0x4a2fef){try{return new URL(_0x4a2fef),!![];}catch{return![];}}function a153_0x118b(){const _0x49f32d=['application/json','url','ms\x20后进行第\x20','json','Request\x20failed','log','status','139bHVLJn','261576bVcRcz','4346380DfcymV','1001ZaBmxh','22TDdqeK','30irurGZ','get','AbortError','includes','546sEvDEJ','4905OQsdPt','text','signal','message','content-type','3296184yQzsLj','7604HxLdEg','18856zpdnVc','ENOTFOUND','*\x20请求失败,','21003360hESPLt','statusText'];a153_0x118b=function(){return _0x49f32d;};return a153_0x118b();}
@@ -1 +1 @@
1
- (function(_0x3c9f33,_0x442e92){const _0x2658f8=a153_0x582d,_0x559f20=_0x3c9f33();while(!![]){try{const _0x2abb3c=parseInt(_0x2658f8(0x166))/0x1*(-parseInt(_0x2658f8(0x16b))/0x2)+parseInt(_0x2658f8(0x171))/0x3*(-parseInt(_0x2658f8(0x16e))/0x4)+parseInt(_0x2658f8(0x16f))/0x5*(-parseInt(_0x2658f8(0x170))/0x6)+-parseInt(_0x2658f8(0x16c))/0x7+-parseInt(_0x2658f8(0x174))/0x8*(-parseInt(_0x2658f8(0x172))/0x9)+parseInt(_0x2658f8(0x167))/0xa+parseInt(_0x2658f8(0x16a))/0xb;if(_0x2abb3c===_0x442e92)break;else _0x559f20['push'](_0x559f20['shift']());}catch(_0x425af5){_0x559f20['push'](_0x559f20['shift']());}}}(a153_0x513f,0xecff7));function env(_0x57b329){return process.env[`RABETBASE_${_0x57b329}`]||process.env[`LOVRABET_${_0x57b329}`]||undefined;}export function isNonInteractive(_0x50c167){const _0x5edd45=a153_0x582d;return!!(_0x50c167[_0x5edd45(0x169)]||_0x50c167['ci']||env('CI')===_0x5edd45(0x168)||process.env.CI==='true'||!process['stdout'][_0x5edd45(0x165)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3ae49d=a153_0x582d;if(!process['stdin']['isTTY'])return![];try{const _0x538b64=process[_0x3ae49d(0x16d)][_0x3ae49d(0x173)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x3ae49d(0x164)](_0x538b64??![]),!![];}catch{return![];}}function a153_0x582d(_0x245576,_0xfdec7b){_0x245576=_0x245576-0x164;const _0x513f16=a153_0x513f();let _0x582d25=_0x513f16[_0x245576];return _0x582d25;}function a153_0x513f(){const _0x53e854=['setRawMode','isTTY','1142VNSaxh','924300AtzsUg','true','nonInteractive','43393504YWUbnz','1256VRbGny','9446906UqyeRr','stdin','395372wTfaKI','1040570KmBkLt','36vlOukj','9zVqsng','18pKWCbb','isRaw','2181584zGACHC'];a153_0x513f=function(){return _0x53e854;};return a153_0x513f();}
1
+ (function(_0x1d25a5,_0x43b7ba){const _0x52a06e=a154_0x32d3,_0x5695ca=_0x1d25a5();while(!![]){try{const _0x45b53d=parseInt(_0x52a06e(0x1d2))/0x1+-parseInt(_0x52a06e(0x1d7))/0x2*(parseInt(_0x52a06e(0x1d3))/0x3)+-parseInt(_0x52a06e(0x1d8))/0x4+-parseInt(_0x52a06e(0x1d1))/0x5*(parseInt(_0x52a06e(0x1db))/0x6)+-parseInt(_0x52a06e(0x1de))/0x7+-parseInt(_0x52a06e(0x1df))/0x8+parseInt(_0x52a06e(0x1d9))/0x9*(parseInt(_0x52a06e(0x1dd))/0xa);if(_0x45b53d===_0x43b7ba)break;else _0x5695ca['push'](_0x5695ca['shift']());}catch(_0xc8dd2a){_0x5695ca['push'](_0x5695ca['shift']());}}}(a154_0x3e41,0x6291b));function a154_0x32d3(_0x1f1cdc,_0x52ea21){_0x1f1cdc=_0x1f1cdc-0x1cf;const _0x3e411e=a154_0x3e41();let _0x32d3cb=_0x3e411e[_0x1f1cdc];return _0x32d3cb;}function env(_0x1f5c5f){return process.env[`RABETBASE_${_0x1f5c5f}`]||process.env[`LOVRABET_${_0x1f5c5f}`]||undefined;}export function isNonInteractive(_0x12bd52){const _0x4d52e5=a154_0x32d3;return!!(_0x12bd52[_0x4d52e5(0x1d4)]||_0x12bd52['ci']||env('CI')===_0x4d52e5(0x1cf)||process.env.CI===_0x4d52e5(0x1cf)||!process[_0x4d52e5(0x1d5)][_0x4d52e5(0x1d6)]||!isStdinRawModeSupported());}function a154_0x3e41(){const _0x1b896d=['242495Hcvriz','227541FofaDG','nonInteractive','stdout','isTTY','2ynjzlN','318856DcNSZy','81nqgZRp','isRaw','30vPmWcF','stdin','2329280oAdBLl','4643639hbsvKO','2925240GPzPdV','true','setRawMode','750515rqsjdL'];a154_0x3e41=function(){return _0x1b896d;};return a154_0x3e41();}function isStdinRawModeSupported(){const _0x3a99c6=a154_0x32d3;if(!process['stdin'][_0x3a99c6(0x1d6)])return![];try{const _0x413870=process['stdin'][_0x3a99c6(0x1da)];return process[_0x3a99c6(0x1dc)][_0x3a99c6(0x1d0)](!![]),process[_0x3a99c6(0x1dc)][_0x3a99c6(0x1d0)](_0x413870??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a154_0x5ab791=a154_0x2d32;(function(_0x4a5cb3,_0x5c9792){const _0x5339fb=a154_0x2d32,_0x5acfec=_0x4a5cb3();while(!![]){try{const _0x1b42c8=-parseInt(_0x5339fb(0x20e))/0x1*(parseInt(_0x5339fb(0x214))/0x2)+-parseInt(_0x5339fb(0x1f7))/0x3*(-parseInt(_0x5339fb(0x21d))/0x4)+parseInt(_0x5339fb(0x1f3))/0x5+parseInt(_0x5339fb(0x1ee))/0x6*(parseInt(_0x5339fb(0x1f0))/0x7)+-parseInt(_0x5339fb(0x1ec))/0x8+-parseInt(_0x5339fb(0x209))/0x9+parseInt(_0x5339fb(0x1e7))/0xa*(parseInt(_0x5339fb(0x208))/0xb);if(_0x1b42c8===_0x5c9792)break;else _0x5acfec['push'](_0x5acfec['shift']());}catch(_0x2f5c59){_0x5acfec['push'](_0x5acfec['shift']());}}}(a154_0x2ac7,0xe3977));import a154_0x387a2c from'winston';import a154_0x1de68b from'node:fs';function a154_0x2ac7(){const _0xcca883=['printf','now','unknown','timestamp','format','10LzufAt','Failed\x20to\x20clear\x20logs:','dirname','.lovrabet.log','logFilePath','utf8','split','combine','toISOString','52FRajoq','duration','20XuMfnr','warn','initWinstonLogger','setRawCommand','existsSync','8013448YZOLHF','info','6iDIqYx','完成:\x20','1378846vhFqzN','error','clearLogs','5672770lOjlqS','errors','stringify','winstonLogger','270057BVxFOL','mkdirSync','transports','rawCommand','map','green','join','red','level','开始执行:\x20','success','createLogger','addColors','message','logTask','readFileSync','readLogs','9340463kOXLDK','6858216VlixLZ','filter','currentRawCommand','trim','command','300825BkEiao'];a154_0x2ac7=function(){return _0xcca883;};return a154_0x2ac7();}import a154_0x19744d from'node:path';class Logger{[a154_0x5ab791(0x1f6)];[a154_0x5ab791(0x218)];[a154_0x5ab791(0x20b)]='';constructor(){this['logFilePath']='';}[a154_0x5ab791(0x1ea)](_0x5dd5f8){const _0x353a2c=a154_0x5ab791;this[_0x353a2c(0x20b)]=_0x5dd5f8;}['initWinstonLogger'](){const _0x50fc19=a154_0x5ab791,_0x2595db=a154_0x19744d[_0x50fc19(0x216)](this[_0x50fc19(0x218)]);!a154_0x1de68b['existsSync'](_0x2595db)&&a154_0x1de68b[_0x50fc19(0x1f8)](_0x2595db,{'recursive':!![]});const _0x55c9a1=a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x21b)](a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x212)](),a154_0x387a2c['format'][_0x50fc19(0x1f4)]({'stack':!![]}),a154_0x387a2c[_0x50fc19(0x213)][_0x50fc19(0x20f)](_0x138e05=>{const _0x4034b5=_0x50fc19,_0x231f20={'timestamp':_0x138e05[_0x4034b5(0x212)]||new Date()[_0x4034b5(0x21c)](),'level':_0x138e05[_0x4034b5(0x1ff)]||_0x4034b5(0x1ed),'command':_0x138e05[_0x4034b5(0x20d)]||_0x4034b5(0x211),'rawCommand':_0x138e05[_0x4034b5(0x1fa)]||this[_0x4034b5(0x20b)]||undefined,'message':_0x138e05[_0x4034b5(0x204)]||'','duration':_0x138e05[_0x4034b5(0x1e6)]||undefined,'details':_0x138e05['details']||undefined};return JSON[_0x4034b5(0x1f5)](_0x231f20);}));this[_0x50fc19(0x1f6)]=a154_0x387a2c[_0x50fc19(0x202)]({'level':'info','format':_0x55c9a1,'transports':[new a154_0x387a2c[(_0x50fc19(0x1f9))]['File']({'filename':this[_0x50fc19(0x218)],'level':_0x50fc19(0x1ed)})],'silent':![]}),a154_0x387a2c[_0x50fc19(0x203)]({'success':_0x50fc19(0x1fc),'error':_0x50fc19(0x1fe),'warn':'yellow','info':'blue'});}['setLogPath'](_0x24d3f6){const _0x156535=a154_0x5ab791;this[_0x156535(0x218)]=a154_0x19744d[_0x156535(0x1fd)](_0x24d3f6,_0x156535(0x217)),this[_0x156535(0x1f6)]&&this[_0x156535(0x1f6)]['clear'](),this[_0x156535(0x1e9)]();}[a154_0x5ab791(0x1ed)](_0x3803c6,_0x58ed1e,_0x2d8978){const _0x4e7d0f=a154_0x5ab791;if(!this['logFilePath']||!this[_0x4e7d0f(0x1f6)])return;this[_0x4e7d0f(0x1f6)][_0x4e7d0f(0x1ed)](_0x58ed1e,{'command':_0x3803c6,'details':_0x2d8978});}[a154_0x5ab791(0x201)](_0x5059cc,_0x5833b9,_0x117cb5,_0x44c55b){const _0x50898a=a154_0x5ab791;if(!this[_0x50898a(0x218)]||!this[_0x50898a(0x1f6)])return;this[_0x50898a(0x1f6)]['log'](_0x50898a(0x1ed),_0x5833b9,{'level':_0x50898a(0x201),'command':_0x5059cc,'duration':_0x117cb5,'details':_0x44c55b});}[a154_0x5ab791(0x1f1)](_0x17231b,_0x32ffc2,_0x20b3c2){const _0x4652cd=a154_0x5ab791;if(!this['logFilePath']||!this[_0x4652cd(0x1f6)])return;this['winstonLogger'][_0x4652cd(0x1f1)](_0x32ffc2,{'command':_0x17231b,'details':_0x20b3c2});}[a154_0x5ab791(0x1e8)](_0x42934f,_0x4bd61e,_0x5edd66){const _0x28e50a=a154_0x5ab791;if(!this['logFilePath']||!this[_0x28e50a(0x1f6)])return;this['winstonLogger'][_0x28e50a(0x1e8)](_0x4bd61e,{'command':_0x42934f,'details':_0x5edd66});}async[a154_0x5ab791(0x205)](_0x946604,_0x59180c,_0x579dd1){const _0x4ec30b=a154_0x5ab791,_0x18943e=Date[_0x4ec30b(0x210)]();this[_0x4ec30b(0x1ed)](_0x946604,_0x4ec30b(0x200)+_0x59180c);try{const _0x28ca54=await _0x579dd1(),_0x131f76=Date[_0x4ec30b(0x210)]()-_0x18943e;return this['success'](_0x946604,_0x4ec30b(0x1ef)+_0x59180c,_0x131f76),_0x28ca54;}catch(_0x32e007){const _0x3682ca=Date[_0x4ec30b(0x210)]()-_0x18943e;this['error'](_0x946604,'失败:\x20'+_0x59180c,{'error':_0x32e007 instanceof Error?_0x32e007[_0x4ec30b(0x204)]:String(_0x32e007),'duration':_0x3682ca});throw _0x32e007;}}[a154_0x5ab791(0x207)](){const _0x560938=a154_0x5ab791;try{if(!a154_0x1de68b[_0x560938(0x1eb)](this['logFilePath']))return[];const _0x39e1ab=a154_0x1de68b[_0x560938(0x206)](this[_0x560938(0x218)],_0x560938(0x219));return _0x39e1ab[_0x560938(0x21a)]('\x0a')[_0x560938(0x20a)](_0x462062=>_0x462062[_0x560938(0x20c)]())[_0x560938(0x1fb)](_0x146e44=>JSON['parse'](_0x146e44));}catch(_0x5eb7b4){return console['warn']('Failed\x20to\x20read\x20logs:',_0x5eb7b4),[];}}[a154_0x5ab791(0x1f2)](){const _0x5c2281=a154_0x5ab791;try{a154_0x1de68b[_0x5c2281(0x1eb)](this[_0x5c2281(0x218)])&&a154_0x1de68b['writeFileSync'](this[_0x5c2281(0x218)],'',_0x5c2281(0x219));}catch(_0xf67ff2){console['warn'](_0x5c2281(0x215),_0xf67ff2);}}['getWinstonInstance'](){const _0x572c77=a154_0x5ab791;return this[_0x572c77(0x1f6)];}}function a154_0x2d32(_0x54ef2e,_0x28dcfb){_0x54ef2e=_0x54ef2e-0x1e6;const _0x2ac761=a154_0x2ac7();let _0x2d32c6=_0x2ac761[_0x54ef2e];return _0x2d32c6;}export const logger=new Logger();
1
+ const a155_0x36d9b3=a155_0x5127;(function(_0x4add9d,_0x444733){const _0x355297=a155_0x5127,_0x53d13d=_0x4add9d();while(!![]){try{const _0x2ce2b1=parseInt(_0x355297(0xb4))/0x1*(-parseInt(_0x355297(0xd6))/0x2)+parseInt(_0x355297(0xdc))/0x3*(-parseInt(_0x355297(0xc5))/0x4)+-parseInt(_0x355297(0xdd))/0x5+-parseInt(_0x355297(0xc0))/0x6*(-parseInt(_0x355297(0xb7))/0x7)+parseInt(_0x355297(0xd2))/0x8*(parseInt(_0x355297(0xae))/0x9)+parseInt(_0x355297(0xd8))/0xa+-parseInt(_0x355297(0xc8))/0xb*(-parseInt(_0x355297(0xb6))/0xc);if(_0x2ce2b1===_0x444733)break;else _0x53d13d['push'](_0x53d13d['shift']());}catch(_0x5131b3){_0x53d13d['push'](_0x53d13d['shift']());}}}(a155_0x4dab,0x1bba9));import a155_0x4e6937 from'winston';function a155_0x5127(_0x35c2ae,_0x271618){_0x35c2ae=_0x35c2ae-0xad;const _0x4dab53=a155_0x4dab();let _0x51272e=_0x4dab53[_0x35c2ae];return _0x51272e;}import a155_0x50daeb from'node:fs';import a155_0x2facd8 from'node:path';class Logger{['winstonLogger'];[a155_0x36d9b3(0xe0)];[a155_0x36d9b3(0xbe)]='';constructor(){const _0x411512=a155_0x36d9b3;this[_0x411512(0xe0)]='';}[a155_0x36d9b3(0xb9)](_0x293205){const _0x3a805a=a155_0x36d9b3;this[_0x3a805a(0xbe)]=_0x293205;}['initWinstonLogger'](){const _0x1b14cb=a155_0x36d9b3,_0x441e9a=a155_0x2facd8['dirname'](this[_0x1b14cb(0xe0)]);!a155_0x50daeb[_0x1b14cb(0xe5)](_0x441e9a)&&a155_0x50daeb['mkdirSync'](_0x441e9a,{'recursive':!![]});const _0x5b78e9=a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xca)](a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xbf)](),a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xd3)]({'stack':!![]}),a155_0x4e6937[_0x1b14cb(0xe1)]['printf'](_0x150618=>{const _0x5b9cfc=_0x1b14cb,_0x52896a={'timestamp':_0x150618['timestamp']||new Date()['toISOString'](),'level':_0x150618[_0x5b9cfc(0xad)]||'info','command':_0x150618[_0x5b9cfc(0xb0)]||_0x5b9cfc(0xcd),'rawCommand':_0x150618[_0x5b9cfc(0xcc)]||this['currentRawCommand']||undefined,'message':_0x150618['message']||'','duration':_0x150618[_0x5b9cfc(0xd9)]||undefined,'details':_0x150618[_0x5b9cfc(0xb2)]||undefined};return JSON[_0x5b9cfc(0xd7)](_0x52896a);}));this[_0x1b14cb(0xb5)]=a155_0x4e6937[_0x1b14cb(0xe3)]({'level':_0x1b14cb(0xb1),'format':_0x5b78e9,'transports':[new a155_0x4e6937[(_0x1b14cb(0xb3))][(_0x1b14cb(0xcf))]({'filename':this[_0x1b14cb(0xe0)],'level':_0x1b14cb(0xb1)})],'silent':![]}),a155_0x4e6937['addColors']({'success':_0x1b14cb(0xd4),'error':_0x1b14cb(0xdf),'warn':_0x1b14cb(0xe2),'info':'blue'});}[a155_0x36d9b3(0xbd)](_0x152e02){const _0x4781fd=a155_0x36d9b3;this['logFilePath']=a155_0x2facd8[_0x4781fd(0xc2)](_0x152e02,_0x4781fd(0xda)),this[_0x4781fd(0xb5)]&&this['winstonLogger'][_0x4781fd(0xd5)](),this['initWinstonLogger']();}[a155_0x36d9b3(0xb1)](_0x3fb62f,_0x41db7c,_0x58d6e5){const _0x30dcb9=a155_0x36d9b3;if(!this['logFilePath']||!this[_0x30dcb9(0xb5)])return;this[_0x30dcb9(0xb5)][_0x30dcb9(0xb1)](_0x41db7c,{'command':_0x3fb62f,'details':_0x58d6e5});}[a155_0x36d9b3(0xc1)](_0x5857d7,_0x46cc18,_0x33cabd,_0x43b829){const _0x3793c2=a155_0x36d9b3;if(!this[_0x3793c2(0xe0)]||!this[_0x3793c2(0xb5)])return;this['winstonLogger']['log'](_0x3793c2(0xb1),_0x46cc18,{'level':_0x3793c2(0xc1),'command':_0x5857d7,'duration':_0x33cabd,'details':_0x43b829});}[a155_0x36d9b3(0xd1)](_0x24b74c,_0x36ede4,_0x15bfc7){const _0x2cf2cb=a155_0x36d9b3;if(!this[_0x2cf2cb(0xe0)]||!this['winstonLogger'])return;this[_0x2cf2cb(0xb5)][_0x2cf2cb(0xd1)](_0x36ede4,{'command':_0x24b74c,'details':_0x15bfc7});}[a155_0x36d9b3(0xe4)](_0x416e38,_0x2d146f,_0x5a0a63){const _0x903904=a155_0x36d9b3;if(!this['logFilePath']||!this[_0x903904(0xb5)])return;this[_0x903904(0xb5)][_0x903904(0xe4)](_0x2d146f,{'command':_0x416e38,'details':_0x5a0a63});}async[a155_0x36d9b3(0xdb)](_0x480a95,_0x4fa6b7,_0x1bae67){const _0x4923c4=a155_0x36d9b3,_0x5f59fe=Date['now']();this[_0x4923c4(0xb1)](_0x480a95,_0x4923c4(0xde)+_0x4fa6b7);try{const _0x406891=await _0x1bae67(),_0x52e570=Date[_0x4923c4(0xc7)]()-_0x5f59fe;return this[_0x4923c4(0xc1)](_0x480a95,_0x4923c4(0xbc)+_0x4fa6b7,_0x52e570),_0x406891;}catch(_0x1d4441){const _0x41e692=Date[_0x4923c4(0xc7)]()-_0x5f59fe;this[_0x4923c4(0xd1)](_0x480a95,_0x4923c4(0xd0)+_0x4fa6b7,{'error':_0x1d4441 instanceof Error?_0x1d4441[_0x4923c4(0xc4)]:String(_0x1d4441),'duration':_0x41e692});throw _0x1d4441;}}['readLogs'](){const _0x3cb2f4=a155_0x36d9b3;try{if(!a155_0x50daeb[_0x3cb2f4(0xe5)](this[_0x3cb2f4(0xe0)]))return[];const _0x5a6675=a155_0x50daeb[_0x3cb2f4(0xc3)](this[_0x3cb2f4(0xe0)],'utf8');return _0x5a6675[_0x3cb2f4(0xce)]('\x0a')['filter'](_0x429c8e=>_0x429c8e['trim']())[_0x3cb2f4(0xb8)](_0x2e7bc7=>JSON['parse'](_0x2e7bc7));}catch(_0x548f8b){return console[_0x3cb2f4(0xe4)](_0x3cb2f4(0xba),_0x548f8b),[];}}[a155_0x36d9b3(0xaf)](){const _0x26d66f=a155_0x36d9b3;try{a155_0x50daeb[_0x26d66f(0xe5)](this['logFilePath'])&&a155_0x50daeb[_0x26d66f(0xc9)](this['logFilePath'],'',_0x26d66f(0xc6));}catch(_0x33f288){console[_0x26d66f(0xe4)](_0x26d66f(0xcb),_0x33f288);}}[a155_0x36d9b3(0xbb)](){const _0x454d8e=a155_0x36d9b3;return this[_0x454d8e(0xb5)];}}function a155_0x4dab(){const _0x58fdb7=['map','setRawCommand','Failed\x20to\x20read\x20logs:','getWinstonInstance','完成:\x20','setLogPath','currentRawCommand','timestamp','14322JpFhwV','success','join','readFileSync','message','4FQAhoo','utf8','now','11yEAhoc','writeFileSync','combine','Failed\x20to\x20clear\x20logs:','rawCommand','unknown','split','File','失败:\x20','error','3448VpNEoz','errors','green','clear','2yKsvbr','stringify','1434010Wnuwhc','duration','.lovrabet.log','logTask','418575HSsDhk','817660qRzbKS','开始执行:\x20','red','logFilePath','format','yellow','createLogger','warn','existsSync','level','2853oVcCdL','clearLogs','command','info','details','transports','23887IYdZPT','winstonLogger','1353036NdAVXF','140lMTdAm'];a155_0x4dab=function(){return _0x58fdb7;};return a155_0x4dab();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a155_0x2fed(_0x331ac2,_0x37a005){_0x331ac2=_0x331ac2-0xe8;const _0x311aa7=a155_0x311a();let _0x2fed7b=_0x311aa7[_0x331ac2];return _0x2fed7b;}function a155_0x311a(){const _0x2ba980=['37030730ArxBin','3770qLZRFV','117717RWfGYf','5862tiMjjT','3490GrmTiA','5203052KVUHlO','14895kenllt','win32','889320zqgTRY','1484psuVSr','34sNSPjV','.cmd','3352rMnKSx','platform'];a155_0x311a=function(){return _0x2ba980;};return a155_0x311a();}const a155_0x359abb=a155_0x2fed;(function(_0x397fe5,_0x400ca0){const _0x185017=a155_0x2fed,_0xe07295=_0x397fe5();while(!![]){try{const _0x498bde=parseInt(_0x185017(0xe9))/0x1+-parseInt(_0x185017(0xeb))/0x2*(-parseInt(_0x185017(0xf1))/0x3)+parseInt(_0x185017(0xf4))/0x4+parseInt(_0x185017(0xf0))/0x5*(parseInt(_0x185017(0xf2))/0x6)+parseInt(_0x185017(0xea))/0x7*(-parseInt(_0x185017(0xed))/0x8)+-parseInt(_0x185017(0xf5))/0x9*(-parseInt(_0x185017(0xf3))/0xa)+-parseInt(_0x185017(0xef))/0xb;if(_0x498bde===_0x400ca0)break;else _0xe07295['push'](_0xe07295['shift']());}catch(_0x30bc4a){_0xe07295['push'](_0xe07295['shift']());}}}(a155_0x311a,0xaed6d));export const isWindows=process[a155_0x359abb(0xee)]===a155_0x359abb(0xe8);export function resolveNpmBin(_0x1463b4){const _0x3df653=a155_0x359abb;return isWindows?_0x1463b4+_0x3df653(0xec):_0x1463b4;}
1
+ const a156_0x2524a4=a156_0x1f5f;(function(_0x3909c0,_0x21696a){const _0x596bca=a156_0x1f5f,_0x2f13ba=_0x3909c0();while(!![]){try{const _0x22c5bd=parseInt(_0x596bca(0x129))/0x1+parseInt(_0x596bca(0x124))/0x2+parseInt(_0x596bca(0x123))/0x3*(-parseInt(_0x596bca(0x127))/0x4)+parseInt(_0x596bca(0x12c))/0x5*(-parseInt(_0x596bca(0x126))/0x6)+-parseInt(_0x596bca(0x130))/0x7*(parseInt(_0x596bca(0x12f))/0x8)+parseInt(_0x596bca(0x128))/0x9*(parseInt(_0x596bca(0x12e))/0xa)+parseInt(_0x596bca(0x12a))/0xb;if(_0x22c5bd===_0x21696a)break;else _0x2f13ba['push'](_0x2f13ba['shift']());}catch(_0x69974e){_0x2f13ba['push'](_0x2f13ba['shift']());}}}(a156_0x2a58,0x5627b));export const isWindows=process[a156_0x2524a4(0x12d)]===a156_0x2524a4(0x12b);export function resolveNpmBin(_0x43b474){const _0x46258b=a156_0x2524a4;return isWindows?_0x43b474+_0x46258b(0x125):_0x43b474;}function a156_0x1f5f(_0x3f6dae,_0x306ea2){_0x3f6dae=_0x3f6dae-0x123;const _0x2a585b=a156_0x2a58();let _0x1f5f0c=_0x2a585b[_0x3f6dae];return _0x1f5f0c;}function a156_0x2a58(){const _0x33a870=['8372430VBiGmI','win32','1029475dsCxjn','platform','40ljDPCx','16KTInrR','1632617kzBlNf','144gEgqkr','559910hsrTIq','.cmd','6zFZaZC','51616fwQtoX','516951IfwQmj','373799DpqlRZ'];a156_0x2a58=function(){return _0x33a870;};return a156_0x2a58();}
@@ -1 +1 @@
1
- const a156_0x5c723=a156_0x58ec;(function(_0x54addd,_0x2480e9){const _0x183d04=a156_0x58ec,_0x5f0157=_0x54addd();while(!![]){try{const _0x4abeb3=parseInt(_0x183d04(0x1a1))/0x1*(parseInt(_0x183d04(0x1ad))/0x2)+-parseInt(_0x183d04(0x1a3))/0x3*(parseInt(_0x183d04(0x1a6))/0x4)+parseInt(_0x183d04(0x1a4))/0x5*(parseInt(_0x183d04(0x1b4))/0x6)+-parseInt(_0x183d04(0x1ab))/0x7*(-parseInt(_0x183d04(0x1ae))/0x8)+parseInt(_0x183d04(0x1b1))/0x9*(parseInt(_0x183d04(0x1a5))/0xa)+-parseInt(_0x183d04(0x1a0))/0xb*(parseInt(_0x183d04(0x19f))/0xc)+-parseInt(_0x183d04(0x1aa))/0xd;if(_0x4abeb3===_0x2480e9)break;else _0x5f0157['push'](_0x5f0157['shift']());}catch(_0x4dc2a0){_0x5f0157['push'](_0x5f0157['shift']());}}}(a156_0x4612,0xae7c3));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a156_0x4612(){const _0x48791e=['4072XUOcTZ','../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','424665wqLRIg','.cursor/rules','string','721134yfUQZC','lovrabet_rules.mdc','application/json','status','本地模板文件不存在:\x20','json','content','1596jyjloa','9757TYEwxV','1KPdwLw','/rules/rules.json','2260383giifaL','25HlfGVL','220vkdgQq','4JVtqjI','statusText','utf-8','agents.md','22844887ghzluO','5894mqzuBH','catch','2551658xFAEwm'];a156_0x4612=function(){return _0x48791e;};return a156_0x4612();}import{appendUpdateTime}from'../utils/guides-cdn.js';function a156_0x58ec(_0x20fc6e,_0x21a5fe){_0x20fc6e=_0x20fc6e-0x19e;const _0x4612aa=a156_0x4612();let _0x58ecd1=_0x4612aa[_0x20fc6e];return _0x58ecd1;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x19cbf5=a156_0x58ec,_0x5ae918=getTemplateBaseUrl();return _0x5ae918+_0x19cbf5(0x1a2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a156_0x5c723(0x1af));export async function fetchRulesFromCDN(){const _0x3472c7=a156_0x5c723,_0x2fc336=getRulesCdnUrl(),_0x2bd479=await fetch(_0x2fc336,{'headers':{'Accept':_0x3472c7(0x1b6)}});if(!_0x2bd479['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2bd479[_0x3472c7(0x1b7)]+'\x20'+_0x2bd479[_0x3472c7(0x1a7)]);const _0x377b08=await _0x2bd479[_0x3472c7(0x1b9)]();if(!_0x377b08['content']||typeof _0x377b08[_0x3472c7(0x19e)]!==_0x3472c7(0x1b3))throw new Error('CDN\x20返回数据格式错误');return _0x377b08;}export async function getRulesContent(){try{const _0x2b12a3=await fetchRulesFromCDN();return _0x2b12a3['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x161969=a156_0x5c723;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x161969(0x1a8));throw new Error(_0x161969(0x1b8)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xac22a8){const _0x329f6b=a156_0x5c723,_0x1ff5bc=await fetchRulesFromCDN()[_0x329f6b(0x1ac)](()=>null);let _0x17d839;_0x1ff5bc?(_0x17d839=_0x1ff5bc[_0x329f6b(0x19e)],_0x1ff5bc['lastUpdated']&&(_0x17d839=appendUpdateTime(_0x17d839,_0x1ff5bc[_0x329f6b(0x1b0)]))):_0x17d839=readLocalTemplate();const _0x4ceef3=dirname(_0xac22a8);!existsSync(_0x4ceef3)&&mkdirSync(_0x4ceef3,{'recursive':!![]}),writeFileSync(_0xac22a8,_0x17d839,'utf-8');}export async function copyRulesToCursor(_0x410424){const _0x21662a=a156_0x5c723,_0x44d069=join(_0x410424,_0x21662a(0x1b2)),_0x3f0ade=join(_0x44d069,_0x21662a(0x1b5));if(existsSync(_0x3f0ade))return![];return await writeRulesFile(_0x3f0ade),!![];}export async function copyRulesToAgentsMd(_0x59f583){const _0x783834=a156_0x5c723,_0x9037b6=join(_0x59f583,_0x783834(0x1a9));if(existsSync(_0x9037b6))return![];return await writeRulesFile(_0x9037b6),!![];}
1
+ (function(_0x6a0613,_0x4daaa7){const _0x6b9649=a157_0xebc3,_0x16fdc2=_0x6a0613();while(!![]){try{const _0xaca212=-parseInt(_0x6b9649(0x168))/0x1*(parseInt(_0x6b9649(0x169))/0x2)+-parseInt(_0x6b9649(0x172))/0x3+parseInt(_0x6b9649(0x164))/0x4+parseInt(_0x6b9649(0x16a))/0x5+-parseInt(_0x6b9649(0x166))/0x6+parseInt(_0x6b9649(0x16f))/0x7*(parseInt(_0x6b9649(0x171))/0x8)+parseInt(_0x6b9649(0x170))/0x9*(parseInt(_0x6b9649(0x16c))/0xa);if(_0xaca212===_0x4daaa7)break;else _0x16fdc2['push'](_0x16fdc2['shift']());}catch(_0xb08032){_0x16fdc2['push'](_0x16fdc2['shift']());}}}(a157_0x119a,0x3ab30));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a157_0x119a(){const _0x5f235b=['.cursor/rules','application/json','576009tUlEHE','45rRmWMc','16ArzMAy','958728VTpDqs','statusText','content','catch','utf-8','108448cakHFZ','lastUpdated','1531980HDWmMt','lovrabet_rules.mdc','538YuVNeL','446ExUIsW','2219155MqxEKD','status','599590tIyCTo'];a157_0x119a=function(){return _0x5f235b;};return a157_0x119a();}import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1b746a=getTemplateBaseUrl();return _0x1b746a+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2ebc77=a157_0xebc3,_0x3d3a42=getRulesCdnUrl(),_0xb10919=await fetch(_0x3d3a42,{'headers':{'Accept':_0x2ebc77(0x16e)}});if(!_0xb10919['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xb10919[_0x2ebc77(0x16b)]+'\x20'+_0xb10919[_0x2ebc77(0x173)]);const _0x8c1e9b=await _0xb10919['json']();if(!_0x8c1e9b[_0x2ebc77(0x174)]||typeof _0x8c1e9b[_0x2ebc77(0x174)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x8c1e9b;}function a157_0xebc3(_0xdb8026,_0x2c5531){_0xdb8026=_0xdb8026-0x164;const _0x119afb=a157_0x119a();let _0xebc3d7=_0x119afb[_0xdb8026];return _0xebc3d7;}export async function getRulesContent(){const _0x3de944=a157_0xebc3;try{const _0x214c94=await fetchRulesFromCDN();return _0x214c94[_0x3de944(0x174)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5edbe2){const _0x278845=a157_0xebc3,_0x37e243=await fetchRulesFromCDN()[_0x278845(0x175)](()=>null);let _0x590e40;_0x37e243?(_0x590e40=_0x37e243[_0x278845(0x174)],_0x37e243[_0x278845(0x165)]&&(_0x590e40=appendUpdateTime(_0x590e40,_0x37e243[_0x278845(0x165)]))):_0x590e40=readLocalTemplate();const _0x496c85=dirname(_0x5edbe2);!existsSync(_0x496c85)&&mkdirSync(_0x496c85,{'recursive':!![]}),writeFileSync(_0x5edbe2,_0x590e40,_0x278845(0x176));}export async function copyRulesToCursor(_0xa915b0){const _0x316357=a157_0xebc3,_0x579158=join(_0xa915b0,_0x316357(0x16d)),_0x5a722c=join(_0x579158,_0x316357(0x167));if(existsSync(_0x5a722c))return![];return await writeRulesFile(_0x5a722c),!![];}export async function copyRulesToAgentsMd(_0x57cf1d){const _0x1196fa=join(_0x57cf1d,'agents.md');if(existsSync(_0x1196fa))return![];return await writeRulesFile(_0x1196fa),!![];}