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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/index.js +1 -1
  251. package/lib/commands/workspace/add.js +1 -1
  252. package/lib/commands/workspace/index.js +1 -1
  253. package/lib/commands/workspace/remove.js +1 -1
  254. package/lib/config/domain-config.d.ts +1 -1
  255. package/lib/config/domain-config.js +1 -1
  256. package/lib/config/project-domain-routing.js +1 -1
  257. package/lib/config/region-config.js +1 -1
  258. package/lib/config/schema.d.ts +1 -1
  259. package/lib/config/schema.js +1 -1
  260. package/lib/constant/cdn.js +1 -1
  261. package/lib/constant/cli.js +1 -1
  262. package/lib/constant/defaults.js +1 -1
  263. package/lib/constant/domain.d.ts +4 -0
  264. package/lib/constant/domain.js +1 -1
  265. package/lib/constant/env.js +1 -1
  266. package/lib/constant/output.js +1 -1
  267. package/lib/constant/paths.js +1 -1
  268. package/lib/constant/region.d.ts +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.d.ts +14 -1
  272. package/lib/constant/routing-profile.js +1 -1
  273. package/lib/context/app-resolver.d.ts +1 -0
  274. package/lib/context/app-resolver.js +1 -1
  275. package/lib/context/auth-resolver.js +1 -1
  276. package/lib/context/config-loader.js +1 -1
  277. package/lib/context.js +1 -1
  278. package/lib/core/alias-resolver.js +1 -1
  279. package/lib/core/api-client.js +1 -1
  280. package/lib/core/bff/config.js +1 -1
  281. package/lib/core/bff/file-system.js +1 -1
  282. package/lib/core/bff/hash.js +1 -1
  283. package/lib/core/bff/hook-directory.js +1 -1
  284. package/lib/core/bff/lock.js +1 -1
  285. package/lib/core/bff/utils.js +1 -1
  286. package/lib/core/cross-db-relation.js +1 -1
  287. package/lib/core/db-resolver.js +1 -1
  288. package/lib/core/flow-config.js +1 -1
  289. package/lib/core/instant-api-policy/config.js +1 -1
  290. package/lib/core/kb-search-client.js +1 -1
  291. package/lib/core/page/file-system.js +1 -1
  292. package/lib/core/page/hash.js +1 -1
  293. package/lib/core/page/lock.js +1 -1
  294. package/lib/core/page/lr-smart-jsx.js +1 -1
  295. package/lib/core/sql-index-auditor.js +1 -1
  296. package/lib/core/sql-sync/config.js +1 -1
  297. package/lib/core/sql-sync/file-system.js +1 -1
  298. package/lib/core/sql-sync/hash.js +1 -1
  299. package/lib/core/sql-sync/lock.js +1 -1
  300. package/lib/core/sql-sync/utils.js +1 -1
  301. package/lib/core/sql-validator.js +1 -1
  302. package/lib/errors.js +1 -1
  303. package/lib/framework/build-all-flags.js +1 -1
  304. package/lib/framework/error-output.js +1 -1
  305. package/lib/framework/explicit-yes.js +1 -1
  306. package/lib/framework/flags.js +1 -1
  307. package/lib/framework/help.js +1 -1
  308. package/lib/framework/index.js +1 -1
  309. package/lib/framework/output.js +1 -1
  310. package/lib/framework/response.js +1 -1
  311. package/lib/framework/runner-alias.js +1 -1
  312. package/lib/framework/runner.js +1 -1
  313. package/lib/framework/schema-export.js +1 -1
  314. package/lib/framework/supported-flags.js +1 -1
  315. package/lib/framework/types.js +1 -1
  316. package/lib/generated/build-info.d.ts +4 -4
  317. package/lib/generated/build-info.js +1 -1
  318. package/lib/generated/official-routing.d.ts +15 -3
  319. package/lib/generated/official-routing.js +1 -1
  320. package/lib/generated/routing-contract.d.ts +2 -2
  321. package/lib/generated/routing-contract.js +1 -1
  322. package/lib/help.js +1 -1
  323. package/lib/postinstall.js +1 -1
  324. package/lib/runtime/confirmation.js +1 -1
  325. package/lib/runtime/event.js +1 -1
  326. package/lib/runtime/index.js +1 -1
  327. package/lib/runtime/queue.js +1 -1
  328. package/lib/runtime/resolve.js +1 -1
  329. package/lib/skills/builtin-skill.js +1 -1
  330. package/lib/skills/main.js +1 -1
  331. package/lib/skills/npx-skills-add.d.ts +5 -0
  332. package/lib/skills/npx-skills-add.js +1 -1
  333. package/lib/skills/skill-presence.js +1 -1
  334. package/lib/telemetry/cli-command-trace.js +1 -1
  335. package/lib/telemetry/cli-help-trace.js +1 -1
  336. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  337. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  338. package/lib/telemetry/send-cli-trace-log.js +1 -1
  339. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  340. package/lib/utils/ai_config.js +1 -1
  341. package/lib/utils/apply-jq-filter.js +1 -1
  342. package/lib/utils/cdn-config.js +1 -1
  343. package/lib/utils/check-sdk-version.js +1 -1
  344. package/lib/utils/cli-version-check.js +1 -1
  345. package/lib/utils/cli-version-policy.js +1 -1
  346. package/lib/utils/config.js +1 -1
  347. package/lib/utils/entity-with-id.js +1 -1
  348. package/lib/utils/file-utils.js +1 -1
  349. package/lib/utils/guides-cdn.js +1 -1
  350. package/lib/utils/http-client.js +1 -1
  351. package/lib/utils/is-non-interactive.js +1 -1
  352. package/lib/utils/logger.js +1 -1
  353. package/lib/utils/params.js +1 -1
  354. package/lib/utils/platform.js +1 -1
  355. package/lib/utils/sleep.js +1 -1
  356. package/lib/utils/template-replacer.js +1 -1
  357. package/lib/utils/update-notice.js +1 -1
  358. package/lib/utils/version.js +1 -1
  359. package/lib/utils/with-active-cookie.js +1 -1
  360. package/lib/utils/write-cli-side-channel.js +1 -1
  361. package/package.json +1 -1
  362. package/skills/rabetbase/SKILL.md +2 -2
  363. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  364. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  365. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  366. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  367. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  368. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a335_0x5d21(_0x1a80ea,_0x457cda){_0x1a80ea=_0x1a80ea-0xe6;const _0x2a2f19=a335_0x2a2f();let _0x5d2187=_0x2a2f19[_0x1a80ea];return _0x5d2187;}(function(_0xabbf6a,_0x59f4e8){const _0x33c284=a335_0x5d21,_0x4d06a7=_0xabbf6a();while(!![]){try{const _0x3b1dc0=-parseInt(_0x33c284(0xeb))/0x1+-parseInt(_0x33c284(0xe8))/0x2*(-parseInt(_0x33c284(0xee))/0x3)+-parseInt(_0x33c284(0xe7))/0x4+-parseInt(_0x33c284(0xea))/0x5+-parseInt(_0x33c284(0xef))/0x6+parseInt(_0x33c284(0xf4))/0x7+-parseInt(_0x33c284(0xf5))/0x8*(-parseInt(_0x33c284(0xe6))/0x9);if(_0x3b1dc0===_0x59f4e8)break;else _0x4d06a7['push'](_0x4d06a7['shift']());}catch(_0x2c5569){_0x4d06a7['push'](_0x4d06a7['shift']());}}}(a335_0x2a2f,0x75a6a));function a335_0x2a2f(){const _0x44fafa=['1012576ACEQDr','72KayaXd','1368128aCWcEy','14zlbJmi','stableVersion','2086230tJlkvy','867148ZpSEfz','/config/index.json','cli','335709fUTnnN','3417846wZFmnP','/config.json','application/json','node','sdk','6174476IJGNlF'];a335_0x2a2f=function(){return _0x44fafa;};return a335_0x2a2f();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x41d9b7=a335_0x5d21,_0x1c1a0d=getTemplateBaseUrl(),_0x375354=[_0x1c1a0d+_0x41d9b7(0xf0),_0x1c1a0d+_0x41d9b7(0xec)];for(const _0x129c4a of _0x375354){try{const _0x256612=await fetch(_0x129c4a,{'headers':{'Accept':_0x41d9b7(0xf1)}});if(!_0x256612['ok'])continue;const _0x4c75e7=await _0x256612['json']();if(!_0x4c75e7[_0x41d9b7(0xed)]?.[_0x41d9b7(0xe9)]||!_0x4c75e7[_0x41d9b7(0xf3)]?.[_0x41d9b7(0xf2)]?.['stableVersion'])continue;return _0x4c75e7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x30cf41=Date['now']();if(hasCachedConfig){const _0x2728c4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x30cf41-cacheTime<_0x2728c4)return cachedConfig;}const _0x222177=await fetchCdnConfig();return cachedConfig=_0x222177,cacheTime=_0x30cf41,hasCachedConfig=!![],_0x222177;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xd47476,_0x3840ed){const _0x273919=a335_0x1229,_0x12902a=_0xd47476();while(!![]){try{const _0x1e8b69=parseInt(_0x273919(0x181))/0x1+-parseInt(_0x273919(0x17f))/0x2+-parseInt(_0x273919(0x17d))/0x3*(-parseInt(_0x273919(0x18c))/0x4)+parseInt(_0x273919(0x180))/0x5+parseInt(_0x273919(0x183))/0x6+parseInt(_0x273919(0x17c))/0x7*(parseInt(_0x273919(0x182))/0x8)+-parseInt(_0x273919(0x184))/0x9;if(_0x1e8b69===_0x3840ed)break;else _0x12902a['push'](_0x12902a['shift']());}catch(_0xc3310e){_0x12902a['push'](_0x12902a['shift']());}}}(a335_0xd5b8,0xdaf8d));function a335_0xd5b8(){const _0x2572fc=['24855390GcJKcT','/config/index.json','json','/config.json','node','stableVersion','sdk','cli','1210836MyGrOl','1995DFfUcU','3wIAgWR','now','3120858kXPmYL','3606890oRQRkL','921093WXzxHZ','43480mbJKeE','10349358XLNxYe'];a335_0xd5b8=function(){return _0x2572fc;};return a335_0xd5b8();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x91af7a=a335_0x1229,_0x41691f=getTemplateBaseUrl(),_0x1e03be=[_0x41691f+_0x91af7a(0x187),_0x41691f+_0x91af7a(0x185)];for(const _0x3ab46a of _0x1e03be){try{const _0x15f516=await fetch(_0x3ab46a,{'headers':{'Accept':'application/json'}});if(!_0x15f516['ok'])continue;const _0x1ca5dd=await _0x15f516[_0x91af7a(0x186)]();if(!_0x1ca5dd[_0x91af7a(0x18b)]?.[_0x91af7a(0x189)]||!_0x1ca5dd[_0x91af7a(0x18a)]?.[_0x91af7a(0x188)]?.[_0x91af7a(0x189)])continue;return _0x1ca5dd;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a335_0x1229(_0x194bc5,_0x3c41fe){_0x194bc5=_0x194bc5-0x17c;const _0xd5b825=a335_0xd5b8();let _0x12297b=_0xd5b825[_0x194bc5];return _0x12297b;}export async function getCdnConfig(){const _0x4a0cce=a335_0x1229,_0x2226a1=Date[_0x4a0cce(0x17e)]();if(hasCachedConfig){const _0x182c41=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2226a1-cacheTime<_0x182c41)return cachedConfig;}const _0x389c59=await fetchCdnConfig();return cachedConfig=_0x389c59,cacheTime=_0x2226a1,hasCachedConfig=!![],_0x389c59;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a336_0x36095e=a336_0x491c;(function(_0x170907,_0x46ee1d){const _0x18430d=a336_0x491c,_0x186145=_0x170907();while(!![]){try{const _0x56fb4f=parseInt(_0x18430d(0x100))/0x1+-parseInt(_0x18430d(0x105))/0x2+-parseInt(_0x18430d(0x102))/0x3*(-parseInt(_0x18430d(0xfc))/0x4)+-parseInt(_0x18430d(0x104))/0x5+-parseInt(_0x18430d(0xf3))/0x6*(-parseInt(_0x18430d(0x10f))/0x7)+-parseInt(_0x18430d(0x10e))/0x8+parseInt(_0x18430d(0xf2))/0x9;if(_0x56fb4f===_0x46ee1d)break;else _0x186145['push'](_0x186145['shift']());}catch(_0x1974bf){_0x186145['push'](_0x186145['shift']());}}}(a336_0x3bce,0xbde03));function a336_0x491c(_0x39a8be,_0x34047e){_0x39a8be=_0x39a8be-0xf0;const _0x3bce9b=a336_0x3bce();let _0x491c81=_0x3bce9b[_0x39a8be];return _0x491c81;}import a336_0x1d9957 from'node:fs';import a336_0x5b9240 from'node:path';import a336_0x1e1ede from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a336_0x36095e(0xf0);function isNonNumericVersion(_0x23f664){const _0x3fc3cb=a336_0x36095e,_0xa44ab3=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xa44ab3[_0x3fc3cb(0x108)](_0x18144c=>_0x18144c[_0x3fc3cb(0x113)](_0x23f664));}function getInstalledVersion(_0x2f75b3,_0x4bc5e9){const _0x573684=a336_0x36095e;try{const _0x43c697=a336_0x5b9240[_0x573684(0xf1)](_0x2f75b3,_0x573684(0x115),_0x4bc5e9,_0x573684(0x110));if(a336_0x1d9957[_0x573684(0xff)](_0x43c697)){const _0xf4ba45=JSON[_0x573684(0x107)](a336_0x1d9957[_0x573684(0x109)](_0x43c697,_0x573684(0x10b)));return _0xf4ba45[_0x573684(0x114)]||null;}}catch{}return null;}function a336_0x3bce(){const _0x2bbf67=['all','3583840ZDPOMn','17213RqOvqb','package.json','↪\x20SDK\x20update\x20available','coerce','test','version','node_modules','\x20\x20\x20Stable\x20version:\x20','1.2.0','join','1606491hDpena','3096NlLyqU','stableVersion','npm\x20install\x20','devDependencies','@lovrabet/sdk','dependencies','log','node','needsUpgrade','12DOqYCX','utf8','\x20\x20\x20Upgrade\x20command:\x20','existsSync','792704XfMBCU','\x20\x20\x20Current\x20version:\x20','1444047vXvdjy','sdk','4537780jSMhgY','3101654AhAfwa','latest','parse','some','readFileSync','minVersion','utf-8','\x1b[1m'];a336_0x3bce=function(){return _0x2bbf67;};return a336_0x3bce();}async function getSdkStableVersion(){const _0x2d56c2=a336_0x36095e;try{const _0x9a7809=await getCdnConfig();return _0x9a7809?.[_0x2d56c2(0x103)]?.[_0x2d56c2(0xfa)]?.[_0x2d56c2(0xf4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xeb284d=a336_0x36095e;try{const _0x52db16=await getCdnConfig();return _0x52db16?.[_0xeb284d(0x103)]?.[_0xeb284d(0xfa)]?.['packageName']||_0xeb284d(0xf7);}catch{return _0xeb284d(0xf7);}}export async function checkSdkVersion(_0x22f55b){const _0x5c82e2=a336_0x36095e,_0x33ba59=a336_0x5b9240[_0x5c82e2(0xf1)](_0x22f55b,'package.json'),[_0x9c4ff2,_0x411885]=await Promise[_0x5c82e2(0x10d)]([getSdkStableVersion(),getSdkPackageName()]),_0x151bf6=_0x9c4ff2||FALLBACK_MIN_SDK_VERSION;if(!a336_0x1d9957['existsSync'](_0x33ba59))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x151bf6,'packageName':_0x411885,'stableVersion':_0x9c4ff2};try{const _0x3cb4a1=JSON['parse'](a336_0x1d9957[_0x5c82e2(0x109)](_0x33ba59,_0x5c82e2(0xfd))),_0x42f8e5=_0x3cb4a1[_0x5c82e2(0xf8)]||{},_0x4c2e20=_0x3cb4a1['devDependencies']||{},_0xee0477=_0x42f8e5[_0x411885]||_0x4c2e20[_0x411885];if(!_0xee0477)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x151bf6,'packageName':_0x411885,'stableVersion':_0x9c4ff2};let _0x37a7d2=getInstalledVersion(_0x22f55b,_0x411885);!_0x37a7d2&&(_0x37a7d2=_0xee0477);if(isNonNumericVersion(_0xee0477))return{'installed':!![],'version':_0x37a7d2,'needsUpgrade':![],'minVersion':_0x151bf6,'packageName':_0x411885,'stableVersion':_0x9c4ff2};const _0x17bf94=a336_0x1e1ede[_0x5c82e2(0x112)](_0x37a7d2),_0x181201=a336_0x1e1ede['coerce'](_0x151bf6),_0x2c3ca6=_0x17bf94&&_0x181201?a336_0x1e1ede['lt'](_0x17bf94,_0x181201):![];return{'installed':!![],'version':_0x37a7d2,'needsUpgrade':_0x2c3ca6,'minVersion':_0x151bf6,'packageName':_0x411885,'stableVersion':_0x9c4ff2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x151bf6,'packageName':_0x411885,'stableVersion':_0x9c4ff2};}}export function checkSdkVersionSync(_0x489618){const _0x275c30=a336_0x36095e,_0x5e3599=a336_0x5b9240['join'](_0x489618,_0x275c30(0x110)),_0x1a350e=_0x275c30(0xf7);if(!a336_0x1d9957[_0x275c30(0xff)](_0x5e3599))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a350e,'stableVersion':null};try{const _0x4f2d54=JSON[_0x275c30(0x107)](a336_0x1d9957[_0x275c30(0x109)](_0x5e3599,_0x275c30(0xfd))),_0x258a8a=_0x4f2d54[_0x275c30(0xf8)]||{},_0x32e027=_0x4f2d54[_0x275c30(0xf6)]||{},_0x356304=_0x258a8a[_0x1a350e]||_0x32e027[_0x1a350e];if(!_0x356304)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a350e,'stableVersion':null};let _0x20075a=getInstalledVersion(_0x489618,_0x1a350e);!_0x20075a&&(_0x20075a=_0x356304);if(isNonNumericVersion(_0x356304))return{'installed':!![],'version':_0x20075a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a350e,'stableVersion':null};const _0x46a782=a336_0x1e1ede[_0x275c30(0x112)](_0x20075a),_0x3d1bd8=_0x46a782?a336_0x1e1ede['lt'](_0x46a782,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x20075a,'needsUpgrade':_0x3d1bd8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a350e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a350e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x50d9d1){const _0x2ad9e3=a336_0x36095e;if(!_0x50d9d1[_0x2ad9e3(0xfb)])return;const _0x48787a='\x1b[33m',_0xdf1725='\x1b[0m',_0x22a057=_0x2ad9e3(0x10c),_0x537bc8=_0x50d9d1['packageName']||'@lovrabet/sdk',_0x4fbc6b=_0x50d9d1['stableVersion']||_0x50d9d1[_0x2ad9e3(0x10a)],_0x360fe5=_0x2ad9e3(0xf5)+_0x537bc8+'@'+(_0x4fbc6b||_0x2ad9e3(0x106));console[_0x2ad9e3(0xf9)](),console[_0x2ad9e3(0xf9)](''+_0x48787a+_0x22a057+_0x2ad9e3(0x111)+_0xdf1725),console[_0x2ad9e3(0xf9)](_0x48787a+_0x2ad9e3(0x101)+_0x537bc8+'@'+_0x50d9d1[_0x2ad9e3(0x114)]+_0xdf1725),console[_0x2ad9e3(0xf9)](_0x48787a+_0x2ad9e3(0x116)+_0x4fbc6b+_0xdf1725),console[_0x2ad9e3(0xf9)](_0x48787a+_0x2ad9e3(0xfe)+_0x360fe5+_0xdf1725),console[_0x2ad9e3(0xf9)]();}
1
+ (function(_0x315bca,_0x3a5f65){const _0x3f0f19=a336_0x2d74,_0x458bb3=_0x315bca();while(!![]){try{const _0x11e2fe=parseInt(_0x3f0f19(0xda))/0x1*(parseInt(_0x3f0f19(0xdb))/0x2)+-parseInt(_0x3f0f19(0xde))/0x3*(-parseInt(_0x3f0f19(0xe5))/0x4)+-parseInt(_0x3f0f19(0xe3))/0x5*(parseInt(_0x3f0f19(0xdf))/0x6)+-parseInt(_0x3f0f19(0xc9))/0x7*(parseInt(_0x3f0f19(0xdc))/0x8)+parseInt(_0x3f0f19(0xca))/0x9*(-parseInt(_0x3f0f19(0xcd))/0xa)+parseInt(_0x3f0f19(0xdd))/0xb+-parseInt(_0x3f0f19(0xd9))/0xc;if(_0x11e2fe===_0x3a5f65)break;else _0x458bb3['push'](_0x458bb3['shift']());}catch(_0xc24a3e){_0x458bb3['push'](_0x458bb3['shift']());}}}(a336_0xfb10,0x485f8));function a336_0x2d74(_0xf6cfc5,_0x194616){_0xf6cfc5=_0xf6cfc5-0xc4;const _0xfb102b=a336_0xfb10();let _0x2d74ff=_0xfb102b[_0xf6cfc5];return _0x2d74ff;}import a336_0xd2befa from'node:fs';import a336_0x2abff9 from'node:path';import a336_0x17edcb from'semver';function a336_0xfb10(){const _0x3e9661=['\x20\x20\x20Upgrade\x20command:\x20','@lovrabet/sdk','version','utf8','needsUpgrade','existsSync','readFileSync','log','1706484DVCYhm','72659hqNnnC','10DTRhlT','8296AMrRQe','1148532tgISzu','42aufsOd','37404HdmcXE','join','coerce','npm\x20install\x20','115xUvwUc','stableVersion','137884xwDQph','latest','all','devDependencies','package.json','parse','node_modules','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','some','2401NZRvOm','113229tTuetL','node','utf-8','10XdXygK','packageName','sdk','dependencies'];a336_0xfb10=function(){return _0x3e9661;};return a336_0xfb10();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4feb38){const _0xd8c91a=a336_0x2d74,_0x42d66f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x42d66f[_0xd8c91a(0xc8)](_0xd264ce=>_0xd264ce['test'](_0x4feb38));}function getInstalledVersion(_0x54c59a,_0x1c623e){const _0x35e4b0=a336_0x2d74;try{const _0x59d5c0=a336_0x2abff9[_0x35e4b0(0xe0)](_0x54c59a,_0x35e4b0(0xc5),_0x1c623e,'package.json');if(a336_0xd2befa[_0x35e4b0(0xd6)](_0x59d5c0)){const _0x54c49f=JSON[_0x35e4b0(0xc4)](a336_0xd2befa['readFileSync'](_0x59d5c0,_0x35e4b0(0xcc)));return _0x54c49f[_0x35e4b0(0xd3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1eaf00=a336_0x2d74;try{const _0x381310=await getCdnConfig();return _0x381310?.[_0x1eaf00(0xcf)]?.[_0x1eaf00(0xcb)]?.[_0x1eaf00(0xe4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1c2f00=a336_0x2d74;try{const _0x2c481f=await getCdnConfig();return _0x2c481f?.[_0x1c2f00(0xcf)]?.['node']?.[_0x1c2f00(0xce)]||_0x1c2f00(0xd2);}catch{return _0x1c2f00(0xd2);}}export async function checkSdkVersion(_0xa394c8){const _0x19bb91=a336_0x2d74,_0x17be83=a336_0x2abff9['join'](_0xa394c8,_0x19bb91(0xe9)),[_0x355d8b,_0x7b812d]=await Promise[_0x19bb91(0xe7)]([getSdkStableVersion(),getSdkPackageName()]),_0x551e94=_0x355d8b||FALLBACK_MIN_SDK_VERSION;if(!a336_0xd2befa[_0x19bb91(0xd6)](_0x17be83))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};try{const _0x58435b=JSON['parse'](a336_0xd2befa[_0x19bb91(0xd7)](_0x17be83,'utf8')),_0x3a8b55=_0x58435b[_0x19bb91(0xd0)]||{},_0x456dbc=_0x58435b['devDependencies']||{},_0xfe8b81=_0x3a8b55[_0x7b812d]||_0x456dbc[_0x7b812d];if(!_0xfe8b81)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};let _0x17089f=getInstalledVersion(_0xa394c8,_0x7b812d);!_0x17089f&&(_0x17089f=_0xfe8b81);if(isNonNumericVersion(_0xfe8b81))return{'installed':!![],'version':_0x17089f,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};const _0x9671d9=a336_0x17edcb[_0x19bb91(0xe1)](_0x17089f),_0x16f2ee=a336_0x17edcb[_0x19bb91(0xe1)](_0x551e94),_0x57db11=_0x9671d9&&_0x16f2ee?a336_0x17edcb['lt'](_0x9671d9,_0x16f2ee):![];return{'installed':!![],'version':_0x17089f,'needsUpgrade':_0x57db11,'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x551e94,'packageName':_0x7b812d,'stableVersion':_0x355d8b};}}export function checkSdkVersionSync(_0x505ccc){const _0x153a12=a336_0x2d74,_0x4b78d8=a336_0x2abff9[_0x153a12(0xe0)](_0x505ccc,_0x153a12(0xe9)),_0x474619=_0x153a12(0xd2);if(!a336_0xd2befa['existsSync'](_0x4b78d8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};try{const _0x3d01da=JSON[_0x153a12(0xc4)](a336_0xd2befa[_0x153a12(0xd7)](_0x4b78d8,_0x153a12(0xd4))),_0x4431c5=_0x3d01da[_0x153a12(0xd0)]||{},_0x3891ad=_0x3d01da[_0x153a12(0xe8)]||{},_0x102668=_0x4431c5[_0x474619]||_0x3891ad[_0x474619];if(!_0x102668)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};let _0x464f7f=getInstalledVersion(_0x505ccc,_0x474619);!_0x464f7f&&(_0x464f7f=_0x102668);if(isNonNumericVersion(_0x102668))return{'installed':!![],'version':_0x464f7f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};const _0x55116d=a336_0x17edcb[_0x153a12(0xe1)](_0x464f7f),_0x171639=_0x55116d?a336_0x17edcb['lt'](_0x55116d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x464f7f,'needsUpgrade':_0x171639,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x474619,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x24caff){const _0x3392b5=a336_0x2d74;if(!_0x24caff[_0x3392b5(0xd5)])return;const _0x1bbdba='\x1b[33m',_0x3227be='\x1b[0m',_0x126c15='\x1b[1m',_0x467319=_0x24caff[_0x3392b5(0xce)]||_0x3392b5(0xd2),_0x1ddfa2=_0x24caff[_0x3392b5(0xe4)]||_0x24caff['minVersion'],_0xa9150a=_0x3392b5(0xe2)+_0x467319+'@'+(_0x1ddfa2||_0x3392b5(0xe6));console[_0x3392b5(0xd8)](),console[_0x3392b5(0xd8)](''+_0x1bbdba+_0x126c15+_0x3392b5(0xc7)+_0x3227be),console[_0x3392b5(0xd8)](_0x1bbdba+'\x20\x20\x20Current\x20version:\x20'+_0x467319+'@'+_0x24caff[_0x3392b5(0xd3)]+_0x3227be),console['log'](_0x1bbdba+_0x3392b5(0xc6)+_0x1ddfa2+_0x3227be),console[_0x3392b5(0xd8)](_0x1bbdba+_0x3392b5(0xd1)+_0xa9150a+_0x3227be),console['log']();}
@@ -1 +1 @@
1
- function a337_0x9a0c(_0x5f4446,_0x393dc2){_0x5f4446=_0x5f4446-0x143;const _0xc289d0=a337_0xc289();let _0x9a0c=_0xc289d0[_0x5f4446];return _0x9a0c;}(function(_0x5d2fa7,_0x4db173){const _0x42e1e0=a337_0x9a0c,_0x22c026=_0x5d2fa7();while(!![]){try{const _0x264dbe=parseInt(_0x42e1e0(0x14b))/0x1*(parseInt(_0x42e1e0(0x164))/0x2)+parseInt(_0x42e1e0(0x157))/0x3+-parseInt(_0x42e1e0(0x162))/0x4*(-parseInt(_0x42e1e0(0x165))/0x5)+parseInt(_0x42e1e0(0x161))/0x6*(parseInt(_0x42e1e0(0x15f))/0x7)+parseInt(_0x42e1e0(0x143))/0x8+parseInt(_0x42e1e0(0x16c))/0x9*(parseInt(_0x42e1e0(0x144))/0xa)+-parseInt(_0x42e1e0(0x16a))/0xb;if(_0x264dbe===_0x4db173)break;else _0x22c026['push'](_0x22c026['shift']());}catch(_0x50b26b){_0x22c026['push'](_0x22c026['shift']());}}}(a337_0xc289,0xa2833));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a337_0x31ff83 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x540ff7){const _0x59d332=a337_0x9a0c,_0x111bf6=_0x540ff7[_0x59d332(0x14c)]||_0x59d332(0x14f);return _0x59d332(0x150)+NPM_PACKAGE_NAME+'@'+_0x111bf6;}function getCurrentCliVersion(){const _0x1e8d7f=a337_0x9a0c;try{const _0x5925e6=fileURLToPath(import.meta.url),_0x3776b8=resolve(dirname(_0x5925e6),_0x1e8d7f(0x160)),_0xeadc34=resolve(_0x3776b8,_0x1e8d7f(0x15b)),_0x37696c=JSON[_0x1e8d7f(0x15e)](readFileSync(_0xeadc34,_0x1e8d7f(0x152)));return _0x37696c[_0x1e8d7f(0x163)]||_0x1e8d7f(0x15d);}catch{return _0x1e8d7f(0x15d);}}export async function checkCliVersion(){const _0x1776de=a337_0x9a0c,_0x44b979=getCurrentCliVersion(),_0x1f7677=await getCliVersionPolicy(),_0x35af70=_0x1f7677?.[_0x1776de(0x14c)]||null,_0x309b11=_0x1f7677?.[_0x1776de(0x156)]||null;let _0x5adb89=![],_0xc2090e=![];const _0x187fab=a337_0x31ff83['coerce'](_0x44b979);if(_0x187fab&&_0x35af70)try{const _0x2368e6=a337_0x31ff83[_0x1776de(0x16e)](_0x35af70);if(_0x2368e6)_0x5adb89=a337_0x31ff83['lt'](_0x187fab,_0x2368e6);}catch{}if(_0x187fab&&_0x309b11)try{const _0x29d62d=a337_0x31ff83['coerce'](_0x309b11);if(_0x29d62d)_0xc2090e=a337_0x31ff83['lt'](_0x187fab,_0x29d62d);}catch{}return _0xc2090e&&(_0x5adb89=!![]),{'currentVersion':_0x44b979,'stableVersion':_0x35af70,'minimumVersion':_0x309b11,'needsUpgrade':_0x5adb89,'belowMinimum':_0xc2090e,'isPreRelease':![],'upgradeMessage':_0x1f7677?.[_0x1776de(0x151)],'minimumVersionMessage':_0x1f7677?.['minimumVersionMessage']};}function a337_0xc289(){const _0xc560cd=['needsUpgrade','latest','npm\x20install\x20-g\x20','upgradeMessage','utf-8','log','Current\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersion','1630962sEAbBH','\x1b[33m','Upgrade\x20command:\x20','\x20\x20\x20Minimum\x20supported:\x20','package.json','↪\x20New\x20version\x20available','1.0.0','parse','14UMwUZL','../..','331164SKSXDh','2993532DnhkzA','version','2250518nOUzdG','5JJphGs','filter','\x1b[0m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','33891847KjjZfG','\x20\x20\x20Stable\x20version:\x20','9ZhJDaL','Minimum\x20supported:\x20','coerce','join','6281704iRUPLZ','4338310HaKPsJ','validation','\x20\x20\x20','belowMinimum','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Upgrade\x20command:\x20','1SoFnrk','stableVersion','currentVersion'];a337_0xc289=function(){return _0xc560cd;};return a337_0xc289();}export function printCliUpgradeWarning(_0xd5add1){const _0x41138a=a337_0x9a0c;if(!_0xd5add1[_0x41138a(0x14e)]&&!_0xd5add1[_0x41138a(0x147)])return;const _0x210029='\x1b[31m',_0x143b04=_0x41138a(0x158),_0x2d6ec4=_0x41138a(0x167),_0x4806c3='\x1b[1m',_0x2a8f9c=getCliUpgradeCommand(_0xd5add1);console[_0x41138a(0x153)](),_0xd5add1[_0x41138a(0x147)]?(console[_0x41138a(0x153)](''+_0x210029+_0x4806c3+_0x41138a(0x155)+_0x2d6ec4),console[_0x41138a(0x153)](_0x210029+_0x41138a(0x148)+_0xd5add1[_0x41138a(0x14d)]+_0x2d6ec4),_0xd5add1['minimumVersion']&&console[_0x41138a(0x153)](_0x210029+_0x41138a(0x15a)+_0xd5add1[_0x41138a(0x156)]+_0x2d6ec4),_0xd5add1[_0x41138a(0x14c)]&&_0xd5add1[_0x41138a(0x14c)]!==_0xd5add1[_0x41138a(0x156)]&&console[_0x41138a(0x153)](_0x210029+_0x41138a(0x149)+_0xd5add1[_0x41138a(0x14c)]+_0x2d6ec4),_0xd5add1['minimumVersionMessage']&&console[_0x41138a(0x153)](_0x210029+_0x41138a(0x146)+_0xd5add1[_0x41138a(0x169)]+_0x2d6ec4),console['log'](_0x210029+_0x41138a(0x14a)+_0x2a8f9c+_0x2d6ec4)):(console[_0x41138a(0x153)](''+_0x143b04+_0x4806c3+_0x41138a(0x15c)+_0x2d6ec4),console['log'](_0x143b04+_0x41138a(0x148)+_0xd5add1[_0x41138a(0x14d)]+_0x2d6ec4),console['log'](_0x143b04+_0x41138a(0x16b)+_0xd5add1['stableVersion']+_0x2d6ec4),_0xd5add1[_0x41138a(0x151)]&&console[_0x41138a(0x153)](_0x143b04+_0x41138a(0x146)+_0xd5add1[_0x41138a(0x151)]+_0x2d6ec4),console[_0x41138a(0x153)](_0x143b04+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2a8f9c+_0x2d6ec4)),console['log']();}export function assertCliVersionSupported(_0x22f981){const _0x3cbb96=a337_0x9a0c;if(!_0x22f981[_0x3cbb96(0x147)])return;const _0x3e8a28=[_0x22f981[_0x3cbb96(0x169)],_0x3cbb96(0x154)+_0x22f981[_0x3cbb96(0x14d)],_0x22f981[_0x3cbb96(0x156)]?_0x3cbb96(0x16d)+_0x22f981[_0x3cbb96(0x156)]:null,_0x3cbb96(0x159)+getCliUpgradeCommand(_0x22f981)][_0x3cbb96(0x166)](Boolean)[_0x3cbb96(0x16f)]('\x0a');throw CliErrors[_0x3cbb96(0x145)](_0x3cbb96(0x168),_0x3e8a28);}
1
+ function a337_0x498d(){const _0x195c79=['1.0.0','filter','2456ulmQAT','npm\x20install\x20-g\x20','\x20\x20\x20','98184MxCeBU','../..','↪\x20Critical\x20CLI\x20upgrade\x20required','coerce','utf-8','4QNTLqD','minimumVersion','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','validation','latest','parse','5yyuvqn','upgradeMessage','\x20\x20\x20Minimum\x20supported:\x20','12UPMfHO','\x1b[33m','stableVersion','12229lkLNiL','Current\x20version:\x20','6QzkJYE','1725669qmkmtM','minimumVersionMessage','join','2730wIUlun','4399896sAtBkS','version','\x20\x20\x20Current\x20CLI\x20version:\x20','log','\x20\x20\x20Stable\x20version:\x20','100478JcMoTw','belowMinimum','72jRfTtb','↪\x20New\x20version\x20available','\x20\x20\x20Upgrade\x20command:\x20','205336EqAtNq','528790KgYRYs','\x1b[0m','currentVersion'];a337_0x498d=function(){return _0x195c79;};return a337_0x498d();}(function(_0x2f2b0c,_0x223718){const _0x1b5905=a337_0x1a98,_0x504d10=_0x2f2b0c();while(!![]){try{const _0xed1584=parseInt(_0x1b5905(0x155))/0x1*(-parseInt(_0x1b5905(0x163))/0x2)+parseInt(_0x1b5905(0x146))/0x3*(parseInt(_0x1b5905(0x15e))/0x4)+-parseInt(_0x1b5905(0x13e))/0x5*(parseInt(_0x1b5905(0x14b))/0x6)+-parseInt(_0x1b5905(0x144))/0x7*(-parseInt(_0x1b5905(0x15b))/0x8)+-parseInt(_0x1b5905(0x152))/0x9*(parseInt(_0x1b5905(0x156))/0xa)+-parseInt(_0x1b5905(0x147))/0xb*(parseInt(_0x1b5905(0x141))/0xc)+-parseInt(_0x1b5905(0x14a))/0xd*(-parseInt(_0x1b5905(0x150))/0xe);if(_0xed1584===_0x223718)break;else _0x504d10['push'](_0x504d10['shift']());}catch(_0x4c8322){_0x504d10['push'](_0x504d10['shift']());}}}(a337_0x498d,0x5a034));function a337_0x1a98(_0x572881,_0x5b002f){_0x572881=_0x572881-0x139;const _0x498d49=a337_0x498d();let _0x1a98dc=_0x498d49[_0x572881];return _0x1a98dc;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a337_0x10696a from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5bb6fa){const _0x5acc77=a337_0x1a98,_0x2214cc=_0x5bb6fa[_0x5acc77(0x143)]||_0x5acc77(0x13c);return _0x5acc77(0x15c)+NPM_PACKAGE_NAME+'@'+_0x2214cc;}function getCurrentCliVersion(){const _0x242d6f=a337_0x1a98;try{const _0x27965e=fileURLToPath(import.meta.url),_0x2d6c6b=resolve(dirname(_0x27965e),_0x242d6f(0x15f)),_0x51dd99=resolve(_0x2d6c6b,'package.json'),_0x174baa=JSON[_0x242d6f(0x13d)](readFileSync(_0x51dd99,_0x242d6f(0x162)));return _0x174baa[_0x242d6f(0x14c)]||_0x242d6f(0x159);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x3f631d=a337_0x1a98,_0x58e76f=getCurrentCliVersion(),_0xc34109=await getCliVersionPolicy(),_0x2118c3=_0xc34109?.[_0x3f631d(0x143)]||null,_0x188509=_0xc34109?.[_0x3f631d(0x164)]||null;let _0x5ead62=![],_0xd8713d=![];const _0x310e3e=a337_0x10696a[_0x3f631d(0x161)](_0x58e76f);if(_0x310e3e&&_0x2118c3)try{const _0x51dd0f=a337_0x10696a[_0x3f631d(0x161)](_0x2118c3);if(_0x51dd0f)_0x5ead62=a337_0x10696a['lt'](_0x310e3e,_0x51dd0f);}catch{}if(_0x310e3e&&_0x188509)try{const _0x1f4f6f=a337_0x10696a['coerce'](_0x188509);if(_0x1f4f6f)_0xd8713d=a337_0x10696a['lt'](_0x310e3e,_0x1f4f6f);}catch{}return _0xd8713d&&(_0x5ead62=!![]),{'currentVersion':_0x58e76f,'stableVersion':_0x2118c3,'minimumVersion':_0x188509,'needsUpgrade':_0x5ead62,'belowMinimum':_0xd8713d,'isPreRelease':![],'upgradeMessage':_0xc34109?.[_0x3f631d(0x13f)],'minimumVersionMessage':_0xc34109?.[_0x3f631d(0x148)]};}export function printCliUpgradeWarning(_0x3ed096){const _0x4fab70=a337_0x1a98;if(!_0x3ed096['needsUpgrade']&&!_0x3ed096[_0x4fab70(0x151)])return;const _0xa80a2d='\x1b[31m',_0xbf463a=_0x4fab70(0x142),_0x102d4f=_0x4fab70(0x157),_0x12b5d9='\x1b[1m',_0x1479d5=getCliUpgradeCommand(_0x3ed096);console[_0x4fab70(0x14e)](),_0x3ed096[_0x4fab70(0x151)]?(console[_0x4fab70(0x14e)](''+_0xa80a2d+_0x12b5d9+_0x4fab70(0x160)+_0x102d4f),console['log'](_0xa80a2d+_0x4fab70(0x14d)+_0x3ed096['currentVersion']+_0x102d4f),_0x3ed096['minimumVersion']&&console[_0x4fab70(0x14e)](_0xa80a2d+_0x4fab70(0x140)+_0x3ed096[_0x4fab70(0x164)]+_0x102d4f),_0x3ed096['stableVersion']&&_0x3ed096[_0x4fab70(0x143)]!==_0x3ed096[_0x4fab70(0x164)]&&console[_0x4fab70(0x14e)](_0xa80a2d+'\x20\x20\x20Recommended\x20stable:\x20'+_0x3ed096[_0x4fab70(0x143)]+_0x102d4f),_0x3ed096['minimumVersionMessage']&&console[_0x4fab70(0x14e)](_0xa80a2d+'\x20\x20\x20'+_0x3ed096[_0x4fab70(0x148)]+_0x102d4f),console[_0x4fab70(0x14e)](_0xa80a2d+_0x4fab70(0x154)+_0x1479d5+_0x102d4f)):(console[_0x4fab70(0x14e)](''+_0xbf463a+_0x12b5d9+_0x4fab70(0x153)+_0x102d4f),console[_0x4fab70(0x14e)](_0xbf463a+_0x4fab70(0x14d)+_0x3ed096['currentVersion']+_0x102d4f),console[_0x4fab70(0x14e)](_0xbf463a+_0x4fab70(0x14f)+_0x3ed096[_0x4fab70(0x143)]+_0x102d4f),_0x3ed096[_0x4fab70(0x13f)]&&console[_0x4fab70(0x14e)](_0xbf463a+_0x4fab70(0x15d)+_0x3ed096['upgradeMessage']+_0x102d4f),console['log'](_0xbf463a+_0x4fab70(0x154)+_0x1479d5+_0x102d4f)),console[_0x4fab70(0x14e)]();}export function assertCliVersionSupported(_0x3ef38b){const _0x1bf9da=a337_0x1a98;if(!_0x3ef38b[_0x1bf9da(0x151)])return;const _0x4c1623=[_0x3ef38b[_0x1bf9da(0x148)],_0x1bf9da(0x145)+_0x3ef38b[_0x1bf9da(0x158)],_0x3ef38b[_0x1bf9da(0x164)]?'Minimum\x20supported:\x20'+_0x3ef38b[_0x1bf9da(0x164)]:null,_0x1bf9da(0x139)+getCliUpgradeCommand(_0x3ef38b)][_0x1bf9da(0x15a)](Boolean)[_0x1bf9da(0x149)]('\x0a');throw CliErrors[_0x1bf9da(0x13b)](_0x1bf9da(0x13a),_0x4c1623);}
@@ -1 +1 @@
1
- (function(_0x1d8362,_0x11e3ee){const _0x1c7625=a338_0x1d87,_0x239a0c=_0x1d8362();while(!![]){try{const _0x3db3d7=parseInt(_0x1c7625(0x1a4))/0x1*(parseInt(_0x1c7625(0x1b5))/0x2)+parseInt(_0x1c7625(0x1a7))/0x3*(parseInt(_0x1c7625(0x1af))/0x4)+parseInt(_0x1c7625(0x1ba))/0x5+parseInt(_0x1c7625(0x1bc))/0x6*(parseInt(_0x1c7625(0x1bb))/0x7)+parseInt(_0x1c7625(0x1a3))/0x8*(parseInt(_0x1c7625(0x1a6))/0x9)+parseInt(_0x1c7625(0x1b9))/0xa*(-parseInt(_0x1c7625(0x1ad))/0xb)+parseInt(_0x1c7625(0x19e))/0xc*(-parseInt(_0x1c7625(0x1b0))/0xd);if(_0x3db3d7===_0x11e3ee)break;else _0x239a0c['push'](_0x239a0c['shift']());}catch(_0x137bf6){_0x239a0c['push'](_0x239a0c['shift']());}}}(a338_0x2586,0x77026));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a338_0x561a42 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2fa1c3){const _0x51e832=a338_0x1d87,_0x2d3b93=a338_0x561a42[_0x51e832(0x1aa)](_0x2fa1c3);return _0x2d3b93?a338_0x561a42[_0x51e832(0x1a2)](_0x2d3b93)?.[0x0]==='beta':![];}export function resolveProjectTemplateDescriptor(_0x1ce7ac,_0x527727){const _0x1cbc2a=a338_0x1d87;if(isBetaCliVersion(_0x527727))return _0x1ce7ac[_0x1cbc2a(0x1ab)]?.['projectTemplate']??_0x1ce7ac[_0x1cbc2a(0x1b1)];return _0x1ce7ac['projectTemplate'];}function pickString(_0x21b29e){const _0x60abdb=a338_0x1d87;return typeof _0x21b29e==='string'&&_0x21b29e['trim']()[_0x60abdb(0x1a1)]>0x0?_0x21b29e[_0x60abdb(0x1ac)]():null;}function normalizeCliVersionPolicy(_0x1839d2){const _0x2cc53e=a338_0x1d87;if(!_0x1839d2||typeof _0x1839d2!==_0x2cc53e(0x1a8))return null;const _0x5bd57d=_0x1839d2,_0x4e2553=_0x5bd57d[_0x2cc53e(0x19f)]&&typeof _0x5bd57d[_0x2cc53e(0x19f)]===_0x2cc53e(0x1a8)?_0x5bd57d['cli']:_0x5bd57d,_0x527f19=pickString(_0x4e2553[_0x2cc53e(0x1b4)])||pickString(_0x4e2553[_0x2cc53e(0x1b8)])||pickString(_0x4e2553[_0x2cc53e(0x19d)]),_0x3b8633=pickString(_0x4e2553[_0x2cc53e(0x1b2)])||pickString(_0x4e2553['minVersion']);if(!_0x527f19&&!_0x3b8633)return null;return{'stableVersion':_0x527f19,'minimumVersion':_0x3b8633,'upgradeMessage':pickString(_0x4e2553[_0x2cc53e(0x1b7)])||undefined,'minimumVersionMessage':pickString(_0x4e2553[_0x2cc53e(0x1b3)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x38377a){const _0x44070c=a338_0x1d87,_0x11a8d0=new AbortController(),_0x25a05b=setTimeout(()=>_0x11a8d0[_0x44070c(0x1a5)](),FETCH_TIMEOUT_MS);try{const _0x319da6=await fetch(_0x38377a,{'headers':{'Accept':_0x44070c(0x1a9)},'signal':_0x11a8d0[_0x44070c(0x1ae)]});if(!_0x319da6['ok'])return null;const _0x4deb9b=await _0x319da6[_0x44070c(0x1a0)]();return _0x4deb9b&&typeof _0x4deb9b===_0x44070c(0x1a8)?_0x4deb9b:null;}catch{return null;}finally{clearTimeout(_0x25a05b);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}function a338_0x1d87(_0x27b8ed,_0x4784d8){_0x27b8ed=_0x27b8ed-0x19d;const _0x2586c4=a338_0x2586();let _0x1d87c9=_0x2586c4[_0x27b8ed];return _0x1d87c9;}export async function fetchProjectTemplateCdnConfig(){const _0x46851e=await getRabetbaseCdnConfig();return _0x46851e?{'config':_0x46851e,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}function a338_0x2586(){const _0x21db1a=['cli','json','length','prerelease','56712RYRBIN','149mnKxOl','abort','495SQcNei','345756wanWSe','object','application/json','valid','beta','trim','9900YHYrQx','signal','4YXERvC','13mnowLh','projectTemplate','minimumVersion','minimumVersionMessage','stableVersion','3620eRBCrG','now','upgradeMessage','latestVersion','500bIQLHn','101005SvNRXq','2546299YqAGxB','6mxSBPg','recommendedVersion','7515996aZiygB'];a338_0x2586=function(){return _0x21db1a;};return a338_0x2586();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1205cd=a338_0x1d87,_0x188ee2=Date[_0x1205cd(0x1b6)]();if(hasCachedConfig){const _0x42c73c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x188ee2-cacheTime<_0x42c73c)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x188ee2,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x168bce,_0x4fa94f){const _0x1e608f=a338_0x2b8d,_0x5ef7f1=_0x168bce();while(!![]){try{const _0xaf7e05=parseInt(_0x1e608f(0x127))/0x1+-parseInt(_0x1e608f(0x128))/0x2+parseInt(_0x1e608f(0x126))/0x3*(-parseInt(_0x1e608f(0x12c))/0x4)+-parseInt(_0x1e608f(0x125))/0x5+-parseInt(_0x1e608f(0x134))/0x6+parseInt(_0x1e608f(0x12d))/0x7+parseInt(_0x1e608f(0x13a))/0x8;if(_0xaf7e05===_0x4fa94f)break;else _0x5ef7f1['push'](_0x5ef7f1['shift']());}catch(_0x4e67ff){_0x5ef7f1['push'](_0x5ef7f1['shift']());}}}(a338_0x4948,0x7d36a));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a338_0x936b46 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x48ce9c){const _0xf68bcc=a338_0x2b8d,_0x369fe1=a338_0x936b46[_0xf68bcc(0x132)](_0x48ce9c);return _0x369fe1?a338_0x936b46[_0xf68bcc(0x131)](_0x369fe1)?.[0x0]===_0xf68bcc(0x12a):![];}export function resolveProjectTemplateDescriptor(_0x96e990,_0x491119){const _0x5c921e=a338_0x2b8d;if(isBetaCliVersion(_0x491119))return _0x96e990[_0x5c921e(0x12a)]?.[_0x5c921e(0x12e)]??_0x96e990['projectTemplate'];return _0x96e990[_0x5c921e(0x12e)];}function pickString(_0x12a697){const _0x3f645c=a338_0x2b8d;return typeof _0x12a697===_0x3f645c(0x139)&&_0x12a697['trim']()[_0x3f645c(0x13b)]>0x0?_0x12a697[_0x3f645c(0x135)]():null;}function normalizeCliVersionPolicy(_0x511105){const _0x137747=a338_0x2b8d;if(!_0x511105||typeof _0x511105!=='object')return null;const _0x59d391=_0x511105,_0x5a72ab=_0x59d391['cli']&&typeof _0x59d391[_0x137747(0x136)]==='object'?_0x59d391[_0x137747(0x136)]:_0x59d391,_0x2a7246=pickString(_0x5a72ab['stableVersion'])||pickString(_0x5a72ab[_0x137747(0x12f)])||pickString(_0x5a72ab['recommendedVersion']),_0x173784=pickString(_0x5a72ab['minimumVersion'])||pickString(_0x5a72ab['minVersion']);if(!_0x2a7246&&!_0x173784)return null;return{'stableVersion':_0x2a7246,'minimumVersion':_0x173784,'upgradeMessage':pickString(_0x5a72ab[_0x137747(0x133)])||undefined,'minimumVersionMessage':pickString(_0x5a72ab[_0x137747(0x137)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x493cea){const _0x52ea02=a338_0x2b8d,_0x810e59=new AbortController(),_0x1de230=setTimeout(()=>_0x810e59[_0x52ea02(0x138)](),FETCH_TIMEOUT_MS);try{const _0x407d79=await fetch(_0x493cea,{'headers':{'Accept':_0x52ea02(0x129)},'signal':_0x810e59['signal']});if(!_0x407d79['ok'])return null;const _0x27696a=await _0x407d79['json']();return _0x27696a&&typeof _0x27696a===_0x52ea02(0x12b)?_0x27696a:null;}catch{return null;}finally{clearTimeout(_0x1de230);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}function a338_0x4948(){const _0x57cb96=['trim','cli','minimumVersionMessage','abort','string','7053800nubOlG','length','1107350JZiEdq','96933iQabMj','947584ORUxNt','1614408tGgdxw','application/json','beta','object','12ebEShc','3636535IOpbXw','projectTemplate','latestVersion','now','prerelease','valid','upgradeMessage','4261998BsCxGi'];a338_0x4948=function(){return _0x57cb96;};return a338_0x4948();}export async function fetchProjectTemplateCdnConfig(){const _0x4b8d58=await getRabetbaseCdnConfig();return _0x4b8d58?{'config':_0x4b8d58,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4d0615=a338_0x2b8d,_0x486d62=Date[_0x4d0615(0x130)]();if(hasCachedConfig){const _0x573ff3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x486d62-cacheTime<_0x573ff3)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x486d62,hasCachedConfig=!![],cachedConfig;}function a338_0x2b8d(_0x3ecf8d,_0x133981){_0x3ecf8d=_0x3ecf8d-0x125;const _0x494812=a338_0x4948();let _0x2b8dab=_0x494812[_0x3ecf8d];return _0x2b8dab;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a339_0x30f68b=a339_0x4139;(function(_0xa3749b,_0x13b23c){const _0x52e036=a339_0x4139,_0xfbc238=_0xa3749b();while(!![]){try{const _0x42e9f3=-parseInt(_0x52e036(0x11d))/0x1+parseInt(_0x52e036(0x112))/0x2+-parseInt(_0x52e036(0x11f))/0x3*(-parseInt(_0x52e036(0x113))/0x4)+-parseInt(_0x52e036(0x118))/0x5+parseInt(_0x52e036(0x11c))/0x6*(-parseInt(_0x52e036(0x11e))/0x7)+-parseInt(_0x52e036(0x116))/0x8*(parseInt(_0x52e036(0x11b))/0x9)+-parseInt(_0x52e036(0x117))/0xa*(-parseInt(_0x52e036(0x11a))/0xb);if(_0x42e9f3===_0x13b23c)break;else _0xfbc238['push'](_0xfbc238['shift']());}catch(_0x65bc81){_0xfbc238['push'](_0xfbc238['shift']());}}}(a339_0x15f4,0x7d619));function a339_0x15f4(){const _0x3d67df=['env','string','200272JswJFs','460wsXGWc','581615myaDbs','project','410894bIkxhT','27pVjzQm','32646YnlpsJ','971418upaxlf','1029gFITIC','252171ypSzhX','339096ujpnOg','28CJwPje'];a339_0x15f4=function(){return _0x3d67df;};return a339_0x15f4();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a339_0x50c842,getMultiAppConfigs as a339_0x3d5161,getTemplateBaseUrl as a339_0x3cbb43}from'../context.js';function a339_0x4139(_0x13a9a3,_0x5cee29){_0x13a9a3=_0x13a9a3-0x112;const _0x15f40a=a339_0x15f4();let _0x413961=_0x15f40a[_0x13a9a3];return _0x413961;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2eb967){const _0x51627f=a339_0x4139,_0x58ca6b=readRawConfig(_0x2eb967);return _0x58ca6b[_0x51627f(0x114)]&&typeof _0x58ca6b['env']===_0x51627f(0x115)&&initEnv(_0x58ca6b[_0x51627f(0x114)]),_0x58ca6b;}export function getConfigAppCode(){return a339_0x50c842();}export function getMultiAppConfigs(_0x4aa1e9=a339_0x30f68b(0x119)){return a339_0x3d5161(_0x4aa1e9);}export function getTemplateBaseUrl(){return a339_0x3cbb43();}
1
+ const a339_0x5f50e7=a339_0x573d;(function(_0x38cbeb,_0x376629){const _0xe246f=a339_0x573d,_0x580c65=_0x38cbeb();while(!![]){try{const _0x2e5fe6=-parseInt(_0xe246f(0x91))/0x1+-parseInt(_0xe246f(0x8e))/0x2+parseInt(_0xe246f(0x90))/0x3+-parseInt(_0xe246f(0x8f))/0x4+parseInt(_0xe246f(0x8a))/0x5+parseInt(_0xe246f(0x8d))/0x6+-parseInt(_0xe246f(0x8b))/0x7;if(_0x2e5fe6===_0x376629)break;else _0x580c65['push'](_0x580c65['shift']());}catch(_0x4309f4){_0x580c65['push'](_0x580c65['shift']());}}}(a339_0x2002,0xd4c34));function a339_0x2002(){const _0x17e60f=['6415716cRMicr','1232986WXdwnn','4244184hZhrXw','4509744DugYDB','795531sfURJl','string','env','6259005gVDmXe','3358523aFIUwy','project'];a339_0x2002=function(){return _0x17e60f;};return a339_0x2002();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a339_0x7d0895,getMultiAppConfigs as a339_0x473898,getTemplateBaseUrl as a339_0x1a41cb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2864d7){const _0x4ed72f=a339_0x573d,_0x1e8ed1=readRawConfig(_0x2864d7);return _0x1e8ed1[_0x4ed72f(0x89)]&&typeof _0x1e8ed1[_0x4ed72f(0x89)]===_0x4ed72f(0x92)&&initEnv(_0x1e8ed1[_0x4ed72f(0x89)]),_0x1e8ed1;}export function getConfigAppCode(){return a339_0x7d0895();}export function getMultiAppConfigs(_0x466c78=a339_0x5f50e7(0x8c)){return a339_0x473898(_0x466c78);}function a339_0x573d(_0x4ec7aa,_0x31163c){_0x4ec7aa=_0x4ec7aa-0x89;const _0x200259=a339_0x2002();let _0x573df2=_0x200259[_0x4ec7aa];return _0x573df2;}export function getTemplateBaseUrl(){return a339_0x1a41cb();}
@@ -1 +1 @@
1
- (function(_0x571fb0,_0x1a0643){const _0x19c795=a340_0x5d6e,_0x20ec76=_0x571fb0();while(!![]){try{const _0x5f18ad=parseInt(_0x19c795(0x1ec))/0x1*(-parseInt(_0x19c795(0x1ed))/0x2)+-parseInt(_0x19c795(0x1eb))/0x3+-parseInt(_0x19c795(0x1e6))/0x4*(parseInt(_0x19c795(0x1e7))/0x5)+-parseInt(_0x19c795(0x1e8))/0x6+parseInt(_0x19c795(0x1f0))/0x7+-parseInt(_0x19c795(0x1f1))/0x8+parseInt(_0x19c795(0x1ef))/0x9*(parseInt(_0x19c795(0x1f2))/0xa);if(_0x5f18ad===_0x1a0643)break;else _0x20ec76['push'](_0x20ec76['shift']());}catch(_0x108c9b){_0x20ec76['push'](_0x20ec76['shift']());}}}(a340_0x1f7a,0x60025));function a340_0x5d6e(_0x5e63c7,_0x49939f){_0x5e63c7=_0x5e63c7-0x1e5;const _0x1f7a9a=a340_0x1f7a();let _0x5d6ec1=_0x1f7a9a[_0x5e63c7];return _0x5d6ec1;}function a340_0x1f7a(){const _0x44005f=['370320LdqzPb','82013AQsplI','10EIIOaY','number','15163182ztCzgd','3106558NpGjGy','1334720UUsLjP','10hLgLGS','isFinite','127812KdJSwi','45SHJehI','4484502HgtPZM','object','trim'];a340_0x1f7a=function(){return _0x44005f;};return a340_0x1f7a();}function toFiniteNumber(_0x30de2b){const _0x5c8c18=a340_0x5d6e;if(typeof _0x30de2b===_0x5c8c18(0x1ee)&&Number['isFinite'](_0x30de2b))return _0x30de2b;if(typeof _0x30de2b==='string'){const _0xfd4759=_0x30de2b[_0x5c8c18(0x1ea)]();if(!_0xfd4759)return undefined;const _0x2f3a87=Number(_0xfd4759);if(Number[_0x5c8c18(0x1e5)](_0x2f3a87))return _0x2f3a87;}return undefined;}export function normalizeEntityWithIdResponse(_0x322cbf){const _0x502dc6=a340_0x5d6e,_0x57533d=toFiniteNumber(_0x322cbf);if(_0x57533d!==undefined)return{'id':_0x57533d,'entity':{'id':_0x57533d}};if(!_0x322cbf||typeof _0x322cbf!==_0x502dc6(0x1e9))return{'id':undefined,'entity':{}};const _0x98ea07={..._0x322cbf},_0x5ac609=toFiniteNumber(_0x98ea07['id']);return _0x5ac609!==undefined&&(_0x98ea07['id']=_0x5ac609),{'id':_0x5ac609,'entity':_0x98ea07};}
1
+ (function(_0x1cd7af,_0x471b4d){const _0xb3a0a2=a340_0x34ee,_0x4e6e8a=_0x1cd7af();while(!![]){try{const _0x814da1=-parseInt(_0xb3a0a2(0xa7))/0x1+-parseInt(_0xb3a0a2(0xa3))/0x2*(parseInt(_0xb3a0a2(0xaa))/0x3)+parseInt(_0xb3a0a2(0xaf))/0x4+-parseInt(_0xb3a0a2(0xae))/0x5+parseInt(_0xb3a0a2(0xa5))/0x6+parseInt(_0xb3a0a2(0xa6))/0x7*(-parseInt(_0xb3a0a2(0xa2))/0x8)+parseInt(_0xb3a0a2(0xa9))/0x9*(parseInt(_0xb3a0a2(0xa8))/0xa);if(_0x814da1===_0x471b4d)break;else _0x4e6e8a['push'](_0x4e6e8a['shift']());}catch(_0x3a88ae){_0x4e6e8a['push'](_0x4e6e8a['shift']());}}}(a340_0x12ec,0x8df76));function a340_0x34ee(_0x3c7603,_0x456ae3){_0x3c7603=_0x3c7603-0xa1;const _0x12ecba=a340_0x12ec();let _0x34ee23=_0x12ecba[_0x3c7603];return _0x34ee23;}function toFiniteNumber(_0x1bd23f){const _0x17cba1=a340_0x34ee;if(typeof _0x1bd23f===_0x17cba1(0xa4)&&Number['isFinite'](_0x1bd23f))return _0x1bd23f;if(typeof _0x1bd23f===_0x17cba1(0xab)){const _0x511dfb=_0x1bd23f[_0x17cba1(0xad)]();if(!_0x511dfb)return undefined;const _0x26b785=Number(_0x511dfb);if(Number[_0x17cba1(0xa1)](_0x26b785))return _0x26b785;}return undefined;}export function normalizeEntityWithIdResponse(_0x39dee8){const _0x238a56=a340_0x34ee,_0x9a66f6=toFiniteNumber(_0x39dee8);if(_0x9a66f6!==undefined)return{'id':_0x9a66f6,'entity':{'id':_0x9a66f6}};if(!_0x39dee8||typeof _0x39dee8!==_0x238a56(0xac))return{'id':undefined,'entity':{}};const _0x56c200={..._0x39dee8},_0x32f34a=toFiniteNumber(_0x56c200['id']);return _0x32f34a!==undefined&&(_0x56c200['id']=_0x32f34a),{'id':_0x32f34a,'entity':_0x56c200};}function a340_0x12ec(){const _0x4a374b=['string','object','trim','5117155EPAzrY','517172tiZSdZ','isFinite','3302776CKAJoj','2WIPJtK','number','3294756jHqczj','7lSQapf','932804ZAmUsE','8003260RPqthk','27OqdKff','386463LgHDen'];a340_0x12ec=function(){return _0x4a374b;};return a340_0x12ec();}
@@ -1 +1 @@
1
- (function(_0x259865,_0x59ec5c){const _0x43cb28=a341_0x59b5,_0x1ac74b=_0x259865();while(!![]){try{const _0x4fcdd0=parseInt(_0x43cb28(0x99))/0x1+parseInt(_0x43cb28(0x96))/0x2*(-parseInt(_0x43cb28(0x9b))/0x3)+-parseInt(_0x43cb28(0x97))/0x4+parseInt(_0x43cb28(0x98))/0x5+-parseInt(_0x43cb28(0x9a))/0x6*(parseInt(_0x43cb28(0x9d))/0x7)+parseInt(_0x43cb28(0x94))/0x8+-parseInt(_0x43cb28(0x9c))/0x9;if(_0x4fcdd0===_0x59ec5c)break;else _0x1ac74b['push'](_0x1ac74b['shift']());}catch(_0x33f249){_0x1ac74b['push'](_0x1ac74b['shift']());}}}(a341_0xad97,0xa854e));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x316e65,_0x43f42b){const _0x3d61da=a341_0x59b5,_0x277729=statSync(_0x316e65);if(_0x277729[_0x3d61da(0x95)]()){!existsSync(_0x43f42b)&&mkdirSync(_0x43f42b,{'recursive':!![]});const _0x498dcb=readdirSync(_0x316e65);for(const _0x1b496c of _0x498dcb){await copyDir(join(_0x316e65,_0x1b496c),join(_0x43f42b,_0x1b496c));}}else copyFileSync(_0x316e65,_0x43f42b);}function a341_0x59b5(_0x39a481,_0xefb67b){_0x39a481=_0x39a481-0x94;const _0xad97aa=a341_0xad97();let _0x59b5e9=_0xad97aa[_0x39a481];return _0x59b5e9;}export function ensureDir(_0x1b2ae0){!existsSync(_0x1b2ae0)&&mkdirSync(_0x1b2ae0,{'recursive':!![]});}function a341_0xad97(){const _0x4d7706=['3623704CnVzpH','6061704fCkldR','isDirectory','4NCpqyU','4881456GNhMxl','5445265thLWjC','1237923OUMTuu','6pNWaiF','778443LSdLlU','1243845LDGrgM'];a341_0xad97=function(){return _0x4d7706;};return a341_0xad97();}export function pathExists(_0x248a73){return existsSync(_0x248a73);}
1
+ (function(_0x467a3b,_0x11694d){const _0x42d59a=a341_0x4b07,_0x550b27=_0x467a3b();while(!![]){try{const _0x24f848=-parseInt(_0x42d59a(0xbe))/0x1*(parseInt(_0x42d59a(0xc0))/0x2)+-parseInt(_0x42d59a(0xc5))/0x3+parseInt(_0x42d59a(0xc1))/0x4+parseInt(_0x42d59a(0xbf))/0x5+parseInt(_0x42d59a(0xc3))/0x6+parseInt(_0x42d59a(0xc2))/0x7*(-parseInt(_0x42d59a(0xc6))/0x8)+-parseInt(_0x42d59a(0xc4))/0x9;if(_0x24f848===_0x11694d)break;else _0x550b27['push'](_0x550b27['shift']());}catch(_0x2ec454){_0x550b27['push'](_0x550b27['shift']());}}}(a341_0x1488,0x6e014));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a341_0x4b07(_0x4a08ac,_0x5b7f96){_0x4a08ac=_0x4a08ac-0xbd;const _0x14889f=a341_0x1488();let _0x4b07bd=_0x14889f[_0x4a08ac];return _0x4b07bd;}export async function copyDir(_0x275c17,_0x106917){const _0x3aa931=a341_0x4b07,_0x22ad57=statSync(_0x275c17);if(_0x22ad57[_0x3aa931(0xbd)]()){!existsSync(_0x106917)&&mkdirSync(_0x106917,{'recursive':!![]});const _0x53ed6c=readdirSync(_0x275c17);for(const _0x353f2d of _0x53ed6c){await copyDir(join(_0x275c17,_0x353f2d),join(_0x106917,_0x353f2d));}}else copyFileSync(_0x275c17,_0x106917);}export function ensureDir(_0x27307d){!existsSync(_0x27307d)&&mkdirSync(_0x27307d,{'recursive':!![]});}function a341_0x1488(){const _0x248818=['1411230UXVyip','39374mSwiSB','2910500uHRosP','7AlYlXk','4925652puMnua','9622332viAVkr','836181xZtzEV','101368tqqtRZ','isDirectory','1IifyVN'];a341_0x1488=function(){return _0x248818;};return a341_0x1488();}export function pathExists(_0x885b90){return existsSync(_0x885b90);}
@@ -1 +1 @@
1
- const a342_0x27dfb4=a342_0x4346;(function(_0x5a447b,_0x31ef72){const _0x1fd2b2=a342_0x4346,_0x3478b5=_0x5a447b();while(!![]){try{const _0x6c14b6=-parseInt(_0x1fd2b2(0x107))/0x1*(parseInt(_0x1fd2b2(0x10d))/0x2)+parseInt(_0x1fd2b2(0x10a))/0x3+parseInt(_0x1fd2b2(0x11b))/0x4+parseInt(_0x1fd2b2(0x103))/0x5+parseInt(_0x1fd2b2(0x10b))/0x6*(parseInt(_0x1fd2b2(0x116))/0x7)+parseInt(_0x1fd2b2(0x120))/0x8*(parseInt(_0x1fd2b2(0x119))/0x9)+-parseInt(_0x1fd2b2(0x113))/0xa;if(_0x6c14b6===_0x31ef72)break;else _0x3478b5['push'](_0x3478b5['shift']());}catch(_0x45ae14){_0x3478b5['push'](_0x3478b5['shift']());}}}(a342_0x27e4,0xba56d));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a342_0x27e4(){const _0x3136a9=['276zOWwRU','CDN\x20request\x20failed:\x20','1038722hPSFGR','json','CDN\x20data\x20is\x20missing\x20skillTemplate','CDN\x20returned\x20invalid\x20data','skillTemplate','trimEnd','7701020COAGps','.md','entries','63511wzZsFn','map','join','81OhrBSz','title','5434768yenZTK','\x0a\x0a>更新时间:','/skills/guides.json','application/json','replace','19128kjBObM','statusText','cache','extendContent','push','utf-8','295480SfbKLw','lastUpdated','guides','content','1BCnfmy','object','.lovrabet/skill/guides','588129cReoXF'];a342_0x27e4=function(){return _0x3136a9;};return a342_0x27e4();}function getGuidesCdnUrl(){const _0x58fa52=a342_0x4346,_0x580634=getTemplateBaseUrl();return _0x580634+_0x58fa52(0x11d);}const CACHE_DIR=join(homedir(),'.lovrabet',a342_0x27dfb4(0xff));export async function fetchGuidesFromCDN(){const _0x127131=a342_0x27dfb4,_0x244be8=getGuidesCdnUrl(),_0x5ef005=await fetch(_0x244be8,{'headers':{'Accept':_0x127131(0x11e)}});if(!_0x5ef005['ok'])throw new Error(_0x127131(0x10c)+_0x5ef005['status']+'\x20'+_0x5ef005[_0x127131(0xfe)]);const _0xa5458c=await _0x5ef005[_0x127131(0x10e)]();if(!_0xa5458c[_0x127131(0x105)]||typeof _0xa5458c[_0x127131(0x105)]!==_0x127131(0x108))throw new Error(_0x127131(0x110));return _0xa5458c;}function a342_0x4346(_0x5de24e,_0x43123c){_0x5de24e=_0x5de24e-0xfe;const _0x27e4bf=a342_0x27e4();let _0x434657=_0x27e4bf[_0x5de24e];return _0x434657;}export function writeGuidesToProject(_0x4e4b68,_0x54a630,_0x512df2=a342_0x27dfb4(0x109),_0x5b5d6a){const _0x1fd34a=a342_0x27dfb4,_0x3f6b38=join(_0x54a630,_0x512df2);mkdirSync(_0x3f6b38,{'recursive':!![]});for(const [_0x57d807,_0x54c4ff]of Object[_0x1fd34a(0x115)](_0x4e4b68[_0x1fd34a(0x105)])){let _0x5092ad=_0x54c4ff['content'];_0x54c4ff[_0x1fd34a(0x104)]&&(_0x5092ad=appendUpdateTime(_0x5092ad,_0x54c4ff['lastUpdated'])),writeFileSync(join(_0x3f6b38,_0x57d807+_0x1fd34a(0x114)),_0x5092ad,'utf-8');}}export function appendUpdateTime(_0x126867,_0x549518){const _0x4c1dfd=a342_0x27dfb4;return _0x126867=_0x126867[_0x4c1dfd(0x11f)](/\n*>更新时间:.*$/m,''),_0x126867[_0x4c1dfd(0x112)]()+(_0x4c1dfd(0x11c)+_0x549518);}export function getSkillTemplate(_0x3f458c){const _0x28bd22=a342_0x27dfb4;return _0x3f458c['skillTemplate']?.[_0x28bd22(0x106)]||'';}export function appendExtendContents(_0x46771c,_0x275c37,_0x11d834){const _0xbb92ad=a342_0x27dfb4,_0x13094b=[];for(const [,_0x2d90ef]of Object[_0xbb92ad(0x115)](_0x275c37[_0xbb92ad(0x105)])){_0x2d90ef[_0xbb92ad(0x100)]&&_0x13094b[_0xbb92ad(0x101)](_0x2d90ef[_0xbb92ad(0x100)][_0xbb92ad(0x112)]());}if(_0x13094b['length']===0x0)return _0x46771c;return _0x46771c['trimEnd']()+'\x0a\x0a'+_0x13094b[_0xbb92ad(0x118)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x59a276,_0x48b1fc,_0x653c97){const _0x5dd71c=a342_0x27dfb4,_0x3219fd=getSkillTemplate(_0x59a276);if(!_0x3219fd)throw new Error(_0x5dd71c(0x10f));const _0x125de9=dirname(_0x48b1fc);mkdirSync(_0x125de9,{'recursive':!![]});let _0x2f4190=_0x3219fd[_0x5dd71c(0x11f)](/\{\{IDE_NAME\}\}/g,_0x653c97);_0x2f4190=appendExtendContents(_0x2f4190,_0x59a276),_0x59a276[_0x5dd71c(0x111)][_0x5dd71c(0x104)]&&(_0x2f4190=appendUpdateTime(_0x2f4190,_0x59a276[_0x5dd71c(0x111)][_0x5dd71c(0x104)])),writeFileSync(_0x48b1fc,_0x2f4190,_0x5dd71c(0x102));}export async function installGuides(_0x13d30e){const _0x57cad1=a342_0x27dfb4,_0x56c43e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x56c43e,_0x13d30e),Object['keys'](_0x56c43e[_0x57cad1(0x105)])['length'];}export function getGuidesSummary(_0x2d6aef){const _0x36bfa4=a342_0x27dfb4;return Object['entries'](_0x2d6aef[_0x36bfa4(0x105)])[_0x36bfa4(0x117)](([_0x478e5a,_0x3ee1a8])=>({'key':_0x478e5a,'title':_0x3ee1a8[_0x36bfa4(0x11a)],'path':_0x3ee1a8['path']}));}
1
+ const a342_0x59fc3e=a342_0x49ec;(function(_0x17bf94,_0xf6d866){const _0x3ba397=a342_0x49ec,_0x2bc761=_0x17bf94();while(!![]){try{const _0x3f2533=-parseInt(_0x3ba397(0xb5))/0x1*(-parseInt(_0x3ba397(0xbb))/0x2)+-parseInt(_0x3ba397(0xce))/0x3+parseInt(_0x3ba397(0xbc))/0x4*(-parseInt(_0x3ba397(0xcd))/0x5)+-parseInt(_0x3ba397(0xb4))/0x6*(-parseInt(_0x3ba397(0xd2))/0x7)+-parseInt(_0x3ba397(0xc7))/0x8+parseInt(_0x3ba397(0xc9))/0x9*(parseInt(_0x3ba397(0xbd))/0xa)+-parseInt(_0x3ba397(0xb8))/0xb;if(_0x3f2533===_0xf6d866)break;else _0x2bc761['push'](_0x2bc761['shift']());}catch(_0x3b6ac0){_0x2bc761['push'](_0x2bc761['shift']());}}}(a342_0x1f8d,0x64679));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a342_0x1f8d(){const _0x1f86e0=['content','747386eWTuJZ','40edAGSo','12770jBTpqp','entries','trimEnd','.lovrabet','extendContent','statusText','keys','\x0a\x0a>更新时间:','guides','skillTemplate','1478696ofVxsh','status','4419SKdQCF','lastUpdated','.md','join','65015iJEYlL','741966nzYeAQ','utf-8','title','path','22414szHQvA','replace','push','CDN\x20request\x20failed:\x20','application/json','1200TQAQMT','2hJfZCB','CDN\x20returned\x20invalid\x20data','object','11454817AejLGM','length'];a342_0x1f8d=function(){return _0x1f86e0;};return a342_0x1f8d();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5bbb5a=getTemplateBaseUrl();return _0x5bbb5a+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a342_0x59fc3e(0xc0),'cache');export async function fetchGuidesFromCDN(){const _0x31748f=a342_0x59fc3e,_0x250f3b=getGuidesCdnUrl(),_0x73c96f=await fetch(_0x250f3b,{'headers':{'Accept':_0x31748f(0xd6)}});if(!_0x73c96f['ok'])throw new Error(_0x31748f(0xd5)+_0x73c96f[_0x31748f(0xc8)]+'\x20'+_0x73c96f[_0x31748f(0xc2)]);const _0x3002f7=await _0x73c96f['json']();if(!_0x3002f7[_0x31748f(0xc5)]||typeof _0x3002f7['guides']!==_0x31748f(0xb7))throw new Error(_0x31748f(0xb6));return _0x3002f7;}function a342_0x49ec(_0xdc75e2,_0x2e9514){_0xdc75e2=_0xdc75e2-0xb4;const _0x1f8d07=a342_0x1f8d();let _0x49ec59=_0x1f8d07[_0xdc75e2];return _0x49ec59;}export function writeGuidesToProject(_0x54ab20,_0x35b897,_0x3c67c7='.lovrabet/skill/guides',_0x3f5d56){const _0xf72adf=a342_0x59fc3e,_0x136467=join(_0x35b897,_0x3c67c7);mkdirSync(_0x136467,{'recursive':!![]});for(const [_0x19a2b4,_0x529ca2]of Object[_0xf72adf(0xbe)](_0x54ab20['guides'])){let _0x3ab89d=_0x529ca2[_0xf72adf(0xba)];_0x529ca2[_0xf72adf(0xca)]&&(_0x3ab89d=appendUpdateTime(_0x3ab89d,_0x529ca2[_0xf72adf(0xca)])),writeFileSync(join(_0x136467,_0x19a2b4+_0xf72adf(0xcb)),_0x3ab89d,_0xf72adf(0xcf));}}export function appendUpdateTime(_0x3eea37,_0xe145dc){const _0x4d0089=a342_0x59fc3e;return _0x3eea37=_0x3eea37['replace'](/\n*>更新时间:.*$/m,''),_0x3eea37[_0x4d0089(0xbf)]()+(_0x4d0089(0xc4)+_0xe145dc);}export function getSkillTemplate(_0x2d5cb8){const _0x25d63b=a342_0x59fc3e;return _0x2d5cb8[_0x25d63b(0xc6)]?.[_0x25d63b(0xba)]||'';}export function appendExtendContents(_0x2670e5,_0x2b30fc,_0x47e9c9){const _0xadf26a=a342_0x59fc3e,_0x1d9737=[];for(const [,_0x57f275]of Object[_0xadf26a(0xbe)](_0x2b30fc['guides'])){_0x57f275[_0xadf26a(0xc1)]&&_0x1d9737[_0xadf26a(0xd4)](_0x57f275[_0xadf26a(0xc1)][_0xadf26a(0xbf)]());}if(_0x1d9737[_0xadf26a(0xb9)]===0x0)return _0x2670e5;return _0x2670e5[_0xadf26a(0xbf)]()+'\x0a\x0a'+_0x1d9737[_0xadf26a(0xcc)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x552753,_0xe5a482,_0x9ce807){const _0x3f8b4=a342_0x59fc3e,_0x2e5a2c=getSkillTemplate(_0x552753);if(!_0x2e5a2c)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x5f7576=dirname(_0xe5a482);mkdirSync(_0x5f7576,{'recursive':!![]});let _0x1827cd=_0x2e5a2c[_0x3f8b4(0xd3)](/\{\{IDE_NAME\}\}/g,_0x9ce807);_0x1827cd=appendExtendContents(_0x1827cd,_0x552753),_0x552753['skillTemplate'][_0x3f8b4(0xca)]&&(_0x1827cd=appendUpdateTime(_0x1827cd,_0x552753[_0x3f8b4(0xc6)][_0x3f8b4(0xca)])),writeFileSync(_0xe5a482,_0x1827cd,_0x3f8b4(0xcf));}export async function installGuides(_0x52296e){const _0x3e02c3=a342_0x59fc3e,_0x5c8005=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5c8005,_0x52296e),Object[_0x3e02c3(0xc3)](_0x5c8005[_0x3e02c3(0xc5)])[_0x3e02c3(0xb9)];}export function getGuidesSummary(_0x14baee){const _0xd42590=a342_0x59fc3e;return Object[_0xd42590(0xbe)](_0x14baee[_0xd42590(0xc5)])['map'](([_0x1d6d68,_0x1c7b1d])=>({'key':_0x1d6d68,'title':_0x1c7b1d[_0xd42590(0xd0)],'path':_0x1c7b1d[_0xd42590(0xd1)]}));}
@@ -1 +1 @@
1
- function a343_0xf5b2(_0x304082,_0x2aba88){_0x304082=_0x304082-0x186;const _0x12a9f9=a343_0x12a9();let _0xf5b24a=_0x12a9f9[_0x304082];return _0xf5b24a;}(function(_0x2825f8,_0x2867dd){const _0x45ac8b=a343_0xf5b2,_0x10a21a=_0x2825f8();while(!![]){try{const _0x35cfac=parseInt(_0x45ac8b(0x1a8))/0x1*(parseInt(_0x45ac8b(0x1a1))/0x2)+-parseInt(_0x45ac8b(0x191))/0x3*(parseInt(_0x45ac8b(0x1a0))/0x4)+-parseInt(_0x45ac8b(0x189))/0x5*(-parseInt(_0x45ac8b(0x1a4))/0x6)+parseInt(_0x45ac8b(0x198))/0x7*(parseInt(_0x45ac8b(0x1a6))/0x8)+-parseInt(_0x45ac8b(0x187))/0x9+parseInt(_0x45ac8b(0x1a3))/0xa*(parseInt(_0x45ac8b(0x19e))/0xb)+parseInt(_0x45ac8b(0x19b))/0xc*(-parseInt(_0x45ac8b(0x19c))/0xd);if(_0x35cfac===_0x2867dd)break;else _0x10a21a['push'](_0x10a21a['shift']());}catch(_0x4bd06e){_0x10a21a['push'](_0x10a21a['shift']());}}}(a343_0x12a9,0x4f067));export async function httpRequest(_0x227cb6,_0x3d051c={}){const _0x595a91=a343_0xf5b2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3d051c;let _0x4cdaa5=null;for(let _0x478e6b=0x0;_0x478e6b<=retries;_0x478e6b++){try{const _0x53c02b=new AbortController(),_0x15cd97=setTimeout(()=>_0x53c02b[_0x595a91(0x19f)](),timeout),_0x1e5f8e=await fetch(_0x227cb6,{'headers':headers,'signal':_0x53c02b[_0x595a91(0x190)]});clearTimeout(_0x15cd97);let _0x587a09;const _0x44a1c1=_0x1e5f8e['headers']['get'](_0x595a91(0x196));return _0x44a1c1?.[_0x595a91(0x197)](_0x595a91(0x1a7))?_0x587a09=await _0x1e5f8e[_0x595a91(0x18c)]():_0x587a09=await _0x1e5f8e[_0x595a91(0x192)](),{'ok':_0x1e5f8e['ok'],'status':_0x1e5f8e[_0x595a91(0x199)],'statusText':_0x1e5f8e[_0x595a91(0x188)],'data':_0x587a09,'headers':_0x1e5f8e[_0x595a91(0x18b)],'url':_0x1e5f8e[_0x595a91(0x18d)],'text':()=>_0x1e5f8e['text']()};}catch(_0x29a7fe){_0x4cdaa5=_0x29a7fe instanceof Error?_0x29a7fe:new Error(String(_0x29a7fe));if(_0x478e6b===retries)break;if(shouldRetry(_0x29a7fe)){console[_0x595a91(0x186)](_0x595a91(0x195)+(_0x478e6b+0x1)+_0x595a91(0x193)+retryDelay+_0x595a91(0x19d)),await sleep(retryDelay);continue;}else break;}}throw _0x4cdaa5||new Error(_0x595a91(0x194));}function shouldRetry(_0x370795){const _0x5af9fb=a343_0xf5b2;if(_0x370795 instanceof Error){if(_0x370795[_0x5af9fb(0x18f)]===_0x5af9fb(0x18e))return![];if(_0x370795['name']===_0x5af9fb(0x19a)&&_0x370795[_0x5af9fb(0x18a)][_0x5af9fb(0x197)](_0x5af9fb(0x1a2)))return!![];if(_0x370795[_0x5af9fb(0x18a)]['includes'](_0x5af9fb(0x1a5)))return!![];if(_0x370795[_0x5af9fb(0x18a)][_0x5af9fb(0x197)]('ENOTFOUND'))return![];}return![];}function sleep(_0x43e043){return new Promise(_0x32ca7b=>setTimeout(_0x32ca7b,_0x43e043));}export function validateUrl(_0x4414db){try{return new URL(_0x4414db),!![];}catch{return![];}}function a343_0x12a9(){const _0x3ae41b=['message','headers','json','url','AbortError','name','signal','777789yumbnv','text','\x20in\x20','Request\x20failed','*\x20Request\x20failed;\x20retry\x20','content-type','includes','111258lXcXva','status','TypeError','43980kAGbjB','1937rvQvLg','ms...','11dngfNJ','abort','4LTEMxx','996616ZtQSBC','fetch','1782260ZHSowE','847902yEQCWm','ECONNRESET','8exWqTB','application/json','1TvXNLY','log','1157949HghPQJ','statusText','20LQRhBx'];a343_0x12a9=function(){return _0x3ae41b;};return a343_0x12a9();}
1
+ (function(_0x4ce9f1,_0x4810ba){const _0x5c3f4e=a343_0x5526,_0x2e7b06=_0x4ce9f1();while(!![]){try{const _0x2ddbea=parseInt(_0x5c3f4e(0x102))/0x1*(-parseInt(_0x5c3f4e(0x10a))/0x2)+parseInt(_0x5c3f4e(0xfc))/0x3+parseInt(_0x5c3f4e(0x108))/0x4*(parseInt(_0x5c3f4e(0xf3))/0x5)+parseInt(_0x5c3f4e(0xfe))/0x6+-parseInt(_0x5c3f4e(0xff))/0x7+parseInt(_0x5c3f4e(0x107))/0x8+parseInt(_0x5c3f4e(0x106))/0x9*(-parseInt(_0x5c3f4e(0xf8))/0xa);if(_0x2ddbea===_0x4810ba)break;else _0x2e7b06['push'](_0x2e7b06['shift']());}catch(_0x51df45){_0x2e7b06['push'](_0x2e7b06['shift']());}}}(a343_0xd830,0x96ddf));export async function httpRequest(_0xe824f2,_0x374572={}){const _0x28661f=a343_0x5526,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x374572;let _0x3155ea=null;for(let _0x193bca=0x0;_0x193bca<=retries;_0x193bca++){try{const _0x5a317e=new AbortController(),_0xa00595=setTimeout(()=>_0x5a317e['abort'](),timeout),_0x2a6bd2=await fetch(_0xe824f2,{'headers':headers,'signal':_0x5a317e['signal']});clearTimeout(_0xa00595);let _0x400a1a;const _0x543aa6=_0x2a6bd2[_0x28661f(0x103)][_0x28661f(0x109)](_0x28661f(0xfa));return _0x543aa6?.['includes'](_0x28661f(0x101))?_0x400a1a=await _0x2a6bd2[_0x28661f(0xf9)]():_0x400a1a=await _0x2a6bd2[_0x28661f(0xfd)](),{'ok':_0x2a6bd2['ok'],'status':_0x2a6bd2[_0x28661f(0xf1)],'statusText':_0x2a6bd2[_0x28661f(0x10b)],'data':_0x400a1a,'headers':_0x2a6bd2[_0x28661f(0x103)],'url':_0x2a6bd2['url'],'text':()=>_0x2a6bd2[_0x28661f(0xfd)]()};}catch(_0x44f193){_0x3155ea=_0x44f193 instanceof Error?_0x44f193:new Error(String(_0x44f193));if(_0x193bca===retries)break;if(shouldRetry(_0x44f193)){console[_0x28661f(0xf4)]('*\x20Request\x20failed;\x20retry\x20'+(_0x193bca+0x1)+_0x28661f(0xf2)+retryDelay+_0x28661f(0xfb)),await sleep(retryDelay);continue;}else break;}}throw _0x3155ea||new Error('Request\x20failed');}function shouldRetry(_0x338659){const _0x418cdc=a343_0x5526;if(_0x338659 instanceof Error){if(_0x338659[_0x418cdc(0x100)]===_0x418cdc(0xf7))return![];if(_0x338659[_0x418cdc(0x100)]==='TypeError'&&_0x338659[_0x418cdc(0x105)][_0x418cdc(0xf5)]('fetch'))return!![];if(_0x338659[_0x418cdc(0x105)][_0x418cdc(0xf5)](_0x418cdc(0xf6)))return!![];if(_0x338659[_0x418cdc(0x105)][_0x418cdc(0xf5)](_0x418cdc(0x104)))return![];}return![];}function a343_0xd830(){const _0x1f9a56=['2122092wxHEei','name','application/json','485hclTUB','headers','ENOTFOUND','message','38106XMmmBX','4014864jeJLZf','101072dsbuFx','get','2180XvjPvi','statusText','status','\x20in\x20','180IAVABB','log','includes','ECONNRESET','AbortError','2570mmvGPG','json','content-type','ms...','932526ejRjak','text','4893282FYKgNp'];a343_0xd830=function(){return _0x1f9a56;};return a343_0xd830();}function sleep(_0x182e6d){return new Promise(_0x31af14=>setTimeout(_0x31af14,_0x182e6d));}function a343_0x5526(_0x5d2068,_0x437ade){_0x5d2068=_0x5d2068-0xf1;const _0xd830cf=a343_0xd830();let _0x55266a=_0xd830cf[_0x5d2068];return _0x55266a;}export function validateUrl(_0x85f792){try{return new URL(_0x85f792),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x31cc3e,_0x22c79b){const _0xb7368b=a344_0x4100,_0x1de1d2=_0x31cc3e();while(!![]){try{const _0x2641ac=parseInt(_0xb7368b(0x17d))/0x1*(-parseInt(_0xb7368b(0x17a))/0x2)+-parseInt(_0xb7368b(0x17b))/0x3+parseInt(_0xb7368b(0x171))/0x4*(parseInt(_0xb7368b(0x173))/0x5)+-parseInt(_0xb7368b(0x177))/0x6+-parseInt(_0xb7368b(0x172))/0x7*(-parseInt(_0xb7368b(0x176))/0x8)+parseInt(_0xb7368b(0x178))/0x9+-parseInt(_0xb7368b(0x17c))/0xa;if(_0x2641ac===_0x22c79b)break;else _0x1de1d2['push'](_0x1de1d2['shift']());}catch(_0x1c8981){_0x1de1d2['push'](_0x1de1d2['shift']());}}}(a344_0x58ad,0xc0ba9));function env(_0x1aab23){return process.env[`RABETBASE_${_0x1aab23}`]||process.env[`LOVRABET_${_0x1aab23}`]||undefined;}function a344_0x4100(_0x5c08dc,_0x309927){_0x5c08dc=_0x5c08dc-0x16f;const _0x58ad88=a344_0x58ad();let _0x4100c8=_0x58ad88[_0x5c08dc];return _0x4100c8;}export function isNonInteractive(_0x5a1faa){const _0x5eaf16=a344_0x4100;return!!(_0x5a1faa['nonInteractive']||_0x5a1faa['ci']||env('CI')==='true'||process.env.CI===_0x5eaf16(0x175)||!process[_0x5eaf16(0x174)]['isTTY']||!isStdinRawModeSupported());}function a344_0x58ad(){const _0x37a016=['529045EilcbA','stdout','true','280GinVkg','5763858TgeIjW','6703731kRbqkX','setRawMode','4aDFyDS','411315AnZCZE','98720stxfIn','3420GEriZK','isTTY','stdin','28UhGhJl','83671KsEoFr'];a344_0x58ad=function(){return _0x37a016;};return a344_0x58ad();}function isStdinRawModeSupported(){const _0x4e507d=a344_0x4100;if(!process[_0x4e507d(0x170)][_0x4e507d(0x16f)])return![];try{const _0x376f0c=process[_0x4e507d(0x170)]['isRaw'];return process[_0x4e507d(0x170)][_0x4e507d(0x179)](!![]),process[_0x4e507d(0x170)]['setRawMode'](_0x376f0c??![]),!![];}catch{return![];}}
1
+ function a344_0x5af2(){const _0x355f51=['isTTY','4304670nClNJd','1518700QcXtAg','84ZjZhLL','107577ETsnZt','true','3534DWpEVQ','99930bfDhMw','nonInteractive','stdout','isRaw','296YFdWOM','263351HTfTFb','446628XyyGbh','setRawMode','584pqXxhy','stdin'];a344_0x5af2=function(){return _0x355f51;};return a344_0x5af2();}function a344_0x230a(_0x2de902,_0x37e391){_0x2de902=_0x2de902-0x1b5;const _0x5af2a0=a344_0x5af2();let _0x230ad6=_0x5af2a0[_0x2de902];return _0x230ad6;}(function(_0xb8ac4c,_0x59edd3){const _0x802087=a344_0x230a,_0x3640e3=_0xb8ac4c();while(!![]){try{const _0x1718ba=-parseInt(_0x802087(0x1c1))/0x1+parseInt(_0x802087(0x1c2))/0x2+parseInt(_0x802087(0x1bb))/0x3*(parseInt(_0x802087(0x1c4))/0x4)+parseInt(_0x802087(0x1b6))/0x5+parseInt(_0x802087(0x1bc))/0x6*(parseInt(_0x802087(0x1b8))/0x7)+-parseInt(_0x802087(0x1c0))/0x8*(parseInt(_0x802087(0x1b9))/0x9)+parseInt(_0x802087(0x1b7))/0xa;if(_0x1718ba===_0x59edd3)break;else _0x3640e3['push'](_0x3640e3['shift']());}catch(_0x1af62f){_0x3640e3['push'](_0x3640e3['shift']());}}}(a344_0x5af2,0xdc4d2));function env(_0x585a31){return process.env[`RABETBASE_${_0x585a31}`]||process.env[`LOVRABET_${_0x585a31}`]||undefined;}export function isNonInteractive(_0x1e77f0){const _0x2567e2=a344_0x230a;return!!(_0x1e77f0[_0x2567e2(0x1bd)]||_0x1e77f0['ci']||env('CI')===_0x2567e2(0x1ba)||process.env.CI===_0x2567e2(0x1ba)||!process[_0x2567e2(0x1be)][_0x2567e2(0x1b5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e676f=a344_0x230a;if(!process[_0x1e676f(0x1c5)][_0x1e676f(0x1b5)])return![];try{const _0x5cbfe6=process[_0x1e676f(0x1c5)][_0x1e676f(0x1bf)];return process[_0x1e676f(0x1c5)]['setRawMode'](!![]),process[_0x1e676f(0x1c5)][_0x1e676f(0x1c3)](_0x5cbfe6??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a345_0x5db1(_0x5257ce,_0x33015c){_0x5257ce=_0x5257ce-0x18e;const _0x2f03b5=a345_0x2f03();let _0x5db117=_0x2f03b5[_0x5257ce];return _0x5db117;}const a345_0x4aefc3=a345_0x5db1;(function(_0x46c362,_0x415747){const _0x1fd5ef=a345_0x5db1,_0x545895=_0x46c362();while(!![]){try{const _0x21a022=parseInt(_0x1fd5ef(0x1aa))/0x1*(parseInt(_0x1fd5ef(0x197))/0x2)+parseInt(_0x1fd5ef(0x191))/0x3+parseInt(_0x1fd5ef(0x1a3))/0x4*(-parseInt(_0x1fd5ef(0x196))/0x5)+parseInt(_0x1fd5ef(0x1b4))/0x6+-parseInt(_0x1fd5ef(0x1b8))/0x7+parseInt(_0x1fd5ef(0x1b6))/0x8+-parseInt(_0x1fd5ef(0x1a0))/0x9;if(_0x21a022===_0x415747)break;else _0x545895['push'](_0x545895['shift']());}catch(_0x2e71c4){_0x545895['push'](_0x545895['shift']());}}}(a345_0x2f03,0x5605c));import a345_0x46bd47 from'winston';import a345_0x382a4d from'node:fs';function a345_0x2f03(){const _0x172f03=['3453564epXrLu','initWinstonLogger','2933168XfGplQ','now','984508qfTXQm','addColors','yellow','Failed\x20to\x20read\x20logs:','logTask','success','1861695aWHUvM','error','duration','winstonLogger','currentRawCommand','33295YLkRGS','676554bJuCjD','blue','writeFileSync','log','parse','timestamp','Failed:\x20','logFilePath','getWinstonInstance','9856053fzpNUL','existsSync','message','188KyMSsu','Starting:\x20','join','filter','command','info','toISOString','1rntBHv','createLogger','Failed\x20to\x20clear\x20logs:','format','green','warn','combine','level','unknown','readFileSync'];a345_0x2f03=function(){return _0x172f03;};return a345_0x2f03();}import a345_0x1b0069 from'node:path';class Logger{[a345_0x4aefc3(0x194)];['logFilePath'];['currentRawCommand']='';constructor(){const _0x1ccbcd=a345_0x4aefc3;this[_0x1ccbcd(0x19e)]='';}['setRawCommand'](_0x407c6d){const _0x18e727=a345_0x4aefc3;this[_0x18e727(0x195)]=_0x407c6d;}['initWinstonLogger'](){const _0x150ec5=a345_0x4aefc3,_0x144a12=a345_0x1b0069['dirname'](this[_0x150ec5(0x19e)]);!a345_0x382a4d[_0x150ec5(0x1a1)](_0x144a12)&&a345_0x382a4d['mkdirSync'](_0x144a12,{'recursive':!![]});const _0x293bb5=a345_0x46bd47['format'][_0x150ec5(0x1b0)](a345_0x46bd47['format'][_0x150ec5(0x19c)](),a345_0x46bd47[_0x150ec5(0x1ad)]['errors']({'stack':!![]}),a345_0x46bd47[_0x150ec5(0x1ad)]['printf'](_0x8f048a=>{const _0x501a75=_0x150ec5,_0x237855={'timestamp':_0x8f048a[_0x501a75(0x19c)]||new Date()[_0x501a75(0x1a9)](),'level':_0x8f048a[_0x501a75(0x1b1)]||'info','command':_0x8f048a[_0x501a75(0x1a7)]||_0x501a75(0x1b2),'rawCommand':_0x8f048a['rawCommand']||this[_0x501a75(0x195)]||undefined,'message':_0x8f048a[_0x501a75(0x1a2)]||'','duration':_0x8f048a[_0x501a75(0x193)]||undefined,'details':_0x8f048a['details']||undefined};return JSON['stringify'](_0x237855);}));this[_0x150ec5(0x194)]=a345_0x46bd47[_0x150ec5(0x1ab)]({'level':_0x150ec5(0x1a8),'format':_0x293bb5,'transports':[new a345_0x46bd47['transports']['File']({'filename':this[_0x150ec5(0x19e)],'level':_0x150ec5(0x1a8)})],'silent':![]}),a345_0x46bd47[_0x150ec5(0x1b9)]({'success':_0x150ec5(0x1ae),'error':'red','warn':_0x150ec5(0x1ba),'info':_0x150ec5(0x198)});}['setLogPath'](_0x38ba2b){const _0x212864=a345_0x4aefc3;this[_0x212864(0x19e)]=a345_0x1b0069[_0x212864(0x1a5)](_0x38ba2b,'.lovrabet.log'),this[_0x212864(0x194)]&&this[_0x212864(0x194)]['clear'](),this[_0x212864(0x1b5)]();}['info'](_0x441671,_0x483571,_0x33d67d){const _0x307b28=a345_0x4aefc3;if(!this[_0x307b28(0x19e)]||!this[_0x307b28(0x194)])return;this['winstonLogger'][_0x307b28(0x1a8)](_0x483571,{'command':_0x441671,'details':_0x33d67d});}[a345_0x4aefc3(0x190)](_0x20e4ac,_0x3244e3,_0x55f58f,_0x3024cf){const _0x1846cc=a345_0x4aefc3;if(!this[_0x1846cc(0x19e)]||!this['winstonLogger'])return;this[_0x1846cc(0x194)][_0x1846cc(0x19a)](_0x1846cc(0x1a8),_0x3244e3,{'level':_0x1846cc(0x190),'command':_0x20e4ac,'duration':_0x55f58f,'details':_0x3024cf});}['error'](_0x1ad163,_0x10d0c9,_0x4cce6a){const _0x230578=a345_0x4aefc3;if(!this[_0x230578(0x19e)]||!this[_0x230578(0x194)])return;this['winstonLogger'][_0x230578(0x192)](_0x10d0c9,{'command':_0x1ad163,'details':_0x4cce6a});}[a345_0x4aefc3(0x1af)](_0x579d6e,_0x1fa369,_0xc533d5){const _0x5de978=a345_0x4aefc3;if(!this[_0x5de978(0x19e)]||!this[_0x5de978(0x194)])return;this['winstonLogger']['warn'](_0x1fa369,{'command':_0x579d6e,'details':_0xc533d5});}async[a345_0x4aefc3(0x18f)](_0x2ad8a6,_0x1cd88a,_0x37f66a){const _0x45f785=a345_0x4aefc3,_0x39ac15=Date[_0x45f785(0x1b7)]();this[_0x45f785(0x1a8)](_0x2ad8a6,_0x45f785(0x1a4)+_0x1cd88a);try{const _0x593140=await _0x37f66a(),_0x179abe=Date['now']()-_0x39ac15;return this['success'](_0x2ad8a6,'Completed:\x20'+_0x1cd88a,_0x179abe),_0x593140;}catch(_0x36bc98){const _0x42bc2d=Date['now']()-_0x39ac15;this['error'](_0x2ad8a6,_0x45f785(0x19d)+_0x1cd88a,{'error':_0x36bc98 instanceof Error?_0x36bc98[_0x45f785(0x1a2)]:String(_0x36bc98),'duration':_0x42bc2d});throw _0x36bc98;}}['readLogs'](){const _0x1594c2=a345_0x4aefc3;try{if(!a345_0x382a4d[_0x1594c2(0x1a1)](this[_0x1594c2(0x19e)]))return[];const _0x5cf4ce=a345_0x382a4d[_0x1594c2(0x1b3)](this[_0x1594c2(0x19e)],'utf8');return _0x5cf4ce['split']('\x0a')[_0x1594c2(0x1a6)](_0x20b3f2=>_0x20b3f2['trim']())['map'](_0x564a57=>JSON[_0x1594c2(0x19b)](_0x564a57));}catch(_0x3a9e68){return console[_0x1594c2(0x1af)](_0x1594c2(0x18e),_0x3a9e68),[];}}['clearLogs'](){const _0x223bb9=a345_0x4aefc3;try{a345_0x382a4d[_0x223bb9(0x1a1)](this['logFilePath'])&&a345_0x382a4d[_0x223bb9(0x199)](this[_0x223bb9(0x19e)],'','utf8');}catch(_0x19b552){console['warn'](_0x223bb9(0x1ac),_0x19b552);}}[a345_0x4aefc3(0x19f)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ function a345_0x4c45(_0x4fce0d,_0x527e01){_0x4fce0d=_0x4fce0d-0x182;const _0x1f4458=a345_0x1f44();let _0x4c453b=_0x1f4458[_0x4fce0d];return _0x4c453b;}const a345_0x15ce45=a345_0x4c45;(function(_0x5d5ba2,_0x1cd202){const _0x258115=a345_0x4c45,_0x3be73e=_0x5d5ba2();while(!![]){try{const _0x3f3b38=-parseInt(_0x258115(0x1b7))/0x1*(parseInt(_0x258115(0x191))/0x2)+parseInt(_0x258115(0x1a7))/0x3+parseInt(_0x258115(0x1ae))/0x4*(-parseInt(_0x258115(0x1b2))/0x5)+-parseInt(_0x258115(0x182))/0x6+parseInt(_0x258115(0x1a8))/0x7+parseInt(_0x258115(0x1af))/0x8*(parseInt(_0x258115(0x1a9))/0x9)+-parseInt(_0x258115(0x1b0))/0xa*(-parseInt(_0x258115(0x18d))/0xb);if(_0x3f3b38===_0x1cd202)break;else _0x3be73e['push'](_0x3be73e['shift']());}catch(_0x24ddad){_0x3be73e['push'](_0x3be73e['shift']());}}}(a345_0x1f44,0x1893a));import a345_0x19e985 from'winston';import a345_0x4f930d from'node:fs';import a345_0x1eabac from'node:path';class Logger{[a345_0x15ce45(0x1b3)];[a345_0x15ce45(0x1a5)];[a345_0x15ce45(0x19e)]='';constructor(){this['logFilePath']='';}[a345_0x15ce45(0x1b8)](_0x516f17){const _0x4b5045=a345_0x15ce45;this[_0x4b5045(0x19e)]=_0x516f17;}[a345_0x15ce45(0x183)](){const _0x569297=a345_0x15ce45,_0x560733=a345_0x1eabac[_0x569297(0x1b5)](this['logFilePath']);!a345_0x4f930d[_0x569297(0x19c)](_0x560733)&&a345_0x4f930d[_0x569297(0x186)](_0x560733,{'recursive':!![]});const _0x39cc6a=a345_0x19e985[_0x569297(0x190)][_0x569297(0x18e)](a345_0x19e985[_0x569297(0x190)]['timestamp'](),a345_0x19e985[_0x569297(0x190)][_0x569297(0x185)]({'stack':!![]}),a345_0x19e985[_0x569297(0x190)]['printf'](_0x2e9789=>{const _0x30de23=_0x569297,_0xf7b10d={'timestamp':_0x2e9789[_0x30de23(0x189)]||new Date()[_0x30de23(0x1a1)](),'level':_0x2e9789[_0x30de23(0x1aa)]||_0x30de23(0x1a0),'command':_0x2e9789['command']||'unknown','rawCommand':_0x2e9789['rawCommand']||this[_0x30de23(0x19e)]||undefined,'message':_0x2e9789[_0x30de23(0x197)]||'','duration':_0x2e9789['duration']||undefined,'details':_0x2e9789[_0x30de23(0x1b4)]||undefined};return JSON[_0x30de23(0x1b9)](_0xf7b10d);}));this[_0x569297(0x1b3)]=a345_0x19e985['createLogger']({'level':_0x569297(0x1a0),'format':_0x39cc6a,'transports':[new a345_0x19e985[(_0x569297(0x194))][(_0x569297(0x19a))]({'filename':this[_0x569297(0x1a5)],'level':'info'})],'silent':![]}),a345_0x19e985[_0x569297(0x188)]({'success':_0x569297(0x1ac),'error':_0x569297(0x18b),'warn':_0x569297(0x192),'info':_0x569297(0x199)});}[a345_0x15ce45(0x1b1)](_0x550155){const _0xa8f7c4=a345_0x15ce45;this[_0xa8f7c4(0x1a5)]=a345_0x1eabac[_0xa8f7c4(0x1a6)](_0x550155,'.lovrabet.log'),this[_0xa8f7c4(0x1b3)]&&this[_0xa8f7c4(0x1b3)][_0xa8f7c4(0x19b)](),this[_0xa8f7c4(0x183)]();}[a345_0x15ce45(0x1a0)](_0x4fcd39,_0xa01e98,_0x54fdd9){const _0x1d5517=a345_0x15ce45;if(!this[_0x1d5517(0x1a5)]||!this[_0x1d5517(0x1b3)])return;this[_0x1d5517(0x1b3)][_0x1d5517(0x1a0)](_0xa01e98,{'command':_0x4fcd39,'details':_0x54fdd9});}[a345_0x15ce45(0x18f)](_0x360699,_0x3822d2,_0x1192d2,_0x47a4ef){const _0x68e815=a345_0x15ce45;if(!this['logFilePath']||!this[_0x68e815(0x1b3)])return;this['winstonLogger']['log'](_0x68e815(0x1a0),_0x3822d2,{'level':'success','command':_0x360699,'duration':_0x1192d2,'details':_0x47a4ef});}[a345_0x15ce45(0x19f)](_0x2b27c4,_0x53b4bf,_0x2d4844){const _0x505b50=a345_0x15ce45;if(!this[_0x505b50(0x1a5)]||!this['winstonLogger'])return;this[_0x505b50(0x1b3)]['error'](_0x53b4bf,{'command':_0x2b27c4,'details':_0x2d4844});}[a345_0x15ce45(0x18a)](_0x363189,_0x4d8fdf,_0x188595){const _0x983d79=a345_0x15ce45;if(!this[_0x983d79(0x1a5)]||!this[_0x983d79(0x1b3)])return;this[_0x983d79(0x1b3)][_0x983d79(0x18a)](_0x4d8fdf,{'command':_0x363189,'details':_0x188595});}async[a345_0x15ce45(0x1b6)](_0x1970df,_0x5bfe17,_0xb3a0ff){const _0x58fe3c=a345_0x15ce45,_0x53edaa=Date[_0x58fe3c(0x18c)]();this[_0x58fe3c(0x1a0)](_0x1970df,'Starting:\x20'+_0x5bfe17);try{const _0x1184ec=await _0xb3a0ff(),_0x3ffd87=Date['now']()-_0x53edaa;return this['success'](_0x1970df,'Completed:\x20'+_0x5bfe17,_0x3ffd87),_0x1184ec;}catch(_0x4919c1){const _0x5d49e5=Date['now']()-_0x53edaa;this['error'](_0x1970df,_0x58fe3c(0x19d)+_0x5bfe17,{'error':_0x4919c1 instanceof Error?_0x4919c1[_0x58fe3c(0x197)]:String(_0x4919c1),'duration':_0x5d49e5});throw _0x4919c1;}}[a345_0x15ce45(0x1a4)](){const _0x98b28b=a345_0x15ce45;try{if(!a345_0x4f930d['existsSync'](this[_0x98b28b(0x1a5)]))return[];const _0x5f4f12=a345_0x4f930d['readFileSync'](this[_0x98b28b(0x1a5)],_0x98b28b(0x184));return _0x5f4f12[_0x98b28b(0x195)]('\x0a')[_0x98b28b(0x198)](_0x134657=>_0x134657[_0x98b28b(0x196)]())[_0x98b28b(0x1a2)](_0x14e3d3=>JSON[_0x98b28b(0x1ab)](_0x14e3d3));}catch(_0x1c6f51){return console['warn'](_0x98b28b(0x193),_0x1c6f51),[];}}[a345_0x15ce45(0x187)](){const _0x10873a=a345_0x15ce45;try{a345_0x4f930d['existsSync'](this[_0x10873a(0x1a5)])&&a345_0x4f930d[_0x10873a(0x1ad)](this[_0x10873a(0x1a5)],'','utf8');}catch(_0x3a0502){console['warn'](_0x10873a(0x1ba),_0x3a0502);}}[a345_0x15ce45(0x1a3)](){return this['winstonLogger'];}}function a345_0x1f44(){const _0x21f101=['errors','mkdirSync','clearLogs','addColors','timestamp','warn','red','now','4499ifXHoG','combine','success','format','2rtICob','yellow','Failed\x20to\x20read\x20logs:','transports','split','trim','message','filter','blue','File','clear','existsSync','Failed:\x20','currentRawCommand','error','info','toISOString','map','getWinstonInstance','readLogs','logFilePath','join','176592urWvmw','327054nRGrpM','20790wiQcfM','level','parse','green','writeFileSync','4fHiiwK','8adEBaD','5680bAnRcn','setLogPath','97730vvgrde','winstonLogger','details','dirname','logTask','23450HrdWRk','setRawCommand','stringify','Failed\x20to\x20clear\x20logs:','1179276AEBxRa','initWinstonLogger','utf8'];a345_0x1f44=function(){return _0x21f101;};return a345_0x1f44();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x378059,_0x4e20be){const _0x2b3a32=a346_0x5834,_0x4fd773=_0x378059();while(!![]){try{const _0x5ca008=-parseInt(_0x2b3a32(0x189))/0x1*(-parseInt(_0x2b3a32(0x194))/0x2)+parseInt(_0x2b3a32(0x191))/0x3+-parseInt(_0x2b3a32(0x192))/0x4*(parseInt(_0x2b3a32(0x186))/0x5)+parseInt(_0x2b3a32(0x185))/0x6*(parseInt(_0x2b3a32(0x18e))/0x7)+parseInt(_0x2b3a32(0x18c))/0x8+parseInt(_0x2b3a32(0x18a))/0x9*(-parseInt(_0x2b3a32(0x190))/0xa)+-parseInt(_0x2b3a32(0x187))/0xb;if(_0x5ca008===_0x4e20be)break;else _0x4fd773['push'](_0x4fd773['shift']());}catch(_0x433157){_0x4fd773['push'](_0x4fd773['shift']());}}}(a346_0xe4ef,0x1ddd2));import{CliErrors}from'../errors.js';function a346_0x5834(_0x25817f,_0x19bb3d){_0x25817f=_0x25817f-0x185;const _0xe4ef24=a346_0xe4ef();let _0x58345c=_0xe4ef24[_0x25817f];return _0x58345c;}function a346_0xe4ef(){const _0x4361ab=['isArray','283493WQuGgO','Invalid\x20JSON\x20for\x20--params:\x20','20RocFml','171618oFaSTM','64DTDoIX','validation','2WSXeNC','24UlUwcK','1780moROao','1426128OGByWl','--params\x20must\x20be\x20a\x20JSON\x20object','95657YLfboY','651285WhgMae','object','700296iUJrYz'];a346_0xe4ef=function(){return _0x4361ab;};return a346_0xe4ef();}export function parseJsonParams(_0x3b4b6a){const _0x5edb16=a346_0x5834;if(!_0x3b4b6a)return undefined;let _0x451f3c;try{_0x451f3c=JSON['parse'](_0x3b4b6a);}catch{throw CliErrors[_0x5edb16(0x193)](_0x5edb16(0x18f)+_0x3b4b6a);}if(!_0x451f3c||typeof _0x451f3c!==_0x5edb16(0x18b)||Array[_0x5edb16(0x18d)](_0x451f3c))throw CliErrors['validation'](_0x5edb16(0x188),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x451f3c;}
1
+ (function(_0x510ac5,_0x268292){const _0x3cb81c=a346_0x2465,_0x4a4451=_0x510ac5();while(!![]){try{const _0x4ef22a=-parseInt(_0x3cb81c(0x177))/0x1*(parseInt(_0x3cb81c(0x16e))/0x2)+-parseInt(_0x3cb81c(0x169))/0x3*(parseInt(_0x3cb81c(0x176))/0x4)+-parseInt(_0x3cb81c(0x173))/0x5+parseInt(_0x3cb81c(0x16c))/0x6+parseInt(_0x3cb81c(0x170))/0x7*(-parseInt(_0x3cb81c(0x172))/0x8)+parseInt(_0x3cb81c(0x16a))/0x9+-parseInt(_0x3cb81c(0x178))/0xa*(-parseInt(_0x3cb81c(0x171))/0xb);if(_0x4ef22a===_0x268292)break;else _0x4a4451['push'](_0x4a4451['shift']());}catch(_0x221d28){_0x4a4451['push'](_0x4a4451['shift']());}}}(a346_0x2fd1,0xd2a96));function a346_0x2fd1(){const _0x2eca80=['5023555BXDhuh','isArray','object','42404iQeiPT','332085mpNbnw','124750DostIQ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','78MkugOT','971883TOadFW','validation','8229018pDxrCY','parse','8eckzpF','Invalid\x20JSON\x20for\x20--params:\x20','4743151AnOilJ','2354RRFsxD','8SUpvVF'];a346_0x2fd1=function(){return _0x2eca80;};return a346_0x2fd1();}function a346_0x2465(_0x8bf29d,_0x3c88eb){_0x8bf29d=_0x8bf29d-0x169;const _0x2fd126=a346_0x2fd1();let _0x24657e=_0x2fd126[_0x8bf29d];return _0x24657e;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x54a3ad){const _0x560830=a346_0x2465;if(!_0x54a3ad)return undefined;let _0x2659ea;try{_0x2659ea=JSON[_0x560830(0x16d)](_0x54a3ad);}catch{throw CliErrors[_0x560830(0x16b)](_0x560830(0x16f)+_0x54a3ad);}if(!_0x2659ea||typeof _0x2659ea!==_0x560830(0x175)||Array[_0x560830(0x174)](_0x2659ea))throw CliErrors[_0x560830(0x16b)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x560830(0x179));return _0x2659ea;}
@@ -1 +1 @@
1
- const a347_0x32aaa4=a347_0x5b66;(function(_0x4d8f93,_0x44312a){const _0x2e6f8b=a347_0x5b66,_0x2139a0=_0x4d8f93();while(!![]){try{const _0x42c62e=parseInt(_0x2e6f8b(0x110))/0x1*(parseInt(_0x2e6f8b(0x116))/0x2)+parseInt(_0x2e6f8b(0x115))/0x3+parseInt(_0x2e6f8b(0x113))/0x4+parseInt(_0x2e6f8b(0x117))/0x5*(parseInt(_0x2e6f8b(0x111))/0x6)+-parseInt(_0x2e6f8b(0x112))/0x7*(-parseInt(_0x2e6f8b(0x10e))/0x8)+-parseInt(_0x2e6f8b(0x10c))/0x9+parseInt(_0x2e6f8b(0x118))/0xa*(-parseInt(_0x2e6f8b(0x10f))/0xb);if(_0x42c62e===_0x44312a)break;else _0x2139a0['push'](_0x2139a0['shift']());}catch(_0x651bc8){_0x2139a0['push'](_0x2139a0['shift']());}}}(a347_0x4f32,0xc7994));function a347_0x4f32(){const _0x39c844=['1494458gshPRv','1909980CLbEji','platform','1110717milGcu','2wffxIJ','25cDqxXZ','70lAWKup','1981179bJctdm','win32','8oyJVNz','3650878tGefuU','993835NPhoDS','1567092qoUKAw'];a347_0x4f32=function(){return _0x39c844;};return a347_0x4f32();}export const isWindows=process[a347_0x32aaa4(0x114)]===a347_0x32aaa4(0x10d);function a347_0x5b66(_0x1d6485,_0x4e4ceb){_0x1d6485=_0x1d6485-0x10c;const _0x4f3270=a347_0x4f32();let _0x5b668a=_0x4f3270[_0x1d6485];return _0x5b668a;}export function resolveNpmBin(_0x83e0ce){return isWindows?_0x83e0ce+'.cmd':_0x83e0ce;}
1
+ const a347_0x3aa4b7=a347_0x57f4;(function(_0x564fe1,_0x32472d){const _0x5ab6e9=a347_0x57f4,_0x3ad476=_0x564fe1();while(!![]){try{const _0x31c39f=-parseInt(_0x5ab6e9(0xee))/0x1+parseInt(_0x5ab6e9(0xed))/0x2*(-parseInt(_0x5ab6e9(0xe8))/0x3)+parseInt(_0x5ab6e9(0xe6))/0x4*(-parseInt(_0x5ab6e9(0xf1))/0x5)+parseInt(_0x5ab6e9(0xe9))/0x6*(parseInt(_0x5ab6e9(0xf2))/0x7)+parseInt(_0x5ab6e9(0xe5))/0x8*(-parseInt(_0x5ab6e9(0xeb))/0x9)+parseInt(_0x5ab6e9(0xea))/0xa*(parseInt(_0x5ab6e9(0xf0))/0xb)+parseInt(_0x5ab6e9(0xef))/0xc;if(_0x31c39f===_0x32472d)break;else _0x3ad476['push'](_0x3ad476['shift']());}catch(_0x4105a1){_0x3ad476['push'](_0x3ad476['shift']());}}}(a347_0x5298,0xc08a9));function a347_0x57f4(_0x4cf931,_0x1d5824){_0x4cf931=_0x4cf931-0xe5;const _0x5298e9=a347_0x5298();let _0x57f46c=_0x5298e9[_0x4cf931];return _0x57f46c;}export const isWindows=process[a347_0x3aa4b7(0xf3)]===a347_0x3aa4b7(0xe7);function a347_0x5298(){const _0x4e4d42=['63Ipwkkd','18KKtvNK','3377330NTVUle','9HHGySF','.cmd','99798qPijhV','1497970hihncT','53720436UaTEJy','11kZJccV','7422645GSsUAp','3520538rNINHc','platform','12033688MhGOXD','4tKzIdC','win32'];a347_0x5298=function(){return _0x4e4d42;};return a347_0x5298();}export function resolveNpmBin(_0x2acf25){const _0x5713e8=a347_0x3aa4b7;return isWindows?_0x2acf25+_0x5713e8(0xec):_0x2acf25;}
@@ -1 +1 @@
1
- export function sleep(_0xf21bc3){return new Promise(_0x20d6be=>setTimeout(_0x20d6be,_0xf21bc3));}
1
+ export function sleep(_0x35fa7f){return new Promise(_0x849aa0=>setTimeout(_0x849aa0,_0x35fa7f));}
@@ -1 +1 @@
1
- const a349_0x45393e=a349_0x3ed8;(function(_0x3a1e2e,_0xeae3be){const _0x2ea006=a349_0x3ed8,_0x4f5e0d=_0x3a1e2e();while(!![]){try{const _0x3cb66b=-parseInt(_0x2ea006(0xa5))/0x1+parseInt(_0x2ea006(0xdd))/0x2+parseInt(_0x2ea006(0xc7))/0x3+parseInt(_0x2ea006(0xd5))/0x4+-parseInt(_0x2ea006(0xd0))/0x5*(parseInt(_0x2ea006(0xa0))/0x6)+parseInt(_0x2ea006(0xad))/0x7+-parseInt(_0x2ea006(0xd7))/0x8*(-parseInt(_0x2ea006(0xe1))/0x9);if(_0x3cb66b===_0xeae3be)break;else _0x4f5e0d['push'](_0x4f5e0d['shift']());}catch(_0x24cb5f){_0x4f5e0d['push'](_0x4f5e0d['shift']());}}}(a349_0x3c7b,0xe61d2));import a349_0x56a098 from'node:fs';import a349_0x2db28d from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a349_0x3ed8(_0x44ad7a,_0x5c20ed){_0x44ad7a=_0x44ad7a-0x9e;const _0x3c7b4f=a349_0x3c7b();let _0x3ed849=_0x3c7b4f[_0x44ad7a];return _0x3ed849;}function a349_0x3c7b(){const _0x161071=['.jsx','endsWith','\x0a\x20\x20\x20\x20{\x20','391897pyosUp','split','message','getSeconds','.scss','readFile','sdk-config','.tsx','1319486fJJBJY','padStart','getMinutes','slice','\x20},','YourModel','toDisplayTitle','.md','extname','alias','Template\x20content\x20replacement\x20failed','map','now','toUpperCase','.json','processTemplate','datasetCode:\x20\x22','getMonth','toISOString','utf8','name:\x20\x22','api','promises','.tpl','push','info','1754283dRyBOZ','template','processFile','getDate','copyFile','datasetCode','charAt','pad','tableName','4365505VyoTgt','formatLocalTimestamp','.css','processDirectory','LOVRABET','3075008DCuzIW','pop','36728fwqKFv','toComponentName','error','default','.ts','Starting\x20template\x20content\x20replacement','2792626XvGoVe','isDirectory','alias:\x20\x22','toLowerCase','279kiyAfC','join','replace','12PREGHL','name'];a349_0x3c7b=function(){return _0x161071;};return a349_0x3c7b();}export class TemplateReplacer{static[a349_0x45393e(0xce)](_0x3f2de1){const _0x1c97b4=a349_0x45393e;return String(_0x3f2de1)[_0x1c97b4(0xae)](0x2,'0');}static['formatLocalTimestamp'](_0x36d881){const _0x51c593=a349_0x45393e,_0x39ac9f=_0x36d881['getFullYear'](),_0x3348c8=this[_0x51c593(0xce)](_0x36d881[_0x51c593(0xbe)]()+0x1),_0x1476d0=this[_0x51c593(0xce)](_0x36d881[_0x51c593(0xca)]()),_0x2629d6=this[_0x51c593(0xce)](_0x36d881['getHours']()),_0x1e2bc0=this[_0x51c593(0xce)](_0x36d881[_0x51c593(0xaf)]()),_0x46208b=this[_0x51c593(0xce)](_0x36d881[_0x51c593(0xa8)]());return{'createdAt':_0x39ac9f+'-'+_0x3348c8+'-'+_0x1476d0+'\x20'+_0x2629d6+':'+_0x1e2bc0+':'+_0x46208b,'createdDate':_0x39ac9f+'-'+_0x3348c8+'-'+_0x1476d0,'createdTime':_0x2629d6+':'+_0x1e2bc0+':'+_0x46208b};}static['toComponentName'](_0x6f97a0){const _0x403d9f=a349_0x45393e,_0x3fa18d=_0x6f97a0[_0x403d9f(0xa6)]('/')[_0x403d9f(0xd6)]()||_0x6f97a0;return _0x3fa18d['split']('-')[_0x403d9f(0xb8)](_0x4a4a37=>_0x4a4a37[_0x403d9f(0xcd)](0x0)[_0x403d9f(0xba)]()+_0x4a4a37[_0x403d9f(0xb0)](0x1)[_0x403d9f(0xe0)]())[_0x403d9f(0x9e)]('');}static[a349_0x45393e(0xb3)](_0x351429){const _0x3fe03f=a349_0x45393e,_0x5c730c=_0x351429[_0x3fe03f(0xa6)]('/')['pop']()||_0x351429;return _0x5c730c[_0x3fe03f(0xa6)]('-')[_0x3fe03f(0xb8)](_0x520af2=>_0x520af2[_0x3fe03f(0xcd)](0x0)[_0x3fe03f(0xba)]()+_0x520af2[_0x3fe03f(0xb0)](0x1)[_0x3fe03f(0xe0)]())['join']('\x20');}static['replaceContent'](_0x1bbd1d,_0x4e4029,_0x344f37){const _0x4e0cd9=a349_0x45393e,_0x2a72a5=this[_0x4e0cd9(0xd8)](_0x4e4029),_0x55d22d=this[_0x4e0cd9(0xb3)](_0x4e4029),{createdAt:_0x3b88a7,createdDate:_0x535f1f,createdTime:_0x23f49e}=this[_0x4e0cd9(0xd1)](new Date());let _0x22348a=_0x1bbd1d['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x4e0cd9(0x9f)](/\{ComponentName\}/g,_0x2a72a5)[_0x4e0cd9(0x9f)](/\{DisplayTitle\}/g,_0x55d22d)[_0x4e0cd9(0x9f)](/\{PageName\}/g,_0x4e4029)['replace'](/\{TemplateName\}/g,_0x344f37)[_0x4e0cd9(0x9f)](/\{CreatedAt\}/g,_0x3b88a7)[_0x4e0cd9(0x9f)](/\{CreatedDate\}/g,_0x535f1f)[_0x4e0cd9(0x9f)](/\{CreatedTime\}/g,_0x23f49e);return _0x22348a;}static['replaceApiContent'](_0x512e5f,_0x3ccc35,_0x338bc4,_0x5242d4,_0xb8dd74,_0xd64190,_0x45cabe,_0x2892dd,_0x58f08d){const _0x168391=a349_0x45393e,_0x517fd8=new Date(),_0x2917be=_0x517fd8[_0x168391(0xbf)](),_0x3b0a53=_0x338bc4[_0x168391(0xb8)](_0x49da47=>{const _0x3dcf14=_0x168391,_0x230f30=[_0x3dcf14(0xbd)+_0x49da47[_0x3dcf14(0xcc)]+'\x22','tableName:\x20\x22'+_0x49da47[_0x3dcf14(0xcf)]+'\x22',_0x3dcf14(0xc1)+_0x49da47[_0x3dcf14(0xa1)]+'\x22'];return _0x49da47[_0x3dcf14(0xb6)]&&_0x230f30[_0x3dcf14(0xc5)](_0x3dcf14(0xdf)+_0x49da47[_0x3dcf14(0xb6)]+'\x22'),_0x3dcf14(0xa4)+_0x230f30[_0x3dcf14(0x9e)](',\x20')+_0x3dcf14(0xb1);})['join'](''),_0x18517a=_0x5242d4||_0x338bc4[0x0]?.['alias']||_0x168391(0xb2);let _0x3f6d6a=_0x512e5f[_0x168391(0x9f)](/\{AppCode\}/g,_0x3ccc35)[_0x168391(0x9f)](/\{ModelConfigs\}/g,_0x3b0a53)[_0x168391(0x9f)](/\{ExampleModelName\}/g,_0x18517a)[_0x168391(0x9f)](/\{ApiFileName\}/g,_0xb8dd74||_0x168391(0xc2))['replace'](/\{ConfigName\}/g,_0xd64190||_0x168391(0xda))[_0x168391(0x9f)](/\{ClientConfigParam\}/g,_0x45cabe||'')[_0x168391(0x9f)](/\{SdkConfigFileName\}/g,_0x58f08d||_0x168391(0xab))[_0x168391(0x9f)](/\{VarPrefix\}/g,_0x2892dd||_0x168391(0xd4))[_0x168391(0x9f)](/\{CreatedAt\}/g,_0x2917be);return _0x3f6d6a;}static async[a349_0x45393e(0xbc)](_0x310cf1,_0x77989,_0x296d92,_0x3b7f28,_0x247e56=!![]){const _0x2cca5a=a349_0x45393e,_0x6e9c0b=Date[_0x2cca5a(0xb9)]();try{_0x247e56&&logger[_0x2cca5a(0xc6)]('template',_0x2cca5a(0xdc),{'templatePath':_0x310cf1,'targetPath':_0x77989,'pageName':_0x296d92,'templateName':_0x3b7f28});await a349_0x56a098[_0x2cca5a(0xc3)]['mkdir'](_0x77989,{'recursive':!![]}),await this[_0x2cca5a(0xd3)](_0x310cf1,_0x77989,_0x296d92,_0x3b7f28);if(_0x247e56){const _0x279bb1=Date['now']()-_0x6e9c0b;logger['success'](_0x2cca5a(0xc8),'Template\x20content\x20replacement\x20completed',_0x279bb1,{'pageName':_0x296d92,'templateName':_0x3b7f28});}}catch(_0x575f18){if(_0x247e56){const _0x19b453=Date[_0x2cca5a(0xb9)]()-_0x6e9c0b;logger[_0x2cca5a(0xd9)](_0x2cca5a(0xc8),_0x2cca5a(0xb7),{'templatePath':_0x310cf1,'targetPath':_0x77989,'pageName':_0x296d92,'templateName':_0x3b7f28,'error':_0x575f18 instanceof Error?_0x575f18[_0x2cca5a(0xa7)]:String(_0x575f18),'duration':_0x19b453});}throw _0x575f18;}}static async['processDirectory'](_0x1fcc57,_0x571f0b,_0x41b517,_0x3b9bfe){const _0x18b625=a349_0x45393e,_0x272a7f=await a349_0x56a098[_0x18b625(0xc3)]['readdir'](_0x1fcc57,{'withFileTypes':!![]});for(const _0x53dcdf of _0x272a7f){const _0x287f3b=a349_0x2db28d[_0x18b625(0x9e)](_0x1fcc57,_0x53dcdf['name']);let _0xa07840=a349_0x2db28d[_0x18b625(0x9e)](_0x571f0b,_0x53dcdf[_0x18b625(0xa1)]);_0x53dcdf['name'][_0x18b625(0xa3)](_0x18b625(0xc4))&&(_0xa07840=a349_0x2db28d[_0x18b625(0x9e)](_0x571f0b,_0x53dcdf['name'][_0x18b625(0x9f)](/\.tpl$/,'')));if(_0x53dcdf[_0x18b625(0xde)]())await a349_0x56a098[_0x18b625(0xc3)]['mkdir'](_0xa07840,{'recursive':!![]}),await this[_0x18b625(0xd3)](_0x287f3b,_0xa07840,_0x41b517,_0x3b9bfe);else _0x53dcdf['isFile']()&&await this['processFile'](_0x287f3b,_0xa07840,_0x41b517,_0x3b9bfe);}}static async[a349_0x45393e(0xc9)](_0x2bcc58,_0x50c039,_0x1a07fd,_0x386edb){const _0x5bcb09=a349_0x45393e,_0x2cc3ef=a349_0x2db28d[_0x5bcb09(0xb5)](_0x2bcc58)[_0x5bcb09(0xe0)]();_0x2bcc58[_0x5bcb09(0xa3)]('.tpl')&&(_0x50c039=_0x50c039[_0x5bcb09(0x9f)](/\.tpl$/,''));const _0x39473d=[_0x5bcb09(0xac),_0x5bcb09(0xdb),_0x5bcb09(0xa2),'.js',_0x5bcb09(0xbb),_0x5bcb09(0xb4),_0x5bcb09(0xd2),_0x5bcb09(0xa9),_0x5bcb09(0xc4)];if(_0x39473d['includes'](_0x2cc3ef)||_0x2bcc58[_0x5bcb09(0xa3)](_0x5bcb09(0xc4))){const _0x139870=await a349_0x56a098['promises'][_0x5bcb09(0xaa)](_0x2bcc58,_0x5bcb09(0xc0)),_0x38de86=this['replaceContent'](_0x139870,_0x1a07fd,_0x386edb);await a349_0x56a098['promises']['writeFile'](_0x50c039,_0x38de86,_0x5bcb09(0xc0));}else await a349_0x56a098['promises'][_0x5bcb09(0xcb)](_0x2bcc58,_0x50c039);}}
1
+ const a349_0x2be2e9=a349_0x5e2f;(function(_0x10c0fb,_0x69dd42){const _0x406cee=a349_0x5e2f,_0x5ba585=_0x10c0fb();while(!![]){try{const _0x5072b1=-parseInt(_0x406cee(0x120))/0x1+-parseInt(_0x406cee(0x13b))/0x2*(-parseInt(_0x406cee(0x11b))/0x3)+-parseInt(_0x406cee(0x150))/0x4+-parseInt(_0x406cee(0x123))/0x5+-parseInt(_0x406cee(0x152))/0x6*(-parseInt(_0x406cee(0x15c))/0x7)+parseInt(_0x406cee(0x140))/0x8*(-parseInt(_0x406cee(0x126))/0x9)+parseInt(_0x406cee(0x142))/0xa*(parseInt(_0x406cee(0x14a))/0xb);if(_0x5072b1===_0x69dd42)break;else _0x5ba585['push'](_0x5ba585['shift']());}catch(_0x4287e3){_0x5ba585['push'](_0x5ba585['shift']());}}}(a349_0x324d,0xb5101));function a349_0x324d(){const _0x4d89c5=['tableName:\x20\x22','processFile','replace','YourModel','includes','Starting\x20template\x20content\x20replacement','replaceApiContent','toLowerCase','processTemplate','map','.md','getDate','info','replaceContent','Template\x20content\x20replacement\x20completed','436936lXSzKl','sdk-config','datasetCode','endsWith','name','2136KYTIlj','join','5820qoQnlr','\x20},','mkdir','toUpperCase','tableName','split','now','extname','49269fFKOWl','charAt','writeFile','toISOString','.json','padStart','5697624mbfFEU','message','6bgGaCM','pad','processDirectory','promises','getSeconds','utf8','.tsx','template','getMinutes','getFullYear','1113651SsaXNg','alias','isFile','6AuizkX','Template\x20content\x20replacement\x20failed','default','alias:\x20\x22','formatLocalTimestamp','564235mykLLZ','LOVRABET','toComponentName','190620ijCqWd','getMonth','.scss','14643dkrVtD','pop','push','.tpl','name:\x20\x22','slice'];a349_0x324d=function(){return _0x4d89c5;};return a349_0x324d();}import a349_0x47312f from'node:fs';import a349_0x12b08a from'node:path';import{logger}from'../utils/logger.js';function a349_0x5e2f(_0x594a67,_0x1514dd){_0x594a67=_0x594a67-0x11a;const _0x324d11=a349_0x324d();let _0x5e2f75=_0x324d11[_0x594a67];return _0x5e2f75;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a349_0x2be2e9(0x153)](_0x60f347){const _0x30be1e=a349_0x2be2e9;return String(_0x60f347)[_0x30be1e(0x14f)](0x2,'0');}static[a349_0x2be2e9(0x11f)](_0x2eff89){const _0x9bddd1=a349_0x2be2e9,_0x134bd8=_0x2eff89[_0x9bddd1(0x15b)](),_0x3941ce=this['pad'](_0x2eff89[_0x9bddd1(0x124)]()+0x1),_0x4741b1=this[_0x9bddd1(0x153)](_0x2eff89[_0x9bddd1(0x137)]()),_0x3d36c9=this['pad'](_0x2eff89['getHours']()),_0x1430a4=this[_0x9bddd1(0x153)](_0x2eff89[_0x9bddd1(0x15a)]()),_0x3dda32=this[_0x9bddd1(0x153)](_0x2eff89[_0x9bddd1(0x156)]());return{'createdAt':_0x134bd8+'-'+_0x3941ce+'-'+_0x4741b1+'\x20'+_0x3d36c9+':'+_0x1430a4+':'+_0x3dda32,'createdDate':_0x134bd8+'-'+_0x3941ce+'-'+_0x4741b1,'createdTime':_0x3d36c9+':'+_0x1430a4+':'+_0x3dda32};}static[a349_0x2be2e9(0x122)](_0x45735b){const _0x3b8fa0=a349_0x2be2e9,_0x50a9ee=_0x45735b['split']('/')[_0x3b8fa0(0x127)]()||_0x45735b;return _0x50a9ee[_0x3b8fa0(0x147)]('-')['map'](_0x464705=>_0x464705['charAt'](0x0)[_0x3b8fa0(0x145)]()+_0x464705[_0x3b8fa0(0x12b)](0x1)['toLowerCase']())[_0x3b8fa0(0x141)]('');}static['toDisplayTitle'](_0x497811){const _0x22ac60=a349_0x2be2e9,_0x2e42ba=_0x497811[_0x22ac60(0x147)]('/')[_0x22ac60(0x127)]()||_0x497811;return _0x2e42ba[_0x22ac60(0x147)]('-')[_0x22ac60(0x135)](_0x3ec5f2=>_0x3ec5f2[_0x22ac60(0x14b)](0x0)['toUpperCase']()+_0x3ec5f2[_0x22ac60(0x12b)](0x1)[_0x22ac60(0x133)]())['join']('\x20');}static[a349_0x2be2e9(0x139)](_0x23a628,_0x4f4b76,_0x1da067){const _0xd5854f=a349_0x2be2e9,_0x580071=this[_0xd5854f(0x122)](_0x4f4b76),_0x27e18a=this['toDisplayTitle'](_0x4f4b76),{createdAt:_0x2ad7f1,createdDate:_0x2d73cb,createdTime:_0x416a8e}=this[_0xd5854f(0x11f)](new Date());let _0x51d451=_0x23a628[_0xd5854f(0x12e)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x580071)[_0xd5854f(0x12e)](/\{DisplayTitle\}/g,_0x27e18a)['replace'](/\{PageName\}/g,_0x4f4b76)[_0xd5854f(0x12e)](/\{TemplateName\}/g,_0x1da067)[_0xd5854f(0x12e)](/\{CreatedAt\}/g,_0x2ad7f1)[_0xd5854f(0x12e)](/\{CreatedDate\}/g,_0x2d73cb)[_0xd5854f(0x12e)](/\{CreatedTime\}/g,_0x416a8e);return _0x51d451;}static[a349_0x2be2e9(0x132)](_0x918a48,_0x2b32f9,_0x495efc,_0x1e0b8a,_0x2d9869,_0x2df9e8,_0x2beeef,_0x16f3e3,_0x57511d){const _0x55177c=a349_0x2be2e9,_0x54085e=new Date(),_0x1f4d85=_0x54085e[_0x55177c(0x14d)](),_0x5a7ec6=_0x495efc[_0x55177c(0x135)](_0x2f4038=>{const _0x184aee=_0x55177c,_0x465aeb=['datasetCode:\x20\x22'+_0x2f4038[_0x184aee(0x13d)]+'\x22',_0x184aee(0x12c)+_0x2f4038[_0x184aee(0x146)]+'\x22',_0x184aee(0x12a)+_0x2f4038[_0x184aee(0x13f)]+'\x22'];return _0x2f4038[_0x184aee(0x15d)]&&_0x465aeb[_0x184aee(0x128)](_0x184aee(0x11e)+_0x2f4038['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x465aeb[_0x184aee(0x141)](',\x20')+_0x184aee(0x143);})[_0x55177c(0x141)](''),_0x1f954f=_0x1e0b8a||_0x495efc[0x0]?.[_0x55177c(0x15d)]||_0x55177c(0x12f);let _0x5f34f3=_0x918a48['replace'](/\{AppCode\}/g,_0x2b32f9)[_0x55177c(0x12e)](/\{ModelConfigs\}/g,_0x5a7ec6)[_0x55177c(0x12e)](/\{ExampleModelName\}/g,_0x1f954f)['replace'](/\{ApiFileName\}/g,_0x2d9869||'api')[_0x55177c(0x12e)](/\{ConfigName\}/g,_0x2df9e8||_0x55177c(0x11d))[_0x55177c(0x12e)](/\{ClientConfigParam\}/g,_0x2beeef||'')[_0x55177c(0x12e)](/\{SdkConfigFileName\}/g,_0x57511d||_0x55177c(0x13c))[_0x55177c(0x12e)](/\{VarPrefix\}/g,_0x16f3e3||_0x55177c(0x121))[_0x55177c(0x12e)](/\{CreatedAt\}/g,_0x1f4d85);return _0x5f34f3;}static async[a349_0x2be2e9(0x134)](_0x2043d9,_0x1f0d4f,_0x4ca999,_0x2bbbeb,_0x29223f=!![]){const _0x573f0c=a349_0x2be2e9,_0x30b6e2=Date[_0x573f0c(0x148)]();try{_0x29223f&&logger[_0x573f0c(0x138)](_0x573f0c(0x159),_0x573f0c(0x131),{'templatePath':_0x2043d9,'targetPath':_0x1f0d4f,'pageName':_0x4ca999,'templateName':_0x2bbbeb});await a349_0x47312f[_0x573f0c(0x155)][_0x573f0c(0x144)](_0x1f0d4f,{'recursive':!![]}),await this[_0x573f0c(0x154)](_0x2043d9,_0x1f0d4f,_0x4ca999,_0x2bbbeb);if(_0x29223f){const _0x38eeed=Date[_0x573f0c(0x148)]()-_0x30b6e2;logger['success'](_0x573f0c(0x159),_0x573f0c(0x13a),_0x38eeed,{'pageName':_0x4ca999,'templateName':_0x2bbbeb});}}catch(_0x196498){if(_0x29223f){const _0x263dee=Date[_0x573f0c(0x148)]()-_0x30b6e2;logger['error'](_0x573f0c(0x159),_0x573f0c(0x11c),{'templatePath':_0x2043d9,'targetPath':_0x1f0d4f,'pageName':_0x4ca999,'templateName':_0x2bbbeb,'error':_0x196498 instanceof Error?_0x196498[_0x573f0c(0x151)]:String(_0x196498),'duration':_0x263dee});}throw _0x196498;}}static async[a349_0x2be2e9(0x154)](_0x806bec,_0x3e0ff5,_0x3f17f3,_0xcdc4bc){const _0x2184a9=a349_0x2be2e9,_0x311d3a=await a349_0x47312f[_0x2184a9(0x155)]['readdir'](_0x806bec,{'withFileTypes':!![]});for(const _0x467daf of _0x311d3a){const _0xfabc69=a349_0x12b08a['join'](_0x806bec,_0x467daf[_0x2184a9(0x13f)]);let _0x1335d7=a349_0x12b08a[_0x2184a9(0x141)](_0x3e0ff5,_0x467daf[_0x2184a9(0x13f)]);_0x467daf[_0x2184a9(0x13f)]['endsWith'](_0x2184a9(0x129))&&(_0x1335d7=a349_0x12b08a['join'](_0x3e0ff5,_0x467daf[_0x2184a9(0x13f)][_0x2184a9(0x12e)](/\.tpl$/,'')));if(_0x467daf['isDirectory']())await a349_0x47312f[_0x2184a9(0x155)][_0x2184a9(0x144)](_0x1335d7,{'recursive':!![]}),await this[_0x2184a9(0x154)](_0xfabc69,_0x1335d7,_0x3f17f3,_0xcdc4bc);else _0x467daf[_0x2184a9(0x11a)]()&&await this['processFile'](_0xfabc69,_0x1335d7,_0x3f17f3,_0xcdc4bc);}}static async[a349_0x2be2e9(0x12d)](_0x351922,_0x4b9d5d,_0x4a585a,_0x5b14ec){const _0x27d5d4=a349_0x2be2e9,_0x2a4483=a349_0x12b08a[_0x27d5d4(0x149)](_0x351922)['toLowerCase']();_0x351922[_0x27d5d4(0x13e)](_0x27d5d4(0x129))&&(_0x4b9d5d=_0x4b9d5d['replace'](/\.tpl$/,''));const _0x1c090b=[_0x27d5d4(0x158),'.ts','.jsx','.js',_0x27d5d4(0x14e),_0x27d5d4(0x136),'.css',_0x27d5d4(0x125),_0x27d5d4(0x129)];if(_0x1c090b[_0x27d5d4(0x130)](_0x2a4483)||_0x351922[_0x27d5d4(0x13e)](_0x27d5d4(0x129))){const _0x8ac1bd=await a349_0x47312f[_0x27d5d4(0x155)]['readFile'](_0x351922,_0x27d5d4(0x157)),_0x1c3c5c=this[_0x27d5d4(0x139)](_0x8ac1bd,_0x4a585a,_0x5b14ec);await a349_0x47312f[_0x27d5d4(0x155)][_0x27d5d4(0x14c)](_0x4b9d5d,_0x1c3c5c,_0x27d5d4(0x157));}else await a349_0x47312f[_0x27d5d4(0x155)]['copyFile'](_0x351922,_0x4b9d5d);}}
@@ -1 +1 @@
1
- (function(_0x2513c0,_0x511136){const _0x49f53c=a350_0x36ae,_0x6ab511=_0x2513c0();while(!![]){try{const _0x5e167e=parseInt(_0x49f53c(0xc0))/0x1*(-parseInt(_0x49f53c(0xb5))/0x2)+parseInt(_0x49f53c(0xb4))/0x3*(parseInt(_0x49f53c(0xc4))/0x4)+parseInt(_0x49f53c(0xbd))/0x5+parseInt(_0x49f53c(0xa9))/0x6*(-parseInt(_0x49f53c(0xc6))/0x7)+-parseInt(_0x49f53c(0xc2))/0x8+parseInt(_0x49f53c(0xb0))/0x9+-parseInt(_0x49f53c(0xb2))/0xa;if(_0x5e167e===_0x511136)break;else _0x6ab511['push'](_0x6ab511['shift']());}catch(_0x32f762){_0x6ab511['push'](_0x6ab511['shift']());}}}(a350_0x4ded,0x1a782));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a350_0x36ae(_0x59b4f1,_0x3e4e91){_0x59b4f1=_0x59b4f1-0xa9;const _0x4ded27=a350_0x4ded();let _0x36aeea=_0x4ded27[_0x59b4f1];return _0x36aeea;}import a350_0x6f1e54 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 _0x347de9=a350_0x36ae,_0x190331=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x347de9(0xab)]()[_0x347de9(0xaa)]();return _0x190331==='1'||_0x190331==='true'||_0x190331===_0x347de9(0xb9);}function cacheRoot(){const _0xe0f6da=a350_0x36ae;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xe0f6da(0xac));}export function getUpdateNoticeCachePath(){const _0x16bfc9=a350_0x36ae;return join(cacheRoot(),_0x16bfc9(0xc5),_0x16bfc9(0xbc));}function a350_0x4ded(){const _0x160090=['13217ptHcjA','stringify','602760qvYLIS','https://www.npmjs.com/package/','228412MxlqzK','rabetbase-cli','595QJBdnB','3894TnEmKc','toLowerCase','trim','.cache','\x20available,\x20current\x20','valid','utf8','247905IcBVCG','object','729700VYRiyY',',\x20run:\x20','9egaGDQ','14HZqNmz','checkedAt','parse','gte','yes','latest','number','update-check.json','1027815nvFByv','/v/','\x20update'];a350_0x4ded=function(){return _0x160090;};return a350_0x4ded();}async function readUpdateNoticeCache(){const _0x2ad0ee=a350_0x36ae;try{const _0x3d80f5=await readFile(getUpdateNoticeCachePath(),_0x2ad0ee(0xaf)),_0x18a374=JSON[_0x2ad0ee(0xb7)](_0x3d80f5);if(!_0x18a374||typeof _0x18a374!==_0x2ad0ee(0xb1))return{};return _0x18a374;}catch{return{};}}async function writeUpdateNoticeCache(_0x27b114){const _0x2b7d42=a350_0x36ae;try{const _0x4bdd7a=getUpdateNoticeCachePath();await mkdir(dirname(_0x4bdd7a),{'recursive':!![]}),await writeFile(_0x4bdd7a,JSON[_0x2b7d42(0xc1)](_0x27b114,null,0x2)+'\x0a',_0x2b7d42(0xaf));}catch{}}function isFreshCheck(_0x222627,_0x493208){const _0xaafb6a=a350_0x36ae;return typeof _0x222627[_0xaafb6a(0xb6)]===_0xaafb6a(0xbb)&&_0x493208-_0x222627[_0xaafb6a(0xb6)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3f0ca2,_0x2f1852,_0x2f5e74){return _0x3f0ca2['lastNotifiedVersion']===_0x2f1852&&typeof _0x3f0ca2['lastNotifiedAt']==='number'&&_0x2f5e74-_0x3f0ca2['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1d5387){const _0x525469=a350_0x36ae;return _0x525469(0xc3)+NPM_PACKAGE_NAME+_0x525469(0xbe)+_0x1d5387;}export async function resolveLatestUpdateNotice(){const _0xd299e2=a350_0x36ae;if(isUpdateNoticeDisabled())return null;try{const _0x4a9c6f=Date['now'](),_0x22e369=getCliVersion(),_0x36ef1a=await readUpdateNoticeCache();let _0x24ba87=isFreshCheck(_0x36ef1a,_0x4a9c6f)?_0x36ef1a[_0xd299e2(0xba)]?.['trim']():undefined;if(!_0x24ba87&&!isFreshCheck(_0x36ef1a,_0x4a9c6f)){const _0x13d6e4=await getCliVersionPolicy();_0x24ba87=_0x13d6e4?.['stableVersion']?.[_0xd299e2(0xab)]()||undefined,await writeUpdateNoticeCache({..._0x36ef1a,'checkedAt':_0x4a9c6f,'latest':_0x24ba87,'failed':!_0x24ba87});}if(!_0x24ba87||!a350_0x6f1e54['valid'](_0x22e369)||!a350_0x6f1e54[_0xd299e2(0xae)](_0x24ba87))return null;if(a350_0x6f1e54[_0xd299e2(0xb8)](_0x22e369,_0x24ba87))return null;if(isRecentlyNotified(_0x36ef1a,_0x24ba87,_0x4a9c6f))return null;const _0x5a0632=CLI_BIN_NAME+_0xd299e2(0xbf);return await writeUpdateNoticeCache({..._0x36ef1a,'checkedAt':isFreshCheck(_0x36ef1a,_0x4a9c6f)?_0x36ef1a['checkedAt']:_0x4a9c6f,'latest':_0x24ba87,'failed':![],'lastNotifiedVersion':_0x24ba87,'lastNotifiedAt':_0x4a9c6f}),{'command':_0x5a0632,'current':_0x22e369,'latest':_0x24ba87,'url':buildNpmVersionUrl(_0x24ba87),'message':CLI_BIN_NAME+'\x20'+_0x24ba87+_0xd299e2(0xad)+_0x22e369+_0xd299e2(0xb3)+_0x5a0632};}catch{return null;}}
1
+ (function(_0x4054b6,_0x23d119){const _0x2f4ab5=a350_0xacf3,_0x7239af=_0x4054b6();while(!![]){try{const _0x2675fe=-parseInt(_0x2f4ab5(0x189))/0x1+parseInt(_0x2f4ab5(0x17e))/0x2+-parseInt(_0x2f4ab5(0x185))/0x3+parseInt(_0x2f4ab5(0x17d))/0x4*(-parseInt(_0x2f4ab5(0x180))/0x5)+parseInt(_0x2f4ab5(0x186))/0x6*(parseInt(_0x2f4ab5(0x18c))/0x7)+-parseInt(_0x2f4ab5(0x18a))/0x8*(parseInt(_0x2f4ab5(0x191))/0x9)+parseInt(_0x2f4ab5(0x18d))/0xa;if(_0x2675fe===_0x23d119)break;else _0x7239af['push'](_0x7239af['shift']());}catch(_0x4aea8e){_0x7239af['push'](_0x7239af['shift']());}}}(a350_0x4bd3,0x379ab));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a350_0x362e20 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a350_0xacf3(_0x24f712,_0x9ee825){_0x24f712=_0x24f712-0x177;const _0x4bd30d=a350_0x4bd3();let _0xacf30b=_0x4bd30d[_0x24f712];return _0xacf30b;}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 _0x1ddbd2=a350_0xacf3,_0x53cdff=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1ddbd2(0x18f)]()['toLowerCase']();return _0x53cdff==='1'||_0x53cdff===_0x1ddbd2(0x184)||_0x53cdff===_0x1ddbd2(0x17f);}function a350_0x4bd3(){const _0x22ae39=['yes','110WYyoER','now','/v/','.cache','true','32763fUCAgo','787422VImfFL','stringify','latest','329233oAESah','2766488pbjDNF','parse','7qZXCan','11660690Jtlqlk','\x20update','trim','valid','9IKswBR','utf8','gte','lastNotifiedAt','number','lastNotifiedVersion',',\x20run:\x20','checkedAt','https://www.npmjs.com/package/','update-check.json','stableVersion','82332TRWMGc','138480nOsNRx'];a350_0x4bd3=function(){return _0x22ae39;};return a350_0x4bd3();}function cacheRoot(){const _0x3f6805=a350_0xacf3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3f6805(0x183));}export function getUpdateNoticeCachePath(){const _0x454cf1=a350_0xacf3;return join(cacheRoot(),'rabetbase-cli',_0x454cf1(0x17b));}async function readUpdateNoticeCache(){const _0x5784ac=a350_0xacf3;try{const _0x5190a8=await readFile(getUpdateNoticeCachePath(),_0x5784ac(0x192)),_0x421cdd=JSON[_0x5784ac(0x18b)](_0x5190a8);if(!_0x421cdd||typeof _0x421cdd!=='object')return{};return _0x421cdd;}catch{return{};}}async function writeUpdateNoticeCache(_0x2660df){const _0x8b991=a350_0xacf3;try{const _0x27803f=getUpdateNoticeCachePath();await mkdir(dirname(_0x27803f),{'recursive':!![]}),await writeFile(_0x27803f,JSON[_0x8b991(0x187)](_0x2660df,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x4580bb,_0x1d0728){const _0x434ab5=a350_0xacf3;return typeof _0x4580bb[_0x434ab5(0x179)]===_0x434ab5(0x195)&&_0x1d0728-_0x4580bb['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x526e8b,_0x4c2bbf,_0x3152d9){const _0x21710b=a350_0xacf3;return _0x526e8b[_0x21710b(0x177)]===_0x4c2bbf&&typeof _0x526e8b[_0x21710b(0x194)]===_0x21710b(0x195)&&_0x3152d9-_0x526e8b[_0x21710b(0x194)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xa5a487){const _0x20ddcd=a350_0xacf3;return _0x20ddcd(0x17a)+NPM_PACKAGE_NAME+_0x20ddcd(0x182)+_0xa5a487;}export async function resolveLatestUpdateNotice(){const _0x5a3ac3=a350_0xacf3;if(isUpdateNoticeDisabled())return null;try{const _0x38193b=Date[_0x5a3ac3(0x181)](),_0x233f7c=getCliVersion(),_0x3c0690=await readUpdateNoticeCache();let _0x2d8fae=isFreshCheck(_0x3c0690,_0x38193b)?_0x3c0690[_0x5a3ac3(0x188)]?.[_0x5a3ac3(0x18f)]():undefined;if(!_0x2d8fae&&!isFreshCheck(_0x3c0690,_0x38193b)){const _0x1fbd21=await getCliVersionPolicy();_0x2d8fae=_0x1fbd21?.[_0x5a3ac3(0x17c)]?.[_0x5a3ac3(0x18f)]()||undefined,await writeUpdateNoticeCache({..._0x3c0690,'checkedAt':_0x38193b,'latest':_0x2d8fae,'failed':!_0x2d8fae});}if(!_0x2d8fae||!a350_0x362e20[_0x5a3ac3(0x190)](_0x233f7c)||!a350_0x362e20[_0x5a3ac3(0x190)](_0x2d8fae))return null;if(a350_0x362e20[_0x5a3ac3(0x193)](_0x233f7c,_0x2d8fae))return null;if(isRecentlyNotified(_0x3c0690,_0x2d8fae,_0x38193b))return null;const _0x58a737=CLI_BIN_NAME+_0x5a3ac3(0x18e);return await writeUpdateNoticeCache({..._0x3c0690,'checkedAt':isFreshCheck(_0x3c0690,_0x38193b)?_0x3c0690[_0x5a3ac3(0x179)]:_0x38193b,'latest':_0x2d8fae,'failed':![],'lastNotifiedVersion':_0x2d8fae,'lastNotifiedAt':_0x38193b}),{'command':_0x58a737,'current':_0x233f7c,'latest':_0x2d8fae,'url':buildNpmVersionUrl(_0x2d8fae),'message':CLI_BIN_NAME+'\x20'+_0x2d8fae+'\x20available,\x20current\x20'+_0x233f7c+_0x5a3ac3(0x178)+_0x58a737};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0xe9ce50,_0x56763e){var _0xc1f531=a351_0xd66f,_0x373f71=_0xe9ce50();while(!![]){try{var _0x24c703=parseInt(_0xc1f531(0x15e))/0x1*(parseInt(_0xc1f531(0x165))/0x2)+parseInt(_0xc1f531(0x15f))/0x3+-parseInt(_0xc1f531(0x167))/0x4*(-parseInt(_0xc1f531(0x15d))/0x5)+-parseInt(_0xc1f531(0x166))/0x6*(-parseInt(_0xc1f531(0x164))/0x7)+parseInt(_0xc1f531(0x163))/0x8+parseInt(_0xc1f531(0x161))/0x9*(-parseInt(_0xc1f531(0x162))/0xa)+-parseInt(_0xc1f531(0x160))/0xb;if(_0x24c703===_0x56763e)break;else _0x373f71['push'](_0x373f71['shift']());}catch(_0x2f5494){_0x373f71['push'](_0x373f71['shift']());}}}(a351_0x1fac,0x8f86d));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a351_0xd66f(_0x38cff3,_0x150b74){_0x38cff3=_0x38cff3-0x15d;var _0x1fac5e=a351_0x1fac();var _0xd66f3e=_0x1fac5e[_0x38cff3];return _0xd66f3e;}function a351_0x1fac(){var _0xbd4c10=['67842mvMFqi','440YGpYyC','3442120eDuonS','14eLeVJM','2eDqmim','2556804NttAnu','824LOyZNt','7730wkurod','446703LyxaRU','1069098myVpet','16329731YcaJQm'];a351_0x1fac=function(){return _0xbd4c10;};return a351_0x1fac();}
1
+ function a351_0x4bc4(_0x5aa784,_0xd3fcfe){_0x5aa784=_0x5aa784-0x77;var _0x5602ed=a351_0x5602();var _0x4bc430=_0x5602ed[_0x5aa784];return _0x4bc430;}(function(_0x3f9429,_0x1aefca){var _0x44a534=a351_0x4bc4,_0x45d260=_0x3f9429();while(!![]){try{var _0x3dd79c=parseInt(_0x44a534(0x7d))/0x1+parseInt(_0x44a534(0x77))/0x2+parseInt(_0x44a534(0x7e))/0x3+-parseInt(_0x44a534(0x78))/0x4+-parseInt(_0x44a534(0x79))/0x5*(parseInt(_0x44a534(0x7c))/0x6)+-parseInt(_0x44a534(0x7f))/0x7*(-parseInt(_0x44a534(0x7a))/0x8)+parseInt(_0x44a534(0x7b))/0x9;if(_0x3dd79c===_0x1aefca)break;else _0x45d260['push'](_0x45d260['shift']());}catch(_0x533ba4){_0x45d260['push'](_0x45d260['shift']());}}}(a351_0x5602,0x714d6));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a351_0x5602(){var _0x46342a=['550416zKTrbB','45905KhzDAK','24dUnJPX','140319waJOuh','222oejjhe','16712onXOII','998361sCQrUP','697879kQzeUk','554412QUXnQZ'];a351_0x5602=function(){return _0x46342a;};return a351_0x5602();}
@@ -1 +1 @@
1
- function a352_0x44fa(_0x38b31b,_0x5885c4){_0x38b31b=_0x38b31b-0x157;var _0x5ab6a5=a352_0x5ab6();var _0x44fad2=_0x5ab6a5[_0x38b31b];return _0x44fad2;}function a352_0x5ab6(){var _0x57b4cf=['6iDNtBm','8SxoMzb','2892246xiEXyN','3798603mmOaio','7Sfpmdt','6794799mFrfFi','136721nWzbtN','1345340RwxoIR','5475505YUnAcF','4xwCicE','1469472UaCahw'];a352_0x5ab6=function(){return _0x57b4cf;};return a352_0x5ab6();}(function(_0x218fbe,_0x171637){var _0x30cf2e=a352_0x44fa,_0x4d3f66=_0x218fbe();while(!![]){try{var _0x197417=-parseInt(_0x30cf2e(0x15b))/0x1*(-parseInt(_0x30cf2e(0x160))/0x2)+-parseInt(_0x30cf2e(0x15f))/0x3+parseInt(_0x30cf2e(0x15e))/0x4*(parseInt(_0x30cf2e(0x15d))/0x5)+-parseInt(_0x30cf2e(0x157))/0x6*(parseInt(_0x30cf2e(0x159))/0x7)+parseInt(_0x30cf2e(0x161))/0x8*(-parseInt(_0x30cf2e(0x158))/0x9)+parseInt(_0x30cf2e(0x15c))/0xa+parseInt(_0x30cf2e(0x15a))/0xb;if(_0x197417===_0x171637)break;else _0x4d3f66['push'](_0x4d3f66['shift']());}catch(_0x43426e){_0x4d3f66['push'](_0x4d3f66['shift']());}}}(a352_0x5ab6,0xd2d57));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x963cd5,_0x50a1cd){setActiveCookie(_0x963cd5);try{return await _0x50a1cd();}finally{clearActiveCookie();}}
1
+ function a352_0x5b51(_0x4ddcc6,_0x1ddaf1){_0x4ddcc6=_0x4ddcc6-0xa9;var _0x2bbd3f=a352_0x2bbd();var _0x5b5146=_0x2bbd3f[_0x4ddcc6];return _0x5b5146;}(function(_0x318263,_0x3ec36c){var _0x3e808e=a352_0x5b51,_0x208672=_0x318263();while(!![]){try{var _0xc5da6e=-parseInt(_0x3e808e(0xad))/0x1*(-parseInt(_0x3e808e(0xaa))/0x2)+-parseInt(_0x3e808e(0xb1))/0x3+-parseInt(_0x3e808e(0xb0))/0x4+-parseInt(_0x3e808e(0xb3))/0x5*(-parseInt(_0x3e808e(0xaf))/0x6)+parseInt(_0x3e808e(0xae))/0x7+parseInt(_0x3e808e(0xb2))/0x8*(parseInt(_0x3e808e(0xa9))/0x9)+parseInt(_0x3e808e(0xab))/0xa*(parseInt(_0x3e808e(0xac))/0xb);if(_0xc5da6e===_0x3ec36c)break;else _0x208672['push'](_0x208672['shift']());}catch(_0x25f731){_0x208672['push'](_0x208672['shift']());}}}(a352_0x2bbd,0xbaaa5));function a352_0x2bbd(){var _0x237b15=['6008360Qdlbvz','4566240mYvszf','6840XmaDue','70uXnZbe','621WHSBtE','322402CwToPC','8487350rWrzSH','22saSLAn','2myZHAX','9446080bEXdsb','154476xyUquu'];a352_0x2bbd=function(){return _0x237b15;};return a352_0x2bbd();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5b13a9,_0x2e925d){setActiveCookie(_0x5b13a9);try{return await _0x2e925d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a353_0x2ab7(_0x29c4f6,_0x5ff79a){_0x29c4f6=_0x29c4f6-0x78;var _0x43dea9=a353_0x43de();var _0x2ab748=_0x43dea9[_0x29c4f6];return _0x2ab748;}function a353_0x43de(){var _0xcdf607=['2306510sytonV','7100620uRhdsS','8433328kjmTUs','998287SYqVgs','162BSOYbK','2DleoRy','3239373TGHebh','write','42oxDAWD','stderr','7570829Negucl','636780tEpjbo'];a353_0x43de=function(){return _0xcdf607;};return a353_0x43de();}(function(_0x259750,_0x3971ed){var _0x348b78=a353_0x2ab7,_0x2073a5=_0x259750();while(!![]){try{var _0x7184c5=parseInt(_0x348b78(0x82))/0x1+-parseInt(_0x348b78(0x78))/0x2*(-parseInt(_0x348b78(0x79))/0x3)+parseInt(_0x348b78(0x80))/0x4+parseInt(_0x348b78(0x7e))/0x5*(-parseInt(_0x348b78(0x7b))/0x6)+parseInt(_0x348b78(0x7d))/0x7+parseInt(_0x348b78(0x81))/0x8+-parseInt(_0x348b78(0x83))/0x9*(parseInt(_0x348b78(0x7f))/0xa);if(_0x7184c5===_0x3971ed)break;else _0x2073a5['push'](_0x2073a5['shift']());}catch(_0x4d77ac){_0x2073a5['push'](_0x2073a5['shift']());}}}(a353_0x43de,0xe6e48));export function writeCliSideChannelLine(_0x1b1ce4){var _0x7dfefd=a353_0x2ab7;process[_0x7dfefd(0x7c)][_0x7dfefd(0x7a)](_0x1b1ce4+'\x0a');}
1
+ function a353_0x49d9(_0xbc95f4,_0x56e8ce){_0xbc95f4=_0xbc95f4-0x1dc;var _0x37c4bc=a353_0x37c4();var _0x49d921=_0x37c4bc[_0xbc95f4];return _0x49d921;}(function(_0x51170d,_0x52679f){var _0x1ba051=a353_0x49d9,_0x208679=_0x51170d();while(!![]){try{var _0x5290dc=parseInt(_0x1ba051(0x1e0))/0x1*(-parseInt(_0x1ba051(0x1e5))/0x2)+-parseInt(_0x1ba051(0x1df))/0x3+parseInt(_0x1ba051(0x1e3))/0x4*(-parseInt(_0x1ba051(0x1dd))/0x5)+parseInt(_0x1ba051(0x1e7))/0x6*(parseInt(_0x1ba051(0x1e2))/0x7)+parseInt(_0x1ba051(0x1e4))/0x8*(-parseInt(_0x1ba051(0x1dc))/0x9)+parseInt(_0x1ba051(0x1de))/0xa+parseInt(_0x1ba051(0x1e6))/0xb;if(_0x5290dc===_0x52679f)break;else _0x208679['push'](_0x208679['shift']());}catch(_0x574b7c){_0x208679['push'](_0x208679['shift']());}}}(a353_0x37c4,0xb712c));function a353_0x37c4(){var _0x48e562=['109BBxFLZ','stderr','82369NtFsoJ','44kSTpsK','1179552IAhmDY','13078ZuDIiL','15688838eGGLvs','342wMsKXf','18ZpaupZ','56945lfclcU','10916430gMfdSt','3917502fAtmoN'];a353_0x37c4=function(){return _0x48e562;};return a353_0x37c4();}export function writeCliSideChannelLine(_0x3c5d21){var _0x1872d4=a353_0x49d9;process[_0x1872d4(0x1e1)]['write'](_0x3c5d21+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.5.4-beta.1",
3
+ "version": "2.5.4-beta.2",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.5.4-beta.1
3
+ version: 2.5.4-beta.2
4
4
  description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
5
5
  metadata:
6
6
  requires:
@@ -351,7 +351,7 @@ const result = await client.bff.execute<DashboardData>({
351
351
  | 列出配置 | [`rabetbase config list`](references/rabetbase-config.md) | 查看当前生效的配置 |
352
352
  | 管理运行态 app-config | [`rabetbase app-config list/get/set/delete`](references/rabetbase-app-config.md) | 运行态 app-config 管理面;默认不输出明文 value;`set` 为 `write`,`delete` 保持 `high-risk-write` |
353
353
  | 管理 Instant API 数据集访问策略 | [`rabetbase instant-api-policy init/current/pull/validate/publish/revisions/revision/rollback`](references/rabetbase-instant-api-policy.md) | 固定文件 `.rabetbase/instant-api-policy/<appCode>/policy.json`;`version` 是 JSON 结构版本,`revision` 是发布历史版本;publish/rollback 为 high-risk-write |
354
- | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;search 仅V2,必填可信HTTPS `--kb-service-url`,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
354
+ | 管理和检索当前研发应用的企业知识库 | [`rabetbase kb list/detail/search/create/update/delete`](references/rabetbase-kb.md) | 管理仅 company scope;search 仅V2,默认解析 `kbServiceDomain`,可用 `--kb-service-url` 单次覆盖,使用Cookie且仅 `public/company`;`create/update` 为 `write`,`delete` 保持 `high-risk-write` |
355
355
  | 管理当前研发应用的 Agent context 规则 | [`rabetbase rule list/get/set`](references/rabetbase-rule.md) | `RULES.md` 供页面、API 等研发 Agent 使用且排除 DB Agent;`DATABASE.md` 仅供数据库分析时 DB Agent 使用;两者在各自流程全程参与 context;set 为 `write`,先 dry-run |
356
356
  | 查询或管理应用级通知配置 | [`rabetbase notification config-list`](references/rabetbase-notification-config-list.md) / [`rabetbase notification config-create`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-update`](references/rabetbase-notification-config-mutations.md) / [`rabetbase notification config-delete`](references/rabetbase-notification-config-mutations.md) | list 获取 Backend Function 所需 `configCode`;写入只接收单一敏感 JSON 源,先 dry-run;update/delete 必须 `--yes` |
357
357
  | 设计、校验和发布表单审批流或独立工作流 | [`rabetbase flow validate/list/detail/create/update/publish`](references/rabetbase-flow-commands.md) | 先确定 `flowType`;本地 validate 后再 create/update 和 publish |