@lovrabet/rabetbase-cli 2.5.2-beta.6 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.js +1 -1
  246. package/lib/core/bff/config.js +1 -1
  247. package/lib/core/bff/file-system.js +1 -1
  248. package/lib/core/bff/hash.js +1 -1
  249. package/lib/core/bff/lock.js +1 -1
  250. package/lib/core/bff/utils.js +1 -1
  251. package/lib/core/db-resolver.js +1 -1
  252. package/lib/core/instant-api-policy/config.js +1 -1
  253. package/lib/core/kb-search-client.js +1 -1
  254. package/lib/core/page/file-system.js +1 -1
  255. package/lib/core/page/hash.js +1 -1
  256. package/lib/core/page/lock.js +1 -1
  257. package/lib/core/sql-index-auditor.js +1 -1
  258. package/lib/core/sql-sync/config.js +1 -1
  259. package/lib/core/sql-sync/file-system.js +1 -1
  260. package/lib/core/sql-sync/hash.js +1 -1
  261. package/lib/core/sql-sync/lock.js +1 -1
  262. package/lib/core/sql-sync/utils.js +1 -1
  263. package/lib/core/sql-validator.js +1 -1
  264. package/lib/errors.js +1 -1
  265. package/lib/framework/build-all-flags.js +1 -1
  266. package/lib/framework/error-output.js +1 -1
  267. package/lib/framework/explicit-yes.js +1 -1
  268. package/lib/framework/flags.js +1 -1
  269. package/lib/framework/help.js +1 -1
  270. package/lib/framework/index.js +1 -1
  271. package/lib/framework/output.js +1 -1
  272. package/lib/framework/response.js +1 -1
  273. package/lib/framework/runner-alias.js +1 -1
  274. package/lib/framework/runner.js +1 -1
  275. package/lib/framework/schema-export.js +1 -1
  276. package/lib/framework/supported-flags.js +1 -1
  277. package/lib/framework/types.js +1 -1
  278. package/lib/generated/build-info.d.ts +4 -4
  279. package/lib/generated/build-info.js +1 -1
  280. package/lib/generated/official-routing.js +1 -1
  281. package/lib/generated/routing-contract.js +1 -1
  282. package/lib/help.js +1 -1
  283. package/lib/postinstall.js +1 -1
  284. package/lib/runtime/confirmation.js +1 -1
  285. package/lib/runtime/event.js +1 -1
  286. package/lib/runtime/index.js +1 -1
  287. package/lib/runtime/queue.js +1 -1
  288. package/lib/runtime/resolve.js +1 -1
  289. package/lib/skills/builtin-skill.js +1 -1
  290. package/lib/skills/main.js +1 -1
  291. package/lib/skills/npx-skills-add.js +1 -1
  292. package/lib/skills/skill-presence.js +1 -1
  293. package/lib/telemetry/cli-command-trace.js +1 -1
  294. package/lib/telemetry/cli-help-trace.js +1 -1
  295. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  296. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  297. package/lib/telemetry/send-cli-trace-log.js +1 -1
  298. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  299. package/lib/utils/ai_config.js +1 -1
  300. package/lib/utils/apply-jq-filter.js +1 -1
  301. package/lib/utils/cdn-config.js +1 -1
  302. package/lib/utils/check-sdk-version.js +1 -1
  303. package/lib/utils/cli-version-check.js +1 -1
  304. package/lib/utils/cli-version-policy.js +1 -1
  305. package/lib/utils/config.js +1 -1
  306. package/lib/utils/entity-with-id.js +1 -1
  307. package/lib/utils/file-utils.js +1 -1
  308. package/lib/utils/guides-cdn.js +1 -1
  309. package/lib/utils/http-client.js +1 -1
  310. package/lib/utils/is-non-interactive.js +1 -1
  311. package/lib/utils/logger.js +1 -1
  312. package/lib/utils/params.js +1 -1
  313. package/lib/utils/platform.js +1 -1
  314. package/lib/utils/sleep.js +1 -1
  315. package/lib/utils/template-replacer.js +1 -1
  316. package/lib/utils/update-notice.js +1 -1
  317. package/lib/utils/version.js +1 -1
  318. package/lib/utils/with-active-cookie.js +1 -1
  319. package/lib/utils/write-cli-side-channel.js +1 -1
  320. package/package.json +1 -1
  321. package/skills/rabetbase/SKILL.md +1 -1
  322. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a312_0x528f(_0x314c47,_0xfc57d5){_0x314c47=_0x314c47-0x110;const _0x3583de=a312_0x3583();let _0x528f9b=_0x3583de[_0x314c47];return _0x528f9b;}const a312_0x74f0a9=a312_0x528f;(function(_0x594371,_0x3d3087){const _0x405cb6=a312_0x528f,_0x4996ac=_0x594371();while(!![]){try{const _0x3c79b4=parseInt(_0x405cb6(0x123))/0x1*(-parseInt(_0x405cb6(0x12a))/0x2)+parseInt(_0x405cb6(0x121))/0x3*(parseInt(_0x405cb6(0x110))/0x4)+parseInt(_0x405cb6(0x117))/0x5*(-parseInt(_0x405cb6(0x111))/0x6)+parseInt(_0x405cb6(0x118))/0x7*(-parseInt(_0x405cb6(0x131))/0x8)+parseInt(_0x405cb6(0x11f))/0x9*(-parseInt(_0x405cb6(0x115))/0xa)+parseInt(_0x405cb6(0x12b))/0xb*(parseInt(_0x405cb6(0x133))/0xc)+parseInt(_0x405cb6(0x11c))/0xd*(parseInt(_0x405cb6(0x134))/0xe);if(_0x3c79b4===_0x3d3087)break;else _0x4996ac['push'](_0x4996ac['shift']());}catch(_0x37db23){_0x4996ac['push'](_0x4996ac['shift']());}}}(a312_0x3583,0x57ef6));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 _0x4544f0=getTemplateBaseUrl();return _0x4544f0+'/skills/guides.json';}function a312_0x3583(){const _0x682d18=['title','trimEnd','object','2iOGUWh','11CssqnR','cache','status','lastUpdated','json','length','280GlqImM','join','4788804XIUuJY','16688ectAze','guides','application/json','1121556fIQIYc','3661212NRlxjy','.lovrabet','utf-8','statusText','20XgzRHP','skillTemplate','5rNrNGd','28973kDDoln','entries','.md','.lovrabet/skill/guides','10309DDpWvo','CDN\x20data\x20is\x20missing\x20skillTemplate','\x0a\x0a>更新时间:','2484018FcwrJH','content','6StDZOP','replace','237848ccZyWM','extendContent','CDN\x20returned\x20invalid\x20data','push'];a312_0x3583=function(){return _0x682d18;};return a312_0x3583();}const CACHE_DIR=join(homedir(),a312_0x74f0a9(0x112),a312_0x74f0a9(0x12c));export async function fetchGuidesFromCDN(){const _0x4c5de0=a312_0x74f0a9,_0xff9a4c=getGuidesCdnUrl(),_0x47936b=await fetch(_0xff9a4c,{'headers':{'Accept':_0x4c5de0(0x136)}});if(!_0x47936b['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x47936b[_0x4c5de0(0x12d)]+'\x20'+_0x47936b[_0x4c5de0(0x114)]);const _0x2d5626=await _0x47936b[_0x4c5de0(0x12f)]();if(!_0x2d5626[_0x4c5de0(0x135)]||typeof _0x2d5626['guides']!==_0x4c5de0(0x129))throw new Error(_0x4c5de0(0x125));return _0x2d5626;}export function writeGuidesToProject(_0x3ab540,_0x4b3c57,_0x354dda=a312_0x74f0a9(0x11b),_0xffa963){const _0x374a04=a312_0x74f0a9,_0x280fc1=join(_0x4b3c57,_0x354dda);mkdirSync(_0x280fc1,{'recursive':!![]});for(const [_0x11efcd,_0x3375c2]of Object[_0x374a04(0x119)](_0x3ab540[_0x374a04(0x135)])){let _0x2f73fc=_0x3375c2[_0x374a04(0x120)];_0x3375c2[_0x374a04(0x12e)]&&(_0x2f73fc=appendUpdateTime(_0x2f73fc,_0x3375c2[_0x374a04(0x12e)])),writeFileSync(join(_0x280fc1,_0x11efcd+_0x374a04(0x11a)),_0x2f73fc,_0x374a04(0x113));}}export function appendUpdateTime(_0x3c819a,_0x132aaa){const _0x5254c1=a312_0x74f0a9;return _0x3c819a=_0x3c819a[_0x5254c1(0x122)](/\n*>更新时间:.*$/m,''),_0x3c819a[_0x5254c1(0x128)]()+(_0x5254c1(0x11e)+_0x132aaa);}export function getSkillTemplate(_0x21e8da){const _0x243ad8=a312_0x74f0a9;return _0x21e8da[_0x243ad8(0x116)]?.[_0x243ad8(0x120)]||'';}export function appendExtendContents(_0x327ffe,_0x4f1e0a,_0x4e766d){const _0x293e2e=a312_0x74f0a9,_0x4c19c2=[];for(const [,_0x5d1447]of Object[_0x293e2e(0x119)](_0x4f1e0a[_0x293e2e(0x135)])){_0x5d1447[_0x293e2e(0x124)]&&_0x4c19c2[_0x293e2e(0x126)](_0x5d1447[_0x293e2e(0x124)][_0x293e2e(0x128)]());}if(_0x4c19c2[_0x293e2e(0x130)]===0x0)return _0x327ffe;return _0x327ffe['trimEnd']()+'\x0a\x0a'+_0x4c19c2[_0x293e2e(0x132)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x270d90,_0x19ad84,_0x2bfadb){const _0x1debba=a312_0x74f0a9,_0x406b96=getSkillTemplate(_0x270d90);if(!_0x406b96)throw new Error(_0x1debba(0x11d));const _0x28f0cc=dirname(_0x19ad84);mkdirSync(_0x28f0cc,{'recursive':!![]});let _0x1cdc5d=_0x406b96['replace'](/\{\{IDE_NAME\}\}/g,_0x2bfadb);_0x1cdc5d=appendExtendContents(_0x1cdc5d,_0x270d90),_0x270d90[_0x1debba(0x116)][_0x1debba(0x12e)]&&(_0x1cdc5d=appendUpdateTime(_0x1cdc5d,_0x270d90[_0x1debba(0x116)]['lastUpdated'])),writeFileSync(_0x19ad84,_0x1cdc5d,'utf-8');}export async function installGuides(_0x3113b5){const _0x346cdc=a312_0x74f0a9,_0x28f1a8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x28f1a8,_0x3113b5),Object['keys'](_0x28f1a8['guides'])[_0x346cdc(0x130)];}export function getGuidesSummary(_0x51d070){const _0x286cfa=a312_0x74f0a9;return Object[_0x286cfa(0x119)](_0x51d070['guides'])['map'](([_0x166a65,_0x37a346])=>({'key':_0x166a65,'title':_0x37a346[_0x286cfa(0x127)],'path':_0x37a346['path']}));}
1
+ const a312_0x644925=a312_0x7468;(function(_0x545c1f,_0x18d06b){const _0x2db3ea=a312_0x7468,_0x5b203c=_0x545c1f();while(!![]){try{const _0x4d792e=parseInt(_0x2db3ea(0xf5))/0x1+-parseInt(_0x2db3ea(0xe9))/0x2*(parseInt(_0x2db3ea(0x103))/0x3)+parseInt(_0x2db3ea(0xef))/0x4+parseInt(_0x2db3ea(0xf3))/0x5+parseInt(_0x2db3ea(0xfe))/0x6*(parseInt(_0x2db3ea(0xfa))/0x7)+parseInt(_0x2db3ea(0xee))/0x8*(-parseInt(_0x2db3ea(0xeb))/0x9)+-parseInt(_0x2db3ea(0xff))/0xa*(-parseInt(_0x2db3ea(0x101))/0xb);if(_0x4d792e===_0x18d06b)break;else _0x5b203c['push'](_0x5b203c['shift']());}catch(_0x1c0b56){_0x5b203c['push'](_0x5b203c['shift']());}}}(a312_0x4314,0x7f619));function a312_0x7468(_0x429dce,_0x52454c){_0x429dce=_0x429dce-0xe7;const _0x4314d6=a312_0x4314();let _0x74686d=_0x4314d6[_0x429dce];return _0x74686d;}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 _0x18c199=getTemplateBaseUrl();return _0x18c199+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a312_0x644925(0xf4));function a312_0x4314(){const _0x44dab4=['path','10616yuMgDZ','359988XocIGm','json','status','keys','1362085CQFibA','cache','644836XiZOEL','object','title','.lovrabet/skill/guides','skillTemplate','28VJVXco','join','utf-8','length','1087206Tbplmo','10VtgOsL','entries','6480793wMyLvK','extendContent','446463kHtyRs','trimEnd','replace','guides','content','push','14ubNqDt','lastUpdated','5139vioRHu','CDN\x20returned\x20invalid\x20data'];a312_0x4314=function(){return _0x44dab4;};return a312_0x4314();}export async function fetchGuidesFromCDN(){const _0x254eb4=a312_0x644925,_0x532626=getGuidesCdnUrl(),_0x373c3d=await fetch(_0x532626,{'headers':{'Accept':'application/json'}});if(!_0x373c3d['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x373c3d[_0x254eb4(0xf1)]+'\x20'+_0x373c3d['statusText']);const _0x46e48e=await _0x373c3d[_0x254eb4(0xf0)]();if(!_0x46e48e[_0x254eb4(0x106)]||typeof _0x46e48e[_0x254eb4(0x106)]!==_0x254eb4(0xf6))throw new Error(_0x254eb4(0xec));return _0x46e48e;}export function writeGuidesToProject(_0x54ff70,_0x4e62ac,_0x4b0999=a312_0x644925(0xf8),_0x4e542e){const _0x531d96=a312_0x644925,_0x185be5=join(_0x4e62ac,_0x4b0999);mkdirSync(_0x185be5,{'recursive':!![]});for(const [_0x18c015,_0x42a3bb]of Object[_0x531d96(0x100)](_0x54ff70['guides'])){let _0x3886a3=_0x42a3bb[_0x531d96(0xe7)];_0x42a3bb[_0x531d96(0xea)]&&(_0x3886a3=appendUpdateTime(_0x3886a3,_0x42a3bb[_0x531d96(0xea)])),writeFileSync(join(_0x185be5,_0x18c015+'.md'),_0x3886a3,_0x531d96(0xfc));}}export function appendUpdateTime(_0x54c676,_0x2b7e7e){const _0x29183e=a312_0x644925;return _0x54c676=_0x54c676[_0x29183e(0x105)](/\n*>更新时间:.*$/m,''),_0x54c676[_0x29183e(0x104)]()+('\x0a\x0a>更新时间:'+_0x2b7e7e);}export function getSkillTemplate(_0x3d6053){return _0x3d6053['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x52a8cf,_0x253f26,_0x410b55){const _0x102a1a=a312_0x644925,_0x2608a6=[];for(const [,_0x61655e]of Object[_0x102a1a(0x100)](_0x253f26[_0x102a1a(0x106)])){_0x61655e[_0x102a1a(0x102)]&&_0x2608a6[_0x102a1a(0xe8)](_0x61655e[_0x102a1a(0x102)][_0x102a1a(0x104)]());}if(_0x2608a6[_0x102a1a(0xfd)]===0x0)return _0x52a8cf;return _0x52a8cf['trimEnd']()+'\x0a\x0a'+_0x2608a6[_0x102a1a(0xfb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27761c,_0x2dfb05,_0xb2ac52){const _0x452033=a312_0x644925,_0x4cb65f=getSkillTemplate(_0x27761c);if(!_0x4cb65f)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x24c5a3=dirname(_0x2dfb05);mkdirSync(_0x24c5a3,{'recursive':!![]});let _0x4e2ee0=_0x4cb65f[_0x452033(0x105)](/\{\{IDE_NAME\}\}/g,_0xb2ac52);_0x4e2ee0=appendExtendContents(_0x4e2ee0,_0x27761c),_0x27761c[_0x452033(0xf9)][_0x452033(0xea)]&&(_0x4e2ee0=appendUpdateTime(_0x4e2ee0,_0x27761c[_0x452033(0xf9)][_0x452033(0xea)])),writeFileSync(_0x2dfb05,_0x4e2ee0,_0x452033(0xfc));}export async function installGuides(_0x566f14){const _0x3fb62d=a312_0x644925,_0x5bb307=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5bb307,_0x566f14),Object[_0x3fb62d(0xf2)](_0x5bb307[_0x3fb62d(0x106)])[_0x3fb62d(0xfd)];}export function getGuidesSummary(_0x492bfd){const _0x1576c8=a312_0x644925;return Object[_0x1576c8(0x100)](_0x492bfd[_0x1576c8(0x106)])['map'](([_0x295379,_0x2afc3b])=>({'key':_0x295379,'title':_0x2afc3b[_0x1576c8(0xf7)],'path':_0x2afc3b[_0x1576c8(0xed)]}));}
@@ -1 +1 @@
1
- function a313_0x4e47(_0x30efed,_0xd6c704){_0x30efed=_0x30efed-0x7d;const _0x16abaa=a313_0x16ab();let _0x4e4763=_0x16abaa[_0x30efed];return _0x4e4763;}(function(_0xc3babd,_0x173e10){const _0xc600d3=a313_0x4e47,_0x4aa2c0=_0xc3babd();while(!![]){try{const _0x3fa8b9=parseInt(_0xc600d3(0x83))/0x1+parseInt(_0xc600d3(0x86))/0x2*(parseInt(_0xc600d3(0x8d))/0x3)+parseInt(_0xc600d3(0x7e))/0x4+-parseInt(_0xc600d3(0x8a))/0x5*(parseInt(_0xc600d3(0x81))/0x6)+-parseInt(_0xc600d3(0x88))/0x7*(parseInt(_0xc600d3(0x92))/0x8)+-parseInt(_0xc600d3(0x7f))/0x9*(-parseInt(_0xc600d3(0x95))/0xa)+parseInt(_0xc600d3(0x87))/0xb*(parseInt(_0xc600d3(0x89))/0xc);if(_0x3fa8b9===_0x173e10)break;else _0x4aa2c0['push'](_0x4aa2c0['shift']());}catch(_0x19fa71){_0x4aa2c0['push'](_0x4aa2c0['shift']());}}}(a313_0x16ab,0x4eb17));export async function httpRequest(_0x157773,_0x368cd1={}){const _0xa227d9=a313_0x4e47,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x368cd1;let _0x29943b=null;for(let _0x1d57b0=0x0;_0x1d57b0<=retries;_0x1d57b0++){try{const _0x3c67fc=new AbortController(),_0x1e7dfc=setTimeout(()=>_0x3c67fc['abort'](),timeout),_0x450864=await fetch(_0x157773,{'headers':headers,'signal':_0x3c67fc[_0xa227d9(0x8f)]});clearTimeout(_0x1e7dfc);let _0x17b86c;const _0x43f81d=_0x450864[_0xa227d9(0x90)][_0xa227d9(0x96)]('content-type');return _0x43f81d?.['includes']('application/json')?_0x17b86c=await _0x450864[_0xa227d9(0x8c)]():_0x17b86c=await _0x450864[_0xa227d9(0x85)](),{'ok':_0x450864['ok'],'status':_0x450864[_0xa227d9(0x93)],'statusText':_0x450864[_0xa227d9(0x7d)],'data':_0x17b86c,'headers':_0x450864[_0xa227d9(0x90)],'url':_0x450864['url'],'text':()=>_0x450864[_0xa227d9(0x85)]()};}catch(_0x2ec7bc){_0x29943b=_0x2ec7bc instanceof Error?_0x2ec7bc:new Error(String(_0x2ec7bc));if(_0x1d57b0===retries)break;if(shouldRetry(_0x2ec7bc)){console['log']('*\x20Request\x20failed;\x20retry\x20'+(_0x1d57b0+0x1)+'\x20in\x20'+retryDelay+_0xa227d9(0x82)),await sleep(retryDelay);continue;}else break;}}throw _0x29943b||new Error('Request\x20failed');}function shouldRetry(_0x184f6a){const _0xdb52bb=a313_0x4e47;if(_0x184f6a instanceof Error){if(_0x184f6a['name']===_0xdb52bb(0x8b))return![];if(_0x184f6a[_0xdb52bb(0x94)]===_0xdb52bb(0x84)&&_0x184f6a[_0xdb52bb(0x8e)][_0xdb52bb(0x91)](_0xdb52bb(0x80)))return!![];if(_0x184f6a[_0xdb52bb(0x8e)]['includes']('ECONNRESET'))return!![];if(_0x184f6a['message'][_0xdb52bb(0x91)]('ENOTFOUND'))return![];}return![];}function sleep(_0x54831d){return new Promise(_0x39671b=>setTimeout(_0x39671b,_0x54831d));}function a313_0x16ab(){const _0x572975=['includes','3652424QQOQEj','status','name','10JeSCom','get','statusText','896956UjWPGo','2054799XjqLpD','fetch','66nDqenh','ms...','181211VQBrnd','TypeError','text','4JejzkQ','1259368qVupSP','7XicaEU','12YbfKgH','224355oZAbPv','AbortError','json','786318PlEglp','message','signal','headers'];a313_0x16ab=function(){return _0x572975;};return a313_0x16ab();}export function validateUrl(_0x84568d){try{return new URL(_0x84568d),!![];}catch{return![];}}
1
+ (function(_0xba70c6,_0x52271c){const _0x2e94e7=a313_0x3071,_0x4f18b7=_0xba70c6();while(!![]){try{const _0x378441=parseInt(_0x2e94e7(0x12f))/0x1*(parseInt(_0x2e94e7(0x133))/0x2)+-parseInt(_0x2e94e7(0x134))/0x3+parseInt(_0x2e94e7(0x137))/0x4+parseInt(_0x2e94e7(0x148))/0x5+parseInt(_0x2e94e7(0x136))/0x6+-parseInt(_0x2e94e7(0x135))/0x7+-parseInt(_0x2e94e7(0x13a))/0x8*(-parseInt(_0x2e94e7(0x13c))/0x9);if(_0x378441===_0x52271c)break;else _0x4f18b7['push'](_0x4f18b7['shift']());}catch(_0x4e6c4e){_0x4f18b7['push'](_0x4f18b7['shift']());}}}(a313_0x3e4a,0x2a612));export async function httpRequest(_0x4bf1c1,_0x257bec={}){const _0x327306=a313_0x3071,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x257bec;let _0x361fb0=null;for(let _0x13a91b=0x0;_0x13a91b<=retries;_0x13a91b++){try{const _0xef33de=new AbortController(),_0x3367cb=setTimeout(()=>_0xef33de[_0x327306(0x132)](),timeout),_0x4b6e96=await fetch(_0x4bf1c1,{'headers':headers,'signal':_0xef33de['signal']});clearTimeout(_0x3367cb);let _0x3a8c44;const _0x193601=_0x4b6e96['headers'][_0x327306(0x12e)](_0x327306(0x130));return _0x193601?.[_0x327306(0x12d)]('application/json')?_0x3a8c44=await _0x4b6e96['json']():_0x3a8c44=await _0x4b6e96[_0x327306(0x146)](),{'ok':_0x4b6e96['ok'],'status':_0x4b6e96['status'],'statusText':_0x4b6e96[_0x327306(0x147)],'data':_0x3a8c44,'headers':_0x4b6e96[_0x327306(0x140)],'url':_0x4b6e96[_0x327306(0x13b)],'text':()=>_0x4b6e96[_0x327306(0x146)]()};}catch(_0x28b1fc){_0x361fb0=_0x28b1fc instanceof Error?_0x28b1fc:new Error(String(_0x28b1fc));if(_0x13a91b===retries)break;if(shouldRetry(_0x28b1fc)){console[_0x327306(0x131)](_0x327306(0x143)+(_0x13a91b+0x1)+_0x327306(0x138)+retryDelay+_0x327306(0x13e)),await sleep(retryDelay);continue;}else break;}}throw _0x361fb0||new Error('Request\x20failed');}function a313_0x3071(_0x8b43a6,_0x331d91){_0x8b43a6=_0x8b43a6-0x12d;const _0x3e4a24=a313_0x3e4a();let _0x30715c=_0x3e4a24[_0x8b43a6];return _0x30715c;}function shouldRetry(_0x335924){const _0x210c36=a313_0x3071;if(_0x335924 instanceof Error){if(_0x335924[_0x210c36(0x13d)]===_0x210c36(0x141))return![];if(_0x335924['name']===_0x210c36(0x145)&&_0x335924['message'][_0x210c36(0x12d)](_0x210c36(0x142)))return!![];if(_0x335924[_0x210c36(0x144)][_0x210c36(0x12d)](_0x210c36(0x13f)))return!![];if(_0x335924['message'][_0x210c36(0x12d)](_0x210c36(0x139)))return![];}return![];}function sleep(_0x286baa){return new Promise(_0x40f7e2=>setTimeout(_0x40f7e2,_0x286baa));}export function validateUrl(_0x4381d2){try{return new URL(_0x4381d2),!![];}catch{return![];}}function a313_0x3e4a(){const _0x19d1a0=['\x20in\x20','ENOTFOUND','91360OUTdHY','url','135vGBqSh','name','ms...','ECONNRESET','headers','AbortError','fetch','*\x20Request\x20failed;\x20retry\x20','message','TypeError','text','statusText','130650KqKVCw','includes','get','1mUkbcR','content-type','log','abort','323942OCLDMF','679683KjLIJC','714224ZRJTEq','85560EnGuhW','514072TTAqpL'];a313_0x3e4a=function(){return _0x19d1a0;};return a313_0x3e4a();}
@@ -1 +1 @@
1
- function a314_0x29b3(_0x4aaa08,_0x4473f5){_0x4aaa08=_0x4aaa08-0x73;const _0x26dc9e=a314_0x26dc();let _0x29b3bf=_0x26dc9e[_0x4aaa08];return _0x29b3bf;}(function(_0x26c616,_0x53b268){const _0x7ab071=a314_0x29b3,_0x44309f=_0x26c616();while(!![]){try{const _0x20a11c=-parseInt(_0x7ab071(0x7b))/0x1*(parseInt(_0x7ab071(0x7d))/0x2)+parseInt(_0x7ab071(0x81))/0x3+-parseInt(_0x7ab071(0x7a))/0x4+-parseInt(_0x7ab071(0x77))/0x5+-parseInt(_0x7ab071(0x80))/0x6+parseInt(_0x7ab071(0x76))/0x7+-parseInt(_0x7ab071(0x78))/0x8*(-parseInt(_0x7ab071(0x7c))/0x9);if(_0x20a11c===_0x53b268)break;else _0x44309f['push'](_0x44309f['shift']());}catch(_0x25ead5){_0x44309f['push'](_0x44309f['shift']());}}}(a314_0x26dc,0xbee97));function a314_0x26dc(){const _0x2c7d85=['9308019lbbwCX','1359975wPOZfU','4376rCjnyg','stdin','4805640zDFTfS','2cWeBVj','39132WyMlKr','1140994MisHDk','isTTY','isRaw','5653836RKDmZL','1891821MVwfUJ','true','setRawMode','nonInteractive'];a314_0x26dc=function(){return _0x2c7d85;};return a314_0x26dc();}function env(_0x5bcca4){return process.env[`RABETBASE_${_0x5bcca4}`]||process.env[`LOVRABET_${_0x5bcca4}`]||undefined;}export function isNonInteractive(_0xb436f){const _0x38234f=a314_0x29b3;return!!(_0xb436f[_0x38234f(0x75)]||_0xb436f['ci']||env('CI')===_0x38234f(0x73)||process.env.CI===_0x38234f(0x73)||!process['stdout'][_0x38234f(0x7e)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2ed7ce=a314_0x29b3;if(!process[_0x2ed7ce(0x79)][_0x2ed7ce(0x7e)])return![];try{const _0x371bb7=process[_0x2ed7ce(0x79)][_0x2ed7ce(0x7f)];return process[_0x2ed7ce(0x79)]['setRawMode'](!![]),process[_0x2ed7ce(0x79)][_0x2ed7ce(0x74)](_0x371bb7??![]),!![];}catch{return![];}}
1
+ (function(_0x4511b2,_0x56a502){const _0x5eb4c1=a314_0x3dad,_0x482af8=_0x4511b2();while(!![]){try{const _0x3d0c34=parseInt(_0x5eb4c1(0x8f))/0x1+-parseInt(_0x5eb4c1(0x8a))/0x2*(-parseInt(_0x5eb4c1(0x84))/0x3)+-parseInt(_0x5eb4c1(0x8b))/0x4+-parseInt(_0x5eb4c1(0x85))/0x5+parseInt(_0x5eb4c1(0x89))/0x6+-parseInt(_0x5eb4c1(0x83))/0x7+parseInt(_0x5eb4c1(0x86))/0x8;if(_0x3d0c34===_0x56a502)break;else _0x482af8['push'](_0x482af8['shift']());}catch(_0x5da295){_0x482af8['push'](_0x482af8['shift']());}}}(a314_0x5881,0x77fb1));function env(_0x334549){return process.env[`RABETBASE_${_0x334549}`]||process.env[`LOVRABET_${_0x334549}`]||undefined;}function a314_0x3dad(_0x3b8d99,_0x22c871){_0x3b8d99=_0x3b8d99-0x83;const _0x5881c0=a314_0x5881();let _0x3dad0a=_0x5881c0[_0x3b8d99];return _0x3dad0a;}function a314_0x5881(){const _0x4d1770=['187970xUKXUv','3805532PRjtOz','isTTY','stdin','setRawMode','96142MfAYaQ','5247242NZWUVl','9azsGIH','1082115HUzwMf','11594568cnudET','true','isRaw','3488610asyxaZ'];a314_0x5881=function(){return _0x4d1770;};return a314_0x5881();}export function isNonInteractive(_0x24f58f){const _0x338029=a314_0x3dad;return!!(_0x24f58f['nonInteractive']||_0x24f58f['ci']||env('CI')===_0x338029(0x87)||process.env.CI===_0x338029(0x87)||!process['stdout'][_0x338029(0x8c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x22b55f=a314_0x3dad;if(!process['stdin']['isTTY'])return![];try{const _0x4bde4c=process['stdin'][_0x22b55f(0x88)];return process[_0x22b55f(0x8d)][_0x22b55f(0x8e)](!![]),process[_0x22b55f(0x8d)]['setRawMode'](_0x4bde4c??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a315_0x378e(_0x38a580,_0x1fd960){_0x38a580=_0x38a580-0x1ce;const _0x5e5f51=a315_0x5e5f();let _0x378e0c=_0x5e5f51[_0x38a580];return _0x378e0c;}const a315_0x3f7ccf=a315_0x378e;(function(_0x33c1dc,_0x5ddf86){const _0xf7be17=a315_0x378e,_0x219903=_0x33c1dc();while(!![]){try{const _0x764eaf=parseInt(_0xf7be17(0x1d7))/0x1*(parseInt(_0xf7be17(0x206))/0x2)+-parseInt(_0xf7be17(0x208))/0x3+-parseInt(_0xf7be17(0x1e7))/0x4+-parseInt(_0xf7be17(0x1d0))/0x5+-parseInt(_0xf7be17(0x1e4))/0x6*(-parseInt(_0xf7be17(0x1d3))/0x7)+-parseInt(_0xf7be17(0x1d9))/0x8*(parseInt(_0xf7be17(0x1fb))/0x9)+parseInt(_0xf7be17(0x1f8))/0xa*(parseInt(_0xf7be17(0x1f0))/0xb);if(_0x764eaf===_0x5ddf86)break;else _0x219903['push'](_0x219903['shift']());}catch(_0x51ec9a){_0x219903['push'](_0x219903['shift']());}}}(a315_0x5e5f,0x9ff9b));import a315_0x58e18b from'winston';import a315_0x273d7b from'node:fs';import a315_0x5a0778 from'node:path';class Logger{[a315_0x3f7ccf(0x1fe)];[a315_0x3f7ccf(0x1f6)];[a315_0x3f7ccf(0x202)]='';constructor(){const _0x546b82=a315_0x3f7ccf;this[_0x546b82(0x1f6)]='';}[a315_0x3f7ccf(0x1cf)](_0x3d8c8c){this['currentRawCommand']=_0x3d8c8c;}['initWinstonLogger'](){const _0xfc1663=a315_0x3f7ccf,_0x327134=a315_0x5a0778[_0xfc1663(0x200)](this[_0xfc1663(0x1f6)]);!a315_0x273d7b[_0xfc1663(0x207)](_0x327134)&&a315_0x273d7b[_0xfc1663(0x1ce)](_0x327134,{'recursive':!![]});const _0xa8584d=a315_0x58e18b['format'][_0xfc1663(0x1ee)](a315_0x58e18b[_0xfc1663(0x1da)][_0xfc1663(0x1ed)](),a315_0x58e18b[_0xfc1663(0x1da)]['errors']({'stack':!![]}),a315_0x58e18b[_0xfc1663(0x1da)][_0xfc1663(0x1f3)](_0x4823db=>{const _0xa4c59e=_0xfc1663,_0x34ba50={'timestamp':_0x4823db['timestamp']||new Date()['toISOString'](),'level':_0x4823db[_0xa4c59e(0x1de)]||_0xa4c59e(0x1e2),'command':_0x4823db[_0xa4c59e(0x1d4)]||_0xa4c59e(0x1db),'rawCommand':_0x4823db[_0xa4c59e(0x1f5)]||this[_0xa4c59e(0x202)]||undefined,'message':_0x4823db['message']||'','duration':_0x4823db[_0xa4c59e(0x1e8)]||undefined,'details':_0x4823db[_0xa4c59e(0x1f1)]||undefined};return JSON[_0xa4c59e(0x201)](_0x34ba50);}));this['winstonLogger']=a315_0x58e18b[_0xfc1663(0x1ea)]({'level':_0xfc1663(0x1e2),'format':_0xa8584d,'transports':[new a315_0x58e18b['transports'][(_0xfc1663(0x1e3))]({'filename':this[_0xfc1663(0x1f6)],'level':_0xfc1663(0x1e2)})],'silent':![]}),a315_0x58e18b[_0xfc1663(0x1e5)]({'success':_0xfc1663(0x1fc),'error':_0xfc1663(0x1d2),'warn':'yellow','info':_0xfc1663(0x1fd)});}['setLogPath'](_0x5c76be){const _0x5de31a=a315_0x3f7ccf;this[_0x5de31a(0x1f6)]=a315_0x5a0778[_0x5de31a(0x1f2)](_0x5c76be,_0x5de31a(0x1ef)),this['winstonLogger']&&this['winstonLogger'][_0x5de31a(0x1ff)](),this[_0x5de31a(0x1f4)]();}[a315_0x3f7ccf(0x1e2)](_0x4d9373,_0x5d0428,_0x515e0f){const _0x4dc310=a315_0x3f7ccf;if(!this[_0x4dc310(0x1f6)]||!this[_0x4dc310(0x1fe)])return;this[_0x4dc310(0x1fe)][_0x4dc310(0x1e2)](_0x5d0428,{'command':_0x4d9373,'details':_0x515e0f});}['success'](_0x29fa0e,_0x54a313,_0x1c262d,_0x23b053){const _0x3a2fc9=a315_0x3f7ccf;if(!this['logFilePath']||!this[_0x3a2fc9(0x1fe)])return;this[_0x3a2fc9(0x1fe)][_0x3a2fc9(0x1d6)]('info',_0x54a313,{'level':'success','command':_0x29fa0e,'duration':_0x1c262d,'details':_0x23b053});}['error'](_0x1dfb81,_0x4fa917,_0x4b162a){const _0x505400=a315_0x3f7ccf;if(!this[_0x505400(0x1f6)]||!this[_0x505400(0x1fe)])return;this[_0x505400(0x1fe)][_0x505400(0x1dd)](_0x4fa917,{'command':_0x1dfb81,'details':_0x4b162a});}['warn'](_0x5ac6d8,_0x2d1454,_0xe41e01){const _0x550fc2=a315_0x3f7ccf;if(!this[_0x550fc2(0x1f6)]||!this[_0x550fc2(0x1fe)])return;this[_0x550fc2(0x1fe)]['warn'](_0x2d1454,{'command':_0x5ac6d8,'details':_0xe41e01});}async[a315_0x3f7ccf(0x1eb)](_0x32a553,_0x555ff8,_0x3945a9){const _0x5d29dd=a315_0x3f7ccf,_0x482df9=Date[_0x5d29dd(0x203)]();this[_0x5d29dd(0x1e2)](_0x32a553,_0x5d29dd(0x1e9)+_0x555ff8);try{const _0x30a4ee=await _0x3945a9(),_0x4c3eed=Date[_0x5d29dd(0x203)]()-_0x482df9;return this[_0x5d29dd(0x1e6)](_0x32a553,_0x5d29dd(0x1dc)+_0x555ff8,_0x4c3eed),_0x30a4ee;}catch(_0x4f9692){const _0x4699c8=Date['now']()-_0x482df9;this['error'](_0x32a553,'Failed:\x20'+_0x555ff8,{'error':_0x4f9692 instanceof Error?_0x4f9692['message']:String(_0x4f9692),'duration':_0x4699c8});throw _0x4f9692;}}[a315_0x3f7ccf(0x205)](){const _0x49f922=a315_0x3f7ccf;try{if(!a315_0x273d7b[_0x49f922(0x207)](this[_0x49f922(0x1f6)]))return[];const _0x441e11=a315_0x273d7b['readFileSync'](this['logFilePath'],_0x49f922(0x1ec));return _0x441e11['split']('\x0a')[_0x49f922(0x1f9)](_0xa67521=>_0xa67521[_0x49f922(0x1f7)]())[_0x49f922(0x1d1)](_0x4c6453=>JSON[_0x49f922(0x204)](_0x4c6453));}catch(_0x44ad5a){return console[_0x49f922(0x1fa)](_0x49f922(0x1df),_0x44ad5a),[];}}[a315_0x3f7ccf(0x1e0)](){const _0x28485f=a315_0x3f7ccf;try{a315_0x273d7b['existsSync'](this[_0x28485f(0x1f6)])&&a315_0x273d7b[_0x28485f(0x1d5)](this[_0x28485f(0x1f6)],'',_0x28485f(0x1ec));}catch(_0x5d1de0){console[_0x28485f(0x1fa)](_0x28485f(0x1d8),_0x5d1de0);}}[a315_0x3f7ccf(0x1e1)](){const _0x5ca7ae=a315_0x3f7ccf;return this[_0x5ca7ae(0x1fe)];}}function a315_0x5e5f(){const _0x302b90=['stringify','currentRawCommand','now','parse','readLogs','1873762vJUSlL','existsSync','1627698VdugkO','mkdirSync','setRawCommand','674600jElmYe','map','red','48328HmQyZD','command','writeFileSync','log','1qfzPRZ','Failed\x20to\x20clear\x20logs:','8WFHjWP','format','unknown','Completed:\x20','error','level','Failed\x20to\x20read\x20logs:','clearLogs','getWinstonInstance','info','File','42qNUfBl','addColors','success','5118876daMYEz','duration','Starting:\x20','createLogger','logTask','utf8','timestamp','combine','.lovrabet.log','258753SbwFbI','details','join','printf','initWinstonLogger','rawCommand','logFilePath','trim','1240NJvToB','filter','warn','11606373UBcECY','green','blue','winstonLogger','clear','dirname'];a315_0x5e5f=function(){return _0x302b90;};return a315_0x5e5f();}export const logger=new Logger();
1
+ const a315_0x530305=a315_0x4b8b;(function(_0x3dc7b3,_0x9f73b8){const _0xc5faa7=a315_0x4b8b,_0x39af6f=_0x3dc7b3();while(!![]){try{const _0x1a0915=parseInt(_0xc5faa7(0x97))/0x1+parseInt(_0xc5faa7(0xa2))/0x2*(parseInt(_0xc5faa7(0x9a))/0x3)+-parseInt(_0xc5faa7(0xb3))/0x4+parseInt(_0xc5faa7(0x96))/0x5*(parseInt(_0xc5faa7(0x90))/0x6)+parseInt(_0xc5faa7(0xa0))/0x7*(parseInt(_0xc5faa7(0xb7))/0x8)+parseInt(_0xc5faa7(0xbb))/0x9+-parseInt(_0xc5faa7(0xab))/0xa;if(_0x1a0915===_0x9f73b8)break;else _0x39af6f['push'](_0x39af6f['shift']());}catch(_0x1ae758){_0x39af6f['push'](_0x39af6f['shift']());}}}(a315_0x5b29,0x4d6ee));function a315_0x4b8b(_0x481811,_0x2b7e56){_0x481811=_0x481811-0x8e;const _0x5b2999=a315_0x5b29();let _0x4b8b24=_0x5b2999[_0x481811];return _0x4b8b24;}import a315_0x215278 from'winston';import a315_0x926f0f from'node:fs';import a315_0x1d8479 from'node:path';class Logger{[a315_0x530305(0xbd)];[a315_0x530305(0xac)];[a315_0x530305(0xa8)]='';constructor(){this['logFilePath']='';}[a315_0x530305(0x99)](_0x5e2e28){const _0x2d8842=a315_0x530305;this[_0x2d8842(0xa8)]=_0x5e2e28;}[a315_0x530305(0xb4)](){const _0x4c0897=a315_0x530305,_0x3655a3=a315_0x1d8479[_0x4c0897(0xa1)](this[_0x4c0897(0xac)]);!a315_0x926f0f[_0x4c0897(0x9e)](_0x3655a3)&&a315_0x926f0f[_0x4c0897(0xb0)](_0x3655a3,{'recursive':!![]});const _0x4c9eef=a315_0x215278[_0x4c0897(0x94)]['combine'](a315_0x215278['format'][_0x4c0897(0x9b)](),a315_0x215278[_0x4c0897(0x94)][_0x4c0897(0x92)]({'stack':!![]}),a315_0x215278['format'][_0x4c0897(0xbe)](_0x4c897c=>{const _0x46c5f3=_0x4c0897,_0x5d023d={'timestamp':_0x4c897c[_0x46c5f3(0x9b)]||new Date()['toISOString'](),'level':_0x4c897c[_0x46c5f3(0x8f)]||_0x46c5f3(0xa6),'command':_0x4c897c['command']||'unknown','rawCommand':_0x4c897c[_0x46c5f3(0x91)]||this[_0x46c5f3(0xa8)]||undefined,'message':_0x4c897c[_0x46c5f3(0xa4)]||'','duration':_0x4c897c[_0x46c5f3(0x9c)]||undefined,'details':_0x4c897c[_0x46c5f3(0xb8)]||undefined};return JSON['stringify'](_0x5d023d);}));this['winstonLogger']=a315_0x215278['createLogger']({'level':_0x4c0897(0xa6),'format':_0x4c9eef,'transports':[new a315_0x215278[(_0x4c0897(0xa9))]['File']({'filename':this[_0x4c0897(0xac)],'level':_0x4c0897(0xa6)})],'silent':![]}),a315_0x215278[_0x4c0897(0xc0)]({'success':_0x4c0897(0xb2),'error':_0x4c0897(0xba),'warn':_0x4c0897(0xb9),'info':_0x4c0897(0xc1)});}['setLogPath'](_0x4e5721){const _0x19e681=a315_0x530305;this['logFilePath']=a315_0x1d8479['join'](_0x4e5721,'.lovrabet.log'),this['winstonLogger']&&this['winstonLogger']['clear'](),this[_0x19e681(0xb4)]();}[a315_0x530305(0xa6)](_0x3ff987,_0x3ae56e,_0x372d03){const _0x15fafb=a315_0x530305;if(!this[_0x15fafb(0xac)]||!this[_0x15fafb(0xbd)])return;this['winstonLogger'][_0x15fafb(0xa6)](_0x3ae56e,{'command':_0x3ff987,'details':_0x372d03});}[a315_0x530305(0xb1)](_0x1fb22d,_0x29ee75,_0x5077e1,_0x5ac4f2){const _0x553876=a315_0x530305;if(!this[_0x553876(0xac)]||!this[_0x553876(0xbd)])return;this['winstonLogger']['log'](_0x553876(0xa6),_0x29ee75,{'level':_0x553876(0xb1),'command':_0x1fb22d,'duration':_0x5077e1,'details':_0x5ac4f2});}[a315_0x530305(0xa5)](_0x45abda,_0xaa5345,_0x442672){const _0xbc14dd=a315_0x530305;if(!this[_0xbc14dd(0xac)]||!this[_0xbc14dd(0xbd)])return;this[_0xbc14dd(0xbd)][_0xbc14dd(0xa5)](_0xaa5345,{'command':_0x45abda,'details':_0x442672});}[a315_0x530305(0xad)](_0x3a7715,_0x22749a,_0x425b20){const _0x590f99=a315_0x530305;if(!this[_0x590f99(0xac)]||!this[_0x590f99(0xbd)])return;this[_0x590f99(0xbd)][_0x590f99(0xad)](_0x22749a,{'command':_0x3a7715,'details':_0x425b20});}async[a315_0x530305(0xa3)](_0x16de0f,_0x54d043,_0x253833){const _0x12106a=a315_0x530305,_0xc9c08=Date['now']();this[_0x12106a(0xa6)](_0x16de0f,_0x12106a(0xb6)+_0x54d043);try{const _0x37ddc4=await _0x253833(),_0x116984=Date['now']()-_0xc9c08;return this[_0x12106a(0xb1)](_0x16de0f,_0x12106a(0xaa)+_0x54d043,_0x116984),_0x37ddc4;}catch(_0x30b744){const _0x302d3f=Date[_0x12106a(0x95)]()-_0xc9c08;this[_0x12106a(0xa5)](_0x16de0f,_0x12106a(0xb5)+_0x54d043,{'error':_0x30b744 instanceof Error?_0x30b744['message']:String(_0x30b744),'duration':_0x302d3f});throw _0x30b744;}}['readLogs'](){const _0xda963f=a315_0x530305;try{if(!a315_0x926f0f[_0xda963f(0x9e)](this['logFilePath']))return[];const _0x2d9e05=a315_0x926f0f['readFileSync'](this['logFilePath'],_0xda963f(0xae));return _0x2d9e05[_0xda963f(0xbc)]('\x0a')[_0xda963f(0xc2)](_0x12e3b0=>_0x12e3b0[_0xda963f(0xaf)]())[_0xda963f(0xbf)](_0x1fe951=>JSON[_0xda963f(0xa7)](_0x1fe951));}catch(_0x6af019){return console[_0xda963f(0xad)](_0xda963f(0x9d),_0x6af019),[];}}[a315_0x530305(0x98)](){const _0x565d75=a315_0x530305;try{a315_0x926f0f[_0x565d75(0x9e)](this[_0x565d75(0xac)])&&a315_0x926f0f[_0x565d75(0x93)](this[_0x565d75(0xac)],'',_0x565d75(0xae));}catch(_0x4a7a83){console[_0x565d75(0xad)](_0x565d75(0x9f),_0x4a7a83);}}[a315_0x530305(0x8e)](){const _0x316a72=a315_0x530305;return this[_0x316a72(0xbd)];}}export const logger=new Logger();function a315_0x5b29(){const _0x4fe5d4=['trim','mkdirSync','success','green','378208MYFXEZ','initWinstonLogger','Failed:\x20','Starting:\x20','8XHLSji','details','yellow','red','1811610mykUhI','split','winstonLogger','printf','map','addColors','blue','filter','getWinstonInstance','level','6CqrxGZ','rawCommand','errors','writeFileSync','format','now','42010CmzfgY','283254LOejcK','clearLogs','setRawCommand','59757aKtsSz','timestamp','duration','Failed\x20to\x20read\x20logs:','existsSync','Failed\x20to\x20clear\x20logs:','2000887eensYO','dirname','10Wbbfrw','logTask','message','error','info','parse','currentRawCommand','transports','Completed:\x20','4666640UfxgSg','logFilePath','warn','utf8'];a315_0x5b29=function(){return _0x4fe5d4;};return a315_0x5b29();}
@@ -1 +1 @@
1
- (function(_0x4965c4,_0x1cb9c8){const _0x359b66=a316_0xa07d,_0x5d7462=_0x4965c4();while(!![]){try{const _0xc603f8=parseInt(_0x359b66(0x112))/0x1*(parseInt(_0x359b66(0x11e))/0x2)+parseInt(_0x359b66(0x10f))/0x3+-parseInt(_0x359b66(0x113))/0x4*(parseInt(_0x359b66(0x118))/0x5)+parseInt(_0x359b66(0x110))/0x6+-parseInt(_0x359b66(0x119))/0x7+parseInt(_0x359b66(0x11b))/0x8+-parseInt(_0x359b66(0x114))/0x9;if(_0xc603f8===_0x1cb9c8)break;else _0x5d7462['push'](_0x5d7462['shift']());}catch(_0x5055bf){_0x5d7462['push'](_0x5d7462['shift']());}}}(a316_0x1682,0xedaad));import{CliErrors}from'../errors.js';function a316_0xa07d(_0x4e99aa,_0x403aab){_0x4e99aa=_0x4e99aa-0x10f;const _0x1682f7=a316_0x1682();let _0xa07d21=_0x1682f7[_0x4e99aa];return _0xa07d21;}function a316_0x1682(){const _0x13a320=['isArray','33IFVLUo','32rqUgkz','35356869YQXreI','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','506645dmSwHS','1381639qCxIPW','object','11609168xDBQAI','parse','validation','105572gRRGZm','4297722gmFlhi','7706262HvPQCn'];a316_0x1682=function(){return _0x13a320;};return a316_0x1682();}export function parseJsonParams(_0x2708d1){const _0x6e4450=a316_0xa07d;if(!_0x2708d1)return undefined;let _0x2bfa1c;try{_0x2bfa1c=JSON[_0x6e4450(0x11c)](_0x2708d1);}catch{throw CliErrors['validation'](_0x6e4450(0x116)+_0x2708d1);}if(!_0x2bfa1c||typeof _0x2bfa1c!==_0x6e4450(0x11a)||Array[_0x6e4450(0x111)](_0x2bfa1c))throw CliErrors[_0x6e4450(0x11d)](_0x6e4450(0x117),_0x6e4450(0x115));return _0x2bfa1c;}
1
+ (function(_0x491e02,_0x1f9932){const _0x2bff2a=a316_0x20d7,_0x5d03a3=_0x491e02();while(!![]){try{const _0x36c7f2=parseInt(_0x2bff2a(0x1e9))/0x1+parseInt(_0x2bff2a(0x1e3))/0x2+-parseInt(_0x2bff2a(0x1e2))/0x3+-parseInt(_0x2bff2a(0x1de))/0x4*(-parseInt(_0x2bff2a(0x1e6))/0x5)+parseInt(_0x2bff2a(0x1dd))/0x6+-parseInt(_0x2bff2a(0x1e1))/0x7+parseInt(_0x2bff2a(0x1e4))/0x8*(parseInt(_0x2bff2a(0x1e0))/0x9);if(_0x36c7f2===_0x1f9932)break;else _0x5d03a3['push'](_0x5d03a3['shift']());}catch(_0x10d246){_0x5d03a3['push'](_0x5d03a3['shift']());}}}(a316_0x680c,0xa9893));function a316_0x680c(){const _0x57676b=['261aGDgkt','4961173CvMpQe','3847089UZUPvn','1386664KxzwmA','100136hTwsGr','object','15WaDUDv','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','1172233xVaWtu','validation','2335932cMoKgu','90188lOqzKi','parse'];a316_0x680c=function(){return _0x57676b;};return a316_0x680c();}function a316_0x20d7(_0x28fd4f,_0x5066ad){_0x28fd4f=_0x28fd4f-0x1dc;const _0x680cd9=a316_0x680c();let _0x20d793=_0x680cd9[_0x28fd4f];return _0x20d793;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x517604){const _0xb0c16c=a316_0x20d7;if(!_0x517604)return undefined;let _0x256f8e;try{_0x256f8e=JSON[_0xb0c16c(0x1df)](_0x517604);}catch{throw CliErrors[_0xb0c16c(0x1dc)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x517604);}if(!_0x256f8e||typeof _0x256f8e!==_0xb0c16c(0x1e5)||Array['isArray'](_0x256f8e))throw CliErrors[_0xb0c16c(0x1dc)](_0xb0c16c(0x1e8),_0xb0c16c(0x1e7));return _0x256f8e;}
@@ -1 +1 @@
1
- const a317_0x38b06c=a317_0x43e8;function a317_0xee28(){const _0x3a671f=['181128GcZQep','1265110dVAoKD','171Swtgue','platform','331095BZZuhr','70zpEkaq','103016YXSaSx','75SIJOWa','4259100hOLFxN','1733510apTpfH','.cmd','1059108pJbqaA'];a317_0xee28=function(){return _0x3a671f;};return a317_0xee28();}(function(_0x4be0bc,_0x42801f){const _0x2fc76d=a317_0x43e8,_0x4958f2=_0x4be0bc();while(!![]){try{const _0x579409=-parseInt(_0x2fc76d(0x1da))/0x1+-parseInt(_0x2fc76d(0x1e1))/0x2+parseInt(_0x2fc76d(0x1dd))/0x3*(-parseInt(_0x2fc76d(0x1dc))/0x4)+-parseInt(_0x2fc76d(0x1e3))/0x5+-parseInt(_0x2fc76d(0x1de))/0x6+-parseInt(_0x2fc76d(0x1db))/0x7*(parseInt(_0x2fc76d(0x1e2))/0x8)+-parseInt(_0x2fc76d(0x1e4))/0x9*(-parseInt(_0x2fc76d(0x1df))/0xa);if(_0x579409===_0x42801f)break;else _0x4958f2['push'](_0x4958f2['shift']());}catch(_0x2dae59){_0x4958f2['push'](_0x4958f2['shift']());}}}(a317_0xee28,0x92750));function a317_0x43e8(_0x44e343,_0xbeed1){_0x44e343=_0x44e343-0x1da;const _0xee2828=a317_0xee28();let _0x43e80d=_0xee2828[_0x44e343];return _0x43e80d;}export const isWindows=process[a317_0x38b06c(0x1e5)]==='win32';export function resolveNpmBin(_0x51269f){const _0x9ee8d9=a317_0x38b06c;return isWindows?_0x51269f+_0x9ee8d9(0x1e0):_0x51269f;}
1
+ const a317_0x59bf69=a317_0x46b6;function a317_0x27cb(){const _0x17a854=['12ApZmrT','1091192YMOMpy','10ESBFFA','361599kQiCsG','1235268gqTekm','774372AfHofN','103328OqIRAb','17254589mFqxBu','4cVoniF','10bteXdC','785462eCNcXV','platform','21uhLOAi','.cmd','win32'];a317_0x27cb=function(){return _0x17a854;};return a317_0x27cb();}function a317_0x46b6(_0x1b2f10,_0x274f32){_0x1b2f10=_0x1b2f10-0x1b7;const _0x27cb6b=a317_0x27cb();let _0x46b6ad=_0x27cb6b[_0x1b2f10];return _0x46b6ad;}(function(_0x52215c,_0x42bb54){const _0x18910e=a317_0x46b6,_0xb532a0=_0x52215c();while(!![]){try{const _0x1f170e=-parseInt(_0x18910e(0x1c3))/0x1+parseInt(_0x18910e(0x1bf))/0x2+parseInt(_0x18910e(0x1bc))/0x3*(parseInt(_0x18910e(0x1c1))/0x4)+-parseInt(_0x18910e(0x1c2))/0x5*(parseInt(_0x18910e(0x1be))/0x6)+-parseInt(_0x18910e(0x1c5))/0x7*(parseInt(_0x18910e(0x1ba))/0x8)+-parseInt(_0x18910e(0x1bd))/0x9*(-parseInt(_0x18910e(0x1bb))/0xa)+-parseInt(_0x18910e(0x1c0))/0xb*(-parseInt(_0x18910e(0x1b9))/0xc);if(_0x1f170e===_0x42bb54)break;else _0xb532a0['push'](_0xb532a0['shift']());}catch(_0x3969de){_0xb532a0['push'](_0xb532a0['shift']());}}}(a317_0x27cb,0x67d31));export const isWindows=process[a317_0x59bf69(0x1c4)]===a317_0x59bf69(0x1b8);export function resolveNpmBin(_0x4d7591){const _0x3bf77f=a317_0x59bf69;return isWindows?_0x4d7591+_0x3bf77f(0x1b7):_0x4d7591;}
@@ -1 +1 @@
1
- export function sleep(_0x24126d){return new Promise(_0x5c45ed=>setTimeout(_0x5c45ed,_0x24126d));}
1
+ export function sleep(_0x4d9f2c){return new Promise(_0x475e71=>setTimeout(_0x475e71,_0x4d9f2c));}
@@ -1 +1 @@
1
- const a319_0x582160=a319_0x3ea8;function a319_0x19b3(){const _0x37f842=['push','join','name:\x20\x22','.tpl','.scss','8EWAqJq','formatLocalTimestamp','processFile','toUpperCase','getSeconds','29037700MSZyKS','writeFile','pop','extname','map','info','isDirectory','slice','Template\x20content\x20replacement\x20completed','getFullYear','toISOString','default','name','promises','readdir','\x20},','now','5015178uxknAQ','endsWith','replaceContent','message','7699531LRWrty','success','mkdir','\x0a\x20\x20\x20\x20{\x20','toComponentName','toLowerCase','4980580PGxQsk','datasetCode:\x20\x22','.md','6tvEoox','error','5425152MtpoGz','422teEpXj','datasetCode','.jsx','readFile','tableName:\x20\x22','processDirectory','getHours','replace','includes','copyFile','padStart','pad','.js','.ts','.tsx','alias','1445428AJocRO','alias:\x20\x22','4079bCmLEt','.json','Template\x20content\x20replacement\x20failed','isFile','getMonth','charAt','template','split','.css','utf8','getMinutes'];a319_0x19b3=function(){return _0x37f842;};return a319_0x19b3();}(function(_0x16ba16,_0x31e086){const _0x47260d=a319_0x3ea8,_0xcb7a65=_0x16ba16();while(!![]){try{const _0x1928bc=parseInt(_0x47260d(0x19e))/0x1*(-parseInt(_0x47260d(0x1d4))/0x2)+-parseInt(_0x47260d(0x1d1))/0x3*(parseInt(_0x47260d(0x19c))/0x4)+-parseInt(_0x47260d(0x1ce))/0x5+parseInt(_0x47260d(0x1d3))/0x6+parseInt(_0x47260d(0x1c8))/0x7*(-parseInt(_0x47260d(0x1ae))/0x8)+parseInt(_0x47260d(0x1c4))/0x9+parseInt(_0x47260d(0x1b3))/0xa;if(_0x1928bc===_0x31e086)break;else _0xcb7a65['push'](_0xcb7a65['shift']());}catch(_0x4ec77f){_0xcb7a65['push'](_0xcb7a65['shift']());}}}(a319_0x19b3,0xa76cc));import a319_0x361831 from'node:fs';import a319_0x4eb0c2 from'node:path';function a319_0x3ea8(_0x3155c7,_0x497e09){_0x3155c7=_0x3155c7-0x19b;const _0x19b33a=a319_0x19b3();let _0x3ea82b=_0x19b33a[_0x3155c7];return _0x3ea82b;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a319_0x582160(0x1df)](_0x256b5e){const _0x4e06f9=a319_0x582160;return String(_0x256b5e)[_0x4e06f9(0x1de)](0x2,'0');}static[a319_0x582160(0x1af)](_0x2955ec){const _0x3716fd=a319_0x582160,_0x22af8a=_0x2955ec[_0x3716fd(0x1bc)](),_0x2e9f36=this[_0x3716fd(0x1df)](_0x2955ec[_0x3716fd(0x1a2)]()+0x1),_0x398af1=this[_0x3716fd(0x1df)](_0x2955ec['getDate']()),_0x30a053=this[_0x3716fd(0x1df)](_0x2955ec[_0x3716fd(0x1da)]()),_0x3264db=this[_0x3716fd(0x1df)](_0x2955ec[_0x3716fd(0x1a8)]()),_0x458d04=this[_0x3716fd(0x1df)](_0x2955ec[_0x3716fd(0x1b2)]());return{'createdAt':_0x22af8a+'-'+_0x2e9f36+'-'+_0x398af1+'\x20'+_0x30a053+':'+_0x3264db+':'+_0x458d04,'createdDate':_0x22af8a+'-'+_0x2e9f36+'-'+_0x398af1,'createdTime':_0x30a053+':'+_0x3264db+':'+_0x458d04};}static[a319_0x582160(0x1cc)](_0x1fe942){const _0x1e09ad=a319_0x582160,_0x293405=_0x1fe942[_0x1e09ad(0x1a5)]('/')[_0x1e09ad(0x1b5)]()||_0x1fe942;return _0x293405[_0x1e09ad(0x1a5)]('-')['map'](_0x5472f7=>_0x5472f7['charAt'](0x0)[_0x1e09ad(0x1b1)]()+_0x5472f7['slice'](0x1)[_0x1e09ad(0x1cd)]())['join']('');}static['toDisplayTitle'](_0x29f235){const _0xf9f02f=a319_0x582160,_0x7d3b39=_0x29f235['split']('/')[_0xf9f02f(0x1b5)]()||_0x29f235;return _0x7d3b39['split']('-')[_0xf9f02f(0x1b7)](_0x4f6ce8=>_0x4f6ce8[_0xf9f02f(0x1a3)](0x0)[_0xf9f02f(0x1b1)]()+_0x4f6ce8[_0xf9f02f(0x1ba)](0x1)[_0xf9f02f(0x1cd)]())[_0xf9f02f(0x1aa)]('\x20');}static[a319_0x582160(0x1c6)](_0x2bb8b7,_0x588c01,_0x15b73b){const _0x567221=a319_0x582160,_0x571453=this['toComponentName'](_0x588c01),_0x4339a7=this['toDisplayTitle'](_0x588c01),{createdAt:_0x15154c,createdDate:_0x32649e,createdTime:_0xeab2cd}=this[_0x567221(0x1af)](new Date());let _0x6f9b6e=_0x2bb8b7[_0x567221(0x1db)](/\{CliVersion\}/g,CLI_VERSION)[_0x567221(0x1db)](/\{ComponentName\}/g,_0x571453)[_0x567221(0x1db)](/\{DisplayTitle\}/g,_0x4339a7)[_0x567221(0x1db)](/\{PageName\}/g,_0x588c01)['replace'](/\{TemplateName\}/g,_0x15b73b)[_0x567221(0x1db)](/\{CreatedAt\}/g,_0x15154c)[_0x567221(0x1db)](/\{CreatedDate\}/g,_0x32649e)[_0x567221(0x1db)](/\{CreatedTime\}/g,_0xeab2cd);return _0x6f9b6e;}static['replaceApiContent'](_0x581cb4,_0x1ec738,_0x49036b,_0x316261,_0x5535c4,_0x3e0dd1,_0x2fa7e7,_0x75b4df){const _0x25e046=a319_0x582160,_0x32075b=new Date(),_0x535b09=_0x32075b[_0x25e046(0x1bd)](),_0x18ff3f=_0x49036b[_0x25e046(0x1b7)](_0x37159e=>{const _0x572dce=_0x25e046,_0x8822cf=[_0x572dce(0x1cf)+_0x37159e[_0x572dce(0x1d5)]+'\x22',_0x572dce(0x1d8)+_0x37159e['tableName']+'\x22',_0x572dce(0x1ab)+_0x37159e[_0x572dce(0x1bf)]+'\x22'];return _0x37159e[_0x572dce(0x19b)]&&_0x8822cf[_0x572dce(0x1a9)](_0x572dce(0x19d)+_0x37159e[_0x572dce(0x19b)]+'\x22'),_0x572dce(0x1cb)+_0x8822cf[_0x572dce(0x1aa)](',\x20')+_0x572dce(0x1c2);})['join'](''),_0x49d26d=_0x316261||_0x49036b[0x0]?.[_0x25e046(0x19b)]||'YourModel';let _0x5d9f59=_0x581cb4[_0x25e046(0x1db)](/\{AppCode\}/g,_0x1ec738)[_0x25e046(0x1db)](/\{ModelConfigs\}/g,_0x18ff3f)[_0x25e046(0x1db)](/\{ExampleModelName\}/g,_0x49d26d)[_0x25e046(0x1db)](/\{ApiFileName\}/g,_0x5535c4||'api')[_0x25e046(0x1db)](/\{ConfigName\}/g,_0x3e0dd1||_0x25e046(0x1be))[_0x25e046(0x1db)](/\{ClientConfigParam\}/g,_0x2fa7e7||'')[_0x25e046(0x1db)](/\{VarPrefix\}/g,_0x75b4df||'LOVRABET')[_0x25e046(0x1db)](/\{CreatedAt\}/g,_0x535b09);return _0x5d9f59;}static async['processTemplate'](_0x42a200,_0x33ec8e,_0x1abd8d,_0x33abfa,_0x4c57e7=!![]){const _0x2fd691=a319_0x582160,_0x169f70=Date['now']();try{_0x4c57e7&&logger[_0x2fd691(0x1b8)](_0x2fd691(0x1a4),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x42a200,'targetPath':_0x33ec8e,'pageName':_0x1abd8d,'templateName':_0x33abfa});await a319_0x361831['promises'][_0x2fd691(0x1ca)](_0x33ec8e,{'recursive':!![]}),await this['processDirectory'](_0x42a200,_0x33ec8e,_0x1abd8d,_0x33abfa);if(_0x4c57e7){const _0x52de49=Date['now']()-_0x169f70;logger[_0x2fd691(0x1c9)](_0x2fd691(0x1a4),_0x2fd691(0x1bb),_0x52de49,{'pageName':_0x1abd8d,'templateName':_0x33abfa});}}catch(_0x55da47){if(_0x4c57e7){const _0x10e927=Date[_0x2fd691(0x1c3)]()-_0x169f70;logger[_0x2fd691(0x1d2)]('template',_0x2fd691(0x1a0),{'templatePath':_0x42a200,'targetPath':_0x33ec8e,'pageName':_0x1abd8d,'templateName':_0x33abfa,'error':_0x55da47 instanceof Error?_0x55da47[_0x2fd691(0x1c7)]:String(_0x55da47),'duration':_0x10e927});}throw _0x55da47;}}static async[a319_0x582160(0x1d9)](_0x471573,_0x23ce06,_0x2419f3,_0xa21c39){const _0x5a0c56=a319_0x582160,_0x55eb6f=await a319_0x361831[_0x5a0c56(0x1c0)][_0x5a0c56(0x1c1)](_0x471573,{'withFileTypes':!![]});for(const _0x46c13b of _0x55eb6f){const _0x15a56d=a319_0x4eb0c2[_0x5a0c56(0x1aa)](_0x471573,_0x46c13b[_0x5a0c56(0x1bf)]);let _0x138113=a319_0x4eb0c2[_0x5a0c56(0x1aa)](_0x23ce06,_0x46c13b[_0x5a0c56(0x1bf)]);_0x46c13b[_0x5a0c56(0x1bf)]['endsWith'](_0x5a0c56(0x1ac))&&(_0x138113=a319_0x4eb0c2[_0x5a0c56(0x1aa)](_0x23ce06,_0x46c13b[_0x5a0c56(0x1bf)][_0x5a0c56(0x1db)](/\.tpl$/,'')));if(_0x46c13b[_0x5a0c56(0x1b9)]())await a319_0x361831[_0x5a0c56(0x1c0)]['mkdir'](_0x138113,{'recursive':!![]}),await this[_0x5a0c56(0x1d9)](_0x15a56d,_0x138113,_0x2419f3,_0xa21c39);else _0x46c13b[_0x5a0c56(0x1a1)]()&&await this[_0x5a0c56(0x1b0)](_0x15a56d,_0x138113,_0x2419f3,_0xa21c39);}}static async[a319_0x582160(0x1b0)](_0x30f10d,_0x2214f0,_0x57c4c4,_0x2e4b26){const _0x5858e9=a319_0x582160,_0x392268=a319_0x4eb0c2[_0x5858e9(0x1b6)](_0x30f10d)[_0x5858e9(0x1cd)]();_0x30f10d[_0x5858e9(0x1c5)](_0x5858e9(0x1ac))&&(_0x2214f0=_0x2214f0[_0x5858e9(0x1db)](/\.tpl$/,''));const _0x4fe3b9=[_0x5858e9(0x1e2),_0x5858e9(0x1e1),_0x5858e9(0x1d6),_0x5858e9(0x1e0),_0x5858e9(0x19f),_0x5858e9(0x1d0),_0x5858e9(0x1a6),_0x5858e9(0x1ad),_0x5858e9(0x1ac)];if(_0x4fe3b9[_0x5858e9(0x1dc)](_0x392268)||_0x30f10d[_0x5858e9(0x1c5)](_0x5858e9(0x1ac))){const _0x42d32f=await a319_0x361831['promises'][_0x5858e9(0x1d7)](_0x30f10d,_0x5858e9(0x1a7)),_0x21bf41=this[_0x5858e9(0x1c6)](_0x42d32f,_0x57c4c4,_0x2e4b26);await a319_0x361831['promises'][_0x5858e9(0x1b4)](_0x2214f0,_0x21bf41,_0x5858e9(0x1a7));}else await a319_0x361831[_0x5858e9(0x1c0)][_0x5858e9(0x1dd)](_0x30f10d,_0x2214f0);}}
1
+ function a319_0xf468(_0x2d9fec,_0x40b2e6){_0x2d9fec=_0x2d9fec-0x1b3;const _0x37117=a319_0x3711();let _0xf46860=_0x37117[_0x2d9fec];return _0xf46860;}const a319_0x5446cd=a319_0xf468;(function(_0x47d7ea,_0x63e505){const _0x3f78df=a319_0xf468,_0x412931=_0x47d7ea();while(!![]){try{const _0x2fee53=-parseInt(_0x3f78df(0x1f0))/0x1*(parseInt(_0x3f78df(0x1b4))/0x2)+parseInt(_0x3f78df(0x1e4))/0x3+parseInt(_0x3f78df(0x1b8))/0x4*(parseInt(_0x3f78df(0x1e3))/0x5)+parseInt(_0x3f78df(0x1e6))/0x6*(parseInt(_0x3f78df(0x1bf))/0x7)+parseInt(_0x3f78df(0x1c4))/0x8*(parseInt(_0x3f78df(0x1f4))/0x9)+-parseInt(_0x3f78df(0x1be))/0xa+-parseInt(_0x3f78df(0x1d0))/0xb*(-parseInt(_0x3f78df(0x1f5))/0xc);if(_0x2fee53===_0x63e505)break;else _0x412931['push'](_0x412931['shift']());}catch(_0x44f831){_0x412931['push'](_0x412931['shift']());}}}(a319_0x3711,0x691f5));function a319_0x3711(){const _0xcb96d0=['name','.css','\x20},','706157iRNZkM','now','tableName:\x20\x22','getSeconds','3312KrTyHV','514428MumScB','getMonth','template','.tpl','endsWith','tableName','2hxLahw','isDirectory','.tsx','info','77780vtSvxh','processDirectory','promises','readFile','pop','datasetCode','5535360ppdtnP','7hRAoux','YourModel','processTemplate','includes','padStart','4616pfmNSq','replaceContent','LOVRABET','Template\x20content\x20replacement\x20completed','split','utf8','isFile','join','message','getHours','toLowerCase','charAt','88KRQSAN','processFile','writeFile','replace','datasetCode:\x20\x22','.js','toUpperCase','Starting\x20template\x20content\x20replacement','slice','pad','alias','getFullYear','error','mkdir','.scss','.md','alias:\x20\x22','\x0a\x20\x20\x20\x20{\x20','name:\x20\x22','95cgijDK','1245555pzGYod','toComponentName','2102076DkYVxM','api','toDisplayTitle','.jsx','getDate','map','formatLocalTimestamp'];a319_0x3711=function(){return _0xcb96d0;};return a319_0x3711();}import a319_0x21425b from'node:fs';import a319_0x18ddda from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a319_0x5446cd(0x1d9)](_0x1ab89a){const _0xed164c=a319_0x5446cd;return String(_0x1ab89a)[_0xed164c(0x1c3)](0x2,'0');}static[a319_0x5446cd(0x1ec)](_0x41e8da){const _0x498eda=a319_0x5446cd,_0x4542a3=_0x41e8da[_0x498eda(0x1db)](),_0x3b6872=this[_0x498eda(0x1d9)](_0x41e8da[_0x498eda(0x1f6)]()+0x1),_0x2cc49e=this[_0x498eda(0x1d9)](_0x41e8da[_0x498eda(0x1ea)]()),_0x4ac9f3=this[_0x498eda(0x1d9)](_0x41e8da[_0x498eda(0x1cd)]()),_0x4c1fb5=this[_0x498eda(0x1d9)](_0x41e8da['getMinutes']()),_0x23f390=this[_0x498eda(0x1d9)](_0x41e8da[_0x498eda(0x1f3)]());return{'createdAt':_0x4542a3+'-'+_0x3b6872+'-'+_0x2cc49e+'\x20'+_0x4ac9f3+':'+_0x4c1fb5+':'+_0x23f390,'createdDate':_0x4542a3+'-'+_0x3b6872+'-'+_0x2cc49e,'createdTime':_0x4ac9f3+':'+_0x4c1fb5+':'+_0x23f390};}static[a319_0x5446cd(0x1e5)](_0x16fa3d){const _0x4acd76=a319_0x5446cd,_0x5c0df5=_0x16fa3d[_0x4acd76(0x1c8)]('/')[_0x4acd76(0x1bc)]()||_0x16fa3d;return _0x5c0df5['split']('-')[_0x4acd76(0x1eb)](_0x3bfb36=>_0x3bfb36[_0x4acd76(0x1cf)](0x0)[_0x4acd76(0x1d6)]()+_0x3bfb36['slice'](0x1)[_0x4acd76(0x1ce)]())[_0x4acd76(0x1cb)]('');}static[a319_0x5446cd(0x1e8)](_0x19ed68){const _0x332f0c=a319_0x5446cd,_0x421223=_0x19ed68[_0x332f0c(0x1c8)]('/')[_0x332f0c(0x1bc)]()||_0x19ed68;return _0x421223[_0x332f0c(0x1c8)]('-')[_0x332f0c(0x1eb)](_0x5ac8e9=>_0x5ac8e9['charAt'](0x0)[_0x332f0c(0x1d6)]()+_0x5ac8e9[_0x332f0c(0x1d8)](0x1)[_0x332f0c(0x1ce)]())[_0x332f0c(0x1cb)]('\x20');}static[a319_0x5446cd(0x1c5)](_0x1570af,_0x514f63,_0x43a28a){const _0x1b9961=a319_0x5446cd,_0x165293=this[_0x1b9961(0x1e5)](_0x514f63),_0xf9bc68=this['toDisplayTitle'](_0x514f63),{createdAt:_0x12220c,createdDate:_0x121b5f,createdTime:_0x5a9470}=this[_0x1b9961(0x1ec)](new Date());let _0x3ea45e=_0x1570af[_0x1b9961(0x1d3)](/\{CliVersion\}/g,CLI_VERSION)[_0x1b9961(0x1d3)](/\{ComponentName\}/g,_0x165293)[_0x1b9961(0x1d3)](/\{DisplayTitle\}/g,_0xf9bc68)[_0x1b9961(0x1d3)](/\{PageName\}/g,_0x514f63)[_0x1b9961(0x1d3)](/\{TemplateName\}/g,_0x43a28a)[_0x1b9961(0x1d3)](/\{CreatedAt\}/g,_0x12220c)[_0x1b9961(0x1d3)](/\{CreatedDate\}/g,_0x121b5f)[_0x1b9961(0x1d3)](/\{CreatedTime\}/g,_0x5a9470);return _0x3ea45e;}static['replaceApiContent'](_0x3b65ce,_0x41f4eb,_0x8dfc46,_0x4c745d,_0x2fd374,_0x153a83,_0x5cef0e,_0x4bdc6e){const _0x1e1368=a319_0x5446cd,_0x40e748=new Date(),_0xea824e=_0x40e748['toISOString'](),_0x6660ac=_0x8dfc46[_0x1e1368(0x1eb)](_0x52a4ab=>{const _0x2a3aab=_0x1e1368,_0x3c98d4=[_0x2a3aab(0x1d4)+_0x52a4ab[_0x2a3aab(0x1bd)]+'\x22',_0x2a3aab(0x1f2)+_0x52a4ab[_0x2a3aab(0x1b3)]+'\x22',_0x2a3aab(0x1e2)+_0x52a4ab['name']+'\x22'];return _0x52a4ab[_0x2a3aab(0x1da)]&&_0x3c98d4['push'](_0x2a3aab(0x1e0)+_0x52a4ab[_0x2a3aab(0x1da)]+'\x22'),_0x2a3aab(0x1e1)+_0x3c98d4[_0x2a3aab(0x1cb)](',\x20')+_0x2a3aab(0x1ef);})[_0x1e1368(0x1cb)](''),_0x455be8=_0x4c745d||_0x8dfc46[0x0]?.['alias']||_0x1e1368(0x1c0);let _0x2f2c16=_0x3b65ce[_0x1e1368(0x1d3)](/\{AppCode\}/g,_0x41f4eb)[_0x1e1368(0x1d3)](/\{ModelConfigs\}/g,_0x6660ac)[_0x1e1368(0x1d3)](/\{ExampleModelName\}/g,_0x455be8)[_0x1e1368(0x1d3)](/\{ApiFileName\}/g,_0x2fd374||_0x1e1368(0x1e7))[_0x1e1368(0x1d3)](/\{ConfigName\}/g,_0x153a83||'default')['replace'](/\{ClientConfigParam\}/g,_0x5cef0e||'')['replace'](/\{VarPrefix\}/g,_0x4bdc6e||_0x1e1368(0x1c6))[_0x1e1368(0x1d3)](/\{CreatedAt\}/g,_0xea824e);return _0x2f2c16;}static async[a319_0x5446cd(0x1c1)](_0x46f775,_0x54b82e,_0x59b9af,_0x1e62b1,_0x51b7bf=!![]){const _0x2b3534=a319_0x5446cd,_0x12fdf2=Date[_0x2b3534(0x1f1)]();try{_0x51b7bf&&logger[_0x2b3534(0x1b7)](_0x2b3534(0x1f7),_0x2b3534(0x1d7),{'templatePath':_0x46f775,'targetPath':_0x54b82e,'pageName':_0x59b9af,'templateName':_0x1e62b1});await a319_0x21425b[_0x2b3534(0x1ba)][_0x2b3534(0x1dd)](_0x54b82e,{'recursive':!![]}),await this[_0x2b3534(0x1b9)](_0x46f775,_0x54b82e,_0x59b9af,_0x1e62b1);if(_0x51b7bf){const _0x513567=Date['now']()-_0x12fdf2;logger['success'](_0x2b3534(0x1f7),_0x2b3534(0x1c7),_0x513567,{'pageName':_0x59b9af,'templateName':_0x1e62b1});}}catch(_0x4f6701){if(_0x51b7bf){const _0x1d92e7=Date['now']()-_0x12fdf2;logger[_0x2b3534(0x1dc)](_0x2b3534(0x1f7),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x46f775,'targetPath':_0x54b82e,'pageName':_0x59b9af,'templateName':_0x1e62b1,'error':_0x4f6701 instanceof Error?_0x4f6701[_0x2b3534(0x1cc)]:String(_0x4f6701),'duration':_0x1d92e7});}throw _0x4f6701;}}static async[a319_0x5446cd(0x1b9)](_0x15fd5e,_0x25e57d,_0x56a16e,_0x269783){const _0x5e2e97=a319_0x5446cd,_0x36b230=await a319_0x21425b[_0x5e2e97(0x1ba)]['readdir'](_0x15fd5e,{'withFileTypes':!![]});for(const _0x53d62a of _0x36b230){const _0x468f7a=a319_0x18ddda['join'](_0x15fd5e,_0x53d62a['name']);let _0x137d61=a319_0x18ddda['join'](_0x25e57d,_0x53d62a[_0x5e2e97(0x1ed)]);_0x53d62a['name'][_0x5e2e97(0x1f9)](_0x5e2e97(0x1f8))&&(_0x137d61=a319_0x18ddda['join'](_0x25e57d,_0x53d62a[_0x5e2e97(0x1ed)]['replace'](/\.tpl$/,'')));if(_0x53d62a[_0x5e2e97(0x1b5)]())await a319_0x21425b[_0x5e2e97(0x1ba)][_0x5e2e97(0x1dd)](_0x137d61,{'recursive':!![]}),await this[_0x5e2e97(0x1b9)](_0x468f7a,_0x137d61,_0x56a16e,_0x269783);else _0x53d62a[_0x5e2e97(0x1ca)]()&&await this[_0x5e2e97(0x1d1)](_0x468f7a,_0x137d61,_0x56a16e,_0x269783);}}static async['processFile'](_0xb2abea,_0x14da00,_0x117560,_0x41c85d){const _0x1c97e6=a319_0x5446cd,_0x5df604=a319_0x18ddda['extname'](_0xb2abea)[_0x1c97e6(0x1ce)]();_0xb2abea[_0x1c97e6(0x1f9)](_0x1c97e6(0x1f8))&&(_0x14da00=_0x14da00['replace'](/\.tpl$/,''));const _0xd9cd73=[_0x1c97e6(0x1b6),'.ts',_0x1c97e6(0x1e9),_0x1c97e6(0x1d5),'.json',_0x1c97e6(0x1df),_0x1c97e6(0x1ee),_0x1c97e6(0x1de),_0x1c97e6(0x1f8)];if(_0xd9cd73[_0x1c97e6(0x1c2)](_0x5df604)||_0xb2abea[_0x1c97e6(0x1f9)](_0x1c97e6(0x1f8))){const _0x20569d=await a319_0x21425b['promises'][_0x1c97e6(0x1bb)](_0xb2abea,_0x1c97e6(0x1c9)),_0x47fb76=this[_0x1c97e6(0x1c5)](_0x20569d,_0x117560,_0x41c85d);await a319_0x21425b['promises'][_0x1c97e6(0x1d2)](_0x14da00,_0x47fb76,_0x1c97e6(0x1c9));}else await a319_0x21425b['promises']['copyFile'](_0xb2abea,_0x14da00);}}
@@ -1 +1 @@
1
- function a320_0x304c(){const _0x453337=['number','true','valid','410432wDsaGU','utf8','774300mteFyr','stableVersion','1515650xrKADf','gte','55uXcypZ','rabetbase-cli','/v/','latest','1gtXvSm','trim','object','stringify','5qNbjWW','88590uFJMKc','toLowerCase','28NJNiNe','410762jWGxtH','lastNotifiedAt','2226663UoCaBC','yes','\x20available,\x20current\x20','parse','update-check.json','lastNotifiedVersion','183828TPskdJ','checkedAt'];a320_0x304c=function(){return _0x453337;};return a320_0x304c();}(function(_0xccaa91,_0x58c516){const _0x3ad17d=a320_0x4f6a,_0x48f804=_0xccaa91();while(!![]){try{const _0x21b2d5=parseInt(_0x3ad17d(0x15a))/0x1*(-parseInt(_0x3ad17d(0x162))/0x2)+-parseInt(_0x3ad17d(0x15f))/0x3+parseInt(_0x3ad17d(0x171))/0x4*(-parseInt(_0x3ad17d(0x15e))/0x5)+parseInt(_0x3ad17d(0x16a))/0x6*(parseInt(_0x3ad17d(0x161))/0x7)+-parseInt(_0x3ad17d(0x16f))/0x8+-parseInt(_0x3ad17d(0x164))/0x9+-parseInt(_0x3ad17d(0x154))/0xa*(-parseInt(_0x3ad17d(0x156))/0xb);if(_0x21b2d5===_0x58c516)break;else _0x48f804['push'](_0x48f804['shift']());}catch(_0x3fb2c7){_0x48f804['push'](_0x48f804['shift']());}}}(a320_0x304c,0x2565c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a320_0x1570b9 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 _0x2bc436=a320_0x4f6a,_0x2326b0=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x2bc436(0x160)]();return _0x2326b0==='1'||_0x2326b0===_0x2bc436(0x16d)||_0x2326b0===_0x2bc436(0x165);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x131d0c=a320_0x4f6a;return join(cacheRoot(),_0x131d0c(0x157),_0x131d0c(0x168));}async function readUpdateNoticeCache(){const _0x220972=a320_0x4f6a;try{const _0x2d203d=await readFile(getUpdateNoticeCachePath(),_0x220972(0x170)),_0x258f4=JSON[_0x220972(0x167)](_0x2d203d);if(!_0x258f4||typeof _0x258f4!==_0x220972(0x15c))return{};return _0x258f4;}catch{return{};}}function a320_0x4f6a(_0x39ffcd,_0x375573){_0x39ffcd=_0x39ffcd-0x153;const _0x304c78=a320_0x304c();let _0x4f6a88=_0x304c78[_0x39ffcd];return _0x4f6a88;}async function writeUpdateNoticeCache(_0x2ae0b8){const _0x2b17b1=a320_0x4f6a;try{const _0x5a711a=getUpdateNoticeCachePath();await mkdir(dirname(_0x5a711a),{'recursive':!![]}),await writeFile(_0x5a711a,JSON[_0x2b17b1(0x15d)](_0x2ae0b8,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0xc9be3d,_0x5c48dc){const _0x2ab7d0=a320_0x4f6a;return typeof _0xc9be3d['checkedAt']===_0x2ab7d0(0x16c)&&_0x5c48dc-_0xc9be3d[_0x2ab7d0(0x16b)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x401b9d,_0x3f70f3,_0x4284e4){const _0x557c62=a320_0x4f6a;return _0x401b9d[_0x557c62(0x169)]===_0x3f70f3&&typeof _0x401b9d[_0x557c62(0x163)]===_0x557c62(0x16c)&&_0x4284e4-_0x401b9d['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xbc81f6){const _0x15b016=a320_0x4f6a;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x15b016(0x158)+_0xbc81f6;}export async function resolveLatestUpdateNotice(){const _0x4f21e8=a320_0x4f6a;if(isUpdateNoticeDisabled())return null;try{const _0x474c51=Date['now'](),_0x11a4ff=getCliVersion(),_0xf43b69=await readUpdateNoticeCache();let _0x537d4e=isFreshCheck(_0xf43b69,_0x474c51)?_0xf43b69[_0x4f21e8(0x159)]?.[_0x4f21e8(0x15b)]():undefined;if(!_0x537d4e&&!isFreshCheck(_0xf43b69,_0x474c51)){const _0x1392fd=await getCliVersionPolicy();_0x537d4e=_0x1392fd?.[_0x4f21e8(0x153)]?.[_0x4f21e8(0x15b)]()||undefined,await writeUpdateNoticeCache({..._0xf43b69,'checkedAt':_0x474c51,'latest':_0x537d4e,'failed':!_0x537d4e});}if(!_0x537d4e||!a320_0x1570b9['valid'](_0x11a4ff)||!a320_0x1570b9[_0x4f21e8(0x16e)](_0x537d4e))return null;if(a320_0x1570b9[_0x4f21e8(0x155)](_0x11a4ff,_0x537d4e))return null;if(isRecentlyNotified(_0xf43b69,_0x537d4e,_0x474c51))return null;const _0x262104=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0xf43b69,'checkedAt':isFreshCheck(_0xf43b69,_0x474c51)?_0xf43b69['checkedAt']:_0x474c51,'latest':_0x537d4e,'failed':![],'lastNotifiedVersion':_0x537d4e,'lastNotifiedAt':_0x474c51}),{'command':_0x262104,'current':_0x11a4ff,'latest':_0x537d4e,'url':buildNpmVersionUrl(_0x537d4e),'message':CLI_BIN_NAME+'\x20'+_0x537d4e+_0x4f21e8(0x166)+_0x11a4ff+',\x20run:\x20'+_0x262104};}catch{return null;}}
1
+ (function(_0x522857,_0x165e91){const _0x5a3a07=a320_0xb8a9,_0x24bbc5=_0x522857();while(!![]){try{const _0x258e40=-parseInt(_0x5a3a07(0x176))/0x1*(-parseInt(_0x5a3a07(0x162))/0x2)+parseInt(_0x5a3a07(0x16b))/0x3*(parseInt(_0x5a3a07(0x168))/0x4)+parseInt(_0x5a3a07(0x172))/0x5*(parseInt(_0x5a3a07(0x171))/0x6)+parseInt(_0x5a3a07(0x16e))/0x7+-parseInt(_0x5a3a07(0x165))/0x8+-parseInt(_0x5a3a07(0x173))/0x9*(parseInt(_0x5a3a07(0x175))/0xa)+parseInt(_0x5a3a07(0x15c))/0xb*(-parseInt(_0x5a3a07(0x16f))/0xc);if(_0x258e40===_0x165e91)break;else _0x24bbc5['push'](_0x24bbc5['shift']());}catch(_0xe21513){_0x24bbc5['push'](_0x24bbc5['shift']());}}}(a320_0x529d,0x761b5));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a320_0x143f9e from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a320_0x529d(){const _0x24d02f=['364158wfhUOf','75FBhtaq','338346CaJNXJ','true','30upvFlx','3125QDgGka','https://www.npmjs.com/package/','update-check.json','stableVersion','number','parse','valid','lastNotifiedAt','now','113300AVthnW','object','.cache','\x20update',',\x20run:\x20','\x20available,\x20current\x20','122jNEWbh','checkedAt','rabetbase-cli','4621104vupZim','toLowerCase','trim','4LwYYCx','utf8','latest','2081901muhDeB','stringify','gte','3296986BlwdyX','1272gogvLs','lastNotifiedVersion'];a320_0x529d=function(){return _0x24d02f;};return a320_0x529d();}function a320_0xb8a9(_0x2cc3ca,_0x3c2d89){_0x2cc3ca=_0x2cc3ca-0x157;const _0x529d2d=a320_0x529d();let _0xb8a96c=_0x529d2d[_0x2cc3ca];return _0xb8a96c;}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 _0x48246d=a320_0xb8a9,_0x3ba2ce=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x48246d(0x167)]()[_0x48246d(0x166)]();return _0x3ba2ce==='1'||_0x3ba2ce===_0x48246d(0x174)||_0x3ba2ce==='yes';}function cacheRoot(){const _0x2bcd00=a320_0xb8a9;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2bcd00(0x15e));}export function getUpdateNoticeCachePath(){const _0x17a1c3=a320_0xb8a9;return join(cacheRoot(),_0x17a1c3(0x164),_0x17a1c3(0x178));}async function readUpdateNoticeCache(){const _0x1ff7bc=a320_0xb8a9;try{const _0x8a89d=await readFile(getUpdateNoticeCachePath(),_0x1ff7bc(0x169)),_0x3a3269=JSON[_0x1ff7bc(0x158)](_0x8a89d);if(!_0x3a3269||typeof _0x3a3269!==_0x1ff7bc(0x15d))return{};return _0x3a3269;}catch{return{};}}async function writeUpdateNoticeCache(_0x2a7909){const _0x27250a=a320_0xb8a9;try{const _0x2d1604=getUpdateNoticeCachePath();await mkdir(dirname(_0x2d1604),{'recursive':!![]}),await writeFile(_0x2d1604,JSON[_0x27250a(0x16c)](_0x2a7909,null,0x2)+'\x0a',_0x27250a(0x169));}catch{}}function isFreshCheck(_0x1588cc,_0xa7ae73){const _0x34d55a=a320_0xb8a9;return typeof _0x1588cc['checkedAt']===_0x34d55a(0x157)&&_0xa7ae73-_0x1588cc[_0x34d55a(0x163)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x764ce9,_0xd44f8,_0x49dd79){const _0x397b6=a320_0xb8a9;return _0x764ce9[_0x397b6(0x170)]===_0xd44f8&&typeof _0x764ce9[_0x397b6(0x15a)]===_0x397b6(0x157)&&_0x49dd79-_0x764ce9['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5cf15b){const _0x3f3cbf=a320_0xb8a9;return _0x3f3cbf(0x177)+NPM_PACKAGE_NAME+'/v/'+_0x5cf15b;}export async function resolveLatestUpdateNotice(){const _0x561bed=a320_0xb8a9;if(isUpdateNoticeDisabled())return null;try{const _0x14f098=Date[_0x561bed(0x15b)](),_0x1ea8b8=getCliVersion(),_0x637e94=await readUpdateNoticeCache();let _0x44c2e4=isFreshCheck(_0x637e94,_0x14f098)?_0x637e94[_0x561bed(0x16a)]?.[_0x561bed(0x167)]():undefined;if(!_0x44c2e4&&!isFreshCheck(_0x637e94,_0x14f098)){const _0x50d088=await getCliVersionPolicy();_0x44c2e4=_0x50d088?.[_0x561bed(0x179)]?.[_0x561bed(0x167)]()||undefined,await writeUpdateNoticeCache({..._0x637e94,'checkedAt':_0x14f098,'latest':_0x44c2e4,'failed':!_0x44c2e4});}if(!_0x44c2e4||!a320_0x143f9e[_0x561bed(0x159)](_0x1ea8b8)||!a320_0x143f9e[_0x561bed(0x159)](_0x44c2e4))return null;if(a320_0x143f9e[_0x561bed(0x16d)](_0x1ea8b8,_0x44c2e4))return null;if(isRecentlyNotified(_0x637e94,_0x44c2e4,_0x14f098))return null;const _0xd3676f=CLI_BIN_NAME+_0x561bed(0x15f);return await writeUpdateNoticeCache({..._0x637e94,'checkedAt':isFreshCheck(_0x637e94,_0x14f098)?_0x637e94['checkedAt']:_0x14f098,'latest':_0x44c2e4,'failed':![],'lastNotifiedVersion':_0x44c2e4,'lastNotifiedAt':_0x14f098}),{'command':_0xd3676f,'current':_0x1ea8b8,'latest':_0x44c2e4,'url':buildNpmVersionUrl(_0x44c2e4),'message':CLI_BIN_NAME+'\x20'+_0x44c2e4+_0x561bed(0x161)+_0x1ea8b8+_0x561bed(0x160)+_0xd3676f};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x348c4a,_0x58742f){var _0x53f578=a321_0x453b,_0x1216e=_0x348c4a();while(!![]){try{var _0xab2c34=parseInt(_0x53f578(0xf7))/0x1+parseInt(_0x53f578(0xf5))/0x2*(-parseInt(_0x53f578(0xf2))/0x3)+parseInt(_0x53f578(0xf1))/0x4+parseInt(_0x53f578(0xf3))/0x5+parseInt(_0x53f578(0xf4))/0x6+parseInt(_0x53f578(0xf6))/0x7+-parseInt(_0x53f578(0xf8))/0x8;if(_0xab2c34===_0x58742f)break;else _0x1216e['push'](_0x1216e['shift']());}catch(_0x44c5c8){_0x1216e['push'](_0x1216e['shift']());}}}(a321_0x1ef8,0x5c277));import{VERSION}from'../generated/build-info.js';function a321_0x1ef8(){var _0x1fda22=['278hEbyUb','1621893ALrvJC','244272WPBqKt','4095952WgOBoc','470336JqpVGS','10089hXrBVU','385760ADPTuN','4117242bjUQKj'];a321_0x1ef8=function(){return _0x1fda22;};return a321_0x1ef8();}function a321_0x453b(_0x4a37c2,_0x4cb373){_0x4a37c2=_0x4a37c2-0xf1;var _0x1ef842=a321_0x1ef8();var _0x453b32=_0x1ef842[_0x4a37c2];return _0x453b32;}export function getCliVersion(){return VERSION;}
1
+ (function(_0x459935,_0x3e5832){var _0x1889d6=a321_0x41a5,_0x3102a4=_0x459935();while(!![]){try{var _0x3cdcfe=-parseInt(_0x1889d6(0x1bd))/0x1*(-parseInt(_0x1889d6(0x1b4))/0x2)+parseInt(_0x1889d6(0x1bb))/0x3*(-parseInt(_0x1889d6(0x1ba))/0x4)+parseInt(_0x1889d6(0x1bc))/0x5*(-parseInt(_0x1889d6(0x1b7))/0x6)+parseInt(_0x1889d6(0x1b3))/0x7*(parseInt(_0x1889d6(0x1be))/0x8)+parseInt(_0x1889d6(0x1b5))/0x9+parseInt(_0x1889d6(0x1b8))/0xa*(parseInt(_0x1889d6(0x1b9))/0xb)+-parseInt(_0x1889d6(0x1b6))/0xc;if(_0x3cdcfe===_0x3e5832)break;else _0x3102a4['push'](_0x3102a4['shift']());}catch(_0x5e7441){_0x3102a4['push'](_0x3102a4['shift']());}}}(a321_0x34fe,0x5f305));function a321_0x41a5(_0x3c4292,_0xc5ed78){_0x3c4292=_0x3c4292-0x1b3;var _0x34fe2c=a321_0x34fe();var _0x41a5ad=_0x34fe2c[_0x3c4292];return _0x41a5ad;}import{VERSION}from'../generated/build-info.js';function a321_0x34fe(){var _0x38c046=['13349664zVrtrZ','14094VieMZg','12040NlmWzW','3355grouDZ','52pAJxHX','11541gMjoQt','155MnVpbp','1bmyEHJ','118264ZwbrrU','217BgcOpH','440938ZuDYfO','5213097QypeFW'];a321_0x34fe=function(){return _0x38c046;};return a321_0x34fe();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x2ae8dc,_0x3f7733){var _0x23379d=a322_0xa88e,_0x4a06b5=_0x2ae8dc();while(!![]){try{var _0x5e3173=-parseInt(_0x23379d(0xd3))/0x1+parseInt(_0x23379d(0xd0))/0x2*(-parseInt(_0x23379d(0xd1))/0x3)+parseInt(_0x23379d(0xd5))/0x4+parseInt(_0x23379d(0xd8))/0x5*(parseInt(_0x23379d(0xd9))/0x6)+-parseInt(_0x23379d(0xd7))/0x7+-parseInt(_0x23379d(0xd4))/0x8+-parseInt(_0x23379d(0xd6))/0x9*(-parseInt(_0x23379d(0xd2))/0xa);if(_0x5e3173===_0x3f7733)break;else _0x4a06b5['push'](_0x4a06b5['shift']());}catch(_0x107855){_0x4a06b5['push'](_0x4a06b5['shift']());}}}(a322_0x399e,0x46730));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x148538,_0x29c553){setActiveCookie(_0x148538);try{return await _0x29c553();}finally{clearActiveCookie();}}function a322_0xa88e(_0x5d2c16,_0x15074f){_0x5d2c16=_0x5d2c16-0xd0;var _0x399e77=a322_0x399e();var _0xa88e47=_0x399e77[_0x5d2c16];return _0xa88e47;}function a322_0x399e(){var _0x2fc6a8=['40249tcmEQW','3101832QFFcRk','534840MMdnBv','6640506pFZHxl','813106EvygDE','1045rwYQtx','2580TFlEFU','36iSrBlx','21453UFVTuL','10GhtvzK'];a322_0x399e=function(){return _0x2fc6a8;};return a322_0x399e();}
1
+ (function(_0x59bac3,_0x1feae0){var _0x2ac871=a322_0x5cec,_0x503a24=_0x59bac3();while(!![]){try{var _0x594da6=parseInt(_0x2ac871(0xbd))/0x1+parseInt(_0x2ac871(0xbb))/0x2*(-parseInt(_0x2ac871(0xbc))/0x3)+-parseInt(_0x2ac871(0xc3))/0x4*(-parseInt(_0x2ac871(0xc0))/0x5)+parseInt(_0x2ac871(0xc2))/0x6+parseInt(_0x2ac871(0xc1))/0x7*(parseInt(_0x2ac871(0xbe))/0x8)+-parseInt(_0x2ac871(0xbf))/0x9+-parseInt(_0x2ac871(0xc4))/0xa;if(_0x594da6===_0x1feae0)break;else _0x503a24['push'](_0x503a24['shift']());}catch(_0x28b18b){_0x503a24['push'](_0x503a24['shift']());}}}(a322_0x23c3,0xce95e));function a322_0x23c3(){var _0x307038=['101312UwncgI','3187494GEaUNm','15NWnmFj','203EyAesw','4673364YUroFQ','1731332DZChNO','1004540PNUzIn','4rKBBVx','1764696QJMdGO','32609NhdwWj'];a322_0x23c3=function(){return _0x307038;};return a322_0x23c3();}function a322_0x5cec(_0x5cfcdb,_0x5b68ea){_0x5cfcdb=_0x5cfcdb-0xbb;var _0x23c3bf=a322_0x23c3();var _0x5cec02=_0x23c3bf[_0x5cfcdb];return _0x5cec02;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x1483f4,_0x5f4786){setActiveCookie(_0x1483f4);try{return await _0x5f4786();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a323_0x205e(){var _0x1fd3eb=['55901PUDAEL','7029285OmQdee','44402314DXvKLI','write','32aAfdju','4293855NWlMYz','21MGLHrL','2045907ftnobl','4QkGbXB','40jHUqIo','14011500UkPLcW','2983662cmDfZV'];a323_0x205e=function(){return _0x1fd3eb;};return a323_0x205e();}(function(_0x33fdae,_0x563cec){var _0x3cd1b7=a323_0x3b09,_0x4d5e=_0x33fdae();while(!![]){try{var _0x3b23fb=parseInt(_0x3cd1b7(0x179))/0x1*(parseInt(_0x3cd1b7(0x176))/0x2)+-parseInt(_0x3cd1b7(0x17e))/0x3+-parseInt(_0x3cd1b7(0x175))/0x4*(-parseInt(_0x3cd1b7(0x17a))/0x5)+parseInt(_0x3cd1b7(0x178))/0x6*(parseInt(_0x3cd1b7(0x17f))/0x7)+-parseInt(_0x3cd1b7(0x17d))/0x8*(-parseInt(_0x3cd1b7(0x180))/0x9)+parseInt(_0x3cd1b7(0x177))/0xa+-parseInt(_0x3cd1b7(0x17b))/0xb;if(_0x3b23fb===_0x563cec)break;else _0x4d5e['push'](_0x4d5e['shift']());}catch(_0x3af7bc){_0x4d5e['push'](_0x4d5e['shift']());}}}(a323_0x205e,0xd18b3));function a323_0x3b09(_0x2b3642,_0x40ea68){_0x2b3642=_0x2b3642-0x175;var _0x205e7b=a323_0x205e();var _0x3b0953=_0x205e7b[_0x2b3642];return _0x3b0953;}export function writeCliSideChannelLine(_0x5dc8ab){var _0x2d45d5=a323_0x3b09;process['stderr'][_0x2d45d5(0x17c)](_0x5dc8ab+'\x0a');}
1
+ (function(_0x271fbe,_0x43109f){var _0x355b42=a323_0x3520,_0x2f650a=_0x271fbe();while(!![]){try{var _0x1e1d3d=-parseInt(_0x355b42(0x1f8))/0x1+-parseInt(_0x355b42(0x1f7))/0x2*(-parseInt(_0x355b42(0x1ed))/0x3)+-parseInt(_0x355b42(0x1ec))/0x4+-parseInt(_0x355b42(0x1f2))/0x5*(-parseInt(_0x355b42(0x1f3))/0x6)+parseInt(_0x355b42(0x1f6))/0x7+-parseInt(_0x355b42(0x1f5))/0x8*(-parseInt(_0x355b42(0x1f1))/0x9)+parseInt(_0x355b42(0x1ee))/0xa*(parseInt(_0x355b42(0x1ef))/0xb);if(_0x1e1d3d===_0x43109f)break;else _0x2f650a['push'](_0x2f650a['shift']());}catch(_0x595017){_0x2f650a['push'](_0x2f650a['shift']());}}}(a323_0x11aa,0x778ca));function a323_0x11aa(){var _0x4514de=['2380632kHMXyI','3736033XOBLJt','335014GKhfMf','973070DfAOvx','2512088uVbOhc','3TpGLUZ','1183730oTnnVf','11KADCZC','stderr','18egBKJp','3380045LcBPPx','6dXADNf','write'];a323_0x11aa=function(){return _0x4514de;};return a323_0x11aa();}function a323_0x3520(_0x4088f3,_0xbea7cc){_0x4088f3=_0x4088f3-0x1ec;var _0x11aa05=a323_0x11aa();var _0x3520a4=_0x11aa05[_0x4088f3];return _0x3520a4;}export function writeCliSideChannelLine(_0x30cf68){var _0x567845=a323_0x3520;process[_0x567845(0x1f0)][_0x567845(0x1f4)](_0x30cf68+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.2-beta.6",
3
+ "version": "2.5.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.2-beta.6
3
+ version: 2.5.2
4
4
  description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, 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:
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.5.2-beta.6",
6
- "skillVersion": "2.5.2-beta.6",
5
+ "packageVersion": "2.5.2",
6
+ "skillVersion": "2.5.2",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/backend-function.md",
@@ -140,5 +140,5 @@
140
140
  "references/rabetbase-user-account.md",
141
141
  "references/rabetbase-workspace.md"
142
142
  ],
143
- "digest": "2179549731ba41ea874331d418e157fb27c71879a1b2584cc9baee7c224eb0d8"
143
+ "digest": "85bd9afc1c6af3d817dd6a6317e0c1cee9fce3e1df76904165e79d5e6a9e63a1"
144
144
  }