@lovrabet/rabetbase-cli 2.2.3-beta.2 → 2.2.4-beta.1

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 (205) 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/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x356c02,_0x1097fe){const _0x41d324=a183_0x7743,_0x404531=_0x356c02();while(!![]){try{const _0x5e96dc=parseInt(_0x41d324(0x7e))/0x1*(parseInt(_0x41d324(0x72))/0x2)+parseInt(_0x41d324(0x7a))/0x3+-parseInt(_0x41d324(0x73))/0x4+parseInt(_0x41d324(0x71))/0x5+parseInt(_0x41d324(0x78))/0x6*(parseInt(_0x41d324(0x7c))/0x7)+-parseInt(_0x41d324(0x74))/0x8*(parseInt(_0x41d324(0x75))/0x9)+-parseInt(_0x41d324(0x70))/0xa;if(_0x5e96dc===_0x1097fe)break;else _0x404531['push'](_0x404531['shift']());}catch(_0x374a3e){_0x404531['push'](_0x404531['shift']());}}}(a183_0x4041,0x2f7f2));function a183_0x7743(_0x5ab6cc,_0xd8f522){_0x5ab6cc=_0x5ab6cc-0x70;const _0x404132=a183_0x4041();let _0x774303=_0x404132[_0x5ab6cc];return _0x774303;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a183_0x4041(){const _0x3dd70e=['9314170lMYHcs','1907110Lphlrz','7138BoNGmO','124760KUPlMw','16FHdYvx','171081EHgTLa','logData','version','6qssiha','manual','860679NKJjUF','spanName','1664369FEfMzI','traceparent','81rcFXfT'];a183_0x4041=function(){return _0x3dd70e;};return a183_0x4041();}export async function sendCliTraceLog(_0x36d0f3){const _0x5983c3=a183_0x7743;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x36d0f3['traceName']??DEFAULT_TRACE_NAME,'version':_0x36d0f3[_0x5983c3(0x77)]??getCliVersion(),'spanName':_0x36d0f3[_0x5983c3(0x7b)],'eventType':_0x5983c3(0x79),'logData':_0x36d0f3[_0x5983c3(0x76)],..._0x36d0f3[_0x5983c3(0x7d)]&&{'traceparent':_0x36d0f3['traceparent']}});}
1
+ (function(_0x3281aa,_0x40e4ba){const _0x4b1dab=a183_0x5902,_0x149a6c=_0x3281aa();while(!![]){try{const _0x5a8e36=-parseInt(_0x4b1dab(0x181))/0x1*(parseInt(_0x4b1dab(0x185))/0x2)+-parseInt(_0x4b1dab(0x184))/0x3*(parseInt(_0x4b1dab(0x187))/0x4)+parseInt(_0x4b1dab(0x186))/0x5+-parseInt(_0x4b1dab(0x189))/0x6+parseInt(_0x4b1dab(0x183))/0x7+parseInt(_0x4b1dab(0x188))/0x8*(parseInt(_0x4b1dab(0x18c))/0x9)+parseInt(_0x4b1dab(0x18d))/0xa;if(_0x5a8e36===_0x40e4ba)break;else _0x149a6c['push'](_0x149a6c['shift']());}catch(_0x5f08e8){_0x149a6c['push'](_0x149a6c['shift']());}}}(a183_0xa2c9,0x4c2da));import{sendTraceLog}from'@lovrabet/otel-logger';function a183_0x5902(_0x47e484,_0x27bbfc){_0x47e484=_0x47e484-0x17f;const _0xa2c9ea=a183_0xa2c9();let _0x59024a=_0xa2c9ea[_0x47e484];return _0x59024a;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a183_0xa2c9(){const _0x5ccbee=['1763gxJBSt','traceparent','2207478OZwNdW','40413NrglrR','604zcNJYB','2111340PVYnuQ','48VVqlys','8TEKQgV','1405710wdHifv','version','logData','4311018CCLEcn','237650KrFJuz','traceName','manual'];a183_0xa2c9=function(){return _0x5ccbee;};return a183_0xa2c9();}export async function sendCliTraceLog(_0xb44e57){const _0xfb3c78=a183_0x5902;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xb44e57[_0xfb3c78(0x17f)]??DEFAULT_TRACE_NAME,'version':_0xb44e57[_0xfb3c78(0x18a)]??getCliVersion(),'spanName':_0xb44e57['spanName'],'eventType':_0xfb3c78(0x180),'logData':_0xb44e57[_0xfb3c78(0x18b)],..._0xb44e57[_0xfb3c78(0x182)]&&{'traceparent':_0xb44e57['traceparent']}});}
@@ -1 +1 @@
1
- const a184_0xec3ffe=a184_0x1928;(function(_0x4b0585,_0x241b01){const _0x5eb8e0=a184_0x1928,_0x5557a8=_0x4b0585();while(!![]){try{const _0x160811=-parseInt(_0x5eb8e0(0x16d))/0x1*(-parseInt(_0x5eb8e0(0x162))/0x2)+-parseInt(_0x5eb8e0(0x16b))/0x3+-parseInt(_0x5eb8e0(0x163))/0x4*(parseInt(_0x5eb8e0(0x165))/0x5)+-parseInt(_0x5eb8e0(0x16c))/0x6+-parseInt(_0x5eb8e0(0x161))/0x7+parseInt(_0x5eb8e0(0x166))/0x8*(parseInt(_0x5eb8e0(0x15f))/0x9)+parseInt(_0x5eb8e0(0x16e))/0xa*(parseInt(_0x5eb8e0(0x170))/0xb);if(_0x160811===_0x241b01)break;else _0x5557a8['push'](_0x5557a8['shift']());}catch(_0x337c5b){_0x5557a8['push'](_0x5557a8['shift']());}}}(a184_0x1a82,0xe616b));function a184_0x1928(_0x5dc9a9,_0xe15ac){_0x5dc9a9=_0x5dc9a9-0x15e;const _0x1a8269=a184_0x1a82();let _0x1928d8=_0x1a8269[_0x5dc9a9];return _0x1928d8;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a184_0xec3ffe(0x16f);export const PLATFORM_ISSUE_SPAN_NAME=a184_0xec3ffe(0x167);function a184_0x1a82(){const _0x5e35cd=['join','5600541SyUTgc','995478VJrHWB','63HZnxzu','321730XDmcRB','platform-issue-log-collect','1694nhqitJ','originalBytes','4815qKIkcH','description','4140143vQEXZk','4202xeEkZf','1508sobiku','truncated','20845sQCjuG','768hrmDgt','issue.log.collect','redactionCount','sanitize'];a184_0x1a82=function(){return _0x5e35cd;};return a184_0x1a82();}export async function sendPlatformIssueCollectLog(_0x4e78c2){const _0x299bc1=a184_0xec3ffe;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4e78c2['title'],'issue.description':_0x4e78c2[_0x299bc1(0x160)],..._0x4e78c2[_0x299bc1(0x169)]?{'issue.description_original_bytes':_0x4e78c2['sanitize'][_0x299bc1(0x15e)],'issue.description_truncated':_0x4e78c2[_0x299bc1(0x169)][_0x299bc1(0x164)],'issue.description_redactions':_0x4e78c2[_0x299bc1(0x169)][_0x299bc1(0x168)],'issue.description_redaction_kinds':_0x4e78c2['sanitize']['redactionKinds'][_0x299bc1(0x16a)](',')}:{}}});}
1
+ const a184_0x50968d=a184_0x19de;(function(_0xa506a8,_0x584fce){const _0x473295=a184_0x19de,_0x3b1cdf=_0xa506a8();while(!![]){try{const _0xad5fc5=-parseInt(_0x473295(0x1d5))/0x1+parseInt(_0x473295(0x1cf))/0x2+-parseInt(_0x473295(0x1d0))/0x3+-parseInt(_0x473295(0x1d1))/0x4*(parseInt(_0x473295(0x1da))/0x5)+parseInt(_0x473295(0x1d4))/0x6+parseInt(_0x473295(0x1db))/0x7+parseInt(_0x473295(0x1d8))/0x8;if(_0xad5fc5===_0x584fce)break;else _0x3b1cdf['push'](_0x3b1cdf['shift']());}catch(_0x30d814){_0x3b1cdf['push'](_0x3b1cdf['shift']());}}}(a184_0x18d5,0xc9b99));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a184_0x50968d(0x1d3);function a184_0x18d5(){const _0x1e6b7c=['939738oUeQFD','3172938ziTSJm','16IyIVSf','description','platform-issue-log-collect','239142EbclJe','1342617gwVotH','sanitize','originalBytes','28568472pXCcYG','join','1610085adonqJ','3036677gGuDXI','redactionCount'];a184_0x18d5=function(){return _0x1e6b7c;};return a184_0x18d5();}function a184_0x19de(_0x324298,_0x320d1c){_0x324298=_0x324298-0x1ce;const _0x18d532=a184_0x18d5();let _0x19de52=_0x18d532[_0x324298];return _0x19de52;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x34eb22){const _0x578b15=a184_0x50968d;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x34eb22['title'],'issue.description':_0x34eb22[_0x578b15(0x1d2)],..._0x34eb22[_0x578b15(0x1d6)]?{'issue.description_original_bytes':_0x34eb22[_0x578b15(0x1d6)][_0x578b15(0x1d7)],'issue.description_truncated':_0x34eb22[_0x578b15(0x1d6)]['truncated'],'issue.description_redactions':_0x34eb22[_0x578b15(0x1d6)][_0x578b15(0x1ce)],'issue.description_redaction_kinds':_0x34eb22[_0x578b15(0x1d6)]['redactionKinds'][_0x578b15(0x1d9)](',')}:{}}});}
@@ -1 +1 @@
1
- const a186_0x370b56=a186_0x4e3e;(function(_0x19bfd3,_0x3ac8a8){const _0x502595=a186_0x4e3e,_0x3bbfb6=_0x19bfd3();while(!![]){try{const _0x14bf28=parseInt(_0x502595(0x182))/0x1*(parseInt(_0x502595(0x171))/0x2)+parseInt(_0x502595(0x176))/0x3*(parseInt(_0x502595(0x16f))/0x4)+parseInt(_0x502595(0x16a))/0x5*(parseInt(_0x502595(0x165))/0x6)+-parseInt(_0x502595(0x187))/0x7*(parseInt(_0x502595(0x168))/0x8)+-parseInt(_0x502595(0x16c))/0x9+parseInt(_0x502595(0x17f))/0xa+-parseInt(_0x502595(0x18e))/0xb;if(_0x14bf28===_0x3ac8a8)break;else _0x3bbfb6['push'](_0x3bbfb6['shift']());}catch(_0x5e9e22){_0x3bbfb6['push'](_0x3bbfb6['shift']());}}}(a186_0x51ad,0xd4c44));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a186_0x370b56(0x183),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a186_0x370b56(0x170)}]},'windsurf':{'name':'Windsurf','description':a186_0x370b56(0x164),'folders':[a186_0x370b56(0x16e)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x17c),'template':a186_0x370b56(0x170)}]},'claude':{'name':a186_0x370b56(0x17a),'description':'Claude\x20Code','folders':[a186_0x370b56(0x166)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x177),'template':a186_0x370b56(0x170)}]},'cline':{'name':a186_0x370b56(0x16b),'description':a186_0x370b56(0x15c),'folders':['.cline'],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x15a),'template':a186_0x370b56(0x170)}]},'codex':{'name':a186_0x370b56(0x179),'description':'Codex\x20IDE','folders':[a186_0x370b56(0x173)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x18f),'template':'SKILL.md.tpl'}]},'opencode':{'name':a186_0x370b56(0x160),'description':a186_0x370b56(0x169),'folders':[a186_0x370b56(0x167)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x17e),'template':a186_0x370b56(0x170)}]},'qoder':{'name':a186_0x370b56(0x185),'description':a186_0x370b56(0x162),'folders':['.qoder'],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x15e),'template':a186_0x370b56(0x170)},{'type':a186_0x370b56(0x18b),'path':'.qoder/skills/lovrabet/SKILL.md','template':a186_0x370b56(0x170)}]},'codebuddy':{'name':a186_0x370b56(0x16d),'description':a186_0x370b56(0x180),'folders':[a186_0x370b56(0x175)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x184),'template':'SKILL.md.tpl'}]},'trae':{'name':a186_0x370b56(0x188),'description':a186_0x370b56(0x186),'folders':['.trae'],'files':[{'type':a186_0x370b56(0x18b),'path':'.trae/skills/lovrabet/SKILL.md','template':a186_0x370b56(0x170)}]}};function a186_0x51ad(){const _0x265cf2=['3RilkYb','.claude/skills/lovrabet/SKILL.md','cursor','Codex','Claude\x20Code','.agent','.windsurf/workflows/rabetbase.md','antigravity','.opencode/skills/lovrabet/SKILL.md','17318110wbPOKX','CodeBuddy\x20IDE','codebuddy','1231534GAvPJP','.cursorrules','.codebuddy/skills/lovrabet/SKILL.md','Qoder','Trae\x20IDE','911946mDsnqH','Trae','opencode','Antigravity','file','cline','codex','12779426fpeADa','.codex/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.cline/skills/lovrabet/SKILL.md','agent','Cline\x20IDE','claude','.qoder/rules/rabetbase.md','其他\x20(通用模板)','OpenCode','windsurf','Qoder\x20IDE','qoder','Windsurf\x20IDE','1470znkhPY','.claude','.opencode','40YVGXnw','OpenCode\x20IDE','18985ENOtit','Cline','14064264MecOXu','CodeBuddy','.windsurf','1414936KKStOm','SKILL.md.tpl','2zQAEMZ','trae','.codex','.agent/skills/lovrabet/SKILL.md','.codebuddy'];a186_0x51ad=function(){return _0x265cf2;};return a186_0x51ad();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x370b56(0x15f),'description':'通用模板\x20-\x20兜底方案','folders':[a186_0x370b56(0x17b)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x174),'template':a186_0x370b56(0x170)}]},'antigravity':{'name':a186_0x370b56(0x18a),'description':a186_0x370b56(0x190),'folders':[a186_0x370b56(0x17b)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x174),'template':a186_0x370b56(0x170)}]}};function a186_0x4e3e(_0x5d297a,_0xaefa86){_0x5d297a=_0x5d297a-0x15a;const _0x51ad83=a186_0x51ad();let _0x4e3e89=_0x51ad83[_0x5d297a];return _0x4e3e89;}export const CORE_IDE_LIST=[a186_0x370b56(0x15d),a186_0x370b56(0x18c),'codebuddy','codex','cursor',a186_0x370b56(0x189),a186_0x370b56(0x163),a186_0x370b56(0x172),'windsurf'];export const IDE_LIST=[a186_0x370b56(0x17d),a186_0x370b56(0x15d),a186_0x370b56(0x18c),a186_0x370b56(0x181),a186_0x370b56(0x18d),a186_0x370b56(0x178),a186_0x370b56(0x189),'qoder','trae',a186_0x370b56(0x161),a186_0x370b56(0x15b)];export const ALL_CORE_IDES=['cursor','windsurf',a186_0x370b56(0x15d),a186_0x370b56(0x18c),a186_0x370b56(0x18d),'opencode',a186_0x370b56(0x163),'codebuddy',a186_0x370b56(0x172)];
1
+ function a186_0x422f(_0x571b8b,_0x219e97){_0x571b8b=_0x571b8b-0x188;const _0x145795=a186_0x1457();let _0x422f4f=_0x145795[_0x571b8b];return _0x422f4f;}const a186_0x3b007c=a186_0x422f;function a186_0x1457(){const _0x2ff56d=['36OlvItQ','cursor','.qoder/rules/rabetbase.md','Cursor','其他\x20(通用模板)','1081515FonshO','.opencode','Claude\x20Code','.qoder/skills/lovrabet/SKILL.md','OpenCode\x20IDE','.codex','.codebuddy','Antigravity','.claude/skills/lovrabet/SKILL.md','codebuddy','1698342ldiciM','antigravity','file','.agent/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','codex','Qoder','136RJqNFB','.cursorrules','11289060OQAjyn','14526wtGurb','.opencode/skills/lovrabet/SKILL.md','.trae','qoder','819aYdJpp','cline','opencode','CodeBuddy\x20IDE','Trae','windsurf','Windsurf\x20IDE','.codex/skills/lovrabet/SKILL.md','.windsurf','15897190BYNlCr','trae','.windsurf/workflows/rabetbase.md','599365sGuvJW','Windsurf','claude','.agent','717346GEtGZE','Antigravity\x20IDE','agent','SKILL.md.tpl','Qoder\x20IDE','Cline','.qoder','.cursor/skills/rabetbase.md'];a186_0x1457=function(){return _0x2ff56d;};return a186_0x1457();}(function(_0x3fb312,_0x3ee39d){const _0x1dd208=a186_0x422f,_0x496ab1=_0x3fb312();while(!![]){try{const _0x483d88=parseInt(_0x1dd208(0x1a7))/0x1+parseInt(_0x1dd208(0x1bb))/0x2*(-parseInt(_0x1dd208(0x18a))/0x3)+parseInt(_0x1dd208(0x1a2))/0x4*(parseInt(_0x1dd208(0x196))/0x5)+-parseInt(_0x1dd208(0x1b1))/0x6+parseInt(_0x1dd208(0x19a))/0x7*(-parseInt(_0x1dd208(0x1b8))/0x8)+parseInt(_0x1dd208(0x1ba))/0x9+parseInt(_0x1dd208(0x193))/0xa;if(_0x483d88===_0x3ee39d)break;else _0x496ab1['push'](_0x496ab1['shift']());}catch(_0x397a2e){_0x496ab1['push'](_0x496ab1['shift']());}}}(a186_0x1457,0xf3461));export const CORE_IDE_CONFIGS={'cursor':{'name':a186_0x3b007c(0x1a5),'description':'Cursor\x20IDE','folders':[a186_0x3b007c(0x1b9),'.cursor'],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1a1),'template':a186_0x3b007c(0x19d)}]},'windsurf':{'name':a186_0x3b007c(0x197),'description':a186_0x3b007c(0x190),'folders':[a186_0x3b007c(0x192)],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x195),'template':'SKILL.md.tpl'}]},'claude':{'name':a186_0x3b007c(0x1a9),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1af),'template':a186_0x3b007c(0x19d)}]},'cline':{'name':a186_0x3b007c(0x19f),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a186_0x3b007c(0x1b3),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a186_0x3b007c(0x1ac)],'files':[{'type':'file','path':a186_0x3b007c(0x191),'template':a186_0x3b007c(0x19d)}]},'opencode':{'name':'OpenCode','description':a186_0x3b007c(0x1ab),'folders':[a186_0x3b007c(0x1a8)],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1bc),'template':a186_0x3b007c(0x19d)}]},'qoder':{'name':a186_0x3b007c(0x1b7),'description':a186_0x3b007c(0x19e),'folders':[a186_0x3b007c(0x1a0)],'files':[{'type':'file','path':a186_0x3b007c(0x1a4),'template':'SKILL.md.tpl'},{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1aa),'template':a186_0x3b007c(0x19d)}]},'codebuddy':{'name':'CodeBuddy','description':a186_0x3b007c(0x18d),'folders':[a186_0x3b007c(0x1ad)],'files':[{'type':a186_0x3b007c(0x1b3),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a186_0x3b007c(0x19d)}]},'trae':{'name':a186_0x3b007c(0x18e),'description':'Trae\x20IDE','folders':[a186_0x3b007c(0x188)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md','template':a186_0x3b007c(0x19d)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x3b007c(0x1a6),'description':a186_0x3b007c(0x1b5),'folders':[a186_0x3b007c(0x199)],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1b4),'template':a186_0x3b007c(0x19d)}]},'antigravity':{'name':a186_0x3b007c(0x1ae),'description':a186_0x3b007c(0x19b),'folders':[a186_0x3b007c(0x199)],'files':[{'type':a186_0x3b007c(0x1b3),'path':a186_0x3b007c(0x1b4),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a186_0x3b007c(0x198),'cline',a186_0x3b007c(0x1b0),'codex',a186_0x3b007c(0x1a3),'opencode','qoder',a186_0x3b007c(0x194),a186_0x3b007c(0x18f)];export const IDE_LIST=[a186_0x3b007c(0x1b2),a186_0x3b007c(0x198),a186_0x3b007c(0x18b),a186_0x3b007c(0x1b0),a186_0x3b007c(0x1b6),a186_0x3b007c(0x1a3),a186_0x3b007c(0x18c),a186_0x3b007c(0x189),a186_0x3b007c(0x194),a186_0x3b007c(0x18f),a186_0x3b007c(0x19c)];export const ALL_CORE_IDES=['cursor',a186_0x3b007c(0x18f),a186_0x3b007c(0x198),'cline',a186_0x3b007c(0x1b6),a186_0x3b007c(0x18c),a186_0x3b007c(0x189),'codebuddy',a186_0x3b007c(0x194)];
@@ -1 +1 @@
1
- (function(_0x5d4fcb,_0x1d6534){const _0x2bf864=a187_0xe0fb,_0x153e1d=_0x5d4fcb();while(!![]){try{const _0x586000=-parseInt(_0x2bf864(0x112))/0x1+-parseInt(_0x2bf864(0x10d))/0x2+-parseInt(_0x2bf864(0x116))/0x3+parseInt(_0x2bf864(0x110))/0x4*(-parseInt(_0x2bf864(0x115))/0x5)+-parseInt(_0x2bf864(0x10f))/0x6*(parseInt(_0x2bf864(0x113))/0x7)+parseInt(_0x2bf864(0x114))/0x8+-parseInt(_0x2bf864(0x111))/0x9*(-parseInt(_0x2bf864(0x10e))/0xa);if(_0x586000===_0x1d6534)break;else _0x153e1d['push'](_0x153e1d['shift']());}catch(_0x161f0e){_0x153e1d['push'](_0x153e1d['shift']());}}}(a187_0x2ded,0xaf085));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a187_0xe0fb(_0x56eda5,_0x330c66){_0x56eda5=_0x56eda5-0x10d;const _0x2ded29=a187_0x2ded();let _0xe0fbd8=_0x2ded29[_0x56eda5];return _0xe0fbd8;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a187_0x2ded(){const _0x10de3f=['3174TlSfoH','160GUaTtI','27954zfaWtV','99056cQMaGg','2198kCzFJz','10894856uSOWMI','138825izKLdz','979935waSmwD','674222AULwez','4490AvokRk'];a187_0x2ded=function(){return _0x10de3f;};return a187_0x2ded();}
1
+ (function(_0x3163e5,_0x2665a3){const _0x4fd869=a187_0x1ca6,_0x9294e4=_0x3163e5();while(!![]){try{const _0x1ef72e=-parseInt(_0x4fd869(0x147))/0x1+parseInt(_0x4fd869(0x144))/0x2+parseInt(_0x4fd869(0x149))/0x3+parseInt(_0x4fd869(0x14a))/0x4+-parseInt(_0x4fd869(0x145))/0x5*(-parseInt(_0x4fd869(0x14b))/0x6)+parseInt(_0x4fd869(0x14c))/0x7+parseInt(_0x4fd869(0x146))/0x8*(-parseInt(_0x4fd869(0x148))/0x9);if(_0x1ef72e===_0x2665a3)break;else _0x9294e4['push'](_0x9294e4['shift']());}catch(_0x358518){_0x9294e4['push'](_0x9294e4['shift']());}}}(a187_0xc9da,0x9a488));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a187_0x1ca6(_0x3c6085,_0x1ee789){_0x3c6085=_0x3c6085-0x144;const _0xc9dac4=a187_0xc9da();let _0x1ca6ab=_0xc9dac4[_0x3c6085];return _0x1ca6ab;}function a187_0xc9da(){const _0x430ef0=['40SABaiH','85924fHGAUn','2477781hKJAjS','867066KXNUBQ','2198324bcxbsh','6QTqYTZ','5632207cTwoCl','176216NtvjZN','1815505grDvxZ'];a187_0xc9da=function(){return _0x430ef0;};return a187_0xc9da();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5e971d,_0xd4dd2a){const _0x1451e6=a188_0x2492,_0x1584b9=_0x5e971d();while(!![]){try{const _0x4983a0=-parseInt(_0x1451e6(0x93))/0x1+parseInt(_0x1451e6(0x85))/0x2*(-parseInt(_0x1451e6(0x82))/0x3)+parseInt(_0x1451e6(0x89))/0x4+parseInt(_0x1451e6(0x8b))/0x5*(-parseInt(_0x1451e6(0x83))/0x6)+parseInt(_0x1451e6(0x88))/0x7*(-parseInt(_0x1451e6(0x86))/0x8)+-parseInt(_0x1451e6(0x92))/0x9*(parseInt(_0x1451e6(0x8f))/0xa)+parseInt(_0x1451e6(0x91))/0xb;if(_0x4983a0===_0xd4dd2a)break;else _0x1584b9['push'](_0x1584b9['shift']());}catch(_0x14795c){_0x1584b9['push'](_0x1584b9['shift']());}}}(a188_0x2adb,0x18e76));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x278aa0=a188_0x2492,_0x548325=getTemplateBaseUrl(),_0x540b7f=[_0x548325+_0x278aa0(0x8e),_0x548325+_0x278aa0(0x84)];for(const _0x32969f of _0x540b7f){try{const _0x1400c0=await fetch(_0x32969f,{'headers':{'Accept':'application/json'}});if(!_0x1400c0['ok'])continue;const _0x3b32b6=await _0x1400c0[_0x278aa0(0x8d)]();if(!_0x3b32b6[_0x278aa0(0x8c)]?.['stableVersion']||!_0x3b32b6[_0x278aa0(0x8a)]?.['node']?.[_0x278aa0(0x87)])continue;return _0x3b32b6;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2d8def=a188_0x2492,_0x57fd46=Date[_0x2d8def(0x90)]();if(hasCachedConfig){const _0x344d53=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x57fd46-cacheTime<_0x344d53)return cachedConfig;}const _0x4091fb=await fetchCdnConfig();return cachedConfig=_0x4091fb,cacheTime=_0x57fd46,hasCachedConfig=!![],_0x4091fb;}function a188_0x2adb(){const _0x5a5782=['7430sRoKNc','cli','json','/config.json','143400OHenOc','now','3664122tWWxNn','81UHFjxc','142243zHejRy','6qBuNgv','336fChSrW','/config/index.json','9624zbHyFD','262392rAxrYB','stableVersion','7DIGSQk','663384NsfJsh','sdk'];a188_0x2adb=function(){return _0x5a5782;};return a188_0x2adb();}function a188_0x2492(_0x2a3c5f,_0x2de166){_0x2a3c5f=_0x2a3c5f-0x82;const _0x2adb62=a188_0x2adb();let _0x2492ea=_0x2adb62[_0x2a3c5f];return _0x2492ea;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x3524d1,_0x4e9b19){const _0x3fb622=a188_0x13bd,_0x5bf2ef=_0x3524d1();while(!![]){try{const _0x1b71d5=-parseInt(_0x3fb622(0x8f))/0x1*(-parseInt(_0x3fb622(0x99))/0x2)+parseInt(_0x3fb622(0x9f))/0x3*(-parseInt(_0x3fb622(0x9c))/0x4)+parseInt(_0x3fb622(0x98))/0x5*(parseInt(_0x3fb622(0x95))/0x6)+-parseInt(_0x3fb622(0x97))/0x7+parseInt(_0x3fb622(0x94))/0x8+parseInt(_0x3fb622(0x96))/0x9*(parseInt(_0x3fb622(0x8e))/0xa)+parseInt(_0x3fb622(0x9b))/0xb;if(_0x1b71d5===_0x4e9b19)break;else _0x5bf2ef['push'](_0x5bf2ef['shift']());}catch(_0x50016a){_0x5bf2ef['push'](_0x5bf2ef['shift']());}}}(a188_0x3528,0xea3f0));function a188_0x3528(){const _0x4510e2=['10FWETpU','395871ZivWYO','json','stableVersion','/config.json','/config/index.json','2986304mEDWON','288666TYjlZg','9790857LcCwbd','3451980oFRhUS','85JbTYHE','2dbCGwP','now','1316876gSXMzO','12228bSSBDJ','sdk','node','1317LILHuG'];a188_0x3528=function(){return _0x4510e2;};return a188_0x3528();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0xa29448=a188_0x13bd,_0x335136=getTemplateBaseUrl(),_0x1fca88=[_0x335136+_0xa29448(0x92),_0x335136+_0xa29448(0x93)];for(const _0x2c252c of _0x1fca88){try{const _0x10a554=await fetch(_0x2c252c,{'headers':{'Accept':'application/json'}});if(!_0x10a554['ok'])continue;const _0x20d3b9=await _0x10a554[_0xa29448(0x90)]();if(!_0x20d3b9['cli']?.[_0xa29448(0x91)]||!_0x20d3b9[_0xa29448(0x9d)]?.[_0xa29448(0x9e)]?.['stableVersion'])continue;return _0x20d3b9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a188_0x13bd(_0x13ead4,_0x19c89a){_0x13ead4=_0x13ead4-0x8e;const _0x3528ee=a188_0x3528();let _0x13bd73=_0x3528ee[_0x13ead4];return _0x13bd73;}export async function getCdnConfig(){const _0x1c609e=a188_0x13bd,_0x2924d1=Date[_0x1c609e(0x9a)]();if(hasCachedConfig){const _0x2fcdd5=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2924d1-cacheTime<_0x2fcdd5)return cachedConfig;}const _0x5ab463=await fetchCdnConfig();return cachedConfig=_0x5ab463,cacheTime=_0x2924d1,hasCachedConfig=!![],_0x5ab463;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a189_0x542a(){const _0x22ed1a=['1440408gTRBUF','node','↪\x20SDK\x20update\x20available','package.json','@lovrabet/sdk','45SrmjXk','\x20\x20\x20Stable\x20version:\x20','join','parse','1.2.0','minVersion','529518CcbxnM','npm\x20install\x20','sdk','node_modules','existsSync','packageName','10740456prChzf','coerce','some','all','200272PAoMVz','latest','version','stableVersion','devDependencies','6994971QRainC','14MnKnpo','\x1b[33m','readFileSync','log','1110404ceYwuj','497439kBBvlb','\x1b[1m','test','utf8','\x20\x20\x20Current\x20version:\x20','\x1b[0m'];a189_0x542a=function(){return _0x22ed1a;};return a189_0x542a();}const a189_0x5923b5=a189_0x1645;(function(_0x5101a3,_0x15f704){const _0x3b0950=a189_0x1645,_0x361153=_0x5101a3();while(!![]){try{const _0x5010ae=parseInt(_0x3b0950(0x180))/0x1+parseInt(_0x3b0950(0x187))/0x2+parseInt(_0x3b0950(0x181))/0x3+-parseInt(_0x3b0950(0x176))/0x4*(parseInt(_0x3b0950(0x166))/0x5)+parseInt(_0x3b0950(0x16c))/0x6*(-parseInt(_0x3b0950(0x17c))/0x7)+-parseInt(_0x3b0950(0x172))/0x8+parseInt(_0x3b0950(0x17b))/0x9;if(_0x5010ae===_0x15f704)break;else _0x361153['push'](_0x361153['shift']());}catch(_0x1ed279){_0x361153['push'](_0x361153['shift']());}}}(a189_0x542a,0xc447d));function a189_0x1645(_0x4cb578,_0x31dfc){_0x4cb578=_0x4cb578-0x165;const _0x542a66=a189_0x542a();let _0x1645ec=_0x542a66[_0x4cb578];return _0x1645ec;}import a189_0x444fbb from'node:fs';import a189_0x294b27 from'node:path';import a189_0x154e05 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a189_0x5923b5(0x16a);function isNonNumericVersion(_0x482dce){const _0x143f68=a189_0x5923b5,_0x5c0237=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5c0237[_0x143f68(0x174)](_0x55b839=>_0x55b839[_0x143f68(0x183)](_0x482dce));}function getInstalledVersion(_0x4b67ed,_0x9452aa){const _0x1dad57=a189_0x5923b5;try{const _0x1ba3f9=a189_0x294b27[_0x1dad57(0x168)](_0x4b67ed,_0x1dad57(0x16f),_0x9452aa,_0x1dad57(0x18a));if(a189_0x444fbb['existsSync'](_0x1ba3f9)){const _0x4c41da=JSON[_0x1dad57(0x169)](a189_0x444fbb[_0x1dad57(0x17e)](_0x1ba3f9,'utf-8'));return _0x4c41da[_0x1dad57(0x178)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3a495b=a189_0x5923b5;try{const _0x471dd8=await getCdnConfig();return _0x471dd8?.[_0x3a495b(0x16e)]?.[_0x3a495b(0x188)]?.[_0x3a495b(0x179)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3d96d6=a189_0x5923b5;try{const _0x249613=await getCdnConfig();return _0x249613?.[_0x3d96d6(0x16e)]?.[_0x3d96d6(0x188)]?.[_0x3d96d6(0x171)]||_0x3d96d6(0x165);}catch{return _0x3d96d6(0x165);}}export async function checkSdkVersion(_0x1dbaae){const _0x135204=a189_0x5923b5,_0x2ae940=a189_0x294b27[_0x135204(0x168)](_0x1dbaae,'package.json'),[_0x32dd68,_0x254b7b]=await Promise[_0x135204(0x175)]([getSdkStableVersion(),getSdkPackageName()]),_0x1e5aa5=_0x32dd68||FALLBACK_MIN_SDK_VERSION;if(!a189_0x444fbb['existsSync'](_0x2ae940))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};try{const _0x2d787f=JSON[_0x135204(0x169)](a189_0x444fbb[_0x135204(0x17e)](_0x2ae940,_0x135204(0x184))),_0x3de1c0=_0x2d787f['dependencies']||{},_0x368b26=_0x2d787f[_0x135204(0x17a)]||{},_0xb9812d=_0x3de1c0[_0x254b7b]||_0x368b26[_0x254b7b];if(!_0xb9812d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};let _0x5bb10d=getInstalledVersion(_0x1dbaae,_0x254b7b);!_0x5bb10d&&(_0x5bb10d=_0xb9812d);if(isNonNumericVersion(_0xb9812d))return{'installed':!![],'version':_0x5bb10d,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};const _0x181eae=a189_0x154e05['coerce'](_0x5bb10d),_0xdcb81f=a189_0x154e05[_0x135204(0x173)](_0x1e5aa5),_0x5445dd=_0x181eae&&_0xdcb81f?a189_0x154e05['lt'](_0x181eae,_0xdcb81f):![];return{'installed':!![],'version':_0x5bb10d,'needsUpgrade':_0x5445dd,'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};}}export function checkSdkVersionSync(_0x2edbe1){const _0x2d6902=a189_0x5923b5,_0x53bc43=a189_0x294b27['join'](_0x2edbe1,_0x2d6902(0x18a)),_0x2a9416=_0x2d6902(0x165);if(!a189_0x444fbb[_0x2d6902(0x170)](_0x53bc43))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};try{const _0x2ce8ff=JSON[_0x2d6902(0x169)](a189_0x444fbb[_0x2d6902(0x17e)](_0x53bc43,_0x2d6902(0x184))),_0x18b1de=_0x2ce8ff['dependencies']||{},_0x4d0104=_0x2ce8ff['devDependencies']||{},_0x28df9a=_0x18b1de[_0x2a9416]||_0x4d0104[_0x2a9416];if(!_0x28df9a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};let _0x1f0456=getInstalledVersion(_0x2edbe1,_0x2a9416);!_0x1f0456&&(_0x1f0456=_0x28df9a);if(isNonNumericVersion(_0x28df9a))return{'installed':!![],'version':_0x1f0456,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};const _0x5449dc=a189_0x154e05['coerce'](_0x1f0456),_0x5dc2b1=_0x5449dc?a189_0x154e05['lt'](_0x5449dc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1f0456,'needsUpgrade':_0x5dc2b1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x28e5fe){const _0x174f96=a189_0x5923b5;if(!_0x28e5fe['needsUpgrade'])return;const _0x48ecc7=_0x174f96(0x17d),_0x363f2a=_0x174f96(0x186),_0x442581=_0x174f96(0x182),_0x206a86=_0x28e5fe[_0x174f96(0x171)]||'@lovrabet/sdk',_0x440fc3=_0x28e5fe[_0x174f96(0x179)]||_0x28e5fe[_0x174f96(0x16b)],_0x8c6645=_0x174f96(0x16d)+_0x206a86+'@'+(_0x440fc3||_0x174f96(0x177));console['log'](),console[_0x174f96(0x17f)](''+_0x48ecc7+_0x442581+_0x174f96(0x189)+_0x363f2a),console[_0x174f96(0x17f)](_0x48ecc7+_0x174f96(0x185)+_0x206a86+'@'+_0x28e5fe['version']+_0x363f2a),console[_0x174f96(0x17f)](_0x48ecc7+_0x174f96(0x167)+_0x440fc3+_0x363f2a),console['log'](_0x48ecc7+'\x20\x20\x20Upgrade\x20command:\x20'+_0x8c6645+_0x363f2a),console[_0x174f96(0x17f)]();}
1
+ (function(_0x2cd68e,_0x458663){const _0x2691e7=a189_0x21ad,_0x4d0fed=_0x2cd68e();while(!![]){try{const _0x8b587a=-parseInt(_0x2691e7(0x1e9))/0x1*(-parseInt(_0x2691e7(0x1f9))/0x2)+parseInt(_0x2691e7(0x1f8))/0x3*(-parseInt(_0x2691e7(0x20b))/0x4)+-parseInt(_0x2691e7(0x20a))/0x5*(-parseInt(_0x2691e7(0x1eb))/0x6)+parseInt(_0x2691e7(0x1ed))/0x7*(parseInt(_0x2691e7(0x1f2))/0x8)+-parseInt(_0x2691e7(0x1fa))/0x9*(-parseInt(_0x2691e7(0x204))/0xa)+-parseInt(_0x2691e7(0x1e4))/0xb*(parseInt(_0x2691e7(0x1e8))/0xc)+parseInt(_0x2691e7(0x1f1))/0xd*(-parseInt(_0x2691e7(0x1f7))/0xe);if(_0x8b587a===_0x458663)break;else _0x4d0fed['push'](_0x4d0fed['shift']());}catch(_0x484665){_0x4d0fed['push'](_0x4d0fed['shift']());}}}(a189_0x56cc,0x7130d));import a189_0x5b279e from'node:fs';import a189_0x585f72 from'node:path';import a189_0x360db7 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1c5473){const _0x5a634e=a189_0x21ad,_0x40f3e0=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x40f3e0[_0x5a634e(0x1ef)](_0xf15382=>_0xf15382[_0x5a634e(0x1fc)](_0x1c5473));}function getInstalledVersion(_0x2bd2c5,_0x56d9ae){const _0x1a023e=a189_0x21ad;try{const _0x1be5c7=a189_0x585f72['join'](_0x2bd2c5,_0x1a023e(0x1ec),_0x56d9ae,_0x1a023e(0x1e7));if(a189_0x5b279e['existsSync'](_0x1be5c7)){const _0x25f2e0=JSON[_0x1a023e(0x20c)](a189_0x5b279e[_0x1a023e(0x1fe)](_0x1be5c7,'utf-8'));return _0x25f2e0[_0x1a023e(0x209)]||null;}}catch{}return null;}function a189_0x56cc(){const _0x1c0269=['\x20\x20\x20Stable\x20version:\x20','sdk','latest','version','15FmXywp','11972ywAJjx','parse','join','33ssSktH','minVersion','needsUpgrade','package.json','1949484TOSxxK','263179cQokHX','all','1363386rNJuQr','node_modules','208803AOwKkM','\x1b[1m','some','\x1b[33m','1664XUFqbb','40dFFQPl','devDependencies','existsSync','coerce','stableVersion','149954WTWril','75kVIZFY','6gOitUw','369MAjsRo','packageName','test','npm\x20install\x20','readFileSync','\x20\x20\x20Current\x20version:\x20','log','@lovrabet/sdk','dependencies','utf8','189380pkXmMz','↪\x20SDK\x20update\x20available'];a189_0x56cc=function(){return _0x1c0269;};return a189_0x56cc();}async function getSdkStableVersion(){const _0x4f327d=a189_0x21ad;try{const _0x269f07=await getCdnConfig();return _0x269f07?.[_0x4f327d(0x207)]?.['node']?.[_0x4f327d(0x1f6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x55054b=a189_0x21ad;try{const _0xc6bdd0=await getCdnConfig();return _0xc6bdd0?.[_0x55054b(0x207)]?.['node']?.[_0x55054b(0x1fb)]||_0x55054b(0x201);}catch{return _0x55054b(0x201);}}export async function checkSdkVersion(_0x42ae12){const _0x2ae305=a189_0x21ad,_0x502ca6=a189_0x585f72[_0x2ae305(0x1e3)](_0x42ae12,_0x2ae305(0x1e7)),[_0x338eba,_0x5ae053]=await Promise[_0x2ae305(0x1ea)]([getSdkStableVersion(),getSdkPackageName()]),_0x505833=_0x338eba||FALLBACK_MIN_SDK_VERSION;if(!a189_0x5b279e[_0x2ae305(0x1f4)](_0x502ca6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x505833,'packageName':_0x5ae053,'stableVersion':_0x338eba};try{const _0x14cdd4=JSON[_0x2ae305(0x20c)](a189_0x5b279e[_0x2ae305(0x1fe)](_0x502ca6,_0x2ae305(0x203))),_0x1c7eb9=_0x14cdd4[_0x2ae305(0x202)]||{},_0x1b0ac8=_0x14cdd4[_0x2ae305(0x1f3)]||{},_0x22fcc2=_0x1c7eb9[_0x5ae053]||_0x1b0ac8[_0x5ae053];if(!_0x22fcc2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x505833,'packageName':_0x5ae053,'stableVersion':_0x338eba};let _0x295912=getInstalledVersion(_0x42ae12,_0x5ae053);!_0x295912&&(_0x295912=_0x22fcc2);if(isNonNumericVersion(_0x22fcc2))return{'installed':!![],'version':_0x295912,'needsUpgrade':![],'minVersion':_0x505833,'packageName':_0x5ae053,'stableVersion':_0x338eba};const _0x2d796b=a189_0x360db7[_0x2ae305(0x1f5)](_0x295912),_0x1c5c37=a189_0x360db7[_0x2ae305(0x1f5)](_0x505833),_0x4755c6=_0x2d796b&&_0x1c5c37?a189_0x360db7['lt'](_0x2d796b,_0x1c5c37):![];return{'installed':!![],'version':_0x295912,'needsUpgrade':_0x4755c6,'minVersion':_0x505833,'packageName':_0x5ae053,'stableVersion':_0x338eba};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x505833,'packageName':_0x5ae053,'stableVersion':_0x338eba};}}export function checkSdkVersionSync(_0x7a5a4a){const _0xc1e8fa=a189_0x21ad,_0x185c89=a189_0x585f72['join'](_0x7a5a4a,_0xc1e8fa(0x1e7)),_0x4c3a0c=_0xc1e8fa(0x201);if(!a189_0x5b279e[_0xc1e8fa(0x1f4)](_0x185c89))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4c3a0c,'stableVersion':null};try{const _0x3bc212=JSON[_0xc1e8fa(0x20c)](a189_0x5b279e['readFileSync'](_0x185c89,_0xc1e8fa(0x203))),_0x2c12be=_0x3bc212[_0xc1e8fa(0x202)]||{},_0x3fa5a5=_0x3bc212[_0xc1e8fa(0x1f3)]||{},_0x1b71f8=_0x2c12be[_0x4c3a0c]||_0x3fa5a5[_0x4c3a0c];if(!_0x1b71f8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4c3a0c,'stableVersion':null};let _0x4c3655=getInstalledVersion(_0x7a5a4a,_0x4c3a0c);!_0x4c3655&&(_0x4c3655=_0x1b71f8);if(isNonNumericVersion(_0x1b71f8))return{'installed':!![],'version':_0x4c3655,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4c3a0c,'stableVersion':null};const _0x27d3a2=a189_0x360db7[_0xc1e8fa(0x1f5)](_0x4c3655),_0x411131=_0x27d3a2?a189_0x360db7['lt'](_0x27d3a2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4c3655,'needsUpgrade':_0x411131,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4c3a0c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4c3a0c,'stableVersion':null};}}function a189_0x21ad(_0x1fe1e0,_0x40aabe){_0x1fe1e0=_0x1fe1e0-0x1e3;const _0x56cc57=a189_0x56cc();let _0x21ad6a=_0x56cc57[_0x1fe1e0];return _0x21ad6a;}export function printSdkUpgradeWarning(_0x4d696a){const _0x1ba82b=a189_0x21ad;if(!_0x4d696a[_0x1ba82b(0x1e6)])return;const _0x50699f=_0x1ba82b(0x1f0),_0x1c7db6='\x1b[0m',_0x584a47=_0x1ba82b(0x1ee),_0x220e7d=_0x4d696a['packageName']||'@lovrabet/sdk',_0x4edd49=_0x4d696a[_0x1ba82b(0x1f6)]||_0x4d696a[_0x1ba82b(0x1e5)],_0xf5a006=_0x1ba82b(0x1fd)+_0x220e7d+'@'+(_0x4edd49||_0x1ba82b(0x208));console[_0x1ba82b(0x200)](),console[_0x1ba82b(0x200)](''+_0x50699f+_0x584a47+_0x1ba82b(0x205)+_0x1c7db6),console[_0x1ba82b(0x200)](_0x50699f+_0x1ba82b(0x1ff)+_0x220e7d+'@'+_0x4d696a['version']+_0x1c7db6),console[_0x1ba82b(0x200)](_0x50699f+_0x1ba82b(0x206)+_0x4edd49+_0x1c7db6),console[_0x1ba82b(0x200)](_0x50699f+'\x20\x20\x20Upgrade\x20command:\x20'+_0xf5a006+_0x1c7db6),console[_0x1ba82b(0x200)]();}
@@ -1 +1 @@
1
- (function(_0x121d5c,_0x3458a9){const _0x3e48f0=a190_0x392e,_0x5bf8fe=_0x121d5c();while(!![]){try{const _0x5c1f79=-parseInt(_0x3e48f0(0xb4))/0x1+parseInt(_0x3e48f0(0xa2))/0x2*(parseInt(_0x3e48f0(0xb3))/0x3)+-parseInt(_0x3e48f0(0x9c))/0x4*(parseInt(_0x3e48f0(0xa1))/0x5)+-parseInt(_0x3e48f0(0x96))/0x6+parseInt(_0x3e48f0(0xb5))/0x7+-parseInt(_0x3e48f0(0x95))/0x8+-parseInt(_0x3e48f0(0xb1))/0x9;if(_0x5c1f79===_0x3458a9)break;else _0x5bf8fe['push'](_0x5bf8fe['shift']());}catch(_0x574058){_0x5bf8fe['push'](_0x5bf8fe['shift']());}}}(a190_0x3724,0x2b8fa));function a190_0x3724(){const _0x3b32b6=['log','version','join','Upgrade\x20command:\x20','parse','477216mPScfH','npm\x20install\x20-g\x20','236244TGmqRd','22988kMIcmC','2069592KUDUyP','\x1b[33m','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20','filter','\x20\x20\x20Current\x20CLI\x20version:\x20','utf-8','Minimum\x20supported:\x20','199688iEWvaI','205866ZGLmPv','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Stable\x20version:\x20','validation','1.0.0','593876cjYOlP','minimumVersion','minimumVersionMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','needsUpgrade','10UQJIXb','8XmTIwW','\x1b[31m','stableVersion','Current\x20version:\x20','package.json','\x1b[1m','coerce','belowMinimum','↪\x20New\x20version\x20available','upgradeMessage'];a190_0x3724=function(){return _0x3b32b6;};return a190_0x3724();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a190_0x59f976 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a190_0x392e(_0x54d74f,_0x413c89){_0x54d74f=_0x54d74f-0x91;const _0x37243e=a190_0x3724();let _0x392e59=_0x37243e[_0x54d74f];return _0x392e59;}export function getCliUpgradeCommand(_0x40beab){const _0x3d6bfd=a190_0x392e,_0x98dad9=_0x40beab['stableVersion']||'latest';return _0x3d6bfd(0xb2)+NPM_PACKAGE_NAME+'@'+_0x98dad9;}function getCurrentCliVersion(){const _0x101eec=a190_0x392e;try{const _0x330b95=fileURLToPath(import.meta.url),_0x57329c=resolve(dirname(_0x330b95),'../..'),_0x456f96=resolve(_0x57329c,_0x101eec(0xa6)),_0x3ce058=JSON[_0x101eec(0xb0)](readFileSync(_0x456f96,_0x101eec(0x93)));return _0x3ce058[_0x101eec(0xad)]||_0x101eec(0x9b);}catch{return _0x101eec(0x9b);}}export async function checkCliVersion(){const _0xb75b66=a190_0x392e,_0xe0d4c=getCurrentCliVersion(),_0x5287fa=await getCliVersionPolicy(),_0x199b79=_0x5287fa?.[_0xb75b66(0xa4)]||null,_0xb02158=_0x5287fa?.[_0xb75b66(0x9d)]||null;let _0x46ca9b=![],_0x47ddd3=![];const _0x3b8eea=a190_0x59f976[_0xb75b66(0xa8)](_0xe0d4c);if(_0x3b8eea&&_0x199b79)try{const _0x599ea9=a190_0x59f976['coerce'](_0x199b79);if(_0x599ea9)_0x46ca9b=a190_0x59f976['lt'](_0x3b8eea,_0x599ea9);}catch{}if(_0x3b8eea&&_0xb02158)try{const _0x49c728=a190_0x59f976['coerce'](_0xb02158);if(_0x49c728)_0x47ddd3=a190_0x59f976['lt'](_0x3b8eea,_0x49c728);}catch{}return _0x47ddd3&&(_0x46ca9b=!![]),{'currentVersion':_0xe0d4c,'stableVersion':_0x199b79,'minimumVersion':_0xb02158,'needsUpgrade':_0x46ca9b,'belowMinimum':_0x47ddd3,'isPreRelease':![],'upgradeMessage':_0x5287fa?.[_0xb75b66(0xab)],'minimumVersionMessage':_0x5287fa?.[_0xb75b66(0x9e)]};}export function printCliUpgradeWarning(_0x420e27){const _0x551728=a190_0x392e;if(!_0x420e27[_0x551728(0xa0)]&&!_0x420e27[_0x551728(0xa9)])return;const _0x416354=_0x551728(0xa3),_0x5e46dc=_0x551728(0xb6),_0x5543b3='\x1b[0m',_0x2111b4=_0x551728(0xa7),_0x5a7b5f=getCliUpgradeCommand(_0x420e27);console['log'](),_0x420e27[_0x551728(0xa9)]?(console[_0x551728(0xac)](''+_0x416354+_0x2111b4+_0x551728(0x9f)+_0x5543b3),console[_0x551728(0xac)](_0x416354+_0x551728(0x92)+_0x420e27['currentVersion']+_0x5543b3),_0x420e27['minimumVersion']&&console['log'](_0x416354+_0x551728(0xb7)+_0x420e27['minimumVersion']+_0x5543b3),_0x420e27[_0x551728(0xa4)]&&_0x420e27[_0x551728(0xa4)]!==_0x420e27[_0x551728(0x9d)]&&console['log'](_0x416354+_0x551728(0x98)+_0x420e27[_0x551728(0xa4)]+_0x5543b3),_0x420e27[_0x551728(0x9e)]&&console[_0x551728(0xac)](_0x416354+_0x551728(0xb8)+_0x420e27[_0x551728(0x9e)]+_0x5543b3),console['log'](_0x416354+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5a7b5f+_0x5543b3)):(console['log'](''+_0x5e46dc+_0x2111b4+_0x551728(0xaa)+_0x5543b3),console['log'](_0x5e46dc+_0x551728(0x92)+_0x420e27['currentVersion']+_0x5543b3),console[_0x551728(0xac)](_0x5e46dc+_0x551728(0x99)+_0x420e27[_0x551728(0xa4)]+_0x5543b3),_0x420e27[_0x551728(0xab)]&&console[_0x551728(0xac)](_0x5e46dc+_0x551728(0xb8)+_0x420e27[_0x551728(0xab)]+_0x5543b3),console[_0x551728(0xac)](_0x5e46dc+_0x551728(0x97)+_0x5a7b5f+_0x5543b3)),console[_0x551728(0xac)]();}export function assertCliVersionSupported(_0x5f3de4){const _0x5ef81e=a190_0x392e;if(!_0x5f3de4[_0x5ef81e(0xa9)])return;const _0x2817d0=[_0x5f3de4['minimumVersionMessage'],_0x5ef81e(0xa5)+_0x5f3de4['currentVersion'],_0x5f3de4[_0x5ef81e(0x9d)]?_0x5ef81e(0x94)+_0x5f3de4['minimumVersion']:null,_0x5ef81e(0xaf)+getCliUpgradeCommand(_0x5f3de4)][_0x5ef81e(0x91)](Boolean)[_0x5ef81e(0xae)]('\x0a');throw CliErrors[_0x5ef81e(0x9a)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x2817d0);}
1
+ (function(_0x308d0b,_0x4df28f){const _0x247392=a190_0x60ee,_0x1e3afc=_0x308d0b();while(!![]){try{const _0x2e8051=-parseInt(_0x247392(0x16b))/0x1+-parseInt(_0x247392(0x150))/0x2+-parseInt(_0x247392(0x155))/0x3+parseInt(_0x247392(0x153))/0x4+parseInt(_0x247392(0x14f))/0x5*(parseInt(_0x247392(0x16e))/0x6)+parseInt(_0x247392(0x167))/0x7+parseInt(_0x247392(0x170))/0x8*(parseInt(_0x247392(0x165))/0x9);if(_0x2e8051===_0x4df28f)break;else _0x1e3afc['push'](_0x1e3afc['shift']());}catch(_0x55a077){_0x1e3afc['push'](_0x1e3afc['shift']());}}}(a190_0x25fc,0x68947));import{readFileSync}from'node:fs';function a190_0x60ee(_0x2c48d8,_0x2e304b){_0x2c48d8=_0x2c48d8-0x14c;const _0x25fc77=a190_0x25fc();let _0x60ee00=_0x25fc77[_0x2c48d8];return _0x60ee00;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a190_0x25fc(){const _0x137ca5=['\x20\x20\x20','package.json','utf-8','↪\x20Critical\x20CLI\x20upgrade\x20required','9ODTWGF','latest','2469383oXtLqc','version','\x1b[0m','\x20\x20\x20Stable\x20version:\x20','586045pLgSes','Current\x20version:\x20','\x1b[31m','132cuTzWo','\x20\x20\x20Recommended\x20stable:\x20','5639584irgnjL','needsUpgrade','parse','\x20\x20\x20Upgrade\x20command:\x20','upgradeMessage','currentVersion','164580vfmesd','876848zxtHbk','stableVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','303228SZPNyU','npm\x20install\x20-g\x20','1214544fXzRzE','minimumVersionMessage','validation','belowMinimum','log','join','../..','minimumVersion','\x1b[1m','coerce','\x1b[33m','1.0.0'];a190_0x25fc=function(){return _0x137ca5;};return a190_0x25fc();}import a190_0x3f0d21 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(_0x4dd249){const _0x2e86c4=a190_0x60ee,_0x380293=_0x4dd249[_0x2e86c4(0x151)]||_0x2e86c4(0x166);return _0x2e86c4(0x154)+NPM_PACKAGE_NAME+'@'+_0x380293;}function getCurrentCliVersion(){const _0x38b34d=a190_0x60ee;try{const _0x265431=fileURLToPath(import.meta.url),_0x477a7e=resolve(dirname(_0x265431),_0x38b34d(0x15b)),_0x7dc22f=resolve(_0x477a7e,_0x38b34d(0x162)),_0x3654a0=JSON[_0x38b34d(0x172)](readFileSync(_0x7dc22f,_0x38b34d(0x163)));return _0x3654a0[_0x38b34d(0x168)]||_0x38b34d(0x160);}catch{return _0x38b34d(0x160);}}export async function checkCliVersion(){const _0x1445ac=a190_0x60ee,_0x1d61fa=getCurrentCliVersion(),_0x1489fa=await getCliVersionPolicy(),_0x23fc4f=_0x1489fa?.[_0x1445ac(0x151)]||null,_0x4b40ab=_0x1489fa?.[_0x1445ac(0x15c)]||null;let _0x29ccef=![],_0x5ca3e4=![];const _0x5c1aa4=a190_0x3f0d21[_0x1445ac(0x15e)](_0x1d61fa);if(_0x5c1aa4&&_0x23fc4f)try{const _0x40026b=a190_0x3f0d21[_0x1445ac(0x15e)](_0x23fc4f);if(_0x40026b)_0x29ccef=a190_0x3f0d21['lt'](_0x5c1aa4,_0x40026b);}catch{}if(_0x5c1aa4&&_0x4b40ab)try{const _0x57115f=a190_0x3f0d21[_0x1445ac(0x15e)](_0x4b40ab);if(_0x57115f)_0x5ca3e4=a190_0x3f0d21['lt'](_0x5c1aa4,_0x57115f);}catch{}return _0x5ca3e4&&(_0x29ccef=!![]),{'currentVersion':_0x1d61fa,'stableVersion':_0x23fc4f,'minimumVersion':_0x4b40ab,'needsUpgrade':_0x29ccef,'belowMinimum':_0x5ca3e4,'isPreRelease':![],'upgradeMessage':_0x1489fa?.[_0x1445ac(0x14d)],'minimumVersionMessage':_0x1489fa?.[_0x1445ac(0x156)]};}export function printCliUpgradeWarning(_0x4cafaf){const _0x233ad1=a190_0x60ee;if(!_0x4cafaf[_0x233ad1(0x171)]&&!_0x4cafaf[_0x233ad1(0x158)])return;const _0x234b72=_0x233ad1(0x16d),_0x4e7c09=_0x233ad1(0x15f),_0x13e96f=_0x233ad1(0x169),_0x185695=_0x233ad1(0x15d),_0x53b9bd=getCliUpgradeCommand(_0x4cafaf);console[_0x233ad1(0x159)](),_0x4cafaf[_0x233ad1(0x158)]?(console[_0x233ad1(0x159)](''+_0x234b72+_0x185695+_0x233ad1(0x164)+_0x13e96f),console[_0x233ad1(0x159)](_0x234b72+_0x233ad1(0x152)+_0x4cafaf[_0x233ad1(0x14e)]+_0x13e96f),_0x4cafaf[_0x233ad1(0x15c)]&&console[_0x233ad1(0x159)](_0x234b72+'\x20\x20\x20Minimum\x20supported:\x20'+_0x4cafaf[_0x233ad1(0x15c)]+_0x13e96f),_0x4cafaf[_0x233ad1(0x151)]&&_0x4cafaf['stableVersion']!==_0x4cafaf[_0x233ad1(0x15c)]&&console[_0x233ad1(0x159)](_0x234b72+_0x233ad1(0x16f)+_0x4cafaf['stableVersion']+_0x13e96f),_0x4cafaf[_0x233ad1(0x156)]&&console[_0x233ad1(0x159)](_0x234b72+'\x20\x20\x20'+_0x4cafaf[_0x233ad1(0x156)]+_0x13e96f),console['log'](_0x234b72+'\x20\x20\x20Upgrade\x20command:\x20'+_0x53b9bd+_0x13e96f)):(console[_0x233ad1(0x159)](''+_0x4e7c09+_0x185695+'↪\x20New\x20version\x20available'+_0x13e96f),console['log'](_0x4e7c09+_0x233ad1(0x152)+_0x4cafaf[_0x233ad1(0x14e)]+_0x13e96f),console['log'](_0x4e7c09+_0x233ad1(0x16a)+_0x4cafaf['stableVersion']+_0x13e96f),_0x4cafaf[_0x233ad1(0x14d)]&&console[_0x233ad1(0x159)](_0x4e7c09+_0x233ad1(0x161)+_0x4cafaf[_0x233ad1(0x14d)]+_0x13e96f),console[_0x233ad1(0x159)](_0x4e7c09+_0x233ad1(0x14c)+_0x53b9bd+_0x13e96f)),console[_0x233ad1(0x159)]();}export function assertCliVersionSupported(_0x190041){const _0x21d739=a190_0x60ee;if(!_0x190041['belowMinimum'])return;const _0x30be32=[_0x190041[_0x21d739(0x156)],_0x21d739(0x16c)+_0x190041[_0x21d739(0x14e)],_0x190041[_0x21d739(0x15c)]?'Minimum\x20supported:\x20'+_0x190041[_0x21d739(0x15c)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x190041)]['filter'](Boolean)[_0x21d739(0x15a)]('\x0a');throw CliErrors[_0x21d739(0x157)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x30be32);}
@@ -1 +1 @@
1
- function a191_0x342c(){const _0x3805d9=['5016717wIdyar','latestVersion','minimumVersion','7111209zXbuJo','minVersion','120857yCDTRh','stableVersion','application/json','minimumVersionMessage','74330MdFAiv','2082048CXaBkY','3029481ujfnPD','length','6nsHTLS','trim','3828ROVIXe','json','cli','abort','object','8zYdAyM','now','2700xaCoDv','recommendedVersion','1945LvBtcx'];a191_0x342c=function(){return _0x3805d9;};return a191_0x342c();}(function(_0x3dc943,_0x4c9e49){const _0x4b5d70=a191_0x3beb,_0x44b98b=_0x3dc943();while(!![]){try{const _0x2b43d9=-parseInt(_0x4b5d70(0x18a))/0x1+-parseInt(_0x4b5d70(0x18f))/0x2+parseInt(_0x4b5d70(0x190))/0x3+-parseInt(_0x4b5d70(0x182))/0x4*(parseInt(_0x4b5d70(0x184))/0x5)+parseInt(_0x4b5d70(0x192))/0x6*(-parseInt(_0x4b5d70(0x188))/0x7)+-parseInt(_0x4b5d70(0x180))/0x8*(parseInt(_0x4b5d70(0x185))/0x9)+-parseInt(_0x4b5d70(0x18e))/0xa*(-parseInt(_0x4b5d70(0x194))/0xb);if(_0x2b43d9===_0x4c9e49)break;else _0x44b98b['push'](_0x44b98b['shift']());}catch(_0x18f225){_0x44b98b['push'](_0x44b98b['shift']());}}}(a191_0x342c,0x922e3));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(_0x281f18){const _0x328314=a191_0x3beb;return typeof _0x281f18==='string'&&_0x281f18['trim']()[_0x328314(0x191)]>0x0?_0x281f18[_0x328314(0x193)]():null;}function normalizeCliVersionPolicy(_0x5ed3ac){const _0x205a63=a191_0x3beb;if(!_0x5ed3ac||typeof _0x5ed3ac!==_0x205a63(0x17f))return null;const _0x3b3605=_0x5ed3ac,_0x1c4d8e=_0x3b3605[_0x205a63(0x196)]&&typeof _0x3b3605[_0x205a63(0x196)]==='object'?_0x3b3605[_0x205a63(0x196)]:_0x3b3605,_0x145058=pickString(_0x1c4d8e[_0x205a63(0x18b)])||pickString(_0x1c4d8e[_0x205a63(0x186)])||pickString(_0x1c4d8e[_0x205a63(0x183)]),_0x367568=pickString(_0x1c4d8e[_0x205a63(0x187)])||pickString(_0x1c4d8e[_0x205a63(0x189)]);if(!_0x145058&&!_0x367568)return null;return{'stableVersion':_0x145058,'minimumVersion':_0x367568,'upgradeMessage':pickString(_0x1c4d8e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x1c4d8e[_0x205a63(0x18d)])||undefined};}export async function fetchCliVersionPolicy(){const _0x14d353=a191_0x3beb,_0x486219=new AbortController(),_0xfc0bcf=setTimeout(()=>_0x486219[_0x14d353(0x197)](),FETCH_TIMEOUT_MS);try{const _0x443c83=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x14d353(0x18c)},'signal':_0x486219['signal']});if(!_0x443c83['ok'])return null;const _0x36367f=await _0x443c83[_0x14d353(0x195)]();return normalizeCliVersionPolicy(_0x36367f);}catch{return null;}finally{clearTimeout(_0xfc0bcf);}}function a191_0x3beb(_0x4cc2a6,_0x2acc37){_0x4cc2a6=_0x4cc2a6-0x17f;const _0x342cf5=a191_0x342c();let _0x3beb5b=_0x342cf5[_0x4cc2a6];return _0x3beb5b;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x160ae=a191_0x3beb,_0x144a88=Date[_0x160ae(0x181)]();if(hasCachedPolicy){const _0xf82502=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x144a88-cacheTime<_0xf82502)return cachedPolicy;}const _0x1f124a=await fetchCliVersionPolicy();return cachedPolicy=_0x1f124a,cacheTime=_0x144a88,hasCachedPolicy=!![],_0x1f124a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x17487b,_0x12f8c7){const _0x5ceb34=a191_0x129e,_0x1dc9d5=_0x17487b();while(!![]){try{const _0x1dab8f=parseInt(_0x5ceb34(0x174))/0x1+-parseInt(_0x5ceb34(0x171))/0x2*(-parseInt(_0x5ceb34(0x176))/0x3)+parseInt(_0x5ceb34(0x16f))/0x4*(parseInt(_0x5ceb34(0x17c))/0x5)+-parseInt(_0x5ceb34(0x179))/0x6*(-parseInt(_0x5ceb34(0x175))/0x7)+-parseInt(_0x5ceb34(0x184))/0x8*(-parseInt(_0x5ceb34(0x170))/0x9)+-parseInt(_0x5ceb34(0x187))/0xa*(-parseInt(_0x5ceb34(0x17e))/0xb)+-parseInt(_0x5ceb34(0x182))/0xc*(parseInt(_0x5ceb34(0x177))/0xd);if(_0x1dab8f===_0x12f8c7)break;else _0x1dc9d5['push'](_0x1dc9d5['shift']());}catch(_0x17b511){_0x1dc9d5['push'](_0x1dc9d5['shift']());}}}(a191_0x5af4,0x807eb));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a191_0x129e(_0x46e1f2,_0x7c7c17){_0x46e1f2=_0x46e1f2-0x16e;const _0x5af424=a191_0x5af4();let _0x129ebc=_0x5af424[_0x46e1f2];return _0x129ebc;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x536390){const _0x2a5c0d=a191_0x129e;return typeof _0x536390==='string'&&_0x536390['trim']()[_0x2a5c0d(0x181)]>0x0?_0x536390['trim']():null;}function normalizeCliVersionPolicy(_0x4ca3ac){const _0x227e7a=a191_0x129e;if(!_0x4ca3ac||typeof _0x4ca3ac!==_0x227e7a(0x185))return null;const _0x462950=_0x4ca3ac,_0x14ac43=_0x462950['cli']&&typeof _0x462950['cli']===_0x227e7a(0x185)?_0x462950[_0x227e7a(0x16e)]:_0x462950,_0x1e2d09=pickString(_0x14ac43['stableVersion'])||pickString(_0x14ac43[_0x227e7a(0x183)])||pickString(_0x14ac43[_0x227e7a(0x17f)]),_0x2fba37=pickString(_0x14ac43[_0x227e7a(0x186)])||pickString(_0x14ac43[_0x227e7a(0x173)]);if(!_0x1e2d09&&!_0x2fba37)return null;return{'stableVersion':_0x1e2d09,'minimumVersion':_0x2fba37,'upgradeMessage':pickString(_0x14ac43[_0x227e7a(0x180)])||undefined,'minimumVersionMessage':pickString(_0x14ac43[_0x227e7a(0x17a)])||undefined};}export async function fetchCliVersionPolicy(){const _0x433e22=a191_0x129e,_0x33ab08=new AbortController(),_0x3bc71f=setTimeout(()=>_0x33ab08[_0x433e22(0x17b)](),FETCH_TIMEOUT_MS);try{const _0x192350=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x433e22(0x178)},'signal':_0x33ab08['signal']});if(!_0x192350['ok'])return null;const _0x51f49b=await _0x192350[_0x433e22(0x172)]();return normalizeCliVersionPolicy(_0x51f49b);}catch{return null;}finally{clearTimeout(_0x3bc71f);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5f4c6f=a191_0x129e,_0x2adc6c=Date[_0x5f4c6f(0x17d)]();if(hasCachedPolicy){const _0x9939db=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2adc6c-cacheTime<_0x9939db)return cachedPolicy;}const _0x46fed2=await fetchCliVersionPolicy();return cachedPolicy=_0x46fed2,cacheTime=_0x2adc6c,hasCachedPolicy=!![],_0x46fed2;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a191_0x5af4(){const _0x3a3b07=['application/json','6IvcKdX','minimumVersionMessage','abort','85MkQVPz','now','37213OBPdGW','recommendedVersion','upgradeMessage','length','24keKJqK','latestVersion','24jeXlKv','object','minimumVersion','310OLXVXt','cli','50516AOqUMs','266769GYHLyZ','10554WDmqze','json','minVersion','882780xJpGVk','1012081IUCymv','213ejUkPg','8347326YhGWhF'];a191_0x5af4=function(){return _0x3a3b07;};return a191_0x5af4();}
@@ -1 +1 @@
1
- const a192_0x2b3d5c=a192_0x2807;(function(_0xeaede3,_0x3d0234){const _0x224d25=a192_0x2807,_0x3b5184=_0xeaede3();while(!![]){try{const _0x219ffd=parseInt(_0x224d25(0x118))/0x1*(-parseInt(_0x224d25(0x11b))/0x2)+-parseInt(_0x224d25(0x110))/0x3+-parseInt(_0x224d25(0x111))/0x4+parseInt(_0x224d25(0x117))/0x5*(parseInt(_0x224d25(0x113))/0x6)+parseInt(_0x224d25(0x11c))/0x7*(-parseInt(_0x224d25(0x119))/0x8)+parseInt(_0x224d25(0x11a))/0x9*(parseInt(_0x224d25(0x115))/0xa)+-parseInt(_0x224d25(0x11e))/0xb*(-parseInt(_0x224d25(0x116))/0xc);if(_0x219ffd===_0x3d0234)break;else _0x3b5184['push'](_0x3b5184['shift']());}catch(_0x459d2d){_0x3b5184['push'](_0x3b5184['shift']());}}}(a192_0x50aa,0x33b94));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0xccb7dd,getMultiAppConfigs as a192_0x3f61fa,getTemplateBaseUrl as a192_0x36927b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a192_0x2807(_0x1db5fe,_0x30b965){_0x1db5fe=_0x1db5fe-0x110;const _0x50aa69=a192_0x50aa();let _0x280791=_0x50aa69[_0x1db5fe];return _0x280791;}export{isInProject}from'../context.js';function a192_0x50aa(){const _0x2bc4fd=['30ICqSln','7QUpsrY','env','358721bytdKz','747249WUbDwI','1592096DHiCQm','string','1945506QhjTZy','project','9560xTmTMS','216jLrgMY','5TIfVYW','7839qqszqk','1596072lNGWMP','2493hgqzOP'];a192_0x50aa=function(){return _0x2bc4fd;};return a192_0x50aa();}export function readConfig(_0x4aa091){const _0x20ca14=a192_0x2807,_0x1bcb10=readRawConfig(_0x4aa091);return _0x1bcb10[_0x20ca14(0x11d)]&&typeof _0x1bcb10[_0x20ca14(0x11d)]===_0x20ca14(0x112)&&initEnv(_0x1bcb10[_0x20ca14(0x11d)]),_0x1bcb10;}export function getConfigAppCode(){return a192_0xccb7dd();}export function getMultiAppConfigs(_0x240cea=a192_0x2b3d5c(0x114)){return a192_0x3f61fa(_0x240cea);}export function getTemplateBaseUrl(){return a192_0x36927b();}
1
+ (function(_0x41103c,_0x49571b){const _0x34dc48=a192_0x3244,_0x384d4d=_0x41103c();while(!![]){try{const _0xcb1152=-parseInt(_0x34dc48(0x99))/0x1+-parseInt(_0x34dc48(0x9d))/0x2+parseInt(_0x34dc48(0xa2))/0x3*(parseInt(_0x34dc48(0xa1))/0x4)+parseInt(_0x34dc48(0x98))/0x5*(-parseInt(_0x34dc48(0x9f))/0x6)+-parseInt(_0x34dc48(0x97))/0x7*(-parseInt(_0x34dc48(0x9b))/0x8)+parseInt(_0x34dc48(0x9c))/0x9+-parseInt(_0x34dc48(0x96))/0xa*(-parseInt(_0x34dc48(0xa0))/0xb);if(_0xcb1152===_0x49571b)break;else _0x384d4d['push'](_0x384d4d['shift']());}catch(_0x5d7c2f){_0x384d4d['push'](_0x384d4d['shift']());}}}(a192_0x4889,0xa19e1));function a192_0x3244(_0x59821a,_0x162745){_0x59821a=_0x59821a-0x96;const _0x4889c2=a192_0x4889();let _0x324449=_0x4889c2[_0x59821a];return _0x324449;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0xf1358b,getMultiAppConfigs as a192_0x2739d9,getTemplateBaseUrl as a192_0x83d381}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2aa575){const _0x11c6b1=a192_0x3244,_0x3972eb=readRawConfig(_0x2aa575);return _0x3972eb['env']&&typeof _0x3972eb['env']===_0x11c6b1(0x9e)&&initEnv(_0x3972eb[_0x11c6b1(0x9a)]),_0x3972eb;}export function getConfigAppCode(){return a192_0xf1358b();}export function getMultiAppConfigs(_0x2b77c9='project'){return a192_0x2739d9(_0x2b77c9);}function a192_0x4889(){const _0x2a02b9=['303548AJgaJn','55ZymKvs','963296boErhp','env','160xQzAXo','4036023syivfq','770790quVzjH','string','524682frAlQc','8969906DtTHWQ','1924lBVvQk','162GLNqco','20bcUOUK'];a192_0x4889=function(){return _0x2a02b9;};return a192_0x4889();}export function getTemplateBaseUrl(){return a192_0x83d381();}
@@ -1 +1 @@
1
- (function(_0x59d847,_0x42b6b4){const _0x5b4c47=a193_0x2287,_0x21c893=_0x59d847();while(!![]){try{const _0x85d9e7=parseInt(_0x5b4c47(0x90))/0x1+parseInt(_0x5b4c47(0x99))/0x2*(parseInt(_0x5b4c47(0x97))/0x3)+-parseInt(_0x5b4c47(0x8f))/0x4+-parseInt(_0x5b4c47(0x95))/0x5*(-parseInt(_0x5b4c47(0x9b))/0x6)+parseInt(_0x5b4c47(0x91))/0x7*(-parseInt(_0x5b4c47(0x8e))/0x8)+-parseInt(_0x5b4c47(0x9e))/0x9*(parseInt(_0x5b4c47(0x93))/0xa)+-parseInt(_0x5b4c47(0x92))/0xb*(-parseInt(_0x5b4c47(0x9d))/0xc);if(_0x85d9e7===_0x42b6b4)break;else _0x21c893['push'](_0x21c893['shift']());}catch(_0x3746ca){_0x21c893['push'](_0x21c893['shift']());}}}(a193_0x284d,0x97aed));import a193_0x4733de from'node:path';import a193_0x49e746 from'node:fs';function a193_0x2287(_0x4271fb,_0x484d41){_0x4271fb=_0x4271fb-0x8c;const _0x284dc9=a193_0x284d();let _0x22873c=_0x284dc9[_0x4271fb];return _0x22873c;}export async function copyDirectory(_0xc08cf4,_0x51d5f1){const _0x14834b=a193_0x2287;try{const _0x23e34e=a193_0x49e746['readdirSync'](_0xc08cf4,{'withFileTypes':!![]});a193_0x49e746[_0x14834b(0x9a)](_0x51d5f1,{'recursive':!![]});for(const _0x4d1150 of _0x23e34e){const _0x32cac3=a193_0x4733de['join'](_0xc08cf4,_0x4d1150[_0x14834b(0x8c)]),_0x3e41e0=a193_0x4733de[_0x14834b(0x96)](_0x51d5f1,_0x4d1150[_0x14834b(0x8c)]);_0x4d1150[_0x14834b(0x8d)]()?await copyDirectory(_0x32cac3,_0x3e41e0):a193_0x49e746[_0x14834b(0x98)](_0x32cac3,_0x3e41e0);}}catch(_0x4de309){console[_0x14834b(0x9c)](_0x14834b(0x94),_0x4de309);}}function a193_0x284d(){const _0x1c2c13=['1729EAMuQS','28721frFaga','8500SgRxWu','复制目录时出错:','6030PXhdqc','join','9uZtTDg','copyFileSync','40694usJIiW','mkdirSync','3042gSDYKL','error','5856SjqDiB','11187LKWQrG','name','isDirectory','3256PUXovl','4406160QkHTew','933261LugcNk'];a193_0x284d=function(){return _0x1c2c13;};return a193_0x284d();}
1
+ function a193_0x552f(_0x29a127,_0x4a4264){_0x29a127=_0x29a127-0x79;const _0x462d37=a193_0x462d();let _0x552fea=_0x462d37[_0x29a127];return _0x552fea;}(function(_0x380e46,_0x5557f3){const _0x5db00c=a193_0x552f,_0x2f2c4c=_0x380e46();while(!![]){try{const _0x45344e=-parseInt(_0x5db00c(0x7f))/0x1+parseInt(_0x5db00c(0x79))/0x2*(parseInt(_0x5db00c(0x83))/0x3)+-parseInt(_0x5db00c(0x80))/0x4+parseInt(_0x5db00c(0x86))/0x5*(parseInt(_0x5db00c(0x84))/0x6)+-parseInt(_0x5db00c(0x82))/0x7+-parseInt(_0x5db00c(0x81))/0x8*(parseInt(_0x5db00c(0x7d))/0x9)+parseInt(_0x5db00c(0x89))/0xa;if(_0x45344e===_0x5557f3)break;else _0x2f2c4c['push'](_0x2f2c4c['shift']());}catch(_0xa5eff2){_0x2f2c4c['push'](_0x2f2c4c['shift']());}}}(a193_0x462d,0x471eb));function a193_0x462d(){const _0x1d29cb=['复制目录时出错:','name','60714aKpicy','copyFileSync','388451NgBpdF','1277112MefKZH','488ADlIEi','1516851nKDUsu','414501lpVGlQ','6wNnAhn','error','1152050VefwIb','join','readdirSync','12586580vBtNPB','2qBSovZ','mkdirSync'];a193_0x462d=function(){return _0x1d29cb;};return a193_0x462d();}import a193_0x4ffa6a from'node:path';import a193_0x245db2 from'node:fs';export async function copyDirectory(_0x3cc22a,_0x303dd0){const _0x12f565=a193_0x552f;try{const _0x215665=a193_0x245db2[_0x12f565(0x88)](_0x3cc22a,{'withFileTypes':!![]});a193_0x245db2[_0x12f565(0x7a)](_0x303dd0,{'recursive':!![]});for(const _0xe1cc6a of _0x215665){const _0x1d6f36=a193_0x4ffa6a[_0x12f565(0x87)](_0x3cc22a,_0xe1cc6a[_0x12f565(0x7c)]),_0x110fea=a193_0x4ffa6a['join'](_0x303dd0,_0xe1cc6a[_0x12f565(0x7c)]);_0xe1cc6a['isDirectory']()?await copyDirectory(_0x1d6f36,_0x110fea):a193_0x245db2[_0x12f565(0x7e)](_0x1d6f36,_0x110fea);}}catch(_0x17800b){console[_0x12f565(0x85)](_0x12f565(0x7b),_0x17800b);}}
@@ -1 +1 @@
1
- (function(_0x2dfef6,_0x173170){const _0xae489c=a194_0x3aea,_0x7fb2fa=_0x2dfef6();while(!![]){try{const _0x3ba340=-parseInt(_0xae489c(0xda))/0x1*(-parseInt(_0xae489c(0xd1))/0x2)+parseInt(_0xae489c(0xcf))/0x3*(parseInt(_0xae489c(0xd7))/0x4)+-parseInt(_0xae489c(0xd9))/0x5*(parseInt(_0xae489c(0xd3))/0x6)+parseInt(_0xae489c(0xce))/0x7*(parseInt(_0xae489c(0xcc))/0x8)+parseInt(_0xae489c(0xd6))/0x9*(-parseInt(_0xae489c(0xd0))/0xa)+-parseInt(_0xae489c(0xd2))/0xb*(-parseInt(_0xae489c(0xd5))/0xc)+-parseInt(_0xae489c(0xcb))/0xd*(parseInt(_0xae489c(0xcd))/0xe);if(_0x3ba340===_0x173170)break;else _0x7fb2fa['push'](_0x7fb2fa['shift']());}catch(_0xbb41a8){_0x7fb2fa['push'](_0x7fb2fa['shift']());}}}(a194_0x21a1,0x41f0f));function a194_0x3aea(_0x146a62,_0x2e18bf){_0x146a62=_0x146a62-0xc9;const _0x21a156=a194_0x21a1();let _0x3aeadb=_0x21a156[_0x146a62];return _0x3aeadb;}function a194_0x21a1(){const _0xc3e43=['isFinite','2540031wBCgOF','128XIuQbO','14PIaQgT','111440qTbWAC','883080MBOGNt','20sGdGtm','6gEpsOd','11opUxvh','434556LXjTAX','trim','1903956mekZze','957267HsasVc','4WSsEXq','object','25cZdAVC','110865FllwpH','string'];a194_0x21a1=function(){return _0xc3e43;};return a194_0x21a1();}function toFiniteNumber(_0x39268){const _0x382d14=a194_0x3aea;if(typeof _0x39268==='number'&&Number[_0x382d14(0xca)](_0x39268))return _0x39268;if(typeof _0x39268===_0x382d14(0xc9)){const _0x4059da=_0x39268[_0x382d14(0xd4)]();if(!_0x4059da)return undefined;const _0x4f4b2c=Number(_0x4059da);if(Number['isFinite'](_0x4f4b2c))return _0x4f4b2c;}return undefined;}export function normalizeEntityWithIdResponse(_0x2bdc8c){const _0x427100=a194_0x3aea,_0x24119c=toFiniteNumber(_0x2bdc8c);if(_0x24119c!==undefined)return{'id':_0x24119c,'entity':{'id':_0x24119c}};if(!_0x2bdc8c||typeof _0x2bdc8c!==_0x427100(0xd8))return{'id':undefined,'entity':{}};const _0x7642bf={..._0x2bdc8c},_0x233e4e=toFiniteNumber(_0x7642bf['id']);return _0x233e4e!==undefined&&(_0x7642bf['id']=_0x233e4e),{'id':_0x233e4e,'entity':_0x7642bf};}
1
+ function a194_0x248d(_0x316c28,_0x14aef1){_0x316c28=_0x316c28-0xc3;const _0x4b330f=a194_0x4b33();let _0x248dd8=_0x4b330f[_0x316c28];return _0x248dd8;}(function(_0x4cbdf0,_0x23fd51){const _0x1ce694=a194_0x248d,_0x1b470a=_0x4cbdf0();while(!![]){try{const _0xce2e72=-parseInt(_0x1ce694(0xc7))/0x1+-parseInt(_0x1ce694(0xc9))/0x2+parseInt(_0x1ce694(0xce))/0x3+parseInt(_0x1ce694(0xc6))/0x4*(parseInt(_0x1ce694(0xcd))/0x5)+-parseInt(_0x1ce694(0xcf))/0x6*(-parseInt(_0x1ce694(0xcc))/0x7)+-parseInt(_0x1ce694(0xc5))/0x8+parseInt(_0x1ce694(0xc4))/0x9*(parseInt(_0x1ce694(0xcb))/0xa);if(_0xce2e72===_0x23fd51)break;else _0x1b470a['push'](_0x1b470a['shift']());}catch(_0x267310){_0x1b470a['push'](_0x1b470a['shift']());}}}(a194_0x4b33,0xcff18));function toFiniteNumber(_0x21ab61){const _0x24094d=a194_0x248d;if(typeof _0x21ab61===_0x24094d(0xd0)&&Number[_0x24094d(0xca)](_0x21ab61))return _0x21ab61;if(typeof _0x21ab61===_0x24094d(0xc3)){const _0x271f3d=_0x21ab61['trim']();if(!_0x271f3d)return undefined;const _0x1abb28=Number(_0x271f3d);if(Number[_0x24094d(0xca)](_0x1abb28))return _0x1abb28;}return undefined;}function a194_0x4b33(){const _0x3a4f23=['349020DzQqoH','3303294dAOLph','275256mUuCAt','number','string','99vVyQiH','10296416IWbFgl','48kaovhQ','481642FayKQB','object','678020kIUDwF','isFinite','594260VdIoNo','56HCnBbK'];a194_0x4b33=function(){return _0x3a4f23;};return a194_0x4b33();}export function normalizeEntityWithIdResponse(_0xb1d557){const _0x1b6199=a194_0x248d,_0x3e2d15=toFiniteNumber(_0xb1d557);if(_0x3e2d15!==undefined)return{'id':_0x3e2d15,'entity':{'id':_0x3e2d15}};if(!_0xb1d557||typeof _0xb1d557!==_0x1b6199(0xc8))return{'id':undefined,'entity':{}};const _0x2f751c={..._0xb1d557},_0x5e8007=toFiniteNumber(_0x2f751c['id']);return _0x5e8007!==undefined&&(_0x2f751c['id']=_0x5e8007),{'id':_0x5e8007,'entity':_0x2f751c};}
@@ -1 +1 @@
1
- function a195_0x3f0f(){const _0x928587=['924OUEUqN','22328rdSQyy','819100EGMYao','1702686WSqLBD','180wxTScj','272191fLUntR','1404QsJHkX','1420308Fjneac','isDirectory','5wQapmB','96770uMHzjX','91HUxRyk'];a195_0x3f0f=function(){return _0x928587;};return a195_0x3f0f();}(function(_0x4e7da3,_0x1babf4){const _0x585969=a195_0x1855,_0x241b5d=_0x4e7da3();while(!![]){try{const _0x2a4341=parseInt(_0x585969(0x19f))/0x1+-parseInt(_0x585969(0x19c))/0x2+parseInt(_0x585969(0x19e))/0x3*(parseInt(_0x585969(0x1a0))/0x4)+-parseInt(_0x585969(0x1a3))/0x5*(parseInt(_0x585969(0x19d))/0x6)+parseInt(_0x585969(0x1a5))/0x7*(-parseInt(_0x585969(0x1a7))/0x8)+-parseInt(_0x585969(0x1a1))/0x9+-parseInt(_0x585969(0x1a4))/0xa*(-parseInt(_0x585969(0x1a6))/0xb);if(_0x2a4341===_0x1babf4)break;else _0x241b5d['push'](_0x241b5d['shift']());}catch(_0x384c93){_0x241b5d['push'](_0x241b5d['shift']());}}}(a195_0x3f0f,0x35645));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4fce6d,_0x266add){const _0x4e7002=a195_0x1855,_0x85ce1a=statSync(_0x4fce6d);if(_0x85ce1a[_0x4e7002(0x1a2)]()){!existsSync(_0x266add)&&mkdirSync(_0x266add,{'recursive':!![]});const _0x2c4493=readdirSync(_0x4fce6d);for(const _0x4e7d74 of _0x2c4493){await copyDir(join(_0x4fce6d,_0x4e7d74),join(_0x266add,_0x4e7d74));}}else copyFileSync(_0x4fce6d,_0x266add);}export function ensureDir(_0x311fc3){!existsSync(_0x311fc3)&&mkdirSync(_0x311fc3,{'recursive':!![]});}function a195_0x1855(_0xdd6286,_0x43ae7e){_0xdd6286=_0xdd6286-0x19c;const _0x3f0f80=a195_0x3f0f();let _0x185559=_0x3f0f80[_0xdd6286];return _0x185559;}export function pathExists(_0x15ebbb){return existsSync(_0x15ebbb);}
1
+ function a195_0x1b01(){const _0x7870f3=['1713802lkKDfo','4541826EgVaZM','3511628MsJGwN','231DZdRjm','2205aKzuLY','902633ClvRaL','isDirectory','3384735xdvJLr','64472IrLYNk','3wgEJEz','118980eZLBzp'];a195_0x1b01=function(){return _0x7870f3;};return a195_0x1b01();}(function(_0x3a3706,_0x252bcd){const _0x2a9524=a195_0x4d73,_0x5be53a=_0x3a3706();while(!![]){try{const _0x56b210=-parseInt(_0x2a9524(0x1db))/0x1+-parseInt(_0x2a9524(0x1d6))/0x2+-parseInt(_0x2a9524(0x1d4))/0x3*(parseInt(_0x2a9524(0x1d8))/0x4)+parseInt(_0x2a9524(0x1d2))/0x5+-parseInt(_0x2a9524(0x1d7))/0x6+-parseInt(_0x2a9524(0x1d9))/0x7*(-parseInt(_0x2a9524(0x1d3))/0x8)+-parseInt(_0x2a9524(0x1da))/0x9*(-parseInt(_0x2a9524(0x1d5))/0xa);if(_0x56b210===_0x252bcd)break;else _0x5be53a['push'](_0x5be53a['shift']());}catch(_0x4c12a4){_0x5be53a['push'](_0x5be53a['shift']());}}}(a195_0x1b01,0x71284));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x34514f,_0x35c337){const _0x2fbf93=a195_0x4d73,_0x15f063=statSync(_0x34514f);if(_0x15f063[_0x2fbf93(0x1d1)]()){!existsSync(_0x35c337)&&mkdirSync(_0x35c337,{'recursive':!![]});const _0x5685f3=readdirSync(_0x34514f);for(const _0x184958 of _0x5685f3){await copyDir(join(_0x34514f,_0x184958),join(_0x35c337,_0x184958));}}else copyFileSync(_0x34514f,_0x35c337);}function a195_0x4d73(_0x2b1a9b,_0x4654db){_0x2b1a9b=_0x2b1a9b-0x1d1;const _0x1b0145=a195_0x1b01();let _0x4d7391=_0x1b0145[_0x2b1a9b];return _0x4d7391;}export function ensureDir(_0x21e127){!existsSync(_0x21e127)&&mkdirSync(_0x21e127,{'recursive':!![]});}export function pathExists(_0x4b63c2){return existsSync(_0x4b63c2);}
@@ -1 +1 @@
1
- const a196_0x14a6c6=a196_0x58b4;(function(_0x3a57a3,_0x196950){const _0x4eeed6=a196_0x58b4,_0x1e9f0a=_0x3a57a3();while(!![]){try{const _0x4f8d4b=parseInt(_0x4eeed6(0x1f5))/0x1+parseInt(_0x4eeed6(0x1eb))/0x2+parseInt(_0x4eeed6(0x1e7))/0x3+parseInt(_0x4eeed6(0x1f3))/0x4+parseInt(_0x4eeed6(0x1ef))/0x5+parseInt(_0x4eeed6(0x1e4))/0x6+-parseInt(_0x4eeed6(0x1ea))/0x7*(parseInt(_0x4eeed6(0x1e3))/0x8);if(_0x4f8d4b===_0x196950)break;else _0x1e9f0a['push'](_0x1e9f0a['shift']());}catch(_0x25388b){_0x1e9f0a['push'](_0x1e9f0a['shift']());}}}(a196_0x1c95,0x4ad69));import{mkdirSync,writeFileSync}from'node:fs';function a196_0x58b4(_0x5be17f,_0x550352){_0x5be17f=_0x5be17f-0x1e1;const _0x1c95a0=a196_0x1c95();let _0x58b40c=_0x1c95a0[_0x5be17f];return _0x58b40c;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5693f3=a196_0x58b4,_0x5c5cdc=getTemplateBaseUrl();return _0x5c5cdc+_0x5693f3(0x1e2);}const CACHE_DIR=join(homedir(),a196_0x14a6c6(0x1fd),'cache');export async function fetchGuidesFromCDN(){const _0x56bd41=a196_0x14a6c6,_0x322d43=getGuidesCdnUrl(),_0x873e5d=await fetch(_0x322d43,{'headers':{'Accept':_0x56bd41(0x1ed)}});if(!_0x873e5d['ok'])throw new Error(_0x56bd41(0x1f4)+_0x873e5d[_0x56bd41(0x1ee)]+'\x20'+_0x873e5d[_0x56bd41(0x1fe)]);const _0x55f24b=await _0x873e5d[_0x56bd41(0x1f7)]();if(!_0x55f24b[_0x56bd41(0x1e8)]||typeof _0x55f24b[_0x56bd41(0x1e8)]!==_0x56bd41(0x1f6))throw new Error('CDN\x20返回数据格式错误');return _0x55f24b;}export function writeGuidesToProject(_0x46cdca,_0x3a806d,_0x14fdba=a196_0x14a6c6(0x1f1),_0x4e8624){const _0x31e03a=a196_0x14a6c6,_0x5d7509=join(_0x3a806d,_0x14fdba);mkdirSync(_0x5d7509,{'recursive':!![]});for(const [_0x5e8a40,_0x3f066f]of Object[_0x31e03a(0x1f2)](_0x46cdca[_0x31e03a(0x1e8)])){let _0x3368a9=_0x3f066f[_0x31e03a(0x1e6)];_0x3f066f[_0x31e03a(0x1f8)]&&(_0x3368a9=appendUpdateTime(_0x3368a9,_0x3f066f[_0x31e03a(0x1f8)])),writeFileSync(join(_0x5d7509,_0x5e8a40+'.md'),_0x3368a9,_0x31e03a(0x1e9));}}export function appendUpdateTime(_0x2da3ea,_0x20cfa3){const _0x403c39=a196_0x14a6c6;return _0x2da3ea=_0x2da3ea['replace'](/\n*>更新时间:.*$/m,''),_0x2da3ea[_0x403c39(0x1fc)]()+(_0x403c39(0x1fb)+_0x20cfa3);}export function getSkillTemplate(_0x22b0bb){const _0x54c1f4=a196_0x14a6c6;return _0x22b0bb[_0x54c1f4(0x1fa)]?.[_0x54c1f4(0x1e6)]||'';}export function appendExtendContents(_0x448d07,_0x4d3759,_0x4dfb61){const _0x8b24e1=a196_0x14a6c6,_0x3d6f9d=[];for(const [,_0x5c4f77]of Object[_0x8b24e1(0x1f2)](_0x4d3759[_0x8b24e1(0x1e8)])){_0x5c4f77['extendContent']&&_0x3d6f9d[_0x8b24e1(0x1f0)](_0x5c4f77[_0x8b24e1(0x1e1)][_0x8b24e1(0x1fc)]());}if(_0x3d6f9d['length']===0x0)return _0x448d07;return _0x448d07[_0x8b24e1(0x1fc)]()+'\x0a\x0a'+_0x3d6f9d[_0x8b24e1(0x1f9)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x45c011,_0xf72135,_0x1a1a11){const _0x515d07=a196_0x14a6c6,_0x385bcd=getSkillTemplate(_0x45c011);if(!_0x385bcd)throw new Error(_0x515d07(0x1ec));const _0x3f78bd=dirname(_0xf72135);mkdirSync(_0x3f78bd,{'recursive':!![]});let _0x318540=_0x385bcd['replace'](/\{\{IDE_NAME\}\}/g,_0x1a1a11);_0x318540=appendExtendContents(_0x318540,_0x45c011),_0x45c011[_0x515d07(0x1fa)][_0x515d07(0x1f8)]&&(_0x318540=appendUpdateTime(_0x318540,_0x45c011[_0x515d07(0x1fa)]['lastUpdated'])),writeFileSync(_0xf72135,_0x318540,_0x515d07(0x1e9));}export async function installGuides(_0x259434){const _0x436ed2=a196_0x14a6c6,_0x3bf1a7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3bf1a7,_0x259434),Object[_0x436ed2(0x1ff)](_0x3bf1a7[_0x436ed2(0x1e8)])['length'];}function a196_0x1c95(){const _0x4b51cf=['64hwLTGo','2086932MslMej','title','content','1788285bKGgjl','guides','utf-8','1855497jpwXBI','744692pnloIS','CDN\x20数据中缺少\x20skillTemplate','application/json','status','1167990xFTXnt','push','.lovrabet/skill/guides','entries','1271520Shgnwj','CDN\x20请求失败:\x20','559364tShTVh','object','json','lastUpdated','join','skillTemplate','\x0a\x0a>更新时间:','trimEnd','.lovrabet','statusText','keys','extendContent','/skills/guides.json'];a196_0x1c95=function(){return _0x4b51cf;};return a196_0x1c95();}export function getGuidesSummary(_0x934016){const _0x5d6272=a196_0x14a6c6;return Object[_0x5d6272(0x1f2)](_0x934016[_0x5d6272(0x1e8)])['map'](([_0x9b4fdb,_0x184cd8])=>({'key':_0x9b4fdb,'title':_0x184cd8[_0x5d6272(0x1e5)],'path':_0x184cd8['path']}));}
1
+ const a196_0x43c198=a196_0x2e12;(function(_0x3069d6,_0x5ca0a0){const _0x55c41b=a196_0x2e12,_0x33c8bb=_0x3069d6();while(!![]){try{const _0x201e1d=-parseInt(_0x55c41b(0x144))/0x1*(parseInt(_0x55c41b(0x14b))/0x2)+parseInt(_0x55c41b(0x158))/0x3+parseInt(_0x55c41b(0x13f))/0x4+-parseInt(_0x55c41b(0x143))/0x5+-parseInt(_0x55c41b(0x14a))/0x6+parseInt(_0x55c41b(0x13c))/0x7*(-parseInt(_0x55c41b(0x157))/0x8)+parseInt(_0x55c41b(0x13d))/0x9;if(_0x201e1d===_0x5ca0a0)break;else _0x33c8bb['push'](_0x33c8bb['shift']());}catch(_0x13e51d){_0x33c8bb['push'](_0x33c8bb['shift']());}}}(a196_0x5b3f,0xba75a));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 _0x4ede28=a196_0x2e12,_0x3b08b9=getTemplateBaseUrl();return _0x3b08b9+_0x4ede28(0x14e);}const CACHE_DIR=join(homedir(),a196_0x43c198(0x149),a196_0x43c198(0x155));export async function fetchGuidesFromCDN(){const _0x42ee63=a196_0x43c198,_0x56d8da=getGuidesCdnUrl(),_0x37e2bc=await fetch(_0x56d8da,{'headers':{'Accept':'application/json'}});if(!_0x37e2bc['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x37e2bc['status']+'\x20'+_0x37e2bc[_0x42ee63(0x145)]);const _0x31f091=await _0x37e2bc[_0x42ee63(0x147)]();if(!_0x31f091[_0x42ee63(0x15a)]||typeof _0x31f091['guides']!==_0x42ee63(0x159))throw new Error(_0x42ee63(0x14f));return _0x31f091;}function a196_0x2e12(_0x3a02dc,_0x14ce4a){_0x3a02dc=_0x3a02dc-0x13a;const _0x5b3f22=a196_0x5b3f();let _0x2e1234=_0x5b3f22[_0x3a02dc];return _0x2e1234;}export function writeGuidesToProject(_0xdb0994,_0x2897b2,_0x42db1d=a196_0x43c198(0x151),_0x3e9f01){const _0x94a49f=a196_0x43c198,_0x3cbe44=join(_0x2897b2,_0x42db1d);mkdirSync(_0x3cbe44,{'recursive':!![]});for(const [_0x2c6fbc,_0x43a81e]of Object[_0x94a49f(0x152)](_0xdb0994['guides'])){let _0x1b9aff=_0x43a81e['content'];_0x43a81e['lastUpdated']&&(_0x1b9aff=appendUpdateTime(_0x1b9aff,_0x43a81e['lastUpdated'])),writeFileSync(join(_0x3cbe44,_0x2c6fbc+_0x94a49f(0x146)),_0x1b9aff,_0x94a49f(0x140));}}export function appendUpdateTime(_0x1ffa26,_0x3f055b){const _0x102d09=a196_0x43c198;return _0x1ffa26=_0x1ffa26[_0x102d09(0x156)](/\n*>更新时间:.*$/m,''),_0x1ffa26[_0x102d09(0x15c)]()+(_0x102d09(0x148)+_0x3f055b);}export function getSkillTemplate(_0x2a8cf2){const _0x550c74=a196_0x43c198;return _0x2a8cf2[_0x550c74(0x13a)]?.[_0x550c74(0x153)]||'';}function a196_0x5b3f(){const _0x400901=['303195HAUwYQ','30237nCSHgB','statusText','.md','json','\x0a\x0a>更新时间:','.lovrabet','3763962BgHOjO','74JRrUVB','keys','lastUpdated','/skills/guides.json','CDN\x20返回数据格式错误','CDN\x20数据中缺少\x20skillTemplate','.lovrabet/skill/guides','entries','content','push','cache','replace','8ezZinL','4103526mMEqBF','object','guides','join','trimEnd','skillTemplate','title','9378817rQgiqf','14557293qJZGjf','length','3699940PzJzBC','utf-8','map','extendContent'];a196_0x5b3f=function(){return _0x400901;};return a196_0x5b3f();}export function appendExtendContents(_0x3676cd,_0x10218b,_0x9e7e3f){const _0x257a46=a196_0x43c198,_0x28f0fd=[];for(const [,_0x117f24]of Object[_0x257a46(0x152)](_0x10218b[_0x257a46(0x15a)])){_0x117f24['extendContent']&&_0x28f0fd[_0x257a46(0x154)](_0x117f24[_0x257a46(0x142)][_0x257a46(0x15c)]());}if(_0x28f0fd[_0x257a46(0x13e)]===0x0)return _0x3676cd;return _0x3676cd[_0x257a46(0x15c)]()+'\x0a\x0a'+_0x28f0fd[_0x257a46(0x15b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4dcf37,_0x4a02fa,_0x12424e){const _0x32019b=a196_0x43c198,_0x4d11c9=getSkillTemplate(_0x4dcf37);if(!_0x4d11c9)throw new Error(_0x32019b(0x150));const _0x3700c5=dirname(_0x4a02fa);mkdirSync(_0x3700c5,{'recursive':!![]});let _0x5310b3=_0x4d11c9['replace'](/\{\{IDE_NAME\}\}/g,_0x12424e);_0x5310b3=appendExtendContents(_0x5310b3,_0x4dcf37),_0x4dcf37[_0x32019b(0x13a)][_0x32019b(0x14d)]&&(_0x5310b3=appendUpdateTime(_0x5310b3,_0x4dcf37[_0x32019b(0x13a)][_0x32019b(0x14d)])),writeFileSync(_0x4a02fa,_0x5310b3,_0x32019b(0x140));}export async function installGuides(_0x315f7d){const _0x24544e=a196_0x43c198,_0x1501db=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1501db,_0x315f7d),Object[_0x24544e(0x14c)](_0x1501db[_0x24544e(0x15a)])[_0x24544e(0x13e)];}export function getGuidesSummary(_0x43a5bf){const _0x2cc093=a196_0x43c198;return Object[_0x2cc093(0x152)](_0x43a5bf[_0x2cc093(0x15a)])[_0x2cc093(0x141)](([_0xc7b1f2,_0x39a18c])=>({'key':_0xc7b1f2,'title':_0x39a18c[_0x2cc093(0x13b)],'path':_0x39a18c['path']}));}
@@ -1 +1 @@
1
- (function(_0x1e16cb,_0x295acb){const _0x2b358e=a197_0x3c2b,_0x3e5e6f=_0x1e16cb();while(!![]){try{const _0x254e4a=parseInt(_0x2b358e(0x1e8))/0x1+-parseInt(_0x2b358e(0x1e0))/0x2+parseInt(_0x2b358e(0x1ee))/0x3*(-parseInt(_0x2b358e(0x1e1))/0x4)+-parseInt(_0x2b358e(0x1ec))/0x5+parseInt(_0x2b358e(0x1ea))/0x6+-parseInt(_0x2b358e(0x1df))/0x7+parseInt(_0x2b358e(0x1eb))/0x8;if(_0x254e4a===_0x295acb)break;else _0x3e5e6f['push'](_0x3e5e6f['shift']());}catch(_0x18d159){_0x3e5e6f['push'](_0x3e5e6f['shift']());}}}(a197_0x42a1,0xe886a));function a197_0x42a1(){const _0x5b10d7=['url','abort','json','signal','194681eYOqvf','Request\x20failed','10047414GSDRpr','28285536FZdSef','106595XMzcfw','name','426486VAGxEs','message','content-type','log','get','*\x20请求失败,','ms\x20后进行第\x20','AbortError','application/json','includes','text','13265763PgBDoY','1375964FGeAjN','52JSiJiO','headers','status'];a197_0x42a1=function(){return _0x5b10d7;};return a197_0x42a1();}export async function httpRequest(_0x2d1808,_0x4daeab={}){const _0x38dc8c=a197_0x3c2b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4daeab;let _0x196c41=null;for(let _0x43336f=0x0;_0x43336f<=retries;_0x43336f++){try{const _0x430108=new AbortController(),_0x3a32c1=setTimeout(()=>_0x430108[_0x38dc8c(0x1e5)](),timeout),_0x338318=await fetch(_0x2d1808,{'headers':headers,'signal':_0x430108[_0x38dc8c(0x1e7)]});clearTimeout(_0x3a32c1);let _0x55675e;const _0x5ad7d7=_0x338318[_0x38dc8c(0x1e2)][_0x38dc8c(0x1f2)](_0x38dc8c(0x1f0));return _0x5ad7d7?.[_0x38dc8c(0x1dd)](_0x38dc8c(0x1dc))?_0x55675e=await _0x338318[_0x38dc8c(0x1e6)]():_0x55675e=await _0x338318['text'](),{'ok':_0x338318['ok'],'status':_0x338318[_0x38dc8c(0x1e3)],'statusText':_0x338318['statusText'],'data':_0x55675e,'headers':_0x338318[_0x38dc8c(0x1e2)],'url':_0x338318[_0x38dc8c(0x1e4)],'text':()=>_0x338318[_0x38dc8c(0x1de)]()};}catch(_0x3bdc7d){_0x196c41=_0x3bdc7d instanceof Error?_0x3bdc7d:new Error(String(_0x3bdc7d));if(_0x43336f===retries)break;if(shouldRetry(_0x3bdc7d)){console[_0x38dc8c(0x1f1)](_0x38dc8c(0x1f3)+retryDelay+_0x38dc8c(0x1da)+(_0x43336f+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x196c41||new Error(_0x38dc8c(0x1e9));}function shouldRetry(_0x132974){const _0x8e6460=a197_0x3c2b;if(_0x132974 instanceof Error){if(_0x132974[_0x8e6460(0x1ed)]===_0x8e6460(0x1db))return![];if(_0x132974['name']==='TypeError'&&_0x132974['message'][_0x8e6460(0x1dd)]('fetch'))return!![];if(_0x132974['message'][_0x8e6460(0x1dd)]('ECONNRESET'))return!![];if(_0x132974[_0x8e6460(0x1ef)][_0x8e6460(0x1dd)]('ENOTFOUND'))return![];}return![];}function sleep(_0x50eac2){return new Promise(_0x3adbe0=>setTimeout(_0x3adbe0,_0x50eac2));}function a197_0x3c2b(_0x208adb,_0x18bcc7){_0x208adb=_0x208adb-0x1da;const _0x42a1fb=a197_0x42a1();let _0x3c2bec=_0x42a1fb[_0x208adb];return _0x3c2bec;}export function validateUrl(_0x5f22e6){try{return new URL(_0x5f22e6),!![];}catch{return![];}}
1
+ function a197_0x1ae5(){const _0x55331b=['6036561llZLvQ','4904872jSbyff','320177rYdNdH','ENOTFOUND','name','AbortError','25pqRngf','url','statusText','headers','7tbZLCR','status','content-type','536070nzQUem','includes','fetch','TypeError','ms\x20后进行第\x20','abort','677250IRvgQP','\x20次重试...','signal','ECONNRESET','596630bfEOcF','log','message','3213496nnTTcT','6IRvckU','get','*\x20请求失败,'];a197_0x1ae5=function(){return _0x55331b;};return a197_0x1ae5();}(function(_0x454454,_0x4f21ba){const _0x6875fc=a197_0x3abd,_0x11bde4=_0x454454();while(!![]){try{const _0x5eac06=parseInt(_0x6875fc(0x87))/0x1*(-parseInt(_0x6875fc(0x82))/0x2)+-parseInt(_0x6875fc(0x7a))/0x3+parseInt(_0x6875fc(0x86))/0x4+-parseInt(_0x6875fc(0x8b))/0x5*(-parseInt(_0x6875fc(0x92))/0x6)+parseInt(_0x6875fc(0x8f))/0x7*(-parseInt(_0x6875fc(0x81))/0x8)+parseInt(_0x6875fc(0x85))/0x9+parseInt(_0x6875fc(0x7e))/0xa;if(_0x5eac06===_0x4f21ba)break;else _0x11bde4['push'](_0x11bde4['shift']());}catch(_0x167d3b){_0x11bde4['push'](_0x11bde4['shift']());}}}(a197_0x1ae5,0xc7107));export async function httpRequest(_0x2eb849,_0x5a3006={}){const _0x5e22ce=a197_0x3abd,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5a3006;let _0x2d45c5=null;for(let _0x5b5b3e=0x0;_0x5b5b3e<=retries;_0x5b5b3e++){try{const _0x542951=new AbortController(),_0x3e95d0=setTimeout(()=>_0x542951[_0x5e22ce(0x79)](),timeout),_0x16f72f=await fetch(_0x2eb849,{'headers':headers,'signal':_0x542951[_0x5e22ce(0x7c)]});clearTimeout(_0x3e95d0);let _0x41a42c;const _0x212ee6=_0x16f72f['headers'][_0x5e22ce(0x83)](_0x5e22ce(0x91));return _0x212ee6?.[_0x5e22ce(0x93)]('application/json')?_0x41a42c=await _0x16f72f['json']():_0x41a42c=await _0x16f72f['text'](),{'ok':_0x16f72f['ok'],'status':_0x16f72f[_0x5e22ce(0x90)],'statusText':_0x16f72f[_0x5e22ce(0x8d)],'data':_0x41a42c,'headers':_0x16f72f[_0x5e22ce(0x8e)],'url':_0x16f72f[_0x5e22ce(0x8c)],'text':()=>_0x16f72f['text']()};}catch(_0x19e675){_0x2d45c5=_0x19e675 instanceof Error?_0x19e675:new Error(String(_0x19e675));if(_0x5b5b3e===retries)break;if(shouldRetry(_0x19e675)){console[_0x5e22ce(0x7f)](_0x5e22ce(0x84)+retryDelay+_0x5e22ce(0x96)+(_0x5b5b3e+0x1)+_0x5e22ce(0x7b)),await sleep(retryDelay);continue;}else break;}}throw _0x2d45c5||new Error('Request\x20failed');}function a197_0x3abd(_0x10f5e6,_0xc0a1a5){_0x10f5e6=_0x10f5e6-0x79;const _0x1ae519=a197_0x1ae5();let _0x3abd3d=_0x1ae519[_0x10f5e6];return _0x3abd3d;}function shouldRetry(_0x1a0073){const _0x1d7972=a197_0x3abd;if(_0x1a0073 instanceof Error){if(_0x1a0073[_0x1d7972(0x89)]===_0x1d7972(0x8a))return![];if(_0x1a0073[_0x1d7972(0x89)]===_0x1d7972(0x95)&&_0x1a0073[_0x1d7972(0x80)][_0x1d7972(0x93)](_0x1d7972(0x94)))return!![];if(_0x1a0073[_0x1d7972(0x80)]['includes'](_0x1d7972(0x7d)))return!![];if(_0x1a0073[_0x1d7972(0x80)]['includes'](_0x1d7972(0x88)))return![];}return![];}function sleep(_0x43b391){return new Promise(_0x28b677=>setTimeout(_0x28b677,_0x43b391));}export function validateUrl(_0x9feb8b){try{return new URL(_0x9feb8b),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a198_0x1256(_0x5f2890,_0x128fd3){_0x5f2890=_0x5f2890-0xd0;const _0x545c2a=a198_0x545c();let _0x1256ba=_0x545c2a[_0x5f2890];return _0x1256ba;}(function(_0xf1812b,_0x36c177){const _0x3969a4=a198_0x1256,_0x17312a=_0xf1812b();while(!![]){try{const _0xdec65c=parseInt(_0x3969a4(0xe0))/0x1*(parseInt(_0x3969a4(0xd5))/0x2)+-parseInt(_0x3969a4(0xd4))/0x3+parseInt(_0x3969a4(0xd1))/0x4*(-parseInt(_0x3969a4(0xd6))/0x5)+-parseInt(_0x3969a4(0xdb))/0x6*(-parseInt(_0x3969a4(0xe1))/0x7)+-parseInt(_0x3969a4(0xdd))/0x8*(-parseInt(_0x3969a4(0xda))/0x9)+-parseInt(_0x3969a4(0xdc))/0xa*(parseInt(_0x3969a4(0xd2))/0xb)+-parseInt(_0x3969a4(0xd3))/0xc*(-parseInt(_0x3969a4(0xd7))/0xd);if(_0xdec65c===_0x36c177)break;else _0x17312a['push'](_0x17312a['shift']());}catch(_0x135b41){_0x17312a['push'](_0x17312a['shift']());}}}(a198_0x545c,0xd6bdc));function env(_0x39b902){return process.env[`RABETBASE_${_0x39b902}`]||process.env[`LOVRABET_${_0x39b902}`]||undefined;}export function isNonInteractive(_0x4dbd7b){const _0x552379=a198_0x1256;return!!(_0x4dbd7b['nonInteractive']||_0x4dbd7b['ci']||env('CI')==='true'||process.env.CI===_0x552379(0xd0)||!process[_0x552379(0xd8)][_0x552379(0xde)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e7708=a198_0x1256;if(!process['stdin'][_0x4e7708(0xde)])return![];try{const _0x3def88=process[_0x4e7708(0xe2)][_0x4e7708(0xdf)];return process[_0x4e7708(0xe2)][_0x4e7708(0xd9)](!![]),process[_0x4e7708(0xe2)][_0x4e7708(0xd9)](_0x3def88??![]),!![];}catch{return![];}}function a198_0x545c(){const _0x25db4b=['1097718EuMvkU','10550510veCkZf','9952iwwQtp','isTTY','isRaw','2GhLvZR','21OYKApf','stdin','true','43324BnNzyx','11dUJAfD','24ZmQaFe','1044615dWoqfE','234914AoyRxs','645aBVYPs','16747601ScDBfY','stdout','setRawMode','2313pDkwQt'];a198_0x545c=function(){return _0x25db4b;};return a198_0x545c();}
1
+ (function(_0x1783bd,_0x11947c){const _0x441752=a198_0x4483,_0x4ca02e=_0x1783bd();while(!![]){try{const _0x27e5ae=parseInt(_0x441752(0x115))/0x1*(parseInt(_0x441752(0x103))/0x2)+-parseInt(_0x441752(0x10d))/0x3*(parseInt(_0x441752(0x10f))/0x4)+parseInt(_0x441752(0x107))/0x5*(parseInt(_0x441752(0x112))/0x6)+-parseInt(_0x441752(0x110))/0x7+parseInt(_0x441752(0x10e))/0x8+-parseInt(_0x441752(0x114))/0x9*(parseInt(_0x441752(0x10c))/0xa)+parseInt(_0x441752(0x113))/0xb*(parseInt(_0x441752(0x105))/0xc);if(_0x27e5ae===_0x11947c)break;else _0x4ca02e['push'](_0x4ca02e['shift']());}catch(_0x18bd2b){_0x4ca02e['push'](_0x4ca02e['shift']());}}}(a198_0x20d9,0xc51b8));function a198_0x4483(_0x45aeae,_0x459f5e){_0x45aeae=_0x45aeae-0x103;const _0x20d903=a198_0x20d9();let _0x4483ff=_0x20d903[_0x45aeae];return _0x4483ff;}function a198_0x20d9(){const _0x36f27e=['545877xnYInF','1iAhfRW','1828808QbbDzp','stdin','5968428KcKhrm','nonInteractive','45snwpVu','isTTY','true','stdout','setRawMode','20rSoSLB','1198146HIeuNi','114104aKfQHU','8FGeLKI','5260668hQUNhD','isRaw','701940gnEaWi','11ESFMfq'];a198_0x20d9=function(){return _0x36f27e;};return a198_0x20d9();}function env(_0x105309){return process.env[`RABETBASE_${_0x105309}`]||process.env[`LOVRABET_${_0x105309}`]||undefined;}export function isNonInteractive(_0x138ead){const _0x347426=a198_0x4483;return!!(_0x138ead[_0x347426(0x106)]||_0x138ead['ci']||env('CI')===_0x347426(0x109)||process.env.CI===_0x347426(0x109)||!process[_0x347426(0x10a)][_0x347426(0x108)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x42314e=a198_0x4483;if(!process[_0x42314e(0x104)][_0x42314e(0x108)])return![];try{const _0x28f22a=process[_0x42314e(0x104)][_0x42314e(0x111)];return process[_0x42314e(0x104)][_0x42314e(0x10b)](!![]),process[_0x42314e(0x104)][_0x42314e(0x10b)](_0x28f22a??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a199_0x1dab3b=a199_0x33d9;function a199_0x1b57(){const _0x2f262f=['winstonLogger','readFileSync','logFilePath','getWinstonInstance','File','red','mkdirSync','开始执行:\x20','green','initWinstonLogger','9944102lRKJmN','5azKIAz','success','duration','1TXCjPB','existsSync','level','error','format','details','now','12075920PlCJfV','printf','完成:\x20','失败:\x20','569154JCIFIY','clearLogs','info','addColors','split','15120743BhxAIc','42MoOWmR','10OIDIhL','warn','parse','filter','toISOString','unknown','rawCommand','combine','join','logTask','10863072mkFSlC','createLogger','258204PBmGEB','utf8','Failed\x20to\x20read\x20logs:','setLogPath','976558gGdtmj','currentRawCommand'];a199_0x1b57=function(){return _0x2f262f;};return a199_0x1b57();}(function(_0x389c74,_0x968bc6){const _0x12df34=a199_0x33d9,_0x5f259d=_0x389c74();while(!![]){try{const _0x105f58=-parseInt(_0x12df34(0x17a))/0x1*(parseInt(_0x12df34(0x16a))/0x2)+parseInt(_0x12df34(0x159))/0x3*(parseInt(_0x12df34(0x166))/0x4)+-parseInt(_0x12df34(0x177))/0x5*(-parseInt(_0x12df34(0x153))/0x6)+-parseInt(_0x12df34(0x176))/0x7+parseInt(_0x12df34(0x181))/0x8+-parseInt(_0x12df34(0x164))/0x9+parseInt(_0x12df34(0x15a))/0xa*(parseInt(_0x12df34(0x158))/0xb);if(_0x105f58===_0x968bc6)break;else _0x5f259d['push'](_0x5f259d['shift']());}catch(_0x4153fe){_0x5f259d['push'](_0x5f259d['shift']());}}}(a199_0x1b57,0xbb353));import a199_0x48f24d from'winston';import a199_0x5ebbf5 from'node:fs';import a199_0x3b8774 from'node:path';class Logger{[a199_0x1dab3b(0x16c)];[a199_0x1dab3b(0x16e)];[a199_0x1dab3b(0x16b)]='';constructor(){const _0x348722=a199_0x1dab3b;this[_0x348722(0x16e)]='';}['setRawCommand'](_0xe12edf){const _0x1742c4=a199_0x1dab3b;this[_0x1742c4(0x16b)]=_0xe12edf;}[a199_0x1dab3b(0x175)](){const _0x49a458=a199_0x1dab3b,_0x4a37f8=a199_0x3b8774['dirname'](this[_0x49a458(0x16e)]);!a199_0x5ebbf5[_0x49a458(0x17b)](_0x4a37f8)&&a199_0x5ebbf5[_0x49a458(0x172)](_0x4a37f8,{'recursive':!![]});const _0x2f1dfc=a199_0x48f24d[_0x49a458(0x17e)][_0x49a458(0x161)](a199_0x48f24d['format']['timestamp'](),a199_0x48f24d[_0x49a458(0x17e)]['errors']({'stack':!![]}),a199_0x48f24d[_0x49a458(0x17e)][_0x49a458(0x182)](_0x232d46=>{const _0xbb58f3=_0x49a458,_0x522e35={'timestamp':_0x232d46['timestamp']||new Date()[_0xbb58f3(0x15e)](),'level':_0x232d46[_0xbb58f3(0x17c)]||_0xbb58f3(0x155),'command':_0x232d46['command']||_0xbb58f3(0x15f),'rawCommand':_0x232d46[_0xbb58f3(0x160)]||this['currentRawCommand']||undefined,'message':_0x232d46['message']||'','duration':_0x232d46[_0xbb58f3(0x179)]||undefined,'details':_0x232d46[_0xbb58f3(0x17f)]||undefined};return JSON['stringify'](_0x522e35);}));this[_0x49a458(0x16c)]=a199_0x48f24d[_0x49a458(0x165)]({'level':_0x49a458(0x155),'format':_0x2f1dfc,'transports':[new a199_0x48f24d['transports'][(_0x49a458(0x170))]({'filename':this['logFilePath'],'level':_0x49a458(0x155)})],'silent':![]}),a199_0x48f24d[_0x49a458(0x156)]({'success':_0x49a458(0x174),'error':_0x49a458(0x171),'warn':'yellow','info':'blue'});}[a199_0x1dab3b(0x169)](_0xa7d918){const _0x5488d4=a199_0x1dab3b;this[_0x5488d4(0x16e)]=a199_0x3b8774[_0x5488d4(0x162)](_0xa7d918,'.lovrabet.log'),this[_0x5488d4(0x16c)]&&this[_0x5488d4(0x16c)]['clear'](),this[_0x5488d4(0x175)]();}[a199_0x1dab3b(0x155)](_0x4312d7,_0x14527d,_0x2ac506){const _0x45e2a4=a199_0x1dab3b;if(!this[_0x45e2a4(0x16e)]||!this[_0x45e2a4(0x16c)])return;this[_0x45e2a4(0x16c)]['info'](_0x14527d,{'command':_0x4312d7,'details':_0x2ac506});}['success'](_0x335288,_0x22a797,_0x232210,_0x41ffb0){const _0x364884=a199_0x1dab3b;if(!this[_0x364884(0x16e)]||!this[_0x364884(0x16c)])return;this[_0x364884(0x16c)]['log'](_0x364884(0x155),_0x22a797,{'level':_0x364884(0x178),'command':_0x335288,'duration':_0x232210,'details':_0x41ffb0});}[a199_0x1dab3b(0x17d)](_0x86d18c,_0x489230,_0xe2464a){const _0x408f63=a199_0x1dab3b;if(!this['logFilePath']||!this[_0x408f63(0x16c)])return;this[_0x408f63(0x16c)][_0x408f63(0x17d)](_0x489230,{'command':_0x86d18c,'details':_0xe2464a});}[a199_0x1dab3b(0x15b)](_0xbf5fa1,_0x1e80e2,_0x5d5dfd){const _0x197bd0=a199_0x1dab3b;if(!this[_0x197bd0(0x16e)]||!this[_0x197bd0(0x16c)])return;this[_0x197bd0(0x16c)]['warn'](_0x1e80e2,{'command':_0xbf5fa1,'details':_0x5d5dfd});}async[a199_0x1dab3b(0x163)](_0x5e6e6e,_0xc406b6,_0x2d23fb){const _0x1c1510=a199_0x1dab3b,_0x18e7d3=Date['now']();this[_0x1c1510(0x155)](_0x5e6e6e,_0x1c1510(0x173)+_0xc406b6);try{const _0x26d57e=await _0x2d23fb(),_0x1acc05=Date[_0x1c1510(0x180)]()-_0x18e7d3;return this[_0x1c1510(0x178)](_0x5e6e6e,_0x1c1510(0x183)+_0xc406b6,_0x1acc05),_0x26d57e;}catch(_0x2a976f){const _0x217622=Date[_0x1c1510(0x180)]()-_0x18e7d3;this['error'](_0x5e6e6e,_0x1c1510(0x184)+_0xc406b6,{'error':_0x2a976f instanceof Error?_0x2a976f['message']:String(_0x2a976f),'duration':_0x217622});throw _0x2a976f;}}['readLogs'](){const _0xd42574=a199_0x1dab3b;try{if(!a199_0x5ebbf5['existsSync'](this[_0xd42574(0x16e)]))return[];const _0x41c18e=a199_0x5ebbf5[_0xd42574(0x16d)](this[_0xd42574(0x16e)],_0xd42574(0x167));return _0x41c18e[_0xd42574(0x157)]('\x0a')[_0xd42574(0x15d)](_0x51fa6e=>_0x51fa6e['trim']())['map'](_0x357f45=>JSON[_0xd42574(0x15c)](_0x357f45));}catch(_0x2ad943){return console[_0xd42574(0x15b)](_0xd42574(0x168),_0x2ad943),[];}}[a199_0x1dab3b(0x154)](){const _0x121334=a199_0x1dab3b;try{a199_0x5ebbf5[_0x121334(0x17b)](this[_0x121334(0x16e)])&&a199_0x5ebbf5['writeFileSync'](this[_0x121334(0x16e)],'','utf8');}catch(_0x16ee92){console[_0x121334(0x15b)]('Failed\x20to\x20clear\x20logs:',_0x16ee92);}}[a199_0x1dab3b(0x16f)](){return this['winstonLogger'];}}function a199_0x33d9(_0x4a5a87,_0x5f4ad4){_0x4a5a87=_0x4a5a87-0x153;const _0x1b57ed=a199_0x1b57();let _0x33d909=_0x1b57ed[_0x4a5a87];return _0x33d909;}export const logger=new Logger();
1
+ const a199_0x183b1e=a199_0x46d3;(function(_0x2e6242,_0x352f28){const _0xc0319f=a199_0x46d3,_0x121bf6=_0x2e6242();while(!![]){try{const _0x18bb59=-parseInt(_0xc0319f(0x114))/0x1*(-parseInt(_0xc0319f(0x108))/0x2)+parseInt(_0xc0319f(0x106))/0x3*(parseInt(_0xc0319f(0xef))/0x4)+-parseInt(_0xc0319f(0x107))/0x5*(parseInt(_0xc0319f(0x112))/0x6)+-parseInt(_0xc0319f(0x119))/0x7*(parseInt(_0xc0319f(0x101))/0x8)+parseInt(_0xc0319f(0xfd))/0x9+parseInt(_0xc0319f(0x109))/0xa+-parseInt(_0xc0319f(0xfe))/0xb;if(_0x18bb59===_0x352f28)break;else _0x121bf6['push'](_0x121bf6['shift']());}catch(_0x1401fb){_0x121bf6['push'](_0x121bf6['shift']());}}}(a199_0x6cfd,0xa9d57));import a199_0x7bc21c from'winston';import a199_0x277b6c from'node:fs';function a199_0x46d3(_0x19a6f6,_0x53d8f4){_0x19a6f6=_0x19a6f6-0xe8;const _0x6cfd53=a199_0x6cfd();let _0x46d380=_0x6cfd53[_0x19a6f6];return _0x46d380;}import a199_0xf32a9a from'node:path';class Logger{[a199_0x183b1e(0x10a)];['logFilePath'];[a199_0x183b1e(0x11b)]='';constructor(){const _0x5802be=a199_0x183b1e;this[_0x5802be(0x11e)]='';}['setRawCommand'](_0x544bce){const _0x3fce08=a199_0x183b1e;this[_0x3fce08(0x11b)]=_0x544bce;}[a199_0x183b1e(0xee)](){const _0x3c183a=a199_0x183b1e,_0x1a3345=a199_0xf32a9a['dirname'](this[_0x3c183a(0x11e)]);!a199_0x277b6c['existsSync'](_0x1a3345)&&a199_0x277b6c[_0x3c183a(0xf5)](_0x1a3345,{'recursive':!![]});const _0x2add1d=a199_0x7bc21c[_0x3c183a(0xfb)]['combine'](a199_0x7bc21c[_0x3c183a(0xfb)][_0x3c183a(0xf7)](),a199_0x7bc21c[_0x3c183a(0xfb)][_0x3c183a(0x10b)]({'stack':!![]}),a199_0x7bc21c['format'][_0x3c183a(0x11c)](_0x33840a=>{const _0x297f5f=_0x3c183a,_0x319f2e={'timestamp':_0x33840a[_0x297f5f(0xf7)]||new Date()[_0x297f5f(0x10d)](),'level':_0x33840a[_0x297f5f(0x110)]||_0x297f5f(0xf3),'command':_0x33840a['command']||_0x297f5f(0xe8),'rawCommand':_0x33840a[_0x297f5f(0xf8)]||this[_0x297f5f(0x11b)]||undefined,'message':_0x33840a[_0x297f5f(0x113)]||'','duration':_0x33840a[_0x297f5f(0x11a)]||undefined,'details':_0x33840a[_0x297f5f(0x111)]||undefined};return JSON['stringify'](_0x319f2e);}));this[_0x3c183a(0x10a)]=a199_0x7bc21c[_0x3c183a(0x116)]({'level':_0x3c183a(0xf3),'format':_0x2add1d,'transports':[new a199_0x7bc21c[(_0x3c183a(0xfc))][(_0x3c183a(0x10f))]({'filename':this[_0x3c183a(0x11e)],'level':_0x3c183a(0xf3)})],'silent':![]}),a199_0x7bc21c['addColors']({'success':_0x3c183a(0xf9),'error':'red','warn':_0x3c183a(0xf6),'info':'blue'});}[a199_0x183b1e(0xf0)](_0x38d3fd){const _0x57db1a=a199_0x183b1e;this['logFilePath']=a199_0xf32a9a[_0x57db1a(0x10e)](_0x38d3fd,_0x57db1a(0xed)),this[_0x57db1a(0x10a)]&&this[_0x57db1a(0x10a)][_0x57db1a(0x100)](),this[_0x57db1a(0xee)]();}['info'](_0x307104,_0x203e29,_0x495d29){const _0x5932e8=a199_0x183b1e;if(!this[_0x5932e8(0x11e)]||!this[_0x5932e8(0x10a)])return;this['winstonLogger'][_0x5932e8(0xf3)](_0x203e29,{'command':_0x307104,'details':_0x495d29});}[a199_0x183b1e(0xf4)](_0x5b636e,_0x2c4a60,_0x17bc75,_0x5372b1){const _0x48bdb5=a199_0x183b1e;if(!this[_0x48bdb5(0x11e)]||!this[_0x48bdb5(0x10a)])return;this[_0x48bdb5(0x10a)][_0x48bdb5(0x102)]('info',_0x2c4a60,{'level':_0x48bdb5(0xf4),'command':_0x5b636e,'duration':_0x17bc75,'details':_0x5372b1});}[a199_0x183b1e(0x105)](_0x3ffcb8,_0x13b2cb,_0x119273){const _0x17ac02=a199_0x183b1e;if(!this[_0x17ac02(0x11e)]||!this[_0x17ac02(0x10a)])return;this['winstonLogger'][_0x17ac02(0x105)](_0x13b2cb,{'command':_0x3ffcb8,'details':_0x119273});}[a199_0x183b1e(0xff)](_0x2e1c98,_0x330ef7,_0x4f4b53){const _0x36a602=a199_0x183b1e;if(!this[_0x36a602(0x11e)]||!this['winstonLogger'])return;this['winstonLogger'][_0x36a602(0xff)](_0x330ef7,{'command':_0x2e1c98,'details':_0x4f4b53});}async[a199_0x183b1e(0x115)](_0x368815,_0x5a45e0,_0x5b913a){const _0x5bf430=a199_0x183b1e,_0x39dd75=Date['now']();this[_0x5bf430(0xf3)](_0x368815,'开始执行:\x20'+_0x5a45e0);try{const _0x21e44a=await _0x5b913a(),_0x1c6173=Date[_0x5bf430(0x118)]()-_0x39dd75;return this[_0x5bf430(0xf4)](_0x368815,_0x5bf430(0x10c)+_0x5a45e0,_0x1c6173),_0x21e44a;}catch(_0x3c397d){const _0x43702f=Date['now']()-_0x39dd75;this[_0x5bf430(0x105)](_0x368815,'失败:\x20'+_0x5a45e0,{'error':_0x3c397d instanceof Error?_0x3c397d['message']:String(_0x3c397d),'duration':_0x43702f});throw _0x3c397d;}}['readLogs'](){const _0x3b1876=a199_0x183b1e;try{if(!a199_0x277b6c['existsSync'](this['logFilePath']))return[];const _0x16b02d=a199_0x277b6c[_0x3b1876(0xeb)](this[_0x3b1876(0x11e)],'utf8');return _0x16b02d[_0x3b1876(0x104)]('\x0a')['filter'](_0x2d341f=>_0x2d341f[_0x3b1876(0x103)]())[_0x3b1876(0xfa)](_0x8c9e3a=>JSON[_0x3b1876(0xea)](_0x8c9e3a));}catch(_0x5e78a2){return console['warn'](_0x3b1876(0xf1),_0x5e78a2),[];}}[a199_0x183b1e(0xe9)](){const _0x256d6b=a199_0x183b1e;try{a199_0x277b6c[_0x256d6b(0xf2)](this[_0x256d6b(0x11e)])&&a199_0x277b6c[_0x256d6b(0x11d)](this[_0x256d6b(0x11e)],'','utf8');}catch(_0x2222f9){console[_0x256d6b(0xff)](_0x256d6b(0xec),_0x2222f9);}}[a199_0x183b1e(0x117)](){const _0x202bdc=a199_0x183b1e;return this[_0x202bdc(0x10a)];}}function a199_0x6cfd(){const _0x5359d6=['timestamp','rawCommand','green','map','format','transports','8830278vcsNqy','30936774hjsine','warn','clear','9888chQPKi','log','trim','split','error','328539PixAvD','80bZxIOQ','1597434RXZGbj','6434110tAJRUC','winstonLogger','errors','完成:\x20','toISOString','join','File','level','details','24546xdNeUq','message','1TglmQP','logTask','createLogger','getWinstonInstance','now','308vczDXn','duration','currentRawCommand','printf','writeFileSync','logFilePath','unknown','clearLogs','parse','readFileSync','Failed\x20to\x20clear\x20logs:','.lovrabet.log','initWinstonLogger','44ndgkYt','setLogPath','Failed\x20to\x20read\x20logs:','existsSync','info','success','mkdirSync','yellow'];a199_0x6cfd=function(){return _0x5359d6;};return a199_0x6cfd();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x21aff4,_0x31bc8e){const _0x122fec=a200_0xce77,_0x287676=_0x21aff4();while(!![]){try{const _0x298cad=parseInt(_0x122fec(0x1c4))/0x1*(parseInt(_0x122fec(0x1c7))/0x2)+parseInt(_0x122fec(0x1c3))/0x3*(-parseInt(_0x122fec(0x1c5))/0x4)+-parseInt(_0x122fec(0x1be))/0x5*(-parseInt(_0x122fec(0x1bf))/0x6)+parseInt(_0x122fec(0x1bb))/0x7+parseInt(_0x122fec(0x1bd))/0x8+parseInt(_0x122fec(0x1c2))/0x9+-parseInt(_0x122fec(0x1c1))/0xa;if(_0x298cad===_0x31bc8e)break;else _0x287676['push'](_0x287676['shift']());}catch(_0xff0caf){_0x287676['push'](_0x287676['shift']());}}}(a200_0x45f8,0x59134));function a200_0x45f8(){const _0xd1d172=['2628815CiVlfI','isArray','3415088npdjkg','131635gsVzMR','72cDSvHa','validation','2742840zwYjwc','1925568HYzAzI','2147511oilyxf','1619VpLjMg','4USGNAv','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','28cyMkRI','object'];a200_0x45f8=function(){return _0xd1d172;};return a200_0x45f8();}import{CliErrors}from'../errors.js';function a200_0xce77(_0x209bb9,_0x13efe0){_0x209bb9=_0x209bb9-0x1bb;const _0x45f81f=a200_0x45f8();let _0xce7726=_0x45f81f[_0x209bb9];return _0xce7726;}export function parseJsonParams(_0x160513){const _0x38ce98=a200_0xce77;if(!_0x160513)return undefined;let _0x594c10;try{_0x594c10=JSON['parse'](_0x160513);}catch{throw CliErrors[_0x38ce98(0x1c0)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x160513);}if(!_0x594c10||typeof _0x594c10!==_0x38ce98(0x1c8)||Array[_0x38ce98(0x1bc)](_0x594c10))throw CliErrors[_0x38ce98(0x1c0)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x38ce98(0x1c6));return _0x594c10;}
1
+ (function(_0x4b6c72,_0x2e9d3d){const _0x5807c9=a200_0x1595,_0x2663d1=_0x4b6c72();while(!![]){try{const _0x3ead71=parseInt(_0x5807c9(0x7e))/0x1*(-parseInt(_0x5807c9(0x82))/0x2)+-parseInt(_0x5807c9(0x78))/0x3*(parseInt(_0x5807c9(0x77))/0x4)+-parseInt(_0x5807c9(0x79))/0x5*(parseInt(_0x5807c9(0x7b))/0x6)+-parseInt(_0x5807c9(0x7c))/0x7+parseInt(_0x5807c9(0x81))/0x8+-parseInt(_0x5807c9(0x7f))/0x9+parseInt(_0x5807c9(0x80))/0xa*(parseInt(_0x5807c9(0x74))/0xb);if(_0x3ead71===_0x2e9d3d)break;else _0x2663d1['push'](_0x2663d1['shift']());}catch(_0x4926e4){_0x2663d1['push'](_0x2663d1['shift']());}}}(a200_0x1fef,0x8efc7));function a200_0x1595(_0x8ba777,_0x3e31cb){_0x8ba777=_0x8ba777-0x74;const _0x1fef0c=a200_0x1fef();let _0x159550=_0x1fef0c[_0x8ba777];return _0x159550;}function a200_0x1fef(){const _0x3aa13c=['1546928MAMqLZ','160qNZbWo','object','--params\x20must\x20be\x20a\x20JSON\x20object','validation','7227PxypkT','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','parse','2477356AuDmRg','3ktLXfR','4967290MAbpIs','isArray','6ndKiEq','748769mSvgyS','Invalid\x20JSON\x20for\x20--params:\x20','5353uPORLC','2781900gtcUeB','43370HtfbNN'];a200_0x1fef=function(){return _0x3aa13c;};return a200_0x1fef();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x21710a){const _0x69a7fb=a200_0x1595;if(!_0x21710a)return undefined;let _0x1bdb54;try{_0x1bdb54=JSON[_0x69a7fb(0x76)](_0x21710a);}catch{throw CliErrors[_0x69a7fb(0x85)](_0x69a7fb(0x7d)+_0x21710a);}if(!_0x1bdb54||typeof _0x1bdb54!==_0x69a7fb(0x83)||Array[_0x69a7fb(0x7a)](_0x1bdb54))throw CliErrors[_0x69a7fb(0x85)](_0x69a7fb(0x84),_0x69a7fb(0x75));return _0x1bdb54;}
@@ -1 +1 @@
1
- function a201_0x45d0(){const _0x11c515=['22668cKzWmU','2928280pLPFtx','2555oTLFli','.cmd','712wQULAu','platform','17846444CQeZGl','6265900urwwRj','48gtVCyz','709380cknPQK','798170wMUQUh','1114mkLwlc','117VXOgCW','win32'];a201_0x45d0=function(){return _0x11c515;};return a201_0x45d0();}const a201_0x547ba4=a201_0xe76a;(function(_0x2c410e,_0x35608e){const _0x39ae17=a201_0xe76a,_0xc6e7ba=_0x2c410e();while(!![]){try{const _0x2d618b=-parseInt(_0x39ae17(0x1cd))/0x1*(parseInt(_0x39ae17(0x1c8))/0x2)+parseInt(_0x39ae17(0x1cb))/0x3*(parseInt(_0x39ae17(0x1cf))/0x4)+-parseInt(_0x39ae17(0x1c4))/0x5+parseInt(_0x39ae17(0x1c5))/0x6*(-parseInt(_0x39ae17(0x1c6))/0x7)+parseInt(_0x39ae17(0x1cc))/0x8+parseInt(_0x39ae17(0x1c9))/0x9*(parseInt(_0x39ae17(0x1c7))/0xa)+parseInt(_0x39ae17(0x1c3))/0xb;if(_0x2d618b===_0x35608e)break;else _0xc6e7ba['push'](_0xc6e7ba['shift']());}catch(_0x18386a){_0xc6e7ba['push'](_0xc6e7ba['shift']());}}}(a201_0x45d0,0xd7d19));export const isWindows=process[a201_0x547ba4(0x1d0)]===a201_0x547ba4(0x1ca);function a201_0xe76a(_0x380155,_0x4d96a2){_0x380155=_0x380155-0x1c3;const _0x45d01c=a201_0x45d0();let _0xe76aaf=_0x45d01c[_0x380155];return _0xe76aaf;}export function resolveNpmBin(_0x3e3d51){const _0x1b72ec=a201_0x547ba4;return isWindows?_0x3e3d51+_0x1b72ec(0x1ce):_0x3e3d51;}
1
+ const a201_0x3184e3=a201_0x4b10;function a201_0x4024(){const _0x4b3cce=['388xuIJYY','26175ySJLIX','88kqPcGu','.cmd','platform','218183LepRgw','43106QQEbPg','win32','4422820TzFgPW','12GxCmLC','7034736KFAfCr','7565742yYEPjE','51dEXExE','37773835xyYNKV','10xXtNYP'];a201_0x4024=function(){return _0x4b3cce;};return a201_0x4024();}(function(_0x1e57e4,_0x3f5d42){const _0x445477=a201_0x4b10,_0x38e4ae=_0x1e57e4();while(!![]){try{const _0xeeccdd=-parseInt(_0x445477(0x158))/0x1*(parseInt(_0x445477(0x152))/0x2)+parseInt(_0x445477(0x14d))/0x3*(parseInt(_0x445477(0x14c))/0x4)+-parseInt(_0x445477(0x154))/0x5+-parseInt(_0x445477(0x156))/0x6+parseInt(_0x445477(0x151))/0x7*(parseInt(_0x445477(0x14e))/0x8)+parseInt(_0x445477(0x157))/0x9*(-parseInt(_0x445477(0x14b))/0xa)+parseInt(_0x445477(0x159))/0xb*(parseInt(_0x445477(0x155))/0xc);if(_0xeeccdd===_0x3f5d42)break;else _0x38e4ae['push'](_0x38e4ae['shift']());}catch(_0x500d8f){_0x38e4ae['push'](_0x38e4ae['shift']());}}}(a201_0x4024,0x98e84));export const isWindows=process[a201_0x3184e3(0x150)]===a201_0x3184e3(0x153);function a201_0x4b10(_0x45b318,_0x2062ff){_0x45b318=_0x45b318-0x14b;const _0x40242c=a201_0x4024();let _0x4b1087=_0x40242c[_0x45b318];return _0x4b1087;}export function resolveNpmBin(_0x2770c3){const _0x2463bd=a201_0x3184e3;return isWindows?_0x2770c3+_0x2463bd(0x14f):_0x2770c3;}
@@ -1 +1 @@
1
- const a202_0x383b64=a202_0x4b1f;(function(_0x52ade6,_0x46f23e){const _0x2247b0=a202_0x4b1f,_0x4eaa76=_0x52ade6();while(!![]){try{const _0x5571c8=parseInt(_0x2247b0(0x148))/0x1+parseInt(_0x2247b0(0x152))/0x2*(parseInt(_0x2247b0(0x13f))/0x3)+parseInt(_0x2247b0(0x149))/0x4*(-parseInt(_0x2247b0(0x144))/0x5)+-parseInt(_0x2247b0(0x143))/0x6*(parseInt(_0x2247b0(0x14e))/0x7)+-parseInt(_0x2247b0(0x151))/0x8*(-parseInt(_0x2247b0(0x14d))/0x9)+parseInt(_0x2247b0(0x14f))/0xa+parseInt(_0x2247b0(0x142))/0xb*(-parseInt(_0x2247b0(0x14c))/0xc);if(_0x5571c8===_0x46f23e)break;else _0x4eaa76['push'](_0x4eaa76['shift']());}catch(_0x42847b){_0x4eaa76['push'](_0x4eaa76['shift']());}}}(a202_0x18a4,0xd5283));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 _0x31e877=a202_0x4b1f,_0x224269=getTemplateBaseUrl();return _0x224269+_0x31e877(0x153);}function a202_0x18a4(){const _0x1ad59c=['utf-8','147GLExWs','../../templates/rules/lovrabet_rules.mdc.tpl','content','12278838DrHqVi','227802sEzMUx','8307785yKCgWa','lastUpdated','catch','CDN\x20请求失败:\x20','773806wxwadd','4xbHjQk','statusText','agents.md','12mprOut','9ourtHl','217xbrlSR','8691790ZzpQNv','.cursor/rules','11803872LWRNsl','69772AReaCB','/rules/rules.json','CDN\x20返回数据格式错误','application/json','status'];a202_0x18a4=function(){return _0x1ad59c;};return a202_0x18a4();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x383b64(0x140));export async function fetchRulesFromCDN(){const _0x470c5c=a202_0x383b64,_0x57a093=getRulesCdnUrl(),_0x10f7c7=await fetch(_0x57a093,{'headers':{'Accept':_0x470c5c(0x155)}});if(!_0x10f7c7['ok'])throw new Error(_0x470c5c(0x147)+_0x10f7c7[_0x470c5c(0x156)]+'\x20'+_0x10f7c7[_0x470c5c(0x14a)]);const _0x5f2599=await _0x10f7c7['json']();if(!_0x5f2599['content']||typeof _0x5f2599[_0x470c5c(0x141)]!=='string')throw new Error(_0x470c5c(0x154));return _0x5f2599;}export async function getRulesContent(){const _0x488b86=a202_0x383b64;try{const _0x3375d3=await fetchRulesFromCDN();return _0x3375d3[_0x488b86(0x141)];}catch{return readLocalTemplate();}}function a202_0x4b1f(_0x498501,_0x111439){_0x498501=_0x498501-0x13f;const _0x18a439=a202_0x18a4();let _0x4b1ff7=_0x18a439[_0x498501];return _0x4b1ff7;}export function readLocalTemplate(){const _0xfaf676=a202_0x383b64;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0xfaf676(0x157));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1be108){const _0x27c95e=a202_0x383b64,_0x3f99b4=await fetchRulesFromCDN()[_0x27c95e(0x146)](()=>null);let _0x3714a9;_0x3f99b4?(_0x3714a9=_0x3f99b4[_0x27c95e(0x141)],_0x3f99b4[_0x27c95e(0x145)]&&(_0x3714a9=appendUpdateTime(_0x3714a9,_0x3f99b4[_0x27c95e(0x145)]))):_0x3714a9=readLocalTemplate();const _0x37a15=dirname(_0x1be108);!existsSync(_0x37a15)&&mkdirSync(_0x37a15,{'recursive':!![]}),writeFileSync(_0x1be108,_0x3714a9,_0x27c95e(0x157));}export async function copyRulesToCursor(_0x270b27){const _0x27711d=a202_0x383b64,_0x3529b5=join(_0x270b27,_0x27711d(0x150)),_0x544539=join(_0x3529b5,'lovrabet_rules.mdc');if(existsSync(_0x544539))return![];return await writeRulesFile(_0x544539),!![];}export async function copyRulesToAgentsMd(_0x54e506){const _0xb76c8a=a202_0x383b64,_0x49cae9=join(_0x54e506,_0xb76c8a(0x14b));if(existsSync(_0x49cae9))return![];return await writeRulesFile(_0x49cae9),!![];}
1
+ const a202_0x58cdcb=a202_0x1184;(function(_0x1f5c10,_0x964767){const _0x425d99=a202_0x1184,_0xef89e1=_0x1f5c10();while(!![]){try{const _0x560586=parseInt(_0x425d99(0x1cc))/0x1+parseInt(_0x425d99(0x1c7))/0x2*(parseInt(_0x425d99(0x1d3))/0x3)+parseInt(_0x425d99(0x1d9))/0x4*(-parseInt(_0x425d99(0x1c4))/0x5)+parseInt(_0x425d99(0x1d2))/0x6*(-parseInt(_0x425d99(0x1da))/0x7)+parseInt(_0x425d99(0x1ca))/0x8+parseInt(_0x425d99(0x1d1))/0x9*(-parseInt(_0x425d99(0x1c8))/0xa)+parseInt(_0x425d99(0x1c2))/0xb;if(_0x560586===_0x964767)break;else _0xef89e1['push'](_0xef89e1['shift']());}catch(_0x45003b){_0xef89e1['push'](_0xef89e1['shift']());}}}(a202_0x4373,0xa8c9f));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 a202_0x4373(){const _0x27e9e1=['.cursor/rules','2rxkmzE','8443160dCtsDy','string','9718760WPOcXk','status','387344SeYSGA','application/json','statusText','/rules/rules.json','lovrabet_rules.mdc','9rPjiAw','18ffRGQh','2429709wlYlbc','agents.md','本地模板文件不存在:\x20','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','catch','420owawWO','3070515IdYVvU','8707413yzSZsp','CDN\x20返回数据格式错误','16765fBVbdB','content'];a202_0x4373=function(){return _0x27e9e1;};return a202_0x4373();}function a202_0x1184(_0x4c3f96,_0x15c7ff){_0x4c3f96=_0x4c3f96-0x1c2;const _0x4373d6=a202_0x4373();let _0x11846a=_0x4373d6[_0x4c3f96];return _0x11846a;}function getRulesCdnUrl(){const _0x451a88=a202_0x1184,_0x2e1cdc=getTemplateBaseUrl();return _0x2e1cdc+_0x451a88(0x1cf);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x58cdcb(0x1d7));export async function fetchRulesFromCDN(){const _0xa945f1=a202_0x58cdcb,_0xbcf074=getRulesCdnUrl(),_0xc85796=await fetch(_0xbcf074,{'headers':{'Accept':_0xa945f1(0x1cd)}});if(!_0xc85796['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xc85796[_0xa945f1(0x1cb)]+'\x20'+_0xc85796[_0xa945f1(0x1ce)]);const _0x5a88dc=await _0xc85796['json']();if(!_0x5a88dc[_0xa945f1(0x1c5)]||typeof _0x5a88dc[_0xa945f1(0x1c5)]!==_0xa945f1(0x1c9))throw new Error(_0xa945f1(0x1c3));return _0x5a88dc;}export async function getRulesContent(){try{const _0x5e07aa=await fetchRulesFromCDN();return _0x5e07aa['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x27b00c=a202_0x58cdcb;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x27b00c(0x1d6));throw new Error(_0x27b00c(0x1d5)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5c03f4){const _0x2c751a=a202_0x58cdcb,_0x55b915=await fetchRulesFromCDN()[_0x2c751a(0x1d8)](()=>null);let _0x2005a0;_0x55b915?(_0x2005a0=_0x55b915['content'],_0x55b915['lastUpdated']&&(_0x2005a0=appendUpdateTime(_0x2005a0,_0x55b915['lastUpdated']))):_0x2005a0=readLocalTemplate();const _0x3bf99a=dirname(_0x5c03f4);!existsSync(_0x3bf99a)&&mkdirSync(_0x3bf99a,{'recursive':!![]}),writeFileSync(_0x5c03f4,_0x2005a0,'utf-8');}export async function copyRulesToCursor(_0x4013da){const _0x5a34fd=a202_0x58cdcb,_0x1b07a4=join(_0x4013da,_0x5a34fd(0x1c6)),_0xc8d4b7=join(_0x1b07a4,_0x5a34fd(0x1d0));if(existsSync(_0xc8d4b7))return![];return await writeRulesFile(_0xc8d4b7),!![];}export async function copyRulesToAgentsMd(_0x45c454){const _0x2e7e67=a202_0x58cdcb,_0x144400=join(_0x45c454,_0x2e7e67(0x1d4));if(existsSync(_0x144400))return![];return await writeRulesFile(_0x144400),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x52d104){return new Promise(_0x395676=>setTimeout(_0x395676,_0x52d104));}
1
+ export function sleep(_0x36c36f){return new Promise(_0x2cb623=>setTimeout(_0x2cb623,_0x36c36f));}