@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-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 (380) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
  375. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
  376. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  377. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  378. package/skills/rabetbase.manifest.json +3 -3
  379. package/templates/custom-pages/blank.json +1 -1
  380. package/templates/custom-pages/dashboard.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3e1b33,_0xa71257){const _0x1aebbd=a358_0x420d,_0x2c341b=_0x3e1b33();while(!![]){try{const _0x1c5ce4=-parseInt(_0x1aebbd(0x82))/0x1+-parseInt(_0x1aebbd(0x79))/0x2+parseInt(_0x1aebbd(0x6e))/0x3*(parseInt(_0x1aebbd(0x69))/0x4)+-parseInt(_0x1aebbd(0x89))/0x5+parseInt(_0x1aebbd(0x6a))/0x6+parseInt(_0x1aebbd(0x84))/0x7*(-parseInt(_0x1aebbd(0x68))/0x8)+-parseInt(_0x1aebbd(0x7c))/0x9*(-parseInt(_0x1aebbd(0x77))/0xa);if(_0x1c5ce4===_0xa71257)break;else _0x2c341b['push'](_0x2c341b['shift']());}catch(_0x3b5322){_0x2c341b['push'](_0x2c341b['shift']());}}}(a358_0x26d3,0xa8f9b));import a358_0x35b712 from'node:fs';import a358_0x282d0e from'node:path';import a358_0xc4dfa0 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x22f4a8){const _0x72fa74=a358_0x420d,_0x2a1ff7=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a1ff7[_0x72fa74(0x70)](_0x1db51e=>_0x1db51e[_0x72fa74(0x6c)](_0x22f4a8));}function getInstalledVersion(_0x435a7a,_0x23c99e){const _0x40e908=a358_0x420d;try{const _0x507ab8=a358_0x282d0e[_0x40e908(0x66)](_0x435a7a,'node_modules',_0x23c99e,_0x40e908(0x81));if(a358_0x35b712[_0x40e908(0x7a)](_0x507ab8)){const _0x54f0b8=JSON['parse'](a358_0x35b712[_0x40e908(0x75)](_0x507ab8,_0x40e908(0x78)));return _0x54f0b8[_0x40e908(0x7d)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x7805e=a358_0x420d;try{const _0x180461=await getCdnConfig();return _0x180461?.[_0x7805e(0x8b)]?.[_0x7805e(0x7b)]?.['stableVersion']||null;}catch{return null;}}function a358_0x26d3(){const _0x4ef714=['devDependencies','parse','coerce','utf8','3537720zuloEk','all','sdk','join','@lovrabet/sdk','14544WDLJxY','905736UMlhLj','6361794dRpHIe','\x1b[33m','test','\x1b[1m','18DhnYet','stableVersion','some','\x1b[0m','log','packageName','minVersion','readFileSync','\x20\x20\x20Stable\x20version:\x20','80XdbkgN','utf-8','2656660FzGpWI','existsSync','node','874386ufkior','version','latest','↪\x20SDK\x20update\x20available','\x20\x20\x20Upgrade\x20command:\x20','package.json','353604fPCNxN','dependencies','441wyVXRr'];a358_0x26d3=function(){return _0x4ef714;};return a358_0x26d3();}async function getSdkPackageName(){const _0x2a06ec=a358_0x420d;try{const _0xb48518=await getCdnConfig();return _0xb48518?.['sdk']?.[_0x2a06ec(0x7b)]?.[_0x2a06ec(0x73)]||'@lovrabet/sdk';}catch{return _0x2a06ec(0x67);}}function a358_0x420d(_0x328767,_0x53579e){_0x328767=_0x328767-0x66;const _0x26d345=a358_0x26d3();let _0x420dd7=_0x26d345[_0x328767];return _0x420dd7;}export async function checkSdkVersion(_0x51d954){const _0x1c3803=a358_0x420d,_0x49abf4=a358_0x282d0e[_0x1c3803(0x66)](_0x51d954,'package.json'),[_0x9aafaf,_0x4d5cd6]=await Promise[_0x1c3803(0x8a)]([getSdkStableVersion(),getSdkPackageName()]),_0x44e4c8=_0x9aafaf||FALLBACK_MIN_SDK_VERSION;if(!a358_0x35b712[_0x1c3803(0x7a)](_0x49abf4))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44e4c8,'packageName':_0x4d5cd6,'stableVersion':_0x9aafaf};try{const _0xe66b20=JSON[_0x1c3803(0x86)](a358_0x35b712[_0x1c3803(0x75)](_0x49abf4,_0x1c3803(0x88))),_0x505728=_0xe66b20['dependencies']||{},_0x3fa691=_0xe66b20[_0x1c3803(0x85)]||{},_0x1f5c09=_0x505728[_0x4d5cd6]||_0x3fa691[_0x4d5cd6];if(!_0x1f5c09)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44e4c8,'packageName':_0x4d5cd6,'stableVersion':_0x9aafaf};let _0x2302e3=getInstalledVersion(_0x51d954,_0x4d5cd6);!_0x2302e3&&(_0x2302e3=_0x1f5c09);if(isNonNumericVersion(_0x1f5c09))return{'installed':!![],'version':_0x2302e3,'needsUpgrade':![],'minVersion':_0x44e4c8,'packageName':_0x4d5cd6,'stableVersion':_0x9aafaf};const _0x3c91d2=a358_0xc4dfa0[_0x1c3803(0x87)](_0x2302e3),_0x5d67f3=a358_0xc4dfa0[_0x1c3803(0x87)](_0x44e4c8),_0x3d3c24=_0x3c91d2&&_0x5d67f3?a358_0xc4dfa0['lt'](_0x3c91d2,_0x5d67f3):![];return{'installed':!![],'version':_0x2302e3,'needsUpgrade':_0x3d3c24,'minVersion':_0x44e4c8,'packageName':_0x4d5cd6,'stableVersion':_0x9aafaf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44e4c8,'packageName':_0x4d5cd6,'stableVersion':_0x9aafaf};}}export function checkSdkVersionSync(_0x176255){const _0x5b58d7=a358_0x420d,_0x33d468=a358_0x282d0e['join'](_0x176255,_0x5b58d7(0x81)),_0x19d784=_0x5b58d7(0x67);if(!a358_0x35b712['existsSync'](_0x33d468))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19d784,'stableVersion':null};try{const _0xe909c7=JSON[_0x5b58d7(0x86)](a358_0x35b712[_0x5b58d7(0x75)](_0x33d468,'utf8')),_0xe36196=_0xe909c7[_0x5b58d7(0x83)]||{},_0x400243=_0xe909c7[_0x5b58d7(0x85)]||{},_0x4441c9=_0xe36196[_0x19d784]||_0x400243[_0x19d784];if(!_0x4441c9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19d784,'stableVersion':null};let _0x317c5d=getInstalledVersion(_0x176255,_0x19d784);!_0x317c5d&&(_0x317c5d=_0x4441c9);if(isNonNumericVersion(_0x4441c9))return{'installed':!![],'version':_0x317c5d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19d784,'stableVersion':null};const _0x59ffee=a358_0xc4dfa0[_0x5b58d7(0x87)](_0x317c5d),_0x2751dc=_0x59ffee?a358_0xc4dfa0['lt'](_0x59ffee,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x317c5d,'needsUpgrade':_0x2751dc,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19d784,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19d784,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x372565){const _0x2a2a5f=a358_0x420d;if(!_0x372565['needsUpgrade'])return;const _0x10bdbd=_0x2a2a5f(0x6b),_0x2967c7=_0x2a2a5f(0x71),_0x29c158=_0x2a2a5f(0x6d),_0x2a3aa4=_0x372565[_0x2a2a5f(0x73)]||_0x2a2a5f(0x67),_0x17203c=_0x372565[_0x2a2a5f(0x6f)]||_0x372565[_0x2a2a5f(0x74)],_0x53f9ba='npm\x20install\x20'+_0x2a3aa4+'@'+(_0x17203c||_0x2a2a5f(0x7e));console[_0x2a2a5f(0x72)](),console[_0x2a2a5f(0x72)](''+_0x10bdbd+_0x29c158+_0x2a2a5f(0x7f)+_0x2967c7),console['log'](_0x10bdbd+'\x20\x20\x20Current\x20version:\x20'+_0x2a3aa4+'@'+_0x372565[_0x2a2a5f(0x7d)]+_0x2967c7),console['log'](_0x10bdbd+_0x2a2a5f(0x76)+_0x17203c+_0x2967c7),console[_0x2a2a5f(0x72)](_0x10bdbd+_0x2a2a5f(0x80)+_0x53f9ba+_0x2967c7),console['log']();}
1
+ (function(_0x2e84bb,_0x47ae3b){const _0x26cf47=a358_0x34f9,_0x564094=_0x2e84bb();while(!![]){try{const _0x1c9ec4=parseInt(_0x26cf47(0xd2))/0x1*(-parseInt(_0x26cf47(0xc7))/0x2)+parseInt(_0x26cf47(0xe9))/0x3*(-parseInt(_0x26cf47(0xe4))/0x4)+-parseInt(_0x26cf47(0xea))/0x5+-parseInt(_0x26cf47(0xdb))/0x6*(parseInt(_0x26cf47(0xde))/0x7)+-parseInt(_0x26cf47(0xec))/0x8*(parseInt(_0x26cf47(0xd1))/0x9)+parseInt(_0x26cf47(0xd6))/0xa*(parseInt(_0x26cf47(0xc6))/0xb)+parseInt(_0x26cf47(0xdf))/0xc;if(_0x1c9ec4===_0x47ae3b)break;else _0x564094['push'](_0x564094['shift']());}catch(_0x36bc25){_0x564094['push'](_0x564094['shift']());}}}(a358_0x5dc8,0xb1d40));import a358_0x1c809f from'node:fs';import a358_0xb21179 from'node:path';function a358_0x5dc8(){const _0x51cbbe=['11xJKQCD','devDependencies','package.json','utf8','27780Tpevok','\x20\x20\x20Upgrade\x20command:\x20','sdk','log','@lovrabet/sdk','89982nfOCOb','\x20\x20\x20Current\x20version:\x20','\x1b[33m','231ZoPYgc','21348684mndkcn','join','npm\x20install\x20','utf-8','test','718292HFKNHn','minVersion','version','parse','↪\x20SDK\x20update\x20available','3BWPFvm','2022650wmPUmL','needsUpgrade','24cLbOZx','\x1b[0m','existsSync','packageName','4961JESXrl','34996tEYHgW','node_modules','coerce','\x1b[1m','node','dependencies','stableVersion','all','readFileSync','\x20\x20\x20Stable\x20version:\x20','3096207BLmWlw'];a358_0x5dc8=function(){return _0x51cbbe;};return a358_0x5dc8();}function a358_0x34f9(_0x269ad2,_0x56a4e9){_0x269ad2=_0x269ad2-0xc3;const _0x5dc8fc=a358_0x5dc8();let _0x34f99c=_0x5dc8fc[_0x269ad2];return _0x34f99c;}import a358_0x345c50 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x2a2b5e){const _0xbfdb60=a358_0x34f9,_0x31c44e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x31c44e['some'](_0x4420fe=>_0x4420fe[_0xbfdb60(0xe3)](_0x2a2b5e));}function getInstalledVersion(_0x177db6,_0x265b86){const _0x46b9f3=a358_0x34f9;try{const _0x432c87=a358_0xb21179[_0x46b9f3(0xe0)](_0x177db6,_0x46b9f3(0xc8),_0x265b86,_0x46b9f3(0xd4));if(a358_0x1c809f[_0x46b9f3(0xc4)](_0x432c87)){const _0x595411=JSON[_0x46b9f3(0xe7)](a358_0x1c809f['readFileSync'](_0x432c87,_0x46b9f3(0xe2)));return _0x595411[_0x46b9f3(0xe6)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3a325a=a358_0x34f9;try{const _0x7a718f=await getCdnConfig();return _0x7a718f?.[_0x3a325a(0xd8)]?.[_0x3a325a(0xcb)]?.[_0x3a325a(0xcd)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x8e99ab=a358_0x34f9;try{const _0xce3447=await getCdnConfig();return _0xce3447?.['sdk']?.[_0x8e99ab(0xcb)]?.['packageName']||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0xb38c79){const _0xd3ea0f=a358_0x34f9,_0x4f3072=a358_0xb21179[_0xd3ea0f(0xe0)](_0xb38c79,'package.json'),[_0x348d5a,_0x4a3076]=await Promise[_0xd3ea0f(0xce)]([getSdkStableVersion(),getSdkPackageName()]),_0x5d8fa4=_0x348d5a||FALLBACK_MIN_SDK_VERSION;if(!a358_0x1c809f[_0xd3ea0f(0xc4)](_0x4f3072))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d8fa4,'packageName':_0x4a3076,'stableVersion':_0x348d5a};try{const _0x24ef88=JSON[_0xd3ea0f(0xe7)](a358_0x1c809f[_0xd3ea0f(0xcf)](_0x4f3072,_0xd3ea0f(0xd5))),_0x53d070=_0x24ef88[_0xd3ea0f(0xcc)]||{},_0x2a3846=_0x24ef88[_0xd3ea0f(0xd3)]||{},_0x1cac3a=_0x53d070[_0x4a3076]||_0x2a3846[_0x4a3076];if(!_0x1cac3a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d8fa4,'packageName':_0x4a3076,'stableVersion':_0x348d5a};let _0x5ef7b7=getInstalledVersion(_0xb38c79,_0x4a3076);!_0x5ef7b7&&(_0x5ef7b7=_0x1cac3a);if(isNonNumericVersion(_0x1cac3a))return{'installed':!![],'version':_0x5ef7b7,'needsUpgrade':![],'minVersion':_0x5d8fa4,'packageName':_0x4a3076,'stableVersion':_0x348d5a};const _0x30c4f3=a358_0x345c50['coerce'](_0x5ef7b7),_0x37f1b5=a358_0x345c50['coerce'](_0x5d8fa4),_0x40ea7c=_0x30c4f3&&_0x37f1b5?a358_0x345c50['lt'](_0x30c4f3,_0x37f1b5):![];return{'installed':!![],'version':_0x5ef7b7,'needsUpgrade':_0x40ea7c,'minVersion':_0x5d8fa4,'packageName':_0x4a3076,'stableVersion':_0x348d5a};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d8fa4,'packageName':_0x4a3076,'stableVersion':_0x348d5a};}}export function checkSdkVersionSync(_0x23d2e4){const _0x414a2c=a358_0x34f9,_0x5381d0=a358_0xb21179[_0x414a2c(0xe0)](_0x23d2e4,_0x414a2c(0xd4)),_0x11ce43=_0x414a2c(0xda);if(!a358_0x1c809f['existsSync'](_0x5381d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11ce43,'stableVersion':null};try{const _0x2184ad=JSON[_0x414a2c(0xe7)](a358_0x1c809f[_0x414a2c(0xcf)](_0x5381d0,_0x414a2c(0xd5))),_0x5053fc=_0x2184ad[_0x414a2c(0xcc)]||{},_0x1362a=_0x2184ad[_0x414a2c(0xd3)]||{},_0x457f95=_0x5053fc[_0x11ce43]||_0x1362a[_0x11ce43];if(!_0x457f95)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11ce43,'stableVersion':null};let _0xa2ddc0=getInstalledVersion(_0x23d2e4,_0x11ce43);!_0xa2ddc0&&(_0xa2ddc0=_0x457f95);if(isNonNumericVersion(_0x457f95))return{'installed':!![],'version':_0xa2ddc0,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11ce43,'stableVersion':null};const _0x2e8a39=a358_0x345c50[_0x414a2c(0xc9)](_0xa2ddc0),_0x77ffa5=_0x2e8a39?a358_0x345c50['lt'](_0x2e8a39,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xa2ddc0,'needsUpgrade':_0x77ffa5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11ce43,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x11ce43,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x156ea4){const _0x2c814e=a358_0x34f9;if(!_0x156ea4[_0x2c814e(0xeb)])return;const _0x4d8725=_0x2c814e(0xdd),_0x43fa66=_0x2c814e(0xc3),_0xee4b00=_0x2c814e(0xca),_0x10111b=_0x156ea4[_0x2c814e(0xc5)]||_0x2c814e(0xda),_0x1001c5=_0x156ea4[_0x2c814e(0xcd)]||_0x156ea4[_0x2c814e(0xe5)],_0x281673=_0x2c814e(0xe1)+_0x10111b+'@'+(_0x1001c5||'latest');console[_0x2c814e(0xd9)](),console['log'](''+_0x4d8725+_0xee4b00+_0x2c814e(0xe8)+_0x43fa66),console[_0x2c814e(0xd9)](_0x4d8725+_0x2c814e(0xdc)+_0x10111b+'@'+_0x156ea4[_0x2c814e(0xe6)]+_0x43fa66),console[_0x2c814e(0xd9)](_0x4d8725+_0x2c814e(0xd0)+_0x1001c5+_0x43fa66),console[_0x2c814e(0xd9)](_0x4d8725+_0x2c814e(0xd7)+_0x281673+_0x43fa66),console[_0x2c814e(0xd9)]();}
@@ -1 +1 @@
1
- (function(_0x480c9f,_0xdfd20f){const _0x1459ba=a359_0x1819,_0x2b5eca=_0x480c9f();while(!![]){try{const _0x34656d=parseInt(_0x1459ba(0x1a4))/0x1+-parseInt(_0x1459ba(0x1c1))/0x2*(-parseInt(_0x1459ba(0x1a0))/0x3)+parseInt(_0x1459ba(0x1a5))/0x4*(parseInt(_0x1459ba(0x1a6))/0x5)+parseInt(_0x1459ba(0x1a1))/0x6+parseInt(_0x1459ba(0x1b7))/0x7*(parseInt(_0x1459ba(0x1a2))/0x8)+parseInt(_0x1459ba(0x1ac))/0x9*(-parseInt(_0x1459ba(0x1bc))/0xa)+-parseInt(_0x1459ba(0x1b8))/0xb*(parseInt(_0x1459ba(0x1ad))/0xc);if(_0x34656d===_0xdfd20f)break;else _0x2b5eca['push'](_0x2b5eca['shift']());}catch(_0x149180){_0x2b5eca['push'](_0x2b5eca['shift']());}}}(a359_0x42c6,0xd32bd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a359_0x135b52 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a359_0x1819(_0x1dd770,_0x28b761){_0x1dd770=_0x1dd770-0x19d;const _0x42c60e=a359_0x42c6();let _0x181957=_0x42c60e[_0x1dd770];return _0x181957;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x27ab8e){const _0x480158=a359_0x1819,_0x3652c8=_0x27ab8e[_0x480158(0x1b9)]||_0x480158(0x1ba);return _0x480158(0x1a3)+NPM_PACKAGE_NAME+'@'+_0x3652c8;}function getCurrentCliVersion(){const _0x47f830=a359_0x1819;try{const _0x11d723=fileURLToPath(import.meta.url),_0x21d3a2=resolve(dirname(_0x11d723),'../..'),_0x7089d=resolve(_0x21d3a2,_0x47f830(0x1c2)),_0x4d1604=JSON[_0x47f830(0x1aa)](readFileSync(_0x7089d,_0x47f830(0x19e)));return _0x4d1604['version']||_0x47f830(0x1c0);}catch{return _0x47f830(0x1c0);}}export async function checkCliVersion(){const _0x6cf5fe=a359_0x1819,_0x499b18=getCurrentCliVersion(),_0x38ed7d=await getCliVersionPolicy(),_0x205361=_0x38ed7d?.[_0x6cf5fe(0x1b9)]||null,_0x322dcf=_0x38ed7d?.[_0x6cf5fe(0x1bd)]||null;let _0x1f4561=![],_0x34bfa5=![];const _0x5eda26=a359_0x135b52['coerce'](_0x499b18);if(_0x5eda26&&_0x205361)try{const _0x1ac6d8=a359_0x135b52[_0x6cf5fe(0x1a9)](_0x205361);if(_0x1ac6d8)_0x1f4561=a359_0x135b52['lt'](_0x5eda26,_0x1ac6d8);}catch{}if(_0x5eda26&&_0x322dcf)try{const _0xf45ae2=a359_0x135b52[_0x6cf5fe(0x1a9)](_0x322dcf);if(_0xf45ae2)_0x34bfa5=a359_0x135b52['lt'](_0x5eda26,_0xf45ae2);}catch{}return _0x34bfa5&&(_0x1f4561=!![]),{'currentVersion':_0x499b18,'stableVersion':_0x205361,'minimumVersion':_0x322dcf,'needsUpgrade':_0x1f4561,'belowMinimum':_0x34bfa5,'isPreRelease':![],'upgradeMessage':_0x38ed7d?.[_0x6cf5fe(0x1a8)],'minimumVersionMessage':_0x38ed7d?.[_0x6cf5fe(0x1ae)]};}function a359_0x42c6(){const _0x268a55=['parse','\x20\x20\x20','1593YUJtuo','12hpAUyk','minimumVersionMessage','join','\x20\x20\x20Stable\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','currentVersion','filter','↪\x20New\x20version\x20available','\x20\x20\x20Recommended\x20stable:\x20','7iZAFtS','18934289WPqMKz','stableVersion','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','90940qqFNrq','minimumVersion','validation','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','2834jdjNif','package.json','Upgrade\x20command:\x20','needsUpgrade','Current\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','utf-8','log','1857yqCYUO','2525226RtQeaC','12316816kIzOIm','npm\x20install\x20-g\x20','1211837BDabar','244UcMlnB','12005iigxvf','Minimum\x20supported:\x20','upgradeMessage','coerce'];a359_0x42c6=function(){return _0x268a55;};return a359_0x42c6();}export function printCliUpgradeWarning(_0x77736e){const _0x314ec5=a359_0x1819;if(!_0x77736e[_0x314ec5(0x1c4)]&&!_0x77736e[_0x314ec5(0x1b2)])return;const _0x4be08d='\x1b[31m',_0x482de0='\x1b[33m',_0x5c4fb9='\x1b[0m',_0x4caaf7='\x1b[1m',_0x3e2f88=getCliUpgradeCommand(_0x77736e);console[_0x314ec5(0x19f)](),_0x77736e[_0x314ec5(0x1b2)]?(console[_0x314ec5(0x19f)](''+_0x4be08d+_0x4caaf7+_0x314ec5(0x19d)+_0x5c4fb9),console[_0x314ec5(0x19f)](_0x4be08d+_0x314ec5(0x1bb)+_0x77736e[_0x314ec5(0x1b3)]+_0x5c4fb9),_0x77736e[_0x314ec5(0x1bd)]&&console[_0x314ec5(0x19f)](_0x4be08d+'\x20\x20\x20Minimum\x20supported:\x20'+_0x77736e[_0x314ec5(0x1bd)]+_0x5c4fb9),_0x77736e[_0x314ec5(0x1b9)]&&_0x77736e[_0x314ec5(0x1b9)]!==_0x77736e['minimumVersion']&&console[_0x314ec5(0x19f)](_0x4be08d+_0x314ec5(0x1b6)+_0x77736e['stableVersion']+_0x5c4fb9),_0x77736e[_0x314ec5(0x1ae)]&&console[_0x314ec5(0x19f)](_0x4be08d+_0x314ec5(0x1ab)+_0x77736e[_0x314ec5(0x1ae)]+_0x5c4fb9),console[_0x314ec5(0x19f)](_0x4be08d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3e2f88+_0x5c4fb9)):(console[_0x314ec5(0x19f)](''+_0x482de0+_0x4caaf7+_0x314ec5(0x1b5)+_0x5c4fb9),console[_0x314ec5(0x19f)](_0x482de0+_0x314ec5(0x1bb)+_0x77736e[_0x314ec5(0x1b3)]+_0x5c4fb9),console[_0x314ec5(0x19f)](_0x482de0+_0x314ec5(0x1b0)+_0x77736e[_0x314ec5(0x1b9)]+_0x5c4fb9),_0x77736e[_0x314ec5(0x1a8)]&&console[_0x314ec5(0x19f)](_0x482de0+_0x314ec5(0x1ab)+_0x77736e['upgradeMessage']+_0x5c4fb9),console[_0x314ec5(0x19f)](_0x482de0+_0x314ec5(0x1bf)+_0x3e2f88+_0x5c4fb9)),console[_0x314ec5(0x19f)]();}export function assertCliVersionSupported(_0x625474){const _0x328893=a359_0x1819;if(!_0x625474[_0x328893(0x1b2)])return;const _0x304090=[_0x625474[_0x328893(0x1ae)],_0x328893(0x1c5)+_0x625474[_0x328893(0x1b3)],_0x625474[_0x328893(0x1bd)]?_0x328893(0x1a7)+_0x625474[_0x328893(0x1bd)]:null,_0x328893(0x1c3)+getCliUpgradeCommand(_0x625474)][_0x328893(0x1b4)](Boolean)[_0x328893(0x1af)]('\x0a');throw CliErrors[_0x328893(0x1be)](_0x328893(0x1b1),_0x304090);}
1
+ (function(_0x1833ce,_0x5355a9){const _0x5dd22f=a359_0x2e0d,_0xd32019=_0x1833ce();while(!![]){try{const _0x474ccb=-parseInt(_0x5dd22f(0x203))/0x1*(-parseInt(_0x5dd22f(0x1e3))/0x2)+-parseInt(_0x5dd22f(0x200))/0x3*(-parseInt(_0x5dd22f(0x1ea))/0x4)+-parseInt(_0x5dd22f(0x209))/0x5+parseInt(_0x5dd22f(0x1e2))/0x6*(-parseInt(_0x5dd22f(0x1f6))/0x7)+-parseInt(_0x5dd22f(0x206))/0x8*(-parseInt(_0x5dd22f(0x1ee))/0x9)+-parseInt(_0x5dd22f(0x1ed))/0xa*(parseInt(_0x5dd22f(0x1e9))/0xb)+parseInt(_0x5dd22f(0x1ff))/0xc*(parseInt(_0x5dd22f(0x1f1))/0xd);if(_0x474ccb===_0x5355a9)break;else _0xd32019['push'](_0xd32019['shift']());}catch(_0x3835b5){_0xd32019['push'](_0xd32019['shift']());}}}(a359_0xb3d6,0xadb87));import{readFileSync}from'node:fs';function a359_0xb3d6(){const _0x2ba510=['\x1b[0m','needsUpgrade','npm\x20install\x20-g\x20','package.json','15096301DOHJVE','68128irELyE','parse','Upgrade\x20command:\x20','10FfSMml','36tkWKKk','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','13RiphLF','belowMinimum','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','stableVersion','259lJmJxs','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion','minimumVersionMessage','Current\x20version:\x20','upgradeMessage','version','minimumVersion','7793796dEIBTZ','219LFHfSA','1.0.0','↪\x20Critical\x20CLI\x20upgrade\x20required','208333nwTyuU','utf-8','../..','782616czOkFo','\x1b[33m','\x20\x20\x20','2019795AhlPKf','coerce','\x20\x20\x20Minimum\x20supported:\x20','738cUtrMM','2ZwmhLj','log'];a359_0xb3d6=function(){return _0x2ba510;};return a359_0xb3d6();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a359_0x144073 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a359_0x2e0d(_0x5390a4,_0x561aad){_0x5390a4=_0x5390a4-0x1e0;const _0xb3d61f=a359_0xb3d6();let _0x2e0de1=_0xb3d61f[_0x5390a4];return _0x2e0de1;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5dba97){const _0x4250ea=a359_0x2e0d,_0x4ffa8c=_0x5dba97[_0x4250ea(0x1f5)]||'latest';return _0x4250ea(0x1e7)+NPM_PACKAGE_NAME+'@'+_0x4ffa8c;}function getCurrentCliVersion(){const _0x43a260=a359_0x2e0d;try{const _0x4428d7=fileURLToPath(import.meta.url),_0x57e4bf=resolve(dirname(_0x4428d7),_0x43a260(0x205)),_0x3cd549=resolve(_0x57e4bf,_0x43a260(0x1e8)),_0x1a6fb2=JSON[_0x43a260(0x1eb)](readFileSync(_0x3cd549,_0x43a260(0x204)));return _0x1a6fb2[_0x43a260(0x1fd)]||_0x43a260(0x201);}catch{return _0x43a260(0x201);}}export async function checkCliVersion(){const _0x2aa622=a359_0x2e0d,_0x194356=getCurrentCliVersion(),_0x1e6783=await getCliVersionPolicy(),_0x4f78d7=_0x1e6783?.[_0x2aa622(0x1f5)]||null,_0x43ef48=_0x1e6783?.[_0x2aa622(0x1fe)]||null;let _0x2cbd0a=![],_0x53c0a3=![];const _0x5db7ef=a359_0x144073[_0x2aa622(0x1e0)](_0x194356);if(_0x5db7ef&&_0x4f78d7)try{const _0x2fbe80=a359_0x144073[_0x2aa622(0x1e0)](_0x4f78d7);if(_0x2fbe80)_0x2cbd0a=a359_0x144073['lt'](_0x5db7ef,_0x2fbe80);}catch{}if(_0x5db7ef&&_0x43ef48)try{const _0x42233d=a359_0x144073[_0x2aa622(0x1e0)](_0x43ef48);if(_0x42233d)_0x53c0a3=a359_0x144073['lt'](_0x5db7ef,_0x42233d);}catch{}return _0x53c0a3&&(_0x2cbd0a=!![]),{'currentVersion':_0x194356,'stableVersion':_0x4f78d7,'minimumVersion':_0x43ef48,'needsUpgrade':_0x2cbd0a,'belowMinimum':_0x53c0a3,'isPreRelease':![],'upgradeMessage':_0x1e6783?.[_0x2aa622(0x1fc)],'minimumVersionMessage':_0x1e6783?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3e3028){const _0x5d681e=a359_0x2e0d;if(!_0x3e3028[_0x5d681e(0x1e6)]&&!_0x3e3028[_0x5d681e(0x1f2)])return;const _0x28c1d5='\x1b[31m',_0x1d8ea4=_0x5d681e(0x207),_0xec4528=_0x5d681e(0x1e5),_0xec386b=_0x5d681e(0x1f3),_0x126cde=getCliUpgradeCommand(_0x3e3028);console[_0x5d681e(0x1e4)](),_0x3e3028[_0x5d681e(0x1f2)]?(console[_0x5d681e(0x1e4)](''+_0x28c1d5+_0xec386b+_0x5d681e(0x202)+_0xec4528),console['log'](_0x28c1d5+_0x5d681e(0x1f8)+_0x3e3028[_0x5d681e(0x1f9)]+_0xec4528),_0x3e3028[_0x5d681e(0x1fe)]&&console[_0x5d681e(0x1e4)](_0x28c1d5+_0x5d681e(0x1e1)+_0x3e3028[_0x5d681e(0x1fe)]+_0xec4528),_0x3e3028[_0x5d681e(0x1f5)]&&_0x3e3028[_0x5d681e(0x1f5)]!==_0x3e3028['minimumVersion']&&console['log'](_0x28c1d5+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3e3028[_0x5d681e(0x1f5)]+_0xec4528),_0x3e3028['minimumVersionMessage']&&console[_0x5d681e(0x1e4)](_0x28c1d5+_0x5d681e(0x208)+_0x3e3028['minimumVersionMessage']+_0xec4528),console[_0x5d681e(0x1e4)](_0x28c1d5+_0x5d681e(0x1f0)+_0x126cde+_0xec4528)):(console['log'](''+_0x1d8ea4+_0xec386b+'↪\x20New\x20version\x20available'+_0xec4528),console[_0x5d681e(0x1e4)](_0x1d8ea4+_0x5d681e(0x1f8)+_0x3e3028[_0x5d681e(0x1f9)]+_0xec4528),console[_0x5d681e(0x1e4)](_0x1d8ea4+_0x5d681e(0x1ef)+_0x3e3028[_0x5d681e(0x1f5)]+_0xec4528),_0x3e3028[_0x5d681e(0x1fc)]&&console[_0x5d681e(0x1e4)](_0x1d8ea4+'\x20\x20\x20'+_0x3e3028['upgradeMessage']+_0xec4528),console[_0x5d681e(0x1e4)](_0x1d8ea4+_0x5d681e(0x1f0)+_0x126cde+_0xec4528)),console[_0x5d681e(0x1e4)]();}export function assertCliVersionSupported(_0x46d541){const _0x478f64=a359_0x2e0d;if(!_0x46d541[_0x478f64(0x1f2)])return;const _0x48db87=[_0x46d541[_0x478f64(0x1fa)],_0x478f64(0x1fb)+_0x46d541[_0x478f64(0x1f9)],_0x46d541[_0x478f64(0x1fe)]?'Minimum\x20supported:\x20'+_0x46d541[_0x478f64(0x1fe)]:null,_0x478f64(0x1ec)+getCliUpgradeCommand(_0x46d541)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x478f64(0x1f7)](_0x478f64(0x1f4),_0x48db87);}
@@ -1 +1 @@
1
- (function(_0x5405c1,_0x52106d){const _0x127bab=a360_0x1cf3,_0x43b8f0=_0x5405c1();while(!![]){try{const _0x265d36=parseInt(_0x127bab(0x84))/0x1*(parseInt(_0x127bab(0x89))/0x2)+parseInt(_0x127bab(0x81))/0x3+parseInt(_0x127bab(0x8d))/0x4*(-parseInt(_0x127bab(0x91))/0x5)+-parseInt(_0x127bab(0x8c))/0x6*(-parseInt(_0x127bab(0x92))/0x7)+parseInt(_0x127bab(0x94))/0x8*(parseInt(_0x127bab(0x88))/0x9)+-parseInt(_0x127bab(0x7d))/0xa*(-parseInt(_0x127bab(0x96))/0xb)+-parseInt(_0x127bab(0x82))/0xc*(parseInt(_0x127bab(0x8e))/0xd);if(_0x265d36===_0x52106d)break;else _0x43b8f0['push'](_0x43b8f0['shift']());}catch(_0x58920b){_0x43b8f0['push'](_0x43b8f0['shift']());}}}(a360_0x236a,0x4a223));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a360_0x524db9 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2897fe){const _0x489741=a360_0x1cf3,_0x257771=a360_0x524db9['valid'](_0x2897fe);return _0x257771?a360_0x524db9[_0x489741(0x8a)](_0x257771)?.[0x0]===_0x489741(0x98):![];}export function resolveProjectTemplateDescriptor(_0x470b54,_0x55d4fe){const _0x51f1a1=a360_0x1cf3;if(isBetaCliVersion(_0x55d4fe))return _0x470b54[_0x51f1a1(0x98)]?.[_0x51f1a1(0x83)]??_0x470b54[_0x51f1a1(0x83)];return _0x470b54[_0x51f1a1(0x83)];}function a360_0x236a(){const _0x104321=['292796LkmaGJ','17336293aUfeJV','length','string','35qXfOGz','7XnmojA','upgradeMessage','278264yLgxYR','minimumVersion','683958dMViRu','now','beta','latestVersion','trim','30SkCsOH','abort','minVersion','object','1675920vpcIvw','12qIspdj','projectTemplate','603BbTldz','json','recommendedVersion','cli','117ewUrDW','1262AKeIsa','prerelease','application/json','3430554ForTns'];a360_0x236a=function(){return _0x104321;};return a360_0x236a();}function pickString(_0x4642ba){const _0x3ce220=a360_0x1cf3;return typeof _0x4642ba===_0x3ce220(0x90)&&_0x4642ba[_0x3ce220(0x9a)]()[_0x3ce220(0x8f)]>0x0?_0x4642ba[_0x3ce220(0x9a)]():null;}function a360_0x1cf3(_0xf3909d,_0x15ed01){_0xf3909d=_0xf3909d-0x7d;const _0x236a69=a360_0x236a();let _0x1cf307=_0x236a69[_0xf3909d];return _0x1cf307;}function normalizeCliVersionPolicy(_0x4bbafb){const _0x51cc55=a360_0x1cf3;if(!_0x4bbafb||typeof _0x4bbafb!==_0x51cc55(0x80))return null;const _0x391633=_0x4bbafb,_0x3abc24=_0x391633[_0x51cc55(0x87)]&&typeof _0x391633[_0x51cc55(0x87)]===_0x51cc55(0x80)?_0x391633['cli']:_0x391633,_0x317045=pickString(_0x3abc24['stableVersion'])||pickString(_0x3abc24[_0x51cc55(0x99)])||pickString(_0x3abc24[_0x51cc55(0x86)]),_0xca3c92=pickString(_0x3abc24[_0x51cc55(0x95)])||pickString(_0x3abc24[_0x51cc55(0x7f)]);if(!_0x317045&&!_0xca3c92)return null;return{'stableVersion':_0x317045,'minimumVersion':_0xca3c92,'upgradeMessage':pickString(_0x3abc24[_0x51cc55(0x93)])||undefined,'minimumVersionMessage':pickString(_0x3abc24['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0xd2d33f){const _0x268220=a360_0x1cf3,_0xa10e35=new AbortController(),_0x1584dc=setTimeout(()=>_0xa10e35[_0x268220(0x7e)](),FETCH_TIMEOUT_MS);try{const _0x1924e9=await fetch(_0xd2d33f,{'headers':{'Accept':_0x268220(0x8b)},'signal':_0xa10e35['signal']});if(!_0x1924e9['ok'])return null;const _0x1b2fa8=await _0x1924e9[_0x268220(0x85)]();return _0x1b2fa8&&typeof _0x1b2fa8===_0x268220(0x80)?_0x1b2fa8:null;}catch{return null;}finally{clearTimeout(_0x1584dc);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x1fdaf1=await getRabetbaseCdnConfig();return _0x1fdaf1?{'config':_0x1fdaf1,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x563df5=a360_0x1cf3,_0x2b9c33=Date[_0x563df5(0x97)]();if(hasCachedConfig){const _0x244001=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2b9c33-cacheTime<_0x244001)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x2b9c33,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x29ad69,_0x4d1422){const _0x4d4374=a360_0x3cfa,_0x1b277b=_0x29ad69();while(!![]){try{const _0x2efc60=-parseInt(_0x4d4374(0xe6))/0x1+parseInt(_0x4d4374(0xde))/0x2*(-parseInt(_0x4d4374(0xe2))/0x3)+-parseInt(_0x4d4374(0xd9))/0x4+-parseInt(_0x4d4374(0xd8))/0x5+parseInt(_0x4d4374(0xdc))/0x6+parseInt(_0x4d4374(0xdb))/0x7*(parseInt(_0x4d4374(0xdf))/0x8)+parseInt(_0x4d4374(0xf0))/0x9;if(_0x2efc60===_0x4d1422)break;else _0x1b277b['push'](_0x1b277b['shift']());}catch(_0x46624d){_0x1b277b['push'](_0x1b277b['shift']());}}}(a360_0x9584,0x63076));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a360_0x3ea680 from'semver';function a360_0x9584(){const _0x3cc78a=['8ribgmu','string','trim','3uDDRFC','object','cli','projectTemplate','316065Nfkeje','minimumVersionMessage','upgradeMessage','beta','minimumVersion','now','length','stableVersion','json','valid','24555195LgfqrT','latestVersion','3170675DmierP','3122340ZYrkZv','abort','849527JZxNeH','60462hLxrBu','recommendedVersion','1446772meBTKA'];a360_0x9584=function(){return _0x3cc78a;};return a360_0x9584();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2855be){const _0x14b03e=a360_0x3cfa,_0x5879ef=a360_0x3ea680[_0x14b03e(0xef)](_0x2855be);return _0x5879ef?a360_0x3ea680['prerelease'](_0x5879ef)?.[0x0]===_0x14b03e(0xe9):![];}export function resolveProjectTemplateDescriptor(_0x4597f9,_0x232906){const _0x2589da=a360_0x3cfa;if(isBetaCliVersion(_0x232906))return _0x4597f9[_0x2589da(0xe9)]?.[_0x2589da(0xe5)]??_0x4597f9['projectTemplate'];return _0x4597f9[_0x2589da(0xe5)];}function pickString(_0x566888){const _0x5d8f62=a360_0x3cfa;return typeof _0x566888===_0x5d8f62(0xe0)&&_0x566888[_0x5d8f62(0xe1)]()[_0x5d8f62(0xec)]>0x0?_0x566888[_0x5d8f62(0xe1)]():null;}function a360_0x3cfa(_0xce3f29,_0x362980){_0xce3f29=_0xce3f29-0xd7;const _0x9584af=a360_0x9584();let _0x3cfa42=_0x9584af[_0xce3f29];return _0x3cfa42;}function normalizeCliVersionPolicy(_0x2357aa){const _0x17f2ec=a360_0x3cfa;if(!_0x2357aa||typeof _0x2357aa!==_0x17f2ec(0xe3))return null;const _0x557cec=_0x2357aa,_0x48ed9e=_0x557cec['cli']&&typeof _0x557cec[_0x17f2ec(0xe4)]===_0x17f2ec(0xe3)?_0x557cec['cli']:_0x557cec,_0x4802fa=pickString(_0x48ed9e[_0x17f2ec(0xed)])||pickString(_0x48ed9e[_0x17f2ec(0xd7)])||pickString(_0x48ed9e[_0x17f2ec(0xdd)]),_0x325f0d=pickString(_0x48ed9e[_0x17f2ec(0xea)])||pickString(_0x48ed9e['minVersion']);if(!_0x4802fa&&!_0x325f0d)return null;return{'stableVersion':_0x4802fa,'minimumVersion':_0x325f0d,'upgradeMessage':pickString(_0x48ed9e[_0x17f2ec(0xe8)])||undefined,'minimumVersionMessage':pickString(_0x48ed9e[_0x17f2ec(0xe7)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x12f8f0){const _0x3e28d8=a360_0x3cfa,_0x54f82f=new AbortController(),_0x560398=setTimeout(()=>_0x54f82f[_0x3e28d8(0xda)](),FETCH_TIMEOUT_MS);try{const _0x211ff7=await fetch(_0x12f8f0,{'headers':{'Accept':'application/json'},'signal':_0x54f82f['signal']});if(!_0x211ff7['ok'])return null;const _0x28f4f6=await _0x211ff7[_0x3e28d8(0xee)]();return _0x28f4f6&&typeof _0x28f4f6==='object'?_0x28f4f6:null;}catch{return null;}finally{clearTimeout(_0x560398);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x3ccd1b=await getRabetbaseCdnConfig();return _0x3ccd1b?{'config':_0x3ccd1b,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x40623a=a360_0x3cfa,_0x11469f=Date[_0x40623a(0xeb)]();if(hasCachedConfig){const _0x4bba37=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x11469f-cacheTime<_0x4bba37)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x11469f,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x2694ff,_0x12f9f0){const _0x2fbcf3=a361_0x1b6d,_0x281261=_0x2694ff();while(!![]){try{const _0xcc1685=parseInt(_0x2fbcf3(0x1d0))/0x1+parseInt(_0x2fbcf3(0x1cb))/0x2*(parseInt(_0x2fbcf3(0x1ca))/0x3)+-parseInt(_0x2fbcf3(0x1c5))/0x4*(-parseInt(_0x2fbcf3(0x1cd))/0x5)+parseInt(_0x2fbcf3(0x1c7))/0x6+parseInt(_0x2fbcf3(0x1cc))/0x7*(-parseInt(_0x2fbcf3(0x1c3))/0x8)+parseInt(_0x2fbcf3(0x1c9))/0x9*(-parseInt(_0x2fbcf3(0x1c6))/0xa)+-parseInt(_0x2fbcf3(0x1c8))/0xb*(parseInt(_0x2fbcf3(0x1c4))/0xc);if(_0xcc1685===_0x12f9f0)break;else _0x281261['push'](_0x281261['shift']());}catch(_0x41c265){_0x281261['push'](_0x281261['shift']());}}}(a361_0x52fa,0x439b8));import{initEnv}from'../constant/env.js';function a361_0x1b6d(_0x52819a,_0x28a7b7){_0x52819a=_0x52819a-0x1c3;const _0x52fa2f=a361_0x52fa();let _0x1b6d25=_0x52fa2f[_0x52819a];return _0x1b6d25;}import{readRawConfig,getConfigAppCode as a361_0x320a3c,getMultiAppConfigs as a361_0x4a4ac0,getTemplateBaseUrl as a361_0x4e6ae0}from'../context.js';function a361_0x52fa(){const _0x3b00df=['209494DJsUyw','87256djvrMh','12sAbBwP','500REEYoG','10GEvfHf','1595466aJtJoA','6558673ibrVAn','727074fJhgFk','673572NHlWIw','2yaGrgm','105QlHpgM','16705tsnjLu','env','string'];a361_0x52fa=function(){return _0x3b00df;};return a361_0x52fa();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3977c3){const _0x3b38a7=a361_0x1b6d,_0x3e853e=readRawConfig(_0x3977c3);return _0x3e853e[_0x3b38a7(0x1ce)]&&typeof _0x3e853e[_0x3b38a7(0x1ce)]===_0x3b38a7(0x1cf)&&initEnv(_0x3e853e[_0x3b38a7(0x1ce)]),_0x3e853e;}export function getConfigAppCode(){return a361_0x320a3c();}export function getMultiAppConfigs(_0x399a35='project'){return a361_0x4a4ac0(_0x399a35);}export function getTemplateBaseUrl(){return a361_0x4e6ae0();}
1
+ const a361_0x492723=a361_0xcb8d;(function(_0x56a22c,_0x244169){const _0xcbedd0=a361_0xcb8d,_0x2242d0=_0x56a22c();while(!![]){try{const _0x39908f=-parseInt(_0xcbedd0(0x135))/0x1+-parseInt(_0xcbedd0(0x13b))/0x2*(-parseInt(_0xcbedd0(0x138))/0x3)+parseInt(_0xcbedd0(0x13c))/0x4*(parseInt(_0xcbedd0(0x133))/0x5)+parseInt(_0xcbedd0(0x13d))/0x6+-parseInt(_0xcbedd0(0x137))/0x7+parseInt(_0xcbedd0(0x134))/0x8+-parseInt(_0xcbedd0(0x13a))/0x9*(parseInt(_0xcbedd0(0x139))/0xa);if(_0x39908f===_0x244169)break;else _0x2242d0['push'](_0x2242d0['shift']());}catch(_0x3c193f){_0x2242d0['push'](_0x2242d0['shift']());}}}(a361_0x487a,0xda2c5));import{initEnv}from'../constant/env.js';function a361_0xcb8d(_0x1bb5fb,_0x1cd1ed){_0x1bb5fb=_0x1bb5fb-0x132;const _0x487ad7=a361_0x487a();let _0xcb8d4e=_0x487ad7[_0x1bb5fb];return _0xcb8d4e;}import{readRawConfig,getConfigAppCode as a361_0x427d5f,getMultiAppConfigs as a361_0x56a9ea,getTemplateBaseUrl as a361_0x1b7946}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x25376b){const _0x4e33c0=a361_0xcb8d,_0xbbd91=readRawConfig(_0x25376b);return _0xbbd91[_0x4e33c0(0x136)]&&typeof _0xbbd91[_0x4e33c0(0x136)]==='string'&&initEnv(_0xbbd91[_0x4e33c0(0x136)]),_0xbbd91;}function a361_0x487a(){const _0x127890=['1336eGDdZD','3737352OFVXQP','project','11665aKuarN','11513024JCnxoZ','692702WKyWvU','env','11253221kqWjtf','51sYfiKG','420OMYFRT','242676YbmZUb','174728qFDNyW'];a361_0x487a=function(){return _0x127890;};return a361_0x487a();}export function getConfigAppCode(){return a361_0x427d5f();}export function getMultiAppConfigs(_0x4abd00=a361_0x492723(0x132)){return a361_0x56a9ea(_0x4abd00);}export function getTemplateBaseUrl(){return a361_0x1b7946();}
@@ -1 +1 @@
1
- (function(_0x30121a,_0x4261af){const _0x29c799=a362_0x4df8,_0xa65f2b=_0x30121a();while(!![]){try{const _0x2d9212=parseInt(_0x29c799(0x126))/0x1*(parseInt(_0x29c799(0x12d))/0x2)+parseInt(_0x29c799(0x120))/0x3*(parseInt(_0x29c799(0x128))/0x4)+parseInt(_0x29c799(0x127))/0x5*(-parseInt(_0x29c799(0x124))/0x6)+-parseInt(_0x29c799(0x12b))/0x7*(parseInt(_0x29c799(0x125))/0x8)+-parseInt(_0x29c799(0x122))/0x9+-parseInt(_0x29c799(0x129))/0xa+-parseInt(_0x29c799(0x12c))/0xb*(-parseInt(_0x29c799(0x11f))/0xc);if(_0x2d9212===_0x4261af)break;else _0xa65f2b['push'](_0xa65f2b['shift']());}catch(_0x358b36){_0xa65f2b['push'](_0xa65f2b['shift']());}}}(a362_0x4208,0x8fda0));function a362_0x4df8(_0x5c8f8c,_0x3349f0){_0x5c8f8c=_0x5c8f8c-0x11f;const _0x42081f=a362_0x4208();let _0x4df8fe=_0x42081f[_0x5c8f8c];return _0x4df8fe;}function a362_0x4208(){const _0x530d87=['50748umMfVK','789syHBBB','number','10256085WfcUqo','object','1746blqbKt','7373624rcVuBM','1lnolRW','13950PAKRVo','5204tIGplB','7868530LttEHL','isFinite','7OEfRdF','9757vQVkZf','311882gDmoyF'];a362_0x4208=function(){return _0x530d87;};return a362_0x4208();}function toFiniteNumber(_0x273cd6){const _0x36856c=a362_0x4df8;if(typeof _0x273cd6===_0x36856c(0x121)&&Number[_0x36856c(0x12a)](_0x273cd6))return _0x273cd6;if(typeof _0x273cd6==='string'){const _0x4af692=_0x273cd6['trim']();if(!_0x4af692)return undefined;const _0x3e606f=Number(_0x4af692);if(Number[_0x36856c(0x12a)](_0x3e606f))return _0x3e606f;}return undefined;}export function normalizeEntityWithIdResponse(_0x4fa783){const _0x5f23a7=a362_0x4df8,_0x127ac4=toFiniteNumber(_0x4fa783);if(_0x127ac4!==undefined)return{'id':_0x127ac4,'entity':{'id':_0x127ac4}};if(!_0x4fa783||typeof _0x4fa783!==_0x5f23a7(0x123))return{'id':undefined,'entity':{}};const _0x26c035={..._0x4fa783},_0x322958=toFiniteNumber(_0x26c035['id']);return _0x322958!==undefined&&(_0x26c035['id']=_0x322958),{'id':_0x322958,'entity':_0x26c035};}
1
+ function a362_0x4f81(){const _0x4cb387=['isFinite','72317QDeENA','358524oigcIa','object','225734PFPjYE','trim','579068VPGXrO','417024eBfkez','string','10vfjaoM','219790SBPPBq','189rfaSLv','2141670otYtQa','number','344hbzFbV'];a362_0x4f81=function(){return _0x4cb387;};return a362_0x4f81();}(function(_0x3acca8,_0x36fae4){const _0x252424=a362_0x48e6,_0x3c25c7=_0x3acca8();while(!![]){try{const _0x45aae1=parseInt(_0x252424(0xac))/0x1+parseInt(_0x252424(0xb8))/0x2+-parseInt(_0x252424(0xb6))/0x3+-parseInt(_0x252424(0xba))/0x4*(-parseInt(_0x252424(0xae))/0x5)+-parseInt(_0x252424(0xb1))/0x6+parseInt(_0x252424(0xb5))/0x7*(parseInt(_0x252424(0xb3))/0x8)+parseInt(_0x252424(0xb0))/0x9*(-parseInt(_0x252424(0xaf))/0xa);if(_0x45aae1===_0x36fae4)break;else _0x3c25c7['push'](_0x3c25c7['shift']());}catch(_0x254f0f){_0x3c25c7['push'](_0x3c25c7['shift']());}}}(a362_0x4f81,0x4f80e));function a362_0x48e6(_0x248e88,_0x52f629){_0x248e88=_0x248e88-0xac;const _0x4f81e2=a362_0x4f81();let _0x48e629=_0x4f81e2[_0x248e88];return _0x48e629;}function toFiniteNumber(_0x384412){const _0x25db72=a362_0x48e6;if(typeof _0x384412===_0x25db72(0xb2)&&Number[_0x25db72(0xb4)](_0x384412))return _0x384412;if(typeof _0x384412===_0x25db72(0xad)){const _0x4674f6=_0x384412[_0x25db72(0xb9)]();if(!_0x4674f6)return undefined;const _0x59421d=Number(_0x4674f6);if(Number[_0x25db72(0xb4)](_0x59421d))return _0x59421d;}return undefined;}export function normalizeEntityWithIdResponse(_0x4e4f37){const _0x5d148f=a362_0x48e6,_0x5add98=toFiniteNumber(_0x4e4f37);if(_0x5add98!==undefined)return{'id':_0x5add98,'entity':{'id':_0x5add98}};if(!_0x4e4f37||typeof _0x4e4f37!==_0x5d148f(0xb7))return{'id':undefined,'entity':{}};const _0x58edd5={..._0x4e4f37},_0x412001=toFiniteNumber(_0x58edd5['id']);return _0x412001!==undefined&&(_0x58edd5['id']=_0x412001),{'id':_0x412001,'entity':_0x58edd5};}
@@ -1 +1 @@
1
- (function(_0x5be2cc,_0x3253e2){const _0x290416=a363_0x24ea,_0x3d7883=_0x5be2cc();while(!![]){try{const _0x14a949=-parseInt(_0x290416(0x1de))/0x1+parseInt(_0x290416(0x1dd))/0x2+-parseInt(_0x290416(0x1da))/0x3+parseInt(_0x290416(0x1df))/0x4+-parseInt(_0x290416(0x1dc))/0x5+parseInt(_0x290416(0x1d8))/0x6*(-parseInt(_0x290416(0x1db))/0x7)+parseInt(_0x290416(0x1d9))/0x8*(parseInt(_0x290416(0x1e1))/0x9);if(_0x14a949===_0x3253e2)break;else _0x3d7883['push'](_0x3d7883['shift']());}catch(_0x16d9d3){_0x3d7883['push'](_0x3d7883['shift']());}}}(a363_0x582e,0xee69d));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a363_0x582e(){const _0x530e2f=['755933MgEoXz','5241500eXAMMZ','isDirectory','13893993YNVsoH','18CwutAb','8viDSfb','3378906lMmxVq','1072043wnEtAr','2309860Ivvwjt','1852086beLVRY'];a363_0x582e=function(){return _0x530e2f;};return a363_0x582e();}import{join}from'node:path';function a363_0x24ea(_0x52c66c,_0x457fb5){_0x52c66c=_0x52c66c-0x1d8;const _0x582ea5=a363_0x582e();let _0x24ea07=_0x582ea5[_0x52c66c];return _0x24ea07;}export async function copyDir(_0x4483c5,_0x3760bd){const _0x31b975=a363_0x24ea,_0x556c38=statSync(_0x4483c5);if(_0x556c38[_0x31b975(0x1e0)]()){!existsSync(_0x3760bd)&&mkdirSync(_0x3760bd,{'recursive':!![]});const _0x5d9670=readdirSync(_0x4483c5);for(const _0x1a3d05 of _0x5d9670){await copyDir(join(_0x4483c5,_0x1a3d05),join(_0x3760bd,_0x1a3d05));}}else copyFileSync(_0x4483c5,_0x3760bd);}export function ensureDir(_0xcb86){!existsSync(_0xcb86)&&mkdirSync(_0xcb86,{'recursive':!![]});}export function pathExists(_0x537a16){return existsSync(_0x537a16);}
1
+ (function(_0x477263,_0x1d02ba){const _0x50e5b3=a363_0x538c,_0x33c99c=_0x477263();while(!![]){try{const _0x3272ee=parseInt(_0x50e5b3(0x19d))/0x1*(parseInt(_0x50e5b3(0x1a4))/0x2)+-parseInt(_0x50e5b3(0x19e))/0x3*(parseInt(_0x50e5b3(0x19f))/0x4)+parseInt(_0x50e5b3(0x1a5))/0x5+-parseInt(_0x50e5b3(0x1a0))/0x6+parseInt(_0x50e5b3(0x19c))/0x7+parseInt(_0x50e5b3(0x1a1))/0x8*(parseInt(_0x50e5b3(0x1a2))/0x9)+-parseInt(_0x50e5b3(0x1a3))/0xa*(parseInt(_0x50e5b3(0x1a6))/0xb);if(_0x3272ee===_0x1d02ba)break;else _0x33c99c['push'](_0x33c99c['shift']());}catch(_0xc91df8){_0x33c99c['push'](_0x33c99c['shift']());}}}(a363_0x4678,0xb4832));function a363_0x4678(){const _0x285288=['32PdXwyF','1941417uVdkuq','20vvITXX','1107846SEDHWP','2012495rUHMeV','2286163FbZgDc','2907625iGdbbP','1USBCcn','851826eivllf','4Vttymk','4773978FmIByg'];a363_0x4678=function(){return _0x285288;};return a363_0x4678();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a363_0x538c(_0x5cecfa,_0x4dbd12){_0x5cecfa=_0x5cecfa-0x19c;const _0x4678b2=a363_0x4678();let _0x538ce7=_0x4678b2[_0x5cecfa];return _0x538ce7;}export async function copyDir(_0x3c2a8b,_0x4d9781){const _0x1c30ef=statSync(_0x3c2a8b);if(_0x1c30ef['isDirectory']()){!existsSync(_0x4d9781)&&mkdirSync(_0x4d9781,{'recursive':!![]});const _0x2839dd=readdirSync(_0x3c2a8b);for(const _0x43116e of _0x2839dd){await copyDir(join(_0x3c2a8b,_0x43116e),join(_0x4d9781,_0x43116e));}}else copyFileSync(_0x3c2a8b,_0x4d9781);}export function ensureDir(_0x1cf3de){!existsSync(_0x1cf3de)&&mkdirSync(_0x1cf3de,{'recursive':!![]});}export function pathExists(_0x473c8e){return existsSync(_0x473c8e);}
@@ -1 +1 @@
1
- const a364_0x3c08ee=a364_0x24eb;(function(_0x5811e6,_0x33c563){const _0x5b8d0c=a364_0x24eb,_0x5f2ef6=_0x5811e6();while(!![]){try{const _0x2ee03f=-parseInt(_0x5b8d0c(0xd8))/0x1+parseInt(_0x5b8d0c(0xcc))/0x2+parseInt(_0x5b8d0c(0xc9))/0x3+parseInt(_0x5b8d0c(0xca))/0x4+parseInt(_0x5b8d0c(0xda))/0x5+parseInt(_0x5b8d0c(0xd9))/0x6+parseInt(_0x5b8d0c(0xd7))/0x7*(-parseInt(_0x5b8d0c(0xe1))/0x8);if(_0x2ee03f===_0x33c563)break;else _0x5f2ef6['push'](_0x5f2ef6['shift']());}catch(_0x50e1fa){_0x5f2ef6['push'](_0x5f2ef6['shift']());}}}(a364_0x2d68,0x397de));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 _0x1e738a=getTemplateBaseUrl();return _0x1e738a+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a364_0x3c08ee(0xcf),a364_0x3c08ee(0xd0));export async function fetchGuidesFromCDN(){const _0x25a895=a364_0x3c08ee,_0x44adaa=getGuidesCdnUrl(),_0x23bd41=await fetch(_0x44adaa,{'headers':{'Accept':_0x25a895(0xd2)}});if(!_0x23bd41['ok'])throw new Error(_0x25a895(0xe3)+_0x23bd41[_0x25a895(0xc8)]+'\x20'+_0x23bd41[_0x25a895(0xcd)]);const _0x38094d=await _0x23bd41[_0x25a895(0xde)]();if(!_0x38094d['guides']||typeof _0x38094d[_0x25a895(0xdd)]!==_0x25a895(0xce))throw new Error(_0x25a895(0xc7));return _0x38094d;}export function writeGuidesToProject(_0xae1ef,_0xbaa7b0,_0x5eeca5='.lovrabet/skill/guides',_0x236602){const _0x342107=a364_0x3c08ee,_0x1e301c=join(_0xbaa7b0,_0x5eeca5);mkdirSync(_0x1e301c,{'recursive':!![]});for(const [_0xb5e374,_0x33c73c]of Object[_0x342107(0xcb)](_0xae1ef[_0x342107(0xdd)])){let _0x293372=_0x33c73c[_0x342107(0xdc)];_0x33c73c[_0x342107(0xc5)]&&(_0x293372=appendUpdateTime(_0x293372,_0x33c73c[_0x342107(0xc5)])),writeFileSync(join(_0x1e301c,_0xb5e374+'.md'),_0x293372,_0x342107(0xc6));}}export function appendUpdateTime(_0x458408,_0x23d4f7){const _0x50c569=a364_0x3c08ee;return _0x458408=_0x458408[_0x50c569(0xdf)](/\n*>更新时间:.*$/m,''),_0x458408[_0x50c569(0xe6)]()+(_0x50c569(0xd1)+_0x23d4f7);}export function getSkillTemplate(_0x25e116){const _0x19ddb5=a364_0x3c08ee;return _0x25e116[_0x19ddb5(0xd4)]?.[_0x19ddb5(0xdc)]||'';}export function appendExtendContents(_0x6d1070,_0xb1cf53,_0x565049){const _0x382546=a364_0x3c08ee,_0x15db2c=[];for(const [,_0x11e1f4]of Object[_0x382546(0xcb)](_0xb1cf53[_0x382546(0xdd)])){_0x11e1f4[_0x382546(0xe5)]&&_0x15db2c[_0x382546(0xe4)](_0x11e1f4[_0x382546(0xe5)][_0x382546(0xe6)]());}if(_0x15db2c['length']===0x0)return _0x6d1070;return _0x6d1070[_0x382546(0xe6)]()+'\x0a\x0a'+_0x15db2c[_0x382546(0xd5)]('\x0a\x0a')+'\x0a';}function a364_0x24eb(_0x181df0,_0x2cd4cd){_0x181df0=_0x181df0-0xc5;const _0x2d68f0=a364_0x2d68();let _0x24eb91=_0x2d68f0[_0x181df0];return _0x24eb91;}export function writeSkillFile(_0x4ea252,_0x8cea4f,_0x245029){const _0x238ad3=a364_0x3c08ee,_0x990de4=getSkillTemplate(_0x4ea252);if(!_0x990de4)throw new Error(_0x238ad3(0xdb));const _0x355bf9=dirname(_0x8cea4f);mkdirSync(_0x355bf9,{'recursive':!![]});let _0x53b53e=_0x990de4[_0x238ad3(0xdf)](/\{\{IDE_NAME\}\}/g,_0x245029);_0x53b53e=appendExtendContents(_0x53b53e,_0x4ea252),_0x4ea252[_0x238ad3(0xd4)][_0x238ad3(0xc5)]&&(_0x53b53e=appendUpdateTime(_0x53b53e,_0x4ea252[_0x238ad3(0xd4)][_0x238ad3(0xc5)])),writeFileSync(_0x8cea4f,_0x53b53e,_0x238ad3(0xc6));}export async function installGuides(_0x8e0205){const _0xe27f07=a364_0x3c08ee,_0x61af2d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x61af2d,_0x8e0205),Object[_0xe27f07(0xd6)](_0x61af2d[_0xe27f07(0xdd)])[_0xe27f07(0xe0)];}export function getGuidesSummary(_0x581620){const _0x333e5b=a364_0x3c08ee;return Object[_0x333e5b(0xcb)](_0x581620[_0x333e5b(0xdd)])['map'](([_0x33c1d2,_0x23c21c])=>({'key':_0x33c1d2,'title':_0x23c21c[_0x333e5b(0xe2)],'path':_0x23c21c[_0x333e5b(0xd3)]}));}function a364_0x2d68(){const _0x478c37=['1082688qraUhx','entries','304000nNVgVU','statusText','object','.lovrabet','cache','\x0a\x0a>更新时间:','application/json','path','skillTemplate','join','keys','34797DVsRYH','284888jYmlHl','1980660BucKLH','847170oCfOQk','CDN\x20data\x20is\x20missing\x20skillTemplate','content','guides','json','replace','length','1336liDPhW','title','CDN\x20request\x20failed:\x20','push','extendContent','trimEnd','lastUpdated','utf-8','CDN\x20returned\x20invalid\x20data','status','1284945KbdMES'];a364_0x2d68=function(){return _0x478c37;};return a364_0x2d68();}
1
+ const a364_0x3ed17a=a364_0x4580;(function(_0x456134,_0x1d87ff){const _0xc2adae=a364_0x4580,_0x16b141=_0x456134();while(!![]){try{const _0x467408=parseInt(_0xc2adae(0x1ff))/0x1*(-parseInt(_0xc2adae(0x1e6))/0x2)+parseInt(_0xc2adae(0x1f0))/0x3+-parseInt(_0xc2adae(0x1e2))/0x4*(-parseInt(_0xc2adae(0x1da))/0x5)+-parseInt(_0xc2adae(0x1f8))/0x6*(parseInt(_0xc2adae(0x1f9))/0x7)+-parseInt(_0xc2adae(0x1f5))/0x8+parseInt(_0xc2adae(0x1db))/0x9*(parseInt(_0xc2adae(0x1f1))/0xa)+parseInt(_0xc2adae(0x1e4))/0xb;if(_0x467408===_0x1d87ff)break;else _0x16b141['push'](_0x16b141['shift']());}catch(_0xfcc407){_0x16b141['push'](_0x16b141['shift']());}}}(a364_0x22d8,0x94d1b));import{mkdirSync,writeFileSync}from'node:fs';function a364_0x4580(_0x36b406,_0x47296a){_0x36b406=_0x36b406-0x1da;const _0x22d850=a364_0x22d8();let _0x4580ba=_0x22d850[_0x36b406];return _0x4580ba;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4129d8=getTemplateBaseUrl();return _0x4129d8+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a364_0x3ed17a(0x1eb),a364_0x3ed17a(0x1f4));export async function fetchGuidesFromCDN(){const _0x3440ac=a364_0x3ed17a,_0x26e875=getGuidesCdnUrl(),_0x171f61=await fetch(_0x26e875,{'headers':{'Accept':_0x3440ac(0x1ee)}});if(!_0x171f61['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x171f61[_0x3440ac(0x1f7)]+'\x20'+_0x171f61[_0x3440ac(0x1e5)]);const _0x349f57=await _0x171f61[_0x3440ac(0x1fd)]();if(!_0x349f57[_0x3440ac(0x1ef)]||typeof _0x349f57['guides']!==_0x3440ac(0x1f6))throw new Error(_0x3440ac(0x1ea));return _0x349f57;}function a364_0x22d8(){const _0x23f91b=['4167445YAiICQ','5499WDkHqr','lastUpdated','utf-8','CDN\x20data\x20is\x20missing\x20skillTemplate','path','title','.lovrabet/skill/guides','4LJyxke','keys','18528961QufMVL','statusText','10UrGRnE','skillTemplate','length','entries','CDN\x20returned\x20invalid\x20data','.lovrabet','extendContent','\x0a\x0a>更新时间:','application/json','guides','246708ZIUTro','11530IXBhUb','map','replace','cache','8064160CClHgP','object','status','7734CQvJEd','3878WmXFSu','trimEnd','.md','content','json','push','194594uKKgVL'];a364_0x22d8=function(){return _0x23f91b;};return a364_0x22d8();}export function writeGuidesToProject(_0x4dad38,_0x2542e0,_0x553be8=a364_0x3ed17a(0x1e1),_0x25f6c9){const _0x58f2a1=a364_0x3ed17a,_0x257f9c=join(_0x2542e0,_0x553be8);mkdirSync(_0x257f9c,{'recursive':!![]});for(const [_0x12f170,_0x3bbbb0]of Object[_0x58f2a1(0x1e9)](_0x4dad38[_0x58f2a1(0x1ef)])){let _0x12a54f=_0x3bbbb0[_0x58f2a1(0x1fc)];_0x3bbbb0[_0x58f2a1(0x1dc)]&&(_0x12a54f=appendUpdateTime(_0x12a54f,_0x3bbbb0['lastUpdated'])),writeFileSync(join(_0x257f9c,_0x12f170+_0x58f2a1(0x1fb)),_0x12a54f,_0x58f2a1(0x1dd));}}export function appendUpdateTime(_0x28e261,_0x4470a5){const _0x53650b=a364_0x3ed17a;return _0x28e261=_0x28e261['replace'](/\n*>更新时间:.*$/m,''),_0x28e261[_0x53650b(0x1fa)]()+(_0x53650b(0x1ed)+_0x4470a5);}export function getSkillTemplate(_0x369606){const _0x53f659=a364_0x3ed17a;return _0x369606['skillTemplate']?.[_0x53f659(0x1fc)]||'';}export function appendExtendContents(_0x4b5e94,_0xd50716,_0x456171){const _0x44334e=a364_0x3ed17a,_0x56f291=[];for(const [,_0x55e49d]of Object[_0x44334e(0x1e9)](_0xd50716[_0x44334e(0x1ef)])){_0x55e49d[_0x44334e(0x1ec)]&&_0x56f291[_0x44334e(0x1fe)](_0x55e49d[_0x44334e(0x1ec)][_0x44334e(0x1fa)]());}if(_0x56f291['length']===0x0)return _0x4b5e94;return _0x4b5e94['trimEnd']()+'\x0a\x0a'+_0x56f291['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x324f19,_0xe6c009,_0x6ba2dc){const _0x101c90=a364_0x3ed17a,_0x1b37a0=getSkillTemplate(_0x324f19);if(!_0x1b37a0)throw new Error(_0x101c90(0x1de));const _0x26d3a2=dirname(_0xe6c009);mkdirSync(_0x26d3a2,{'recursive':!![]});let _0x32fa0a=_0x1b37a0[_0x101c90(0x1f3)](/\{\{IDE_NAME\}\}/g,_0x6ba2dc);_0x32fa0a=appendExtendContents(_0x32fa0a,_0x324f19),_0x324f19['skillTemplate']['lastUpdated']&&(_0x32fa0a=appendUpdateTime(_0x32fa0a,_0x324f19[_0x101c90(0x1e7)][_0x101c90(0x1dc)])),writeFileSync(_0xe6c009,_0x32fa0a,_0x101c90(0x1dd));}export async function installGuides(_0x5ad293){const _0x5b4a72=a364_0x3ed17a,_0x577b56=await fetchGuidesFromCDN();return writeGuidesToProject(_0x577b56,_0x5ad293),Object[_0x5b4a72(0x1e3)](_0x577b56['guides'])[_0x5b4a72(0x1e8)];}export function getGuidesSummary(_0x3b3989){const _0x25bf79=a364_0x3ed17a;return Object[_0x25bf79(0x1e9)](_0x3b3989[_0x25bf79(0x1ef)])[_0x25bf79(0x1f2)](([_0x355c7b,_0x1ca6c9])=>({'key':_0x355c7b,'title':_0x1ca6c9[_0x25bf79(0x1e0)],'path':_0x1ca6c9[_0x25bf79(0x1df)]}));}
@@ -1 +1 @@
1
- (function(_0x1becc3,_0x44991d){const _0x179cf9=a365_0x11b5,_0x4b8bf7=_0x1becc3();while(!![]){try{const _0x3a2249=parseInt(_0x179cf9(0x144))/0x1*(parseInt(_0x179cf9(0x14b))/0x2)+parseInt(_0x179cf9(0x13c))/0x3+parseInt(_0x179cf9(0x145))/0x4*(-parseInt(_0x179cf9(0x13a))/0x5)+parseInt(_0x179cf9(0x151))/0x6+parseInt(_0x179cf9(0x147))/0x7+-parseInt(_0x179cf9(0x138))/0x8+-parseInt(_0x179cf9(0x141))/0x9;if(_0x3a2249===_0x44991d)break;else _0x4b8bf7['push'](_0x4b8bf7['shift']());}catch(_0x2b8d24){_0x4b8bf7['push'](_0x4b8bf7['shift']());}}}(a365_0xafd7,0xdfd54));export async function httpRequest(_0x503fcc,_0x2c5ce7={}){const _0xd4756e=a365_0x11b5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2c5ce7;let _0x247bec=null;for(let _0x4318ad=0x0;_0x4318ad<=retries;_0x4318ad++){try{const _0xe8050e=new AbortController(),_0x563562=setTimeout(()=>_0xe8050e[_0xd4756e(0x148)](),timeout),_0x27f4d9=await fetch(_0x503fcc,{'headers':headers,'signal':_0xe8050e['signal']});clearTimeout(_0x563562);let _0x483e34;const _0x22a3d2=_0x27f4d9[_0xd4756e(0x153)][_0xd4756e(0x152)](_0xd4756e(0x13f));return _0x22a3d2?.[_0xd4756e(0x14e)](_0xd4756e(0x143))?_0x483e34=await _0x27f4d9['json']():_0x483e34=await _0x27f4d9[_0xd4756e(0x13b)](),{'ok':_0x27f4d9['ok'],'status':_0x27f4d9['status'],'statusText':_0x27f4d9[_0xd4756e(0x13e)],'data':_0x483e34,'headers':_0x27f4d9[_0xd4756e(0x153)],'url':_0x27f4d9[_0xd4756e(0x140)],'text':()=>_0x27f4d9[_0xd4756e(0x13b)]()};}catch(_0x46d41f){_0x247bec=_0x46d41f instanceof Error?_0x46d41f:new Error(String(_0x46d41f));if(_0x4318ad===retries)break;if(shouldRetry(_0x46d41f)){console[_0xd4756e(0x14d)](_0xd4756e(0x13d)+(_0x4318ad+0x1)+_0xd4756e(0x142)+retryDelay+_0xd4756e(0x14a)),await sleep(retryDelay);continue;}else break;}}throw _0x247bec||new Error('Request\x20failed');}function shouldRetry(_0x3ab1b3){const _0x13a2f6=a365_0x11b5;if(_0x3ab1b3 instanceof Error){if(_0x3ab1b3[_0x13a2f6(0x149)]===_0x13a2f6(0x146))return![];if(_0x3ab1b3[_0x13a2f6(0x149)]===_0x13a2f6(0x150)&&_0x3ab1b3['message'][_0x13a2f6(0x14e)](_0x13a2f6(0x14c)))return!![];if(_0x3ab1b3['message'][_0x13a2f6(0x14e)](_0x13a2f6(0x14f)))return!![];if(_0x3ab1b3[_0x13a2f6(0x139)]['includes'](_0x13a2f6(0x154)))return![];}return![];}function a365_0x11b5(_0x4118d3,_0x315838){_0x4118d3=_0x4118d3-0x138;const _0xafd729=a365_0xafd7();let _0x11b533=_0xafd729[_0x4118d3];return _0x11b533;}function sleep(_0x149051){return new Promise(_0xc78748=>setTimeout(_0xc78748,_0x149051));}function a365_0xafd7(){const _0x5baae3=['\x20in\x20','application/json','567Rohuqh','1551092QznDOr','AbortError','12321162ZXrlpn','abort','name','ms...','54sfkpVV','fetch','log','includes','ECONNRESET','TypeError','8380902eJBABo','get','headers','ENOTFOUND','2574144aJhZOe','message','10eVTuid','text','5451264HqvXyv','*\x20Request\x20failed;\x20retry\x20','statusText','content-type','url','26777214GammAF'];a365_0xafd7=function(){return _0x5baae3;};return a365_0xafd7();}export function validateUrl(_0x57f275){try{return new URL(_0x57f275),!![];}catch{return![];}}
1
+ function a365_0x51e5(){const _0x5cf1e3=['380052hrWLXe','name','14qQmTTg','Request\x20failed','get','77SAfMyL','application/json','message','statusText','ENOTFOUND','1176232IFNQIy','headers','includes','2800020jenljO','content-type','61118vSipCU','AbortError','42856495CVvaul','ECONNRESET','1769136JvvgCX','json','text','status','460FXNZso','signal','3221820uoOSYQ','fetch','15jcbhiV','log','\x20in\x20'];a365_0x51e5=function(){return _0x5cf1e3;};return a365_0x51e5();}(function(_0x49842e,_0x1ab6be){const _0x518b44=a365_0x34e2,_0xfc5099=_0x49842e();while(!![]){try{const _0x171f81=-parseInt(_0x518b44(0x1b9))/0x1*(-parseInt(_0x518b44(0x1ca))/0x2)+parseInt(_0x518b44(0x1c3))/0x3+-parseInt(_0x518b44(0x1bd))/0x4*(parseInt(_0x518b44(0x1c5))/0x5)+parseInt(_0x518b44(0x1b7))/0x6+-parseInt(_0x518b44(0x1cd))/0x7*(parseInt(_0x518b44(0x1b4))/0x8)+parseInt(_0x518b44(0x1c8))/0x9*(-parseInt(_0x518b44(0x1c1))/0xa)+parseInt(_0x518b44(0x1bb))/0xb;if(_0x171f81===_0x1ab6be)break;else _0xfc5099['push'](_0xfc5099['shift']());}catch(_0x1c9b36){_0xfc5099['push'](_0xfc5099['shift']());}}}(a365_0x51e5,0xeeb9e));export async function httpRequest(_0x580dea,_0x822081={}){const _0x554776=a365_0x34e2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x822081;let _0x239855=null;for(let _0x35aa1f=0x0;_0x35aa1f<=retries;_0x35aa1f++){try{const _0x4365ab=new AbortController(),_0x271968=setTimeout(()=>_0x4365ab['abort'](),timeout),_0x1eb44a=await fetch(_0x580dea,{'headers':headers,'signal':_0x4365ab[_0x554776(0x1c2)]});clearTimeout(_0x271968);let _0xbb312c;const _0x563c99=_0x1eb44a[_0x554776(0x1b5)][_0x554776(0x1cc)](_0x554776(0x1b8));return _0x563c99?.[_0x554776(0x1b6)](_0x554776(0x1ce))?_0xbb312c=await _0x1eb44a[_0x554776(0x1be)]():_0xbb312c=await _0x1eb44a['text'](),{'ok':_0x1eb44a['ok'],'status':_0x1eb44a[_0x554776(0x1c0)],'statusText':_0x1eb44a[_0x554776(0x1b2)],'data':_0xbb312c,'headers':_0x1eb44a[_0x554776(0x1b5)],'url':_0x1eb44a['url'],'text':()=>_0x1eb44a[_0x554776(0x1bf)]()};}catch(_0x5d3e0e){_0x239855=_0x5d3e0e instanceof Error?_0x5d3e0e:new Error(String(_0x5d3e0e));if(_0x35aa1f===retries)break;if(shouldRetry(_0x5d3e0e)){console[_0x554776(0x1c6)]('*\x20Request\x20failed;\x20retry\x20'+(_0x35aa1f+0x1)+_0x554776(0x1c7)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x239855||new Error(_0x554776(0x1cb));}function shouldRetry(_0x104a36){const _0x1dd9bf=a365_0x34e2;if(_0x104a36 instanceof Error){if(_0x104a36[_0x1dd9bf(0x1c9)]===_0x1dd9bf(0x1ba))return![];if(_0x104a36[_0x1dd9bf(0x1c9)]==='TypeError'&&_0x104a36['message'][_0x1dd9bf(0x1b6)](_0x1dd9bf(0x1c4)))return!![];if(_0x104a36[_0x1dd9bf(0x1cf)]['includes'](_0x1dd9bf(0x1bc)))return!![];if(_0x104a36['message']['includes'](_0x1dd9bf(0x1b3)))return![];}return![];}function a365_0x34e2(_0x2e677f,_0xe05c8b){_0x2e677f=_0x2e677f-0x1b2;const _0x51e59b=a365_0x51e5();let _0x34e2a8=_0x51e59b[_0x2e677f];return _0x34e2a8;}function sleep(_0x471b7a){return new Promise(_0x5f2fd=>setTimeout(_0x5f2fd,_0x471b7a));}export function validateUrl(_0x387faa){try{return new URL(_0x387faa),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a366_0x15a7(){const _0x493fa0=['isRaw','stdin','nonInteractive','12558848BfWcXB','27842zLHWSJ','isTTY','1439841BiVVdZ','1958166JsxuqN','true','setRawMode','29BouoiI','1180780TqkVDh','3691530gAYitC','stdout','2676244VCbmnn'];a366_0x15a7=function(){return _0x493fa0;};return a366_0x15a7();}(function(_0x299171,_0x574131){const _0x1fa4ed=a366_0x52e8,_0x2d1483=_0x299171();while(!![]){try{const _0x5b147b=parseInt(_0x1fa4ed(0x1d5))/0x1*(-parseInt(_0x1fa4ed(0x1cf))/0x2)+parseInt(_0x1fa4ed(0x1d1))/0x3+-parseInt(_0x1fa4ed(0x1d9))/0x4+-parseInt(_0x1fa4ed(0x1d6))/0x5+-parseInt(_0x1fa4ed(0x1d7))/0x6+parseInt(_0x1fa4ed(0x1d2))/0x7+parseInt(_0x1fa4ed(0x1ce))/0x8;if(_0x5b147b===_0x574131)break;else _0x2d1483['push'](_0x2d1483['shift']());}catch(_0x5d299f){_0x2d1483['push'](_0x2d1483['shift']());}}}(a366_0x15a7,0x62f70));function a366_0x52e8(_0x1abf7c,_0x471aa1){_0x1abf7c=_0x1abf7c-0x1cd;const _0x15a769=a366_0x15a7();let _0x52e8f1=_0x15a769[_0x1abf7c];return _0x52e8f1;}function env(_0x32f726){return process.env[`RABETBASE_${_0x32f726}`]||process.env[`LOVRABET_${_0x32f726}`]||undefined;}export function isNonInteractive(_0x4165ee){const _0x410ac1=a366_0x52e8;return!!(_0x4165ee[_0x410ac1(0x1cd)]||_0x4165ee['ci']||env('CI')==='true'||process.env.CI===_0x410ac1(0x1d3)||!process[_0x410ac1(0x1d8)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x540396=a366_0x52e8;if(!process[_0x540396(0x1db)][_0x540396(0x1d0)])return![];try{const _0x46c508=process[_0x540396(0x1db)][_0x540396(0x1da)];return process[_0x540396(0x1db)]['setRawMode'](!![]),process[_0x540396(0x1db)][_0x540396(0x1d4)](_0x46c508??![]),!![];}catch{return![];}}
1
+ function a366_0x11c2(){const _0xa3447d=['32351VoCiAS','2400VEsPHA','nonInteractive','true','stdout','1965000FeLMqT','844LtLYeO','isTTY','stdin','7270205TpmRIr','12761448GxWWlB','43uFAijQ','24627PYAClU','6DzXeES','setRawMode','isRaw','18ugEWbI','1536017WjtLyp','12962PpYdKJ'];a366_0x11c2=function(){return _0xa3447d;};return a366_0x11c2();}function a366_0x3226(_0x55eeaf,_0x28baef){_0x55eeaf=_0x55eeaf-0x8b;const _0x11c296=a366_0x11c2();let _0x3226e5=_0x11c296[_0x55eeaf];return _0x3226e5;}(function(_0x35df48,_0x3b0b07){const _0x2c7a2e=a366_0x3226,_0x38aa2d=_0x35df48();while(!![]){try{const _0x155b1a=parseInt(_0x2c7a2e(0x8e))/0x1*(parseInt(_0x2c7a2e(0x95))/0x2)+parseInt(_0x2c7a2e(0x8f))/0x3*(parseInt(_0x2c7a2e(0x9c))/0x4)+parseInt(_0x2c7a2e(0x8c))/0x5*(-parseInt(_0x2c7a2e(0x90))/0x6)+-parseInt(_0x2c7a2e(0x94))/0x7+parseInt(_0x2c7a2e(0x8d))/0x8+-parseInt(_0x2c7a2e(0x93))/0x9*(parseInt(_0x2c7a2e(0x9b))/0xa)+parseInt(_0x2c7a2e(0x96))/0xb*(-parseInt(_0x2c7a2e(0x97))/0xc);if(_0x155b1a===_0x3b0b07)break;else _0x38aa2d['push'](_0x38aa2d['shift']());}catch(_0x54ffc7){_0x38aa2d['push'](_0x38aa2d['shift']());}}}(a366_0x11c2,0xe83fb));function env(_0x1b8353){return process.env[`RABETBASE_${_0x1b8353}`]||process.env[`LOVRABET_${_0x1b8353}`]||undefined;}export function isNonInteractive(_0x445759){const _0x226a5e=a366_0x3226;return!!(_0x445759[_0x226a5e(0x98)]||_0x445759['ci']||env('CI')==='true'||process.env.CI===_0x226a5e(0x99)||!process[_0x226a5e(0x9a)][_0x226a5e(0x9d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x135c6c=a366_0x3226;if(!process['stdin']['isTTY'])return![];try{const _0x16ce2d=process['stdin'][_0x135c6c(0x92)];return process[_0x135c6c(0x8b)][_0x135c6c(0x91)](!![]),process[_0x135c6c(0x8b)][_0x135c6c(0x91)](_0x16ce2d??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a367_0x4221(){const _0x19c2f2=['getWinstonInstance','.lovrabet.log','existsSync','clearLogs','464216hJPvEb','utf8','join','dirname','filter','Failed\x20to\x20clear\x20logs:','errors','35575Fmjwyk','Failed:\x20','Completed:\x20','error','14Akdhor','setLogPath','format','red','32fKibDq','readFileSync','11Bicnol','parse','winstonLogger','rawCommand','782148TQhIVa','printf','initWinstonLogger','logFilePath','transports','log','createLogger','clear','158KssLJI','green','now','info','message','duration','addColors','43YXxSkf','4190ysTpgd','level','success','warn','2911416IwOORz','Starting:\x20','currentRawCommand','stringify','261HaGoOJ','setRawCommand','84900MlVxMG','logTask','timestamp','File','yellow','blue','trim','readLogs','toISOString','Failed\x20to\x20read\x20logs:'];a367_0x4221=function(){return _0x19c2f2;};return a367_0x4221();}const a367_0x2cd10f=a367_0x35d4;(function(_0x59fa0b,_0x45c8de){const _0x1ff05a=a367_0x35d4,_0x1da3b5=_0x59fa0b();while(!![]){try{const _0x5e3941=-parseInt(_0x1ff05a(0xa8))/0x1*(parseInt(_0x1ff05a(0xa1))/0x2)+-parseInt(_0x1ff05a(0xb3))/0x3+parseInt(_0x1ff05a(0xd0))/0x4*(-parseInt(_0x1ff05a(0xc8))/0x5)+-parseInt(_0x1ff05a(0x99))/0x6+-parseInt(_0x1ff05a(0xcc))/0x7*(-parseInt(_0x1ff05a(0xc1))/0x8)+-parseInt(_0x1ff05a(0xb1))/0x9*(parseInt(_0x1ff05a(0xa9))/0xa)+parseInt(_0x1ff05a(0x95))/0xb*(parseInt(_0x1ff05a(0xad))/0xc);if(_0x5e3941===_0x45c8de)break;else _0x1da3b5['push'](_0x1da3b5['shift']());}catch(_0x31f5c9){_0x1da3b5['push'](_0x1da3b5['shift']());}}}(a367_0x4221,0x1f23a));import a367_0x1bba2a from'winston';function a367_0x35d4(_0x413fe7,_0x5c8dda){_0x413fe7=_0x413fe7-0x95;const _0x42217c=a367_0x4221();let _0x35d453=_0x42217c[_0x413fe7];return _0x35d453;}import a367_0x5e4def from'node:fs';import a367_0x55efed from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a367_0x2cd10f(0xaf)]='';constructor(){const _0xd78da1=a367_0x2cd10f;this[_0xd78da1(0x9c)]='';}[a367_0x2cd10f(0xb2)](_0x451ca2){this['currentRawCommand']=_0x451ca2;}['initWinstonLogger'](){const _0x348b37=a367_0x2cd10f,_0x43305b=a367_0x55efed[_0x348b37(0xc4)](this['logFilePath']);!a367_0x5e4def['existsSync'](_0x43305b)&&a367_0x5e4def['mkdirSync'](_0x43305b,{'recursive':!![]});const _0x403156=a367_0x1bba2a[_0x348b37(0xce)]['combine'](a367_0x1bba2a[_0x348b37(0xce)][_0x348b37(0xb5)](),a367_0x1bba2a[_0x348b37(0xce)][_0x348b37(0xc7)]({'stack':!![]}),a367_0x1bba2a['format'][_0x348b37(0x9a)](_0x23510a=>{const _0x3ae19c=_0x348b37,_0x2b4ec8={'timestamp':_0x23510a[_0x3ae19c(0xb5)]||new Date()[_0x3ae19c(0xbb)](),'level':_0x23510a[_0x3ae19c(0xaa)]||'info','command':_0x23510a['command']||'unknown','rawCommand':_0x23510a[_0x3ae19c(0x98)]||this['currentRawCommand']||undefined,'message':_0x23510a[_0x3ae19c(0xa5)]||'','duration':_0x23510a[_0x3ae19c(0xa6)]||undefined,'details':_0x23510a['details']||undefined};return JSON[_0x3ae19c(0xb0)](_0x2b4ec8);}));this[_0x348b37(0x97)]=a367_0x1bba2a[_0x348b37(0x9f)]({'level':'info','format':_0x403156,'transports':[new a367_0x1bba2a[(_0x348b37(0x9d))][(_0x348b37(0xb6))]({'filename':this[_0x348b37(0x9c)],'level':_0x348b37(0xa4)})],'silent':![]}),a367_0x1bba2a[_0x348b37(0xa7)]({'success':_0x348b37(0xa2),'error':_0x348b37(0xcf),'warn':_0x348b37(0xb7),'info':_0x348b37(0xb8)});}[a367_0x2cd10f(0xcd)](_0xf23570){const _0x4e05a5=a367_0x2cd10f;this[_0x4e05a5(0x9c)]=a367_0x55efed[_0x4e05a5(0xc3)](_0xf23570,_0x4e05a5(0xbe)),this[_0x4e05a5(0x97)]&&this[_0x4e05a5(0x97)][_0x4e05a5(0xa0)](),this[_0x4e05a5(0x9b)]();}[a367_0x2cd10f(0xa4)](_0xe994f8,_0x216929,_0x1fed59){const _0x57873d=a367_0x2cd10f;if(!this[_0x57873d(0x9c)]||!this['winstonLogger'])return;this[_0x57873d(0x97)]['info'](_0x216929,{'command':_0xe994f8,'details':_0x1fed59});}[a367_0x2cd10f(0xab)](_0x4b39ac,_0x2963af,_0x34f878,_0x1979cc){const _0x2456ea=a367_0x2cd10f;if(!this[_0x2456ea(0x9c)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2456ea(0x9e)]('info',_0x2963af,{'level':'success','command':_0x4b39ac,'duration':_0x34f878,'details':_0x1979cc});}[a367_0x2cd10f(0xcb)](_0x3398a9,_0x247e29,_0x1e8acf){const _0x287672=a367_0x2cd10f;if(!this[_0x287672(0x9c)]||!this[_0x287672(0x97)])return;this['winstonLogger'][_0x287672(0xcb)](_0x247e29,{'command':_0x3398a9,'details':_0x1e8acf});}[a367_0x2cd10f(0xac)](_0x1d61a4,_0xfe47e4,_0x1d8c2a){const _0x34750d=a367_0x2cd10f;if(!this[_0x34750d(0x9c)]||!this[_0x34750d(0x97)])return;this['winstonLogger'][_0x34750d(0xac)](_0xfe47e4,{'command':_0x1d61a4,'details':_0x1d8c2a});}async[a367_0x2cd10f(0xb4)](_0x384dea,_0x39f798,_0x17ec5c){const _0x3bf6a1=a367_0x2cd10f,_0x3bc17d=Date[_0x3bf6a1(0xa3)]();this[_0x3bf6a1(0xa4)](_0x384dea,_0x3bf6a1(0xae)+_0x39f798);try{const _0x14af83=await _0x17ec5c(),_0x567de7=Date['now']()-_0x3bc17d;return this[_0x3bf6a1(0xab)](_0x384dea,_0x3bf6a1(0xca)+_0x39f798,_0x567de7),_0x14af83;}catch(_0x1d5bb1){const _0x34cbcb=Date['now']()-_0x3bc17d;this[_0x3bf6a1(0xcb)](_0x384dea,_0x3bf6a1(0xc9)+_0x39f798,{'error':_0x1d5bb1 instanceof Error?_0x1d5bb1[_0x3bf6a1(0xa5)]:String(_0x1d5bb1),'duration':_0x34cbcb});throw _0x1d5bb1;}}[a367_0x2cd10f(0xba)](){const _0x2e426e=a367_0x2cd10f;try{if(!a367_0x5e4def[_0x2e426e(0xbf)](this['logFilePath']))return[];const _0x462d19=a367_0x5e4def[_0x2e426e(0xd1)](this['logFilePath'],_0x2e426e(0xc2));return _0x462d19['split']('\x0a')[_0x2e426e(0xc5)](_0x5a3949=>_0x5a3949[_0x2e426e(0xb9)]())['map'](_0x4fffaf=>JSON[_0x2e426e(0x96)](_0x4fffaf));}catch(_0x16b823){return console[_0x2e426e(0xac)](_0x2e426e(0xbc),_0x16b823),[];}}[a367_0x2cd10f(0xc0)](){const _0xe8dcd6=a367_0x2cd10f;try{a367_0x5e4def[_0xe8dcd6(0xbf)](this[_0xe8dcd6(0x9c)])&&a367_0x5e4def['writeFileSync'](this[_0xe8dcd6(0x9c)],'',_0xe8dcd6(0xc2));}catch(_0x9397c){console[_0xe8dcd6(0xac)](_0xe8dcd6(0xc6),_0x9397c);}}[a367_0x2cd10f(0xbd)](){const _0x535a83=a367_0x2cd10f;return this[_0x535a83(0x97)];}}export const logger=new Logger();
1
+ const a367_0x3eab36=a367_0x708c;(function(_0x22fb6a,_0x13b284){const _0x142aa3=a367_0x708c,_0x12c2cf=_0x22fb6a();while(!![]){try{const _0x513314=-parseInt(_0x142aa3(0x115))/0x1*(parseInt(_0x142aa3(0x126))/0x2)+-parseInt(_0x142aa3(0x105))/0x3+-parseInt(_0x142aa3(0x106))/0x4+parseInt(_0x142aa3(0x10b))/0x5+-parseInt(_0x142aa3(0xf8))/0x6+-parseInt(_0x142aa3(0x109))/0x7+parseInt(_0x142aa3(0x110))/0x8;if(_0x513314===_0x13b284)break;else _0x12c2cf['push'](_0x12c2cf['shift']());}catch(_0x8d2552){_0x12c2cf['push'](_0x12c2cf['shift']());}}}(a367_0x382a,0x7703c));function a367_0x382a(){const _0x2226f3=['625486BbUVfY','setLogPath','logFilePath','dirname','utf8','4407558GjZNue','Starting:\x20','trim','createLogger','blue','existsSync','Failed:\x20','warn','timestamp','toISOString','command','details','setRawCommand','926025WouOeQ','489944hhUJfg','filter','mkdirSync','6530713ICkOjN','log','3830010pJgSKz','File','readFileSync','initWinstonLogger','errors','19565448roTwua','join','currentRawCommand','yellow','info','2ISRYvi','map','now','error','getWinstonInstance','success','format','Completed:\x20','stringify','.lovrabet.log','winstonLogger','combine','clearLogs','transports','addColors','level','Failed\x20to\x20read\x20logs:'];a367_0x382a=function(){return _0x2226f3;};return a367_0x382a();}import a367_0x2f1e34 from'winston';import a367_0x5eb829 from'node:fs';import a367_0x5df719 from'node:path';function a367_0x708c(_0x3d3ff0,_0x5c1fd2){_0x3d3ff0=_0x3d3ff0-0xf5;const _0x382a94=a367_0x382a();let _0x708c24=_0x382a94[_0x3d3ff0];return _0x708c24;}class Logger{['winstonLogger'];[a367_0x3eab36(0xf5)];[a367_0x3eab36(0x112)]='';constructor(){const _0x4e6594=a367_0x3eab36;this[_0x4e6594(0xf5)]='';}[a367_0x3eab36(0x104)](_0x5c1958){const _0x129ef8=a367_0x3eab36;this[_0x129ef8(0x112)]=_0x5c1958;}[a367_0x3eab36(0x10e)](){const _0x124918=a367_0x3eab36,_0x54d932=a367_0x5df719[_0x124918(0xf6)](this[_0x124918(0xf5)]);!a367_0x5eb829[_0x124918(0xfd)](_0x54d932)&&a367_0x5eb829[_0x124918(0x108)](_0x54d932,{'recursive':!![]});const _0x25d062=a367_0x2f1e34[_0x124918(0x11b)][_0x124918(0x120)](a367_0x2f1e34[_0x124918(0x11b)][_0x124918(0x100)](),a367_0x2f1e34['format'][_0x124918(0x10f)]({'stack':!![]}),a367_0x2f1e34[_0x124918(0x11b)]['printf'](_0x1e2780=>{const _0x18f624=_0x124918,_0x4cc412={'timestamp':_0x1e2780[_0x18f624(0x100)]||new Date()[_0x18f624(0x101)](),'level':_0x1e2780[_0x18f624(0x124)]||'info','command':_0x1e2780[_0x18f624(0x102)]||'unknown','rawCommand':_0x1e2780['rawCommand']||this[_0x18f624(0x112)]||undefined,'message':_0x1e2780['message']||'','duration':_0x1e2780['duration']||undefined,'details':_0x1e2780[_0x18f624(0x103)]||undefined};return JSON[_0x18f624(0x11d)](_0x4cc412);}));this[_0x124918(0x11f)]=a367_0x2f1e34[_0x124918(0xfb)]({'level':'info','format':_0x25d062,'transports':[new a367_0x2f1e34[(_0x124918(0x122))][(_0x124918(0x10c))]({'filename':this['logFilePath'],'level':_0x124918(0x114)})],'silent':![]}),a367_0x2f1e34[_0x124918(0x123)]({'success':'green','error':'red','warn':_0x124918(0x113),'info':_0x124918(0xfc)});}[a367_0x3eab36(0x127)](_0x358941){const _0x321b11=a367_0x3eab36;this[_0x321b11(0xf5)]=a367_0x5df719[_0x321b11(0x111)](_0x358941,_0x321b11(0x11e)),this[_0x321b11(0x11f)]&&this[_0x321b11(0x11f)]['clear'](),this[_0x321b11(0x10e)]();}[a367_0x3eab36(0x114)](_0x34e332,_0x4948c8,_0x92d4e0){const _0x404227=a367_0x3eab36;if(!this[_0x404227(0xf5)]||!this[_0x404227(0x11f)])return;this['winstonLogger'][_0x404227(0x114)](_0x4948c8,{'command':_0x34e332,'details':_0x92d4e0});}['success'](_0x245490,_0x285f8c,_0x497eab,_0x2c0097){const _0x47b54b=a367_0x3eab36;if(!this['logFilePath']||!this[_0x47b54b(0x11f)])return;this[_0x47b54b(0x11f)][_0x47b54b(0x10a)]('info',_0x285f8c,{'level':_0x47b54b(0x11a),'command':_0x245490,'duration':_0x497eab,'details':_0x2c0097});}['error'](_0x56ed86,_0x2d1bfe,_0x1f57ad){const _0x545803=a367_0x3eab36;if(!this[_0x545803(0xf5)]||!this['winstonLogger'])return;this['winstonLogger'][_0x545803(0x118)](_0x2d1bfe,{'command':_0x56ed86,'details':_0x1f57ad});}[a367_0x3eab36(0xff)](_0x55c952,_0x54d7c8,_0x2c738e){const _0xa3f30f=a367_0x3eab36;if(!this[_0xa3f30f(0xf5)]||!this[_0xa3f30f(0x11f)])return;this[_0xa3f30f(0x11f)][_0xa3f30f(0xff)](_0x54d7c8,{'command':_0x55c952,'details':_0x2c738e});}async['logTask'](_0x14141a,_0x51064d,_0x481d7a){const _0x2babe2=a367_0x3eab36,_0x51f898=Date[_0x2babe2(0x117)]();this['info'](_0x14141a,_0x2babe2(0xf9)+_0x51064d);try{const _0x47c52a=await _0x481d7a(),_0x309c56=Date['now']()-_0x51f898;return this[_0x2babe2(0x11a)](_0x14141a,_0x2babe2(0x11c)+_0x51064d,_0x309c56),_0x47c52a;}catch(_0x258ada){const _0x518d76=Date[_0x2babe2(0x117)]()-_0x51f898;this[_0x2babe2(0x118)](_0x14141a,_0x2babe2(0xfe)+_0x51064d,{'error':_0x258ada instanceof Error?_0x258ada['message']:String(_0x258ada),'duration':_0x518d76});throw _0x258ada;}}['readLogs'](){const _0x3b3c4c=a367_0x3eab36;try{if(!a367_0x5eb829['existsSync'](this[_0x3b3c4c(0xf5)]))return[];const _0x2de4d0=a367_0x5eb829[_0x3b3c4c(0x10d)](this[_0x3b3c4c(0xf5)],_0x3b3c4c(0xf7));return _0x2de4d0['split']('\x0a')[_0x3b3c4c(0x107)](_0x7ac346=>_0x7ac346[_0x3b3c4c(0xfa)]())[_0x3b3c4c(0x116)](_0x50273d=>JSON['parse'](_0x50273d));}catch(_0x4601dc){return console[_0x3b3c4c(0xff)](_0x3b3c4c(0x125),_0x4601dc),[];}}[a367_0x3eab36(0x121)](){const _0x3569e3=a367_0x3eab36;try{a367_0x5eb829[_0x3569e3(0xfd)](this[_0x3569e3(0xf5)])&&a367_0x5eb829['writeFileSync'](this[_0x3569e3(0xf5)],'',_0x3569e3(0xf7));}catch(_0x47500a){console[_0x3569e3(0xff)]('Failed\x20to\x20clear\x20logs:',_0x47500a);}}[a367_0x3eab36(0x119)](){const _0x303b58=a367_0x3eab36;return this[_0x303b58(0x11f)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x2cde09,_0x37da86){const _0x555629=a368_0x11ef,_0x394a16=_0x2cde09();while(!![]){try{const _0x17ac56=parseInt(_0x555629(0x115))/0x1*(-parseInt(_0x555629(0x10f))/0x2)+parseInt(_0x555629(0x119))/0x3*(parseInt(_0x555629(0x11b))/0x4)+-parseInt(_0x555629(0x11a))/0x5+parseInt(_0x555629(0x10e))/0x6+parseInt(_0x555629(0x114))/0x7+-parseInt(_0x555629(0x110))/0x8+parseInt(_0x555629(0x112))/0x9*(parseInt(_0x555629(0x116))/0xa);if(_0x17ac56===_0x37da86)break;else _0x394a16['push'](_0x394a16['shift']());}catch(_0x392fca){_0x394a16['push'](_0x394a16['shift']());}}}(a368_0x3c34,0xb6aa1));import{CliErrors}from'../errors.js';function a368_0x3c34(){const _0x151f80=['isArray','parse','99lWPfpp','3189160GxrbMa','84988vLjWph','1197702keRbKM','2FCaarC','6148456DDVRBD','validation','126IFvaJC','--params\x20must\x20be\x20a\x20JSON\x20object','2357677nlAhXt','237129RsfpoS','824380TAbFMa'];a368_0x3c34=function(){return _0x151f80;};return a368_0x3c34();}function a368_0x11ef(_0x1d77cd,_0x49838f){_0x1d77cd=_0x1d77cd-0x10e;const _0x3c343f=a368_0x3c34();let _0x11ef20=_0x3c343f[_0x1d77cd];return _0x11ef20;}export function parseJsonParams(_0x278fa1){const _0x3f8b77=a368_0x11ef;if(!_0x278fa1)return undefined;let _0x5bcd20;try{_0x5bcd20=JSON[_0x3f8b77(0x118)](_0x278fa1);}catch{throw CliErrors[_0x3f8b77(0x111)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x278fa1);}if(!_0x5bcd20||typeof _0x5bcd20!=='object'||Array[_0x3f8b77(0x117)](_0x5bcd20))throw CliErrors[_0x3f8b77(0x111)](_0x3f8b77(0x113),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x5bcd20;}
1
+ (function(_0x519e52,_0x46fec8){const _0x353b7d=a368_0x2f13,_0x16a403=_0x519e52();while(!![]){try{const _0x31a576=parseInt(_0x353b7d(0x111))/0x1*(parseInt(_0x353b7d(0x109))/0x2)+parseInt(_0x353b7d(0x103))/0x3+parseInt(_0x353b7d(0x114))/0x4*(parseInt(_0x353b7d(0x10f))/0x5)+-parseInt(_0x353b7d(0x10e))/0x6*(-parseInt(_0x353b7d(0x104))/0x7)+parseInt(_0x353b7d(0x10d))/0x8*(-parseInt(_0x353b7d(0x113))/0x9)+parseInt(_0x353b7d(0x106))/0xa*(-parseInt(_0x353b7d(0x112))/0xb)+parseInt(_0x353b7d(0x110))/0xc;if(_0x31a576===_0x46fec8)break;else _0x16a403['push'](_0x16a403['shift']());}catch(_0xae8be8){_0x16a403['push'](_0x16a403['shift']());}}}(a368_0x2791,0x4d6d5));import{CliErrors}from'../errors.js';function a368_0x2f13(_0x62f37c,_0x3773c1){_0x62f37c=_0x62f37c-0x103;const _0x2791b0=a368_0x2791();let _0x2f1339=_0x2791b0[_0x62f37c];return _0x2f1339;}function a368_0x2791(){const _0x119846=['9pSyzkD','4alNVOl','183864ohQLVd','541422pZVWbY','--params\x20must\x20be\x20a\x20JSON\x20object','791210sWcLBF','parse','object','6WYhddP','isArray','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','2398552ZxZOHU','24Bfdmvd','552535YqKJbZ','7241652MTcxhx','28719XAmjSX','77mcZbdq'];a368_0x2791=function(){return _0x119846;};return a368_0x2791();}export function parseJsonParams(_0x4b7c0d){const _0x4a4e85=a368_0x2f13;if(!_0x4b7c0d)return undefined;let _0x1cf9d9;try{_0x1cf9d9=JSON[_0x4a4e85(0x107)](_0x4b7c0d);}catch{throw CliErrors[_0x4a4e85(0x10c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4b7c0d);}if(!_0x1cf9d9||typeof _0x1cf9d9!==_0x4a4e85(0x108)||Array[_0x4a4e85(0x10a)](_0x1cf9d9))throw CliErrors[_0x4a4e85(0x10c)](_0x4a4e85(0x105),_0x4a4e85(0x10b));return _0x1cf9d9;}
@@ -1 +1 @@
1
- function a369_0x2872(_0x23917e,_0x36285d){_0x23917e=_0x23917e-0x6e;const _0x28287f=a369_0x2828();let _0x287287=_0x28287f[_0x23917e];return _0x287287;}const a369_0x59d008=a369_0x2872;function a369_0x2828(){const _0x404839=['540348GEWPYk','5328ptEfEf','725260yaEunq','8208184RXZnqM','.cmd','609OjhjWr','3478970PAPyjv','win32','791156HdFUoB','5243812qaamrS'];a369_0x2828=function(){return _0x404839;};return a369_0x2828();}(function(_0x1e21fb,_0x15983b){const _0x197074=a369_0x2872,_0x2f10bc=_0x1e21fb();while(!![]){try{const _0x28497e=-parseInt(_0x197074(0x76))/0x1+parseInt(_0x197074(0x72))/0x2+parseInt(_0x197074(0x6f))/0x3*(parseInt(_0x197074(0x75))/0x4)+parseInt(_0x197074(0x70))/0x5+parseInt(_0x197074(0x74))/0x6+parseInt(_0x197074(0x73))/0x7+-parseInt(_0x197074(0x77))/0x8;if(_0x28497e===_0x15983b)break;else _0x2f10bc['push'](_0x2f10bc['shift']());}catch(_0x353da6){_0x2f10bc['push'](_0x2f10bc['shift']());}}}(a369_0x2828,0x6dc7b));export const isWindows=process['platform']===a369_0x59d008(0x71);export function resolveNpmBin(_0x24719f){const _0x54a2cf=a369_0x59d008;return isWindows?_0x24719f+_0x54a2cf(0x6e):_0x24719f;}
1
+ const a369_0x30d124=a369_0x3ad3;function a369_0x5d53(){const _0x15a6b3=['platform','4kmKSgn','132MztPcc','1808254clZLFs','win32','.cmd','391725TZvLor','5060127ZHzQPx','88imBCEZ','117374ISAfYV','446562KpgAio','887635puFDHm','310oIKohe','69710190nxDmku'];a369_0x5d53=function(){return _0x15a6b3;};return a369_0x5d53();}(function(_0x1f0315,_0x1d8ff0){const _0x3db21a=a369_0x3ad3,_0x286208=_0x1f0315();while(!![]){try{const _0x4e5608=-parseInt(_0x3db21a(0x94))/0x1+-parseInt(_0x3db21a(0x8c))/0x2+-parseInt(_0x3db21a(0x8a))/0x3*(parseInt(_0x3db21a(0x92))/0x4)+-parseInt(_0x3db21a(0x89))/0x5*(parseInt(_0x3db21a(0x93))/0x6)+-parseInt(_0x3db21a(0x8e))/0x7*(-parseInt(_0x3db21a(0x8b))/0x8)+-parseInt(_0x3db21a(0x8d))/0x9*(parseInt(_0x3db21a(0x8f))/0xa)+parseInt(_0x3db21a(0x90))/0xb;if(_0x4e5608===_0x1d8ff0)break;else _0x286208['push'](_0x286208['shift']());}catch(_0x2b1cd5){_0x286208['push'](_0x286208['shift']());}}}(a369_0x5d53,0xdfd0b));function a369_0x3ad3(_0x1d5d90,_0xe91a13){_0x1d5d90=_0x1d5d90-0x89;const _0x5d53f9=a369_0x5d53();let _0x3ad370=_0x5d53f9[_0x1d5d90];return _0x3ad370;}export const isWindows=process[a369_0x30d124(0x91)]===a369_0x30d124(0x95);export function resolveNpmBin(_0x46fdec){const _0x2e152a=a369_0x30d124;return isWindows?_0x46fdec+_0x2e152a(0x96):_0x46fdec;}
@@ -1 +1 @@
1
- export function sleep(_0x45b328){return new Promise(_0x30a824=>setTimeout(_0x30a824,_0x45b328));}
1
+ export function sleep(_0x56a06e){return new Promise(_0x244828=>setTimeout(_0x244828,_0x56a06e));}
@@ -1 +1 @@
1
- const a371_0x13ac49=a371_0xc2da;(function(_0x206b79,_0x58d356){const _0x1cd0a0=a371_0xc2da,_0x7feb5=_0x206b79();while(!![]){try{const _0x2c91bc=parseInt(_0x1cd0a0(0x164))/0x1*(-parseInt(_0x1cd0a0(0x179))/0x2)+parseInt(_0x1cd0a0(0x199))/0x3+parseInt(_0x1cd0a0(0x175))/0x4+parseInt(_0x1cd0a0(0x170))/0x5+parseInt(_0x1cd0a0(0x1a1))/0x6*(-parseInt(_0x1cd0a0(0x189))/0x7)+parseInt(_0x1cd0a0(0x192))/0x8+parseInt(_0x1cd0a0(0x190))/0x9*(-parseInt(_0x1cd0a0(0x19d))/0xa);if(_0x2c91bc===_0x58d356)break;else _0x7feb5['push'](_0x7feb5['shift']());}catch(_0x1cd7c7){_0x7feb5['push'](_0x7feb5['shift']());}}}(a371_0x270f,0x66d26));import a371_0x1c3ee4 from'node:fs';import a371_0x306d40 from'node:path';import{logger}from'../utils/logger.js';function a371_0xc2da(_0x4a0414,_0x1657f1){_0x4a0414=_0x4a0414-0x15b;const _0x270fe9=a371_0x270f();let _0xc2da33=_0x270fe9[_0x4a0414];return _0xc2da33;}import{getCliVersion}from'../utils/version.js';function a371_0x270f(){const _0x2288e3=['695874ihHfGh','.js','.css','.scss','pop','Template\x20content\x20replacement\x20failed','copyFile','includes','\x20},','name:\x20\x22','api','getHours','4juWSSO','replaceContent','getMinutes','endsWith','toComponentName','now','getDate','writeFile','info','formatLocalTimestamp','alias','Template\x20content\x20replacement\x20completed','2847945XBsPUf','pad','join','promises','LOVRABET','2398820wzCIxg','extname','message','error','397054mqzlYy','\x0a\x20\x20\x20\x20{\x20','.tpl','sdk-config','datasetCode:\x20\x22','toUpperCase','slice','.json','replaceApiContent','mkdir','split','tableName:\x20\x22','isFile','template','.jsx','Starting\x20template\x20content\x20replacement','35cJktVy','isDirectory','name','toDisplayTitle','.md','toLowerCase','processDirectory','18oQROnK','readdir','2591424PiJckH','getFullYear','push','processFile','map','processTemplate','getSeconds','1343391FbbJly','getMonth','replace','padStart','729290rOImGU','alias:\x20\x22','readFile','.tsx'];a371_0x270f=function(){return _0x2288e3;};return a371_0x270f();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5f234d){const _0x32f157=a371_0xc2da;return String(_0x5f234d)[_0x32f157(0x19c)](0x2,'0');}static[a371_0x13ac49(0x16d)](_0x4dc49d){const _0x4d5942=a371_0x13ac49,_0x36ca49=_0x4dc49d[_0x4d5942(0x193)](),_0x467bb8=this['pad'](_0x4dc49d[_0x4d5942(0x19a)]()+0x1),_0x5f24c8=this[_0x4d5942(0x171)](_0x4dc49d[_0x4d5942(0x16a)]()),_0x592cf4=this[_0x4d5942(0x171)](_0x4dc49d[_0x4d5942(0x163)]()),_0xb3a9b=this[_0x4d5942(0x171)](_0x4dc49d[_0x4d5942(0x166)]()),_0x26e295=this[_0x4d5942(0x171)](_0x4dc49d[_0x4d5942(0x198)]());return{'createdAt':_0x36ca49+'-'+_0x467bb8+'-'+_0x5f24c8+'\x20'+_0x592cf4+':'+_0xb3a9b+':'+_0x26e295,'createdDate':_0x36ca49+'-'+_0x467bb8+'-'+_0x5f24c8,'createdTime':_0x592cf4+':'+_0xb3a9b+':'+_0x26e295};}static['toComponentName'](_0x109e48){const _0x5f1ab9=a371_0x13ac49,_0x114f84=_0x109e48[_0x5f1ab9(0x183)]('/')['pop']()||_0x109e48;return _0x114f84[_0x5f1ab9(0x183)]('-')['map'](_0x50d367=>_0x50d367['charAt'](0x0)[_0x5f1ab9(0x17e)]()+_0x50d367[_0x5f1ab9(0x17f)](0x1)[_0x5f1ab9(0x18e)]())[_0x5f1ab9(0x172)]('');}static[a371_0x13ac49(0x18c)](_0x633df4){const _0x2c5317=a371_0x13ac49,_0x2a0d0d=_0x633df4['split']('/')[_0x2c5317(0x15c)]()||_0x633df4;return _0x2a0d0d[_0x2c5317(0x183)]('-')[_0x2c5317(0x196)](_0x16decc=>_0x16decc['charAt'](0x0)['toUpperCase']()+_0x16decc['slice'](0x1)[_0x2c5317(0x18e)]())[_0x2c5317(0x172)]('\x20');}static[a371_0x13ac49(0x165)](_0x256ef9,_0x21c02c,_0x2b7016){const _0xeeee1d=a371_0x13ac49,_0x8dab7=this[_0xeeee1d(0x168)](_0x21c02c),_0x31b94d=this['toDisplayTitle'](_0x21c02c),{createdAt:_0x57bfff,createdDate:_0x41adaf,createdTime:_0x288ebd}=this[_0xeeee1d(0x16d)](new Date());let _0x3d3aae=_0x256ef9['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x8dab7)['replace'](/\{DisplayTitle\}/g,_0x31b94d)['replace'](/\{PageName\}/g,_0x21c02c)[_0xeeee1d(0x19b)](/\{TemplateName\}/g,_0x2b7016)['replace'](/\{CreatedAt\}/g,_0x57bfff)[_0xeeee1d(0x19b)](/\{CreatedDate\}/g,_0x41adaf)[_0xeeee1d(0x19b)](/\{CreatedTime\}/g,_0x288ebd);return _0x3d3aae;}static[a371_0x13ac49(0x181)](_0x54c7c2,_0x528184,_0x468bb9,_0x17bdd2,_0x327b52,_0x5a7e3c,_0x5bf421,_0x140384,_0x48e5c3){const _0x4475ef=a371_0x13ac49,_0x1cb436=new Date(),_0x36cce0=_0x1cb436['toISOString'](),_0x3deeed=_0x468bb9[_0x4475ef(0x196)](_0x4199d0=>{const _0x543033=_0x4475ef,_0x1bff59=[_0x543033(0x17d)+_0x4199d0['datasetCode']+'\x22',_0x543033(0x184)+_0x4199d0['tableName']+'\x22',_0x543033(0x161)+_0x4199d0['name']+'\x22'];return _0x4199d0['alias']&&_0x1bff59[_0x543033(0x194)](_0x543033(0x19e)+_0x4199d0[_0x543033(0x16e)]+'\x22'),_0x543033(0x17a)+_0x1bff59[_0x543033(0x172)](',\x20')+_0x543033(0x160);})[_0x4475ef(0x172)](''),_0x183aff=_0x17bdd2||_0x468bb9[0x0]?.[_0x4475ef(0x16e)]||'YourModel';let _0x2880d4=_0x54c7c2[_0x4475ef(0x19b)](/\{AppCode\}/g,_0x528184)[_0x4475ef(0x19b)](/\{ModelConfigs\}/g,_0x3deeed)[_0x4475ef(0x19b)](/\{ExampleModelName\}/g,_0x183aff)[_0x4475ef(0x19b)](/\{ApiFileName\}/g,_0x327b52||_0x4475ef(0x162))[_0x4475ef(0x19b)](/\{ConfigName\}/g,_0x5a7e3c||'default')[_0x4475ef(0x19b)](/\{ClientConfigParam\}/g,_0x5bf421||'')['replace'](/\{SdkConfigFileName\}/g,_0x48e5c3||_0x4475ef(0x17c))[_0x4475ef(0x19b)](/\{VarPrefix\}/g,_0x140384||_0x4475ef(0x174))[_0x4475ef(0x19b)](/\{CreatedAt\}/g,_0x36cce0);return _0x2880d4;}static async[a371_0x13ac49(0x197)](_0x34e9d9,_0x57ea43,_0x4d5ca4,_0x17eec4,_0x47b9a9=!![]){const _0x565b4b=a371_0x13ac49,_0x438a64=Date[_0x565b4b(0x169)]();try{_0x47b9a9&&logger[_0x565b4b(0x16c)]('template',_0x565b4b(0x188),{'templatePath':_0x34e9d9,'targetPath':_0x57ea43,'pageName':_0x4d5ca4,'templateName':_0x17eec4});await a371_0x1c3ee4[_0x565b4b(0x173)][_0x565b4b(0x182)](_0x57ea43,{'recursive':!![]}),await this['processDirectory'](_0x34e9d9,_0x57ea43,_0x4d5ca4,_0x17eec4);if(_0x47b9a9){const _0x2095df=Date[_0x565b4b(0x169)]()-_0x438a64;logger['success'](_0x565b4b(0x186),_0x565b4b(0x16f),_0x2095df,{'pageName':_0x4d5ca4,'templateName':_0x17eec4});}}catch(_0x213ae9){if(_0x47b9a9){const _0x13121c=Date[_0x565b4b(0x169)]()-_0x438a64;logger[_0x565b4b(0x178)](_0x565b4b(0x186),_0x565b4b(0x15d),{'templatePath':_0x34e9d9,'targetPath':_0x57ea43,'pageName':_0x4d5ca4,'templateName':_0x17eec4,'error':_0x213ae9 instanceof Error?_0x213ae9[_0x565b4b(0x177)]:String(_0x213ae9),'duration':_0x13121c});}throw _0x213ae9;}}static async[a371_0x13ac49(0x18f)](_0x3ad2a8,_0xdd72ca,_0xad9477,_0x1e9e1b){const _0x4f0380=a371_0x13ac49,_0x2f9b74=await a371_0x1c3ee4[_0x4f0380(0x173)][_0x4f0380(0x191)](_0x3ad2a8,{'withFileTypes':!![]});for(const _0x54bbdb of _0x2f9b74){const _0x230cdd=a371_0x306d40[_0x4f0380(0x172)](_0x3ad2a8,_0x54bbdb[_0x4f0380(0x18b)]);let _0x1c4644=a371_0x306d40[_0x4f0380(0x172)](_0xdd72ca,_0x54bbdb['name']);_0x54bbdb[_0x4f0380(0x18b)][_0x4f0380(0x167)](_0x4f0380(0x17b))&&(_0x1c4644=a371_0x306d40[_0x4f0380(0x172)](_0xdd72ca,_0x54bbdb[_0x4f0380(0x18b)][_0x4f0380(0x19b)](/\.tpl$/,'')));if(_0x54bbdb[_0x4f0380(0x18a)]())await a371_0x1c3ee4['promises']['mkdir'](_0x1c4644,{'recursive':!![]}),await this[_0x4f0380(0x18f)](_0x230cdd,_0x1c4644,_0xad9477,_0x1e9e1b);else _0x54bbdb[_0x4f0380(0x185)]()&&await this['processFile'](_0x230cdd,_0x1c4644,_0xad9477,_0x1e9e1b);}}static async[a371_0x13ac49(0x195)](_0x18868c,_0x1228d9,_0x5611bf,_0x2a4a67){const _0x26e835=a371_0x13ac49,_0x6832e9=a371_0x306d40[_0x26e835(0x176)](_0x18868c)[_0x26e835(0x18e)]();_0x18868c[_0x26e835(0x167)](_0x26e835(0x17b))&&(_0x1228d9=_0x1228d9[_0x26e835(0x19b)](/\.tpl$/,''));const _0x4dd455=[_0x26e835(0x1a0),'.ts',_0x26e835(0x187),_0x26e835(0x1a2),_0x26e835(0x180),_0x26e835(0x18d),_0x26e835(0x1a3),_0x26e835(0x15b),_0x26e835(0x17b)];if(_0x4dd455[_0x26e835(0x15f)](_0x6832e9)||_0x18868c['endsWith'](_0x26e835(0x17b))){const _0x3e73ea=await a371_0x1c3ee4[_0x26e835(0x173)][_0x26e835(0x19f)](_0x18868c,'utf8'),_0x1facef=this['replaceContent'](_0x3e73ea,_0x5611bf,_0x2a4a67);await a371_0x1c3ee4['promises'][_0x26e835(0x16b)](_0x1228d9,_0x1facef,'utf8');}else await a371_0x1c3ee4[_0x26e835(0x173)][_0x26e835(0x15e)](_0x18868c,_0x1228d9);}}
1
+ const a371_0x132c99=a371_0x449f;(function(_0x32df1e,_0x126e23){const _0xb7b7a6=a371_0x449f,_0x339339=_0x32df1e();while(!![]){try{const _0x11252f=-parseInt(_0xb7b7a6(0x1f4))/0x1*(parseInt(_0xb7b7a6(0x1ff))/0x2)+-parseInt(_0xb7b7a6(0x1cb))/0x3+-parseInt(_0xb7b7a6(0x1c6))/0x4+parseInt(_0xb7b7a6(0x208))/0x5+parseInt(_0xb7b7a6(0x1d5))/0x6*(-parseInt(_0xb7b7a6(0x209))/0x7)+-parseInt(_0xb7b7a6(0x1d8))/0x8+parseInt(_0xb7b7a6(0x1d4))/0x9;if(_0x11252f===_0x126e23)break;else _0x339339['push'](_0x339339['shift']());}catch(_0x4932cf){_0x339339['push'](_0x339339['shift']());}}}(a371_0x17ac,0x39f21));function a371_0x17ac(){const _0x3ef8a2=['template','toComponentName','toISOString','.scss','isDirectory','promises','utf8','.css','join','alias:\x20\x22','2BWfwOF','getSeconds','writeFile','.jsx','toLowerCase','getDate','.md','datasetCode','LOVRABET','1122375aeDHKC','28LycIWZ','238004vgbyPp','getMonth','includes','split','toUpperCase','950850disgsK','alias','endsWith','pad','name','.js','mkdir','tableName','replaceContent','7395786mLDqDg','383532LwqNAu','getMinutes','padStart','776728GLEJgn','processTemplate','getHours','isFile','push','slice','Template\x20content\x20replacement\x20completed','name:\x20\x22','processFile','Starting\x20template\x20content\x20replacement','sdk-config','success','.json','processDirectory','charAt','pop','replace','tableName:\x20\x22','default','readdir','\x20},','map','datasetCode:\x20\x22','YourModel','formatLocalTimestamp','extname','.tpl','now','79654DtrgtE'];a371_0x17ac=function(){return _0x3ef8a2;};return a371_0x17ac();}function a371_0x449f(_0x23ba77,_0x5ee9ef){_0x23ba77=_0x23ba77-0x1c6;const _0x17acd8=a371_0x17ac();let _0x449f8a=_0x17acd8[_0x23ba77];return _0x449f8a;}import a371_0x3cc38d from'node:fs';import a371_0x53d91c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x484d50){const _0x27846d=a371_0x449f;return String(_0x484d50)[_0x27846d(0x1d7)](0x2,'0');}static[a371_0x132c99(0x1f0)](_0x24bc8a){const _0xf6e144=a371_0x132c99,_0x4ca2ce=_0x24bc8a['getFullYear'](),_0x3ae190=this[_0xf6e144(0x1ce)](_0x24bc8a[_0xf6e144(0x1c7)]()+0x1),_0xb5c2c8=this[_0xf6e144(0x1ce)](_0x24bc8a[_0xf6e144(0x204)]()),_0x4e20fb=this[_0xf6e144(0x1ce)](_0x24bc8a[_0xf6e144(0x1da)]()),_0x2a2ed0=this[_0xf6e144(0x1ce)](_0x24bc8a[_0xf6e144(0x1d6)]()),_0x1d55a7=this[_0xf6e144(0x1ce)](_0x24bc8a[_0xf6e144(0x200)]());return{'createdAt':_0x4ca2ce+'-'+_0x3ae190+'-'+_0xb5c2c8+'\x20'+_0x4e20fb+':'+_0x2a2ed0+':'+_0x1d55a7,'createdDate':_0x4ca2ce+'-'+_0x3ae190+'-'+_0xb5c2c8,'createdTime':_0x4e20fb+':'+_0x2a2ed0+':'+_0x1d55a7};}static[a371_0x132c99(0x1f6)](_0x543e81){const _0x297b21=a371_0x132c99,_0x28c5d0=_0x543e81['split']('/')[_0x297b21(0x1e7)]()||_0x543e81;return _0x28c5d0[_0x297b21(0x1c9)]('-')[_0x297b21(0x1ed)](_0x12c739=>_0x12c739['charAt'](0x0)[_0x297b21(0x1ca)]()+_0x12c739[_0x297b21(0x1dd)](0x1)['toLowerCase']())[_0x297b21(0x1fd)]('');}static['toDisplayTitle'](_0x2689f0){const _0x1bb69c=a371_0x132c99,_0x3a2916=_0x2689f0['split']('/')['pop']()||_0x2689f0;return _0x3a2916[_0x1bb69c(0x1c9)]('-')[_0x1bb69c(0x1ed)](_0x5e189f=>_0x5e189f[_0x1bb69c(0x1e6)](0x0)[_0x1bb69c(0x1ca)]()+_0x5e189f[_0x1bb69c(0x1dd)](0x1)[_0x1bb69c(0x203)]())[_0x1bb69c(0x1fd)]('\x20');}static[a371_0x132c99(0x1d3)](_0x107df,_0x1b71fd,_0x46b472){const _0x39ba1a=a371_0x132c99,_0x52cad6=this[_0x39ba1a(0x1f6)](_0x1b71fd),_0x26dacc=this['toDisplayTitle'](_0x1b71fd),{createdAt:_0x246792,createdDate:_0xac7a7e,createdTime:_0x2e664e}=this[_0x39ba1a(0x1f0)](new Date());let _0x1b3025=_0x107df[_0x39ba1a(0x1e8)](/\{CliVersion\}/g,CLI_VERSION)[_0x39ba1a(0x1e8)](/\{ComponentName\}/g,_0x52cad6)[_0x39ba1a(0x1e8)](/\{DisplayTitle\}/g,_0x26dacc)['replace'](/\{PageName\}/g,_0x1b71fd)['replace'](/\{TemplateName\}/g,_0x46b472)['replace'](/\{CreatedAt\}/g,_0x246792)['replace'](/\{CreatedDate\}/g,_0xac7a7e)[_0x39ba1a(0x1e8)](/\{CreatedTime\}/g,_0x2e664e);return _0x1b3025;}static['replaceApiContent'](_0x30bc57,_0x48d2be,_0x406f12,_0x1cf5ba,_0x255974,_0x14facd,_0x27b7ab,_0x1f7454,_0x3608e0){const _0x1fd585=a371_0x132c99,_0x5da7fa=new Date(),_0x51844d=_0x5da7fa[_0x1fd585(0x1f7)](),_0x12634d=_0x406f12['map'](_0x4a7aae=>{const _0x2b8f1f=_0x1fd585,_0xbaac16=[_0x2b8f1f(0x1ee)+_0x4a7aae[_0x2b8f1f(0x206)]+'\x22',_0x2b8f1f(0x1e9)+_0x4a7aae[_0x2b8f1f(0x1d2)]+'\x22',_0x2b8f1f(0x1df)+_0x4a7aae[_0x2b8f1f(0x1cf)]+'\x22'];return _0x4a7aae['alias']&&_0xbaac16[_0x2b8f1f(0x1dc)](_0x2b8f1f(0x1fe)+_0x4a7aae[_0x2b8f1f(0x1cc)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xbaac16['join'](',\x20')+_0x2b8f1f(0x1ec);})[_0x1fd585(0x1fd)](''),_0x27e757=_0x1cf5ba||_0x406f12[0x0]?.[_0x1fd585(0x1cc)]||_0x1fd585(0x1ef);let _0x153fd8=_0x30bc57[_0x1fd585(0x1e8)](/\{AppCode\}/g,_0x48d2be)[_0x1fd585(0x1e8)](/\{ModelConfigs\}/g,_0x12634d)[_0x1fd585(0x1e8)](/\{ExampleModelName\}/g,_0x27e757)[_0x1fd585(0x1e8)](/\{ApiFileName\}/g,_0x255974||'api')['replace'](/\{ConfigName\}/g,_0x14facd||_0x1fd585(0x1ea))[_0x1fd585(0x1e8)](/\{ClientConfigParam\}/g,_0x27b7ab||'')[_0x1fd585(0x1e8)](/\{SdkConfigFileName\}/g,_0x3608e0||_0x1fd585(0x1e2))['replace'](/\{VarPrefix\}/g,_0x1f7454||_0x1fd585(0x207))[_0x1fd585(0x1e8)](/\{CreatedAt\}/g,_0x51844d);return _0x153fd8;}static async[a371_0x132c99(0x1d9)](_0x1bf857,_0xcc7757,_0x5d597e,_0xd5a76f,_0xc51e7a=!![]){const _0x44bac5=a371_0x132c99,_0x36b926=Date[_0x44bac5(0x1f3)]();try{_0xc51e7a&&logger['info'](_0x44bac5(0x1f5),_0x44bac5(0x1e1),{'templatePath':_0x1bf857,'targetPath':_0xcc7757,'pageName':_0x5d597e,'templateName':_0xd5a76f});await a371_0x3cc38d['promises']['mkdir'](_0xcc7757,{'recursive':!![]}),await this[_0x44bac5(0x1e5)](_0x1bf857,_0xcc7757,_0x5d597e,_0xd5a76f);if(_0xc51e7a){const _0x154f66=Date['now']()-_0x36b926;logger[_0x44bac5(0x1e3)]('template',_0x44bac5(0x1de),_0x154f66,{'pageName':_0x5d597e,'templateName':_0xd5a76f});}}catch(_0x4306f6){if(_0xc51e7a){const _0xd84f4a=Date['now']()-_0x36b926;logger['error'](_0x44bac5(0x1f5),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x1bf857,'targetPath':_0xcc7757,'pageName':_0x5d597e,'templateName':_0xd5a76f,'error':_0x4306f6 instanceof Error?_0x4306f6['message']:String(_0x4306f6),'duration':_0xd84f4a});}throw _0x4306f6;}}static async['processDirectory'](_0x30a1ea,_0x29ec4e,_0x548e09,_0x680fb3){const _0x17b93a=a371_0x132c99,_0x13b365=await a371_0x3cc38d['promises'][_0x17b93a(0x1eb)](_0x30a1ea,{'withFileTypes':!![]});for(const _0x24a5d5 of _0x13b365){const _0x21e7f0=a371_0x53d91c[_0x17b93a(0x1fd)](_0x30a1ea,_0x24a5d5[_0x17b93a(0x1cf)]);let _0xf3391f=a371_0x53d91c[_0x17b93a(0x1fd)](_0x29ec4e,_0x24a5d5['name']);_0x24a5d5['name'][_0x17b93a(0x1cd)](_0x17b93a(0x1f2))&&(_0xf3391f=a371_0x53d91c['join'](_0x29ec4e,_0x24a5d5[_0x17b93a(0x1cf)][_0x17b93a(0x1e8)](/\.tpl$/,'')));if(_0x24a5d5[_0x17b93a(0x1f9)]())await a371_0x3cc38d[_0x17b93a(0x1fa)][_0x17b93a(0x1d1)](_0xf3391f,{'recursive':!![]}),await this[_0x17b93a(0x1e5)](_0x21e7f0,_0xf3391f,_0x548e09,_0x680fb3);else _0x24a5d5[_0x17b93a(0x1db)]()&&await this[_0x17b93a(0x1e0)](_0x21e7f0,_0xf3391f,_0x548e09,_0x680fb3);}}static async[a371_0x132c99(0x1e0)](_0x3be99a,_0x2afe49,_0xca150c,_0x49103e){const _0x571cdf=a371_0x132c99,_0x2c319b=a371_0x53d91c[_0x571cdf(0x1f1)](_0x3be99a)['toLowerCase']();_0x3be99a[_0x571cdf(0x1cd)](_0x571cdf(0x1f2))&&(_0x2afe49=_0x2afe49[_0x571cdf(0x1e8)](/\.tpl$/,''));const _0x54f194=['.tsx','.ts',_0x571cdf(0x202),_0x571cdf(0x1d0),_0x571cdf(0x1e4),_0x571cdf(0x205),_0x571cdf(0x1fc),_0x571cdf(0x1f8),_0x571cdf(0x1f2)];if(_0x54f194[_0x571cdf(0x1c8)](_0x2c319b)||_0x3be99a['endsWith'](_0x571cdf(0x1f2))){const _0x16da24=await a371_0x3cc38d['promises']['readFile'](_0x3be99a,_0x571cdf(0x1fb)),_0x2a5f66=this[_0x571cdf(0x1d3)](_0x16da24,_0xca150c,_0x49103e);await a371_0x3cc38d[_0x571cdf(0x1fa)][_0x571cdf(0x201)](_0x2afe49,_0x2a5f66,_0x571cdf(0x1fb));}else await a371_0x3cc38d[_0x571cdf(0x1fa)]['copyFile'](_0x3be99a,_0x2afe49);}}
@@ -1 +1 @@
1
- (function(_0x438420,_0x58a501){const _0x3bcf76=a372_0x5bec,_0x16251b=_0x438420();while(!![]){try{const _0x38083c=parseInt(_0x3bcf76(0xdf))/0x1+parseInt(_0x3bcf76(0xca))/0x2*(-parseInt(_0x3bcf76(0xd7))/0x3)+parseInt(_0x3bcf76(0xcc))/0x4*(-parseInt(_0x3bcf76(0xdd))/0x5)+parseInt(_0x3bcf76(0xdb))/0x6+-parseInt(_0x3bcf76(0xda))/0x7*(parseInt(_0x3bcf76(0xc7))/0x8)+parseInt(_0x3bcf76(0xd2))/0x9+parseInt(_0x3bcf76(0xcf))/0xa;if(_0x38083c===_0x58a501)break;else _0x16251b['push'](_0x16251b['shift']());}catch(_0x179cd4){_0x16251b['push'](_0x16251b['shift']());}}}(a372_0x1f90,0x72b69));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a372_0x1f90(){const _0x2f080d=['2crqgIB','\x20update','2932huQTZO','valid','utf8','9600000ZouhnN','stableVersion','number','3438738KgGMPs','rabetbase-cli',',\x20run:\x20','checkedAt','trim','706722SLOuwx','toLowerCase','lastNotifiedVersion','7343JNuDdn','471534XiiiwT','lastNotifiedAt','2630vuadtJ','yes','598691Buycnu','7080wVXMqr','stringify','\x20available,\x20current\x20'];a372_0x1f90=function(){return _0x2f080d;};return a372_0x1f90();}function a372_0x5bec(_0x1026f8,_0x51cbd8){_0x1026f8=_0x1026f8-0xc7;const _0x1f9042=a372_0x1f90();let _0x5bec39=_0x1f9042[_0x1026f8];return _0x5bec39;}import{dirname,join}from'node:path';import a372_0x2371dc from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x20aa52=a372_0x5bec,_0x2a093b=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x20aa52(0xd6)]()[_0x20aa52(0xd8)]();return _0x2a093b==='1'||_0x2a093b==='true'||_0x2a093b===_0x20aa52(0xde);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0xbeb13=a372_0x5bec;return join(cacheRoot(),_0xbeb13(0xd3),'update-check.json');}async function readUpdateNoticeCache(){const _0x45dad1=a372_0x5bec;try{const _0x56734e=await readFile(getUpdateNoticeCachePath(),_0x45dad1(0xce)),_0x4f4dcf=JSON['parse'](_0x56734e);if(!_0x4f4dcf||typeof _0x4f4dcf!=='object')return{};return _0x4f4dcf;}catch{return{};}}async function writeUpdateNoticeCache(_0x3a3640){const _0x1dcd2f=a372_0x5bec;try{const _0x341a07=getUpdateNoticeCachePath();await mkdir(dirname(_0x341a07),{'recursive':!![]}),await writeFile(_0x341a07,JSON[_0x1dcd2f(0xc8)](_0x3a3640,null,0x2)+'\x0a',_0x1dcd2f(0xce));}catch{}}function isFreshCheck(_0x8a4d05,_0x3a5e67){const _0x1c70f4=a372_0x5bec;return typeof _0x8a4d05[_0x1c70f4(0xd5)]==='number'&&_0x3a5e67-_0x8a4d05['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2c8a19,_0x290a40,_0x4d163b){const _0x865925=a372_0x5bec;return _0x2c8a19[_0x865925(0xd9)]===_0x290a40&&typeof _0x2c8a19[_0x865925(0xdc)]===_0x865925(0xd1)&&_0x4d163b-_0x2c8a19['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5ba96c){return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+'/v/'+_0x5ba96c;}export async function resolveLatestUpdateNotice(){const _0x302547=a372_0x5bec;if(isUpdateNoticeDisabled())return null;try{const _0x46db28=Date['now'](),_0x1c622b=getCliVersion(),_0x3cf9b1=await readUpdateNoticeCache();let _0x4bf21c=isFreshCheck(_0x3cf9b1,_0x46db28)?_0x3cf9b1['latest']?.['trim']():undefined;if(!_0x4bf21c&&!isFreshCheck(_0x3cf9b1,_0x46db28)){const _0x204453=await getCliVersionPolicy();_0x4bf21c=_0x204453?.[_0x302547(0xd0)]?.[_0x302547(0xd6)]()||undefined,await writeUpdateNoticeCache({..._0x3cf9b1,'checkedAt':_0x46db28,'latest':_0x4bf21c,'failed':!_0x4bf21c});}if(!_0x4bf21c||!a372_0x2371dc[_0x302547(0xcd)](_0x1c622b)||!a372_0x2371dc[_0x302547(0xcd)](_0x4bf21c))return null;if(a372_0x2371dc['gte'](_0x1c622b,_0x4bf21c))return null;if(isRecentlyNotified(_0x3cf9b1,_0x4bf21c,_0x46db28))return null;const _0x1070e2=CLI_BIN_NAME+_0x302547(0xcb);return await writeUpdateNoticeCache({..._0x3cf9b1,'checkedAt':isFreshCheck(_0x3cf9b1,_0x46db28)?_0x3cf9b1[_0x302547(0xd5)]:_0x46db28,'latest':_0x4bf21c,'failed':![],'lastNotifiedVersion':_0x4bf21c,'lastNotifiedAt':_0x46db28}),{'command':_0x1070e2,'current':_0x1c622b,'latest':_0x4bf21c,'url':buildNpmVersionUrl(_0x4bf21c),'message':CLI_BIN_NAME+'\x20'+_0x4bf21c+_0x302547(0xc9)+_0x1c622b+_0x302547(0xd4)+_0x1070e2};}catch{return null;}}
1
+ function a372_0xb4a1(_0x332f5a,_0x58c9fd){_0x332f5a=_0x332f5a-0x120;const _0x2df807=a372_0x2df8();let _0xb4a146=_0x2df807[_0x332f5a];return _0xb4a146;}(function(_0x1c3d31,_0x14517a){const _0xa6fba9=a372_0xb4a1,_0x366086=_0x1c3d31();while(!![]){try{const _0x4cf3b3=parseInt(_0xa6fba9(0x122))/0x1*(parseInt(_0xa6fba9(0x12c))/0x2)+-parseInt(_0xa6fba9(0x125))/0x3+parseInt(_0xa6fba9(0x12e))/0x4+parseInt(_0xa6fba9(0x124))/0x5+parseInt(_0xa6fba9(0x138))/0x6*(-parseInt(_0xa6fba9(0x134))/0x7)+parseInt(_0xa6fba9(0x133))/0x8+-parseInt(_0xa6fba9(0x132))/0x9;if(_0x4cf3b3===_0x14517a)break;else _0x366086['push'](_0x366086['shift']());}catch(_0x2a5d42){_0x366086['push'](_0x366086['shift']());}}}(a372_0x2df8,0x8a68a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a372_0x498438 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x254446=a372_0xb4a1,_0x1c3b8c=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x254446(0x13b)]()['toLowerCase']();return _0x1c3b8c==='1'||_0x1c3b8c===_0x254446(0x130)||_0x1c3b8c===_0x254446(0x12a);}function cacheRoot(){const _0x363709=a372_0xb4a1;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x363709(0x127));}export function getUpdateNoticeCachePath(){const _0x57edc7=a372_0xb4a1;return join(cacheRoot(),_0x57edc7(0x129),_0x57edc7(0x12d));}async function readUpdateNoticeCache(){const _0x2c61e4=a372_0xb4a1;try{const _0x28b424=await readFile(getUpdateNoticeCachePath(),_0x2c61e4(0x13a)),_0x51416b=JSON[_0x2c61e4(0x139)](_0x28b424);if(!_0x51416b||typeof _0x51416b!==_0x2c61e4(0x128))return{};return _0x51416b;}catch{return{};}}async function writeUpdateNoticeCache(_0x3bef67){const _0x2c4b53=a372_0xb4a1;try{const _0x1b6ae5=getUpdateNoticeCachePath();await mkdir(dirname(_0x1b6ae5),{'recursive':!![]}),await writeFile(_0x1b6ae5,JSON[_0x2c4b53(0x123)](_0x3bef67,null,0x2)+'\x0a',_0x2c4b53(0x13a));}catch{}}function a372_0x2df8(){const _0x33ab7d=['3002416wPwKEq','\x20available,\x20current\x20','true','number','10204245OzJyvZ','2802920pRyoBv','91iqGcXt','lastNotifiedAt','https://www.npmjs.com/package/','valid','185604FkQymp','parse','utf8','trim','lastNotifiedVersion','checkedAt','21KKacUt','stringify','2951750glBoiu','1610493gjkKBp','now','.cache','object','rabetbase-cli','yes','\x20update','90322VDlGvX','update-check.json'];a372_0x2df8=function(){return _0x33ab7d;};return a372_0x2df8();}function isFreshCheck(_0x4f5886,_0x328702){const _0x2f170e=a372_0xb4a1;return typeof _0x4f5886[_0x2f170e(0x121)]===_0x2f170e(0x131)&&_0x328702-_0x4f5886[_0x2f170e(0x121)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5119fc,_0x5044fb,_0xd8c7ce){const _0x1b09b7=a372_0xb4a1;return _0x5119fc[_0x1b09b7(0x120)]===_0x5044fb&&typeof _0x5119fc[_0x1b09b7(0x135)]===_0x1b09b7(0x131)&&_0xd8c7ce-_0x5119fc[_0x1b09b7(0x135)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x148281){const _0x94b8be=a372_0xb4a1;return _0x94b8be(0x136)+NPM_PACKAGE_NAME+'/v/'+_0x148281;}export async function resolveLatestUpdateNotice(){const _0x305feb=a372_0xb4a1;if(isUpdateNoticeDisabled())return null;try{const _0x1bdf37=Date[_0x305feb(0x126)](),_0x25b6d8=getCliVersion(),_0x11c015=await readUpdateNoticeCache();let _0x1acc59=isFreshCheck(_0x11c015,_0x1bdf37)?_0x11c015['latest']?.[_0x305feb(0x13b)]():undefined;if(!_0x1acc59&&!isFreshCheck(_0x11c015,_0x1bdf37)){const _0x1d25c9=await getCliVersionPolicy();_0x1acc59=_0x1d25c9?.['stableVersion']?.[_0x305feb(0x13b)]()||undefined,await writeUpdateNoticeCache({..._0x11c015,'checkedAt':_0x1bdf37,'latest':_0x1acc59,'failed':!_0x1acc59});}if(!_0x1acc59||!a372_0x498438['valid'](_0x25b6d8)||!a372_0x498438[_0x305feb(0x137)](_0x1acc59))return null;if(a372_0x498438['gte'](_0x25b6d8,_0x1acc59))return null;if(isRecentlyNotified(_0x11c015,_0x1acc59,_0x1bdf37))return null;const _0x1ea2ed=CLI_BIN_NAME+_0x305feb(0x12b);return await writeUpdateNoticeCache({..._0x11c015,'checkedAt':isFreshCheck(_0x11c015,_0x1bdf37)?_0x11c015[_0x305feb(0x121)]:_0x1bdf37,'latest':_0x1acc59,'failed':![],'lastNotifiedVersion':_0x1acc59,'lastNotifiedAt':_0x1bdf37}),{'command':_0x1ea2ed,'current':_0x25b6d8,'latest':_0x1acc59,'url':buildNpmVersionUrl(_0x1acc59),'message':CLI_BIN_NAME+'\x20'+_0x1acc59+_0x305feb(0x12f)+_0x25b6d8+',\x20run:\x20'+_0x1ea2ed};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x4d76cf,_0x36f169){var _0xa1000=a373_0x16de,_0x192b5f=_0x4d76cf();while(!![]){try{var _0x398546=-parseInt(_0xa1000(0x182))/0x1*(-parseInt(_0xa1000(0x184))/0x2)+-parseInt(_0xa1000(0x180))/0x3*(-parseInt(_0xa1000(0x185))/0x4)+parseInt(_0xa1000(0x17f))/0x5*(-parseInt(_0xa1000(0x186))/0x6)+-parseInt(_0xa1000(0x187))/0x7*(-parseInt(_0xa1000(0x189))/0x8)+parseInt(_0xa1000(0x183))/0x9+parseInt(_0xa1000(0x188))/0xa*(parseInt(_0xa1000(0x18a))/0xb)+-parseInt(_0xa1000(0x181))/0xc;if(_0x398546===_0x36f169)break;else _0x192b5f['push'](_0x192b5f['shift']());}catch(_0x3d87d5){_0x192b5f['push'](_0x192b5f['shift']());}}}(a373_0x4bc7,0xeeaf4));import{VERSION}from'../generated/build-info.js';function a373_0x16de(_0x30955c,_0x14b235){_0x30955c=_0x30955c-0x17f;var _0x4bc7eb=a373_0x4bc7();var _0x16dee1=_0x4bc7eb[_0x30955c];return _0x16dee1;}export function getCliVersion(){return VERSION;}function a373_0x4bc7(){var _0x96fbf5=['10uUcREa','800204xgmiQC','6wFKEVb','50491VdGIPn','9650iixoNb','248nKRSqj','11759HkEVib','728405jRrUna','9YikCSw','37493100ZSPIPn','180511PssnOJ','13408758ziiDVK'];a373_0x4bc7=function(){return _0x96fbf5;};return a373_0x4bc7();}
1
+ (function(_0x1654a1,_0x3bba24){var _0x1ba30e=a373_0xc2c0,_0x547958=_0x1654a1();while(!![]){try{var _0x521a8e=parseInt(_0x1ba30e(0x65))/0x1*(-parseInt(_0x1ba30e(0x6b))/0x2)+parseInt(_0x1ba30e(0x6a))/0x3*(-parseInt(_0x1ba30e(0x67))/0x4)+-parseInt(_0x1ba30e(0x69))/0x5*(-parseInt(_0x1ba30e(0x68))/0x6)+-parseInt(_0x1ba30e(0x66))/0x7+parseInt(_0x1ba30e(0x6d))/0x8*(-parseInt(_0x1ba30e(0x6f))/0x9)+-parseInt(_0x1ba30e(0x6e))/0xa+parseInt(_0x1ba30e(0x6c))/0xb;if(_0x521a8e===_0x3bba24)break;else _0x547958['push'](_0x547958['shift']());}catch(_0x24704f){_0x547958['push'](_0x547958['shift']());}}}(a373_0x20ee,0x6a2d2));function a373_0x20ee(){var _0x3f5621=['281224pHBBcd','4123170nLhyxL','108VFWJNF','237961anJqPm','761572TWNngh','36WKaQvY','12PhPTmJ','777755RzJfuc','72348dyXLxM','2VfWiMv','16739250NlHAKu'];a373_0x20ee=function(){return _0x3f5621;};return a373_0x20ee();}function a373_0xc2c0(_0x3c299d,_0xe2fb6e){_0x3c299d=_0x3c299d-0x65;var _0x20ee2c=a373_0x20ee();var _0xc2c06a=_0x20ee2c[_0x3c299d];return _0xc2c06a;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a374_0x270c(_0x5e413e,_0x2042f0){_0x5e413e=_0x5e413e-0x194;var _0x553f6d=a374_0x553f();var _0x270c55=_0x553f6d[_0x5e413e];return _0x270c55;}(function(_0x562697,_0x3b3522){var _0x2ebb15=a374_0x270c,_0x1df8d4=_0x562697();while(!![]){try{var _0x303771=parseInt(_0x2ebb15(0x197))/0x1+parseInt(_0x2ebb15(0x19c))/0x2*(parseInt(_0x2ebb15(0x19e))/0x3)+parseInt(_0x2ebb15(0x195))/0x4+parseInt(_0x2ebb15(0x19b))/0x5*(-parseInt(_0x2ebb15(0x199))/0x6)+-parseInt(_0x2ebb15(0x19a))/0x7*(-parseInt(_0x2ebb15(0x194))/0x8)+-parseInt(_0x2ebb15(0x19d))/0x9*(parseInt(_0x2ebb15(0x198))/0xa)+parseInt(_0x2ebb15(0x196))/0xb;if(_0x303771===_0x3b3522)break;else _0x1df8d4['push'](_0x1df8d4['shift']());}catch(_0x686363){_0x1df8d4['push'](_0x1df8d4['shift']());}}}(a374_0x553f,0xd6406));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a374_0x553f(){var _0x3b54d2=['1165OBMoKN','8542PIyJuF','12593097HZzDAe','123uBdNit','11472AGrlrz','871200rRptFJ','16874055okxrYQ','273912Vznegm','10VcxjzT','24594dlOjNU','5033tethZl'];a374_0x553f=function(){return _0x3b54d2;};return a374_0x553f();}export async function withActiveCookie(_0x462464,_0x475ff6){setActiveCookie(_0x462464);try{return await _0x475ff6();}finally{clearActiveCookie();}}
1
+ (function(_0x296be3,_0x18d52f){var _0x586c89=a374_0x6961,_0x4d181b=_0x296be3();while(!![]){try{var _0x353407=-parseInt(_0x586c89(0x1fa))/0x1*(-parseInt(_0x586c89(0x1f8))/0x2)+parseInt(_0x586c89(0x1fb))/0x3*(-parseInt(_0x586c89(0x1fd))/0x4)+-parseInt(_0x586c89(0x1fc))/0x5+parseInt(_0x586c89(0x1f5))/0x6*(parseInt(_0x586c89(0x1f4))/0x7)+-parseInt(_0x586c89(0x1f6))/0x8+parseInt(_0x586c89(0x1f9))/0x9+parseInt(_0x586c89(0x1fe))/0xa*(parseInt(_0x586c89(0x1f7))/0xb);if(_0x353407===_0x18d52f)break;else _0x4d181b['push'](_0x4d181b['shift']());}catch(_0x20cf6f){_0x4d181b['push'](_0x4d181b['shift']());}}}(a374_0x41e7,0x72462));function a374_0x6961(_0x7126aa,_0x1a9f56){_0x7126aa=_0x7126aa-0x1f4;var _0x41e778=a374_0x41e7();var _0x69618=_0x41e778[_0x7126aa];return _0x69618;}function a374_0x41e7(){var _0x1426c3=['3943134NOltxJ','51216pBgvmZ','3606LxoXXr','4463610jnGwSN','2936DMJqGJ','10Sbtgwg','7fQEXxJ','1947858nyWHMd','820624lKrBpG','10651003cCiCoc','24uklMgB'];a374_0x41e7=function(){return _0x1426c3;};return a374_0x41e7();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x30417d,_0x4d4cf8){setActiveCookie(_0x30417d);try{return await _0x4d4cf8();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0xd97dcf,_0x5a189e){var _0x4ae160=a375_0x2e2d,_0x242238=_0xd97dcf();while(!![]){try{var _0x492001=-parseInt(_0x4ae160(0x185))/0x1+parseInt(_0x4ae160(0x188))/0x2+parseInt(_0x4ae160(0x18b))/0x3+parseInt(_0x4ae160(0x186))/0x4*(-parseInt(_0x4ae160(0x183))/0x5)+parseInt(_0x4ae160(0x184))/0x6*(parseInt(_0x4ae160(0x181))/0x7)+parseInt(_0x4ae160(0x18c))/0x8+-parseInt(_0x4ae160(0x187))/0x9*(parseInt(_0x4ae160(0x18a))/0xa);if(_0x492001===_0x5a189e)break;else _0x242238['push'](_0x242238['shift']());}catch(_0x264fbd){_0x242238['push'](_0x242238['shift']());}}}(a375_0x1142,0x57370));export function writeCliSideChannelLine(_0x34df54){var _0x47cdbb=a375_0x2e2d;process[_0x47cdbb(0x182)][_0x47cdbb(0x189)](_0x34df54+'\x0a');}function a375_0x2e2d(_0x158bf8,_0x22c5b6){_0x158bf8=_0x158bf8-0x181;var _0x11421f=a375_0x1142();var _0x2e2d85=_0x11421f[_0x158bf8];return _0x2e2d85;}function a375_0x1142(){var _0x161590=['423MExnTy','427156RuMZWo','write','200790ihpcwn','1892784Vglgth','4214648yhQTRW','39851WWGLht','stderr','1117855NpEtJw','186JmmvPr','23304RTmuph','4KlzVAR'];a375_0x1142=function(){return _0x161590;};return a375_0x1142();}
1
+ function a375_0x3994(_0x5c453a,_0x27bdc8){_0x5c453a=_0x5c453a-0x130;var _0x24e985=a375_0x24e9();var _0x399401=_0x24e985[_0x5c453a];return _0x399401;}(function(_0x3d1a2e,_0x15092e){var _0x11f5a3=a375_0x3994,_0x273632=_0x3d1a2e();while(!![]){try{var _0xb4b36f=parseInt(_0x11f5a3(0x137))/0x1+parseInt(_0x11f5a3(0x135))/0x2+-parseInt(_0x11f5a3(0x134))/0x3+parseInt(_0x11f5a3(0x133))/0x4+parseInt(_0x11f5a3(0x136))/0x5*(-parseInt(_0x11f5a3(0x130))/0x6)+parseInt(_0x11f5a3(0x131))/0x7*(-parseInt(_0x11f5a3(0x139))/0x8)+parseInt(_0x11f5a3(0x138))/0x9;if(_0xb4b36f===_0x15092e)break;else _0x273632['push'](_0x273632['shift']());}catch(_0x6ea342){_0x273632['push'](_0x273632['shift']());}}}(a375_0x24e9,0x7fe75));export function writeCliSideChannelLine(_0x44cfb5){var _0xc7b2ce=a375_0x3994;process[_0xc7b2ce(0x13a)][_0xc7b2ce(0x132)](_0x44cfb5+'\x0a');}function a375_0x24e9(){var _0x5f0a95=['7035xcIiiK','write','793092MdZDxz','2011812NsJgZa','679454qyPdvR','320065tQtEUN','1015711CRUHlA','6212322XccFgv','3768kPJLrl','stderr','54cRZohb'];a375_0x24e9=function(){return _0x5f0a95;};return a375_0x24e9();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.12-beta.1",
3
+ "version": "2.5.13-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.12-beta.1
3
+ version: 2.5.13-beta.1
4
4
  description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, host frontend integration, frontend subapp resources, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, host frontend integration, subapp resource versions, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
5
5
  metadata:
6
6
  requires: