@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.3

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 (299) 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.d.ts +8 -7
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/types.d.ts +17 -2
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.d.ts +2 -0
  138. package/lib/commands/menu/visibility-update.js +1 -0
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/rules-cdn.js +1 -1
  288. package/lib/utils/sleep.js +1 -1
  289. package/lib/utils/template-replacer.js +1 -1
  290. package/lib/utils/update-notice.js +1 -1
  291. package/lib/utils/version.js +1 -1
  292. package/lib/utils/with-active-cookie.js +1 -1
  293. package/lib/utils/write-cli-side-channel.js +1 -1
  294. package/package.json +1 -1
  295. package/skills/rabetbase/SKILL.md +4 -3
  296. package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
  297. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  298. package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
  299. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a269_0x33bf87=a269_0x46ba;(function(_0x19180d,_0x438f23){const _0x34a9cb=a269_0x46ba,_0x368db1=_0x19180d();while(!![]){try{const _0x4d8902=-parseInt(_0x34a9cb(0xeb))/0x1*(-parseInt(_0x34a9cb(0xef))/0x2)+-parseInt(_0x34a9cb(0xed))/0x3*(parseInt(_0x34a9cb(0xf0))/0x4)+parseInt(_0x34a9cb(0xf6))/0x5*(-parseInt(_0x34a9cb(0xf5))/0x6)+-parseInt(_0x34a9cb(0xf8))/0x7*(parseInt(_0x34a9cb(0xee))/0x8)+parseInt(_0x34a9cb(0xf4))/0x9+parseInt(_0x34a9cb(0xec))/0xa+-parseInt(_0x34a9cb(0xf3))/0xb*(-parseInt(_0x34a9cb(0xf2))/0xc);if(_0x4d8902===_0x438f23)break;else _0x368db1['push'](_0x368db1['shift']());}catch(_0x1b9440){_0x368db1['push'](_0x368db1['shift']());}}}(a269_0x47d0,0xc2302));import{sendTraceLog}from'@lovrabet/otel-logger';function a269_0x46ba(_0x509676,_0x5c476a){_0x509676=_0x509676-0xe9;const _0x47d06c=a269_0x47d0();let _0x46ba97=_0x47d06c[_0x509676];return _0x46ba97;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a269_0x47d0(){const _0x115ae3=['rabetbase-cli','1281KklNfO','version','spanName','355363sygmCT','7172640KlPDEX','2062209AdtpHi','57800yFxrkB','2huwlRs','4CFTxBC','traceparent','302148yrbGBe','253CrSPGM','10404504qjWejr','1212wNGenk','70aeXXtW'];a269_0x47d0=function(){return _0x115ae3;};return a269_0x47d0();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a269_0x33bf87(0xf7);export async function sendCliTraceLog(_0x1c2d59){const _0x2b4a4c=a269_0x33bf87;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1c2d59['traceName']??DEFAULT_TRACE_NAME,'version':_0x1c2d59[_0x2b4a4c(0xe9)]??getCliVersion(),'spanName':_0x1c2d59[_0x2b4a4c(0xea)],'eventType':'manual','logData':_0x1c2d59['logData'],..._0x1c2d59[_0x2b4a4c(0xf1)]&&{'traceparent':_0x1c2d59[_0x2b4a4c(0xf1)]}});}
1
+ const a270_0x44a491=a270_0x160e;(function(_0x2428d5,_0x490a5c){const _0x16f988=a270_0x160e,_0x2844e4=_0x2428d5();while(!![]){try{const _0x5860e2=parseInt(_0x16f988(0x16f))/0x1*(-parseInt(_0x16f988(0x165))/0x2)+parseInt(_0x16f988(0x172))/0x3*(-parseInt(_0x16f988(0x16d))/0x4)+-parseInt(_0x16f988(0x166))/0x5*(parseInt(_0x16f988(0x16b))/0x6)+-parseInt(_0x16f988(0x168))/0x7*(parseInt(_0x16f988(0x16c))/0x8)+-parseInt(_0x16f988(0x163))/0x9*(parseInt(_0x16f988(0x171))/0xa)+-parseInt(_0x16f988(0x169))/0xb*(parseInt(_0x16f988(0x167))/0xc)+parseInt(_0x16f988(0x16e))/0xd;if(_0x5860e2===_0x490a5c)break;else _0x2844e4['push'](_0x2844e4['shift']());}catch(_0x6a5ebc){_0x2844e4['push'](_0x2844e4['shift']());}}}(a270_0x2a65,0x7787e));function a270_0x2a65(){const _0x4b2395=['13044OnJUWF','7GDioHD','6908zKudoH','version','48WDJkCC','7378032WrUboi','676WjOfqx','53952431ZLYfOe','11645dqypkR','manual','20sNRkgE','15579nURsaT','rabetbase-cli','traceparent','logData','860067RWlZsP','traceName','24fyurvM','529510wDlJmN'];a270_0x2a65=function(){return _0x4b2395;};return a270_0x2a65();}import{sendTraceLog}from'@lovrabet/otel-logger';function a270_0x160e(_0x41ed16,_0x1017b4){_0x41ed16=_0x41ed16-0x163;const _0x2a652e=a270_0x2a65();let _0x160eca=_0x2a652e[_0x41ed16];return _0x160eca;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a270_0x44a491(0x173);export async function sendCliTraceLog(_0x4038d9){const _0x18bb06=a270_0x44a491;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4038d9[_0x18bb06(0x164)]??DEFAULT_TRACE_NAME,'version':_0x4038d9[_0x18bb06(0x16a)]??getCliVersion(),'spanName':_0x4038d9['spanName'],'eventType':_0x18bb06(0x170),'logData':_0x4038d9[_0x18bb06(0x175)],..._0x4038d9[_0x18bb06(0x174)]&&{'traceparent':_0x4038d9['traceparent']}});}
@@ -1 +1 @@
1
- function a270_0x361f(_0x1271e1,_0x3a2ace){_0x1271e1=_0x1271e1-0x146;const _0x425a82=a270_0x425a();let _0x361f43=_0x425a82[_0x1271e1];return _0x361f43;}const a270_0x48757b=a270_0x361f;(function(_0x1041f9,_0x5c8ecf){const _0x1d07d8=a270_0x361f,_0x33771e=_0x1041f9();while(!![]){try{const _0x25c730=-parseInt(_0x1d07d8(0x155))/0x1+-parseInt(_0x1d07d8(0x14f))/0x2+-parseInt(_0x1d07d8(0x148))/0x3*(-parseInt(_0x1d07d8(0x152))/0x4)+parseInt(_0x1d07d8(0x14b))/0x5+parseInt(_0x1d07d8(0x154))/0x6*(parseInt(_0x1d07d8(0x147))/0x7)+parseInt(_0x1d07d8(0x151))/0x8+parseInt(_0x1d07d8(0x150))/0x9*(-parseInt(_0x1d07d8(0x149))/0xa);if(_0x25c730===_0x5c8ecf)break;else _0x33771e['push'](_0x33771e['shift']());}catch(_0x22040b){_0x33771e['push'](_0x33771e['shift']());}}}(a270_0x425a,0xdcf00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a270_0x48757b(0x146);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a270_0x425a(){const _0x217e53=['9276939lzUmfa','67216PzBcoq','4MfBoIz','sanitize','6vHRaNF','1091539vEqwoV','platform-issue-log-collect','11940922HuHQnO','4605783vekVuS','10KObsmd','redactionCount','5000350moOudS','redactionKinds','title','originalBytes','2444618vDuMeI'];a270_0x425a=function(){return _0x217e53;};return a270_0x425a();}export async function sendPlatformIssueCollectLog(_0x1c8c19){const _0xbc28cd=a270_0x48757b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1c8c19[_0xbc28cd(0x14d)],'issue.description':_0x1c8c19['description'],..._0x1c8c19[_0xbc28cd(0x153)]?{'issue.description_original_bytes':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14e)],'issue.description_truncated':_0x1c8c19[_0xbc28cd(0x153)]['truncated'],'issue.description_redactions':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14a)],'issue.description_redaction_kinds':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14c)]['join'](',')}:{}}});}
1
+ function a271_0x3aaf(){const _0x1844c5=['2415288fANisQ','63wTxaTn','sanitize','truncated','70764ZvHAtQ','redactionKinds','3UvsnVp','redactionCount','27099mdvlaX','693422LqrAKZ','1532YPwQgE','430tgkWMM','242iuXeWk','1505OuHFZX','30198CeUKjo','71268MFMdjF','issue.log.collect','platform-issue-log-collect'];a271_0x3aaf=function(){return _0x1844c5;};return a271_0x3aaf();}const a271_0x3b39c8=a271_0x4700;(function(_0xf1a5d4,_0x1da711){const _0x5b693b=a271_0x4700,_0x41a7df=_0xf1a5d4();while(!![]){try{const _0xc9a709=parseInt(_0x5b693b(0xdd))/0x1+parseInt(_0x5b693b(0xe2))/0x2*(-parseInt(_0x5b693b(0xdf))/0x3)+-parseInt(_0x5b693b(0xe3))/0x4*(-parseInt(_0x5b693b(0xe6))/0x5)+-parseInt(_0x5b693b(0xe7))/0x6*(-parseInt(_0x5b693b(0xda))/0x7)+parseInt(_0x5b693b(0xd9))/0x8+-parseInt(_0x5b693b(0xe1))/0x9*(parseInt(_0x5b693b(0xe4))/0xa)+parseInt(_0x5b693b(0xe5))/0xb*(parseInt(_0x5b693b(0xe8))/0xc);if(_0xc9a709===_0x1da711)break;else _0x41a7df['push'](_0x41a7df['shift']());}catch(_0x5c5d85){_0x41a7df['push'](_0x41a7df['shift']());}}}(a271_0x3aaf,0x2dd51));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a271_0x3b39c8(0xd8);function a271_0x4700(_0x566e6,_0x3ec157){_0x566e6=_0x566e6-0xd8;const _0x3aafc8=a271_0x3aaf();let _0x470015=_0x3aafc8[_0x566e6];return _0x470015;}export const PLATFORM_ISSUE_SPAN_NAME=a271_0x3b39c8(0xe9);export async function sendPlatformIssueCollectLog(_0x53a51b){const _0x2f559f=a271_0x3b39c8;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x53a51b['title'],'issue.description':_0x53a51b['description'],..._0x53a51b[_0x2f559f(0xdb)]?{'issue.description_original_bytes':_0x53a51b['sanitize']['originalBytes'],'issue.description_truncated':_0x53a51b[_0x2f559f(0xdb)][_0x2f559f(0xdc)],'issue.description_redactions':_0x53a51b[_0x2f559f(0xdb)][_0x2f559f(0xe0)],'issue.description_redaction_kinds':_0x53a51b['sanitize'][_0x2f559f(0xde)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- function a272_0x5bb3(){const _0x51d976=['SKILL.md.tpl','Windsurf\x20IDE','qoder','.codebuddy/skills/lovrabet/SKILL.md','.cursor','.claude/skills/lovrabet/SKILL.md','26224500yTliMB','windsurf','trae','47480ktSgDD','antigravity','claude','codebuddy','.cursorrules','65076oICcfx','812560AyNsAc','.agent','.cline','1683zcHzLY','.trae','cursor','通用模板\x20-\x20兜底方案','.opencode/skills/lovrabet/SKILL.md','cline','1326570VzpCew','Claude\x20Code','Windsurf','385ZpcEKQ','.cursor/skills/rabetbase.md','3MjeGcd','Cursor\x20IDE','Qoder','Trae\x20IDE','OpenCode','Codex','Qoder\x20IDE','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','.windsurf/workflows/rabetbase.md','.qoder/rules/rabetbase.md','codex','.opencode','OpenCode\x20IDE','9034648bWyTjG','Cursor','Antigravity','opencode','Cline','.codebuddy','CodeBuddy\x20IDE','file','4904628WftQtl','.codex','.codex/skills/lovrabet/SKILL.md','Antigravity\x20IDE'];a272_0x5bb3=function(){return _0x51d976;};return a272_0x5bb3();}function a272_0x1de8(_0x4275ee,_0xd24827){_0x4275ee=_0x4275ee-0x12e;const _0x5bb391=a272_0x5bb3();let _0x1de80d=_0x5bb391[_0x4275ee];return _0x1de80d;}const a272_0xa9f65d=a272_0x1de8;(function(_0x1a9bcb,_0x469e61){const _0x414ade=a272_0x1de8,_0x416bc2=_0x1a9bcb();while(!![]){try{const _0x423087=parseInt(_0x414ade(0x138))/0x1+-parseInt(_0x414ade(0x141))/0x2+parseInt(_0x414ade(0x146))/0x3*(parseInt(_0x414ade(0x15c))/0x4)+parseInt(_0x414ade(0x144))/0x5*(-parseInt(_0x414ade(0x137))/0x6)+-parseInt(_0x414ade(0x154))/0x7+parseInt(_0x414ade(0x132))/0x8*(-parseInt(_0x414ade(0x13b))/0x9)+parseInt(_0x414ade(0x12f))/0xa;if(_0x423087===_0x469e61)break;else _0x416bc2['push'](_0x416bc2['shift']());}catch(_0x465dae){_0x416bc2['push'](_0x416bc2['shift']());}}}(a272_0x5bb3,0xba177));export const CORE_IDE_CONFIGS={'cursor':{'name':a272_0xa9f65d(0x155),'description':a272_0xa9f65d(0x147),'folders':[a272_0xa9f65d(0x136),a272_0xa9f65d(0x164)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x145),'template':a272_0xa9f65d(0x160)}]},'windsurf':{'name':a272_0xa9f65d(0x143),'description':a272_0xa9f65d(0x161),'folders':['.windsurf'],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x14f),'template':a272_0xa9f65d(0x160)}]},'claude':{'name':a272_0xa9f65d(0x142),'description':a272_0xa9f65d(0x142),'folders':['.claude'],'files':[{'type':'file','path':a272_0xa9f65d(0x12e),'template':a272_0xa9f65d(0x160)}]},'cline':{'name':a272_0xa9f65d(0x158),'description':'Cline\x20IDE','folders':[a272_0xa9f65d(0x13a)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.cline/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'codex':{'name':a272_0xa9f65d(0x14b),'description':a272_0xa9f65d(0x14e),'folders':[a272_0xa9f65d(0x15d)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x15e),'template':a272_0xa9f65d(0x160)}]},'opencode':{'name':a272_0xa9f65d(0x14a),'description':a272_0xa9f65d(0x153),'folders':[a272_0xa9f65d(0x152)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x13f),'template':a272_0xa9f65d(0x160)}]},'qoder':{'name':a272_0xa9f65d(0x148),'description':a272_0xa9f65d(0x14c),'folders':['.qoder'],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x150),'template':a272_0xa9f65d(0x160)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'codebuddy':{'name':'CodeBuddy','description':a272_0xa9f65d(0x15a),'folders':[a272_0xa9f65d(0x159)],'files':[{'type':'file','path':a272_0xa9f65d(0x163),'template':a272_0xa9f65d(0x160)}]},'trae':{'name':'Trae','description':a272_0xa9f65d(0x149),'folders':[a272_0xa9f65d(0x13c)],'files':[{'type':'file','path':a272_0xa9f65d(0x14d),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a272_0xa9f65d(0x13e),'folders':[a272_0xa9f65d(0x139)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.agent/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'antigravity':{'name':a272_0xa9f65d(0x156),'description':a272_0xa9f65d(0x15f),'folders':[a272_0xa9f65d(0x139)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.agent/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]}};export const CORE_IDE_LIST=[a272_0xa9f65d(0x134),a272_0xa9f65d(0x140),'codebuddy',a272_0xa9f65d(0x151),a272_0xa9f65d(0x13d),a272_0xa9f65d(0x157),a272_0xa9f65d(0x162),a272_0xa9f65d(0x131),a272_0xa9f65d(0x130)];export const IDE_LIST=[a272_0xa9f65d(0x133),'claude',a272_0xa9f65d(0x140),a272_0xa9f65d(0x135),a272_0xa9f65d(0x151),a272_0xa9f65d(0x13d),a272_0xa9f65d(0x157),a272_0xa9f65d(0x162),'trae',a272_0xa9f65d(0x130),'agent'];export const ALL_CORE_IDES=[a272_0xa9f65d(0x13d),a272_0xa9f65d(0x130),'claude',a272_0xa9f65d(0x140),a272_0xa9f65d(0x151),'opencode',a272_0xa9f65d(0x162),'codebuddy',a272_0xa9f65d(0x131)];
1
+ const a273_0x37ffb4=a273_0x3c0b;(function(_0x1c31a2,_0x128cc2){const _0xe84c1b=a273_0x3c0b,_0x3e2fb9=_0x1c31a2();while(!![]){try{const _0x275111=-parseInt(_0xe84c1b(0x206))/0x1+parseInt(_0xe84c1b(0x213))/0x2+parseInt(_0xe84c1b(0x214))/0x3+-parseInt(_0xe84c1b(0x204))/0x4*(-parseInt(_0xe84c1b(0x1e1))/0x5)+parseInt(_0xe84c1b(0x202))/0x6*(parseInt(_0xe84c1b(0x1f6))/0x7)+parseInt(_0xe84c1b(0x216))/0x8*(-parseInt(_0xe84c1b(0x1f2))/0x9)+parseInt(_0xe84c1b(0x1e5))/0xa*(parseInt(_0xe84c1b(0x218))/0xb);if(_0x275111===_0x128cc2)break;else _0x3e2fb9['push'](_0x3e2fb9['shift']());}catch(_0x1d2b7c){_0x3e2fb9['push'](_0x3e2fb9['shift']());}}}(a273_0x53cf,0x61ce2));export const CORE_IDE_CONFIGS={'cursor':{'name':a273_0x37ffb4(0x205),'description':a273_0x37ffb4(0x1f4),'folders':[a273_0x37ffb4(0x1f1),a273_0x37ffb4(0x217)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x1f0),'template':a273_0x37ffb4(0x1f8)}]},'windsurf':{'name':a273_0x37ffb4(0x1fc),'description':a273_0x37ffb4(0x1f5),'folders':[a273_0x37ffb4(0x1e4)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x1ee),'template':a273_0x37ffb4(0x1f8)}]},'claude':{'name':a273_0x37ffb4(0x1f7),'description':a273_0x37ffb4(0x1f7),'folders':['.claude'],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x21a),'template':a273_0x37ffb4(0x1f8)}]},'cline':{'name':'Cline','description':a273_0x37ffb4(0x1ec),'folders':[a273_0x37ffb4(0x212)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x1fb),'template':a273_0x37ffb4(0x1f8)}]},'codex':{'name':a273_0x37ffb4(0x20d),'description':a273_0x37ffb4(0x1e7),'folders':[a273_0x37ffb4(0x20e)],'files':[{'type':'file','path':a273_0x37ffb4(0x200),'template':'SKILL.md.tpl'}]},'opencode':{'name':a273_0x37ffb4(0x207),'description':a273_0x37ffb4(0x215),'folders':[a273_0x37ffb4(0x1e6)],'files':[{'type':'file','path':a273_0x37ffb4(0x21b),'template':a273_0x37ffb4(0x1f8)}]},'qoder':{'name':'Qoder','description':a273_0x37ffb4(0x201),'folders':[a273_0x37ffb4(0x211)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x1ea),'template':a273_0x37ffb4(0x1f8)},{'type':a273_0x37ffb4(0x1fd),'path':'.qoder/skills/lovrabet/SKILL.md','template':a273_0x37ffb4(0x1f8)}]},'codebuddy':{'name':a273_0x37ffb4(0x1e2),'description':a273_0x37ffb4(0x1f9),'folders':[a273_0x37ffb4(0x208)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a273_0x37ffb4(0x1f8)}]},'trae':{'name':a273_0x37ffb4(0x1e8),'description':a273_0x37ffb4(0x20a),'folders':[a273_0x37ffb4(0x1fe)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':a273_0x37ffb4(0x1e3),'template':a273_0x37ffb4(0x1f8)}]}};function a273_0x3c0b(_0x45fc5e,_0x26c936){_0x45fc5e=_0x45fc5e-0x1e1;const _0x53cfbc=a273_0x53cf();let _0x3c0bf6=_0x53cfbc[_0x45fc5e];return _0x3c0bf6;}function a273_0x53cf(){const _0x20bd3c=['.qoder','.cline','945016ApEHTy','44961MvcLzS','OpenCode\x20IDE','16bsnabH','.cursor','643841jSKSZM','opencode','.claude/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','325oOjChg','CodeBuddy','.trae/skills/lovrabet/SKILL.md','.windsurf','20tnZYNM','.opencode','Codex\x20IDE','Trae','claude','.qoder/rules/rabetbase.md','Antigravity\x20IDE','Cline\x20IDE','.agent','.windsurf/workflows/rabetbase.md','Antigravity','.cursor/skills/rabetbase.md','.cursorrules','415971IfjtKE','通用模板\x20-\x20兜底方案','Cursor\x20IDE','Windsurf\x20IDE','14077wjvMFj','Claude\x20Code','SKILL.md.tpl','CodeBuddy\x20IDE','trae','.cline/skills/lovrabet/SKILL.md','Windsurf','file','.trae','windsurf','.codex/skills/lovrabet/SKILL.md','Qoder\x20IDE','888JOkEnH','codex','15608wazYlu','Cursor','662767Azixwt','OpenCode','.codebuddy','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','cursor','codebuddy','Codex','.codex','qoder','cline'];a273_0x53cf=function(){return _0x20bd3c;};return a273_0x53cf();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a273_0x37ffb4(0x1f3),'folders':[a273_0x37ffb4(0x1ed)],'files':[{'type':a273_0x37ffb4(0x1fd),'path':'.agent/skills/lovrabet/SKILL.md','template':a273_0x37ffb4(0x1f8)}]},'antigravity':{'name':a273_0x37ffb4(0x1ef),'description':a273_0x37ffb4(0x1eb),'folders':[a273_0x37ffb4(0x1ed)],'files':[{'type':'file','path':a273_0x37ffb4(0x209),'template':a273_0x37ffb4(0x1f8)}]}};export const CORE_IDE_LIST=['claude',a273_0x37ffb4(0x210),a273_0x37ffb4(0x20c),a273_0x37ffb4(0x203),'cursor',a273_0x37ffb4(0x219),a273_0x37ffb4(0x20f),a273_0x37ffb4(0x1fa),'windsurf'];export const IDE_LIST=['antigravity',a273_0x37ffb4(0x1e9),a273_0x37ffb4(0x210),a273_0x37ffb4(0x20c),a273_0x37ffb4(0x203),a273_0x37ffb4(0x20b),a273_0x37ffb4(0x219),a273_0x37ffb4(0x20f),a273_0x37ffb4(0x1fa),a273_0x37ffb4(0x1ff),'agent'];export const ALL_CORE_IDES=[a273_0x37ffb4(0x20b),a273_0x37ffb4(0x1ff),a273_0x37ffb4(0x1e9),a273_0x37ffb4(0x210),a273_0x37ffb4(0x203),a273_0x37ffb4(0x219),a273_0x37ffb4(0x20f),a273_0x37ffb4(0x20c),'trae'];
@@ -1 +1 @@
1
- (function(_0x469e98,_0x4ea2ec){const _0x3058cd=a273_0x2d6c,_0x82e39=_0x469e98();while(!![]){try{const _0x1361dc=parseInt(_0x3058cd(0xf0))/0x1*(-parseInt(_0x3058cd(0xea))/0x2)+-parseInt(_0x3058cd(0xeb))/0x3+-parseInt(_0x3058cd(0xee))/0x4+-parseInt(_0x3058cd(0xed))/0x5*(parseInt(_0x3058cd(0xef))/0x6)+parseInt(_0x3058cd(0xec))/0x7+-parseInt(_0x3058cd(0xe9))/0x8+parseInt(_0x3058cd(0xe8))/0x9;if(_0x1361dc===_0x4ea2ec)break;else _0x82e39['push'](_0x82e39['shift']());}catch(_0x4f8d02){_0x82e39['push'](_0x82e39['shift']());}}}(a273_0x5da2,0x5a2b0));function a273_0x5da2(){const _0x3d9e33=['1245204nygKlw','4044042MjRsGR','312101eCsXmo','22502628wIYjYk','4017488LPjmaQ','4aAQPpX','1518009MzTWBG','3407145fqfOzF','5ILjRZQ'];a273_0x5da2=function(){return _0x3d9e33;};return a273_0x5da2();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x2d6c(_0x42d95d,_0x8336a1){_0x42d95d=_0x42d95d-0xe8;const _0x5da22b=a273_0x5da2();let _0x2d6c60=_0x5da22b[_0x42d95d];return _0x2d6c60;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a274_0x5d97(){const _0x5cc185=['11bwSsUF','4712232tdWsLt','813828ylxFUb','8XEKamm','1474830ODtutO','1309980vDbTBh','12GrjpIQ','968560bAqRxw','89510LjYnWR','790953XWivyy','17QyEGVK','10BmMrWI'];a274_0x5d97=function(){return _0x5cc185;};return a274_0x5d97();}(function(_0x141c9d,_0x377762){const _0x1d22ae=a274_0x1f3f,_0x189cbd=_0x141c9d();while(!![]){try{const _0x441ca4=-parseInt(_0x1d22ae(0xe1))/0x1*(-parseInt(_0x1d22ae(0xdf))/0x2)+-parseInt(_0x1d22ae(0xe0))/0x3+parseInt(_0x1d22ae(0xde))/0x4+parseInt(_0x1d22ae(0xdc))/0x5*(parseInt(_0x1d22ae(0xdd))/0x6)+parseInt(_0x1d22ae(0xe4))/0x7*(-parseInt(_0x1d22ae(0xe6))/0x8)+parseInt(_0x1d22ae(0xdb))/0x9*(-parseInt(_0x1d22ae(0xe2))/0xa)+parseInt(_0x1d22ae(0xe3))/0xb*(parseInt(_0x1d22ae(0xe5))/0xc);if(_0x441ca4===_0x377762)break;else _0x189cbd['push'](_0x189cbd['shift']());}catch(_0x48dc3c){_0x189cbd['push'](_0x189cbd['shift']());}}}(a274_0x5d97,0x78a09));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a274_0x1f3f(_0x36d6ae,_0xc3b5af){_0x36d6ae=_0x36d6ae-0xdb;const _0x5d97b9=a274_0x5d97();let _0x1f3f3b=_0x5d97b9[_0x36d6ae];return _0x1f3f3b;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x28fd22,_0x2a1e8b){const _0x1018f7=a274_0x1754,_0x4d5f23=_0x28fd22();while(!![]){try{const _0x29166e=-parseInt(_0x1018f7(0x10c))/0x1*(parseInt(_0x1018f7(0x118))/0x2)+-parseInt(_0x1018f7(0x115))/0x3*(parseInt(_0x1018f7(0x10d))/0x4)+parseInt(_0x1018f7(0x112))/0x5+parseInt(_0x1018f7(0x10e))/0x6+parseInt(_0x1018f7(0x114))/0x7+parseInt(_0x1018f7(0x111))/0x8+-parseInt(_0x1018f7(0x110))/0x9;if(_0x29166e===_0x2a1e8b)break;else _0x4d5f23['push'](_0x4d5f23['shift']());}catch(_0x39921c){_0x4d5f23['push'](_0x4d5f23['shift']());}}}(a274_0x5164,0x35e92));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x4b2b74=a274_0x1754,_0x156f9c=getTemplateBaseUrl(),_0x370b3e=[_0x156f9c+_0x4b2b74(0x119),_0x156f9c+'/config/index.json'];for(const _0x51161c of _0x370b3e){try{const _0x926f03=await fetch(_0x51161c,{'headers':{'Accept':'application/json'}});if(!_0x926f03['ok'])continue;const _0x555fb1=await _0x926f03[_0x4b2b74(0x116)]();if(!_0x555fb1[_0x4b2b74(0x117)]?.['stableVersion']||!_0x555fb1[_0x4b2b74(0x113)]?.['node']?.['stableVersion'])continue;return _0x555fb1;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a274_0x5164(){const _0x35e4ff=['8724kioBlV','1522776lZJzde','now','6754734UteFTM','2648688vhxKST','910615WCIvbG','sdk','2245201hZNlrD','150UMsyzo','json','cli','7354bufEJg','/config.json','2mBKClZ'];a274_0x5164=function(){return _0x35e4ff;};return a274_0x5164();}function a274_0x1754(_0x2a32d0,_0x4c25c2){_0x2a32d0=_0x2a32d0-0x10c;const _0x51649b=a274_0x5164();let _0x175412=_0x51649b[_0x2a32d0];return _0x175412;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5c57bb=a274_0x1754,_0x3d5f07=Date[_0x5c57bb(0x10f)]();if(hasCachedConfig){const _0x81ab42=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3d5f07-cacheTime<_0x81ab42)return cachedConfig;}const _0xbdf779=await fetchCdnConfig();return cachedConfig=_0xbdf779,cacheTime=_0x3d5f07,hasCachedConfig=!![],_0xbdf779;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x41e4c8,_0x2bccdf){const _0x4cd9f5=a275_0x1fb4,_0x39a264=_0x41e4c8();while(!![]){try{const _0x2a6994=-parseInt(_0x4cd9f5(0x113))/0x1+-parseInt(_0x4cd9f5(0x117))/0x2+-parseInt(_0x4cd9f5(0x111))/0x3+parseInt(_0x4cd9f5(0x10e))/0x4*(-parseInt(_0x4cd9f5(0x112))/0x5)+-parseInt(_0x4cd9f5(0x114))/0x6+-parseInt(_0x4cd9f5(0x11d))/0x7+parseInt(_0x4cd9f5(0x10f))/0x8*(parseInt(_0x4cd9f5(0x116))/0x9);if(_0x2a6994===_0x2bccdf)break;else _0x39a264['push'](_0x39a264['shift']());}catch(_0x157cd8){_0x39a264['push'](_0x39a264['shift']());}}}(a275_0x107e,0x8add9));function a275_0x1fb4(_0x2054b7,_0x46321c){_0x2054b7=_0x2054b7-0x10e;const _0x107ebc=a275_0x107e();let _0x1fb4f9=_0x107ebc[_0x2054b7];return _0x1fb4f9;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x4f72ba=a275_0x1fb4,_0x5e3de3=getTemplateBaseUrl(),_0x619ea=[_0x5e3de3+_0x4f72ba(0x110),_0x5e3de3+_0x4f72ba(0x118)];for(const _0x3eb56a of _0x619ea){try{const _0x56e610=await fetch(_0x3eb56a,{'headers':{'Accept':_0x4f72ba(0x119)}});if(!_0x56e610['ok'])continue;const _0x28d000=await _0x56e610[_0x4f72ba(0x11c)]();if(!_0x28d000[_0x4f72ba(0x11a)]?.[_0x4f72ba(0x11b)]||!_0x28d000[_0x4f72ba(0x115)]?.['node']?.[_0x4f72ba(0x11b)])continue;return _0x28d000;}catch{}}return null;}function a275_0x107e(){const _0x15997b=['15716xFTTiG','441960zWzkPs','/config.json','1823970RrQUMt','10MqKCmE','690817ahpHnS','2929656xNSfkg','sdk','531OdUdic','311086PaNsqv','/config/index.json','application/json','cli','stableVersion','json','5181246rzHflp'];a275_0x107e=function(){return _0x15997b;};return a275_0x107e();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2e5b46=Date['now']();if(hasCachedConfig){const _0x2eecb7=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2e5b46-cacheTime<_0x2eecb7)return cachedConfig;}const _0x11ee85=await fetchCdnConfig();return cachedConfig=_0x11ee85,cacheTime=_0x2e5b46,hasCachedConfig=!![],_0x11ee85;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a275_0x5485d9=a275_0x260d;(function(_0x482ea4,_0x4d7f79){const _0x15d165=a275_0x260d,_0x269e49=_0x482ea4();while(!![]){try{const _0x28835a=parseInt(_0x15d165(0xdc))/0x1*(parseInt(_0x15d165(0xbf))/0x2)+parseInt(_0x15d165(0xcb))/0x3*(parseInt(_0x15d165(0xc8))/0x4)+-parseInt(_0x15d165(0xd4))/0x5*(-parseInt(_0x15d165(0xba))/0x6)+-parseInt(_0x15d165(0xd1))/0x7*(-parseInt(_0x15d165(0xbe))/0x8)+-parseInt(_0x15d165(0xce))/0x9*(parseInt(_0x15d165(0xb9))/0xa)+parseInt(_0x15d165(0xc6))/0xb*(parseInt(_0x15d165(0xd2))/0xc)+-parseInt(_0x15d165(0xc7))/0xd;if(_0x28835a===_0x4d7f79)break;else _0x269e49['push'](_0x269e49['shift']());}catch(_0x48f755){_0x269e49['push'](_0x269e49['shift']());}}}(a275_0x11f3,0xc78cc));import a275_0x4f10b9 from'node:fs';import a275_0x175515 from'node:path';import a275_0x222740 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a275_0x5485d9(0xd9);function isNonNumericVersion(_0x547fc4){const _0x1b395d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1b395d['some'](_0x35ac8d=>_0x35ac8d['test'](_0x547fc4));}function getInstalledVersion(_0x5f5ca0,_0x2d8a81){const _0x54d18a=a275_0x5485d9;try{const _0x3a9bee=a275_0x175515['join'](_0x5f5ca0,_0x54d18a(0xc4),_0x2d8a81,_0x54d18a(0xc0));if(a275_0x4f10b9[_0x54d18a(0xc2)](_0x3a9bee)){const _0x1f5303=JSON['parse'](a275_0x4f10b9[_0x54d18a(0xc5)](_0x3a9bee,'utf-8'));return _0x1f5303[_0x54d18a(0xdb)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1ab9f0=a275_0x5485d9;try{const _0xe2c09b=await getCdnConfig();return _0xe2c09b?.['sdk']?.[_0x1ab9f0(0xcf)]?.[_0x1ab9f0(0xcd)]||null;}catch{return null;}}function a275_0x11f3(){const _0x13cdbc=['parse','@lovrabet/sdk','1.2.0','coerce','version','450913rduapv','minVersion','4990uNNSPW','1379022aukyTQ','devDependencies','join','\x20\x20\x20Current\x20version:\x20','8NqXcjv','2wTCcyK','package.json','latest','existsSync','↪\x20SDK\x20update\x20available','node_modules','readFileSync','88nwdivB','30879095fFfFBa','1852TYdJjV','log','\x1b[1m','8766CSCpqP','all','stableVersion','16074TbTXxu','node','packageName','10275167tYOtuF','873552yQiiHy','sdk','5lbAQhw','utf8','dependencies'];a275_0x11f3=function(){return _0x13cdbc;};return a275_0x11f3();}async function getSdkPackageName(){const _0x7f941d=a275_0x5485d9;try{const _0x422ccb=await getCdnConfig();return _0x422ccb?.[_0x7f941d(0xd3)]?.[_0x7f941d(0xcf)]?.[_0x7f941d(0xd0)]||_0x7f941d(0xd8);}catch{return _0x7f941d(0xd8);}}function a275_0x260d(_0x373a13,_0x4443a0){_0x373a13=_0x373a13-0xb8;const _0x11f360=a275_0x11f3();let _0x260d39=_0x11f360[_0x373a13];return _0x260d39;}export async function checkSdkVersion(_0x40c6f0){const _0x5d2a3a=a275_0x5485d9,_0x30e701=a275_0x175515[_0x5d2a3a(0xbc)](_0x40c6f0,_0x5d2a3a(0xc0)),[_0x53a3bf,_0xb2ac2b]=await Promise[_0x5d2a3a(0xcc)]([getSdkStableVersion(),getSdkPackageName()]),_0x3e4b2b=_0x53a3bf||FALLBACK_MIN_SDK_VERSION;if(!a275_0x4f10b9[_0x5d2a3a(0xc2)](_0x30e701))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};try{const _0x6cb1e0=JSON[_0x5d2a3a(0xd7)](a275_0x4f10b9[_0x5d2a3a(0xc5)](_0x30e701,_0x5d2a3a(0xd5))),_0x114d4e=_0x6cb1e0['dependencies']||{},_0x4f091a=_0x6cb1e0[_0x5d2a3a(0xbb)]||{},_0x55e5d6=_0x114d4e[_0xb2ac2b]||_0x4f091a[_0xb2ac2b];if(!_0x55e5d6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};let _0x24db3e=getInstalledVersion(_0x40c6f0,_0xb2ac2b);!_0x24db3e&&(_0x24db3e=_0x55e5d6);if(isNonNumericVersion(_0x55e5d6))return{'installed':!![],'version':_0x24db3e,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};const _0x84e1a6=a275_0x222740['coerce'](_0x24db3e),_0x255df5=a275_0x222740[_0x5d2a3a(0xda)](_0x3e4b2b),_0x2a9164=_0x84e1a6&&_0x255df5?a275_0x222740['lt'](_0x84e1a6,_0x255df5):![];return{'installed':!![],'version':_0x24db3e,'needsUpgrade':_0x2a9164,'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};}}export function checkSdkVersionSync(_0x11d933){const _0x3f09da=a275_0x5485d9,_0x3c96b3=a275_0x175515[_0x3f09da(0xbc)](_0x11d933,_0x3f09da(0xc0)),_0xc12e41=_0x3f09da(0xd8);if(!a275_0x4f10b9[_0x3f09da(0xc2)](_0x3c96b3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};try{const _0x28a4de=JSON[_0x3f09da(0xd7)](a275_0x4f10b9['readFileSync'](_0x3c96b3,_0x3f09da(0xd5))),_0x336457=_0x28a4de[_0x3f09da(0xd6)]||{},_0x182cef=_0x28a4de[_0x3f09da(0xbb)]||{},_0x3364ea=_0x336457[_0xc12e41]||_0x182cef[_0xc12e41];if(!_0x3364ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};let _0x2ad9a9=getInstalledVersion(_0x11d933,_0xc12e41);!_0x2ad9a9&&(_0x2ad9a9=_0x3364ea);if(isNonNumericVersion(_0x3364ea))return{'installed':!![],'version':_0x2ad9a9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};const _0x628e76=a275_0x222740[_0x3f09da(0xda)](_0x2ad9a9),_0x19015b=_0x628e76?a275_0x222740['lt'](_0x628e76,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ad9a9,'needsUpgrade':_0x19015b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x108fc5){const _0x371626=a275_0x5485d9;if(!_0x108fc5['needsUpgrade'])return;const _0x24f68e='\x1b[33m',_0x13d61e='\x1b[0m',_0x51941a=_0x371626(0xca),_0x7bdbd8=_0x108fc5[_0x371626(0xd0)]||'@lovrabet/sdk',_0x489397=_0x108fc5[_0x371626(0xcd)]||_0x108fc5[_0x371626(0xb8)],_0x50e5c3='npm\x20install\x20'+_0x7bdbd8+'@'+(_0x489397||_0x371626(0xc1));console[_0x371626(0xc9)](),console['log'](''+_0x24f68e+_0x51941a+_0x371626(0xc3)+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+_0x371626(0xbd)+_0x7bdbd8+'@'+_0x108fc5[_0x371626(0xdb)]+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+'\x20\x20\x20Stable\x20version:\x20'+_0x489397+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x50e5c3+_0x13d61e),console[_0x371626(0xc9)]();}
1
+ function a276_0x5c8f(){const _0x1d72f1=['↪\x20SDK\x20update\x20available','720780hMiBjk','1375418GFSnJs','parse','3573072uqoSqo','npm\x20install\x20','minVersion','latest','159480YdfAYF','readFileSync','devDependencies','\x20\x20\x20Stable\x20version:\x20','log','all','coerce','stableVersion','packageName','node_modules','some','12490WBFTrY','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','\x1b[0m','5168625OfrEXk','@lovrabet/sdk','15uYvZLx','744HFhZMV','existsSync','utf-8','package.json','sdk','version','60bUjOlj','node','dependencies','3378376DxaqhX','\x1b[1m','join'];a276_0x5c8f=function(){return _0x1d72f1;};return a276_0x5c8f();}(function(_0x2b9a99,_0x23f45c){const _0x4ff77f=a276_0x2c58,_0x3b328c=_0x2b9a99();while(!![]){try{const _0x3f8bf7=-parseInt(_0x4ff77f(0x1d7))/0x1+-parseInt(_0x4ff77f(0x1dd))/0x2*(-parseInt(_0x4ff77f(0x1c8))/0x3)+parseInt(_0x4ff77f(0x1c9))/0x4*(-parseInt(_0x4ff77f(0x1c2))/0x5)+parseInt(_0x4ff77f(0x1d6))/0x6+-parseInt(_0x4ff77f(0x1c6))/0x7+parseInt(_0x4ff77f(0x1d2))/0x8+parseInt(_0x4ff77f(0x1d9))/0x9*(parseInt(_0x4ff77f(0x1cf))/0xa);if(_0x3f8bf7===_0x23f45c)break;else _0x3b328c['push'](_0x3b328c['shift']());}catch(_0x4d27ad){_0x3b328c['push'](_0x3b328c['shift']());}}}(a276_0x5c8f,0xb5d32));import a276_0x5b0bcb from'node:fs';import a276_0x38e238 from'node:path';import a276_0x34ad49 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1d95e1){const _0x856f76=a276_0x2c58,_0x47ad37=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x47ad37[_0x856f76(0x1e7)](_0x5df9d8=>_0x5df9d8['test'](_0x1d95e1));}function getInstalledVersion(_0xcc5ee,_0x6e28a9){const _0x315229=a276_0x2c58;try{const _0x3f6a68=a276_0x38e238['join'](_0xcc5ee,_0x315229(0x1e6),_0x6e28a9,'package.json');if(a276_0x5b0bcb[_0x315229(0x1ca)](_0x3f6a68)){const _0x246938=JSON[_0x315229(0x1d8)](a276_0x5b0bcb[_0x315229(0x1de)](_0x3f6a68,_0x315229(0x1cb)));return _0x246938[_0x315229(0x1ce)]||null;}}catch{}return null;}function a276_0x2c58(_0x5d4b1c,_0xc50542){_0x5d4b1c=_0x5d4b1c-0x1c2;const _0x5c8fee=a276_0x5c8f();let _0x2c585f=_0x5c8fee[_0x5d4b1c];return _0x2c585f;}async function getSdkStableVersion(){const _0x45d738=a276_0x2c58;try{const _0x4d28f3=await getCdnConfig();return _0x4d28f3?.[_0x45d738(0x1cd)]?.[_0x45d738(0x1d0)]?.[_0x45d738(0x1e4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1db589=a276_0x2c58;try{const _0x34e56c=await getCdnConfig();return _0x34e56c?.[_0x1db589(0x1cd)]?.[_0x1db589(0x1d0)]?.[_0x1db589(0x1e5)]||_0x1db589(0x1c7);}catch{return _0x1db589(0x1c7);}}export async function checkSdkVersion(_0x68296){const _0x30e4e8=a276_0x2c58,_0x4deb7=a276_0x38e238[_0x30e4e8(0x1d4)](_0x68296,_0x30e4e8(0x1cc)),[_0x29237c,_0x43d3b3]=await Promise[_0x30e4e8(0x1e2)]([getSdkStableVersion(),getSdkPackageName()]),_0x5351a5=_0x29237c||FALLBACK_MIN_SDK_VERSION;if(!a276_0x5b0bcb[_0x30e4e8(0x1ca)](_0x4deb7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5351a5,'packageName':_0x43d3b3,'stableVersion':_0x29237c};try{const _0x47197f=JSON[_0x30e4e8(0x1d8)](a276_0x5b0bcb['readFileSync'](_0x4deb7,'utf8')),_0x5dfb2b=_0x47197f[_0x30e4e8(0x1d1)]||{},_0x341e9b=_0x47197f[_0x30e4e8(0x1df)]||{},_0x57391b=_0x5dfb2b[_0x43d3b3]||_0x341e9b[_0x43d3b3];if(!_0x57391b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5351a5,'packageName':_0x43d3b3,'stableVersion':_0x29237c};let _0x4820fd=getInstalledVersion(_0x68296,_0x43d3b3);!_0x4820fd&&(_0x4820fd=_0x57391b);if(isNonNumericVersion(_0x57391b))return{'installed':!![],'version':_0x4820fd,'needsUpgrade':![],'minVersion':_0x5351a5,'packageName':_0x43d3b3,'stableVersion':_0x29237c};const _0x30179e=a276_0x34ad49[_0x30e4e8(0x1e3)](_0x4820fd),_0x507c21=a276_0x34ad49[_0x30e4e8(0x1e3)](_0x5351a5),_0xf9afd=_0x30179e&&_0x507c21?a276_0x34ad49['lt'](_0x30179e,_0x507c21):![];return{'installed':!![],'version':_0x4820fd,'needsUpgrade':_0xf9afd,'minVersion':_0x5351a5,'packageName':_0x43d3b3,'stableVersion':_0x29237c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5351a5,'packageName':_0x43d3b3,'stableVersion':_0x29237c};}}export function checkSdkVersionSync(_0xf38d51){const _0x50bd14=a276_0x2c58,_0x4d4dae=a276_0x38e238[_0x50bd14(0x1d4)](_0xf38d51,'package.json'),_0x501bd1=_0x50bd14(0x1c7);if(!a276_0x5b0bcb[_0x50bd14(0x1ca)](_0x4d4dae))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x501bd1,'stableVersion':null};try{const _0x4bab7f=JSON[_0x50bd14(0x1d8)](a276_0x5b0bcb['readFileSync'](_0x4d4dae,'utf8')),_0x2231d1=_0x4bab7f['dependencies']||{},_0x5296b3=_0x4bab7f[_0x50bd14(0x1df)]||{},_0x3fee07=_0x2231d1[_0x501bd1]||_0x5296b3[_0x501bd1];if(!_0x3fee07)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x501bd1,'stableVersion':null};let _0x3f365f=getInstalledVersion(_0xf38d51,_0x501bd1);!_0x3f365f&&(_0x3f365f=_0x3fee07);if(isNonNumericVersion(_0x3fee07))return{'installed':!![],'version':_0x3f365f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x501bd1,'stableVersion':null};const _0x395bba=a276_0x34ad49[_0x50bd14(0x1e3)](_0x3f365f),_0x17728c=_0x395bba?a276_0x34ad49['lt'](_0x395bba,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3f365f,'needsUpgrade':_0x17728c,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x501bd1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x501bd1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5787d4){const _0x2bbd65=a276_0x2c58;if(!_0x5787d4[_0x2bbd65(0x1c3)])return;const _0x3c6f06='\x1b[33m',_0x41ec7f=_0x2bbd65(0x1c5),_0x4e3c34=_0x2bbd65(0x1d3),_0x3ce440=_0x5787d4[_0x2bbd65(0x1e5)]||_0x2bbd65(0x1c7),_0x95393b=_0x5787d4[_0x2bbd65(0x1e4)]||_0x5787d4[_0x2bbd65(0x1db)],_0x14e9ec=_0x2bbd65(0x1da)+_0x3ce440+'@'+(_0x95393b||_0x2bbd65(0x1dc));console['log'](),console[_0x2bbd65(0x1e1)](''+_0x3c6f06+_0x4e3c34+_0x2bbd65(0x1d5)+_0x41ec7f),console[_0x2bbd65(0x1e1)](_0x3c6f06+'\x20\x20\x20Current\x20version:\x20'+_0x3ce440+'@'+_0x5787d4[_0x2bbd65(0x1ce)]+_0x41ec7f),console[_0x2bbd65(0x1e1)](_0x3c6f06+_0x2bbd65(0x1e0)+_0x95393b+_0x41ec7f),console[_0x2bbd65(0x1e1)](_0x3c6f06+_0x2bbd65(0x1c4)+_0x14e9ec+_0x41ec7f),console['log']();}
@@ -1 +1 @@
1
- (function(_0xfd42be,_0x3f0a1f){const _0x1d58ce=a276_0x194e,_0x3772dc=_0xfd42be();while(!![]){try{const _0x451ec0=-parseInt(_0x1d58ce(0x9e))/0x1*(parseInt(_0x1d58ce(0x8d))/0x2)+parseInt(_0x1d58ce(0x99))/0x3*(parseInt(_0x1d58ce(0xad))/0x4)+-parseInt(_0x1d58ce(0x97))/0x5+-parseInt(_0x1d58ce(0x8e))/0x6+parseInt(_0x1d58ce(0xa4))/0x7*(parseInt(_0x1d58ce(0xaf))/0x8)+-parseInt(_0x1d58ce(0x94))/0x9*(-parseInt(_0x1d58ce(0xa7))/0xa)+-parseInt(_0x1d58ce(0x9d))/0xb*(-parseInt(_0x1d58ce(0x96))/0xc);if(_0x451ec0===_0x3f0a1f)break;else _0x3772dc['push'](_0x3772dc['shift']());}catch(_0x1c8a6c){_0x3772dc['push'](_0x3772dc['shift']());}}}(a276_0x5893,0xbe4cc));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a276_0x5893(){const _0x168d76=['Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','↪\x20Critical\x20CLI\x20upgrade\x20required','validation','60XNqhLA','6381306ClZFGH','parse','log','1.0.0','belowMinimum','../..','3832407bBBlmh','coerce','48HtJaVd','4779190UtPgqC','upgradeMessage','108sWzXhw','\x1b[0m','utf-8','stableVersion','1067110EnSLNG','17205DprjvE','join','filter','↪\x20New\x20version\x20available','\x1b[33m','\x1b[31m','736876svNbAO','\x1b[1m','minimumVersion','10RDvVHJ','minimumVersionMessage','Current\x20version:\x20','needsUpgrade','npm\x20install\x20-g\x20','latest','149244ThxudE','Upgrade\x20command:\x20','88tnzeMP','version','\x20\x20\x20Recommended\x20stable:\x20','currentVersion','\x20\x20\x20','\x20\x20\x20Stable\x20version:\x20'];a276_0x5893=function(){return _0x168d76;};return a276_0x5893();}import a276_0x1921d2 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5d5fb3){const _0x3976da=a276_0x194e,_0x19502b=_0x5d5fb3[_0x3976da(0x9c)]||_0x3976da(0xac);return _0x3976da(0xab)+NPM_PACKAGE_NAME+'@'+_0x19502b;}function getCurrentCliVersion(){const _0x57bbf5=a276_0x194e;try{const _0x57a014=fileURLToPath(import.meta.url),_0x320f42=resolve(dirname(_0x57a014),_0x57bbf5(0x93)),_0x3a9879=resolve(_0x320f42,'package.json'),_0x133e6f=JSON[_0x57bbf5(0x8f)](readFileSync(_0x3a9879,_0x57bbf5(0x9b)));return _0x133e6f[_0x57bbf5(0xb0)]||_0x57bbf5(0x91);}catch{return _0x57bbf5(0x91);}}export async function checkCliVersion(){const _0x5b9d58=a276_0x194e,_0xc5dc9a=getCurrentCliVersion(),_0x36dabd=await getCliVersionPolicy(),_0x38e0d6=_0x36dabd?.['stableVersion']||null,_0x1cb549=_0x36dabd?.[_0x5b9d58(0xa6)]||null;let _0xf2de8b=![],_0x346b84=![];const _0x443fd0=a276_0x1921d2['coerce'](_0xc5dc9a);if(_0x443fd0&&_0x38e0d6)try{const _0x1f2cac=a276_0x1921d2[_0x5b9d58(0x95)](_0x38e0d6);if(_0x1f2cac)_0xf2de8b=a276_0x1921d2['lt'](_0x443fd0,_0x1f2cac);}catch{}if(_0x443fd0&&_0x1cb549)try{const _0x258cd2=a276_0x1921d2[_0x5b9d58(0x95)](_0x1cb549);if(_0x258cd2)_0x346b84=a276_0x1921d2['lt'](_0x443fd0,_0x258cd2);}catch{}return _0x346b84&&(_0xf2de8b=!![]),{'currentVersion':_0xc5dc9a,'stableVersion':_0x38e0d6,'minimumVersion':_0x1cb549,'needsUpgrade':_0xf2de8b,'belowMinimum':_0x346b84,'isPreRelease':![],'upgradeMessage':_0x36dabd?.[_0x5b9d58(0x98)],'minimumVersionMessage':_0x36dabd?.[_0x5b9d58(0xa8)]};}export function printCliUpgradeWarning(_0x33413d){const _0x51df2d=a276_0x194e;if(!_0x33413d[_0x51df2d(0xaa)]&&!_0x33413d[_0x51df2d(0x92)])return;const _0xeccf23=_0x51df2d(0xa3),_0x56d159=_0x51df2d(0xa2),_0x328ad7=_0x51df2d(0x9a),_0x26b052=_0x51df2d(0xa5),_0x590a26=getCliUpgradeCommand(_0x33413d);console[_0x51df2d(0x90)](),_0x33413d['belowMinimum']?(console[_0x51df2d(0x90)](''+_0xeccf23+_0x26b052+_0x51df2d(0x8b)+_0x328ad7),console['log'](_0xeccf23+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x33413d[_0x51df2d(0xb2)]+_0x328ad7),_0x33413d[_0x51df2d(0xa6)]&&console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20Minimum\x20supported:\x20'+_0x33413d[_0x51df2d(0xa6)]+_0x328ad7),_0x33413d[_0x51df2d(0x9c)]&&_0x33413d[_0x51df2d(0x9c)]!==_0x33413d[_0x51df2d(0xa6)]&&console[_0x51df2d(0x90)](_0xeccf23+_0x51df2d(0xb1)+_0x33413d[_0x51df2d(0x9c)]+_0x328ad7),_0x33413d[_0x51df2d(0xa8)]&&console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20'+_0x33413d[_0x51df2d(0xa8)]+_0x328ad7),console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20Upgrade\x20command:\x20'+_0x590a26+_0x328ad7)):(console[_0x51df2d(0x90)](''+_0x56d159+_0x26b052+_0x51df2d(0xa1)+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x33413d[_0x51df2d(0xb2)]+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+_0x51df2d(0x89)+_0x33413d[_0x51df2d(0x9c)]+_0x328ad7),_0x33413d[_0x51df2d(0x98)]&&console[_0x51df2d(0x90)](_0x56d159+_0x51df2d(0x88)+_0x33413d[_0x51df2d(0x98)]+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+'\x20\x20\x20Upgrade\x20command:\x20'+_0x590a26+_0x328ad7)),console[_0x51df2d(0x90)]();}function a276_0x194e(_0xc8a556,_0x1a3252){_0xc8a556=_0xc8a556-0x88;const _0x58935a=a276_0x5893();let _0x194e20=_0x58935a[_0xc8a556];return _0x194e20;}export function assertCliVersionSupported(_0x358dc4){const _0xbe0266=a276_0x194e;if(!_0x358dc4[_0xbe0266(0x92)])return;const _0x5a29a7=[_0x358dc4[_0xbe0266(0xa8)],_0xbe0266(0xa9)+_0x358dc4[_0xbe0266(0xb2)],_0x358dc4[_0xbe0266(0xa6)]?'Minimum\x20supported:\x20'+_0x358dc4[_0xbe0266(0xa6)]:null,_0xbe0266(0xae)+getCliUpgradeCommand(_0x358dc4)][_0xbe0266(0xa0)](Boolean)[_0xbe0266(0x9f)]('\x0a');throw CliErrors[_0xbe0266(0x8c)](_0xbe0266(0x8a),_0x5a29a7);}
1
+ (function(_0x1878c3,_0xc4122a){const _0xbbceba=a277_0x2e92,_0x3045fc=_0x1878c3();while(!![]){try{const _0x59bcab=parseInt(_0xbbceba(0x155))/0x1*(-parseInt(_0xbbceba(0x14d))/0x2)+-parseInt(_0xbbceba(0x157))/0x3+parseInt(_0xbbceba(0x15a))/0x4+-parseInt(_0xbbceba(0x161))/0x5*(-parseInt(_0xbbceba(0x16a))/0x6)+-parseInt(_0xbbceba(0x16e))/0x7+-parseInt(_0xbbceba(0x14e))/0x8+-parseInt(_0xbbceba(0x14f))/0x9*(-parseInt(_0xbbceba(0x162))/0xa);if(_0x59bcab===_0xc4122a)break;else _0x3045fc['push'](_0x3045fc['shift']());}catch(_0x54563d){_0x3045fc['push'](_0x3045fc['shift']());}}}(a277_0x340a,0x85de3));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a277_0x3bd38f from'semver';function a277_0x340a(){const _0x5eca75=['180144RPsSIg','\x20\x20\x20Minimum\x20supported:\x20','1.0.0','../..','\x1b[1m','log','181433rKuQjr','stableVersion','1672419VWdDgF','filter','minimumVersion','185120QtHGIE','parse','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','utf-8','Minimum\x20supported:\x20','latest','670bcoQqL','1070reIVAi','belowMinimum','version','package.json','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','npm\x20install\x20-g\x20','minimumVersionMessage','39228siJDeI','\x20\x20\x20','\x20\x20\x20Upgrade\x20command:\x20','upgradeMessage','4008739ULaAUi','\x1b[0m','↪\x20Critical\x20CLI\x20upgrade\x20required','currentVersion','6KKpglq','6730496LlFMTQ'];a277_0x340a=function(){return _0x5eca75;};return a277_0x340a();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a277_0x2e92(_0x415be7,_0x21a5ca){_0x415be7=_0x415be7-0x14b;const _0x340a5c=a277_0x340a();let _0x2e9289=_0x340a5c[_0x415be7];return _0x2e9289;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x278109){const _0x30c115=a277_0x2e92,_0x3ea5a5=_0x278109[_0x30c115(0x156)]||_0x30c115(0x160);return _0x30c115(0x168)+NPM_PACKAGE_NAME+'@'+_0x3ea5a5;}function getCurrentCliVersion(){const _0x4a833c=a277_0x2e92;try{const _0x1721e3=fileURLToPath(import.meta.url),_0x218a86=resolve(dirname(_0x1721e3),_0x4a833c(0x152)),_0x39fe0a=resolve(_0x218a86,_0x4a833c(0x165)),_0x1b99c5=JSON[_0x4a833c(0x15b)](readFileSync(_0x39fe0a,_0x4a833c(0x15e)));return _0x1b99c5[_0x4a833c(0x164)]||_0x4a833c(0x151);}catch{return _0x4a833c(0x151);}}export async function checkCliVersion(){const _0x40aa0a=a277_0x2e92,_0x3f4eaa=getCurrentCliVersion(),_0x46fd8e=await getCliVersionPolicy(),_0x408a41=_0x46fd8e?.[_0x40aa0a(0x156)]||null,_0x2337d0=_0x46fd8e?.[_0x40aa0a(0x159)]||null;let _0x217235=![],_0x35b2de=![];const _0x37d135=a277_0x3bd38f['coerce'](_0x3f4eaa);if(_0x37d135&&_0x408a41)try{const _0x40fea7=a277_0x3bd38f['coerce'](_0x408a41);if(_0x40fea7)_0x217235=a277_0x3bd38f['lt'](_0x37d135,_0x40fea7);}catch{}if(_0x37d135&&_0x2337d0)try{const _0x2882f9=a277_0x3bd38f['coerce'](_0x2337d0);if(_0x2882f9)_0x35b2de=a277_0x3bd38f['lt'](_0x37d135,_0x2882f9);}catch{}return _0x35b2de&&(_0x217235=!![]),{'currentVersion':_0x3f4eaa,'stableVersion':_0x408a41,'minimumVersion':_0x2337d0,'needsUpgrade':_0x217235,'belowMinimum':_0x35b2de,'isPreRelease':![],'upgradeMessage':_0x46fd8e?.[_0x40aa0a(0x16d)],'minimumVersionMessage':_0x46fd8e?.[_0x40aa0a(0x169)]};}export function printCliUpgradeWarning(_0x417eea){const _0x35ec00=a277_0x2e92;if(!_0x417eea['needsUpgrade']&&!_0x417eea[_0x35ec00(0x163)])return;const _0x50ad88=_0x35ec00(0x166),_0x248a29='\x1b[33m',_0x11402d=_0x35ec00(0x16f),_0x105770=_0x35ec00(0x153),_0x572ace=getCliUpgradeCommand(_0x417eea);console[_0x35ec00(0x154)](),_0x417eea[_0x35ec00(0x163)]?(console[_0x35ec00(0x154)](''+_0x50ad88+_0x105770+_0x35ec00(0x14b)+_0x11402d),console['log'](_0x50ad88+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x417eea[_0x35ec00(0x14c)]+_0x11402d),_0x417eea[_0x35ec00(0x159)]&&console[_0x35ec00(0x154)](_0x50ad88+_0x35ec00(0x150)+_0x417eea[_0x35ec00(0x159)]+_0x11402d),_0x417eea[_0x35ec00(0x156)]&&_0x417eea[_0x35ec00(0x156)]!==_0x417eea[_0x35ec00(0x159)]&&console[_0x35ec00(0x154)](_0x50ad88+_0x35ec00(0x15d)+_0x417eea['stableVersion']+_0x11402d),_0x417eea['minimumVersionMessage']&&console[_0x35ec00(0x154)](_0x50ad88+_0x35ec00(0x16b)+_0x417eea[_0x35ec00(0x169)]+_0x11402d),console[_0x35ec00(0x154)](_0x50ad88+'\x20\x20\x20Upgrade\x20command:\x20'+_0x572ace+_0x11402d)):(console['log'](''+_0x248a29+_0x105770+'↪\x20New\x20version\x20available'+_0x11402d),console[_0x35ec00(0x154)](_0x248a29+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x417eea[_0x35ec00(0x14c)]+_0x11402d),console[_0x35ec00(0x154)](_0x248a29+_0x35ec00(0x15c)+_0x417eea['stableVersion']+_0x11402d),_0x417eea[_0x35ec00(0x16d)]&&console[_0x35ec00(0x154)](_0x248a29+_0x35ec00(0x16b)+_0x417eea[_0x35ec00(0x16d)]+_0x11402d),console[_0x35ec00(0x154)](_0x248a29+_0x35ec00(0x16c)+_0x572ace+_0x11402d)),console[_0x35ec00(0x154)]();}export function assertCliVersionSupported(_0x1c1f7f){const _0x138842=a277_0x2e92;if(!_0x1c1f7f[_0x138842(0x163)])return;const _0x188c1b=[_0x1c1f7f[_0x138842(0x169)],'Current\x20version:\x20'+_0x1c1f7f[_0x138842(0x14c)],_0x1c1f7f[_0x138842(0x159)]?_0x138842(0x15f)+_0x1c1f7f['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x1c1f7f)][_0x138842(0x158)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x138842(0x167),_0x188c1b);}
@@ -1 +1 @@
1
- (function(_0x543764,_0x37ced3){const _0x254ddf=a277_0x3694,_0x386768=_0x543764();while(!![]){try{const _0x551fd4=-parseInt(_0x254ddf(0x176))/0x1+parseInt(_0x254ddf(0x185))/0x2+parseInt(_0x254ddf(0x180))/0x3*(parseInt(_0x254ddf(0x17d))/0x4)+-parseInt(_0x254ddf(0x174))/0x5*(-parseInt(_0x254ddf(0x17f))/0x6)+parseInt(_0x254ddf(0x186))/0x7+parseInt(_0x254ddf(0x175))/0x8+-parseInt(_0x254ddf(0x189))/0x9;if(_0x551fd4===_0x37ced3)break;else _0x386768['push'](_0x386768['shift']());}catch(_0xd8035e){_0x386768['push'](_0x386768['shift']());}}}(a277_0x5c93,0x4e195));function a277_0x3694(_0x5f5994,_0xccdd4c){_0x5f5994=_0x5f5994-0x174;const _0x5c935c=a277_0x5c93();let _0x3694a1=_0x5c935c[_0x5f5994];return _0x3694a1;}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 a277_0x5c93(){const _0x5cb9cd=['string','minimumVersionMessage','cli','60vJMNcg','4534800cMbWTw','622102FiWYkJ','recommendedVersion','now','application/json','object','upgradeMessage','trim','12mKryrq','signal','54396gdpvxM','527127TgGfZd','latestVersion','length','stableVersion','minimumVersion','1074928LMqFZd','3466659TUqBcs','abort','minVersion','11641275TbBYiJ'];a277_0x5c93=function(){return _0x5cb9cd;};return a277_0x5c93();}function pickString(_0x7e30f8){const _0x54001c=a277_0x3694;return typeof _0x7e30f8===_0x54001c(0x18a)&&_0x7e30f8[_0x54001c(0x17c)]()[_0x54001c(0x182)]>0x0?_0x7e30f8[_0x54001c(0x17c)]():null;}function normalizeCliVersionPolicy(_0x3395a1){const _0x10bae1=a277_0x3694;if(!_0x3395a1||typeof _0x3395a1!==_0x10bae1(0x17a))return null;const _0x5b87f4=_0x3395a1,_0x47afc6=_0x5b87f4[_0x10bae1(0x18c)]&&typeof _0x5b87f4[_0x10bae1(0x18c)]===_0x10bae1(0x17a)?_0x5b87f4[_0x10bae1(0x18c)]:_0x5b87f4,_0x21b32f=pickString(_0x47afc6[_0x10bae1(0x183)])||pickString(_0x47afc6[_0x10bae1(0x181)])||pickString(_0x47afc6[_0x10bae1(0x177)]),_0x2915d9=pickString(_0x47afc6[_0x10bae1(0x184)])||pickString(_0x47afc6[_0x10bae1(0x188)]);if(!_0x21b32f&&!_0x2915d9)return null;return{'stableVersion':_0x21b32f,'minimumVersion':_0x2915d9,'upgradeMessage':pickString(_0x47afc6[_0x10bae1(0x17b)])||undefined,'minimumVersionMessage':pickString(_0x47afc6[_0x10bae1(0x18b)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x3147f1=a277_0x3694,_0x1ed06d=new AbortController(),_0xfb9615=setTimeout(()=>_0x1ed06d[_0x3147f1(0x187)](),FETCH_TIMEOUT_MS);try{const _0xd868c4=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3147f1(0x179)},'signal':_0x1ed06d[_0x3147f1(0x17e)]});if(!_0xd868c4['ok'])return null;const _0xbad9af=await _0xd868c4['json']();return _0xbad9af&&typeof _0xbad9af===_0x3147f1(0x17a)?_0xbad9af:null;}catch{return null;}finally{clearTimeout(_0xfb9615);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5e7e34=a277_0x3694,_0x545cd6=Date[_0x5e7e34(0x178)]();if(hasCachedConfig){const _0x1c75e7=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x545cd6-cacheTime<_0x1c75e7)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x545cd6,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x289323,_0x5c4d54){const _0x3592ef=a278_0x2c07,_0x591f7d=_0x289323();while(!![]){try{const _0x16d971=parseInt(_0x3592ef(0x1f6))/0x1*(-parseInt(_0x3592ef(0x1f2))/0x2)+parseInt(_0x3592ef(0x1f1))/0x3+-parseInt(_0x3592ef(0x1fa))/0x4+-parseInt(_0x3592ef(0x1ee))/0x5+parseInt(_0x3592ef(0x1f4))/0x6+parseInt(_0x3592ef(0x1fb))/0x7*(parseInt(_0x3592ef(0x1ff))/0x8)+-parseInt(_0x3592ef(0x1ef))/0x9*(parseInt(_0x3592ef(0x1f0))/0xa);if(_0x16d971===_0x5c4d54)break;else _0x591f7d['push'](_0x591f7d['shift']());}catch(_0x8a1acd){_0x591f7d['push'](_0x591f7d['shift']());}}}(a278_0xa9a4,0x498cb));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(_0x917061){const _0x63e6b4=a278_0x2c07;return typeof _0x917061===_0x63e6b4(0x1fc)&&_0x917061[_0x63e6b4(0x1fd)]()['length']>0x0?_0x917061[_0x63e6b4(0x1fd)]():null;}function normalizeCliVersionPolicy(_0x211cb2){const _0x5e1c92=a278_0x2c07;if(!_0x211cb2||typeof _0x211cb2!==_0x5e1c92(0x1ec))return null;const _0x20f233=_0x211cb2,_0x2226dc=_0x20f233[_0x5e1c92(0x1f5)]&&typeof _0x20f233['cli']===_0x5e1c92(0x1ec)?_0x20f233['cli']:_0x20f233,_0x3bcabd=pickString(_0x2226dc[_0x5e1c92(0x1ed)])||pickString(_0x2226dc[_0x5e1c92(0x1fe)])||pickString(_0x2226dc['recommendedVersion']),_0x412e40=pickString(_0x2226dc['minimumVersion'])||pickString(_0x2226dc[_0x5e1c92(0x1eb)]);if(!_0x3bcabd&&!_0x412e40)return null;return{'stableVersion':_0x3bcabd,'minimumVersion':_0x412e40,'upgradeMessage':pickString(_0x2226dc[_0x5e1c92(0x1f9)])||undefined,'minimumVersionMessage':pickString(_0x2226dc['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x577bad=a278_0x2c07,_0x556bb7=new AbortController(),_0x369f6d=setTimeout(()=>_0x556bb7[_0x577bad(0x1f8)](),FETCH_TIMEOUT_MS);try{const _0x679f4c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x577bad(0x1e9)},'signal':_0x556bb7[_0x577bad(0x1f3)]});if(!_0x679f4c['ok'])return null;const _0x33aef7=await _0x679f4c[_0x577bad(0x1f7)]();return _0x33aef7&&typeof _0x33aef7===_0x577bad(0x1ec)?_0x33aef7:null;}catch{return null;}finally{clearTimeout(_0x369f6d);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x2bea04=a278_0x2c07,_0x3e892f=Date[_0x2bea04(0x1ea)]();if(hasCachedConfig){const _0x4d76d3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3e892f-cacheTime<_0x4d76d3)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x3e892f,hasCachedConfig=!![],cachedConfig;}function a278_0xa9a4(){const _0x4b28fd=['upgradeMessage','1586576UZyOxO','7LWlXHS','string','trim','latestVersion','4690760mqcxlu','application/json','now','minVersion','object','stableVersion','565365AedfFW','711SgVSEx','39030vuFljk','1486287KqQqof','2oMQtip','signal','1221192YckLxQ','cli','165993BdeKpo','json','abort'];a278_0xa9a4=function(){return _0x4b28fd;};return a278_0xa9a4();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}function a278_0x2c07(_0x5d5e72,_0xf618a8){_0x5d5e72=_0x5d5e72-0x1e9;const _0xa9a41f=a278_0xa9a4();let _0x2c07ce=_0xa9a41f[_0x5d5e72];return _0x2c07ce;}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a278_0x15b8e9=a278_0x26f1;(function(_0x1bfc67,_0x4a2106){const _0x2cf9dd=a278_0x26f1,_0x188a8c=_0x1bfc67();while(!![]){try{const _0x174bad=parseInt(_0x2cf9dd(0x155))/0x1*(-parseInt(_0x2cf9dd(0x15a))/0x2)+parseInt(_0x2cf9dd(0x153))/0x3*(parseInt(_0x2cf9dd(0x15e))/0x4)+-parseInt(_0x2cf9dd(0x158))/0x5+parseInt(_0x2cf9dd(0x156))/0x6*(parseInt(_0x2cf9dd(0x154))/0x7)+-parseInt(_0x2cf9dd(0x150))/0x8+-parseInt(_0x2cf9dd(0x15c))/0x9*(parseInt(_0x2cf9dd(0x152))/0xa)+-parseInt(_0x2cf9dd(0x15d))/0xb*(-parseInt(_0x2cf9dd(0x15b))/0xc);if(_0x174bad===_0x4a2106)break;else _0x188a8c['push'](_0x188a8c['shift']());}catch(_0x9efebf){_0x188a8c['push'](_0x188a8c['shift']());}}}(a278_0x54f9,0xc17cd));function a278_0x54f9(){const _0x4105c6=['string','878420aPnbbS','36646548USpOXS','83367HJOpax','11TOlJjU','3948MtluRP','6900104uqZtJc','env','290yUEEPi','243nmHjyp','217hefCKn','3hTeOzq','77898gIZcej','project','1475020ZRurln'];a278_0x54f9=function(){return _0x4105c6;};return a278_0x54f9();}import{initEnv}from'../constant/env.js';function a278_0x26f1(_0x27473e,_0x1dc255){_0x27473e=_0x27473e-0x150;const _0x54f999=a278_0x54f9();let _0x26f1da=_0x54f999[_0x27473e];return _0x26f1da;}import{readRawConfig,getConfigAppCode as a278_0x272ea5,getMultiAppConfigs as a278_0x3f0db0,getTemplateBaseUrl as a278_0x2ce0a7}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x11ca12){const _0x284eb9=a278_0x26f1,_0x327ea9=readRawConfig(_0x11ca12);return _0x327ea9[_0x284eb9(0x151)]&&typeof _0x327ea9[_0x284eb9(0x151)]===_0x284eb9(0x159)&&initEnv(_0x327ea9[_0x284eb9(0x151)]),_0x327ea9;}export function getConfigAppCode(){return a278_0x272ea5();}export function getMultiAppConfigs(_0x5568ab=a278_0x15b8e9(0x157)){return a278_0x3f0db0(_0x5568ab);}export function getTemplateBaseUrl(){return a278_0x2ce0a7();}
1
+ const a279_0x379206=a279_0x42c7;(function(_0x4968ac,_0x23d904){const _0x537a33=a279_0x42c7,_0x24fba8=_0x4968ac();while(!![]){try{const _0x2e786f=-parseInt(_0x537a33(0x14e))/0x1+parseInt(_0x537a33(0x14b))/0x2*(-parseInt(_0x537a33(0x147))/0x3)+parseInt(_0x537a33(0x14d))/0x4+parseInt(_0x537a33(0x152))/0x5*(parseInt(_0x537a33(0x146))/0x6)+parseInt(_0x537a33(0x14f))/0x7+-parseInt(_0x537a33(0x14c))/0x8*(parseInt(_0x537a33(0x148))/0x9)+parseInt(_0x537a33(0x14a))/0xa;if(_0x2e786f===_0x23d904)break;else _0x24fba8['push'](_0x24fba8['shift']());}catch(_0x231ba6){_0x24fba8['push'](_0x24fba8['shift']());}}}(a279_0x53f3,0x4d018));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a279_0x117ea3,getMultiAppConfigs as a279_0x43d98a,getTemplateBaseUrl as a279_0x42febf}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x312ed3){const _0x5a9ce3=a279_0x42c7,_0xefd9c9=readRawConfig(_0x312ed3);return _0xefd9c9[_0x5a9ce3(0x151)]&&typeof _0xefd9c9[_0x5a9ce3(0x151)]===_0x5a9ce3(0x150)&&initEnv(_0xefd9c9['env']),_0xefd9c9;}export function getConfigAppCode(){return a279_0x117ea3();}export function getMultiAppConfigs(_0x2d00b6=a279_0x379206(0x149)){return a279_0x43d98a(_0x2d00b6);}function a279_0x53f3(){const _0x128471=['879990WykTAj','34179ZwTzmy','5382yrubUA','project','1633470WzApth','4DSkTYU','6776jmIDBj','1954860ViTZhX','585661RiNeMl','3394839nxVTYe','string','env','10RSKbNW'];a279_0x53f3=function(){return _0x128471;};return a279_0x53f3();}function a279_0x42c7(_0x578f6f,_0x345645){_0x578f6f=_0x578f6f-0x146;const _0x53f323=a279_0x53f3();let _0x42c753=_0x53f323[_0x578f6f];return _0x42c753;}export function getTemplateBaseUrl(){return a279_0x42febf();}
@@ -1 +1 @@
1
- (function(_0x1b2d56,_0x580d0){const _0x1f9c18=a279_0x442e,_0x2dd50d=_0x1b2d56();while(!![]){try{const _0x4503ba=parseInt(_0x1f9c18(0x1c8))/0x1*(parseInt(_0x1f9c18(0x1c9))/0x2)+-parseInt(_0x1f9c18(0x1c7))/0x3+-parseInt(_0x1f9c18(0x1cd))/0x4+parseInt(_0x1f9c18(0x1c6))/0x5+parseInt(_0x1f9c18(0x1c5))/0x6*(parseInt(_0x1f9c18(0x1c4))/0x7)+-parseInt(_0x1f9c18(0x1c1))/0x8+-parseInt(_0x1f9c18(0x1cb))/0x9;if(_0x4503ba===_0x580d0)break;else _0x2dd50d['push'](_0x2dd50d['shift']());}catch(_0x47cdff){_0x2dd50d['push'](_0x2dd50d['shift']());}}}(a279_0x3936,0x780a9));function toFiniteNumber(_0x4bb1da){const _0xdc149c=a279_0x442e;if(typeof _0x4bb1da==='number'&&Number['isFinite'](_0x4bb1da))return _0x4bb1da;if(typeof _0x4bb1da===_0xdc149c(0x1c2)){const _0x56b683=_0x4bb1da[_0xdc149c(0x1c3)]();if(!_0x56b683)return undefined;const _0x2e4606=Number(_0x56b683);if(Number[_0xdc149c(0x1ca)](_0x2e4606))return _0x2e4606;}return undefined;}function a279_0x442e(_0x5a44d5,_0x290531){_0x5a44d5=_0x5a44d5-0x1c1;const _0x3936d6=a279_0x3936();let _0x442e00=_0x3936d6[_0x5a44d5];return _0x442e00;}export function normalizeEntityWithIdResponse(_0x117111){const _0x40a7e3=a279_0x442e,_0x293678=toFiniteNumber(_0x117111);if(_0x293678!==undefined)return{'id':_0x293678,'entity':{'id':_0x293678}};if(!_0x117111||typeof _0x117111!==_0x40a7e3(0x1cc))return{'id':undefined,'entity':{}};const _0xe9bc7e={..._0x117111},_0x1249a5=toFiniteNumber(_0xe9bc7e['id']);return _0x1249a5!==undefined&&(_0xe9bc7e['id']=_0x1249a5),{'id':_0x1249a5,'entity':_0xe9bc7e};}function a279_0x3936(){const _0x1b22b8=['2963214VUxsTt','object','706228QFKEJc','1787816WgHiEI','string','trim','7NEZVYg','3828732cyCoIJ','3764080bPBQyU','1565928BeZLTf','352007RzxAZt','2TbaMUR','isFinite'];a279_0x3936=function(){return _0x1b22b8;};return a279_0x3936();}
1
+ function a280_0x2137(_0x2a0ec6,_0x4a77c7){_0x2a0ec6=_0x2a0ec6-0xd7;const _0x18b716=a280_0x18b7();let _0x213752=_0x18b716[_0x2a0ec6];return _0x213752;}(function(_0x27c3d1,_0x5180e5){const _0x5eea25=a280_0x2137,_0x3973d2=_0x27c3d1();while(!![]){try{const _0x257294=parseInt(_0x5eea25(0xd9))/0x1+parseInt(_0x5eea25(0xd8))/0x2*(-parseInt(_0x5eea25(0xe1))/0x3)+-parseInt(_0x5eea25(0xdf))/0x4+parseInt(_0x5eea25(0xe4))/0x5+parseInt(_0x5eea25(0xda))/0x6*(parseInt(_0x5eea25(0xe2))/0x7)+parseInt(_0x5eea25(0xdd))/0x8+-parseInt(_0x5eea25(0xde))/0x9*(parseInt(_0x5eea25(0xe5))/0xa);if(_0x257294===_0x5180e5)break;else _0x3973d2['push'](_0x3973d2['shift']());}catch(_0x25fbaf){_0x3973d2['push'](_0x3973d2['shift']());}}}(a280_0x18b7,0xd650f));function toFiniteNumber(_0x5df8eb){const _0x1fbf85=a280_0x2137;if(typeof _0x5df8eb===_0x1fbf85(0xd7)&&Number[_0x1fbf85(0xe3)](_0x5df8eb))return _0x5df8eb;if(typeof _0x5df8eb===_0x1fbf85(0xe0)){const _0x2828ac=_0x5df8eb[_0x1fbf85(0xdb)]();if(!_0x2828ac)return undefined;const _0x374c8b=Number(_0x2828ac);if(Number[_0x1fbf85(0xe3)](_0x374c8b))return _0x374c8b;}return undefined;}export function normalizeEntityWithIdResponse(_0x25c5de){const _0x22f44c=a280_0x2137,_0x43b862=toFiniteNumber(_0x25c5de);if(_0x43b862!==undefined)return{'id':_0x43b862,'entity':{'id':_0x43b862}};if(!_0x25c5de||typeof _0x25c5de!==_0x22f44c(0xdc))return{'id':undefined,'entity':{}};const _0x470372={..._0x25c5de},_0x441142=toFiniteNumber(_0x470372['id']);return _0x441142!==undefined&&(_0x470372['id']=_0x441142),{'id':_0x441142,'entity':_0x470372};}function a280_0x18b7(){const _0x2f7a97=['3175540tLsSpT','string','122517YrZBhm','22435nMbZRC','isFinite','7529160jPkATR','170ejYwRT','number','8zjvjmU','22564wfPsia','2094JuxMGT','trim','object','4210760wWofPd','708462wrhkVq'];a280_0x18b7=function(){return _0x2f7a97;};return a280_0x18b7();}
@@ -1 +1 @@
1
- (function(_0x2c9dda,_0x5621a5){const _0x2adef4=a280_0x36e7,_0x413b9c=_0x2c9dda();while(!![]){try{const _0x4eb760=-parseInt(_0x2adef4(0x173))/0x1+-parseInt(_0x2adef4(0x16d))/0x2*(-parseInt(_0x2adef4(0x174))/0x3)+parseInt(_0x2adef4(0x16e))/0x4+parseInt(_0x2adef4(0x170))/0x5+-parseInt(_0x2adef4(0x171))/0x6+-parseInt(_0x2adef4(0x172))/0x7+parseInt(_0x2adef4(0x16f))/0x8;if(_0x4eb760===_0x5621a5)break;else _0x413b9c['push'](_0x413b9c['shift']());}catch(_0x33b443){_0x413b9c['push'](_0x413b9c['shift']());}}}(a280_0x193b,0x96551));function a280_0x36e7(_0x1091ff,_0x2a1594){_0x1091ff=_0x1091ff-0x16d;const _0x193b91=a280_0x193b();let _0x36e7a9=_0x193b91[_0x1091ff];return _0x36e7a9;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4a27ff,_0x1df969){const _0x1b4d26=a280_0x36e7,_0x3fa7ee=statSync(_0x4a27ff);if(_0x3fa7ee[_0x1b4d26(0x175)]()){!existsSync(_0x1df969)&&mkdirSync(_0x1df969,{'recursive':!![]});const _0x1d05f5=readdirSync(_0x4a27ff);for(const _0x76aa5e of _0x1d05f5){await copyDir(join(_0x4a27ff,_0x76aa5e),join(_0x1df969,_0x76aa5e));}}else copyFileSync(_0x4a27ff,_0x1df969);}function a280_0x193b(){const _0x48c304=['3401466gxxKaV','3769661zEiBhq','630878HfArlU','971307fsvOwx','isDirectory','6HyQGNq','404252rhqqfd','6488112KrgxAb','2343445mScTGM'];a280_0x193b=function(){return _0x48c304;};return a280_0x193b();}export function ensureDir(_0x32a2ad){!existsSync(_0x32a2ad)&&mkdirSync(_0x32a2ad,{'recursive':!![]});}export function pathExists(_0x4bffa9){return existsSync(_0x4bffa9);}
1
+ (function(_0x2e1200,_0xdf8197){const _0x2e798d=a281_0x57e4,_0x58c48a=_0x2e1200();while(!![]){try{const _0x3866aa=parseInt(_0x2e798d(0x1ad))/0x1*(parseInt(_0x2e798d(0x1a9))/0x2)+-parseInt(_0x2e798d(0x1af))/0x3*(-parseInt(_0x2e798d(0x1b1))/0x4)+-parseInt(_0x2e798d(0x1ae))/0x5+parseInt(_0x2e798d(0x1b0))/0x6+parseInt(_0x2e798d(0x1ac))/0x7+-parseInt(_0x2e798d(0x1a8))/0x8*(-parseInt(_0x2e798d(0x1a7))/0x9)+-parseInt(_0x2e798d(0x1ab))/0xa*(parseInt(_0x2e798d(0x1aa))/0xb);if(_0x3866aa===_0xdf8197)break;else _0x58c48a['push'](_0x58c48a['shift']());}catch(_0x33a5ce){_0x58c48a['push'](_0x58c48a['shift']());}}}(a281_0x341f,0x3c23f));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x26a119,_0x2c2230){const _0x55147c=a281_0x57e4,_0x36ce5a=statSync(_0x26a119);if(_0x36ce5a[_0x55147c(0x1a6)]()){!existsSync(_0x2c2230)&&mkdirSync(_0x2c2230,{'recursive':!![]});const _0x52f856=readdirSync(_0x26a119);for(const _0x421d18 of _0x52f856){await copyDir(join(_0x26a119,_0x421d18),join(_0x2c2230,_0x421d18));}}else copyFileSync(_0x26a119,_0x2c2230);}function a281_0x341f(){const _0x2a27b8=['isDirectory','1265535SPibBz','24KhgFaw','34BHPXac','2068lgUtfj','26840OGQmLV','2696372Atixoc','1349qGCTta','2441485incvsZ','20151fjNBGd','641910XGRGgd','180GmZeUD'];a281_0x341f=function(){return _0x2a27b8;};return a281_0x341f();}function a281_0x57e4(_0x5936a7,_0x15427b){_0x5936a7=_0x5936a7-0x1a6;const _0x341faf=a281_0x341f();let _0x57e4ef=_0x341faf[_0x5936a7];return _0x57e4ef;}export function ensureDir(_0x10161f){!existsSync(_0x10161f)&&mkdirSync(_0x10161f,{'recursive':!![]});}export function pathExists(_0x2ce9ae){return existsSync(_0x2ce9ae);}
@@ -1 +1 @@
1
- const a281_0x17c84f=a281_0x791c;(function(_0x1b7b31,_0x4da9e1){const _0x2ab592=a281_0x791c,_0x2f9a96=_0x1b7b31();while(!![]){try{const _0x2cbb12=parseInt(_0x2ab592(0xa4))/0x1*(parseInt(_0x2ab592(0xac))/0x2)+parseInt(_0x2ab592(0xb9))/0x3+parseInt(_0x2ab592(0xa7))/0x4*(parseInt(_0x2ab592(0xa9))/0x5)+parseInt(_0x2ab592(0xad))/0x6+-parseInt(_0x2ab592(0xa8))/0x7+parseInt(_0x2ab592(0x9f))/0x8+parseInt(_0x2ab592(0xa0))/0x9*(-parseInt(_0x2ab592(0xb4))/0xa);if(_0x2cbb12===_0x4da9e1)break;else _0x2f9a96['push'](_0x2f9a96['shift']());}catch(_0x13ff3f){_0x2f9a96['push'](_0x2f9a96['shift']());}}}(a281_0x51b7,0x3e40a));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 _0x57763a=a281_0x791c,_0x10d333=getTemplateBaseUrl();return _0x10d333+_0x57763a(0xc0);}const CACHE_DIR=join(homedir(),a281_0x17c84f(0xaa),a281_0x17c84f(0xb6));export async function fetchGuidesFromCDN(){const _0x11fd24=a281_0x17c84f,_0x4b35a9=getGuidesCdnUrl(),_0x31d668=await fetch(_0x4b35a9,{'headers':{'Accept':_0x11fd24(0xc1)}});if(!_0x31d668['ok'])throw new Error(_0x11fd24(0xae)+_0x31d668[_0x11fd24(0xbe)]+'\x20'+_0x31d668[_0x11fd24(0xa3)]);const _0x416caf=await _0x31d668[_0x11fd24(0xaf)]();if(!_0x416caf['guides']||typeof _0x416caf[_0x11fd24(0xbd)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x416caf;}export function writeGuidesToProject(_0x32466b,_0x206b0a,_0x137077=a281_0x17c84f(0xb0),_0x2c10dc){const _0x449764=a281_0x17c84f,_0x55f1e1=join(_0x206b0a,_0x137077);mkdirSync(_0x55f1e1,{'recursive':!![]});for(const [_0x316aa9,_0x10c36a]of Object[_0x449764(0xbb)](_0x32466b[_0x449764(0xbd)])){let _0x46ba0f=_0x10c36a['content'];_0x10c36a[_0x449764(0xb2)]&&(_0x46ba0f=appendUpdateTime(_0x46ba0f,_0x10c36a['lastUpdated'])),writeFileSync(join(_0x55f1e1,_0x316aa9+_0x449764(0xbc)),_0x46ba0f,_0x449764(0xb3));}}export function appendUpdateTime(_0x3bba98,_0x4970a8){const _0x4c8a1f=a281_0x17c84f;return _0x3bba98=_0x3bba98[_0x4c8a1f(0xbf)](/\n*>更新时间:.*$/m,''),_0x3bba98[_0x4c8a1f(0xb7)]()+(_0x4c8a1f(0xb1)+_0x4970a8);}function a281_0x791c(_0x3c734,_0x467513){_0x3c734=_0x3c734-0x9f;const _0x51b7a0=a281_0x51b7();let _0x791cfd=_0x51b7a0[_0x3c734];return _0x791cfd;}function a281_0x51b7(){const _0x5de53b=['extendContent','cache','trimEnd','path','659364XidRrt','title','entries','.md','guides','status','replace','/skills/guides.json','application/json','1419008wTSgyO','319230cmojSn','skillTemplate','map','statusText','64618vMufAK','keys','length','231340tXXnen','909405aRKvnO','20hlowBZ','.lovrabet','content','2OZBzba','1555794WHlmsX','CDN\x20请求失败:\x20','json','.lovrabet/skill/guides','\x0a\x0a>更新时间:','lastUpdated','utf-8','160pZmQRz'];a281_0x51b7=function(){return _0x5de53b;};return a281_0x51b7();}export function getSkillTemplate(_0x3601c9){const _0x2e6a76=a281_0x17c84f;return _0x3601c9[_0x2e6a76(0xa1)]?.[_0x2e6a76(0xab)]||'';}export function appendExtendContents(_0x22409e,_0x45ee8b,_0x246bae){const _0x144c65=a281_0x17c84f,_0x14d44e=[];for(const [,_0x547fa9]of Object[_0x144c65(0xbb)](_0x45ee8b[_0x144c65(0xbd)])){_0x547fa9[_0x144c65(0xb5)]&&_0x14d44e['push'](_0x547fa9['extendContent'][_0x144c65(0xb7)]());}if(_0x14d44e[_0x144c65(0xa6)]===0x0)return _0x22409e;return _0x22409e[_0x144c65(0xb7)]()+'\x0a\x0a'+_0x14d44e['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x394b5d,_0x11a0d7,_0xfdba1d){const _0x1807d6=a281_0x17c84f,_0x106a7b=getSkillTemplate(_0x394b5d);if(!_0x106a7b)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x59f4f4=dirname(_0x11a0d7);mkdirSync(_0x59f4f4,{'recursive':!![]});let _0x13dcb9=_0x106a7b[_0x1807d6(0xbf)](/\{\{IDE_NAME\}\}/g,_0xfdba1d);_0x13dcb9=appendExtendContents(_0x13dcb9,_0x394b5d),_0x394b5d['skillTemplate'][_0x1807d6(0xb2)]&&(_0x13dcb9=appendUpdateTime(_0x13dcb9,_0x394b5d[_0x1807d6(0xa1)][_0x1807d6(0xb2)])),writeFileSync(_0x11a0d7,_0x13dcb9,_0x1807d6(0xb3));}export async function installGuides(_0x446f06){const _0x2cb228=a281_0x17c84f,_0x5eb52d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5eb52d,_0x446f06),Object[_0x2cb228(0xa5)](_0x5eb52d[_0x2cb228(0xbd)])[_0x2cb228(0xa6)];}export function getGuidesSummary(_0xd5dd01){const _0x30e80f=a281_0x17c84f;return Object['entries'](_0xd5dd01['guides'])[_0x30e80f(0xa2)](([_0x4bc53b,_0x4632c8])=>({'key':_0x4bc53b,'title':_0x4632c8[_0x30e80f(0xba)],'path':_0x4632c8[_0x30e80f(0xb8)]}));}
1
+ const a282_0x2e8d03=a282_0x4b1b;(function(_0x6fedd5,_0x53f2e4){const _0x5a8d76=a282_0x4b1b,_0x797df0=_0x6fedd5();while(!![]){try{const _0x775919=-parseInt(_0x5a8d76(0xa3))/0x1*(parseInt(_0x5a8d76(0xaa))/0x2)+parseInt(_0x5a8d76(0x89))/0x3*(-parseInt(_0x5a8d76(0x94))/0x4)+-parseInt(_0x5a8d76(0x9d))/0x5*(-parseInt(_0x5a8d76(0x9b))/0x6)+parseInt(_0x5a8d76(0x8f))/0x7*(-parseInt(_0x5a8d76(0x8c))/0x8)+-parseInt(_0x5a8d76(0x8b))/0x9+-parseInt(_0x5a8d76(0x8d))/0xa+parseInt(_0x5a8d76(0x9a))/0xb;if(_0x775919===_0x53f2e4)break;else _0x797df0['push'](_0x797df0['shift']());}catch(_0xafac46){_0x797df0['push'](_0x797df0['shift']());}}}(a282_0x557e,0x18887));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a282_0x557e(){const _0x4c84cc=['skillTemplate','status','path','guides','28fHFCsr','statusText','content','push','633sYwpTg','join','916047aCGphH','50992fTawJe','827760GdZxiD','.lovrabet','7vvbBOG','utf-8','map','entries','lastUpdated','1684PuiQuQ','json','/skills/guides.json','trimEnd','cache','CDN\x20数据中缺少\x20skillTemplate','3804361pNSKQV','218886DToohN','length','20TeyRWU','CDN\x20返回数据格式错误','.lovrabet/skill/guides','.md','object','\x0a\x0a>更新时间:','7966hiEifv','application/json','replace'];a282_0x557e=function(){return _0x4c84cc;};return a282_0x557e();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x3b4a18=a282_0x4b1b,_0x6f4556=getTemplateBaseUrl();return _0x6f4556+_0x3b4a18(0x96);}const CACHE_DIR=join(homedir(),a282_0x2e8d03(0x8e),a282_0x2e8d03(0x98));export async function fetchGuidesFromCDN(){const _0x5efcc9=a282_0x2e8d03,_0x52adb9=getGuidesCdnUrl(),_0xb60e4e=await fetch(_0x52adb9,{'headers':{'Accept':_0x5efcc9(0xa4)}});if(!_0xb60e4e['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xb60e4e[_0x5efcc9(0xa7)]+'\x20'+_0xb60e4e[_0x5efcc9(0xab)]);const _0x43ec69=await _0xb60e4e[_0x5efcc9(0x95)]();if(!_0x43ec69[_0x5efcc9(0xa9)]||typeof _0x43ec69[_0x5efcc9(0xa9)]!==_0x5efcc9(0xa1))throw new Error(_0x5efcc9(0x9e));return _0x43ec69;}export function writeGuidesToProject(_0x5ec1f4,_0x332f95,_0x5b2df8=a282_0x2e8d03(0x9f),_0x3f8877){const _0x4af83d=a282_0x2e8d03,_0x11b7c6=join(_0x332f95,_0x5b2df8);mkdirSync(_0x11b7c6,{'recursive':!![]});for(const [_0x2b68f9,_0x24400f]of Object[_0x4af83d(0x92)](_0x5ec1f4[_0x4af83d(0xa9)])){let _0x26dd9e=_0x24400f[_0x4af83d(0x87)];_0x24400f[_0x4af83d(0x93)]&&(_0x26dd9e=appendUpdateTime(_0x26dd9e,_0x24400f[_0x4af83d(0x93)])),writeFileSync(join(_0x11b7c6,_0x2b68f9+_0x4af83d(0xa0)),_0x26dd9e,'utf-8');}}export function appendUpdateTime(_0x349d0f,_0x16c576){const _0x4d4143=a282_0x2e8d03;return _0x349d0f=_0x349d0f[_0x4d4143(0xa5)](/\n*>更新时间:.*$/m,''),_0x349d0f[_0x4d4143(0x97)]()+(_0x4d4143(0xa2)+_0x16c576);}export function getSkillTemplate(_0x464e0a){const _0x277763=a282_0x2e8d03;return _0x464e0a[_0x277763(0xa6)]?.[_0x277763(0x87)]||'';}export function appendExtendContents(_0x28aeb4,_0xd1d3d5,_0x45ef8d){const _0x306a07=a282_0x2e8d03,_0x285ace=[];for(const [,_0x70f328]of Object[_0x306a07(0x92)](_0xd1d3d5[_0x306a07(0xa9)])){_0x70f328['extendContent']&&_0x285ace[_0x306a07(0x88)](_0x70f328['extendContent'][_0x306a07(0x97)]());}if(_0x285ace[_0x306a07(0x9c)]===0x0)return _0x28aeb4;return _0x28aeb4[_0x306a07(0x97)]()+'\x0a\x0a'+_0x285ace[_0x306a07(0x8a)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x313500,_0x27a9b3,_0x1093d0){const _0x1f3cdd=a282_0x2e8d03,_0x4e268b=getSkillTemplate(_0x313500);if(!_0x4e268b)throw new Error(_0x1f3cdd(0x99));const _0x377bf6=dirname(_0x27a9b3);mkdirSync(_0x377bf6,{'recursive':!![]});let _0xf09a35=_0x4e268b[_0x1f3cdd(0xa5)](/\{\{IDE_NAME\}\}/g,_0x1093d0);_0xf09a35=appendExtendContents(_0xf09a35,_0x313500),_0x313500[_0x1f3cdd(0xa6)]['lastUpdated']&&(_0xf09a35=appendUpdateTime(_0xf09a35,_0x313500['skillTemplate']['lastUpdated'])),writeFileSync(_0x27a9b3,_0xf09a35,_0x1f3cdd(0x90));}function a282_0x4b1b(_0x4b48f3,_0x37aa13){_0x4b48f3=_0x4b48f3-0x87;const _0x557eac=a282_0x557e();let _0x4b1b15=_0x557eac[_0x4b48f3];return _0x4b1b15;}export async function installGuides(_0x3d75d4){const _0x9d966c=a282_0x2e8d03,_0xe2fb7b=await fetchGuidesFromCDN();return writeGuidesToProject(_0xe2fb7b,_0x3d75d4),Object['keys'](_0xe2fb7b[_0x9d966c(0xa9)])[_0x9d966c(0x9c)];}export function getGuidesSummary(_0x35c4fa){const _0x9878d8=a282_0x2e8d03;return Object[_0x9878d8(0x92)](_0x35c4fa[_0x9878d8(0xa9)])[_0x9878d8(0x91)](([_0x2fd7b6,_0x5b4f68])=>({'key':_0x2fd7b6,'title':_0x5b4f68['title'],'path':_0x5b4f68[_0x9878d8(0xa8)]}));}
@@ -1 +1 @@
1
- function a282_0xce43(_0x511c4d,_0x534505){_0x511c4d=_0x511c4d-0x17c;const _0x2fcb7c=a282_0x2fcb();let _0xce4317=_0x2fcb7c[_0x511c4d];return _0xce4317;}(function(_0x6d9c4e,_0x400773){const _0x576042=a282_0xce43,_0x4f85ae=_0x6d9c4e();while(!![]){try{const _0x24403f=-parseInt(_0x576042(0x196))/0x1*(-parseInt(_0x576042(0x198))/0x2)+parseInt(_0x576042(0x188))/0x3*(parseInt(_0x576042(0x190))/0x4)+-parseInt(_0x576042(0x18e))/0x5*(-parseInt(_0x576042(0x186))/0x6)+parseInt(_0x576042(0x17f))/0x7*(parseInt(_0x576042(0x17c))/0x8)+-parseInt(_0x576042(0x184))/0x9*(parseInt(_0x576042(0x18a))/0xa)+-parseInt(_0x576042(0x187))/0xb*(parseInt(_0x576042(0x199))/0xc)+parseInt(_0x576042(0x191))/0xd;if(_0x24403f===_0x400773)break;else _0x4f85ae['push'](_0x4f85ae['shift']());}catch(_0x3992c3){_0x4f85ae['push'](_0x4f85ae['shift']());}}}(a282_0x2fcb,0xd7d5e));export async function httpRequest(_0x33070f,_0x22cb9f={}){const _0x530569=a282_0xce43,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x22cb9f;let _0x1c2710=null;for(let _0x4ee232=0x0;_0x4ee232<=retries;_0x4ee232++){try{const _0x3a40b8=new AbortController(),_0x449150=setTimeout(()=>_0x3a40b8[_0x530569(0x195)](),timeout),_0x3e2b26=await fetch(_0x33070f,{'headers':headers,'signal':_0x3a40b8[_0x530569(0x192)]});clearTimeout(_0x449150);let _0x167df8;const _0xad9a4e=_0x3e2b26[_0x530569(0x183)][_0x530569(0x193)](_0x530569(0x18f));return _0xad9a4e?.[_0x530569(0x17d)](_0x530569(0x18b))?_0x167df8=await _0x3e2b26['json']():_0x167df8=await _0x3e2b26[_0x530569(0x18d)](),{'ok':_0x3e2b26['ok'],'status':_0x3e2b26[_0x530569(0x180)],'statusText':_0x3e2b26[_0x530569(0x189)],'data':_0x167df8,'headers':_0x3e2b26[_0x530569(0x183)],'url':_0x3e2b26['url'],'text':()=>_0x3e2b26[_0x530569(0x18d)]()};}catch(_0x19761d){_0x1c2710=_0x19761d instanceof Error?_0x19761d:new Error(String(_0x19761d));if(_0x4ee232===retries)break;if(shouldRetry(_0x19761d)){console[_0x530569(0x18c)]('*\x20请求失败,'+retryDelay+'ms\x20后进行第\x20'+(_0x4ee232+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1c2710||new Error('Request\x20failed');}function shouldRetry(_0x8fa74){const _0x30d589=a282_0xce43;if(_0x8fa74 instanceof Error){if(_0x8fa74['name']===_0x30d589(0x185))return![];if(_0x8fa74[_0x30d589(0x182)]===_0x30d589(0x181)&&_0x8fa74['message'][_0x30d589(0x17d)](_0x30d589(0x194)))return!![];if(_0x8fa74[_0x30d589(0x197)][_0x30d589(0x17d)](_0x30d589(0x17e)))return!![];if(_0x8fa74[_0x30d589(0x197)]['includes']('ENOTFOUND'))return![];}return![];}function a282_0x2fcb(){const _0x4e6eb7=['application/json','log','text','2001245DPBCFe','content-type','16cCVxvc','6093555FXbDzx','signal','get','fetch','abort','8eIufXZ','message','3072ymiXMH','996Hnnxpr','9344QODhTw','includes','ECONNRESET','2569OxhYih','status','TypeError','name','headers','9FIZAnx','AbortError','18XVyTNJ','121715zvxIiE','393561LdvmUU','statusText','8327170iyjTYQ'];a282_0x2fcb=function(){return _0x4e6eb7;};return a282_0x2fcb();}function sleep(_0x28d440){return new Promise(_0x43ba12=>setTimeout(_0x43ba12,_0x28d440));}export function validateUrl(_0x271f0a){try{return new URL(_0x271f0a),!![];}catch{return![];}}
1
+ (function(_0x2a14e3,_0x504e78){const _0x55d72=a283_0xed6a,_0x200feb=_0x2a14e3();while(!![]){try{const _0x37893f=parseInt(_0x55d72(0xe2))/0x1*(-parseInt(_0x55d72(0xd0))/0x2)+-parseInt(_0x55d72(0xdb))/0x3+parseInt(_0x55d72(0xe4))/0x4+-parseInt(_0x55d72(0xd4))/0x5*(-parseInt(_0x55d72(0xe0))/0x6)+parseInt(_0x55d72(0xd9))/0x7*(parseInt(_0x55d72(0xdc))/0x8)+parseInt(_0x55d72(0xdd))/0x9*(-parseInt(_0x55d72(0xdf))/0xa)+parseInt(_0x55d72(0xc8))/0xb;if(_0x37893f===_0x504e78)break;else _0x200feb['push'](_0x200feb['shift']());}catch(_0x3ed47b){_0x200feb['push'](_0x200feb['shift']());}}}(a283_0xa284,0x462bc));function a283_0xa284(){const _0x5df71b=['headers','AbortError','ECONNRESET','message','4gcPYMz','content-type','name','\x20次重试...','2789935OLsNmY','*\x20请求失败,','signal','TypeError','abort','139237GnelYB','text','593670ROOIbQ','168pYergi','36jCZMqV','includes','751290eDZIYv','6IRrCXO','ENOTFOUND','224207wQYRoa','url','667196fGdsDR','status','1009173xWkdKQ','log','get','ms\x20后进行第\x20'];a283_0xa284=function(){return _0x5df71b;};return a283_0xa284();}export async function httpRequest(_0x5c3273,_0x1b8f0e={}){const _0x463e12=a283_0xed6a,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1b8f0e;let _0x5d9baf=null;for(let _0x4a489c=0x0;_0x4a489c<=retries;_0x4a489c++){try{const _0x4efc07=new AbortController(),_0x13260f=setTimeout(()=>_0x4efc07[_0x463e12(0xd8)](),timeout),_0x16ad17=await fetch(_0x5c3273,{'headers':headers,'signal':_0x4efc07[_0x463e12(0xd6)]});clearTimeout(_0x13260f);let _0x502deb;const _0x24ddc8=_0x16ad17['headers'][_0x463e12(0xca)](_0x463e12(0xd1));return _0x24ddc8?.[_0x463e12(0xde)]('application/json')?_0x502deb=await _0x16ad17['json']():_0x502deb=await _0x16ad17['text'](),{'ok':_0x16ad17['ok'],'status':_0x16ad17[_0x463e12(0xc7)],'statusText':_0x16ad17['statusText'],'data':_0x502deb,'headers':_0x16ad17[_0x463e12(0xcc)],'url':_0x16ad17[_0x463e12(0xe3)],'text':()=>_0x16ad17[_0x463e12(0xda)]()};}catch(_0x22d6ad){_0x5d9baf=_0x22d6ad instanceof Error?_0x22d6ad:new Error(String(_0x22d6ad));if(_0x4a489c===retries)break;if(shouldRetry(_0x22d6ad)){console[_0x463e12(0xc9)](_0x463e12(0xd5)+retryDelay+_0x463e12(0xcb)+(_0x4a489c+0x1)+_0x463e12(0xd3)),await sleep(retryDelay);continue;}else break;}}throw _0x5d9baf||new Error('Request\x20failed');}function shouldRetry(_0x55f579){const _0x2a7770=a283_0xed6a;if(_0x55f579 instanceof Error){if(_0x55f579[_0x2a7770(0xd2)]===_0x2a7770(0xcd))return![];if(_0x55f579[_0x2a7770(0xd2)]===_0x2a7770(0xd7)&&_0x55f579[_0x2a7770(0xcf)][_0x2a7770(0xde)]('fetch'))return!![];if(_0x55f579['message'][_0x2a7770(0xde)](_0x2a7770(0xce)))return!![];if(_0x55f579[_0x2a7770(0xcf)][_0x2a7770(0xde)](_0x2a7770(0xe1)))return![];}return![];}function a283_0xed6a(_0x3e96d9,_0x1061f1){_0x3e96d9=_0x3e96d9-0xc7;const _0xa284b=a283_0xa284();let _0xed6a55=_0xa284b[_0x3e96d9];return _0xed6a55;}function sleep(_0x4b685b){return new Promise(_0xb4b1f9=>setTimeout(_0xb4b1f9,_0x4b685b));}export function validateUrl(_0x110778){try{return new URL(_0x110778),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a283_0x3741(_0x2dc57a,_0x1b5412){_0x2dc57a=_0x2dc57a-0x1ec;const _0x4322e1=a283_0x4322();let _0x3741ff=_0x4322e1[_0x2dc57a];return _0x3741ff;}(function(_0x577cc2,_0x392bf8){const _0x25ab90=a283_0x3741,_0x456f1f=_0x577cc2();while(!![]){try{const _0x388f2f=parseInt(_0x25ab90(0x1ef))/0x1*(-parseInt(_0x25ab90(0x1f5))/0x2)+parseInt(_0x25ab90(0x1f3))/0x3*(parseInt(_0x25ab90(0x1f6))/0x4)+-parseInt(_0x25ab90(0x1ed))/0x5+-parseInt(_0x25ab90(0x1f4))/0x6+-parseInt(_0x25ab90(0x1ee))/0x7+parseInt(_0x25ab90(0x1f0))/0x8+parseInt(_0x25ab90(0x1f1))/0x9;if(_0x388f2f===_0x392bf8)break;else _0x456f1f['push'](_0x456f1f['shift']());}catch(_0x2e85fd){_0x456f1f['push'](_0x456f1f['shift']());}}}(a283_0x4322,0x7716f));function env(_0x217364){return process.env[`RABETBASE_${_0x217364}`]||process.env[`LOVRABET_${_0x217364}`]||undefined;}export function isNonInteractive(_0x458386){const _0x747f04=a283_0x3741;return!!(_0x458386['nonInteractive']||_0x458386['ci']||env('CI')===_0x747f04(0x1f2)||process.env.CI===_0x747f04(0x1f2)||!process[_0x747f04(0x1ec)][_0x747f04(0x1fa)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5b5afc=a283_0x3741;if(!process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1fa)])return![];try{const _0x2c890b=process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1f9)];return process['stdin'][_0x5b5afc(0x1f7)](!![]),process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1f7)](_0x2c890b??![]),!![];}catch{return![];}}function a283_0x4322(){const _0x56055d=['stdin','isRaw','isTTY','stdout','1741275JoCSUy','5665373dEmFiU','4PCBgat','6986080AowXTA','18245016ztdvNn','true','799689QZgofd','4086828oweNkS','420262rYaTin','4IEpifJ','setRawMode'];a283_0x4322=function(){return _0x56055d;};return a283_0x4322();}
1
+ (function(_0x3b7dc7,_0x3f258a){const _0x544f81=a284_0x2d52,_0x32f0e2=_0x3b7dc7();while(!![]){try{const _0x12a966=-parseInt(_0x544f81(0x13a))/0x1+-parseInt(_0x544f81(0x145))/0x2*(-parseInt(_0x544f81(0x147))/0x3)+parseInt(_0x544f81(0x13c))/0x4+-parseInt(_0x544f81(0x148))/0x5*(parseInt(_0x544f81(0x140))/0x6)+-parseInt(_0x544f81(0x141))/0x7*(parseInt(_0x544f81(0x13b))/0x8)+parseInt(_0x544f81(0x146))/0x9*(-parseInt(_0x544f81(0x144))/0xa)+parseInt(_0x544f81(0x143))/0xb*(parseInt(_0x544f81(0x13e))/0xc);if(_0x12a966===_0x3f258a)break;else _0x32f0e2['push'](_0x32f0e2['shift']());}catch(_0x964201){_0x32f0e2['push'](_0x32f0e2['shift']());}}}(a284_0x3bdc,0x49d51));function a284_0x2d52(_0x5b5ffd,_0x1f5aa2){_0x5b5ffd=_0x5b5ffd-0x137;const _0x3bdc9e=a284_0x3bdc();let _0x2d5257=_0x3bdc9e[_0x5b5ffd];return _0x2d5257;}function env(_0x33ffdf){return process.env[`RABETBASE_${_0x33ffdf}`]||process.env[`LOVRABET_${_0x33ffdf}`]||undefined;}export function isNonInteractive(_0x391550){const _0x4e5f7d=a284_0x2d52;return!!(_0x391550['nonInteractive']||_0x391550['ci']||env('CI')===_0x4e5f7d(0x13d)||process.env.CI===_0x4e5f7d(0x13d)||!process[_0x4e5f7d(0x139)][_0x4e5f7d(0x137)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3d7d7d=a284_0x2d52;if(!process[_0x3d7d7d(0x13f)][_0x3d7d7d(0x137)])return![];try{const _0xe330b0=process[_0x3d7d7d(0x13f)][_0x3d7d7d(0x142)];return process[_0x3d7d7d(0x13f)]['setRawMode'](!![]),process[_0x3d7d7d(0x13f)][_0x3d7d7d(0x138)](_0xe330b0??![]),!![];}catch{return![];}}function a284_0x3bdc(){const _0x2254ac=['1113Dpyetb','5YzGgGt','isTTY','setRawMode','stdout','566831pgVBiJ','55928RtaHXc','435464sbEjvh','true','12sgkAEi','stdin','2079438zJcpFW','385YUhgcS','isRaw','14361941Scqmrl','7280lekfbt','2030rqnrvv','2358XCidpE'];a284_0x3bdc=function(){return _0x2254ac;};return a284_0x3bdc();}
@@ -1 +1 @@
1
- function a284_0x21b3(){const _0xdf8294=['2172310QOcBAH','logFilePath','map','info','Failed\x20to\x20clear\x20logs:','34692sglPNg','currentRawCommand','details','existsSync','getWinstonInstance','level','setRawCommand','green','6GPhxzI','readFileSync','1283rQPwqR','createLogger','clearLogs','red','warn','error','clear','完成:\x20','rawCommand','message','readLogs','Failed\x20to\x20read\x20logs:','success','join','83601lquXQc','addColors','log','toISOString','printf','7604824bzUzzU','combine','File','winstonLogger','logTask','5133296lXoBbb','dirname','开始执行:\x20','setLogPath','timestamp','1230QnYEaW','mkdirSync','command','utf8','1328470kafhpB','transports','initWinstonLogger','format','now','390HSrIBW','unknown','752NocHZa'];a284_0x21b3=function(){return _0xdf8294;};return a284_0x21b3();}const a284_0x17f3a6=a284_0x287f;(function(_0x79f1c,_0xe88e65){const _0x4f2b67=a284_0x287f,_0x14af9c=_0x79f1c();while(!![]){try{const _0x31948e=parseInt(_0x4f2b67(0xb0))/0x1*(-parseInt(_0x4f2b67(0xa0))/0x2)+parseInt(_0x4f2b67(0x9e))/0x3*(parseInt(_0x4f2b67(0xa6))/0x4)+-parseInt(_0x4f2b67(0xa1))/0x5*(parseInt(_0x4f2b67(0xae))/0x6)+parseInt(_0x4f2b67(0xc8))/0x7+parseInt(_0x4f2b67(0xc3))/0x8+-parseInt(_0x4f2b67(0xbe))/0x9*(parseInt(_0x4f2b67(0xcd))/0xa)+parseInt(_0x4f2b67(0xd1))/0xb;if(_0x31948e===_0xe88e65)break;else _0x14af9c['push'](_0x14af9c['shift']());}catch(_0x581658){_0x14af9c['push'](_0x14af9c['shift']());}}}(a284_0x21b3,0xd5146));import a284_0x817cc7 from'winston';import a284_0x265ced from'node:fs';import a284_0x2b212d from'node:path';function a284_0x287f(_0x3d4b0b,_0x535c7c){_0x3d4b0b=_0x3d4b0b-0x9d;const _0x21b31a=a284_0x21b3();let _0x287f29=_0x21b31a[_0x3d4b0b];return _0x287f29;}class Logger{[a284_0x17f3a6(0xc6)];[a284_0x17f3a6(0xa2)];['currentRawCommand']='';constructor(){const _0x1fe15e=a284_0x17f3a6;this[_0x1fe15e(0xa2)]='';}[a284_0x17f3a6(0xac)](_0xebd4c2){const _0x285d73=a284_0x17f3a6;this[_0x285d73(0xa7)]=_0xebd4c2;}[a284_0x17f3a6(0xd3)](){const _0x3424a6=a284_0x17f3a6,_0x2d6c2b=a284_0x2b212d[_0x3424a6(0xc9)](this[_0x3424a6(0xa2)]);!a284_0x265ced[_0x3424a6(0xa9)](_0x2d6c2b)&&a284_0x265ced[_0x3424a6(0xce)](_0x2d6c2b,{'recursive':!![]});const _0xf3a4a=a284_0x817cc7[_0x3424a6(0xd4)][_0x3424a6(0xc4)](a284_0x817cc7[_0x3424a6(0xd4)]['timestamp'](),a284_0x817cc7[_0x3424a6(0xd4)]['errors']({'stack':!![]}),a284_0x817cc7[_0x3424a6(0xd4)][_0x3424a6(0xc2)](_0x314904=>{const _0x5284dd=_0x3424a6,_0x62749f={'timestamp':_0x314904[_0x5284dd(0xcc)]||new Date()[_0x5284dd(0xc1)](),'level':_0x314904[_0x5284dd(0xab)]||_0x5284dd(0xa4),'command':_0x314904[_0x5284dd(0xcf)]||_0x5284dd(0x9f),'rawCommand':_0x314904[_0x5284dd(0xb8)]||this[_0x5284dd(0xa7)]||undefined,'message':_0x314904[_0x5284dd(0xb9)]||'','duration':_0x314904['duration']||undefined,'details':_0x314904[_0x5284dd(0xa8)]||undefined};return JSON['stringify'](_0x62749f);}));this[_0x3424a6(0xc6)]=a284_0x817cc7[_0x3424a6(0xb1)]({'level':'info','format':_0xf3a4a,'transports':[new a284_0x817cc7[(_0x3424a6(0xd2))][(_0x3424a6(0xc5))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a284_0x817cc7[_0x3424a6(0xbf)]({'success':_0x3424a6(0xad),'error':_0x3424a6(0xb3),'warn':'yellow','info':'blue'});}[a284_0x17f3a6(0xcb)](_0x4748d5){const _0x123797=a284_0x17f3a6;this[_0x123797(0xa2)]=a284_0x2b212d[_0x123797(0xbd)](_0x4748d5,'.lovrabet.log'),this[_0x123797(0xc6)]&&this[_0x123797(0xc6)][_0x123797(0xb6)](),this[_0x123797(0xd3)]();}[a284_0x17f3a6(0xa4)](_0xf2c07f,_0x227b68,_0x195a5c){const _0xa45b11=a284_0x17f3a6;if(!this[_0xa45b11(0xa2)]||!this[_0xa45b11(0xc6)])return;this['winstonLogger'][_0xa45b11(0xa4)](_0x227b68,{'command':_0xf2c07f,'details':_0x195a5c});}['success'](_0x402399,_0x315000,_0x476b39,_0x25a76b){const _0x38e15f=a284_0x17f3a6;if(!this[_0x38e15f(0xa2)]||!this[_0x38e15f(0xc6)])return;this[_0x38e15f(0xc6)][_0x38e15f(0xc0)](_0x38e15f(0xa4),_0x315000,{'level':_0x38e15f(0xbc),'command':_0x402399,'duration':_0x476b39,'details':_0x25a76b});}['error'](_0x540825,_0x1daa28,_0x44d9af){const _0x10630d=a284_0x17f3a6;if(!this[_0x10630d(0xa2)]||!this[_0x10630d(0xc6)])return;this[_0x10630d(0xc6)][_0x10630d(0xb5)](_0x1daa28,{'command':_0x540825,'details':_0x44d9af});}[a284_0x17f3a6(0xb4)](_0x135bff,_0x19a87b,_0x90712d){const _0x8e6f85=a284_0x17f3a6;if(!this[_0x8e6f85(0xa2)]||!this[_0x8e6f85(0xc6)])return;this[_0x8e6f85(0xc6)][_0x8e6f85(0xb4)](_0x19a87b,{'command':_0x135bff,'details':_0x90712d});}async[a284_0x17f3a6(0xc7)](_0x21010b,_0x241ec0,_0x472cfe){const _0x10e06d=a284_0x17f3a6,_0x146243=Date[_0x10e06d(0x9d)]();this[_0x10e06d(0xa4)](_0x21010b,_0x10e06d(0xca)+_0x241ec0);try{const _0x551a78=await _0x472cfe(),_0x1d4a9c=Date[_0x10e06d(0x9d)]()-_0x146243;return this[_0x10e06d(0xbc)](_0x21010b,_0x10e06d(0xb7)+_0x241ec0,_0x1d4a9c),_0x551a78;}catch(_0x22433e){const _0x123b02=Date['now']()-_0x146243;this['error'](_0x21010b,'失败:\x20'+_0x241ec0,{'error':_0x22433e instanceof Error?_0x22433e[_0x10e06d(0xb9)]:String(_0x22433e),'duration':_0x123b02});throw _0x22433e;}}[a284_0x17f3a6(0xba)](){const _0x550c78=a284_0x17f3a6;try{if(!a284_0x265ced[_0x550c78(0xa9)](this[_0x550c78(0xa2)]))return[];const _0x1f7fc2=a284_0x265ced[_0x550c78(0xaf)](this[_0x550c78(0xa2)],'utf8');return _0x1f7fc2['split']('\x0a')['filter'](_0x167a97=>_0x167a97['trim']())[_0x550c78(0xa3)](_0x52fe79=>JSON['parse'](_0x52fe79));}catch(_0x28b53f){return console['warn'](_0x550c78(0xbb),_0x28b53f),[];}}[a284_0x17f3a6(0xb2)](){const _0x293529=a284_0x17f3a6;try{a284_0x265ced['existsSync'](this[_0x293529(0xa2)])&&a284_0x265ced['writeFileSync'](this[_0x293529(0xa2)],'',_0x293529(0xd0));}catch(_0x2f1075){console[_0x293529(0xb4)](_0x293529(0xa5),_0x2f1075);}}[a284_0x17f3a6(0xaa)](){const _0x56036f=a284_0x17f3a6;return this[_0x56036f(0xc6)];}}export const logger=new Logger();
1
+ const a285_0x6c3420=a285_0xb270;(function(_0x246371,_0x287fab){const _0x16e274=a285_0xb270,_0x29a849=_0x246371();while(!![]){try{const _0x378f4c=-parseInt(_0x16e274(0x1ac))/0x1+-parseInt(_0x16e274(0x1b1))/0x2+-parseInt(_0x16e274(0x1c5))/0x3+-parseInt(_0x16e274(0x1aa))/0x4*(parseInt(_0x16e274(0x1b6))/0x5)+-parseInt(_0x16e274(0x19d))/0x6*(-parseInt(_0x16e274(0x1b3))/0x7)+-parseInt(_0x16e274(0x1ab))/0x8+parseInt(_0x16e274(0x19f))/0x9*(parseInt(_0x16e274(0x1a0))/0xa);if(_0x378f4c===_0x287fab)break;else _0x29a849['push'](_0x29a849['shift']());}catch(_0x147879){_0x29a849['push'](_0x29a849['shift']());}}}(a285_0x3c3c,0x623f0));function a285_0xb270(_0x1e690b,_0x1acedb){_0x1e690b=_0x1e690b-0x197;const _0x3c3cb1=a285_0x3c3c();let _0xb2709c=_0x3c3cb1[_0x1e690b];return _0xb2709c;}import a285_0x4b66dd from'winston';import a285_0x26c731 from'node:fs';function a285_0x3c3c(){const _0x2ebb19=['error','split','parse','details','.lovrabet.log','transports','timestamp','readLogs','setLogPath','warn','map','681714aCLMum','stringify','currentRawCommand','Failed\x20to\x20clear\x20logs:','info','format','开始执行:\x20','toISOString','clearLogs','logFilePath','Failed\x20to\x20read\x20logs:','now','270486qxQQcK','success','9hwPYgN','17349540KyBlTs','addColors','失败:\x20','blue','initWinstonLogger','existsSync','trim','message','getWinstonInstance','red','116fwVnPe','523328hzQqMr','455580NWrAcz','File','winstonLogger','command','level','698698wGlzXo','unknown','42yyxNbV','combine','utf8','87145haQogJ','writeFileSync','errors','yellow'];a285_0x3c3c=function(){return _0x2ebb19;};return a285_0x3c3c();}import a285_0x1690a9 from'node:path';class Logger{[a285_0x6c3420(0x1ae)];[a285_0x6c3420(0x19a)];[a285_0x6c3420(0x1c7)]='';constructor(){const _0x36590a=a285_0x6c3420;this[_0x36590a(0x19a)]='';}['setRawCommand'](_0x3d0547){const _0x4a7f0d=a285_0x6c3420;this[_0x4a7f0d(0x1c7)]=_0x3d0547;}[a285_0x6c3420(0x1a4)](){const _0x926992=a285_0x6c3420,_0x235586=a285_0x1690a9['dirname'](this['logFilePath']);!a285_0x26c731[_0x926992(0x1a5)](_0x235586)&&a285_0x26c731['mkdirSync'](_0x235586,{'recursive':!![]});const _0x212f74=a285_0x4b66dd['format'][_0x926992(0x1b4)](a285_0x4b66dd[_0x926992(0x1ca)]['timestamp'](),a285_0x4b66dd['format'][_0x926992(0x1b8)]({'stack':!![]}),a285_0x4b66dd['format']['printf'](_0x533186=>{const _0x25a688=_0x926992,_0x2ce148={'timestamp':_0x533186[_0x25a688(0x1c0)]||new Date()[_0x25a688(0x198)](),'level':_0x533186[_0x25a688(0x1b0)]||'info','command':_0x533186[_0x25a688(0x1af)]||_0x25a688(0x1b2),'rawCommand':_0x533186['rawCommand']||this[_0x25a688(0x1c7)]||undefined,'message':_0x533186[_0x25a688(0x1a7)]||'','duration':_0x533186['duration']||undefined,'details':_0x533186[_0x25a688(0x1bd)]||undefined};return JSON[_0x25a688(0x1c6)](_0x2ce148);}));this[_0x926992(0x1ae)]=a285_0x4b66dd['createLogger']({'level':_0x926992(0x1c9),'format':_0x212f74,'transports':[new a285_0x4b66dd[(_0x926992(0x1bf))][(_0x926992(0x1ad))]({'filename':this['logFilePath'],'level':_0x926992(0x1c9)})],'silent':![]}),a285_0x4b66dd[_0x926992(0x1a1)]({'success':'green','error':_0x926992(0x1a9),'warn':_0x926992(0x1b9),'info':_0x926992(0x1a3)});}[a285_0x6c3420(0x1c2)](_0x334882){const _0x348979=a285_0x6c3420;this[_0x348979(0x19a)]=a285_0x1690a9['join'](_0x334882,_0x348979(0x1be)),this[_0x348979(0x1ae)]&&this[_0x348979(0x1ae)]['clear'](),this[_0x348979(0x1a4)]();}[a285_0x6c3420(0x1c9)](_0x124290,_0xe7657c,_0xfda8a0){const _0x3f3d1a=a285_0x6c3420;if(!this[_0x3f3d1a(0x19a)]||!this['winstonLogger'])return;this[_0x3f3d1a(0x1ae)][_0x3f3d1a(0x1c9)](_0xe7657c,{'command':_0x124290,'details':_0xfda8a0});}[a285_0x6c3420(0x19e)](_0x37dd82,_0x5c3170,_0x283a0c,_0x854947){const _0x47ddcd=a285_0x6c3420;if(!this[_0x47ddcd(0x19a)]||!this[_0x47ddcd(0x1ae)])return;this[_0x47ddcd(0x1ae)]['log'](_0x47ddcd(0x1c9),_0x5c3170,{'level':'success','command':_0x37dd82,'duration':_0x283a0c,'details':_0x854947});}[a285_0x6c3420(0x1ba)](_0x1f95e4,_0x1f9f42,_0x4c71e1){const _0xeddb0e=a285_0x6c3420;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0xeddb0e(0x1ba)](_0x1f9f42,{'command':_0x1f95e4,'details':_0x4c71e1});}[a285_0x6c3420(0x1c3)](_0x7912d7,_0x38d70b,_0x1a7047){const _0xe25257=a285_0x6c3420;if(!this[_0xe25257(0x19a)]||!this[_0xe25257(0x1ae)])return;this[_0xe25257(0x1ae)][_0xe25257(0x1c3)](_0x38d70b,{'command':_0x7912d7,'details':_0x1a7047});}async['logTask'](_0x7a2548,_0x134611,_0x4918d3){const _0x21b3b9=a285_0x6c3420,_0x1a123d=Date[_0x21b3b9(0x19c)]();this['info'](_0x7a2548,_0x21b3b9(0x197)+_0x134611);try{const _0x347fc7=await _0x4918d3(),_0x2af423=Date[_0x21b3b9(0x19c)]()-_0x1a123d;return this['success'](_0x7a2548,'完成:\x20'+_0x134611,_0x2af423),_0x347fc7;}catch(_0x1dceb3){const _0x3b58db=Date[_0x21b3b9(0x19c)]()-_0x1a123d;this[_0x21b3b9(0x1ba)](_0x7a2548,_0x21b3b9(0x1a2)+_0x134611,{'error':_0x1dceb3 instanceof Error?_0x1dceb3[_0x21b3b9(0x1a7)]:String(_0x1dceb3),'duration':_0x3b58db});throw _0x1dceb3;}}[a285_0x6c3420(0x1c1)](){const _0x4d2fa4=a285_0x6c3420;try{if(!a285_0x26c731[_0x4d2fa4(0x1a5)](this[_0x4d2fa4(0x19a)]))return[];const _0x39b2aa=a285_0x26c731['readFileSync'](this[_0x4d2fa4(0x19a)],_0x4d2fa4(0x1b5));return _0x39b2aa[_0x4d2fa4(0x1bb)]('\x0a')['filter'](_0x5dae9a=>_0x5dae9a[_0x4d2fa4(0x1a6)]())[_0x4d2fa4(0x1c4)](_0x266876=>JSON[_0x4d2fa4(0x1bc)](_0x266876));}catch(_0x42321a){return console[_0x4d2fa4(0x1c3)](_0x4d2fa4(0x19b),_0x42321a),[];}}[a285_0x6c3420(0x199)](){const _0x24fcc7=a285_0x6c3420;try{a285_0x26c731['existsSync'](this[_0x24fcc7(0x19a)])&&a285_0x26c731[_0x24fcc7(0x1b7)](this[_0x24fcc7(0x19a)],'',_0x24fcc7(0x1b5));}catch(_0x3a1027){console[_0x24fcc7(0x1c3)](_0x24fcc7(0x1c8),_0x3a1027);}}[a285_0x6c3420(0x1a8)](){const _0x4ddb9f=a285_0x6c3420;return this[_0x4ddb9f(0x1ae)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x47ee8b,_0x1fb7e3){const _0x3a2b09=a285_0x333f,_0x3b5da9=_0x47ee8b();while(!![]){try{const _0xd44d7b=parseInt(_0x3a2b09(0x155))/0x1*(parseInt(_0x3a2b09(0x148))/0x2)+-parseInt(_0x3a2b09(0x150))/0x3*(-parseInt(_0x3a2b09(0x14c))/0x4)+-parseInt(_0x3a2b09(0x14f))/0x5+-parseInt(_0x3a2b09(0x153))/0x6+parseInt(_0x3a2b09(0x154))/0x7*(parseInt(_0x3a2b09(0x149))/0x8)+parseInt(_0x3a2b09(0x14e))/0x9*(parseInt(_0x3a2b09(0x147))/0xa)+-parseInt(_0x3a2b09(0x14d))/0xb*(parseInt(_0x3a2b09(0x152))/0xc);if(_0xd44d7b===_0x1fb7e3)break;else _0x3b5da9['push'](_0x3b5da9['shift']());}catch(_0x458c54){_0x3b5da9['push'](_0x3b5da9['shift']());}}}(a285_0x5444,0x35167));function a285_0x333f(_0x37bf0b,_0xba1d3b){_0x37bf0b=_0x37bf0b-0x146;const _0x54441d=a285_0x5444();let _0x333fb5=_0x54441d[_0x37bf0b];return _0x333fb5;}function a285_0x5444(){const _0x1834b7=['99734rUtpRz','24rVekFF','object','isArray','1556284Bhfkam','33chXXbk','7713MryAbc','963755YgxPAv','3SOvGpN','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2655948ZjsSsF','2419416WKuZCp','634795jYrURs','8qiiNaM','Invalid\x20JSON\x20for\x20--params:\x20','validation','4870cWpBzt'];a285_0x5444=function(){return _0x1834b7;};return a285_0x5444();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x210f95){const _0x154163=a285_0x333f;if(!_0x210f95)return undefined;let _0x32d648;try{_0x32d648=JSON['parse'](_0x210f95);}catch{throw CliErrors[_0x154163(0x146)](_0x154163(0x156)+_0x210f95);}if(!_0x32d648||typeof _0x32d648!==_0x154163(0x14a)||Array[_0x154163(0x14b)](_0x32d648))throw CliErrors[_0x154163(0x146)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x154163(0x151));return _0x32d648;}
1
+ function a286_0x48ef(_0x477f9f,_0x50b136){_0x477f9f=_0x477f9f-0x1b3;const _0xaf460e=a286_0xaf46();let _0x48efed=_0xaf460e[_0x477f9f];return _0x48efed;}(function(_0x3c6774,_0x375835){const _0x3a481c=a286_0x48ef,_0x25bced=_0x3c6774();while(!![]){try{const _0x3236cd=-parseInt(_0x3a481c(0x1b8))/0x1*(parseInt(_0x3a481c(0x1bb))/0x2)+parseInt(_0x3a481c(0x1c1))/0x3*(parseInt(_0x3a481c(0x1b4))/0x4)+-parseInt(_0x3a481c(0x1b3))/0x5*(parseInt(_0x3a481c(0x1b6))/0x6)+-parseInt(_0x3a481c(0x1b5))/0x7*(parseInt(_0x3a481c(0x1c6))/0x8)+parseInt(_0x3a481c(0x1c3))/0x9*(parseInt(_0x3a481c(0x1b9))/0xa)+parseInt(_0x3a481c(0x1c2))/0xb*(parseInt(_0x3a481c(0x1bc))/0xc)+parseInt(_0x3a481c(0x1c4))/0xd;if(_0x3236cd===_0x375835)break;else _0x25bced['push'](_0x25bced['shift']());}catch(_0x3419d6){_0x25bced['push'](_0x25bced['shift']());}}}(a286_0xaf46,0xcae7d));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2e08ca){const _0x3c3e93=a286_0x48ef;if(!_0x2e08ca)return undefined;let _0x3fb571;try{_0x3fb571=JSON[_0x3c3e93(0x1bd)](_0x2e08ca);}catch{throw CliErrors[_0x3c3e93(0x1c5)](_0x3c3e93(0x1b7)+_0x2e08ca);}if(!_0x3fb571||typeof _0x3fb571!==_0x3c3e93(0x1bf)||Array[_0x3c3e93(0x1be)](_0x3fb571))throw CliErrors[_0x3c3e93(0x1c5)](_0x3c3e93(0x1c0),_0x3c3e93(0x1ba));return _0x3fb571;}function a286_0xaf46(){const _0x4783ce=['516JIssDs','7208412deHRok','parse','isArray','object','--params\x20must\x20be\x20a\x20JSON\x20object','9QInMDa','11NKMViC','522LlrKOx','18534438HBPcMH','validation','72BiDjor','25mrbegx','153000Usrexd','53893pErDzL','1559562csMqkq','Invalid\x20JSON\x20for\x20--params:\x20','3947Aokadg','185720ewBEBp','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a286_0xaf46=function(){return _0x4783ce;};return a286_0xaf46();}
@@ -1 +1 @@
1
- const a286_0x3ffcd5=a286_0x5ed5;function a286_0x5ed5(_0x4be5c9,_0x478804){_0x4be5c9=_0x4be5c9-0x11b;const _0x1a8b3d=a286_0x1a8b();let _0x5ed542=_0x1a8b3d[_0x4be5c9];return _0x5ed542;}(function(_0x50b99d,_0x4d0bc3){const _0x4ed236=a286_0x5ed5,_0x5202e0=_0x50b99d();while(!![]){try{const _0x3885e2=-parseInt(_0x4ed236(0x11e))/0x1*(-parseInt(_0x4ed236(0x127))/0x2)+parseInt(_0x4ed236(0x122))/0x3*(-parseInt(_0x4ed236(0x125))/0x4)+parseInt(_0x4ed236(0x126))/0x5+-parseInt(_0x4ed236(0x121))/0x6*(parseInt(_0x4ed236(0x120))/0x7)+-parseInt(_0x4ed236(0x123))/0x8+-parseInt(_0x4ed236(0x124))/0x9+-parseInt(_0x4ed236(0x11d))/0xa*(-parseInt(_0x4ed236(0x11c))/0xb);if(_0x3885e2===_0x4d0bc3)break;else _0x5202e0['push'](_0x5202e0['shift']());}catch(_0x2a67b9){_0x5202e0['push'](_0x5202e0['shift']());}}}(a286_0x1a8b,0x266ad));function a286_0x1a8b(){const _0x2dd314=['308796LVwIis','489575nnjyfo','106JfQzDe','win32','11xJOVeX','8420180aexlOm','746lMJrvi','platform','7WvbAWW','1062066AlLdJv','9CsEPmm','2389600PkbGXv','1033254hFhTGq'];a286_0x1a8b=function(){return _0x2dd314;};return a286_0x1a8b();}export const isWindows=process[a286_0x3ffcd5(0x11f)]===a286_0x3ffcd5(0x11b);export function resolveNpmBin(_0x9f1bea){return isWindows?_0x9f1bea+'.cmd':_0x9f1bea;}
1
+ function a287_0x22d4(_0x4cb41c,_0x357c12){_0x4cb41c=_0x4cb41c-0x17b;const _0x603230=a287_0x6032();let _0x22d49d=_0x603230[_0x4cb41c];return _0x22d49d;}const a287_0x25401c=a287_0x22d4;(function(_0x3a3b8c,_0x333124){const _0x42589a=a287_0x22d4,_0x58916b=_0x3a3b8c();while(!![]){try{const _0x5a50a5=parseInt(_0x42589a(0x180))/0x1*(parseInt(_0x42589a(0x17b))/0x2)+parseInt(_0x42589a(0x183))/0x3*(-parseInt(_0x42589a(0x186))/0x4)+-parseInt(_0x42589a(0x17d))/0x5*(-parseInt(_0x42589a(0x181))/0x6)+parseInt(_0x42589a(0x17e))/0x7+parseInt(_0x42589a(0x17f))/0x8+parseInt(_0x42589a(0x187))/0x9*(parseInt(_0x42589a(0x184))/0xa)+-parseInt(_0x42589a(0x185))/0xb*(parseInt(_0x42589a(0x189))/0xc);if(_0x5a50a5===_0x333124)break;else _0x58916b['push'](_0x58916b['shift']());}catch(_0x1d1fbf){_0x58916b['push'](_0x58916b['shift']());}}}(a287_0x6032,0xe043b));export const isWindows=process[a287_0x25401c(0x17c)]===a287_0x25401c(0x188);export function resolveNpmBin(_0x41bab8){const _0x22f2f5=a287_0x25401c;return isWindows?_0x41bab8+_0x22f2f5(0x182):_0x41bab8;}function a287_0x6032(){const _0x4216a1=['3561PtiRco','385720rZLfyv','154UyASUn','1928zumayV','423CPMSnU','win32','2392068svfuuN','242564swILTr','platform','1708865RBeIWI','821870LYrNhA','11400504cUIcPY','2diZooX','12ASaMls','.cmd'];a287_0x6032=function(){return _0x4216a1;};return a287_0x6032();}
@@ -1 +1 @@
1
- const a287_0x26d419=a287_0x135a;(function(_0x47dd95,_0x300f51){const _0x5c2167=a287_0x135a,_0x4574f7=_0x47dd95();while(!![]){try{const _0xfa493=-parseInt(_0x5c2167(0x18d))/0x1*(-parseInt(_0x5c2167(0x189))/0x2)+-parseInt(_0x5c2167(0x18c))/0x3*(-parseInt(_0x5c2167(0x19a))/0x4)+-parseInt(_0x5c2167(0x19f))/0x5+parseInt(_0x5c2167(0x19e))/0x6*(-parseInt(_0x5c2167(0x190))/0x7)+-parseInt(_0x5c2167(0x1a1))/0x8*(parseInt(_0x5c2167(0x1a5))/0x9)+parseInt(_0x5c2167(0x18a))/0xa*(parseInt(_0x5c2167(0x191))/0xb)+-parseInt(_0x5c2167(0x188))/0xc*(-parseInt(_0x5c2167(0x197))/0xd);if(_0xfa493===_0x300f51)break;else _0x4574f7['push'](_0x4574f7['shift']());}catch(_0x2f9cb6){_0x4574f7['push'](_0x4574f7['shift']());}}}(a287_0xad29,0xa1c9a));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a287_0x135a(_0x411424,_0x15aa38){_0x411424=_0x411424-0x188;const _0xad2983=a287_0xad29();let _0x135a84=_0xad2983[_0x411424];return _0x135a84;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x10af8f=a287_0x135a,_0x1d1b67=getTemplateBaseUrl();return _0x1d1b67+_0x10af8f(0x1a0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0x26d419(0x196));export async function fetchRulesFromCDN(){const _0x350058=a287_0x26d419,_0x186377=getRulesCdnUrl(),_0x25d3b8=await fetch(_0x186377,{'headers':{'Accept':_0x350058(0x19b)}});if(!_0x25d3b8['ok'])throw new Error(_0x350058(0x19d)+_0x25d3b8[_0x350058(0x193)]+'\x20'+_0x25d3b8[_0x350058(0x194)]);const _0x27ac31=await _0x25d3b8[_0x350058(0x18f)]();if(!_0x27ac31[_0x350058(0x1a4)]||typeof _0x27ac31[_0x350058(0x1a4)]!==_0x350058(0x198))throw new Error(_0x350058(0x1a2));return _0x27ac31;}export async function getRulesContent(){const _0x4d9de5=a287_0x26d419;try{const _0x213ba8=await fetchRulesFromCDN();return _0x213ba8[_0x4d9de5(0x1a4)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x303e23=a287_0x26d419;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x303e23(0x199));throw new Error(_0x303e23(0x19c)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x487c85){const _0x2917c7=a287_0x26d419,_0x50c552=await fetchRulesFromCDN()[_0x2917c7(0x192)](()=>null);let _0x4aec63;_0x50c552?(_0x4aec63=_0x50c552[_0x2917c7(0x1a4)],_0x50c552[_0x2917c7(0x18b)]&&(_0x4aec63=appendUpdateTime(_0x4aec63,_0x50c552[_0x2917c7(0x18b)]))):_0x4aec63=readLocalTemplate();const _0x4c52ee=dirname(_0x487c85);!existsSync(_0x4c52ee)&&mkdirSync(_0x4c52ee,{'recursive':!![]}),writeFileSync(_0x487c85,_0x4aec63,_0x2917c7(0x199));}export async function copyRulesToCursor(_0x38b9bc){const _0x5f0c11=a287_0x26d419,_0x519e03=join(_0x38b9bc,_0x5f0c11(0x1a3)),_0x1b6508=join(_0x519e03,_0x5f0c11(0x18e));if(existsSync(_0x1b6508))return![];return await writeRulesFile(_0x1b6508),!![];}export async function copyRulesToAgentsMd(_0x46e4fa){const _0x92e6e0=a287_0x26d419,_0x3163c8=join(_0x46e4fa,_0x92e6e0(0x195));if(existsSync(_0x3163c8))return![];return await writeRulesFile(_0x3163c8),!![];}function a287_0xad29(){const _0x3feab2=['12492mqaOKh','6534EYyPik','9504790yKojdR','lastUpdated','896007ZQwPtZ','8bxkwAX','lovrabet_rules.mdc','json','14zQGmmD','11KJCTgH','catch','status','statusText','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','11466SwsFdO','string','utf-8','8YyOTWc','application/json','本地模板文件不存在:\x20','CDN\x20请求失败:\x20','33468gGucRY','5653540QGODbH','/rules/rules.json','5500552UEUshJ','CDN\x20返回数据格式错误','.cursor/rules','content','9XGvuxO'];a287_0xad29=function(){return _0x3feab2;};return a287_0xad29();}
1
+ const a288_0x49633c=a288_0x41e0;(function(_0x2e7bc0,_0x46f86f){const _0x4a39ed=a288_0x41e0,_0x592316=_0x2e7bc0();while(!![]){try{const _0x4fd4c9=parseInt(_0x4a39ed(0x126))/0x1*(-parseInt(_0x4a39ed(0x131))/0x2)+-parseInt(_0x4a39ed(0x11e))/0x3+parseInt(_0x4a39ed(0x121))/0x4+parseInt(_0x4a39ed(0x125))/0x5+-parseInt(_0x4a39ed(0x120))/0x6+-parseInt(_0x4a39ed(0x12f))/0x7+parseInt(_0x4a39ed(0x129))/0x8*(parseInt(_0x4a39ed(0x11f))/0x9);if(_0x4fd4c9===_0x46f86f)break;else _0x592316['push'](_0x592316['shift']());}catch(_0xdde27c){_0x592316['push'](_0x592316['shift']());}}}(a288_0x1e02,0x8a053));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';function a288_0x1e02(){const _0x249206=['10844pDKMtD','application/json','lovrabet_rules.mdc','/rules/rules.json','status','3244356mbppsJ','747XftHkU','4558932klzNdP','2034424UvgLoy','catch','content','utf-8','5603435EpgWHR','92SoBPmc','.cursor/rules','../../templates/rules/lovrabet_rules.mdc.tpl','126120KhVrAV','statusText','CDN\x20返回数据格式错误','json','agents.md','string','226513tNCErw','本地模板文件不存在:\x20'];a288_0x1e02=function(){return _0x249206;};return a288_0x1e02();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0xaa7755=a288_0x41e0,_0x352548=getTemplateBaseUrl();return _0x352548+_0xaa7755(0x11c);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a288_0x49633c(0x128));function a288_0x41e0(_0x398806,_0x42f4e3){_0x398806=_0x398806-0x11c;const _0x1e021e=a288_0x1e02();let _0x41e0ae=_0x1e021e[_0x398806];return _0x41e0ae;}export async function fetchRulesFromCDN(){const _0x57d49f=a288_0x49633c,_0x5dec1a=getRulesCdnUrl(),_0x4456b9=await fetch(_0x5dec1a,{'headers':{'Accept':_0x57d49f(0x132)}});if(!_0x4456b9['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4456b9[_0x57d49f(0x11d)]+'\x20'+_0x4456b9[_0x57d49f(0x12a)]);const _0x3549e4=await _0x4456b9[_0x57d49f(0x12c)]();if(!_0x3549e4[_0x57d49f(0x123)]||typeof _0x3549e4[_0x57d49f(0x123)]!==_0x57d49f(0x12e))throw new Error(_0x57d49f(0x12b));return _0x3549e4;}export async function getRulesContent(){const _0x4c426f=a288_0x49633c;try{const _0x519011=await fetchRulesFromCDN();return _0x519011[_0x4c426f(0x123)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x331b9e=a288_0x49633c;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x331b9e(0x124));throw new Error(_0x331b9e(0x130)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x37c7bc){const _0x402e30=a288_0x49633c,_0x4b62dc=await fetchRulesFromCDN()[_0x402e30(0x122)](()=>null);let _0x5808ed;_0x4b62dc?(_0x5808ed=_0x4b62dc[_0x402e30(0x123)],_0x4b62dc['lastUpdated']&&(_0x5808ed=appendUpdateTime(_0x5808ed,_0x4b62dc['lastUpdated']))):_0x5808ed=readLocalTemplate();const _0x3f9d4e=dirname(_0x37c7bc);!existsSync(_0x3f9d4e)&&mkdirSync(_0x3f9d4e,{'recursive':!![]}),writeFileSync(_0x37c7bc,_0x5808ed,'utf-8');}export async function copyRulesToCursor(_0x2664ec){const _0x127b6b=a288_0x49633c,_0x3cda76=join(_0x2664ec,_0x127b6b(0x127)),_0x4db298=join(_0x3cda76,_0x127b6b(0x133));if(existsSync(_0x4db298))return![];return await writeRulesFile(_0x4db298),!![];}export async function copyRulesToAgentsMd(_0x4fda12){const _0x18586d=a288_0x49633c,_0x28401f=join(_0x4fda12,_0x18586d(0x12d));if(existsSync(_0x28401f))return![];return await writeRulesFile(_0x28401f),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x19202f){return new Promise(_0x3c3ad6=>setTimeout(_0x3c3ad6,_0x19202f));}
1
+ export function sleep(_0x194238){return new Promise(_0x197436=>setTimeout(_0x197436,_0x194238));}
@@ -1 +1 @@
1
- function a289_0x501e(){const _0xbdb89b=['endsWith','.ts','api','.jsx','getHours','default','YourModel','.md','pop','.scss','模板内容替换失败','.js','.tpl','readFile','name','开始处理模板内容替换','toISOString','mkdir','toLowerCase','replaceApiContent','replace','LOVRABET','error','slice','179530BtyeWe','promises','6362aGUXql','name:\x20\x22','processDirectory','utf8','datasetCode','9735033tGfhzJ','117WHzDBV','replaceContent','25796ZhKpgV','datasetCode:\x20\x22','readdir','join','split','getMonth','processFile','5748120eUJOUK','extname','\x20},','alias','245XPgakj','formatLocalTimestamp','copyFile','81WbpJDr','getMinutes','83930XLFDnv','template','message','toComponentName','push','charAt','writeFile','tableName:\x20\x22','includes','584jbVvys','isDirectory','getSeconds','isFile','pad','toUpperCase','toDisplayTitle','getDate','map','success','now','26894WNiysU'];a289_0x501e=function(){return _0xbdb89b;};return a289_0x501e();}const a289_0x4073af=a289_0x1db6;function a289_0x1db6(_0x3db484,_0x5035ce){_0x3db484=_0x3db484-0x64;const _0x501e38=a289_0x501e();let _0x1db6fe=_0x501e38[_0x3db484];return _0x1db6fe;}(function(_0xb8cb27,_0x1f81af){const _0x2da05b=a289_0x1db6,_0x1dec57=_0xb8cb27();while(!![]){try{const _0x4794c5=parseInt(_0x2da05b(0x73))/0x1+-parseInt(_0x2da05b(0x75))/0x2*(-parseInt(_0x2da05b(0x7b))/0x3)+parseInt(_0x2da05b(0x7d))/0x4*(parseInt(_0x2da05b(0x88))/0x5)+-parseInt(_0x2da05b(0x84))/0x6+parseInt(_0x2da05b(0xa1))/0x7*(parseInt(_0x2da05b(0x96))/0x8)+-parseInt(_0x2da05b(0x8b))/0x9*(parseInt(_0x2da05b(0x8d))/0xa)+parseInt(_0x2da05b(0x7a))/0xb;if(_0x4794c5===_0x1f81af)break;else _0x1dec57['push'](_0x1dec57['shift']());}catch(_0x505101){_0x1dec57['push'](_0x1dec57['shift']());}}}(a289_0x501e,0xb778e));import a289_0x4c604d from'node:fs';import a289_0x48601f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x441064){return String(_0x441064)['padStart'](0x2,'0');}static[a289_0x4073af(0x89)](_0xd8e7e2){const _0x2330f6=a289_0x4073af,_0x3fa98e=_0xd8e7e2['getFullYear'](),_0x4ee0cd=this['pad'](_0xd8e7e2[_0x2330f6(0x82)]()+0x1),_0x1e34a4=this[_0x2330f6(0x9a)](_0xd8e7e2[_0x2330f6(0x9d)]()),_0x4e252d=this[_0x2330f6(0x9a)](_0xd8e7e2[_0x2330f6(0xa6)]()),_0x5d9a6d=this[_0x2330f6(0x9a)](_0xd8e7e2[_0x2330f6(0x8c)]()),_0x318a1d=this['pad'](_0xd8e7e2[_0x2330f6(0x98)]());return{'createdAt':_0x3fa98e+'-'+_0x4ee0cd+'-'+_0x1e34a4+'\x20'+_0x4e252d+':'+_0x5d9a6d+':'+_0x318a1d,'createdDate':_0x3fa98e+'-'+_0x4ee0cd+'-'+_0x1e34a4,'createdTime':_0x4e252d+':'+_0x5d9a6d+':'+_0x318a1d};}static[a289_0x4073af(0x90)](_0x4d4305){const _0x3901ea=a289_0x4073af,_0x13b411=_0x4d4305[_0x3901ea(0x81)]('/')[_0x3901ea(0xaa)]()||_0x4d4305;return _0x13b411[_0x3901ea(0x81)]('-')[_0x3901ea(0x9e)](_0x234d82=>_0x234d82[_0x3901ea(0x92)](0x0)['toUpperCase']()+_0x234d82[_0x3901ea(0x72)](0x1)[_0x3901ea(0x6d)]())['join']('');}static[a289_0x4073af(0x9c)](_0x5000d2){const _0x209b20=a289_0x4073af,_0x2b6ac8=_0x5000d2[_0x209b20(0x81)]('/')['pop']()||_0x5000d2;return _0x2b6ac8[_0x209b20(0x81)]('-')[_0x209b20(0x9e)](_0x149ee8=>_0x149ee8['charAt'](0x0)[_0x209b20(0x9b)]()+_0x149ee8[_0x209b20(0x72)](0x1)[_0x209b20(0x6d)]())['join']('\x20');}static[a289_0x4073af(0x7c)](_0xcbd11a,_0x519334,_0x5da7cd){const _0x2832fe=a289_0x4073af,_0x32407f=this[_0x2832fe(0x90)](_0x519334),_0x427130=this[_0x2832fe(0x9c)](_0x519334),{createdAt:_0x1dd93f,createdDate:_0xcca67f,createdTime:_0x2e180a}=this[_0x2832fe(0x89)](new Date());let _0x339013=_0xcbd11a[_0x2832fe(0x6f)](/\{CliVersion\}/g,CLI_VERSION)[_0x2832fe(0x6f)](/\{ComponentName\}/g,_0x32407f)[_0x2832fe(0x6f)](/\{DisplayTitle\}/g,_0x427130)[_0x2832fe(0x6f)](/\{PageName\}/g,_0x519334)[_0x2832fe(0x6f)](/\{TemplateName\}/g,_0x5da7cd)[_0x2832fe(0x6f)](/\{CreatedAt\}/g,_0x1dd93f)[_0x2832fe(0x6f)](/\{CreatedDate\}/g,_0xcca67f)[_0x2832fe(0x6f)](/\{CreatedTime\}/g,_0x2e180a);return _0x339013;}static[a289_0x4073af(0x6e)](_0x27dddb,_0x26d973,_0xb7d745,_0x5647b2,_0x14508e,_0x4dfad6,_0x22b332,_0xf0be78){const _0x597afb=a289_0x4073af,_0x262dee=new Date(),_0x15f912=_0x262dee[_0x597afb(0x6b)](),_0xbf387a=_0xb7d745[_0x597afb(0x9e)](_0x9e54aa=>{const _0x420e69=_0x597afb,_0x12ea0f=[_0x420e69(0x7e)+_0x9e54aa[_0x420e69(0x79)]+'\x22',_0x420e69(0x94)+_0x9e54aa['tableName']+'\x22',_0x420e69(0x76)+_0x9e54aa['name']+'\x22'];return _0x9e54aa[_0x420e69(0x87)]&&_0x12ea0f[_0x420e69(0x91)]('alias:\x20\x22'+_0x9e54aa['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x12ea0f[_0x420e69(0x80)](',\x20')+_0x420e69(0x86);})['join'](''),_0x4e6ed3=_0x5647b2||_0xb7d745[0x0]?.[_0x597afb(0x87)]||_0x597afb(0xa8);let _0x296355=_0x27dddb['replace'](/\{AppCode\}/g,_0x26d973)[_0x597afb(0x6f)](/\{ModelConfigs\}/g,_0xbf387a)[_0x597afb(0x6f)](/\{ExampleModelName\}/g,_0x4e6ed3)[_0x597afb(0x6f)](/\{ApiFileName\}/g,_0x14508e||_0x597afb(0xa4))[_0x597afb(0x6f)](/\{ConfigName\}/g,_0x4dfad6||_0x597afb(0xa7))[_0x597afb(0x6f)](/\{ClientConfigParam\}/g,_0x22b332||'')[_0x597afb(0x6f)](/\{VarPrefix\}/g,_0xf0be78||_0x597afb(0x70))[_0x597afb(0x6f)](/\{CreatedAt\}/g,_0x15f912);return _0x296355;}static async['processTemplate'](_0x182ee6,_0xf333d9,_0x55c1bc,_0xa5e859,_0x44368a=!![]){const _0x465dd1=a289_0x4073af,_0x124c5d=Date[_0x465dd1(0xa0)]();try{_0x44368a&&logger['info'](_0x465dd1(0x8e),_0x465dd1(0x6a),{'templatePath':_0x182ee6,'targetPath':_0xf333d9,'pageName':_0x55c1bc,'templateName':_0xa5e859});await a289_0x4c604d[_0x465dd1(0x74)][_0x465dd1(0x6c)](_0xf333d9,{'recursive':!![]}),await this[_0x465dd1(0x77)](_0x182ee6,_0xf333d9,_0x55c1bc,_0xa5e859);if(_0x44368a){const _0x4a63b4=Date['now']()-_0x124c5d;logger[_0x465dd1(0x9f)](_0x465dd1(0x8e),'模板内容替换完成',_0x4a63b4,{'pageName':_0x55c1bc,'templateName':_0xa5e859});}}catch(_0x2e96b6){if(_0x44368a){const _0x8ee1dc=Date['now']()-_0x124c5d;logger[_0x465dd1(0x71)]('template',_0x465dd1(0x65),{'templatePath':_0x182ee6,'targetPath':_0xf333d9,'pageName':_0x55c1bc,'templateName':_0xa5e859,'error':_0x2e96b6 instanceof Error?_0x2e96b6[_0x465dd1(0x8f)]:String(_0x2e96b6),'duration':_0x8ee1dc});}throw _0x2e96b6;}}static async['processDirectory'](_0x3e2173,_0x55f74b,_0x55df7,_0x120829){const _0x121cd4=a289_0x4073af,_0x4bf5f3=await a289_0x4c604d[_0x121cd4(0x74)][_0x121cd4(0x7f)](_0x3e2173,{'withFileTypes':!![]});for(const _0x177a19 of _0x4bf5f3){const _0x262221=a289_0x48601f[_0x121cd4(0x80)](_0x3e2173,_0x177a19[_0x121cd4(0x69)]);let _0x23327a=a289_0x48601f[_0x121cd4(0x80)](_0x55f74b,_0x177a19[_0x121cd4(0x69)]);_0x177a19[_0x121cd4(0x69)][_0x121cd4(0xa2)]('.tpl')&&(_0x23327a=a289_0x48601f[_0x121cd4(0x80)](_0x55f74b,_0x177a19[_0x121cd4(0x69)][_0x121cd4(0x6f)](/\.tpl$/,'')));if(_0x177a19[_0x121cd4(0x97)]())await a289_0x4c604d['promises'][_0x121cd4(0x6c)](_0x23327a,{'recursive':!![]}),await this['processDirectory'](_0x262221,_0x23327a,_0x55df7,_0x120829);else _0x177a19[_0x121cd4(0x99)]()&&await this[_0x121cd4(0x83)](_0x262221,_0x23327a,_0x55df7,_0x120829);}}static async[a289_0x4073af(0x83)](_0x403af9,_0x22c8e5,_0x454c52,_0x5b64eb){const _0x4e9650=a289_0x4073af,_0x41e5d8=a289_0x48601f[_0x4e9650(0x85)](_0x403af9)[_0x4e9650(0x6d)]();_0x403af9['endsWith'](_0x4e9650(0x67))&&(_0x22c8e5=_0x22c8e5['replace'](/\.tpl$/,''));const _0xa66f4b=['.tsx',_0x4e9650(0xa3),_0x4e9650(0xa5),_0x4e9650(0x66),'.json',_0x4e9650(0xa9),'.css',_0x4e9650(0x64),_0x4e9650(0x67)];if(_0xa66f4b[_0x4e9650(0x95)](_0x41e5d8)||_0x403af9[_0x4e9650(0xa2)](_0x4e9650(0x67))){const _0x477d7c=await a289_0x4c604d[_0x4e9650(0x74)][_0x4e9650(0x68)](_0x403af9,_0x4e9650(0x78)),_0x4397a9=this[_0x4e9650(0x7c)](_0x477d7c,_0x454c52,_0x5b64eb);await a289_0x4c604d['promises'][_0x4e9650(0x93)](_0x22c8e5,_0x4397a9,_0x4e9650(0x78));}else await a289_0x4c604d[_0x4e9650(0x74)][_0x4e9650(0x8a)](_0x403af9,_0x22c8e5);}}
1
+ const a290_0x5982c9=a290_0x4f81;(function(_0x173fdb,_0xad6435){const _0x12e91b=a290_0x4f81,_0x405113=_0x173fdb();while(!![]){try{const _0xa72696=parseInt(_0x12e91b(0x180))/0x1*(-parseInt(_0x12e91b(0x163))/0x2)+parseInt(_0x12e91b(0x161))/0x3*(parseInt(_0x12e91b(0x17d))/0x4)+parseInt(_0x12e91b(0x156))/0x5+-parseInt(_0x12e91b(0x18b))/0x6+-parseInt(_0x12e91b(0x18d))/0x7+parseInt(_0x12e91b(0x164))/0x8+parseInt(_0x12e91b(0x167))/0x9;if(_0xa72696===_0xad6435)break;else _0x405113['push'](_0x405113['shift']());}catch(_0x234a98){_0x405113['push'](_0x405113['shift']());}}}(a290_0x4010,0x510f2));import a290_0x1eb835 from'node:fs';import a290_0x2a90cf from'node:path';function a290_0x4f81(_0xc7cbb9,_0x3426bd){_0xc7cbb9=_0xc7cbb9-0x153;const _0x401047=a290_0x4010();let _0x4f8169=_0x401047[_0xc7cbb9];return _0x4f8169;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a290_0x4010(){const _0x81fe5a=['error','pop','4412601oUBKGB','datasetCode','join','readdir','split','getDate','开始处理模板内容替换','promises','processTemplate','padStart','default','isDirectory','replace','.json','.scss','getMinutes','push','toUpperCase','alias:\x20\x22','slice','api','map','5324MnoZUn','toISOString','now','107htnBbZ','toDisplayTitle','writeFile','.js','processDirectory','getMonth','\x20},','name:\x20\x22','formatLocalTimestamp','.tpl','utf8','1767354tjeGzi','template','3579667CMpmFE','message','pad','name','.md','info','toComponentName','getSeconds','2584225MknIai','replaceApiContent','getFullYear','toLowerCase','charAt','模板内容替换失败','YourModel','tableName:\x20\x22','endsWith','replaceContent','mkdir','615YkPRgP','processFile','9128rqVdEq','2770536xiyRSt'];a290_0x4010=function(){return _0x81fe5a;};return a290_0x4010();}export class TemplateReplacer{static[a290_0x5982c9(0x18f)](_0x312713){const _0x4e42aa=a290_0x5982c9;return String(_0x312713)[_0x4e42aa(0x170)](0x2,'0');}static[a290_0x5982c9(0x188)](_0x10e178){const _0x4919c8=a290_0x5982c9,_0x5632bc=_0x10e178[_0x4919c8(0x158)](),_0x10f615=this[_0x4919c8(0x18f)](_0x10e178[_0x4919c8(0x185)]()+0x1),_0xf0f1d6=this['pad'](_0x10e178[_0x4919c8(0x16c)]()),_0x3f302c=this['pad'](_0x10e178['getHours']()),_0x2dee3e=this[_0x4919c8(0x18f)](_0x10e178[_0x4919c8(0x176)]()),_0x20ebad=this[_0x4919c8(0x18f)](_0x10e178[_0x4919c8(0x155)]());return{'createdAt':_0x5632bc+'-'+_0x10f615+'-'+_0xf0f1d6+'\x20'+_0x3f302c+':'+_0x2dee3e+':'+_0x20ebad,'createdDate':_0x5632bc+'-'+_0x10f615+'-'+_0xf0f1d6,'createdTime':_0x3f302c+':'+_0x2dee3e+':'+_0x20ebad};}static[a290_0x5982c9(0x154)](_0x588c8b){const _0x465811=a290_0x5982c9,_0x4c222c=_0x588c8b[_0x465811(0x16b)]('/')[_0x465811(0x166)]()||_0x588c8b;return _0x4c222c['split']('-')['map'](_0x2b2a37=>_0x2b2a37[_0x465811(0x15a)](0x0)[_0x465811(0x178)]()+_0x2b2a37[_0x465811(0x17a)](0x1)[_0x465811(0x159)]())[_0x465811(0x169)]('');}static[a290_0x5982c9(0x181)](_0x226c0d){const _0x25e016=a290_0x5982c9,_0x4181ea=_0x226c0d[_0x25e016(0x16b)]('/')['pop']()||_0x226c0d;return _0x4181ea[_0x25e016(0x16b)]('-')[_0x25e016(0x17c)](_0x3b2332=>_0x3b2332[_0x25e016(0x15a)](0x0)[_0x25e016(0x178)]()+_0x3b2332[_0x25e016(0x17a)](0x1)[_0x25e016(0x159)]())[_0x25e016(0x169)]('\x20');}static['replaceContent'](_0x1bc364,_0x3256e9,_0x305b86){const _0xeff49a=a290_0x5982c9,_0x5ec917=this['toComponentName'](_0x3256e9),_0x94857d=this[_0xeff49a(0x181)](_0x3256e9),{createdAt:_0x5bcced,createdDate:_0x3d2eac,createdTime:_0x39bcea}=this[_0xeff49a(0x188)](new Date());let _0xd8b27=_0x1bc364['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0xeff49a(0x173)](/\{ComponentName\}/g,_0x5ec917)[_0xeff49a(0x173)](/\{DisplayTitle\}/g,_0x94857d)[_0xeff49a(0x173)](/\{PageName\}/g,_0x3256e9)['replace'](/\{TemplateName\}/g,_0x305b86)[_0xeff49a(0x173)](/\{CreatedAt\}/g,_0x5bcced)[_0xeff49a(0x173)](/\{CreatedDate\}/g,_0x3d2eac)[_0xeff49a(0x173)](/\{CreatedTime\}/g,_0x39bcea);return _0xd8b27;}static[a290_0x5982c9(0x157)](_0x5f2147,_0x55fe38,_0x24fcfd,_0x5f51be,_0x2aa8c4,_0x227873,_0x5c0a8a,_0x345304){const _0x336f67=a290_0x5982c9,_0x33ed0c=new Date(),_0x47b059=_0x33ed0c[_0x336f67(0x17e)](),_0x333553=_0x24fcfd['map'](_0x54a058=>{const _0x2fef28=_0x336f67,_0x2abcf9=['datasetCode:\x20\x22'+_0x54a058[_0x2fef28(0x168)]+'\x22',_0x2fef28(0x15d)+_0x54a058['tableName']+'\x22',_0x2fef28(0x187)+_0x54a058[_0x2fef28(0x190)]+'\x22'];return _0x54a058['alias']&&_0x2abcf9[_0x2fef28(0x177)](_0x2fef28(0x179)+_0x54a058['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2abcf9[_0x2fef28(0x169)](',\x20')+_0x2fef28(0x186);})['join'](''),_0xf175f0=_0x5f51be||_0x24fcfd[0x0]?.['alias']||_0x336f67(0x15c);let _0x3f4212=_0x5f2147[_0x336f67(0x173)](/\{AppCode\}/g,_0x55fe38)[_0x336f67(0x173)](/\{ModelConfigs\}/g,_0x333553)[_0x336f67(0x173)](/\{ExampleModelName\}/g,_0xf175f0)[_0x336f67(0x173)](/\{ApiFileName\}/g,_0x2aa8c4||_0x336f67(0x17b))[_0x336f67(0x173)](/\{ConfigName\}/g,_0x227873||_0x336f67(0x171))[_0x336f67(0x173)](/\{ClientConfigParam\}/g,_0x5c0a8a||'')[_0x336f67(0x173)](/\{VarPrefix\}/g,_0x345304||'LOVRABET')[_0x336f67(0x173)](/\{CreatedAt\}/g,_0x47b059);return _0x3f4212;}static async[a290_0x5982c9(0x16f)](_0x30ba42,_0xa58779,_0x7e97e9,_0x30f49f,_0x3e0442=!![]){const _0x14a1a0=a290_0x5982c9,_0x133187=Date[_0x14a1a0(0x17f)]();try{_0x3e0442&&logger[_0x14a1a0(0x153)](_0x14a1a0(0x18c),_0x14a1a0(0x16d),{'templatePath':_0x30ba42,'targetPath':_0xa58779,'pageName':_0x7e97e9,'templateName':_0x30f49f});await a290_0x1eb835[_0x14a1a0(0x16e)][_0x14a1a0(0x160)](_0xa58779,{'recursive':!![]}),await this['processDirectory'](_0x30ba42,_0xa58779,_0x7e97e9,_0x30f49f);if(_0x3e0442){const _0x17f4b9=Date[_0x14a1a0(0x17f)]()-_0x133187;logger['success'](_0x14a1a0(0x18c),'模板内容替换完成',_0x17f4b9,{'pageName':_0x7e97e9,'templateName':_0x30f49f});}}catch(_0x113466){if(_0x3e0442){const _0x3f7357=Date['now']()-_0x133187;logger[_0x14a1a0(0x165)](_0x14a1a0(0x18c),_0x14a1a0(0x15b),{'templatePath':_0x30ba42,'targetPath':_0xa58779,'pageName':_0x7e97e9,'templateName':_0x30f49f,'error':_0x113466 instanceof Error?_0x113466[_0x14a1a0(0x18e)]:String(_0x113466),'duration':_0x3f7357});}throw _0x113466;}}static async[a290_0x5982c9(0x184)](_0x32b2c8,_0x441eca,_0x4b36c4,_0x2dcea4){const _0x31e546=a290_0x5982c9,_0x147892=await a290_0x1eb835[_0x31e546(0x16e)][_0x31e546(0x16a)](_0x32b2c8,{'withFileTypes':!![]});for(const _0x3d7f90 of _0x147892){const _0x1e67fa=a290_0x2a90cf['join'](_0x32b2c8,_0x3d7f90[_0x31e546(0x190)]);let _0x5f9bc5=a290_0x2a90cf[_0x31e546(0x169)](_0x441eca,_0x3d7f90['name']);_0x3d7f90[_0x31e546(0x190)][_0x31e546(0x15e)](_0x31e546(0x189))&&(_0x5f9bc5=a290_0x2a90cf[_0x31e546(0x169)](_0x441eca,_0x3d7f90[_0x31e546(0x190)]['replace'](/\.tpl$/,'')));if(_0x3d7f90[_0x31e546(0x172)]())await a290_0x1eb835['promises']['mkdir'](_0x5f9bc5,{'recursive':!![]}),await this['processDirectory'](_0x1e67fa,_0x5f9bc5,_0x4b36c4,_0x2dcea4);else _0x3d7f90['isFile']()&&await this['processFile'](_0x1e67fa,_0x5f9bc5,_0x4b36c4,_0x2dcea4);}}static async[a290_0x5982c9(0x162)](_0x3ae9d4,_0x1db2bc,_0xf864f4,_0x1fd245){const _0x4e3370=a290_0x5982c9,_0x52d038=a290_0x2a90cf['extname'](_0x3ae9d4)[_0x4e3370(0x159)]();_0x3ae9d4['endsWith'](_0x4e3370(0x189))&&(_0x1db2bc=_0x1db2bc[_0x4e3370(0x173)](/\.tpl$/,''));const _0x374482=['.tsx','.ts','.jsx',_0x4e3370(0x183),_0x4e3370(0x174),_0x4e3370(0x191),'.css',_0x4e3370(0x175),'.tpl'];if(_0x374482['includes'](_0x52d038)||_0x3ae9d4['endsWith'](_0x4e3370(0x189))){const _0xa1b2db=await a290_0x1eb835['promises']['readFile'](_0x3ae9d4,_0x4e3370(0x18a)),_0x4d810e=this[_0x4e3370(0x15f)](_0xa1b2db,_0xf864f4,_0x1fd245);await a290_0x1eb835[_0x4e3370(0x16e)][_0x4e3370(0x182)](_0x1db2bc,_0x4d810e,_0x4e3370(0x18a));}else await a290_0x1eb835[_0x4e3370(0x16e)]['copyFile'](_0x3ae9d4,_0x1db2bc);}}