@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.4-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 (381) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.d.ts +2 -0
  87. package/lib/commands/db/diff-refresh-start.js +1 -0
  88. package/lib/commands/db/diff-refresh-status.d.ts +2 -0
  89. package/lib/commands/db/diff-refresh-status.js +1 -0
  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/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/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/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/notification/config-create.d.ts +2 -0
  137. package/lib/commands/notification/config-create.js +1 -0
  138. package/lib/commands/notification/config-delete.d.ts +2 -0
  139. package/lib/commands/notification/config-delete.js +1 -0
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.d.ts +2 -0
  142. package/lib/commands/notification/config-update.js +1 -0
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.d.ts +97 -0
  145. package/lib/commands/notification/shared.js +1 -0
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/generate-start.js +1 -1
  148. package/lib/commands/page/generate-status.js +1 -1
  149. package/lib/commands/page/index.js +1 -1
  150. package/lib/commands/page/pull.js +1 -1
  151. package/lib/commands/page/push.js +1 -1
  152. package/lib/commands/page/react/create.js +1 -1
  153. package/lib/commands/page/react/detail.js +1 -1
  154. package/lib/commands/page/react/list.js +1 -1
  155. package/lib/commands/page/react/publish.js +1 -1
  156. package/lib/commands/page/react/shared.js +1 -1
  157. package/lib/commands/page/react/syntax.js +1 -1
  158. package/lib/commands/page/react/template.js +1 -1
  159. package/lib/commands/page/react/update.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/standard-page-status.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/permit/index.js +1 -1
  166. package/lib/commands/permit/page-get.js +1 -1
  167. package/lib/commands/permit/page-set.js +1 -1
  168. package/lib/commands/permit/role-apis-set.js +1 -1
  169. package/lib/commands/permit/role-menus-set.js +1 -1
  170. package/lib/commands/permit/role-menus.js +1 -1
  171. package/lib/commands/permit/shared.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.d.ts +1 -0
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
  177. package/lib/commands/project/create/materialize-project-template.js +1 -0
  178. package/lib/commands/project/create/project-name.d.ts +2 -0
  179. package/lib/commands/project/create/project-name.js +1 -0
  180. package/lib/commands/project/create/project-template-archive.d.ts +6 -0
  181. package/lib/commands/project/create/project-template-archive.js +1 -0
  182. package/lib/commands/project/create/project-template-path.d.ts +1 -3
  183. package/lib/commands/project/create/project-template-path.js +1 -1
  184. package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/index.js +1 -1
  189. package/lib/commands/project/upgrade.js +1 -1
  190. package/lib/commands/registry.js +1 -1
  191. package/lib/commands/role/create.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/run/index.js +1 -1
  202. package/lib/commands/schema.js +1 -1
  203. package/lib/commands/sql/create.js +1 -1
  204. package/lib/commands/sql/delete.js +1 -1
  205. package/lib/commands/sql/detail.js +1 -1
  206. package/lib/commands/sql/exec.js +1 -1
  207. package/lib/commands/sql/index.js +1 -1
  208. package/lib/commands/sql/list.js +1 -1
  209. package/lib/commands/sql/pull.js +1 -1
  210. package/lib/commands/sql/push.js +1 -1
  211. package/lib/commands/sql/shared.js +1 -1
  212. package/lib/commands/sql/status.js +1 -1
  213. package/lib/commands/sql/validate.js +1 -1
  214. package/lib/commands/task/index.js +1 -1
  215. package/lib/commands/task/status.js +1 -1
  216. package/lib/commands/tenant/index.js +1 -1
  217. package/lib/commands/tenant/members-list.js +1 -1
  218. package/lib/commands/tenant/shared.js +1 -1
  219. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  220. package/lib/commands/user-account/index.js +1 -1
  221. package/lib/commands/workspace/add.js +1 -1
  222. package/lib/commands/workspace/index.js +1 -1
  223. package/lib/commands/workspace/remove.js +1 -1
  224. package/lib/config/schema.js +1 -1
  225. package/lib/constant/cdn.d.ts +2 -0
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.js +1 -1
  230. package/lib/constant/env.js +1 -1
  231. package/lib/constant/output.js +1 -1
  232. package/lib/constant/paths.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/context/app-resolver.js +1 -1
  235. package/lib/context/auth-resolver.js +1 -1
  236. package/lib/context/config-loader.js +1 -1
  237. package/lib/context.d.ts +1 -1
  238. package/lib/context.js +1 -1
  239. package/lib/core/alias-resolver.js +1 -1
  240. package/lib/core/api-client.d.ts +29 -2
  241. package/lib/core/api-client.js +1 -1
  242. package/lib/core/bff/config.js +1 -1
  243. package/lib/core/bff/file-system.js +1 -1
  244. package/lib/core/bff/hash.js +1 -1
  245. package/lib/core/bff/lock.js +1 -1
  246. package/lib/core/bff/utils.js +1 -1
  247. package/lib/core/db-resolver.js +1 -1
  248. package/lib/core/page/file-system.js +1 -1
  249. package/lib/core/page/hash.js +1 -1
  250. package/lib/core/page/lock.js +1 -1
  251. package/lib/core/sql-index-auditor.js +1 -1
  252. package/lib/core/sql-sync/config.js +1 -1
  253. package/lib/core/sql-sync/file-system.js +1 -1
  254. package/lib/core/sql-sync/hash.js +1 -1
  255. package/lib/core/sql-sync/lock.js +1 -1
  256. package/lib/core/sql-sync/utils.js +1 -1
  257. package/lib/core/sql-validator.js +1 -1
  258. package/lib/errors.js +1 -1
  259. package/lib/framework/build-all-flags.js +1 -1
  260. package/lib/framework/error-output.js +1 -1
  261. package/lib/framework/explicit-yes.js +1 -1
  262. package/lib/framework/flags.js +1 -1
  263. package/lib/framework/help.js +1 -1
  264. package/lib/framework/index.js +1 -1
  265. package/lib/framework/output.js +1 -1
  266. package/lib/framework/response.js +1 -1
  267. package/lib/framework/runner-alias.js +1 -1
  268. package/lib/framework/runner.js +1 -1
  269. package/lib/framework/schema-export.js +1 -1
  270. package/lib/framework/types.js +1 -1
  271. package/lib/generated/build-info.d.ts +4 -4
  272. package/lib/generated/build-info.js +1 -1
  273. package/lib/help.js +1 -1
  274. package/lib/postinstall.js +1 -1
  275. package/lib/runtime/confirmation.js +1 -1
  276. package/lib/runtime/event.js +1 -1
  277. package/lib/runtime/index.js +1 -1
  278. package/lib/runtime/queue.js +1 -1
  279. package/lib/runtime/resolve.js +1 -1
  280. package/lib/skills/builtin-skill.js +1 -1
  281. package/lib/skills/main.js +1 -1
  282. package/lib/skills/npx-skills-add.js +1 -1
  283. package/lib/skills/skill-presence.js +1 -1
  284. package/lib/telemetry/cli-command-trace.js +1 -1
  285. package/lib/telemetry/cli-help-trace.js +1 -1
  286. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  287. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  288. package/lib/telemetry/send-cli-trace-log.js +1 -1
  289. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  290. package/lib/utils/ai_config.js +1 -1
  291. package/lib/utils/apply-jq-filter.js +1 -1
  292. package/lib/utils/cdn-config.js +1 -1
  293. package/lib/utils/check-sdk-version.js +1 -1
  294. package/lib/utils/cli-version-check.js +1 -1
  295. package/lib/utils/cli-version-policy.d.ts +13 -0
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/rules-cdn.js +1 -1
  307. package/lib/utils/sleep.js +1 -1
  308. package/lib/utils/template-replacer.js +1 -1
  309. package/lib/utils/update-notice.js +1 -1
  310. package/lib/utils/version.js +1 -1
  311. package/lib/utils/with-active-cookie.js +1 -1
  312. package/lib/utils/write-cli-side-channel.js +1 -1
  313. package/package.json +9 -4
  314. package/skills/rabetbase/SKILL.md +33 -22
  315. package/skills/rabetbase/guides/backend-function.md +5 -3
  316. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
  317. package/skills/rabetbase/guides/conflict-detection.md +2 -2
  318. package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +22 -4
  320. package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
  321. package/skills/rabetbase/guides/sql-mybatis.md +2 -2
  322. package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
  323. package/skills/rabetbase/knowledge/react-page/generation-standards.md +24 -2
  324. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  325. package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
  326. package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
  327. package/skills/rabetbase/references/rabetbase-config.md +2 -2
  328. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  329. package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
  330. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
  331. package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
  332. package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-kb.md +5 -3
  334. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
  335. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
  336. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
  337. package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
  338. package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
  339. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
  343. package/skills/rabetbase/references/rabetbase-run.md +1 -1
  344. package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
  345. package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
  346. package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
  347. package/skills/rabetbase.manifest.json +5 -5
  348. package/templates/README.md +14 -2
  349. package/lib/commands/project/create/non-interactive.d.ts +0 -9
  350. package/lib/commands/project/create/non-interactive.js +0 -1
  351. package/lib/utils/copy-directory.d.ts +0 -1
  352. package/lib/utils/copy-directory.js +0 -1
  353. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
  354. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
  355. package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
  356. package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
  357. package/templates/projects/sub-app-react-demo/README.md +0 -246
  358. package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
  359. package/templates/projects/sub-app-react-demo/index.html +0 -27
  360. package/templates/projects/sub-app-react-demo/package.json +0 -34
  361. package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
  362. package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
  363. package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
  364. package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
  365. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
  366. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
  367. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
  368. package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
  369. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
  370. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
  371. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
  372. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
  373. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
  374. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
  375. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
  376. package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
  377. package/templates/projects/sub-app-react-demo/src/style.css +0 -108
  378. package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
  379. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
  380. package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
  381. package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
