@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-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 (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +13 -9
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
  360. package/skills/rabetbase-page-generation/references/generation.md +64 -15
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
  362. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x46113e,_0x4eba7b){const _0x5f45f2=a343_0x4075,_0x32a95e=_0x46113e();while(!![]){try{const _0x275673=-parseInt(_0x5f45f2(0x1ad))/0x1+-parseInt(_0x5f45f2(0x1aa))/0x2*(-parseInt(_0x5f45f2(0x1b8))/0x3)+parseInt(_0x5f45f2(0x1b3))/0x4*(parseInt(_0x5f45f2(0x1af))/0x5)+-parseInt(_0x5f45f2(0x1b5))/0x6+-parseInt(_0x5f45f2(0x1a1))/0x7+-parseInt(_0x5f45f2(0x1ba))/0x8+-parseInt(_0x5f45f2(0x1b6))/0x9*(-parseInt(_0x5f45f2(0x1a8))/0xa);if(_0x275673===_0x4eba7b)break;else _0x32a95e['push'](_0x32a95e['shift']());}catch(_0x217461){_0x32a95e['push'](_0x32a95e['shift']());}}}(a343_0x548a,0x5b06d));import{readFileSync}from'node:fs';function a343_0x548a(){const _0x3b713c=['2742341jhRRcz','\x1b[33m','↪\x20New\x20version\x20available','log','\x1b[1m','package.json','upgradeMessage','79240ZMZDZC','\x20\x20\x20Current\x20CLI\x20version:\x20','2pDeiBO','minimumVersionMessage','../..','744557WYoxyU','minimumVersion','150310egqjOL','npm\x20install\x20-g\x20','validation','filter','56cNHZER','parse','2294718FHJfaQ','1827WYhMiA','Upgrade\x20command:\x20','1056486PqstcG','version','3919872mxpacW','\x20\x20\x20Stable\x20version:\x20','utf-8','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20','belowMinimum','currentVersion','1.0.0','\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Upgrade\x20command:\x20','stableVersion'];a343_0x548a=function(){return _0x3b713c;};return a343_0x548a();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a343_0x4075(_0x1499c4,_0x1f9864){_0x1499c4=_0x1499c4-0x19d;const _0x548a21=a343_0x548a();let _0x4075cf=_0x548a21[_0x1499c4];return _0x4075cf;}import a343_0x595c62 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(_0x5efc3a){const _0x337398=a343_0x4075,_0x4f9366=_0x5efc3a['stableVersion']||'latest';return _0x337398(0x1b0)+NPM_PACKAGE_NAME+'@'+_0x4f9366;}function getCurrentCliVersion(){const _0x1d6477=a343_0x4075;try{const _0x507f5a=fileURLToPath(import.meta.url),_0x458b5d=resolve(dirname(_0x507f5a),_0x1d6477(0x1ac)),_0x33ba99=resolve(_0x458b5d,_0x1d6477(0x1a6)),_0x33f553=JSON[_0x1d6477(0x1b4)](readFileSync(_0x33ba99,_0x1d6477(0x1bc)));return _0x33f553[_0x1d6477(0x1b9)]||'1.0.0';}catch{return _0x1d6477(0x1c1);}}export async function checkCliVersion(){const _0xd21844=a343_0x4075,_0x419cce=getCurrentCliVersion(),_0x4976d5=await getCliVersionPolicy(),_0x495748=_0x4976d5?.[_0xd21844(0x1a0)]||null,_0x203bfe=_0x4976d5?.[_0xd21844(0x1ae)]||null;let _0x50511d=![],_0x28c004=![];const _0x363652=a343_0x595c62['coerce'](_0x419cce);if(_0x363652&&_0x495748)try{const _0x34f31c=a343_0x595c62['coerce'](_0x495748);if(_0x34f31c)_0x50511d=a343_0x595c62['lt'](_0x363652,_0x34f31c);}catch{}if(_0x363652&&_0x203bfe)try{const _0x8e6b92=a343_0x595c62['coerce'](_0x203bfe);if(_0x8e6b92)_0x28c004=a343_0x595c62['lt'](_0x363652,_0x8e6b92);}catch{}return _0x28c004&&(_0x50511d=!![]),{'currentVersion':_0x419cce,'stableVersion':_0x495748,'minimumVersion':_0x203bfe,'needsUpgrade':_0x50511d,'belowMinimum':_0x28c004,'isPreRelease':![],'upgradeMessage':_0x4976d5?.['upgradeMessage'],'minimumVersionMessage':_0x4976d5?.[_0xd21844(0x1ab)]};}export function printCliUpgradeWarning(_0x512a4e){const _0x5685d5=a343_0x4075;if(!_0x512a4e['needsUpgrade']&&!_0x512a4e[_0x5685d5(0x1bf)])return;const _0x53a0e9='\x1b[31m',_0x148915=_0x5685d5(0x1a2),_0x31ca53=_0x5685d5(0x19d),_0x29da88=_0x5685d5(0x1a5),_0x34d838=getCliUpgradeCommand(_0x512a4e);console[_0x5685d5(0x1a4)](),_0x512a4e[_0x5685d5(0x1bf)]?(console[_0x5685d5(0x1a4)](''+_0x53a0e9+_0x29da88+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x31ca53),console[_0x5685d5(0x1a4)](_0x53a0e9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x512a4e[_0x5685d5(0x1c0)]+_0x31ca53),_0x512a4e['minimumVersion']&&console[_0x5685d5(0x1a4)](_0x53a0e9+_0x5685d5(0x1bd)+_0x512a4e[_0x5685d5(0x1ae)]+_0x31ca53),_0x512a4e[_0x5685d5(0x1a0)]&&_0x512a4e['stableVersion']!==_0x512a4e['minimumVersion']&&console['log'](_0x53a0e9+_0x5685d5(0x19e)+_0x512a4e[_0x5685d5(0x1a0)]+_0x31ca53),_0x512a4e[_0x5685d5(0x1ab)]&&console['log'](_0x53a0e9+_0x5685d5(0x1be)+_0x512a4e[_0x5685d5(0x1ab)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x53a0e9+'\x20\x20\x20Upgrade\x20command:\x20'+_0x34d838+_0x31ca53)):(console['log'](''+_0x148915+_0x29da88+_0x5685d5(0x1a3)+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1a9)+_0x512a4e[_0x5685d5(0x1c0)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1bb)+_0x512a4e['stableVersion']+_0x31ca53),_0x512a4e['upgradeMessage']&&console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1be)+_0x512a4e[_0x5685d5(0x1a7)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x19f)+_0x34d838+_0x31ca53)),console[_0x5685d5(0x1a4)]();}export function assertCliVersionSupported(_0xa9828b){const _0x32a709=a343_0x4075;if(!_0xa9828b['belowMinimum'])return;const _0x5b43c6=[_0xa9828b[_0x32a709(0x1ab)],'Current\x20version:\x20'+_0xa9828b[_0x32a709(0x1c0)],_0xa9828b[_0x32a709(0x1ae)]?'Minimum\x20supported:\x20'+_0xa9828b[_0x32a709(0x1ae)]:null,_0x32a709(0x1b7)+getCliUpgradeCommand(_0xa9828b)][_0x32a709(0x1b2)](Boolean)['join']('\x0a');throw CliErrors[_0x32a709(0x1b1)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x5b43c6);}
