@lovrabet/rabetbase-cli 2.4.6-beta.2 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) 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/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.js +1 -1
  130. package/lib/commands/menu/shared/service.js +1 -1
  131. package/lib/commands/menu/shared/sync-core.js +1 -1
  132. package/lib/commands/menu/shared/update-core.js +1 -1
  133. package/lib/commands/menu/shared/valid-url.js +1 -1
  134. package/lib/commands/menu/sync.js +1 -1
  135. package/lib/commands/menu/visibility-update.js +1 -1
  136. package/lib/commands/notification/config-create.js +1 -1
  137. package/lib/commands/notification/config-delete.js +1 -1
  138. package/lib/commands/notification/config-list.js +1 -1
  139. package/lib/commands/notification/config-update.js +1 -1
  140. package/lib/commands/notification/index.js +1 -1
  141. package/lib/commands/notification/shared.js +1 -1
  142. package/lib/commands/ocr/index.js +1 -1
  143. package/lib/commands/page/create.js +1 -1
  144. package/lib/commands/page/custom/detail.js +1 -1
  145. package/lib/commands/page/custom/list.js +1 -1
  146. package/lib/commands/page/custom/publish.js +1 -1
  147. package/lib/commands/page/custom/shared.js +1 -1
  148. package/lib/commands/page/custom/syntax.js +1 -1
  149. package/lib/commands/page/custom/template.js +1 -1
  150. package/lib/commands/page/custom/update.js +1 -1
  151. package/lib/commands/page/data-list-status.js +1 -1
  152. package/lib/commands/page/generate-start.js +1 -1
  153. package/lib/commands/page/generate-status.js +1 -1
  154. package/lib/commands/page/index.js +1 -1
  155. package/lib/commands/page/pull.js +1 -1
  156. package/lib/commands/page/push.js +1 -1
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.js +1 -1
  160. package/lib/commands/page/sync.js +1 -1
  161. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  162. package/lib/commands/project/create/format-elapsed.js +1 -1
  163. package/lib/commands/project/create/main.js +1 -1
  164. package/lib/commands/project/create/materialize-project-template.js +1 -1
  165. package/lib/commands/project/create/project-name.js +1 -1
  166. package/lib/commands/project/create/project-template-archive.js +1 -1
  167. package/lib/commands/project/create/project-template-path.js +1 -1
  168. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  169. package/lib/commands/project/create/use-format-code.js +1 -1
  170. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  171. package/lib/commands/project/index.js +1 -1
  172. package/lib/commands/project/upgrade.js +1 -1
  173. package/lib/commands/registry.js +1 -1
  174. package/lib/commands/role/delete.js +1 -1
  175. package/lib/commands/role/detail.js +1 -1
  176. package/lib/commands/role/index.js +1 -1
  177. package/lib/commands/role/list.js +1 -1
  178. package/lib/commands/role/shared.js +1 -1
  179. package/lib/commands/role/update.js +1 -1
  180. package/lib/commands/role/user-add.js +1 -1
  181. package/lib/commands/role/user-remove.js +1 -1
  182. package/lib/commands/role/user-resolve.js +1 -1
  183. package/lib/commands/run/index.js +1 -1
  184. package/lib/commands/schema.js +1 -1
  185. package/lib/commands/sql/create.js +1 -1
  186. package/lib/commands/sql/delete.js +1 -1
  187. package/lib/commands/sql/detail.js +1 -1
  188. package/lib/commands/sql/exec.js +1 -1
  189. package/lib/commands/sql/index.js +1 -1
  190. package/lib/commands/sql/list.js +1 -1
  191. package/lib/commands/sql/pull.js +1 -1
  192. package/lib/commands/sql/push.js +1 -1
  193. package/lib/commands/sql/shared.js +1 -1
  194. package/lib/commands/sql/status.js +1 -1
  195. package/lib/commands/sql/validate.js +1 -1
  196. package/lib/commands/task/index.js +1 -1
  197. package/lib/commands/task/status.js +1 -1
  198. package/lib/commands/tenant/index.js +1 -1
  199. package/lib/commands/tenant/members-list.js +1 -1
  200. package/lib/commands/tenant/shared.js +1 -1
  201. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  202. package/lib/commands/user-account/index.js +1 -1
  203. package/lib/commands/workspace/add.js +1 -1
  204. package/lib/commands/workspace/index.js +1 -1
  205. package/lib/commands/workspace/remove.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/risk.js +1 -1
  215. package/lib/context/app-resolver.js +1 -1
  216. package/lib/context/auth-resolver.js +1 -1
  217. package/lib/context/config-loader.js +1 -1
  218. package/lib/context.js +1 -1
  219. package/lib/core/alias-resolver.js +1 -1
  220. package/lib/core/api-client.js +1 -1
  221. package/lib/core/bff/config.js +1 -1
  222. package/lib/core/bff/file-system.js +1 -1
  223. package/lib/core/bff/hash.js +1 -1
  224. package/lib/core/bff/lock.js +1 -1
  225. package/lib/core/bff/utils.js +1 -1
  226. package/lib/core/db-resolver.js +1 -1
  227. package/lib/core/page/file-system.js +1 -1
  228. package/lib/core/page/hash.js +1 -1
  229. package/lib/core/page/lock.js +1 -1
  230. package/lib/core/sql-index-auditor.js +1 -1
  231. package/lib/core/sql-sync/config.js +1 -1
  232. package/lib/core/sql-sync/file-system.js +1 -1
  233. package/lib/core/sql-sync/hash.js +1 -1
  234. package/lib/core/sql-sync/lock.js +1 -1
  235. package/lib/core/sql-sync/utils.js +1 -1
  236. package/lib/core/sql-validator.js +1 -1
  237. package/lib/errors.js +1 -1
  238. package/lib/framework/build-all-flags.js +1 -1
  239. package/lib/framework/error-output.js +1 -1
  240. package/lib/framework/explicit-yes.js +1 -1
  241. package/lib/framework/flags.js +1 -1
  242. package/lib/framework/help.js +1 -1
  243. package/lib/framework/index.js +1 -1
  244. package/lib/framework/output.js +1 -1
  245. package/lib/framework/response.js +1 -1
  246. package/lib/framework/runner-alias.js +1 -1
  247. package/lib/framework/runner.js +1 -1
  248. package/lib/framework/schema-export.js +1 -1
  249. package/lib/framework/types.js +1 -1
  250. package/lib/generated/build-info.d.ts +4 -4
  251. package/lib/generated/build-info.js +1 -1
  252. package/lib/help.js +1 -1
  253. package/lib/postinstall.js +1 -1
  254. package/lib/runtime/confirmation.js +1 -1
  255. package/lib/runtime/event.js +1 -1
  256. package/lib/runtime/index.js +1 -1
  257. package/lib/runtime/queue.js +1 -1
  258. package/lib/runtime/resolve.js +1 -1
  259. package/lib/skills/builtin-skill.js +1 -1
  260. package/lib/skills/main.js +1 -1
  261. package/lib/skills/npx-skills-add.js +1 -1
  262. package/lib/skills/skill-presence.js +1 -1
  263. package/lib/telemetry/cli-command-trace.js +1 -1
  264. package/lib/telemetry/cli-help-trace.js +1 -1
  265. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  266. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  267. package/lib/telemetry/send-cli-trace-log.js +1 -1
  268. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  269. package/lib/utils/ai_config.js +1 -1
  270. package/lib/utils/apply-jq-filter.js +1 -1
  271. package/lib/utils/cdn-config.js +1 -1
  272. package/lib/utils/check-sdk-version.js +1 -1
  273. package/lib/utils/cli-version-check.js +1 -1
  274. package/lib/utils/cli-version-policy.js +1 -1
  275. package/lib/utils/config.js +1 -1
  276. package/lib/utils/entity-with-id.js +1 -1
  277. package/lib/utils/file-utils.js +1 -1
  278. package/lib/utils/guides-cdn.js +1 -1
  279. package/lib/utils/http-client.js +1 -1
  280. package/lib/utils/is-non-interactive.js +1 -1
  281. package/lib/utils/logger.js +1 -1
  282. package/lib/utils/params.js +1 -1
  283. package/lib/utils/platform.js +1 -1
  284. package/lib/utils/rules-cdn.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +3 -3
  293. package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a271_0x50202b=a271_0x4d2a;(function(_0x36ce3f,_0x149bfd){const _0x2eebed=a271_0x4d2a,_0x5c3652=_0x36ce3f();while(!![]){try{const _0x46fcbe=-parseInt(_0x2eebed(0xb0))/0x1*(-parseInt(_0x2eebed(0xaa))/0x2)+-parseInt(_0x2eebed(0xb8))/0x3+-parseInt(_0x2eebed(0xad))/0x4+parseInt(_0x2eebed(0xaf))/0x5+parseInt(_0x2eebed(0xb9))/0x6+parseInt(_0x2eebed(0xab))/0x7+parseInt(_0x2eebed(0xb1))/0x8;if(_0x46fcbe===_0x149bfd)break;else _0x5c3652['push'](_0x5c3652['shift']());}catch(_0x3e779e){_0x5c3652['push'](_0x5c3652['shift']());}}}(a271_0x1b79,0xda7be));function a271_0x1b79(){const _0x1705f0=['issue.log.collect','1324815geCJgm','3758580XYXpFI','originalBytes','2VHcBll','1482229OJiwaJ','title','4831196MDpNps','platform-issue-log-collect','2555845PCeSev','122365tJyHGn','8580824fbWxJY','join','redactionKinds','sanitize','description','redactionCount'];a271_0x1b79=function(){return _0x1705f0;};return a271_0x1b79();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a271_0x50202b(0xae);export const PLATFORM_ISSUE_SPAN_NAME=a271_0x50202b(0xb7);function a271_0x4d2a(_0x925901,_0x321c28){_0x925901=_0x925901-0xaa;const _0x1b79b7=a271_0x1b79();let _0x4d2a3b=_0x1b79b7[_0x925901];return _0x4d2a3b;}export async function sendPlatformIssueCollectLog(_0x6a0758){const _0x5d031a=a271_0x50202b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x6a0758[_0x5d031a(0xac)],'issue.description':_0x6a0758[_0x5d031a(0xb5)],..._0x6a0758['sanitize']?{'issue.description_original_bytes':_0x6a0758[_0x5d031a(0xb4)][_0x5d031a(0xba)],'issue.description_truncated':_0x6a0758[_0x5d031a(0xb4)]['truncated'],'issue.description_redactions':_0x6a0758[_0x5d031a(0xb4)][_0x5d031a(0xb6)],'issue.description_redaction_kinds':_0x6a0758['sanitize'][_0x5d031a(0xb3)][_0x5d031a(0xb2)](',')}:{}}});}
1
+ function a271_0x8cfe(_0x137883,_0x224f68){_0x137883=_0x137883-0x12c;const _0x294742=a271_0x2947();let _0x8cfe0e=_0x294742[_0x137883];return _0x8cfe0e;}const a271_0x225f81=a271_0x8cfe;(function(_0x26f103,_0x5d6807){const _0x332b4e=a271_0x8cfe,_0x46f97a=_0x26f103();while(!![]){try{const _0x54ffcf=parseInt(_0x332b4e(0x13f))/0x1*(-parseInt(_0x332b4e(0x134))/0x2)+parseInt(_0x332b4e(0x136))/0x3+-parseInt(_0x332b4e(0x12f))/0x4+-parseInt(_0x332b4e(0x133))/0x5*(-parseInt(_0x332b4e(0x137))/0x6)+-parseInt(_0x332b4e(0x12d))/0x7*(parseInt(_0x332b4e(0x13e))/0x8)+-parseInt(_0x332b4e(0x13d))/0x9*(parseInt(_0x332b4e(0x13c))/0xa)+parseInt(_0x332b4e(0x135))/0xb;if(_0x54ffcf===_0x5d6807)break;else _0x46f97a['push'](_0x46f97a['shift']());}catch(_0x2fa379){_0x46f97a['push'](_0x46f97a['shift']());}}}(a271_0x2947,0x304f1));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a271_0x225f81(0x12c);function a271_0x2947(){const _0x37d7dc=['sanitize','redactionKinds','10190OlEUtP','1638atnQKu','1440TQLbMM','42fufoBd','issue.log.collect','6216OMJgBE','originalBytes','195708ZUULEj','title','truncated','redactionCount','159655GeaEfR','11902iBbmzo','2690424JQHxYC','1121817SOkMFy','42gUHtzF','join','description'];a271_0x2947=function(){return _0x37d7dc;};return a271_0x2947();}export async function sendPlatformIssueCollectLog(_0x169907){const _0x3b569d=a271_0x225f81;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x169907[_0x3b569d(0x130)],'issue.description':_0x169907[_0x3b569d(0x139)],..._0x169907[_0x3b569d(0x13a)]?{'issue.description_original_bytes':_0x169907['sanitize'][_0x3b569d(0x12e)],'issue.description_truncated':_0x169907[_0x3b569d(0x13a)][_0x3b569d(0x131)],'issue.description_redactions':_0x169907[_0x3b569d(0x13a)][_0x3b569d(0x132)],'issue.description_redaction_kinds':_0x169907[_0x3b569d(0x13a)][_0x3b569d(0x13b)][_0x3b569d(0x138)](',')}:{}}});}
@@ -1 +1 @@
1
- const a273_0x9658db=a273_0x1d6e;(function(_0x3bded7,_0x374e15){const _0x52447f=a273_0x1d6e,_0x1af2e9=_0x3bded7();while(!![]){try{const _0x43b151=-parseInt(_0x52447f(0x1c9))/0x1*(-parseInt(_0x52447f(0x1e4))/0x2)+parseInt(_0x52447f(0x1c4))/0x3+-parseInt(_0x52447f(0x1d6))/0x4+-parseInt(_0x52447f(0x1d2))/0x5+-parseInt(_0x52447f(0x1bf))/0x6*(parseInt(_0x52447f(0x1c5))/0x7)+parseInt(_0x52447f(0x1b5))/0x8+parseInt(_0x52447f(0x1c1))/0x9;if(_0x43b151===_0x374e15)break;else _0x1af2e9['push'](_0x1af2e9['shift']());}catch(_0x4d3efa){_0x1af2e9['push'](_0x1af2e9['shift']());}}}(a273_0x2502,0x82ae7));function a273_0x2502(){const _0x3c6910=['.cursor','codex','Antigravity','通用模板\x20-\x20兜底方案','CodeBuddy','antigravity','.agent','5226615OHIDGV','Claude\x20Code','.cline','.qoder/rules/rabetbase.md','2571328GzohpV','.claude/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.windsurf','SKILL.md.tpl','Cursor','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.opencode','claude','cline','.qoder','.agent/skills/lovrabet/SKILL.md','windsurf','545368deaqMe','.claude','Qoder\x20IDE','.codebuddy','trae','Windsurf','cursor','7840352jqjusP','.trae/skills/lovrabet/SKILL.md','Cline','.cursor/skills/rabetbase.md','Windsurf\x20IDE','Codex\x20IDE','file','opencode','Qoder','.qoder/skills/lovrabet/SKILL.md','126iimDQT','.codex','5050917MrNhCP','Cursor\x20IDE','.trae','988368BIYySd','155113cjfvWg','Trae\x20IDE','OpenCode','codebuddy','3sIcCoD','qoder'];a273_0x2502=function(){return _0x3c6910;};return a273_0x2502();}export const CORE_IDE_CONFIGS={'cursor':{'name':a273_0x9658db(0x1db),'description':a273_0x9658db(0x1c2),'folders':['.cursorrules',a273_0x9658db(0x1cb)],'files':[{'type':'file','path':a273_0x9658db(0x1b8),'template':a273_0x9658db(0x1da)}]},'windsurf':{'name':a273_0x9658db(0x1b3),'description':a273_0x9658db(0x1b9),'folders':[a273_0x9658db(0x1d9)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md','template':a273_0x9658db(0x1da)}]},'claude':{'name':a273_0x9658db(0x1d3),'description':'Claude\x20Code','folders':[a273_0x9658db(0x1e5)],'files':[{'type':a273_0x9658db(0x1bb),'path':a273_0x9658db(0x1d7),'template':a273_0x9658db(0x1da)}]},'cline':{'name':a273_0x9658db(0x1b7),'description':'Cline\x20IDE','folders':[a273_0x9658db(0x1d4)],'files':[{'type':a273_0x9658db(0x1bb),'path':a273_0x9658db(0x1dc),'template':a273_0x9658db(0x1da)}]},'codex':{'name':'Codex','description':a273_0x9658db(0x1ba),'folders':[a273_0x9658db(0x1c0)],'files':[{'type':a273_0x9658db(0x1bb),'path':'.codex/skills/lovrabet/SKILL.md','template':a273_0x9658db(0x1da)}]},'opencode':{'name':a273_0x9658db(0x1c7),'description':'OpenCode\x20IDE','folders':[a273_0x9658db(0x1de)],'files':[{'type':a273_0x9658db(0x1bb),'path':'.opencode/skills/lovrabet/SKILL.md','template':a273_0x9658db(0x1da)}]},'qoder':{'name':a273_0x9658db(0x1bd),'description':a273_0x9658db(0x1e6),'folders':[a273_0x9658db(0x1e1)],'files':[{'type':a273_0x9658db(0x1bb),'path':a273_0x9658db(0x1d5),'template':'SKILL.md.tpl'},{'type':a273_0x9658db(0x1bb),'path':a273_0x9658db(0x1be),'template':a273_0x9658db(0x1da)}]},'codebuddy':{'name':a273_0x9658db(0x1cf),'description':'CodeBuddy\x20IDE','folders':[a273_0x9658db(0x1e7)],'files':[{'type':a273_0x9658db(0x1bb),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a273_0x9658db(0x1da)}]},'trae':{'name':'Trae','description':a273_0x9658db(0x1c6),'folders':[a273_0x9658db(0x1c3)],'files':[{'type':'file','path':a273_0x9658db(0x1b6),'template':a273_0x9658db(0x1da)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a273_0x9658db(0x1d8),'description':a273_0x9658db(0x1ce),'folders':[a273_0x9658db(0x1d1)],'files':[{'type':'file','path':a273_0x9658db(0x1e2),'template':a273_0x9658db(0x1da)}]},'antigravity':{'name':a273_0x9658db(0x1cd),'description':a273_0x9658db(0x1dd),'folders':[a273_0x9658db(0x1d1)],'files':[{'type':a273_0x9658db(0x1bb),'path':a273_0x9658db(0x1e2),'template':a273_0x9658db(0x1da)}]}};function a273_0x1d6e(_0x121e74,_0x142e8d){_0x121e74=_0x121e74-0x1b2;const _0x250207=a273_0x2502();let _0x1d6ebb=_0x250207[_0x121e74];return _0x1d6ebb;}export const CORE_IDE_LIST=['claude',a273_0x9658db(0x1e0),a273_0x9658db(0x1c8),a273_0x9658db(0x1cc),a273_0x9658db(0x1b4),'opencode','qoder',a273_0x9658db(0x1b2),'windsurf'];export const IDE_LIST=[a273_0x9658db(0x1d0),a273_0x9658db(0x1df),a273_0x9658db(0x1e0),'codebuddy','codex',a273_0x9658db(0x1b4),a273_0x9658db(0x1bc),a273_0x9658db(0x1ca),a273_0x9658db(0x1b2),a273_0x9658db(0x1e3),'agent'];export const ALL_CORE_IDES=[a273_0x9658db(0x1b4),a273_0x9658db(0x1e3),a273_0x9658db(0x1df),'cline',a273_0x9658db(0x1cc),a273_0x9658db(0x1bc),'qoder','codebuddy',a273_0x9658db(0x1b2)];
1
+ const a273_0x507be9=a273_0x6fbc;(function(_0x346705,_0x53a612){const _0x572a11=a273_0x6fbc,_0x1e31d9=_0x346705();while(!![]){try{const _0x5866f6=parseInt(_0x572a11(0x126))/0x1*(-parseInt(_0x572a11(0x109))/0x2)+parseInt(_0x572a11(0x111))/0x3*(parseInt(_0x572a11(0x127))/0x4)+-parseInt(_0x572a11(0x112))/0x5*(parseInt(_0x572a11(0x105))/0x6)+parseInt(_0x572a11(0x12e))/0x7+-parseInt(_0x572a11(0x129))/0x8*(parseInt(_0x572a11(0x107))/0x9)+parseInt(_0x572a11(0x120))/0xa*(-parseInt(_0x572a11(0x115))/0xb)+parseInt(_0x572a11(0x11d))/0xc;if(_0x5866f6===_0x53a612)break;else _0x1e31d9['push'](_0x1e31d9['shift']());}catch(_0x3b801d){_0x1e31d9['push'](_0x1e31d9['shift']());}}}(a273_0x1e77,0x72470));export const CORE_IDE_CONFIGS={'cursor':{'name':a273_0x507be9(0x128),'description':a273_0x507be9(0x132),'folders':[a273_0x507be9(0xff),a273_0x507be9(0x10c)],'files':[{'type':a273_0x507be9(0x10d),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a273_0x507be9(0x10a),'description':a273_0x507be9(0x12b),'folders':[a273_0x507be9(0x11c)],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x10b),'template':a273_0x507be9(0x12c)}]},'claude':{'name':a273_0x507be9(0x123),'description':a273_0x507be9(0x123),'folders':['.claude'],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x119),'template':a273_0x507be9(0x12c)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a273_0x507be9(0x12c)}]},'codex':{'name':'Codex','description':a273_0x507be9(0x10e),'folders':[a273_0x507be9(0x114)],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x100),'template':a273_0x507be9(0x12c)}]},'opencode':{'name':a273_0x507be9(0x122),'description':a273_0x507be9(0x125),'folders':['.opencode'],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x10f),'template':a273_0x507be9(0x12c)}]},'qoder':{'name':a273_0x507be9(0x11e),'description':a273_0x507be9(0x101),'folders':['.qoder'],'files':[{'type':'file','path':a273_0x507be9(0x124),'template':a273_0x507be9(0x12c)},{'type':a273_0x507be9(0x10d),'path':'.qoder/skills/lovrabet/SKILL.md','template':a273_0x507be9(0x12c)}]},'codebuddy':{'name':'CodeBuddy','description':a273_0x507be9(0x118),'folders':['.codebuddy'],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x113),'template':a273_0x507be9(0x12c)}]},'trae':{'name':a273_0x507be9(0x104),'description':a273_0x507be9(0x116),'folders':[a273_0x507be9(0x110)],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x103),'template':a273_0x507be9(0x12c)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a273_0x507be9(0x102),'description':a273_0x507be9(0x121),'folders':[a273_0x507be9(0x12a)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a273_0x507be9(0x12c)}]},'antigravity':{'name':'Antigravity','description':a273_0x507be9(0x117),'folders':[a273_0x507be9(0x12a)],'files':[{'type':a273_0x507be9(0x10d),'path':a273_0x507be9(0x133),'template':a273_0x507be9(0x12c)}]}};export const CORE_IDE_LIST=['claude','cline',a273_0x507be9(0x130),a273_0x507be9(0xfe),a273_0x507be9(0x106),a273_0x507be9(0x108),a273_0x507be9(0x12d),'trae',a273_0x507be9(0x11a)];function a273_0x6fbc(_0x242826,_0x3b2d66){_0x242826=_0x242826-0xfe;const _0x1e7748=a273_0x1e77();let _0x6fbc79=_0x1e7748[_0x242826];return _0x6fbc79;}export const IDE_LIST=['antigravity',a273_0x507be9(0x11f),'cline',a273_0x507be9(0x130),'codex',a273_0x507be9(0x106),'opencode','qoder',a273_0x507be9(0x131),a273_0x507be9(0x11a),a273_0x507be9(0x11b)];function a273_0x1e77(){const _0xd27b1=['opencode','317742UYsATM','Windsurf','.windsurf/workflows/rabetbase.md','.cursor','file','Codex\x20IDE','.opencode/skills/lovrabet/SKILL.md','.trae','36381OsxWyS','315gwfAYC','.codebuddy/skills/lovrabet/SKILL.md','.codex','4594568yosiqq','Trae\x20IDE','Antigravity\x20IDE','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','windsurf','agent','.windsurf','21761772TmMyTd','Qoder','claude','20EqHBIa','通用模板\x20-\x20兜底方案','OpenCode','Claude\x20Code','.qoder/rules/rabetbase.md','OpenCode\x20IDE','4JrXtHa','196agbSIl','Cursor','1516776dSCsYO','.agent','Windsurf\x20IDE','SKILL.md.tpl','qoder','4891222ErDuWV','cline','codebuddy','trae','Cursor\x20IDE','.agent/skills/lovrabet/SKILL.md','codex','.cursorrules','.codex/skills/lovrabet/SKILL.md','Qoder\x20IDE','其他\x20(通用模板)','.trae/skills/lovrabet/SKILL.md','Trae','38964ChBAKK','cursor','36hCsaEh'];a273_0x1e77=function(){return _0xd27b1;};return a273_0x1e77();}export const ALL_CORE_IDES=[a273_0x507be9(0x106),a273_0x507be9(0x11a),'claude',a273_0x507be9(0x12f),a273_0x507be9(0xfe),a273_0x507be9(0x108),'qoder','codebuddy',a273_0x507be9(0x131)];
@@ -1 +1 @@
1
- (function(_0x4a2beb,_0x59617e){const _0x3b5883=a274_0x44fa,_0xb43be1=_0x4a2beb();while(!![]){try{const _0x94f582=-parseInt(_0x3b5883(0x9a))/0x1+parseInt(_0x3b5883(0x98))/0x2+-parseInt(_0x3b5883(0x96))/0x3+-parseInt(_0x3b5883(0x9c))/0x4+-parseInt(_0x3b5883(0x9b))/0x5*(-parseInt(_0x3b5883(0x99))/0x6)+parseInt(_0x3b5883(0x9d))/0x7+-parseInt(_0x3b5883(0x9e))/0x8*(-parseInt(_0x3b5883(0x97))/0x9);if(_0x94f582===_0x59617e)break;else _0xb43be1['push'](_0xb43be1['shift']());}catch(_0x4752bc){_0xb43be1['push'](_0xb43be1['shift']());}}}(a274_0x85b9,0x7c2c7));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a274_0x85b9(){const _0x5d3d82=['90lxYIDi','4008876cUKDmw','2197937tXvkTm','3065016tDgRrT','1928154eegqRf','18ypmmdL','852458CRjybn','287322JFBXbo','214888rBhKQO'];a274_0x85b9=function(){return _0x5d3d82;};return a274_0x85b9();}import{CliErrors}from'../errors.js';function a274_0x44fa(_0x465eec,_0xf9ebec){_0x465eec=_0x465eec-0x96;const _0x85b995=a274_0x85b9();let _0x44fa1a=_0x85b995[_0x465eec];return _0x44fa1a;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a274_0x3dec(){const _0x37966f=['80944WGBUJG','5dNsCdG','2zVZiyO','14BXHrKA','495gSpYeT','9289010JkaTJS','11ImCfFP','1978878ljWeta','1734351FVgNPB','795894WXlRyx','3582916iqVnqi','4645524wKjVdW'];a274_0x3dec=function(){return _0x37966f;};return a274_0x3dec();}function a274_0x42c1(_0x4aa7dc,_0x211909){_0x4aa7dc=_0x4aa7dc-0x1a2;const _0x3dec7d=a274_0x3dec();let _0x42c170=_0x3dec7d[_0x4aa7dc];return _0x42c170;}(function(_0x3c69ab,_0xabbff){const _0x1f110b=a274_0x42c1,_0x20d9ed=_0x3c69ab();while(!![]){try{const _0x34881a=-parseInt(_0x1f110b(0x1a4))/0x1+parseInt(_0x1f110b(0x1a9))/0x2*(parseInt(_0x1f110b(0x1a3))/0x3)+parseInt(_0x1f110b(0x1a5))/0x4*(parseInt(_0x1f110b(0x1a8))/0x5)+parseInt(_0x1f110b(0x1a2))/0x6*(parseInt(_0x1f110b(0x1aa))/0x7)+-parseInt(_0x1f110b(0x1a7))/0x8*(-parseInt(_0x1f110b(0x1ab))/0x9)+-parseInt(_0x1f110b(0x1ac))/0xa*(parseInt(_0x1f110b(0x1ad))/0xb)+-parseInt(_0x1f110b(0x1a6))/0xc;if(_0x34881a===_0xabbff)break;else _0x20d9ed['push'](_0x20d9ed['shift']());}catch(_0x45af2a){_0x20d9ed['push'](_0x20d9ed['shift']());}}}(a274_0x3dec,0x8d1f8));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5f2e47,_0x2da49a){const _0x38a7b8=a275_0x586d,_0x4cdaa1=_0x5f2e47();while(!![]){try{const _0x77d50a=-parseInt(_0x38a7b8(0xed))/0x1+-parseInt(_0x38a7b8(0xe3))/0x2*(parseInt(_0x38a7b8(0xeb))/0x3)+-parseInt(_0x38a7b8(0xe1))/0x4*(parseInt(_0x38a7b8(0xe5))/0x5)+-parseInt(_0x38a7b8(0xdf))/0x6*(parseInt(_0x38a7b8(0xf1))/0x7)+-parseInt(_0x38a7b8(0xe7))/0x8+parseInt(_0x38a7b8(0xe8))/0x9*(-parseInt(_0x38a7b8(0xef))/0xa)+parseInt(_0x38a7b8(0xea))/0xb;if(_0x77d50a===_0x2da49a)break;else _0x4cdaa1['push'](_0x4cdaa1['shift']());}catch(_0x3583d0){_0x4cdaa1['push'](_0x4cdaa1['shift']());}}}(a275_0x1b31,0x7d60a));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x249f04=a275_0x586d,_0xea0998=getTemplateBaseUrl(),_0x2f5cef=[_0xea0998+_0x249f04(0xec),_0xea0998+_0x249f04(0xe0)];for(const _0x3370a3 of _0x2f5cef){try{const _0x214f0d=await fetch(_0x3370a3,{'headers':{'Accept':_0x249f04(0xf0)}});if(!_0x214f0d['ok'])continue;const _0x325e13=await _0x214f0d[_0x249f04(0xe9)]();if(!_0x325e13[_0x249f04(0xe2)]?.[_0x249f04(0xe6)]||!_0x325e13[_0x249f04(0xee)]?.[_0x249f04(0xe4)]?.[_0x249f04(0xe6)])continue;return _0x325e13;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a275_0x1b31(){const _0x24df77=['957087jCBaBG','json','44068805ZCtjyF','3dmMARW','/config.json','961253RgfGdL','sdk','70sKJbQP','application/json','18725WKGqNH','186NTfGLb','/config/index.json','32nmGVTZ','cli','1270274bFsSTc','node','64815PODHuM','stableVersion','7722312jNMdfN'];a275_0x1b31=function(){return _0x24df77;};return a275_0x1b31();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x511d73=Date['now']();if(hasCachedConfig){const _0xb4d43b=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x511d73-cacheTime<_0xb4d43b)return cachedConfig;}const _0x37a2d2=await fetchCdnConfig();return cachedConfig=_0x37a2d2,cacheTime=_0x511d73,hasCachedConfig=!![],_0x37a2d2;}function a275_0x586d(_0x354f97,_0x44a4ca){_0x354f97=_0x354f97-0xdf;const _0x1b3198=a275_0x1b31();let _0x586d7c=_0x1b3198[_0x354f97];return _0x586d7c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a275_0x5d0d(){const _0x41e801=['65cjuVyx','13922ZLIuhB','now','403407WZfCKJ','2799034EcbSFl','1620714lDjRSj','/config/index.json','8289SZOsgD','json','node','3577299vBCrkO','75740yDdUGF','stableVersion','10EboDwt','sdk','40NPAcqi','68gxROzi','/config.json','cli'];a275_0x5d0d=function(){return _0x41e801;};return a275_0x5d0d();}(function(_0x24255a,_0x1f01dc){const _0x505b29=a275_0x5f06,_0x561dd5=_0x24255a();while(!![]){try{const _0x11fdb4=parseInt(_0x505b29(0x18b))/0x1*(parseInt(_0x505b29(0x187))/0x2)+-parseInt(_0x505b29(0x18d))/0x3+parseInt(_0x505b29(0x182))/0x4*(parseInt(_0x505b29(0x18a))/0x5)+-parseInt(_0x505b29(0x17c))/0x6+-parseInt(_0x505b29(0x17b))/0x7+parseInt(_0x505b29(0x186))/0x8*(parseInt(_0x505b29(0x17e))/0x9)+parseInt(_0x505b29(0x184))/0xa*(parseInt(_0x505b29(0x181))/0xb);if(_0x11fdb4===_0x1f01dc)break;else _0x561dd5['push'](_0x561dd5['shift']());}catch(_0x533e82){_0x561dd5['push'](_0x561dd5['shift']());}}}(a275_0x5d0d,0x3bc83));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5565e1=a275_0x5f06,_0xf2c59a=getTemplateBaseUrl(),_0x153adb=[_0xf2c59a+_0x5565e1(0x188),_0xf2c59a+_0x5565e1(0x17d)];for(const _0x382c6d of _0x153adb){try{const _0x461ebf=await fetch(_0x382c6d,{'headers':{'Accept':'application/json'}});if(!_0x461ebf['ok'])continue;const _0x15c868=await _0x461ebf[_0x5565e1(0x17f)]();if(!_0x15c868[_0x5565e1(0x189)]?.[_0x5565e1(0x183)]||!_0x15c868[_0x5565e1(0x185)]?.[_0x5565e1(0x180)]?.[_0x5565e1(0x183)])continue;return _0x15c868;}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 _0x5afd19=a275_0x5f06,_0x1005cd=Date[_0x5afd19(0x18c)]();if(hasCachedConfig){const _0x4e3f5f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1005cd-cacheTime<_0x4e3f5f)return cachedConfig;}const _0x2b33f4=await fetchCdnConfig();return cachedConfig=_0x2b33f4,cacheTime=_0x1005cd,hasCachedConfig=!![],_0x2b33f4;}function a275_0x5f06(_0x37b744,_0x41b5be){_0x37b744=_0x37b744-0x17b;const _0x5d0d39=a275_0x5d0d();let _0x5f0621=_0x5d0d39[_0x37b744];return _0x5f0621;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a276_0x2c6127=a276_0x31ee;(function(_0x38f0b6,_0x217492){const _0x762229=a276_0x31ee,_0x2f4dda=_0x38f0b6();while(!![]){try{const _0x9c94ae=-parseInt(_0x762229(0x11d))/0x1+-parseInt(_0x762229(0x120))/0x2+parseInt(_0x762229(0x114))/0x3+parseInt(_0x762229(0x118))/0x4+parseInt(_0x762229(0x12e))/0x5*(parseInt(_0x762229(0x128))/0x6)+-parseInt(_0x762229(0x112))/0x7+parseInt(_0x762229(0x124))/0x8*(-parseInt(_0x762229(0x132))/0x9);if(_0x9c94ae===_0x217492)break;else _0x2f4dda['push'](_0x2f4dda['shift']());}catch(_0x1da351){_0x2f4dda['push'](_0x2f4dda['shift']());}}}(a276_0x34ad,0x8d31b));import a276_0x346b50 from'node:fs';import a276_0x564ceb from'node:path';import a276_0x52354b from'semver';function a276_0x31ee(_0x5213a7,_0x5070e0){_0x5213a7=_0x5213a7-0x110;const _0x34adce=a276_0x34ad();let _0x31eead=_0x34adce[_0x5213a7];return _0x31eead;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a276_0x2c6127(0x123);function isNonNumericVersion(_0x7e5802){const _0x12ed28=a276_0x2c6127,_0x1dac13=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1dac13['some'](_0x37288e=>_0x37288e[_0x12ed28(0x12b)](_0x7e5802));}function getInstalledVersion(_0xedbb7c,_0x50895b){const _0x564351=a276_0x2c6127;try{const _0x313249=a276_0x564ceb[_0x564351(0x11c)](_0xedbb7c,'node_modules',_0x50895b,_0x564351(0x11b));if(a276_0x346b50['existsSync'](_0x313249)){const _0x31d001=JSON['parse'](a276_0x346b50[_0x564351(0x126)](_0x313249,_0x564351(0x12c)));return _0x31d001[_0x564351(0x121)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1b5036=a276_0x2c6127;try{const _0x51e8f4=await getCdnConfig();return _0x51e8f4?.[_0x1b5036(0x111)]?.[_0x1b5036(0x115)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x32deff=a276_0x2c6127;try{const _0x35b592=await getCdnConfig();return _0x35b592?.['sdk']?.['node']?.[_0x32deff(0x125)]||_0x32deff(0x119);}catch{return _0x32deff(0x119);}}export async function checkSdkVersion(_0x42970c){const _0xe8a02e=a276_0x2c6127,_0x5c3491=a276_0x564ceb[_0xe8a02e(0x11c)](_0x42970c,_0xe8a02e(0x11b)),[_0x1db2d3,_0x2f8729]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x39eeba=_0x1db2d3||FALLBACK_MIN_SDK_VERSION;if(!a276_0x346b50[_0xe8a02e(0x12f)](_0x5c3491))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39eeba,'packageName':_0x2f8729,'stableVersion':_0x1db2d3};try{const _0x1b8f44=JSON['parse'](a276_0x346b50[_0xe8a02e(0x126)](_0x5c3491,'utf8')),_0x42777f=_0x1b8f44['dependencies']||{},_0x317683=_0x1b8f44[_0xe8a02e(0x11e)]||{},_0x349b97=_0x42777f[_0x2f8729]||_0x317683[_0x2f8729];if(!_0x349b97)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39eeba,'packageName':_0x2f8729,'stableVersion':_0x1db2d3};let _0x42dbf9=getInstalledVersion(_0x42970c,_0x2f8729);!_0x42dbf9&&(_0x42dbf9=_0x349b97);if(isNonNumericVersion(_0x349b97))return{'installed':!![],'version':_0x42dbf9,'needsUpgrade':![],'minVersion':_0x39eeba,'packageName':_0x2f8729,'stableVersion':_0x1db2d3};const _0x22a06b=a276_0x52354b[_0xe8a02e(0x127)](_0x42dbf9),_0x434998=a276_0x52354b[_0xe8a02e(0x127)](_0x39eeba),_0x1a08e1=_0x22a06b&&_0x434998?a276_0x52354b['lt'](_0x22a06b,_0x434998):![];return{'installed':!![],'version':_0x42dbf9,'needsUpgrade':_0x1a08e1,'minVersion':_0x39eeba,'packageName':_0x2f8729,'stableVersion':_0x1db2d3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x39eeba,'packageName':_0x2f8729,'stableVersion':_0x1db2d3};}}function a276_0x34ad(){const _0x43c274=['utf-8','minVersion','29240FWznvp','existsSync','log','parse','9hgousq','↪\x20SDK\x20update\x20available','sdk','4426324vCqyni','needsUpgrade','2490663jdVsVX','node','stableVersion','\x20\x20\x20Current\x20version:\x20','4222732OxAbpi','@lovrabet/sdk','\x1b[33m','package.json','join','306135KYELmB','devDependencies','\x20\x20\x20Upgrade\x20command:\x20','973846mhmBHB','version','\x1b[1m','1.2.0','7431800OtpMLk','packageName','readFileSync','coerce','1074oAeVZj','\x1b[0m','npm\x20install\x20','test'];a276_0x34ad=function(){return _0x43c274;};return a276_0x34ad();}export function checkSdkVersionSync(_0x3e3aea){const _0x23ccf4=a276_0x2c6127,_0x3416db=a276_0x564ceb[_0x23ccf4(0x11c)](_0x3e3aea,'package.json'),_0x298a17=_0x23ccf4(0x119);if(!a276_0x346b50[_0x23ccf4(0x12f)](_0x3416db))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x298a17,'stableVersion':null};try{const _0x8311d=JSON[_0x23ccf4(0x131)](a276_0x346b50[_0x23ccf4(0x126)](_0x3416db,'utf8')),_0x5ed0c8=_0x8311d['dependencies']||{},_0x31a91b=_0x8311d[_0x23ccf4(0x11e)]||{},_0x5de63c=_0x5ed0c8[_0x298a17]||_0x31a91b[_0x298a17];if(!_0x5de63c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x298a17,'stableVersion':null};let _0x4760c9=getInstalledVersion(_0x3e3aea,_0x298a17);!_0x4760c9&&(_0x4760c9=_0x5de63c);if(isNonNumericVersion(_0x5de63c))return{'installed':!![],'version':_0x4760c9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x298a17,'stableVersion':null};const _0x100371=a276_0x52354b[_0x23ccf4(0x127)](_0x4760c9),_0x4d4c75=_0x100371?a276_0x52354b['lt'](_0x100371,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4760c9,'needsUpgrade':_0x4d4c75,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x298a17,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x298a17,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3246c6){const _0x1c5db5=a276_0x2c6127;if(!_0x3246c6[_0x1c5db5(0x113)])return;const _0x2ef2e0=_0x1c5db5(0x11a),_0x4a9890=_0x1c5db5(0x129),_0x22e619=_0x1c5db5(0x122),_0x50e443=_0x3246c6['packageName']||_0x1c5db5(0x119),_0x494592=_0x3246c6[_0x1c5db5(0x116)]||_0x3246c6[_0x1c5db5(0x12d)],_0x5634f4=_0x1c5db5(0x12a)+_0x50e443+'@'+(_0x494592||'latest');console['log'](),console['log'](''+_0x2ef2e0+_0x22e619+_0x1c5db5(0x110)+_0x4a9890),console[_0x1c5db5(0x130)](_0x2ef2e0+_0x1c5db5(0x117)+_0x50e443+'@'+_0x3246c6[_0x1c5db5(0x121)]+_0x4a9890),console['log'](_0x2ef2e0+'\x20\x20\x20Stable\x20version:\x20'+_0x494592+_0x4a9890),console['log'](_0x2ef2e0+_0x1c5db5(0x11f)+_0x5634f4+_0x4a9890),console[_0x1c5db5(0x130)]();}
1
+ (function(_0x125c66,_0x1efe39){const _0x1f0720=a276_0x412d,_0x501cfd=_0x125c66();while(!![]){try{const _0x13f73d=-parseInt(_0x1f0720(0xc3))/0x1*(parseInt(_0x1f0720(0xbe))/0x2)+-parseInt(_0x1f0720(0xb8))/0x3+-parseInt(_0x1f0720(0xa3))/0x4+-parseInt(_0x1f0720(0xbc))/0x5*(-parseInt(_0x1f0720(0xb5))/0x6)+-parseInt(_0x1f0720(0xc1))/0x7*(-parseInt(_0x1f0720(0xb7))/0x8)+parseInt(_0x1f0720(0xa1))/0x9*(parseInt(_0x1f0720(0xb3))/0xa)+-parseInt(_0x1f0720(0xb2))/0xb*(-parseInt(_0x1f0720(0xa5))/0xc);if(_0x13f73d===_0x1efe39)break;else _0x501cfd['push'](_0x501cfd['shift']());}catch(_0x1270ca){_0x501cfd['push'](_0x501cfd['shift']());}}}(a276_0x3cca,0xce125));import a276_0x3dbe2d from'node:fs';import a276_0x1a31b5 from'node:path';import a276_0x5de564 from'semver';function a276_0x412d(_0x25e6e6,_0x4fe87f){_0x25e6e6=_0x25e6e6-0x9f;const _0x3cca8a=a276_0x3cca();let _0x412dd9=_0x3cca8a[_0x25e6e6];return _0x412dd9;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x32eb53){const _0x4b0cb4=a276_0x412d,_0x370730=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x370730[_0x4b0cb4(0xac)](_0x577175=>_0x577175[_0x4b0cb4(0xbd)](_0x32eb53));}function a276_0x3cca(){const _0x2f5f41=['test','500ZirJeN','node','utf-8','46753zOlLKS','all','2830KtxFIG','log','packageName','parse','minVersion','package.json','5752836fiWvkZ','join','6635740UtsEMS','version','1719888jMngnQ','node_modules','npm\x20install\x20','stableVersion','coerce','dependencies','needsUpgrade','some','\x20\x20\x20Current\x20version:\x20','readFileSync','utf8','existsSync','sdk','77JliIAK','20qrGhPw','\x1b[33m','96rvaqLE','\x20\x20\x20Stable\x20version:\x20','1856NxdQxc','4669332vUKVqG','devDependencies','↪\x20SDK\x20update\x20available','@lovrabet/sdk','292420urskiB'];a276_0x3cca=function(){return _0x2f5f41;};return a276_0x3cca();}function getInstalledVersion(_0x2693e7,_0x27bb08){const _0x40ee0c=a276_0x412d;try{const _0x614d42=a276_0x1a31b5[_0x40ee0c(0xa2)](_0x2693e7,_0x40ee0c(0xa6),_0x27bb08,_0x40ee0c(0xa0));if(a276_0x3dbe2d[_0x40ee0c(0xb0)](_0x614d42)){const _0x293a8a=JSON[_0x40ee0c(0xc6)](a276_0x3dbe2d['readFileSync'](_0x614d42,_0x40ee0c(0xc0)));return _0x293a8a[_0x40ee0c(0xa4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x573049=a276_0x412d;try{const _0x5ed417=await getCdnConfig();return _0x5ed417?.[_0x573049(0xb1)]?.['node']?.[_0x573049(0xa8)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1c2a1c=a276_0x412d;try{const _0x19afe3=await getCdnConfig();return _0x19afe3?.[_0x1c2a1c(0xb1)]?.[_0x1c2a1c(0xbf)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x1c2a1c(0xbb);}}export async function checkSdkVersion(_0x4196bf){const _0x178014=a276_0x412d,_0x3058f8=a276_0x1a31b5[_0x178014(0xa2)](_0x4196bf,_0x178014(0xa0)),[_0x4fd4b3,_0x22978e]=await Promise[_0x178014(0xc2)]([getSdkStableVersion(),getSdkPackageName()]),_0x5ed79e=_0x4fd4b3||FALLBACK_MIN_SDK_VERSION;if(!a276_0x3dbe2d[_0x178014(0xb0)](_0x3058f8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5ed79e,'packageName':_0x22978e,'stableVersion':_0x4fd4b3};try{const _0x42c0b7=JSON[_0x178014(0xc6)](a276_0x3dbe2d[_0x178014(0xae)](_0x3058f8,_0x178014(0xaf))),_0x53650c=_0x42c0b7[_0x178014(0xaa)]||{},_0x9b754e=_0x42c0b7[_0x178014(0xb9)]||{},_0x36f099=_0x53650c[_0x22978e]||_0x9b754e[_0x22978e];if(!_0x36f099)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5ed79e,'packageName':_0x22978e,'stableVersion':_0x4fd4b3};let _0x2f523e=getInstalledVersion(_0x4196bf,_0x22978e);!_0x2f523e&&(_0x2f523e=_0x36f099);if(isNonNumericVersion(_0x36f099))return{'installed':!![],'version':_0x2f523e,'needsUpgrade':![],'minVersion':_0x5ed79e,'packageName':_0x22978e,'stableVersion':_0x4fd4b3};const _0x3b9625=a276_0x5de564[_0x178014(0xa9)](_0x2f523e),_0x41c90=a276_0x5de564['coerce'](_0x5ed79e),_0x4cc1e6=_0x3b9625&&_0x41c90?a276_0x5de564['lt'](_0x3b9625,_0x41c90):![];return{'installed':!![],'version':_0x2f523e,'needsUpgrade':_0x4cc1e6,'minVersion':_0x5ed79e,'packageName':_0x22978e,'stableVersion':_0x4fd4b3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5ed79e,'packageName':_0x22978e,'stableVersion':_0x4fd4b3};}}export function checkSdkVersionSync(_0x7a30b0){const _0x436ae3=a276_0x412d,_0x483b21=a276_0x1a31b5[_0x436ae3(0xa2)](_0x7a30b0,_0x436ae3(0xa0)),_0x327fe6='@lovrabet/sdk';if(!a276_0x3dbe2d[_0x436ae3(0xb0)](_0x483b21))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x327fe6,'stableVersion':null};try{const _0x3a653c=JSON[_0x436ae3(0xc6)](a276_0x3dbe2d[_0x436ae3(0xae)](_0x483b21,_0x436ae3(0xaf))),_0x11c05e=_0x3a653c['dependencies']||{},_0x48a322=_0x3a653c[_0x436ae3(0xb9)]||{},_0x5c294e=_0x11c05e[_0x327fe6]||_0x48a322[_0x327fe6];if(!_0x5c294e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x327fe6,'stableVersion':null};let _0x45242e=getInstalledVersion(_0x7a30b0,_0x327fe6);!_0x45242e&&(_0x45242e=_0x5c294e);if(isNonNumericVersion(_0x5c294e))return{'installed':!![],'version':_0x45242e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x327fe6,'stableVersion':null};const _0x36daac=a276_0x5de564[_0x436ae3(0xa9)](_0x45242e),_0x438dc3=_0x36daac?a276_0x5de564['lt'](_0x36daac,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x45242e,'needsUpgrade':_0x438dc3,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x327fe6,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x327fe6,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x94339b){const _0x67e51a=a276_0x412d;if(!_0x94339b[_0x67e51a(0xab)])return;const _0x34b5d4=_0x67e51a(0xb4),_0xbeb6e='\x1b[0m',_0x5392e7='\x1b[1m',_0x23b34d=_0x94339b[_0x67e51a(0xc5)]||_0x67e51a(0xbb),_0x24e2eb=_0x94339b[_0x67e51a(0xa8)]||_0x94339b[_0x67e51a(0x9f)],_0x2125e3=_0x67e51a(0xa7)+_0x23b34d+'@'+(_0x24e2eb||'latest');console[_0x67e51a(0xc4)](),console[_0x67e51a(0xc4)](''+_0x34b5d4+_0x5392e7+_0x67e51a(0xba)+_0xbeb6e),console[_0x67e51a(0xc4)](_0x34b5d4+_0x67e51a(0xad)+_0x23b34d+'@'+_0x94339b[_0x67e51a(0xa4)]+_0xbeb6e),console[_0x67e51a(0xc4)](_0x34b5d4+_0x67e51a(0xb6)+_0x24e2eb+_0xbeb6e),console[_0x67e51a(0xc4)](_0x34b5d4+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2125e3+_0xbeb6e),console[_0x67e51a(0xc4)]();}
@@ -1 +1 @@
1
- (function(_0x26b7fa,_0x34b8ae){const _0x3a185a=a277_0x1aaf,_0x1a64e3=_0x26b7fa();while(!![]){try{const _0x59384b=-parseInt(_0x3a185a(0x77))/0x1*(parseInt(_0x3a185a(0x89))/0x2)+parseInt(_0x3a185a(0x98))/0x3+-parseInt(_0x3a185a(0x73))/0x4*(-parseInt(_0x3a185a(0x82))/0x5)+parseInt(_0x3a185a(0x95))/0x6+parseInt(_0x3a185a(0x86))/0x7*(-parseInt(_0x3a185a(0x90))/0x8)+-parseInt(_0x3a185a(0x91))/0x9*(-parseInt(_0x3a185a(0x99))/0xa)+parseInt(_0x3a185a(0x8c))/0xb*(-parseInt(_0x3a185a(0x74))/0xc);if(_0x59384b===_0x34b8ae)break;else _0x1a64e3['push'](_0x1a64e3['shift']());}catch(_0x5ab7d9){_0x1a64e3['push'](_0x1a64e3['shift']());}}}(a277_0x499f,0x23180));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a277_0x5ae15b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a277_0x499f(){const _0x304e73=['join','22cZjzAi','↪\x20New\x20version\x20available','1.0.0','Current\x20version:\x20','68704MomWVk','9EVMQyd','\x20\x20\x20Minimum\x20supported:\x20','validation','log','1112052tKBHIB','\x20\x20\x20Stable\x20version:\x20','utf-8','321150jDZANe','309130gWGBpg','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Upgrade\x20command:\x20','version','minimumVersionMessage','633008AmXuqI','1432668FvvFEO','Upgrade\x20command:\x20','needsUpgrade','3fVcFnh','npm\x20install\x20-g\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Minimum\x20supported:\x20','filter','parse','upgradeMessage','stableVersion','\x1b[0m','coerce','package.json','5FSyzMH','\x1b[31m','latest','currentVersion','49zxQYcb','belowMinimum','minimumVersion','25946KNsVUl','\x20\x20\x20'];a277_0x499f=function(){return _0x304e73;};return a277_0x499f();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5c75ef){const _0x2b1485=a277_0x1aaf,_0x376c4e=_0x5c75ef[_0x2b1485(0x7e)]||_0x2b1485(0x84);return _0x2b1485(0x78)+NPM_PACKAGE_NAME+'@'+_0x376c4e;}function a277_0x1aaf(_0x35bbc2,_0x5d3a50){_0x35bbc2=_0x35bbc2-0x6f;const _0x499fab=a277_0x499f();let _0x1aaf3d=_0x499fab[_0x35bbc2];return _0x1aaf3d;}function getCurrentCliVersion(){const _0x307d64=a277_0x1aaf;try{const _0x272d93=fileURLToPath(import.meta.url),_0x284e3a=resolve(dirname(_0x272d93),'../..'),_0x3b0e4a=resolve(_0x284e3a,_0x307d64(0x81)),_0x358f44=JSON[_0x307d64(0x7c)](readFileSync(_0x3b0e4a,_0x307d64(0x97)));return _0x358f44[_0x307d64(0x71)]||_0x307d64(0x8e);}catch{return _0x307d64(0x8e);}}export async function checkCliVersion(){const _0x5d250e=a277_0x1aaf,_0x6163b7=getCurrentCliVersion(),_0x54053c=await getCliVersionPolicy(),_0x45db31=_0x54053c?.['stableVersion']||null,_0xc5042b=_0x54053c?.[_0x5d250e(0x88)]||null;let _0x3c9676=![],_0x405f28=![];const _0x3d4f75=a277_0x5ae15b[_0x5d250e(0x80)](_0x6163b7);if(_0x3d4f75&&_0x45db31)try{const _0x5c8f22=a277_0x5ae15b[_0x5d250e(0x80)](_0x45db31);if(_0x5c8f22)_0x3c9676=a277_0x5ae15b['lt'](_0x3d4f75,_0x5c8f22);}catch{}if(_0x3d4f75&&_0xc5042b)try{const _0x347fe9=a277_0x5ae15b['coerce'](_0xc5042b);if(_0x347fe9)_0x405f28=a277_0x5ae15b['lt'](_0x3d4f75,_0x347fe9);}catch{}return _0x405f28&&(_0x3c9676=!![]),{'currentVersion':_0x6163b7,'stableVersion':_0x45db31,'minimumVersion':_0xc5042b,'needsUpgrade':_0x3c9676,'belowMinimum':_0x405f28,'isPreRelease':![],'upgradeMessage':_0x54053c?.[_0x5d250e(0x7d)],'minimumVersionMessage':_0x54053c?.[_0x5d250e(0x72)]};}export function printCliUpgradeWarning(_0x41b7c2){const _0x15b174=a277_0x1aaf;if(!_0x41b7c2[_0x15b174(0x76)]&&!_0x41b7c2['belowMinimum'])return;const _0x19c6e2=_0x15b174(0x83),_0x5bc9ed='\x1b[33m',_0x107522=_0x15b174(0x7f),_0xdfe52e='\x1b[1m',_0x18a3de=getCliUpgradeCommand(_0x41b7c2);console[_0x15b174(0x94)](),_0x41b7c2[_0x15b174(0x87)]?(console[_0x15b174(0x94)](''+_0x19c6e2+_0xdfe52e+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x107522),console[_0x15b174(0x94)](_0x19c6e2+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x41b7c2[_0x15b174(0x85)]+_0x107522),_0x41b7c2[_0x15b174(0x88)]&&console[_0x15b174(0x94)](_0x19c6e2+_0x15b174(0x92)+_0x41b7c2[_0x15b174(0x88)]+_0x107522),_0x41b7c2[_0x15b174(0x7e)]&&_0x41b7c2[_0x15b174(0x7e)]!==_0x41b7c2[_0x15b174(0x88)]&&console['log'](_0x19c6e2+_0x15b174(0x6f)+_0x41b7c2['stableVersion']+_0x107522),_0x41b7c2[_0x15b174(0x72)]&&console[_0x15b174(0x94)](_0x19c6e2+_0x15b174(0x8a)+_0x41b7c2['minimumVersionMessage']+_0x107522),console[_0x15b174(0x94)](_0x19c6e2+_0x15b174(0x70)+_0x18a3de+_0x107522)):(console['log'](''+_0x5bc9ed+_0xdfe52e+_0x15b174(0x8d)+_0x107522),console['log'](_0x5bc9ed+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x41b7c2['currentVersion']+_0x107522),console[_0x15b174(0x94)](_0x5bc9ed+_0x15b174(0x96)+_0x41b7c2[_0x15b174(0x7e)]+_0x107522),_0x41b7c2[_0x15b174(0x7d)]&&console['log'](_0x5bc9ed+_0x15b174(0x8a)+_0x41b7c2['upgradeMessage']+_0x107522),console[_0x15b174(0x94)](_0x5bc9ed+_0x15b174(0x70)+_0x18a3de+_0x107522)),console['log']();}export function assertCliVersionSupported(_0x3f0c03){const _0x159909=a277_0x1aaf;if(!_0x3f0c03[_0x159909(0x87)])return;const _0x55b561=[_0x3f0c03[_0x159909(0x72)],_0x159909(0x8f)+_0x3f0c03[_0x159909(0x85)],_0x3f0c03[_0x159909(0x88)]?_0x159909(0x7a)+_0x3f0c03[_0x159909(0x88)]:null,_0x159909(0x75)+getCliUpgradeCommand(_0x3f0c03)][_0x159909(0x7b)](Boolean)[_0x159909(0x8b)]('\x0a');throw CliErrors[_0x159909(0x93)](_0x159909(0x79),_0x55b561);}
1
+ (function(_0x23169b,_0x43188a){const _0x408851=a277_0x3afd,_0x768d6d=_0x23169b();while(!![]){try{const _0x589c18=-parseInt(_0x408851(0x1cf))/0x1*(parseInt(_0x408851(0x1c5))/0x2)+-parseInt(_0x408851(0x1c8))/0x3*(parseInt(_0x408851(0x1e3))/0x4)+parseInt(_0x408851(0x1e5))/0x5+-parseInt(_0x408851(0x1da))/0x6+-parseInt(_0x408851(0x1d3))/0x7+parseInt(_0x408851(0x1d9))/0x8*(-parseInt(_0x408851(0x1ce))/0x9)+parseInt(_0x408851(0x1d5))/0xa;if(_0x589c18===_0x43188a)break;else _0x768d6d['push'](_0x768d6d['shift']());}catch(_0x48223c){_0x768d6d['push'](_0x768d6d['shift']());}}}(a277_0x4964,0x47108));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a277_0xc1e691 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(_0x153bc9){const _0x5889bd=a277_0x3afd,_0x48b677=_0x153bc9[_0x5889bd(0x1dc)]||'latest';return _0x5889bd(0x1d2)+NPM_PACKAGE_NAME+'@'+_0x48b677;}function a277_0x3afd(_0x5a8fd4,_0x77f870){_0x5a8fd4=_0x5a8fd4-0x1c2;const _0x496481=a277_0x4964();let _0x3afd62=_0x496481[_0x5a8fd4];return _0x3afd62;}function getCurrentCliVersion(){const _0x251698=a277_0x3afd;try{const _0x289c2d=fileURLToPath(import.meta.url),_0x592087=resolve(dirname(_0x289c2d),'../..'),_0x5b5eec=resolve(_0x592087,'package.json'),_0x585ac1=JSON[_0x251698(0x1e7)](readFileSync(_0x5b5eec,_0x251698(0x1d8)));return _0x585ac1['version']||'1.0.0';}catch{return _0x251698(0x1e1);}}export async function checkCliVersion(){const _0x13b72d=a277_0x3afd,_0x4d2588=getCurrentCliVersion(),_0x3870c3=await getCliVersionPolicy(),_0x4c775b=_0x3870c3?.['stableVersion']||null,_0x33b108=_0x3870c3?.[_0x13b72d(0x1c6)]||null;let _0x3fd78b=![],_0x58ba41=![];const _0x279dfe=a277_0xc1e691[_0x13b72d(0x1d4)](_0x4d2588);if(_0x279dfe&&_0x4c775b)try{const _0x1bd65e=a277_0xc1e691[_0x13b72d(0x1d4)](_0x4c775b);if(_0x1bd65e)_0x3fd78b=a277_0xc1e691['lt'](_0x279dfe,_0x1bd65e);}catch{}if(_0x279dfe&&_0x33b108)try{const _0x168cab=a277_0xc1e691['coerce'](_0x33b108);if(_0x168cab)_0x58ba41=a277_0xc1e691['lt'](_0x279dfe,_0x168cab);}catch{}return _0x58ba41&&(_0x3fd78b=!![]),{'currentVersion':_0x4d2588,'stableVersion':_0x4c775b,'minimumVersion':_0x33b108,'needsUpgrade':_0x3fd78b,'belowMinimum':_0x58ba41,'isPreRelease':![],'upgradeMessage':_0x3870c3?.['upgradeMessage'],'minimumVersionMessage':_0x3870c3?.[_0x13b72d(0x1e0)]};}export function printCliUpgradeWarning(_0x53c0d6){const _0x591537=a277_0x3afd;if(!_0x53c0d6[_0x591537(0x1c7)]&&!_0x53c0d6['belowMinimum'])return;const _0xc7556a=_0x591537(0x1c3),_0x2f721d=_0x591537(0x1c9),_0xfe11a0=_0x591537(0x1d7),_0x4f7384='\x1b[1m',_0xf0d626=getCliUpgradeCommand(_0x53c0d6);console[_0x591537(0x1d6)](),_0x53c0d6[_0x591537(0x1dd)]?(console[_0x591537(0x1d6)](''+_0xc7556a+_0x4f7384+_0x591537(0x1c2)+_0xfe11a0),console[_0x591537(0x1d6)](_0xc7556a+_0x591537(0x1ca)+_0x53c0d6['currentVersion']+_0xfe11a0),_0x53c0d6[_0x591537(0x1c6)]&&console[_0x591537(0x1d6)](_0xc7556a+_0x591537(0x1cd)+_0x53c0d6[_0x591537(0x1c6)]+_0xfe11a0),_0x53c0d6[_0x591537(0x1dc)]&&_0x53c0d6[_0x591537(0x1dc)]!==_0x53c0d6['minimumVersion']&&console[_0x591537(0x1d6)](_0xc7556a+'\x20\x20\x20Recommended\x20stable:\x20'+_0x53c0d6[_0x591537(0x1dc)]+_0xfe11a0),_0x53c0d6['minimumVersionMessage']&&console[_0x591537(0x1d6)](_0xc7556a+'\x20\x20\x20'+_0x53c0d6[_0x591537(0x1e0)]+_0xfe11a0),console['log'](_0xc7556a+_0x591537(0x1d0)+_0xf0d626+_0xfe11a0)):(console[_0x591537(0x1d6)](''+_0x2f721d+_0x4f7384+_0x591537(0x1cc)+_0xfe11a0),console[_0x591537(0x1d6)](_0x2f721d+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x53c0d6['currentVersion']+_0xfe11a0),console['log'](_0x2f721d+_0x591537(0x1c4)+_0x53c0d6[_0x591537(0x1dc)]+_0xfe11a0),_0x53c0d6[_0x591537(0x1e2)]&&console[_0x591537(0x1d6)](_0x2f721d+'\x20\x20\x20'+_0x53c0d6[_0x591537(0x1e2)]+_0xfe11a0),console['log'](_0x2f721d+'\x20\x20\x20Upgrade\x20command:\x20'+_0xf0d626+_0xfe11a0)),console[_0x591537(0x1d6)]();}export function assertCliVersionSupported(_0x585579){const _0x31d875=a277_0x3afd;if(!_0x585579[_0x31d875(0x1dd)])return;const _0x36e2f7=[_0x585579['minimumVersionMessage'],_0x31d875(0x1db)+_0x585579[_0x31d875(0x1d1)],_0x585579['minimumVersion']?_0x31d875(0x1de)+_0x585579[_0x31d875(0x1c6)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x585579)][_0x31d875(0x1cb)](Boolean)[_0x31d875(0x1df)]('\x0a');throw CliErrors[_0x31d875(0x1e4)](_0x31d875(0x1e6),_0x36e2f7);}function a277_0x4964(){const _0x3c082f=['npm\x20install\x20-g\x20','916832Sdlztc','coerce','3621840mkQxyW','log','\x1b[0m','utf-8','152yyJLMh','365826sjtOAd','Current\x20version:\x20','stableVersion','belowMinimum','Minimum\x20supported:\x20','join','minimumVersionMessage','1.0.0','upgradeMessage','4kmcjBP','validation','2350225gFFNdQ','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','parse','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[31m','\x20\x20\x20Stable\x20version:\x20','406LgsBTs','minimumVersion','needsUpgrade','69807OJvALZ','\x1b[33m','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','↪\x20New\x20version\x20available','\x20\x20\x20Minimum\x20supported:\x20','8037FnSmxM','1522LsWTiv','\x20\x20\x20Upgrade\x20command:\x20','currentVersion'];a277_0x4964=function(){return _0x3c082f;};return a277_0x4964();}
@@ -1 +1 @@
1
- (function(_0x5af278,_0x212c99){const _0x29ac2a=a278_0x1401,_0x2f6efe=_0x5af278();while(!![]){try{const _0x2d536f=-parseInt(_0x29ac2a(0x159))/0x1+parseInt(_0x29ac2a(0x169))/0x2*(parseInt(_0x29ac2a(0x16c))/0x3)+-parseInt(_0x29ac2a(0x15c))/0x4*(parseInt(_0x29ac2a(0x168))/0x5)+parseInt(_0x29ac2a(0x15b))/0x6+-parseInt(_0x29ac2a(0x160))/0x7+-parseInt(_0x29ac2a(0x16b))/0x8*(parseInt(_0x29ac2a(0x164))/0x9)+parseInt(_0x29ac2a(0x15e))/0xa*(parseInt(_0x29ac2a(0x16f))/0xb);if(_0x2d536f===_0x212c99)break;else _0x2f6efe['push'](_0x2f6efe['shift']());}catch(_0x32ffde){_0x2f6efe['push'](_0x2f6efe['shift']());}}}(a278_0x1546,0x338d9));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(_0x5ce446){const _0x4f3225=a278_0x1401;return typeof _0x5ce446==='string'&&_0x5ce446['trim']()['length']>0x0?_0x5ce446[_0x4f3225(0x16d)]():null;}function normalizeCliVersionPolicy(_0x38352d){const _0x4768db=a278_0x1401;if(!_0x38352d||typeof _0x38352d!=='object')return null;const _0x3864b3=_0x38352d,_0x9aebbd=_0x3864b3[_0x4768db(0x157)]&&typeof _0x3864b3[_0x4768db(0x157)]===_0x4768db(0x158)?_0x3864b3[_0x4768db(0x157)]:_0x3864b3,_0x24ccb9=pickString(_0x9aebbd['stableVersion'])||pickString(_0x9aebbd[_0x4768db(0x15a)])||pickString(_0x9aebbd[_0x4768db(0x161)]),_0x4c882c=pickString(_0x9aebbd[_0x4768db(0x167)])||pickString(_0x9aebbd[_0x4768db(0x162)]);if(!_0x24ccb9&&!_0x4c882c)return null;return{'stableVersion':_0x24ccb9,'minimumVersion':_0x4c882c,'upgradeMessage':pickString(_0x9aebbd[_0x4768db(0x166)])||undefined,'minimumVersionMessage':pickString(_0x9aebbd[_0x4768db(0x165)])||undefined};}function a278_0x1546(){const _0xaf080c=['653860EDefgE','application/json','820hGUIei','signal','909062erwKPS','recommendedVersion','minVersion','now','505863eFWFuS','minimumVersionMessage','upgradeMessage','minimumVersion','10nJsHOp','952yvDVDB','json','32ziJAAI','804uOTpbW','trim','abort','90937OEadOe','cli','object','199687isReLr','latestVersion','1722060RsDLbX'];a278_0x1546=function(){return _0xaf080c;};return a278_0x1546();}function a278_0x1401(_0x603699,_0x2d260b){_0x603699=_0x603699-0x157;const _0x15463b=a278_0x1546();let _0x1401e8=_0x15463b[_0x603699];return _0x1401e8;}export async function fetchRabetbaseCdnConfig(){const _0x254ad7=a278_0x1401,_0x3eedeb=new AbortController(),_0x2df920=setTimeout(()=>_0x3eedeb[_0x254ad7(0x16e)](),FETCH_TIMEOUT_MS);try{const _0x5e1e92=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x254ad7(0x15d)},'signal':_0x3eedeb[_0x254ad7(0x15f)]});if(!_0x5e1e92['ok'])return null;const _0x5820a9=await _0x5e1e92[_0x254ad7(0x16a)]();return _0x5820a9&&typeof _0x5820a9===_0x254ad7(0x158)?_0x5820a9:null;}catch{return null;}finally{clearTimeout(_0x2df920);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x3ca2f7=a278_0x1401,_0x33b501=Date[_0x3ca2f7(0x163)]();if(hasCachedConfig){const _0x418c47=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x33b501-cacheTime<_0x418c47)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x33b501,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a278_0x265f(_0x3a63fa,_0x388e9e){_0x3a63fa=_0x3a63fa-0x152;const _0x160490=a278_0x1604();let _0x265ff5=_0x160490[_0x3a63fa];return _0x265ff5;}(function(_0xc549c8,_0x46d0fa){const _0x18efc2=a278_0x265f,_0x4724da=_0xc549c8();while(!![]){try{const _0x12406c=-parseInt(_0x18efc2(0x15c))/0x1+parseInt(_0x18efc2(0x162))/0x2+-parseInt(_0x18efc2(0x157))/0x3+parseInt(_0x18efc2(0x161))/0x4*(-parseInt(_0x18efc2(0x159))/0x5)+parseInt(_0x18efc2(0x15d))/0x6*(-parseInt(_0x18efc2(0x15b))/0x7)+parseInt(_0x18efc2(0x153))/0x8+parseInt(_0x18efc2(0x167))/0x9;if(_0x12406c===_0x46d0fa)break;else _0x4724da['push'](_0x4724da['shift']());}catch(_0x5cd892){_0x4724da['push'](_0x4724da['shift']());}}}(a278_0x1604,0x1aac3));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(_0x5e96c9){const _0x27bd76=a278_0x265f;return typeof _0x5e96c9===_0x27bd76(0x163)&&_0x5e96c9[_0x27bd76(0x155)]()['length']>0x0?_0x5e96c9[_0x27bd76(0x155)]():null;}function normalizeCliVersionPolicy(_0x3efbff){const _0x1c99a5=a278_0x265f;if(!_0x3efbff||typeof _0x3efbff!==_0x1c99a5(0x160))return null;const _0x36e119=_0x3efbff,_0x4e3f97=_0x36e119[_0x1c99a5(0x165)]&&typeof _0x36e119[_0x1c99a5(0x165)]===_0x1c99a5(0x160)?_0x36e119[_0x1c99a5(0x165)]:_0x36e119,_0x273448=pickString(_0x4e3f97['stableVersion'])||pickString(_0x4e3f97[_0x1c99a5(0x156)])||pickString(_0x4e3f97[_0x1c99a5(0x15a)]),_0x358ad6=pickString(_0x4e3f97[_0x1c99a5(0x164)])||pickString(_0x4e3f97[_0x1c99a5(0x158)]);if(!_0x273448&&!_0x358ad6)return null;return{'stableVersion':_0x273448,'minimumVersion':_0x358ad6,'upgradeMessage':pickString(_0x4e3f97['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4e3f97[_0x1c99a5(0x166)])||undefined};}function a278_0x1604(){const _0x3180c7=['216810laKwBt','string','minimumVersion','cli','minimumVersionMessage','3534309EYASMG','application/json','62096Xoqoiv','json','trim','latestVersion','211503xhKDnG','minVersion','20skQQww','recommendedVersion','70KqdyWy','82078cdSJql','111726uIXpjQ','abort','signal','object','60828EizpLG'];a278_0x1604=function(){return _0x3180c7;};return a278_0x1604();}export async function fetchRabetbaseCdnConfig(){const _0x57d993=a278_0x265f,_0x23673e=new AbortController(),_0x5d1223=setTimeout(()=>_0x23673e[_0x57d993(0x15e)](),FETCH_TIMEOUT_MS);try{const _0x2c938c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x57d993(0x152)},'signal':_0x23673e[_0x57d993(0x15f)]});if(!_0x2c938c['ok'])return null;const _0x4bccc9=await _0x2c938c[_0x57d993(0x154)]();return _0x4bccc9&&typeof _0x4bccc9==='object'?_0x4bccc9:null;}catch{return null;}finally{clearTimeout(_0x5d1223);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x98fd46=Date['now']();if(hasCachedConfig){const _0x2cae8f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x98fd46-cacheTime<_0x2cae8f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x98fd46,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a279_0x2f14c9=a279_0x3d5b;function a279_0x3d5b(_0x6eb8d5,_0xa583ad){_0x6eb8d5=_0x6eb8d5-0x155;const _0x235335=a279_0x2353();let _0x3d5bd7=_0x235335[_0x6eb8d5];return _0x3d5bd7;}(function(_0x30d9f4,_0x50053f){const _0x41b78d=a279_0x3d5b,_0x9c0bf8=_0x30d9f4();while(!![]){try{const _0x3ebf86=-parseInt(_0x41b78d(0x160))/0x1*(parseInt(_0x41b78d(0x15e))/0x2)+-parseInt(_0x41b78d(0x15c))/0x3*(parseInt(_0x41b78d(0x163))/0x4)+parseInt(_0x41b78d(0x159))/0x5+parseInt(_0x41b78d(0x156))/0x6*(-parseInt(_0x41b78d(0x15f))/0x7)+parseInt(_0x41b78d(0x158))/0x8*(-parseInt(_0x41b78d(0x157))/0x9)+parseInt(_0x41b78d(0x155))/0xa+-parseInt(_0x41b78d(0x161))/0xb*(-parseInt(_0x41b78d(0x162))/0xc);if(_0x3ebf86===_0x50053f)break;else _0x9c0bf8['push'](_0x9c0bf8['shift']());}catch(_0x52c7fe){_0x9c0bf8['push'](_0x9c0bf8['shift']());}}}(a279_0x2353,0x74682));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a279_0x335370,getMultiAppConfigs as a279_0x4cb01e,getTemplateBaseUrl as a279_0x15f0cb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a279_0x2353(){const _0x359c5b=['7419744gQsgyh','96RgoGNf','2824410bdhrEz','30mIkLQs','3118239tiCnNQ','16DaVAAx','1992380dLLzJC','project','env','77247akrZif','string','4fMSYPI','975065HJHrOD','25829ojZDuA','33kPvYtt'];a279_0x2353=function(){return _0x359c5b;};return a279_0x2353();}export function readConfig(_0x13434f){const _0x3ebb49=a279_0x3d5b,_0x339e97=readRawConfig(_0x13434f);return _0x339e97[_0x3ebb49(0x15b)]&&typeof _0x339e97[_0x3ebb49(0x15b)]===_0x3ebb49(0x15d)&&initEnv(_0x339e97['env']),_0x339e97;}export function getConfigAppCode(){return a279_0x335370();}export function getMultiAppConfigs(_0x2fea73=a279_0x2f14c9(0x15a)){return a279_0x4cb01e(_0x2fea73);}export function getTemplateBaseUrl(){return a279_0x15f0cb();}
1
+ const a279_0x116a97=a279_0x27f7;(function(_0x57da8d,_0xb41c89){const _0x546eb6=a279_0x27f7,_0x549669=_0x57da8d();while(!![]){try{const _0x5c7b39=parseInt(_0x546eb6(0x1b8))/0x1*(parseInt(_0x546eb6(0x1c3))/0x2)+parseInt(_0x546eb6(0x1bc))/0x3*(parseInt(_0x546eb6(0x1bf))/0x4)+-parseInt(_0x546eb6(0x1c2))/0x5+parseInt(_0x546eb6(0x1b9))/0x6+-parseInt(_0x546eb6(0x1c1))/0x7*(-parseInt(_0x546eb6(0x1bb))/0x8)+-parseInt(_0x546eb6(0x1c4))/0x9+-parseInt(_0x546eb6(0x1be))/0xa;if(_0x5c7b39===_0xb41c89)break;else _0x549669['push'](_0x549669['shift']());}catch(_0x2dfe15){_0x549669['push'](_0x549669['shift']());}}}(a279_0x2763,0x2fa45));function a279_0x2763(){const _0x500f0e=['1134UVrejP','914733KdkTMz','576iyuJlZ','1999254IMBVIB','string','144520pStGWJ','9759MdebVM','env','7996370hGrFjP','220tBrJvV','project','140PyKfDO','518005jdLXbW'];a279_0x2763=function(){return _0x500f0e;};return a279_0x2763();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a279_0x116533,getMultiAppConfigs as a279_0x23468f,getTemplateBaseUrl as a279_0x3e3a78}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xbc5072){const _0x86b19c=a279_0x27f7,_0x2428c5=readRawConfig(_0xbc5072);return _0x2428c5[_0x86b19c(0x1bd)]&&typeof _0x2428c5[_0x86b19c(0x1bd)]===_0x86b19c(0x1ba)&&initEnv(_0x2428c5[_0x86b19c(0x1bd)]),_0x2428c5;}export function getConfigAppCode(){return a279_0x116533();}export function getMultiAppConfigs(_0x3b946e=a279_0x116a97(0x1c0)){return a279_0x23468f(_0x3b946e);}function a279_0x27f7(_0x5668b1,_0x3606ad){_0x5668b1=_0x5668b1-0x1b8;const _0x276346=a279_0x2763();let _0x27f7ed=_0x276346[_0x5668b1];return _0x27f7ed;}export function getTemplateBaseUrl(){return a279_0x3e3a78();}
@@ -1 +1 @@
1
- (function(_0x48d80f,_0x55c19a){const _0x637498=a280_0x1870,_0x293c1c=_0x48d80f();while(!![]){try{const _0x2f47b8=parseInt(_0x637498(0x173))/0x1*(parseInt(_0x637498(0x17b))/0x2)+-parseInt(_0x637498(0x176))/0x3*(parseInt(_0x637498(0x180))/0x4)+parseInt(_0x637498(0x17f))/0x5+-parseInt(_0x637498(0x177))/0x6*(-parseInt(_0x637498(0x17d))/0x7)+parseInt(_0x637498(0x174))/0x8+parseInt(_0x637498(0x17c))/0x9+-parseInt(_0x637498(0x175))/0xa*(parseInt(_0x637498(0x178))/0xb);if(_0x2f47b8===_0x55c19a)break;else _0x293c1c['push'](_0x293c1c['shift']());}catch(_0x796718){_0x293c1c['push'](_0x293c1c['shift']());}}}(a280_0x28d1,0xb5457));function toFiniteNumber(_0x97daae){const _0x447fd5=a280_0x1870;if(typeof _0x97daae===_0x447fd5(0x17a)&&Number[_0x447fd5(0x179)](_0x97daae))return _0x97daae;if(typeof _0x97daae===_0x447fd5(0x181)){const _0x4b79de=_0x97daae[_0x447fd5(0x182)]();if(!_0x4b79de)return undefined;const _0x405b56=Number(_0x4b79de);if(Number['isFinite'](_0x405b56))return _0x405b56;}return undefined;}function a280_0x28d1(){const _0x4b67fd=['trim','1xcItDU','1677312SeFnVQ','9853290BllCFm','1135257dSdGuj','26340XgVetH','22ECLEWF','isFinite','number','1223340BPpUgH','5784210wqvFrt','511OIjFsw','object','6535350xixwNy','4UdAsAC','string'];a280_0x28d1=function(){return _0x4b67fd;};return a280_0x28d1();}function a280_0x1870(_0x597fcb,_0x2ffce3){_0x597fcb=_0x597fcb-0x173;const _0x28d159=a280_0x28d1();let _0x18709f=_0x28d159[_0x597fcb];return _0x18709f;}export function normalizeEntityWithIdResponse(_0x396bd2){const _0x1e5048=a280_0x1870,_0x27b6e2=toFiniteNumber(_0x396bd2);if(_0x27b6e2!==undefined)return{'id':_0x27b6e2,'entity':{'id':_0x27b6e2}};if(!_0x396bd2||typeof _0x396bd2!==_0x1e5048(0x17e))return{'id':undefined,'entity':{}};const _0x5b333f={..._0x396bd2},_0x1d47ed=toFiniteNumber(_0x5b333f['id']);return _0x1d47ed!==undefined&&(_0x5b333f['id']=_0x1d47ed),{'id':_0x1d47ed,'entity':_0x5b333f};}
1
+ function a280_0x42f0(_0x46324a,_0x1d4e82){_0x46324a=_0x46324a-0xeb;const _0x54b499=a280_0x54b4();let _0x42f071=_0x54b499[_0x46324a];return _0x42f071;}function a280_0x54b4(){const _0x313f10=['500408ONgVHF','1211wxRIZZ','1YaRMZg','isFinite','8390kDWxaK','10602MIoYeh','8923390jvCHBd','string','49616iVhXDf','trim','21jKVNmR','19916028HGtzne','object','1416758tAUppl','4146918GlNBNb'];a280_0x54b4=function(){return _0x313f10;};return a280_0x54b4();}(function(_0x2e5066,_0x59848f){const _0x1070da=a280_0x42f0,_0x5a8559=_0x2e5066();while(!![]){try{const _0x1dc9ad=-parseInt(_0x1070da(0xee))/0x1*(parseInt(_0x1070da(0xf9))/0x2)+parseInt(_0x1070da(0xf6))/0x3*(parseInt(_0x1070da(0xec))/0x4)+parseInt(_0x1070da(0xf2))/0x5+parseInt(_0x1070da(0xeb))/0x6+parseInt(_0x1070da(0xed))/0x7*(parseInt(_0x1070da(0xf4))/0x8)+parseInt(_0x1070da(0xf1))/0x9*(-parseInt(_0x1070da(0xf0))/0xa)+-parseInt(_0x1070da(0xf7))/0xb;if(_0x1dc9ad===_0x59848f)break;else _0x5a8559['push'](_0x5a8559['shift']());}catch(_0x3b85d7){_0x5a8559['push'](_0x5a8559['shift']());}}}(a280_0x54b4,0xdfee6));function toFiniteNumber(_0x4757bf){const _0x57e00b=a280_0x42f0;if(typeof _0x4757bf==='number'&&Number['isFinite'](_0x4757bf))return _0x4757bf;if(typeof _0x4757bf===_0x57e00b(0xf3)){const _0x1ece42=_0x4757bf[_0x57e00b(0xf5)]();if(!_0x1ece42)return undefined;const _0x3a85fa=Number(_0x1ece42);if(Number[_0x57e00b(0xef)](_0x3a85fa))return _0x3a85fa;}return undefined;}export function normalizeEntityWithIdResponse(_0x2abb01){const _0x3ed01c=a280_0x42f0,_0x260df9=toFiniteNumber(_0x2abb01);if(_0x260df9!==undefined)return{'id':_0x260df9,'entity':{'id':_0x260df9}};if(!_0x2abb01||typeof _0x2abb01!==_0x3ed01c(0xf8))return{'id':undefined,'entity':{}};const _0x27e6ce={..._0x2abb01},_0x16affd=toFiniteNumber(_0x27e6ce['id']);return _0x16affd!==undefined&&(_0x27e6ce['id']=_0x16affd),{'id':_0x16affd,'entity':_0x27e6ce};}
@@ -1 +1 @@
1
- (function(_0x3fec82,_0x18fe9e){const _0x230db6=a281_0x1b52,_0x14b830=_0x3fec82();while(!![]){try{const _0x325f5f=parseInt(_0x230db6(0x85))/0x1+-parseInt(_0x230db6(0x7b))/0x2+parseInt(_0x230db6(0x7c))/0x3*(parseInt(_0x230db6(0x81))/0x4)+-parseInt(_0x230db6(0x82))/0x5*(parseInt(_0x230db6(0x84))/0x6)+parseInt(_0x230db6(0x80))/0x7*(-parseInt(_0x230db6(0x7f))/0x8)+-parseInt(_0x230db6(0x7d))/0x9*(-parseInt(_0x230db6(0x86))/0xa)+parseInt(_0x230db6(0x7e))/0xb;if(_0x325f5f===_0x18fe9e)break;else _0x14b830['push'](_0x14b830['shift']());}catch(_0x42fe40){_0x14b830['push'](_0x14b830['shift']());}}}(a281_0x1d5b,0xc3c08));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a281_0x1b52(_0x2c1ba6,_0x575778){_0x2c1ba6=_0x2c1ba6-0x7b;const _0x1d5bd0=a281_0x1d5b();let _0x1b5232=_0x1d5bd0[_0x2c1ba6];return _0x1b5232;}import{join}from'node:path';export async function copyDir(_0x560224,_0x45c0bf){const _0x370ed4=a281_0x1b52,_0x5934a2=statSync(_0x560224);if(_0x5934a2[_0x370ed4(0x83)]()){!existsSync(_0x45c0bf)&&mkdirSync(_0x45c0bf,{'recursive':!![]});const _0x54ad25=readdirSync(_0x560224);for(const _0x277b0c of _0x54ad25){await copyDir(join(_0x560224,_0x277b0c),join(_0x45c0bf,_0x277b0c));}}else copyFileSync(_0x560224,_0x45c0bf);}function a281_0x1d5b(){const _0x42261a=['2646396GRXtGD','17165511UrOBez','16JNLJgw','1685495rzhSLf','81528qRriGS','6129670FTAvXW','isDirectory','6EvkiQR','927079dIMHsc','30gejnWl','2128456otRLWb','30piCBTM'];a281_0x1d5b=function(){return _0x42261a;};return a281_0x1d5b();}export function ensureDir(_0x45cb48){!existsSync(_0x45cb48)&&mkdirSync(_0x45cb48,{'recursive':!![]});}export function pathExists(_0x4cdb9c){return existsSync(_0x4cdb9c);}
1
+ (function(_0x4e503d,_0x21ea05){const _0xc8e86=a281_0x2df3,_0x3f4a9e=_0x4e503d();while(!![]){try{const _0x4e52fd=parseInt(_0xc8e86(0x1df))/0x1+-parseInt(_0xc8e86(0x1e1))/0x2+-parseInt(_0xc8e86(0x1e0))/0x3*(parseInt(_0xc8e86(0x1db))/0x4)+parseInt(_0xc8e86(0x1dc))/0x5+parseInt(_0xc8e86(0x1da))/0x6+parseInt(_0xc8e86(0x1de))/0x7+-parseInt(_0xc8e86(0x1dd))/0x8;if(_0x4e52fd===_0x21ea05)break;else _0x3f4a9e['push'](_0x3f4a9e['shift']());}catch(_0x524ecd){_0x3f4a9e['push'](_0x3f4a9e['shift']());}}}(a281_0x33d9,0xead0b));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a281_0x33d9(){const _0x35803e=['8857875dBfeqE','19215840iDCXXa','6760901uQdGGM','1841168jkVlMD','3WXRcPc','2225132ccbmvl','isDirectory','1860636XRLbdN','1649372FmyYUu'];a281_0x33d9=function(){return _0x35803e;};return a281_0x33d9();}import{join}from'node:path';export async function copyDir(_0x12a07e,_0x50d7a5){const _0x3d89e4=a281_0x2df3,_0xfc62b1=statSync(_0x12a07e);if(_0xfc62b1[_0x3d89e4(0x1e2)]()){!existsSync(_0x50d7a5)&&mkdirSync(_0x50d7a5,{'recursive':!![]});const _0x3c9408=readdirSync(_0x12a07e);for(const _0x417f90 of _0x3c9408){await copyDir(join(_0x12a07e,_0x417f90),join(_0x50d7a5,_0x417f90));}}else copyFileSync(_0x12a07e,_0x50d7a5);}export function ensureDir(_0x552404){!existsSync(_0x552404)&&mkdirSync(_0x552404,{'recursive':!![]});}function a281_0x2df3(_0x497fb5,_0x97e36b){_0x497fb5=_0x497fb5-0x1da;const _0x33d9fa=a281_0x33d9();let _0x2df3db=_0x33d9fa[_0x497fb5];return _0x2df3db;}export function pathExists(_0x116857){return existsSync(_0x116857);}
@@ -1 +1 @@
1
- const a282_0x2339ef=a282_0x4941;(function(_0x386809,_0x59d231){const _0x5b76e2=a282_0x4941,_0x2ef218=_0x386809();while(!![]){try{const _0x3cc569=-parseInt(_0x5b76e2(0x8c))/0x1+parseInt(_0x5b76e2(0x76))/0x2*(parseInt(_0x5b76e2(0x96))/0x3)+parseInt(_0x5b76e2(0x85))/0x4*(parseInt(_0x5b76e2(0x78))/0x5)+parseInt(_0x5b76e2(0x8f))/0x6+parseInt(_0x5b76e2(0x83))/0x7*(parseInt(_0x5b76e2(0x7d))/0x8)+parseInt(_0x5b76e2(0x99))/0x9+-parseInt(_0x5b76e2(0x90))/0xa;if(_0x3cc569===_0x59d231)break;else _0x2ef218['push'](_0x2ef218['shift']());}catch(_0x412420){_0x2ef218['push'](_0x2ef218['shift']());}}}(a282_0x9b1d,0x6e93a));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 _0x48477a=a282_0x4941,_0x536821=getTemplateBaseUrl();return _0x536821+_0x48477a(0x8a);}function a282_0x9b1d(){const _0x43f2fb=['trimEnd','title','/skills/guides.json','application/json','805835cJcTKf','CDN\x20返回数据格式错误','utf-8','5131758izMYgi','5464950vcpGXz','keys','length','replace','CDN\x20数据中缺少\x20skillTemplate','lastUpdated','716880gLtltv','extendContent','skillTemplate','756891dBfIgs','object','2guWQMU','content','4480hOdBlX','path','.lovrabet/skill/guides','entries','map','2096ihiMiS','guides','push','json','join','cache','2338TxEVGN','.md','2408tauDYp','\x0a\x0a>更新时间:','CDN\x20请求失败:\x20'];a282_0x9b1d=function(){return _0x43f2fb;};return a282_0x9b1d();}const CACHE_DIR=join(homedir(),'.lovrabet',a282_0x2339ef(0x82));export async function fetchGuidesFromCDN(){const _0xee4714=a282_0x2339ef,_0x176753=getGuidesCdnUrl(),_0x16ce69=await fetch(_0x176753,{'headers':{'Accept':_0xee4714(0x8b)}});if(!_0x16ce69['ok'])throw new Error(_0xee4714(0x87)+_0x16ce69['status']+'\x20'+_0x16ce69['statusText']);const _0x482ef7=await _0x16ce69[_0xee4714(0x80)]();if(!_0x482ef7[_0xee4714(0x7e)]||typeof _0x482ef7[_0xee4714(0x7e)]!==_0xee4714(0x75))throw new Error(_0xee4714(0x8d));return _0x482ef7;}export function writeGuidesToProject(_0x2f98d3,_0x12a053,_0xc9552c=a282_0x2339ef(0x7a),_0x2ce60d){const _0x360f78=a282_0x2339ef,_0x11283f=join(_0x12a053,_0xc9552c);mkdirSync(_0x11283f,{'recursive':!![]});for(const [_0x3c53a2,_0x200c96]of Object[_0x360f78(0x7b)](_0x2f98d3[_0x360f78(0x7e)])){let _0x4e3f44=_0x200c96['content'];_0x200c96['lastUpdated']&&(_0x4e3f44=appendUpdateTime(_0x4e3f44,_0x200c96[_0x360f78(0x95)])),writeFileSync(join(_0x11283f,_0x3c53a2+_0x360f78(0x84)),_0x4e3f44,_0x360f78(0x8e));}}export function appendUpdateTime(_0x1eb155,_0x30c479){const _0x48f78d=a282_0x2339ef;return _0x1eb155=_0x1eb155['replace'](/\n*>更新时间:.*$/m,''),_0x1eb155[_0x48f78d(0x88)]()+(_0x48f78d(0x86)+_0x30c479);}export function getSkillTemplate(_0x292038){const _0x45e392=a282_0x2339ef;return _0x292038[_0x45e392(0x98)]?.[_0x45e392(0x77)]||'';}export function appendExtendContents(_0x293385,_0x3aa858,_0x652b5c){const _0x460878=a282_0x2339ef,_0x31c2e3=[];for(const [,_0x49b916]of Object[_0x460878(0x7b)](_0x3aa858[_0x460878(0x7e)])){_0x49b916[_0x460878(0x97)]&&_0x31c2e3[_0x460878(0x7f)](_0x49b916[_0x460878(0x97)][_0x460878(0x88)]());}if(_0x31c2e3[_0x460878(0x92)]===0x0)return _0x293385;return _0x293385[_0x460878(0x88)]()+'\x0a\x0a'+_0x31c2e3[_0x460878(0x81)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x471b39,_0xee232c,_0x5cba33){const _0x176c9f=a282_0x2339ef,_0x17c887=getSkillTemplate(_0x471b39);if(!_0x17c887)throw new Error(_0x176c9f(0x94));const _0x19268a=dirname(_0xee232c);mkdirSync(_0x19268a,{'recursive':!![]});let _0x4f847a=_0x17c887[_0x176c9f(0x93)](/\{\{IDE_NAME\}\}/g,_0x5cba33);_0x4f847a=appendExtendContents(_0x4f847a,_0x471b39),_0x471b39[_0x176c9f(0x98)][_0x176c9f(0x95)]&&(_0x4f847a=appendUpdateTime(_0x4f847a,_0x471b39[_0x176c9f(0x98)][_0x176c9f(0x95)])),writeFileSync(_0xee232c,_0x4f847a,_0x176c9f(0x8e));}function a282_0x4941(_0x2fdbf1,_0x56ad67){_0x2fdbf1=_0x2fdbf1-0x75;const _0x9b1dfd=a282_0x9b1d();let _0x49414a=_0x9b1dfd[_0x2fdbf1];return _0x49414a;}export async function installGuides(_0xe9ead0){const _0x19706d=a282_0x2339ef,_0x552aa3=await fetchGuidesFromCDN();return writeGuidesToProject(_0x552aa3,_0xe9ead0),Object[_0x19706d(0x91)](_0x552aa3[_0x19706d(0x7e)])['length'];}export function getGuidesSummary(_0x2109f7){const _0x4bccc4=a282_0x2339ef;return Object[_0x4bccc4(0x7b)](_0x2109f7[_0x4bccc4(0x7e)])[_0x4bccc4(0x7c)](([_0x573b38,_0xac24ad])=>({'key':_0x573b38,'title':_0xac24ad[_0x4bccc4(0x89)],'path':_0xac24ad[_0x4bccc4(0x79)]}));}
1
+ const a282_0x29a33c=a282_0x29dc;(function(_0x38db5c,_0x3beda0){const _0x298115=a282_0x29dc,_0x3e4a46=_0x38db5c();while(!![]){try{const _0x858368=parseInt(_0x298115(0x1c6))/0x1+-parseInt(_0x298115(0x1d1))/0x2*(-parseInt(_0x298115(0x1c0))/0x3)+-parseInt(_0x298115(0x1c5))/0x4*(parseInt(_0x298115(0x1cb))/0x5)+parseInt(_0x298115(0x1d5))/0x6*(parseInt(_0x298115(0x1d0))/0x7)+-parseInt(_0x298115(0x1cd))/0x8*(parseInt(_0x298115(0x1dc))/0x9)+parseInt(_0x298115(0x1c9))/0xa+-parseInt(_0x298115(0x1c7))/0xb;if(_0x858368===_0x3beda0)break;else _0x3e4a46['push'](_0x3e4a46['shift']());}catch(_0x248986){_0x3e4a46['push'](_0x3e4a46['shift']());}}}(a282_0xd998,0x5fced));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a282_0x29dc(_0x4338e4,_0x2a5b37){_0x4338e4=_0x4338e4-0x1bb;const _0xd99824=a282_0xd998();let _0x29dcf4=_0xd99824[_0x4338e4];return _0x29dcf4;}function a282_0xd998(){const _0x1c593c=['application/json','90uwroAq','entries','16XhlTtq','/skills/guides.json','replace','88879VTvpXu','132GEGLbT','skillTemplate','guides','utf-8','54xAVODv','.md','join','object','trimEnd','CDN\x20请求失败:\x20','extendContent','3503133SdstSX','.lovrabet/skill/guides','status','title','json','cache','17103yjmwLl','CDN\x20数据中缺少\x20skillTemplate','content','.lovrabet','lastUpdated','103064uGLftP','708789KEloEv','3342196uoxXBE','length','7391990BwtVQK'];a282_0xd998=function(){return _0x1c593c;};return a282_0xd998();}function getGuidesCdnUrl(){const _0x13d9f5=a282_0x29dc,_0x1fa736=getTemplateBaseUrl();return _0x1fa736+_0x13d9f5(0x1ce);}const CACHE_DIR=join(homedir(),a282_0x29a33c(0x1c3),a282_0x29a33c(0x1bf));export async function fetchGuidesFromCDN(){const _0xe1ec7e=a282_0x29a33c,_0x29cac=getGuidesCdnUrl(),_0x7b40b8=await fetch(_0x29cac,{'headers':{'Accept':_0xe1ec7e(0x1ca)}});if(!_0x7b40b8['ok'])throw new Error(_0xe1ec7e(0x1da)+_0x7b40b8[_0xe1ec7e(0x1bc)]+'\x20'+_0x7b40b8['statusText']);const _0xc41236=await _0x7b40b8[_0xe1ec7e(0x1be)]();if(!_0xc41236['guides']||typeof _0xc41236[_0xe1ec7e(0x1d3)]!==_0xe1ec7e(0x1d8))throw new Error('CDN\x20返回数据格式错误');return _0xc41236;}export function writeGuidesToProject(_0x597d79,_0x249673,_0x47ca26=a282_0x29a33c(0x1bb),_0x553358){const _0x4a716c=a282_0x29a33c,_0x2c62a9=join(_0x249673,_0x47ca26);mkdirSync(_0x2c62a9,{'recursive':!![]});for(const [_0x20a2d4,_0x11b76b]of Object['entries'](_0x597d79['guides'])){let _0x40f3bc=_0x11b76b[_0x4a716c(0x1c2)];_0x11b76b[_0x4a716c(0x1c4)]&&(_0x40f3bc=appendUpdateTime(_0x40f3bc,_0x11b76b[_0x4a716c(0x1c4)])),writeFileSync(join(_0x2c62a9,_0x20a2d4+_0x4a716c(0x1d6)),_0x40f3bc,_0x4a716c(0x1d4));}}export function appendUpdateTime(_0x6aa409,_0x1db228){const _0x1947ab=a282_0x29a33c;return _0x6aa409=_0x6aa409[_0x1947ab(0x1cf)](/\n*>更新时间:.*$/m,''),_0x6aa409['trimEnd']()+('\x0a\x0a>更新时间:'+_0x1db228);}export function getSkillTemplate(_0x14b6d4){const _0x56535e=a282_0x29a33c;return _0x14b6d4[_0x56535e(0x1d2)]?.['content']||'';}export function appendExtendContents(_0x12dacd,_0xdefb8b,_0x358219){const _0x2f559e=a282_0x29a33c,_0x3ebf6c=[];for(const [,_0x1fb06c]of Object[_0x2f559e(0x1cc)](_0xdefb8b[_0x2f559e(0x1d3)])){_0x1fb06c[_0x2f559e(0x1db)]&&_0x3ebf6c['push'](_0x1fb06c[_0x2f559e(0x1db)][_0x2f559e(0x1d9)]());}if(_0x3ebf6c[_0x2f559e(0x1c8)]===0x0)return _0x12dacd;return _0x12dacd[_0x2f559e(0x1d9)]()+'\x0a\x0a'+_0x3ebf6c[_0x2f559e(0x1d7)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4c1f54,_0x356817,_0x5c8d89){const _0x1ad13c=a282_0x29a33c,_0x5ab495=getSkillTemplate(_0x4c1f54);if(!_0x5ab495)throw new Error(_0x1ad13c(0x1c1));const _0x496d08=dirname(_0x356817);mkdirSync(_0x496d08,{'recursive':!![]});let _0x8230c4=_0x5ab495['replace'](/\{\{IDE_NAME\}\}/g,_0x5c8d89);_0x8230c4=appendExtendContents(_0x8230c4,_0x4c1f54),_0x4c1f54['skillTemplate'][_0x1ad13c(0x1c4)]&&(_0x8230c4=appendUpdateTime(_0x8230c4,_0x4c1f54[_0x1ad13c(0x1d2)][_0x1ad13c(0x1c4)])),writeFileSync(_0x356817,_0x8230c4,_0x1ad13c(0x1d4));}export async function installGuides(_0xf54ced){const _0x1b3eac=a282_0x29a33c,_0x548f5d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x548f5d,_0xf54ced),Object['keys'](_0x548f5d[_0x1b3eac(0x1d3)])[_0x1b3eac(0x1c8)];}export function getGuidesSummary(_0x33aecc){const _0x326392=a282_0x29a33c;return Object[_0x326392(0x1cc)](_0x33aecc[_0x326392(0x1d3)])['map'](([_0x519cd3,_0x456bf4])=>({'key':_0x519cd3,'title':_0x456bf4[_0x326392(0x1bd)],'path':_0x456bf4['path']}));}
@@ -1 +1 @@
1
- function a283_0x3b84(){const _0x59b752=['fetch','statusText','*\x20请求失败,','abort','2367176KEwkiw','headers','199229oxnjno','1463168dAmlEe','log','message','1820440xMbPsS','get','json','status','includes','text','application/json','476706jqdoXZ','1673NesuST','1227610hYuNhJ','TypeError','url','AbortError','36NVExlc','name','signal','ECONNRESET','5574YuQyiA','Request\x20failed','2DzULov','content-type'];a283_0x3b84=function(){return _0x59b752;};return a283_0x3b84();}(function(_0x1db312,_0x6c821b){const _0x5b2bd6=a283_0x7a25,_0x20e3e7=_0x1db312();while(!![]){try{const _0x5299f3=parseInt(_0x5b2bd6(0x183))/0x1+parseInt(_0x5b2bd6(0x17b))/0x2*(-parseInt(_0x5b2bd6(0x18e))/0x3)+parseInt(_0x5b2bd6(0x184))/0x4+parseInt(_0x5b2bd6(0x187))/0x5+-parseInt(_0x5b2bd6(0x198))/0x6*(-parseInt(_0x5b2bd6(0x18f))/0x7)+-parseInt(_0x5b2bd6(0x181))/0x8+-parseInt(_0x5b2bd6(0x194))/0x9*(parseInt(_0x5b2bd6(0x190))/0xa);if(_0x5299f3===_0x6c821b)break;else _0x20e3e7['push'](_0x20e3e7['shift']());}catch(_0x1b6390){_0x20e3e7['push'](_0x20e3e7['shift']());}}}(a283_0x3b84,0x321f1));function a283_0x7a25(_0x424066,_0x3d0edb){_0x424066=_0x424066-0x17a;const _0x3b84aa=a283_0x3b84();let _0x7a25fd=_0x3b84aa[_0x424066];return _0x7a25fd;}export async function httpRequest(_0x385f00,_0x480778={}){const _0x867548=a283_0x7a25,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x480778;let _0x19d441=null;for(let _0x16fae1=0x0;_0x16fae1<=retries;_0x16fae1++){try{const _0x164256=new AbortController(),_0x2b4640=setTimeout(()=>_0x164256[_0x867548(0x180)](),timeout),_0x5d84d8=await fetch(_0x385f00,{'headers':headers,'signal':_0x164256[_0x867548(0x196)]});clearTimeout(_0x2b4640);let _0x4aaf10;const _0x59c93a=_0x5d84d8[_0x867548(0x182)][_0x867548(0x188)](_0x867548(0x17c));return _0x59c93a?.['includes'](_0x867548(0x18d))?_0x4aaf10=await _0x5d84d8[_0x867548(0x189)]():_0x4aaf10=await _0x5d84d8[_0x867548(0x18c)](),{'ok':_0x5d84d8['ok'],'status':_0x5d84d8[_0x867548(0x18a)],'statusText':_0x5d84d8[_0x867548(0x17e)],'data':_0x4aaf10,'headers':_0x5d84d8[_0x867548(0x182)],'url':_0x5d84d8[_0x867548(0x192)],'text':()=>_0x5d84d8[_0x867548(0x18c)]()};}catch(_0x4aab3a){_0x19d441=_0x4aab3a instanceof Error?_0x4aab3a:new Error(String(_0x4aab3a));if(_0x16fae1===retries)break;if(shouldRetry(_0x4aab3a)){console[_0x867548(0x185)](_0x867548(0x17f)+retryDelay+'ms\x20后进行第\x20'+(_0x16fae1+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x19d441||new Error(_0x867548(0x17a));}function shouldRetry(_0x463314){const _0x439b39=a283_0x7a25;if(_0x463314 instanceof Error){if(_0x463314['name']===_0x439b39(0x193))return![];if(_0x463314[_0x439b39(0x195)]===_0x439b39(0x191)&&_0x463314[_0x439b39(0x186)][_0x439b39(0x18b)](_0x439b39(0x17d)))return!![];if(_0x463314[_0x439b39(0x186)][_0x439b39(0x18b)](_0x439b39(0x197)))return!![];if(_0x463314[_0x439b39(0x186)][_0x439b39(0x18b)]('ENOTFOUND'))return![];}return![];}function sleep(_0x16e057){return new Promise(_0x428b55=>setTimeout(_0x428b55,_0x16e057));}export function validateUrl(_0x5f183f){try{return new URL(_0x5f183f),!![];}catch{return![];}}
1
+ function a283_0x1629(){const _0x35ba27=['*\x20请求失败,','38SWXPIn','228DFFCGD','4093572QlsoBb','fetch','content-type','headers','statusText','includes','abort','3267671lYKcrw','\x20次重试...','message','957931zhvCyZ','3298985txIvxO','10FRxoTk','text','264172lympTV','application/json','TypeError','33034bPioQz','ECONNRESET','url','7kpCZWo','36yPDSLN','39JfAinC','AbortError','1148896rWaLxW','name','log'];a283_0x1629=function(){return _0x35ba27;};return a283_0x1629();}(function(_0x3411ba,_0x446d70){const _0x19db32=a283_0x7dd5,_0x5946d5=_0x3411ba();while(!![]){try{const _0x54581f=parseInt(_0x19db32(0x152))/0x1*(-parseInt(_0x19db32(0x13f))/0x2)+-parseInt(_0x19db32(0x139))/0x3*(-parseInt(_0x19db32(0x14f))/0x4)+-parseInt(_0x19db32(0x14c))/0x5+parseInt(_0x19db32(0x141))/0x6*(-parseInt(_0x19db32(0x137))/0x7)+-parseInt(_0x19db32(0x13b))/0x8*(-parseInt(_0x19db32(0x138))/0x9)+-parseInt(_0x19db32(0x14d))/0xa*(parseInt(_0x19db32(0x148))/0xb)+parseInt(_0x19db32(0x140))/0xc*(parseInt(_0x19db32(0x14b))/0xd);if(_0x54581f===_0x446d70)break;else _0x5946d5['push'](_0x5946d5['shift']());}catch(_0x16acbc){_0x5946d5['push'](_0x5946d5['shift']());}}}(a283_0x1629,0x8a416));function a283_0x7dd5(_0x24c4a4,_0x6a3a){_0x24c4a4=_0x24c4a4-0x137;const _0x1629b7=a283_0x1629();let _0x7dd513=_0x1629b7[_0x24c4a4];return _0x7dd513;}export async function httpRequest(_0x4b1c16,_0x2e3ce2={}){const _0x1c3eba=a283_0x7dd5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2e3ce2;let _0x29fa05=null;for(let _0x1c421b=0x0;_0x1c421b<=retries;_0x1c421b++){try{const _0x108f27=new AbortController(),_0x373557=setTimeout(()=>_0x108f27[_0x1c3eba(0x147)](),timeout),_0x195bad=await fetch(_0x4b1c16,{'headers':headers,'signal':_0x108f27['signal']});clearTimeout(_0x373557);let _0x630aef;const _0x248746=_0x195bad[_0x1c3eba(0x144)]['get'](_0x1c3eba(0x143));return _0x248746?.['includes'](_0x1c3eba(0x150))?_0x630aef=await _0x195bad['json']():_0x630aef=await _0x195bad[_0x1c3eba(0x14e)](),{'ok':_0x195bad['ok'],'status':_0x195bad['status'],'statusText':_0x195bad[_0x1c3eba(0x145)],'data':_0x630aef,'headers':_0x195bad[_0x1c3eba(0x144)],'url':_0x195bad[_0x1c3eba(0x154)],'text':()=>_0x195bad[_0x1c3eba(0x14e)]()};}catch(_0x36344f){_0x29fa05=_0x36344f instanceof Error?_0x36344f:new Error(String(_0x36344f));if(_0x1c421b===retries)break;if(shouldRetry(_0x36344f)){console[_0x1c3eba(0x13d)](_0x1c3eba(0x13e)+retryDelay+'ms\x20后进行第\x20'+(_0x1c421b+0x1)+_0x1c3eba(0x149)),await sleep(retryDelay);continue;}else break;}}throw _0x29fa05||new Error('Request\x20failed');}function shouldRetry(_0x4d8178){const _0x2296cf=a283_0x7dd5;if(_0x4d8178 instanceof Error){if(_0x4d8178[_0x2296cf(0x13c)]===_0x2296cf(0x13a))return![];if(_0x4d8178[_0x2296cf(0x13c)]===_0x2296cf(0x151)&&_0x4d8178[_0x2296cf(0x14a)]['includes'](_0x2296cf(0x142)))return!![];if(_0x4d8178[_0x2296cf(0x14a)][_0x2296cf(0x146)](_0x2296cf(0x153)))return!![];if(_0x4d8178[_0x2296cf(0x14a)][_0x2296cf(0x146)]('ENOTFOUND'))return![];}return![];}function sleep(_0x5edf13){return new Promise(_0xfc0f9f=>setTimeout(_0xfc0f9f,_0x5edf13));}export function validateUrl(_0x32b13d){try{return new URL(_0x32b13d),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4f11b3,_0x3c6116){const _0x239b19=a284_0x2ffd,_0x2cc845=_0x4f11b3();while(!![]){try{const _0x8ae7b9=parseInt(_0x239b19(0x147))/0x1+parseInt(_0x239b19(0x13f))/0x2*(-parseInt(_0x239b19(0x149))/0x3)+-parseInt(_0x239b19(0x142))/0x4*(parseInt(_0x239b19(0x145))/0x5)+-parseInt(_0x239b19(0x141))/0x6+parseInt(_0x239b19(0x14a))/0x7*(-parseInt(_0x239b19(0x146))/0x8)+-parseInt(_0x239b19(0x13b))/0x9*(parseInt(_0x239b19(0x13e))/0xa)+parseInt(_0x239b19(0x13a))/0xb;if(_0x8ae7b9===_0x3c6116)break;else _0x2cc845['push'](_0x2cc845['shift']());}catch(_0x4e908e){_0x2cc845['push'](_0x2cc845['shift']());}}}(a284_0xc501,0xeaf8e));function env(_0x154fb5){return process.env[`RABETBASE_${_0x154fb5}`]||process.env[`LOVRABET_${_0x154fb5}`]||undefined;}function a284_0xc501(){const _0x434912=['9740304yjBtHZ','32viRIid','stdin','nonInteractive','308145aMQgKo','40eMfACB','39456ZcsQCS','setRawMode','2367SgyKDg','1703604LXHSyb','79011163EqKMyE','293049gyWbRi','true','isTTY','380QoRonH','4282MeWluD','stdout'];a284_0xc501=function(){return _0x434912;};return a284_0xc501();}function a284_0x2ffd(_0x4d9ccc,_0x3d2ad1){_0x4d9ccc=_0x4d9ccc-0x13a;const _0xc50169=a284_0xc501();let _0x2ffd8d=_0xc50169[_0x4d9ccc];return _0x2ffd8d;}export function isNonInteractive(_0x41d9bf){const _0x5d5bf4=a284_0x2ffd;return!!(_0x41d9bf[_0x5d5bf4(0x144)]||_0x41d9bf['ci']||env('CI')==='true'||process.env.CI===_0x5d5bf4(0x13c)||!process[_0x5d5bf4(0x140)][_0x5d5bf4(0x13d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4d0d45=a284_0x2ffd;if(!process[_0x4d0d45(0x143)]['isTTY'])return![];try{const _0x2e4d7c=process[_0x4d0d45(0x143)]['isRaw'];return process[_0x4d0d45(0x143)][_0x4d0d45(0x148)](!![]),process['stdin'][_0x4d0d45(0x148)](_0x2e4d7c??![]),!![];}catch{return![];}}
1
+ function a284_0x2985(){const _0x4ae3cd=['stdin','1640002cCrSbO','nonInteractive','true','413056tDFgFm','1797WWFPgo','isRaw','5752186IBPVrM','isTTY','setRawMode','2748807BxhQGt','12585kxtWFg','10JEVyUy','16JgUSlq','587440oYiHoO','146QBmkaW','828sQmNcQ'];a284_0x2985=function(){return _0x4ae3cd;};return a284_0x2985();}(function(_0x30983d,_0x41ba9e){const _0x3e72fc=a284_0x2618,_0x1bcf0b=_0x30983d();while(!![]){try{const _0x1ba22b=-parseInt(_0x3e72fc(0x93))/0x1+parseInt(_0x3e72fc(0x9e))/0x2*(parseInt(_0x3e72fc(0x94))/0x3)+parseInt(_0x3e72fc(0x9d))/0x4+parseInt(_0x3e72fc(0x9a))/0x5*(-parseInt(_0x3e72fc(0x9f))/0x6)+-parseInt(_0x3e72fc(0xa1))/0x7+-parseInt(_0x3e72fc(0x9c))/0x8*(-parseInt(_0x3e72fc(0x99))/0x9)+parseInt(_0x3e72fc(0x9b))/0xa*(parseInt(_0x3e72fc(0x96))/0xb);if(_0x1ba22b===_0x41ba9e)break;else _0x1bcf0b['push'](_0x1bcf0b['shift']());}catch(_0x232504){_0x1bcf0b['push'](_0x1bcf0b['shift']());}}}(a284_0x2985,0x507c7));function env(_0x457bf7){return process.env[`RABETBASE_${_0x457bf7}`]||process.env[`LOVRABET_${_0x457bf7}`]||undefined;}export function isNonInteractive(_0x1cd35c){const _0x33d4d6=a284_0x2618;return!!(_0x1cd35c[_0x33d4d6(0xa2)]||_0x1cd35c['ci']||env('CI')===_0x33d4d6(0xa3)||process.env.CI===_0x33d4d6(0xa3)||!process['stdout'][_0x33d4d6(0x97)]||!isStdinRawModeSupported());}function a284_0x2618(_0x5a075f,_0x1b2025){_0x5a075f=_0x5a075f-0x93;const _0x29857c=a284_0x2985();let _0x261818=_0x29857c[_0x5a075f];return _0x261818;}function isStdinRawModeSupported(){const _0x4eb0e4=a284_0x2618;if(!process[_0x4eb0e4(0xa0)][_0x4eb0e4(0x97)])return![];try{const _0x5a6f70=process[_0x4eb0e4(0xa0)][_0x4eb0e4(0x95)];return process[_0x4eb0e4(0xa0)][_0x4eb0e4(0x98)](!![]),process[_0x4eb0e4(0xa0)]['setRawMode'](_0x5a6f70??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a285_0x107d4b=a285_0x5d2e;(function(_0x4cc890,_0x3f4848){const _0x3902ad=a285_0x5d2e,_0x177748=_0x4cc890();while(!![]){try{const _0x1a6559=parseInt(_0x3902ad(0xf3))/0x1+parseInt(_0x3902ad(0x101))/0x2*(-parseInt(_0x3902ad(0xd8))/0x3)+-parseInt(_0x3902ad(0xec))/0x4*(-parseInt(_0x3902ad(0xd6))/0x5)+-parseInt(_0x3902ad(0xe5))/0x6+parseInt(_0x3902ad(0x105))/0x7*(parseInt(_0x3902ad(0xf1))/0x8)+-parseInt(_0x3902ad(0xf2))/0x9*(-parseInt(_0x3902ad(0xdc))/0xa)+parseInt(_0x3902ad(0x108))/0xb*(-parseInt(_0x3902ad(0xd7))/0xc);if(_0x1a6559===_0x3f4848)break;else _0x177748['push'](_0x177748['shift']());}catch(_0x7984a0){_0x177748['push'](_0x177748['shift']());}}}(a285_0x1ffe,0xeb682));import a285_0x5c3e77 from'winston';import a285_0x2c899c from'node:fs';import a285_0xa93cba from'node:path';function a285_0x1ffe(){const _0x2f5130=['655306RgPbjT','stringify','printf','message','完成:\x20','createLogger','timestamp','success','开始执行:\x20','command','currentRawCommand','dirname','parse','warn','4NqeWbm','readLogs','trim','format','133mXBMBw','logFilePath','duration','1933019nAxlZx','blue','error','join','writeFileSync','details','4952075Wkfxqz','12oilRpR','2083986dUpMRd','addColors','logTask','now','110530WFMTtL','map','log','toISOString','Failed\x20to\x20read\x20logs:','green','initWinstonLogger','split','setLogPath','5889636kAoCGM','File','.lovrabet.log','combine','info','setRawCommand','winstonLogger','4QuaNEE','Failed\x20to\x20clear\x20logs:','utf8','existsSync','mkdirSync','352520JDOXjq','837uTbHRY'];a285_0x1ffe=function(){return _0x2f5130;};return a285_0x1ffe();}function a285_0x5d2e(_0x4de151,_0xa5cba6){_0x4de151=_0x4de151-0xd5;const _0x1ffebb=a285_0x1ffe();let _0x5d2e33=_0x1ffebb[_0x4de151];return _0x5d2e33;}class Logger{['winstonLogger'];[a285_0x107d4b(0x106)];[a285_0x107d4b(0xfd)]='';constructor(){const _0x17c181=a285_0x107d4b;this[_0x17c181(0x106)]='';}[a285_0x107d4b(0xea)](_0xe213dc){const _0x5a8483=a285_0x107d4b;this[_0x5a8483(0xfd)]=_0xe213dc;}['initWinstonLogger'](){const _0x2061a6=a285_0x107d4b,_0x487e3d=a285_0xa93cba[_0x2061a6(0xfe)](this[_0x2061a6(0x106)]);!a285_0x2c899c['existsSync'](_0x487e3d)&&a285_0x2c899c[_0x2061a6(0xf0)](_0x487e3d,{'recursive':!![]});const _0x23e465=a285_0x5c3e77['format'][_0x2061a6(0xe8)](a285_0x5c3e77[_0x2061a6(0x104)]['timestamp'](),a285_0x5c3e77[_0x2061a6(0x104)]['errors']({'stack':!![]}),a285_0x5c3e77[_0x2061a6(0x104)][_0x2061a6(0xf5)](_0x5407a9=>{const _0x4d778d=_0x2061a6,_0x1fff87={'timestamp':_0x5407a9[_0x4d778d(0xf9)]||new Date()[_0x4d778d(0xdf)](),'level':_0x5407a9['level']||'info','command':_0x5407a9[_0x4d778d(0xfc)]||'unknown','rawCommand':_0x5407a9['rawCommand']||this[_0x4d778d(0xfd)]||undefined,'message':_0x5407a9['message']||'','duration':_0x5407a9[_0x4d778d(0x107)]||undefined,'details':_0x5407a9[_0x4d778d(0xd5)]||undefined};return JSON[_0x4d778d(0xf4)](_0x1fff87);}));this['winstonLogger']=a285_0x5c3e77[_0x2061a6(0xf8)]({'level':_0x2061a6(0xe9),'format':_0x23e465,'transports':[new a285_0x5c3e77['transports'][(_0x2061a6(0xe6))]({'filename':this[_0x2061a6(0x106)],'level':'info'})],'silent':![]}),a285_0x5c3e77[_0x2061a6(0xd9)]({'success':_0x2061a6(0xe1),'error':'red','warn':'yellow','info':_0x2061a6(0x109)});}[a285_0x107d4b(0xe4)](_0x4d2a19){const _0x36a8fa=a285_0x107d4b;this['logFilePath']=a285_0xa93cba[_0x36a8fa(0x10b)](_0x4d2a19,_0x36a8fa(0xe7)),this[_0x36a8fa(0xeb)]&&this[_0x36a8fa(0xeb)]['clear'](),this[_0x36a8fa(0xe2)]();}[a285_0x107d4b(0xe9)](_0x4392b2,_0x1ac63c,_0x11ef1f){const _0x4c1fa8=a285_0x107d4b;if(!this[_0x4c1fa8(0x106)]||!this[_0x4c1fa8(0xeb)])return;this['winstonLogger'][_0x4c1fa8(0xe9)](_0x1ac63c,{'command':_0x4392b2,'details':_0x11ef1f});}['success'](_0x1916d1,_0x348b3e,_0xce80b3,_0x1d8584){const _0x1fa324=a285_0x107d4b;if(!this[_0x1fa324(0x106)]||!this[_0x1fa324(0xeb)])return;this[_0x1fa324(0xeb)][_0x1fa324(0xde)](_0x1fa324(0xe9),_0x348b3e,{'level':'success','command':_0x1916d1,'duration':_0xce80b3,'details':_0x1d8584});}[a285_0x107d4b(0x10a)](_0x3c8387,_0x17babc,_0x4c1454){const _0xfb4c14=a285_0x107d4b;if(!this['logFilePath']||!this[_0xfb4c14(0xeb)])return;this[_0xfb4c14(0xeb)][_0xfb4c14(0x10a)](_0x17babc,{'command':_0x3c8387,'details':_0x4c1454});}[a285_0x107d4b(0x100)](_0x793f50,_0x266a75,_0x44e7c2){const _0x2b93b7=a285_0x107d4b;if(!this['logFilePath']||!this[_0x2b93b7(0xeb)])return;this[_0x2b93b7(0xeb)][_0x2b93b7(0x100)](_0x266a75,{'command':_0x793f50,'details':_0x44e7c2});}async[a285_0x107d4b(0xda)](_0x399e6e,_0x5530f3,_0xd7a72a){const _0x104528=a285_0x107d4b,_0x7e6582=Date[_0x104528(0xdb)]();this[_0x104528(0xe9)](_0x399e6e,_0x104528(0xfb)+_0x5530f3);try{const _0x247707=await _0xd7a72a(),_0xc17c7a=Date['now']()-_0x7e6582;return this[_0x104528(0xfa)](_0x399e6e,_0x104528(0xf7)+_0x5530f3,_0xc17c7a),_0x247707;}catch(_0x52ba86){const _0xdcfeeb=Date[_0x104528(0xdb)]()-_0x7e6582;this[_0x104528(0x10a)](_0x399e6e,'失败:\x20'+_0x5530f3,{'error':_0x52ba86 instanceof Error?_0x52ba86[_0x104528(0xf6)]:String(_0x52ba86),'duration':_0xdcfeeb});throw _0x52ba86;}}[a285_0x107d4b(0x102)](){const _0x59cd1b=a285_0x107d4b;try{if(!a285_0x2c899c[_0x59cd1b(0xef)](this[_0x59cd1b(0x106)]))return[];const _0x2a1d1e=a285_0x2c899c['readFileSync'](this['logFilePath'],_0x59cd1b(0xee));return _0x2a1d1e[_0x59cd1b(0xe3)]('\x0a')['filter'](_0x597295=>_0x597295[_0x59cd1b(0x103)]())[_0x59cd1b(0xdd)](_0x3641d9=>JSON[_0x59cd1b(0xff)](_0x3641d9));}catch(_0x26117c){return console[_0x59cd1b(0x100)](_0x59cd1b(0xe0),_0x26117c),[];}}['clearLogs'](){const _0x28d686=a285_0x107d4b;try{a285_0x2c899c[_0x28d686(0xef)](this['logFilePath'])&&a285_0x2c899c[_0x28d686(0x10c)](this[_0x28d686(0x106)],'',_0x28d686(0xee));}catch(_0x272ffb){console[_0x28d686(0x100)](_0x28d686(0xed),_0x272ffb);}}['getWinstonInstance'](){const _0x57d311=a285_0x107d4b;return this[_0x57d311(0xeb)];}}export const logger=new Logger();
1
+ const a285_0x1e8cd5=a285_0x8028;function a285_0x2588(){const _0x59c018=['success','combine','initWinstonLogger','currentRawCommand','winstonLogger','info','green','utf8','logFilePath','join','5322726zHufwl','stringify','File','.lovrabet.log','1415XckPcl','map','Failed\x20to\x20clear\x20logs:','clear','details','800206IcEmtI','printf','dirname','Failed\x20to\x20read\x20logs:','readLogs','开始执行:\x20','warn','yellow','existsSync','setRawCommand','now','format','timestamp','1949568meCkCX','level','clearLogs','writeFileSync','trim','unknown','3704538VYAWan','readFileSync','parse','split','5482260uBPItf','rawCommand','79641KUrxtw','command','完成:\x20','errors','toISOString','mkdirSync','message','25422fLbGSs','transports','red','logTask','error','7JzzNkD','log','4ZHicnq','setLogPath'];a285_0x2588=function(){return _0x59c018;};return a285_0x2588();}(function(_0xf61185,_0x3d876d){const _0x2f4fa8=a285_0x8028,_0x12adf1=_0xf61185();while(!![]){try{const _0x4c8f94=parseInt(_0x2f4fa8(0x14a))/0x1+-parseInt(_0x2f4fa8(0x131))/0x2+-parseInt(_0x2f4fa8(0x144))/0x3*(-parseInt(_0x2f4fa8(0x158))/0x4)+-parseInt(_0x2f4fa8(0x168))/0x5*(-parseInt(_0x2f4fa8(0x151))/0x6)+-parseInt(_0x2f4fa8(0x156))/0x7*(parseInt(_0x2f4fa8(0x13e))/0x8)+-parseInt(_0x2f4fa8(0x164))/0x9+-parseInt(_0x2f4fa8(0x148))/0xa;if(_0x4c8f94===_0x3d876d)break;else _0x12adf1['push'](_0x12adf1['shift']());}catch(_0x357eb8){_0x12adf1['push'](_0x12adf1['shift']());}}}(a285_0x2588,0xb2407));import a285_0x2fc7c1 from'winston';import a285_0x565f5f from'node:fs';function a285_0x8028(_0x2ee44b,_0x519338){_0x2ee44b=_0x2ee44b-0x12d;const _0x2588a5=a285_0x2588();let _0x8028df=_0x2588a5[_0x2ee44b];return _0x8028df;}import a285_0x25b41c from'node:path';class Logger{[a285_0x1e8cd5(0x15e)];['logFilePath'];[a285_0x1e8cd5(0x15d)]='';constructor(){const _0x378e94=a285_0x1e8cd5;this[_0x378e94(0x162)]='';}[a285_0x1e8cd5(0x13a)](_0x215dc2){const _0x57fdae=a285_0x1e8cd5;this[_0x57fdae(0x15d)]=_0x215dc2;}[a285_0x1e8cd5(0x15c)](){const _0x118135=a285_0x1e8cd5,_0xde80bc=a285_0x25b41c[_0x118135(0x133)](this[_0x118135(0x162)]);!a285_0x565f5f[_0x118135(0x139)](_0xde80bc)&&a285_0x565f5f[_0x118135(0x14f)](_0xde80bc,{'recursive':!![]});const _0x5ae721=a285_0x2fc7c1[_0x118135(0x13c)][_0x118135(0x15b)](a285_0x2fc7c1[_0x118135(0x13c)][_0x118135(0x13d)](),a285_0x2fc7c1[_0x118135(0x13c)][_0x118135(0x14d)]({'stack':!![]}),a285_0x2fc7c1[_0x118135(0x13c)][_0x118135(0x132)](_0x124f6a=>{const _0x1d8eb9=_0x118135,_0x5d300c={'timestamp':_0x124f6a[_0x1d8eb9(0x13d)]||new Date()[_0x1d8eb9(0x14e)](),'level':_0x124f6a[_0x1d8eb9(0x13f)]||_0x1d8eb9(0x15f),'command':_0x124f6a[_0x1d8eb9(0x14b)]||_0x1d8eb9(0x143),'rawCommand':_0x124f6a[_0x1d8eb9(0x149)]||this['currentRawCommand']||undefined,'message':_0x124f6a[_0x1d8eb9(0x150)]||'','duration':_0x124f6a['duration']||undefined,'details':_0x124f6a[_0x1d8eb9(0x130)]||undefined};return JSON[_0x1d8eb9(0x165)](_0x5d300c);}));this['winstonLogger']=a285_0x2fc7c1['createLogger']({'level':_0x118135(0x15f),'format':_0x5ae721,'transports':[new a285_0x2fc7c1[(_0x118135(0x152))][(_0x118135(0x166))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a285_0x2fc7c1['addColors']({'success':_0x118135(0x160),'error':_0x118135(0x153),'warn':_0x118135(0x138),'info':'blue'});}[a285_0x1e8cd5(0x159)](_0x106889){const _0x1df1df=a285_0x1e8cd5;this['logFilePath']=a285_0x25b41c[_0x1df1df(0x163)](_0x106889,_0x1df1df(0x167)),this[_0x1df1df(0x15e)]&&this[_0x1df1df(0x15e)][_0x1df1df(0x12f)](),this[_0x1df1df(0x15c)]();}[a285_0x1e8cd5(0x15f)](_0x1f5d93,_0x101f84,_0x1439e7){const _0x48cd2a=a285_0x1e8cd5;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x48cd2a(0x15e)][_0x48cd2a(0x15f)](_0x101f84,{'command':_0x1f5d93,'details':_0x1439e7});}[a285_0x1e8cd5(0x15a)](_0x413d2b,_0x415b78,_0x4609e4,_0x33c2b6){const _0x558428=a285_0x1e8cd5;if(!this[_0x558428(0x162)]||!this[_0x558428(0x15e)])return;this['winstonLogger'][_0x558428(0x157)](_0x558428(0x15f),_0x415b78,{'level':_0x558428(0x15a),'command':_0x413d2b,'duration':_0x4609e4,'details':_0x33c2b6});}['error'](_0x429bbe,_0x41f4d2,_0x202b2e){const _0x4bf2b0=a285_0x1e8cd5;if(!this['logFilePath']||!this[_0x4bf2b0(0x15e)])return;this['winstonLogger']['error'](_0x41f4d2,{'command':_0x429bbe,'details':_0x202b2e});}[a285_0x1e8cd5(0x137)](_0x328b6b,_0x41c462,_0x4f4f1e){const _0x56675=a285_0x1e8cd5;if(!this[_0x56675(0x162)]||!this[_0x56675(0x15e)])return;this[_0x56675(0x15e)][_0x56675(0x137)](_0x41c462,{'command':_0x328b6b,'details':_0x4f4f1e});}async[a285_0x1e8cd5(0x154)](_0x5e40ea,_0x5e61be,_0x550474){const _0x1377bf=a285_0x1e8cd5,_0x4b624c=Date[_0x1377bf(0x13b)]();this[_0x1377bf(0x15f)](_0x5e40ea,_0x1377bf(0x136)+_0x5e61be);try{const _0x2ae194=await _0x550474(),_0x272f21=Date[_0x1377bf(0x13b)]()-_0x4b624c;return this[_0x1377bf(0x15a)](_0x5e40ea,_0x1377bf(0x14c)+_0x5e61be,_0x272f21),_0x2ae194;}catch(_0x16664d){const _0x1628ad=Date[_0x1377bf(0x13b)]()-_0x4b624c;this[_0x1377bf(0x155)](_0x5e40ea,'失败:\x20'+_0x5e61be,{'error':_0x16664d instanceof Error?_0x16664d[_0x1377bf(0x150)]:String(_0x16664d),'duration':_0x1628ad});throw _0x16664d;}}[a285_0x1e8cd5(0x135)](){const _0x55f045=a285_0x1e8cd5;try{if(!a285_0x565f5f[_0x55f045(0x139)](this[_0x55f045(0x162)]))return[];const _0x5b68a1=a285_0x565f5f[_0x55f045(0x145)](this[_0x55f045(0x162)],'utf8');return _0x5b68a1[_0x55f045(0x147)]('\x0a')['filter'](_0x4b5cca=>_0x4b5cca[_0x55f045(0x142)]())[_0x55f045(0x12d)](_0x4f4e12=>JSON[_0x55f045(0x146)](_0x4f4e12));}catch(_0x183223){return console[_0x55f045(0x137)](_0x55f045(0x134),_0x183223),[];}}[a285_0x1e8cd5(0x140)](){const _0x3b48a9=a285_0x1e8cd5;try{a285_0x565f5f['existsSync'](this[_0x3b48a9(0x162)])&&a285_0x565f5f[_0x3b48a9(0x141)](this[_0x3b48a9(0x162)],'',_0x3b48a9(0x161));}catch(_0x1e1fa0){console[_0x3b48a9(0x137)](_0x3b48a9(0x12e),_0x1e1fa0);}}['getWinstonInstance'](){const _0x468b51=a285_0x1e8cd5;return this[_0x468b51(0x15e)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x1fed7f,_0x175e31){const _0x7dbe4f=a286_0x2117,_0x1d1f86=_0x1fed7f();while(!![]){try{const _0x2503d7=-parseInt(_0x7dbe4f(0x136))/0x1*(parseInt(_0x7dbe4f(0x138))/0x2)+-parseInt(_0x7dbe4f(0x134))/0x3*(parseInt(_0x7dbe4f(0x135))/0x4)+parseInt(_0x7dbe4f(0x13d))/0x5*(parseInt(_0x7dbe4f(0x133))/0x6)+-parseInt(_0x7dbe4f(0x13b))/0x7+parseInt(_0x7dbe4f(0x137))/0x8*(parseInt(_0x7dbe4f(0x12e))/0x9)+parseInt(_0x7dbe4f(0x13a))/0xa+-parseInt(_0x7dbe4f(0x12f))/0xb*(-parseInt(_0x7dbe4f(0x131))/0xc);if(_0x2503d7===_0x175e31)break;else _0x1d1f86['push'](_0x1d1f86['shift']());}catch(_0x1d4e34){_0x1d1f86['push'](_0x1d1f86['shift']());}}}(a286_0x2a60,0x7a1e1));function a286_0x2a60(){const _0x26bf76=['24lBIRzZ','--params\x20must\x20be\x20a\x20JSON\x20object','5400414nZXQNE','705210enFYAW','8hCWrKV','352POFCep','1096NZRWOe','4432qPTJMq','isArray','3478950jLqsJm','4578238UFveYy','object','5KQlsZy','validation','48825bTooth','2272655cUwXVn','Invalid\x20JSON\x20for\x20--params:\x20'];a286_0x2a60=function(){return _0x26bf76;};return a286_0x2a60();}function a286_0x2117(_0x233130,_0x3d5751){_0x233130=_0x233130-0x12d;const _0x2a60a3=a286_0x2a60();let _0x211740=_0x2a60a3[_0x233130];return _0x211740;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4bb25d){const _0x17bb22=a286_0x2117;if(!_0x4bb25d)return undefined;let _0x3fd92d;try{_0x3fd92d=JSON['parse'](_0x4bb25d);}catch{throw CliErrors[_0x17bb22(0x12d)](_0x17bb22(0x130)+_0x4bb25d);}if(!_0x3fd92d||typeof _0x3fd92d!==_0x17bb22(0x13c)||Array[_0x17bb22(0x139)](_0x3fd92d))throw CliErrors[_0x17bb22(0x12d)](_0x17bb22(0x132),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3fd92d;}
1
+ (function(_0x4dd28e,_0x237b78){const _0x2e9b02=a286_0x3a80,_0x3ba484=_0x4dd28e();while(!![]){try{const _0x36e3d5=parseInt(_0x2e9b02(0x151))/0x1+-parseInt(_0x2e9b02(0x14a))/0x2+parseInt(_0x2e9b02(0x14e))/0x3*(-parseInt(_0x2e9b02(0x14f))/0x4)+-parseInt(_0x2e9b02(0x148))/0x5*(-parseInt(_0x2e9b02(0x147))/0x6)+-parseInt(_0x2e9b02(0x146))/0x7+-parseInt(_0x2e9b02(0x150))/0x8+parseInt(_0x2e9b02(0x14b))/0x9*(parseInt(_0x2e9b02(0x153))/0xa);if(_0x36e3d5===_0x237b78)break;else _0x3ba484['push'](_0x3ba484['shift']());}catch(_0x2b65e2){_0x3ba484['push'](_0x3ba484['shift']());}}}(a286_0x28d8,0xb5135));import{CliErrors}from'../errors.js';function a286_0x3a80(_0x3127c4,_0x50a6f7){_0x3127c4=_0x3127c4-0x146;const _0x28d824=a286_0x28d8();let _0x3a8042=_0x28d824[_0x3127c4];return _0x3a8042;}function a286_0x28d8(){const _0x59a019=['6569759YguMcJ','132nbDCUV','410vCgKvS','validation','1056898DaGMvQ','99aTwMJe','object','parse','3pSZthu','2120348ZZMpdk','1288488iSpfpK','398826VQrWUu','isArray','2271990HjbgIg'];a286_0x28d8=function(){return _0x59a019;};return a286_0x28d8();}export function parseJsonParams(_0x585a31){const _0x48d67d=a286_0x3a80;if(!_0x585a31)return undefined;let _0x59d768;try{_0x59d768=JSON[_0x48d67d(0x14d)](_0x585a31);}catch{throw CliErrors[_0x48d67d(0x149)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x585a31);}if(!_0x59d768||typeof _0x59d768!==_0x48d67d(0x14c)||Array[_0x48d67d(0x152)](_0x59d768))throw CliErrors[_0x48d67d(0x149)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x59d768;}
@@ -1 +1 @@
1
- const a287_0x3ca004=a287_0x582b;function a287_0x1e9e(){const _0x100bae=['1953MSULim','11tGAqus','278136pDAlgH','4IwGnou','152XIkejY','1470970twrJJE','356849TCsvod','63CSdcxV','14910vatnHH','836912NQWWsH','133525ZaaSPg','win32','7594680cRKPXo','.cmd'];a287_0x1e9e=function(){return _0x100bae;};return a287_0x1e9e();}(function(_0x3fdc65,_0x3ed2c0){const _0x1c26cc=a287_0x582b,_0x4de467=_0x3fdc65();while(!![]){try{const _0x5ddf30=parseInt(_0x1c26cc(0x14b))/0x1+-parseInt(_0x1c26cc(0x156))/0x2*(-parseInt(_0x1c26cc(0x155))/0x3)+parseInt(_0x1c26cc(0x157))/0x4*(-parseInt(_0x1c26cc(0x14f))/0x5)+-parseInt(_0x1c26cc(0x14d))/0x6*(parseInt(_0x1c26cc(0x153))/0x7)+parseInt(_0x1c26cc(0x14e))/0x8+parseInt(_0x1c26cc(0x14c))/0x9*(parseInt(_0x1c26cc(0x158))/0xa)+-parseInt(_0x1c26cc(0x154))/0xb*(-parseInt(_0x1c26cc(0x151))/0xc);if(_0x5ddf30===_0x3ed2c0)break;else _0x4de467['push'](_0x4de467['shift']());}catch(_0x13a15e){_0x4de467['push'](_0x4de467['shift']());}}}(a287_0x1e9e,0x92d07));export const isWindows=process['platform']===a287_0x3ca004(0x150);function a287_0x582b(_0x645d14,_0x2057a8){_0x645d14=_0x645d14-0x14b;const _0x1e9e60=a287_0x1e9e();let _0x582b7f=_0x1e9e60[_0x645d14];return _0x582b7f;}export function resolveNpmBin(_0x205d37){const _0x32cdd4=a287_0x3ca004;return isWindows?_0x205d37+_0x32cdd4(0x152):_0x205d37;}
1
+ const a287_0x6ebeb9=a287_0x1a3d;function a287_0x1a3d(_0x465d1f,_0x5d9af1){_0x465d1f=_0x465d1f-0x13e;const _0x17af2f=a287_0x17af();let _0x1a3d5b=_0x17af2f[_0x465d1f];return _0x1a3d5b;}(function(_0xb0793e,_0xdbaab4){const _0x1bfe61=a287_0x1a3d,_0x4c2e87=_0xb0793e();while(!![]){try{const _0x489dfe=parseInt(_0x1bfe61(0x145))/0x1+parseInt(_0x1bfe61(0x142))/0x2*(parseInt(_0x1bfe61(0x146))/0x3)+-parseInt(_0x1bfe61(0x140))/0x4+parseInt(_0x1bfe61(0x148))/0x5+-parseInt(_0x1bfe61(0x13f))/0x6*(-parseInt(_0x1bfe61(0x143))/0x7)+-parseInt(_0x1bfe61(0x147))/0x8+-parseInt(_0x1bfe61(0x144))/0x9;if(_0x489dfe===_0xdbaab4)break;else _0x4c2e87['push'](_0x4c2e87['shift']());}catch(_0x41bad3){_0x4c2e87['push'](_0x4c2e87['shift']());}}}(a287_0x17af,0x8cbbc));export const isWindows=process['platform']===a287_0x6ebeb9(0x141);export function resolveNpmBin(_0x269e9a){const _0x10eec5=a287_0x6ebeb9;return isWindows?_0x269e9a+_0x10eec5(0x13e):_0x269e9a;}function a287_0x17af(){const _0x5271b1=['win32','157286GoiyCK','28UlkJfa','13747437kOJMfj','1005267BaLYgm','15DIfcVg','2343024ZHJrJC','2838080rFDPyx','.cmd','1325496XaXIBs','1811788vaMsiM'];a287_0x17af=function(){return _0x5271b1;};return a287_0x17af();}
@@ -1 +1 @@
1
- const a288_0x2b0d42=a288_0x718b;function a288_0x4a7f(){const _0x151127=['lastUpdated','60060bTVzGV','33oKjUEn','string','CDN\x20请求失败:\x20','2484JyWStp','/rules/rules.json','status','10375Mpfhwe','1158247weaQgK','content','44464ljqkVk','application/json','utf-8','13125390cAZvAx','json','../../templates/rules/lovrabet_rules.mdc.tpl','1304901CNdivN','CDN\x20返回数据格式错误','416XKLxmb','agents.md','.cursor/rules','669822DBQhjR'];a288_0x4a7f=function(){return _0x151127;};return a288_0x4a7f();}(function(_0x50dcd8,_0x1b9c57){const _0x39599e=a288_0x718b,_0x122785=_0x50dcd8();while(!![]){try{const _0x5d54ea=-parseInt(_0x39599e(0x1d2))/0x1+parseInt(_0x39599e(0x1c8))/0x2+-parseInt(_0x39599e(0x1cb))/0x3*(parseInt(_0x39599e(0x1d4))/0x4)+parseInt(_0x39599e(0x1d1))/0x5*(parseInt(_0x39599e(0x1ce))/0x6)+-parseInt(_0x39599e(0x1ca))/0x7*(parseInt(_0x39599e(0x1dc))/0x8)+parseInt(_0x39599e(0x1da))/0x9+parseInt(_0x39599e(0x1d7))/0xa;if(_0x5d54ea===_0x1b9c57)break;else _0x122785['push'](_0x122785['shift']());}catch(_0x3a5eb1){_0x122785['push'](_0x122785['shift']());}}}(a288_0x4a7f,0xe1c86));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 _0x4f6b51=a288_0x718b,_0x58b545=getTemplateBaseUrl();return _0x58b545+_0x4f6b51(0x1cf);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a288_0x2b0d42(0x1d9));export async function fetchRulesFromCDN(){const _0x349af8=a288_0x2b0d42,_0x292700=getRulesCdnUrl(),_0x5511a2=await fetch(_0x292700,{'headers':{'Accept':_0x349af8(0x1d5)}});if(!_0x5511a2['ok'])throw new Error(_0x349af8(0x1cd)+_0x5511a2[_0x349af8(0x1d0)]+'\x20'+_0x5511a2['statusText']);const _0x3ed2f4=await _0x5511a2[_0x349af8(0x1d8)]();if(!_0x3ed2f4[_0x349af8(0x1d3)]||typeof _0x3ed2f4[_0x349af8(0x1d3)]!==_0x349af8(0x1cc))throw new Error(_0x349af8(0x1db));return _0x3ed2f4;}function a288_0x718b(_0x299940,_0x2db24f){_0x299940=_0x299940-0x1c7;const _0x4a7f3b=a288_0x4a7f();let _0x718b6d=_0x4a7f3b[_0x299940];return _0x718b6d;}export async function getRulesContent(){const _0x31aefd=a288_0x2b0d42;try{const _0x2a6ad3=await fetchRulesFromCDN();return _0x2a6ad3[_0x31aefd(0x1d3)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1a9241=a288_0x2b0d42;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1a9241(0x1d6));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xaf8ab8){const _0x15242e=a288_0x2b0d42,_0x580720=await fetchRulesFromCDN()['catch'](()=>null);let _0xa27b1f;_0x580720?(_0xa27b1f=_0x580720[_0x15242e(0x1d3)],_0x580720[_0x15242e(0x1c9)]&&(_0xa27b1f=appendUpdateTime(_0xa27b1f,_0x580720[_0x15242e(0x1c9)]))):_0xa27b1f=readLocalTemplate();const _0x471431=dirname(_0xaf8ab8);!existsSync(_0x471431)&&mkdirSync(_0x471431,{'recursive':!![]}),writeFileSync(_0xaf8ab8,_0xa27b1f,_0x15242e(0x1d6));}export async function copyRulesToCursor(_0x256ab5){const _0x36b8ba=a288_0x2b0d42,_0x602660=join(_0x256ab5,_0x36b8ba(0x1c7)),_0xf9a00b=join(_0x602660,'lovrabet_rules.mdc');if(existsSync(_0xf9a00b))return![];return await writeRulesFile(_0xf9a00b),!![];}export async function copyRulesToAgentsMd(_0x520200){const _0x128d88=a288_0x2b0d42,_0x39ea42=join(_0x520200,_0x128d88(0x1dd));if(existsSync(_0x39ea42))return![];return await writeRulesFile(_0x39ea42),!![];}
1
+ function a288_0x3313(_0x253a5a,_0x30385a){_0x253a5a=_0x253a5a-0x193;const _0x5e295d=a288_0x5e29();let _0x3313a1=_0x5e295d[_0x253a5a];return _0x3313a1;}const a288_0x1551d9=a288_0x3313;(function(_0x535297,_0x57d96b){const _0x24d73e=a288_0x3313,_0x5ab559=_0x535297();while(!![]){try{const _0x3a8e5a=-parseInt(_0x24d73e(0x19d))/0x1*(parseInt(_0x24d73e(0x198))/0x2)+-parseInt(_0x24d73e(0x195))/0x3+-parseInt(_0x24d73e(0x194))/0x4+parseInt(_0x24d73e(0x199))/0x5+-parseInt(_0x24d73e(0x19c))/0x6*(-parseInt(_0x24d73e(0x1a6))/0x7)+parseInt(_0x24d73e(0x1a1))/0x8*(-parseInt(_0x24d73e(0x19e))/0x9)+parseInt(_0x24d73e(0x197))/0xa;if(_0x3a8e5a===_0x57d96b)break;else _0x5ab559['push'](_0x5ab559['shift']());}catch(_0x275dd8){_0x5ab559['push'](_0x5ab559['shift']());}}}(a288_0x5e29,0x94679));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 _0x54397a=a288_0x3313,_0x3bae6a=getTemplateBaseUrl();return _0x3bae6a+_0x54397a(0x193);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a288_0x1551d9(0x19a));export async function fetchRulesFromCDN(){const _0x5f4c51=a288_0x1551d9,_0xf7b9a=getRulesCdnUrl(),_0x473a4e=await fetch(_0xf7b9a,{'headers':{'Accept':'application/json'}});if(!_0x473a4e['ok'])throw new Error(_0x5f4c51(0x1a0)+_0x473a4e[_0x5f4c51(0x1a5)]+'\x20'+_0x473a4e['statusText']);const _0x4911af=await _0x473a4e[_0x5f4c51(0x1a7)]();if(!_0x4911af['content']||typeof _0x4911af[_0x5f4c51(0x1a2)]!=='string')throw new Error(_0x5f4c51(0x19f));return _0x4911af;}export async function getRulesContent(){const _0x173aec=a288_0x1551d9;try{const _0x29cc92=await fetchRulesFromCDN();return _0x29cc92[_0x173aec(0x1a2)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0xbc89a=a288_0x1551d9;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0xbc89a(0x1a8)+LOCAL_TEMPLATE_PATH);}function a288_0x5e29(){const _0x49c66c=['lovrabet_rules.mdc','catch','status','214151VbXVxo','json','本地模板文件不存在:\x20','/rules/rules.json','883872sXABWT','1086135oFfuMh','utf-8','3746780OZnRjz','2RMfhvM','4941590CYynuJ','../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','174AdjyGN','551415ZPgIPg','76185FeaTJC','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','480IqbWCK','content'];a288_0x5e29=function(){return _0x49c66c;};return a288_0x5e29();}export async function writeRulesFile(_0xb02832){const _0x24a60b=a288_0x1551d9,_0x2113da=await fetchRulesFromCDN()[_0x24a60b(0x1a4)](()=>null);let _0x5c25b5;_0x2113da?(_0x5c25b5=_0x2113da[_0x24a60b(0x1a2)],_0x2113da[_0x24a60b(0x19b)]&&(_0x5c25b5=appendUpdateTime(_0x5c25b5,_0x2113da[_0x24a60b(0x19b)]))):_0x5c25b5=readLocalTemplate();const _0x467f3b=dirname(_0xb02832);!existsSync(_0x467f3b)&&mkdirSync(_0x467f3b,{'recursive':!![]}),writeFileSync(_0xb02832,_0x5c25b5,_0x24a60b(0x196));}export async function copyRulesToCursor(_0x280916){const _0x1af53e=a288_0x1551d9,_0x5cb3bd=join(_0x280916,'.cursor/rules'),_0x58d02a=join(_0x5cb3bd,_0x1af53e(0x1a3));if(existsSync(_0x58d02a))return![];return await writeRulesFile(_0x58d02a),!![];}export async function copyRulesToAgentsMd(_0x28f1ff){const _0x495c75=join(_0x28f1ff,'agents.md');if(existsSync(_0x495c75))return![];return await writeRulesFile(_0x495c75),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x49d89f){return new Promise(_0x4bff0f=>setTimeout(_0x4bff0f,_0x49d89f));}
1
+ export function sleep(_0x47aba8){return new Promise(_0x2d0ad8=>setTimeout(_0x2d0ad8,_0x47aba8));}
@@ -1 +1 @@
1
- const a290_0x2d9d4a=a290_0x2bae;(function(_0x4ba162,_0x28cc7e){const _0x2be425=a290_0x2bae,_0x21a807=_0x4ba162();while(!![]){try{const _0x488064=-parseInt(_0x2be425(0x1b8))/0x1*(parseInt(_0x2be425(0x184))/0x2)+-parseInt(_0x2be425(0x1a7))/0x3*(parseInt(_0x2be425(0x1be))/0x4)+parseInt(_0x2be425(0x183))/0x5*(parseInt(_0x2be425(0x19e))/0x6)+-parseInt(_0x2be425(0x18c))/0x7+-parseInt(_0x2be425(0x18d))/0x8*(parseInt(_0x2be425(0x1a1))/0x9)+parseInt(_0x2be425(0x1a6))/0xa+-parseInt(_0x2be425(0x1c0))/0xb*(-parseInt(_0x2be425(0x189))/0xc);if(_0x488064===_0x28cc7e)break;else _0x21a807['push'](_0x21a807['shift']());}catch(_0x16b9a5){_0x21a807['push'](_0x21a807['shift']());}}}(a290_0x11c8,0x6e1d7));function a290_0x2bae(_0x410b2b,_0x5b69df){_0x410b2b=_0x410b2b-0x17e;const _0x11c8bb=a290_0x11c8();let _0x2bae9a=_0x11c8bb[_0x410b2b];return _0x2bae9a;}import a290_0x44da1e from'node:fs';function a290_0x11c8(){const _0x977563=['template','alias:\x20\x22','slice','1839770gjTqgs','230691sUjJde','.json','.js','name','processDirectory','getMinutes','toComponentName','now','extname','push','开始处理模板内容替换','name:\x20\x22','toLowerCase','LOVRABET','writeFile','join','success','101GmWDud','datasetCode:\x20\x22','formatLocalTimestamp','map','\x20},','datasetCode','8mgexXO','tableName','16103483RzGtPz','alias','utf8','isFile','error','promises','getFullYear','copyFile','getHours','replace','1815MmrsyH','8858Tgjwfu','toISOString','readFile','.tpl','padStart','12PpsSlx','.jsx','processFile','86128hfEEfl','8imFhJW','YourModel','isDirectory','pop','readdir','模板内容替换失败','api','tableName:\x20\x22','getSeconds','toDisplayTitle','pad','.css','.md','replaceApiContent','split','toUpperCase','endsWith','822lYJuYf','replaceContent','.tsx','5698827ZeHZuC','info'];a290_0x11c8=function(){return _0x977563;};return a290_0x11c8();}import a290_0x23b54f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x2d9d4a(0x197)](_0x3e4f44){const _0x356afe=a290_0x2d9d4a;return String(_0x3e4f44)[_0x356afe(0x188)](0x2,'0');}static[a290_0x2d9d4a(0x1ba)](_0x105d95){const _0xf909fc=a290_0x2d9d4a,_0x4de423=_0x105d95[_0xf909fc(0x17f)](),_0x568d4f=this[_0xf909fc(0x197)](_0x105d95['getMonth']()+0x1),_0x5d8e23=this[_0xf909fc(0x197)](_0x105d95['getDate']()),_0x4ecede=this['pad'](_0x105d95[_0xf909fc(0x181)]()),_0x4841bd=this[_0xf909fc(0x197)](_0x105d95[_0xf909fc(0x1ac)]()),_0x5c1aa8=this[_0xf909fc(0x197)](_0x105d95[_0xf909fc(0x195)]());return{'createdAt':_0x4de423+'-'+_0x568d4f+'-'+_0x5d8e23+'\x20'+_0x4ecede+':'+_0x4841bd+':'+_0x5c1aa8,'createdDate':_0x4de423+'-'+_0x568d4f+'-'+_0x5d8e23,'createdTime':_0x4ecede+':'+_0x4841bd+':'+_0x5c1aa8};}static[a290_0x2d9d4a(0x1ad)](_0x588a8d){const _0x236413=a290_0x2d9d4a,_0x5174bb=_0x588a8d[_0x236413(0x19b)]('/')[_0x236413(0x190)]()||_0x588a8d;return _0x5174bb[_0x236413(0x19b)]('-')[_0x236413(0x1bb)](_0x191e47=>_0x191e47['charAt'](0x0)[_0x236413(0x19c)]()+_0x191e47[_0x236413(0x1a5)](0x1)[_0x236413(0x1b3)]())[_0x236413(0x1b6)]('');}static[a290_0x2d9d4a(0x196)](_0x4ced3a){const _0x258990=a290_0x2d9d4a,_0x8219d5=_0x4ced3a[_0x258990(0x19b)]('/')['pop']()||_0x4ced3a;return _0x8219d5[_0x258990(0x19b)]('-')[_0x258990(0x1bb)](_0x2b94b6=>_0x2b94b6['charAt'](0x0)['toUpperCase']()+_0x2b94b6[_0x258990(0x1a5)](0x1)[_0x258990(0x1b3)]())[_0x258990(0x1b6)]('\x20');}static[a290_0x2d9d4a(0x19f)](_0x40e02e,_0x5a65f2,_0x2ae945){const _0x128221=a290_0x2d9d4a,_0x2c4710=this[_0x128221(0x1ad)](_0x5a65f2),_0x48b50e=this[_0x128221(0x196)](_0x5a65f2),{createdAt:_0x210002,createdDate:_0x277e01,createdTime:_0x30c59d}=this[_0x128221(0x1ba)](new Date());let _0x334e7b=_0x40e02e['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x128221(0x182)](/\{ComponentName\}/g,_0x2c4710)[_0x128221(0x182)](/\{DisplayTitle\}/g,_0x48b50e)['replace'](/\{PageName\}/g,_0x5a65f2)[_0x128221(0x182)](/\{TemplateName\}/g,_0x2ae945)[_0x128221(0x182)](/\{CreatedAt\}/g,_0x210002)['replace'](/\{CreatedDate\}/g,_0x277e01)['replace'](/\{CreatedTime\}/g,_0x30c59d);return _0x334e7b;}static[a290_0x2d9d4a(0x19a)](_0x41db2b,_0x1b07d5,_0x34839a,_0x498ed3,_0x2f1b11,_0x273fea,_0x586c0d,_0xfe0de5){const _0x49a5f2=a290_0x2d9d4a,_0x4d489f=new Date(),_0x5d0491=_0x4d489f[_0x49a5f2(0x185)](),_0x4959c2=_0x34839a[_0x49a5f2(0x1bb)](_0x21b3de=>{const _0x1b96dd=_0x49a5f2,_0xada87a=[_0x1b96dd(0x1b9)+_0x21b3de[_0x1b96dd(0x1bd)]+'\x22',_0x1b96dd(0x194)+_0x21b3de[_0x1b96dd(0x1bf)]+'\x22',_0x1b96dd(0x1b2)+_0x21b3de['name']+'\x22'];return _0x21b3de[_0x1b96dd(0x1c1)]&&_0xada87a[_0x1b96dd(0x1b0)](_0x1b96dd(0x1a4)+_0x21b3de['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xada87a[_0x1b96dd(0x1b6)](',\x20')+_0x1b96dd(0x1bc);})['join'](''),_0x1d1911=_0x498ed3||_0x34839a[0x0]?.[_0x49a5f2(0x1c1)]||_0x49a5f2(0x18e);let _0x32ea89=_0x41db2b['replace'](/\{AppCode\}/g,_0x1b07d5)[_0x49a5f2(0x182)](/\{ModelConfigs\}/g,_0x4959c2)[_0x49a5f2(0x182)](/\{ExampleModelName\}/g,_0x1d1911)[_0x49a5f2(0x182)](/\{ApiFileName\}/g,_0x2f1b11||_0x49a5f2(0x193))[_0x49a5f2(0x182)](/\{ConfigName\}/g,_0x273fea||'default')['replace'](/\{ClientConfigParam\}/g,_0x586c0d||'')[_0x49a5f2(0x182)](/\{VarPrefix\}/g,_0xfe0de5||_0x49a5f2(0x1b4))[_0x49a5f2(0x182)](/\{CreatedAt\}/g,_0x5d0491);return _0x32ea89;}static async['processTemplate'](_0x4583b2,_0x28e5ef,_0x587162,_0x14d181,_0xbbce06=!![]){const _0x5c68c8=a290_0x2d9d4a,_0x127d50=Date[_0x5c68c8(0x1ae)]();try{_0xbbce06&&logger[_0x5c68c8(0x1a2)](_0x5c68c8(0x1a3),_0x5c68c8(0x1b1),{'templatePath':_0x4583b2,'targetPath':_0x28e5ef,'pageName':_0x587162,'templateName':_0x14d181});await a290_0x44da1e[_0x5c68c8(0x17e)]['mkdir'](_0x28e5ef,{'recursive':!![]}),await this['processDirectory'](_0x4583b2,_0x28e5ef,_0x587162,_0x14d181);if(_0xbbce06){const _0x326587=Date[_0x5c68c8(0x1ae)]()-_0x127d50;logger[_0x5c68c8(0x1b7)](_0x5c68c8(0x1a3),'模板内容替换完成',_0x326587,{'pageName':_0x587162,'templateName':_0x14d181});}}catch(_0x12c635){if(_0xbbce06){const _0x39d956=Date[_0x5c68c8(0x1ae)]()-_0x127d50;logger[_0x5c68c8(0x1c4)](_0x5c68c8(0x1a3),_0x5c68c8(0x192),{'templatePath':_0x4583b2,'targetPath':_0x28e5ef,'pageName':_0x587162,'templateName':_0x14d181,'error':_0x12c635 instanceof Error?_0x12c635['message']:String(_0x12c635),'duration':_0x39d956});}throw _0x12c635;}}static async[a290_0x2d9d4a(0x1ab)](_0x4dc048,_0x13b9d6,_0x5e57bf,_0x7e4631){const _0x108433=a290_0x2d9d4a,_0x57dca3=await a290_0x44da1e[_0x108433(0x17e)][_0x108433(0x191)](_0x4dc048,{'withFileTypes':!![]});for(const _0xad6b82 of _0x57dca3){const _0xa76317=a290_0x23b54f[_0x108433(0x1b6)](_0x4dc048,_0xad6b82[_0x108433(0x1aa)]);let _0x2a0c8b=a290_0x23b54f[_0x108433(0x1b6)](_0x13b9d6,_0xad6b82[_0x108433(0x1aa)]);_0xad6b82[_0x108433(0x1aa)][_0x108433(0x19d)](_0x108433(0x187))&&(_0x2a0c8b=a290_0x23b54f[_0x108433(0x1b6)](_0x13b9d6,_0xad6b82[_0x108433(0x1aa)][_0x108433(0x182)](/\.tpl$/,'')));if(_0xad6b82[_0x108433(0x18f)]())await a290_0x44da1e[_0x108433(0x17e)]['mkdir'](_0x2a0c8b,{'recursive':!![]}),await this[_0x108433(0x1ab)](_0xa76317,_0x2a0c8b,_0x5e57bf,_0x7e4631);else _0xad6b82[_0x108433(0x1c3)]()&&await this[_0x108433(0x18b)](_0xa76317,_0x2a0c8b,_0x5e57bf,_0x7e4631);}}static async['processFile'](_0x451bcf,_0x333563,_0x1c686e,_0xdf2738){const _0x2807bb=a290_0x2d9d4a,_0x20fb69=a290_0x23b54f[_0x2807bb(0x1af)](_0x451bcf)[_0x2807bb(0x1b3)]();_0x451bcf['endsWith']('.tpl')&&(_0x333563=_0x333563[_0x2807bb(0x182)](/\.tpl$/,''));const _0x73bb5f=[_0x2807bb(0x1a0),'.ts',_0x2807bb(0x18a),_0x2807bb(0x1a9),_0x2807bb(0x1a8),_0x2807bb(0x199),_0x2807bb(0x198),'.scss',_0x2807bb(0x187)];if(_0x73bb5f['includes'](_0x20fb69)||_0x451bcf['endsWith'](_0x2807bb(0x187))){const _0x65a5c1=await a290_0x44da1e[_0x2807bb(0x17e)][_0x2807bb(0x186)](_0x451bcf,_0x2807bb(0x1c2)),_0x1247e2=this[_0x2807bb(0x19f)](_0x65a5c1,_0x1c686e,_0xdf2738);await a290_0x44da1e[_0x2807bb(0x17e)][_0x2807bb(0x1b5)](_0x333563,_0x1247e2,_0x2807bb(0x1c2));}else await a290_0x44da1e['promises'][_0x2807bb(0x180)](_0x451bcf,_0x333563);}}
1
+ const a290_0x13b7f2=a290_0x274d;(function(_0x11b4ff,_0x1f1576){const _0x5794b1=a290_0x274d,_0x2f17ba=_0x11b4ff();while(!![]){try{const _0x2ba799=parseInt(_0x5794b1(0x6f))/0x1*(parseInt(_0x5794b1(0x82))/0x2)+parseInt(_0x5794b1(0x83))/0x3+-parseInt(_0x5794b1(0x71))/0x4+-parseInt(_0x5794b1(0x68))/0x5*(-parseInt(_0x5794b1(0xab))/0x6)+parseInt(_0x5794b1(0x86))/0x7*(parseInt(_0x5794b1(0x84))/0x8)+parseInt(_0x5794b1(0x9e))/0x9+parseInt(_0x5794b1(0xa3))/0xa*(-parseInt(_0x5794b1(0x76))/0xb);if(_0x2ba799===_0x1f1576)break;else _0x2f17ba['push'](_0x2f17ba['shift']());}catch(_0x30e381){_0x2f17ba['push'](_0x2f17ba['shift']());}}}(a290_0x2b93,0x63f7e));import a290_0x470b7c from'node:fs';function a290_0x274d(_0x50f1e8,_0x4a9f70){_0x50f1e8=_0x50f1e8-0x68;const _0x2b93d5=a290_0x2b93();let _0x274dc7=_0x2b93d5[_0x50f1e8];return _0x274dc7;}import a290_0x358e2e from'node:path';import{logger}from'../utils/logger.js';function a290_0x2b93(){const _0x4390d2=['isFile','getDate','getMonth','.scss','now','replace','utf8','join','.js','toUpperCase','.css','split','2046681NhUlMy','toISOString','开始处理模板内容替换','tableName:\x20\x22','replaceContent','4660PvcsAv','toDisplayTitle','message','.tpl','promises','\x20},','alias','getMinutes','306402YSnQmz','65VVcxeC','template','name','readdir','toComponentName','push','getFullYear','13152pszMCd','endsWith','2992036NUGrWt','includes','extname','datasetCode:\x20\x22','api','21769HvTnlt','error','getHours','processFile','copyFile','writeFile','pop','模板内容替换完成','charAt','.tsx','map','toLowerCase','74mBtnHE','1366179vDQiBp','492792KtbQkA','\x0a\x20\x20\x20\x20{\x20','28UaGBzL','.json','.ts','.jsx','success','pad','processDirectory','模板内容替换失败','LOVRABET','slice','padStart','formatLocalTimestamp'];a290_0x2b93=function(){return _0x4390d2;};return a290_0x2b93();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x13b7f2(0x8b)](_0x527354){const _0x24f6f4=a290_0x13b7f2;return String(_0x527354)[_0x24f6f4(0x90)](0x2,'0');}static[a290_0x13b7f2(0x91)](_0x552562){const _0x686004=a290_0x13b7f2,_0x1e6a5d=_0x552562[_0x686004(0x6e)](),_0xc15dbd=this[_0x686004(0x8b)](_0x552562[_0x686004(0x94)]()+0x1),_0x35cf14=this['pad'](_0x552562[_0x686004(0x93)]()),_0x21c283=this[_0x686004(0x8b)](_0x552562[_0x686004(0x78)]()),_0x339162=this[_0x686004(0x8b)](_0x552562[_0x686004(0xaa)]()),_0x1f7cc2=this[_0x686004(0x8b)](_0x552562['getSeconds']());return{'createdAt':_0x1e6a5d+'-'+_0xc15dbd+'-'+_0x35cf14+'\x20'+_0x21c283+':'+_0x339162+':'+_0x1f7cc2,'createdDate':_0x1e6a5d+'-'+_0xc15dbd+'-'+_0x35cf14,'createdTime':_0x21c283+':'+_0x339162+':'+_0x1f7cc2};}static[a290_0x13b7f2(0x6c)](_0x2b9b4f){const _0x1f3de5=a290_0x13b7f2,_0x5a7d5a=_0x2b9b4f[_0x1f3de5(0x9d)]('/')['pop']()||_0x2b9b4f;return _0x5a7d5a[_0x1f3de5(0x9d)]('-')[_0x1f3de5(0x80)](_0x40c6c7=>_0x40c6c7[_0x1f3de5(0x7e)](0x0)[_0x1f3de5(0x9b)]()+_0x40c6c7['slice'](0x1)[_0x1f3de5(0x81)]())['join']('');}static[a290_0x13b7f2(0xa4)](_0xbdcb6e){const _0x4ba48d=a290_0x13b7f2,_0x330587=_0xbdcb6e['split']('/')[_0x4ba48d(0x7c)]()||_0xbdcb6e;return _0x330587['split']('-')[_0x4ba48d(0x80)](_0x3e818b=>_0x3e818b['charAt'](0x0)[_0x4ba48d(0x9b)]()+_0x3e818b[_0x4ba48d(0x8f)](0x1)[_0x4ba48d(0x81)]())[_0x4ba48d(0x99)]('\x20');}static[a290_0x13b7f2(0xa2)](_0x52ec3a,_0x1eb0f5,_0x392ced){const _0x5c427a=a290_0x13b7f2,_0x360b40=this[_0x5c427a(0x6c)](_0x1eb0f5),_0x5786e0=this[_0x5c427a(0xa4)](_0x1eb0f5),{createdAt:_0x396603,createdDate:_0x309c09,createdTime:_0x4f89da}=this[_0x5c427a(0x91)](new Date());let _0x217a26=_0x52ec3a[_0x5c427a(0x97)](/\{CliVersion\}/g,CLI_VERSION)[_0x5c427a(0x97)](/\{ComponentName\}/g,_0x360b40)[_0x5c427a(0x97)](/\{DisplayTitle\}/g,_0x5786e0)[_0x5c427a(0x97)](/\{PageName\}/g,_0x1eb0f5)[_0x5c427a(0x97)](/\{TemplateName\}/g,_0x392ced)[_0x5c427a(0x97)](/\{CreatedAt\}/g,_0x396603)['replace'](/\{CreatedDate\}/g,_0x309c09)[_0x5c427a(0x97)](/\{CreatedTime\}/g,_0x4f89da);return _0x217a26;}static['replaceApiContent'](_0x4465f2,_0x3d0783,_0x4bf0df,_0x168a96,_0x3b2a7c,_0x5dc2c3,_0x3d9760,_0x216a91){const _0x291c45=a290_0x13b7f2,_0x4f92bc=new Date(),_0x5bf4fb=_0x4f92bc[_0x291c45(0x9f)](),_0x5c2d3e=_0x4bf0df['map'](_0x4013f1=>{const _0x467472=_0x291c45,_0x59d331=[_0x467472(0x74)+_0x4013f1['datasetCode']+'\x22',_0x467472(0xa1)+_0x4013f1['tableName']+'\x22','name:\x20\x22'+_0x4013f1[_0x467472(0x6a)]+'\x22'];return _0x4013f1['alias']&&_0x59d331[_0x467472(0x6d)]('alias:\x20\x22'+_0x4013f1[_0x467472(0xa9)]+'\x22'),_0x467472(0x85)+_0x59d331[_0x467472(0x99)](',\x20')+_0x467472(0xa8);})[_0x291c45(0x99)](''),_0x592f64=_0x168a96||_0x4bf0df[0x0]?.['alias']||'YourModel';let _0x25f817=_0x4465f2['replace'](/\{AppCode\}/g,_0x3d0783)[_0x291c45(0x97)](/\{ModelConfigs\}/g,_0x5c2d3e)['replace'](/\{ExampleModelName\}/g,_0x592f64)[_0x291c45(0x97)](/\{ApiFileName\}/g,_0x3b2a7c||_0x291c45(0x75))['replace'](/\{ConfigName\}/g,_0x5dc2c3||'default')[_0x291c45(0x97)](/\{ClientConfigParam\}/g,_0x3d9760||'')[_0x291c45(0x97)](/\{VarPrefix\}/g,_0x216a91||_0x291c45(0x8e))[_0x291c45(0x97)](/\{CreatedAt\}/g,_0x5bf4fb);return _0x25f817;}static async['processTemplate'](_0x597ca3,_0x56865e,_0x5a0acf,_0x308883,_0x5cc246=!![]){const _0x58b945=a290_0x13b7f2,_0x30b26c=Date['now']();try{_0x5cc246&&logger['info']('template',_0x58b945(0xa0),{'templatePath':_0x597ca3,'targetPath':_0x56865e,'pageName':_0x5a0acf,'templateName':_0x308883});await a290_0x470b7c[_0x58b945(0xa7)]['mkdir'](_0x56865e,{'recursive':!![]}),await this[_0x58b945(0x8c)](_0x597ca3,_0x56865e,_0x5a0acf,_0x308883);if(_0x5cc246){const _0x5b5599=Date[_0x58b945(0x96)]()-_0x30b26c;logger[_0x58b945(0x8a)](_0x58b945(0x69),_0x58b945(0x7d),_0x5b5599,{'pageName':_0x5a0acf,'templateName':_0x308883});}}catch(_0x544518){if(_0x5cc246){const _0x44c820=Date[_0x58b945(0x96)]()-_0x30b26c;logger[_0x58b945(0x77)](_0x58b945(0x69),_0x58b945(0x8d),{'templatePath':_0x597ca3,'targetPath':_0x56865e,'pageName':_0x5a0acf,'templateName':_0x308883,'error':_0x544518 instanceof Error?_0x544518[_0x58b945(0xa5)]:String(_0x544518),'duration':_0x44c820});}throw _0x544518;}}static async['processDirectory'](_0x575e6d,_0x15d364,_0x94cdd6,_0x3989ed){const _0x3a2989=a290_0x13b7f2,_0x59fba2=await a290_0x470b7c[_0x3a2989(0xa7)][_0x3a2989(0x6b)](_0x575e6d,{'withFileTypes':!![]});for(const _0x4f71d2 of _0x59fba2){const _0x3be6c4=a290_0x358e2e['join'](_0x575e6d,_0x4f71d2[_0x3a2989(0x6a)]);let _0x4c1847=a290_0x358e2e[_0x3a2989(0x99)](_0x15d364,_0x4f71d2['name']);_0x4f71d2['name'][_0x3a2989(0x70)](_0x3a2989(0xa6))&&(_0x4c1847=a290_0x358e2e['join'](_0x15d364,_0x4f71d2['name'][_0x3a2989(0x97)](/\.tpl$/,'')));if(_0x4f71d2['isDirectory']())await a290_0x470b7c[_0x3a2989(0xa7)]['mkdir'](_0x4c1847,{'recursive':!![]}),await this[_0x3a2989(0x8c)](_0x3be6c4,_0x4c1847,_0x94cdd6,_0x3989ed);else _0x4f71d2[_0x3a2989(0x92)]()&&await this[_0x3a2989(0x79)](_0x3be6c4,_0x4c1847,_0x94cdd6,_0x3989ed);}}static async[a290_0x13b7f2(0x79)](_0x1e2e84,_0x2f1c1a,_0x590b49,_0x763fa2){const _0x3c4a35=a290_0x13b7f2,_0xe930fc=a290_0x358e2e[_0x3c4a35(0x73)](_0x1e2e84)[_0x3c4a35(0x81)]();_0x1e2e84[_0x3c4a35(0x70)](_0x3c4a35(0xa6))&&(_0x2f1c1a=_0x2f1c1a['replace'](/\.tpl$/,''));const _0x4ec6e6=[_0x3c4a35(0x7f),_0x3c4a35(0x88),_0x3c4a35(0x89),_0x3c4a35(0x9a),_0x3c4a35(0x87),'.md',_0x3c4a35(0x9c),_0x3c4a35(0x95),'.tpl'];if(_0x4ec6e6[_0x3c4a35(0x72)](_0xe930fc)||_0x1e2e84[_0x3c4a35(0x70)]('.tpl')){const _0x52d8db=await a290_0x470b7c['promises']['readFile'](_0x1e2e84,_0x3c4a35(0x98)),_0x3c9c6e=this[_0x3c4a35(0xa2)](_0x52d8db,_0x590b49,_0x763fa2);await a290_0x470b7c['promises'][_0x3c4a35(0x7b)](_0x2f1c1a,_0x3c9c6e,_0x3c4a35(0x98));}else await a290_0x470b7c[_0x3c4a35(0xa7)][_0x3c4a35(0x7a)](_0x1e2e84,_0x2f1c1a);}}