@lovrabet/rabetbase-cli 2.5.4 → 2.5.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) 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 +2 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +35 -0
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
  360. package/skills/rabetbase-page-generation/references/generation.md +77 -0
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
  362. package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
  363. package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
  364. package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
  365. package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
  366. package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
  367. package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
  368. package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
  369. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
  370. package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
  371. package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
  372. package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
  373. package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
  374. package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
  375. package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
  376. package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
  377. package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
  378. package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a343_0x153b(){const _0x13c627=['\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersionMessage','join','\x20\x20\x20Upgrade\x20command:\x20','3omkVuf','\x20\x20\x20Minimum\x20supported:\x20','429196qDBJYA','97772USQCvo','\x20\x20\x20','\x1b[33m','\x1b[31m','7CAdXeM','utf-8','needsUpgrade','\x1b[1m','372652yIqsdO','stableVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','log','package.json','coerce','1.0.0','3388570hEwQEz','currentVersion','minimumVersion','parse','1332186JlGRun','validation','Current\x20version:\x20','2045024viMxFN','↪\x20Critical\x20CLI\x20upgrade\x20required','Upgrade\x20command:\x20','8489295pAtqsQ','belowMinimum','Minimum\x20supported:\x20','\x20\x20\x20Stable\x20version:\x20','filter'];a343_0x153b=function(){return _0x13c627;};return a343_0x153b();}(function(_0x3fea04,_0x3f0ed2){const _0x3a364d=a343_0x1596,_0x11bf05=_0x3fea04();while(!![]){try{const _0x59cbd2=parseInt(_0x3a364d(0xfc))/0x1+-parseInt(_0x3a364d(0xf3))/0x2+parseInt(_0x3a364d(0xf1))/0x3*(-parseInt(_0x3a364d(0xf4))/0x4)+-parseInt(_0x3a364d(0x103))/0x5+parseInt(_0x3a364d(0x107))/0x6+-parseInt(_0x3a364d(0xf8))/0x7*(parseInt(_0x3a364d(0xe4))/0x8)+parseInt(_0x3a364d(0xe7))/0x9;if(_0x59cbd2===_0x3f0ed2)break;else _0x11bf05['push'](_0x11bf05['shift']());}catch(_0x36887a){_0x11bf05['push'](_0x11bf05['shift']());}}}(a343_0x153b,0x593f3));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a343_0x4c5da6 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(_0x1a64b3){const _0x4ed67f=a343_0x1596,_0x5a667c=_0x1a64b3[_0x4ed67f(0xfd)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x5a667c;}function getCurrentCliVersion(){const _0x2c42fd=a343_0x1596;try{const _0x52cc5d=fileURLToPath(import.meta.url),_0x167cdf=resolve(dirname(_0x52cc5d),'../..'),_0x231301=resolve(_0x167cdf,_0x2c42fd(0x100)),_0x1418b3=JSON[_0x2c42fd(0x106)](readFileSync(_0x231301,_0x2c42fd(0xf9)));return _0x1418b3['version']||_0x2c42fd(0x102);}catch{return _0x2c42fd(0x102);}}export async function checkCliVersion(){const _0x505bd0=a343_0x1596,_0xb83363=getCurrentCliVersion(),_0x789655=await getCliVersionPolicy(),_0x5e5cd9=_0x789655?.[_0x505bd0(0xfd)]||null,_0x300909=_0x789655?.[_0x505bd0(0x105)]||null;let _0x5c8296=![],_0x5224b0=![];const _0x5d07c6=a343_0x4c5da6['coerce'](_0xb83363);if(_0x5d07c6&&_0x5e5cd9)try{const _0x4b8eee=a343_0x4c5da6[_0x505bd0(0x101)](_0x5e5cd9);if(_0x4b8eee)_0x5c8296=a343_0x4c5da6['lt'](_0x5d07c6,_0x4b8eee);}catch{}if(_0x5d07c6&&_0x300909)try{const _0x20dc6d=a343_0x4c5da6[_0x505bd0(0x101)](_0x300909);if(_0x20dc6d)_0x5224b0=a343_0x4c5da6['lt'](_0x5d07c6,_0x20dc6d);}catch{}return _0x5224b0&&(_0x5c8296=!![]),{'currentVersion':_0xb83363,'stableVersion':_0x5e5cd9,'minimumVersion':_0x300909,'needsUpgrade':_0x5c8296,'belowMinimum':_0x5224b0,'isPreRelease':![],'upgradeMessage':_0x789655?.['upgradeMessage'],'minimumVersionMessage':_0x789655?.['minimumVersionMessage']};}function a343_0x1596(_0x221a7f,_0x2b47e0){_0x221a7f=_0x221a7f-0xe4;const _0x153bdc=a343_0x153b();let _0x15963a=_0x153bdc[_0x221a7f];return _0x15963a;}export function printCliUpgradeWarning(_0x19dc5b){const _0xcbc390=a343_0x1596;if(!_0x19dc5b[_0xcbc390(0xfa)]&&!_0x19dc5b[_0xcbc390(0xe8)])return;const _0x49cf06=_0xcbc390(0xf7),_0x362424=_0xcbc390(0xf6),_0x38dd68=_0xcbc390(0xec),_0x3e2ca8=_0xcbc390(0xfb),_0x1faae4=getCliUpgradeCommand(_0x19dc5b);console[_0xcbc390(0xff)](),_0x19dc5b[_0xcbc390(0xe8)]?(console['log'](''+_0x49cf06+_0x3e2ca8+_0xcbc390(0xe5)+_0x38dd68),console[_0xcbc390(0xff)](_0x49cf06+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x19dc5b[_0xcbc390(0x104)]+_0x38dd68),_0x19dc5b[_0xcbc390(0x105)]&&console['log'](_0x49cf06+_0xcbc390(0xf2)+_0x19dc5b['minimumVersion']+_0x38dd68),_0x19dc5b['stableVersion']&&_0x19dc5b[_0xcbc390(0xfd)]!==_0x19dc5b[_0xcbc390(0x105)]&&console['log'](_0x49cf06+_0xcbc390(0xed)+_0x19dc5b[_0xcbc390(0xfd)]+_0x38dd68),_0x19dc5b['minimumVersionMessage']&&console[_0xcbc390(0xff)](_0x49cf06+_0xcbc390(0xf5)+_0x19dc5b[_0xcbc390(0xee)]+_0x38dd68),console['log'](_0x49cf06+_0xcbc390(0xf0)+_0x1faae4+_0x38dd68)):(console[_0xcbc390(0xff)](''+_0x362424+_0x3e2ca8+'↪\x20New\x20version\x20available'+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xfe)+_0x19dc5b[_0xcbc390(0x104)]+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xea)+_0x19dc5b['stableVersion']+_0x38dd68),_0x19dc5b['upgradeMessage']&&console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xf5)+_0x19dc5b['upgradeMessage']+_0x38dd68),console[_0xcbc390(0xff)](_0x362424+_0xcbc390(0xf0)+_0x1faae4+_0x38dd68)),console[_0xcbc390(0xff)]();}export function assertCliVersionSupported(_0x358c3f){const _0x45d105=a343_0x1596;if(!_0x358c3f[_0x45d105(0xe8)])return;const _0x3b8a6e=[_0x358c3f[_0x45d105(0xee)],_0x45d105(0x109)+_0x358c3f[_0x45d105(0x104)],_0x358c3f[_0x45d105(0x105)]?_0x45d105(0xe9)+_0x358c3f[_0x45d105(0x105)]:null,_0x45d105(0xe6)+getCliUpgradeCommand(_0x358c3f)][_0x45d105(0xeb)](Boolean)[_0x45d105(0xef)]('\x0a');throw CliErrors[_0x45d105(0x108)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3b8a6e);}
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 +1 @@
1
- (function(_0x58638a,_0x251844){const _0xd3352=a344_0x25ac,_0x597b67=_0x58638a();while(!![]){try{const _0x39e827=-parseInt(_0xd3352(0x1f3))/0x1+parseInt(_0xd3352(0x1fd))/0x2+parseInt(_0xd3352(0x205))/0x3*(parseInt(_0xd3352(0x200))/0x4)+parseInt(_0xd3352(0x206))/0x5+parseInt(_0xd3352(0x204))/0x6+parseInt(_0xd3352(0x1f7))/0x7+parseInt(_0xd3352(0x1ef))/0x8*(-parseInt(_0xd3352(0x203))/0x9);if(_0x39e827===_0x251844)break;else _0x597b67['push'](_0x597b67['shift']());}catch(_0x403211){_0x597b67['push'](_0x597b67['shift']());}}}(a344_0x3143,0xc455d));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';function a344_0x25ac(_0x461a18,_0x3837df){_0x461a18=_0x461a18-0x1ef;const _0x3143c5=a344_0x3143();let _0x25ac87=_0x3143c5[_0x461a18];return _0x25ac87;}import a344_0x175387 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x49cd8d){const _0x40517e=a344_0x25ac,_0x2a97fa=a344_0x175387[_0x40517e(0x207)](_0x49cd8d);return _0x2a97fa?a344_0x175387[_0x40517e(0x1f5)](_0x2a97fa)?.[0x0]===_0x40517e(0x202):![];}export function resolveProjectTemplateDescriptor(_0x33a501,_0x490cda){const _0x4eb4a8=a344_0x25ac;if(isBetaCliVersion(_0x490cda))return _0x33a501[_0x4eb4a8(0x202)]?.[_0x4eb4a8(0x208)]??_0x33a501[_0x4eb4a8(0x208)];return _0x33a501[_0x4eb4a8(0x208)];}function pickString(_0x4cb2de){const _0x2d81d2=a344_0x25ac;return typeof _0x4cb2de==='string'&&_0x4cb2de[_0x2d81d2(0x1fc)]()[_0x2d81d2(0x1fb)]>0x0?_0x4cb2de['trim']():null;}function normalizeCliVersionPolicy(_0x5a3563){const _0x56bfaa=a344_0x25ac;if(!_0x5a3563||typeof _0x5a3563!==_0x56bfaa(0x1ff))return null;const _0x48ab06=_0x5a3563,_0x4e3eca=_0x48ab06[_0x56bfaa(0x1f8)]&&typeof _0x48ab06['cli']===_0x56bfaa(0x1ff)?_0x48ab06[_0x56bfaa(0x1f8)]:_0x48ab06,_0x205ec6=pickString(_0x4e3eca['stableVersion'])||pickString(_0x4e3eca[_0x56bfaa(0x1fa)])||pickString(_0x4e3eca[_0x56bfaa(0x1f4)]),_0x1716fb=pickString(_0x4e3eca[_0x56bfaa(0x1fe)])||pickString(_0x4e3eca[_0x56bfaa(0x1f1)]);if(!_0x205ec6&&!_0x1716fb)return null;return{'stableVersion':_0x205ec6,'minimumVersion':_0x1716fb,'upgradeMessage':pickString(_0x4e3eca[_0x56bfaa(0x1f6)])||undefined,'minimumVersionMessage':pickString(_0x4e3eca['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x4d0c8b){const _0x3dc186=a344_0x25ac,_0x5e5808=new AbortController(),_0x58d21d=setTimeout(()=>_0x5e5808[_0x3dc186(0x1f2)](),FETCH_TIMEOUT_MS);try{const _0x42770a=await fetch(_0x4d0c8b,{'headers':{'Accept':'application/json'},'signal':_0x5e5808[_0x3dc186(0x201)]});if(!_0x42770a['ok'])return null;const _0x1a36c5=await _0x42770a[_0x3dc186(0x1f9)]();return _0x1a36c5&&typeof _0x1a36c5===_0x3dc186(0x1ff)?_0x1a36c5:null;}catch{return null;}finally{clearTimeout(_0x58d21d);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x559cc0=await getRabetbaseCdnConfig();return _0x559cc0?{'config':_0x559cc0,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}function a344_0x3143(){const _0xc8ea40=['1560114Vookhw','4557150XnNbRP','valid','projectTemplate','13768584zsgKZs','now','minVersion','abort','1001177yVdbGj','recommendedVersion','prerelease','upgradeMessage','3461955xDmnFI','cli','json','latestVersion','length','trim','473604IchDuN','minimumVersion','object','4LJAIuM','signal','beta','9uALgrF','8181624iMZOdJ'];a344_0x3143=function(){return _0xc8ea40;};return a344_0x3143();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1394c7=a344_0x25ac,_0x4fad92=Date[_0x1394c7(0x1f0)]();if(hasCachedConfig){const _0x4e5205=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4fad92-cacheTime<_0x4e5205)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4fad92,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
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 +1 @@
1
- (function(_0x35c2be,_0x1a3af5){const _0x83634f=a345_0x4202,_0x4abfed=_0x35c2be();while(!![]){try{const _0xb9fcbf=parseInt(_0x83634f(0x8d))/0x1+parseInt(_0x83634f(0x89))/0x2*(parseInt(_0x83634f(0x8f))/0x3)+-parseInt(_0x83634f(0x8b))/0x4+-parseInt(_0x83634f(0x8c))/0x5*(-parseInt(_0x83634f(0x87))/0x6)+parseInt(_0x83634f(0x8a))/0x7*(parseInt(_0x83634f(0x90))/0x8)+parseInt(_0x83634f(0x8e))/0x9+-parseInt(_0x83634f(0x88))/0xa;if(_0xb9fcbf===_0x1a3af5)break;else _0x4abfed['push'](_0x4abfed['shift']());}catch(_0x41f22f){_0x4abfed['push'](_0x4abfed['shift']());}}}(a345_0x5e2e,0xac97b));import{initEnv}from'../constant/env.js';function a345_0x5e2e(){const _0x35d815=['35790fWticT','790076sVxCqL','7937712aadhXm','296841aRBMIp','1232iKCYJf','306orQoHZ','14079850JoGOMV','4ncRTZZ','15253dTJbUi','1822552ejgNcD'];a345_0x5e2e=function(){return _0x35d815;};return a345_0x5e2e();}function a345_0x4202(_0x546f08,_0x40da3e){_0x546f08=_0x546f08-0x87;const _0x5e2edb=a345_0x5e2e();let _0x4202a3=_0x5e2edb[_0x546f08];return _0x4202a3;}import{readRawConfig,getConfigAppCode as a345_0x123feb,getMultiAppConfigs as a345_0x4486d9,getTemplateBaseUrl as a345_0x43f742}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x8203e6){const _0x1ae417=readRawConfig(_0x8203e6);return _0x1ae417['env']&&typeof _0x1ae417['env']==='string'&&initEnv(_0x1ae417['env']),_0x1ae417;}export function getConfigAppCode(){return a345_0x123feb();}export function getMultiAppConfigs(_0x5b87b6='project'){return a345_0x4486d9(_0x5b87b6);}export function getTemplateBaseUrl(){return a345_0x43f742();}
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 +1 @@
1
- (function(_0x30bb1d,_0x3a61cb){const _0x5e5ea2=a346_0x1ca1,_0x5a7940=_0x30bb1d();while(!![]){try{const _0x36be18=parseInt(_0x5e5ea2(0x1d0))/0x1+-parseInt(_0x5e5ea2(0x1d7))/0x2*(parseInt(_0x5e5ea2(0x1d5))/0x3)+-parseInt(_0x5e5ea2(0x1cf))/0x4*(-parseInt(_0x5e5ea2(0x1d9))/0x5)+-parseInt(_0x5e5ea2(0x1da))/0x6+-parseInt(_0x5e5ea2(0x1d8))/0x7+-parseInt(_0x5e5ea2(0x1d6))/0x8*(-parseInt(_0x5e5ea2(0x1d3))/0x9)+-parseInt(_0x5e5ea2(0x1d2))/0xa;if(_0x36be18===_0x3a61cb)break;else _0x5a7940['push'](_0x5a7940['shift']());}catch(_0x4c695a){_0x5a7940['push'](_0x5a7940['shift']());}}}(a346_0x6f82,0x48be0));function toFiniteNumber(_0x460bb2){const _0x2c823e=a346_0x1ca1;if(typeof _0x460bb2==='number'&&Number['isFinite'](_0x460bb2))return _0x460bb2;if(typeof _0x460bb2===_0x2c823e(0x1d4)){const _0x21eaa6=_0x460bb2[_0x2c823e(0x1ce)]();if(!_0x21eaa6)return undefined;const _0x3cde6d=Number(_0x21eaa6);if(Number['isFinite'](_0x3cde6d))return _0x3cde6d;}return undefined;}function a346_0x6f82(){const _0x1d8db8=['3034026fSlABd','trim','17260ShPSSQ','283438FuGusp','object','460110pqKHbf','41031THHkdp','string','69QapoNK','808qbbfSQ','8926CFrbCh','1833643FezqJX','545YPuAwp'];a346_0x6f82=function(){return _0x1d8db8;};return a346_0x6f82();}function a346_0x1ca1(_0x1bd647,_0x1fbbcf){_0x1bd647=_0x1bd647-0x1ce;const _0x6f8207=a346_0x6f82();let _0x1ca18f=_0x6f8207[_0x1bd647];return _0x1ca18f;}export function normalizeEntityWithIdResponse(_0x5a27f7){const _0x144809=a346_0x1ca1,_0x216b1e=toFiniteNumber(_0x5a27f7);if(_0x216b1e!==undefined)return{'id':_0x216b1e,'entity':{'id':_0x216b1e}};if(!_0x5a27f7||typeof _0x5a27f7!==_0x144809(0x1d1))return{'id':undefined,'entity':{}};const _0x2e0026={..._0x5a27f7},_0x47844e=toFiniteNumber(_0x2e0026['id']);return _0x47844e!==undefined&&(_0x2e0026['id']=_0x47844e),{'id':_0x47844e,'entity':_0x2e0026};}
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 +1 @@
1
- function a347_0x24a6(){const _0x223ec2=['7291740OMnwwT','526174mqIPHx','222688zjdxKL','550Momxas','8291745TUsMvk','1245585VniKYH','2ETIwQQ','556wWVMQP','351RZTUla','isDirectory','332060WyFMtP','48220aEXTjC'];a347_0x24a6=function(){return _0x223ec2;};return a347_0x24a6();}function a347_0x589e(_0x269bd0,_0x3c8fc4){_0x269bd0=_0x269bd0-0x138;const _0x24a6d6=a347_0x24a6();let _0x589ee7=_0x24a6d6[_0x269bd0];return _0x589ee7;}(function(_0x56ab07,_0x1b2bba){const _0x2908ce=a347_0x589e,_0x259489=_0x56ab07();while(!![]){try{const _0x34ab5f=-parseInt(_0x2908ce(0x139))/0x1+-parseInt(_0x2908ce(0x13e))/0x2*(parseInt(_0x2908ce(0x13d))/0x3)+parseInt(_0x2908ce(0x13f))/0x4*(-parseInt(_0x2908ce(0x143))/0x5)+parseInt(_0x2908ce(0x138))/0x6+parseInt(_0x2908ce(0x13c))/0x7+-parseInt(_0x2908ce(0x13a))/0x8*(parseInt(_0x2908ce(0x140))/0x9)+parseInt(_0x2908ce(0x142))/0xa*(parseInt(_0x2908ce(0x13b))/0xb);if(_0x34ab5f===_0x1b2bba)break;else _0x259489['push'](_0x259489['shift']());}catch(_0x59be29){_0x259489['push'](_0x259489['shift']());}}}(a347_0x24a6,0xa919c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x474150,_0x289e95){const _0x3021bf=a347_0x589e,_0x2abfb3=statSync(_0x474150);if(_0x2abfb3[_0x3021bf(0x141)]()){!existsSync(_0x289e95)&&mkdirSync(_0x289e95,{'recursive':!![]});const _0x459d8f=readdirSync(_0x474150);for(const _0x3fb64c of _0x459d8f){await copyDir(join(_0x474150,_0x3fb64c),join(_0x289e95,_0x3fb64c));}}else copyFileSync(_0x474150,_0x289e95);}export function ensureDir(_0x383c4c){!existsSync(_0x383c4c)&&mkdirSync(_0x383c4c,{'recursive':!![]});}export function pathExists(_0x5683bc){return existsSync(_0x5683bc);}
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 +1 @@
1
- const a348_0x10552c=a348_0x9c66;(function(_0x12e0c7,_0x417b17){const _0xc8c8e0=a348_0x9c66,_0x5a4a49=_0x12e0c7();while(!![]){try{const _0x35d085=parseInt(_0xc8c8e0(0x1e7))/0x1*(-parseInt(_0xc8c8e0(0x1e3))/0x2)+parseInt(_0xc8c8e0(0x1e4))/0x3*(-parseInt(_0xc8c8e0(0x1d8))/0x4)+parseInt(_0xc8c8e0(0x1ec))/0x5+parseInt(_0xc8c8e0(0x1db))/0x6+parseInt(_0xc8c8e0(0x1d7))/0x7+parseInt(_0xc8c8e0(0x1e1))/0x8+-parseInt(_0xc8c8e0(0x1d3))/0x9;if(_0x35d085===_0x417b17)break;else _0x5a4a49['push'](_0x5a4a49['shift']());}catch(_0x15d418){_0x5a4a49['push'](_0x5a4a49['shift']());}}}(a348_0x2079,0x51bcb));function a348_0x9c66(_0x54c82c,_0x539d72){_0x54c82c=_0x54c82c-0x1d2;const _0x2079f4=a348_0x2079();let _0x9c669e=_0x2079f4[_0x54c82c];return _0x9c669e;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a348_0x2079(){const _0x1aac2d=['content','json','CDN\x20returned\x20invalid\x20data','/skills/guides.json','6915690KNGbdR','replace','trimEnd','object','1498301aIvimZ','28VQnnhI','keys','guides','2818536sbjXAK','application/json','.lovrabet','extendContent','.lovrabet/skill/guides','push','4659256rEUkoD','length','334douUYu','215031okYtAf','utf-8','skillTemplate','443FrDvZk','statusText','\x0a\x0a>更新时间:','entries','join','2063595FZoSFo','cache','lastUpdated'];a348_0x2079=function(){return _0x1aac2d;};return a348_0x2079();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x55fa74=a348_0x9c66,_0x3ded48=getTemplateBaseUrl();return _0x3ded48+_0x55fa74(0x1d2);}const CACHE_DIR=join(homedir(),a348_0x10552c(0x1dd),a348_0x10552c(0x1ed));export async function fetchGuidesFromCDN(){const _0x43e78b=a348_0x10552c,_0x253f70=getGuidesCdnUrl(),_0x18f847=await fetch(_0x253f70,{'headers':{'Accept':_0x43e78b(0x1dc)}});if(!_0x18f847['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x18f847['status']+'\x20'+_0x18f847[_0x43e78b(0x1e8)]);const _0x105902=await _0x18f847[_0x43e78b(0x1f0)]();if(!_0x105902['guides']||typeof _0x105902['guides']!==_0x43e78b(0x1d6))throw new Error(_0x43e78b(0x1f1));return _0x105902;}export function writeGuidesToProject(_0x266652,_0x3e2b71,_0x442321=a348_0x10552c(0x1df),_0x40a92f){const _0x43d2a4=a348_0x10552c,_0x4ade37=join(_0x3e2b71,_0x442321);mkdirSync(_0x4ade37,{'recursive':!![]});for(const [_0x5455da,_0x1745fb]of Object[_0x43d2a4(0x1ea)](_0x266652[_0x43d2a4(0x1da)])){let _0x4fe329=_0x1745fb[_0x43d2a4(0x1ef)];_0x1745fb[_0x43d2a4(0x1ee)]&&(_0x4fe329=appendUpdateTime(_0x4fe329,_0x1745fb[_0x43d2a4(0x1ee)])),writeFileSync(join(_0x4ade37,_0x5455da+'.md'),_0x4fe329,_0x43d2a4(0x1e5));}}export function appendUpdateTime(_0x169dc4,_0x2adb1b){const _0x50373a=a348_0x10552c;return _0x169dc4=_0x169dc4[_0x50373a(0x1d4)](/\n*>更新时间:.*$/m,''),_0x169dc4[_0x50373a(0x1d5)]()+(_0x50373a(0x1e9)+_0x2adb1b);}export function getSkillTemplate(_0x1170ad){const _0x327e06=a348_0x10552c;return _0x1170ad[_0x327e06(0x1e6)]?.[_0x327e06(0x1ef)]||'';}export function appendExtendContents(_0x37c691,_0x5e056b,_0x3e6960){const _0x280314=a348_0x10552c,_0x56b68b=[];for(const [,_0x1ad85d]of Object['entries'](_0x5e056b['guides'])){_0x1ad85d['extendContent']&&_0x56b68b[_0x280314(0x1e0)](_0x1ad85d[_0x280314(0x1de)][_0x280314(0x1d5)]());}if(_0x56b68b['length']===0x0)return _0x37c691;return _0x37c691[_0x280314(0x1d5)]()+'\x0a\x0a'+_0x56b68b[_0x280314(0x1eb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x22094d,_0x33e589,_0xe1ccf6){const _0x2a6714=a348_0x10552c,_0xc0033f=getSkillTemplate(_0x22094d);if(!_0xc0033f)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x4d4924=dirname(_0x33e589);mkdirSync(_0x4d4924,{'recursive':!![]});let _0x1f5b06=_0xc0033f[_0x2a6714(0x1d4)](/\{\{IDE_NAME\}\}/g,_0xe1ccf6);_0x1f5b06=appendExtendContents(_0x1f5b06,_0x22094d),_0x22094d[_0x2a6714(0x1e6)][_0x2a6714(0x1ee)]&&(_0x1f5b06=appendUpdateTime(_0x1f5b06,_0x22094d['skillTemplate'][_0x2a6714(0x1ee)])),writeFileSync(_0x33e589,_0x1f5b06,_0x2a6714(0x1e5));}export async function installGuides(_0x4d4a86){const _0x4ab8ad=a348_0x10552c,_0x1d339f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1d339f,_0x4d4a86),Object[_0x4ab8ad(0x1d9)](_0x1d339f[_0x4ab8ad(0x1da)])[_0x4ab8ad(0x1e2)];}export function getGuidesSummary(_0x5d9b34){const _0x46762d=a348_0x10552c;return Object[_0x46762d(0x1ea)](_0x5d9b34['guides'])['map'](([_0x40330e,_0x232bd7])=>({'key':_0x40330e,'title':_0x232bd7['title'],'path':_0x232bd7['path']}));}
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 +1 @@
1
- (function(_0x40352d,_0x2efb96){const _0x3f90d9=a349_0xbc5c,_0x359ac8=_0x40352d();while(!![]){try{const _0x39ddd6=parseInt(_0x3f90d9(0x16a))/0x1+parseInt(_0x3f90d9(0x166))/0x2*(-parseInt(_0x3f90d9(0x175))/0x3)+-parseInt(_0x3f90d9(0x162))/0x4+parseInt(_0x3f90d9(0x17c))/0x5*(parseInt(_0x3f90d9(0x169))/0x6)+parseInt(_0x3f90d9(0x16f))/0x7*(-parseInt(_0x3f90d9(0x163))/0x8)+-parseInt(_0x3f90d9(0x16c))/0x9*(-parseInt(_0x3f90d9(0x170))/0xa)+parseInt(_0x3f90d9(0x16d))/0xb*(parseInt(_0x3f90d9(0x174))/0xc);if(_0x39ddd6===_0x2efb96)break;else _0x359ac8['push'](_0x359ac8['shift']());}catch(_0x2d2bbe){_0x359ac8['push'](_0x359ac8['shift']());}}}(a349_0xd58e,0x50f60));export async function httpRequest(_0x3e66fe,_0x55d04f={}){const _0x201829=a349_0xbc5c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x55d04f;let _0xe49024=null;for(let _0x1bea61=0x0;_0x1bea61<=retries;_0x1bea61++){try{const _0x76885b=new AbortController(),_0x64e12=setTimeout(()=>_0x76885b['abort'](),timeout),_0x2e91a8=await fetch(_0x3e66fe,{'headers':headers,'signal':_0x76885b[_0x201829(0x172)]});clearTimeout(_0x64e12);let _0x12f910;const _0x2cfd7f=_0x2e91a8['headers'][_0x201829(0x168)](_0x201829(0x164));return _0x2cfd7f?.[_0x201829(0x15e)](_0x201829(0x173))?_0x12f910=await _0x2e91a8[_0x201829(0x15d)]():_0x12f910=await _0x2e91a8[_0x201829(0x16b)](),{'ok':_0x2e91a8['ok'],'status':_0x2e91a8[_0x201829(0x15f)],'statusText':_0x2e91a8['statusText'],'data':_0x12f910,'headers':_0x2e91a8[_0x201829(0x167)],'url':_0x2e91a8['url'],'text':()=>_0x2e91a8['text']()};}catch(_0x520906){_0xe49024=_0x520906 instanceof Error?_0x520906:new Error(String(_0x520906));if(_0x1bea61===retries)break;if(shouldRetry(_0x520906)){console[_0x201829(0x17a)](_0x201829(0x160)+(_0x1bea61+0x1)+_0x201829(0x165)+retryDelay+_0x201829(0x17b)),await sleep(retryDelay);continue;}else break;}}throw _0xe49024||new Error(_0x201829(0x177));}function shouldRetry(_0x1453a9){const _0x40330e=a349_0xbc5c;if(_0x1453a9 instanceof Error){if(_0x1453a9[_0x40330e(0x16e)]===_0x40330e(0x179))return![];if(_0x1453a9[_0x40330e(0x16e)]===_0x40330e(0x171)&&_0x1453a9[_0x40330e(0x161)][_0x40330e(0x15e)](_0x40330e(0x178)))return!![];if(_0x1453a9[_0x40330e(0x161)][_0x40330e(0x15e)]('ECONNRESET'))return!![];if(_0x1453a9['message'][_0x40330e(0x15e)](_0x40330e(0x176)))return![];}return![];}function a349_0xbc5c(_0x3c7f0b,_0x1f4029){_0x3c7f0b=_0x3c7f0b-0x15d;const _0xd58e35=a349_0xd58e();let _0xbc5c19=_0xd58e35[_0x3c7f0b];return _0xbc5c19;}function a349_0xd58e(){const _0x46df58=['537987xIxLnT','text','36RhnqTL','1243cAAgfO','name','501627HYjmmb','383310OQtBUv','TypeError','signal','application/json','49464fgsBzn','69ONKxYL','ENOTFOUND','Request\x20failed','fetch','AbortError','log','ms...','25zADHIW','json','includes','status','*\x20Request\x20failed;\x20retry\x20','message','316312sJLwEi','72jsrqWj','content-type','\x20in\x20','41966nCOOsy','headers','get','457386bTfUOO'];a349_0xd58e=function(){return _0x46df58;};return a349_0xd58e();}function sleep(_0x46cfbb){return new Promise(_0x1040fd=>setTimeout(_0x1040fd,_0x46cfbb));}export function validateUrl(_0x1261a1){try{return new URL(_0x1261a1),!![];}catch{return![];}}
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 +1 @@
1
- (function(_0x296d6d,_0x43be18){const _0x747b82=a350_0x357d,_0x1edac7=_0x296d6d();while(!![]){try{const _0x456a4b=-parseInt(_0x747b82(0x169))/0x1*(-parseInt(_0x747b82(0x161))/0x2)+parseInt(_0x747b82(0x15f))/0x3*(parseInt(_0x747b82(0x16c))/0x4)+parseInt(_0x747b82(0x164))/0x5+-parseInt(_0x747b82(0x165))/0x6+parseInt(_0x747b82(0x16a))/0x7*(parseInt(_0x747b82(0x168))/0x8)+parseInt(_0x747b82(0x15c))/0x9*(-parseInt(_0x747b82(0x167))/0xa)+-parseInt(_0x747b82(0x16b))/0xb;if(_0x456a4b===_0x43be18)break;else _0x1edac7['push'](_0x1edac7['shift']());}catch(_0x2db61e){_0x1edac7['push'](_0x1edac7['shift']());}}}(a350_0x2515,0x7ee28));function a350_0x2515(){const _0x2f7c78=['21249558RgqsNU','315388VSXFoV','7677468BquUCs','setRawMode','isRaw','36OyBYTm','stdout','8972pciaGr','stdin','isTTY','4977685poWJgF','2806800ZWqsPC','true','10udaFzq','301832zyxKDo','181dNJNYT','189pIUtoP'];a350_0x2515=function(){return _0x2f7c78;};return a350_0x2515();}function a350_0x357d(_0x58555d,_0x52b28a){_0x58555d=_0x58555d-0x15c;const _0x251539=a350_0x2515();let _0x357df8=_0x251539[_0x58555d];return _0x357df8;}function env(_0xf795c){return process.env[`RABETBASE_${_0xf795c}`]||process.env[`LOVRABET_${_0xf795c}`]||undefined;}export function isNonInteractive(_0x2f8ce7){const _0x577b74=a350_0x357d;return!!(_0x2f8ce7['nonInteractive']||_0x2f8ce7['ci']||env('CI')===_0x577b74(0x166)||process.env.CI===_0x577b74(0x166)||!process[_0x577b74(0x160)][_0x577b74(0x163)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4b1aa7=a350_0x357d;if(!process[_0x4b1aa7(0x162)]['isTTY'])return![];try{const _0x5aef92=process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15e)];return process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15d)](!![]),process[_0x4b1aa7(0x162)][_0x4b1aa7(0x15d)](_0x5aef92??![]),!![];}catch{return![];}}
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 +1 @@
1
- const a351_0x411139=a351_0x4009;function a351_0x34ce(){const _0xe073e0=['yellow','clearLogs','1616SSWwkF','readLogs','126007zKGxHL','getWinstonInstance','toISOString','split','addColors','currentRawCommand','log','setRawCommand','info','1046225HCsFMy','17028gaQiJH','message','mkdirSync','initWinstonLogger','winstonLogger','200051MUhvsC','createLogger','existsSync','now','green','Failed\x20to\x20read\x20logs:','File','stringify','unknown','details','clear','Completed:\x20','148032PXYIQd','923052nOPvsL','combine','parse','transports','logFilePath','red','setLogPath','warn','filter','dirname','error','success','command','12xDXfzF','Starting:\x20','duration','rawCommand','level','utf8','errors','Failed:\x20','logTask','join','timestamp','format','115898FIGeSy'];a351_0x34ce=function(){return _0xe073e0;};return a351_0x34ce();}(function(_0x15aa64,_0x2018b0){const _0x136257=a351_0x4009,_0x30a2b5=_0x15aa64();while(!![]){try{const _0x119532=parseInt(_0x136257(0xbd))/0x1+parseInt(_0x136257(0xa9))/0x2+-parseInt(_0x136257(0x9d))/0x3*(parseInt(_0x136257(0x8f))/0x4)+-parseInt(_0x136257(0xb7))/0x5+-parseInt(_0x136257(0x90))/0x6+parseInt(_0x136257(0xae))/0x7+-parseInt(_0x136257(0xac))/0x8*(-parseInt(_0x136257(0xb8))/0x9);if(_0x119532===_0x2018b0)break;else _0x30a2b5['push'](_0x30a2b5['shift']());}catch(_0x3603ec){_0x30a2b5['push'](_0x30a2b5['shift']());}}}(a351_0x34ce,0x23e7a));import a351_0x338f57 from'winston';import a351_0x33af6e from'node:fs';function a351_0x4009(_0x4b0f73,_0x308699){_0x4b0f73=_0x4b0f73-0x8b;const _0x34ce36=a351_0x34ce();let _0x40094d=_0x34ce36[_0x4b0f73];return _0x40094d;}import a351_0x4fe288 from'node:path';class Logger{[a351_0x411139(0xbc)];['logFilePath'];[a351_0x411139(0xb3)]='';constructor(){const _0x980ba=a351_0x411139;this[_0x980ba(0x94)]='';}[a351_0x411139(0xb5)](_0x1c02bf){const _0x4f563a=a351_0x411139;this[_0x4f563a(0xb3)]=_0x1c02bf;}['initWinstonLogger'](){const _0x403b4b=a351_0x411139,_0x27cf1c=a351_0x4fe288[_0x403b4b(0x99)](this['logFilePath']);!a351_0x33af6e[_0x403b4b(0xbf)](_0x27cf1c)&&a351_0x33af6e[_0x403b4b(0xba)](_0x27cf1c,{'recursive':!![]});const _0x4c9eef=a351_0x338f57[_0x403b4b(0xa8)][_0x403b4b(0x91)](a351_0x338f57['format']['timestamp'](),a351_0x338f57[_0x403b4b(0xa8)][_0x403b4b(0xa3)]({'stack':!![]}),a351_0x338f57[_0x403b4b(0xa8)]['printf'](_0x178fd8=>{const _0x3d0774=_0x403b4b,_0xbf02d0={'timestamp':_0x178fd8[_0x3d0774(0xa7)]||new Date()[_0x3d0774(0xb0)](),'level':_0x178fd8[_0x3d0774(0xa1)]||'info','command':_0x178fd8[_0x3d0774(0x9c)]||_0x3d0774(0x8b),'rawCommand':_0x178fd8[_0x3d0774(0xa0)]||this[_0x3d0774(0xb3)]||undefined,'message':_0x178fd8[_0x3d0774(0xb9)]||'','duration':_0x178fd8[_0x3d0774(0x9f)]||undefined,'details':_0x178fd8[_0x3d0774(0x8c)]||undefined};return JSON[_0x3d0774(0xc4)](_0xbf02d0);}));this[_0x403b4b(0xbc)]=a351_0x338f57[_0x403b4b(0xbe)]({'level':_0x403b4b(0xb6),'format':_0x4c9eef,'transports':[new a351_0x338f57[(_0x403b4b(0x93))][(_0x403b4b(0xc3))]({'filename':this[_0x403b4b(0x94)],'level':_0x403b4b(0xb6)})],'silent':![]}),a351_0x338f57[_0x403b4b(0xb2)]({'success':_0x403b4b(0xc1),'error':_0x403b4b(0x95),'warn':_0x403b4b(0xaa),'info':'blue'});}[a351_0x411139(0x96)](_0x55264c){const _0x14b9a9=a351_0x411139;this[_0x14b9a9(0x94)]=a351_0x4fe288[_0x14b9a9(0xa6)](_0x55264c,'.lovrabet.log'),this['winstonLogger']&&this['winstonLogger'][_0x14b9a9(0x8d)](),this[_0x14b9a9(0xbb)]();}[a351_0x411139(0xb6)](_0x2653ad,_0x4d4dca,_0x18b201){const _0x25d694=a351_0x411139;if(!this[_0x25d694(0x94)]||!this[_0x25d694(0xbc)])return;this[_0x25d694(0xbc)][_0x25d694(0xb6)](_0x4d4dca,{'command':_0x2653ad,'details':_0x18b201});}[a351_0x411139(0x9b)](_0x275b9c,_0x2e3922,_0x49b2e6,_0x2060fa){const _0x439f3e=a351_0x411139;if(!this[_0x439f3e(0x94)]||!this[_0x439f3e(0xbc)])return;this['winstonLogger'][_0x439f3e(0xb4)]('info',_0x2e3922,{'level':_0x439f3e(0x9b),'command':_0x275b9c,'duration':_0x49b2e6,'details':_0x2060fa});}[a351_0x411139(0x9a)](_0x41e0ab,_0x13cfa1,_0x146100){const _0x192adc=a351_0x411139;if(!this[_0x192adc(0x94)]||!this[_0x192adc(0xbc)])return;this['winstonLogger'][_0x192adc(0x9a)](_0x13cfa1,{'command':_0x41e0ab,'details':_0x146100});}[a351_0x411139(0x97)](_0xac5118,_0x2bbf40,_0x4fbf7e){const _0x3d39ee=a351_0x411139;if(!this[_0x3d39ee(0x94)]||!this[_0x3d39ee(0xbc)])return;this['winstonLogger'][_0x3d39ee(0x97)](_0x2bbf40,{'command':_0xac5118,'details':_0x4fbf7e});}async[a351_0x411139(0xa5)](_0x414fbd,_0x312497,_0x17a647){const _0x2c2230=a351_0x411139,_0x2e0150=Date[_0x2c2230(0xc0)]();this[_0x2c2230(0xb6)](_0x414fbd,_0x2c2230(0x9e)+_0x312497);try{const _0x5c9097=await _0x17a647(),_0x16c0ef=Date[_0x2c2230(0xc0)]()-_0x2e0150;return this[_0x2c2230(0x9b)](_0x414fbd,_0x2c2230(0x8e)+_0x312497,_0x16c0ef),_0x5c9097;}catch(_0x25e9a0){const _0x54ac9f=Date['now']()-_0x2e0150;this['error'](_0x414fbd,_0x2c2230(0xa4)+_0x312497,{'error':_0x25e9a0 instanceof Error?_0x25e9a0[_0x2c2230(0xb9)]:String(_0x25e9a0),'duration':_0x54ac9f});throw _0x25e9a0;}}[a351_0x411139(0xad)](){const _0x2082ed=a351_0x411139;try{if(!a351_0x33af6e[_0x2082ed(0xbf)](this[_0x2082ed(0x94)]))return[];const _0x54f0e2=a351_0x33af6e['readFileSync'](this[_0x2082ed(0x94)],_0x2082ed(0xa2));return _0x54f0e2[_0x2082ed(0xb1)]('\x0a')[_0x2082ed(0x98)](_0x3684b4=>_0x3684b4['trim']())['map'](_0x17c0f7=>JSON[_0x2082ed(0x92)](_0x17c0f7));}catch(_0xf50325){return console[_0x2082ed(0x97)](_0x2082ed(0xc2),_0xf50325),[];}}[a351_0x411139(0xab)](){const _0x5194e9=a351_0x411139;try{a351_0x33af6e[_0x5194e9(0xbf)](this['logFilePath'])&&a351_0x33af6e['writeFileSync'](this[_0x5194e9(0x94)],'','utf8');}catch(_0x4711db){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4711db);}}[a351_0x411139(0xaf)](){return this['winstonLogger'];}}export const logger=new Logger();
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 +1 @@
1
- function a352_0x33b8(){const _0x1a4af2=['validation','6XPkrhF','130duiPVh','14ClLqjF','2079900KgKfSH','349709zakFmb','Invalid\x20JSON\x20for\x20--params:\x20','47105RkbLUH','--params\x20must\x20be\x20a\x20JSON\x20object','904204PHSSKb','parse','object','1716472BJyRNe','2194QZdHxe','657ydmhXh','20317uzWzfA'];a352_0x33b8=function(){return _0x1a4af2;};return a352_0x33b8();}(function(_0x1ef215,_0x5b0210){const _0x7d1967=a352_0x1906,_0x2c5b14=_0x1ef215();while(!![]){try{const _0x363bbe=-parseInt(_0x7d1967(0x1ce))/0x1+parseInt(_0x7d1967(0x1d6))/0x2*(parseInt(_0x7d1967(0x1d7))/0x3)+-parseInt(_0x7d1967(0x1d2))/0x4+-parseInt(_0x7d1967(0x1d0))/0x5*(parseInt(_0x7d1967(0x1da))/0x6)+-parseInt(_0x7d1967(0x1cc))/0x7*(-parseInt(_0x7d1967(0x1d5))/0x8)+parseInt(_0x7d1967(0x1cd))/0x9+parseInt(_0x7d1967(0x1db))/0xa*(-parseInt(_0x7d1967(0x1d8))/0xb);if(_0x363bbe===_0x5b0210)break;else _0x2c5b14['push'](_0x2c5b14['shift']());}catch(_0x408bb9){_0x2c5b14['push'](_0x2c5b14['shift']());}}}(a352_0x33b8,0x471c5));function a352_0x1906(_0xc4f973,_0x452082){_0xc4f973=_0xc4f973-0x1cc;const _0x33b81c=a352_0x33b8();let _0x190654=_0x33b81c[_0xc4f973];return _0x190654;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x158cb0){const _0x12ed92=a352_0x1906;if(!_0x158cb0)return undefined;let _0x46447e;try{_0x46447e=JSON[_0x12ed92(0x1d3)](_0x158cb0);}catch{throw CliErrors[_0x12ed92(0x1d9)](_0x12ed92(0x1cf)+_0x158cb0);}if(!_0x46447e||typeof _0x46447e!==_0x12ed92(0x1d4)||Array['isArray'](_0x46447e))throw CliErrors['validation'](_0x12ed92(0x1d1),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x46447e;}
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 +1 @@
1
- const a353_0x4da725=a353_0x8312;(function(_0x44fbb6,_0x49bb46){const _0x9fd873=a353_0x8312,_0x2f8636=_0x44fbb6();while(!![]){try{const _0x5e808d=parseInt(_0x9fd873(0x19d))/0x1+-parseInt(_0x9fd873(0x19e))/0x2+-parseInt(_0x9fd873(0x19f))/0x3+-parseInt(_0x9fd873(0x1a1))/0x4*(parseInt(_0x9fd873(0x1a3))/0x5)+-parseInt(_0x9fd873(0x1a0))/0x6+-parseInt(_0x9fd873(0x1a2))/0x7+parseInt(_0x9fd873(0x19c))/0x8;if(_0x5e808d===_0x49bb46)break;else _0x2f8636['push'](_0x2f8636['shift']());}catch(_0x1aac06){_0x2f8636['push'](_0x2f8636['shift']());}}}(a353_0x827a,0x21f55));function a353_0x8312(_0x2ec538,_0x30daca){_0x2ec538=_0x2ec538-0x19c;const _0x827a47=a353_0x827a();let _0x8312c1=_0x827a47[_0x2ec538];return _0x8312c1;}export const isWindows=process[a353_0x4da725(0x1a6)]===a353_0x4da725(0x1a5);function a353_0x827a(){const _0x34fe62=['4Aryzfj','1086022hhEOGa','462635gcXJRB','.cmd','win32','platform','5315928qaOoIK','129350MlGCoI','376750ZkduaG','585060DzWEkx','142080ooEcMQ'];a353_0x827a=function(){return _0x34fe62;};return a353_0x827a();}export function resolveNpmBin(_0x316b72){const _0x55dbbf=a353_0x4da725;return isWindows?_0x316b72+_0x55dbbf(0x1a4):_0x316b72;}
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 +1 @@
1
- export function sleep(_0x378844){return new Promise(_0x5921a5=>setTimeout(_0x5921a5,_0x378844));}
1
+ export function sleep(_0x4d2fc6){return new Promise(_0x2484a6=>setTimeout(_0x2484a6,_0x4d2fc6));}
@@ -1 +1 @@
1
- function a355_0x1800(){const _0x1dc038=['getDate','default','now','includes','slice','datasetCode:\x20\x22','2115972EgsADK','replaceContent','copyFile','Starting\x20template\x20content\x20replacement','.js','.tpl','charAt','split','sdk-config','11424501rYAOaI','name:\x20\x22','YourModel','isDirectory','push','padStart','replace','getMonth','tableName:\x20\x22','toComponentName','toUpperCase','.css','2913085mWOUkq','.jsx','utf8','780320ZPTbyt','8313730gRfIxe','.md','readFile','getHours','1298iIvqQv','processDirectory','pop','readdir','endsWith','\x20},','121221CJwnID','mkdir','getSeconds','map','.scss','getMinutes','promises','info','pad','8TMnRHF','toDisplayTitle','datasetCode','24OyEOyF','replaceApiContent','writeFile','alias','name','extname','\x0a\x20\x20\x20\x20{\x20','processFile','tableName','success','Template\x20content\x20replacement\x20failed','isFile','toLowerCase','formatLocalTimestamp','join','Template\x20content\x20replacement\x20completed','template','processTemplate','6srJBjU','alias:\x20\x22','LOVRABET','24DNyBHo'];a355_0x1800=function(){return _0x1dc038;};return a355_0x1800();}const a355_0x4ffcd8=a355_0x563c;(function(_0x33cede,_0x44d536){const _0x4a7905=a355_0x563c,_0x4e3d89=_0x33cede();while(!![]){try{const _0x53776f=-parseInt(_0x4a7905(0x1d7))/0x1*(parseInt(_0x4a7905(0x19e))/0x2)+parseInt(_0x4a7905(0x1ba))/0x3+-parseInt(_0x4a7905(0x19b))/0x4*(-parseInt(_0x4a7905(0x1d2))/0x5)+-parseInt(_0x4a7905(0x1b0))/0x6*(parseInt(_0x4a7905(0x1cf))/0x7)+-parseInt(_0x4a7905(0x1b3))/0x8*(-parseInt(_0x4a7905(0x192))/0x9)+parseInt(_0x4a7905(0x1d3))/0xa+-parseInt(_0x4a7905(0x1c3))/0xb;if(_0x53776f===_0x44d536)break;else _0x4e3d89['push'](_0x4e3d89['shift']());}catch(_0x1680b2){_0x4e3d89['push'](_0x4e3d89['shift']());}}}(a355_0x1800,0x6645e));function a355_0x563c(_0x1aa893,_0x3e0a03){_0x1aa893=_0x1aa893-0x18e;const _0x18005a=a355_0x1800();let _0x563c2d=_0x18005a[_0x1aa893];return _0x563c2d;}import a355_0x323068 from'node:fs';import a355_0x25ea03 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a355_0x4ffcd8(0x19a)](_0x37dc82){const _0x40a241=a355_0x4ffcd8;return String(_0x37dc82)[_0x40a241(0x1c8)](0x2,'0');}static[a355_0x4ffcd8(0x1ab)](_0x9ec65){const _0x461aa3=a355_0x4ffcd8,_0xe0bb15=_0x9ec65['getFullYear'](),_0x1519ad=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1ca)]()+0x1),_0x1e92c5=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1b4)]()),_0x20a471=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1d6)]()),_0x1f5e23=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x197)]()),_0x412902=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x194)]());return{'createdAt':_0xe0bb15+'-'+_0x1519ad+'-'+_0x1e92c5+'\x20'+_0x20a471+':'+_0x1f5e23+':'+_0x412902,'createdDate':_0xe0bb15+'-'+_0x1519ad+'-'+_0x1e92c5,'createdTime':_0x20a471+':'+_0x1f5e23+':'+_0x412902};}static[a355_0x4ffcd8(0x1cc)](_0xfd27ce){const _0x1269ae=a355_0x4ffcd8,_0xa67238=_0xfd27ce[_0x1269ae(0x1c1)]('/')['pop']()||_0xfd27ce;return _0xa67238[_0x1269ae(0x1c1)]('-')[_0x1269ae(0x195)](_0x39cdd6=>_0x39cdd6[_0x1269ae(0x1c0)](0x0)[_0x1269ae(0x1cd)]()+_0x39cdd6['slice'](0x1)[_0x1269ae(0x1aa)]())[_0x1269ae(0x1ac)]('');}static[a355_0x4ffcd8(0x19c)](_0x5392b4){const _0x7cbe1f=a355_0x4ffcd8,_0xae2dde=_0x5392b4[_0x7cbe1f(0x1c1)]('/')[_0x7cbe1f(0x18e)]()||_0x5392b4;return _0xae2dde[_0x7cbe1f(0x1c1)]('-')[_0x7cbe1f(0x195)](_0x319288=>_0x319288[_0x7cbe1f(0x1c0)](0x0)['toUpperCase']()+_0x319288[_0x7cbe1f(0x1b8)](0x1)[_0x7cbe1f(0x1aa)]())[_0x7cbe1f(0x1ac)]('\x20');}static['replaceContent'](_0x66a882,_0x4d540a,_0x1b22d1){const _0x28c0b8=a355_0x4ffcd8,_0x57884f=this[_0x28c0b8(0x1cc)](_0x4d540a),_0x56ab70=this[_0x28c0b8(0x19c)](_0x4d540a),{createdAt:_0x45a1c2,createdDate:_0x4e7a81,createdTime:_0x5e3a82}=this['formatLocalTimestamp'](new Date());let _0x7740ac=_0x66a882[_0x28c0b8(0x1c9)](/\{CliVersion\}/g,CLI_VERSION)[_0x28c0b8(0x1c9)](/\{ComponentName\}/g,_0x57884f)[_0x28c0b8(0x1c9)](/\{DisplayTitle\}/g,_0x56ab70)[_0x28c0b8(0x1c9)](/\{PageName\}/g,_0x4d540a)[_0x28c0b8(0x1c9)](/\{TemplateName\}/g,_0x1b22d1)[_0x28c0b8(0x1c9)](/\{CreatedAt\}/g,_0x45a1c2)['replace'](/\{CreatedDate\}/g,_0x4e7a81)['replace'](/\{CreatedTime\}/g,_0x5e3a82);return _0x7740ac;}static[a355_0x4ffcd8(0x19f)](_0x4454b0,_0x48a671,_0x4076aa,_0x47870f,_0x47664c,_0x2d2633,_0x5aea4f,_0x592ffa,_0x2452eb){const _0x58c48d=a355_0x4ffcd8,_0x8d64f=new Date(),_0x26aab6=_0x8d64f['toISOString'](),_0x4208d5=_0x4076aa['map'](_0x5ca3f7=>{const _0x1f0142=a355_0x563c,_0x5664e3=[_0x1f0142(0x1b9)+_0x5ca3f7[_0x1f0142(0x19d)]+'\x22',_0x1f0142(0x1cb)+_0x5ca3f7[_0x1f0142(0x1a6)]+'\x22',_0x1f0142(0x1c4)+_0x5ca3f7[_0x1f0142(0x1a2)]+'\x22'];return _0x5ca3f7[_0x1f0142(0x1a1)]&&_0x5664e3[_0x1f0142(0x1c7)](_0x1f0142(0x1b1)+_0x5ca3f7[_0x1f0142(0x1a1)]+'\x22'),_0x1f0142(0x1a4)+_0x5664e3[_0x1f0142(0x1ac)](',\x20')+_0x1f0142(0x191);})[_0x58c48d(0x1ac)](''),_0x3d0f5c=_0x47870f||_0x4076aa[0x0]?.['alias']||_0x58c48d(0x1c5);let _0x3a83c0=_0x4454b0[_0x58c48d(0x1c9)](/\{AppCode\}/g,_0x48a671)[_0x58c48d(0x1c9)](/\{ModelConfigs\}/g,_0x4208d5)['replace'](/\{ExampleModelName\}/g,_0x3d0f5c)[_0x58c48d(0x1c9)](/\{ApiFileName\}/g,_0x47664c||'api')[_0x58c48d(0x1c9)](/\{ConfigName\}/g,_0x2d2633||_0x58c48d(0x1b5))[_0x58c48d(0x1c9)](/\{ClientConfigParam\}/g,_0x5aea4f||'')[_0x58c48d(0x1c9)](/\{SdkConfigFileName\}/g,_0x2452eb||_0x58c48d(0x1c2))['replace'](/\{VarPrefix\}/g,_0x592ffa||_0x58c48d(0x1b2))['replace'](/\{CreatedAt\}/g,_0x26aab6);return _0x3a83c0;}static async[a355_0x4ffcd8(0x1af)](_0x24fbcb,_0xe2bcb8,_0x28a035,_0x2767b9,_0x426506=!![]){const _0x3414e1=a355_0x4ffcd8,_0x5e4e80=Date[_0x3414e1(0x1b6)]();try{_0x426506&&logger[_0x3414e1(0x199)](_0x3414e1(0x1ae),_0x3414e1(0x1bd),{'templatePath':_0x24fbcb,'targetPath':_0xe2bcb8,'pageName':_0x28a035,'templateName':_0x2767b9});await a355_0x323068['promises'][_0x3414e1(0x193)](_0xe2bcb8,{'recursive':!![]}),await this[_0x3414e1(0x1d8)](_0x24fbcb,_0xe2bcb8,_0x28a035,_0x2767b9);if(_0x426506){const _0x46e6f3=Date['now']()-_0x5e4e80;logger[_0x3414e1(0x1a7)](_0x3414e1(0x1ae),_0x3414e1(0x1ad),_0x46e6f3,{'pageName':_0x28a035,'templateName':_0x2767b9});}}catch(_0x4028c4){if(_0x426506){const _0x4c0ed6=Date[_0x3414e1(0x1b6)]()-_0x5e4e80;logger['error'](_0x3414e1(0x1ae),_0x3414e1(0x1a8),{'templatePath':_0x24fbcb,'targetPath':_0xe2bcb8,'pageName':_0x28a035,'templateName':_0x2767b9,'error':_0x4028c4 instanceof Error?_0x4028c4['message']:String(_0x4028c4),'duration':_0x4c0ed6});}throw _0x4028c4;}}static async[a355_0x4ffcd8(0x1d8)](_0x48f81d,_0x15453c,_0xefde13,_0x4fbffb){const _0x3ca4a4=a355_0x4ffcd8,_0xd2b291=await a355_0x323068[_0x3ca4a4(0x198)][_0x3ca4a4(0x18f)](_0x48f81d,{'withFileTypes':!![]});for(const _0x5db80e of _0xd2b291){const _0x2b7602=a355_0x25ea03[_0x3ca4a4(0x1ac)](_0x48f81d,_0x5db80e[_0x3ca4a4(0x1a2)]);let _0xbdae43=a355_0x25ea03[_0x3ca4a4(0x1ac)](_0x15453c,_0x5db80e[_0x3ca4a4(0x1a2)]);_0x5db80e['name'][_0x3ca4a4(0x190)](_0x3ca4a4(0x1bf))&&(_0xbdae43=a355_0x25ea03['join'](_0x15453c,_0x5db80e[_0x3ca4a4(0x1a2)]['replace'](/\.tpl$/,'')));if(_0x5db80e[_0x3ca4a4(0x1c6)]())await a355_0x323068['promises']['mkdir'](_0xbdae43,{'recursive':!![]}),await this['processDirectory'](_0x2b7602,_0xbdae43,_0xefde13,_0x4fbffb);else _0x5db80e[_0x3ca4a4(0x1a9)]()&&await this[_0x3ca4a4(0x1a5)](_0x2b7602,_0xbdae43,_0xefde13,_0x4fbffb);}}static async[a355_0x4ffcd8(0x1a5)](_0x30e478,_0x5ed020,_0xdb91be,_0x502d4d){const _0x3a0d36=a355_0x4ffcd8,_0x5b0712=a355_0x25ea03[_0x3a0d36(0x1a3)](_0x30e478)['toLowerCase']();_0x30e478[_0x3a0d36(0x190)](_0x3a0d36(0x1bf))&&(_0x5ed020=_0x5ed020[_0x3a0d36(0x1c9)](/\.tpl$/,''));const _0x5630b9=['.tsx','.ts',_0x3a0d36(0x1d0),_0x3a0d36(0x1be),'.json',_0x3a0d36(0x1d4),_0x3a0d36(0x1ce),_0x3a0d36(0x196),_0x3a0d36(0x1bf)];if(_0x5630b9[_0x3a0d36(0x1b7)](_0x5b0712)||_0x30e478[_0x3a0d36(0x190)](_0x3a0d36(0x1bf))){const _0x3a7646=await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1d5)](_0x30e478,_0x3a0d36(0x1d1)),_0x4a9bd3=this[_0x3a0d36(0x1bb)](_0x3a7646,_0xdb91be,_0x502d4d);await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1a0)](_0x5ed020,_0x4a9bd3,'utf8');}else await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1bc)](_0x30e478,_0x5ed020);}}
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 +1 @@
1
- (function(_0x3e68e2,_0x208a90){const _0x32a635=a356_0xdc52,_0x275deb=_0x3e68e2();while(!![]){try{const _0x123aeb=-parseInt(_0x32a635(0x105))/0x1+parseInt(_0x32a635(0x106))/0x2*(parseInt(_0x32a635(0x101))/0x3)+-parseInt(_0x32a635(0x100))/0x4+parseInt(_0x32a635(0x118))/0x5+-parseInt(_0x32a635(0x10c))/0x6*(-parseInt(_0x32a635(0x103))/0x7)+-parseInt(_0x32a635(0xfe))/0x8+-parseInt(_0x32a635(0x107))/0x9;if(_0x123aeb===_0x208a90)break;else _0x275deb['push'](_0x275deb['shift']());}catch(_0x3cf38b){_0x275deb['push'](_0x275deb['shift']());}}}(a356_0x12b2,0xad336));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a356_0x6eb954 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';function a356_0xdc52(_0x38f009,_0x43f71d){_0x38f009=_0x38f009-0xfe;const _0x12b279=a356_0x12b2();let _0xdc526b=_0x12b279[_0x38f009];return _0xdc526b;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5c151d=a356_0xdc52,_0x420097=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x5c151d(0x111)]();return _0x420097==='1'||_0x420097===_0x5c151d(0x102)||_0x420097===_0x5c151d(0x113);}function cacheRoot(){const _0x169b3a=a356_0xdc52;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x169b3a(0x10d));}export function getUpdateNoticeCachePath(){const _0xefc11e=a356_0xdc52;return join(cacheRoot(),'rabetbase-cli',_0xefc11e(0x104));}async function readUpdateNoticeCache(){const _0x4555f1=a356_0xdc52;try{const _0x80fea7=await readFile(getUpdateNoticeCachePath(),_0x4555f1(0x109)),_0x71fd86=JSON[_0x4555f1(0x10f)](_0x80fea7);if(!_0x71fd86||typeof _0x71fd86!=='object')return{};return _0x71fd86;}catch{return{};}}async function writeUpdateNoticeCache(_0xad6274){const _0x57e246=a356_0xdc52;try{const _0x2b9206=getUpdateNoticeCachePath();await mkdir(dirname(_0x2b9206),{'recursive':!![]}),await writeFile(_0x2b9206,JSON['stringify'](_0xad6274,null,0x2)+'\x0a',_0x57e246(0x109));}catch{}}function isFreshCheck(_0x16ad15,_0x52370e){const _0x467a31=a356_0xdc52;return typeof _0x16ad15['checkedAt']===_0x467a31(0x114)&&_0x52370e-_0x16ad15[_0x467a31(0x108)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x386793,_0x5be163,_0x3c6e80){const _0x4ac392=a356_0xdc52;return _0x386793[_0x4ac392(0x10a)]===_0x5be163&&typeof _0x386793['lastNotifiedAt']===_0x4ac392(0x114)&&_0x3c6e80-_0x386793[_0x4ac392(0x116)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x53c057){const _0x361d4b=a356_0xdc52;return _0x361d4b(0x110)+NPM_PACKAGE_NAME+'/v/'+_0x53c057;}export async function resolveLatestUpdateNotice(){const _0x5ab96c=a356_0xdc52;if(isUpdateNoticeDisabled())return null;try{const _0x1f16a8=Date[_0x5ab96c(0x10b)](),_0x497b1a=getCliVersion(),_0x1a0df9=await readUpdateNoticeCache();let _0x2c8e52=isFreshCheck(_0x1a0df9,_0x1f16a8)?_0x1a0df9[_0x5ab96c(0x115)]?.[_0x5ab96c(0x117)]():undefined;if(!_0x2c8e52&&!isFreshCheck(_0x1a0df9,_0x1f16a8)){const _0x39fa09=await getCliVersionPolicy();_0x2c8e52=_0x39fa09?.['stableVersion']?.[_0x5ab96c(0x117)]()||undefined,await writeUpdateNoticeCache({..._0x1a0df9,'checkedAt':_0x1f16a8,'latest':_0x2c8e52,'failed':!_0x2c8e52});}if(!_0x2c8e52||!a356_0x6eb954[_0x5ab96c(0xff)](_0x497b1a)||!a356_0x6eb954[_0x5ab96c(0xff)](_0x2c8e52))return null;if(a356_0x6eb954[_0x5ab96c(0x112)](_0x497b1a,_0x2c8e52))return null;if(isRecentlyNotified(_0x1a0df9,_0x2c8e52,_0x1f16a8))return null;const _0x3ee85e=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1a0df9,'checkedAt':isFreshCheck(_0x1a0df9,_0x1f16a8)?_0x1a0df9[_0x5ab96c(0x108)]:_0x1f16a8,'latest':_0x2c8e52,'failed':![],'lastNotifiedVersion':_0x2c8e52,'lastNotifiedAt':_0x1f16a8}),{'command':_0x3ee85e,'current':_0x497b1a,'latest':_0x2c8e52,'url':buildNpmVersionUrl(_0x2c8e52),'message':CLI_BIN_NAME+'\x20'+_0x2c8e52+_0x5ab96c(0x10e)+_0x497b1a+',\x20run:\x20'+_0x3ee85e};}catch{return null;}}function a356_0x12b2(){const _0x13775f=['now','6mtRbTn','.cache','\x20available,\x20current\x20','parse','https://www.npmjs.com/package/','toLowerCase','gte','yes','number','latest','lastNotifiedAt','trim','5701345GjtAbi','1175264qYLNvF','valid','782372kcrDoY','3030738YFTJin','true','4990097XaxuOR','update-check.json','119595wOUWAE','2uCCHyF','15226740WLWvcA','checkedAt','utf8','lastNotifiedVersion'];a356_0x12b2=function(){return _0x13775f;};return a356_0x12b2();}
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 +1 @@
1
- (function(_0x2425fa,_0x604bdc){var _0x3e309f=a357_0x2516,_0x274bdd=_0x2425fa();while(!![]){try{var _0x34235d=-parseInt(_0x3e309f(0x1b6))/0x1+-parseInt(_0x3e309f(0x1b4))/0x2+parseInt(_0x3e309f(0x1b8))/0x3*(parseInt(_0x3e309f(0x1ba))/0x4)+parseInt(_0x3e309f(0x1be))/0x5+-parseInt(_0x3e309f(0x1b5))/0x6*(parseInt(_0x3e309f(0x1bc))/0x7)+parseInt(_0x3e309f(0x1b7))/0x8*(parseInt(_0x3e309f(0x1bb))/0x9)+-parseInt(_0x3e309f(0x1b9))/0xa*(-parseInt(_0x3e309f(0x1bd))/0xb);if(_0x34235d===_0x604bdc)break;else _0x274bdd['push'](_0x274bdd['shift']());}catch(_0x1e9683){_0x274bdd['push'](_0x274bdd['shift']());}}}(a357_0x2aef,0x98e80));import{VERSION}from'../generated/build-info.js';function a357_0x2516(_0x4551e1,_0x1beee1){_0x4551e1=_0x4551e1-0x1b4;var _0x2aeff0=a357_0x2aef();var _0x25168c=_0x2aeff0[_0x4551e1];return _0x25168c;}function a357_0x2aef(){var _0x426762=['10323FugcHu','2725513nXOZLi','3340513gwMgqD','1718240KVLHug','2345524kptWcH','12RQjLvL','108401UbclEX','5032TMqtqV','760281mODpQU','20hpQBKr','16LwgFQX'];a357_0x2aef=function(){return _0x426762;};return a357_0x2aef();}export function getCliVersion(){return VERSION;}
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 +1 @@
1
- function a358_0x4372(_0x2b70e0,_0x4faf4b){_0x2b70e0=_0x2b70e0-0xac;var _0x39e6ae=a358_0x39e6();var _0x437250=_0x39e6ae[_0x2b70e0];return _0x437250;}function a358_0x39e6(){var _0x392f97=['3273656XTtQCk','8jRzGaz','55370SJblBw','10VzleFp','1583988pjPlMt','270714HdpiBB','5468729gAEDGb','2574YBbLqF','711518JrNfnM','272956WMlEZe'];a358_0x39e6=function(){return _0x392f97;};return a358_0x39e6();}(function(_0x29d6fe,_0x58fdce){var _0x3628ee=a358_0x4372,_0x320f57=_0x29d6fe();while(!![]){try{var _0x325e96=parseInt(_0x3628ee(0xb5))/0x1+parseInt(_0x3628ee(0xac))/0x2+-parseInt(_0x3628ee(0xb1))/0x3+parseInt(_0x3628ee(0xad))/0x4+parseInt(_0x3628ee(0xb0))/0x5*(parseInt(_0x3628ee(0xb2))/0x6)+parseInt(_0x3628ee(0xb3))/0x7*(parseInt(_0x3628ee(0xae))/0x8)+-parseInt(_0x3628ee(0xb4))/0x9*(parseInt(_0x3628ee(0xaf))/0xa);if(_0x325e96===_0x58fdce)break;else _0x320f57['push'](_0x320f57['shift']());}catch(_0x104866){_0x320f57['push'](_0x320f57['shift']());}}}(a358_0x39e6,0x6814d));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4ea956,_0x357270){setActiveCookie(_0x4ea956);try{return await _0x357270();}finally{clearActiveCookie();}}
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 +1 @@
1
- function a359_0x3294(){var _0x58e8a3=['1261830JJExSI','4261165JQWDPU','1836seKrvu','40bgkFSP','551973WcqlVQ','63dSFUeW','55RJcasr','84waFrII','8442759uHtYZk','2995520bmjEEC','4ZqmpUR','stderr','write','1375587EfEVfX','118NGrXgW'];a359_0x3294=function(){return _0x58e8a3;};return a359_0x3294();}(function(_0x377be0,_0x163959){var _0x382863=a359_0x264f,_0x215446=_0x377be0();while(!![]){try{var _0x3b44eb=-parseInt(_0x382863(0x13d))/0x1*(parseInt(_0x382863(0x13a))/0x2)+-parseInt(_0x382863(0x13f))/0x3+parseInt(_0x382863(0x136))/0x4*(parseInt(_0x382863(0x13c))/0x5)+parseInt(_0x382863(0x13b))/0x6*(-parseInt(_0x382863(0x140))/0x7)+-parseInt(_0x382863(0x13e))/0x8*(parseInt(_0x382863(0x139))/0x9)+parseInt(_0x382863(0x135))/0xa*(-parseInt(_0x382863(0x141))/0xb)+-parseInt(_0x382863(0x142))/0xc*(-parseInt(_0x382863(0x134))/0xd);if(_0x3b44eb===_0x163959)break;else _0x215446['push'](_0x215446['shift']());}catch(_0x4f2902){_0x215446['push'](_0x215446['shift']());}}}(a359_0x3294,0xe8403));function a359_0x264f(_0x25d5ce,_0x5490e4){_0x25d5ce=_0x25d5ce-0x134;var _0x329400=a359_0x3294();var _0x264f3c=_0x329400[_0x25d5ce];return _0x264f3c;}export function writeCliSideChannelLine(_0x3dc6a5){var _0x4c0460=a359_0x264f;process[_0x4c0460(0x137)][_0x4c0460(0x138)](_0x3dc6a5+'\x0a');}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.4",
3
+ "version": "2.5.5-beta.1",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -86,6 +86,7 @@
86
86
  "files": [
87
87
  "lib",
88
88
  "skills/rabetbase",
89
+ "skills/rabetbase-page-generation",
89
90
  "skills/rabetbase.manifest.json",
90
91
  "scripts/postinstall.mjs",
91
92
  "templates/custom-pages",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.4
3
+ version: 2.5.5-beta.1
4
4
  description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, host frontend integration, frontend subapp resources, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, host frontend integration, subapp resource versions, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
5
5
  metadata:
6
6
  requires:
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: rabetbase-page-generation
3
+ version: 2.5.5-beta.1
4
+ description: "为已有 Dataset 生成、验证和发布由 list、detail、create、update 四个 CustomJSX 页面组成的 ONEPAGE 页面包。"
5
+ metadata:
6
+ requires:
7
+ bins: ["rabetbase"]
8
+ node: ">=22.20"
9
+ cliHelp: "rabetbase page --help"
10
+ ---
11
+
12
+ # ONEPAGE 页面生成
13
+
14
+ 本 Skill 负责模板选择、真实 SDK 数据绑定和页面交互;复用现有 CLI 的页面目录校验、创建、更新、发布与查询命令。页面全部使用 CustomJSX,由 ONEPAGE 编排,不生成 Page Schema、`CRUD_PAGE_SET`、Dataset 或 Workflow,不替换既有 CLI 流程。
15
+
16
+ - 页面源码从 `templates/onepage` 复制到任务的页面工作目录,按 Dataset 元信息改写;构建得到四个完整独立目录。详情与更新是不同页面;新增和更新共享表单实现。
17
+ - 智能搜索使用原 `LrSmartFilter` 组合组件的独立 JSX 实现;表格、详情和表单使用 AntD。组件与运行时边界见 [组件基线](references/component-baseline.md)。
18
+ - 通过 `--page-dir` 交付页面,不使用旧单页 `--page-pattern ONEPAGE`。CLI 不选择模板、不生成业务数据,也不承担模板构建。
19
+ - 复用现有页面创建行为及 `menu` 管理命令;默认创建并绑定菜单,菜单展示按用户要求管理。页面导航只使用服务端返回并核验的路径,禁止把占位符发布成正式入口。
20
+ - 浏览器验证使用 Codex 内置浏览器;比较旧页面时使用同一 Dataset、同一记录和数据状态。新页面不能依赖旧 Workflow 或 Page Schema。
21
+
22
+ 执行时阅读 [生成与验收流程](references/generation.md),完成数据绑定、四页目录构建、页面创建与路径回填、浏览器验收及发布。Development Sandbox 消费此 Skill;Runtime Sandbox 不安装它。
23
+
24
+ ## 按页面读取模板
25
+
26
+ 模板位于 `templates/onepage`。生成或修改哪一页,先阅读该页 README 及效果图,再读取源码;构建时整体复制模板,保留 `shared/`。
27
+
28
+ | 页面 | 说明与效果图 | 入口 |
29
+ | --- | --- | --- |
30
+ | 列表 | [list/README.md](templates/onepage/list/README.md) | `list/index.jsx` |
31
+ | 详情 | [detail/README.md](templates/onepage/detail/README.md) | `detail/index.jsx` |
32
+ | 新增 | [create/README.md](templates/onepage/create/README.md) | `create/index.jsx` |
33
+ | 更新 | [update/README.md](templates/onepage/update/README.md) | `update/index.jsx` |
34
+
35
+ `shared/model.js` 维护数据绑定、查询与格式化,`shared/record-layout.jsx` 维护字段分组,`shared/editor.jsx` 是新增/更新共用表单,`shared/responsive.jsx` 提供响应式控件,`shared/page.css` 保持四页样式一致。`build.mjs` 将这些源码打包成四个独立页面目录,页面输出不包含 README 或效果图。
@@ -0,0 +1,18 @@
1
+ # 组件与效果基线
2
+
3
+ 用同一个 Dataset 的旧标准 CRUD 页面作为视觉和交互参考,覆盖真实空数据、有数据、无匹配结果和多页记录。只有用户要求建立对照时,才用旧流程生成基线;新页面始终只使用 CustomJSX。
4
+
5
+ | 页面能力 | 使用方式 |
6
+ | --- | --- |
7
+ | 智能搜索与结构化筛选 | 复用原 LrSmartFilter / 智能搜索组合的独立 JSX 实现。保留模式切换、类型化控件、加载状态、查询、重置和过期请求处理。 |
8
+ | 表格、工具栏、勾选、分页、列设置 | 使用 AntD,按旧页面还原密度、位置和操作反馈;分页使用服务端总数。 |
9
+ | 详情、新增、更新 | 使用 AntD Form 和普通 React 分组布局;保留字段顺序、说明、必填、枚举标签、只读值、校验、重置及提交反馈。 |
10
+ | 移动端 | 列表使用卡片,表单使用合适的日期控件和可点击按钮;ONEPAGE 手机容器由宿主提供,不能只通过缩小子页修复宿主分栏。 |
11
+
12
+ 不迁移 YtRglContainer,也不为还原页面而引入旧 YtTable、旧表单渲染器、`_context`、`dataSourceMap` 或 Schema 动作引擎。页面拥有 SDK 请求、导航和保存返回逻辑;智能筛选组件通过 props 与回调交互。
13
+
14
+ 组件真源:[原组件仓](https://codeup.aliyun.com/yuntoo/fe/materials)、[公共 JSX 组件仓](https://codeup.aliyun.com/yuntoo/open/lovrabet-components)。读取实际组件版本的 JSX 导出、props 和 CSS;源码中有组件不代表已发布 npm 包或宿主已提供它。
15
+
16
+ 模板中的 `@lovrabet/components/smart-filter` 是页面打包别名。构建时显式传入已核验的组件 JSX 入口和 CSS:可以来自组件包,也可以来自指定版本的组件源码。模板会把它们打入页面,不要求修改宿主入口、依赖锁文件或 sub-app-vite-demo。React、AntD、图标、dayjs 和 `@/context/app-context` 由当前 CustomJSX 宿主提供;先验证实际运行环境。
17
+
18
+ SDK/context 契约见 [CustomJSX 生成标准](../../rabetbase/knowledge/custom-page/generation-standards.md)。保持主题、语言和请求地址跟随宿主;禁止在模板里写入 Cookie、AccessKey 或生产地址兜底。