@@ -1 +1 @@
1
- function a273_0xa2cc(_0x594323,_0x120bdc){_0x594323=_0x594323-0x73;const _0x2d1c12=a273_0x2d1c();let _0xa2cc10=_0x2d1c12[_0x594323];return _0xa2cc10;}(function(_0x19b541,_0x2e551e){const _0x1a71fe=a273_0xa2cc,_0x132958=_0x19b541();while(!![]){try{const _0x4e5e83=-parseInt(_0x1a71fe(0x80))/0x1*(parseInt(_0x1a71fe(0x73))/0x2)+-parseInt(_0x1a71fe(0x85))/0x3+-parseInt(_0x1a71fe(0x82))/0x4+parseInt(_0x1a71fe(0x7c))/0x5*(-parseInt(_0x1a71fe(0x7b))/0x6)+-parseInt(_0x1a71fe(0x7a))/0x7*(-parseInt(_0x1a71fe(0x79))/0x8)+-parseInt(_0x1a71fe(0x75))/0x9*(-parseInt(_0x1a71fe(0x81))/0xa)+parseInt(_0x1a71fe(0x77))/0xb*(parseInt(_0x1a71fe(0x83))/0xc);if(_0x4e5e83===_0x2e551e)break;else _0x132958['push'](_0x132958['shift']());}catch(_0x433110){_0x132958['push'](_0x132958['shift']());}}}(a273_0x2d1c,0xaf99d));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x2d1c(){const _0x5ba5ca=['node','32Ydixrc','985957jRGkJY','6vxyenh','6559185lxQTDb','/config.json','/config/index.json','cli','1dRPGBR','50hHLpxW','2368828tplXkg','54660iksaib','stableVersion','278613qVWiEH','553246XhPZzh','json','1060515UptHAg','sdk','4444aMEbkX'];a273_0x2d1c=function(){return _0x5ba5ca;};return a273_0x2d1c();}export async function fetchCdnConfig(){const _0x1307e0=a273_0xa2cc,_0x298b47=getTemplateBaseUrl(),_0x5c6065=[_0x298b47+_0x1307e0(0x7d),_0x298b47+_0x1307e0(0x7e)];for(const _0x4394ab of _0x5c6065){try{const _0x27e519=await fetch(_0x4394ab,{'headers':{'Accept':'application/json'}});if(!_0x27e519['ok'])continue;const _0x556437=await _0x27e519[_0x1307e0(0x74)]();if(!_0x556437[_0x1307e0(0x7f)]?.[_0x1307e0(0x84)]||!_0x556437[_0x1307e0(0x76)]?.[_0x1307e0(0x78)]?.[_0x1307e0(0x84)])continue;return _0x556437;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x31cb97=Date['now']();if(hasCachedConfig){const _0x1e1935=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x31cb97-cacheTime<_0x1e1935)return cachedConfig;}const _0x39da75=await fetchCdnConfig();return cachedConfig=_0x39da75,cacheTime=_0x31cb97,hasCachedConfig=!![],_0x39da75;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x580fa9,_0x1015f6){const _0x158ec7=a281_0x1963,_0x31053a=_0x580fa9();while(!![]){try{const _0x38b6c6=-parseInt(_0x158ec7(0x13e))/0x1*(parseInt(_0x158ec7(0x14a))/0x2)+-parseInt(_0x158ec7(0x13c))/0x3+-parseInt(_0x158ec7(0x13a))/0x4*(parseInt(_0x158ec7(0x13b))/0x5)+-parseInt(_0x158ec7(0x140))/0x6*(parseInt(_0x158ec7(0x145))/0x7)+-parseInt(_0x158ec7(0x146))/0x8*(-parseInt(_0x158ec7(0x13f))/0x9)+-parseInt(_0x158ec7(0x149))/0xa+parseInt(_0x158ec7(0x147))/0xb;if(_0x38b6c6===_0x1015f6)break;else _0x31053a['push'](_0x31053a['shift']());}catch(_0x5768ae){_0x31053a['push'](_0x31053a['shift']());}}}(a281_0x3bc5,0x50830));function a281_0x1963(_0x3f1fc6,_0x1c4a10){_0x3f1fc6=_0x3f1fc6-0x139;const _0x3bc5d0=a281_0x3bc5();let _0x19638a=_0x3bc5d0[_0x3f1fc6];return _0x19638a;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3cf13d=a281_0x1963,_0x9aa084=getTemplateBaseUrl(),_0x4860eb=[_0x9aa084+_0x3cf13d(0x13d),_0x9aa084+_0x3cf13d(0x144)];for(const _0xfa8ba3 of _0x4860eb){try{const _0x46176a=await fetch(_0xfa8ba3,{'headers':{'Accept':_0x3cf13d(0x139)}});if(!_0x46176a['ok'])continue;const _0x187a8d=await _0x46176a[_0x3cf13d(0x142)]();if(!_0x187a8d[_0x3cf13d(0x14c)]?.[_0x3cf13d(0x143)]||!_0x187a8d[_0x3cf13d(0x148)]?.[_0x3cf13d(0x14b)]?.['stableVersion'])continue;return _0x187a8d;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x24d812=a281_0x1963,_0x55f049=Date[_0x24d812(0x141)]();if(hasCachedConfig){const _0x4cfcc8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55f049-cacheTime<_0x4cfcc8)return cachedConfig;}const _0x47d5a5=await fetchCdnConfig();return cachedConfig=_0x47d5a5,cacheTime=_0x55f049,hasCachedConfig=!![],_0x47d5a5;}function a281_0x3bc5(){const _0x3923cf=['37593RVuYVF','10134nfVayG','now','json','stableVersion','/config/index.json','1057wXgmUd','744kZcwgd','20715893qumLmC','sdk','5941930BPmKES','2NMgswu','node','cli','application/json','621004AKaGXX','15XuOuZB','1870365kxAdUc','/config.json','3508HZizTU'];a281_0x3bc5=function(){return _0x3923cf;};return a281_0x3bc5();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a274_0x143628=a274_0x5d95;(function(_0x5e7207,_0x4611c5){const _0xe105fd=a274_0x5d95,_0x43a775=_0x5e7207();while(!![]){try{const _0x3f2ef6=-parseInt(_0xe105fd(0x1b7))/0x1+parseInt(_0xe105fd(0x1b8))/0x2*(-parseInt(_0xe105fd(0x1b1))/0x3)+parseInt(_0xe105fd(0x1b3))/0x4+parseInt(_0xe105fd(0x1b0))/0x5+parseInt(_0xe105fd(0x1c2))/0x6+parseInt(_0xe105fd(0x1c4))/0x7*(-parseInt(_0xe105fd(0x1c1))/0x8)+-parseInt(_0xe105fd(0x1a9))/0x9*(-parseInt(_0xe105fd(0x1c9))/0xa);if(_0x3f2ef6===_0x4611c5)break;else _0x43a775['push'](_0x43a775['shift']());}catch(_0x3b0c8e){_0x43a775['push'](_0x43a775['shift']());}}}(a274_0x4969,0x1ea87));function a274_0x5d95(_0x3eb971,_0x5a0e87){_0x3eb971=_0x3eb971-0x1a4;const _0x4969cd=a274_0x4969();let _0x5d9552=_0x4969cd[_0x3eb971];return _0x5d9552;}import a274_0x36f290 from'node:fs';import a274_0x4bcf87 from'node:path';import a274_0x474b10 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x143628(0x1c7);function a274_0x4969(){const _0x898e40=['readFileSync','↪\x20SDK\x20update\x20available','test','131275yUZFHz','16622WpKEsD','@lovrabet/sdk','log','\x20\x20\x20Upgrade\x20command:\x20','package.json','needsUpgrade','some','\x1b[0m','packageName','2992mfYOyi','808476vYpJwQ','minVersion','3619mOqqvd','utf8','existsSync','1.2.0','coerce','2870pCPDkO','\x1b[33m','parse','sdk','dependencies','node_modules','1161vutwGl','node','devDependencies','\x1b[1m','all','stableVersion','join','389790LhhlJT','15BnxybI','\x20\x20\x20Current\x20version:\x20','968144TBBwca'];a274_0x4969=function(){return _0x898e40;};return a274_0x4969();}function isNonNumericVersion(_0x538ee8){const _0x4071f6=a274_0x143628,_0x1ad534=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1ad534[_0x4071f6(0x1be)](_0x3f1542=>_0x3f1542[_0x4071f6(0x1b6)](_0x538ee8));}function getInstalledVersion(_0x3226bb,_0x561122){const _0x5340ec=a274_0x143628;try{const _0xe17efc=a274_0x4bcf87[_0x5340ec(0x1af)](_0x3226bb,_0x5340ec(0x1a8),_0x561122,_0x5340ec(0x1bc));if(a274_0x36f290['existsSync'](_0xe17efc)){const _0xa18fab=JSON[_0x5340ec(0x1a5)](a274_0x36f290[_0x5340ec(0x1b4)](_0xe17efc,'utf-8'));return _0xa18fab['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4de7cf=a274_0x143628;try{const _0x2bd474=await getCdnConfig();return _0x2bd474?.[_0x4de7cf(0x1a6)]?.['node']?.[_0x4de7cf(0x1ae)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5564d0=a274_0x143628;try{const _0x534b9a=await getCdnConfig();return _0x534b9a?.['sdk']?.[_0x5564d0(0x1aa)]?.['packageName']||_0x5564d0(0x1b9);}catch{return _0x5564d0(0x1b9);}}export async function checkSdkVersion(_0x9a2fb4){const _0x3ed9ab=a274_0x143628,_0x62db5a=a274_0x4bcf87[_0x3ed9ab(0x1af)](_0x9a2fb4,'package.json'),[_0x41585f,_0x13c223]=await Promise[_0x3ed9ab(0x1ad)]([getSdkStableVersion(),getSdkPackageName()]),_0x69bd89=_0x41585f||FALLBACK_MIN_SDK_VERSION;if(!a274_0x36f290['existsSync'](_0x62db5a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};try{const _0x24da37=JSON[_0x3ed9ab(0x1a5)](a274_0x36f290[_0x3ed9ab(0x1b4)](_0x62db5a,_0x3ed9ab(0x1c5))),_0x4a0b1e=_0x24da37[_0x3ed9ab(0x1a7)]||{},_0x170ce4=_0x24da37[_0x3ed9ab(0x1ab)]||{},_0x5bd102=_0x4a0b1e[_0x13c223]||_0x170ce4[_0x13c223];if(!_0x5bd102)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};let _0x38803d=getInstalledVersion(_0x9a2fb4,_0x13c223);!_0x38803d&&(_0x38803d=_0x5bd102);if(isNonNumericVersion(_0x5bd102))return{'installed':!![],'version':_0x38803d,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};const _0x1454f9=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x38803d),_0x150446=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x69bd89),_0x2a4660=_0x1454f9&&_0x150446?a274_0x474b10['lt'](_0x1454f9,_0x150446):![];return{'installed':!![],'version':_0x38803d,'needsUpgrade':_0x2a4660,'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}}export function checkSdkVersionSync(_0x37ed65){const _0x14e896=a274_0x143628,_0x7a30be=a274_0x4bcf87[_0x14e896(0x1af)](_0x37ed65,_0x14e896(0x1bc)),_0x2c5e78='@lovrabet/sdk';if(!a274_0x36f290[_0x14e896(0x1c6)](_0x7a30be))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};try{const _0x81bbc9=JSON[_0x14e896(0x1a5)](a274_0x36f290[_0x14e896(0x1b4)](_0x7a30be,_0x14e896(0x1c5))),_0x3b9ea0=_0x81bbc9[_0x14e896(0x1a7)]||{},_0x2e5230=_0x81bbc9[_0x14e896(0x1ab)]||{},_0x56d668=_0x3b9ea0[_0x2c5e78]||_0x2e5230[_0x2c5e78];if(!_0x56d668)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};let _0x13e05c=getInstalledVersion(_0x37ed65,_0x2c5e78);!_0x13e05c&&(_0x13e05c=_0x56d668);if(isNonNumericVersion(_0x56d668))return{'installed':!![],'version':_0x13e05c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};const _0x470be3=a274_0x474b10[_0x14e896(0x1c8)](_0x13e05c),_0x28b236=_0x470be3?a274_0x474b10['lt'](_0x470be3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x13e05c,'needsUpgrade':_0x28b236,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x56a14c){const _0x13d617=a274_0x143628;if(!_0x56a14c[_0x13d617(0x1bd)])return;const _0x3b7e29=_0x13d617(0x1a4),_0x44bac9=_0x13d617(0x1bf),_0x34ad0b=_0x13d617(0x1ac),_0x64d246=_0x56a14c[_0x13d617(0x1c0)]||_0x13d617(0x1b9),_0x3e566b=_0x56a14c[_0x13d617(0x1ae)]||_0x56a14c[_0x13d617(0x1c3)],_0x39152e='npm\x20install\x20'+_0x64d246+'@'+(_0x3e566b||'latest');console[_0x13d617(0x1ba)](),console[_0x13d617(0x1ba)](''+_0x3b7e29+_0x34ad0b+_0x13d617(0x1b5)+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1b2)+_0x64d246+'@'+_0x56a14c['version']+_0x44bac9),console['log'](_0x3b7e29+'\x20\x20\x20Stable\x20version:\x20'+_0x3e566b+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1bb)+_0x39152e+_0x44bac9),console[_0x13d617(0x1ba)]();}
1
+ (function(_0x10e0cf,_0x10ced2){const _0x1fc61f=a282_0x86c9,_0x4a5637=_0x10e0cf();while(!![]){try{const _0x2f515c=parseInt(_0x1fc61f(0x183))/0x1+parseInt(_0x1fc61f(0x16f))/0x2*(parseInt(_0x1fc61f(0x16d))/0x3)+-parseInt(_0x1fc61f(0x173))/0x4+-parseInt(_0x1fc61f(0x191))/0x5*(-parseInt(_0x1fc61f(0x181))/0x6)+-parseInt(_0x1fc61f(0x17d))/0x7*(-parseInt(_0x1fc61f(0x185))/0x8)+-parseInt(_0x1fc61f(0x178))/0x9*(-parseInt(_0x1fc61f(0x18e))/0xa)+parseInt(_0x1fc61f(0x170))/0xb*(-parseInt(_0x1fc61f(0x176))/0xc);if(_0x2f515c===_0x10ced2)break;else _0x4a5637['push'](_0x4a5637['shift']());}catch(_0x218e41){_0x4a5637['push'](_0x4a5637['shift']());}}}(a282_0x6e8a,0xa08da));import a282_0xd14984 from'node:fs';import a282_0x521a0d from'node:path';import a282_0x1dbcd9 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1a7f85){const _0xd729ac=a282_0x86c9,_0x384c6a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x384c6a[_0xd729ac(0x16c)](_0x55e3e7=>_0x55e3e7[_0xd729ac(0x184)](_0x1a7f85));}function getInstalledVersion(_0x16f889,_0x538914){const _0x50b90c=a282_0x86c9;try{const _0x3f4f4e=a282_0x521a0d['join'](_0x16f889,_0x50b90c(0x18f),_0x538914,_0x50b90c(0x192));if(a282_0xd14984[_0x50b90c(0x17a)](_0x3f4f4e)){const _0x3ad1d9=JSON[_0x50b90c(0x18d)](a282_0xd14984[_0x50b90c(0x182)](_0x3f4f4e,_0x50b90c(0x17e)));return _0x3ad1d9[_0x50b90c(0x175)]||null;}}catch{}return null;}function a282_0x6e8a(){const _0x2f5a9d=['\x20\x20\x20Upgrade\x20command:\x20','1599100LvmzQY','stableVersion','version','1644768vLiZnz','npm\x20install\x20','9FCujOV','@lovrabet/sdk','existsSync','↪\x20SDK\x20update\x20available','coerce','35SorfJj','utf-8','sdk','latest','2031258nDmJIK','readFileSync','967906vTzTcP','test','1223512YlWZXm','utf8','minVersion','\x20\x20\x20Current\x20version:\x20','dependencies','\x20\x20\x20Stable\x20version:\x20','log','\x1b[0m','parse','5506100UTDzKP','node_modules','join','5MWCnci','package.json','some','652437rlhZbb','needsUpgrade','2glKNgx','143rdPRWr','devDependencies'];a282_0x6e8a=function(){return _0x2f5a9d;};return a282_0x6e8a();}async function getSdkStableVersion(){const _0x457cf9=a282_0x86c9;try{const _0x186bea=await getCdnConfig();return _0x186bea?.[_0x457cf9(0x17f)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x55571b=a282_0x86c9;try{const _0x2b59f5=await getCdnConfig();return _0x2b59f5?.[_0x55571b(0x17f)]?.['node']?.['packageName']||_0x55571b(0x179);}catch{return _0x55571b(0x179);}}export async function checkSdkVersion(_0x5bc7cc){const _0x56b3dd=a282_0x86c9,_0x44c24c=a282_0x521a0d[_0x56b3dd(0x190)](_0x5bc7cc,_0x56b3dd(0x192)),[_0x321dd6,_0x28f155]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4bb409=_0x321dd6||FALLBACK_MIN_SDK_VERSION;if(!a282_0xd14984[_0x56b3dd(0x17a)](_0x44c24c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};try{const _0x501e10=JSON[_0x56b3dd(0x18d)](a282_0xd14984['readFileSync'](_0x44c24c,_0x56b3dd(0x186))),_0x30c605=_0x501e10['dependencies']||{},_0x48a96c=_0x501e10['devDependencies']||{},_0x27b4c1=_0x30c605[_0x28f155]||_0x48a96c[_0x28f155];if(!_0x27b4c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};let _0x5f5bf2=getInstalledVersion(_0x5bc7cc,_0x28f155);!_0x5f5bf2&&(_0x5f5bf2=_0x27b4c1);if(isNonNumericVersion(_0x27b4c1))return{'installed':!![],'version':_0x5f5bf2,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};const _0x3b0065=a282_0x1dbcd9[_0x56b3dd(0x17c)](_0x5f5bf2),_0x4a4a49=a282_0x1dbcd9[_0x56b3dd(0x17c)](_0x4bb409),_0xca0f9=_0x3b0065&&_0x4a4a49?a282_0x1dbcd9['lt'](_0x3b0065,_0x4a4a49):![];return{'installed':!![],'version':_0x5f5bf2,'needsUpgrade':_0xca0f9,'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};}}export function checkSdkVersionSync(_0x2bb7ba){const _0x33c8c0=a282_0x86c9,_0x13a6b2=a282_0x521a0d['join'](_0x2bb7ba,'package.json'),_0x40cdae=_0x33c8c0(0x179);if(!a282_0xd14984[_0x33c8c0(0x17a)](_0x13a6b2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};try{const _0x2c58f2=JSON[_0x33c8c0(0x18d)](a282_0xd14984['readFileSync'](_0x13a6b2,_0x33c8c0(0x186))),_0x2335c9=_0x2c58f2[_0x33c8c0(0x189)]||{},_0x25c588=_0x2c58f2[_0x33c8c0(0x171)]||{},_0x184ebb=_0x2335c9[_0x40cdae]||_0x25c588[_0x40cdae];if(!_0x184ebb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};let _0x534723=getInstalledVersion(_0x2bb7ba,_0x40cdae);!_0x534723&&(_0x534723=_0x184ebb);if(isNonNumericVersion(_0x184ebb))return{'installed':!![],'version':_0x534723,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};const _0x42ccfa=a282_0x1dbcd9[_0x33c8c0(0x17c)](_0x534723),_0xa47967=_0x42ccfa?a282_0x1dbcd9['lt'](_0x42ccfa,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x534723,'needsUpgrade':_0xa47967,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};}}function a282_0x86c9(_0x1ba0a7,_0x2756b2){_0x1ba0a7=_0x1ba0a7-0x16c;const _0x6e8a3=a282_0x6e8a();let _0x86c907=_0x6e8a3[_0x1ba0a7];return _0x86c907;}export function printSdkUpgradeWarning(_0x508e1c){const _0x39d90a=a282_0x86c9;if(!_0x508e1c[_0x39d90a(0x16e)])return;const _0x5f48b7='\x1b[33m',_0x59ef4f=_0x39d90a(0x18c),_0x4381f0='\x1b[1m',_0x462747=_0x508e1c['packageName']||_0x39d90a(0x179),_0x2d4afa=_0x508e1c[_0x39d90a(0x174)]||_0x508e1c[_0x39d90a(0x187)],_0x51ddf8=_0x39d90a(0x177)+_0x462747+'@'+(_0x2d4afa||_0x39d90a(0x180));console[_0x39d90a(0x18b)](),console[_0x39d90a(0x18b)](''+_0x5f48b7+_0x4381f0+_0x39d90a(0x17b)+_0x59ef4f),console[_0x39d90a(0x18b)](_0x5f48b7+_0x39d90a(0x188)+_0x462747+'@'+_0x508e1c[_0x39d90a(0x175)]+_0x59ef4f),console['log'](_0x5f48b7+_0x39d90a(0x18a)+_0x2d4afa+_0x59ef4f),console[_0x39d90a(0x18b)](_0x5f48b7+_0x39d90a(0x172)+_0x51ddf8+_0x59ef4f),console[_0x39d90a(0x18b)]();}
@@ -1 +1 @@
1
- (function(_0x316339,_0x4b21e7){const _0x1f090c=a275_0x17c8,_0x311012=_0x316339();while(!![]){try{const _0x3ab734=parseInt(_0x1f090c(0x10b))/0x1+parseInt(_0x1f090c(0xff))/0x2+parseInt(_0x1f090c(0xfa))/0x3+parseInt(_0x1f090c(0xfe))/0x4+parseInt(_0x1f090c(0x10f))/0x5+parseInt(_0x1f090c(0x102))/0x6*(parseInt(_0x1f090c(0xf2))/0x7)+-parseInt(_0x1f090c(0x112))/0x8;if(_0x3ab734===_0x4b21e7)break;else _0x311012['push'](_0x311012['shift']());}catch(_0x2bd274){_0x311012['push'](_0x311012['shift']());}}}(a275_0x442f,0xe9242));import{readFileSync}from'node:fs';function a275_0x17c8(_0x4e3719,_0x371990){_0x4e3719=_0x4e3719-0xf0;const _0x442f41=a275_0x442f();let _0x17c8a7=_0x442f41[_0x4e3719];return _0x17c8a7;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a275_0x442f(){const _0xf0212a=['3456412IDaVek','1734830leofLy','\x20\x20\x20Current\x20CLI\x20version:\x20','minimumVersionMessage','96ymSoXY','belowMinimum','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[1m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','currentVersion','package.json','1021586FzXIuD','../..','\x1b[0m','parse','6055875LXQGOA','log','1.0.0','47175560lCGIBg','\x20\x20\x20','↪\x20New\x20version\x20available','join','485618rFCIPS','utf-8','filter','npm\x20install\x20-g\x20','Upgrade\x20command:\x20','stableVersion','version','coerce','5332884OIyDWF','upgradeMessage','\x1b[33m','\x1b[31m'];a275_0x442f=function(){return _0xf0212a;};return a275_0x442f();}import a275_0x511ab9 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(_0x2d3204){const _0x320ac9=a275_0x17c8,_0x309309=_0x2d3204['stableVersion']||'latest';return _0x320ac9(0xf5)+NPM_PACKAGE_NAME+'@'+_0x309309;}function getCurrentCliVersion(){const _0x1a822e=a275_0x17c8;try{const _0x444b67=fileURLToPath(import.meta.url),_0x2419bb=resolve(dirname(_0x444b67),_0x1a822e(0x10c)),_0x2fe306=resolve(_0x2419bb,_0x1a822e(0x10a)),_0x3d5809=JSON[_0x1a822e(0x10e)](readFileSync(_0x2fe306,_0x1a822e(0xf3)));return _0x3d5809[_0x1a822e(0xf8)]||'1.0.0';}catch{return _0x1a822e(0x111);}}export async function checkCliVersion(){const _0x3b8d26=a275_0x17c8,_0x12f705=getCurrentCliVersion(),_0x7c764d=await getCliVersionPolicy(),_0x1e002f=_0x7c764d?.[_0x3b8d26(0xf7)]||null,_0x140bd6=_0x7c764d?.[_0x3b8d26(0x108)]||null;let _0x5c5604=![],_0x1e815f=![];const _0x559c7e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x12f705);if(_0x559c7e&&_0x1e002f)try{const _0x4ae5ea=a275_0x511ab9['coerce'](_0x1e002f);if(_0x4ae5ea)_0x5c5604=a275_0x511ab9['lt'](_0x559c7e,_0x4ae5ea);}catch{}if(_0x559c7e&&_0x140bd6)try{const _0x841a0e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x140bd6);if(_0x841a0e)_0x1e815f=a275_0x511ab9['lt'](_0x559c7e,_0x841a0e);}catch{}return _0x1e815f&&(_0x5c5604=!![]),{'currentVersion':_0x12f705,'stableVersion':_0x1e002f,'minimumVersion':_0x140bd6,'needsUpgrade':_0x5c5604,'belowMinimum':_0x1e815f,'isPreRelease':![],'upgradeMessage':_0x7c764d?.[_0x3b8d26(0xfb)],'minimumVersionMessage':_0x7c764d?.[_0x3b8d26(0x101)]};}export function printCliUpgradeWarning(_0x220ba1){const _0x2e7767=a275_0x17c8;if(!_0x220ba1['needsUpgrade']&&!_0x220ba1[_0x2e7767(0x103)])return;const _0x2db2c8=_0x2e7767(0xfd),_0x19afeb=_0x2e7767(0xfc),_0x2cca68=_0x2e7767(0x10d),_0xf9d4b2=_0x2e7767(0x106),_0x190ff7=getCliUpgradeCommand(_0x220ba1);console[_0x2e7767(0x110)](),_0x220ba1[_0x2e7767(0x103)]?(console[_0x2e7767(0x110)](''+_0x2db2c8+_0xf9d4b2+_0x2e7767(0x105)+_0x2cca68),console['log'](_0x2db2c8+_0x2e7767(0x100)+_0x220ba1[_0x2e7767(0x109)]+_0x2cca68),_0x220ba1[_0x2e7767(0x108)]&&console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Minimum\x20supported:\x20'+_0x220ba1['minimumVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xf7)]&&_0x220ba1['stableVersion']!==_0x220ba1[_0x2e7767(0x108)]&&console['log'](_0x2db2c8+_0x2e7767(0x107)+_0x220ba1[_0x2e7767(0xf7)]+_0x2cca68),_0x220ba1['minimumVersionMessage']&&console[_0x2e7767(0x110)](_0x2db2c8+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0x101)]+_0x2cca68),console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Upgrade\x20command:\x20'+_0x190ff7+_0x2cca68)):(console[_0x2e7767(0x110)](''+_0x19afeb+_0xf9d4b2+_0x2e7767(0xf0)+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x100)+_0x220ba1['currentVersion']+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+'\x20\x20\x20Stable\x20version:\x20'+_0x220ba1['stableVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xfb)]&&console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0xfb)]+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x104)+_0x190ff7+_0x2cca68)),console[_0x2e7767(0x110)]();}export function assertCliVersionSupported(_0x3fb755){const _0x2d0218=a275_0x17c8;if(!_0x3fb755[_0x2d0218(0x103)])return;const _0x516e0c=[_0x3fb755[_0x2d0218(0x101)],'Current\x20version:\x20'+_0x3fb755[_0x2d0218(0x109)],_0x3fb755[_0x2d0218(0x108)]?'Minimum\x20supported:\x20'+_0x3fb755['minimumVersion']:null,_0x2d0218(0xf6)+getCliUpgradeCommand(_0x3fb755)][_0x2d0218(0xf4)](Boolean)[_0x2d0218(0xf1)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x516e0c);}
1
+ (function(_0x169440,_0x499103){const _0x5cbb1f=a283_0x5a0a,_0x4101d6=_0x169440();while(!![]){try{const _0x12e8ec=-parseInt(_0x5cbb1f(0x1aa))/0x1*(-parseInt(_0x5cbb1f(0x1ab))/0x2)+-parseInt(_0x5cbb1f(0x1bd))/0x3+parseInt(_0x5cbb1f(0x1a8))/0x4*(-parseInt(_0x5cbb1f(0x19b))/0x5)+-parseInt(_0x5cbb1f(0x19c))/0x6*(parseInt(_0x5cbb1f(0x1ad))/0x7)+-parseInt(_0x5cbb1f(0x1bc))/0x8+-parseInt(_0x5cbb1f(0x1c1))/0x9+parseInt(_0x5cbb1f(0x1ac))/0xa;if(_0x12e8ec===_0x499103)break;else _0x4101d6['push'](_0x4101d6['shift']());}catch(_0x1ea527){_0x4101d6['push'](_0x4101d6['shift']());}}}(a283_0x1be3,0xb2f5c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a283_0x42a3d2 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a283_0x1be3(){const _0x3c2ae4=['5AouXtI','402406efKiBj','32267970OYBqTJ','14cHcIJy','\x20\x20\x20Minimum\x20supported:\x20','Minimum\x20supported:\x20','join','stableVersion','\x1b[1m','\x1b[33m','1.0.0','package.json','currentVersion','needsUpgrade','minimumVersion','minimumVersionMessage','\x1b[31m','belowMinimum','6173848uLAHLn','1097745TcTTzI','log','Current\x20version:\x20','Upgrade\x20command:\x20','7593075yARwfo','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Recommended\x20stable:\x20','4615gBSNnm','781266ahosql','utf-8','../..','npm\x20install\x20-g\x20','parse','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20','latest','coerce','\x1b[0m','upgradeMessage','version','5452EIFfin','\x20\x20\x20Current\x20CLI\x20version:\x20'];a283_0x1be3=function(){return _0x3c2ae4;};return a283_0x1be3();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x526a0f){const _0xc83a41=a283_0x5a0a,_0x505c8b=_0x526a0f[_0xc83a41(0x1b1)]||_0xc83a41(0x1a3);return _0xc83a41(0x19f)+NPM_PACKAGE_NAME+'@'+_0x505c8b;}function getCurrentCliVersion(){const _0x5b851c=a283_0x5a0a;try{const _0x576f28=fileURLToPath(import.meta.url),_0x5899c1=resolve(dirname(_0x576f28),_0x5b851c(0x19e)),_0x30a73a=resolve(_0x5899c1,_0x5b851c(0x1b5)),_0x51fd7e=JSON[_0x5b851c(0x1a0)](readFileSync(_0x30a73a,_0x5b851c(0x19d)));return _0x51fd7e[_0x5b851c(0x1a7)]||'1.0.0';}catch{return _0x5b851c(0x1b4);}}function a283_0x5a0a(_0x118638,_0x392c72){_0x118638=_0x118638-0x19a;const _0x1be362=a283_0x1be3();let _0x5a0a2f=_0x1be362[_0x118638];return _0x5a0a2f;}export async function checkCliVersion(){const _0x18c48b=a283_0x5a0a,_0x512764=getCurrentCliVersion(),_0x7bc87f=await getCliVersionPolicy(),_0xa330cd=_0x7bc87f?.['stableVersion']||null,_0x407176=_0x7bc87f?.[_0x18c48b(0x1b8)]||null;let _0x3ee31f=![],_0x5edbec=![];const _0x313f92=a283_0x42a3d2[_0x18c48b(0x1a4)](_0x512764);if(_0x313f92&&_0xa330cd)try{const _0x3c2158=a283_0x42a3d2[_0x18c48b(0x1a4)](_0xa330cd);if(_0x3c2158)_0x3ee31f=a283_0x42a3d2['lt'](_0x313f92,_0x3c2158);}catch{}if(_0x313f92&&_0x407176)try{const _0x33a3c6=a283_0x42a3d2[_0x18c48b(0x1a4)](_0x407176);if(_0x33a3c6)_0x5edbec=a283_0x42a3d2['lt'](_0x313f92,_0x33a3c6);}catch{}return _0x5edbec&&(_0x3ee31f=!![]),{'currentVersion':_0x512764,'stableVersion':_0xa330cd,'minimumVersion':_0x407176,'needsUpgrade':_0x3ee31f,'belowMinimum':_0x5edbec,'isPreRelease':![],'upgradeMessage':_0x7bc87f?.[_0x18c48b(0x1a6)],'minimumVersionMessage':_0x7bc87f?.[_0x18c48b(0x1b9)]};}export function printCliUpgradeWarning(_0x2a3b24){const _0x36ea5d=a283_0x5a0a;if(!_0x2a3b24[_0x36ea5d(0x1b7)]&&!_0x2a3b24[_0x36ea5d(0x1bb)])return;const _0x218d8c=_0x36ea5d(0x1ba),_0x7d8144=_0x36ea5d(0x1b3),_0x4e7eaa=_0x36ea5d(0x1a5),_0x678ff3=_0x36ea5d(0x1b2),_0x18771d=getCliUpgradeCommand(_0x2a3b24);console[_0x36ea5d(0x1be)](),_0x2a3b24[_0x36ea5d(0x1bb)]?(console[_0x36ea5d(0x1be)](''+_0x218d8c+_0x678ff3+_0x36ea5d(0x1a1)+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x218d8c+_0x36ea5d(0x1a9)+_0x2a3b24[_0x36ea5d(0x1b6)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b8)]&&console[_0x36ea5d(0x1be)](_0x218d8c+_0x36ea5d(0x1ae)+_0x2a3b24[_0x36ea5d(0x1b8)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b1)]&&_0x2a3b24['stableVersion']!==_0x2a3b24[_0x36ea5d(0x1b8)]&&console['log'](_0x218d8c+_0x36ea5d(0x19a)+_0x2a3b24[_0x36ea5d(0x1b1)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b9)]&&console['log'](_0x218d8c+_0x36ea5d(0x1a2)+_0x2a3b24['minimumVersionMessage']+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x218d8c+'\x20\x20\x20Upgrade\x20command:\x20'+_0x18771d+_0x4e7eaa)):(console[_0x36ea5d(0x1be)](''+_0x7d8144+_0x678ff3+'↪\x20New\x20version\x20available'+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+_0x36ea5d(0x1a9)+_0x2a3b24[_0x36ea5d(0x1b6)]+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+'\x20\x20\x20Stable\x20version:\x20'+_0x2a3b24[_0x36ea5d(0x1b1)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1a6)]&&console[_0x36ea5d(0x1be)](_0x7d8144+'\x20\x20\x20'+_0x2a3b24[_0x36ea5d(0x1a6)]+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+_0x36ea5d(0x1c2)+_0x18771d+_0x4e7eaa)),console[_0x36ea5d(0x1be)]();}export function assertCliVersionSupported(_0x4ba575){const _0x5eb600=a283_0x5a0a;if(!_0x4ba575[_0x5eb600(0x1bb)])return;const _0x493e7b=[_0x4ba575[_0x5eb600(0x1b9)],_0x5eb600(0x1bf)+_0x4ba575[_0x5eb600(0x1b6)],_0x4ba575[_0x5eb600(0x1b8)]?_0x5eb600(0x1af)+_0x4ba575[_0x5eb600(0x1b8)]:null,_0x5eb600(0x1c0)+getCliUpgradeCommand(_0x4ba575)]['filter'](Boolean)[_0x5eb600(0x1b0)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x493e7b);}
@@ -4,6 +4,19 @@ export interface CliVersionPolicy {
4
4
  upgradeMessage?: string;
5
5
  minimumVersionMessage?: string;
6
6
  }
7
+ export interface ProjectTemplateCdnDescriptor {
8
+ version: string;
9
+ name: string;
10
+ sha256: string;
11
+ size: number;
12
+ }
13
+ export interface RabetbaseCdnConfig {
14
+ cli?: Record<string, unknown>;
15
+ projectTemplate?: ProjectTemplateCdnDescriptor;
16
+ [key: string]: unknown;
17
+ }
18
+ export declare function fetchRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
7
19
  export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
20
+ export declare function getRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
8
21
  export declare function getCliVersionPolicy(): Promise<CliVersionPolicy | null>;
9
22
  export declare function clearCliVersionPolicyCache(): void;
@@ -1 +1 @@
1
- (function(_0x3ed886,_0xc61ff3){const _0x2d623b=a276_0x3ce3,_0x54268b=_0x3ed886();while(!![]){try{const _0x3c8f39=parseInt(_0x2d623b(0x19e))/0x1+parseInt(_0x2d623b(0x1a9))/0x2+-parseInt(_0x2d623b(0x1a7))/0x3+-parseInt(_0x2d623b(0x1af))/0x4+parseInt(_0x2d623b(0x1ae))/0x5*(parseInt(_0x2d623b(0x1a8))/0x6)+-parseInt(_0x2d623b(0x1a0))/0x7+-parseInt(_0x2d623b(0x19f))/0x8;if(_0x3c8f39===_0xc61ff3)break;else _0x54268b['push'](_0x54268b['shift']());}catch(_0x2e0551){_0x54268b['push'](_0x54268b['shift']());}}}(a276_0x298e,0x3e57f));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(_0x36802e){const _0x442f52=a276_0x3ce3;return typeof _0x36802e===_0x442f52(0x1b2)&&_0x36802e[_0x442f52(0x1a5)]()['length']>0x0?_0x36802e[_0x442f52(0x1a5)]():null;}function a276_0x298e(){const _0x2c68d5=['53445JukwLa','923652yGzPQT','659472PKufXZ','minVersion','object','signal','application/json','10xBBPcF','459288YLlDKD','minimumVersion','upgradeMessage','string','stableVersion','243053orMBlC','3502600wnOTiI','383964KwhzNl','cli','recommendedVersion','abort','now','trim','latestVersion'];a276_0x298e=function(){return _0x2c68d5;};return a276_0x298e();}function normalizeCliVersionPolicy(_0x34e8c1){const _0x199080=a276_0x3ce3;if(!_0x34e8c1||typeof _0x34e8c1!==_0x199080(0x1ab))return null;const _0x556c85=_0x34e8c1,_0x926af0=_0x556c85['cli']&&typeof _0x556c85[_0x199080(0x1a1)]===_0x199080(0x1ab)?_0x556c85['cli']:_0x556c85,_0x8d6fa4=pickString(_0x926af0[_0x199080(0x1b3)])||pickString(_0x926af0[_0x199080(0x1a6)])||pickString(_0x926af0[_0x199080(0x1a2)]),_0x424407=pickString(_0x926af0[_0x199080(0x1b0)])||pickString(_0x926af0[_0x199080(0x1aa)]);if(!_0x8d6fa4&&!_0x424407)return null;return{'stableVersion':_0x8d6fa4,'minimumVersion':_0x424407,'upgradeMessage':pickString(_0x926af0[_0x199080(0x1b1)])||undefined,'minimumVersionMessage':pickString(_0x926af0['minimumVersionMessage'])||undefined};}function a276_0x3ce3(_0x24bc72,_0x4cb0c8){_0x24bc72=_0x24bc72-0x19e;const _0x298efe=a276_0x298e();let _0x3ce352=_0x298efe[_0x24bc72];return _0x3ce352;}export async function fetchCliVersionPolicy(){const _0x248724=a276_0x3ce3,_0x3f7fc4=new AbortController(),_0x10bfc3=setTimeout(()=>_0x3f7fc4[_0x248724(0x1a3)](),FETCH_TIMEOUT_MS);try{const _0x2bb2e1=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x248724(0x1ad)},'signal':_0x3f7fc4[_0x248724(0x1ac)]});if(!_0x2bb2e1['ok'])return null;const _0x4d6f2b=await _0x2bb2e1['json']();return normalizeCliVersionPolicy(_0x4d6f2b);}catch{return null;}finally{clearTimeout(_0x10bfc3);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x196c6b=a276_0x3ce3,_0x86f2db=Date[_0x196c6b(0x1a4)]();if(hasCachedPolicy){const _0x8340f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x86f2db-cacheTime<_0x8340f)return cachedPolicy;}const _0x217778=await fetchCliVersionPolicy();return cachedPolicy=_0x217778,cacheTime=_0x86f2db,hasCachedPolicy=!![],_0x217778;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1da633,_0x3f8b8a){const _0x3f33cc=a284_0x3649,_0x3c26ba=_0x1da633();while(!![]){try{const _0x370da4=-parseInt(_0x3f33cc(0x10f))/0x1*(-parseInt(_0x3f33cc(0x114))/0x2)+-parseInt(_0x3f33cc(0x112))/0x3*(-parseInt(_0x3f33cc(0x10d))/0x4)+parseInt(_0x3f33cc(0x104))/0x5+-parseInt(_0x3f33cc(0x105))/0x6*(parseInt(_0x3f33cc(0x107))/0x7)+-parseInt(_0x3f33cc(0x103))/0x8*(parseInt(_0x3f33cc(0x101))/0x9)+parseInt(_0x3f33cc(0x113))/0xa*(parseInt(_0x3f33cc(0x109))/0xb)+parseInt(_0x3f33cc(0x115))/0xc*(parseInt(_0x3f33cc(0x10e))/0xd);if(_0x370da4===_0x3f8b8a)break;else _0x3c26ba['push'](_0x3c26ba['shift']());}catch(_0x43b851){_0x3c26ba['push'](_0x3c26ba['shift']());}}}(a284_0xad92,0xc2e73));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 a284_0xad92(){const _0x49bf26=['string','4yoteTi','13897iBTOxK','70727givZTS','length','upgradeMessage','1836777zUCFWO','65210crvMsy','26opLpal','8196TOLqyr','abort','signal','stableVersion','minVersion','latestVersion','minimumVersion','object','13592610oTrkQa','trim','8LgHwIa','1903140EFoksO','114UKAGuk','recommendedVersion','406490wyMkkr','json','1298jZxFrj','application/json','cli'];a284_0xad92=function(){return _0x49bf26;};return a284_0xad92();}function pickString(_0xf389f1){const _0x209946=a284_0x3649;return typeof _0xf389f1===_0x209946(0x10c)&&_0xf389f1[_0x209946(0x102)]()[_0x209946(0x110)]>0x0?_0xf389f1[_0x209946(0x102)]():null;}function a284_0x3649(_0x31e824,_0xecadb9){_0x31e824=_0x31e824-0xfd;const _0xad9289=a284_0xad92();let _0x36490f=_0xad9289[_0x31e824];return _0x36490f;}function normalizeCliVersionPolicy(_0x51a202){const _0x36a002=a284_0x3649;if(!_0x51a202||typeof _0x51a202!==_0x36a002(0x100))return null;const _0x25d434=_0x51a202,_0x2d3369=_0x25d434[_0x36a002(0x10b)]&&typeof _0x25d434['cli']==='object'?_0x25d434[_0x36a002(0x10b)]:_0x25d434,_0x200f73=pickString(_0x2d3369[_0x36a002(0x118)])||pickString(_0x2d3369[_0x36a002(0xfe)])||pickString(_0x2d3369[_0x36a002(0x106)]),_0x72e795=pickString(_0x2d3369[_0x36a002(0xff)])||pickString(_0x2d3369[_0x36a002(0xfd)]);if(!_0x200f73&&!_0x72e795)return null;return{'stableVersion':_0x200f73,'minimumVersion':_0x72e795,'upgradeMessage':pickString(_0x2d3369[_0x36a002(0x111)])||undefined,'minimumVersionMessage':pickString(_0x2d3369['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x5cc625=a284_0x3649,_0x3d186e=new AbortController(),_0x26da33=setTimeout(()=>_0x3d186e[_0x5cc625(0x116)](),FETCH_TIMEOUT_MS);try{const _0x2d353c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5cc625(0x10a)},'signal':_0x3d186e[_0x5cc625(0x117)]});if(!_0x2d353c['ok'])return null;const _0x387371=await _0x2d353c[_0x5cc625(0x108)]();return _0x387371&&typeof _0x387371===_0x5cc625(0x100)?_0x387371:null;}catch{return null;}finally{clearTimeout(_0x26da33);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x30cb70=Date['now']();if(hasCachedConfig){const _0x468902=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x30cb70-cacheTime<_0x468902)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x30cb70,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a277_0x55e1(_0x43747e,_0x1aba23){_0x43747e=_0x43747e-0x14c;const _0x14a44d=a277_0x14a4();let _0x55e171=_0x14a44d[_0x43747e];return _0x55e171;}const a277_0x1725c7=a277_0x55e1;(function(_0x2092ee,_0x2652cb){const _0x3ff6b4=a277_0x55e1,_0x526c55=_0x2092ee();while(!![]){try{const _0x4f9cc7=parseInt(_0x3ff6b4(0x14f))/0x1+-parseInt(_0x3ff6b4(0x158))/0x2+parseInt(_0x3ff6b4(0x152))/0x3*(parseInt(_0x3ff6b4(0x154))/0x4)+parseInt(_0x3ff6b4(0x14e))/0x5*(parseInt(_0x3ff6b4(0x155))/0x6)+parseInt(_0x3ff6b4(0x159))/0x7*(-parseInt(_0x3ff6b4(0x14d))/0x8)+parseInt(_0x3ff6b4(0x157))/0x9+-parseInt(_0x3ff6b4(0x156))/0xa*(parseInt(_0x3ff6b4(0x153))/0xb);if(_0x4f9cc7===_0x2652cb)break;else _0x526c55['push'](_0x526c55['shift']());}catch(_0x44cbcc){_0x526c55['push'](_0x526c55['shift']());}}}(a277_0x14a4,0x35e7c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x53b359,getMultiAppConfigs as a277_0x3338dd,getTemplateBaseUrl as a277_0x166e6a}from'../context.js';function a277_0x14a4(){const _0x521c87=['3lEyxzh','293689DTWLdj','175964onksxR','258702WftDFB','20KsHtEj','784845RamVmX','414072JiTwdF','1635578YkyemA','env','8xeHcjL','35HbqifE','281869iUqDyV','string','project'];a277_0x14a4=function(){return _0x521c87;};return a277_0x14a4();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x59291e){const _0x222a8e=a277_0x55e1,_0x25d8bb=readRawConfig(_0x59291e);return _0x25d8bb['env']&&typeof _0x25d8bb['env']===_0x222a8e(0x150)&&initEnv(_0x25d8bb[_0x222a8e(0x14c)]),_0x25d8bb;}export function getConfigAppCode(){return a277_0x53b359();}export function getMultiAppConfigs(_0x517923=a277_0x1725c7(0x151)){return a277_0x3338dd(_0x517923);}export function getTemplateBaseUrl(){return a277_0x166e6a();}
1
+ const a285_0x45f634=a285_0x265e;(function(_0x136bcf,_0x383582){const _0x2d9baf=a285_0x265e,_0x3a1b65=_0x136bcf();while(!![]){try{const _0x19f9b0=-parseInt(_0x2d9baf(0x130))/0x1+parseInt(_0x2d9baf(0x138))/0x2*(parseInt(_0x2d9baf(0x139))/0x3)+-parseInt(_0x2d9baf(0x136))/0x4+parseInt(_0x2d9baf(0x134))/0x5*(-parseInt(_0x2d9baf(0x12f))/0x6)+parseInt(_0x2d9baf(0x12d))/0x7+-parseInt(_0x2d9baf(0x132))/0x8*(-parseInt(_0x2d9baf(0x12e))/0x9)+parseInt(_0x2d9baf(0x137))/0xa;if(_0x19f9b0===_0x383582)break;else _0x3a1b65['push'](_0x3a1b65['shift']());}catch(_0x2ab59c){_0x3a1b65['push'](_0x3a1b65['shift']());}}}(a285_0x1ffc,0xb6a47));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a285_0x31007b,getMultiAppConfigs as a285_0x87e888,getTemplateBaseUrl as a285_0xec1b79}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xc350f6){const _0x204135=a285_0x265e,_0x21ccff=readRawConfig(_0xc350f6);return _0x21ccff[_0x204135(0x131)]&&typeof _0x21ccff[_0x204135(0x131)]===_0x204135(0x135)&&initEnv(_0x21ccff[_0x204135(0x131)]),_0x21ccff;}export function getConfigAppCode(){return a285_0x31007b();}function a285_0x1ffc(){const _0xb866d3=['string','5529844HkdkuF','4927310mwrJKI','13606xJAmBC','600vCqciQ','3445120slEbxe','45gKWErZ','12qfvPBO','114672RMrNsC','env','897976vkGMBD','project','1653725slAgxF'];a285_0x1ffc=function(){return _0xb866d3;};return a285_0x1ffc();}function a285_0x265e(_0x172a3d,_0x1a5957){_0x172a3d=_0x172a3d-0x12d;const _0x1ffc71=a285_0x1ffc();let _0x265ef8=_0x1ffc71[_0x172a3d];return _0x265ef8;}export function getMultiAppConfigs(_0x17a216=a285_0x45f634(0x133)){return a285_0x87e888(_0x17a216);}export function getTemplateBaseUrl(){return a285_0xec1b79();}
@@ -1 +1 @@
1
- (function(_0x1702ac,_0x335a21){const _0x484c12=a279_0x4f91,_0x15d900=_0x1702ac();while(!![]){try{const _0x582677=parseInt(_0x484c12(0x140))/0x1*(-parseInt(_0x484c12(0x13d))/0x2)+-parseInt(_0x484c12(0x13f))/0x3*(parseInt(_0x484c12(0x13b))/0x4)+-parseInt(_0x484c12(0x138))/0x5+parseInt(_0x484c12(0x141))/0x6+parseInt(_0x484c12(0x13c))/0x7+parseInt(_0x484c12(0x135))/0x8*(parseInt(_0x484c12(0x134))/0x9)+parseInt(_0x484c12(0x13e))/0xa*(parseInt(_0x484c12(0x142))/0xb);if(_0x582677===_0x335a21)break;else _0x15d900['push'](_0x15d900['shift']());}catch(_0x50dca6){_0x15d900['push'](_0x15d900['shift']());}}}(a279_0xe53b,0xac097));function toFiniteNumber(_0x3c7d7a){const _0x42100c=a279_0x4f91;if(typeof _0x3c7d7a===_0x42100c(0x139)&&Number['isFinite'](_0x3c7d7a))return _0x3c7d7a;if(typeof _0x3c7d7a===_0x42100c(0x13a)){const _0x9c89fb=_0x3c7d7a[_0x42100c(0x136)]();if(!_0x9c89fb)return undefined;const _0x5c3fbb=Number(_0x9c89fb);if(Number['isFinite'](_0x5c3fbb))return _0x5c3fbb;}return undefined;}function a279_0x4f91(_0x4f9e3d,_0x2c8cdb){_0x4f9e3d=_0x4f9e3d-0x134;const _0xe53b1e=a279_0xe53b();let _0x4f9176=_0xe53b1e[_0x4f9e3d];return _0x4f9176;}function a279_0xe53b(){const _0x294a50=['4869366kCzhwa','93269gsIify','91359TqHgXK','440DITjZQ','trim','object','49320obRbjx','number','string','85584dZtLrv','3794553zFSLNt','210xRRvHu','830coquMk','165tSNcdl','6899RqQHxx'];a279_0xe53b=function(){return _0x294a50;};return a279_0xe53b();}export function normalizeEntityWithIdResponse(_0x553b23){const _0x2b654f=a279_0x4f91,_0x5a0d72=toFiniteNumber(_0x553b23);if(_0x5a0d72!==undefined)return{'id':_0x5a0d72,'entity':{'id':_0x5a0d72}};if(!_0x553b23||typeof _0x553b23!==_0x2b654f(0x137))return{'id':undefined,'entity':{}};const _0x145ef7={..._0x553b23},_0x3db4ee=toFiniteNumber(_0x145ef7['id']);return _0x3db4ee!==undefined&&(_0x145ef7['id']=_0x3db4ee),{'id':_0x3db4ee,'entity':_0x145ef7};}
1
+ function a286_0x4f1d(_0x360044,_0x4fccfd){_0x360044=_0x360044-0x1d1;const _0x57d474=a286_0x57d4();let _0x4f1def=_0x57d474[_0x360044];return _0x4f1def;}function a286_0x57d4(){const _0x30ab0d=['5565OZchPA','trim','isFinite','74QRBASI','string','number','3111160LJHNSf','3wpPXJd','7237450cOYRrQ','427383tdRDnA','object','6QeQebI','2227132RWqSXF','1425605OEcVtR','5307932kJoenL','10ATlBLm'];a286_0x57d4=function(){return _0x30ab0d;};return a286_0x57d4();}(function(_0x558c67,_0x527e6d){const _0x5b6200=a286_0x4f1d,_0x13ff02=_0x558c67();while(!![]){try{const _0x12a9af=parseInt(_0x5b6200(0x1d1))/0x1*(parseInt(_0x5b6200(0x1d4))/0x2)+-parseInt(_0x5b6200(0x1d8))/0x3*(-parseInt(_0x5b6200(0x1dd))/0x4)+parseInt(_0x5b6200(0x1de))/0x5*(parseInt(_0x5b6200(0x1dc))/0x6)+-parseInt(_0x5b6200(0x1df))/0x7+-parseInt(_0x5b6200(0x1d7))/0x8+-parseInt(_0x5b6200(0x1da))/0x9*(-parseInt(_0x5b6200(0x1e0))/0xa)+parseInt(_0x5b6200(0x1d9))/0xb;if(_0x12a9af===_0x527e6d)break;else _0x13ff02['push'](_0x13ff02['shift']());}catch(_0x3fb626){_0x13ff02['push'](_0x13ff02['shift']());}}}(a286_0x57d4,0x93f7b));function toFiniteNumber(_0x4f041d){const _0x253bde=a286_0x4f1d;if(typeof _0x4f041d===_0x253bde(0x1d6)&&Number[_0x253bde(0x1d3)](_0x4f041d))return _0x4f041d;if(typeof _0x4f041d===_0x253bde(0x1d5)){const _0x4c5b64=_0x4f041d[_0x253bde(0x1d2)]();if(!_0x4c5b64)return undefined;const _0x3509cd=Number(_0x4c5b64);if(Number['isFinite'](_0x3509cd))return _0x3509cd;}return undefined;}export function normalizeEntityWithIdResponse(_0x4af2d6){const _0x37d908=a286_0x4f1d,_0x1aa5a3=toFiniteNumber(_0x4af2d6);if(_0x1aa5a3!==undefined)return{'id':_0x1aa5a3,'entity':{'id':_0x1aa5a3}};if(!_0x4af2d6||typeof _0x4af2d6!==_0x37d908(0x1db))return{'id':undefined,'entity':{}};const _0x5ace6c={..._0x4af2d6},_0x28cfc8=toFiniteNumber(_0x5ace6c['id']);return _0x28cfc8!==undefined&&(_0x5ace6c['id']=_0x28cfc8),{'id':_0x28cfc8,'entity':_0x5ace6c};}
@@ -1 +1 @@
1
- (function(_0x36cc30,_0xc44747){const _0x51bc51=a280_0xe284,_0xb9ed05=_0x36cc30();while(!![]){try{const _0x5f41bb=parseInt(_0x51bc51(0xfd))/0x1*(parseInt(_0x51bc51(0x104))/0x2)+parseInt(_0x51bc51(0x101))/0x3*(parseInt(_0x51bc51(0x100))/0x4)+parseInt(_0x51bc51(0x107))/0x5+-parseInt(_0x51bc51(0x108))/0x6+parseInt(_0x51bc51(0xff))/0x7+parseInt(_0x51bc51(0xfe))/0x8*(parseInt(_0x51bc51(0x103))/0x9)+parseInt(_0x51bc51(0x105))/0xa*(-parseInt(_0x51bc51(0x102))/0xb);if(_0x5f41bb===_0xc44747)break;else _0xb9ed05['push'](_0xb9ed05['shift']());}catch(_0x2d91e6){_0xb9ed05['push'](_0xb9ed05['shift']());}}}(a280_0x370f,0xd7364));function a280_0xe284(_0x2aebdb,_0x55e400){_0x2aebdb=_0x2aebdb-0xfd;const _0x370f43=a280_0x370f();let _0xe284ed=_0x370f43[_0x2aebdb];return _0xe284ed;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x20b6c8,_0x171415){const _0x3ed299=a280_0xe284,_0x3d7d6d=statSync(_0x20b6c8);if(_0x3d7d6d[_0x3ed299(0x106)]()){!existsSync(_0x171415)&&mkdirSync(_0x171415,{'recursive':!![]});const _0x401c96=readdirSync(_0x20b6c8);for(const _0xa672e7 of _0x401c96){await copyDir(join(_0x20b6c8,_0xa672e7),join(_0x171415,_0xa672e7));}}else copyFileSync(_0x20b6c8,_0x171415);}export function ensureDir(_0x934d30){!existsSync(_0x934d30)&&mkdirSync(_0x934d30,{'recursive':!![]});}function a280_0x370f(){const _0x339b9b=['51626gFKfUB','20408VJMiKk','26124uJQAhi','4dFsvlx','368961BffxII','6337496vgwGAy','5823NCwpHI','36KlLCIl','40iArXPq','isDirectory','7638390sKJhvl','6288660ZorNhY'];a280_0x370f=function(){return _0x339b9b;};return a280_0x370f();}export function pathExists(_0x1fe5e9){return existsSync(_0x1fe5e9);}
1
+ (function(_0x53f644,_0x438078){const _0x1e1741=a287_0x45e1,_0x2512c5=_0x53f644();while(!![]){try{const _0x4f29c1=parseInt(_0x1e1741(0x14a))/0x1*(-parseInt(_0x1e1741(0x143))/0x2)+parseInt(_0x1e1741(0x149))/0x3*(-parseInt(_0x1e1741(0x14d))/0x4)+parseInt(_0x1e1741(0x147))/0x5+parseInt(_0x1e1741(0x142))/0x6*(-parseInt(_0x1e1741(0x14e))/0x7)+parseInt(_0x1e1741(0x141))/0x8*(-parseInt(_0x1e1741(0x145))/0x9)+-parseInt(_0x1e1741(0x14c))/0xa*(parseInt(_0x1e1741(0x148))/0xb)+parseInt(_0x1e1741(0x146))/0xc*(parseInt(_0x1e1741(0x14b))/0xd);if(_0x4f29c1===_0x438078)break;else _0x2512c5['push'](_0x2512c5['shift']());}catch(_0x4b203c){_0x2512c5['push'](_0x2512c5['shift']());}}}(a287_0x9391,0x19972));function a287_0x45e1(_0x634694,_0x134c44){_0x634694=_0x634694-0x141;const _0x93916e=a287_0x9391();let _0x45e160=_0x93916e[_0x634694];return _0x45e160;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a287_0x9391(){const _0x36f368=['223128BkUpcp','4949fiuUNi','453392lMgoRY','1152CJfTXZ','248ZnrTZS','isDirectory','18GYvJNS','696KYcqsd','616065HnhCnu','11SejwmC','9ppesQV','406lpSSvx','121758ddbGaJ','948410Bhmygt'];a287_0x9391=function(){return _0x36f368;};return a287_0x9391();}import{join}from'node:path';export async function copyDir(_0x1f7bcc,_0x3f3065){const _0x563ba2=a287_0x45e1,_0xc5f8c2=statSync(_0x1f7bcc);if(_0xc5f8c2[_0x563ba2(0x144)]()){!existsSync(_0x3f3065)&&mkdirSync(_0x3f3065,{'recursive':!![]});const _0x44e7ce=readdirSync(_0x1f7bcc);for(const _0x32c06e of _0x44e7ce){await copyDir(join(_0x1f7bcc,_0x32c06e),join(_0x3f3065,_0x32c06e));}}else copyFileSync(_0x1f7bcc,_0x3f3065);}export function ensureDir(_0x339126){!existsSync(_0x339126)&&mkdirSync(_0x339126,{'recursive':!![]});}export function pathExists(_0x10e0c3){return existsSync(_0x10e0c3);}
@@ -1 +1 @@
1
- const a281_0x4375d0=a281_0x50e0;function a281_0x50e0(_0x29ed0e,_0x26f2d7){_0x29ed0e=_0x29ed0e-0x87;const _0x3b3319=a281_0x3b33();let _0x50e0e8=_0x3b3319[_0x29ed0e];return _0x50e0e8;}(function(_0xd6b46f,_0x5b9ce9){const _0x3f25ad=a281_0x50e0,_0x2f24cb=_0xd6b46f();while(!![]){try{const _0x58b4a2=parseInt(_0x3f25ad(0x90))/0x1+parseInt(_0x3f25ad(0x89))/0x2*(parseInt(_0x3f25ad(0x91))/0x3)+-parseInt(_0x3f25ad(0x87))/0x4*(parseInt(_0x3f25ad(0x92))/0x5)+parseInt(_0x3f25ad(0xa3))/0x6+parseInt(_0x3f25ad(0x94))/0x7+-parseInt(_0x3f25ad(0x8d))/0x8*(parseInt(_0x3f25ad(0xa0))/0x9)+parseInt(_0x3f25ad(0xa1))/0xa*(-parseInt(_0x3f25ad(0x95))/0xb);if(_0x58b4a2===_0x5b9ce9)break;else _0x2f24cb['push'](_0x2f24cb['shift']());}catch(_0x3debba){_0x2f24cb['push'](_0x2f24cb['shift']());}}}(a281_0x3b33,0x93ea7));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 _0x149493=a281_0x50e0,_0x37105c=getTemplateBaseUrl();return _0x37105c+_0x149493(0x8a);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x4321f4=a281_0x50e0,_0x304694=getGuidesCdnUrl(),_0x232a48=await fetch(_0x304694,{'headers':{'Accept':_0x4321f4(0x9e)}});if(!_0x232a48['ok'])throw new Error(_0x4321f4(0xa7)+_0x232a48[_0x4321f4(0xab)]+'\x20'+_0x232a48[_0x4321f4(0x97)]);const _0x26da97=await _0x232a48[_0x4321f4(0x8e)]();if(!_0x26da97['guides']||typeof _0x26da97[_0x4321f4(0x98)]!==_0x4321f4(0xa9))throw new Error(_0x4321f4(0x9d));return _0x26da97;}export function writeGuidesToProject(_0x3ea8fc,_0xfdb685,_0xb5bd6a=a281_0x4375d0(0xa5),_0x22756a){const _0x5d542c=a281_0x4375d0,_0x2486cf=join(_0xfdb685,_0xb5bd6a);mkdirSync(_0x2486cf,{'recursive':!![]});for(const [_0x393cf8,_0x5db2ea]of Object[_0x5d542c(0xa2)](_0x3ea8fc[_0x5d542c(0x98)])){let _0x5d8523=_0x5db2ea[_0x5d542c(0x9f)];_0x5db2ea['lastUpdated']&&(_0x5d8523=appendUpdateTime(_0x5d8523,_0x5db2ea[_0x5d542c(0x99)])),writeFileSync(join(_0x2486cf,_0x393cf8+_0x5d542c(0xa4)),_0x5d8523,_0x5d542c(0x9c));}}export function appendUpdateTime(_0x3c5b31,_0x2f1b8d){const _0x135ddd=a281_0x4375d0;return _0x3c5b31=_0x3c5b31[_0x135ddd(0x9a)](/\n*>更新时间:.*$/m,''),_0x3c5b31[_0x135ddd(0x8c)]()+(_0x135ddd(0x9b)+_0x2f1b8d);}export function getSkillTemplate(_0x3e0e14){const _0x93a536=a281_0x4375d0;return _0x3e0e14[_0x93a536(0xaa)]?.[_0x93a536(0x9f)]||'';}export function appendExtendContents(_0x2b18bb,_0x2b662f,_0x273007){const _0x5b531d=a281_0x4375d0,_0x1eef07=[];for(const [,_0x3365e1]of Object['entries'](_0x2b662f[_0x5b531d(0x98)])){_0x3365e1[_0x5b531d(0x96)]&&_0x1eef07[_0x5b531d(0xa8)](_0x3365e1[_0x5b531d(0x96)][_0x5b531d(0x8c)]());}if(_0x1eef07[_0x5b531d(0x93)]===0x0)return _0x2b18bb;return _0x2b18bb[_0x5b531d(0x8c)]()+'\x0a\x0a'+_0x1eef07[_0x5b531d(0x8f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2f1b10,_0x251981,_0x3d92ea){const _0x3d89a6=a281_0x4375d0,_0x2c9fa2=getSkillTemplate(_0x2f1b10);if(!_0x2c9fa2)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5412f0=dirname(_0x251981);mkdirSync(_0x5412f0,{'recursive':!![]});let _0x3234c8=_0x2c9fa2['replace'](/\{\{IDE_NAME\}\}/g,_0x3d92ea);_0x3234c8=appendExtendContents(_0x3234c8,_0x2f1b10),_0x2f1b10[_0x3d89a6(0xaa)][_0x3d89a6(0x99)]&&(_0x3234c8=appendUpdateTime(_0x3234c8,_0x2f1b10[_0x3d89a6(0xaa)]['lastUpdated'])),writeFileSync(_0x251981,_0x3234c8,'utf-8');}function a281_0x3b33(){const _0x36ebc8=['lastUpdated','replace','\x0a\x0a>更新时间:','utf-8','CDN\x20返回数据格式错误','application/json','content','9902664nGdWJt','250SSZCbT','entries','6336720KYkdQR','.md','.lovrabet/skill/guides','title','CDN\x20请求失败:\x20','push','object','skillTemplate','status','858504PSFUiG','path','4WdOjqo','/skills/guides.json','map','trimEnd','8sTqByd','json','join','1196468iAYbhW','1305663lkiHRz','5vZKlKM','length','465710vfAMZq','558261GdNgyV','extendContent','statusText','guides'];a281_0x3b33=function(){return _0x36ebc8;};return a281_0x3b33();}export async function installGuides(_0x127732){const _0x18a857=a281_0x4375d0,_0x2b308d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2b308d,_0x127732),Object['keys'](_0x2b308d[_0x18a857(0x98)])[_0x18a857(0x93)];}export function getGuidesSummary(_0x49203d){const _0x408420=a281_0x4375d0;return Object[_0x408420(0xa2)](_0x49203d['guides'])[_0x408420(0x8b)](([_0x279e81,_0x382883])=>({'key':_0x279e81,'title':_0x382883[_0x408420(0xa6)],'path':_0x382883[_0x408420(0x88)]}));}
1
+ const a288_0x5b8450=a288_0x55a6;(function(_0x582330,_0x4ccd82){const _0x572c76=a288_0x55a6,_0x57b3db=_0x582330();while(!![]){try{const _0x26f9f4=-parseInt(_0x572c76(0xa9))/0x1+-parseInt(_0x572c76(0xa2))/0x2+-parseInt(_0x572c76(0xb3))/0x3*(-parseInt(_0x572c76(0xab))/0x4)+-parseInt(_0x572c76(0xa1))/0x5*(-parseInt(_0x572c76(0xac))/0x6)+-parseInt(_0x572c76(0xa8))/0x7+-parseInt(_0x572c76(0x94))/0x8+parseInt(_0x572c76(0xb2))/0x9;if(_0x26f9f4===_0x4ccd82)break;else _0x57b3db['push'](_0x57b3db['shift']());}catch(_0x40933b){_0x57b3db['push'](_0x57b3db['shift']());}}}(a288_0x525f,0x4af14));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 _0x140638=getTemplateBaseUrl();return _0x140638+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a288_0x5b8450(0xad),a288_0x5b8450(0xa0));export async function fetchGuidesFromCDN(){const _0x5ce4a7=a288_0x5b8450,_0x1c2fbd=getGuidesCdnUrl(),_0x5637f2=await fetch(_0x1c2fbd,{'headers':{'Accept':_0x5ce4a7(0x9d)}});if(!_0x5637f2['ok'])throw new Error(_0x5ce4a7(0x93)+_0x5637f2[_0x5ce4a7(0x9e)]+'\x20'+_0x5637f2['statusText']);const _0x1c7186=await _0x5637f2[_0x5ce4a7(0xb4)]();if(!_0x1c7186[_0x5ce4a7(0x9a)]||typeof _0x1c7186[_0x5ce4a7(0x9a)]!==_0x5ce4a7(0xa7))throw new Error(_0x5ce4a7(0xa4));return _0x1c7186;}function a288_0x525f(){const _0xbaa57b=['join','guides','replace','skillTemplate','application/json','status','push','cache','48315TCMiJU','915354ejpNct','map','CDN\x20返回数据格式错误','lastUpdated','trimEnd','object','3678381ogNwNG','606676WKGrtG','CDN\x20数据中缺少\x20skillTemplate','4JYyHNM','150AMyaSg','.lovrabet','.lovrabet/skill/guides','.md','content','path','17676036SASCYG','668739vkknQP','json','CDN\x20请求失败:\x20','4253536AVJFnT','extendContent','length','utf-8','entries'];a288_0x525f=function(){return _0xbaa57b;};return a288_0x525f();}export function writeGuidesToProject(_0x2bd1e0,_0x21a714,_0x55903c=a288_0x5b8450(0xae),_0x4cad46){const _0x53e144=a288_0x5b8450,_0x52c330=join(_0x21a714,_0x55903c);mkdirSync(_0x52c330,{'recursive':!![]});for(const [_0x38911d,_0x1a02e2]of Object[_0x53e144(0x98)](_0x2bd1e0[_0x53e144(0x9a)])){let _0x31b0e5=_0x1a02e2[_0x53e144(0xb0)];_0x1a02e2['lastUpdated']&&(_0x31b0e5=appendUpdateTime(_0x31b0e5,_0x1a02e2[_0x53e144(0xa5)])),writeFileSync(join(_0x52c330,_0x38911d+_0x53e144(0xaf)),_0x31b0e5,'utf-8');}}export function appendUpdateTime(_0x333a71,_0x2e2268){const _0x4ebcc6=a288_0x5b8450;return _0x333a71=_0x333a71[_0x4ebcc6(0x9b)](/\n*>更新时间:.*$/m,''),_0x333a71[_0x4ebcc6(0xa6)]()+('\x0a\x0a>更新时间:'+_0x2e2268);}export function getSkillTemplate(_0x3bf60b){const _0x5cb05b=a288_0x5b8450;return _0x3bf60b[_0x5cb05b(0x9c)]?.[_0x5cb05b(0xb0)]||'';}export function appendExtendContents(_0x104644,_0x51ce34,_0x5bc145){const _0x51d6b4=a288_0x5b8450,_0x1f26c=[];for(const [,_0x2f0bf0]of Object[_0x51d6b4(0x98)](_0x51ce34[_0x51d6b4(0x9a)])){_0x2f0bf0[_0x51d6b4(0x95)]&&_0x1f26c[_0x51d6b4(0x9f)](_0x2f0bf0[_0x51d6b4(0x95)][_0x51d6b4(0xa6)]());}if(_0x1f26c[_0x51d6b4(0x96)]===0x0)return _0x104644;return _0x104644['trimEnd']()+'\x0a\x0a'+_0x1f26c[_0x51d6b4(0x99)]('\x0a\x0a')+'\x0a';}function a288_0x55a6(_0x26aeec,_0x9f0daa){_0x26aeec=_0x26aeec-0x93;const _0x525fae=a288_0x525f();let _0x55a6b3=_0x525fae[_0x26aeec];return _0x55a6b3;}export function writeSkillFile(_0x3eba5c,_0x4a647e,_0x288225){const _0x5eb122=a288_0x5b8450,_0x4c18e5=getSkillTemplate(_0x3eba5c);if(!_0x4c18e5)throw new Error(_0x5eb122(0xaa));const _0x37a81c=dirname(_0x4a647e);mkdirSync(_0x37a81c,{'recursive':!![]});let _0x529eea=_0x4c18e5[_0x5eb122(0x9b)](/\{\{IDE_NAME\}\}/g,_0x288225);_0x529eea=appendExtendContents(_0x529eea,_0x3eba5c),_0x3eba5c[_0x5eb122(0x9c)][_0x5eb122(0xa5)]&&(_0x529eea=appendUpdateTime(_0x529eea,_0x3eba5c[_0x5eb122(0x9c)][_0x5eb122(0xa5)])),writeFileSync(_0x4a647e,_0x529eea,_0x5eb122(0x97));}export async function installGuides(_0x7ab0d9){const _0x32b2a8=a288_0x5b8450,_0xee3c25=await fetchGuidesFromCDN();return writeGuidesToProject(_0xee3c25,_0x7ab0d9),Object['keys'](_0xee3c25[_0x32b2a8(0x9a)])[_0x32b2a8(0x96)];}export function getGuidesSummary(_0x45b745){const _0x418617=a288_0x5b8450;return Object[_0x418617(0x98)](_0x45b745[_0x418617(0x9a)])[_0x418617(0xa3)](([_0x3b9fdf,_0x11641c])=>({'key':_0x3b9fdf,'title':_0x11641c['title'],'path':_0x11641c[_0x418617(0xb1)]}));}
@@ -1 +1 @@
1
- function a282_0x5aef(_0x4b58aa,_0xb74211){_0x4b58aa=_0x4b58aa-0x8f;const _0x1dfadf=a282_0x1dfa();let _0x5aefc0=_0x1dfadf[_0x4b58aa];return _0x5aefc0;}(function(_0x1de09d,_0x2157da){const _0x482d73=a282_0x5aef,_0x8fce41=_0x1de09d();while(!![]){try{const _0x5dd09e=parseInt(_0x482d73(0x96))/0x1*(parseInt(_0x482d73(0xa9))/0x2)+-parseInt(_0x482d73(0xaa))/0x3*(-parseInt(_0x482d73(0x93))/0x4)+-parseInt(_0x482d73(0xa0))/0x5*(parseInt(_0x482d73(0x9c))/0x6)+parseInt(_0x482d73(0xa5))/0x7*(-parseInt(_0x482d73(0xa8))/0x8)+-parseInt(_0x482d73(0x92))/0x9+parseInt(_0x482d73(0xa2))/0xa+parseInt(_0x482d73(0xa7))/0xb;if(_0x5dd09e===_0x2157da)break;else _0x8fce41['push'](_0x8fce41['shift']());}catch(_0x369fd0){_0x8fce41['push'](_0x8fce41['shift']());}}}(a282_0x1dfa,0x61aa0));function a282_0x1dfa(){const _0x32a9d6=['json','Request\x20failed','AbortError','35sKuVUi','fetch','6053110AcnOTC','headers','message','2443yzOHrO','get','13175426mQxmtP','16208ulSFMW','479808lcJOBV','7422azIVOH','TypeError','includes','ms\x20后进行第\x20','5953869XwHxMD','116VCAnnT','*\x20请求失败,','ECONNRESET','2NDSFrr','content-type','statusText','name','\x20次重试...','text','502272yeqJrP'];a282_0x1dfa=function(){return _0x32a9d6;};return a282_0x1dfa();}export async function httpRequest(_0x215538,_0xf277f5={}){const _0x911a9f=a282_0x5aef,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xf277f5;let _0x400c32=null;for(let _0x4383a6=0x0;_0x4383a6<=retries;_0x4383a6++){try{const _0x30610c=new AbortController(),_0x5d9fac=setTimeout(()=>_0x30610c['abort'](),timeout),_0x3e510a=await fetch(_0x215538,{'headers':headers,'signal':_0x30610c['signal']});clearTimeout(_0x5d9fac);let _0x5492cc;const _0x12e4d1=_0x3e510a[_0x911a9f(0xa3)][_0x911a9f(0xa6)](_0x911a9f(0x97));return _0x12e4d1?.[_0x911a9f(0x90)]('application/json')?_0x5492cc=await _0x3e510a[_0x911a9f(0x9d)]():_0x5492cc=await _0x3e510a['text'](),{'ok':_0x3e510a['ok'],'status':_0x3e510a['status'],'statusText':_0x3e510a[_0x911a9f(0x98)],'data':_0x5492cc,'headers':_0x3e510a[_0x911a9f(0xa3)],'url':_0x3e510a['url'],'text':()=>_0x3e510a[_0x911a9f(0x9b)]()};}catch(_0x409b3c){_0x400c32=_0x409b3c instanceof Error?_0x409b3c:new Error(String(_0x409b3c));if(_0x4383a6===retries)break;if(shouldRetry(_0x409b3c)){console['log'](_0x911a9f(0x94)+retryDelay+_0x911a9f(0x91)+(_0x4383a6+0x1)+_0x911a9f(0x9a)),await sleep(retryDelay);continue;}else break;}}throw _0x400c32||new Error(_0x911a9f(0x9e));}function shouldRetry(_0x540579){const _0x388b84=a282_0x5aef;if(_0x540579 instanceof Error){if(_0x540579['name']===_0x388b84(0x9f))return![];if(_0x540579[_0x388b84(0x99)]===_0x388b84(0x8f)&&_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)](_0x388b84(0xa1)))return!![];if(_0x540579[_0x388b84(0xa4)]['includes'](_0x388b84(0x95)))return!![];if(_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)]('ENOTFOUND'))return![];}return![];}function sleep(_0x1f6772){return new Promise(_0x483c1a=>setTimeout(_0x483c1a,_0x1f6772));}export function validateUrl(_0x59064e){try{return new URL(_0x59064e),!![];}catch{return![];}}
1
+ (function(_0x5b66b9,_0x387327){const _0x11056b=a289_0x58c1,_0x5694f7=_0x5b66b9();while(!![]){try{const _0x1f3cf2=-parseInt(_0x11056b(0xf8))/0x1*(parseInt(_0x11056b(0xfc))/0x2)+parseInt(_0x11056b(0x105))/0x3+parseInt(_0x11056b(0x110))/0x4*(parseInt(_0x11056b(0x10e))/0x5)+parseInt(_0x11056b(0x108))/0x6+parseInt(_0x11056b(0x109))/0x7*(parseInt(_0x11056b(0x10d))/0x8)+parseInt(_0x11056b(0x103))/0x9*(-parseInt(_0x11056b(0x10b))/0xa)+parseInt(_0x11056b(0x102))/0xb*(-parseInt(_0x11056b(0xfd))/0xc);if(_0x1f3cf2===_0x387327)break;else _0x5694f7['push'](_0x5694f7['shift']());}catch(_0x1ada42){_0x5694f7['push'](_0x5694f7['shift']());}}}(a289_0x33bb,0xc73f2));export async function httpRequest(_0x4efda6,_0xfc0952={}){const _0x45a1bf=a289_0x58c1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xfc0952;let _0x584459=null;for(let _0x1de092=0x0;_0x1de092<=retries;_0x1de092++){try{const _0x2dcb0b=new AbortController(),_0x38c48e=setTimeout(()=>_0x2dcb0b[_0x45a1bf(0x100)](),timeout),_0x2a0bb4=await fetch(_0x4efda6,{'headers':headers,'signal':_0x2dcb0b[_0x45a1bf(0xfa)]});clearTimeout(_0x38c48e);let _0x2f4f20;const _0x366877=_0x2a0bb4[_0x45a1bf(0xf7)]['get']('content-type');return _0x366877?.[_0x45a1bf(0x101)](_0x45a1bf(0x104))?_0x2f4f20=await _0x2a0bb4['json']():_0x2f4f20=await _0x2a0bb4[_0x45a1bf(0x10c)](),{'ok':_0x2a0bb4['ok'],'status':_0x2a0bb4['status'],'statusText':_0x2a0bb4[_0x45a1bf(0xf5)],'data':_0x2f4f20,'headers':_0x2a0bb4[_0x45a1bf(0xf7)],'url':_0x2a0bb4[_0x45a1bf(0x106)],'text':()=>_0x2a0bb4[_0x45a1bf(0x10c)]()};}catch(_0x535424){_0x584459=_0x535424 instanceof Error?_0x535424:new Error(String(_0x535424));if(_0x1de092===retries)break;if(shouldRetry(_0x535424)){console[_0x45a1bf(0xf6)](_0x45a1bf(0x10a)+retryDelay+_0x45a1bf(0x107)+(_0x1de092+0x1)+_0x45a1bf(0x111)),await sleep(retryDelay);continue;}else break;}}throw _0x584459||new Error(_0x45a1bf(0xf4));}function a289_0x33bb(){const _0x49baf4=['51401mNeXVK','*\x20请求失败,','10CLVfME','text','856reyfuH','5WiStuJ','TypeError','4073304NhSdsI','\x20次重试...','fetch','Request\x20failed','statusText','log','headers','17oWWRyT','name','signal','AbortError','74742HPzTLa','1464cSsdtS','message','ENOTFOUND','abort','includes','115764ukBLwC','9290025gbLzHd','application/json','3584160TQqHWL','url','ms\x20后进行第\x20','4612962leKHJY'];a289_0x33bb=function(){return _0x49baf4;};return a289_0x33bb();}function shouldRetry(_0x3dfc94){const _0x14e342=a289_0x58c1;if(_0x3dfc94 instanceof Error){if(_0x3dfc94[_0x14e342(0xf9)]===_0x14e342(0xfb))return![];if(_0x3dfc94['name']===_0x14e342(0x10f)&&_0x3dfc94[_0x14e342(0xfe)]['includes'](_0x14e342(0xf3)))return!![];if(_0x3dfc94[_0x14e342(0xfe)]['includes']('ECONNRESET'))return!![];if(_0x3dfc94[_0x14e342(0xfe)][_0x14e342(0x101)](_0x14e342(0xff)))return![];}return![];}function a289_0x58c1(_0x22ddee,_0x43930){_0x22ddee=_0x22ddee-0xf3;const _0x33bb4a=a289_0x33bb();let _0x58c10f=_0x33bb4a[_0x22ddee];return _0x58c10f;}function sleep(_0x1a5b52){return new Promise(_0x5656b5=>setTimeout(_0x5656b5,_0x1a5b52));}export function validateUrl(_0x1dc8de){try{return new URL(_0x1dc8de),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a283_0x105e(){const _0x4e30de=['isRaw','12448227fvvzIv','14643TirBhv','nonInteractive','1276508DpsJWD','3drrKYo','setRawMode','stdin','2zetCfr','stdout','1121001nwcTqf','1130Dfqldm','1760gajwjz','1433448NoNsqT','10734cUrMyL','true','150938vZHgDJ'];a283_0x105e=function(){return _0x4e30de;};return a283_0x105e();}function a283_0xb70b(_0x4ccf78,_0x1f2c20){_0x4ccf78=_0x4ccf78-0xb9;const _0x105e81=a283_0x105e();let _0xb70b1d=_0x105e81[_0x4ccf78];return _0xb70b1d;}(function(_0x2b628b,_0x129edc){const _0x258956=a283_0xb70b,_0xe06aa8=_0x2b628b();while(!![]){try{const _0x531167=-parseInt(_0x258956(0xbf))/0x1*(parseInt(_0x258956(0xc8))/0x2)+parseInt(_0x258956(0xc5))/0x3*(-parseInt(_0x258956(0xc4))/0x4)+parseInt(_0x258956(0xba))/0x5*(-parseInt(_0x258956(0xbd))/0x6)+parseInt(_0x258956(0xb9))/0x7+parseInt(_0x258956(0xbc))/0x8+parseInt(_0x258956(0xc2))/0x9*(-parseInt(_0x258956(0xbb))/0xa)+parseInt(_0x258956(0xc1))/0xb;if(_0x531167===_0x129edc)break;else _0xe06aa8['push'](_0xe06aa8['shift']());}catch(_0x1f2feb){_0xe06aa8['push'](_0xe06aa8['shift']());}}}(a283_0x105e,0x4bbea));function env(_0x5e02c4){return process.env[`RABETBASE_${_0x5e02c4}`]||process.env[`LOVRABET_${_0x5e02c4}`]||undefined;}export function isNonInteractive(_0x1f35ad){const _0x5f0cfe=a283_0xb70b;return!!(_0x1f35ad[_0x5f0cfe(0xc3)]||_0x1f35ad['ci']||env('CI')===_0x5f0cfe(0xbe)||process.env.CI===_0x5f0cfe(0xbe)||!process[_0x5f0cfe(0xc9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e9027=a283_0xb70b;if(!process['stdin']['isTTY'])return![];try{const _0x42e224=process['stdin'][_0x5e9027(0xc0)];return process[_0x5e9027(0xc7)]['setRawMode'](!![]),process[_0x5e9027(0xc7)][_0x5e9027(0xc6)](_0x42e224??![]),!![];}catch{return![];}}
1
+ function a290_0x4254(){const _0x20c58e=['nonInteractive','103144ZLdKfW','1674603lXJXYt','3384800bJTasC','440405rjbgyI','94584YNDIgP','isRaw','7tGLjpU','stdin','1057242olXgku','16620Xbejpx','6iOGfDB','25NogcbH','true','setRawMode','isTTY','stdout','3586wuiEIZ'];a290_0x4254=function(){return _0x20c58e;};return a290_0x4254();}(function(_0x5a81e6,_0x25ec16){const _0x2ed683=a290_0x14bf,_0x1675fc=_0x5a81e6();while(!![]){try{const _0x47a689=parseInt(_0x2ed683(0x75))/0x1+-parseInt(_0x2ed683(0x76))/0x2+-parseInt(_0x2ed683(0x7c))/0x3*(parseInt(_0x2ed683(0x72))/0x4)+-parseInt(_0x2ed683(0x6b))/0x5*(-parseInt(_0x2ed683(0x7a))/0x6)+parseInt(_0x2ed683(0x78))/0x7*(-parseInt(_0x2ed683(0x74))/0x8)+parseInt(_0x2ed683(0x73))/0x9+-parseInt(_0x2ed683(0x7b))/0xa*(parseInt(_0x2ed683(0x70))/0xb);if(_0x47a689===_0x25ec16)break;else _0x1675fc['push'](_0x1675fc['shift']());}catch(_0x5bd942){_0x1675fc['push'](_0x1675fc['shift']());}}}(a290_0x4254,0x6c553));function a290_0x14bf(_0x36bfba,_0x15c37e){_0x36bfba=_0x36bfba-0x6b;const _0x4254d0=a290_0x4254();let _0x14bf21=_0x4254d0[_0x36bfba];return _0x14bf21;}function env(_0x551bd1){return process.env[`RABETBASE_${_0x551bd1}`]||process.env[`LOVRABET_${_0x551bd1}`]||undefined;}export function isNonInteractive(_0x11f9ba){const _0x21b31e=a290_0x14bf;return!!(_0x11f9ba[_0x21b31e(0x71)]||_0x11f9ba['ci']||env('CI')===_0x21b31e(0x6c)||process.env.CI===_0x21b31e(0x6c)||!process[_0x21b31e(0x6f)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x32a840=a290_0x14bf;if(!process[_0x32a840(0x79)][_0x32a840(0x6e)])return![];try{const _0x524037=process[_0x32a840(0x79)][_0x32a840(0x77)];return process[_0x32a840(0x79)]['setRawMode'](!![]),process[_0x32a840(0x79)][_0x32a840(0x6d)](_0x524037??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a284_0x5b7fd5=a284_0x509b;(function(_0x3cd091,_0x28d65e){const _0x373a4f=a284_0x509b,_0x1248dc=_0x3cd091();while(!![]){try{const _0x371b7a=-parseInt(_0x373a4f(0x1f2))/0x1+parseInt(_0x373a4f(0x1f5))/0x2*(parseInt(_0x373a4f(0x1df))/0x3)+parseInt(_0x373a4f(0x1e2))/0x4+parseInt(_0x373a4f(0x1e3))/0x5+-parseInt(_0x373a4f(0x1f0))/0x6*(-parseInt(_0x373a4f(0x1e9))/0x7)+parseInt(_0x373a4f(0x204))/0x8+parseInt(_0x373a4f(0x1ff))/0x9*(-parseInt(_0x373a4f(0x1de))/0xa);if(_0x371b7a===_0x28d65e)break;else _0x1248dc['push'](_0x1248dc['shift']());}catch(_0x17660e){_0x1248dc['push'](_0x1248dc['shift']());}}}(a284_0x2450,0x73fa1));function a284_0x509b(_0x2e320c,_0x5ac36d){_0x2e320c=_0x2e320c-0x1d2;const _0x24500d=a284_0x2450();let _0x509b0e=_0x24500d[_0x2e320c];return _0x509b0e;}function a284_0x2450(){const _0x4fde94=['log','details','335166IeUPGR','map','928603VslAUX','existsSync','message','1426CLeUzV','createLogger','format','writeFileSync','addColors','command','File','red','warn','success','12356829nalXKs','printf','green','setRawCommand','initWinstonLogger','247504uwWGog','combine','clear','transports','失败:\x20','utf8','rawCommand','filter','toISOString','blue','split','开始执行:\x20','yellow','mkdirSync','parse','getWinstonInstance','unknown','timestamp','currentRawCommand','Failed\x20to\x20clear\x20logs:','.lovrabet.log','logFilePath','10PghDgo','2016GIriFH','logTask','readLogs','3685032UsLumu','3654110xnEvoV','duration','setLogPath','stringify','level','info','77xdogTV','winstonLogger','error','dirname','完成:\x20'];a284_0x2450=function(){return _0x4fde94;};return a284_0x2450();}import a284_0x2d4756 from'winston';import a284_0x1c2404 from'node:fs';import a284_0x4a5ced from'node:path';class Logger{[a284_0x5b7fd5(0x1ea)];[a284_0x5b7fd5(0x1dd)];[a284_0x5b7fd5(0x1da)]='';constructor(){const _0x3da842=a284_0x5b7fd5;this[_0x3da842(0x1dd)]='';}[a284_0x5b7fd5(0x202)](_0x37d65e){const _0x11949a=a284_0x5b7fd5;this[_0x11949a(0x1da)]=_0x37d65e;}['initWinstonLogger'](){const _0x45a67a=a284_0x5b7fd5,_0x179e3f=a284_0x4a5ced[_0x45a67a(0x1ec)](this[_0x45a67a(0x1dd)]);!a284_0x1c2404[_0x45a67a(0x1f3)](_0x179e3f)&&a284_0x1c2404[_0x45a67a(0x1d5)](_0x179e3f,{'recursive':!![]});const _0x49c2f1=a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x205)](a284_0x2d4756['format'][_0x45a67a(0x1d9)](),a284_0x2d4756['format']['errors']({'stack':!![]}),a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x200)](_0x24fbf8=>{const _0x542de1=_0x45a67a,_0x47ce6c={'timestamp':_0x24fbf8[_0x542de1(0x1d9)]||new Date()[_0x542de1(0x20c)](),'level':_0x24fbf8[_0x542de1(0x1e7)]||_0x542de1(0x1e8),'command':_0x24fbf8[_0x542de1(0x1fa)]||_0x542de1(0x1d8),'rawCommand':_0x24fbf8[_0x542de1(0x20a)]||this[_0x542de1(0x1da)]||undefined,'message':_0x24fbf8['message']||'','duration':_0x24fbf8[_0x542de1(0x1e4)]||undefined,'details':_0x24fbf8[_0x542de1(0x1ef)]||undefined};return JSON[_0x542de1(0x1e6)](_0x47ce6c);}));this[_0x45a67a(0x1ea)]=a284_0x2d4756[_0x45a67a(0x1f6)]({'level':'info','format':_0x49c2f1,'transports':[new a284_0x2d4756[(_0x45a67a(0x207))][(_0x45a67a(0x1fb))]({'filename':this[_0x45a67a(0x1dd)],'level':_0x45a67a(0x1e8)})],'silent':![]}),a284_0x2d4756[_0x45a67a(0x1f9)]({'success':_0x45a67a(0x201),'error':_0x45a67a(0x1fc),'warn':_0x45a67a(0x1d4),'info':_0x45a67a(0x20d)});}[a284_0x5b7fd5(0x1e5)](_0x4ed516){const _0x4c7de1=a284_0x5b7fd5;this[_0x4c7de1(0x1dd)]=a284_0x4a5ced['join'](_0x4ed516,_0x4c7de1(0x1dc)),this[_0x4c7de1(0x1ea)]&&this['winstonLogger'][_0x4c7de1(0x206)](),this[_0x4c7de1(0x203)]();}[a284_0x5b7fd5(0x1e8)](_0x5a243f,_0x2aef7b,_0xc60bb4){const _0x74735c=a284_0x5b7fd5;if(!this[_0x74735c(0x1dd)]||!this[_0x74735c(0x1ea)])return;this[_0x74735c(0x1ea)][_0x74735c(0x1e8)](_0x2aef7b,{'command':_0x5a243f,'details':_0xc60bb4});}[a284_0x5b7fd5(0x1fe)](_0x35fcb7,_0x2c2600,_0x8ae140,_0x29273d){const _0x5d3bca=a284_0x5b7fd5;if(!this[_0x5d3bca(0x1dd)]||!this[_0x5d3bca(0x1ea)])return;this[_0x5d3bca(0x1ea)][_0x5d3bca(0x1ee)](_0x5d3bca(0x1e8),_0x2c2600,{'level':_0x5d3bca(0x1fe),'command':_0x35fcb7,'duration':_0x8ae140,'details':_0x29273d});}[a284_0x5b7fd5(0x1eb)](_0x67ab0c,_0x33259b,_0x30a97e){const _0x12b077=a284_0x5b7fd5;if(!this[_0x12b077(0x1dd)]||!this[_0x12b077(0x1ea)])return;this[_0x12b077(0x1ea)][_0x12b077(0x1eb)](_0x33259b,{'command':_0x67ab0c,'details':_0x30a97e});}['warn'](_0x370de9,_0x489305,_0xb3caa4){const _0x5c0cc5=a284_0x5b7fd5;if(!this[_0x5c0cc5(0x1dd)]||!this[_0x5c0cc5(0x1ea)])return;this[_0x5c0cc5(0x1ea)][_0x5c0cc5(0x1fd)](_0x489305,{'command':_0x370de9,'details':_0xb3caa4});}async[a284_0x5b7fd5(0x1e0)](_0x106a87,_0x21d90f,_0x4579f8){const _0x5d4250=a284_0x5b7fd5,_0x2aeb3f=Date['now']();this[_0x5d4250(0x1e8)](_0x106a87,_0x5d4250(0x1d3)+_0x21d90f);try{const _0x3c3be7=await _0x4579f8(),_0x506d90=Date['now']()-_0x2aeb3f;return this['success'](_0x106a87,_0x5d4250(0x1ed)+_0x21d90f,_0x506d90),_0x3c3be7;}catch(_0x4374c0){const _0x4f52b2=Date['now']()-_0x2aeb3f;this[_0x5d4250(0x1eb)](_0x106a87,_0x5d4250(0x208)+_0x21d90f,{'error':_0x4374c0 instanceof Error?_0x4374c0[_0x5d4250(0x1f4)]:String(_0x4374c0),'duration':_0x4f52b2});throw _0x4374c0;}}[a284_0x5b7fd5(0x1e1)](){const _0x28f6f1=a284_0x5b7fd5;try{if(!a284_0x1c2404['existsSync'](this['logFilePath']))return[];const _0x3408dd=a284_0x1c2404['readFileSync'](this[_0x28f6f1(0x1dd)],_0x28f6f1(0x209));return _0x3408dd[_0x28f6f1(0x1d2)]('\x0a')[_0x28f6f1(0x20b)](_0x14a4db=>_0x14a4db['trim']())[_0x28f6f1(0x1f1)](_0x3fc45d=>JSON[_0x28f6f1(0x1d6)](_0x3fc45d));}catch(_0x1064d1){return console['warn']('Failed\x20to\x20read\x20logs:',_0x1064d1),[];}}['clearLogs'](){const _0x6d1944=a284_0x5b7fd5;try{a284_0x1c2404['existsSync'](this['logFilePath'])&&a284_0x1c2404[_0x6d1944(0x1f8)](this[_0x6d1944(0x1dd)],'',_0x6d1944(0x209));}catch(_0x4aced1){console[_0x6d1944(0x1fd)](_0x6d1944(0x1db),_0x4aced1);}}[a284_0x5b7fd5(0x1d7)](){const _0x2a4854=a284_0x5b7fd5;return this[_0x2a4854(0x1ea)];}}export const logger=new Logger();
1
+ function a291_0x3f45(_0x31c20d,_0x199de0){_0x31c20d=_0x31c20d-0x15c;const _0x17a9f2=a291_0x17a9();let _0x3f459e=_0x17a9f2[_0x31c20d];return _0x3f459e;}const a291_0x56eca3=a291_0x3f45;(function(_0x41d85f,_0x190888){const _0x50895f=a291_0x3f45,_0x4d1d4b=_0x41d85f();while(!![]){try{const _0x58ea77=parseInt(_0x50895f(0x167))/0x1*(-parseInt(_0x50895f(0x17d))/0x2)+parseInt(_0x50895f(0x17f))/0x3+parseInt(_0x50895f(0x18b))/0x4+parseInt(_0x50895f(0x15f))/0x5*(-parseInt(_0x50895f(0x165))/0x6)+parseInt(_0x50895f(0x180))/0x7+-parseInt(_0x50895f(0x174))/0x8+-parseInt(_0x50895f(0x16e))/0x9*(-parseInt(_0x50895f(0x190))/0xa);if(_0x58ea77===_0x190888)break;else _0x4d1d4b['push'](_0x4d1d4b['shift']());}catch(_0x433e8b){_0x4d1d4b['push'](_0x4d1d4b['shift']());}}}(a291_0x17a9,0x66dea));import a291_0x4b9f0f from'winston';import a291_0x533a86 from'node:fs';import a291_0x3d9fef from'node:path';class Logger{[a291_0x56eca3(0x15d)];[a291_0x56eca3(0x189)];[a291_0x56eca3(0x183)]='';constructor(){const _0x7ab247=a291_0x56eca3;this[_0x7ab247(0x189)]='';}[a291_0x56eca3(0x175)](_0x1e9f2c){const _0x5917a1=a291_0x56eca3;this[_0x5917a1(0x183)]=_0x1e9f2c;}[a291_0x56eca3(0x170)](){const _0x3f4069=a291_0x56eca3,_0x31e3d7=a291_0x3d9fef['dirname'](this[_0x3f4069(0x189)]);!a291_0x533a86[_0x3f4069(0x173)](_0x31e3d7)&&a291_0x533a86[_0x3f4069(0x191)](_0x31e3d7,{'recursive':!![]});const _0x3b3f5f=a291_0x4b9f0f[_0x3f4069(0x166)][_0x3f4069(0x17e)](a291_0x4b9f0f[_0x3f4069(0x166)][_0x3f4069(0x177)](),a291_0x4b9f0f['format'][_0x3f4069(0x182)]({'stack':!![]}),a291_0x4b9f0f['format'][_0x3f4069(0x162)](_0x39d605=>{const _0x1c5ca1=_0x3f4069,_0x1d4f2f={'timestamp':_0x39d605[_0x1c5ca1(0x177)]||new Date()['toISOString'](),'level':_0x39d605['level']||'info','command':_0x39d605['command']||_0x1c5ca1(0x18f),'rawCommand':_0x39d605[_0x1c5ca1(0x15c)]||this['currentRawCommand']||undefined,'message':_0x39d605[_0x1c5ca1(0x16a)]||'','duration':_0x39d605[_0x1c5ca1(0x161)]||undefined,'details':_0x39d605[_0x1c5ca1(0x171)]||undefined};return JSON[_0x1c5ca1(0x172)](_0x1d4f2f);}));this[_0x3f4069(0x15d)]=a291_0x4b9f0f[_0x3f4069(0x18a)]({'level':_0x3f4069(0x169),'format':_0x3b3f5f,'transports':[new a291_0x4b9f0f[(_0x3f4069(0x16c))][(_0x3f4069(0x164))]({'filename':this[_0x3f4069(0x189)],'level':'info'})],'silent':![]}),a291_0x4b9f0f[_0x3f4069(0x17c)]({'success':'green','error':_0x3f4069(0x184),'warn':'yellow','info':'blue'});}[a291_0x56eca3(0x16f)](_0x40206d){const _0x1b7211=a291_0x56eca3;this[_0x1b7211(0x189)]=a291_0x3d9fef[_0x1b7211(0x185)](_0x40206d,_0x1b7211(0x160)),this[_0x1b7211(0x15d)]&&this['winstonLogger']['clear'](),this[_0x1b7211(0x170)]();}[a291_0x56eca3(0x169)](_0x23f6f6,_0x1e489b,_0x5c347f){const _0x51c6bf=a291_0x56eca3;if(!this[_0x51c6bf(0x189)]||!this[_0x51c6bf(0x15d)])return;this[_0x51c6bf(0x15d)]['info'](_0x1e489b,{'command':_0x23f6f6,'details':_0x5c347f});}['success'](_0x3d896e,_0x49b675,_0xa0266b,_0x15a3a3){const _0x355c05=a291_0x56eca3;if(!this[_0x355c05(0x189)]||!this[_0x355c05(0x15d)])return;this[_0x355c05(0x15d)]['log'](_0x355c05(0x169),_0x49b675,{'level':_0x355c05(0x15e),'command':_0x3d896e,'duration':_0xa0266b,'details':_0x15a3a3});}[a291_0x56eca3(0x186)](_0x3aa8aa,_0x1e79e6,_0x27f82f){const _0x2c5723=a291_0x56eca3;if(!this['logFilePath']||!this[_0x2c5723(0x15d)])return;this[_0x2c5723(0x15d)]['error'](_0x1e79e6,{'command':_0x3aa8aa,'details':_0x27f82f});}[a291_0x56eca3(0x179)](_0x2cfece,_0x3bdb71,_0x238a49){const _0x5e1515=a291_0x56eca3;if(!this[_0x5e1515(0x189)]||!this[_0x5e1515(0x15d)])return;this['winstonLogger'][_0x5e1515(0x179)](_0x3bdb71,{'command':_0x2cfece,'details':_0x238a49});}async['logTask'](_0x40d839,_0x24ca29,_0x5f5b5d){const _0x1c7cbd=a291_0x56eca3,_0x365681=Date[_0x1c7cbd(0x17b)]();this['info'](_0x40d839,'开始执行:\x20'+_0x24ca29);try{const _0x28275b=await _0x5f5b5d(),_0xcf68c4=Date['now']()-_0x365681;return this[_0x1c7cbd(0x15e)](_0x40d839,_0x1c7cbd(0x178)+_0x24ca29,_0xcf68c4),_0x28275b;}catch(_0x49bd7b){const _0x5b148c=Date[_0x1c7cbd(0x17b)]()-_0x365681;this[_0x1c7cbd(0x186)](_0x40d839,_0x1c7cbd(0x181)+_0x24ca29,{'error':_0x49bd7b instanceof Error?_0x49bd7b[_0x1c7cbd(0x16a)]:String(_0x49bd7b),'duration':_0x5b148c});throw _0x49bd7b;}}[a291_0x56eca3(0x187)](){const _0x29dd97=a291_0x56eca3;try{if(!a291_0x533a86['existsSync'](this[_0x29dd97(0x189)]))return[];const _0x208cac=a291_0x533a86['readFileSync'](this[_0x29dd97(0x189)],_0x29dd97(0x188));return _0x208cac[_0x29dd97(0x18d)]('\x0a')[_0x29dd97(0x192)](_0x41f444=>_0x41f444[_0x29dd97(0x18e)]())[_0x29dd97(0x16d)](_0x2f7fea=>JSON[_0x29dd97(0x168)](_0x2f7fea));}catch(_0x8985bf){return console['warn'](_0x29dd97(0x16b),_0x8985bf),[];}}[a291_0x56eca3(0x176)](){const _0x33bde9=a291_0x56eca3;try{a291_0x533a86[_0x33bde9(0x173)](this['logFilePath'])&&a291_0x533a86[_0x33bde9(0x17a)](this['logFilePath'],'','utf8');}catch(_0x162838){console['warn'](_0x33bde9(0x18c),_0x162838);}}[a291_0x56eca3(0x163)](){const _0x5b6645=a291_0x56eca3;return this[_0x5b6645(0x15d)];}}function a291_0x17a9(){const _0x507192=['duration','printf','getWinstonInstance','File','3926100UpLkbx','format','1lsqGme','parse','info','message','Failed\x20to\x20read\x20logs:','transports','map','27xrRWzM','setLogPath','initWinstonLogger','details','stringify','existsSync','1014808pBLNBN','setRawCommand','clearLogs','timestamp','完成:\x20','warn','writeFileSync','now','addColors','1327944ZhBVzx','combine','2143623lINoFd','821156xeApPP','失败:\x20','errors','currentRawCommand','red','join','error','readLogs','utf8','logFilePath','createLogger','1275548cKOsGH','Failed\x20to\x20clear\x20logs:','split','trim','unknown','2385970FqFMKs','mkdirSync','filter','rawCommand','winstonLogger','success','5riMCqY','.lovrabet.log'];a291_0x17a9=function(){return _0x507192;};return a291_0x17a9();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a285_0x1b94(_0x212295,_0x64bd70){_0x212295=_0x212295-0x181;const _0x33ca71=a285_0x33ca();let _0x1b9447=_0x33ca71[_0x212295];return _0x1b9447;}(function(_0x25212c,_0x24b0b8){const _0x7d68a6=a285_0x1b94,_0x436d1f=_0x25212c();while(!![]){try{const _0x4094c3=-parseInt(_0x7d68a6(0x188))/0x1*(-parseInt(_0x7d68a6(0x187))/0x2)+parseInt(_0x7d68a6(0x18e))/0x3*(parseInt(_0x7d68a6(0x184))/0x4)+parseInt(_0x7d68a6(0x185))/0x5+parseInt(_0x7d68a6(0x182))/0x6+parseInt(_0x7d68a6(0x181))/0x7+-parseInt(_0x7d68a6(0x18c))/0x8*(parseInt(_0x7d68a6(0x183))/0x9)+-parseInt(_0x7d68a6(0x18a))/0xa;if(_0x4094c3===_0x24b0b8)break;else _0x436d1f['push'](_0x436d1f['shift']());}catch(_0x197c84){_0x436d1f['push'](_0x436d1f['shift']());}}}(a285_0x33ca,0xa50e8));function a285_0x33ca(){const _0x54ebf5=['object','270tGJcPa','8821INPGwG','validation','21073640MdgMpA','Invalid\x20JSON\x20for\x20--params:\x20','8NQzrJR','parse','12GTtfpr','4734268MWvgys','6152190jFNdfm','12144753uVoiEl','108844dTdsEX','5657425waCvtl'];a285_0x33ca=function(){return _0x54ebf5;};return a285_0x33ca();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x35da7b){const _0x3c62f5=a285_0x1b94;if(!_0x35da7b)return undefined;let _0x44c9d4;try{_0x44c9d4=JSON[_0x3c62f5(0x18d)](_0x35da7b);}catch{throw CliErrors[_0x3c62f5(0x189)](_0x3c62f5(0x18b)+_0x35da7b);}if(!_0x44c9d4||typeof _0x44c9d4!==_0x3c62f5(0x186)||Array['isArray'](_0x44c9d4))throw CliErrors[_0x3c62f5(0x189)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x44c9d4;}
1
+ function a292_0x1009(_0x1ffdb4,_0x18ffef){_0x1ffdb4=_0x1ffdb4-0xc2;const _0x16c938=a292_0x16c9();let _0x1009e1=_0x16c938[_0x1ffdb4];return _0x1009e1;}(function(_0x2b4f2f,_0x845ec2){const _0x329fc7=a292_0x1009,_0x2c426f=_0x2b4f2f();while(!![]){try{const _0x587c67=-parseInt(_0x329fc7(0xcf))/0x1+-parseInt(_0x329fc7(0xc2))/0x2*(-parseInt(_0x329fc7(0xc4))/0x3)+-parseInt(_0x329fc7(0xc3))/0x4*(parseInt(_0x329fc7(0xc7))/0x5)+-parseInt(_0x329fc7(0xcd))/0x6+parseInt(_0x329fc7(0xc6))/0x7+-parseInt(_0x329fc7(0xcb))/0x8*(-parseInt(_0x329fc7(0xc9))/0x9)+-parseInt(_0x329fc7(0xc5))/0xa;if(_0x587c67===_0x845ec2)break;else _0x2c426f['push'](_0x2c426f['shift']());}catch(_0x1ea0e7){_0x2c426f['push'](_0x2c426f['shift']());}}}(a292_0x16c9,0xac7b1));import{CliErrors}from'../errors.js';function a292_0x16c9(){const _0x4e7459=['342744dDPPvN','isArray','827719dmJSYP','10KrGyxR','8956QzpsOh','808701XfrqHx','3738590cFEYdD','4331754ExaFzT','555EnZQok','--params\x20must\x20be\x20a\x20JSON\x20object','9qitwXn','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1976440pcHRjZ','object'];a292_0x16c9=function(){return _0x4e7459;};return a292_0x16c9();}export function parseJsonParams(_0x45d420){const _0xff701a=a292_0x1009;if(!_0x45d420)return undefined;let _0xa7c20e;try{_0xa7c20e=JSON['parse'](_0x45d420);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x45d420);}if(!_0xa7c20e||typeof _0xa7c20e!==_0xff701a(0xcc)||Array[_0xff701a(0xce)](_0xa7c20e))throw CliErrors['validation'](_0xff701a(0xc8),_0xff701a(0xca));return _0xa7c20e;}
@@ -1 +1 @@
1
- const a286_0x7641d6=a286_0x4ff6;(function(_0x5d8b41,_0x15e429){const _0x4c7ca6=a286_0x4ff6,_0x1ce83d=_0x5d8b41();while(!![]){try{const _0x4872ba=-parseInt(_0x4c7ca6(0xe2))/0x1*(parseInt(_0x4c7ca6(0xec))/0x2)+parseInt(_0x4c7ca6(0xe5))/0x3*(parseInt(_0x4c7ca6(0xe4))/0x4)+-parseInt(_0x4c7ca6(0xea))/0x5*(parseInt(_0x4c7ca6(0xeb))/0x6)+-parseInt(_0x4c7ca6(0xe6))/0x7+-parseInt(_0x4c7ca6(0xe9))/0x8*(parseInt(_0x4c7ca6(0xe7))/0x9)+parseInt(_0x4c7ca6(0xdf))/0xa*(-parseInt(_0x4c7ca6(0xe1))/0xb)+parseInt(_0x4c7ca6(0xe8))/0xc*(parseInt(_0x4c7ca6(0xe3))/0xd);if(_0x4872ba===_0x15e429)break;else _0x1ce83d['push'](_0x1ce83d['shift']());}catch(_0x473d3d){_0x1ce83d['push'](_0x1ce83d['shift']());}}}(a286_0x21c1,0x22ef0));export const isWindows=process[a286_0x7641d6(0xe0)]==='win32';function a286_0x4ff6(_0x5ac766,_0x12e8cf){_0x5ac766=_0x5ac766-0xdf;const _0x21c153=a286_0x21c1();let _0x4ff6c8=_0x21c153[_0x5ac766];return _0x4ff6c8;}export function resolveNpmBin(_0x1e4cb8){return isWindows?_0x1e4cb8+'.cmd':_0x1e4cb8;}function a286_0x21c1(){const _0x40fd7d=['66lsYTTX','459207aphjlh','2135592KPeBHv','24nBkBym','8kHPOuo','3665whFFxx','1314aCYYNd','2CQGNod','10phbjdF','platform','618937IiTeeU','10271rgGSjC','3707392hbgjCW','18668XqwvHu'];a286_0x21c1=function(){return _0x40fd7d;};return a286_0x21c1();}
1
+ function a293_0x2f5d(){const _0xd4837e=['141332orFliR','11sTpzWa','144bTARJA','27DeuTGh','win32','1867540bpMZMo','1390779MwslVk','371ZQEMsA','1dnRGit','925508jAzCSY','3540580FZGnfI','1208408yNoGPD','platform'];a293_0x2f5d=function(){return _0xd4837e;};return a293_0x2f5d();}function a293_0x9e56(_0x557b7e,_0x527857){_0x557b7e=_0x557b7e-0x1db;const _0x2f5d38=a293_0x2f5d();let _0x9e5620=_0x2f5d38[_0x557b7e];return _0x9e5620;}const a293_0x42470c=a293_0x9e56;(function(_0xb4c650,_0x42906f){const _0x4abbc7=a293_0x9e56,_0x1643df=_0xb4c650();while(!![]){try{const _0x32d541=-parseInt(_0x4abbc7(0x1e1))/0x1*(parseInt(_0x4abbc7(0x1e2))/0x2)+parseInt(_0x4abbc7(0x1dc))/0x3*(-parseInt(_0x4abbc7(0x1e6))/0x4)+parseInt(_0x4abbc7(0x1de))/0x5+parseInt(_0x4abbc7(0x1db))/0x6*(parseInt(_0x4abbc7(0x1e0))/0x7)+parseInt(_0x4abbc7(0x1e4))/0x8+parseInt(_0x4abbc7(0x1df))/0x9+-parseInt(_0x4abbc7(0x1e3))/0xa*(-parseInt(_0x4abbc7(0x1e7))/0xb);if(_0x32d541===_0x42906f)break;else _0x1643df['push'](_0x1643df['shift']());}catch(_0x4dcc91){_0x1643df['push'](_0x1643df['shift']());}}}(a293_0x2f5d,0x3dee5));export const isWindows=process[a293_0x42470c(0x1e5)]===a293_0x42470c(0x1dd);export function resolveNpmBin(_0x530130){return isWindows?_0x530130+'.cmd':_0x530130;}
@@ -1 +1 @@
1
- const a287_0xd8a3e4=a287_0x591a;(function(_0x220538,_0x2edb82){const _0x4d3d2e=a287_0x591a,_0x47982b=_0x220538();while(!![]){try{const _0x5a1116=-parseInt(_0x4d3d2e(0x126))/0x1+-parseInt(_0x4d3d2e(0x118))/0x2*(parseInt(_0x4d3d2e(0x116))/0x3)+parseInt(_0x4d3d2e(0x115))/0x4+-parseInt(_0x4d3d2e(0x121))/0x5*(parseInt(_0x4d3d2e(0x112))/0x6)+parseInt(_0x4d3d2e(0x124))/0x7*(parseInt(_0x4d3d2e(0x11b))/0x8)+parseInt(_0x4d3d2e(0x127))/0x9+parseInt(_0x4d3d2e(0x122))/0xa;if(_0x5a1116===_0x2edb82)break;else _0x47982b['push'](_0x47982b['shift']());}catch(_0x2e5e08){_0x47982b['push'](_0x47982b['shift']());}}}(a287_0x5297,0xcbf3d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x332262=a287_0x591a,_0x1265c5=getTemplateBaseUrl();return _0x1265c5+_0x332262(0x123);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0xd8a3e4(0x128));export async function fetchRulesFromCDN(){const _0x377a3a=a287_0xd8a3e4,_0x29c648=getRulesCdnUrl(),_0x54aadc=await fetch(_0x29c648,{'headers':{'Accept':_0x377a3a(0x12a)}});if(!_0x54aadc['ok'])throw new Error(_0x377a3a(0x120)+_0x54aadc[_0x377a3a(0x119)]+'\x20'+_0x54aadc['statusText']);const _0x565bf1=await _0x54aadc['json']();if(!_0x565bf1[_0x377a3a(0x113)]||typeof _0x565bf1[_0x377a3a(0x113)]!==_0x377a3a(0x11f))throw new Error(_0x377a3a(0x117));return _0x565bf1;}function a287_0x591a(_0x124e5d,_0x5c1538){_0x124e5d=_0x124e5d-0x112;const _0x529738=a287_0x5297();let _0x591a79=_0x529738[_0x124e5d];return _0x591a79;}export async function getRulesContent(){const _0x4a56f3=a287_0xd8a3e4;try{const _0xfe1af7=await fetchRulesFromCDN();return _0xfe1af7[_0x4a56f3(0x113)];}catch{return readLocalTemplate();}}function a287_0x5297(){const _0xa6e396=['CDN\x20请求失败:\x20','5iqMBxh','25622670nFydIX','/rules/rules.json','94087AojKXm','.cursor/rules','1445377OCKNSJ','5102100UcaKIg','../../templates/rules/lovrabet_rules.mdc.tpl','catch','application/json','6745818oAKUwu','content','本地模板文件不存在:\x20','1512692ujKwst','753RbpPjC','CDN\x20返回数据格式错误','3064cPUuvV','status','utf-8','168vDHKRD','lovrabet_rules.mdc','lastUpdated','agents.md','string'];a287_0x5297=function(){return _0xa6e396;};return a287_0x5297();}export function readLocalTemplate(){const _0x251a82=a287_0xd8a3e4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251a82(0x11a));throw new Error(_0x251a82(0x114)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x21dce2){const _0x36cde2=a287_0xd8a3e4,_0x54518f=await fetchRulesFromCDN()[_0x36cde2(0x129)](()=>null);let _0x2a5130;_0x54518f?(_0x2a5130=_0x54518f['content'],_0x54518f['lastUpdated']&&(_0x2a5130=appendUpdateTime(_0x2a5130,_0x54518f[_0x36cde2(0x11d)]))):_0x2a5130=readLocalTemplate();const _0x3f486e=dirname(_0x21dce2);!existsSync(_0x3f486e)&&mkdirSync(_0x3f486e,{'recursive':!![]}),writeFileSync(_0x21dce2,_0x2a5130,_0x36cde2(0x11a));}export async function copyRulesToCursor(_0x4b1a70){const _0x54b90f=a287_0xd8a3e4,_0x4db0f2=join(_0x4b1a70,_0x54b90f(0x125)),_0x585177=join(_0x4db0f2,_0x54b90f(0x11c));if(existsSync(_0x585177))return![];return await writeRulesFile(_0x585177),!![];}export async function copyRulesToAgentsMd(_0x3d9985){const _0x188366=a287_0xd8a3e4,_0x138006=join(_0x3d9985,_0x188366(0x11e));if(existsSync(_0x138006))return![];return await writeRulesFile(_0x138006),!![];}
1
+ (function(_0x1bba52,_0x1f94dc){const _0x2e37af=a294_0x3476,_0x2f235c=_0x1bba52();while(!![]){try{const _0x4e92b1=-parseInt(_0x2e37af(0x190))/0x1+parseInt(_0x2e37af(0x18c))/0x2*(parseInt(_0x2e37af(0x17c))/0x3)+-parseInt(_0x2e37af(0x191))/0x4*(parseInt(_0x2e37af(0x18a))/0x5)+-parseInt(_0x2e37af(0x18f))/0x6+parseInt(_0x2e37af(0x183))/0x7*(parseInt(_0x2e37af(0x17b))/0x8)+-parseInt(_0x2e37af(0x189))/0x9+parseInt(_0x2e37af(0x185))/0xa;if(_0x4e92b1===_0x1f94dc)break;else _0x2f235c['push'](_0x2f235c['shift']());}catch(_0x853ca2){_0x2f235c['push'](_0x2f235c['shift']());}}}(a294_0x3dad,0x89b50));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a294_0x3476(_0x26a4f2,_0x1007c9){_0x26a4f2=_0x26a4f2-0x17b;const _0x3dadcf=a294_0x3dad();let _0x3476e9=_0x3dadcf[_0x26a4f2];return _0x3476e9;}function a294_0x3dad(){const _0x439566=['5632596gztKTK','34115DjNkYY','catch','6CVpOgA','statusText','status','3373926iugWfU','161372tsAOSy','612BGyZgG','1555304saEbJa','673383bsELne','.cursor/rules','CDN\x20返回数据格式错误','utf-8','本地模板文件不存在:\x20','lovrabet_rules.mdc','CDN\x20请求失败:\x20','21FXquuk','/rules/rules.json','17008820tNFSuw','content','agents.md','string'];a294_0x3dad=function(){return _0x439566;};return a294_0x3dad();}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x32e504=a294_0x3476,_0x428ba8=getTemplateBaseUrl();return _0x428ba8+_0x32e504(0x184);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x343442=a294_0x3476,_0xe4a0cd=getRulesCdnUrl(),_0x59c564=await fetch(_0xe4a0cd,{'headers':{'Accept':'application/json'}});if(!_0x59c564['ok'])throw new Error(_0x343442(0x182)+_0x59c564[_0x343442(0x18e)]+'\x20'+_0x59c564[_0x343442(0x18d)]);const _0x17f39f=await _0x59c564['json']();if(!_0x17f39f[_0x343442(0x186)]||typeof _0x17f39f[_0x343442(0x186)]!==_0x343442(0x188))throw new Error(_0x343442(0x17e));return _0x17f39f;}export async function getRulesContent(){try{const _0x549f1c=await fetchRulesFromCDN();return _0x549f1c['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x158b7f=a294_0x3476;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x158b7f(0x17f));throw new Error(_0x158b7f(0x180)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x2d3510){const _0x1ba91=a294_0x3476,_0x4ee4ee=await fetchRulesFromCDN()[_0x1ba91(0x18b)](()=>null);let _0x31481c;_0x4ee4ee?(_0x31481c=_0x4ee4ee[_0x1ba91(0x186)],_0x4ee4ee['lastUpdated']&&(_0x31481c=appendUpdateTime(_0x31481c,_0x4ee4ee['lastUpdated']))):_0x31481c=readLocalTemplate();const _0x15bc8b=dirname(_0x2d3510);!existsSync(_0x15bc8b)&&mkdirSync(_0x15bc8b,{'recursive':!![]}),writeFileSync(_0x2d3510,_0x31481c,'utf-8');}export async function copyRulesToCursor(_0x45cd0b){const _0x90c3d6=a294_0x3476,_0x5b8c36=join(_0x45cd0b,_0x90c3d6(0x17d)),_0x1044b1=join(_0x5b8c36,_0x90c3d6(0x181));if(existsSync(_0x1044b1))return![];return await writeRulesFile(_0x1044b1),!![];}export async function copyRulesToAgentsMd(_0x5724c1){const _0x3fbc76=a294_0x3476,_0x1a7165=join(_0x5724c1,_0x3fbc76(0x187));if(existsSync(_0x1a7165))return![];return await writeRulesFile(_0x1a7165),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xe7ab60){return new Promise(_0x40c9ba=>setTimeout(_0x40c9ba,_0xe7ab60));}
1
+ export function sleep(_0x50c954){return new Promise(_0x155510=>setTimeout(_0x155510,_0x50c954));}
@@ -1 +1 @@
1
- const a289_0x50b144=a289_0x49c6;(function(_0x35f82b,_0x5c466f){const _0x584d26=a289_0x49c6,_0x1c3e66=_0x35f82b();while(!![]){try{const _0x2446e6=-parseInt(_0x584d26(0x14e))/0x1+parseInt(_0x584d26(0x157))/0x2+-parseInt(_0x584d26(0x155))/0x3*(parseInt(_0x584d26(0x14f))/0x4)+parseInt(_0x584d26(0x14a))/0x5+parseInt(_0x584d26(0x178))/0x6*(-parseInt(_0x584d26(0x145))/0x7)+parseInt(_0x584d26(0x144))/0x8+-parseInt(_0x584d26(0x171))/0x9*(-parseInt(_0x584d26(0x16b))/0xa);if(_0x2446e6===_0x5c466f)break;else _0x1c3e66['push'](_0x1c3e66['shift']());}catch(_0x2ec370){_0x1c3e66['push'](_0x1c3e66['shift']());}}}(a289_0x4384,0x7074e));import a289_0x639c0b from'node:fs';import a289_0x268e29 from'node:path';function a289_0x49c6(_0x2a7add,_0x114c9a){_0x2a7add=_0x2a7add-0x13d;const _0x438401=a289_0x4384();let _0x49c636=_0x438401[_0x2a7add];return _0x49c636;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5d9142){const _0x2babcf=a289_0x49c6;return String(_0x5d9142)[_0x2babcf(0x174)](0x2,'0');}static[a289_0x50b144(0x172)](_0x6974b2){const _0x44f1c6=a289_0x50b144,_0x1c2197=_0x6974b2[_0x44f1c6(0x143)](),_0x436549=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x149)]()+0x1),_0x4a49d1=this[_0x44f1c6(0x17d)](_0x6974b2[_0x44f1c6(0x16d)]()),_0xbecdad=this[_0x44f1c6(0x17d)](_0x6974b2['getHours']()),_0x47de73=this['pad'](_0x6974b2[_0x44f1c6(0x151)]()),_0x4b81b0=this[_0x44f1c6(0x17d)](_0x6974b2['getSeconds']());return{'createdAt':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1+'\x20'+_0xbecdad+':'+_0x47de73+':'+_0x4b81b0,'createdDate':_0x1c2197+'-'+_0x436549+'-'+_0x4a49d1,'createdTime':_0xbecdad+':'+_0x47de73+':'+_0x4b81b0};}static[a289_0x50b144(0x160)](_0x523534){const _0xe45648=a289_0x50b144,_0x309d32=_0x523534['split']('/')[_0xe45648(0x159)]()||_0x523534;return _0x309d32[_0xe45648(0x165)]('-')[_0xe45648(0x141)](_0x45597e=>_0x45597e[_0xe45648(0x16a)](0x0)[_0xe45648(0x17b)]()+_0x45597e[_0xe45648(0x15b)](0x1)[_0xe45648(0x175)]())[_0xe45648(0x169)]('');}static[a289_0x50b144(0x176)](_0xa8035f){const _0x485e49=a289_0x50b144,_0x49f4ff=_0xa8035f[_0x485e49(0x165)]('/')[_0x485e49(0x159)]()||_0xa8035f;return _0x49f4ff[_0x485e49(0x165)]('-')['map'](_0x21cfb0=>_0x21cfb0[_0x485e49(0x16a)](0x0)[_0x485e49(0x17b)]()+_0x21cfb0[_0x485e49(0x15b)](0x1)['toLowerCase']())[_0x485e49(0x169)]('\x20');}static[a289_0x50b144(0x182)](_0xedaf81,_0x4cc150,_0x56115d){const _0x3a7673=a289_0x50b144,_0x379ecb=this[_0x3a7673(0x160)](_0x4cc150),_0x34a68e=this[_0x3a7673(0x176)](_0x4cc150),{createdAt:_0x49f719,createdDate:_0x210c2b,createdTime:_0x1789e1}=this[_0x3a7673(0x172)](new Date());let _0x1180f0=_0xedaf81[_0x3a7673(0x140)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a7673(0x140)](/\{ComponentName\}/g,_0x379ecb)[_0x3a7673(0x140)](/\{DisplayTitle\}/g,_0x34a68e)[_0x3a7673(0x140)](/\{PageName\}/g,_0x4cc150)[_0x3a7673(0x140)](/\{TemplateName\}/g,_0x56115d)[_0x3a7673(0x140)](/\{CreatedAt\}/g,_0x49f719)[_0x3a7673(0x140)](/\{CreatedDate\}/g,_0x210c2b)[_0x3a7673(0x140)](/\{CreatedTime\}/g,_0x1789e1);return _0x1180f0;}static['replaceApiContent'](_0x23a784,_0x516ca6,_0x135944,_0xbdcf0a,_0x131ac9,_0x590434,_0x194656,_0x4db443){const _0x11a016=a289_0x50b144,_0x172910=new Date(),_0x4b938e=_0x172910[_0x11a016(0x154)](),_0x33c558=_0x135944['map'](_0x129d85=>{const _0x4e8e2e=_0x11a016,_0x3232cc=[_0x4e8e2e(0x173)+_0x129d85[_0x4e8e2e(0x147)]+'\x22',_0x4e8e2e(0x15f)+_0x129d85[_0x4e8e2e(0x16e)]+'\x22',_0x4e8e2e(0x187)+_0x129d85[_0x4e8e2e(0x142)]+'\x22'];return _0x129d85[_0x4e8e2e(0x150)]&&_0x3232cc[_0x4e8e2e(0x153)](_0x4e8e2e(0x13e)+_0x129d85[_0x4e8e2e(0x150)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3232cc[_0x4e8e2e(0x169)](',\x20')+_0x4e8e2e(0x180);})[_0x11a016(0x169)](''),_0x23590b=_0xbdcf0a||_0x135944[0x0]?.[_0x11a016(0x150)]||_0x11a016(0x148);let _0x5f2d94=_0x23a784[_0x11a016(0x140)](/\{AppCode\}/g,_0x516ca6)['replace'](/\{ModelConfigs\}/g,_0x33c558)[_0x11a016(0x140)](/\{ExampleModelName\}/g,_0x23590b)[_0x11a016(0x140)](/\{ApiFileName\}/g,_0x131ac9||_0x11a016(0x168))[_0x11a016(0x140)](/\{ConfigName\}/g,_0x590434||_0x11a016(0x184))[_0x11a016(0x140)](/\{ClientConfigParam\}/g,_0x194656||'')['replace'](/\{VarPrefix\}/g,_0x4db443||_0x11a016(0x15d))[_0x11a016(0x140)](/\{CreatedAt\}/g,_0x4b938e);return _0x5f2d94;}static async[a289_0x50b144(0x163)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137,_0x25c2f1=!![]){const _0x5a07fc=a289_0x50b144,_0x29b52e=Date[_0x5a07fc(0x156)]();try{_0x25c2f1&&logger['info']('template',_0x5a07fc(0x162),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137});await a289_0x639c0b[_0x5a07fc(0x17a)][_0x5a07fc(0x15c)](_0x400ff9,{'recursive':!![]}),await this[_0x5a07fc(0x14d)](_0x2c9b0b,_0x400ff9,_0x10184d,_0x318137);if(_0x25c2f1){const _0x241011=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x152)]('template',_0x5a07fc(0x16f),_0x241011,{'pageName':_0x10184d,'templateName':_0x318137});}}catch(_0x404e4d){if(_0x25c2f1){const _0x49c060=Date[_0x5a07fc(0x156)]()-_0x29b52e;logger[_0x5a07fc(0x17c)](_0x5a07fc(0x16c),_0x5a07fc(0x167),{'templatePath':_0x2c9b0b,'targetPath':_0x400ff9,'pageName':_0x10184d,'templateName':_0x318137,'error':_0x404e4d instanceof Error?_0x404e4d[_0x5a07fc(0x158)]:String(_0x404e4d),'duration':_0x49c060});}throw _0x404e4d;}}static async[a289_0x50b144(0x14d)](_0x54dd22,_0x5e6cbe,_0x27ecab,_0x5b54d5){const _0x1b6121=a289_0x50b144,_0x3aa847=await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x13d)](_0x54dd22,{'withFileTypes':!![]});for(const _0x305c1e of _0x3aa847){const _0x297ce6=a289_0x268e29[_0x1b6121(0x169)](_0x54dd22,_0x305c1e[_0x1b6121(0x142)]);let _0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e[_0x1b6121(0x142)]);_0x305c1e[_0x1b6121(0x142)][_0x1b6121(0x14b)](_0x1b6121(0x161))&&(_0x31d4ce=a289_0x268e29[_0x1b6121(0x169)](_0x5e6cbe,_0x305c1e['name']['replace'](/\.tpl$/,'')));if(_0x305c1e[_0x1b6121(0x164)]())await a289_0x639c0b[_0x1b6121(0x17a)][_0x1b6121(0x15c)](_0x31d4ce,{'recursive':!![]}),await this[_0x1b6121(0x14d)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);else _0x305c1e[_0x1b6121(0x14c)]()&&await this[_0x1b6121(0x17f)](_0x297ce6,_0x31d4ce,_0x27ecab,_0x5b54d5);}}static async['processFile'](_0x3452d1,_0x520186,_0x540f88,_0xc64ac1){const _0x2a251e=a289_0x50b144,_0x5594e9=a289_0x268e29[_0x2a251e(0x166)](_0x3452d1)[_0x2a251e(0x175)]();_0x3452d1[_0x2a251e(0x14b)]('.tpl')&&(_0x520186=_0x520186[_0x2a251e(0x140)](/\.tpl$/,''));const _0x2dc889=[_0x2a251e(0x170),_0x2a251e(0x13f),_0x2a251e(0x181),_0x2a251e(0x186),_0x2a251e(0x17e),_0x2a251e(0x185),_0x2a251e(0x15a),'.scss','.tpl'];if(_0x2dc889[_0x2a251e(0x177)](_0x5594e9)||_0x3452d1['endsWith'](_0x2a251e(0x161))){const _0x440c16=await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x183)](_0x3452d1,_0x2a251e(0x179)),_0xb2519d=this[_0x2a251e(0x182)](_0x440c16,_0x540f88,_0xc64ac1);await a289_0x639c0b[_0x2a251e(0x17a)][_0x2a251e(0x146)](_0x520186,_0xb2519d,_0x2a251e(0x179));}else await a289_0x639c0b['promises'][_0x2a251e(0x15e)](_0x3452d1,_0x520186);}}function a289_0x4384(){const _0x104669=['slice','mkdir','LOVRABET','copyFile','tableName:\x20\x22','toComponentName','.tpl','开始处理模板内容替换','processTemplate','isDirectory','split','extname','模板内容替换失败','api','join','charAt','100EnSCUF','template','getDate','tableName','模板内容替换完成','.tsx','103347YDaTxD','formatLocalTimestamp','datasetCode:\x20\x22','padStart','toLowerCase','toDisplayTitle','includes','6CXHpav','utf8','promises','toUpperCase','error','pad','.json','processFile','\x20},','.jsx','replaceContent','readFile','default','.md','.js','name:\x20\x22','readdir','alias:\x20\x22','.ts','replace','map','name','getFullYear','7127688qrQPOQ','3775177PrfXqT','writeFile','datasetCode','YourModel','getMonth','4471025hbMQkr','endsWith','isFile','processDirectory','387952ZWDXfG','184zwAvAN','alias','getMinutes','success','push','toISOString','49206xebTZi','now','484762MtZSbY','message','pop','.css'];a289_0x4384=function(){return _0x104669;};return a289_0x4384();}
1
+ const a296_0x851c50=a296_0x1225;(function(_0xd5f23a,_0x3e5d08){const _0x458eaa=a296_0x1225,_0x4952f6=_0xd5f23a();while(!![]){try{const _0x148e3a=-parseInt(_0x458eaa(0x1cc))/0x1+parseInt(_0x458eaa(0x1bb))/0x2*(parseInt(_0x458eaa(0x1b8))/0x3)+-parseInt(_0x458eaa(0x1cd))/0x4+parseInt(_0x458eaa(0x1b0))/0x5+-parseInt(_0x458eaa(0x1a8))/0x6+parseInt(_0x458eaa(0x1b7))/0x7*(parseInt(_0x458eaa(0x1c1))/0x8)+parseInt(_0x458eaa(0x1d3))/0x9;if(_0x148e3a===_0x3e5d08)break;else _0x4952f6['push'](_0x4952f6['shift']());}catch(_0xba94bc){_0x4952f6['push'](_0x4952f6['shift']());}}}(a296_0x35f7,0xdb429));import a296_0x4b479b from'node:fs';import a296_0x5d7538 from'node:path';function a296_0x35f7(){const _0x15a8ce=['LOVRABET','endsWith','copyFile','9462775ZNjiiY','27Znffrq','default','.tpl','150214KZhXRx','alias','getMinutes','replace','isFile','.css','8WMYqGi','includes','.ts','push','getFullYear','processFile','\x20},','join','toComponentName','info','datasetCode','1178849KRqftt','321260RCSZeX','tableName:\x20\x22','.scss','promises','replaceContent','toDisplayTitle','9054441zppPAu','template','getDate','map','.jsx','name:\x20\x22','mkdir','replaceApiContent','getSeconds','.md','processTemplate','tableName','extname','getMonth','api','split','.js','processDirectory','readdir','datasetCode:\x20\x22','isDirectory','slice','charAt','now','模板内容替换完成','toUpperCase','8180430opWOwy','name','utf8','getHours','pad','success','toLowerCase','alias:\x20\x22','2434105GEigrT','formatLocalTimestamp','pop','error'];a296_0x35f7=function(){return _0x15a8ce;};return a296_0x35f7();}function a296_0x1225(_0x4c7be1,_0x443185){_0x4c7be1=_0x4c7be1-0x190;const _0x35f725=a296_0x35f7();let _0x12251d=_0x35f725[_0x4c7be1];return _0x12251d;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a296_0x851c50(0x1ac)](_0x519582){return String(_0x519582)['padStart'](0x2,'0');}static[a296_0x851c50(0x1b1)](_0x42190e){const _0x244b06=a296_0x851c50,_0x1ec249=_0x42190e[_0x244b06(0x1c5)](),_0x2fecea=this[_0x244b06(0x1ac)](_0x42190e[_0x244b06(0x19b)]()+0x1),_0x2bc939=this[_0x244b06(0x1ac)](_0x42190e[_0x244b06(0x190)]()),_0xe97447=this[_0x244b06(0x1ac)](_0x42190e[_0x244b06(0x1ab)]()),_0x18048e=this['pad'](_0x42190e[_0x244b06(0x1bd)]()),_0x4854a3=this[_0x244b06(0x1ac)](_0x42190e[_0x244b06(0x196)]());return{'createdAt':_0x1ec249+'-'+_0x2fecea+'-'+_0x2bc939+'\x20'+_0xe97447+':'+_0x18048e+':'+_0x4854a3,'createdDate':_0x1ec249+'-'+_0x2fecea+'-'+_0x2bc939,'createdTime':_0xe97447+':'+_0x18048e+':'+_0x4854a3};}static[a296_0x851c50(0x1c9)](_0x4bcf46){const _0x5e8fa9=a296_0x851c50,_0x687c04=_0x4bcf46[_0x5e8fa9(0x19d)]('/')[_0x5e8fa9(0x1b2)]()||_0x4bcf46;return _0x687c04['split']('-')[_0x5e8fa9(0x191)](_0x21b2de=>_0x21b2de[_0x5e8fa9(0x1a4)](0x0)[_0x5e8fa9(0x1a7)]()+_0x21b2de['slice'](0x1)[_0x5e8fa9(0x1ae)]())[_0x5e8fa9(0x1c8)]('');}static[a296_0x851c50(0x1d2)](_0x417987){const _0x5760ca=a296_0x851c50,_0x23366c=_0x417987['split']('/')[_0x5760ca(0x1b2)]()||_0x417987;return _0x23366c['split']('-')[_0x5760ca(0x191)](_0xe231b9=>_0xe231b9[_0x5760ca(0x1a4)](0x0)['toUpperCase']()+_0xe231b9[_0x5760ca(0x1a3)](0x1)[_0x5760ca(0x1ae)]())[_0x5760ca(0x1c8)]('\x20');}static[a296_0x851c50(0x1d1)](_0x39f0b0,_0x7b358f,_0x3685e8){const _0x39b837=a296_0x851c50,_0x3d2daa=this[_0x39b837(0x1c9)](_0x7b358f),_0x1e9c80=this[_0x39b837(0x1d2)](_0x7b358f),{createdAt:_0xe58a27,createdDate:_0x5084fa,createdTime:_0x4dc3be}=this[_0x39b837(0x1b1)](new Date());let _0x26517b=_0x39f0b0[_0x39b837(0x1be)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x3d2daa)[_0x39b837(0x1be)](/\{DisplayTitle\}/g,_0x1e9c80)[_0x39b837(0x1be)](/\{PageName\}/g,_0x7b358f)['replace'](/\{TemplateName\}/g,_0x3685e8)[_0x39b837(0x1be)](/\{CreatedAt\}/g,_0xe58a27)['replace'](/\{CreatedDate\}/g,_0x5084fa)[_0x39b837(0x1be)](/\{CreatedTime\}/g,_0x4dc3be);return _0x26517b;}static[a296_0x851c50(0x195)](_0x241ff6,_0x4a9dca,_0x38bcf6,_0x378574,_0x3136af,_0x1550e1,_0x23cc44,_0x2cbf97){const _0x33afc5=a296_0x851c50,_0x54f593=new Date(),_0x4ace48=_0x54f593['toISOString'](),_0x4ccad9=_0x38bcf6[_0x33afc5(0x191)](_0x1a6f6b=>{const _0x4db532=_0x33afc5,_0x2bbeb9=[_0x4db532(0x1a1)+_0x1a6f6b[_0x4db532(0x1cb)]+'\x22',_0x4db532(0x1ce)+_0x1a6f6b[_0x4db532(0x199)]+'\x22',_0x4db532(0x193)+_0x1a6f6b[_0x4db532(0x1a9)]+'\x22'];return _0x1a6f6b[_0x4db532(0x1bc)]&&_0x2bbeb9[_0x4db532(0x1c4)](_0x4db532(0x1af)+_0x1a6f6b[_0x4db532(0x1bc)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2bbeb9[_0x4db532(0x1c8)](',\x20')+_0x4db532(0x1c7);})[_0x33afc5(0x1c8)](''),_0x22cf63=_0x378574||_0x38bcf6[0x0]?.[_0x33afc5(0x1bc)]||'YourModel';let _0x414f3a=_0x241ff6[_0x33afc5(0x1be)](/\{AppCode\}/g,_0x4a9dca)[_0x33afc5(0x1be)](/\{ModelConfigs\}/g,_0x4ccad9)['replace'](/\{ExampleModelName\}/g,_0x22cf63)[_0x33afc5(0x1be)](/\{ApiFileName\}/g,_0x3136af||_0x33afc5(0x19c))[_0x33afc5(0x1be)](/\{ConfigName\}/g,_0x1550e1||_0x33afc5(0x1b9))[_0x33afc5(0x1be)](/\{ClientConfigParam\}/g,_0x23cc44||'')[_0x33afc5(0x1be)](/\{VarPrefix\}/g,_0x2cbf97||_0x33afc5(0x1b4))[_0x33afc5(0x1be)](/\{CreatedAt\}/g,_0x4ace48);return _0x414f3a;}static async[a296_0x851c50(0x198)](_0x154e7f,_0x31b677,_0x459d78,_0x265a57,_0x413f93=!![]){const _0x541e0d=a296_0x851c50,_0xb62624=Date[_0x541e0d(0x1a5)]();try{_0x413f93&&logger[_0x541e0d(0x1ca)]('template','开始处理模板内容替换',{'templatePath':_0x154e7f,'targetPath':_0x31b677,'pageName':_0x459d78,'templateName':_0x265a57});await a296_0x4b479b[_0x541e0d(0x1d0)]['mkdir'](_0x31b677,{'recursive':!![]}),await this['processDirectory'](_0x154e7f,_0x31b677,_0x459d78,_0x265a57);if(_0x413f93){const _0x1a4f21=Date[_0x541e0d(0x1a5)]()-_0xb62624;logger[_0x541e0d(0x1ad)](_0x541e0d(0x1d4),_0x541e0d(0x1a6),_0x1a4f21,{'pageName':_0x459d78,'templateName':_0x265a57});}}catch(_0x470d34){if(_0x413f93){const _0x27077d=Date[_0x541e0d(0x1a5)]()-_0xb62624;logger[_0x541e0d(0x1b3)]('template','模板内容替换失败',{'templatePath':_0x154e7f,'targetPath':_0x31b677,'pageName':_0x459d78,'templateName':_0x265a57,'error':_0x470d34 instanceof Error?_0x470d34['message']:String(_0x470d34),'duration':_0x27077d});}throw _0x470d34;}}static async[a296_0x851c50(0x19f)](_0x45573d,_0x2e274c,_0x2500eb,_0x5f3a6e){const _0x39e50b=a296_0x851c50,_0x1a1b5e=await a296_0x4b479b[_0x39e50b(0x1d0)][_0x39e50b(0x1a0)](_0x45573d,{'withFileTypes':!![]});for(const _0x21f3b9 of _0x1a1b5e){const _0x34c93e=a296_0x5d7538[_0x39e50b(0x1c8)](_0x45573d,_0x21f3b9[_0x39e50b(0x1a9)]);let _0x337a7a=a296_0x5d7538[_0x39e50b(0x1c8)](_0x2e274c,_0x21f3b9[_0x39e50b(0x1a9)]);_0x21f3b9[_0x39e50b(0x1a9)][_0x39e50b(0x1b5)]('.tpl')&&(_0x337a7a=a296_0x5d7538[_0x39e50b(0x1c8)](_0x2e274c,_0x21f3b9[_0x39e50b(0x1a9)][_0x39e50b(0x1be)](/\.tpl$/,'')));if(_0x21f3b9[_0x39e50b(0x1a2)]())await a296_0x4b479b[_0x39e50b(0x1d0)][_0x39e50b(0x194)](_0x337a7a,{'recursive':!![]}),await this[_0x39e50b(0x19f)](_0x34c93e,_0x337a7a,_0x2500eb,_0x5f3a6e);else _0x21f3b9[_0x39e50b(0x1bf)]()&&await this['processFile'](_0x34c93e,_0x337a7a,_0x2500eb,_0x5f3a6e);}}static async[a296_0x851c50(0x1c6)](_0x490abc,_0x3023ec,_0x50b3ad,_0x3fc466){const _0x12d75d=a296_0x851c50,_0x1cb301=a296_0x5d7538[_0x12d75d(0x19a)](_0x490abc)[_0x12d75d(0x1ae)]();_0x490abc['endsWith']('.tpl')&&(_0x3023ec=_0x3023ec[_0x12d75d(0x1be)](/\.tpl$/,''));const _0x461a38=['.tsx',_0x12d75d(0x1c3),_0x12d75d(0x192),_0x12d75d(0x19e),'.json',_0x12d75d(0x197),_0x12d75d(0x1c0),_0x12d75d(0x1cf),_0x12d75d(0x1ba)];if(_0x461a38[_0x12d75d(0x1c2)](_0x1cb301)||_0x490abc[_0x12d75d(0x1b5)]('.tpl')){const _0x5a5f60=await a296_0x4b479b[_0x12d75d(0x1d0)]['readFile'](_0x490abc,_0x12d75d(0x1aa)),_0x559e61=this[_0x12d75d(0x1d1)](_0x5a5f60,_0x50b3ad,_0x3fc466);await a296_0x4b479b[_0x12d75d(0x1d0)]['writeFile'](_0x3023ec,_0x559e61,_0x12d75d(0x1aa));}else await a296_0x4b479b[_0x12d75d(0x1d0)][_0x12d75d(0x1b6)](_0x490abc,_0x3023ec);}}
@@ -1 +1 @@
1
- (function(_0x551255,_0x2cda35){const _0x1606b1=a290_0x5ae8,_0x29763b=_0x551255();while(!![]){try{const _0x403ecc=parseInt(_0x1606b1(0x1e1))/0x1+parseInt(_0x1606b1(0x1ed))/0x2*(parseInt(_0x1606b1(0x1f1))/0x3)+-parseInt(_0x1606b1(0x1ff))/0x4*(parseInt(_0x1606b1(0x1f4))/0x5)+-parseInt(_0x1606b1(0x1e5))/0x6*(parseInt(_0x1606b1(0x1f9))/0x7)+parseInt(_0x1606b1(0x1e8))/0x8+-parseInt(_0x1606b1(0x1fe))/0x9*(parseInt(_0x1606b1(0x1ee))/0xa)+parseInt(_0x1606b1(0x1ea))/0xb*(-parseInt(_0x1606b1(0x1f3))/0xc);if(_0x403ecc===_0x2cda35)break;else _0x29763b['push'](_0x29763b['shift']());}catch(_0x2d4ac4){_0x29763b['push'](_0x29763b['shift']());}}}(a290_0x430b,0xda77b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xe0a8f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a290_0x5ae8(_0x3d9346,_0x216b77){_0x3d9346=_0x3d9346-0x1e1;const _0x430b6d=a290_0x430b();let _0x5ae80a=_0x430b6d[_0x3d9346];return _0x5ae80a;}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 _0x2d3bd5=a290_0x5ae8,_0x78af90=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2d3bd5(0x1e2)]()[_0x2d3bd5(0x1e7)]();return _0x78af90==='1'||_0x78af90===_0x2d3bd5(0x1fa)||_0x78af90==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x196698=a290_0x5ae8;return join(cacheRoot(),'rabetbase-cli',_0x196698(0x1ef));}async function readUpdateNoticeCache(){const _0x30ac58=a290_0x5ae8;try{const _0x440c31=await readFile(getUpdateNoticeCachePath(),_0x30ac58(0x1f8)),_0x3b3724=JSON[_0x30ac58(0x1f7)](_0x440c31);if(!_0x3b3724||typeof _0x3b3724!==_0x30ac58(0x1f6))return{};return _0x3b3724;}catch{return{};}}async function writeUpdateNoticeCache(_0x4c4ec2){const _0x949969=a290_0x5ae8;try{const _0x54f7cc=getUpdateNoticeCachePath();await mkdir(dirname(_0x54f7cc),{'recursive':!![]}),await writeFile(_0x54f7cc,JSON[_0x949969(0x1f0)](_0x4c4ec2,null,0x2)+'\x0a',_0x949969(0x1f8));}catch{}}function isFreshCheck(_0x5d4129,_0x58e9ef){const _0x21fda7=a290_0x5ae8;return typeof _0x5d4129[_0x21fda7(0x1e3)]===_0x21fda7(0x1e4)&&_0x58e9ef-_0x5d4129[_0x21fda7(0x1e3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x575533,_0x38c297,_0x576ea9){const _0x441b10=a290_0x5ae8;return _0x575533[_0x441b10(0x1ec)]===_0x38c297&&typeof _0x575533[_0x441b10(0x1fb)]===_0x441b10(0x1e4)&&_0x576ea9-_0x575533['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}function a290_0x430b(){const _0x455083=['20dWfCBk','update-check.json','stringify','81yuRFsL','now','12jDufdc','5AeyDDy','valid','object','parse','utf8','21413ftVvlj','true','lastNotifiedAt','/v/','gte','1699119GkfmIE','2217912SAbcvz','1587765RQwaDG','trim','checkedAt','number','1002LTAgXm','https://www.npmjs.com/package/','toLowerCase','4747240elHzmF','\x20available,\x20current\x20','5612563PeaWmW','latest','lastNotifiedVersion','49394oUWjql'];a290_0x430b=function(){return _0x455083;};return a290_0x430b();}export function buildNpmVersionUrl(_0x37214f){const _0xe9e866=a290_0x5ae8;return _0xe9e866(0x1e6)+NPM_PACKAGE_NAME+_0xe9e866(0x1fc)+_0x37214f;}export async function resolveLatestUpdateNotice(){const _0x526839=a290_0x5ae8;if(isUpdateNoticeDisabled())return null;try{const _0x5bf71e=Date[_0x526839(0x1f2)](),_0x20779e=getCliVersion(),_0x1cf5ce=await readUpdateNoticeCache();let _0x58be61=isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce[_0x526839(0x1eb)]?.[_0x526839(0x1e2)]():undefined;if(!_0x58be61&&!isFreshCheck(_0x1cf5ce,_0x5bf71e)){const _0x2da698=await getCliVersionPolicy();_0x58be61=_0x2da698?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':_0x5bf71e,'latest':_0x58be61,'failed':!_0x58be61});}if(!_0x58be61||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x20779e)||!a290_0xe0a8f7[_0x526839(0x1f5)](_0x58be61))return null;if(a290_0xe0a8f7[_0x526839(0x1fd)](_0x20779e,_0x58be61))return null;if(isRecentlyNotified(_0x1cf5ce,_0x58be61,_0x5bf71e))return null;const _0x18ce06=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1cf5ce,'checkedAt':isFreshCheck(_0x1cf5ce,_0x5bf71e)?_0x1cf5ce['checkedAt']:_0x5bf71e,'latest':_0x58be61,'failed':![],'lastNotifiedVersion':_0x58be61,'lastNotifiedAt':_0x5bf71e}),{'command':_0x18ce06,'current':_0x20779e,'latest':_0x58be61,'url':buildNpmVersionUrl(_0x58be61),'message':CLI_BIN_NAME+'\x20'+_0x58be61+_0x526839(0x1e9)+_0x20779e+',\x20run:\x20'+_0x18ce06};}catch{return null;}}
1
+ (function(_0x55f4e4,_0x237b97){const _0x2f538a=a297_0x31ee,_0xa1305d=_0x55f4e4();while(!![]){try{const _0xdfec90=-parseInt(_0x2f538a(0xb9))/0x1+-parseInt(_0x2f538a(0xca))/0x2*(parseInt(_0x2f538a(0xbc))/0x3)+parseInt(_0x2f538a(0xc0))/0x4+parseInt(_0x2f538a(0xc8))/0x5*(parseInt(_0x2f538a(0xc6))/0x6)+parseInt(_0x2f538a(0xba))/0x7*(parseInt(_0x2f538a(0xc5))/0x8)+parseInt(_0x2f538a(0xbe))/0x9*(parseInt(_0x2f538a(0xc3))/0xa)+-parseInt(_0x2f538a(0xb6))/0xb;if(_0xdfec90===_0x237b97)break;else _0xa1305d['push'](_0xa1305d['shift']());}catch(_0x10c107){_0xa1305d['push'](_0xa1305d['shift']());}}}(a297_0x307e,0x9d434));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a297_0x464c4f from'semver';function a297_0x31ee(_0x235c32,_0x2eaea3){_0x235c32=_0x235c32-0xb0;const _0x307ebd=a297_0x307e();let _0x31ee88=_0x307ebd[_0x235c32];return _0x31ee88;}import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a297_0x307e(){const _0x9e0263=['true','1010OYFSoy','\x20update','298424TKWQdv','209298xCXxiz','utf8','125CoCsZD','rabetbase-cli','61012yneovT','https://www.npmjs.com/package/','number','now','latest','valid','lastNotifiedAt',',\x20run:\x20','checkedAt','6674228PHkDXI','.cache','/v/','527293jRVRae','49qwTwRw','yes','126BsCgKv','gte','65655IUqkqr','trim','4757800nbaAtY','toLowerCase'];a297_0x307e=function(){return _0x9e0263;};return a297_0x307e();}function isUpdateNoticeDisabled(){const _0x327aac=a297_0x31ee,_0x157dd8=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x327aac(0xbf)]()[_0x327aac(0xc1)]();return _0x157dd8==='1'||_0x157dd8===_0x327aac(0xc2)||_0x157dd8===_0x327aac(0xbb);}function cacheRoot(){const _0x4ce45a=a297_0x31ee;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4ce45a(0xb7));}export function getUpdateNoticeCachePath(){const _0x22b48c=a297_0x31ee;return join(cacheRoot(),_0x22b48c(0xc9),'update-check.json');}async function readUpdateNoticeCache(){try{const _0x53210f=await readFile(getUpdateNoticeCachePath(),'utf8'),_0xc47d54=JSON['parse'](_0x53210f);if(!_0xc47d54||typeof _0xc47d54!=='object')return{};return _0xc47d54;}catch{return{};}}async function writeUpdateNoticeCache(_0x302d83){const _0x4192bd=a297_0x31ee;try{const _0x2660b3=getUpdateNoticeCachePath();await mkdir(dirname(_0x2660b3),{'recursive':!![]}),await writeFile(_0x2660b3,JSON['stringify'](_0x302d83,null,0x2)+'\x0a',_0x4192bd(0xc7));}catch{}}function isFreshCheck(_0x239d08,_0x13eb02){const _0x23f0a6=a297_0x31ee;return typeof _0x239d08[_0x23f0a6(0xb5)]===_0x23f0a6(0xcc)&&_0x13eb02-_0x239d08[_0x23f0a6(0xb5)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1504d6,_0xe29254,_0x3a5c84){const _0x156f34=a297_0x31ee;return _0x1504d6['lastNotifiedVersion']===_0xe29254&&typeof _0x1504d6[_0x156f34(0xb3)]===_0x156f34(0xcc)&&_0x3a5c84-_0x1504d6[_0x156f34(0xb3)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2ac449){const _0x82ddea=a297_0x31ee;return _0x82ddea(0xcb)+NPM_PACKAGE_NAME+_0x82ddea(0xb8)+_0x2ac449;}export async function resolveLatestUpdateNotice(){const _0x164d1d=a297_0x31ee;if(isUpdateNoticeDisabled())return null;try{const _0x27c8a6=Date[_0x164d1d(0xb0)](),_0x5cddcf=getCliVersion(),_0x2c1415=await readUpdateNoticeCache();let _0x40c3f0=isFreshCheck(_0x2c1415,_0x27c8a6)?_0x2c1415[_0x164d1d(0xb1)]?.['trim']():undefined;if(!_0x40c3f0&&!isFreshCheck(_0x2c1415,_0x27c8a6)){const _0x4f0883=await getCliVersionPolicy();_0x40c3f0=_0x4f0883?.['stableVersion']?.[_0x164d1d(0xbf)]()||undefined,await writeUpdateNoticeCache({..._0x2c1415,'checkedAt':_0x27c8a6,'latest':_0x40c3f0,'failed':!_0x40c3f0});}if(!_0x40c3f0||!a297_0x464c4f[_0x164d1d(0xb2)](_0x5cddcf)||!a297_0x464c4f['valid'](_0x40c3f0))return null;if(a297_0x464c4f[_0x164d1d(0xbd)](_0x5cddcf,_0x40c3f0))return null;if(isRecentlyNotified(_0x2c1415,_0x40c3f0,_0x27c8a6))return null;const _0x515a23=CLI_BIN_NAME+_0x164d1d(0xc4);return await writeUpdateNoticeCache({..._0x2c1415,'checkedAt':isFreshCheck(_0x2c1415,_0x27c8a6)?_0x2c1415[_0x164d1d(0xb5)]:_0x27c8a6,'latest':_0x40c3f0,'failed':![],'lastNotifiedVersion':_0x40c3f0,'lastNotifiedAt':_0x27c8a6}),{'command':_0x515a23,'current':_0x5cddcf,'latest':_0x40c3f0,'url':buildNpmVersionUrl(_0x40c3f0),'message':CLI_BIN_NAME+'\x20'+_0x40c3f0+'\x20available,\x20current\x20'+_0x5cddcf+_0x164d1d(0xb4)+_0x515a23};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x1426ff,_0x59062f){var _0x3e8920=a291_0x1cce,_0x2db155=_0x1426ff();while(!![]){try{var _0x52ee11=parseInt(_0x3e8920(0x1b8))/0x1*(-parseInt(_0x3e8920(0x1ba))/0x2)+-parseInt(_0x3e8920(0x1bc))/0x3+parseInt(_0x3e8920(0x1b7))/0x4+parseInt(_0x3e8920(0x1b4))/0x5+-parseInt(_0x3e8920(0x1b6))/0x6*(-parseInt(_0x3e8920(0x1b5))/0x7)+parseInt(_0x3e8920(0x1b9))/0x8+parseInt(_0x3e8920(0x1bd))/0x9*(-parseInt(_0x3e8920(0x1bb))/0xa);if(_0x52ee11===_0x59062f)break;else _0x2db155['push'](_0x2db155['shift']());}catch(_0x3e01fc){_0x2db155['push'](_0x2db155['shift']());}}}(a291_0x5d07,0x393a7));function a291_0x1cce(_0x1cbb5e,_0x4803e6){_0x1cbb5e=_0x1cbb5e-0x1b4;var _0x5d0791=a291_0x5d07();var _0x1cce23=_0x5d0791[_0x1cbb5e];return _0x1cce23;}import{VERSION}from'../generated/build-info.js';function a291_0x5d07(){var _0xfa1e7e=['7bNLgBP','2261226LSuAcP','1298040JrAxJI','15425CueNjg','1027456LIGBXS','10YXOSWD','7699650EjPLBh','596646twLoPB','9MnvWRI','2252830syCvQI'];a291_0x5d07=function(){return _0xfa1e7e;};return a291_0x5d07();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x40344a,_0x464c08){var _0x430e0b=a298_0x6462,_0x460e89=_0x40344a();while(!![]){try{var _0x34f0d3=-parseInt(_0x430e0b(0x119))/0x1+-parseInt(_0x430e0b(0x117))/0x2+parseInt(_0x430e0b(0x115))/0x3+parseInt(_0x430e0b(0x11a))/0x4*(parseInt(_0x430e0b(0x11d))/0x5)+-parseInt(_0x430e0b(0x11c))/0x6+parseInt(_0x430e0b(0x11b))/0x7+parseInt(_0x430e0b(0x118))/0x8*(parseInt(_0x430e0b(0x116))/0x9);if(_0x34f0d3===_0x464c08)break;else _0x460e89['push'](_0x460e89['shift']());}catch(_0x5a2dd4){_0x460e89['push'](_0x460e89['shift']());}}}(a298_0x76ff,0x59177));function a298_0x76ff(){var _0x3981be=['284841rKypoj','1375498ySGORj','248dTFqwW','559819qVcJzY','4320qIXWrG','1462286kJCCNX','4020912ffhfDb','2140RmvzsB','1891146KYFBhC'];a298_0x76ff=function(){return _0x3981be;};return a298_0x76ff();}function a298_0x6462(_0x4204b1,_0x372f75){_0x4204b1=_0x4204b1-0x115;var _0x76ff68=a298_0x76ff();var _0x64621a=_0x76ff68[_0x4204b1];return _0x64621a;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x104a87,_0x5a944f){var _0x420f4e=a292_0x5a8e,_0x1fcf75=_0x104a87();while(!![]){try{var _0x4b22b=-parseInt(_0x420f4e(0x1f4))/0x1*(parseInt(_0x420f4e(0x1f1))/0x2)+parseInt(_0x420f4e(0x1f6))/0x3+-parseInt(_0x420f4e(0x1f3))/0x4+parseInt(_0x420f4e(0x1f0))/0x5+-parseInt(_0x420f4e(0x1f8))/0x6*(parseInt(_0x420f4e(0x1f2))/0x7)+parseInt(_0x420f4e(0x1f5))/0x8+parseInt(_0x420f4e(0x1f7))/0x9;if(_0x4b22b===_0x5a944f)break;else _0x1fcf75['push'](_0x1fcf75['shift']());}catch(_0x1e8afa){_0x1fcf75['push'](_0x1fcf75['shift']());}}}(a292_0x2802,0xcbae5));function a292_0x2802(){var _0x2232d0=['6rrbGLK','1024965NmOqDj','5542eZUmrk','1886738skuSBU','1578592ZgcrnG','121BeMZYk','6066816MxCbca','145485mRyipF','7397190IrrZjY'];a292_0x2802=function(){return _0x2232d0;};return a292_0x2802();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x5a8e(_0x2158a8,_0x3c76c8){_0x2158a8=_0x2158a8-0x1f0;var _0x2802a1=a292_0x2802();var _0x5a8e04=_0x2802a1[_0x2158a8];return _0x5a8e04;}export async function withActiveCookie(_0x41c4c0,_0x253e4f){setActiveCookie(_0x41c4c0);try{return await _0x253e4f();}finally{clearActiveCookie();}}
1
+ function a299_0xc5af(){var _0x3f22ce=['175EJQRdJ','3931992VDZmvR','8SlbLWD','6330pSaygF','736348DWvwYf','372VrCCVW','3749466YiumPu','3976otfzvv','33502390nBynMW','15972588GSYmDm'];a299_0xc5af=function(){return _0x3f22ce;};return a299_0xc5af();}(function(_0x35e855,_0x357211){var _0x7ae038=a299_0x1666,_0x41f9ac=_0x35e855();while(!![]){try{var _0x31bcb6=parseInt(_0x7ae038(0x1c7))/0x1+-parseInt(_0x7ae038(0x1c0))/0x2*(-parseInt(_0x7ae038(0x1be))/0x3)+parseInt(_0x7ae038(0x1c4))/0x4+-parseInt(_0x7ae038(0x1c3))/0x5*(parseInt(_0x7ae038(0x1c6))/0x6)+-parseInt(_0x7ae038(0x1bf))/0x7*(-parseInt(_0x7ae038(0x1c5))/0x8)+parseInt(_0x7ae038(0x1c2))/0x9+-parseInt(_0x7ae038(0x1c1))/0xa;if(_0x31bcb6===_0x357211)break;else _0x41f9ac['push'](_0x41f9ac['shift']());}catch(_0x4c0c2d){_0x41f9ac['push'](_0x41f9ac['shift']());}}}(a299_0xc5af,0xd90e8));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a299_0x1666(_0x47916a,_0x580f71){_0x47916a=_0x47916a-0x1be;var _0xc5af23=a299_0xc5af();var _0x1666e5=_0xc5af23[_0x47916a];return _0x1666e5;}export async function withActiveCookie(_0x149b35,_0x40c14d){setActiveCookie(_0x149b35);try{return await _0x40c14d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a293_0xb835(){var _0x597725=['25115470nqXDHh','8jCLNrA','12824991WfZiaZ','2344410pchYmN','7204KlEFyW','stderr','1649095jOgbEi','296802kwFpjd','8BcEROx','write','146icpKwa','1644185tmioUQ'];a293_0xb835=function(){return _0x597725;};return a293_0xb835();}(function(_0x2bf4c7,_0xe9322c){var _0x25584d=a293_0x2c0f,_0x52199c=_0x2bf4c7();while(!![]){try{var _0x167674=-parseInt(_0x25584d(0x8c))/0x1*(-parseInt(_0x25584d(0x86))/0x2)+parseInt(_0x25584d(0x83))/0x3+-parseInt(_0x25584d(0x89))/0x4*(-parseInt(_0x25584d(0x87))/0x5)+parseInt(_0x25584d(0x8b))/0x6+-parseInt(_0x25584d(0x82))/0x7*(-parseInt(_0x25584d(0x84))/0x8)+parseInt(_0x25584d(0x8a))/0x9+-parseInt(_0x25584d(0x88))/0xa;if(_0x167674===_0xe9322c)break;else _0x52199c['push'](_0x52199c['shift']());}catch(_0xc79976){_0x52199c['push'](_0x52199c['shift']());}}}(a293_0xb835,0xc8c00));function a293_0x2c0f(_0x24093e,_0x20b9c9){_0x24093e=_0x24093e-0x82;var _0xb8355e=a293_0xb835();var _0x2c0fad=_0xb8355e[_0x24093e];return _0x2c0fad;}export function writeCliSideChannelLine(_0x242d1c){var _0x20d5da=a293_0x2c0f;process[_0x20d5da(0x8d)][_0x20d5da(0x85)](_0x242d1c+'\x0a');}
1
+ function a300_0x4468(_0x4af830,_0x50570e){_0x4af830=_0x4af830-0x96;var _0x532b32=a300_0x532b();var _0x4468e4=_0x532b32[_0x4af830];return _0x4468e4;}(function(_0x2fca0d,_0x2140dd){var _0x478c1b=a300_0x4468,_0x3a912d=_0x2fca0d();while(!![]){try{var _0x7f0868=-parseInt(_0x478c1b(0x9c))/0x1+parseInt(_0x478c1b(0x9b))/0x2*(parseInt(_0x478c1b(0xa0))/0x3)+parseInt(_0x478c1b(0x9f))/0x4*(-parseInt(_0x478c1b(0x9e))/0x5)+parseInt(_0x478c1b(0x9a))/0x6*(parseInt(_0x478c1b(0x97))/0x7)+parseInt(_0x478c1b(0x99))/0x8+-parseInt(_0x478c1b(0xa1))/0x9*(parseInt(_0x478c1b(0xa2))/0xa)+parseInt(_0x478c1b(0x98))/0xb*(parseInt(_0x478c1b(0x9d))/0xc);if(_0x7f0868===_0x2140dd)break;else _0x3a912d['push'](_0x3a912d['shift']());}catch(_0x438ec7){_0x3a912d['push'](_0x3a912d['shift']());}}}(a300_0x532b,0x695b8));export function writeCliSideChannelLine(_0x511455){var _0x1bf2db=a300_0x4468;process[_0x1bf2db(0x96)]['write'](_0x511455+'\x0a');}function a300_0x532b(){var _0x11eb86=['20NFYtPe','stderr','7CHlcND','165kTmkDK','3825544mlCKgP','2964138MhULIV','4USOucc','800515ntnzCs','1075584qtGTKm','205dHfyIe','44508gGXUfo','87768mCcaHc','3091239xhNpoz'];a300_0x532b=function(){return _0x11eb86;};return a300_0x532b();}