@lovrabet/rabetbase-cli 2.4.5-beta.1 → 2.4.5

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 (292) 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/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/generate-start.js +1 -1
  143. package/lib/commands/page/generate-status.js +1 -1
  144. package/lib/commands/page/index.js +1 -1
  145. package/lib/commands/page/pull.js +1 -1
  146. package/lib/commands/page/push.js +1 -1
  147. package/lib/commands/page/react/create.js +1 -1
  148. package/lib/commands/page/react/detail.js +1 -1
  149. package/lib/commands/page/react/list.js +1 -1
  150. package/lib/commands/page/react/publish.js +1 -1
  151. package/lib/commands/page/react/shared.js +1 -1
  152. package/lib/commands/page/react/syntax.js +1 -1
  153. package/lib/commands/page/react/template.js +1 -1
  154. package/lib/commands/page/react/update.js +1 -1
  155. package/lib/commands/page/relation-audit.js +1 -1
  156. package/lib/commands/page/restore.js +1 -1
  157. package/lib/commands/page/shared.js +1 -1
  158. package/lib/commands/page/standard-page-status.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/schema.js +1 -1
  206. package/lib/constant/cdn.js +1 -1
  207. package/lib/constant/cli.js +1 -1
  208. package/lib/constant/defaults.js +1 -1
  209. package/lib/constant/domain.js +1 -1
  210. package/lib/constant/env.js +1 -1
  211. package/lib/constant/output.js +1 -1
  212. package/lib/constant/paths.js +1 -1
  213. package/lib/constant/risk.js +1 -1
  214. package/lib/context/app-resolver.js +1 -1
  215. package/lib/context/auth-resolver.js +1 -1
  216. package/lib/context/config-loader.js +1 -1
  217. package/lib/context.js +1 -1
  218. package/lib/core/alias-resolver.js +1 -1
  219. package/lib/core/api-client.js +1 -1
  220. package/lib/core/bff/config.js +1 -1
  221. package/lib/core/bff/file-system.js +1 -1
  222. package/lib/core/bff/hash.js +1 -1
  223. package/lib/core/bff/lock.js +1 -1
  224. package/lib/core/bff/utils.js +1 -1
  225. package/lib/core/db-resolver.js +1 -1
  226. package/lib/core/page/file-system.js +1 -1
  227. package/lib/core/page/hash.js +1 -1
  228. package/lib/core/page/lock.js +1 -1
  229. package/lib/core/sql-index-auditor.js +1 -1
  230. package/lib/core/sql-sync/config.js +1 -1
  231. package/lib/core/sql-sync/file-system.js +1 -1
  232. package/lib/core/sql-sync/hash.js +1 -1
  233. package/lib/core/sql-sync/lock.js +1 -1
  234. package/lib/core/sql-sync/utils.js +1 -1
  235. package/lib/core/sql-validator.js +1 -1
  236. package/lib/errors.js +1 -1
  237. package/lib/framework/build-all-flags.js +1 -1
  238. package/lib/framework/error-output.js +1 -1
  239. package/lib/framework/explicit-yes.js +1 -1
  240. package/lib/framework/flags.js +1 -1
  241. package/lib/framework/help.js +1 -1
  242. package/lib/framework/index.js +1 -1
  243. package/lib/framework/output.js +1 -1
  244. package/lib/framework/response.js +1 -1
  245. package/lib/framework/runner-alias.js +1 -1
  246. package/lib/framework/runner.js +1 -1
  247. package/lib/framework/schema-export.js +1 -1
  248. package/lib/framework/types.js +1 -1
  249. package/lib/generated/build-info.d.ts +4 -4
  250. package/lib/generated/build-info.js +1 -1
  251. package/lib/help.js +1 -1
  252. package/lib/postinstall.js +1 -1
  253. package/lib/runtime/confirmation.js +1 -1
  254. package/lib/runtime/event.js +1 -1
  255. package/lib/runtime/index.js +1 -1
  256. package/lib/runtime/queue.js +1 -1
  257. package/lib/runtime/resolve.js +1 -1
  258. package/lib/skills/builtin-skill.js +1 -1
  259. package/lib/skills/main.js +1 -1
  260. package/lib/skills/npx-skills-add.js +1 -1
  261. package/lib/skills/skill-presence.js +1 -1
  262. package/lib/telemetry/cli-command-trace.js +1 -1
  263. package/lib/telemetry/cli-help-trace.js +1 -1
  264. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  265. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  266. package/lib/telemetry/send-cli-trace-log.js +1 -1
  267. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  268. package/lib/utils/ai_config.js +1 -1
  269. package/lib/utils/apply-jq-filter.js +1 -1
  270. package/lib/utils/cdn-config.js +1 -1
  271. package/lib/utils/check-sdk-version.js +1 -1
  272. package/lib/utils/cli-version-check.js +1 -1
  273. package/lib/utils/cli-version-policy.js +1 -1
  274. package/lib/utils/config.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a272_0x295d8f=a272_0x5557;(function(_0x29edd6,_0x39c888){const _0x5cef92=a272_0x5557,_0x5ce39a=_0x29edd6();while(!![]){try{const _0x2e98c5=-parseInt(_0x5cef92(0x1e9))/0x1+parseInt(_0x5cef92(0x1c1))/0x2+-parseInt(_0x5cef92(0x1ba))/0x3+parseInt(_0x5cef92(0x1d4))/0x4*(parseInt(_0x5cef92(0x1d8))/0x5)+-parseInt(_0x5cef92(0x1c6))/0x6+parseInt(_0x5cef92(0x1d0))/0x7*(parseInt(_0x5cef92(0x1b9))/0x8)+parseInt(_0x5cef92(0x1c4))/0x9;if(_0x2e98c5===_0x39c888)break;else _0x5ce39a['push'](_0x5ce39a['shift']());}catch(_0x5073b1){_0x5ce39a['push'](_0x5ce39a['shift']());}}}(a272_0x3552,0x1daa5));export const CORE_IDE_CONFIGS={'cursor':{'name':a272_0x295d8f(0x1e6),'description':a272_0x295d8f(0x1e2),'folders':[a272_0x295d8f(0x1c3),a272_0x295d8f(0x1cc)],'files':[{'type':a272_0x295d8f(0x1be),'path':a272_0x295d8f(0x1e3),'template':a272_0x295d8f(0x1bd)}]},'windsurf':{'name':a272_0x295d8f(0x1df),'description':'Windsurf\x20IDE','folders':[a272_0x295d8f(0x1cf)],'files':[{'type':a272_0x295d8f(0x1be),'path':'.windsurf/workflows/rabetbase.md','template':a272_0x295d8f(0x1bd)}]},'claude':{'name':a272_0x295d8f(0x1b8),'description':a272_0x295d8f(0x1b8),'folders':[a272_0x295d8f(0x1d5)],'files':[{'type':a272_0x295d8f(0x1be),'path':a272_0x295d8f(0x1e0),'template':a272_0x295d8f(0x1bd)}]},'cline':{'name':'Cline','description':a272_0x295d8f(0x1bb),'folders':['.cline'],'files':[{'type':a272_0x295d8f(0x1be),'path':a272_0x295d8f(0x1e1),'template':'SKILL.md.tpl'}]},'codex':{'name':a272_0x295d8f(0x1c0),'description':'Codex\x20IDE','folders':[a272_0x295d8f(0x1d7)],'files':[{'type':a272_0x295d8f(0x1be),'path':'.codex/skills/lovrabet/SKILL.md','template':a272_0x295d8f(0x1bd)}]},'opencode':{'name':a272_0x295d8f(0x1bf),'description':a272_0x295d8f(0x1c5),'folders':[a272_0x295d8f(0x1d6)],'files':[{'type':a272_0x295d8f(0x1be),'path':'.opencode/skills/lovrabet/SKILL.md','template':a272_0x295d8f(0x1bd)}]},'qoder':{'name':a272_0x295d8f(0x1cd),'description':a272_0x295d8f(0x1db),'folders':[a272_0x295d8f(0x1ce)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a272_0x295d8f(0x1d1),'description':a272_0x295d8f(0x1e8),'folders':[a272_0x295d8f(0x1c8)],'files':[{'type':a272_0x295d8f(0x1be),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a272_0x295d8f(0x1bd)}]},'trae':{'name':a272_0x295d8f(0x1bc),'description':'Trae\x20IDE','folders':[a272_0x295d8f(0x1ca)],'files':[{'type':a272_0x295d8f(0x1be),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a272_0x295d8f(0x1dc),'description':a272_0x295d8f(0x1dd),'folders':[a272_0x295d8f(0x1cb)],'files':[{'type':a272_0x295d8f(0x1be),'path':a272_0x295d8f(0x1ea),'template':a272_0x295d8f(0x1bd)}]},'antigravity':{'name':a272_0x295d8f(0x1b6),'description':a272_0x295d8f(0x1e4),'folders':[a272_0x295d8f(0x1cb)],'files':[{'type':a272_0x295d8f(0x1be),'path':a272_0x295d8f(0x1ea),'template':a272_0x295d8f(0x1bd)}]}};function a272_0x5557(_0x4ce2b6,_0x7c3933){_0x4ce2b6=_0x4ce2b6-0x1b6;const _0x35528f=a272_0x3552();let _0x5557c6=_0x35528f[_0x4ce2b6];return _0x5557c6;}export const CORE_IDE_LIST=['claude',a272_0x295d8f(0x1d9),a272_0x295d8f(0x1c2),a272_0x295d8f(0x1c7),a272_0x295d8f(0x1d2),a272_0x295d8f(0x1c9),a272_0x295d8f(0x1da),'trae',a272_0x295d8f(0x1b7)];function a272_0x3552(){const _0x4d2586=['.codebuddy','opencode','.trae','.agent','.cursor','Qoder','.qoder','.windsurf','7DrFAxj','CodeBuddy','cursor','antigravity','4wfvIna','.claude','.opencode','.codex','501565txekUM','cline','qoder','Qoder\x20IDE','其他\x20(通用模板)','通用模板\x20-\x20兜底方案','agent','Windsurf','.claude/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','Cursor\x20IDE','.cursor/skills/rabetbase.md','Antigravity\x20IDE','claude','Cursor','trae','CodeBuddy\x20IDE','122054IxkJkt','.agent/skills/lovrabet/SKILL.md','Antigravity','windsurf','Claude\x20Code','1087008NGGfGM','233412WrFilw','Cline\x20IDE','Trae','SKILL.md.tpl','file','OpenCode','Codex','154796LtxOsW','codebuddy','.cursorrules','2141712lpkztm','OpenCode\x20IDE','1381128ivOplx','codex'];a272_0x3552=function(){return _0x4d2586;};return a272_0x3552();}export const IDE_LIST=[a272_0x295d8f(0x1d3),a272_0x295d8f(0x1e5),a272_0x295d8f(0x1d9),a272_0x295d8f(0x1c2),'codex',a272_0x295d8f(0x1d2),'opencode','qoder',a272_0x295d8f(0x1e7),a272_0x295d8f(0x1b7),a272_0x295d8f(0x1de)];export const ALL_CORE_IDES=[a272_0x295d8f(0x1d2),a272_0x295d8f(0x1b7),a272_0x295d8f(0x1e5),a272_0x295d8f(0x1d9),a272_0x295d8f(0x1c7),a272_0x295d8f(0x1c9),a272_0x295d8f(0x1da),a272_0x295d8f(0x1c2),a272_0x295d8f(0x1e7)];
1
+ function a272_0x1d25(_0x942cc4,_0x58207b){_0x942cc4=_0x942cc4-0x98;const _0x22c760=a272_0x22c7();let _0x1d2503=_0x22c760[_0x942cc4];return _0x1d2503;}const a272_0x55eafd=a272_0x1d25;function a272_0x22c7(){const _0x15f66a=['681014QhYDKo','Windsurf\x20IDE','SKILL.md.tpl','Claude\x20Code','9gBHoFJ','3265586UPTFBf','OpenCode\x20IDE','opencode','.trae','5139536DPnmrz','.codex','.cursorrules','5751697LvHYGG','codex','.claude/skills/lovrabet/SKILL.md','25000gFDGnF','file','Trae\x20IDE','.opencode','cline','trae','CodeBuddy','.agent','.qoder/rules/rabetbase.md','.codebuddy','.codebuddy/skills/lovrabet/SKILL.md','444TFFHDB','Trae','Antigravity\x20IDE','codebuddy','3667191AIYqMa','.qoder','.codex/skills/lovrabet/SKILL.md','.claude','cursor','OpenCode','通用模板\x20-\x20兜底方案','Qoder','Codex\x20IDE','claude','Antigravity','其他\x20(通用模板)','.windsurf','windsurf','Codex','.opencode/skills/lovrabet/SKILL.md','Qoder\x20IDE','57555KrZYeG','.cline/skills/lovrabet/SKILL.md','qoder','.agent/skills/lovrabet/SKILL.md'];a272_0x22c7=function(){return _0x15f66a;};return a272_0x22c7();}(function(_0x3ea94d,_0x133c9a){const _0x1398dd=a272_0x1d25,_0x1da889=_0x3ea94d();while(!![]){try{const _0x25005d=parseInt(_0x1398dd(0x98))/0x1+-parseInt(_0x1398dd(0x9d))/0x2+parseInt(_0x1398dd(0xb6))/0x3+parseInt(_0x1398dd(0xa7))/0x4+parseInt(_0x1398dd(0xc7))/0x5*(-parseInt(_0x1398dd(0xb2))/0x6)+parseInt(_0x1398dd(0xa4))/0x7+-parseInt(_0x1398dd(0xa1))/0x8*(-parseInt(_0x1398dd(0x9c))/0x9);if(_0x25005d===_0x133c9a)break;else _0x1da889['push'](_0x1da889['shift']());}catch(_0x36c72a){_0x1da889['push'](_0x1da889['shift']());}}}(a272_0x22c7,0xd914f));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a272_0x55eafd(0xa3),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'windsurf':{'name':'Windsurf','description':a272_0x55eafd(0x99),'folders':[a272_0x55eafd(0xc2)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.windsurf/workflows/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'claude':{'name':'Claude\x20Code','description':a272_0x55eafd(0x9b),'folders':[a272_0x55eafd(0xb9)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xa6),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc8),'template':'SKILL.md.tpl'}]},'codex':{'name':a272_0x55eafd(0xc4),'description':a272_0x55eafd(0xbe),'folders':[a272_0x55eafd(0xa2)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb8),'template':a272_0x55eafd(0x9a)}]},'opencode':{'name':a272_0x55eafd(0xbb),'description':a272_0x55eafd(0x9e),'folders':[a272_0x55eafd(0xaa)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc5),'template':a272_0x55eafd(0x9a)}]},'qoder':{'name':a272_0x55eafd(0xbd),'description':a272_0x55eafd(0xc6),'folders':[a272_0x55eafd(0xb7)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xaf),'template':a272_0x55eafd(0x9a)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]},'codebuddy':{'name':a272_0x55eafd(0xad),'description':'CodeBuddy\x20IDE','folders':[a272_0x55eafd(0xb0)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb1),'template':a272_0x55eafd(0x9a)}]},'trae':{'name':a272_0x55eafd(0xb3),'description':a272_0x55eafd(0xa9),'folders':[a272_0x55eafd(0xa0)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.trae/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a272_0x55eafd(0xc1),'description':a272_0x55eafd(0xbc),'folders':[a272_0x55eafd(0xae)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]},'antigravity':{'name':a272_0x55eafd(0xc0),'description':a272_0x55eafd(0xb4),'folders':['.agent'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]}};export const CORE_IDE_LIST=[a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),'cursor','opencode',a272_0x55eafd(0xc9),'trae',a272_0x55eafd(0xc3)];export const IDE_LIST=['antigravity',a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),a272_0x55eafd(0xba),a272_0x55eafd(0x9f),a272_0x55eafd(0xc9),a272_0x55eafd(0xac),a272_0x55eafd(0xc3),'agent'];export const ALL_CORE_IDES=['cursor',a272_0x55eafd(0xc3),'claude',a272_0x55eafd(0xab),a272_0x55eafd(0xa5),a272_0x55eafd(0x9f),'qoder',a272_0x55eafd(0xb5),a272_0x55eafd(0xac)];
@@ -1 +1 @@
1
- (function(_0x3cd633,_0x1c0f89){const _0x31faf4=a273_0xf5d1,_0x3249d4=_0x3cd633();while(!![]){try{const _0x829937=-parseInt(_0x31faf4(0x16c))/0x1*(parseInt(_0x31faf4(0x16b))/0x2)+parseInt(_0x31faf4(0x169))/0x3+-parseInt(_0x31faf4(0x16e))/0x4*(parseInt(_0x31faf4(0x168))/0x5)+parseInt(_0x31faf4(0x16d))/0x6*(parseInt(_0x31faf4(0x170))/0x7)+-parseInt(_0x31faf4(0x16a))/0x8+-parseInt(_0x31faf4(0x167))/0x9+parseInt(_0x31faf4(0x16f))/0xa;if(_0x829937===_0x1c0f89)break;else _0x3249d4['push'](_0x3249d4['shift']());}catch(_0x55b253){_0x3249d4['push'](_0x3249d4['shift']());}}}(a273_0x8279,0x4787b));function a273_0xf5d1(_0x43b587,_0x37b455){_0x43b587=_0x43b587-0x167;const _0x8279e2=a273_0x8279();let _0xf5d11c=_0x8279e2[_0x43b587];return _0xf5d11c;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a273_0x8279(){const _0x3872cd=['4473730FdKpyf','973VwrTgn','2344338DDLvvY','5Vwthsn','1539798vTNyRP','1494632ktFSqU','1622UEqdHJ','571EVNZBR','13914ktBiwN','318404QYaVyN'];a273_0x8279=function(){return _0x3872cd;};return a273_0x8279();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2aba44,_0x43ba46){const _0x344249=a273_0x5651,_0x574f3d=_0x2aba44();while(!![]){try{const _0x3893ab=parseInt(_0x344249(0x167))/0x1*(-parseInt(_0x344249(0x16f))/0x2)+-parseInt(_0x344249(0x166))/0x3+-parseInt(_0x344249(0x168))/0x4+parseInt(_0x344249(0x169))/0x5+-parseInt(_0x344249(0x16d))/0x6*(-parseInt(_0x344249(0x16e))/0x7)+parseInt(_0x344249(0x16b))/0x8+-parseInt(_0x344249(0x16c))/0x9*(parseInt(_0x344249(0x16a))/0xa);if(_0x3893ab===_0x43ba46)break;else _0x574f3d['push'](_0x574f3d['shift']());}catch(_0x3f677d){_0x574f3d['push'](_0x574f3d['shift']());}}}(a273_0x36d4,0xbf03a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x5651(_0x12f356,_0x24eb48){_0x12f356=_0x12f356-0x166;const _0x36d47e=a273_0x36d4();let _0x5651af=_0x36d47e[_0x12f356];return _0x5651af;}function a273_0x36d4(){const _0x6886b2=['25822kvTcJY','2272326vhgQcH','23iHpdEB','2997404VLlzqM','4358770YTbNGG','9190CcMVkm','11867376DqcpFj','1611ehdaMf','474558ctEqEi','35MjvWRk'];a273_0x36d4=function(){return _0x6886b2;};return a273_0x36d4();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a274_0x25b3(_0x2e922d,_0x50a03d){_0x2e922d=_0x2e922d-0xda;const _0x1ecbbf=a274_0x1ecb();let _0x25b3e9=_0x1ecbbf[_0x2e922d];return _0x25b3e9;}(function(_0x1dca4d,_0x804760){const _0x21c691=a274_0x25b3,_0xc219d4=_0x1dca4d();while(!![]){try{const _0xfccf07=-parseInt(_0x21c691(0xe3))/0x1*(-parseInt(_0x21c691(0xe5))/0x2)+parseInt(_0x21c691(0xe2))/0x3*(parseInt(_0x21c691(0xeb))/0x4)+-parseInt(_0x21c691(0xe0))/0x5+-parseInt(_0x21c691(0xe4))/0x6*(parseInt(_0x21c691(0xe1))/0x7)+parseInt(_0x21c691(0xde))/0x8*(parseInt(_0x21c691(0xe6))/0x9)+-parseInt(_0x21c691(0xdd))/0xa+-parseInt(_0x21c691(0xe7))/0xb*(-parseInt(_0x21c691(0xea))/0xc);if(_0xfccf07===_0x804760)break;else _0xc219d4['push'](_0xc219d4['shift']());}catch(_0x1237e6){_0xc219d4['push'](_0xc219d4['shift']());}}}(a274_0x1ecb,0xdb33a));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x558c29=a274_0x25b3,_0x367356=getTemplateBaseUrl(),_0x3437e3=[_0x367356+'/config.json',_0x367356+_0x558c29(0xda)];for(const _0x82d27f of _0x3437e3){try{const _0xe3bb77=await fetch(_0x82d27f,{'headers':{'Accept':_0x558c29(0xe9)}});if(!_0xe3bb77['ok'])continue;const _0x5a53e7=await _0xe3bb77['json']();if(!_0x5a53e7['cli']?.['stableVersion']||!_0x5a53e7[_0x558c29(0xdf)]?.[_0x558c29(0xdc)]?.[_0x558c29(0xdb)])continue;return _0x5a53e7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a274_0x1ecb(){const _0x2fb9e9=['2699554Bqcdzr','now','application/json','36WcyzHv','6276344StcBpb','/config/index.json','stableVersion','node','13513060fqxCBB','8rpkNbj','sdk','3989895JDlInQ','14tqFktq','3ntEEiv','1hrvHwP','3754338ZgvsDL','2238388gvVdWo','7866531QCqmmS'];a274_0x1ecb=function(){return _0x2fb9e9;};return a274_0x1ecb();}export async function getCdnConfig(){const _0x1bcdf2=a274_0x25b3,_0x377b6f=Date[_0x1bcdf2(0xe8)]();if(hasCachedConfig){const _0x229751=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x377b6f-cacheTime<_0x229751)return cachedConfig;}const _0x4a1824=await fetchCdnConfig();return cachedConfig=_0x4a1824,cacheTime=_0x377b6f,hasCachedConfig=!![],_0x4a1824;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1183b2,_0x2835f7){const _0x3b8908=a274_0x35ec,_0x2f0551=_0x1183b2();while(!![]){try{const _0x380488=-parseInt(_0x3b8908(0x16b))/0x1*(parseInt(_0x3b8908(0x176))/0x2)+-parseInt(_0x3b8908(0x16c))/0x3*(parseInt(_0x3b8908(0x169))/0x4)+parseInt(_0x3b8908(0x16d))/0x5*(-parseInt(_0x3b8908(0x175))/0x6)+parseInt(_0x3b8908(0x171))/0x7+parseInt(_0x3b8908(0x173))/0x8+-parseInt(_0x3b8908(0x172))/0x9*(parseInt(_0x3b8908(0x170))/0xa)+parseInt(_0x3b8908(0x16e))/0xb;if(_0x380488===_0x2835f7)break;else _0x2f0551['push'](_0x2f0551['shift']());}catch(_0x1a7dd0){_0x2f0551['push'](_0x2f0551['shift']());}}}(a274_0x1c30,0x6fcd0));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2d18e7=a274_0x35ec,_0x260936=getTemplateBaseUrl(),_0x50a079=[_0x260936+'/config.json',_0x260936+'/config/index.json'];for(const _0x2b2614 of _0x50a079){try{const _0xb6489b=await fetch(_0x2b2614,{'headers':{'Accept':'application/json'}});if(!_0xb6489b['ok'])continue;const _0x9c90ff=await _0xb6489b[_0x2d18e7(0x174)]();if(!_0x9c90ff[_0x2d18e7(0x16a)]?.[_0x2d18e7(0x177)]||!_0x9c90ff[_0x2d18e7(0x16f)]?.[_0x2d18e7(0x178)]?.[_0x2d18e7(0x177)])continue;return _0x9c90ff;}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 _0x145c91=Date['now']();if(hasCachedConfig){const _0x5a2372=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x145c91-cacheTime<_0x5a2372)return cachedConfig;}const _0x193d0f=await fetchCdnConfig();return cachedConfig=_0x193d0f,cacheTime=_0x145c91,hasCachedConfig=!![],_0x193d0f;}function a274_0x35ec(_0x987003,_0x2782cd){_0x987003=_0x987003-0x169;const _0x1c30d5=a274_0x1c30();let _0x35ec24=_0x1c30d5[_0x987003];return _0x35ec24;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a274_0x1c30(){const _0x24374f=['2292892dygyYd','cli','37846QFKxoe','3RtxFZl','893630TdVSkR','24276560PTCbTW','sdk','1990vbNLWu','1638490GXOlJK','29709eOxEAc','6272320GrCqTE','json','30eXYlse','34iEfXto','stableVersion','node'];a274_0x1c30=function(){return _0x24374f;};return a274_0x1c30();}
@@ -1 +1 @@
1
- const a275_0x1fc60d=a275_0x5d3d;(function(_0x5c0376,_0xcc90a8){const _0x1e2f23=a275_0x5d3d,_0x37ddaa=_0x5c0376();while(!![]){try{const _0x2ff7c6=-parseInt(_0x1e2f23(0xfa))/0x1+-parseInt(_0x1e2f23(0xe8))/0x2+parseInt(_0x1e2f23(0xf8))/0x3*(parseInt(_0x1e2f23(0xf0))/0x4)+parseInt(_0x1e2f23(0x102))/0x5*(parseInt(_0x1e2f23(0x10a))/0x6)+-parseInt(_0x1e2f23(0xeb))/0x7+parseInt(_0x1e2f23(0xff))/0x8*(parseInt(_0x1e2f23(0xe6))/0x9)+-parseInt(_0x1e2f23(0xef))/0xa*(parseInt(_0x1e2f23(0xea))/0xb);if(_0x2ff7c6===_0xcc90a8)break;else _0x37ddaa['push'](_0x37ddaa['shift']());}catch(_0x4d2aa0){_0x37ddaa['push'](_0x37ddaa['shift']());}}}(a275_0x25ee,0x9b806));import a275_0x195f54 from'node:fs';import a275_0x6659dc from'node:path';import a275_0x5ae34e from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a275_0x1fc60d(0x107);function isNonNumericVersion(_0x17d7f6){const _0x18efb0=a275_0x1fc60d,_0x37684a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x37684a[_0x18efb0(0xfb)](_0x1a778a=>_0x1a778a['test'](_0x17d7f6));}function getInstalledVersion(_0x4314d4,_0x51ee92){const _0x363cf2=a275_0x1fc60d;try{const _0x49a7f8=a275_0x6659dc['join'](_0x4314d4,_0x363cf2(0xec),_0x51ee92,_0x363cf2(0xf4));if(a275_0x195f54['existsSync'](_0x49a7f8)){const _0x3fbbe6=JSON['parse'](a275_0x195f54[_0x363cf2(0x108)](_0x49a7f8,'utf-8'));return _0x3fbbe6['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xd27279=a275_0x1fc60d;try{const _0x4c2b13=await getCdnConfig();return _0x4c2b13?.['sdk']?.[_0xd27279(0x105)]?.[_0xd27279(0x100)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4d765f=a275_0x1fc60d;try{const _0x146cd9=await getCdnConfig();return _0x146cd9?.[_0x4d765f(0xf6)]?.[_0x4d765f(0x105)]?.['packageName']||_0x4d765f(0x106);}catch{return'@lovrabet/sdk';}}function a275_0x5d3d(_0x1e92a9,_0x1722d7){_0x1e92a9=_0x1e92a9-0xe6;const _0x25ee2f=a275_0x25ee();let _0x5d3db7=_0x25ee2f[_0x1e92a9];return _0x5d3db7;}export async function checkSdkVersion(_0x50adc0){const _0x4073a0=a275_0x1fc60d,_0x3847e1=a275_0x6659dc[_0x4073a0(0x103)](_0x50adc0,_0x4073a0(0xf4)),[_0x3cd30f,_0x495d97]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x5cc9cd=_0x3cd30f||FALLBACK_MIN_SDK_VERSION;if(!a275_0x195f54['existsSync'](_0x3847e1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5cc9cd,'packageName':_0x495d97,'stableVersion':_0x3cd30f};try{const _0x26211a=JSON[_0x4073a0(0xf5)](a275_0x195f54['readFileSync'](_0x3847e1,_0x4073a0(0xfc))),_0x366922=_0x26211a[_0x4073a0(0x101)]||{},_0x5e92d1=_0x26211a[_0x4073a0(0xed)]||{},_0x277302=_0x366922[_0x495d97]||_0x5e92d1[_0x495d97];if(!_0x277302)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5cc9cd,'packageName':_0x495d97,'stableVersion':_0x3cd30f};let _0xfffa8a=getInstalledVersion(_0x50adc0,_0x495d97);!_0xfffa8a&&(_0xfffa8a=_0x277302);if(isNonNumericVersion(_0x277302))return{'installed':!![],'version':_0xfffa8a,'needsUpgrade':![],'minVersion':_0x5cc9cd,'packageName':_0x495d97,'stableVersion':_0x3cd30f};const _0x4198e1=a275_0x5ae34e[_0x4073a0(0xf7)](_0xfffa8a),_0x28c353=a275_0x5ae34e[_0x4073a0(0xf7)](_0x5cc9cd),_0x159e96=_0x4198e1&&_0x28c353?a275_0x5ae34e['lt'](_0x4198e1,_0x28c353):![];return{'installed':!![],'version':_0xfffa8a,'needsUpgrade':_0x159e96,'minVersion':_0x5cc9cd,'packageName':_0x495d97,'stableVersion':_0x3cd30f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5cc9cd,'packageName':_0x495d97,'stableVersion':_0x3cd30f};}}export function checkSdkVersionSync(_0x36abef){const _0xd364ad=a275_0x1fc60d,_0x3d1006=a275_0x6659dc[_0xd364ad(0x103)](_0x36abef,_0xd364ad(0xf4)),_0x193646=_0xd364ad(0x106);if(!a275_0x195f54[_0xd364ad(0x109)](_0x3d1006))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x193646,'stableVersion':null};try{const _0x12e64c=JSON['parse'](a275_0x195f54[_0xd364ad(0x108)](_0x3d1006,'utf8')),_0x37b67a=_0x12e64c[_0xd364ad(0x101)]||{},_0x1b990f=_0x12e64c[_0xd364ad(0xed)]||{},_0x594946=_0x37b67a[_0x193646]||_0x1b990f[_0x193646];if(!_0x594946)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x193646,'stableVersion':null};let _0x748994=getInstalledVersion(_0x36abef,_0x193646);!_0x748994&&(_0x748994=_0x594946);if(isNonNumericVersion(_0x594946))return{'installed':!![],'version':_0x748994,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x193646,'stableVersion':null};const _0x295e59=a275_0x5ae34e['coerce'](_0x748994),_0x2d0079=_0x295e59?a275_0x5ae34e['lt'](_0x295e59,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x748994,'needsUpgrade':_0x2d0079,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x193646,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x193646,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x27972b){const _0x2d3208=a275_0x1fc60d;if(!_0x27972b['needsUpgrade'])return;const _0x3eb0e0='\x1b[33m',_0x2ffd97=_0x2d3208(0xf2),_0x38496e=_0x2d3208(0xf1),_0x87d88d=_0x27972b[_0x2d3208(0xe9)]||'@lovrabet/sdk',_0x30cf00=_0x27972b[_0x2d3208(0x100)]||_0x27972b[_0x2d3208(0xfe)],_0x43df65='npm\x20install\x20'+_0x87d88d+'@'+(_0x30cf00||_0x2d3208(0xf3));console[_0x2d3208(0xe7)](),console[_0x2d3208(0xe7)](''+_0x3eb0e0+_0x38496e+_0x2d3208(0xf9)+_0x2ffd97),console[_0x2d3208(0xe7)](_0x3eb0e0+_0x2d3208(0xfd)+_0x87d88d+'@'+_0x27972b['version']+_0x2ffd97),console[_0x2d3208(0xe7)](_0x3eb0e0+_0x2d3208(0x104)+_0x30cf00+_0x2ffd97),console[_0x2d3208(0xe7)](_0x3eb0e0+_0x2d3208(0xee)+_0x43df65+_0x2ffd97),console[_0x2d3208(0xe7)]();}function a275_0x25ee(){const _0x39844a=['devDependencies','\x20\x20\x20Upgrade\x20command:\x20','1477180acvZyK','144dqsZrD','\x1b[1m','\x1b[0m','latest','package.json','parse','sdk','coerce','95631ofyLUr','↪\x20SDK\x20update\x20available','286505tNTrvF','some','utf8','\x20\x20\x20Current\x20version:\x20','minVersion','2061512bXTMxg','stableVersion','dependencies','15RSqnCJ','join','\x20\x20\x20Stable\x20version:\x20','node','@lovrabet/sdk','1.2.0','readFileSync','existsSync','2475798WMDMYo','36JknFsX','log','2358116uKAitL','packageName','33lyIrgI','6094032DVowyw','node_modules'];a275_0x25ee=function(){return _0x39844a;};return a275_0x25ee();}
1
+ (function(_0x5a53d9,_0x5f0f57){const _0x280de2=a275_0x4b9f,_0x4365d7=_0x5a53d9();while(!![]){try{const _0x5de073=-parseInt(_0x280de2(0x15a))/0x1*(-parseInt(_0x280de2(0x154))/0x2)+parseInt(_0x280de2(0x16a))/0x3*(-parseInt(_0x280de2(0x169))/0x4)+parseInt(_0x280de2(0x163))/0x5*(parseInt(_0x280de2(0x153))/0x6)+parseInt(_0x280de2(0x157))/0x7*(-parseInt(_0x280de2(0x167))/0x8)+parseInt(_0x280de2(0x16c))/0x9+-parseInt(_0x280de2(0x15d))/0xa+parseInt(_0x280de2(0x16b))/0xb*(parseInt(_0x280de2(0x152))/0xc);if(_0x5de073===_0x5f0f57)break;else _0x4365d7['push'](_0x4365d7['shift']());}catch(_0x18c9fe){_0x4365d7['push'](_0x4365d7['shift']());}}}(a275_0x5e37,0xa934e));import a275_0x50fc06 from'node:fs';function a275_0x4b9f(_0x59b6fb,_0x1435ae){_0x59b6fb=_0x59b6fb-0x14b;const _0x5e3709=a275_0x5e37();let _0x4b9f65=_0x5e3709[_0x59b6fb];return _0x4b9f65;}import a275_0x379cea from'node:path';import a275_0x398e26 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x536d53){const _0x5d6a52=a275_0x4b9f,_0x511250=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x511250[_0x5d6a52(0x151)](_0x4b3d3a=>_0x4b3d3a['test'](_0x536d53));}function getInstalledVersion(_0x112a83,_0x51b12b){const _0x4ad476=a275_0x4b9f;try{const _0x35378c=a275_0x379cea[_0x4ad476(0x164)](_0x112a83,'node_modules',_0x51b12b,_0x4ad476(0x16d));if(a275_0x50fc06[_0x4ad476(0x162)](_0x35378c)){const _0x1ed6c=JSON[_0x4ad476(0x14f)](a275_0x50fc06[_0x4ad476(0x168)](_0x35378c,_0x4ad476(0x15f)));return _0x1ed6c[_0x4ad476(0x15c)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5b7308=a275_0x4b9f;try{const _0xce69bc=await getCdnConfig();return _0xce69bc?.['sdk']?.['node']?.[_0x5b7308(0x150)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x26d20e=a275_0x4b9f;try{const _0x1d70ce=await getCdnConfig();return _0x1d70ce?.[_0x26d20e(0x15b)]?.[_0x26d20e(0x160)]?.[_0x26d20e(0x166)]||_0x26d20e(0x161);}catch{return _0x26d20e(0x161);}}export async function checkSdkVersion(_0x2770fe){const _0x3da271=a275_0x4b9f,_0x595108=a275_0x379cea[_0x3da271(0x164)](_0x2770fe,_0x3da271(0x16d)),[_0x5b9a19,_0x5731d2]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3dacaf=_0x5b9a19||FALLBACK_MIN_SDK_VERSION;if(!a275_0x50fc06[_0x3da271(0x162)](_0x595108))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};try{const _0x1a71d6=JSON['parse'](a275_0x50fc06[_0x3da271(0x168)](_0x595108,_0x3da271(0x14d))),_0x44043e=_0x1a71d6[_0x3da271(0x14c)]||{},_0x23b651=_0x1a71d6['devDependencies']||{},_0x495c5a=_0x44043e[_0x5731d2]||_0x23b651[_0x5731d2];if(!_0x495c5a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};let _0x533c2d=getInstalledVersion(_0x2770fe,_0x5731d2);!_0x533c2d&&(_0x533c2d=_0x495c5a);if(isNonNumericVersion(_0x495c5a))return{'installed':!![],'version':_0x533c2d,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};const _0x228767=a275_0x398e26[_0x3da271(0x14e)](_0x533c2d),_0x345a57=a275_0x398e26[_0x3da271(0x14e)](_0x3dacaf),_0x32f8c3=_0x228767&&_0x345a57?a275_0x398e26['lt'](_0x228767,_0x345a57):![];return{'installed':!![],'version':_0x533c2d,'needsUpgrade':_0x32f8c3,'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}}export function checkSdkVersionSync(_0x123b2e){const _0x2f06fa=a275_0x4b9f,_0x2ce886=a275_0x379cea[_0x2f06fa(0x164)](_0x123b2e,_0x2f06fa(0x16d)),_0x3b4e12=_0x2f06fa(0x161);if(!a275_0x50fc06[_0x2f06fa(0x162)](_0x2ce886))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};try{const _0x33c081=JSON['parse'](a275_0x50fc06[_0x2f06fa(0x168)](_0x2ce886,'utf8')),_0x543e42=_0x33c081['dependencies']||{},_0x3e00ec=_0x33c081[_0x2f06fa(0x158)]||{},_0x44e6c1=_0x543e42[_0x3b4e12]||_0x3e00ec[_0x3b4e12];if(!_0x44e6c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};let _0x1eab96=getInstalledVersion(_0x123b2e,_0x3b4e12);!_0x1eab96&&(_0x1eab96=_0x44e6c1);if(isNonNumericVersion(_0x44e6c1))return{'installed':!![],'version':_0x1eab96,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};const _0x5db289=a275_0x398e26[_0x2f06fa(0x14e)](_0x1eab96),_0x3533c1=_0x5db289?a275_0x398e26['lt'](_0x5db289,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1eab96,'needsUpgrade':_0x3533c1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xea78f5){const _0x415e26=a275_0x4b9f;if(!_0xea78f5['needsUpgrade'])return;const _0x1457ba=_0x415e26(0x14b),_0x1cdeb7='\x1b[0m',_0x8971aa=_0x415e26(0x16e),_0xcaa107=_0xea78f5[_0x415e26(0x166)]||'@lovrabet/sdk',_0x1b5584=_0xea78f5[_0x415e26(0x150)]||_0xea78f5['minVersion'],_0x129128=_0x415e26(0x156)+_0xcaa107+'@'+(_0x1b5584||'latest');console[_0x415e26(0x15e)](),console[_0x415e26(0x15e)](''+_0x1457ba+_0x8971aa+'↪\x20SDK\x20update\x20available'+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x159)+_0xcaa107+'@'+_0xea78f5['version']+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x165)+_0x1b5584+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x155)+_0x129128+_0x1cdeb7),console[_0x415e26(0x15e)]();}function a275_0x5e37(){const _0x5878b7=['\x20\x20\x20Stable\x20version:\x20','packageName','8XjnbGR','readFileSync','52TABhbP','7749xOaHsG','11icLlXX','5380776YJCrhJ','package.json','\x1b[1m','\x1b[33m','dependencies','utf8','coerce','parse','stableVersion','some','7122468LQVATg','113154vRhkUG','2094LAEBsN','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','2574257nQeNkE','devDependencies','\x20\x20\x20Current\x20version:\x20','1075YlYHIS','sdk','version','12979640rSyMVl','log','utf-8','node','@lovrabet/sdk','existsSync','20XjSblT','join'];a275_0x5e37=function(){return _0x5878b7;};return a275_0x5e37();}
@@ -1 +1 @@
1
- (function(_0x54cb9b,_0x3c2146){const _0xcd0de8=a276_0x41f3,_0xa5ba48=_0x54cb9b();while(!![]){try{const _0x384780=parseInt(_0xcd0de8(0x165))/0x1+-parseInt(_0xcd0de8(0x15d))/0x2+-parseInt(_0xcd0de8(0x17b))/0x3+parseInt(_0xcd0de8(0x15b))/0x4+parseInt(_0xcd0de8(0x17d))/0x5+parseInt(_0xcd0de8(0x16a))/0x6+-parseInt(_0xcd0de8(0x162))/0x7;if(_0x384780===_0x3c2146)break;else _0xa5ba48['push'](_0xa5ba48['shift']());}catch(_0x229dc5){_0xa5ba48['push'](_0xa5ba48['shift']());}}}(a276_0xc847,0x63d98));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a276_0x16cccc from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a276_0xc847(){const _0x430fbd=['package.json','Minimum\x20supported:\x20','Current\x20version:\x20','minimumVersion','../..','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','coerce','stableVersion','\x20\x20\x20Stable\x20version:\x20','utf-8','199284HpVuQP','\x1b[31m','1901155Cqutbf','\x1b[0m','3170796McFZvZ','\x20\x20\x20Minimum\x20supported:\x20','388530GxeNLg','\x20\x20\x20','log','needsUpgrade','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','8298570NpicYt','version','parse','310374pGKqwz','currentVersion','minimumVersionMessage','Upgrade\x20command:\x20','belowMinimum','2231298ksWWVy','join','upgradeMessage','1.0.0'];a276_0xc847=function(){return _0x430fbd;};return a276_0xc847();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1b9dc9){const _0x3ca12a=a276_0x41f3,_0x160bb1=_0x1b9dc9['stableVersion']||'latest';return _0x3ca12a(0x176)+NPM_PACKAGE_NAME+'@'+_0x160bb1;}function getCurrentCliVersion(){const _0x74ab9d=a276_0x41f3;try{const _0x2af286=fileURLToPath(import.meta.url),_0x46c45e=resolve(dirname(_0x2af286),_0x74ab9d(0x172)),_0x4d7d68=resolve(_0x46c45e,_0x74ab9d(0x16e)),_0x515873=JSON[_0x74ab9d(0x164)](readFileSync(_0x4d7d68,_0x74ab9d(0x17a)));return _0x515873[_0x74ab9d(0x163)]||'1.0.0';}catch{return _0x74ab9d(0x16d);}}function a276_0x41f3(_0x2ccd60,_0x4dcc4f){_0x2ccd60=_0x2ccd60-0x15a;const _0xc84721=a276_0xc847();let _0x41f3d4=_0xc84721[_0x2ccd60];return _0x41f3d4;}export async function checkCliVersion(){const _0x32a2ff=a276_0x41f3,_0x19dbbf=getCurrentCliVersion(),_0x113eff=await getCliVersionPolicy(),_0x40ceb0=_0x113eff?.[_0x32a2ff(0x178)]||null,_0x325b95=_0x113eff?.[_0x32a2ff(0x171)]||null;let _0x1effdf=![],_0x310d9f=![];const _0x13a31d=a276_0x16cccc['coerce'](_0x19dbbf);if(_0x13a31d&&_0x40ceb0)try{const _0xc220c2=a276_0x16cccc[_0x32a2ff(0x177)](_0x40ceb0);if(_0xc220c2)_0x1effdf=a276_0x16cccc['lt'](_0x13a31d,_0xc220c2);}catch{}if(_0x13a31d&&_0x325b95)try{const _0x17cf43=a276_0x16cccc[_0x32a2ff(0x177)](_0x325b95);if(_0x17cf43)_0x310d9f=a276_0x16cccc['lt'](_0x13a31d,_0x17cf43);}catch{}return _0x310d9f&&(_0x1effdf=!![]),{'currentVersion':_0x19dbbf,'stableVersion':_0x40ceb0,'minimumVersion':_0x325b95,'needsUpgrade':_0x1effdf,'belowMinimum':_0x310d9f,'isPreRelease':![],'upgradeMessage':_0x113eff?.[_0x32a2ff(0x16c)],'minimumVersionMessage':_0x113eff?.[_0x32a2ff(0x167)]};}export function printCliUpgradeWarning(_0x230d3b){const _0x2deb28=a276_0x41f3;if(!_0x230d3b[_0x2deb28(0x160)]&&!_0x230d3b[_0x2deb28(0x169)])return;const _0x40c207=_0x2deb28(0x17c),_0x3bc223='\x1b[33m',_0x4019ba=_0x2deb28(0x15a),_0x2f672d='\x1b[1m',_0x367195=getCliUpgradeCommand(_0x230d3b);console['log'](),_0x230d3b['belowMinimum']?(console['log'](''+_0x40c207+_0x2f672d+_0x2deb28(0x173)+_0x4019ba),console[_0x2deb28(0x15f)](_0x40c207+_0x2deb28(0x174)+_0x230d3b['currentVersion']+_0x4019ba),_0x230d3b[_0x2deb28(0x171)]&&console[_0x2deb28(0x15f)](_0x40c207+_0x2deb28(0x15c)+_0x230d3b[_0x2deb28(0x171)]+_0x4019ba),_0x230d3b['stableVersion']&&_0x230d3b[_0x2deb28(0x178)]!==_0x230d3b['minimumVersion']&&console[_0x2deb28(0x15f)](_0x40c207+'\x20\x20\x20Recommended\x20stable:\x20'+_0x230d3b[_0x2deb28(0x178)]+_0x4019ba),_0x230d3b['minimumVersionMessage']&&console[_0x2deb28(0x15f)](_0x40c207+_0x2deb28(0x15e)+_0x230d3b[_0x2deb28(0x167)]+_0x4019ba),console[_0x2deb28(0x15f)](_0x40c207+'\x20\x20\x20Upgrade\x20command:\x20'+_0x367195+_0x4019ba)):(console[_0x2deb28(0x15f)](''+_0x3bc223+_0x2f672d+'↪\x20New\x20version\x20available'+_0x4019ba),console[_0x2deb28(0x15f)](_0x3bc223+_0x2deb28(0x174)+_0x230d3b[_0x2deb28(0x166)]+_0x4019ba),console[_0x2deb28(0x15f)](_0x3bc223+_0x2deb28(0x179)+_0x230d3b[_0x2deb28(0x178)]+_0x4019ba),_0x230d3b['upgradeMessage']&&console[_0x2deb28(0x15f)](_0x3bc223+'\x20\x20\x20'+_0x230d3b[_0x2deb28(0x16c)]+_0x4019ba),console[_0x2deb28(0x15f)](_0x3bc223+_0x2deb28(0x175)+_0x367195+_0x4019ba)),console[_0x2deb28(0x15f)]();}export function assertCliVersionSupported(_0x4f7782){const _0x3a46b5=a276_0x41f3;if(!_0x4f7782[_0x3a46b5(0x169)])return;const _0x42941e=[_0x4f7782['minimumVersionMessage'],_0x3a46b5(0x170)+_0x4f7782[_0x3a46b5(0x166)],_0x4f7782[_0x3a46b5(0x171)]?_0x3a46b5(0x16f)+_0x4f7782[_0x3a46b5(0x171)]:null,_0x3a46b5(0x168)+getCliUpgradeCommand(_0x4f7782)]['filter'](Boolean)[_0x3a46b5(0x16b)]('\x0a');throw CliErrors['validation'](_0x3a46b5(0x161),_0x42941e);}
1
+ (function(_0x1077c1,_0x2d5fcb){const _0x15c6f4=a276_0x3490,_0x4744dc=_0x1077c1();while(!![]){try{const _0x420311=-parseInt(_0x15c6f4(0xfc))/0x1+parseInt(_0x15c6f4(0xe8))/0x2+-parseInt(_0x15c6f4(0xf8))/0x3+-parseInt(_0x15c6f4(0xe7))/0x4*(-parseInt(_0x15c6f4(0xf2))/0x5)+parseInt(_0x15c6f4(0xf3))/0x6*(parseInt(_0x15c6f4(0xf4))/0x7)+-parseInt(_0x15c6f4(0xf6))/0x8+-parseInt(_0x15c6f4(0xfd))/0x9*(-parseInt(_0x15c6f4(0xe3))/0xa);if(_0x420311===_0x2d5fcb)break;else _0x4744dc['push'](_0x4744dc['shift']());}catch(_0x4213bf){_0x4744dc['push'](_0x4744dc['shift']());}}}(a276_0x5907,0x3a716));import{readFileSync}from'node:fs';function a276_0x5907(){const _0x18c359=['coerce','170iJHOta','1.0.0','minimumVersionMessage','\x20\x20\x20','44poePbb','800664iJHUMr','utf-8','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','stableVersion','upgradeMessage','log','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','100690JOvyWy','678BabetD','6440CzdlLe','minimumVersion','576536IJXyRd','version','754941HavWIh','package.json','validation','latest','390259eFPmvy','120465VxyqpX','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x1b[1m','\x1b[33m'];a276_0x5907=function(){return _0x18c359;};return a276_0x5907();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a276_0x42ceb1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a276_0x3490(_0x341023,_0x278430){_0x341023=_0x341023-0xde;const _0x5907dd=a276_0x5907();let _0x34904a=_0x5907dd[_0x341023];return _0x34904a;}export function getCliUpgradeCommand(_0x2e594b){const _0x3ecf3b=a276_0x3490,_0x276a77=_0x2e594b[_0x3ecf3b(0xed)]||_0x3ecf3b(0xfb);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x276a77;}function getCurrentCliVersion(){const _0xcfbd35=a276_0x3490;try{const _0x460b90=fileURLToPath(import.meta.url),_0x1e8164=resolve(dirname(_0x460b90),'../..'),_0x24257b=resolve(_0x1e8164,_0xcfbd35(0xf9)),_0x2af56b=JSON['parse'](readFileSync(_0x24257b,_0xcfbd35(0xe9)));return _0x2af56b[_0xcfbd35(0xf7)]||_0xcfbd35(0xe4);}catch{return _0xcfbd35(0xe4);}}export async function checkCliVersion(){const _0x374864=a276_0x3490,_0x3dd3c7=getCurrentCliVersion(),_0x582929=await getCliVersionPolicy(),_0x2a5c8e=_0x582929?.['stableVersion']||null,_0x2bec78=_0x582929?.['minimumVersion']||null;let _0x3ed75f=![],_0x3e74d1=![];const _0x5271a8=a276_0x42ceb1[_0x374864(0xe2)](_0x3dd3c7);if(_0x5271a8&&_0x2a5c8e)try{const _0x59c2e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2a5c8e);if(_0x59c2e8)_0x3ed75f=a276_0x42ceb1['lt'](_0x5271a8,_0x59c2e8);}catch{}if(_0x5271a8&&_0x2bec78)try{const _0x1999e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2bec78);if(_0x1999e8)_0x3e74d1=a276_0x42ceb1['lt'](_0x5271a8,_0x1999e8);}catch{}return _0x3e74d1&&(_0x3ed75f=!![]),{'currentVersion':_0x3dd3c7,'stableVersion':_0x2a5c8e,'minimumVersion':_0x2bec78,'needsUpgrade':_0x3ed75f,'belowMinimum':_0x3e74d1,'isPreRelease':![],'upgradeMessage':_0x582929?.[_0x374864(0xee)],'minimumVersionMessage':_0x582929?.[_0x374864(0xe5)]};}export function printCliUpgradeWarning(_0x15c51d){const _0x43ca35=a276_0x3490;if(!_0x15c51d['needsUpgrade']&&!_0x15c51d['belowMinimum'])return;const _0x1e008d='\x1b[31m',_0x179e09=_0x43ca35(0xe1),_0x290e9f='\x1b[0m',_0x329014=_0x43ca35(0xe0),_0x44d91b=getCliUpgradeCommand(_0x15c51d);console['log'](),_0x15c51d[_0x43ca35(0xdf)]?(console[_0x43ca35(0xef)](''+_0x1e008d+_0x329014+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x290e9f),console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xf0)+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),_0x15c51d[_0x43ca35(0xf5)]&&console['log'](_0x1e008d+'\x20\x20\x20Minimum\x20supported:\x20'+_0x15c51d[_0x43ca35(0xf5)]+_0x290e9f),_0x15c51d['stableVersion']&&_0x15c51d[_0x43ca35(0xed)]!==_0x15c51d[_0x43ca35(0xf5)]&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xec)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d['minimumVersionMessage']&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xe6)+_0x15c51d[_0x43ca35(0xe5)]+_0x290e9f),console['log'](_0x1e008d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)):(console['log'](''+_0x179e09+_0x329014+'↪\x20New\x20version\x20available'+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+_0x43ca35(0xeb)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d[_0x43ca35(0xee)]&&console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20'+_0x15c51d['upgradeMessage']+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)),console['log']();}export function assertCliVersionSupported(_0x54d248){const _0x5cf589=a276_0x3490;if(!_0x54d248[_0x5cf589(0xdf)])return;const _0x5f2e94=[_0x54d248[_0x5cf589(0xe5)],'Current\x20version:\x20'+_0x54d248[_0x5cf589(0xea)],_0x54d248['minimumVersion']?'Minimum\x20supported:\x20'+_0x54d248[_0x5cf589(0xf5)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x54d248)][_0x5cf589(0xf1)](Boolean)['join']('\x0a');throw CliErrors[_0x5cf589(0xfa)](_0x5cf589(0xde),_0x5f2e94);}
@@ -1 +1 @@
1
- (function(_0x8248ea,_0x50b886){const _0xf1a14d=a277_0x4bd0,_0x6020a7=_0x8248ea();while(!![]){try{const _0x120be4=-parseInt(_0xf1a14d(0x92))/0x1+-parseInt(_0xf1a14d(0x98))/0x2+parseInt(_0xf1a14d(0x8a))/0x3*(-parseInt(_0xf1a14d(0x9b))/0x4)+-parseInt(_0xf1a14d(0x94))/0x5*(parseInt(_0xf1a14d(0x9e))/0x6)+-parseInt(_0xf1a14d(0x95))/0x7*(parseInt(_0xf1a14d(0x8c))/0x8)+-parseInt(_0xf1a14d(0xa0))/0x9*(parseInt(_0xf1a14d(0x8d))/0xa)+-parseInt(_0xf1a14d(0x9d))/0xb*(-parseInt(_0xf1a14d(0x97))/0xc);if(_0x120be4===_0x50b886)break;else _0x6020a7['push'](_0x6020a7['shift']());}catch(_0x401d52){_0x6020a7['push'](_0x6020a7['shift']());}}}(a277_0x1dee,0x54146));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(_0x462eef){const _0x31d18f=a277_0x4bd0;return typeof _0x462eef===_0x31d18f(0x9c)&&_0x462eef[_0x31d18f(0x9a)]()['length']>0x0?_0x462eef[_0x31d18f(0x9a)]():null;}function normalizeCliVersionPolicy(_0x571386){const _0x429b14=a277_0x4bd0;if(!_0x571386||typeof _0x571386!==_0x429b14(0x99))return null;const _0x4e9876=_0x571386,_0x13da25=_0x4e9876[_0x429b14(0x93)]&&typeof _0x4e9876[_0x429b14(0x93)]===_0x429b14(0x99)?_0x4e9876[_0x429b14(0x93)]:_0x4e9876,_0x338943=pickString(_0x13da25[_0x429b14(0x9f)])||pickString(_0x13da25[_0x429b14(0xa2)])||pickString(_0x13da25['recommendedVersion']),_0x1c7c7b=pickString(_0x13da25[_0x429b14(0x90)])||pickString(_0x13da25[_0x429b14(0x8b)]);if(!_0x338943&&!_0x1c7c7b)return null;return{'stableVersion':_0x338943,'minimumVersion':_0x1c7c7b,'upgradeMessage':pickString(_0x13da25[_0x429b14(0x8f)])||undefined,'minimumVersionMessage':pickString(_0x13da25[_0x429b14(0x91)])||undefined};}function a277_0x4bd0(_0x4e1f3c,_0x70c5cd){_0x4e1f3c=_0x4e1f3c-0x8a;const _0x1dee8b=a277_0x1dee();let _0x4bd070=_0x1dee8b[_0x4e1f3c];return _0x4bd070;}export async function fetchRabetbaseCdnConfig(){const _0x1751d2=a277_0x4bd0,_0x15cc65=new AbortController(),_0x5cdeb9=setTimeout(()=>_0x15cc65[_0x1751d2(0x8e)](),FETCH_TIMEOUT_MS);try{const _0x109703=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x15cc65[_0x1751d2(0x96)]});if(!_0x109703['ok'])return null;const _0x3c155e=await _0x109703['json']();return _0x3c155e&&typeof _0x3c155e==='object'?_0x3c155e:null;}catch{return null;}finally{clearTimeout(_0x5cdeb9);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x23ac5c=a277_0x4bd0,_0x445f8c=Date[_0x23ac5c(0xa1)]();if(hasCachedConfig){const _0x3af383=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x445f8c-cacheTime<_0x3af383)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x445f8c,hasCachedConfig=!![],cachedConfig;}function a277_0x1dee(){const _0x490272=['30OhOvdh','stableVersion','39834HKoYDv','now','latestVersion','3AJjqLQ','minVersion','801224UXYzlM','770WQGmeU','abort','upgradeMessage','minimumVersion','minimumVersionMessage','319779xliISx','cli','621070bJYfvl','7EwdAiU','signal','12sIiaLe','758738TkpxpW','object','trim','2255420NGVUZf','string','29363598JpeePX'];a277_0x1dee=function(){return _0x490272;};return a277_0x1dee();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5ab819,_0x54ef17){const _0x4624fa=a277_0x1be1,_0x4ed39b=_0x5ab819();while(!![]){try{const _0x2d3199=parseInt(_0x4624fa(0x105))/0x1+-parseInt(_0x4624fa(0x108))/0x2+-parseInt(_0x4624fa(0x109))/0x3*(parseInt(_0x4624fa(0x104))/0x4)+parseInt(_0x4624fa(0x101))/0x5+parseInt(_0x4624fa(0x112))/0x6+parseInt(_0x4624fa(0x10d))/0x7*(-parseInt(_0x4624fa(0x115))/0x8)+parseInt(_0x4624fa(0x102))/0x9;if(_0x2d3199===_0x54ef17)break;else _0x4ed39b['push'](_0x4ed39b['shift']());}catch(_0x43b7a1){_0x4ed39b['push'](_0x4ed39b['shift']());}}}(a277_0x35b7,0x86454));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(_0x9e8b92){const _0x4c82e2=a277_0x1be1;return typeof _0x9e8b92===_0x4c82e2(0x113)&&_0x9e8b92[_0x4c82e2(0x10c)]()[_0x4c82e2(0x111)]>0x0?_0x9e8b92[_0x4c82e2(0x10c)]():null;}function normalizeCliVersionPolicy(_0x1f99d8){const _0x1bd9c6=a277_0x1be1;if(!_0x1f99d8||typeof _0x1f99d8!==_0x1bd9c6(0x117))return null;const _0x2c63a4=_0x1f99d8,_0x418996=_0x2c63a4['cli']&&typeof _0x2c63a4[_0x1bd9c6(0x110)]===_0x1bd9c6(0x117)?_0x2c63a4[_0x1bd9c6(0x110)]:_0x2c63a4,_0x364e49=pickString(_0x418996[_0x1bd9c6(0x116)])||pickString(_0x418996[_0x1bd9c6(0x118)])||pickString(_0x418996[_0x1bd9c6(0x107)]),_0x4dfc3a=pickString(_0x418996[_0x1bd9c6(0x10a)])||pickString(_0x418996['minVersion']);if(!_0x364e49&&!_0x4dfc3a)return null;return{'stableVersion':_0x364e49,'minimumVersion':_0x4dfc3a,'upgradeMessage':pickString(_0x418996[_0x1bd9c6(0x10b)])||undefined,'minimumVersionMessage':pickString(_0x418996[_0x1bd9c6(0x106)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x182816=a277_0x1be1,_0x4f0134=new AbortController(),_0x277ce2=setTimeout(()=>_0x4f0134['abort'](),FETCH_TIMEOUT_MS);try{const _0x59b314=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x182816(0x10f)},'signal':_0x4f0134[_0x182816(0x10e)]});if(!_0x59b314['ok'])return null;const _0x331b12=await _0x59b314[_0x182816(0x114)]();return _0x331b12&&typeof _0x331b12===_0x182816(0x117)?_0x331b12:null;}catch{return null;}finally{clearTimeout(_0x277ce2);}}function a277_0x1be1(_0xbcab80,_0x17267a){_0xbcab80=_0xbcab80-0x101;const _0x35b753=a277_0x35b7();let _0x1be1a5=_0x35b753[_0xbcab80];return _0x1be1a5;}function a277_0x35b7(){const _0x202e2a=['recommendedVersion','1855592hgCrup','3080265mTxcxi','minimumVersion','upgradeMessage','trim','4872eHFjHS','signal','application/json','cli','length','1330872nvmPVU','string','json','8792ATMPsL','stableVersion','object','latestVersion','3914275rLaiSM','18405522hEHGlL','now','4RvIugI','219702xLdyEo','minimumVersionMessage'];a277_0x35b7=function(){return _0x202e2a;};return a277_0x35b7();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0xb8ab7f=a277_0x1be1,_0x349193=Date[_0xb8ab7f(0x103)]();if(hasCachedConfig){const _0x47af0f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x349193-cacheTime<_0x47af0f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x349193,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x1c4c67,_0x2e09bb){const _0x2983b8=a278_0x5e16,_0x36e88a=_0x1c4c67();while(!![]){try{const _0x3df1f4=parseInt(_0x2983b8(0x149))/0x1+parseInt(_0x2983b8(0x150))/0x2+parseInt(_0x2983b8(0x14f))/0x3*(-parseInt(_0x2983b8(0x14b))/0x4)+parseInt(_0x2983b8(0x14d))/0x5+-parseInt(_0x2983b8(0x14a))/0x6*(-parseInt(_0x2983b8(0x14c))/0x7)+-parseInt(_0x2983b8(0x152))/0x8*(parseInt(_0x2983b8(0x151))/0x9)+-parseInt(_0x2983b8(0x148))/0xa;if(_0x3df1f4===_0x2e09bb)break;else _0x36e88a['push'](_0x36e88a['shift']());}catch(_0x58d11b){_0x36e88a['push'](_0x36e88a['shift']());}}}(a278_0xb217,0x6463b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a278_0x580844,getMultiAppConfigs as a278_0x442fb5,getTemplateBaseUrl as a278_0x5ed577}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a278_0xb217(){const _0x3b38fa=['9944360pMDOeN','182966pVugEu','6zpiigy','25412sSVeqq','5345543aXkqAc','330250svTzWe','env','93kEcHqZ','1611140uGFxZm','646983JlWWBI','24LNzKje'];a278_0xb217=function(){return _0x3b38fa;};return a278_0xb217();}export{isInProject}from'../context.js';export function readConfig(_0x1f1380){const _0x38c69f=a278_0x5e16,_0x8a682e=readRawConfig(_0x1f1380);return _0x8a682e[_0x38c69f(0x14e)]&&typeof _0x8a682e[_0x38c69f(0x14e)]==='string'&&initEnv(_0x8a682e[_0x38c69f(0x14e)]),_0x8a682e;}export function getConfigAppCode(){return a278_0x580844();}function a278_0x5e16(_0x24c27c,_0x4869c8){_0x24c27c=_0x24c27c-0x148;const _0xb2172e=a278_0xb217();let _0x5e1611=_0xb2172e[_0x24c27c];return _0x5e1611;}export function getMultiAppConfigs(_0x4323ba='project'){return a278_0x442fb5(_0x4323ba);}export function getTemplateBaseUrl(){return a278_0x5ed577();}
1
+ (function(_0x45ddce,_0x542005){const _0x2ce848=a278_0x17a3,_0x4701f4=_0x45ddce();while(!![]){try{const _0x18294a=-parseInt(_0x2ce848(0x1e8))/0x1+-parseInt(_0x2ce848(0x1ed))/0x2*(parseInt(_0x2ce848(0x1e6))/0x3)+-parseInt(_0x2ce848(0x1f1))/0x4+parseInt(_0x2ce848(0x1e9))/0x5*(-parseInt(_0x2ce848(0x1f0))/0x6)+-parseInt(_0x2ce848(0x1ef))/0x7*(-parseInt(_0x2ce848(0x1e7))/0x8)+-parseInt(_0x2ce848(0x1eb))/0x9*(parseInt(_0x2ce848(0x1ea))/0xa)+parseInt(_0x2ce848(0x1e5))/0xb;if(_0x18294a===_0x542005)break;else _0x4701f4['push'](_0x4701f4['shift']());}catch(_0x143ade){_0x4701f4['push'](_0x4701f4['shift']());}}}(a278_0x267f,0xb34a5));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a278_0xcc354e,getMultiAppConfigs as a278_0x1be5a6,getTemplateBaseUrl as a278_0x584d47}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a278_0x17a3(_0x5c05bb,_0x50ebc0){_0x5c05bb=_0x5c05bb-0x1e5;const _0x267fcf=a278_0x267f();let _0x17a34e=_0x267fcf[_0x5c05bb];return _0x17a34e;}export{isInProject}from'../context.js';export function readConfig(_0x2682df){const _0x1129a0=a278_0x17a3,_0x4352fb=readRawConfig(_0x2682df);return _0x4352fb[_0x1129a0(0x1ee)]&&typeof _0x4352fb[_0x1129a0(0x1ee)]===_0x1129a0(0x1ec)&&initEnv(_0x4352fb[_0x1129a0(0x1ee)]),_0x4352fb;}function a278_0x267f(){const _0x154189=['173617uKXmBk','35EZmpiL','10gAGNlz','12867354GbzYwN','string','6yaDQFe','env','30758DffZQj','867978Uwejsy','1395716sskfNK','42193272YOttug','628614vtAMZh','896pgPHPF'];a278_0x267f=function(){return _0x154189;};return a278_0x267f();}export function getConfigAppCode(){return a278_0xcc354e();}export function getMultiAppConfigs(_0x48cc78='project'){return a278_0x1be5a6(_0x48cc78);}export function getTemplateBaseUrl(){return a278_0x584d47();}
@@ -1 +1 @@
1
- (function(_0x1a2c22,_0x3180b1){const _0x32e1f0=a279_0x1acf,_0x21c521=_0x1a2c22();while(!![]){try{const _0x4b9962=-parseInt(_0x32e1f0(0xc5))/0x1+parseInt(_0x32e1f0(0xc8))/0x2*(parseInt(_0x32e1f0(0xce))/0x3)+parseInt(_0x32e1f0(0xcb))/0x4*(parseInt(_0x32e1f0(0xcc))/0x5)+-parseInt(_0x32e1f0(0xd0))/0x6+parseInt(_0x32e1f0(0xd1))/0x7*(-parseInt(_0x32e1f0(0xc9))/0x8)+-parseInt(_0x32e1f0(0xc6))/0x9+parseInt(_0x32e1f0(0xd2))/0xa;if(_0x4b9962===_0x3180b1)break;else _0x21c521['push'](_0x21c521['shift']());}catch(_0x46571c){_0x21c521['push'](_0x21c521['shift']());}}}(a279_0x212e,0xc9a9e));function a279_0x212e(){const _0x2da1b5=['24921620zWbTyW','1292961fzjmLp','6709653dQmOrV','trim','3438odUMGg','8CuJXBx','string','4lYNuRt','4326765YtkrMN','object','1170dLWLOf','isFinite','3812562HsQciv','3696042OlWpai'];a279_0x212e=function(){return _0x2da1b5;};return a279_0x212e();}function toFiniteNumber(_0x4c7396){const _0x40565a=a279_0x1acf;if(typeof _0x4c7396==='number'&&Number[_0x40565a(0xcf)](_0x4c7396))return _0x4c7396;if(typeof _0x4c7396===_0x40565a(0xca)){const _0x2c3c18=_0x4c7396[_0x40565a(0xc7)]();if(!_0x2c3c18)return undefined;const _0x4818f5=Number(_0x2c3c18);if(Number[_0x40565a(0xcf)](_0x4818f5))return _0x4818f5;}return undefined;}function a279_0x1acf(_0x84d483,_0xdfb0e5){_0x84d483=_0x84d483-0xc5;const _0x212e60=a279_0x212e();let _0x1acf4e=_0x212e60[_0x84d483];return _0x1acf4e;}export function normalizeEntityWithIdResponse(_0x3a1ec6){const _0x4812ad=a279_0x1acf,_0x8422a0=toFiniteNumber(_0x3a1ec6);if(_0x8422a0!==undefined)return{'id':_0x8422a0,'entity':{'id':_0x8422a0}};if(!_0x3a1ec6||typeof _0x3a1ec6!==_0x4812ad(0xcd))return{'id':undefined,'entity':{}};const _0x359c06={..._0x3a1ec6},_0x1feccb=toFiniteNumber(_0x359c06['id']);return _0x1feccb!==undefined&&(_0x359c06['id']=_0x1feccb),{'id':_0x1feccb,'entity':_0x359c06};}
1
+ (function(_0x16adf7,_0x1dccde){const _0x2279eb=a279_0x9fcc,_0x4c9f47=_0x16adf7();while(!![]){try{const _0xb4690b=parseInt(_0x2279eb(0xa3))/0x1*(-parseInt(_0x2279eb(0x9f))/0x2)+-parseInt(_0x2279eb(0xa5))/0x3*(-parseInt(_0x2279eb(0xa0))/0x4)+parseInt(_0x2279eb(0x9e))/0x5*(parseInt(_0x2279eb(0x9c))/0x6)+parseInt(_0x2279eb(0xa1))/0x7+-parseInt(_0x2279eb(0xa8))/0x8+parseInt(_0x2279eb(0x9a))/0x9*(-parseInt(_0x2279eb(0xa6))/0xa)+-parseInt(_0x2279eb(0xa2))/0xb;if(_0xb4690b===_0x1dccde)break;else _0x4c9f47['push'](_0x4c9f47['shift']());}catch(_0x305089){_0x4c9f47['push'](_0x4c9f47['shift']());}}}(a279_0xb96e,0xce28d));function toFiniteNumber(_0x3cd6b7){const _0x26ce88=a279_0x9fcc;if(typeof _0x3cd6b7===_0x26ce88(0xa4)&&Number[_0x26ce88(0xa7)](_0x3cd6b7))return _0x3cd6b7;if(typeof _0x3cd6b7===_0x26ce88(0x9b)){const _0x2b14ce=_0x3cd6b7[_0x26ce88(0x9d)]();if(!_0x2b14ce)return undefined;const _0x21873f=Number(_0x2b14ce);if(Number[_0x26ce88(0xa7)](_0x21873f))return _0x21873f;}return undefined;}export function normalizeEntityWithIdResponse(_0x3a8e97){const _0x29ffa6=a279_0x9fcc,_0x30935c=toFiniteNumber(_0x3a8e97);if(_0x30935c!==undefined)return{'id':_0x30935c,'entity':{'id':_0x30935c}};if(!_0x3a8e97||typeof _0x3a8e97!==_0x29ffa6(0x99))return{'id':undefined,'entity':{}};const _0x2da717={..._0x3a8e97},_0x3766e5=toFiniteNumber(_0x2da717['id']);return _0x3766e5!==undefined&&(_0x2da717['id']=_0x3766e5),{'id':_0x3766e5,'entity':_0x2da717};}function a279_0x9fcc(_0x496dc5,_0x41845e){_0x496dc5=_0x496dc5-0x99;const _0xb96e0=a279_0xb96e();let _0x9fcc80=_0xb96e0[_0x496dc5];return _0x9fcc80;}function a279_0xb96e(){const _0x577f1a=['3535384mcBtyA','object','175239RFDhas','string','300474DXwxjg','trim','70hFvZQM','25484FeHEZq','2581772ETowSP','10250359YgicDv','5176204GOBzKy','86kSUYQT','number','6XrllWt','310tLtZCS','isFinite'];a279_0xb96e=function(){return _0x577f1a;};return a279_0xb96e();}
@@ -1 +1 @@
1
- (function(_0x3a5f4e,_0x6e730e){const _0x383ddf=a280_0x44a0,_0x2eae67=_0x3a5f4e();while(!![]){try{const _0x99c215=-parseInt(_0x383ddf(0xf8))/0x1*(-parseInt(_0x383ddf(0xf9))/0x2)+-parseInt(_0x383ddf(0xf6))/0x3*(parseInt(_0x383ddf(0xfe))/0x4)+-parseInt(_0x383ddf(0xfd))/0x5+parseInt(_0x383ddf(0xf7))/0x6+parseInt(_0x383ddf(0xf5))/0x7*(parseInt(_0x383ddf(0xff))/0x8)+-parseInt(_0x383ddf(0xfb))/0x9*(-parseInt(_0x383ddf(0xf4))/0xa)+-parseInt(_0x383ddf(0xfa))/0xb;if(_0x99c215===_0x6e730e)break;else _0x2eae67['push'](_0x2eae67['shift']());}catch(_0x1a45fa){_0x2eae67['push'](_0x2eae67['shift']());}}}(a280_0x448b,0xb8de2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x16bd71,_0x484aab){const _0x332cfe=a280_0x44a0,_0x19ba1e=statSync(_0x16bd71);if(_0x19ba1e[_0x332cfe(0xfc)]()){!existsSync(_0x484aab)&&mkdirSync(_0x484aab,{'recursive':!![]});const _0x272527=readdirSync(_0x16bd71);for(const _0x2d63e8 of _0x272527){await copyDir(join(_0x16bd71,_0x2d63e8),join(_0x484aab,_0x2d63e8));}}else copyFileSync(_0x16bd71,_0x484aab);}export function ensureDir(_0x7447b9){!existsSync(_0x7447b9)&&mkdirSync(_0x7447b9,{'recursive':!![]});}function a280_0x44a0(_0xaec437,_0x598de9){_0xaec437=_0xaec437-0xf4;const _0x448bfb=a280_0x448b();let _0x44a07d=_0x448bfb[_0xaec437];return _0x44a07d;}function a280_0x448b(){const _0x6e04da=['516350ErMLDY','6923uVQecm','39XbPVOZ','1580130zBxkZt','18892uoDSuQ','108ZSICFB','5007893mYvJHg','18zqGoPL','isDirectory','435220LkAevi','185396swspzf','4168VNubNS'];a280_0x448b=function(){return _0x6e04da;};return a280_0x448b();}export function pathExists(_0x5b6974){return existsSync(_0x5b6974);}
1
+ (function(_0x27d6ee,_0x42d70a){const _0x5221f3=a280_0x1ec4,_0x5c8482=_0x27d6ee();while(!![]){try{const _0x2288f4=parseInt(_0x5221f3(0x1b7))/0x1*(parseInt(_0x5221f3(0x1c1))/0x2)+-parseInt(_0x5221f3(0x1bc))/0x3*(-parseInt(_0x5221f3(0x1b8))/0x4)+-parseInt(_0x5221f3(0x1bf))/0x5*(parseInt(_0x5221f3(0x1be))/0x6)+parseInt(_0x5221f3(0x1ba))/0x7+parseInt(_0x5221f3(0x1c2))/0x8*(parseInt(_0x5221f3(0x1bb))/0x9)+parseInt(_0x5221f3(0x1b9))/0xa*(parseInt(_0x5221f3(0x1b6))/0xb)+-parseInt(_0x5221f3(0x1c0))/0xc*(parseInt(_0x5221f3(0x1bd))/0xd);if(_0x2288f4===_0x42d70a)break;else _0x5c8482['push'](_0x5c8482['shift']());}catch(_0x448a58){_0x5c8482['push'](_0x5c8482['shift']());}}}(a280_0x3143,0x9fa83));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a280_0x1ec4(_0x28b9c8,_0x3c8ee5){_0x28b9c8=_0x28b9c8-0x1b6;const _0x3143a4=a280_0x3143();let _0x1ec4a0=_0x3143a4[_0x28b9c8];return _0x1ec4a0;}export async function copyDir(_0x575bee,_0x193ff0){const _0x14fb43=statSync(_0x575bee);if(_0x14fb43['isDirectory']()){!existsSync(_0x193ff0)&&mkdirSync(_0x193ff0,{'recursive':!![]});const _0x17d1b7=readdirSync(_0x575bee);for(const _0x269fa6 of _0x17d1b7){await copyDir(join(_0x575bee,_0x269fa6),join(_0x193ff0,_0x269fa6));}}else copyFileSync(_0x575bee,_0x193ff0);}function a280_0x3143(){const _0x21807f=['12cORnbe','1114205uMJtAl','3118044mrltzD','1903518pcpAqw','145352JXjLnF','143uMBysa','1jvTvHP','636kgfWmZ','401510ZVoSSc','5500110kCMbIF','423LyUTfr','15933IvAdFN','143jgOKHd'];a280_0x3143=function(){return _0x21807f;};return a280_0x3143();}export function ensureDir(_0x2f56a9){!existsSync(_0x2f56a9)&&mkdirSync(_0x2f56a9,{'recursive':!![]});}export function pathExists(_0x2d24f1){return existsSync(_0x2d24f1);}
@@ -1 +1 @@
1
- const a281_0x3720bf=a281_0x136a;(function(_0x37f1b6,_0x1f2bb2){const _0x31c69a=a281_0x136a,_0x4d2d99=_0x37f1b6();while(!![]){try{const _0x12d012=-parseInt(_0x31c69a(0x12c))/0x1*(parseInt(_0x31c69a(0x138))/0x2)+-parseInt(_0x31c69a(0x12e))/0x3*(-parseInt(_0x31c69a(0x143))/0x4)+parseInt(_0x31c69a(0x126))/0x5+parseInt(_0x31c69a(0x13c))/0x6+-parseInt(_0x31c69a(0x13f))/0x7*(-parseInt(_0x31c69a(0x137))/0x8)+-parseInt(_0x31c69a(0x12f))/0x9*(parseInt(_0x31c69a(0x12d))/0xa)+parseInt(_0x31c69a(0x131))/0xb;if(_0x12d012===_0x1f2bb2)break;else _0x4d2d99['push'](_0x4d2d99['shift']());}catch(_0x504ea6){_0x4d2d99['push'](_0x4d2d99['shift']());}}}(a281_0x1b56,0xc7b96));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 _0x232795=a281_0x136a,_0x224b41=getTemplateBaseUrl();return _0x224b41+_0x232795(0x12b);}const CACHE_DIR=join(homedir(),a281_0x3720bf(0x130),a281_0x3720bf(0x13e));export async function fetchGuidesFromCDN(){const _0x129701=a281_0x3720bf,_0x3bd810=getGuidesCdnUrl(),_0x5ddbdb=await fetch(_0x3bd810,{'headers':{'Accept':_0x129701(0x141)}});if(!_0x5ddbdb['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5ddbdb[_0x129701(0x142)]+'\x20'+_0x5ddbdb[_0x129701(0x133)]);const _0x46f7fb=await _0x5ddbdb[_0x129701(0x13b)]();if(!_0x46f7fb[_0x129701(0x147)]||typeof _0x46f7fb[_0x129701(0x147)]!==_0x129701(0x127))throw new Error(_0x129701(0x129));return _0x46f7fb;}function a281_0x136a(_0x1288a6,_0x52ab81){_0x1288a6=_0x1288a6-0x123;const _0x1b560a=a281_0x1b56();let _0x136abd=_0x1b560a[_0x1288a6];return _0x136abd;}function a281_0x1b56(){const _0xc6300e=['length','extendContent','skillTemplate','424oqDrWA','45910LJnJqt','title','CDN\x20数据中缺少\x20skillTemplate','json','971814pESfuv','join','cache','59178HZnKHF','trimEnd','application/json','status','131728zhajky','content','utf-8','entries','guides','replace','\x0a\x0a>更新时间:','.lovrabet/skill/guides','582265Bylrwk','object','keys','CDN\x20返回数据格式错误','.md','/skills/guides.json','41aHsVZd','1220CxCLWR','69GgCEvG','486UqCrwA','.lovrabet','3100823gmqteq','lastUpdated','statusText'];a281_0x1b56=function(){return _0xc6300e;};return a281_0x1b56();}export function writeGuidesToProject(_0x4ee061,_0x58c778,_0x1d4c3e=a281_0x3720bf(0x125),_0x2e45ff){const _0x349108=a281_0x3720bf,_0x29ba33=join(_0x58c778,_0x1d4c3e);mkdirSync(_0x29ba33,{'recursive':!![]});for(const [_0x21f5c0,_0x4311d0]of Object[_0x349108(0x146)](_0x4ee061[_0x349108(0x147)])){let _0x1651ee=_0x4311d0[_0x349108(0x144)];_0x4311d0[_0x349108(0x132)]&&(_0x1651ee=appendUpdateTime(_0x1651ee,_0x4311d0['lastUpdated'])),writeFileSync(join(_0x29ba33,_0x21f5c0+_0x349108(0x12a)),_0x1651ee,_0x349108(0x145));}}export function appendUpdateTime(_0x3c8c1a,_0xdac7d4){const _0x10933b=a281_0x3720bf;return _0x3c8c1a=_0x3c8c1a[_0x10933b(0x123)](/\n*>更新时间:.*$/m,''),_0x3c8c1a['trimEnd']()+(_0x10933b(0x124)+_0xdac7d4);}export function getSkillTemplate(_0x3788ff){const _0x1b2202=a281_0x3720bf;return _0x3788ff['skillTemplate']?.[_0x1b2202(0x144)]||'';}export function appendExtendContents(_0xb0fd25,_0x2ac20e,_0x2ec31d){const _0x2405a5=a281_0x3720bf,_0x50dd40=[];for(const [,_0x2c195d]of Object[_0x2405a5(0x146)](_0x2ac20e[_0x2405a5(0x147)])){_0x2c195d[_0x2405a5(0x135)]&&_0x50dd40['push'](_0x2c195d[_0x2405a5(0x135)][_0x2405a5(0x140)]());}if(_0x50dd40['length']===0x0)return _0xb0fd25;return _0xb0fd25['trimEnd']()+'\x0a\x0a'+_0x50dd40[_0x2405a5(0x13d)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3d718e,_0x1dcd1a,_0x218dbb){const _0x454c70=a281_0x3720bf,_0x86dad9=getSkillTemplate(_0x3d718e);if(!_0x86dad9)throw new Error(_0x454c70(0x13a));const _0x59c891=dirname(_0x1dcd1a);mkdirSync(_0x59c891,{'recursive':!![]});let _0x413b1f=_0x86dad9['replace'](/\{\{IDE_NAME\}\}/g,_0x218dbb);_0x413b1f=appendExtendContents(_0x413b1f,_0x3d718e),_0x3d718e[_0x454c70(0x136)][_0x454c70(0x132)]&&(_0x413b1f=appendUpdateTime(_0x413b1f,_0x3d718e['skillTemplate'][_0x454c70(0x132)])),writeFileSync(_0x1dcd1a,_0x413b1f,'utf-8');}export async function installGuides(_0x499832){const _0x5d772b=a281_0x3720bf,_0x156c74=await fetchGuidesFromCDN();return writeGuidesToProject(_0x156c74,_0x499832),Object[_0x5d772b(0x128)](_0x156c74[_0x5d772b(0x147)])[_0x5d772b(0x134)];}export function getGuidesSummary(_0x215a2e){const _0x1c13f7=a281_0x3720bf;return Object[_0x1c13f7(0x146)](_0x215a2e[_0x1c13f7(0x147)])['map'](([_0x5a9d2e,_0x3884f4])=>({'key':_0x5a9d2e,'title':_0x3884f4[_0x1c13f7(0x139)],'path':_0x3884f4['path']}));}
1
+ const a281_0x1c3822=a281_0x1d28;(function(_0x2a9cf3,_0x131adb){const _0x4d60ad=a281_0x1d28,_0x1cb669=_0x2a9cf3();while(!![]){try{const _0x4ef703=parseInt(_0x4d60ad(0x155))/0x1+parseInt(_0x4d60ad(0x156))/0x2*(-parseInt(_0x4d60ad(0x15b))/0x3)+parseInt(_0x4d60ad(0x150))/0x4*(-parseInt(_0x4d60ad(0x13e))/0x5)+-parseInt(_0x4d60ad(0x145))/0x6+-parseInt(_0x4d60ad(0x154))/0x7*(parseInt(_0x4d60ad(0x147))/0x8)+-parseInt(_0x4d60ad(0x157))/0x9*(-parseInt(_0x4d60ad(0x143))/0xa)+parseInt(_0x4d60ad(0x15a))/0xb;if(_0x4ef703===_0x131adb)break;else _0x1cb669['push'](_0x1cb669['shift']());}catch(_0x5414e1){_0x1cb669['push'](_0x1cb669['shift']());}}}(a281_0x5d58,0x3cacc));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 _0xa51b11=a281_0x1d28,_0x2291bc=getTemplateBaseUrl();return _0x2291bc+_0xa51b11(0x148);}const CACHE_DIR=join(homedir(),'.lovrabet',a281_0x1c3822(0x15e));function a281_0x5d58(){const _0x17ee45=['application/json','json','lastUpdated','length','guides','176GerXNK','entries','map','push','8582VFZsNw','482829rjJlxi','20BkBfPA','2740005AMIMaf','utf-8','trimEnd','11372933PHqBBG','81897XsCihp','extendContent','.lovrabet/skill/guides','cache','44140gsOMnA','\x0a\x0a>更新时间:','content','path','.md','10GWeOrm','CDN\x20请求失败:\x20','2561766RrapHR','CDN\x20数据中缺少\x20skillTemplate','3160zKAVbL','/skills/guides.json','skillTemplate','status'];a281_0x5d58=function(){return _0x17ee45;};return a281_0x5d58();}export async function fetchGuidesFromCDN(){const _0x1b380c=a281_0x1c3822,_0x49d41c=getGuidesCdnUrl(),_0x5b5bb6=await fetch(_0x49d41c,{'headers':{'Accept':_0x1b380c(0x14b)}});if(!_0x5b5bb6['ok'])throw new Error(_0x1b380c(0x144)+_0x5b5bb6[_0x1b380c(0x14a)]+'\x20'+_0x5b5bb6['statusText']);const _0x3efdf9=await _0x5b5bb6[_0x1b380c(0x14c)]();if(!_0x3efdf9[_0x1b380c(0x14f)]||typeof _0x3efdf9['guides']!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x3efdf9;}function a281_0x1d28(_0x5e4437,_0x3d35d2){_0x5e4437=_0x5e4437-0x13e;const _0x5d5815=a281_0x5d58();let _0x1d282d=_0x5d5815[_0x5e4437];return _0x1d282d;}export function writeGuidesToProject(_0xac10d3,_0x35a8eb,_0x5a6123=a281_0x1c3822(0x15d),_0x3e2e37){const _0x3fe838=a281_0x1c3822,_0x48a789=join(_0x35a8eb,_0x5a6123);mkdirSync(_0x48a789,{'recursive':!![]});for(const [_0x5782d4,_0x24d88e]of Object[_0x3fe838(0x151)](_0xac10d3['guides'])){let _0x19d497=_0x24d88e[_0x3fe838(0x140)];_0x24d88e[_0x3fe838(0x14d)]&&(_0x19d497=appendUpdateTime(_0x19d497,_0x24d88e['lastUpdated'])),writeFileSync(join(_0x48a789,_0x5782d4+_0x3fe838(0x142)),_0x19d497,_0x3fe838(0x158));}}export function appendUpdateTime(_0x446f22,_0x5c3524){const _0x525742=a281_0x1c3822;return _0x446f22=_0x446f22['replace'](/\n*>更新时间:.*$/m,''),_0x446f22[_0x525742(0x159)]()+(_0x525742(0x13f)+_0x5c3524);}export function getSkillTemplate(_0x382286){const _0x4eedc2=a281_0x1c3822;return _0x382286[_0x4eedc2(0x149)]?.[_0x4eedc2(0x140)]||'';}export function appendExtendContents(_0x3da246,_0x2f19da,_0x3ec2af){const _0x92aab2=a281_0x1c3822,_0x5808f0=[];for(const [,_0x9ca615]of Object[_0x92aab2(0x151)](_0x2f19da[_0x92aab2(0x14f)])){_0x9ca615[_0x92aab2(0x15c)]&&_0x5808f0[_0x92aab2(0x153)](_0x9ca615[_0x92aab2(0x15c)][_0x92aab2(0x159)]());}if(_0x5808f0[_0x92aab2(0x14e)]===0x0)return _0x3da246;return _0x3da246[_0x92aab2(0x159)]()+'\x0a\x0a'+_0x5808f0['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x10c787,_0x444e88,_0x3b0165){const _0xbf395a=a281_0x1c3822,_0x2a35c6=getSkillTemplate(_0x10c787);if(!_0x2a35c6)throw new Error(_0xbf395a(0x146));const _0x3184f2=dirname(_0x444e88);mkdirSync(_0x3184f2,{'recursive':!![]});let _0x4fda29=_0x2a35c6['replace'](/\{\{IDE_NAME\}\}/g,_0x3b0165);_0x4fda29=appendExtendContents(_0x4fda29,_0x10c787),_0x10c787['skillTemplate']['lastUpdated']&&(_0x4fda29=appendUpdateTime(_0x4fda29,_0x10c787[_0xbf395a(0x149)]['lastUpdated'])),writeFileSync(_0x444e88,_0x4fda29,_0xbf395a(0x158));}export async function installGuides(_0x3c3b76){const _0x1ec0cd=a281_0x1c3822,_0x41e8b8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x41e8b8,_0x3c3b76),Object['keys'](_0x41e8b8[_0x1ec0cd(0x14f)])[_0x1ec0cd(0x14e)];}export function getGuidesSummary(_0x1245cb){const _0x2673ee=a281_0x1c3822;return Object[_0x2673ee(0x151)](_0x1245cb['guides'])[_0x2673ee(0x152)](([_0x43953a,_0x531204])=>({'key':_0x43953a,'title':_0x531204['title'],'path':_0x531204[_0x2673ee(0x141)]}));}
@@ -1 +1 @@
1
- (function(_0x4a5f26,_0x28514a){const _0x431b55=a282_0x30fb,_0x2a2877=_0x4a5f26();while(!![]){try{const _0x4c2d9c=parseInt(_0x431b55(0x184))/0x1*(parseInt(_0x431b55(0x16f))/0x2)+parseInt(_0x431b55(0x174))/0x3*(-parseInt(_0x431b55(0x16c))/0x4)+-parseInt(_0x431b55(0x175))/0x5+-parseInt(_0x431b55(0x16e))/0x6+-parseInt(_0x431b55(0x177))/0x7+parseInt(_0x431b55(0x170))/0x8*(-parseInt(_0x431b55(0x17c))/0x9)+parseInt(_0x431b55(0x179))/0xa;if(_0x4c2d9c===_0x28514a)break;else _0x2a2877['push'](_0x2a2877['shift']());}catch(_0x42df01){_0x2a2877['push'](_0x2a2877['shift']());}}}(a282_0x12ea,0x5fda3));export async function httpRequest(_0x437d37,_0x78c5dd={}){const _0xc8dc7b=a282_0x30fb,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x78c5dd;let _0xe02148=null;for(let _0x18ed7e=0x0;_0x18ed7e<=retries;_0x18ed7e++){try{const _0x32a0fa=new AbortController(),_0x57c706=setTimeout(()=>_0x32a0fa[_0xc8dc7b(0x187)](),timeout),_0x55ccb3=await fetch(_0x437d37,{'headers':headers,'signal':_0x32a0fa['signal']});clearTimeout(_0x57c706);let _0x1b43db;const _0x5cc34d=_0x55ccb3['headers']['get'](_0xc8dc7b(0x17b));return _0x5cc34d?.['includes'](_0xc8dc7b(0x182))?_0x1b43db=await _0x55ccb3[_0xc8dc7b(0x173)]():_0x1b43db=await _0x55ccb3['text'](),{'ok':_0x55ccb3['ok'],'status':_0x55ccb3['status'],'statusText':_0x55ccb3[_0xc8dc7b(0x17f)],'data':_0x1b43db,'headers':_0x55ccb3[_0xc8dc7b(0x176)],'url':_0x55ccb3['url'],'text':()=>_0x55ccb3['text']()};}catch(_0x290e87){_0xe02148=_0x290e87 instanceof Error?_0x290e87:new Error(String(_0x290e87));if(_0x18ed7e===retries)break;if(shouldRetry(_0x290e87)){console[_0xc8dc7b(0x186)](_0xc8dc7b(0x16d)+retryDelay+_0xc8dc7b(0x17a)+(_0x18ed7e+0x1)+_0xc8dc7b(0x185)),await sleep(retryDelay);continue;}else break;}}throw _0xe02148||new Error(_0xc8dc7b(0x171));}function a282_0x12ea(){const _0x554d71=['message','ENOTFOUND','statusText','fetch','name','application/json','includes','3ClGQsb','\x20次重试...','log','abort','1892892OpVRIG','*\x20请求失败,','3447672TWscqV','483302uwpPfy','856WFtDvl','Request\x20failed','ECONNRESET','json','3DbKMoS','3180475WCjlhp','headers','1686335uejnRi','TypeError','17274200IkdtYw','ms\x20后进行第\x20','content-type','11349hKIVIc'];a282_0x12ea=function(){return _0x554d71;};return a282_0x12ea();}function shouldRetry(_0x927d87){const _0x936d4=a282_0x30fb;if(_0x927d87 instanceof Error){if(_0x927d87['name']==='AbortError')return![];if(_0x927d87[_0x936d4(0x181)]===_0x936d4(0x178)&&_0x927d87[_0x936d4(0x17d)][_0x936d4(0x183)](_0x936d4(0x180)))return!![];if(_0x927d87[_0x936d4(0x17d)][_0x936d4(0x183)](_0x936d4(0x172)))return!![];if(_0x927d87[_0x936d4(0x17d)][_0x936d4(0x183)](_0x936d4(0x17e)))return![];}return![];}function a282_0x30fb(_0x15aac3,_0x32f3e0){_0x15aac3=_0x15aac3-0x16c;const _0x12eae3=a282_0x12ea();let _0x30fb1a=_0x12eae3[_0x15aac3];return _0x30fb1a;}function sleep(_0x29d792){return new Promise(_0x4c976f=>setTimeout(_0x4c976f,_0x29d792));}export function validateUrl(_0x479abd){try{return new URL(_0x479abd),!![];}catch{return![];}}
1
+ (function(_0x1d5872,_0x12f457){const _0x481579=a282_0x46d3,_0x45691d=_0x1d5872();while(!![]){try{const _0x3ae3f9=parseInt(_0x481579(0x1b4))/0x1+-parseInt(_0x481579(0x1aa))/0x2*(parseInt(_0x481579(0x1b2))/0x3)+-parseInt(_0x481579(0x198))/0x4*(-parseInt(_0x481579(0x1a9))/0x5)+-parseInt(_0x481579(0x199))/0x6+-parseInt(_0x481579(0x1a2))/0x7*(-parseInt(_0x481579(0x1ad))/0x8)+-parseInt(_0x481579(0x1a5))/0x9+-parseInt(_0x481579(0x1ac))/0xa*(parseInt(_0x481579(0x1a0))/0xb);if(_0x3ae3f9===_0x12f457)break;else _0x45691d['push'](_0x45691d['shift']());}catch(_0x423293){_0x45691d['push'](_0x45691d['shift']());}}}(a282_0x261a,0x2e7cc));export async function httpRequest(_0x1870fe,_0x2a8c88={}){const _0x4fec75=a282_0x46d3,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2a8c88;let _0x401c91=null;for(let _0x1191bc=0x0;_0x1191bc<=retries;_0x1191bc++){try{const _0x54d7ad=new AbortController(),_0x2264bb=setTimeout(()=>_0x54d7ad[_0x4fec75(0x1a6)](),timeout),_0x2b3b8a=await fetch(_0x1870fe,{'headers':headers,'signal':_0x54d7ad['signal']});clearTimeout(_0x2264bb);let _0x3788c6;const _0x255076=_0x2b3b8a[_0x4fec75(0x19d)][_0x4fec75(0x19a)](_0x4fec75(0x19e));return _0x255076?.[_0x4fec75(0x1b1)]('application/json')?_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1b3)]():_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1a4)](),{'ok':_0x2b3b8a['ok'],'status':_0x2b3b8a[_0x4fec75(0x19c)],'statusText':_0x2b3b8a[_0x4fec75(0x1a7)],'data':_0x3788c6,'headers':_0x2b3b8a[_0x4fec75(0x19d)],'url':_0x2b3b8a[_0x4fec75(0x1a8)],'text':()=>_0x2b3b8a[_0x4fec75(0x1a4)]()};}catch(_0x3e16a6){_0x401c91=_0x3e16a6 instanceof Error?_0x3e16a6:new Error(String(_0x3e16a6));if(_0x1191bc===retries)break;if(shouldRetry(_0x3e16a6)){console[_0x4fec75(0x1af)](_0x4fec75(0x1ae)+retryDelay+_0x4fec75(0x1ab)+(_0x1191bc+0x1)+_0x4fec75(0x1a1)),await sleep(retryDelay);continue;}else break;}}throw _0x401c91||new Error(_0x4fec75(0x19b));}function shouldRetry(_0x2ed19a){const _0x3103fd=a282_0x46d3;if(_0x2ed19a instanceof Error){if(_0x2ed19a['name']===_0x3103fd(0x196))return![];if(_0x2ed19a[_0x3103fd(0x194)]===_0x3103fd(0x1b0)&&_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x197)))return!![];if(_0x2ed19a['message'][_0x3103fd(0x1b1)](_0x3103fd(0x195)))return!![];if(_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x19f)))return![];}return![];}function a282_0x46d3(_0x4b4a78,_0x5d6b67){_0x4b4a78=_0x4b4a78-0x194;const _0x261a3e=a282_0x261a();let _0x46d31c=_0x261a3e[_0x4b4a78];return _0x46d31c;}function a282_0x261a(){const _0x23840c=['757647xtvDnD','abort','statusText','url','3695QnLinb','2gQBsbO','ms\x20后进行第\x20','2377030mZiIfN','32616TsrPhb','*\x20请求失败,','log','TypeError','includes','354111rDZcow','json','310676UgYQIl','name','ECONNRESET','AbortError','fetch','1668vkVMow','1325358JLvHBb','get','Request\x20failed','status','headers','content-type','ENOTFOUND','11KHjsFL','\x20次重试...','399CJXPxa','message','text'];a282_0x261a=function(){return _0x23840c;};return a282_0x261a();}function sleep(_0x20bc52){return new Promise(_0x4287f6=>setTimeout(_0x4287f6,_0x20bc52));}export function validateUrl(_0x3f0294){try{return new URL(_0x3f0294),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a283_0x25b6(){const _0x790ab=['24PxUgbh','5nfhLbm','10162240WbcVHl','6057qbaeTY','436031UgvcnZ','774403FqOKbN','isTTY','true','84ihuuRG','935982OtDkxU','1777056hBwXvR','7090HIXYIT','stdin','setRawMode','21924WeoefY'];a283_0x25b6=function(){return _0x790ab;};return a283_0x25b6();}(function(_0x37df7b,_0x255fc1){const _0x51337a=a283_0x16c2,_0x45aa26=_0x37df7b();while(!![]){try{const _0x4c1e7b=parseInt(_0x51337a(0x1d4))/0x1+-parseInt(_0x51337a(0x1c9))/0x2*(parseInt(_0x51337a(0x1cf))/0x3)+parseInt(_0x51337a(0x1cb))/0x4+parseInt(_0x51337a(0x1d1))/0x5*(-parseInt(_0x51337a(0x1ca))/0x6)+parseInt(_0x51337a(0x1c6))/0x7*(parseInt(_0x51337a(0x1d0))/0x8)+-parseInt(_0x51337a(0x1d3))/0x9*(-parseInt(_0x51337a(0x1cc))/0xa)+-parseInt(_0x51337a(0x1d2))/0xb;if(_0x4c1e7b===_0x255fc1)break;else _0x45aa26['push'](_0x45aa26['shift']());}catch(_0x8ba8da){_0x45aa26['push'](_0x45aa26['shift']());}}}(a283_0x25b6,0x49de6));function env(_0x42baf4){return process.env[`RABETBASE_${_0x42baf4}`]||process.env[`LOVRABET_${_0x42baf4}`]||undefined;}export function isNonInteractive(_0x31eedb){const _0x4685e5=a283_0x16c2;return!!(_0x31eedb['nonInteractive']||_0x31eedb['ci']||env('CI')===_0x4685e5(0x1c8)||process.env.CI===_0x4685e5(0x1c8)||!process['stdout'][_0x4685e5(0x1c7)]||!isStdinRawModeSupported());}function a283_0x16c2(_0x45d3a2,_0x5af116){_0x45d3a2=_0x45d3a2-0x1c6;const _0x25b698=a283_0x25b6();let _0x16c26b=_0x25b698[_0x45d3a2];return _0x16c26b;}function isStdinRawModeSupported(){const _0x20b552=a283_0x16c2;if(!process[_0x20b552(0x1cd)]['isTTY'])return![];try{const _0x3f3040=process[_0x20b552(0x1cd)]['isRaw'];return process[_0x20b552(0x1cd)][_0x20b552(0x1ce)](!![]),process[_0x20b552(0x1cd)][_0x20b552(0x1ce)](_0x3f3040??![]),!![];}catch{return![];}}
1
+ (function(_0x461e03,_0x5c6dd3){const _0x351832=a283_0x522e,_0x104993=_0x461e03();while(!![]){try{const _0x1753b1=-parseInt(_0x351832(0x196))/0x1+-parseInt(_0x351832(0x1a2))/0x2*(parseInt(_0x351832(0x19f))/0x3)+parseInt(_0x351832(0x197))/0x4+-parseInt(_0x351832(0x19b))/0x5*(-parseInt(_0x351832(0x19d))/0x6)+parseInt(_0x351832(0x193))/0x7*(parseInt(_0x351832(0x194))/0x8)+parseInt(_0x351832(0x19e))/0x9+-parseInt(_0x351832(0x1a1))/0xa;if(_0x1753b1===_0x5c6dd3)break;else _0x104993['push'](_0x104993['shift']());}catch(_0x2f537b){_0x104993['push'](_0x104993['shift']());}}}(a283_0x86f2,0xbeee1));function env(_0x2ac0db){return process.env[`RABETBASE_${_0x2ac0db}`]||process.env[`LOVRABET_${_0x2ac0db}`]||undefined;}function a283_0x522e(_0x266320,_0xd38ba8){_0x266320=_0x266320-0x192;const _0x86f2f=a283_0x86f2();let _0x522e51=_0x86f2f[_0x266320];return _0x522e51;}export function isNonInteractive(_0x52284e){const _0x264a69=a283_0x522e;return!!(_0x52284e[_0x264a69(0x192)]||_0x52284e['ci']||env('CI')===_0x264a69(0x195)||process.env.CI===_0x264a69(0x195)||!process[_0x264a69(0x1a0)]['isTTY']||!isStdinRawModeSupported());}function a283_0x86f2(){const _0x41acc9=['1639656lKzRFx','isTTY','isRaw','stdin','25rHcatU','setRawMode','1400004DCMqDj','9019584kBRHWq','201ZZtPQI','stdout','10008940NbgTyV','17002ckvNZI','nonInteractive','7DSptPq','7389456PGigLW','true','1149932xLpRQk'];a283_0x86f2=function(){return _0x41acc9;};return a283_0x86f2();}function isStdinRawModeSupported(){const _0x3ac798=a283_0x522e;if(!process[_0x3ac798(0x19a)][_0x3ac798(0x198)])return![];try{const _0x415313=process[_0x3ac798(0x19a)][_0x3ac798(0x199)];return process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](!![]),process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](_0x415313??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a284_0xf49431=a284_0x2352;(function(_0x674ef3,_0x31546d){const _0x47264b=a284_0x2352,_0x1b95fb=_0x674ef3();while(!![]){try{const _0x353000=parseInt(_0x47264b(0x14d))/0x1*(-parseInt(_0x47264b(0x13d))/0x2)+-parseInt(_0x47264b(0x120))/0x3+parseInt(_0x47264b(0x123))/0x4+-parseInt(_0x47264b(0x13a))/0x5+-parseInt(_0x47264b(0x12c))/0x6*(-parseInt(_0x47264b(0x14a))/0x7)+-parseInt(_0x47264b(0x11f))/0x8*(parseInt(_0x47264b(0x139))/0x9)+-parseInt(_0x47264b(0x144))/0xa*(-parseInt(_0x47264b(0x11b))/0xb);if(_0x353000===_0x31546d)break;else _0x1b95fb['push'](_0x1b95fb['shift']());}catch(_0x3a8514){_0x1b95fb['push'](_0x1b95fb['shift']());}}}(a284_0x10cd,0x21ccf));import a284_0x16af43 from'winston';function a284_0x2352(_0x54e051,_0x2626ce){_0x54e051=_0x54e051-0x116;const _0x10cddd=a284_0x10cd();let _0x2352b2=_0x10cddd[_0x54e051];return _0x2352b2;}import a284_0x30f0c5 from'node:fs';import a284_0x595412 from'node:path';function a284_0x10cd(){const _0x10e23e=['.lovrabet.log','1FfHvYC','unknown','parse','yellow','readFileSync','error','stringify','11xKcBjs','writeFileSync','combine','currentRawCommand','24EttQja','268368rALDSe','timestamp','setLogPath','416516QSGmIF','duration','readLogs','command','existsSync','失败:\x20','File','log','Failed\x20to\x20read\x20logs:','3918Ixixkh','initWinstonLogger','getWinstonInstance','red','info','warn','success','now','trim','blue','format','map','clear','509751YTGUpp','1244625XCTfcK','mkdirSync','green','383342DixmXi','utf8','开始执行:\x20','message','createLogger','logFilePath','logTask','5971570qhMcVD','Failed\x20to\x20clear\x20logs:','setRawCommand','errors','printf','details','1470bPZtsS','winstonLogger'];a284_0x10cd=function(){return _0x10e23e;};return a284_0x10cd();}class Logger{[a284_0xf49431(0x14b)];[a284_0xf49431(0x142)];[a284_0xf49431(0x11e)]='';constructor(){this['logFilePath']='';}[a284_0xf49431(0x146)](_0x2f0b6b){this['currentRawCommand']=_0x2f0b6b;}[a284_0xf49431(0x12d)](){const _0x298e37=a284_0xf49431,_0x39f69e=a284_0x595412['dirname'](this['logFilePath']);!a284_0x30f0c5['existsSync'](_0x39f69e)&&a284_0x30f0c5[_0x298e37(0x13b)](_0x39f69e,{'recursive':!![]});const _0x155c1c=a284_0x16af43[_0x298e37(0x136)][_0x298e37(0x11d)](a284_0x16af43[_0x298e37(0x136)][_0x298e37(0x121)](),a284_0x16af43['format'][_0x298e37(0x147)]({'stack':!![]}),a284_0x16af43['format'][_0x298e37(0x148)](_0x649c9e=>{const _0x1d1517=_0x298e37,_0x2bbd00={'timestamp':_0x649c9e[_0x1d1517(0x121)]||new Date()['toISOString'](),'level':_0x649c9e['level']||_0x1d1517(0x130),'command':_0x649c9e[_0x1d1517(0x126)]||_0x1d1517(0x14e),'rawCommand':_0x649c9e['rawCommand']||this[_0x1d1517(0x11e)]||undefined,'message':_0x649c9e[_0x1d1517(0x140)]||'','duration':_0x649c9e[_0x1d1517(0x124)]||undefined,'details':_0x649c9e[_0x1d1517(0x149)]||undefined};return JSON[_0x1d1517(0x11a)](_0x2bbd00);}));this[_0x298e37(0x14b)]=a284_0x16af43[_0x298e37(0x141)]({'level':'info','format':_0x155c1c,'transports':[new a284_0x16af43['transports'][(_0x298e37(0x129))]({'filename':this[_0x298e37(0x142)],'level':_0x298e37(0x130)})],'silent':![]}),a284_0x16af43['addColors']({'success':_0x298e37(0x13c),'error':_0x298e37(0x12f),'warn':_0x298e37(0x117),'info':_0x298e37(0x135)});}[a284_0xf49431(0x122)](_0x1dc774){const _0x3bc478=a284_0xf49431;this[_0x3bc478(0x142)]=a284_0x595412['join'](_0x1dc774,_0x3bc478(0x14c)),this[_0x3bc478(0x14b)]&&this[_0x3bc478(0x14b)][_0x3bc478(0x138)](),this[_0x3bc478(0x12d)]();}['info'](_0x4f7097,_0x395834,_0x3d594f){const _0x57245f=a284_0xf49431;if(!this[_0x57245f(0x142)]||!this[_0x57245f(0x14b)])return;this[_0x57245f(0x14b)][_0x57245f(0x130)](_0x395834,{'command':_0x4f7097,'details':_0x3d594f});}[a284_0xf49431(0x132)](_0x4c7d39,_0x25b4fe,_0x36ee0f,_0x542591){const _0x5cb58a=a284_0xf49431;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x5cb58a(0x14b)][_0x5cb58a(0x12a)]('info',_0x25b4fe,{'level':_0x5cb58a(0x132),'command':_0x4c7d39,'duration':_0x36ee0f,'details':_0x542591});}[a284_0xf49431(0x119)](_0x140184,_0x1cf283,_0x2faa62){const _0x46305d=a284_0xf49431;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x46305d(0x14b)][_0x46305d(0x119)](_0x1cf283,{'command':_0x140184,'details':_0x2faa62});}[a284_0xf49431(0x131)](_0x7344a9,_0x2a867b,_0x30b8bb){const _0x16e9d0=a284_0xf49431;if(!this[_0x16e9d0(0x142)]||!this['winstonLogger'])return;this[_0x16e9d0(0x14b)][_0x16e9d0(0x131)](_0x2a867b,{'command':_0x7344a9,'details':_0x30b8bb});}async[a284_0xf49431(0x143)](_0x380ad0,_0x34a6b5,_0x3b5351){const _0x5ee781=a284_0xf49431,_0x621152=Date[_0x5ee781(0x133)]();this[_0x5ee781(0x130)](_0x380ad0,_0x5ee781(0x13f)+_0x34a6b5);try{const _0x465b73=await _0x3b5351(),_0x49bd99=Date[_0x5ee781(0x133)]()-_0x621152;return this[_0x5ee781(0x132)](_0x380ad0,'完成:\x20'+_0x34a6b5,_0x49bd99),_0x465b73;}catch(_0x51b1fd){const _0x12f29a=Date['now']()-_0x621152;this['error'](_0x380ad0,_0x5ee781(0x128)+_0x34a6b5,{'error':_0x51b1fd instanceof Error?_0x51b1fd[_0x5ee781(0x140)]:String(_0x51b1fd),'duration':_0x12f29a});throw _0x51b1fd;}}[a284_0xf49431(0x125)](){const _0x55f0a2=a284_0xf49431;try{if(!a284_0x30f0c5[_0x55f0a2(0x127)](this[_0x55f0a2(0x142)]))return[];const _0x1b7e85=a284_0x30f0c5[_0x55f0a2(0x118)](this[_0x55f0a2(0x142)],'utf8');return _0x1b7e85['split']('\x0a')['filter'](_0x21e41c=>_0x21e41c[_0x55f0a2(0x134)]())[_0x55f0a2(0x137)](_0x10b1fa=>JSON[_0x55f0a2(0x116)](_0x10b1fa));}catch(_0x5a99a3){return console['warn'](_0x55f0a2(0x12b),_0x5a99a3),[];}}['clearLogs'](){const _0x2311a2=a284_0xf49431;try{a284_0x30f0c5[_0x2311a2(0x127)](this[_0x2311a2(0x142)])&&a284_0x30f0c5[_0x2311a2(0x11c)](this[_0x2311a2(0x142)],'',_0x2311a2(0x13e));}catch(_0x58790e){console[_0x2311a2(0x131)](_0x2311a2(0x145),_0x58790e);}}[a284_0xf49431(0x12e)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a284_0x31b047=a284_0x57cf;function a284_0x5f0d(){const _0x26071b=['909198zANMjw','5LvunFd','level','setRawCommand','success','red','3512957wzpwTG','error','File','transports','yellow','timestamp','combine','warn','format','2097788VsZcre','errors','stringify','addColors','Failed\x20to\x20clear\x20logs:','duration','toISOString','winstonLogger','3527721IQrlnF','split','now','1710bhiDXK','utf8','existsSync','失败:\x20','8rbvcok','readLogs','printf','Failed\x20to\x20read\x20logs:','logFilePath','initWinstonLogger','rawCommand','info','dirname','filter','setLogPath','58450GxJGeU','unknown','blue','logTask','log','mkdirSync','currentRawCommand','完成:\x20','开始执行:\x20','getWinstonInstance','details','4372960fhAKsc','817196IfnNgm','clear'];a284_0x5f0d=function(){return _0x26071b;};return a284_0x5f0d();}(function(_0x24c920,_0x516bde){const _0x5989f8=a284_0x57cf,_0x79f09c=_0x24c920();while(!![]){try{const _0xdb3f70=parseInt(_0x5989f8(0xa9))/0x1+-parseInt(_0x5989f8(0xba))/0x2+parseInt(_0x5989f8(0xc2))/0x3+-parseInt(_0x5989f8(0xdf))/0x4+parseInt(_0x5989f8(0xac))/0x5*(parseInt(_0x5989f8(0xab))/0x6)+-parseInt(_0x5989f8(0xb1))/0x7*(parseInt(_0x5989f8(0xc9))/0x8)+parseInt(_0x5989f8(0xc5))/0x9*(parseInt(_0x5989f8(0xd4))/0xa);if(_0xdb3f70===_0x516bde)break;else _0x79f09c['push'](_0x79f09c['shift']());}catch(_0x270cee){_0x79f09c['push'](_0x79f09c['shift']());}}}(a284_0x5f0d,0x95381));function a284_0x57cf(_0x14bb77,_0xaf68e5){_0x14bb77=_0x14bb77-0xa9;const _0x5f0d33=a284_0x5f0d();let _0x57cf7c=_0x5f0d33[_0x14bb77];return _0x57cf7c;}import a284_0x4ba0b0 from'winston';import a284_0x1c0096 from'node:fs';import a284_0x3fcc16 from'node:path';class Logger{['winstonLogger'];[a284_0x31b047(0xcd)];[a284_0x31b047(0xda)]='';constructor(){this['logFilePath']='';}[a284_0x31b047(0xae)](_0x6453e5){const _0x1892f2=a284_0x31b047;this[_0x1892f2(0xda)]=_0x6453e5;}[a284_0x31b047(0xce)](){const _0x5d81c3=a284_0x31b047,_0x3044ae=a284_0x3fcc16[_0x5d81c3(0xd1)](this[_0x5d81c3(0xcd)]);!a284_0x1c0096[_0x5d81c3(0xc7)](_0x3044ae)&&a284_0x1c0096[_0x5d81c3(0xd9)](_0x3044ae,{'recursive':!![]});const _0x5a5170=a284_0x4ba0b0[_0x5d81c3(0xb9)][_0x5d81c3(0xb7)](a284_0x4ba0b0['format'][_0x5d81c3(0xb6)](),a284_0x4ba0b0['format'][_0x5d81c3(0xbb)]({'stack':!![]}),a284_0x4ba0b0[_0x5d81c3(0xb9)][_0x5d81c3(0xcb)](_0x4d4cdc=>{const _0xd4cef8=_0x5d81c3,_0x1250e2={'timestamp':_0x4d4cdc['timestamp']||new Date()[_0xd4cef8(0xc0)](),'level':_0x4d4cdc[_0xd4cef8(0xad)]||_0xd4cef8(0xd0),'command':_0x4d4cdc['command']||_0xd4cef8(0xd5),'rawCommand':_0x4d4cdc[_0xd4cef8(0xcf)]||this[_0xd4cef8(0xda)]||undefined,'message':_0x4d4cdc['message']||'','duration':_0x4d4cdc[_0xd4cef8(0xbf)]||undefined,'details':_0x4d4cdc[_0xd4cef8(0xde)]||undefined};return JSON[_0xd4cef8(0xbc)](_0x1250e2);}));this[_0x5d81c3(0xc1)]=a284_0x4ba0b0['createLogger']({'level':_0x5d81c3(0xd0),'format':_0x5a5170,'transports':[new a284_0x4ba0b0[(_0x5d81c3(0xb4))][(_0x5d81c3(0xb3))]({'filename':this[_0x5d81c3(0xcd)],'level':_0x5d81c3(0xd0)})],'silent':![]}),a284_0x4ba0b0[_0x5d81c3(0xbd)]({'success':'green','error':_0x5d81c3(0xb0),'warn':_0x5d81c3(0xb5),'info':_0x5d81c3(0xd6)});}[a284_0x31b047(0xd3)](_0xfacad3){const _0x5a202e=a284_0x31b047;this[_0x5a202e(0xcd)]=a284_0x3fcc16['join'](_0xfacad3,'.lovrabet.log'),this[_0x5a202e(0xc1)]&&this['winstonLogger'][_0x5a202e(0xaa)](),this[_0x5a202e(0xce)]();}[a284_0x31b047(0xd0)](_0x5d9f87,_0x273cb3,_0x234d03){const _0x272ca5=a284_0x31b047;if(!this['logFilePath']||!this[_0x272ca5(0xc1)])return;this[_0x272ca5(0xc1)]['info'](_0x273cb3,{'command':_0x5d9f87,'details':_0x234d03});}[a284_0x31b047(0xaf)](_0x484602,_0x595a7b,_0x2d429b,_0x4ae76e){const _0x35e6be=a284_0x31b047;if(!this[_0x35e6be(0xcd)]||!this[_0x35e6be(0xc1)])return;this['winstonLogger'][_0x35e6be(0xd8)](_0x35e6be(0xd0),_0x595a7b,{'level':_0x35e6be(0xaf),'command':_0x484602,'duration':_0x2d429b,'details':_0x4ae76e});}[a284_0x31b047(0xb2)](_0x13b7e9,_0x7c775d,_0x1e18df){const _0x3007fb=a284_0x31b047;if(!this[_0x3007fb(0xcd)]||!this['winstonLogger'])return;this[_0x3007fb(0xc1)][_0x3007fb(0xb2)](_0x7c775d,{'command':_0x13b7e9,'details':_0x1e18df});}[a284_0x31b047(0xb8)](_0x364b68,_0x96beb7,_0x2f3d32){const _0x2db149=a284_0x31b047;if(!this[_0x2db149(0xcd)]||!this[_0x2db149(0xc1)])return;this['winstonLogger'][_0x2db149(0xb8)](_0x96beb7,{'command':_0x364b68,'details':_0x2f3d32});}async[a284_0x31b047(0xd7)](_0x393583,_0x2054a3,_0x242496){const _0x386703=a284_0x31b047,_0x530e7e=Date[_0x386703(0xc4)]();this[_0x386703(0xd0)](_0x393583,_0x386703(0xdc)+_0x2054a3);try{const _0x63ab40=await _0x242496(),_0x1c353f=Date[_0x386703(0xc4)]()-_0x530e7e;return this[_0x386703(0xaf)](_0x393583,_0x386703(0xdb)+_0x2054a3,_0x1c353f),_0x63ab40;}catch(_0x276934){const _0x2ded65=Date[_0x386703(0xc4)]()-_0x530e7e;this[_0x386703(0xb2)](_0x393583,_0x386703(0xc8)+_0x2054a3,{'error':_0x276934 instanceof Error?_0x276934['message']:String(_0x276934),'duration':_0x2ded65});throw _0x276934;}}[a284_0x31b047(0xca)](){const _0x4d048b=a284_0x31b047;try{if(!a284_0x1c0096[_0x4d048b(0xc7)](this['logFilePath']))return[];const _0x304d05=a284_0x1c0096['readFileSync'](this[_0x4d048b(0xcd)],_0x4d048b(0xc6));return _0x304d05[_0x4d048b(0xc3)]('\x0a')[_0x4d048b(0xd2)](_0x4c3d58=>_0x4c3d58['trim']())['map'](_0x2f091f=>JSON['parse'](_0x2f091f));}catch(_0x2f1c9b){return console[_0x4d048b(0xb8)](_0x4d048b(0xcc),_0x2f1c9b),[];}}['clearLogs'](){const _0x1eeec8=a284_0x31b047;try{a284_0x1c0096['existsSync'](this[_0x1eeec8(0xcd)])&&a284_0x1c0096['writeFileSync'](this['logFilePath'],'',_0x1eeec8(0xc6));}catch(_0x5568c6){console['warn'](_0x1eeec8(0xbe),_0x5568c6);}}[a284_0x31b047(0xdd)](){const _0x3a6a37=a284_0x31b047;return this[_0x3a6a37(0xc1)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x43e312,_0x5a6fc7){const _0x17b077=a285_0x55fd,_0x54206e=_0x43e312();while(!![]){try{const _0x292788=parseInt(_0x17b077(0x107))/0x1+parseInt(_0x17b077(0x115))/0x2*(parseInt(_0x17b077(0x113))/0x3)+-parseInt(_0x17b077(0x112))/0x4*(-parseInt(_0x17b077(0x10a))/0x5)+parseInt(_0x17b077(0x109))/0x6+-parseInt(_0x17b077(0x110))/0x7*(parseInt(_0x17b077(0x10d))/0x8)+-parseInt(_0x17b077(0x10f))/0x9*(-parseInt(_0x17b077(0x10e))/0xa)+-parseInt(_0x17b077(0x106))/0xb*(parseInt(_0x17b077(0x114))/0xc);if(_0x292788===_0x5a6fc7)break;else _0x54206e['push'](_0x54206e['shift']());}catch(_0x187312){_0x54206e['push'](_0x54206e['shift']());}}}(a285_0x2232,0x3ada0));function a285_0x2232(){const _0x24dc99=['12ApqAyq','2RMRAZV','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','13817177OcsQFU','395807XcmfRN','--params\x20must\x20be\x20a\x20JSON\x20object','2429844irgmqq','920ErIVre','isArray','parse','1900768AfmOAn','40ShvCZx','462843ITEqpc','7oMECJf','Invalid\x20JSON\x20for\x20--params:\x20','9604TlePoX','859458kpLfgg'];a285_0x2232=function(){return _0x24dc99;};return a285_0x2232();}import{CliErrors}from'../errors.js';function a285_0x55fd(_0x200320,_0x15a56e){_0x200320=_0x200320-0x105;const _0x2232e8=a285_0x2232();let _0x55fdbc=_0x2232e8[_0x200320];return _0x55fdbc;}export function parseJsonParams(_0x18ca2b){const _0x2a9c57=a285_0x55fd;if(!_0x18ca2b)return undefined;let _0x2190b1;try{_0x2190b1=JSON[_0x2a9c57(0x10c)](_0x18ca2b);}catch{throw CliErrors[_0x2a9c57(0x116)](_0x2a9c57(0x111)+_0x18ca2b);}if(!_0x2190b1||typeof _0x2190b1!=='object'||Array[_0x2a9c57(0x10b)](_0x2190b1))throw CliErrors[_0x2a9c57(0x116)](_0x2a9c57(0x108),_0x2a9c57(0x105));return _0x2190b1;}
1
+ (function(_0x1ba250,_0x74687d){const _0x17752f=a285_0xe4b8,_0x32e12f=_0x1ba250();while(!![]){try{const _0xc6bf70=parseInt(_0x17752f(0x1b9))/0x1*(parseInt(_0x17752f(0x1b1))/0x2)+-parseInt(_0x17752f(0x1b7))/0x3+-parseInt(_0x17752f(0x1b2))/0x4*(-parseInt(_0x17752f(0x1b8))/0x5)+parseInt(_0x17752f(0x1bd))/0x6*(parseInt(_0x17752f(0x1b6))/0x7)+-parseInt(_0x17752f(0x1b3))/0x8*(parseInt(_0x17752f(0x1be))/0x9)+-parseInt(_0x17752f(0x1b4))/0xa*(-parseInt(_0x17752f(0x1ba))/0xb)+-parseInt(_0x17752f(0x1bc))/0xc;if(_0xc6bf70===_0x74687d)break;else _0x32e12f['push'](_0x32e12f['shift']());}catch(_0x3c134b){_0x32e12f['push'](_0x32e12f['shift']());}}}(a285_0x28f7,0xb8292));import{CliErrors}from'../errors.js';function a285_0xe4b8(_0x48c0ab,_0x29da77){_0x48c0ab=_0x48c0ab-0x1b1;const _0x28f708=a285_0x28f7();let _0xe4b8d3=_0x28f708[_0x48c0ab];return _0xe4b8d3;}export function parseJsonParams(_0x4ddc11){const _0x3db1b9=a285_0xe4b8;if(!_0x4ddc11)return undefined;let _0x454672;try{_0x454672=JSON['parse'](_0x4ddc11);}catch{throw CliErrors[_0x3db1b9(0x1bf)](_0x3db1b9(0x1bb)+_0x4ddc11);}if(!_0x454672||typeof _0x454672!==_0x3db1b9(0x1c0)||Array['isArray'](_0x454672))throw CliErrors[_0x3db1b9(0x1bf)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x3db1b9(0x1b5));return _0x454672;}function a285_0x28f7(){const _0x464f76=['913PYlmTq','Invalid\x20JSON\x20for\x20--params:\x20','16484076BvUxzs','204tvfqPt','111123ZvuTdM','validation','object','2743384PuDOwb','4GwZXVF','744jFrPbA','106360enVSTl','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','94101yTacBu','864012xpUJnb','4263640bsKkDI','1Utgsvs'];a285_0x28f7=function(){return _0x464f76;};return a285_0x28f7();}
@@ -1 +1 @@
1
- const a286_0x55d2be=a286_0x1a89;function a286_0x1a89(_0x9c4bad,_0x25a353){_0x9c4bad=_0x9c4bad-0x157;const _0x517130=a286_0x5171();let _0x1a891a=_0x517130[_0x9c4bad];return _0x1a891a;}function a286_0x5171(){const _0x51ef23=['1611835ZByTbn','52874yUAkkq','3tPjvTu','.cmd','70MmbpYM','4137948vadkPV','platform','2049004qzXtly','21201273yEOOHw','12740120uaTTPA','9972228jpPWGW'];a286_0x5171=function(){return _0x51ef23;};return a286_0x5171();}(function(_0x56122a,_0x5c687d){const _0x460e28=a286_0x1a89,_0x47324d=_0x56122a();while(!![]){try{const _0x590429=parseInt(_0x460e28(0x15a))/0x1*(parseInt(_0x460e28(0x157))/0x2)+parseInt(_0x460e28(0x158))/0x3*(-parseInt(_0x460e28(0x15d))/0x4)+-parseInt(_0x460e28(0x161))/0x5+-parseInt(_0x460e28(0x15b))/0x6+parseInt(_0x460e28(0x160))/0x7+parseInt(_0x460e28(0x15f))/0x8+-parseInt(_0x460e28(0x15e))/0x9;if(_0x590429===_0x5c687d)break;else _0x47324d['push'](_0x47324d['shift']());}catch(_0xab18b5){_0x47324d['push'](_0x47324d['shift']());}}}(a286_0x5171,0xf1258));export const isWindows=process[a286_0x55d2be(0x15c)]==='win32';export function resolveNpmBin(_0x4b9bee){const _0x24c72c=a286_0x55d2be;return isWindows?_0x4b9bee+_0x24c72c(0x159):_0x4b9bee;}
1
+ const a286_0x85a41f=a286_0x1fd8;(function(_0x3c7120,_0x4cada8){const _0x318afc=a286_0x1fd8,_0x15b5f7=_0x3c7120();while(!![]){try{const _0x5c8089=parseInt(_0x318afc(0xe2))/0x1*(-parseInt(_0x318afc(0xe4))/0x2)+parseInt(_0x318afc(0xde))/0x3*(-parseInt(_0x318afc(0xdd))/0x4)+parseInt(_0x318afc(0xd9))/0x5+parseInt(_0x318afc(0xdf))/0x6*(-parseInt(_0x318afc(0xd7))/0x7)+parseInt(_0x318afc(0xda))/0x8*(parseInt(_0x318afc(0xe1))/0x9)+parseInt(_0x318afc(0xe3))/0xa*(parseInt(_0x318afc(0xdb))/0xb)+-parseInt(_0x318afc(0xdc))/0xc*(parseInt(_0x318afc(0xe0))/0xd);if(_0x5c8089===_0x4cada8)break;else _0x15b5f7['push'](_0x15b5f7['shift']());}catch(_0x1b79a9){_0x15b5f7['push'](_0x15b5f7['shift']());}}}(a286_0x4edd,0xab249));function a286_0x1fd8(_0x53c211,_0xf092a1){_0x53c211=_0x53c211-0xd7;const _0x4eddcf=a286_0x4edd();let _0x1fd864=_0x4eddcf[_0x53c211];return _0x1fd864;}function a286_0x4edd(){const _0x106044=['4264316JKdDjr','3avHxpY','50766Eiuuxt','27287QTAtMV','540blabdq','2WgWcmk','7310pjiDNh','258326prFKEN','.cmd','105ksqOkK','platform','3752535ghnWWn','151888BVlhWw','16555riclpT','4788pLKprk'];a286_0x4edd=function(){return _0x106044;};return a286_0x4edd();}export const isWindows=process[a286_0x85a41f(0xd8)]==='win32';export function resolveNpmBin(_0x31349d){const _0x45bc41=a286_0x85a41f;return isWindows?_0x31349d+_0x45bc41(0xe5):_0x31349d;}
@@ -1 +1 @@
1
- const a287_0x153e41=a287_0x7938;(function(_0x113e59,_0x418448){const _0x1e5e44=a287_0x7938,_0x332e84=_0x113e59();while(!![]){try{const _0x228663=-parseInt(_0x1e5e44(0x186))/0x1+-parseInt(_0x1e5e44(0x181))/0x2*(parseInt(_0x1e5e44(0x194))/0x3)+parseInt(_0x1e5e44(0x193))/0x4+parseInt(_0x1e5e44(0x18d))/0x5+-parseInt(_0x1e5e44(0x185))/0x6*(parseInt(_0x1e5e44(0x184))/0x7)+parseInt(_0x1e5e44(0x17f))/0x8+parseInt(_0x1e5e44(0x190))/0x9*(parseInt(_0x1e5e44(0x195))/0xa);if(_0x228663===_0x418448)break;else _0x332e84['push'](_0x332e84['shift']());}catch(_0x3eaca9){_0x332e84['push'](_0x332e84['shift']());}}}(a287_0x3615,0xca89e));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a287_0x3615(){const _0x397c29=['195084yHKDNC','statusText','../../templates/rules/lovrabet_rules.mdc.tpl','1573196EsFYLb','12444BvyFWd','70oFJAuG','string','1862288TfbanU','本地模板文件不存在:\x20','98kKbdDj','lastUpdated','agents.md','409346BzPCzl','18FVdZNY','955351pEKrgY','CDN\x20请求失败:\x20','application/json','/rules/rules.json','content','lovrabet_rules.mdc','json','6929090xmeyyn','status','catch'];a287_0x3615=function(){return _0x397c29;};return a287_0x3615();}import{getTemplateBaseUrl}from'../utils/config.js';function a287_0x7938(_0x21fe43,_0x26ff23){_0x21fe43=_0x21fe43-0x17e;const _0x3615a8=a287_0x3615();let _0x7938be=_0x3615a8[_0x21fe43];return _0x7938be;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x3070f1=a287_0x7938,_0x242c70=getTemplateBaseUrl();return _0x242c70+_0x3070f1(0x189);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0x153e41(0x192));export async function fetchRulesFromCDN(){const _0xd02626=a287_0x153e41,_0x2c7ab6=getRulesCdnUrl(),_0xc36115=await fetch(_0x2c7ab6,{'headers':{'Accept':_0xd02626(0x188)}});if(!_0xc36115['ok'])throw new Error(_0xd02626(0x187)+_0xc36115[_0xd02626(0x18e)]+'\x20'+_0xc36115[_0xd02626(0x191)]);const _0xa3e015=await _0xc36115[_0xd02626(0x18c)]();if(!_0xa3e015[_0xd02626(0x18a)]||typeof _0xa3e015['content']!==_0xd02626(0x17e))throw new Error('CDN\x20返回数据格式错误');return _0xa3e015;}export async function getRulesContent(){const _0x19bbf8=a287_0x153e41;try{const _0x31bf33=await fetchRulesFromCDN();return _0x31bf33[_0x19bbf8(0x18a)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x35d8b9=a287_0x153e41;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x35d8b9(0x180)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x36219b){const _0x2b7218=a287_0x153e41,_0xe76144=await fetchRulesFromCDN()[_0x2b7218(0x18f)](()=>null);let _0x494455;_0xe76144?(_0x494455=_0xe76144[_0x2b7218(0x18a)],_0xe76144[_0x2b7218(0x182)]&&(_0x494455=appendUpdateTime(_0x494455,_0xe76144[_0x2b7218(0x182)]))):_0x494455=readLocalTemplate();const _0x48fa84=dirname(_0x36219b);!existsSync(_0x48fa84)&&mkdirSync(_0x48fa84,{'recursive':!![]}),writeFileSync(_0x36219b,_0x494455,'utf-8');}export async function copyRulesToCursor(_0x12928a){const _0x4664bc=a287_0x153e41,_0x616b68=join(_0x12928a,'.cursor/rules'),_0x49aa89=join(_0x616b68,_0x4664bc(0x18b));if(existsSync(_0x49aa89))return![];return await writeRulesFile(_0x49aa89),!![];}export async function copyRulesToAgentsMd(_0x4c6984){const _0x58e97d=a287_0x153e41,_0x507e37=join(_0x4c6984,_0x58e97d(0x183));if(existsSync(_0x507e37))return![];return await writeRulesFile(_0x507e37),!![];}
1
+ (function(_0x1e8136,_0x7e623b){const _0x5e6f83=a287_0x2661,_0x1bb59a=_0x1e8136();while(!![]){try{const _0xd0ab89=parseInt(_0x5e6f83(0x1e5))/0x1*(-parseInt(_0x5e6f83(0x1e9))/0x2)+-parseInt(_0x5e6f83(0x1e7))/0x3*(parseInt(_0x5e6f83(0x1e3))/0x4)+-parseInt(_0x5e6f83(0x1e1))/0x5*(-parseInt(_0x5e6f83(0x1e4))/0x6)+-parseInt(_0x5e6f83(0x1e6))/0x7+parseInt(_0x5e6f83(0x1da))/0x8+-parseInt(_0x5e6f83(0x1db))/0x9*(-parseInt(_0x5e6f83(0x1e2))/0xa)+-parseInt(_0x5e6f83(0x1ee))/0xb*(-parseInt(_0x5e6f83(0x1dc))/0xc);if(_0xd0ab89===_0x7e623b)break;else _0x1bb59a['push'](_0x1bb59a['shift']());}catch(_0x513719){_0x1bb59a['push'](_0x1bb59a['shift']());}}}(a287_0x5691,0x9eb66));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a287_0x5691(){const _0x3e3787=['1911102gUYMOA','string','2bhvfgb','本地模板文件不存在:\x20','CDN\x20请求失败:\x20','lovrabet_rules.mdc','utf-8','33XaKObR','lastUpdated','7944528iBTlFH','5126391dXPWSp','1767516XyQAFq','content','status','agents.md','statusText','5lfSrIh','10xQuFOI','4NZLUcR','1563162MPcJrA','752847NWypav','1575728ALneQu'];a287_0x5691=function(){return _0x3e3787;};return a287_0x5691();}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 _0x3aeebd=getTemplateBaseUrl();return _0x3aeebd+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0xa8aece=a287_0x2661,_0x4a5328=getRulesCdnUrl(),_0x942ade=await fetch(_0x4a5328,{'headers':{'Accept':'application/json'}});if(!_0x942ade['ok'])throw new Error(_0xa8aece(0x1eb)+_0x942ade[_0xa8aece(0x1de)]+'\x20'+_0x942ade[_0xa8aece(0x1e0)]);const _0x5d85ac=await _0x942ade['json']();if(!_0x5d85ac[_0xa8aece(0x1dd)]||typeof _0x5d85ac[_0xa8aece(0x1dd)]!==_0xa8aece(0x1e8))throw new Error('CDN\x20返回数据格式错误');return _0x5d85ac;}export async function getRulesContent(){const _0x33aa6e=a287_0x2661;try{const _0x34e0c4=await fetchRulesFromCDN();return _0x34e0c4[_0x33aa6e(0x1dd)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2a8c37=a287_0x2661;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2a8c37(0x1ed));throw new Error(_0x2a8c37(0x1ea)+LOCAL_TEMPLATE_PATH);}function a287_0x2661(_0x44d23e,_0x538718){_0x44d23e=_0x44d23e-0x1d9;const _0x5691cb=a287_0x5691();let _0x2661c5=_0x5691cb[_0x44d23e];return _0x2661c5;}export async function writeRulesFile(_0x45ca42){const _0x47419e=a287_0x2661,_0xe13f4f=await fetchRulesFromCDN()['catch'](()=>null);let _0x41fa68;_0xe13f4f?(_0x41fa68=_0xe13f4f[_0x47419e(0x1dd)],_0xe13f4f[_0x47419e(0x1d9)]&&(_0x41fa68=appendUpdateTime(_0x41fa68,_0xe13f4f[_0x47419e(0x1d9)]))):_0x41fa68=readLocalTemplate();const _0x879eb9=dirname(_0x45ca42);!existsSync(_0x879eb9)&&mkdirSync(_0x879eb9,{'recursive':!![]}),writeFileSync(_0x45ca42,_0x41fa68,_0x47419e(0x1ed));}export async function copyRulesToCursor(_0x27edb5){const _0x10cc8c=a287_0x2661,_0x505280=join(_0x27edb5,'.cursor/rules'),_0x35c4fe=join(_0x505280,_0x10cc8c(0x1ec));if(existsSync(_0x35c4fe))return![];return await writeRulesFile(_0x35c4fe),!![];}export async function copyRulesToAgentsMd(_0x2254ba){const _0x2e8c05=a287_0x2661,_0x51e83d=join(_0x2254ba,_0x2e8c05(0x1df));if(existsSync(_0x51e83d))return![];return await writeRulesFile(_0x51e83d),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1e4249){return new Promise(_0x21ff9c=>setTimeout(_0x21ff9c,_0x1e4249));}
1
+ export function sleep(_0x3d8ce1){return new Promise(_0x410dba=>setTimeout(_0x410dba,_0x3d8ce1));}
@@ -1 +1 @@
1
- const a289_0x449bba=a289_0x45eb;(function(_0x39df5f,_0x81a571){const _0x596516=a289_0x45eb,_0x406a87=_0x39df5f();while(!![]){try{const _0xe98b37=parseInt(_0x596516(0x1ee))/0x1*(-parseInt(_0x596516(0x1f6))/0x2)+-parseInt(_0x596516(0x1cd))/0x3*(parseInt(_0x596516(0x202))/0x4)+-parseInt(_0x596516(0x1e1))/0x5*(-parseInt(_0x596516(0x211))/0x6)+-parseInt(_0x596516(0x1eb))/0x7*(-parseInt(_0x596516(0x1ea))/0x8)+-parseInt(_0x596516(0x1f9))/0x9+parseInt(_0x596516(0x203))/0xa+parseInt(_0x596516(0x200))/0xb*(parseInt(_0x596516(0x1fc))/0xc);if(_0xe98b37===_0x81a571)break;else _0x406a87['push'](_0x406a87['shift']());}catch(_0x306f9e){_0x406a87['push'](_0x406a87['shift']());}}}(a289_0x3f07,0x7dd8c));import a289_0x3b22e3 from'node:fs';import a289_0x3dc092 from'node:path';import{logger}from'../utils/logger.js';function a289_0x45eb(_0x3082d4,_0x35896a){_0x3082d4=_0x3082d4-0x1c8;const _0x3f076c=a289_0x3f07();let _0x45ebe2=_0x3f076c[_0x3082d4];return _0x45ebe2;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x449bba(0x209)](_0x105f3d){const _0x3ad275=a289_0x449bba;return String(_0x105f3d)[_0x3ad275(0x1ec)](0x2,'0');}static[a289_0x449bba(0x1cb)](_0xac095e){const _0xcadc2d=a289_0x449bba,_0x57bccb=_0xac095e[_0xcadc2d(0x1ca)](),_0x3d2d19=this[_0xcadc2d(0x209)](_0xac095e[_0xcadc2d(0x1e8)]()+0x1),_0x47afd6=this[_0xcadc2d(0x209)](_0xac095e[_0xcadc2d(0x1d7)]()),_0x28c6d5=this[_0xcadc2d(0x209)](_0xac095e[_0xcadc2d(0x1f3)]()),_0x3d2842=this[_0xcadc2d(0x209)](_0xac095e[_0xcadc2d(0x1db)]()),_0x180184=this[_0xcadc2d(0x209)](_0xac095e[_0xcadc2d(0x1df)]());return{'createdAt':_0x57bccb+'-'+_0x3d2d19+'-'+_0x47afd6+'\x20'+_0x28c6d5+':'+_0x3d2842+':'+_0x180184,'createdDate':_0x57bccb+'-'+_0x3d2d19+'-'+_0x47afd6,'createdTime':_0x28c6d5+':'+_0x3d2842+':'+_0x180184};}static[a289_0x449bba(0x20c)](_0x4ef1e0){const _0x5324c1=a289_0x449bba,_0xcbc7b5=_0x4ef1e0[_0x5324c1(0x1cc)]('/')[_0x5324c1(0x1e0)]()||_0x4ef1e0;return _0xcbc7b5[_0x5324c1(0x1cc)]('-')['map'](_0x5bf557=>_0x5bf557['charAt'](0x0)[_0x5324c1(0x1f7)]()+_0x5bf557[_0x5324c1(0x20f)](0x1)[_0x5324c1(0x1e9)]())[_0x5324c1(0x1ef)]('');}static['toDisplayTitle'](_0x25ce81){const _0x2ed4c6=a289_0x449bba,_0x1012fd=_0x25ce81[_0x2ed4c6(0x1cc)]('/')[_0x2ed4c6(0x1e0)]()||_0x25ce81;return _0x1012fd[_0x2ed4c6(0x1cc)]('-')[_0x2ed4c6(0x1de)](_0x156615=>_0x156615[_0x2ed4c6(0x208)](0x0)['toUpperCase']()+_0x156615['slice'](0x1)[_0x2ed4c6(0x1e9)]())['join']('\x20');}static[a289_0x449bba(0x1d9)](_0x30c3e3,_0x509ce5,_0x4b0f47){const _0x147b7f=a289_0x449bba,_0x57932c=this[_0x147b7f(0x20c)](_0x509ce5),_0x10e120=this[_0x147b7f(0x1e2)](_0x509ce5),{createdAt:_0x765aaa,createdDate:_0x3a16a2,createdTime:_0x4fbca0}=this[_0x147b7f(0x1cb)](new Date());let _0x4dfd3d=_0x30c3e3[_0x147b7f(0x1d2)](/\{CliVersion\}/g,CLI_VERSION)[_0x147b7f(0x1d2)](/\{ComponentName\}/g,_0x57932c)[_0x147b7f(0x1d2)](/\{DisplayTitle\}/g,_0x10e120)[_0x147b7f(0x1d2)](/\{PageName\}/g,_0x509ce5)[_0x147b7f(0x1d2)](/\{TemplateName\}/g,_0x4b0f47)[_0x147b7f(0x1d2)](/\{CreatedAt\}/g,_0x765aaa)[_0x147b7f(0x1d2)](/\{CreatedDate\}/g,_0x3a16a2)['replace'](/\{CreatedTime\}/g,_0x4fbca0);return _0x4dfd3d;}static['replaceApiContent'](_0x5ed8d0,_0x559d49,_0x5f1b65,_0x6013f9,_0x13a93e,_0x5ac8eb,_0x4027ff,_0x6ec176){const _0x5cc660=a289_0x449bba,_0x5ed798=new Date(),_0x337ff1=_0x5ed798['toISOString'](),_0x4a7b34=_0x5f1b65['map'](_0x9f917c=>{const _0x112063=a289_0x45eb,_0x38aea1=[_0x112063(0x204)+_0x9f917c['datasetCode']+'\x22','tableName:\x20\x22'+_0x9f917c[_0x112063(0x1e5)]+'\x22',_0x112063(0x20b)+_0x9f917c[_0x112063(0x1da)]+'\x22'];return _0x9f917c[_0x112063(0x20d)]&&_0x38aea1[_0x112063(0x205)](_0x112063(0x1f0)+_0x9f917c[_0x112063(0x20d)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x38aea1[_0x112063(0x1ef)](',\x20')+'\x20},';})[_0x5cc660(0x1ef)](''),_0x18a72d=_0x6013f9||_0x5f1b65[0x0]?.['alias']||'YourModel';let _0x5f066b=_0x5ed8d0[_0x5cc660(0x1d2)](/\{AppCode\}/g,_0x559d49)[_0x5cc660(0x1d2)](/\{ModelConfigs\}/g,_0x4a7b34)['replace'](/\{ExampleModelName\}/g,_0x18a72d)[_0x5cc660(0x1d2)](/\{ApiFileName\}/g,_0x13a93e||_0x5cc660(0x1d6))[_0x5cc660(0x1d2)](/\{ConfigName\}/g,_0x5ac8eb||_0x5cc660(0x1e3))[_0x5cc660(0x1d2)](/\{ClientConfigParam\}/g,_0x4027ff||'')[_0x5cc660(0x1d2)](/\{VarPrefix\}/g,_0x6ec176||_0x5cc660(0x1ff))[_0x5cc660(0x1d2)](/\{CreatedAt\}/g,_0x337ff1);return _0x5f066b;}static async[a289_0x449bba(0x1dc)](_0x3c2bad,_0x3ed426,_0xb41f44,_0x4357b8,_0x1508ba=!![]){const _0x4b0824=a289_0x449bba,_0x5c0c20=Date[_0x4b0824(0x1dd)]();try{_0x1508ba&&logger[_0x4b0824(0x1fb)](_0x4b0824(0x1c8),_0x4b0824(0x1fa),{'templatePath':_0x3c2bad,'targetPath':_0x3ed426,'pageName':_0xb41f44,'templateName':_0x4357b8});await a289_0x3b22e3[_0x4b0824(0x1fd)]['mkdir'](_0x3ed426,{'recursive':!![]}),await this['processDirectory'](_0x3c2bad,_0x3ed426,_0xb41f44,_0x4357b8);if(_0x1508ba){const _0x2af19e=Date[_0x4b0824(0x1dd)]()-_0x5c0c20;logger['success'](_0x4b0824(0x1c8),_0x4b0824(0x201),_0x2af19e,{'pageName':_0xb41f44,'templateName':_0x4357b8});}}catch(_0x183de0){if(_0x1508ba){const _0x1834e1=Date[_0x4b0824(0x1dd)]()-_0x5c0c20;logger[_0x4b0824(0x1d0)]('template',_0x4b0824(0x20a),{'templatePath':_0x3c2bad,'targetPath':_0x3ed426,'pageName':_0xb41f44,'templateName':_0x4357b8,'error':_0x183de0 instanceof Error?_0x183de0[_0x4b0824(0x1ed)]:String(_0x183de0),'duration':_0x1834e1});}throw _0x183de0;}}static async[a289_0x449bba(0x1ce)](_0x1252dd,_0x578f68,_0x3e0315,_0x20e250){const _0x1335d6=a289_0x449bba,_0x2b1f6a=await a289_0x3b22e3[_0x1335d6(0x1fd)][_0x1335d6(0x1d5)](_0x1252dd,{'withFileTypes':!![]});for(const _0x5c2902 of _0x2b1f6a){const _0x48d7bb=a289_0x3dc092[_0x1335d6(0x1ef)](_0x1252dd,_0x5c2902[_0x1335d6(0x1da)]);let _0x34f967=a289_0x3dc092['join'](_0x578f68,_0x5c2902['name']);_0x5c2902['name']['endsWith']('.tpl')&&(_0x34f967=a289_0x3dc092[_0x1335d6(0x1ef)](_0x578f68,_0x5c2902['name'][_0x1335d6(0x1d2)](/\.tpl$/,'')));if(_0x5c2902[_0x1335d6(0x1d4)]())await a289_0x3b22e3[_0x1335d6(0x1fd)][_0x1335d6(0x1d8)](_0x34f967,{'recursive':!![]}),await this['processDirectory'](_0x48d7bb,_0x34f967,_0x3e0315,_0x20e250);else _0x5c2902[_0x1335d6(0x1f5)]()&&await this[_0x1335d6(0x20e)](_0x48d7bb,_0x34f967,_0x3e0315,_0x20e250);}}static async[a289_0x449bba(0x20e)](_0x5001df,_0x4b9b2b,_0x18616e,_0xd1e63){const _0x3f8b4b=a289_0x449bba,_0x51be8a=a289_0x3dc092[_0x3f8b4b(0x1f8)](_0x5001df)[_0x3f8b4b(0x1e9)]();_0x5001df['endsWith'](_0x3f8b4b(0x1c9))&&(_0x4b9b2b=_0x4b9b2b['replace'](/\.tpl$/,''));const _0x4bdd61=[_0x3f8b4b(0x1fe),_0x3f8b4b(0x1f1),_0x3f8b4b(0x1e6),_0x3f8b4b(0x210),'.json',_0x3f8b4b(0x1e7),_0x3f8b4b(0x1cf),_0x3f8b4b(0x1d3),_0x3f8b4b(0x1c9)];if(_0x4bdd61[_0x3f8b4b(0x1f2)](_0x51be8a)||_0x5001df[_0x3f8b4b(0x1e4)](_0x3f8b4b(0x1c9))){const _0x1e2d14=await a289_0x3b22e3[_0x3f8b4b(0x1fd)][_0x3f8b4b(0x1f4)](_0x5001df,'utf8'),_0x3fba2e=this[_0x3f8b4b(0x1d9)](_0x1e2d14,_0x18616e,_0xd1e63);await a289_0x3b22e3[_0x3f8b4b(0x1fd)][_0x3f8b4b(0x206)](_0x4b9b2b,_0x3fba2e,_0x3f8b4b(0x1d1));}else await a289_0x3b22e3[_0x3f8b4b(0x1fd)][_0x3f8b4b(0x207)](_0x5001df,_0x4b9b2b);}}function a289_0x3f07(){const _0x2eade0=['235dXzqyE','toDisplayTitle','default','endsWith','tableName','.jsx','.md','getMonth','toLowerCase','8AMxQXH','2833768zEKlCF','padStart','message','11981vGuYNv','join','alias:\x20\x22','.ts','includes','getHours','readFile','isFile','22DmJMWg','toUpperCase','extname','2214549IEsXic','开始处理模板内容替换','info','60qtayIu','promises','.tsx','LOVRABET','1451208shKSGa','模板内容替换完成','8UVtZfi','3364790hHmsXR','datasetCode:\x20\x22','push','writeFile','copyFile','charAt','pad','模板内容替换失败','name:\x20\x22','toComponentName','alias','processFile','slice','.js','13002cDsSXZ','template','.tpl','getFullYear','formatLocalTimestamp','split','914208WbyKVY','processDirectory','.css','error','utf8','replace','.scss','isDirectory','readdir','api','getDate','mkdir','replaceContent','name','getMinutes','processTemplate','now','map','getSeconds','pop'];a289_0x3f07=function(){return _0x2eade0;};return a289_0x3f07();}
1
+ const a289_0x433a90=a289_0x41f5;(function(_0x112a2d,_0x48e317){const _0x1297c5=a289_0x41f5,_0x5be978=_0x112a2d();while(!![]){try{const _0x53c784=parseInt(_0x1297c5(0x17e))/0x1*(parseInt(_0x1297c5(0x167))/0x2)+-parseInt(_0x1297c5(0x164))/0x3*(parseInt(_0x1297c5(0x144))/0x4)+parseInt(_0x1297c5(0x175))/0x5*(parseInt(_0x1297c5(0x148))/0x6)+-parseInt(_0x1297c5(0x160))/0x7*(-parseInt(_0x1297c5(0x177))/0x8)+-parseInt(_0x1297c5(0x180))/0x9*(parseInt(_0x1297c5(0x181))/0xa)+parseInt(_0x1297c5(0x156))/0xb*(parseInt(_0x1297c5(0x176))/0xc)+parseInt(_0x1297c5(0x14e))/0xd*(parseInt(_0x1297c5(0x150))/0xe);if(_0x53c784===_0x48e317)break;else _0x5be978['push'](_0x5be978['shift']());}catch(_0x1b489f){_0x5be978['push'](_0x5be978['shift']());}}}(a289_0x367b,0x47353));import a289_0x4a3863 from'node:fs';import a289_0x9098b3 from'node:path';import{logger}from'../utils/logger.js';function a289_0x41f5(_0x1abb0f,_0x2d36b9){_0x1abb0f=_0x1abb0f-0x13b;const _0x367b88=a289_0x367b();let _0x41f551=_0x367b88[_0x1abb0f];return _0x41f551;}function a289_0x367b(){const _0x44e475=['toISOString','6746wtvJHL','.json','replaceContent','split','getFullYear','replace','success','promises','开始处理模板内容替换','alias:\x20\x22','getDate','replaceApiContent','name','join','1295QsphnG','335892EsbcpX','56hRHUSh','isFile','template','toUpperCase','writeFile','datasetCode:\x20\x22','getMinutes','50mRFDQW','info','2268927EOPMfq','10aVoOvR','mkdir','.css','toLowerCase','readFile','YourModel','now','slice','.ts','datasetCode','567244vDKhSb','.jsx','\x0a\x20\x20\x20\x20{\x20','includes','9726BXntYY','message','map','.tsx','.scss','.md','31655jhWTtH','tableName','238JzKXUE','processFile','.js','.tpl','toDisplayTitle','toComponentName','33QIyVee','padStart','pad','name:\x20\x22','error','endsWith','alias','getHours','formatLocalTimestamp','utf8','255346EDtGpH','copyFile','processDirectory','api','9RUkACR','pop'];a289_0x367b=function(){return _0x44e475;};return a289_0x367b();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x433a90(0x158)](_0x5eea71){const _0x11105e=a289_0x433a90;return String(_0x5eea71)[_0x11105e(0x157)](0x2,'0');}static[a289_0x433a90(0x15e)](_0xe2738e){const _0x4823be=a289_0x433a90,_0x2db74a=_0xe2738e[_0x4823be(0x16b)](),_0x261127=this[_0x4823be(0x158)](_0xe2738e['getMonth']()+0x1),_0x4ee94f=this['pad'](_0xe2738e[_0x4823be(0x171)]()),_0x1b813d=this['pad'](_0xe2738e[_0x4823be(0x15d)]()),_0x409427=this['pad'](_0xe2738e[_0x4823be(0x17d)]()),_0x13e954=this[_0x4823be(0x158)](_0xe2738e['getSeconds']());return{'createdAt':_0x2db74a+'-'+_0x261127+'-'+_0x4ee94f+'\x20'+_0x1b813d+':'+_0x409427+':'+_0x13e954,'createdDate':_0x2db74a+'-'+_0x261127+'-'+_0x4ee94f,'createdTime':_0x1b813d+':'+_0x409427+':'+_0x13e954};}static[a289_0x433a90(0x155)](_0x2b1dd9){const _0x4c52e=a289_0x433a90,_0x1bffd7=_0x2b1dd9['split']('/')[_0x4c52e(0x165)]()||_0x2b1dd9;return _0x1bffd7[_0x4c52e(0x16a)]('-')[_0x4c52e(0x14a)](_0x59be06=>_0x59be06['charAt'](0x0)[_0x4c52e(0x17a)]()+_0x59be06['slice'](0x1)[_0x4c52e(0x13d)]())[_0x4c52e(0x174)]('');}static['toDisplayTitle'](_0x5b2d79){const _0x2b7fec=a289_0x433a90,_0xa910af=_0x5b2d79[_0x2b7fec(0x16a)]('/')[_0x2b7fec(0x165)]()||_0x5b2d79;return _0xa910af['split']('-')[_0x2b7fec(0x14a)](_0xf80fe6=>_0xf80fe6['charAt'](0x0)[_0x2b7fec(0x17a)]()+_0xf80fe6[_0x2b7fec(0x141)](0x1)[_0x2b7fec(0x13d)]())[_0x2b7fec(0x174)]('\x20');}static[a289_0x433a90(0x169)](_0x20f3ad,_0xb70529,_0x2900f8){const _0x1e8a73=a289_0x433a90,_0x365b81=this[_0x1e8a73(0x155)](_0xb70529),_0x252b28=this[_0x1e8a73(0x154)](_0xb70529),{createdAt:_0x1836d3,createdDate:_0x21cba3,createdTime:_0x1cb492}=this[_0x1e8a73(0x15e)](new Date());let _0x3a0528=_0x20f3ad[_0x1e8a73(0x16c)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x365b81)[_0x1e8a73(0x16c)](/\{DisplayTitle\}/g,_0x252b28)['replace'](/\{PageName\}/g,_0xb70529)[_0x1e8a73(0x16c)](/\{TemplateName\}/g,_0x2900f8)[_0x1e8a73(0x16c)](/\{CreatedAt\}/g,_0x1836d3)[_0x1e8a73(0x16c)](/\{CreatedDate\}/g,_0x21cba3)[_0x1e8a73(0x16c)](/\{CreatedTime\}/g,_0x1cb492);return _0x3a0528;}static[a289_0x433a90(0x172)](_0xf5c531,_0x4c9054,_0x7d4064,_0xa28496,_0x512ba1,_0x586040,_0x4c8d88,_0x59c236){const _0x1eec1a=a289_0x433a90,_0x47ed3a=new Date(),_0x523a16=_0x47ed3a[_0x1eec1a(0x166)](),_0xa5da6f=_0x7d4064['map'](_0x3d926d=>{const _0xea9ea5=_0x1eec1a,_0x20ce40=[_0xea9ea5(0x17c)+_0x3d926d[_0xea9ea5(0x143)]+'\x22','tableName:\x20\x22'+_0x3d926d[_0xea9ea5(0x14f)]+'\x22',_0xea9ea5(0x159)+_0x3d926d[_0xea9ea5(0x173)]+'\x22'];return _0x3d926d[_0xea9ea5(0x15c)]&&_0x20ce40['push'](_0xea9ea5(0x170)+_0x3d926d[_0xea9ea5(0x15c)]+'\x22'),_0xea9ea5(0x146)+_0x20ce40['join'](',\x20')+'\x20},';})['join'](''),_0x1f85ca=_0xa28496||_0x7d4064[0x0]?.[_0x1eec1a(0x15c)]||_0x1eec1a(0x13f);let _0x51f566=_0xf5c531['replace'](/\{AppCode\}/g,_0x4c9054)['replace'](/\{ModelConfigs\}/g,_0xa5da6f)['replace'](/\{ExampleModelName\}/g,_0x1f85ca)['replace'](/\{ApiFileName\}/g,_0x512ba1||_0x1eec1a(0x163))[_0x1eec1a(0x16c)](/\{ConfigName\}/g,_0x586040||'default')[_0x1eec1a(0x16c)](/\{ClientConfigParam\}/g,_0x4c8d88||'')[_0x1eec1a(0x16c)](/\{VarPrefix\}/g,_0x59c236||'LOVRABET')[_0x1eec1a(0x16c)](/\{CreatedAt\}/g,_0x523a16);return _0x51f566;}static async['processTemplate'](_0x43fc4d,_0x4636e0,_0x340c9e,_0x4e0a5b,_0x322cf1=!![]){const _0x462594=a289_0x433a90,_0x1ad73a=Date[_0x462594(0x140)]();try{_0x322cf1&&logger[_0x462594(0x17f)](_0x462594(0x179),_0x462594(0x16f),{'templatePath':_0x43fc4d,'targetPath':_0x4636e0,'pageName':_0x340c9e,'templateName':_0x4e0a5b});await a289_0x4a3863[_0x462594(0x16e)]['mkdir'](_0x4636e0,{'recursive':!![]}),await this['processDirectory'](_0x43fc4d,_0x4636e0,_0x340c9e,_0x4e0a5b);if(_0x322cf1){const _0x27d25a=Date[_0x462594(0x140)]()-_0x1ad73a;logger[_0x462594(0x16d)](_0x462594(0x179),'模板内容替换完成',_0x27d25a,{'pageName':_0x340c9e,'templateName':_0x4e0a5b});}}catch(_0xc9c8ee){if(_0x322cf1){const _0xe25ada=Date[_0x462594(0x140)]()-_0x1ad73a;logger[_0x462594(0x15a)](_0x462594(0x179),'模板内容替换失败',{'templatePath':_0x43fc4d,'targetPath':_0x4636e0,'pageName':_0x340c9e,'templateName':_0x4e0a5b,'error':_0xc9c8ee instanceof Error?_0xc9c8ee[_0x462594(0x149)]:String(_0xc9c8ee),'duration':_0xe25ada});}throw _0xc9c8ee;}}static async[a289_0x433a90(0x162)](_0x43c42f,_0x7fe9c7,_0x3fbd4c,_0xac66ae){const _0x29c3e3=a289_0x433a90,_0x4a26e2=await a289_0x4a3863[_0x29c3e3(0x16e)]['readdir'](_0x43c42f,{'withFileTypes':!![]});for(const _0x501d44 of _0x4a26e2){const _0x4cba12=a289_0x9098b3[_0x29c3e3(0x174)](_0x43c42f,_0x501d44['name']);let _0x2c2d4c=a289_0x9098b3[_0x29c3e3(0x174)](_0x7fe9c7,_0x501d44[_0x29c3e3(0x173)]);_0x501d44[_0x29c3e3(0x173)][_0x29c3e3(0x15b)](_0x29c3e3(0x153))&&(_0x2c2d4c=a289_0x9098b3[_0x29c3e3(0x174)](_0x7fe9c7,_0x501d44[_0x29c3e3(0x173)][_0x29c3e3(0x16c)](/\.tpl$/,'')));if(_0x501d44['isDirectory']())await a289_0x4a3863[_0x29c3e3(0x16e)][_0x29c3e3(0x13b)](_0x2c2d4c,{'recursive':!![]}),await this[_0x29c3e3(0x162)](_0x4cba12,_0x2c2d4c,_0x3fbd4c,_0xac66ae);else _0x501d44[_0x29c3e3(0x178)]()&&await this[_0x29c3e3(0x151)](_0x4cba12,_0x2c2d4c,_0x3fbd4c,_0xac66ae);}}static async[a289_0x433a90(0x151)](_0x47d330,_0x1d1212,_0x33bdf3,_0x1a4bdd){const _0x3f19cc=a289_0x433a90,_0x344e9a=a289_0x9098b3['extname'](_0x47d330)[_0x3f19cc(0x13d)]();_0x47d330[_0x3f19cc(0x15b)](_0x3f19cc(0x153))&&(_0x1d1212=_0x1d1212[_0x3f19cc(0x16c)](/\.tpl$/,''));const _0x41185e=[_0x3f19cc(0x14b),_0x3f19cc(0x142),_0x3f19cc(0x145),_0x3f19cc(0x152),_0x3f19cc(0x168),_0x3f19cc(0x14d),_0x3f19cc(0x13c),_0x3f19cc(0x14c),_0x3f19cc(0x153)];if(_0x41185e[_0x3f19cc(0x147)](_0x344e9a)||_0x47d330[_0x3f19cc(0x15b)]('.tpl')){const _0x41a603=await a289_0x4a3863[_0x3f19cc(0x16e)][_0x3f19cc(0x13e)](_0x47d330,_0x3f19cc(0x15f)),_0x5075dd=this[_0x3f19cc(0x169)](_0x41a603,_0x33bdf3,_0x1a4bdd);await a289_0x4a3863[_0x3f19cc(0x16e)][_0x3f19cc(0x17b)](_0x1d1212,_0x5075dd,'utf8');}else await a289_0x4a3863[_0x3f19cc(0x16e)][_0x3f19cc(0x161)](_0x47d330,_0x1d1212);}}
@@ -1 +1 @@
1
- (function(_0x4a7ad8,_0x4b3438){const _0x323470=a290_0x254c,_0x3874c7=_0x4a7ad8();while(!![]){try{const _0x3de6e3=-parseInt(_0x323470(0x171))/0x1*(parseInt(_0x323470(0x17d))/0x2)+-parseInt(_0x323470(0x190))/0x3+-parseInt(_0x323470(0x178))/0x4*(parseInt(_0x323470(0x187))/0x5)+parseInt(_0x323470(0x175))/0x6*(-parseInt(_0x323470(0x18c))/0x7)+-parseInt(_0x323470(0x17b))/0x8+parseInt(_0x323470(0x181))/0x9*(parseInt(_0x323470(0x189))/0xa)+parseInt(_0x323470(0x174))/0xb*(parseInt(_0x323470(0x185))/0xc);if(_0x3de6e3===_0x4b3438)break;else _0x3874c7['push'](_0x3874c7['shift']());}catch(_0x33879f){_0x3874c7['push'](_0x3874c7['shift']());}}}(a290_0x4767,0x2f85c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x5f1226 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x1ab6d9=a290_0x254c,_0x4c0aa7=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x4c0aa7==='1'||_0x4c0aa7===_0x1ab6d9(0x18f)||_0x4c0aa7===_0x1ab6d9(0x17e);}function cacheRoot(){const _0x39c154=a290_0x254c;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x39c154(0x182));}export function getUpdateNoticeCachePath(){const _0x3b2d16=a290_0x254c;return join(cacheRoot(),_0x3b2d16(0x177),_0x3b2d16(0x183));}async function readUpdateNoticeCache(){const _0x5e6b27=a290_0x254c;try{const _0x29ac4a=await readFile(getUpdateNoticeCachePath(),_0x5e6b27(0x18b)),_0x220dde=JSON[_0x5e6b27(0x179)](_0x29ac4a);if(!_0x220dde||typeof _0x220dde!==_0x5e6b27(0x176))return{};return _0x220dde;}catch{return{};}}async function writeUpdateNoticeCache(_0x1cb78d){const _0x1f692f=a290_0x254c;try{const _0xedb530=getUpdateNoticeCachePath();await mkdir(dirname(_0xedb530),{'recursive':!![]}),await writeFile(_0xedb530,JSON['stringify'](_0x1cb78d,null,0x2)+'\x0a',_0x1f692f(0x18b));}catch{}}function a290_0x254c(_0x130a95,_0x466353){_0x130a95=_0x130a95-0x171;const _0x476777=a290_0x4767();let _0x254cb1=_0x476777[_0x130a95];return _0x254cb1;}function isFreshCheck(_0xac58bf,_0x2bd32e){return typeof _0xac58bf['checkedAt']==='number'&&_0x2bd32e-_0xac58bf['checkedAt']<UPDATE_CHECK_TTL_MS;}function a290_0x4767(){const _0x3cf390=['986440TdHnsM',',\x20run:\x20','3351930FojRlh','checkedAt','utf8','77KJkUHi','/v/','gte','true','200799sKSefU','trim','1BRKRcO','now','\x20available,\x20current\x20','866921wkmEKi','39396YyTUrN','object','rabetbase-cli','4sPmXfZ','parse','number','2122992xzIrJY','valid','180794QgvPyz','yes','https://www.npmjs.com/package/','latest','9VQwbfT','.cache','update-check.json','\x20update','84XRhXkY','lastNotifiedAt'];a290_0x4767=function(){return _0x3cf390;};return a290_0x4767();}function isRecentlyNotified(_0x173294,_0x1cfe20,_0x1b5188){const _0x4e7941=a290_0x254c;return _0x173294['lastNotifiedVersion']===_0x1cfe20&&typeof _0x173294[_0x4e7941(0x186)]===_0x4e7941(0x17a)&&_0x1b5188-_0x173294[_0x4e7941(0x186)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x12c786){const _0x5c7b3f=a290_0x254c;return _0x5c7b3f(0x17f)+NPM_PACKAGE_NAME+_0x5c7b3f(0x18d)+_0x12c786;}export async function resolveLatestUpdateNotice(){const _0x1123cb=a290_0x254c;if(isUpdateNoticeDisabled())return null;try{const _0x3d9a23=Date[_0x1123cb(0x172)](),_0x3dc847=getCliVersion(),_0x2e16c9=await readUpdateNoticeCache();let _0x41253d=isFreshCheck(_0x2e16c9,_0x3d9a23)?_0x2e16c9[_0x1123cb(0x180)]?.[_0x1123cb(0x191)]():undefined;if(!_0x41253d&&!isFreshCheck(_0x2e16c9,_0x3d9a23)){const _0x50d4f3=await getCliVersionPolicy();_0x41253d=_0x50d4f3?.['stableVersion']?.[_0x1123cb(0x191)]()||undefined,await writeUpdateNoticeCache({..._0x2e16c9,'checkedAt':_0x3d9a23,'latest':_0x41253d,'failed':!_0x41253d});}if(!_0x41253d||!a290_0x5f1226['valid'](_0x3dc847)||!a290_0x5f1226[_0x1123cb(0x17c)](_0x41253d))return null;if(a290_0x5f1226[_0x1123cb(0x18e)](_0x3dc847,_0x41253d))return null;if(isRecentlyNotified(_0x2e16c9,_0x41253d,_0x3d9a23))return null;const _0x1395e2=CLI_BIN_NAME+_0x1123cb(0x184);return await writeUpdateNoticeCache({..._0x2e16c9,'checkedAt':isFreshCheck(_0x2e16c9,_0x3d9a23)?_0x2e16c9[_0x1123cb(0x18a)]:_0x3d9a23,'latest':_0x41253d,'failed':![],'lastNotifiedVersion':_0x41253d,'lastNotifiedAt':_0x3d9a23}),{'command':_0x1395e2,'current':_0x3dc847,'latest':_0x41253d,'url':buildNpmVersionUrl(_0x41253d),'message':CLI_BIN_NAME+'\x20'+_0x41253d+_0x1123cb(0x173)+_0x3dc847+_0x1123cb(0x188)+_0x1395e2};}catch{return null;}}
1
+ (function(_0x107409,_0x1d40dc){const _0x2ef64e=a290_0x53a3,_0x44a63d=_0x107409();while(!![]){try{const _0x218f29=-parseInt(_0x2ef64e(0x1f8))/0x1*(parseInt(_0x2ef64e(0x208))/0x2)+parseInt(_0x2ef64e(0x1fc))/0x3+-parseInt(_0x2ef64e(0x203))/0x4+parseInt(_0x2ef64e(0x20f))/0x5*(parseInt(_0x2ef64e(0x1fb))/0x6)+parseInt(_0x2ef64e(0x200))/0x7+-parseInt(_0x2ef64e(0x20d))/0x8+parseInt(_0x2ef64e(0x204))/0x9;if(_0x218f29===_0x1d40dc)break;else _0x44a63d['push'](_0x44a63d['shift']());}catch(_0x509e66){_0x44a63d['push'](_0x44a63d['shift']());}}}(a290_0x59e0,0x60b5c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x17950e from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0xdbf91d=a290_0x53a3,_0xefae71=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0xdbf91d(0x1f5)]();return _0xefae71==='1'||_0xefae71===_0xdbf91d(0x210)||_0xefae71===_0xdbf91d(0x207);}function a290_0x59e0(){const _0xb70ad2=['13ppVapR','\x20available,\x20current\x20','\x20update','6kGseXN','967443cEdqGU','rabetbase-cli','valid','update-check.json','3175494AmAIIx',',\x20run:\x20','now','1826436XJzKdh','6633306qEvoDs','trim','/v/','yes','120374ZVvLXQ','stringify','object','stableVersion','checkedAt','5354000iiknco','gte','3956285MQYcLv','true','https://www.npmjs.com/package/','utf8','number','toLowerCase','latest','.cache'];a290_0x59e0=function(){return _0xb70ad2;};return a290_0x59e0();}function cacheRoot(){const _0x1a3c71=a290_0x53a3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1a3c71(0x1f7));}export function getUpdateNoticeCachePath(){const _0x1b0119=a290_0x53a3;return join(cacheRoot(),_0x1b0119(0x1fd),_0x1b0119(0x1ff));}async function readUpdateNoticeCache(){const _0x1c22a1=a290_0x53a3;try{const _0x245005=await readFile(getUpdateNoticeCachePath(),_0x1c22a1(0x212)),_0x2d3c0f=JSON['parse'](_0x245005);if(!_0x2d3c0f||typeof _0x2d3c0f!==_0x1c22a1(0x20a))return{};return _0x2d3c0f;}catch{return{};}}async function writeUpdateNoticeCache(_0xab0d86){const _0x465656=a290_0x53a3;try{const _0x479197=getUpdateNoticeCachePath();await mkdir(dirname(_0x479197),{'recursive':!![]}),await writeFile(_0x479197,JSON[_0x465656(0x209)](_0xab0d86,null,0x2)+'\x0a',_0x465656(0x212));}catch{}}function a290_0x53a3(_0x49bf64,_0x2e9b46){_0x49bf64=_0x49bf64-0x1f4;const _0x59e032=a290_0x59e0();let _0x53a39d=_0x59e032[_0x49bf64];return _0x53a39d;}function isFreshCheck(_0x44fbb3,_0x4fc882){const _0x3ee912=a290_0x53a3;return typeof _0x44fbb3['checkedAt']===_0x3ee912(0x1f4)&&_0x4fc882-_0x44fbb3[_0x3ee912(0x20c)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x40fb6c,_0xea2149,_0x30169c){const _0x2aef0a=a290_0x53a3;return _0x40fb6c['lastNotifiedVersion']===_0xea2149&&typeof _0x40fb6c['lastNotifiedAt']===_0x2aef0a(0x1f4)&&_0x30169c-_0x40fb6c['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1457e8){const _0x794cf1=a290_0x53a3;return _0x794cf1(0x211)+NPM_PACKAGE_NAME+_0x794cf1(0x206)+_0x1457e8;}export async function resolveLatestUpdateNotice(){const _0x535910=a290_0x53a3;if(isUpdateNoticeDisabled())return null;try{const _0x59f028=Date[_0x535910(0x202)](),_0x1d5e99=getCliVersion(),_0x4acab6=await readUpdateNoticeCache();let _0x74be8=isFreshCheck(_0x4acab6,_0x59f028)?_0x4acab6[_0x535910(0x1f6)]?.[_0x535910(0x205)]():undefined;if(!_0x74be8&&!isFreshCheck(_0x4acab6,_0x59f028)){const _0x4ca10f=await getCliVersionPolicy();_0x74be8=_0x4ca10f?.[_0x535910(0x20b)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x4acab6,'checkedAt':_0x59f028,'latest':_0x74be8,'failed':!_0x74be8});}if(!_0x74be8||!a290_0x17950e['valid'](_0x1d5e99)||!a290_0x17950e[_0x535910(0x1fe)](_0x74be8))return null;if(a290_0x17950e[_0x535910(0x20e)](_0x1d5e99,_0x74be8))return null;if(isRecentlyNotified(_0x4acab6,_0x74be8,_0x59f028))return null;const _0x444a21=CLI_BIN_NAME+_0x535910(0x1fa);return await writeUpdateNoticeCache({..._0x4acab6,'checkedAt':isFreshCheck(_0x4acab6,_0x59f028)?_0x4acab6[_0x535910(0x20c)]:_0x59f028,'latest':_0x74be8,'failed':![],'lastNotifiedVersion':_0x74be8,'lastNotifiedAt':_0x59f028}),{'command':_0x444a21,'current':_0x1d5e99,'latest':_0x74be8,'url':buildNpmVersionUrl(_0x74be8),'message':CLI_BIN_NAME+'\x20'+_0x74be8+_0x535910(0x1f9)+_0x1d5e99+_0x535910(0x201)+_0x444a21};}catch{return null;}}