@lovrabet/rabetbase-cli 2.5.8-beta.1 → 2.5.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +7 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.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/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.d.ts +1 -1
  278. package/lib/constant/domain.js +1 -1
  279. package/lib/constant/env.js +1 -1
  280. package/lib/constant/output.js +1 -1
  281. package/lib/constant/paths.js +1 -1
  282. package/lib/constant/region.js +1 -1
  283. package/lib/constant/risk.js +1 -1
  284. package/lib/constant/routing-profile.js +1 -1
  285. package/lib/context/app-resolver.js +1 -1
  286. package/lib/context/auth-resolver.js +1 -1
  287. package/lib/context/config-loader.js +1 -1
  288. package/lib/context.js +1 -1
  289. package/lib/core/alias-resolver.js +1 -1
  290. package/lib/core/api-client.d.ts +2 -2
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/kb-management-client.d.ts +19 -0
  304. package/lib/core/kb-management-client.js +1 -0
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-kb.md +7 -6
  379. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  380. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  381. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a357_0x37903c=a357_0x16c2;(function(_0x1e7e4c,_0x3cd47e){const _0x1f58de=a357_0x16c2,_0x14aaa9=_0x1e7e4c();while(!![]){try{const _0x17680e=-parseInt(_0x1f58de(0xd1))/0x1+parseInt(_0x1f58de(0xd2))/0x2+-parseInt(_0x1f58de(0xc4))/0x3+parseInt(_0x1f58de(0xbf))/0x4+parseInt(_0x1f58de(0xd3))/0x5+parseInt(_0x1f58de(0xd8))/0x6+-parseInt(_0x1f58de(0xc5))/0x7*(parseInt(_0x1f58de(0xd6))/0x8);if(_0x17680e===_0x3cd47e)break;else _0x14aaa9['push'](_0x14aaa9['shift']());}catch(_0x1e6985){_0x14aaa9['push'](_0x14aaa9['shift']());}}}(a357_0x25ea,0x56208));import a357_0x13faa4 from'node:fs';import a357_0x55d7d5 from'node:path';function a357_0x16c2(_0x1ac50c,_0x4616a3){_0x1ac50c=_0x1ac50c-0xb4;const _0x25eabd=a357_0x25ea();let _0x16c223=_0x25eabd[_0x1ac50c];return _0x16c223;}import a357_0x1a9564 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a357_0x37903c(0xcd);function isNonNumericVersion(_0x2dacd9){const _0x29f035=a357_0x37903c,_0x48e940=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x48e940[_0x29f035(0xb9)](_0x5d5f47=>_0x5d5f47[_0x29f035(0xca)](_0x2dacd9));}function getInstalledVersion(_0x4789ba,_0x1c9aad){const _0x354cba=a357_0x37903c;try{const _0x1b137f=a357_0x55d7d5[_0x354cba(0xd4)](_0x4789ba,'node_modules',_0x1c9aad,_0x354cba(0xb8));if(a357_0x13faa4[_0x354cba(0xc9)](_0x1b137f)){const _0x189219=JSON[_0x354cba(0xb7)](a357_0x13faa4[_0x354cba(0xc3)](_0x1b137f,'utf-8'));return _0x189219['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x772241=a357_0x37903c;try{const _0x393042=await getCdnConfig();return _0x393042?.[_0x772241(0xc6)]?.['node']?.[_0x772241(0xd7)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x27e7ea=a357_0x37903c;try{const _0x55f993=await getCdnConfig();return _0x55f993?.['sdk']?.[_0x27e7ea(0xcb)]?.[_0x27e7ea(0xbe)]||'@lovrabet/sdk';}catch{return _0x27e7ea(0xcf);}}export async function checkSdkVersion(_0x13427f){const _0x3408b3=a357_0x37903c,_0x190187=a357_0x55d7d5[_0x3408b3(0xd4)](_0x13427f,_0x3408b3(0xb8)),[_0x576607,_0x55b593]=await Promise[_0x3408b3(0xd5)]([getSdkStableVersion(),getSdkPackageName()]),_0x3e7190=_0x576607||FALLBACK_MIN_SDK_VERSION;if(!a357_0x13faa4['existsSync'](_0x190187))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e7190,'packageName':_0x55b593,'stableVersion':_0x576607};try{const _0x110639=JSON['parse'](a357_0x13faa4['readFileSync'](_0x190187,_0x3408b3(0xcc))),_0xc43c4c=_0x110639['dependencies']||{},_0x1c575f=_0x110639['devDependencies']||{},_0xa80cb2=_0xc43c4c[_0x55b593]||_0x1c575f[_0x55b593];if(!_0xa80cb2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e7190,'packageName':_0x55b593,'stableVersion':_0x576607};let _0xf5c779=getInstalledVersion(_0x13427f,_0x55b593);!_0xf5c779&&(_0xf5c779=_0xa80cb2);if(isNonNumericVersion(_0xa80cb2))return{'installed':!![],'version':_0xf5c779,'needsUpgrade':![],'minVersion':_0x3e7190,'packageName':_0x55b593,'stableVersion':_0x576607};const _0x2d7b50=a357_0x1a9564[_0x3408b3(0xbb)](_0xf5c779),_0x5d4cc3=a357_0x1a9564[_0x3408b3(0xbb)](_0x3e7190),_0x56b4ae=_0x2d7b50&&_0x5d4cc3?a357_0x1a9564['lt'](_0x2d7b50,_0x5d4cc3):![];return{'installed':!![],'version':_0xf5c779,'needsUpgrade':_0x56b4ae,'minVersion':_0x3e7190,'packageName':_0x55b593,'stableVersion':_0x576607};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e7190,'packageName':_0x55b593,'stableVersion':_0x576607};}}export function checkSdkVersionSync(_0x526953){const _0x2f2019=a357_0x37903c,_0x41a1f3=a357_0x55d7d5[_0x2f2019(0xd4)](_0x526953,_0x2f2019(0xb8)),_0xcff400='@lovrabet/sdk';if(!a357_0x13faa4[_0x2f2019(0xc9)](_0x41a1f3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcff400,'stableVersion':null};try{const _0x49840b=JSON[_0x2f2019(0xb7)](a357_0x13faa4[_0x2f2019(0xc3)](_0x41a1f3,'utf8')),_0x162d92=_0x49840b[_0x2f2019(0xc0)]||{},_0x4ee622=_0x49840b[_0x2f2019(0xb6)]||{},_0xb7f0f=_0x162d92[_0xcff400]||_0x4ee622[_0xcff400];if(!_0xb7f0f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcff400,'stableVersion':null};let _0x3c42e9=getInstalledVersion(_0x526953,_0xcff400);!_0x3c42e9&&(_0x3c42e9=_0xb7f0f);if(isNonNumericVersion(_0xb7f0f))return{'installed':!![],'version':_0x3c42e9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcff400,'stableVersion':null};const _0x2dc12a=a357_0x1a9564[_0x2f2019(0xbb)](_0x3c42e9),_0x51726f=_0x2dc12a?a357_0x1a9564['lt'](_0x2dc12a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3c42e9,'needsUpgrade':_0x51726f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcff400,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcff400,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x220db3){const _0x3aea6a=a357_0x37903c;if(!_0x220db3['needsUpgrade'])return;const _0x2a8312=_0x3aea6a(0xbc),_0x39c280=_0x3aea6a(0xbd),_0x1e3deb=_0x3aea6a(0xb5),_0x375fa3=_0x220db3['packageName']||_0x3aea6a(0xcf),_0x571bfc=_0x220db3[_0x3aea6a(0xd7)]||_0x220db3[_0x3aea6a(0xc1)],_0x979e35=_0x3aea6a(0xba)+_0x375fa3+'@'+(_0x571bfc||_0x3aea6a(0xc7));console[_0x3aea6a(0xc8)](),console[_0x3aea6a(0xc8)](''+_0x2a8312+_0x1e3deb+_0x3aea6a(0xc2)+_0x39c280),console[_0x3aea6a(0xc8)](_0x2a8312+_0x3aea6a(0xd0)+_0x375fa3+'@'+_0x220db3['version']+_0x39c280),console['log'](_0x2a8312+_0x3aea6a(0xb4)+_0x571bfc+_0x39c280),console['log'](_0x2a8312+_0x3aea6a(0xce)+_0x979e35+_0x39c280),console[_0x3aea6a(0xc8)]();}function a357_0x25ea(){const _0x6ff82d=['some','npm\x20install\x20','coerce','\x1b[33m','\x1b[0m','packageName','462240hQsKjr','dependencies','minVersion','↪\x20SDK\x20update\x20available','readFileSync','538044OiblAt','3373902mnqKzp','sdk','latest','log','existsSync','test','node','utf8','1.2.0','\x20\x20\x20Upgrade\x20command:\x20','@lovrabet/sdk','\x20\x20\x20Current\x20version:\x20','593452ENWife','451416tdWAGV','3224800VqwJsv','join','all','8myysqs','stableVersion','3728004QLoXYe','\x20\x20\x20Stable\x20version:\x20','\x1b[1m','devDependencies','parse','package.json'];a357_0x25ea=function(){return _0x6ff82d;};return a357_0x25ea();}
1
+ const a358_0x2ccb19=a358_0x3e89;(function(_0x157191,_0x9f95ba){const _0x3ac4a7=a358_0x3e89,_0x501e21=_0x157191();while(!![]){try{const _0x475a93=-parseInt(_0x3ac4a7(0x20c))/0x1+-parseInt(_0x3ac4a7(0x20e))/0x2*(-parseInt(_0x3ac4a7(0x1ef))/0x3)+parseInt(_0x3ac4a7(0x1f3))/0x4+parseInt(_0x3ac4a7(0x1f6))/0x5*(-parseInt(_0x3ac4a7(0x1fc))/0x6)+-parseInt(_0x3ac4a7(0x203))/0x7*(-parseInt(_0x3ac4a7(0x210))/0x8)+-parseInt(_0x3ac4a7(0x20b))/0x9+-parseInt(_0x3ac4a7(0x1fa))/0xa;if(_0x475a93===_0x9f95ba)break;else _0x501e21['push'](_0x501e21['shift']());}catch(_0x49c78){_0x501e21['push'](_0x501e21['shift']());}}}(a358_0x18e2,0xe3bb5));import a358_0x5edd68 from'node:fs';import a358_0x3a2725 from'node:path';function a358_0x18e2(){const _0x44d253=['log','utf8','packageName','coerce','\x1b[1m','npm\x20install\x20','parse','5614920fDdukf','267809jCvlfd','devDependencies','206GpWjkr','version','302080ZbidNY','\x1b[0m','utf-8','readFileSync','789hlVxwY','dependencies','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','2882428LtLXMu','package.json','existsSync','18415MccNOP','\x20\x20\x20Upgrade\x20command:\x20','test','1.2.0','5027390slCoUo','node_modules','318bupasr','sdk','node','stableVersion','@lovrabet/sdk','some','join','329WhJqaj'];a358_0x18e2=function(){return _0x44d253;};return a358_0x18e2();}import a358_0x559334 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a358_0x2ccb19(0x1f9);function isNonNumericVersion(_0x376043){const _0x469f9f=a358_0x2ccb19,_0x2a8860=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a8860[_0x469f9f(0x201)](_0x21b504=>_0x21b504[_0x469f9f(0x1f8)](_0x376043));}function getInstalledVersion(_0x330d5d,_0x398d03){const _0x1b47da=a358_0x2ccb19;try{const _0x161b84=a358_0x3a2725[_0x1b47da(0x202)](_0x330d5d,_0x1b47da(0x1fb),_0x398d03,_0x1b47da(0x1f4));if(a358_0x5edd68[_0x1b47da(0x1f5)](_0x161b84)){const _0x575cd6=JSON[_0x1b47da(0x20a)](a358_0x5edd68[_0x1b47da(0x213)](_0x161b84,_0x1b47da(0x212)));return _0x575cd6['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1eb50e=a358_0x2ccb19;try{const _0x5394b5=await getCdnConfig();return _0x5394b5?.['sdk']?.[_0x1eb50e(0x1fe)]?.[_0x1eb50e(0x1ff)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2d3f21=a358_0x2ccb19;try{const _0x7a664f=await getCdnConfig();return _0x7a664f?.[_0x2d3f21(0x1fd)]?.['node']?.[_0x2d3f21(0x206)]||_0x2d3f21(0x200);}catch{return _0x2d3f21(0x200);}}export async function checkSdkVersion(_0x103571){const _0x362368=a358_0x2ccb19,_0x5001a6=a358_0x3a2725['join'](_0x103571,_0x362368(0x1f4)),[_0x47a017,_0x23b31a]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x430c6e=_0x47a017||FALLBACK_MIN_SDK_VERSION;if(!a358_0x5edd68[_0x362368(0x1f5)](_0x5001a6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x430c6e,'packageName':_0x23b31a,'stableVersion':_0x47a017};try{const _0x4578dd=JSON[_0x362368(0x20a)](a358_0x5edd68[_0x362368(0x213)](_0x5001a6,_0x362368(0x205))),_0x19023d=_0x4578dd[_0x362368(0x1f0)]||{},_0x2f5861=_0x4578dd[_0x362368(0x20d)]||{},_0x4792f6=_0x19023d[_0x23b31a]||_0x2f5861[_0x23b31a];if(!_0x4792f6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x430c6e,'packageName':_0x23b31a,'stableVersion':_0x47a017};let _0x5d17f2=getInstalledVersion(_0x103571,_0x23b31a);!_0x5d17f2&&(_0x5d17f2=_0x4792f6);if(isNonNumericVersion(_0x4792f6))return{'installed':!![],'version':_0x5d17f2,'needsUpgrade':![],'minVersion':_0x430c6e,'packageName':_0x23b31a,'stableVersion':_0x47a017};const _0x1002f1=a358_0x559334[_0x362368(0x207)](_0x5d17f2),_0x5aa7f6=a358_0x559334[_0x362368(0x207)](_0x430c6e),_0x2c3dc4=_0x1002f1&&_0x5aa7f6?a358_0x559334['lt'](_0x1002f1,_0x5aa7f6):![];return{'installed':!![],'version':_0x5d17f2,'needsUpgrade':_0x2c3dc4,'minVersion':_0x430c6e,'packageName':_0x23b31a,'stableVersion':_0x47a017};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x430c6e,'packageName':_0x23b31a,'stableVersion':_0x47a017};}}function a358_0x3e89(_0x31671b,_0x1cec34){_0x31671b=_0x31671b-0x1ef;const _0x18e28d=a358_0x18e2();let _0x3e89e5=_0x18e28d[_0x31671b];return _0x3e89e5;}export function checkSdkVersionSync(_0x230f95){const _0x43b10d=a358_0x2ccb19,_0x1d6468=a358_0x3a2725['join'](_0x230f95,_0x43b10d(0x1f4)),_0x4e94db=_0x43b10d(0x200);if(!a358_0x5edd68[_0x43b10d(0x1f5)](_0x1d6468))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4e94db,'stableVersion':null};try{const _0x3f93c8=JSON[_0x43b10d(0x20a)](a358_0x5edd68[_0x43b10d(0x213)](_0x1d6468,_0x43b10d(0x205))),_0x351e9b=_0x3f93c8[_0x43b10d(0x1f0)]||{},_0x3b3358=_0x3f93c8['devDependencies']||{},_0x1735e6=_0x351e9b[_0x4e94db]||_0x3b3358[_0x4e94db];if(!_0x1735e6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4e94db,'stableVersion':null};let _0x4762fa=getInstalledVersion(_0x230f95,_0x4e94db);!_0x4762fa&&(_0x4762fa=_0x1735e6);if(isNonNumericVersion(_0x1735e6))return{'installed':!![],'version':_0x4762fa,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4e94db,'stableVersion':null};const _0x567a81=a358_0x559334[_0x43b10d(0x207)](_0x4762fa),_0x39e634=_0x567a81?a358_0x559334['lt'](_0x567a81,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4762fa,'needsUpgrade':_0x39e634,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4e94db,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4e94db,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x35052f){const _0x29d2c0=a358_0x2ccb19;if(!_0x35052f['needsUpgrade'])return;const _0x546fe8='\x1b[33m',_0x48d7a9=_0x29d2c0(0x211),_0x5397f2=_0x29d2c0(0x208),_0x8b43ab=_0x35052f[_0x29d2c0(0x206)]||_0x29d2c0(0x200),_0x45ee04=_0x35052f['stableVersion']||_0x35052f['minVersion'],_0x3817fc=_0x29d2c0(0x209)+_0x8b43ab+'@'+(_0x45ee04||'latest');console['log'](),console[_0x29d2c0(0x204)](''+_0x546fe8+_0x5397f2+_0x29d2c0(0x1f2)+_0x48d7a9),console[_0x29d2c0(0x204)](_0x546fe8+'\x20\x20\x20Current\x20version:\x20'+_0x8b43ab+'@'+_0x35052f[_0x29d2c0(0x20f)]+_0x48d7a9),console['log'](_0x546fe8+_0x29d2c0(0x1f1)+_0x45ee04+_0x48d7a9),console[_0x29d2c0(0x204)](_0x546fe8+_0x29d2c0(0x1f7)+_0x3817fc+_0x48d7a9),console[_0x29d2c0(0x204)]();}
@@ -1 +1 @@
1
- function a358_0x3df3(){const _0x329763=['validation','\x20\x20\x20Recommended\x20stable:\x20','belowMinimum','stableVersion','version','npm\x20install\x20-g\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','2465994KazpoB','\x1b[33m','\x20\x20\x20','../..','377512yedxMn','\x20\x20\x20Upgrade\x20command:\x20','427695lVYyAq','parse','minimumVersionMessage','674702tLbyCh','\x1b[1m','log','Minimum\x20supported:\x20','6690228KDvKZw','coerce','\x1b[31m','\x20\x20\x20Stable\x20version:\x20','10BkokZr','1016384HcnbqZ','\x20\x20\x20Minimum\x20supported:\x20','upgradeMessage','latest','Upgrade\x20command:\x20','19981784FCwwyw','minimumVersion','1.0.0','currentVersion','↪\x20New\x20version\x20available','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','Current\x20version:\x20'];a358_0x3df3=function(){return _0x329763;};return a358_0x3df3();}(function(_0x34059a,_0x269497){const _0x4d0f85=a358_0x586a,_0x1f1b49=_0x34059a();while(!![]){try{const _0x560c70=parseInt(_0x4d0f85(0x138))/0x1+parseInt(_0x4d0f85(0x126))/0x2+-parseInt(_0x4d0f85(0x12c))/0x3+-parseInt(_0x4d0f85(0x12a))/0x4*(parseInt(_0x4d0f85(0x137))/0x5)+parseInt(_0x4d0f85(0x133))/0x6+parseInt(_0x4d0f85(0x12f))/0x7+-parseInt(_0x4d0f85(0x13d))/0x8;if(_0x560c70===_0x269497)break;else _0x1f1b49['push'](_0x1f1b49['shift']());}catch(_0x143112){_0x1f1b49['push'](_0x1f1b49['shift']());}}}(a358_0x3df3,0x9a3d1));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a358_0x274b88 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4f9ae0){const _0x411cb1=a358_0x586a,_0x25d857=_0x4f9ae0[_0x411cb1(0x122)]||_0x411cb1(0x13b);return _0x411cb1(0x124)+NPM_PACKAGE_NAME+'@'+_0x25d857;}function getCurrentCliVersion(){const _0x5ab1c7=a358_0x586a;try{const _0x36538f=fileURLToPath(import.meta.url),_0x2a57a3=resolve(dirname(_0x36538f),_0x5ab1c7(0x129)),_0x5854dc=resolve(_0x2a57a3,'package.json'),_0xb9231b=JSON[_0x5ab1c7(0x12d)](readFileSync(_0x5854dc,'utf-8'));return _0xb9231b[_0x5ab1c7(0x123)]||_0x5ab1c7(0x13f);}catch{return _0x5ab1c7(0x13f);}}function a358_0x586a(_0x50afc8,_0x421818){_0x50afc8=_0x50afc8-0x11f;const _0x3df38b=a358_0x3df3();let _0x586af3=_0x3df38b[_0x50afc8];return _0x586af3;}export async function checkCliVersion(){const _0x21b37c=a358_0x586a,_0x3ea67d=getCurrentCliVersion(),_0x25df38=await getCliVersionPolicy(),_0x59652f=_0x25df38?.[_0x21b37c(0x122)]||null,_0x1cd0e2=_0x25df38?.[_0x21b37c(0x13e)]||null;let _0x4a0fc7=![],_0x5a7108=![];const _0x55fa94=a358_0x274b88['coerce'](_0x3ea67d);if(_0x55fa94&&_0x59652f)try{const _0x2d9a77=a358_0x274b88[_0x21b37c(0x134)](_0x59652f);if(_0x2d9a77)_0x4a0fc7=a358_0x274b88['lt'](_0x55fa94,_0x2d9a77);}catch{}if(_0x55fa94&&_0x1cd0e2)try{const _0x3d94cc=a358_0x274b88['coerce'](_0x1cd0e2);if(_0x3d94cc)_0x5a7108=a358_0x274b88['lt'](_0x55fa94,_0x3d94cc);}catch{}return _0x5a7108&&(_0x4a0fc7=!![]),{'currentVersion':_0x3ea67d,'stableVersion':_0x59652f,'minimumVersion':_0x1cd0e2,'needsUpgrade':_0x4a0fc7,'belowMinimum':_0x5a7108,'isPreRelease':![],'upgradeMessage':_0x25df38?.[_0x21b37c(0x13a)],'minimumVersionMessage':_0x25df38?.[_0x21b37c(0x12e)]};}export function printCliUpgradeWarning(_0x448b57){const _0x1f45a2=a358_0x586a;if(!_0x448b57['needsUpgrade']&&!_0x448b57[_0x1f45a2(0x121)])return;const _0xadb435=_0x1f45a2(0x135),_0x58a0d0=_0x1f45a2(0x127),_0x25c28f='\x1b[0m',_0x5f1246=_0x1f45a2(0x130),_0xec5d94=getCliUpgradeCommand(_0x448b57);console[_0x1f45a2(0x131)](),_0x448b57[_0x1f45a2(0x121)]?(console[_0x1f45a2(0x131)](''+_0xadb435+_0x5f1246+_0x1f45a2(0x125)+_0x25c28f),console[_0x1f45a2(0x131)](_0xadb435+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x448b57[_0x1f45a2(0x140)]+_0x25c28f),_0x448b57[_0x1f45a2(0x13e)]&&console['log'](_0xadb435+_0x1f45a2(0x139)+_0x448b57[_0x1f45a2(0x13e)]+_0x25c28f),_0x448b57['stableVersion']&&_0x448b57[_0x1f45a2(0x122)]!==_0x448b57[_0x1f45a2(0x13e)]&&console[_0x1f45a2(0x131)](_0xadb435+_0x1f45a2(0x120)+_0x448b57[_0x1f45a2(0x122)]+_0x25c28f),_0x448b57[_0x1f45a2(0x12e)]&&console[_0x1f45a2(0x131)](_0xadb435+'\x20\x20\x20'+_0x448b57[_0x1f45a2(0x12e)]+_0x25c28f),console[_0x1f45a2(0x131)](_0xadb435+_0x1f45a2(0x12b)+_0xec5d94+_0x25c28f)):(console['log'](''+_0x58a0d0+_0x5f1246+_0x1f45a2(0x141)+_0x25c28f),console[_0x1f45a2(0x131)](_0x58a0d0+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x448b57['currentVersion']+_0x25c28f),console[_0x1f45a2(0x131)](_0x58a0d0+_0x1f45a2(0x136)+_0x448b57[_0x1f45a2(0x122)]+_0x25c28f),_0x448b57[_0x1f45a2(0x13a)]&&console[_0x1f45a2(0x131)](_0x58a0d0+_0x1f45a2(0x128)+_0x448b57['upgradeMessage']+_0x25c28f),console[_0x1f45a2(0x131)](_0x58a0d0+'\x20\x20\x20Upgrade\x20command:\x20'+_0xec5d94+_0x25c28f)),console[_0x1f45a2(0x131)]();}export function assertCliVersionSupported(_0x4192f){const _0x50d0a2=a358_0x586a;if(!_0x4192f[_0x50d0a2(0x121)])return;const _0x4979af=[_0x4192f[_0x50d0a2(0x12e)],_0x50d0a2(0x144)+_0x4192f[_0x50d0a2(0x140)],_0x4192f[_0x50d0a2(0x13e)]?_0x50d0a2(0x132)+_0x4192f[_0x50d0a2(0x13e)]:null,_0x50d0a2(0x13c)+getCliUpgradeCommand(_0x4192f)][_0x50d0a2(0x143)](Boolean)['join']('\x0a');throw CliErrors[_0x50d0a2(0x11f)](_0x50d0a2(0x142),_0x4979af);}
1
+ (function(_0xe45aa7,_0x3ca31b){const _0x5a745e=a359_0x2733,_0x3193c6=_0xe45aa7();while(!![]){try{const _0x1b7461=parseInt(_0x5a745e(0x1aa))/0x1+parseInt(_0x5a745e(0x1af))/0x2*(parseInt(_0x5a745e(0x1c3))/0x3)+-parseInt(_0x5a745e(0x1be))/0x4+-parseInt(_0x5a745e(0x1bd))/0x5*(parseInt(_0x5a745e(0x1b7))/0x6)+parseInt(_0x5a745e(0x19f))/0x7*(parseInt(_0x5a745e(0x1c2))/0x8)+parseInt(_0x5a745e(0x1a9))/0x9+-parseInt(_0x5a745e(0x1bf))/0xa*(parseInt(_0x5a745e(0x1b8))/0xb);if(_0x1b7461===_0x3ca31b)break;else _0x3193c6['push'](_0x3193c6['shift']());}catch(_0x521106){_0x3193c6['push'](_0x3193c6['shift']());}}}(a359_0x4eb9,0x3728d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a359_0x4eb9(){const _0x5f4096=['\x20\x20\x20','\x1b[1m','stableVersion','670138gMztQi','\x20\x20\x20Stable\x20version:\x20','log','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','join','npm\x20install\x20-g\x20','\x1b[31m','latest','↪\x20New\x20version\x20available','910053GTMaXg','111494ZNNzkz','currentVersion','Minimum\x20supported:\x20','minimumVersionMessage','1.0.0','588364LhhIGZ','../..','upgradeMessage','coerce','minimumVersion','utf-8','validation','↪\x20Critical\x20CLI\x20upgrade\x20required','18IoSJyf','1639CwEdir','filter','belowMinimum','parse','Current\x20version:\x20','198745oVOFqm','609208FBXFVN','7050pHhPIP','\x1b[0m','Upgrade\x20command:\x20','8qNVPxo','3bRZxLZ','\x20\x20\x20Upgrade\x20command:\x20','version'];a359_0x4eb9=function(){return _0x5f4096;};return a359_0x4eb9();}import{fileURLToPath}from'node:url';import a359_0x503dcc from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a359_0x2733(_0x197140,_0x33eef9){_0x197140=_0x197140-0x19a;const _0x4eb9a7=a359_0x4eb9();let _0x27337a=_0x4eb9a7[_0x197140];return _0x27337a;}export function getCliUpgradeCommand(_0x500cd3){const _0x597d08=a359_0x2733,_0xbb7c6d=_0x500cd3[_0x597d08(0x19e)]||_0x597d08(0x1a7);return _0x597d08(0x1a5)+NPM_PACKAGE_NAME+'@'+_0xbb7c6d;}function getCurrentCliVersion(){const _0x320ede=a359_0x2733;try{const _0x18f90f=fileURLToPath(import.meta.url),_0x141951=resolve(dirname(_0x18f90f),_0x320ede(0x1b0)),_0x421282=resolve(_0x141951,'package.json'),_0x38e205=JSON[_0x320ede(0x1bb)](readFileSync(_0x421282,_0x320ede(0x1b4)));return _0x38e205[_0x320ede(0x19b)]||_0x320ede(0x1ae);}catch{return _0x320ede(0x1ae);}}export async function checkCliVersion(){const _0x350cbc=a359_0x2733,_0x16ccc4=getCurrentCliVersion(),_0x13fdec=await getCliVersionPolicy(),_0xfa27c6=_0x13fdec?.['stableVersion']||null,_0x2cb45e=_0x13fdec?.[_0x350cbc(0x1b3)]||null;let _0x3b69c5=![],_0x4dec80=![];const _0x32a381=a359_0x503dcc[_0x350cbc(0x1b2)](_0x16ccc4);if(_0x32a381&&_0xfa27c6)try{const _0x2b4857=a359_0x503dcc['coerce'](_0xfa27c6);if(_0x2b4857)_0x3b69c5=a359_0x503dcc['lt'](_0x32a381,_0x2b4857);}catch{}if(_0x32a381&&_0x2cb45e)try{const _0x282b42=a359_0x503dcc[_0x350cbc(0x1b2)](_0x2cb45e);if(_0x282b42)_0x4dec80=a359_0x503dcc['lt'](_0x32a381,_0x282b42);}catch{}return _0x4dec80&&(_0x3b69c5=!![]),{'currentVersion':_0x16ccc4,'stableVersion':_0xfa27c6,'minimumVersion':_0x2cb45e,'needsUpgrade':_0x3b69c5,'belowMinimum':_0x4dec80,'isPreRelease':![],'upgradeMessage':_0x13fdec?.[_0x350cbc(0x1b1)],'minimumVersionMessage':_0x13fdec?.[_0x350cbc(0x1ad)]};}export function printCliUpgradeWarning(_0x546752){const _0x194ec4=a359_0x2733;if(!_0x546752['needsUpgrade']&&!_0x546752[_0x194ec4(0x1ba)])return;const _0x503a62=_0x194ec4(0x1a6),_0x3523b1='\x1b[33m',_0xf4abfd=_0x194ec4(0x1c0),_0x2627e5=_0x194ec4(0x19d),_0x1e88a5=getCliUpgradeCommand(_0x546752);console['log'](),_0x546752['belowMinimum']?(console[_0x194ec4(0x1a1)](''+_0x503a62+_0x2627e5+_0x194ec4(0x1b6)+_0xf4abfd),console['log'](_0x503a62+_0x194ec4(0x1a2)+_0x546752[_0x194ec4(0x1ab)]+_0xf4abfd),_0x546752['minimumVersion']&&console['log'](_0x503a62+'\x20\x20\x20Minimum\x20supported:\x20'+_0x546752[_0x194ec4(0x1b3)]+_0xf4abfd),_0x546752['stableVersion']&&_0x546752[_0x194ec4(0x19e)]!==_0x546752['minimumVersion']&&console[_0x194ec4(0x1a1)](_0x503a62+_0x194ec4(0x1a3)+_0x546752[_0x194ec4(0x19e)]+_0xf4abfd),_0x546752['minimumVersionMessage']&&console[_0x194ec4(0x1a1)](_0x503a62+_0x194ec4(0x19c)+_0x546752['minimumVersionMessage']+_0xf4abfd),console[_0x194ec4(0x1a1)](_0x503a62+_0x194ec4(0x19a)+_0x1e88a5+_0xf4abfd)):(console['log'](''+_0x3523b1+_0x2627e5+_0x194ec4(0x1a8)+_0xf4abfd),console[_0x194ec4(0x1a1)](_0x3523b1+_0x194ec4(0x1a2)+_0x546752[_0x194ec4(0x1ab)]+_0xf4abfd),console[_0x194ec4(0x1a1)](_0x3523b1+_0x194ec4(0x1a0)+_0x546752['stableVersion']+_0xf4abfd),_0x546752[_0x194ec4(0x1b1)]&&console[_0x194ec4(0x1a1)](_0x3523b1+_0x194ec4(0x19c)+_0x546752[_0x194ec4(0x1b1)]+_0xf4abfd),console[_0x194ec4(0x1a1)](_0x3523b1+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1e88a5+_0xf4abfd)),console['log']();}export function assertCliVersionSupported(_0x1855de){const _0x3ee663=a359_0x2733;if(!_0x1855de[_0x3ee663(0x1ba)])return;const _0x58a98f=[_0x1855de[_0x3ee663(0x1ad)],_0x3ee663(0x1bc)+_0x1855de['currentVersion'],_0x1855de[_0x3ee663(0x1b3)]?_0x3ee663(0x1ac)+_0x1855de['minimumVersion']:null,_0x3ee663(0x1c1)+getCliUpgradeCommand(_0x1855de)][_0x3ee663(0x1b9)](Boolean)[_0x3ee663(0x1a4)]('\x0a');throw CliErrors[_0x3ee663(0x1b5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x58a98f);}
@@ -1 +1 @@
1
- (function(_0x3eb475,_0x2a7e27){const _0x1e9b8f=a359_0x8f6d,_0x314448=_0x3eb475();while(!![]){try{const _0xe0d390=-parseInt(_0x1e9b8f(0x16a))/0x1*(parseInt(_0x1e9b8f(0x155))/0x2)+parseInt(_0x1e9b8f(0x158))/0x3*(parseInt(_0x1e9b8f(0x15f))/0x4)+-parseInt(_0x1e9b8f(0x166))/0x5+-parseInt(_0x1e9b8f(0x154))/0x6+parseInt(_0x1e9b8f(0x156))/0x7*(parseInt(_0x1e9b8f(0x163))/0x8)+parseInt(_0x1e9b8f(0x164))/0x9*(-parseInt(_0x1e9b8f(0x15a))/0xa)+parseInt(_0x1e9b8f(0x16b))/0xb*(parseInt(_0x1e9b8f(0x165))/0xc);if(_0xe0d390===_0x2a7e27)break;else _0x314448['push'](_0x314448['shift']());}catch(_0x55656d){_0x314448['push'](_0x314448['shift']());}}}(a359_0x23a1,0x4ee3c));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a359_0x2dc7c3 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2949a4){const _0xebbbe9=a359_0x8f6d,_0x518152=a359_0x2dc7c3[_0xebbbe9(0x15e)](_0x2949a4);return _0x518152?a359_0x2dc7c3[_0xebbbe9(0x159)](_0x518152)?.[0x0]===_0xebbbe9(0x16c):![];}function a359_0x8f6d(_0xa9a894,_0x1d425a){_0xa9a894=_0xa9a894-0x150;const _0x23a157=a359_0x23a1();let _0x8f6d9e=_0x23a157[_0xa9a894];return _0x8f6d9e;}export function resolveProjectTemplateDescriptor(_0x2151d5,_0x58ddca){const _0x78d4d2=a359_0x8f6d;if(isBetaCliVersion(_0x58ddca))return _0x2151d5['beta']?.[_0x78d4d2(0x15b)]??_0x2151d5['projectTemplate'];return _0x2151d5[_0x78d4d2(0x15b)];}function pickString(_0x42042c){const _0x3f96b8=a359_0x8f6d;return typeof _0x42042c===_0x3f96b8(0x150)&&_0x42042c[_0x3f96b8(0x153)]()[_0x3f96b8(0x151)]>0x0?_0x42042c['trim']():null;}function a359_0x23a1(){const _0x3f74c2=['prerelease','2487010kKjDIn','projectTemplate','cli','json','valid','108BjwlOx','recommendedVersion','signal','minimumVersionMessage','200kHayCU','9kvEOxM','24FPIkyU','2604300MzVCGm','object','now','stableVersion','4319CrLiPs','6307686ytUdpS','beta','string','length','upgradeMessage','trim','1114074VQJARP','36oLcjZd','3360HhYzEf','minVersion','21918jYlhJc'];a359_0x23a1=function(){return _0x3f74c2;};return a359_0x23a1();}function normalizeCliVersionPolicy(_0xc47e48){const _0xd7babd=a359_0x8f6d;if(!_0xc47e48||typeof _0xc47e48!=='object')return null;const _0x3d9db8=_0xc47e48,_0x59207b=_0x3d9db8[_0xd7babd(0x15c)]&&typeof _0x3d9db8[_0xd7babd(0x15c)]===_0xd7babd(0x167)?_0x3d9db8[_0xd7babd(0x15c)]:_0x3d9db8,_0x559aab=pickString(_0x59207b[_0xd7babd(0x169)])||pickString(_0x59207b['latestVersion'])||pickString(_0x59207b[_0xd7babd(0x160)]),_0x4262bc=pickString(_0x59207b['minimumVersion'])||pickString(_0x59207b[_0xd7babd(0x157)]);if(!_0x559aab&&!_0x4262bc)return null;return{'stableVersion':_0x559aab,'minimumVersion':_0x4262bc,'upgradeMessage':pickString(_0x59207b[_0xd7babd(0x152)])||undefined,'minimumVersionMessage':pickString(_0x59207b[_0xd7babd(0x162)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x5c2fbd){const _0x10110f=a359_0x8f6d,_0x4e0357=new AbortController(),_0x968bbd=setTimeout(()=>_0x4e0357['abort'](),FETCH_TIMEOUT_MS);try{const _0x56c71d=await fetch(_0x5c2fbd,{'headers':{'Accept':'application/json'},'signal':_0x4e0357[_0x10110f(0x161)]});if(!_0x56c71d['ok'])return null;const _0xe76e4b=await _0x56c71d[_0x10110f(0x15d)]();return _0xe76e4b&&typeof _0xe76e4b==='object'?_0xe76e4b:null;}catch{return null;}finally{clearTimeout(_0x968bbd);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x4711c4=await getRabetbaseCdnConfig();return _0x4711c4?{'config':_0x4711c4,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x35ff30=a359_0x8f6d,_0x412199=Date[_0x35ff30(0x168)]();if(hasCachedConfig){const _0x381851=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x412199-cacheTime<_0x381851)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x412199,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a360_0x3deb(_0x47041d,_0x25d3ea){_0x47041d=_0x47041d-0x149;const _0x174c33=a360_0x174c();let _0x3debcb=_0x174c33[_0x47041d];return _0x3debcb;}(function(_0x51e2e2,_0x2045a4){const _0x4148cc=a360_0x3deb,_0x4ed256=_0x51e2e2();while(!![]){try{const _0x4ee726=-parseInt(_0x4148cc(0x158))/0x1*(parseInt(_0x4148cc(0x160))/0x2)+parseInt(_0x4148cc(0x14f))/0x3*(parseInt(_0x4148cc(0x166))/0x4)+parseInt(_0x4148cc(0x15e))/0x5*(-parseInt(_0x4148cc(0x159))/0x6)+parseInt(_0x4148cc(0x155))/0x7*(-parseInt(_0x4148cc(0x14d))/0x8)+-parseInt(_0x4148cc(0x14e))/0x9+parseInt(_0x4148cc(0x162))/0xa*(-parseInt(_0x4148cc(0x15f))/0xb)+parseInt(_0x4148cc(0x156))/0xc*(parseInt(_0x4148cc(0x15c))/0xd);if(_0x4ee726===_0x2045a4)break;else _0x4ed256['push'](_0x4ed256['shift']());}catch(_0x277cf6){_0x4ed256['push'](_0x4ed256['shift']());}}}(a360_0x174c,0x25b6f));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a360_0x64f15f from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x4fd064){const _0x1c1e7d=a360_0x3deb,_0x58787e=a360_0x64f15f[_0x1c1e7d(0x14c)](_0x4fd064);return _0x58787e?a360_0x64f15f[_0x1c1e7d(0x167)](_0x58787e)?.[0x0]===_0x1c1e7d(0x153):![];}export function resolveProjectTemplateDescriptor(_0x449e11,_0x1aa66f){const _0x393787=a360_0x3deb;if(isBetaCliVersion(_0x1aa66f))return _0x449e11['beta']?.['projectTemplate']??_0x449e11[_0x393787(0x14a)];return _0x449e11[_0x393787(0x14a)];}function pickString(_0x5c3190){const _0x644e01=a360_0x3deb;return typeof _0x5c3190===_0x644e01(0x149)&&_0x5c3190[_0x644e01(0x15a)]()[_0x644e01(0x14b)]>0x0?_0x5c3190[_0x644e01(0x15a)]():null;}function normalizeCliVersionPolicy(_0xccb4c8){const _0x5f2a13=a360_0x3deb;if(!_0xccb4c8||typeof _0xccb4c8!==_0x5f2a13(0x163))return null;const _0x538395=_0xccb4c8,_0x36a0d6=_0x538395[_0x5f2a13(0x151)]&&typeof _0x538395['cli']===_0x5f2a13(0x163)?_0x538395[_0x5f2a13(0x151)]:_0x538395,_0x124b1f=pickString(_0x36a0d6['stableVersion'])||pickString(_0x36a0d6[_0x5f2a13(0x152)])||pickString(_0x36a0d6[_0x5f2a13(0x15d)]),_0x4c1b04=pickString(_0x36a0d6[_0x5f2a13(0x157)])||pickString(_0x36a0d6[_0x5f2a13(0x168)]);if(!_0x124b1f&&!_0x4c1b04)return null;return{'stableVersion':_0x124b1f,'minimumVersion':_0x4c1b04,'upgradeMessage':pickString(_0x36a0d6[_0x5f2a13(0x165)])||undefined,'minimumVersionMessage':pickString(_0x36a0d6[_0x5f2a13(0x161)])||undefined};}function a360_0x174c(){const _0x1ffcb4=['388255eyRWKg','36RaNVjv','minimumVersion','149tebzRT','15042yfKxMi','trim','signal','2852291dLEHhi','recommendedVersion','160xcPxIg','292963yNkfoq','1514QdjAQE','minimumVersionMessage','10QqAbFC','object','json','upgradeMessage','1724aTUhys','prerelease','minVersion','string','projectTemplate','length','valid','24KOlAsr','2564325faPDbM','1164voGhlD','abort','cli','latestVersion','beta','now'];a360_0x174c=function(){return _0x1ffcb4;};return a360_0x174c();}async function fetchRabetbaseCdnConfigAt(_0x5f0d52){const _0x1fa597=a360_0x3deb,_0x5bfa17=new AbortController(),_0x35176d=setTimeout(()=>_0x5bfa17[_0x1fa597(0x150)](),FETCH_TIMEOUT_MS);try{const _0x445514=await fetch(_0x5f0d52,{'headers':{'Accept':'application/json'},'signal':_0x5bfa17[_0x1fa597(0x15b)]});if(!_0x445514['ok'])return null;const _0x315f0d=await _0x445514[_0x1fa597(0x164)]();return _0x315f0d&&typeof _0x315f0d===_0x1fa597(0x163)?_0x315f0d:null;}catch{return null;}finally{clearTimeout(_0x35176d);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x4c6162=await getRabetbaseCdnConfig();return _0x4c6162?{'config':_0x4c6162,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1b6e0a=a360_0x3deb,_0x40c6b8=Date[_0x1b6e0a(0x154)]();if(hasCachedConfig){const _0x7c09cf=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x40c6b8-cacheTime<_0x7c09cf)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x40c6b8,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a360_0x4416e9=a360_0x598b;(function(_0x5b7596,_0x28e5ce){const _0xce39b0=a360_0x598b,_0x3ea79c=_0x5b7596();while(!![]){try{const _0x4a8cbb=parseInt(_0xce39b0(0x1bb))/0x1*(parseInt(_0xce39b0(0x1ba))/0x2)+-parseInt(_0xce39b0(0x1be))/0x3*(parseInt(_0xce39b0(0x1bf))/0x4)+-parseInt(_0xce39b0(0x1b7))/0x5+-parseInt(_0xce39b0(0x1c2))/0x6*(-parseInt(_0xce39b0(0x1c1))/0x7)+-parseInt(_0xce39b0(0x1b6))/0x8+parseInt(_0xce39b0(0x1b8))/0x9+parseInt(_0xce39b0(0x1b9))/0xa;if(_0x4a8cbb===_0x28e5ce)break;else _0x3ea79c['push'](_0x3ea79c['shift']());}catch(_0x490df6){_0x3ea79c['push'](_0x3ea79c['shift']());}}}(a360_0x223f,0xe2122));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a360_0x2e0554,getMultiAppConfigs as a360_0x54c765,getTemplateBaseUrl as a360_0x1938cd}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a360_0x598b(_0x1b595a,_0x3e6ac7){_0x1b595a=_0x1b595a-0x1b6;const _0x223f60=a360_0x223f();let _0x598bd7=_0x223f60[_0x1b595a];return _0x598bd7;}export{isInProject}from'../context.js';export function readConfig(_0x487b0e){const _0x4f9abf=a360_0x598b,_0x1c382a=readRawConfig(_0x487b0e);return _0x1c382a[_0x4f9abf(0x1c0)]&&typeof _0x1c382a[_0x4f9abf(0x1c0)]===_0x4f9abf(0x1bc)&&initEnv(_0x1c382a[_0x4f9abf(0x1c0)]),_0x1c382a;}function a360_0x223f(){const _0x207e16=['project','12vDSIMs','1543632fNOoTU','env','35eiVkmM','1085352vDNKKw','13789576oClgsI','3825015swPjJp','7077276lWjoJG','21231860XaREEe','762872fLLbId','3rioVHl','string'];a360_0x223f=function(){return _0x207e16;};return a360_0x223f();}export function getConfigAppCode(){return a360_0x2e0554();}export function getMultiAppConfigs(_0x1c6d34=a360_0x4416e9(0x1bd)){return a360_0x54c765(_0x1c6d34);}export function getTemplateBaseUrl(){return a360_0x1938cd();}
1
+ const a361_0x465037=a361_0x246d;(function(_0x4a34ac,_0x1b19db){const _0x5b7351=a361_0x246d,_0x486393=_0x4a34ac();while(!![]){try{const _0x365bb3=parseInt(_0x5b7351(0xf8))/0x1*(parseInt(_0x5b7351(0x103))/0x2)+parseInt(_0x5b7351(0x100))/0x3*(parseInt(_0x5b7351(0xfa))/0x4)+-parseInt(_0x5b7351(0xfc))/0x5*(parseInt(_0x5b7351(0xff))/0x6)+parseInt(_0x5b7351(0x101))/0x7+-parseInt(_0x5b7351(0xfe))/0x8*(parseInt(_0x5b7351(0xfb))/0x9)+parseInt(_0x5b7351(0x102))/0xa+parseInt(_0x5b7351(0xf6))/0xb*(-parseInt(_0x5b7351(0xf9))/0xc);if(_0x365bb3===_0x1b19db)break;else _0x486393['push'](_0x486393['shift']());}catch(_0x1271c4){_0x486393['push'](_0x486393['shift']());}}}(a361_0xe42f,0xa3ecf));import{initEnv}from'../constant/env.js';function a361_0xe42f(){const _0x1e668f=['5685944KeIxnI','984zGgqjT','3OcOkXE','4888184qrxVlY','8834390YEDiwP','346yEDvzU','63525zUObay','env','286SZfAQe','2868JxKBBa','5228600zJzQKf','9hmRRuG','5365yUKHkL','project'];a361_0xe42f=function(){return _0x1e668f;};return a361_0xe42f();}import{readRawConfig,getConfigAppCode as a361_0x25771b,getMultiAppConfigs as a361_0x17c4e6,getTemplateBaseUrl as a361_0x4cf322}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a361_0x246d(_0x549aef,_0x436824){_0x549aef=_0x549aef-0xf6;const _0xe42fbb=a361_0xe42f();let _0x246d54=_0xe42fbb[_0x549aef];return _0x246d54;}export function readConfig(_0xd195ed){const _0x19830b=a361_0x246d,_0x56aa01=readRawConfig(_0xd195ed);return _0x56aa01[_0x19830b(0xf7)]&&typeof _0x56aa01[_0x19830b(0xf7)]==='string'&&initEnv(_0x56aa01[_0x19830b(0xf7)]),_0x56aa01;}export function getConfigAppCode(){return a361_0x25771b();}export function getMultiAppConfigs(_0x3486f5=a361_0x465037(0xfd)){return a361_0x17c4e6(_0x3486f5);}export function getTemplateBaseUrl(){return a361_0x4cf322();}
@@ -1 +1 @@
1
- function a361_0x4cef(){const _0x28cc4b=['27480AmNyJx','isFinite','6czmenD','object','string','7121195qOPNbA','16656710CIRUts','22bXIAyl','4482lsoRzJ','number','trim','57398FKxEBV','4812920ALamrw','2361KQntbR','3084iVPwie','2153544HCMdmf','187wDTCzt'];a361_0x4cef=function(){return _0x28cc4b;};return a361_0x4cef();}(function(_0x47877b,_0x358e22){const _0x476e58=a361_0x55d5,_0x5c7a52=_0x47877b();while(!![]){try{const _0x2c0e9e=-parseInt(_0x476e58(0x82))/0x1*(parseInt(_0x476e58(0x75))/0x2)+-parseInt(_0x476e58(0x77))/0x3*(-parseInt(_0x476e58(0x78))/0x4)+parseInt(_0x476e58(0x80))/0x5*(-parseInt(_0x476e58(0x7d))/0x6)+-parseInt(_0x476e58(0x76))/0x7+parseInt(_0x476e58(0x7b))/0x8*(-parseInt(_0x476e58(0x83))/0x9)+parseInt(_0x476e58(0x81))/0xa+-parseInt(_0x476e58(0x7a))/0xb*(-parseInt(_0x476e58(0x79))/0xc);if(_0x2c0e9e===_0x358e22)break;else _0x5c7a52['push'](_0x5c7a52['shift']());}catch(_0x1ff355){_0x5c7a52['push'](_0x5c7a52['shift']());}}}(a361_0x4cef,0xd4477));function toFiniteNumber(_0x2141a5){const _0x1f0242=a361_0x55d5;if(typeof _0x2141a5===_0x1f0242(0x84)&&Number['isFinite'](_0x2141a5))return _0x2141a5;if(typeof _0x2141a5===_0x1f0242(0x7f)){const _0x5597b2=_0x2141a5[_0x1f0242(0x85)]();if(!_0x5597b2)return undefined;const _0x24c343=Number(_0x5597b2);if(Number[_0x1f0242(0x7c)](_0x24c343))return _0x24c343;}return undefined;}function a361_0x55d5(_0x4a57c2,_0x214807){_0x4a57c2=_0x4a57c2-0x75;const _0x4cef5b=a361_0x4cef();let _0x55d5ae=_0x4cef5b[_0x4a57c2];return _0x55d5ae;}export function normalizeEntityWithIdResponse(_0x5eb3dc){const _0x2b5305=a361_0x55d5,_0x1df208=toFiniteNumber(_0x5eb3dc);if(_0x1df208!==undefined)return{'id':_0x1df208,'entity':{'id':_0x1df208}};if(!_0x5eb3dc||typeof _0x5eb3dc!==_0x2b5305(0x7e))return{'id':undefined,'entity':{}};const _0x25c246={..._0x5eb3dc},_0x6d8421=toFiniteNumber(_0x25c246['id']);return _0x6d8421!==undefined&&(_0x25c246['id']=_0x6d8421),{'id':_0x6d8421,'entity':_0x25c246};}
1
+ (function(_0x2b3422,_0x717bab){const _0x495aec=a362_0x314c,_0x408228=_0x2b3422();while(!![]){try{const _0xd1305=parseInt(_0x495aec(0x92))/0x1+parseInt(_0x495aec(0x87))/0x2+parseInt(_0x495aec(0x8f))/0x3+parseInt(_0x495aec(0x85))/0x4*(-parseInt(_0x495aec(0x86))/0x5)+-parseInt(_0x495aec(0x8e))/0x6*(parseInt(_0x495aec(0x90))/0x7)+parseInt(_0x495aec(0x8b))/0x8*(-parseInt(_0x495aec(0x8a))/0x9)+-parseInt(_0x495aec(0x93))/0xa*(parseInt(_0x495aec(0x8d))/0xb);if(_0xd1305===_0x717bab)break;else _0x408228['push'](_0x408228['shift']());}catch(_0x45a2a9){_0x408228['push'](_0x408228['shift']());}}}(a362_0x31f4,0x9234d));function toFiniteNumber(_0x40b190){const _0x311f61=a362_0x314c;if(typeof _0x40b190===_0x311f61(0x88)&&Number[_0x311f61(0x8c)](_0x40b190))return _0x40b190;if(typeof _0x40b190===_0x311f61(0x91)){const _0x355eac=_0x40b190[_0x311f61(0x89)]();if(!_0x355eac)return undefined;const _0x3c46e4=Number(_0x355eac);if(Number[_0x311f61(0x8c)](_0x3c46e4))return _0x3c46e4;}return undefined;}export function normalizeEntityWithIdResponse(_0x37589d){const _0x4aab1a=toFiniteNumber(_0x37589d);if(_0x4aab1a!==undefined)return{'id':_0x4aab1a,'entity':{'id':_0x4aab1a}};if(!_0x37589d||typeof _0x37589d!=='object')return{'id':undefined,'entity':{}};const _0x3d9417={..._0x37589d},_0x2a894c=toFiniteNumber(_0x3d9417['id']);return _0x2a894c!==undefined&&(_0x3d9417['id']=_0x2a894c),{'id':_0x2a894c,'entity':_0x3d9417};}function a362_0x314c(_0x5e5574,_0x44758c){_0x5e5574=_0x5e5574-0x85;const _0x31f4e4=a362_0x31f4();let _0x314cc2=_0x31f4e4[_0x5e5574];return _0x314cc2;}function a362_0x31f4(){const _0x4ead98=['648qQpozm','632BLQxof','isFinite','9256060JVcUcl','4852530BHkZAN','3522771dgCfaz','7NwiUUw','string','1099289jhHniK','10pnNFHw','18844tlbdow','370BGTCHP','659664yIdLhd','number','trim'];a362_0x31f4=function(){return _0x4ead98;};return a362_0x31f4();}
@@ -1 +1 @@
1
- (function(_0x209924,_0x23357a){const _0x249672=a362_0x5f59,_0x2723fa=_0x209924();while(!![]){try{const _0x40a66e=parseInt(_0x249672(0x12a))/0x1+parseInt(_0x249672(0x129))/0x2+-parseInt(_0x249672(0x128))/0x3*(parseInt(_0x249672(0x125))/0x4)+parseInt(_0x249672(0x123))/0x5*(-parseInt(_0x249672(0x126))/0x6)+-parseInt(_0x249672(0x12b))/0x7*(parseInt(_0x249672(0x121))/0x8)+parseInt(_0x249672(0x122))/0x9*(parseInt(_0x249672(0x127))/0xa)+parseInt(_0x249672(0x124))/0xb;if(_0x40a66e===_0x23357a)break;else _0x2723fa['push'](_0x2723fa['shift']());}catch(_0x305801){_0x2723fa['push'](_0x2723fa['shift']());}}}(a362_0x1dec,0xe38e9));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a362_0x1dec(){const _0x5d1171=['30nlwvtj','932073cECvGH','852320ssPlbN','933920AKpbZI','2856DfHFon','16992nymYBN','1802583vtMUoS','50QpDcNK','13131426WcGLje','8yAusRP','440796tbLDRg'];a362_0x1dec=function(){return _0x5d1171;};return a362_0x1dec();}function a362_0x5f59(_0x37b99d,_0x42ff5d){_0x37b99d=_0x37b99d-0x121;const _0x1dec1c=a362_0x1dec();let _0x5f59a7=_0x1dec1c[_0x37b99d];return _0x5f59a7;}import{join}from'node:path';export async function copyDir(_0x2c6602,_0x4e6791){const _0x133fe5=statSync(_0x2c6602);if(_0x133fe5['isDirectory']()){!existsSync(_0x4e6791)&&mkdirSync(_0x4e6791,{'recursive':!![]});const _0x1b9ecf=readdirSync(_0x2c6602);for(const _0x74331c of _0x1b9ecf){await copyDir(join(_0x2c6602,_0x74331c),join(_0x4e6791,_0x74331c));}}else copyFileSync(_0x2c6602,_0x4e6791);}export function ensureDir(_0x11d6a8){!existsSync(_0x11d6a8)&&mkdirSync(_0x11d6a8,{'recursive':!![]});}export function pathExists(_0x12b6c2){return existsSync(_0x12b6c2);}
1
+ (function(_0x3395e2,_0x1456d6){const _0x28c927=a363_0x5122,_0x2d80c1=_0x3395e2();while(!![]){try{const _0x4c6bfb=parseInt(_0x28c927(0x92))/0x1+parseInt(_0x28c927(0x8f))/0x2+parseInt(_0x28c927(0x8d))/0x3+parseInt(_0x28c927(0x90))/0x4+-parseInt(_0x28c927(0x94))/0x5+-parseInt(_0x28c927(0x8b))/0x6*(parseInt(_0x28c927(0x93))/0x7)+parseInt(_0x28c927(0x8c))/0x8*(-parseInt(_0x28c927(0x8e))/0x9);if(_0x4c6bfb===_0x1456d6)break;else _0x2d80c1['push'](_0x2d80c1['shift']());}catch(_0x176e90){_0x2d80c1['push'](_0x2d80c1['shift']());}}}(a363_0x524d,0x9cf47));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x491661,_0x5c684e){const _0x5c1a80=a363_0x5122,_0x6fceed=statSync(_0x491661);if(_0x6fceed[_0x5c1a80(0x91)]()){!existsSync(_0x5c684e)&&mkdirSync(_0x5c684e,{'recursive':!![]});const _0x467f75=readdirSync(_0x491661);for(const _0x134731 of _0x467f75){await copyDir(join(_0x491661,_0x134731),join(_0x5c684e,_0x134731));}}else copyFileSync(_0x491661,_0x5c684e);}function a363_0x524d(){const _0x2225d5=['5411TeAgVS','2066180BQmaZl','2190FDmFAq','696mVOMOM','3568926EebNkX','248598XipsET','1054250YNlFrQ','3985736TkNXZi','isDirectory','1028181znhAyw'];a363_0x524d=function(){return _0x2225d5;};return a363_0x524d();}export function ensureDir(_0x447323){!existsSync(_0x447323)&&mkdirSync(_0x447323,{'recursive':!![]});}function a363_0x5122(_0x40d588,_0x591fda){_0x40d588=_0x40d588-0x8b;const _0x524d84=a363_0x524d();let _0x5122b5=_0x524d84[_0x40d588];return _0x5122b5;}export function pathExists(_0x5e6ef3){return existsSync(_0x5e6ef3);}
@@ -1 +1 @@
1
- const a363_0x1a24c4=a363_0x4c0e;(function(_0x576226,_0x41adb6){const _0x4a5dd5=a363_0x4c0e,_0x3f63a9=_0x576226();while(!![]){try{const _0xc51662=parseInt(_0x4a5dd5(0x1e5))/0x1*(-parseInt(_0x4a5dd5(0x1d6))/0x2)+-parseInt(_0x4a5dd5(0x1cf))/0x3*(-parseInt(_0x4a5dd5(0x1da))/0x4)+parseInt(_0x4a5dd5(0x1dc))/0x5*(parseInt(_0x4a5dd5(0x1d8))/0x6)+-parseInt(_0x4a5dd5(0x1d7))/0x7*(-parseInt(_0x4a5dd5(0x1ee))/0x8)+parseInt(_0x4a5dd5(0x1e9))/0x9*(-parseInt(_0x4a5dd5(0x1db))/0xa)+parseInt(_0x4a5dd5(0x1dd))/0xb*(parseInt(_0x4a5dd5(0x1e3))/0xc)+-parseInt(_0x4a5dd5(0x1ef))/0xd*(parseInt(_0x4a5dd5(0x1e1))/0xe);if(_0xc51662===_0x41adb6)break;else _0x3f63a9['push'](_0x3f63a9['shift']());}catch(_0x181652){_0x3f63a9['push'](_0x3f63a9['shift']());}}}(a363_0x480b,0xf1265));function a363_0x480b(){const _0x1c5167=['keys','map','content','length','5547arZpwh','push','trimEnd','.lovrabet','entries','CDN\x20request\x20failed:\x20','title','71272oIJoRj','6051577hnIsvV','6mEnyXc','json','500cCiYrc','2190IpEAjv','2948535eTaVZN','11VPqKyR','lastUpdated','statusText','application/json','3759658lTsWdE','replace','9395868qrGhqG','.md','19gWMbFH','utf-8','.lovrabet/skill/guides','cache','46476zUUSWK','CDN\x20data\x20is\x20missing\x20skillTemplate','/skills/guides.json','guides','status','16KdpWla','26HAdjmt','skillTemplate'];a363_0x480b=function(){return _0x1c5167;};return a363_0x480b();}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 _0x25943e=a363_0x4c0e,_0x59f9ad=getTemplateBaseUrl();return _0x59f9ad+_0x25943e(0x1eb);}const CACHE_DIR=join(homedir(),a363_0x1a24c4(0x1d2),a363_0x1a24c4(0x1e8));export async function fetchGuidesFromCDN(){const _0x34fb98=a363_0x1a24c4,_0xd730a2=getGuidesCdnUrl(),_0x5d3fbf=await fetch(_0xd730a2,{'headers':{'Accept':_0x34fb98(0x1e0)}});if(!_0x5d3fbf['ok'])throw new Error(_0x34fb98(0x1d4)+_0x5d3fbf[_0x34fb98(0x1ed)]+'\x20'+_0x5d3fbf[_0x34fb98(0x1df)]);const _0x29f49d=await _0x5d3fbf[_0x34fb98(0x1d9)]();if(!_0x29f49d[_0x34fb98(0x1ec)]||typeof _0x29f49d[_0x34fb98(0x1ec)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x29f49d;}export function writeGuidesToProject(_0x10d683,_0x386cf0,_0x3ac474=a363_0x1a24c4(0x1e7),_0x5ce6b3){const _0xb2a094=a363_0x1a24c4,_0x4fa4a2=join(_0x386cf0,_0x3ac474);mkdirSync(_0x4fa4a2,{'recursive':!![]});for(const [_0x206b19,_0x1571de]of Object[_0xb2a094(0x1d3)](_0x10d683[_0xb2a094(0x1ec)])){let _0x4df554=_0x1571de[_0xb2a094(0x1f3)];_0x1571de[_0xb2a094(0x1de)]&&(_0x4df554=appendUpdateTime(_0x4df554,_0x1571de['lastUpdated'])),writeFileSync(join(_0x4fa4a2,_0x206b19+_0xb2a094(0x1e4)),_0x4df554,_0xb2a094(0x1e6));}}export function appendUpdateTime(_0x298e15,_0x6a1e18){return _0x298e15=_0x298e15['replace'](/\n*>更新时间:.*$/m,''),_0x298e15['trimEnd']()+('\x0a\x0a>更新时间:'+_0x6a1e18);}export function getSkillTemplate(_0x3044f0){const _0xef983e=a363_0x1a24c4;return _0x3044f0[_0xef983e(0x1f0)]?.[_0xef983e(0x1f3)]||'';}export function appendExtendContents(_0x430ae8,_0x3033b6,_0x4620d9){const _0x5677ec=a363_0x1a24c4,_0x380353=[];for(const [,_0x5c8a9d]of Object[_0x5677ec(0x1d3)](_0x3033b6[_0x5677ec(0x1ec)])){_0x5c8a9d['extendContent']&&_0x380353[_0x5677ec(0x1d0)](_0x5c8a9d['extendContent'][_0x5677ec(0x1d1)]());}if(_0x380353[_0x5677ec(0x1ce)]===0x0)return _0x430ae8;return _0x430ae8[_0x5677ec(0x1d1)]()+'\x0a\x0a'+_0x380353['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4fce39,_0x406075,_0x2b6096){const _0x2e1aef=a363_0x1a24c4,_0x2d586c=getSkillTemplate(_0x4fce39);if(!_0x2d586c)throw new Error(_0x2e1aef(0x1ea));const _0x329a09=dirname(_0x406075);mkdirSync(_0x329a09,{'recursive':!![]});let _0x2833b8=_0x2d586c[_0x2e1aef(0x1e2)](/\{\{IDE_NAME\}\}/g,_0x2b6096);_0x2833b8=appendExtendContents(_0x2833b8,_0x4fce39),_0x4fce39[_0x2e1aef(0x1f0)][_0x2e1aef(0x1de)]&&(_0x2833b8=appendUpdateTime(_0x2833b8,_0x4fce39[_0x2e1aef(0x1f0)]['lastUpdated'])),writeFileSync(_0x406075,_0x2833b8,'utf-8');}export async function installGuides(_0x15d6a0){const _0x5d435c=a363_0x1a24c4,_0x17f093=await fetchGuidesFromCDN();return writeGuidesToProject(_0x17f093,_0x15d6a0),Object[_0x5d435c(0x1f1)](_0x17f093[_0x5d435c(0x1ec)])[_0x5d435c(0x1ce)];}function a363_0x4c0e(_0x447fee,_0x5a0e3b){_0x447fee=_0x447fee-0x1ce;const _0x480b53=a363_0x480b();let _0x4c0eb5=_0x480b53[_0x447fee];return _0x4c0eb5;}export function getGuidesSummary(_0x1d198c){const _0xec2364=a363_0x1a24c4;return Object['entries'](_0x1d198c['guides'])[_0xec2364(0x1f2)](([_0x270db5,_0x121683])=>({'key':_0x270db5,'title':_0x121683[_0xec2364(0x1d5)],'path':_0x121683['path']}));}
1
+ const a364_0x59539b=a364_0x26e6;function a364_0x59a7(){const _0x3cb55d=['guides','path','234414IfQbzD','2693845YCGpCE','object','lastUpdated','skillTemplate','519154pOSPJq','utf-8','extendContent','map','title','9aJVvRZ','entries','content','application/json','.lovrabet','\x0a\x0a>更新时间:','441772kfVgUn','trimEnd','json','1834852hdrvnW','push','keys','CDN\x20returned\x20invalid\x20data','/skills/guides.json','replace','6xEbPWv','15RqRDpx','join','10050020tiRLkr','CDN\x20request\x20failed:\x20','.lovrabet/skill/guides','11490280exJZjL','length'];a364_0x59a7=function(){return _0x3cb55d;};return a364_0x59a7();}(function(_0x4b617b,_0xd01ac4){const _0x608f83=a364_0x26e6,_0x3c1289=_0x4b617b();while(!![]){try{const _0x91684f=parseInt(_0x608f83(0x78))/0x1+parseInt(_0x608f83(0x83))/0x2+parseInt(_0x608f83(0x8c))/0x3*(parseInt(_0x608f83(0x86))/0x4)+parseInt(_0x608f83(0x8d))/0x5*(-parseInt(_0x608f83(0x96))/0x6)+-parseInt(_0x608f83(0x97))/0x7+-parseInt(_0x608f83(0x92))/0x8+-parseInt(_0x608f83(0x7d))/0x9*(-parseInt(_0x608f83(0x8f))/0xa);if(_0x91684f===_0xd01ac4)break;else _0x3c1289['push'](_0x3c1289['shift']());}catch(_0x268395){_0x3c1289['push'](_0x3c1289['shift']());}}}(a364_0x59a7,0xb0cad));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a364_0x26e6(_0x4bc23a,_0x5660d6){_0x4bc23a=_0x4bc23a-0x78;const _0x59a7e7=a364_0x59a7();let _0x26e6a8=_0x59a7e7[_0x4bc23a];return _0x26e6a8;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x51491b=a364_0x26e6,_0x3c85f4=getTemplateBaseUrl();return _0x3c85f4+_0x51491b(0x8a);}const CACHE_DIR=join(homedir(),a364_0x59539b(0x81),'cache');export async function fetchGuidesFromCDN(){const _0x27c31c=a364_0x59539b,_0x8d53bc=getGuidesCdnUrl(),_0x19c0dc=await fetch(_0x8d53bc,{'headers':{'Accept':_0x27c31c(0x80)}});if(!_0x19c0dc['ok'])throw new Error(_0x27c31c(0x90)+_0x19c0dc['status']+'\x20'+_0x19c0dc['statusText']);const _0x187325=await _0x19c0dc[_0x27c31c(0x85)]();if(!_0x187325[_0x27c31c(0x94)]||typeof _0x187325['guides']!==_0x27c31c(0x98))throw new Error(_0x27c31c(0x89));return _0x187325;}export function writeGuidesToProject(_0x12d660,_0x15e55a,_0xdcde93=a364_0x59539b(0x91),_0x264245){const _0x4112c0=a364_0x59539b,_0x21bb20=join(_0x15e55a,_0xdcde93);mkdirSync(_0x21bb20,{'recursive':!![]});for(const [_0x2d7e46,_0x5c9d07]of Object[_0x4112c0(0x7e)](_0x12d660[_0x4112c0(0x94)])){let _0x637f00=_0x5c9d07[_0x4112c0(0x7f)];_0x5c9d07[_0x4112c0(0x99)]&&(_0x637f00=appendUpdateTime(_0x637f00,_0x5c9d07['lastUpdated'])),writeFileSync(join(_0x21bb20,_0x2d7e46+'.md'),_0x637f00,_0x4112c0(0x79));}}export function appendUpdateTime(_0x5c3833,_0x41b503){const _0x498529=a364_0x59539b;return _0x5c3833=_0x5c3833[_0x498529(0x8b)](/\n*>更新时间:.*$/m,''),_0x5c3833[_0x498529(0x84)]()+(_0x498529(0x82)+_0x41b503);}export function getSkillTemplate(_0x384aed){const _0x25b5f7=a364_0x59539b;return _0x384aed[_0x25b5f7(0x9a)]?.[_0x25b5f7(0x7f)]||'';}export function appendExtendContents(_0x5866d0,_0x336729,_0x55b4a9){const _0x12e690=a364_0x59539b,_0x5c1774=[];for(const [,_0x5c6b81]of Object['entries'](_0x336729[_0x12e690(0x94)])){_0x5c6b81[_0x12e690(0x7a)]&&_0x5c1774[_0x12e690(0x87)](_0x5c6b81['extendContent'][_0x12e690(0x84)]());}if(_0x5c1774[_0x12e690(0x93)]===0x0)return _0x5866d0;return _0x5866d0[_0x12e690(0x84)]()+'\x0a\x0a'+_0x5c1774[_0x12e690(0x8e)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x496eec,_0x2be9f9,_0x56bfe8){const _0xa28dad=a364_0x59539b,_0x4571eb=getSkillTemplate(_0x496eec);if(!_0x4571eb)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x3f71b1=dirname(_0x2be9f9);mkdirSync(_0x3f71b1,{'recursive':!![]});let _0x32ea45=_0x4571eb[_0xa28dad(0x8b)](/\{\{IDE_NAME\}\}/g,_0x56bfe8);_0x32ea45=appendExtendContents(_0x32ea45,_0x496eec),_0x496eec['skillTemplate'][_0xa28dad(0x99)]&&(_0x32ea45=appendUpdateTime(_0x32ea45,_0x496eec[_0xa28dad(0x9a)]['lastUpdated'])),writeFileSync(_0x2be9f9,_0x32ea45,'utf-8');}export async function installGuides(_0x15a24c){const _0x416404=a364_0x59539b,_0x113bb7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x113bb7,_0x15a24c),Object[_0x416404(0x88)](_0x113bb7[_0x416404(0x94)])[_0x416404(0x93)];}export function getGuidesSummary(_0x25e4d2){const _0x1ff391=a364_0x59539b;return Object[_0x1ff391(0x7e)](_0x25e4d2[_0x1ff391(0x94)])[_0x1ff391(0x7b)](([_0x564198,_0x431fd0])=>({'key':_0x564198,'title':_0x431fd0[_0x1ff391(0x7c)],'path':_0x431fd0[_0x1ff391(0x95)]}));}
@@ -1 +1 @@
1
- (function(_0x47522f,_0x4b5452){const _0x16a345=a364_0x214f,_0x3feec2=_0x47522f();while(!![]){try{const _0x28ad67=-parseInt(_0x16a345(0x1b2))/0x1+parseInt(_0x16a345(0x1b7))/0x2+-parseInt(_0x16a345(0x1b6))/0x3+parseInt(_0x16a345(0x1be))/0x4*(parseInt(_0x16a345(0x1b5))/0x5)+-parseInt(_0x16a345(0x1c6))/0x6*(-parseInt(_0x16a345(0x1b0))/0x7)+-parseInt(_0x16a345(0x1bc))/0x8+parseInt(_0x16a345(0x1c3))/0x9;if(_0x28ad67===_0x4b5452)break;else _0x3feec2['push'](_0x3feec2['shift']());}catch(_0x3857e5){_0x3feec2['push'](_0x3feec2['shift']());}}}(a364_0x2bc0,0x61de9));function a364_0x2bc0(){const _0x51d736=['ECONNRESET','1283036ukcfit','includes','abort','content-type','*\x20Request\x20failed;\x20retry\x20','345834AbqSfg','Request\x20failed','\x20in\x20','182802aEgXCA','ENOTFOUND','TypeError','log','application/json','ms...','21ZiWtWf','fetch','600169rIZdBv','headers','name','10NBWFbB','582492kGzxcW','1370750uijnrZ','message','json','status','text','2092112ErOLvn'];a364_0x2bc0=function(){return _0x51d736;};return a364_0x2bc0();}function a364_0x214f(_0x15d3d7,_0x1bcf54){_0x15d3d7=_0x15d3d7-0x1ad;const _0x2bc0e8=a364_0x2bc0();let _0x214f7a=_0x2bc0e8[_0x15d3d7];return _0x214f7a;}export async function httpRequest(_0x351690,_0x2f4e4e={}){const _0x52ab60=a364_0x214f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2f4e4e;let _0x11a1db=null;for(let _0x25199e=0x0;_0x25199e<=retries;_0x25199e++){try{const _0xadb8de=new AbortController(),_0x1b2014=setTimeout(()=>_0xadb8de[_0x52ab60(0x1c0)](),timeout),_0x3a49ab=await fetch(_0x351690,{'headers':headers,'signal':_0xadb8de['signal']});clearTimeout(_0x1b2014);let _0x5bd9a9;const _0x44256e=_0x3a49ab[_0x52ab60(0x1b3)]['get'](_0x52ab60(0x1c1));return _0x44256e?.[_0x52ab60(0x1bf)](_0x52ab60(0x1ae))?_0x5bd9a9=await _0x3a49ab[_0x52ab60(0x1b9)]():_0x5bd9a9=await _0x3a49ab['text'](),{'ok':_0x3a49ab['ok'],'status':_0x3a49ab[_0x52ab60(0x1ba)],'statusText':_0x3a49ab['statusText'],'data':_0x5bd9a9,'headers':_0x3a49ab[_0x52ab60(0x1b3)],'url':_0x3a49ab['url'],'text':()=>_0x3a49ab[_0x52ab60(0x1bb)]()};}catch(_0x5832a9){_0x11a1db=_0x5832a9 instanceof Error?_0x5832a9:new Error(String(_0x5832a9));if(_0x25199e===retries)break;if(shouldRetry(_0x5832a9)){console[_0x52ab60(0x1ad)](_0x52ab60(0x1c2)+(_0x25199e+0x1)+_0x52ab60(0x1c5)+retryDelay+_0x52ab60(0x1af)),await sleep(retryDelay);continue;}else break;}}throw _0x11a1db||new Error(_0x52ab60(0x1c4));}function shouldRetry(_0x176a2d){const _0x4fd22a=a364_0x214f;if(_0x176a2d instanceof Error){if(_0x176a2d[_0x4fd22a(0x1b4)]==='AbortError')return![];if(_0x176a2d[_0x4fd22a(0x1b4)]===_0x4fd22a(0x1c8)&&_0x176a2d[_0x4fd22a(0x1b8)][_0x4fd22a(0x1bf)](_0x4fd22a(0x1b1)))return!![];if(_0x176a2d[_0x4fd22a(0x1b8)]['includes'](_0x4fd22a(0x1bd)))return!![];if(_0x176a2d[_0x4fd22a(0x1b8)][_0x4fd22a(0x1bf)](_0x4fd22a(0x1c7)))return![];}return![];}function sleep(_0x3bf763){return new Promise(_0x2f25b0=>setTimeout(_0x2f25b0,_0x3bf763));}export function validateUrl(_0x21468e){try{return new URL(_0x21468e),!![];}catch{return![];}}
1
+ (function(_0x123077,_0x4c7e4b){const _0x18995b=a365_0x44b1,_0x18f405=_0x123077();while(!![]){try{const _0x47c9a2=-parseInt(_0x18995b(0x1ed))/0x1+-parseInt(_0x18995b(0x1eb))/0x2+-parseInt(_0x18995b(0x1ea))/0x3*(parseInt(_0x18995b(0x1e3))/0x4)+-parseInt(_0x18995b(0x1e2))/0x5+-parseInt(_0x18995b(0x1f0))/0x6*(-parseInt(_0x18995b(0x1f9))/0x7)+-parseInt(_0x18995b(0x1f4))/0x8*(parseInt(_0x18995b(0x1e8))/0x9)+parseInt(_0x18995b(0x1ec))/0xa;if(_0x47c9a2===_0x4c7e4b)break;else _0x18f405['push'](_0x18f405['shift']());}catch(_0x3e33fc){_0x18f405['push'](_0x18f405['shift']());}}}(a365_0x2b35,0x32a01));function a365_0x44b1(_0x505f53,_0x228b78){_0x505f53=_0x505f53-0x1e1;const _0x2b355c=a365_0x2b35();let _0x44b106=_0x2b355c[_0x505f53];return _0x44b106;}export async function httpRequest(_0x507fa4,_0x21e36c={}){const _0x828735=a365_0x44b1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x21e36c;let _0x521019=null;for(let _0x3412bc=0x0;_0x3412bc<=retries;_0x3412bc++){try{const _0x1a4f31=new AbortController(),_0x5e2594=setTimeout(()=>_0x1a4f31[_0x828735(0x1ee)](),timeout),_0x4e46ee=await fetch(_0x507fa4,{'headers':headers,'signal':_0x1a4f31['signal']});clearTimeout(_0x5e2594);let _0x49e8b3;const _0x27b60d=_0x4e46ee['headers'][_0x828735(0x1e9)](_0x828735(0x1ef));return _0x27b60d?.[_0x828735(0x1f5)](_0x828735(0x1f7))?_0x49e8b3=await _0x4e46ee['json']():_0x49e8b3=await _0x4e46ee[_0x828735(0x1f3)](),{'ok':_0x4e46ee['ok'],'status':_0x4e46ee[_0x828735(0x1f8)],'statusText':_0x4e46ee[_0x828735(0x1f1)],'data':_0x49e8b3,'headers':_0x4e46ee[_0x828735(0x1f2)],'url':_0x4e46ee[_0x828735(0x1e1)],'text':()=>_0x4e46ee[_0x828735(0x1f3)]()};}catch(_0x533bae){_0x521019=_0x533bae instanceof Error?_0x533bae:new Error(String(_0x533bae));if(_0x3412bc===retries)break;if(shouldRetry(_0x533bae)){console['log']('*\x20Request\x20failed;\x20retry\x20'+(_0x3412bc+0x1)+_0x828735(0x1e4)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x521019||new Error('Request\x20failed');}function shouldRetry(_0x1ad2c0){const _0x39a85d=a365_0x44b1;if(_0x1ad2c0 instanceof Error){if(_0x1ad2c0[_0x39a85d(0x1e5)]==='AbortError')return![];if(_0x1ad2c0[_0x39a85d(0x1e5)]==='TypeError'&&_0x1ad2c0[_0x39a85d(0x1e6)][_0x39a85d(0x1f5)](_0x39a85d(0x1e7)))return!![];if(_0x1ad2c0[_0x39a85d(0x1e6)][_0x39a85d(0x1f5)](_0x39a85d(0x1f6)))return!![];if(_0x1ad2c0['message']['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x2ce30c){return new Promise(_0x2207eb=>setTimeout(_0x2207eb,_0x2ce30c));}export function validateUrl(_0x25e8b9){try{return new URL(_0x25e8b9),!![];}catch{return![];}}function a365_0x2b35(){const _0x278964=['message','fetch','30474vMsCoi','get','1734yQrCtT','313950IyrZcY','9268090mfZWwz','151189DURfhb','abort','content-type','6ijeMBM','statusText','headers','text','184NpzIKL','includes','ECONNRESET','application/json','status','2604847swXfHT','url','1507525FtMWFN','2796RUEPqA','\x20in\x20','name'];a365_0x2b35=function(){return _0x278964;};return a365_0x2b35();}
@@ -1 +1 @@
1
- (function(_0x2cd873,_0x53ce46){const _0x3042c9=a365_0x6cb4,_0x33fabe=_0x2cd873();while(!![]){try{const _0x246fdd=parseInt(_0x3042c9(0x178))/0x1+parseInt(_0x3042c9(0x16f))/0x2+parseInt(_0x3042c9(0x17d))/0x3+-parseInt(_0x3042c9(0x171))/0x4*(parseInt(_0x3042c9(0x170))/0x5)+-parseInt(_0x3042c9(0x172))/0x6+-parseInt(_0x3042c9(0x17c))/0x7*(parseInt(_0x3042c9(0x17e))/0x8)+parseInt(_0x3042c9(0x177))/0x9*(parseInt(_0x3042c9(0x176))/0xa);if(_0x246fdd===_0x53ce46)break;else _0x33fabe['push'](_0x33fabe['shift']());}catch(_0x26b581){_0x33fabe['push'](_0x33fabe['shift']());}}}(a365_0x23aa,0xf04ae));function env(_0x33a2cc){return process.env[`RABETBASE_${_0x33a2cc}`]||process.env[`LOVRABET_${_0x33a2cc}`]||undefined;}function a365_0x6cb4(_0x3e14a9,_0x1a233d){_0x3e14a9=_0x3e14a9-0x16f;const _0x23aa31=a365_0x23aa();let _0x6cb4a6=_0x23aa31[_0x3e14a9];return _0x6cb4a6;}export function isNonInteractive(_0x316e96){const _0x5221d2=a365_0x6cb4;return!!(_0x316e96[_0x5221d2(0x17a)]||_0x316e96['ci']||env('CI')===_0x5221d2(0x173)||process.env.CI===_0x5221d2(0x173)||!process[_0x5221d2(0x174)][_0x5221d2(0x17f)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x485322=a365_0x6cb4;if(!process[_0x485322(0x175)][_0x485322(0x17f)])return![];try{const _0x4486e6=process['stdin'][_0x485322(0x179)];return process[_0x485322(0x175)]['setRawMode'](!![]),process['stdin'][_0x485322(0x17b)](_0x4486e6??![]),!![];}catch{return![];}}function a365_0x23aa(){const _0x58381f=['4423512WcsQdZ','568QriPbI','isTTY','1371814JdJDbI','5YYewfT','537972fOxicg','980664PHJiNB','true','stdout','stdin','444590hMbFKr','9LSTrLX','94948xfxnij','isRaw','nonInteractive','setRawMode','100331QCbOcr'];a365_0x23aa=function(){return _0x58381f;};return a365_0x23aa();}
1
+ function a366_0x65dd(_0x1f9ce7,_0x451588){_0x1f9ce7=_0x1f9ce7-0xde;const _0x185ab4=a366_0x185a();let _0x65dd3d=_0x185ab4[_0x1f9ce7];return _0x65dd3d;}function a366_0x185a(){const _0x282c5b=['isTTY','stdin','255961bSjdwh','2329494xQqupd','nonInteractive','setRawMode','5997078DZnAya','76241PVFLHI','8504oASBID','2eQnTEV','70sKnptv','2167070SHERDM','84KRYHhp','1000IoNISw','true','20508OGWApK'];a366_0x185a=function(){return _0x282c5b;};return a366_0x185a();}(function(_0x1764ff,_0x166dc3){const _0x12f822=a366_0x65dd,_0x5e6721=_0x1764ff();while(!![]){try{const _0xef18=parseInt(_0x12f822(0xe3))/0x1*(parseInt(_0x12f822(0xea))/0x2)+parseInt(_0x12f822(0xed))/0x3*(parseInt(_0x12f822(0xe0))/0x4)+parseInt(_0x12f822(0xec))/0x5+-parseInt(_0x12f822(0xe4))/0x6+-parseInt(_0x12f822(0xeb))/0x7*(parseInt(_0x12f822(0xe9))/0x8)+-parseInt(_0x12f822(0xe7))/0x9+-parseInt(_0x12f822(0xde))/0xa*(-parseInt(_0x12f822(0xe8))/0xb);if(_0xef18===_0x166dc3)break;else _0x5e6721['push'](_0x5e6721['shift']());}catch(_0x18c865){_0x5e6721['push'](_0x5e6721['shift']());}}}(a366_0x185a,0x7080a));function env(_0x21d059){return process.env[`RABETBASE_${_0x21d059}`]||process.env[`LOVRABET_${_0x21d059}`]||undefined;}export function isNonInteractive(_0xb37e15){const _0x5e5014=a366_0x65dd;return!!(_0xb37e15[_0x5e5014(0xe5)]||_0xb37e15['ci']||env('CI')===_0x5e5014(0xdf)||process.env.CI===_0x5e5014(0xdf)||!process['stdout'][_0x5e5014(0xe1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xa98101=a366_0x65dd;if(!process[_0xa98101(0xe2)][_0xa98101(0xe1)])return![];try{const _0x3e2f26=process[_0xa98101(0xe2)]['isRaw'];return process[_0xa98101(0xe2)]['setRawMode'](!![]),process[_0xa98101(0xe2)][_0xa98101(0xe6)](_0x3e2f26??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a366_0x3a19(){const _0x1cda79=['filter','Failed\x20to\x20read\x20logs:','yellow','8667620FuApQt','4MjtiOv','existsSync','readLogs','level','getWinstonInstance','347433rCQoGi','Failed:\x20','trim','setRawCommand','utf8','green','now','mkdirSync','format','1134544njElBG','stringify','success','warn','.lovrabet.log','readFileSync','addColors','createLogger','split','34704252itakLa','setLogPath','duration','writeFileSync','1598707GZrrCN','transports','message','File','rawCommand','8KsZcOb','red','error','toISOString','unknown','initWinstonLogger','logFilePath','timestamp','errors','log','blue','9891294rBWqcg','command','details','11016607PeAdAL','winstonLogger','currentRawCommand','info','Completed:\x20'];a366_0x3a19=function(){return _0x1cda79;};return a366_0x3a19();}const a366_0x2e04c8=a366_0x55ee;(function(_0x4f9327,_0x52b6ea){const _0x237627=a366_0x55ee,_0x584346=_0x4f9327();while(!![]){try{const _0x5f3116=-parseInt(_0x237627(0xca))/0x1+-parseInt(_0x237627(0xe6))/0x2*(-parseInt(_0x237627(0xeb))/0x3)+parseInt(_0x237627(0xbd))/0x4+-parseInt(_0x237627(0xe5))/0x5+-parseInt(_0x237627(0xda))/0x6+parseInt(_0x237627(0xdd))/0x7*(parseInt(_0x237627(0xcf))/0x8)+parseInt(_0x237627(0xc6))/0x9;if(_0x5f3116===_0x52b6ea)break;else _0x584346['push'](_0x584346['shift']());}catch(_0x4324dc){_0x584346['push'](_0x584346['shift']());}}}(a366_0x3a19,0xeb6d3));import a366_0x94ef38 from'winston';import a366_0x1e549f from'node:fs';import a366_0x737992 from'node:path';function a366_0x55ee(_0x8ba914,_0x254716){_0x8ba914=_0x8ba914-0xb8;const _0x3a1917=a366_0x3a19();let _0x55ee07=_0x3a1917[_0x8ba914];return _0x55ee07;}class Logger{[a366_0x2e04c8(0xde)];[a366_0x2e04c8(0xd5)];['currentRawCommand']='';constructor(){const _0x17ca8b=a366_0x2e04c8;this[_0x17ca8b(0xd5)]='';}[a366_0x2e04c8(0xee)](_0x22aa56){const _0x408270=a366_0x2e04c8;this[_0x408270(0xdf)]=_0x22aa56;}[a366_0x2e04c8(0xd4)](){const _0x53c8a0=a366_0x2e04c8,_0x59f27c=a366_0x737992['dirname'](this[_0x53c8a0(0xd5)]);!a366_0x1e549f[_0x53c8a0(0xe7)](_0x59f27c)&&a366_0x1e549f[_0x53c8a0(0xbb)](_0x59f27c,{'recursive':!![]});const _0x3008fb=a366_0x94ef38[_0x53c8a0(0xbc)]['combine'](a366_0x94ef38[_0x53c8a0(0xbc)][_0x53c8a0(0xd6)](),a366_0x94ef38[_0x53c8a0(0xbc)][_0x53c8a0(0xd7)]({'stack':!![]}),a366_0x94ef38[_0x53c8a0(0xbc)]['printf'](_0x40a3b4=>{const _0x4d8a86=_0x53c8a0,_0x54c6e7={'timestamp':_0x40a3b4[_0x4d8a86(0xd6)]||new Date()[_0x4d8a86(0xd2)](),'level':_0x40a3b4[_0x4d8a86(0xe9)]||_0x4d8a86(0xe0),'command':_0x40a3b4[_0x4d8a86(0xdb)]||_0x4d8a86(0xd3),'rawCommand':_0x40a3b4[_0x4d8a86(0xce)]||this[_0x4d8a86(0xdf)]||undefined,'message':_0x40a3b4[_0x4d8a86(0xcc)]||'','duration':_0x40a3b4[_0x4d8a86(0xc8)]||undefined,'details':_0x40a3b4[_0x4d8a86(0xdc)]||undefined};return JSON[_0x4d8a86(0xbe)](_0x54c6e7);}));this[_0x53c8a0(0xde)]=a366_0x94ef38[_0x53c8a0(0xc4)]({'level':_0x53c8a0(0xe0),'format':_0x3008fb,'transports':[new a366_0x94ef38[(_0x53c8a0(0xcb))][(_0x53c8a0(0xcd))]({'filename':this[_0x53c8a0(0xd5)],'level':_0x53c8a0(0xe0)})],'silent':![]}),a366_0x94ef38[_0x53c8a0(0xc3)]({'success':_0x53c8a0(0xb9),'error':_0x53c8a0(0xd0),'warn':_0x53c8a0(0xe4),'info':_0x53c8a0(0xd9)});}[a366_0x2e04c8(0xc7)](_0x106c41){const _0x4d681d=a366_0x2e04c8;this[_0x4d681d(0xd5)]=a366_0x737992['join'](_0x106c41,_0x4d681d(0xc1)),this[_0x4d681d(0xde)]&&this[_0x4d681d(0xde)]['clear'](),this['initWinstonLogger']();}[a366_0x2e04c8(0xe0)](_0x759088,_0x5edd37,_0x5602ea){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x5edd37,{'command':_0x759088,'details':_0x5602ea});}['success'](_0x195348,_0x3d3eaa,_0x4784bf,_0xbf7267){const _0x290bd6=a366_0x2e04c8;if(!this[_0x290bd6(0xd5)]||!this[_0x290bd6(0xde)])return;this['winstonLogger'][_0x290bd6(0xd8)](_0x290bd6(0xe0),_0x3d3eaa,{'level':'success','command':_0x195348,'duration':_0x4784bf,'details':_0xbf7267});}['error'](_0x4ce110,_0xe15f3e,_0x3adf75){const _0x1619d9=a366_0x2e04c8;if(!this[_0x1619d9(0xd5)]||!this[_0x1619d9(0xde)])return;this[_0x1619d9(0xde)][_0x1619d9(0xd1)](_0xe15f3e,{'command':_0x4ce110,'details':_0x3adf75});}[a366_0x2e04c8(0xc0)](_0x4a4971,_0x3f70b2,_0x740193){const _0x4997c4=a366_0x2e04c8;if(!this['logFilePath']||!this[_0x4997c4(0xde)])return;this[_0x4997c4(0xde)][_0x4997c4(0xc0)](_0x3f70b2,{'command':_0x4a4971,'details':_0x740193});}async['logTask'](_0x24ffcb,_0x202c7b,_0x2b0111){const _0x656e9=a366_0x2e04c8,_0x271b9b=Date[_0x656e9(0xba)]();this[_0x656e9(0xe0)](_0x24ffcb,'Starting:\x20'+_0x202c7b);try{const _0x3a604a=await _0x2b0111(),_0x1b4779=Date[_0x656e9(0xba)]()-_0x271b9b;return this[_0x656e9(0xbf)](_0x24ffcb,_0x656e9(0xe1)+_0x202c7b,_0x1b4779),_0x3a604a;}catch(_0x21939c){const _0x2db450=Date[_0x656e9(0xba)]()-_0x271b9b;this[_0x656e9(0xd1)](_0x24ffcb,_0x656e9(0xec)+_0x202c7b,{'error':_0x21939c instanceof Error?_0x21939c['message']:String(_0x21939c),'duration':_0x2db450});throw _0x21939c;}}[a366_0x2e04c8(0xe8)](){const _0x38cc0d=a366_0x2e04c8;try{if(!a366_0x1e549f[_0x38cc0d(0xe7)](this[_0x38cc0d(0xd5)]))return[];const _0x2e3a42=a366_0x1e549f[_0x38cc0d(0xc2)](this[_0x38cc0d(0xd5)],_0x38cc0d(0xb8));return _0x2e3a42[_0x38cc0d(0xc5)]('\x0a')[_0x38cc0d(0xe2)](_0x523f52=>_0x523f52[_0x38cc0d(0xed)]())['map'](_0x1ef3a1=>JSON['parse'](_0x1ef3a1));}catch(_0x3ab9b3){return console[_0x38cc0d(0xc0)](_0x38cc0d(0xe3),_0x3ab9b3),[];}}['clearLogs'](){const _0x3d0bb6=a366_0x2e04c8;try{a366_0x1e549f['existsSync'](this[_0x3d0bb6(0xd5)])&&a366_0x1e549f[_0x3d0bb6(0xc9)](this[_0x3d0bb6(0xd5)],'',_0x3d0bb6(0xb8));}catch(_0x5adbb3){console['warn']('Failed\x20to\x20clear\x20logs:',_0x5adbb3);}}[a366_0x2e04c8(0xea)](){const _0x56df8c=a366_0x2e04c8;return this[_0x56df8c(0xde)];}}export const logger=new Logger();
1
+ const a367_0x25bcd6=a367_0x1a31;function a367_0xa98c(){const _0x364140=['setLogPath','split','trim','now','dirname','getWinstonInstance','utf8','logFilePath','4635460SNqjGd','printf','format','winstonLogger','9nPrdXV','1378693JVOiCl','stringify','warn','rawCommand','info','unknown','error','427002LggQhv','12928370zCJFNJ','clearLogs','addColors','2029148gtAAmE','filter','Failed\x20to\x20clear\x20logs:','setRawCommand','join','log','mkdirSync','readLogs','currentRawCommand','map','clear','File','green','duration','message','success','.lovrabet.log','existsSync','5975544lGEkyh','700bMuXIt','2jbfwDt','parse','Failed:\x20','combine','createLogger','8hjsMZg','Starting:\x20','51256oAKZTW'];a367_0xa98c=function(){return _0x364140;};return a367_0xa98c();}(function(_0x1458d1,_0x2acc98){const _0x3edbdc=a367_0x1a31,_0x2e98d9=_0x1458d1();while(!![]){try{const _0x1f527e=-parseInt(_0x3edbdc(0x107))/0x1*(-parseInt(_0x3edbdc(0x126))/0x2)+-parseInt(_0x3edbdc(0x10e))/0x3*(parseInt(_0x3edbdc(0x12b))/0x4)+parseInt(_0x3edbdc(0x136))/0x5+parseInt(_0x3edbdc(0x124))/0x6+-parseInt(_0x3edbdc(0x125))/0x7*(parseInt(_0x3edbdc(0x12d))/0x8)+-parseInt(_0x3edbdc(0x106))/0x9*(parseInt(_0x3edbdc(0x10f))/0xa)+-parseInt(_0x3edbdc(0x112))/0xb;if(_0x1f527e===_0x2acc98)break;else _0x2e98d9['push'](_0x2e98d9['shift']());}catch(_0x6697e6){_0x2e98d9['push'](_0x2e98d9['shift']());}}}(a367_0xa98c,0xdb7dc));import a367_0x56ece7 from'winston';function a367_0x1a31(_0x206c04,_0x22b8a3){_0x206c04=_0x206c04-0x103;const _0xa98c23=a367_0xa98c();let _0x1a31e6=_0xa98c23[_0x206c04];return _0x1a31e6;}import a367_0xb45af1 from'node:fs';import a367_0x3fd3c6 from'node:path';class Logger{[a367_0x25bcd6(0x105)];[a367_0x25bcd6(0x135)];[a367_0x25bcd6(0x11a)]='';constructor(){const _0x11d2cc=a367_0x25bcd6;this[_0x11d2cc(0x135)]='';}[a367_0x25bcd6(0x115)](_0x4627d0){const _0x51e76e=a367_0x25bcd6;this[_0x51e76e(0x11a)]=_0x4627d0;}['initWinstonLogger'](){const _0x3de016=a367_0x25bcd6,_0x3ba289=a367_0x3fd3c6[_0x3de016(0x132)](this[_0x3de016(0x135)]);!a367_0xb45af1[_0x3de016(0x123)](_0x3ba289)&&a367_0xb45af1[_0x3de016(0x118)](_0x3ba289,{'recursive':!![]});const _0x8fe8a6=a367_0x56ece7[_0x3de016(0x104)][_0x3de016(0x129)](a367_0x56ece7[_0x3de016(0x104)]['timestamp'](),a367_0x56ece7[_0x3de016(0x104)]['errors']({'stack':!![]}),a367_0x56ece7[_0x3de016(0x104)][_0x3de016(0x103)](_0x3a1b4f=>{const _0x1c9ce4=_0x3de016,_0x55451a={'timestamp':_0x3a1b4f['timestamp']||new Date()['toISOString'](),'level':_0x3a1b4f['level']||_0x1c9ce4(0x10b),'command':_0x3a1b4f['command']||_0x1c9ce4(0x10c),'rawCommand':_0x3a1b4f[_0x1c9ce4(0x10a)]||this['currentRawCommand']||undefined,'message':_0x3a1b4f[_0x1c9ce4(0x120)]||'','duration':_0x3a1b4f[_0x1c9ce4(0x11f)]||undefined,'details':_0x3a1b4f['details']||undefined};return JSON[_0x1c9ce4(0x108)](_0x55451a);}));this[_0x3de016(0x105)]=a367_0x56ece7[_0x3de016(0x12a)]({'level':_0x3de016(0x10b),'format':_0x8fe8a6,'transports':[new a367_0x56ece7['transports'][(_0x3de016(0x11d))]({'filename':this['logFilePath'],'level':_0x3de016(0x10b)})],'silent':![]}),a367_0x56ece7[_0x3de016(0x111)]({'success':_0x3de016(0x11e),'error':'red','warn':'yellow','info':'blue'});}[a367_0x25bcd6(0x12e)](_0x5844c0){const _0x145090=a367_0x25bcd6;this[_0x145090(0x135)]=a367_0x3fd3c6[_0x145090(0x116)](_0x5844c0,_0x145090(0x122)),this[_0x145090(0x105)]&&this[_0x145090(0x105)][_0x145090(0x11c)](),this['initWinstonLogger']();}[a367_0x25bcd6(0x10b)](_0x3c8a99,_0x31e683,_0x29c4c6){const _0x88d00=a367_0x25bcd6;if(!this[_0x88d00(0x135)]||!this[_0x88d00(0x105)])return;this[_0x88d00(0x105)]['info'](_0x31e683,{'command':_0x3c8a99,'details':_0x29c4c6});}[a367_0x25bcd6(0x121)](_0x71be9f,_0x2c8bcc,_0x24b1d1,_0x1e4bd6){const _0x577c19=a367_0x25bcd6;if(!this[_0x577c19(0x135)]||!this['winstonLogger'])return;this[_0x577c19(0x105)][_0x577c19(0x117)]('info',_0x2c8bcc,{'level':_0x577c19(0x121),'command':_0x71be9f,'duration':_0x24b1d1,'details':_0x1e4bd6});}['error'](_0x22c4bd,_0x1d664a,_0x1b0659){const _0x570ebf=a367_0x25bcd6;if(!this['logFilePath']||!this[_0x570ebf(0x105)])return;this[_0x570ebf(0x105)]['error'](_0x1d664a,{'command':_0x22c4bd,'details':_0x1b0659});}[a367_0x25bcd6(0x109)](_0x2f37c5,_0x3bde0d,_0x74a332){const _0xcb21b4=a367_0x25bcd6;if(!this[_0xcb21b4(0x135)]||!this[_0xcb21b4(0x105)])return;this['winstonLogger']['warn'](_0x3bde0d,{'command':_0x2f37c5,'details':_0x74a332});}async['logTask'](_0x2daee2,_0x2559fd,_0x56a3d5){const _0x160e3b=a367_0x25bcd6,_0x42c9f6=Date[_0x160e3b(0x131)]();this['info'](_0x2daee2,_0x160e3b(0x12c)+_0x2559fd);try{const _0x3d3e71=await _0x56a3d5(),_0x1ddada=Date[_0x160e3b(0x131)]()-_0x42c9f6;return this['success'](_0x2daee2,'Completed:\x20'+_0x2559fd,_0x1ddada),_0x3d3e71;}catch(_0x5bcd31){const _0x5bdb6a=Date[_0x160e3b(0x131)]()-_0x42c9f6;this[_0x160e3b(0x10d)](_0x2daee2,_0x160e3b(0x128)+_0x2559fd,{'error':_0x5bcd31 instanceof Error?_0x5bcd31['message']:String(_0x5bcd31),'duration':_0x5bdb6a});throw _0x5bcd31;}}[a367_0x25bcd6(0x119)](){const _0x491685=a367_0x25bcd6;try{if(!a367_0xb45af1[_0x491685(0x123)](this['logFilePath']))return[];const _0x34e54d=a367_0xb45af1['readFileSync'](this[_0x491685(0x135)],_0x491685(0x134));return _0x34e54d[_0x491685(0x12f)]('\x0a')[_0x491685(0x113)](_0x316ed3=>_0x316ed3[_0x491685(0x130)]())[_0x491685(0x11b)](_0x2c4ce2=>JSON[_0x491685(0x127)](_0x2c4ce2));}catch(_0x3c7bf4){return console[_0x491685(0x109)]('Failed\x20to\x20read\x20logs:',_0x3c7bf4),[];}}[a367_0x25bcd6(0x110)](){const _0x2994d6=a367_0x25bcd6;try{a367_0xb45af1['existsSync'](this[_0x2994d6(0x135)])&&a367_0xb45af1['writeFileSync'](this[_0x2994d6(0x135)],'',_0x2994d6(0x134));}catch(_0x35b056){console[_0x2994d6(0x109)](_0x2994d6(0x114),_0x35b056);}}[a367_0x25bcd6(0x133)](){const _0x38d5f1=a367_0x25bcd6;return this[_0x38d5f1(0x105)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x588ab0,_0x389f1d){const _0x564524=a367_0x438c,_0x33c3fb=_0x588ab0();while(!![]){try{const _0x494e17=parseInt(_0x564524(0xbc))/0x1+parseInt(_0x564524(0xc5))/0x2+parseInt(_0x564524(0xc0))/0x3+parseInt(_0x564524(0xbd))/0x4*(parseInt(_0x564524(0xbb))/0x5)+-parseInt(_0x564524(0xc6))/0x6+parseInt(_0x564524(0xb9))/0x7*(-parseInt(_0x564524(0xc2))/0x8)+-parseInt(_0x564524(0xbe))/0x9;if(_0x494e17===_0x389f1d)break;else _0x33c3fb['push'](_0x33c3fb['shift']());}catch(_0xa8dbbb){_0x33c3fb['push'](_0x33c3fb['shift']());}}}(a367_0x1ae7,0x9e7bd));function a367_0x438c(_0x4cab0b,_0x1293c6){_0x4cab0b=_0x4cab0b-0xb9;const _0x1ae7ce=a367_0x1ae7();let _0x438cf0=_0x1ae7ce[_0x4cab0b];return _0x438cf0;}function a367_0x1ae7(){const _0x1506b3=['--params\x20must\x20be\x20a\x20JSON\x20object','504912xoDrFX','3270564DaHrla','580958nBzafX','parse','555UAyDnl','1242095SVDZKj','44516orpjVd','18116136xxqbmm','Invalid\x20JSON\x20for\x20--params:\x20','3174705SNrXBE','isArray','56VzEley','validation'];a367_0x1ae7=function(){return _0x1506b3;};return a367_0x1ae7();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x28296e){const _0x4fc5d4=a367_0x438c;if(!_0x28296e)return undefined;let _0x4527b6;try{_0x4527b6=JSON[_0x4fc5d4(0xba)](_0x28296e);}catch{throw CliErrors[_0x4fc5d4(0xc3)](_0x4fc5d4(0xbf)+_0x28296e);}if(!_0x4527b6||typeof _0x4527b6!=='object'||Array[_0x4fc5d4(0xc1)](_0x4527b6))throw CliErrors[_0x4fc5d4(0xc3)](_0x4fc5d4(0xc4),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x4527b6;}
1
+ (function(_0x60aa9a,_0x1ac60b){const _0x1d0bae=a368_0x23a9,_0x5344a3=_0x60aa9a();while(!![]){try{const _0x55f372=parseInt(_0x1d0bae(0x6d))/0x1+-parseInt(_0x1d0bae(0x76))/0x2*(parseInt(_0x1d0bae(0x79))/0x3)+parseInt(_0x1d0bae(0x78))/0x4*(parseInt(_0x1d0bae(0x7b))/0x5)+parseInt(_0x1d0bae(0x6b))/0x6+-parseInt(_0x1d0bae(0x6c))/0x7+-parseInt(_0x1d0bae(0x70))/0x8*(-parseInt(_0x1d0bae(0x7a))/0x9)+parseInt(_0x1d0bae(0x6a))/0xa*(parseInt(_0x1d0bae(0x73))/0xb);if(_0x55f372===_0x1ac60b)break;else _0x5344a3['push'](_0x5344a3['shift']());}catch(_0x3ba0c7){_0x5344a3['push'](_0x5344a3['shift']());}}}(a368_0x4d56,0x4f95f));function a368_0x23a9(_0x423b85,_0xabba9e){_0x423b85=_0x423b85-0x6a;const _0x4d5692=a368_0x4d56();let _0x23a942=_0x4d5692[_0x423b85];return _0x23a942;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x107476){const _0x233643=a368_0x23a9;if(!_0x107476)return undefined;let _0x3d5718;try{_0x3d5718=JSON[_0x233643(0x6e)](_0x107476);}catch{throw CliErrors[_0x233643(0x75)](_0x233643(0x72)+_0x107476);}if(!_0x3d5718||typeof _0x3d5718!==_0x233643(0x6f)||Array[_0x233643(0x77)](_0x3d5718))throw CliErrors['validation'](_0x233643(0x71),_0x233643(0x74));return _0x3d5718;}function a368_0x4d56(){const _0x36edcc=['132EKuSLz','isArray','217032lSRQnz','17511QKdDEc','531wCoMRl','5KrMTLW','730TqMSCA','616908wHVubm','2433718gBOyzN','643134eAAKIi','parse','object','26168BNziqS','--params\x20must\x20be\x20a\x20JSON\x20object','Invalid\x20JSON\x20for\x20--params:\x20','9900fTNyEr','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation'];a368_0x4d56=function(){return _0x36edcc;};return a368_0x4d56();}
@@ -1 +1 @@
1
- function a368_0x3a7d(){const _0x208b0d=['3288585uPFvBL','2328956efzqVA','10qYgJqp','4xszRND','5192271eCcLhD','457924BhdJio','914766FGgbXT','9514576OZnvUd','platform','4337055ZFcOsM'];a368_0x3a7d=function(){return _0x208b0d;};return a368_0x3a7d();}const a368_0x508af9=a368_0x4760;function a368_0x4760(_0x4f86e6,_0xff9524){_0x4f86e6=_0x4f86e6-0x13e;const _0x3a7d78=a368_0x3a7d();let _0x4760b8=_0x3a7d78[_0x4f86e6];return _0x4760b8;}(function(_0x5c0d60,_0x402ac6){const _0x341247=a368_0x4760,_0x9a447e=_0x5c0d60();while(!![]){try{const _0x40ef21=parseInt(_0x341247(0x141))/0x1+-parseInt(_0x341247(0x147))/0x2+-parseInt(_0x341247(0x146))/0x3*(parseInt(_0x341247(0x13f))/0x4)+parseInt(_0x341247(0x13e))/0x5*(parseInt(_0x341247(0x142))/0x6)+parseInt(_0x341247(0x140))/0x7+parseInt(_0x341247(0x143))/0x8+parseInt(_0x341247(0x145))/0x9;if(_0x40ef21===_0x402ac6)break;else _0x9a447e['push'](_0x9a447e['shift']());}catch(_0x265bc7){_0x9a447e['push'](_0x9a447e['shift']());}}}(a368_0x3a7d,0xdf6c7));export const isWindows=process[a368_0x508af9(0x144)]==='win32';export function resolveNpmBin(_0x5b673f){return isWindows?_0x5b673f+'.cmd':_0x5b673f;}
1
+ function a369_0x4dd2(_0x4dfb72,_0x540950){_0x4dfb72=_0x4dfb72-0x13c;const _0x4702c9=a369_0x4702();let _0x4dd2ad=_0x4702c9[_0x4dfb72];return _0x4dd2ad;}const a369_0x3218ad=a369_0x4dd2;(function(_0x440d1a,_0x1a4585){const _0x363b7c=a369_0x4dd2,_0x176273=_0x440d1a();while(!![]){try{const _0xef36a3=parseInt(_0x363b7c(0x140))/0x1*(parseInt(_0x363b7c(0x13d))/0x2)+-parseInt(_0x363b7c(0x146))/0x3+parseInt(_0x363b7c(0x13f))/0x4+parseInt(_0x363b7c(0x147))/0x5*(-parseInt(_0x363b7c(0x143))/0x6)+parseInt(_0x363b7c(0x13e))/0x7+parseInt(_0x363b7c(0x144))/0x8*(-parseInt(_0x363b7c(0x141))/0x9)+-parseInt(_0x363b7c(0x148))/0xa*(-parseInt(_0x363b7c(0x142))/0xb);if(_0xef36a3===_0x1a4585)break;else _0x176273['push'](_0x176273['shift']());}catch(_0x11a7a9){_0x176273['push'](_0x176273['shift']());}}}(a369_0x4702,0xcf739));function a369_0x4702(){const _0x4115eb=['6mVUqQX','104kOlrto','platform','4595397WrUVgR','6242205dSKqfO','7060NpDrYl','win32','22xVYPBP','5653424ZhmEYP','1666228cFXmyv','8485DwaJpM','970497ukpeXt','57871omqZoN'];a369_0x4702=function(){return _0x4115eb;};return a369_0x4702();}export const isWindows=process[a369_0x3218ad(0x145)]===a369_0x3218ad(0x13c);export function resolveNpmBin(_0xab5998){return isWindows?_0xab5998+'.cmd':_0xab5998;}
@@ -1 +1 @@
1
- export function sleep(_0x4529e5){return new Promise(_0x4ea236=>setTimeout(_0x4ea236,_0x4529e5));}
1
+ export function sleep(_0x31b67a){return new Promise(_0x1245ae=>setTimeout(_0x1245ae,_0x31b67a));}
@@ -1 +1 @@
1
- const a370_0x2b7a5b=a370_0x5b02;(function(_0x52ddd6,_0x2a4385){const _0x24ab7e=a370_0x5b02,_0x309349=_0x52ddd6();while(!![]){try{const _0x327104=-parseInt(_0x24ab7e(0x1db))/0x1*(-parseInt(_0x24ab7e(0x21d))/0x2)+-parseInt(_0x24ab7e(0x1df))/0x3*(-parseInt(_0x24ab7e(0x1dd))/0x4)+-parseInt(_0x24ab7e(0x207))/0x5+-parseInt(_0x24ab7e(0x1ed))/0x6*(parseInt(_0x24ab7e(0x219))/0x7)+parseInt(_0x24ab7e(0x1f7))/0x8+parseInt(_0x24ab7e(0x1de))/0x9*(-parseInt(_0x24ab7e(0x206))/0xa)+parseInt(_0x24ab7e(0x212))/0xb*(parseInt(_0x24ab7e(0x1fa))/0xc);if(_0x327104===_0x2a4385)break;else _0x309349['push'](_0x309349['shift']());}catch(_0x225442){_0x309349['push'](_0x309349['shift']());}}}(a370_0x1ce3,0x8b5e6));function a370_0x5b02(_0x2531ac,_0x5983e7){_0x2531ac=_0x2531ac-0x1db;const _0x1ce3f6=a370_0x1ce3();let _0x5b0230=_0x1ce3f6[_0x2531ac];return _0x5b0230;}import a370_0xc1a165 from'node:fs';import a370_0x223b67 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a370_0x1ce3(){const _0x19c132=['37415JnajNO','.css','api','pad','1287282yEjEhs','toDisplayTitle','1DMehbj','.scss','4XgGUbb','9UnoCyN','1037082LTLXQh','getMonth','alias','YourModel','message','replace','endsWith','.json','readdir','isFile','mkdir','toISOString','datasetCode:\x20\x22','push','330VFbOwg','processFile','now','info','toUpperCase','processDirectory','toLowerCase','sdk-config','toComponentName','name:\x20\x22','3456800pbDoGf','getMinutes','.tsx','11710272ChgLRN','getHours','replaceApiContent','default','promises','getSeconds','LOVRABET','tableName:\x20\x22','template','pop','copyFile','readFile','6557330VxBkpi','4383645llxRWn','Template\x20content\x20replacement\x20failed','error','.jsx','map','charAt','join','includes','.tpl','split','alias:\x20\x22','11ZCTYSi','success','utf8','name','padStart','.md','Starting\x20template\x20content\x20replacement'];a370_0x1ce3=function(){return _0x19c132;};return a370_0x1ce3();}export class TemplateReplacer{static['pad'](_0xef9be5){const _0x37fb47=a370_0x5b02;return String(_0xef9be5)[_0x37fb47(0x216)](0x2,'0');}static['formatLocalTimestamp'](_0x1ade64){const _0x3996ff=a370_0x5b02,_0xbcd9a2=_0x1ade64['getFullYear'](),_0x285955=this[_0x3996ff(0x21c)](_0x1ade64[_0x3996ff(0x1e0)]()+0x1),_0x22a024=this[_0x3996ff(0x21c)](_0x1ade64['getDate']()),_0x3a5cef=this[_0x3996ff(0x21c)](_0x1ade64[_0x3996ff(0x1fb)]()),_0x52a84c=this['pad'](_0x1ade64[_0x3996ff(0x1f8)]()),_0x1a1be9=this[_0x3996ff(0x21c)](_0x1ade64[_0x3996ff(0x1ff)]());return{'createdAt':_0xbcd9a2+'-'+_0x285955+'-'+_0x22a024+'\x20'+_0x3a5cef+':'+_0x52a84c+':'+_0x1a1be9,'createdDate':_0xbcd9a2+'-'+_0x285955+'-'+_0x22a024,'createdTime':_0x3a5cef+':'+_0x52a84c+':'+_0x1a1be9};}static[a370_0x2b7a5b(0x1f5)](_0x4efc0c){const _0x23e56d=a370_0x2b7a5b,_0x13f541=_0x4efc0c[_0x23e56d(0x210)]('/')[_0x23e56d(0x203)]()||_0x4efc0c;return _0x13f541[_0x23e56d(0x210)]('-')['map'](_0x20be37=>_0x20be37[_0x23e56d(0x20c)](0x0)[_0x23e56d(0x1f1)]()+_0x20be37['slice'](0x1)[_0x23e56d(0x1f3)]())[_0x23e56d(0x20d)]('');}static[a370_0x2b7a5b(0x21e)](_0x31d6e7){const _0x1049f9=a370_0x2b7a5b,_0x1be55c=_0x31d6e7[_0x1049f9(0x210)]('/')[_0x1049f9(0x203)]()||_0x31d6e7;return _0x1be55c[_0x1049f9(0x210)]('-')[_0x1049f9(0x20b)](_0x297395=>_0x297395[_0x1049f9(0x20c)](0x0)[_0x1049f9(0x1f1)]()+_0x297395['slice'](0x1)[_0x1049f9(0x1f3)]())[_0x1049f9(0x20d)]('\x20');}static['replaceContent'](_0xe33396,_0x548689,_0x2b8ac4){const _0x28194b=a370_0x2b7a5b,_0x2df510=this[_0x28194b(0x1f5)](_0x548689),_0x1bd854=this['toDisplayTitle'](_0x548689),{createdAt:_0x11a9a3,createdDate:_0x50c193,createdTime:_0x4b6f1f}=this['formatLocalTimestamp'](new Date());let _0x41f482=_0xe33396[_0x28194b(0x1e4)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x2df510)[_0x28194b(0x1e4)](/\{DisplayTitle\}/g,_0x1bd854)['replace'](/\{PageName\}/g,_0x548689)[_0x28194b(0x1e4)](/\{TemplateName\}/g,_0x2b8ac4)[_0x28194b(0x1e4)](/\{CreatedAt\}/g,_0x11a9a3)[_0x28194b(0x1e4)](/\{CreatedDate\}/g,_0x50c193)['replace'](/\{CreatedTime\}/g,_0x4b6f1f);return _0x41f482;}static[a370_0x2b7a5b(0x1fc)](_0x27b88d,_0xd948d8,_0x2a252a,_0xac31c8,_0x2b542d,_0x1f93cf,_0x563f09,_0x37d2b6,_0x41842a){const _0x5d7baa=a370_0x2b7a5b,_0x435185=new Date(),_0x34864e=_0x435185[_0x5d7baa(0x1ea)](),_0x59356a=_0x2a252a[_0x5d7baa(0x20b)](_0x576fcd=>{const _0x2778b4=_0x5d7baa,_0x1919b2=[_0x2778b4(0x1eb)+_0x576fcd['datasetCode']+'\x22',_0x2778b4(0x201)+_0x576fcd['tableName']+'\x22',_0x2778b4(0x1f6)+_0x576fcd[_0x2778b4(0x215)]+'\x22'];return _0x576fcd[_0x2778b4(0x1e1)]&&_0x1919b2[_0x2778b4(0x1ec)](_0x2778b4(0x211)+_0x576fcd[_0x2778b4(0x1e1)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x1919b2[_0x2778b4(0x20d)](',\x20')+'\x20},';})[_0x5d7baa(0x20d)](''),_0x9ff46b=_0xac31c8||_0x2a252a[0x0]?.[_0x5d7baa(0x1e1)]||_0x5d7baa(0x1e2);let _0x173049=_0x27b88d[_0x5d7baa(0x1e4)](/\{AppCode\}/g,_0xd948d8)[_0x5d7baa(0x1e4)](/\{ModelConfigs\}/g,_0x59356a)[_0x5d7baa(0x1e4)](/\{ExampleModelName\}/g,_0x9ff46b)[_0x5d7baa(0x1e4)](/\{ApiFileName\}/g,_0x2b542d||_0x5d7baa(0x21b))[_0x5d7baa(0x1e4)](/\{ConfigName\}/g,_0x1f93cf||_0x5d7baa(0x1fd))[_0x5d7baa(0x1e4)](/\{ClientConfigParam\}/g,_0x563f09||'')[_0x5d7baa(0x1e4)](/\{SdkConfigFileName\}/g,_0x41842a||_0x5d7baa(0x1f4))[_0x5d7baa(0x1e4)](/\{VarPrefix\}/g,_0x37d2b6||_0x5d7baa(0x200))['replace'](/\{CreatedAt\}/g,_0x34864e);return _0x173049;}static async['processTemplate'](_0x35ede4,_0x3b206d,_0x50b285,_0x3b2a26,_0x46de3a=!![]){const _0x41dc9c=a370_0x2b7a5b,_0x3ed676=Date['now']();try{_0x46de3a&&logger[_0x41dc9c(0x1f0)](_0x41dc9c(0x202),_0x41dc9c(0x218),{'templatePath':_0x35ede4,'targetPath':_0x3b206d,'pageName':_0x50b285,'templateName':_0x3b2a26});await a370_0xc1a165[_0x41dc9c(0x1fe)][_0x41dc9c(0x1e9)](_0x3b206d,{'recursive':!![]}),await this[_0x41dc9c(0x1f2)](_0x35ede4,_0x3b206d,_0x50b285,_0x3b2a26);if(_0x46de3a){const _0x56a1f6=Date[_0x41dc9c(0x1ef)]()-_0x3ed676;logger[_0x41dc9c(0x213)]('template','Template\x20content\x20replacement\x20completed',_0x56a1f6,{'pageName':_0x50b285,'templateName':_0x3b2a26});}}catch(_0x57d3a3){if(_0x46de3a){const _0x3a3d7b=Date['now']()-_0x3ed676;logger[_0x41dc9c(0x209)](_0x41dc9c(0x202),_0x41dc9c(0x208),{'templatePath':_0x35ede4,'targetPath':_0x3b206d,'pageName':_0x50b285,'templateName':_0x3b2a26,'error':_0x57d3a3 instanceof Error?_0x57d3a3[_0x41dc9c(0x1e3)]:String(_0x57d3a3),'duration':_0x3a3d7b});}throw _0x57d3a3;}}static async[a370_0x2b7a5b(0x1f2)](_0x5206c1,_0xb699b7,_0x5412b9,_0x36df2f){const _0x287904=a370_0x2b7a5b,_0x15769b=await a370_0xc1a165[_0x287904(0x1fe)][_0x287904(0x1e7)](_0x5206c1,{'withFileTypes':!![]});for(const _0x32195b of _0x15769b){const _0x27449a=a370_0x223b67['join'](_0x5206c1,_0x32195b[_0x287904(0x215)]);let _0x409d97=a370_0x223b67[_0x287904(0x20d)](_0xb699b7,_0x32195b['name']);_0x32195b['name'][_0x287904(0x1e5)](_0x287904(0x20f))&&(_0x409d97=a370_0x223b67[_0x287904(0x20d)](_0xb699b7,_0x32195b[_0x287904(0x215)][_0x287904(0x1e4)](/\.tpl$/,'')));if(_0x32195b['isDirectory']())await a370_0xc1a165[_0x287904(0x1fe)][_0x287904(0x1e9)](_0x409d97,{'recursive':!![]}),await this[_0x287904(0x1f2)](_0x27449a,_0x409d97,_0x5412b9,_0x36df2f);else _0x32195b[_0x287904(0x1e8)]()&&await this['processFile'](_0x27449a,_0x409d97,_0x5412b9,_0x36df2f);}}static async[a370_0x2b7a5b(0x1ee)](_0x4d0262,_0x3896f7,_0x4a87aa,_0x991453){const _0x16b194=a370_0x2b7a5b,_0x4cf481=a370_0x223b67['extname'](_0x4d0262)[_0x16b194(0x1f3)]();_0x4d0262['endsWith']('.tpl')&&(_0x3896f7=_0x3896f7[_0x16b194(0x1e4)](/\.tpl$/,''));const _0x283b30=[_0x16b194(0x1f9),'.ts',_0x16b194(0x20a),'.js',_0x16b194(0x1e6),_0x16b194(0x217),_0x16b194(0x21a),_0x16b194(0x1dc),_0x16b194(0x20f)];if(_0x283b30[_0x16b194(0x20e)](_0x4cf481)||_0x4d0262[_0x16b194(0x1e5)](_0x16b194(0x20f))){const _0x2a8339=await a370_0xc1a165[_0x16b194(0x1fe)][_0x16b194(0x205)](_0x4d0262,_0x16b194(0x214)),_0x3e44eb=this['replaceContent'](_0x2a8339,_0x4a87aa,_0x991453);await a370_0xc1a165[_0x16b194(0x1fe)]['writeFile'](_0x3896f7,_0x3e44eb,_0x16b194(0x214));}else await a370_0xc1a165[_0x16b194(0x1fe)][_0x16b194(0x204)](_0x4d0262,_0x3896f7);}}
1
+ const a371_0x2637f4=a371_0x56f5;(function(_0x55826d,_0x3901aa){const _0x3c7c68=a371_0x56f5,_0x163479=_0x55826d();while(!![]){try{const _0x3dd747=-parseInt(_0x3c7c68(0x1a6))/0x1+parseInt(_0x3c7c68(0x199))/0x2+parseInt(_0x3c7c68(0x1a0))/0x3+parseInt(_0x3c7c68(0x188))/0x4*(-parseInt(_0x3c7c68(0x192))/0x5)+parseInt(_0x3c7c68(0x19e))/0x6*(parseInt(_0x3c7c68(0x198))/0x7)+parseInt(_0x3c7c68(0x177))/0x8*(parseInt(_0x3c7c68(0x181))/0x9)+-parseInt(_0x3c7c68(0x16e))/0xa;if(_0x3dd747===_0x3901aa)break;else _0x163479['push'](_0x163479['shift']());}catch(_0xa20011){_0x163479['push'](_0x163479['shift']());}}}(a371_0x1cde,0x540c6));import a371_0x235d65 from'node:fs';import a371_0x2dc8cb from'node:path';import{logger}from'../utils/logger.js';function a371_0x56f5(_0x140fba,_0x5befe1){_0x140fba=_0x140fba-0x16a;const _0x1cdeba=a371_0x1cde();let _0x56f5e4=_0x1cdeba[_0x140fba];return _0x56f5e4;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a371_0x1cde(){const _0xb17e34=['name','replaceApiContent','processDirectory','.ts','readdir','isDirectory','pad','1111420BExYvO','message','info','getMinutes','LOVRABET','.md','formatLocalTimestamp','copyFile','mkdir','40BIxNeD','toLowerCase','endsWith','toISOString','toUpperCase','push','success','\x20},','join','getFullYear','152010vwrKTT','.css','.tpl','toDisplayTitle','tableName:\x20\x22','alias','\x0a\x20\x20\x20\x20{\x20','136KLxdHx','api','writeFile','datasetCode','alias:\x20\x22','utf8','charAt','getDate','template','readFile','3620SqELIk','map','replaceContent','processTemplate','getSeconds','promises','142702baBeYk','92642CctaPE','now','slice','padStart','sdk-config','66aRgIFB','replace','1466145OHkPJH','processFile','getMonth','getHours','extname','.scss','363712xBkGIw','split','toComponentName','.js','Template\x20content\x20replacement\x20failed','isFile'];a371_0x1cde=function(){return _0xb17e34;};return a371_0x1cde();}export class TemplateReplacer{static[a371_0x2637f4(0x16d)](_0x27b9c0){const _0xe6d4d3=a371_0x2637f4;return String(_0x27b9c0)[_0xe6d4d3(0x19c)](0x2,'0');}static[a371_0x2637f4(0x174)](_0x45534e){const _0x172bb4=a371_0x2637f4,_0x2466c3=_0x45534e[_0x172bb4(0x180)](),_0x542f0a=this[_0x172bb4(0x16d)](_0x45534e[_0x172bb4(0x1a2)]()+0x1),_0x1b461a=this[_0x172bb4(0x16d)](_0x45534e[_0x172bb4(0x18f)]()),_0x2ae5fa=this[_0x172bb4(0x16d)](_0x45534e[_0x172bb4(0x1a3)]()),_0x492219=this[_0x172bb4(0x16d)](_0x45534e[_0x172bb4(0x171)]()),_0x2f25e8=this[_0x172bb4(0x16d)](_0x45534e[_0x172bb4(0x196)]());return{'createdAt':_0x2466c3+'-'+_0x542f0a+'-'+_0x1b461a+'\x20'+_0x2ae5fa+':'+_0x492219+':'+_0x2f25e8,'createdDate':_0x2466c3+'-'+_0x542f0a+'-'+_0x1b461a,'createdTime':_0x2ae5fa+':'+_0x492219+':'+_0x2f25e8};}static['toComponentName'](_0x4ea0ca){const _0x20138c=a371_0x2637f4,_0x356a4f=_0x4ea0ca[_0x20138c(0x1a7)]('/')['pop']()||_0x4ea0ca;return _0x356a4f[_0x20138c(0x1a7)]('-')[_0x20138c(0x193)](_0x1d51db=>_0x1d51db[_0x20138c(0x18e)](0x0)[_0x20138c(0x17b)]()+_0x1d51db['slice'](0x1)[_0x20138c(0x178)]())[_0x20138c(0x17f)]('');}static[a371_0x2637f4(0x184)](_0xd2ac30){const _0x3426be=a371_0x2637f4,_0x4d2410=_0xd2ac30[_0x3426be(0x1a7)]('/')['pop']()||_0xd2ac30;return _0x4d2410[_0x3426be(0x1a7)]('-')[_0x3426be(0x193)](_0x2cd2bd=>_0x2cd2bd['charAt'](0x0)[_0x3426be(0x17b)]()+_0x2cd2bd[_0x3426be(0x19b)](0x1)[_0x3426be(0x178)]())[_0x3426be(0x17f)]('\x20');}static[a371_0x2637f4(0x194)](_0x316fe0,_0x4364cc,_0x14607c){const _0x397756=a371_0x2637f4,_0x5cde9c=this[_0x397756(0x1a8)](_0x4364cc),_0x19678c=this[_0x397756(0x184)](_0x4364cc),{createdAt:_0xb2111c,createdDate:_0x412956,createdTime:_0x320f82}=this[_0x397756(0x174)](new Date());let _0x6f9255=_0x316fe0[_0x397756(0x19f)](/\{CliVersion\}/g,CLI_VERSION)[_0x397756(0x19f)](/\{ComponentName\}/g,_0x5cde9c)['replace'](/\{DisplayTitle\}/g,_0x19678c)[_0x397756(0x19f)](/\{PageName\}/g,_0x4364cc)['replace'](/\{TemplateName\}/g,_0x14607c)[_0x397756(0x19f)](/\{CreatedAt\}/g,_0xb2111c)[_0x397756(0x19f)](/\{CreatedDate\}/g,_0x412956)[_0x397756(0x19f)](/\{CreatedTime\}/g,_0x320f82);return _0x6f9255;}static[a371_0x2637f4(0x1ad)](_0x386b7e,_0x46eaa9,_0x204fe3,_0x31060a,_0x2e9d02,_0x47d174,_0x503aa7,_0x404e1f,_0x19eeb5){const _0x3f7e26=a371_0x2637f4,_0x586615=new Date(),_0x452086=_0x586615[_0x3f7e26(0x17a)](),_0x2406b8=_0x204fe3[_0x3f7e26(0x193)](_0x5bb97c=>{const _0x32260c=_0x3f7e26,_0x1dd258=['datasetCode:\x20\x22'+_0x5bb97c[_0x32260c(0x18b)]+'\x22',_0x32260c(0x185)+_0x5bb97c['tableName']+'\x22','name:\x20\x22'+_0x5bb97c[_0x32260c(0x1ac)]+'\x22'];return _0x5bb97c[_0x32260c(0x186)]&&_0x1dd258[_0x32260c(0x17c)](_0x32260c(0x18c)+_0x5bb97c['alias']+'\x22'),_0x32260c(0x187)+_0x1dd258[_0x32260c(0x17f)](',\x20')+_0x32260c(0x17e);})['join'](''),_0x592c14=_0x31060a||_0x204fe3[0x0]?.[_0x3f7e26(0x186)]||'YourModel';let _0x9954b7=_0x386b7e['replace'](/\{AppCode\}/g,_0x46eaa9)['replace'](/\{ModelConfigs\}/g,_0x2406b8)['replace'](/\{ExampleModelName\}/g,_0x592c14)[_0x3f7e26(0x19f)](/\{ApiFileName\}/g,_0x2e9d02||_0x3f7e26(0x189))[_0x3f7e26(0x19f)](/\{ConfigName\}/g,_0x47d174||'default')[_0x3f7e26(0x19f)](/\{ClientConfigParam\}/g,_0x503aa7||'')['replace'](/\{SdkConfigFileName\}/g,_0x19eeb5||_0x3f7e26(0x19d))[_0x3f7e26(0x19f)](/\{VarPrefix\}/g,_0x404e1f||_0x3f7e26(0x172))[_0x3f7e26(0x19f)](/\{CreatedAt\}/g,_0x452086);return _0x9954b7;}static async[a371_0x2637f4(0x195)](_0x1abe60,_0x5baaec,_0x457e6a,_0x44e82b,_0x50e393=!![]){const _0x44830b=a371_0x2637f4,_0x3be46b=Date[_0x44830b(0x19a)]();try{_0x50e393&&logger[_0x44830b(0x170)](_0x44830b(0x190),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x1abe60,'targetPath':_0x5baaec,'pageName':_0x457e6a,'templateName':_0x44e82b});await a371_0x235d65[_0x44830b(0x197)]['mkdir'](_0x5baaec,{'recursive':!![]}),await this[_0x44830b(0x1ae)](_0x1abe60,_0x5baaec,_0x457e6a,_0x44e82b);if(_0x50e393){const _0x138191=Date['now']()-_0x3be46b;logger[_0x44830b(0x17d)](_0x44830b(0x190),'Template\x20content\x20replacement\x20completed',_0x138191,{'pageName':_0x457e6a,'templateName':_0x44e82b});}}catch(_0x17599a){if(_0x50e393){const _0x5241a9=Date[_0x44830b(0x19a)]()-_0x3be46b;logger['error']('template',_0x44830b(0x1aa),{'templatePath':_0x1abe60,'targetPath':_0x5baaec,'pageName':_0x457e6a,'templateName':_0x44e82b,'error':_0x17599a instanceof Error?_0x17599a[_0x44830b(0x16f)]:String(_0x17599a),'duration':_0x5241a9});}throw _0x17599a;}}static async[a371_0x2637f4(0x1ae)](_0x2d77d3,_0x1fd2b1,_0x31c357,_0x885d8f){const _0x1ef211=a371_0x2637f4,_0x4757ea=await a371_0x235d65[_0x1ef211(0x197)][_0x1ef211(0x16b)](_0x2d77d3,{'withFileTypes':!![]});for(const _0x5d4832 of _0x4757ea){const _0x238547=a371_0x2dc8cb['join'](_0x2d77d3,_0x5d4832[_0x1ef211(0x1ac)]);let _0x906531=a371_0x2dc8cb[_0x1ef211(0x17f)](_0x1fd2b1,_0x5d4832['name']);_0x5d4832[_0x1ef211(0x1ac)][_0x1ef211(0x179)](_0x1ef211(0x183))&&(_0x906531=a371_0x2dc8cb['join'](_0x1fd2b1,_0x5d4832[_0x1ef211(0x1ac)][_0x1ef211(0x19f)](/\.tpl$/,'')));if(_0x5d4832[_0x1ef211(0x16c)]())await a371_0x235d65[_0x1ef211(0x197)][_0x1ef211(0x176)](_0x906531,{'recursive':!![]}),await this['processDirectory'](_0x238547,_0x906531,_0x31c357,_0x885d8f);else _0x5d4832[_0x1ef211(0x1ab)]()&&await this[_0x1ef211(0x1a1)](_0x238547,_0x906531,_0x31c357,_0x885d8f);}}static async[a371_0x2637f4(0x1a1)](_0x45aab0,_0x9e7bc7,_0x485472,_0xd56f93){const _0x250e45=a371_0x2637f4,_0x4012c1=a371_0x2dc8cb[_0x250e45(0x1a4)](_0x45aab0)[_0x250e45(0x178)]();_0x45aab0[_0x250e45(0x179)](_0x250e45(0x183))&&(_0x9e7bc7=_0x9e7bc7[_0x250e45(0x19f)](/\.tpl$/,''));const _0x1c448c=['.tsx',_0x250e45(0x16a),'.jsx',_0x250e45(0x1a9),'.json',_0x250e45(0x173),_0x250e45(0x182),_0x250e45(0x1a5),'.tpl'];if(_0x1c448c['includes'](_0x4012c1)||_0x45aab0[_0x250e45(0x179)]('.tpl')){const _0x27747b=await a371_0x235d65['promises'][_0x250e45(0x191)](_0x45aab0,'utf8'),_0x500fd1=this[_0x250e45(0x194)](_0x27747b,_0x485472,_0xd56f93);await a371_0x235d65[_0x250e45(0x197)][_0x250e45(0x18a)](_0x9e7bc7,_0x500fd1,_0x250e45(0x18d));}else await a371_0x235d65[_0x250e45(0x197)][_0x250e45(0x175)](_0x45aab0,_0x9e7bc7);}}
@@ -1 +1 @@
1
- function a371_0x59dc(){const _0x50a02c=['stableVersion','2979440qGYVmi','4LYZaRk','https://www.npmjs.com/package/','latest','valid','gte',',\x20run:\x20','.cache','yes','253Ftbmue','now','stringify','parse','number','trim','true','toLowerCase','10538ELerqC','9fMJWUq','754779oNtOVz','utf8','rabetbase-cli','1281460VBCMio','\x20update','lastNotifiedVersion','48264ymbIIh','checkedAt','7SIScrr','/v/','422jhoSRM','1296UIDakO','84nPfcqa','\x20available,\x20current\x20','165bTjmzh','276653sZvYHr','lastNotifiedAt'];a371_0x59dc=function(){return _0x50a02c;};return a371_0x59dc();}(function(_0x1ba41d,_0x3b2c57){const _0xc05d62=a371_0x4b6c,_0xa1642b=_0x1ba41d();while(!![]){try{const _0x34ddc3=-parseInt(_0xc05d62(0x14d))/0x1*(parseInt(_0xc05d62(0x13c))/0x2)+-parseInt(_0xc05d62(0x157))/0x3*(-parseInt(_0xc05d62(0x145))/0x4)+-parseInt(_0xc05d62(0x140))/0x5*(-parseInt(_0xc05d62(0x138))/0x6)+parseInt(_0xc05d62(0x13a))/0x7*(-parseInt(_0xc05d62(0x144))/0x8)+-parseInt(_0xc05d62(0x156))/0x9*(-parseInt(_0xc05d62(0x135))/0xa)+-parseInt(_0xc05d62(0x155))/0xb*(-parseInt(_0xc05d62(0x13d))/0xc)+-parseInt(_0xc05d62(0x141))/0xd*(parseInt(_0xc05d62(0x13e))/0xe);if(_0x34ddc3===_0x3b2c57)break;else _0xa1642b['push'](_0xa1642b['shift']());}catch(_0x4f29c3){_0xa1642b['push'](_0xa1642b['shift']());}}}(a371_0x59dc,0x2fa54));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a371_0x243aaa from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a371_0x4b6c(_0x324883,_0x4bee38){_0x324883=_0x324883-0x134;const _0x59dc1d=a371_0x59dc();let _0x4b6c5c=_0x59dc1d[_0x324883];return _0x4b6c5c;}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 _0x14da85=a371_0x4b6c,_0x10e75f=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x14da85(0x154)]();return _0x10e75f==='1'||_0x10e75f===_0x14da85(0x153)||_0x10e75f===_0x14da85(0x14c);}function cacheRoot(){const _0x48c7df=a371_0x4b6c;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x48c7df(0x14b));}export function getUpdateNoticeCachePath(){const _0x15bf3d=a371_0x4b6c;return join(cacheRoot(),_0x15bf3d(0x134),'update-check.json');}async function readUpdateNoticeCache(){const _0x8c0685=a371_0x4b6c;try{const _0x381199=await readFile(getUpdateNoticeCachePath(),_0x8c0685(0x158)),_0x19f9b0=JSON[_0x8c0685(0x150)](_0x381199);if(!_0x19f9b0||typeof _0x19f9b0!=='object')return{};return _0x19f9b0;}catch{return{};}}async function writeUpdateNoticeCache(_0x58834d){const _0x24889a=a371_0x4b6c;try{const _0x1a831c=getUpdateNoticeCachePath();await mkdir(dirname(_0x1a831c),{'recursive':!![]}),await writeFile(_0x1a831c,JSON[_0x24889a(0x14f)](_0x58834d,null,0x2)+'\x0a',_0x24889a(0x158));}catch{}}function isFreshCheck(_0x5e0ed2,_0x4a3437){const _0x393b21=a371_0x4b6c;return typeof _0x5e0ed2[_0x393b21(0x139)]===_0x393b21(0x151)&&_0x4a3437-_0x5e0ed2[_0x393b21(0x139)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x541a04,_0x4681dc,_0x2a6ab5){const _0x3ff679=a371_0x4b6c;return _0x541a04[_0x3ff679(0x137)]===_0x4681dc&&typeof _0x541a04[_0x3ff679(0x142)]===_0x3ff679(0x151)&&_0x2a6ab5-_0x541a04['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x39fffc){const _0x1585a7=a371_0x4b6c;return _0x1585a7(0x146)+NPM_PACKAGE_NAME+_0x1585a7(0x13b)+_0x39fffc;}export async function resolveLatestUpdateNotice(){const _0x1348ac=a371_0x4b6c;if(isUpdateNoticeDisabled())return null;try{const _0x1e28c5=Date[_0x1348ac(0x14e)](),_0x170944=getCliVersion(),_0xd6d13=await readUpdateNoticeCache();let _0x22dbe9=isFreshCheck(_0xd6d13,_0x1e28c5)?_0xd6d13[_0x1348ac(0x147)]?.[_0x1348ac(0x152)]():undefined;if(!_0x22dbe9&&!isFreshCheck(_0xd6d13,_0x1e28c5)){const _0x53525e=await getCliVersionPolicy();_0x22dbe9=_0x53525e?.[_0x1348ac(0x143)]?.[_0x1348ac(0x152)]()||undefined,await writeUpdateNoticeCache({..._0xd6d13,'checkedAt':_0x1e28c5,'latest':_0x22dbe9,'failed':!_0x22dbe9});}if(!_0x22dbe9||!a371_0x243aaa[_0x1348ac(0x148)](_0x170944)||!a371_0x243aaa['valid'](_0x22dbe9))return null;if(a371_0x243aaa[_0x1348ac(0x149)](_0x170944,_0x22dbe9))return null;if(isRecentlyNotified(_0xd6d13,_0x22dbe9,_0x1e28c5))return null;const _0x325944=CLI_BIN_NAME+_0x1348ac(0x136);return await writeUpdateNoticeCache({..._0xd6d13,'checkedAt':isFreshCheck(_0xd6d13,_0x1e28c5)?_0xd6d13[_0x1348ac(0x139)]:_0x1e28c5,'latest':_0x22dbe9,'failed':![],'lastNotifiedVersion':_0x22dbe9,'lastNotifiedAt':_0x1e28c5}),{'command':_0x325944,'current':_0x170944,'latest':_0x22dbe9,'url':buildNpmVersionUrl(_0x22dbe9),'message':CLI_BIN_NAME+'\x20'+_0x22dbe9+_0x1348ac(0x13f)+_0x170944+_0x1348ac(0x14a)+_0x325944};}catch{return null;}}
1
+ (function(_0x38f691,_0xae76f5){const _0xd64f49=a372_0x523f,_0x3be6af=_0x38f691();while(!![]){try{const _0x29104e=parseInt(_0xd64f49(0xd9))/0x1+-parseInt(_0xd64f49(0xd5))/0x2*(-parseInt(_0xd64f49(0xde))/0x3)+-parseInt(_0xd64f49(0xd1))/0x4+parseInt(_0xd64f49(0xc9))/0x5+parseInt(_0xd64f49(0xdf))/0x6*(-parseInt(_0xd64f49(0xdd))/0x7)+-parseInt(_0xd64f49(0xcd))/0x8*(parseInt(_0xd64f49(0xe6))/0x9)+parseInt(_0xd64f49(0xcb))/0xa*(parseInt(_0xd64f49(0xd4))/0xb);if(_0x29104e===_0xae76f5)break;else _0x3be6af['push'](_0x3be6af['shift']());}catch(_0x2089fa){_0x3be6af['push'](_0x3be6af['shift']());}}}(a372_0x4169,0xd5a69));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a372_0x57f706 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 _0x2a9636=a372_0x523f,_0x2fd0eb=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2a9636(0xe4)]()[_0x2a9636(0xe3)]();return _0x2fd0eb==='1'||_0x2fd0eb===_0x2a9636(0xd7)||_0x2fd0eb==='yes';}function a372_0x4169(){const _0x1d16ae=['object','rabetbase-cli','154KJbLer','2tMPBxU','utf8','true','latest','1133919GpSTFs','https://www.npmjs.com/package/','parse','\x20available,\x20current\x20','63994ETHuDx','213993IEtqJl','924TJFJvS','lastNotifiedVersion','/v/','gte','toLowerCase','trim','valid','9aqTxwA','1270245txhptT','checkedAt','2382370YlPPYA','stableVersion','12717488JQNRhC',',\x20run:\x20','lastNotifiedAt','number','3687800quQYIW'];a372_0x4169=function(){return _0x1d16ae;};return a372_0x4169();}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x268236=a372_0x523f;return join(cacheRoot(),_0x268236(0xd3),'update-check.json');}async function readUpdateNoticeCache(){const _0xa4b98f=a372_0x523f;try{const _0x310d31=await readFile(getUpdateNoticeCachePath(),_0xa4b98f(0xd6)),_0x15385c=JSON[_0xa4b98f(0xdb)](_0x310d31);if(!_0x15385c||typeof _0x15385c!==_0xa4b98f(0xd2))return{};return _0x15385c;}catch{return{};}}async function writeUpdateNoticeCache(_0x61113e){try{const _0x482b67=getUpdateNoticeCachePath();await mkdir(dirname(_0x482b67),{'recursive':!![]}),await writeFile(_0x482b67,JSON['stringify'](_0x61113e,null,0x2)+'\x0a','utf8');}catch{}}function a372_0x523f(_0x3704e5,_0x308186){_0x3704e5=_0x3704e5-0xc9;const _0x416901=a372_0x4169();let _0x523f92=_0x416901[_0x3704e5];return _0x523f92;}function isFreshCheck(_0x1a8177,_0x5075ea){const _0x6b97ac=a372_0x523f;return typeof _0x1a8177[_0x6b97ac(0xca)]==='number'&&_0x5075ea-_0x1a8177[_0x6b97ac(0xca)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x285d0e,_0x38235d,_0x55b76b){const _0x281ee1=a372_0x523f;return _0x285d0e[_0x281ee1(0xe0)]===_0x38235d&&typeof _0x285d0e[_0x281ee1(0xcf)]===_0x281ee1(0xd0)&&_0x55b76b-_0x285d0e['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2206f1){const _0x55f972=a372_0x523f;return _0x55f972(0xda)+NPM_PACKAGE_NAME+_0x55f972(0xe1)+_0x2206f1;}export async function resolveLatestUpdateNotice(){const _0x48feb3=a372_0x523f;if(isUpdateNoticeDisabled())return null;try{const _0x35f185=Date['now'](),_0x51d685=getCliVersion(),_0x1b6535=await readUpdateNoticeCache();let _0x2f87ae=isFreshCheck(_0x1b6535,_0x35f185)?_0x1b6535[_0x48feb3(0xd8)]?.[_0x48feb3(0xe4)]():undefined;if(!_0x2f87ae&&!isFreshCheck(_0x1b6535,_0x35f185)){const _0x1d0946=await getCliVersionPolicy();_0x2f87ae=_0x1d0946?.[_0x48feb3(0xcc)]?.[_0x48feb3(0xe4)]()||undefined,await writeUpdateNoticeCache({..._0x1b6535,'checkedAt':_0x35f185,'latest':_0x2f87ae,'failed':!_0x2f87ae});}if(!_0x2f87ae||!a372_0x57f706['valid'](_0x51d685)||!a372_0x57f706[_0x48feb3(0xe5)](_0x2f87ae))return null;if(a372_0x57f706[_0x48feb3(0xe2)](_0x51d685,_0x2f87ae))return null;if(isRecentlyNotified(_0x1b6535,_0x2f87ae,_0x35f185))return null;const _0x194a10=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1b6535,'checkedAt':isFreshCheck(_0x1b6535,_0x35f185)?_0x1b6535[_0x48feb3(0xca)]:_0x35f185,'latest':_0x2f87ae,'failed':![],'lastNotifiedVersion':_0x2f87ae,'lastNotifiedAt':_0x35f185}),{'command':_0x194a10,'current':_0x51d685,'latest':_0x2f87ae,'url':buildNpmVersionUrl(_0x2f87ae),'message':CLI_BIN_NAME+'\x20'+_0x2f87ae+_0x48feb3(0xdc)+_0x51d685+_0x48feb3(0xce)+_0x194a10};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x505dbd,_0x25a6dc){var _0x56da48=a372_0x3039,_0x1cfd5f=_0x505dbd();while(!![]){try{var _0x4f82ac=parseInt(_0x56da48(0x118))/0x1*(parseInt(_0x56da48(0x117))/0x2)+-parseInt(_0x56da48(0x114))/0x3*(-parseInt(_0x56da48(0x119))/0x4)+-parseInt(_0x56da48(0x113))/0x5*(parseInt(_0x56da48(0x111))/0x6)+-parseInt(_0x56da48(0x110))/0x7+-parseInt(_0x56da48(0x11b))/0x8+-parseInt(_0x56da48(0x115))/0x9*(-parseInt(_0x56da48(0x11a))/0xa)+-parseInt(_0x56da48(0x112))/0xb*(-parseInt(_0x56da48(0x116))/0xc);if(_0x4f82ac===_0x25a6dc)break;else _0x1cfd5f['push'](_0x1cfd5f['shift']());}catch(_0x204ece){_0x1cfd5f['push'](_0x1cfd5f['shift']());}}}(a372_0x5f29,0x3203f));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a372_0x3039(_0x1bdbea,_0x245ba6){_0x1bdbea=_0x1bdbea-0x110;var _0x5f294e=a372_0x5f29();var _0x3039f4=_0x5f294e[_0x1bdbea];return _0x3039f4;}function a372_0x5f29(){var _0xf2a3e7=['29697iFZZPd','45XDRHvl','3551676bAwzXX','620HfujOG','967nVOmol','4fHRQXr','157710ABkMfV','3128088NqfxyR','13461ekWmww','1224MtwaGB','11QjPFUe','2125sdfMyd'];a372_0x5f29=function(){return _0xf2a3e7;};return a372_0x5f29();}
1
+ (function(_0x55f8b8,_0xecdfd7){var _0x1e22d4=a373_0x36c3,_0x4dd72d=_0x55f8b8();while(!![]){try{var _0x2098b6=parseInt(_0x1e22d4(0x1f3))/0x1*(parseInt(_0x1e22d4(0x1f4))/0x2)+parseInt(_0x1e22d4(0x1f8))/0x3+parseInt(_0x1e22d4(0x1f0))/0x4*(parseInt(_0x1e22d4(0x1f2))/0x5)+parseInt(_0x1e22d4(0x1f6))/0x6+parseInt(_0x1e22d4(0x1f7))/0x7+-parseInt(_0x1e22d4(0x1f5))/0x8*(-parseInt(_0x1e22d4(0x1f9))/0x9)+-parseInt(_0x1e22d4(0x1f1))/0xa;if(_0x2098b6===_0xecdfd7)break;else _0x4dd72d['push'](_0x4dd72d['shift']());}catch(_0x5b59dd){_0x4dd72d['push'](_0x4dd72d['shift']());}}}(a373_0xa53d,0x68bba));import{VERSION}from'../generated/build-info.js';function a373_0x36c3(_0x5db199,_0x52c4f5){_0x5db199=_0x5db199-0x1f0;var _0xa53d62=a373_0xa53d();var _0x36c378=_0xa53d62[_0x5db199];return _0x36c378;}export function getCliVersion(){return VERSION;}function a373_0xa53d(){var _0x3f8ddb=['2506089lTauHf','49941siJGCm','16YkraZU','28000460ShkCmo','298580IzEIkp','7kfPxLz','62204BEhxbG','936hfzVgL','4904034ZQRPBy','3293633XQJbDc'];a373_0xa53d=function(){return _0x3f8ddb;};return a373_0xa53d();}
@@ -1 +1 @@
1
- function a373_0x4f55(){var _0x14dbc7=['268485QFHTac','1135908nypxTn','7025yEBWMV','72MBJMhz','740808hKHien','56aOnZXP','5AXLgwi','1814264OGXwbC','275442GKPxqO','503570sZwKdk'];a373_0x4f55=function(){return _0x14dbc7;};return a373_0x4f55();}(function(_0x4b553d,_0x314202){var _0x4535d2=a373_0x54d0,_0x1d88d2=_0x4b553d();while(!![]){try{var _0x2a4410=-parseInt(_0x4535d2(0xa1))/0x1+parseInt(_0x4535d2(0xa3))/0x2+parseInt(_0x4535d2(0x9f))/0x3+-parseInt(_0x4535d2(0xa0))/0x4*(-parseInt(_0x4535d2(0xa5))/0x5)+-parseInt(_0x4535d2(0x9d))/0x6*(parseInt(_0x4535d2(0xa4))/0x7)+parseInt(_0x4535d2(0xa6))/0x8+parseInt(_0x4535d2(0xa2))/0x9*(-parseInt(_0x4535d2(0x9e))/0xa);if(_0x2a4410===_0x314202)break;else _0x1d88d2['push'](_0x1d88d2['shift']());}catch(_0x543873){_0x1d88d2['push'](_0x1d88d2['shift']());}}}(a373_0x4f55,0x2f3f2));function a373_0x54d0(_0x1cc401,_0x3d800d){_0x1cc401=_0x1cc401-0x9d;var _0x4f551a=a373_0x4f55();var _0x54d0ee=_0x4f551a[_0x1cc401];return _0x54d0ee;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x124200,_0x81f958){setActiveCookie(_0x124200);try{return await _0x81f958();}finally{clearActiveCookie();}}
1
+ (function(_0x4824e6,_0xfb6b90){var _0x291db1=a374_0x504b,_0x44fcf9=_0x4824e6();while(!![]){try{var _0x5bf607=-parseInt(_0x291db1(0x150))/0x1+parseInt(_0x291db1(0x14a))/0x2*(-parseInt(_0x291db1(0x149))/0x3)+parseInt(_0x291db1(0x151))/0x4*(-parseInt(_0x291db1(0x147))/0x5)+parseInt(_0x291db1(0x148))/0x6*(parseInt(_0x291db1(0x14b))/0x7)+parseInt(_0x291db1(0x14e))/0x8+parseInt(_0x291db1(0x14f))/0x9+-parseInt(_0x291db1(0x14c))/0xa*(parseInt(_0x291db1(0x14d))/0xb);if(_0x5bf607===_0xfb6b90)break;else _0x44fcf9['push'](_0x44fcf9['shift']());}catch(_0x2af936){_0x44fcf9['push'](_0x44fcf9['shift']());}}}(a374_0x4fad,0xc06ce));function a374_0x4fad(){var _0xbe9af0=['14109795GxhrKR','1078796UbkmQW','1748qXSIEk','7935SNEkTD','18maTgyl','3166887ydACOd','2uqvytY','3102071JkFfTd','2230zHlKWi','16423PYqyHf','8414744jQPkoY'];a374_0x4fad=function(){return _0xbe9af0;};return a374_0x4fad();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a374_0x504b(_0x5b741d,_0x14df4a){_0x5b741d=_0x5b741d-0x147;var _0x4fada9=a374_0x4fad();var _0x504bb2=_0x4fada9[_0x5b741d];return _0x504bb2;}export async function withActiveCookie(_0x5b3417,_0x569562){setActiveCookie(_0x5b3417);try{return await _0x569562();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x5ec532,_0x320965){var _0x519922=a374_0x1793,_0x1a84f2=_0x5ec532();while(!![]){try{var _0x84f457=parseInt(_0x519922(0x96))/0x1+-parseInt(_0x519922(0x9c))/0x2+parseInt(_0x519922(0x9e))/0x3*(parseInt(_0x519922(0x98))/0x4)+parseInt(_0x519922(0x9a))/0x5+parseInt(_0x519922(0x97))/0x6+-parseInt(_0x519922(0x9d))/0x7+-parseInt(_0x519922(0x99))/0x8;if(_0x84f457===_0x320965)break;else _0x1a84f2['push'](_0x1a84f2['shift']());}catch(_0x4555c5){_0x1a84f2['push'](_0x1a84f2['shift']());}}}(a374_0xc273,0x47120));export function writeCliSideChannelLine(_0x38991a){var _0x5992b5=a374_0x1793;process[_0x5992b5(0x9b)]['write'](_0x38991a+'\x0a');}function a374_0x1793(_0x3e2af6,_0x5e142f){_0x3e2af6=_0x3e2af6-0x96;var _0xc27361=a374_0xc273();var _0x1793f9=_0xc27361[_0x3e2af6];return _0x1793f9;}function a374_0xc273(){var _0x18bf96=['527250QfXcbx','388665rttSMU','3448920ntMSuJ','4KZSkwm','1797872rljXby','413080LoHZYl','stderr','630874OqLOQS','2734032HQmpWU'];a374_0xc273=function(){return _0x18bf96;};return a374_0xc273();}
1
+ function a375_0x2609(_0x3bb8bc,_0x3a2c1f){_0x3bb8bc=_0x3bb8bc-0x78;var _0x5ba235=a375_0x5ba2();var _0x26092=_0x5ba235[_0x3bb8bc];return _0x26092;}function a375_0x5ba2(){var _0x17bfd4=['6600660OVNTYJ','1002WNyoTB','6wmNzpw','61PaHvSr','1864875IZtpgp','13687729jehQFD','write','stderr','9AXqtor','7348lmuTGa','4002568nrcWcx','7510OTfgAZ','3920126iRkbPC'];a375_0x5ba2=function(){return _0x17bfd4;};return a375_0x5ba2();}(function(_0x1ac025,_0x3ddbfe){var _0x5ee8a1=a375_0x2609,_0x4661d7=_0x1ac025();while(!![]){try{var _0x442923=parseInt(_0x5ee8a1(0x81))/0x1*(parseInt(_0x5ee8a1(0x7c))/0x2)+-parseInt(_0x5ee8a1(0x7f))/0x3*(-parseInt(_0x5ee8a1(0x7a))/0x4)+parseInt(_0x5ee8a1(0x82))/0x5+parseInt(_0x5ee8a1(0x80))/0x6*(parseInt(_0x5ee8a1(0x7d))/0x7)+-parseInt(_0x5ee8a1(0x7b))/0x8*(-parseInt(_0x5ee8a1(0x79))/0x9)+-parseInt(_0x5ee8a1(0x7e))/0xa+-parseInt(_0x5ee8a1(0x83))/0xb;if(_0x442923===_0x3ddbfe)break;else _0x4661d7['push'](_0x4661d7['shift']());}catch(_0x2c7439){_0x4661d7['push'](_0x4661d7['shift']());}}}(a375_0x5ba2,0x5ab42));export function writeCliSideChannelLine(_0x50f62f){var _0x250da0=a375_0x2609;process[_0x250da0(0x78)][_0x250da0(0x84)](_0x50f62f+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.8-beta.1",
3
+ "version": "2.5.8-beta.2",
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.8-beta.1
3
+ version: 2.5.8-beta.2
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:
@@ -363,7 +363,7 @@ const result = await client.bff.execute<DashboardData>({
363
363
  | 列出配置 | [`rabetbase config list`](references/rabetbase-config.md) | 查看当前生效的配置 |
364
364
  | 管理运行态 app-config | [`rabetbase app-config list/get/set/delete`](references/rabetbase-app-config.md) | 运行态 app-config 管理面;默认不输出明文 value;`set` 为 `write`,`delete` 保持 `high-risk-write` |
365
365
  | 管理 Instant API 数据集访问策略 | [`rabetbase instant-api-policy init/current/pull/validate/publish/revisions/revision/rollback`](references/rabetbase-instant-api-policy.md) | 固定文件 `.rabetbase/instant-api-policy/<appCode>/policy.json`;`version` 是 JSON 结构版本,`revision` 是发布历史版本;publish/rollback 为 high-risk-write |
366
- | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;detail 返回完整正文,追加前必须读取;search 仅V2,默认解析 `kbServiceDomain`,可用 `--kb-service-url` 单次覆盖,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
366
+ | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope,使用 kbServiceDomain 与 Cookie;rule 保留 kbDomain;detail 返回完整正文,追加前必须读取;search 仅V2,默认解析 `kbServiceDomain`,可用 `--kb-service-url` 单次覆盖,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
367
367
  | 管理当前研发应用的 Agent context 规则 | [`rabetbase rule list/get/set`](references/rabetbase-rule.md) | `RULES.md` 供页面、API 等研发 Agent 使用且排除 DB Agent;`DATABASE.md` 仅供数据库分析时 DB Agent 使用;两者在各自流程全程参与 context;set 为 `write`,先 dry-run |
368
368
  | 查询或管理应用级通知配置 | [`rabetbase notification config-list`](references/rabetbase-notification-config-list.md) / [`rabetbase notification config-create`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-update`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-delete`](references/rabetbase-notification-config-mutations.md) | list 获取 Backend Function 所需 `configCode`;写入只接收单一敏感 JSON 源,先 dry-run;update/delete 必须 `--yes` |
369
369
  | 设计、校验和发布表单审批流或独立工作流 | [`rabetbase flow validate/list/detail/create/update/publish`](references/rabetbase-flow-commands.md) | 先确定 `flowType`;本地 validate 后再 create/update 和 publish |