@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/README.md +28 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/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/table-diff-shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/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/search.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  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/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/menu/visibility-update.js +1 -1
  137. package/lib/commands/notification/config-create.js +1 -1
  138. package/lib/commands/notification/config-delete.js +1 -1
  139. package/lib/commands/notification/config-list.js +1 -1
  140. package/lib/commands/notification/config-update.js +1 -1
  141. package/lib/commands/notification/index.js +1 -1
  142. package/lib/commands/notification/shared.js +1 -1
  143. package/lib/commands/ocr/index.js +1 -1
  144. package/lib/commands/page/create.js +1 -1
  145. package/lib/commands/page/custom/detail.js +1 -1
  146. package/lib/commands/page/custom/list.js +1 -1
  147. package/lib/commands/page/custom/publish.js +1 -1
  148. package/lib/commands/page/custom/shared.js +1 -1
  149. package/lib/commands/page/custom/syntax.js +1 -1
  150. package/lib/commands/page/custom/template.js +1 -1
  151. package/lib/commands/page/custom/update.js +1 -1
  152. package/lib/commands/page/data-list-status.js +1 -1
  153. package/lib/commands/page/generate-start.js +1 -1
  154. package/lib/commands/page/generate-status.js +1 -1
  155. package/lib/commands/page/index.js +1 -1
  156. package/lib/commands/page/pull.js +1 -1
  157. package/lib/commands/page/push.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/sync.js +1 -1
  162. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  163. package/lib/commands/project/create/format-elapsed.js +1 -1
  164. package/lib/commands/project/create/main.js +1 -1
  165. package/lib/commands/project/create/materialize-project-template.js +1 -1
  166. package/lib/commands/project/create/project-name.js +1 -1
  167. package/lib/commands/project/create/project-template-archive.js +1 -1
  168. package/lib/commands/project/create/project-template-path.js +1 -1
  169. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  170. package/lib/commands/project/create/use-format-code.js +1 -1
  171. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  172. package/lib/commands/project/index.js +1 -1
  173. package/lib/commands/project/upgrade.js +1 -1
  174. package/lib/commands/registry.js +1 -1
  175. package/lib/commands/role/delete.js +1 -1
  176. package/lib/commands/role/detail.js +1 -1
  177. package/lib/commands/role/index.js +1 -1
  178. package/lib/commands/role/list.js +1 -1
  179. package/lib/commands/role/shared.js +1 -1
  180. package/lib/commands/role/update.js +1 -1
  181. package/lib/commands/role/user-add.js +1 -1
  182. package/lib/commands/role/user-remove.js +1 -1
  183. package/lib/commands/role/user-resolve.js +1 -1
  184. package/lib/commands/run/index.js +1 -1
  185. package/lib/commands/schema.js +1 -1
  186. package/lib/commands/sql/create.js +1 -1
  187. package/lib/commands/sql/delete.js +1 -1
  188. package/lib/commands/sql/detail.js +1 -1
  189. package/lib/commands/sql/exec.js +1 -1
  190. package/lib/commands/sql/index.js +1 -1
  191. package/lib/commands/sql/list.js +1 -1
  192. package/lib/commands/sql/pull.js +1 -1
  193. package/lib/commands/sql/push.js +1 -1
  194. package/lib/commands/sql/shared.js +1 -1
  195. package/lib/commands/sql/status.js +1 -1
  196. package/lib/commands/sql/validate.js +1 -1
  197. package/lib/commands/task/index.js +1 -1
  198. package/lib/commands/task/status.js +1 -1
  199. package/lib/commands/tenant/index.js +1 -1
  200. package/lib/commands/tenant/members-list.js +1 -1
  201. package/lib/commands/tenant/shared.js +1 -1
  202. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  203. package/lib/commands/user-account/index.js +1 -1
  204. package/lib/commands/workspace/add.js +1 -1
  205. package/lib/commands/workspace/index.js +1 -1
  206. package/lib/commands/workspace/remove.js +1 -1
  207. package/lib/config/domain-config.js +1 -1
  208. package/lib/config/schema.js +1 -1
  209. package/lib/constant/cdn.js +1 -1
  210. package/lib/constant/cli.js +1 -1
  211. package/lib/constant/defaults.js +1 -1
  212. package/lib/constant/domain.js +1 -1
  213. package/lib/constant/env.js +1 -1
  214. package/lib/constant/output.js +1 -1
  215. package/lib/constant/paths.js +1 -1
  216. package/lib/constant/region.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/sleep.js +1 -1
  288. package/lib/utils/template-replacer.js +1 -1
  289. package/lib/utils/update-notice.js +1 -1
  290. package/lib/utils/version.js +1 -1
  291. package/lib/utils/with-active-cookie.js +1 -1
  292. package/lib/utils/write-cli-side-channel.js +1 -1
  293. package/package.json +1 -1
  294. package/skills/rabetbase/SKILL.md +1 -1
  295. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a273_0x300e92=a273_0x2d2e;function a273_0x5654(){const _0x19af4f=['redactionKinds','464wRcGyG','3994830LrQRop','408gYeYnr','platform-issue-log-collect','3952344tVJfki','2565444mTxgqu','issue.log.collect','924773FqJptF','8620090VPnVuI','redactionCount','join','originalBytes','138614uRhkth','sanitize','615447eUknGU','description'];a273_0x5654=function(){return _0x19af4f;};return a273_0x5654();}(function(_0x49c451,_0xfe3d6f){const _0x6960e8=a273_0x2d2e,_0x18335d=_0x49c451();while(!![]){try{const _0x4accbc=parseInt(_0x6960e8(0x15e))/0x1+parseInt(_0x6960e8(0x15c))/0x2+parseInt(_0x6960e8(0x169))/0x3+parseInt(_0x6960e8(0x15b))/0x4+parseInt(_0x6960e8(0x15f))/0x5+-parseInt(_0x6960e8(0x16a))/0x6*(parseInt(_0x6960e8(0x163))/0x7)+-parseInt(_0x6960e8(0x168))/0x8*(parseInt(_0x6960e8(0x165))/0x9);if(_0x4accbc===_0xfe3d6f)break;else _0x18335d['push'](_0x18335d['shift']());}catch(_0x30f6be){_0x18335d['push'](_0x18335d['shift']());}}}(a273_0x5654,0xe51db));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a273_0x300e92(0x16b);export const PLATFORM_ISSUE_SPAN_NAME=a273_0x300e92(0x15d);function a273_0x2d2e(_0x416260,_0x12e57f){_0x416260=_0x416260-0x15b;const _0x565458=a273_0x5654();let _0x2d2e45=_0x565458[_0x416260];return _0x2d2e45;}export async function sendPlatformIssueCollectLog(_0x1b44d2){const _0x17f96d=a273_0x300e92;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1b44d2['title'],'issue.description':_0x1b44d2[_0x17f96d(0x166)],..._0x1b44d2['sanitize']?{'issue.description_original_bytes':_0x1b44d2[_0x17f96d(0x164)][_0x17f96d(0x162)],'issue.description_truncated':_0x1b44d2[_0x17f96d(0x164)]['truncated'],'issue.description_redactions':_0x1b44d2['sanitize'][_0x17f96d(0x160)],'issue.description_redaction_kinds':_0x1b44d2[_0x17f96d(0x164)][_0x17f96d(0x167)][_0x17f96d(0x161)](',')}:{}}});}