1
+ (function(_0x591a4e,_0x35a095){const _0x554500=a343_0x52b2,_0x5c2f16=_0x591a4e();while(!![]){try{const _0x409b1b=-parseInt(_0x554500(0x173))/0x1*(-parseInt(_0x554500(0x166))/0x2)+parseInt(_0x554500(0x171))/0x3*(parseInt(_0x554500(0x174))/0x4)+-parseInt(_0x554500(0x15f))/0x5*(parseInt(_0x554500(0x15d))/0x6)+-parseInt(_0x554500(0x178))/0x7+parseInt(_0x554500(0x165))/0x8*(-parseInt(_0x554500(0x179))/0x9)+parseInt(_0x554500(0x187))/0xa*(-parseInt(_0x554500(0x16e))/0xb)+-parseInt(_0x554500(0x161))/0xc*(-parseInt(_0x554500(0x162))/0xd);if(_0x409b1b===_0x35a095)break;else _0x5c2f16['push'](_0x5c2f16['shift']());}catch(_0x4d6e74){_0x5c2f16['push'](_0x5c2f16['shift']());}}}(a343_0x8681,0xef0e0));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a343_0x8681(){const _0x23771f=['\x20\x20\x20','utf-8','../..','18606841TvoCbz','latest','\x20\x20\x20Minimum\x20supported:\x20','103479skylHa','minimumVersion','92wBsAmS','120HiukIb','\x1b[33m','needsUpgrade','\x1b[1m','1949297plEXzF','99mPXGII','currentVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','1.0.0','join','Upgrade\x20command:\x20','validation','upgradeMessage','\x1b[0m','parse','log','\x20\x20\x20Recommended\x20stable:\x20','10zQMEOe','\x20\x20\x20Stable\x20version:\x20','npm\x20install\x20-g\x20','Current\x20version:\x20','102HTgMRa','\x20\x20\x20Upgrade\x20command:\x20','241305HIdKYI','stableVersion','13167780EscAFu','26jyQXBa','coerce','↪\x20Critical\x20CLI\x20upgrade\x20required','425368YEilJn','24458hpXlid','belowMinimum','minimumVersionMessage','↪\x20New\x20version\x20available','version'];a343_0x8681=function(){return _0x23771f;};return a343_0x8681();}function a343_0x52b2(_0x1321dd,_0x2bd035){_0x1321dd=_0x1321dd-0x15d;const _0x868128=a343_0x8681();let _0x52b2a5=_0x868128[_0x1321dd];return _0x52b2a5;}import{fileURLToPath}from'node:url';import a343_0x30e2c2 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(_0x316c44){const _0x14b1f2=a343_0x52b2,_0x513a12=_0x316c44[_0x14b1f2(0x160)]||_0x14b1f2(0x16f);return _0x14b1f2(0x189)+NPM_PACKAGE_NAME+'@'+_0x513a12;}function getCurrentCliVersion(){const _0x14b3f2=a343_0x52b2;try{const _0x1c4b57=fileURLToPath(import.meta.url),_0x4bfdb8=resolve(dirname(_0x1c4b57),_0x14b3f2(0x16d)),_0x220eb1=resolve(_0x4bfdb8,'package.json'),_0x2ad633=JSON[_0x14b3f2(0x184)](readFileSync(_0x220eb1,_0x14b3f2(0x16c)));return _0x2ad633[_0x14b3f2(0x16a)]||'1.0.0';}catch{return _0x14b3f2(0x17e);}}export async function checkCliVersion(){const _0x37e6df=a343_0x52b2,_0x420b9b=getCurrentCliVersion(),_0x1b968c=await getCliVersionPolicy(),_0xeaa91a=_0x1b968c?.['stableVersion']||null,_0xef4617=_0x1b968c?.[_0x37e6df(0x172)]||null;let _0x22f8c6=![],_0x10cb66=![];const _0x187aa2=a343_0x30e2c2[_0x37e6df(0x163)](_0x420b9b);if(_0x187aa2&&_0xeaa91a)try{const _0x1d1fdd=a343_0x30e2c2[_0x37e6df(0x163)](_0xeaa91a);if(_0x1d1fdd)_0x22f8c6=a343_0x30e2c2['lt'](_0x187aa2,_0x1d1fdd);}catch{}if(_0x187aa2&&_0xef4617)try{const _0x3bca76=a343_0x30e2c2[_0x37e6df(0x163)](_0xef4617);if(_0x3bca76)_0x10cb66=a343_0x30e2c2['lt'](_0x187aa2,_0x3bca76);}catch{}return _0x10cb66&&(_0x22f8c6=!![]),{'currentVersion':_0x420b9b,'stableVersion':_0xeaa91a,'minimumVersion':_0xef4617,'needsUpgrade':_0x22f8c6,'belowMinimum':_0x10cb66,'isPreRelease':![],'upgradeMessage':_0x1b968c?.[_0x37e6df(0x182)],'minimumVersionMessage':_0x1b968c?.[_0x37e6df(0x168)]};}export function printCliUpgradeWarning(_0x185b42){const _0x276e6b=a343_0x52b2;if(!_0x185b42[_0x276e6b(0x176)]&&!_0x185b42[_0x276e6b(0x167)])return;const _0x4c5beb='\x1b[31m',_0x21e18b=_0x276e6b(0x175),_0x1dc900=_0x276e6b(0x183),_0x37f1cc=_0x276e6b(0x177),_0x450bc1=getCliUpgradeCommand(_0x185b42);console[_0x276e6b(0x185)](),_0x185b42[_0x276e6b(0x167)]?(console[_0x276e6b(0x185)](''+_0x4c5beb+_0x37f1cc+_0x276e6b(0x164)+_0x1dc900),console[_0x276e6b(0x185)](_0x4c5beb+_0x276e6b(0x17c)+_0x185b42['currentVersion']+_0x1dc900),_0x185b42[_0x276e6b(0x172)]&&console[_0x276e6b(0x185)](_0x4c5beb+_0x276e6b(0x170)+_0x185b42[_0x276e6b(0x172)]+_0x1dc900),_0x185b42['stableVersion']&&_0x185b42[_0x276e6b(0x160)]!==_0x185b42[_0x276e6b(0x172)]&&console['log'](_0x4c5beb+_0x276e6b(0x186)+_0x185b42[_0x276e6b(0x160)]+_0x1dc900),_0x185b42[_0x276e6b(0x168)]&&console[_0x276e6b(0x185)](_0x4c5beb+_0x276e6b(0x16b)+_0x185b42[_0x276e6b(0x168)]+_0x1dc900),console[_0x276e6b(0x185)](_0x4c5beb+_0x276e6b(0x15e)+_0x450bc1+_0x1dc900)):(console[_0x276e6b(0x185)](''+_0x21e18b+_0x37f1cc+_0x276e6b(0x169)+_0x1dc900),console[_0x276e6b(0x185)](_0x21e18b+_0x276e6b(0x17c)+_0x185b42[_0x276e6b(0x17a)]+_0x1dc900),console['log'](_0x21e18b+_0x276e6b(0x188)+_0x185b42[_0x276e6b(0x160)]+_0x1dc900),_0x185b42[_0x276e6b(0x182)]&&console[_0x276e6b(0x185)](_0x21e18b+'\x20\x20\x20'+_0x185b42[_0x276e6b(0x182)]+_0x1dc900),console[_0x276e6b(0x185)](_0x21e18b+_0x276e6b(0x15e)+_0x450bc1+_0x1dc900)),console[_0x276e6b(0x185)]();}export function assertCliVersionSupported(_0x495832){const _0xdbd31c=a343_0x52b2;if(!_0x495832['belowMinimum'])return;const _0xcf77a6=[_0x495832[_0xdbd31c(0x168)],_0xdbd31c(0x18a)+_0x495832[_0xdbd31c(0x17a)],_0x495832[_0xdbd31c(0x172)]?'Minimum\x20supported:\x20'+_0x495832[_0xdbd31c(0x172)]:null,_0xdbd31c(0x180)+getCliUpgradeCommand(_0x495832)][_0xdbd31c(0x17d)](Boolean)[_0xdbd31c(0x17f)]('\x0a');throw CliErrors[_0xdbd31c(0x181)](_0xdbd31c(0x17b),_0xcf77a6);}
@@ -1 +1 @@
1
- (function(_0x1ff928,_0x143fb5){const _0x775f11=a344_0x153f,_0x22a8eb=_0x1ff928();while(!![]){try{const _0x14ebc=-parseInt(_0x775f11(0x18f))/0x1*(parseInt(_0x775f11(0x19a))/0x2)+-parseInt(_0x775f11(0x18a))/0x3+parseInt(_0x775f11(0x190))/0x4+-parseInt(_0x775f11(0x191))/0x5+parseInt(_0x775f11(0x197))/0x6*(-parseInt(_0x775f11(0x188))/0x7)+-parseInt(_0x775f11(0x186))/0x8*(-parseInt(_0x775f11(0x199))/0x9)+parseInt(_0x775f11(0x18d))/0xa*(parseInt(_0x775f11(0x1a0))/0xb);if(_0x14ebc===_0x143fb5)break;else _0x22a8eb['push'](_0x22a8eb['shift']());}catch(_0x174e1a){_0x22a8eb['push'](_0x22a8eb['shift']());}}}(a344_0x529e,0x46ea8));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x1c7e61 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0xac29e1){const _0x394aea=a344_0x153f,_0x4b5ec7=a344_0x1c7e61[_0x394aea(0x194)](_0xac29e1);return _0x4b5ec7?a344_0x1c7e61['prerelease'](_0x4b5ec7)?.[0x0]===_0x394aea(0x19e):![];}export function resolveProjectTemplateDescriptor(_0x81d6ef,_0x13ecdf){const _0x39a3b8=a344_0x153f;if(isBetaCliVersion(_0x13ecdf))return _0x81d6ef[_0x39a3b8(0x19e)]?.[_0x39a3b8(0x18c)]??_0x81d6ef[_0x39a3b8(0x18c)];return _0x81d6ef['projectTemplate'];}function pickString(_0x3f1816){const _0x1a008e=a344_0x153f;return typeof _0x3f1816===_0x1a008e(0x19f)&&_0x3f1816[_0x1a008e(0x189)]()[_0x1a008e(0x18e)]>0x0?_0x3f1816[_0x1a008e(0x189)]():null;}function normalizeCliVersionPolicy(_0x353dbd){const _0x43cbb3=a344_0x153f;if(!_0x353dbd||typeof _0x353dbd!==_0x43cbb3(0x196))return null;const _0x4e9d23=_0x353dbd,_0x51566e=_0x4e9d23[_0x43cbb3(0x18b)]&&typeof _0x4e9d23[_0x43cbb3(0x18b)]===_0x43cbb3(0x196)?_0x4e9d23[_0x43cbb3(0x18b)]:_0x4e9d23,_0x50329a=pickString(_0x51566e['stableVersion'])||pickString(_0x51566e[_0x43cbb3(0x198)])||pickString(_0x51566e[_0x43cbb3(0x193)]),_0x13195a=pickString(_0x51566e[_0x43cbb3(0x192)])||pickString(_0x51566e[_0x43cbb3(0x185)]);if(!_0x50329a&&!_0x13195a)return null;return{'stableVersion':_0x50329a,'minimumVersion':_0x13195a,'upgradeMessage':pickString(_0x51566e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x51566e[_0x43cbb3(0x19d)])||undefined};}function a344_0x153f(_0x452744,_0x1561c5){_0x452744=_0x452744-0x185;const _0x529e22=a344_0x529e();let _0x153f40=_0x529e22[_0x452744];return _0x153f40;}async function fetchRabetbaseCdnConfigAt(_0xd3486c){const _0x1cb9f1=a344_0x153f,_0x3954c1=new AbortController(),_0x2bf3a6=setTimeout(()=>_0x3954c1[_0x1cb9f1(0x19c)](),FETCH_TIMEOUT_MS);try{const _0x183631=await fetch(_0xd3486c,{'headers':{'Accept':_0x1cb9f1(0x187)},'signal':_0x3954c1[_0x1cb9f1(0x195)]});if(!_0x183631['ok'])return null;const _0x2e22a1=await _0x183631[_0x1cb9f1(0x19b)]();return _0x2e22a1&&typeof _0x2e22a1===_0x1cb9f1(0x196)?_0x2e22a1:null;}catch{return null;}finally{clearTimeout(_0x2bf3a6);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}function a344_0x529e(){const _0x21321b=['abort','minimumVersionMessage','beta','string','11HwUozs','now','minVersion','8ElrJoV','application/json','8351tgmlSr','trim','1326075Ovxhmd','cli','projectTemplate','4733510CKVUuq','length','845bYDval','673408tpxVWN','1376185FqZslQ','minimumVersion','recommendedVersion','valid','signal','object','150KKOqhs','latestVersion','3608334YtManf','12PQfzkl','json'];a344_0x529e=function(){return _0x21321b;};return a344_0x529e();}export async function fetchProjectTemplateCdnConfig(){const _0x296c61=await getRabetbaseCdnConfig();return _0x296c61?{'config':_0x296c61,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x126f1f=a344_0x153f,_0x33575f=Date[_0x126f1f(0x1a1)]();if(hasCachedConfig){const _0x7df609=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x33575f-cacheTime<_0x7df609)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x33575f,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2c0ec0,_0x1eb4b1){const _0x586691=a344_0x437d,_0x4c170f=_0x2c0ec0();while(!![]){try{const _0x38044b=parseInt(_0x586691(0x14b))/0x1+-parseInt(_0x586691(0x149))/0x2*(parseInt(_0x586691(0x15f))/0x3)+-parseInt(_0x586691(0x157))/0x4+-parseInt(_0x586691(0x153))/0x5*(-parseInt(_0x586691(0x15e))/0x6)+-parseInt(_0x586691(0x145))/0x7*(parseInt(_0x586691(0x154))/0x8)+-parseInt(_0x586691(0x147))/0x9+parseInt(_0x586691(0x158))/0xa;if(_0x38044b===_0x1eb4b1)break;else _0x4c170f['push'](_0x4c170f['shift']());}catch(_0x242b8d){_0x4c170f['push'](_0x4c170f['shift']());}}}(a344_0x4ef4,0x60f1b));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x56ea01 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function a344_0x437d(_0x155fdb,_0x29848b){_0x155fdb=_0x155fdb-0x144;const _0x4ef417=a344_0x4ef4();let _0x437d17=_0x4ef417[_0x155fdb];return _0x437d17;}export function isBetaCliVersion(_0x50b722){const _0x2f6110=a344_0x437d,_0x35ea87=a344_0x56ea01[_0x2f6110(0x151)](_0x50b722);return _0x35ea87?a344_0x56ea01[_0x2f6110(0x15b)](_0x35ea87)?.[0x0]===_0x2f6110(0x15c):![];}export function resolveProjectTemplateDescriptor(_0x574ac0,_0x54d168){const _0xe4c72c=a344_0x437d;if(isBetaCliVersion(_0x54d168))return _0x574ac0[_0xe4c72c(0x15c)]?.['projectTemplate']??_0x574ac0[_0xe4c72c(0x159)];return _0x574ac0[_0xe4c72c(0x159)];}function pickString(_0x5a3459){const _0x4e27c5=a344_0x437d;return typeof _0x5a3459===_0x4e27c5(0x15a)&&_0x5a3459[_0x4e27c5(0x14a)]()[_0x4e27c5(0x146)]>0x0?_0x5a3459['trim']():null;}function normalizeCliVersionPolicy(_0x1fedb5){const _0x1d1efb=a344_0x437d;if(!_0x1fedb5||typeof _0x1fedb5!==_0x1d1efb(0x14f))return null;const _0x404e98=_0x1fedb5,_0x45dcef=_0x404e98[_0x1d1efb(0x156)]&&typeof _0x404e98['cli']===_0x1d1efb(0x14f)?_0x404e98[_0x1d1efb(0x156)]:_0x404e98,_0x566852=pickString(_0x45dcef[_0x1d1efb(0x150)])||pickString(_0x45dcef[_0x1d1efb(0x14c)])||pickString(_0x45dcef[_0x1d1efb(0x160)]),_0x227ced=pickString(_0x45dcef[_0x1d1efb(0x15d)])||pickString(_0x45dcef['minVersion']);if(!_0x566852&&!_0x227ced)return null;return{'stableVersion':_0x566852,'minimumVersion':_0x227ced,'upgradeMessage':pickString(_0x45dcef[_0x1d1efb(0x144)])||undefined,'minimumVersionMessage':pickString(_0x45dcef[_0x1d1efb(0x14d)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x51101e){const _0x32bd6f=a344_0x437d,_0x4ffcfb=new AbortController(),_0xd71044=setTimeout(()=>_0x4ffcfb['abort'](),FETCH_TIMEOUT_MS);try{const _0x4f949c=await fetch(_0x51101e,{'headers':{'Accept':_0x32bd6f(0x148)},'signal':_0x4ffcfb[_0x32bd6f(0x155)]});if(!_0x4f949c['ok'])return null;const _0x5869f0=await _0x4f949c[_0x32bd6f(0x152)]();return _0x5869f0&&typeof _0x5869f0===_0x32bd6f(0x14f)?_0x5869f0:null;}catch{return null;}finally{clearTimeout(_0xd71044);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x503060=await getRabetbaseCdnConfig();return _0x503060?{'config':_0x503060,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x2d1553=a344_0x437d,_0x165d8f=Date[_0x2d1553(0x14e)]();if(hasCachedConfig){const _0x1b3dc9=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x165d8f-cacheTime<_0x1b3dc9)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x165d8f,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a344_0x4ef4(){const _0x511195=['valid','json','2135HvhlOH','16UhRqWg','signal','cli','3148676ztmSvA','11806640dbTuKF','projectTemplate','string','prerelease','beta','minimumVersion','10986xdALLJ','867JcLsBs','recommendedVersion','upgradeMessage','2524781ZGJYSx','length','2775150gXygLZ','application/json','2588hmtBMS','trim','625433SQraVg','latestVersion','minimumVersionMessage','now','object','stableVersion'];a344_0x4ef4=function(){return _0x511195;};return a344_0x4ef4();}
@@ -1 +1 @@
1
- function a345_0x56d0(_0x43d5a9,_0x22b036){_0x43d5a9=_0x43d5a9-0x7b;const _0xad11ab=a345_0xad11();let _0x56d02a=_0xad11ab[_0x43d5a9];return _0x56d02a;}function a345_0xad11(){const _0xdb32e1=['376ZvBbPr','35437347kGqYbl','2780JHjlwf','21DXFkAB','2172jEUrGJ','420921FbavFU','26677aRRTbV','35482ikrGtl','project','4042940BaMDaT','string','env','830195milJDd','190uvrOVS'];a345_0xad11=function(){return _0xdb32e1;};return a345_0xad11();}const a345_0xf2a5fb=a345_0x56d0;(function(_0xf8aaa4,_0x83f17d){const _0x3738dd=a345_0x56d0,_0x42706c=_0xf8aaa4();while(!![]){try{const _0x4e0e67=-parseInt(_0x3738dd(0x86))/0x1+-parseInt(_0x3738dd(0x81))/0x2*(parseInt(_0x3738dd(0x7d))/0x3)+-parseInt(_0x3738dd(0x83))/0x4+-parseInt(_0x3738dd(0x7c))/0x5*(-parseInt(_0x3738dd(0x7e))/0x6)+-parseInt(_0x3738dd(0x80))/0x7*(-parseInt(_0x3738dd(0x88))/0x8)+parseInt(_0x3738dd(0x7f))/0x9*(-parseInt(_0x3738dd(0x87))/0xa)+parseInt(_0x3738dd(0x7b))/0xb;if(_0x4e0e67===_0x83f17d)break;else _0x42706c['push'](_0x42706c['shift']());}catch(_0x3042e3){_0x42706c['push'](_0x42706c['shift']());}}}(a345_0xad11,0xb6ace));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a345_0x5a88a2,getMultiAppConfigs as a345_0x1e2fd2,getTemplateBaseUrl as a345_0x1009f2}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x443926){const _0x3af617=a345_0x56d0,_0x1850e8=readRawConfig(_0x443926);return _0x1850e8[_0x3af617(0x85)]&&typeof _0x1850e8['env']===_0x3af617(0x84)&&initEnv(_0x1850e8[_0x3af617(0x85)]),_0x1850e8;}export function getConfigAppCode(){return a345_0x5a88a2();}export function getMultiAppConfigs(_0x3684f5=a345_0xf2a5fb(0x82)){return a345_0x1e2fd2(_0x3684f5);}export function getTemplateBaseUrl(){return a345_0x1009f2();}
1
+ function a345_0x3d7d(_0x520acd,_0x1cabd4){_0x520acd=_0x520acd-0x11c;const _0x45f4f2=a345_0x45f4();let _0x3d7d8e=_0x45f4f2[_0x520acd];return _0x3d7d8e;}const a345_0x414df3=a345_0x3d7d;(function(_0x3cbb15,_0x2398ff){const _0x52fb21=a345_0x3d7d,_0x2c000a=_0x3cbb15();while(!![]){try{const _0x22d827=-parseInt(_0x52fb21(0x11f))/0x1+parseInt(_0x52fb21(0x120))/0x2*(parseInt(_0x52fb21(0x122))/0x3)+-parseInt(_0x52fb21(0x129))/0x4*(parseInt(_0x52fb21(0x123))/0x5)+-parseInt(_0x52fb21(0x121))/0x6+parseInt(_0x52fb21(0x125))/0x7*(-parseInt(_0x52fb21(0x11d))/0x8)+parseInt(_0x52fb21(0x127))/0x9*(parseInt(_0x52fb21(0x126))/0xa)+parseInt(_0x52fb21(0x128))/0xb;if(_0x22d827===_0x2398ff)break;else _0x2c000a['push'](_0x2c000a['shift']());}catch(_0x363f62){_0x2c000a['push'](_0x2c000a['shift']());}}}(a345_0x45f4,0xe92a2));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a345_0x38d881,getMultiAppConfigs as a345_0xe2bd59,getTemplateBaseUrl as a345_0x4d0e00}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x56153e){const _0x2f838d=a345_0x3d7d,_0x39a0ed=readRawConfig(_0x56153e);return _0x39a0ed[_0x2f838d(0x11e)]&&typeof _0x39a0ed[_0x2f838d(0x11e)]===_0x2f838d(0x11c)&&initEnv(_0x39a0ed[_0x2f838d(0x11e)]),_0x39a0ed;}export function getConfigAppCode(){return a345_0x38d881();}function a345_0x45f4(){const _0x164fb3=['3438925uqBspF','410XRvQRO','3141ktCiZt','14146693RDZNmh','88308gcxRmq','string','8zSOZKf','env','733942wmywBV','610caTUWL','930294PRjtbv','10614uwnAVt','10iEKXMm','project'];a345_0x45f4=function(){return _0x164fb3;};return a345_0x45f4();}export function getMultiAppConfigs(_0x4d88fb=a345_0x414df3(0x124)){return a345_0xe2bd59(_0x4d88fb);}export function getTemplateBaseUrl(){return a345_0x4d0e00();}
@@ -1 +1 @@
1
- (function(_0x1056df,_0x4fbf61){const _0x4b0c58=a346_0x55f4,_0x447f36=_0x1056df();while(!![]){try{const _0x28bc4f=parseInt(_0x4b0c58(0xee))/0x1+parseInt(_0x4b0c58(0xe7))/0x2+-parseInt(_0x4b0c58(0xe5))/0x3+-parseInt(_0x4b0c58(0xea))/0x4+-parseInt(_0x4b0c58(0xec))/0x5+parseInt(_0x4b0c58(0xe4))/0x6+-parseInt(_0x4b0c58(0xeb))/0x7*(-parseInt(_0x4b0c58(0xe8))/0x8);if(_0x28bc4f===_0x4fbf61)break;else _0x447f36['push'](_0x447f36['shift']());}catch(_0x3bcc89){_0x447f36['push'](_0x447f36['shift']());}}}(a346_0x2a98,0x4809f));function toFiniteNumber(_0x5cf3d3){const _0x586083=a346_0x55f4;if(typeof _0x5cf3d3==='number'&&Number[_0x586083(0xed)](_0x5cf3d3))return _0x5cf3d3;if(typeof _0x5cf3d3==='string'){const _0x3a0566=_0x5cf3d3[_0x586083(0xe6)]();if(!_0x3a0566)return undefined;const _0x47bbe2=Number(_0x3a0566);if(Number[_0x586083(0xed)](_0x47bbe2))return _0x47bbe2;}return undefined;}function a346_0x55f4(_0x1df18d,_0x113cf7){_0x1df18d=_0x1df18d-0xe4;const _0x2a986c=a346_0x2a98();let _0x55f43b=_0x2a986c[_0x1df18d];return _0x55f43b;}export function normalizeEntityWithIdResponse(_0x4e1b31){const _0x3d5c2b=a346_0x55f4,_0x54874a=toFiniteNumber(_0x4e1b31);if(_0x54874a!==undefined)return{'id':_0x54874a,'entity':{'id':_0x54874a}};if(!_0x4e1b31||typeof _0x4e1b31!==_0x3d5c2b(0xe9))return{'id':undefined,'entity':{}};const _0xd188c0={..._0x4e1b31},_0x17453d=toFiniteNumber(_0xd188c0['id']);return _0x17453d!==undefined&&(_0xd188c0['id']=_0x17453d),{'id':_0x17453d,'entity':_0xd188c0};}function a346_0x2a98(){const _0x45c359=['1273260OATXbj','1732329aKXKYm','trim','827176ECxzUa','4233976dMbUah','object','147212QuXLYU','7NTSbaN','2942790eGzoVZ','isFinite','342830Llgtai'];a346_0x2a98=function(){return _0x45c359;};return a346_0x2a98();}
1
+ function a346_0x50e6(_0x51001e,_0x17ea41){_0x51001e=_0x51001e-0x128;const _0x2fe218=a346_0x2fe2();let _0x50e6a7=_0x2fe218[_0x51001e];return _0x50e6a7;}(function(_0x782c4,_0x24a3af){const _0x11436d=a346_0x50e6,_0xb6e122=_0x782c4();while(!![]){try{const _0x16feff=-parseInt(_0x11436d(0x132))/0x1*(parseInt(_0x11436d(0x135))/0x2)+parseInt(_0x11436d(0x128))/0x3+parseInt(_0x11436d(0x12f))/0x4+parseInt(_0x11436d(0x12a))/0x5*(parseInt(_0x11436d(0x134))/0x6)+parseInt(_0x11436d(0x12d))/0x7*(parseInt(_0x11436d(0x131))/0x8)+-parseInt(_0x11436d(0x12b))/0x9+-parseInt(_0x11436d(0x12c))/0xa;if(_0x16feff===_0x24a3af)break;else _0xb6e122['push'](_0xb6e122['shift']());}catch(_0x595bb2){_0xb6e122['push'](_0xb6e122['shift']());}}}(a346_0x2fe2,0x50684));function toFiniteNumber(_0x370543){const _0xf82827=a346_0x50e6;if(typeof _0x370543===_0xf82827(0x133)&&Number[_0xf82827(0x130)](_0x370543))return _0x370543;if(typeof _0x370543===_0xf82827(0x136)){const _0x30ee7c=_0x370543[_0xf82827(0x12e)]();if(!_0x30ee7c)return undefined;const _0x24bf6d=Number(_0x30ee7c);if(Number[_0xf82827(0x130)](_0x24bf6d))return _0x24bf6d;}return undefined;}function a346_0x2fe2(){const _0x19b42f=['object','5tcqBqt','4109067yDMMzb','6508300BAEiKz','1385139IaWrco','trim','1824844ctMnOr','isFinite','8PEDqzS','1IWlmmA','number','2517282KxQcTV','438972TNdAjC','string','1747776xVZCLe'];a346_0x2fe2=function(){return _0x19b42f;};return a346_0x2fe2();}export function normalizeEntityWithIdResponse(_0x3d3de8){const _0x2c8fd1=a346_0x50e6,_0x380d37=toFiniteNumber(_0x3d3de8);if(_0x380d37!==undefined)return{'id':_0x380d37,'entity':{'id':_0x380d37}};if(!_0x3d3de8||typeof _0x3d3de8!==_0x2c8fd1(0x129))return{'id':undefined,'entity':{}};const _0x15f5ec={..._0x3d3de8},_0x555d5c=toFiniteNumber(_0x15f5ec['id']);return _0x555d5c!==undefined&&(_0x15f5ec['id']=_0x555d5c),{'id':_0x555d5c,'entity':_0x15f5ec};}
@@ -1 +1 @@
1
- (function(_0x51f96b,_0x14e87d){const _0x32b245=a347_0x6a30,_0x22fdac=_0x51f96b();while(!![]){try{const _0x3c6eb5=parseInt(_0x32b245(0xc0))/0x1+-parseInt(_0x32b245(0xbf))/0x2+-parseInt(_0x32b245(0xc2))/0x3*(parseInt(_0x32b245(0xc4))/0x4)+parseInt(_0x32b245(0xc1))/0x5+-parseInt(_0x32b245(0xc5))/0x6+-parseInt(_0x32b245(0xbe))/0x7+parseInt(_0x32b245(0xc3))/0x8;if(_0x3c6eb5===_0x14e87d)break;else _0x22fdac['push'](_0x22fdac['shift']());}catch(_0x26117b){_0x22fdac['push'](_0x22fdac['shift']());}}}(a347_0x4133,0x5f2db));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a347_0x4133(){const _0x3dc656=['117faggsg','4396384AIemEp','48316DYcnlY','1580598QzsnJn','isDirectory','128758cFixpo','460756axjXUG','624547xEpdGY','995210PldpCy'];a347_0x4133=function(){return _0x3dc656;};return a347_0x4133();}export async function copyDir(_0x119ee8,_0x3aa7cd){const _0x2a24ad=a347_0x6a30,_0x58623c=statSync(_0x119ee8);if(_0x58623c[_0x2a24ad(0xbd)]()){!existsSync(_0x3aa7cd)&&mkdirSync(_0x3aa7cd,{'recursive':!![]});const _0x3da701=readdirSync(_0x119ee8);for(const _0x120968 of _0x3da701){await copyDir(join(_0x119ee8,_0x120968),join(_0x3aa7cd,_0x120968));}}else copyFileSync(_0x119ee8,_0x3aa7cd);}export function ensureDir(_0x20cc78){!existsSync(_0x20cc78)&&mkdirSync(_0x20cc78,{'recursive':!![]});}function a347_0x6a30(_0x17f782,_0x49fa1e){_0x17f782=_0x17f782-0xbd;const _0x41338e=a347_0x4133();let _0x6a30c1=_0x41338e[_0x17f782];return _0x6a30c1;}export function pathExists(_0x2f8bf2){return existsSync(_0x2f8bf2);}
1
+ (function(_0x1ccfbe,_0x2e506c){const _0x3eca31=a347_0x4a94,_0x2057ae=_0x1ccfbe();while(!![]){try{const _0x408743=-parseInt(_0x3eca31(0x1da))/0x1+-parseInt(_0x3eca31(0x1db))/0x2*(parseInt(_0x3eca31(0x1dd))/0x3)+parseInt(_0x3eca31(0x1de))/0x4+-parseInt(_0x3eca31(0x1d8))/0x5+-parseInt(_0x3eca31(0x1d6))/0x6*(-parseInt(_0x3eca31(0x1d5))/0x7)+-parseInt(_0x3eca31(0x1dc))/0x8*(parseInt(_0x3eca31(0x1d7))/0x9)+parseInt(_0x3eca31(0x1df))/0xa;if(_0x408743===_0x2e506c)break;else _0x2057ae['push'](_0x2057ae['shift']());}catch(_0x55d9aa){_0x2057ae['push'](_0x2057ae['shift']());}}}(a347_0x2365,0x3ae5d));function a347_0x2365(){const _0x481327=['1581784KDykMC','348540soAMpS','361851SjBVKe','42fFJcHc','78381MfwntE','475350jNiphw','isDirectory','113552pDlibo','182oXhImY','152SMxIVW','5829WQElUY'];a347_0x2365=function(){return _0x481327;};return a347_0x2365();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2364b8,_0x36d3a3){const _0x2ca9bc=a347_0x4a94,_0x1828b4=statSync(_0x2364b8);if(_0x1828b4[_0x2ca9bc(0x1d9)]()){!existsSync(_0x36d3a3)&&mkdirSync(_0x36d3a3,{'recursive':!![]});const _0x488a5d=readdirSync(_0x2364b8);for(const _0x1686c9 of _0x488a5d){await copyDir(join(_0x2364b8,_0x1686c9),join(_0x36d3a3,_0x1686c9));}}else copyFileSync(_0x2364b8,_0x36d3a3);}export function ensureDir(_0x37b656){!existsSync(_0x37b656)&&mkdirSync(_0x37b656,{'recursive':!![]});}function a347_0x4a94(_0x21be83,_0x22a879){_0x21be83=_0x21be83-0x1d5;const _0x23650c=a347_0x2365();let _0x4a94ef=_0x23650c[_0x21be83];return _0x4a94ef;}export function pathExists(_0xef58ff){return existsSync(_0xef58ff);}
@@ -1 +1 @@
1
- const a348_0x564fec=a348_0x3793;(function(_0x51ca8a,_0x578e60){const _0x3311c2=a348_0x3793,_0xd3b991=_0x51ca8a();while(!![]){try{const _0x5e7a1a=-parseInt(_0x3311c2(0x206))/0x1*(-parseInt(_0x3311c2(0x1fa))/0x2)+parseInt(_0x3311c2(0x1f0))/0x3*(parseInt(_0x3311c2(0x1fc))/0x4)+-parseInt(_0x3311c2(0x1f9))/0x5+parseInt(_0x3311c2(0x1fb))/0x6+-parseInt(_0x3311c2(0x1ee))/0x7+-parseInt(_0x3311c2(0x207))/0x8*(parseInt(_0x3311c2(0x1fe))/0x9)+parseInt(_0x3311c2(0x203))/0xa;if(_0x5e7a1a===_0x578e60)break;else _0xd3b991['push'](_0xd3b991['shift']());}catch(_0x4158ee){_0xd3b991['push'](_0xd3b991['shift']());}}}(a348_0xf431,0x62737));import{mkdirSync,writeFileSync}from'node:fs';function a348_0x3793(_0x21316b,_0x57e521){_0x21316b=_0x21316b-0x1e9;const _0xf431da=a348_0xf431();let _0x3793ea=_0xf431da[_0x21316b];return _0x3793ea;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a348_0xf431(){const _0x3964e1=['push','.lovrabet/skill/guides','lastUpdated','4962240RfSzic','statusText','join','2482NaDHqB','4320YKFXbQ','entries','.lovrabet','/skills/guides.json','length','keys','trimEnd','utf-8','4109532YQUMFc','\x0a\x0a>更新时间:','225669KmlTku','.md','status','replace','skillTemplate','title','guides','extendContent','application/json','2997670QbSAua','358nmTcMf','4199760yDCspU','4xHbvwR','object','2097OKPNHT','CDN\x20data\x20is\x20missing\x20skillTemplate'];a348_0xf431=function(){return _0x3964e1;};return a348_0xf431();}function getGuidesCdnUrl(){const _0xcf8d1=a348_0x3793,_0x3d0a35=getTemplateBaseUrl();return _0x3d0a35+_0xcf8d1(0x1e9);}const CACHE_DIR=join(homedir(),a348_0x564fec(0x209),'cache');export async function fetchGuidesFromCDN(){const _0x226df6=a348_0x564fec,_0x3a064b=getGuidesCdnUrl(),_0x186cab=await fetch(_0x3a064b,{'headers':{'Accept':_0x226df6(0x1f8)}});if(!_0x186cab['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x186cab[_0x226df6(0x1f2)]+'\x20'+_0x186cab[_0x226df6(0x204)]);const _0x34d9c6=await _0x186cab['json']();if(!_0x34d9c6[_0x226df6(0x1f6)]||typeof _0x34d9c6[_0x226df6(0x1f6)]!==_0x226df6(0x1fd))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x34d9c6;}export function writeGuidesToProject(_0x5891a4,_0x54aff5,_0x19e46c=a348_0x564fec(0x201),_0x407075){const _0x5084a9=a348_0x564fec,_0x23399c=join(_0x54aff5,_0x19e46c);mkdirSync(_0x23399c,{'recursive':!![]});for(const [_0x549e5f,_0x4fb89e]of Object['entries'](_0x5891a4[_0x5084a9(0x1f6)])){let _0x586cd6=_0x4fb89e['content'];_0x4fb89e['lastUpdated']&&(_0x586cd6=appendUpdateTime(_0x586cd6,_0x4fb89e[_0x5084a9(0x202)])),writeFileSync(join(_0x23399c,_0x549e5f+_0x5084a9(0x1f1)),_0x586cd6,_0x5084a9(0x1ed));}}export function appendUpdateTime(_0x45c8ba,_0x57aea0){const _0x9e6cb2=a348_0x564fec;return _0x45c8ba=_0x45c8ba['replace'](/\n*>更新时间:.*$/m,''),_0x45c8ba['trimEnd']()+(_0x9e6cb2(0x1ef)+_0x57aea0);}export function getSkillTemplate(_0x32dca5){const _0x35ef39=a348_0x564fec;return _0x32dca5[_0x35ef39(0x1f4)]?.['content']||'';}export function appendExtendContents(_0x3e2002,_0x327c18,_0x128596){const _0x1055d5=a348_0x564fec,_0x95849a=[];for(const [,_0x5dce94]of Object['entries'](_0x327c18[_0x1055d5(0x1f6)])){_0x5dce94[_0x1055d5(0x1f7)]&&_0x95849a[_0x1055d5(0x200)](_0x5dce94[_0x1055d5(0x1f7)][_0x1055d5(0x1ec)]());}if(_0x95849a[_0x1055d5(0x1ea)]===0x0)return _0x3e2002;return _0x3e2002[_0x1055d5(0x1ec)]()+'\x0a\x0a'+_0x95849a[_0x1055d5(0x205)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4414ba,_0x1b7fae,_0x150ca5){const _0x5b8281=a348_0x564fec,_0x1171be=getSkillTemplate(_0x4414ba);if(!_0x1171be)throw new Error(_0x5b8281(0x1ff));const _0x56e2ea=dirname(_0x1b7fae);mkdirSync(_0x56e2ea,{'recursive':!![]});let _0x27650e=_0x1171be[_0x5b8281(0x1f3)](/\{\{IDE_NAME\}\}/g,_0x150ca5);_0x27650e=appendExtendContents(_0x27650e,_0x4414ba),_0x4414ba[_0x5b8281(0x1f4)]['lastUpdated']&&(_0x27650e=appendUpdateTime(_0x27650e,_0x4414ba[_0x5b8281(0x1f4)][_0x5b8281(0x202)])),writeFileSync(_0x1b7fae,_0x27650e,_0x5b8281(0x1ed));}export async function installGuides(_0x576a9f){const _0x3caeae=a348_0x564fec,_0x3cf509=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3cf509,_0x576a9f),Object[_0x3caeae(0x1eb)](_0x3cf509[_0x3caeae(0x1f6)])[_0x3caeae(0x1ea)];}export function getGuidesSummary(_0x482517){const _0x3ec951=a348_0x564fec;return Object[_0x3ec951(0x208)](_0x482517['guides'])['map'](([_0x35704c,_0x22b06a])=>({'key':_0x35704c,'title':_0x22b06a[_0x3ec951(0x1f5)],'path':_0x22b06a['path']}));}
1
+ const a348_0x235f77=a348_0x5262;(function(_0x1c8618,_0x1d4097){const _0x5dbb95=a348_0x5262,_0x4379e6=_0x1c8618();while(!![]){try{const _0x516775=parseInt(_0x5dbb95(0x196))/0x1*(-parseInt(_0x5dbb95(0x184))/0x2)+parseInt(_0x5dbb95(0x188))/0x3+parseInt(_0x5dbb95(0x18b))/0x4+parseInt(_0x5dbb95(0x19a))/0x5+-parseInt(_0x5dbb95(0x187))/0x6*(parseInt(_0x5dbb95(0x190))/0x7)+parseInt(_0x5dbb95(0x18c))/0x8+-parseInt(_0x5dbb95(0x19f))/0x9;if(_0x516775===_0x1d4097)break;else _0x4379e6['push'](_0x4379e6['shift']());}catch(_0x20a0ee){_0x4379e6['push'](_0x4379e6['shift']());}}}(a348_0x2456,0xe51d6));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a348_0x2456(){const _0x328d21=['3258324vwpJJv','application/json','cache','2905740GEQQSe','8882936cEddXs','lastUpdated','replace','length','7bnPzkz','guides','.md','extendContent','utf-8','json','115LcNZHD','push','skillTemplate','content','1613055yPHedZ','\x0a\x0a>更新时间:','.lovrabet','path','entries','5467374cWDznc','/skills/guides.json','CDN\x20returned\x20invalid\x20data','trimEnd','keys','CDN\x20data\x20is\x20missing\x20skillTemplate','status','.lovrabet/skill/guides','26392sAURmz','object','join','1092246ynVFQD'];a348_0x2456=function(){return _0x328d21;};return a348_0x2456();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x357ca9=a348_0x5262,_0x58f7fa=getTemplateBaseUrl();return _0x58f7fa+_0x357ca9(0x1a0);}const CACHE_DIR=join(homedir(),a348_0x235f77(0x19c),a348_0x235f77(0x18a));export async function fetchGuidesFromCDN(){const _0x11ff56=a348_0x235f77,_0x7ba73a=getGuidesCdnUrl(),_0x31c76f=await fetch(_0x7ba73a,{'headers':{'Accept':_0x11ff56(0x189)}});if(!_0x31c76f['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x31c76f[_0x11ff56(0x182)]+'\x20'+_0x31c76f['statusText']);const _0x4fba9a=await _0x31c76f[_0x11ff56(0x195)]();if(!_0x4fba9a[_0x11ff56(0x191)]||typeof _0x4fba9a['guides']!==_0x11ff56(0x185))throw new Error(_0x11ff56(0x1a1));return _0x4fba9a;}export function writeGuidesToProject(_0x11b7e3,_0x518d33,_0x24bb30=a348_0x235f77(0x183),_0x450888){const _0x213bb7=a348_0x235f77,_0x154b24=join(_0x518d33,_0x24bb30);mkdirSync(_0x154b24,{'recursive':!![]});for(const [_0x9db2bc,_0xeaf232]of Object['entries'](_0x11b7e3['guides'])){let _0x3fda02=_0xeaf232['content'];_0xeaf232[_0x213bb7(0x18d)]&&(_0x3fda02=appendUpdateTime(_0x3fda02,_0xeaf232[_0x213bb7(0x18d)])),writeFileSync(join(_0x154b24,_0x9db2bc+_0x213bb7(0x192)),_0x3fda02,'utf-8');}}function a348_0x5262(_0x29c894,_0x286a8a){_0x29c894=_0x29c894-0x17f;const _0x245621=a348_0x2456();let _0x5262df=_0x245621[_0x29c894];return _0x5262df;}export function appendUpdateTime(_0x53c638,_0xb29a39){const _0x5a2e97=a348_0x235f77;return _0x53c638=_0x53c638[_0x5a2e97(0x18e)](/\n*>更新时间:.*$/m,''),_0x53c638[_0x5a2e97(0x17f)]()+(_0x5a2e97(0x19b)+_0xb29a39);}export function getSkillTemplate(_0x3a6d3c){const _0x314328=a348_0x235f77;return _0x3a6d3c[_0x314328(0x198)]?.[_0x314328(0x199)]||'';}export function appendExtendContents(_0x245f6e,_0x298a34,_0x16b518){const _0x2d5379=a348_0x235f77,_0x575bfe=[];for(const [,_0x164cc1]of Object[_0x2d5379(0x19e)](_0x298a34[_0x2d5379(0x191)])){_0x164cc1[_0x2d5379(0x193)]&&_0x575bfe[_0x2d5379(0x197)](_0x164cc1['extendContent'][_0x2d5379(0x17f)]());}if(_0x575bfe['length']===0x0)return _0x245f6e;return _0x245f6e[_0x2d5379(0x17f)]()+'\x0a\x0a'+_0x575bfe[_0x2d5379(0x186)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5c1fc7,_0x1a3f4b,_0x36bc64){const _0xd54c86=a348_0x235f77,_0x5cfa27=getSkillTemplate(_0x5c1fc7);if(!_0x5cfa27)throw new Error(_0xd54c86(0x181));const _0x1841a4=dirname(_0x1a3f4b);mkdirSync(_0x1841a4,{'recursive':!![]});let _0x59a0fe=_0x5cfa27[_0xd54c86(0x18e)](/\{\{IDE_NAME\}\}/g,_0x36bc64);_0x59a0fe=appendExtendContents(_0x59a0fe,_0x5c1fc7),_0x5c1fc7['skillTemplate'][_0xd54c86(0x18d)]&&(_0x59a0fe=appendUpdateTime(_0x59a0fe,_0x5c1fc7[_0xd54c86(0x198)][_0xd54c86(0x18d)])),writeFileSync(_0x1a3f4b,_0x59a0fe,_0xd54c86(0x194));}export async function installGuides(_0x29da2d){const _0x4af70a=a348_0x235f77,_0x6590a5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x6590a5,_0x29da2d),Object[_0x4af70a(0x180)](_0x6590a5[_0x4af70a(0x191)])[_0x4af70a(0x18f)];}export function getGuidesSummary(_0x339b5c){const _0x3428d5=a348_0x235f77;return Object['entries'](_0x339b5c[_0x3428d5(0x191)])['map'](([_0xecc1c3,_0xeb8ed3])=>({'key':_0xecc1c3,'title':_0xeb8ed3['title'],'path':_0xeb8ed3[_0x3428d5(0x19d)]}));}
@@ -1 +1 @@
1
- function a349_0x155f(_0x36015d,_0x75f45b){_0x36015d=_0x36015d-0x88;const _0x1e630c=a349_0x1e63();let _0x155fea=_0x1e630c[_0x36015d];return _0x155fea;}(function(_0x18024e,_0x44890b){const _0x4c9c99=a349_0x155f,_0x51807f=_0x18024e();while(!![]){try{const _0x548e95=-parseInt(_0x4c9c99(0xa0))/0x1+parseInt(_0x4c9c99(0x9d))/0x2+-parseInt(_0x4c9c99(0x8e))/0x3*(-parseInt(_0x4c9c99(0x8f))/0x4)+parseInt(_0x4c9c99(0x9f))/0x5*(-parseInt(_0x4c9c99(0x8c))/0x6)+parseInt(_0x4c9c99(0xa3))/0x7+parseInt(_0x4c9c99(0x95))/0x8+-parseInt(_0x4c9c99(0x94))/0x9*(parseInt(_0x4c9c99(0x91))/0xa);if(_0x548e95===_0x44890b)break;else _0x51807f['push'](_0x51807f['shift']());}catch(_0x26cdb1){_0x51807f['push'](_0x51807f['shift']());}}}(a349_0x1e63,0x94806));function a349_0x1e63(){const _0x50b296=['json','fetch','1862688NpQtsk','content-type','409555RMLcmC','49125TeSwlZ','AbortError','text','4480189LPaTqZ','name','message','statusText','headers','12YNzhlz','Request\x20failed','294AshkYT','9904LhJzbD','ms...','21013910gBDsWe','ECONNRESET','abort','9fBKPLZ','8868648TiTbWp','*\x20Request\x20failed;\x20retry\x20','log','TypeError','status','includes'];a349_0x1e63=function(){return _0x50b296;};return a349_0x1e63();}export async function httpRequest(_0x3d7e3d,_0x112900={}){const _0x2ee8c3=a349_0x155f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x112900;let _0x58040b=null;for(let _0x539e02=0x0;_0x539e02<=retries;_0x539e02++){try{const _0x452ed6=new AbortController(),_0x4d8e71=setTimeout(()=>_0x452ed6[_0x2ee8c3(0x93)](),timeout),_0x2f5e69=await fetch(_0x3d7e3d,{'headers':headers,'signal':_0x452ed6['signal']});clearTimeout(_0x4d8e71);let _0x2949d9;const _0x517e2f=_0x2f5e69[_0x2ee8c3(0x8b)]['get'](_0x2ee8c3(0x9e));return _0x517e2f?.[_0x2ee8c3(0x9a)]('application/json')?_0x2949d9=await _0x2f5e69[_0x2ee8c3(0x9b)]():_0x2949d9=await _0x2f5e69['text'](),{'ok':_0x2f5e69['ok'],'status':_0x2f5e69[_0x2ee8c3(0x99)],'statusText':_0x2f5e69[_0x2ee8c3(0x8a)],'data':_0x2949d9,'headers':_0x2f5e69[_0x2ee8c3(0x8b)],'url':_0x2f5e69['url'],'text':()=>_0x2f5e69[_0x2ee8c3(0xa2)]()};}catch(_0x1199f8){_0x58040b=_0x1199f8 instanceof Error?_0x1199f8:new Error(String(_0x1199f8));if(_0x539e02===retries)break;if(shouldRetry(_0x1199f8)){console[_0x2ee8c3(0x97)](_0x2ee8c3(0x96)+(_0x539e02+0x1)+'\x20in\x20'+retryDelay+_0x2ee8c3(0x90)),await sleep(retryDelay);continue;}else break;}}throw _0x58040b||new Error(_0x2ee8c3(0x8d));}function shouldRetry(_0x464cfe){const _0x4ccc3c=a349_0x155f;if(_0x464cfe instanceof Error){if(_0x464cfe[_0x4ccc3c(0x88)]===_0x4ccc3c(0xa1))return![];if(_0x464cfe[_0x4ccc3c(0x88)]===_0x4ccc3c(0x98)&&_0x464cfe[_0x4ccc3c(0x89)][_0x4ccc3c(0x9a)](_0x4ccc3c(0x9c)))return!![];if(_0x464cfe[_0x4ccc3c(0x89)]['includes'](_0x4ccc3c(0x92)))return!![];if(_0x464cfe['message'][_0x4ccc3c(0x9a)]('ENOTFOUND'))return![];}return![];}function sleep(_0x4a793d){return new Promise(_0x1626ef=>setTimeout(_0x1626ef,_0x4a793d));}export function validateUrl(_0x38d9e4){try{return new URL(_0x38d9e4),!![];}catch{return![];}}
1
+ function a349_0xf3ac(){const _0x9e981f=['text','2376216lMpgLm','4yZAhWq','AbortError','3939368jOWOyJ','headers','signal','\x20in\x20','5540076KYxBVi','content-type','77xIKQCp','message','ENOTFOUND','*\x20Request\x20failed;\x20retry\x20','url','abort','4581920SpKBlk','542190dAnDzi','includes','6734656HJqSzW','name','fetch','application/json','5fNseoE','json','7RSBtpx','log','2407377flUgCH','ECONNRESET'];a349_0xf3ac=function(){return _0x9e981f;};return a349_0xf3ac();}function a349_0x3228(_0x3587f6,_0x5ccd5a){_0x3587f6=_0x3587f6-0x15e;const _0xf3ac88=a349_0xf3ac();let _0x3228a3=_0xf3ac88[_0x3587f6];return _0x3228a3;}(function(_0x397a6b,_0x692d1a){const _0x210417=a349_0x3228,_0x1ee85e=_0x397a6b();while(!![]){try{const _0x50fa93=-parseInt(_0x210417(0x16f))/0x1+parseInt(_0x210417(0x160))/0x2*(parseInt(_0x210417(0x179))/0x3)+-parseInt(_0x210417(0x162))/0x4*(-parseInt(_0x210417(0x175))/0x5)+parseInt(_0x210417(0x166))/0x6+parseInt(_0x210417(0x177))/0x7*(parseInt(_0x210417(0x171))/0x8)+parseInt(_0x210417(0x15f))/0x9+-parseInt(_0x210417(0x16e))/0xa*(parseInt(_0x210417(0x168))/0xb);if(_0x50fa93===_0x692d1a)break;else _0x1ee85e['push'](_0x1ee85e['shift']());}catch(_0x23c4ea){_0x1ee85e['push'](_0x1ee85e['shift']());}}}(a349_0xf3ac,0xd4434));export async function httpRequest(_0x1aab4d,_0x32d0ba={}){const _0x27ec08=a349_0x3228,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x32d0ba;let _0x1bb30f=null;for(let _0x351f90=0x0;_0x351f90<=retries;_0x351f90++){try{const _0x266550=new AbortController(),_0x3766d6=setTimeout(()=>_0x266550[_0x27ec08(0x16d)](),timeout),_0xbfe57c=await fetch(_0x1aab4d,{'headers':headers,'signal':_0x266550[_0x27ec08(0x164)]});clearTimeout(_0x3766d6);let _0x2bfd31;const _0x114679=_0xbfe57c[_0x27ec08(0x163)]['get'](_0x27ec08(0x167));return _0x114679?.[_0x27ec08(0x170)](_0x27ec08(0x174))?_0x2bfd31=await _0xbfe57c[_0x27ec08(0x176)]():_0x2bfd31=await _0xbfe57c[_0x27ec08(0x15e)](),{'ok':_0xbfe57c['ok'],'status':_0xbfe57c['status'],'statusText':_0xbfe57c['statusText'],'data':_0x2bfd31,'headers':_0xbfe57c[_0x27ec08(0x163)],'url':_0xbfe57c[_0x27ec08(0x16c)],'text':()=>_0xbfe57c[_0x27ec08(0x15e)]()};}catch(_0x48d79b){_0x1bb30f=_0x48d79b instanceof Error?_0x48d79b:new Error(String(_0x48d79b));if(_0x351f90===retries)break;if(shouldRetry(_0x48d79b)){console[_0x27ec08(0x178)](_0x27ec08(0x16b)+(_0x351f90+0x1)+_0x27ec08(0x165)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x1bb30f||new Error('Request\x20failed');}function shouldRetry(_0x587bea){const _0x48f917=a349_0x3228;if(_0x587bea instanceof Error){if(_0x587bea['name']===_0x48f917(0x161))return![];if(_0x587bea[_0x48f917(0x172)]==='TypeError'&&_0x587bea[_0x48f917(0x169)][_0x48f917(0x170)](_0x48f917(0x173)))return!![];if(_0x587bea[_0x48f917(0x169)][_0x48f917(0x170)](_0x48f917(0x17a)))return!![];if(_0x587bea[_0x48f917(0x169)][_0x48f917(0x170)](_0x48f917(0x16a)))return![];}return![];}function sleep(_0x5d56fa){return new Promise(_0x3d5c9b=>setTimeout(_0x3d5c9b,_0x5d56fa));}export function validateUrl(_0x388a8b){try{return new URL(_0x388a8b),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a350_0x4eaf(){const _0x4dba1a=['nonInteractive','setRawMode','7vkbOKS','119754LkXHWh','506748QMUxcn','1570986XCfrAY','418580CePJth','stdin','isRaw','801872hiITdQ','3130808lDKdvU','82SXCDLv','18159MUurWf','isTTY','true'];a350_0x4eaf=function(){return _0x4dba1a;};return a350_0x4eaf();}(function(_0x153c58,_0x14a3a6){const _0x7d2503=a350_0x3c27,_0x1dfdc5=_0x153c58();while(!![]){try{const _0x5142c3=parseInt(_0x7d2503(0x1d8))/0x1+parseInt(_0x7d2503(0x1d1))/0x2*(parseInt(_0x7d2503(0x1d2))/0x3)+-parseInt(_0x7d2503(0x1cf))/0x4+-parseInt(_0x7d2503(0x1cc))/0x5+-parseInt(_0x7d2503(0x1d9))/0x6+-parseInt(_0x7d2503(0x1d7))/0x7*(-parseInt(_0x7d2503(0x1d0))/0x8)+-parseInt(_0x7d2503(0x1cb))/0x9;if(_0x5142c3===_0x14a3a6)break;else _0x1dfdc5['push'](_0x1dfdc5['shift']());}catch(_0x3c56e3){_0x1dfdc5['push'](_0x1dfdc5['shift']());}}}(a350_0x4eaf,0x34c12));function env(_0x47086b){return process.env[`RABETBASE_${_0x47086b}`]||process.env[`LOVRABET_${_0x47086b}`]||undefined;}export function isNonInteractive(_0x1942e6){const _0x4a1ca5=a350_0x3c27;return!!(_0x1942e6[_0x4a1ca5(0x1d5)]||_0x1942e6['ci']||env('CI')==='true'||process.env.CI===_0x4a1ca5(0x1d4)||!process['stdout'][_0x4a1ca5(0x1d3)]||!isStdinRawModeSupported());}function a350_0x3c27(_0x265fc1,_0x485557){_0x265fc1=_0x265fc1-0x1cb;const _0x4eaf02=a350_0x4eaf();let _0x3c2751=_0x4eaf02[_0x265fc1];return _0x3c2751;}function isStdinRawModeSupported(){const _0x5911e1=a350_0x3c27;if(!process[_0x5911e1(0x1cd)][_0x5911e1(0x1d3)])return![];try{const _0x5eb688=process[_0x5911e1(0x1cd)][_0x5911e1(0x1ce)];return process['stdin'][_0x5911e1(0x1d6)](!![]),process['stdin'][_0x5911e1(0x1d6)](_0x5eb688??![]),!![];}catch{return![];}}
1
+ function a350_0xc161(_0x53aa3c,_0x3cd7c9){_0x53aa3c=_0x53aa3c-0xc8;const _0x413edd=a350_0x413e();let _0xc161b4=_0x413edd[_0x53aa3c];return _0xc161b4;}(function(_0x636a65,_0x5085c4){const _0x504d34=a350_0xc161,_0x207340=_0x636a65();while(!![]){try{const _0x34a50c=parseInt(_0x504d34(0xce))/0x1*(parseInt(_0x504d34(0xcc))/0x2)+-parseInt(_0x504d34(0xd2))/0x3*(-parseInt(_0x504d34(0xc9))/0x4)+parseInt(_0x504d34(0xcf))/0x5+-parseInt(_0x504d34(0xd1))/0x6+-parseInt(_0x504d34(0xcd))/0x7*(-parseInt(_0x504d34(0xd0))/0x8)+parseInt(_0x504d34(0xd3))/0x9+parseInt(_0x504d34(0xd5))/0xa*(-parseInt(_0x504d34(0xcb))/0xb);if(_0x34a50c===_0x5085c4)break;else _0x207340['push'](_0x207340['shift']());}catch(_0x645324){_0x207340['push'](_0x207340['shift']());}}}(a350_0x413e,0xa43c4));function env(_0xc394ac){return process.env[`RABETBASE_${_0xc394ac}`]||process.env[`LOVRABET_${_0xc394ac}`]||undefined;}export function isNonInteractive(_0x2fa1b3){const _0x496ed9=a350_0xc161;return!!(_0x2fa1b3['nonInteractive']||_0x2fa1b3['ci']||env('CI')===_0x496ed9(0xc8)||process.env.CI==='true'||!process['stdout'][_0x496ed9(0xca)]||!isStdinRawModeSupported());}function a350_0x413e(){const _0xfcfabc=['7193FEsVvV','968140TTqrGt','32qPoEal','3804684HJFkwX','228108tzEcqG','7126605dOquIk','stdin','5050130atvfEr','isRaw','setRawMode','true','20jmbAtZ','isTTY','22gzNsTi','118hnIONr','921914hqnszw'];a350_0x413e=function(){return _0xfcfabc;};return a350_0x413e();}function isStdinRawModeSupported(){const _0x555f6e=a350_0xc161;if(!process[_0x555f6e(0xd4)][_0x555f6e(0xca)])return![];try{const _0x23d097=process[_0x555f6e(0xd4)][_0x555f6e(0xd6)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x555f6e(0xd7)](_0x23d097??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a351_0x59a426=a351_0x550c;function a351_0x34a5(){const _0x20691f=['filter','2145290pbBwJw','41484OoAokf','dirname','green','3892kZaIZT','initWinstonLogger','5jPsSKu','utf8','807112wHevZu','setLogPath','parse','duration','File','details','errors','Failed:\x20','addColors','trim','450MSVyHe','transports','Completed:\x20','logTask','171783xFMIWb','4JajTZo','98725NvZdXM','clear','currentRawCommand','message','info','printf','readLogs','winstonLogger','writeFileSync','createLogger','logFilePath','existsSync','success','mkdirSync','Starting:\x20','.lovrabet.log','join','map','unknown','level','3rkopru','format','now','88HgDVMR','getWinstonInstance','warn','yellow','timestamp','error','385164DiFlJA','log','stringify'];a351_0x34a5=function(){return _0x20691f;};return a351_0x34a5();}(function(_0x338e46,_0x4b1ec8){const _0x1059b5=a351_0x550c,_0x72d011=_0x338e46();while(!![]){try{const _0x54f133=parseInt(_0x1059b5(0x1de))/0x1*(-parseInt(_0x1059b5(0x1cb))/0x2)+-parseInt(_0x1059b5(0x1ba))/0x3*(parseInt(_0x1059b5(0x1cf))/0x4)+-parseInt(_0x1059b5(0x1cd))/0x5*(-parseInt(_0x1059b5(0x1c8))/0x6)+parseInt(_0x1059b5(0x1c7))/0x7+parseInt(_0x1059b5(0x1bd))/0x8*(-parseInt(_0x1059b5(0x1dd))/0x9)+parseInt(_0x1059b5(0x1d9))/0xa*(parseInt(_0x1059b5(0x1df))/0xb)+-parseInt(_0x1059b5(0x1c3))/0xc;if(_0x54f133===_0x4b1ec8)break;else _0x72d011['push'](_0x72d011['shift']());}catch(_0x180571){_0x72d011['push'](_0x72d011['shift']());}}}(a351_0x34a5,0x40dab));function a351_0x550c(_0x29b23d,_0x30f361){_0x29b23d=_0x29b23d-0x1b6;const _0x34a5fa=a351_0x34a5();let _0x550c5f=_0x34a5fa[_0x29b23d];return _0x550c5f;}import a351_0x43c57b from'winston';import a351_0x3788b7 from'node:fs';import a351_0x168f7e from'node:path';class Logger{[a351_0x59a426(0x1e6)];[a351_0x59a426(0x1e9)];[a351_0x59a426(0x1e1)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x2037f2){this['currentRawCommand']=_0x2037f2;}[a351_0x59a426(0x1cc)](){const _0x2bbe4d=a351_0x59a426,_0xffa49b=a351_0x168f7e[_0x2bbe4d(0x1c9)](this[_0x2bbe4d(0x1e9)]);!a351_0x3788b7[_0x2bbe4d(0x1ea)](_0xffa49b)&&a351_0x3788b7[_0x2bbe4d(0x1ec)](_0xffa49b,{'recursive':!![]});const _0x654537=a351_0x43c57b['format']['combine'](a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1c1)](),a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1d5)]({'stack':!![]}),a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1e4)](_0x34c2c3=>{const _0x18d775=_0x2bbe4d,_0x19bb69={'timestamp':_0x34c2c3[_0x18d775(0x1c1)]||new Date()['toISOString'](),'level':_0x34c2c3[_0x18d775(0x1b9)]||_0x18d775(0x1e3),'command':_0x34c2c3['command']||_0x18d775(0x1b8),'rawCommand':_0x34c2c3['rawCommand']||this['currentRawCommand']||undefined,'message':_0x34c2c3[_0x18d775(0x1e2)]||'','duration':_0x34c2c3[_0x18d775(0x1d2)]||undefined,'details':_0x34c2c3[_0x18d775(0x1d4)]||undefined};return JSON[_0x18d775(0x1c5)](_0x19bb69);}));this['winstonLogger']=a351_0x43c57b[_0x2bbe4d(0x1e8)]({'level':_0x2bbe4d(0x1e3),'format':_0x654537,'transports':[new a351_0x43c57b[(_0x2bbe4d(0x1da))][(_0x2bbe4d(0x1d3))]({'filename':this[_0x2bbe4d(0x1e9)],'level':_0x2bbe4d(0x1e3)})],'silent':![]}),a351_0x43c57b[_0x2bbe4d(0x1d7)]({'success':_0x2bbe4d(0x1ca),'error':'red','warn':_0x2bbe4d(0x1c0),'info':'blue'});}[a351_0x59a426(0x1d0)](_0x33d4f8){const _0x30a3e1=a351_0x59a426;this[_0x30a3e1(0x1e9)]=a351_0x168f7e[_0x30a3e1(0x1b6)](_0x33d4f8,_0x30a3e1(0x1ee)),this[_0x30a3e1(0x1e6)]&&this['winstonLogger'][_0x30a3e1(0x1e0)](),this[_0x30a3e1(0x1cc)]();}['info'](_0x65d6b0,_0x28049b,_0x1e08b0){const _0x1c0144=a351_0x59a426;if(!this[_0x1c0144(0x1e9)]||!this[_0x1c0144(0x1e6)])return;this[_0x1c0144(0x1e6)][_0x1c0144(0x1e3)](_0x28049b,{'command':_0x65d6b0,'details':_0x1e08b0});}[a351_0x59a426(0x1eb)](_0x46a158,_0x1b2c48,_0x49eb6b,_0x5030b5){const _0x101884=a351_0x59a426;if(!this[_0x101884(0x1e9)]||!this[_0x101884(0x1e6)])return;this[_0x101884(0x1e6)][_0x101884(0x1c4)](_0x101884(0x1e3),_0x1b2c48,{'level':_0x101884(0x1eb),'command':_0x46a158,'duration':_0x49eb6b,'details':_0x5030b5});}[a351_0x59a426(0x1c2)](_0x4f7112,_0x44814c,_0x5ee6d2){const _0x3dcab5=a351_0x59a426;if(!this[_0x3dcab5(0x1e9)]||!this[_0x3dcab5(0x1e6)])return;this[_0x3dcab5(0x1e6)][_0x3dcab5(0x1c2)](_0x44814c,{'command':_0x4f7112,'details':_0x5ee6d2});}[a351_0x59a426(0x1bf)](_0x261669,_0x4864e0,_0x1a0efb){const _0x5c5f32=a351_0x59a426;if(!this[_0x5c5f32(0x1e9)]||!this[_0x5c5f32(0x1e6)])return;this[_0x5c5f32(0x1e6)]['warn'](_0x4864e0,{'command':_0x261669,'details':_0x1a0efb});}async[a351_0x59a426(0x1dc)](_0x1c76bd,_0x539b5d,_0x18bb12){const _0xed396e=a351_0x59a426,_0x3bd747=Date[_0xed396e(0x1bc)]();this[_0xed396e(0x1e3)](_0x1c76bd,_0xed396e(0x1ed)+_0x539b5d);try{const _0x3d4ab8=await _0x18bb12(),_0x44d73d=Date[_0xed396e(0x1bc)]()-_0x3bd747;return this['success'](_0x1c76bd,_0xed396e(0x1db)+_0x539b5d,_0x44d73d),_0x3d4ab8;}catch(_0x2b1656){const _0x2a413f=Date[_0xed396e(0x1bc)]()-_0x3bd747;this[_0xed396e(0x1c2)](_0x1c76bd,_0xed396e(0x1d6)+_0x539b5d,{'error':_0x2b1656 instanceof Error?_0x2b1656[_0xed396e(0x1e2)]:String(_0x2b1656),'duration':_0x2a413f});throw _0x2b1656;}}[a351_0x59a426(0x1e5)](){const _0x5ea779=a351_0x59a426;try{if(!a351_0x3788b7[_0x5ea779(0x1ea)](this[_0x5ea779(0x1e9)]))return[];const _0x5d13d6=a351_0x3788b7['readFileSync'](this[_0x5ea779(0x1e9)],_0x5ea779(0x1ce));return _0x5d13d6['split']('\x0a')[_0x5ea779(0x1c6)](_0x36f106=>_0x36f106[_0x5ea779(0x1d8)]())[_0x5ea779(0x1b7)](_0x43df46=>JSON[_0x5ea779(0x1d1)](_0x43df46));}catch(_0x5d05c0){return console[_0x5ea779(0x1bf)]('Failed\x20to\x20read\x20logs:',_0x5d05c0),[];}}['clearLogs'](){const _0x28db8d=a351_0x59a426;try{a351_0x3788b7[_0x28db8d(0x1ea)](this[_0x28db8d(0x1e9)])&&a351_0x3788b7[_0x28db8d(0x1e7)](this['logFilePath'],'',_0x28db8d(0x1ce));}catch(_0x5b2120){console[_0x28db8d(0x1bf)]('Failed\x20to\x20clear\x20logs:',_0x5b2120);}}[a351_0x59a426(0x1be)](){const _0x9b2230=a351_0x59a426;return this[_0x9b2230(0x1e6)];}}export const logger=new Logger();
1
+ const a351_0x3869a2=a351_0x237c;(function(_0x9409b6,_0x262964){const _0x1f865b=a351_0x237c,_0x51e29d=_0x9409b6();while(!![]){try{const _0x4fc06a=-parseInt(_0x1f865b(0x13c))/0x1*(-parseInt(_0x1f865b(0x121))/0x2)+parseInt(_0x1f865b(0x129))/0x3*(parseInt(_0x1f865b(0x145))/0x4)+parseInt(_0x1f865b(0x130))/0x5+-parseInt(_0x1f865b(0x135))/0x6+-parseInt(_0x1f865b(0x12c))/0x7+parseInt(_0x1f865b(0x13b))/0x8+parseInt(_0x1f865b(0x142))/0x9*(parseInt(_0x1f865b(0x11a))/0xa);if(_0x4fc06a===_0x262964)break;else _0x51e29d['push'](_0x51e29d['shift']());}catch(_0x193ed9){_0x51e29d['push'](_0x51e29d['shift']());}}}(a351_0x3ac3,0x81a32));import a351_0x48fd1c from'winston';import a351_0x52f2e8 from'node:fs';import a351_0x8e5dd from'node:path';class Logger{[a351_0x3869a2(0x128)];['logFilePath'];[a351_0x3869a2(0x12b)]='';constructor(){const _0x3de5c6=a351_0x3869a2;this[_0x3de5c6(0x11c)]='';}[a351_0x3869a2(0x138)](_0x46b685){const _0x59ee03=a351_0x3869a2;this[_0x59ee03(0x12b)]=_0x46b685;}[a351_0x3869a2(0x122)](){const _0x561084=a351_0x3869a2,_0x5f3a95=a351_0x8e5dd[_0x561084(0x12d)](this[_0x561084(0x11c)]);!a351_0x52f2e8[_0x561084(0x11f)](_0x5f3a95)&&a351_0x52f2e8[_0x561084(0x11e)](_0x5f3a95,{'recursive':!![]});const _0x2d03c2=a351_0x48fd1c[_0x561084(0x126)]['combine'](a351_0x48fd1c[_0x561084(0x126)][_0x561084(0x136)](),a351_0x48fd1c[_0x561084(0x126)]['errors']({'stack':!![]}),a351_0x48fd1c['format'][_0x561084(0x140)](_0x2762fb=>{const _0x2cb050=_0x561084,_0x4f76e5={'timestamp':_0x2762fb['timestamp']||new Date()[_0x2cb050(0x137)](),'level':_0x2762fb['level']||_0x2cb050(0x139),'command':_0x2762fb[_0x2cb050(0x147)]||_0x2cb050(0x131),'rawCommand':_0x2762fb[_0x2cb050(0x119)]||this[_0x2cb050(0x12b)]||undefined,'message':_0x2762fb[_0x2cb050(0x11d)]||'','duration':_0x2762fb['duration']||undefined,'details':_0x2762fb['details']||undefined};return JSON[_0x2cb050(0x120)](_0x4f76e5);}));this[_0x561084(0x128)]=a351_0x48fd1c[_0x561084(0x12a)]({'level':_0x561084(0x139),'format':_0x2d03c2,'transports':[new a351_0x48fd1c[(_0x561084(0x133))][(_0x561084(0x146))]({'filename':this[_0x561084(0x11c)],'level':_0x561084(0x139)})],'silent':![]}),a351_0x48fd1c[_0x561084(0x14e)]({'success':'green','error':_0x561084(0x12f),'warn':_0x561084(0x14a),'info':_0x561084(0x12e)});}['setLogPath'](_0x3cc391){const _0x51853d=a351_0x3869a2;this[_0x51853d(0x11c)]=a351_0x8e5dd[_0x51853d(0x134)](_0x3cc391,_0x51853d(0x149)),this['winstonLogger']&&this[_0x51853d(0x128)][_0x51853d(0x132)](),this[_0x51853d(0x122)]();}[a351_0x3869a2(0x139)](_0x4e877a,_0xaeb15c,_0x7e7c97){const _0x4fcdf1=a351_0x3869a2;if(!this[_0x4fcdf1(0x11c)]||!this[_0x4fcdf1(0x128)])return;this[_0x4fcdf1(0x128)][_0x4fcdf1(0x139)](_0xaeb15c,{'command':_0x4e877a,'details':_0x7e7c97});}[a351_0x3869a2(0x144)](_0x3094cb,_0x554ad3,_0x61c898,_0xf9db86){const _0x9bef15=a351_0x3869a2;if(!this[_0x9bef15(0x11c)]||!this[_0x9bef15(0x128)])return;this[_0x9bef15(0x128)][_0x9bef15(0x14d)](_0x9bef15(0x139),_0x554ad3,{'level':_0x9bef15(0x144),'command':_0x3094cb,'duration':_0x61c898,'details':_0xf9db86});}['error'](_0x5320b0,_0x326e1d,_0x196a35){const _0x476872=a351_0x3869a2;if(!this[_0x476872(0x11c)]||!this[_0x476872(0x128)])return;this['winstonLogger'][_0x476872(0x118)](_0x326e1d,{'command':_0x5320b0,'details':_0x196a35});}['warn'](_0x4e9fde,_0x2b1165,_0x32fd18){const _0x5a4c47=a351_0x3869a2;if(!this[_0x5a4c47(0x11c)]||!this[_0x5a4c47(0x128)])return;this[_0x5a4c47(0x128)][_0x5a4c47(0x14c)](_0x2b1165,{'command':_0x4e9fde,'details':_0x32fd18});}async[a351_0x3869a2(0x123)](_0x3b7d50,_0x341db1,_0x3e90b5){const _0x26f225=a351_0x3869a2,_0x2a6a14=Date[_0x26f225(0x125)]();this[_0x26f225(0x139)](_0x3b7d50,_0x26f225(0x124)+_0x341db1);try{const _0x2257ea=await _0x3e90b5(),_0x336fe5=Date[_0x26f225(0x125)]()-_0x2a6a14;return this[_0x26f225(0x144)](_0x3b7d50,'Completed:\x20'+_0x341db1,_0x336fe5),_0x2257ea;}catch(_0x31eebd){const _0x5b48f9=Date[_0x26f225(0x125)]()-_0x2a6a14;this[_0x26f225(0x118)](_0x3b7d50,_0x26f225(0x13a)+_0x341db1,{'error':_0x31eebd instanceof Error?_0x31eebd[_0x26f225(0x11d)]:String(_0x31eebd),'duration':_0x5b48f9});throw _0x31eebd;}}['readLogs'](){const _0x2b26f3=a351_0x3869a2;try{if(!a351_0x52f2e8['existsSync'](this[_0x2b26f3(0x11c)]))return[];const _0x2d9228=a351_0x52f2e8[_0x2b26f3(0x11b)](this['logFilePath'],_0x2b26f3(0x148));return _0x2d9228[_0x2b26f3(0x13f)]('\x0a')[_0x2b26f3(0x14b)](_0x5ef4b8=>_0x5ef4b8['trim']())['map'](_0x39f9ee=>JSON[_0x2b26f3(0x143)](_0x39f9ee));}catch(_0x42758e){return console['warn'](_0x2b26f3(0x127),_0x42758e),[];}}[a351_0x3869a2(0x13d)](){const _0x4b4551=a351_0x3869a2;try{a351_0x52f2e8[_0x4b4551(0x11f)](this[_0x4b4551(0x11c)])&&a351_0x52f2e8[_0x4b4551(0x141)](this[_0x4b4551(0x11c)],'','utf8');}catch(_0x145c5f){console[_0x4b4551(0x14c)]('Failed\x20to\x20clear\x20logs:',_0x145c5f);}}[a351_0x3869a2(0x13e)](){const _0x4de228=a351_0x3869a2;return this[_0x4de228(0x128)];}}function a351_0x237c(_0x436d28,_0x199a8a){_0x436d28=_0x436d28-0x118;const _0x3ac35c=a351_0x3ac3();let _0x237ce7=_0x3ac35c[_0x436d28];return _0x237ce7;}function a351_0x3ac3(){const _0x3611f8=['toISOString','setRawCommand','info','Failed:\x20','2319984OnMMBw','8367siCgaI','clearLogs','getWinstonInstance','split','printf','writeFileSync','1737KcPAhz','parse','success','5484qDQAKA','File','command','utf8','.lovrabet.log','yellow','filter','warn','log','addColors','error','rawCommand','14150RuzrZz','readFileSync','logFilePath','message','mkdirSync','existsSync','stringify','36VlXJIH','initWinstonLogger','logTask','Starting:\x20','now','format','Failed\x20to\x20read\x20logs:','winstonLogger','2283FuQPFO','createLogger','currentRawCommand','6401703WVhPER','dirname','blue','red','1421040pCBSvg','unknown','clear','transports','join','3574290ZDXAtw','timestamp'];a351_0x3ac3=function(){return _0x3611f8;};return a351_0x3ac3();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3c8fce,_0x5ab9ce){const _0x2bcfb6=a352_0x113b,_0xdb0c71=_0x3c8fce();while(!![]){try{const _0x295cd9=-parseInt(_0x2bcfb6(0x6f))/0x1+-parseInt(_0x2bcfb6(0x72))/0x2+parseInt(_0x2bcfb6(0x7b))/0x3*(-parseInt(_0x2bcfb6(0x7a))/0x4)+-parseInt(_0x2bcfb6(0x70))/0x5*(parseInt(_0x2bcfb6(0x78))/0x6)+parseInt(_0x2bcfb6(0x79))/0x7+-parseInt(_0x2bcfb6(0x71))/0x8+parseInt(_0x2bcfb6(0x76))/0x9;if(_0x295cd9===_0x5ab9ce)break;else _0xdb0c71['push'](_0xdb0c71['shift']());}catch(_0x1f1da6){_0xdb0c71['push'](_0xdb0c71['shift']());}}}(a352_0x342f,0xe78c1));function a352_0x113b(_0x583474,_0x3339b2){_0x583474=_0x583474-0x6d;const _0x342f8c=a352_0x342f();let _0x113be6=_0x342f8c[_0x583474];return _0x113be6;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1b40a1){const _0x1d4b7a=a352_0x113b;if(!_0x1b40a1)return undefined;let _0x5cb55e;try{_0x5cb55e=JSON[_0x1d4b7a(0x6d)](_0x1b40a1);}catch{throw CliErrors['validation'](_0x1d4b7a(0x73)+_0x1b40a1);}if(!_0x5cb55e||typeof _0x5cb55e!=='object'||Array[_0x1d4b7a(0x6e)](_0x5cb55e))throw CliErrors[_0x1d4b7a(0x75)](_0x1d4b7a(0x77),_0x1d4b7a(0x74));return _0x5cb55e;}function a352_0x342f(){const _0x59d941=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','26445069cfCzsP','--params\x20must\x20be\x20a\x20JSON\x20object','1812kOfdUH','10421222QgeNnm','495364allOIH','21TmjCPY','parse','isArray','62544qjjcAW','16240WxPIiW','6387680rqLsso','1539766HGzRvO','Invalid\x20JSON\x20for\x20--params:\x20'];a352_0x342f=function(){return _0x59d941;};return a352_0x342f();}
1
+ (function(_0xadd075,_0x42adae){const _0x290dd2=a352_0x58a1,_0x1b4b22=_0xadd075();while(!![]){try{const _0x463dc1=-parseInt(_0x290dd2(0x122))/0x1*(parseInt(_0x290dd2(0x127))/0x2)+-parseInt(_0x290dd2(0x129))/0x3*(-parseInt(_0x290dd2(0x126))/0x4)+-parseInt(_0x290dd2(0x12d))/0x5+parseInt(_0x290dd2(0x12b))/0x6+parseInt(_0x290dd2(0x125))/0x7+parseInt(_0x290dd2(0x130))/0x8+-parseInt(_0x290dd2(0x12c))/0x9*(-parseInt(_0x290dd2(0x128))/0xa);if(_0x463dc1===_0x42adae)break;else _0x1b4b22['push'](_0x1b4b22['shift']());}catch(_0xa5b3c9){_0x1b4b22['push'](_0x1b4b22['shift']());}}}(a352_0x25a1,0xb204f));function a352_0x25a1(){const _0x24a690=['object','validation','4378000gFFQew','23255zvfMNP','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3120152onVbIv','37932HjayLv','86detvKw','50joKOtp','189weXChT','isArray','6373632BPZVwg','384687tbjKEo','5686350OFfwip'];a352_0x25a1=function(){return _0x24a690;};return a352_0x25a1();}function a352_0x58a1(_0x364830,_0x46255e){_0x364830=_0x364830-0x122;const _0x25a11c=a352_0x25a1();let _0x58a100=_0x25a11c[_0x364830];return _0x58a100;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x532008){const _0x1ef811=a352_0x58a1;if(!_0x532008)return undefined;let _0x5ae776;try{_0x5ae776=JSON['parse'](_0x532008);}catch{throw CliErrors[_0x1ef811(0x12f)](_0x1ef811(0x123)+_0x532008);}if(!_0x5ae776||typeof _0x5ae776!==_0x1ef811(0x12e)||Array[_0x1ef811(0x12a)](_0x5ae776))throw CliErrors[_0x1ef811(0x12f)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x1ef811(0x124));return _0x5ae776;}
@@ -1 +1 @@
1
- function a353_0x1907(_0x5c8792,_0x13d76b){_0x5c8792=_0x5c8792-0x115;const _0x4d3aed=a353_0x4d3a();let _0x1907a2=_0x4d3aed[_0x5c8792];return _0x1907a2;}const a353_0x44f7dd=a353_0x1907;function a353_0x4d3a(){const _0x3e40cc=['1947155NhsTtK','10xZCbYn','9ZlCsjZ','5737670FfsRMa','win32','1602606TICTmM','323055oCZYQM','32330ZRxfJT','1168yLVQyi','1358848KpXsUt','957pRXjsU','platform'];a353_0x4d3a=function(){return _0x3e40cc;};return a353_0x4d3a();}(function(_0x1cf11a,_0xbe0eea){const _0x4da66a=a353_0x1907,_0x32100a=_0x1cf11a();while(!![]){try{const _0x5ca3f8=parseInt(_0x4da66a(0x11a))/0x1*(-parseInt(_0x4da66a(0x120))/0x2)+-parseInt(_0x4da66a(0x117))/0x3*(-parseInt(_0x4da66a(0x115))/0x4)+parseInt(_0x4da66a(0x11f))/0x5+-parseInt(_0x4da66a(0x11e))/0x6+-parseInt(_0x4da66a(0x119))/0x7+parseInt(_0x4da66a(0x116))/0x8+parseInt(_0x4da66a(0x11b))/0x9*(parseInt(_0x4da66a(0x11c))/0xa);if(_0x5ca3f8===_0xbe0eea)break;else _0x32100a['push'](_0x32100a['shift']());}catch(_0x51c620){_0x32100a['push'](_0x32100a['shift']());}}}(a353_0x4d3a,0x2f7a2));export const isWindows=process[a353_0x44f7dd(0x118)]===a353_0x44f7dd(0x11d);export function resolveNpmBin(_0x51439f){return isWindows?_0x51439f+'.cmd':_0x51439f;}
1
+ function a353_0x1932(_0x668aa8,_0xa44f9a){_0x668aa8=_0x668aa8-0x1da;const _0x5905e8=a353_0x5905();let _0x193209=_0x5905e8[_0x668aa8];return _0x193209;}const a353_0x1698cd=a353_0x1932;(function(_0x3be685,_0x2d7764){const _0x2bf08a=a353_0x1932,_0x34e037=_0x3be685();while(!![]){try{const _0x509a52=-parseInt(_0x2bf08a(0x1e1))/0x1*(parseInt(_0x2bf08a(0x1db))/0x2)+-parseInt(_0x2bf08a(0x1e7))/0x3*(parseInt(_0x2bf08a(0x1e6))/0x4)+parseInt(_0x2bf08a(0x1e2))/0x5*(parseInt(_0x2bf08a(0x1e4))/0x6)+-parseInt(_0x2bf08a(0x1dd))/0x7*(-parseInt(_0x2bf08a(0x1e5))/0x8)+parseInt(_0x2bf08a(0x1e3))/0x9*(parseInt(_0x2bf08a(0x1df))/0xa)+-parseInt(_0x2bf08a(0x1e0))/0xb+-parseInt(_0x2bf08a(0x1de))/0xc;if(_0x509a52===_0x2d7764)break;else _0x34e037['push'](_0x34e037['shift']());}catch(_0x340bb7){_0x34e037['push'](_0x34e037['shift']());}}}(a353_0x5905,0x70025));function a353_0x5905(){const _0x3cc92a=['32530LBRxId','1725185tafvcL','1zzAcfW','83465JAAiLU','2133vuQzlC','174xhVgOh','176Xzwyyv','4mmJshE','2669007pZySrq','.cmd','783114CVDqnI','win32','238672IMOoNg','1299840vtoelp'];a353_0x5905=function(){return _0x3cc92a;};return a353_0x5905();}export const isWindows=process['platform']===a353_0x1698cd(0x1dc);export function resolveNpmBin(_0xd08f6a){const _0x4e7cb8=a353_0x1698cd;return isWindows?_0xd08f6a+_0x4e7cb8(0x1da):_0xd08f6a;}
@@ -1 +1 @@
1
- export function sleep(_0x4d2fc6){return new Promise(_0x2484a6=>setTimeout(_0x2484a6,_0x4d2fc6));}
1
+ export function sleep(_0x52083b){return new Promise(_0x144288=>setTimeout(_0x144288,_0x52083b));}
@@ -1 +1 @@
1
- function a355_0x1a42(){const _0x2cdee7=['extname','processTemplate','6nDORrO','now','.tpl','\x0a\x20\x20\x20\x20{\x20','1013392DUjcIy','split','map','getHours','utf8','pad','default','sdk-config','datasetCode','1cQwCUt','tableName','.ts','processDirectory','info','getSeconds','isDirectory','getDate','join','includes','\x20},','Template\x20content\x20replacement\x20completed','processFile','push','toISOString','3100zYalCh','getMinutes','promises','927526wzqgnv','copyFile','toComponentName','7DviKqt','.json','13IxDXLq','success','7972644SCXVDD','.css','toUpperCase','YourModel','17413AgqOKB','Template\x20content\x20replacement\x20failed','endsWith','2855151QMkirc','error','padStart','readFile','.tsx','mkdir','replaceApiContent','template','LOVRABET','formatLocalTimestamp','name:\x20\x22','slice','352915ALhNiZ','name','toDisplayTitle','getMonth','12nYPUUy','pop','replace','writeFile','getFullYear','81856CUvzEy','datasetCode:\x20\x22','toLowerCase'];a355_0x1a42=function(){return _0x2cdee7;};return a355_0x1a42();}const a355_0x41370f=a355_0x2b26;(function(_0x5465d4,_0x462301){const _0x492ed8=a355_0x2b26,_0x29abef=_0x5465d4();while(!![]){try{const _0x2e10c0=parseInt(_0x492ed8(0x1ae))/0x1*(parseInt(_0x492ed8(0x1c0))/0x2)+parseInt(_0x492ed8(0x1a1))/0x3*(parseInt(_0x492ed8(0x1a5))/0x4)+parseInt(_0x492ed8(0x1da))/0x5*(parseInt(_0x492ed8(0x197))/0x6)+parseInt(_0x492ed8(0x1c3))/0x7*(parseInt(_0x492ed8(0x19c))/0x8)+parseInt(_0x492ed8(0x1ce))/0x9+parseInt(_0x492ed8(0x1bd))/0xa*(-parseInt(_0x492ed8(0x1cb))/0xb)+-parseInt(_0x492ed8(0x1c7))/0xc*(parseInt(_0x492ed8(0x1c5))/0xd);if(_0x2e10c0===_0x462301)break;else _0x29abef['push'](_0x29abef['shift']());}catch(_0x159708){_0x29abef['push'](_0x29abef['shift']());}}}(a355_0x1a42,0x4554b));import a355_0x4a4571 from'node:fs';import a355_0x1e2411 from'node:path';function a355_0x2b26(_0x32d429,_0x162f5c){_0x32d429=_0x32d429-0x195;const _0x1a4255=a355_0x1a42();let _0x2b268a=_0x1a4255[_0x32d429];return _0x2b268a;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a355_0x41370f(0x1aa)](_0x24d28e){const _0x113b28=a355_0x41370f;return String(_0x24d28e)[_0x113b28(0x1d0)](0x2,'0');}static[a355_0x41370f(0x1d7)](_0x514af8){const _0x591a17=a355_0x41370f,_0x543d4b=_0x514af8[_0x591a17(0x19b)](),_0x4221ac=this[_0x591a17(0x1aa)](_0x514af8[_0x591a17(0x196)]()+0x1),_0x448be0=this['pad'](_0x514af8[_0x591a17(0x1b5)]()),_0xd691a5=this[_0x591a17(0x1aa)](_0x514af8[_0x591a17(0x1a8)]()),_0x1ba86a=this[_0x591a17(0x1aa)](_0x514af8[_0x591a17(0x1be)]()),_0x3e25ee=this[_0x591a17(0x1aa)](_0x514af8[_0x591a17(0x1b3)]());return{'createdAt':_0x543d4b+'-'+_0x4221ac+'-'+_0x448be0+'\x20'+_0xd691a5+':'+_0x1ba86a+':'+_0x3e25ee,'createdDate':_0x543d4b+'-'+_0x4221ac+'-'+_0x448be0,'createdTime':_0xd691a5+':'+_0x1ba86a+':'+_0x3e25ee};}static[a355_0x41370f(0x1c2)](_0x3d6c30){const _0x864349=a355_0x41370f,_0x15d330=_0x3d6c30['split']('/')[_0x864349(0x198)]()||_0x3d6c30;return _0x15d330[_0x864349(0x1a6)]('-')[_0x864349(0x1a7)](_0x3280c9=>_0x3280c9['charAt'](0x0)['toUpperCase']()+_0x3280c9[_0x864349(0x1d9)](0x1)[_0x864349(0x19e)]())['join']('');}static[a355_0x41370f(0x195)](_0x9c22c5){const _0x34b861=a355_0x41370f,_0x5c3941=_0x9c22c5['split']('/')[_0x34b861(0x198)]()||_0x9c22c5;return _0x5c3941[_0x34b861(0x1a6)]('-')[_0x34b861(0x1a7)](_0x10ba2a=>_0x10ba2a['charAt'](0x0)[_0x34b861(0x1c9)]()+_0x10ba2a[_0x34b861(0x1d9)](0x1)[_0x34b861(0x19e)]())[_0x34b861(0x1b6)]('\x20');}static['replaceContent'](_0x6b41a9,_0x5c5aa7,_0x35124a){const _0x1975fb=a355_0x41370f,_0x2213ff=this[_0x1975fb(0x1c2)](_0x5c5aa7),_0x50b7ab=this[_0x1975fb(0x195)](_0x5c5aa7),{createdAt:_0x92ca84,createdDate:_0x12cad1,createdTime:_0x6bad15}=this[_0x1975fb(0x1d7)](new Date());let _0x5cd072=_0x6b41a9['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x1975fb(0x199)](/\{ComponentName\}/g,_0x2213ff)[_0x1975fb(0x199)](/\{DisplayTitle\}/g,_0x50b7ab)[_0x1975fb(0x199)](/\{PageName\}/g,_0x5c5aa7)[_0x1975fb(0x199)](/\{TemplateName\}/g,_0x35124a)['replace'](/\{CreatedAt\}/g,_0x92ca84)[_0x1975fb(0x199)](/\{CreatedDate\}/g,_0x12cad1)[_0x1975fb(0x199)](/\{CreatedTime\}/g,_0x6bad15);return _0x5cd072;}static[a355_0x41370f(0x1d4)](_0x1167b9,_0x5094d6,_0x30bb0e,_0x2bac21,_0x581831,_0x74c7d1,_0x383890,_0x42417a,_0x26f32c){const _0x511d2c=a355_0x41370f,_0x20e2f7=new Date(),_0x45bf4b=_0x20e2f7[_0x511d2c(0x1bc)](),_0x565fbc=_0x30bb0e[_0x511d2c(0x1a7)](_0x1cd3ed=>{const _0x20889c=_0x511d2c,_0x51f5c6=[_0x20889c(0x19d)+_0x1cd3ed[_0x20889c(0x1ad)]+'\x22','tableName:\x20\x22'+_0x1cd3ed[_0x20889c(0x1af)]+'\x22',_0x20889c(0x1d8)+_0x1cd3ed['name']+'\x22'];return _0x1cd3ed['alias']&&_0x51f5c6[_0x20889c(0x1bb)]('alias:\x20\x22'+_0x1cd3ed['alias']+'\x22'),_0x20889c(0x1a4)+_0x51f5c6[_0x20889c(0x1b6)](',\x20')+_0x20889c(0x1b8);})[_0x511d2c(0x1b6)](''),_0xab5078=_0x2bac21||_0x30bb0e[0x0]?.['alias']||_0x511d2c(0x1ca);let _0x33772a=_0x1167b9[_0x511d2c(0x199)](/\{AppCode\}/g,_0x5094d6)[_0x511d2c(0x199)](/\{ModelConfigs\}/g,_0x565fbc)[_0x511d2c(0x199)](/\{ExampleModelName\}/g,_0xab5078)[_0x511d2c(0x199)](/\{ApiFileName\}/g,_0x581831||'api')[_0x511d2c(0x199)](/\{ConfigName\}/g,_0x74c7d1||_0x511d2c(0x1ab))[_0x511d2c(0x199)](/\{ClientConfigParam\}/g,_0x383890||'')[_0x511d2c(0x199)](/\{SdkConfigFileName\}/g,_0x26f32c||_0x511d2c(0x1ac))[_0x511d2c(0x199)](/\{VarPrefix\}/g,_0x42417a||_0x511d2c(0x1d6))[_0x511d2c(0x199)](/\{CreatedAt\}/g,_0x45bf4b);return _0x33772a;}static async[a355_0x41370f(0x1a0)](_0x5ce264,_0x38a6a2,_0x507124,_0x40803f,_0xa6e955=!![]){const _0x2443fc=a355_0x41370f,_0x276523=Date['now']();try{_0xa6e955&&logger[_0x2443fc(0x1b2)](_0x2443fc(0x1d5),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x5ce264,'targetPath':_0x38a6a2,'pageName':_0x507124,'templateName':_0x40803f});await a355_0x4a4571[_0x2443fc(0x1bf)][_0x2443fc(0x1d3)](_0x38a6a2,{'recursive':!![]}),await this[_0x2443fc(0x1b1)](_0x5ce264,_0x38a6a2,_0x507124,_0x40803f);if(_0xa6e955){const _0x3f7714=Date[_0x2443fc(0x1a2)]()-_0x276523;logger[_0x2443fc(0x1c6)](_0x2443fc(0x1d5),_0x2443fc(0x1b9),_0x3f7714,{'pageName':_0x507124,'templateName':_0x40803f});}}catch(_0x1f4904){if(_0xa6e955){const _0x4d0379=Date[_0x2443fc(0x1a2)]()-_0x276523;logger[_0x2443fc(0x1cf)](_0x2443fc(0x1d5),_0x2443fc(0x1cc),{'templatePath':_0x5ce264,'targetPath':_0x38a6a2,'pageName':_0x507124,'templateName':_0x40803f,'error':_0x1f4904 instanceof Error?_0x1f4904['message']:String(_0x1f4904),'duration':_0x4d0379});}throw _0x1f4904;}}static async[a355_0x41370f(0x1b1)](_0x51a5f0,_0x24aa92,_0x4fdae6,_0x45d574){const _0x5d9d18=a355_0x41370f,_0x30a581=await a355_0x4a4571[_0x5d9d18(0x1bf)]['readdir'](_0x51a5f0,{'withFileTypes':!![]});for(const _0x544890 of _0x30a581){const _0x370283=a355_0x1e2411[_0x5d9d18(0x1b6)](_0x51a5f0,_0x544890[_0x5d9d18(0x1db)]);let _0x190b29=a355_0x1e2411[_0x5d9d18(0x1b6)](_0x24aa92,_0x544890[_0x5d9d18(0x1db)]);_0x544890[_0x5d9d18(0x1db)][_0x5d9d18(0x1cd)](_0x5d9d18(0x1a3))&&(_0x190b29=a355_0x1e2411[_0x5d9d18(0x1b6)](_0x24aa92,_0x544890[_0x5d9d18(0x1db)][_0x5d9d18(0x199)](/\.tpl$/,'')));if(_0x544890[_0x5d9d18(0x1b4)]())await a355_0x4a4571[_0x5d9d18(0x1bf)][_0x5d9d18(0x1d3)](_0x190b29,{'recursive':!![]}),await this[_0x5d9d18(0x1b1)](_0x370283,_0x190b29,_0x4fdae6,_0x45d574);else _0x544890['isFile']()&&await this[_0x5d9d18(0x1ba)](_0x370283,_0x190b29,_0x4fdae6,_0x45d574);}}static async['processFile'](_0x379c9b,_0x2e16e0,_0x2ee9e3,_0x2ab2fc){const _0x5e4e41=a355_0x41370f,_0x2bbe3f=a355_0x1e2411[_0x5e4e41(0x19f)](_0x379c9b)[_0x5e4e41(0x19e)]();_0x379c9b[_0x5e4e41(0x1cd)](_0x5e4e41(0x1a3))&&(_0x2e16e0=_0x2e16e0[_0x5e4e41(0x199)](/\.tpl$/,''));const _0x1bbfd3=[_0x5e4e41(0x1d2),_0x5e4e41(0x1b0),'.jsx','.js',_0x5e4e41(0x1c4),'.md',_0x5e4e41(0x1c8),'.scss',_0x5e4e41(0x1a3)];if(_0x1bbfd3[_0x5e4e41(0x1b7)](_0x2bbe3f)||_0x379c9b[_0x5e4e41(0x1cd)](_0x5e4e41(0x1a3))){const _0x50ce45=await a355_0x4a4571['promises'][_0x5e4e41(0x1d1)](_0x379c9b,_0x5e4e41(0x1a9)),_0x490a87=this['replaceContent'](_0x50ce45,_0x2ee9e3,_0x2ab2fc);await a355_0x4a4571[_0x5e4e41(0x1bf)][_0x5e4e41(0x19a)](_0x2e16e0,_0x490a87,_0x5e4e41(0x1a9));}else await a355_0x4a4571[_0x5e4e41(0x1bf)][_0x5e4e41(0x1c1)](_0x379c9b,_0x2e16e0);}}
1
+ const a355_0x36e714=a355_0x7b75;(function(_0x453706,_0x2b25b4){const _0xb45127=a355_0x7b75,_0x36e904=_0x453706();while(!![]){try{const _0x215611=-parseInt(_0xb45127(0x1c6))/0x1*(-parseInt(_0xb45127(0x1c2))/0x2)+-parseInt(_0xb45127(0x1b2))/0x3*(parseInt(_0xb45127(0x1b8))/0x4)+-parseInt(_0xb45127(0x1b4))/0x5+-parseInt(_0xb45127(0x1ca))/0x6*(parseInt(_0xb45127(0x1ed))/0x7)+parseInt(_0xb45127(0x1d0))/0x8*(-parseInt(_0xb45127(0x1e9))/0x9)+-parseInt(_0xb45127(0x1f1))/0xa+parseInt(_0xb45127(0x1e7))/0xb;if(_0x215611===_0x2b25b4)break;else _0x36e904['push'](_0x36e904['shift']());}catch(_0x82cac5){_0x36e904['push'](_0x36e904['shift']());}}}(a355_0x2c94,0x5deaf));import a355_0x54567c from'node:fs';import a355_0xc2688 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a355_0x2c94(){const _0x30d54e=['template','map','.js','getSeconds','isFile','.tpl','3458aBvAsv','toUpperCase','name:\x20\x22','join','66ExmLcM','default','Template\x20content\x20replacement\x20completed','slice','1986qIEZiJ','message','alias:\x20\x22','toDisplayTitle','readdir','.ts','336YCJZqF','pop','Template\x20content\x20replacement\x20failed','split','.jsx','toComponentName','api','toLowerCase','extname','charAt','name','.css','getDate','\x0a\x20\x20\x20\x20{\x20','.tsx','mkdir','replaceApiContent','readFile','processDirectory','tableName','replaceContent','copyFile','info','29804808lHAOXd','endsWith','106569bgjKuJ','formatLocalTimestamp','pad','now','13559pybBUb','getMinutes','getHours','promises','3358680LpzeMw','alias','error','toISOString','processFile','writeFile','23943CUUhej','includes','3186985jzrTUZ','replace','push','isDirectory','164RAZYWN','success','datasetCode','sdk-config'];a355_0x2c94=function(){return _0x30d54e;};return a355_0x2c94();}const CLI_VERSION=getCliVersion();function a355_0x7b75(_0x591f01,_0xef49b0){_0x591f01=_0x591f01-0x1b2;const _0x2c9487=a355_0x2c94();let _0x7b7530=_0x2c9487[_0x591f01];return _0x7b7530;}export class TemplateReplacer{static[a355_0x36e714(0x1eb)](_0x1260b8){return String(_0x1260b8)['padStart'](0x2,'0');}static[a355_0x36e714(0x1ea)](_0x5c26ef){const _0x561846=a355_0x36e714,_0x3060ca=_0x5c26ef['getFullYear'](),_0x8612e=this[_0x561846(0x1eb)](_0x5c26ef['getMonth']()+0x1),_0xf926ee=this[_0x561846(0x1eb)](_0x5c26ef[_0x561846(0x1dc)]()),_0x5b2e03=this[_0x561846(0x1eb)](_0x5c26ef[_0x561846(0x1ef)]()),_0x3aa030=this[_0x561846(0x1eb)](_0x5c26ef[_0x561846(0x1ee)]()),_0x5bf360=this['pad'](_0x5c26ef[_0x561846(0x1bf)]());return{'createdAt':_0x3060ca+'-'+_0x8612e+'-'+_0xf926ee+'\x20'+_0x5b2e03+':'+_0x3aa030+':'+_0x5bf360,'createdDate':_0x3060ca+'-'+_0x8612e+'-'+_0xf926ee,'createdTime':_0x5b2e03+':'+_0x3aa030+':'+_0x5bf360};}static['toComponentName'](_0x50f7bd){const _0x14f078=a355_0x36e714,_0x78703b=_0x50f7bd[_0x14f078(0x1d3)]('/')[_0x14f078(0x1d1)]()||_0x50f7bd;return _0x78703b['split']('-')['map'](_0x45bd84=>_0x45bd84[_0x14f078(0x1d9)](0x0)[_0x14f078(0x1c3)]()+_0x45bd84['slice'](0x1)[_0x14f078(0x1d7)]())[_0x14f078(0x1c5)]('');}static['toDisplayTitle'](_0x385b93){const _0x1bd5d0=a355_0x36e714,_0x4a9e6a=_0x385b93['split']('/')[_0x1bd5d0(0x1d1)]()||_0x385b93;return _0x4a9e6a['split']('-')[_0x1bd5d0(0x1bd)](_0x127d69=>_0x127d69[_0x1bd5d0(0x1d9)](0x0)['toUpperCase']()+_0x127d69[_0x1bd5d0(0x1c9)](0x1)[_0x1bd5d0(0x1d7)]())[_0x1bd5d0(0x1c5)]('\x20');}static['replaceContent'](_0x461444,_0x1e4a00,_0x483511){const _0x5ac919=a355_0x36e714,_0x135937=this[_0x5ac919(0x1d5)](_0x1e4a00),_0x12c253=this[_0x5ac919(0x1cd)](_0x1e4a00),{createdAt:_0x175006,createdDate:_0x48d8b9,createdTime:_0x378b49}=this[_0x5ac919(0x1ea)](new Date());let _0x38c30a=_0x461444[_0x5ac919(0x1b5)](/\{CliVersion\}/g,CLI_VERSION)[_0x5ac919(0x1b5)](/\{ComponentName\}/g,_0x135937)[_0x5ac919(0x1b5)](/\{DisplayTitle\}/g,_0x12c253)[_0x5ac919(0x1b5)](/\{PageName\}/g,_0x1e4a00)['replace'](/\{TemplateName\}/g,_0x483511)[_0x5ac919(0x1b5)](/\{CreatedAt\}/g,_0x175006)[_0x5ac919(0x1b5)](/\{CreatedDate\}/g,_0x48d8b9)[_0x5ac919(0x1b5)](/\{CreatedTime\}/g,_0x378b49);return _0x38c30a;}static[a355_0x36e714(0x1e0)](_0x4e62e4,_0x2d53e5,_0x172028,_0x21ab1a,_0xf7bc31,_0x11817d,_0xc68860,_0x109605,_0x28c41e){const _0x355f0c=a355_0x36e714,_0x1873e6=new Date(),_0x5c07a4=_0x1873e6[_0x355f0c(0x1f4)](),_0x154641=_0x172028['map'](_0x377d8d=>{const _0x3a3c46=_0x355f0c,_0x1f10b2=['datasetCode:\x20\x22'+_0x377d8d[_0x3a3c46(0x1ba)]+'\x22','tableName:\x20\x22'+_0x377d8d[_0x3a3c46(0x1e3)]+'\x22',_0x3a3c46(0x1c4)+_0x377d8d[_0x3a3c46(0x1da)]+'\x22'];return _0x377d8d['alias']&&_0x1f10b2[_0x3a3c46(0x1b6)](_0x3a3c46(0x1cc)+_0x377d8d['alias']+'\x22'),_0x3a3c46(0x1dd)+_0x1f10b2[_0x3a3c46(0x1c5)](',\x20')+'\x20},';})[_0x355f0c(0x1c5)](''),_0x444c2f=_0x21ab1a||_0x172028[0x0]?.[_0x355f0c(0x1f2)]||'YourModel';let _0x47f310=_0x4e62e4[_0x355f0c(0x1b5)](/\{AppCode\}/g,_0x2d53e5)[_0x355f0c(0x1b5)](/\{ModelConfigs\}/g,_0x154641)[_0x355f0c(0x1b5)](/\{ExampleModelName\}/g,_0x444c2f)[_0x355f0c(0x1b5)](/\{ApiFileName\}/g,_0xf7bc31||_0x355f0c(0x1d6))['replace'](/\{ConfigName\}/g,_0x11817d||_0x355f0c(0x1c7))['replace'](/\{ClientConfigParam\}/g,_0xc68860||'')[_0x355f0c(0x1b5)](/\{SdkConfigFileName\}/g,_0x28c41e||_0x355f0c(0x1bb))[_0x355f0c(0x1b5)](/\{VarPrefix\}/g,_0x109605||'LOVRABET')[_0x355f0c(0x1b5)](/\{CreatedAt\}/g,_0x5c07a4);return _0x47f310;}static async['processTemplate'](_0x55e85a,_0x47de16,_0x145947,_0x37d468,_0x1118e7=!![]){const _0x863a56=a355_0x36e714,_0x406255=Date[_0x863a56(0x1ec)]();try{_0x1118e7&&logger[_0x863a56(0x1e6)]('template','Starting\x20template\x20content\x20replacement',{'templatePath':_0x55e85a,'targetPath':_0x47de16,'pageName':_0x145947,'templateName':_0x37d468});await a355_0x54567c[_0x863a56(0x1f0)][_0x863a56(0x1df)](_0x47de16,{'recursive':!![]}),await this[_0x863a56(0x1e2)](_0x55e85a,_0x47de16,_0x145947,_0x37d468);if(_0x1118e7){const _0x5ad06f=Date[_0x863a56(0x1ec)]()-_0x406255;logger[_0x863a56(0x1b9)](_0x863a56(0x1bc),_0x863a56(0x1c8),_0x5ad06f,{'pageName':_0x145947,'templateName':_0x37d468});}}catch(_0x3e2f9f){if(_0x1118e7){const _0x1cbe33=Date[_0x863a56(0x1ec)]()-_0x406255;logger[_0x863a56(0x1f3)](_0x863a56(0x1bc),_0x863a56(0x1d2),{'templatePath':_0x55e85a,'targetPath':_0x47de16,'pageName':_0x145947,'templateName':_0x37d468,'error':_0x3e2f9f instanceof Error?_0x3e2f9f[_0x863a56(0x1cb)]:String(_0x3e2f9f),'duration':_0x1cbe33});}throw _0x3e2f9f;}}static async[a355_0x36e714(0x1e2)](_0x163e78,_0x2e166e,_0x5d458c,_0x596223){const _0x3ac8bb=a355_0x36e714,_0xa558bb=await a355_0x54567c[_0x3ac8bb(0x1f0)][_0x3ac8bb(0x1ce)](_0x163e78,{'withFileTypes':!![]});for(const _0x591dc4 of _0xa558bb){const _0x37b7e2=a355_0xc2688[_0x3ac8bb(0x1c5)](_0x163e78,_0x591dc4[_0x3ac8bb(0x1da)]);let _0x155506=a355_0xc2688[_0x3ac8bb(0x1c5)](_0x2e166e,_0x591dc4['name']);_0x591dc4[_0x3ac8bb(0x1da)][_0x3ac8bb(0x1e8)]('.tpl')&&(_0x155506=a355_0xc2688[_0x3ac8bb(0x1c5)](_0x2e166e,_0x591dc4[_0x3ac8bb(0x1da)][_0x3ac8bb(0x1b5)](/\.tpl$/,'')));if(_0x591dc4[_0x3ac8bb(0x1b7)]())await a355_0x54567c[_0x3ac8bb(0x1f0)][_0x3ac8bb(0x1df)](_0x155506,{'recursive':!![]}),await this[_0x3ac8bb(0x1e2)](_0x37b7e2,_0x155506,_0x5d458c,_0x596223);else _0x591dc4[_0x3ac8bb(0x1c0)]()&&await this[_0x3ac8bb(0x1f5)](_0x37b7e2,_0x155506,_0x5d458c,_0x596223);}}static async[a355_0x36e714(0x1f5)](_0x45dc8b,_0x36043b,_0x73e04c,_0x3ea7a8){const _0x529041=a355_0x36e714,_0xd8e390=a355_0xc2688[_0x529041(0x1d8)](_0x45dc8b)['toLowerCase']();_0x45dc8b[_0x529041(0x1e8)](_0x529041(0x1c1))&&(_0x36043b=_0x36043b['replace'](/\.tpl$/,''));const _0x56210e=[_0x529041(0x1de),_0x529041(0x1cf),_0x529041(0x1d4),_0x529041(0x1be),'.json','.md',_0x529041(0x1db),'.scss',_0x529041(0x1c1)];if(_0x56210e[_0x529041(0x1b3)](_0xd8e390)||_0x45dc8b['endsWith']('.tpl')){const _0x2b4b7=await a355_0x54567c[_0x529041(0x1f0)][_0x529041(0x1e1)](_0x45dc8b,'utf8'),_0x5a109c=this[_0x529041(0x1e4)](_0x2b4b7,_0x73e04c,_0x3ea7a8);await a355_0x54567c['promises'][_0x529041(0x1f6)](_0x36043b,_0x5a109c,'utf8');}else await a355_0x54567c[_0x529041(0x1f0)][_0x529041(0x1e5)](_0x45dc8b,_0x36043b);}}
@@ -1 +1 @@
1
- (function(_0x1268cb,_0x213c1b){const _0x2bb4f5=a356_0xcdea,_0x8c4d3d=_0x1268cb();while(!![]){try{const _0x345f67=-parseInt(_0x2bb4f5(0x120))/0x1*(parseInt(_0x2bb4f5(0x132))/0x2)+-parseInt(_0x2bb4f5(0x11c))/0x3+-parseInt(_0x2bb4f5(0x136))/0x4+-parseInt(_0x2bb4f5(0x12c))/0x5*(-parseInt(_0x2bb4f5(0x12e))/0x6)+-parseInt(_0x2bb4f5(0x130))/0x7*(parseInt(_0x2bb4f5(0x13a))/0x8)+parseInt(_0x2bb4f5(0x12a))/0x9*(parseInt(_0x2bb4f5(0x134))/0xa)+parseInt(_0x2bb4f5(0x138))/0xb*(parseInt(_0x2bb4f5(0x11e))/0xc);if(_0x345f67===_0x213c1b)break;else _0x8c4d3d['push'](_0x8c4d3d['shift']());}catch(_0x2ea9dd){_0x8c4d3d['push'](_0x8c4d3d['shift']());}}}(a356_0x4630,0x5987a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a356_0xcdea(_0x375ea5,_0x51b33d){_0x375ea5=_0x375ea5-0x11c;const _0x46301e=a356_0x4630();let _0xcdea02=_0x46301e[_0x375ea5];return _0xcdea02;}import a356_0x48ccea 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 _0x18ece5=a356_0xcdea,_0x5c984b=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x18ece5(0x124)]()['toLowerCase']();return _0x5c984b==='1'||_0x5c984b==='true'||_0x5c984b===_0x18ece5(0x128);}function a356_0x4630(){const _0xe0ae02=['1kzdCPl','lastNotifiedVersion','gte','valid','trim','utf8','rabetbase-cli','\x20available,\x20current\x20','yes','now','1636065caqaYR','stringify','5JHKYDg','checkedAt','4327686SWqkjp','parse','14HJzChp','number','401470pSfpSw','update-check.json','10TBjONI','\x20update','2242812iXbhSN','lastNotifiedAt','572tJbGZO',',\x20run:\x20','277096zpeJyZ','1254900nJdWNY','latest','164460kKZiwz','object'];a356_0x4630=function(){return _0xe0ae02;};return a356_0x4630();}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x2bcef4=a356_0xcdea;return join(cacheRoot(),_0x2bcef4(0x126),_0x2bcef4(0x133));}async function readUpdateNoticeCache(){const _0x473dae=a356_0xcdea;try{const _0x228d9e=await readFile(getUpdateNoticeCachePath(),_0x473dae(0x125)),_0x2a8c50=JSON[_0x473dae(0x12f)](_0x228d9e);if(!_0x2a8c50||typeof _0x2a8c50!==_0x473dae(0x11f))return{};return _0x2a8c50;}catch{return{};}}async function writeUpdateNoticeCache(_0x56d613){const _0x21c5df=a356_0xcdea;try{const _0x6584a0=getUpdateNoticeCachePath();await mkdir(dirname(_0x6584a0),{'recursive':!![]}),await writeFile(_0x6584a0,JSON[_0x21c5df(0x12b)](_0x56d613,null,0x2)+'\x0a',_0x21c5df(0x125));}catch{}}function isFreshCheck(_0x1c6f32,_0x5c7c69){const _0x2a75df=a356_0xcdea;return typeof _0x1c6f32[_0x2a75df(0x12d)]===_0x2a75df(0x131)&&_0x5c7c69-_0x1c6f32[_0x2a75df(0x12d)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x351709,_0x5f499d,_0x3807a5){const _0xd77395=a356_0xcdea;return _0x351709[_0xd77395(0x121)]===_0x5f499d&&typeof _0x351709[_0xd77395(0x137)]==='number'&&_0x3807a5-_0x351709[_0xd77395(0x137)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x10644b){return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+'/v/'+_0x10644b;}export async function resolveLatestUpdateNotice(){const _0x293cb7=a356_0xcdea;if(isUpdateNoticeDisabled())return null;try{const _0x57103f=Date[_0x293cb7(0x129)](),_0x3c0843=getCliVersion(),_0x119bb2=await readUpdateNoticeCache();let _0x5a2a1b=isFreshCheck(_0x119bb2,_0x57103f)?_0x119bb2[_0x293cb7(0x11d)]?.[_0x293cb7(0x124)]():undefined;if(!_0x5a2a1b&&!isFreshCheck(_0x119bb2,_0x57103f)){const _0x33ccf3=await getCliVersionPolicy();_0x5a2a1b=_0x33ccf3?.['stableVersion']?.[_0x293cb7(0x124)]()||undefined,await writeUpdateNoticeCache({..._0x119bb2,'checkedAt':_0x57103f,'latest':_0x5a2a1b,'failed':!_0x5a2a1b});}if(!_0x5a2a1b||!a356_0x48ccea[_0x293cb7(0x123)](_0x3c0843)||!a356_0x48ccea[_0x293cb7(0x123)](_0x5a2a1b))return null;if(a356_0x48ccea[_0x293cb7(0x122)](_0x3c0843,_0x5a2a1b))return null;if(isRecentlyNotified(_0x119bb2,_0x5a2a1b,_0x57103f))return null;const _0x20532a=CLI_BIN_NAME+_0x293cb7(0x135);return await writeUpdateNoticeCache({..._0x119bb2,'checkedAt':isFreshCheck(_0x119bb2,_0x57103f)?_0x119bb2[_0x293cb7(0x12d)]:_0x57103f,'latest':_0x5a2a1b,'failed':![],'lastNotifiedVersion':_0x5a2a1b,'lastNotifiedAt':_0x57103f}),{'command':_0x20532a,'current':_0x3c0843,'latest':_0x5a2a1b,'url':buildNpmVersionUrl(_0x5a2a1b),'message':CLI_BIN_NAME+'\x20'+_0x5a2a1b+_0x293cb7(0x127)+_0x3c0843+_0x293cb7(0x139)+_0x20532a};}catch{return null;}}
1
+ (function(_0x5eccc1,_0x556279){const _0x5eca95=a356_0x2ec6,_0x5558c5=_0x5eccc1();while(!![]){try{const _0x2013be=parseInt(_0x5eca95(0x149))/0x1*(parseInt(_0x5eca95(0x13f))/0x2)+-parseInt(_0x5eca95(0x142))/0x3+parseInt(_0x5eca95(0x144))/0x4*(-parseInt(_0x5eca95(0x156))/0x5)+-parseInt(_0x5eca95(0x14b))/0x6+parseInt(_0x5eca95(0x14e))/0x7+-parseInt(_0x5eca95(0x14f))/0x8+-parseInt(_0x5eca95(0x13c))/0x9*(-parseInt(_0x5eca95(0x145))/0xa);if(_0x2013be===_0x556279)break;else _0x5558c5['push'](_0x5558c5['shift']());}catch(_0x28da4d){_0x5558c5['push'](_0x5558c5['shift']());}}}(a356_0x5c92,0x45ebe));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a356_0x4da111 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a356_0x2ec6(_0x1711b3,_0x2c91c3){_0x1711b3=_0x1711b3-0x13a;const _0x5c92ce=a356_0x5c92();let _0x2ec624=_0x5c92ce[_0x1711b3];return _0x2ec624;}import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a356_0x5c92(){const _0x502daf=['update-check.json','\x20available,\x20current\x20','3443573iONIfz','1138816HytMPb','/v/','true','.cache','https://www.npmjs.com/package/','number',',\x20run:\x20','5wTTjrm','stableVersion','gte','parse','281214AGFxbs','valid','stringify','12396JbFtXT','trim','now','429147JuJxAw','checkedAt','1893708YIrdot','150DIpVcy','object','rabetbase-cli','yes','79YUAeGD','utf8','2430270CLNCBI'];a356_0x5c92=function(){return _0x502daf;};return a356_0x5c92();}function isUpdateNoticeDisabled(){const _0x101fb2=a356_0x2ec6,_0x3efef1=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x3efef1==='1'||_0x3efef1===_0x101fb2(0x151)||_0x3efef1===_0x101fb2(0x148);}function cacheRoot(){const _0x4a4048=a356_0x2ec6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4a4048(0x152));}export function getUpdateNoticeCachePath(){const _0x4cc991=a356_0x2ec6;return join(cacheRoot(),_0x4cc991(0x147),_0x4cc991(0x14c));}async function readUpdateNoticeCache(){const _0x44be44=a356_0x2ec6;try{const _0x53f3a2=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x242ce3=JSON[_0x44be44(0x13b)](_0x53f3a2);if(!_0x242ce3||typeof _0x242ce3!==_0x44be44(0x146))return{};return _0x242ce3;}catch{return{};}}async function writeUpdateNoticeCache(_0x450bda){const _0x46829d=a356_0x2ec6;try{const _0x578674=getUpdateNoticeCachePath();await mkdir(dirname(_0x578674),{'recursive':!![]}),await writeFile(_0x578674,JSON[_0x46829d(0x13e)](_0x450bda,null,0x2)+'\x0a',_0x46829d(0x14a));}catch{}}function isFreshCheck(_0x117ba5,_0x3fc0f4){const _0x375a32=a356_0x2ec6;return typeof _0x117ba5['checkedAt']==='number'&&_0x3fc0f4-_0x117ba5[_0x375a32(0x143)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xdaa2ec,_0x27f66a,_0x14ac88){const _0x4cf0c9=a356_0x2ec6;return _0xdaa2ec['lastNotifiedVersion']===_0x27f66a&&typeof _0xdaa2ec['lastNotifiedAt']===_0x4cf0c9(0x154)&&_0x14ac88-_0xdaa2ec['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4f1cb9){const _0x13c036=a356_0x2ec6;return _0x13c036(0x153)+NPM_PACKAGE_NAME+_0x13c036(0x150)+_0x4f1cb9;}export async function resolveLatestUpdateNotice(){const _0x502336=a356_0x2ec6;if(isUpdateNoticeDisabled())return null;try{const _0x1fb5bf=Date[_0x502336(0x141)](),_0x4fef87=getCliVersion(),_0x1223dc=await readUpdateNoticeCache();let _0x54a54a=isFreshCheck(_0x1223dc,_0x1fb5bf)?_0x1223dc['latest']?.['trim']():undefined;if(!_0x54a54a&&!isFreshCheck(_0x1223dc,_0x1fb5bf)){const _0x1b1a58=await getCliVersionPolicy();_0x54a54a=_0x1b1a58?.[_0x502336(0x157)]?.[_0x502336(0x140)]()||undefined,await writeUpdateNoticeCache({..._0x1223dc,'checkedAt':_0x1fb5bf,'latest':_0x54a54a,'failed':!_0x54a54a});}if(!_0x54a54a||!a356_0x4da111[_0x502336(0x13d)](_0x4fef87)||!a356_0x4da111[_0x502336(0x13d)](_0x54a54a))return null;if(a356_0x4da111[_0x502336(0x13a)](_0x4fef87,_0x54a54a))return null;if(isRecentlyNotified(_0x1223dc,_0x54a54a,_0x1fb5bf))return null;const _0x140e07=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1223dc,'checkedAt':isFreshCheck(_0x1223dc,_0x1fb5bf)?_0x1223dc['checkedAt']:_0x1fb5bf,'latest':_0x54a54a,'failed':![],'lastNotifiedVersion':_0x54a54a,'lastNotifiedAt':_0x1fb5bf}),{'command':_0x140e07,'current':_0x4fef87,'latest':_0x54a54a,'url':buildNpmVersionUrl(_0x54a54a),'message':CLI_BIN_NAME+'\x20'+_0x54a54a+_0x502336(0x14d)+_0x4fef87+_0x502336(0x155)+_0x140e07};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x24afce,_0x5b704d){var _0xd34a39=a357_0x2335,_0x23e9b6=_0x24afce();while(!![]){try{var _0x4c4967=-parseInt(_0xd34a39(0x154))/0x1+-parseInt(_0xd34a39(0x15d))/0x2*(parseInt(_0xd34a39(0x159))/0x3)+-parseInt(_0xd34a39(0x15e))/0x4+-parseInt(_0xd34a39(0x15a))/0x5+parseInt(_0xd34a39(0x157))/0x6*(parseInt(_0xd34a39(0x15c))/0x7)+-parseInt(_0xd34a39(0x156))/0x8*(parseInt(_0xd34a39(0x155))/0x9)+parseInt(_0xd34a39(0x158))/0xa*(parseInt(_0xd34a39(0x15b))/0xb);if(_0x4c4967===_0x5b704d)break;else _0x23e9b6['push'](_0x23e9b6['shift']());}catch(_0x47c357){_0x23e9b6['push'](_0x23e9b6['shift']());}}}(a357_0x1b3e,0xe455d));function a357_0x1b3e(){var _0x8f1dd5=['2KOgdkU','6228292GhoNtX','359008mYIuyz','284652LOkjom','8cZgvFD','6TZcVEs','581540IoCHLz','3364914nLNUBU','8547645McrDau','836uYAxht','9061031wmERQK'];a357_0x1b3e=function(){return _0x8f1dd5;};return a357_0x1b3e();}function a357_0x2335(_0x539fa9,_0x105032){_0x539fa9=_0x539fa9-0x154;var _0x1b3e7a=a357_0x1b3e();var _0x2335a6=_0x1b3e7a[_0x539fa9];return _0x2335a6;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a357_0x3a0c(_0x29e0cd,_0xac0543){_0x29e0cd=_0x29e0cd-0xab;var _0x59fe38=a357_0x59fe();var _0x3a0c56=_0x59fe38[_0x29e0cd];return _0x3a0c56;}(function(_0x45ea37,_0x15bdd5){var _0x3bb6c3=a357_0x3a0c,_0x4ad922=_0x45ea37();while(!![]){try{var _0x46162a=parseInt(_0x3bb6c3(0xad))/0x1*(parseInt(_0x3bb6c3(0xac))/0x2)+-parseInt(_0x3bb6c3(0xb0))/0x3*(parseInt(_0x3bb6c3(0xaf))/0x4)+parseInt(_0x3bb6c3(0xae))/0x5*(-parseInt(_0x3bb6c3(0xb4))/0x6)+parseInt(_0x3bb6c3(0xb3))/0x7*(-parseInt(_0x3bb6c3(0xab))/0x8)+-parseInt(_0x3bb6c3(0xb5))/0x9+-parseInt(_0x3bb6c3(0xb1))/0xa+parseInt(_0x3bb6c3(0xb2))/0xb;if(_0x46162a===_0x15bdd5)break;else _0x4ad922['push'](_0x4ad922['shift']());}catch(_0x1692c1){_0x4ad922['push'](_0x4ad922['shift']());}}}(a357_0x59fe,0xa44f0));function a357_0x59fe(){var _0x4c9525=['58310GsGvgU','1vMzLed','60985OeYqGV','1412ezIVFl','3276snZffA','571520pVvZrL','34781989tdgSau','7ABweTE','180TKchGu','10152414pDVulC','4652496eLBlWh'];a357_0x59fe=function(){return _0x4c9525;};return a357_0x59fe();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x517501,_0x1dae79){var _0x589233=a358_0x4c82,_0x74162=_0x517501();while(!![]){try{var _0xb2f878=parseInt(_0x589233(0x160))/0x1+parseInt(_0x589233(0x167))/0x2*(-parseInt(_0x589233(0x165))/0x3)+-parseInt(_0x589233(0x162))/0x4*(parseInt(_0x589233(0x15f))/0x5)+-parseInt(_0x589233(0x163))/0x6+parseInt(_0x589233(0x161))/0x7*(-parseInt(_0x589233(0x166))/0x8)+parseInt(_0x589233(0x164))/0x9+parseInt(_0x589233(0x15e))/0xa;if(_0xb2f878===_0x1dae79)break;else _0x74162['push'](_0x74162['shift']());}catch(_0x3d77cb){_0x74162['push'](_0x74162['shift']());}}}(a358_0x1d85,0xc5642));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x12d47c,_0x5361b6){setActiveCookie(_0x12d47c);try{return await _0x5361b6();}finally{clearActiveCookie();}}function a358_0x4c82(_0x4444c7,_0xf13763){_0x4444c7=_0x4444c7-0x15e;var _0x1d850d=a358_0x1d85();var _0x4c82dc=_0x1d850d[_0x4444c7];return _0x4c82dc;}function a358_0x1d85(){var _0x140ca4=['7920204lOgqQI','4325526NxtLUw','3kxFJfB','8bkbHdL','2195394YkEegk','24326870IEepZx','165455dnWays','1490741Lygzke','1063832sfnDCz','124NjiWTd'];a358_0x1d85=function(){return _0x140ca4;};return a358_0x1d85();}
1
+ (function(_0x2383fe,_0x550d34){var _0x4c9061=a358_0xcabd,_0x2341b4=_0x2383fe();while(!![]){try{var _0x30222e=parseInt(_0x4c9061(0xb4))/0x1+-parseInt(_0x4c9061(0xaf))/0x2*(-parseInt(_0x4c9061(0xb8))/0x3)+parseInt(_0x4c9061(0xae))/0x4*(parseInt(_0x4c9061(0xb7))/0x5)+parseInt(_0x4c9061(0xb1))/0x6*(-parseInt(_0x4c9061(0xb3))/0x7)+-parseInt(_0x4c9061(0xad))/0x8*(-parseInt(_0x4c9061(0xb6))/0x9)+-parseInt(_0x4c9061(0xb0))/0xa+-parseInt(_0x4c9061(0xb5))/0xb*(parseInt(_0x4c9061(0xb2))/0xc);if(_0x30222e===_0x550d34)break;else _0x2341b4['push'](_0x2341b4['shift']());}catch(_0x1d181c){_0x2341b4['push'](_0x2341b4['shift']());}}}(a358_0x53ac,0xe72ca));function a358_0xcabd(_0x1759d8,_0x426de7){_0x1759d8=_0x1759d8-0xad;var _0x53acfa=a358_0x53ac();var _0xcabdb5=_0x53acfa[_0x1759d8];return _0xcabdb5;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x1d0393,_0x1c8a77){setActiveCookie(_0x1d0393);try{return await _0x1c8a77();}finally{clearActiveCookie();}}function a358_0x53ac(){var _0x43e317=['1370766UuiNFY','7706250iCqSpC','726JEgUwM','5676gVWCyN','41048iYNijT','264340EbkTAE','32593ffXMyn','9YRBYRl','64045WzEItk','3CxrhhC','10529096RwlQic','488oWjhty'];a358_0x53ac=function(){return _0x43e317;};return a358_0x53ac();}
@@ -1 +1 @@
1
- function a359_0x2ab7(_0x36983a,_0x4cd571){_0x36983a=_0x36983a-0x6b;var _0x573b36=a359_0x573b();var _0x2ab7bb=_0x573b36[_0x36983a];return _0x2ab7bb;}(function(_0x52bfe2,_0x51acfc){var _0x4d2a0f=a359_0x2ab7,_0x57851f=_0x52bfe2();while(!![]){try{var _0x5a4173=parseInt(_0x4d2a0f(0x76))/0x1*(parseInt(_0x4d2a0f(0x70))/0x2)+parseInt(_0x4d2a0f(0x75))/0x3+parseInt(_0x4d2a0f(0x78))/0x4*(-parseInt(_0x4d2a0f(0x74))/0x5)+parseInt(_0x4d2a0f(0x6b))/0x6*(-parseInt(_0x4d2a0f(0x73))/0x7)+-parseInt(_0x4d2a0f(0x77))/0x8*(-parseInt(_0x4d2a0f(0x71))/0x9)+parseInt(_0x4d2a0f(0x6d))/0xa*(-parseInt(_0x4d2a0f(0x72))/0xb)+parseInt(_0x4d2a0f(0x6e))/0xc;if(_0x5a4173===_0x51acfc)break;else _0x57851f['push'](_0x57851f['shift']());}catch(_0x5c93ea){_0x57851f['push'](_0x57851f['shift']());}}}(a359_0x573b,0xaccea));export function writeCliSideChannelLine(_0x32eb98){var _0xd7faec=a359_0x2ab7;process[_0xd7faec(0x6c)][_0xd7faec(0x6f)](_0x32eb98+'\x0a');}function a359_0x573b(){var _0x26b319=['19640lDeENv','3719280GlgWZZ','write','845440FdqaDw','9TTLJkJ','242dTUCft','402675uJjZTh','5nNAaiN','3851577BANnpY','1upFmSn','3904104JCTHnU','1721724tRsAhp','138eyWoVn','stderr'];a359_0x573b=function(){return _0x26b319;};return a359_0x573b();}
1
+ (function(_0x1566cf,_0x44c337){var _0x146071=a359_0x107f,_0x17adf4=_0x1566cf();while(!![]){try{var _0x191886=parseInt(_0x146071(0x191))/0x1+-parseInt(_0x146071(0x18a))/0x2+-parseInt(_0x146071(0x193))/0x3*(parseInt(_0x146071(0x18c))/0x4)+parseInt(_0x146071(0x194))/0x5+parseInt(_0x146071(0x18e))/0x6*(parseInt(_0x146071(0x18f))/0x7)+-parseInt(_0x146071(0x18b))/0x8+-parseInt(_0x146071(0x192))/0x9*(-parseInt(_0x146071(0x195))/0xa);if(_0x191886===_0x44c337)break;else _0x17adf4['push'](_0x17adf4['shift']());}catch(_0xc4feac){_0x17adf4['push'](_0x17adf4['shift']());}}}(a359_0xbc4c,0xa9c95));function a359_0x107f(_0x2aa202,_0x584637){_0x2aa202=_0x2aa202-0x18a;var _0xbc4c41=a359_0xbc4c();var _0x107f81=_0xbc4c41[_0x2aa202];return _0x107f81;}function a359_0xbc4c(){var _0x1bbb6c=['1858445kgDFOd','10dgQPHp','1731916KKdXnJ','7799416RmKOMh','4pYPtqL','write','6shFcFp','3346406fiOlzF','stderr','29177HPsRNY','17680023oomgLi','921123pwrZfk'];a359_0xbc4c=function(){return _0x1bbb6c;};return a359_0xbc4c();}export function writeCliSideChannelLine(_0x22b4d9){var _0xa89068=a359_0x107f;process[_0xa89068(0x190)][_0xa89068(0x18d)](_0x22b4d9+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.5-beta.1",
3
+ "version": "2.5.5-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.5-beta.1
3
+ version: 2.5.5-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:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rabetbase-page-generation
3
- version: 2.5.5-beta.1
4
- description: "为已有 Dataset 生成、验证和发布由 list、detail、create、update 四个 CustomJSX 页面组成的 ONEPAGE 页面包。"
3
+ version: 2.5.5-beta.2
4
+ description: "根据用户需求,为已有 Dataset 选择、生成、串联、验证和发布 CustomJSX 页面;提供列表、详情、新增、更新基础模板,并支持裁剪或扩展页面。"
5
5
  metadata:
6
6
  requires:
7
7
  bins: ["rabetbase"]
@@ -11,19 +11,23 @@ metadata:
11
11
 
12
12
  # ONEPAGE 页面生成
13
13
 
14
- 本 Skill 负责模板选择、真实 SDK 数据绑定和页面交互;复用现有 CLI 的页面目录校验、创建、更新、发布与查询命令。页面全部使用 CustomJSX,由 ONEPAGE 编排,不生成 Page Schema、`CRUD_PAGE_SET`、Dataset 或 Workflow,不替换既有 CLI 流程。
14
+ 本 Skill 负责按用户需求规划页面、选择模板、绑定真实 SDK 数据和实现页面交互;复用现有 CLI 的页面目录校验、创建、更新、发布与查询命令。页面全部使用 CustomJSX,由 ONEPAGE 编排,不生成 Page Schema、`CRUD_PAGE_SET`、Dataset 或 Workflow,不替换既有 CLI 流程。
15
15
 
16
- - 页面源码从 `templates/onepage` 复制到任务的页面工作目录,按 Dataset 元信息改写;构建得到四个完整独立目录。详情与更新是不同页面;新增和更新共享表单实现。
17
- - 智能搜索使用原 `LrSmartFilter` 组合组件的独立 JSX 实现;表格、详情和表单使用 AntD。组件与运行时边界见 [组件基线](references/component-baseline.md)。
16
+ - 列表、详情、新增、更新是基础能力,不是必建的四页套餐。按用户需要选择、裁剪或增加页面,同时调整入口、菜单、按钮和数据写入逻辑。
17
+ - 默认服务正式环境(prod)的当前应用,尊重用户指定的应用、环境和部署地址;daily 验证不是正式环境交付的前置条件。按用户任务完成创建、更新、验收和发布,不把这些步骤拆成逐项授权;需求不清楚时只做必要的简短确认。
18
+ - 页面源码从 `templates/onepage` 复制到任务的页面工作目录,按 Dataset 元信息及页面计划改写;基础构建脚本组装四个完整独立目录,只上传计划选中的页面,扩展页按相同目录契约组织。详情与更新是不同页面;新增和更新共享表单实现。上传目录保留可读 JSX 源码,由平台新的微应用模板在保存/发布时编译,不上传预编译 `page.js`。
19
+ - 智能搜索从 `@lovrabet/components` 包根入口使用 `LrSmartFilter`;不复制或重写组件源码。表格、详情和表单使用 AntD。组件与运行时边界见 [组件基线](references/component-baseline.md)。
18
20
  - 通过 `--page-dir` 交付页面,不使用旧单页 `--page-pattern ONEPAGE`。CLI 不选择模板、不生成业务数据,也不承担模板构建。
19
21
  - 复用现有页面创建行为及 `menu` 管理命令;默认创建并绑定菜单,菜单展示按用户要求管理。页面导航只使用服务端返回并核验的路径,禁止把占位符发布成正式入口。
20
- - 浏览器验证使用 Codex 内置浏览器;比较旧页面时使用同一 Dataset、同一记录和数据状态。新页面不能依赖旧 Workflow 或 Page Schema。
22
+ - 验收使用当前可用的浏览器能力,不依赖桌面客户端或外部浏览器配置。能力不可用时明确未验证范围;比较旧页面时使用同一 Dataset、同一记录和数据状态。新页面不能依赖旧 Workflow 或 Page Schema。
23
+ - 创建前识别新旧页面及菜单,已有本轮创建结果时优先续做。发布前核对草稿和正式版本,已发布且无新内容时跳过;发布失败按证据区分原因,不能仅凭 500 猜测。
24
+ - 面向非技术用户交付页面名称、用途、入口链接和必要操作。页面标识、命令、版本和验收回执留在 Agent 内部;没有可持久保存的位置时不要求用户提供目录,也不承诺记录永久保留。
21
25
 
22
- 执行时阅读 [生成与验收流程](references/generation.md),完成数据绑定、四页目录构建、页面创建与路径回填、浏览器验收及发布。Development Sandbox 消费此 Skill;Runtime Sandbox 不安装它。
26
+ 执行时阅读 [生成与验收流程](references/generation.md),完成页面规划、数据绑定、所选页面的创建与路径回填、验收及发布。
23
27
 
24
28
  ## 按页面读取模板
25
29
 
26
- 模板位于 `templates/onepage`。生成或修改哪一页,先阅读该页 README 及效果图,再读取源码;构建时整体复制模板,保留 `shared/`。
30
+ 模板位于 `templates/onepage`。生成或修改哪一页,先阅读该页 README 及效果图,再读取源码;基础构建时整体复制模板,保留 `shared/`;未选择的页面不上传,不为其创建平台页面或菜单。
27
31
 
28
32
  | 页面 | 说明与效果图 | 入口 |
29
33
  | --- | --- | --- |
@@ -32,4 +36,4 @@ metadata:
32
36
  | 新增 | [create/README.md](templates/onepage/create/README.md) | `create/index.jsx` |
33
37
  | 更新 | [update/README.md](templates/onepage/update/README.md) | `update/index.jsx` |
34
38
 
35
- `shared/model.js` 维护数据绑定、查询与格式化,`shared/record-layout.jsx` 维护字段分组,`shared/editor.jsx` 是新增/更新共用表单,`shared/responsive.jsx` 提供响应式控件,`shared/page.css` 保持四页样式一致。`build.mjs` 将这些源码打包成四个独立页面目录,页面输出不包含 README 或效果图。
39
+ `shared/model.js` 维护数据绑定、查询与格式化,`shared/record-layout.jsx` 维护字段分组,`shared/editor.jsx` 是新增/更新共用表单,`shared/responsive.jsx` 提供响应式控件,页面通过宿主 `useAppTheme()` context 读取主题,`shared/page.css` 保持四页样式一致。`build.mjs` 将这些源码组装成四个独立页面目录,页面输出不包含 README、效果图或预编译 bundle。
@@ -4,7 +4,7 @@
4
4
 
5
5
  | 页面能力 | 使用方式 |
6
6
  | --- | --- |
7
- | 智能搜索与结构化筛选 | 复用原 LrSmartFilter / 智能搜索组合的独立 JSX 实现。保留模式切换、类型化控件、加载状态、查询、重置和过期请求处理。 |
7
+ | 智能搜索与结构化筛选 | 从 `@lovrabet/components` 包根入口导入 `LrSmartFilter`。保留模式切换、类型化控件、加载状态、查询、重置和过期请求处理;不在页面目录复制或重写组件。 |
8
8
  | 表格、工具栏、勾选、分页、列设置 | 使用 AntD,按旧页面还原密度、位置和操作反馈;分页使用服务端总数。 |
9
9
  | 详情、新增、更新 | 使用 AntD Form 和普通 React 分组布局;保留字段顺序、说明、必填、枚举标签、只读值、校验、重置及提交反馈。 |
10
10
  | 移动端 | 列表使用卡片,表单使用合适的日期控件和可点击按钮;ONEPAGE 手机容器由宿主提供,不能只通过缩小子页修复宿主分栏。 |
@@ -13,6 +13,6 @@
13
13
 
14
14
  组件真源:[原组件仓](https://codeup.aliyun.com/yuntoo/fe/materials)、[公共 JSX 组件仓](https://codeup.aliyun.com/yuntoo/open/lovrabet-components)。读取实际组件版本的 JSX 导出、props 和 CSS;源码中有组件不代表已发布 npm 包或宿主已提供它。
15
15
 
16
- 模板中的 `@lovrabet/components/smart-filter` 是页面打包别名。构建时显式传入已核验的组件 JSX 入口和 CSS:可以来自组件包,也可以来自指定版本的组件源码。模板会把它们打入页面,不要求修改宿主入口、依赖锁文件或 sub-app-vite-demo。React、AntD、图标、dayjs 和 `@/context/app-context` 由当前 CustomJSX 宿主提供;先验证实际运行环境。
16
+ 组件包已提供可被宿主解析的 `LrSmartFilter` 根导出,页面统一使用 `import { LrSmartFilter } from "@lovrabet/components"`;组件包自身负责样式注入,不需要传入或复制独立 CSS。模板不再改写为本地筛选器或复制组件源码。`build.mjs` 只复制四页和 shared 页面源码,不把组件或页面预编译成 bundle;保存/发布由页面宿主的微应用构建模板编译。若宿主仍无法解析该导出,停止页面发布并通知用户需要由 `app-platform` 更新组件依赖或构建模板;本 Skill 不修改 `app-platform`。React、AntD、图标、dayjs 和 `@/context/app-context` 由当前 CustomJSX 宿主提供;主题沿用宿主 `useAppTheme()` context,不在页面目录直接读取底层 store。该流程不要求修改宿主入口、依赖锁文件或 sub-app-vite-demo。
17
17
 
18
18
  SDK/context 契约见 [CustomJSX 生成标准](../../rabetbase/knowledge/custom-page/generation-standards.md)。保持主题、语言和请求地址跟随宿主;禁止在模板里写入 Cookie、AccessKey 或生产地址兜底。