@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
  293. package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x2a442c,_0xc39ef8){const _0x4e918d=a267_0x3a8d,_0x456e55=_0x2a442c();while(!![]){try{const _0x2a3af2=-parseInt(_0x4e918d(0x1b7))/0x1*(parseInt(_0x4e918d(0x1bb))/0x2)+parseInt(_0x4e918d(0x1b3))/0x3+-parseInt(_0x4e918d(0x1bd))/0x4*(-parseInt(_0x4e918d(0x1b1))/0x5)+parseInt(_0x4e918d(0x1b6))/0x6+-parseInt(_0x4e918d(0x1ba))/0x7+-parseInt(_0x4e918d(0x1be))/0x8*(parseInt(_0x4e918d(0x1b2))/0x9)+parseInt(_0x4e918d(0x1b9))/0xa;if(_0x2a3af2===_0xc39ef8)break;else _0x456e55['push'](_0x456e55['shift']());}catch(_0x14c167){_0x456e55['push'](_0x456e55['shift']());}}}(a267_0x525d,0x7b7e3));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a267_0x525d(){const _0x57e84b=['5mpOkdn','1094589gAZErk','1313073BhubjN','then','SIGTERM','4838730DtNmfV','10GDCLcq','once','10379130embHSU','6981450SvfBlU','154410OeQwVo','SIGINT','2891576BzWXGX','48opOerB'];a267_0x525d=function(){return _0x57e84b;};return a267_0x525d();}function a267_0x3a8d(_0xc17926,_0x3119c3){_0xc17926=_0xc17926-0x1b1;const _0x525d18=a267_0x525d();let _0x3a8dc3=_0x525d18[_0xc17926];return _0x3a8dc3;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4d61e0=a267_0x3a8d;process[_0x4d61e0(0x1b8)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x20d2a2=()=>{const _0x43498a=_0x4d61e0;void flushOtelNodeIfUsed()[_0x43498a(0x1b4)](()=>process['exit'](0x0));};process[_0x4d61e0(0x1b8)](_0x4d61e0(0x1bc),_0x20d2a2),process['once'](_0x4d61e0(0x1b5),_0x20d2a2);}export async function exitWithOtelShutdown(_0x4c5d42){await flushOtelNodeIfUsed(),process['exit'](_0x4c5d42);}
1
+ (function(_0x2b0d63,_0x226583){const _0x142a3=a267_0x2560,_0x1c274b=_0x2b0d63();while(!![]){try{const _0xb493db=-parseInt(_0x142a3(0x132))/0x1+-parseInt(_0x142a3(0x12f))/0x2+-parseInt(_0x142a3(0x126))/0x3+-parseInt(_0x142a3(0x12a))/0x4*(-parseInt(_0x142a3(0x127))/0x5)+-parseInt(_0x142a3(0x12d))/0x6+parseInt(_0x142a3(0x12e))/0x7*(parseInt(_0x142a3(0x130))/0x8)+parseInt(_0x142a3(0x129))/0x9;if(_0xb493db===_0x226583)break;else _0x1c274b['push'](_0x1c274b['shift']());}catch(_0x3edae7){_0x1c274b['push'](_0x1c274b['shift']());}}}(a267_0x1713,0x4ff7b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a267_0x2560(_0x48800a,_0x168dbb){_0x48800a=_0x48800a-0x126;const _0x171394=a267_0x1713();let _0x256091=_0x171394[_0x48800a];return _0x256091;}export function registerOtelShutdownOnExit(){const _0x4e9b50=a267_0x2560;process[_0x4e9b50(0x12c)](_0x4e9b50(0x133),()=>{void flushOtelNodeIfUsed();});const _0x171a01=()=>{const _0x4c245d=_0x4e9b50;void flushOtelNodeIfUsed()[_0x4c245d(0x12b)](()=>process[_0x4c245d(0x128)](0x0));};process[_0x4e9b50(0x12c)](_0x4e9b50(0x131),_0x171a01),process[_0x4e9b50(0x12c)]('SIGTERM',_0x171a01);}function a267_0x1713(){const _0xb88fe3=['14688630hsrVIm','16VlocSf','then','once','3678882LORUuV','12516uoJzuT','1133996gnGdhR','952FfEReB','SIGINT','125439tsvUDY','beforeExit','996273MADquf','150475TayNQp','exit'];a267_0x1713=function(){return _0xb88fe3;};return a267_0x1713();}export async function exitWithOtelShutdown(_0x43986d){const _0x5ef8dc=a267_0x2560;await flushOtelNodeIfUsed(),process[_0x5ef8dc(0x128)](_0x43986d);}
@@ -1 +1 @@
1
- function a268_0xfb87(_0x50d02a,_0x2c9fcb){_0x50d02a=_0x50d02a-0x1db;const _0x4c7529=a268_0x4c75();let _0xfb8788=_0x4c7529[_0x50d02a];return _0xfb8788;}const a268_0x55edbb=a268_0xfb87;(function(_0x250a9b,_0x5b172a){const _0xb7109=a268_0xfb87,_0x1785cf=_0x250a9b();while(!![]){try{const _0x550e8e=-parseInt(_0xb7109(0x1eb))/0x1+-parseInt(_0xb7109(0x1e9))/0x2+-parseInt(_0xb7109(0x1de))/0x3*(parseInt(_0xb7109(0x1e8))/0x4)+-parseInt(_0xb7109(0x1e0))/0x5+-parseInt(_0xb7109(0x1df))/0x6*(parseInt(_0xb7109(0x1db))/0x7)+parseInt(_0xb7109(0x1e2))/0x8+-parseInt(_0xb7109(0x1ea))/0x9*(-parseInt(_0xb7109(0x1dc))/0xa);if(_0x550e8e===_0x5b172a)break;else _0x1785cf['push'](_0x1785cf['shift']());}catch(_0x1d4516){_0x1785cf['push'](_0x1785cf['shift']());}}}(a268_0x4c75,0x416d1));function a268_0x4c75(){const _0x532837=['198530lWHJsv','2097261EhFQbC','342055SwbeUu','133343fQLfeR','60unTXmd','rabetbase-cli','61551RjSRcG','12DAxQBn','1558890dFcQEO','traceName','406640QHBfOf','logData','spanName','traceparent','version','manual','76dsWfeg'];a268_0x4c75=function(){return _0x532837;};return a268_0x4c75();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a268_0x55edbb(0x1dd);export async function sendCliTraceLog(_0x3991b3){const _0x72d574=a268_0x55edbb;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3991b3[_0x72d574(0x1e1)]??DEFAULT_TRACE_NAME,'version':_0x3991b3[_0x72d574(0x1e6)]??getCliVersion(),'spanName':_0x3991b3[_0x72d574(0x1e4)],'eventType':_0x72d574(0x1e7),'logData':_0x3991b3[_0x72d574(0x1e3)],..._0x3991b3[_0x72d574(0x1e5)]&&{'traceparent':_0x3991b3[_0x72d574(0x1e5)]}});}
1
+ const a268_0x56d481=a268_0xaba0;(function(_0x4308c9,_0xa56146){const _0x271fee=a268_0xaba0,_0xb01517=_0x4308c9();while(!![]){try{const _0xbffff1=parseInt(_0x271fee(0x16a))/0x1+parseInt(_0x271fee(0x170))/0x2+parseInt(_0x271fee(0x163))/0x3*(parseInt(_0x271fee(0x16c))/0x4)+-parseInt(_0x271fee(0x169))/0x5*(-parseInt(_0x271fee(0x16b))/0x6)+-parseInt(_0x271fee(0x165))/0x7*(-parseInt(_0x271fee(0x160))/0x8)+parseInt(_0x271fee(0x164))/0x9*(parseInt(_0x271fee(0x166))/0xa)+-parseInt(_0x271fee(0x16d))/0xb;if(_0xbffff1===_0xa56146)break;else _0xb01517['push'](_0xb01517['shift']());}catch(_0x28cf49){_0xb01517['push'](_0xb01517['shift']());}}}(a268_0xff43,0x67576));function a268_0xaba0(_0x39a6f0,_0x25b5b5){_0x39a6f0=_0x39a6f0-0x15f;const _0xff4368=a268_0xff43();let _0xaba09=_0xff4368[_0x39a6f0];return _0xaba09;}import{sendTraceLog}from'@lovrabet/otel-logger';function a268_0xff43(){const _0x3b418c=['traceparent','1478872sLJsqw','version','traceName','142317ObVidR','2107107GyCEQc','28wrsVNv','10EkuvOr','spanName','logData','5wNutBJ','134622xKrpDJ','2551308UoYnCP','4IIvnfP','17085035qXoeqw','manual','rabetbase-cli','791266ElaFYy'];a268_0xff43=function(){return _0x3b418c;};return a268_0xff43();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a268_0x56d481(0x16f);export async function sendCliTraceLog(_0x41244c){const _0x5c0781=a268_0x56d481;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x41244c[_0x5c0781(0x162)]??DEFAULT_TRACE_NAME,'version':_0x41244c[_0x5c0781(0x161)]??getCliVersion(),'spanName':_0x41244c[_0x5c0781(0x167)],'eventType':_0x5c0781(0x16e),'logData':_0x41244c[_0x5c0781(0x168)],..._0x41244c[_0x5c0781(0x15f)]&&{'traceparent':_0x41244c[_0x5c0781(0x15f)]}});}
@@ -1 +1 @@
1
- const a269_0x3a2444=a269_0x28b4;function a269_0x28b4(_0x4f1ec3,_0x16238c){_0x4f1ec3=_0x4f1ec3-0x110;const _0x2cd8a8=a269_0x2cd8();let _0x28b4d4=_0x2cd8a8[_0x4f1ec3];return _0x28b4d4;}function a269_0x2cd8(){const _0x577148=['platform-issue-log-collect','1333881FelcjI','36132KrGDAJ','4NjCZni','24561BNJAlq','816332VTKEaJ','title','sanitize','620HKAkdI','truncated','2659895tPcdvi','4650DjEqrU','1428092xoaUCp','originalBytes','99472WFFErp','issue.log.collect'];a269_0x2cd8=function(){return _0x577148;};return a269_0x2cd8();}(function(_0x4e3d58,_0x1bb80a){const _0x55311e=a269_0x28b4,_0x17d886=_0x4e3d58();while(!![]){try{const _0x4fa9ad=-parseInt(_0x55311e(0x113))/0x1+-parseInt(_0x55311e(0x11a))/0x2+parseInt(_0x55311e(0x11f))/0x3*(parseInt(_0x55311e(0x111))/0x4)+parseInt(_0x55311e(0x116))/0x5*(parseInt(_0x55311e(0x110))/0x6)+-parseInt(_0x55311e(0x118))/0x7+-parseInt(_0x55311e(0x11c))/0x8+-parseInt(_0x55311e(0x112))/0x9*(-parseInt(_0x55311e(0x119))/0xa);if(_0x4fa9ad===_0x1bb80a)break;else _0x17d886['push'](_0x17d886['shift']());}catch(_0xb47fcd){_0x17d886['push'](_0x17d886['shift']());}}}(a269_0x2cd8,0x833c7));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a269_0x3a2444(0x11e);export const PLATFORM_ISSUE_SPAN_NAME=a269_0x3a2444(0x11d);export async function sendPlatformIssueCollectLog(_0xd6b9d7){const _0x535308=a269_0x3a2444;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xd6b9d7[_0x535308(0x114)],'issue.description':_0xd6b9d7['description'],..._0xd6b9d7['sanitize']?{'issue.description_original_bytes':_0xd6b9d7[_0x535308(0x115)][_0x535308(0x11b)],'issue.description_truncated':_0xd6b9d7[_0x535308(0x115)][_0x535308(0x117)],'issue.description_redactions':_0xd6b9d7[_0x535308(0x115)]['redactionCount'],'issue.description_redaction_kinds':_0xd6b9d7[_0x535308(0x115)]['redactionKinds']['join'](',')}:{}}});}
1
+ const a269_0x164498=a269_0x1167;(function(_0x3029a5,_0x2b72cc){const _0x367b92=a269_0x1167,_0x57b176=_0x3029a5();while(!![]){try{const _0x3cfcd2=-parseInt(_0x367b92(0x13f))/0x1+parseInt(_0x367b92(0x148))/0x2+-parseInt(_0x367b92(0x13d))/0x3+-parseInt(_0x367b92(0x142))/0x4*(parseInt(_0x367b92(0x149))/0x5)+parseInt(_0x367b92(0x143))/0x6*(-parseInt(_0x367b92(0x144))/0x7)+parseInt(_0x367b92(0x146))/0x8+parseInt(_0x367b92(0x13b))/0x9;if(_0x3cfcd2===_0x2b72cc)break;else _0x57b176['push'](_0x57b176['shift']());}catch(_0x2f8a28){_0x57b176['push'](_0x57b176['shift']());}}}(a269_0x4c01,0x5d2cc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x1167(_0x37735f,_0x41c1c5){_0x37735f=_0x37735f-0x139;const _0x4c01a9=a269_0x4c01();let _0x116784=_0x4c01a9[_0x37735f];return _0x116784;}export const PLATFORM_ISSUE_TRACE_NAME=a269_0x164498(0x139);export const PLATFORM_ISSUE_SPAN_NAME=a269_0x164498(0x147);function a269_0x4c01(){const _0x1eb427=['join','23558589ZbLaiB','redactionKinds','2096553cbzFwe','description','669262xqnBkq','title','originalBytes','8feQHjk','95958QOdVsH','189DYabLv','truncated','1624712WHQvOl','issue.log.collect','189816RQfeKf','1835125MrQbNo','sanitize','platform-issue-log-collect'];a269_0x4c01=function(){return _0x1eb427;};return a269_0x4c01();}export async function sendPlatformIssueCollectLog(_0x2f7a61){const _0x3aa92c=a269_0x164498;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f7a61[_0x3aa92c(0x140)],'issue.description':_0x2f7a61[_0x3aa92c(0x13e)],..._0x2f7a61['sanitize']?{'issue.description_original_bytes':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x141)],'issue.description_truncated':_0x2f7a61['sanitize'][_0x3aa92c(0x145)],'issue.description_redactions':_0x2f7a61[_0x3aa92c(0x14a)]['redactionCount'],'issue.description_redaction_kinds':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x13c)][_0x3aa92c(0x13a)](',')}:{}}});}
@@ -1 +1 @@
1
- const a271_0x1a0f8d=a271_0x1c25;(function(_0x4034bd,_0x5b2081){const _0x388ea4=a271_0x1c25,_0x278423=_0x4034bd();while(!![]){try{const _0x19bbee=parseInt(_0x388ea4(0x153))/0x1+-parseInt(_0x388ea4(0x158))/0x2+-parseInt(_0x388ea4(0x14f))/0x3*(-parseInt(_0x388ea4(0x166))/0x4)+parseInt(_0x388ea4(0x13f))/0x5*(parseInt(_0x388ea4(0x140))/0x6)+-parseInt(_0x388ea4(0x15c))/0x7*(-parseInt(_0x388ea4(0x164))/0x8)+-parseInt(_0x388ea4(0x141))/0x9+-parseInt(_0x388ea4(0x15f))/0xa;if(_0x19bbee===_0x5b2081)break;else _0x278423['push'](_0x278423['shift']());}catch(_0x815ab1){_0x278423['push'](_0x278423['shift']());}}}(a271_0x5433,0x39fd5));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x1a0f8d(0x13d),'description':a271_0x1a0f8d(0x157),'folders':['.cursorrules','.cursor'],'files':[{'type':a271_0x1a0f8d(0x162),'path':a271_0x1a0f8d(0x144),'template':a271_0x1a0f8d(0x165)}]},'windsurf':{'name':a271_0x1a0f8d(0x13c),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':a271_0x1a0f8d(0x162),'path':a271_0x1a0f8d(0x148),'template':a271_0x1a0f8d(0x165)}]},'claude':{'name':'Claude\x20Code','description':a271_0x1a0f8d(0x14e),'folders':['.claude'],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.claude/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'cline':{'name':a271_0x1a0f8d(0x151),'description':a271_0x1a0f8d(0x160),'folders':[a271_0x1a0f8d(0x149)],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.cline/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'codex':{'name':a271_0x1a0f8d(0x154),'description':a271_0x1a0f8d(0x155),'folders':[a271_0x1a0f8d(0x13b)],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.codex/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'opencode':{'name':a271_0x1a0f8d(0x145),'description':a271_0x1a0f8d(0x146),'folders':[a271_0x1a0f8d(0x14b)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'qoder':{'name':a271_0x1a0f8d(0x156),'description':a271_0x1a0f8d(0x15a),'folders':[a271_0x1a0f8d(0x159)],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.qoder/rules/rabetbase.md','template':a271_0x1a0f8d(0x165)},{'type':a271_0x1a0f8d(0x162),'path':a271_0x1a0f8d(0x152),'template':a271_0x1a0f8d(0x165)}]},'codebuddy':{'name':a271_0x1a0f8d(0x167),'description':a271_0x1a0f8d(0x142),'folders':['.codebuddy'],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'trae':{'name':a271_0x1a0f8d(0x13a),'description':a271_0x1a0f8d(0x13e),'folders':['.trae'],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.trae/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a271_0x1a0f8d(0x14d)],'files':[{'type':a271_0x1a0f8d(0x162),'path':'.agent/skills/lovrabet/SKILL.md','template':a271_0x1a0f8d(0x165)}]},'antigravity':{'name':'Antigravity','description':a271_0x1a0f8d(0x15d),'folders':[a271_0x1a0f8d(0x14d)],'files':[{'type':a271_0x1a0f8d(0x162),'path':a271_0x1a0f8d(0x150),'template':a271_0x1a0f8d(0x165)}]}};export const CORE_IDE_LIST=[a271_0x1a0f8d(0x168),'cline',a271_0x1a0f8d(0x14c),a271_0x1a0f8d(0x14a),'cursor','opencode',a271_0x1a0f8d(0x147),a271_0x1a0f8d(0x161),'windsurf'];function a271_0x1c25(_0x244b59,_0xd45c8f){_0x244b59=_0x244b59-0x139;const _0x543322=a271_0x5433();let _0x1c252d=_0x543322[_0x244b59];return _0x1c252d;}export const IDE_LIST=['antigravity','claude',a271_0x1a0f8d(0x163),a271_0x1a0f8d(0x14c),a271_0x1a0f8d(0x14a),a271_0x1a0f8d(0x139),a271_0x1a0f8d(0x143),a271_0x1a0f8d(0x147),a271_0x1a0f8d(0x161),a271_0x1a0f8d(0x15e),a271_0x1a0f8d(0x15b)];export const ALL_CORE_IDES=['cursor','windsurf',a271_0x1a0f8d(0x168),'cline',a271_0x1a0f8d(0x14a),'opencode',a271_0x1a0f8d(0x147),a271_0x1a0f8d(0x14c),'trae'];function a271_0x5433(){const _0x5227d8=['112098HeiOzR','Antigravity\x20IDE','windsurf','2540460iyjYpo','Cline\x20IDE','trae','file','cline','24WXWfQh','SKILL.md.tpl','1713132ElhIjy','CodeBuddy','claude','cursor','Trae','.codex','Windsurf','Cursor','Trae\x20IDE','11800dkhVoV','222HsKfmN','1754361CHgYiI','CodeBuddy\x20IDE','opencode','.cursor/skills/rabetbase.md','OpenCode','OpenCode\x20IDE','qoder','.windsurf/workflows/rabetbase.md','.cline','codex','.opencode','codebuddy','.agent','Claude\x20Code','3MVcZCY','.agent/skills/lovrabet/SKILL.md','Cline','.qoder/skills/lovrabet/SKILL.md','163208RsjRXd','Codex','Codex\x20IDE','Qoder','Cursor\x20IDE','80706NNMFFs','.qoder','Qoder\x20IDE','agent'];a271_0x5433=function(){return _0x5227d8;};return a271_0x5433();}
1
+ const a271_0x29c1f4=a271_0x564a;(function(_0xcb627c,_0x32d2fa){const _0x54f361=a271_0x564a,_0x285236=_0xcb627c();while(!![]){try{const _0x506a36=parseInt(_0x54f361(0x15b))/0x1*(-parseInt(_0x54f361(0x159))/0x2)+-parseInt(_0x54f361(0x13b))/0x3+-parseInt(_0x54f361(0x147))/0x4*(-parseInt(_0x54f361(0x165))/0x5)+parseInt(_0x54f361(0x154))/0x6+-parseInt(_0x54f361(0x14c))/0x7*(-parseInt(_0x54f361(0x153))/0x8)+parseInt(_0x54f361(0x155))/0x9*(parseInt(_0x54f361(0x13c))/0xa)+-parseInt(_0x54f361(0x157))/0xb;if(_0x506a36===_0x32d2fa)break;else _0x285236['push'](_0x285236['shift']());}catch(_0x161ef6){_0x285236['push'](_0x285236['shift']());}}}(a271_0x221d,0x75a6d));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x29c1f4(0x15c),'description':a271_0x29c1f4(0x141),'folders':['.cursorrules',a271_0x29c1f4(0x14d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x144),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a271_0x29c1f4(0x160),'folders':[a271_0x29c1f4(0x14a)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.windsurf/workflows/rabetbase.md','template':a271_0x29c1f4(0x162)}]},'claude':{'name':'Claude\x20Code','description':a271_0x29c1f4(0x139),'folders':[a271_0x29c1f4(0x163)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13a),'template':a271_0x29c1f4(0x162)}]},'cline':{'name':'Cline','description':a271_0x29c1f4(0x140),'folders':[a271_0x29c1f4(0x15a)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'codex':{'name':a271_0x29c1f4(0x13e),'description':a271_0x29c1f4(0x149),'folders':[a271_0x29c1f4(0x145)],'files':[{'type':'file','path':a271_0x29c1f4(0x14e),'template':a271_0x29c1f4(0x162)}]},'opencode':{'name':a271_0x29c1f4(0x15e),'description':a271_0x29c1f4(0x151),'folders':['.opencode'],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x138),'template':'SKILL.md.tpl'}]},'qoder':{'name':a271_0x29c1f4(0x16a),'description':'Qoder\x20IDE','folders':[a271_0x29c1f4(0x15f)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.qoder/rules/rabetbase.md','template':a271_0x29c1f4(0x162)},{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13d),'template':a271_0x29c1f4(0x162)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a271_0x29c1f4(0x169)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a271_0x29c1f4(0x168)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x156),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a271_0x29c1f4(0x14f),'description':a271_0x29c1f4(0x167),'folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':a271_0x29c1f4(0x162)}]},'antigravity':{'name':a271_0x29c1f4(0x136),'description':'Antigravity\x20IDE','folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),'codex',a271_0x29c1f4(0x142),'opencode',a271_0x29c1f4(0x158),'trae',a271_0x29c1f4(0x143)];function a271_0x564a(_0x303930,_0x8ea76d){_0x303930=_0x303930-0x136;const _0x221ddd=a271_0x221d();let _0x564a99=_0x221ddd[_0x303930];return _0x564a99;}function a271_0x221d(){const _0x56e11e=['Codex\x20IDE','.windsurf','.agent/skills/lovrabet/SKILL.md','1390466KkuKwl','.cursor','.codex/skills/lovrabet/SKILL.md','其他\x20(通用模板)','codex','OpenCode\x20IDE','agent','32lZREgf','675168QrOhuM','9BbgtUQ','.trae/skills/lovrabet/SKILL.md','13491951aBejZZ','qoder','12yOjjpp','.cline','82137OhbTTm','Cursor','.agent','OpenCode','.qoder','Windsurf\x20IDE','file','SKILL.md.tpl','.claude','antigravity','595TholGW','cline','通用模板\x20-\x20兜底方案','.trae','.codebuddy','Qoder','Antigravity','trae','.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','285036nmyaco','4665890xyTNtY','.qoder/skills/lovrabet/SKILL.md','Codex','opencode','Cline\x20IDE','Cursor\x20IDE','cursor','windsurf','.cursor/skills/rabetbase.md','.codex','claude','31012ijFAfa','codebuddy'];a271_0x221d=function(){return _0x56e11e;};return a271_0x221d();}export const IDE_LIST=[a271_0x29c1f4(0x164),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),a271_0x29c1f4(0x150),'cursor',a271_0x29c1f4(0x13f),'qoder',a271_0x29c1f4(0x137),a271_0x29c1f4(0x143),a271_0x29c1f4(0x152)];export const ALL_CORE_IDES=[a271_0x29c1f4(0x142),a271_0x29c1f4(0x143),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x150),'opencode','qoder',a271_0x29c1f4(0x148),a271_0x29c1f4(0x137)];
@@ -1 +1 @@
1
- (function(_0x5477e9,_0x310428){const _0x4782ac=a272_0x109c,_0x19463d=_0x5477e9();while(!![]){try{const _0x2486f6=parseInt(_0x4782ac(0xfd))/0x1+-parseInt(_0x4782ac(0x104))/0x2*(parseInt(_0x4782ac(0xfc))/0x3)+-parseInt(_0x4782ac(0xfe))/0x4+-parseInt(_0x4782ac(0x103))/0x5+parseInt(_0x4782ac(0x102))/0x6*(-parseInt(_0x4782ac(0x100))/0x7)+parseInt(_0x4782ac(0x101))/0x8+parseInt(_0x4782ac(0xff))/0x9;if(_0x2486f6===_0x310428)break;else _0x19463d['push'](_0x19463d['shift']());}catch(_0x54d4b9){_0x19463d['push'](_0x19463d['shift']());}}}(a272_0x26a1,0xb2405));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a272_0x26a1(){const _0x599d09=['920562puCiUK','6688255pycfMj','2qPYWsy','4095579JAwGAJ','411095Ywrdow','70916QMmsqh','30825081hUFfuV','42otuwXi','4281184kAKVkH'];a272_0x26a1=function(){return _0x599d09;};return a272_0x26a1();}function a272_0x109c(_0x5b2203,_0x5cfe8d){_0x5b2203=_0x5b2203-0xfc;const _0x26a1ab=a272_0x26a1();let _0x109c27=_0x26a1ab[_0x5b2203];return _0x109c27;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x36415b,_0x497e18){const _0x3589f9=a272_0x560d,_0x465d95=_0x36415b();while(!![]){try{const _0x51cf17=parseInt(_0x3589f9(0x158))/0x1*(parseInt(_0x3589f9(0x159))/0x2)+parseInt(_0x3589f9(0x157))/0x3+-parseInt(_0x3589f9(0x15b))/0x4*(-parseInt(_0x3589f9(0x155))/0x5)+parseInt(_0x3589f9(0x15a))/0x6*(-parseInt(_0x3589f9(0x153))/0x7)+parseInt(_0x3589f9(0x154))/0x8*(-parseInt(_0x3589f9(0x15d))/0x9)+parseInt(_0x3589f9(0x15c))/0xa+-parseInt(_0x3589f9(0x156))/0xb;if(_0x51cf17===_0x497e18)break;else _0x465d95['push'](_0x465d95['shift']());}catch(_0x211756){_0x465d95['push'](_0x465d95['shift']());}}}(a272_0x48d6,0x41bd9));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a272_0x560d(_0x5edbce,_0x523e86){_0x5edbce=_0x5edbce-0x153;const _0x48d696=a272_0x48d6();let _0x560dee=_0x48d696[_0x5edbce];return _0x560dee;}function a272_0x48d6(){const _0x23f897=['5yCouvw','1824614KthZTM','632286YuVwHA','3865GDzLca','188qalUHB','569622fbpjBn','737996sdXrQX','1434370ZgnFax','9324pDsNtB','7yIkKqI','2872CGcCge'];a272_0x48d6=function(){return _0x23f897;};return a272_0x48d6();}
@@ -1 +1 @@
1
- function a273_0xa2cc(_0x594323,_0x120bdc){_0x594323=_0x594323-0x73;const _0x2d1c12=a273_0x2d1c();let _0xa2cc10=_0x2d1c12[_0x594323];return _0xa2cc10;}(function(_0x19b541,_0x2e551e){const _0x1a71fe=a273_0xa2cc,_0x132958=_0x19b541();while(!![]){try{const _0x4e5e83=-parseInt(_0x1a71fe(0x80))/0x1*(parseInt(_0x1a71fe(0x73))/0x2)+-parseInt(_0x1a71fe(0x85))/0x3+-parseInt(_0x1a71fe(0x82))/0x4+parseInt(_0x1a71fe(0x7c))/0x5*(-parseInt(_0x1a71fe(0x7b))/0x6)+-parseInt(_0x1a71fe(0x7a))/0x7*(-parseInt(_0x1a71fe(0x79))/0x8)+-parseInt(_0x1a71fe(0x75))/0x9*(-parseInt(_0x1a71fe(0x81))/0xa)+parseInt(_0x1a71fe(0x77))/0xb*(parseInt(_0x1a71fe(0x83))/0xc);if(_0x4e5e83===_0x2e551e)break;else _0x132958['push'](_0x132958['shift']());}catch(_0x433110){_0x132958['push'](_0x132958['shift']());}}}(a273_0x2d1c,0xaf99d));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x2d1c(){const _0x5ba5ca=['node','32Ydixrc','985957jRGkJY','6vxyenh','6559185lxQTDb','/config.json','/config/index.json','cli','1dRPGBR','50hHLpxW','2368828tplXkg','54660iksaib','stableVersion','278613qVWiEH','553246XhPZzh','json','1060515UptHAg','sdk','4444aMEbkX'];a273_0x2d1c=function(){return _0x5ba5ca;};return a273_0x2d1c();}export async function fetchCdnConfig(){const _0x1307e0=a273_0xa2cc,_0x298b47=getTemplateBaseUrl(),_0x5c6065=[_0x298b47+_0x1307e0(0x7d),_0x298b47+_0x1307e0(0x7e)];for(const _0x4394ab of _0x5c6065){try{const _0x27e519=await fetch(_0x4394ab,{'headers':{'Accept':'application/json'}});if(!_0x27e519['ok'])continue;const _0x556437=await _0x27e519[_0x1307e0(0x74)]();if(!_0x556437[_0x1307e0(0x7f)]?.[_0x1307e0(0x84)]||!_0x556437[_0x1307e0(0x76)]?.[_0x1307e0(0x78)]?.[_0x1307e0(0x84)])continue;return _0x556437;}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 _0x31cb97=Date['now']();if(hasCachedConfig){const _0x1e1935=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x31cb97-cacheTime<_0x1e1935)return cachedConfig;}const _0x39da75=await fetchCdnConfig();return cachedConfig=_0x39da75,cacheTime=_0x31cb97,hasCachedConfig=!![],_0x39da75;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5da328,_0x51c17f){const _0x2b4da5=a273_0x5316,_0x25fb59=_0x5da328();while(!![]){try{const _0x4d57a=parseInt(_0x2b4da5(0x18f))/0x1+parseInt(_0x2b4da5(0x197))/0x2*(-parseInt(_0x2b4da5(0x199))/0x3)+-parseInt(_0x2b4da5(0x190))/0x4*(parseInt(_0x2b4da5(0x19c))/0x5)+parseInt(_0x2b4da5(0x18e))/0x6+parseInt(_0x2b4da5(0x193))/0x7+-parseInt(_0x2b4da5(0x19a))/0x8*(-parseInt(_0x2b4da5(0x19d))/0x9)+parseInt(_0x2b4da5(0x198))/0xa*(-parseInt(_0x2b4da5(0x191))/0xb);if(_0x4d57a===_0x51c17f)break;else _0x25fb59['push'](_0x25fb59['shift']());}catch(_0x320451){_0x25fb59['push'](_0x25fb59['shift']());}}}(a273_0x56d4,0xbaf96));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2de58b=a273_0x5316,_0x30adef=getTemplateBaseUrl(),_0x26c9a9=[_0x30adef+_0x2de58b(0x19e),_0x30adef+_0x2de58b(0x194)];for(const _0x1e918a of _0x26c9a9){try{const _0x583021=await fetch(_0x1e918a,{'headers':{'Accept':_0x2de58b(0x19b)}});if(!_0x583021['ok'])continue;const _0x469ab9=await _0x583021[_0x2de58b(0x195)]();if(!_0x469ab9['cli']?.[_0x2de58b(0x196)]||!_0x469ab9['sdk']?.[_0x2de58b(0x192)]?.[_0x2de58b(0x196)])continue;return _0x469ab9;}catch{}}return null;}function a273_0x5316(_0x4f4b2d,_0x26504f){_0x4f4b2d=_0x4f4b2d-0x18e;const _0x56d471=a273_0x56d4();let _0x5316ac=_0x56d471[_0x4f4b2d];return _0x5316ac;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1fc3c5=a273_0x5316,_0x37431d=Date[_0x1fc3c5(0x19f)]();if(hasCachedConfig){const _0x5a67f8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x37431d-cacheTime<_0x5a67f8)return cachedConfig;}const _0x3fc720=await fetchCdnConfig();return cachedConfig=_0x3fc720,cacheTime=_0x37431d,hasCachedConfig=!![],_0x3fc720;}function a273_0x56d4(){const _0x15fa3c=['stableVersion','1302124mWiEnv','420LxsCBm','3iegxxo','20200KrwfFY','application/json','3937855TKNenl','4401sBvYAi','/config.json','now','6588138GHFkYh','496975RolHTh','4sGpYun','169169MtFbjl','node','144718dXWmty','/config/index.json','json'];a273_0x56d4=function(){return _0x15fa3c;};return a273_0x56d4();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a274_0x143628=a274_0x5d95;(function(_0x5e7207,_0x4611c5){const _0xe105fd=a274_0x5d95,_0x43a775=_0x5e7207();while(!![]){try{const _0x3f2ef6=-parseInt(_0xe105fd(0x1b7))/0x1+parseInt(_0xe105fd(0x1b8))/0x2*(-parseInt(_0xe105fd(0x1b1))/0x3)+parseInt(_0xe105fd(0x1b3))/0x4+parseInt(_0xe105fd(0x1b0))/0x5+parseInt(_0xe105fd(0x1c2))/0x6+parseInt(_0xe105fd(0x1c4))/0x7*(-parseInt(_0xe105fd(0x1c1))/0x8)+-parseInt(_0xe105fd(0x1a9))/0x9*(-parseInt(_0xe105fd(0x1c9))/0xa);if(_0x3f2ef6===_0x4611c5)break;else _0x43a775['push'](_0x43a775['shift']());}catch(_0x3b0c8e){_0x43a775['push'](_0x43a775['shift']());}}}(a274_0x4969,0x1ea87));function a274_0x5d95(_0x3eb971,_0x5a0e87){_0x3eb971=_0x3eb971-0x1a4;const _0x4969cd=a274_0x4969();let _0x5d9552=_0x4969cd[_0x3eb971];return _0x5d9552;}import a274_0x36f290 from'node:fs';import a274_0x4bcf87 from'node:path';import a274_0x474b10 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x143628(0x1c7);function a274_0x4969(){const _0x898e40=['readFileSync','↪\x20SDK\x20update\x20available','test','131275yUZFHz','16622WpKEsD','@lovrabet/sdk','log','\x20\x20\x20Upgrade\x20command:\x20','package.json','needsUpgrade','some','\x1b[0m','packageName','2992mfYOyi','808476vYpJwQ','minVersion','3619mOqqvd','utf8','existsSync','1.2.0','coerce','2870pCPDkO','\x1b[33m','parse','sdk','dependencies','node_modules','1161vutwGl','node','devDependencies','\x1b[1m','all','stableVersion','join','389790LhhlJT','15BnxybI','\x20\x20\x20Current\x20version:\x20','968144TBBwca'];a274_0x4969=function(){return _0x898e40;};return a274_0x4969();}function isNonNumericVersion(_0x538ee8){const _0x4071f6=a274_0x143628,_0x1ad534=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1ad534[_0x4071f6(0x1be)](_0x3f1542=>_0x3f1542[_0x4071f6(0x1b6)](_0x538ee8));}function getInstalledVersion(_0x3226bb,_0x561122){const _0x5340ec=a274_0x143628;try{const _0xe17efc=a274_0x4bcf87[_0x5340ec(0x1af)](_0x3226bb,_0x5340ec(0x1a8),_0x561122,_0x5340ec(0x1bc));if(a274_0x36f290['existsSync'](_0xe17efc)){const _0xa18fab=JSON[_0x5340ec(0x1a5)](a274_0x36f290[_0x5340ec(0x1b4)](_0xe17efc,'utf-8'));return _0xa18fab['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4de7cf=a274_0x143628;try{const _0x2bd474=await getCdnConfig();return _0x2bd474?.[_0x4de7cf(0x1a6)]?.['node']?.[_0x4de7cf(0x1ae)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5564d0=a274_0x143628;try{const _0x534b9a=await getCdnConfig();return _0x534b9a?.['sdk']?.[_0x5564d0(0x1aa)]?.['packageName']||_0x5564d0(0x1b9);}catch{return _0x5564d0(0x1b9);}}export async function checkSdkVersion(_0x9a2fb4){const _0x3ed9ab=a274_0x143628,_0x62db5a=a274_0x4bcf87[_0x3ed9ab(0x1af)](_0x9a2fb4,'package.json'),[_0x41585f,_0x13c223]=await Promise[_0x3ed9ab(0x1ad)]([getSdkStableVersion(),getSdkPackageName()]),_0x69bd89=_0x41585f||FALLBACK_MIN_SDK_VERSION;if(!a274_0x36f290['existsSync'](_0x62db5a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};try{const _0x24da37=JSON[_0x3ed9ab(0x1a5)](a274_0x36f290[_0x3ed9ab(0x1b4)](_0x62db5a,_0x3ed9ab(0x1c5))),_0x4a0b1e=_0x24da37[_0x3ed9ab(0x1a7)]||{},_0x170ce4=_0x24da37[_0x3ed9ab(0x1ab)]||{},_0x5bd102=_0x4a0b1e[_0x13c223]||_0x170ce4[_0x13c223];if(!_0x5bd102)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};let _0x38803d=getInstalledVersion(_0x9a2fb4,_0x13c223);!_0x38803d&&(_0x38803d=_0x5bd102);if(isNonNumericVersion(_0x5bd102))return{'installed':!![],'version':_0x38803d,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};const _0x1454f9=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x38803d),_0x150446=a274_0x474b10[_0x3ed9ab(0x1c8)](_0x69bd89),_0x2a4660=_0x1454f9&&_0x150446?a274_0x474b10['lt'](_0x1454f9,_0x150446):![];return{'installed':!![],'version':_0x38803d,'needsUpgrade':_0x2a4660,'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x69bd89,'packageName':_0x13c223,'stableVersion':_0x41585f};}}export function checkSdkVersionSync(_0x37ed65){const _0x14e896=a274_0x143628,_0x7a30be=a274_0x4bcf87[_0x14e896(0x1af)](_0x37ed65,_0x14e896(0x1bc)),_0x2c5e78='@lovrabet/sdk';if(!a274_0x36f290[_0x14e896(0x1c6)](_0x7a30be))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};try{const _0x81bbc9=JSON[_0x14e896(0x1a5)](a274_0x36f290[_0x14e896(0x1b4)](_0x7a30be,_0x14e896(0x1c5))),_0x3b9ea0=_0x81bbc9[_0x14e896(0x1a7)]||{},_0x2e5230=_0x81bbc9[_0x14e896(0x1ab)]||{},_0x56d668=_0x3b9ea0[_0x2c5e78]||_0x2e5230[_0x2c5e78];if(!_0x56d668)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};let _0x13e05c=getInstalledVersion(_0x37ed65,_0x2c5e78);!_0x13e05c&&(_0x13e05c=_0x56d668);if(isNonNumericVersion(_0x56d668))return{'installed':!![],'version':_0x13e05c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};const _0x470be3=a274_0x474b10[_0x14e896(0x1c8)](_0x13e05c),_0x28b236=_0x470be3?a274_0x474b10['lt'](_0x470be3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x13e05c,'needsUpgrade':_0x28b236,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c5e78,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x56a14c){const _0x13d617=a274_0x143628;if(!_0x56a14c[_0x13d617(0x1bd)])return;const _0x3b7e29=_0x13d617(0x1a4),_0x44bac9=_0x13d617(0x1bf),_0x34ad0b=_0x13d617(0x1ac),_0x64d246=_0x56a14c[_0x13d617(0x1c0)]||_0x13d617(0x1b9),_0x3e566b=_0x56a14c[_0x13d617(0x1ae)]||_0x56a14c[_0x13d617(0x1c3)],_0x39152e='npm\x20install\x20'+_0x64d246+'@'+(_0x3e566b||'latest');console[_0x13d617(0x1ba)](),console[_0x13d617(0x1ba)](''+_0x3b7e29+_0x34ad0b+_0x13d617(0x1b5)+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1b2)+_0x64d246+'@'+_0x56a14c['version']+_0x44bac9),console['log'](_0x3b7e29+'\x20\x20\x20Stable\x20version:\x20'+_0x3e566b+_0x44bac9),console[_0x13d617(0x1ba)](_0x3b7e29+_0x13d617(0x1bb)+_0x39152e+_0x44bac9),console[_0x13d617(0x1ba)]();}
1
+ const a274_0x54ac22=a274_0x40e5;(function(_0x494951,_0x3b6588){const _0x5c7e1d=a274_0x40e5,_0x25b07a=_0x494951();while(!![]){try{const _0x16d462=-parseInt(_0x5c7e1d(0xd5))/0x1+parseInt(_0x5c7e1d(0xb8))/0x2+parseInt(_0x5c7e1d(0xd4))/0x3*(-parseInt(_0x5c7e1d(0xb6))/0x4)+parseInt(_0x5c7e1d(0xba))/0x5*(parseInt(_0x5c7e1d(0xbd))/0x6)+parseInt(_0x5c7e1d(0xc2))/0x7+parseInt(_0x5c7e1d(0xc9))/0x8+-parseInt(_0x5c7e1d(0xca))/0x9;if(_0x16d462===_0x3b6588)break;else _0x25b07a['push'](_0x25b07a['shift']());}catch(_0x264302){_0x25b07a['push'](_0x25b07a['shift']());}}}(a274_0x31be,0x44684));import a274_0xfdf17b from'node:fs';function a274_0x40e5(_0x57551a,_0x1604fc){_0x57551a=_0x57551a-0xb5;const _0x31be42=a274_0x31be();let _0x40e5cf=_0x31be42[_0x57551a];return _0x40e5cf;}import a274_0x13bae3 from'node:path';import a274_0x191f01 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x54ac22(0xc7);function a274_0x31be(){const _0x41f012=['1175NuYSXm','version','\x1b[33m','10314finALn','\x1b[0m','node_modules','minVersion','utf-8','650174ZaRTqk','all','parse','packageName','existsSync','1.2.0','devDependencies','252536LYlrgN','6124158aNDSdi','some','coerce','stableVersion','package.json','@lovrabet/sdk','join','dependencies','\x20\x20\x20Current\x20version:\x20','readFileSync','12927FVMTfQ','4473JdvHlb','sdk','\x20\x20\x20Upgrade\x20command:\x20','24WfIIVD','node','925142rrEwUa','log'];a274_0x31be=function(){return _0x41f012;};return a274_0x31be();}function isNonNumericVersion(_0x1b6c2d){const _0x11eba9=a274_0x54ac22,_0x5675be=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5675be[_0x11eba9(0xcb)](_0x1a8555=>_0x1a8555['test'](_0x1b6c2d));}function getInstalledVersion(_0x211cc0,_0xf91ea5){const _0x56f5b4=a274_0x54ac22;try{const _0x5d84c8=a274_0x13bae3[_0x56f5b4(0xd0)](_0x211cc0,_0x56f5b4(0xbf),_0xf91ea5,_0x56f5b4(0xce));if(a274_0xfdf17b[_0x56f5b4(0xc6)](_0x5d84c8)){const _0x5a4ccd=JSON[_0x56f5b4(0xc4)](a274_0xfdf17b[_0x56f5b4(0xd3)](_0x5d84c8,_0x56f5b4(0xc1)));return _0x5a4ccd['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xf3fa09=a274_0x54ac22;try{const _0x4f73b6=await getCdnConfig();return _0x4f73b6?.[_0xf3fa09(0xd6)]?.['node']?.[_0xf3fa09(0xcd)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x392cf0=a274_0x54ac22;try{const _0x2bc351=await getCdnConfig();return _0x2bc351?.[_0x392cf0(0xd6)]?.[_0x392cf0(0xb7)]?.['packageName']||_0x392cf0(0xcf);}catch{return _0x392cf0(0xcf);}}export async function checkSdkVersion(_0x51ac63){const _0x157e87=a274_0x54ac22,_0x5b9d59=a274_0x13bae3[_0x157e87(0xd0)](_0x51ac63,_0x157e87(0xce)),[_0xc874f0,_0x4c91da]=await Promise[_0x157e87(0xc3)]([getSdkStableVersion(),getSdkPackageName()]),_0x6efe5=_0xc874f0||FALLBACK_MIN_SDK_VERSION;if(!a274_0xfdf17b[_0x157e87(0xc6)](_0x5b9d59))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};try{const _0x597fb7=JSON[_0x157e87(0xc4)](a274_0xfdf17b['readFileSync'](_0x5b9d59,'utf8')),_0x3010c6=_0x597fb7[_0x157e87(0xd1)]||{},_0x4265bd=_0x597fb7[_0x157e87(0xc8)]||{},_0x52d152=_0x3010c6[_0x4c91da]||_0x4265bd[_0x4c91da];if(!_0x52d152)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};let _0x1fe04f=getInstalledVersion(_0x51ac63,_0x4c91da);!_0x1fe04f&&(_0x1fe04f=_0x52d152);if(isNonNumericVersion(_0x52d152))return{'installed':!![],'version':_0x1fe04f,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};const _0x53e37c=a274_0x191f01[_0x157e87(0xcc)](_0x1fe04f),_0x318287=a274_0x191f01[_0x157e87(0xcc)](_0x6efe5),_0x497f62=_0x53e37c&&_0x318287?a274_0x191f01['lt'](_0x53e37c,_0x318287):![];return{'installed':!![],'version':_0x1fe04f,'needsUpgrade':_0x497f62,'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};}}export function checkSdkVersionSync(_0xc1ca0e){const _0x3f3c40=a274_0x54ac22,_0x45863f=a274_0x13bae3[_0x3f3c40(0xd0)](_0xc1ca0e,_0x3f3c40(0xce)),_0xbc9617=_0x3f3c40(0xcf);if(!a274_0xfdf17b[_0x3f3c40(0xc6)](_0x45863f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};try{const _0x54850d=JSON[_0x3f3c40(0xc4)](a274_0xfdf17b[_0x3f3c40(0xd3)](_0x45863f,'utf8')),_0x4771db=_0x54850d[_0x3f3c40(0xd1)]||{},_0x3450e7=_0x54850d[_0x3f3c40(0xc8)]||{},_0x588537=_0x4771db[_0xbc9617]||_0x3450e7[_0xbc9617];if(!_0x588537)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};let _0x3ee5da=getInstalledVersion(_0xc1ca0e,_0xbc9617);!_0x3ee5da&&(_0x3ee5da=_0x588537);if(isNonNumericVersion(_0x588537))return{'installed':!![],'version':_0x3ee5da,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};const _0x1902f3=a274_0x191f01[_0x3f3c40(0xcc)](_0x3ee5da),_0x17b646=_0x1902f3?a274_0x191f01['lt'](_0x1902f3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3ee5da,'needsUpgrade':_0x17b646,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x11261b){const _0x130f0b=a274_0x54ac22;if(!_0x11261b['needsUpgrade'])return;const _0x50239d=_0x130f0b(0xbc),_0x330e4f=_0x130f0b(0xbe),_0x3385d6='\x1b[1m',_0x5bdfe7=_0x11261b[_0x130f0b(0xc5)]||'@lovrabet/sdk',_0x4fbde1=_0x11261b['stableVersion']||_0x11261b[_0x130f0b(0xc0)],_0xb8204='npm\x20install\x20'+_0x5bdfe7+'@'+(_0x4fbde1||'latest');console[_0x130f0b(0xb9)](),console[_0x130f0b(0xb9)](''+_0x50239d+_0x3385d6+'↪\x20SDK\x20update\x20available'+_0x330e4f),console['log'](_0x50239d+_0x130f0b(0xd2)+_0x5bdfe7+'@'+_0x11261b[_0x130f0b(0xbb)]+_0x330e4f),console[_0x130f0b(0xb9)](_0x50239d+'\x20\x20\x20Stable\x20version:\x20'+_0x4fbde1+_0x330e4f),console['log'](_0x50239d+_0x130f0b(0xb5)+_0xb8204+_0x330e4f),console[_0x130f0b(0xb9)]();}
@@ -1 +1 @@
1
- (function(_0x316339,_0x4b21e7){const _0x1f090c=a275_0x17c8,_0x311012=_0x316339();while(!![]){try{const _0x3ab734=parseInt(_0x1f090c(0x10b))/0x1+parseInt(_0x1f090c(0xff))/0x2+parseInt(_0x1f090c(0xfa))/0x3+parseInt(_0x1f090c(0xfe))/0x4+parseInt(_0x1f090c(0x10f))/0x5+parseInt(_0x1f090c(0x102))/0x6*(parseInt(_0x1f090c(0xf2))/0x7)+-parseInt(_0x1f090c(0x112))/0x8;if(_0x3ab734===_0x4b21e7)break;else _0x311012['push'](_0x311012['shift']());}catch(_0x2bd274){_0x311012['push'](_0x311012['shift']());}}}(a275_0x442f,0xe9242));import{readFileSync}from'node:fs';function a275_0x17c8(_0x4e3719,_0x371990){_0x4e3719=_0x4e3719-0xf0;const _0x442f41=a275_0x442f();let _0x17c8a7=_0x442f41[_0x4e3719];return _0x17c8a7;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a275_0x442f(){const _0xf0212a=['3456412IDaVek','1734830leofLy','\x20\x20\x20Current\x20CLI\x20version:\x20','minimumVersionMessage','96ymSoXY','belowMinimum','\x20\x20\x20Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[1m','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','currentVersion','package.json','1021586FzXIuD','../..','\x1b[0m','parse','6055875LXQGOA','log','1.0.0','47175560lCGIBg','\x20\x20\x20','↪\x20New\x20version\x20available','join','485618rFCIPS','utf-8','filter','npm\x20install\x20-g\x20','Upgrade\x20command:\x20','stableVersion','version','coerce','5332884OIyDWF','upgradeMessage','\x1b[33m','\x1b[31m'];a275_0x442f=function(){return _0xf0212a;};return a275_0x442f();}import a275_0x511ab9 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(_0x2d3204){const _0x320ac9=a275_0x17c8,_0x309309=_0x2d3204['stableVersion']||'latest';return _0x320ac9(0xf5)+NPM_PACKAGE_NAME+'@'+_0x309309;}function getCurrentCliVersion(){const _0x1a822e=a275_0x17c8;try{const _0x444b67=fileURLToPath(import.meta.url),_0x2419bb=resolve(dirname(_0x444b67),_0x1a822e(0x10c)),_0x2fe306=resolve(_0x2419bb,_0x1a822e(0x10a)),_0x3d5809=JSON[_0x1a822e(0x10e)](readFileSync(_0x2fe306,_0x1a822e(0xf3)));return _0x3d5809[_0x1a822e(0xf8)]||'1.0.0';}catch{return _0x1a822e(0x111);}}export async function checkCliVersion(){const _0x3b8d26=a275_0x17c8,_0x12f705=getCurrentCliVersion(),_0x7c764d=await getCliVersionPolicy(),_0x1e002f=_0x7c764d?.[_0x3b8d26(0xf7)]||null,_0x140bd6=_0x7c764d?.[_0x3b8d26(0x108)]||null;let _0x5c5604=![],_0x1e815f=![];const _0x559c7e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x12f705);if(_0x559c7e&&_0x1e002f)try{const _0x4ae5ea=a275_0x511ab9['coerce'](_0x1e002f);if(_0x4ae5ea)_0x5c5604=a275_0x511ab9['lt'](_0x559c7e,_0x4ae5ea);}catch{}if(_0x559c7e&&_0x140bd6)try{const _0x841a0e=a275_0x511ab9[_0x3b8d26(0xf9)](_0x140bd6);if(_0x841a0e)_0x1e815f=a275_0x511ab9['lt'](_0x559c7e,_0x841a0e);}catch{}return _0x1e815f&&(_0x5c5604=!![]),{'currentVersion':_0x12f705,'stableVersion':_0x1e002f,'minimumVersion':_0x140bd6,'needsUpgrade':_0x5c5604,'belowMinimum':_0x1e815f,'isPreRelease':![],'upgradeMessage':_0x7c764d?.[_0x3b8d26(0xfb)],'minimumVersionMessage':_0x7c764d?.[_0x3b8d26(0x101)]};}export function printCliUpgradeWarning(_0x220ba1){const _0x2e7767=a275_0x17c8;if(!_0x220ba1['needsUpgrade']&&!_0x220ba1[_0x2e7767(0x103)])return;const _0x2db2c8=_0x2e7767(0xfd),_0x19afeb=_0x2e7767(0xfc),_0x2cca68=_0x2e7767(0x10d),_0xf9d4b2=_0x2e7767(0x106),_0x190ff7=getCliUpgradeCommand(_0x220ba1);console[_0x2e7767(0x110)](),_0x220ba1[_0x2e7767(0x103)]?(console[_0x2e7767(0x110)](''+_0x2db2c8+_0xf9d4b2+_0x2e7767(0x105)+_0x2cca68),console['log'](_0x2db2c8+_0x2e7767(0x100)+_0x220ba1[_0x2e7767(0x109)]+_0x2cca68),_0x220ba1[_0x2e7767(0x108)]&&console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Minimum\x20supported:\x20'+_0x220ba1['minimumVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xf7)]&&_0x220ba1['stableVersion']!==_0x220ba1[_0x2e7767(0x108)]&&console['log'](_0x2db2c8+_0x2e7767(0x107)+_0x220ba1[_0x2e7767(0xf7)]+_0x2cca68),_0x220ba1['minimumVersionMessage']&&console[_0x2e7767(0x110)](_0x2db2c8+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0x101)]+_0x2cca68),console[_0x2e7767(0x110)](_0x2db2c8+'\x20\x20\x20Upgrade\x20command:\x20'+_0x190ff7+_0x2cca68)):(console[_0x2e7767(0x110)](''+_0x19afeb+_0xf9d4b2+_0x2e7767(0xf0)+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x100)+_0x220ba1['currentVersion']+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+'\x20\x20\x20Stable\x20version:\x20'+_0x220ba1['stableVersion']+_0x2cca68),_0x220ba1[_0x2e7767(0xfb)]&&console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x113)+_0x220ba1[_0x2e7767(0xfb)]+_0x2cca68),console[_0x2e7767(0x110)](_0x19afeb+_0x2e7767(0x104)+_0x190ff7+_0x2cca68)),console[_0x2e7767(0x110)]();}export function assertCliVersionSupported(_0x3fb755){const _0x2d0218=a275_0x17c8;if(!_0x3fb755[_0x2d0218(0x103)])return;const _0x516e0c=[_0x3fb755[_0x2d0218(0x101)],'Current\x20version:\x20'+_0x3fb755[_0x2d0218(0x109)],_0x3fb755[_0x2d0218(0x108)]?'Minimum\x20supported:\x20'+_0x3fb755['minimumVersion']:null,_0x2d0218(0xf6)+getCliUpgradeCommand(_0x3fb755)][_0x2d0218(0xf4)](Boolean)[_0x2d0218(0xf1)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x516e0c);}
1
+ (function(_0xdf6844,_0x4af361){const _0x5b9b85=a275_0x3230,_0x45c944=_0xdf6844();while(!![]){try{const _0x299a6b=-parseInt(_0x5b9b85(0x1f1))/0x1*(-parseInt(_0x5b9b85(0x1d3))/0x2)+parseInt(_0x5b9b85(0x1f5))/0x3+parseInt(_0x5b9b85(0x1f6))/0x4+-parseInt(_0x5b9b85(0x1ee))/0x5*(-parseInt(_0x5b9b85(0x1e0))/0x6)+-parseInt(_0x5b9b85(0x1e4))/0x7+parseInt(_0x5b9b85(0x1db))/0x8*(-parseInt(_0x5b9b85(0x1de))/0x9)+-parseInt(_0x5b9b85(0x1d5))/0xa;if(_0x299a6b===_0x4af361)break;else _0x45c944['push'](_0x45c944['shift']());}catch(_0x29aa83){_0x45c944['push'](_0x45c944['shift']());}}}(a275_0x5af5,0xe53d6));import{readFileSync}from'node:fs';function a275_0x5af5(){const _0x30bdbd=['2310296uxQoJU','package.json','↪\x20New\x20version\x20available','Current\x20version:\x20','coerce','minimumVersion','10TCteEt','validation','1872440SwVikJ','belowMinimum','1.0.0','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','568MdsmQq','stableVersion','parse','28071zbYoNN','\x1b[1m','6mrADag','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','utf-8','12860918ZfkpSB','latest','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','version','\x20\x20\x20Minimum\x20supported:\x20','upgradeMessage','minimumVersionMessage','Upgrade\x20command:\x20','2797160gQaPgd','log','\x20\x20\x20Recommended\x20stable:\x20','153789YgWUqp','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','join','3836946GyasDS'];a275_0x5af5=function(){return _0x30bdbd;};return a275_0x5af5();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0xfbb169 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(_0x512ce2){const _0x10b100=a275_0x3230,_0xba10a=_0x512ce2[_0x10b100(0x1dc)]||_0x10b100(0x1e5);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0xba10a;}function a275_0x3230(_0x1b27bd,_0x5e6b94){_0x1b27bd=_0x1b27bd-0x1d1;const _0x5af5c6=a275_0x5af5();let _0x323057=_0x5af5c6[_0x1b27bd];return _0x323057;}function getCurrentCliVersion(){const _0x214e4a=a275_0x3230;try{const _0x3e9975=fileURLToPath(import.meta.url),_0x9b2be6=resolve(dirname(_0x3e9975),_0x214e4a(0x1e8)),_0x5c23c2=resolve(_0x9b2be6,_0x214e4a(0x1f7)),_0x5e4750=JSON[_0x214e4a(0x1dd)](readFileSync(_0x5c23c2,_0x214e4a(0x1e3)));return _0x5e4750[_0x214e4a(0x1e9)]||_0x214e4a(0x1d7);}catch{return _0x214e4a(0x1d7);}}export async function checkCliVersion(){const _0x1a7c9b=a275_0x3230,_0x4dd358=getCurrentCliVersion(),_0x9d5399=await getCliVersionPolicy(),_0x3f4cfb=_0x9d5399?.[_0x1a7c9b(0x1dc)]||null,_0x54a560=_0x9d5399?.[_0x1a7c9b(0x1d2)]||null;let _0x24b764=![],_0x7ffb23=![];const _0x3d58dd=a275_0xfbb169['coerce'](_0x4dd358);if(_0x3d58dd&&_0x3f4cfb)try{const _0x3752c3=a275_0xfbb169[_0x1a7c9b(0x1d1)](_0x3f4cfb);if(_0x3752c3)_0x24b764=a275_0xfbb169['lt'](_0x3d58dd,_0x3752c3);}catch{}if(_0x3d58dd&&_0x54a560)try{const _0x161309=a275_0xfbb169[_0x1a7c9b(0x1d1)](_0x54a560);if(_0x161309)_0x7ffb23=a275_0xfbb169['lt'](_0x3d58dd,_0x161309);}catch{}return _0x7ffb23&&(_0x24b764=!![]),{'currentVersion':_0x4dd358,'stableVersion':_0x3f4cfb,'minimumVersion':_0x54a560,'needsUpgrade':_0x24b764,'belowMinimum':_0x7ffb23,'isPreRelease':![],'upgradeMessage':_0x9d5399?.[_0x1a7c9b(0x1eb)],'minimumVersionMessage':_0x9d5399?.[_0x1a7c9b(0x1ec)]};}export function printCliUpgradeWarning(_0x2a899e){const _0xbac462=a275_0x3230;if(!_0x2a899e['needsUpgrade']&&!_0x2a899e['belowMinimum'])return;const _0x323e36=_0xbac462(0x1d8),_0x169bb3=_0xbac462(0x1f3),_0x4e9a83='\x1b[0m',_0x662a97=_0xbac462(0x1df),_0x5bb83f=getCliUpgradeCommand(_0x2a899e);console[_0xbac462(0x1ef)](),_0x2a899e['belowMinimum']?(console[_0xbac462(0x1ef)](''+_0x323e36+_0x662a97+_0xbac462(0x1e7)+_0x4e9a83),console['log'](_0x323e36+_0xbac462(0x1e2)+_0x2a899e[_0xbac462(0x1e1)]+_0x4e9a83),_0x2a899e['minimumVersion']&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1ea)+_0x2a899e[_0xbac462(0x1d2)]+_0x4e9a83),_0x2a899e['stableVersion']&&_0x2a899e[_0xbac462(0x1dc)]!==_0x2a899e[_0xbac462(0x1d2)]&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1f0)+_0x2a899e[_0xbac462(0x1dc)]+_0x4e9a83),_0x2a899e[_0xbac462(0x1ec)]&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1e6)+_0x2a899e['minimumVersionMessage']+_0x4e9a83),console[_0xbac462(0x1ef)](_0x323e36+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5bb83f+_0x4e9a83)):(console['log'](''+_0x169bb3+_0x662a97+_0xbac462(0x1f8)+_0x4e9a83),console[_0xbac462(0x1ef)](_0x169bb3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2a899e['currentVersion']+_0x4e9a83),console[_0xbac462(0x1ef)](_0x169bb3+'\x20\x20\x20Stable\x20version:\x20'+_0x2a899e[_0xbac462(0x1dc)]+_0x4e9a83),_0x2a899e[_0xbac462(0x1eb)]&&console['log'](_0x169bb3+'\x20\x20\x20'+_0x2a899e[_0xbac462(0x1eb)]+_0x4e9a83),console['log'](_0x169bb3+_0xbac462(0x1f2)+_0x5bb83f+_0x4e9a83)),console[_0xbac462(0x1ef)]();}export function assertCliVersionSupported(_0x3e6104){const _0x41eab5=a275_0x3230;if(!_0x3e6104[_0x41eab5(0x1d6)])return;const _0x2b871e=[_0x3e6104[_0x41eab5(0x1ec)],_0x41eab5(0x1f9)+_0x3e6104[_0x41eab5(0x1e1)],_0x3e6104[_0x41eab5(0x1d2)]?'Minimum\x20supported:\x20'+_0x3e6104[_0x41eab5(0x1d2)]:null,_0x41eab5(0x1ed)+getCliUpgradeCommand(_0x3e6104)][_0x41eab5(0x1da)](Boolean)[_0x41eab5(0x1f4)]('\x0a');throw CliErrors[_0x41eab5(0x1d4)](_0x41eab5(0x1d9),_0x2b871e);}
@@ -1 +1 @@
1
- (function(_0x3ed886,_0xc61ff3){const _0x2d623b=a276_0x3ce3,_0x54268b=_0x3ed886();while(!![]){try{const _0x3c8f39=parseInt(_0x2d623b(0x19e))/0x1+parseInt(_0x2d623b(0x1a9))/0x2+-parseInt(_0x2d623b(0x1a7))/0x3+-parseInt(_0x2d623b(0x1af))/0x4+parseInt(_0x2d623b(0x1ae))/0x5*(parseInt(_0x2d623b(0x1a8))/0x6)+-parseInt(_0x2d623b(0x1a0))/0x7+-parseInt(_0x2d623b(0x19f))/0x8;if(_0x3c8f39===_0xc61ff3)break;else _0x54268b['push'](_0x54268b['shift']());}catch(_0x2e0551){_0x54268b['push'](_0x54268b['shift']());}}}(a276_0x298e,0x3e57f));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x36802e){const _0x442f52=a276_0x3ce3;return typeof _0x36802e===_0x442f52(0x1b2)&&_0x36802e[_0x442f52(0x1a5)]()['length']>0x0?_0x36802e[_0x442f52(0x1a5)]():null;}function a276_0x298e(){const _0x2c68d5=['53445JukwLa','923652yGzPQT','659472PKufXZ','minVersion','object','signal','application/json','10xBBPcF','459288YLlDKD','minimumVersion','upgradeMessage','string','stableVersion','243053orMBlC','3502600wnOTiI','383964KwhzNl','cli','recommendedVersion','abort','now','trim','latestVersion'];a276_0x298e=function(){return _0x2c68d5;};return a276_0x298e();}function normalizeCliVersionPolicy(_0x34e8c1){const _0x199080=a276_0x3ce3;if(!_0x34e8c1||typeof _0x34e8c1!==_0x199080(0x1ab))return null;const _0x556c85=_0x34e8c1,_0x926af0=_0x556c85['cli']&&typeof _0x556c85[_0x199080(0x1a1)]===_0x199080(0x1ab)?_0x556c85['cli']:_0x556c85,_0x8d6fa4=pickString(_0x926af0[_0x199080(0x1b3)])||pickString(_0x926af0[_0x199080(0x1a6)])||pickString(_0x926af0[_0x199080(0x1a2)]),_0x424407=pickString(_0x926af0[_0x199080(0x1b0)])||pickString(_0x926af0[_0x199080(0x1aa)]);if(!_0x8d6fa4&&!_0x424407)return null;return{'stableVersion':_0x8d6fa4,'minimumVersion':_0x424407,'upgradeMessage':pickString(_0x926af0[_0x199080(0x1b1)])||undefined,'minimumVersionMessage':pickString(_0x926af0['minimumVersionMessage'])||undefined};}function a276_0x3ce3(_0x24bc72,_0x4cb0c8){_0x24bc72=_0x24bc72-0x19e;const _0x298efe=a276_0x298e();let _0x3ce352=_0x298efe[_0x24bc72];return _0x3ce352;}export async function fetchCliVersionPolicy(){const _0x248724=a276_0x3ce3,_0x3f7fc4=new AbortController(),_0x10bfc3=setTimeout(()=>_0x3f7fc4[_0x248724(0x1a3)](),FETCH_TIMEOUT_MS);try{const _0x2bb2e1=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x248724(0x1ad)},'signal':_0x3f7fc4[_0x248724(0x1ac)]});if(!_0x2bb2e1['ok'])return null;const _0x4d6f2b=await _0x2bb2e1['json']();return normalizeCliVersionPolicy(_0x4d6f2b);}catch{return null;}finally{clearTimeout(_0x10bfc3);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x196c6b=a276_0x3ce3,_0x86f2db=Date[_0x196c6b(0x1a4)]();if(hasCachedPolicy){const _0x8340f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x86f2db-cacheTime<_0x8340f)return cachedPolicy;}const _0x217778=await fetchCliVersionPolicy();return cachedPolicy=_0x217778,cacheTime=_0x86f2db,hasCachedPolicy=!![],_0x217778;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x34205a,_0x3f771c){const _0x5e3424=a276_0x2ced,_0x2e50bb=_0x34205a();while(!![]){try{const _0x1e481e=parseInt(_0x5e3424(0x192))/0x1*(-parseInt(_0x5e3424(0x184))/0x2)+-parseInt(_0x5e3424(0x18d))/0x3*(parseInt(_0x5e3424(0x181))/0x4)+-parseInt(_0x5e3424(0x18f))/0x5*(-parseInt(_0x5e3424(0x188))/0x6)+-parseInt(_0x5e3424(0x180))/0x7*(parseInt(_0x5e3424(0x18a))/0x8)+parseInt(_0x5e3424(0x187))/0x9*(parseInt(_0x5e3424(0x186))/0xa)+parseInt(_0x5e3424(0x18e))/0xb*(-parseInt(_0x5e3424(0x197))/0xc)+-parseInt(_0x5e3424(0x182))/0xd*(-parseInt(_0x5e3424(0x193))/0xe);if(_0x1e481e===_0x3f771c)break;else _0x2e50bb['push'](_0x2e50bb['shift']());}catch(_0x1538f1){_0x2e50bb['push'](_0x2e50bb['shift']());}}}(a276_0x8910,0x96131));function a276_0x2ced(_0x3f152d,_0x1a6e64){_0x3f152d=_0x3f152d-0x17d;const _0x8910b8=a276_0x8910();let _0x2cede7=_0x8910b8[_0x3f152d];return _0x2cede7;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x307fdd){const _0x27d9ea=a276_0x2ced;return typeof _0x307fdd===_0x27d9ea(0x18b)&&_0x307fdd[_0x27d9ea(0x190)]()[_0x27d9ea(0x185)]>0x0?_0x307fdd['trim']():null;}function normalizeCliVersionPolicy(_0x517281){const _0x21ae4a=a276_0x2ced;if(!_0x517281||typeof _0x517281!==_0x21ae4a(0x198))return null;const _0x5eb19b=_0x517281,_0x4a93ba=_0x5eb19b[_0x21ae4a(0x183)]&&typeof _0x5eb19b[_0x21ae4a(0x183)]===_0x21ae4a(0x198)?_0x5eb19b[_0x21ae4a(0x183)]:_0x5eb19b,_0xc4dd2e=pickString(_0x4a93ba[_0x21ae4a(0x194)])||pickString(_0x4a93ba[_0x21ae4a(0x17e)])||pickString(_0x4a93ba[_0x21ae4a(0x195)]),_0x334dea=pickString(_0x4a93ba['minimumVersion'])||pickString(_0x4a93ba[_0x21ae4a(0x17d)]);if(!_0xc4dd2e&&!_0x334dea)return null;return{'stableVersion':_0xc4dd2e,'minimumVersion':_0x334dea,'upgradeMessage':pickString(_0x4a93ba['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a93ba[_0x21ae4a(0x189)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3d64d3=a276_0x2ced,_0x924e14=new AbortController(),_0x6fe7e5=setTimeout(()=>_0x924e14[_0x3d64d3(0x17f)](),FETCH_TIMEOUT_MS);try{const _0x519e7e=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3d64d3(0x199)},'signal':_0x924e14[_0x3d64d3(0x191)]});if(!_0x519e7e['ok'])return null;const _0x26e221=await _0x519e7e[_0x3d64d3(0x18c)]();return normalizeCliVersionPolicy(_0x26e221);}catch{return null;}finally{clearTimeout(_0x6fe7e5);}}function a276_0x8910(){const _0x1894a7=['2174116vcJmWO','2782286rfysOA','cli','164AkTsMl','length','10IfcMLV','7549641cjerSY','42lZGpZL','minimumVersionMessage','80QLONCE','string','json','3LEjcCc','1881517HJkiqc','868535oMZPjq','trim','signal','5074KoZTpe','14IXmWwr','stableVersion','recommendedVersion','now','48jVKcqH','object','application/json','minVersion','latestVersion','abort','7231jeQpWe'];a276_0x8910=function(){return _0x1894a7;};return a276_0x8910();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x211dbb=a276_0x2ced,_0x27e582=Date[_0x211dbb(0x196)]();if(hasCachedPolicy){const _0xa963b2=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x27e582-cacheTime<_0xa963b2)return cachedPolicy;}const _0x41bf36=await fetchCliVersionPolicy();return cachedPolicy=_0x41bf36,cacheTime=_0x27e582,hasCachedPolicy=!![],_0x41bf36;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a277_0x55e1(_0x43747e,_0x1aba23){_0x43747e=_0x43747e-0x14c;const _0x14a44d=a277_0x14a4();let _0x55e171=_0x14a44d[_0x43747e];return _0x55e171;}const a277_0x1725c7=a277_0x55e1;(function(_0x2092ee,_0x2652cb){const _0x3ff6b4=a277_0x55e1,_0x526c55=_0x2092ee();while(!![]){try{const _0x4f9cc7=parseInt(_0x3ff6b4(0x14f))/0x1+-parseInt(_0x3ff6b4(0x158))/0x2+parseInt(_0x3ff6b4(0x152))/0x3*(parseInt(_0x3ff6b4(0x154))/0x4)+parseInt(_0x3ff6b4(0x14e))/0x5*(parseInt(_0x3ff6b4(0x155))/0x6)+parseInt(_0x3ff6b4(0x159))/0x7*(-parseInt(_0x3ff6b4(0x14d))/0x8)+parseInt(_0x3ff6b4(0x157))/0x9+-parseInt(_0x3ff6b4(0x156))/0xa*(parseInt(_0x3ff6b4(0x153))/0xb);if(_0x4f9cc7===_0x2652cb)break;else _0x526c55['push'](_0x526c55['shift']());}catch(_0x44cbcc){_0x526c55['push'](_0x526c55['shift']());}}}(a277_0x14a4,0x35e7c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x53b359,getMultiAppConfigs as a277_0x3338dd,getTemplateBaseUrl as a277_0x166e6a}from'../context.js';function a277_0x14a4(){const _0x521c87=['3lEyxzh','293689DTWLdj','175964onksxR','258702WftDFB','20KsHtEj','784845RamVmX','414072JiTwdF','1635578YkyemA','env','8xeHcjL','35HbqifE','281869iUqDyV','string','project'];a277_0x14a4=function(){return _0x521c87;};return a277_0x14a4();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x59291e){const _0x222a8e=a277_0x55e1,_0x25d8bb=readRawConfig(_0x59291e);return _0x25d8bb['env']&&typeof _0x25d8bb['env']===_0x222a8e(0x150)&&initEnv(_0x25d8bb[_0x222a8e(0x14c)]),_0x25d8bb;}export function getConfigAppCode(){return a277_0x53b359();}export function getMultiAppConfigs(_0x517923=a277_0x1725c7(0x151)){return a277_0x3338dd(_0x517923);}export function getTemplateBaseUrl(){return a277_0x166e6a();}
1
+ const a277_0x87e8a4=a277_0x3c1b;function a277_0x2618(){const _0x129fcc=['35AiPPLi','303526ptGtFb','24153AheBOj','project','string','196yiSENC','968NCMncd','356802FXPsHw','96039DzHKFL','147004tOabjg','env','17380259wahbDX','2YvCGFN','1470835gwkpbl','12jKUIbt','860gSevCU'];a277_0x2618=function(){return _0x129fcc;};return a277_0x2618();}(function(_0x1c080e,_0x4191ad){const _0x463dfd=a277_0x3c1b,_0x4696e3=_0x1c080e();while(!![]){try{const _0x1d5be8=parseInt(_0x463dfd(0xd5))/0x1*(parseInt(_0x463dfd(0xda))/0x2)+-parseInt(_0x463dfd(0xdb))/0x3*(parseInt(_0x463dfd(0xde))/0x4)+-parseInt(_0x463dfd(0xd6))/0x5+parseInt(_0x463dfd(0xe0))/0x6*(-parseInt(_0x463dfd(0xd9))/0x7)+-parseInt(_0x463dfd(0xdf))/0x8*(-parseInt(_0x463dfd(0xe1))/0x9)+parseInt(_0x463dfd(0xd8))/0xa*(-parseInt(_0x463dfd(0xe2))/0xb)+-parseInt(_0x463dfd(0xd7))/0xc*(-parseInt(_0x463dfd(0xe4))/0xd);if(_0x1d5be8===_0x4191ad)break;else _0x4696e3['push'](_0x4696e3['shift']());}catch(_0x3a0886){_0x4696e3['push'](_0x4696e3['shift']());}}}(a277_0x2618,0xc26c3));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x1e66ae,getMultiAppConfigs as a277_0x300d7f,getTemplateBaseUrl as a277_0x21a86f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x363bb3){const _0xf3a8e7=a277_0x3c1b,_0x4ff502=readRawConfig(_0x363bb3);return _0x4ff502[_0xf3a8e7(0xe3)]&&typeof _0x4ff502[_0xf3a8e7(0xe3)]===_0xf3a8e7(0xdd)&&initEnv(_0x4ff502[_0xf3a8e7(0xe3)]),_0x4ff502;}export function getConfigAppCode(){return a277_0x1e66ae();}export function getMultiAppConfigs(_0xdd9469=a277_0x87e8a4(0xdc)){return a277_0x300d7f(_0xdd9469);}function a277_0x3c1b(_0x431f90,_0x36ab5c){_0x431f90=_0x431f90-0xd5;const _0x2618ea=a277_0x2618();let _0x3c1b90=_0x2618ea[_0x431f90];return _0x3c1b90;}export function getTemplateBaseUrl(){return a277_0x21a86f();}
@@ -1 +1 @@
1
- (function(_0x522e80,_0x5e4e24){const _0x47ba8a=a278_0x1d19,_0x4d60d4=_0x522e80();while(!![]){try{const _0x4c3f42=parseInt(_0x47ba8a(0x121))/0x1+parseInt(_0x47ba8a(0x11b))/0x2+parseInt(_0x47ba8a(0x127))/0x3*(parseInt(_0x47ba8a(0x126))/0x4)+-parseInt(_0x47ba8a(0x11c))/0x5*(parseInt(_0x47ba8a(0x11e))/0x6)+parseInt(_0x47ba8a(0x120))/0x7+parseInt(_0x47ba8a(0x12c))/0x8*(-parseInt(_0x47ba8a(0x122))/0x9)+-parseInt(_0x47ba8a(0x11d))/0xa*(parseInt(_0x47ba8a(0x12b))/0xb);if(_0x4c3f42===_0x5e4e24)break;else _0x4d60d4['push'](_0x4d60d4['shift']());}catch(_0x20c10d){_0x4d60d4['push'](_0x4d60d4['shift']());}}}(a278_0x401a,0xa6f48));function a278_0x1d19(_0x37547b,_0x18fd68){_0x37547b=_0x37547b-0x11a;const _0x401a06=a278_0x401a();let _0x1d1985=_0x401a06[_0x37547b];return _0x1d1985;}function a278_0x401a(){const _0x2def31=['12vvPUpT','readdirSync','3838968zuLEuc','255166oRrANd','9NUrpjF','error','isDirectory','join','4XeCsWk','2228034xPnPtH','复制目录时出错:','copyFileSync','mkdirSync','12837ETRlGU','4689208dDTzVZ','name','821070uxZMbL','1051820tsUzgT','2280vAOpEf'];a278_0x401a=function(){return _0x2def31;};return a278_0x401a();}import a278_0x19f5e2 from'node:path';import a278_0x3d7510 from'node:fs';export async function copyDirectory(_0x1666e3,_0xdbd30a){const _0x53585f=a278_0x1d19;try{const _0x3629c3=a278_0x3d7510[_0x53585f(0x11f)](_0x1666e3,{'withFileTypes':!![]});a278_0x3d7510[_0x53585f(0x12a)](_0xdbd30a,{'recursive':!![]});for(const _0x16d038 of _0x3629c3){const _0x2f1c43=a278_0x19f5e2[_0x53585f(0x125)](_0x1666e3,_0x16d038['name']),_0x4069d0=a278_0x19f5e2[_0x53585f(0x125)](_0xdbd30a,_0x16d038[_0x53585f(0x11a)]);_0x16d038[_0x53585f(0x124)]()?await copyDirectory(_0x2f1c43,_0x4069d0):a278_0x3d7510[_0x53585f(0x129)](_0x2f1c43,_0x4069d0);}}catch(_0x6e55e){console[_0x53585f(0x123)](_0x53585f(0x128),_0x6e55e);}}
1
+ (function(_0x39b4f5,_0x17520d){const _0x57a78f=a278_0x3ee2,_0x1bd15e=_0x39b4f5();while(!![]){try{const _0xef5286=-parseInt(_0x57a78f(0xa9))/0x1+parseInt(_0x57a78f(0xac))/0x2*(-parseInt(_0x57a78f(0xa8))/0x3)+-parseInt(_0x57a78f(0xab))/0x4*(-parseInt(_0x57a78f(0xae))/0x5)+-parseInt(_0x57a78f(0xa1))/0x6+-parseInt(_0x57a78f(0xa3))/0x7+-parseInt(_0x57a78f(0xb1))/0x8*(parseInt(_0x57a78f(0xa5))/0x9)+parseInt(_0x57a78f(0xaf))/0xa;if(_0xef5286===_0x17520d)break;else _0x1bd15e['push'](_0x1bd15e['shift']());}catch(_0x26f767){_0x1bd15e['push'](_0x1bd15e['shift']());}}}(a278_0x4510,0x7458f));function a278_0x3ee2(_0x5b2e7f,_0x36c115){_0x5b2e7f=_0x5b2e7f-0xa1;const _0x451080=a278_0x4510();let _0x3ee2cf=_0x451080[_0x5b2e7f];return _0x3ee2cf;}function a278_0x4510(){const _0x2c5115=['isDirectory','复制目录时出错:','1491aPHNga','855461ahnwus','mkdirSync','4QElJWi','222LqGFQJ','readdirSync','2310460YRMexs','22619560bctIjN','join','16xRYKiL','3828054KiQxao','name','2349102exmRsp','error','1634697vnMrLX'];a278_0x4510=function(){return _0x2c5115;};return a278_0x4510();}import a278_0x4bfe95 from'node:path';import a278_0x2eaa5a from'node:fs';export async function copyDirectory(_0x1cebe5,_0xc9b0b1){const _0x329f4b=a278_0x3ee2;try{const _0x1b9645=a278_0x2eaa5a[_0x329f4b(0xad)](_0x1cebe5,{'withFileTypes':!![]});a278_0x2eaa5a[_0x329f4b(0xaa)](_0xc9b0b1,{'recursive':!![]});for(const _0x37ee03 of _0x1b9645){const _0x4b23fe=a278_0x4bfe95['join'](_0x1cebe5,_0x37ee03[_0x329f4b(0xa2)]),_0x4e64ae=a278_0x4bfe95[_0x329f4b(0xb0)](_0xc9b0b1,_0x37ee03[_0x329f4b(0xa2)]);_0x37ee03[_0x329f4b(0xa6)]()?await copyDirectory(_0x4b23fe,_0x4e64ae):a278_0x2eaa5a['copyFileSync'](_0x4b23fe,_0x4e64ae);}}catch(_0x56ef22){console[_0x329f4b(0xa4)](_0x329f4b(0xa7),_0x56ef22);}}
@@ -1 +1 @@
1
- (function(_0x1702ac,_0x335a21){const _0x484c12=a279_0x4f91,_0x15d900=_0x1702ac();while(!![]){try{const _0x582677=parseInt(_0x484c12(0x140))/0x1*(-parseInt(_0x484c12(0x13d))/0x2)+-parseInt(_0x484c12(0x13f))/0x3*(parseInt(_0x484c12(0x13b))/0x4)+-parseInt(_0x484c12(0x138))/0x5+parseInt(_0x484c12(0x141))/0x6+parseInt(_0x484c12(0x13c))/0x7+parseInt(_0x484c12(0x135))/0x8*(parseInt(_0x484c12(0x134))/0x9)+parseInt(_0x484c12(0x13e))/0xa*(parseInt(_0x484c12(0x142))/0xb);if(_0x582677===_0x335a21)break;else _0x15d900['push'](_0x15d900['shift']());}catch(_0x50dca6){_0x15d900['push'](_0x15d900['shift']());}}}(a279_0xe53b,0xac097));function toFiniteNumber(_0x3c7d7a){const _0x42100c=a279_0x4f91;if(typeof _0x3c7d7a===_0x42100c(0x139)&&Number['isFinite'](_0x3c7d7a))return _0x3c7d7a;if(typeof _0x3c7d7a===_0x42100c(0x13a)){const _0x9c89fb=_0x3c7d7a[_0x42100c(0x136)]();if(!_0x9c89fb)return undefined;const _0x5c3fbb=Number(_0x9c89fb);if(Number['isFinite'](_0x5c3fbb))return _0x5c3fbb;}return undefined;}function a279_0x4f91(_0x4f9e3d,_0x2c8cdb){_0x4f9e3d=_0x4f9e3d-0x134;const _0xe53b1e=a279_0xe53b();let _0x4f9176=_0xe53b1e[_0x4f9e3d];return _0x4f9176;}function a279_0xe53b(){const _0x294a50=['4869366kCzhwa','93269gsIify','91359TqHgXK','440DITjZQ','trim','object','49320obRbjx','number','string','85584dZtLrv','3794553zFSLNt','210xRRvHu','830coquMk','165tSNcdl','6899RqQHxx'];a279_0xe53b=function(){return _0x294a50;};return a279_0xe53b();}export function normalizeEntityWithIdResponse(_0x553b23){const _0x2b654f=a279_0x4f91,_0x5a0d72=toFiniteNumber(_0x553b23);if(_0x5a0d72!==undefined)return{'id':_0x5a0d72,'entity':{'id':_0x5a0d72}};if(!_0x553b23||typeof _0x553b23!==_0x2b654f(0x137))return{'id':undefined,'entity':{}};const _0x145ef7={..._0x553b23},_0x3db4ee=toFiniteNumber(_0x145ef7['id']);return _0x3db4ee!==undefined&&(_0x145ef7['id']=_0x3db4ee),{'id':_0x3db4ee,'entity':_0x145ef7};}
1
+ (function(_0x47bc2e,_0x4c4ea0){const _0x3736a7=a279_0x3dbc,_0x1bfd0e=_0x47bc2e();while(!![]){try{const _0x190327=-parseInt(_0x3736a7(0x1a3))/0x1*(-parseInt(_0x3736a7(0x1ac))/0x2)+parseInt(_0x3736a7(0x1ae))/0x3*(parseInt(_0x3736a7(0x1af))/0x4)+parseInt(_0x3736a7(0x1a8))/0x5*(-parseInt(_0x3736a7(0x1a0))/0x6)+-parseInt(_0x3736a7(0x1a4))/0x7*(-parseInt(_0x3736a7(0x1a6))/0x8)+-parseInt(_0x3736a7(0x1ad))/0x9*(-parseInt(_0x3736a7(0x1a2))/0xa)+-parseInt(_0x3736a7(0x1a1))/0xb*(parseInt(_0x3736a7(0x1ab))/0xc)+-parseInt(_0x3736a7(0x1a7))/0xd;if(_0x190327===_0x4c4ea0)break;else _0x1bfd0e['push'](_0x1bfd0e['shift']());}catch(_0x9dd7e9){_0x1bfd0e['push'](_0x1bfd0e['shift']());}}}(a279_0x596e,0xcfc27));function a279_0x3dbc(_0x5ebf2b,_0x57f40a){_0x5ebf2b=_0x5ebf2b-0x1a0;const _0x596e8c=a279_0x596e();let _0x3dbc88=_0x596e8c[_0x5ebf2b];return _0x3dbc88;}function toFiniteNumber(_0x37289d){const _0x5d5da6=a279_0x3dbc;if(typeof _0x37289d==='number'&&Number[_0x5d5da6(0x1a9)](_0x37289d))return _0x37289d;if(typeof _0x37289d==='string'){const _0x40612f=_0x37289d[_0x5d5da6(0x1aa)]();if(!_0x40612f)return undefined;const _0x7c26da=Number(_0x40612f);if(Number[_0x5d5da6(0x1a9)](_0x7c26da))return _0x7c26da;}return undefined;}function a279_0x596e(){const _0x419236=['416493EKprAE','3095046cIYuXq','4LjdLoA','1194wJssZA','143VvavfY','40bNVtrP','714872nrLTju','427GLTfBG','object','142024txkeVG','23810761htjXUW','530bZkWPt','isFinite','trim','287004futvtD','2jIVOTQ'];a279_0x596e=function(){return _0x419236;};return a279_0x596e();}export function normalizeEntityWithIdResponse(_0x45fe9d){const _0x3d0026=a279_0x3dbc,_0xc845d2=toFiniteNumber(_0x45fe9d);if(_0xc845d2!==undefined)return{'id':_0xc845d2,'entity':{'id':_0xc845d2}};if(!_0x45fe9d||typeof _0x45fe9d!==_0x3d0026(0x1a5))return{'id':undefined,'entity':{}};const _0x3b6581={..._0x45fe9d},_0x1efb8e=toFiniteNumber(_0x3b6581['id']);return _0x1efb8e!==undefined&&(_0x3b6581['id']=_0x1efb8e),{'id':_0x1efb8e,'entity':_0x3b6581};}
@@ -1 +1 @@
1
- (function(_0x36cc30,_0xc44747){const _0x51bc51=a280_0xe284,_0xb9ed05=_0x36cc30();while(!![]){try{const _0x5f41bb=parseInt(_0x51bc51(0xfd))/0x1*(parseInt(_0x51bc51(0x104))/0x2)+parseInt(_0x51bc51(0x101))/0x3*(parseInt(_0x51bc51(0x100))/0x4)+parseInt(_0x51bc51(0x107))/0x5+-parseInt(_0x51bc51(0x108))/0x6+parseInt(_0x51bc51(0xff))/0x7+parseInt(_0x51bc51(0xfe))/0x8*(parseInt(_0x51bc51(0x103))/0x9)+parseInt(_0x51bc51(0x105))/0xa*(-parseInt(_0x51bc51(0x102))/0xb);if(_0x5f41bb===_0xc44747)break;else _0xb9ed05['push'](_0xb9ed05['shift']());}catch(_0x2d91e6){_0xb9ed05['push'](_0xb9ed05['shift']());}}}(a280_0x370f,0xd7364));function a280_0xe284(_0x2aebdb,_0x55e400){_0x2aebdb=_0x2aebdb-0xfd;const _0x370f43=a280_0x370f();let _0xe284ed=_0x370f43[_0x2aebdb];return _0xe284ed;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x20b6c8,_0x171415){const _0x3ed299=a280_0xe284,_0x3d7d6d=statSync(_0x20b6c8);if(_0x3d7d6d[_0x3ed299(0x106)]()){!existsSync(_0x171415)&&mkdirSync(_0x171415,{'recursive':!![]});const _0x401c96=readdirSync(_0x20b6c8);for(const _0xa672e7 of _0x401c96){await copyDir(join(_0x20b6c8,_0xa672e7),join(_0x171415,_0xa672e7));}}else copyFileSync(_0x20b6c8,_0x171415);}export function ensureDir(_0x934d30){!existsSync(_0x934d30)&&mkdirSync(_0x934d30,{'recursive':!![]});}function a280_0x370f(){const _0x339b9b=['51626gFKfUB','20408VJMiKk','26124uJQAhi','4dFsvlx','368961BffxII','6337496vgwGAy','5823NCwpHI','36KlLCIl','40iArXPq','isDirectory','7638390sKJhvl','6288660ZorNhY'];a280_0x370f=function(){return _0x339b9b;};return a280_0x370f();}export function pathExists(_0x1fe5e9){return existsSync(_0x1fe5e9);}
1
+ (function(_0x1a277a,_0x504cc4){const _0x140e80=a280_0x3515,_0x7abef7=_0x1a277a();while(!![]){try{const _0xe088ad=parseInt(_0x140e80(0xa6))/0x1*(parseInt(_0x140e80(0xa9))/0x2)+parseInt(_0x140e80(0xa1))/0x3*(-parseInt(_0x140e80(0xa2))/0x4)+parseInt(_0x140e80(0xa7))/0x5*(parseInt(_0x140e80(0xa5))/0x6)+parseInt(_0x140e80(0x9f))/0x7*(-parseInt(_0x140e80(0x9e))/0x8)+-parseInt(_0x140e80(0xa3))/0x9*(-parseInt(_0x140e80(0xa8))/0xa)+-parseInt(_0x140e80(0xa0))/0xb+parseInt(_0x140e80(0xa4))/0xc;if(_0xe088ad===_0x504cc4)break;else _0x7abef7['push'](_0x7abef7['shift']());}catch(_0x3a0512){_0x7abef7['push'](_0x7abef7['shift']());}}}(a280_0x23e8,0x83897));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a280_0x3515(_0x3cb70e,_0x3fd959){_0x3cb70e=_0x3cb70e-0x9e;const _0x23e800=a280_0x23e8();let _0x35158e=_0x23e800[_0x3cb70e];return _0x35158e;}function a280_0x23e8(){const _0x18e005=['319983Srfcad','8EaIGma','3015oxojyf','9525504zbZsuX','2946IfbZoz','4045AGyLzu','8105SQLhQw','30othYwD','436ATIFPP','isDirectory','596584qUkLhI','91xxYXcV','8260692XCuUGi'];a280_0x23e8=function(){return _0x18e005;};return a280_0x23e8();}import{join}from'node:path';export async function copyDir(_0x14c52f,_0x1d48ff){const _0x55d350=a280_0x3515,_0x3ee7bc=statSync(_0x14c52f);if(_0x3ee7bc[_0x55d350(0xaa)]()){!existsSync(_0x1d48ff)&&mkdirSync(_0x1d48ff,{'recursive':!![]});const _0xfcda44=readdirSync(_0x14c52f);for(const _0x148a95 of _0xfcda44){await copyDir(join(_0x14c52f,_0x148a95),join(_0x1d48ff,_0x148a95));}}else copyFileSync(_0x14c52f,_0x1d48ff);}export function ensureDir(_0x38a9a4){!existsSync(_0x38a9a4)&&mkdirSync(_0x38a9a4,{'recursive':!![]});}export function pathExists(_0x153317){return existsSync(_0x153317);}
@@ -1 +1 @@
1
- const a281_0x4375d0=a281_0x50e0;function a281_0x50e0(_0x29ed0e,_0x26f2d7){_0x29ed0e=_0x29ed0e-0x87;const _0x3b3319=a281_0x3b33();let _0x50e0e8=_0x3b3319[_0x29ed0e];return _0x50e0e8;}(function(_0xd6b46f,_0x5b9ce9){const _0x3f25ad=a281_0x50e0,_0x2f24cb=_0xd6b46f();while(!![]){try{const _0x58b4a2=parseInt(_0x3f25ad(0x90))/0x1+parseInt(_0x3f25ad(0x89))/0x2*(parseInt(_0x3f25ad(0x91))/0x3)+-parseInt(_0x3f25ad(0x87))/0x4*(parseInt(_0x3f25ad(0x92))/0x5)+parseInt(_0x3f25ad(0xa3))/0x6+parseInt(_0x3f25ad(0x94))/0x7+-parseInt(_0x3f25ad(0x8d))/0x8*(parseInt(_0x3f25ad(0xa0))/0x9)+parseInt(_0x3f25ad(0xa1))/0xa*(-parseInt(_0x3f25ad(0x95))/0xb);if(_0x58b4a2===_0x5b9ce9)break;else _0x2f24cb['push'](_0x2f24cb['shift']());}catch(_0x3debba){_0x2f24cb['push'](_0x2f24cb['shift']());}}}(a281_0x3b33,0x93ea7));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x149493=a281_0x50e0,_0x37105c=getTemplateBaseUrl();return _0x37105c+_0x149493(0x8a);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x4321f4=a281_0x50e0,_0x304694=getGuidesCdnUrl(),_0x232a48=await fetch(_0x304694,{'headers':{'Accept':_0x4321f4(0x9e)}});if(!_0x232a48['ok'])throw new Error(_0x4321f4(0xa7)+_0x232a48[_0x4321f4(0xab)]+'\x20'+_0x232a48[_0x4321f4(0x97)]);const _0x26da97=await _0x232a48[_0x4321f4(0x8e)]();if(!_0x26da97['guides']||typeof _0x26da97[_0x4321f4(0x98)]!==_0x4321f4(0xa9))throw new Error(_0x4321f4(0x9d));return _0x26da97;}export function writeGuidesToProject(_0x3ea8fc,_0xfdb685,_0xb5bd6a=a281_0x4375d0(0xa5),_0x22756a){const _0x5d542c=a281_0x4375d0,_0x2486cf=join(_0xfdb685,_0xb5bd6a);mkdirSync(_0x2486cf,{'recursive':!![]});for(const [_0x393cf8,_0x5db2ea]of Object[_0x5d542c(0xa2)](_0x3ea8fc[_0x5d542c(0x98)])){let _0x5d8523=_0x5db2ea[_0x5d542c(0x9f)];_0x5db2ea['lastUpdated']&&(_0x5d8523=appendUpdateTime(_0x5d8523,_0x5db2ea[_0x5d542c(0x99)])),writeFileSync(join(_0x2486cf,_0x393cf8+_0x5d542c(0xa4)),_0x5d8523,_0x5d542c(0x9c));}}export function appendUpdateTime(_0x3c5b31,_0x2f1b8d){const _0x135ddd=a281_0x4375d0;return _0x3c5b31=_0x3c5b31[_0x135ddd(0x9a)](/\n*>更新时间:.*$/m,''),_0x3c5b31[_0x135ddd(0x8c)]()+(_0x135ddd(0x9b)+_0x2f1b8d);}export function getSkillTemplate(_0x3e0e14){const _0x93a536=a281_0x4375d0;return _0x3e0e14[_0x93a536(0xaa)]?.[_0x93a536(0x9f)]||'';}export function appendExtendContents(_0x2b18bb,_0x2b662f,_0x273007){const _0x5b531d=a281_0x4375d0,_0x1eef07=[];for(const [,_0x3365e1]of Object['entries'](_0x2b662f[_0x5b531d(0x98)])){_0x3365e1[_0x5b531d(0x96)]&&_0x1eef07[_0x5b531d(0xa8)](_0x3365e1[_0x5b531d(0x96)][_0x5b531d(0x8c)]());}if(_0x1eef07[_0x5b531d(0x93)]===0x0)return _0x2b18bb;return _0x2b18bb[_0x5b531d(0x8c)]()+'\x0a\x0a'+_0x1eef07[_0x5b531d(0x8f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2f1b10,_0x251981,_0x3d92ea){const _0x3d89a6=a281_0x4375d0,_0x2c9fa2=getSkillTemplate(_0x2f1b10);if(!_0x2c9fa2)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5412f0=dirname(_0x251981);mkdirSync(_0x5412f0,{'recursive':!![]});let _0x3234c8=_0x2c9fa2['replace'](/\{\{IDE_NAME\}\}/g,_0x3d92ea);_0x3234c8=appendExtendContents(_0x3234c8,_0x2f1b10),_0x2f1b10[_0x3d89a6(0xaa)][_0x3d89a6(0x99)]&&(_0x3234c8=appendUpdateTime(_0x3234c8,_0x2f1b10[_0x3d89a6(0xaa)]['lastUpdated'])),writeFileSync(_0x251981,_0x3234c8,'utf-8');}function a281_0x3b33(){const _0x36ebc8=['lastUpdated','replace','\x0a\x0a>更新时间:','utf-8','CDN\x20返回数据格式错误','application/json','content','9902664nGdWJt','250SSZCbT','entries','6336720KYkdQR','.md','.lovrabet/skill/guides','title','CDN\x20请求失败:\x20','push','object','skillTemplate','status','858504PSFUiG','path','4WdOjqo','/skills/guides.json','map','trimEnd','8sTqByd','json','join','1196468iAYbhW','1305663lkiHRz','5vZKlKM','length','465710vfAMZq','558261GdNgyV','extendContent','statusText','guides'];a281_0x3b33=function(){return _0x36ebc8;};return a281_0x3b33();}export async function installGuides(_0x127732){const _0x18a857=a281_0x4375d0,_0x2b308d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2b308d,_0x127732),Object['keys'](_0x2b308d[_0x18a857(0x98)])[_0x18a857(0x93)];}export function getGuidesSummary(_0x49203d){const _0x408420=a281_0x4375d0;return Object[_0x408420(0xa2)](_0x49203d['guides'])[_0x408420(0x8b)](([_0x279e81,_0x382883])=>({'key':_0x279e81,'title':_0x382883[_0x408420(0xa6)],'path':_0x382883[_0x408420(0x88)]}));}
1
+ const a281_0x225db8=a281_0x120b;function a281_0x142c(){const _0x35ce90=['/skills/guides.json','join','8278458BWEuFX','.lovrabet/skill/guides','\x0a\x0a>更新时间:','4713742TWkENr','4873620eQOWkM','keys','9peCpbX','entries','content','36zLffvA','134120JNVGJT','394228lqvUyn','push','skillTemplate','34054tGsntW','9217995siReaG','.lovrabet','json','104cmfCpd','CDN\x20数据中缺少\x20skillTemplate','cache','.md','CDN\x20返回数据格式错误','replace','trimEnd','extendContent','1044QdPiGo','utf-8','7ynAmbz','lastUpdated','guides'];a281_0x142c=function(){return _0x35ce90;};return a281_0x142c();}(function(_0x531e83,_0x29af17){const _0x3bd766=a281_0x120b,_0x27a5af=_0x531e83();while(!![]){try{const _0x18af91=-parseInt(_0x3bd766(0x9a))/0x1*(-parseInt(_0x3bd766(0x96))/0x2)+-parseInt(_0x3bd766(0x8e))/0x3*(parseInt(_0x3bd766(0x93))/0x4)+-parseInt(_0x3bd766(0x97))/0x5+-parseInt(_0x3bd766(0xa9))/0x6*(parseInt(_0x3bd766(0xa4))/0x7)+-parseInt(_0x3bd766(0x92))/0x8*(-parseInt(_0x3bd766(0xa2))/0x9)+-parseInt(_0x3bd766(0x8c))/0xa+-parseInt(_0x3bd766(0x8b))/0xb*(-parseInt(_0x3bd766(0x91))/0xc);if(_0x18af91===_0x29af17)break;else _0x27a5af['push'](_0x27a5af['shift']());}catch(_0x67783c){_0x27a5af['push'](_0x27a5af['shift']());}}}(a281_0x142c,0xf2db3));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x26997d=a281_0x120b,_0x3952c2=getTemplateBaseUrl();return _0x3952c2+_0x26997d(0xa7);}const CACHE_DIR=join(homedir(),a281_0x225db8(0x98),a281_0x225db8(0x9c));export async function fetchGuidesFromCDN(){const _0x2fd6f2=a281_0x225db8,_0x521340=getGuidesCdnUrl(),_0x11a50d=await fetch(_0x521340,{'headers':{'Accept':'application/json'}});if(!_0x11a50d['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x11a50d['status']+'\x20'+_0x11a50d['statusText']);const _0x478cb9=await _0x11a50d[_0x2fd6f2(0x99)]();if(!_0x478cb9[_0x2fd6f2(0xa6)]||typeof _0x478cb9['guides']!=='object')throw new Error(_0x2fd6f2(0x9e));return _0x478cb9;}export function writeGuidesToProject(_0x2f51a5,_0x4d4b38,_0x378c34=a281_0x225db8(0x89),_0x3220e6){const _0x4200e0=a281_0x225db8,_0xce6e2e=join(_0x4d4b38,_0x378c34);mkdirSync(_0xce6e2e,{'recursive':!![]});for(const [_0x4a676f,_0x59e828]of Object[_0x4200e0(0x8f)](_0x2f51a5[_0x4200e0(0xa6)])){let _0x212c27=_0x59e828[_0x4200e0(0x90)];_0x59e828[_0x4200e0(0xa5)]&&(_0x212c27=appendUpdateTime(_0x212c27,_0x59e828['lastUpdated'])),writeFileSync(join(_0xce6e2e,_0x4a676f+_0x4200e0(0x9d)),_0x212c27,_0x4200e0(0xa3));}}export function appendUpdateTime(_0xcb4260,_0x1eefd0){const _0x2c298f=a281_0x225db8;return _0xcb4260=_0xcb4260[_0x2c298f(0x9f)](/\n*>更新时间:.*$/m,''),_0xcb4260[_0x2c298f(0xa0)]()+(_0x2c298f(0x8a)+_0x1eefd0);}export function getSkillTemplate(_0x3b5992){const _0x56293f=a281_0x225db8;return _0x3b5992[_0x56293f(0x95)]?.[_0x56293f(0x90)]||'';}function a281_0x120b(_0x1628dd,_0x19c891){_0x1628dd=_0x1628dd-0x89;const _0x142ce9=a281_0x142c();let _0x120bd1=_0x142ce9[_0x1628dd];return _0x120bd1;}export function appendExtendContents(_0x1eb77c,_0x541862,_0x13b4b2){const _0x4042b7=a281_0x225db8,_0x2a619b=[];for(const [,_0x25515d]of Object[_0x4042b7(0x8f)](_0x541862[_0x4042b7(0xa6)])){_0x25515d[_0x4042b7(0xa1)]&&_0x2a619b[_0x4042b7(0x94)](_0x25515d[_0x4042b7(0xa1)][_0x4042b7(0xa0)]());}if(_0x2a619b['length']===0x0)return _0x1eb77c;return _0x1eb77c['trimEnd']()+'\x0a\x0a'+_0x2a619b[_0x4042b7(0xa8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2c9d54,_0x1d1034,_0x2dc33e){const _0x2077e0=a281_0x225db8,_0x54b866=getSkillTemplate(_0x2c9d54);if(!_0x54b866)throw new Error(_0x2077e0(0x9b));const _0x59205a=dirname(_0x1d1034);mkdirSync(_0x59205a,{'recursive':!![]});let _0x51324c=_0x54b866[_0x2077e0(0x9f)](/\{\{IDE_NAME\}\}/g,_0x2dc33e);_0x51324c=appendExtendContents(_0x51324c,_0x2c9d54),_0x2c9d54[_0x2077e0(0x95)][_0x2077e0(0xa5)]&&(_0x51324c=appendUpdateTime(_0x51324c,_0x2c9d54[_0x2077e0(0x95)][_0x2077e0(0xa5)])),writeFileSync(_0x1d1034,_0x51324c,_0x2077e0(0xa3));}export async function installGuides(_0x4e23b4){const _0x2576a9=a281_0x225db8,_0x271839=await fetchGuidesFromCDN();return writeGuidesToProject(_0x271839,_0x4e23b4),Object[_0x2576a9(0x8d)](_0x271839['guides'])['length'];}export function getGuidesSummary(_0x21957b){const _0x4ef4c4=a281_0x225db8;return Object[_0x4ef4c4(0x8f)](_0x21957b[_0x4ef4c4(0xa6)])['map'](([_0x56dfa6,_0x5ae4f1])=>({'key':_0x56dfa6,'title':_0x5ae4f1['title'],'path':_0x5ae4f1['path']}));}
@@ -1 +1 @@
1
- function a282_0x5aef(_0x4b58aa,_0xb74211){_0x4b58aa=_0x4b58aa-0x8f;const _0x1dfadf=a282_0x1dfa();let _0x5aefc0=_0x1dfadf[_0x4b58aa];return _0x5aefc0;}(function(_0x1de09d,_0x2157da){const _0x482d73=a282_0x5aef,_0x8fce41=_0x1de09d();while(!![]){try{const _0x5dd09e=parseInt(_0x482d73(0x96))/0x1*(parseInt(_0x482d73(0xa9))/0x2)+-parseInt(_0x482d73(0xaa))/0x3*(-parseInt(_0x482d73(0x93))/0x4)+-parseInt(_0x482d73(0xa0))/0x5*(parseInt(_0x482d73(0x9c))/0x6)+parseInt(_0x482d73(0xa5))/0x7*(-parseInt(_0x482d73(0xa8))/0x8)+-parseInt(_0x482d73(0x92))/0x9+parseInt(_0x482d73(0xa2))/0xa+parseInt(_0x482d73(0xa7))/0xb;if(_0x5dd09e===_0x2157da)break;else _0x8fce41['push'](_0x8fce41['shift']());}catch(_0x369fd0){_0x8fce41['push'](_0x8fce41['shift']());}}}(a282_0x1dfa,0x61aa0));function a282_0x1dfa(){const _0x32a9d6=['json','Request\x20failed','AbortError','35sKuVUi','fetch','6053110AcnOTC','headers','message','2443yzOHrO','get','13175426mQxmtP','16208ulSFMW','479808lcJOBV','7422azIVOH','TypeError','includes','ms\x20后进行第\x20','5953869XwHxMD','116VCAnnT','*\x20请求失败,','ECONNRESET','2NDSFrr','content-type','statusText','name','\x20次重试...','text','502272yeqJrP'];a282_0x1dfa=function(){return _0x32a9d6;};return a282_0x1dfa();}export async function httpRequest(_0x215538,_0xf277f5={}){const _0x911a9f=a282_0x5aef,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xf277f5;let _0x400c32=null;for(let _0x4383a6=0x0;_0x4383a6<=retries;_0x4383a6++){try{const _0x30610c=new AbortController(),_0x5d9fac=setTimeout(()=>_0x30610c['abort'](),timeout),_0x3e510a=await fetch(_0x215538,{'headers':headers,'signal':_0x30610c['signal']});clearTimeout(_0x5d9fac);let _0x5492cc;const _0x12e4d1=_0x3e510a[_0x911a9f(0xa3)][_0x911a9f(0xa6)](_0x911a9f(0x97));return _0x12e4d1?.[_0x911a9f(0x90)]('application/json')?_0x5492cc=await _0x3e510a[_0x911a9f(0x9d)]():_0x5492cc=await _0x3e510a['text'](),{'ok':_0x3e510a['ok'],'status':_0x3e510a['status'],'statusText':_0x3e510a[_0x911a9f(0x98)],'data':_0x5492cc,'headers':_0x3e510a[_0x911a9f(0xa3)],'url':_0x3e510a['url'],'text':()=>_0x3e510a[_0x911a9f(0x9b)]()};}catch(_0x409b3c){_0x400c32=_0x409b3c instanceof Error?_0x409b3c:new Error(String(_0x409b3c));if(_0x4383a6===retries)break;if(shouldRetry(_0x409b3c)){console['log'](_0x911a9f(0x94)+retryDelay+_0x911a9f(0x91)+(_0x4383a6+0x1)+_0x911a9f(0x9a)),await sleep(retryDelay);continue;}else break;}}throw _0x400c32||new Error(_0x911a9f(0x9e));}function shouldRetry(_0x540579){const _0x388b84=a282_0x5aef;if(_0x540579 instanceof Error){if(_0x540579['name']===_0x388b84(0x9f))return![];if(_0x540579[_0x388b84(0x99)]===_0x388b84(0x8f)&&_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)](_0x388b84(0xa1)))return!![];if(_0x540579[_0x388b84(0xa4)]['includes'](_0x388b84(0x95)))return!![];if(_0x540579[_0x388b84(0xa4)][_0x388b84(0x90)]('ENOTFOUND'))return![];}return![];}function sleep(_0x1f6772){return new Promise(_0x483c1a=>setTimeout(_0x483c1a,_0x1f6772));}export function validateUrl(_0x59064e){try{return new URL(_0x59064e),!![];}catch{return![];}}
1
+ function a282_0x2af1(){const _0x563425=['4984600jDkJiW','*\x20请求失败,','3655715YKarqw','35840QOELWb','signal','31266DYELFb','message','log','ms\x20后进行第\x20','statusText','application/json','3WaUOJX','text','\x20次重试...','json','TypeError','1197358jIZLal','Request\x20failed','16JuvaRt','293935HVfgwV','ECONNRESET','AbortError','fetch','status','headers','url','includes','abort','content-type','3439125nkCsqd','441qjvYrR','ENOTFOUND'];a282_0x2af1=function(){return _0x563425;};return a282_0x2af1();}(function(_0x2cb5b8,_0x15b7c3){const _0x3bdad6=a282_0xa8b9,_0x261fd4=_0x2cb5b8();while(!![]){try{const _0xced72e=parseInt(_0x3bdad6(0xe9))/0x1+-parseInt(_0x3bdad6(0x106))/0x2*(parseInt(_0x3bdad6(0x101))/0x3)+parseInt(_0x3bdad6(0xf6))/0x4+parseInt(_0x3bdad6(0xf3))/0x5+parseInt(_0x3bdad6(0xfb))/0x6+parseInt(_0x3bdad6(0xf8))/0x7*(-parseInt(_0x3bdad6(0xe8))/0x8)+-parseInt(_0x3bdad6(0xf4))/0x9*(-parseInt(_0x3bdad6(0xf9))/0xa);if(_0xced72e===_0x15b7c3)break;else _0x261fd4['push'](_0x261fd4['shift']());}catch(_0x209b23){_0x261fd4['push'](_0x261fd4['shift']());}}}(a282_0x2af1,0xbae80));function a282_0xa8b9(_0x4d4996,_0x2be332){_0x4d4996=_0x4d4996-0xe7;const _0x2af1b7=a282_0x2af1();let _0xa8b91b=_0x2af1b7[_0x4d4996];return _0xa8b91b;}export async function httpRequest(_0x9c8960,_0x4fd064={}){const _0xb9b3d7=a282_0xa8b9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4fd064;let _0x56ffbc=null;for(let _0x464429=0x0;_0x464429<=retries;_0x464429++){try{const _0x2ad5b6=new AbortController(),_0x562b2e=setTimeout(()=>_0x2ad5b6[_0xb9b3d7(0xf1)](),timeout),_0x4b3364=await fetch(_0x9c8960,{'headers':headers,'signal':_0x2ad5b6[_0xb9b3d7(0xfa)]});clearTimeout(_0x562b2e);let _0x7462ab;const _0x1f70de=_0x4b3364[_0xb9b3d7(0xee)]['get'](_0xb9b3d7(0xf2));return _0x1f70de?.[_0xb9b3d7(0xf0)](_0xb9b3d7(0x100))?_0x7462ab=await _0x4b3364[_0xb9b3d7(0x104)]():_0x7462ab=await _0x4b3364['text'](),{'ok':_0x4b3364['ok'],'status':_0x4b3364[_0xb9b3d7(0xed)],'statusText':_0x4b3364[_0xb9b3d7(0xff)],'data':_0x7462ab,'headers':_0x4b3364[_0xb9b3d7(0xee)],'url':_0x4b3364[_0xb9b3d7(0xef)],'text':()=>_0x4b3364[_0xb9b3d7(0x102)]()};}catch(_0x556663){_0x56ffbc=_0x556663 instanceof Error?_0x556663:new Error(String(_0x556663));if(_0x464429===retries)break;if(shouldRetry(_0x556663)){console[_0xb9b3d7(0xfd)](_0xb9b3d7(0xf7)+retryDelay+_0xb9b3d7(0xfe)+(_0x464429+0x1)+_0xb9b3d7(0x103)),await sleep(retryDelay);continue;}else break;}}throw _0x56ffbc||new Error(_0xb9b3d7(0xe7));}function shouldRetry(_0x304158){const _0xbb439e=a282_0xa8b9;if(_0x304158 instanceof Error){if(_0x304158['name']===_0xbb439e(0xeb))return![];if(_0x304158['name']===_0xbb439e(0x105)&&_0x304158[_0xbb439e(0xfc)]['includes'](_0xbb439e(0xec)))return!![];if(_0x304158[_0xbb439e(0xfc)][_0xbb439e(0xf0)](_0xbb439e(0xea)))return!![];if(_0x304158[_0xbb439e(0xfc)][_0xbb439e(0xf0)](_0xbb439e(0xf5)))return![];}return![];}function sleep(_0x283bd9){return new Promise(_0x279985=>setTimeout(_0x279985,_0x283bd9));}export function validateUrl(_0x2d72bd){try{return new URL(_0x2d72bd),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a283_0x105e(){const _0x4e30de=['isRaw','12448227fvvzIv','14643TirBhv','nonInteractive','1276508DpsJWD','3drrKYo','setRawMode','stdin','2zetCfr','stdout','1121001nwcTqf','1130Dfqldm','1760gajwjz','1433448NoNsqT','10734cUrMyL','true','150938vZHgDJ'];a283_0x105e=function(){return _0x4e30de;};return a283_0x105e();}function a283_0xb70b(_0x4ccf78,_0x1f2c20){_0x4ccf78=_0x4ccf78-0xb9;const _0x105e81=a283_0x105e();let _0xb70b1d=_0x105e81[_0x4ccf78];return _0xb70b1d;}(function(_0x2b628b,_0x129edc){const _0x258956=a283_0xb70b,_0xe06aa8=_0x2b628b();while(!![]){try{const _0x531167=-parseInt(_0x258956(0xbf))/0x1*(parseInt(_0x258956(0xc8))/0x2)+parseInt(_0x258956(0xc5))/0x3*(-parseInt(_0x258956(0xc4))/0x4)+parseInt(_0x258956(0xba))/0x5*(-parseInt(_0x258956(0xbd))/0x6)+parseInt(_0x258956(0xb9))/0x7+parseInt(_0x258956(0xbc))/0x8+parseInt(_0x258956(0xc2))/0x9*(-parseInt(_0x258956(0xbb))/0xa)+parseInt(_0x258956(0xc1))/0xb;if(_0x531167===_0x129edc)break;else _0xe06aa8['push'](_0xe06aa8['shift']());}catch(_0x1f2feb){_0xe06aa8['push'](_0xe06aa8['shift']());}}}(a283_0x105e,0x4bbea));function env(_0x5e02c4){return process.env[`RABETBASE_${_0x5e02c4}`]||process.env[`LOVRABET_${_0x5e02c4}`]||undefined;}export function isNonInteractive(_0x1f35ad){const _0x5f0cfe=a283_0xb70b;return!!(_0x1f35ad[_0x5f0cfe(0xc3)]||_0x1f35ad['ci']||env('CI')===_0x5f0cfe(0xbe)||process.env.CI===_0x5f0cfe(0xbe)||!process[_0x5f0cfe(0xc9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e9027=a283_0xb70b;if(!process['stdin']['isTTY'])return![];try{const _0x42e224=process['stdin'][_0x5e9027(0xc0)];return process[_0x5e9027(0xc7)]['setRawMode'](!![]),process[_0x5e9027(0xc7)][_0x5e9027(0xc6)](_0x42e224??![]),!![];}catch{return![];}}
1
+ function a283_0x288d(_0x3a71ec,_0x5c8e54){_0x3a71ec=_0x3a71ec-0x14a;const _0x14fea1=a283_0x14fe();let _0x288dd7=_0x14fea1[_0x3a71ec];return _0x288dd7;}(function(_0x3d9ce5,_0x2914dc){const _0x4d7283=a283_0x288d,_0x3f2807=_0x3d9ce5();while(!![]){try{const _0x3fa69b=-parseInt(_0x4d7283(0x14b))/0x1*(-parseInt(_0x4d7283(0x150))/0x2)+-parseInt(_0x4d7283(0x14c))/0x3*(-parseInt(_0x4d7283(0x14d))/0x4)+-parseInt(_0x4d7283(0x14a))/0x5+parseInt(_0x4d7283(0x14e))/0x6+parseInt(_0x4d7283(0x153))/0x7*(parseInt(_0x4d7283(0x152))/0x8)+parseInt(_0x4d7283(0x14f))/0x9+-parseInt(_0x4d7283(0x158))/0xa;if(_0x3fa69b===_0x2914dc)break;else _0x3f2807['push'](_0x3f2807['shift']());}catch(_0x7536f5){_0x3f2807['push'](_0x3f2807['shift']());}}}(a283_0x14fe,0xc255e));function a283_0x14fe(){const _0x5025e0=['32566000ThuPyc','846345dqRADB','6LZIlko','294147RnsUVd','28WMdgBS','8506182IHRTTo','8203410JUmmgl','59722QQzanM','stdout','8217368LneIZL','7BPhXGo','true','setRawMode','stdin','isRaw'];a283_0x14fe=function(){return _0x5025e0;};return a283_0x14fe();}function env(_0x4a931e){return process.env[`RABETBASE_${_0x4a931e}`]||process.env[`LOVRABET_${_0x4a931e}`]||undefined;}export function isNonInteractive(_0x3f55b3){const _0x34190e=a283_0x288d;return!!(_0x3f55b3['nonInteractive']||_0x3f55b3['ci']||env('CI')===_0x34190e(0x154)||process.env.CI==='true'||!process[_0x34190e(0x151)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x27d260=a283_0x288d;if(!process[_0x27d260(0x156)]['isTTY'])return![];try{const _0xa02169=process[_0x27d260(0x156)][_0x27d260(0x157)];return process[_0x27d260(0x156)][_0x27d260(0x155)](!![]),process[_0x27d260(0x156)][_0x27d260(0x155)](_0xa02169??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a284_0x5b7fd5=a284_0x509b;(function(_0x3cd091,_0x28d65e){const _0x373a4f=a284_0x509b,_0x1248dc=_0x3cd091();while(!![]){try{const _0x371b7a=-parseInt(_0x373a4f(0x1f2))/0x1+parseInt(_0x373a4f(0x1f5))/0x2*(parseInt(_0x373a4f(0x1df))/0x3)+parseInt(_0x373a4f(0x1e2))/0x4+parseInt(_0x373a4f(0x1e3))/0x5+-parseInt(_0x373a4f(0x1f0))/0x6*(-parseInt(_0x373a4f(0x1e9))/0x7)+parseInt(_0x373a4f(0x204))/0x8+parseInt(_0x373a4f(0x1ff))/0x9*(-parseInt(_0x373a4f(0x1de))/0xa);if(_0x371b7a===_0x28d65e)break;else _0x1248dc['push'](_0x1248dc['shift']());}catch(_0x17660e){_0x1248dc['push'](_0x1248dc['shift']());}}}(a284_0x2450,0x73fa1));function a284_0x509b(_0x2e320c,_0x5ac36d){_0x2e320c=_0x2e320c-0x1d2;const _0x24500d=a284_0x2450();let _0x509b0e=_0x24500d[_0x2e320c];return _0x509b0e;}function a284_0x2450(){const _0x4fde94=['log','details','335166IeUPGR','map','928603VslAUX','existsSync','message','1426CLeUzV','createLogger','format','writeFileSync','addColors','command','File','red','warn','success','12356829nalXKs','printf','green','setRawCommand','initWinstonLogger','247504uwWGog','combine','clear','transports','失败:\x20','utf8','rawCommand','filter','toISOString','blue','split','开始执行:\x20','yellow','mkdirSync','parse','getWinstonInstance','unknown','timestamp','currentRawCommand','Failed\x20to\x20clear\x20logs:','.lovrabet.log','logFilePath','10PghDgo','2016GIriFH','logTask','readLogs','3685032UsLumu','3654110xnEvoV','duration','setLogPath','stringify','level','info','77xdogTV','winstonLogger','error','dirname','完成:\x20'];a284_0x2450=function(){return _0x4fde94;};return a284_0x2450();}import a284_0x2d4756 from'winston';import a284_0x1c2404 from'node:fs';import a284_0x4a5ced from'node:path';class Logger{[a284_0x5b7fd5(0x1ea)];[a284_0x5b7fd5(0x1dd)];[a284_0x5b7fd5(0x1da)]='';constructor(){const _0x3da842=a284_0x5b7fd5;this[_0x3da842(0x1dd)]='';}[a284_0x5b7fd5(0x202)](_0x37d65e){const _0x11949a=a284_0x5b7fd5;this[_0x11949a(0x1da)]=_0x37d65e;}['initWinstonLogger'](){const _0x45a67a=a284_0x5b7fd5,_0x179e3f=a284_0x4a5ced[_0x45a67a(0x1ec)](this[_0x45a67a(0x1dd)]);!a284_0x1c2404[_0x45a67a(0x1f3)](_0x179e3f)&&a284_0x1c2404[_0x45a67a(0x1d5)](_0x179e3f,{'recursive':!![]});const _0x49c2f1=a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x205)](a284_0x2d4756['format'][_0x45a67a(0x1d9)](),a284_0x2d4756['format']['errors']({'stack':!![]}),a284_0x2d4756[_0x45a67a(0x1f7)][_0x45a67a(0x200)](_0x24fbf8=>{const _0x542de1=_0x45a67a,_0x47ce6c={'timestamp':_0x24fbf8[_0x542de1(0x1d9)]||new Date()[_0x542de1(0x20c)](),'level':_0x24fbf8[_0x542de1(0x1e7)]||_0x542de1(0x1e8),'command':_0x24fbf8[_0x542de1(0x1fa)]||_0x542de1(0x1d8),'rawCommand':_0x24fbf8[_0x542de1(0x20a)]||this[_0x542de1(0x1da)]||undefined,'message':_0x24fbf8['message']||'','duration':_0x24fbf8[_0x542de1(0x1e4)]||undefined,'details':_0x24fbf8[_0x542de1(0x1ef)]||undefined};return JSON[_0x542de1(0x1e6)](_0x47ce6c);}));this[_0x45a67a(0x1ea)]=a284_0x2d4756[_0x45a67a(0x1f6)]({'level':'info','format':_0x49c2f1,'transports':[new a284_0x2d4756[(_0x45a67a(0x207))][(_0x45a67a(0x1fb))]({'filename':this[_0x45a67a(0x1dd)],'level':_0x45a67a(0x1e8)})],'silent':![]}),a284_0x2d4756[_0x45a67a(0x1f9)]({'success':_0x45a67a(0x201),'error':_0x45a67a(0x1fc),'warn':_0x45a67a(0x1d4),'info':_0x45a67a(0x20d)});}[a284_0x5b7fd5(0x1e5)](_0x4ed516){const _0x4c7de1=a284_0x5b7fd5;this[_0x4c7de1(0x1dd)]=a284_0x4a5ced['join'](_0x4ed516,_0x4c7de1(0x1dc)),this[_0x4c7de1(0x1ea)]&&this['winstonLogger'][_0x4c7de1(0x206)](),this[_0x4c7de1(0x203)]();}[a284_0x5b7fd5(0x1e8)](_0x5a243f,_0x2aef7b,_0xc60bb4){const _0x74735c=a284_0x5b7fd5;if(!this[_0x74735c(0x1dd)]||!this[_0x74735c(0x1ea)])return;this[_0x74735c(0x1ea)][_0x74735c(0x1e8)](_0x2aef7b,{'command':_0x5a243f,'details':_0xc60bb4});}[a284_0x5b7fd5(0x1fe)](_0x35fcb7,_0x2c2600,_0x8ae140,_0x29273d){const _0x5d3bca=a284_0x5b7fd5;if(!this[_0x5d3bca(0x1dd)]||!this[_0x5d3bca(0x1ea)])return;this[_0x5d3bca(0x1ea)][_0x5d3bca(0x1ee)](_0x5d3bca(0x1e8),_0x2c2600,{'level':_0x5d3bca(0x1fe),'command':_0x35fcb7,'duration':_0x8ae140,'details':_0x29273d});}[a284_0x5b7fd5(0x1eb)](_0x67ab0c,_0x33259b,_0x30a97e){const _0x12b077=a284_0x5b7fd5;if(!this[_0x12b077(0x1dd)]||!this[_0x12b077(0x1ea)])return;this[_0x12b077(0x1ea)][_0x12b077(0x1eb)](_0x33259b,{'command':_0x67ab0c,'details':_0x30a97e});}['warn'](_0x370de9,_0x489305,_0xb3caa4){const _0x5c0cc5=a284_0x5b7fd5;if(!this[_0x5c0cc5(0x1dd)]||!this[_0x5c0cc5(0x1ea)])return;this[_0x5c0cc5(0x1ea)][_0x5c0cc5(0x1fd)](_0x489305,{'command':_0x370de9,'details':_0xb3caa4});}async[a284_0x5b7fd5(0x1e0)](_0x106a87,_0x21d90f,_0x4579f8){const _0x5d4250=a284_0x5b7fd5,_0x2aeb3f=Date['now']();this[_0x5d4250(0x1e8)](_0x106a87,_0x5d4250(0x1d3)+_0x21d90f);try{const _0x3c3be7=await _0x4579f8(),_0x506d90=Date['now']()-_0x2aeb3f;return this['success'](_0x106a87,_0x5d4250(0x1ed)+_0x21d90f,_0x506d90),_0x3c3be7;}catch(_0x4374c0){const _0x4f52b2=Date['now']()-_0x2aeb3f;this[_0x5d4250(0x1eb)](_0x106a87,_0x5d4250(0x208)+_0x21d90f,{'error':_0x4374c0 instanceof Error?_0x4374c0[_0x5d4250(0x1f4)]:String(_0x4374c0),'duration':_0x4f52b2});throw _0x4374c0;}}[a284_0x5b7fd5(0x1e1)](){const _0x28f6f1=a284_0x5b7fd5;try{if(!a284_0x1c2404['existsSync'](this['logFilePath']))return[];const _0x3408dd=a284_0x1c2404['readFileSync'](this[_0x28f6f1(0x1dd)],_0x28f6f1(0x209));return _0x3408dd[_0x28f6f1(0x1d2)]('\x0a')[_0x28f6f1(0x20b)](_0x14a4db=>_0x14a4db['trim']())[_0x28f6f1(0x1f1)](_0x3fc45d=>JSON[_0x28f6f1(0x1d6)](_0x3fc45d));}catch(_0x1064d1){return console['warn']('Failed\x20to\x20read\x20logs:',_0x1064d1),[];}}['clearLogs'](){const _0x6d1944=a284_0x5b7fd5;try{a284_0x1c2404['existsSync'](this['logFilePath'])&&a284_0x1c2404[_0x6d1944(0x1f8)](this[_0x6d1944(0x1dd)],'',_0x6d1944(0x209));}catch(_0x4aced1){console[_0x6d1944(0x1fd)](_0x6d1944(0x1db),_0x4aced1);}}[a284_0x5b7fd5(0x1d7)](){const _0x2a4854=a284_0x5b7fd5;return this[_0x2a4854(0x1ea)];}}export const logger=new Logger();
1
+ const a284_0x5c95f2=a284_0xaf43;(function(_0x520873,_0x53a2d1){const _0x456d17=a284_0xaf43,_0x3febae=_0x520873();while(!![]){try{const _0x52a2d5=-parseInt(_0x456d17(0x1c7))/0x1+-parseInt(_0x456d17(0x1e1))/0x2*(-parseInt(_0x456d17(0x1c8))/0x3)+parseInt(_0x456d17(0x1d4))/0x4+-parseInt(_0x456d17(0x1f4))/0x5*(-parseInt(_0x456d17(0x1c9))/0x6)+-parseInt(_0x456d17(0x203))/0x7*(-parseInt(_0x456d17(0x1fb))/0x8)+-parseInt(_0x456d17(0x1fe))/0x9*(-parseInt(_0x456d17(0x1e8))/0xa)+-parseInt(_0x456d17(0x1ce))/0xb*(parseInt(_0x456d17(0x1cc))/0xc);if(_0x52a2d5===_0x53a2d1)break;else _0x3febae['push'](_0x3febae['shift']());}catch(_0x264c6a){_0x3febae['push'](_0x3febae['shift']());}}}(a284_0x1e0f,0xdf379));import a284_0x40f3b2 from'winston';function a284_0xaf43(_0x35ffdb,_0x3e3b93){_0x35ffdb=_0x35ffdb-0x1c7;const _0x1e0fc6=a284_0x1e0f();let _0xaf4387=_0x1e0fc6[_0x35ffdb];return _0xaf4387;}function a284_0x1e0f(){const _0x4fe58a=['clear','level','split','setRawCommand','message','blue','3064260gvNCba','errors','success','完成:\x20','command','createLogger','join','yellow','error','stringify','toISOString','now','6153105cRuoBc','warn','unknown','clearLogs','File','winstonLogger','filter','8MjNJbs','logTask','utf8','18qRFfYZ','开始执行:\x20','setLogPath','失败:\x20','readLogs','3667258LgwMtI','duration','359075qVqqLH','4977CkAFwH','6qKJUeY','existsSync','details','17953332sljapG','addColors','22DmwPIE','map','currentRawCommand','green','dirname','red','499024EymnmU','logFilePath','parse','readFileSync','getWinstonInstance','timestamp','combine','.lovrabet.log','writeFileSync','Failed\x20to\x20clear\x20logs:','info','format','log','2138nzSHys'];a284_0x1e0f=function(){return _0x4fe58a;};return a284_0x1e0f();}import a284_0x2284e0 from'node:fs';import a284_0x2a36b9 from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){const _0x1db63a=a284_0xaf43;this[_0x1db63a(0x1d5)]='';}[a284_0x5c95f2(0x1e5)](_0xceffa3){this['currentRawCommand']=_0xceffa3;}['initWinstonLogger'](){const _0x4c32c6=a284_0x5c95f2,_0x5719f6=a284_0x2a36b9[_0x4c32c6(0x1d2)](this[_0x4c32c6(0x1d5)]);!a284_0x2284e0[_0x4c32c6(0x1ca)](_0x5719f6)&&a284_0x2284e0['mkdirSync'](_0x5719f6,{'recursive':!![]});const _0x1c1e4a=a284_0x40f3b2[_0x4c32c6(0x1df)][_0x4c32c6(0x1da)](a284_0x40f3b2[_0x4c32c6(0x1df)][_0x4c32c6(0x1d9)](),a284_0x40f3b2[_0x4c32c6(0x1df)][_0x4c32c6(0x1e9)]({'stack':!![]}),a284_0x40f3b2[_0x4c32c6(0x1df)]['printf'](_0x4e6c27=>{const _0x10c735=_0x4c32c6,_0x286af2={'timestamp':_0x4e6c27[_0x10c735(0x1d9)]||new Date()[_0x10c735(0x1f2)](),'level':_0x4e6c27[_0x10c735(0x1e3)]||_0x10c735(0x1de),'command':_0x4e6c27[_0x10c735(0x1ec)]||_0x10c735(0x1f6),'rawCommand':_0x4e6c27['rawCommand']||this[_0x10c735(0x1d0)]||undefined,'message':_0x4e6c27['message']||'','duration':_0x4e6c27[_0x10c735(0x204)]||undefined,'details':_0x4e6c27[_0x10c735(0x1cb)]||undefined};return JSON[_0x10c735(0x1f1)](_0x286af2);}));this[_0x4c32c6(0x1f9)]=a284_0x40f3b2[_0x4c32c6(0x1ed)]({'level':_0x4c32c6(0x1de),'format':_0x1c1e4a,'transports':[new a284_0x40f3b2['transports'][(_0x4c32c6(0x1f8))]({'filename':this[_0x4c32c6(0x1d5)],'level':_0x4c32c6(0x1de)})],'silent':![]}),a284_0x40f3b2[_0x4c32c6(0x1cd)]({'success':_0x4c32c6(0x1d1),'error':_0x4c32c6(0x1d3),'warn':_0x4c32c6(0x1ef),'info':_0x4c32c6(0x1e7)});}[a284_0x5c95f2(0x200)](_0x44f67b){const _0x4068df=a284_0x5c95f2;this['logFilePath']=a284_0x2a36b9[_0x4068df(0x1ee)](_0x44f67b,_0x4068df(0x1db)),this['winstonLogger']&&this['winstonLogger'][_0x4068df(0x1e2)](),this['initWinstonLogger']();}[a284_0x5c95f2(0x1de)](_0x865c09,_0x4c5d07,_0x1e3af0){const _0x2f793e=a284_0x5c95f2;if(!this[_0x2f793e(0x1d5)]||!this[_0x2f793e(0x1f9)])return;this['winstonLogger'][_0x2f793e(0x1de)](_0x4c5d07,{'command':_0x865c09,'details':_0x1e3af0});}[a284_0x5c95f2(0x1ea)](_0x2a334e,_0x16ef0f,_0x42a5e4,_0x47142b){const _0x43c9b0=a284_0x5c95f2;if(!this[_0x43c9b0(0x1d5)]||!this[_0x43c9b0(0x1f9)])return;this[_0x43c9b0(0x1f9)][_0x43c9b0(0x1e0)](_0x43c9b0(0x1de),_0x16ef0f,{'level':_0x43c9b0(0x1ea),'command':_0x2a334e,'duration':_0x42a5e4,'details':_0x47142b});}[a284_0x5c95f2(0x1f0)](_0x163784,_0x154281,_0x2728cf){const _0x5d59df=a284_0x5c95f2;if(!this[_0x5d59df(0x1d5)]||!this[_0x5d59df(0x1f9)])return;this[_0x5d59df(0x1f9)][_0x5d59df(0x1f0)](_0x154281,{'command':_0x163784,'details':_0x2728cf});}[a284_0x5c95f2(0x1f5)](_0x3c6c75,_0x5b66b2,_0x1c7ae3){const _0x1a074f=a284_0x5c95f2;if(!this[_0x1a074f(0x1d5)]||!this[_0x1a074f(0x1f9)])return;this[_0x1a074f(0x1f9)]['warn'](_0x5b66b2,{'command':_0x3c6c75,'details':_0x1c7ae3});}async[a284_0x5c95f2(0x1fc)](_0x2342e2,_0x5c3929,_0x396185){const _0x1d9f92=a284_0x5c95f2,_0x49cd08=Date[_0x1d9f92(0x1f3)]();this[_0x1d9f92(0x1de)](_0x2342e2,_0x1d9f92(0x1ff)+_0x5c3929);try{const _0x236418=await _0x396185(),_0x458433=Date['now']()-_0x49cd08;return this[_0x1d9f92(0x1ea)](_0x2342e2,_0x1d9f92(0x1eb)+_0x5c3929,_0x458433),_0x236418;}catch(_0x33a7cb){const _0x15222c=Date[_0x1d9f92(0x1f3)]()-_0x49cd08;this['error'](_0x2342e2,_0x1d9f92(0x201)+_0x5c3929,{'error':_0x33a7cb instanceof Error?_0x33a7cb[_0x1d9f92(0x1e6)]:String(_0x33a7cb),'duration':_0x15222c});throw _0x33a7cb;}}[a284_0x5c95f2(0x202)](){const _0x22d6a8=a284_0x5c95f2;try{if(!a284_0x2284e0['existsSync'](this[_0x22d6a8(0x1d5)]))return[];const _0x467bb7=a284_0x2284e0[_0x22d6a8(0x1d7)](this['logFilePath'],_0x22d6a8(0x1fd));return _0x467bb7[_0x22d6a8(0x1e4)]('\x0a')[_0x22d6a8(0x1fa)](_0x5e448c=>_0x5e448c['trim']())[_0x22d6a8(0x1cf)](_0x14913d=>JSON[_0x22d6a8(0x1d6)](_0x14913d));}catch(_0x4d2bac){return console[_0x22d6a8(0x1f5)]('Failed\x20to\x20read\x20logs:',_0x4d2bac),[];}}[a284_0x5c95f2(0x1f7)](){const _0x4c1cd2=a284_0x5c95f2;try{a284_0x2284e0['existsSync'](this['logFilePath'])&&a284_0x2284e0[_0x4c1cd2(0x1dc)](this[_0x4c1cd2(0x1d5)],'',_0x4c1cd2(0x1fd));}catch(_0x4c9de1){console[_0x4c1cd2(0x1f5)](_0x4c1cd2(0x1dd),_0x4c9de1);}}[a284_0x5c95f2(0x1d8)](){const _0x27fde9=a284_0x5c95f2;return this[_0x27fde9(0x1f9)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a285_0x1b94(_0x212295,_0x64bd70){_0x212295=_0x212295-0x181;const _0x33ca71=a285_0x33ca();let _0x1b9447=_0x33ca71[_0x212295];return _0x1b9447;}(function(_0x25212c,_0x24b0b8){const _0x7d68a6=a285_0x1b94,_0x436d1f=_0x25212c();while(!![]){try{const _0x4094c3=-parseInt(_0x7d68a6(0x188))/0x1*(-parseInt(_0x7d68a6(0x187))/0x2)+parseInt(_0x7d68a6(0x18e))/0x3*(parseInt(_0x7d68a6(0x184))/0x4)+parseInt(_0x7d68a6(0x185))/0x5+parseInt(_0x7d68a6(0x182))/0x6+parseInt(_0x7d68a6(0x181))/0x7+-parseInt(_0x7d68a6(0x18c))/0x8*(parseInt(_0x7d68a6(0x183))/0x9)+-parseInt(_0x7d68a6(0x18a))/0xa;if(_0x4094c3===_0x24b0b8)break;else _0x436d1f['push'](_0x436d1f['shift']());}catch(_0x197c84){_0x436d1f['push'](_0x436d1f['shift']());}}}(a285_0x33ca,0xa50e8));function a285_0x33ca(){const _0x54ebf5=['object','270tGJcPa','8821INPGwG','validation','21073640MdgMpA','Invalid\x20JSON\x20for\x20--params:\x20','8NQzrJR','parse','12GTtfpr','4734268MWvgys','6152190jFNdfm','12144753uVoiEl','108844dTdsEX','5657425waCvtl'];a285_0x33ca=function(){return _0x54ebf5;};return a285_0x33ca();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x35da7b){const _0x3c62f5=a285_0x1b94;if(!_0x35da7b)return undefined;let _0x44c9d4;try{_0x44c9d4=JSON[_0x3c62f5(0x18d)](_0x35da7b);}catch{throw CliErrors[_0x3c62f5(0x189)](_0x3c62f5(0x18b)+_0x35da7b);}if(!_0x44c9d4||typeof _0x44c9d4!==_0x3c62f5(0x186)||Array['isArray'](_0x44c9d4))throw CliErrors[_0x3c62f5(0x189)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x44c9d4;}
1
+ function a285_0x9854(){const _0xe0aa86=['2KaSGHr','validation','4204180CqkCpK','9FutZQz','286636XkJHqJ','parse','830364ljQFmd','Invalid\x20JSON\x20for\x20--params:\x20','1872840iNSVqG','4372952bRhbvh','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','175SCHsjZ','--params\x20must\x20be\x20a\x20JSON\x20object','isArray','211626TOaeSI','object','2468166hAVbrH'];a285_0x9854=function(){return _0xe0aa86;};return a285_0x9854();}(function(_0x3f57fb,_0x596eb3){const _0x2f0e42=a285_0x50ce,_0x122033=_0x3f57fb();while(!![]){try{const _0x14774b=parseInt(_0x2f0e42(0xe2))/0x1+parseInt(_0x2f0e42(0xed))/0x2*(-parseInt(_0x2f0e42(0xec))/0x3)+parseInt(_0x2f0e42(0xf1))/0x4+-parseInt(_0x2f0e42(0xef))/0x5+parseInt(_0x2f0e42(0xea))/0x6*(parseInt(_0x2f0e42(0xe7))/0x7)+parseInt(_0x2f0e42(0xe5))/0x8+parseInt(_0x2f0e42(0xf0))/0x9*(-parseInt(_0x2f0e42(0xe4))/0xa);if(_0x14774b===_0x596eb3)break;else _0x122033['push'](_0x122033['shift']());}catch(_0x2afaf5){_0x122033['push'](_0x122033['shift']());}}}(a285_0x9854,0x75157));function a285_0x50ce(_0xf5fc7b,_0x34fa53){_0xf5fc7b=_0xf5fc7b-0xe1;const _0x985435=a285_0x9854();let _0x50ceeb=_0x985435[_0xf5fc7b];return _0x50ceeb;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3411df){const _0x702e95=a285_0x50ce;if(!_0x3411df)return undefined;let _0x2f07cd;try{_0x2f07cd=JSON[_0x702e95(0xe1)](_0x3411df);}catch{throw CliErrors['validation'](_0x702e95(0xe3)+_0x3411df);}if(!_0x2f07cd||typeof _0x2f07cd!==_0x702e95(0xeb)||Array[_0x702e95(0xe9)](_0x2f07cd))throw CliErrors[_0x702e95(0xee)](_0x702e95(0xe8),_0x702e95(0xe6));return _0x2f07cd;}
@@ -1 +1 @@
1
- const a286_0x7641d6=a286_0x4ff6;(function(_0x5d8b41,_0x15e429){const _0x4c7ca6=a286_0x4ff6,_0x1ce83d=_0x5d8b41();while(!![]){try{const _0x4872ba=-parseInt(_0x4c7ca6(0xe2))/0x1*(parseInt(_0x4c7ca6(0xec))/0x2)+parseInt(_0x4c7ca6(0xe5))/0x3*(parseInt(_0x4c7ca6(0xe4))/0x4)+-parseInt(_0x4c7ca6(0xea))/0x5*(parseInt(_0x4c7ca6(0xeb))/0x6)+-parseInt(_0x4c7ca6(0xe6))/0x7+-parseInt(_0x4c7ca6(0xe9))/0x8*(parseInt(_0x4c7ca6(0xe7))/0x9)+parseInt(_0x4c7ca6(0xdf))/0xa*(-parseInt(_0x4c7ca6(0xe1))/0xb)+parseInt(_0x4c7ca6(0xe8))/0xc*(parseInt(_0x4c7ca6(0xe3))/0xd);if(_0x4872ba===_0x15e429)break;else _0x1ce83d['push'](_0x1ce83d['shift']());}catch(_0x473d3d){_0x1ce83d['push'](_0x1ce83d['shift']());}}}(a286_0x21c1,0x22ef0));export const isWindows=process[a286_0x7641d6(0xe0)]==='win32';function a286_0x4ff6(_0x5ac766,_0x12e8cf){_0x5ac766=_0x5ac766-0xdf;const _0x21c153=a286_0x21c1();let _0x4ff6c8=_0x21c153[_0x5ac766];return _0x4ff6c8;}export function resolveNpmBin(_0x1e4cb8){return isWindows?_0x1e4cb8+'.cmd':_0x1e4cb8;}function a286_0x21c1(){const _0x40fd7d=['66lsYTTX','459207aphjlh','2135592KPeBHv','24nBkBym','8kHPOuo','3665whFFxx','1314aCYYNd','2CQGNod','10phbjdF','platform','618937IiTeeU','10271rgGSjC','3707392hbgjCW','18668XqwvHu'];a286_0x21c1=function(){return _0x40fd7d;};return a286_0x21c1();}
1
+ const a286_0x12c17d=a286_0x1a63;(function(_0x3a290b,_0x151e07){const _0x31cb29=a286_0x1a63,_0x16cfc2=_0x3a290b();while(!![]){try{const _0x383a9f=-parseInt(_0x31cb29(0x86))/0x1+parseInt(_0x31cb29(0x88))/0x2+-parseInt(_0x31cb29(0x87))/0x3*(parseInt(_0x31cb29(0x83))/0x4)+parseInt(_0x31cb29(0x84))/0x5*(-parseInt(_0x31cb29(0x8c))/0x6)+parseInt(_0x31cb29(0x89))/0x7*(parseInt(_0x31cb29(0x85))/0x8)+-parseInt(_0x31cb29(0x81))/0x9+parseInt(_0x31cb29(0x82))/0xa;if(_0x383a9f===_0x151e07)break;else _0x16cfc2['push'](_0x16cfc2['shift']());}catch(_0x200323){_0x16cfc2['push'](_0x16cfc2['shift']());}}}(a286_0x1072,0x1bf16));function a286_0x1072(){const _0x53c5f6=['83270kfWGrx','7Hmjupn','.cmd','win32','24MKKrdE','934335gqxYvY','4587860bULoPP','1372aMrbzn','69465KJAQLU','72528zbfKfL','149896Pppojj','750yslAEt'];a286_0x1072=function(){return _0x53c5f6;};return a286_0x1072();}function a286_0x1a63(_0x5bbc9e,_0x494891){_0x5bbc9e=_0x5bbc9e-0x81;const _0x107275=a286_0x1072();let _0x1a636e=_0x107275[_0x5bbc9e];return _0x1a636e;}export const isWindows=process['platform']===a286_0x12c17d(0x8b);export function resolveNpmBin(_0x39c1d5){const _0x41530b=a286_0x12c17d;return isWindows?_0x39c1d5+_0x41530b(0x8a):_0x39c1d5;}
@@ -1 +1 @@
1
- const a287_0xd8a3e4=a287_0x591a;(function(_0x220538,_0x2edb82){const _0x4d3d2e=a287_0x591a,_0x47982b=_0x220538();while(!![]){try{const _0x5a1116=-parseInt(_0x4d3d2e(0x126))/0x1+-parseInt(_0x4d3d2e(0x118))/0x2*(parseInt(_0x4d3d2e(0x116))/0x3)+parseInt(_0x4d3d2e(0x115))/0x4+-parseInt(_0x4d3d2e(0x121))/0x5*(parseInt(_0x4d3d2e(0x112))/0x6)+parseInt(_0x4d3d2e(0x124))/0x7*(parseInt(_0x4d3d2e(0x11b))/0x8)+parseInt(_0x4d3d2e(0x127))/0x9+parseInt(_0x4d3d2e(0x122))/0xa;if(_0x5a1116===_0x2edb82)break;else _0x47982b['push'](_0x47982b['shift']());}catch(_0x2e5e08){_0x47982b['push'](_0x47982b['shift']());}}}(a287_0x5297,0xcbf3d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x332262=a287_0x591a,_0x1265c5=getTemplateBaseUrl();return _0x1265c5+_0x332262(0x123);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0xd8a3e4(0x128));export async function fetchRulesFromCDN(){const _0x377a3a=a287_0xd8a3e4,_0x29c648=getRulesCdnUrl(),_0x54aadc=await fetch(_0x29c648,{'headers':{'Accept':_0x377a3a(0x12a)}});if(!_0x54aadc['ok'])throw new Error(_0x377a3a(0x120)+_0x54aadc[_0x377a3a(0x119)]+'\x20'+_0x54aadc['statusText']);const _0x565bf1=await _0x54aadc['json']();if(!_0x565bf1[_0x377a3a(0x113)]||typeof _0x565bf1[_0x377a3a(0x113)]!==_0x377a3a(0x11f))throw new Error(_0x377a3a(0x117));return _0x565bf1;}function a287_0x591a(_0x124e5d,_0x5c1538){_0x124e5d=_0x124e5d-0x112;const _0x529738=a287_0x5297();let _0x591a79=_0x529738[_0x124e5d];return _0x591a79;}export async function getRulesContent(){const _0x4a56f3=a287_0xd8a3e4;try{const _0xfe1af7=await fetchRulesFromCDN();return _0xfe1af7[_0x4a56f3(0x113)];}catch{return readLocalTemplate();}}function a287_0x5297(){const _0xa6e396=['CDN\x20请求失败:\x20','5iqMBxh','25622670nFydIX','/rules/rules.json','94087AojKXm','.cursor/rules','1445377OCKNSJ','5102100UcaKIg','../../templates/rules/lovrabet_rules.mdc.tpl','catch','application/json','6745818oAKUwu','content','本地模板文件不存在:\x20','1512692ujKwst','753RbpPjC','CDN\x20返回数据格式错误','3064cPUuvV','status','utf-8','168vDHKRD','lovrabet_rules.mdc','lastUpdated','agents.md','string'];a287_0x5297=function(){return _0xa6e396;};return a287_0x5297();}export function readLocalTemplate(){const _0x251a82=a287_0xd8a3e4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251a82(0x11a));throw new Error(_0x251a82(0x114)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x21dce2){const _0x36cde2=a287_0xd8a3e4,_0x54518f=await fetchRulesFromCDN()[_0x36cde2(0x129)](()=>null);let _0x2a5130;_0x54518f?(_0x2a5130=_0x54518f['content'],_0x54518f['lastUpdated']&&(_0x2a5130=appendUpdateTime(_0x2a5130,_0x54518f[_0x36cde2(0x11d)]))):_0x2a5130=readLocalTemplate();const _0x3f486e=dirname(_0x21dce2);!existsSync(_0x3f486e)&&mkdirSync(_0x3f486e,{'recursive':!![]}),writeFileSync(_0x21dce2,_0x2a5130,_0x36cde2(0x11a));}export async function copyRulesToCursor(_0x4b1a70){const _0x54b90f=a287_0xd8a3e4,_0x4db0f2=join(_0x4b1a70,_0x54b90f(0x125)),_0x585177=join(_0x4db0f2,_0x54b90f(0x11c));if(existsSync(_0x585177))return![];return await writeRulesFile(_0x585177),!![];}export async function copyRulesToAgentsMd(_0x3d9985){const _0x188366=a287_0xd8a3e4,_0x138006=join(_0x3d9985,_0x188366(0x11e));if(existsSync(_0x138006))return![];return await writeRulesFile(_0x138006),!![];}
1
+ (function(_0x132ed1,_0xce84b9){const _0x3c6905=a287_0x40c2,_0x9d31f4=_0x132ed1();while(!![]){try{const _0x1d47e9=parseInt(_0x3c6905(0xa3))/0x1*(parseInt(_0x3c6905(0x9b))/0x2)+-parseInt(_0x3c6905(0xa8))/0x3+-parseInt(_0x3c6905(0x9c))/0x4*(parseInt(_0x3c6905(0xab))/0x5)+-parseInt(_0x3c6905(0x95))/0x6*(-parseInt(_0x3c6905(0x99))/0x7)+-parseInt(_0x3c6905(0xa4))/0x8*(parseInt(_0x3c6905(0xa7))/0x9)+-parseInt(_0x3c6905(0xa9))/0xa+parseInt(_0x3c6905(0x9d))/0xb;if(_0x1d47e9===_0xce84b9)break;else _0x9d31f4['push'](_0x9d31f4['shift']());}catch(_0x40bb66){_0x9d31f4['push'](_0x9d31f4['shift']());}}}(a287_0x3d19,0x7a2bc));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x21f23a=a287_0x40c2,_0x19b8e3=getTemplateBaseUrl();return _0x19b8e3+_0x21f23a(0x9f);}function a287_0x40c2(_0x165840,_0x337f11){_0x165840=_0x165840-0x95;const _0x3d1927=a287_0x3d19();let _0x40c29d=_0x3d1927[_0x165840];return _0x40c29d;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x50b73f=a287_0x40c2,_0x20c789=getRulesCdnUrl(),_0x72ec9a=await fetch(_0x20c789,{'headers':{'Accept':'application/json'}});if(!_0x72ec9a['ok'])throw new Error(_0x50b73f(0xa6)+_0x72ec9a['status']+'\x20'+_0x72ec9a[_0x50b73f(0x98)]);const _0x51f21e=await _0x72ec9a[_0x50b73f(0xa0)]();if(!_0x51f21e[_0x50b73f(0xa2)]||typeof _0x51f21e[_0x50b73f(0xa2)]!==_0x50b73f(0xaa))throw new Error(_0x50b73f(0x9a));return _0x51f21e;}export async function getRulesContent(){const _0x48115f=a287_0x40c2;try{const _0x15de49=await fetchRulesFromCDN();return _0x15de49[_0x48115f(0xa2)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x44cad2=a287_0x40c2;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x44cad2(0x97));throw new Error(_0x44cad2(0x9e)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5c07a0){const _0x2ae03b=a287_0x40c2,_0x1fc5ad=await fetchRulesFromCDN()[_0x2ae03b(0x96)](()=>null);let _0x5efe55;_0x1fc5ad?(_0x5efe55=_0x1fc5ad[_0x2ae03b(0xa2)],_0x1fc5ad[_0x2ae03b(0xa5)]&&(_0x5efe55=appendUpdateTime(_0x5efe55,_0x1fc5ad[_0x2ae03b(0xa5)]))):_0x5efe55=readLocalTemplate();const _0x4a9fc1=dirname(_0x5c07a0);!existsSync(_0x4a9fc1)&&mkdirSync(_0x4a9fc1,{'recursive':!![]}),writeFileSync(_0x5c07a0,_0x5efe55,'utf-8');}export async function copyRulesToCursor(_0x144698){const _0x2d76ff=a287_0x40c2,_0x480fd5=join(_0x144698,'.cursor/rules'),_0x67df2d=join(_0x480fd5,_0x2d76ff(0xa1));if(existsSync(_0x67df2d))return![];return await writeRulesFile(_0x67df2d),!![];}export async function copyRulesToAgentsMd(_0x4aff76){const _0x41956c=a287_0x40c2,_0x4cd68a=join(_0x4aff76,_0x41956c(0xac));if(existsSync(_0x4cd68a))return![];return await writeRulesFile(_0x4cd68a),!![];}function a287_0x3d19(){const _0x2c3d20=['json','lovrabet_rules.mdc','content','1ENUSKa','22744NZgEqF','lastUpdated','CDN\x20请求失败:\x20','2601cOBrji','151527bYVeiZ','7771900XYwOXb','string','5pCERJk','agents.md','12JOAuQc','catch','utf-8','statusText','341957bxcESK','CDN\x20返回数据格式错误','1235372eXBnvk','345028nyVBYR','16726677wyYFYa','本地模板文件不存在:\x20','/rules/rules.json'];a287_0x3d19=function(){return _0x2c3d20;};return a287_0x3d19();}
@@ -1 +1 @@
1
- export function sleep(_0xe7ab60){return new Promise(_0x40c9ba=>setTimeout(_0x40c9ba,_0xe7ab60));}
1
+ export function sleep(_0x2c1c95){return new Promise(_0x1554ad=>setTimeout(_0x1554ad,_0x2c1c95));}