@lovrabet/rabetbase-cli 2.2.1 → 2.2.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 (204) 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/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.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/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a182_0x1c9c(_0x29a336,_0x28d6b0){_0x29a336=_0x29a336-0xe0;const _0x1c3a82=a182_0x1c3a();let _0x1c9ce6=_0x1c3a82[_0x29a336];return _0x1c9ce6;}const a182_0x1aa448=a182_0x1c9c;function a182_0x1c3a(){const _0x4166b5=['rabetbase-cli','1883460ZmMkBo','version','2708616oNmvdY','12608tpicEp','247158zHtlmR','1497115VTIAdC','traceparent','logData','2270706duXuRv','manual','3143mfAiAS','5646420uJqeAB'];a182_0x1c3a=function(){return _0x4166b5;};return a182_0x1c3a();}(function(_0xc47acd,_0x190d52){const _0x2a60ff=a182_0x1c9c,_0x24c6a3=_0xc47acd();while(!![]){try{const _0x18071d=parseInt(_0x2a60ff(0xe8))/0x1+parseInt(_0x2a60ff(0xe6))/0x2+parseInt(_0x2a60ff(0xe4))/0x3+-parseInt(_0x2a60ff(0xe2))/0x4+parseInt(_0x2a60ff(0xe9))/0x5+parseInt(_0x2a60ff(0xec))/0x6+-parseInt(_0x2a60ff(0xe1))/0x7*(parseInt(_0x2a60ff(0xe7))/0x8);if(_0x18071d===_0x190d52)break;else _0x24c6a3['push'](_0x24c6a3['shift']());}catch(_0x3e7eaa){_0x24c6a3['push'](_0x24c6a3['shift']());}}}(a182_0x1c3a,0xc05db));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=a182_0x1aa448(0xe3);export async function sendCliTraceLog(_0x567a5b){const _0x568965=a182_0x1aa448;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x567a5b['traceName']??DEFAULT_TRACE_NAME,'version':_0x567a5b[_0x568965(0xe5)]??getCliVersion(),'spanName':_0x567a5b['spanName'],'eventType':_0x568965(0xe0),'logData':_0x567a5b[_0x568965(0xeb)],..._0x567a5b[_0x568965(0xea)]&&{'traceparent':_0x567a5b['traceparent']}});}
1
+ const a182_0x6c697=a182_0x5d2e;(function(_0x104bdb,_0x1d291b){const _0xe78115=a182_0x5d2e,_0x16d776=_0x104bdb();while(!![]){try{const _0x3a3d23=parseInt(_0xe78115(0xea))/0x1+parseInt(_0xe78115(0xe6))/0x2*(parseInt(_0xe78115(0xe4))/0x3)+parseInt(_0xe78115(0xeb))/0x4+-parseInt(_0xe78115(0xe3))/0x5+-parseInt(_0xe78115(0xee))/0x6+parseInt(_0xe78115(0xe9))/0x7+parseInt(_0xe78115(0xe2))/0x8*(-parseInt(_0xe78115(0xe1))/0x9);if(_0x3a3d23===_0x1d291b)break;else _0x16d776['push'](_0x16d776['shift']());}catch(_0x596bab){_0x16d776['push'](_0x16d776['shift']());}}}(a182_0x52d1,0x76e14));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a182_0x5d2e(_0x23fb52,_0x395d28){_0x23fb52=_0x23fb52-0xe0;const _0x52d104=a182_0x52d1();let _0x5d2e4b=_0x52d104[_0x23fb52];return _0x5d2e4b;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a182_0x6c697(0xe0);function a182_0x52d1(){const _0x15ed56=['2725895GIXfLc','2309277YObLwl','traceName','2XLBUhy','version','traceparent','3039456aqzXKZ','237871uNDLsM','597268xKIOdG','logData','manual','1699734ZjdJtn','rabetbase-cli','9teedHW','2206040aTsTDQ'];a182_0x52d1=function(){return _0x15ed56;};return a182_0x52d1();}export async function sendCliTraceLog(_0x32cdd7){const _0x4f21e2=a182_0x6c697;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x32cdd7[_0x4f21e2(0xe5)]??DEFAULT_TRACE_NAME,'version':_0x32cdd7[_0x4f21e2(0xe7)]??getCliVersion(),'spanName':_0x32cdd7['spanName'],'eventType':_0x4f21e2(0xed),'logData':_0x32cdd7[_0x4f21e2(0xec)],..._0x32cdd7[_0x4f21e2(0xe8)]&&{'traceparent':_0x32cdd7[_0x4f21e2(0xe8)]}});}
@@ -1 +1 @@
1
- const a183_0x5f0948=a183_0xa471;(function(_0x1d5bb1,_0x1912a9){const _0x5b589e=a183_0xa471,_0x1e0a89=_0x1d5bb1();while(!![]){try{const _0x3333ec=-parseInt(_0x5b589e(0x1d4))/0x1+parseInt(_0x5b589e(0x1d1))/0x2*(parseInt(_0x5b589e(0x1db))/0x3)+-parseInt(_0x5b589e(0x1d3))/0x4*(-parseInt(_0x5b589e(0x1d5))/0x5)+-parseInt(_0x5b589e(0x1d7))/0x6*(parseInt(_0x5b589e(0x1d9))/0x7)+-parseInt(_0x5b589e(0x1e1))/0x8+parseInt(_0x5b589e(0x1d6))/0x9*(-parseInt(_0x5b589e(0x1e2))/0xa)+parseInt(_0x5b589e(0x1da))/0xb*(parseInt(_0x5b589e(0x1e3))/0xc);if(_0x3333ec===_0x1912a9)break;else _0x1e0a89['push'](_0x1e0a89['shift']());}catch(_0x1a4a16){_0x1e0a89['push'](_0x1e0a89['shift']());}}}(a183_0x3958,0xc4087));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a183_0x5f0948(0x1df);function a183_0xa471(_0x4cb31c,_0x3cab76){_0x4cb31c=_0x4cb31c-0x1cf;const _0x395879=a183_0x3958();let _0xa47191=_0x395879[_0x4cb31c];return _0xa47191;}function a183_0x3958(){const _0x57a16e=['41518500URUTMX','sanitize','issue.log.collect','2kXmsWf','redactionCount','1653988VAKNio','852033UevrNJ','5OOAZoZ','514791TKEJXK','22692cmFFvL','truncated','2583EpkaiB','11BWQeIK','1364865CTGoQb','join','title','originalBytes','platform-issue-log-collect','redactionKinds','6561544pawlVq','80uHRsHu'];a183_0x3958=function(){return _0x57a16e;};return a183_0x3958();}export const PLATFORM_ISSUE_SPAN_NAME=a183_0x5f0948(0x1d0);export async function sendPlatformIssueCollectLog(_0x579cf7){const _0x216f94=a183_0x5f0948;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x579cf7[_0x216f94(0x1dd)],'issue.description':_0x579cf7['description'],..._0x579cf7['sanitize']?{'issue.description_original_bytes':_0x579cf7[_0x216f94(0x1cf)][_0x216f94(0x1de)],'issue.description_truncated':_0x579cf7['sanitize'][_0x216f94(0x1d8)],'issue.description_redactions':_0x579cf7[_0x216f94(0x1cf)][_0x216f94(0x1d2)],'issue.description_redaction_kinds':_0x579cf7[_0x216f94(0x1cf)][_0x216f94(0x1e0)][_0x216f94(0x1dc)](',')}:{}}});}
1
+ const a183_0x37d96b=a183_0xbe54;(function(_0x33f9f5,_0x2b728c){const _0x383b0e=a183_0xbe54,_0x5abf21=_0x33f9f5();while(!![]){try{const _0x3bf3ad=-parseInt(_0x383b0e(0xb4))/0x1*(parseInt(_0x383b0e(0xb5))/0x2)+parseInt(_0x383b0e(0xb3))/0x3+-parseInt(_0x383b0e(0xb1))/0x4+-parseInt(_0x383b0e(0xbe))/0x5*(-parseInt(_0x383b0e(0xc2))/0x6)+parseInt(_0x383b0e(0xc1))/0x7*(parseInt(_0x383b0e(0xb8))/0x8)+-parseInt(_0x383b0e(0xbc))/0x9+-parseInt(_0x383b0e(0xc0))/0xa*(-parseInt(_0x383b0e(0xb6))/0xb);if(_0x3bf3ad===_0x2b728c)break;else _0x5abf21['push'](_0x5abf21['shift']());}catch(_0x49b254){_0x5abf21['push'](_0x5abf21['shift']());}}}(a183_0x4e14,0x29720));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0xbe54(_0x2dd3f8,_0x435d69){_0x2dd3f8=_0x2dd3f8-0xb0;const _0x4e1447=a183_0x4e14();let _0xbe54eb=_0x4e1447[_0x2dd3f8];return _0xbe54eb;}function a183_0x4e14(){const _0xfb9366=['join','367209YDBlkD','title','905330vhOjWe','sanitize','44140wRoqML','28zoaLxm','6UWFopI','truncated','142572RXFwAa','originalBytes','390522husvHS','2kgzjJi','280124TrGfBk','418xNBbLF','redactionKinds','94712OvvbJV','issue.log.collect','description'];a183_0x4e14=function(){return _0xfb9366;};return a183_0x4e14();}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a183_0x37d96b(0xb9);export async function sendPlatformIssueCollectLog(_0x3ecef6){const _0x5514c2=a183_0x37d96b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3ecef6[_0x5514c2(0xbd)],'issue.description':_0x3ecef6[_0x5514c2(0xba)],..._0x3ecef6[_0x5514c2(0xbf)]?{'issue.description_original_bytes':_0x3ecef6[_0x5514c2(0xbf)][_0x5514c2(0xb2)],'issue.description_truncated':_0x3ecef6['sanitize'][_0x5514c2(0xb0)],'issue.description_redactions':_0x3ecef6[_0x5514c2(0xbf)]['redactionCount'],'issue.description_redaction_kinds':_0x3ecef6['sanitize'][_0x5514c2(0xb7)][_0x5514c2(0xbb)](',')}:{}}});}
@@ -1 +1 @@
1
- function a185_0x3d7b(){const _0x1def27=['.codebuddy','.agent','Cline\x20IDE','.trae/skills/lovrabet/SKILL.md','codex','.codebuddy/skills/lovrabet/SKILL.md','.codex','SKILL.md.tpl','Trae','opencode','.cline','Qoder\x20IDE','2858694GthjtV','file','.claude/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','Trae\x20IDE','26576451OSXnFw','codebuddy','1446360ZFVtYF','.qoder','claude','.qoder/rules/rabetbase.md','.windsurf','.cline/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','windsurf','Qoder','.cursor/skills/rabetbase.md','cline','Windsurf','Cursor','3853190KvuPwH','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','Cursor\x20IDE','.windsurf/workflows/rabetbase.md','Claude\x20Code','Antigravity','OpenCode\x20IDE','cursor','.claude','qoder','antigravity','2IkskTU','.trae','14VslFwg','379572kibEkG','Antigravity\x20IDE','.cursor','trae','Codex\x20IDE','3382744rnYtIl','OpenCode','2859195WatwWv','Codex','CodeBuddy\x20IDE','.qoder/skills/lovrabet/SKILL.md'];a185_0x3d7b=function(){return _0x1def27;};return a185_0x3d7b();}const a185_0x47fc5a=a185_0x3795;(function(_0x328a37,_0x3fbfd5){const _0x3e46c3=a185_0x3795,_0x550a7d=_0x328a37();while(!![]){try{const _0x4b7df8=parseInt(_0x3e46c3(0xed))/0x1+-parseInt(_0x3e46c3(0xea))/0x2*(parseInt(_0x3e46c3(0xf4))/0x3)+parseInt(_0x3e46c3(0x10b))/0x4+-parseInt(_0x3e46c3(0x118))/0x5+-parseInt(_0x3e46c3(0x104))/0x6*(parseInt(_0x3e46c3(0xec))/0x7)+-parseInt(_0x3e46c3(0xf2))/0x8+parseInt(_0x3e46c3(0x109))/0x9;if(_0x4b7df8===_0x3fbfd5)break;else _0x550a7d['push'](_0x550a7d['shift']());}catch(_0x5c596b){_0x550a7d['push'](_0x550a7d['shift']());}}}(a185_0x3d7b,0x912e1));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x47fc5a(0x117),'description':a185_0x47fc5a(0xe1),'folders':['.cursorrules',a185_0x47fc5a(0xef)],'files':[{'type':'file','path':a185_0x47fc5a(0x114),'template':a185_0x47fc5a(0xff)}]},'windsurf':{'name':a185_0x47fc5a(0x116),'description':a185_0x47fc5a(0x11a),'folders':[a185_0x47fc5a(0x10f)],'files':[{'type':'file','path':a185_0x47fc5a(0xe2),'template':a185_0x47fc5a(0xff)}]},'claude':{'name':a185_0x47fc5a(0xe3),'description':a185_0x47fc5a(0xe3),'folders':[a185_0x47fc5a(0xe7)],'files':[{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0x106),'template':a185_0x47fc5a(0xff)}]},'cline':{'name':'Cline','description':a185_0x47fc5a(0xfa),'folders':[a185_0x47fc5a(0x102)],'files':[{'type':'file','path':a185_0x47fc5a(0x110),'template':a185_0x47fc5a(0xff)}]},'codex':{'name':a185_0x47fc5a(0xf5),'description':a185_0x47fc5a(0xf1),'folders':[a185_0x47fc5a(0xfe)],'files':[{'type':a185_0x47fc5a(0x105),'path':'.codex/skills/lovrabet/SKILL.md','template':a185_0x47fc5a(0xff)}]},'opencode':{'name':a185_0x47fc5a(0xf3),'description':a185_0x47fc5a(0xe5),'folders':['.opencode'],'files':[{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0x111),'template':a185_0x47fc5a(0xff)}]},'qoder':{'name':a185_0x47fc5a(0x113),'description':a185_0x47fc5a(0x103),'folders':[a185_0x47fc5a(0x10c)],'files':[{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0x10e),'template':'SKILL.md.tpl'},{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0xf7),'template':a185_0x47fc5a(0xff)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x47fc5a(0xf6),'folders':[a185_0x47fc5a(0xf8)],'files':[{'type':'file','path':a185_0x47fc5a(0xfd),'template':'SKILL.md.tpl'}]},'trae':{'name':a185_0x47fc5a(0x100),'description':a185_0x47fc5a(0x108),'folders':[a185_0x47fc5a(0xeb)],'files':[{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0xfb),'template':a185_0x47fc5a(0xff)}]}};function a185_0x3795(_0x1879d1,_0x2e3f3d){_0x1879d1=_0x1879d1-0xe1;const _0x3d7b42=a185_0x3d7b();let _0x379527=_0x3d7b42[_0x1879d1];return _0x379527;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a185_0x47fc5a(0x107),'folders':[a185_0x47fc5a(0xf9)],'files':[{'type':a185_0x47fc5a(0x105),'path':a185_0x47fc5a(0x119),'template':a185_0x47fc5a(0xff)}]},'antigravity':{'name':a185_0x47fc5a(0xe4),'description':a185_0x47fc5a(0xee),'folders':[a185_0x47fc5a(0xf9)],'files':[{'type':'file','path':a185_0x47fc5a(0x119),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=['claude','cline',a185_0x47fc5a(0x10a),'codex','cursor','opencode',a185_0x47fc5a(0xe8),a185_0x47fc5a(0xf0),a185_0x47fc5a(0x112)];export const IDE_LIST=[a185_0x47fc5a(0xe9),a185_0x47fc5a(0x10d),a185_0x47fc5a(0x115),a185_0x47fc5a(0x10a),a185_0x47fc5a(0xfc),a185_0x47fc5a(0xe6),'opencode',a185_0x47fc5a(0xe8),'trae','windsurf','agent'];export const ALL_CORE_IDES=[a185_0x47fc5a(0xe6),a185_0x47fc5a(0x112),a185_0x47fc5a(0x10d),a185_0x47fc5a(0x115),'codex',a185_0x47fc5a(0x101),a185_0x47fc5a(0xe8),a185_0x47fc5a(0x10a),a185_0x47fc5a(0xf0)];
1
+ function a185_0x80aa(){const _0x562925=['.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','opencode','.codex/skills/lovrabet/SKILL.md','175YKVNdY','cursor','508108aMaVzn','claude','.cursor','24394535ZSTpuR','.opencode/skills/lovrabet/SKILL.md','.cursorrules','.claude','Cline','.opencode','342116KruBFE','.windsurf/workflows/rabetbase.md','SKILL.md.tpl','5zmItGs','CodeBuddy','.agent','codebuddy','41304IGtzcO','windsurf','.codebuddy','qoder','.cline','cline','.cursor/skills/rabetbase.md','.trae/skills/lovrabet/SKILL.md','Antigravity','8352gtrxmZ','Cline\x20IDE','Trae','file','codex','Antigravity\x20IDE','Windsurf\x20IDE','CodeBuddy\x20IDE','2476356EtDWOI','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','agent','7551qksGNl','其他\x20(通用模板)','trae','.windsurf','478WlsLej','Cursor\x20IDE','.qoder/skills/lovrabet/SKILL.md','.codex','.cline/skills/lovrabet/SKILL.md','.trae','Qoder','2070rQSuaZ'];a185_0x80aa=function(){return _0x562925;};return a185_0x80aa();}const a185_0x5541c3=a185_0xe220;(function(_0x5c0874,_0x5a064c){const _0x563e3b=a185_0xe220,_0x2a33ee=_0x5c0874();while(!![]){try{const _0x52a022=-parseInt(_0x563e3b(0xdc))/0x1+-parseInt(_0x563e3b(0x106))/0x2*(parseInt(_0x563e3b(0xf5))/0x3)+parseInt(_0x563e3b(0xe5))/0x4+parseInt(_0x563e3b(0xe8))/0x5*(-parseInt(_0x563e3b(0xfd))/0x6)+-parseInt(_0x563e3b(0xda))/0x7*(parseInt(_0x563e3b(0xec))/0x8)+-parseInt(_0x563e3b(0x102))/0x9*(parseInt(_0x563e3b(0xd5))/0xa)+parseInt(_0x563e3b(0xdf))/0xb;if(_0x52a022===_0x5a064c)break;else _0x2a33ee['push'](_0x2a33ee['shift']());}catch(_0x473b7a){_0x2a33ee['push'](_0x2a33ee['shift']());}}}(a185_0x80aa,0x65230));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a185_0x5541c3(0x107),'folders':[a185_0x5541c3(0xe1),a185_0x5541c3(0xde)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xf2),'template':a185_0x5541c3(0xe7)}]},'windsurf':{'name':'Windsurf','description':a185_0x5541c3(0xfb),'folders':[a185_0x5541c3(0x105)],'files':[{'type':'file','path':a185_0x5541c3(0xe6),'template':a185_0x5541c3(0xe7)}]},'claude':{'name':a185_0x5541c3(0xfe),'description':'Claude\x20Code','folders':[a185_0x5541c3(0xe2)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xd6),'template':a185_0x5541c3(0xe7)}]},'cline':{'name':a185_0x5541c3(0xe3),'description':a185_0x5541c3(0xf6),'folders':[a185_0x5541c3(0xf0)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xd2),'template':a185_0x5541c3(0xe7)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a185_0x5541c3(0xd1)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xd9),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a185_0x5541c3(0xe4)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xe0),'template':a185_0x5541c3(0xe7)}]},'qoder':{'name':a185_0x5541c3(0xd4),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0x100),'template':a185_0x5541c3(0xe7)},{'type':'file','path':a185_0x5541c3(0xd0),'template':a185_0x5541c3(0xe7)}]},'codebuddy':{'name':a185_0x5541c3(0xe9),'description':a185_0x5541c3(0xfc),'folders':[a185_0x5541c3(0xee)],'files':[{'type':'file','path':a185_0x5541c3(0xd7),'template':'SKILL.md.tpl'}]},'trae':{'name':a185_0x5541c3(0xf7),'description':'Trae\x20IDE','folders':[a185_0x5541c3(0xd3)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xf3),'template':a185_0x5541c3(0xe7)}]}};function a185_0xe220(_0x3801c8,_0x4e54c5){_0x3801c8=_0x3801c8-0xd0;const _0x80aa8=a185_0x80aa();let _0xe22023=_0x80aa8[_0x3801c8];return _0xe22023;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x5541c3(0x103),'description':'通用模板\x20-\x20兜底方案','folders':[a185_0x5541c3(0xea)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xff),'template':a185_0x5541c3(0xe7)}]},'antigravity':{'name':a185_0x5541c3(0xf4),'description':a185_0x5541c3(0xfa),'folders':[a185_0x5541c3(0xea)],'files':[{'type':a185_0x5541c3(0xf8),'path':a185_0x5541c3(0xff),'template':a185_0x5541c3(0xe7)}]}};export const CORE_IDE_LIST=[a185_0x5541c3(0xdd),a185_0x5541c3(0xf1),'codebuddy',a185_0x5541c3(0xf9),'cursor',a185_0x5541c3(0xd8),'qoder',a185_0x5541c3(0x104),a185_0x5541c3(0xed)];export const IDE_LIST=['antigravity',a185_0x5541c3(0xdd),'cline',a185_0x5541c3(0xeb),'codex','cursor',a185_0x5541c3(0xd8),a185_0x5541c3(0xef),a185_0x5541c3(0x104),'windsurf',a185_0x5541c3(0x101)];export const ALL_CORE_IDES=[a185_0x5541c3(0xdb),a185_0x5541c3(0xed),a185_0x5541c3(0xdd),'cline',a185_0x5541c3(0xf9),a185_0x5541c3(0xd8),a185_0x5541c3(0xef),a185_0x5541c3(0xeb),a185_0x5541c3(0x104)];
@@ -1 +1 @@
1
- (function(_0x46d170,_0x508e80){const _0x1613b3=a186_0x58e8,_0x445e79=_0x46d170();while(!![]){try{const _0x400222=parseInt(_0x1613b3(0x11a))/0x1*(parseInt(_0x1613b3(0x123))/0x2)+-parseInt(_0x1613b3(0x119))/0x3+parseInt(_0x1613b3(0x11c))/0x4*(parseInt(_0x1613b3(0x118))/0x5)+parseInt(_0x1613b3(0x11d))/0x6*(-parseInt(_0x1613b3(0x122))/0x7)+-parseInt(_0x1613b3(0x11f))/0x8*(-parseInt(_0x1613b3(0x121))/0x9)+parseInt(_0x1613b3(0x11b))/0xa*(parseInt(_0x1613b3(0x11e))/0xb)+parseInt(_0x1613b3(0x120))/0xc;if(_0x400222===_0x508e80)break;else _0x445e79['push'](_0x445e79['shift']());}catch(_0x1aef1e){_0x445e79['push'](_0x445e79['shift']());}}}(a186_0xddc8,0xdb000));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0xddc8(){const _0x593d56=['956055iyznJD','1640673JFsJqs','16678ZfAUMg','369830SMYrpy','4EmXrgP','12wefjAj','187jFegGT','109136nfEesK','8678364dcfvhM','342qQjwjy','2219973bIidNX','2PVnOjv'];a186_0xddc8=function(){return _0x593d56;};return a186_0xddc8();}function a186_0x58e8(_0x4ea972,_0x23b7cb){_0x4ea972=_0x4ea972-0x118;const _0xddc890=a186_0xddc8();let _0x58e89f=_0xddc890[_0x4ea972];return _0x58e89f;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a186_0x2572(){const _0x5a9cbf=['33122241GKTdeF','4771319EKvyCx','10BnbFca','1039920ScNLeJ','4NSUTDH','6yTFZLi','4400920iDfUae','5366752IFmgLR','2787189IumLaV','542888GkTzyd'];a186_0x2572=function(){return _0x5a9cbf;};return a186_0x2572();}(function(_0x4655af,_0x22119c){const _0x5f4465=a186_0xd6c4,_0x9659dc=_0x4655af();while(!![]){try{const _0x4a8983=parseInt(_0x5f4465(0x192))/0x1+-parseInt(_0x5f4465(0x18c))/0x2+parseInt(_0x5f4465(0x191))/0x3*(-parseInt(_0x5f4465(0x18d))/0x4)+parseInt(_0x5f4465(0x18f))/0x5*(-parseInt(_0x5f4465(0x18e))/0x6)+-parseInt(_0x5f4465(0x18a))/0x7+-parseInt(_0x5f4465(0x190))/0x8+parseInt(_0x5f4465(0x189))/0x9*(parseInt(_0x5f4465(0x18b))/0xa);if(_0x4a8983===_0x22119c)break;else _0x9659dc['push'](_0x9659dc['shift']());}catch(_0x3e6ca8){_0x9659dc['push'](_0x9659dc['shift']());}}}(a186_0x2572,0x8431d));function a186_0xd6c4(_0x36e5f0,_0x456605){_0x36e5f0=_0x36e5f0-0x189;const _0x2572a3=a186_0x2572();let _0xd6c4b7=_0x2572a3[_0x36e5f0];return _0xd6c4b7;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a187_0x5a02(){const _0x326b59=['52958HgxZcZ','10Igtnku','8011215wteKTU','/config/index.json','json','stableVersion','42eUtilg','cli','8RHleNI','1730718ewxCYZ','node','285420yJSoaI','sdk','5122wrGmJa','2142042vfacCw','now','552048LywNAU','/config.json'];a187_0x5a02=function(){return _0x326b59;};return a187_0x5a02();}(function(_0x111898,_0x50ddd4){const _0x35e087=a187_0x5a3b,_0x2ce3f3=_0x111898();while(!![]){try{const _0x4359c9=-parseInt(_0x35e087(0x1f7))/0x1+-parseInt(_0x35e087(0x1ea))/0x2*(-parseInt(_0x35e087(0x1f0))/0x3)+parseInt(_0x35e087(0x1f2))/0x4*(parseInt(_0x35e087(0x1f5))/0x5)+parseInt(_0x35e087(0x1f3))/0x6+parseInt(_0x35e087(0x1f8))/0x7+parseInt(_0x35e087(0x1e8))/0x8+parseInt(_0x35e087(0x1ec))/0x9*(-parseInt(_0x35e087(0x1eb))/0xa);if(_0x4359c9===_0x50ddd4)break;else _0x2ce3f3['push'](_0x2ce3f3['shift']());}catch(_0x3458e1){_0x2ce3f3['push'](_0x2ce3f3['shift']());}}}(a187_0x5a02,0x3dc9a));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2c1304=a187_0x5a3b,_0x113ce2=getTemplateBaseUrl(),_0x5d8ece=[_0x113ce2+_0x2c1304(0x1e9),_0x113ce2+_0x2c1304(0x1ed)];for(const _0x1d4968 of _0x5d8ece){try{const _0x24e2db=await fetch(_0x1d4968,{'headers':{'Accept':'application/json'}});if(!_0x24e2db['ok'])continue;const _0x35beed=await _0x24e2db[_0x2c1304(0x1ee)]();if(!_0x35beed[_0x2c1304(0x1f1)]?.[_0x2c1304(0x1ef)]||!_0x35beed[_0x2c1304(0x1f6)]?.[_0x2c1304(0x1f4)]?.[_0x2c1304(0x1ef)])continue;return _0x35beed;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x5a3b(_0x3474bc,_0x347d06){_0x3474bc=_0x3474bc-0x1e7;const _0x5a02d9=a187_0x5a02();let _0x5a3b18=_0x5a02d9[_0x3474bc];return _0x5a3b18;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x289d25=a187_0x5a3b,_0x4574b1=Date[_0x289d25(0x1e7)]();if(hasCachedConfig){const _0x280534=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4574b1-cacheTime<_0x280534)return cachedConfig;}const _0x3a6470=await fetchCdnConfig();return cachedConfig=_0x3a6470,cacheTime=_0x4574b1,hasCachedConfig=!![],_0x3a6470;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x12ae42,_0x52e4f0){const _0x119892=a187_0x265e,_0xa2ee9a=_0x12ae42();while(!![]){try{const _0x486f26=parseInt(_0x119892(0xe9))/0x1*(parseInt(_0x119892(0xe3))/0x2)+parseInt(_0x119892(0xdb))/0x3+-parseInt(_0x119892(0xe2))/0x4*(parseInt(_0x119892(0xea))/0x5)+parseInt(_0x119892(0xdf))/0x6*(-parseInt(_0x119892(0xe1))/0x7)+parseInt(_0x119892(0xec))/0x8+parseInt(_0x119892(0xdd))/0x9*(parseInt(_0x119892(0xe0))/0xa)+parseInt(_0x119892(0xed))/0xb*(-parseInt(_0x119892(0xe4))/0xc);if(_0x486f26===_0x52e4f0)break;else _0xa2ee9a['push'](_0xa2ee9a['shift']());}catch(_0x36abd0){_0xa2ee9a['push'](_0xa2ee9a['shift']());}}}(a187_0x26cb,0xc30c7));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x11ab1f=a187_0x265e,_0x475209=getTemplateBaseUrl(),_0x184338=[_0x475209+_0x11ab1f(0xde),_0x475209+'/config/index.json'];for(const _0x16be84 of _0x184338){try{const _0x3b2753=await fetch(_0x16be84,{'headers':{'Accept':_0x11ab1f(0xdc)}});if(!_0x3b2753['ok'])continue;const _0x4ff662=await _0x3b2753[_0x11ab1f(0xe7)]();if(!_0x4ff662[_0x11ab1f(0xe8)]?.[_0x11ab1f(0xe5)]||!_0x4ff662[_0x11ab1f(0xeb)]?.[_0x11ab1f(0xe6)]?.[_0x11ab1f(0xe5)])continue;return _0x4ff662;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a187_0x265e(_0x52d3be,_0x4384f5){_0x52d3be=_0x52d3be-0xda;const _0x26cb89=a187_0x26cb();let _0x265e9e=_0x26cb89[_0x52d3be];return _0x265e9e;}function a187_0x26cb(){const _0x700624=['12107072ZlkTcc','27990303CcjjXN','now','181884uaHHme','application/json','252wQnILT','/config.json','336588LBiDdR','204640ZYWYQz','14ajkeUQ','164qjJpeG','203636hJNnVU','12UQEpUQ','stableVersion','node','json','cli','14CNQkVX','14240RSeKgx','sdk'];a187_0x26cb=function(){return _0x700624;};return a187_0x26cb();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x2a47bc=a187_0x265e,_0x4b3b25=Date[_0x2a47bc(0xda)]();if(hasCachedConfig){const _0x48ba53=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4b3b25-cacheTime<_0x48ba53)return cachedConfig;}const _0x570950=await fetchCdnConfig();return cachedConfig=_0x570950,cacheTime=_0x4b3b25,hasCachedConfig=!![],_0x570950;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a188_0x41eac6=a188_0x362d;function a188_0x1d68(){const _0x4e79e5=['\x1b[33m','node','parse','readFileSync','298704HQqnFS','1122350BMqZQZ','stableVersion','2273862uoObOt','1.2.0','some','\x20\x20\x20Upgrade\x20command:\x20','818106GlfXnr','3rrDVsJ','549tYJlhG','25ZRwEgB','64628lDwowp','latest','@lovrabet/sdk','all','165126BkQGGO','join','needsUpgrade','\x1b[0m','npm\x20install\x20','\x1b[1m','packageName','sdk','package.json','existsSync','dependencies','log','utf8','version','coerce','devDependencies','13176ZilgRo'];a188_0x1d68=function(){return _0x4e79e5;};return a188_0x1d68();}(function(_0x320561,_0x29777c){const _0x117753=a188_0x362d,_0x387538=_0x320561();while(!![]){try{const _0x337bb4=parseInt(_0x117753(0xc4))/0x1+parseInt(_0x117753(0xbc))/0x2*(-parseInt(_0x117753(0xbd))/0x3)+-parseInt(_0x117753(0xc0))/0x4*(-parseInt(_0x117753(0xbf))/0x5)+parseInt(_0x117753(0xb8))/0x6+parseInt(_0x117753(0xb5))/0x7+parseInt(_0x117753(0xb0))/0x8*(parseInt(_0x117753(0xbe))/0x9)+-parseInt(_0x117753(0xb6))/0xa;if(_0x337bb4===_0x29777c)break;else _0x387538['push'](_0x387538['shift']());}catch(_0x3767e4){_0x387538['push'](_0x387538['shift']());}}}(a188_0x1d68,0x3c3d3));import a188_0x1359e5 from'node:fs';import a188_0x2e7b0c from'node:path';import a188_0xb45d8d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x41eac6(0xb9);function isNonNumericVersion(_0x503b79){const _0x2894ca=a188_0x41eac6,_0x5414fc=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5414fc[_0x2894ca(0xba)](_0x21a048=>_0x21a048['test'](_0x503b79));}function getInstalledVersion(_0x2d7acc,_0x815054){const _0x9da197=a188_0x41eac6;try{const _0x39e485=a188_0x2e7b0c[_0x9da197(0xc5)](_0x2d7acc,'node_modules',_0x815054,_0x9da197(0xa8));if(a188_0x1359e5[_0x9da197(0xa9)](_0x39e485)){const _0x35b25c=JSON[_0x9da197(0xb3)](a188_0x1359e5[_0x9da197(0xb4)](_0x39e485,'utf-8'));return _0x35b25c['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xda4d98=a188_0x41eac6;try{const _0x2042fe=await getCdnConfig();return _0x2042fe?.[_0xda4d98(0xa7)]?.[_0xda4d98(0xb2)]?.[_0xda4d98(0xb7)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x300447=a188_0x41eac6;try{const _0x4b7bfa=await getCdnConfig();return _0x4b7bfa?.[_0x300447(0xa7)]?.['node']?.['packageName']||'@lovrabet/sdk';}catch{return _0x300447(0xc2);}}function a188_0x362d(_0x223e2c,_0x1ba4f6){_0x223e2c=_0x223e2c-0xa6;const _0x1d6839=a188_0x1d68();let _0x362d0d=_0x1d6839[_0x223e2c];return _0x362d0d;}export async function checkSdkVersion(_0x6dba8){const _0x74b559=a188_0x41eac6,_0x11c015=a188_0x2e7b0c['join'](_0x6dba8,'package.json'),[_0x558678,_0x23a5b5]=await Promise[_0x74b559(0xc3)]([getSdkStableVersion(),getSdkPackageName()]),_0x339978=_0x558678||FALLBACK_MIN_SDK_VERSION;if(!a188_0x1359e5['existsSync'](_0x11c015))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x339978,'packageName':_0x23a5b5,'stableVersion':_0x558678};try{const _0x3ede3f=JSON[_0x74b559(0xb3)](a188_0x1359e5[_0x74b559(0xb4)](_0x11c015,'utf8')),_0x55009c=_0x3ede3f[_0x74b559(0xaa)]||{},_0x4dee39=_0x3ede3f['devDependencies']||{},_0x121410=_0x55009c[_0x23a5b5]||_0x4dee39[_0x23a5b5];if(!_0x121410)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x339978,'packageName':_0x23a5b5,'stableVersion':_0x558678};let _0xf745f5=getInstalledVersion(_0x6dba8,_0x23a5b5);!_0xf745f5&&(_0xf745f5=_0x121410);if(isNonNumericVersion(_0x121410))return{'installed':!![],'version':_0xf745f5,'needsUpgrade':![],'minVersion':_0x339978,'packageName':_0x23a5b5,'stableVersion':_0x558678};const _0x1bfc23=a188_0xb45d8d['coerce'](_0xf745f5),_0x28cc02=a188_0xb45d8d[_0x74b559(0xae)](_0x339978),_0x4153ef=_0x1bfc23&&_0x28cc02?a188_0xb45d8d['lt'](_0x1bfc23,_0x28cc02):![];return{'installed':!![],'version':_0xf745f5,'needsUpgrade':_0x4153ef,'minVersion':_0x339978,'packageName':_0x23a5b5,'stableVersion':_0x558678};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x339978,'packageName':_0x23a5b5,'stableVersion':_0x558678};}}export function checkSdkVersionSync(_0x4f6c42){const _0x36650c=a188_0x41eac6,_0x4f1d50=a188_0x2e7b0c[_0x36650c(0xc5)](_0x4f6c42,'package.json'),_0x3cc723=_0x36650c(0xc2);if(!a188_0x1359e5[_0x36650c(0xa9)](_0x4f1d50))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3cc723,'stableVersion':null};try{const _0x5b905b=JSON[_0x36650c(0xb3)](a188_0x1359e5[_0x36650c(0xb4)](_0x4f1d50,_0x36650c(0xac))),_0x292cdc=_0x5b905b[_0x36650c(0xaa)]||{},_0x569e96=_0x5b905b[_0x36650c(0xaf)]||{},_0x4c5c6b=_0x292cdc[_0x3cc723]||_0x569e96[_0x3cc723];if(!_0x4c5c6b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3cc723,'stableVersion':null};let _0x329d23=getInstalledVersion(_0x4f6c42,_0x3cc723);!_0x329d23&&(_0x329d23=_0x4c5c6b);if(isNonNumericVersion(_0x4c5c6b))return{'installed':!![],'version':_0x329d23,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3cc723,'stableVersion':null};const _0x2c12b1=a188_0xb45d8d[_0x36650c(0xae)](_0x329d23),_0x5c3d1d=_0x2c12b1?a188_0xb45d8d['lt'](_0x2c12b1,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x329d23,'needsUpgrade':_0x5c3d1d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3cc723,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3cc723,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ee2bb){const _0xc0be10=a188_0x41eac6;if(!_0x2ee2bb[_0xc0be10(0xc6)])return;const _0x529323=_0xc0be10(0xb1),_0x20e2cb=_0xc0be10(0xc7),_0x35562c=_0xc0be10(0xc9),_0x34a46d=_0x2ee2bb[_0xc0be10(0xa6)]||_0xc0be10(0xc2),_0x54e90e=_0x2ee2bb[_0xc0be10(0xb7)]||_0x2ee2bb['minVersion'],_0x5cf633=_0xc0be10(0xc8)+_0x34a46d+'@'+(_0x54e90e||_0xc0be10(0xc1));console['log'](),console[_0xc0be10(0xab)](''+_0x529323+_0x35562c+'↪\x20SDK\x20update\x20available'+_0x20e2cb),console[_0xc0be10(0xab)](_0x529323+'\x20\x20\x20Current\x20version:\x20'+_0x34a46d+'@'+_0x2ee2bb[_0xc0be10(0xad)]+_0x20e2cb),console[_0xc0be10(0xab)](_0x529323+'\x20\x20\x20Stable\x20version:\x20'+_0x54e90e+_0x20e2cb),console[_0xc0be10(0xab)](_0x529323+_0xc0be10(0xbb)+_0x5cf633+_0x20e2cb),console[_0xc0be10(0xab)]();}
1
+ (function(_0x1aa28b,_0xcce9ae){const _0x8f802=a188_0x8e75,_0x17005c=_0x1aa28b();while(!![]){try{const _0x11458c=parseInt(_0x8f802(0x11d))/0x1*(-parseInt(_0x8f802(0x124))/0x2)+-parseInt(_0x8f802(0x120))/0x3+-parseInt(_0x8f802(0x137))/0x4+parseInt(_0x8f802(0x13c))/0x5*(-parseInt(_0x8f802(0x11c))/0x6)+parseInt(_0x8f802(0x123))/0x7+parseInt(_0x8f802(0x133))/0x8+parseInt(_0x8f802(0x122))/0x9;if(_0x11458c===_0xcce9ae)break;else _0x17005c['push'](_0x17005c['shift']());}catch(_0xa91012){_0x17005c['push'](_0x17005c['shift']());}}}(a188_0x4c78,0xd86d8));function a188_0x8e75(_0x16cfa0,_0x1c4938){_0x16cfa0=_0x16cfa0-0x11c;const _0x4c78d6=a188_0x4c78();let _0x8e75=_0x4c78d6[_0x16cfa0];return _0x8e75;}import a188_0x186f45 from'node:fs';import a188_0x549ba3 from'node:path';import a188_0x5610b1 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x311fc5){const _0x137bf5=a188_0x8e75,_0x5f4e02=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5f4e02['some'](_0x2013b4=>_0x2013b4[_0x137bf5(0x135)](_0x311fc5));}function getInstalledVersion(_0x4276a4,_0x21acd8){const _0x256b4f=a188_0x8e75;try{const _0x5d8094=a188_0x549ba3['join'](_0x4276a4,'node_modules',_0x21acd8,_0x256b4f(0x13a));if(a188_0x186f45[_0x256b4f(0x12d)](_0x5d8094)){const _0x14c0b2=JSON[_0x256b4f(0x136)](a188_0x186f45[_0x256b4f(0x13d)](_0x5d8094,_0x256b4f(0x130)));return _0x14c0b2['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x27ac39=a188_0x8e75;try{const _0x45725c=await getCdnConfig();return _0x45725c?.[_0x27ac39(0x11f)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x408a2e=a188_0x8e75;try{const _0x3237a4=await getCdnConfig();return _0x3237a4?.['sdk']?.[_0x408a2e(0x138)]?.[_0x408a2e(0x13e)]||_0x408a2e(0x129);}catch{return _0x408a2e(0x129);}}export async function checkSdkVersion(_0x51423d){const _0x4cd708=a188_0x8e75,_0x30e9de=a188_0x549ba3[_0x4cd708(0x126)](_0x51423d,'package.json'),[_0x1d55c2,_0x5a21c5]=await Promise[_0x4cd708(0x139)]([getSdkStableVersion(),getSdkPackageName()]),_0x4fe135=_0x1d55c2||FALLBACK_MIN_SDK_VERSION;if(!a188_0x186f45['existsSync'](_0x30e9de))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fe135,'packageName':_0x5a21c5,'stableVersion':_0x1d55c2};try{const _0x468076=JSON[_0x4cd708(0x136)](a188_0x186f45[_0x4cd708(0x13d)](_0x30e9de,'utf8')),_0x50af72=_0x468076[_0x4cd708(0x127)]||{},_0x52d5cb=_0x468076[_0x4cd708(0x121)]||{},_0x3e70ea=_0x50af72[_0x5a21c5]||_0x52d5cb[_0x5a21c5];if(!_0x3e70ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fe135,'packageName':_0x5a21c5,'stableVersion':_0x1d55c2};let _0x31364c=getInstalledVersion(_0x51423d,_0x5a21c5);!_0x31364c&&(_0x31364c=_0x3e70ea);if(isNonNumericVersion(_0x3e70ea))return{'installed':!![],'version':_0x31364c,'needsUpgrade':![],'minVersion':_0x4fe135,'packageName':_0x5a21c5,'stableVersion':_0x1d55c2};const _0x428259=a188_0x5610b1['coerce'](_0x31364c),_0x34c377=a188_0x5610b1[_0x4cd708(0x134)](_0x4fe135),_0x20ddb8=_0x428259&&_0x34c377?a188_0x5610b1['lt'](_0x428259,_0x34c377):![];return{'installed':!![],'version':_0x31364c,'needsUpgrade':_0x20ddb8,'minVersion':_0x4fe135,'packageName':_0x5a21c5,'stableVersion':_0x1d55c2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fe135,'packageName':_0x5a21c5,'stableVersion':_0x1d55c2};}}export function checkSdkVersionSync(_0x247dc2){const _0x5020f9=a188_0x8e75,_0x4d38f6=a188_0x549ba3[_0x5020f9(0x126)](_0x247dc2,_0x5020f9(0x13a)),_0x20256d='@lovrabet/sdk';if(!a188_0x186f45[_0x5020f9(0x12d)](_0x4d38f6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x20256d,'stableVersion':null};try{const _0xe5261d=JSON['parse'](a188_0x186f45[_0x5020f9(0x13d)](_0x4d38f6,'utf8')),_0x32498a=_0xe5261d[_0x5020f9(0x127)]||{},_0x32e777=_0xe5261d[_0x5020f9(0x121)]||{},_0x107040=_0x32498a[_0x20256d]||_0x32e777[_0x20256d];if(!_0x107040)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x20256d,'stableVersion':null};let _0x206bb2=getInstalledVersion(_0x247dc2,_0x20256d);!_0x206bb2&&(_0x206bb2=_0x107040);if(isNonNumericVersion(_0x107040))return{'installed':!![],'version':_0x206bb2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x20256d,'stableVersion':null};const _0x54af6c=a188_0x5610b1[_0x5020f9(0x134)](_0x206bb2),_0x24a23e=_0x54af6c?a188_0x5610b1['lt'](_0x54af6c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x206bb2,'needsUpgrade':_0x24a23e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x20256d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x20256d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xbf8bd1){const _0x143ca6=a188_0x8e75;if(!_0xbf8bd1[_0x143ca6(0x132)])return;const _0x44d572='\x1b[33m',_0x557033=_0x143ca6(0x128),_0x34b93e=_0x143ca6(0x12f),_0x1dff2b=_0xbf8bd1[_0x143ca6(0x13e)]||_0x143ca6(0x129),_0x4593fe=_0xbf8bd1[_0x143ca6(0x131)]||_0xbf8bd1[_0x143ca6(0x11e)],_0x34279a=_0x143ca6(0x13b)+_0x1dff2b+'@'+(_0x4593fe||_0x143ca6(0x12b));console[_0x143ca6(0x12a)](),console[_0x143ca6(0x12a)](''+_0x44d572+_0x34b93e+'↪\x20SDK\x20update\x20available'+_0x557033),console[_0x143ca6(0x12a)](_0x44d572+_0x143ca6(0x12c)+_0x1dff2b+'@'+_0xbf8bd1[_0x143ca6(0x12e)]+_0x557033),console[_0x143ca6(0x12a)](_0x44d572+_0x143ca6(0x125)+_0x4593fe+_0x557033),console[_0x143ca6(0x12a)](_0x44d572+'\x20\x20\x20Upgrade\x20command:\x20'+_0x34279a+_0x557033),console['log']();}function a188_0x4c78(){const _0x348275=['\x1b[0m','@lovrabet/sdk','log','latest','\x20\x20\x20Current\x20version:\x20','existsSync','version','\x1b[1m','utf-8','stableVersion','needsUpgrade','9115288QCAoeg','coerce','test','parse','5287148msCwtu','node','all','package.json','npm\x20install\x20','50ESpUNr','readFileSync','packageName','591990ZeQUhX','749XMcLEA','minVersion','sdk','2058228KzOvOH','devDependencies','24980850FsYNWV','7552678JxMCDB','2972IRLPlZ','\x20\x20\x20Stable\x20version:\x20','join','dependencies'];a188_0x4c78=function(){return _0x348275;};return a188_0x4c78();}
@@ -1 +1 @@
1
- (function(_0x2e5999,_0x402e27){const _0x51ed58=a189_0x3d4c,_0x487733=_0x2e5999();while(!![]){try{const _0x1ebe06=-parseInt(_0x51ed58(0x1c5))/0x1+parseInt(_0x51ed58(0x1ad))/0x2+-parseInt(_0x51ed58(0x1c6))/0x3+-parseInt(_0x51ed58(0x1b7))/0x4+parseInt(_0x51ed58(0x1c4))/0x5*(parseInt(_0x51ed58(0x1ba))/0x6)+parseInt(_0x51ed58(0x1ab))/0x7+-parseInt(_0x51ed58(0x1b9))/0x8*(-parseInt(_0x51ed58(0x1af))/0x9);if(_0x1ebe06===_0x402e27)break;else _0x487733['push'](_0x487733['shift']());}catch(_0x1fa76b){_0x487733['push'](_0x487733['shift']());}}}(a189_0x25b3,0x8aabc));function a189_0x25b3(){const _0x4a472e=['\x1b[33m','needsUpgrade','4331096NdmkHw','\x20\x20\x20Upgrade\x20command:\x20','16xcGKeP','2434326DztmCN','version','package.json','parse','currentVersion','filter','\x20\x20\x20','coerce','upgradeMessage','Current\x20version:\x20','5OwFFSU','576998GwgvXG','3046983dOqfHx','log','utf-8','minimumVersion','belowMinimum','\x1b[0m','\x1b[1m','\x20\x20\x20Minimum\x20required:\x20','join','1.0.0','6157130TxdTjy','\x20\x20\x20Stable\x20version:\x20','884488qUpKoV','minimumVersionMessage','6821433vhlARe','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','latest','stableVersion'];a189_0x25b3=function(){return _0x4a472e;};return a189_0x25b3();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x5bdcb7 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x43cf77){const _0x4400d8=a189_0x3d4c,_0x45b696=_0x43cf77['stableVersion']||_0x4400d8(0x1b3);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x45b696;}function a189_0x3d4c(_0x29b7cb,_0x20b4bf){_0x29b7cb=_0x29b7cb-0x1a9;const _0x25b3d0=a189_0x25b3();let _0x3d4c9e=_0x25b3d0[_0x29b7cb];return _0x3d4c9e;}function getCurrentCliVersion(){const _0x4ea1ac=a189_0x3d4c;try{const _0x4d465c=fileURLToPath(import.meta.url),_0x46f608=resolve(dirname(_0x4d465c),'../..'),_0xe7b0c8=resolve(_0x46f608,_0x4ea1ac(0x1bc)),_0x1ab184=JSON[_0x4ea1ac(0x1bd)](readFileSync(_0xe7b0c8,_0x4ea1ac(0x1c8)));return _0x1ab184[_0x4ea1ac(0x1bb)]||_0x4ea1ac(0x1aa);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5af6de=a189_0x3d4c,_0x2e07ce=getCurrentCliVersion(),_0xad7191=await getCliVersionPolicy(),_0x364bb2=_0xad7191?.[_0x5af6de(0x1b4)]||null,_0x1cc859=_0xad7191?.[_0x5af6de(0x1c9)]||null;let _0x327e63=![],_0x10a6fd=![];const _0x756cee=a189_0x5bdcb7[_0x5af6de(0x1c1)](_0x2e07ce);if(_0x756cee&&_0x364bb2)try{const _0x502322=a189_0x5bdcb7['coerce'](_0x364bb2);if(_0x502322)_0x327e63=a189_0x5bdcb7['lt'](_0x756cee,_0x502322);}catch{}if(_0x756cee&&_0x1cc859)try{const _0x332aee=a189_0x5bdcb7[_0x5af6de(0x1c1)](_0x1cc859);if(_0x332aee)_0x10a6fd=a189_0x5bdcb7['lt'](_0x756cee,_0x332aee);}catch{}return _0x10a6fd&&(_0x327e63=!![]),{'currentVersion':_0x2e07ce,'stableVersion':_0x364bb2,'minimumVersion':_0x1cc859,'needsUpgrade':_0x327e63,'belowMinimum':_0x10a6fd,'isPreRelease':![],'upgradeMessage':_0xad7191?.['upgradeMessage'],'minimumVersionMessage':_0xad7191?.[_0x5af6de(0x1ae)]};}export function printCliUpgradeWarning(_0x295fde){const _0x55fa12=a189_0x3d4c;if(!_0x295fde[_0x55fa12(0x1b6)]&&!_0x295fde[_0x55fa12(0x1ca)])return;const _0x3ceee5='\x1b[31m',_0x12bd46=_0x55fa12(0x1b5),_0xb6691e=_0x55fa12(0x1cb),_0x2bece5=_0x55fa12(0x1cc),_0x32a706=getCliUpgradeCommand(_0x295fde);console[_0x55fa12(0x1c7)](),_0x295fde[_0x55fa12(0x1ca)]?(console[_0x55fa12(0x1c7)](''+_0x3ceee5+_0x2bece5+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0xb6691e),console[_0x55fa12(0x1c7)](_0x3ceee5+_0x55fa12(0x1b1)+_0x295fde[_0x55fa12(0x1be)]+_0xb6691e),_0x295fde[_0x55fa12(0x1c9)]&&console[_0x55fa12(0x1c7)](_0x3ceee5+_0x55fa12(0x1cd)+_0x295fde[_0x55fa12(0x1c9)]+_0xb6691e),_0x295fde[_0x55fa12(0x1b4)]&&_0x295fde[_0x55fa12(0x1b4)]!==_0x295fde[_0x55fa12(0x1c9)]&&console[_0x55fa12(0x1c7)](_0x3ceee5+_0x55fa12(0x1b2)+_0x295fde[_0x55fa12(0x1b4)]+_0xb6691e),_0x295fde[_0x55fa12(0x1ae)]&&console['log'](_0x3ceee5+'\x20\x20\x20'+_0x295fde[_0x55fa12(0x1ae)]+_0xb6691e),console[_0x55fa12(0x1c7)](_0x3ceee5+_0x55fa12(0x1b8)+_0x32a706+_0xb6691e)):(console['log'](''+_0x12bd46+_0x2bece5+'↪\x20New\x20version\x20available'+_0xb6691e),console[_0x55fa12(0x1c7)](_0x12bd46+_0x55fa12(0x1b1)+_0x295fde[_0x55fa12(0x1be)]+_0xb6691e),console[_0x55fa12(0x1c7)](_0x12bd46+_0x55fa12(0x1ac)+_0x295fde[_0x55fa12(0x1b4)]+_0xb6691e),_0x295fde[_0x55fa12(0x1c2)]&&console[_0x55fa12(0x1c7)](_0x12bd46+_0x55fa12(0x1c0)+_0x295fde[_0x55fa12(0x1c2)]+_0xb6691e),console[_0x55fa12(0x1c7)](_0x12bd46+_0x55fa12(0x1b8)+_0x32a706+_0xb6691e)),console[_0x55fa12(0x1c7)]();}export function assertCliVersionSupported(_0x3c8864){const _0x543ec8=a189_0x3d4c;if(!_0x3c8864['belowMinimum'])return;const _0x27f7eb=[_0x3c8864[_0x543ec8(0x1ae)],_0x543ec8(0x1c3)+_0x3c8864[_0x543ec8(0x1be)],_0x3c8864[_0x543ec8(0x1c9)]?'Minimum\x20required:\x20'+_0x3c8864['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x3c8864)][_0x543ec8(0x1bf)](Boolean)[_0x543ec8(0x1a9)]('\x0a');throw CliErrors[_0x543ec8(0x1b0)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x27f7eb);}
1
+ (function(_0x459afc,_0x56dd8c){const _0x9232=a189_0xf972,_0x1bdba0=_0x459afc();while(!![]){try{const _0x518007=parseInt(_0x9232(0xc4))/0x1+-parseInt(_0x9232(0xb3))/0x2*(-parseInt(_0x9232(0xc6))/0x3)+-parseInt(_0x9232(0xc0))/0x4*(parseInt(_0x9232(0xb9))/0x5)+parseInt(_0x9232(0xb5))/0x6+parseInt(_0x9232(0xca))/0x7+parseInt(_0x9232(0xdb))/0x8*(parseInt(_0x9232(0xcb))/0x9)+parseInt(_0x9232(0xba))/0xa*(-parseInt(_0x9232(0xc5))/0xb);if(_0x518007===_0x56dd8c)break;else _0x1bdba0['push'](_0x1bdba0['shift']());}catch(_0x3c6c87){_0x1bdba0['push'](_0x1bdba0['shift']());}}}(a189_0xa6b3,0x6fa49));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x56b625 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x15172f){const _0x287d82=a189_0xf972,_0x2eacd2=_0x15172f['stableVersion']||_0x287d82(0xce);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2eacd2;}function getCurrentCliVersion(){const _0x4c8431=a189_0xf972;try{const _0x285fb0=fileURLToPath(import.meta.url),_0x155161=resolve(dirname(_0x285fb0),_0x4c8431(0xbe)),_0x43639b=resolve(_0x155161,_0x4c8431(0xda)),_0x23eded=JSON[_0x4c8431(0xd6)](readFileSync(_0x43639b,'utf-8'));return _0x23eded['version']||_0x4c8431(0xd4);}catch{return _0x4c8431(0xd4);}}export async function checkCliVersion(){const _0x54af1a=a189_0xf972,_0x2de4f9=getCurrentCliVersion(),_0x45bacc=await getCliVersionPolicy(),_0x10a728=_0x45bacc?.['stableVersion']||null,_0x521757=_0x45bacc?.[_0x54af1a(0xd3)]||null;let _0x550f42=![],_0x38395c=![];const _0x597659=a189_0x56b625['coerce'](_0x2de4f9);if(_0x597659&&_0x10a728)try{const _0x5832f9=a189_0x56b625[_0x54af1a(0xc8)](_0x10a728);if(_0x5832f9)_0x550f42=a189_0x56b625['lt'](_0x597659,_0x5832f9);}catch{}if(_0x597659&&_0x521757)try{const _0x5dcc23=a189_0x56b625[_0x54af1a(0xc8)](_0x521757);if(_0x5dcc23)_0x38395c=a189_0x56b625['lt'](_0x597659,_0x5dcc23);}catch{}return _0x38395c&&(_0x550f42=!![]),{'currentVersion':_0x2de4f9,'stableVersion':_0x10a728,'minimumVersion':_0x521757,'needsUpgrade':_0x550f42,'belowMinimum':_0x38395c,'isPreRelease':![],'upgradeMessage':_0x45bacc?.[_0x54af1a(0xd0)],'minimumVersionMessage':_0x45bacc?.[_0x54af1a(0xc3)]};}function a189_0xf972(_0x1b2ee2,_0x566c57){_0x1b2ee2=_0x1b2ee2-0xb3;const _0xa6b3ae=a189_0xa6b3();let _0xf97263=_0xa6b3ae[_0x1b2ee2];return _0xf97263;}function a189_0xa6b3(){const _0x46abbd=['minimumVersion','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','parse','join','validation','\x20\x20\x20','package.json','141200iUCXGA','255194nczvcQ','↪\x20New\x20version\x20available','1316862pCSkLO','\x20\x20\x20Minimum\x20supported:\x20','Upgrade\x20command:\x20','stableVersion','1666455vOKPJR','1332620oaNZTc','needsUpgrade','\x1b[33m','filter','../..','\x1b[1m','8zHKBTB','Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','minimumVersionMessage','200593XxsRKZ','11oDsfqf','9mTyxZf','currentVersion','coerce','Current\x20version:\x20','461804ptZETw','198iGcEnY','\x1b[31m','belowMinimum','latest','↪\x20Critical\x20CLI\x20upgrade\x20required','upgradeMessage','\x1b[0m','log'];a189_0xa6b3=function(){return _0x46abbd;};return a189_0xa6b3();}export function printCliUpgradeWarning(_0x2f405b){const _0x2ef7c8=a189_0xf972;if(!_0x2f405b[_0x2ef7c8(0xbb)]&&!_0x2f405b['belowMinimum'])return;const _0x40f2dc=_0x2ef7c8(0xcc),_0x6eb150=_0x2ef7c8(0xbc),_0x19116a=_0x2ef7c8(0xd1),_0x268ffc=_0x2ef7c8(0xbf),_0x41e57b=getCliUpgradeCommand(_0x2f405b);console[_0x2ef7c8(0xd2)](),_0x2f405b[_0x2ef7c8(0xcd)]?(console[_0x2ef7c8(0xd2)](''+_0x40f2dc+_0x268ffc+_0x2ef7c8(0xcf)+_0x19116a),console['log'](_0x40f2dc+_0x2ef7c8(0xd5)+_0x2f405b[_0x2ef7c8(0xc7)]+_0x19116a),_0x2f405b[_0x2ef7c8(0xd3)]&&console['log'](_0x40f2dc+_0x2ef7c8(0xb6)+_0x2f405b['minimumVersion']+_0x19116a),_0x2f405b['stableVersion']&&_0x2f405b[_0x2ef7c8(0xb8)]!==_0x2f405b[_0x2ef7c8(0xd3)]&&console[_0x2ef7c8(0xd2)](_0x40f2dc+'\x20\x20\x20Recommended\x20stable:\x20'+_0x2f405b[_0x2ef7c8(0xb8)]+_0x19116a),_0x2f405b[_0x2ef7c8(0xc3)]&&console[_0x2ef7c8(0xd2)](_0x40f2dc+_0x2ef7c8(0xd9)+_0x2f405b[_0x2ef7c8(0xc3)]+_0x19116a),console[_0x2ef7c8(0xd2)](_0x40f2dc+_0x2ef7c8(0xc2)+_0x41e57b+_0x19116a)):(console[_0x2ef7c8(0xd2)](''+_0x6eb150+_0x268ffc+_0x2ef7c8(0xb4)+_0x19116a),console[_0x2ef7c8(0xd2)](_0x6eb150+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2f405b['currentVersion']+_0x19116a),console[_0x2ef7c8(0xd2)](_0x6eb150+'\x20\x20\x20Stable\x20version:\x20'+_0x2f405b['stableVersion']+_0x19116a),_0x2f405b[_0x2ef7c8(0xd0)]&&console[_0x2ef7c8(0xd2)](_0x6eb150+_0x2ef7c8(0xd9)+_0x2f405b[_0x2ef7c8(0xd0)]+_0x19116a),console['log'](_0x6eb150+'\x20\x20\x20Upgrade\x20command:\x20'+_0x41e57b+_0x19116a)),console[_0x2ef7c8(0xd2)]();}export function assertCliVersionSupported(_0x6df1eb){const _0x3da440=a189_0xf972;if(!_0x6df1eb[_0x3da440(0xcd)])return;const _0x5d46b8=[_0x6df1eb[_0x3da440(0xc3)],_0x3da440(0xc9)+_0x6df1eb[_0x3da440(0xc7)],_0x6df1eb[_0x3da440(0xd3)]?_0x3da440(0xc1)+_0x6df1eb[_0x3da440(0xd3)]:null,_0x3da440(0xb7)+getCliUpgradeCommand(_0x6df1eb)][_0x3da440(0xbd)](Boolean)[_0x3da440(0xd7)]('\x0a');throw CliErrors[_0x3da440(0xd8)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x5d46b8);}
@@ -1 +1 @@
1
- (function(_0xb46a68,_0x91bdc1){const _0x31cc43=a190_0x565c,_0x3e27c6=_0xb46a68();while(!![]){try{const _0x52271f=-parseInt(_0x31cc43(0x89))/0x1*(-parseInt(_0x31cc43(0x97))/0x2)+parseInt(_0x31cc43(0x93))/0x3*(parseInt(_0x31cc43(0x8f))/0x4)+-parseInt(_0x31cc43(0x85))/0x5*(-parseInt(_0x31cc43(0x84))/0x6)+parseInt(_0x31cc43(0x90))/0x7*(parseInt(_0x31cc43(0x81))/0x8)+parseInt(_0x31cc43(0x82))/0x9*(-parseInt(_0x31cc43(0x83))/0xa)+parseInt(_0x31cc43(0x92))/0xb+-parseInt(_0x31cc43(0x8e))/0xc;if(_0x52271f===_0x91bdc1)break;else _0x3e27c6['push'](_0x3e27c6['shift']());}catch(_0x139844){_0x3e27c6['push'](_0x3e27c6['shift']());}}}(a190_0x4d2b,0x1fbc2));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function a190_0x565c(_0x163e4e,_0x471ae0){_0x163e4e=_0x163e4e-0x7f;const _0x4d2bcb=a190_0x4d2b();let _0x565ccb=_0x4d2bcb[_0x163e4e];return _0x565ccb;}function pickString(_0x536d14){const _0x509eb1=a190_0x565c;return typeof _0x536d14===_0x509eb1(0x8d)&&_0x536d14['trim']()[_0x509eb1(0x98)]>0x0?_0x536d14[_0x509eb1(0x80)]():null;}function a190_0x4d2b(){const _0x24663e=['1556190uPDYyP','18HjuQbI','369020zExvdN','upgradeMessage','minimumVersionMessage','now','9040iiGBTA','abort','json','object','string','5487876avvjUA','8lqzQFY','651539yZcyif','cli','1937111xBrTMW','364947JnBsuN','stableVersion','application/json','minimumVersion','2piVkfi','length','recommendedVersion','trim','8GZHSew','9qkwIlq'];a190_0x4d2b=function(){return _0x24663e;};return a190_0x4d2b();}function normalizeCliVersionPolicy(_0x469aac){const _0x1ee4f4=a190_0x565c;if(!_0x469aac||typeof _0x469aac!==_0x1ee4f4(0x8c))return null;const _0x590405=_0x469aac,_0x4a5130=_0x590405['cli']&&typeof _0x590405[_0x1ee4f4(0x91)]==='object'?_0x590405[_0x1ee4f4(0x91)]:_0x590405,_0x27585d=pickString(_0x4a5130[_0x1ee4f4(0x94)])||pickString(_0x4a5130['latestVersion'])||pickString(_0x4a5130[_0x1ee4f4(0x7f)]),_0x397821=pickString(_0x4a5130[_0x1ee4f4(0x96)])||pickString(_0x4a5130['minVersion']);if(!_0x27585d&&!_0x397821)return null;return{'stableVersion':_0x27585d,'minimumVersion':_0x397821,'upgradeMessage':pickString(_0x4a5130[_0x1ee4f4(0x86)])||undefined,'minimumVersionMessage':pickString(_0x4a5130[_0x1ee4f4(0x87)])||undefined};}export async function fetchCliVersionPolicy(){const _0x2290a2=a190_0x565c,_0x1f3f65=new AbortController(),_0x48ae56=setTimeout(()=>_0x1f3f65[_0x2290a2(0x8a)](),FETCH_TIMEOUT_MS);try{const _0x1964fe=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2290a2(0x95)},'signal':_0x1f3f65['signal']});if(!_0x1964fe['ok'])return null;const _0x5e7712=await _0x1964fe[_0x2290a2(0x8b)]();return normalizeCliVersionPolicy(_0x5e7712);}catch{return null;}finally{clearTimeout(_0x48ae56);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5aa35a=a190_0x565c,_0x1b0017=Date[_0x5aa35a(0x88)]();if(hasCachedPolicy){const _0xa87e39=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1b0017-cacheTime<_0xa87e39)return cachedPolicy;}const _0x10ee00=await fetchCliVersionPolicy();return cachedPolicy=_0x10ee00,cacheTime=_0x1b0017,hasCachedPolicy=!![],_0x10ee00;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a190_0x3016(){const _0x1e2506=['1624070YbudDi','minimumVersion','minimumVersionMessage','164wdSNHQ','string','cli','1931GWZBbS','2889550HUyAxB','recommendedVersion','upgradeMessage','stableVersion','json','1305230wblWAH','1656296mnooeI','6uVYmsE','now','852080gvBGgQ','3FHWOtZ','latestVersion','7068915kIaAPi','abort','object'];a190_0x3016=function(){return _0x1e2506;};return a190_0x3016();}(function(_0x199682,_0x6c2963){const _0x340f9d=a190_0xd8cd,_0x2453f6=_0x199682();while(!![]){try{const _0x1177c1=parseInt(_0x340f9d(0x6d))/0x1*(parseInt(_0x340f9d(0x80))/0x2)+parseInt(_0x340f9d(0x78))/0x3*(-parseInt(_0x340f9d(0x74))/0x4)+parseInt(_0x340f9d(0x6e))/0x5*(-parseInt(_0x340f9d(0x75))/0x6)+parseInt(_0x340f9d(0x7d))/0x7+parseInt(_0x340f9d(0x77))/0x8+parseInt(_0x340f9d(0x7a))/0x9+parseInt(_0x340f9d(0x73))/0xa;if(_0x1177c1===_0x6c2963)break;else _0x2453f6['push'](_0x2453f6['shift']());}catch(_0x10a9ad){_0x2453f6['push'](_0x2453f6['shift']());}}}(a190_0x3016,0x66be4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x193db1){const _0xb0c0ee=a190_0xd8cd;return typeof _0x193db1===_0xb0c0ee(0x81)&&_0x193db1['trim']()['length']>0x0?_0x193db1['trim']():null;}function normalizeCliVersionPolicy(_0x818e0c){const _0x460544=a190_0xd8cd;if(!_0x818e0c||typeof _0x818e0c!==_0x460544(0x7c))return null;const _0x358819=_0x818e0c,_0x2bca63=_0x358819['cli']&&typeof _0x358819['cli']===_0x460544(0x7c)?_0x358819[_0x460544(0x82)]:_0x358819,_0x21521b=pickString(_0x2bca63[_0x460544(0x71)])||pickString(_0x2bca63[_0x460544(0x79)])||pickString(_0x2bca63[_0x460544(0x6f)]),_0x43bfbb=pickString(_0x2bca63[_0x460544(0x7e)])||pickString(_0x2bca63['minVersion']);if(!_0x21521b&&!_0x43bfbb)return null;return{'stableVersion':_0x21521b,'minimumVersion':_0x43bfbb,'upgradeMessage':pickString(_0x2bca63[_0x460544(0x70)])||undefined,'minimumVersionMessage':pickString(_0x2bca63[_0x460544(0x7f)])||undefined};}function a190_0xd8cd(_0x4086af,_0x1807a0){_0x4086af=_0x4086af-0x6d;const _0x3016e8=a190_0x3016();let _0xd8cd09=_0x3016e8[_0x4086af];return _0xd8cd09;}export async function fetchCliVersionPolicy(){const _0x1bdceb=a190_0xd8cd,_0x4595dd=new AbortController(),_0x35d7a9=setTimeout(()=>_0x4595dd[_0x1bdceb(0x7b)](),FETCH_TIMEOUT_MS);try{const _0x1ff31f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x4595dd['signal']});if(!_0x1ff31f['ok'])return null;const _0x10c6b3=await _0x1ff31f[_0x1bdceb(0x72)]();return normalizeCliVersionPolicy(_0x10c6b3);}catch{return null;}finally{clearTimeout(_0x35d7a9);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5d949d=a190_0xd8cd,_0x14e56a=Date[_0x5d949d(0x76)]();if(hasCachedPolicy){const _0x388d26=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14e56a-cacheTime<_0x388d26)return cachedPolicy;}const _0x3faa07=await fetchCliVersionPolicy();return cachedPolicy=_0x3faa07,cacheTime=_0x14e56a,hasCachedPolicy=!![],_0x3faa07;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x276f2e,_0x53845c){const _0x398b25=a191_0x3ef1,_0x2c782c=_0x276f2e();while(!![]){try{const _0x5b370c=parseInt(_0x398b25(0x70))/0x1*(parseInt(_0x398b25(0x71))/0x2)+parseInt(_0x398b25(0x6f))/0x3*(-parseInt(_0x398b25(0x74))/0x4)+parseInt(_0x398b25(0x79))/0x5*(-parseInt(_0x398b25(0x72))/0x6)+-parseInt(_0x398b25(0x6d))/0x7*(-parseInt(_0x398b25(0x6e))/0x8)+-parseInt(_0x398b25(0x73))/0x9*(parseInt(_0x398b25(0x6c))/0xa)+-parseInt(_0x398b25(0x75))/0xb*(parseInt(_0x398b25(0x77))/0xc)+parseInt(_0x398b25(0x78))/0xd;if(_0x5b370c===_0x53845c)break;else _0x2c782c['push'](_0x2c782c['shift']());}catch(_0x22bfe7){_0x2c782c['push'](_0x2c782c['shift']());}}}(a191_0xd2b4,0xcedd1));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x47575b,getMultiAppConfigs as a191_0x3324af,getTemplateBaseUrl as a191_0x4ff115}from'../context.js';function a191_0xd2b4(){const _0x298ae1=['5PvqcCt','85908LrNWOg','30dqzWqb','27MlHtkW','1772KmDDUr','66yAHAag','string','1840524FBGFiR','68482375kLqzRy','1409495irqedb','env','3972460aDENyv','3920YhBaws','7624xLEWxd','11157nDjYuV'];a191_0xd2b4=function(){return _0x298ae1;};return a191_0xd2b4();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x343f82){const _0x57d6ad=a191_0x3ef1,_0x1e6e9d=readRawConfig(_0x343f82);return _0x1e6e9d[_0x57d6ad(0x6b)]&&typeof _0x1e6e9d[_0x57d6ad(0x6b)]===_0x57d6ad(0x76)&&initEnv(_0x1e6e9d[_0x57d6ad(0x6b)]),_0x1e6e9d;}export function getConfigAppCode(){return a191_0x47575b();}function a191_0x3ef1(_0x3152e1,_0x232662){_0x3152e1=_0x3152e1-0x6b;const _0xd2b4b0=a191_0xd2b4();let _0x3ef1ba=_0xd2b4b0[_0x3152e1];return _0x3ef1ba;}export function getMultiAppConfigs(_0x2e58d4='project'){return a191_0x3324af(_0x2e58d4);}export function getTemplateBaseUrl(){return a191_0x4ff115();}
1
+ const a191_0x41a8b1=a191_0x4d61;(function(_0x130729,_0x1eaa82){const _0x1dd327=a191_0x4d61,_0x36d98b=_0x130729();while(!![]){try{const _0xbe3bb8=-parseInt(_0x1dd327(0xeb))/0x1*(-parseInt(_0x1dd327(0xf0))/0x2)+parseInt(_0x1dd327(0xf4))/0x3+parseInt(_0x1dd327(0xfa))/0x4*(-parseInt(_0x1dd327(0xed))/0x5)+parseInt(_0x1dd327(0xf8))/0x6*(parseInt(_0x1dd327(0xf9))/0x7)+parseInt(_0x1dd327(0xf1))/0x8*(parseInt(_0x1dd327(0xf2))/0x9)+-parseInt(_0x1dd327(0xef))/0xa*(parseInt(_0x1dd327(0xf5))/0xb)+parseInt(_0x1dd327(0xf6))/0xc*(parseInt(_0x1dd327(0xec))/0xd);if(_0xbe3bb8===_0x1eaa82)break;else _0x36d98b['push'](_0x36d98b['shift']());}catch(_0x52609f){_0x36d98b['push'](_0x36d98b['shift']());}}}(a191_0x5477,0x97d4d));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x1f6ce5,getMultiAppConfigs as a191_0x3a07f1,getTemplateBaseUrl as a191_0x25fbb5}from'../context.js';function a191_0x4d61(_0x3e8a1a,_0x260c5c){_0x3e8a1a=_0x3e8a1a-0xeb;const _0x5477e2=a191_0x5477();let _0x4d6174=_0x5477e2[_0x3e8a1a];return _0x4d6174;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3be222){const _0xa4df09=a191_0x4d61,_0x332588=readRawConfig(_0x3be222);return _0x332588[_0xa4df09(0xf3)]&&typeof _0x332588[_0xa4df09(0xf3)]===_0xa4df09(0xf7)&&initEnv(_0x332588[_0xa4df09(0xf3)]),_0x332588;}function a191_0x5477(){const _0xa90131=['10128YdCxlH','1251fRYmEf','env','118983WRNqOD','30987XVKeQv','9264rqMRWL','string','1038QlsXjy','9744tKadJW','68SHRNyD','24263ZnmfUj','16991EMyoSt','200345INurIg','project','1610PrtPSC','24bQjooN'];a191_0x5477=function(){return _0xa90131;};return a191_0x5477();}export function getConfigAppCode(){return a191_0x1f6ce5();}export function getMultiAppConfigs(_0x3990bc=a191_0x41a8b1(0xee)){return a191_0x3a07f1(_0x3990bc);}export function getTemplateBaseUrl(){return a191_0x25fbb5();}
@@ -1 +1 @@
1
- function a192_0x28c5(){const _0x25e9a4=['1318009GbznJA','49164290RJUoXJ','3HhAcXw','874sVEnwf','3266596WrHyaC','复制目录时出错:','readdirSync','64LBbXgY','error','1480188yMhMIK','join','1274930ACPTuK','4049unNzLI','13705533QLnEMX','copyFileSync'];a192_0x28c5=function(){return _0x25e9a4;};return a192_0x28c5();}function a192_0x24dd(_0x33f284,_0x1dfdf9){_0x33f284=_0x33f284-0x131;const _0x28c5e3=a192_0x28c5();let _0x24ddd2=_0x28c5e3[_0x33f284];return _0x24ddd2;}(function(_0x4935ae,_0x6f625c){const _0x2aae50=a192_0x24dd,_0x3367ba=_0x4935ae();while(!![]){try{const _0x109eb0=-parseInt(_0x2aae50(0x139))/0x1*(parseInt(_0x2aae50(0x13f))/0x2)+-parseInt(_0x2aae50(0x13e))/0x3*(-parseInt(_0x2aae50(0x131))/0x4)+parseInt(_0x2aae50(0x138))/0x5+-parseInt(_0x2aae50(0x136))/0x6+-parseInt(_0x2aae50(0x13c))/0x7*(parseInt(_0x2aae50(0x134))/0x8)+-parseInt(_0x2aae50(0x13a))/0x9+parseInt(_0x2aae50(0x13d))/0xa;if(_0x109eb0===_0x6f625c)break;else _0x3367ba['push'](_0x3367ba['shift']());}catch(_0x3765ed){_0x3367ba['push'](_0x3367ba['shift']());}}}(a192_0x28c5,0xe62e4));import a192_0x45e09c from'node:path';import a192_0x1413fa from'node:fs';export async function copyDirectory(_0x1e3f7f,_0x20e8c9){const _0x25fe69=a192_0x24dd;try{const _0x32112f=a192_0x1413fa[_0x25fe69(0x133)](_0x1e3f7f,{'withFileTypes':!![]});a192_0x1413fa['mkdirSync'](_0x20e8c9,{'recursive':!![]});for(const _0x3fe637 of _0x32112f){const _0x2a958a=a192_0x45e09c['join'](_0x1e3f7f,_0x3fe637['name']),_0x2e1a2e=a192_0x45e09c[_0x25fe69(0x137)](_0x20e8c9,_0x3fe637['name']);_0x3fe637['isDirectory']()?await copyDirectory(_0x2a958a,_0x2e1a2e):a192_0x1413fa[_0x25fe69(0x13b)](_0x2a958a,_0x2e1a2e);}}catch(_0x2a978d){console[_0x25fe69(0x135)](_0x25fe69(0x132),_0x2a978d);}}
1
+ (function(_0x3d268a,_0x236825){const _0x5afd6d=a192_0x53c5,_0x55ac8e=_0x3d268a();while(!![]){try{const _0xa7673a=-parseInt(_0x5afd6d(0x80))/0x1+parseInt(_0x5afd6d(0x76))/0x2*(parseInt(_0x5afd6d(0x7e))/0x3)+parseInt(_0x5afd6d(0x7d))/0x4*(parseInt(_0x5afd6d(0x77))/0x5)+parseInt(_0x5afd6d(0x79))/0x6+-parseInt(_0x5afd6d(0x71))/0x7*(-parseInt(_0x5afd6d(0x78))/0x8)+-parseInt(_0x5afd6d(0x7c))/0x9+parseInt(_0x5afd6d(0x72))/0xa;if(_0xa7673a===_0x236825)break;else _0x55ac8e['push'](_0x55ac8e['shift']());}catch(_0x288b30){_0x55ac8e['push'](_0x55ac8e['shift']());}}}(a192_0x55fc,0x244ca));function a192_0x53c5(_0x558755,_0x4419a9){_0x558755=_0x558755-0x70;const _0x55fcd6=a192_0x55fc();let _0x53c546=_0x55fcd6[_0x558755];return _0x53c546;}import a192_0x30d060 from'node:path';import a192_0x489a6a from'node:fs';function a192_0x55fc(){const _0x5948c2=['join','6356cqrLVN','1274100XTZqtC','复制目录时出错:','error','copyFileSync','4wvjYBh','392915JMpIGq','128qBsnPT','1632612RhSYoS','readdirSync','mkdirSync','2084490GWJBFU','4mRVmoc','242169IMZxUD','name','273777gjrdLb'];a192_0x55fc=function(){return _0x5948c2;};return a192_0x55fc();}export async function copyDirectory(_0xfe01a1,_0x20bf41){const _0x2b3cde=a192_0x53c5;try{const _0x49585a=a192_0x489a6a[_0x2b3cde(0x7a)](_0xfe01a1,{'withFileTypes':!![]});a192_0x489a6a[_0x2b3cde(0x7b)](_0x20bf41,{'recursive':!![]});for(const _0x462700 of _0x49585a){const _0x11f16e=a192_0x30d060[_0x2b3cde(0x70)](_0xfe01a1,_0x462700[_0x2b3cde(0x7f)]),_0x305fa2=a192_0x30d060[_0x2b3cde(0x70)](_0x20bf41,_0x462700[_0x2b3cde(0x7f)]);_0x462700['isDirectory']()?await copyDirectory(_0x11f16e,_0x305fa2):a192_0x489a6a[_0x2b3cde(0x75)](_0x11f16e,_0x305fa2);}}catch(_0x1a6655){console[_0x2b3cde(0x74)](_0x2b3cde(0x73),_0x1a6655);}}
@@ -1 +1 @@
1
- (function(_0x27b76d,_0x40cad7){const _0x189e1c=a193_0x404a,_0x4e8795=_0x27b76d();while(!![]){try{const _0x4bb008=-parseInt(_0x189e1c(0x185))/0x1+parseInt(_0x189e1c(0x17b))/0x2*(-parseInt(_0x189e1c(0x179))/0x3)+parseInt(_0x189e1c(0x180))/0x4+-parseInt(_0x189e1c(0x186))/0x5*(-parseInt(_0x189e1c(0x183))/0x6)+-parseInt(_0x189e1c(0x187))/0x7*(parseInt(_0x189e1c(0x17e))/0x8)+parseInt(_0x189e1c(0x17d))/0x9*(parseInt(_0x189e1c(0x17c))/0xa)+parseInt(_0x189e1c(0x184))/0xb*(-parseInt(_0x189e1c(0x182))/0xc);if(_0x4bb008===_0x40cad7)break;else _0x4e8795['push'](_0x4e8795['shift']());}catch(_0x30a679){_0x4e8795['push'](_0x4e8795['shift']());}}}(a193_0x6c88,0x54eb6));function a193_0x6c88(){const _0x7a4d2a=['548540tPzhYh','14nyANia','isFinite','696951TrBktB','number','2QXoVNL','10twGRgz','5375610EUmgdD','668584vdVUSI','object','1056748mgqVsn','trim','408AOGbPP','12XrnLFn','4917hSAfip','318402seaahA'];a193_0x6c88=function(){return _0x7a4d2a;};return a193_0x6c88();}function a193_0x404a(_0xe6e1cf,_0x4ca211){_0xe6e1cf=_0xe6e1cf-0x179;const _0x6c886c=a193_0x6c88();let _0x404a52=_0x6c886c[_0xe6e1cf];return _0x404a52;}function toFiniteNumber(_0x180f34){const _0xc7aa0d=a193_0x404a;if(typeof _0x180f34===_0xc7aa0d(0x17a)&&Number[_0xc7aa0d(0x188)](_0x180f34))return _0x180f34;if(typeof _0x180f34==='string'){const _0x1cc4a4=_0x180f34[_0xc7aa0d(0x181)]();if(!_0x1cc4a4)return undefined;const _0x215b93=Number(_0x1cc4a4);if(Number[_0xc7aa0d(0x188)](_0x215b93))return _0x215b93;}return undefined;}export function normalizeEntityWithIdResponse(_0x5f026d){const _0x37f99f=a193_0x404a,_0x2a4a8a=toFiniteNumber(_0x5f026d);if(_0x2a4a8a!==undefined)return{'id':_0x2a4a8a,'entity':{'id':_0x2a4a8a}};if(!_0x5f026d||typeof _0x5f026d!==_0x37f99f(0x17f))return{'id':undefined,'entity':{}};const _0x220fa9={..._0x5f026d},_0x5bd057=toFiniteNumber(_0x220fa9['id']);return _0x5bd057!==undefined&&(_0x220fa9['id']=_0x5bd057),{'id':_0x5bd057,'entity':_0x220fa9};}
1
+ function a193_0x3e11(){const _0x3fc34f=['1851120QBGahe','string','3220715VYaRGf','isFinite','2249912aNnhVN','2728386XSLUiI','1qrQMnl','object','3353872SXrBao','16320OprSkX','1122514EiVmXT'];a193_0x3e11=function(){return _0x3fc34f;};return a193_0x3e11();}function a193_0x4b01(_0x56162a,_0x172ed8){_0x56162a=_0x56162a-0xaa;const _0x3e11f1=a193_0x3e11();let _0x4b01d3=_0x3e11f1[_0x56162a];return _0x4b01d3;}(function(_0x39f295,_0x2ad508){const _0x8fbc09=a193_0x4b01,_0x326905=_0x39f295();while(!![]){try{const _0x30ad61=parseInt(_0x8fbc09(0xab))/0x1*(parseInt(_0x8fbc09(0xaf))/0x2)+-parseInt(_0x8fbc09(0xaa))/0x3+parseInt(_0x8fbc09(0xad))/0x4+parseInt(_0x8fbc09(0xb2))/0x5+parseInt(_0x8fbc09(0xae))/0x6+-parseInt(_0x8fbc09(0xb4))/0x7+-parseInt(_0x8fbc09(0xb0))/0x8;if(_0x30ad61===_0x2ad508)break;else _0x326905['push'](_0x326905['shift']());}catch(_0x5854dd){_0x326905['push'](_0x326905['shift']());}}}(a193_0x3e11,0x8ea80));function toFiniteNumber(_0x5832ca){const _0x124492=a193_0x4b01;if(typeof _0x5832ca==='number'&&Number[_0x124492(0xb3)](_0x5832ca))return _0x5832ca;if(typeof _0x5832ca===_0x124492(0xb1)){const _0x2d9a06=_0x5832ca['trim']();if(!_0x2d9a06)return undefined;const _0x1cd0ca=Number(_0x2d9a06);if(Number[_0x124492(0xb3)](_0x1cd0ca))return _0x1cd0ca;}return undefined;}export function normalizeEntityWithIdResponse(_0x42dde2){const _0x3fa2c7=a193_0x4b01,_0x35fb19=toFiniteNumber(_0x42dde2);if(_0x35fb19!==undefined)return{'id':_0x35fb19,'entity':{'id':_0x35fb19}};if(!_0x42dde2||typeof _0x42dde2!==_0x3fa2c7(0xac))return{'id':undefined,'entity':{}};const _0x391509={..._0x42dde2},_0x13a797=toFiniteNumber(_0x391509['id']);return _0x13a797!==undefined&&(_0x391509['id']=_0x13a797),{'id':_0x13a797,'entity':_0x391509};}
@@ -1 +1 @@
1
- (function(_0x30a24e,_0x331821){const _0x5dea65=a194_0x456e,_0x1f1429=_0x30a24e();while(!![]){try{const _0x42b1e3=-parseInt(_0x5dea65(0x78))/0x1+parseInt(_0x5dea65(0x7d))/0x2*(parseInt(_0x5dea65(0x7c))/0x3)+parseInt(_0x5dea65(0x7b))/0x4+parseInt(_0x5dea65(0x79))/0x5+-parseInt(_0x5dea65(0x81))/0x6*(parseInt(_0x5dea65(0x7e))/0x7)+-parseInt(_0x5dea65(0x7a))/0x8+parseInt(_0x5dea65(0x80))/0x9;if(_0x42b1e3===_0x331821)break;else _0x1f1429['push'](_0x1f1429['shift']());}catch(_0x307b2d){_0x1f1429['push'](_0x1f1429['shift']());}}}(a194_0x1d4f,0x741e6));function a194_0x456e(_0x4c6e8a,_0x5307e1){_0x4c6e8a=_0x4c6e8a-0x78;const _0x1d4ff9=a194_0x1d4f();let _0x456e06=_0x1d4ff9[_0x4c6e8a];return _0x456e06;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a194_0x1d4f(){const _0x1bd2b2=['3457400TpYOgf','7565304nrhLXA','746116jrLoey','15alvygk','217814cldNIS','10178jIzNvt','isDirectory','7641990tSAUHi','1356MYOfLc','521765jSKUtv'];a194_0x1d4f=function(){return _0x1bd2b2;};return a194_0x1d4f();}export async function copyDir(_0x56c761,_0x44b42f){const _0x335c63=a194_0x456e,_0x28e8c6=statSync(_0x56c761);if(_0x28e8c6[_0x335c63(0x7f)]()){!existsSync(_0x44b42f)&&mkdirSync(_0x44b42f,{'recursive':!![]});const _0x45e4de=readdirSync(_0x56c761);for(const _0x5676ed of _0x45e4de){await copyDir(join(_0x56c761,_0x5676ed),join(_0x44b42f,_0x5676ed));}}else copyFileSync(_0x56c761,_0x44b42f);}export function ensureDir(_0x28a38a){!existsSync(_0x28a38a)&&mkdirSync(_0x28a38a,{'recursive':!![]});}export function pathExists(_0x8713aa){return existsSync(_0x8713aa);}
1
+ (function(_0x4ae7c7,_0x11aea7){const _0x15f5ad=a194_0x54eb,_0x236655=_0x4ae7c7();while(!![]){try{const _0x1229e4=parseInt(_0x15f5ad(0x19c))/0x1+parseInt(_0x15f5ad(0x19e))/0x2+parseInt(_0x15f5ad(0x1a1))/0x3*(-parseInt(_0x15f5ad(0x19f))/0x4)+parseInt(_0x15f5ad(0x1a4))/0x5*(-parseInt(_0x15f5ad(0x19d))/0x6)+-parseInt(_0x15f5ad(0x1a3))/0x7+parseInt(_0x15f5ad(0x1a0))/0x8+parseInt(_0x15f5ad(0x19b))/0x9;if(_0x1229e4===_0x11aea7)break;else _0x236655['push'](_0x236655['shift']());}catch(_0x372817){_0x236655['push'](_0x236655['shift']());}}}(a194_0x14f6,0x3ba3b));function a194_0x54eb(_0x21890f,_0x5d3d92){_0x21890f=_0x21890f-0x19b;const _0x14f6b1=a194_0x14f6();let _0x54ebc2=_0x14f6b1[_0x21890f];return _0x54ebc2;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3d911c,_0x5d4777){const _0x4d917f=a194_0x54eb,_0x10e283=statSync(_0x3d911c);if(_0x10e283[_0x4d917f(0x1a2)]()){!existsSync(_0x5d4777)&&mkdirSync(_0x5d4777,{'recursive':!![]});const _0x5bca1f=readdirSync(_0x3d911c);for(const _0x47246a of _0x5bca1f){await copyDir(join(_0x3d911c,_0x47246a),join(_0x5d4777,_0x47246a));}}else copyFileSync(_0x3d911c,_0x5d4777);}function a194_0x14f6(){const _0x445b6b=['3156468IPyvfQ','45QGCrZv','1332585SWRPgS','402847xSStfk','249978QwwKTt','534976EhvEpQ','16pswvdg','3814160HenMrS','168747DzVvfA','isDirectory'];a194_0x14f6=function(){return _0x445b6b;};return a194_0x14f6();}export function ensureDir(_0x49a4ac){!existsSync(_0x49a4ac)&&mkdirSync(_0x49a4ac,{'recursive':!![]});}export function pathExists(_0x3a01f4){return existsSync(_0x3a01f4);}
@@ -1 +1 @@
1
- const a195_0x7185b4=a195_0x4dc8;(function(_0x396881,_0xcdf507){const _0x125308=a195_0x4dc8,_0x4fa97d=_0x396881();while(!![]){try{const _0xb224e=parseInt(_0x125308(0x118))/0x1*(parseInt(_0x125308(0x115))/0x2)+-parseInt(_0x125308(0xfb))/0x3*(parseInt(_0x125308(0x109))/0x4)+parseInt(_0x125308(0xfa))/0x5*(-parseInt(_0x125308(0x111))/0x6)+-parseInt(_0x125308(0x107))/0x7+parseInt(_0x125308(0x104))/0x8+parseInt(_0x125308(0xf9))/0x9+parseInt(_0x125308(0x10a))/0xa;if(_0xb224e===_0xcdf507)break;else _0x4fa97d['push'](_0x4fa97d['shift']());}catch(_0x533cf6){_0x4fa97d['push'](_0x4fa97d['shift']());}}}(a195_0x28c1,0xd91ae));import{mkdirSync,writeFileSync}from'node:fs';function a195_0x4dc8(_0x2997da,_0x59eb90){_0x2997da=_0x2997da-0xf7;const _0x28c124=a195_0x28c1();let _0x4dc873=_0x28c124[_0x2997da];return _0x4dc873;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x36084f=a195_0x4dc8,_0x4ec9e9=getTemplateBaseUrl();return _0x4ec9e9+_0x36084f(0x11a);}const CACHE_DIR=join(homedir(),a195_0x7185b4(0x106),a195_0x7185b4(0x110));export async function fetchGuidesFromCDN(){const _0x408c33=a195_0x7185b4,_0x39b427=getGuidesCdnUrl(),_0x865f88=await fetch(_0x39b427,{'headers':{'Accept':'application/json'}});if(!_0x865f88['ok'])throw new Error(_0x408c33(0x102)+_0x865f88[_0x408c33(0x10b)]+'\x20'+_0x865f88[_0x408c33(0x10d)]);const _0x444bff=await _0x865f88[_0x408c33(0x112)]();if(!_0x444bff[_0x408c33(0xfc)]||typeof _0x444bff['guides']!==_0x408c33(0xff))throw new Error(_0x408c33(0x105));return _0x444bff;}export function writeGuidesToProject(_0x2d8c39,_0x18073d,_0x18afa8=a195_0x7185b4(0x10c),_0x37c6e0){const _0x40d47a=a195_0x7185b4,_0x1b07f8=join(_0x18073d,_0x18afa8);mkdirSync(_0x1b07f8,{'recursive':!![]});for(const [_0x19c573,_0x10f6d7]of Object[_0x40d47a(0x114)](_0x2d8c39[_0x40d47a(0xfc)])){let _0xc6a824=_0x10f6d7['content'];_0x10f6d7[_0x40d47a(0x100)]&&(_0xc6a824=appendUpdateTime(_0xc6a824,_0x10f6d7['lastUpdated'])),writeFileSync(join(_0x1b07f8,_0x19c573+_0x40d47a(0x113)),_0xc6a824,_0x40d47a(0xfd));}}export function appendUpdateTime(_0x272447,_0x96e49a){const _0x38b4e8=a195_0x7185b4;return _0x272447=_0x272447['replace'](/\n*>更新时间:.*$/m,''),_0x272447[_0x38b4e8(0x116)]()+(_0x38b4e8(0xf8)+_0x96e49a);}function a195_0x28c1(){const _0x4c632c=['7911120uBsxtP','status','.lovrabet/skill/guides','statusText','keys','extendContent','cache','1552956nPbuEa','json','.md','entries','24tQIAVe','trimEnd','length','2253BEaWBy','path','/skills/guides.json','title','content','\x0a\x0a>更新时间:','9587664WjVHcN','5NXfxaf','18xfQDix','guides','utf-8','push','object','lastUpdated','map','CDN\x20请求失败:\x20','skillTemplate','9230664PwTXfo','CDN\x20返回数据格式错误','.lovrabet','1860761GtCMeJ','replace','1082244eQPowZ'];a195_0x28c1=function(){return _0x4c632c;};return a195_0x28c1();}export function getSkillTemplate(_0x1ac7ef){const _0x29845e=a195_0x7185b4;return _0x1ac7ef[_0x29845e(0x103)]?.[_0x29845e(0xf7)]||'';}export function appendExtendContents(_0x3d1ff3,_0x1ac9cc,_0x4dff53){const _0x1e66f1=a195_0x7185b4,_0x49da01=[];for(const [,_0x4bfd51]of Object[_0x1e66f1(0x114)](_0x1ac9cc[_0x1e66f1(0xfc)])){_0x4bfd51[_0x1e66f1(0x10f)]&&_0x49da01[_0x1e66f1(0xfe)](_0x4bfd51['extendContent'][_0x1e66f1(0x116)]());}if(_0x49da01[_0x1e66f1(0x117)]===0x0)return _0x3d1ff3;return _0x3d1ff3[_0x1e66f1(0x116)]()+'\x0a\x0a'+_0x49da01['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x50b6e6,_0x35222f,_0x273ad8){const _0xaad09f=a195_0x7185b4,_0x5d3d0f=getSkillTemplate(_0x50b6e6);if(!_0x5d3d0f)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1870c5=dirname(_0x35222f);mkdirSync(_0x1870c5,{'recursive':!![]});let _0x20fffd=_0x5d3d0f[_0xaad09f(0x108)](/\{\{IDE_NAME\}\}/g,_0x273ad8);_0x20fffd=appendExtendContents(_0x20fffd,_0x50b6e6),_0x50b6e6[_0xaad09f(0x103)][_0xaad09f(0x100)]&&(_0x20fffd=appendUpdateTime(_0x20fffd,_0x50b6e6[_0xaad09f(0x103)][_0xaad09f(0x100)])),writeFileSync(_0x35222f,_0x20fffd,_0xaad09f(0xfd));}export async function installGuides(_0x5335a9){const _0x3ee6fc=a195_0x7185b4,_0x4ed597=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4ed597,_0x5335a9),Object[_0x3ee6fc(0x10e)](_0x4ed597[_0x3ee6fc(0xfc)])[_0x3ee6fc(0x117)];}export function getGuidesSummary(_0x3110bd){const _0x46e326=a195_0x7185b4;return Object['entries'](_0x3110bd['guides'])[_0x46e326(0x101)](([_0x170860,_0x130866])=>({'key':_0x170860,'title':_0x130866[_0x46e326(0x11b)],'path':_0x130866[_0x46e326(0x119)]}));}
1
+ const a195_0x4d16fe=a195_0x5ec1;(function(_0x52a3a9,_0x41352d){const _0x2af72a=a195_0x5ec1,_0x47afa2=_0x52a3a9();while(!![]){try{const _0x28f5cf=parseInt(_0x2af72a(0xd5))/0x1+parseInt(_0x2af72a(0xc8))/0x2*(-parseInt(_0x2af72a(0xcd))/0x3)+parseInt(_0x2af72a(0xb8))/0x4*(-parseInt(_0x2af72a(0xbb))/0x5)+parseInt(_0x2af72a(0xc7))/0x6+-parseInt(_0x2af72a(0xcb))/0x7*(-parseInt(_0x2af72a(0xc1))/0x8)+parseInt(_0x2af72a(0xbc))/0x9*(parseInt(_0x2af72a(0xca))/0xa)+-parseInt(_0x2af72a(0xd2))/0xb*(parseInt(_0x2af72a(0xc3))/0xc);if(_0x28f5cf===_0x41352d)break;else _0x47afa2['push'](_0x47afa2['shift']());}catch(_0x3dd9c6){_0x47afa2['push'](_0x47afa2['shift']());}}}(a195_0x203e,0x33455));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 _0x5eb89d=getTemplateBaseUrl();return _0x5eb89d+'/skills/guides.json';}function a195_0x5ec1(_0x5c36f5,_0xccc1e2){_0x5c36f5=_0x5c36f5-0xb7;const _0x203e74=a195_0x203e();let _0x5ec1a8=_0x203e74[_0x5c36f5];return _0x5ec1a8;}const CACHE_DIR=join(homedir(),a195_0x4d16fe(0xd3),'cache');export async function fetchGuidesFromCDN(){const _0x28a5bd=a195_0x4d16fe,_0x5d9037=getGuidesCdnUrl(),_0x4f2a73=await fetch(_0x5d9037,{'headers':{'Accept':_0x28a5bd(0xbd)}});if(!_0x4f2a73['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4f2a73['status']+'\x20'+_0x4f2a73['statusText']);const _0x3c4c40=await _0x4f2a73[_0x28a5bd(0xb7)]();if(!_0x3c4c40['guides']||typeof _0x3c4c40['guides']!==_0x28a5bd(0xd8))throw new Error('CDN\x20返回数据格式错误');return _0x3c4c40;}function a195_0x203e(){const _0x30495a=['join','.md','11EKJgQh','.lovrabet','guides','341994XpziyX','trimEnd','length','object','json','12GNBccA','push','map','318285EXJiYx','9DTBjri','application/json','utf-8','entries','content','16zaHKcr','.lovrabet/skill/guides','3905772zAmmUR','replace','lastUpdated','path','1937838ewQbbh','2mFgoJW','\x0a\x0a>更新时间:','1428770oGnpnE','202727QnAOpd','extendContent','417927Xqawnp','title','skillTemplate'];a195_0x203e=function(){return _0x30495a;};return a195_0x203e();}export function writeGuidesToProject(_0x3002f5,_0x1ac4b5,_0x30fe46=a195_0x4d16fe(0xc2),_0x3881ff){const _0x39f099=a195_0x4d16fe,_0x5d897d=join(_0x1ac4b5,_0x30fe46);mkdirSync(_0x5d897d,{'recursive':!![]});for(const [_0x34f57e,_0x27ff32]of Object[_0x39f099(0xbf)](_0x3002f5[_0x39f099(0xd4)])){let _0x3afcab=_0x27ff32[_0x39f099(0xc0)];_0x27ff32[_0x39f099(0xc5)]&&(_0x3afcab=appendUpdateTime(_0x3afcab,_0x27ff32[_0x39f099(0xc5)])),writeFileSync(join(_0x5d897d,_0x34f57e+_0x39f099(0xd1)),_0x3afcab,_0x39f099(0xbe));}}export function appendUpdateTime(_0x461312,_0x3857b3){const _0x561fb9=a195_0x4d16fe;return _0x461312=_0x461312['replace'](/\n*>更新时间:.*$/m,''),_0x461312[_0x561fb9(0xd6)]()+(_0x561fb9(0xc9)+_0x3857b3);}export function getSkillTemplate(_0x12a2ce){const _0x5cae02=a195_0x4d16fe;return _0x12a2ce[_0x5cae02(0xcf)]?.[_0x5cae02(0xc0)]||'';}export function appendExtendContents(_0x3f3f90,_0x10e84a,_0xb19a05){const _0x17d4b5=a195_0x4d16fe,_0x34728f=[];for(const [,_0x1f8bbf]of Object[_0x17d4b5(0xbf)](_0x10e84a['guides'])){_0x1f8bbf[_0x17d4b5(0xcc)]&&_0x34728f[_0x17d4b5(0xb9)](_0x1f8bbf[_0x17d4b5(0xcc)][_0x17d4b5(0xd6)]());}if(_0x34728f[_0x17d4b5(0xd7)]===0x0)return _0x3f3f90;return _0x3f3f90[_0x17d4b5(0xd6)]()+'\x0a\x0a'+_0x34728f[_0x17d4b5(0xd0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4ee6b3,_0x557ee6,_0x5777d8){const _0x71d756=a195_0x4d16fe,_0x785091=getSkillTemplate(_0x4ee6b3);if(!_0x785091)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x508f20=dirname(_0x557ee6);mkdirSync(_0x508f20,{'recursive':!![]});let _0x3de9ed=_0x785091[_0x71d756(0xc4)](/\{\{IDE_NAME\}\}/g,_0x5777d8);_0x3de9ed=appendExtendContents(_0x3de9ed,_0x4ee6b3),_0x4ee6b3[_0x71d756(0xcf)][_0x71d756(0xc5)]&&(_0x3de9ed=appendUpdateTime(_0x3de9ed,_0x4ee6b3[_0x71d756(0xcf)]['lastUpdated'])),writeFileSync(_0x557ee6,_0x3de9ed,_0x71d756(0xbe));}export async function installGuides(_0x427c4d){const _0x1ea9ba=a195_0x4d16fe,_0x252aa=await fetchGuidesFromCDN();return writeGuidesToProject(_0x252aa,_0x427c4d),Object['keys'](_0x252aa[_0x1ea9ba(0xd4)])[_0x1ea9ba(0xd7)];}export function getGuidesSummary(_0x17a64a){const _0x5d3f94=a195_0x4d16fe;return Object[_0x5d3f94(0xbf)](_0x17a64a[_0x5d3f94(0xd4)])[_0x5d3f94(0xba)](([_0x29eb5c,_0x5a7843])=>({'key':_0x29eb5c,'title':_0x5a7843[_0x5d3f94(0xce)],'path':_0x5a7843[_0x5d3f94(0xc6)]}));}
@@ -1 +1 @@
1
- (function(_0x16252d,_0x53e3f8){const _0xa46742=a196_0x28a8,_0x5e4a1c=_0x16252d();while(!![]){try{const _0x485118=parseInt(_0xa46742(0x15c))/0x1+parseInt(_0xa46742(0x142))/0x2+parseInt(_0xa46742(0x151))/0x3+parseInt(_0xa46742(0x145))/0x4*(parseInt(_0xa46742(0x143))/0x5)+parseInt(_0xa46742(0x14b))/0x6+parseInt(_0xa46742(0x159))/0x7*(parseInt(_0xa46742(0x15b))/0x8)+-parseInt(_0xa46742(0x15a))/0x9*(parseInt(_0xa46742(0x148))/0xa);if(_0x485118===_0x53e3f8)break;else _0x5e4a1c['push'](_0x5e4a1c['shift']());}catch(_0x3dc272){_0x5e4a1c['push'](_0x5e4a1c['shift']());}}}(a196_0x4e30,0xec054));export async function httpRequest(_0x4a50cf,_0x402b7f={}){const _0x2a1ba9=a196_0x28a8,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x402b7f;let _0x112b75=null;for(let _0x264c84=0x0;_0x264c84<=retries;_0x264c84++){try{const _0x3c70a1=new AbortController(),_0x3f9f4c=setTimeout(()=>_0x3c70a1[_0x2a1ba9(0x146)](),timeout),_0x5ae4a1=await fetch(_0x4a50cf,{'headers':headers,'signal':_0x3c70a1[_0x2a1ba9(0x152)]});clearTimeout(_0x3f9f4c);let _0x4b09a9;const _0x166abf=_0x5ae4a1[_0x2a1ba9(0x156)][_0x2a1ba9(0x147)](_0x2a1ba9(0x153));return _0x166abf?.[_0x2a1ba9(0x14e)]('application/json')?_0x4b09a9=await _0x5ae4a1[_0x2a1ba9(0x14c)]():_0x4b09a9=await _0x5ae4a1['text'](),{'ok':_0x5ae4a1['ok'],'status':_0x5ae4a1['status'],'statusText':_0x5ae4a1[_0x2a1ba9(0x141)],'data':_0x4b09a9,'headers':_0x5ae4a1[_0x2a1ba9(0x156)],'url':_0x5ae4a1[_0x2a1ba9(0x144)],'text':()=>_0x5ae4a1[_0x2a1ba9(0x150)]()};}catch(_0x2aeda8){_0x112b75=_0x2aeda8 instanceof Error?_0x2aeda8:new Error(String(_0x2aeda8));if(_0x264c84===retries)break;if(shouldRetry(_0x2aeda8)){console['log'](_0x2a1ba9(0x149)+retryDelay+_0x2a1ba9(0x154)+(_0x264c84+0x1)+_0x2a1ba9(0x158)),await sleep(retryDelay);continue;}else break;}}throw _0x112b75||new Error(_0x2a1ba9(0x155));}function a196_0x28a8(_0x424c32,_0x5e4850){_0x424c32=_0x424c32-0x140;const _0x4e3075=a196_0x4e30();let _0x28a8d3=_0x4e3075[_0x424c32];return _0x28a8d3;}function a196_0x4e30(){const _0x3a59cf=['includes','ECONNRESET','text','2686689yTZgPy','signal','content-type','ms\x20后进行第\x20','Request\x20failed','headers','message','\x20次重试...','7822808MlDsZY','9kpSQLa','8iZxNbs','1694620ErYKbo','name','statusText','574426KrNtmi','10BGKWuL','url','97880YelQYY','abort','get','48500770FThggj','*\x20请求失败,','fetch','10637622Nqjamm','json','TypeError'];a196_0x4e30=function(){return _0x3a59cf;};return a196_0x4e30();}function shouldRetry(_0x4752e6){const _0x265127=a196_0x28a8;if(_0x4752e6 instanceof Error){if(_0x4752e6[_0x265127(0x140)]==='AbortError')return![];if(_0x4752e6[_0x265127(0x140)]===_0x265127(0x14d)&&_0x4752e6[_0x265127(0x157)][_0x265127(0x14e)](_0x265127(0x14a)))return!![];if(_0x4752e6[_0x265127(0x157)]['includes'](_0x265127(0x14f)))return!![];if(_0x4752e6['message']['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x1f7026){return new Promise(_0x15c771=>setTimeout(_0x15c771,_0x1f7026));}export function validateUrl(_0x36b216){try{return new URL(_0x36b216),!![];}catch{return![];}}
1
+ (function(_0x3a6212,_0xcaf890){const _0xbf87df=a196_0x17a8,_0x168a7=_0x3a6212();while(!![]){try{const _0x547181=-parseInt(_0xbf87df(0x165))/0x1*(parseInt(_0xbf87df(0x16e))/0x2)+-parseInt(_0xbf87df(0x16d))/0x3*(parseInt(_0xbf87df(0x161))/0x4)+-parseInt(_0xbf87df(0x163))/0x5+-parseInt(_0xbf87df(0x169))/0x6*(parseInt(_0xbf87df(0x15d))/0x7)+parseInt(_0xbf87df(0x159))/0x8*(-parseInt(_0xbf87df(0x155))/0x9)+parseInt(_0xbf87df(0x164))/0xa+parseInt(_0xbf87df(0x15e))/0xb;if(_0x547181===_0xcaf890)break;else _0x168a7['push'](_0x168a7['shift']());}catch(_0x44f5e7){_0x168a7['push'](_0x168a7['shift']());}}}(a196_0x3815,0xea075));export async function httpRequest(_0xf52158,_0x305c3b={}){const _0x1342d8=a196_0x17a8,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x305c3b;let _0x119e9f=null;for(let _0x462051=0x0;_0x462051<=retries;_0x462051++){try{const _0x3b2cf4=new AbortController(),_0x27d336=setTimeout(()=>_0x3b2cf4['abort'](),timeout),_0x4eff8f=await fetch(_0xf52158,{'headers':headers,'signal':_0x3b2cf4['signal']});clearTimeout(_0x27d336);let _0x512641;const _0x373135=_0x4eff8f[_0x1342d8(0x152)][_0x1342d8(0x157)]('content-type');return _0x373135?.[_0x1342d8(0x151)](_0x1342d8(0x153))?_0x512641=await _0x4eff8f[_0x1342d8(0x158)]():_0x512641=await _0x4eff8f[_0x1342d8(0x16b)](),{'ok':_0x4eff8f['ok'],'status':_0x4eff8f[_0x1342d8(0x168)],'statusText':_0x4eff8f['statusText'],'data':_0x512641,'headers':_0x4eff8f['headers'],'url':_0x4eff8f[_0x1342d8(0x167)],'text':()=>_0x4eff8f[_0x1342d8(0x16b)]()};}catch(_0x6f1c72){_0x119e9f=_0x6f1c72 instanceof Error?_0x6f1c72:new Error(String(_0x6f1c72));if(_0x462051===retries)break;if(shouldRetry(_0x6f1c72)){console[_0x1342d8(0x16a)](_0x1342d8(0x156)+retryDelay+_0x1342d8(0x15f)+(_0x462051+0x1)+_0x1342d8(0x15b)),await sleep(retryDelay);continue;}else break;}}throw _0x119e9f||new Error(_0x1342d8(0x160));}function a196_0x17a8(_0x58e13f,_0x4effe5){_0x58e13f=_0x58e13f-0x151;const _0x381557=a196_0x3815();let _0x17a8db=_0x381557[_0x58e13f];return _0x17a8db;}function shouldRetry(_0xeacc6f){const _0x36ffab=a196_0x17a8;if(_0xeacc6f instanceof Error){if(_0xeacc6f[_0x36ffab(0x162)]===_0x36ffab(0x15c))return![];if(_0xeacc6f[_0x36ffab(0x162)]===_0x36ffab(0x154)&&_0xeacc6f['message']['includes'](_0x36ffab(0x15a)))return!![];if(_0xeacc6f[_0x36ffab(0x166)]['includes'](_0x36ffab(0x16c)))return!![];if(_0xeacc6f[_0x36ffab(0x166)][_0x36ffab(0x151)]('ENOTFOUND'))return![];}return![];}function sleep(_0x3cb101){return new Promise(_0x4af09a=>setTimeout(_0x4af09a,_0x3cb101));}export function validateUrl(_0x1fbd96){try{return new URL(_0x1fbd96),!![];}catch{return![];}}function a196_0x3815(){const _0x362429=['includes','headers','application/json','TypeError','37017YHPKBP','*\x20请求失败,','get','json','3032qbQOOu','fetch','\x20次重试...','AbortError','9551717xeqpeC','55583572jDPlrN','ms\x20后进行第\x20','Request\x20failed','12FLRBmY','name','3982035sWcqox','14021150oCJKUL','7XArcTY','message','url','status','6ndKzth','log','text','ECONNRESET','849699KuBEsh','264892CPIyAG'];a196_0x3815=function(){return _0x362429;};return a196_0x3815();}
@@ -1 +1 @@
1
- (function(_0x27924f,_0x68baeb){const _0x3266d0=a197_0x3d96,_0x5f2ba4=_0x27924f();while(!![]){try{const _0x70e68f=parseInt(_0x3266d0(0x1cb))/0x1*(-parseInt(_0x3266d0(0x1ca))/0x2)+parseInt(_0x3266d0(0x1ce))/0x3+-parseInt(_0x3266d0(0x1d4))/0x4*(parseInt(_0x3266d0(0x1d2))/0x5)+parseInt(_0x3266d0(0x1d1))/0x6+-parseInt(_0x3266d0(0x1d0))/0x7*(parseInt(_0x3266d0(0x1d6))/0x8)+parseInt(_0x3266d0(0x1cc))/0x9+parseInt(_0x3266d0(0x1c9))/0xa;if(_0x70e68f===_0x68baeb)break;else _0x5f2ba4['push'](_0x5f2ba4['shift']());}catch(_0x12c603){_0x5f2ba4['push'](_0x5f2ba4['shift']());}}}(a197_0x1959,0xd487d));function a197_0x1959(){const _0x18c7a7=['4503015PkPlej','stdout','3060114Qbokzp','setRawMode','12390WEhMrR','9264102LLavNI','25CrSrzR','nonInteractive','1121852dFNPPh','stdin','6168fGGvAM','isTTY','true','13051140ulvpmq','76qXFlLC','19263gsTHIQ'];a197_0x1959=function(){return _0x18c7a7;};return a197_0x1959();}function env(_0x52ced1){return process.env[`RABETBASE_${_0x52ced1}`]||process.env[`LOVRABET_${_0x52ced1}`]||undefined;}export function isNonInteractive(_0x1e785a){const _0x48e43d=a197_0x3d96;return!!(_0x1e785a[_0x48e43d(0x1d3)]||_0x1e785a['ci']||env('CI')===_0x48e43d(0x1d8)||process.env.CI==='true'||!process[_0x48e43d(0x1cd)][_0x48e43d(0x1d7)]||!isStdinRawModeSupported());}function a197_0x3d96(_0x2eb615,_0x4306d1){_0x2eb615=_0x2eb615-0x1c9;const _0x195914=a197_0x1959();let _0x3d962e=_0x195914[_0x2eb615];return _0x3d962e;}function isStdinRawModeSupported(){const _0x120171=a197_0x3d96;if(!process[_0x120171(0x1d5)][_0x120171(0x1d7)])return![];try{const _0x391359=process[_0x120171(0x1d5)]['isRaw'];return process[_0x120171(0x1d5)][_0x120171(0x1cf)](!![]),process[_0x120171(0x1d5)][_0x120171(0x1cf)](_0x391359??![]),!![];}catch{return![];}}
1
+ function a197_0x4bf5(){const _0x559400=['stdout','4529049cjNXhH','63bBlSTG','945684EaJvJE','setRawMode','3639160DhgNxv','617718csprAC','nonInteractive','1829418ZNzESu','112EkCWae','58660hVPpHU','isTTY','1KDEyUp','1413530pFmpGj','stdin'];a197_0x4bf5=function(){return _0x559400;};return a197_0x4bf5();}(function(_0x2f402b,_0x1cbf8a){const _0x1a2e86=a197_0x4eef,_0x1ab810=_0x2f402b();while(!![]){try{const _0x26feda=-parseInt(_0x1a2e86(0x184))/0x1*(-parseInt(_0x1a2e86(0x17e))/0x2)+-parseInt(_0x1a2e86(0x180))/0x3+parseInt(_0x1a2e86(0x181))/0x4*(-parseInt(_0x1a2e86(0x182))/0x5)+parseInt(_0x1a2e86(0x17b))/0x6+-parseInt(_0x1a2e86(0x179))/0x7+parseInt(_0x1a2e86(0x17d))/0x8+-parseInt(_0x1a2e86(0x17a))/0x9*(-parseInt(_0x1a2e86(0x185))/0xa);if(_0x26feda===_0x1cbf8a)break;else _0x1ab810['push'](_0x1ab810['shift']());}catch(_0x1945ad){_0x1ab810['push'](_0x1ab810['shift']());}}}(a197_0x4bf5,0x4f79a));function env(_0x553ba3){return process.env[`RABETBASE_${_0x553ba3}`]||process.env[`LOVRABET_${_0x553ba3}`]||undefined;}export function isNonInteractive(_0x163cf9){const _0x15ff91=a197_0x4eef;return!!(_0x163cf9[_0x15ff91(0x17f)]||_0x163cf9['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x15ff91(0x178)][_0x15ff91(0x183)]||!isStdinRawModeSupported());}function a197_0x4eef(_0x5509ca,_0x4b5b30){_0x5509ca=_0x5509ca-0x177;const _0x4bf55e=a197_0x4bf5();let _0x4eef97=_0x4bf55e[_0x5509ca];return _0x4eef97;}function isStdinRawModeSupported(){const _0x535ab4=a197_0x4eef;if(!process[_0x535ab4(0x177)][_0x535ab4(0x183)])return![];try{const _0x58e13b=process[_0x535ab4(0x177)]['isRaw'];return process[_0x535ab4(0x177)]['setRawMode'](!![]),process[_0x535ab4(0x177)][_0x535ab4(0x17c)](_0x58e13b??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a198_0x12cd(){const _0x2a49ee=['Failed\x20to\x20clear\x20logs:','logFilePath','blue','56686VGRASg','Failed\x20to\x20read\x20logs:','File','currentRawCommand','green','now','完成:\x20','split','mkdirSync','transports','red','readLogs','toISOString','setRawCommand','unknown','clear','开始执行:\x20','printf','372921ObCesg','848cipUjY','2053460lWwcgo','filter','parse','level','error','36630IeFDYm','warn','rawCommand','log','info','success','153cipmJM','1115slAdAU','winstonLogger','format','errors','497150OcqsYP','timestamp','setLogPath','message','3193324YLIZGY','join','logTask','827716rVuFJD','duration','createLogger','getWinstonInstance','details','existsSync','readFileSync','combine','yellow','dirname','command','失败:\x20','clearLogs'];a198_0x12cd=function(){return _0x2a49ee;};return a198_0x12cd();}const a198_0x2531d9=a198_0x4689;(function(_0x57ef7f,_0x12a143){const _0x4bb947=a198_0x4689,_0x361534=_0x57ef7f();while(!![]){try{const _0xdad2fa=-parseInt(_0x4bb947(0x12b))/0x1+-parseInt(_0x4bb947(0x12f))/0x2+parseInt(_0x4bb947(0x154))/0x3+-parseInt(_0x4bb947(0x132))/0x4+-parseInt(_0x4bb947(0x127))/0x5*(parseInt(_0x4bb947(0x15b))/0x6)+-parseInt(_0x4bb947(0x142))/0x7*(-parseInt(_0x4bb947(0x155))/0x8)+parseInt(_0x4bb947(0x126))/0x9*(parseInt(_0x4bb947(0x156))/0xa);if(_0xdad2fa===_0x12a143)break;else _0x361534['push'](_0x361534['shift']());}catch(_0x1addfa){_0x361534['push'](_0x361534['shift']());}}}(a198_0x12cd,0xc619d));import a198_0x5be8e7 from'winston';import a198_0x1fb9dc from'node:fs';import a198_0x193b50 from'node:path';function a198_0x4689(_0x55db50,_0xa800fc){_0x55db50=_0x55db50-0x125;const _0x12cd0a=a198_0x12cd();let _0x4689e0=_0x12cd0a[_0x55db50];return _0x4689e0;}class Logger{['winstonLogger'];[a198_0x2531d9(0x140)];[a198_0x2531d9(0x145)]='';constructor(){const _0x494039=a198_0x2531d9;this[_0x494039(0x140)]='';}[a198_0x2531d9(0x14f)](_0x4785d3){this['currentRawCommand']=_0x4785d3;}['initWinstonLogger'](){const _0x4cb5e3=a198_0x2531d9,_0x2d9512=a198_0x193b50[_0x4cb5e3(0x13b)](this['logFilePath']);!a198_0x1fb9dc['existsSync'](_0x2d9512)&&a198_0x1fb9dc[_0x4cb5e3(0x14a)](_0x2d9512,{'recursive':!![]});const _0x57ba23=a198_0x5be8e7[_0x4cb5e3(0x129)][_0x4cb5e3(0x139)](a198_0x5be8e7['format'][_0x4cb5e3(0x12c)](),a198_0x5be8e7[_0x4cb5e3(0x129)][_0x4cb5e3(0x12a)]({'stack':!![]}),a198_0x5be8e7[_0x4cb5e3(0x129)][_0x4cb5e3(0x153)](_0x4f1087=>{const _0x29ab3a=_0x4cb5e3,_0x4c131e={'timestamp':_0x4f1087[_0x29ab3a(0x12c)]||new Date()[_0x29ab3a(0x14e)](),'level':_0x4f1087[_0x29ab3a(0x159)]||'info','command':_0x4f1087[_0x29ab3a(0x13c)]||_0x29ab3a(0x150),'rawCommand':_0x4f1087[_0x29ab3a(0x15d)]||this[_0x29ab3a(0x145)]||undefined,'message':_0x4f1087['message']||'','duration':_0x4f1087[_0x29ab3a(0x133)]||undefined,'details':_0x4f1087[_0x29ab3a(0x136)]||undefined};return JSON['stringify'](_0x4c131e);}));this[_0x4cb5e3(0x128)]=a198_0x5be8e7[_0x4cb5e3(0x134)]({'level':_0x4cb5e3(0x15f),'format':_0x57ba23,'transports':[new a198_0x5be8e7[(_0x4cb5e3(0x14b))][(_0x4cb5e3(0x144))]({'filename':this['logFilePath'],'level':_0x4cb5e3(0x15f)})],'silent':![]}),a198_0x5be8e7['addColors']({'success':_0x4cb5e3(0x146),'error':_0x4cb5e3(0x14c),'warn':_0x4cb5e3(0x13a),'info':_0x4cb5e3(0x141)});}[a198_0x2531d9(0x12d)](_0x5293a0){const _0x4ea117=a198_0x2531d9;this['logFilePath']=a198_0x193b50[_0x4ea117(0x130)](_0x5293a0,'.lovrabet.log'),this[_0x4ea117(0x128)]&&this[_0x4ea117(0x128)][_0x4ea117(0x151)](),this['initWinstonLogger']();}[a198_0x2531d9(0x15f)](_0x482894,_0xf889f2,_0x4ed964){const _0x48dc8e=a198_0x2531d9;if(!this[_0x48dc8e(0x140)]||!this[_0x48dc8e(0x128)])return;this[_0x48dc8e(0x128)][_0x48dc8e(0x15f)](_0xf889f2,{'command':_0x482894,'details':_0x4ed964});}[a198_0x2531d9(0x125)](_0x561c92,_0x5b6c4b,_0x1e04fa,_0x55c15b){const _0x432906=a198_0x2531d9;if(!this[_0x432906(0x140)]||!this['winstonLogger'])return;this['winstonLogger'][_0x432906(0x15e)](_0x432906(0x15f),_0x5b6c4b,{'level':_0x432906(0x125),'command':_0x561c92,'duration':_0x1e04fa,'details':_0x55c15b});}['error'](_0x5d83db,_0x802a49,_0x4427a5){const _0x3fa04e=a198_0x2531d9;if(!this[_0x3fa04e(0x140)]||!this[_0x3fa04e(0x128)])return;this[_0x3fa04e(0x128)]['error'](_0x802a49,{'command':_0x5d83db,'details':_0x4427a5});}[a198_0x2531d9(0x15c)](_0x569882,_0x5cd688,_0x2ee87d){const _0x3437d1=a198_0x2531d9;if(!this[_0x3437d1(0x140)]||!this['winstonLogger'])return;this[_0x3437d1(0x128)][_0x3437d1(0x15c)](_0x5cd688,{'command':_0x569882,'details':_0x2ee87d});}async[a198_0x2531d9(0x131)](_0x4a3a0a,_0x28ac20,_0x269315){const _0x8798bf=a198_0x2531d9,_0x2772aa=Date[_0x8798bf(0x147)]();this['info'](_0x4a3a0a,_0x8798bf(0x152)+_0x28ac20);try{const _0x18477c=await _0x269315(),_0x1fa720=Date[_0x8798bf(0x147)]()-_0x2772aa;return this[_0x8798bf(0x125)](_0x4a3a0a,_0x8798bf(0x148)+_0x28ac20,_0x1fa720),_0x18477c;}catch(_0x639b74){const _0x156964=Date['now']()-_0x2772aa;this[_0x8798bf(0x15a)](_0x4a3a0a,_0x8798bf(0x13d)+_0x28ac20,{'error':_0x639b74 instanceof Error?_0x639b74[_0x8798bf(0x12e)]:String(_0x639b74),'duration':_0x156964});throw _0x639b74;}}[a198_0x2531d9(0x14d)](){const _0x8dc3b6=a198_0x2531d9;try{if(!a198_0x1fb9dc[_0x8dc3b6(0x137)](this[_0x8dc3b6(0x140)]))return[];const _0x51bfba=a198_0x1fb9dc[_0x8dc3b6(0x138)](this[_0x8dc3b6(0x140)],'utf8');return _0x51bfba[_0x8dc3b6(0x149)]('\x0a')[_0x8dc3b6(0x157)](_0x1c4441=>_0x1c4441['trim']())['map'](_0x468876=>JSON[_0x8dc3b6(0x158)](_0x468876));}catch(_0x5b40a1){return console[_0x8dc3b6(0x15c)](_0x8dc3b6(0x143),_0x5b40a1),[];}}[a198_0x2531d9(0x13e)](){const _0x50efa0=a198_0x2531d9;try{a198_0x1fb9dc['existsSync'](this[_0x50efa0(0x140)])&&a198_0x1fb9dc['writeFileSync'](this['logFilePath'],'','utf8');}catch(_0x1930e0){console[_0x50efa0(0x15c)](_0x50efa0(0x13f),_0x1930e0);}}[a198_0x2531d9(0x135)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ function a198_0x3aae(_0x3e3795,_0x1812a9){_0x3e3795=_0x3e3795-0x96;const _0x2594ca=a198_0x2594();let _0x3aae37=_0x2594ca[_0x3e3795];return _0x3aae37;}const a198_0x2f1a5c=a198_0x3aae;function a198_0x2594(){const _0x4e3cd0=['logFilePath','完成:\x20','10409UFkzgE','now','readLogs','format','green','writeFileSync','success','rawCommand','createLogger','log','info','transports','currentRawCommand','1590321UhmIxo','red','Failed\x20to\x20clear\x20logs:','4YoYdnj','yellow','setRawCommand','Failed\x20to\x20read\x20logs:','message','2636260ZFMclz','readFileSync','失败:\x20','existsSync','details','unknown','setLogPath','timestamp','toISOString','15sXjRqI','errors','6200GYJuWL','132935IgbcTu','split','clearLogs','stringify','join','clear','parse','getWinstonInstance','addColors','15668982gXpxlq','command','trim','winstonLogger','blue','886017VkktRk','File','printf','utf8','error','warn','.lovrabet.log','combine','236382RJYflS','mkdirSync','6dxGtnQ','map'];a198_0x2594=function(){return _0x4e3cd0;};return a198_0x2594();}(function(_0x55fb07,_0x266b23){const _0x8667ef=a198_0x3aae,_0x33d056=_0x55fb07();while(!![]){try{const _0x997f6c=-parseInt(_0x8667ef(0xc8))/0x1*(parseInt(_0x8667ef(0xa4))/0x2)+parseInt(_0x8667ef(0xb7))/0x3*(-parseInt(_0x8667ef(0xba))/0x4)+-parseInt(_0x8667ef(0xcb))/0x5*(-parseInt(_0x8667ef(0xa6))/0x6)+parseInt(_0x8667ef(0xaa))/0x7*(parseInt(_0x8667ef(0xca))/0x8)+parseInt(_0x8667ef(0x97))/0x9+parseInt(_0x8667ef(0xbf))/0xa+parseInt(_0x8667ef(0x9c))/0xb;if(_0x997f6c===_0x266b23)break;else _0x33d056['push'](_0x33d056['shift']());}catch(_0x319825){_0x33d056['push'](_0x33d056['shift']());}}}(a198_0x2594,0xeaabb));import a198_0xe94bfb from'winston';import a198_0x8b0b4c from'node:fs';import a198_0x1586ff from'node:path';class Logger{[a198_0x2f1a5c(0x9a)];[a198_0x2f1a5c(0xa8)];[a198_0x2f1a5c(0xb6)]='';constructor(){const _0x3d2824=a198_0x2f1a5c;this[_0x3d2824(0xa8)]='';}[a198_0x2f1a5c(0xbc)](_0x15337e){const _0x44826e=a198_0x2f1a5c;this[_0x44826e(0xb6)]=_0x15337e;}['initWinstonLogger'](){const _0x337510=a198_0x2f1a5c,_0x477d22=a198_0x1586ff['dirname'](this[_0x337510(0xa8)]);!a198_0x8b0b4c[_0x337510(0xc2)](_0x477d22)&&a198_0x8b0b4c[_0x337510(0xa5)](_0x477d22,{'recursive':!![]});const _0x558fd2=a198_0xe94bfb[_0x337510(0xad)][_0x337510(0xa3)](a198_0xe94bfb[_0x337510(0xad)][_0x337510(0xc6)](),a198_0xe94bfb[_0x337510(0xad)][_0x337510(0xc9)]({'stack':!![]}),a198_0xe94bfb[_0x337510(0xad)][_0x337510(0x9e)](_0x5ef780=>{const _0xa2822f=_0x337510,_0x5913d0={'timestamp':_0x5ef780[_0xa2822f(0xc6)]||new Date()[_0xa2822f(0xc7)](),'level':_0x5ef780['level']||'info','command':_0x5ef780[_0xa2822f(0x98)]||_0xa2822f(0xc4),'rawCommand':_0x5ef780[_0xa2822f(0xb1)]||this[_0xa2822f(0xb6)]||undefined,'message':_0x5ef780[_0xa2822f(0xbe)]||'','duration':_0x5ef780['duration']||undefined,'details':_0x5ef780[_0xa2822f(0xc3)]||undefined};return JSON[_0xa2822f(0xce)](_0x5913d0);}));this[_0x337510(0x9a)]=a198_0xe94bfb[_0x337510(0xb2)]({'level':'info','format':_0x558fd2,'transports':[new a198_0xe94bfb[(_0x337510(0xb5))][(_0x337510(0x9d))]({'filename':this['logFilePath'],'level':_0x337510(0xb4)})],'silent':![]}),a198_0xe94bfb[_0x337510(0x96)]({'success':_0x337510(0xae),'error':_0x337510(0xb8),'warn':_0x337510(0xbb),'info':_0x337510(0x9b)});}[a198_0x2f1a5c(0xc5)](_0x1281dd){const _0x28a6f2=a198_0x2f1a5c;this[_0x28a6f2(0xa8)]=a198_0x1586ff[_0x28a6f2(0xcf)](_0x1281dd,_0x28a6f2(0xa2)),this[_0x28a6f2(0x9a)]&&this['winstonLogger'][_0x28a6f2(0xd0)](),this['initWinstonLogger']();}[a198_0x2f1a5c(0xb4)](_0x40b6fa,_0x221828,_0x5a7102){const _0x50f4e5=a198_0x2f1a5c;if(!this[_0x50f4e5(0xa8)]||!this[_0x50f4e5(0x9a)])return;this[_0x50f4e5(0x9a)][_0x50f4e5(0xb4)](_0x221828,{'command':_0x40b6fa,'details':_0x5a7102});}['success'](_0x838200,_0x34619b,_0x46ed46,_0x1fb755){const _0x314aad=a198_0x2f1a5c;if(!this[_0x314aad(0xa8)]||!this[_0x314aad(0x9a)])return;this[_0x314aad(0x9a)][_0x314aad(0xb3)](_0x314aad(0xb4),_0x34619b,{'level':_0x314aad(0xb0),'command':_0x838200,'duration':_0x46ed46,'details':_0x1fb755});}[a198_0x2f1a5c(0xa0)](_0xa394be,_0x3a0110,_0x4e54ee){const _0x20f707=a198_0x2f1a5c;if(!this[_0x20f707(0xa8)]||!this[_0x20f707(0x9a)])return;this[_0x20f707(0x9a)][_0x20f707(0xa0)](_0x3a0110,{'command':_0xa394be,'details':_0x4e54ee});}[a198_0x2f1a5c(0xa1)](_0x9c0ac3,_0x54bf8a,_0x1ec2d9){const _0x1ae0d6=a198_0x2f1a5c;if(!this[_0x1ae0d6(0xa8)]||!this[_0x1ae0d6(0x9a)])return;this['winstonLogger'][_0x1ae0d6(0xa1)](_0x54bf8a,{'command':_0x9c0ac3,'details':_0x1ec2d9});}async['logTask'](_0x48ff29,_0x502184,_0x598e3a){const _0xf1574d=a198_0x2f1a5c,_0x187860=Date[_0xf1574d(0xab)]();this[_0xf1574d(0xb4)](_0x48ff29,'开始执行:\x20'+_0x502184);try{const _0x1f4db0=await _0x598e3a(),_0x18c420=Date[_0xf1574d(0xab)]()-_0x187860;return this[_0xf1574d(0xb0)](_0x48ff29,_0xf1574d(0xa9)+_0x502184,_0x18c420),_0x1f4db0;}catch(_0x2c7744){const _0x390c0c=Date[_0xf1574d(0xab)]()-_0x187860;this[_0xf1574d(0xa0)](_0x48ff29,_0xf1574d(0xc1)+_0x502184,{'error':_0x2c7744 instanceof Error?_0x2c7744[_0xf1574d(0xbe)]:String(_0x2c7744),'duration':_0x390c0c});throw _0x2c7744;}}[a198_0x2f1a5c(0xac)](){const _0x299348=a198_0x2f1a5c;try{if(!a198_0x8b0b4c[_0x299348(0xc2)](this['logFilePath']))return[];const _0x53623f=a198_0x8b0b4c[_0x299348(0xc0)](this[_0x299348(0xa8)],'utf8');return _0x53623f[_0x299348(0xcc)]('\x0a')['filter'](_0x4a8304=>_0x4a8304[_0x299348(0x99)]())[_0x299348(0xa7)](_0x18d1e6=>JSON[_0x299348(0xd1)](_0x18d1e6));}catch(_0x1d455c){return console['warn'](_0x299348(0xbd),_0x1d455c),[];}}[a198_0x2f1a5c(0xcd)](){const _0xaee249=a198_0x2f1a5c;try{a198_0x8b0b4c[_0xaee249(0xc2)](this[_0xaee249(0xa8)])&&a198_0x8b0b4c[_0xaee249(0xaf)](this['logFilePath'],'',_0xaee249(0x9f));}catch(_0x58b988){console['warn'](_0xaee249(0xb9),_0x58b988);}}[a198_0x2f1a5c(0xd2)](){const _0x26b3f5=a198_0x2f1a5c;return this[_0x26b3f5(0x9a)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a199_0x5d7e(_0x1094a0,_0x5733e9){_0x1094a0=_0x1094a0-0x96;const _0x3e3f78=a199_0x3e3f();let _0x5d7e17=_0x3e3f78[_0x1094a0];return _0x5d7e17;}(function(_0x3e8039,_0x5b3715){const _0x41c4d4=a199_0x5d7e,_0x2105e8=_0x3e8039();while(!![]){try{const _0x198211=-parseInt(_0x41c4d4(0x97))/0x1+-parseInt(_0x41c4d4(0x9d))/0x2+parseInt(_0x41c4d4(0x9e))/0x3*(parseInt(_0x41c4d4(0xa0))/0x4)+-parseInt(_0x41c4d4(0x9a))/0x5+-parseInt(_0x41c4d4(0xa2))/0x6+-parseInt(_0x41c4d4(0x9f))/0x7*(-parseInt(_0x41c4d4(0xa3))/0x8)+parseInt(_0x41c4d4(0x98))/0x9*(parseInt(_0x41c4d4(0x9b))/0xa);if(_0x198211===_0x5b3715)break;else _0x2105e8['push'](_0x2105e8['shift']());}catch(_0x25f255){_0x2105e8['push'](_0x2105e8['shift']());}}}(a199_0x3e3f,0xe9725));import{CliErrors}from'../errors.js';function a199_0x3e3f(){const _0x3eb807=['8938944qVXpMf','15864ArENkx','object','Invalid\x20JSON\x20for\x20--params:\x20','validation','828545efbCYk','47403369PJniFP','isArray','5474300WsdNFA','10maFCxd','parse','2798998FWBKIP','54753xWfdVs','161jYivDm','100YdNTgc','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a199_0x3e3f=function(){return _0x3eb807;};return a199_0x3e3f();}export function parseJsonParams(_0xdca638){const _0x12269c=a199_0x5d7e;if(!_0xdca638)return undefined;let _0x4bea2e;try{_0x4bea2e=JSON[_0x12269c(0x9c)](_0xdca638);}catch{throw CliErrors['validation'](_0x12269c(0xa5)+_0xdca638);}if(!_0x4bea2e||typeof _0x4bea2e!==_0x12269c(0xa4)||Array[_0x12269c(0x99)](_0x4bea2e))throw CliErrors[_0x12269c(0x96)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x12269c(0xa1));return _0x4bea2e;}
1
+ function a199_0x2cbb(_0x77b6a8,_0x1e2326){_0x77b6a8=_0x77b6a8-0x1af;const _0x6d4a73=a199_0x6d4a();let _0x2cbbd3=_0x6d4a73[_0x77b6a8];return _0x2cbbd3;}(function(_0xa1cec3,_0x3404bf){const _0x71f87b=a199_0x2cbb,_0x57d29c=_0xa1cec3();while(!![]){try{const _0x31a56=-parseInt(_0x71f87b(0x1bf))/0x1+parseInt(_0x71f87b(0x1be))/0x2*(-parseInt(_0x71f87b(0x1b6))/0x3)+-parseInt(_0x71f87b(0x1b5))/0x4*(parseInt(_0x71f87b(0x1b1))/0x5)+parseInt(_0x71f87b(0x1b9))/0x6*(-parseInt(_0x71f87b(0x1b8))/0x7)+parseInt(_0x71f87b(0x1bc))/0x8+-parseInt(_0x71f87b(0x1b4))/0x9*(-parseInt(_0x71f87b(0x1b7))/0xa)+parseInt(_0x71f87b(0x1b0))/0xb*(parseInt(_0x71f87b(0x1af))/0xc);if(_0x31a56===_0x3404bf)break;else _0x57d29c['push'](_0x57d29c['shift']());}catch(_0x281260){_0x57d29c['push'](_0x57d29c['shift']());}}}(a199_0x6d4a,0x3b15b));import{CliErrors}from'../errors.js';function a199_0x6d4a(){const _0x3f5b25=['5iSwSMV','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','54szdNnV','817660OJtOed','235281uNyvdr','261880MCTgDv','249375pUzdOr','6QxZPAo','Invalid\x20JSON\x20for\x20--params:\x20','validation','3226040iaMRMO','parse','2RpSPvP','278027zOPeAt','128364jFccik','286NmDzwf'];a199_0x6d4a=function(){return _0x3f5b25;};return a199_0x6d4a();}export function parseJsonParams(_0x124ea9){const _0x22c5e5=a199_0x2cbb;if(!_0x124ea9)return undefined;let _0x2bd7e1;try{_0x2bd7e1=JSON[_0x22c5e5(0x1bd)](_0x124ea9);}catch{throw CliErrors['validation'](_0x22c5e5(0x1ba)+_0x124ea9);}if(!_0x2bd7e1||typeof _0x2bd7e1!=='object'||Array['isArray'](_0x2bd7e1))throw CliErrors[_0x22c5e5(0x1bb)](_0x22c5e5(0x1b3),_0x22c5e5(0x1b2));return _0x2bd7e1;}
@@ -1 +1 @@
1
- (function(_0x406ffe,_0x3a6035){const _0x2c3b4b=a200_0x1dca,_0x4b35d6=_0x406ffe();while(!![]){try{const _0x65e8ad=parseInt(_0x2c3b4b(0x86))/0x1+-parseInt(_0x2c3b4b(0x7f))/0x2+parseInt(_0x2c3b4b(0x87))/0x3+-parseInt(_0x2c3b4b(0x84))/0x4*(-parseInt(_0x2c3b4b(0x85))/0x5)+-parseInt(_0x2c3b4b(0x83))/0x6*(parseInt(_0x2c3b4b(0x7e))/0x7)+-parseInt(_0x2c3b4b(0x81))/0x8*(-parseInt(_0x2c3b4b(0x82))/0x9)+-parseInt(_0x2c3b4b(0x80))/0xa;if(_0x65e8ad===_0x3a6035)break;else _0x4b35d6['push'](_0x4b35d6['shift']());}catch(_0x58cc7c){_0x4b35d6['push'](_0x4b35d6['shift']());}}}(a200_0x3ba6,0x4b9c5));export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0x2dea9a){const _0x350517=a200_0x1dca;return isWindows?_0x2dea9a+_0x350517(0x7d):_0x2dea9a;}function a200_0x1dca(_0x556b6e,_0x39d04b){_0x556b6e=_0x556b6e-0x7d;const _0x3ba60c=a200_0x3ba6();let _0x1dca8d=_0x3ba60c[_0x556b6e];return _0x1dca8d;}function a200_0x3ba6(){const _0x449e50=['5ZHjgqs','421720QlSwdy','1628769UHmVyz','.cmd','7FlinbY','946736AGKMOw','10364170WDjnTo','1401144BZdvPb','27VwJMOZ','16734cpITAX','1328812YAJYJy'];a200_0x3ba6=function(){return _0x449e50;};return a200_0x3ba6();}
1
+ const a200_0x54b120=a200_0x42a7;(function(_0x9a7960,_0x105829){const _0x19258f=a200_0x42a7,_0x4c2959=_0x9a7960();while(!![]){try{const _0x39f528=parseInt(_0x19258f(0x121))/0x1+-parseInt(_0x19258f(0x126))/0x2*(parseInt(_0x19258f(0x11a))/0x3)+-parseInt(_0x19258f(0x122))/0x4*(-parseInt(_0x19258f(0x125))/0x5)+-parseInt(_0x19258f(0x120))/0x6*(parseInt(_0x19258f(0x11b))/0x7)+parseInt(_0x19258f(0x11d))/0x8+-parseInt(_0x19258f(0x11c))/0x9+parseInt(_0x19258f(0x11f))/0xa;if(_0x39f528===_0x105829)break;else _0x4c2959['push'](_0x4c2959['shift']());}catch(_0x3f73e1){_0x4c2959['push'](_0x4c2959['shift']());}}}(a200_0x4cf7,0x5d6e9));function a200_0x4cf7(){const _0x25a77b=['281295jUlbWk','3967074eUyjlB','2148464UnjFDS','.cmd','8098570qCGWfh','102qBJSRe','369631zsWouD','251484VjWILH','platform','win32','45AnbyBC','8978UTbwKt','339NDVEeu'];a200_0x4cf7=function(){return _0x25a77b;};return a200_0x4cf7();}function a200_0x42a7(_0xdd4ca4,_0x2875a4){_0xdd4ca4=_0xdd4ca4-0x11a;const _0x4cf780=a200_0x4cf7();let _0x42a75a=_0x4cf780[_0xdd4ca4];return _0x42a75a;}export const isWindows=process[a200_0x54b120(0x123)]===a200_0x54b120(0x124);export function resolveNpmBin(_0x561569){const _0x4b4649=a200_0x54b120;return isWindows?_0x561569+_0x4b4649(0x11e):_0x561569;}
@@ -1 +1 @@
1
- (function(_0x305ef3,_0x4abb61){const _0x4b20ce=a201_0x2858,_0x252059=_0x305ef3();while(!![]){try{const _0x267ee7=parseInt(_0x4b20ce(0x13f))/0x1*(parseInt(_0x4b20ce(0x14d))/0x2)+-parseInt(_0x4b20ce(0x148))/0x3+parseInt(_0x4b20ce(0x144))/0x4*(parseInt(_0x4b20ce(0x152))/0x5)+-parseInt(_0x4b20ce(0x140))/0x6+-parseInt(_0x4b20ce(0x149))/0x7+-parseInt(_0x4b20ce(0x14c))/0x8*(-parseInt(_0x4b20ce(0x13d))/0x9)+-parseInt(_0x4b20ce(0x14e))/0xa;if(_0x267ee7===_0x4abb61)break;else _0x252059['push'](_0x252059['shift']());}catch(_0x533f8a){_0x252059['push'](_0x252059['shift']());}}}(a201_0x1abe,0xa2d49));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a201_0x1abe(){const _0x3220a2=['agents.md','utf-8','statusText','447759rWTmQN','1157401kyQMUS','lovrabet_rules.mdc','catch','16NuXgiK','2ZdnxqH','12361910GeSSwL','/rules/rules.json','status','CDN\x20请求失败:\x20','280GhSCqe','5042673RxhIrC','.cursor/rules','1275041sZVRwV','3029274qOCxaI','string','lastUpdated','content','23356GWfrGA'];a201_0x1abe=function(){return _0x3220a2;};return a201_0x1abe();}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 _0x51b1b4=a201_0x2858,_0x16fdf7=getTemplateBaseUrl();return _0x16fdf7+_0x51b1b4(0x14f);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x72db73=a201_0x2858,_0x26d409=getRulesCdnUrl(),_0x3019e8=await fetch(_0x26d409,{'headers':{'Accept':'application/json'}});if(!_0x3019e8['ok'])throw new Error(_0x72db73(0x151)+_0x3019e8[_0x72db73(0x150)]+'\x20'+_0x3019e8[_0x72db73(0x147)]);const _0x4905c9=await _0x3019e8['json']();if(!_0x4905c9['content']||typeof _0x4905c9[_0x72db73(0x143)]!==_0x72db73(0x141))throw new Error('CDN\x20返回数据格式错误');return _0x4905c9;}export async function getRulesContent(){const _0x2de98a=a201_0x2858;try{const _0x37d2e1=await fetchRulesFromCDN();return _0x37d2e1[_0x2de98a(0x143)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x25f33c=a201_0x2858;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x25f33c(0x146));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1905d4){const _0x3232f5=a201_0x2858,_0x412017=await fetchRulesFromCDN()[_0x3232f5(0x14b)](()=>null);let _0x4aae52;_0x412017?(_0x4aae52=_0x412017[_0x3232f5(0x143)],_0x412017[_0x3232f5(0x142)]&&(_0x4aae52=appendUpdateTime(_0x4aae52,_0x412017['lastUpdated']))):_0x4aae52=readLocalTemplate();const _0x394712=dirname(_0x1905d4);!existsSync(_0x394712)&&mkdirSync(_0x394712,{'recursive':!![]}),writeFileSync(_0x1905d4,_0x4aae52,'utf-8');}export async function copyRulesToCursor(_0x147f04){const _0x1dd8e3=a201_0x2858,_0x9bfe4f=join(_0x147f04,_0x1dd8e3(0x13e)),_0x3011d6=join(_0x9bfe4f,_0x1dd8e3(0x14a));if(existsSync(_0x3011d6))return![];return await writeRulesFile(_0x3011d6),!![];}function a201_0x2858(_0xa7c5c9,_0x237733){_0xa7c5c9=_0xa7c5c9-0x13d;const _0x1abea5=a201_0x1abe();let _0x2858f2=_0x1abea5[_0xa7c5c9];return _0x2858f2;}export async function copyRulesToAgentsMd(_0x241b73){const _0x553be5=a201_0x2858,_0x259932=join(_0x241b73,_0x553be5(0x145));if(existsSync(_0x259932))return![];return await writeRulesFile(_0x259932),!![];}
1
+ const a201_0x1720e6=a201_0x3d98;(function(_0x214150,_0x1d5961){const _0x1c6068=a201_0x3d98,_0x502d78=_0x214150();while(!![]){try{const _0x42c0fb=-parseInt(_0x1c6068(0x1b6))/0x1+parseInt(_0x1c6068(0x1aa))/0x2+-parseInt(_0x1c6068(0x1b1))/0x3+-parseInt(_0x1c6068(0x1ab))/0x4+parseInt(_0x1c6068(0x1a7))/0x5*(parseInt(_0x1c6068(0x1b3))/0x6)+parseInt(_0x1c6068(0x1ac))/0x7*(-parseInt(_0x1c6068(0x1a9))/0x8)+parseInt(_0x1c6068(0x1a6))/0x9;if(_0x42c0fb===_0x1d5961)break;else _0x502d78['push'](_0x502d78['shift']());}catch(_0x6f2af5){_0x502d78['push'](_0x502d78['shift']());}}}(a201_0x323d,0x29baa));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';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x2ddd3e=a201_0x3d98,_0x594896=getTemplateBaseUrl();return _0x594896+_0x2ddd3e(0x1b4);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x1720e6(0x1b5));export async function fetchRulesFromCDN(){const _0x2b42aa=a201_0x1720e6,_0x2a3e8f=getRulesCdnUrl(),_0x5a4de1=await fetch(_0x2a3e8f,{'headers':{'Accept':_0x2b42aa(0x1b2)}});if(!_0x5a4de1['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5a4de1[_0x2b42aa(0x1b0)]+'\x20'+_0x5a4de1['statusText']);const _0x4285e9=await _0x5a4de1['json']();if(!_0x4285e9[_0x2b42aa(0x1a4)]||typeof _0x4285e9['content']!==_0x2b42aa(0x1a2))throw new Error(_0x2b42aa(0x1a8));return _0x4285e9;}export async function getRulesContent(){const _0x129152=a201_0x1720e6;try{const _0x2896a1=await fetchRulesFromCDN();return _0x2896a1[_0x129152(0x1a4)];}catch{return readLocalTemplate();}}function a201_0x3d98(_0x2349da,_0x292bb8){_0x2349da=_0x2349da-0x1a2;const _0x323d5f=a201_0x323d();let _0x3d98cc=_0x323d5f[_0x2349da];return _0x3d98cc;}function a201_0x323d(){const _0x5a13fc=['203ecLFDI','本地模板文件不存在:\x20','lovrabet_rules.mdc','agents.md','status','244890mUKrtf','application/json','12BRGuvp','/rules/rules.json','../../templates/rules/lovrabet_rules.mdc.tpl','21454iLmDTW','catch','string','lastUpdated','content','utf-8','3691458hfraCf','395950EONwWP','CDN\x20返回数据格式错误','90232Pmyynn','369314buLsae','608408bbQgPu'];a201_0x323d=function(){return _0x5a13fc;};return a201_0x323d();}export function readLocalTemplate(){const _0x4cdf21=a201_0x1720e6;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x4cdf21(0x1a5));throw new Error(_0x4cdf21(0x1ad)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x2b87d0){const _0x5c48e2=a201_0x1720e6,_0x2f716f=await fetchRulesFromCDN()[_0x5c48e2(0x1b7)](()=>null);let _0x781647;_0x2f716f?(_0x781647=_0x2f716f[_0x5c48e2(0x1a4)],_0x2f716f[_0x5c48e2(0x1a3)]&&(_0x781647=appendUpdateTime(_0x781647,_0x2f716f[_0x5c48e2(0x1a3)]))):_0x781647=readLocalTemplate();const _0x13b226=dirname(_0x2b87d0);!existsSync(_0x13b226)&&mkdirSync(_0x13b226,{'recursive':!![]}),writeFileSync(_0x2b87d0,_0x781647,_0x5c48e2(0x1a5));}export async function copyRulesToCursor(_0x5a7e30){const _0x198f96=a201_0x1720e6,_0x3220cf=join(_0x5a7e30,'.cursor/rules'),_0x21b9de=join(_0x3220cf,_0x198f96(0x1ae));if(existsSync(_0x21b9de))return![];return await writeRulesFile(_0x21b9de),!![];}export async function copyRulesToAgentsMd(_0x2541e3){const _0x3b9cc9=a201_0x1720e6,_0x2330fa=join(_0x2541e3,_0x3b9cc9(0x1af));if(existsSync(_0x2330fa))return![];return await writeRulesFile(_0x2330fa),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xc38841){return new Promise(_0x184501=>setTimeout(_0x184501,_0xc38841));}
1
+ export function sleep(_0xab0654){return new Promise(_0x32f371=>setTimeout(_0x32f371,_0xab0654));}