@lovrabet/rabetbase-cli 2.5.2-beta.2 → 2.5.2-beta.3

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 (332) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.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/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.d.ts +1 -0
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.js +1 -1
  103. package/lib/commands/deployment/sync-jobs.js +1 -1
  104. package/lib/commands/deployment/sync-status.js +1 -1
  105. package/lib/commands/deployment/sync.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/instant-api-policy/current.js +1 -1
  109. package/lib/commands/instant-api-policy/index.js +1 -1
  110. package/lib/commands/instant-api-policy/init.js +1 -1
  111. package/lib/commands/instant-api-policy/publish.js +1 -1
  112. package/lib/commands/instant-api-policy/pull.js +1 -1
  113. package/lib/commands/instant-api-policy/revision.js +1 -1
  114. package/lib/commands/instant-api-policy/revisions.js +1 -1
  115. package/lib/commands/instant-api-policy/rollback.js +1 -1
  116. package/lib/commands/instant-api-policy/shared.js +1 -1
  117. package/lib/commands/instant-api-policy/validate.js +1 -1
  118. package/lib/commands/issue/index.js +1 -1
  119. package/lib/commands/issue/nudge.js +1 -1
  120. package/lib/commands/issue/report.js +1 -1
  121. package/lib/commands/issue/shared.js +1 -1
  122. package/lib/commands/kb/create.js +1 -1
  123. package/lib/commands/kb/delete.js +1 -1
  124. package/lib/commands/kb/detail.js +1 -1
  125. package/lib/commands/kb/index.js +1 -1
  126. package/lib/commands/kb/list.js +1 -1
  127. package/lib/commands/kb/search.js +1 -1
  128. package/lib/commands/kb/shared.js +1 -1
  129. package/lib/commands/kb/update.js +1 -1
  130. package/lib/commands/logs/index.js +1 -1
  131. package/lib/commands/menu/asset-update.js +1 -1
  132. package/lib/commands/menu/delete.js +1 -1
  133. package/lib/commands/menu/external-link-create.js +1 -1
  134. package/lib/commands/menu/external-link-update.js +1 -1
  135. package/lib/commands/menu/group-create.js +1 -1
  136. package/lib/commands/menu/group-update.js +1 -1
  137. package/lib/commands/menu/index.js +1 -1
  138. package/lib/commands/menu/list.js +1 -1
  139. package/lib/commands/menu/move.js +1 -1
  140. package/lib/commands/menu/regroup-start.js +1 -1
  141. package/lib/commands/menu/rename.js +1 -1
  142. package/lib/commands/menu/shared/compare-table.js +1 -1
  143. package/lib/commands/menu/shared/delete-plan.js +1 -1
  144. package/lib/commands/menu/shared/facts.js +1 -1
  145. package/lib/commands/menu/shared/index.js +1 -1
  146. package/lib/commands/menu/shared/inquirer.js +1 -1
  147. package/lib/commands/menu/shared/local-pages.js +1 -1
  148. package/lib/commands/menu/shared/logic.js +1 -1
  149. package/lib/commands/menu/shared/mutations.js +1 -1
  150. package/lib/commands/menu/shared/service.js +1 -1
  151. package/lib/commands/menu/shared/sync-core.js +1 -1
  152. package/lib/commands/menu/shared/update-core.js +1 -1
  153. package/lib/commands/menu/shared/valid-url.js +1 -1
  154. package/lib/commands/menu/sync.js +1 -1
  155. package/lib/commands/menu/visibility-update.js +1 -1
  156. package/lib/commands/notification/config-create.js +1 -1
  157. package/lib/commands/notification/config-delete.js +1 -1
  158. package/lib/commands/notification/config-list.js +1 -1
  159. package/lib/commands/notification/config-update.js +1 -1
  160. package/lib/commands/notification/index.js +1 -1
  161. package/lib/commands/notification/shared.js +1 -1
  162. package/lib/commands/ocr/index.js +1 -1
  163. package/lib/commands/page/create.js +1 -1
  164. package/lib/commands/page/custom/detail.js +1 -1
  165. package/lib/commands/page/custom/list.js +1 -1
  166. package/lib/commands/page/custom/publish.js +1 -1
  167. package/lib/commands/page/custom/shared.js +1 -1
  168. package/lib/commands/page/custom/syntax.js +1 -1
  169. package/lib/commands/page/custom/template.js +1 -1
  170. package/lib/commands/page/custom/update.js +1 -1
  171. package/lib/commands/page/data-list-status.js +1 -1
  172. package/lib/commands/page/generate-start.js +1 -1
  173. package/lib/commands/page/generate-status.js +1 -1
  174. package/lib/commands/page/index.js +1 -1
  175. package/lib/commands/page/pull.js +1 -1
  176. package/lib/commands/page/push.js +1 -1
  177. package/lib/commands/page/relation-audit.js +1 -1
  178. package/lib/commands/page/restore.js +1 -1
  179. package/lib/commands/page/shared.js +1 -1
  180. package/lib/commands/page/sync.js +1 -1
  181. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  182. package/lib/commands/project/create/format-elapsed.js +1 -1
  183. package/lib/commands/project/create/main.js +1 -1
  184. package/lib/commands/project/create/materialize-project-template.js +1 -1
  185. package/lib/commands/project/create/project-name.js +1 -1
  186. package/lib/commands/project/create/project-template-archive.js +1 -1
  187. package/lib/commands/project/create/project-template-path.js +1 -1
  188. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  189. package/lib/commands/project/create/use-format-code.js +1 -1
  190. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  191. package/lib/commands/project/domain-routing-sync.js +1 -1
  192. package/lib/commands/project/index.js +1 -1
  193. package/lib/commands/project/upgrade.js +1 -1
  194. package/lib/commands/registry.js +1 -1
  195. package/lib/commands/role/delete.js +1 -1
  196. package/lib/commands/role/detail.js +1 -1
  197. package/lib/commands/role/index.js +1 -1
  198. package/lib/commands/role/list.js +1 -1
  199. package/lib/commands/role/shared.js +1 -1
  200. package/lib/commands/role/update.js +1 -1
  201. package/lib/commands/role/user-add.js +1 -1
  202. package/lib/commands/role/user-remove.js +1 -1
  203. package/lib/commands/role/user-resolve.js +1 -1
  204. package/lib/commands/rule/get.js +1 -1
  205. package/lib/commands/rule/index.js +1 -1
  206. package/lib/commands/rule/list.js +1 -1
  207. package/lib/commands/rule/set.js +1 -1
  208. package/lib/commands/rule/shared.js +1 -1
  209. package/lib/commands/run/index.js +1 -1
  210. package/lib/commands/schema.js +1 -1
  211. package/lib/commands/sql/create.js +1 -1
  212. package/lib/commands/sql/delete.js +1 -1
  213. package/lib/commands/sql/detail.js +1 -1
  214. package/lib/commands/sql/exec.js +1 -1
  215. package/lib/commands/sql/index.js +1 -1
  216. package/lib/commands/sql/list.js +1 -1
  217. package/lib/commands/sql/pull.js +1 -1
  218. package/lib/commands/sql/push.js +1 -1
  219. package/lib/commands/sql/shared.js +1 -1
  220. package/lib/commands/sql/status.js +1 -1
  221. package/lib/commands/sql/validate.js +1 -1
  222. package/lib/commands/task/index.js +1 -1
  223. package/lib/commands/task/status.js +1 -1
  224. package/lib/commands/tenant/index.js +1 -1
  225. package/lib/commands/tenant/members-list.js +1 -1
  226. package/lib/commands/tenant/shared.js +1 -1
  227. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  228. package/lib/commands/user-account/index.js +1 -1
  229. package/lib/commands/workspace/add.js +1 -1
  230. package/lib/commands/workspace/index.js +1 -1
  231. package/lib/commands/workspace/remove.js +1 -1
  232. package/lib/config/domain-config.d.ts +3 -7
  233. package/lib/config/domain-config.js +1 -1
  234. package/lib/config/project-domain-routing.js +1 -1
  235. package/lib/config/schema.js +1 -1
  236. package/lib/constant/cdn.js +1 -1
  237. package/lib/constant/cli.js +1 -1
  238. package/lib/constant/defaults.js +1 -1
  239. package/lib/constant/domain.js +1 -1
  240. package/lib/constant/env.js +1 -1
  241. package/lib/constant/output.js +1 -1
  242. package/lib/constant/paths.js +1 -1
  243. package/lib/constant/region.js +1 -1
  244. package/lib/constant/risk.js +1 -1
  245. package/lib/constant/routing-profile.js +1 -1
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.js +1 -1
  250. package/lib/core/alias-resolver.js +1 -1
  251. package/lib/core/api-client.d.ts +1 -0
  252. package/lib/core/api-client.js +1 -1
  253. package/lib/core/bff/config.js +1 -1
  254. package/lib/core/bff/file-system.js +1 -1
  255. package/lib/core/bff/hash.js +1 -1
  256. package/lib/core/bff/lock.js +1 -1
  257. package/lib/core/bff/utils.js +1 -1
  258. package/lib/core/db-resolver.js +1 -1
  259. package/lib/core/instant-api-policy/config.js +1 -1
  260. package/lib/core/kb-search-client.js +1 -1
  261. package/lib/core/page/file-system.js +1 -1
  262. package/lib/core/page/hash.js +1 -1
  263. package/lib/core/page/lock.js +1 -1
  264. package/lib/core/sql-index-auditor.js +1 -1
  265. package/lib/core/sql-sync/config.js +1 -1
  266. package/lib/core/sql-sync/file-system.js +1 -1
  267. package/lib/core/sql-sync/hash.js +1 -1
  268. package/lib/core/sql-sync/lock.js +1 -1
  269. package/lib/core/sql-sync/utils.js +1 -1
  270. package/lib/core/sql-validator.js +1 -1
  271. package/lib/errors.js +1 -1
  272. package/lib/framework/build-all-flags.js +1 -1
  273. package/lib/framework/error-output.js +1 -1
  274. package/lib/framework/explicit-yes.js +1 -1
  275. package/lib/framework/flags.js +1 -1
  276. package/lib/framework/help.js +1 -1
  277. package/lib/framework/index.js +1 -1
  278. package/lib/framework/output.js +1 -1
  279. package/lib/framework/response.js +1 -1
  280. package/lib/framework/runner-alias.js +1 -1
  281. package/lib/framework/runner.js +1 -1
  282. package/lib/framework/schema-export.js +1 -1
  283. package/lib/framework/supported-flags.js +1 -1
  284. package/lib/framework/types.js +1 -1
  285. package/lib/generated/build-info.d.ts +4 -4
  286. package/lib/generated/build-info.js +1 -1
  287. package/lib/generated/official-routing.d.ts +1 -1
  288. package/lib/generated/official-routing.js +1 -1
  289. package/lib/generated/routing-contract.d.ts +1 -3
  290. package/lib/generated/routing-contract.js +1 -1
  291. package/lib/help.js +1 -1
  292. package/lib/postinstall.js +1 -1
  293. package/lib/runtime/confirmation.js +1 -1
  294. package/lib/runtime/event.js +1 -1
  295. package/lib/runtime/index.js +1 -1
  296. package/lib/runtime/queue.js +1 -1
  297. package/lib/runtime/resolve.js +1 -1
  298. package/lib/skills/builtin-skill.js +1 -1
  299. package/lib/skills/main.js +1 -1
  300. package/lib/skills/npx-skills-add.js +1 -1
  301. package/lib/skills/skill-presence.js +1 -1
  302. package/lib/telemetry/cli-command-trace.js +1 -1
  303. package/lib/telemetry/cli-help-trace.js +1 -1
  304. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  305. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  306. package/lib/telemetry/send-cli-trace-log.js +1 -1
  307. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  308. package/lib/utils/ai_config.js +1 -1
  309. package/lib/utils/apply-jq-filter.js +1 -1
  310. package/lib/utils/cdn-config.js +1 -1
  311. package/lib/utils/check-sdk-version.js +1 -1
  312. package/lib/utils/cli-version-check.js +1 -1
  313. package/lib/utils/cli-version-policy.js +1 -1
  314. package/lib/utils/config.js +1 -1
  315. package/lib/utils/entity-with-id.js +1 -1
  316. package/lib/utils/file-utils.js +1 -1
  317. package/lib/utils/guides-cdn.js +1 -1
  318. package/lib/utils/http-client.js +1 -1
  319. package/lib/utils/is-non-interactive.js +1 -1
  320. package/lib/utils/logger.js +1 -1
  321. package/lib/utils/params.js +1 -1
  322. package/lib/utils/platform.js +1 -1
  323. package/lib/utils/sleep.js +1 -1
  324. package/lib/utils/template-replacer.js +1 -1
  325. package/lib/utils/update-notice.js +1 -1
  326. package/lib/utils/version.js +1 -1
  327. package/lib/utils/with-active-cookie.js +1 -1
  328. package/lib/utils/write-cli-side-channel.js +1 -1
  329. package/package.json +1 -1
  330. package/skills/rabetbase/SKILL.md +2 -2
  331. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  332. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x4274a3,_0xb5cdd1){const _0x28231e=a314_0x7850,_0x37a7ec=_0x4274a3();while(!![]){try{const _0x39ad80=-parseInt(_0x28231e(0x127))/0x1*(parseInt(_0x28231e(0x122))/0x2)+-parseInt(_0x28231e(0x120))/0x3*(-parseInt(_0x28231e(0x126))/0x4)+parseInt(_0x28231e(0x12b))/0x5*(parseInt(_0x28231e(0x129))/0x6)+parseInt(_0x28231e(0x121))/0x7+-parseInt(_0x28231e(0x123))/0x8+parseInt(_0x28231e(0x124))/0x9*(-parseInt(_0x28231e(0x128))/0xa)+parseInt(_0x28231e(0x12a))/0xb*(parseInt(_0x28231e(0x125))/0xc);if(_0x39ad80===_0xb5cdd1)break;else _0x37a7ec['push'](_0x37a7ec['shift']());}catch(_0x1d07f2){_0x37a7ec['push'](_0x37a7ec['shift']());}}}(a314_0x7115,0xbd938));function a314_0x7115(){const _0x4bf180=['11egVswm','243265kEghLH','3RWUlyZ','3584637biTZuF','270462ItegnD','119080tcdJpF','9AssGGJ','22943448OkLcfB','1723504AhjCKM','11qRXMHm','8679090RSVlWP','36cqBYGC'];a314_0x7115=function(){return _0x4bf180;};return a314_0x7115();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1e6380,_0x31d036){const _0x312d2c=statSync(_0x1e6380);if(_0x312d2c['isDirectory']()){!existsSync(_0x31d036)&&mkdirSync(_0x31d036,{'recursive':!![]});const _0x1a32bd=readdirSync(_0x1e6380);for(const _0x3d0e50 of _0x1a32bd){await copyDir(join(_0x1e6380,_0x3d0e50),join(_0x31d036,_0x3d0e50));}}else copyFileSync(_0x1e6380,_0x31d036);}export function ensureDir(_0x23315a){!existsSync(_0x23315a)&&mkdirSync(_0x23315a,{'recursive':!![]});}function a314_0x7850(_0x3374b3,_0x27b7df){_0x3374b3=_0x3374b3-0x120;const _0x7115b2=a314_0x7115();let _0x7850d4=_0x7115b2[_0x3374b3];return _0x7850d4;}export function pathExists(_0x27896c){return existsSync(_0x27896c);}