1
+ const a273_0x47a748=a273_0x7c56;(function(_0x29b3c5,_0x494f6e){const _0x1c81cb=a273_0x7c56,_0x35bcc1=_0x29b3c5();while(!![]){try{const _0x2e9209=parseInt(_0x1c81cb(0xdb))/0x1*(-parseInt(_0x1c81cb(0xdf))/0x2)+parseInt(_0x1c81cb(0xdd))/0x3+parseInt(_0x1c81cb(0xe6))/0x4+-parseInt(_0x1c81cb(0xda))/0x5+-parseInt(_0x1c81cb(0xe5))/0x6*(parseInt(_0x1c81cb(0xdc))/0x7)+-parseInt(_0x1c81cb(0xd8))/0x8*(-parseInt(_0x1c81cb(0xd9))/0x9)+parseInt(_0x1c81cb(0xe4))/0xa;if(_0x2e9209===_0x494f6e)break;else _0x35bcc1['push'](_0x35bcc1['shift']());}catch(_0x41880f){_0x35bcc1['push'](_0x35bcc1['shift']());}}}(a273_0x1b7c,0x843c2));function a273_0x1b7c(){const _0x36acdd=['1505712gUIGrr','redactionKinds','1619624pdUbdy','issue.log.collect','title','sanitize','platform-issue-log-collect','159050UDofCe','48858ZDmxNX','3656648pRiGwc','originalBytes','redactionCount','3561320vlankQ','9sTKZrG','1366285FxBHfo','1EdcTiV','217OWmfPB'];a273_0x1b7c=function(){return _0x36acdd;};return a273_0x1b7c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x7c56(_0x5f27a0,_0x106ba1){_0x5f27a0=_0x5f27a0-0xd7;const _0x1b7c8e=a273_0x1b7c();let _0x7c56a2=_0x1b7c8e[_0x5f27a0];return _0x7c56a2;}export const PLATFORM_ISSUE_TRACE_NAME=a273_0x47a748(0xe3);export const PLATFORM_ISSUE_SPAN_NAME=a273_0x47a748(0xe0);export async function sendPlatformIssueCollectLog(_0x75c1f7){const _0x227f8f=a273_0x47a748;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x75c1f7[_0x227f8f(0xe1)],'issue.description':_0x75c1f7['description'],..._0x75c1f7['sanitize']?{'issue.description_original_bytes':_0x75c1f7[_0x227f8f(0xe2)][_0x227f8f(0xe7)],'issue.description_truncated':_0x75c1f7[_0x227f8f(0xe2)]['truncated'],'issue.description_redactions':_0x75c1f7['sanitize'][_0x227f8f(0xd7)],'issue.description_redaction_kinds':_0x75c1f7[_0x227f8f(0xe2)][_0x227f8f(0xde)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a275_0x3a0e5e=a275_0x54b4;function a275_0x1458(){const _0x4a57ae=['opencode','8havPbz','.cursorrules','trae','.codex','12QLAvtx','7iKAkML','file','.windsurf','.agent/skills/lovrabet/SKILL.md','cursor','Qoder\x20IDE','Trae','Windsurf\x20IDE','8136834TuPerD','.cursor','.trae','.windsurf/workflows/rabetbase.md','.qoder/rules/rabetbase.md','2934685ktDyGA','Cursor','.cline','Antigravity\x20IDE','CodeBuddy','14209821sJfZBt','claude','3517868ayIhly','Codex\x20IDE','.codex/skills/lovrabet/SKILL.md','qoder','30779150OTSrng','windsurf','.claude','Cline\x20IDE','Trae\x20IDE','codex','.opencode/skills/lovrabet/SKILL.md','Windsurf','214358dSYkKX','.codebuddy/skills/lovrabet/SKILL.md','.agent','.cursor/skills/rabetbase.md','cline','OpenCode','.qoder/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','antigravity','Cursor\x20IDE','317600yOnGhi','Claude\x20Code','OpenCode\x20IDE','Other\x20(generic\x20template)','.claude/skills/lovrabet/SKILL.md','codebuddy','Cline'];a275_0x1458=function(){return _0x4a57ae;};return a275_0x1458();}(function(_0x4baa99,_0x5dbaf7){const _0x18ce8d=a275_0x54b4,_0x4f7d6e=_0x4baa99();while(!![]){try{const _0x564fe6=parseInt(_0x18ce8d(0x1ce))/0x1+parseInt(_0x18ce8d(0x1c4))/0x2*(parseInt(_0x18ce8d(0x1da))/0x3)+parseInt(_0x18ce8d(0x1b8))/0x4+-parseInt(_0x18ce8d(0x1b1))/0x5+parseInt(_0x18ce8d(0x1e3))/0x6*(parseInt(_0x18ce8d(0x1db))/0x7)+-parseInt(_0x18ce8d(0x1d6))/0x8*(-parseInt(_0x18ce8d(0x1b6))/0x9)+-parseInt(_0x18ce8d(0x1bc))/0xa;if(_0x564fe6===_0x5dbaf7)break;else _0x4f7d6e['push'](_0x4f7d6e['shift']());}catch(_0x110a19){_0x4f7d6e['push'](_0x4f7d6e['shift']());}}}(a275_0x1458,0xdabc3));export const CORE_IDE_CONFIGS={'cursor':{'name':a275_0x3a0e5e(0x1b2),'description':a275_0x3a0e5e(0x1cd),'folders':[a275_0x3a0e5e(0x1d7),a275_0x3a0e5e(0x1e4)],'files':[{'type':'file','path':a275_0x3a0e5e(0x1c7)}]},'windsurf':{'name':a275_0x3a0e5e(0x1c3),'description':a275_0x3a0e5e(0x1e2),'folders':[a275_0x3a0e5e(0x1dd)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1af)}]},'claude':{'name':a275_0x3a0e5e(0x1cf),'description':a275_0x3a0e5e(0x1cf),'folders':[a275_0x3a0e5e(0x1be)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1d2)}]},'cline':{'name':a275_0x3a0e5e(0x1d4),'description':a275_0x3a0e5e(0x1bf),'folders':[a275_0x3a0e5e(0x1b3)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':'Codex','description':a275_0x3a0e5e(0x1b9),'folders':[a275_0x3a0e5e(0x1d9)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1ba)}]},'opencode':{'name':a275_0x3a0e5e(0x1c9),'description':a275_0x3a0e5e(0x1d0),'folders':['.opencode'],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1c2)}]},'qoder':{'name':'Qoder','description':a275_0x3a0e5e(0x1e0),'folders':['.qoder'],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1b0)},{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1ca)}]},'codebuddy':{'name':a275_0x3a0e5e(0x1b5),'description':a275_0x3a0e5e(0x1cb),'folders':['.codebuddy'],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1c5)}]},'trae':{'name':a275_0x3a0e5e(0x1e1),'description':a275_0x3a0e5e(0x1c0),'folders':[a275_0x3a0e5e(0x1ae)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a275_0x3a0e5e(0x1d1),'description':'Generic\x20template\x20fallback','folders':['.agent'],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':'Antigravity','description':a275_0x3a0e5e(0x1b4),'folders':[a275_0x3a0e5e(0x1c6)],'files':[{'type':a275_0x3a0e5e(0x1dc),'path':a275_0x3a0e5e(0x1de)}]}};export const CORE_IDE_LIST=[a275_0x3a0e5e(0x1b7),'cline','codebuddy',a275_0x3a0e5e(0x1c1),a275_0x3a0e5e(0x1df),'opencode',a275_0x3a0e5e(0x1bb),'trae','windsurf'];function a275_0x54b4(_0x367488,_0x34f819){_0x367488=_0x367488-0x1ae;const _0x1458bd=a275_0x1458();let _0x54b42d=_0x1458bd[_0x367488];return _0x54b42d;}export const IDE_LIST=[a275_0x3a0e5e(0x1cc),a275_0x3a0e5e(0x1b7),a275_0x3a0e5e(0x1c8),a275_0x3a0e5e(0x1d3),'codex',a275_0x3a0e5e(0x1df),'opencode',a275_0x3a0e5e(0x1bb),a275_0x3a0e5e(0x1d8),'windsurf','agent'];export const ALL_CORE_IDES=['cursor',a275_0x3a0e5e(0x1bd),a275_0x3a0e5e(0x1b7),a275_0x3a0e5e(0x1c8),a275_0x3a0e5e(0x1c1),a275_0x3a0e5e(0x1d5),a275_0x3a0e5e(0x1bb),a275_0x3a0e5e(0x1d3),a275_0x3a0e5e(0x1d8)];
1
+ const a275_0x4c54f9=a275_0x2821;(function(_0x4f06f7,_0x15ebc6){const _0x21f916=a275_0x2821,_0x4293e2=_0x4f06f7();while(!![]){try{const _0xcc7180=-parseInt(_0x21f916(0x1ff))/0x1*(-parseInt(_0x21f916(0x21a))/0x2)+parseInt(_0x21f916(0x1e5))/0x3*(-parseInt(_0x21f916(0x207))/0x4)+parseInt(_0x21f916(0x1f1))/0x5*(parseInt(_0x21f916(0x1e1))/0x6)+-parseInt(_0x21f916(0x219))/0x7*(-parseInt(_0x21f916(0x205))/0x8)+-parseInt(_0x21f916(0x214))/0x9*(parseInt(_0x21f916(0x1fc))/0xa)+-parseInt(_0x21f916(0x1ec))/0xb*(parseInt(_0x21f916(0x204))/0xc)+parseInt(_0x21f916(0x1df))/0xd*(parseInt(_0x21f916(0x1e2))/0xe);if(_0xcc7180===_0x15ebc6)break;else _0x4293e2['push'](_0x4293e2['shift']());}catch(_0x33ed30){_0x4293e2['push'](_0x4293e2['shift']());}}}(a275_0x1c91,0x69e52));export const CORE_IDE_CONFIGS={'cursor':{'name':a275_0x4c54f9(0x1f3),'description':a275_0x4c54f9(0x21b),'folders':[a275_0x4c54f9(0x20c),a275_0x4c54f9(0x1f6)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x1e0)}]},'windsurf':{'name':a275_0x4c54f9(0x1f0),'description':a275_0x4c54f9(0x210),'folders':[a275_0x4c54f9(0x1fe)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a275_0x4c54f9(0x1ee),'folders':[a275_0x4c54f9(0x217)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x1f5)}]},'cline':{'name':a275_0x4c54f9(0x211),'description':a275_0x4c54f9(0x202),'folders':[a275_0x4c54f9(0x209)],'files':[{'type':'file','path':a275_0x4c54f9(0x1ea)}]},'codex':{'name':'Codex','description':a275_0x4c54f9(0x1fd),'folders':[a275_0x4c54f9(0x21c)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x203)}]},'opencode':{'name':a275_0x4c54f9(0x213),'description':a275_0x4c54f9(0x20e),'folders':[a275_0x4c54f9(0x200)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x1fa)}]},'qoder':{'name':a275_0x4c54f9(0x1e9),'description':a275_0x4c54f9(0x1f8),'folders':[a275_0x4c54f9(0x1ed)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x20d)},{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x20a)}]},'codebuddy':{'name':'CodeBuddy','description':a275_0x4c54f9(0x1e8),'folders':[a275_0x4c54f9(0x201)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x1f2)}]},'trae':{'name':a275_0x4c54f9(0x1de),'description':a275_0x4c54f9(0x1e4),'folders':[a275_0x4c54f9(0x1fb)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x1f4)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a275_0x4c54f9(0x206),'folders':['.agent'],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a275_0x4c54f9(0x1eb),'description':'Antigravity\x20IDE','folders':[a275_0x4c54f9(0x212)],'files':[{'type':a275_0x4c54f9(0x215),'path':a275_0x4c54f9(0x20f)}]}};function a275_0x2821(_0x1490ac,_0x3ff19c){_0x1490ac=_0x1490ac-0x1de;const _0x1c911f=a275_0x1c91();let _0x282111=_0x1c911f[_0x1490ac];return _0x282111;}export const CORE_IDE_LIST=[a275_0x4c54f9(0x218),'cline',a275_0x4c54f9(0x1e6),a275_0x4c54f9(0x1f7),'cursor','opencode',a275_0x4c54f9(0x20b),a275_0x4c54f9(0x1ef),a275_0x4c54f9(0x1f9)];export const IDE_LIST=[a275_0x4c54f9(0x216),a275_0x4c54f9(0x218),a275_0x4c54f9(0x1e7),'codebuddy',a275_0x4c54f9(0x1f7),a275_0x4c54f9(0x1e3),'opencode',a275_0x4c54f9(0x20b),'trae',a275_0x4c54f9(0x1f9),'agent'];function a275_0x1c91(){const _0x3086ca=['.codebuddy/skills/lovrabet/SKILL.md','Cursor','.trae/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','.cursor','codex','Qoder\x20IDE','windsurf','.opencode/skills/lovrabet/SKILL.md','.trae','30DhpGzh','Codex\x20IDE','.windsurf','49333MWQvyD','.opencode','.codebuddy','Cline\x20IDE','.codex/skills/lovrabet/SKILL.md','8674572NfOcUf','80MiDkHY','Generic\x20template\x20fallback','14236CzZBKY','opencode','.cline','.qoder/skills/lovrabet/SKILL.md','qoder','.cursorrules','.qoder/rules/rabetbase.md','OpenCode\x20IDE','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','Cline','.agent','OpenCode','2066409qgxSgV','file','antigravity','.claude','claude','279307CTEDFy','8slIUjK','Cursor\x20IDE','.codex','Trae','871wYBVxj','.cursor/skills/rabetbase.md','36TPAwVb','231630YDXccM','cursor','Trae\x20IDE','219GhjarI','codebuddy','cline','CodeBuddy\x20IDE','Qoder','.cline/skills/lovrabet/SKILL.md','Antigravity','11YoSDjd','.qoder','Claude\x20Code','trae','Windsurf','333650IRZasn'];a275_0x1c91=function(){return _0x3086ca;};return a275_0x1c91();}export const ALL_CORE_IDES=['cursor','windsurf',a275_0x4c54f9(0x218),a275_0x4c54f9(0x1e7),a275_0x4c54f9(0x1f7),a275_0x4c54f9(0x208),a275_0x4c54f9(0x20b),a275_0x4c54f9(0x1e6),'trae'];
@@ -1 +1 @@
1
- function a276_0x2d0c(_0x52adbe,_0xe866d2){_0x52adbe=_0x52adbe-0x1da;const _0x943465=a276_0x9434();let _0x2d0c12=_0x943465[_0x52adbe];return _0x2d0c12;}(function(_0x1c9035,_0x46686c){const _0xf9da6d=a276_0x2d0c,_0x426942=_0x1c9035();while(!![]){try{const _0x4eeda5=parseInt(_0xf9da6d(0x1dc))/0x1+-parseInt(_0xf9da6d(0x1de))/0x2+parseInt(_0xf9da6d(0x1db))/0x3+-parseInt(_0xf9da6d(0x1df))/0x4*(parseInt(_0xf9da6d(0x1e0))/0x5)+parseInt(_0xf9da6d(0x1dd))/0x6+parseInt(_0xf9da6d(0x1e2))/0x7*(-parseInt(_0xf9da6d(0x1da))/0x8)+parseInt(_0xf9da6d(0x1e1))/0x9;if(_0x4eeda5===_0x46686c)break;else _0x426942['push'](_0x426942['shift']());}catch(_0x39d9fb){_0x426942['push'](_0x426942['shift']());}}}(a276_0x9434,0x1af87));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a276_0x9434(){const _0x57b1af=['5TICxUQ','1365588srVTLJ','243341quntPX','24KUCecL','81378WEJcNP','4433rDNNPV','304638SDqhaY','34766LbQRCH','7684kUbBqJ'];a276_0x9434=function(){return _0x57b1af;};return a276_0x9434();}
1
+ (function(_0xb2311b,_0xca74ea){const _0x4ccc69=a276_0x2fff,_0x346aaf=_0xb2311b();while(!![]){try{const _0x5ae51b=parseInt(_0x4ccc69(0x77))/0x1+parseInt(_0x4ccc69(0x6f))/0x2*(-parseInt(_0x4ccc69(0x72))/0x3)+-parseInt(_0x4ccc69(0x6e))/0x4*(-parseInt(_0x4ccc69(0x73))/0x5)+parseInt(_0x4ccc69(0x70))/0x6+-parseInt(_0x4ccc69(0x76))/0x7*(-parseInt(_0x4ccc69(0x71))/0x8)+-parseInt(_0x4ccc69(0x74))/0x9+-parseInt(_0x4ccc69(0x75))/0xa;if(_0x5ae51b===_0xca74ea)break;else _0x346aaf['push'](_0x346aaf['shift']());}catch(_0x1e931f){_0x346aaf['push'](_0x346aaf['shift']());}}}(a276_0x5962,0x4e6bb));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a276_0x2fff(_0x6c361d,_0x7993a2){_0x6c361d=_0x6c361d-0x6e;const _0x596247=a276_0x5962();let _0x2fffc0=_0x596247[_0x6c361d];return _0x2fffc0;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a276_0x5962(){const _0x58039c=['2270630evKMCk','48811medBUb','551077oUrxIR','4aVofDP','21596uxfguM','1222812ihATDC','24wpnKvr','18BgQKuq','955365ySNPiI','3184281bSmgBp'];a276_0x5962=function(){return _0x58039c;};return a276_0x5962();}
@@ -1 +1 @@
1
- (function(_0x358061,_0x4dc844){const _0x9ebcbe=a277_0x44b9,_0x149eac=_0x358061();while(!![]){try{const _0x863392=parseInt(_0x9ebcbe(0xbb))/0x1+parseInt(_0x9ebcbe(0xb5))/0x2*(parseInt(_0x9ebcbe(0xb1))/0x3)+-parseInt(_0x9ebcbe(0xbe))/0x4*(parseInt(_0x9ebcbe(0xb3))/0x5)+-parseInt(_0x9ebcbe(0xc1))/0x6*(-parseInt(_0x9ebcbe(0xb6))/0x7)+parseInt(_0x9ebcbe(0xba))/0x8*(parseInt(_0x9ebcbe(0xb2))/0x9)+parseInt(_0x9ebcbe(0xb8))/0xa+-parseInt(_0x9ebcbe(0xbf))/0xb;if(_0x863392===_0x4dc844)break;else _0x149eac['push'](_0x149eac['shift']());}catch(_0x4a494f){_0x149eac['push'](_0x149eac['shift']());}}}(a277_0x2d74,0xe4926));import{getTemplateBaseUrl}from'../utils/config.js';function a277_0x44b9(_0x5213b5,_0x4e511f){_0x5213b5=_0x5213b5-0xb1;const _0x2d74b9=a277_0x2d74();let _0x44b9f4=_0x2d74b9[_0x5213b5];return _0x44b9f4;}export async function fetchCdnConfig(){const _0x2ee248=a277_0x44b9,_0x1d5e0d=getTemplateBaseUrl(),_0x41dba1=[_0x1d5e0d+_0x2ee248(0xc4),_0x1d5e0d+_0x2ee248(0xb7)];for(const _0x2ba4da of _0x41dba1){try{const _0x4523b0=await fetch(_0x2ba4da,{'headers':{'Accept':_0x2ee248(0xc2)}});if(!_0x4523b0['ok'])continue;const _0x5f4a36=await _0x4523b0[_0x2ee248(0xbc)]();if(!_0x5f4a36[_0x2ee248(0xbd)]?.[_0x2ee248(0xb9)]||!_0x5f4a36[_0x2ee248(0xb4)]?.[_0x2ee248(0xc0)]?.['stableVersion'])continue;return _0x5f4a36;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x4de19e=a277_0x44b9,_0x246db3=Date[_0x4de19e(0xc3)]();if(hasCachedConfig){const _0x2935e5=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x246db3-cacheTime<_0x2935e5)return cachedConfig;}const _0x22a0dd=await fetchCdnConfig();return cachedConfig=_0x22a0dd,cacheTime=_0x246db3,hasCachedConfig=!![],_0x22a0dd;}function a277_0x2d74(){const _0x454047=['807710AxRHea','stableVersion','849000WEbvru','122728eECIJm','json','cli','35004KWuaPA','4892690ukRioq','node','51630XtczRw','application/json','now','/config.json','4167KHPFpv','63PzPBbW','650AbbjLs','sdk','108LWJGwk','1218ScvBoi','/config/index.json'];a277_0x2d74=function(){return _0x454047;};return a277_0x2d74();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a277_0x11c6(_0x2cba70,_0x308159){_0x2cba70=_0x2cba70-0xce;const _0x82372c=a277_0x8237();let _0x11c67d=_0x82372c[_0x2cba70];return _0x11c67d;}(function(_0x702805,_0x39b257){const _0x1d1e31=a277_0x11c6,_0x49f156=_0x702805();while(!![]){try{const _0xdde28b=parseInt(_0x1d1e31(0xdb))/0x1+parseInt(_0x1d1e31(0xce))/0x2+-parseInt(_0x1d1e31(0xdc))/0x3*(-parseInt(_0x1d1e31(0xd1))/0x4)+-parseInt(_0x1d1e31(0xd0))/0x5*(parseInt(_0x1d1e31(0xd4))/0x6)+parseInt(_0x1d1e31(0xd2))/0x7+-parseInt(_0x1d1e31(0xd9))/0x8*(-parseInt(_0x1d1e31(0xda))/0x9)+-parseInt(_0x1d1e31(0xd6))/0xa;if(_0xdde28b===_0x39b257)break;else _0x49f156['push'](_0x49f156['shift']());}catch(_0xace53d){_0x49f156['push'](_0x49f156['shift']());}}}(a277_0x8237,0xd0bfc));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1eea96=a277_0x11c6,_0x1cf3e4=getTemplateBaseUrl(),_0x4940f7=[_0x1cf3e4+_0x1eea96(0xd7),_0x1cf3e4+'/config/index.json'];for(const _0x559f5b of _0x4940f7){try{const _0x4c3848=await fetch(_0x559f5b,{'headers':{'Accept':_0x1eea96(0xd5)}});if(!_0x4c3848['ok'])continue;const _0x173a3a=await _0x4c3848[_0x1eea96(0xcf)]();if(!_0x173a3a['cli']?.['stableVersion']||!_0x173a3a['sdk']?.[_0x1eea96(0xd8)]?.['stableVersion'])continue;return _0x173a3a;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a277_0x8237(){const _0x82b902=['2687319SObDPa','424989MEfYQQ','3330975iXCUrw','3349624DgkhYc','json','3771655BwFKnG','4SrzaES','8236403nMdpXc','now','6JnkeZh','application/json','39717520PIMtGi','/config.json','node','32QYPkFn'];a277_0x8237=function(){return _0x82b902;};return a277_0x8237();}export async function getCdnConfig(){const _0x193fe0=a277_0x11c6,_0x46a665=Date[_0x193fe0(0xd3)]();if(hasCachedConfig){const _0x5c513a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x46a665-cacheTime<_0x5c513a)return cachedConfig;}const _0x378df9=await fetchCdnConfig();return cachedConfig=_0x378df9,cacheTime=_0x46a665,hasCachedConfig=!![],_0x378df9;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x33cdf4,_0x1525de){const _0x47b05b=a278_0x19c9,_0x3198bd=_0x33cdf4();while(!![]){try{const _0x494fd4=-parseInt(_0x47b05b(0x197))/0x1+parseInt(_0x47b05b(0x19a))/0x2*(-parseInt(_0x47b05b(0x1aa))/0x3)+-parseInt(_0x47b05b(0x1ab))/0x4*(-parseInt(_0x47b05b(0x1ad))/0x5)+parseInt(_0x47b05b(0x1ba))/0x6*(parseInt(_0x47b05b(0x19b))/0x7)+parseInt(_0x47b05b(0x1af))/0x8*(parseInt(_0x47b05b(0x1ac))/0x9)+parseInt(_0x47b05b(0x1a2))/0xa*(-parseInt(_0x47b05b(0x19e))/0xb)+-parseInt(_0x47b05b(0x19c))/0xc*(-parseInt(_0x47b05b(0x1b9))/0xd);if(_0x494fd4===_0x1525de)break;else _0x3198bd['push'](_0x3198bd['shift']());}catch(_0x32b0eb){_0x3198bd['push'](_0x3198bd['shift']());}}}(a278_0x3361,0xc7d3f));import a278_0x2e4b0a from'node:fs';import a278_0x443a71 from'node:path';import a278_0x5c8ea8 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x410d78){const _0x357c94=a278_0x19c9,_0x5061db=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5061db['some'](_0x366589=>_0x366589[_0x357c94(0x1a9)](_0x410d78));}function getInstalledVersion(_0x4ed91e,_0x4aec52){const _0x5b6c91=a278_0x19c9;try{const _0x437c20=a278_0x443a71['join'](_0x4ed91e,_0x5b6c91(0x1b1),_0x4aec52,_0x5b6c91(0x1a1));if(a278_0x2e4b0a['existsSync'](_0x437c20)){const _0x55ac4f=JSON[_0x5b6c91(0x1b2)](a278_0x2e4b0a['readFileSync'](_0x437c20,_0x5b6c91(0x1a4)));return _0x55ac4f[_0x5b6c91(0x198)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4fe9d3=a278_0x19c9;try{const _0x3e83f1=await getCdnConfig();return _0x3e83f1?.[_0x4fe9d3(0x1b3)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x47cf9c=a278_0x19c9;try{const _0x456dc3=await getCdnConfig();return _0x456dc3?.['sdk']?.['node']?.[_0x47cf9c(0x1b7)]||_0x47cf9c(0x19d);}catch{return _0x47cf9c(0x19d);}}function a278_0x3361(){const _0x1ed5c0=['16KIruwk','49MsCwXW','96vAxxbE','@lovrabet/sdk','15763bNmQVq','readFileSync','\x1b[1m','package.json','10090nDowof','log','utf-8','all','coerce','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','test','583242JlZiiJ','4toQRGi','877518sZWabZ','2791465DOzZNw','\x1b[33m','16Ozeadg','existsSync','node_modules','parse','sdk','dependencies','join','needsUpgrade','packageName','npm\x20install\x20','4953741zsUizc','480894halkbD','latest','↪\x20SDK\x20update\x20available','stableVersion','543092vPTnMe','version','devDependencies'];a278_0x3361=function(){return _0x1ed5c0;};return a278_0x3361();}export async function checkSdkVersion(_0x518577){const _0x1328a6=a278_0x19c9,_0x2b4079=a278_0x443a71['join'](_0x518577,_0x1328a6(0x1a1)),[_0x492112,_0x302636]=await Promise[_0x1328a6(0x1a5)]([getSdkStableVersion(),getSdkPackageName()]),_0x29d296=_0x492112||FALLBACK_MIN_SDK_VERSION;if(!a278_0x2e4b0a[_0x1328a6(0x1b0)](_0x2b4079))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x29d296,'packageName':_0x302636,'stableVersion':_0x492112};try{const _0x4f72ad=JSON[_0x1328a6(0x1b2)](a278_0x2e4b0a[_0x1328a6(0x19f)](_0x2b4079,'utf8')),_0x24de03=_0x4f72ad[_0x1328a6(0x1b4)]||{},_0x75b256=_0x4f72ad[_0x1328a6(0x199)]||{},_0x3ba73c=_0x24de03[_0x302636]||_0x75b256[_0x302636];if(!_0x3ba73c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x29d296,'packageName':_0x302636,'stableVersion':_0x492112};let _0x1b7f29=getInstalledVersion(_0x518577,_0x302636);!_0x1b7f29&&(_0x1b7f29=_0x3ba73c);if(isNonNumericVersion(_0x3ba73c))return{'installed':!![],'version':_0x1b7f29,'needsUpgrade':![],'minVersion':_0x29d296,'packageName':_0x302636,'stableVersion':_0x492112};const _0xc69b3f=a278_0x5c8ea8[_0x1328a6(0x1a6)](_0x1b7f29),_0xd3c06c=a278_0x5c8ea8['coerce'](_0x29d296),_0x271af9=_0xc69b3f&&_0xd3c06c?a278_0x5c8ea8['lt'](_0xc69b3f,_0xd3c06c):![];return{'installed':!![],'version':_0x1b7f29,'needsUpgrade':_0x271af9,'minVersion':_0x29d296,'packageName':_0x302636,'stableVersion':_0x492112};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x29d296,'packageName':_0x302636,'stableVersion':_0x492112};}}function a278_0x19c9(_0x12e52b,_0x559c20){_0x12e52b=_0x12e52b-0x195;const _0x3361d0=a278_0x3361();let _0x19c95d=_0x3361d0[_0x12e52b];return _0x19c95d;}export function checkSdkVersionSync(_0x4d98a6){const _0x33fc42=a278_0x19c9,_0x1d2644=a278_0x443a71[_0x33fc42(0x1b5)](_0x4d98a6,'package.json'),_0x2673a6=_0x33fc42(0x19d);if(!a278_0x2e4b0a['existsSync'](_0x1d2644))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2673a6,'stableVersion':null};try{const _0x37bd47=JSON[_0x33fc42(0x1b2)](a278_0x2e4b0a['readFileSync'](_0x1d2644,'utf8')),_0x5320d2=_0x37bd47[_0x33fc42(0x1b4)]||{},_0x363842=_0x37bd47[_0x33fc42(0x199)]||{},_0xd05c80=_0x5320d2[_0x2673a6]||_0x363842[_0x2673a6];if(!_0xd05c80)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2673a6,'stableVersion':null};let _0x53184c=getInstalledVersion(_0x4d98a6,_0x2673a6);!_0x53184c&&(_0x53184c=_0xd05c80);if(isNonNumericVersion(_0xd05c80))return{'installed':!![],'version':_0x53184c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2673a6,'stableVersion':null};const _0x2e6840=a278_0x5c8ea8[_0x33fc42(0x1a6)](_0x53184c),_0x2897ef=_0x2e6840?a278_0x5c8ea8['lt'](_0x2e6840,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x53184c,'needsUpgrade':_0x2897ef,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2673a6,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2673a6,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x17d787){const _0x19a940=a278_0x19c9;if(!_0x17d787[_0x19a940(0x1b6)])return;const _0xbbcbd=_0x19a940(0x1ae),_0x5823aa=_0x19a940(0x1a8),_0x49c2f4=_0x19a940(0x1a0),_0x59f746=_0x17d787[_0x19a940(0x1b7)]||_0x19a940(0x19d),_0x2a3f8c=_0x17d787[_0x19a940(0x196)]||_0x17d787['minVersion'],_0x10d45e=_0x19a940(0x1b8)+_0x59f746+'@'+(_0x2a3f8c||_0x19a940(0x1bb));console['log'](),console['log'](''+_0xbbcbd+_0x49c2f4+_0x19a940(0x195)+_0x5823aa),console[_0x19a940(0x1a3)](_0xbbcbd+'\x20\x20\x20Current\x20version:\x20'+_0x59f746+'@'+_0x17d787[_0x19a940(0x198)]+_0x5823aa),console[_0x19a940(0x1a3)](_0xbbcbd+_0x19a940(0x1a7)+_0x2a3f8c+_0x5823aa),console['log'](_0xbbcbd+'\x20\x20\x20Upgrade\x20command:\x20'+_0x10d45e+_0x5823aa),console[_0x19a940(0x1a3)]();}
1
+ (function(_0x14abbb,_0xc7c9f3){const _0xd9cd9c=a278_0x4928,_0x43f90c=_0x14abbb();while(!![]){try{const _0x47dde0=-parseInt(_0xd9cd9c(0xdc))/0x1+-parseInt(_0xd9cd9c(0xd0))/0x2*(parseInt(_0xd9cd9c(0xcb))/0x3)+parseInt(_0xd9cd9c(0xce))/0x4*(parseInt(_0xd9cd9c(0xf1))/0x5)+-parseInt(_0xd9cd9c(0xcd))/0x6+-parseInt(_0xd9cd9c(0xee))/0x7+-parseInt(_0xd9cd9c(0xd4))/0x8*(parseInt(_0xd9cd9c(0xe8))/0x9)+parseInt(_0xd9cd9c(0xe9))/0xa;if(_0x47dde0===_0xc7c9f3)break;else _0x43f90c['push'](_0x43f90c['shift']());}catch(_0x35a781){_0x43f90c['push'](_0x43f90c['shift']());}}}(a278_0x56e4,0x20c53));import a278_0x2777de from'node:fs';import a278_0x4460bb from'node:path';import a278_0x35630f from'semver';function a278_0x56e4(){const _0x4d4feb=['2JHpaVo','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','1712STHcKD','utf-8','parse','utf8','join','node_modules','sdk','stableVersion','71841OHsiQt','readFileSync','@lovrabet/sdk','packageName','all','minVersion','coerce','\x1b[1m','existsSync','devDependencies','node','dependencies','5661sZKhkG','7544920OIHIOt','test','\x20\x20\x20Stable\x20version:\x20','log','some','1212841YOfqAw','version','needsUpgrade','15yrjNBj','765189JzWECX','\x1b[0m','567558uyqRgz','145468RAkxDn','package.json'];a278_0x56e4=function(){return _0x4d4feb;};return a278_0x56e4();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a278_0x4928(_0x5d4a1a,_0x599919){_0x5d4a1a=_0x5d4a1a-0xcb;const _0x56e473=a278_0x56e4();let _0x492855=_0x56e473[_0x5d4a1a];return _0x492855;}function isNonNumericVersion(_0x303056){const _0x3b426d=a278_0x4928,_0x2a183d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a183d[_0x3b426d(0xed)](_0x46420b=>_0x46420b[_0x3b426d(0xea)](_0x303056));}function getInstalledVersion(_0x3481a0,_0xa64c34){const _0x410e5c=a278_0x4928;try{const _0x38a3fa=a278_0x4460bb[_0x410e5c(0xd8)](_0x3481a0,_0x410e5c(0xd9),_0xa64c34,'package.json');if(a278_0x2777de['existsSync'](_0x38a3fa)){const _0x746a16=JSON[_0x410e5c(0xd6)](a278_0x2777de[_0x410e5c(0xdd)](_0x38a3fa,_0x410e5c(0xd5)));return _0x746a16[_0x410e5c(0xef)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3b5177=a278_0x4928;try{const _0x3342c0=await getCdnConfig();return _0x3342c0?.[_0x3b5177(0xda)]?.['node']?.[_0x3b5177(0xdb)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4ace54=a278_0x4928;try{const _0x3a8b76=await getCdnConfig();return _0x3a8b76?.[_0x4ace54(0xda)]?.[_0x4ace54(0xe6)]?.[_0x4ace54(0xdf)]||_0x4ace54(0xde);}catch{return _0x4ace54(0xde);}}export async function checkSdkVersion(_0x1373f7){const _0x24e04c=a278_0x4928,_0x4be635=a278_0x4460bb[_0x24e04c(0xd8)](_0x1373f7,_0x24e04c(0xcf)),[_0x4b98ba,_0x57bea9]=await Promise[_0x24e04c(0xe0)]([getSdkStableVersion(),getSdkPackageName()]),_0x2d4a66=_0x4b98ba||FALLBACK_MIN_SDK_VERSION;if(!a278_0x2777de[_0x24e04c(0xe4)](_0x4be635))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2d4a66,'packageName':_0x57bea9,'stableVersion':_0x4b98ba};try{const _0x3d1696=JSON[_0x24e04c(0xd6)](a278_0x2777de['readFileSync'](_0x4be635,_0x24e04c(0xd7))),_0x5cb366=_0x3d1696[_0x24e04c(0xe7)]||{},_0x346538=_0x3d1696[_0x24e04c(0xe5)]||{},_0x3ff575=_0x5cb366[_0x57bea9]||_0x346538[_0x57bea9];if(!_0x3ff575)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2d4a66,'packageName':_0x57bea9,'stableVersion':_0x4b98ba};let _0x4e74c6=getInstalledVersion(_0x1373f7,_0x57bea9);!_0x4e74c6&&(_0x4e74c6=_0x3ff575);if(isNonNumericVersion(_0x3ff575))return{'installed':!![],'version':_0x4e74c6,'needsUpgrade':![],'minVersion':_0x2d4a66,'packageName':_0x57bea9,'stableVersion':_0x4b98ba};const _0x3aee82=a278_0x35630f[_0x24e04c(0xe2)](_0x4e74c6),_0x57cc75=a278_0x35630f['coerce'](_0x2d4a66),_0x121556=_0x3aee82&&_0x57cc75?a278_0x35630f['lt'](_0x3aee82,_0x57cc75):![];return{'installed':!![],'version':_0x4e74c6,'needsUpgrade':_0x121556,'minVersion':_0x2d4a66,'packageName':_0x57bea9,'stableVersion':_0x4b98ba};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2d4a66,'packageName':_0x57bea9,'stableVersion':_0x4b98ba};}}export function checkSdkVersionSync(_0x164e99){const _0x3fa0d4=a278_0x4928,_0x458a5c=a278_0x4460bb['join'](_0x164e99,_0x3fa0d4(0xcf)),_0x191b27=_0x3fa0d4(0xde);if(!a278_0x2777de[_0x3fa0d4(0xe4)](_0x458a5c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x191b27,'stableVersion':null};try{const _0x587b84=JSON[_0x3fa0d4(0xd6)](a278_0x2777de[_0x3fa0d4(0xdd)](_0x458a5c,_0x3fa0d4(0xd7))),_0x4025d6=_0x587b84['dependencies']||{},_0x1069c6=_0x587b84['devDependencies']||{},_0x44fc22=_0x4025d6[_0x191b27]||_0x1069c6[_0x191b27];if(!_0x44fc22)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x191b27,'stableVersion':null};let _0x3e834d=getInstalledVersion(_0x164e99,_0x191b27);!_0x3e834d&&(_0x3e834d=_0x44fc22);if(isNonNumericVersion(_0x44fc22))return{'installed':!![],'version':_0x3e834d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x191b27,'stableVersion':null};const _0x2cee85=a278_0x35630f[_0x3fa0d4(0xe2)](_0x3e834d),_0x47d350=_0x2cee85?a278_0x35630f['lt'](_0x2cee85,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3e834d,'needsUpgrade':_0x47d350,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x191b27,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x191b27,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4db8f3){const _0x1e0637=a278_0x4928;if(!_0x4db8f3[_0x1e0637(0xf0)])return;const _0x214b64=_0x1e0637(0xd1),_0x14be92=_0x1e0637(0xcc),_0x4a1c35=_0x1e0637(0xe3),_0x442a6f=_0x4db8f3[_0x1e0637(0xdf)]||_0x1e0637(0xde),_0x29a66d=_0x4db8f3['stableVersion']||_0x4db8f3[_0x1e0637(0xe1)],_0x3086f6=_0x1e0637(0xd3)+_0x442a6f+'@'+(_0x29a66d||'latest');console[_0x1e0637(0xec)](),console[_0x1e0637(0xec)](''+_0x214b64+_0x4a1c35+'↪\x20SDK\x20update\x20available'+_0x14be92),console[_0x1e0637(0xec)](_0x214b64+'\x20\x20\x20Current\x20version:\x20'+_0x442a6f+'@'+_0x4db8f3['version']+_0x14be92),console[_0x1e0637(0xec)](_0x214b64+_0x1e0637(0xeb)+_0x29a66d+_0x14be92),console['log'](_0x214b64+_0x1e0637(0xd2)+_0x3086f6+_0x14be92),console[_0x1e0637(0xec)]();}
@@ -1 +1 @@
1
- (function(_0x361f86,_0x22c753){const _0x18b5f0=a279_0x5257,_0x5c77c0=_0x361f86();while(!![]){try{const _0x145f36=-parseInt(_0x18b5f0(0x1cd))/0x1+parseInt(_0x18b5f0(0x1cf))/0x2+-parseInt(_0x18b5f0(0x1cb))/0x3*(parseInt(_0x18b5f0(0x1df))/0x4)+-parseInt(_0x18b5f0(0x1e9))/0x5+-parseInt(_0x18b5f0(0x1db))/0x6*(-parseInt(_0x18b5f0(0x1da))/0x7)+parseInt(_0x18b5f0(0x1e7))/0x8*(parseInt(_0x18b5f0(0x1d3))/0x9)+parseInt(_0x18b5f0(0x1c6))/0xa;if(_0x145f36===_0x22c753)break;else _0x5c77c0['push'](_0x5c77c0['shift']());}catch(_0x41a482){_0x5c77c0['push'](_0x5c77c0['shift']());}}}(a279_0x2802,0xc38c8));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a279_0x204227 from'semver';function a279_0x5257(_0xe8210d,_0x5846d1){_0xe8210d=_0xe8210d-0x1c6;const _0x2802e1=a279_0x2802();let _0x5257ee=_0x2802e1[_0xe8210d];return _0x5257ee;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a279_0x2802(){const _0x1a3fa0=['Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','log','stableVersion','needsUpgrade','\x20\x20\x20Current\x20CLI\x20version:\x20','91eVVMOs','74238kxtJlT','version','\x20\x20\x20Stable\x20version:\x20','coerce','2420gVTTNE','\x20\x20\x20Minimum\x20supported:\x20','upgradeMessage','latest','1.0.0','filter','\x1b[0m','currentVersion','8RAMWBC','\x1b[1m','2436385izaMAG','Current\x20version:\x20','\x20\x20\x20','../..','8277350MTSnCU','minimumVersion','utf-8','parse','belowMinimum','5055QfEdAy','\x1b[33m','808531wljTNE','minimumVersionMessage','1927226QYPnsc','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','Minimum\x20supported:\x20','10476036hVQnKg'];a279_0x2802=function(){return _0x1a3fa0;};return a279_0x2802();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x508f63){const _0x517202=a279_0x5257,_0xc611a3=_0x508f63[_0x517202(0x1d7)]||_0x517202(0x1e2);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0xc611a3;}function getCurrentCliVersion(){const _0x23c34f=a279_0x5257;try{const _0x26b3ff=fileURLToPath(import.meta.url),_0x479962=resolve(dirname(_0x26b3ff),_0x23c34f(0x1ec)),_0x4b54ff=resolve(_0x479962,'package.json'),_0x34912e=JSON[_0x23c34f(0x1c9)](readFileSync(_0x4b54ff,_0x23c34f(0x1c8)));return _0x34912e[_0x23c34f(0x1dc)]||'1.0.0';}catch{return _0x23c34f(0x1e3);}}export async function checkCliVersion(){const _0x3764d0=a279_0x5257,_0x1a3657=getCurrentCliVersion(),_0x1459c0=await getCliVersionPolicy(),_0x3571f2=_0x1459c0?.[_0x3764d0(0x1d7)]||null,_0x1a4ca2=_0x1459c0?.[_0x3764d0(0x1c7)]||null;let _0x2c957a=![],_0x7f2624=![];const _0x31eccd=a279_0x204227[_0x3764d0(0x1de)](_0x1a3657);if(_0x31eccd&&_0x3571f2)try{const _0x2a6861=a279_0x204227[_0x3764d0(0x1de)](_0x3571f2);if(_0x2a6861)_0x2c957a=a279_0x204227['lt'](_0x31eccd,_0x2a6861);}catch{}if(_0x31eccd&&_0x1a4ca2)try{const _0x19cd31=a279_0x204227[_0x3764d0(0x1de)](_0x1a4ca2);if(_0x19cd31)_0x7f2624=a279_0x204227['lt'](_0x31eccd,_0x19cd31);}catch{}return _0x7f2624&&(_0x2c957a=!![]),{'currentVersion':_0x1a3657,'stableVersion':_0x3571f2,'minimumVersion':_0x1a4ca2,'needsUpgrade':_0x2c957a,'belowMinimum':_0x7f2624,'isPreRelease':![],'upgradeMessage':_0x1459c0?.['upgradeMessage'],'minimumVersionMessage':_0x1459c0?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x297f54){const _0x46c2f5=a279_0x5257;if(!_0x297f54[_0x46c2f5(0x1d8)]&&!_0x297f54[_0x46c2f5(0x1ca)])return;const _0x6f1688='\x1b[31m',_0x3adc63=_0x46c2f5(0x1cc),_0x4503ac=_0x46c2f5(0x1e5),_0x587d89=_0x46c2f5(0x1e8),_0x1945c5=getCliUpgradeCommand(_0x297f54);console['log'](),_0x297f54[_0x46c2f5(0x1ca)]?(console[_0x46c2f5(0x1d6)](''+_0x6f1688+_0x587d89+_0x46c2f5(0x1d1)+_0x4503ac),console['log'](_0x6f1688+_0x46c2f5(0x1d9)+_0x297f54['currentVersion']+_0x4503ac),_0x297f54[_0x46c2f5(0x1c7)]&&console[_0x46c2f5(0x1d6)](_0x6f1688+_0x46c2f5(0x1e0)+_0x297f54[_0x46c2f5(0x1c7)]+_0x4503ac),_0x297f54[_0x46c2f5(0x1d7)]&&_0x297f54['stableVersion']!==_0x297f54[_0x46c2f5(0x1c7)]&&console[_0x46c2f5(0x1d6)](_0x6f1688+'\x20\x20\x20Recommended\x20stable:\x20'+_0x297f54['stableVersion']+_0x4503ac),_0x297f54[_0x46c2f5(0x1ce)]&&console[_0x46c2f5(0x1d6)](_0x6f1688+_0x46c2f5(0x1eb)+_0x297f54[_0x46c2f5(0x1ce)]+_0x4503ac),console[_0x46c2f5(0x1d6)](_0x6f1688+_0x46c2f5(0x1d0)+_0x1945c5+_0x4503ac)):(console[_0x46c2f5(0x1d6)](''+_0x3adc63+_0x587d89+'↪\x20New\x20version\x20available'+_0x4503ac),console[_0x46c2f5(0x1d6)](_0x3adc63+_0x46c2f5(0x1d9)+_0x297f54['currentVersion']+_0x4503ac),console['log'](_0x3adc63+_0x46c2f5(0x1dd)+_0x297f54[_0x46c2f5(0x1d7)]+_0x4503ac),_0x297f54[_0x46c2f5(0x1e1)]&&console[_0x46c2f5(0x1d6)](_0x3adc63+_0x46c2f5(0x1eb)+_0x297f54['upgradeMessage']+_0x4503ac),console[_0x46c2f5(0x1d6)](_0x3adc63+_0x46c2f5(0x1d0)+_0x1945c5+_0x4503ac)),console[_0x46c2f5(0x1d6)]();}export function assertCliVersionSupported(_0x2b3bf3){const _0x1cc5ae=a279_0x5257;if(!_0x2b3bf3[_0x1cc5ae(0x1ca)])return;const _0x21347f=[_0x2b3bf3[_0x1cc5ae(0x1ce)],_0x1cc5ae(0x1ea)+_0x2b3bf3[_0x1cc5ae(0x1e6)],_0x2b3bf3[_0x1cc5ae(0x1c7)]?_0x1cc5ae(0x1d2)+_0x2b3bf3[_0x1cc5ae(0x1c7)]:null,_0x1cc5ae(0x1d4)+getCliUpgradeCommand(_0x2b3bf3)][_0x1cc5ae(0x1e4)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x1cc5ae(0x1d5),_0x21347f);}
1
+ function a279_0x4406(_0x12e8ce,_0x5488ee){_0x12e8ce=_0x12e8ce-0x78;const _0x45dd9c=a279_0x45dd();let _0x4406aa=_0x45dd9c[_0x12e8ce];return _0x4406aa;}function a279_0x45dd(){const _0x2911c0=['stableVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','1.0.0','18jaAFrd','Current\x20version:\x20','coerce','1186128XoBDvd','version','2282308QxsclS','\x1b[1m','40OQiSde','upgradeMessage','Minimum\x20supported:\x20','596528oREHpp','\x1b[31m','29580RqotZz','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','parse','filter','\x1b[0m','13041310fkaeJw','\x1b[33m','join','\x20\x20\x20Upgrade\x20command:\x20','5xoWSjp','minimumVersionMessage','log','1436265rdHvll','2318172JrAlAh','belowMinimum','currentVersion','package.json','minimumVersion','../..','needsUpgrade','\x20\x20\x20Minimum\x20supported:\x20'];a279_0x45dd=function(){return _0x2911c0;};return a279_0x45dd();}(function(_0x1a9ba8,_0x271b4a){const _0x9e571f=a279_0x4406,_0xdef429=_0x1a9ba8();while(!![]){try{const _0x15d261=parseInt(_0x9e571f(0x82))/0x1*(-parseInt(_0x9e571f(0x87))/0x2)+-parseInt(_0x9e571f(0x95))/0x3+-parseInt(_0x9e571f(0x96))/0x4*(parseInt(_0x9e571f(0x92))/0x5)+-parseInt(_0x9e571f(0x7e))/0x6+-parseInt(_0x9e571f(0x80))/0x7+parseInt(_0x9e571f(0x85))/0x8+-parseInt(_0x9e571f(0x7b))/0x9*(-parseInt(_0x9e571f(0x8e))/0xa);if(_0x15d261===_0x271b4a)break;else _0xdef429['push'](_0xdef429['shift']());}catch(_0x3b5dc2){_0xdef429['push'](_0xdef429['shift']());}}}(a279_0x45dd,0x7c50e));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a279_0x1347b2 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(_0x416427){const _0x47cd3b=_0x416427['stableVersion']||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x47cd3b;}function getCurrentCliVersion(){const _0xf67455=a279_0x4406;try{const _0x33dcc4=fileURLToPath(import.meta.url),_0x23571b=resolve(dirname(_0x33dcc4),_0xf67455(0x9b)),_0x714162=resolve(_0x23571b,_0xf67455(0x99)),_0x34b5b1=JSON[_0xf67455(0x8b)](readFileSync(_0x714162,'utf-8'));return _0x34b5b1[_0xf67455(0x7f)]||_0xf67455(0x7a);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x139144=a279_0x4406,_0x2dec96=getCurrentCliVersion(),_0x3d06d3=await getCliVersionPolicy(),_0x55d69b=_0x3d06d3?.[_0x139144(0x78)]||null,_0x28ecc1=_0x3d06d3?.[_0x139144(0x9a)]||null;let _0x141f6c=![],_0x5a1234=![];const _0x436a1d=a279_0x1347b2[_0x139144(0x7d)](_0x2dec96);if(_0x436a1d&&_0x55d69b)try{const _0x5f1ab2=a279_0x1347b2[_0x139144(0x7d)](_0x55d69b);if(_0x5f1ab2)_0x141f6c=a279_0x1347b2['lt'](_0x436a1d,_0x5f1ab2);}catch{}if(_0x436a1d&&_0x28ecc1)try{const _0x3d93ad=a279_0x1347b2['coerce'](_0x28ecc1);if(_0x3d93ad)_0x5a1234=a279_0x1347b2['lt'](_0x436a1d,_0x3d93ad);}catch{}return _0x5a1234&&(_0x141f6c=!![]),{'currentVersion':_0x2dec96,'stableVersion':_0x55d69b,'minimumVersion':_0x28ecc1,'needsUpgrade':_0x141f6c,'belowMinimum':_0x5a1234,'isPreRelease':![],'upgradeMessage':_0x3d06d3?.['upgradeMessage'],'minimumVersionMessage':_0x3d06d3?.[_0x139144(0x93)]};}export function printCliUpgradeWarning(_0x3f85bb){const _0x30bbb2=a279_0x4406;if(!_0x3f85bb[_0x30bbb2(0x9c)]&&!_0x3f85bb[_0x30bbb2(0x97)])return;const _0x50c412=_0x30bbb2(0x86),_0x5e6a35=_0x30bbb2(0x8f),_0x407376=_0x30bbb2(0x8d),_0x20953d=_0x30bbb2(0x81),_0x4f9d39=getCliUpgradeCommand(_0x3f85bb);console[_0x30bbb2(0x94)](),_0x3f85bb[_0x30bbb2(0x97)]?(console[_0x30bbb2(0x94)](''+_0x50c412+_0x20953d+_0x30bbb2(0x79)+_0x407376),console[_0x30bbb2(0x94)](_0x50c412+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3f85bb['currentVersion']+_0x407376),_0x3f85bb[_0x30bbb2(0x9a)]&&console[_0x30bbb2(0x94)](_0x50c412+_0x30bbb2(0x9d)+_0x3f85bb[_0x30bbb2(0x9a)]+_0x407376),_0x3f85bb['stableVersion']&&_0x3f85bb['stableVersion']!==_0x3f85bb[_0x30bbb2(0x9a)]&&console['log'](_0x50c412+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3f85bb[_0x30bbb2(0x78)]+_0x407376),_0x3f85bb[_0x30bbb2(0x93)]&&console['log'](_0x50c412+_0x30bbb2(0x8a)+_0x3f85bb['minimumVersionMessage']+_0x407376),console[_0x30bbb2(0x94)](_0x50c412+_0x30bbb2(0x91)+_0x4f9d39+_0x407376)):(console[_0x30bbb2(0x94)](''+_0x5e6a35+_0x20953d+'↪\x20New\x20version\x20available'+_0x407376),console[_0x30bbb2(0x94)](_0x5e6a35+_0x30bbb2(0x89)+_0x3f85bb[_0x30bbb2(0x98)]+_0x407376),console[_0x30bbb2(0x94)](_0x5e6a35+_0x30bbb2(0x88)+_0x3f85bb[_0x30bbb2(0x78)]+_0x407376),_0x3f85bb[_0x30bbb2(0x83)]&&console[_0x30bbb2(0x94)](_0x5e6a35+_0x30bbb2(0x8a)+_0x3f85bb[_0x30bbb2(0x83)]+_0x407376),console[_0x30bbb2(0x94)](_0x5e6a35+_0x30bbb2(0x91)+_0x4f9d39+_0x407376)),console[_0x30bbb2(0x94)]();}export function assertCliVersionSupported(_0x4210ed){const _0x76f5c4=a279_0x4406;if(!_0x4210ed[_0x76f5c4(0x97)])return;const _0x432f67=[_0x4210ed[_0x76f5c4(0x93)],_0x76f5c4(0x7c)+_0x4210ed[_0x76f5c4(0x98)],_0x4210ed[_0x76f5c4(0x9a)]?_0x76f5c4(0x84)+_0x4210ed[_0x76f5c4(0x9a)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x4210ed)][_0x76f5c4(0x8c)](Boolean)[_0x76f5c4(0x90)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x432f67);}
@@ -1 +1 @@
1
- (function(_0x5d8999,_0x18ac83){const _0x4046d4=a280_0xcba6,_0x53b499=_0x5d8999();while(!![]){try{const _0x38b11f=-parseInt(_0x4046d4(0x1dd))/0x1*(-parseInt(_0x4046d4(0x1e4))/0x2)+parseInt(_0x4046d4(0x1d9))/0x3+parseInt(_0x4046d4(0x1ea))/0x4+parseInt(_0x4046d4(0x1d7))/0x5+-parseInt(_0x4046d4(0x1d6))/0x6+-parseInt(_0x4046d4(0x1df))/0x7*(-parseInt(_0x4046d4(0x1e0))/0x8)+-parseInt(_0x4046d4(0x1da))/0x9*(parseInt(_0x4046d4(0x1dc))/0xa);if(_0x38b11f===_0x18ac83)break;else _0x53b499['push'](_0x53b499['shift']());}catch(_0x79f618){_0x53b499['push'](_0x53b499['shift']());}}}(a280_0x4121,0x82a49));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(_0x3f2604){const _0x542f0e=a280_0xcba6;return typeof _0x3f2604===_0x542f0e(0x1e9)&&_0x3f2604[_0x542f0e(0x1d5)]()['length']>0x0?_0x3f2604[_0x542f0e(0x1d5)]():null;}function normalizeCliVersionPolicy(_0x2379b4){const _0xf2e962=a280_0xcba6;if(!_0x2379b4||typeof _0x2379b4!==_0xf2e962(0x1d8))return null;const _0x19f2fb=_0x2379b4,_0x200088=_0x19f2fb[_0xf2e962(0x1e1)]&&typeof _0x19f2fb['cli']===_0xf2e962(0x1d8)?_0x19f2fb[_0xf2e962(0x1e1)]:_0x19f2fb,_0x6d84c8=pickString(_0x200088['stableVersion'])||pickString(_0x200088[_0xf2e962(0x1db)])||pickString(_0x200088[_0xf2e962(0x1e7)]),_0x31eb34=pickString(_0x200088['minimumVersion'])||pickString(_0x200088[_0xf2e962(0x1e2)]);if(!_0x6d84c8&&!_0x31eb34)return null;return{'stableVersion':_0x6d84c8,'minimumVersion':_0x31eb34,'upgradeMessage':pickString(_0x200088[_0xf2e962(0x1e5)])||undefined,'minimumVersionMessage':pickString(_0x200088['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x12946f=a280_0xcba6,_0x1519dd=new AbortController(),_0x435c48=setTimeout(()=>_0x1519dd[_0x12946f(0x1e8)](),FETCH_TIMEOUT_MS);try{const _0x15dd61=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x12946f(0x1e6)},'signal':_0x1519dd[_0x12946f(0x1e3)]});if(!_0x15dd61['ok'])return null;const _0x3d872d=await _0x15dd61['json']();return _0x3d872d&&typeof _0x3d872d===_0x12946f(0x1d8)?_0x3d872d:null;}catch{return null;}finally{clearTimeout(_0x435c48);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}function a280_0x4121(){const _0x3140d5=['trim','3711744CXDEZi','2733900ehbBvq','object','1433808oXJyOK','144IzEBCe','latestVersion','1340810InwSyY','33CORtie','now','8834Jwftgl','3792llFzKV','cli','minVersion','signal','44598tJdwwP','upgradeMessage','application/json','recommendedVersion','abort','string','3761048UEJGKz'];a280_0x4121=function(){return _0x3140d5;};return a280_0x4121();}function a280_0xcba6(_0x47a9cb,_0x16a9a7){_0x47a9cb=_0x47a9cb-0x1d5;const _0x41210e=a280_0x4121();let _0xcba6f6=_0x41210e[_0x47a9cb];return _0xcba6f6;}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4c4f52=a280_0xcba6,_0x508dee=Date[_0x4c4f52(0x1de)]();if(hasCachedConfig){const _0x42fe8f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x508dee-cacheTime<_0x42fe8f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x508dee,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x3154f6,_0x40b42d){const _0x4a2d73=a280_0xd726,_0x2e1e21=_0x3154f6();while(!![]){try{const _0x2ed95e=-parseInt(_0x4a2d73(0x1a9))/0x1+parseInt(_0x4a2d73(0x19e))/0x2*(-parseInt(_0x4a2d73(0x1a4))/0x3)+-parseInt(_0x4a2d73(0x19b))/0x4+-parseInt(_0x4a2d73(0x19a))/0x5*(-parseInt(_0x4a2d73(0x19f))/0x6)+parseInt(_0x4a2d73(0x1a1))/0x7+-parseInt(_0x4a2d73(0x1a0))/0x8+parseInt(_0x4a2d73(0x1a6))/0x9;if(_0x2ed95e===_0x40b42d)break;else _0x2e1e21['push'](_0x2e1e21['shift']());}catch(_0x564c96){_0x2e1e21['push'](_0x2e1e21['shift']());}}}(a280_0x4bcd,0x5cd94));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a280_0xd726(_0x59121d,_0x2d2fc4){_0x59121d=_0x59121d-0x194;const _0x4bcdec=a280_0x4bcd();let _0xd726b0=_0x4bcdec[_0x59121d];return _0xd726b0;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x56b5c0){const _0x22b2bc=a280_0xd726;return typeof _0x56b5c0===_0x22b2bc(0x1a2)&&_0x56b5c0[_0x22b2bc(0x1a8)]()['length']>0x0?_0x56b5c0[_0x22b2bc(0x1a8)]():null;}function normalizeCliVersionPolicy(_0x26b652){const _0x5e6ee9=a280_0xd726;if(!_0x26b652||typeof _0x26b652!==_0x5e6ee9(0x198))return null;const _0x35c874=_0x26b652,_0x51884c=_0x35c874[_0x5e6ee9(0x199)]&&typeof _0x35c874[_0x5e6ee9(0x199)]===_0x5e6ee9(0x198)?_0x35c874[_0x5e6ee9(0x199)]:_0x35c874,_0x5660b4=pickString(_0x51884c[_0x5e6ee9(0x19d)])||pickString(_0x51884c[_0x5e6ee9(0x1a3)])||pickString(_0x51884c[_0x5e6ee9(0x196)]),_0x4bd2f2=pickString(_0x51884c['minimumVersion'])||pickString(_0x51884c[_0x5e6ee9(0x194)]);if(!_0x5660b4&&!_0x4bd2f2)return null;return{'stableVersion':_0x5660b4,'minimumVersion':_0x4bd2f2,'upgradeMessage':pickString(_0x51884c[_0x5e6ee9(0x1a7)])||undefined,'minimumVersionMessage':pickString(_0x51884c[_0x5e6ee9(0x1a5)])||undefined};}function a280_0x4bcd(){const _0x2763e4=['4135728UxkHpx','4086040wGoigW','string','latestVersion','1035dPsQtj','minimumVersionMessage','14052780VCIOIw','upgradeMessage','trim','656477UVUdHm','signal','minVersion','json','recommendedVersion','abort','object','cli','8535UGUoIk','1940204aeedGo','application/json','stableVersion','3694TacZvs','1866QAIOxM'];a280_0x4bcd=function(){return _0x2763e4;};return a280_0x4bcd();}export async function fetchRabetbaseCdnConfig(){const _0x3aeb0b=a280_0xd726,_0x1826a3=new AbortController(),_0x1840bc=setTimeout(()=>_0x1826a3[_0x3aeb0b(0x197)](),FETCH_TIMEOUT_MS);try{const _0x5c3601=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3aeb0b(0x19c)},'signal':_0x1826a3[_0x3aeb0b(0x1aa)]});if(!_0x5c3601['ok'])return null;const _0x1ca6e0=await _0x5c3601[_0x3aeb0b(0x195)]();return _0x1ca6e0&&typeof _0x1ca6e0==='object'?_0x1ca6e0:null;}catch{return null;}finally{clearTimeout(_0x1840bc);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x55e65b=Date['now']();if(hasCachedConfig){const _0xb58916=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55e65b-cacheTime<_0xb58916)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x55e65b,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a281_0x218697=a281_0x1717;(function(_0x2f6f50,_0x367bf8){const _0x2ea0da=a281_0x1717,_0x6bd93=_0x2f6f50();while(!![]){try{const _0x78b362=-parseInt(_0x2ea0da(0x1d9))/0x1*(parseInt(_0x2ea0da(0x1db))/0x2)+-parseInt(_0x2ea0da(0x1e0))/0x3*(parseInt(_0x2ea0da(0x1dd))/0x4)+parseInt(_0x2ea0da(0x1dc))/0x5+-parseInt(_0x2ea0da(0x1de))/0x6*(parseInt(_0x2ea0da(0x1d4))/0x7)+parseInt(_0x2ea0da(0x1d8))/0x8*(parseInt(_0x2ea0da(0x1d5))/0x9)+-parseInt(_0x2ea0da(0x1d6))/0xa+parseInt(_0x2ea0da(0x1d7))/0xb;if(_0x78b362===_0x367bf8)break;else _0x6bd93['push'](_0x6bd93['shift']());}catch(_0x40833a){_0x6bd93['push'](_0x6bd93['shift']());}}}(a281_0xb594,0xe3861));function a281_0x1717(_0x574993,_0x1aec24){_0x574993=_0x574993-0x1d3;const _0xb59479=a281_0xb594();let _0x171799=_0xb59479[_0x574993];return _0x171799;}function a281_0xb594(){const _0x25c876=['7GeEfSq','22239pdfbmt','3716300anFFBf','26788465JYoZBx','2440RALzAs','26nrKuiD','env','32934ffJdiS','3901740GipaIP','20pJvubj','10030344eAaUNB','string','339531wLJBNX','project'];a281_0xb594=function(){return _0x25c876;};return a281_0xb594();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a281_0x32e2e9,getMultiAppConfigs as a281_0x6c1cea,getTemplateBaseUrl as a281_0x4fc77d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x58537c){const _0x3c78f6=a281_0x1717,_0x550791=readRawConfig(_0x58537c);return _0x550791[_0x3c78f6(0x1da)]&&typeof _0x550791[_0x3c78f6(0x1da)]===_0x3c78f6(0x1df)&&initEnv(_0x550791[_0x3c78f6(0x1da)]),_0x550791;}export function getConfigAppCode(){return a281_0x32e2e9();}export function getMultiAppConfigs(_0x223be6=a281_0x218697(0x1d3)){return a281_0x6c1cea(_0x223be6);}export function getTemplateBaseUrl(){return a281_0x4fc77d();}
1
+ const a281_0x3d2ff1=a281_0x745f;(function(_0x175e79,_0x31f86b){const _0x32a0fb=a281_0x745f,_0x5cf428=_0x175e79();while(!![]){try{const _0x423bf6=parseInt(_0x32a0fb(0x105))/0x1*(-parseInt(_0x32a0fb(0x102))/0x2)+parseInt(_0x32a0fb(0x10a))/0x3*(parseInt(_0x32a0fb(0x104))/0x4)+parseInt(_0x32a0fb(0x103))/0x5+-parseInt(_0x32a0fb(0x106))/0x6+-parseInt(_0x32a0fb(0x10b))/0x7+parseInt(_0x32a0fb(0x101))/0x8+parseInt(_0x32a0fb(0x108))/0x9;if(_0x423bf6===_0x31f86b)break;else _0x5cf428['push'](_0x5cf428['shift']());}catch(_0x290763){_0x5cf428['push'](_0x5cf428['shift']());}}}(a281_0x4011,0xbd4dd));import{initEnv}from'../constant/env.js';function a281_0x745f(_0xdc5891,_0x1314e6){_0xdc5891=_0xdc5891-0x101;const _0x40119f=a281_0x4011();let _0x745f29=_0x40119f[_0xdc5891];return _0x745f29;}import{readRawConfig,getConfigAppCode as a281_0x190955,getMultiAppConfigs as a281_0x193ddf,getTemplateBaseUrl as a281_0x110b24}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x298e34){const _0x503403=a281_0x745f,_0x2a7c49=readRawConfig(_0x298e34);return _0x2a7c49[_0x503403(0x109)]&&typeof _0x2a7c49['env']==='string'&&initEnv(_0x2a7c49[_0x503403(0x109)]),_0x2a7c49;}export function getConfigAppCode(){return a281_0x190955();}export function getMultiAppConfigs(_0x47a111=a281_0x3d2ff1(0x107)){return a281_0x193ddf(_0x47a111);}function a281_0x4011(){const _0x5d4a7b=['3855648QvejZV','project','1249308nXGZsM','env','4624203FLvuQu','5700100SkUrqT','9364264vpPxqy','1986042dcCzYB','1872860TqbMGG','4zmoeyc','1kTzsSj'];a281_0x4011=function(){return _0x5d4a7b;};return a281_0x4011();}export function getTemplateBaseUrl(){return a281_0x110b24();}
@@ -1 +1 @@
1
- function a282_0x14d0(_0x1bb251,_0x39121b){_0x1bb251=_0x1bb251-0x1db;const _0x419fea=a282_0x419f();let _0x14d0f4=_0x419fea[_0x1bb251];return _0x14d0f4;}(function(_0x190030,_0x33e1bb){const _0x5232e8=a282_0x14d0,_0xb4603a=_0x190030();while(!![]){try{const _0x855e2c=-parseInt(_0x5232e8(0x1e7))/0x1+-parseInt(_0x5232e8(0x1e1))/0x2*(-parseInt(_0x5232e8(0x1e5))/0x3)+parseInt(_0x5232e8(0x1e8))/0x4*(-parseInt(_0x5232e8(0x1e4))/0x5)+parseInt(_0x5232e8(0x1e2))/0x6*(-parseInt(_0x5232e8(0x1de))/0x7)+parseInt(_0x5232e8(0x1db))/0x8+parseInt(_0x5232e8(0x1e3))/0x9+-parseInt(_0x5232e8(0x1e0))/0xa;if(_0x855e2c===_0x33e1bb)break;else _0xb4603a['push'](_0xb4603a['shift']());}catch(_0x164a8d){_0xb4603a['push'](_0xb4603a['shift']());}}}(a282_0x419f,0xcc3db));function toFiniteNumber(_0x2339f7){const _0x4f8283=a282_0x14d0;if(typeof _0x2339f7===_0x4f8283(0x1df)&&Number[_0x4f8283(0x1dc)](_0x2339f7))return _0x2339f7;if(typeof _0x2339f7==='string'){const _0x5062e9=_0x2339f7[_0x4f8283(0x1dd)]();if(!_0x5062e9)return undefined;const _0x358042=Number(_0x5062e9);if(Number[_0x4f8283(0x1dc)](_0x358042))return _0x358042;}return undefined;}export function normalizeEntityWithIdResponse(_0x56d015){const _0x5f50a5=a282_0x14d0,_0x41c3c2=toFiniteNumber(_0x56d015);if(_0x41c3c2!==undefined)return{'id':_0x41c3c2,'entity':{'id':_0x41c3c2}};if(!_0x56d015||typeof _0x56d015!==_0x5f50a5(0x1e6))return{'id':undefined,'entity':{}};const _0x269cbf={..._0x56d015},_0x3c4bff=toFiniteNumber(_0x269cbf['id']);return _0x3c4bff!==undefined&&(_0x269cbf['id']=_0x3c4bff),{'id':_0x3c4bff,'entity':_0x269cbf};}function a282_0x419f(){const _0xefaf9e=['135745RiMYEB','18796gdeXEf','6150736eijFci','isFinite','trim','3050516MoVQUw','number','2000410bksLbl','238946fVGrKr','12RAHyjv','9536760phizNr','25QSiCRP','6sSREcK','object'];a282_0x419f=function(){return _0xefaf9e;};return a282_0x419f();}
1
+ function a282_0x25a1(){const _0x3bbde0=['2428724FNaOiH','isFinite','74wzUGjj','10xZHOqt','8yvhrFB','object','4935JqTchy','5206949csmBFX','string','4518765nqgOxx','3119921Lqbdvp','3460566sgYmGB','25042lkAnrr','5RprFuK','number'];a282_0x25a1=function(){return _0x3bbde0;};return a282_0x25a1();}function a282_0x3bdb(_0x3a8a15,_0x17151c){_0x3a8a15=_0x3a8a15-0x16b;const _0x25a145=a282_0x25a1();let _0x3bdb94=_0x25a145[_0x3a8a15];return _0x3bdb94;}(function(_0x30bb4f,_0x370995){const _0x33841a=a282_0x3bdb,_0x929155=_0x30bb4f();while(!![]){try{const _0xf30d2b=parseInt(_0x33841a(0x172))/0x1+parseInt(_0x33841a(0x177))/0x2*(parseInt(_0x33841a(0x16c))/0x3)+-parseInt(_0x33841a(0x175))/0x4*(parseInt(_0x33841a(0x173))/0x5)+-parseInt(_0x33841a(0x171))/0x6+parseInt(_0x33841a(0x170))/0x7*(parseInt(_0x33841a(0x179))/0x8)+-parseInt(_0x33841a(0x16f))/0x9*(-parseInt(_0x33841a(0x178))/0xa)+parseInt(_0x33841a(0x16d))/0xb;if(_0xf30d2b===_0x370995)break;else _0x929155['push'](_0x929155['shift']());}catch(_0x3760a1){_0x929155['push'](_0x929155['shift']());}}}(a282_0x25a1,0x4ee28));function toFiniteNumber(_0x3459ba){const _0x470522=a282_0x3bdb;if(typeof _0x3459ba===_0x470522(0x174)&&Number['isFinite'](_0x3459ba))return _0x3459ba;if(typeof _0x3459ba===_0x470522(0x16e)){const _0x3c60f7=_0x3459ba['trim']();if(!_0x3c60f7)return undefined;const _0x4ae584=Number(_0x3c60f7);if(Number[_0x470522(0x176)](_0x4ae584))return _0x4ae584;}return undefined;}export function normalizeEntityWithIdResponse(_0x4194d1){const _0x3e4cdc=a282_0x3bdb,_0x15b1d2=toFiniteNumber(_0x4194d1);if(_0x15b1d2!==undefined)return{'id':_0x15b1d2,'entity':{'id':_0x15b1d2}};if(!_0x4194d1||typeof _0x4194d1!==_0x3e4cdc(0x16b))return{'id':undefined,'entity':{}};const _0x20a44a={..._0x4194d1},_0x588c30=toFiniteNumber(_0x20a44a['id']);return _0x588c30!==undefined&&(_0x20a44a['id']=_0x588c30),{'id':_0x588c30,'entity':_0x20a44a};}
@@ -1 +1 @@
1
- (function(_0x3ca8f7,_0xbef92e){const _0x2aa0ff=a283_0x38d0,_0x565cfb=_0x3ca8f7();while(!![]){try{const _0x5d7841=-parseInt(_0x2aa0ff(0x70))/0x1+parseInt(_0x2aa0ff(0x76))/0x2*(-parseInt(_0x2aa0ff(0x77))/0x3)+-parseInt(_0x2aa0ff(0x73))/0x4*(parseInt(_0x2aa0ff(0x6f))/0x5)+-parseInt(_0x2aa0ff(0x78))/0x6+parseInt(_0x2aa0ff(0x72))/0x7*(parseInt(_0x2aa0ff(0x71))/0x8)+-parseInt(_0x2aa0ff(0x74))/0x9+-parseInt(_0x2aa0ff(0x75))/0xa*(-parseInt(_0x2aa0ff(0x79))/0xb);if(_0x5d7841===_0xbef92e)break;else _0x565cfb['push'](_0x565cfb['shift']());}catch(_0x5f5793){_0x565cfb['push'](_0x565cfb['shift']());}}}(a283_0x472c,0x771cc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x210c39,_0x2733ed){const _0x2e8fc2=statSync(_0x210c39);if(_0x2e8fc2['isDirectory']()){!existsSync(_0x2733ed)&&mkdirSync(_0x2733ed,{'recursive':!![]});const _0x526984=readdirSync(_0x210c39);for(const _0x29df54 of _0x526984){await copyDir(join(_0x210c39,_0x29df54),join(_0x2733ed,_0x29df54));}}else copyFileSync(_0x210c39,_0x2733ed);}export function ensureDir(_0x326811){!existsSync(_0x326811)&&mkdirSync(_0x326811,{'recursive':!![]});}function a283_0x38d0(_0x2a09e1,_0x3ca817){_0x2a09e1=_0x2a09e1-0x6f;const _0x472c31=a283_0x472c();let _0x38d017=_0x472c31[_0x2a09e1];return _0x38d017;}function a283_0x472c(){const _0x4f865f=['1532580xWNoxl','1393832ytZfaW','5kwClPb','120155SlEMOz','4964648cNaPrN','7dejHQp','2860748ODZnrW','6591645AiqmmF','160oZYfXu','12PZRXEU','168456OxFYCt'];a283_0x472c=function(){return _0x4f865f;};return a283_0x472c();}export function pathExists(_0xa1670a){return existsSync(_0xa1670a);}
1
+ (function(_0x399cf3,_0x40602d){const _0x3764b0=a283_0x1177,_0x13e1a2=_0x399cf3();while(!![]){try{const _0x5b43e1=parseInt(_0x3764b0(0x1b6))/0x1*(-parseInt(_0x3764b0(0x1b2))/0x2)+-parseInt(_0x3764b0(0x1bb))/0x3*(parseInt(_0x3764b0(0x1b9))/0x4)+-parseInt(_0x3764b0(0x1b7))/0x5+parseInt(_0x3764b0(0x1b5))/0x6+parseInt(_0x3764b0(0x1b1))/0x7+parseInt(_0x3764b0(0x1b3))/0x8+parseInt(_0x3764b0(0x1b8))/0x9*(parseInt(_0x3764b0(0x1b4))/0xa);if(_0x5b43e1===_0x40602d)break;else _0x13e1a2['push'](_0x13e1a2['shift']());}catch(_0x739ef5){_0x13e1a2['push'](_0x13e1a2['shift']());}}}(a283_0x33a5,0x96bb1));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a283_0x33a5(){const _0x39fd0d=['5402766cFNPAP','1nqgFpG','5988215vgGEuG','18ZsWxDC','2629332lCnbym','isDirectory','3yoFfHQ','1099819NZhuHK','2056794HLAgrc','642448JTlIpY','11814410KpRabV'];a283_0x33a5=function(){return _0x39fd0d;};return a283_0x33a5();}import{join}from'node:path';export async function copyDir(_0x4d5bf0,_0x539a08){const _0x341e42=a283_0x1177,_0x36c8d2=statSync(_0x4d5bf0);if(_0x36c8d2[_0x341e42(0x1ba)]()){!existsSync(_0x539a08)&&mkdirSync(_0x539a08,{'recursive':!![]});const _0x91ef91=readdirSync(_0x4d5bf0);for(const _0x567f6b of _0x91ef91){await copyDir(join(_0x4d5bf0,_0x567f6b),join(_0x539a08,_0x567f6b));}}else copyFileSync(_0x4d5bf0,_0x539a08);}export function ensureDir(_0x63af49){!existsSync(_0x63af49)&&mkdirSync(_0x63af49,{'recursive':!![]});}function a283_0x1177(_0x1c2f07,_0x46edce){_0x1c2f07=_0x1c2f07-0x1b1;const _0x33a516=a283_0x33a5();let _0x11776b=_0x33a516[_0x1c2f07];return _0x11776b;}export function pathExists(_0x1ef5d5){return existsSync(_0x1ef5d5);}
@@ -1 +1 @@
1
- const a284_0x56f491=a284_0x4b62;(function(_0x463cb5,_0x1e4c68){const _0x954de6=a284_0x4b62,_0x16b877=_0x463cb5();while(!![]){try{const _0xb09ca3=-parseInt(_0x954de6(0x8f))/0x1+parseInt(_0x954de6(0x7b))/0x2+parseInt(_0x954de6(0x7c))/0x3+parseInt(_0x954de6(0x8b))/0x4+parseInt(_0x954de6(0x83))/0x5+-parseInt(_0x954de6(0x8e))/0x6*(-parseInt(_0x954de6(0x7d))/0x7)+-parseInt(_0x954de6(0x72))/0x8*(parseInt(_0x954de6(0x8c))/0x9);if(_0xb09ca3===_0x1e4c68)break;else _0x16b877['push'](_0x16b877['shift']());}catch(_0x149b37){_0x16b877['push'](_0x16b877['shift']());}}}(a284_0x4c4c,0x1b399));import{mkdirSync,writeFileSync}from'node:fs';function a284_0x4c4c(){const _0x17d41e=['150323AqKvWe','CDN\x20data\x20is\x20missing\x20skillTemplate','2296lHUALJ','CDN\x20request\x20failed:\x20','.lovrabet/skill/guides','statusText','lastUpdated','keys','replace','utf-8','title','96420RxDcIl','543723cKOfxc','1361395ndnIIP','.md','entries','\x0a\x0a>更新时间:','guides','json','813280JSpqPK','trimEnd','extendContent','path','status','push','content','application/json','800668YEHBNj','16461ONZwEC','skillTemplate','6qwHyLg'];a284_0x4c4c=function(){return _0x17d41e;};return a284_0x4c4c();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4bec3e=getTemplateBaseUrl();return _0x4bec3e+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x42d248=a284_0x4b62,_0x308416=getGuidesCdnUrl(),_0x34231d=await fetch(_0x308416,{'headers':{'Accept':_0x42d248(0x8a)}});if(!_0x34231d['ok'])throw new Error(_0x42d248(0x73)+_0x34231d[_0x42d248(0x87)]+'\x20'+_0x34231d[_0x42d248(0x75)]);const _0x5b1c2a=await _0x34231d[_0x42d248(0x82)]();if(!_0x5b1c2a[_0x42d248(0x81)]||typeof _0x5b1c2a[_0x42d248(0x81)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x5b1c2a;}export function writeGuidesToProject(_0xc10243,_0x1f776c,_0x220357=a284_0x56f491(0x74),_0x20f4e5){const _0x2a8ed0=a284_0x56f491,_0x3946ec=join(_0x1f776c,_0x220357);mkdirSync(_0x3946ec,{'recursive':!![]});for(const [_0x4abcc2,_0x34f33f]of Object[_0x2a8ed0(0x7f)](_0xc10243[_0x2a8ed0(0x81)])){let _0x5157b3=_0x34f33f[_0x2a8ed0(0x89)];_0x34f33f[_0x2a8ed0(0x76)]&&(_0x5157b3=appendUpdateTime(_0x5157b3,_0x34f33f[_0x2a8ed0(0x76)])),writeFileSync(join(_0x3946ec,_0x4abcc2+_0x2a8ed0(0x7e)),_0x5157b3,_0x2a8ed0(0x79));}}export function appendUpdateTime(_0xfa13cb,_0x17f5be){const _0x5d00ff=a284_0x56f491;return _0xfa13cb=_0xfa13cb['replace'](/\n*>更新时间:.*$/m,''),_0xfa13cb[_0x5d00ff(0x84)]()+(_0x5d00ff(0x80)+_0x17f5be);}export function getSkillTemplate(_0x11cbc6){const _0x176bea=a284_0x56f491;return _0x11cbc6[_0x176bea(0x8d)]?.['content']||'';}export function appendExtendContents(_0x11e328,_0x53d538,_0xfd56e1){const _0x56ab37=a284_0x56f491,_0x2f6838=[];for(const [,_0x37fea1]of Object[_0x56ab37(0x7f)](_0x53d538[_0x56ab37(0x81)])){_0x37fea1[_0x56ab37(0x85)]&&_0x2f6838[_0x56ab37(0x88)](_0x37fea1[_0x56ab37(0x85)][_0x56ab37(0x84)]());}if(_0x2f6838['length']===0x0)return _0x11e328;return _0x11e328[_0x56ab37(0x84)]()+'\x0a\x0a'+_0x2f6838['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37ec51,_0x42f410,_0x10f8e6){const _0x1eb36e=a284_0x56f491,_0x11861b=getSkillTemplate(_0x37ec51);if(!_0x11861b)throw new Error(_0x1eb36e(0x71));const _0xe30b3a=dirname(_0x42f410);mkdirSync(_0xe30b3a,{'recursive':!![]});let _0x2e90c3=_0x11861b[_0x1eb36e(0x78)](/\{\{IDE_NAME\}\}/g,_0x10f8e6);_0x2e90c3=appendExtendContents(_0x2e90c3,_0x37ec51),_0x37ec51[_0x1eb36e(0x8d)][_0x1eb36e(0x76)]&&(_0x2e90c3=appendUpdateTime(_0x2e90c3,_0x37ec51[_0x1eb36e(0x8d)]['lastUpdated'])),writeFileSync(_0x42f410,_0x2e90c3,_0x1eb36e(0x79));}export async function installGuides(_0x40a4aa){const _0x4ed23f=a284_0x56f491,_0x10a66a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x10a66a,_0x40a4aa),Object[_0x4ed23f(0x77)](_0x10a66a['guides'])['length'];}function a284_0x4b62(_0x505f43,_0x44fc60){_0x505f43=_0x505f43-0x71;const _0x4c4cbe=a284_0x4c4c();let _0x4b6243=_0x4c4cbe[_0x505f43];return _0x4b6243;}export function getGuidesSummary(_0x36cdab){const _0x1655e4=a284_0x56f491;return Object['entries'](_0x36cdab[_0x1655e4(0x81)])['map'](([_0x5993de,_0x1ea49d])=>({'key':_0x5993de,'title':_0x1ea49d[_0x1655e4(0x7a)],'path':_0x1ea49d[_0x1655e4(0x86)]}));}
1
+ const a284_0x39a26f=a284_0x4065;(function(_0x2e5c03,_0xcfea9f){const _0x4e857c=a284_0x4065,_0xc606f9=_0x2e5c03();while(!![]){try{const _0x501f49=parseInt(_0x4e857c(0x74))/0x1+-parseInt(_0x4e857c(0x85))/0x2*(parseInt(_0x4e857c(0x8a))/0x3)+-parseInt(_0x4e857c(0x86))/0x4+parseInt(_0x4e857c(0x7a))/0x5+parseInt(_0x4e857c(0x7e))/0x6*(-parseInt(_0x4e857c(0x83))/0x7)+parseInt(_0x4e857c(0x7d))/0x8*(parseInt(_0x4e857c(0x89))/0x9)+parseInt(_0x4e857c(0x7f))/0xa;if(_0x501f49===_0xcfea9f)break;else _0xc606f9['push'](_0xc606f9['shift']());}catch(_0x1ea696){_0xc606f9['push'](_0xc606f9['shift']());}}}(a284_0x37ec,0x588fe));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a284_0x4065(_0x4721be,_0x30031a){_0x4721be=_0x4721be-0x70;const _0x37ec68=a284_0x37ec();let _0x406504=_0x37ec68[_0x4721be];return _0x406504;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x53d696=a284_0x4065,_0x285bd1=getTemplateBaseUrl();return _0x285bd1+_0x53d696(0x71);}const CACHE_DIR=join(homedir(),a284_0x39a26f(0x75),'cache');export async function fetchGuidesFromCDN(){const _0x381c2a=a284_0x39a26f,_0x2b4c7b=getGuidesCdnUrl(),_0x16f0ee=await fetch(_0x2b4c7b,{'headers':{'Accept':_0x381c2a(0x79)}});if(!_0x16f0ee['ok'])throw new Error(_0x381c2a(0x8d)+_0x16f0ee['status']+'\x20'+_0x16f0ee['statusText']);const _0x341737=await _0x16f0ee['json']();if(!_0x341737[_0x381c2a(0x8b)]||typeof _0x341737[_0x381c2a(0x8b)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x341737;}export function writeGuidesToProject(_0x23c950,_0x3ef617,_0x493b5c=a284_0x39a26f(0x81),_0x26eac7){const _0x1818ba=a284_0x39a26f,_0x1584fc=join(_0x3ef617,_0x493b5c);mkdirSync(_0x1584fc,{'recursive':!![]});for(const [_0x5b44ee,_0x418077]of Object[_0x1818ba(0x72)](_0x23c950['guides'])){let _0x4c70e1=_0x418077[_0x1818ba(0x70)];_0x418077[_0x1818ba(0x87)]&&(_0x4c70e1=appendUpdateTime(_0x4c70e1,_0x418077[_0x1818ba(0x87)])),writeFileSync(join(_0x1584fc,_0x5b44ee+_0x1818ba(0x8e)),_0x4c70e1,'utf-8');}}export function appendUpdateTime(_0x2ace81,_0x1ca43e){const _0x28f8dc=a284_0x39a26f;return _0x2ace81=_0x2ace81[_0x28f8dc(0x76)](/\n*>更新时间:.*$/m,''),_0x2ace81[_0x28f8dc(0x7c)]()+('\x0a\x0a>更新时间:'+_0x1ca43e);}function a284_0x37ec(){const _0x21cccb=['6DzEzbt','11881700gFvqud','title','.lovrabet/skill/guides','path','2883391MxChzg','length','687262kgRfqX','689224uxLbLh','lastUpdated','utf-8','621qPToOL','6DhfOSW','guides','skillTemplate','CDN\x20request\x20failed:\x20','.md','content','/skills/guides.json','entries','CDN\x20data\x20is\x20missing\x20skillTemplate','107950xbqvOe','.lovrabet','replace','push','join','application/json','1641910mscrcW','map','trimEnd','1128QuQGmj'];a284_0x37ec=function(){return _0x21cccb;};return a284_0x37ec();}export function getSkillTemplate(_0x4c749f){const _0x1902fc=a284_0x39a26f;return _0x4c749f[_0x1902fc(0x8c)]?.[_0x1902fc(0x70)]||'';}export function appendExtendContents(_0x102c74,_0x430df0,_0x3373db){const _0x31efd4=a284_0x39a26f,_0x1f3cce=[];for(const [,_0x2873a3]of Object['entries'](_0x430df0[_0x31efd4(0x8b)])){_0x2873a3['extendContent']&&_0x1f3cce[_0x31efd4(0x77)](_0x2873a3['extendContent'][_0x31efd4(0x7c)]());}if(_0x1f3cce[_0x31efd4(0x84)]===0x0)return _0x102c74;return _0x102c74[_0x31efd4(0x7c)]()+'\x0a\x0a'+_0x1f3cce[_0x31efd4(0x78)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x48c851,_0x3b39e0,_0xd97ef3){const _0x45968c=a284_0x39a26f,_0x1707cc=getSkillTemplate(_0x48c851);if(!_0x1707cc)throw new Error(_0x45968c(0x73));const _0x198f5d=dirname(_0x3b39e0);mkdirSync(_0x198f5d,{'recursive':!![]});let _0x577067=_0x1707cc[_0x45968c(0x76)](/\{\{IDE_NAME\}\}/g,_0xd97ef3);_0x577067=appendExtendContents(_0x577067,_0x48c851),_0x48c851['skillTemplate'][_0x45968c(0x87)]&&(_0x577067=appendUpdateTime(_0x577067,_0x48c851['skillTemplate'][_0x45968c(0x87)])),writeFileSync(_0x3b39e0,_0x577067,_0x45968c(0x88));}export async function installGuides(_0x5d66f3){const _0x54c360=a284_0x39a26f,_0x1c7a35=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1c7a35,_0x5d66f3),Object['keys'](_0x1c7a35[_0x54c360(0x8b)])['length'];}export function getGuidesSummary(_0x311908){const _0x1264f5=a284_0x39a26f;return Object[_0x1264f5(0x72)](_0x311908[_0x1264f5(0x8b)])[_0x1264f5(0x7b)](([_0x132e9e,_0xb45959])=>({'key':_0x132e9e,'title':_0xb45959[_0x1264f5(0x80)],'path':_0xb45959[_0x1264f5(0x82)]}));}
@@ -1 +1 @@
1
- function a285_0x5600(){const _0x1a96a3=['\x20in\x20','ECONNRESET','2346768NmfVRZ','8NCXarV','539969BAvTNc','content-type','1964048TXuOtM','name','status','Request\x20failed','headers','text','ms...','includes','message','*\x20Request\x20failed;\x20retry\x20','18726310aWPIhQ','9MFTwRm','2801988luJgHt','187YVqjDR','url','770577SJZDpv','838045dFQxav','fetch','AbortError','7jtDZsH','24hcwffS'];a285_0x5600=function(){return _0x1a96a3;};return a285_0x5600();}function a285_0x2790(_0x15d58d,_0x226c6a){_0x15d58d=_0x15d58d-0x179;const _0x5600ce=a285_0x5600();let _0x2790aa=_0x5600ce[_0x15d58d];return _0x2790aa;}(function(_0x4a11b0,_0x428c85){const _0x225cca=a285_0x2790,_0x295ed4=_0x4a11b0();while(!![]){try{const _0x5dc344=-parseInt(_0x225cca(0x17a))/0x1+-parseInt(_0x225cca(0x188))/0x2+parseInt(_0x225cca(0x18b))/0x3*(parseInt(_0x225cca(0x179))/0x4)+-parseInt(_0x225cca(0x18c))/0x5*(-parseInt(_0x225cca(0x190))/0x6)+-parseInt(_0x225cca(0x18f))/0x7*(-parseInt(_0x225cca(0x17c))/0x8)+parseInt(_0x225cca(0x187))/0x9*(-parseInt(_0x225cca(0x186))/0xa)+-parseInt(_0x225cca(0x189))/0xb*(-parseInt(_0x225cca(0x193))/0xc);if(_0x5dc344===_0x428c85)break;else _0x295ed4['push'](_0x295ed4['shift']());}catch(_0xa6ec3d){_0x295ed4['push'](_0x295ed4['shift']());}}}(a285_0x5600,0xe5a6e));export async function httpRequest(_0x57c0d6,_0x4619e8={}){const _0x488223=a285_0x2790,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4619e8;let _0x3a8aa6=null;for(let _0x173fd6=0x0;_0x173fd6<=retries;_0x173fd6++){try{const _0x4471f6=new AbortController(),_0xefdade=setTimeout(()=>_0x4471f6['abort'](),timeout),_0x1b8e57=await fetch(_0x57c0d6,{'headers':headers,'signal':_0x4471f6['signal']});clearTimeout(_0xefdade);let _0x443077;const _0x1f1ab3=_0x1b8e57[_0x488223(0x180)]['get'](_0x488223(0x17b));return _0x1f1ab3?.[_0x488223(0x183)]('application/json')?_0x443077=await _0x1b8e57['json']():_0x443077=await _0x1b8e57[_0x488223(0x181)](),{'ok':_0x1b8e57['ok'],'status':_0x1b8e57[_0x488223(0x17e)],'statusText':_0x1b8e57['statusText'],'data':_0x443077,'headers':_0x1b8e57[_0x488223(0x180)],'url':_0x1b8e57[_0x488223(0x18a)],'text':()=>_0x1b8e57['text']()};}catch(_0x4843c3){_0x3a8aa6=_0x4843c3 instanceof Error?_0x4843c3:new Error(String(_0x4843c3));if(_0x173fd6===retries)break;if(shouldRetry(_0x4843c3)){console['log'](_0x488223(0x185)+(_0x173fd6+0x1)+_0x488223(0x191)+retryDelay+_0x488223(0x182)),await sleep(retryDelay);continue;}else break;}}throw _0x3a8aa6||new Error(_0x488223(0x17f));}function shouldRetry(_0x28c667){const _0x1d3853=a285_0x2790;if(_0x28c667 instanceof Error){if(_0x28c667['name']===_0x1d3853(0x18e))return![];if(_0x28c667[_0x1d3853(0x17d)]==='TypeError'&&_0x28c667[_0x1d3853(0x184)][_0x1d3853(0x183)](_0x1d3853(0x18d)))return!![];if(_0x28c667['message'][_0x1d3853(0x183)](_0x1d3853(0x192)))return!![];if(_0x28c667['message']['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x4419ed){return new Promise(_0x3da224=>setTimeout(_0x3da224,_0x4419ed));}export function validateUrl(_0x2f383e){try{return new URL(_0x2f383e),!![];}catch{return![];}}
1
+ (function(_0xd82da8,_0x50e68d){const _0x55f866=a285_0x2b2d,_0x50a435=_0xd82da8();while(!![]){try{const _0x511161=-parseInt(_0x55f866(0x132))/0x1+parseInt(_0x55f866(0x134))/0x2+parseInt(_0x55f866(0x143))/0x3+-parseInt(_0x55f866(0x141))/0x4*(parseInt(_0x55f866(0x13f))/0x5)+-parseInt(_0x55f866(0x137))/0x6*(-parseInt(_0x55f866(0x127))/0x7)+-parseInt(_0x55f866(0x12e))/0x8*(-parseInt(_0x55f866(0x12c))/0x9)+parseInt(_0x55f866(0x136))/0xa*(parseInt(_0x55f866(0x128))/0xb);if(_0x511161===_0x50e68d)break;else _0x50a435['push'](_0x50a435['shift']());}catch(_0x29d0a8){_0x50a435['push'](_0x50a435['shift']());}}}(a285_0x55a0,0x2a6b4));function a285_0x55a0(){const _0x54c74a=['Request\x20failed','ENOTFOUND','*\x20Request\x20failed;\x20retry\x20','279ZKZByb','url','2440EPoxSl','AbortError','ECONNRESET','log','307082PJTKrX','ms...','79878lzxgSU','message','183630bnkSph','316542PWtgSr','content-type','json','text','abort','headers','includes','name','140lkDHBk','\x20in\x20','32092ihoFTR','statusText','990630TVlohD','14FasFRV','132jfxApv'];a285_0x55a0=function(){return _0x54c74a;};return a285_0x55a0();}export async function httpRequest(_0x238000,_0x3eeb59={}){const _0x36c344=a285_0x2b2d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3eeb59;let _0x43e69e=null;for(let _0x1d43d1=0x0;_0x1d43d1<=retries;_0x1d43d1++){try{const _0xf9155f=new AbortController(),_0x475618=setTimeout(()=>_0xf9155f[_0x36c344(0x13b)](),timeout),_0x5dabef=await fetch(_0x238000,{'headers':headers,'signal':_0xf9155f['signal']});clearTimeout(_0x475618);let _0x3a1c27;const _0x3df9bd=_0x5dabef[_0x36c344(0x13c)]['get'](_0x36c344(0x138));return _0x3df9bd?.[_0x36c344(0x13d)]('application/json')?_0x3a1c27=await _0x5dabef[_0x36c344(0x139)]():_0x3a1c27=await _0x5dabef['text'](),{'ok':_0x5dabef['ok'],'status':_0x5dabef['status'],'statusText':_0x5dabef[_0x36c344(0x142)],'data':_0x3a1c27,'headers':_0x5dabef[_0x36c344(0x13c)],'url':_0x5dabef[_0x36c344(0x12d)],'text':()=>_0x5dabef[_0x36c344(0x13a)]()};}catch(_0x478286){_0x43e69e=_0x478286 instanceof Error?_0x478286:new Error(String(_0x478286));if(_0x1d43d1===retries)break;if(shouldRetry(_0x478286)){console[_0x36c344(0x131)](_0x36c344(0x12b)+(_0x1d43d1+0x1)+_0x36c344(0x140)+retryDelay+_0x36c344(0x133)),await sleep(retryDelay);continue;}else break;}}throw _0x43e69e||new Error(_0x36c344(0x129));}function a285_0x2b2d(_0x13e575,_0xa8a516){_0x13e575=_0x13e575-0x127;const _0x55a073=a285_0x55a0();let _0x2b2d7d=_0x55a073[_0x13e575];return _0x2b2d7d;}function shouldRetry(_0x5dd6b4){const _0x176fab=a285_0x2b2d;if(_0x5dd6b4 instanceof Error){if(_0x5dd6b4['name']===_0x176fab(0x12f))return![];if(_0x5dd6b4[_0x176fab(0x13e)]==='TypeError'&&_0x5dd6b4[_0x176fab(0x135)][_0x176fab(0x13d)]('fetch'))return!![];if(_0x5dd6b4['message'][_0x176fab(0x13d)](_0x176fab(0x130)))return!![];if(_0x5dd6b4[_0x176fab(0x135)][_0x176fab(0x13d)](_0x176fab(0x12a)))return![];}return![];}function sleep(_0x3677c2){return new Promise(_0x30706d=>setTimeout(_0x30706d,_0x3677c2));}export function validateUrl(_0x2317dd){try{return new URL(_0x2317dd),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a286_0x1a0c(){const _0x13c921=['247526gsSgGQ','189360PwGuXA','16010346SuHHqA','63qpFCtn','setRawMode','662523LynAgq','stdin','stdout','2628873tFFJvg','3650340eTOFJw','isTTY','1PKtJTD','4036160YnLULB','true','10daMiMN','4SafssA','nonInteractive'];a286_0x1a0c=function(){return _0x13c921;};return a286_0x1a0c();}(function(_0x465eaf,_0x2e02f6){const _0x413fda=a286_0xcea3,_0x4335b1=_0x465eaf();while(!![]){try{const _0x456818=parseInt(_0x413fda(0x1b4))/0x1*(parseInt(_0x413fda(0x1a9))/0x2)+parseInt(_0x413fda(0x1ae))/0x3*(parseInt(_0x413fda(0x1a7))/0x4)+-parseInt(_0x413fda(0x1a6))/0x5*(parseInt(_0x413fda(0x1b2))/0x6)+-parseInt(_0x413fda(0x1ac))/0x7*(-parseInt(_0x413fda(0x1aa))/0x8)+-parseInt(_0x413fda(0x1b1))/0x9+parseInt(_0x413fda(0x1b5))/0xa+parseInt(_0x413fda(0x1ab))/0xb;if(_0x456818===_0x2e02f6)break;else _0x4335b1['push'](_0x4335b1['shift']());}catch(_0x10ca79){_0x4335b1['push'](_0x4335b1['shift']());}}}(a286_0x1a0c,0xdda53));function env(_0x9c505c){return process.env[`RABETBASE_${_0x9c505c}`]||process.env[`LOVRABET_${_0x9c505c}`]||undefined;}export function isNonInteractive(_0x51fd12){const _0x3ce96a=a286_0xcea3;return!!(_0x51fd12[_0x3ce96a(0x1a8)]||_0x51fd12['ci']||env('CI')===_0x3ce96a(0x1a5)||process.env.CI===_0x3ce96a(0x1a5)||!process[_0x3ce96a(0x1b0)]['isTTY']||!isStdinRawModeSupported());}function a286_0xcea3(_0x2805bf,_0x2f109e){_0x2805bf=_0x2805bf-0x1a5;const _0x1a0ce7=a286_0x1a0c();let _0xcea35d=_0x1a0ce7[_0x2805bf];return _0xcea35d;}function isStdinRawModeSupported(){const _0x3d3efe=a286_0xcea3;if(!process[_0x3d3efe(0x1af)][_0x3d3efe(0x1b3)])return![];try{const _0x5cc414=process[_0x3d3efe(0x1af)]['isRaw'];return process[_0x3d3efe(0x1af)][_0x3d3efe(0x1ad)](!![]),process[_0x3d3efe(0x1af)]['setRawMode'](_0x5cc414??![]),!![];}catch{return![];}}
1
+ (function(_0xd46b0e,_0x1caeb0){const _0x1c7a30=a286_0xd3f6,_0x499ff1=_0xd46b0e();while(!![]){try{const _0x5a730b=-parseInt(_0x1c7a30(0x1e0))/0x1*(parseInt(_0x1c7a30(0x1e1))/0x2)+parseInt(_0x1c7a30(0x1d7))/0x3*(-parseInt(_0x1c7a30(0x1da))/0x4)+-parseInt(_0x1c7a30(0x1d5))/0x5*(-parseInt(_0x1c7a30(0x1d6))/0x6)+parseInt(_0x1c7a30(0x1d2))/0x7*(parseInt(_0x1c7a30(0x1d4))/0x8)+parseInt(_0x1c7a30(0x1d8))/0x9+parseInt(_0x1c7a30(0x1dc))/0xa*(-parseInt(_0x1c7a30(0x1d1))/0xb)+-parseInt(_0x1c7a30(0x1df))/0xc*(-parseInt(_0x1c7a30(0x1db))/0xd);if(_0x5a730b===_0x1caeb0)break;else _0x499ff1['push'](_0x499ff1['shift']());}catch(_0x2e4743){_0x499ff1['push'](_0x499ff1['shift']());}}}(a286_0x7278,0xb995c));function a286_0xd3f6(_0x8d7108,_0x1400c1){_0x8d7108=_0x8d7108-0x1cf;const _0x7278be=a286_0x7278();let _0xd3f610=_0x7278be[_0x8d7108];return _0xd3f610;}function env(_0x22cab9){return process.env[`RABETBASE_${_0x22cab9}`]||process.env[`LOVRABET_${_0x22cab9}`]||undefined;}export function isNonInteractive(_0x591286){const _0x3a0816=a286_0xd3f6;return!!(_0x591286[_0x3a0816(0x1d0)]||_0x591286['ci']||env('CI')==='true'||process.env.CI===_0x3a0816(0x1e2)||!process[_0x3a0816(0x1de)][_0x3a0816(0x1dd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x31d772=a286_0xd3f6;if(!process[_0x31d772(0x1cf)][_0x31d772(0x1dd)])return![];try{const _0x26d7be=process[_0x31d772(0x1cf)][_0x31d772(0x1d3)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x31d772(0x1d9)](_0x26d7be??![]),!![];}catch{return![];}}function a286_0x7278(){const _0x7d2002=['nonInteractive','1991hXbtRp','10418786grEWZr','isRaw','8TyiZeW','108690JevwrE','168HgZWwN','1501278NWGjQD','10772298DYybdb','setRawMode','8dWUhUZ','806QYrJKR','49030CcGLRs','isTTY','stdout','21648aPvRHO','1eszLRR','1514762QVCbeO','true','stdin'];a286_0x7278=function(){return _0x7d2002;};return a286_0x7278();}
@@ -1 +1 @@
1
- const a287_0x47ff8a=a287_0x5d40;function a287_0x5d40(_0x9a6fbc,_0x3a4746){_0x9a6fbc=_0x9a6fbc-0x174;const _0x20c322=a287_0x20c3();let _0x5d40d0=_0x20c322[_0x9a6fbc];return _0x5d40d0;}(function(_0x3529f4,_0xb71b3b){const _0x170fe4=a287_0x5d40,_0x43120b=_0x3529f4();while(!![]){try{const _0x53f470=-parseInt(_0x170fe4(0x1a4))/0x1*(-parseInt(_0x170fe4(0x19a))/0x2)+-parseInt(_0x170fe4(0x195))/0x3+parseInt(_0x170fe4(0x188))/0x4*(parseInt(_0x170fe4(0x1a0))/0x5)+-parseInt(_0x170fe4(0x199))/0x6+parseInt(_0x170fe4(0x19b))/0x7*(-parseInt(_0x170fe4(0x17e))/0x8)+parseInt(_0x170fe4(0x1aa))/0x9+parseInt(_0x170fe4(0x18f))/0xa*(parseInt(_0x170fe4(0x197))/0xb);if(_0x53f470===_0xb71b3b)break;else _0x43120b['push'](_0x43120b['shift']());}catch(_0x2756dc){_0x43120b['push'](_0x43120b['shift']());}}}(a287_0x20c3,0xecf42));function a287_0x20c3(){const _0x1ebcdc=['264088fLOvvW','unknown','mkdirSync','dirname','level','format','winstonLogger','clear','join','warn','372ZmdtpP','clearLogs','parse','currentRawCommand','map','getWinstonInstance','error','11444830BZTbNr','setRawCommand','split','toISOString','green','details','5378610znZqBI','utf8','33yMOUVf','addColors','7356150TFjLce','64012BvZSVq','371JrKeKb','.lovrabet.log','Starting:\x20','logFilePath','blue','59315xuBjdg','filter','errors','now','22TSSEVP','success','info','Completed:\x20','initWinstonLogger','writeFileSync','4483800tHsElS','File','timestamp','Failed:\x20','printf','existsSync','Failed\x20to\x20clear\x20logs:','duration','stringify','message','Failed\x20to\x20read\x20logs:','transports','logTask'];a287_0x20c3=function(){return _0x1ebcdc;};return a287_0x20c3();}import a287_0x1141c1 from'winston';import a287_0x3def66 from'node:fs';import a287_0x442883 from'node:path';class Logger{[a287_0x47ff8a(0x184)];[a287_0x47ff8a(0x19e)];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a287_0x47ff8a(0x190)](_0x36b9dd){const _0x1183c0=a287_0x47ff8a;this[_0x1183c0(0x18b)]=_0x36b9dd;}[a287_0x47ff8a(0x1a8)](){const _0x4f67ed=a287_0x47ff8a,_0x16dd41=a287_0x442883[_0x4f67ed(0x181)](this[_0x4f67ed(0x19e)]);!a287_0x3def66['existsSync'](_0x16dd41)&&a287_0x3def66[_0x4f67ed(0x180)](_0x16dd41,{'recursive':!![]});const _0x4a6348=a287_0x1141c1[_0x4f67ed(0x183)]['combine'](a287_0x1141c1[_0x4f67ed(0x183)][_0x4f67ed(0x1ac)](),a287_0x1141c1[_0x4f67ed(0x183)][_0x4f67ed(0x1a2)]({'stack':!![]}),a287_0x1141c1[_0x4f67ed(0x183)][_0x4f67ed(0x175)](_0x13a0e4=>{const _0x487fa6=_0x4f67ed,_0x4d336f={'timestamp':_0x13a0e4[_0x487fa6(0x1ac)]||new Date()[_0x487fa6(0x192)](),'level':_0x13a0e4[_0x487fa6(0x182)]||'info','command':_0x13a0e4['command']||_0x487fa6(0x17f),'rawCommand':_0x13a0e4['rawCommand']||this[_0x487fa6(0x18b)]||undefined,'message':_0x13a0e4['message']||'','duration':_0x13a0e4[_0x487fa6(0x178)]||undefined,'details':_0x13a0e4[_0x487fa6(0x194)]||undefined};return JSON[_0x487fa6(0x179)](_0x4d336f);}));this[_0x4f67ed(0x184)]=a287_0x1141c1['createLogger']({'level':_0x4f67ed(0x1a6),'format':_0x4a6348,'transports':[new a287_0x1141c1[(_0x4f67ed(0x17c))][(_0x4f67ed(0x1ab))]({'filename':this[_0x4f67ed(0x19e)],'level':_0x4f67ed(0x1a6)})],'silent':![]}),a287_0x1141c1[_0x4f67ed(0x198)]({'success':_0x4f67ed(0x193),'error':'red','warn':'yellow','info':_0x4f67ed(0x19f)});}['setLogPath'](_0x3dd9d6){const _0x11deda=a287_0x47ff8a;this[_0x11deda(0x19e)]=a287_0x442883[_0x11deda(0x186)](_0x3dd9d6,_0x11deda(0x19c)),this[_0x11deda(0x184)]&&this[_0x11deda(0x184)][_0x11deda(0x185)](),this[_0x11deda(0x1a8)]();}[a287_0x47ff8a(0x1a6)](_0x2c8230,_0x24fd45,_0xf367c){const _0x5a92cc=a287_0x47ff8a;if(!this['logFilePath']||!this[_0x5a92cc(0x184)])return;this['winstonLogger']['info'](_0x24fd45,{'command':_0x2c8230,'details':_0xf367c});}[a287_0x47ff8a(0x1a5)](_0x54e159,_0x338506,_0x5d7ffa,_0x33a389){const _0x265f1e=a287_0x47ff8a;if(!this[_0x265f1e(0x19e)]||!this[_0x265f1e(0x184)])return;this[_0x265f1e(0x184)]['log']('info',_0x338506,{'level':_0x265f1e(0x1a5),'command':_0x54e159,'duration':_0x5d7ffa,'details':_0x33a389});}[a287_0x47ff8a(0x18e)](_0x4073af,_0x122a3d,_0x2a1796){const _0x261ad2=a287_0x47ff8a;if(!this[_0x261ad2(0x19e)]||!this['winstonLogger'])return;this[_0x261ad2(0x184)]['error'](_0x122a3d,{'command':_0x4073af,'details':_0x2a1796});}[a287_0x47ff8a(0x187)](_0x282be6,_0xcdd760,_0x39d069){const _0x571234=a287_0x47ff8a;if(!this[_0x571234(0x19e)]||!this[_0x571234(0x184)])return;this[_0x571234(0x184)][_0x571234(0x187)](_0xcdd760,{'command':_0x282be6,'details':_0x39d069});}async[a287_0x47ff8a(0x17d)](_0xbc1060,_0x320b58,_0x16a30f){const _0x43baf9=a287_0x47ff8a,_0x90ea=Date['now']();this[_0x43baf9(0x1a6)](_0xbc1060,_0x43baf9(0x19d)+_0x320b58);try{const _0x3514f4=await _0x16a30f(),_0x5100ae=Date[_0x43baf9(0x1a3)]()-_0x90ea;return this['success'](_0xbc1060,_0x43baf9(0x1a7)+_0x320b58,_0x5100ae),_0x3514f4;}catch(_0x206ce0){const _0x12ff62=Date[_0x43baf9(0x1a3)]()-_0x90ea;this[_0x43baf9(0x18e)](_0xbc1060,_0x43baf9(0x174)+_0x320b58,{'error':_0x206ce0 instanceof Error?_0x206ce0[_0x43baf9(0x17a)]:String(_0x206ce0),'duration':_0x12ff62});throw _0x206ce0;}}['readLogs'](){const _0x4fbc07=a287_0x47ff8a;try{if(!a287_0x3def66[_0x4fbc07(0x176)](this[_0x4fbc07(0x19e)]))return[];const _0x507448=a287_0x3def66['readFileSync'](this[_0x4fbc07(0x19e)],_0x4fbc07(0x196));return _0x507448[_0x4fbc07(0x191)]('\x0a')[_0x4fbc07(0x1a1)](_0x4435c4=>_0x4435c4['trim']())[_0x4fbc07(0x18c)](_0x279094=>JSON[_0x4fbc07(0x18a)](_0x279094));}catch(_0x5c386c){return console[_0x4fbc07(0x187)](_0x4fbc07(0x17b),_0x5c386c),[];}}[a287_0x47ff8a(0x189)](){const _0x2fb419=a287_0x47ff8a;try{a287_0x3def66['existsSync'](this[_0x2fb419(0x19e)])&&a287_0x3def66[_0x2fb419(0x1a9)](this['logFilePath'],'','utf8');}catch(_0x375a1c){console['warn'](_0x2fb419(0x177),_0x375a1c);}}[a287_0x47ff8a(0x18d)](){const _0x47e222=a287_0x47ff8a;return this[_0x47e222(0x184)];}}export const logger=new Logger();
1
+ const a287_0x108a77=a287_0x2fed;(function(_0x552d43,_0x2263fb){const _0x55a9df=a287_0x2fed,_0x4d2faf=_0x552d43();while(!![]){try{const _0x323aa5=-parseInt(_0x55a9df(0xa0))/0x1+parseInt(_0x55a9df(0x81))/0x2*(parseInt(_0x55a9df(0x9b))/0x3)+parseInt(_0x55a9df(0xa1))/0x4+-parseInt(_0x55a9df(0xb2))/0x5*(-parseInt(_0x55a9df(0x84))/0x6)+-parseInt(_0x55a9df(0xa5))/0x7*(parseInt(_0x55a9df(0xb6))/0x8)+parseInt(_0x55a9df(0x7e))/0x9+-parseInt(_0x55a9df(0x9f))/0xa;if(_0x323aa5===_0x2263fb)break;else _0x4d2faf['push'](_0x4d2faf['shift']());}catch(_0x113564){_0x4d2faf['push'](_0x4d2faf['shift']());}}}(a287_0x19ee,0xe4139));function a287_0x2fed(_0x19f84f,_0x187490){_0x19f84f=_0x19f84f-0x7c;const _0x19ee51=a287_0x19ee();let _0x2fed6c=_0x19ee51[_0x19f84f];return _0x2fed6c;}import a287_0x5d17a2 from'winston';import a287_0x4cb6bf from'node:fs';function a287_0x19ee(){const _0x640c90=['printf','63GwBFXQ','combine','parse','blue','logFilePath','Failed\x20to\x20clear\x20logs:','existsSync','transports','currentRawCommand','stringify','trim','initWinstonLogger','log','315470NREtFJ','clear','now','error','337912OEBFpm','createLogger','setRawCommand','16032393yVkGvs','success','timestamp','2424Dsecie','format','utf8','90LyHoYY','rawCommand','toISOString','unknown','winstonLogger','writeFileSync','readFileSync','Failed\x20to\x20read\x20logs:','duration','green','info','Failed:\x20','details','.lovrabet.log','warn','red','errors','dirname','Completed:\x20','yellow','clearLogs','filter','split','2187LeZAbl','map','mkdirSync','getWinstonInstance','30122340SuMxCo','573596BeQnyi','5155388deARuP','command','message'];a287_0x19ee=function(){return _0x640c90;};return a287_0x19ee();}import a287_0x5e1f1e from'node:path';class Logger{[a287_0x108a77(0x88)];[a287_0x108a77(0xa9)];[a287_0x108a77(0xad)]='';constructor(){this['logFilePath']='';}[a287_0x108a77(0x7d)](_0x32e951){const _0x33a1e2=a287_0x108a77;this[_0x33a1e2(0xad)]=_0x32e951;}[a287_0x108a77(0xb0)](){const _0x176eb3=a287_0x108a77,_0x219088=a287_0x5e1f1e[_0x176eb3(0x95)](this['logFilePath']);!a287_0x4cb6bf[_0x176eb3(0xab)](_0x219088)&&a287_0x4cb6bf[_0x176eb3(0x9d)](_0x219088,{'recursive':!![]});const _0x3f70a1=a287_0x5d17a2['format'][_0x176eb3(0xa6)](a287_0x5d17a2['format'][_0x176eb3(0x80)](),a287_0x5d17a2['format'][_0x176eb3(0x94)]({'stack':!![]}),a287_0x5d17a2[_0x176eb3(0x82)][_0x176eb3(0xa4)](_0x55b403=>{const _0xa281b0=_0x176eb3,_0xc3e581={'timestamp':_0x55b403[_0xa281b0(0x80)]||new Date()[_0xa281b0(0x86)](),'level':_0x55b403['level']||_0xa281b0(0x8e),'command':_0x55b403[_0xa281b0(0xa2)]||_0xa281b0(0x87),'rawCommand':_0x55b403[_0xa281b0(0x85)]||this[_0xa281b0(0xad)]||undefined,'message':_0x55b403[_0xa281b0(0xa3)]||'','duration':_0x55b403[_0xa281b0(0x8c)]||undefined,'details':_0x55b403[_0xa281b0(0x90)]||undefined};return JSON[_0xa281b0(0xae)](_0xc3e581);}));this[_0x176eb3(0x88)]=a287_0x5d17a2[_0x176eb3(0x7c)]({'level':_0x176eb3(0x8e),'format':_0x3f70a1,'transports':[new a287_0x5d17a2[(_0x176eb3(0xac))]['File']({'filename':this[_0x176eb3(0xa9)],'level':_0x176eb3(0x8e)})],'silent':![]}),a287_0x5d17a2['addColors']({'success':_0x176eb3(0x8d),'error':_0x176eb3(0x93),'warn':_0x176eb3(0x97),'info':_0x176eb3(0xa8)});}['setLogPath'](_0x584c64){const _0x4bed72=a287_0x108a77;this[_0x4bed72(0xa9)]=a287_0x5e1f1e['join'](_0x584c64,_0x4bed72(0x91)),this['winstonLogger']&&this['winstonLogger'][_0x4bed72(0xb3)](),this[_0x4bed72(0xb0)]();}[a287_0x108a77(0x8e)](_0x19bb92,_0x1b5380,_0x35ba11){const _0x31db5b=a287_0x108a77;if(!this[_0x31db5b(0xa9)]||!this[_0x31db5b(0x88)])return;this[_0x31db5b(0x88)][_0x31db5b(0x8e)](_0x1b5380,{'command':_0x19bb92,'details':_0x35ba11});}[a287_0x108a77(0x7f)](_0x3d6d34,_0x44ba56,_0x8bc0d8,_0x485bc6){const _0x481747=a287_0x108a77;if(!this['logFilePath']||!this[_0x481747(0x88)])return;this[_0x481747(0x88)][_0x481747(0xb1)](_0x481747(0x8e),_0x44ba56,{'level':_0x481747(0x7f),'command':_0x3d6d34,'duration':_0x8bc0d8,'details':_0x485bc6});}[a287_0x108a77(0xb5)](_0x7c3a60,_0x16006d,_0x154fc8){const _0x782793=a287_0x108a77;if(!this[_0x782793(0xa9)]||!this[_0x782793(0x88)])return;this[_0x782793(0x88)][_0x782793(0xb5)](_0x16006d,{'command':_0x7c3a60,'details':_0x154fc8});}[a287_0x108a77(0x92)](_0x479daa,_0x3a37de,_0x5ee39b){const _0x9a7e37=a287_0x108a77;if(!this['logFilePath']||!this[_0x9a7e37(0x88)])return;this[_0x9a7e37(0x88)][_0x9a7e37(0x92)](_0x3a37de,{'command':_0x479daa,'details':_0x5ee39b});}async['logTask'](_0x22b350,_0x3d8697,_0x364416){const _0x328029=a287_0x108a77,_0x22bcd0=Date[_0x328029(0xb4)]();this['info'](_0x22b350,'Starting:\x20'+_0x3d8697);try{const _0x51b356=await _0x364416(),_0x2270b0=Date['now']()-_0x22bcd0;return this[_0x328029(0x7f)](_0x22b350,_0x328029(0x96)+_0x3d8697,_0x2270b0),_0x51b356;}catch(_0x49f437){const _0x4aa0a8=Date[_0x328029(0xb4)]()-_0x22bcd0;this[_0x328029(0xb5)](_0x22b350,_0x328029(0x8f)+_0x3d8697,{'error':_0x49f437 instanceof Error?_0x49f437[_0x328029(0xa3)]:String(_0x49f437),'duration':_0x4aa0a8});throw _0x49f437;}}['readLogs'](){const _0x40da55=a287_0x108a77;try{if(!a287_0x4cb6bf[_0x40da55(0xab)](this[_0x40da55(0xa9)]))return[];const _0x54fbd4=a287_0x4cb6bf[_0x40da55(0x8a)](this[_0x40da55(0xa9)],'utf8');return _0x54fbd4[_0x40da55(0x9a)]('\x0a')[_0x40da55(0x99)](_0x3f0865=>_0x3f0865[_0x40da55(0xaf)]())[_0x40da55(0x9c)](_0x2096c6=>JSON[_0x40da55(0xa7)](_0x2096c6));}catch(_0x174227){return console[_0x40da55(0x92)](_0x40da55(0x8b),_0x174227),[];}}[a287_0x108a77(0x98)](){const _0xc3035c=a287_0x108a77;try{a287_0x4cb6bf[_0xc3035c(0xab)](this['logFilePath'])&&a287_0x4cb6bf[_0xc3035c(0x89)](this[_0xc3035c(0xa9)],'',_0xc3035c(0x83));}catch(_0x2fec10){console[_0xc3035c(0x92)](_0xc3035c(0xaa),_0x2fec10);}}[a287_0x108a77(0x9e)](){const _0x3c60c4=a287_0x108a77;return this[_0x3c60c4(0x88)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a288_0x2351(){const _0x58b480=['2953874PdyCgX','4eHpUig','parse','305172DwKquF','isArray','530694LuxPKt','validation','716156tKAjrv','Invalid\x20JSON\x20for\x20--params:\x20','166276fkRVnH','12vzTNIJ','object','48MywsMe','19116430lpqUOu','2252500pjaoJE'];a288_0x2351=function(){return _0x58b480;};return a288_0x2351();}(function(_0x2b5a71,_0x840843){const _0x442247=a288_0x2e6a,_0x2bda2d=_0x2b5a71();while(!![]){try{const _0x5be6c0=parseInt(_0x442247(0x123))/0x1+-parseInt(_0x442247(0x125))/0x2*(-parseInt(_0x442247(0x126))/0x3)+parseInt(_0x442247(0x11d))/0x4*(parseInt(_0x442247(0x11b))/0x5)+parseInt(_0x442247(0x11f))/0x6+parseInt(_0x442247(0x11c))/0x7+parseInt(_0x442247(0x128))/0x8*(parseInt(_0x442247(0x121))/0x9)+-parseInt(_0x442247(0x129))/0xa;if(_0x5be6c0===_0x840843)break;else _0x2bda2d['push'](_0x2bda2d['shift']());}catch(_0x1fa931){_0x2bda2d['push'](_0x2bda2d['shift']());}}}(a288_0x2351,0x651fd));import{CliErrors}from'../errors.js';function a288_0x2e6a(_0x5d0709,_0x2532fc){_0x5d0709=_0x5d0709-0x11b;const _0x2351c5=a288_0x2351();let _0x2e6aab=_0x2351c5[_0x5d0709];return _0x2e6aab;}export function parseJsonParams(_0x3dc3c5){const _0x5582e4=a288_0x2e6a;if(!_0x3dc3c5)return undefined;let _0x42f11e;try{_0x42f11e=JSON[_0x5582e4(0x11e)](_0x3dc3c5);}catch{throw CliErrors[_0x5582e4(0x122)](_0x5582e4(0x124)+_0x3dc3c5);}if(!_0x42f11e||typeof _0x42f11e!==_0x5582e4(0x127)||Array[_0x5582e4(0x120)](_0x42f11e))throw CliErrors[_0x5582e4(0x122)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x42f11e;}
1
+ (function(_0x3ccd7e,_0x4483ac){const _0x28f0a3=a288_0x3b19,_0x50a89c=_0x3ccd7e();while(!![]){try{const _0x26f511=-parseInt(_0x28f0a3(0x179))/0x1+-parseInt(_0x28f0a3(0x17c))/0x2+-parseInt(_0x28f0a3(0x177))/0x3*(-parseInt(_0x28f0a3(0x181))/0x4)+parseInt(_0x28f0a3(0x183))/0x5+parseInt(_0x28f0a3(0x17d))/0x6+parseInt(_0x28f0a3(0x178))/0x7*(parseInt(_0x28f0a3(0x182))/0x8)+-parseInt(_0x28f0a3(0x17a))/0x9;if(_0x26f511===_0x4483ac)break;else _0x50a89c['push'](_0x50a89c['shift']());}catch(_0xbdbd65){_0x50a89c['push'](_0x50a89c['shift']());}}}(a288_0x287d,0x5ca21));import{CliErrors}from'../errors.js';function a288_0x3b19(_0x19332f,_0x15b72c){_0x19332f=_0x19332f-0x177;const _0x287da4=a288_0x287d();let _0x3b1911=_0x287da4[_0x19332f];return _0x3b1911;}function a288_0x287d(){const _0x40cae6=['isArray','--params\x20must\x20be\x20a\x20JSON\x20object','object','12ZPbhls','2144ITVUrX','1579425FAGSYM','Invalid\x20JSON\x20for\x20--params:\x20','validation','500523JUISjE','11872xwDJqX','40845fYewTf','5521446DhKcQD','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1197772eClPXw','2170284TARDKa'];a288_0x287d=function(){return _0x40cae6;};return a288_0x287d();}export function parseJsonParams(_0x150009){const _0x49d4be=a288_0x3b19;if(!_0x150009)return undefined;let _0x4a289c;try{_0x4a289c=JSON['parse'](_0x150009);}catch{throw CliErrors[_0x49d4be(0x185)](_0x49d4be(0x184)+_0x150009);}if(!_0x4a289c||typeof _0x4a289c!==_0x49d4be(0x180)||Array[_0x49d4be(0x17e)](_0x4a289c))throw CliErrors['validation'](_0x49d4be(0x17f),_0x49d4be(0x17b));return _0x4a289c;}
@@ -1 +1 @@
1
- function a289_0x1a22(){const _0x5bb79e=['63ygQwMr','7348143hFSgjz','6260936lkgaTV','2434788iSNcfI','2977765qDApdI','1268570SHVTGH','5770etubTl','platform','36WjGniZ','.cmd','330lnhLxO','801353AIKOFN','3fojfSo'];a289_0x1a22=function(){return _0x5bb79e;};return a289_0x1a22();}const a289_0x525c6f=a289_0x2964;function a289_0x2964(_0x59e2b0,_0x4a93b2){_0x59e2b0=_0x59e2b0-0x19b;const _0x1a2219=a289_0x1a22();let _0x296492=_0x1a2219[_0x59e2b0];return _0x296492;}(function(_0x26be6d,_0x39d8f3){const _0x46a25b=a289_0x2964,_0x449498=_0x26be6d();while(!![]){try{const _0xf93ddb=-parseInt(_0x46a25b(0x1a7))/0x1*(parseInt(_0x46a25b(0x1a3))/0x2)+parseInt(_0x46a25b(0x19c))/0x3*(parseInt(_0x46a25b(0x1a0))/0x4)+-parseInt(_0x46a25b(0x1a1))/0x5+-parseInt(_0x46a25b(0x1a5))/0x6*(-parseInt(_0x46a25b(0x19b))/0x7)+-parseInt(_0x46a25b(0x19f))/0x8+parseInt(_0x46a25b(0x19d))/0x9*(parseInt(_0x46a25b(0x1a2))/0xa)+parseInt(_0x46a25b(0x19e))/0xb;if(_0xf93ddb===_0x39d8f3)break;else _0x449498['push'](_0x449498['shift']());}catch(_0x43d5b5){_0x449498['push'](_0x449498['shift']());}}}(a289_0x1a22,0x7f493));export const isWindows=process[a289_0x525c6f(0x1a4)]==='win32';export function resolveNpmBin(_0x4794f1){const _0x3ebce7=a289_0x525c6f;return isWindows?_0x4794f1+_0x3ebce7(0x1a6):_0x4794f1;}
1
+ const a289_0x292ed8=a289_0x26a1;function a289_0x26a1(_0x90960e,_0x14896e){_0x90960e=_0x90960e-0x1dc;const _0x1414ba=a289_0x1414();let _0x26a18e=_0x1414ba[_0x90960e];return _0x26a18e;}(function(_0x3a202a,_0x89c502){const _0x1983c9=a289_0x26a1,_0x2467a6=_0x3a202a();while(!![]){try{const _0x301a3e=-parseInt(_0x1983c9(0x1dd))/0x1+-parseInt(_0x1983c9(0x1de))/0x2*(parseInt(_0x1983c9(0x1e1))/0x3)+parseInt(_0x1983c9(0x1e4))/0x4*(-parseInt(_0x1983c9(0x1df))/0x5)+-parseInt(_0x1983c9(0x1e5))/0x6+-parseInt(_0x1983c9(0x1e0))/0x7*(-parseInt(_0x1983c9(0x1e3))/0x8)+parseInt(_0x1983c9(0x1e6))/0x9+parseInt(_0x1983c9(0x1e7))/0xa;if(_0x301a3e===_0x89c502)break;else _0x2467a6['push'](_0x2467a6['shift']());}catch(_0x3bffa9){_0x2467a6['push'](_0x2467a6['shift']());}}}(a289_0x1414,0x9a904));export const isWindows=process[a289_0x292ed8(0x1e8)]===a289_0x292ed8(0x1e2);function a289_0x1414(){const _0x3ae820=['1354928WIsRsJ','2117252pZAjRJ','1669986YKBlMP','5981706Hqisii','17846640aAKRdu','platform','.cmd','936816NAJoVm','4bVoqER','5URGlJD','42pWJLaV','1631913TDCiVV','win32'];a289_0x1414=function(){return _0x3ae820;};return a289_0x1414();}export function resolveNpmBin(_0x19cb31){const _0x567c0d=a289_0x292ed8;return isWindows?_0x19cb31+_0x567c0d(0x1dc):_0x19cb31;}
@@ -1 +1 @@
1
- export function sleep(_0xe89ef3){return new Promise(_0x234492=>setTimeout(_0x234492,_0xe89ef3));}
1
+ export function sleep(_0x5e814c){return new Promise(_0x644c7=>setTimeout(_0x644c7,_0x5e814c));}
@@ -1 +1 @@
1
- function a291_0x3be8(_0x1238e4,_0x50b21c){_0x1238e4=_0x1238e4-0xa5;const _0x1d77fd=a291_0x1d77();let _0x3be83e=_0x1d77fd[_0x1238e4];return _0x3be83e;}const a291_0x4fc2d7=a291_0x3be8;(function(_0x458981,_0x9b8ee9){const _0x2e3127=a291_0x3be8,_0x22acc0=_0x458981();while(!![]){try{const _0x378744=parseInt(_0x2e3127(0xd2))/0x1*(-parseInt(_0x2e3127(0xbb))/0x2)+parseInt(_0x2e3127(0xec))/0x3*(-parseInt(_0x2e3127(0xe7))/0x4)+-parseInt(_0x2e3127(0xcd))/0x5*(-parseInt(_0x2e3127(0xa6))/0x6)+-parseInt(_0x2e3127(0xd5))/0x7+-parseInt(_0x2e3127(0xbc))/0x8*(parseInt(_0x2e3127(0xb9))/0x9)+parseInt(_0x2e3127(0xc7))/0xa*(-parseInt(_0x2e3127(0xba))/0xb)+-parseInt(_0x2e3127(0xd1))/0xc*(-parseInt(_0x2e3127(0xee))/0xd);if(_0x378744===_0x9b8ee9)break;else _0x22acc0['push'](_0x22acc0['shift']());}catch(_0x3cd9e9){_0x22acc0['push'](_0x22acc0['shift']());}}}(a291_0x1d77,0xd30d6));import a291_0x176f8b from'node:fs';function a291_0x1d77(){const _0x1c82a3=['tableName:\x20\x22','map','readFile','27257364ymLLlS','3927wnITUr','message','replaceContent','71015CeKQQx','toLowerCase','Template\x20content\x20replacement\x20completed','toISOString','error','toComponentName','getHours','includes','formatLocalTimestamp','split','\x20},','isDirectory','success','replaceApiContent','slice','utf8','template','toDisplayTitle','4WPrGVc','toUpperCase','getDate','default','Starting\x20template\x20content\x20replacement','3032973oHYTeF','YourModel','13lCcVdb','padStart','tableName','6NxGEvi','info','LOVRABET','mkdir','processTemplate','isFile','replace','pad','.json','pop','charAt','now','api','.tpl','datasetCode:\x20\x22','.scss','readdir','processDirectory','alias','18szpwou','1563001TSFfew','46hudJhN','1396888BTIupS','.tsx','.md','promises','getMinutes','Template\x20content\x20replacement\x20failed','join','endsWith','processFile','extname','name','10Lrdpmq','name:\x20\x22','copyFile','alias:\x20\x22','\x0a\x20\x20\x20\x20{\x20','.js','978965eEDGPV'];a291_0x1d77=function(){return _0x1c82a3;};return a291_0x1d77();}import a291_0x281489 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0xce72e6){const _0x2e384a=a291_0x3be8;return String(_0xce72e6)[_0x2e384a(0xef)](0x2,'0');}static[a291_0x4fc2d7(0xdd)](_0x58c98d){const _0x87f4bd=a291_0x4fc2d7,_0x222c9e=_0x58c98d['getFullYear'](),_0x359e57=this['pad'](_0x58c98d['getMonth']()+0x1),_0x5b15a3=this[_0x87f4bd(0xad)](_0x58c98d[_0x87f4bd(0xe9)]()),_0x253a34=this[_0x87f4bd(0xad)](_0x58c98d[_0x87f4bd(0xdb)]()),_0x111e49=this['pad'](_0x58c98d[_0x87f4bd(0xc0)]()),_0x4bed8e=this[_0x87f4bd(0xad)](_0x58c98d['getSeconds']());return{'createdAt':_0x222c9e+'-'+_0x359e57+'-'+_0x5b15a3+'\x20'+_0x253a34+':'+_0x111e49+':'+_0x4bed8e,'createdDate':_0x222c9e+'-'+_0x359e57+'-'+_0x5b15a3,'createdTime':_0x253a34+':'+_0x111e49+':'+_0x4bed8e};}static['toComponentName'](_0x48f9df){const _0x539477=a291_0x4fc2d7,_0x4d817b=_0x48f9df[_0x539477(0xde)]('/')[_0x539477(0xaf)]()||_0x48f9df;return _0x4d817b[_0x539477(0xde)]('-')[_0x539477(0xcf)](_0x1dac92=>_0x1dac92[_0x539477(0xb0)](0x0)[_0x539477(0xe8)]()+_0x1dac92[_0x539477(0xe3)](0x1)[_0x539477(0xd6)]())[_0x539477(0xc2)]('');}static['toDisplayTitle'](_0x4aeed0){const _0x1536be=a291_0x4fc2d7,_0x559572=_0x4aeed0['split']('/')[_0x1536be(0xaf)]()||_0x4aeed0;return _0x559572[_0x1536be(0xde)]('-')[_0x1536be(0xcf)](_0x16523d=>_0x16523d[_0x1536be(0xb0)](0x0)[_0x1536be(0xe8)]()+_0x16523d[_0x1536be(0xe3)](0x1)[_0x1536be(0xd6)]())[_0x1536be(0xc2)]('\x20');}static['replaceContent'](_0xc9cac1,_0x230303,_0x573a5e){const _0x27e093=a291_0x4fc2d7,_0x1230a8=this[_0x27e093(0xda)](_0x230303),_0x13184b=this[_0x27e093(0xe6)](_0x230303),{createdAt:_0x2f74a3,createdDate:_0x463262,createdTime:_0x1dfe88}=this['formatLocalTimestamp'](new Date());let _0x3b7792=_0xc9cac1[_0x27e093(0xac)](/\{CliVersion\}/g,CLI_VERSION)[_0x27e093(0xac)](/\{ComponentName\}/g,_0x1230a8)[_0x27e093(0xac)](/\{DisplayTitle\}/g,_0x13184b)['replace'](/\{PageName\}/g,_0x230303)[_0x27e093(0xac)](/\{TemplateName\}/g,_0x573a5e)[_0x27e093(0xac)](/\{CreatedAt\}/g,_0x2f74a3)['replace'](/\{CreatedDate\}/g,_0x463262)['replace'](/\{CreatedTime\}/g,_0x1dfe88);return _0x3b7792;}static[a291_0x4fc2d7(0xe2)](_0x52f84e,_0x17fb23,_0x3f7aa8,_0x2a6587,_0x1a4492,_0x12898b,_0x20e94e,_0x1b882d){const _0x55ce00=a291_0x4fc2d7,_0x1e3b3d=new Date(),_0x28ddfa=_0x1e3b3d[_0x55ce00(0xd8)](),_0xbb401a=_0x3f7aa8[_0x55ce00(0xcf)](_0xc66862=>{const _0xadcfcf=_0x55ce00,_0x14b2d4=[_0xadcfcf(0xb4)+_0xc66862['datasetCode']+'\x22',_0xadcfcf(0xce)+_0xc66862[_0xadcfcf(0xa5)]+'\x22',_0xadcfcf(0xc8)+_0xc66862[_0xadcfcf(0xc6)]+'\x22'];return _0xc66862['alias']&&_0x14b2d4['push'](_0xadcfcf(0xca)+_0xc66862[_0xadcfcf(0xb8)]+'\x22'),_0xadcfcf(0xcb)+_0x14b2d4['join'](',\x20')+_0xadcfcf(0xdf);})[_0x55ce00(0xc2)](''),_0x3b8973=_0x2a6587||_0x3f7aa8[0x0]?.[_0x55ce00(0xb8)]||_0x55ce00(0xed);let _0xd6b3c1=_0x52f84e['replace'](/\{AppCode\}/g,_0x17fb23)[_0x55ce00(0xac)](/\{ModelConfigs\}/g,_0xbb401a)[_0x55ce00(0xac)](/\{ExampleModelName\}/g,_0x3b8973)['replace'](/\{ApiFileName\}/g,_0x1a4492||_0x55ce00(0xb2))['replace'](/\{ConfigName\}/g,_0x12898b||_0x55ce00(0xea))['replace'](/\{ClientConfigParam\}/g,_0x20e94e||'')[_0x55ce00(0xac)](/\{VarPrefix\}/g,_0x1b882d||_0x55ce00(0xa8))[_0x55ce00(0xac)](/\{CreatedAt\}/g,_0x28ddfa);return _0xd6b3c1;}static async[a291_0x4fc2d7(0xaa)](_0x120dc7,_0x5b9a25,_0x11c315,_0xc88bca,_0x3cb8a0=!![]){const _0x12d481=a291_0x4fc2d7,_0x29f5c0=Date[_0x12d481(0xb1)]();try{_0x3cb8a0&&logger[_0x12d481(0xa7)](_0x12d481(0xe5),_0x12d481(0xeb),{'templatePath':_0x120dc7,'targetPath':_0x5b9a25,'pageName':_0x11c315,'templateName':_0xc88bca});await a291_0x176f8b[_0x12d481(0xbf)][_0x12d481(0xa9)](_0x5b9a25,{'recursive':!![]}),await this[_0x12d481(0xb7)](_0x120dc7,_0x5b9a25,_0x11c315,_0xc88bca);if(_0x3cb8a0){const _0x1cb2d0=Date[_0x12d481(0xb1)]()-_0x29f5c0;logger[_0x12d481(0xe1)](_0x12d481(0xe5),_0x12d481(0xd7),_0x1cb2d0,{'pageName':_0x11c315,'templateName':_0xc88bca});}}catch(_0xdaddf6){if(_0x3cb8a0){const _0x34ef78=Date[_0x12d481(0xb1)]()-_0x29f5c0;logger[_0x12d481(0xd9)]('template',_0x12d481(0xc1),{'templatePath':_0x120dc7,'targetPath':_0x5b9a25,'pageName':_0x11c315,'templateName':_0xc88bca,'error':_0xdaddf6 instanceof Error?_0xdaddf6[_0x12d481(0xd3)]:String(_0xdaddf6),'duration':_0x34ef78});}throw _0xdaddf6;}}static async[a291_0x4fc2d7(0xb7)](_0x52f781,_0x71b009,_0x342571,_0xb529ee){const _0x5e5496=a291_0x4fc2d7,_0x1cf079=await a291_0x176f8b[_0x5e5496(0xbf)][_0x5e5496(0xb6)](_0x52f781,{'withFileTypes':!![]});for(const _0x33f805 of _0x1cf079){const _0x7031b6=a291_0x281489[_0x5e5496(0xc2)](_0x52f781,_0x33f805[_0x5e5496(0xc6)]);let _0x10f644=a291_0x281489[_0x5e5496(0xc2)](_0x71b009,_0x33f805[_0x5e5496(0xc6)]);_0x33f805[_0x5e5496(0xc6)][_0x5e5496(0xc3)](_0x5e5496(0xb3))&&(_0x10f644=a291_0x281489[_0x5e5496(0xc2)](_0x71b009,_0x33f805['name']['replace'](/\.tpl$/,'')));if(_0x33f805[_0x5e5496(0xe0)]())await a291_0x176f8b['promises'][_0x5e5496(0xa9)](_0x10f644,{'recursive':!![]}),await this[_0x5e5496(0xb7)](_0x7031b6,_0x10f644,_0x342571,_0xb529ee);else _0x33f805[_0x5e5496(0xab)]()&&await this['processFile'](_0x7031b6,_0x10f644,_0x342571,_0xb529ee);}}static async[a291_0x4fc2d7(0xc4)](_0x38b68a,_0xcfad3,_0x5e7cbf,_0x2bbd17){const _0x4c403c=a291_0x4fc2d7,_0x4fdcd1=a291_0x281489[_0x4c403c(0xc5)](_0x38b68a)[_0x4c403c(0xd6)]();_0x38b68a[_0x4c403c(0xc3)](_0x4c403c(0xb3))&&(_0xcfad3=_0xcfad3['replace'](/\.tpl$/,''));const _0x2bf23f=[_0x4c403c(0xbd),'.ts','.jsx',_0x4c403c(0xcc),_0x4c403c(0xae),_0x4c403c(0xbe),'.css',_0x4c403c(0xb5),_0x4c403c(0xb3)];if(_0x2bf23f[_0x4c403c(0xdc)](_0x4fdcd1)||_0x38b68a[_0x4c403c(0xc3)](_0x4c403c(0xb3))){const _0x4d02ea=await a291_0x176f8b[_0x4c403c(0xbf)][_0x4c403c(0xd0)](_0x38b68a,'utf8'),_0x55c02e=this[_0x4c403c(0xd4)](_0x4d02ea,_0x5e7cbf,_0x2bbd17);await a291_0x176f8b[_0x4c403c(0xbf)]['writeFile'](_0xcfad3,_0x55c02e,_0x4c403c(0xe4));}else await a291_0x176f8b[_0x4c403c(0xbf)][_0x4c403c(0xc9)](_0x38b68a,_0xcfad3);}}
1
+ function a291_0x1488(_0x1ebd7b,_0x1fc5ee){_0x1ebd7b=_0x1ebd7b-0x184;const _0x4c2285=a291_0x4c22();let _0x14883=_0x4c2285[_0x1ebd7b];return _0x14883;}const a291_0x19859a=a291_0x1488;(function(_0x489def,_0x21fb46){const _0x53712e=a291_0x1488,_0xf383b6=_0x489def();while(!![]){try{const _0xae32a5=parseInt(_0x53712e(0x1b9))/0x1*(parseInt(_0x53712e(0x19b))/0x2)+-parseInt(_0x53712e(0x18f))/0x3+parseInt(_0x53712e(0x194))/0x4*(parseInt(_0x53712e(0x1b8))/0x5)+-parseInt(_0x53712e(0x1a2))/0x6+-parseInt(_0x53712e(0x191))/0x7*(parseInt(_0x53712e(0x1a7))/0x8)+-parseInt(_0x53712e(0x184))/0x9+-parseInt(_0x53712e(0x19f))/0xa*(-parseInt(_0x53712e(0x1c4))/0xb);if(_0xae32a5===_0x21fb46)break;else _0xf383b6['push'](_0xf383b6['shift']());}catch(_0x342065){_0xf383b6['push'](_0xf383b6['shift']());}}}(a291_0x4c22,0x4c086));import a291_0x1c9941 from'node:fs';import a291_0x5d621c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a291_0x4c22(){const _0x418011=['alias:\x20\x22','push','.ts','568cXwGbL','includes','formatLocalTimestamp','copyFile','template','processFile','getMonth','readdir','replace','getDate','datasetCode:\x20\x22','split','error','.css','.json','toUpperCase','.tsx','5DWPGQI','31252AbEBAh','join','.js','isDirectory','Template\x20content\x20replacement\x20completed','pop','now','success','slice','datasetCode','tableName','22gfueSv','map','mkdir','\x20},','name:\x20\x22','.md','charAt','3820536EHmXHL','getFullYear','name','writeFile','api','toDisplayTitle','utf8','toLowerCase','isFile','alias','.scss','484206KBAWni','toComponentName','40838uWgIWZ','message','promises','1457692czseQF','pad','replaceContent','padStart','toISOString','replaceApiContent','Template\x20content\x20replacement\x20failed','4OHTeVJ','endsWith','info','YourModel','6569400UvsjWE','extname','processDirectory','2575542ItEaDS','.tpl'];a291_0x4c22=function(){return _0x418011;};return a291_0x4c22();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a291_0x19859a(0x195)](_0x32d556){const _0x339092=a291_0x19859a;return String(_0x32d556)[_0x339092(0x197)](0x2,'0');}static[a291_0x19859a(0x1a9)](_0x543934){const _0x45b413=a291_0x19859a,_0x49c9bc=_0x543934[_0x45b413(0x185)](),_0x331cd4=this[_0x45b413(0x195)](_0x543934[_0x45b413(0x1ad)]()+0x1),_0xd17d04=this[_0x45b413(0x195)](_0x543934[_0x45b413(0x1b0)]()),_0x5d1aff=this[_0x45b413(0x195)](_0x543934['getHours']()),_0x4cde69=this[_0x45b413(0x195)](_0x543934['getMinutes']()),_0x309ffd=this[_0x45b413(0x195)](_0x543934['getSeconds']());return{'createdAt':_0x49c9bc+'-'+_0x331cd4+'-'+_0xd17d04+'\x20'+_0x5d1aff+':'+_0x4cde69+':'+_0x309ffd,'createdDate':_0x49c9bc+'-'+_0x331cd4+'-'+_0xd17d04,'createdTime':_0x5d1aff+':'+_0x4cde69+':'+_0x309ffd};}static[a291_0x19859a(0x190)](_0x316df5){const _0x4787a9=a291_0x19859a,_0x43701f=_0x316df5['split']('/')[_0x4787a9(0x1be)]()||_0x316df5;return _0x43701f[_0x4787a9(0x1b2)]('-')[_0x4787a9(0x1c5)](_0x258f1b=>_0x258f1b[_0x4787a9(0x1ca)](0x0)[_0x4787a9(0x1b6)]()+_0x258f1b['slice'](0x1)[_0x4787a9(0x18b)]())[_0x4787a9(0x1ba)]('');}static[a291_0x19859a(0x189)](_0x4ac09c){const _0xc54cb4=a291_0x19859a,_0x25bf1d=_0x4ac09c[_0xc54cb4(0x1b2)]('/')[_0xc54cb4(0x1be)]()||_0x4ac09c;return _0x25bf1d[_0xc54cb4(0x1b2)]('-')[_0xc54cb4(0x1c5)](_0x3e139a=>_0x3e139a['charAt'](0x0)['toUpperCase']()+_0x3e139a[_0xc54cb4(0x1c1)](0x1)[_0xc54cb4(0x18b)]())[_0xc54cb4(0x1ba)]('\x20');}static['replaceContent'](_0x42a7b5,_0x4d3cac,_0x3639d1){const _0x1488ca=a291_0x19859a,_0x99ba50=this[_0x1488ca(0x190)](_0x4d3cac),_0xaafae=this[_0x1488ca(0x189)](_0x4d3cac),{createdAt:_0x5759dd,createdDate:_0xffce9f,createdTime:_0x8d0f79}=this['formatLocalTimestamp'](new Date());let _0x4b7ab0=_0x42a7b5[_0x1488ca(0x1af)](/\{CliVersion\}/g,CLI_VERSION)[_0x1488ca(0x1af)](/\{ComponentName\}/g,_0x99ba50)['replace'](/\{DisplayTitle\}/g,_0xaafae)[_0x1488ca(0x1af)](/\{PageName\}/g,_0x4d3cac)['replace'](/\{TemplateName\}/g,_0x3639d1)['replace'](/\{CreatedAt\}/g,_0x5759dd)[_0x1488ca(0x1af)](/\{CreatedDate\}/g,_0xffce9f)[_0x1488ca(0x1af)](/\{CreatedTime\}/g,_0x8d0f79);return _0x4b7ab0;}static[a291_0x19859a(0x199)](_0x5e0b6f,_0x1faea7,_0x5e55cf,_0x35f008,_0x340aa0,_0x5c278e,_0x15ae38,_0x50ca89){const _0x44f365=a291_0x19859a,_0x247ff2=new Date(),_0x13c55c=_0x247ff2[_0x44f365(0x198)](),_0x476efd=_0x5e55cf[_0x44f365(0x1c5)](_0x1a478d=>{const _0xd11cde=_0x44f365,_0x4711a4=[_0xd11cde(0x1b1)+_0x1a478d[_0xd11cde(0x1c2)]+'\x22','tableName:\x20\x22'+_0x1a478d[_0xd11cde(0x1c3)]+'\x22',_0xd11cde(0x1c8)+_0x1a478d[_0xd11cde(0x186)]+'\x22'];return _0x1a478d['alias']&&_0x4711a4[_0xd11cde(0x1a5)](_0xd11cde(0x1a4)+_0x1a478d[_0xd11cde(0x18d)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x4711a4[_0xd11cde(0x1ba)](',\x20')+_0xd11cde(0x1c7);})['join'](''),_0xdfd36e=_0x35f008||_0x5e55cf[0x0]?.['alias']||_0x44f365(0x19e);let _0x9e0de8=_0x5e0b6f['replace'](/\{AppCode\}/g,_0x1faea7)['replace'](/\{ModelConfigs\}/g,_0x476efd)['replace'](/\{ExampleModelName\}/g,_0xdfd36e)[_0x44f365(0x1af)](/\{ApiFileName\}/g,_0x340aa0||_0x44f365(0x188))[_0x44f365(0x1af)](/\{ConfigName\}/g,_0x5c278e||'default')[_0x44f365(0x1af)](/\{ClientConfigParam\}/g,_0x15ae38||'')[_0x44f365(0x1af)](/\{VarPrefix\}/g,_0x50ca89||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x13c55c);return _0x9e0de8;}static async['processTemplate'](_0x57fc39,_0x1f30e4,_0x359be2,_0xbdb714,_0x548337=!![]){const _0x472405=a291_0x19859a,_0x4d5d50=Date[_0x472405(0x1bf)]();try{_0x548337&&logger[_0x472405(0x19d)](_0x472405(0x1ab),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x57fc39,'targetPath':_0x1f30e4,'pageName':_0x359be2,'templateName':_0xbdb714});await a291_0x1c9941[_0x472405(0x193)][_0x472405(0x1c6)](_0x1f30e4,{'recursive':!![]}),await this['processDirectory'](_0x57fc39,_0x1f30e4,_0x359be2,_0xbdb714);if(_0x548337){const _0x31a0e5=Date[_0x472405(0x1bf)]()-_0x4d5d50;logger[_0x472405(0x1c0)](_0x472405(0x1ab),_0x472405(0x1bd),_0x31a0e5,{'pageName':_0x359be2,'templateName':_0xbdb714});}}catch(_0x5e1cb5){if(_0x548337){const _0x16b411=Date['now']()-_0x4d5d50;logger[_0x472405(0x1b3)]('template',_0x472405(0x19a),{'templatePath':_0x57fc39,'targetPath':_0x1f30e4,'pageName':_0x359be2,'templateName':_0xbdb714,'error':_0x5e1cb5 instanceof Error?_0x5e1cb5[_0x472405(0x192)]:String(_0x5e1cb5),'duration':_0x16b411});}throw _0x5e1cb5;}}static async['processDirectory'](_0x55873b,_0x2fbebd,_0x5d192b,_0x32cbef){const _0x2e7168=a291_0x19859a,_0x471339=await a291_0x1c9941[_0x2e7168(0x193)][_0x2e7168(0x1ae)](_0x55873b,{'withFileTypes':!![]});for(const _0x1f34b1 of _0x471339){const _0x30ad00=a291_0x5d621c[_0x2e7168(0x1ba)](_0x55873b,_0x1f34b1[_0x2e7168(0x186)]);let _0x49b118=a291_0x5d621c[_0x2e7168(0x1ba)](_0x2fbebd,_0x1f34b1['name']);_0x1f34b1[_0x2e7168(0x186)][_0x2e7168(0x19c)](_0x2e7168(0x1a3))&&(_0x49b118=a291_0x5d621c[_0x2e7168(0x1ba)](_0x2fbebd,_0x1f34b1[_0x2e7168(0x186)][_0x2e7168(0x1af)](/\.tpl$/,'')));if(_0x1f34b1[_0x2e7168(0x1bc)]())await a291_0x1c9941[_0x2e7168(0x193)]['mkdir'](_0x49b118,{'recursive':!![]}),await this[_0x2e7168(0x1a1)](_0x30ad00,_0x49b118,_0x5d192b,_0x32cbef);else _0x1f34b1[_0x2e7168(0x18c)]()&&await this[_0x2e7168(0x1ac)](_0x30ad00,_0x49b118,_0x5d192b,_0x32cbef);}}static async[a291_0x19859a(0x1ac)](_0x2c03d5,_0x1fafca,_0x167b90,_0x17ff36){const _0x3fedc5=a291_0x19859a,_0x1c8346=a291_0x5d621c[_0x3fedc5(0x1a0)](_0x2c03d5)[_0x3fedc5(0x18b)]();_0x2c03d5[_0x3fedc5(0x19c)](_0x3fedc5(0x1a3))&&(_0x1fafca=_0x1fafca['replace'](/\.tpl$/,''));const _0x488188=[_0x3fedc5(0x1b7),_0x3fedc5(0x1a6),'.jsx',_0x3fedc5(0x1bb),_0x3fedc5(0x1b5),_0x3fedc5(0x1c9),_0x3fedc5(0x1b4),_0x3fedc5(0x18e),'.tpl'];if(_0x488188[_0x3fedc5(0x1a8)](_0x1c8346)||_0x2c03d5[_0x3fedc5(0x19c)](_0x3fedc5(0x1a3))){const _0x47ade1=await a291_0x1c9941['promises']['readFile'](_0x2c03d5,_0x3fedc5(0x18a)),_0x10f9ed=this[_0x3fedc5(0x196)](_0x47ade1,_0x167b90,_0x17ff36);await a291_0x1c9941[_0x3fedc5(0x193)][_0x3fedc5(0x187)](_0x1fafca,_0x10f9ed,_0x3fedc5(0x18a));}else await a291_0x1c9941[_0x3fedc5(0x193)][_0x3fedc5(0x1aa)](_0x2c03d5,_0x1fafca);}}
@@ -1 +1 @@
1
- (function(_0x11a391,_0x416cd3){const _0x55b3a3=a292_0x3a7e,_0x549195=_0x11a391();while(!![]){try{const _0x27cdde=parseInt(_0x55b3a3(0x1ff))/0x1*(-parseInt(_0x55b3a3(0x1f9))/0x2)+parseInt(_0x55b3a3(0x1ea))/0x3+parseInt(_0x55b3a3(0x1f5))/0x4*(-parseInt(_0x55b3a3(0x1e8))/0x5)+parseInt(_0x55b3a3(0x1e7))/0x6*(parseInt(_0x55b3a3(0x1e6))/0x7)+parseInt(_0x55b3a3(0x1fd))/0x8+-parseInt(_0x55b3a3(0x1ee))/0x9+parseInt(_0x55b3a3(0x1fb))/0xa*(-parseInt(_0x55b3a3(0x200))/0xb);if(_0x27cdde===_0x416cd3)break;else _0x549195['push'](_0x549195['shift']());}catch(_0x19fe77){_0x549195['push'](_0x549195['shift']());}}}(a292_0x1f9a,0xeff83));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a292_0x1f9a(){const _0x56965d=['rabetbase-cli','stableVersion','4494fgyMJZ','utf8','7311310dKIKHc','toLowerCase','11821056NRrsjG','/v/','194ULLiaR','11UXwnGc','number','yes','trim','latest',',\x20run:\x20','19474DfvisL','1566KrlZJn','45BlbFCG','lastNotifiedAt','3006711NqhKni','stringify','parse','true','6907932oUeaiJ','object','now','https://www.npmjs.com/package/','valid','\x20update','lastNotifiedVersion','128204zUvgUb','checkedAt'];a292_0x1f9a=function(){return _0x56965d;};return a292_0x1f9a();}function a292_0x3a7e(_0x33c9f1,_0x4baa4c){_0x33c9f1=_0x33c9f1-0x1e5;const _0x1f9ab4=a292_0x1f9a();let _0x3a7e53=_0x1f9ab4[_0x33c9f1];return _0x3a7e53;}import{dirname,join}from'node:path';import a292_0x375736 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x413bf9=a292_0x3a7e,_0x67a742=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x413bf9(0x203)]()[_0x413bf9(0x1fc)]();return _0x67a742==='1'||_0x67a742===_0x413bf9(0x1ed)||_0x67a742===_0x413bf9(0x202);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x270dc3=a292_0x3a7e;return join(cacheRoot(),_0x270dc3(0x1f7),'update-check.json');}async function readUpdateNoticeCache(){const _0x4a5321=a292_0x3a7e;try{const _0x369bc6=await readFile(getUpdateNoticeCachePath(),_0x4a5321(0x1fa)),_0x3f28e8=JSON[_0x4a5321(0x1ec)](_0x369bc6);if(!_0x3f28e8||typeof _0x3f28e8!==_0x4a5321(0x1ef))return{};return _0x3f28e8;}catch{return{};}}async function writeUpdateNoticeCache(_0x1666fa){const _0x278963=a292_0x3a7e;try{const _0x582a57=getUpdateNoticeCachePath();await mkdir(dirname(_0x582a57),{'recursive':!![]}),await writeFile(_0x582a57,JSON[_0x278963(0x1eb)](_0x1666fa,null,0x2)+'\x0a',_0x278963(0x1fa));}catch{}}function isFreshCheck(_0x4f9f5b,_0x43f501){const _0x257548=a292_0x3a7e;return typeof _0x4f9f5b['checkedAt']===_0x257548(0x201)&&_0x43f501-_0x4f9f5b[_0x257548(0x1f6)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x320cbd,_0x3c486c,_0x51742c){const _0xbd090d=a292_0x3a7e;return _0x320cbd[_0xbd090d(0x1f4)]===_0x3c486c&&typeof _0x320cbd[_0xbd090d(0x1e9)]===_0xbd090d(0x201)&&_0x51742c-_0x320cbd['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x57f334){const _0x141252=a292_0x3a7e;return _0x141252(0x1f1)+NPM_PACKAGE_NAME+_0x141252(0x1fe)+_0x57f334;}export async function resolveLatestUpdateNotice(){const _0x5e8c1c=a292_0x3a7e;if(isUpdateNoticeDisabled())return null;try{const _0x342ef0=Date[_0x5e8c1c(0x1f0)](),_0x189b4f=getCliVersion(),_0x48f59e=await readUpdateNoticeCache();let _0x30e45f=isFreshCheck(_0x48f59e,_0x342ef0)?_0x48f59e[_0x5e8c1c(0x204)]?.[_0x5e8c1c(0x203)]():undefined;if(!_0x30e45f&&!isFreshCheck(_0x48f59e,_0x342ef0)){const _0x298a09=await getCliVersionPolicy();_0x30e45f=_0x298a09?.[_0x5e8c1c(0x1f8)]?.[_0x5e8c1c(0x203)]()||undefined,await writeUpdateNoticeCache({..._0x48f59e,'checkedAt':_0x342ef0,'latest':_0x30e45f,'failed':!_0x30e45f});}if(!_0x30e45f||!a292_0x375736[_0x5e8c1c(0x1f2)](_0x189b4f)||!a292_0x375736[_0x5e8c1c(0x1f2)](_0x30e45f))return null;if(a292_0x375736['gte'](_0x189b4f,_0x30e45f))return null;if(isRecentlyNotified(_0x48f59e,_0x30e45f,_0x342ef0))return null;const _0x4d1dd4=CLI_BIN_NAME+_0x5e8c1c(0x1f3);return await writeUpdateNoticeCache({..._0x48f59e,'checkedAt':isFreshCheck(_0x48f59e,_0x342ef0)?_0x48f59e[_0x5e8c1c(0x1f6)]:_0x342ef0,'latest':_0x30e45f,'failed':![],'lastNotifiedVersion':_0x30e45f,'lastNotifiedAt':_0x342ef0}),{'command':_0x4d1dd4,'current':_0x189b4f,'latest':_0x30e45f,'url':buildNpmVersionUrl(_0x30e45f),'message':CLI_BIN_NAME+'\x20'+_0x30e45f+'\x20available,\x20current\x20'+_0x189b4f+_0x5e8c1c(0x1e5)+_0x4d1dd4};}catch{return null;}}
1
+ (function(_0x13ff5e,_0x12a1de){const _0x39477f=a292_0x41af,_0x53fe4c=_0x13ff5e();while(!![]){try{const _0x58b89c=parseInt(_0x39477f(0x147))/0x1+-parseInt(_0x39477f(0x143))/0x2+parseInt(_0x39477f(0x144))/0x3*(parseInt(_0x39477f(0x136))/0x4)+parseInt(_0x39477f(0x148))/0x5*(-parseInt(_0x39477f(0x12b))/0x6)+-parseInt(_0x39477f(0x140))/0x7+-parseInt(_0x39477f(0x130))/0x8+-parseInt(_0x39477f(0x13f))/0x9*(-parseInt(_0x39477f(0x12c))/0xa);if(_0x58b89c===_0x12a1de)break;else _0x53fe4c['push'](_0x53fe4c['shift']());}catch(_0x16b8d4){_0x53fe4c['push'](_0x53fe4c['shift']());}}}(a292_0x1922,0xa9a8f));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a292_0x588fbd from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a292_0x41af(_0x12ffe3,_0x2c36ca){_0x12ffe3=_0x12ffe3-0x129;const _0x192220=a292_0x1922();let _0x41af5f=_0x192220[_0x12ffe3];return _0x41af5f;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0xacebad=a292_0x41af,_0x122194=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0xacebad(0x129)]()[_0xacebad(0x138)]();return _0x122194==='1'||_0x122194==='true'||_0x122194===_0xacebad(0x146);}function cacheRoot(){const _0xb02a65=a292_0x41af;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xb02a65(0x13a));}export function getUpdateNoticeCachePath(){const _0x44a26f=a292_0x41af;return join(cacheRoot(),_0x44a26f(0x135),_0x44a26f(0x133));}async function readUpdateNoticeCache(){const _0x256483=a292_0x41af;try{const _0xe1f8ef=await readFile(getUpdateNoticeCachePath(),_0x256483(0x149)),_0x18934a=JSON[_0x256483(0x134)](_0xe1f8ef);if(!_0x18934a||typeof _0x18934a!=='object')return{};return _0x18934a;}catch{return{};}}async function writeUpdateNoticeCache(_0x1e234b){const _0x45447d=a292_0x41af;try{const _0x459426=getUpdateNoticeCachePath();await mkdir(dirname(_0x459426),{'recursive':!![]}),await writeFile(_0x459426,JSON[_0x45447d(0x12a)](_0x1e234b,null,0x2)+'\x0a','utf8');}catch{}}function a292_0x1922(){const _0x4b568f=['.cache','gte','latest','lastNotifiedAt','checkedAt','144JRNCXu','4646971jRdlPd','now','valid','221754dQfuVI','228SBRBoz','lastNotifiedVersion','yes','184439YFtZyu','565ansuer','utf8','trim','stringify','25416NIMkYW','920410UJRjwA','number',',\x20run:\x20','\x20update','2658800sCiDCq','https://www.npmjs.com/package/','/v/','update-check.json','parse','rabetbase-cli','32820fZPExV','\x20available,\x20current\x20','toLowerCase','stableVersion'];a292_0x1922=function(){return _0x4b568f;};return a292_0x1922();}function isFreshCheck(_0x47be06,_0x411a1e){const _0x2dd3d5=a292_0x41af;return typeof _0x47be06['checkedAt']===_0x2dd3d5(0x12d)&&_0x411a1e-_0x47be06[_0x2dd3d5(0x13e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4526c6,_0x5784f9,_0x10c39a){const _0x10cbbc=a292_0x41af;return _0x4526c6[_0x10cbbc(0x145)]===_0x5784f9&&typeof _0x4526c6['lastNotifiedAt']===_0x10cbbc(0x12d)&&_0x10c39a-_0x4526c6[_0x10cbbc(0x13d)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1a2ae4){const _0x235322=a292_0x41af;return _0x235322(0x131)+NPM_PACKAGE_NAME+_0x235322(0x132)+_0x1a2ae4;}export async function resolveLatestUpdateNotice(){const _0x1af638=a292_0x41af;if(isUpdateNoticeDisabled())return null;try{const _0x15035f=Date[_0x1af638(0x141)](),_0x1c5d0b=getCliVersion(),_0x29229b=await readUpdateNoticeCache();let _0x59be3d=isFreshCheck(_0x29229b,_0x15035f)?_0x29229b[_0x1af638(0x13c)]?.['trim']():undefined;if(!_0x59be3d&&!isFreshCheck(_0x29229b,_0x15035f)){const _0x1dd86c=await getCliVersionPolicy();_0x59be3d=_0x1dd86c?.[_0x1af638(0x139)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x29229b,'checkedAt':_0x15035f,'latest':_0x59be3d,'failed':!_0x59be3d});}if(!_0x59be3d||!a292_0x588fbd[_0x1af638(0x142)](_0x1c5d0b)||!a292_0x588fbd[_0x1af638(0x142)](_0x59be3d))return null;if(a292_0x588fbd[_0x1af638(0x13b)](_0x1c5d0b,_0x59be3d))return null;if(isRecentlyNotified(_0x29229b,_0x59be3d,_0x15035f))return null;const _0x1d4851=CLI_BIN_NAME+_0x1af638(0x12f);return await writeUpdateNoticeCache({..._0x29229b,'checkedAt':isFreshCheck(_0x29229b,_0x15035f)?_0x29229b[_0x1af638(0x13e)]:_0x15035f,'latest':_0x59be3d,'failed':![],'lastNotifiedVersion':_0x59be3d,'lastNotifiedAt':_0x15035f}),{'command':_0x1d4851,'current':_0x1c5d0b,'latest':_0x59be3d,'url':buildNpmVersionUrl(_0x59be3d),'message':CLI_BIN_NAME+'\x20'+_0x59be3d+_0x1af638(0x137)+_0x1c5d0b+_0x1af638(0x12e)+_0x1d4851};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x437771,_0x2542ce){var _0x43acb4=a293_0x2535,_0x23e2d0=_0x437771();while(!![]){try{var _0x22684b=-parseInt(_0x43acb4(0xff))/0x1*(parseInt(_0x43acb4(0xf6))/0x2)+parseInt(_0x43acb4(0xf7))/0x3+-parseInt(_0x43acb4(0xfb))/0x4+-parseInt(_0x43acb4(0xfc))/0x5*(parseInt(_0x43acb4(0xfe))/0x6)+-parseInt(_0x43acb4(0xfd))/0x7*(-parseInt(_0x43acb4(0xfa))/0x8)+-parseInt(_0x43acb4(0xf8))/0x9+-parseInt(_0x43acb4(0xf9))/0xa*(-parseInt(_0x43acb4(0x100))/0xb);if(_0x22684b===_0x2542ce)break;else _0x23e2d0['push'](_0x23e2d0['shift']());}catch(_0x5b7593){_0x23e2d0['push'](_0x23e2d0['shift']());}}}(a293_0x28dc,0x5656b));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a293_0x2535(_0x2f5fcf,_0x3cb8cf){_0x2f5fcf=_0x2f5fcf-0xf6;var _0x28dc7f=a293_0x28dc();var _0x253500=_0x28dc7f[_0x2f5fcf];return _0x253500;}function a293_0x28dc(){var _0x4ab78d=['597700xhEVqY','773576sRYFVg','1290204NfuDrr','4710stFBZz','49cTdyTQ','78DaODyB','25mQgZHK','143XCKaYX','40226pNKKGk','472821yEDbHb','3782079nfZDPT'];a293_0x28dc=function(){return _0x4ab78d;};return a293_0x28dc();}
1
+ (function(_0x597d73,_0xd0f77f){var _0x4a7107=a293_0x1231,_0x590ab8=_0x597d73();while(!![]){try{var _0x1b13bf=-parseInt(_0x4a7107(0xb0))/0x1*(parseInt(_0x4a7107(0xb5))/0x2)+parseInt(_0x4a7107(0xb7))/0x3+-parseInt(_0x4a7107(0xb3))/0x4+parseInt(_0x4a7107(0xb4))/0x5+parseInt(_0x4a7107(0xb6))/0x6*(parseInt(_0x4a7107(0xb1))/0x7)+parseInt(_0x4a7107(0xb8))/0x8+parseInt(_0x4a7107(0xb2))/0x9;if(_0x1b13bf===_0xd0f77f)break;else _0x590ab8['push'](_0x590ab8['shift']());}catch(_0x51f129){_0x590ab8['push'](_0x590ab8['shift']());}}}(a293_0x2ea0,0x2ceb4));function a293_0x2ea0(){var _0x24bb95=['571128ehNTWp','3571bBbSYp','11991HglUmL','4023333vFoxAl','1376716dIXTSB','283675ndSwKM','190IfkYhQ','738LbuJUG','244650LGBilg'];a293_0x2ea0=function(){return _0x24bb95;};return a293_0x2ea0();}import{VERSION}from'../generated/build-info.js';function a293_0x1231(_0x2c7f0e,_0x7aab38){_0x2c7f0e=_0x2c7f0e-0xb0;var _0x2ea037=a293_0x2ea0();var _0x123116=_0x2ea037[_0x2c7f0e];return _0x123116;}export function getCliVersion(){return VERSION;}