@lovrabet/rabetbase-cli 2.5.2-beta.7 → 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(_0x369587,_0x202a1e){const _0x3a449b=a308_0x2af3,_0x4a5576=_0x369587();while(!![]){try{const _0x49bac2=-parseInt(_0x3a449b(0x15a))/0x1*(parseInt(_0x3a449b(0x162))/0x2)+-parseInt(_0x3a449b(0x159))/0x3+-parseInt(_0x3a449b(0x160))/0x4*(parseInt(_0x3a449b(0x161))/0x5)+parseInt(_0x3a449b(0x169))/0x6*(parseInt(_0x3a449b(0x15c))/0x7)+parseInt(_0x3a449b(0x163))/0x8*(parseInt(_0x3a449b(0x165))/0x9)+-parseInt(_0x3a449b(0x166))/0xa*(parseInt(_0x3a449b(0x15e))/0xb)+parseInt(_0x3a449b(0x167))/0xc;if(_0x49bac2===_0x202a1e)break;else _0x4a5576['push'](_0x4a5576['shift']());}catch(_0x56ef77){_0x4a5576['push'](_0x4a5576['shift']());}}}(a308_0x16c7,0x1a7f6));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x1e3438){const _0x2576eb=a308_0x2af3;return typeof _0x1e3438===_0x2576eb(0x16d)&&_0x1e3438[_0x2576eb(0x16a)]()[_0x2576eb(0x16f)]>0x0?_0x1e3438[_0x2576eb(0x16a)]():null;}function normalizeCliVersionPolicy(_0x5c679f){const _0x2c281a=a308_0x2af3;if(!_0x5c679f||typeof _0x5c679f!==_0x2c281a(0x16b))return null;const _0x51dc95=_0x5c679f,_0x32501c=_0x51dc95[_0x2c281a(0x171)]&&typeof _0x51dc95[_0x2c281a(0x171)]===_0x2c281a(0x16b)?_0x51dc95[_0x2c281a(0x171)]:_0x51dc95,_0x581b1c=pickString(_0x32501c['stableVersion'])||pickString(_0x32501c[_0x2c281a(0x172)])||pickString(_0x32501c[_0x2c281a(0x168)]),_0x445eac=pickString(_0x32501c['minimumVersion'])||pickString(_0x32501c[_0x2c281a(0x170)]);if(!_0x581b1c&&!_0x445eac)return null;return{'stableVersion':_0x581b1c,'minimumVersion':_0x445eac,'upgradeMessage':pickString(_0x32501c[_0x2c281a(0x15b)])||undefined,'minimumVersionMessage':pickString(_0x32501c[_0x2c281a(0x15d)])||undefined};}function a308_0x16c7(){const _0x1ed774=['530280BPXeej','45DTTBEI','upgradeMessage','21413hYfIac','minimumVersionMessage','134497mUEYFc','application/json','4FKjAza','499715psVfPy','1492tuwkkS','8AhBHuR','abort','97686tQVHVn','30pbkzKp','4124244ZlRJrA','recommendedVersion','198fIsChZ','trim','object','now','string','json','length','minVersion','cli','latestVersion','signal'];a308_0x16c7=function(){return _0x1ed774;};return a308_0x16c7();}export async function fetchRabetbaseCdnConfig(){const _0x4a569d=a308_0x2af3,_0x20a117=new AbortController(),_0x458e55=setTimeout(()=>_0x20a117[_0x4a569d(0x164)](),FETCH_TIMEOUT_MS);try{const _0x487487=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4a569d(0x15f)},'signal':_0x20a117[_0x4a569d(0x158)]});if(!_0x487487['ok'])return null;const _0x32241c=await _0x487487[_0x4a569d(0x16e)]();return _0x32241c&&typeof _0x32241c===_0x4a569d(0x16b)?_0x32241c:null;}catch{return null;}finally{clearTimeout(_0x458e55);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5536b8=a308_0x2af3,_0x19427d=Date[_0x5536b8(0x16c)]();if(hasCachedConfig){const _0x3c6e03=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x19427d-cacheTime<_0x3c6e03)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x19427d,hasCachedConfig=!![],cachedConfig;}function a308_0x2af3(_0x1d1a37,_0x1e85ff){_0x1d1a37=_0x1d1a37-0x158;const _0x16c7b4=a308_0x16c7();let _0x2af38b=_0x16c7b4[_0x1d1a37];return _0x2af38b;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x368a5d,_0x2391d4){const _0x117b63=a308_0x3a99,_0x3d4265=_0x368a5d();while(!![]){try{const _0x53f729=-parseInt(_0x117b63(0x1d2))/0x1+parseInt(_0x117b63(0x1db))/0x2*(-parseInt(_0x117b63(0x1ce))/0x3)+parseInt(_0x117b63(0x1cd))/0x4+parseInt(_0x117b63(0x1c6))/0x5*(parseInt(_0x117b63(0x1ca))/0x6)+parseInt(_0x117b63(0x1da))/0x7+-parseInt(_0x117b63(0x1d5))/0x8+parseInt(_0x117b63(0x1d6))/0x9;if(_0x53f729===_0x2391d4)break;else _0x3d4265['push'](_0x3d4265['shift']());}catch(_0x1abe2f){_0x3d4265['push'](_0x3d4265['shift']());}}}(a308_0x5799,0x7d014));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x46165a){const _0x30deb5=a308_0x3a99;return typeof _0x46165a===_0x30deb5(0x1d7)&&_0x46165a[_0x30deb5(0x1d0)]()[_0x30deb5(0x1d8)]>0x0?_0x46165a[_0x30deb5(0x1d0)]():null;}function normalizeCliVersionPolicy(_0x67859a){const _0x562ec1=a308_0x3a99;if(!_0x67859a||typeof _0x67859a!=='object')return null;const _0x4e6928=_0x67859a,_0x243441=_0x4e6928[_0x562ec1(0x1c8)]&&typeof _0x4e6928[_0x562ec1(0x1c8)]===_0x562ec1(0x1d1)?_0x4e6928[_0x562ec1(0x1c8)]:_0x4e6928,_0x5e031=pickString(_0x243441[_0x562ec1(0x1d4)])||pickString(_0x243441['latestVersion'])||pickString(_0x243441[_0x562ec1(0x1cc)]),_0x21267e=pickString(_0x243441[_0x562ec1(0x1c7)])||pickString(_0x243441[_0x562ec1(0x1d9)]);if(!_0x5e031&&!_0x21267e)return null;return{'stableVersion':_0x5e031,'minimumVersion':_0x21267e,'upgradeMessage':pickString(_0x243441['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x243441[_0x562ec1(0x1cf)])||undefined};}function a308_0x3a99(_0x2b35bd,_0x56f174){_0x2b35bd=_0x2b35bd-0x1c6;const _0x5799fe=a308_0x5799();let _0x3a9925=_0x5799fe[_0x2b35bd];return _0x3a9925;}export async function fetchRabetbaseCdnConfig(){const _0x2b63fe=a308_0x3a99,_0x41a29e=new AbortController(),_0x4e43bc=setTimeout(()=>_0x41a29e[_0x2b63fe(0x1c9)](),FETCH_TIMEOUT_MS);try{const _0x29a843=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2b63fe(0x1d3)},'signal':_0x41a29e[_0x2b63fe(0x1cb)]});if(!_0x29a843['ok'])return null;const _0x22dbfb=await _0x29a843['json']();return _0x22dbfb&&typeof _0x22dbfb===_0x2b63fe(0x1d1)?_0x22dbfb:null;}catch{return null;}finally{clearTimeout(_0x4e43bc);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}function a308_0x5799(){const _0x5ece64=['minVersion','6870591CAuAmV','252718LfpdoU','2320dBSTWD','minimumVersion','cli','abort','5862vSbpRc','signal','recommendedVersion','270336aiqvOn','24cadwbd','minimumVersionMessage','trim','object','4556XEWhor','application/json','stableVersion','6180592TXyiGE','7178373KSwUil','string','length'];a308_0x5799=function(){return _0x5ece64;};return a308_0x5799();}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x519258=Date['now']();if(hasCachedConfig){const _0x112620=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x519258-cacheTime<_0x112620)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x519258,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a309_0x58f974=a309_0x2469;function a309_0xaa73(){const _0x3c72b5=['project','93861vEUHsm','7620652VycGHK','147ThTUSd','196lWhcwc','env','90072tzcvkT','5rwZFVZ','1390wSiBjO','55YjopVZ','3354684GGuwPN','136uNTpHp','14627VvPPfq','7459836okgVSJ','134556brGgyd'];a309_0xaa73=function(){return _0x3c72b5;};return a309_0xaa73();}(function(_0x25af4a,_0x29eed8){const _0x1d4066=a309_0x2469,_0x144c9f=_0x25af4a();while(!![]){try{const _0x2f1a5b=parseInt(_0x1d4066(0x1e3))/0x1*(-parseInt(_0x1d4066(0x1ea))/0x2)+-parseInt(_0x1d4066(0x1e5))/0x3*(-parseInt(_0x1d4066(0x1e2))/0x4)+-parseInt(_0x1d4066(0x1de))/0x5*(-parseInt(_0x1d4066(0x1e4))/0x6)+parseInt(_0x1d4066(0x1e9))/0x7*(parseInt(_0x1d4066(0x1dd))/0x8)+-parseInt(_0x1d4066(0x1e7))/0x9*(parseInt(_0x1d4066(0x1df))/0xa)+-parseInt(_0x1d4066(0x1e0))/0xb*(-parseInt(_0x1d4066(0x1e1))/0xc)+-parseInt(_0x1d4066(0x1e8))/0xd;if(_0x2f1a5b===_0x29eed8)break;else _0x144c9f['push'](_0x144c9f['shift']());}catch(_0xc43e83){_0x144c9f['push'](_0x144c9f['shift']());}}}(a309_0xaa73,0xe3d61));function a309_0x2469(_0x43384e,_0x35a3dd){_0x43384e=_0x43384e-0x1dd;const _0xaa7302=a309_0xaa73();let _0x246908=_0xaa7302[_0x43384e];return _0x246908;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a309_0x165d72,getMultiAppConfigs as a309_0x928b49,getTemplateBaseUrl as a309_0x142423}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x50318c){const _0x270bcf=a309_0x2469,_0x4df29f=readRawConfig(_0x50318c);return _0x4df29f[_0x270bcf(0x1eb)]&&typeof _0x4df29f[_0x270bcf(0x1eb)]==='string'&&initEnv(_0x4df29f['env']),_0x4df29f;}export function getConfigAppCode(){return a309_0x165d72();}export function getMultiAppConfigs(_0x1325df=a309_0x58f974(0x1e6)){return a309_0x928b49(_0x1325df);}export function getTemplateBaseUrl(){return a309_0x142423();}
1
+ (function(_0x17c4a0,_0xb97f00){const _0x5a7de7=a309_0x1bb3,_0x48671f=_0x17c4a0();while(!![]){try{const _0x31cee7=-parseInt(_0x5a7de7(0x1af))/0x1*(-parseInt(_0x5a7de7(0x1a2))/0x2)+parseInt(_0x5a7de7(0x1b0))/0x3*(parseInt(_0x5a7de7(0x1ae))/0x4)+parseInt(_0x5a7de7(0x1aa))/0x5*(parseInt(_0x5a7de7(0x1a8))/0x6)+parseInt(_0x5a7de7(0x1ad))/0x7+-parseInt(_0x5a7de7(0x1ab))/0x8*(-parseInt(_0x5a7de7(0x1a4))/0x9)+parseInt(_0x5a7de7(0x1a9))/0xa*(-parseInt(_0x5a7de7(0x1a3))/0xb)+-parseInt(_0x5a7de7(0x1a6))/0xc*(parseInt(_0x5a7de7(0x1a5))/0xd);if(_0x31cee7===_0xb97f00)break;else _0x48671f['push'](_0x48671f['shift']());}catch(_0x2bb2c9){_0x48671f['push'](_0x48671f['shift']());}}}(a309_0x14ee,0x3ec23));import{initEnv}from'../constant/env.js';function a309_0x1bb3(_0x2e4679,_0x22cad4){_0x2e4679=_0x2e4679-0x1a2;const _0x14ee7e=a309_0x14ee();let _0x1bb337=_0x14ee7e[_0x2e4679];return _0x1bb337;}import{readRawConfig,getConfigAppCode as a309_0x40e033,getMultiAppConfigs as a309_0x36ba9c,getTemplateBaseUrl as a309_0xf39cef}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4dcfdd){const _0x2c90f3=a309_0x1bb3,_0x5bb95d=readRawConfig(_0x4dcfdd);return _0x5bb95d[_0x2c90f3(0x1a7)]&&typeof _0x5bb95d[_0x2c90f3(0x1a7)]===_0x2c90f3(0x1ac)&&initEnv(_0x5bb95d['env']),_0x5bb95d;}export function getConfigAppCode(){return a309_0x40e033();}function a309_0x14ee(){const _0x3ad7b7=['1756896fLezum','string','107758xPGAWU','4pRasVb','37swmZLk','564843qbZNrs','21734vpqtjx','77lkoRRu','9gBBOOO','65dJYcIj','1740768IPyjws','env','976782IPEHbt','240830qxVzEZ','10BtVJjC'];a309_0x14ee=function(){return _0x3ad7b7;};return a309_0x14ee();}export function getMultiAppConfigs(_0x1350cb='project'){return a309_0x36ba9c(_0x1350cb);}export function getTemplateBaseUrl(){return a309_0xf39cef();}
@@ -1 +1 @@
1
- function a310_0x3f82(_0x564c7b,_0x3569de){_0x564c7b=_0x564c7b-0x1ea;const _0x3c79ae=a310_0x3c79();let _0x3f8278=_0x3c79ae[_0x564c7b];return _0x3f8278;}(function(_0x3dc661,_0x1e7ca6){const _0xb811ec=a310_0x3f82,_0x3c6197=_0x3dc661();while(!![]){try{const _0x496cf2=-parseInt(_0xb811ec(0x1eb))/0x1+-parseInt(_0xb811ec(0x1ed))/0x2+parseInt(_0xb811ec(0x1f4))/0x3*(parseInt(_0xb811ec(0x1ec))/0x4)+-parseInt(_0xb811ec(0x1ea))/0x5+-parseInt(_0xb811ec(0x1f6))/0x6*(parseInt(_0xb811ec(0x1f3))/0x7)+-parseInt(_0xb811ec(0x1f5))/0x8+-parseInt(_0xb811ec(0x1ee))/0x9*(-parseInt(_0xb811ec(0x1f0))/0xa);if(_0x496cf2===_0x1e7ca6)break;else _0x3c6197['push'](_0x3c6197['shift']());}catch(_0x58e4f2){_0x3c6197['push'](_0x3c6197['shift']());}}}(a310_0x3c79,0xe90e0));function a310_0x3c79(){const _0x219ffa=['12Fgpxqq','3790310wymoRp','1426204BVXiZX','2032HLRodB','3302840akkOBl','20187pRlNrg','string','18830rlwmBv','number','isFinite','510839Tjjusq','4998RviDFt','1069320HhSnAk'];a310_0x3c79=function(){return _0x219ffa;};return a310_0x3c79();}function toFiniteNumber(_0x216aa4){const _0x1c2409=a310_0x3f82;if(typeof _0x216aa4===_0x1c2409(0x1f1)&&Number[_0x1c2409(0x1f2)](_0x216aa4))return _0x216aa4;if(typeof _0x216aa4===_0x1c2409(0x1ef)){const _0x3984b2=_0x216aa4['trim']();if(!_0x3984b2)return undefined;const _0x588591=Number(_0x3984b2);if(Number[_0x1c2409(0x1f2)](_0x588591))return _0x588591;}return undefined;}export function normalizeEntityWithIdResponse(_0x688c03){const _0x2d03e4=toFiniteNumber(_0x688c03);if(_0x2d03e4!==undefined)return{'id':_0x2d03e4,'entity':{'id':_0x2d03e4}};if(!_0x688c03||typeof _0x688c03!=='object')return{'id':undefined,'entity':{}};const _0x46ae15={..._0x688c03},_0x4fb77a=toFiniteNumber(_0x46ae15['id']);return _0x4fb77a!==undefined&&(_0x46ae15['id']=_0x4fb77a),{'id':_0x4fb77a,'entity':_0x46ae15};}
1
+ (function(_0x54d917,_0x10a0cd){const _0x39f59d=a310_0x3a5e,_0x27bfe9=_0x54d917();while(!![]){try{const _0x3f0e67=parseInt(_0x39f59d(0x1ea))/0x1*(parseInt(_0x39f59d(0x1f0))/0x2)+-parseInt(_0x39f59d(0x1e8))/0x3+parseInt(_0x39f59d(0x1eb))/0x4*(parseInt(_0x39f59d(0x1f1))/0x5)+parseInt(_0x39f59d(0x1ed))/0x6+parseInt(_0x39f59d(0x1f4))/0x7+parseInt(_0x39f59d(0x1e9))/0x8+-parseInt(_0x39f59d(0x1f2))/0x9;if(_0x3f0e67===_0x10a0cd)break;else _0x27bfe9['push'](_0x27bfe9['shift']());}catch(_0x228c74){_0x27bfe9['push'](_0x27bfe9['shift']());}}}(a310_0x8f06,0xe435f));function toFiniteNumber(_0x1a3f1f){const _0x58a16c=a310_0x3a5e;if(typeof _0x1a3f1f===_0x58a16c(0x1ec)&&Number[_0x58a16c(0x1ee)](_0x1a3f1f))return _0x1a3f1f;if(typeof _0x1a3f1f===_0x58a16c(0x1e7)){const _0x3bc489=_0x1a3f1f[_0x58a16c(0x1f3)]();if(!_0x3bc489)return undefined;const _0x22a5c6=Number(_0x3bc489);if(Number[_0x58a16c(0x1ee)](_0x22a5c6))return _0x22a5c6;}return undefined;}function a310_0x8f06(){const _0x4c8fda=['216019RHkMQm','4hXarZW','number','9526284uyHClg','isFinite','object','2HLWHlf','5806475OWJskW','34871967lrQPJf','trim','5671911PKPVJQ','string','574845JMVIki','9805824KyBFiv'];a310_0x8f06=function(){return _0x4c8fda;};return a310_0x8f06();}function a310_0x3a5e(_0x29036,_0x3ed546){_0x29036=_0x29036-0x1e7;const _0x8f0692=a310_0x8f06();let _0x3a5e35=_0x8f0692[_0x29036];return _0x3a5e35;}export function normalizeEntityWithIdResponse(_0x295e0b){const _0x94c343=a310_0x3a5e,_0xe7e8f4=toFiniteNumber(_0x295e0b);if(_0xe7e8f4!==undefined)return{'id':_0xe7e8f4,'entity':{'id':_0xe7e8f4}};if(!_0x295e0b||typeof _0x295e0b!==_0x94c343(0x1ef))return{'id':undefined,'entity':{}};const _0x4fbe5d={..._0x295e0b},_0x102b1c=toFiniteNumber(_0x4fbe5d['id']);return _0x102b1c!==undefined&&(_0x4fbe5d['id']=_0x102b1c),{'id':_0x102b1c,'entity':_0x4fbe5d};}
@@ -1 +1 @@
1
- (function(_0x57b129,_0xac5db7){const _0x33be39=a311_0x16fb,_0x105eba=_0x57b129();while(!![]){try{const _0x13cf4f=-parseInt(_0x33be39(0xf6))/0x1*(-parseInt(_0x33be39(0xf2))/0x2)+parseInt(_0x33be39(0xf1))/0x3+parseInt(_0x33be39(0xef))/0x4+parseInt(_0x33be39(0xf0))/0x5*(-parseInt(_0x33be39(0xf5))/0x6)+parseInt(_0x33be39(0xf3))/0x7*(parseInt(_0x33be39(0xf4))/0x8)+parseInt(_0x33be39(0xf7))/0x9*(-parseInt(_0x33be39(0xed))/0xa)+-parseInt(_0x33be39(0xf8))/0xb*(parseInt(_0x33be39(0xee))/0xc);if(_0x13cf4f===_0xac5db7)break;else _0x105eba['push'](_0x105eba['shift']());}catch(_0x589d23){_0x105eba['push'](_0x105eba['shift']());}}}(a311_0x16c1,0xc0f18));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a311_0x16c1(){const _0x55d093=['50OTXAnL','2790672ltoZUD','10AcVOYI','217JAwraa','108504YpQiSz','763380uVRoMW','109093AaZQXx','164268nleXvV','2239391IMUHGh','500iBXSkU','12LYLHvO','5130540SFsLHY'];a311_0x16c1=function(){return _0x55d093;};return a311_0x16c1();}import{join}from'node:path';function a311_0x16fb(_0x5834dc,_0x58b3c6){_0x5834dc=_0x5834dc-0xed;const _0x16c1ff=a311_0x16c1();let _0x16fb6d=_0x16c1ff[_0x5834dc];return _0x16fb6d;}export async function copyDir(_0x9d1b59,_0x788417){const _0x19ef05=statSync(_0x9d1b59);if(_0x19ef05['isDirectory']()){!existsSync(_0x788417)&&mkdirSync(_0x788417,{'recursive':!![]});const _0x4d8fed=readdirSync(_0x9d1b59);for(const _0x2c371e of _0x4d8fed){await copyDir(join(_0x9d1b59,_0x2c371e),join(_0x788417,_0x2c371e));}}else copyFileSync(_0x9d1b59,_0x788417);}export function ensureDir(_0x2e162e){!existsSync(_0x2e162e)&&mkdirSync(_0x2e162e,{'recursive':!![]});}export function pathExists(_0x360a14){return existsSync(_0x360a14);}
1
+ (function(_0x337ade,_0x1f5146){const _0x50046b=a311_0x45a9,_0x416b07=_0x337ade();while(!![]){try{const _0x5b2e68=parseInt(_0x50046b(0xc8))/0x1+-parseInt(_0x50046b(0xd0))/0x2+-parseInt(_0x50046b(0xca))/0x3+parseInt(_0x50046b(0xc9))/0x4*(-parseInt(_0x50046b(0xcb))/0x5)+parseInt(_0x50046b(0xcf))/0x6*(-parseInt(_0x50046b(0xcd))/0x7)+-parseInt(_0x50046b(0xcc))/0x8*(-parseInt(_0x50046b(0xce))/0x9)+parseInt(_0x50046b(0xd1))/0xa;if(_0x5b2e68===_0x1f5146)break;else _0x416b07['push'](_0x416b07['shift']());}catch(_0x5cf586){_0x416b07['push'](_0x416b07['shift']());}}}(a311_0x3838,0x427d4));function a311_0x45a9(_0x2515cb,_0x177818){_0x2515cb=_0x2515cb-0xc8;const _0x383885=a311_0x3838();let _0x45a9e9=_0x383885[_0x2515cb];return _0x45a9e9;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x9ae750,_0x517ed5){const _0x155b68=statSync(_0x9ae750);if(_0x155b68['isDirectory']()){!existsSync(_0x517ed5)&&mkdirSync(_0x517ed5,{'recursive':!![]});const _0x59c0e5=readdirSync(_0x9ae750);for(const _0x257818 of _0x59c0e5){await copyDir(join(_0x9ae750,_0x257818),join(_0x517ed5,_0x257818));}}else copyFileSync(_0x9ae750,_0x517ed5);}export function ensureDir(_0x50a8af){!existsSync(_0x50a8af)&&mkdirSync(_0x50a8af,{'recursive':!![]});}function a311_0x3838(){const _0x4f129f=['718696FKJMvz','10677870CTwAqj','88178FHXZeL','1025884HwlURF','69000oWyrqd','10bLRlME','184cgyaoZ','119UQeOIJ','208773VbOWLV','184188GyGQLe'];a311_0x3838=function(){return _0x4f129f;};return a311_0x3838();}export function pathExists(_0x2b36d1){return existsSync(_0x2b36d1);}
@@ -1 +1 @@
1
- const a312_0x2145ef=a312_0xec9c;(function(_0x4540bb,_0x51fe0b){const _0x232fb9=a312_0xec9c,_0xf690cc=_0x4540bb();while(!![]){try{const _0x445ce2=-parseInt(_0x232fb9(0x1c8))/0x1+-parseInt(_0x232fb9(0x1ce))/0x2*(parseInt(_0x232fb9(0x1c1))/0x3)+-parseInt(_0x232fb9(0x1c5))/0x4*(parseInt(_0x232fb9(0x1ca))/0x5)+parseInt(_0x232fb9(0x1c7))/0x6*(-parseInt(_0x232fb9(0x1d9))/0x7)+-parseInt(_0x232fb9(0x1e0))/0x8*(-parseInt(_0x232fb9(0x1cb))/0x9)+-parseInt(_0x232fb9(0x1d0))/0xa*(-parseInt(_0x232fb9(0x1db))/0xb)+parseInt(_0x232fb9(0x1e4))/0xc;if(_0x445ce2===_0x51fe0b)break;else _0xf690cc['push'](_0xf690cc['shift']());}catch(_0x2f2c0d){_0xf690cc['push'](_0xf690cc['shift']());}}}(a312_0x3ddf,0x30954));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 _0xce83d8=a312_0xec9c,_0x2ca3d6=getTemplateBaseUrl();return _0x2ca3d6+_0xce83d8(0x1c3);}const CACHE_DIR=join(homedir(),a312_0x2145ef(0x1d2),a312_0x2145ef(0x1dd));export async function fetchGuidesFromCDN(){const _0x4c9a43=a312_0x2145ef,_0x41fc57=getGuidesCdnUrl(),_0x2a044d=await fetch(_0x41fc57,{'headers':{'Accept':_0x4c9a43(0x1d3)}});if(!_0x2a044d['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x2a044d[_0x4c9a43(0x1bf)]+'\x20'+_0x2a044d[_0x4c9a43(0x1d5)]);const _0x47e35a=await _0x2a044d[_0x4c9a43(0x1cc)]();if(!_0x47e35a[_0x4c9a43(0x1c4)]||typeof _0x47e35a[_0x4c9a43(0x1c4)]!==_0x4c9a43(0x1da))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x47e35a;}function a312_0x3ddf(){const _0x480034=['extendContent','320028ajQfzK','49445eRsruW','utf-8','330985EYqSQb','34443qYVpWH','json','lastUpdated','585232xDwZkb','entries','2131430TqvZrx','skillTemplate','.lovrabet','application/json','path','statusText','title','.lovrabet/skill/guides','join','28XLTKcj','object','11LxCznI','replace','cache','\x0a\x0a>更新时间:','content','72vRLyAs','CDN\x20data\x20is\x20missing\x20skillTemplate','map','length','7670604ZqmbKq','trimEnd','status','push','3TvkzGh','keys','/skills/guides.json','guides','8dZdZlR'];a312_0x3ddf=function(){return _0x480034;};return a312_0x3ddf();}export function writeGuidesToProject(_0x402ab1,_0x490954,_0x5090af=a312_0x2145ef(0x1d7),_0x306054){const _0x59fdb3=a312_0x2145ef,_0x4199d6=join(_0x490954,_0x5090af);mkdirSync(_0x4199d6,{'recursive':!![]});for(const [_0x49e9c5,_0x37cbd8]of Object[_0x59fdb3(0x1cf)](_0x402ab1['guides'])){let _0x10a1b6=_0x37cbd8['content'];_0x37cbd8[_0x59fdb3(0x1cd)]&&(_0x10a1b6=appendUpdateTime(_0x10a1b6,_0x37cbd8[_0x59fdb3(0x1cd)])),writeFileSync(join(_0x4199d6,_0x49e9c5+'.md'),_0x10a1b6,'utf-8');}}function a312_0xec9c(_0xe45a99,_0x471620){_0xe45a99=_0xe45a99-0x1be;const _0x3ddf08=a312_0x3ddf();let _0xec9c20=_0x3ddf08[_0xe45a99];return _0xec9c20;}export function appendUpdateTime(_0x3bc8ef,_0x3ffaff){const _0x1bc2fb=a312_0x2145ef;return _0x3bc8ef=_0x3bc8ef[_0x1bc2fb(0x1dc)](/\n*>更新时间:.*$/m,''),_0x3bc8ef[_0x1bc2fb(0x1be)]()+(_0x1bc2fb(0x1de)+_0x3ffaff);}export function getSkillTemplate(_0x5bae2c){const _0x2e46b0=a312_0x2145ef;return _0x5bae2c[_0x2e46b0(0x1d1)]?.[_0x2e46b0(0x1df)]||'';}export function appendExtendContents(_0x55aef0,_0x208ddb,_0x4616f1){const _0x5e1c9c=a312_0x2145ef,_0x482e4f=[];for(const [,_0x270a6f]of Object[_0x5e1c9c(0x1cf)](_0x208ddb['guides'])){_0x270a6f[_0x5e1c9c(0x1c6)]&&_0x482e4f[_0x5e1c9c(0x1c0)](_0x270a6f['extendContent'][_0x5e1c9c(0x1be)]());}if(_0x482e4f[_0x5e1c9c(0x1e3)]===0x0)return _0x55aef0;return _0x55aef0[_0x5e1c9c(0x1be)]()+'\x0a\x0a'+_0x482e4f[_0x5e1c9c(0x1d8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xc84865,_0x48c32b,_0x5794a6){const _0x4b3faf=a312_0x2145ef,_0x5b58c0=getSkillTemplate(_0xc84865);if(!_0x5b58c0)throw new Error(_0x4b3faf(0x1e1));const _0x1e9628=dirname(_0x48c32b);mkdirSync(_0x1e9628,{'recursive':!![]});let _0x4e0895=_0x5b58c0[_0x4b3faf(0x1dc)](/\{\{IDE_NAME\}\}/g,_0x5794a6);_0x4e0895=appendExtendContents(_0x4e0895,_0xc84865),_0xc84865[_0x4b3faf(0x1d1)]['lastUpdated']&&(_0x4e0895=appendUpdateTime(_0x4e0895,_0xc84865[_0x4b3faf(0x1d1)][_0x4b3faf(0x1cd)])),writeFileSync(_0x48c32b,_0x4e0895,_0x4b3faf(0x1c9));}export async function installGuides(_0x38ced4){const _0x374358=a312_0x2145ef,_0xe8bc7=await fetchGuidesFromCDN();return writeGuidesToProject(_0xe8bc7,_0x38ced4),Object[_0x374358(0x1c2)](_0xe8bc7[_0x374358(0x1c4)])['length'];}export function getGuidesSummary(_0x332989){const _0x34e9b9=a312_0x2145ef;return Object[_0x34e9b9(0x1cf)](_0x332989[_0x34e9b9(0x1c4)])[_0x34e9b9(0x1e2)](([_0x5c96fa,_0x2094fc])=>({'key':_0x5c96fa,'title':_0x2094fc[_0x34e9b9(0x1d6)],'path':_0x2094fc[_0x34e9b9(0x1d4)]}));}
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_0x2fef(){const _0x428ec2=['17910ZsHFEN','fetch','headers','30236eSQEkn','url','ENOTFOUND','status','statusText','AbortError','abort','22337EgbMQV','Request\x20failed','log','application/json','TypeError','980046eSUzXl','262026dSBciw','312QtuHTV','1042554OTHquM','2jwFdSj','json','920fcwKkf','150nafkUo','75251ZZDgZL','message','includes','signal','content-type','\x20in\x20','get','text','*\x20Request\x20failed;\x20retry\x20','name','25swBTaS'];a313_0x2fef=function(){return _0x428ec2;};return a313_0x2fef();}(function(_0x11cc9c,_0x262a7c){const _0x390073=a313_0x4a9b,_0x154080=_0x11cc9c();while(!![]){try{const _0x2c0e59=-parseInt(_0x390073(0x16f))/0x1*(-parseInt(_0x390073(0x172))/0x2)+parseInt(_0x390073(0x171))/0x3+-parseInt(_0x390073(0x184))/0x4*(parseInt(_0x390073(0x180))/0x5)+-parseInt(_0x390073(0x16e))/0x6+parseInt(_0x390073(0x18b))/0x7*(-parseInt(_0x390073(0x174))/0x8)+-parseInt(_0x390073(0x181))/0x9*(parseInt(_0x390073(0x175))/0xa)+parseInt(_0x390073(0x176))/0xb*(parseInt(_0x390073(0x170))/0xc);if(_0x2c0e59===_0x262a7c)break;else _0x154080['push'](_0x154080['shift']());}catch(_0x325899){_0x154080['push'](_0x154080['shift']());}}}(a313_0x2fef,0x2e413));function a313_0x4a9b(_0x47d2fa,_0x41c1b9){_0x47d2fa=_0x47d2fa-0x16d;const _0x2fef9b=a313_0x2fef();let _0x4a9b03=_0x2fef9b[_0x47d2fa];return _0x4a9b03;}export async function httpRequest(_0x76d284,_0x18bf57={}){const _0x43a87c=a313_0x4a9b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x18bf57;let _0xf56028=null;for(let _0x3bce6f=0x0;_0x3bce6f<=retries;_0x3bce6f++){try{const _0x1936d3=new AbortController(),_0x3bc0ef=setTimeout(()=>_0x1936d3[_0x43a87c(0x18a)](),timeout),_0xcffb4d=await fetch(_0x76d284,{'headers':headers,'signal':_0x1936d3[_0x43a87c(0x179)]});clearTimeout(_0x3bc0ef);let _0x515c0a;const _0x1e7821=_0xcffb4d['headers'][_0x43a87c(0x17c)](_0x43a87c(0x17a));return _0x1e7821?.['includes'](_0x43a87c(0x18e))?_0x515c0a=await _0xcffb4d[_0x43a87c(0x173)]():_0x515c0a=await _0xcffb4d[_0x43a87c(0x17d)](),{'ok':_0xcffb4d['ok'],'status':_0xcffb4d[_0x43a87c(0x187)],'statusText':_0xcffb4d[_0x43a87c(0x188)],'data':_0x515c0a,'headers':_0xcffb4d[_0x43a87c(0x183)],'url':_0xcffb4d[_0x43a87c(0x185)],'text':()=>_0xcffb4d[_0x43a87c(0x17d)]()};}catch(_0x2e388d){_0xf56028=_0x2e388d instanceof Error?_0x2e388d:new Error(String(_0x2e388d));if(_0x3bce6f===retries)break;if(shouldRetry(_0x2e388d)){console[_0x43a87c(0x18d)](_0x43a87c(0x17e)+(_0x3bce6f+0x1)+_0x43a87c(0x17b)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0xf56028||new Error(_0x43a87c(0x18c));}function shouldRetry(_0x96be50){const _0x576922=a313_0x4a9b;if(_0x96be50 instanceof Error){if(_0x96be50[_0x576922(0x17f)]===_0x576922(0x189))return![];if(_0x96be50[_0x576922(0x17f)]===_0x576922(0x16d)&&_0x96be50[_0x576922(0x177)][_0x576922(0x178)](_0x576922(0x182)))return!![];if(_0x96be50[_0x576922(0x177)][_0x576922(0x178)]('ECONNRESET'))return!![];if(_0x96be50[_0x576922(0x177)]['includes'](_0x576922(0x186)))return![];}return![];}function sleep(_0x339c7d){return new Promise(_0x19e3e7=>setTimeout(_0x19e3e7,_0x339c7d));}export function validateUrl(_0x25e8cc){try{return new URL(_0x25e8cc),!![];}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(_0x162a47,_0xac81e9){const _0x3a0f30=a314_0x3896,_0x336eb1=_0x162a47();while(!![]){try{const _0x471f8a=parseInt(_0x3a0f30(0x7f))/0x1+parseInt(_0x3a0f30(0x7a))/0x2*(-parseInt(_0x3a0f30(0x71))/0x3)+-parseInt(_0x3a0f30(0x79))/0x4+parseInt(_0x3a0f30(0x76))/0x5*(-parseInt(_0x3a0f30(0x74))/0x6)+-parseInt(_0x3a0f30(0x7e))/0x7*(parseInt(_0x3a0f30(0x73))/0x8)+parseInt(_0x3a0f30(0x77))/0x9+-parseInt(_0x3a0f30(0x75))/0xa*(-parseInt(_0x3a0f30(0x7c))/0xb);if(_0x471f8a===_0xac81e9)break;else _0x336eb1['push'](_0x336eb1['shift']());}catch(_0x4d8b88){_0x336eb1['push'](_0x336eb1['shift']());}}}(a314_0x3534,0x41f68));function env(_0x196bc5){return process.env[`RABETBASE_${_0x196bc5}`]||process.env[`LOVRABET_${_0x196bc5}`]||undefined;}export function isNonInteractive(_0x155170){const _0x335e4e=a314_0x3896;return!!(_0x155170[_0x335e4e(0x80)]||_0x155170['ci']||env('CI')===_0x335e4e(0x6f)||process.env.CI===_0x335e4e(0x6f)||!process[_0x335e4e(0x78)][_0x335e4e(0x72)]||!isStdinRawModeSupported());}function a314_0x3534(){const _0x7be9d0=['stdin','3NTmZDM','isTTY','9896nLKunO','6kBassS','4992670RxPWFe','785830qivgcF','3421098PFvxNZ','stdout','599532nMHYJC','1069204uqoiIN','isRaw','22hUQPwy','setRawMode','2086tPDGBy','101805XJbdTj','nonInteractive','true'];a314_0x3534=function(){return _0x7be9d0;};return a314_0x3534();}function a314_0x3896(_0x58f3c5,_0x4ad4e7){_0x58f3c5=_0x58f3c5-0x6f;const _0x353437=a314_0x3534();let _0x3896bc=_0x353437[_0x58f3c5];return _0x3896bc;}function isStdinRawModeSupported(){const _0x5b4726=a314_0x3896;if(!process[_0x5b4726(0x70)][_0x5b4726(0x72)])return![];try{const _0xcd9986=process[_0x5b4726(0x70)][_0x5b4726(0x7b)];return process[_0x5b4726(0x70)][_0x5b4726(0x7d)](!![]),process[_0x5b4726(0x70)]['setRawMode'](_0xcd9986??![]),!![];}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
- const a315_0xcfeb82=a315_0x3e7d;(function(_0x4af04a,_0x2b5e83){const _0x260096=a315_0x3e7d,_0x21c756=_0x4af04a();while(!![]){try{const _0x45e3aa=-parseInt(_0x260096(0x1fa))/0x1*(-parseInt(_0x260096(0x1e6))/0x2)+-parseInt(_0x260096(0x1de))/0x3*(-parseInt(_0x260096(0x20f))/0x4)+parseInt(_0x260096(0x203))/0x5+parseInt(_0x260096(0x1e4))/0x6*(parseInt(_0x260096(0x1fc))/0x7)+-parseInt(_0x260096(0x1f9))/0x8+parseInt(_0x260096(0x1ea))/0x9+-parseInt(_0x260096(0x1e3))/0xa*(parseInt(_0x260096(0x210))/0xb);if(_0x45e3aa===_0x2b5e83)break;else _0x21c756['push'](_0x21c756['shift']());}catch(_0x1b3a25){_0x21c756['push'](_0x21c756['shift']());}}}(a315_0x2581,0xe51d8));import a315_0x43a6d3 from'winston';function a315_0x3e7d(_0x5c30f2,_0x5e0d64){_0x5c30f2=_0x5c30f2-0x1db;const _0x258128=a315_0x2581();let _0x3e7d8d=_0x258128[_0x5c30f2];return _0x3e7d8d;}import a315_0x41ffe8 from'node:fs';import a315_0x42a014 from'node:path';class Logger{[a315_0xcfeb82(0x1fd)];['logFilePath'];[a315_0xcfeb82(0x204)]='';constructor(){const _0xa02300=a315_0xcfeb82;this[_0xa02300(0x1f7)]='';}['setRawCommand'](_0x6dadb){const _0x1299df=a315_0xcfeb82;this[_0x1299df(0x204)]=_0x6dadb;}[a315_0xcfeb82(0x1ec)](){const _0xe5b12a=a315_0xcfeb82,_0xf549d5=a315_0x42a014['dirname'](this['logFilePath']);!a315_0x41ffe8[_0xe5b12a(0x1f0)](_0xf549d5)&&a315_0x41ffe8[_0xe5b12a(0x1eb)](_0xf549d5,{'recursive':!![]});const _0x4aab39=a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x1e1)](a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x202)](),a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x1ff)]({'stack':!![]}),a315_0x43a6d3[_0xe5b12a(0x1dc)]['printf'](_0x22033c=>{const _0x15487a=_0xe5b12a,_0x200832={'timestamp':_0x22033c[_0x15487a(0x202)]||new Date()[_0x15487a(0x201)](),'level':_0x22033c[_0x15487a(0x1fb)]||_0x15487a(0x208),'command':_0x22033c[_0x15487a(0x207)]||_0x15487a(0x1e9),'rawCommand':_0x22033c[_0x15487a(0x1fe)]||this[_0x15487a(0x204)]||undefined,'message':_0x22033c[_0x15487a(0x206)]||'','duration':_0x22033c[_0x15487a(0x1dd)]||undefined,'details':_0x22033c[_0x15487a(0x212)]||undefined};return JSON[_0x15487a(0x20a)](_0x200832);}));this[_0xe5b12a(0x1fd)]=a315_0x43a6d3[_0xe5b12a(0x1f1)]({'level':_0xe5b12a(0x208),'format':_0x4aab39,'transports':[new a315_0x43a6d3[(_0xe5b12a(0x1e2))]['File']({'filename':this[_0xe5b12a(0x1f7)],'level':_0xe5b12a(0x208)})],'silent':![]}),a315_0x43a6d3[_0xe5b12a(0x1f2)]({'success':_0xe5b12a(0x209),'error':_0xe5b12a(0x1db),'warn':'yellow','info':'blue'});}[a315_0xcfeb82(0x1ee)](_0x40aeee){const _0x4d118a=a315_0xcfeb82;this[_0x4d118a(0x1f7)]=a315_0x42a014['join'](_0x40aeee,_0x4d118a(0x205)),this['winstonLogger']&&this[_0x4d118a(0x1fd)][_0x4d118a(0x1f6)](),this[_0x4d118a(0x1ec)]();}[a315_0xcfeb82(0x208)](_0x288022,_0x5555fa,_0x5c1acd){const _0x5bbde0=a315_0xcfeb82;if(!this[_0x5bbde0(0x1f7)]||!this[_0x5bbde0(0x1fd)])return;this[_0x5bbde0(0x1fd)]['info'](_0x5555fa,{'command':_0x288022,'details':_0x5c1acd});}[a315_0xcfeb82(0x20c)](_0x17487e,_0x45433c,_0x3eb15f,_0x3348d9){const _0xaaf314=a315_0xcfeb82;if(!this[_0xaaf314(0x1f7)]||!this['winstonLogger'])return;this['winstonLogger'][_0xaaf314(0x1e7)](_0xaaf314(0x208),_0x45433c,{'level':_0xaaf314(0x20c),'command':_0x17487e,'duration':_0x3eb15f,'details':_0x3348d9});}['error'](_0x1e8e95,_0x5594b6,_0x3cdee0){const _0x45d220=a315_0xcfeb82;if(!this[_0x45d220(0x1f7)]||!this[_0x45d220(0x1fd)])return;this[_0x45d220(0x1fd)]['error'](_0x5594b6,{'command':_0x1e8e95,'details':_0x3cdee0});}[a315_0xcfeb82(0x1f8)](_0x44230e,_0x502eda,_0x27b5ce){const _0x40fc39=a315_0xcfeb82;if(!this['logFilePath']||!this[_0x40fc39(0x1fd)])return;this['winstonLogger'][_0x40fc39(0x1f8)](_0x502eda,{'command':_0x44230e,'details':_0x27b5ce});}async['logTask'](_0x32908f,_0x58b44d,_0x548e2d){const _0x182bfc=a315_0xcfeb82,_0x3b7bb9=Date[_0x182bfc(0x1f4)]();this[_0x182bfc(0x208)](_0x32908f,'Starting:\x20'+_0x58b44d);try{const _0x3e8e9b=await _0x548e2d(),_0xd88107=Date[_0x182bfc(0x1f4)]()-_0x3b7bb9;return this[_0x182bfc(0x20c)](_0x32908f,_0x182bfc(0x1ed)+_0x58b44d,_0xd88107),_0x3e8e9b;}catch(_0x55d9f9){const _0x4a8164=Date['now']()-_0x3b7bb9;this[_0x182bfc(0x213)](_0x32908f,_0x182bfc(0x1f5)+_0x58b44d,{'error':_0x55d9f9 instanceof Error?_0x55d9f9[_0x182bfc(0x206)]:String(_0x55d9f9),'duration':_0x4a8164});throw _0x55d9f9;}}[a315_0xcfeb82(0x1ef)](){const _0x5e66fa=a315_0xcfeb82;try{if(!a315_0x41ffe8[_0x5e66fa(0x1f0)](this['logFilePath']))return[];const _0xa4c44e=a315_0x41ffe8[_0x5e66fa(0x20d)](this['logFilePath'],_0x5e66fa(0x211));return _0xa4c44e[_0x5e66fa(0x1e5)]('\x0a')[_0x5e66fa(0x200)](_0x31c072=>_0x31c072[_0x5e66fa(0x1df)]())[_0x5e66fa(0x1f3)](_0x4b3a45=>JSON[_0x5e66fa(0x20b)](_0x4b3a45));}catch(_0x10b3fa){return console[_0x5e66fa(0x1f8)](_0x5e66fa(0x1e8),_0x10b3fa),[];}}['clearLogs'](){const _0x5eb2e8=a315_0xcfeb82;try{a315_0x41ffe8[_0x5eb2e8(0x1f0)](this[_0x5eb2e8(0x1f7)])&&a315_0x41ffe8[_0x5eb2e8(0x1e0)](this[_0x5eb2e8(0x1f7)],'',_0x5eb2e8(0x211));}catch(_0x31dbac){console['warn'](_0x5eb2e8(0x20e),_0x31dbac);}}['getWinstonInstance'](){const _0x2d30f3=a315_0xcfeb82;return this[_0x2d30f3(0x1fd)];}}export const logger=new Logger();function a315_0x2581(){const _0x2c12a4=['16313NtwEYn','utf8','details','error','red','format','duration','15ahxMmr','trim','writeFileSync','combine','transports','19670mkHnEB','300sQRrIb','split','10VUJqRK','log','Failed\x20to\x20read\x20logs:','unknown','8828784AlDAGO','mkdirSync','initWinstonLogger','Completed:\x20','setLogPath','readLogs','existsSync','createLogger','addColors','map','now','Failed:\x20','clear','logFilePath','warn','8157024sRAeQA','35518TBSqiw','level','40075NavkmZ','winstonLogger','rawCommand','errors','filter','toISOString','timestamp','8749270NbdEog','currentRawCommand','.lovrabet.log','message','command','info','green','stringify','parse','success','readFileSync','Failed\x20to\x20clear\x20logs:','1344380nxuLmy'];a315_0x2581=function(){return _0x2c12a4;};return a315_0x2581();}
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 a316_0x106a(_0x571aaa,_0x2cc838){_0x571aaa=_0x571aaa-0x15a;const _0x2d4bbf=a316_0x2d4b();let _0x106a8d=_0x2d4bbf[_0x571aaa];return _0x106a8d;}(function(_0x295a86,_0x2915e4){const _0x131a79=a316_0x106a,_0x15c8cb=_0x295a86();while(!![]){try{const _0x2d7ec6=parseInt(_0x131a79(0x163))/0x1*(parseInt(_0x131a79(0x15e))/0x2)+-parseInt(_0x131a79(0x165))/0x3*(parseInt(_0x131a79(0x166))/0x4)+parseInt(_0x131a79(0x15d))/0x5+-parseInt(_0x131a79(0x15c))/0x6+-parseInt(_0x131a79(0x167))/0x7+-parseInt(_0x131a79(0x160))/0x8+parseInt(_0x131a79(0x15f))/0x9*(parseInt(_0x131a79(0x15b))/0xa);if(_0x2d7ec6===_0x2915e4)break;else _0x15c8cb['push'](_0x15c8cb['shift']());}catch(_0x295b46){_0x15c8cb['push'](_0x15c8cb['shift']());}}}(a316_0x2d4b,0xb11b5));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2dd3b2){const _0x4960bd=a316_0x106a;if(!_0x2dd3b2)return undefined;let _0x1f0d85;try{_0x1f0d85=JSON['parse'](_0x2dd3b2);}catch{throw CliErrors[_0x4960bd(0x15a)](_0x4960bd(0x161)+_0x2dd3b2);}if(!_0x1f0d85||typeof _0x1f0d85!==_0x4960bd(0x162)||Array['isArray'](_0x1f0d85))throw CliErrors[_0x4960bd(0x15a)](_0x4960bd(0x168),_0x4960bd(0x164));return _0x1f0d85;}function a316_0x2d4b(){const _0xf23245=['11546152bvUOOT','Invalid\x20JSON\x20for\x20--params:\x20','object','1TQYbrP','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','33twGjgR','296124ROjTmN','2937200cSxoCl','--params\x20must\x20be\x20a\x20JSON\x20object','validation','1730niQsUS','43806JQyurL','4403375zoGSdS','2647948osfcJj','62703nVDrjT'];a316_0x2d4b=function(){return _0xf23245;};return a316_0x2d4b();}
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
- function a317_0x4a29(){const _0x4896d0=['platform','20XTHApQ','5kNtAZp','696441zzHXVo','127860iHpfXF','66SLWQMW','7417509luTnQg','3764646BpzvGl','2170875vqVEbX','3161637mUcKve','.cmd','win32','8BrleqO','491666yaLQKr'];a317_0x4a29=function(){return _0x4896d0;};return a317_0x4a29();}const a317_0xe6256a=a317_0x2d34;(function(_0x23ca9d,_0x4c7c6d){const _0x294ed8=a317_0x2d34,_0x3cb5c6=_0x23ca9d();while(!![]){try{const _0x5382d3=parseInt(_0x294ed8(0x115))/0x1+-parseInt(_0x294ed8(0x111))/0x2+-parseInt(_0x294ed8(0x117))/0x3*(parseInt(_0x294ed8(0x116))/0x4)+parseInt(_0x294ed8(0x114))/0x5*(-parseInt(_0x294ed8(0x119))/0x6)+parseInt(_0x294ed8(0x11a))/0x7+parseInt(_0x294ed8(0x110))/0x8*(-parseInt(_0x294ed8(0x10d))/0x9)+parseInt(_0x294ed8(0x113))/0xa*(parseInt(_0x294ed8(0x118))/0xb);if(_0x5382d3===_0x4c7c6d)break;else _0x3cb5c6['push'](_0x3cb5c6['shift']());}catch(_0x571d7c){_0x3cb5c6['push'](_0x3cb5c6['shift']());}}}(a317_0x4a29,0x6858f));function a317_0x2d34(_0x1d29f1,_0x56bec8){_0x1d29f1=_0x1d29f1-0x10d;const _0x4a29f5=a317_0x4a29();let _0x2d3469=_0x4a29f5[_0x1d29f1];return _0x2d3469;}export const isWindows=process[a317_0xe6256a(0x112)]===a317_0xe6256a(0x10f);export function resolveNpmBin(_0x3717fc){const _0x38094c=a317_0xe6256a;return isWindows?_0x3717fc+_0x38094c(0x10e):_0x3717fc;}
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(_0x3e4ed5){return new Promise(_0x23638e=>setTimeout(_0x23638e,_0x3e4ed5));}
1
+ export function sleep(_0x4d9f2c){return new Promise(_0x475e71=>setTimeout(_0x475e71,_0x4d9f2c));}
@@ -1 +1 @@
1
- const a319_0x1af683=a319_0x4942;(function(_0x11990b,_0x119d67){const _0x5caa7c=a319_0x4942,_0x212899=_0x11990b();while(!![]){try{const _0x3d3c37=-parseInt(_0x5caa7c(0x1d2))/0x1+parseInt(_0x5caa7c(0x1e2))/0x2+parseInt(_0x5caa7c(0x1d0))/0x3*(-parseInt(_0x5caa7c(0x1f1))/0x4)+-parseInt(_0x5caa7c(0x1ef))/0x5*(parseInt(_0x5caa7c(0x1dd))/0x6)+parseInt(_0x5caa7c(0x1e4))/0x7*(-parseInt(_0x5caa7c(0x1cf))/0x8)+parseInt(_0x5caa7c(0x1e3))/0x9*(parseInt(_0x5caa7c(0x1e9))/0xa)+parseInt(_0x5caa7c(0x1cd))/0xb*(parseInt(_0x5caa7c(0x1ff))/0xc);if(_0x3d3c37===_0x119d67)break;else _0x212899['push'](_0x212899['shift']());}catch(_0x103564){_0x212899['push'](_0x212899['shift']());}}}(a319_0x2ba7,0x28ad2));import a319_0xa8f962 from'node:fs';import a319_0x22e31c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a319_0x4942(_0x5298d3,_0x5d824c){_0x5298d3=_0x5298d3-0x1b8;const _0x2ba7d2=a319_0x2ba7();let _0x49422e=_0x2ba7d2[_0x5298d3];return _0x49422e;}export class TemplateReplacer{static[a319_0x1af683(0x1d1)](_0xb9be77){const _0x575a53=a319_0x1af683;return String(_0xb9be77)[_0x575a53(0x1da)](0x2,'0');}static[a319_0x1af683(0x1d8)](_0x2721ec){const _0x4e9817=a319_0x1af683,_0x3ecd06=_0x2721ec[_0x4e9817(0x1e1)](),_0x1ba46a=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1bc)]()+0x1),_0x13804f=this['pad'](_0x2721ec[_0x4e9817(0x1f6)]()),_0x2425cd=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1df)]()),_0x401167=this[_0x4e9817(0x1d1)](_0x2721ec['getMinutes']()),_0x4e4512=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1fa)]());return{'createdAt':_0x3ecd06+'-'+_0x1ba46a+'-'+_0x13804f+'\x20'+_0x2425cd+':'+_0x401167+':'+_0x4e4512,'createdDate':_0x3ecd06+'-'+_0x1ba46a+'-'+_0x13804f,'createdTime':_0x2425cd+':'+_0x401167+':'+_0x4e4512};}static[a319_0x1af683(0x1d5)](_0x33c3b9){const _0x27c1a6=a319_0x1af683,_0x2d6290=_0x33c3b9[_0x27c1a6(0x1c5)]('/')[_0x27c1a6(0x1e6)]()||_0x33c3b9;return _0x2d6290[_0x27c1a6(0x1c5)]('-')[_0x27c1a6(0x1c9)](_0x527e67=>_0x527e67['charAt'](0x0)[_0x27c1a6(0x1c4)]()+_0x527e67['slice'](0x1)[_0x27c1a6(0x1d6)]())[_0x27c1a6(0x1c1)]('');}static[a319_0x1af683(0x1c6)](_0x507a54){const _0x30b2e8=a319_0x1af683,_0xa7521f=_0x507a54[_0x30b2e8(0x1c5)]('/')[_0x30b2e8(0x1e6)]()||_0x507a54;return _0xa7521f['split']('-')[_0x30b2e8(0x1c9)](_0x231c5c=>_0x231c5c[_0x30b2e8(0x1c3)](0x0)['toUpperCase']()+_0x231c5c[_0x30b2e8(0x1c2)](0x1)[_0x30b2e8(0x1d6)]())[_0x30b2e8(0x1c1)]('\x20');}static[a319_0x1af683(0x1e8)](_0x5f5b43,_0x36e154,_0x437fd8){const _0x45aeba=a319_0x1af683,_0x4ccb21=this[_0x45aeba(0x1d5)](_0x36e154),_0xc350af=this[_0x45aeba(0x1c6)](_0x36e154),{createdAt:_0x486e1c,createdDate:_0x264693,createdTime:_0x5dc067}=this[_0x45aeba(0x1d8)](new Date());let _0x4d35e3=_0x5f5b43[_0x45aeba(0x1ee)](/\{CliVersion\}/g,CLI_VERSION)[_0x45aeba(0x1ee)](/\{ComponentName\}/g,_0x4ccb21)[_0x45aeba(0x1ee)](/\{DisplayTitle\}/g,_0xc350af)[_0x45aeba(0x1ee)](/\{PageName\}/g,_0x36e154)['replace'](/\{TemplateName\}/g,_0x437fd8)[_0x45aeba(0x1ee)](/\{CreatedAt\}/g,_0x486e1c)[_0x45aeba(0x1ee)](/\{CreatedDate\}/g,_0x264693)['replace'](/\{CreatedTime\}/g,_0x5dc067);return _0x4d35e3;}static['replaceApiContent'](_0x2f24c2,_0x179487,_0x1eecb3,_0x347597,_0x1429f6,_0x2600f2,_0x427136,_0x546dd9){const _0x2ca15a=a319_0x1af683,_0xdc4240=new Date(),_0x333189=_0xdc4240[_0x2ca15a(0x1f4)](),_0x5b937d=_0x1eecb3[_0x2ca15a(0x1c9)](_0x26a66f=>{const _0x5cf585=_0x2ca15a,_0x530896=[_0x5cf585(0x1ec)+_0x26a66f['datasetCode']+'\x22',_0x5cf585(0x1d7)+_0x26a66f[_0x5cf585(0x1f9)]+'\x22',_0x5cf585(0x1d3)+_0x26a66f[_0x5cf585(0x1f0)]+'\x22'];return _0x26a66f[_0x5cf585(0x1de)]&&_0x530896[_0x5cf585(0x1bb)](_0x5cf585(0x1fe)+_0x26a66f[_0x5cf585(0x1de)]+'\x22'),_0x5cf585(0x1ce)+_0x530896[_0x5cf585(0x1c1)](',\x20')+_0x5cf585(0x1bf);})[_0x2ca15a(0x1c1)](''),_0x282156=_0x347597||_0x1eecb3[0x0]?.[_0x2ca15a(0x1de)]||_0x2ca15a(0x1b8);let _0x3a8e5a=_0x2f24c2[_0x2ca15a(0x1ee)](/\{AppCode\}/g,_0x179487)[_0x2ca15a(0x1ee)](/\{ModelConfigs\}/g,_0x5b937d)['replace'](/\{ExampleModelName\}/g,_0x282156)[_0x2ca15a(0x1ee)](/\{ApiFileName\}/g,_0x1429f6||'api')[_0x2ca15a(0x1ee)](/\{ConfigName\}/g,_0x2600f2||_0x2ca15a(0x1dc))[_0x2ca15a(0x1ee)](/\{ClientConfigParam\}/g,_0x427136||'')['replace'](/\{VarPrefix\}/g,_0x546dd9||_0x2ca15a(0x1c0))[_0x2ca15a(0x1ee)](/\{CreatedAt\}/g,_0x333189);return _0x3a8e5a;}static async[a319_0x1af683(0x1f7)](_0x181005,_0x1de14d,_0x228d10,_0x14fd02,_0xb1223b=!![]){const _0x21e153=a319_0x1af683,_0x54454b=Date['now']();try{_0xb1223b&&logger[_0x21e153(0x1fc)](_0x21e153(0x1e0),_0x21e153(0x1c7),{'templatePath':_0x181005,'targetPath':_0x1de14d,'pageName':_0x228d10,'templateName':_0x14fd02});await a319_0xa8f962[_0x21e153(0x1e5)][_0x21e153(0x1ed)](_0x1de14d,{'recursive':!![]}),await this[_0x21e153(0x1fd)](_0x181005,_0x1de14d,_0x228d10,_0x14fd02);if(_0xb1223b){const _0x3cc958=Date['now']()-_0x54454b;logger['success']('template',_0x21e153(0x1f8),_0x3cc958,{'pageName':_0x228d10,'templateName':_0x14fd02});}}catch(_0x283529){if(_0xb1223b){const _0x4af710=Date[_0x21e153(0x1e7)]()-_0x54454b;logger[_0x21e153(0x1f2)](_0x21e153(0x1e0),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x181005,'targetPath':_0x1de14d,'pageName':_0x228d10,'templateName':_0x14fd02,'error':_0x283529 instanceof Error?_0x283529[_0x21e153(0x1be)]:String(_0x283529),'duration':_0x4af710});}throw _0x283529;}}static async[a319_0x1af683(0x1fd)](_0xd0f618,_0x5bdd90,_0x28d100,_0x56bb4a){const _0x2f7c57=a319_0x1af683,_0x3df17f=await a319_0xa8f962['promises']['readdir'](_0xd0f618,{'withFileTypes':!![]});for(const _0x44b0b1 of _0x3df17f){const _0x439af2=a319_0x22e31c[_0x2f7c57(0x1c1)](_0xd0f618,_0x44b0b1['name']);let _0x35b71b=a319_0x22e31c[_0x2f7c57(0x1c1)](_0x5bdd90,_0x44b0b1[_0x2f7c57(0x1f0)]);_0x44b0b1['name'][_0x2f7c57(0x1f5)](_0x2f7c57(0x1db))&&(_0x35b71b=a319_0x22e31c[_0x2f7c57(0x1c1)](_0x5bdd90,_0x44b0b1[_0x2f7c57(0x1f0)][_0x2f7c57(0x1ee)](/\.tpl$/,'')));if(_0x44b0b1[_0x2f7c57(0x1eb)]())await a319_0xa8f962[_0x2f7c57(0x1e5)]['mkdir'](_0x35b71b,{'recursive':!![]}),await this[_0x2f7c57(0x1fd)](_0x439af2,_0x35b71b,_0x28d100,_0x56bb4a);else _0x44b0b1[_0x2f7c57(0x1cb)]()&&await this[_0x2f7c57(0x1bd)](_0x439af2,_0x35b71b,_0x28d100,_0x56bb4a);}}static async[a319_0x1af683(0x1bd)](_0x1bf23d,_0x460ce7,_0x52da1a,_0x510d63){const _0x306258=a319_0x1af683,_0x22060a=a319_0x22e31c[_0x306258(0x1ba)](_0x1bf23d)[_0x306258(0x1d6)]();_0x1bf23d['endsWith'](_0x306258(0x1db))&&(_0x460ce7=_0x460ce7[_0x306258(0x1ee)](/\.tpl$/,''));const _0x2a6ea6=[_0x306258(0x1c8),_0x306258(0x1ea),'.jsx','.js',_0x306258(0x1cc),_0x306258(0x1d4),'.css',_0x306258(0x1d9),_0x306258(0x1db)];if(_0x2a6ea6[_0x306258(0x1ca)](_0x22060a)||_0x1bf23d['endsWith'](_0x306258(0x1db))){const _0x1ec47e=await a319_0xa8f962[_0x306258(0x1e5)][_0x306258(0x1f3)](_0x1bf23d,_0x306258(0x1b9)),_0x27a0d4=this[_0x306258(0x1e8)](_0x1ec47e,_0x52da1a,_0x510d63);await a319_0xa8f962[_0x306258(0x1e5)][_0x306258(0x1fb)](_0x460ce7,_0x27a0d4,_0x306258(0x1b9));}else await a319_0xa8f962['promises']['copyFile'](_0x1bf23d,_0x460ce7);}}function a319_0x2ba7(){const _0x2bc7e6=['message','\x20},','LOVRABET','join','slice','charAt','toUpperCase','split','toDisplayTitle','Starting\x20template\x20content\x20replacement','.tsx','map','includes','isFile','.json','3843697tZslFb','\x0a\x20\x20\x20\x20{\x20','696152GtgLzq','144807hwxCrP','pad','57000TekDNK','name:\x20\x22','.md','toComponentName','toLowerCase','tableName:\x20\x22','formatLocalTimestamp','.scss','padStart','.tpl','default','6lUqzxM','alias','getHours','template','getFullYear','343844gCyBAL','6345zfeLpo','21bieBVU','promises','pop','now','replaceContent','970VfgkoL','.ts','isDirectory','datasetCode:\x20\x22','mkdir','replace','1065745ZMEOSp','name','20hMzrqe','error','readFile','toISOString','endsWith','getDate','processTemplate','Template\x20content\x20replacement\x20completed','tableName','getSeconds','writeFile','info','processDirectory','alias:\x20\x22','24nqxhEq','YourModel','utf8','extname','push','getMonth','processFile'];a319_0x2ba7=function(){return _0x2bc7e6;};return a319_0x2ba7();}
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(_0x48947b,_0xbf6959){const _0x56925d=a320_0xc0bb,_0x7686f5=_0x48947b();while(!![]){try{const _0x34b809=parseInt(_0x56925d(0xaf))/0x1*(-parseInt(_0x56925d(0xa7))/0x2)+-parseInt(_0x56925d(0xa4))/0x3*(parseInt(_0x56925d(0xb8))/0x4)+parseInt(_0x56925d(0xb9))/0x5*(-parseInt(_0x56925d(0xbb))/0x6)+-parseInt(_0x56925d(0xb3))/0x7+-parseInt(_0x56925d(0xa8))/0x8+-parseInt(_0x56925d(0xa9))/0x9*(parseInt(_0x56925d(0xb0))/0xa)+-parseInt(_0x56925d(0xba))/0xb*(-parseInt(_0x56925d(0xaa))/0xc);if(_0x34b809===_0xbf6959)break;else _0x7686f5['push'](_0x7686f5['shift']());}catch(_0x40346a){_0x7686f5['push'](_0x7686f5['shift']());}}}(a320_0x1b82,0x80da1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a320_0x4362c3 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 _0x37c7d2=a320_0xc0bb,_0x1bdc33=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x37c7d2(0xb7)]()[_0x37c7d2(0xbe)]();return _0x1bdc33==='1'||_0x1bdc33==='true'||_0x1bdc33==='yes';}function cacheRoot(){const _0x2dacc9=a320_0xc0bb;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2dacc9(0xbd));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x2c92f5=a320_0xc0bb;try{const _0x156395=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3b7dc2=JSON[_0x2c92f5(0xb2)](_0x156395);if(!_0x3b7dc2||typeof _0x3b7dc2!=='object')return{};return _0x3b7dc2;}catch{return{};}}async function writeUpdateNoticeCache(_0x3019ce){const _0x5ddb45=a320_0xc0bb;try{const _0x4a3097=getUpdateNoticeCachePath();await mkdir(dirname(_0x4a3097),{'recursive':!![]}),await writeFile(_0x4a3097,JSON[_0x5ddb45(0xab)](_0x3019ce,null,0x2)+'\x0a',_0x5ddb45(0xa5));}catch{}}function isFreshCheck(_0x3a0609,_0x9bc875){const _0x39108a=a320_0xc0bb;return typeof _0x3a0609[_0x39108a(0xae)]===_0x39108a(0xac)&&_0x9bc875-_0x3a0609[_0x39108a(0xae)]<UPDATE_CHECK_TTL_MS;}function a320_0xc0bb(_0x18d0ce,_0xfce855){_0x18d0ce=_0x18d0ce-0xa4;const _0x1b820b=a320_0x1b82();let _0xc0bb80=_0x1b820b[_0x18d0ce];return _0xc0bb80;}function isRecentlyNotified(_0x291f90,_0x2d5e20,_0x386731){const _0x441997=a320_0xc0bb;return _0x291f90[_0x441997(0xb1)]===_0x2d5e20&&typeof _0x291f90[_0x441997(0xb6)]===_0x441997(0xac)&&_0x386731-_0x291f90[_0x441997(0xb6)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x504fdc){const _0x58515b=a320_0xc0bb;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x58515b(0xb4)+_0x504fdc;}export async function resolveLatestUpdateNotice(){const _0xa6fc85=a320_0xc0bb;if(isUpdateNoticeDisabled())return null;try{const _0x5626ca=Date[_0xa6fc85(0xc1)](),_0x51a49b=getCliVersion(),_0x124152=await readUpdateNoticeCache();let _0x2bca59=isFreshCheck(_0x124152,_0x5626ca)?_0x124152[_0xa6fc85(0xbc)]?.[_0xa6fc85(0xb7)]():undefined;if(!_0x2bca59&&!isFreshCheck(_0x124152,_0x5626ca)){const _0x5bd700=await getCliVersionPolicy();_0x2bca59=_0x5bd700?.[_0xa6fc85(0xa6)]?.[_0xa6fc85(0xb7)]()||undefined,await writeUpdateNoticeCache({..._0x124152,'checkedAt':_0x5626ca,'latest':_0x2bca59,'failed':!_0x2bca59});}if(!_0x2bca59||!a320_0x4362c3[_0xa6fc85(0xc0)](_0x51a49b)||!a320_0x4362c3[_0xa6fc85(0xc0)](_0x2bca59))return null;if(a320_0x4362c3[_0xa6fc85(0xad)](_0x51a49b,_0x2bca59))return null;if(isRecentlyNotified(_0x124152,_0x2bca59,_0x5626ca))return null;const _0xe65066=CLI_BIN_NAME+_0xa6fc85(0xb5);return await writeUpdateNoticeCache({..._0x124152,'checkedAt':isFreshCheck(_0x124152,_0x5626ca)?_0x124152[_0xa6fc85(0xae)]:_0x5626ca,'latest':_0x2bca59,'failed':![],'lastNotifiedVersion':_0x2bca59,'lastNotifiedAt':_0x5626ca}),{'command':_0xe65066,'current':_0x51a49b,'latest':_0x2bca59,'url':buildNpmVersionUrl(_0x2bca59),'message':CLI_BIN_NAME+'\x20'+_0x2bca59+_0xa6fc85(0xbf)+_0x51a49b+',\x20run:\x20'+_0xe65066};}catch{return null;}}function a320_0x1b82(){const _0x1ac3d8=['38OktvBa','10XAzIyO','lastNotifiedVersion','parse','2768682qLPMjz','/v/','\x20update','lastNotifiedAt','trim','56kLJnGx','2242525fGHLoA','40792235YHiKOI','12uwdRXV','latest','.cache','toLowerCase','\x20available,\x20current\x20','valid','now','17700vMVKqh','utf8','stableVersion','42088phCDKc','6034160uAsTaw','2263770pNwcks','12hPmAnA','stringify','number','gte','checkedAt'];a320_0x1b82=function(){return _0x1ac3d8;};return a320_0x1b82();}
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(_0x317217,_0x260ce5){var _0x18abd7=a321_0x4fe6,_0x3b4663=_0x317217();while(!![]){try{var _0xe54592=parseInt(_0x18abd7(0xf2))/0x1*(-parseInt(_0x18abd7(0xf1))/0x2)+-parseInt(_0x18abd7(0xed))/0x3*(parseInt(_0x18abd7(0xf0))/0x4)+parseInt(_0x18abd7(0xee))/0x5+-parseInt(_0x18abd7(0xef))/0x6+-parseInt(_0x18abd7(0xeb))/0x7*(-parseInt(_0x18abd7(0xea))/0x8)+-parseInt(_0x18abd7(0xf3))/0x9+parseInt(_0x18abd7(0xec))/0xa;if(_0xe54592===_0x260ce5)break;else _0x3b4663['push'](_0x3b4663['shift']());}catch(_0x5edaf7){_0x3b4663['push'](_0x3b4663['shift']());}}}(a321_0x1871,0xeecfc));import{VERSION}from'../generated/build-info.js';function a321_0x4fe6(_0x131dce,_0xa6b7a5){_0x131dce=_0x131dce-0xea;var _0x18714b=a321_0x1871();var _0x4fe6a3=_0x18714b[_0x131dce];return _0x4fe6a3;}export function getCliVersion(){return VERSION;}function a321_0x1871(){var _0x4213ca=['10616760CcdcoX','2952uymzWn','11053XOzBWo','48040310ggwJQB','9mtHoxb','101630XqaJMu','6196200gQuymA','1736368FOTlZw','6yyNdlz','304740pUDqvQ'];a321_0x1871=function(){return _0x4213ca;};return a321_0x1871();}
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(_0x3cc2b1,_0x22d2d3){var _0x2776a6=a322_0x4c4f,_0x5938f4=_0x3cc2b1();while(!![]){try{var _0x10700e=-parseInt(_0x2776a6(0xb0))/0x1+-parseInt(_0x2776a6(0xae))/0x2*(-parseInt(_0x2776a6(0xb6))/0x3)+-parseInt(_0x2776a6(0xb3))/0x4*(-parseInt(_0x2776a6(0xb4))/0x5)+parseInt(_0x2776a6(0xb5))/0x6*(-parseInt(_0x2776a6(0xb7))/0x7)+parseInt(_0x2776a6(0xb2))/0x8+parseInt(_0x2776a6(0xb8))/0x9+-parseInt(_0x2776a6(0xb1))/0xa*(parseInt(_0x2776a6(0xaf))/0xb);if(_0x10700e===_0x22d2d3)break;else _0x5938f4['push'](_0x5938f4['shift']());}catch(_0x2c019c){_0x5938f4['push'](_0x5938f4['shift']());}}}(a322_0x41af,0x21556));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a322_0x4c4f(_0x172240,_0x9288be){_0x172240=_0x172240-0xae;var _0x41af4a=a322_0x41af();var _0x4c4f8d=_0x41af4a[_0x172240];return _0x4c4f8d;}export async function withActiveCookie(_0x1b5bbe,_0x2384c5){setActiveCookie(_0x1b5bbe);try{return await _0x2384c5();}finally{clearActiveCookie();}}function a322_0x41af(){var _0x582937=['474862uVWRiR','3179uXfQTY','163938tltAiG','8830vTCpRy','1898888FocVgo','44rfKmfM','87590ooERXz','977034eFLzwx','3ovvQok','7Mqlrtx','459072wXtygB'];a322_0x41af=function(){return _0x582937;};return a322_0x41af();}
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_0x1c77(){var _0x551983=['1476eVdqxP','290qPgDpi','11NiugsS','2607SRArcz','6478zjTVUv','7532GaZRWu','217sFtMub','5112510nvAHXH','3903272FloVHq','29748564xyHwlR','14cLYtJS','26glUbfD','1228122ZaGXBV'];a323_0x1c77=function(){return _0x551983;};return a323_0x1c77();}(function(_0x1e083a,_0x1c9565){var _0x560f23=a323_0x3c67,_0x1fe3b7=_0x1e083a();while(!![]){try{var _0x2de087=parseInt(_0x560f23(0xca))/0x1*(-parseInt(_0x560f23(0xd5))/0x2)+parseInt(_0x560f23(0xd4))/0x3*(-parseInt(_0x560f23(0xd6))/0x4)+-parseInt(_0x560f23(0xd2))/0x5*(parseInt(_0x560f23(0xd1))/0x6)+-parseInt(_0x560f23(0xce))/0x7*(parseInt(_0x560f23(0xcc))/0x8)+-parseInt(_0x560f23(0xd0))/0x9+-parseInt(_0x560f23(0xcb))/0xa*(parseInt(_0x560f23(0xd3))/0xb)+-parseInt(_0x560f23(0xcd))/0xc*(-parseInt(_0x560f23(0xcf))/0xd);if(_0x2de087===_0x1c9565)break;else _0x1fe3b7['push'](_0x1fe3b7['shift']());}catch(_0x19b841){_0x1fe3b7['push'](_0x1fe3b7['shift']());}}}(a323_0x1c77,0xef875));function a323_0x3c67(_0x57b6fc,_0x4af8c9){_0x57b6fc=_0x57b6fc-0xca;var _0x1c77f2=a323_0x1c77();var _0x3c670d=_0x1c77f2[_0x57b6fc];return _0x3c670d;}export function writeCliSideChannelLine(_0x4f50d9){process['stderr']['write'](_0x4f50d9+'\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.7",
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.7
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.7",
6
- "skillVersion": "2.5.2-beta.7",
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": "c398ae461dd9b549c11a2cde8ebf8848beb3a93a478ba765d00b8ebfdbbe77aa"
143
+ "digest": "85bd9afc1c6af3d817dd6a6317e0c1cee9fce3e1df76904165e79d5e6a9e63a1"
144
144
  }