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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/README.md +4 -4
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.d.ts +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -1
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/init/index.js +1 -1
  101. package/lib/commands/issue/index.js +1 -1
  102. package/lib/commands/issue/nudge.js +1 -1
  103. package/lib/commands/issue/report.js +1 -1
  104. package/lib/commands/issue/shared.js +1 -1
  105. package/lib/commands/kb/create.js +1 -1
  106. package/lib/commands/kb/delete.js +1 -1
  107. package/lib/commands/kb/detail.js +1 -1
  108. package/lib/commands/kb/index.js +1 -1
  109. package/lib/commands/kb/list.js +1 -1
  110. package/lib/commands/kb/search.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/menu/visibility-update.js +1 -1
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +1 -1
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.d.ts +1 -1
  226. package/lib/core/bff/config.js +1 -1
  227. package/lib/core/bff/file-system.d.ts +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.d.ts +1 -1
  230. package/lib/core/bff/hash.js +1 -1
  231. package/lib/core/bff/lock.d.ts +2 -2
  232. package/lib/core/bff/lock.js +1 -1
  233. package/lib/core/bff/types.d.ts +1 -1
  234. package/lib/core/bff/utils.d.ts +2 -2
  235. package/lib/core/bff/utils.js +1 -1
  236. package/lib/core/db-resolver.js +1 -1
  237. package/lib/core/page/file-system.js +1 -1
  238. package/lib/core/page/hash.js +1 -1
  239. package/lib/core/page/lock.js +1 -1
  240. package/lib/core/sql-index-auditor.js +1 -1
  241. package/lib/core/sql-sync/config.js +1 -1
  242. package/lib/core/sql-sync/file-system.js +1 -1
  243. package/lib/core/sql-sync/hash.js +1 -1
  244. package/lib/core/sql-sync/lock.js +1 -1
  245. package/lib/core/sql-sync/utils.js +1 -1
  246. package/lib/core/sql-validator.js +1 -1
  247. package/lib/errors.js +1 -1
  248. package/lib/framework/build-all-flags.js +1 -1
  249. package/lib/framework/error-output.js +1 -1
  250. package/lib/framework/explicit-yes.js +1 -1
  251. package/lib/framework/flags.js +1 -1
  252. package/lib/framework/help.js +1 -1
  253. package/lib/framework/index.js +1 -1
  254. package/lib/framework/output.js +1 -1
  255. package/lib/framework/response.js +1 -1
  256. package/lib/framework/runner-alias.js +1 -1
  257. package/lib/framework/runner.js +1 -1
  258. package/lib/framework/schema-export.js +1 -1
  259. package/lib/framework/types.js +1 -1
  260. package/lib/generated/build-info.d.ts +4 -4
  261. package/lib/generated/build-info.js +1 -1
  262. package/lib/help.js +1 -1
  263. package/lib/postinstall.js +1 -1
  264. package/lib/runtime/confirmation.js +1 -1
  265. package/lib/runtime/event.js +1 -1
  266. package/lib/runtime/index.js +1 -1
  267. package/lib/runtime/queue.js +1 -1
  268. package/lib/runtime/resolve.js +1 -1
  269. package/lib/skills/builtin-skill.js +1 -1
  270. package/lib/skills/main.js +1 -1
  271. package/lib/skills/npx-skills-add.js +1 -1
  272. package/lib/skills/skill-presence.js +1 -1
  273. package/lib/telemetry/cli-command-trace.js +1 -1
  274. package/lib/telemetry/cli-help-trace.js +1 -1
  275. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  276. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  277. package/lib/telemetry/send-cli-trace-log.js +1 -1
  278. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  279. package/lib/utils/ai_config.js +1 -1
  280. package/lib/utils/apply-jq-filter.js +1 -1
  281. package/lib/utils/cdn-config.js +1 -1
  282. package/lib/utils/check-sdk-version.js +1 -1
  283. package/lib/utils/cli-version-check.js +1 -1
  284. package/lib/utils/cli-version-policy.js +1 -1
  285. package/lib/utils/config.js +1 -1
  286. package/lib/utils/entity-with-id.js +1 -1
  287. package/lib/utils/file-utils.js +1 -1
  288. package/lib/utils/guides-cdn.js +1 -1
  289. package/lib/utils/http-client.js +1 -1
  290. package/lib/utils/is-non-interactive.js +1 -1
  291. package/lib/utils/logger.js +1 -1
  292. package/lib/utils/params.js +1 -1
  293. package/lib/utils/platform.js +1 -1
  294. package/lib/utils/rules-cdn.js +1 -1
  295. package/lib/utils/sleep.js +1 -1
  296. package/lib/utils/template-replacer.js +1 -1
  297. package/lib/utils/update-notice.js +1 -1
  298. package/lib/utils/version.js +1 -1
  299. package/lib/utils/with-active-cookie.js +1 -1
  300. package/lib/utils/write-cli-side-channel.js +1 -1
  301. package/package.json +2 -2
  302. package/sidecar/flags.json +1 -1
  303. package/skills/rabetbase/SKILL.md +28 -28
  304. package/skills/rabetbase/guides/backend-function.md +30 -30
  305. package/skills/rabetbase/guides/best-practices.md +8 -8
  306. package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
  307. package/skills/rabetbase/guides/conflict-detection.md +3 -3
  308. package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
  309. package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
  310. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
  311. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
  312. package/skills/rabetbase/guides/troubleshooting.md +6 -6
  313. package/skills/rabetbase/guides/typescript-sdk.md +10 -10
  314. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
  315. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
  316. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  317. package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
  318. package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
  320. package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
  321. package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
  322. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
  323. package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
  325. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
  327. package/skills/rabetbase.manifest.json +3 -3
  328. package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
  329. package/templates/skill/SKILL.md.tpl +12 -12
