@lovrabet/rabetbase-cli 2.5.0-beta.6 → 2.5.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.d.ts +7 -0
  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.d.ts +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/search.js +1 -1
  110. package/lib/commands/kb/shared.js +1 -1
  111. package/lib/commands/kb/update.js +1 -1
  112. package/lib/commands/logs/index.js +1 -1
  113. package/lib/commands/menu/asset-update.js +1 -1
  114. package/lib/commands/menu/delete.js +1 -1
  115. package/lib/commands/menu/external-link-create.js +1 -1
  116. package/lib/commands/menu/external-link-update.js +1 -1
  117. package/lib/commands/menu/group-create.js +1 -1
  118. package/lib/commands/menu/group-update.js +1 -1
  119. package/lib/commands/menu/index.js +1 -1
  120. package/lib/commands/menu/list.js +1 -1
  121. package/lib/commands/menu/move.js +1 -1
  122. package/lib/commands/menu/regroup-start.js +1 -1
  123. package/lib/commands/menu/rename.js +1 -1
  124. package/lib/commands/menu/shared/compare-table.js +1 -1
  125. package/lib/commands/menu/shared/delete-plan.js +1 -1
  126. package/lib/commands/menu/shared/facts.js +1 -1
  127. package/lib/commands/menu/shared/index.js +1 -1
  128. package/lib/commands/menu/shared/inquirer.js +1 -1
  129. package/lib/commands/menu/shared/local-pages.js +1 -1
  130. package/lib/commands/menu/shared/logic.js +1 -1
  131. package/lib/commands/menu/shared/mutations.js +1 -1
  132. package/lib/commands/menu/shared/service.js +1 -1
  133. package/lib/commands/menu/shared/sync-core.js +1 -1
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/create.js +1 -1
  146. package/lib/commands/page/custom/detail.js +1 -1
  147. package/lib/commands/page/custom/list.js +1 -1
  148. package/lib/commands/page/custom/publish.js +1 -1
  149. package/lib/commands/page/custom/shared.js +1 -1
  150. package/lib/commands/page/custom/syntax.js +1 -1
  151. package/lib/commands/page/custom/template.js +1 -1
  152. package/lib/commands/page/custom/update.js +1 -1
  153. package/lib/commands/page/data-list-status.js +1 -1
  154. package/lib/commands/page/generate-start.js +1 -1
  155. package/lib/commands/page/generate-status.js +1 -1
  156. package/lib/commands/page/index.js +1 -1
  157. package/lib/commands/page/pull.js +1 -1
  158. package/lib/commands/page/push.js +1 -1
  159. package/lib/commands/page/relation-audit.js +1 -1
  160. package/lib/commands/page/restore.js +1 -1
  161. package/lib/commands/page/shared.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.js +1 -1
  181. package/lib/commands/role/update.js +1 -1
  182. package/lib/commands/role/user-add.js +1 -1
  183. package/lib/commands/role/user-remove.js +1 -1
  184. package/lib/commands/role/user-resolve.js +1 -1
  185. package/lib/commands/run/index.js +1 -1
  186. package/lib/commands/schema.js +1 -1
  187. package/lib/commands/sql/create.js +1 -1
  188. package/lib/commands/sql/delete.js +1 -1
  189. package/lib/commands/sql/detail.js +1 -1
  190. package/lib/commands/sql/exec.js +1 -1
  191. package/lib/commands/sql/index.js +1 -1
  192. package/lib/commands/sql/list.js +1 -1
  193. package/lib/commands/sql/pull.js +1 -1
  194. package/lib/commands/sql/push.js +1 -1
  195. package/lib/commands/sql/shared.js +1 -1
  196. package/lib/commands/sql/status.js +1 -1
  197. package/lib/commands/sql/validate.js +1 -1
  198. package/lib/commands/task/index.js +1 -1
  199. package/lib/commands/task/status.js +1 -1
  200. package/lib/commands/tenant/index.js +1 -1
  201. package/lib/commands/tenant/members-list.js +1 -1
  202. package/lib/commands/tenant/shared.js +1 -1
  203. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  204. package/lib/commands/user-account/index.js +1 -1
  205. package/lib/commands/workspace/add.js +1 -1
  206. package/lib/commands/workspace/index.js +1 -1
  207. package/lib/commands/workspace/remove.js +1 -1
  208. package/lib/config/domain-config.d.ts +1 -1
  209. package/lib/config/domain-config.js +1 -1
  210. package/lib/config/project-routing.d.ts +30 -0
  211. package/lib/config/project-routing.js +1 -0
  212. package/lib/config/schema.d.ts +1 -1
  213. package/lib/config/schema.js +1 -1
  214. package/lib/constant/cdn.js +1 -1
  215. package/lib/constant/cli.js +1 -1
  216. package/lib/constant/defaults.js +1 -1
  217. package/lib/constant/domain.d.ts +7 -2
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.d.ts +2 -2
  223. package/lib/constant/region.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/constant/routing-profile.d.ts +115 -0
  226. package/lib/constant/routing-profile.js +1 -0
  227. package/lib/context/app-resolver.js +1 -1
  228. package/lib/context/auth-resolver.js +1 -1
  229. package/lib/context/config-loader.js +1 -1
  230. package/lib/context.js +1 -1
  231. package/lib/core/alias-resolver.js +1 -1
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.js +1 -1
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.js +1 -1
  272. package/lib/skills/main.js +1 -1
  273. package/lib/skills/npx-skills-add.js +1 -1
  274. package/lib/skills/skill-presence.js +1 -1
  275. package/lib/telemetry/cli-command-trace.js +1 -1
  276. package/lib/telemetry/cli-help-trace.js +1 -1
  277. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  278. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  279. package/lib/telemetry/send-cli-trace-log.js +1 -1
  280. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  281. package/lib/utils/ai_config.js +1 -1
  282. package/lib/utils/apply-jq-filter.js +1 -1
  283. package/lib/utils/cdn-config.js +1 -1
  284. package/lib/utils/check-sdk-version.js +1 -1
  285. package/lib/utils/cli-version-check.js +1 -1
  286. package/lib/utils/cli-version-policy.js +1 -1
  287. package/lib/utils/config.js +1 -1
  288. package/lib/utils/entity-with-id.js +1 -1
  289. package/lib/utils/file-utils.js +1 -1
  290. package/lib/utils/guides-cdn.js +1 -1
  291. package/lib/utils/http-client.js +1 -1
  292. package/lib/utils/is-non-interactive.js +1 -1
  293. package/lib/utils/logger.js +1 -1
  294. package/lib/utils/params.js +1 -1
  295. package/lib/utils/platform.js +1 -1
  296. package/lib/utils/sleep.js +1 -1
  297. package/lib/utils/template-replacer.js +1 -1
  298. package/lib/utils/update-notice.js +1 -1
  299. package/lib/utils/version.js +1 -1
  300. package/lib/utils/with-active-cookie.js +1 -1
  301. package/lib/utils/write-cli-side-channel.js +1 -1
  302. package/package.json +1 -2
  303. package/skills/rabetbase/SKILL.md +10 -5
  304. package/skills/rabetbase/guides/frontend-development.md +2 -0
  305. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  306. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  307. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  308. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  309. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  310. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  311. package/skills/rabetbase.manifest.json +3 -3
  312. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- const a272_0x3d0865=a272_0x76ab;function a272_0x19d0(){const _0x5dbc88=['2178153TaOyfb','rabetbase-cli','148329OrnfRB','manual','logData','40osEBlM','7PnJpnK','778056kCRWDk','3186210exUntT','spanName','traceName','traceparent','3891244JDLqDQ','6262380BTIwec','46ENZOep','2602362HfrORd'];a272_0x19d0=function(){return _0x5dbc88;};return a272_0x19d0();}(function(_0x17ba79,_0x84c301){const _0x339960=a272_0x76ab,_0xcd3793=_0x17ba79();while(!![]){try{const _0x2306e9=parseInt(_0x339960(0xc7))/0x1+parseInt(_0x339960(0xce))/0x2*(-parseInt(_0x339960(0xd2))/0x3)+parseInt(_0x339960(0xcc))/0x4+parseInt(_0x339960(0xcd))/0x5+-parseInt(_0x339960(0xcf))/0x6*(-parseInt(_0x339960(0xc6))/0x7)+parseInt(_0x339960(0xc5))/0x8*(-parseInt(_0x339960(0xd0))/0x9)+-parseInt(_0x339960(0xc8))/0xa;if(_0x2306e9===_0x84c301)break;else _0xcd3793['push'](_0xcd3793['shift']());}catch(_0x425a01){_0xcd3793['push'](_0xcd3793['shift']());}}}(a272_0x19d0,0xbc467));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a272_0x76ab(_0x911387,_0x37ef5c){_0x911387=_0x911387-0xc3;const _0x19d004=a272_0x19d0();let _0x76abf8=_0x19d004[_0x911387];return _0x76abf8;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a272_0x3d0865(0xd1);export async function sendCliTraceLog(_0x40d155){const _0x149d64=a272_0x3d0865;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x40d155[_0x149d64(0xca)]??DEFAULT_TRACE_NAME,'version':_0x40d155['version']??getCliVersion(),'spanName':_0x40d155[_0x149d64(0xc9)],'eventType':_0x149d64(0xc3),'logData':_0x40d155[_0x149d64(0xc4)],..._0x40d155['traceparent']&&{'traceparent':_0x40d155[_0x149d64(0xcb)]}});}