1
+ function a314_0x2763(){const _0x40b3ae=['5922930uQXZZE','isDirectory','156CzWugO','3395455kKzbym','21889zFhjkY','978468OZYZKP','4808704MKtTJo','33IQMydy','2336724PWMToE','249092FZFfdZ','1zPkYSz'];a314_0x2763=function(){return _0x40b3ae;};return a314_0x2763();}(function(_0xf66c8e,_0x129dc4){const _0x286272=a314_0x20f6,_0x5ea281=_0xf66c8e();while(!![]){try{const _0x249a6c=parseInt(_0x286272(0x7f))/0x1*(-parseInt(_0x286272(0x85))/0x2)+parseInt(_0x286272(0x7c))/0x3*(parseInt(_0x286272(0x7e))/0x4)+-parseInt(_0x286272(0x83))/0x5+-parseInt(_0x286272(0x82))/0x6*(parseInt(_0x286272(0x84))/0x7)+parseInt(_0x286272(0x7b))/0x8+-parseInt(_0x286272(0x7d))/0x9+parseInt(_0x286272(0x80))/0xa;if(_0x249a6c===_0x129dc4)break;else _0x5ea281['push'](_0x5ea281['shift']());}catch(_0x1fdb6d){_0x5ea281['push'](_0x5ea281['shift']());}}}(a314_0x2763,0x5a1e1));function a314_0x20f6(_0x3030c0,_0x3ab2e5){_0x3030c0=_0x3030c0-0x7b;const _0x276329=a314_0x2763();let _0x20f694=_0x276329[_0x3030c0];return _0x20f694;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x218a99,_0x1c2cb6){const _0x471102=a314_0x20f6,_0x5ea8e9=statSync(_0x218a99);if(_0x5ea8e9[_0x471102(0x81)]()){!existsSync(_0x1c2cb6)&&mkdirSync(_0x1c2cb6,{'recursive':!![]});const _0x2ef09d=readdirSync(_0x218a99);for(const _0x1c5342 of _0x2ef09d){await copyDir(join(_0x218a99,_0x1c5342),join(_0x1c2cb6,_0x1c5342));}}else copyFileSync(_0x218a99,_0x1c2cb6);}export function ensureDir(_0x3c2fb1){!existsSync(_0x3c2fb1)&&mkdirSync(_0x3c2fb1,{'recursive':!![]});}export function pathExists(_0x575c30){return existsSync(_0x575c30);}
@@ -1 +1 @@
1
- const a315_0x5591b0=a315_0x28b5;(function(_0xea9292,_0x519156){const _0x395c2a=a315_0x28b5,_0x4cf99e=_0xea9292();while(!![]){try{const _0x365b51=parseInt(_0x395c2a(0x1e5))/0x1*(parseInt(_0x395c2a(0x1e3))/0x2)+-parseInt(_0x395c2a(0x1df))/0x3+parseInt(_0x395c2a(0x1e8))/0x4+-parseInt(_0x395c2a(0x1ec))/0x5+parseInt(_0x395c2a(0x1d8))/0x6+-parseInt(_0x395c2a(0x1f2))/0x7*(parseInt(_0x395c2a(0x1ee))/0x8)+-parseInt(_0x395c2a(0x1f5))/0x9*(parseInt(_0x395c2a(0x1ed))/0xa);if(_0x365b51===_0x519156)break;else _0x4cf99e['push'](_0x4cf99e['shift']());}catch(_0x4aaa47){_0x4cf99e['push'](_0x4cf99e['shift']());}}}(a315_0x39f7,0x57c3a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x52190f=a315_0x28b5,_0xc39a16=getTemplateBaseUrl();return _0xc39a16+_0x52190f(0x1da);}function a315_0x39f7(){const _0x8302d5=['CDN\x20data\x20is\x20missing\x20skillTemplate','map','application/json','lastUpdated','trimEnd','length','3145758nowBYK','guides','/skills/guides.json','content','extendContent','skillTemplate','.lovrabet/skill/guides','1608444bcvKTj','status','\x0a\x0a>更新时间:','CDN\x20request\x20failed:\x20','50XhgfnJ','push','27273arxBqZ','keys','join','2136124pKmPhq','path','cache','replace','3379225WSCfFv','6430QovGmI','31072nBxSmD','utf-8','statusText','json','56Xoyfsn','.lovrabet','entries','1926VrQHNR','title'];a315_0x39f7=function(){return _0x8302d5;};return a315_0x39f7();}const CACHE_DIR=join(homedir(),a315_0x5591b0(0x1f3),a315_0x5591b0(0x1ea));export async function fetchGuidesFromCDN(){const _0xda7325=a315_0x5591b0,_0x56b536=getGuidesCdnUrl(),_0x38d72a=await fetch(_0x56b536,{'headers':{'Accept':_0xda7325(0x1f9)}});if(!_0x38d72a['ok'])throw new Error(_0xda7325(0x1e2)+_0x38d72a[_0xda7325(0x1e0)]+'\x20'+_0x38d72a[_0xda7325(0x1f0)]);const _0x4c0dae=await _0x38d72a[_0xda7325(0x1f1)]();if(!_0x4c0dae[_0xda7325(0x1d9)]||typeof _0x4c0dae[_0xda7325(0x1d9)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x4c0dae;}export function writeGuidesToProject(_0x52153d,_0x35c630,_0x1fa4ce=a315_0x5591b0(0x1de),_0x2afe21){const _0x10f4a2=a315_0x5591b0,_0x4185c1=join(_0x35c630,_0x1fa4ce);mkdirSync(_0x4185c1,{'recursive':!![]});for(const [_0x43d35c,_0x4c4b77]of Object[_0x10f4a2(0x1f4)](_0x52153d[_0x10f4a2(0x1d9)])){let _0x2c9203=_0x4c4b77[_0x10f4a2(0x1db)];_0x4c4b77[_0x10f4a2(0x1fa)]&&(_0x2c9203=appendUpdateTime(_0x2c9203,_0x4c4b77['lastUpdated'])),writeFileSync(join(_0x4185c1,_0x43d35c+'.md'),_0x2c9203,_0x10f4a2(0x1ef));}}export function appendUpdateTime(_0x41307d,_0x1ccef1){const _0x5b5244=a315_0x5591b0;return _0x41307d=_0x41307d['replace'](/\n*>更新时间:.*$/m,''),_0x41307d['trimEnd']()+(_0x5b5244(0x1e1)+_0x1ccef1);}function a315_0x28b5(_0x4465e9,_0xa32a9d){_0x4465e9=_0x4465e9-0x1d6;const _0x39f7bb=a315_0x39f7();let _0x28b585=_0x39f7bb[_0x4465e9];return _0x28b585;}export function getSkillTemplate(_0x14b900){const _0x5c8953=a315_0x5591b0;return _0x14b900[_0x5c8953(0x1dd)]?.[_0x5c8953(0x1db)]||'';}export function appendExtendContents(_0x290e4d,_0x421fbe,_0x4cccbe){const _0x4fef20=a315_0x5591b0,_0x2b6fae=[];for(const [,_0x2c8587]of Object[_0x4fef20(0x1f4)](_0x421fbe[_0x4fef20(0x1d9)])){_0x2c8587[_0x4fef20(0x1dc)]&&_0x2b6fae[_0x4fef20(0x1e4)](_0x2c8587[_0x4fef20(0x1dc)][_0x4fef20(0x1d6)]());}if(_0x2b6fae[_0x4fef20(0x1d7)]===0x0)return _0x290e4d;return _0x290e4d[_0x4fef20(0x1d6)]()+'\x0a\x0a'+_0x2b6fae[_0x4fef20(0x1e7)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3f33aa,_0x293849,_0x4baab4){const _0x7191ba=a315_0x5591b0,_0x2b675c=getSkillTemplate(_0x3f33aa);if(!_0x2b675c)throw new Error(_0x7191ba(0x1f7));const _0x44b2f8=dirname(_0x293849);mkdirSync(_0x44b2f8,{'recursive':!![]});let _0x5492e6=_0x2b675c[_0x7191ba(0x1eb)](/\{\{IDE_NAME\}\}/g,_0x4baab4);_0x5492e6=appendExtendContents(_0x5492e6,_0x3f33aa),_0x3f33aa[_0x7191ba(0x1dd)][_0x7191ba(0x1fa)]&&(_0x5492e6=appendUpdateTime(_0x5492e6,_0x3f33aa[_0x7191ba(0x1dd)][_0x7191ba(0x1fa)])),writeFileSync(_0x293849,_0x5492e6,_0x7191ba(0x1ef));}export async function installGuides(_0x3d0fe5){const _0x131ea9=a315_0x5591b0,_0x5e31f5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5e31f5,_0x3d0fe5),Object[_0x131ea9(0x1e6)](_0x5e31f5[_0x131ea9(0x1d9)])[_0x131ea9(0x1d7)];}export function getGuidesSummary(_0x44299d){const _0x222069=a315_0x5591b0;return Object[_0x222069(0x1f4)](_0x44299d[_0x222069(0x1d9)])[_0x222069(0x1f8)](([_0x408866,_0x368c42])=>({'key':_0x408866,'title':_0x368c42[_0x222069(0x1f6)],'path':_0x368c42[_0x222069(0x1e9)]}));}
1
+ const a315_0x979258=a315_0x203f;(function(_0x188edb,_0x23055b){const _0x32e642=a315_0x203f,_0x5bf2e2=_0x188edb();while(!![]){try{const _0x3316e0=parseInt(_0x32e642(0x205))/0x1+-parseInt(_0x32e642(0x203))/0x2+-parseInt(_0x32e642(0x1f8))/0x3*(-parseInt(_0x32e642(0x212))/0x4)+parseInt(_0x32e642(0x1fa))/0x5+-parseInt(_0x32e642(0x1f5))/0x6*(-parseInt(_0x32e642(0x1f9))/0x7)+-parseInt(_0x32e642(0x208))/0x8*(-parseInt(_0x32e642(0x209))/0x9)+-parseInt(_0x32e642(0x20e))/0xa;if(_0x3316e0===_0x23055b)break;else _0x5bf2e2['push'](_0x5bf2e2['shift']());}catch(_0x5529e1){_0x5bf2e2['push'](_0x5bf2e2['shift']());}}}(a315_0x1f83,0x7b1ea));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a315_0x203f(_0x430900,_0x18d89b){_0x430900=_0x430900-0x1f2;const _0x1f83d9=a315_0x1f83();let _0x203fbd=_0x1f83d9[_0x430900];return _0x203fbd;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x1e326c=getTemplateBaseUrl();return _0x1e326c+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a315_0x979258(0x20a),a315_0x979258(0x20b));export async function fetchGuidesFromCDN(){const _0x1d0bc=a315_0x979258,_0x5d1527=getGuidesCdnUrl(),_0x467ecf=await fetch(_0x5d1527,{'headers':{'Accept':_0x1d0bc(0x1f3)}});if(!_0x467ecf['ok'])throw new Error(_0x1d0bc(0x210)+_0x467ecf[_0x1d0bc(0x1f6)]+'\x20'+_0x467ecf[_0x1d0bc(0x211)]);const _0x5a03dc=await _0x467ecf[_0x1d0bc(0x204)]();if(!_0x5a03dc[_0x1d0bc(0x1f7)]||typeof _0x5a03dc[_0x1d0bc(0x1f7)]!==_0x1d0bc(0x1fc))throw new Error(_0x1d0bc(0x1fd));return _0x5a03dc;}function a315_0x1f83(){const _0x4f732b=['map','lastUpdated','.md','join','application/json','skillTemplate','3768ZGhQfr','status','guides','3DgGBxQ','7973RNRqxC','1357410vVHdWv','trimEnd','object','CDN\x20returned\x20invalid\x20data','push','entries','content','replace','.lovrabet/skill/guides','861038dTMyqh','json','248585MXebIG','\x0a\x0a>更新时间:','utf-8','186472sGSuKb','306USKYms','.lovrabet','cache','CDN\x20data\x20is\x20missing\x20skillTemplate','keys','14289030NjhJMD','extendContent','CDN\x20request\x20failed:\x20','statusText','1343420baypjB','length'];a315_0x1f83=function(){return _0x4f732b;};return a315_0x1f83();}export function writeGuidesToProject(_0x589617,_0x481df1,_0x33dd28=a315_0x979258(0x202),_0x50f32e){const _0x4db8e2=a315_0x979258,_0x2edaec=join(_0x481df1,_0x33dd28);mkdirSync(_0x2edaec,{'recursive':!![]});for(const [_0x3e7c67,_0x3af075]of Object[_0x4db8e2(0x1ff)](_0x589617[_0x4db8e2(0x1f7)])){let _0x1887c8=_0x3af075[_0x4db8e2(0x200)];_0x3af075[_0x4db8e2(0x215)]&&(_0x1887c8=appendUpdateTime(_0x1887c8,_0x3af075[_0x4db8e2(0x215)])),writeFileSync(join(_0x2edaec,_0x3e7c67+_0x4db8e2(0x216)),_0x1887c8,_0x4db8e2(0x207));}}export function appendUpdateTime(_0x1ab646,_0x59737a){const _0x1da980=a315_0x979258;return _0x1ab646=_0x1ab646[_0x1da980(0x201)](/\n*>更新时间:.*$/m,''),_0x1ab646['trimEnd']()+(_0x1da980(0x206)+_0x59737a);}export function getSkillTemplate(_0x143dbd){const _0x57bbeb=a315_0x979258;return _0x143dbd[_0x57bbeb(0x1f4)]?.[_0x57bbeb(0x200)]||'';}export function appendExtendContents(_0xedc110,_0x5996b0,_0x3bf127){const _0x46828a=a315_0x979258,_0x5484c5=[];for(const [,_0x224ecd]of Object[_0x46828a(0x1ff)](_0x5996b0[_0x46828a(0x1f7)])){_0x224ecd[_0x46828a(0x20f)]&&_0x5484c5[_0x46828a(0x1fe)](_0x224ecd[_0x46828a(0x20f)][_0x46828a(0x1fb)]());}if(_0x5484c5[_0x46828a(0x213)]===0x0)return _0xedc110;return _0xedc110[_0x46828a(0x1fb)]()+'\x0a\x0a'+_0x5484c5[_0x46828a(0x1f2)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3ccbe4,_0x1a529a,_0x4a551c){const _0x3c8295=a315_0x979258,_0x47ed44=getSkillTemplate(_0x3ccbe4);if(!_0x47ed44)throw new Error(_0x3c8295(0x20c));const _0x65b2a4=dirname(_0x1a529a);mkdirSync(_0x65b2a4,{'recursive':!![]});let _0x3229ec=_0x47ed44[_0x3c8295(0x201)](/\{\{IDE_NAME\}\}/g,_0x4a551c);_0x3229ec=appendExtendContents(_0x3229ec,_0x3ccbe4),_0x3ccbe4[_0x3c8295(0x1f4)][_0x3c8295(0x215)]&&(_0x3229ec=appendUpdateTime(_0x3229ec,_0x3ccbe4[_0x3c8295(0x1f4)][_0x3c8295(0x215)])),writeFileSync(_0x1a529a,_0x3229ec,'utf-8');}export async function installGuides(_0x125f53){const _0x5ad1a1=a315_0x979258,_0x410816=await fetchGuidesFromCDN();return writeGuidesToProject(_0x410816,_0x125f53),Object[_0x5ad1a1(0x20d)](_0x410816[_0x5ad1a1(0x1f7)])[_0x5ad1a1(0x213)];}export function getGuidesSummary(_0x201e39){const _0x4c3fd3=a315_0x979258;return Object[_0x4c3fd3(0x1ff)](_0x201e39[_0x4c3fd3(0x1f7)])[_0x4c3fd3(0x214)](([_0x572c2e,_0x391eaa])=>({'key':_0x572c2e,'title':_0x391eaa['title'],'path':_0x391eaa['path']}));}
@@ -1 +1 @@
1
- (function(_0x45ba2b,_0x27224d){const _0x57c707=a316_0x240a,_0xbf4ddb=_0x45ba2b();while(!![]){try{const _0x4518da=-parseInt(_0x57c707(0x100))/0x1+-parseInt(_0x57c707(0xe9))/0x2*(-parseInt(_0x57c707(0xfd))/0x3)+parseInt(_0x57c707(0xf9))/0x4*(parseInt(_0x57c707(0xfc))/0x5)+parseInt(_0x57c707(0xee))/0x6*(parseInt(_0x57c707(0xed))/0x7)+parseInt(_0x57c707(0xfb))/0x8+-parseInt(_0x57c707(0xec))/0x9*(-parseInt(_0x57c707(0xff))/0xa)+parseInt(_0x57c707(0x102))/0xb*(-parseInt(_0x57c707(0x107))/0xc);if(_0x4518da===_0x27224d)break;else _0xbf4ddb['push'](_0xbf4ddb['shift']());}catch(_0x1c7032){_0xbf4ddb['push'](_0xbf4ddb['shift']());}}}(a316_0x14a4,0x868f7));export async function httpRequest(_0x5565e0,_0x44d5bc={}){const _0x13ac74=a316_0x240a,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x44d5bc;let _0x184d96=null;for(let _0x1eec8c=0x0;_0x1eec8c<=retries;_0x1eec8c++){try{const _0x1afd40=new AbortController(),_0x363a08=setTimeout(()=>_0x1afd40[_0x13ac74(0xef)](),timeout),_0xc8981f=await fetch(_0x5565e0,{'headers':headers,'signal':_0x1afd40[_0x13ac74(0x101)]});clearTimeout(_0x363a08);let _0xe51457;const _0x58e9a9=_0xc8981f[_0x13ac74(0xf0)]['get'](_0x13ac74(0x103));return _0x58e9a9?.[_0x13ac74(0x108)](_0x13ac74(0xf7))?_0xe51457=await _0xc8981f['json']():_0xe51457=await _0xc8981f[_0x13ac74(0xf3)](),{'ok':_0xc8981f['ok'],'status':_0xc8981f[_0x13ac74(0xfe)],'statusText':_0xc8981f[_0x13ac74(0xeb)],'data':_0xe51457,'headers':_0xc8981f[_0x13ac74(0xf0)],'url':_0xc8981f[_0x13ac74(0xf4)],'text':()=>_0xc8981f[_0x13ac74(0xf3)]()};}catch(_0x2a1f57){_0x184d96=_0x2a1f57 instanceof Error?_0x2a1f57:new Error(String(_0x2a1f57));if(_0x1eec8c===retries)break;if(shouldRetry(_0x2a1f57)){console[_0x13ac74(0xf1)](_0x13ac74(0x106)+(_0x1eec8c+0x1)+_0x13ac74(0xea)+retryDelay+_0x13ac74(0x109)),await sleep(retryDelay);continue;}else break;}}throw _0x184d96||new Error(_0x13ac74(0x105));}function shouldRetry(_0x59fbac){const _0x4abc3e=a316_0x240a;if(_0x59fbac instanceof Error){if(_0x59fbac['name']===_0x4abc3e(0xf6))return![];if(_0x59fbac['name']===_0x4abc3e(0xf2)&&_0x59fbac[_0x4abc3e(0x104)]['includes'](_0x4abc3e(0xfa)))return!![];if(_0x59fbac['message'][_0x4abc3e(0x108)](_0x4abc3e(0xf8)))return!![];if(_0x59fbac[_0x4abc3e(0x104)][_0x4abc3e(0x108)](_0x4abc3e(0xf5)))return![];}return![];}function sleep(_0x5b3a3d){return new Promise(_0xaad41=>setTimeout(_0xaad41,_0x5b3a3d));}function a316_0x240a(_0x2741c9,_0x47cb9a){_0x2741c9=_0x2741c9-0xe9;const _0x14a4b9=a316_0x14a4();let _0x240aa6=_0x14a4b9[_0x2741c9];return _0x240aa6;}function a316_0x14a4(){const _0x3a7b7a=['ENOTFOUND','AbortError','application/json','ECONNRESET','4bTCUKf','fetch','6065952KTWQfN','5129545JDjGcy','63957XRHoUd','status','1643540MSjcOS','1089200wMkgKE','signal','227348vnKrtT','content-type','message','Request\x20failed','*\x20Request\x20failed;\x20retry\x20','1260ezikyd','includes','ms...','30lQqyFA','\x20in\x20','statusText','45SbKyxt','7kLDHSw','5308746IMUNlF','abort','headers','log','TypeError','text','url'];a316_0x14a4=function(){return _0x3a7b7a;};return a316_0x14a4();}export function validateUrl(_0x55762d){try{return new URL(_0x55762d),!![];}catch{return![];}}
1
+ function a316_0x2472(){const _0x5e9b36=['get','ms...','message','json','7ofIUjA','\x20in\x20','text','name','includes','content-type','6040CiPNfC','2493183DbxLSy','950287sfUZQH','url','abort','statusText','43883800zfclho','log','ENOTFOUND','signal','3501iFFfFC','*\x20Request\x20failed;\x20retry\x20','4766898AtqVbd','1147956WYydVp','ECONNRESET','headers','3550775RMHUNC','TypeError','status','2gmvzdA','Request\x20failed'];a316_0x2472=function(){return _0x5e9b36;};return a316_0x2472();}(function(_0x50c6f8,_0x499c2d){const _0x231407=a316_0x25eb,_0x46531d=_0x50c6f8();while(!![]){try{const _0x49ce2f=-parseInt(_0x231407(0x81))/0x1*(parseInt(_0x231407(0x73))/0x2)+-parseInt(_0x231407(0x80))/0x3+-parseInt(_0x231407(0x6d))/0x4+-parseInt(_0x231407(0x70))/0x5+parseInt(_0x231407(0x6c))/0x6*(-parseInt(_0x231407(0x79))/0x7)+-parseInt(_0x231407(0x7f))/0x8*(parseInt(_0x231407(0x6a))/0x9)+parseInt(_0x231407(0x66))/0xa;if(_0x49ce2f===_0x499c2d)break;else _0x46531d['push'](_0x46531d['shift']());}catch(_0x2d619b){_0x46531d['push'](_0x46531d['shift']());}}}(a316_0x2472,0x7f5ee));export async function httpRequest(_0x5d9f37,_0x2a59fb={}){const _0x85b289=a316_0x25eb,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2a59fb;let _0x28dcc9=null;for(let _0x3d0be5=0x0;_0x3d0be5<=retries;_0x3d0be5++){try{const _0x245480=new AbortController(),_0x23e090=setTimeout(()=>_0x245480[_0x85b289(0x64)](),timeout),_0x30b606=await fetch(_0x5d9f37,{'headers':headers,'signal':_0x245480[_0x85b289(0x69)]});clearTimeout(_0x23e090);let _0x33d068;const _0x430fb8=_0x30b606[_0x85b289(0x6f)][_0x85b289(0x75)](_0x85b289(0x7e));return _0x430fb8?.['includes']('application/json')?_0x33d068=await _0x30b606[_0x85b289(0x78)]():_0x33d068=await _0x30b606[_0x85b289(0x7b)](),{'ok':_0x30b606['ok'],'status':_0x30b606[_0x85b289(0x72)],'statusText':_0x30b606[_0x85b289(0x65)],'data':_0x33d068,'headers':_0x30b606[_0x85b289(0x6f)],'url':_0x30b606[_0x85b289(0x82)],'text':()=>_0x30b606[_0x85b289(0x7b)]()};}catch(_0x37c5a7){_0x28dcc9=_0x37c5a7 instanceof Error?_0x37c5a7:new Error(String(_0x37c5a7));if(_0x3d0be5===retries)break;if(shouldRetry(_0x37c5a7)){console[_0x85b289(0x67)](_0x85b289(0x6b)+(_0x3d0be5+0x1)+_0x85b289(0x7a)+retryDelay+_0x85b289(0x76)),await sleep(retryDelay);continue;}else break;}}throw _0x28dcc9||new Error(_0x85b289(0x74));}function shouldRetry(_0x4c5121){const _0x123b61=a316_0x25eb;if(_0x4c5121 instanceof Error){if(_0x4c5121['name']==='AbortError')return![];if(_0x4c5121[_0x123b61(0x7c)]===_0x123b61(0x71)&&_0x4c5121[_0x123b61(0x77)][_0x123b61(0x7d)]('fetch'))return!![];if(_0x4c5121['message'][_0x123b61(0x7d)](_0x123b61(0x6e)))return!![];if(_0x4c5121['message'][_0x123b61(0x7d)](_0x123b61(0x68)))return![];}return![];}function sleep(_0x30bfb5){return new Promise(_0x1eff7c=>setTimeout(_0x1eff7c,_0x30bfb5));}function a316_0x25eb(_0x2ff589,_0x5de638){_0x2ff589=_0x2ff589-0x64;const _0x2472cf=a316_0x2472();let _0x25ebd9=_0x2472cf[_0x2ff589];return _0x25ebd9;}export function validateUrl(_0x3b73bd){try{return new URL(_0x3b73bd),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a317_0x33b1(_0x3eb079,_0x2a7229){_0x3eb079=_0x3eb079-0x181;const _0x2692ec=a317_0x2692();let _0x33b1d8=_0x2692ec[_0x3eb079];return _0x33b1d8;}(function(_0x2f4492,_0x10a2fe){const _0x363a59=a317_0x33b1,_0x5a5680=_0x2f4492();while(!![]){try{const _0x1fe46c=parseInt(_0x363a59(0x18c))/0x1*(-parseInt(_0x363a59(0x18e))/0x2)+parseInt(_0x363a59(0x182))/0x3*(parseInt(_0x363a59(0x18a))/0x4)+-parseInt(_0x363a59(0x184))/0x5*(-parseInt(_0x363a59(0x187))/0x6)+parseInt(_0x363a59(0x189))/0x7*(-parseInt(_0x363a59(0x181))/0x8)+parseInt(_0x363a59(0x188))/0x9+parseInt(_0x363a59(0x186))/0xa+-parseInt(_0x363a59(0x18f))/0xb;if(_0x1fe46c===_0x10a2fe)break;else _0x5a5680['push'](_0x5a5680['shift']());}catch(_0x23850a){_0x5a5680['push'](_0x5a5680['shift']());}}}(a317_0x2692,0x73be4));function a317_0x2692(){const _0x277ac8=['18ANwbHS','10655183OzSHjR','isTTY','isRaw','37624nJQcjJ','1240812dHaZmg','stdin','220jnivUR','true','3425600QHIYaf','96144ERISQG','3971754vUlFJD','21nURTxv','8QGuXtw','stdout','95476MNbBCV','setRawMode'];a317_0x2692=function(){return _0x277ac8;};return a317_0x2692();}function env(_0x1d9684){return process.env[`RABETBASE_${_0x1d9684}`]||process.env[`LOVRABET_${_0x1d9684}`]||undefined;}export function isNonInteractive(_0x3e75d9){const _0x5d00c8=a317_0x33b1;return!!(_0x3e75d9['nonInteractive']||_0x3e75d9['ci']||env('CI')==='true'||process.env.CI===_0x5d00c8(0x185)||!process[_0x5d00c8(0x18b)][_0x5d00c8(0x190)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x74df3f=a317_0x33b1;if(!process['stdin'][_0x74df3f(0x190)])return![];try{const _0x19d244=process[_0x74df3f(0x183)][_0x74df3f(0x191)];return process['stdin'][_0x74df3f(0x18d)](!![]),process[_0x74df3f(0x183)][_0x74df3f(0x18d)](_0x19d244??![]),!![];}catch{return![];}}
1
+ (function(_0xea0af4,_0x26ed8f){const _0xbe440b=a317_0x208f,_0x6aa426=_0xea0af4();while(!![]){try{const _0x204160=parseInt(_0xbe440b(0x90))/0x1+-parseInt(_0xbe440b(0x98))/0x2+-parseInt(_0xbe440b(0x8e))/0x3+-parseInt(_0xbe440b(0x97))/0x4+parseInt(_0xbe440b(0x94))/0x5*(parseInt(_0xbe440b(0x8c))/0x6)+-parseInt(_0xbe440b(0x8f))/0x7+parseInt(_0xbe440b(0x95))/0x8;if(_0x204160===_0x26ed8f)break;else _0x6aa426['push'](_0x6aa426['shift']());}catch(_0x1f5c7e){_0x6aa426['push'](_0x6aa426['shift']());}}}(a317_0x2d39,0x24a5d));function a317_0x2d39(){const _0x13cdae=['212460irHaVp','1317995pRwqkR','179318UMxSjh','stdin','setRawMode','isRaw','15970GRvWDv','3400776BdIzpw','true','857048lJsxUD','281278YtSomH','isTTY','300RtHRCX','stdout'];a317_0x2d39=function(){return _0x13cdae;};return a317_0x2d39();}function a317_0x208f(_0x70906b,_0x36cde8){_0x70906b=_0x70906b-0x8b;const _0x2d3934=a317_0x2d39();let _0x208ff8=_0x2d3934[_0x70906b];return _0x208ff8;}function env(_0x33b549){return process.env[`RABETBASE_${_0x33b549}`]||process.env[`LOVRABET_${_0x33b549}`]||undefined;}export function isNonInteractive(_0x29ca9e){const _0x259e69=a317_0x208f;return!!(_0x29ca9e['nonInteractive']||_0x29ca9e['ci']||env('CI')===_0x259e69(0x96)||process.env.CI===_0x259e69(0x96)||!process[_0x259e69(0x8d)][_0x259e69(0x8b)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5ed2d7=a317_0x208f;if(!process['stdin']['isTTY'])return![];try{const _0x284d72=process[_0x5ed2d7(0x91)][_0x5ed2d7(0x93)];return process[_0x5ed2d7(0x91)][_0x5ed2d7(0x92)](!![]),process['stdin']['setRawMode'](_0x284d72??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a318_0x1e5874=a318_0x19d5;(function(_0x321248,_0x4b9b82){const _0x2daf0c=a318_0x19d5,_0x304988=_0x321248();while(!![]){try{const _0x880251=-parseInt(_0x2daf0c(0x132))/0x1*(-parseInt(_0x2daf0c(0x13e))/0x2)+parseInt(_0x2daf0c(0x143))/0x3+parseInt(_0x2daf0c(0x138))/0x4+parseInt(_0x2daf0c(0x123))/0x5*(-parseInt(_0x2daf0c(0x137))/0x6)+parseInt(_0x2daf0c(0x11c))/0x7+-parseInt(_0x2daf0c(0x129))/0x8*(parseInt(_0x2daf0c(0x14d))/0x9)+-parseInt(_0x2daf0c(0x121))/0xa;if(_0x880251===_0x4b9b82)break;else _0x304988['push'](_0x304988['shift']());}catch(_0x32f6b9){_0x304988['push'](_0x304988['shift']());}}}(a318_0x1e72,0x75643));import a318_0x72e5ec from'winston';function a318_0x1e72(){const _0x5e5823=['unknown','toISOString','now','info','File','mkdirSync','4XPPwCg','clearLogs','red','Completed:\x20','yellow','3337266SyeAtG','3765564qJvDzA','clear','filter','Failed\x20to\x20read\x20logs:','writeFileSync','currentRawCommand','9136togdmH','error','logFilePath','Failed\x20to\x20clear\x20logs:','timestamp','1116033GHkogB','Failed:\x20','transports','format','parse','combine','warn','level','existsSync','split','99lPQHjG','readFileSync','duration','.lovrabet.log','join','winstonLogger','printf','readLogs','6518204EDsrxF','initWinstonLogger','rawCommand','details','message','10579290htDwGt','log','5yGmaOg','trim','dirname','setLogPath','setRawCommand','utf8','122088ZstqsU','success','map'];a318_0x1e72=function(){return _0x5e5823;};return a318_0x1e72();}function a318_0x19d5(_0x2bce3e,_0x3085ba){_0x2bce3e=_0x2bce3e-0x11b;const _0x1e72ca=a318_0x1e72();let _0x19d51e=_0x1e72ca[_0x2bce3e];return _0x19d51e;}import a318_0x202d01 from'node:fs';import a318_0x5befa0 from'node:path';class Logger{[a318_0x1e5874(0x152)];[a318_0x1e5874(0x140)];[a318_0x1e5874(0x13d)]='';constructor(){const _0x2f2bc6=a318_0x1e5874;this[_0x2f2bc6(0x140)]='';}[a318_0x1e5874(0x127)](_0x578ef3){const _0x1de407=a318_0x1e5874;this[_0x1de407(0x13d)]=_0x578ef3;}[a318_0x1e5874(0x11d)](){const _0x3c2989=a318_0x1e5874,_0x158f0f=a318_0x5befa0[_0x3c2989(0x125)](this[_0x3c2989(0x140)]);!a318_0x202d01[_0x3c2989(0x14b)](_0x158f0f)&&a318_0x202d01[_0x3c2989(0x131)](_0x158f0f,{'recursive':!![]});const _0x4ec47f=a318_0x72e5ec[_0x3c2989(0x146)][_0x3c2989(0x148)](a318_0x72e5ec['format']['timestamp'](),a318_0x72e5ec[_0x3c2989(0x146)]['errors']({'stack':!![]}),a318_0x72e5ec['format'][_0x3c2989(0x153)](_0x57d157=>{const _0x31640d=_0x3c2989,_0xa07a6e={'timestamp':_0x57d157[_0x31640d(0x142)]||new Date()[_0x31640d(0x12d)](),'level':_0x57d157[_0x31640d(0x14a)]||'info','command':_0x57d157['command']||_0x31640d(0x12c),'rawCommand':_0x57d157[_0x31640d(0x11e)]||this[_0x31640d(0x13d)]||undefined,'message':_0x57d157[_0x31640d(0x120)]||'','duration':_0x57d157[_0x31640d(0x14f)]||undefined,'details':_0x57d157[_0x31640d(0x11f)]||undefined};return JSON['stringify'](_0xa07a6e);}));this[_0x3c2989(0x152)]=a318_0x72e5ec['createLogger']({'level':_0x3c2989(0x12f),'format':_0x4ec47f,'transports':[new a318_0x72e5ec[(_0x3c2989(0x145))][(_0x3c2989(0x130))]({'filename':this['logFilePath'],'level':_0x3c2989(0x12f)})],'silent':![]}),a318_0x72e5ec['addColors']({'success':'green','error':_0x3c2989(0x134),'warn':_0x3c2989(0x136),'info':'blue'});}[a318_0x1e5874(0x126)](_0x16582d){const _0x2233ff=a318_0x1e5874;this['logFilePath']=a318_0x5befa0[_0x2233ff(0x151)](_0x16582d,_0x2233ff(0x150)),this[_0x2233ff(0x152)]&&this[_0x2233ff(0x152)][_0x2233ff(0x139)](),this[_0x2233ff(0x11d)]();}[a318_0x1e5874(0x12f)](_0x242f58,_0x3ec96e,_0x27997e){const _0x13c62e=a318_0x1e5874;if(!this['logFilePath']||!this[_0x13c62e(0x152)])return;this['winstonLogger']['info'](_0x3ec96e,{'command':_0x242f58,'details':_0x27997e});}[a318_0x1e5874(0x12a)](_0x548937,_0x51b83f,_0x4662de,_0x26d03f){const _0x3d9830=a318_0x1e5874;if(!this[_0x3d9830(0x140)]||!this['winstonLogger'])return;this[_0x3d9830(0x152)][_0x3d9830(0x122)]('info',_0x51b83f,{'level':_0x3d9830(0x12a),'command':_0x548937,'duration':_0x4662de,'details':_0x26d03f});}[a318_0x1e5874(0x13f)](_0x49d6b2,_0x439874,_0x5857f2){const _0x49d112=a318_0x1e5874;if(!this['logFilePath']||!this[_0x49d112(0x152)])return;this[_0x49d112(0x152)][_0x49d112(0x13f)](_0x439874,{'command':_0x49d6b2,'details':_0x5857f2});}['warn'](_0x3f185b,_0x4920fc,_0x1f9a0b){const _0x8e9f33=a318_0x1e5874;if(!this[_0x8e9f33(0x140)]||!this[_0x8e9f33(0x152)])return;this['winstonLogger'][_0x8e9f33(0x149)](_0x4920fc,{'command':_0x3f185b,'details':_0x1f9a0b});}async['logTask'](_0x4a85d8,_0x2723b9,_0x14157b){const _0x40ddf1=a318_0x1e5874,_0x2707c2=Date[_0x40ddf1(0x12e)]();this[_0x40ddf1(0x12f)](_0x4a85d8,'Starting:\x20'+_0x2723b9);try{const _0x2d0a51=await _0x14157b(),_0x12a049=Date['now']()-_0x2707c2;return this[_0x40ddf1(0x12a)](_0x4a85d8,_0x40ddf1(0x135)+_0x2723b9,_0x12a049),_0x2d0a51;}catch(_0x17f6ed){const _0x5989c2=Date[_0x40ddf1(0x12e)]()-_0x2707c2;this[_0x40ddf1(0x13f)](_0x4a85d8,_0x40ddf1(0x144)+_0x2723b9,{'error':_0x17f6ed instanceof Error?_0x17f6ed[_0x40ddf1(0x120)]:String(_0x17f6ed),'duration':_0x5989c2});throw _0x17f6ed;}}[a318_0x1e5874(0x11b)](){const _0x442ee4=a318_0x1e5874;try{if(!a318_0x202d01[_0x442ee4(0x14b)](this['logFilePath']))return[];const _0x4de173=a318_0x202d01[_0x442ee4(0x14e)](this[_0x442ee4(0x140)],_0x442ee4(0x128));return _0x4de173[_0x442ee4(0x14c)]('\x0a')[_0x442ee4(0x13a)](_0x5dabfc=>_0x5dabfc[_0x442ee4(0x124)]())[_0x442ee4(0x12b)](_0x2fdda6=>JSON[_0x442ee4(0x147)](_0x2fdda6));}catch(_0x4cfb71){return console[_0x442ee4(0x149)](_0x442ee4(0x13b),_0x4cfb71),[];}}[a318_0x1e5874(0x133)](){const _0x4e67af=a318_0x1e5874;try{a318_0x202d01[_0x4e67af(0x14b)](this[_0x4e67af(0x140)])&&a318_0x202d01[_0x4e67af(0x13c)](this[_0x4e67af(0x140)],'','utf8');}catch(_0x516f5a){console[_0x4e67af(0x149)](_0x4e67af(0x141),_0x516f5a);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a318_0x2a38a4=a318_0x430c;(function(_0x30fae4,_0x454e91){const _0x2a788b=a318_0x430c,_0x106dd7=_0x30fae4();while(!![]){try{const _0x2c66b9=-parseInt(_0x2a788b(0x128))/0x1*(parseInt(_0x2a788b(0x12e))/0x2)+-parseInt(_0x2a788b(0x11b))/0x3+-parseInt(_0x2a788b(0x11d))/0x4*(parseInt(_0x2a788b(0x116))/0x5)+-parseInt(_0x2a788b(0x13b))/0x6*(-parseInt(_0x2a788b(0x143))/0x7)+parseInt(_0x2a788b(0x126))/0x8*(-parseInt(_0x2a788b(0x12c))/0x9)+parseInt(_0x2a788b(0x115))/0xa*(-parseInt(_0x2a788b(0x136))/0xb)+parseInt(_0x2a788b(0x122))/0xc;if(_0x2c66b9===_0x454e91)break;else _0x106dd7['push'](_0x106dd7['shift']());}catch(_0x1a8dea){_0x106dd7['push'](_0x106dd7['shift']());}}}(a318_0x36e5,0x42c8a));import a318_0x3a89c0 from'winston';import a318_0x23e2c4 from'node:fs';import a318_0x5110b1 from'node:path';function a318_0x430c(_0x5bc2a1,_0x547dd5){_0x5bc2a1=_0x5bc2a1-0x112;const _0x36e5ae=a318_0x36e5();let _0x430c63=_0x36e5ae[_0x5bc2a1];return _0x430c63;}class Logger{[a318_0x2a38a4(0x121)];[a318_0x2a38a4(0x118)];[a318_0x2a38a4(0x12b)]='';constructor(){const _0x59cf50=a318_0x2a38a4;this[_0x59cf50(0x118)]='';}[a318_0x2a38a4(0x141)](_0x2ab84d){this['currentRawCommand']=_0x2ab84d;}[a318_0x2a38a4(0x139)](){const _0x31c80b=a318_0x2a38a4,_0x2c728d=a318_0x5110b1[_0x31c80b(0x138)](this[_0x31c80b(0x118)]);!a318_0x23e2c4[_0x31c80b(0x12d)](_0x2c728d)&&a318_0x23e2c4['mkdirSync'](_0x2c728d,{'recursive':!![]});const _0x3d1747=a318_0x3a89c0[_0x31c80b(0x132)][_0x31c80b(0x11f)](a318_0x3a89c0[_0x31c80b(0x132)][_0x31c80b(0x11e)](),a318_0x3a89c0[_0x31c80b(0x132)][_0x31c80b(0x127)]({'stack':!![]}),a318_0x3a89c0[_0x31c80b(0x132)][_0x31c80b(0x135)](_0x4961bb=>{const _0x31248f=_0x31c80b,_0x3f9d8b={'timestamp':_0x4961bb[_0x31248f(0x11e)]||new Date()[_0x31248f(0x131)](),'level':_0x4961bb[_0x31248f(0x13d)]||_0x31248f(0x11c),'command':_0x4961bb[_0x31248f(0x137)]||'unknown','rawCommand':_0x4961bb[_0x31248f(0x12f)]||this[_0x31248f(0x12b)]||undefined,'message':_0x4961bb[_0x31248f(0x117)]||'','duration':_0x4961bb['duration']||undefined,'details':_0x4961bb[_0x31248f(0x119)]||undefined};return JSON[_0x31248f(0x13a)](_0x3f9d8b);}));this['winstonLogger']=a318_0x3a89c0['createLogger']({'level':'info','format':_0x3d1747,'transports':[new a318_0x3a89c0[(_0x31c80b(0x11a))][(_0x31c80b(0x148))]({'filename':this[_0x31c80b(0x118)],'level':_0x31c80b(0x11c)})],'silent':![]}),a318_0x3a89c0[_0x31c80b(0x124)]({'success':_0x31c80b(0x133),'error':'red','warn':'yellow','info':_0x31c80b(0x120)});}[a318_0x2a38a4(0x134)](_0x316b69){const _0x31a7f1=a318_0x2a38a4;this[_0x31a7f1(0x118)]=a318_0x5110b1[_0x31a7f1(0x146)](_0x316b69,'.lovrabet.log'),this[_0x31a7f1(0x121)]&&this[_0x31a7f1(0x121)][_0x31a7f1(0x149)](),this[_0x31a7f1(0x139)]();}['info'](_0x36029f,_0x11e653,_0xfeed40){const _0x564f2c=a318_0x2a38a4;if(!this[_0x564f2c(0x118)]||!this[_0x564f2c(0x121)])return;this['winstonLogger'][_0x564f2c(0x11c)](_0x11e653,{'command':_0x36029f,'details':_0xfeed40});}[a318_0x2a38a4(0x125)](_0x136777,_0x491dd9,_0x5732f9,_0x21889a){const _0x56b66d=a318_0x2a38a4;if(!this[_0x56b66d(0x118)]||!this[_0x56b66d(0x121)])return;this['winstonLogger']['log']('info',_0x491dd9,{'level':'success','command':_0x136777,'duration':_0x5732f9,'details':_0x21889a});}[a318_0x2a38a4(0x123)](_0x1a9e62,_0x3f3c78,_0x3085e3){const _0x9e62a4=a318_0x2a38a4;if(!this[_0x9e62a4(0x118)]||!this[_0x9e62a4(0x121)])return;this[_0x9e62a4(0x121)][_0x9e62a4(0x123)](_0x3f3c78,{'command':_0x1a9e62,'details':_0x3085e3});}[a318_0x2a38a4(0x140)](_0x53677d,_0x275b8b,_0x4d0b79){const _0x307b65=a318_0x2a38a4;if(!this['logFilePath']||!this[_0x307b65(0x121)])return;this[_0x307b65(0x121)]['warn'](_0x275b8b,{'command':_0x53677d,'details':_0x4d0b79});}async[a318_0x2a38a4(0x129)](_0xfb6163,_0x476337,_0x3e9866){const _0x2ee664=a318_0x2a38a4,_0x135438=Date[_0x2ee664(0x112)]();this[_0x2ee664(0x11c)](_0xfb6163,_0x2ee664(0x113)+_0x476337);try{const _0x2a5921=await _0x3e9866(),_0x3da4b3=Date[_0x2ee664(0x112)]()-_0x135438;return this[_0x2ee664(0x125)](_0xfb6163,_0x2ee664(0x114)+_0x476337,_0x3da4b3),_0x2a5921;}catch(_0x215a34){const _0xf87d3f=Date[_0x2ee664(0x112)]()-_0x135438;this[_0x2ee664(0x123)](_0xfb6163,_0x2ee664(0x130)+_0x476337,{'error':_0x215a34 instanceof Error?_0x215a34[_0x2ee664(0x117)]:String(_0x215a34),'duration':_0xf87d3f});throw _0x215a34;}}[a318_0x2a38a4(0x13f)](){const _0x23ddcd=a318_0x2a38a4;try{if(!a318_0x23e2c4[_0x23ddcd(0x12d)](this[_0x23ddcd(0x118)]))return[];const _0x58dcc4=a318_0x23e2c4[_0x23ddcd(0x145)](this['logFilePath'],_0x23ddcd(0x144));return _0x58dcc4[_0x23ddcd(0x142)]('\x0a')[_0x23ddcd(0x13c)](_0x51b489=>_0x51b489[_0x23ddcd(0x147)]())['map'](_0x8f4b=>JSON[_0x23ddcd(0x13e)](_0x8f4b));}catch(_0xeda05b){return console[_0x23ddcd(0x140)]('Failed\x20to\x20read\x20logs:',_0xeda05b),[];}}[a318_0x2a38a4(0x12a)](){const _0x1ce24b=a318_0x2a38a4;try{a318_0x23e2c4[_0x1ce24b(0x12d)](this[_0x1ce24b(0x118)])&&a318_0x23e2c4['writeFileSync'](this[_0x1ce24b(0x118)],'',_0x1ce24b(0x144));}catch(_0x39af26){console[_0x1ce24b(0x140)]('Failed\x20to\x20clear\x20logs:',_0x39af26);}}[a318_0x2a38a4(0x14a)](){const _0x3006e1=a318_0x2a38a4;return this[_0x3006e1(0x121)];}}export const logger=new Logger();function a318_0x36e5(){const _0xae320c=['dirname','initWinstonLogger','stringify','30cRLsun','filter','level','parse','readLogs','warn','setRawCommand','split','564298bxWsHs','utf8','readFileSync','join','trim','File','clear','getWinstonInstance','now','Starting:\x20','Completed:\x20','30ZhdYHw','502765apmTtp','message','logFilePath','details','transports','1580487ITuiTU','info','12TIsmXx','timestamp','combine','blue','winstonLogger','16220520psTHNa','error','addColors','success','8SMsOWH','errors','275509hgldao','logTask','clearLogs','currentRawCommand','3292452pTvDLF','existsSync','2VdHkqB','rawCommand','Failed:\x20','toISOString','format','green','setLogPath','printf','41833Ohdjsa','command'];a318_0x36e5=function(){return _0xae320c;};return a318_0x36e5();}
@@ -1 +1 @@
1
- function a319_0x968f(_0x1d7f49,_0x20660c){_0x1d7f49=_0x1d7f49-0x12b;const _0x49171b=a319_0x4917();let _0x968f74=_0x49171b[_0x1d7f49];return _0x968f74;}(function(_0x294adc,_0x11f104){const _0x217d4e=a319_0x968f,_0x17a872=_0x294adc();while(!![]){try{const _0x3235f0=parseInt(_0x217d4e(0x12b))/0x1+parseInt(_0x217d4e(0x12d))/0x2*(-parseInt(_0x217d4e(0x132))/0x3)+-parseInt(_0x217d4e(0x12f))/0x4+-parseInt(_0x217d4e(0x137))/0x5+parseInt(_0x217d4e(0x133))/0x6+parseInt(_0x217d4e(0x12c))/0x7*(parseInt(_0x217d4e(0x138))/0x8)+-parseInt(_0x217d4e(0x135))/0x9*(-parseInt(_0x217d4e(0x134))/0xa);if(_0x3235f0===_0x11f104)break;else _0x17a872['push'](_0x17a872['shift']());}catch(_0xfa4655){_0x17a872['push'](_0x17a872['shift']());}}}(a319_0x4917,0x70aba));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2e2764){const _0x5da0c0=a319_0x968f;if(!_0x2e2764)return undefined;let _0x428135;try{_0x428135=JSON['parse'](_0x2e2764);}catch{throw CliErrors[_0x5da0c0(0x139)](_0x5da0c0(0x131)+_0x2e2764);}if(!_0x428135||typeof _0x428135!==_0x5da0c0(0x136)||Array[_0x5da0c0(0x13a)](_0x428135))throw CliErrors[_0x5da0c0(0x139)](_0x5da0c0(0x130),_0x5da0c0(0x12e));return _0x428135;}function a319_0x4917(){const _0x2bd35c=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1593228hwvMcL','--params\x20must\x20be\x20a\x20JSON\x20object','Invalid\x20JSON\x20for\x20--params:\x20','73257eTxkFM','3427458NUlIeT','10JqPrkn','7349850SrQDux','object','4433805ZuOMvP','264AYRJGA','validation','isArray','579118jGARUe','98273SXGSer','56ouNLUF'];a319_0x4917=function(){return _0x2bd35c;};return a319_0x4917();}
1
+ (function(_0x27950c,_0x35f142){const _0x43514d=a319_0x5a76,_0x3047c6=_0x27950c();while(!![]){try{const _0x43abaa=-parseInt(_0x43514d(0x148))/0x1*(-parseInt(_0x43514d(0x153))/0x2)+-parseInt(_0x43514d(0x14f))/0x3*(parseInt(_0x43514d(0x145))/0x4)+parseInt(_0x43514d(0x146))/0x5*(parseInt(_0x43514d(0x14b))/0x6)+parseInt(_0x43514d(0x14c))/0x7+-parseInt(_0x43514d(0x149))/0x8*(-parseInt(_0x43514d(0x14d))/0x9)+parseInt(_0x43514d(0x151))/0xa+-parseInt(_0x43514d(0x147))/0xb;if(_0x43abaa===_0x35f142)break;else _0x3047c6['push'](_0x3047c6['shift']());}catch(_0x2e9915){_0x3047c6['push'](_0x3047c6['shift']());}}}(a319_0x20de,0x42abd));function a319_0x20de(){const _0x11fa1c=['40swQWGU','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','12osmofQ','2341997YgtsNQ','218133eZPJaA','Invalid\x20JSON\x20for\x20--params:\x20','45mHPsOi','validation','1319410JcodlM','object','112dbWcRy','28312ZoPsMC','326855orvWpS','9116712iZqdzO','8743OphUuP'];a319_0x20de=function(){return _0x11fa1c;};return a319_0x20de();}import{CliErrors}from'../errors.js';function a319_0x5a76(_0x2e8dbf,_0x37fbd9){_0x2e8dbf=_0x2e8dbf-0x145;const _0x20dec4=a319_0x20de();let _0x5a76ef=_0x20dec4[_0x2e8dbf];return _0x5a76ef;}export function parseJsonParams(_0x1f3596){const _0x47f1ae=a319_0x5a76;if(!_0x1f3596)return undefined;let _0x4ac1a2;try{_0x4ac1a2=JSON['parse'](_0x1f3596);}catch{throw CliErrors[_0x47f1ae(0x150)](_0x47f1ae(0x14e)+_0x1f3596);}if(!_0x4ac1a2||typeof _0x4ac1a2!==_0x47f1ae(0x152)||Array['isArray'](_0x4ac1a2))throw CliErrors[_0x47f1ae(0x150)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x47f1ae(0x14a));return _0x4ac1a2;}
@@ -1 +1 @@
1
- const a320_0x3f487e=a320_0x5df2;function a320_0x83be(){const _0x659173=['110331MxrFTT','54pYaeBJ','820IjvMZr','1298895zfNCZe','1989168LdqlbN','platform','3488586GstQzw','15IvzFWj','740176wRtzlB','win32','3064593ZbavRw','.cmd','15469fDWaIP'];a320_0x83be=function(){return _0x659173;};return a320_0x83be();}function a320_0x5df2(_0x274086,_0x4e004a){_0x274086=_0x274086-0x95;const _0x83be2e=a320_0x83be();let _0x5df2c2=_0x83be2e[_0x274086];return _0x5df2c2;}(function(_0x239836,_0x2cfcdb){const _0x239154=a320_0x5df2,_0xf8a906=_0x239836();while(!![]){try{const _0x86551e=-parseInt(_0x239154(0x9f))/0x1*(parseInt(_0x239154(0xa1))/0x2)+parseInt(_0x239154(0x96))/0x3+-parseInt(_0x239154(0x9b))/0x4*(parseInt(_0x239154(0x9a))/0x5)+parseInt(_0x239154(0x99))/0x6+-parseInt(_0x239154(0x9d))/0x7+-parseInt(_0x239154(0x97))/0x8+-parseInt(_0x239154(0xa0))/0x9*(-parseInt(_0x239154(0x95))/0xa);if(_0x86551e===_0x2cfcdb)break;else _0xf8a906['push'](_0xf8a906['shift']());}catch(_0x113110){_0xf8a906['push'](_0xf8a906['shift']());}}}(a320_0x83be,0x57fca));export const isWindows=process[a320_0x3f487e(0x98)]===a320_0x3f487e(0x9c);export function resolveNpmBin(_0x488eae){const _0x1426a3=a320_0x3f487e;return isWindows?_0x488eae+_0x1426a3(0x9e):_0x488eae;}
1
+ function a320_0x3655(){const _0x39e7c2=['144qphIpL','9142164OmkdMI','104KUsrZk','1184335yDFlUj','4395upBxmP','6941SMeuIQ','59206oUTEWw','17410tlzHKc','4kFRwKK','386085JKRhaS','6byopOV','3168IqThwF','.cmd','2410031ZlAFJk','platform'];a320_0x3655=function(){return _0x39e7c2;};return a320_0x3655();}function a320_0x1f58(_0x223032,_0x4df0ad){_0x223032=_0x223032-0x8d;const _0x365503=a320_0x3655();let _0x1f5843=_0x365503[_0x223032];return _0x1f5843;}const a320_0x45a62e=a320_0x1f58;(function(_0x139238,_0x443757){const _0xd0415c=a320_0x1f58,_0x15de66=_0x139238();while(!![]){try{const _0x2b1f6c=-parseInt(_0xd0415c(0x9b))/0x1*(-parseInt(_0xd0415c(0x99))/0x2)+parseInt(_0xd0415c(0x97))/0x3*(-parseInt(_0xd0415c(0x8f))/0x4)+-parseInt(_0xd0415c(0x96))/0x5*(-parseInt(_0xd0415c(0x8e))/0x6)+-parseInt(_0xd0415c(0x8d))/0x7*(parseInt(_0xd0415c(0x95))/0x8)+parseInt(_0xd0415c(0x94))/0x9+parseInt(_0xd0415c(0x9a))/0xa*(-parseInt(_0xd0415c(0x98))/0xb)+parseInt(_0xd0415c(0x93))/0xc*(parseInt(_0xd0415c(0x91))/0xd);if(_0x2b1f6c===_0x443757)break;else _0x15de66['push'](_0x15de66['shift']());}catch(_0x163d42){_0x15de66['push'](_0x15de66['shift']());}}}(a320_0x3655,0x9754d));export const isWindows=process[a320_0x45a62e(0x92)]==='win32';export function resolveNpmBin(_0x467be8){const _0x3a077e=a320_0x45a62e;return isWindows?_0x467be8+_0x3a077e(0x90):_0x467be8;}
@@ -1 +1 @@
1
- export function sleep(_0x3795f1){return new Promise(_0x15bc64=>setTimeout(_0x15bc64,_0x3795f1));}
1
+ export function sleep(_0x52ab7f){return new Promise(_0x362c0f=>setTimeout(_0x362c0f,_0x52ab7f));}
@@ -1 +1 @@
1
- function a322_0x3132(){const _0x10827d=['Template\x20content\x20replacement\x20failed','getDate','toUpperCase','info','formatLocalTimestamp','82anpZGE','.jsx','toLowerCase','replaceApiContent','copyFile','.js','processFile','3155336NBlgOk','19622pLVXzK','2050GKrXJs','tableName:\x20\x22','getHours','map','tableName','utf8','promises','getMinutes','9315559OQQNyN','.tsx','push','getSeconds','alias','380088fQnyMn','datasetCode:\x20\x22','2531805rbrcgH','toDisplayTitle','pop','pad','split','7nEgFDT','replace','template','getFullYear','api','toComponentName','.json','isFile','4mxEbbI','LOVRABET','now','name','extname','replaceContent','17793gUbkwJ','1115526NUsGEY','charAt','default','join','padStart','slice','.scss','mkdir','.md','12XYJYqN','toISOString','.tpl','.css','\x0a\x20\x20\x20\x20{\x20','includes','processDirectory'];a322_0x3132=function(){return _0x10827d;};return a322_0x3132();}const a322_0x10fd23=a322_0x410c;function a322_0x410c(_0x550353,_0xd18c30){_0x550353=_0x550353-0x18e;const _0x3132e8=a322_0x3132();let _0x410c67=_0x3132e8[_0x550353];return _0x410c67;}(function(_0xa776ca,_0x2ff033){const _0x5af1f9=a322_0x410c,_0x3c227c=_0xa776ca();while(!![]){try{const _0x17e8c4=-parseInt(_0x5af1f9(0x1b0))/0x1*(parseInt(_0x5af1f9(0x1b8))/0x2)+-parseInt(_0x5af1f9(0x1c6))/0x3+parseInt(_0x5af1f9(0x194))/0x4*(parseInt(_0x5af1f9(0x1c8))/0x5)+-parseInt(_0x5af1f9(0x19b))/0x6*(-parseInt(_0x5af1f9(0x1cd))/0x7)+-parseInt(_0x5af1f9(0x1b7))/0x8+-parseInt(_0x5af1f9(0x19a))/0x9*(-parseInt(_0x5af1f9(0x1b9))/0xa)+-parseInt(_0x5af1f9(0x1c1))/0xb*(-parseInt(_0x5af1f9(0x1a4))/0xc);if(_0x17e8c4===_0x2ff033)break;else _0x3c227c['push'](_0x3c227c['shift']());}catch(_0x1b3243){_0x3c227c['push'](_0x3c227c['shift']());}}}(a322_0x3132,0x97145));import a322_0x3e3caf from'node:fs';import a322_0x49b756 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a322_0x10fd23(0x1cb)](_0xee99d0){const _0x1336b6=a322_0x10fd23;return String(_0xee99d0)[_0x1336b6(0x19f)](0x2,'0');}static[a322_0x10fd23(0x1af)](_0x1f791f){const _0xe6381b=a322_0x10fd23,_0x37dfca=_0x1f791f[_0xe6381b(0x18f)](),_0x1b6d83=this['pad'](_0x1f791f['getMonth']()+0x1),_0x32332f=this['pad'](_0x1f791f[_0xe6381b(0x1ac)]()),_0x3d85b3=this[_0xe6381b(0x1cb)](_0x1f791f[_0xe6381b(0x1bb)]()),_0x71a54c=this[_0xe6381b(0x1cb)](_0x1f791f[_0xe6381b(0x1c0)]()),_0x37da9d=this[_0xe6381b(0x1cb)](_0x1f791f[_0xe6381b(0x1c4)]());return{'createdAt':_0x37dfca+'-'+_0x1b6d83+'-'+_0x32332f+'\x20'+_0x3d85b3+':'+_0x71a54c+':'+_0x37da9d,'createdDate':_0x37dfca+'-'+_0x1b6d83+'-'+_0x32332f,'createdTime':_0x3d85b3+':'+_0x71a54c+':'+_0x37da9d};}static['toComponentName'](_0x2ba54c){const _0x5216b4=a322_0x10fd23,_0x56ac21=_0x2ba54c[_0x5216b4(0x1cc)]('/')[_0x5216b4(0x1ca)]()||_0x2ba54c;return _0x56ac21[_0x5216b4(0x1cc)]('-')['map'](_0x3c1831=>_0x3c1831[_0x5216b4(0x19c)](0x0)[_0x5216b4(0x1ad)]()+_0x3c1831[_0x5216b4(0x1a0)](0x1)[_0x5216b4(0x1b2)]())[_0x5216b4(0x19e)]('');}static[a322_0x10fd23(0x1c9)](_0x5afbc5){const _0x1e24b3=a322_0x10fd23,_0x1c587a=_0x5afbc5[_0x1e24b3(0x1cc)]('/')[_0x1e24b3(0x1ca)]()||_0x5afbc5;return _0x1c587a[_0x1e24b3(0x1cc)]('-')[_0x1e24b3(0x1bc)](_0x2afd70=>_0x2afd70[_0x1e24b3(0x19c)](0x0)[_0x1e24b3(0x1ad)]()+_0x2afd70[_0x1e24b3(0x1a0)](0x1)[_0x1e24b3(0x1b2)]())[_0x1e24b3(0x19e)]('\x20');}static['replaceContent'](_0x1ff0d4,_0x70f474,_0x4e30a3){const _0x5def71=a322_0x10fd23,_0x290f9f=this[_0x5def71(0x191)](_0x70f474),_0xa49948=this[_0x5def71(0x1c9)](_0x70f474),{createdAt:_0x22c5e5,createdDate:_0x106cc4,createdTime:_0x1527d1}=this[_0x5def71(0x1af)](new Date());let _0x495855=_0x1ff0d4[_0x5def71(0x1ce)](/\{CliVersion\}/g,CLI_VERSION)[_0x5def71(0x1ce)](/\{ComponentName\}/g,_0x290f9f)['replace'](/\{DisplayTitle\}/g,_0xa49948)[_0x5def71(0x1ce)](/\{PageName\}/g,_0x70f474)[_0x5def71(0x1ce)](/\{TemplateName\}/g,_0x4e30a3)[_0x5def71(0x1ce)](/\{CreatedAt\}/g,_0x22c5e5)[_0x5def71(0x1ce)](/\{CreatedDate\}/g,_0x106cc4)['replace'](/\{CreatedTime\}/g,_0x1527d1);return _0x495855;}static[a322_0x10fd23(0x1b3)](_0x47ec8c,_0x489769,_0x586af1,_0x149414,_0x2657c8,_0x3488a6,_0x3edfcc,_0x2d850a){const _0x2ab628=a322_0x10fd23,_0x2312cf=new Date(),_0x5d8276=_0x2312cf[_0x2ab628(0x1a5)](),_0x1102fb=_0x586af1[_0x2ab628(0x1bc)](_0x2010d9=>{const _0x43cc59=_0x2ab628,_0x298015=[_0x43cc59(0x1c7)+_0x2010d9['datasetCode']+'\x22',_0x43cc59(0x1ba)+_0x2010d9[_0x43cc59(0x1bd)]+'\x22','name:\x20\x22'+_0x2010d9[_0x43cc59(0x197)]+'\x22'];return _0x2010d9['alias']&&_0x298015[_0x43cc59(0x1c3)]('alias:\x20\x22'+_0x2010d9[_0x43cc59(0x1c5)]+'\x22'),_0x43cc59(0x1a8)+_0x298015[_0x43cc59(0x19e)](',\x20')+'\x20},';})[_0x2ab628(0x19e)](''),_0x372442=_0x149414||_0x586af1[0x0]?.[_0x2ab628(0x1c5)]||'YourModel';let _0xbd92c7=_0x47ec8c['replace'](/\{AppCode\}/g,_0x489769)['replace'](/\{ModelConfigs\}/g,_0x1102fb)[_0x2ab628(0x1ce)](/\{ExampleModelName\}/g,_0x372442)['replace'](/\{ApiFileName\}/g,_0x2657c8||_0x2ab628(0x190))[_0x2ab628(0x1ce)](/\{ConfigName\}/g,_0x3488a6||_0x2ab628(0x19d))[_0x2ab628(0x1ce)](/\{ClientConfigParam\}/g,_0x3edfcc||'')['replace'](/\{VarPrefix\}/g,_0x2d850a||_0x2ab628(0x195))[_0x2ab628(0x1ce)](/\{CreatedAt\}/g,_0x5d8276);return _0xbd92c7;}static async['processTemplate'](_0x1dc3e4,_0x3aadd6,_0x32b91e,_0x104c44,_0x4d6494=!![]){const _0x5250ee=a322_0x10fd23,_0x1765cb=Date[_0x5250ee(0x196)]();try{_0x4d6494&&logger[_0x5250ee(0x1ae)](_0x5250ee(0x18e),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x1dc3e4,'targetPath':_0x3aadd6,'pageName':_0x32b91e,'templateName':_0x104c44});await a322_0x3e3caf[_0x5250ee(0x1bf)][_0x5250ee(0x1a2)](_0x3aadd6,{'recursive':!![]}),await this['processDirectory'](_0x1dc3e4,_0x3aadd6,_0x32b91e,_0x104c44);if(_0x4d6494){const _0x2f35ed=Date[_0x5250ee(0x196)]()-_0x1765cb;logger['success'](_0x5250ee(0x18e),'Template\x20content\x20replacement\x20completed',_0x2f35ed,{'pageName':_0x32b91e,'templateName':_0x104c44});}}catch(_0x42b40d){if(_0x4d6494){const _0x4e8f93=Date[_0x5250ee(0x196)]()-_0x1765cb;logger['error'](_0x5250ee(0x18e),_0x5250ee(0x1ab),{'templatePath':_0x1dc3e4,'targetPath':_0x3aadd6,'pageName':_0x32b91e,'templateName':_0x104c44,'error':_0x42b40d instanceof Error?_0x42b40d['message']:String(_0x42b40d),'duration':_0x4e8f93});}throw _0x42b40d;}}static async[a322_0x10fd23(0x1aa)](_0x244b93,_0xfa1e56,_0x308423,_0x2aac10){const _0x3cfbd6=a322_0x10fd23,_0x1e8a1c=await a322_0x3e3caf[_0x3cfbd6(0x1bf)]['readdir'](_0x244b93,{'withFileTypes':!![]});for(const _0x326248 of _0x1e8a1c){const _0x4540a6=a322_0x49b756[_0x3cfbd6(0x19e)](_0x244b93,_0x326248[_0x3cfbd6(0x197)]);let _0x354c51=a322_0x49b756[_0x3cfbd6(0x19e)](_0xfa1e56,_0x326248[_0x3cfbd6(0x197)]);_0x326248['name']['endsWith']('.tpl')&&(_0x354c51=a322_0x49b756[_0x3cfbd6(0x19e)](_0xfa1e56,_0x326248['name'][_0x3cfbd6(0x1ce)](/\.tpl$/,'')));if(_0x326248['isDirectory']())await a322_0x3e3caf[_0x3cfbd6(0x1bf)][_0x3cfbd6(0x1a2)](_0x354c51,{'recursive':!![]}),await this[_0x3cfbd6(0x1aa)](_0x4540a6,_0x354c51,_0x308423,_0x2aac10);else _0x326248[_0x3cfbd6(0x193)]()&&await this[_0x3cfbd6(0x1b6)](_0x4540a6,_0x354c51,_0x308423,_0x2aac10);}}static async[a322_0x10fd23(0x1b6)](_0x24128d,_0x13bccd,_0x521641,_0x5b4827){const _0x150bcf=a322_0x10fd23,_0x115805=a322_0x49b756[_0x150bcf(0x198)](_0x24128d)[_0x150bcf(0x1b2)]();_0x24128d['endsWith'](_0x150bcf(0x1a6))&&(_0x13bccd=_0x13bccd['replace'](/\.tpl$/,''));const _0x49e6aa=[_0x150bcf(0x1c2),'.ts',_0x150bcf(0x1b1),_0x150bcf(0x1b5),_0x150bcf(0x192),_0x150bcf(0x1a3),_0x150bcf(0x1a7),_0x150bcf(0x1a1),_0x150bcf(0x1a6)];if(_0x49e6aa[_0x150bcf(0x1a9)](_0x115805)||_0x24128d['endsWith'](_0x150bcf(0x1a6))){const _0x4bf4b4=await a322_0x3e3caf[_0x150bcf(0x1bf)]['readFile'](_0x24128d,_0x150bcf(0x1be)),_0x534e1a=this[_0x150bcf(0x199)](_0x4bf4b4,_0x521641,_0x5b4827);await a322_0x3e3caf['promises']['writeFile'](_0x13bccd,_0x534e1a,'utf8');}else await a322_0x3e3caf[_0x150bcf(0x1bf)][_0x150bcf(0x1b4)](_0x24128d,_0x13bccd);}}
1
+ const a322_0x560fb4=a322_0x4084;(function(_0x22318d,_0x557fe8){const _0x3f6fc4=a322_0x4084,_0xe7edaa=_0x22318d();while(!![]){try{const _0x2e9317=parseInt(_0x3f6fc4(0x15a))/0x1*(-parseInt(_0x3f6fc4(0x15d))/0x2)+-parseInt(_0x3f6fc4(0x181))/0x3*(parseInt(_0x3f6fc4(0x18d))/0x4)+-parseInt(_0x3f6fc4(0x152))/0x5+-parseInt(_0x3f6fc4(0x18e))/0x6*(-parseInt(_0x3f6fc4(0x18b))/0x7)+-parseInt(_0x3f6fc4(0x175))/0x8*(parseInt(_0x3f6fc4(0x18a))/0x9)+-parseInt(_0x3f6fc4(0x17c))/0xa+parseInt(_0x3f6fc4(0x17e))/0xb*(parseInt(_0x3f6fc4(0x167))/0xc);if(_0x2e9317===_0x557fe8)break;else _0xe7edaa['push'](_0xe7edaa['shift']());}catch(_0x99cf87){_0xe7edaa['push'](_0xe7edaa['shift']());}}}(a322_0x3519,0xa36fe));import a322_0x490603 from'node:fs';import a322_0x116d4c from'node:path';import{logger}from'../utils/logger.js';function a322_0x4084(_0x418619,_0x4c8ad2){_0x418619=_0x418619-0x14c;const _0x351918=a322_0x3519();let _0x408439=_0x351918[_0x418619];return _0x408439;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a322_0x560fb4(0x157)](_0x2e5df4){const _0xb633f3=a322_0x560fb4;return String(_0x2e5df4)[_0xb633f3(0x14f)](0x2,'0');}static['formatLocalTimestamp'](_0x5c6480){const _0x8b2d54=a322_0x560fb4,_0x323ada=_0x5c6480[_0x8b2d54(0x188)](),_0x5659b5=this[_0x8b2d54(0x157)](_0x5c6480[_0x8b2d54(0x184)]()+0x1),_0x480aa7=this['pad'](_0x5c6480['getDate']()),_0x4277ba=this[_0x8b2d54(0x157)](_0x5c6480['getHours']()),_0x37931e=this[_0x8b2d54(0x157)](_0x5c6480[_0x8b2d54(0x160)]()),_0x2c7c91=this[_0x8b2d54(0x157)](_0x5c6480['getSeconds']());return{'createdAt':_0x323ada+'-'+_0x5659b5+'-'+_0x480aa7+'\x20'+_0x4277ba+':'+_0x37931e+':'+_0x2c7c91,'createdDate':_0x323ada+'-'+_0x5659b5+'-'+_0x480aa7,'createdTime':_0x4277ba+':'+_0x37931e+':'+_0x2c7c91};}static[a322_0x560fb4(0x159)](_0x2dd4c8){const _0x151483=a322_0x560fb4,_0x25e14c=_0x2dd4c8[_0x151483(0x17f)]('/')['pop']()||_0x2dd4c8;return _0x25e14c[_0x151483(0x17f)]('-')[_0x151483(0x178)](_0xa81fc0=>_0xa81fc0[_0x151483(0x161)](0x0)[_0x151483(0x168)]()+_0xa81fc0['slice'](0x1)['toLowerCase']())[_0x151483(0x16c)]('');}static['toDisplayTitle'](_0x6c9d5){const _0x1b8174=a322_0x560fb4,_0x270025=_0x6c9d5[_0x1b8174(0x17f)]('/')[_0x1b8174(0x151)]()||_0x6c9d5;return _0x270025[_0x1b8174(0x17f)]('-')[_0x1b8174(0x178)](_0x48f63a=>_0x48f63a[_0x1b8174(0x161)](0x0)[_0x1b8174(0x168)]()+_0x48f63a[_0x1b8174(0x183)](0x1)['toLowerCase']())[_0x1b8174(0x16c)]('\x20');}static[a322_0x560fb4(0x177)](_0x5dae0b,_0x4f947d,_0x359227){const _0x515d8f=a322_0x560fb4,_0x14a28=this[_0x515d8f(0x159)](_0x4f947d),_0x1fac87=this[_0x515d8f(0x17b)](_0x4f947d),{createdAt:_0x56cae5,createdDate:_0x21150f,createdTime:_0x40c7e1}=this['formatLocalTimestamp'](new Date());let _0x491b66=_0x5dae0b[_0x515d8f(0x171)](/\{CliVersion\}/g,CLI_VERSION)[_0x515d8f(0x171)](/\{ComponentName\}/g,_0x14a28)[_0x515d8f(0x171)](/\{DisplayTitle\}/g,_0x1fac87)[_0x515d8f(0x171)](/\{PageName\}/g,_0x4f947d)[_0x515d8f(0x171)](/\{TemplateName\}/g,_0x359227)[_0x515d8f(0x171)](/\{CreatedAt\}/g,_0x56cae5)[_0x515d8f(0x171)](/\{CreatedDate\}/g,_0x21150f)['replace'](/\{CreatedTime\}/g,_0x40c7e1);return _0x491b66;}static['replaceApiContent'](_0x35e714,_0x21b8e3,_0x57847c,_0x339e35,_0x47e92e,_0x41a9d9,_0x4f6077,_0x2185da){const _0x234703=a322_0x560fb4,_0x1dbf5b=new Date(),_0x254e01=_0x1dbf5b[_0x234703(0x189)](),_0x8b0176=_0x57847c['map'](_0x1c9303=>{const _0x5cfe8f=_0x234703,_0x549aaa=['datasetCode:\x20\x22'+_0x1c9303[_0x5cfe8f(0x190)]+'\x22',_0x5cfe8f(0x16d)+_0x1c9303[_0x5cfe8f(0x163)]+'\x22',_0x5cfe8f(0x169)+_0x1c9303[_0x5cfe8f(0x165)]+'\x22'];return _0x1c9303['alias']&&_0x549aaa[_0x5cfe8f(0x166)]('alias:\x20\x22'+_0x1c9303[_0x5cfe8f(0x158)]+'\x22'),_0x5cfe8f(0x15f)+_0x549aaa[_0x5cfe8f(0x16c)](',\x20')+_0x5cfe8f(0x182);})['join'](''),_0x564796=_0x339e35||_0x57847c[0x0]?.[_0x234703(0x158)]||_0x234703(0x172);let _0x3e4c37=_0x35e714[_0x234703(0x171)](/\{AppCode\}/g,_0x21b8e3)['replace'](/\{ModelConfigs\}/g,_0x8b0176)['replace'](/\{ExampleModelName\}/g,_0x564796)['replace'](/\{ApiFileName\}/g,_0x47e92e||_0x234703(0x155))[_0x234703(0x171)](/\{ConfigName\}/g,_0x41a9d9||'default')['replace'](/\{ClientConfigParam\}/g,_0x4f6077||'')[_0x234703(0x171)](/\{VarPrefix\}/g,_0x2185da||_0x234703(0x154))[_0x234703(0x171)](/\{CreatedAt\}/g,_0x254e01);return _0x3e4c37;}static async[a322_0x560fb4(0x16e)](_0x109acb,_0x1af103,_0x369236,_0xdb0c41,_0x92c71=!![]){const _0x1f2a78=a322_0x560fb4,_0x13a1c3=Date[_0x1f2a78(0x174)]();try{_0x92c71&&logger['info'](_0x1f2a78(0x156),_0x1f2a78(0x15c),{'templatePath':_0x109acb,'targetPath':_0x1af103,'pageName':_0x369236,'templateName':_0xdb0c41});await a322_0x490603[_0x1f2a78(0x17a)]['mkdir'](_0x1af103,{'recursive':!![]}),await this[_0x1f2a78(0x179)](_0x109acb,_0x1af103,_0x369236,_0xdb0c41);if(_0x92c71){const _0x2b3006=Date[_0x1f2a78(0x174)]()-_0x13a1c3;logger[_0x1f2a78(0x153)](_0x1f2a78(0x156),_0x1f2a78(0x164),_0x2b3006,{'pageName':_0x369236,'templateName':_0xdb0c41});}}catch(_0x3e1425){if(_0x92c71){const _0xf12279=Date[_0x1f2a78(0x174)]()-_0x13a1c3;logger[_0x1f2a78(0x15b)](_0x1f2a78(0x156),_0x1f2a78(0x18c),{'templatePath':_0x109acb,'targetPath':_0x1af103,'pageName':_0x369236,'templateName':_0xdb0c41,'error':_0x3e1425 instanceof Error?_0x3e1425[_0x1f2a78(0x150)]:String(_0x3e1425),'duration':_0xf12279});}throw _0x3e1425;}}static async[a322_0x560fb4(0x179)](_0x3eba84,_0x51b66b,_0x529cc4,_0x53e6e0){const _0x4ef58a=a322_0x560fb4,_0x128bf5=await a322_0x490603[_0x4ef58a(0x17a)][_0x4ef58a(0x14d)](_0x3eba84,{'withFileTypes':!![]});for(const _0x26d899 of _0x128bf5){const _0x2e0381=a322_0x116d4c[_0x4ef58a(0x16c)](_0x3eba84,_0x26d899[_0x4ef58a(0x165)]);let _0x2fdd02=a322_0x116d4c[_0x4ef58a(0x16c)](_0x51b66b,_0x26d899[_0x4ef58a(0x165)]);_0x26d899['name'][_0x4ef58a(0x17d)](_0x4ef58a(0x180))&&(_0x2fdd02=a322_0x116d4c['join'](_0x51b66b,_0x26d899['name']['replace'](/\.tpl$/,'')));if(_0x26d899[_0x4ef58a(0x186)]())await a322_0x490603[_0x4ef58a(0x17a)][_0x4ef58a(0x14e)](_0x2fdd02,{'recursive':!![]}),await this['processDirectory'](_0x2e0381,_0x2fdd02,_0x529cc4,_0x53e6e0);else _0x26d899[_0x4ef58a(0x170)]()&&await this[_0x4ef58a(0x16b)](_0x2e0381,_0x2fdd02,_0x529cc4,_0x53e6e0);}}static async[a322_0x560fb4(0x16b)](_0x2a0f0d,_0x3bc276,_0x34cfce,_0x3a6623){const _0x4cb6a0=a322_0x560fb4,_0x1432ad=a322_0x116d4c[_0x4cb6a0(0x16f)](_0x2a0f0d)[_0x4cb6a0(0x173)]();_0x2a0f0d[_0x4cb6a0(0x17d)]('.tpl')&&(_0x3bc276=_0x3bc276[_0x4cb6a0(0x171)](/\.tpl$/,''));const _0x20116d=[_0x4cb6a0(0x14c),'.ts',_0x4cb6a0(0x162),_0x4cb6a0(0x16a),_0x4cb6a0(0x18f),_0x4cb6a0(0x187),'.css','.scss',_0x4cb6a0(0x180)];if(_0x20116d[_0x4cb6a0(0x176)](_0x1432ad)||_0x2a0f0d['endsWith']('.tpl')){const _0x46c8c0=await a322_0x490603['promises'][_0x4cb6a0(0x191)](_0x2a0f0d,_0x4cb6a0(0x185)),_0x8b2bd1=this['replaceContent'](_0x46c8c0,_0x34cfce,_0x3a6623);await a322_0x490603[_0x4cb6a0(0x17a)][_0x4cb6a0(0x15e)](_0x3bc276,_0x8b2bd1,_0x4cb6a0(0x185));}else await a322_0x490603[_0x4cb6a0(0x17a)]['copyFile'](_0x2a0f0d,_0x3bc276);}}function a322_0x3519(){const _0x4d797b=['success','LOVRABET','api','template','pad','alias','toComponentName','19328tshCJf','error','Starting\x20template\x20content\x20replacement','82xzZyVT','writeFile','\x0a\x20\x20\x20\x20{\x20','getMinutes','charAt','.jsx','tableName','Template\x20content\x20replacement\x20completed','name','push','7131864anNtQL','toUpperCase','name:\x20\x22','.js','processFile','join','tableName:\x20\x22','processTemplate','extname','isFile','replace','YourModel','toLowerCase','now','8ZDzuwd','includes','replaceContent','map','processDirectory','promises','toDisplayTitle','2027100zPcVtp','endsWith','55XmUCVy','split','.tpl','3024OxXTru','\x20},','slice','getMonth','utf8','isDirectory','.md','getFullYear','toISOString','6750468kLVQDC','217OSVGap','Template\x20content\x20replacement\x20failed','724uEDJoR','45798bRUJla','.json','datasetCode','readFile','.tsx','readdir','mkdir','padStart','message','pop','3055685WteIXV'];a322_0x3519=function(){return _0x4d797b;};return a322_0x3519();}
@@ -1 +1 @@
1
- (function(_0x3d0c04,_0x23d411){const _0x37681e=a323_0x3a62,_0x655843=_0x3d0c04();while(!![]){try{const _0x45835c=parseInt(_0x37681e(0x155))/0x1+-parseInt(_0x37681e(0x147))/0x2*(-parseInt(_0x37681e(0x142))/0x3)+-parseInt(_0x37681e(0x15f))/0x4*(-parseInt(_0x37681e(0x154))/0x5)+-parseInt(_0x37681e(0x151))/0x6+-parseInt(_0x37681e(0x14e))/0x7*(-parseInt(_0x37681e(0x14d))/0x8)+parseInt(_0x37681e(0x156))/0x9*(-parseInt(_0x37681e(0x158))/0xa)+-parseInt(_0x37681e(0x152))/0xb*(parseInt(_0x37681e(0x15c))/0xc);if(_0x45835c===_0x23d411)break;else _0x655843['push'](_0x655843['shift']());}catch(_0x2ff533){_0x655843['push'](_0x655843['shift']());}}}(a323_0x5b14,0x7d77a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a323_0x136e3b 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 _0x21b41e=a323_0x3a62,_0x41c50c=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x21b41e(0x15b)]()[_0x21b41e(0x150)]();return _0x41c50c==='1'||_0x41c50c===_0x21b41e(0x15e)||_0x41c50c===_0x21b41e(0x145);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a323_0x3a62(_0x290a29,_0x13edc1){_0x290a29=_0x290a29-0x142;const _0x5b14ed=a323_0x5b14();let _0x3a6281=_0x5b14ed[_0x290a29];return _0x3a6281;}export function getUpdateNoticeCachePath(){const _0x18c0a3=a323_0x3a62;return join(cacheRoot(),'rabetbase-cli',_0x18c0a3(0x157));}async function readUpdateNoticeCache(){const _0x4eb87d=a323_0x3a62;try{const _0x3c416c=await readFile(getUpdateNoticeCachePath(),_0x4eb87d(0x14c)),_0x2b2c29=JSON['parse'](_0x3c416c);if(!_0x2b2c29||typeof _0x2b2c29!==_0x4eb87d(0x148))return{};return _0x2b2c29;}catch{return{};}}function a323_0x5b14(){const _0x4fb2fa=['756544MyieXY','49trSNZZ','now','toLowerCase','5269176YyvTVv','22xAgSHR','checkedAt','3995890wVrXjt','130160RWwXlR','36QmLawc','update-check.json','556340lPQQhp','latest','lastNotifiedVersion','trim','51036znEaVx','number','true','4Ygvusn','47757zTGmHk','lastNotifiedAt','valid','yes','stringify','4VqYsDK','object','https://www.npmjs.com/package/','stableVersion','\x20available,\x20current\x20','utf8'];a323_0x5b14=function(){return _0x4fb2fa;};return a323_0x5b14();}async function writeUpdateNoticeCache(_0x25583c){const _0x3e274e=a323_0x3a62;try{const _0x3ec760=getUpdateNoticeCachePath();await mkdir(dirname(_0x3ec760),{'recursive':!![]}),await writeFile(_0x3ec760,JSON[_0x3e274e(0x146)](_0x25583c,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x9ecead,_0x32bf94){const _0x13e223=a323_0x3a62;return typeof _0x9ecead[_0x13e223(0x153)]===_0x13e223(0x15d)&&_0x32bf94-_0x9ecead[_0x13e223(0x153)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3dad05,_0x89fbb2,_0x27936f){const _0x4ab023=a323_0x3a62;return _0x3dad05[_0x4ab023(0x15a)]===_0x89fbb2&&typeof _0x3dad05[_0x4ab023(0x143)]===_0x4ab023(0x15d)&&_0x27936f-_0x3dad05['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4357ef){const _0x54b592=a323_0x3a62;return _0x54b592(0x149)+NPM_PACKAGE_NAME+'/v/'+_0x4357ef;}export async function resolveLatestUpdateNotice(){const _0x447801=a323_0x3a62;if(isUpdateNoticeDisabled())return null;try{const _0x4ecda8=Date[_0x447801(0x14f)](),_0x2aff05=getCliVersion(),_0x262a88=await readUpdateNoticeCache();let _0xc60623=isFreshCheck(_0x262a88,_0x4ecda8)?_0x262a88[_0x447801(0x159)]?.['trim']():undefined;if(!_0xc60623&&!isFreshCheck(_0x262a88,_0x4ecda8)){const _0x3683d1=await getCliVersionPolicy();_0xc60623=_0x3683d1?.[_0x447801(0x14a)]?.[_0x447801(0x15b)]()||undefined,await writeUpdateNoticeCache({..._0x262a88,'checkedAt':_0x4ecda8,'latest':_0xc60623,'failed':!_0xc60623});}if(!_0xc60623||!a323_0x136e3b['valid'](_0x2aff05)||!a323_0x136e3b[_0x447801(0x144)](_0xc60623))return null;if(a323_0x136e3b['gte'](_0x2aff05,_0xc60623))return null;if(isRecentlyNotified(_0x262a88,_0xc60623,_0x4ecda8))return null;const _0x310e0e=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x262a88,'checkedAt':isFreshCheck(_0x262a88,_0x4ecda8)?_0x262a88['checkedAt']:_0x4ecda8,'latest':_0xc60623,'failed':![],'lastNotifiedVersion':_0xc60623,'lastNotifiedAt':_0x4ecda8}),{'command':_0x310e0e,'current':_0x2aff05,'latest':_0xc60623,'url':buildNpmVersionUrl(_0xc60623),'message':CLI_BIN_NAME+'\x20'+_0xc60623+_0x447801(0x14b)+_0x2aff05+',\x20run:\x20'+_0x310e0e};}catch{return null;}}
1
+ (function(_0x41c129,_0x261b18){const _0x446787=a323_0x3ae5,_0x22c8b9=_0x41c129();while(!![]){try{const _0xa094de=parseInt(_0x446787(0x95))/0x1*(parseInt(_0x446787(0x94))/0x2)+parseInt(_0x446787(0x9b))/0x3*(parseInt(_0x446787(0xa9))/0x4)+parseInt(_0x446787(0xa1))/0x5*(-parseInt(_0x446787(0xb0))/0x6)+-parseInt(_0x446787(0x99))/0x7*(-parseInt(_0x446787(0xb4))/0x8)+parseInt(_0x446787(0xa8))/0x9+-parseInt(_0x446787(0x97))/0xa*(-parseInt(_0x446787(0xa6))/0xb)+-parseInt(_0x446787(0xad))/0xc;if(_0xa094de===_0x261b18)break;else _0x22c8b9['push'](_0x22c8b9['shift']());}catch(_0x2c50d7){_0x22c8b9['push'](_0x22c8b9['shift']());}}}(a323_0x4b86,0xedfaf));import{mkdir,readFile,writeFile}from'node:fs/promises';function a323_0x3ae5(_0x149779,_0x744749){_0x149779=_0x149779-0x94;const _0x4b860d=a323_0x4b86();let _0x3ae514=_0x4b860d[_0x149779];return _0x3ae514;}import{homedir}from'node:os';import{dirname,join}from'node:path';import a323_0x1f164b 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 _0x3f367d=a323_0x3ae5,_0x20691e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3f367d(0xac)]()[_0x3f367d(0xb1)]();return _0x20691e==='1'||_0x20691e===_0x3f367d(0x9d)||_0x20691e===_0x3f367d(0xa5);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x158ee0=a323_0x3ae5;return join(cacheRoot(),_0x158ee0(0x98),_0x158ee0(0xaf));}function a323_0x4b86(){const _0x26e160=['36757548mJieSg','parse','update-check.json','213594tPblqq','toLowerCase','lastNotifiedAt','checkedAt','273816RYalKt','latest','805762JLDOvv','3ixjyyH','stableVersion','13313430XqcdkL','rabetbase-cli','63DlolBr','now','3InoLiJ','object','true','valid','gte','\x20available,\x20current\x20','190KavgiU','lastNotifiedVersion','\x20update','number','yes','11fKfjUI','https://www.npmjs.com/package/','12284073mAsZmM','4710928ERuUOU',',\x20run:\x20','stringify','trim'];a323_0x4b86=function(){return _0x26e160;};return a323_0x4b86();}async function readUpdateNoticeCache(){const _0x454121=a323_0x3ae5;try{const _0x446dd6=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x59b5cc=JSON[_0x454121(0xae)](_0x446dd6);if(!_0x59b5cc||typeof _0x59b5cc!==_0x454121(0x9c))return{};return _0x59b5cc;}catch{return{};}}async function writeUpdateNoticeCache(_0x43e6dd){const _0x42ff95=a323_0x3ae5;try{const _0x5c791c=getUpdateNoticeCachePath();await mkdir(dirname(_0x5c791c),{'recursive':!![]}),await writeFile(_0x5c791c,JSON[_0x42ff95(0xab)](_0x43e6dd,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x22c12a,_0xf916a0){const _0x11186f=a323_0x3ae5;return typeof _0x22c12a[_0x11186f(0xb3)]==='number'&&_0xf916a0-_0x22c12a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x312b78,_0x2d7abe,_0x3ca124){const _0xd39d98=a323_0x3ae5;return _0x312b78[_0xd39d98(0xa2)]===_0x2d7abe&&typeof _0x312b78[_0xd39d98(0xb2)]===_0xd39d98(0xa4)&&_0x3ca124-_0x312b78[_0xd39d98(0xb2)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x574bce){const _0x22a8ae=a323_0x3ae5;return _0x22a8ae(0xa7)+NPM_PACKAGE_NAME+'/v/'+_0x574bce;}export async function resolveLatestUpdateNotice(){const _0x4e3336=a323_0x3ae5;if(isUpdateNoticeDisabled())return null;try{const _0x46bce5=Date[_0x4e3336(0x9a)](),_0x403e64=getCliVersion(),_0x4942d3=await readUpdateNoticeCache();let _0x3c47fa=isFreshCheck(_0x4942d3,_0x46bce5)?_0x4942d3[_0x4e3336(0xb5)]?.[_0x4e3336(0xac)]():undefined;if(!_0x3c47fa&&!isFreshCheck(_0x4942d3,_0x46bce5)){const _0x54a78a=await getCliVersionPolicy();_0x3c47fa=_0x54a78a?.[_0x4e3336(0x96)]?.[_0x4e3336(0xac)]()||undefined,await writeUpdateNoticeCache({..._0x4942d3,'checkedAt':_0x46bce5,'latest':_0x3c47fa,'failed':!_0x3c47fa});}if(!_0x3c47fa||!a323_0x1f164b[_0x4e3336(0x9e)](_0x403e64)||!a323_0x1f164b['valid'](_0x3c47fa))return null;if(a323_0x1f164b[_0x4e3336(0x9f)](_0x403e64,_0x3c47fa))return null;if(isRecentlyNotified(_0x4942d3,_0x3c47fa,_0x46bce5))return null;const _0x134274=CLI_BIN_NAME+_0x4e3336(0xa3);return await writeUpdateNoticeCache({..._0x4942d3,'checkedAt':isFreshCheck(_0x4942d3,_0x46bce5)?_0x4942d3['checkedAt']:_0x46bce5,'latest':_0x3c47fa,'failed':![],'lastNotifiedVersion':_0x3c47fa,'lastNotifiedAt':_0x46bce5}),{'command':_0x134274,'current':_0x403e64,'latest':_0x3c47fa,'url':buildNpmVersionUrl(_0x3c47fa),'message':CLI_BIN_NAME+'\x20'+_0x3c47fa+_0x4e3336(0xa0)+_0x403e64+_0x4e3336(0xaa)+_0x134274};}catch{return null;}}
@@ -1 +1 @@
1
- function a324_0x46fb(_0x386b07,_0x3f702a){_0x386b07=_0x386b07-0x134;var _0x469e18=a324_0x469e();var _0x46fbfd=_0x469e18[_0x386b07];return _0x46fbfd;}(function(_0x3860a7,_0x5e2dd5){var _0x280f8f=a324_0x46fb,_0x1d167c=_0x3860a7();while(!![]){try{var _0x5045e4=parseInt(_0x280f8f(0x13b))/0x1*(-parseInt(_0x280f8f(0x137))/0x2)+parseInt(_0x280f8f(0x13d))/0x3+-parseInt(_0x280f8f(0x136))/0x4*(parseInt(_0x280f8f(0x13a))/0x5)+-parseInt(_0x280f8f(0x13e))/0x6*(parseInt(_0x280f8f(0x134))/0x7)+parseInt(_0x280f8f(0x138))/0x8+-parseInt(_0x280f8f(0x13c))/0x9*(-parseInt(_0x280f8f(0x139))/0xa)+parseInt(_0x280f8f(0x135))/0xb;if(_0x5045e4===_0x5e2dd5)break;else _0x1d167c['push'](_0x1d167c['shift']());}catch(_0x165290){_0x1d167c['push'](_0x1d167c['shift']());}}}(a324_0x469e,0x2745f));function a324_0x469e(){var _0x236b71=['10892yzPkru','1408869YBpTFS','111260IkNeBF','111898CgtKJV','2249392ZSzOtT','210xjsefL','55BlPwDU','3ChRIxV','95616XMrafy','539106lQRdSd','684ZhtSUV'];a324_0x469e=function(){return _0x236b71;};return a324_0x469e();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ (function(_0x4f1f48,_0x852c23){var _0x4f017d=a324_0x39cd,_0x5c79a5=_0x4f1f48();while(!![]){try{var _0x457b74=-parseInt(_0x4f017d(0x1ac))/0x1*(parseInt(_0x4f017d(0x1aa))/0x2)+-parseInt(_0x4f017d(0x1a8))/0x3+-parseInt(_0x4f017d(0x1a7))/0x4*(-parseInt(_0x4f017d(0x1ae))/0x5)+-parseInt(_0x4f017d(0x1ab))/0x6+-parseInt(_0x4f017d(0x1ad))/0x7+-parseInt(_0x4f017d(0x1a9))/0x8+parseInt(_0x4f017d(0x1af))/0x9;if(_0x457b74===_0x852c23)break;else _0x5c79a5['push'](_0x5c79a5['shift']());}catch(_0x117901){_0x5c79a5['push'](_0x5c79a5['shift']());}}}(a324_0x3181,0x4c9a3));import{VERSION}from'../generated/build-info.js';function a324_0x39cd(_0x3a6cbd,_0x5924ec){_0x3a6cbd=_0x3a6cbd-0x1a7;var _0x3181f3=a324_0x3181();var _0x39cdeb=_0x3181f3[_0x3a6cbd];return _0x39cdeb;}export function getCliVersion(){return VERSION;}function a324_0x3181(){var _0xc4dec5=['151805ESToUl','19334619FOzqHv','44nSwOTT','1743927rhCXPX','4612232qsKtLc','4460DduKSB','1450890SDaIBP','223HHNTBf','1900892VaVNVu'];a324_0x3181=function(){return _0xc4dec5;};return a324_0x3181();}
@@ -1 +1 @@
1
- (function(_0x454a39,_0x303fdb){var _0x14ddf6=a325_0x7d97,_0x394ab4=_0x454a39();while(!![]){try{var _0x11687a=parseInt(_0x14ddf6(0x108))/0x1*(parseInt(_0x14ddf6(0x10f))/0x2)+parseInt(_0x14ddf6(0x110))/0x3+parseInt(_0x14ddf6(0x10b))/0x4+-parseInt(_0x14ddf6(0x10e))/0x5*(-parseInt(_0x14ddf6(0x10a))/0x6)+parseInt(_0x14ddf6(0x10d))/0x7+parseInt(_0x14ddf6(0x109))/0x8+-parseInt(_0x14ddf6(0x10c))/0x9;if(_0x11687a===_0x303fdb)break;else _0x394ab4['push'](_0x394ab4['shift']());}catch(_0x34aedc){_0x394ab4['push'](_0x394ab4['shift']());}}}(a325_0x2ff5,0x8bf40));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a325_0x2ff5(){var _0x4b63de=['6421282OthXyy','3681270fFyAlM','495422rzgdqN','2842308rlSjno','2YcBpVA','366984yiwjfa','6wtvTVu','864516mvqIlq','25066728FjCCyw'];a325_0x2ff5=function(){return _0x4b63de;};return a325_0x2ff5();}function a325_0x7d97(_0x567ae1,_0x575486){_0x567ae1=_0x567ae1-0x108;var _0x2ff581=a325_0x2ff5();var _0x7d973e=_0x2ff581[_0x567ae1];return _0x7d973e;}export async function withActiveCookie(_0x27b3df,_0x3c46ff){setActiveCookie(_0x27b3df);try{return await _0x3c46ff();}finally{clearActiveCookie();}}
1
+ (function(_0x508464,_0x2d2dda){var _0x191e8b=a325_0x1db4,_0x4d9a68=_0x508464();while(!![]){try{var _0x4bf5fc=parseInt(_0x191e8b(0x17d))/0x1*(parseInt(_0x191e8b(0x182))/0x2)+-parseInt(_0x191e8b(0x181))/0x3+parseInt(_0x191e8b(0x17f))/0x4+parseInt(_0x191e8b(0x183))/0x5*(parseInt(_0x191e8b(0x17b))/0x6)+-parseInt(_0x191e8b(0x17a))/0x7*(parseInt(_0x191e8b(0x17e))/0x8)+-parseInt(_0x191e8b(0x180))/0x9+-parseInt(_0x191e8b(0x179))/0xa*(-parseInt(_0x191e8b(0x17c))/0xb);if(_0x4bf5fc===_0x2d2dda)break;else _0x4d9a68['push'](_0x4d9a68['shift']());}catch(_0x110637){_0x4d9a68['push'](_0x4d9a68['shift']());}}}(a325_0x29d8,0x4f2de));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a325_0x1db4(_0x384e7d,_0x1d1ac6){_0x384e7d=_0x384e7d-0x179;var _0x29d83f=a325_0x29d8();var _0x1db4cc=_0x29d83f[_0x384e7d];return _0x1db4cc;}export async function withActiveCookie(_0x2a23f1,_0x293b81){setActiveCookie(_0x2a23f1);try{return await _0x293b81();}finally{clearActiveCookie();}}function a325_0x29d8(){var _0x79431b=['58715uZYzDw','42472roLtkR','1519632jmwnSv','4452696wpCWbv','1445502FSKkUT','8kXLxQy','115OOYdRf','1019680aiMoQC','133VOFNcB','45702zSzKKr','66igkuTN'];a325_0x29d8=function(){return _0x79431b;};return a325_0x29d8();}
@@ -1 +1 @@
1
- (function(_0x22cb77,_0x534c09){var _0x38bee4=a326_0x5b54,_0x2923a9=_0x22cb77();while(!![]){try{var _0x25fd2c=parseInt(_0x38bee4(0x13c))/0x1+parseInt(_0x38bee4(0x139))/0x2+parseInt(_0x38bee4(0x138))/0x3+parseInt(_0x38bee4(0x13a))/0x4+parseInt(_0x38bee4(0x137))/0x5+parseInt(_0x38bee4(0x136))/0x6+-parseInt(_0x38bee4(0x135))/0x7;if(_0x25fd2c===_0x534c09)break;else _0x2923a9['push'](_0x2923a9['shift']());}catch(_0x482a12){_0x2923a9['push'](_0x2923a9['shift']());}}}(a326_0x3024,0x5d962));function a326_0x5b54(_0x33f6ac,_0xc099ad){_0x33f6ac=_0x33f6ac-0x135;var _0x302488=a326_0x3024();var _0x5b5487=_0x302488[_0x33f6ac];return _0x5b5487;}export function writeCliSideChannelLine(_0xd2f3d2){var _0xd97cfb=a326_0x5b54;process[_0xd97cfb(0x13d)][_0xd97cfb(0x13b)](_0xd2f3d2+'\x0a');}function a326_0x3024(){var _0x487371=['339044NTPBBa','stderr','17600128bDwWLI','1748226acTKaB','3776715wKxyth','2259438lrDypS','341144MApZIk','2352632xiVZYS','write'];a326_0x3024=function(){return _0x487371;};return a326_0x3024();}
1
+ (function(_0x1e6d65,_0x5cf31b){var _0x39a3e4=a326_0x1cf6,_0x54e352=_0x1e6d65();while(!![]){try{var _0x30976e=-parseInt(_0x39a3e4(0x93))/0x1+-parseInt(_0x39a3e4(0x95))/0x2+parseInt(_0x39a3e4(0x8f))/0x3*(parseInt(_0x39a3e4(0x90))/0x4)+parseInt(_0x39a3e4(0x8d))/0x5*(-parseInt(_0x39a3e4(0x94))/0x6)+-parseInt(_0x39a3e4(0x8c))/0x7*(-parseInt(_0x39a3e4(0x92))/0x8)+-parseInt(_0x39a3e4(0x91))/0x9*(parseInt(_0x39a3e4(0x8b))/0xa)+parseInt(_0x39a3e4(0x8e))/0xb;if(_0x30976e===_0x5cf31b)break;else _0x54e352['push'](_0x54e352['shift']());}catch(_0x26d72c){_0x54e352['push'](_0x54e352['shift']());}}}(a326_0x1912,0x204db));export function writeCliSideChannelLine(_0x36c014){process['stderr']['write'](_0x36c014+'\x0a');}function a326_0x1cf6(_0x590acf,_0x54b24d){_0x590acf=_0x590acf-0x8b;var _0x191210=a326_0x1912();var _0x1cf603=_0x191210[_0x590acf];return _0x1cf603;}function a326_0x1912(){var _0x43cde0=['20BHRUyL','7NVWWfr','1006795HfCImF','5446771CLXEzj','145107PHKXRr','4CZnzvY','292374cypTkw','834064HXZNDk','28691BgfKWr','6OSGLOj','440902rAecXX'];a326_0x1912=function(){return _0x43cde0;};return a326_0x1912();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.2-beta.2",
3
+ "version": "2.5.2-beta.3",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.2-beta.2
3
+ version: 2.5.2-beta.3
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, SQL, Backend Functions, 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, SQL, BFF, 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:
@@ -333,7 +333,7 @@ const result = await client.bff.execute<DashboardData>({
333
333
  | 查看/管理开发角色 | [`rabetbase role list/detail/update/delete`](references/rabetbase-role-list.md) | 角色类型为 ADMIN/DEV/OWNER/CUSTOM;仅 CUSTOM 可改/删;当前不提供 create;输出 `scope: dev` |
334
334
  | 解析昵称/用户名到 userId | [`rabetbase role user-resolve`](references/rabetbase-role-user-resolve.md) | 基于租户成员目录;重名时列出候选 ID,再把选中的 ID 传给 `role user-add/user-remove --user <id>` |
335
335
  | 查询租户人员列表 | [`rabetbase tenant members-list --tenant-code <code>`](references/rabetbase-tenant-members-list.md) | 先校验当前账号所属租户,再返回全量人员;不分页、不输出邮箱/手机号/头像 |
336
- | 查询应用人员及角色列表 | [`rabetbase app members-list --appcode <code>`](references/rabetbase-app-members-list.md) | 按 userId 去重并聚合 `roles[]`;同时保留 ACTIVE/PENDING 角色归属 |
336
+ | 查询应用人员及角色列表 | [`rabetbase app members-list --appcode <code>`](references/rabetbase-app-members-list.md) | 按 userId 去重并聚合 `roles[]`;角色归属输出 `roleCode`,同时保留 ACTIVE/PENDING 状态 |
337
337
  | 把开发协作者加入/移出角色 | [`rabetbase role user-add / user-remove`](references/rabetbase-role-user-add.md) | 只改目标开发角色;OWNER 直接拒绝;`high-risk-write`,先 `--dry-run` |
338
338
  | 按 ID 删除菜单或目录树 | [`rabetbase menu delete`](references/rabetbase-menu-delete.md) | 精确删除空 folder/非 folder 叶子;非空 folder 显式 `--recursive`,计划按叶子优先批量提交并回读 |
339
339
  | 创建空菜单分组 | [`rabetbase menu group-create`](references/rabetbase-menu-group-create.md) | group 持久化为 `type=folder`,保留平台生成的非空 path;先 dry-run 并检查创建位置与排序 |
@@ -29,6 +29,7 @@ rabetbase app members-list --appcode app-example --format compress
29
29
  "roles": [
30
30
  {
31
31
  "roleId": 2,
32
+ "roleCode": "developer",
32
33
  "roleName": "开发者",
33
34
  "roleType": "DEV",
34
35
  "membershipStatus": "ACTIVE"
@@ -42,6 +43,7 @@ rabetbase app members-list --appcode app-example --format compress
42
43
  ```
43
44
 
44
45
  - `membershipStatus` 为 `ACTIVE`(正式成员)或 `PENDING`(待加入成员)。
46
+ - 每条角色归属包含服务端稳定业务标识 `roleCode`。
45
47
  - 同一用户只要存在一个 ACTIVE 角色,顶层 `status` 即为 `ACTIVE`;全部角色待加入时为 `PENDING`。
46
48
  - 人员按 `userId` 升序;角色按 `roleId` 升序,同角色下 ACTIVE 排在 PENDING 前。
47
49
  - `username`、`displayName` 缺失时为 `null`;不会用 userId 伪造。
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.5.2-beta.2",
6
- "skillVersion": "2.5.2-beta.2",
5
+ "packageVersion": "2.5.2-beta.3",
6
+ "skillVersion": "2.5.2-beta.3",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -139,5 +139,5 @@
139
139
  "references/rabetbase-user-account.md",
140
140
  "references/rabetbase-workspace.md"
141
141
  ],
142
- "digest": "0367fd969de461022c6e87709aa5802f1c1403aaec8165599f0c49716d438912"
142
+ "digest": "ff7d9cc24053f95dcd02fac1820e7fb415aef512311f7447e97e9ac93b97ee49"
143
143
  }