@@ -1 +1 @@
1
- function a267_0x3598(){const _0x324c57=['3273699MbASfc','2957572TcbYJE','60ZhcQDg','[REDACTED]','error','message','entries','303105sUyQWg','service','durationMs','flags','80KuQRwF','3cAsefQ','9oSTlWF','rabetbase.command','34sQbhHo','5523590hJgyOl','test','5bNKTJt','821052hTgPOF','311878NcRzuH','23803RJZktu'];a267_0x3598=function(){return _0x324c57;};return a267_0x3598();}(function(_0xed63a8,_0x7c9a69){const _0x1c7d4e=a267_0x13a4,_0x5e643d=_0xed63a8();while(!![]){try{const _0x1e5988=-parseInt(_0x1c7d4e(0x16e))/0x1*(-parseInt(_0x1c7d4e(0x168))/0x2)+-parseInt(_0x1c7d4e(0x165))/0x3*(-parseInt(_0x1c7d4e(0x170))/0x4)+parseInt(_0x1c7d4e(0x16b))/0x5*(-parseInt(_0x1c7d4e(0x16c))/0x6)+-parseInt(_0x1c7d4e(0x16d))/0x7*(parseInt(_0x1c7d4e(0x164))/0x8)+parseInt(_0x1c7d4e(0x166))/0x9*(-parseInt(_0x1c7d4e(0x169))/0xa)+parseInt(_0x1c7d4e(0x176))/0xb*(parseInt(_0x1c7d4e(0x171))/0xc)+parseInt(_0x1c7d4e(0x16f))/0xd;if(_0x1e5988===_0x7c9a69)break;else _0x5e643d['push'](_0x5e643d['shift']());}catch(_0x32c459){_0x5e643d['push'](_0x5e643d['shift']());}}}(a267_0x3598,0x61635));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x513a67){const _0x3e299a=a267_0x13a4;return SENSITIVE_PATTERNS['some'](_0x550111=>_0x550111[_0x3e299a(0x16a)](_0x513a67));}function a267_0x13a4(_0x2a995c,_0xabdd9){_0x2a995c=_0x2a995c-0x163;const _0x3598b1=a267_0x3598();let _0x13a40b=_0x3598b1[_0x2a995c];return _0x13a40b;}function sanitizeFlags(_0x547f70){const _0x4ab140=a267_0x13a4,_0x4d1b0d={};for(const [_0x76d1bf,_0x59b1c2]of Object[_0x4ab140(0x175)](_0x547f70)){isSensitiveKey(_0x76d1bf)?_0x4d1b0d[_0x76d1bf]=_0x59b1c2!=null&&_0x59b1c2!==''?_0x4ab140(0x172):_0x59b1c2:_0x4d1b0d[_0x76d1bf]=_0x59b1c2;}return _0x4d1b0d;}export async function reportCommandTrace(_0x548fe4){const _0x50002a=a267_0x13a4;try{const _0xd8f1c=sanitizeFlags(_0x548fe4[_0x50002a(0x163)]);await sendCliTraceLog({'spanName':_0x50002a(0x167),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x548fe4[_0x50002a(0x177)],'command.name':_0x548fe4['command'],'command.flags':JSON['stringify'](_0xd8f1c),..._0x548fe4[_0x50002a(0x178)]!=null?{'command.duration_ms':_0x548fe4[_0x50002a(0x178)]}:{},..._0x548fe4[_0x50002a(0x173)]?{'command.error':_0x548fe4[_0x50002a(0x173)]instanceof Error?_0x548fe4['error'][_0x50002a(0x174)]:String(_0x548fe4[_0x50002a(0x173)])}:{}}});}catch{}}
1
+ (function(_0x590895,_0x25c861){const _0x35a620=a267_0x64ba,_0x9f59ad=_0x590895();while(!![]){try{const _0x41a49a=parseInt(_0x35a620(0x1bc))/0x1+-parseInt(_0x35a620(0x1c4))/0x2+-parseInt(_0x35a620(0x1bd))/0x3+-parseInt(_0x35a620(0x1b8))/0x4+-parseInt(_0x35a620(0x1bf))/0x5+-parseInt(_0x35a620(0x1b7))/0x6+-parseInt(_0x35a620(0x1c5))/0x7*(-parseInt(_0x35a620(0x1b5))/0x8);if(_0x41a49a===_0x25c861)break;else _0x9f59ad['push'](_0x9f59ad['shift']());}catch(_0x1b196c){_0x9f59ad['push'](_0x9f59ad['shift']());}}}(a267_0x5d71,0x4d8f0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a267_0x5d71(){const _0x4b12f9=['durationMs','61206ZWoHsj','565089KFWNgx','some','1234305aILdmG','message','[REDACTED]','service','error','800174YKGRNS','497REJXHw','232072cDWPCn','test','3759474yzzMmd','1365100sDZvzg','stringify','rabetbase.command'];a267_0x5d71=function(){return _0x4b12f9;};return a267_0x5d71();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x23a53a){const _0x39ecc7=a267_0x64ba;return SENSITIVE_PATTERNS[_0x39ecc7(0x1be)](_0x47a7a3=>_0x47a7a3[_0x39ecc7(0x1b6)](_0x23a53a));}function sanitizeFlags(_0x4efcea){const _0x3b3905=a267_0x64ba,_0x218c58={};for(const [_0x2b360d,_0x157b80]of Object['entries'](_0x4efcea)){isSensitiveKey(_0x2b360d)?_0x218c58[_0x2b360d]=_0x157b80!=null&&_0x157b80!==''?_0x3b3905(0x1c1):_0x157b80:_0x218c58[_0x2b360d]=_0x157b80;}return _0x218c58;}function a267_0x64ba(_0x3ad0b1,_0x52f98c){_0x3ad0b1=_0x3ad0b1-0x1b5;const _0x5d7128=a267_0x5d71();let _0x64bade=_0x5d7128[_0x3ad0b1];return _0x64bade;}export async function reportCommandTrace(_0x139bef){const _0x3e71c6=a267_0x64ba;try{const _0x38a4ef=sanitizeFlags(_0x139bef['flags']);await sendCliTraceLog({'spanName':_0x3e71c6(0x1ba),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x139bef[_0x3e71c6(0x1c2)],'command.name':_0x139bef['command'],'command.flags':JSON[_0x3e71c6(0x1b9)](_0x38a4ef),..._0x139bef[_0x3e71c6(0x1bb)]!=null?{'command.duration_ms':_0x139bef[_0x3e71c6(0x1bb)]}:{},..._0x139bef['error']?{'command.error':_0x139bef['error']instanceof Error?_0x139bef['error'][_0x3e71c6(0x1c0)]:String(_0x139bef[_0x3e71c6(0x1c3)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a268_0x45e6(){var _0x48c829=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','503888DNDAAO','368FtWiRS','83755zrFHax','7208874mTnNhm','1564835eiyIbs','56754OyDXDs','787426wOUvqg','6TnvEQG','2573770THqmDr','service','124hTniui','cli.help'];a268_0x45e6=function(){return _0x48c829;};return a268_0x45e6();}function a268_0x3350(_0x4dd2cd,_0x5eb974){_0x4dd2cd=_0x4dd2cd-0x82;var _0x45e6bb=a268_0x45e6();var _0x335062=_0x45e6bb[_0x4dd2cd];return _0x335062;}(function(_0x349361,_0x14263f){var _0x1fe33a=a268_0x3350,_0x3d2968=_0x349361();while(!![]){try{var _0x73617f=-parseInt(_0x1fe33a(0x85))/0x1+-parseInt(_0x1fe33a(0x89))/0x2*(-parseInt(_0x1fe33a(0x84))/0x3)+parseInt(_0x1fe33a(0x8c))/0x4+parseInt(_0x1fe33a(0x83))/0x5*(-parseInt(_0x1fe33a(0x86))/0x6)+-parseInt(_0x1fe33a(0x8e))/0x7*(parseInt(_0x1fe33a(0x8d))/0x8)+parseInt(_0x1fe33a(0x82))/0x9+parseInt(_0x1fe33a(0x87))/0xa;if(_0x73617f===_0x14263f)break;else _0x3d2968['push'](_0x3d2968['shift']());}catch(_0x3a14e8){_0x3d2968['push'](_0x3d2968['shift']());}}}(a268_0x45e6,0xac7a4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x17df0b,_0x2f0c45){var _0x41b0f9=a268_0x3350;try{await sendCliTraceLog({'spanName':_0x41b0f9(0x8a),'logData':{'rabetbase.help.kind':_0x17df0b,..._0x2f0c45?.[_0x41b0f9(0x88)]&&{'rabetbase.help.service':_0x2f0c45['service']}}});}catch(_0x50a5d3){console['error'](_0x41b0f9(0x8b),_0x50a5d3);}}
1
+ function a268_0x6670(){var _0xfeff14=['error','3rNEwKp','5890vsCUMb','service','cli.help','4018743dgEKwm','16522sDAiNU','15787QccDNA','8jjlPrH','3121916FMNjvN','1258621FuDWOe','Failed\x20to\x20report\x20CLI\x20help\x20trace:','366780LCJKcz','30aKoVVL','66oJWZYy','17796000XuNgqL'];a268_0x6670=function(){return _0xfeff14;};return a268_0x6670();}(function(_0x31848c,_0x18d897){var _0x21dc52=a268_0x4c9c,_0x32d9fc=_0x31848c();while(!![]){try{var _0x4bf1e6=-parseInt(_0x21dc52(0x1a6))/0x1*(-parseInt(_0x21dc52(0x19d))/0x2)+-parseInt(_0x21dc52(0x1a0))/0x3*(-parseInt(_0x21dc52(0x1a8))/0x4)+-parseInt(_0x21dc52(0x1ab))/0x5+parseInt(_0x21dc52(0x19c))/0x6*(-parseInt(_0x21dc52(0x1a9))/0x7)+-parseInt(_0x21dc52(0x1a7))/0x8*(parseInt(_0x21dc52(0x1a4))/0x9)+-parseInt(_0x21dc52(0x1a1))/0xa*(parseInt(_0x21dc52(0x1a5))/0xb)+parseInt(_0x21dc52(0x19e))/0xc;if(_0x4bf1e6===_0x18d897)break;else _0x32d9fc['push'](_0x32d9fc['shift']());}catch(_0x1ce933){_0x32d9fc['push'](_0x32d9fc['shift']());}}}(a268_0x6670,0x7566a));function a268_0x4c9c(_0x562ea2,_0x5a75c2){_0x562ea2=_0x562ea2-0x19c;var _0x667038=a268_0x6670();var _0x4c9cc1=_0x667038[_0x562ea2];return _0x4c9cc1;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x45ab2d,_0x4196a3){var _0x232024=a268_0x4c9c;try{await sendCliTraceLog({'spanName':_0x232024(0x1a3),'logData':{'rabetbase.help.kind':_0x45ab2d,..._0x4196a3?.['service']&&{'rabetbase.help.service':_0x4196a3[_0x232024(0x1a2)]}}});}catch(_0x5108b6){console[_0x232024(0x19f)](_0x232024(0x1aa),_0x5108b6);}}
@@ -1 +1 @@
1
- function a269_0xe80b(_0x5cc3c6,_0x5e53dc){_0x5cc3c6=_0x5cc3c6-0x1a9;const _0x57ea76=a269_0x57ea();let _0xe80b3a=_0x57ea76[_0x5cc3c6];return _0xe80b3a;}(function(_0x14ea85,_0x3e7688){const _0x20ea88=a269_0xe80b,_0x283363=_0x14ea85();while(!![]){try{const _0x5a0800=-parseInt(_0x20ea88(0x1af))/0x1*(-parseInt(_0x20ea88(0x1b7))/0x2)+-parseInt(_0x20ea88(0x1b3))/0x3+-parseInt(_0x20ea88(0x1ad))/0x4*(-parseInt(_0x20ea88(0x1a9))/0x5)+-parseInt(_0x20ea88(0x1aa))/0x6*(-parseInt(_0x20ea88(0x1b4))/0x7)+-parseInt(_0x20ea88(0x1b0))/0x8+parseInt(_0x20ea88(0x1b2))/0x9+-parseInt(_0x20ea88(0x1ab))/0xa;if(_0x5a0800===_0x3e7688)break;else _0x283363['push'](_0x283363['shift']());}catch(_0x65d37){_0x283363['push'](_0x283363['shift']());}}}(a269_0x57ea,0x7ee3c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a269_0x57ea(){const _0x151291=['tenant','7064KliHmS','production','13iCciem','1276104skjVOj','nickname','2677779nLLedR','1223526MxttuC','7AlMsWx','tenant_code','username','143482KbETVY','290wFIbFS','6077538HtdqoH','12584200neOYXW'];a269_0x57ea=function(){return _0x151291;};return a269_0x57ea();}export async function ensureCliOtelTraceConfig(){const _0x57fab3=a269_0xe80b,_0x3851b9=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x7c4ff7=_0x3851b9?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x57fab3(0x1ae))}),setUserContext({'id':_0x7c4ff7?.['id'],'username':_0x7c4ff7?.[_0x57fab3(0x1b6)],'nickname':_0x7c4ff7?.[_0x57fab3(0x1b1)],'email':_0x7c4ff7?.['email'],'tenantCode':_0x7c4ff7?.[_0x57fab3(0x1ac)]?.[_0x57fab3(0x1b5)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3851b9;}
1
+ function a269_0xb5f0(){const _0x17b494=['8gOxjRH','tenant_code','production','username','tenant','11085705YpFHDV','12SgBRFM','4546892NwhnVj','email','unknown','nickname','1947890uGNEhO','3867516zcVgPM','daily','34803QoljJt','388470HdEMMV','256980vndvEg'];a269_0xb5f0=function(){return _0x17b494;};return a269_0xb5f0();}(function(_0x309697,_0x340810){const _0x4302fb=a269_0x20eb,_0x33481a=_0x309697();while(!![]){try{const _0x2d7baf=-parseInt(_0x4302fb(0x150))/0x1+-parseInt(_0x4302fb(0x151))/0x2+-parseInt(_0x4302fb(0x14f))/0x3*(-parseInt(_0x4302fb(0x158))/0x4)+-parseInt(_0x4302fb(0x15d))/0x5+-parseInt(_0x4302fb(0x15e))/0x6+parseInt(_0x4302fb(0x159))/0x7*(parseInt(_0x4302fb(0x152))/0x8)+parseInt(_0x4302fb(0x157))/0x9;if(_0x2d7baf===_0x340810)break;else _0x33481a['push'](_0x33481a['shift']());}catch(_0x480a56){_0x33481a['push'](_0x33481a['shift']());}}}(a269_0xb5f0,0x591b4));function a269_0x20eb(_0x9779ff,_0x215fe4){_0x9779ff=_0x9779ff-0x14f;const _0xb5f0ad=a269_0xb5f0();let _0x20eb23=_0xb5f0ad[_0x9779ff];return _0x20eb23;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x456122=a269_0x20eb,_0x238b30=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2c994c=_0x238b30?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x456122(0x15b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x456122(0x15f):_0x456122(0x154))}),setUserContext({'id':_0x2c994c?.['id'],'username':_0x2c994c?.[_0x456122(0x155)],'nickname':_0x2c994c?.[_0x456122(0x15c)],'email':_0x2c994c?.[_0x456122(0x15a)],'tenantCode':_0x2c994c?.[_0x456122(0x156)]?.[_0x456122(0x153)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x238b30;}
@@ -1 +1 @@
1
- (function(_0x4b849c,_0x5eb95b){const _0x4f9560=a270_0x266d,_0x5c8fb6=_0x4b849c();while(!![]){try{const _0x5e1530=parseInt(_0x4f9560(0x184))/0x1*(-parseInt(_0x4f9560(0x188))/0x2)+parseInt(_0x4f9560(0x18d))/0x3*(parseInt(_0x4f9560(0x183))/0x4)+-parseInt(_0x4f9560(0x18b))/0x5+parseInt(_0x4f9560(0x191))/0x6+parseInt(_0x4f9560(0x186))/0x7*(parseInt(_0x4f9560(0x189))/0x8)+-parseInt(_0x4f9560(0x192))/0x9*(parseInt(_0x4f9560(0x18a))/0xa)+parseInt(_0x4f9560(0x182))/0xb*(parseInt(_0x4f9560(0x18e))/0xc);if(_0x5e1530===_0x5eb95b)break;else _0x5c8fb6['push'](_0x5c8fb6['shift']());}catch(_0x5a2540){_0x5c8fb6['push'](_0x5c8fb6['shift']());}}}(a270_0x134b,0x791f9));function a270_0x266d(_0x4384b2,_0x426e5a){_0x4384b2=_0x4384b2-0x182;const _0x134bd1=a270_0x134b();let _0x266d12=_0x134bd1[_0x4384b2];return _0x266d12;}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;}export function registerOtelShutdownOnExit(){const _0x504b8d=a270_0x266d;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x568319=()=>{const _0x4d1608=a270_0x266d;void flushOtelNodeIfUsed()[_0x4d1608(0x185)](()=>process[_0x4d1608(0x190)](0x0));};process[_0x504b8d(0x187)](_0x504b8d(0x18c),_0x568319),process['once'](_0x504b8d(0x18f),_0x568319);}export async function exitWithOtelShutdown(_0x2d61fa){const _0x3376c5=a270_0x266d;await flushOtelNodeIfUsed(),process[_0x3376c5(0x190)](_0x2d61fa);}function a270_0x134b(){const _0x2fb61a=['20paMOvz','2875870UQCkvR','SIGINT','44391ZHxNCi','927528mKUYxd','SIGTERM','exit','1562910BazyTX','417492ymlNnP','154STdQeS','8CeXLmo','4631wpnpWD','then','322OPzMmW','once','212WGWCMF','49176nIdGGN'];a270_0x134b=function(){return _0x2fb61a;};return a270_0x134b();}
1
+ (function(_0x1f024d,_0x4b7934){const _0x471e96=a270_0x2581,_0x322b1c=_0x1f024d();while(!![]){try{const _0x1a7ca3=-parseInt(_0x471e96(0x1cc))/0x1+-parseInt(_0x471e96(0x1d0))/0x2+-parseInt(_0x471e96(0x1ce))/0x3*(parseInt(_0x471e96(0x1ca))/0x4)+parseInt(_0x471e96(0x1cd))/0x5+parseInt(_0x471e96(0x1d2))/0x6*(parseInt(_0x471e96(0x1cb))/0x7)+parseInt(_0x471e96(0x1c7))/0x8+parseInt(_0x471e96(0x1c8))/0x9;if(_0x1a7ca3===_0x4b7934)break;else _0x322b1c['push'](_0x322b1c['shift']());}catch(_0x59e4ee){_0x322b1c['push'](_0x322b1c['shift']());}}}(a270_0x2ad3,0x33a77));function a270_0x2ad3(){const _0x141203=['713447qJODRs','283784otsBhe','2006165XaymlS','7203YSKqHP','then','270104BtgpUN','once','6cRdhCU','exit','SIGINT','SIGTERM','1457408oGpOtX','499743vqtBuB','beforeExit','184RQUfMv'];a270_0x2ad3=function(){return _0x141203;};return a270_0x2ad3();}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;}export function registerOtelShutdownOnExit(){const _0x4446c7=a270_0x2581;process[_0x4446c7(0x1d1)](_0x4446c7(0x1c9),()=>{void flushOtelNodeIfUsed();});const _0x2e96c0=()=>{const _0x35b637=_0x4446c7;void flushOtelNodeIfUsed()[_0x35b637(0x1cf)](()=>process['exit'](0x0));};process[_0x4446c7(0x1d1)](_0x4446c7(0x1c5),_0x2e96c0),process[_0x4446c7(0x1d1)](_0x4446c7(0x1c6),_0x2e96c0);}function a270_0x2581(_0x4648b4,_0x257ec3){_0x4648b4=_0x4648b4-0x1c4;const _0x2ad38d=a270_0x2ad3();let _0x2581e8=_0x2ad38d[_0x4648b4];return _0x2581e8;}export async function exitWithOtelShutdown(_0x51547b){const _0x125559=a270_0x2581;await flushOtelNodeIfUsed(),process[_0x125559(0x1c4)](_0x51547b);}
@@ -1 +1 @@
1
- const a271_0xf30671=a271_0xc54b;function a271_0xc54b(_0x33592b,_0x14cd6c){_0x33592b=_0x33592b-0x162;const _0x3ca976=a271_0x3ca9();let _0xc54b43=_0x3ca976[_0x33592b];return _0xc54b43;}(function(_0x688635,_0x5ac6eb){const _0x5cc386=a271_0xc54b,_0x1b0de0=_0x688635();while(!![]){try{const _0x47d550=parseInt(_0x5cc386(0x163))/0x1+-parseInt(_0x5cc386(0x168))/0x2+-parseInt(_0x5cc386(0x16a))/0x3*(parseInt(_0x5cc386(0x169))/0x4)+-parseInt(_0x5cc386(0x167))/0x5*(parseInt(_0x5cc386(0x171))/0x6)+parseInt(_0x5cc386(0x164))/0x7+parseInt(_0x5cc386(0x166))/0x8*(parseInt(_0x5cc386(0x16e))/0x9)+parseInt(_0x5cc386(0x16d))/0xa;if(_0x47d550===_0x5ac6eb)break;else _0x1b0de0['push'](_0x1b0de0['shift']());}catch(_0x1caf0d){_0x1b0de0['push'](_0x1b0de0['shift']());}}}(a271_0x3ca9,0x99ffc));function a271_0x3ca9(){const _0x5795a8=['rabetbase-cli','12568smzFBv','15QoKLrj','1146678HILfzj','304pkHRYf','16143fMDCAY','traceName','spanName','4296600vUSXJa','2817KzsKeg','manual','traceparent','1584750BVNyRh','version','1053241Lvvpvn','3015782jyjUmt'];a271_0x3ca9=function(){return _0x5795a8;};return a271_0x3ca9();}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=a271_0xf30671(0x165);export async function sendCliTraceLog(_0x44e117){const _0x4c01e2=a271_0xf30671;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x44e117[_0x4c01e2(0x16b)]??DEFAULT_TRACE_NAME,'version':_0x44e117[_0x4c01e2(0x162)]??getCliVersion(),'spanName':_0x44e117[_0x4c01e2(0x16c)],'eventType':_0x4c01e2(0x16f),'logData':_0x44e117['logData'],..._0x44e117[_0x4c01e2(0x170)]&&{'traceparent':_0x44e117[_0x4c01e2(0x170)]}});}
1
+ const a271_0x872484=a271_0x4a77;(function(_0x4156b2,_0x531247){const _0x2136f6=a271_0x4a77,_0x4c37dd=_0x4156b2();while(!![]){try{const _0x399cec=-parseInt(_0x2136f6(0xd3))/0x1+parseInt(_0x2136f6(0xe2))/0x2+-parseInt(_0x2136f6(0xda))/0x3+-parseInt(_0x2136f6(0xdd))/0x4+parseInt(_0x2136f6(0xd2))/0x5*(parseInt(_0x2136f6(0xdf))/0x6)+-parseInt(_0x2136f6(0xdc))/0x7*(parseInt(_0x2136f6(0xe0))/0x8)+parseInt(_0x2136f6(0xd9))/0x9*(parseInt(_0x2136f6(0xde))/0xa);if(_0x399cec===_0x531247)break;else _0x4c37dd['push'](_0x4c37dd['shift']());}catch(_0x32cd8e){_0x4c37dd['push'](_0x4c37dd['shift']());}}}(a271_0x434e,0xdfbc6));function a271_0x4a77(_0x3005d6,_0x461886){_0x3005d6=_0x3005d6-0xd2;const _0x434eb2=a271_0x434e();let _0x4a77a5=_0x434eb2[_0x3005d6];return _0x4a77a5;}function a271_0x434e(){const _0x1ebe1e=['3644760cURdwa','8532855RyldVU','600093AGyeGd','manual','spanName','version','traceName','rabetbase-cli','9ODTfIK','1949190abZQQX','traceparent','70NHFeSV','4894820zcjLnv','3263090cVbygL','6hegwvG','372248ZaiLei','logData'];a271_0x434e=function(){return _0x1ebe1e;};return a271_0x434e();}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=a271_0x872484(0xd8);export async function sendCliTraceLog(_0x6c4a2c){const _0x801f34=a271_0x872484;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x6c4a2c[_0x801f34(0xd7)]??DEFAULT_TRACE_NAME,'version':_0x6c4a2c[_0x801f34(0xd6)]??getCliVersion(),'spanName':_0x6c4a2c[_0x801f34(0xd5)],'eventType':_0x801f34(0xd4),'logData':_0x6c4a2c[_0x801f34(0xe1)],..._0x6c4a2c[_0x801f34(0xdb)]&&{'traceparent':_0x6c4a2c[_0x801f34(0xdb)]}});}
@@ -1 +1 @@
1
- const a272_0x4e57ba=a272_0x2180;(function(_0xa520,_0x2af728){const _0x5c3f05=a272_0x2180,_0x2c07c9=_0xa520();while(!![]){try{const _0x14cfe7=-parseInt(_0x5c3f05(0x13c))/0x1*(-parseInt(_0x5c3f05(0x13f))/0x2)+parseInt(_0x5c3f05(0x143))/0x3*(-parseInt(_0x5c3f05(0x13a))/0x4)+parseInt(_0x5c3f05(0x140))/0x5+-parseInt(_0x5c3f05(0x142))/0x6*(parseInt(_0x5c3f05(0x138))/0x7)+parseInt(_0x5c3f05(0x13b))/0x8+-parseInt(_0x5c3f05(0x146))/0x9+parseInt(_0x5c3f05(0x145))/0xa;if(_0x14cfe7===_0x2af728)break;else _0x2c07c9['push'](_0x2c07c9['shift']());}catch(_0x5f546f){_0x2c07c9['push'](_0x2c07c9['shift']());}}}(a272_0x4db0,0x89d3c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a272_0x4db0(){const _0x5d84a3=['7734096GBtzxm','truncated','sanitize','378NGYnsJ','platform-issue-log-collect','12zxutKN','7777712tnCWAK','8UqYwKH','join','redactionCount','261766KrTZhm','1311570gMDCrH','originalBytes','69306IyblCE','1056285dTmgtj','description','8223310dOYwVi'];a272_0x4db0=function(){return _0x5d84a3;};return a272_0x4db0();}export const PLATFORM_ISSUE_TRACE_NAME=a272_0x4e57ba(0x139);function a272_0x2180(_0x8272a8,_0x258f29){_0x8272a8=_0x8272a8-0x137;const _0x4db0db=a272_0x4db0();let _0x218062=_0x4db0db[_0x8272a8];return _0x218062;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x2a6647){const _0x12813c=a272_0x4e57ba;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2a6647['title'],'issue.description':_0x2a6647[_0x12813c(0x144)],..._0x2a6647[_0x12813c(0x137)]?{'issue.description_original_bytes':_0x2a6647[_0x12813c(0x137)][_0x12813c(0x141)],'issue.description_truncated':_0x2a6647[_0x12813c(0x137)][_0x12813c(0x147)],'issue.description_redactions':_0x2a6647[_0x12813c(0x137)][_0x12813c(0x13e)],'issue.description_redaction_kinds':_0x2a6647[_0x12813c(0x137)]['redactionKinds'][_0x12813c(0x13d)](',')}:{}}});}
1
+ const a272_0x350824=a272_0x23db;(function(_0x28b6cc,_0x1558ff){const _0x159363=a272_0x23db,_0x346355=_0x28b6cc();while(!![]){try{const _0x5b5281=-parseInt(_0x159363(0x19f))/0x1+parseInt(_0x159363(0x1aa))/0x2*(parseInt(_0x159363(0x1a0))/0x3)+-parseInt(_0x159363(0x1a6))/0x4*(-parseInt(_0x159363(0x1a8))/0x5)+parseInt(_0x159363(0x1ae))/0x6*(-parseInt(_0x159363(0x19e))/0x7)+parseInt(_0x159363(0x1a3))/0x8*(-parseInt(_0x159363(0x19d))/0x9)+parseInt(_0x159363(0x1a2))/0xa+parseInt(_0x159363(0x1a4))/0xb;if(_0x5b5281===_0x1558ff)break;else _0x346355['push'](_0x346355['shift']());}catch(_0x1170d4){_0x346355['push'](_0x346355['shift']());}}}(a272_0x1e2d,0x69630));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a272_0x350824(0x1a9);function a272_0x23db(_0x20f06d,_0xaa2c1e){_0x20f06d=_0x20f06d-0x19d;const _0x1e2d27=a272_0x1e2d();let _0x23db5a=_0x1e2d27[_0x20f06d];return _0x23db5a;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a272_0x1e2d(){const _0x2a7ec9=['586430qwUMJO','14142OksFEL','sanitize','4973940uhdAcO','32HJZjSU','6617600yWqwxR','redactionCount','1379012SLyErT','truncated','5XkUlEA','platform-issue-log-collect','258aiIrPt','redactionKinds','join','originalBytes','4888482wBdIvX','492777QQEMyf','7EDSriT'];a272_0x1e2d=function(){return _0x2a7ec9;};return a272_0x1e2d();}export async function sendPlatformIssueCollectLog(_0x8e23b){const _0x16e923=a272_0x350824;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8e23b['title'],'issue.description':_0x8e23b['description'],..._0x8e23b[_0x16e923(0x1a1)]?{'issue.description_original_bytes':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1ad)],'issue.description_truncated':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1a7)],'issue.description_redactions':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1a5)],'issue.description_redaction_kinds':_0x8e23b['sanitize'][_0x16e923(0x1ab)][_0x16e923(0x1ac)](',')}:{}}});}
@@ -1 +1 @@
1
- const a274_0x773b71=a274_0x5a74;function a274_0x3da6(){const _0x1b0b2f=['Antigravity','4aLdEZk','.windsurf','codex','6jZrOXb','windsurf','Cline\x20IDE','45381IJlrqu','Antigravity\x20IDE','.codex/skills/lovrabet/SKILL.md','1974ZxXQJr','.codex','3624584yToozc','.agent/skills/lovrabet/SKILL.md','.claude','cline','.windsurf/workflows/rabetbase.md','.cline/skills/lovrabet/SKILL.md','qoder','88803JsjZxe','.trae/skills/lovrabet/SKILL.md','claude','cursor','.qoder','Codex\x20IDE','.qoder/skills/lovrabet/SKILL.md','Qoder\x20IDE','Trae','Codex','5618569jMVkWO','.codebuddy/skills/lovrabet/SKILL.md','trae','Windsurf','通用模板\x20-\x20兜底方案','529xpMjlx','OpenCode','Trae\x20IDE','其他\x20(通用模板)','.cursor/skills/rabetbase.md','.agent','2608075bljBAQ','opencode','Cline','SKILL.md.tpl','.opencode','Windsurf\x20IDE','1240526ZbwAKX','.cursor','CodeBuddy','10hJEsyE','.trae','CodeBuddy\x20IDE','.cursorrules','file','agent','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md'];a274_0x3da6=function(){return _0x1b0b2f;};return a274_0x3da6();}(function(_0x3a7ee8,_0x1bbdbe){const _0x48b98c=a274_0x5a74,_0x5f5db5=_0x3a7ee8();while(!![]){try{const _0x3dfc5c=parseInt(_0x48b98c(0x91))/0x1*(parseInt(_0x48b98c(0xb3))/0x2)+-parseInt(_0x48b98c(0xb0))/0x3*(-parseInt(_0x48b98c(0xaa))/0x4)+parseInt(_0x48b98c(0x97))/0x5+parseInt(_0x48b98c(0xad))/0x6*(parseInt(_0x48b98c(0x9d))/0x7)+-parseInt(_0x48b98c(0xb5))/0x8+parseInt(_0x48b98c(0xbc))/0x9+parseInt(_0x48b98c(0xa0))/0xa*(-parseInt(_0x48b98c(0x8c))/0xb);if(_0x3dfc5c===_0x1bbdbe)break;else _0x5f5db5['push'](_0x5f5db5['shift']());}catch(_0x53e64f){_0x5f5db5['push'](_0x5f5db5['shift']());}}}(a274_0x3da6,0x44df2));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a274_0x773b71(0xa3),a274_0x773b71(0x9e)],'files':[{'type':'file','path':a274_0x773b71(0x95),'template':a274_0x773b71(0x9a)}]},'windsurf':{'name':a274_0x773b71(0x8f),'description':a274_0x773b71(0x9c),'folders':[a274_0x773b71(0xab)],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xb9),'template':a274_0x773b71(0x9a)}]},'claude':{'name':a274_0x773b71(0xa6),'description':a274_0x773b71(0xa6),'folders':[a274_0x773b71(0xb7)],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xa7),'template':a274_0x773b71(0x9a)}]},'cline':{'name':a274_0x773b71(0x99),'description':a274_0x773b71(0xaf),'folders':['.cline'],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xba),'template':'SKILL.md.tpl'}]},'codex':{'name':a274_0x773b71(0xc5),'description':a274_0x773b71(0xc1),'folders':[a274_0x773b71(0xb4)],'files':[{'type':'file','path':a274_0x773b71(0xb2),'template':'SKILL.md.tpl'}]},'opencode':{'name':a274_0x773b71(0x92),'description':'OpenCode\x20IDE','folders':[a274_0x773b71(0x9b)],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xa8),'template':a274_0x773b71(0x9a)}]},'qoder':{'name':'Qoder','description':a274_0x773b71(0xc3),'folders':[a274_0x773b71(0xc0)],'files':[{'type':a274_0x773b71(0xa4),'path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xc2),'template':a274_0x773b71(0x9a)}]},'codebuddy':{'name':a274_0x773b71(0x9f),'description':a274_0x773b71(0xa2),'folders':['.codebuddy'],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0x8d),'template':a274_0x773b71(0x9a)}]},'trae':{'name':a274_0x773b71(0xc4),'description':a274_0x773b71(0x93),'folders':[a274_0x773b71(0xa1)],'files':[{'type':'file','path':a274_0x773b71(0xbd),'template':'SKILL.md.tpl'}]}};function a274_0x5a74(_0x36af69,_0x16007e){_0x36af69=_0x36af69-0x8c;const _0x3da61a=a274_0x3da6();let _0x5a74e1=_0x3da61a[_0x36af69];return _0x5a74e1;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a274_0x773b71(0x94),'description':a274_0x773b71(0x90),'folders':[a274_0x773b71(0x96)],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xb6),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a274_0x773b71(0xa9),'description':a274_0x773b71(0xb1),'folders':[a274_0x773b71(0x96)],'files':[{'type':a274_0x773b71(0xa4),'path':a274_0x773b71(0xb6),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a274_0x773b71(0xbe),'cline','codebuddy',a274_0x773b71(0xac),a274_0x773b71(0xbf),'opencode','qoder',a274_0x773b71(0x8e),'windsurf'];export const IDE_LIST=['antigravity',a274_0x773b71(0xbe),a274_0x773b71(0xb8),'codebuddy','codex',a274_0x773b71(0xbf),a274_0x773b71(0x98),'qoder','trae',a274_0x773b71(0xae),a274_0x773b71(0xa5)];export const ALL_CORE_IDES=[a274_0x773b71(0xbf),a274_0x773b71(0xae),'claude','cline',a274_0x773b71(0xac),a274_0x773b71(0x98),a274_0x773b71(0xbb),'codebuddy',a274_0x773b71(0x8e)];
1
+ function a274_0x2e04(_0x42b42f,_0x5cca29){_0x42b42f=_0x42b42f-0x1d3;const _0x5bf92e=a274_0x5bf9();let _0x2e0467=_0x5bf92e[_0x42b42f];return _0x2e0467;}const a274_0x23da49=a274_0x2e04;function a274_0x5bf9(){const _0x392908=['7DyDkAZ','qoder','.cursor/skills/rabetbase.md','287823eqyguk','.codebuddy','Codex\x20IDE','claude','18frTQrE','Trae','.qoder/rules/rabetbase.md','Antigravity\x20IDE','Qoder','.cursor','.windsurf','.agent/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','991090jJoUFr','Qoder\x20IDE','Codex','OpenCode\x20IDE','codex','Antigravity','cline','file','.windsurf/workflows/rabetbase.md','Claude\x20Code','702504QafGoJ','74wNtrQJ','.opencode','.codex','.agent','opencode','.opencode/skills/lovrabet/SKILL.md','23709BeVaTo','Windsurf','Cursor','trae','.cline/skills/lovrabet/SKILL.md','codebuddy','.claude','.qoder','1318840aGgARn','63312QdlOLN','Cursor\x20IDE','cursor','windsurf','antigravity','.trae','1579974UPhQvM','.claude/skills/lovrabet/SKILL.md','.cline','其他\x20(通用模板)','SKILL.md.tpl'];a274_0x5bf9=function(){return _0x392908;};return a274_0x5bf9();}(function(_0x1287fc,_0x1d6288){const _0x119128=a274_0x2e04,_0x421099=_0x1287fc();while(!![]){try{const _0x2dff16=parseInt(_0x119128(0x1fb))/0x1+-parseInt(_0x119128(0x1de))/0x2*(-parseInt(_0x119128(0x1e4))/0x3)+-parseInt(_0x119128(0x1dd))/0x4+-parseInt(_0x119128(0x1d3))/0x5+parseInt(_0x119128(0x1f3))/0x6+parseInt(_0x119128(0x1f8))/0x7*(-parseInt(_0x119128(0x1ed))/0x8)+parseInt(_0x119128(0x1ff))/0x9*(-parseInt(_0x119128(0x1ec))/0xa);if(_0x2dff16===_0x1d6288)break;else _0x421099['push'](_0x421099['shift']());}catch(_0x3cf052){_0x421099['push'](_0x421099['shift']());}}}(a274_0x5bf9,0x30595));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x23da49(0x1e6),'description':a274_0x23da49(0x1ee),'folders':['.cursorrules',a274_0x23da49(0x204)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x1fa),'template':a274_0x23da49(0x1f7)}]},'windsurf':{'name':a274_0x23da49(0x1e5),'description':'Windsurf\x20IDE','folders':[a274_0x23da49(0x205)],'files':[{'type':'file','path':a274_0x23da49(0x1db),'template':'SKILL.md.tpl'}]},'claude':{'name':a274_0x23da49(0x1dc),'description':a274_0x23da49(0x1dc),'folders':[a274_0x23da49(0x1ea)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x1f4),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a274_0x23da49(0x1f5)],'files':[{'type':'file','path':a274_0x23da49(0x1e8),'template':'SKILL.md.tpl'}]},'codex':{'name':a274_0x23da49(0x1d5),'description':a274_0x23da49(0x1fd),'folders':[a274_0x23da49(0x1e0)],'files':[{'type':a274_0x23da49(0x1da),'path':'.codex/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]},'opencode':{'name':'OpenCode','description':a274_0x23da49(0x1d6),'folders':[a274_0x23da49(0x1df)],'files':[{'type':'file','path':a274_0x23da49(0x1e3),'template':a274_0x23da49(0x1f7)}]},'qoder':{'name':a274_0x23da49(0x203),'description':a274_0x23da49(0x1d4),'folders':[a274_0x23da49(0x1eb)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x201),'template':'SKILL.md.tpl'},{'type':a274_0x23da49(0x1da),'path':'.qoder/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a274_0x23da49(0x1fc)],'files':[{'type':a274_0x23da49(0x1da),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a274_0x23da49(0x200),'description':'Trae\x20IDE','folders':[a274_0x23da49(0x1f2)],'files':[{'type':a274_0x23da49(0x1da),'path':'.trae/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a274_0x23da49(0x1f6),'description':a274_0x23da49(0x207),'folders':[a274_0x23da49(0x1e1)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x206),'template':a274_0x23da49(0x1f7)}]},'antigravity':{'name':a274_0x23da49(0x1d8),'description':a274_0x23da49(0x202),'folders':[a274_0x23da49(0x1e1)],'files':[{'type':a274_0x23da49(0x1da),'path':'.agent/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]}};export const CORE_IDE_LIST=['claude',a274_0x23da49(0x1d9),a274_0x23da49(0x1e9),a274_0x23da49(0x1d7),a274_0x23da49(0x1ef),a274_0x23da49(0x1e2),'qoder','trae',a274_0x23da49(0x1f0)];export const IDE_LIST=[a274_0x23da49(0x1f1),'claude','cline',a274_0x23da49(0x1e9),a274_0x23da49(0x1d7),a274_0x23da49(0x1ef),'opencode',a274_0x23da49(0x1f9),a274_0x23da49(0x1e7),a274_0x23da49(0x1f0),'agent'];export const ALL_CORE_IDES=[a274_0x23da49(0x1ef),a274_0x23da49(0x1f0),a274_0x23da49(0x1fe),'cline','codex','opencode','qoder',a274_0x23da49(0x1e9),a274_0x23da49(0x1e7)];
@@ -1 +1 @@
1
- function a275_0x4d8b(_0x400798,_0x3d514d){_0x400798=_0x400798-0xc4;const _0x735a14=a275_0x735a();let _0x4d8bdc=_0x735a14[_0x400798];return _0x4d8bdc;}function a275_0x735a(){const _0x174201=['3002872vyeQxu','6zwZxLz','3236024zpbWaU','2276457tgJirH','2cYlZcL','21800510claemm','9WZlKcJ','6524322kzQRxc','1109607OMvTqk','1847630UEMRMJ'];a275_0x735a=function(){return _0x174201;};return a275_0x735a();}(function(_0x163c6d,_0x53434f){const _0x2229e9=a275_0x4d8b,_0x2595d6=_0x163c6d();while(!![]){try{const _0x4cf037=parseInt(_0x2229e9(0xc5))/0x1+parseInt(_0x2229e9(0xcb))/0x2*(parseInt(_0x2229e9(0xca))/0x3)+parseInt(_0x2229e9(0xc7))/0x4+-parseInt(_0x2229e9(0xc6))/0x5+-parseInt(_0x2229e9(0xc8))/0x6*(-parseInt(_0x2229e9(0xc4))/0x7)+-parseInt(_0x2229e9(0xc9))/0x8+parseInt(_0x2229e9(0xcd))/0x9*(-parseInt(_0x2229e9(0xcc))/0xa);if(_0x4cf037===_0x53434f)break;else _0x2595d6['push'](_0x2595d6['shift']());}catch(_0x320dd7){_0x2595d6['push'](_0x2595d6['shift']());}}}(a275_0x735a,0x91c76));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x579673,_0x5bf5fe){const _0x29da77=a275_0x41e6,_0x2c655b=_0x579673();while(!![]){try{const _0x4df308=parseInt(_0x29da77(0x99))/0x1+-parseInt(_0x29da77(0x9a))/0x2+-parseInt(_0x29da77(0x9b))/0x3+-parseInt(_0x29da77(0x9c))/0x4+parseInt(_0x29da77(0x9e))/0x5*(-parseInt(_0x29da77(0x9f))/0x6)+-parseInt(_0x29da77(0x98))/0x7+parseInt(_0x29da77(0x9d))/0x8;if(_0x4df308===_0x5bf5fe)break;else _0x2c655b['push'](_0x2c655b['shift']());}catch(_0x582e20){_0x2c655b['push'](_0x2c655b['shift']());}}}(a275_0x544e,0xa15c3));function a275_0x41e6(_0x50d760,_0x13b693){_0x50d760=_0x50d760-0x98;const _0x544ecf=a275_0x544e();let _0x41e634=_0x544ecf[_0x50d760];return _0x41e634;}function a275_0x544e(){const _0x2628c6=['34815136JQrvjA','5UXvffl','5646744AYnTib','7727391NSjCww','821111KehSLA','856252sefRzY','3182457CHlrOm','3912360PdJGOC'];a275_0x544e=function(){return _0x2628c6;};return a275_0x544e();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a276_0x46f1(_0xbcd553,_0x40b706){_0xbcd553=_0xbcd553-0x1cf;const _0x47ff56=a276_0x47ff();let _0x46f12a=_0x47ff56[_0xbcd553];return _0x46f12a;}(function(_0x5cb37e,_0x1291c0){const _0x48e201=a276_0x46f1,_0x58bc18=_0x5cb37e();while(!![]){try{const _0x5c2ef9=parseInt(_0x48e201(0x1db))/0x1*(-parseInt(_0x48e201(0x1d8))/0x2)+-parseInt(_0x48e201(0x1dc))/0x3*(-parseInt(_0x48e201(0x1d7))/0x4)+parseInt(_0x48e201(0x1d1))/0x5*(parseInt(_0x48e201(0x1d9))/0x6)+-parseInt(_0x48e201(0x1cf))/0x7+parseInt(_0x48e201(0x1d3))/0x8+parseInt(_0x48e201(0x1de))/0x9*(parseInt(_0x48e201(0x1d6))/0xa)+-parseInt(_0x48e201(0x1dd))/0xb;if(_0x5c2ef9===_0x1291c0)break;else _0x58bc18['push'](_0x58bc18['shift']());}catch(_0x4a42f5){_0x58bc18['push'](_0x58bc18['shift']());}}}(a276_0x47ff,0xc5d1e));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x233929=a276_0x46f1,_0x2875b5=getTemplateBaseUrl(),_0x3d7b18=[_0x2875b5+_0x233929(0x1d2),_0x2875b5+'/config/index.json'];for(const _0x18c681 of _0x3d7b18){try{const _0x5275d7=await fetch(_0x18c681,{'headers':{'Accept':_0x233929(0x1df)}});if(!_0x5275d7['ok'])continue;const _0x4d04c3=await _0x5275d7[_0x233929(0x1da)]();if(!_0x4d04c3[_0x233929(0x1d4)]?.['stableVersion']||!_0x4d04c3[_0x233929(0x1d0)]?.['node']?.['stableVersion'])continue;return _0x4d04c3;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a276_0x47ff(){const _0x4b7486=['3NoZbyp','31474960fCGnLN','8829kZxgOX','application/json','174062RDfsTK','sdk','5NXnijI','/config.json','10744296mVjrOG','cli','now','12520FebrdY','5430196GzBYgE','2711038ZZsHKo','6739302QQlXMU','json','1NyeaSA'];a276_0x47ff=function(){return _0x4b7486;};return a276_0x47ff();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3f5e79=a276_0x46f1,_0x311763=Date[_0x3f5e79(0x1d5)]();if(hasCachedConfig){const _0x41b2e6=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x311763-cacheTime<_0x41b2e6)return cachedConfig;}const _0xd44c74=await fetchCdnConfig();return cachedConfig=_0xd44c74,cacheTime=_0x311763,hasCachedConfig=!![],_0xd44c74;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xb55054,_0x4e0b7c){const _0x3a9c7b=a276_0x17af,_0x4cf522=_0xb55054();while(!![]){try{const _0x233e72=-parseInt(_0x3a9c7b(0x161))/0x1*(parseInt(_0x3a9c7b(0x15e))/0x2)+parseInt(_0x3a9c7b(0x16c))/0x3*(parseInt(_0x3a9c7b(0x165))/0x4)+-parseInt(_0x3a9c7b(0x168))/0x5*(-parseInt(_0x3a9c7b(0x15f))/0x6)+parseInt(_0x3a9c7b(0x170))/0x7*(-parseInt(_0x3a9c7b(0x163))/0x8)+-parseInt(_0x3a9c7b(0x162))/0x9+parseInt(_0x3a9c7b(0x16b))/0xa*(-parseInt(_0x3a9c7b(0x167))/0xb)+parseInt(_0x3a9c7b(0x164))/0xc;if(_0x233e72===_0x4e0b7c)break;else _0x4cf522['push'](_0x4cf522['shift']());}catch(_0x47c00e){_0x4cf522['push'](_0x4cf522['shift']());}}}(a276_0x3604,0x19276));function a276_0x17af(_0x4e780e,_0x4ea7c6){_0x4e780e=_0x4e780e-0x15e;const _0x3604b3=a276_0x3604();let _0x17afcb=_0x3604b3[_0x4e780e];return _0x17afcb;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1274a4=a276_0x17af,_0x4e9c98=getTemplateBaseUrl(),_0x20f5ed=[_0x4e9c98+_0x1274a4(0x16f),_0x4e9c98+_0x1274a4(0x169)];for(const _0x1c52ef of _0x20f5ed){try{const _0x54ca2f=await fetch(_0x1c52ef,{'headers':{'Accept':_0x1274a4(0x16d)}});if(!_0x54ca2f['ok'])continue;const _0x2d5ae9=await _0x54ca2f['json']();if(!_0x2d5ae9[_0x1274a4(0x166)]?.['stableVersion']||!_0x2d5ae9[_0x1274a4(0x16e)]?.[_0x1274a4(0x160)]?.[_0x1274a4(0x16a)])continue;return _0x2d5ae9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a276_0x3604(){const _0x3a75ab=['308410vKhWlU','/config/index.json','stableVersion','10EglhDt','135uYqwKC','application/json','sdk','/config.json','219555lDtGha','62pXvAZE','12LQvJXV','node','5018mvYQNr','828261pOERcN','8ddEUEs','4515132rribJJ','192sfuGjR','cli','1317833AUTvoc'];a276_0x3604=function(){return _0x3a75ab;};return a276_0x3604();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x49e28b=Date['now']();if(hasCachedConfig){const _0x1b4a22=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x49e28b-cacheTime<_0x1b4a22)return cachedConfig;}const _0x20ee86=await fetchCdnConfig();return cachedConfig=_0x20ee86,cacheTime=_0x49e28b,hasCachedConfig=!![],_0x20ee86;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x1bbb03,_0x4549fa){const _0x4b3674=a277_0x4f89,_0x5edc48=_0x1bbb03();while(!![]){try{const _0x30bfb3=-parseInt(_0x4b3674(0xab))/0x1*(-parseInt(_0x4b3674(0xc9))/0x2)+parseInt(_0x4b3674(0xb1))/0x3*(parseInt(_0x4b3674(0xc0))/0x4)+parseInt(_0x4b3674(0xb7))/0x5*(parseInt(_0x4b3674(0xb3))/0x6)+-parseInt(_0x4b3674(0xbd))/0x7*(-parseInt(_0x4b3674(0xbe))/0x8)+parseInt(_0x4b3674(0xc5))/0x9+-parseInt(_0x4b3674(0xa5))/0xa*(parseInt(_0x4b3674(0xb0))/0xb)+-parseInt(_0x4b3674(0xc2))/0xc;if(_0x30bfb3===_0x4549fa)break;else _0x5edc48['push'](_0x5edc48['shift']());}catch(_0xb2b911){_0x5edc48['push'](_0x5edc48['shift']());}}}(a277_0x5b39,0x68334));import a277_0x52f298 from'node:fs';import a277_0x14e4d6 from'node:path';import a277_0x5acdb0 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0xf81b2e){const _0x57a981=a277_0x4f89,_0x2962ff=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2962ff[_0x57a981(0xb2)](_0x66ffd6=>_0x66ffd6[_0x57a981(0xac)](_0xf81b2e));}function a277_0x5b39(){const _0x85a78a=['coerce','7QZJIMQ','6516672jzlruz','existsSync','36hZnipt','\x20\x20\x20Stable\x20version:\x20','24270768RPKgZz','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','5859954HNqsrQ','join','packageName','parse','74406vPStsh','minVersion','devDependencies','1585490LAdwYj','stableVersion','node_modules','\x1b[1m','utf8','@lovrabet/sdk','11oonBWg','test','readFileSync','utf-8','package.json','22tLywRZ','186522WiENnw','some','1991862yPOUyC','\x1b[33m','log','dependencies','5ZgwqxC','version','npm\x20install\x20','node','\x1b[0m'];a277_0x5b39=function(){return _0x85a78a;};return a277_0x5b39();}function getInstalledVersion(_0x472b94,_0x5b842f){const _0x5b8f49=a277_0x4f89;try{const _0x5c64af=a277_0x14e4d6[_0x5b8f49(0xc6)](_0x472b94,_0x5b8f49(0xa7),_0x5b842f,_0x5b8f49(0xaf));if(a277_0x52f298[_0x5b8f49(0xbf)](_0x5c64af)){const _0x223974=JSON[_0x5b8f49(0xc8)](a277_0x52f298['readFileSync'](_0x5c64af,_0x5b8f49(0xae)));return _0x223974[_0x5b8f49(0xb8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2505e1=a277_0x4f89;try{const _0x1af290=await getCdnConfig();return _0x1af290?.['sdk']?.['node']?.[_0x2505e1(0xa6)]||null;}catch{return null;}}function a277_0x4f89(_0x38e15a,_0x471259){_0x38e15a=_0x38e15a-0xa4;const _0x5b3938=a277_0x5b39();let _0x4f89b0=_0x5b3938[_0x38e15a];return _0x4f89b0;}async function getSdkPackageName(){const _0x3f488e=a277_0x4f89;try{const _0x14f605=await getCdnConfig();return _0x14f605?.['sdk']?.[_0x3f488e(0xba)]?.[_0x3f488e(0xc7)]||_0x3f488e(0xaa);}catch{return _0x3f488e(0xaa);}}export async function checkSdkVersion(_0x334804){const _0x3b6fc=a277_0x4f89,_0x37769f=a277_0x14e4d6[_0x3b6fc(0xc6)](_0x334804,'package.json'),[_0x11ca7d,_0x43fc86]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x11c4f4=_0x11ca7d||FALLBACK_MIN_SDK_VERSION;if(!a277_0x52f298[_0x3b6fc(0xbf)](_0x37769f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x11c4f4,'packageName':_0x43fc86,'stableVersion':_0x11ca7d};try{const _0x46ecd1=JSON[_0x3b6fc(0xc8)](a277_0x52f298[_0x3b6fc(0xad)](_0x37769f,_0x3b6fc(0xa9))),_0x7c7bc1=_0x46ecd1['dependencies']||{},_0xec336=_0x46ecd1[_0x3b6fc(0xa4)]||{},_0x4d2a6b=_0x7c7bc1[_0x43fc86]||_0xec336[_0x43fc86];if(!_0x4d2a6b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x11c4f4,'packageName':_0x43fc86,'stableVersion':_0x11ca7d};let _0x585aaa=getInstalledVersion(_0x334804,_0x43fc86);!_0x585aaa&&(_0x585aaa=_0x4d2a6b);if(isNonNumericVersion(_0x4d2a6b))return{'installed':!![],'version':_0x585aaa,'needsUpgrade':![],'minVersion':_0x11c4f4,'packageName':_0x43fc86,'stableVersion':_0x11ca7d};const _0xbf1d2=a277_0x5acdb0[_0x3b6fc(0xbc)](_0x585aaa),_0x2381af=a277_0x5acdb0[_0x3b6fc(0xbc)](_0x11c4f4),_0x52bbc=_0xbf1d2&&_0x2381af?a277_0x5acdb0['lt'](_0xbf1d2,_0x2381af):![];return{'installed':!![],'version':_0x585aaa,'needsUpgrade':_0x52bbc,'minVersion':_0x11c4f4,'packageName':_0x43fc86,'stableVersion':_0x11ca7d};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x11c4f4,'packageName':_0x43fc86,'stableVersion':_0x11ca7d};}}export function checkSdkVersionSync(_0x51e8e4){const _0x580ccb=a277_0x4f89,_0xcc4161=a277_0x14e4d6[_0x580ccb(0xc6)](_0x51e8e4,_0x580ccb(0xaf)),_0x3f5232=_0x580ccb(0xaa);if(!a277_0x52f298['existsSync'](_0xcc4161))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f5232,'stableVersion':null};try{const _0xdaab63=JSON[_0x580ccb(0xc8)](a277_0x52f298[_0x580ccb(0xad)](_0xcc4161,_0x580ccb(0xa9))),_0xee57f6=_0xdaab63[_0x580ccb(0xb6)]||{},_0x43728c=_0xdaab63[_0x580ccb(0xa4)]||{},_0x47b93d=_0xee57f6[_0x3f5232]||_0x43728c[_0x3f5232];if(!_0x47b93d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f5232,'stableVersion':null};let _0x130de6=getInstalledVersion(_0x51e8e4,_0x3f5232);!_0x130de6&&(_0x130de6=_0x47b93d);if(isNonNumericVersion(_0x47b93d))return{'installed':!![],'version':_0x130de6,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f5232,'stableVersion':null};const _0x4acd1b=a277_0x5acdb0[_0x580ccb(0xbc)](_0x130de6),_0x42d61a=_0x4acd1b?a277_0x5acdb0['lt'](_0x4acd1b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x130de6,'needsUpgrade':_0x42d61a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f5232,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f5232,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x38a121){const _0x3be351=a277_0x4f89;if(!_0x38a121['needsUpgrade'])return;const _0x55e6e3=_0x3be351(0xb4),_0x49c358=_0x3be351(0xbb),_0x4bb743=_0x3be351(0xa8),_0x11099d=_0x38a121[_0x3be351(0xc7)]||_0x3be351(0xaa),_0x592c26=_0x38a121[_0x3be351(0xa6)]||_0x38a121[_0x3be351(0xca)],_0x1d35d4=_0x3be351(0xb9)+_0x11099d+'@'+(_0x592c26||'latest');console['log'](),console[_0x3be351(0xb5)](''+_0x55e6e3+_0x4bb743+'↪\x20SDK\x20update\x20available'+_0x49c358),console[_0x3be351(0xb5)](_0x55e6e3+_0x3be351(0xc3)+_0x11099d+'@'+_0x38a121[_0x3be351(0xb8)]+_0x49c358),console['log'](_0x55e6e3+_0x3be351(0xc1)+_0x592c26+_0x49c358),console[_0x3be351(0xb5)](_0x55e6e3+_0x3be351(0xc4)+_0x1d35d4+_0x49c358),console[_0x3be351(0xb5)]();}
1
+ const a277_0x2f310c=a277_0x2bd4;(function(_0x1114a1,_0x55883a){const _0x5a8018=a277_0x2bd4,_0x4a85ea=_0x1114a1();while(!![]){try{const _0x5a34ff=-parseInt(_0x5a8018(0x154))/0x1*(parseInt(_0x5a8018(0x13b))/0x2)+-parseInt(_0x5a8018(0x141))/0x3+parseInt(_0x5a8018(0x153))/0x4+-parseInt(_0x5a8018(0x156))/0x5+-parseInt(_0x5a8018(0x14d))/0x6+parseInt(_0x5a8018(0x14f))/0x7*(-parseInt(_0x5a8018(0x14c))/0x8)+parseInt(_0x5a8018(0x151))/0x9*(parseInt(_0x5a8018(0x158))/0xa);if(_0x5a34ff===_0x55883a)break;else _0x4a85ea['push'](_0x4a85ea['shift']());}catch(_0x2a4ef4){_0x4a85ea['push'](_0x4a85ea['shift']());}}}(a277_0x54b0,0x1d4af));function a277_0x54b0(){const _0x51d6db=['\x20\x20\x20Upgrade\x20command:\x20','version','29400IGlCOQ','973236iEhYYS','test','147GRVgsj','packageName','24291EhdoDL','all','534252FKTveY','1SsxczP','parse','8110cRFrTq','log','1930FcTerC','1.2.0','readFileSync','coerce','latest','package.json','155866AzsvmQ','utf8','npm\x20install\x20','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','join','646653iIqDvZ','@lovrabet/sdk','\x1b[0m','stableVersion','existsSync','minVersion','dependencies','node','node_modules'];a277_0x54b0=function(){return _0x51d6db;};return a277_0x54b0();}import a277_0x27978c from'node:fs';import a277_0x1e5a36 from'node:path';import a277_0x380752 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a277_0x2f310c(0x159);function isNonNumericVersion(_0x367413){const _0x559566=a277_0x2f310c,_0x32f747=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x32f747['some'](_0x222c24=>_0x222c24[_0x559566(0x14e)](_0x367413));}function getInstalledVersion(_0x280550,_0x13a71d){const _0x565854=a277_0x2f310c;try{const _0x24b06b=a277_0x1e5a36[_0x565854(0x140)](_0x280550,_0x565854(0x149),_0x13a71d,'package.json');if(a277_0x27978c['existsSync'](_0x24b06b)){const _0x3a1a52=JSON[_0x565854(0x155)](a277_0x27978c['readFileSync'](_0x24b06b,'utf-8'));return _0x3a1a52[_0x565854(0x14b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xebedd6=a277_0x2f310c;try{const _0x5e6f73=await getCdnConfig();return _0x5e6f73?.['sdk']?.[_0xebedd6(0x148)]?.[_0xebedd6(0x144)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5afad7=a277_0x2f310c;try{const _0x4fffb4=await getCdnConfig();return _0x4fffb4?.['sdk']?.[_0x5afad7(0x148)]?.[_0x5afad7(0x150)]||_0x5afad7(0x142);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x51749e){const _0xefa16a=a277_0x2f310c,_0xb59765=a277_0x1e5a36[_0xefa16a(0x140)](_0x51749e,'package.json'),[_0xc039d5,_0x5a307a]=await Promise[_0xefa16a(0x152)]([getSdkStableVersion(),getSdkPackageName()]),_0x164cbd=_0xc039d5||FALLBACK_MIN_SDK_VERSION;if(!a277_0x27978c[_0xefa16a(0x145)](_0xb59765))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};try{const _0x3781ef=JSON['parse'](a277_0x27978c[_0xefa16a(0x15a)](_0xb59765,_0xefa16a(0x13c))),_0x5b442c=_0x3781ef[_0xefa16a(0x147)]||{},_0x518cec=_0x3781ef['devDependencies']||{},_0x469af8=_0x5b442c[_0x5a307a]||_0x518cec[_0x5a307a];if(!_0x469af8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};let _0x43f6f7=getInstalledVersion(_0x51749e,_0x5a307a);!_0x43f6f7&&(_0x43f6f7=_0x469af8);if(isNonNumericVersion(_0x469af8))return{'installed':!![],'version':_0x43f6f7,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};const _0x58c32f=a277_0x380752[_0xefa16a(0x138)](_0x43f6f7),_0xf1d961=a277_0x380752[_0xefa16a(0x138)](_0x164cbd),_0x3a5b36=_0x58c32f&&_0xf1d961?a277_0x380752['lt'](_0x58c32f,_0xf1d961):![];return{'installed':!![],'version':_0x43f6f7,'needsUpgrade':_0x3a5b36,'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};}}export function checkSdkVersionSync(_0x4c1894){const _0x50b562=a277_0x2f310c,_0x30d791=a277_0x1e5a36['join'](_0x4c1894,_0x50b562(0x13a)),_0x5248c4='@lovrabet/sdk';if(!a277_0x27978c[_0x50b562(0x145)](_0x30d791))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};try{const _0x184b34=JSON['parse'](a277_0x27978c[_0x50b562(0x15a)](_0x30d791,'utf8')),_0x19780f=_0x184b34[_0x50b562(0x147)]||{},_0x3f1806=_0x184b34['devDependencies']||{},_0x337eac=_0x19780f[_0x5248c4]||_0x3f1806[_0x5248c4];if(!_0x337eac)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};let _0x2a58a1=getInstalledVersion(_0x4c1894,_0x5248c4);!_0x2a58a1&&(_0x2a58a1=_0x337eac);if(isNonNumericVersion(_0x337eac))return{'installed':!![],'version':_0x2a58a1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};const _0x478424=a277_0x380752[_0x50b562(0x138)](_0x2a58a1),_0x11f1f8=_0x478424?a277_0x380752['lt'](_0x478424,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2a58a1,'needsUpgrade':_0x11f1f8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};}}function a277_0x2bd4(_0xd8ca78,_0x5c29b8){_0xd8ca78=_0xd8ca78-0x138;const _0x54b076=a277_0x54b0();let _0x2bd4c2=_0x54b076[_0xd8ca78];return _0x2bd4c2;}export function printSdkUpgradeWarning(_0x4e0c3b){const _0x121a06=a277_0x2f310c;if(!_0x4e0c3b[_0x121a06(0x13f)])return;const _0x24378a='\x1b[33m',_0x291462=_0x121a06(0x143),_0x4a31ed='\x1b[1m',_0x234209=_0x4e0c3b['packageName']||_0x121a06(0x142),_0x4bc993=_0x4e0c3b[_0x121a06(0x144)]||_0x4e0c3b[_0x121a06(0x146)],_0x1a3bef=_0x121a06(0x13d)+_0x234209+'@'+(_0x4bc993||_0x121a06(0x139));console[_0x121a06(0x157)](),console['log'](''+_0x24378a+_0x4a31ed+'↪\x20SDK\x20update\x20available'+_0x291462),console[_0x121a06(0x157)](_0x24378a+'\x20\x20\x20Current\x20version:\x20'+_0x234209+'@'+_0x4e0c3b[_0x121a06(0x14b)]+_0x291462),console[_0x121a06(0x157)](_0x24378a+_0x121a06(0x13e)+_0x4bc993+_0x291462),console['log'](_0x24378a+_0x121a06(0x14a)+_0x1a3bef+_0x291462),console[_0x121a06(0x157)]();}
@@ -1 +1 @@
1
- (function(_0x21f35e,_0x2fdc0c){const _0xf5bfaa=a278_0x4fcb,_0x13520a=_0x21f35e();while(!![]){try{const _0x51df94=parseInt(_0xf5bfaa(0xdd))/0x1*(-parseInt(_0xf5bfaa(0xdf))/0x2)+-parseInt(_0xf5bfaa(0xf7))/0x3*(-parseInt(_0xf5bfaa(0xd6))/0x4)+-parseInt(_0xf5bfaa(0xd2))/0x5+parseInt(_0xf5bfaa(0xf6))/0x6*(-parseInt(_0xf5bfaa(0xda))/0x7)+parseInt(_0xf5bfaa(0xe8))/0x8+parseInt(_0xf5bfaa(0xe6))/0x9+-parseInt(_0xf5bfaa(0xf1))/0xa;if(_0x51df94===_0x2fdc0c)break;else _0x13520a['push'](_0x13520a['shift']());}catch(_0x59cc0d){_0x13520a['push'](_0x13520a['shift']());}}}(a278_0x5ab6,0xb7860));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x54f557 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x4fcb(_0x31fd6e,_0x161907){_0x31fd6e=_0x31fd6e-0xd2;const _0x5ab6cd=a278_0x5ab6();let _0x4fcb65=_0x5ab6cd[_0x31fd6e];return _0x4fcb65;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1f874d){const _0x2d0197=a278_0x4fcb,_0x75305e=_0x1f874d[_0x2d0197(0xef)]||_0x2d0197(0xea);return _0x2d0197(0xe3)+NPM_PACKAGE_NAME+'@'+_0x75305e;}function getCurrentCliVersion(){const _0x5dc8f4=a278_0x4fcb;try{const _0x18eb87=fileURLToPath(import.meta.url),_0x52e438=resolve(dirname(_0x18eb87),_0x5dc8f4(0xdb)),_0x4ae532=resolve(_0x52e438,_0x5dc8f4(0xeb)),_0x44968e=JSON[_0x5dc8f4(0xec)](readFileSync(_0x4ae532,_0x5dc8f4(0xf9)));return _0x44968e[_0x5dc8f4(0xe7)]||_0x5dc8f4(0xe5);}catch{return _0x5dc8f4(0xe5);}}export async function checkCliVersion(){const _0x425fb7=a278_0x4fcb,_0x16fd67=getCurrentCliVersion(),_0x35a553=await getCliVersionPolicy(),_0x267ac9=_0x35a553?.['stableVersion']||null,_0x43d8c4=_0x35a553?.[_0x425fb7(0xfa)]||null;let _0x5e6bbb=![],_0x50de51=![];const _0x4ddb73=a278_0x54f557['coerce'](_0x16fd67);if(_0x4ddb73&&_0x267ac9)try{const _0x1928d0=a278_0x54f557[_0x425fb7(0xee)](_0x267ac9);if(_0x1928d0)_0x5e6bbb=a278_0x54f557['lt'](_0x4ddb73,_0x1928d0);}catch{}if(_0x4ddb73&&_0x43d8c4)try{const _0x3c5d50=a278_0x54f557[_0x425fb7(0xee)](_0x43d8c4);if(_0x3c5d50)_0x50de51=a278_0x54f557['lt'](_0x4ddb73,_0x3c5d50);}catch{}return _0x50de51&&(_0x5e6bbb=!![]),{'currentVersion':_0x16fd67,'stableVersion':_0x267ac9,'minimumVersion':_0x43d8c4,'needsUpgrade':_0x5e6bbb,'belowMinimum':_0x50de51,'isPreRelease':![],'upgradeMessage':_0x35a553?.[_0x425fb7(0xf3)],'minimumVersionMessage':_0x35a553?.[_0x425fb7(0xdc)]};}export function printCliUpgradeWarning(_0x584bca){const _0x4d9609=a278_0x4fcb;if(!_0x584bca[_0x4d9609(0xd9)]&&!_0x584bca['belowMinimum'])return;const _0x27b1b2=_0x4d9609(0xe9),_0xe8335d=_0x4d9609(0xd8),_0x191391=_0x4d9609(0xf5),_0x8ca266=_0x4d9609(0xd5),_0x380ca1=getCliUpgradeCommand(_0x584bca);console[_0x4d9609(0xf4)](),_0x584bca[_0x4d9609(0xe4)]?(console[_0x4d9609(0xf4)](''+_0x27b1b2+_0x8ca266+_0x4d9609(0xf8)+_0x191391),console[_0x4d9609(0xf4)](_0x27b1b2+_0x4d9609(0xf0)+_0x584bca[_0x4d9609(0xde)]+_0x191391),_0x584bca[_0x4d9609(0xfa)]&&console[_0x4d9609(0xf4)](_0x27b1b2+_0x4d9609(0xe2)+_0x584bca['minimumVersion']+_0x191391),_0x584bca[_0x4d9609(0xef)]&&_0x584bca['stableVersion']!==_0x584bca[_0x4d9609(0xfa)]&&console[_0x4d9609(0xf4)](_0x27b1b2+'\x20\x20\x20Recommended\x20stable:\x20'+_0x584bca[_0x4d9609(0xef)]+_0x191391),_0x584bca['minimumVersionMessage']&&console[_0x4d9609(0xf4)](_0x27b1b2+_0x4d9609(0xf2)+_0x584bca[_0x4d9609(0xdc)]+_0x191391),console['log'](_0x27b1b2+'\x20\x20\x20Upgrade\x20command:\x20'+_0x380ca1+_0x191391)):(console['log'](''+_0xe8335d+_0x8ca266+_0x4d9609(0xd3)+_0x191391),console['log'](_0xe8335d+_0x4d9609(0xf0)+_0x584bca[_0x4d9609(0xde)]+_0x191391),console[_0x4d9609(0xf4)](_0xe8335d+_0x4d9609(0xd4)+_0x584bca[_0x4d9609(0xef)]+_0x191391),_0x584bca[_0x4d9609(0xf3)]&&console['log'](_0xe8335d+'\x20\x20\x20'+_0x584bca[_0x4d9609(0xf3)]+_0x191391),console[_0x4d9609(0xf4)](_0xe8335d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x380ca1+_0x191391)),console[_0x4d9609(0xf4)]();}function a278_0x5ab6(){const _0x156d64=['minimumVersion','6995815DLMtbi','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','\x1b[1m','2608MDuHDQ','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[33m','needsUpgrade','70105GTrySb','../..','minimumVersionMessage','4oNJLdq','currentVersion','96382HlJtKm','filter','Upgrade\x20command:\x20','\x20\x20\x20Minimum\x20supported:\x20','npm\x20install\x20-g\x20','belowMinimum','1.0.0','7978536jhqidJ','version','11978912XLBMbX','\x1b[31m','latest','package.json','parse','Current\x20version:\x20','coerce','stableVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','3195820YkJUfm','\x20\x20\x20','upgradeMessage','log','\x1b[0m','342wHFjMd','3912LvNFLK','↪\x20Critical\x20CLI\x20upgrade\x20required','utf-8'];a278_0x5ab6=function(){return _0x156d64;};return a278_0x5ab6();}export function assertCliVersionSupported(_0xf1205f){const _0x43fc7a=a278_0x4fcb;if(!_0xf1205f[_0x43fc7a(0xe4)])return;const _0x2317f9=[_0xf1205f[_0x43fc7a(0xdc)],_0x43fc7a(0xed)+_0xf1205f[_0x43fc7a(0xde)],_0xf1205f[_0x43fc7a(0xfa)]?'Minimum\x20supported:\x20'+_0xf1205f[_0x43fc7a(0xfa)]:null,_0x43fc7a(0xe1)+getCliUpgradeCommand(_0xf1205f)][_0x43fc7a(0xe0)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x43fc7a(0xd7),_0x2317f9);}
1
+ (function(_0x30108b,_0x393e14){const _0x4ad921=a278_0x1951,_0x3e996e=_0x30108b();while(!![]){try{const _0x514a75=parseInt(_0x4ad921(0x12c))/0x1+parseInt(_0x4ad921(0x133))/0x2+parseInt(_0x4ad921(0x11f))/0x3*(parseInt(_0x4ad921(0x129))/0x4)+parseInt(_0x4ad921(0x119))/0x5*(parseInt(_0x4ad921(0x11a))/0x6)+parseInt(_0x4ad921(0x12b))/0x7*(-parseInt(_0x4ad921(0x12f))/0x8)+parseInt(_0x4ad921(0x115))/0x9*(-parseInt(_0x4ad921(0x11b))/0xa)+parseInt(_0x4ad921(0x121))/0xb*(-parseInt(_0x4ad921(0x112))/0xc);if(_0x514a75===_0x393e14)break;else _0x3e996e['push'](_0x3e996e['shift']());}catch(_0x2f973f){_0x3e996e['push'](_0x3e996e['shift']());}}}(a278_0xba6c,0x7f36e));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x25b58c 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(_0x5cb83f){const _0x3899a7=a278_0x1951,_0x399b8d=_0x5cb83f[_0x3899a7(0x132)]||'latest';return _0x3899a7(0x125)+NPM_PACKAGE_NAME+'@'+_0x399b8d;}function a278_0xba6c(){const _0x1adc44=['stableVersion','1148346jBKTNE','Minimum\x20supported:\x20','log','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','295800AfGfkq','needsUpgrade','currentVersion','18TvrAGw','coerce','\x1b[1m','minimumVersionMessage','10LnwGyq','328974VXoBlG','2170790wMEYTl','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Upgrade\x20command:\x20','1977OIhioY','\x20\x20\x20Current\x20CLI\x20version:\x20','187HooAjH','Current\x20version:\x20','minimumVersion','\x20\x20\x20','npm\x20install\x20-g\x20','\x1b[0m','filter','\x1b[31m','5148OlTmuz','upgradeMessage','77zmhPhC','807388bQvOTB','1.0.0','version','701872nRsirZ','\x20\x20\x20Recommended\x20stable:\x20','../..'];a278_0xba6c=function(){return _0x1adc44;};return a278_0xba6c();}function getCurrentCliVersion(){const _0x552768=a278_0x1951;try{const _0x5dff75=fileURLToPath(import.meta.url),_0x27e9ae=resolve(dirname(_0x5dff75),_0x552768(0x131)),_0x43dd8e=resolve(_0x27e9ae,'package.json'),_0x878a90=JSON['parse'](readFileSync(_0x43dd8e,'utf-8'));return _0x878a90[_0x552768(0x12e)]||'1.0.0';}catch{return _0x552768(0x12d);}}export async function checkCliVersion(){const _0x337ad8=a278_0x1951,_0x4adb21=getCurrentCliVersion(),_0x1b0693=await getCliVersionPolicy(),_0x3c7ded=_0x1b0693?.[_0x337ad8(0x132)]||null,_0x3e37c4=_0x1b0693?.[_0x337ad8(0x123)]||null;let _0x5952a2=![],_0x102186=![];const _0x530312=a278_0x25b58c[_0x337ad8(0x116)](_0x4adb21);if(_0x530312&&_0x3c7ded)try{const _0x2b705f=a278_0x25b58c[_0x337ad8(0x116)](_0x3c7ded);if(_0x2b705f)_0x5952a2=a278_0x25b58c['lt'](_0x530312,_0x2b705f);}catch{}if(_0x530312&&_0x3e37c4)try{const _0xbd0150=a278_0x25b58c['coerce'](_0x3e37c4);if(_0xbd0150)_0x102186=a278_0x25b58c['lt'](_0x530312,_0xbd0150);}catch{}return _0x102186&&(_0x5952a2=!![]),{'currentVersion':_0x4adb21,'stableVersion':_0x3c7ded,'minimumVersion':_0x3e37c4,'needsUpgrade':_0x5952a2,'belowMinimum':_0x102186,'isPreRelease':![],'upgradeMessage':_0x1b0693?.[_0x337ad8(0x12a)],'minimumVersionMessage':_0x1b0693?.[_0x337ad8(0x118)]};}export function printCliUpgradeWarning(_0x5b8f04){const _0x27e997=a278_0x1951;if(!_0x5b8f04[_0x27e997(0x113)]&&!_0x5b8f04[_0x27e997(0x110)])return;const _0x1d5b5c=_0x27e997(0x128),_0x2ec621='\x1b[33m',_0xa051e7=_0x27e997(0x126),_0x33da84=_0x27e997(0x117),_0x2a93e2=getCliUpgradeCommand(_0x5b8f04);console[_0x27e997(0x10f)](),_0x5b8f04[_0x27e997(0x110)]?(console[_0x27e997(0x10f)](''+_0x1d5b5c+_0x33da84+_0x27e997(0x111)+_0xa051e7),console[_0x27e997(0x10f)](_0x1d5b5c+_0x27e997(0x120)+_0x5b8f04[_0x27e997(0x114)]+_0xa051e7),_0x5b8f04[_0x27e997(0x123)]&&console[_0x27e997(0x10f)](_0x1d5b5c+'\x20\x20\x20Minimum\x20supported:\x20'+_0x5b8f04[_0x27e997(0x123)]+_0xa051e7),_0x5b8f04[_0x27e997(0x132)]&&_0x5b8f04[_0x27e997(0x132)]!==_0x5b8f04[_0x27e997(0x123)]&&console['log'](_0x1d5b5c+_0x27e997(0x130)+_0x5b8f04[_0x27e997(0x132)]+_0xa051e7),_0x5b8f04[_0x27e997(0x118)]&&console[_0x27e997(0x10f)](_0x1d5b5c+'\x20\x20\x20'+_0x5b8f04[_0x27e997(0x118)]+_0xa051e7),console[_0x27e997(0x10f)](_0x1d5b5c+_0x27e997(0x11e)+_0x2a93e2+_0xa051e7)):(console[_0x27e997(0x10f)](''+_0x2ec621+_0x33da84+'↪\x20New\x20version\x20available'+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+_0x27e997(0x120)+_0x5b8f04[_0x27e997(0x114)]+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+'\x20\x20\x20Stable\x20version:\x20'+_0x5b8f04[_0x27e997(0x132)]+_0xa051e7),_0x5b8f04[_0x27e997(0x12a)]&&console[_0x27e997(0x10f)](_0x2ec621+_0x27e997(0x124)+_0x5b8f04[_0x27e997(0x12a)]+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2a93e2+_0xa051e7)),console['log']();}function a278_0x1951(_0x1d24ab,_0x5d981e){_0x1d24ab=_0x1d24ab-0x10f;const _0xba6c56=a278_0xba6c();let _0x19512d=_0xba6c56[_0x1d24ab];return _0x19512d;}export function assertCliVersionSupported(_0xaac150){const _0x148585=a278_0x1951;if(!_0xaac150[_0x148585(0x110)])return;const _0x42fe42=[_0xaac150['minimumVersionMessage'],_0x148585(0x122)+_0xaac150['currentVersion'],_0xaac150[_0x148585(0x123)]?_0x148585(0x134)+_0xaac150[_0x148585(0x123)]:null,_0x148585(0x11c)+getCliUpgradeCommand(_0xaac150)][_0x148585(0x127)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x148585(0x11d),_0x42fe42);}
@@ -1 +1 @@
1
- (function(_0x1ee9dd,_0x276227){const _0x1ed8a6=a279_0x288c,_0xc794b9=_0x1ee9dd();while(!![]){try{const _0x13defe=-parseInt(_0x1ed8a6(0x19e))/0x1*(parseInt(_0x1ed8a6(0x19f))/0x2)+parseInt(_0x1ed8a6(0x1af))/0x3+parseInt(_0x1ed8a6(0x1b0))/0x4*(-parseInt(_0x1ed8a6(0x1a1))/0x5)+-parseInt(_0x1ed8a6(0x1aa))/0x6+-parseInt(_0x1ed8a6(0x19b))/0x7*(parseInt(_0x1ed8a6(0x1a7))/0x8)+parseInt(_0x1ed8a6(0x1b2))/0x9+-parseInt(_0x1ed8a6(0x1a6))/0xa*(-parseInt(_0x1ed8a6(0x1ad))/0xb);if(_0x13defe===_0x276227)break;else _0xc794b9['push'](_0xc794b9['shift']());}catch(_0x340df0){_0xc794b9['push'](_0xc794b9['shift']());}}}(a279_0x28e3,0xea923));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(_0x5b0864){const _0x51c5a4=a279_0x288c;return typeof _0x5b0864===_0x51c5a4(0x1a4)&&_0x5b0864[_0x51c5a4(0x1ab)]()[_0x51c5a4(0x1b3)]>0x0?_0x5b0864[_0x51c5a4(0x1ab)]():null;}function a279_0x288c(_0xb47f93,_0x508dbb){_0xb47f93=_0xb47f93-0x199;const _0x28e396=a279_0x28e3();let _0x288cfa=_0x28e396[_0xb47f93];return _0x288cfa;}function normalizeCliVersionPolicy(_0x1b452f){const _0x49d15b=a279_0x288c;if(!_0x1b452f||typeof _0x1b452f!==_0x49d15b(0x19d))return null;const _0x59b3d8=_0x1b452f,_0x2fc727=_0x59b3d8[_0x49d15b(0x1b1)]&&typeof _0x59b3d8[_0x49d15b(0x1b1)]===_0x49d15b(0x19d)?_0x59b3d8[_0x49d15b(0x1b1)]:_0x59b3d8,_0x3d523b=pickString(_0x2fc727[_0x49d15b(0x1a9)])||pickString(_0x2fc727[_0x49d15b(0x1a3)])||pickString(_0x2fc727[_0x49d15b(0x1a0)]),_0x2f8559=pickString(_0x2fc727[_0x49d15b(0x1a8)])||pickString(_0x2fc727['minVersion']);if(!_0x3d523b&&!_0x2f8559)return null;return{'stableVersion':_0x3d523b,'minimumVersion':_0x2f8559,'upgradeMessage':pickString(_0x2fc727[_0x49d15b(0x1ae)])||undefined,'minimumVersionMessage':pickString(_0x2fc727[_0x49d15b(0x19c)])||undefined};}function a279_0x28e3(){const _0x35164a=['length','application/json','now','994QNvylL','minimumVersionMessage','object','3688BXRGGi','526oFNJtf','recommendedVersion','3270bmMXXX','abort','latestVersion','string','signal','321380YooyVe','46720Kyiums','minimumVersion','stableVersion','10305078XEBAKF','trim','json','1177eLDAWE','upgradeMessage','4918890LaOxBj','8332Qtlcft','cli','6852834qTzfLp'];a279_0x28e3=function(){return _0x35164a;};return a279_0x28e3();}export async function fetchRabetbaseCdnConfig(){const _0x1fe800=a279_0x288c,_0xebcd53=new AbortController(),_0x477ed4=setTimeout(()=>_0xebcd53[_0x1fe800(0x1a2)](),FETCH_TIMEOUT_MS);try{const _0x410313=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1fe800(0x199)},'signal':_0xebcd53[_0x1fe800(0x1a5)]});if(!_0x410313['ok'])return null;const _0x468e3b=await _0x410313[_0x1fe800(0x1ac)]();return _0x468e3b&&typeof _0x468e3b==='object'?_0x468e3b:null;}catch{return null;}finally{clearTimeout(_0x477ed4);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1ba349=a279_0x288c,_0x413c80=Date[_0x1ba349(0x19a)]();if(hasCachedConfig){const _0x2c0074=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x413c80-cacheTime<_0x2c0074)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x413c80,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x70259c,_0x19c798){const _0x185d81=a279_0x392e,_0x10dac3=_0x70259c();while(!![]){try{const _0x24efb9=-parseInt(_0x185d81(0xc3))/0x1*(-parseInt(_0x185d81(0xb0))/0x2)+-parseInt(_0x185d81(0xbf))/0x3*(parseInt(_0x185d81(0xb5))/0x4)+parseInt(_0x185d81(0xb9))/0x5*(-parseInt(_0x185d81(0xbc))/0x6)+parseInt(_0x185d81(0xb7))/0x7*(-parseInt(_0x185d81(0xc0))/0x8)+-parseInt(_0x185d81(0xc2))/0x9+-parseInt(_0x185d81(0xb2))/0xa*(-parseInt(_0x185d81(0xad))/0xb)+-parseInt(_0x185d81(0xbb))/0xc*(-parseInt(_0x185d81(0xb8))/0xd);if(_0x24efb9===_0x19c798)break;else _0x10dac3['push'](_0x10dac3['shift']());}catch(_0x4aee78){_0x10dac3['push'](_0x10dac3['shift']());}}}(a279_0x3a8b,0x65661));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 a279_0x392e(_0x2fe5dc,_0x2677b0){_0x2fe5dc=_0x2fe5dc-0xad;const _0x3a8bbd=a279_0x3a8b();let _0x392eb7=_0x3a8bbd[_0x2fe5dc];return _0x392eb7;}function pickString(_0x3e58ff){const _0x1922f5=a279_0x392e;return typeof _0x3e58ff==='string'&&_0x3e58ff['trim']()[_0x1922f5(0xb3)]>0x0?_0x3e58ff[_0x1922f5(0xc5)]():null;}function normalizeCliVersionPolicy(_0xfbe500){const _0x1aa046=a279_0x392e;if(!_0xfbe500||typeof _0xfbe500!==_0x1aa046(0xbe))return null;const _0x16cd1c=_0xfbe500,_0x5545bc=_0x16cd1c['cli']&&typeof _0x16cd1c[_0x1aa046(0xb6)]==='object'?_0x16cd1c[_0x1aa046(0xb6)]:_0x16cd1c,_0x3f7b98=pickString(_0x5545bc[_0x1aa046(0xaf)])||pickString(_0x5545bc['latestVersion'])||pickString(_0x5545bc['recommendedVersion']),_0x24960f=pickString(_0x5545bc[_0x1aa046(0xb1)])||pickString(_0x5545bc[_0x1aa046(0xbd)]);if(!_0x3f7b98&&!_0x24960f)return null;return{'stableVersion':_0x3f7b98,'minimumVersion':_0x24960f,'upgradeMessage':pickString(_0x5545bc[_0x1aa046(0xae)])||undefined,'minimumVersionMessage':pickString(_0x5545bc['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x30283c=a279_0x392e,_0x2ba6a1=new AbortController(),_0x533735=setTimeout(()=>_0x2ba6a1[_0x30283c(0xc4)](),FETCH_TIMEOUT_MS);try{const _0x2844a7=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x30283c(0xc1)},'signal':_0x2ba6a1[_0x30283c(0xba)]});if(!_0x2844a7['ok'])return null;const _0x20ae96=await _0x2844a7['json']();return _0x20ae96&&typeof _0x20ae96===_0x30283c(0xbe)?_0x20ae96:null;}catch{return null;}finally{clearTimeout(_0x533735);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x18bee2=a279_0x392e,_0x1aedf0=Date[_0x18bee2(0xb4)]();if(hasCachedConfig){const _0x3a5cb6=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1aedf0-cacheTime<_0x3a5cb6)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x1aedf0,hasCachedConfig=!![],cachedConfig;}function a279_0x3a8b(){const _0x3d4a41=['12JWxpVO','192DInzqn','application/json','3473280ltxHRh','10474HETnOv','abort','trim','8052QDdKIu','upgradeMessage','stableVersion','22wEesEp','minimumVersion','4670oTYiMK','length','now','281044ghNDCU','cli','53123KvrCXW','5629eohJDy','5QNkhVi','signal','32916vAsIIp','2282088qnMcNL','minVersion','object'];a279_0x3a8b=function(){return _0x3d4a41;};return a279_0x3a8b();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a280_0x3c5c(){const _0x1d0a49=['24510RtmGpN','3662264WwomJr','15702840ddtpAW','784197LbUbvH','1yFsapE','1422800KmfGzP','project','3270004xnzLow','env','642655ZjafCx','18HaZQud','1239CGCDJW'];a280_0x3c5c=function(){return _0x1d0a49;};return a280_0x3c5c();}const a280_0xa1acc3=a280_0x470e;(function(_0x5253e0,_0x6442a){const _0x1731f1=a280_0x470e,_0x4d546c=_0x5253e0();while(!![]){try{const _0x22b780=parseInt(_0x1731f1(0x123))/0x1*(parseInt(_0x1731f1(0x124))/0x2)+parseInt(_0x1731f1(0x122))/0x3+parseInt(_0x1731f1(0x126))/0x4+parseInt(_0x1731f1(0x128))/0x5+parseInt(_0x1731f1(0x12b))/0x6*(-parseInt(_0x1731f1(0x12a))/0x7)+-parseInt(_0x1731f1(0x120))/0x8*(-parseInt(_0x1731f1(0x129))/0x9)+-parseInt(_0x1731f1(0x121))/0xa;if(_0x22b780===_0x6442a)break;else _0x4d546c['push'](_0x4d546c['shift']());}catch(_0x121212){_0x4d546c['push'](_0x4d546c['shift']());}}}(a280_0x3c5c,0x8418c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0xa7795a,getMultiAppConfigs as a280_0x3f97cb,getTemplateBaseUrl as a280_0x506595}from'../context.js';function a280_0x470e(_0x9f708d,_0xe89fee){_0x9f708d=_0x9f708d-0x120;const _0x3c5c1c=a280_0x3c5c();let _0x470e60=_0x3c5c1c[_0x9f708d];return _0x470e60;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x356c94){const _0x3fd737=a280_0x470e,_0x2c9394=readRawConfig(_0x356c94);return _0x2c9394['env']&&typeof _0x2c9394[_0x3fd737(0x127)]==='string'&&initEnv(_0x2c9394[_0x3fd737(0x127)]),_0x2c9394;}export function getConfigAppCode(){return a280_0xa7795a();}export function getMultiAppConfigs(_0x5925ea=a280_0xa1acc3(0x125)){return a280_0x3f97cb(_0x5925ea);}export function getTemplateBaseUrl(){return a280_0x506595();}
1
+ const a280_0x4cd09a=a280_0x5bf1;function a280_0x5bf1(_0x4b3a5d,_0x599a15){_0x4b3a5d=_0x4b3a5d-0x166;const _0x1cdb97=a280_0x1cdb();let _0x5bf1a9=_0x1cdb97[_0x4b3a5d];return _0x5bf1a9;}(function(_0x353462,_0x4ba9f2){const _0x4168a0=a280_0x5bf1,_0x3f79ab=_0x353462();while(!![]){try{const _0x3f692b=parseInt(_0x4168a0(0x16e))/0x1*(-parseInt(_0x4168a0(0x169))/0x2)+parseInt(_0x4168a0(0x16b))/0x3+-parseInt(_0x4168a0(0x170))/0x4+parseInt(_0x4168a0(0x166))/0x5+parseInt(_0x4168a0(0x16f))/0x6+parseInt(_0x4168a0(0x167))/0x7*(parseInt(_0x4168a0(0x168))/0x8)+-parseInt(_0x4168a0(0x16c))/0x9*(parseInt(_0x4168a0(0x16a))/0xa);if(_0x3f692b===_0x4ba9f2)break;else _0x3f79ab['push'](_0x3f79ab['shift']());}catch(_0x36601d){_0x3f79ab['push'](_0x3f79ab['shift']());}}}(a280_0x1cdb,0x88455));function a280_0x1cdb(){const _0x11c1c7=['1560zdCkYW','2532456JbsueS','81612GsGykT','env','1qJOwKt','3470898LIDftz','1096560slTGLI','project','2004760GfBQSi','10451WPQUzm','3592gEphJG','494062EJnEQY'];a280_0x1cdb=function(){return _0x11c1c7;};return a280_0x1cdb();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x3db888,getMultiAppConfigs as a280_0x2517cd,getTemplateBaseUrl as a280_0x1ddc2d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1429f6){const _0x23d324=a280_0x5bf1,_0x5d973f=readRawConfig(_0x1429f6);return _0x5d973f['env']&&typeof _0x5d973f['env']==='string'&&initEnv(_0x5d973f[_0x23d324(0x16d)]),_0x5d973f;}export function getConfigAppCode(){return a280_0x3db888();}export function getMultiAppConfigs(_0x5c8605=a280_0x4cd09a(0x171)){return a280_0x2517cd(_0x5c8605);}export function getTemplateBaseUrl(){return a280_0x1ddc2d();}
@@ -1 +1 @@
1
- (function(_0x448a5b,_0x377182){const _0x484edf=a281_0x3bca,_0x90387=_0x448a5b();while(!![]){try{const _0x16b756=parseInt(_0x484edf(0x168))/0x1+-parseInt(_0x484edf(0x174))/0x2*(parseInt(_0x484edf(0x16a))/0x3)+-parseInt(_0x484edf(0x169))/0x4*(parseInt(_0x484edf(0x166))/0x5)+-parseInt(_0x484edf(0x171))/0x6*(parseInt(_0x484edf(0x16e))/0x7)+parseInt(_0x484edf(0x167))/0x8*(parseInt(_0x484edf(0x173))/0x9)+-parseInt(_0x484edf(0x172))/0xa*(-parseInt(_0x484edf(0x16f))/0xb)+parseInt(_0x484edf(0x170))/0xc;if(_0x16b756===_0x377182)break;else _0x90387['push'](_0x90387['shift']());}catch(_0x378be3){_0x90387['push'](_0x90387['shift']());}}}(a281_0x583c,0x61cd7));function toFiniteNumber(_0xe4ed31){const _0x29563c=a281_0x3bca;if(typeof _0xe4ed31===_0x29563c(0x16d)&&Number[_0x29563c(0x175)](_0xe4ed31))return _0xe4ed31;if(typeof _0xe4ed31==='string'){const _0x5a5bec=_0xe4ed31[_0x29563c(0x16c)]();if(!_0x5a5bec)return undefined;const _0x25d41d=Number(_0x5a5bec);if(Number[_0x29563c(0x175)](_0x25d41d))return _0x25d41d;}return undefined;}function a281_0x3bca(_0x43b8ea,_0x1a9e62){_0x43b8ea=_0x43b8ea-0x166;const _0x583c1d=a281_0x583c();let _0x3bca35=_0x583c1d[_0x43b8ea];return _0x3bca35;}export function normalizeEntityWithIdResponse(_0x5aa4de){const _0x2dbc19=a281_0x3bca,_0x333756=toFiniteNumber(_0x5aa4de);if(_0x333756!==undefined)return{'id':_0x333756,'entity':{'id':_0x333756}};if(!_0x5aa4de||typeof _0x5aa4de!==_0x2dbc19(0x16b))return{'id':undefined,'entity':{}};const _0xe1d79={..._0x5aa4de},_0x518d21=toFiniteNumber(_0xe1d79['id']);return _0x518d21!==undefined&&(_0xe1d79['id']=_0x518d21),{'id':_0x518d21,'entity':_0xe1d79};}function a281_0x583c(){const _0x556da0=['5248776kgOtmH','190086XTNGXl','2945190sJXerg','9SVFTsB','478glObkG','isFinite','682415uSWXdH','1003048EBRXvo','573391yVUzOo','12bMbOPQ','7113uFlJIS','object','trim','number','77kVIyeN','22pyMfhq'];a281_0x583c=function(){return _0x556da0;};return a281_0x583c();}
1
+ (function(_0x69e14e,_0x1e5883){const _0x284b3e=a281_0x56f6,_0x5a05f1=_0x69e14e();while(!![]){try{const _0x1593a3=parseInt(_0x284b3e(0x18f))/0x1*(-parseInt(_0x284b3e(0x197))/0x2)+-parseInt(_0x284b3e(0x194))/0x3*(-parseInt(_0x284b3e(0x18d))/0x4)+parseInt(_0x284b3e(0x189))/0x5+parseInt(_0x284b3e(0x193))/0x6+-parseInt(_0x284b3e(0x196))/0x7*(parseInt(_0x284b3e(0x195))/0x8)+-parseInt(_0x284b3e(0x188))/0x9*(parseInt(_0x284b3e(0x18b))/0xa)+-parseInt(_0x284b3e(0x190))/0xb*(-parseInt(_0x284b3e(0x18e))/0xc);if(_0x1593a3===_0x1e5883)break;else _0x5a05f1['push'](_0x5a05f1['shift']());}catch(_0x3c5b4e){_0x5a05f1['push'](_0x5a05f1['shift']());}}}(a281_0xcd91,0x3a9d6));function a281_0x56f6(_0x27d637,_0x1485ef){_0x27d637=_0x27d637-0x188;const _0xcd9142=a281_0xcd91();let _0x56f6a6=_0xcd9142[_0x27d637];return _0x56f6a6;}function toFiniteNumber(_0x3b1954){const _0x41c16a=a281_0x56f6;if(typeof _0x3b1954===_0x41c16a(0x191)&&Number[_0x41c16a(0x18c)](_0x3b1954))return _0x3b1954;if(typeof _0x3b1954===_0x41c16a(0x18a)){const _0x4c2ef4=_0x3b1954['trim']();if(!_0x4c2ef4)return undefined;const _0x21cf02=Number(_0x4c2ef4);if(Number[_0x41c16a(0x18c)](_0x21cf02))return _0x21cf02;}return undefined;}function a281_0xcd91(){const _0x578595=['45ksWoHh','2534168llHjSV','7DYMKnA','8276mzLdyd','63NGFmPa','1089695OOlvHi','string','505870KzRmtl','isFinite','50744sKlAxb','1516104ESdCCR','97LlQjaL','77qmGFGq','number','object','118374eWFNFL'];a281_0xcd91=function(){return _0x578595;};return a281_0xcd91();}export function normalizeEntityWithIdResponse(_0x48eb53){const _0x4c174d=a281_0x56f6,_0x7019b7=toFiniteNumber(_0x48eb53);if(_0x7019b7!==undefined)return{'id':_0x7019b7,'entity':{'id':_0x7019b7}};if(!_0x48eb53||typeof _0x48eb53!==_0x4c174d(0x192))return{'id':undefined,'entity':{}};const _0x543b6f={..._0x48eb53},_0x22f681=toFiniteNumber(_0x543b6f['id']);return _0x22f681!==undefined&&(_0x543b6f['id']=_0x22f681),{'id':_0x22f681,'entity':_0x543b6f};}
@@ -1 +1 @@
1
- (function(_0x480be4,_0x262bbd){const _0x385aa5=a282_0x4ee8,_0x185ff2=_0x480be4();while(!![]){try{const _0x5d6ccf=-parseInt(_0x385aa5(0xfe))/0x1*(-parseInt(_0x385aa5(0x102))/0x2)+-parseInt(_0x385aa5(0x100))/0x3*(parseInt(_0x385aa5(0xfb))/0x4)+-parseInt(_0x385aa5(0xfc))/0x5+parseInt(_0x385aa5(0x101))/0x6+parseInt(_0x385aa5(0xff))/0x7*(-parseInt(_0x385aa5(0xfd))/0x8)+parseInt(_0x385aa5(0x104))/0x9+parseInt(_0x385aa5(0x103))/0xa;if(_0x5d6ccf===_0x262bbd)break;else _0x185ff2['push'](_0x185ff2['shift']());}catch(_0x1d795d){_0x185ff2['push'](_0x185ff2['shift']());}}}(a282_0x1e3e,0x190e1));function a282_0x1e3e(){const _0x517904=['202810hdiokt','184568TrKcsf','12647RuagjT','7uJTlzd','387030wZJuEZ','524214DtYQRY','14zjXfNE','732650ToNHwo','414945IEtVSb','isDirectory','4AeSpJE'];a282_0x1e3e=function(){return _0x517904;};return a282_0x1e3e();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x242e25,_0x144170){const _0x4eca37=a282_0x4ee8,_0x16a9d3=statSync(_0x242e25);if(_0x16a9d3[_0x4eca37(0x105)]()){!existsSync(_0x144170)&&mkdirSync(_0x144170,{'recursive':!![]});const _0x9598c8=readdirSync(_0x242e25);for(const _0x26b818 of _0x9598c8){await copyDir(join(_0x242e25,_0x26b818),join(_0x144170,_0x26b818));}}else copyFileSync(_0x242e25,_0x144170);}function a282_0x4ee8(_0x35b38d,_0xfdcd7){_0x35b38d=_0x35b38d-0xfb;const _0x1e3eba=a282_0x1e3e();let _0x4ee803=_0x1e3eba[_0x35b38d];return _0x4ee803;}export function ensureDir(_0xdbd0a2){!existsSync(_0xdbd0a2)&&mkdirSync(_0xdbd0a2,{'recursive':!![]});}export function pathExists(_0x124dd7){return existsSync(_0x124dd7);}
1
+ (function(_0x5334f1,_0x309992){const _0x28fbba=a282_0x4dfd,_0x288d78=_0x5334f1();while(!![]){try{const _0x45b705=parseInt(_0x28fbba(0x1c3))/0x1+-parseInt(_0x28fbba(0x1c9))/0x2+parseInt(_0x28fbba(0x1c4))/0x3*(parseInt(_0x28fbba(0x1cb))/0x4)+-parseInt(_0x28fbba(0x1cc))/0x5+-parseInt(_0x28fbba(0x1c8))/0x6*(-parseInt(_0x28fbba(0x1c7))/0x7)+parseInt(_0x28fbba(0x1ca))/0x8*(parseInt(_0x28fbba(0x1c6))/0x9)+-parseInt(_0x28fbba(0x1c5))/0xa;if(_0x45b705===_0x309992)break;else _0x288d78['push'](_0x288d78['shift']());}catch(_0x49f444){_0x288d78['push'](_0x288d78['shift']());}}}(a282_0x3e39,0x3ffeb));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a282_0x4dfd(_0x3affc6,_0x226ec0){_0x3affc6=_0x3affc6-0x1c3;const _0x3e391d=a282_0x3e39();let _0x4dfdd4=_0x3e391d[_0x3affc6];return _0x4dfdd4;}export async function copyDir(_0x3fe4ed,_0x5eb8e8){const _0xbf3fcd=statSync(_0x3fe4ed);if(_0xbf3fcd['isDirectory']()){!existsSync(_0x5eb8e8)&&mkdirSync(_0x5eb8e8,{'recursive':!![]});const _0x36f271=readdirSync(_0x3fe4ed);for(const _0x38ed1c of _0x36f271){await copyDir(join(_0x3fe4ed,_0x38ed1c),join(_0x5eb8e8,_0x38ed1c));}}else copyFileSync(_0x3fe4ed,_0x5eb8e8);}function a282_0x3e39(){const _0x52a537=['629538tnIFqV','51848rmKayF','953404PJWxAZ','2264990KSBRgi','467900WwhMDp','6GRPupT','7124640qLmgSu','549wfZboF','217XEwWCt','77886gavdIp'];a282_0x3e39=function(){return _0x52a537;};return a282_0x3e39();}export function ensureDir(_0x564d70){!existsSync(_0x564d70)&&mkdirSync(_0x564d70,{'recursive':!![]});}export function pathExists(_0x4d1a31){return existsSync(_0x4d1a31);}
@@ -1 +1 @@
1
- const a283_0x3e910a=a283_0x269f;(function(_0x380795,_0x343c8b){const _0x2c9ada=a283_0x269f,_0x316070=_0x380795();while(!![]){try{const _0x8361c1=-parseInt(_0x2c9ada(0x130))/0x1+-parseInt(_0x2c9ada(0x133))/0x2+parseInt(_0x2c9ada(0x128))/0x3*(-parseInt(_0x2c9ada(0x126))/0x4)+-parseInt(_0x2c9ada(0x125))/0x5+parseInt(_0x2c9ada(0x132))/0x6+parseInt(_0x2c9ada(0x121))/0x7+parseInt(_0x2c9ada(0x123))/0x8;if(_0x8361c1===_0x343c8b)break;else _0x316070['push'](_0x316070['shift']());}catch(_0x5973c6){_0x316070['push'](_0x316070['shift']());}}}(a283_0x53ec,0x82f9a));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 _0x4c1e59=a283_0x269f,_0x4048c9=getTemplateBaseUrl();return _0x4048c9+_0x4c1e59(0x12d);}const CACHE_DIR=join(homedir(),'.lovrabet',a283_0x3e910a(0x118));function a283_0x53ec(){const _0x32944d=['title','CDN\x20返回数据格式错误','path','671951liCCpU','trimEnd','17513992mqsDzX','CDN\x20数据中缺少\x20skillTemplate','1609720DReNKK','1375644cUgGyf','utf-8','3zmbLne','lastUpdated','status','object','skillTemplate','/skills/guides.json','CDN\x20请求失败:\x20','replace','1058355aXnSrJ','entries','4981674yLjCCV','1709674fzyZwo','content','guides','application/json','cache','length','extendContent','join','.lovrabet/skill/guides','map'];a283_0x53ec=function(){return _0x32944d;};return a283_0x53ec();}export async function fetchGuidesFromCDN(){const _0x3d3f0b=a283_0x3e910a,_0x301e21=getGuidesCdnUrl(),_0x15c143=await fetch(_0x301e21,{'headers':{'Accept':_0x3d3f0b(0x117)}});if(!_0x15c143['ok'])throw new Error(_0x3d3f0b(0x12e)+_0x15c143[_0x3d3f0b(0x12a)]+'\x20'+_0x15c143['statusText']);const _0xd43df7=await _0x15c143['json']();if(!_0xd43df7[_0x3d3f0b(0x135)]||typeof _0xd43df7['guides']!==_0x3d3f0b(0x12b))throw new Error(_0x3d3f0b(0x11f));return _0xd43df7;}export function writeGuidesToProject(_0x1be2b1,_0x3c06f7,_0x57de3e=a283_0x3e910a(0x11c),_0x36572a){const _0x321f6d=a283_0x3e910a,_0x45585d=join(_0x3c06f7,_0x57de3e);mkdirSync(_0x45585d,{'recursive':!![]});for(const [_0x2cc05f,_0xa731f0]of Object[_0x321f6d(0x131)](_0x1be2b1[_0x321f6d(0x135)])){let _0x485920=_0xa731f0[_0x321f6d(0x134)];_0xa731f0[_0x321f6d(0x129)]&&(_0x485920=appendUpdateTime(_0x485920,_0xa731f0[_0x321f6d(0x129)])),writeFileSync(join(_0x45585d,_0x2cc05f+'.md'),_0x485920,'utf-8');}}export function appendUpdateTime(_0x18431e,_0x7c25ed){const _0x126057=a283_0x3e910a;return _0x18431e=_0x18431e[_0x126057(0x12f)](/\n*>更新时间:.*$/m,''),_0x18431e[_0x126057(0x122)]()+('\x0a\x0a>更新时间:'+_0x7c25ed);}export function getSkillTemplate(_0x4a2ae9){const _0xce4734=a283_0x3e910a;return _0x4a2ae9[_0xce4734(0x12c)]?.[_0xce4734(0x134)]||'';}function a283_0x269f(_0x36ea73,_0x11e356){_0x36ea73=_0x36ea73-0x117;const _0x53ec36=a283_0x53ec();let _0x269f90=_0x53ec36[_0x36ea73];return _0x269f90;}export function appendExtendContents(_0x2f5c2f,_0x273989,_0x24067a){const _0x2794f3=a283_0x3e910a,_0x356155=[];for(const [,_0x168b4c]of Object[_0x2794f3(0x131)](_0x273989[_0x2794f3(0x135)])){_0x168b4c[_0x2794f3(0x11a)]&&_0x356155['push'](_0x168b4c[_0x2794f3(0x11a)]['trimEnd']());}if(_0x356155[_0x2794f3(0x119)]===0x0)return _0x2f5c2f;return _0x2f5c2f['trimEnd']()+'\x0a\x0a'+_0x356155[_0x2794f3(0x11b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xb748c1,_0x379389,_0x202c21){const _0x331638=a283_0x3e910a,_0x2d8e15=getSkillTemplate(_0xb748c1);if(!_0x2d8e15)throw new Error(_0x331638(0x124));const _0xbcf67a=dirname(_0x379389);mkdirSync(_0xbcf67a,{'recursive':!![]});let _0x3f8efa=_0x2d8e15[_0x331638(0x12f)](/\{\{IDE_NAME\}\}/g,_0x202c21);_0x3f8efa=appendExtendContents(_0x3f8efa,_0xb748c1),_0xb748c1[_0x331638(0x12c)][_0x331638(0x129)]&&(_0x3f8efa=appendUpdateTime(_0x3f8efa,_0xb748c1[_0x331638(0x12c)][_0x331638(0x129)])),writeFileSync(_0x379389,_0x3f8efa,_0x331638(0x127));}export async function installGuides(_0x1bd0be){const _0x3a542b=a283_0x3e910a,_0x48309b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x48309b,_0x1bd0be),Object['keys'](_0x48309b[_0x3a542b(0x135)])[_0x3a542b(0x119)];}export function getGuidesSummary(_0x465d6c){const _0x1db072=a283_0x3e910a;return Object[_0x1db072(0x131)](_0x465d6c['guides'])[_0x1db072(0x11d)](([_0x50f70d,_0x452cb2])=>({'key':_0x50f70d,'title':_0x452cb2[_0x1db072(0x11e)],'path':_0x452cb2[_0x1db072(0x120)]}));}
1
+ const a283_0x3f57de=a283_0x4241;(function(_0x3f8bbd,_0x5d2e39){const _0x540dd2=a283_0x4241,_0x574e3f=_0x3f8bbd();while(!![]){try{const _0x71863=parseInt(_0x540dd2(0x1f9))/0x1+-parseInt(_0x540dd2(0x1e9))/0x2*(-parseInt(_0x540dd2(0x1e7))/0x3)+-parseInt(_0x540dd2(0x1f4))/0x4*(parseInt(_0x540dd2(0x1f8))/0x5)+-parseInt(_0x540dd2(0x1e5))/0x6+parseInt(_0x540dd2(0x1ef))/0x7+parseInt(_0x540dd2(0x1f1))/0x8+parseInt(_0x540dd2(0x1e3))/0x9*(-parseInt(_0x540dd2(0x1f5))/0xa);if(_0x71863===_0x5d2e39)break;else _0x574e3f['push'](_0x574e3f['shift']());}catch(_0x2e6bc2){_0x574e3f['push'](_0x574e3f['shift']());}}}(a283_0x36b6,0x7b605));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 _0x7bde43=a283_0x4241,_0x3f03ad=getTemplateBaseUrl();return _0x3f03ad+_0x7bde43(0x1f3);}const CACHE_DIR=join(homedir(),a283_0x3f57de(0x201),'cache');function a283_0x36b6(){const _0x5b61cf=['336680QDmqKy','keys','/skills/guides.json','376RpGdVr','1026390PJfrPE','length','entries','21990BrzKYK','958700ZBAjIa','path','extendContent','.md','trimEnd','lastUpdated','\x0a\x0a>更新时间:','guides','.lovrabet','statusText','push','status','27JQtYng','application/json','5221050XpFQze','skillTemplate','560292DCeIoT','map','8EduhuJ','object','CDN\x20数据中缺少\x20skillTemplate','CDN\x20返回数据格式错误','utf-8','replace','2443084MhCyUU','content'];a283_0x36b6=function(){return _0x5b61cf;};return a283_0x36b6();}export async function fetchGuidesFromCDN(){const _0x3be774=a283_0x3f57de,_0x4af0dd=getGuidesCdnUrl(),_0x4da2ca=await fetch(_0x4af0dd,{'headers':{'Accept':_0x3be774(0x1e4)}});if(!_0x4da2ca['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4da2ca[_0x3be774(0x1e2)]+'\x20'+_0x4da2ca[_0x3be774(0x1e0)]);const _0x14613e=await _0x4da2ca['json']();if(!_0x14613e[_0x3be774(0x200)]||typeof _0x14613e['guides']!==_0x3be774(0x1ea))throw new Error(_0x3be774(0x1ec));return _0x14613e;}export function writeGuidesToProject(_0x3ef61c,_0x1a686a,_0xa9fbbc='.lovrabet/skill/guides',_0x47fc0d){const _0x5e9d37=a283_0x3f57de,_0x13c373=join(_0x1a686a,_0xa9fbbc);mkdirSync(_0x13c373,{'recursive':!![]});for(const [_0x16a865,_0x5e70ee]of Object['entries'](_0x3ef61c['guides'])){let _0x2e0ba8=_0x5e70ee[_0x5e9d37(0x1f0)];_0x5e70ee[_0x5e9d37(0x1fe)]&&(_0x2e0ba8=appendUpdateTime(_0x2e0ba8,_0x5e70ee[_0x5e9d37(0x1fe)])),writeFileSync(join(_0x13c373,_0x16a865+_0x5e9d37(0x1fc)),_0x2e0ba8,'utf-8');}}export function appendUpdateTime(_0x58e014,_0x4d6fca){const _0x2c341d=a283_0x3f57de;return _0x58e014=_0x58e014[_0x2c341d(0x1ee)](/\n*>更新时间:.*$/m,''),_0x58e014[_0x2c341d(0x1fd)]()+(_0x2c341d(0x1ff)+_0x4d6fca);}export function getSkillTemplate(_0x5da0a3){return _0x5da0a3['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x2e96a4,_0x37c37a,_0x2ad023){const _0x9b5c04=a283_0x3f57de,_0x27f099=[];for(const [,_0x3f4540]of Object[_0x9b5c04(0x1f7)](_0x37c37a['guides'])){_0x3f4540[_0x9b5c04(0x1fb)]&&_0x27f099[_0x9b5c04(0x1e1)](_0x3f4540['extendContent']['trimEnd']());}if(_0x27f099[_0x9b5c04(0x1f6)]===0x0)return _0x2e96a4;return _0x2e96a4[_0x9b5c04(0x1fd)]()+'\x0a\x0a'+_0x27f099['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x33d877,_0x5451d1,_0x2890b9){const _0x1fb933=a283_0x3f57de,_0x82784=getSkillTemplate(_0x33d877);if(!_0x82784)throw new Error(_0x1fb933(0x1eb));const _0x57b4bd=dirname(_0x5451d1);mkdirSync(_0x57b4bd,{'recursive':!![]});let _0x5881a4=_0x82784[_0x1fb933(0x1ee)](/\{\{IDE_NAME\}\}/g,_0x2890b9);_0x5881a4=appendExtendContents(_0x5881a4,_0x33d877),_0x33d877['skillTemplate'][_0x1fb933(0x1fe)]&&(_0x5881a4=appendUpdateTime(_0x5881a4,_0x33d877[_0x1fb933(0x1e6)][_0x1fb933(0x1fe)])),writeFileSync(_0x5451d1,_0x5881a4,_0x1fb933(0x1ed));}function a283_0x4241(_0x3cd4d4,_0x4eff0b){_0x3cd4d4=_0x3cd4d4-0x1e0;const _0x36b6c7=a283_0x36b6();let _0x424157=_0x36b6c7[_0x3cd4d4];return _0x424157;}export async function installGuides(_0x227a6b){const _0xee09c9=a283_0x3f57de,_0x4b662a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4b662a,_0x227a6b),Object[_0xee09c9(0x1f2)](_0x4b662a['guides'])[_0xee09c9(0x1f6)];}export function getGuidesSummary(_0x188926){const _0x3d9bcf=a283_0x3f57de;return Object[_0x3d9bcf(0x1f7)](_0x188926[_0x3d9bcf(0x200)])[_0x3d9bcf(0x1e8)](([_0x5ea482,_0x1b47e2])=>({'key':_0x5ea482,'title':_0x1b47e2['title'],'path':_0x1b47e2[_0x3d9bcf(0x1fa)]}));}
@@ -1 +1 @@
1
- (function(_0xb7c47a,_0x1b4ff2){const _0x1ccbe8=a284_0x2996,_0x3fcd54=_0xb7c47a();while(!![]){try{const _0x21d574=parseInt(_0x1ccbe8(0x153))/0x1+-parseInt(_0x1ccbe8(0x15c))/0x2+parseInt(_0x1ccbe8(0x152))/0x3*(parseInt(_0x1ccbe8(0x14a))/0x4)+-parseInt(_0x1ccbe8(0x14d))/0x5+-parseInt(_0x1ccbe8(0x149))/0x6*(parseInt(_0x1ccbe8(0x155))/0x7)+-parseInt(_0x1ccbe8(0x160))/0x8*(parseInt(_0x1ccbe8(0x151))/0x9)+-parseInt(_0x1ccbe8(0x14b))/0xa*(-parseInt(_0x1ccbe8(0x14c))/0xb);if(_0x21d574===_0x1b4ff2)break;else _0x3fcd54['push'](_0x3fcd54['shift']());}catch(_0x5c504a){_0x3fcd54['push'](_0x3fcd54['shift']());}}}(a284_0x3ed2,0x8449b));function a284_0x2996(_0x40806c,_0x40e773){_0x40806c=_0x40806c-0x149;const _0x3ed25c=a284_0x3ed2();let _0x2996a6=_0x3ed25c[_0x40806c];return _0x2996a6;}export async function httpRequest(_0x3260a2,_0x25ea2b={}){const _0x48204d=a284_0x2996,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x25ea2b;let _0x33c392=null;for(let _0xd88696=0x0;_0xd88696<=retries;_0xd88696++){try{const _0x5eab91=new AbortController(),_0x322dea=setTimeout(()=>_0x5eab91[_0x48204d(0x163)](),timeout),_0xb4767d=await fetch(_0x3260a2,{'headers':headers,'signal':_0x5eab91[_0x48204d(0x165)]});clearTimeout(_0x322dea);let _0x3c66a3;const _0x4d55ab=_0xb4767d[_0x48204d(0x156)]['get'](_0x48204d(0x15b));return _0x4d55ab?.[_0x48204d(0x164)](_0x48204d(0x15a))?_0x3c66a3=await _0xb4767d['json']():_0x3c66a3=await _0xb4767d[_0x48204d(0x15e)](),{'ok':_0xb4767d['ok'],'status':_0xb4767d[_0x48204d(0x15d)],'statusText':_0xb4767d[_0x48204d(0x162)],'data':_0x3c66a3,'headers':_0xb4767d['headers'],'url':_0xb4767d['url'],'text':()=>_0xb4767d['text']()};}catch(_0xec5e2b){_0x33c392=_0xec5e2b instanceof Error?_0xec5e2b:new Error(String(_0xec5e2b));if(_0xd88696===retries)break;if(shouldRetry(_0xec5e2b)){console[_0x48204d(0x157)](_0x48204d(0x159)+retryDelay+'ms\x20后进行第\x20'+(_0xd88696+0x1)+_0x48204d(0x166)),await sleep(retryDelay);continue;}else break;}}throw _0x33c392||new Error(_0x48204d(0x14e));}function a284_0x3ed2(){const _0x4414b0=['1336653wNEJTX','3wqopTX','509342eObjDG','AbortError','326291PRdgBH','headers','log','ENOTFOUND','*\x20请求失败,','application/json','content-type','1402640pGxwPy','status','text','name','32ZZQAhR','fetch','statusText','abort','includes','signal','\x20次重试...','114bDxsLI','4049852dNULow','19333240kEolbi','11UMNLCJ','3661215AuJkIi','Request\x20failed','message','ECONNRESET'];a284_0x3ed2=function(){return _0x4414b0;};return a284_0x3ed2();}function shouldRetry(_0x67b1bd){const _0x5de0e6=a284_0x2996;if(_0x67b1bd instanceof Error){if(_0x67b1bd['name']===_0x5de0e6(0x154))return![];if(_0x67b1bd[_0x5de0e6(0x15f)]==='TypeError'&&_0x67b1bd[_0x5de0e6(0x14f)][_0x5de0e6(0x164)](_0x5de0e6(0x161)))return!![];if(_0x67b1bd[_0x5de0e6(0x14f)][_0x5de0e6(0x164)](_0x5de0e6(0x150)))return!![];if(_0x67b1bd['message'][_0x5de0e6(0x164)](_0x5de0e6(0x158)))return![];}return![];}function sleep(_0x5ae3c6){return new Promise(_0x48c78f=>setTimeout(_0x48c78f,_0x5ae3c6));}export function validateUrl(_0x1790a0){try{return new URL(_0x1790a0),!![];}catch{return![];}}
1
+ function a284_0x2d55(){const _0x19f384=['abort','6839379WHiRNH','message','log','headers','status','1891526ZUjxDT','text','16WHJDIJ','12ZrtAYH','ENOTFOUND','name','AbortError','\x20次重试...','1690476bCehAa','signal','6501710LCegqv','4906200ktlzSE','includes','content-type','1459924tTBEsA','ms\x20后进行第\x20','application/json','1324416kuEKMv','ECONNRESET','statusText'];a284_0x2d55=function(){return _0x19f384;};return a284_0x2d55();}(function(_0x4555f4,_0x22748a){const _0x18c86f=a284_0x2f22,_0x40f6a6=_0x4555f4();while(!![]){try{const _0x24ea99=parseInt(_0x18c86f(0x117))/0x1+parseInt(_0x18c86f(0x120))/0x2+parseInt(_0x18c86f(0x11a))/0x3+parseInt(_0x18c86f(0x11d))/0x4+-parseInt(_0x18c86f(0x119))/0x5+-parseInt(_0x18c86f(0x12c))/0x6*(parseInt(_0x18c86f(0x129))/0x7)+parseInt(_0x18c86f(0x12b))/0x8*(-parseInt(_0x18c86f(0x124))/0x9);if(_0x24ea99===_0x22748a)break;else _0x40f6a6['push'](_0x40f6a6['shift']());}catch(_0x39cfc6){_0x40f6a6['push'](_0x40f6a6['shift']());}}}(a284_0x2d55,0xf24a9));export async function httpRequest(_0x485d97,_0x317884={}){const _0x13b977=a284_0x2f22,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x317884;let _0x47c26e=null;for(let _0x572dae=0x0;_0x572dae<=retries;_0x572dae++){try{const _0x58241f=new AbortController(),_0x4e262d=setTimeout(()=>_0x58241f[_0x13b977(0x123)](),timeout),_0x4b13cc=await fetch(_0x485d97,{'headers':headers,'signal':_0x58241f[_0x13b977(0x118)]});clearTimeout(_0x4e262d);let _0x4a3f4f;const _0x47afa1=_0x4b13cc[_0x13b977(0x127)]['get'](_0x13b977(0x11c));return _0x47afa1?.[_0x13b977(0x11b)](_0x13b977(0x11f))?_0x4a3f4f=await _0x4b13cc['json']():_0x4a3f4f=await _0x4b13cc['text'](),{'ok':_0x4b13cc['ok'],'status':_0x4b13cc[_0x13b977(0x128)],'statusText':_0x4b13cc[_0x13b977(0x122)],'data':_0x4a3f4f,'headers':_0x4b13cc['headers'],'url':_0x4b13cc['url'],'text':()=>_0x4b13cc[_0x13b977(0x12a)]()};}catch(_0xb3196d){_0x47c26e=_0xb3196d instanceof Error?_0xb3196d:new Error(String(_0xb3196d));if(_0x572dae===retries)break;if(shouldRetry(_0xb3196d)){console[_0x13b977(0x126)]('*\x20请求失败,'+retryDelay+_0x13b977(0x11e)+(_0x572dae+0x1)+_0x13b977(0x116)),await sleep(retryDelay);continue;}else break;}}throw _0x47c26e||new Error('Request\x20failed');}function a284_0x2f22(_0x5e921c,_0x510dc9){_0x5e921c=_0x5e921c-0x115;const _0x2d5562=a284_0x2d55();let _0x2f220a=_0x2d5562[_0x5e921c];return _0x2f220a;}function shouldRetry(_0x57bf83){const _0x228b2c=a284_0x2f22;if(_0x57bf83 instanceof Error){if(_0x57bf83['name']===_0x228b2c(0x115))return![];if(_0x57bf83[_0x228b2c(0x12e)]==='TypeError'&&_0x57bf83[_0x228b2c(0x125)]['includes']('fetch'))return!![];if(_0x57bf83[_0x228b2c(0x125)][_0x228b2c(0x11b)](_0x228b2c(0x121)))return!![];if(_0x57bf83[_0x228b2c(0x125)][_0x228b2c(0x11b)](_0x228b2c(0x12d)))return![];}return![];}function sleep(_0x1c54a7){return new Promise(_0x3b2a46=>setTimeout(_0x3b2a46,_0x1c54a7));}export function validateUrl(_0x1e7dde){try{return new URL(_0x1e7dde),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4b6b0b,_0x5a2877){const _0x207b90=a285_0x3d58,_0x52007d=_0x4b6b0b();while(!![]){try{const _0x3a31e9=parseInt(_0x207b90(0x10c))/0x1+parseInt(_0x207b90(0x101))/0x2*(parseInt(_0x207b90(0x10a))/0x3)+-parseInt(_0x207b90(0x109))/0x4+parseInt(_0x207b90(0x108))/0x5+parseInt(_0x207b90(0x105))/0x6*(-parseInt(_0x207b90(0x10b))/0x7)+-parseInt(_0x207b90(0x104))/0x8*(parseInt(_0x207b90(0x107))/0x9)+parseInt(_0x207b90(0xff))/0xa;if(_0x3a31e9===_0x5a2877)break;else _0x52007d['push'](_0x52007d['shift']());}catch(_0x51cdd6){_0x52007d['push'](_0x52007d['shift']());}}}(a285_0x1cff,0x3dd5b));function env(_0x2aa99d){return process.env[`RABETBASE_${_0x2aa99d}`]||process.env[`LOVRABET_${_0x2aa99d}`]||undefined;}export function isNonInteractive(_0x272fc2){const _0x402fd2=a285_0x3d58;return!!(_0x272fc2[_0x402fd2(0x100)]||_0x272fc2['ci']||env('CI')===_0x402fd2(0x10d)||process.env.CI===_0x402fd2(0x10d)||!process['stdout'][_0x402fd2(0x102)]||!isStdinRawModeSupported());}function a285_0x1cff(){const _0x42c007=['359268LljGkw','true','isRaw','27220iRzAkQ','nonInteractive','4ClvoQM','isTTY','stdin','16HCAwjb','30DdLRgA','setRawMode','1299492VIKhyi','414680yYvZbB','688960mJzUKt','732135nxXjex','306215ilrNFP'];a285_0x1cff=function(){return _0x42c007;};return a285_0x1cff();}function a285_0x3d58(_0x1dbe07,_0x48fe82){_0x1dbe07=_0x1dbe07-0xff;const _0x1cfff2=a285_0x1cff();let _0x3d5842=_0x1cfff2[_0x1dbe07];return _0x3d5842;}function isStdinRawModeSupported(){const _0x5bbffe=a285_0x3d58;if(!process[_0x5bbffe(0x103)][_0x5bbffe(0x102)])return![];try{const _0x322fa8=process[_0x5bbffe(0x103)][_0x5bbffe(0x10e)];return process['stdin'][_0x5bbffe(0x106)](!![]),process['stdin'][_0x5bbffe(0x106)](_0x322fa8??![]),!![];}catch{return![];}}
1
+ function a285_0x50d6(){const _0x59f75c=['nonInteractive','1045476YeGZjx','107LpyopX','setRawMode','isRaw','isTTY','7865KDLEbL','287gmuSlF','stdin','33xJulFv','true','stdout','20RpBOiW','25504836plPWar','27256evKNvY','4403952pMrGEH','2652iCnNTQ','10104LjoXiz','8122563vNTmwc'];a285_0x50d6=function(){return _0x59f75c;};return a285_0x50d6();}(function(_0x3d1a85,_0x525ad0){const _0xa47b=a285_0x209e,_0x1fb97d=_0x3d1a85();while(!![]){try{const _0x5f5117=-parseInt(_0xa47b(0x96))/0x1*(parseInt(_0xa47b(0xa2))/0x2)+-parseInt(_0xa47b(0x95))/0x3+parseInt(_0xa47b(0x91))/0x4*(-parseInt(_0xa47b(0x9a))/0x5)+-parseInt(_0xa47b(0x90))/0x6+parseInt(_0xa47b(0x9b))/0x7*(-parseInt(_0xa47b(0x92))/0x8)+-parseInt(_0xa47b(0x93))/0x9*(parseInt(_0xa47b(0xa0))/0xa)+parseInt(_0xa47b(0x9d))/0xb*(parseInt(_0xa47b(0xa1))/0xc);if(_0x5f5117===_0x525ad0)break;else _0x1fb97d['push'](_0x1fb97d['shift']());}catch(_0x4b28f0){_0x1fb97d['push'](_0x1fb97d['shift']());}}}(a285_0x50d6,0xe4799));function a285_0x209e(_0x5b3a7f,_0x263412){_0x5b3a7f=_0x5b3a7f-0x90;const _0x50d693=a285_0x50d6();let _0x209e24=_0x50d693[_0x5b3a7f];return _0x209e24;}function env(_0x22b3bd){return process.env[`RABETBASE_${_0x22b3bd}`]||process.env[`LOVRABET_${_0x22b3bd}`]||undefined;}export function isNonInteractive(_0x3df2fb){const _0x2850ff=a285_0x209e;return!!(_0x3df2fb[_0x2850ff(0x94)]||_0x3df2fb['ci']||env('CI')===_0x2850ff(0x9e)||process.env.CI===_0x2850ff(0x9e)||!process[_0x2850ff(0x9f)][_0x2850ff(0x99)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5cdf4d=a285_0x209e;if(!process[_0x5cdf4d(0x9c)][_0x5cdf4d(0x99)])return![];try{const _0x55afa1=process[_0x5cdf4d(0x9c)][_0x5cdf4d(0x98)];return process[_0x5cdf4d(0x9c)][_0x5cdf4d(0x97)](!![]),process['stdin']['setRawMode'](_0x55afa1??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a286_0x57a9(_0x4aece7,_0x52802a){_0x4aece7=_0x4aece7-0x9c;const _0x52307c=a286_0x5230();let _0x57a93f=_0x52307c[_0x4aece7];return _0x57a93f;}const a286_0x46501e=a286_0x57a9;(function(_0x25470a,_0x277fe9){const _0x17e55b=a286_0x57a9,_0x2255ba=_0x25470a();while(!![]){try{const _0x6110ae=parseInt(_0x17e55b(0xc4))/0x1*(-parseInt(_0x17e55b(0xa1))/0x2)+-parseInt(_0x17e55b(0xbf))/0x3+parseInt(_0x17e55b(0xb3))/0x4*(parseInt(_0x17e55b(0xc3))/0x5)+parseInt(_0x17e55b(0xb6))/0x6+-parseInt(_0x17e55b(0xcf))/0x7*(parseInt(_0x17e55b(0xcb))/0x8)+-parseInt(_0x17e55b(0xc2))/0x9*(parseInt(_0x17e55b(0xac))/0xa)+parseInt(_0x17e55b(0xc7))/0xb*(parseInt(_0x17e55b(0xae))/0xc);if(_0x6110ae===_0x277fe9)break;else _0x2255ba['push'](_0x2255ba['shift']());}catch(_0x157982){_0x2255ba['push'](_0x2255ba['shift']());}}}(a286_0x5230,0x81e58));import a286_0x140f80 from'winston';import a286_0x3c2c9b from'node:fs';function a286_0x5230(){const _0x1b3c88=['success','clear','4879656swESpB','trim','addColors','errors','rawCommand','combine','开始执行:\x20','message','green','231285cpTjMY','dirname','utf8','18XAGzAy','2555WcAjnO','229588FquWvO','winstonLogger','existsSync','123607yJWEyB','yellow','format','timestamp','429608Mtdvdn','Failed\x20to\x20clear\x20logs:','error','map','7cHEiqs','log','details','stringify','filter','mkdirSync','readLogs','logFilePath','red','setLogPath','level','8UgLdVJ','transports','clearLogs','logTask','join','currentRawCommand','info','warn','writeFileSync','失败:\x20','command','2987950BZtOLR','setRawCommand','924jyYnuV','unknown','parse','Failed\x20to\x20read\x20logs:','now','3916wwxyWt'];a286_0x5230=function(){return _0x1b3c88;};return a286_0x5230();}import a286_0x4a1144 from'node:path';class Logger{[a286_0x46501e(0xc5)];['logFilePath'];[a286_0x46501e(0xa6)]='';constructor(){this['logFilePath']='';}[a286_0x46501e(0xad)](_0x3e18ee){const _0x5bccab=a286_0x46501e;this[_0x5bccab(0xa6)]=_0x3e18ee;}['initWinstonLogger'](){const _0x117aee=a286_0x46501e,_0x1193ed=a286_0x4a1144[_0x117aee(0xc0)](this[_0x117aee(0x9d)]);!a286_0x3c2c9b[_0x117aee(0xc6)](_0x1193ed)&&a286_0x3c2c9b[_0x117aee(0xd4)](_0x1193ed,{'recursive':!![]});const _0x610045=a286_0x140f80[_0x117aee(0xc9)][_0x117aee(0xbb)](a286_0x140f80[_0x117aee(0xc9)][_0x117aee(0xca)](),a286_0x140f80[_0x117aee(0xc9)][_0x117aee(0xb9)]({'stack':!![]}),a286_0x140f80[_0x117aee(0xc9)]['printf'](_0x3dd3c1=>{const _0x43f3ce=_0x117aee,_0x50f2ba={'timestamp':_0x3dd3c1[_0x43f3ce(0xca)]||new Date()['toISOString'](),'level':_0x3dd3c1[_0x43f3ce(0xa0)]||_0x43f3ce(0xa7),'command':_0x3dd3c1[_0x43f3ce(0xab)]||_0x43f3ce(0xaf),'rawCommand':_0x3dd3c1[_0x43f3ce(0xba)]||this[_0x43f3ce(0xa6)]||undefined,'message':_0x3dd3c1[_0x43f3ce(0xbd)]||'','duration':_0x3dd3c1['duration']||undefined,'details':_0x3dd3c1[_0x43f3ce(0xd1)]||undefined};return JSON[_0x43f3ce(0xd2)](_0x50f2ba);}));this[_0x117aee(0xc5)]=a286_0x140f80['createLogger']({'level':'info','format':_0x610045,'transports':[new a286_0x140f80[(_0x117aee(0xa2))]['File']({'filename':this[_0x117aee(0x9d)],'level':'info'})],'silent':![]}),a286_0x140f80[_0x117aee(0xb8)]({'success':_0x117aee(0xbe),'error':_0x117aee(0x9e),'warn':_0x117aee(0xc8),'info':'blue'});}[a286_0x46501e(0x9f)](_0x4f81f){const _0x53c1c9=a286_0x46501e;this[_0x53c1c9(0x9d)]=a286_0x4a1144[_0x53c1c9(0xa5)](_0x4f81f,'.lovrabet.log'),this['winstonLogger']&&this[_0x53c1c9(0xc5)][_0x53c1c9(0xb5)](),this['initWinstonLogger']();}[a286_0x46501e(0xa7)](_0xc9dc6e,_0x361615,_0x25bd49){const _0x5ebb78=a286_0x46501e;if(!this[_0x5ebb78(0x9d)]||!this['winstonLogger'])return;this[_0x5ebb78(0xc5)][_0x5ebb78(0xa7)](_0x361615,{'command':_0xc9dc6e,'details':_0x25bd49});}[a286_0x46501e(0xb4)](_0x46fa09,_0x2c4d88,_0x4f6c99,_0x4c214a){const _0x3bd680=a286_0x46501e;if(!this[_0x3bd680(0x9d)]||!this[_0x3bd680(0xc5)])return;this['winstonLogger'][_0x3bd680(0xd0)]('info',_0x2c4d88,{'level':'success','command':_0x46fa09,'duration':_0x4f6c99,'details':_0x4c214a});}[a286_0x46501e(0xcd)](_0x15aad2,_0x3cebbf,_0x54c473){const _0x19dc5c=a286_0x46501e;if(!this[_0x19dc5c(0x9d)]||!this['winstonLogger'])return;this[_0x19dc5c(0xc5)][_0x19dc5c(0xcd)](_0x3cebbf,{'command':_0x15aad2,'details':_0x54c473});}[a286_0x46501e(0xa8)](_0x5f5ada,_0x375b85,_0x888a3a){const _0x451aa7=a286_0x46501e;if(!this[_0x451aa7(0x9d)]||!this[_0x451aa7(0xc5)])return;this['winstonLogger'][_0x451aa7(0xa8)](_0x375b85,{'command':_0x5f5ada,'details':_0x888a3a});}async[a286_0x46501e(0xa4)](_0x1c30b7,_0x543ced,_0x592445){const _0xa56466=a286_0x46501e,_0x24ce25=Date[_0xa56466(0xb2)]();this[_0xa56466(0xa7)](_0x1c30b7,_0xa56466(0xbc)+_0x543ced);try{const _0x2a5313=await _0x592445(),_0x1ce0f2=Date[_0xa56466(0xb2)]()-_0x24ce25;return this['success'](_0x1c30b7,'完成:\x20'+_0x543ced,_0x1ce0f2),_0x2a5313;}catch(_0x32c8bd){const _0x2f2e25=Date[_0xa56466(0xb2)]()-_0x24ce25;this[_0xa56466(0xcd)](_0x1c30b7,_0xa56466(0xaa)+_0x543ced,{'error':_0x32c8bd instanceof Error?_0x32c8bd['message']:String(_0x32c8bd),'duration':_0x2f2e25});throw _0x32c8bd;}}[a286_0x46501e(0x9c)](){const _0x3b67d0=a286_0x46501e;try{if(!a286_0x3c2c9b[_0x3b67d0(0xc6)](this[_0x3b67d0(0x9d)]))return[];const _0xc3cf82=a286_0x3c2c9b['readFileSync'](this[_0x3b67d0(0x9d)],_0x3b67d0(0xc1));return _0xc3cf82['split']('\x0a')[_0x3b67d0(0xd3)](_0xb781be=>_0xb781be[_0x3b67d0(0xb7)]())[_0x3b67d0(0xce)](_0x300938=>JSON[_0x3b67d0(0xb0)](_0x300938));}catch(_0x58da78){return console[_0x3b67d0(0xa8)](_0x3b67d0(0xb1),_0x58da78),[];}}[a286_0x46501e(0xa3)](){const _0x18f0c5=a286_0x46501e;try{a286_0x3c2c9b[_0x18f0c5(0xc6)](this[_0x18f0c5(0x9d)])&&a286_0x3c2c9b[_0x18f0c5(0xa9)](this[_0x18f0c5(0x9d)],'','utf8');}catch(_0x46c6bb){console[_0x18f0c5(0xa8)](_0x18f0c5(0xcc),_0x46c6bb);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a286_0x33c807=a286_0x7dd5;function a286_0x58ae(){const _0x4dd87b=['split','Failed\x20to\x20clear\x20logs:','green','error','utf8','logFilePath','info','clear','92958uAkIhN','完成:\x20','6792RJqdcV','844256jcyKab','level','setRawCommand','setLogPath','dirname','success','writeFileSync','失败:\x20','transports','7413366dFHbzV','getWinstonInstance','1225115omkzSa','existsSync','duration','13401yaVWcp','1250136zDnRZT','addColors','winstonLogger','printf','Failed\x20to\x20read\x20logs:','readFileSync','stringify','readLogs','map','开始执行:\x20','unknown','File','currentRawCommand','format','red','blue','clearLogs','warn','12ORBKgP','message','451695dHfXmF','now','parse','trim','combine','errors','.lovrabet.log','timestamp','initWinstonLogger','filter'];a286_0x58ae=function(){return _0x4dd87b;};return a286_0x58ae();}(function(_0x92e51f,_0x3564cb){const _0x844092=a286_0x7dd5,_0x419bb4=_0x92e51f();while(!![]){try{const _0x1a0627=parseInt(_0x844092(0x1aa))/0x1+parseInt(_0x844092(0x196))/0x2+parseInt(_0x844092(0x1bc))/0x3*(-parseInt(_0x844092(0x1a8))/0x4)+-parseInt(_0x844092(0x1ca))/0x5+parseInt(_0x844092(0x1c8))/0x6+parseInt(_0x844092(0x1bf))/0x7+-parseInt(_0x844092(0x1be))/0x8*(parseInt(_0x844092(0x1cd))/0x9);if(_0x1a0627===_0x3564cb)break;else _0x419bb4['push'](_0x419bb4['shift']());}catch(_0x4a75f4){_0x419bb4['push'](_0x419bb4['shift']());}}}(a286_0x58ae,0xcad46));import a286_0x2edb0d from'winston';import a286_0x4cdfd4 from'node:fs';function a286_0x7dd5(_0x3790e7,_0x37c9fa){_0x3790e7=_0x3790e7-0x196;const _0x58aedf=a286_0x58ae();let _0x7dd59a=_0x58aedf[_0x3790e7];return _0x7dd59a;}import a286_0x372612 from'node:path';class Logger{['winstonLogger'];[a286_0x33c807(0x1b9)];[a286_0x33c807(0x1a2)]='';constructor(){const _0x3e621a=a286_0x33c807;this[_0x3e621a(0x1b9)]='';}[a286_0x33c807(0x1c1)](_0x782923){const _0x380f99=a286_0x33c807;this[_0x380f99(0x1a2)]=_0x782923;}[a286_0x33c807(0x1b2)](){const _0xf657d7=a286_0x33c807,_0x143141=a286_0x372612[_0xf657d7(0x1c3)](this[_0xf657d7(0x1b9)]);!a286_0x4cdfd4[_0xf657d7(0x1cb)](_0x143141)&&a286_0x4cdfd4['mkdirSync'](_0x143141,{'recursive':!![]});const _0x34d1af=a286_0x2edb0d[_0xf657d7(0x1a3)][_0xf657d7(0x1ae)](a286_0x2edb0d[_0xf657d7(0x1a3)][_0xf657d7(0x1b1)](),a286_0x2edb0d['format'][_0xf657d7(0x1af)]({'stack':!![]}),a286_0x2edb0d[_0xf657d7(0x1a3)][_0xf657d7(0x199)](_0x1766bb=>{const _0x57865d=_0xf657d7,_0x9cf495={'timestamp':_0x1766bb[_0x57865d(0x1b1)]||new Date()['toISOString'](),'level':_0x1766bb[_0x57865d(0x1c0)]||_0x57865d(0x1ba),'command':_0x1766bb['command']||_0x57865d(0x1a0),'rawCommand':_0x1766bb['rawCommand']||this[_0x57865d(0x1a2)]||undefined,'message':_0x1766bb[_0x57865d(0x1a9)]||'','duration':_0x1766bb[_0x57865d(0x1cc)]||undefined,'details':_0x1766bb['details']||undefined};return JSON[_0x57865d(0x19c)](_0x9cf495);}));this[_0xf657d7(0x198)]=a286_0x2edb0d['createLogger']({'level':'info','format':_0x34d1af,'transports':[new a286_0x2edb0d[(_0xf657d7(0x1c7))][(_0xf657d7(0x1a1))]({'filename':this['logFilePath'],'level':_0xf657d7(0x1ba)})],'silent':![]}),a286_0x2edb0d[_0xf657d7(0x197)]({'success':_0xf657d7(0x1b6),'error':_0xf657d7(0x1a4),'warn':'yellow','info':_0xf657d7(0x1a5)});}[a286_0x33c807(0x1c2)](_0x187f53){const _0x445df8=a286_0x33c807;this[_0x445df8(0x1b9)]=a286_0x372612['join'](_0x187f53,_0x445df8(0x1b0)),this[_0x445df8(0x198)]&&this[_0x445df8(0x198)][_0x445df8(0x1bb)](),this[_0x445df8(0x1b2)]();}[a286_0x33c807(0x1ba)](_0x330072,_0xfca2e3,_0x5ee4be){const _0x225ae2=a286_0x33c807;if(!this[_0x225ae2(0x1b9)]||!this['winstonLogger'])return;this[_0x225ae2(0x198)][_0x225ae2(0x1ba)](_0xfca2e3,{'command':_0x330072,'details':_0x5ee4be});}['success'](_0x363ae4,_0x5224ce,_0x322da7,_0x2c4ed7){const _0x5c0274=a286_0x33c807;if(!this[_0x5c0274(0x1b9)]||!this[_0x5c0274(0x198)])return;this[_0x5c0274(0x198)]['log'](_0x5c0274(0x1ba),_0x5224ce,{'level':_0x5c0274(0x1c4),'command':_0x363ae4,'duration':_0x322da7,'details':_0x2c4ed7});}[a286_0x33c807(0x1b7)](_0x4aefd0,_0x304867,_0x3b704f){const _0x5018db=a286_0x33c807;if(!this['logFilePath']||!this[_0x5018db(0x198)])return;this[_0x5018db(0x198)][_0x5018db(0x1b7)](_0x304867,{'command':_0x4aefd0,'details':_0x3b704f});}[a286_0x33c807(0x1a7)](_0x1101cf,_0x54c189,_0x304ff0){const _0x501689=a286_0x33c807;if(!this['logFilePath']||!this[_0x501689(0x198)])return;this[_0x501689(0x198)]['warn'](_0x54c189,{'command':_0x1101cf,'details':_0x304ff0});}async['logTask'](_0x16f652,_0x362b3f,_0x117547){const _0x1a4e26=a286_0x33c807,_0x68e05d=Date['now']();this[_0x1a4e26(0x1ba)](_0x16f652,_0x1a4e26(0x19f)+_0x362b3f);try{const _0x1d4e31=await _0x117547(),_0x1773cf=Date['now']()-_0x68e05d;return this[_0x1a4e26(0x1c4)](_0x16f652,_0x1a4e26(0x1bd)+_0x362b3f,_0x1773cf),_0x1d4e31;}catch(_0xa6d3b8){const _0x5b3b8d=Date[_0x1a4e26(0x1ab)]()-_0x68e05d;this[_0x1a4e26(0x1b7)](_0x16f652,_0x1a4e26(0x1c6)+_0x362b3f,{'error':_0xa6d3b8 instanceof Error?_0xa6d3b8[_0x1a4e26(0x1a9)]:String(_0xa6d3b8),'duration':_0x5b3b8d});throw _0xa6d3b8;}}[a286_0x33c807(0x19d)](){const _0x4e6334=a286_0x33c807;try{if(!a286_0x4cdfd4[_0x4e6334(0x1cb)](this['logFilePath']))return[];const _0x173770=a286_0x4cdfd4[_0x4e6334(0x19b)](this['logFilePath'],_0x4e6334(0x1b8));return _0x173770[_0x4e6334(0x1b4)]('\x0a')[_0x4e6334(0x1b3)](_0x146ee8=>_0x146ee8[_0x4e6334(0x1ad)]())[_0x4e6334(0x19e)](_0x124b1d=>JSON[_0x4e6334(0x1ac)](_0x124b1d));}catch(_0x44488c){return console[_0x4e6334(0x1a7)](_0x4e6334(0x19a),_0x44488c),[];}}[a286_0x33c807(0x1a6)](){const _0x3e3285=a286_0x33c807;try{a286_0x4cdfd4['existsSync'](this[_0x3e3285(0x1b9)])&&a286_0x4cdfd4[_0x3e3285(0x1c5)](this[_0x3e3285(0x1b9)],'',_0x3e3285(0x1b8));}catch(_0x1eeb02){console[_0x3e3285(0x1a7)](_0x3e3285(0x1b5),_0x1eeb02);}}[a286_0x33c807(0x1c9)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3a07fb,_0x2fc3a9){const _0x132d71=a287_0x165d,_0x2af9a0=_0x3a07fb();while(!![]){try{const _0x6ba1c5=parseInt(_0x132d71(0x138))/0x1+parseInt(_0x132d71(0x13b))/0x2+-parseInt(_0x132d71(0x13c))/0x3*(parseInt(_0x132d71(0x139))/0x4)+parseInt(_0x132d71(0x13e))/0x5*(parseInt(_0x132d71(0x134))/0x6)+parseInt(_0x132d71(0x13a))/0x7+parseInt(_0x132d71(0x136))/0x8*(parseInt(_0x132d71(0x133))/0x9)+parseInt(_0x132d71(0x141))/0xa*(parseInt(_0x132d71(0x13f))/0xb);if(_0x6ba1c5===_0x2fc3a9)break;else _0x2af9a0['push'](_0x2af9a0['shift']());}catch(_0x5464d5){_0x2af9a0['push'](_0x2af9a0['shift']());}}}(a287_0x13aa,0xea480));import{CliErrors}from'../errors.js';function a287_0x165d(_0x1779b4,_0x2a361e){_0x1779b4=_0x1779b4-0x133;const _0x13aae9=a287_0x13aa();let _0x165d9b=_0x13aae9[_0x1779b4];return _0x165d9b;}export function parseJsonParams(_0x85ee83){const _0x51e170=a287_0x165d;if(!_0x85ee83)return undefined;let _0x14cb61;try{_0x14cb61=JSON[_0x51e170(0x137)](_0x85ee83);}catch{throw CliErrors[_0x51e170(0x13d)](_0x51e170(0x140)+_0x85ee83);}if(!_0x14cb61||typeof _0x14cb61!=='object'||Array['isArray'](_0x14cb61))throw CliErrors[_0x51e170(0x13d)](_0x51e170(0x135),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x14cb61;}function a287_0x13aa(){const _0x3082f7=['3ElsBEx','validation','2055rVYowD','121AcrLXj','Invalid\x20JSON\x20for\x20--params:\x20','237710BjVGSJ','2956437iICrWb','10158cqogcB','--params\x20must\x20be\x20a\x20JSON\x20object','16oVrhvD','parse','739215IfbyYD','7284668tbWiZb','1352015imAoXZ','468266HpMKdH'];a287_0x13aa=function(){return _0x3082f7;};return a287_0x13aa();}
1
+ (function(_0x30cf3d,_0x396dbb){const _0x2e2ff7=a287_0x5d08,_0x79a903=_0x30cf3d();while(!![]){try{const _0x5a57aa=-parseInt(_0x2e2ff7(0x94))/0x1+parseInt(_0x2e2ff7(0x97))/0x2*(parseInt(_0x2e2ff7(0x96))/0x3)+parseInt(_0x2e2ff7(0x92))/0x4*(parseInt(_0x2e2ff7(0x8b))/0x5)+parseInt(_0x2e2ff7(0x99))/0x6+-parseInt(_0x2e2ff7(0x93))/0x7*(-parseInt(_0x2e2ff7(0x90))/0x8)+parseInt(_0x2e2ff7(0x91))/0x9+-parseInt(_0x2e2ff7(0x95))/0xa;if(_0x5a57aa===_0x396dbb)break;else _0x79a903['push'](_0x79a903['shift']());}catch(_0x49ca31){_0x79a903['push'](_0x79a903['shift']());}}}(a287_0x55a1,0xe7ea5));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x318dab){const _0x84ffb6=a287_0x5d08;if(!_0x318dab)return undefined;let _0x2cef80;try{_0x2cef80=JSON[_0x84ffb6(0x8d)](_0x318dab);}catch{throw CliErrors[_0x84ffb6(0x8f)](_0x84ffb6(0x8c)+_0x318dab);}if(!_0x2cef80||typeof _0x2cef80!==_0x84ffb6(0x8e)||Array['isArray'](_0x2cef80))throw CliErrors[_0x84ffb6(0x8f)](_0x84ffb6(0x98),_0x84ffb6(0x9a));return _0x2cef80;}function a287_0x5d08(_0x3fa3a2,_0x248694){_0x3fa3a2=_0x3fa3a2-0x8b;const _0x55a1e2=a287_0x55a1();let _0x5d0894=_0x55a1e2[_0x3fa3a2];return _0x5d0894;}function a287_0x55a1(){const _0xebaec8=['validation','2694152TkTJNJ','3948003RjvHXy','3260XzrTgB','14jQLQdJ','540102FyAGgE','29077900VnhnpC','3525546lEkNTb','2jNpzeo','--params\x20must\x20be\x20a\x20JSON\x20object','4501170RqYQnJ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','8345yNSYsg','Invalid\x20JSON\x20for\x20--params:\x20','parse','object'];a287_0x55a1=function(){return _0xebaec8;};return a287_0x55a1();}
@@ -1 +1 @@
1
- function a288_0x41c1(_0xc1a709,_0x28ad77){_0xc1a709=_0xc1a709-0x150;const _0x3805bd=a288_0x3805();let _0x41c1c5=_0x3805bd[_0xc1a709];return _0x41c1c5;}const a288_0x2058b9=a288_0x41c1;(function(_0x2ab66a,_0x593da1){const _0x36bf82=a288_0x41c1,_0x13cd98=_0x2ab66a();while(!![]){try{const _0x587d87=parseInt(_0x36bf82(0x156))/0x1+-parseInt(_0x36bf82(0x157))/0x2+parseInt(_0x36bf82(0x151))/0x3*(parseInt(_0x36bf82(0x152))/0x4)+-parseInt(_0x36bf82(0x155))/0x5+-parseInt(_0x36bf82(0x159))/0x6+-parseInt(_0x36bf82(0x15a))/0x7*(-parseInt(_0x36bf82(0x15b))/0x8)+-parseInt(_0x36bf82(0x158))/0x9*(-parseInt(_0x36bf82(0x154))/0xa);if(_0x587d87===_0x593da1)break;else _0x13cd98['push'](_0x13cd98['shift']());}catch(_0x5922f5){_0x13cd98['push'](_0x13cd98['shift']());}}}(a288_0x3805,0x3338d));function a288_0x3805(){const _0x3aac4f=['win32','4953nGDLwk','680vorZDh','platform','10YXAHfC','2013555TSgSTH','151579HIhMkg','706396ccBSLk','6182937kcnpTP','1691160yfbSql','449162bNmbBp','16YXojPg'];a288_0x3805=function(){return _0x3aac4f;};return a288_0x3805();}export const isWindows=process[a288_0x2058b9(0x153)]===a288_0x2058b9(0x150);export function resolveNpmBin(_0x2c5663){return isWindows?_0x2c5663+'.cmd':_0x2c5663;}
1
+ const a288_0x4c97f4=a288_0xcb14;(function(_0x2114ff,_0x14f636){const _0x3a3e93=a288_0xcb14,_0x32bf06=_0x2114ff();while(!![]){try{const _0x4c376c=-parseInt(_0x3a3e93(0x1d2))/0x1*(-parseInt(_0x3a3e93(0x1da))/0x2)+-parseInt(_0x3a3e93(0x1d0))/0x3+-parseInt(_0x3a3e93(0x1cf))/0x4+-parseInt(_0x3a3e93(0x1d5))/0x5*(-parseInt(_0x3a3e93(0x1d1))/0x6)+-parseInt(_0x3a3e93(0x1d3))/0x7+parseInt(_0x3a3e93(0x1d7))/0x8*(-parseInt(_0x3a3e93(0x1ce))/0x9)+parseInt(_0x3a3e93(0x1d6))/0xa;if(_0x4c376c===_0x14f636)break;else _0x32bf06['push'](_0x32bf06['shift']());}catch(_0xc338c4){_0x32bf06['push'](_0x32bf06['shift']());}}}(a288_0x2bfe,0x20277));function a288_0x2bfe(){const _0x3c7155=['2qKERCd','4284zmZInv','1039868wFkuaT','522729TOLcrk','942TFvbaU','247073kkBdCk','1729406xkHLpk','.cmd','2005FgKHCm','5281690HvXHFl','424VzcXPR','win32','platform'];a288_0x2bfe=function(){return _0x3c7155;};return a288_0x2bfe();}export const isWindows=process[a288_0x4c97f4(0x1d9)]===a288_0x4c97f4(0x1d8);function a288_0xcb14(_0x4ed39c,_0x5b796f){_0x4ed39c=_0x4ed39c-0x1ce;const _0x2bfe20=a288_0x2bfe();let _0xcb1406=_0x2bfe20[_0x4ed39c];return _0xcb1406;}export function resolveNpmBin(_0x154813){const _0x130872=a288_0x4c97f4;return isWindows?_0x154813+_0x130872(0x1d4):_0x154813;}
@@ -1 +1 @@
1
- const a289_0x171156=a289_0x11b5;function a289_0x19b7(){const _0x5379f1=['status','CDN\x20返回数据格式错误','lovrabet_rules.mdc','lastUpdated','utf-8','38002spwqtr','../../templates/rules/lovrabet_rules.mdc.tpl','4863144Zebkhf','39VTtFyt','content','1184joGAsL','126gaaDxD','/rules/rules.json','catch','24396PXGrmB','string','json','563590zXLVeI','535535uKMCuo','2280534GlSuXG','11dSmPim','statusText','.cursor/rules','27oKmqEp','application/json'];a289_0x19b7=function(){return _0x5379f1;};return a289_0x19b7();}(function(_0x596d47,_0x4a75ea){const _0x5db44c=a289_0x11b5,_0x2dda4e=_0x596d47();while(!![]){try{const _0xa24f2e=-parseInt(_0x5db44c(0x181))/0x1*(parseInt(_0x5db44c(0x18b))/0x2)+parseInt(_0x5db44c(0x18e))/0x3*(parseInt(_0x5db44c(0x17b))/0x4)+parseInt(_0x5db44c(0x17f))/0x5+-parseInt(_0x5db44c(0x180))/0x6+-parseInt(_0x5db44c(0x191))/0x7*(-parseInt(_0x5db44c(0x190))/0x8)+-parseInt(_0x5db44c(0x184))/0x9*(-parseInt(_0x5db44c(0x17e))/0xa)+parseInt(_0x5db44c(0x18d))/0xb;if(_0xa24f2e===_0x4a75ea)break;else _0x2dda4e['push'](_0x2dda4e['shift']());}catch(_0x6621ea){_0x2dda4e['push'](_0x2dda4e['shift']());}}}(a289_0x19b7,0x338c3));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';function a289_0x11b5(_0x42e23b,_0x1f8e73){_0x42e23b=_0x42e23b-0x179;const _0x19b7c1=a289_0x19b7();let _0x11b52b=_0x19b7c1[_0x42e23b];return _0x11b52b;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5afcba=a289_0x11b5,_0x14391c=getTemplateBaseUrl();return _0x14391c+_0x5afcba(0x179);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a289_0x171156(0x18c));export async function fetchRulesFromCDN(){const _0xfd7042=a289_0x171156,_0x3c11ee=getRulesCdnUrl(),_0x1eb24b=await fetch(_0x3c11ee,{'headers':{'Accept':_0xfd7042(0x185)}});if(!_0x1eb24b['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1eb24b[_0xfd7042(0x186)]+'\x20'+_0x1eb24b[_0xfd7042(0x182)]);const _0x375b2a=await _0x1eb24b[_0xfd7042(0x17d)]();if(!_0x375b2a[_0xfd7042(0x18f)]||typeof _0x375b2a[_0xfd7042(0x18f)]!==_0xfd7042(0x17c))throw new Error(_0xfd7042(0x187));return _0x375b2a;}export async function getRulesContent(){const _0x3bb253=a289_0x171156;try{const _0x2736f3=await fetchRulesFromCDN();return _0x2736f3[_0x3bb253(0x18f)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5d5303){const _0x9182eb=a289_0x171156,_0x13ef9f=await fetchRulesFromCDN()[_0x9182eb(0x17a)](()=>null);let _0x541769;_0x13ef9f?(_0x541769=_0x13ef9f['content'],_0x13ef9f[_0x9182eb(0x189)]&&(_0x541769=appendUpdateTime(_0x541769,_0x13ef9f['lastUpdated']))):_0x541769=readLocalTemplate();const _0x48cd8b=dirname(_0x5d5303);!existsSync(_0x48cd8b)&&mkdirSync(_0x48cd8b,{'recursive':!![]}),writeFileSync(_0x5d5303,_0x541769,_0x9182eb(0x18a));}export async function copyRulesToCursor(_0x20c070){const _0x3daa3a=a289_0x171156,_0x2c036d=join(_0x20c070,_0x3daa3a(0x183)),_0x209d07=join(_0x2c036d,_0x3daa3a(0x188));if(existsSync(_0x209d07))return![];return await writeRulesFile(_0x209d07),!![];}export async function copyRulesToAgentsMd(_0x4a5670){const _0x30a30d=join(_0x4a5670,'agents.md');if(existsSync(_0x30a30d))return![];return await writeRulesFile(_0x30a30d),!![];}
1
+ (function(_0x305079,_0x14ace1){const _0xf80ae1=a289_0x27cf,_0xcd4cff=_0x305079();while(!![]){try{const _0x26f6eb=parseInt(_0xf80ae1(0xaa))/0x1*(parseInt(_0xf80ae1(0xad))/0x2)+-parseInt(_0xf80ae1(0xb3))/0x3*(parseInt(_0xf80ae1(0xb4))/0x4)+-parseInt(_0xf80ae1(0xab))/0x5+-parseInt(_0xf80ae1(0xb5))/0x6*(parseInt(_0xf80ae1(0xbb))/0x7)+parseInt(_0xf80ae1(0xb1))/0x8+-parseInt(_0xf80ae1(0xa7))/0x9+parseInt(_0xf80ae1(0xb7))/0xa;if(_0x26f6eb===_0x14ace1)break;else _0xcd4cff['push'](_0xcd4cff['shift']());}catch(_0x5ec3f1){_0xcd4cff['push'](_0xcd4cff['shift']());}}}(a289_0x3ad3,0x41e99));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 _0x2dde5a=a289_0x27cf,_0x1bd20d=getTemplateBaseUrl();return _0x1bd20d+_0x2dde5a(0xaf);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x5a31bd=a289_0x27cf,_0x50617f=getRulesCdnUrl(),_0x505dd5=await fetch(_0x50617f,{'headers':{'Accept':_0x5a31bd(0xa5)}});if(!_0x505dd5['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x505dd5[_0x5a31bd(0xb0)]+'\x20'+_0x505dd5[_0x5a31bd(0xa9)]);const _0x612a73=await _0x505dd5[_0x5a31bd(0xac)]();if(!_0x612a73[_0x5a31bd(0xa8)]||typeof _0x612a73[_0x5a31bd(0xa8)]!==_0x5a31bd(0xa6))throw new Error(_0x5a31bd(0xb2));return _0x612a73;}export async function getRulesContent(){const _0x448f26=a289_0x27cf;try{const _0x582e30=await fetchRulesFromCDN();return _0x582e30[_0x448f26(0xa8)];}catch{return readLocalTemplate();}}function a289_0x27cf(_0x2d3a2d,_0xb0be67){_0x2d3a2d=_0x2d3a2d-0xa5;const _0x3ad3af=a289_0x3ad3();let _0x27cf6a=_0x3ad3af[_0x2d3a2d];return _0x27cf6a;}export function readLocalTemplate(){const _0x1b2164=a289_0x27cf;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1b2164(0xae));throw new Error(_0x1b2164(0xb6)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1f7181){const _0x4ae54b=a289_0x27cf,_0x1a89d2=await fetchRulesFromCDN()['catch'](()=>null);let _0x5acf91;_0x1a89d2?(_0x5acf91=_0x1a89d2[_0x4ae54b(0xa8)],_0x1a89d2[_0x4ae54b(0xba)]&&(_0x5acf91=appendUpdateTime(_0x5acf91,_0x1a89d2[_0x4ae54b(0xba)]))):_0x5acf91=readLocalTemplate();const _0x3b8ec5=dirname(_0x1f7181);!existsSync(_0x3b8ec5)&&mkdirSync(_0x3b8ec5,{'recursive':!![]}),writeFileSync(_0x1f7181,_0x5acf91,_0x4ae54b(0xae));}function a289_0x3ad3(){const _0xa112d7=['49939HvQvFu','1814505BVxdms','json','8JMxcsT','utf-8','/rules/rules.json','status','4226064XUkSSc','CDN\x20返回数据格式错误','531eymsBl','12172pATQxq','1141470eeDdGw','本地模板文件不存在:\x20','12524930nInCHr','agents.md','lovrabet_rules.mdc','lastUpdated','14ogaxeF','application/json','string','3856752FZiLLG','content','statusText'];a289_0x3ad3=function(){return _0xa112d7;};return a289_0x3ad3();}export async function copyRulesToCursor(_0x1192bc){const _0x4c465f=a289_0x27cf,_0x486eb3=join(_0x1192bc,'.cursor/rules'),_0x1234c9=join(_0x486eb3,_0x4c465f(0xb9));if(existsSync(_0x1234c9))return![];return await writeRulesFile(_0x1234c9),!![];}export async function copyRulesToAgentsMd(_0x28d81a){const _0x7158aa=a289_0x27cf,_0x4bfa4b=join(_0x28d81a,_0x7158aa(0xb8));if(existsSync(_0x4bfa4b))return![];return await writeRulesFile(_0x4bfa4b),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x14acbd){return new Promise(_0x2b2089=>setTimeout(_0x2b2089,_0x14acbd));}
1
+ export function sleep(_0x3affac){return new Promise(_0x41a701=>setTimeout(_0x41a701,_0x3affac));}