1
+ const a274_0x5b6199=a274_0x212c;(function(_0x3fe549,_0xef12ad){const _0x472210=a274_0x212c,_0x2fd8e0=_0x3fe549();while(!![]){try{const _0x29ebf3=parseInt(_0x472210(0x1f2))/0x1*(parseInt(_0x472210(0x1fd))/0x2)+-parseInt(_0x472210(0x1f0))/0x3+-parseInt(_0x472210(0x1f9))/0x4*(parseInt(_0x472210(0x1f3))/0x5)+parseInt(_0x472210(0x1fc))/0x6+-parseInt(_0x472210(0x1fb))/0x7*(-parseInt(_0x472210(0x1f1))/0x8)+parseInt(_0x472210(0x1f8))/0x9*(-parseInt(_0x472210(0x1fe))/0xa)+-parseInt(_0x472210(0x1fa))/0xb;if(_0x29ebf3===_0xef12ad)break;else _0x2fd8e0['push'](_0x2fd8e0['shift']());}catch(_0x4c15ca){_0x2fd8e0['push'](_0x2fd8e0['shift']());}}}(a274_0x4d1b,0x6a91a));import{sendTraceLog}from'@lovrabet/otel-logger';function a274_0x4d1b(){const _0x102fd6=['72849MkrbNS','4662474XvakBk','10SYSjbf','1834060CBlwzV','version','775926lXpBaG','376iNqzny','135028hrzcCz','4328265wdWrNf','traceparent','manual','rabetbase-cli','spanName','9pHwXIy','4kXmiBS','2168551nezTlf'];a274_0x4d1b=function(){return _0x102fd6;};return a274_0x4d1b();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a274_0x212c(_0x6bcb16,_0x5a9cb6){_0x6bcb16=_0x6bcb16-0x1ef;const _0x4d1b8e=a274_0x4d1b();let _0x212c6c=_0x4d1b8e[_0x6bcb16];return _0x212c6c;}const DEFAULT_TRACE_NAME=a274_0x5b6199(0x1f6);export async function sendCliTraceLog(_0x38cba2){const _0x189705=a274_0x5b6199;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x38cba2['traceName']??DEFAULT_TRACE_NAME,'version':_0x38cba2[_0x189705(0x1ef)]??getCliVersion(),'spanName':_0x38cba2[_0x189705(0x1f7)],'eventType':_0x189705(0x1f5),'logData':_0x38cba2['logData'],..._0x38cba2[_0x189705(0x1f4)]&&{'traceparent':_0x38cba2[_0x189705(0x1f4)]}});}
@@ -1 +1 @@
1
- const a273_0x2f99e3=a273_0x587e;(function(_0x10a552,_0x46b7f1){const _0x1feabd=a273_0x587e,_0x5d9d7c=_0x10a552();while(!![]){try{const _0xa1259a=parseInt(_0x1feabd(0x8f))/0x1*(-parseInt(_0x1feabd(0x96))/0x2)+-parseInt(_0x1feabd(0x89))/0x3*(parseInt(_0x1feabd(0x8b))/0x4)+-parseInt(_0x1feabd(0x97))/0x5*(parseInt(_0x1feabd(0x8c))/0x6)+-parseInt(_0x1feabd(0x9a))/0x7+parseInt(_0x1feabd(0x94))/0x8*(-parseInt(_0x1feabd(0x8d))/0x9)+-parseInt(_0x1feabd(0x91))/0xa*(parseInt(_0x1feabd(0x93))/0xb)+-parseInt(_0x1feabd(0x98))/0xc*(-parseInt(_0x1feabd(0x8e))/0xd);if(_0xa1259a===_0x46b7f1)break;else _0x5d9d7c['push'](_0x5d9d7c['shift']());}catch(_0x151ba1){_0x5d9d7c['push'](_0x5d9d7c['shift']());}}}(a273_0x1096,0x3f996));function a273_0x1096(){const _0x58f0a7=['485124uVSXqq','originalBytes','3432569gaMjWf','sanitize','80493FNfZfd','issue.log.collect','40kaePoT','2762478UsymkL','72ENutOR','611OaozZC','10691ckLLpH','platform-issue-log-collect','20bDyMwb','redactionCount','945263TjWBML','237920CUlrVL','redactionKinds','2mygZqg','5GXILAe'];a273_0x1096=function(){return _0x58f0a7;};return a273_0x1096();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x587e(_0x17dbde,_0x4e5228){_0x17dbde=_0x17dbde-0x89;const _0x10966b=a273_0x1096();let _0x587ef7=_0x10966b[_0x17dbde];return _0x587ef7;}export const PLATFORM_ISSUE_TRACE_NAME=a273_0x2f99e3(0x90);export const PLATFORM_ISSUE_SPAN_NAME=a273_0x2f99e3(0x8a);export async function sendPlatformIssueCollectLog(_0x16a35e){const _0x2f54ed=a273_0x2f99e3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x16a35e['title'],'issue.description':_0x16a35e['description'],..._0x16a35e['sanitize']?{'issue.description_original_bytes':_0x16a35e[_0x2f54ed(0x9b)][_0x2f54ed(0x99)],'issue.description_truncated':_0x16a35e[_0x2f54ed(0x9b)]['truncated'],'issue.description_redactions':_0x16a35e[_0x2f54ed(0x9b)][_0x2f54ed(0x92)],'issue.description_redaction_kinds':_0x16a35e[_0x2f54ed(0x9b)][_0x2f54ed(0x95)]['join'](',')}:{}}});}
1
+ const a275_0x108776=a275_0x160f;(function(_0x58f373,_0x179933){const _0x164a42=a275_0x160f,_0x4ebd8f=_0x58f373();while(!![]){try{const _0x4450da=parseInt(_0x164a42(0xf0))/0x1+-parseInt(_0x164a42(0xe9))/0x2+parseInt(_0x164a42(0xe7))/0x3*(parseInt(_0x164a42(0xf2))/0x4)+-parseInt(_0x164a42(0xeb))/0x5*(-parseInt(_0x164a42(0xec))/0x6)+-parseInt(_0x164a42(0xee))/0x7*(parseInt(_0x164a42(0xf5))/0x8)+parseInt(_0x164a42(0xf9))/0x9*(-parseInt(_0x164a42(0xea))/0xa)+parseInt(_0x164a42(0xf1))/0xb*(-parseInt(_0x164a42(0xef))/0xc);if(_0x4450da===_0x179933)break;else _0x4ebd8f['push'](_0x4ebd8f['shift']());}catch(_0x2f5906){_0x4ebd8f['push'](_0x4ebd8f['shift']());}}}(a275_0x2a5f,0x369c2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a275_0x108776(0xf3);function a275_0x2a5f(){const _0x24c4e6=['sanitize','9xTwwSm','354633ikGZWM','truncated','384380QQbKQV','430190yQcUbV','10cSGYJT','526158DpOzfX','title','1316RLtjkE','21636zRQabG','230170DmlpQP','1782ROICdr','12YdWbeR','platform-issue-log-collect','redactionCount','392IrikBf','description','redactionKinds'];a275_0x2a5f=function(){return _0x24c4e6;};return a275_0x2a5f();}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a275_0x160f(_0x2c2587,_0x3180d6){_0x2c2587=_0x2c2587-0xe7;const _0x2a5f2d=a275_0x2a5f();let _0x160f6b=_0x2a5f2d[_0x2c2587];return _0x160f6b;}export async function sendPlatformIssueCollectLog(_0x210489){const _0x34ed91=a275_0x108776;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x210489[_0x34ed91(0xed)],'issue.description':_0x210489[_0x34ed91(0xf6)],..._0x210489[_0x34ed91(0xf8)]?{'issue.description_original_bytes':_0x210489[_0x34ed91(0xf8)]['originalBytes'],'issue.description_truncated':_0x210489[_0x34ed91(0xf8)][_0x34ed91(0xe8)],'issue.description_redactions':_0x210489['sanitize'][_0x34ed91(0xf4)],'issue.description_redaction_kinds':_0x210489[_0x34ed91(0xf8)][_0x34ed91(0xf7)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- function a275_0x3913(_0x199d34,_0x4bfeaa){_0x199d34=_0x199d34-0x157;const _0x24d23f=a275_0x24d2();let _0x3913e5=_0x24d23f[_0x199d34];return _0x3913e5;}const a275_0x3c7be8=a275_0x3913;(function(_0x21b785,_0x4cb0b2){const _0x58c4d6=a275_0x3913,_0x1c9890=_0x21b785();while(!![]){try{const _0x11069b=parseInt(_0x58c4d6(0x181))/0x1*(-parseInt(_0x58c4d6(0x161))/0x2)+-parseInt(_0x58c4d6(0x171))/0x3*(-parseInt(_0x58c4d6(0x165))/0x4)+-parseInt(_0x58c4d6(0x17f))/0x5*(parseInt(_0x58c4d6(0x172))/0x6)+-parseInt(_0x58c4d6(0x176))/0x7*(parseInt(_0x58c4d6(0x167))/0x8)+parseInt(_0x58c4d6(0x15d))/0x9+-parseInt(_0x58c4d6(0x18e))/0xa*(parseInt(_0x58c4d6(0x18a))/0xb)+parseInt(_0x58c4d6(0x18c))/0xc*(parseInt(_0x58c4d6(0x183))/0xd);if(_0x11069b===_0x4cb0b2)break;else _0x1c9890['push'](_0x1c9890['shift']());}catch(_0x4e52ee){_0x1c9890['push'](_0x1c9890['shift']());}}}(a275_0x24d2,0xef256));export const CORE_IDE_CONFIGS={'cursor':{'name':a275_0x3c7be8(0x15f),'description':'Cursor\x20IDE','folders':[a275_0x3c7be8(0x16a),'.cursor'],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x169)}]},'windsurf':{'name':a275_0x3c7be8(0x157),'description':'Windsurf\x20IDE','folders':[a275_0x3c7be8(0x17b)],'files':[{'type':'file','path':a275_0x3c7be8(0x175)}]},'claude':{'name':'Claude\x20Code','description':a275_0x3c7be8(0x15a),'folders':['.claude'],'files':[{'type':a275_0x3c7be8(0x16b),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a275_0x3c7be8(0x182)],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x15e)}]},'codex':{'name':'Codex','description':a275_0x3c7be8(0x18d),'folders':[a275_0x3c7be8(0x173)],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x177)}]},'opencode':{'name':a275_0x3c7be8(0x17d),'description':a275_0x3c7be8(0x15c),'folders':[a275_0x3c7be8(0x185)],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x158)}]},'qoder':{'name':a275_0x3c7be8(0x17e),'description':a275_0x3c7be8(0x170),'folders':['.qoder'],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x15b)},{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x168)}]},'codebuddy':{'name':a275_0x3c7be8(0x16c),'description':'CodeBuddy\x20IDE','folders':[a275_0x3c7be8(0x178)],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x162)}]},'trae':{'name':a275_0x3c7be8(0x18b),'description':a275_0x3c7be8(0x16e),'folders':[a275_0x3c7be8(0x166)],'files':[{'type':'file','path':a275_0x3c7be8(0x189)}]}};function a275_0x24d2(){const _0x15e90c=['OpenCode','Qoder','16080WpQyhC','windsurf','1OKcMEo','.cline','13TCttJK','codex','.opencode','Other\x20(generic\x20template)','claude','qoder','.trae/skills/lovrabet/SKILL.md','102773FGiSYf','Trae','29252868bawZIs','Codex\x20IDE','1070yDZcjm','trae','Windsurf','.opencode/skills/lovrabet/SKILL.md','Antigravity','Claude\x20Code','.qoder/rules/rabetbase.md','OpenCode\x20IDE','6240708SJqGzH','.cline/skills/lovrabet/SKILL.md','Cursor','opencode','172846waVwJS','.codebuddy/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','.agent','1031684IBmRQn','.trae','8rurBsb','.qoder/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.cursorrules','file','CodeBuddy','cursor','Trae\x20IDE','cline','Qoder\x20IDE','3VWayUn','246VzHwaa','.codex','codebuddy','.windsurf/workflows/rabetbase.md','8340850vXjdzr','.codex/skills/lovrabet/SKILL.md','.codebuddy','Generic\x20template\x20fallback','antigravity','.windsurf','agent'];a275_0x24d2=function(){return _0x15e90c;};return a275_0x24d2();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a275_0x3c7be8(0x186),'description':a275_0x3c7be8(0x179),'folders':[a275_0x3c7be8(0x164)],'files':[{'type':'file','path':a275_0x3c7be8(0x163)}]},'antigravity':{'name':a275_0x3c7be8(0x159),'description':'Antigravity\x20IDE','folders':[a275_0x3c7be8(0x164)],'files':[{'type':a275_0x3c7be8(0x16b),'path':a275_0x3c7be8(0x163)}]}};export const CORE_IDE_LIST=[a275_0x3c7be8(0x187),a275_0x3c7be8(0x16f),a275_0x3c7be8(0x174),a275_0x3c7be8(0x184),a275_0x3c7be8(0x16d),a275_0x3c7be8(0x160),a275_0x3c7be8(0x188),a275_0x3c7be8(0x18f),a275_0x3c7be8(0x180)];export const IDE_LIST=[a275_0x3c7be8(0x17a),a275_0x3c7be8(0x187),a275_0x3c7be8(0x16f),a275_0x3c7be8(0x174),a275_0x3c7be8(0x184),a275_0x3c7be8(0x16d),a275_0x3c7be8(0x160),a275_0x3c7be8(0x188),'trae',a275_0x3c7be8(0x180),a275_0x3c7be8(0x17c)];export const ALL_CORE_IDES=['cursor',a275_0x3c7be8(0x180),'claude',a275_0x3c7be8(0x16f),a275_0x3c7be8(0x184),a275_0x3c7be8(0x160),a275_0x3c7be8(0x188),'codebuddy',a275_0x3c7be8(0x18f)];
1
+ const a277_0x2c1ab1=a277_0x291d;(function(_0x4a5c02,_0x3b793a){const _0x3f4669=a277_0x291d,_0x14588b=_0x4a5c02();while(!![]){try{const _0x3bb388=-parseInt(_0x3f4669(0x17b))/0x1*(parseInt(_0x3f4669(0x199))/0x2)+-parseInt(_0x3f4669(0x17e))/0x3+-parseInt(_0x3f4669(0x188))/0x4+-parseInt(_0x3f4669(0x18a))/0x5*(parseInt(_0x3f4669(0x18d))/0x6)+-parseInt(_0x3f4669(0x1aa))/0x7*(-parseInt(_0x3f4669(0x18e))/0x8)+-parseInt(_0x3f4669(0x1a0))/0x9*(parseInt(_0x3f4669(0x19c))/0xa)+parseInt(_0x3f4669(0x1a1))/0xb*(parseInt(_0x3f4669(0x17c))/0xc);if(_0x3bb388===_0x3b793a)break;else _0x14588b['push'](_0x14588b['shift']());}catch(_0x247182){_0x14588b['push'](_0x14588b['shift']());}}}(a277_0x11e7,0x979dd));export const CORE_IDE_CONFIGS={'cursor':{'name':a277_0x2c1ab1(0x1b0),'description':a277_0x2c1ab1(0x1a8),'folders':[a277_0x2c1ab1(0x190),a277_0x2c1ab1(0x193)],'files':[{'type':a277_0x2c1ab1(0x197),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a277_0x2c1ab1(0x194),'description':a277_0x2c1ab1(0x17d),'folders':['.windsurf'],'files':[{'type':a277_0x2c1ab1(0x197),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a277_0x2c1ab1(0x196),'description':a277_0x2c1ab1(0x196),'folders':['.claude'],'files':[{'type':a277_0x2c1ab1(0x197),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a277_0x2c1ab1(0x1a3),'description':'Cline\x20IDE','folders':[a277_0x2c1ab1(0x18b)],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x184)}]},'codex':{'name':a277_0x2c1ab1(0x191),'description':a277_0x2c1ab1(0x17a),'folders':[a277_0x2c1ab1(0x181)],'files':[{'type':a277_0x2c1ab1(0x197),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a277_0x2c1ab1(0x180),'description':a277_0x2c1ab1(0x1a9),'folders':[a277_0x2c1ab1(0x19a)],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x19e)}]},'qoder':{'name':a277_0x2c1ab1(0x19d),'description':a277_0x2c1ab1(0x1a5),'folders':[a277_0x2c1ab1(0x1ae)],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x19b)},{'type':'file','path':a277_0x2c1ab1(0x179)}]},'codebuddy':{'name':a277_0x2c1ab1(0x185),'description':a277_0x2c1ab1(0x18f),'folders':['.codebuddy'],'files':[{'type':'file','path':a277_0x2c1ab1(0x189)}]},'trae':{'name':a277_0x2c1ab1(0x1af),'description':a277_0x2c1ab1(0x192),'folders':[a277_0x2c1ab1(0x1ad)],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x195)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a277_0x2c1ab1(0x1a2),'description':a277_0x2c1ab1(0x187),'folders':[a277_0x2c1ab1(0x17f)],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x1ac)}]},'antigravity':{'name':a277_0x2c1ab1(0x1a7),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a277_0x2c1ab1(0x197),'path':a277_0x2c1ab1(0x1ac)}]}};function a277_0x291d(_0x204640,_0xa12ab2){_0x204640=_0x204640-0x179;const _0x11e774=a277_0x11e7();let _0x291db8=_0x11e774[_0x204640];return _0x291db8;}export const CORE_IDE_LIST=['claude',a277_0x2c1ab1(0x1a6),a277_0x2c1ab1(0x198),a277_0x2c1ab1(0x186),'cursor',a277_0x2c1ab1(0x19f),a277_0x2c1ab1(0x1a4),a277_0x2c1ab1(0x1ab),a277_0x2c1ab1(0x183)];export const IDE_LIST=['antigravity',a277_0x2c1ab1(0x18c),a277_0x2c1ab1(0x1a6),a277_0x2c1ab1(0x198),a277_0x2c1ab1(0x186),a277_0x2c1ab1(0x182),'opencode','qoder',a277_0x2c1ab1(0x1ab),a277_0x2c1ab1(0x183),'agent'];export const ALL_CORE_IDES=[a277_0x2c1ab1(0x182),a277_0x2c1ab1(0x183),a277_0x2c1ab1(0x18c),'cline',a277_0x2c1ab1(0x186),a277_0x2c1ab1(0x19f),a277_0x2c1ab1(0x1a4),'codebuddy','trae'];function a277_0x11e7(){const _0x4bb09e=['cline','Antigravity','Cursor\x20IDE','OpenCode\x20IDE','7hPUKTL','trae','.agent/skills/lovrabet/SKILL.md','.trae','.qoder','Trae','Cursor','.qoder/skills/lovrabet/SKILL.md','Codex\x20IDE','2WEHVNB','313212AEOxAf','Windsurf\x20IDE','61821TymrXc','.agent','OpenCode','.codex','cursor','windsurf','.cline/skills/lovrabet/SKILL.md','CodeBuddy','codex','Generic\x20template\x20fallback','3333440nLKWKX','.codebuddy/skills/lovrabet/SKILL.md','29800hnIIuD','.cline','claude','936hvLzKo','6034376AaYEgS','CodeBuddy\x20IDE','.cursorrules','Codex','Trae\x20IDE','.cursor','Windsurf','.trae/skills/lovrabet/SKILL.md','Claude\x20Code','file','codebuddy','1069710jXWrRu','.opencode','.qoder/rules/rabetbase.md','230Hlxhmh','Qoder','.opencode/skills/lovrabet/SKILL.md','opencode','59067uOeAlt','1210OMGsMu','Other\x20(generic\x20template)','Cline','qoder','Qoder\x20IDE'];a277_0x11e7=function(){return _0x4bb09e;};return a277_0x11e7();}
@@ -1 +1 @@
1
- function a276_0x3a17(){const _0x519d76=['2znWLcU','4548936abFCIy','3310KixpYz','1968930bswZmx','1633772RvQypb','905037nFyJeH','3558YvTYfC','133286qtqKmn','16692327XuZgEM'];a276_0x3a17=function(){return _0x519d76;};return a276_0x3a17();}(function(_0x273eea,_0x9eb463){const _0x1a9794=a276_0x2da0,_0x10147f=_0x273eea();while(!![]){try{const _0x34889d=parseInt(_0x1a9794(0x13c))/0x1*(-parseInt(_0x1a9794(0x13a))/0x2)+-parseInt(_0x1a9794(0x13f))/0x3+-parseInt(_0x1a9794(0x140))/0x4+parseInt(_0x1a9794(0x13e))/0x5*(parseInt(_0x1a9794(0x139))/0x6)+-parseInt(_0x1a9794(0x141))/0x7+-parseInt(_0x1a9794(0x13d))/0x8+parseInt(_0x1a9794(0x13b))/0x9;if(_0x34889d===_0x9eb463)break;else _0x10147f['push'](_0x10147f['shift']());}catch(_0x3cdac8){_0x10147f['push'](_0x10147f['shift']());}}}(a276_0x3a17,0x55c5a));function a276_0x2da0(_0x8cb8db,_0x19e926){_0x8cb8db=_0x8cb8db-0x139;const _0x3a17cb=a276_0x3a17();let _0x2da03b=_0x3a17cb[_0x8cb8db];return _0x2da03b;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xeb2c30,_0x35a4b7){const _0x3ad392=a278_0x3e7d,_0x3726c8=_0xeb2c30();while(!![]){try{const _0x3358d5=-parseInt(_0x3ad392(0x1e7))/0x1+parseInt(_0x3ad392(0x1ec))/0x2+-parseInt(_0x3ad392(0x1eb))/0x3*(parseInt(_0x3ad392(0x1e8))/0x4)+parseInt(_0x3ad392(0x1e4))/0x5*(-parseInt(_0x3ad392(0x1e6))/0x6)+-parseInt(_0x3ad392(0x1ea))/0x7*(parseInt(_0x3ad392(0x1ed))/0x8)+parseInt(_0x3ad392(0x1e3))/0x9+parseInt(_0x3ad392(0x1e5))/0xa*(parseInt(_0x3ad392(0x1e9))/0xb);if(_0x3358d5===_0x35a4b7)break;else _0x3726c8['push'](_0x3726c8['shift']());}catch(_0x6b4a1d){_0x3726c8['push'](_0x3726c8['shift']());}}}(a278_0x46c6,0xd7596));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a278_0x46c6(){const _0x499424=['119086Ioltny','475818Bdohvo','93QQjdaX','718014MpOzjk','8WskrIz','10761219nnzXJt','5YENdnO','1620MuSxmD','3631902SkIkSA','513490PUCZJR','159956FADGNZ'];a278_0x46c6=function(){return _0x499424;};return a278_0x46c6();}function a278_0x3e7d(_0x4fe134,_0x3d8d80){_0x4fe134=_0x4fe134-0x1e3;const _0x46c6c0=a278_0x46c6();let _0x3e7d86=_0x46c6c0[_0x4fe134];return _0x3e7d86;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x33810f,_0x45d806){const _0x206cdd=a277_0x28f5,_0x2e05dd=_0x33810f();while(!![]){try{const _0x36ea53=parseInt(_0x206cdd(0x17c))/0x1*(parseInt(_0x206cdd(0x179))/0x2)+parseInt(_0x206cdd(0x184))/0x3+-parseInt(_0x206cdd(0x185))/0x4+-parseInt(_0x206cdd(0x182))/0x5*(-parseInt(_0x206cdd(0x17d))/0x6)+parseInt(_0x206cdd(0x175))/0x7*(parseInt(_0x206cdd(0x174))/0x8)+parseInt(_0x206cdd(0x17a))/0x9*(-parseInt(_0x206cdd(0x181))/0xa)+-parseInt(_0x206cdd(0x178))/0xb*(-parseInt(_0x206cdd(0x183))/0xc);if(_0x36ea53===_0x45d806)break;else _0x2e05dd['push'](_0x2e05dd['shift']());}catch(_0x299018){_0x2e05dd['push'](_0x2e05dd['shift']());}}}(a277_0x1616,0x53e92));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x159d03=a277_0x28f5,_0x199033=getTemplateBaseUrl(),_0x56903f=[_0x199033+'/config.json',_0x199033+_0x159d03(0x187)];for(const _0x7976a8 of _0x56903f){try{const _0x500560=await fetch(_0x7976a8,{'headers':{'Accept':_0x159d03(0x17f)}});if(!_0x500560['ok'])continue;const _0x198a7b=await _0x500560[_0x159d03(0x176)]();if(!_0x198a7b[_0x159d03(0x17b)]?.[_0x159d03(0x177)]||!_0x198a7b[_0x159d03(0x17e)]?.[_0x159d03(0x186)]?.[_0x159d03(0x177)])continue;return _0x198a7b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a277_0x1616(){const _0x277321=['166jKdDZH','1175949iVywkY','cli','2908jVEtPL','5412cokqhW','sdk','application/json','now','50HMarje','265iELVBs','36gOIXrS','1898259zTYqSO','1679796UGPDnp','node','/config/index.json','14024IgkFpn','1358iONBqR','json','stableVersion','568139OzbaPc'];a277_0x1616=function(){return _0x277321;};return a277_0x1616();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a277_0x28f5(_0x39d9ad,_0xb5c736){_0x39d9ad=_0x39d9ad-0x174;const _0x161614=a277_0x1616();let _0x28f587=_0x161614[_0x39d9ad];return _0x28f587;}export async function getCdnConfig(){const _0x15bdd3=a277_0x28f5,_0x8fd4c7=Date[_0x15bdd3(0x180)]();if(hasCachedConfig){const _0x284ef2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x8fd4c7-cacheTime<_0x284ef2)return cachedConfig;}const _0x150782=await fetchCdnConfig();return cachedConfig=_0x150782,cacheTime=_0x8fd4c7,hasCachedConfig=!![],_0x150782;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x27add4,_0x1567e0){const _0x278331=a279_0x4ee7,_0x398535=_0x27add4();while(!![]){try{const _0x5732d3=-parseInt(_0x278331(0x65))/0x1+parseInt(_0x278331(0x6a))/0x2+-parseInt(_0x278331(0x69))/0x3+-parseInt(_0x278331(0x64))/0x4*(parseInt(_0x278331(0x6e))/0x5)+parseInt(_0x278331(0x67))/0x6+parseInt(_0x278331(0x72))/0x7+-parseInt(_0x278331(0x70))/0x8;if(_0x5732d3===_0x1567e0)break;else _0x398535['push'](_0x398535['shift']());}catch(_0x4595b4){_0x398535['push'](_0x398535['shift']());}}}(a279_0x5d70,0x19373));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x10a371=a279_0x4ee7,_0x1f831e=getTemplateBaseUrl(),_0x1f3e0c=[_0x1f831e+_0x10a371(0x66),_0x1f831e+_0x10a371(0x73)];for(const _0x4e210a of _0x1f3e0c){try{const _0x2431ea=await fetch(_0x4e210a,{'headers':{'Accept':_0x10a371(0x6f)}});if(!_0x2431ea['ok'])continue;const _0x1ee6c3=await _0x2431ea[_0x10a371(0x6b)]();if(!_0x1ee6c3[_0x10a371(0x71)]?.[_0x10a371(0x68)]||!_0x1ee6c3[_0x10a371(0x6c)]?.[_0x10a371(0x6d)]?.['stableVersion'])continue;return _0x1ee6c3;}catch{}}return null;}function a279_0x5d70(){const _0xb0654=['json','sdk','node','65YEAfAf','application/json','378600VXvqlu','cli','746445OWzAjS','/config/index.json','31468tnxRLb','13576NROgrq','/config.json','696696ujVWPu','stableVersion','98718hHuZUv','153220ZPJewq'];a279_0x5d70=function(){return _0xb0654;};return a279_0x5d70();}function a279_0x4ee7(_0x31617c,_0x2422cb){_0x31617c=_0x31617c-0x64;const _0x5d7035=a279_0x5d70();let _0x4ee771=_0x5d7035[_0x31617c];return _0x4ee771;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x48ad8b=Date['now']();if(hasCachedConfig){const _0x134932=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x48ad8b-cacheTime<_0x134932)return cachedConfig;}const _0x35ad97=await fetchCdnConfig();return cachedConfig=_0x35ad97,cacheTime=_0x48ad8b,hasCachedConfig=!![],_0x35ad97;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a278_0x1a2299=a278_0x2a6a;(function(_0xffbe7,_0xa6af4e){const _0x2f804a=a278_0x2a6a,_0x5053f7=_0xffbe7();while(!![]){try{const _0xe11c93=-parseInt(_0x2f804a(0x1a5))/0x1*(parseInt(_0x2f804a(0x1ad))/0x2)+-parseInt(_0x2f804a(0x1a6))/0x3+-parseInt(_0x2f804a(0x1bf))/0x4+-parseInt(_0x2f804a(0x1a9))/0x5+parseInt(_0x2f804a(0x1ae))/0x6+parseInt(_0x2f804a(0x1c5))/0x7+parseInt(_0x2f804a(0x1a7))/0x8;if(_0xe11c93===_0xa6af4e)break;else _0x5053f7['push'](_0x5053f7['shift']());}catch(_0x451485){_0x5053f7['push'](_0x5053f7['shift']());}}}(a278_0x32a9,0xbcb04));import a278_0x25ef46 from'node:fs';import a278_0x2fd89d from'node:path';import a278_0x1045cd from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a278_0x1a2299(0x1a8);function isNonNumericVersion(_0x448a9b){const _0x160168=a278_0x1a2299,_0x3760fa=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3760fa[_0x160168(0x1ab)](_0x5bff65=>_0x5bff65[_0x160168(0x1c1)](_0x448a9b));}function getInstalledVersion(_0x3c014a,_0x935e0a){const _0x1c73ae=a278_0x1a2299;try{const _0x39f7a6=a278_0x2fd89d[_0x1c73ae(0x1ac)](_0x3c014a,_0x1c73ae(0x1b4),_0x935e0a,'package.json');if(a278_0x25ef46[_0x1c73ae(0x1bd)](_0x39f7a6)){const _0x5b688f=JSON['parse'](a278_0x25ef46[_0x1c73ae(0x1b5)](_0x39f7a6,_0x1c73ae(0x1aa)));return _0x5b688f[_0x1c73ae(0x1ba)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x599579=a278_0x1a2299;try{const _0x530cc2=await getCdnConfig();return _0x530cc2?.['sdk']?.[_0x599579(0x1b2)]?.[_0x599579(0x1b6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1f5096=a278_0x1a2299;try{const _0x4d6194=await getCdnConfig();return _0x4d6194?.[_0x1f5096(0x1bc)]?.[_0x1f5096(0x1b2)]?.[_0x1f5096(0x1c2)]||_0x1f5096(0x1b7);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x391fa0){const _0x574d0a=a278_0x1a2299,_0x274cf1=a278_0x2fd89d[_0x574d0a(0x1ac)](_0x391fa0,_0x574d0a(0x1b1)),[_0x1ac1da,_0x28e687]=await Promise[_0x574d0a(0x1c3)]([getSdkStableVersion(),getSdkPackageName()]),_0x2bd0bf=_0x1ac1da||FALLBACK_MIN_SDK_VERSION;if(!a278_0x25ef46[_0x574d0a(0x1bd)](_0x274cf1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bd0bf,'packageName':_0x28e687,'stableVersion':_0x1ac1da};try{const _0x3741a0=JSON[_0x574d0a(0x1af)](a278_0x25ef46[_0x574d0a(0x1b5)](_0x274cf1,_0x574d0a(0x1c0))),_0x278b98=_0x3741a0[_0x574d0a(0x1bb)]||{},_0x151577=_0x3741a0['devDependencies']||{},_0x2785bf=_0x278b98[_0x28e687]||_0x151577[_0x28e687];if(!_0x2785bf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bd0bf,'packageName':_0x28e687,'stableVersion':_0x1ac1da};let _0x319175=getInstalledVersion(_0x391fa0,_0x28e687);!_0x319175&&(_0x319175=_0x2785bf);if(isNonNumericVersion(_0x2785bf))return{'installed':!![],'version':_0x319175,'needsUpgrade':![],'minVersion':_0x2bd0bf,'packageName':_0x28e687,'stableVersion':_0x1ac1da};const _0x77890a=a278_0x1045cd['coerce'](_0x319175),_0x33d39a=a278_0x1045cd[_0x574d0a(0x1b8)](_0x2bd0bf),_0x49893b=_0x77890a&&_0x33d39a?a278_0x1045cd['lt'](_0x77890a,_0x33d39a):![];return{'installed':!![],'version':_0x319175,'needsUpgrade':_0x49893b,'minVersion':_0x2bd0bf,'packageName':_0x28e687,'stableVersion':_0x1ac1da};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bd0bf,'packageName':_0x28e687,'stableVersion':_0x1ac1da};}}export function checkSdkVersionSync(_0xc9acf3){const _0x30cca6=a278_0x1a2299,_0x4e7829=a278_0x2fd89d[_0x30cca6(0x1ac)](_0xc9acf3,_0x30cca6(0x1b1)),_0x2761b9='@lovrabet/sdk';if(!a278_0x25ef46[_0x30cca6(0x1bd)](_0x4e7829))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2761b9,'stableVersion':null};try{const _0x16c21=JSON[_0x30cca6(0x1af)](a278_0x25ef46['readFileSync'](_0x4e7829,_0x30cca6(0x1c0))),_0x10704b=_0x16c21['dependencies']||{},_0x17e272=_0x16c21['devDependencies']||{},_0x5a79cc=_0x10704b[_0x2761b9]||_0x17e272[_0x2761b9];if(!_0x5a79cc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2761b9,'stableVersion':null};let _0x1a5b3c=getInstalledVersion(_0xc9acf3,_0x2761b9);!_0x1a5b3c&&(_0x1a5b3c=_0x5a79cc);if(isNonNumericVersion(_0x5a79cc))return{'installed':!![],'version':_0x1a5b3c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2761b9,'stableVersion':null};const _0x23706f=a278_0x1045cd['coerce'](_0x1a5b3c),_0x2e67bd=_0x23706f?a278_0x1045cd['lt'](_0x23706f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1a5b3c,'needsUpgrade':_0x2e67bd,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2761b9,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2761b9,'stableVersion':null};}}function a278_0x2a6a(_0x39f46d,_0x10c572){_0x39f46d=_0x39f46d-0x1a5;const _0x32a984=a278_0x32a9();let _0x2a6aa0=_0x32a984[_0x39f46d];return _0x2a6aa0;}function a278_0x32a9(){const _0x17de08=['utf8','test','packageName','all','minVersion','7039130KxZsXk','44531ANaPHL','350349dMviDJ','17210024EUrxTH','1.2.0','7083910feOCmg','utf-8','some','join','18pLyTcZ','2622888OJktSp','parse','log','package.json','node','npm\x20install\x20','node_modules','readFileSync','stableVersion','@lovrabet/sdk','coerce','latest','version','dependencies','sdk','existsSync','\x20\x20\x20Current\x20version:\x20','3547116cZTdSL'];a278_0x32a9=function(){return _0x17de08;};return a278_0x32a9();}export function printSdkUpgradeWarning(_0x2a3e9b){const _0x3360fe=a278_0x1a2299;if(!_0x2a3e9b['needsUpgrade'])return;const _0xd9979e='\x1b[33m',_0x41205d='\x1b[0m',_0x1c3f83='\x1b[1m',_0x15e3d1=_0x2a3e9b[_0x3360fe(0x1c2)]||_0x3360fe(0x1b7),_0x6a2edf=_0x2a3e9b[_0x3360fe(0x1b6)]||_0x2a3e9b[_0x3360fe(0x1c4)],_0x57ceac=_0x3360fe(0x1b3)+_0x15e3d1+'@'+(_0x6a2edf||_0x3360fe(0x1b9));console[_0x3360fe(0x1b0)](),console[_0x3360fe(0x1b0)](''+_0xd9979e+_0x1c3f83+'↪\x20SDK\x20update\x20available'+_0x41205d),console[_0x3360fe(0x1b0)](_0xd9979e+_0x3360fe(0x1be)+_0x15e3d1+'@'+_0x2a3e9b['version']+_0x41205d),console['log'](_0xd9979e+'\x20\x20\x20Stable\x20version:\x20'+_0x6a2edf+_0x41205d),console[_0x3360fe(0x1b0)](_0xd9979e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x57ceac+_0x41205d),console[_0x3360fe(0x1b0)]();}
1
+ (function(_0x153d2c,_0x588094){const _0x5c7e21=a280_0x14f3,_0x849da=_0x153d2c();while(!![]){try{const _0x2a1e8e=parseInt(_0x5c7e21(0xc8))/0x1+parseInt(_0x5c7e21(0xb2))/0x2+-parseInt(_0x5c7e21(0xd3))/0x3*(-parseInt(_0x5c7e21(0xc7))/0x4)+parseInt(_0x5c7e21(0xc1))/0x5+parseInt(_0x5c7e21(0xca))/0x6+-parseInt(_0x5c7e21(0xb5))/0x7+-parseInt(_0x5c7e21(0xb7))/0x8;if(_0x2a1e8e===_0x588094)break;else _0x849da['push'](_0x849da['shift']());}catch(_0x1fd111){_0x849da['push'](_0x849da['shift']());}}}(a280_0x4150,0xc672e));import a280_0x16d59c from'node:fs';import a280_0x4ec84a from'node:path';import a280_0xc6fe55 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a280_0x4150(){const _0x3549e1=['stableVersion','readFileSync','some','sdk','node_modules','@lovrabet/sdk','\x1b[1m','join','6455970vZNDpL','\x20\x20\x20Upgrade\x20command:\x20','existsSync','packageName','\x20\x20\x20Current\x20version:\x20','coerce','3188SJnwQk','198933oFEBVl','\x1b[33m','7260462JZHsxs','devDependencies','package.json','\x20\x20\x20Stable\x20version:\x20','node','parse','version','latest','utf-8','5238prYJfE','↪\x20SDK\x20update\x20available','utf8','all','dependencies','2821372WoDCcZ','npm\x20install\x20','\x1b[0m','3261223BQkzUu','test','33789736EgiBSz','log'];a280_0x4150=function(){return _0x3549e1;};return a280_0x4150();}function isNonNumericVersion(_0x25fa35){const _0x1e1e7d=a280_0x14f3,_0x3aada4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3aada4[_0x1e1e7d(0xbb)](_0x3c67b3=>_0x3c67b3[_0x1e1e7d(0xb6)](_0x25fa35));}function getInstalledVersion(_0x3589e7,_0x4cdc27){const _0x2afb25=a280_0x14f3;try{const _0xc18ef5=a280_0x4ec84a[_0x2afb25(0xc0)](_0x3589e7,_0x2afb25(0xbd),_0x4cdc27,_0x2afb25(0xcc));if(a280_0x16d59c['existsSync'](_0xc18ef5)){const _0x26ffc1=JSON[_0x2afb25(0xcf)](a280_0x16d59c[_0x2afb25(0xba)](_0xc18ef5,_0x2afb25(0xd2)));return _0x26ffc1[_0x2afb25(0xd0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5788ae=a280_0x14f3;try{const _0x298432=await getCdnConfig();return _0x298432?.[_0x5788ae(0xbc)]?.[_0x5788ae(0xce)]?.[_0x5788ae(0xb9)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xdec748=a280_0x14f3;try{const _0x3887aa=await getCdnConfig();return _0x3887aa?.[_0xdec748(0xbc)]?.['node']?.[_0xdec748(0xc4)]||'@lovrabet/sdk';}catch{return _0xdec748(0xbe);}}export async function checkSdkVersion(_0x4f48b4){const _0x13eb8e=a280_0x14f3,_0xce0106=a280_0x4ec84a[_0x13eb8e(0xc0)](_0x4f48b4,'package.json'),[_0x582e66,_0x21d88c]=await Promise[_0x13eb8e(0xb0)]([getSdkStableVersion(),getSdkPackageName()]),_0xf8408b=_0x582e66||FALLBACK_MIN_SDK_VERSION;if(!a280_0x16d59c[_0x13eb8e(0xc3)](_0xce0106))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf8408b,'packageName':_0x21d88c,'stableVersion':_0x582e66};try{const _0x5d31c2=JSON[_0x13eb8e(0xcf)](a280_0x16d59c[_0x13eb8e(0xba)](_0xce0106,_0x13eb8e(0xaf))),_0x3ecb53=_0x5d31c2['dependencies']||{},_0x400bfb=_0x5d31c2[_0x13eb8e(0xcb)]||{},_0x1e4d21=_0x3ecb53[_0x21d88c]||_0x400bfb[_0x21d88c];if(!_0x1e4d21)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf8408b,'packageName':_0x21d88c,'stableVersion':_0x582e66};let _0x7cdd87=getInstalledVersion(_0x4f48b4,_0x21d88c);!_0x7cdd87&&(_0x7cdd87=_0x1e4d21);if(isNonNumericVersion(_0x1e4d21))return{'installed':!![],'version':_0x7cdd87,'needsUpgrade':![],'minVersion':_0xf8408b,'packageName':_0x21d88c,'stableVersion':_0x582e66};const _0x414b1d=a280_0xc6fe55[_0x13eb8e(0xc6)](_0x7cdd87),_0x2a81ab=a280_0xc6fe55[_0x13eb8e(0xc6)](_0xf8408b),_0x4483a8=_0x414b1d&&_0x2a81ab?a280_0xc6fe55['lt'](_0x414b1d,_0x2a81ab):![];return{'installed':!![],'version':_0x7cdd87,'needsUpgrade':_0x4483a8,'minVersion':_0xf8408b,'packageName':_0x21d88c,'stableVersion':_0x582e66};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xf8408b,'packageName':_0x21d88c,'stableVersion':_0x582e66};}}function a280_0x14f3(_0x4a838a,_0x3baf6e){_0x4a838a=_0x4a838a-0xae;const _0x4150cd=a280_0x4150();let _0x14f329=_0x4150cd[_0x4a838a];return _0x14f329;}export function checkSdkVersionSync(_0x2731fc){const _0x1d0868=a280_0x14f3,_0x37c4e1=a280_0x4ec84a['join'](_0x2731fc,_0x1d0868(0xcc)),_0x52f809=_0x1d0868(0xbe);if(!a280_0x16d59c[_0x1d0868(0xc3)](_0x37c4e1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52f809,'stableVersion':null};try{const _0x4242f5=JSON['parse'](a280_0x16d59c[_0x1d0868(0xba)](_0x37c4e1,_0x1d0868(0xaf))),_0x12383c=_0x4242f5[_0x1d0868(0xb1)]||{},_0x2d2372=_0x4242f5[_0x1d0868(0xcb)]||{},_0x5705c2=_0x12383c[_0x52f809]||_0x2d2372[_0x52f809];if(!_0x5705c2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52f809,'stableVersion':null};let _0x5097d9=getInstalledVersion(_0x2731fc,_0x52f809);!_0x5097d9&&(_0x5097d9=_0x5705c2);if(isNonNumericVersion(_0x5705c2))return{'installed':!![],'version':_0x5097d9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52f809,'stableVersion':null};const _0x151794=a280_0xc6fe55[_0x1d0868(0xc6)](_0x5097d9),_0x149a99=_0x151794?a280_0xc6fe55['lt'](_0x151794,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5097d9,'needsUpgrade':_0x149a99,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52f809,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52f809,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x23d82d){const _0x2a21a7=a280_0x14f3;if(!_0x23d82d['needsUpgrade'])return;const _0x594623=_0x2a21a7(0xc9),_0x2d85f8=_0x2a21a7(0xb4),_0x5ad03e=_0x2a21a7(0xbf),_0x21d1f6=_0x23d82d['packageName']||_0x2a21a7(0xbe),_0x41823a=_0x23d82d['stableVersion']||_0x23d82d['minVersion'],_0x43d742=_0x2a21a7(0xb3)+_0x21d1f6+'@'+(_0x41823a||_0x2a21a7(0xd1));console[_0x2a21a7(0xb8)](),console['log'](''+_0x594623+_0x5ad03e+_0x2a21a7(0xae)+_0x2d85f8),console[_0x2a21a7(0xb8)](_0x594623+_0x2a21a7(0xc5)+_0x21d1f6+'@'+_0x23d82d[_0x2a21a7(0xd0)]+_0x2d85f8),console[_0x2a21a7(0xb8)](_0x594623+_0x2a21a7(0xcd)+_0x41823a+_0x2d85f8),console[_0x2a21a7(0xb8)](_0x594623+_0x2a21a7(0xc2)+_0x43d742+_0x2d85f8),console[_0x2a21a7(0xb8)]();}
@@ -1 +1 @@
1
- (function(_0x16f3a3,_0xed9151){const _0x2033e7=a279_0x2043,_0x5f11e6=_0x16f3a3();while(!![]){try{const _0x199ad0=parseInt(_0x2033e7(0x1e6))/0x1+parseInt(_0x2033e7(0x1dd))/0x2+-parseInt(_0x2033e7(0x1f5))/0x3+-parseInt(_0x2033e7(0x1d9))/0x4+-parseInt(_0x2033e7(0x1f6))/0x5*(parseInt(_0x2033e7(0x1e0))/0x6)+-parseInt(_0x2033e7(0x1d6))/0x7*(parseInt(_0x2033e7(0x1e5))/0x8)+parseInt(_0x2033e7(0x1e1))/0x9;if(_0x199ad0===_0xed9151)break;else _0x5f11e6['push'](_0x5f11e6['shift']());}catch(_0x3cb62c){_0x5f11e6['push'](_0x5f11e6['shift']());}}}(a279_0x9929,0x33503));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a279_0x300b63 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(_0x31642c){const _0x3751b7=a279_0x2043,_0x5efbf9=_0x31642c[_0x3751b7(0x1f2)]||_0x3751b7(0x1ee);return _0x3751b7(0x1e8)+NPM_PACKAGE_NAME+'@'+_0x5efbf9;}function a279_0x9929(){const _0xaf7aea=['log','coerce','↪\x20Critical\x20CLI\x20upgrade\x20required','parse','77aRpRKr','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20version:\x20','1560196SWtdLY','Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','belowMinimum','580090FjpDjs','upgradeMessage','Minimum\x20supported:\x20','6nTdtCG','8159175ZuoRYk','\x20\x20\x20Upgrade\x20command:\x20','\x1b[1m','\x1b[0m','221584BKyyGh','25048WyAMie','join','npm\x20install\x20-g\x20','↪\x20New\x20version\x20available','\x20\x20\x20','1.0.0','minimumVersionMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','latest','needsUpgrade','utf-8','\x20\x20\x20Recommended\x20stable:\x20','stableVersion','../..','currentVersion','399003nruIto','918805ScAyFn','\x1b[31m','validation','minimumVersion','\x1b[33m'];a279_0x9929=function(){return _0xaf7aea;};return a279_0x9929();}function getCurrentCliVersion(){const _0x59f619=a279_0x2043;try{const _0x1f85f7=fileURLToPath(import.meta.url),_0x233601=resolve(dirname(_0x1f85f7),_0x59f619(0x1f3)),_0x129239=resolve(_0x233601,'package.json'),_0x53ba2=JSON[_0x59f619(0x1d5)](readFileSync(_0x129239,_0x59f619(0x1f0)));return _0x53ba2['version']||'1.0.0';}catch{return _0x59f619(0x1eb);}}export async function checkCliVersion(){const _0x1f730e=a279_0x2043,_0x39f183=getCurrentCliVersion(),_0x36191e=await getCliVersionPolicy(),_0x43e21c=_0x36191e?.[_0x1f730e(0x1f2)]||null,_0xeda5db=_0x36191e?.[_0x1f730e(0x1f9)]||null;let _0x4fd28c=![],_0x220725=![];const _0x203b4a=a279_0x300b63['coerce'](_0x39f183);if(_0x203b4a&&_0x43e21c)try{const _0x49ee3b=a279_0x300b63[_0x1f730e(0x1d3)](_0x43e21c);if(_0x49ee3b)_0x4fd28c=a279_0x300b63['lt'](_0x203b4a,_0x49ee3b);}catch{}if(_0x203b4a&&_0xeda5db)try{const _0x21c3db=a279_0x300b63[_0x1f730e(0x1d3)](_0xeda5db);if(_0x21c3db)_0x220725=a279_0x300b63['lt'](_0x203b4a,_0x21c3db);}catch{}return _0x220725&&(_0x4fd28c=!![]),{'currentVersion':_0x39f183,'stableVersion':_0x43e21c,'minimumVersion':_0xeda5db,'needsUpgrade':_0x4fd28c,'belowMinimum':_0x220725,'isPreRelease':![],'upgradeMessage':_0x36191e?.[_0x1f730e(0x1de)],'minimumVersionMessage':_0x36191e?.[_0x1f730e(0x1ec)]};}export function printCliUpgradeWarning(_0x3e9bdf){const _0x298869=a279_0x2043;if(!_0x3e9bdf[_0x298869(0x1ef)]&&!_0x3e9bdf['belowMinimum'])return;const _0x11d07a=_0x298869(0x1f7),_0x4b3078=_0x298869(0x1fa),_0x149d7b=_0x298869(0x1e4),_0x47492d=_0x298869(0x1e3),_0x2b3eee=getCliUpgradeCommand(_0x3e9bdf);console[_0x298869(0x1fb)](),_0x3e9bdf[_0x298869(0x1dc)]?(console[_0x298869(0x1fb)](''+_0x11d07a+_0x47492d+_0x298869(0x1d4)+_0x149d7b),console[_0x298869(0x1fb)](_0x11d07a+_0x298869(0x1d7)+_0x3e9bdf['currentVersion']+_0x149d7b),_0x3e9bdf['minimumVersion']&&console[_0x298869(0x1fb)](_0x11d07a+'\x20\x20\x20Minimum\x20supported:\x20'+_0x3e9bdf[_0x298869(0x1f9)]+_0x149d7b),_0x3e9bdf[_0x298869(0x1f2)]&&_0x3e9bdf[_0x298869(0x1f2)]!==_0x3e9bdf['minimumVersion']&&console['log'](_0x11d07a+_0x298869(0x1f1)+_0x3e9bdf[_0x298869(0x1f2)]+_0x149d7b),_0x3e9bdf[_0x298869(0x1ec)]&&console[_0x298869(0x1fb)](_0x11d07a+_0x298869(0x1ea)+_0x3e9bdf[_0x298869(0x1ec)]+_0x149d7b),console['log'](_0x11d07a+_0x298869(0x1e2)+_0x2b3eee+_0x149d7b)):(console['log'](''+_0x4b3078+_0x47492d+_0x298869(0x1e9)+_0x149d7b),console[_0x298869(0x1fb)](_0x4b3078+_0x298869(0x1d7)+_0x3e9bdf[_0x298869(0x1f4)]+_0x149d7b),console[_0x298869(0x1fb)](_0x4b3078+_0x298869(0x1db)+_0x3e9bdf[_0x298869(0x1f2)]+_0x149d7b),_0x3e9bdf[_0x298869(0x1de)]&&console[_0x298869(0x1fb)](_0x4b3078+_0x298869(0x1ea)+_0x3e9bdf['upgradeMessage']+_0x149d7b),console[_0x298869(0x1fb)](_0x4b3078+_0x298869(0x1e2)+_0x2b3eee+_0x149d7b)),console['log']();}function a279_0x2043(_0x5e4fc0,_0x48591e){_0x5e4fc0=_0x5e4fc0-0x1d3;const _0x9929ec=a279_0x9929();let _0x2043f1=_0x9929ec[_0x5e4fc0];return _0x2043f1;}export function assertCliVersionSupported(_0x537890){const _0x489016=a279_0x2043;if(!_0x537890[_0x489016(0x1dc)])return;const _0x52eb3c=[_0x537890[_0x489016(0x1ec)],_0x489016(0x1d8)+_0x537890[_0x489016(0x1f4)],_0x537890['minimumVersion']?_0x489016(0x1df)+_0x537890['minimumVersion']:null,_0x489016(0x1da)+getCliUpgradeCommand(_0x537890)]['filter'](Boolean)[_0x489016(0x1e7)]('\x0a');throw CliErrors[_0x489016(0x1f8)](_0x489016(0x1ed),_0x52eb3c);}
1
+ (function(_0x1778a4,_0x37935a){const _0x26eecf=a281_0x52ee,_0x3d107a=_0x1778a4();while(!![]){try{const _0x3da046=parseInt(_0x26eecf(0x1f8))/0x1+parseInt(_0x26eecf(0x1f2))/0x2+parseInt(_0x26eecf(0x202))/0x3+-parseInt(_0x26eecf(0x1ee))/0x4+-parseInt(_0x26eecf(0x204))/0x5+-parseInt(_0x26eecf(0x206))/0x6*(-parseInt(_0x26eecf(0x200))/0x7)+parseInt(_0x26eecf(0x20d))/0x8;if(_0x3da046===_0x37935a)break;else _0x3d107a['push'](_0x3d107a['shift']());}catch(_0x127dae){_0x3d107a['push'](_0x3d107a['shift']());}}}(a281_0x2695,0xbd977));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a281_0x3467f9 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(_0x43c218){const _0x1de795=a281_0x52ee,_0x5b8b8e=_0x43c218[_0x1de795(0x20a)]||_0x1de795(0x1f3);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x5b8b8e;}function getCurrentCliVersion(){const _0x4df455=a281_0x52ee;try{const _0xae47ef=fileURLToPath(import.meta.url),_0x30da14=resolve(dirname(_0xae47ef),_0x4df455(0x1e7)),_0x360459=resolve(_0x30da14,_0x4df455(0x208)),_0x46632e=JSON[_0x4df455(0x1ed)](readFileSync(_0x360459,_0x4df455(0x1f6)));return _0x46632e[_0x4df455(0x1fd)]||_0x4df455(0x1fc);}catch{return'1.0.0';}}function a281_0x2695(){const _0x41a53d=['2812764zwACiJ','needsUpgrade','\x1b[1m','Current\x20version:\x20','1037386lxtXnp','latest','belowMinimum','\x1b[31m','utf-8','\x20\x20\x20Recommended\x20stable:\x20','58975rmunOe','validation','↪\x20New\x20version\x20available','upgradeMessage','1.0.0','version','log','Upgrade\x20command:\x20','19250SzzBxq','minimumVersion','914772UrBSYq','\x20\x20\x20Upgrade\x20command:\x20','4718740ZTvGEB','\x20\x20\x20Minimum\x20supported:\x20','2334JRWXti','\x1b[33m','package.json','\x20\x20\x20Stable\x20version:\x20','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','↪\x20Critical\x20CLI\x20upgrade\x20required','3769312RuDKtt','Minimum\x20supported:\x20','minimumVersionMessage','../..','\x1b[0m','\x20\x20\x20','coerce','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','parse'];a281_0x2695=function(){return _0x41a53d;};return a281_0x2695();}function a281_0x52ee(_0x3bda0f,_0x4d8577){_0x3bda0f=_0x3bda0f-0x1e6;const _0x2695ff=a281_0x2695();let _0x52ee1e=_0x2695ff[_0x3bda0f];return _0x52ee1e;}export async function checkCliVersion(){const _0x9f67d9=a281_0x52ee,_0x1066d1=getCurrentCliVersion(),_0x3418a2=await getCliVersionPolicy(),_0x45642c=_0x3418a2?.[_0x9f67d9(0x20a)]||null,_0x2d9705=_0x3418a2?.[_0x9f67d9(0x201)]||null;let _0x572792=![],_0x224df4=![];const _0x435b16=a281_0x3467f9[_0x9f67d9(0x1ea)](_0x1066d1);if(_0x435b16&&_0x45642c)try{const _0x164fda=a281_0x3467f9['coerce'](_0x45642c);if(_0x164fda)_0x572792=a281_0x3467f9['lt'](_0x435b16,_0x164fda);}catch{}if(_0x435b16&&_0x2d9705)try{const _0x5f9b0d=a281_0x3467f9[_0x9f67d9(0x1ea)](_0x2d9705);if(_0x5f9b0d)_0x224df4=a281_0x3467f9['lt'](_0x435b16,_0x5f9b0d);}catch{}return _0x224df4&&(_0x572792=!![]),{'currentVersion':_0x1066d1,'stableVersion':_0x45642c,'minimumVersion':_0x2d9705,'needsUpgrade':_0x572792,'belowMinimum':_0x224df4,'isPreRelease':![],'upgradeMessage':_0x3418a2?.[_0x9f67d9(0x1fb)],'minimumVersionMessage':_0x3418a2?.[_0x9f67d9(0x1e6)]};}export function printCliUpgradeWarning(_0x34c191){const _0x3fa4b5=a281_0x52ee;if(!_0x34c191[_0x3fa4b5(0x1ef)]&&!_0x34c191[_0x3fa4b5(0x1f4)])return;const _0x1698fe=_0x3fa4b5(0x1f5),_0x409c2e=_0x3fa4b5(0x207),_0xf3c025=_0x3fa4b5(0x1e8),_0x553230=_0x3fa4b5(0x1f0),_0x41185f=getCliUpgradeCommand(_0x34c191);console[_0x3fa4b5(0x1fe)](),_0x34c191[_0x3fa4b5(0x1f4)]?(console[_0x3fa4b5(0x1fe)](''+_0x1698fe+_0x553230+_0x3fa4b5(0x20c)+_0xf3c025),console[_0x3fa4b5(0x1fe)](_0x1698fe+_0x3fa4b5(0x1ec)+_0x34c191[_0x3fa4b5(0x1eb)]+_0xf3c025),_0x34c191[_0x3fa4b5(0x201)]&&console[_0x3fa4b5(0x1fe)](_0x1698fe+_0x3fa4b5(0x205)+_0x34c191[_0x3fa4b5(0x201)]+_0xf3c025),_0x34c191[_0x3fa4b5(0x20a)]&&_0x34c191[_0x3fa4b5(0x20a)]!==_0x34c191[_0x3fa4b5(0x201)]&&console[_0x3fa4b5(0x1fe)](_0x1698fe+_0x3fa4b5(0x1f7)+_0x34c191[_0x3fa4b5(0x20a)]+_0xf3c025),_0x34c191['minimumVersionMessage']&&console[_0x3fa4b5(0x1fe)](_0x1698fe+_0x3fa4b5(0x1e9)+_0x34c191[_0x3fa4b5(0x1e6)]+_0xf3c025),console[_0x3fa4b5(0x1fe)](_0x1698fe+_0x3fa4b5(0x203)+_0x41185f+_0xf3c025)):(console['log'](''+_0x409c2e+_0x553230+_0x3fa4b5(0x1fa)+_0xf3c025),console[_0x3fa4b5(0x1fe)](_0x409c2e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x34c191['currentVersion']+_0xf3c025),console[_0x3fa4b5(0x1fe)](_0x409c2e+_0x3fa4b5(0x209)+_0x34c191[_0x3fa4b5(0x20a)]+_0xf3c025),_0x34c191[_0x3fa4b5(0x1fb)]&&console[_0x3fa4b5(0x1fe)](_0x409c2e+_0x3fa4b5(0x1e9)+_0x34c191['upgradeMessage']+_0xf3c025),console['log'](_0x409c2e+_0x3fa4b5(0x203)+_0x41185f+_0xf3c025)),console[_0x3fa4b5(0x1fe)]();}export function assertCliVersionSupported(_0x245dad){const _0x2f2703=a281_0x52ee;if(!_0x245dad[_0x2f2703(0x1f4)])return;const _0x507393=[_0x245dad[_0x2f2703(0x1e6)],_0x2f2703(0x1f1)+_0x245dad[_0x2f2703(0x1eb)],_0x245dad[_0x2f2703(0x201)]?_0x2f2703(0x20e)+_0x245dad[_0x2f2703(0x201)]:null,_0x2f2703(0x1ff)+getCliUpgradeCommand(_0x245dad)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x2f2703(0x1f9)](_0x2f2703(0x20b),_0x507393);}
@@ -1 +1 @@
1
- (function(_0x5f27ea,_0x5f1109){const _0x24d164=a280_0x4683,_0x120bff=_0x5f27ea();while(!![]){try{const _0x2da5de=parseInt(_0x24d164(0x1a2))/0x1*(parseInt(_0x24d164(0x1a4))/0x2)+-parseInt(_0x24d164(0x1b9))/0x3*(-parseInt(_0x24d164(0x1a6))/0x4)+-parseInt(_0x24d164(0x1b4))/0x5+parseInt(_0x24d164(0x1a9))/0x6*(parseInt(_0x24d164(0x1b8))/0x7)+parseInt(_0x24d164(0x1b6))/0x8*(parseInt(_0x24d164(0x1a0))/0x9)+-parseInt(_0x24d164(0x1ab))/0xa*(parseInt(_0x24d164(0x1a7))/0xb)+parseInt(_0x24d164(0x1b0))/0xc*(-parseInt(_0x24d164(0x1b7))/0xd);if(_0x2da5de===_0x5f1109)break;else _0x120bff['push'](_0x120bff['shift']());}catch(_0x5bf089){_0x120bff['push'](_0x120bff['shift']());}}}(a280_0x3418,0x6f2c6));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(_0x4dac9e){const _0x388c8e=a280_0x4683;return typeof _0x4dac9e===_0x388c8e(0x1ad)&&_0x4dac9e[_0x388c8e(0x1ac)]()[_0x388c8e(0x1b2)]>0x0?_0x4dac9e[_0x388c8e(0x1ac)]():null;}function normalizeCliVersionPolicy(_0x575de2){const _0x16c237=a280_0x4683;if(!_0x575de2||typeof _0x575de2!==_0x16c237(0x19f))return null;const _0x540a2f=_0x575de2,_0x364f6e=_0x540a2f[_0x16c237(0x1aa)]&&typeof _0x540a2f[_0x16c237(0x1aa)]==='object'?_0x540a2f[_0x16c237(0x1aa)]:_0x540a2f,_0x2b824d=pickString(_0x364f6e[_0x16c237(0x1a8)])||pickString(_0x364f6e['latestVersion'])||pickString(_0x364f6e[_0x16c237(0x1af)]),_0x2bfec9=pickString(_0x364f6e['minimumVersion'])||pickString(_0x364f6e['minVersion']);if(!_0x2b824d&&!_0x2bfec9)return null;return{'stableVersion':_0x2b824d,'minimumVersion':_0x2bfec9,'upgradeMessage':pickString(_0x364f6e[_0x16c237(0x1ae)])||undefined,'minimumVersionMessage':pickString(_0x364f6e[_0x16c237(0x1a5)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x49d9bc=a280_0x4683,_0x57c14c=new AbortController(),_0x266226=setTimeout(()=>_0x57c14c[_0x49d9bc(0x1b5)](),FETCH_TIMEOUT_MS);try{const _0x5df6be=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x49d9bc(0x1b3)},'signal':_0x57c14c[_0x49d9bc(0x1a3)]});if(!_0x5df6be['ok'])return null;const _0x260875=await _0x5df6be[_0x49d9bc(0x1a1)]();return _0x260875&&typeof _0x260875===_0x49d9bc(0x19f)?_0x260875:null;}catch{return null;}finally{clearTimeout(_0x266226);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];function a280_0x4683(_0x2c1e23,_0x58cfdc){_0x2c1e23=_0x2c1e23-0x19f;const _0x3418bb=a280_0x3418();let _0x4683aa=_0x3418bb[_0x2c1e23];return _0x4683aa;}export async function getRabetbaseCdnConfig(){const _0x15ff47=a280_0x4683,_0x5d3b4f=Date[_0x15ff47(0x1b1)]();if(hasCachedConfig){const _0x315b33=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d3b4f-cacheTime<_0x315b33)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5d3b4f,hasCachedConfig=!![],cachedConfig;}function a280_0x3418(){const _0x532236=['11gZAAvu','stableVersion','355068OFDSLY','cli','4643090AWTrEK','trim','string','upgradeMessage','recommendedVersion','12PDCLFn','now','length','application/json','1518780ihlutT','abort','8ZAZLmv','5938985tUNKzj','21XzeYbY','539805rYwcDP','object','7938918CrhaRo','json','1585lbWvFB','signal','102hjJUDm','minimumVersionMessage','12jXrRyL'];a280_0x3418=function(){return _0x532236;};return a280_0x3418();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1eadd2,_0x2948d0){const _0x73d261=a282_0x14bd,_0x1dc562=_0x1eadd2();while(!![]){try{const _0x412095=-parseInt(_0x73d261(0x1e4))/0x1+parseInt(_0x73d261(0x1d5))/0x2*(parseInt(_0x73d261(0x1e8))/0x3)+parseInt(_0x73d261(0x1e1))/0x4*(-parseInt(_0x73d261(0x1d3))/0x5)+parseInt(_0x73d261(0x1e9))/0x6*(parseInt(_0x73d261(0x1e2))/0x7)+parseInt(_0x73d261(0x1de))/0x8*(parseInt(_0x73d261(0x1d4))/0x9)+-parseInt(_0x73d261(0x1ea))/0xa+-parseInt(_0x73d261(0x1db))/0xb*(-parseInt(_0x73d261(0x1e5))/0xc);if(_0x412095===_0x2948d0)break;else _0x1dc562['push'](_0x1dc562['shift']());}catch(_0x53a977){_0x1dc562['push'](_0x1dc562['shift']());}}}(a282_0x1a2c,0xb669d));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(_0x1465f2){const _0x43541b=a282_0x14bd;return typeof _0x1465f2==='string'&&_0x1465f2[_0x43541b(0x1dc)]()[_0x43541b(0x1d9)]>0x0?_0x1465f2[_0x43541b(0x1dc)]():null;}function a282_0x1a2c(){const _0x24724c=['cli','minimumVersionMessage','length','upgradeMessage','39149bvdowV','trim','signal','104yyrdff','json','latestVersion','4oSPDFF','173201jzzuOg','recommendedVersion','757458scPyvc','2316bWQbPp','minVersion','object','3353739PdQJVg','342hIkmjQ','12715900HjlQEq','3628655NHcJkH','198549ITojwu','2Ojzuud','minimumVersion'];a282_0x1a2c=function(){return _0x24724c;};return a282_0x1a2c();}function normalizeCliVersionPolicy(_0x47daba){const _0x3b3ddc=a282_0x14bd;if(!_0x47daba||typeof _0x47daba!==_0x3b3ddc(0x1e7))return null;const _0x4ecdc2=_0x47daba,_0x5793d8=_0x4ecdc2[_0x3b3ddc(0x1d7)]&&typeof _0x4ecdc2[_0x3b3ddc(0x1d7)]===_0x3b3ddc(0x1e7)?_0x4ecdc2[_0x3b3ddc(0x1d7)]:_0x4ecdc2,_0x39956a=pickString(_0x5793d8['stableVersion'])||pickString(_0x5793d8[_0x3b3ddc(0x1e0)])||pickString(_0x5793d8[_0x3b3ddc(0x1e3)]),_0x4f13e0=pickString(_0x5793d8[_0x3b3ddc(0x1d6)])||pickString(_0x5793d8[_0x3b3ddc(0x1e6)]);if(!_0x39956a&&!_0x4f13e0)return null;return{'stableVersion':_0x39956a,'minimumVersion':_0x4f13e0,'upgradeMessage':pickString(_0x5793d8[_0x3b3ddc(0x1da)])||undefined,'minimumVersionMessage':pickString(_0x5793d8[_0x3b3ddc(0x1d8)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x8192fb=a282_0x14bd,_0x104d70=new AbortController(),_0x6de75a=setTimeout(()=>_0x104d70['abort'](),FETCH_TIMEOUT_MS);try{const _0x50c2d8=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x104d70[_0x8192fb(0x1dd)]});if(!_0x50c2d8['ok'])return null;const _0x123a39=await _0x50c2d8[_0x8192fb(0x1df)]();return _0x123a39&&typeof _0x123a39===_0x8192fb(0x1e7)?_0x123a39:null;}catch{return null;}finally{clearTimeout(_0x6de75a);}}function a282_0x14bd(_0x28c409,_0x3f37fd){_0x28c409=_0x28c409-0x1d3;const _0x1a2c1d=a282_0x1a2c();let _0x14bddd=_0x1a2c1d[_0x28c409];return _0x14bddd;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4d6b15=Date['now']();if(hasCachedConfig){const _0x5342ad=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d6b15-cacheTime<_0x5342ad)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4d6b15,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x4bb435,_0x1cfe2d){const _0x213a87=a281_0x56e4,_0x1a490f=_0x4bb435();while(!![]){try{const _0x1d01c6=parseInt(_0x213a87(0x1df))/0x1+-parseInt(_0x213a87(0x1d9))/0x2+parseInt(_0x213a87(0x1dd))/0x3*(-parseInt(_0x213a87(0x1dc))/0x4)+parseInt(_0x213a87(0x1db))/0x5*(parseInt(_0x213a87(0x1d8))/0x6)+parseInt(_0x213a87(0x1e2))/0x7+-parseInt(_0x213a87(0x1e1))/0x8+parseInt(_0x213a87(0x1da))/0x9*(parseInt(_0x213a87(0x1e3))/0xa);if(_0x1d01c6===_0x1cfe2d)break;else _0x1a490f['push'](_0x1a490f['shift']());}catch(_0x5f00ee){_0x1a490f['push'](_0x1a490f['shift']());}}}(a281_0x45f4,0x60d40));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a281_0x2a19ea,getMultiAppConfigs as a281_0x286d46,getTemplateBaseUrl as a281_0x59df55}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a281_0x56e4(_0x7f9e67,_0x1211da){_0x7f9e67=_0x7f9e67-0x1d8;const _0x45f417=a281_0x45f4();let _0x56e47f=_0x45f417[_0x7f9e67];return _0x56e47f;}export{isInProject}from'../context.js';export function readConfig(_0x56b5cf){const _0x28e183=a281_0x56e4,_0x2d0a75=readRawConfig(_0x56b5cf);return _0x2d0a75[_0x28e183(0x1de)]&&typeof _0x2d0a75['env']===_0x28e183(0x1e0)&&initEnv(_0x2d0a75[_0x28e183(0x1de)]),_0x2d0a75;}export function getConfigAppCode(){return a281_0x2a19ea();}function a281_0x45f4(){const _0x9dcb18=['1566246VUrWnk','13410jLaFaF','5HejlCl','1312sTOAgg','4710FfvXdV','env','440282hzXfOC','string','4866656qqpuhd','3171595CQIeSI','5860llqJKL','3219096ZZrYtH'];a281_0x45f4=function(){return _0x9dcb18;};return a281_0x45f4();}export function getMultiAppConfigs(_0x5d4f97='project'){return a281_0x286d46(_0x5d4f97);}export function getTemplateBaseUrl(){return a281_0x59df55();}
1
+ function a283_0x3249(_0x4b5614,_0x778eb){_0x4b5614=_0x4b5614-0x113;const _0x3542e3=a283_0x3542();let _0x324933=_0x3542e3[_0x4b5614];return _0x324933;}const a283_0x522abc=a283_0x3249;(function(_0x1485d4,_0x37394e){const _0x3b7e49=a283_0x3249,_0x33f958=_0x1485d4();while(!![]){try{const _0x20487f=parseInt(_0x3b7e49(0x115))/0x1+-parseInt(_0x3b7e49(0x11c))/0x2+parseInt(_0x3b7e49(0x119))/0x3*(parseInt(_0x3b7e49(0x114))/0x4)+-parseInt(_0x3b7e49(0x11d))/0x5+parseInt(_0x3b7e49(0x116))/0x6*(parseInt(_0x3b7e49(0x11b))/0x7)+-parseInt(_0x3b7e49(0x11a))/0x8*(-parseInt(_0x3b7e49(0x118))/0x9)+-parseInt(_0x3b7e49(0x11e))/0xa*(parseInt(_0x3b7e49(0x11f))/0xb);if(_0x20487f===_0x37394e)break;else _0x33f958['push'](_0x33f958['shift']());}catch(_0x2cfeb4){_0x33f958['push'](_0x33f958['shift']());}}}(a283_0x3542,0xcb716));function a283_0x3542(){const _0x6a367e=['12380920AZvRva','11iyFKLO','env','17768RbVyMV','989971Qifqab','11226fPXhrj','project','3331908HPYhbB','1047CxGlEM','32JrVXEM','3101KSFupM','2930800LkGYKx','6565680ivYwAo'];a283_0x3542=function(){return _0x6a367e;};return a283_0x3542();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a283_0x186e0f,getMultiAppConfigs as a283_0x2fc54f,getTemplateBaseUrl as a283_0x38e23e}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x530047){const _0x55aabc=a283_0x3249,_0x537f7b=readRawConfig(_0x530047);return _0x537f7b[_0x55aabc(0x113)]&&typeof _0x537f7b[_0x55aabc(0x113)]==='string'&&initEnv(_0x537f7b[_0x55aabc(0x113)]),_0x537f7b;}export function getConfigAppCode(){return a283_0x186e0f();}export function getMultiAppConfigs(_0x5791f9=a283_0x522abc(0x117)){return a283_0x2fc54f(_0x5791f9);}export function getTemplateBaseUrl(){return a283_0x38e23e();}
@@ -1 +1 @@
1
- (function(_0x39e857,_0x175964){const _0x51dc4c=a282_0x2c9f,_0x246763=_0x39e857();while(!![]){try{const _0x40d858=-parseInt(_0x51dc4c(0x13b))/0x1+parseInt(_0x51dc4c(0x139))/0x2+-parseInt(_0x51dc4c(0x136))/0x3*(-parseInt(_0x51dc4c(0x130))/0x4)+-parseInt(_0x51dc4c(0x135))/0x5*(-parseInt(_0x51dc4c(0x131))/0x6)+-parseInt(_0x51dc4c(0x134))/0x7+-parseInt(_0x51dc4c(0x13a))/0x8*(-parseInt(_0x51dc4c(0x13c))/0x9)+-parseInt(_0x51dc4c(0x137))/0xa;if(_0x40d858===_0x175964)break;else _0x246763['push'](_0x246763['shift']());}catch(_0x16ed8c){_0x246763['push'](_0x246763['shift']());}}}(a282_0xd08c,0xe1764));function a282_0x2c9f(_0x21c08a,_0x11cdd1){_0x21c08a=_0x21c08a-0x130;const _0xd08c16=a282_0xd08c();let _0x2c9fae=_0xd08c16[_0x21c08a];return _0x2c9fae;}function toFiniteNumber(_0x3076fa){const _0x4c600f=a282_0x2c9f;if(typeof _0x3076fa==='number'&&Number[_0x4c600f(0x132)](_0x3076fa))return _0x3076fa;if(typeof _0x3076fa==='string'){const _0x982bf3=_0x3076fa[_0x4c600f(0x133)]();if(!_0x982bf3)return undefined;const _0x14e314=Number(_0x982bf3);if(Number['isFinite'](_0x14e314))return _0x14e314;}return undefined;}function a282_0xd08c(){const _0x280650=['14308232EzzRhO','1415418GlXMmT','9yMCBvD','6695768stkecA','162uURYgm','isFinite','trim','2348570XRYARF','146225opiVmG','3HkkBvI','21220430NveRJk','object','1088754WBDCBp'];a282_0xd08c=function(){return _0x280650;};return a282_0xd08c();}export function normalizeEntityWithIdResponse(_0x4005a4){const _0x57f0d4=a282_0x2c9f,_0x31df35=toFiniteNumber(_0x4005a4);if(_0x31df35!==undefined)return{'id':_0x31df35,'entity':{'id':_0x31df35}};if(!_0x4005a4||typeof _0x4005a4!==_0x57f0d4(0x138))return{'id':undefined,'entity':{}};const _0x2c6a82={..._0x4005a4},_0x3f1ad9=toFiniteNumber(_0x2c6a82['id']);return _0x3f1ad9!==undefined&&(_0x2c6a82['id']=_0x3f1ad9),{'id':_0x3f1ad9,'entity':_0x2c6a82};}
1
+ function a284_0x586b(_0x15cb0a,_0x550250){_0x15cb0a=_0x15cb0a-0x1ac;const _0x151484=a284_0x1514();let _0x586bdf=_0x151484[_0x15cb0a];return _0x586bdf;}(function(_0x25f72b,_0x101fd4){const _0xbe13ba=a284_0x586b,_0x373e25=_0x25f72b();while(!![]){try{const _0x35e0e8=-parseInt(_0xbe13ba(0x1b0))/0x1+parseInt(_0xbe13ba(0x1af))/0x2+parseInt(_0xbe13ba(0x1ae))/0x3+parseInt(_0xbe13ba(0x1b3))/0x4+parseInt(_0xbe13ba(0x1b1))/0x5+-parseInt(_0xbe13ba(0x1b7))/0x6*(-parseInt(_0xbe13ba(0x1ac))/0x7)+-parseInt(_0xbe13ba(0x1b4))/0x8;if(_0x35e0e8===_0x101fd4)break;else _0x373e25['push'](_0x373e25['shift']());}catch(_0x28793a){_0x373e25['push'](_0x373e25['shift']());}}}(a284_0x1514,0xde75f));function toFiniteNumber(_0x3abed5){const _0x5ed551=a284_0x586b;if(typeof _0x3abed5===_0x5ed551(0x1b5)&&Number['isFinite'](_0x3abed5))return _0x3abed5;if(typeof _0x3abed5===_0x5ed551(0x1b6)){const _0x4f2e08=_0x3abed5[_0x5ed551(0x1ad)]();if(!_0x4f2e08)return undefined;const _0x6a7a5b=Number(_0x4f2e08);if(Number['isFinite'](_0x6a7a5b))return _0x6a7a5b;}return undefined;}function a284_0x1514(){const _0x28d8d4=['string','1032ZFzdlk','54229FTWGuu','trim','5242110diSWaR','786700rqxUJF','186582mpvfWa','354015vzhjNc','object','4852636udSdPK','29275080iyqIcY','number'];a284_0x1514=function(){return _0x28d8d4;};return a284_0x1514();}export function normalizeEntityWithIdResponse(_0x1a8304){const _0x333327=a284_0x586b,_0x2c8584=toFiniteNumber(_0x1a8304);if(_0x2c8584!==undefined)return{'id':_0x2c8584,'entity':{'id':_0x2c8584}};if(!_0x1a8304||typeof _0x1a8304!==_0x333327(0x1b2))return{'id':undefined,'entity':{}};const _0x368087={..._0x1a8304},_0x1f0b82=toFiniteNumber(_0x368087['id']);return _0x1f0b82!==undefined&&(_0x368087['id']=_0x1f0b82),{'id':_0x1f0b82,'entity':_0x368087};}
@@ -1 +1 @@
1
- (function(_0x481a25,_0x1347b4){const _0xe67175=a283_0x39a1,_0xed9056=_0x481a25();while(!![]){try{const _0x43d387=-parseInt(_0xe67175(0x15c))/0x1*(parseInt(_0xe67175(0x156))/0x2)+-parseInt(_0xe67175(0x155))/0x3*(parseInt(_0xe67175(0x15a))/0x4)+-parseInt(_0xe67175(0x154))/0x5+parseInt(_0xe67175(0x15d))/0x6+-parseInt(_0xe67175(0x157))/0x7*(-parseInt(_0xe67175(0x15e))/0x8)+-parseInt(_0xe67175(0x159))/0x9+-parseInt(_0xe67175(0x15b))/0xa*(-parseInt(_0xe67175(0x158))/0xb);if(_0x43d387===_0x1347b4)break;else _0xed9056['push'](_0xed9056['shift']());}catch(_0x357c08){_0xed9056['push'](_0xed9056['shift']());}}}(a283_0x5db5,0x5a3b6));function a283_0x5db5(){const _0x15ce66=['5556852Incnrt','228viSfqN','15382210LDBTBh','650UnakUg','729882eePwPe','3184kbktXg','3680020Phdemp','10194MIPzoU','1114LQeLbd','10885NCNSyB','11OJdmrz'];a283_0x5db5=function(){return _0x15ce66;};return a283_0x5db5();}function a283_0x39a1(_0x5c4a22,_0x30e82e){_0x5c4a22=_0x5c4a22-0x154;const _0x5db59f=a283_0x5db5();let _0x39a169=_0x5db59f[_0x5c4a22];return _0x39a169;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4b2d24,_0x5ddb0b){const _0x42d5be=statSync(_0x4b2d24);if(_0x42d5be['isDirectory']()){!existsSync(_0x5ddb0b)&&mkdirSync(_0x5ddb0b,{'recursive':!![]});const _0x2a8e78=readdirSync(_0x4b2d24);for(const _0x215ecc of _0x2a8e78){await copyDir(join(_0x4b2d24,_0x215ecc),join(_0x5ddb0b,_0x215ecc));}}else copyFileSync(_0x4b2d24,_0x5ddb0b);}export function ensureDir(_0x3d2e74){!existsSync(_0x3d2e74)&&mkdirSync(_0x3d2e74,{'recursive':!![]});}export function pathExists(_0x210def){return existsSync(_0x210def);}
1
+ function a285_0x20e6(){const _0x33d64f=['354hjXRgp','1920gDylWE','539184VRDlZk','5NDiFxJ','isDirectory','569444PulnJI','36ViNMki','810229AryQOv','53550kPyEWp','11fianDT','69290KvRfFG','237584mNuypm'];a285_0x20e6=function(){return _0x33d64f;};return a285_0x20e6();}(function(_0x3e18f2,_0x3beac1){const _0x2f07bc=a285_0x236f,_0x457621=_0x3e18f2();while(!![]){try{const _0x543b88=-parseInt(_0x2f07bc(0x79))/0x1+parseInt(_0x2f07bc(0x7d))/0x2*(parseInt(_0x2f07bc(0x72))/0x3)+parseInt(_0x2f07bc(0x76))/0x4*(parseInt(_0x2f07bc(0x74))/0x5)+-parseInt(_0x2f07bc(0x73))/0x6+-parseInt(_0x2f07bc(0x78))/0x7+parseInt(_0x2f07bc(0x7c))/0x8*(parseInt(_0x2f07bc(0x77))/0x9)+parseInt(_0x2f07bc(0x7b))/0xa*(-parseInt(_0x2f07bc(0x7a))/0xb);if(_0x543b88===_0x3beac1)break;else _0x457621['push'](_0x457621['shift']());}catch(_0x26852a){_0x457621['push'](_0x457621['shift']());}}}(a285_0x20e6,0x1a737));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4d26c5,_0x213d5a){const _0x2deaa3=a285_0x236f,_0x5f34dc=statSync(_0x4d26c5);if(_0x5f34dc[_0x2deaa3(0x75)]()){!existsSync(_0x213d5a)&&mkdirSync(_0x213d5a,{'recursive':!![]});const _0x4b861e=readdirSync(_0x4d26c5);for(const _0x4ce9b6 of _0x4b861e){await copyDir(join(_0x4d26c5,_0x4ce9b6),join(_0x213d5a,_0x4ce9b6));}}else copyFileSync(_0x4d26c5,_0x213d5a);}function a285_0x236f(_0x245f65,_0x493574){_0x245f65=_0x245f65-0x72;const _0x20e602=a285_0x20e6();let _0x236fe6=_0x20e602[_0x245f65];return _0x236fe6;}export function ensureDir(_0x241394){!existsSync(_0x241394)&&mkdirSync(_0x241394,{'recursive':!![]});}export function pathExists(_0x3beb1a){return existsSync(_0x3beb1a);}
@@ -1 +1 @@
1
- const a284_0x181377=a284_0x3d25;(function(_0x15dd3a,_0x479467){const _0x1618bf=a284_0x3d25,_0x54c426=_0x15dd3a();while(!![]){try{const _0x530538=parseInt(_0x1618bf(0x12c))/0x1+parseInt(_0x1618bf(0x12e))/0x2+parseInt(_0x1618bf(0x12d))/0x3+parseInt(_0x1618bf(0x128))/0x4*(parseInt(_0x1618bf(0x129))/0x5)+-parseInt(_0x1618bf(0x111))/0x6+-parseInt(_0x1618bf(0x132))/0x7*(parseInt(_0x1618bf(0x122))/0x8)+-parseInt(_0x1618bf(0x114))/0x9;if(_0x530538===_0x479467)break;else _0x54c426['push'](_0x54c426['shift']());}catch(_0x5c349c){_0x54c426['push'](_0x54c426['shift']());}}}(a284_0x1ea1,0x9b344));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a284_0x3d25(_0x246e47,_0x51be14){_0x246e47=_0x246e47-0x110;const _0x1ea1be=a284_0x1ea1();let _0x3d250c=_0x1ea1be[_0x246e47];return _0x3d250c;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x206245=a284_0x3d25,_0x351c73=getTemplateBaseUrl();return _0x351c73+_0x206245(0x116);}const CACHE_DIR=join(homedir(),'.lovrabet',a284_0x181377(0x131));export async function fetchGuidesFromCDN(){const _0x2017ca=a284_0x181377,_0x21f870=getGuidesCdnUrl(),_0x47b8bb=await fetch(_0x21f870,{'headers':{'Accept':_0x2017ca(0x110)}});if(!_0x47b8bb['ok'])throw new Error(_0x2017ca(0x11f)+_0x47b8bb[_0x2017ca(0x120)]+'\x20'+_0x47b8bb[_0x2017ca(0x121)]);const _0x50a3ff=await _0x47b8bb[_0x2017ca(0x11c)]();if(!_0x50a3ff[_0x2017ca(0x119)]||typeof _0x50a3ff[_0x2017ca(0x119)]!==_0x2017ca(0x11b))throw new Error(_0x2017ca(0x124));return _0x50a3ff;}export function writeGuidesToProject(_0x33c8b5,_0x1da060,_0x33f407=a284_0x181377(0x125),_0x542497){const _0x535880=a284_0x181377,_0x5b49d9=join(_0x1da060,_0x33f407);mkdirSync(_0x5b49d9,{'recursive':!![]});for(const [_0x43234b,_0x3a0367]of Object[_0x535880(0x12b)](_0x33c8b5[_0x535880(0x119)])){let _0x1293d0=_0x3a0367[_0x535880(0x127)];_0x3a0367['lastUpdated']&&(_0x1293d0=appendUpdateTime(_0x1293d0,_0x3a0367[_0x535880(0x113)])),writeFileSync(join(_0x5b49d9,_0x43234b+_0x535880(0x126)),_0x1293d0,_0x535880(0x115));}}export function appendUpdateTime(_0x225cf1,_0x4064c7){const _0x580904=a284_0x181377;return _0x225cf1=_0x225cf1[_0x580904(0x11e)](/\n*>更新时间:.*$/m,''),_0x225cf1[_0x580904(0x11d)]()+('\x0a\x0a>更新时间:'+_0x4064c7);}export function getSkillTemplate(_0x2e8301){const _0x39380f=a284_0x181377;return _0x2e8301[_0x39380f(0x112)]?.['content']||'';}export function appendExtendContents(_0x570717,_0x202c2b,_0x250a5f){const _0x345f9a=a284_0x181377,_0x3bf31d=[];for(const [,_0x18795c]of Object[_0x345f9a(0x12b)](_0x202c2b[_0x345f9a(0x119)])){_0x18795c[_0x345f9a(0x130)]&&_0x3bf31d[_0x345f9a(0x11a)](_0x18795c[_0x345f9a(0x130)][_0x345f9a(0x11d)]());}if(_0x3bf31d[_0x345f9a(0x117)]===0x0)return _0x570717;return _0x570717[_0x345f9a(0x11d)]()+'\x0a\x0a'+_0x3bf31d['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x32db4b,_0x34b726,_0x228b00){const _0x4ed598=a284_0x181377,_0x34b021=getSkillTemplate(_0x32db4b);if(!_0x34b021)throw new Error(_0x4ed598(0x123));const _0x5ef30a=dirname(_0x34b726);mkdirSync(_0x5ef30a,{'recursive':!![]});let _0x1a8d8a=_0x34b021[_0x4ed598(0x11e)](/\{\{IDE_NAME\}\}/g,_0x228b00);_0x1a8d8a=appendExtendContents(_0x1a8d8a,_0x32db4b),_0x32db4b[_0x4ed598(0x112)][_0x4ed598(0x113)]&&(_0x1a8d8a=appendUpdateTime(_0x1a8d8a,_0x32db4b[_0x4ed598(0x112)][_0x4ed598(0x113)])),writeFileSync(_0x34b726,_0x1a8d8a,_0x4ed598(0x115));}export async function installGuides(_0x4e8b3c){const _0x3fe1d4=a284_0x181377,_0x470e14=await fetchGuidesFromCDN();return writeGuidesToProject(_0x470e14,_0x4e8b3c),Object['keys'](_0x470e14[_0x3fe1d4(0x119)])[_0x3fe1d4(0x117)];}export function getGuidesSummary(_0x53a032){const _0x499b0d=a284_0x181377;return Object[_0x499b0d(0x12b)](_0x53a032[_0x499b0d(0x119)])[_0x499b0d(0x12f)](([_0x5454f7,_0x4dc071])=>({'key':_0x5454f7,'title':_0x4dc071[_0x499b0d(0x12a)],'path':_0x4dc071[_0x499b0d(0x118)]}));}function a284_0x1ea1(){const _0x4e1565=['1603WthIvi','application/json','3525468PBaJOV','skillTemplate','lastUpdated','4032567VCwSAs','utf-8','/skills/guides.json','length','path','guides','push','object','json','trimEnd','replace','CDN\x20request\x20failed:\x20','status','statusText','31384lwdJHF','CDN\x20data\x20is\x20missing\x20skillTemplate','CDN\x20returned\x20invalid\x20data','.lovrabet/skill/guides','.md','content','31216ECcNjv','470bhxVrs','title','entries','839954tPcruS','2326530VIVqYj','441368cQIyTQ','map','extendContent','cache'];a284_0x1ea1=function(){return _0x4e1565;};return a284_0x1ea1();}
1
+ const a286_0x55a57a=a286_0x4dd9;(function(_0x5067c5,_0x4d43f1){const _0x4eaf4f=a286_0x4dd9,_0x7898d4=_0x5067c5();while(!![]){try{const _0x51e0a2=parseInt(_0x4eaf4f(0xc9))/0x1*(-parseInt(_0x4eaf4f(0xba))/0x2)+-parseInt(_0x4eaf4f(0xbd))/0x3+-parseInt(_0x4eaf4f(0xc5))/0x4+parseInt(_0x4eaf4f(0xd3))/0x5*(parseInt(_0x4eaf4f(0xc6))/0x6)+parseInt(_0x4eaf4f(0xbc))/0x7+parseInt(_0x4eaf4f(0xcd))/0x8+parseInt(_0x4eaf4f(0xc0))/0x9;if(_0x51e0a2===_0x4d43f1)break;else _0x7898d4['push'](_0x7898d4['shift']());}catch(_0x23f1d1){_0x7898d4['push'](_0x7898d4['shift']());}}}(a286_0x1bbd,0x9641d));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x315751=a286_0x4dd9,_0x5e42dd=getTemplateBaseUrl();return _0x5e42dd+_0x315751(0xc2);}function a286_0x4dd9(_0x4b9f5f,_0x277934){_0x4b9f5f=_0x4b9f5f-0xb8;const _0x1bbdb2=a286_0x1bbd();let _0x4dd927=_0x1bbdb2[_0x4b9f5f];return _0x4dd927;}const CACHE_DIR=join(homedir(),a286_0x55a57a(0xd2),a286_0x55a57a(0xb8));export async function fetchGuidesFromCDN(){const _0x2f53d6=a286_0x55a57a,_0x646ad5=getGuidesCdnUrl(),_0x4fae30=await fetch(_0x646ad5,{'headers':{'Accept':'application/json'}});if(!_0x4fae30['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x4fae30[_0x2f53d6(0xca)]+'\x20'+_0x4fae30[_0x2f53d6(0xbf)]);const _0x14ad6f=await _0x4fae30[_0x2f53d6(0xcb)]();if(!_0x14ad6f[_0x2f53d6(0xbe)]||typeof _0x14ad6f[_0x2f53d6(0xbe)]!==_0x2f53d6(0xcc))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x14ad6f;}export function writeGuidesToProject(_0x2e9b1a,_0x393613,_0x59e4e9=a286_0x55a57a(0xd5),_0x4ba15f){const _0x2714d1=a286_0x55a57a,_0x30f417=join(_0x393613,_0x59e4e9);mkdirSync(_0x30f417,{'recursive':!![]});for(const [_0x4b239f,_0x284936]of Object[_0x2714d1(0xbb)](_0x2e9b1a[_0x2714d1(0xbe)])){let _0x5bbe74=_0x284936[_0x2714d1(0xd9)];_0x284936[_0x2714d1(0xb9)]&&(_0x5bbe74=appendUpdateTime(_0x5bbe74,_0x284936[_0x2714d1(0xb9)])),writeFileSync(join(_0x30f417,_0x4b239f+_0x2714d1(0xd4)),_0x5bbe74,_0x2714d1(0xc4));}}export function appendUpdateTime(_0x2d27ef,_0x52e547){const _0x1b807f=a286_0x55a57a;return _0x2d27ef=_0x2d27ef['replace'](/\n*>更新时间:.*$/m,''),_0x2d27ef[_0x1b807f(0xce)]()+(_0x1b807f(0xc3)+_0x52e547);}export function getSkillTemplate(_0x2a53bb){const _0x1e3846=a286_0x55a57a;return _0x2a53bb['skillTemplate']?.[_0x1e3846(0xd9)]||'';}export function appendExtendContents(_0x587ef4,_0x3ec667,_0x1bb9c3){const _0x3e2769=a286_0x55a57a,_0x1d3d67=[];for(const [,_0x5a81bf]of Object[_0x3e2769(0xbb)](_0x3ec667['guides'])){_0x5a81bf[_0x3e2769(0xd8)]&&_0x1d3d67[_0x3e2769(0xd7)](_0x5a81bf[_0x3e2769(0xd8)][_0x3e2769(0xce)]());}if(_0x1d3d67[_0x3e2769(0xcf)]===0x0)return _0x587ef4;return _0x587ef4[_0x3e2769(0xce)]()+'\x0a\x0a'+_0x1d3d67[_0x3e2769(0xd0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3a6125,_0x372745,_0x242ba0){const _0x55ccaa=a286_0x55a57a,_0x44408f=getSkillTemplate(_0x3a6125);if(!_0x44408f)throw new Error(_0x55ccaa(0xd6));const _0x5d4479=dirname(_0x372745);mkdirSync(_0x5d4479,{'recursive':!![]});let _0x4dce28=_0x44408f['replace'](/\{\{IDE_NAME\}\}/g,_0x242ba0);_0x4dce28=appendExtendContents(_0x4dce28,_0x3a6125),_0x3a6125[_0x55ccaa(0xc7)][_0x55ccaa(0xb9)]&&(_0x4dce28=appendUpdateTime(_0x4dce28,_0x3a6125[_0x55ccaa(0xc7)][_0x55ccaa(0xb9)])),writeFileSync(_0x372745,_0x4dce28,_0x55ccaa(0xc4));}export async function installGuides(_0x14b0ec){const _0x1c69c7=a286_0x55a57a,_0x3b0d83=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3b0d83,_0x14b0ec),Object[_0x1c69c7(0xc8)](_0x3b0d83['guides'])[_0x1c69c7(0xcf)];}export function getGuidesSummary(_0x539b9e){const _0x117f10=a286_0x55a57a;return Object['entries'](_0x539b9e[_0x117f10(0xbe)])['map'](([_0x3776b0,_0x372864])=>({'key':_0x3776b0,'title':_0x372864[_0x117f10(0xc1)],'path':_0x372864[_0x117f10(0xd1)]}));}function a286_0x1bbd(){const _0x47ba47=['6674004BNXVln','title','/skills/guides.json','\x0a\x0a>更新时间:','utf-8','4625668StvYxR','19722fAMBBL','skillTemplate','keys','100207XWtnvy','status','json','object','8126352LGWOGU','trimEnd','length','join','path','.lovrabet','1585uPUWXs','.md','.lovrabet/skill/guides','CDN\x20data\x20is\x20missing\x20skillTemplate','push','extendContent','content','cache','lastUpdated','2BeIqJl','entries','1375094GaUDps','3371082BYoSQu','guides','statusText'];a286_0x1bbd=function(){return _0x47ba47;};return a286_0x1bbd();}
@@ -1 +1 @@
1
- function a285_0x3545(_0x4e8339,_0x51ec1f){_0x4e8339=_0x4e8339-0x6f;const _0x3d08e6=a285_0x3d08();let _0x35454c=_0x3d08e6[_0x4e8339];return _0x35454c;}(function(_0x51bb59,_0x536da3){const _0xe3be74=a285_0x3545,_0x20bb7a=_0x51bb59();while(!![]){try{const _0x5e4afd=parseInt(_0xe3be74(0x82))/0x1*(parseInt(_0xe3be74(0x7a))/0x2)+-parseInt(_0xe3be74(0x85))/0x3+-parseInt(_0xe3be74(0x72))/0x4+parseInt(_0xe3be74(0x76))/0x5+parseInt(_0xe3be74(0x73))/0x6+parseInt(_0xe3be74(0x87))/0x7+-parseInt(_0xe3be74(0x7b))/0x8;if(_0x5e4afd===_0x536da3)break;else _0x20bb7a['push'](_0x20bb7a['shift']());}catch(_0x275d73){_0x20bb7a['push'](_0x20bb7a['shift']());}}}(a285_0x3d08,0xc422e));export async function httpRequest(_0x4429ed,_0x411658={}){const _0x2e6323=a285_0x3545,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x411658;let _0x5d73a2=null;for(let _0xb2f078=0x0;_0xb2f078<=retries;_0xb2f078++){try{const _0x314db5=new AbortController(),_0x3e0607=setTimeout(()=>_0x314db5['abort'](),timeout),_0x357faf=await fetch(_0x4429ed,{'headers':headers,'signal':_0x314db5[_0x2e6323(0x81)]});clearTimeout(_0x3e0607);let _0x2c7822;const _0x23f997=_0x357faf[_0x2e6323(0x86)]['get'](_0x2e6323(0x7d));return _0x23f997?.[_0x2e6323(0x89)](_0x2e6323(0x79))?_0x2c7822=await _0x357faf[_0x2e6323(0x7c)]():_0x2c7822=await _0x357faf[_0x2e6323(0x8a)](),{'ok':_0x357faf['ok'],'status':_0x357faf[_0x2e6323(0x77)],'statusText':_0x357faf[_0x2e6323(0x6f)],'data':_0x2c7822,'headers':_0x357faf[_0x2e6323(0x86)],'url':_0x357faf[_0x2e6323(0x71)],'text':()=>_0x357faf[_0x2e6323(0x8a)]()};}catch(_0x259305){_0x5d73a2=_0x259305 instanceof Error?_0x259305:new Error(String(_0x259305));if(_0xb2f078===retries)break;if(shouldRetry(_0x259305)){console['log']('*\x20Request\x20failed;\x20retry\x20'+(_0xb2f078+0x1)+_0x2e6323(0x74)+retryDelay+_0x2e6323(0x83)),await sleep(retryDelay);continue;}else break;}}throw _0x5d73a2||new Error(_0x2e6323(0x84));}function shouldRetry(_0x311e21){const _0x569092=a285_0x3545;if(_0x311e21 instanceof Error){if(_0x311e21['name']===_0x569092(0x7f))return![];if(_0x311e21[_0x569092(0x88)]===_0x569092(0x7e)&&_0x311e21['message'][_0x569092(0x89)](_0x569092(0x70)))return!![];if(_0x311e21[_0x569092(0x75)][_0x569092(0x89)](_0x569092(0x80)))return!![];if(_0x311e21[_0x569092(0x75)][_0x569092(0x89)](_0x569092(0x78)))return![];}return![];}function sleep(_0x34df64){return new Promise(_0x40c04b=>setTimeout(_0x40c04b,_0x34df64));}export function validateUrl(_0x23a6b1){try{return new URL(_0x23a6b1),!![];}catch{return![];}}function a285_0x3d08(){const _0x34d7b2=['\x20in\x20','message','745185uftlgo','status','ENOTFOUND','application/json','6oEswEt','9638280fMlKJe','json','content-type','TypeError','AbortError','ECONNRESET','signal','392339HVeVLl','ms...','Request\x20failed','1625820SGrrDn','headers','7118629VRUBpI','name','includes','text','statusText','fetch','url','4245444blvnuz','7610754nhvFmp'];a285_0x3d08=function(){return _0x34d7b2;};return a285_0x3d08();}
1
+ (function(_0x244bbd,_0x53fcac){const _0x3ab10d=a287_0x2dbb,_0x3bba10=_0x244bbd();while(!![]){try{const _0x5809f4=-parseInt(_0x3ab10d(0x1ac))/0x1+-parseInt(_0x3ab10d(0x1ad))/0x2*(-parseInt(_0x3ab10d(0x1ae))/0x3)+-parseInt(_0x3ab10d(0x1a1))/0x4+-parseInt(_0x3ab10d(0x1a9))/0x5+parseInt(_0x3ab10d(0x1aa))/0x6+parseInt(_0x3ab10d(0x1a0))/0x7*(-parseInt(_0x3ab10d(0x1a7))/0x8)+parseInt(_0x3ab10d(0x1b6))/0x9;if(_0x5809f4===_0x53fcac)break;else _0x3bba10['push'](_0x3bba10['shift']());}catch(_0x904bae){_0x3bba10['push'](_0x3bba10['shift']());}}}(a287_0x2fd8,0x3db61));export async function httpRequest(_0x3a7a45,_0x454d15={}){const _0x2059c6=a287_0x2dbb,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x454d15;let _0x5202c6=null;for(let _0x150feb=0x0;_0x150feb<=retries;_0x150feb++){try{const _0x39a0b1=new AbortController(),_0x9ba409=setTimeout(()=>_0x39a0b1['abort'](),timeout),_0x5c1085=await fetch(_0x3a7a45,{'headers':headers,'signal':_0x39a0b1[_0x2059c6(0x1b7)]});clearTimeout(_0x9ba409);let _0x303b5c;const _0x4509c6=_0x5c1085[_0x2059c6(0x1a3)][_0x2059c6(0x1b1)]('content-type');return _0x4509c6?.[_0x2059c6(0x1ab)]('application/json')?_0x303b5c=await _0x5c1085['json']():_0x303b5c=await _0x5c1085[_0x2059c6(0x1b0)](),{'ok':_0x5c1085['ok'],'status':_0x5c1085[_0x2059c6(0x1b4)],'statusText':_0x5c1085[_0x2059c6(0x1af)],'data':_0x303b5c,'headers':_0x5c1085[_0x2059c6(0x1a3)],'url':_0x5c1085['url'],'text':()=>_0x5c1085[_0x2059c6(0x1b0)]()};}catch(_0x4b60af){_0x5202c6=_0x4b60af instanceof Error?_0x4b60af:new Error(String(_0x4b60af));if(_0x150feb===retries)break;if(shouldRetry(_0x4b60af)){console[_0x2059c6(0x1b5)]('*\x20Request\x20failed;\x20retry\x20'+(_0x150feb+0x1)+'\x20in\x20'+retryDelay+_0x2059c6(0x1a2)),await sleep(retryDelay);continue;}else break;}}throw _0x5202c6||new Error(_0x2059c6(0x1b2));}function a287_0x2dbb(_0x26962b,_0x2bde4c){_0x26962b=_0x26962b-0x1a0;const _0x2fd8f9=a287_0x2fd8();let _0x2dbb9a=_0x2fd8f9[_0x26962b];return _0x2dbb9a;}function shouldRetry(_0xce7210){const _0x4c1c45=a287_0x2dbb;if(_0xce7210 instanceof Error){if(_0xce7210['name']==='AbortError')return![];if(_0xce7210[_0x4c1c45(0x1a8)]===_0x4c1c45(0x1a4)&&_0xce7210[_0x4c1c45(0x1a5)][_0x4c1c45(0x1ab)](_0x4c1c45(0x1a6)))return!![];if(_0xce7210['message'][_0x4c1c45(0x1ab)]('ECONNRESET'))return!![];if(_0xce7210[_0x4c1c45(0x1a5)][_0x4c1c45(0x1ab)](_0x4c1c45(0x1b3)))return![];}return![];}function a287_0x2fd8(){const _0x487d47=['8ElBoqA','name','2254735eCiMUb','936168VttkZr','includes','277479TlwhSg','55054TWUzYC','24liBLXl','statusText','text','get','Request\x20failed','ENOTFOUND','status','log','11413143RPsyUn','signal','3314731cVITyo','758572uBXduR','ms...','headers','TypeError','message','fetch'];a287_0x2fd8=function(){return _0x487d47;};return a287_0x2fd8();}function sleep(_0x28f7dc){return new Promise(_0x2be2ea=>setTimeout(_0x2be2ea,_0x28f7dc));}export function validateUrl(_0x320d58){try{return new URL(_0x320d58),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x263e35,_0xcf81a8){const _0x5a6708=a286_0x2c68,_0x159704=_0x263e35();while(!![]){try{const _0x4b59e1=parseInt(_0x5a6708(0xea))/0x1+-parseInt(_0x5a6708(0xeb))/0x2+-parseInt(_0x5a6708(0xed))/0x3*(-parseInt(_0x5a6708(0xf1))/0x4)+-parseInt(_0x5a6708(0xf2))/0x5+parseInt(_0x5a6708(0xe6))/0x6+-parseInt(_0x5a6708(0xee))/0x7*(parseInt(_0x5a6708(0xe9))/0x8)+parseInt(_0x5a6708(0xf4))/0x9;if(_0x4b59e1===_0xcf81a8)break;else _0x159704['push'](_0x159704['shift']());}catch(_0x3af0dc){_0x159704['push'](_0x159704['shift']());}}}(a286_0x43ef,0x459c4));function env(_0x3bc92b){return process.env[`RABETBASE_${_0x3bc92b}`]||process.env[`LOVRABET_${_0x3bc92b}`]||undefined;}export function isNonInteractive(_0x408ba2){const _0x364c06=a286_0x2c68;return!!(_0x408ba2[_0x364c06(0xe7)]||_0x408ba2['ci']||env('CI')==='true'||process.env.CI===_0x364c06(0xf5)||!process[_0x364c06(0xef)][_0x364c06(0xf3)]||!isStdinRawModeSupported());}function a286_0x2c68(_0x341a7a,_0x237cb8){_0x341a7a=_0x341a7a-0xe6;const _0x43ef66=a286_0x43ef();let _0x2c6880=_0x43ef66[_0x341a7a];return _0x2c6880;}function a286_0x43ef(){const _0x3736b5=['nonInteractive','stdin','153904gYOBdz','49756QPuVcs','576220OhPIdy','setRawMode','3KjBHcM','168TjgVtk','stdout','isRaw','139452jaySQp','320135WUYzFs','isTTY','6800922Izgzgb','true','1552176xTMvjK'];a286_0x43ef=function(){return _0x3736b5;};return a286_0x43ef();}function isStdinRawModeSupported(){const _0x293e83=a286_0x2c68;if(!process[_0x293e83(0xe8)][_0x293e83(0xf3)])return![];try{const _0x48c531=process[_0x293e83(0xe8)][_0x293e83(0xf0)];return process[_0x293e83(0xe8)][_0x293e83(0xec)](!![]),process['stdin']['setRawMode'](_0x48c531??![]),!![];}catch{return![];}}
1
+ (function(_0xf14641,_0xb75fcd){const _0x2dfe4a=a288_0x14ca,_0x24b51a=_0xf14641();while(!![]){try{const _0x240f4d=-parseInt(_0x2dfe4a(0x115))/0x1+-parseInt(_0x2dfe4a(0x10f))/0x2*(parseInt(_0x2dfe4a(0x112))/0x3)+-parseInt(_0x2dfe4a(0x113))/0x4+parseInt(_0x2dfe4a(0x10a))/0x5*(parseInt(_0x2dfe4a(0x116))/0x6)+parseInt(_0x2dfe4a(0x108))/0x7*(parseInt(_0x2dfe4a(0x110))/0x8)+-parseInt(_0x2dfe4a(0x10e))/0x9+parseInt(_0x2dfe4a(0x10c))/0xa;if(_0x240f4d===_0xb75fcd)break;else _0x24b51a['push'](_0x24b51a['shift']());}catch(_0x3856fb){_0x24b51a['push'](_0x24b51a['shift']());}}}(a288_0x4952,0x28591));function env(_0x50c9e3){return process.env[`RABETBASE_${_0x50c9e3}`]||process.env[`LOVRABET_${_0x50c9e3}`]||undefined;}export function isNonInteractive(_0x8df095){const _0x475935=a288_0x14ca;return!!(_0x8df095['nonInteractive']||_0x8df095['ci']||env('CI')===_0x475935(0x111)||process.env.CI===_0x475935(0x111)||!process[_0x475935(0x10d)][_0x475935(0x10b)]||!isStdinRawModeSupported());}function a288_0x14ca(_0x48a670,_0x1135cd){_0x48a670=_0x48a670-0x108;const _0x49529a=a288_0x4952();let _0x14ca1e=_0x49529a[_0x48a670];return _0x14ca1e;}function isStdinRawModeSupported(){const _0x32d714=a288_0x14ca;if(!process[_0x32d714(0x109)][_0x32d714(0x10b)])return![];try{const _0x338ce2=process[_0x32d714(0x109)]['isRaw'];return process[_0x32d714(0x109)][_0x32d714(0x114)](!![]),process[_0x32d714(0x109)]['setRawMode'](_0x338ce2??![]),!![];}catch{return![];}}function a288_0x4952(){const _0x19b052=['130SJIKbD','8YzJyka','true','5547zAlynu','122036xnoRXY','setRawMode','217366pGQmfH','1277772ONFWDW','1601117HHIeNH','stdin','5kAwZBi','isTTY','2141830DBZtFW','stdout','1102959ZyVZuD'];a288_0x4952=function(){return _0x19b052;};return a288_0x4952();}
@@ -1 +1 @@
1
- function a287_0x314d(){const _0x8d4303=['warn','clear','5718294FBpLTm','combine','.lovrabet.log','filter','now','writeFileSync','Failed\x20to\x20clear\x20logs:','79678iGEtFx','20YeCcUd','20PMiGej','getWinstonInstance','existsSync','info','logTask','logFilePath','duration','winstonLogger','log','green','transports','error','printf','196861Jggaqw','dirname','159135aGVYEc','247239ZRXjma','initWinstonLogger','success','errors','details','blue','32gVMZOV','utf8','Failed\x20to\x20read\x20logs:','format','message','trim','unknown','level','rawCommand','2051112FvAPdZ','File','createLogger','command','timestamp','addColors','clearLogs','currentRawCommand','Starting:\x20','parse','Failed:\x20','3544743vrOmFk'];a287_0x314d=function(){return _0x8d4303;};return a287_0x314d();}const a287_0x1dffea=a287_0xa950;(function(_0x3b003a,_0x1d29f2){const _0x7b0f05=a287_0xa950,_0x2c03a1=_0x3b003a();while(!![]){try{const _0x56bd1e=-parseInt(_0x7b0f05(0x14b))/0x1*(parseInt(_0x7b0f05(0x14d))/0x2)+parseInt(_0x7b0f05(0x141))/0x3+-parseInt(_0x7b0f05(0x16c))/0x4+-parseInt(_0x7b0f05(0x15c))/0x5+parseInt(_0x7b0f05(0x144))/0x6+parseInt(_0x7b0f05(0x15a))/0x7*(-parseInt(_0x7b0f05(0x163))/0x8)+-parseInt(_0x7b0f05(0x15d))/0x9*(-parseInt(_0x7b0f05(0x14c))/0xa);if(_0x56bd1e===_0x1d29f2)break;else _0x2c03a1['push'](_0x2c03a1['shift']());}catch(_0x1256da){_0x2c03a1['push'](_0x2c03a1['shift']());}}}(a287_0x314d,0xb39cf));function a287_0xa950(_0x1481d6,_0x3e1887){_0x1481d6=_0x1481d6-0x139;const _0x314d7d=a287_0x314d();let _0xa9501c=_0x314d7d[_0x1481d6];return _0xa9501c;}import a287_0x26c004 from'winston';import a287_0x1df3d7 from'node:fs';import a287_0x2b297b from'node:path';class Logger{[a287_0x1dffea(0x154)];['logFilePath'];['currentRawCommand']='';constructor(){const _0x42e0de=a287_0x1dffea;this[_0x42e0de(0x152)]='';}['setRawCommand'](_0x231222){const _0x45bcc3=a287_0x1dffea;this[_0x45bcc3(0x13d)]=_0x231222;}[a287_0x1dffea(0x15e)](){const _0x1f552e=a287_0x1dffea,_0x3a6436=a287_0x2b297b[_0x1f552e(0x15b)](this['logFilePath']);!a287_0x1df3d7[_0x1f552e(0x14f)](_0x3a6436)&&a287_0x1df3d7['mkdirSync'](_0x3a6436,{'recursive':!![]});const _0x67650b=a287_0x26c004[_0x1f552e(0x166)][_0x1f552e(0x145)](a287_0x26c004['format']['timestamp'](),a287_0x26c004[_0x1f552e(0x166)][_0x1f552e(0x160)]({'stack':!![]}),a287_0x26c004[_0x1f552e(0x166)][_0x1f552e(0x159)](_0x5e6a18=>{const _0x4da990=_0x1f552e,_0x49bc72={'timestamp':_0x5e6a18[_0x4da990(0x13a)]||new Date()['toISOString'](),'level':_0x5e6a18[_0x4da990(0x16a)]||'info','command':_0x5e6a18[_0x4da990(0x139)]||_0x4da990(0x169),'rawCommand':_0x5e6a18[_0x4da990(0x16b)]||this[_0x4da990(0x13d)]||undefined,'message':_0x5e6a18[_0x4da990(0x167)]||'','duration':_0x5e6a18[_0x4da990(0x153)]||undefined,'details':_0x5e6a18[_0x4da990(0x161)]||undefined};return JSON['stringify'](_0x49bc72);}));this[_0x1f552e(0x154)]=a287_0x26c004[_0x1f552e(0x16e)]({'level':'info','format':_0x67650b,'transports':[new a287_0x26c004[(_0x1f552e(0x157))][(_0x1f552e(0x16d))]({'filename':this[_0x1f552e(0x152)],'level':_0x1f552e(0x150)})],'silent':![]}),a287_0x26c004[_0x1f552e(0x13b)]({'success':_0x1f552e(0x156),'error':'red','warn':'yellow','info':_0x1f552e(0x162)});}['setLogPath'](_0x514860){const _0x18de05=a287_0x1dffea;this[_0x18de05(0x152)]=a287_0x2b297b['join'](_0x514860,_0x18de05(0x146)),this[_0x18de05(0x154)]&&this[_0x18de05(0x154)][_0x18de05(0x143)](),this[_0x18de05(0x15e)]();}[a287_0x1dffea(0x150)](_0xca58c,_0xbb4c01,_0xb7c16c){const _0x534100=a287_0x1dffea;if(!this[_0x534100(0x152)]||!this[_0x534100(0x154)])return;this[_0x534100(0x154)]['info'](_0xbb4c01,{'command':_0xca58c,'details':_0xb7c16c});}['success'](_0x50bec9,_0x18dbc4,_0x583812,_0x556c88){const _0x44b532=a287_0x1dffea;if(!this[_0x44b532(0x152)]||!this[_0x44b532(0x154)])return;this[_0x44b532(0x154)][_0x44b532(0x155)]('info',_0x18dbc4,{'level':_0x44b532(0x15f),'command':_0x50bec9,'duration':_0x583812,'details':_0x556c88});}[a287_0x1dffea(0x158)](_0x991073,_0x3d0021,_0x164eda){const _0x22bef8=a287_0x1dffea;if(!this[_0x22bef8(0x152)]||!this[_0x22bef8(0x154)])return;this[_0x22bef8(0x154)][_0x22bef8(0x158)](_0x3d0021,{'command':_0x991073,'details':_0x164eda});}[a287_0x1dffea(0x142)](_0x54e36a,_0x1bdf8e,_0x2ff077){const _0xffb8b0=a287_0x1dffea;if(!this[_0xffb8b0(0x152)]||!this['winstonLogger'])return;this[_0xffb8b0(0x154)]['warn'](_0x1bdf8e,{'command':_0x54e36a,'details':_0x2ff077});}async[a287_0x1dffea(0x151)](_0x57c73f,_0x3f8cc3,_0x370964){const _0x5b4a52=a287_0x1dffea,_0x2879a3=Date[_0x5b4a52(0x148)]();this['info'](_0x57c73f,_0x5b4a52(0x13e)+_0x3f8cc3);try{const _0x8ac6dd=await _0x370964(),_0x9c713c=Date[_0x5b4a52(0x148)]()-_0x2879a3;return this[_0x5b4a52(0x15f)](_0x57c73f,'Completed:\x20'+_0x3f8cc3,_0x9c713c),_0x8ac6dd;}catch(_0x3eaf49){const _0x4d77c9=Date[_0x5b4a52(0x148)]()-_0x2879a3;this['error'](_0x57c73f,_0x5b4a52(0x140)+_0x3f8cc3,{'error':_0x3eaf49 instanceof Error?_0x3eaf49[_0x5b4a52(0x167)]:String(_0x3eaf49),'duration':_0x4d77c9});throw _0x3eaf49;}}['readLogs'](){const _0x5372e4=a287_0x1dffea;try{if(!a287_0x1df3d7['existsSync'](this[_0x5372e4(0x152)]))return[];const _0x5dc4cf=a287_0x1df3d7['readFileSync'](this['logFilePath'],_0x5372e4(0x164));return _0x5dc4cf['split']('\x0a')[_0x5372e4(0x147)](_0x261c4a=>_0x261c4a[_0x5372e4(0x168)]())['map'](_0x4d5b48=>JSON[_0x5372e4(0x13f)](_0x4d5b48));}catch(_0x4f3abc){return console[_0x5372e4(0x142)](_0x5372e4(0x165),_0x4f3abc),[];}}[a287_0x1dffea(0x13c)](){const _0x5a2cde=a287_0x1dffea;try{a287_0x1df3d7[_0x5a2cde(0x14f)](this[_0x5a2cde(0x152)])&&a287_0x1df3d7[_0x5a2cde(0x149)](this[_0x5a2cde(0x152)],'',_0x5a2cde(0x164));}catch(_0x3d51a1){console['warn'](_0x5a2cde(0x14a),_0x3d51a1);}}[a287_0x1dffea(0x14e)](){const _0x1d1723=a287_0x1dffea;return this[_0x1d1723(0x154)];}}export const logger=new Logger();
1
+ const a289_0x2ad604=a289_0x3ad4;(function(_0x16d640,_0x3a4fde){const _0x32d4c6=a289_0x3ad4,_0x52a623=_0x16d640();while(!![]){try{const _0x4e289f=-parseInt(_0x32d4c6(0x1c5))/0x1*(-parseInt(_0x32d4c6(0x1af))/0x2)+parseInt(_0x32d4c6(0x1b7))/0x3+parseInt(_0x32d4c6(0x1c0))/0x4+-parseInt(_0x32d4c6(0x1c9))/0x5*(-parseInt(_0x32d4c6(0x1ab))/0x6)+-parseInt(_0x32d4c6(0x1c7))/0x7+parseInt(_0x32d4c6(0x1d0))/0x8+parseInt(_0x32d4c6(0x1d1))/0x9*(-parseInt(_0x32d4c6(0x1bb))/0xa);if(_0x4e289f===_0x3a4fde)break;else _0x52a623['push'](_0x52a623['shift']());}catch(_0x353612){_0x52a623['push'](_0x52a623['shift']());}}}(a289_0xc3a8,0x9b082));function a289_0xc3a8(){const _0x3fcc29=['clearLogs','rawCommand','20993140UoqTTY','blue','transports','timestamp','readFileSync','3050080vOUuLM','join','stringify','info','map','1UiaKrA','combine','7671741JpzSDi','clear','494935Qxzfzb','.lovrabet.log','errors','logTask','addColors','logFilePath','setRawCommand','5752504nFqVFR','9qmfIJi','setLogPath','yellow','warn','currentRawCommand','level','initWinstonLogger','message','duration','toISOString','existsSync','red','parse','Completed:\x20','now','error','readLogs','winstonLogger','72OIvPqw','getWinstonInstance','printf','format','177768UYdbbi','Failed\x20to\x20clear\x20logs:','utf8','success','writeFileSync','log','Failed\x20to\x20read\x20logs:','unknown','3215928qkjeVA','details'];a289_0xc3a8=function(){return _0x3fcc29;};return a289_0xc3a8();}function a289_0x3ad4(_0x15b30c,_0x292f66){_0x15b30c=_0x15b30c-0x1a5;const _0xc3a88b=a289_0xc3a8();let _0x3ad4c0=_0xc3a88b[_0x15b30c];return _0x3ad4c0;}import a289_0x41326f from'winston';import a289_0x1430cb from'node:fs';import a289_0x5610e6 from'node:path';class Logger{[a289_0x2ad604(0x1aa)];[a289_0x2ad604(0x1ce)];[a289_0x2ad604(0x1d5)]='';constructor(){const _0x47965b=a289_0x2ad604;this[_0x47965b(0x1ce)]='';}[a289_0x2ad604(0x1cf)](_0xd7ce6){const _0x41bdd3=a289_0x2ad604;this[_0x41bdd3(0x1d5)]=_0xd7ce6;}[a289_0x2ad604(0x1d7)](){const _0x5504b6=a289_0x2ad604,_0x4dcd12=a289_0x5610e6['dirname'](this[_0x5504b6(0x1ce)]);!a289_0x1430cb[_0x5504b6(0x1db)](_0x4dcd12)&&a289_0x1430cb['mkdirSync'](_0x4dcd12,{'recursive':!![]});const _0x5a580d=a289_0x41326f[_0x5504b6(0x1ae)][_0x5504b6(0x1c6)](a289_0x41326f['format'][_0x5504b6(0x1be)](),a289_0x41326f['format'][_0x5504b6(0x1cb)]({'stack':!![]}),a289_0x41326f[_0x5504b6(0x1ae)][_0x5504b6(0x1ad)](_0xdc8de1=>{const _0x497e30=_0x5504b6,_0xf15845={'timestamp':_0xdc8de1[_0x497e30(0x1be)]||new Date()[_0x497e30(0x1da)](),'level':_0xdc8de1[_0x497e30(0x1d6)]||'info','command':_0xdc8de1['command']||_0x497e30(0x1b6),'rawCommand':_0xdc8de1[_0x497e30(0x1ba)]||this['currentRawCommand']||undefined,'message':_0xdc8de1['message']||'','duration':_0xdc8de1[_0x497e30(0x1d9)]||undefined,'details':_0xdc8de1[_0x497e30(0x1b8)]||undefined};return JSON[_0x497e30(0x1c2)](_0xf15845);}));this['winstonLogger']=a289_0x41326f['createLogger']({'level':'info','format':_0x5a580d,'transports':[new a289_0x41326f[(_0x5504b6(0x1bd))]['File']({'filename':this[_0x5504b6(0x1ce)],'level':_0x5504b6(0x1c3)})],'silent':![]}),a289_0x41326f[_0x5504b6(0x1cd)]({'success':'green','error':_0x5504b6(0x1dc),'warn':_0x5504b6(0x1d3),'info':_0x5504b6(0x1bc)});}[a289_0x2ad604(0x1d2)](_0x5a2370){const _0xa5adb=a289_0x2ad604;this[_0xa5adb(0x1ce)]=a289_0x5610e6[_0xa5adb(0x1c1)](_0x5a2370,_0xa5adb(0x1ca)),this['winstonLogger']&&this[_0xa5adb(0x1aa)][_0xa5adb(0x1c8)](),this[_0xa5adb(0x1d7)]();}[a289_0x2ad604(0x1c3)](_0x50aa6e,_0x3ba1d4,_0x2fae99){const _0x105825=a289_0x2ad604;if(!this[_0x105825(0x1ce)]||!this[_0x105825(0x1aa)])return;this['winstonLogger'][_0x105825(0x1c3)](_0x3ba1d4,{'command':_0x50aa6e,'details':_0x2fae99});}[a289_0x2ad604(0x1b2)](_0x5cddc2,_0x413fc8,_0x41d5a5,_0x5efcd8){const _0xccb6be=a289_0x2ad604;if(!this[_0xccb6be(0x1ce)]||!this['winstonLogger'])return;this[_0xccb6be(0x1aa)][_0xccb6be(0x1b4)](_0xccb6be(0x1c3),_0x413fc8,{'level':_0xccb6be(0x1b2),'command':_0x5cddc2,'duration':_0x41d5a5,'details':_0x5efcd8});}[a289_0x2ad604(0x1a8)](_0x13ecad,_0x4d0e68,_0x400f2f){const _0x4652e3=a289_0x2ad604;if(!this[_0x4652e3(0x1ce)]||!this[_0x4652e3(0x1aa)])return;this[_0x4652e3(0x1aa)][_0x4652e3(0x1a8)](_0x4d0e68,{'command':_0x13ecad,'details':_0x400f2f});}['warn'](_0xf94462,_0x1977ed,_0x55b19a){const _0x3c306d=a289_0x2ad604;if(!this[_0x3c306d(0x1ce)]||!this[_0x3c306d(0x1aa)])return;this[_0x3c306d(0x1aa)][_0x3c306d(0x1d4)](_0x1977ed,{'command':_0xf94462,'details':_0x55b19a});}async[a289_0x2ad604(0x1cc)](_0x164ac0,_0xfd5f1b,_0x30db69){const _0x2b1ef5=a289_0x2ad604,_0x592cf8=Date[_0x2b1ef5(0x1a7)]();this['info'](_0x164ac0,'Starting:\x20'+_0xfd5f1b);try{const _0x1a6c2c=await _0x30db69(),_0x3d749b=Date[_0x2b1ef5(0x1a7)]()-_0x592cf8;return this[_0x2b1ef5(0x1b2)](_0x164ac0,_0x2b1ef5(0x1a6)+_0xfd5f1b,_0x3d749b),_0x1a6c2c;}catch(_0xb67dd2){const _0x470184=Date['now']()-_0x592cf8;this[_0x2b1ef5(0x1a8)](_0x164ac0,'Failed:\x20'+_0xfd5f1b,{'error':_0xb67dd2 instanceof Error?_0xb67dd2[_0x2b1ef5(0x1d8)]:String(_0xb67dd2),'duration':_0x470184});throw _0xb67dd2;}}[a289_0x2ad604(0x1a9)](){const _0x33fc00=a289_0x2ad604;try{if(!a289_0x1430cb[_0x33fc00(0x1db)](this[_0x33fc00(0x1ce)]))return[];const _0x393726=a289_0x1430cb[_0x33fc00(0x1bf)](this[_0x33fc00(0x1ce)],_0x33fc00(0x1b1));return _0x393726['split']('\x0a')['filter'](_0x1823be=>_0x1823be['trim']())[_0x33fc00(0x1c4)](_0x100dcf=>JSON[_0x33fc00(0x1a5)](_0x100dcf));}catch(_0x354c66){return console['warn'](_0x33fc00(0x1b5),_0x354c66),[];}}[a289_0x2ad604(0x1b9)](){const _0x1bc5f1=a289_0x2ad604;try{a289_0x1430cb[_0x1bc5f1(0x1db)](this[_0x1bc5f1(0x1ce)])&&a289_0x1430cb[_0x1bc5f1(0x1b3)](this[_0x1bc5f1(0x1ce)],'',_0x1bc5f1(0x1b1));}catch(_0x580600){console[_0x1bc5f1(0x1d4)](_0x1bc5f1(0x1b0),_0x580600);}}[a289_0x2ad604(0x1ac)](){const _0x125d2c=a289_0x2ad604;return this[_0x125d2c(0x1aa)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x533f0e,_0x6f3fdc){const _0x51cf2b=a288_0x1d44,_0x3d6b5c=_0x533f0e();while(!![]){try{const _0x5601b7=-parseInt(_0x51cf2b(0x1ad))/0x1*(-parseInt(_0x51cf2b(0x1b3))/0x2)+parseInt(_0x51cf2b(0x1a7))/0x3+parseInt(_0x51cf2b(0x1b0))/0x4+-parseInt(_0x51cf2b(0x1a9))/0x5*(parseInt(_0x51cf2b(0x1ae))/0x6)+-parseInt(_0x51cf2b(0x1a8))/0x7+parseInt(_0x51cf2b(0x1b4))/0x8+parseInt(_0x51cf2b(0x1a5))/0x9;if(_0x5601b7===_0x6f3fdc)break;else _0x3d6b5c['push'](_0x3d6b5c['shift']());}catch(_0x3030f9){_0x3d6b5c['push'](_0x3d6b5c['shift']());}}}(a288_0x2f51,0x2e07b));import{CliErrors}from'../errors.js';function a288_0x1d44(_0x276688,_0x5e5b3d){_0x276688=_0x276688-0x1a5;const _0x2f51c9=a288_0x2f51();let _0x1d44c0=_0x2f51c9[_0x276688];return _0x1d44c0;}export function parseJsonParams(_0x4049d7){const _0xfc1dc6=a288_0x1d44;if(!_0x4049d7)return undefined;let _0x3e11c9;try{_0x3e11c9=JSON[_0xfc1dc6(0x1b1)](_0x4049d7);}catch{throw CliErrors[_0xfc1dc6(0x1af)](_0xfc1dc6(0x1a6)+_0x4049d7);}if(!_0x3e11c9||typeof _0x3e11c9!==_0xfc1dc6(0x1ac)||Array[_0xfc1dc6(0x1b2)](_0x3e11c9))throw CliErrors[_0xfc1dc6(0x1af)](_0xfc1dc6(0x1ab),_0xfc1dc6(0x1aa));return _0x3e11c9;}function a288_0x2f51(){const _0x5a79d3=['5vAHMog','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','object','1jnhsqg','2091498WEnOZf','validation','937520ZNXMjz','parse','isArray','101846grgUVa','1154808MLPrlG','2408652QBUyGV','Invalid\x20JSON\x20for\x20--params:\x20','335352zmAppw','1903608xuzzvq'];a288_0x2f51=function(){return _0x5a79d3;};return a288_0x2f51();}
1
+ function a290_0x1ea9(){const _0x5ea2aa=['1257870kGqLsO','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','29384IWveSs','parse','3485948uNynoL','2GEYryz','816430Ffbbpf','591304haUVOK','1386980bypqst','Invalid\x20JSON\x20for\x20--params:\x20','object','isArray','2820549fJUSAU'];a290_0x1ea9=function(){return _0x5ea2aa;};return a290_0x1ea9();}(function(_0x234e19,_0x1ce0cc){const _0x353062=a290_0x3310,_0x12d66c=_0x234e19();while(!![]){try{const _0x22d3da=parseInt(_0x353062(0x1cb))/0x1+parseInt(_0x353062(0x1c9))/0x2*(parseInt(_0x353062(0x1d0))/0x3)+-parseInt(_0x353062(0x1c8))/0x4+-parseInt(_0x353062(0x1ca))/0x5+parseInt(_0x353062(0x1d1))/0x6+-parseInt(_0x353062(0x1cc))/0x7+parseInt(_0x353062(0x1c6))/0x8;if(_0x22d3da===_0x1ce0cc)break;else _0x12d66c['push'](_0x12d66c['shift']());}catch(_0x516755){_0x12d66c['push'](_0x12d66c['shift']());}}}(a290_0x1ea9,0x7cf94));import{CliErrors}from'../errors.js';function a290_0x3310(_0x28e6ec,_0xc873fe){_0x28e6ec=_0x28e6ec-0x1c5;const _0x1ea956=a290_0x1ea9();let _0x33106b=_0x1ea956[_0x28e6ec];return _0x33106b;}export function parseJsonParams(_0x22e048){const _0x11771c=a290_0x3310;if(!_0x22e048)return undefined;let _0x57c8a4;try{_0x57c8a4=JSON[_0x11771c(0x1c7)](_0x22e048);}catch{throw CliErrors[_0x11771c(0x1d2)](_0x11771c(0x1cd)+_0x22e048);}if(!_0x57c8a4||typeof _0x57c8a4!==_0x11771c(0x1ce)||Array[_0x11771c(0x1cf)](_0x57c8a4))throw CliErrors[_0x11771c(0x1d2)](_0x11771c(0x1c5),_0x11771c(0x1d3));return _0x57c8a4;}
@@ -1 +1 @@
1
- const a289_0x1f9103=a289_0x434e;function a289_0x35a3(){const _0x29e7af=['72951IFDQyd','3133648ZBDahm','5182dOyUIW','5154792equUGI','30yeJeFP','win32','.cmd','593765ekAQPT','338czVjVs','3305076pWxEXW','2742588TunPga'];a289_0x35a3=function(){return _0x29e7af;};return a289_0x35a3();}(function(_0x43af63,_0x39959e){const _0x269db2=a289_0x434e,_0x2b26c8=_0x43af63();while(!![]){try{const _0x1b8ed5=-parseInt(_0x269db2(0xa9))/0x1*(-parseInt(_0x269db2(0xa3))/0x2)+parseInt(_0x269db2(0xa1))/0x3+parseInt(_0x269db2(0xaa))/0x4+-parseInt(_0x269db2(0xa8))/0x5*(parseInt(_0x269db2(0xa5))/0x6)+parseInt(_0x269db2(0xa2))/0x7+-parseInt(_0x269db2(0xa4))/0x8+-parseInt(_0x269db2(0xa0))/0x9;if(_0x1b8ed5===_0x39959e)break;else _0x2b26c8['push'](_0x2b26c8['shift']());}catch(_0x1b6a10){_0x2b26c8['push'](_0x2b26c8['shift']());}}}(a289_0x35a3,0x9a17a));export const isWindows=process['platform']===a289_0x1f9103(0xa6);function a289_0x434e(_0x8ff0f4,_0x44dd99){_0x8ff0f4=_0x8ff0f4-0xa0;const _0x35a39=a289_0x35a3();let _0x434eba=_0x35a39[_0x8ff0f4];return _0x434eba;}export function resolveNpmBin(_0x426b3e){const _0x320f8b=a289_0x1f9103;return isWindows?_0x426b3e+_0x320f8b(0xa7):_0x426b3e;}
1
+ const a291_0xac413=a291_0x2c50;function a291_0x3230(){const _0x2566f5=['8205530CcBeOv','9253592Opxqrp','1032771OYHdRc','7697056UXfpMF','533202rvfJei','platform','4739868UhcuuH','7586866QMdEQP','win32','4igppsH'];a291_0x3230=function(){return _0x2566f5;};return a291_0x3230();}(function(_0xde6cc6,_0x359e7a){const _0x47f5f2=a291_0x2c50,_0x3b8728=_0xde6cc6();while(!![]){try{const _0x4659f5=parseInt(_0x47f5f2(0x101))/0x1*(parseInt(_0x47f5f2(0xfc))/0x2)+parseInt(_0x47f5f2(0xff))/0x3+parseInt(_0x47f5f2(0x100))/0x4+-parseInt(_0x47f5f2(0xfd))/0x5+-parseInt(_0x47f5f2(0xf9))/0x6+-parseInt(_0x47f5f2(0xfa))/0x7+parseInt(_0x47f5f2(0xfe))/0x8;if(_0x4659f5===_0x359e7a)break;else _0x3b8728['push'](_0x3b8728['shift']());}catch(_0x4a1ceb){_0x3b8728['push'](_0x3b8728['shift']());}}}(a291_0x3230,0xee73e));function a291_0x2c50(_0x16252b,_0xef64f7){_0x16252b=_0x16252b-0xf9;const _0x323059=a291_0x3230();let _0x2c503e=_0x323059[_0x16252b];return _0x2c503e;}export const isWindows=process[a291_0xac413(0x102)]===a291_0xac413(0xfb);export function resolveNpmBin(_0x3d7809){return isWindows?_0x3d7809+'.cmd':_0x3d7809;}
@@ -1 +1 @@
1
- export function sleep(_0x45ff31){return new Promise(_0x3522e8=>setTimeout(_0x3522e8,_0x45ff31));}
1
+ export function sleep(_0xadc59a){return new Promise(_0x20eb2f=>setTimeout(_0x20eb2f,_0xadc59a));}
@@ -1 +1 @@
1
- const a291_0x30239c=a291_0x1e93;function a291_0x1e93(_0x239a1b,_0x2d59be){_0x239a1b=_0x239a1b-0x97;const _0x131b9f=a291_0x131b();let _0x1e9337=_0x131b9f[_0x239a1b];return _0x1e9337;}(function(_0x3f7ecc,_0x29c170){const _0x40a442=a291_0x1e93,_0x36510a=_0x3f7ecc();while(!![]){try{const _0x36bfb0=parseInt(_0x40a442(0xb1))/0x1+-parseInt(_0x40a442(0xce))/0x2+parseInt(_0x40a442(0xa2))/0x3*(parseInt(_0x40a442(0xcd))/0x4)+-parseInt(_0x40a442(0xb2))/0x5+parseInt(_0x40a442(0xcf))/0x6+parseInt(_0x40a442(0x9c))/0x7+-parseInt(_0x40a442(0xab))/0x8;if(_0x36bfb0===_0x29c170)break;else _0x36510a['push'](_0x36510a['shift']());}catch(_0x11890c){_0x36510a['push'](_0x36510a['shift']());}}}(a291_0x131b,0x720e7));import a291_0x593a1b from'node:fs';import a291_0x4f970b from'node:path';function a291_0x131b(){const _0x1440a8=['replace','Template\x20content\x20replacement\x20completed','pop','charAt','datasetCode','promises','toComponentName','3609248IvEMTg','push','copyFile','processDirectory','.md','mkdir','566129BwOXTe','3565495tfcAir','.scss','isDirectory','LOVRABET','extname','api','Template\x20content\x20replacement\x20failed','getMonth','pad','.jsx','toISOString','now','formatLocalTimestamp','message','.tpl','\x20},','readFile','.ts','slice','getMinutes','isFile','error','toUpperCase','split','tableName:\x20\x22','info','processFile','49076tXvemx','1351358ZvrnJY','4972068mzQzaj','replaceApiContent','getFullYear','.js','default','map','replaceContent','template','.json','getHours','alias','name','alias:\x20\x22','datasetCode:\x20\x22','join','Starting\x20template\x20content\x20replacement','2091964wLyIat','.tsx','getSeconds','toDisplayTitle','processTemplate','utf8','150GbaCvW','endsWith'];a291_0x131b=function(){return _0x1440a8;};return a291_0x131b();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a291_0x30239c(0xba)](_0x540759){return String(_0x540759)['padStart'](0x2,'0');}static[a291_0x30239c(0xbe)](_0x3ced9d){const _0x3e5281=a291_0x30239c,_0x488f15=_0x3ced9d[_0x3e5281(0xd1)](),_0x5bc0c7=this['pad'](_0x3ced9d[_0x3e5281(0xb9)]()+0x1),_0x4b7c10=this[_0x3e5281(0xba)](_0x3ced9d['getDate']()),_0x33fdb1=this[_0x3e5281(0xba)](_0x3ced9d[_0x3e5281(0xd8)]()),_0x58593f=this[_0x3e5281(0xba)](_0x3ced9d[_0x3e5281(0xc5)]()),_0x5adeba=this['pad'](_0x3ced9d[_0x3e5281(0x9e)]());return{'createdAt':_0x488f15+'-'+_0x5bc0c7+'-'+_0x4b7c10+'\x20'+_0x33fdb1+':'+_0x58593f+':'+_0x5adeba,'createdDate':_0x488f15+'-'+_0x5bc0c7+'-'+_0x4b7c10,'createdTime':_0x33fdb1+':'+_0x58593f+':'+_0x5adeba};}static[a291_0x30239c(0xaa)](_0xa1bb53){const _0x4145f3=a291_0x30239c,_0x5a98b4=_0xa1bb53[_0x4145f3(0xc9)]('/')['pop']()||_0xa1bb53;return _0x5a98b4['split']('-')[_0x4145f3(0xd4)](_0x23e9ae=>_0x23e9ae['charAt'](0x0)['toUpperCase']()+_0x23e9ae[_0x4145f3(0xc4)](0x1)['toLowerCase']())[_0x4145f3(0x9a)]('');}static['toDisplayTitle'](_0x492781){const _0x5a72b3=a291_0x30239c,_0x44975b=_0x492781[_0x5a72b3(0xc9)]('/')[_0x5a72b3(0xa6)]()||_0x492781;return _0x44975b[_0x5a72b3(0xc9)]('-')[_0x5a72b3(0xd4)](_0x36b650=>_0x36b650[_0x5a72b3(0xa7)](0x0)[_0x5a72b3(0xc8)]()+_0x36b650['slice'](0x1)['toLowerCase']())[_0x5a72b3(0x9a)]('\x20');}static[a291_0x30239c(0xd5)](_0x45fd13,_0x585876,_0x1c7896){const _0x53b05d=a291_0x30239c,_0x17c2c5=this['toComponentName'](_0x585876),_0x234a3f=this[_0x53b05d(0x9f)](_0x585876),{createdAt:_0x5e2826,createdDate:_0x4f83b1,createdTime:_0x4e102a}=this[_0x53b05d(0xbe)](new Date());let _0x1745de=_0x45fd13[_0x53b05d(0xa4)](/\{CliVersion\}/g,CLI_VERSION)[_0x53b05d(0xa4)](/\{ComponentName\}/g,_0x17c2c5)['replace'](/\{DisplayTitle\}/g,_0x234a3f)[_0x53b05d(0xa4)](/\{PageName\}/g,_0x585876)[_0x53b05d(0xa4)](/\{TemplateName\}/g,_0x1c7896)[_0x53b05d(0xa4)](/\{CreatedAt\}/g,_0x5e2826)[_0x53b05d(0xa4)](/\{CreatedDate\}/g,_0x4f83b1)[_0x53b05d(0xa4)](/\{CreatedTime\}/g,_0x4e102a);return _0x1745de;}static[a291_0x30239c(0xd0)](_0xa1413,_0x5f0a8c,_0x4c2bba,_0x5bb0df,_0x11ae8e,_0xb4b192,_0x4047ce,_0x5c8b5f){const _0x5cf276=a291_0x30239c,_0x371d1c=new Date(),_0x4d0589=_0x371d1c[_0x5cf276(0xbc)](),_0x24b771=_0x4c2bba[_0x5cf276(0xd4)](_0x4e997f=>{const _0x5a2772=_0x5cf276,_0x558d2e=[_0x5a2772(0x99)+_0x4e997f[_0x5a2772(0xa8)]+'\x22',_0x5a2772(0xca)+_0x4e997f['tableName']+'\x22','name:\x20\x22'+_0x4e997f[_0x5a2772(0x97)]+'\x22'];return _0x4e997f[_0x5a2772(0xd9)]&&_0x558d2e[_0x5a2772(0xac)](_0x5a2772(0x98)+_0x4e997f[_0x5a2772(0xd9)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x558d2e[_0x5a2772(0x9a)](',\x20')+_0x5a2772(0xc1);})[_0x5cf276(0x9a)](''),_0x57a8b7=_0x5bb0df||_0x4c2bba[0x0]?.[_0x5cf276(0xd9)]||'YourModel';let _0x1d88f8=_0xa1413['replace'](/\{AppCode\}/g,_0x5f0a8c)['replace'](/\{ModelConfigs\}/g,_0x24b771)[_0x5cf276(0xa4)](/\{ExampleModelName\}/g,_0x57a8b7)['replace'](/\{ApiFileName\}/g,_0x11ae8e||_0x5cf276(0xb7))[_0x5cf276(0xa4)](/\{ConfigName\}/g,_0xb4b192||_0x5cf276(0xd3))[_0x5cf276(0xa4)](/\{ClientConfigParam\}/g,_0x4047ce||'')[_0x5cf276(0xa4)](/\{VarPrefix\}/g,_0x5c8b5f||_0x5cf276(0xb5))[_0x5cf276(0xa4)](/\{CreatedAt\}/g,_0x4d0589);return _0x1d88f8;}static async[a291_0x30239c(0xa0)](_0x49e166,_0x23a3f0,_0x42dc43,_0x6678db,_0x368d25=!![]){const _0x45e2ba=a291_0x30239c,_0xa64fdd=Date[_0x45e2ba(0xbd)]();try{_0x368d25&&logger[_0x45e2ba(0xcb)]('template',_0x45e2ba(0x9b),{'templatePath':_0x49e166,'targetPath':_0x23a3f0,'pageName':_0x42dc43,'templateName':_0x6678db});await a291_0x593a1b[_0x45e2ba(0xa9)][_0x45e2ba(0xb0)](_0x23a3f0,{'recursive':!![]}),await this[_0x45e2ba(0xae)](_0x49e166,_0x23a3f0,_0x42dc43,_0x6678db);if(_0x368d25){const _0xd3399=Date[_0x45e2ba(0xbd)]()-_0xa64fdd;logger['success'](_0x45e2ba(0xd6),_0x45e2ba(0xa5),_0xd3399,{'pageName':_0x42dc43,'templateName':_0x6678db});}}catch(_0x511e8d){if(_0x368d25){const _0x3db7ee=Date[_0x45e2ba(0xbd)]()-_0xa64fdd;logger[_0x45e2ba(0xc7)]('template',_0x45e2ba(0xb8),{'templatePath':_0x49e166,'targetPath':_0x23a3f0,'pageName':_0x42dc43,'templateName':_0x6678db,'error':_0x511e8d instanceof Error?_0x511e8d[_0x45e2ba(0xbf)]:String(_0x511e8d),'duration':_0x3db7ee});}throw _0x511e8d;}}static async[a291_0x30239c(0xae)](_0x4f63a2,_0x1912f1,_0x2f5e92,_0x2484a3){const _0x387655=a291_0x30239c,_0x10b983=await a291_0x593a1b['promises']['readdir'](_0x4f63a2,{'withFileTypes':!![]});for(const _0x11b2d1 of _0x10b983){const _0x314a34=a291_0x4f970b['join'](_0x4f63a2,_0x11b2d1['name']);let _0x5373d8=a291_0x4f970b['join'](_0x1912f1,_0x11b2d1[_0x387655(0x97)]);_0x11b2d1[_0x387655(0x97)][_0x387655(0xa3)](_0x387655(0xc0))&&(_0x5373d8=a291_0x4f970b[_0x387655(0x9a)](_0x1912f1,_0x11b2d1[_0x387655(0x97)]['replace'](/\.tpl$/,'')));if(_0x11b2d1[_0x387655(0xb4)]())await a291_0x593a1b[_0x387655(0xa9)][_0x387655(0xb0)](_0x5373d8,{'recursive':!![]}),await this['processDirectory'](_0x314a34,_0x5373d8,_0x2f5e92,_0x2484a3);else _0x11b2d1[_0x387655(0xc6)]()&&await this[_0x387655(0xcc)](_0x314a34,_0x5373d8,_0x2f5e92,_0x2484a3);}}static async[a291_0x30239c(0xcc)](_0x54d5d3,_0x1137bb,_0x39a394,_0x56fdaa){const _0x2a2461=a291_0x30239c,_0x507568=a291_0x4f970b[_0x2a2461(0xb6)](_0x54d5d3)['toLowerCase']();_0x54d5d3['endsWith'](_0x2a2461(0xc0))&&(_0x1137bb=_0x1137bb[_0x2a2461(0xa4)](/\.tpl$/,''));const _0xd46885=[_0x2a2461(0x9d),_0x2a2461(0xc3),_0x2a2461(0xbb),_0x2a2461(0xd2),_0x2a2461(0xd7),_0x2a2461(0xaf),'.css',_0x2a2461(0xb3),_0x2a2461(0xc0)];if(_0xd46885['includes'](_0x507568)||_0x54d5d3[_0x2a2461(0xa3)]('.tpl')){const _0x21092e=await a291_0x593a1b[_0x2a2461(0xa9)][_0x2a2461(0xc2)](_0x54d5d3,_0x2a2461(0xa1)),_0x171a2b=this[_0x2a2461(0xd5)](_0x21092e,_0x39a394,_0x56fdaa);await a291_0x593a1b[_0x2a2461(0xa9)]['writeFile'](_0x1137bb,_0x171a2b,_0x2a2461(0xa1));}else await a291_0x593a1b[_0x2a2461(0xa9)][_0x2a2461(0xad)](_0x54d5d3,_0x1137bb);}}
1
+ const a293_0x5d8a2a=a293_0x5ddd;(function(_0x5e8051,_0x56674e){const _0x4fa297=a293_0x5ddd,_0x5ee87f=_0x5e8051();while(!![]){try{const _0x2f7882=parseInt(_0x4fa297(0x1a4))/0x1+parseInt(_0x4fa297(0x1b3))/0x2+-parseInt(_0x4fa297(0x1da))/0x3+parseInt(_0x4fa297(0x199))/0x4+parseInt(_0x4fa297(0x1d7))/0x5*(parseInt(_0x4fa297(0x1ad))/0x6)+parseInt(_0x4fa297(0x1a5))/0x7+-parseInt(_0x4fa297(0x1c2))/0x8;if(_0x2f7882===_0x56674e)break;else _0x5ee87f['push'](_0x5ee87f['shift']());}catch(_0x4de784){_0x5ee87f['push'](_0x5ee87f['shift']());}}}(a293_0x4530,0x4c656));import a293_0xdc1ae3 from'node:fs';function a293_0x4530(){const _0x165d4a=['toISOString','readFile','.ts','isDirectory','toUpperCase','join','template','Starting\x20template\x20content\x20replacement','tableName','getSeconds','copyFile','utf8','mkdir','alias','promises','slice','map','includes','40AmjGBE','pad','\x0a\x20\x20\x20\x20{\x20','495954CkDjxD','toDisplayTitle','\x20},','isFile','LOVRABET','721848cvTmDG','getDate','.jsx','name','.js','alias:\x20\x22','.tpl','charAt','.scss','extname','formatLocalTimestamp','521019mAnlyt','3285107uEKeCP','writeFile','pop','tableName:\x20\x22','.json','info','split','default','33036HqKshK','endsWith','processTemplate','push','Template\x20content\x20replacement\x20completed','getFullYear','45070KUBKke','toLowerCase','processFile','toComponentName','replaceContent','YourModel','datasetCode:\x20\x22','now','api','getMonth','replace','replaceApiContent','getHours','processDirectory','.tsx','6073032aZaZdi','readdir','datasetCode'];a293_0x4530=function(){return _0x165d4a;};return a293_0x4530();}import a293_0x257bf1 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a293_0x5ddd(_0x218877,_0x1bd8f6){_0x218877=_0x218877-0x198;const _0x45309e=a293_0x4530();let _0x5ddd27=_0x45309e[_0x218877];return _0x5ddd27;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a293_0x5d8a2a(0x1d8)](_0x1f13b2){return String(_0x1f13b2)['padStart'](0x2,'0');}static[a293_0x5d8a2a(0x1a3)](_0x50f9a0){const _0x4347cc=a293_0x5d8a2a,_0x7e5c7b=_0x50f9a0[_0x4347cc(0x1b2)](),_0xc2786=this[_0x4347cc(0x1d8)](_0x50f9a0[_0x4347cc(0x1bc)]()+0x1),_0x224f89=this['pad'](_0x50f9a0[_0x4347cc(0x19a)]()),_0x243dc4=this[_0x4347cc(0x1d8)](_0x50f9a0[_0x4347cc(0x1bf)]()),_0x1fac27=this[_0x4347cc(0x1d8)](_0x50f9a0['getMinutes']()),_0xa58a05=this['pad'](_0x50f9a0[_0x4347cc(0x1ce)]());return{'createdAt':_0x7e5c7b+'-'+_0xc2786+'-'+_0x224f89+'\x20'+_0x243dc4+':'+_0x1fac27+':'+_0xa58a05,'createdDate':_0x7e5c7b+'-'+_0xc2786+'-'+_0x224f89,'createdTime':_0x243dc4+':'+_0x1fac27+':'+_0xa58a05};}static['toComponentName'](_0x15478d){const _0x61aa2d=a293_0x5d8a2a,_0x14085e=_0x15478d[_0x61aa2d(0x1ab)]('/')['pop']()||_0x15478d;return _0x14085e['split']('-')[_0x61aa2d(0x1d5)](_0x3e57ec=>_0x3e57ec[_0x61aa2d(0x1a0)](0x0)[_0x61aa2d(0x1c9)]()+_0x3e57ec[_0x61aa2d(0x1d4)](0x1)[_0x61aa2d(0x1b4)]())['join']('');}static[a293_0x5d8a2a(0x1db)](_0x23f8fc){const _0x193cf6=a293_0x5d8a2a,_0x58aada=_0x23f8fc[_0x193cf6(0x1ab)]('/')[_0x193cf6(0x1a7)]()||_0x23f8fc;return _0x58aada[_0x193cf6(0x1ab)]('-')[_0x193cf6(0x1d5)](_0x4a95e1=>_0x4a95e1['charAt'](0x0)[_0x193cf6(0x1c9)]()+_0x4a95e1[_0x193cf6(0x1d4)](0x1)[_0x193cf6(0x1b4)]())['join']('\x20');}static[a293_0x5d8a2a(0x1b7)](_0x22b703,_0x262b0c,_0x16268f){const _0x5d5136=a293_0x5d8a2a,_0x5b459b=this[_0x5d5136(0x1b6)](_0x262b0c),_0x4f9d8b=this[_0x5d5136(0x1db)](_0x262b0c),{createdAt:_0x278276,createdDate:_0x11089e,createdTime:_0x4115b4}=this[_0x5d5136(0x1a3)](new Date());let _0x14183d=_0x22b703[_0x5d5136(0x1bd)](/\{CliVersion\}/g,CLI_VERSION)[_0x5d5136(0x1bd)](/\{ComponentName\}/g,_0x5b459b)[_0x5d5136(0x1bd)](/\{DisplayTitle\}/g,_0x4f9d8b)[_0x5d5136(0x1bd)](/\{PageName\}/g,_0x262b0c)[_0x5d5136(0x1bd)](/\{TemplateName\}/g,_0x16268f)[_0x5d5136(0x1bd)](/\{CreatedAt\}/g,_0x278276)[_0x5d5136(0x1bd)](/\{CreatedDate\}/g,_0x11089e)['replace'](/\{CreatedTime\}/g,_0x4115b4);return _0x14183d;}static[a293_0x5d8a2a(0x1be)](_0x4b84b4,_0x31b990,_0x4f6857,_0x520136,_0x2d43a1,_0x181743,_0x22f142,_0x587080){const _0x1dd7be=a293_0x5d8a2a,_0x45594d=new Date(),_0x278ece=_0x45594d[_0x1dd7be(0x1c5)](),_0x4688b4=_0x4f6857[_0x1dd7be(0x1d5)](_0xfbe086=>{const _0x4b7caf=_0x1dd7be,_0x2fdea0=[_0x4b7caf(0x1b9)+_0xfbe086[_0x4b7caf(0x1c4)]+'\x22',_0x4b7caf(0x1a8)+_0xfbe086[_0x4b7caf(0x1cd)]+'\x22','name:\x20\x22'+_0xfbe086[_0x4b7caf(0x19c)]+'\x22'];return _0xfbe086[_0x4b7caf(0x1d2)]&&_0x2fdea0[_0x4b7caf(0x1b0)](_0x4b7caf(0x19e)+_0xfbe086[_0x4b7caf(0x1d2)]+'\x22'),_0x4b7caf(0x1d9)+_0x2fdea0[_0x4b7caf(0x1ca)](',\x20')+_0x4b7caf(0x1dc);})['join'](''),_0x23987f=_0x520136||_0x4f6857[0x0]?.[_0x1dd7be(0x1d2)]||_0x1dd7be(0x1b8);let _0x3f7461=_0x4b84b4[_0x1dd7be(0x1bd)](/\{AppCode\}/g,_0x31b990)[_0x1dd7be(0x1bd)](/\{ModelConfigs\}/g,_0x4688b4)[_0x1dd7be(0x1bd)](/\{ExampleModelName\}/g,_0x23987f)['replace'](/\{ApiFileName\}/g,_0x2d43a1||_0x1dd7be(0x1bb))[_0x1dd7be(0x1bd)](/\{ConfigName\}/g,_0x181743||_0x1dd7be(0x1ac))[_0x1dd7be(0x1bd)](/\{ClientConfigParam\}/g,_0x22f142||'')['replace'](/\{VarPrefix\}/g,_0x587080||_0x1dd7be(0x198))[_0x1dd7be(0x1bd)](/\{CreatedAt\}/g,_0x278ece);return _0x3f7461;}static async[a293_0x5d8a2a(0x1af)](_0x34b0ad,_0x5b644f,_0x234564,_0x2ab50c,_0x4f9c41=!![]){const _0x5726ac=a293_0x5d8a2a,_0x29400c=Date[_0x5726ac(0x1ba)]();try{_0x4f9c41&&logger[_0x5726ac(0x1aa)]('template',_0x5726ac(0x1cc),{'templatePath':_0x34b0ad,'targetPath':_0x5b644f,'pageName':_0x234564,'templateName':_0x2ab50c});await a293_0xdc1ae3[_0x5726ac(0x1d3)]['mkdir'](_0x5b644f,{'recursive':!![]}),await this[_0x5726ac(0x1c0)](_0x34b0ad,_0x5b644f,_0x234564,_0x2ab50c);if(_0x4f9c41){const _0x35a2d4=Date['now']()-_0x29400c;logger['success'](_0x5726ac(0x1cb),_0x5726ac(0x1b1),_0x35a2d4,{'pageName':_0x234564,'templateName':_0x2ab50c});}}catch(_0x5f57a1){if(_0x4f9c41){const _0x10f029=Date[_0x5726ac(0x1ba)]()-_0x29400c;logger['error'](_0x5726ac(0x1cb),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x34b0ad,'targetPath':_0x5b644f,'pageName':_0x234564,'templateName':_0x2ab50c,'error':_0x5f57a1 instanceof Error?_0x5f57a1['message']:String(_0x5f57a1),'duration':_0x10f029});}throw _0x5f57a1;}}static async[a293_0x5d8a2a(0x1c0)](_0xcf6310,_0x23398f,_0x339e82,_0x2a1651){const _0x5def6f=a293_0x5d8a2a,_0x460632=await a293_0xdc1ae3['promises'][_0x5def6f(0x1c3)](_0xcf6310,{'withFileTypes':!![]});for(const _0x18be14 of _0x460632){const _0x34d428=a293_0x257bf1[_0x5def6f(0x1ca)](_0xcf6310,_0x18be14[_0x5def6f(0x19c)]);let _0x3058f6=a293_0x257bf1[_0x5def6f(0x1ca)](_0x23398f,_0x18be14[_0x5def6f(0x19c)]);_0x18be14[_0x5def6f(0x19c)][_0x5def6f(0x1ae)](_0x5def6f(0x19f))&&(_0x3058f6=a293_0x257bf1[_0x5def6f(0x1ca)](_0x23398f,_0x18be14['name']['replace'](/\.tpl$/,'')));if(_0x18be14[_0x5def6f(0x1c8)]())await a293_0xdc1ae3[_0x5def6f(0x1d3)][_0x5def6f(0x1d1)](_0x3058f6,{'recursive':!![]}),await this[_0x5def6f(0x1c0)](_0x34d428,_0x3058f6,_0x339e82,_0x2a1651);else _0x18be14[_0x5def6f(0x1dd)]()&&await this[_0x5def6f(0x1b5)](_0x34d428,_0x3058f6,_0x339e82,_0x2a1651);}}static async[a293_0x5d8a2a(0x1b5)](_0x23bc20,_0x106ed0,_0x236cc1,_0x416321){const _0x5bc2dd=a293_0x5d8a2a,_0x1f2dc8=a293_0x257bf1[_0x5bc2dd(0x1a2)](_0x23bc20)[_0x5bc2dd(0x1b4)]();_0x23bc20[_0x5bc2dd(0x1ae)]('.tpl')&&(_0x106ed0=_0x106ed0[_0x5bc2dd(0x1bd)](/\.tpl$/,''));const _0x2eae17=[_0x5bc2dd(0x1c1),_0x5bc2dd(0x1c7),_0x5bc2dd(0x19b),_0x5bc2dd(0x19d),_0x5bc2dd(0x1a9),'.md','.css',_0x5bc2dd(0x1a1),_0x5bc2dd(0x19f)];if(_0x2eae17[_0x5bc2dd(0x1d6)](_0x1f2dc8)||_0x23bc20[_0x5bc2dd(0x1ae)]('.tpl')){const _0x42d222=await a293_0xdc1ae3[_0x5bc2dd(0x1d3)][_0x5bc2dd(0x1c6)](_0x23bc20,_0x5bc2dd(0x1d0)),_0x49d077=this[_0x5bc2dd(0x1b7)](_0x42d222,_0x236cc1,_0x416321);await a293_0xdc1ae3[_0x5bc2dd(0x1d3)][_0x5bc2dd(0x1a6)](_0x106ed0,_0x49d077,_0x5bc2dd(0x1d0));}else await a293_0xdc1ae3[_0x5bc2dd(0x1d3)][_0x5bc2dd(0x1cf)](_0x23bc20,_0x106ed0);}}
@@ -1 +1 @@
1
- function a292_0x24bb(_0x14ee9a,_0x225c94){_0x14ee9a=_0x14ee9a-0xcc;const _0x2839ae=a292_0x2839();let _0x24bb60=_0x2839ae[_0x14ee9a];return _0x24bb60;}(function(_0x205a66,_0x2155fe){const _0x476b20=a292_0x24bb,_0x5e8a1c=_0x205a66();while(!![]){try{const _0x467e00=parseInt(_0x476b20(0xe5))/0x1+parseInt(_0x476b20(0xcf))/0x2+-parseInt(_0x476b20(0xcc))/0x3*(-parseInt(_0x476b20(0xe2))/0x4)+parseInt(_0x476b20(0xdc))/0x5+parseInt(_0x476b20(0xe1))/0x6+parseInt(_0x476b20(0xea))/0x7*(-parseInt(_0x476b20(0xd9))/0x8)+-parseInt(_0x476b20(0xcd))/0x9;if(_0x467e00===_0x2155fe)break;else _0x5e8a1c['push'](_0x5e8a1c['shift']());}catch(_0x52cb9d){_0x5e8a1c['push'](_0x5e8a1c['shift']());}}}(a292_0x2839,0xb8255));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a292_0x34d79b from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a292_0x2839(){const _0x41112d=['7azzrAr','958857Ttytaq','23986764PhzYre','latest','2533722FabMVr','valid','https://www.npmjs.com/package/','toLowerCase','.cache','utf8','parse','trim','lastNotifiedVersion','checkedAt','1934560yihErY','lastNotifiedAt','yes','2223225yoXwtr','true','number','now','object','2681226sxFbDk','16PUAmpz','rabetbase-cli','update-check.json','224424vGHxuE','gte','\x20available,\x20current\x20','\x20update',',\x20run:\x20'];a292_0x2839=function(){return _0x41112d;};return a292_0x2839();}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 _0x2b5a45=a292_0x24bb,_0x4d5543=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2b5a45(0xd6)]()[_0x2b5a45(0xd2)]();return _0x4d5543==='1'||_0x4d5543===_0x2b5a45(0xdd)||_0x4d5543===_0x2b5a45(0xdb);}function cacheRoot(){const _0x393571=a292_0x24bb;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x393571(0xd3));}export function getUpdateNoticeCachePath(){const _0x5380c7=a292_0x24bb;return join(cacheRoot(),_0x5380c7(0xe3),_0x5380c7(0xe4));}async function readUpdateNoticeCache(){const _0x3956ef=a292_0x24bb;try{const _0x105450=await readFile(getUpdateNoticeCachePath(),_0x3956ef(0xd4)),_0x1b4d87=JSON[_0x3956ef(0xd5)](_0x105450);if(!_0x1b4d87||typeof _0x1b4d87!==_0x3956ef(0xe0))return{};return _0x1b4d87;}catch{return{};}}async function writeUpdateNoticeCache(_0x286396){const _0x30c871=a292_0x24bb;try{const _0x380d13=getUpdateNoticeCachePath();await mkdir(dirname(_0x380d13),{'recursive':!![]}),await writeFile(_0x380d13,JSON['stringify'](_0x286396,null,0x2)+'\x0a',_0x30c871(0xd4));}catch{}}function isFreshCheck(_0x172451,_0x55f0c3){const _0x550dfa=a292_0x24bb;return typeof _0x172451[_0x550dfa(0xd8)]===_0x550dfa(0xde)&&_0x55f0c3-_0x172451['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x49b833,_0x20dc56,_0x2afa64){const _0x198c41=a292_0x24bb;return _0x49b833[_0x198c41(0xd7)]===_0x20dc56&&typeof _0x49b833['lastNotifiedAt']==='number'&&_0x2afa64-_0x49b833[_0x198c41(0xda)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x38a335){const _0x56a3d8=a292_0x24bb;return _0x56a3d8(0xd1)+NPM_PACKAGE_NAME+'/v/'+_0x38a335;}export async function resolveLatestUpdateNotice(){const _0x3a614d=a292_0x24bb;if(isUpdateNoticeDisabled())return null;try{const _0x478638=Date[_0x3a614d(0xdf)](),_0x579f0e=getCliVersion(),_0x31a7d0=await readUpdateNoticeCache();let _0x1707bf=isFreshCheck(_0x31a7d0,_0x478638)?_0x31a7d0[_0x3a614d(0xce)]?.[_0x3a614d(0xd6)]():undefined;if(!_0x1707bf&&!isFreshCheck(_0x31a7d0,_0x478638)){const _0x4bd522=await getCliVersionPolicy();_0x1707bf=_0x4bd522?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x31a7d0,'checkedAt':_0x478638,'latest':_0x1707bf,'failed':!_0x1707bf});}if(!_0x1707bf||!a292_0x34d79b[_0x3a614d(0xd0)](_0x579f0e)||!a292_0x34d79b[_0x3a614d(0xd0)](_0x1707bf))return null;if(a292_0x34d79b[_0x3a614d(0xe6)](_0x579f0e,_0x1707bf))return null;if(isRecentlyNotified(_0x31a7d0,_0x1707bf,_0x478638))return null;const _0x27009a=CLI_BIN_NAME+_0x3a614d(0xe8);return await writeUpdateNoticeCache({..._0x31a7d0,'checkedAt':isFreshCheck(_0x31a7d0,_0x478638)?_0x31a7d0[_0x3a614d(0xd8)]:_0x478638,'latest':_0x1707bf,'failed':![],'lastNotifiedVersion':_0x1707bf,'lastNotifiedAt':_0x478638}),{'command':_0x27009a,'current':_0x579f0e,'latest':_0x1707bf,'url':buildNpmVersionUrl(_0x1707bf),'message':CLI_BIN_NAME+'\x20'+_0x1707bf+_0x3a614d(0xe7)+_0x579f0e+_0x3a614d(0xe9)+_0x27009a};}catch{return null;}}
1
+ (function(_0x4c137b,_0x37b25d){const _0x5dc9bd=a294_0x2e3e,_0x2aec6d=_0x4c137b();while(!![]){try{const _0x116341=-parseInt(_0x5dc9bd(0x1ed))/0x1+-parseInt(_0x5dc9bd(0x1f8))/0x2*(-parseInt(_0x5dc9bd(0x1ff))/0x3)+-parseInt(_0x5dc9bd(0x1f4))/0x4+-parseInt(_0x5dc9bd(0x201))/0x5*(parseInt(_0x5dc9bd(0x1f9))/0x6)+-parseInt(_0x5dc9bd(0x1ef))/0x7*(parseInt(_0x5dc9bd(0x1fe))/0x8)+-parseInt(_0x5dc9bd(0x204))/0x9+-parseInt(_0x5dc9bd(0x1f3))/0xa*(-parseInt(_0x5dc9bd(0x1e8))/0xb);if(_0x116341===_0x37b25d)break;else _0x2aec6d['push'](_0x2aec6d['shift']());}catch(_0x2c803a){_0x2aec6d['push'](_0x2aec6d['shift']());}}}(a294_0x50bc,0xd74ff));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a294_0x2044ed from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a294_0x2e3e(_0x2de038,_0x26b890){_0x2de038=_0x2de038-0x1e8;const _0x50bc48=a294_0x50bc();let _0x2e3ee4=_0x50bc48[_0x2de038];return _0x2e3ee4;}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 _0x296126=a294_0x2e3e,_0x5d3592=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x296126(0x1fb)]();return _0x5d3592==='1'||_0x5d3592===_0x296126(0x1ec)||_0x5d3592===_0x296126(0x1ea);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x3b058e=a294_0x2e3e;return join(cacheRoot(),'rabetbase-cli',_0x3b058e(0x1f5));}async function readUpdateNoticeCache(){const _0x51fbb7=a294_0x2e3e;try{const _0xb7f7d1=await readFile(getUpdateNoticeCachePath(),_0x51fbb7(0x206)),_0x805817=JSON[_0x51fbb7(0x1fa)](_0xb7f7d1);if(!_0x805817||typeof _0x805817!==_0x51fbb7(0x200))return{};return _0x805817;}catch{return{};}}async function writeUpdateNoticeCache(_0x491c9b){const _0x4d59de=a294_0x2e3e;try{const _0x3c15b3=getUpdateNoticeCachePath();await mkdir(dirname(_0x3c15b3),{'recursive':!![]}),await writeFile(_0x3c15b3,JSON['stringify'](_0x491c9b,null,0x2)+'\x0a',_0x4d59de(0x206));}catch{}}function isFreshCheck(_0x4dbf9a,_0x952631){const _0x43439c=a294_0x2e3e;return typeof _0x4dbf9a[_0x43439c(0x1eb)]===_0x43439c(0x202)&&_0x952631-_0x4dbf9a[_0x43439c(0x1eb)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x584b52,_0x274702,_0x5df010){const _0x598198=a294_0x2e3e;return _0x584b52['lastNotifiedVersion']===_0x274702&&typeof _0x584b52['lastNotifiedAt']===_0x598198(0x202)&&_0x5df010-_0x584b52[_0x598198(0x1fd)]<UPDATE_NOTICE_TTL_MS;}function a294_0x50bc(){const _0x37501d=['62962yqPhGz','78lDWWGh','parse','toLowerCase','gte','lastNotifiedAt','29096kzROBN','57gIpOeB','object','142640wncJSi','number','/v/','7121106ORKojs','https://www.npmjs.com/package/','utf8',',\x20run:\x20','5533KsStnj','latest','yes','checkedAt','true','515924sawXDd','\x20available,\x20current\x20','889ghDqoW','now','valid','trim','66860CLWOsL','3757428tjWOnL','update-check.json','\x20update','stableVersion'];a294_0x50bc=function(){return _0x37501d;};return a294_0x50bc();}export function buildNpmVersionUrl(_0x322f62){const _0x1f9585=a294_0x2e3e;return _0x1f9585(0x205)+NPM_PACKAGE_NAME+_0x1f9585(0x203)+_0x322f62;}export async function resolveLatestUpdateNotice(){const _0x101666=a294_0x2e3e;if(isUpdateNoticeDisabled())return null;try{const _0xd0f5d1=Date[_0x101666(0x1f0)](),_0x2c3b0f=getCliVersion(),_0x15d97b=await readUpdateNoticeCache();let _0x47f0ba=isFreshCheck(_0x15d97b,_0xd0f5d1)?_0x15d97b[_0x101666(0x1e9)]?.[_0x101666(0x1f2)]():undefined;if(!_0x47f0ba&&!isFreshCheck(_0x15d97b,_0xd0f5d1)){const _0x31ac44=await getCliVersionPolicy();_0x47f0ba=_0x31ac44?.[_0x101666(0x1f7)]?.[_0x101666(0x1f2)]()||undefined,await writeUpdateNoticeCache({..._0x15d97b,'checkedAt':_0xd0f5d1,'latest':_0x47f0ba,'failed':!_0x47f0ba});}if(!_0x47f0ba||!a294_0x2044ed[_0x101666(0x1f1)](_0x2c3b0f)||!a294_0x2044ed[_0x101666(0x1f1)](_0x47f0ba))return null;if(a294_0x2044ed[_0x101666(0x1fc)](_0x2c3b0f,_0x47f0ba))return null;if(isRecentlyNotified(_0x15d97b,_0x47f0ba,_0xd0f5d1))return null;const _0x2c913a=CLI_BIN_NAME+_0x101666(0x1f6);return await writeUpdateNoticeCache({..._0x15d97b,'checkedAt':isFreshCheck(_0x15d97b,_0xd0f5d1)?_0x15d97b[_0x101666(0x1eb)]:_0xd0f5d1,'latest':_0x47f0ba,'failed':![],'lastNotifiedVersion':_0x47f0ba,'lastNotifiedAt':_0xd0f5d1}),{'command':_0x2c913a,'current':_0x2c3b0f,'latest':_0x47f0ba,'url':buildNpmVersionUrl(_0x47f0ba),'message':CLI_BIN_NAME+'\x20'+_0x47f0ba+_0x101666(0x1ee)+_0x2c3b0f+_0x101666(0x207)+_0x2c913a};}catch{return null;}}