@lovrabet/rabetbase-cli 2.2.2-beta.1 → 2.2.3-beta.1

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 (205) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -0
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- const a182_0x176a4a=a182_0x41b3;(function(_0x2ec791,_0x23a7d0){const _0x355744=a182_0x41b3,_0x21f316=_0x2ec791();while(!![]){try{const _0x1bcb5d=-parseInt(_0x355744(0xb8))/0x1+-parseInt(_0x355744(0xbc))/0x2*(-parseInt(_0x355744(0xb9))/0x3)+-parseInt(_0x355744(0xb6))/0x4*(-parseInt(_0x355744(0xc0))/0x5)+-parseInt(_0x355744(0xc1))/0x6*(-parseInt(_0x355744(0xc2))/0x7)+-parseInt(_0x355744(0xba))/0x8+parseInt(_0x355744(0xbd))/0x9+parseInt(_0x355744(0xc3))/0xa*(-parseInt(_0x355744(0xb7))/0xb);if(_0x1bcb5d===_0x23a7d0)break;else _0x21f316['push'](_0x21f316['shift']());}catch(_0x300163){_0x21f316['push'](_0x21f316['shift']());}}}(a182_0x3d87,0xd95ee));function a182_0x3d87(){const _0x5a0cb9=['6EsYIDR','9235415eEGPPQ','3466690nABWkl','rabetbase-cli','manual','spanName','100zWNOYa','33qrqDgV','1185230TrmlCT','388545qMzPon','5383104SgBMSx','logData','6OjpSfL','6534315cIcgmn','version','traceparent','270910xzTcTC'];a182_0x3d87=function(){return _0x5a0cb9;};return a182_0x3d87();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a182_0x41b3(_0x312f16,_0x6cc0f5){_0x312f16=_0x312f16-0xb4;const _0x3d879d=a182_0x3d87();let _0x41b360=_0x3d879d[_0x312f16];return _0x41b360;}const DEFAULT_TRACE_NAME=a182_0x176a4a(0xc4);export async function sendCliTraceLog(_0x5d99ee){const _0x1dacf7=a182_0x176a4a;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5d99ee['traceName']??DEFAULT_TRACE_NAME,'version':_0x5d99ee[_0x1dacf7(0xbe)]??getCliVersion(),'spanName':_0x5d99ee[_0x1dacf7(0xb5)],'eventType':_0x1dacf7(0xb4),'logData':_0x5d99ee[_0x1dacf7(0xbb)],..._0x5d99ee['traceparent']&&{'traceparent':_0x5d99ee[_0x1dacf7(0xbf)]}});}
1
+ const a183_0x2b12d7=a183_0x206b;(function(_0x32f662,_0x2cfa5d){const _0x430d7c=a183_0x206b,_0x40d4df=_0x32f662();while(!![]){try{const _0xb09922=-parseInt(_0x430d7c(0xd0))/0x1*(-parseInt(_0x430d7c(0xd6))/0x2)+-parseInt(_0x430d7c(0xd3))/0x3+-parseInt(_0x430d7c(0xde))/0x4*(-parseInt(_0x430d7c(0xd9))/0x5)+-parseInt(_0x430d7c(0xe1))/0x6+parseInt(_0x430d7c(0xdd))/0x7+-parseInt(_0x430d7c(0xdc))/0x8*(parseInt(_0x430d7c(0xdb))/0x9)+parseInt(_0x430d7c(0xd2))/0xa*(-parseInt(_0x430d7c(0xd8))/0xb);if(_0xb09922===_0x2cfa5d)break;else _0x40d4df['push'](_0x40d4df['shift']());}catch(_0x4805d2){_0x40d4df['push'](_0x40d4df['shift']());}}}(a183_0x2f14,0x7e763));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a183_0x206b(_0x46f74d,_0x3a28b6){_0x46f74d=_0x46f74d-0xd0;const _0x2f14e4=a183_0x2f14();let _0x206bf2=_0x2f14e4[_0x46f74d];return _0x206bf2;}function a183_0x2f14(){const _0x1c9ad3=['976110aImcBN','39802YyEAVH','logData','130FFwVXj','210348xnJMdq','spanName','rabetbase-cli','16yDAQyf','traceparent','702361otIqLc','4086555jWTtIq','traceName','180tHHtHL','161592rPwuAn','5943728sxyJPw','4vexzgW','version','manual'];a183_0x2f14=function(){return _0x1c9ad3;};return a183_0x2f14();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a183_0x2b12d7(0xd5);export async function sendCliTraceLog(_0x1459e6){const _0x315919=a183_0x2b12d7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1459e6[_0x315919(0xda)]??DEFAULT_TRACE_NAME,'version':_0x1459e6[_0x315919(0xdf)]??getCliVersion(),'spanName':_0x1459e6[_0x315919(0xd4)],'eventType':_0x315919(0xe0),'logData':_0x1459e6[_0x315919(0xd1)],..._0x1459e6[_0x315919(0xd7)]&&{'traceparent':_0x1459e6[_0x315919(0xd7)]}});}
@@ -1 +1 @@
1
- function a183_0x836e(){const _0x25864b=['11KJCMjd','2GPRTvq','title','27MxVNrw','7rkBhfm','4168200bMeWNu','originalBytes','redactionCount','platform-issue-log-collect','6766704jndqPF','description','2039595ZYIJEL','2519150kwMQRe','sanitize','truncated','issue.log.collect','4nvNyoU','redactionKinds','3822942fDyMdD','403297FOykOG','21792084PNVCcb'];a183_0x836e=function(){return _0x25864b;};return a183_0x836e();}const a183_0x1ba6b3=a183_0x28ab;(function(_0x1a1aeb,_0x8bf78f){const _0x3582be=a183_0x28ab,_0x11a2c2=_0x1a1aeb();while(!![]){try{const _0x19c8b9=parseInt(_0x3582be(0x176))/0x1*(-parseInt(_0x3582be(0x179))/0x2)+parseInt(_0x3582be(0x16e))/0x3*(-parseInt(_0x3582be(0x173))/0x4)+-parseInt(_0x3582be(0x17d))/0x5+-parseInt(_0x3582be(0x175))/0x6*(-parseInt(_0x3582be(0x17c))/0x7)+-parseInt(_0x3582be(0x181))/0x8+-parseInt(_0x3582be(0x17b))/0x9*(-parseInt(_0x3582be(0x16f))/0xa)+parseInt(_0x3582be(0x178))/0xb*(parseInt(_0x3582be(0x177))/0xc);if(_0x19c8b9===_0x8bf78f)break;else _0x11a2c2['push'](_0x11a2c2['shift']());}catch(_0x5a7ba7){_0x11a2c2['push'](_0x11a2c2['shift']());}}}(a183_0x836e,0x6cf3d));function a183_0x28ab(_0x433610,_0x41042e){_0x433610=_0x433610-0x16e;const _0x836e7=a183_0x836e();let _0x28ab30=_0x836e7[_0x433610];return _0x28ab30;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a183_0x1ba6b3(0x180);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x1ba6b3(0x172);export async function sendPlatformIssueCollectLog(_0x51794e){const _0x1c618a=a183_0x1ba6b3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x51794e[_0x1c618a(0x17a)],'issue.description':_0x51794e[_0x1c618a(0x182)],..._0x51794e[_0x1c618a(0x170)]?{'issue.description_original_bytes':_0x51794e['sanitize'][_0x1c618a(0x17e)],'issue.description_truncated':_0x51794e[_0x1c618a(0x170)][_0x1c618a(0x171)],'issue.description_redactions':_0x51794e[_0x1c618a(0x170)][_0x1c618a(0x17f)],'issue.description_redaction_kinds':_0x51794e[_0x1c618a(0x170)][_0x1c618a(0x174)]['join'](',')}:{}}});}
1
+ function a184_0x1d9f(){const _0x1b26a6=['31408dLjwFi','title','5348385IaBPJp','2477ACOlmO','3126660iFsDSR','77KsurMf','platform-issue-log-collect','description','2434440bsBBkQ','1712016eDqHtW','860mjdTcL','truncated','sanitize','2196QEHEJg','originalBytes','7FJFAPf','2044180kQdKLp'];a184_0x1d9f=function(){return _0x1b26a6;};return a184_0x1d9f();}const a184_0x1a8b0c=a184_0x4db8;(function(_0x1fa269,_0x131c7c){const _0x194248=a184_0x4db8,_0x188f73=_0x1fa269();while(!![]){try{const _0x40b6b0=parseInt(_0x194248(0x10e))/0x1*(parseInt(_0x194248(0x115))/0x2)+-parseInt(_0x194248(0x10f))/0x3+-parseInt(_0x194248(0x114))/0x4+parseInt(_0x194248(0x10d))/0x5+-parseInt(_0x194248(0x113))/0x6*(-parseInt(_0x194248(0x11a))/0x7)+-parseInt(_0x194248(0x10b))/0x8*(-parseInt(_0x194248(0x118))/0x9)+-parseInt(_0x194248(0x11b))/0xa*(parseInt(_0x194248(0x110))/0xb);if(_0x40b6b0===_0x131c7c)break;else _0x188f73['push'](_0x188f73['shift']());}catch(_0x44e4a6){_0x188f73['push'](_0x188f73['shift']());}}}(a184_0x1d9f,0x91d49));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a184_0x1a8b0c(0x111);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a184_0x4db8(_0x14713e,_0x14b5b2){_0x14713e=_0x14713e-0x10b;const _0x1d9fbe=a184_0x1d9f();let _0x4db8d2=_0x1d9fbe[_0x14713e];return _0x4db8d2;}export async function sendPlatformIssueCollectLog(_0x41f0fa){const _0x265e1b=a184_0x1a8b0c;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x41f0fa[_0x265e1b(0x10c)],'issue.description':_0x41f0fa[_0x265e1b(0x112)],..._0x41f0fa['sanitize']?{'issue.description_original_bytes':_0x41f0fa[_0x265e1b(0x117)][_0x265e1b(0x119)],'issue.description_truncated':_0x41f0fa[_0x265e1b(0x117)][_0x265e1b(0x116)],'issue.description_redactions':_0x41f0fa[_0x265e1b(0x117)]['redactionCount'],'issue.description_redaction_kinds':_0x41f0fa[_0x265e1b(0x117)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a185_0x4fd23f=a185_0x6110;(function(_0x31bad8,_0x2c11d7){const _0xa2af5c=a185_0x6110,_0xb91424=_0x31bad8();while(!![]){try{const _0x1cd417=-parseInt(_0xa2af5c(0xef))/0x1+parseInt(_0xa2af5c(0x10d))/0x2*(parseInt(_0xa2af5c(0x10e))/0x3)+-parseInt(_0xa2af5c(0x113))/0x4*(parseInt(_0xa2af5c(0xdd))/0x5)+parseInt(_0xa2af5c(0xdf))/0x6+parseInt(_0xa2af5c(0x10a))/0x7*(-parseInt(_0xa2af5c(0x100))/0x8)+parseInt(_0xa2af5c(0x109))/0x9*(parseInt(_0xa2af5c(0x106))/0xa)+-parseInt(_0xa2af5c(0xf5))/0xb;if(_0x1cd417===_0x2c11d7)break;else _0xb91424['push'](_0xb91424['shift']());}catch(_0x5ec461){_0xb91424['push'](_0xb91424['shift']());}}}(a185_0x5e19,0xb0a93));function a185_0x5e19(){const _0xc73672=['Qoder\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','cursor','Trae\x20IDE','OpenCode\x20IDE','trae','.cline/skills/lovrabet/SKILL.md','1371734iXGFij','通用模板\x20-\x20兜底方案','qoder','.qoder/rules/rabetbase.md','Qoder','file','3389023OqaAws','.opencode','.codebuddy','Cline','.qoder','Antigravity\x20IDE','.agent','CodeBuddy\x20IDE','SKILL.md.tpl','agent','opencode','8iZvGcc','Antigravity','codebuddy','.cursorrules','antigravity','windsurf','2440qdIjun','Claude\x20Code','codex','30870nGIeVC','730877PrsVJn','.windsurf','cline','116kaDPPE','59187lIbLIc','.agent/skills/lovrabet/SKILL.md','.claude','Cursor','OpenCode','26636eCKtbR','claude','510lfnfQx','Windsurf\x20IDE','7235142pnheCg','.trae','.opencode/skills/lovrabet/SKILL.md','.cursor','Codex','.codex','Codex\x20IDE','Cursor\x20IDE','Trae'];a185_0x5e19=function(){return _0xc73672;};return a185_0x5e19();}export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x4fd23f(0x111),'description':a185_0x4fd23f(0xe6),'folders':[a185_0x4fd23f(0x103),a185_0x4fd23f(0xe2)],'files':[{'type':a185_0x4fd23f(0xf4),'path':'.cursor/skills/rabetbase.md','template':a185_0x4fd23f(0xfd)}]},'windsurf':{'name':'Windsurf','description':a185_0x4fd23f(0xde),'folders':[a185_0x4fd23f(0x10b)],'files':[{'type':a185_0x4fd23f(0xf4),'path':'.windsurf/workflows/rabetbase.md','template':a185_0x4fd23f(0xfd)}]},'claude':{'name':a185_0x4fd23f(0x107),'description':a185_0x4fd23f(0x107),'folders':[a185_0x4fd23f(0x110)],'files':[{'type':a185_0x4fd23f(0xf4),'path':'.claude/skills/lovrabet/SKILL.md','template':a185_0x4fd23f(0xfd)}]},'cline':{'name':a185_0x4fd23f(0xf8),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0xee),'template':a185_0x4fd23f(0xfd)}]},'codex':{'name':a185_0x4fd23f(0xe3),'description':a185_0x4fd23f(0xe5),'folders':[a185_0x4fd23f(0xe4)],'files':[{'type':a185_0x4fd23f(0xf4),'path':'.codex/skills/lovrabet/SKILL.md','template':a185_0x4fd23f(0xfd)}]},'opencode':{'name':a185_0x4fd23f(0x112),'description':a185_0x4fd23f(0xec),'folders':[a185_0x4fd23f(0xf6)],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0xe1),'template':a185_0x4fd23f(0xfd)}]},'qoder':{'name':a185_0x4fd23f(0xf3),'description':a185_0x4fd23f(0xe8),'folders':[a185_0x4fd23f(0xf9)],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0xf2),'template':'SKILL.md.tpl'},{'type':a185_0x4fd23f(0xf4),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x4fd23f(0xfc),'folders':[a185_0x4fd23f(0xf7)],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0xe9),'template':'SKILL.md.tpl'}]},'trae':{'name':a185_0x4fd23f(0xe7),'description':a185_0x4fd23f(0xeb),'folders':[a185_0x4fd23f(0xe0)],'files':[{'type':a185_0x4fd23f(0xf4),'path':'.trae/skills/lovrabet/SKILL.md','template':a185_0x4fd23f(0xfd)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a185_0x4fd23f(0xf0),'folders':[a185_0x4fd23f(0xfb)],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0x10f),'template':a185_0x4fd23f(0xfd)}]},'antigravity':{'name':a185_0x4fd23f(0x101),'description':a185_0x4fd23f(0xfa),'folders':['.agent'],'files':[{'type':a185_0x4fd23f(0xf4),'path':a185_0x4fd23f(0x10f),'template':a185_0x4fd23f(0xfd)}]}};export const CORE_IDE_LIST=[a185_0x4fd23f(0x114),a185_0x4fd23f(0x10c),a185_0x4fd23f(0x102),'codex','cursor',a185_0x4fd23f(0xff),'qoder',a185_0x4fd23f(0xed),'windsurf'];function a185_0x6110(_0x62d539,_0x2eb566){_0x62d539=_0x62d539-0xdd;const _0x5e1974=a185_0x5e19();let _0x61103f=_0x5e1974[_0x62d539];return _0x61103f;}export const IDE_LIST=[a185_0x4fd23f(0x104),a185_0x4fd23f(0x114),a185_0x4fd23f(0x10c),a185_0x4fd23f(0x102),a185_0x4fd23f(0x108),a185_0x4fd23f(0xea),a185_0x4fd23f(0xff),a185_0x4fd23f(0xf1),a185_0x4fd23f(0xed),a185_0x4fd23f(0x105),a185_0x4fd23f(0xfe)];export const ALL_CORE_IDES=[a185_0x4fd23f(0xea),a185_0x4fd23f(0x105),a185_0x4fd23f(0x114),'cline','codex',a185_0x4fd23f(0xff),'qoder',a185_0x4fd23f(0x102),'trae'];
1
+ const a186_0x5e1a68=a186_0x5692;(function(_0x36543d,_0xcbb10){const _0x3ef9ef=a186_0x5692,_0x4c3df0=_0x36543d();while(!![]){try{const _0x250052=parseInt(_0x3ef9ef(0xd0))/0x1*(parseInt(_0x3ef9ef(0xd4))/0x2)+-parseInt(_0x3ef9ef(0xd8))/0x3*(parseInt(_0x3ef9ef(0xd2))/0x4)+-parseInt(_0x3ef9ef(0xcf))/0x5*(-parseInt(_0x3ef9ef(0xdd))/0x6)+-parseInt(_0x3ef9ef(0xec))/0x7+-parseInt(_0x3ef9ef(0xc8))/0x8*(-parseInt(_0x3ef9ef(0xe0))/0x9)+parseInt(_0x3ef9ef(0xc9))/0xa*(-parseInt(_0x3ef9ef(0xcb))/0xb)+parseInt(_0x3ef9ef(0xe2))/0xc;if(_0x250052===_0xcbb10)break;else _0x4c3df0['push'](_0x4c3df0['shift']());}catch(_0x3d9efb){_0x4c3df0['push'](_0x4c3df0['shift']());}}}(a186_0x5806,0xb3b69));export const CORE_IDE_CONFIGS={'cursor':{'name':a186_0x5e1a68(0xce),'description':'Cursor\x20IDE','folders':[a186_0x5e1a68(0xf2),a186_0x5e1a68(0xdb)],'files':[{'type':a186_0x5e1a68(0xd3),'path':'.cursor/skills/rabetbase.md','template':a186_0x5e1a68(0xdf)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a186_0x5e1a68(0xef)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xcc),'template':'SKILL.md.tpl'}]},'claude':{'name':a186_0x5e1a68(0xf6),'description':a186_0x5e1a68(0xf6),'folders':[a186_0x5e1a68(0xf1)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xd1),'template':a186_0x5e1a68(0xdf)}]},'cline':{'name':a186_0x5e1a68(0xe3),'description':a186_0x5e1a68(0xee),'folders':[a186_0x5e1a68(0xc5)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xd7),'template':a186_0x5e1a68(0xdf)}]},'codex':{'name':'Codex','description':a186_0x5e1a68(0xf3),'folders':[a186_0x5e1a68(0xe8)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xf0),'template':a186_0x5e1a68(0xdf)}]},'opencode':{'name':a186_0x5e1a68(0xed),'description':a186_0x5e1a68(0xe1),'folders':[a186_0x5e1a68(0xe7)],'files':[{'type':a186_0x5e1a68(0xd3),'path':'.opencode/skills/lovrabet/SKILL.md','template':a186_0x5e1a68(0xdf)}]},'qoder':{'name':'Qoder','description':a186_0x5e1a68(0xd9),'folders':['.qoder'],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a186_0x5e1a68(0xdf)},{'type':a186_0x5e1a68(0xd3),'path':'.qoder/skills/lovrabet/SKILL.md','template':a186_0x5e1a68(0xdf)}]},'codebuddy':{'name':a186_0x5e1a68(0xc4),'description':a186_0x5e1a68(0xeb),'folders':[a186_0x5e1a68(0xe6)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xe4),'template':a186_0x5e1a68(0xdf)}]},'trae':{'name':'Trae','description':a186_0x5e1a68(0xc3),'folders':[a186_0x5e1a68(0xc6)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xd5),'template':a186_0x5e1a68(0xdf)}]}};function a186_0x5806(){const _0x500afa=['.trae','codebuddy','1430120rayhaa','410LHSjJO','windsurf','230912UKldcy','.windsurf/workflows/rabetbase.md','cline','Cursor','35VnfmIT','1YzxKWT','.claude/skills/lovrabet/SKILL.md','2907592haLjBx','file','353014VqWZpx','.trae/skills/lovrabet/SKILL.md','antigravity','.cline/skills/lovrabet/SKILL.md','6VtzamJ','Qoder\x20IDE','codex','.cursor','.agent/skills/lovrabet/SKILL.md','1244658RrKIym','claude','SKILL.md.tpl','72ryUGJp','OpenCode\x20IDE','9202488JjPfoO','Cline','.codebuddy/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.codebuddy','.opencode','.codex','trae','通用模板\x20-\x20兜底方案','CodeBuddy\x20IDE','5425203FlpsZI','OpenCode','Cline\x20IDE','.windsurf','.codex/skills/lovrabet/SKILL.md','.claude','.cursorrules','Codex\x20IDE','cursor','opencode','Claude\x20Code','qoder','.agent','Trae\x20IDE','CodeBuddy','.cline'];a186_0x5806=function(){return _0x500afa;};return a186_0x5806();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a186_0x5e1a68(0xea),'folders':[a186_0x5e1a68(0xc2)],'files':[{'type':a186_0x5e1a68(0xd3),'path':a186_0x5e1a68(0xdc),'template':a186_0x5e1a68(0xdf)}]},'antigravity':{'name':'Antigravity','description':a186_0x5e1a68(0xe5),'folders':[a186_0x5e1a68(0xc2)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a186_0x5e1a68(0xdf)}]}};export const CORE_IDE_LIST=[a186_0x5e1a68(0xde),'cline',a186_0x5e1a68(0xc7),a186_0x5e1a68(0xda),'cursor',a186_0x5e1a68(0xf5),a186_0x5e1a68(0xf7),a186_0x5e1a68(0xe9),a186_0x5e1a68(0xca)];export const IDE_LIST=[a186_0x5e1a68(0xd6),a186_0x5e1a68(0xde),a186_0x5e1a68(0xcd),a186_0x5e1a68(0xc7),'codex',a186_0x5e1a68(0xf4),a186_0x5e1a68(0xf5),a186_0x5e1a68(0xf7),a186_0x5e1a68(0xe9),a186_0x5e1a68(0xca),'agent'];function a186_0x5692(_0x3ffbd5,_0x489a1b){_0x3ffbd5=_0x3ffbd5-0xc2;const _0x58067c=a186_0x5806();let _0x56921c=_0x58067c[_0x3ffbd5];return _0x56921c;}export const ALL_CORE_IDES=['cursor',a186_0x5e1a68(0xca),a186_0x5e1a68(0xde),a186_0x5e1a68(0xcd),a186_0x5e1a68(0xda),a186_0x5e1a68(0xf5),a186_0x5e1a68(0xf7),a186_0x5e1a68(0xc7),a186_0x5e1a68(0xe9)];
@@ -1 +1 @@
1
- function a186_0x2b6f(){const _0x28f191=['2860656MJTGlu','2GHJlCo','554949WClakS','17064BsxwQT','806530TsiKhV','2380sYFtJf','6001980vJbYLH','576696LWsNxe','11630583gNwnji'];a186_0x2b6f=function(){return _0x28f191;};return a186_0x2b6f();}(function(_0x3bcb94,_0x35ec05){const _0x53bbde=a186_0x1fb3,_0x267966=_0x3bcb94();while(!![]){try{const _0x2a6cf8=parseInt(_0x53bbde(0x193))/0x1*(parseInt(_0x53bbde(0x199))/0x2)+-parseInt(_0x53bbde(0x19a))/0x3+-parseInt(_0x53bbde(0x198))/0x4+-parseInt(_0x53bbde(0x195))/0x5+-parseInt(_0x53bbde(0x19b))/0x6*(-parseInt(_0x53bbde(0x194))/0x7)+-parseInt(_0x53bbde(0x196))/0x8+parseInt(_0x53bbde(0x197))/0x9;if(_0x2a6cf8===_0x35ec05)break;else _0x267966['push'](_0x267966['shift']());}catch(_0x1fef76){_0x267966['push'](_0x267966['shift']());}}}(a186_0x2b6f,0xda0db));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0x1fb3(_0xd0461,_0x44d573){_0xd0461=_0xd0461-0x193;const _0x2b6fb3=a186_0x2b6f();let _0x1fb315=_0x2b6fb3[_0xd0461];return _0x1fb315;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x3dbe91,_0x45427a){const _0x4a6aac=a187_0x1587,_0x4aaa93=_0x3dbe91();while(!![]){try{const _0x51ff56=-parseInt(_0x4a6aac(0x111))/0x1*(-parseInt(_0x4a6aac(0x113))/0x2)+-parseInt(_0x4a6aac(0x115))/0x3*(-parseInt(_0x4a6aac(0x10a))/0x4)+-parseInt(_0x4a6aac(0x10c))/0x5*(parseInt(_0x4a6aac(0x110))/0x6)+parseInt(_0x4a6aac(0x112))/0x7*(parseInt(_0x4a6aac(0x10d))/0x8)+parseInt(_0x4a6aac(0x114))/0x9*(parseInt(_0x4a6aac(0x10e))/0xa)+-parseInt(_0x4a6aac(0x10f))/0xb+parseInt(_0x4a6aac(0x10b))/0xc;if(_0x51ff56===_0x45427a)break;else _0x4aaa93['push'](_0x4aaa93['shift']());}catch(_0x2f177d){_0x4aaa93['push'](_0x4aaa93['shift']());}}}(a187_0x4d5b,0xc9cb6));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a187_0x4d5b(){const _0x3199dd=['164285tNiWhq','36712sMjECR','14865020dxjFwY','12694605eTiRVU','294nrvDLC','68vrsbXc','329wBHPkO','4670WbGbql','9SVjMck','157803qwnXka','8zhFAEM','19493172AehxSg'];a187_0x4d5b=function(){return _0x3199dd;};return a187_0x4d5b();}import{CliErrors}from'../errors.js';function a187_0x1587(_0x495524,_0x242ae0){_0x495524=_0x495524-0x10a;const _0x4d5b69=a187_0x4d5b();let _0x158744=_0x4d5b69[_0x495524];return _0x158744;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x1b548a,_0x195240){const _0x4468fa=a187_0x51f0,_0x16b9ba=_0x1b548a();while(!![]){try{const _0x5a2823=-parseInt(_0x4468fa(0xac))/0x1+parseInt(_0x4468fa(0xab))/0x2+parseInt(_0x4468fa(0xa5))/0x3*(parseInt(_0x4468fa(0xa7))/0x4)+parseInt(_0x4468fa(0xa9))/0x5*(parseInt(_0x4468fa(0xa4))/0x6)+parseInt(_0x4468fa(0xaf))/0x7+-parseInt(_0x4468fa(0xa3))/0x8+-parseInt(_0x4468fa(0xb0))/0x9;if(_0x5a2823===_0x195240)break;else _0x16b9ba['push'](_0x16b9ba['shift']());}catch(_0x47d79d){_0x16b9ba['push'](_0x16b9ba['shift']());}}}(a187_0x35f6,0x606e2));import{getTemplateBaseUrl}from'../utils/config.js';function a187_0x35f6(){const _0x5c5b5d=['1535JsrNZd','stableVersion','1494846rPisSm','398358YKBzgd','sdk','application/json','5527046ftVNjr','13379841BWHtDC','/config/index.json','1056904oQhVir','5184wSfqbw','81rvNNys','json','90348nhDwZV','cli'];a187_0x35f6=function(){return _0x5c5b5d;};return a187_0x35f6();}export async function fetchCdnConfig(){const _0x23c895=a187_0x51f0,_0x3af0e7=getTemplateBaseUrl(),_0x4cf875=[_0x3af0e7+'/config.json',_0x3af0e7+_0x23c895(0xa2)];for(const _0x9bad7b of _0x4cf875){try{const _0x42d84c=await fetch(_0x9bad7b,{'headers':{'Accept':_0x23c895(0xae)}});if(!_0x42d84c['ok'])continue;const _0x327b17=await _0x42d84c[_0x23c895(0xa6)]();if(!_0x327b17[_0x23c895(0xa8)]?.['stableVersion']||!_0x327b17[_0x23c895(0xad)]?.['node']?.[_0x23c895(0xaa)])continue;return _0x327b17;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x51f0(_0x4c4997,_0x4c7fd0){_0x4c4997=_0x4c4997-0xa2;const _0x35f6f4=a187_0x35f6();let _0x51f0a9=_0x35f6f4[_0x4c4997];return _0x51f0a9;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x86e586=Date['now']();if(hasCachedConfig){const _0x116e67=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x86e586-cacheTime<_0x116e67)return cachedConfig;}const _0xb2291f=await fetchCdnConfig();return cachedConfig=_0xb2291f,cacheTime=_0x86e586,hasCachedConfig=!![],_0xb2291f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5d9773,_0x5de660){const _0x1b2b2e=a188_0x592e,_0xecd0f=_0x5d9773();while(!![]){try{const _0x5a7865=parseInt(_0x1b2b2e(0x1f6))/0x1+-parseInt(_0x1b2b2e(0x1fd))/0x2+-parseInt(_0x1b2b2e(0x1f1))/0x3*(-parseInt(_0x1b2b2e(0x1f4))/0x4)+parseInt(_0x1b2b2e(0x1fe))/0x5+parseInt(_0x1b2b2e(0x1f3))/0x6*(parseInt(_0x1b2b2e(0x1f8))/0x7)+parseInt(_0x1b2b2e(0x1fb))/0x8*(parseInt(_0x1b2b2e(0x1fc))/0x9)+-parseInt(_0x1b2b2e(0x1f9))/0xa;if(_0x5a7865===_0x5de660)break;else _0xecd0f['push'](_0xecd0f['shift']());}catch(_0x412cb1){_0xecd0f['push'](_0xecd0f['shift']());}}}(a188_0x3d23,0x832f7));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1438fd=a188_0x592e,_0x538eab=getTemplateBaseUrl(),_0x1aff75=[_0x538eab+_0x1438fd(0x1fa),_0x538eab+_0x1438fd(0x201)];for(const _0x40c18a of _0x1aff75){try{const _0x6ec164=await fetch(_0x40c18a,{'headers':{'Accept':'application/json'}});if(!_0x6ec164['ok'])continue;const _0x5212ac=await _0x6ec164[_0x1438fd(0x200)]();if(!_0x5212ac[_0x1438fd(0x1f2)]?.[_0x1438fd(0x1f5)]||!_0x5212ac[_0x1438fd(0x1ff)]?.[_0x1438fd(0x202)]?.['stableVersion'])continue;return _0x5212ac;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a188_0x592e(_0x31406e,_0x474c30){_0x31406e=_0x31406e-0x1f1;const _0x3d2343=a188_0x3d23();let _0x592e76=_0x3d2343[_0x31406e];return _0x592e76;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x24f1fe=a188_0x592e,_0x4d54b7=Date[_0x24f1fe(0x1f7)]();if(hasCachedConfig){const _0x339193=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d54b7-cacheTime<_0x339193)return cachedConfig;}const _0x4515db=await fetchCdnConfig();return cachedConfig=_0x4515db,cacheTime=_0x4d54b7,hasCachedConfig=!![],_0x4515db;}function a188_0x3d23(){const _0x1cce65=['7NuQoFV','8894880oMVsxg','/config.json','65368UygNZx','603FQTDqY','883518sxYiso','4147540ScnBNg','sdk','json','/config/index.json','node','324516DsBOMs','cli','106014tzltYQ','12yWrotL','stableVersion','149432NKHyod','now'];a188_0x3d23=function(){return _0x1cce65;};return a188_0x3d23();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a188_0x4621(){const _0x28622a=['757251foEXIO','version','coerce','stableVersion','existsSync','utf-8','18mjJuuQ','5345600kZlhJB','parse','@lovrabet/sdk','minVersion','75090nCwnld','sdk','\x20\x20\x20Stable\x20version:\x20','6895fmddrR','some','devDependencies','\x1b[33m','↪\x20SDK\x20update\x20available','216856TEmJKS','16014QHTxWt','7YrRGSc','12yFBctk','node','\x1b[0m','dependencies','270AhxkCH','npm\x20install\x20','test','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','utf8','join','444174kiBtDd','1.2.0','package.json','76zhjSbA','readFileSync','node_modules','1NNuaEd','packageName','log'];a188_0x4621=function(){return _0x28622a;};return a188_0x4621();}const a188_0x51ac25=a188_0x183a;(function(_0x3b2860,_0x41a035){const _0x3b5874=a188_0x183a,_0x3d39cd=_0x3b2860();while(!![]){try{const _0x23963d=parseInt(_0x3b5874(0x103))/0x1*(parseInt(_0x3b5874(0xfd))/0x2)+-parseInt(_0x3b5874(0xef))/0x3*(-parseInt(_0x3b5874(0x100))/0x4)+parseInt(_0x3b5874(0xe9))/0x5*(parseInt(_0x3b5874(0xe1))/0x6)+parseInt(_0x3b5874(0xf0))/0x7*(-parseInt(_0x3b5874(0xee))/0x8)+parseInt(_0x3b5874(0xf5))/0x9*(parseInt(_0x3b5874(0xe6))/0xa)+-parseInt(_0x3b5874(0x106))/0xb*(-parseInt(_0x3b5874(0xf1))/0xc)+-parseInt(_0x3b5874(0xe2))/0xd;if(_0x23963d===_0x41a035)break;else _0x3d39cd['push'](_0x3d39cd['shift']());}catch(_0xb1e6ef){_0x3d39cd['push'](_0x3d39cd['shift']());}}}(a188_0x4621,0x2cc9a));import a188_0x2cf3aa from'node:fs';import a188_0x5d9158 from'node:path';import a188_0x4ab46e from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x51ac25(0xfe);function isNonNumericVersion(_0x40e279){const _0x186cc3=a188_0x51ac25,_0x5af358=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5af358[_0x186cc3(0xea)](_0x8ef0c3=>_0x8ef0c3[_0x186cc3(0xf7)](_0x40e279));}function getInstalledVersion(_0x14100f,_0x5410d6){const _0xe70c2b=a188_0x51ac25;try{const _0x3f1dc5=a188_0x5d9158[_0xe70c2b(0xfc)](_0x14100f,_0xe70c2b(0x102),_0x5410d6,_0xe70c2b(0xff));if(a188_0x2cf3aa[_0xe70c2b(0xdf)](_0x3f1dc5)){const _0xec3a74=JSON[_0xe70c2b(0xe3)](a188_0x2cf3aa[_0xe70c2b(0x101)](_0x3f1dc5,_0xe70c2b(0xe0)));return _0xec3a74[_0xe70c2b(0x107)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x26615e=a188_0x51ac25;try{const _0x5a89b3=await getCdnConfig();return _0x5a89b3?.['sdk']?.['node']?.[_0x26615e(0x109)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x796bb5=a188_0x51ac25;try{const _0x22f1b2=await getCdnConfig();return _0x22f1b2?.[_0x796bb5(0xe7)]?.[_0x796bb5(0xf2)]?.[_0x796bb5(0x104)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}function a188_0x183a(_0x1d142e,_0x32ff7c){_0x1d142e=_0x1d142e-0xdf;const _0x4621eb=a188_0x4621();let _0x183ac3=_0x4621eb[_0x1d142e];return _0x183ac3;}export async function checkSdkVersion(_0x360e6f){const _0x13c909=a188_0x51ac25,_0xbaaa2c=a188_0x5d9158[_0x13c909(0xfc)](_0x360e6f,_0x13c909(0xff)),[_0x52c818,_0x4e8fea]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x148b30=_0x52c818||FALLBACK_MIN_SDK_VERSION;if(!a188_0x2cf3aa[_0x13c909(0xdf)](_0xbaaa2c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x148b30,'packageName':_0x4e8fea,'stableVersion':_0x52c818};try{const _0x144363=JSON['parse'](a188_0x2cf3aa[_0x13c909(0x101)](_0xbaaa2c,_0x13c909(0xfb))),_0x119a3b=_0x144363['dependencies']||{},_0x248182=_0x144363['devDependencies']||{},_0x33a021=_0x119a3b[_0x4e8fea]||_0x248182[_0x4e8fea];if(!_0x33a021)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x148b30,'packageName':_0x4e8fea,'stableVersion':_0x52c818};let _0x53ab8e=getInstalledVersion(_0x360e6f,_0x4e8fea);!_0x53ab8e&&(_0x53ab8e=_0x33a021);if(isNonNumericVersion(_0x33a021))return{'installed':!![],'version':_0x53ab8e,'needsUpgrade':![],'minVersion':_0x148b30,'packageName':_0x4e8fea,'stableVersion':_0x52c818};const _0x3b81e1=a188_0x4ab46e[_0x13c909(0x108)](_0x53ab8e),_0x464b17=a188_0x4ab46e[_0x13c909(0x108)](_0x148b30),_0xc795a7=_0x3b81e1&&_0x464b17?a188_0x4ab46e['lt'](_0x3b81e1,_0x464b17):![];return{'installed':!![],'version':_0x53ab8e,'needsUpgrade':_0xc795a7,'minVersion':_0x148b30,'packageName':_0x4e8fea,'stableVersion':_0x52c818};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x148b30,'packageName':_0x4e8fea,'stableVersion':_0x52c818};}}export function checkSdkVersionSync(_0x18cb40){const _0xf20963=a188_0x51ac25,_0x21bc51=a188_0x5d9158[_0xf20963(0xfc)](_0x18cb40,'package.json'),_0x34843a=_0xf20963(0xe4);if(!a188_0x2cf3aa[_0xf20963(0xdf)](_0x21bc51))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34843a,'stableVersion':null};try{const _0x8910b2=JSON['parse'](a188_0x2cf3aa[_0xf20963(0x101)](_0x21bc51,_0xf20963(0xfb))),_0x35a914=_0x8910b2[_0xf20963(0xf4)]||{},_0x1f302c=_0x8910b2[_0xf20963(0xeb)]||{},_0x4a5287=_0x35a914[_0x34843a]||_0x1f302c[_0x34843a];if(!_0x4a5287)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34843a,'stableVersion':null};let _0x35a842=getInstalledVersion(_0x18cb40,_0x34843a);!_0x35a842&&(_0x35a842=_0x4a5287);if(isNonNumericVersion(_0x4a5287))return{'installed':!![],'version':_0x35a842,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34843a,'stableVersion':null};const _0x42a127=a188_0x4ab46e[_0xf20963(0x108)](_0x35a842),_0x3269e5=_0x42a127?a188_0x4ab46e['lt'](_0x42a127,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x35a842,'needsUpgrade':_0x3269e5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34843a,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34843a,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x9290fd){const _0x3e5d2e=a188_0x51ac25;if(!_0x9290fd[_0x3e5d2e(0xfa)])return;const _0x222414=_0x3e5d2e(0xec),_0x1ca4eb=_0x3e5d2e(0xf3),_0x30977f='\x1b[1m',_0xf19a92=_0x9290fd[_0x3e5d2e(0x104)]||_0x3e5d2e(0xe4),_0x226c91=_0x9290fd[_0x3e5d2e(0x109)]||_0x9290fd[_0x3e5d2e(0xe5)],_0x465d6e=_0x3e5d2e(0xf6)+_0xf19a92+'@'+(_0x226c91||'latest');console[_0x3e5d2e(0x105)](),console[_0x3e5d2e(0x105)](''+_0x222414+_0x30977f+_0x3e5d2e(0xed)+_0x1ca4eb),console['log'](_0x222414+_0x3e5d2e(0xf8)+_0xf19a92+'@'+_0x9290fd[_0x3e5d2e(0x107)]+_0x1ca4eb),console[_0x3e5d2e(0x105)](_0x222414+_0x3e5d2e(0xe8)+_0x226c91+_0x1ca4eb),console[_0x3e5d2e(0x105)](_0x222414+_0x3e5d2e(0xf9)+_0x465d6e+_0x1ca4eb),console[_0x3e5d2e(0x105)]();}
1
+ const a189_0x4dc018=a189_0x4353;(function(_0x4950eb,_0x1c928b){const _0x4f4742=a189_0x4353,_0x3a6516=_0x4950eb();while(!![]){try{const _0x2b111e=parseInt(_0x4f4742(0xb9))/0x1*(-parseInt(_0x4f4742(0xcb))/0x2)+-parseInt(_0x4f4742(0xd7))/0x3+parseInt(_0x4f4742(0xc7))/0x4+parseInt(_0x4f4742(0xbd))/0x5*(parseInt(_0x4f4742(0xd4))/0x6)+-parseInt(_0x4f4742(0xd3))/0x7*(-parseInt(_0x4f4742(0xce))/0x8)+-parseInt(_0x4f4742(0xb6))/0x9*(-parseInt(_0x4f4742(0xb7))/0xa)+parseInt(_0x4f4742(0xbb))/0xb*(-parseInt(_0x4f4742(0xd1))/0xc);if(_0x2b111e===_0x1c928b)break;else _0x3a6516['push'](_0x3a6516['shift']());}catch(_0x97246c){_0x3a6516['push'](_0x3a6516['shift']());}}}(a189_0x2fc9,0x2037f));import a189_0xa47fcb from'node:fs';function a189_0x2fc9(){const _0xf07267=['757437WLxksr','log','utf8','existsSync','↪\x20SDK\x20update\x20available','\x1b[33m','549Zyaruj','19470CzTwUm','\x20\x20\x20Current\x20version:\x20','1bSUBai','sdk','981156TgVLEv','coerce','41740spsFMx','\x20\x20\x20Upgrade\x20command:\x20','version','parse','\x1b[0m','some','latest','node','packageName','1.2.0','971292jXwgMn','package.json','dependencies','\x1b[1m','428762TgcPDq','all','needsUpgrade','8TtQrZD','node_modules','readFileSync','12sTHJGD','stableVersion','941003BhkXzM','138TnGBuU','@lovrabet/sdk','join'];a189_0x2fc9=function(){return _0xf07267;};return a189_0x2fc9();}import a189_0xf95bc9 from'node:path';import a189_0x4777a7 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a189_0x4dc018(0xc6);function isNonNumericVersion(_0x1fdaed){const _0x1376a9=a189_0x4dc018,_0xbfd3ca=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xbfd3ca[_0x1376a9(0xc2)](_0x144d21=>_0x144d21['test'](_0x1fdaed));}function getInstalledVersion(_0xde3477,_0x31cbfe){const _0x525201=a189_0x4dc018;try{const _0x352119=a189_0xf95bc9[_0x525201(0xd6)](_0xde3477,_0x525201(0xcf),_0x31cbfe,_0x525201(0xc8));if(a189_0xa47fcb[_0x525201(0xb3)](_0x352119)){const _0xfe42d5=JSON['parse'](a189_0xa47fcb[_0x525201(0xd0)](_0x352119,'utf-8'));return _0xfe42d5['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5d4510=a189_0x4dc018;try{const _0x360a2a=await getCdnConfig();return _0x360a2a?.['sdk']?.['node']?.[_0x5d4510(0xd2)]||null;}catch{return null;}}function a189_0x4353(_0x2b9feb,_0x59538f){_0x2b9feb=_0x2b9feb-0xb3;const _0x2fc9b4=a189_0x2fc9();let _0x435364=_0x2fc9b4[_0x2b9feb];return _0x435364;}async function getSdkPackageName(){const _0x3b50fc=a189_0x4dc018;try{const _0x53de9c=await getCdnConfig();return _0x53de9c?.[_0x3b50fc(0xba)]?.[_0x3b50fc(0xc4)]?.[_0x3b50fc(0xc5)]||_0x3b50fc(0xd5);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3de293){const _0x5ad181=a189_0x4dc018,_0x2669b8=a189_0xf95bc9[_0x5ad181(0xd6)](_0x3de293,_0x5ad181(0xc8)),[_0x3326a8,_0x574895]=await Promise[_0x5ad181(0xcc)]([getSdkStableVersion(),getSdkPackageName()]),_0x9fa528=_0x3326a8||FALLBACK_MIN_SDK_VERSION;if(!a189_0xa47fcb['existsSync'](_0x2669b8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9fa528,'packageName':_0x574895,'stableVersion':_0x3326a8};try{const _0x47fb02=JSON[_0x5ad181(0xc0)](a189_0xa47fcb[_0x5ad181(0xd0)](_0x2669b8,_0x5ad181(0xd9))),_0x4858ee=_0x47fb02['dependencies']||{},_0x4785c7=_0x47fb02['devDependencies']||{},_0x20afda=_0x4858ee[_0x574895]||_0x4785c7[_0x574895];if(!_0x20afda)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9fa528,'packageName':_0x574895,'stableVersion':_0x3326a8};let _0x1dac86=getInstalledVersion(_0x3de293,_0x574895);!_0x1dac86&&(_0x1dac86=_0x20afda);if(isNonNumericVersion(_0x20afda))return{'installed':!![],'version':_0x1dac86,'needsUpgrade':![],'minVersion':_0x9fa528,'packageName':_0x574895,'stableVersion':_0x3326a8};const _0x3c0832=a189_0x4777a7[_0x5ad181(0xbc)](_0x1dac86),_0x5393cf=a189_0x4777a7[_0x5ad181(0xbc)](_0x9fa528),_0x2cb336=_0x3c0832&&_0x5393cf?a189_0x4777a7['lt'](_0x3c0832,_0x5393cf):![];return{'installed':!![],'version':_0x1dac86,'needsUpgrade':_0x2cb336,'minVersion':_0x9fa528,'packageName':_0x574895,'stableVersion':_0x3326a8};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9fa528,'packageName':_0x574895,'stableVersion':_0x3326a8};}}export function checkSdkVersionSync(_0x402bca){const _0x2a02e9=a189_0x4dc018,_0x32a2fd=a189_0xf95bc9['join'](_0x402bca,_0x2a02e9(0xc8)),_0x2f991d=_0x2a02e9(0xd5);if(!a189_0xa47fcb[_0x2a02e9(0xb3)](_0x32a2fd))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f991d,'stableVersion':null};try{const _0x397d3c=JSON['parse'](a189_0xa47fcb[_0x2a02e9(0xd0)](_0x32a2fd,'utf8')),_0x2272e9=_0x397d3c[_0x2a02e9(0xc9)]||{},_0xa67116=_0x397d3c['devDependencies']||{},_0x5c13c0=_0x2272e9[_0x2f991d]||_0xa67116[_0x2f991d];if(!_0x5c13c0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f991d,'stableVersion':null};let _0x3e4fa0=getInstalledVersion(_0x402bca,_0x2f991d);!_0x3e4fa0&&(_0x3e4fa0=_0x5c13c0);if(isNonNumericVersion(_0x5c13c0))return{'installed':!![],'version':_0x3e4fa0,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f991d,'stableVersion':null};const _0x1c6197=a189_0x4777a7['coerce'](_0x3e4fa0),_0x51dd4a=_0x1c6197?a189_0x4777a7['lt'](_0x1c6197,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3e4fa0,'needsUpgrade':_0x51dd4a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f991d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f991d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4f5349){const _0x9aa329=a189_0x4dc018;if(!_0x4f5349[_0x9aa329(0xcd)])return;const _0x41a146=_0x9aa329(0xb5),_0x2ef629=_0x9aa329(0xc1),_0x1dce64=_0x9aa329(0xca),_0x58bbbb=_0x4f5349[_0x9aa329(0xc5)]||'@lovrabet/sdk',_0x4f3af0=_0x4f5349[_0x9aa329(0xd2)]||_0x4f5349['minVersion'],_0x2e8506='npm\x20install\x20'+_0x58bbbb+'@'+(_0x4f3af0||_0x9aa329(0xc3));console[_0x9aa329(0xd8)](),console[_0x9aa329(0xd8)](''+_0x41a146+_0x1dce64+_0x9aa329(0xb4)+_0x2ef629),console['log'](_0x41a146+_0x9aa329(0xb8)+_0x58bbbb+'@'+_0x4f5349[_0x9aa329(0xbf)]+_0x2ef629),console[_0x9aa329(0xd8)](_0x41a146+'\x20\x20\x20Stable\x20version:\x20'+_0x4f3af0+_0x2ef629),console[_0x9aa329(0xd8)](_0x41a146+_0x9aa329(0xbe)+_0x2e8506+_0x2ef629),console['log']();}
@@ -1 +1 @@
1
- (function(_0x5e9a8d,_0x4b449a){const _0x655e6d=a189_0x46f1,_0x397a45=_0x5e9a8d();while(!![]){try{const _0x4ad0ea=parseInt(_0x655e6d(0x12e))/0x1+parseInt(_0x655e6d(0x134))/0x2*(-parseInt(_0x655e6d(0x133))/0x3)+-parseInt(_0x655e6d(0x149))/0x4*(-parseInt(_0x655e6d(0x14f))/0x5)+parseInt(_0x655e6d(0x13a))/0x6+-parseInt(_0x655e6d(0x14b))/0x7*(parseInt(_0x655e6d(0x14e))/0x8)+-parseInt(_0x655e6d(0x14a))/0x9*(parseInt(_0x655e6d(0x13e))/0xa)+-parseInt(_0x655e6d(0x132))/0xb*(-parseInt(_0x655e6d(0x13f))/0xc);if(_0x4ad0ea===_0x4b449a)break;else _0x397a45['push'](_0x397a45['shift']());}catch(_0x190c5c){_0x397a45['push'](_0x397a45['shift']());}}}(a189_0x332b,0xbaa41));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a189_0x46f1(_0x5acbf4,_0x4a3a2a){_0x5acbf4=_0x5acbf4-0x128;const _0x332b3c=a189_0x332b();let _0x46f1e9=_0x332b3c[_0x5acbf4];return _0x46f1e9;}import a189_0x1057b2 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(_0x11ad4f){const _0x130725=a189_0x46f1,_0x768907=_0x11ad4f[_0x130725(0x150)]||_0x130725(0x143);return _0x130725(0x138)+NPM_PACKAGE_NAME+'@'+_0x768907;}function getCurrentCliVersion(){const _0x44bc35=a189_0x46f1;try{const _0x3bc155=fileURLToPath(import.meta.url),_0xd98f23=resolve(dirname(_0x3bc155),_0x44bc35(0x140)),_0x57ba98=resolve(_0xd98f23,_0x44bc35(0x135)),_0x3eb0cd=JSON[_0x44bc35(0x131)](readFileSync(_0x57ba98,_0x44bc35(0x13c)));return _0x3eb0cd['version']||_0x44bc35(0x12d);}catch{return _0x44bc35(0x12d);}}function a189_0x332b(){const _0x260bde=['\x20\x20\x20Minimum\x20supported:\x20','utf-8','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','8306770Pcnmsb','12zGioVq','../..','Current\x20version:\x20','minimumVersionMessage','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20supported:\x20','validation','upgradeMessage','currentVersion','27112XZZpUU','9jGdmHF','1057CAsHeP','\x20\x20\x20','join','2936luwwyF','415ZnmYxC','stableVersion','needsUpgrade','log','minimumVersion','\x20\x20\x20Upgrade\x20command:\x20','↪\x20New\x20version\x20available','\x1b[0m','1.0.0','758052TtefPr','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[31m','parse','691669mUuWKw','2153205ufJJwQ','2Fjnvoj','package.json','coerce','belowMinimum','npm\x20install\x20-g\x20','\x20\x20\x20Recommended\x20stable:\x20','5908830dTnAqP'];a189_0x332b=function(){return _0x260bde;};return a189_0x332b();}export async function checkCliVersion(){const _0x1f9779=a189_0x46f1,_0x19159b=getCurrentCliVersion(),_0x661885=await getCliVersionPolicy(),_0x5921ee=_0x661885?.['stableVersion']||null,_0x5573e4=_0x661885?.['minimumVersion']||null;let _0x3cdf59=![],_0x1d0380=![];const _0x178a71=a189_0x1057b2[_0x1f9779(0x136)](_0x19159b);if(_0x178a71&&_0x5921ee)try{const _0x1ae253=a189_0x1057b2['coerce'](_0x5921ee);if(_0x1ae253)_0x3cdf59=a189_0x1057b2['lt'](_0x178a71,_0x1ae253);}catch{}if(_0x178a71&&_0x5573e4)try{const _0x30d69d=a189_0x1057b2[_0x1f9779(0x136)](_0x5573e4);if(_0x30d69d)_0x1d0380=a189_0x1057b2['lt'](_0x178a71,_0x30d69d);}catch{}return _0x1d0380&&(_0x3cdf59=!![]),{'currentVersion':_0x19159b,'stableVersion':_0x5921ee,'minimumVersion':_0x5573e4,'needsUpgrade':_0x3cdf59,'belowMinimum':_0x1d0380,'isPreRelease':![],'upgradeMessage':_0x661885?.['upgradeMessage'],'minimumVersionMessage':_0x661885?.[_0x1f9779(0x142)]};}export function printCliUpgradeWarning(_0x584993){const _0x4f1fc0=a189_0x46f1;if(!_0x584993[_0x4f1fc0(0x151)]&&!_0x584993[_0x4f1fc0(0x137)])return;const _0xf52d94=_0x4f1fc0(0x130),_0x495656='\x1b[33m',_0x5a239d=_0x4f1fc0(0x12c),_0x22e6d7='\x1b[1m',_0xa47461=getCliUpgradeCommand(_0x584993);console[_0x4f1fc0(0x128)](),_0x584993[_0x4f1fc0(0x137)]?(console[_0x4f1fc0(0x128)](''+_0xf52d94+_0x22e6d7+_0x4f1fc0(0x12f)+_0x5a239d),console['log'](_0xf52d94+_0x4f1fc0(0x144)+_0x584993[_0x4f1fc0(0x148)]+_0x5a239d),_0x584993[_0x4f1fc0(0x129)]&&console[_0x4f1fc0(0x128)](_0xf52d94+_0x4f1fc0(0x13b)+_0x584993[_0x4f1fc0(0x129)]+_0x5a239d),_0x584993[_0x4f1fc0(0x150)]&&_0x584993[_0x4f1fc0(0x150)]!==_0x584993['minimumVersion']&&console[_0x4f1fc0(0x128)](_0xf52d94+_0x4f1fc0(0x139)+_0x584993[_0x4f1fc0(0x150)]+_0x5a239d),_0x584993['minimumVersionMessage']&&console['log'](_0xf52d94+_0x4f1fc0(0x14c)+_0x584993[_0x4f1fc0(0x142)]+_0x5a239d),console[_0x4f1fc0(0x128)](_0xf52d94+'\x20\x20\x20Upgrade\x20command:\x20'+_0xa47461+_0x5a239d)):(console[_0x4f1fc0(0x128)](''+_0x495656+_0x22e6d7+_0x4f1fc0(0x12b)+_0x5a239d),console['log'](_0x495656+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x584993['currentVersion']+_0x5a239d),console[_0x4f1fc0(0x128)](_0x495656+'\x20\x20\x20Stable\x20version:\x20'+_0x584993[_0x4f1fc0(0x150)]+_0x5a239d),_0x584993[_0x4f1fc0(0x147)]&&console[_0x4f1fc0(0x128)](_0x495656+'\x20\x20\x20'+_0x584993[_0x4f1fc0(0x147)]+_0x5a239d),console[_0x4f1fc0(0x128)](_0x495656+_0x4f1fc0(0x12a)+_0xa47461+_0x5a239d)),console[_0x4f1fc0(0x128)]();}export function assertCliVersionSupported(_0x5d4615){const _0x1fd8bf=a189_0x46f1;if(!_0x5d4615[_0x1fd8bf(0x137)])return;const _0x294e1c=[_0x5d4615[_0x1fd8bf(0x142)],_0x1fd8bf(0x141)+_0x5d4615[_0x1fd8bf(0x148)],_0x5d4615[_0x1fd8bf(0x129)]?_0x1fd8bf(0x145)+_0x5d4615[_0x1fd8bf(0x129)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x5d4615)]['filter'](Boolean)[_0x1fd8bf(0x14d)]('\x0a');throw CliErrors[_0x1fd8bf(0x146)](_0x1fd8bf(0x13d),_0x294e1c);}
1
+ (function(_0x55a36d,_0x489323){const _0x237b90=a190_0x3bd2,_0x12e8bf=_0x55a36d();while(!![]){try{const _0x4b6c05=parseInt(_0x237b90(0x9f))/0x1*(parseInt(_0x237b90(0x9e))/0x2)+parseInt(_0x237b90(0xa4))/0x3+-parseInt(_0x237b90(0xa5))/0x4+-parseInt(_0x237b90(0x95))/0x5+-parseInt(_0x237b90(0x9d))/0x6+parseInt(_0x237b90(0x9c))/0x7*(parseInt(_0x237b90(0xa1))/0x8)+-parseInt(_0x237b90(0xa6))/0x9*(-parseInt(_0x237b90(0xaa))/0xa);if(_0x4b6c05===_0x489323)break;else _0x12e8bf['push'](_0x12e8bf['shift']());}catch(_0x182d57){_0x12e8bf['push'](_0x12e8bf['shift']());}}}(a190_0x357a,0x84867));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a190_0x3f1b5b 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(_0x295a9f){const _0x2b579b=a190_0x3bd2,_0x20abcf=_0x295a9f['stableVersion']||_0x2b579b(0xa8);return _0x2b579b(0xab)+NPM_PACKAGE_NAME+'@'+_0x20abcf;}function getCurrentCliVersion(){const _0xe8809b=a190_0x3bd2;try{const _0x32926d=fileURLToPath(import.meta.url),_0x5d5aa7=resolve(dirname(_0x32926d),_0xe8809b(0x8e)),_0x2bdbeb=resolve(_0x5d5aa7,_0xe8809b(0x93)),_0x14ff02=JSON[_0xe8809b(0x9a)](readFileSync(_0x2bdbeb,_0xe8809b(0x90)));return _0x14ff02[_0xe8809b(0x92)]||_0xe8809b(0x8f);}catch{return _0xe8809b(0x8f);}}function a190_0x3bd2(_0x3e96df,_0x17305d){_0x3e96df=_0x3e96df-0x89;const _0x357a34=a190_0x357a();let _0x3bd240=_0x357a34[_0x3e96df];return _0x3bd240;}function a190_0x357a(){const _0x428202=['currentVersion','../..','1.0.0','utf-8','minimumVersion','version','package.json','coerce','1914650cfvtJK','\x20\x20\x20','upgradeMessage','\x1b[1m','Minimum\x20supported:\x20','parse','minimumVersionMessage','574nrAIvq','2292546SXCaVs','34JUNHgJ','21226ihbDCD','stableVersion','53344GrHdrl','belowMinimum','\x20\x20\x20Current\x20CLI\x20version:\x20','1075317AoLydH','521216lNNSrr','9yKtAuf','\x20\x20\x20Stable\x20version:\x20','latest','needsUpgrade','1720910PJiUJR','npm\x20install\x20-g\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','validation','Current\x20version:\x20','\x1b[0m','\x20\x20\x20Minimum\x20supported:\x20','log','\x20\x20\x20Recommended\x20stable:\x20','\x1b[33m','↪\x20New\x20version\x20available','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.'];a190_0x357a=function(){return _0x428202;};return a190_0x357a();}export async function checkCliVersion(){const _0x39e5a3=a190_0x3bd2,_0x4bbb41=getCurrentCliVersion(),_0x46b765=await getCliVersionPolicy(),_0x37eb54=_0x46b765?.['stableVersion']||null,_0x268611=_0x46b765?.[_0x39e5a3(0x91)]||null;let _0x1a8c8a=![],_0x496a61=![];const _0x1869f6=a190_0x3f1b5b[_0x39e5a3(0x94)](_0x4bbb41);if(_0x1869f6&&_0x37eb54)try{const _0x3106fe=a190_0x3f1b5b[_0x39e5a3(0x94)](_0x37eb54);if(_0x3106fe)_0x1a8c8a=a190_0x3f1b5b['lt'](_0x1869f6,_0x3106fe);}catch{}if(_0x1869f6&&_0x268611)try{const _0x5bc6cc=a190_0x3f1b5b['coerce'](_0x268611);if(_0x5bc6cc)_0x496a61=a190_0x3f1b5b['lt'](_0x1869f6,_0x5bc6cc);}catch{}return _0x496a61&&(_0x1a8c8a=!![]),{'currentVersion':_0x4bbb41,'stableVersion':_0x37eb54,'minimumVersion':_0x268611,'needsUpgrade':_0x1a8c8a,'belowMinimum':_0x496a61,'isPreRelease':![],'upgradeMessage':_0x46b765?.[_0x39e5a3(0x97)],'minimumVersionMessage':_0x46b765?.[_0x39e5a3(0x9b)]};}export function printCliUpgradeWarning(_0xfe3d5e){const _0x4d0e93=a190_0x3bd2;if(!_0xfe3d5e[_0x4d0e93(0xa9)]&&!_0xfe3d5e[_0x4d0e93(0xa2)])return;const _0x52326b='\x1b[31m',_0x550771=_0x4d0e93(0x89),_0x5cffe4=_0x4d0e93(0xaf),_0x4be77b=_0x4d0e93(0x98),_0x3964db=getCliUpgradeCommand(_0xfe3d5e);console[_0x4d0e93(0xb1)](),_0xfe3d5e[_0x4d0e93(0xa2)]?(console[_0x4d0e93(0xb1)](''+_0x52326b+_0x4be77b+_0x4d0e93(0xac)+_0x5cffe4),console[_0x4d0e93(0xb1)](_0x52326b+_0x4d0e93(0xa3)+_0xfe3d5e['currentVersion']+_0x5cffe4),_0xfe3d5e[_0x4d0e93(0x91)]&&console[_0x4d0e93(0xb1)](_0x52326b+_0x4d0e93(0xb0)+_0xfe3d5e[_0x4d0e93(0x91)]+_0x5cffe4),_0xfe3d5e[_0x4d0e93(0xa0)]&&_0xfe3d5e[_0x4d0e93(0xa0)]!==_0xfe3d5e[_0x4d0e93(0x91)]&&console[_0x4d0e93(0xb1)](_0x52326b+_0x4d0e93(0xb2)+_0xfe3d5e['stableVersion']+_0x5cffe4),_0xfe3d5e[_0x4d0e93(0x9b)]&&console['log'](_0x52326b+_0x4d0e93(0x96)+_0xfe3d5e[_0x4d0e93(0x9b)]+_0x5cffe4),console['log'](_0x52326b+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3964db+_0x5cffe4)):(console[_0x4d0e93(0xb1)](''+_0x550771+_0x4be77b+_0x4d0e93(0x8a)+_0x5cffe4),console[_0x4d0e93(0xb1)](_0x550771+_0x4d0e93(0xa3)+_0xfe3d5e[_0x4d0e93(0x8d)]+_0x5cffe4),console['log'](_0x550771+_0x4d0e93(0xa7)+_0xfe3d5e['stableVersion']+_0x5cffe4),_0xfe3d5e[_0x4d0e93(0x97)]&&console[_0x4d0e93(0xb1)](_0x550771+'\x20\x20\x20'+_0xfe3d5e[_0x4d0e93(0x97)]+_0x5cffe4),console[_0x4d0e93(0xb1)](_0x550771+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3964db+_0x5cffe4)),console[_0x4d0e93(0xb1)]();}export function assertCliVersionSupported(_0x39dfbb){const _0x512d24=a190_0x3bd2;if(!_0x39dfbb[_0x512d24(0xa2)])return;const _0xfaa2d5=[_0x39dfbb['minimumVersionMessage'],_0x512d24(0xae)+_0x39dfbb['currentVersion'],_0x39dfbb[_0x512d24(0x91)]?_0x512d24(0x99)+_0x39dfbb['minimumVersion']:null,_0x512d24(0x8b)+getCliUpgradeCommand(_0x39dfbb)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x512d24(0xad)](_0x512d24(0x8c),_0xfaa2d5);}
@@ -1 +1 @@
1
- (function(_0x201844,_0x41803a){const _0x159d00=a190_0x2058,_0xa37278=_0x201844();while(!![]){try{const _0x5a4b16=parseInt(_0x159d00(0x151))/0x1*(parseInt(_0x159d00(0x147))/0x2)+-parseInt(_0x159d00(0x142))/0x3+parseInt(_0x159d00(0x144))/0x4+parseInt(_0x159d00(0x14e))/0x5*(parseInt(_0x159d00(0x143))/0x6)+parseInt(_0x159d00(0x14a))/0x7+-parseInt(_0x159d00(0x145))/0x8*(-parseInt(_0x159d00(0x146))/0x9)+-parseInt(_0x159d00(0x150))/0xa;if(_0x5a4b16===_0x41803a)break;else _0xa37278['push'](_0xa37278['shift']());}catch(_0x5320d9){_0xa37278['push'](_0xa37278['shift']());}}}(a190_0x23f7,0x9000a));function a190_0x23f7(){const _0x5b1d5d=['minimumVersion','latestVersion','840303BBYttl','8214cPwHPB','242452oYbQFy','16wulxQu','9657MlGuqH','108358lNHCil','signal','trim','7384930vpOLIO','json','cli','minVersion','2015mQsNRV','object','17205640kOQKNP','17wAmolt','length'];a190_0x23f7=function(){return _0x5b1d5d;};return a190_0x23f7();}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(_0x3194ca){const _0x17f99f=a190_0x2058;return typeof _0x3194ca==='string'&&_0x3194ca[_0x17f99f(0x149)]()[_0x17f99f(0x152)]>0x0?_0x3194ca[_0x17f99f(0x149)]():null;}function normalizeCliVersionPolicy(_0x178fa5){const _0x7c6585=a190_0x2058;if(!_0x178fa5||typeof _0x178fa5!==_0x7c6585(0x14f))return null;const _0x271479=_0x178fa5,_0x574e96=_0x271479[_0x7c6585(0x14c)]&&typeof _0x271479[_0x7c6585(0x14c)]===_0x7c6585(0x14f)?_0x271479['cli']:_0x271479,_0x10262d=pickString(_0x574e96['stableVersion'])||pickString(_0x574e96[_0x7c6585(0x154)])||pickString(_0x574e96['recommendedVersion']),_0x7d4186=pickString(_0x574e96[_0x7c6585(0x153)])||pickString(_0x574e96[_0x7c6585(0x14d)]);if(!_0x10262d&&!_0x7d4186)return null;return{'stableVersion':_0x10262d,'minimumVersion':_0x7d4186,'upgradeMessage':pickString(_0x574e96['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x574e96['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x112696=a190_0x2058,_0x37d4fa=new AbortController(),_0x3beb5f=setTimeout(()=>_0x37d4fa['abort'](),FETCH_TIMEOUT_MS);try{const _0x1ef812=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x37d4fa[_0x112696(0x148)]});if(!_0x1ef812['ok'])return null;const _0x2e47d8=await _0x1ef812[_0x112696(0x14b)]();return normalizeCliVersionPolicy(_0x2e47d8);}catch{return null;}finally{clearTimeout(_0x3beb5f);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xb776ef=Date['now']();if(hasCachedPolicy){const _0x5c658a=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xb776ef-cacheTime<_0x5c658a)return cachedPolicy;}const _0x11f2bb=await fetchCliVersionPolicy();return cachedPolicy=_0x11f2bb,cacheTime=_0xb776ef,hasCachedPolicy=!![],_0x11f2bb;}function a190_0x2058(_0x39913f,_0x337722){_0x39913f=_0x39913f-0x142;const _0x23f77d=a190_0x23f7();let _0x2058d3=_0x23f77d[_0x39913f];return _0x2058d3;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x56899b,_0x20a8da){const _0x3ae66a=a191_0x181a,_0x10a8ce=_0x56899b();while(!![]){try{const _0x31b909=parseInt(_0x3ae66a(0x1df))/0x1+parseInt(_0x3ae66a(0x1ce))/0x2*(parseInt(_0x3ae66a(0x1cd))/0x3)+parseInt(_0x3ae66a(0x1d0))/0x4*(parseInt(_0x3ae66a(0x1dd))/0x5)+parseInt(_0x3ae66a(0x1e6))/0x6+-parseInt(_0x3ae66a(0x1e2))/0x7+parseInt(_0x3ae66a(0x1de))/0x8*(-parseInt(_0x3ae66a(0x1e4))/0x9)+parseInt(_0x3ae66a(0x1d2))/0xa*(-parseInt(_0x3ae66a(0x1db))/0xb);if(_0x31b909===_0x20a8da)break;else _0x10a8ce['push'](_0x10a8ce['shift']());}catch(_0xd1831c){_0x10a8ce['push'](_0x10a8ce['shift']());}}}(a191_0x1aba,0x3336c));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(_0x2a6bd6){const _0x150cce=a191_0x181a;return typeof _0x2a6bd6==='string'&&_0x2a6bd6[_0x150cce(0x1da)]()[_0x150cce(0x1e1)]>0x0?_0x2a6bd6[_0x150cce(0x1da)]():null;}function normalizeCliVersionPolicy(_0x26fc17){const _0x48464f=a191_0x181a;if(!_0x26fc17||typeof _0x26fc17!=='object')return null;const _0x1544bb=_0x26fc17,_0x156901=_0x1544bb[_0x48464f(0x1d6)]&&typeof _0x1544bb[_0x48464f(0x1d6)]===_0x48464f(0x1d3)?_0x1544bb[_0x48464f(0x1d6)]:_0x1544bb,_0x329f24=pickString(_0x156901[_0x48464f(0x1e5)])||pickString(_0x156901[_0x48464f(0x1d9)])||pickString(_0x156901[_0x48464f(0x1e3)]),_0x238903=pickString(_0x156901['minimumVersion'])||pickString(_0x156901[_0x48464f(0x1cf)]);if(!_0x329f24&&!_0x238903)return null;return{'stableVersion':_0x329f24,'minimumVersion':_0x238903,'upgradeMessage':pickString(_0x156901[_0x48464f(0x1d8)])||undefined,'minimumVersionMessage':pickString(_0x156901[_0x48464f(0x1d7)])||undefined};}export async function fetchCliVersionPolicy(){const _0x29b0b1=a191_0x181a,_0x4ce0e2=new AbortController(),_0x452f09=setTimeout(()=>_0x4ce0e2[_0x29b0b1(0x1e0)](),FETCH_TIMEOUT_MS);try{const _0x9409c3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x29b0b1(0x1dc)},'signal':_0x4ce0e2[_0x29b0b1(0x1d5)]});if(!_0x9409c3['ok'])return null;const _0x19ad32=await _0x9409c3[_0x29b0b1(0x1d1)]();return normalizeCliVersionPolicy(_0x19ad32);}catch{return null;}finally{clearTimeout(_0x452f09);}}function a191_0x1aba(){const _0x1bc024=['now','signal','cli','minimumVersionMessage','upgradeMessage','latestVersion','trim','49995BTBSpm','application/json','25oEteyY','901768BYicAo','140676IDpYyE','abort','length','2162300hiqYjC','recommendedVersion','9LYrkHX','stableVersion','437118qXmzrO','986142OaSeUN','2IOzOdp','minVersion','162220mZOohf','json','250rKbTHo','object'];a191_0x1aba=function(){return _0x1bc024;};return a191_0x1aba();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x47c055=a191_0x181a,_0x41d71d=Date[_0x47c055(0x1d4)]();if(hasCachedPolicy){const _0x1d5443=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x41d71d-cacheTime<_0x1d5443)return cachedPolicy;}const _0x2fdc00=await fetchCliVersionPolicy();return cachedPolicy=_0x2fdc00,cacheTime=_0x41d71d,hasCachedPolicy=!![],_0x2fdc00;}function a191_0x181a(_0x1d1627,_0x531519){_0x1d1627=_0x1d1627-0x1cd;const _0x1abafa=a191_0x1aba();let _0x181a43=_0x1abafa[_0x1d1627];return _0x181a43;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a191_0x31af(_0x5b8e57,_0x76c9fc){_0x5b8e57=_0x5b8e57-0xfa;const _0xba5c2e=a191_0xba5c();let _0x31af7f=_0xba5c2e[_0x5b8e57];return _0x31af7f;}const a191_0x348e22=a191_0x31af;(function(_0x1c51eb,_0x1393df){const _0xf67fa8=a191_0x31af,_0x3d86f5=_0x1c51eb();while(!![]){try{const _0x1c43b1=-parseInt(_0xf67fa8(0xfb))/0x1+-parseInt(_0xf67fa8(0xfa))/0x2+-parseInt(_0xf67fa8(0x103))/0x3*(-parseInt(_0xf67fa8(0xff))/0x4)+-parseInt(_0xf67fa8(0x104))/0x5*(-parseInt(_0xf67fa8(0xfc))/0x6)+-parseInt(_0xf67fa8(0xfe))/0x7+parseInt(_0xf67fa8(0xfd))/0x8*(-parseInt(_0xf67fa8(0x101))/0x9)+parseInt(_0xf67fa8(0x100))/0xa*(parseInt(_0xf67fa8(0x106))/0xb);if(_0x1c43b1===_0x1393df)break;else _0x3d86f5['push'](_0x3d86f5['shift']());}catch(_0x517c83){_0x3d86f5['push'](_0x3d86f5['shift']());}}}(a191_0xba5c,0xef118));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x2b5f7f,getMultiAppConfigs as a191_0xa62be9,getTemplateBaseUrl as a191_0x15da3c}from'../context.js';function a191_0xba5c(){const _0x2aa460=['1690160zfKXTu','54JRHnSX','project','15WmKWvw','2927150IXNjMT','env','297CHdJgf','3729748mPEAKl','1110770sGsXmW','12gipNHK','656976ujLTVz','9672264SuqcdS','76048wYFhmk'];a191_0xba5c=function(){return _0x2aa460;};return a191_0xba5c();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x413fa9){const _0x3b3614=a191_0x31af,_0x1ac130=readRawConfig(_0x413fa9);return _0x1ac130[_0x3b3614(0x105)]&&typeof _0x1ac130[_0x3b3614(0x105)]==='string'&&initEnv(_0x1ac130[_0x3b3614(0x105)]),_0x1ac130;}export function getConfigAppCode(){return a191_0x2b5f7f();}export function getMultiAppConfigs(_0x20d5ad=a191_0x348e22(0x102)){return a191_0xa62be9(_0x20d5ad);}export function getTemplateBaseUrl(){return a191_0x15da3c();}
1
+ (function(_0x178158,_0x34e363){const _0x8fbc0a=a192_0x34ab,_0x8586de=_0x178158();while(!![]){try{const _0x31763c=-parseInt(_0x8fbc0a(0xae))/0x1*(parseInt(_0x8fbc0a(0xac))/0x2)+-parseInt(_0x8fbc0a(0xaa))/0x3*(-parseInt(_0x8fbc0a(0xa9))/0x4)+-parseInt(_0x8fbc0a(0xb2))/0x5*(parseInt(_0x8fbc0a(0xb1))/0x6)+parseInt(_0x8fbc0a(0xad))/0x7+-parseInt(_0x8fbc0a(0xb3))/0x8*(-parseInt(_0x8fbc0a(0xa8))/0x9)+parseInt(_0x8fbc0a(0xa7))/0xa*(-parseInt(_0x8fbc0a(0xb0))/0xb)+parseInt(_0x8fbc0a(0xab))/0xc;if(_0x31763c===_0x34e363)break;else _0x8586de['push'](_0x8586de['shift']());}catch(_0x3ee8c2){_0x8586de['push'](_0x8586de['shift']());}}}(a192_0x4f90,0x3332f));function a192_0x4f90(){const _0x44c8ad=['22684wlGliO','48fUPpUP','13185012pzeGDb','130hEwava','328573QnxjRH','4997EraBTq','env','144166LWmnvY','600018GXMgDF','20ShQrgN','469976YRTeiw','320mQttBN','18SvOdAg'];a192_0x4f90=function(){return _0x44c8ad;};return a192_0x4f90();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0x3fdf94,getMultiAppConfigs as a192_0x5af072,getTemplateBaseUrl as a192_0x5c00e3}from'../context.js';function a192_0x34ab(_0x27fdec,_0x20f68a){_0x27fdec=_0x27fdec-0xa7;const _0x4f903d=a192_0x4f90();let _0x34abf3=_0x4f903d[_0x27fdec];return _0x34abf3;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5842c0){const _0x23c0df=a192_0x34ab,_0x7d58f5=readRawConfig(_0x5842c0);return _0x7d58f5[_0x23c0df(0xaf)]&&typeof _0x7d58f5[_0x23c0df(0xaf)]==='string'&&initEnv(_0x7d58f5[_0x23c0df(0xaf)]),_0x7d58f5;}export function getConfigAppCode(){return a192_0x3fdf94();}export function getMultiAppConfigs(_0x2f68af='project'){return a192_0x5af072(_0x2f68af);}export function getTemplateBaseUrl(){return a192_0x5c00e3();}
@@ -1 +1 @@
1
- (function(_0x2854a0,_0x6bab1c){const _0x534f57=a192_0x5085,_0x1c598b=_0x2854a0();while(!![]){try{const _0x5d8ec0=-parseInt(_0x534f57(0x173))/0x1*(-parseInt(_0x534f57(0x17e))/0x2)+parseInt(_0x534f57(0x177))/0x3*(parseInt(_0x534f57(0x17f))/0x4)+-parseInt(_0x534f57(0x17b))/0x5+parseInt(_0x534f57(0x17d))/0x6*(parseInt(_0x534f57(0x17a))/0x7)+parseInt(_0x534f57(0x175))/0x8*(-parseInt(_0x534f57(0x178))/0x9)+parseInt(_0x534f57(0x171))/0xa+parseInt(_0x534f57(0x179))/0xb;if(_0x5d8ec0===_0x6bab1c)break;else _0x1c598b['push'](_0x1c598b['shift']());}catch(_0x5c6081){_0x1c598b['push'](_0x1c598b['shift']());}}}(a192_0xa1b9,0x4bb53));function a192_0x5085(_0x5c1700,_0x4f2b51){_0x5c1700=_0x5c1700-0x170;const _0xa1b99c=a192_0xa1b9();let _0x508509=_0xa1b99c[_0x5c1700];return _0x508509;}function a192_0xa1b9(){const _0x15ded6=['name','8TZlBBP','join','1929008alfNYx','isDirectory','3xbigPB','18GTRApx','656865KcHWBK','7273fTfDfh','949515KAYlSD','mkdirSync','846KQQlaP','98888RcYEoA','620804RFrzPt','复制目录时出错:','readdirSync','copyFileSync','2252870bIFeqX'];a192_0xa1b9=function(){return _0x15ded6;};return a192_0xa1b9();}import a192_0x3c3e50 from'node:path';import a192_0x594a99 from'node:fs';export async function copyDirectory(_0x5cf8b2,_0x4db725){const _0x534523=a192_0x5085;try{const _0x1f74d9=a192_0x594a99[_0x534523(0x181)](_0x5cf8b2,{'withFileTypes':!![]});a192_0x594a99[_0x534523(0x17c)](_0x4db725,{'recursive':!![]});for(const _0x28d1fd of _0x1f74d9){const _0x3cb300=a192_0x3c3e50[_0x534523(0x174)](_0x5cf8b2,_0x28d1fd[_0x534523(0x172)]),_0x5ed3a2=a192_0x3c3e50[_0x534523(0x174)](_0x4db725,_0x28d1fd['name']);_0x28d1fd[_0x534523(0x176)]()?await copyDirectory(_0x3cb300,_0x5ed3a2):a192_0x594a99[_0x534523(0x170)](_0x3cb300,_0x5ed3a2);}}catch(_0x81223){console['error'](_0x534523(0x180),_0x81223);}}
1
+ function a193_0x1820(){const _0x4073c1=['320496pKJVpE','585540rZUYeg','1635kXgjty','1243380MggVxy','375000VTPJsJ','mkdirSync','5048dwxgjG','error','copyFileSync','260QQMVyM','22YuklsQ','5gHqpvJ','复制目录时出错:','18KlXLgS','join','1287ErIFsJ','426083lMgVWz','name'];a193_0x1820=function(){return _0x4073c1;};return a193_0x1820();}(function(_0x95e10,_0x159658){const _0x575e9a=a193_0x1a79,_0x251df9=_0x95e10();while(!![]){try{const _0x1df7d6=-parseInt(_0x575e9a(0x95))/0x1*(parseInt(_0x575e9a(0x9c))/0x2)+parseInt(_0x575e9a(0x93))/0x3+-parseInt(_0x575e9a(0x97))/0x4*(parseInt(_0x575e9a(0x8c))/0x5)+parseInt(_0x575e9a(0x8e))/0x6*(parseInt(_0x575e9a(0x91))/0x7)+parseInt(_0x575e9a(0x99))/0x8*(-parseInt(_0x575e9a(0x90))/0x9)+-parseInt(_0x575e9a(0x94))/0xa*(-parseInt(_0x575e9a(0x9d))/0xb)+parseInt(_0x575e9a(0x96))/0xc;if(_0x1df7d6===_0x159658)break;else _0x251df9['push'](_0x251df9['shift']());}catch(_0x385d2e){_0x251df9['push'](_0x251df9['shift']());}}}(a193_0x1820,0x1bbdd));function a193_0x1a79(_0x5c0fb5,_0x26db5c){_0x5c0fb5=_0x5c0fb5-0x8c;const _0x18208a=a193_0x1820();let _0x1a794d=_0x18208a[_0x5c0fb5];return _0x1a794d;}import a193_0x126085 from'node:path';import a193_0x18300f from'node:fs';export async function copyDirectory(_0x1a924d,_0x27b7a2){const _0x22132a=a193_0x1a79;try{const _0x1798c3=a193_0x18300f['readdirSync'](_0x1a924d,{'withFileTypes':!![]});a193_0x18300f[_0x22132a(0x98)](_0x27b7a2,{'recursive':!![]});for(const _0x4abdc5 of _0x1798c3){const _0x52ac8e=a193_0x126085[_0x22132a(0x8f)](_0x1a924d,_0x4abdc5[_0x22132a(0x92)]),_0x5b3a67=a193_0x126085[_0x22132a(0x8f)](_0x27b7a2,_0x4abdc5['name']);_0x4abdc5['isDirectory']()?await copyDirectory(_0x52ac8e,_0x5b3a67):a193_0x18300f[_0x22132a(0x9b)](_0x52ac8e,_0x5b3a67);}}catch(_0x22a0b1){console[_0x22132a(0x9a)](_0x22132a(0x8d),_0x22a0b1);}}
@@ -1 +1 @@
1
- (function(_0x585570,_0x255fa2){const _0x2d6842=a193_0x38a2,_0x4f006c=_0x585570();while(!![]){try{const _0x89c5d1=-parseInt(_0x2d6842(0x15c))/0x1+parseInt(_0x2d6842(0x160))/0x2+-parseInt(_0x2d6842(0x164))/0x3*(parseInt(_0x2d6842(0x15d))/0x4)+parseInt(_0x2d6842(0x163))/0x5+parseInt(_0x2d6842(0x161))/0x6+parseInt(_0x2d6842(0x159))/0x7*(parseInt(_0x2d6842(0x15e))/0x8)+-parseInt(_0x2d6842(0x162))/0x9;if(_0x89c5d1===_0x255fa2)break;else _0x4f006c['push'](_0x4f006c['shift']());}catch(_0x598ece){_0x4f006c['push'](_0x4f006c['shift']());}}}(a193_0x5d0e,0x3ab6a));function a193_0x5d0e(){const _0x106b03=['513312KMfCCh','278154qxHBOK','516390vQGtec','75acQSdG','1787534iubnVC','isFinite','string','51567zPqqVC','40224hvviXs','8mFuQXC','object','260342UWEEGI'];a193_0x5d0e=function(){return _0x106b03;};return a193_0x5d0e();}function toFiniteNumber(_0x1be117){const _0x30787c=a193_0x38a2;if(typeof _0x1be117==='number'&&Number['isFinite'](_0x1be117))return _0x1be117;if(typeof _0x1be117===_0x30787c(0x15b)){const _0x392fec=_0x1be117['trim']();if(!_0x392fec)return undefined;const _0xb7d6b5=Number(_0x392fec);if(Number[_0x30787c(0x15a)](_0xb7d6b5))return _0xb7d6b5;}return undefined;}function a193_0x38a2(_0x5df2ca,_0x3499e7){_0x5df2ca=_0x5df2ca-0x159;const _0x5d0e34=a193_0x5d0e();let _0x38a276=_0x5d0e34[_0x5df2ca];return _0x38a276;}export function normalizeEntityWithIdResponse(_0x5317d0){const _0x2870b5=a193_0x38a2,_0x1c1a79=toFiniteNumber(_0x5317d0);if(_0x1c1a79!==undefined)return{'id':_0x1c1a79,'entity':{'id':_0x1c1a79}};if(!_0x5317d0||typeof _0x5317d0!==_0x2870b5(0x15f))return{'id':undefined,'entity':{}};const _0x2f918e={..._0x5317d0},_0x2f0a8c=toFiniteNumber(_0x2f918e['id']);return _0x2f0a8c!==undefined&&(_0x2f918e['id']=_0x2f0a8c),{'id':_0x2f0a8c,'entity':_0x2f918e};}
1
+ function a194_0x4bfa(_0x5c64f5,_0x4e2582){_0x5c64f5=_0x5c64f5-0xd8;const _0x3ae16a=a194_0x3ae1();let _0x4bfabc=_0x3ae16a[_0x5c64f5];return _0x4bfabc;}function a194_0x3ae1(){const _0x25259d=['534UNipDJ','2989000SGZSVa','number','473985MZVprV','string','1077DfNLDw','1086579FCAMQQ','394wYLjBc','object','141380iEUrmA','trim','isFinite','236zIniAq','924GHNYrp','14546mFDnSk','3853HPmkDM'];a194_0x3ae1=function(){return _0x25259d;};return a194_0x3ae1();}(function(_0x3cb4a7,_0x134ed3){const _0x4da754=a194_0x4bfa,_0x441770=_0x3cb4a7();while(!![]){try{const _0x3b0703=-parseInt(_0x4da754(0xdb))/0x1*(parseInt(_0x4da754(0xe3))/0x2)+-parseInt(_0x4da754(0xe1))/0x3*(parseInt(_0x4da754(0xd8))/0x4)+-parseInt(_0x4da754(0xdf))/0x5+-parseInt(_0x4da754(0xdc))/0x6*(parseInt(_0x4da754(0xda))/0x7)+parseInt(_0x4da754(0xdd))/0x8+-parseInt(_0x4da754(0xe2))/0x9+parseInt(_0x4da754(0xe5))/0xa*(parseInt(_0x4da754(0xd9))/0xb);if(_0x3b0703===_0x134ed3)break;else _0x441770['push'](_0x441770['shift']());}catch(_0x5e0c57){_0x441770['push'](_0x441770['shift']());}}}(a194_0x3ae1,0x5ce6d));function toFiniteNumber(_0x841bc0){const _0x5ddd2e=a194_0x4bfa;if(typeof _0x841bc0===_0x5ddd2e(0xde)&&Number['isFinite'](_0x841bc0))return _0x841bc0;if(typeof _0x841bc0===_0x5ddd2e(0xe0)){const _0x4a9a40=_0x841bc0[_0x5ddd2e(0xe6)]();if(!_0x4a9a40)return undefined;const _0x457c92=Number(_0x4a9a40);if(Number[_0x5ddd2e(0xe7)](_0x457c92))return _0x457c92;}return undefined;}export function normalizeEntityWithIdResponse(_0x9be679){const _0x41cfeb=a194_0x4bfa,_0x35f0d1=toFiniteNumber(_0x9be679);if(_0x35f0d1!==undefined)return{'id':_0x35f0d1,'entity':{'id':_0x35f0d1}};if(!_0x9be679||typeof _0x9be679!==_0x41cfeb(0xe4))return{'id':undefined,'entity':{}};const _0x4f0f03={..._0x9be679},_0x58321f=toFiniteNumber(_0x4f0f03['id']);return _0x58321f!==undefined&&(_0x4f0f03['id']=_0x58321f),{'id':_0x58321f,'entity':_0x4f0f03};}
@@ -1 +1 @@
1
- (function(_0x2efe3e,_0x147a5e){const _0x473534=a194_0x33f3,_0x29953d=_0x2efe3e();while(!![]){try{const _0x31963b=parseInt(_0x473534(0x126))/0x1+-parseInt(_0x473534(0x123))/0x2*(-parseInt(_0x473534(0x129))/0x3)+parseInt(_0x473534(0x12d))/0x4+parseInt(_0x473534(0x12c))/0x5*(-parseInt(_0x473534(0x124))/0x6)+parseInt(_0x473534(0x12a))/0x7+-parseInt(_0x473534(0x127))/0x8*(parseInt(_0x473534(0x125))/0x9)+parseInt(_0x473534(0x128))/0xa;if(_0x31963b===_0x147a5e)break;else _0x29953d['push'](_0x29953d['shift']());}catch(_0x2af2e2){_0x29953d['push'](_0x29953d['shift']());}}}(a194_0x24bb,0xa5a19));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a194_0x24bb(){const _0x576c4e=['2yrBjsz','3779988PIXMRy','16839NIEOuF','281966zkGpVS','1528otDIQW','412540fgfVRM','96837cUrlHN','4973402PGaaOV','isDirectory','5xQzDkv','2399196bdvaMX'];a194_0x24bb=function(){return _0x576c4e;};return a194_0x24bb();}function a194_0x33f3(_0x3e5072,_0x285514){_0x3e5072=_0x3e5072-0x123;const _0x24bb12=a194_0x24bb();let _0x33f35e=_0x24bb12[_0x3e5072];return _0x33f35e;}export async function copyDir(_0x56eab6,_0x488a84){const _0x13813c=a194_0x33f3,_0x4103e7=statSync(_0x56eab6);if(_0x4103e7[_0x13813c(0x12b)]()){!existsSync(_0x488a84)&&mkdirSync(_0x488a84,{'recursive':!![]});const _0x457dd8=readdirSync(_0x56eab6);for(const _0x4acfc4 of _0x457dd8){await copyDir(join(_0x56eab6,_0x4acfc4),join(_0x488a84,_0x4acfc4));}}else copyFileSync(_0x56eab6,_0x488a84);}export function ensureDir(_0x27075b){!existsSync(_0x27075b)&&mkdirSync(_0x27075b,{'recursive':!![]});}export function pathExists(_0x988ee4){return existsSync(_0x988ee4);}
1
+ (function(_0x15e52c,_0x32ed42){const _0x497eda=a195_0x4588,_0x21bdc0=_0x15e52c();while(!![]){try{const _0x16b616=-parseInt(_0x497eda(0x161))/0x1+-parseInt(_0x497eda(0x15b))/0x2*(-parseInt(_0x497eda(0x160))/0x3)+-parseInt(_0x497eda(0x15a))/0x4+parseInt(_0x497eda(0x15f))/0x5*(-parseInt(_0x497eda(0x15c))/0x6)+parseInt(_0x497eda(0x156))/0x7*(parseInt(_0x497eda(0x159))/0x8)+parseInt(_0x497eda(0x157))/0x9+-parseInt(_0x497eda(0x158))/0xa*(-parseInt(_0x497eda(0x15d))/0xb);if(_0x16b616===_0x32ed42)break;else _0x21bdc0['push'](_0x21bdc0['shift']());}catch(_0x42c348){_0x21bdc0['push'](_0x21bdc0['shift']());}}}(a195_0x501c,0x38f36));function a195_0x4588(_0x5bc4ec,_0x36b268){_0x5bc4ec=_0x5bc4ec-0x156;const _0x501ccc=a195_0x501c();let _0x4588ca=_0x501ccc[_0x5bc4ec];return _0x4588ca;}function a195_0x501c(){const _0x25d350=['9955ofvZuh','isDirectory','1224710ciBEEY','6024dipOEc','315628UvXrdQ','7jMVtyE','666765qlVAsD','6680uwgtur','2016336NZNxCD','1053324REvCps','126LqAhHC','6AgbtTK'];a195_0x501c=function(){return _0x25d350;};return a195_0x501c();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x7773f0,_0x24f04e){const _0x1125e1=a195_0x4588,_0x402692=statSync(_0x7773f0);if(_0x402692[_0x1125e1(0x15e)]()){!existsSync(_0x24f04e)&&mkdirSync(_0x24f04e,{'recursive':!![]});const _0x50c3d0=readdirSync(_0x7773f0);for(const _0xa0da92 of _0x50c3d0){await copyDir(join(_0x7773f0,_0xa0da92),join(_0x24f04e,_0xa0da92));}}else copyFileSync(_0x7773f0,_0x24f04e);}export function ensureDir(_0x17a82c){!existsSync(_0x17a82c)&&mkdirSync(_0x17a82c,{'recursive':!![]});}export function pathExists(_0x33b192){return existsSync(_0x33b192);}
@@ -1 +1 @@
1
- const a195_0x55ce89=a195_0x2188;(function(_0x2332bc,_0x385449){const _0x23d93d=a195_0x2188,_0x4f929c=_0x2332bc();while(!![]){try{const _0x29abfd=parseInt(_0x23d93d(0x87))/0x1+parseInt(_0x23d93d(0x89))/0x2+-parseInt(_0x23d93d(0x8b))/0x3*(-parseInt(_0x23d93d(0x7a))/0x4)+-parseInt(_0x23d93d(0x7e))/0x5+parseInt(_0x23d93d(0x79))/0x6+parseInt(_0x23d93d(0x88))/0x7*(-parseInt(_0x23d93d(0x83))/0x8)+-parseInt(_0x23d93d(0x78))/0x9*(parseInt(_0x23d93d(0x81))/0xa);if(_0x29abfd===_0x385449)break;else _0x4f929c['push'](_0x4f929c['shift']());}catch(_0x18a8ef){_0x4f929c['push'](_0x4f929c['shift']());}}}(a195_0x5b6c,0x8eed1));function a195_0x2188(_0x3fc800,_0x3337a5){_0x3fc800=_0x3fc800-0x74;const _0x5b6c91=a195_0x5b6c();let _0x218895=_0x5b6c91[_0x3fc800];return _0x218895;}function a195_0x5b6c(){const _0x3bfebb=['44hTRXta','.lovrabet/skill/guides','extendContent','replace','3801755mrclzD','map','/skills/guides.json','430DhOOLT','content','332936HNVOQC','statusText','title','.md','141054eHMnnB','91fEbqMT','1815884ncCFCw','object','254733VqBSTE','json','trimEnd','push','CDN\x20返回数据格式错误','keys','length','lastUpdated','utf-8','join','CDN\x20数据中缺少\x20skillTemplate','.lovrabet','entries','cache','status','guides','245277rpuMdW','6453954vKyTRu'];a195_0x5b6c=function(){return _0x3bfebb;};return a195_0x5b6c();}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 _0x26c9f5=a195_0x2188,_0x47dc31=getTemplateBaseUrl();return _0x47dc31+_0x26c9f5(0x80);}const CACHE_DIR=join(homedir(),a195_0x55ce89(0x96),a195_0x55ce89(0x75));export async function fetchGuidesFromCDN(){const _0x11470b=a195_0x55ce89,_0x3d7a01=getGuidesCdnUrl(),_0x4ae7a7=await fetch(_0x3d7a01,{'headers':{'Accept':'application/json'}});if(!_0x4ae7a7['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4ae7a7[_0x11470b(0x76)]+'\x20'+_0x4ae7a7[_0x11470b(0x84)]);const _0x575102=await _0x4ae7a7[_0x11470b(0x8c)]();if(!_0x575102['guides']||typeof _0x575102[_0x11470b(0x77)]!==_0x11470b(0x8a))throw new Error(_0x11470b(0x8f));return _0x575102;}export function writeGuidesToProject(_0x4fee09,_0x18ae8c,_0x29b0a3=a195_0x55ce89(0x7b),_0x37d88f){const _0x5ba4b3=a195_0x55ce89,_0x41f14d=join(_0x18ae8c,_0x29b0a3);mkdirSync(_0x41f14d,{'recursive':!![]});for(const [_0x152686,_0x47bfe8]of Object[_0x5ba4b3(0x74)](_0x4fee09[_0x5ba4b3(0x77)])){let _0x15e3a5=_0x47bfe8['content'];_0x47bfe8[_0x5ba4b3(0x92)]&&(_0x15e3a5=appendUpdateTime(_0x15e3a5,_0x47bfe8['lastUpdated'])),writeFileSync(join(_0x41f14d,_0x152686+_0x5ba4b3(0x86)),_0x15e3a5,_0x5ba4b3(0x93));}}export function appendUpdateTime(_0x4945d7,_0x39f5cf){const _0x31acb1=a195_0x55ce89;return _0x4945d7=_0x4945d7[_0x31acb1(0x7d)](/\n*>更新时间:.*$/m,''),_0x4945d7['trimEnd']()+('\x0a\x0a>更新时间:'+_0x39f5cf);}export function getSkillTemplate(_0x110456){const _0x122b76=a195_0x55ce89;return _0x110456['skillTemplate']?.[_0x122b76(0x82)]||'';}export function appendExtendContents(_0x412dbd,_0x46de2a,_0x5af563){const _0x1c5f0b=a195_0x55ce89,_0xf26a84=[];for(const [,_0x24ee33]of Object[_0x1c5f0b(0x74)](_0x46de2a[_0x1c5f0b(0x77)])){_0x24ee33[_0x1c5f0b(0x7c)]&&_0xf26a84[_0x1c5f0b(0x8e)](_0x24ee33['extendContent'][_0x1c5f0b(0x8d)]());}if(_0xf26a84[_0x1c5f0b(0x91)]===0x0)return _0x412dbd;return _0x412dbd[_0x1c5f0b(0x8d)]()+'\x0a\x0a'+_0xf26a84[_0x1c5f0b(0x94)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x12f3f6,_0x5a3136,_0x5cacfe){const _0x219814=a195_0x55ce89,_0x185ec4=getSkillTemplate(_0x12f3f6);if(!_0x185ec4)throw new Error(_0x219814(0x95));const _0x368326=dirname(_0x5a3136);mkdirSync(_0x368326,{'recursive':!![]});let _0x2c9aa9=_0x185ec4[_0x219814(0x7d)](/\{\{IDE_NAME\}\}/g,_0x5cacfe);_0x2c9aa9=appendExtendContents(_0x2c9aa9,_0x12f3f6),_0x12f3f6['skillTemplate'][_0x219814(0x92)]&&(_0x2c9aa9=appendUpdateTime(_0x2c9aa9,_0x12f3f6['skillTemplate'][_0x219814(0x92)])),writeFileSync(_0x5a3136,_0x2c9aa9,_0x219814(0x93));}export async function installGuides(_0x18222a){const _0x15e99b=a195_0x55ce89,_0x2c24de=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2c24de,_0x18222a),Object[_0x15e99b(0x90)](_0x2c24de[_0x15e99b(0x77)])[_0x15e99b(0x91)];}export function getGuidesSummary(_0x287b49){const _0x1d76e2=a195_0x55ce89;return Object[_0x1d76e2(0x74)](_0x287b49['guides'])[_0x1d76e2(0x7f)](([_0x3866f4,_0x4f3877])=>({'key':_0x3866f4,'title':_0x4f3877[_0x1d76e2(0x85)],'path':_0x4f3877['path']}));}
1
+ function a196_0x23be(_0x13af9b,_0x23b052){_0x13af9b=_0x13af9b-0x14e;const _0x5c07e9=a196_0x5c07();let _0x23be74=_0x5c07e9[_0x13af9b];return _0x23be74;}const a196_0x519ee1=a196_0x23be;(function(_0x38ed58,_0x32c70){const _0x5ee6eb=a196_0x23be,_0xd7706e=_0x38ed58();while(!![]){try{const _0x5da5f4=parseInt(_0x5ee6eb(0x155))/0x1+-parseInt(_0x5ee6eb(0x16f))/0x2*(parseInt(_0x5ee6eb(0x16d))/0x3)+parseInt(_0x5ee6eb(0x171))/0x4+-parseInt(_0x5ee6eb(0x159))/0x5*(-parseInt(_0x5ee6eb(0x154))/0x6)+-parseInt(_0x5ee6eb(0x160))/0x7*(parseInt(_0x5ee6eb(0x157))/0x8)+-parseInt(_0x5ee6eb(0x150))/0x9*(parseInt(_0x5ee6eb(0x164))/0xa)+-parseInt(_0x5ee6eb(0x16e))/0xb*(-parseInt(_0x5ee6eb(0x161))/0xc);if(_0x5da5f4===_0x32c70)break;else _0xd7706e['push'](_0xd7706e['shift']());}catch(_0x242b18){_0xd7706e['push'](_0xd7706e['shift']());}}}(a196_0x5c07,0x78adb));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 _0x5e8b58=a196_0x23be,_0x4c363a=getTemplateBaseUrl();return _0x4c363a+_0x5e8b58(0x16c);}const CACHE_DIR=join(homedir(),a196_0x519ee1(0x15e),'cache');export async function fetchGuidesFromCDN(){const _0x512e96=a196_0x519ee1,_0x54010c=getGuidesCdnUrl(),_0x21d05e=await fetch(_0x54010c,{'headers':{'Accept':_0x512e96(0x173)}});if(!_0x21d05e['ok'])throw new Error(_0x512e96(0x15b)+_0x21d05e[_0x512e96(0x170)]+'\x20'+_0x21d05e[_0x512e96(0x15f)]);const _0xbfb286=await _0x21d05e[_0x512e96(0x165)]();if(!_0xbfb286['guides']||typeof _0xbfb286[_0x512e96(0x169)]!==_0x512e96(0x15d))throw new Error('CDN\x20返回数据格式错误');return _0xbfb286;}export function writeGuidesToProject(_0x21e374,_0x1d30f4,_0x1d16b5=a196_0x519ee1(0x16a),_0x53d608){const _0x160ef0=a196_0x519ee1,_0x523386=join(_0x1d30f4,_0x1d16b5);mkdirSync(_0x523386,{'recursive':!![]});for(const [_0x36c653,_0x2f965a]of Object['entries'](_0x21e374[_0x160ef0(0x169)])){let _0x27f024=_0x2f965a[_0x160ef0(0x15a)];_0x2f965a[_0x160ef0(0x153)]&&(_0x27f024=appendUpdateTime(_0x27f024,_0x2f965a[_0x160ef0(0x153)])),writeFileSync(join(_0x523386,_0x36c653+_0x160ef0(0x14f)),_0x27f024,_0x160ef0(0x166));}}export function appendUpdateTime(_0x113b0b,_0x197778){const _0x33a499=a196_0x519ee1;return _0x113b0b=_0x113b0b[_0x33a499(0x152)](/\n*>更新时间:.*$/m,''),_0x113b0b['trimEnd']()+(_0x33a499(0x163)+_0x197778);}export function getSkillTemplate(_0x1c0280){const _0x211c8b=a196_0x519ee1;return _0x1c0280[_0x211c8b(0x167)]?.[_0x211c8b(0x15a)]||'';}export function appendExtendContents(_0x21b4bb,_0x361a33,_0x35671f){const _0xdba624=a196_0x519ee1,_0x3034d1=[];for(const [,_0x23ef87]of Object[_0xdba624(0x15c)](_0x361a33['guides'])){_0x23ef87[_0xdba624(0x168)]&&_0x3034d1[_0xdba624(0x158)](_0x23ef87['extendContent'][_0xdba624(0x16b)]());}if(_0x3034d1[_0xdba624(0x156)]===0x0)return _0x21b4bb;return _0x21b4bb[_0xdba624(0x16b)]()+'\x0a\x0a'+_0x3034d1[_0xdba624(0x172)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x23e43b,_0x1c9f4d,_0x3fab39){const _0x5c9199=a196_0x519ee1,_0x281f64=getSkillTemplate(_0x23e43b);if(!_0x281f64)throw new Error(_0x5c9199(0x151));const _0x2cb5d0=dirname(_0x1c9f4d);mkdirSync(_0x2cb5d0,{'recursive':!![]});let _0x584a64=_0x281f64[_0x5c9199(0x152)](/\{\{IDE_NAME\}\}/g,_0x3fab39);_0x584a64=appendExtendContents(_0x584a64,_0x23e43b),_0x23e43b['skillTemplate'][_0x5c9199(0x153)]&&(_0x584a64=appendUpdateTime(_0x584a64,_0x23e43b['skillTemplate']['lastUpdated'])),writeFileSync(_0x1c9f4d,_0x584a64,_0x5c9199(0x166));}export async function installGuides(_0x470abe){const _0x364b66=a196_0x519ee1,_0x18db5d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x18db5d,_0x470abe),Object[_0x364b66(0x162)](_0x18db5d['guides'])[_0x364b66(0x156)];}export function getGuidesSummary(_0x207546){const _0x58dcbb=a196_0x519ee1;return Object[_0x58dcbb(0x15c)](_0x207546[_0x58dcbb(0x169)])[_0x58dcbb(0x14e)](([_0xcba4f2,_0x2ee47a])=>({'key':_0xcba4f2,'title':_0x2ee47a['title'],'path':_0x2ee47a['path']}));}function a196_0x5c07(){const _0x4d905e=['2434000dWMarK','join','application/json','map','.md','36bVwVuy','CDN\x20数据中缺少\x20skillTemplate','replace','lastUpdated','186fMclib','843921eFBTcj','length','54088QaAEZx','push','44270rozPHg','content','CDN\x20请求失败:\x20','entries','object','.lovrabet','statusText','973SKTZXY','156xZIZKv','keys','\x0a\x0a>更新时间:','2013070MgZYCP','json','utf-8','skillTemplate','extendContent','guides','.lovrabet/skill/guides','trimEnd','/skills/guides.json','1300431xuJnig','1167155SxNTsU','4pWTxlG','status'];a196_0x5c07=function(){return _0x4d905e;};return a196_0x5c07();}
@@ -1 +1 @@
1
- (function(_0x4bf355,_0x22b901){const _0x20d30e=a196_0x39bc,_0x28f0c9=_0x4bf355();while(!![]){try{const _0x28644a=-parseInt(_0x20d30e(0x1ea))/0x1+parseInt(_0x20d30e(0x1e3))/0x2+parseInt(_0x20d30e(0x1da))/0x3+-parseInt(_0x20d30e(0x1d3))/0x4*(-parseInt(_0x20d30e(0x1ec))/0x5)+-parseInt(_0x20d30e(0x1db))/0x6*(-parseInt(_0x20d30e(0x1ee))/0x7)+parseInt(_0x20d30e(0x1e2))/0x8*(-parseInt(_0x20d30e(0x1e8))/0x9)+parseInt(_0x20d30e(0x1e1))/0xa*(-parseInt(_0x20d30e(0x1e5))/0xb);if(_0x28644a===_0x22b901)break;else _0x28f0c9['push'](_0x28f0c9['shift']());}catch(_0x6ab254){_0x28f0c9['push'](_0x28f0c9['shift']());}}}(a196_0x5b49,0xd5903));function a196_0x5b49(){const _0x365274=['get','4955230DuLDrO','1432488iOdBPf','2601798wdWXyQ','application/json','11eHARRn','content-type','headers','18VplBMX','Request\x20failed','901687UWrezR','ECONNRESET','1997305iNWJNv','status','4319fOCaXb','json','log','message','4OhrgUC','abort','TypeError','name','fetch','ms\x20后进行第\x20','includes','1976592xwsxMg','2634ZpxPSM','signal','ENOTFOUND','*\x20请求失败,','text'];a196_0x5b49=function(){return _0x365274;};return a196_0x5b49();}export async function httpRequest(_0x1398c6,_0x25c327={}){const _0x1f4b4b=a196_0x39bc,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x25c327;let _0x397688=null;for(let _0x3a3f8d=0x0;_0x3a3f8d<=retries;_0x3a3f8d++){try{const _0x5a3de1=new AbortController(),_0x362832=setTimeout(()=>_0x5a3de1[_0x1f4b4b(0x1d4)](),timeout),_0x95a414=await fetch(_0x1398c6,{'headers':headers,'signal':_0x5a3de1[_0x1f4b4b(0x1dc)]});clearTimeout(_0x362832);let _0x406d0a;const _0x5a922a=_0x95a414[_0x1f4b4b(0x1e7)][_0x1f4b4b(0x1e0)](_0x1f4b4b(0x1e6));return _0x5a922a?.['includes'](_0x1f4b4b(0x1e4))?_0x406d0a=await _0x95a414[_0x1f4b4b(0x1d0)]():_0x406d0a=await _0x95a414[_0x1f4b4b(0x1df)](),{'ok':_0x95a414['ok'],'status':_0x95a414[_0x1f4b4b(0x1ed)],'statusText':_0x95a414['statusText'],'data':_0x406d0a,'headers':_0x95a414[_0x1f4b4b(0x1e7)],'url':_0x95a414['url'],'text':()=>_0x95a414[_0x1f4b4b(0x1df)]()};}catch(_0x19930d){_0x397688=_0x19930d instanceof Error?_0x19930d:new Error(String(_0x19930d));if(_0x3a3f8d===retries)break;if(shouldRetry(_0x19930d)){console[_0x1f4b4b(0x1d1)](_0x1f4b4b(0x1de)+retryDelay+_0x1f4b4b(0x1d8)+(_0x3a3f8d+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x397688||new Error(_0x1f4b4b(0x1e9));}function shouldRetry(_0x4daf73){const _0x1cb70d=a196_0x39bc;if(_0x4daf73 instanceof Error){if(_0x4daf73['name']==='AbortError')return![];if(_0x4daf73[_0x1cb70d(0x1d6)]===_0x1cb70d(0x1d5)&&_0x4daf73[_0x1cb70d(0x1d2)][_0x1cb70d(0x1d9)](_0x1cb70d(0x1d7)))return!![];if(_0x4daf73['message'][_0x1cb70d(0x1d9)](_0x1cb70d(0x1eb)))return!![];if(_0x4daf73['message'][_0x1cb70d(0x1d9)](_0x1cb70d(0x1dd)))return![];}return![];}function sleep(_0x5d9df0){return new Promise(_0x29ccbe=>setTimeout(_0x29ccbe,_0x5d9df0));}function a196_0x39bc(_0x2297f2,_0x2f9988){_0x2297f2=_0x2297f2-0x1d0;const _0x5b4971=a196_0x5b49();let _0x39bc21=_0x5b4971[_0x2297f2];return _0x39bc21;}export function validateUrl(_0x4d12e4){try{return new URL(_0x4d12e4),!![];}catch{return![];}}
1
+ function a197_0x245b(_0x2eca20,_0x4b4fa3){_0x2eca20=_0x2eca20-0x18a;const _0x19b987=a197_0x19b9();let _0x245b9e=_0x19b987[_0x2eca20];return _0x245b9e;}(function(_0x1a8790,_0x1fbc89){const _0x164423=a197_0x245b,_0x3724f0=_0x1a8790();while(!![]){try{const _0x1c1067=parseInt(_0x164423(0x199))/0x1*(-parseInt(_0x164423(0x1a4))/0x2)+-parseInt(_0x164423(0x190))/0x3*(-parseInt(_0x164423(0x1a5))/0x4)+-parseInt(_0x164423(0x1a6))/0x5+-parseInt(_0x164423(0x1a3))/0x6+-parseInt(_0x164423(0x1a1))/0x7+parseInt(_0x164423(0x18d))/0x8+parseInt(_0x164423(0x19e))/0x9*(parseInt(_0x164423(0x19c))/0xa);if(_0x1c1067===_0x1fbc89)break;else _0x3724f0['push'](_0x3724f0['shift']());}catch(_0x10d20f){_0x3724f0['push'](_0x3724f0['shift']());}}}(a197_0x19b9,0x514f7));export async function httpRequest(_0x425ce8,_0xb52daa={}){const _0x29b1ab=a197_0x245b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xb52daa;let _0x16f59f=null;for(let _0x447b73=0x0;_0x447b73<=retries;_0x447b73++){try{const _0x5a6625=new AbortController(),_0x56b68f=setTimeout(()=>_0x5a6625['abort'](),timeout),_0x183ac4=await fetch(_0x425ce8,{'headers':headers,'signal':_0x5a6625[_0x29b1ab(0x18f)]});clearTimeout(_0x56b68f);let _0x2b549c;const _0x249ae5=_0x183ac4['headers'][_0x29b1ab(0x194)](_0x29b1ab(0x198));return _0x249ae5?.[_0x29b1ab(0x19b)](_0x29b1ab(0x18a))?_0x2b549c=await _0x183ac4['json']():_0x2b549c=await _0x183ac4[_0x29b1ab(0x1a0)](),{'ok':_0x183ac4['ok'],'status':_0x183ac4[_0x29b1ab(0x191)],'statusText':_0x183ac4[_0x29b1ab(0x1a2)],'data':_0x2b549c,'headers':_0x183ac4[_0x29b1ab(0x18b)],'url':_0x183ac4[_0x29b1ab(0x19f)],'text':()=>_0x183ac4[_0x29b1ab(0x1a0)]()};}catch(_0x48ed00){_0x16f59f=_0x48ed00 instanceof Error?_0x48ed00:new Error(String(_0x48ed00));if(_0x447b73===retries)break;if(shouldRetry(_0x48ed00)){console['log'](_0x29b1ab(0x19a)+retryDelay+_0x29b1ab(0x18c)+(_0x447b73+0x1)+_0x29b1ab(0x19d)),await sleep(retryDelay);continue;}else break;}}throw _0x16f59f||new Error(_0x29b1ab(0x192));}function a197_0x19b9(){const _0x1926bf=['name','fetch','content-type','577jeJdeq','*\x20请求失败,','includes','20fiMzXM','\x20次重试...','2378430bGhYXm','url','text','1566803KaLNnF','statusText','1481436NCDTkf','1964aBvBJO','64GaOsQy','1290165yuYbcA','ECONNRESET','application/json','headers','ms\x20后进行第\x20','5002248wMjoon','ENOTFOUND','signal','88989cbFeIU','status','Request\x20failed','TypeError','get','message'];a197_0x19b9=function(){return _0x1926bf;};return a197_0x19b9();}function shouldRetry(_0xce3aae){const _0x54c421=a197_0x245b;if(_0xce3aae instanceof Error){if(_0xce3aae['name']==='AbortError')return![];if(_0xce3aae[_0x54c421(0x196)]===_0x54c421(0x193)&&_0xce3aae[_0x54c421(0x195)][_0x54c421(0x19b)](_0x54c421(0x197)))return!![];if(_0xce3aae[_0x54c421(0x195)][_0x54c421(0x19b)](_0x54c421(0x1a7)))return!![];if(_0xce3aae[_0x54c421(0x195)]['includes'](_0x54c421(0x18e)))return![];}return![];}function sleep(_0x2b006f){return new Promise(_0x3a4455=>setTimeout(_0x3a4455,_0x2b006f));}export function validateUrl(_0x1c5288){try{return new URL(_0x1c5288),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x47223b,_0x6f1b4f){const _0xfbd35c=a197_0x2f6a,_0x506103=_0x47223b();while(!![]){try{const _0x41c3bd=-parseInt(_0xfbd35c(0x116))/0x1*(parseInt(_0xfbd35c(0x111))/0x2)+parseInt(_0xfbd35c(0x119))/0x3+parseInt(_0xfbd35c(0x117))/0x4*(parseInt(_0xfbd35c(0x11b))/0x5)+-parseInt(_0xfbd35c(0x112))/0x6*(parseInt(_0xfbd35c(0x113))/0x7)+-parseInt(_0xfbd35c(0x115))/0x8*(parseInt(_0xfbd35c(0x11c))/0x9)+parseInt(_0xfbd35c(0x110))/0xa+parseInt(_0xfbd35c(0x114))/0xb;if(_0x41c3bd===_0x6f1b4f)break;else _0x506103['push'](_0x506103['shift']());}catch(_0x5b6402){_0x506103['push'](_0x506103['shift']());}}}(a197_0x233d,0x53659));function a197_0x2f6a(_0x35b153,_0x2d563b){_0x35b153=_0x35b153-0x10f;const _0x233d90=a197_0x233d();let _0x2f6a7e=_0x233d90[_0x35b153];return _0x2f6a7e;}function env(_0xc7e321){return process.env[`RABETBASE_${_0xc7e321}`]||process.env[`LOVRABET_${_0xc7e321}`]||undefined;}export function isNonInteractive(_0x85f295){const _0x4c2389=a197_0x2f6a;return!!(_0x85f295[_0x4c2389(0x11f)]||_0x85f295['ci']||env('CI')===_0x4c2389(0x118)||process.env.CI===_0x4c2389(0x118)||!process['stdout'][_0x4c2389(0x11d)]||!isStdinRawModeSupported());}function a197_0x233d(){const _0x3c7fab=['stdin','nonInteractive','setRawMode','2464470WnLIwT','4DBhjUj','7578wlhBnU','3563TbGMwq','11003696JZdUhS','6568WjXBuQ','212361dFfSQi','4036hBHQjA','true','133113SaDuse','isRaw','2615kFeGbW','4491mSizbp','isTTY'];a197_0x233d=function(){return _0x3c7fab;};return a197_0x233d();}function isStdinRawModeSupported(){const _0x119a3f=a197_0x2f6a;if(!process[_0x119a3f(0x11e)][_0x119a3f(0x11d)])return![];try{const _0x2a8faa=process[_0x119a3f(0x11e)][_0x119a3f(0x11a)];return process[_0x119a3f(0x11e)][_0x119a3f(0x10f)](!![]),process[_0x119a3f(0x11e)][_0x119a3f(0x10f)](_0x2a8faa??![]),!![];}catch{return![];}}
1
+ function a198_0x52df(){const _0x56ecf3=['stdout','6gUClpi','isTTY','2DasCDE','9phhblP','true','setRawMode','129FUxvSa','1507596RfNGYf','79272aToVFi','17468040nZuuuG','1360809eljhbq','stdin','4109007ihAUeF','8417488RKDBZG','5075860OSzAWX','231AHGSlA'];a198_0x52df=function(){return _0x56ecf3;};return a198_0x52df();}(function(_0x122894,_0x148fc7){const _0x5f1050=a198_0x4476,_0x3403e1=_0x122894();while(!![]){try{const _0x169e86=parseInt(_0x5f1050(0xe2))/0x1*(-parseInt(_0x5f1050(0xda))/0x2)+-parseInt(_0x5f1050(0xde))/0x3*(-parseInt(_0x5f1050(0xe0))/0x4)+-parseInt(_0x5f1050(0xd5))/0x5*(-parseInt(_0x5f1050(0xd8))/0x6)+parseInt(_0x5f1050(0xe4))/0x7+-parseInt(_0x5f1050(0xd4))/0x8+-parseInt(_0x5f1050(0xdb))/0x9*(parseInt(_0x5f1050(0xe1))/0xa)+parseInt(_0x5f1050(0xd6))/0xb*(parseInt(_0x5f1050(0xdf))/0xc);if(_0x169e86===_0x148fc7)break;else _0x3403e1['push'](_0x3403e1['shift']());}catch(_0x555584){_0x3403e1['push'](_0x3403e1['shift']());}}}(a198_0x52df,0xe3be9));function env(_0x2389f4){return process.env[`RABETBASE_${_0x2389f4}`]||process.env[`LOVRABET_${_0x2389f4}`]||undefined;}function a198_0x4476(_0x25f698,_0xd2c7dd){_0x25f698=_0x25f698-0xd4;const _0x52dfe0=a198_0x52df();let _0x4476c8=_0x52dfe0[_0x25f698];return _0x4476c8;}export function isNonInteractive(_0x1571fb){const _0x32e26c=a198_0x4476;return!!(_0x1571fb['nonInteractive']||_0x1571fb['ci']||env('CI')===_0x32e26c(0xdc)||process.env.CI===_0x32e26c(0xdc)||!process[_0x32e26c(0xd7)][_0x32e26c(0xd9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1e0f3f=a198_0x4476;if(!process['stdin'][_0x1e0f3f(0xd9)])return![];try{const _0x4a32b8=process[_0x1e0f3f(0xe3)]['isRaw'];return process[_0x1e0f3f(0xe3)][_0x1e0f3f(0xdd)](!![]),process[_0x1e0f3f(0xe3)]['setRawMode'](_0x4a32b8??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a198_0x3cdf07=a198_0x4855;(function(_0x521758,_0x1d364e){const _0x140f90=a198_0x4855,_0x339afb=_0x521758();while(!![]){try{const _0x5e968f=parseInt(_0x140f90(0x1dc))/0x1+parseInt(_0x140f90(0x1f3))/0x2*(parseInt(_0x140f90(0x1d3))/0x3)+parseInt(_0x140f90(0x1d9))/0x4*(-parseInt(_0x140f90(0x1ef))/0x5)+-parseInt(_0x140f90(0x204))/0x6+-parseInt(_0x140f90(0x1f2))/0x7*(-parseInt(_0x140f90(0x1d8))/0x8)+parseInt(_0x140f90(0x1d7))/0x9+parseInt(_0x140f90(0x1fd))/0xa*(-parseInt(_0x140f90(0x1ff))/0xb);if(_0x5e968f===_0x1d364e)break;else _0x339afb['push'](_0x339afb['shift']());}catch(_0x2b0444){_0x339afb['push'](_0x339afb['shift']());}}}(a198_0x4d58,0x29b18));import a198_0x230f9d from'winston';function a198_0x4855(_0x2cf1f6,_0x2dd255){_0x2cf1f6=_0x2cf1f6-0x1cd;const _0x4d584b=a198_0x4d58();let _0x4855a4=_0x4d584b[_0x2cf1f6];return _0x4855a4;}import a198_0x5a4079 from'node:fs';import a198_0x3f9fb2 from'node:path';class Logger{[a198_0x3cdf07(0x1e0)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a198_0x3cdf07(0x1ce)](_0x56d1e3){const _0x33ab17=a198_0x3cdf07;this[_0x33ab17(0x1d6)]=_0x56d1e3;}[a198_0x3cdf07(0x1e4)](){const _0x11b34a=a198_0x3cdf07,_0x4d69db=a198_0x3f9fb2[_0x11b34a(0x1de)](this['logFilePath']);!a198_0x5a4079[_0x11b34a(0x1db)](_0x4d69db)&&a198_0x5a4079[_0x11b34a(0x201)](_0x4d69db,{'recursive':!![]});const _0x4d8262=a198_0x230f9d[_0x11b34a(0x1f9)][_0x11b34a(0x1e2)](a198_0x230f9d['format'][_0x11b34a(0x1da)](),a198_0x230f9d[_0x11b34a(0x1f9)][_0x11b34a(0x1f4)]({'stack':!![]}),a198_0x230f9d[_0x11b34a(0x1f9)]['printf'](_0x252a6c=>{const _0x3ea584=_0x11b34a,_0x1c7903={'timestamp':_0x252a6c[_0x3ea584(0x1da)]||new Date()[_0x3ea584(0x1f7)](),'level':_0x252a6c[_0x3ea584(0x1fe)]||'info','command':_0x252a6c['command']||_0x3ea584(0x203),'rawCommand':_0x252a6c['rawCommand']||this[_0x3ea584(0x1d6)]||undefined,'message':_0x252a6c['message']||'','duration':_0x252a6c[_0x3ea584(0x1cf)]||undefined,'details':_0x252a6c[_0x3ea584(0x1cd)]||undefined};return JSON[_0x3ea584(0x1f0)](_0x1c7903);}));this[_0x11b34a(0x1e0)]=a198_0x230f9d[_0x11b34a(0x1d4)]({'level':'info','format':_0x4d8262,'transports':[new a198_0x230f9d[(_0x11b34a(0x1fa))][(_0x11b34a(0x205))]({'filename':this[_0x11b34a(0x1ea)],'level':_0x11b34a(0x1e1)})],'silent':![]}),a198_0x230f9d[_0x11b34a(0x1dd)]({'success':'green','error':_0x11b34a(0x1f8),'warn':_0x11b34a(0x1d5),'info':_0x11b34a(0x1e7)});}[a198_0x3cdf07(0x200)](_0x26611f){const _0x2c606d=a198_0x3cdf07;this[_0x2c606d(0x1ea)]=a198_0x3f9fb2[_0x2c606d(0x1ed)](_0x26611f,_0x2c606d(0x1eb)),this['winstonLogger']&&this[_0x2c606d(0x1e0)][_0x2c606d(0x1ee)](),this[_0x2c606d(0x1e4)]();}[a198_0x3cdf07(0x1e1)](_0x25cb13,_0x130b77,_0x27c6ed){const _0x2ba245=a198_0x3cdf07;if(!this[_0x2ba245(0x1ea)]||!this[_0x2ba245(0x1e0)])return;this[_0x2ba245(0x1e0)][_0x2ba245(0x1e1)](_0x130b77,{'command':_0x25cb13,'details':_0x27c6ed});}[a198_0x3cdf07(0x1f6)](_0x175ad6,_0x2e2fe2,_0x12dbc6,_0x3adf3d){const _0x3aa11d=a198_0x3cdf07;if(!this[_0x3aa11d(0x1ea)]||!this[_0x3aa11d(0x1e0)])return;this[_0x3aa11d(0x1e0)][_0x3aa11d(0x1d1)]('info',_0x2e2fe2,{'level':_0x3aa11d(0x1f6),'command':_0x175ad6,'duration':_0x12dbc6,'details':_0x3adf3d});}['error'](_0x33d9f1,_0x355ef4,_0x1f0a12){const _0x2d4c9a=a198_0x3cdf07;if(!this[_0x2d4c9a(0x1ea)]||!this['winstonLogger'])return;this[_0x2d4c9a(0x1e0)][_0x2d4c9a(0x1f5)](_0x355ef4,{'command':_0x33d9f1,'details':_0x1f0a12});}[a198_0x3cdf07(0x1fb)](_0x1e8e8f,_0x2a0e15,_0x2b01f0){const _0x1e33af=a198_0x3cdf07;if(!this[_0x1e33af(0x1ea)]||!this[_0x1e33af(0x1e0)])return;this['winstonLogger'][_0x1e33af(0x1fb)](_0x2a0e15,{'command':_0x1e8e8f,'details':_0x2b01f0});}async[a198_0x3cdf07(0x1e5)](_0x16ed4,_0x3cb13b,_0x11e114){const _0x4940e5=a198_0x3cdf07,_0xdf5405=Date[_0x4940e5(0x1d2)]();this[_0x4940e5(0x1e1)](_0x16ed4,_0x4940e5(0x1df)+_0x3cb13b);try{const _0x735010=await _0x11e114(),_0x3117cb=Date[_0x4940e5(0x1d2)]()-_0xdf5405;return this[_0x4940e5(0x1f6)](_0x16ed4,'完成:\x20'+_0x3cb13b,_0x3117cb),_0x735010;}catch(_0xa65f4f){const _0x300dd5=Date[_0x4940e5(0x1d2)]()-_0xdf5405;this[_0x4940e5(0x1f5)](_0x16ed4,_0x4940e5(0x1e8)+_0x3cb13b,{'error':_0xa65f4f instanceof Error?_0xa65f4f['message']:String(_0xa65f4f),'duration':_0x300dd5});throw _0xa65f4f;}}['readLogs'](){const _0x31694c=a198_0x3cdf07;try{if(!a198_0x5a4079[_0x31694c(0x1db)](this[_0x31694c(0x1ea)]))return[];const _0x7c9b41=a198_0x5a4079[_0x31694c(0x1d0)](this[_0x31694c(0x1ea)],_0x31694c(0x1f1));return _0x7c9b41['split']('\x0a')[_0x31694c(0x1fc)](_0x3048a1=>_0x3048a1['trim']())[_0x31694c(0x1e6)](_0x374e33=>JSON['parse'](_0x374e33));}catch(_0x108a75){return console[_0x31694c(0x1fb)](_0x31694c(0x202),_0x108a75),[];}}[a198_0x3cdf07(0x1ec)](){const _0xe23a5f=a198_0x3cdf07;try{a198_0x5a4079[_0xe23a5f(0x1db)](this[_0xe23a5f(0x1ea)])&&a198_0x5a4079[_0xe23a5f(0x1e9)](this[_0xe23a5f(0x1ea)],'',_0xe23a5f(0x1f1));}catch(_0x4dfd72){console[_0xe23a5f(0x1fb)]('Failed\x20to\x20clear\x20logs:',_0x4dfd72);}}[a198_0x3cdf07(0x1e3)](){const _0x277ec6=a198_0x3cdf07;return this[_0x277ec6(0x1e0)];}}function a198_0x4d58(){const _0x152392=['warn','filter','110gvhgug','level','433037EjlWRm','setLogPath','mkdirSync','Failed\x20to\x20read\x20logs:','unknown','586620nuxEzR','File','details','setRawCommand','duration','readFileSync','log','now','60999RxzgxK','createLogger','yellow','currentRawCommand','1030788LjzGCF','7576wPMdXa','175548VUmjmQ','timestamp','existsSync','299984DRyojP','addColors','dirname','开始执行:\x20','winstonLogger','info','combine','getWinstonInstance','initWinstonLogger','logTask','map','blue','失败:\x20','writeFileSync','logFilePath','.lovrabet.log','clearLogs','join','clear','35tudzTL','stringify','utf8','1988OTGLrq','32lQoYgk','errors','error','success','toISOString','red','format','transports'];a198_0x4d58=function(){return _0x152392;};return a198_0x4d58();}export const logger=new Logger();
1
+ const a199_0x4cd26c=a199_0x4c37;(function(_0x46042e,_0x587ba9){const _0x344e2f=a199_0x4c37,_0x59e4fb=_0x46042e();while(!![]){try{const _0x40e2f4=-parseInt(_0x344e2f(0x1e2))/0x1+parseInt(_0x344e2f(0x1e9))/0x2+parseInt(_0x344e2f(0x200))/0x3+-parseInt(_0x344e2f(0x1f2))/0x4+parseInt(_0x344e2f(0x1e8))/0x5+-parseInt(_0x344e2f(0x1df))/0x6+-parseInt(_0x344e2f(0x202))/0x7;if(_0x40e2f4===_0x587ba9)break;else _0x59e4fb['push'](_0x59e4fb['shift']());}catch(_0xd9d1f4){_0x59e4fb['push'](_0x59e4fb['shift']());}}}(a199_0x5095,0x7fc00));function a199_0x4c37(_0x292b6d,_0x8deaf){_0x292b6d=_0x292b6d-0x1d4;const _0x50958a=a199_0x5095();let _0x4c3742=_0x50958a[_0x292b6d];return _0x4c3742;}import a199_0x4e506c from'winston';import a199_0x15b6c4 from'node:fs';import a199_0x259498 from'node:path';class Logger{[a199_0x4cd26c(0x1d9)];[a199_0x4cd26c(0x1f7)];[a199_0x4cd26c(0x208)]='';constructor(){const _0xaa6904=a199_0x4cd26c;this[_0xaa6904(0x1f7)]='';}[a199_0x4cd26c(0x1d8)](_0x1061e3){const _0x4cc2c3=a199_0x4cd26c;this[_0x4cc2c3(0x208)]=_0x1061e3;}[a199_0x4cd26c(0x1ec)](){const _0x189c46=a199_0x4cd26c,_0x1e2663=a199_0x259498[_0x189c46(0x1f4)](this[_0x189c46(0x1f7)]);!a199_0x15b6c4[_0x189c46(0x204)](_0x1e2663)&&a199_0x15b6c4[_0x189c46(0x1dc)](_0x1e2663,{'recursive':!![]});const _0x5c426e=a199_0x4e506c['format'][_0x189c46(0x1d6)](a199_0x4e506c[_0x189c46(0x1da)][_0x189c46(0x1f5)](),a199_0x4e506c[_0x189c46(0x1da)][_0x189c46(0x1f1)]({'stack':!![]}),a199_0x4e506c[_0x189c46(0x1da)][_0x189c46(0x1de)](_0xeceb15=>{const _0x45d253=_0x189c46,_0x552b26={'timestamp':_0xeceb15['timestamp']||new Date()[_0x45d253(0x1f0)](),'level':_0xeceb15['level']||_0x45d253(0x209),'command':_0xeceb15[_0x45d253(0x1fb)]||_0x45d253(0x1e4),'rawCommand':_0xeceb15[_0x45d253(0x1d5)]||this[_0x45d253(0x208)]||undefined,'message':_0xeceb15[_0x45d253(0x1e7)]||'','duration':_0xeceb15['duration']||undefined,'details':_0xeceb15[_0x45d253(0x1ed)]||undefined};return JSON[_0x45d253(0x1ff)](_0x552b26);}));this[_0x189c46(0x1d9)]=a199_0x4e506c[_0x189c46(0x205)]({'level':_0x189c46(0x209),'format':_0x5c426e,'transports':[new a199_0x4e506c[(_0x189c46(0x1f3))]['File']({'filename':this[_0x189c46(0x1f7)],'level':_0x189c46(0x209)})],'silent':![]}),a199_0x4e506c['addColors']({'success':_0x189c46(0x1d4),'error':_0x189c46(0x1fc),'warn':_0x189c46(0x1e1),'info':_0x189c46(0x1ef)});}[a199_0x4cd26c(0x1e5)](_0x31efee){const _0x17f089=a199_0x4cd26c;this[_0x17f089(0x1f7)]=a199_0x259498['join'](_0x31efee,_0x17f089(0x20a)),this['winstonLogger']&&this[_0x17f089(0x1d9)][_0x17f089(0x1f6)](),this[_0x17f089(0x1ec)]();}[a199_0x4cd26c(0x209)](_0x37f17c,_0x3f8e9a,_0x118e36){const _0x1c143d=a199_0x4cd26c;if(!this['logFilePath']||!this[_0x1c143d(0x1d9)])return;this[_0x1c143d(0x1d9)][_0x1c143d(0x209)](_0x3f8e9a,{'command':_0x37f17c,'details':_0x118e36});}[a199_0x4cd26c(0x1e0)](_0x4918c6,_0x450da6,_0x4f3661,_0x1387b2){const _0x190b2d=a199_0x4cd26c;if(!this[_0x190b2d(0x1f7)]||!this['winstonLogger'])return;this['winstonLogger'][_0x190b2d(0x203)](_0x190b2d(0x209),_0x450da6,{'level':_0x190b2d(0x1e0),'command':_0x4918c6,'duration':_0x4f3661,'details':_0x1387b2});}[a199_0x4cd26c(0x206)](_0x1e7236,_0x329acd,_0x3ace88){const _0x4e2127=a199_0x4cd26c;if(!this[_0x4e2127(0x1f7)]||!this[_0x4e2127(0x1d9)])return;this['winstonLogger'][_0x4e2127(0x206)](_0x329acd,{'command':_0x1e7236,'details':_0x3ace88});}[a199_0x4cd26c(0x1db)](_0x360dff,_0x5e83c5,_0x428c7d){const _0x3ed291=a199_0x4cd26c;if(!this[_0x3ed291(0x1f7)]||!this['winstonLogger'])return;this[_0x3ed291(0x1d9)]['warn'](_0x5e83c5,{'command':_0x360dff,'details':_0x428c7d});}async[a199_0x4cd26c(0x1eb)](_0x37bae8,_0x243776,_0x93dfae){const _0x2cc871=a199_0x4cd26c,_0x3d8802=Date[_0x2cc871(0x1e6)]();this[_0x2cc871(0x209)](_0x37bae8,_0x2cc871(0x1d7)+_0x243776);try{const _0x3afa0d=await _0x93dfae(),_0x292f22=Date['now']()-_0x3d8802;return this[_0x2cc871(0x1e0)](_0x37bae8,_0x2cc871(0x1fd)+_0x243776,_0x292f22),_0x3afa0d;}catch(_0x41b6b6){const _0x34d55d=Date[_0x2cc871(0x1e6)]()-_0x3d8802;this[_0x2cc871(0x206)](_0x37bae8,_0x2cc871(0x1ee)+_0x243776,{'error':_0x41b6b6 instanceof Error?_0x41b6b6[_0x2cc871(0x1e7)]:String(_0x41b6b6),'duration':_0x34d55d});throw _0x41b6b6;}}['readLogs'](){const _0x953036=a199_0x4cd26c;try{if(!a199_0x15b6c4[_0x953036(0x204)](this[_0x953036(0x1f7)]))return[];const _0x507cd6=a199_0x15b6c4[_0x953036(0x1fa)](this[_0x953036(0x1f7)],'utf8');return _0x507cd6['split']('\x0a')['filter'](_0x4fc36f=>_0x4fc36f[_0x953036(0x1ea)]())['map'](_0x485b1d=>JSON[_0x953036(0x1f8)](_0x485b1d));}catch(_0x422195){return console[_0x953036(0x1db)](_0x953036(0x207),_0x422195),[];}}[a199_0x4cd26c(0x1e3)](){const _0x47c165=a199_0x4cd26c;try{a199_0x15b6c4[_0x47c165(0x204)](this[_0x47c165(0x1f7)])&&a199_0x15b6c4[_0x47c165(0x1dd)](this['logFilePath'],'',_0x47c165(0x201));}catch(_0x1fa01c){console[_0x47c165(0x1db)](_0x47c165(0x1fe),_0x1fa01c);}}[a199_0x4cd26c(0x1f9)](){const _0x1cfd49=a199_0x4cd26c;return this[_0x1cfd49(0x1d9)];}}export const logger=new Logger();function a199_0x5095(){const _0x479a10=['4763120HHkQjU','2008610YKlgeH','trim','logTask','initWinstonLogger','details','失败:\x20','blue','toISOString','errors','133020QvzZYx','transports','dirname','timestamp','clear','logFilePath','parse','getWinstonInstance','readFileSync','command','red','完成:\x20','Failed\x20to\x20clear\x20logs:','stringify','3133137digVss','utf8','9047766hJMGau','log','existsSync','createLogger','error','Failed\x20to\x20read\x20logs:','currentRawCommand','info','.lovrabet.log','green','rawCommand','combine','开始执行:\x20','setRawCommand','winstonLogger','format','warn','mkdirSync','writeFileSync','printf','1389078oJpxzf','success','yellow','920738oLOcLN','clearLogs','unknown','setLogPath','now','message'];a199_0x5095=function(){return _0x479a10;};return a199_0x5095();}
@@ -1 +1 @@
1
- function a199_0x293a(_0x5a64ed,_0x3240f4){_0x5a64ed=_0x5a64ed-0x83;const _0x51812a=a199_0x5181();let _0x293a58=_0x51812a[_0x5a64ed];return _0x293a58;}(function(_0x22a327,_0x58497e){const _0x14693d=a199_0x293a,_0x40643e=_0x22a327();while(!![]){try{const _0x5e2e19=-parseInt(_0x14693d(0x86))/0x1*(-parseInt(_0x14693d(0x8b))/0x2)+-parseInt(_0x14693d(0x84))/0x3+parseInt(_0x14693d(0x90))/0x4*(-parseInt(_0x14693d(0x88))/0x5)+-parseInt(_0x14693d(0x83))/0x6*(parseInt(_0x14693d(0x8c))/0x7)+-parseInt(_0x14693d(0x8e))/0x8*(-parseInt(_0x14693d(0x8a))/0x9)+-parseInt(_0x14693d(0x89))/0xa*(-parseInt(_0x14693d(0x85))/0xb)+parseInt(_0x14693d(0x8d))/0xc;if(_0x5e2e19===_0x58497e)break;else _0x40643e['push'](_0x40643e['shift']());}catch(_0x55801a){_0x40643e['push'](_0x40643e['shift']());}}}(a199_0x5181,0x6cc2e));function a199_0x5181(){const _0x470fdb=['12439zUWbxT','10985820fWjRlh','241336RQObhL','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','470788OGbucP','validation','1248LMOnUB','2350656lyuyWf','1155rqFYZb','1hMTQKp','object','15AyLGfR','16370PiExrl','36YyYsyn','1487414dmqDDC'];a199_0x5181=function(){return _0x470fdb;};return a199_0x5181();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4162f0){const _0x49dc68=a199_0x293a;if(!_0x4162f0)return undefined;let _0x38ebc5;try{_0x38ebc5=JSON['parse'](_0x4162f0);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4162f0);}if(!_0x38ebc5||typeof _0x38ebc5!==_0x49dc68(0x87)||Array['isArray'](_0x38ebc5))throw CliErrors[_0x49dc68(0x91)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x49dc68(0x8f));return _0x38ebc5;}
1
+ (function(_0x5473e9,_0xbee38){const _0x1b2b3d=a200_0x28a3,_0x2d6a21=_0x5473e9();while(!![]){try{const _0x1f46a3=-parseInt(_0x1b2b3d(0x1af))/0x1*(parseInt(_0x1b2b3d(0x1b7))/0x2)+-parseInt(_0x1b2b3d(0x1b1))/0x3*(-parseInt(_0x1b2b3d(0x1b3))/0x4)+parseInt(_0x1b2b3d(0x1b6))/0x5+-parseInt(_0x1b2b3d(0x1b9))/0x6+-parseInt(_0x1b2b3d(0x1b0))/0x7+parseInt(_0x1b2b3d(0x1ad))/0x8+parseInt(_0x1b2b3d(0x1b4))/0x9;if(_0x1f46a3===_0xbee38)break;else _0x2d6a21['push'](_0x2d6a21['shift']());}catch(_0x11538c){_0x2d6a21['push'](_0x2d6a21['shift']());}}}(a200_0x5235,0x46437));import{CliErrors}from'../errors.js';function a200_0x28a3(_0x343a6b,_0x44d652){_0x343a6b=_0x343a6b-0x1ad;const _0x52359c=a200_0x5235();let _0x28a371=_0x52359c[_0x343a6b];return _0x28a371;}export function parseJsonParams(_0x1d15c7){const _0x1e8322=a200_0x28a3;if(!_0x1d15c7)return undefined;let _0x235350;try{_0x235350=JSON[_0x1e8322(0x1b5)](_0x1d15c7);}catch{throw CliErrors[_0x1e8322(0x1ae)](_0x1e8322(0x1b8)+_0x1d15c7);}if(!_0x235350||typeof _0x235350!=='object'||Array['isArray'](_0x235350))throw CliErrors[_0x1e8322(0x1ae)](_0x1e8322(0x1ba),_0x1e8322(0x1b2));return _0x235350;}function a200_0x5235(){const _0x302d23=['12pxjGYJ','3759111FZITaF','parse','1052505SEKQzg','4tUlzHn','Invalid\x20JSON\x20for\x20--params:\x20','1279548KsOLra','--params\x20must\x20be\x20a\x20JSON\x20object','1686504AdTWmF','validation','225800XtooBB','1630419qCAjdO','346581qfXTrY','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a200_0x5235=function(){return _0x302d23;};return a200_0x5235();}
@@ -1 +1 @@
1
- const a200_0x137ad0=a200_0x44e7;function a200_0x3be5(){const _0x515cf4=['1482246UTfAEw','win32','1713198IApdgw','981547HRrBtN','8MDmVDC','.cmd','247121hIOCVE','599484lOKwbx','platform','15lqKSvS','186590dFPbNs','9440154uLvZqQ'];a200_0x3be5=function(){return _0x515cf4;};return a200_0x3be5();}(function(_0x23697b,_0x5016dd){const _0xaa9fd=a200_0x44e7,_0x515a36=_0x23697b();while(!![]){try{const _0x8af101=-parseInt(_0xaa9fd(0x195))/0x1+-parseInt(_0xaa9fd(0x199))/0x2+parseInt(_0xaa9fd(0x19b))/0x3+parseInt(_0xaa9fd(0x196))/0x4*(-parseInt(_0xaa9fd(0x198))/0x5)+-parseInt(_0xaa9fd(0x19d))/0x6+parseInt(_0xaa9fd(0x19e))/0x7*(-parseInt(_0xaa9fd(0x193))/0x8)+parseInt(_0xaa9fd(0x19a))/0x9;if(_0x8af101===_0x5016dd)break;else _0x515a36['push'](_0x515a36['shift']());}catch(_0x4bc970){_0x515a36['push'](_0x515a36['shift']());}}}(a200_0x3be5,0x4fe25));function a200_0x44e7(_0x32d5c8,_0x14b9dd){_0x32d5c8=_0x32d5c8-0x193;const _0x3be543=a200_0x3be5();let _0x44e76e=_0x3be543[_0x32d5c8];return _0x44e76e;}export const isWindows=process[a200_0x137ad0(0x197)]===a200_0x137ad0(0x19c);export function resolveNpmBin(_0x37fedb){const _0x4fe9ff=a200_0x137ad0;return isWindows?_0x37fedb+_0x4fe9ff(0x194):_0x37fedb;}
1
+ const a201_0x1f6267=a201_0x21c8;(function(_0x106fe0,_0x30748a){const _0x28fe22=a201_0x21c8,_0x49f08f=_0x106fe0();while(!![]){try{const _0x3643a4=parseInt(_0x28fe22(0x113))/0x1*(-parseInt(_0x28fe22(0x10f))/0x2)+parseInt(_0x28fe22(0x10a))/0x3*(-parseInt(_0x28fe22(0x112))/0x4)+-parseInt(_0x28fe22(0x111))/0x5+parseInt(_0x28fe22(0x106))/0x6*(-parseInt(_0x28fe22(0x10c))/0x7)+parseInt(_0x28fe22(0x10e))/0x8*(-parseInt(_0x28fe22(0x10d))/0x9)+parseInt(_0x28fe22(0x107))/0xa*(-parseInt(_0x28fe22(0x114))/0xb)+parseInt(_0x28fe22(0x10b))/0xc;if(_0x3643a4===_0x30748a)break;else _0x49f08f['push'](_0x49f08f['shift']());}catch(_0x418a0f){_0x49f08f['push'](_0x49f08f['shift']());}}}(a201_0x3d69,0x708c5));export const isWindows=process[a201_0x1f6267(0x108)]===a201_0x1f6267(0x109);function a201_0x21c8(_0x29e563,_0x27f279){_0x29e563=_0x29e563-0x106;const _0x3d69d5=a201_0x3d69();let _0x21c824=_0x3d69d5[_0x29e563];return _0x21c824;}function a201_0x3d69(){const _0x83141d=['5765011nWoRIH','765rhIajB','69384xxSyCC','24kNkSXh','.cmd','3724440grVcJL','244wpsuEc','54772FbWpKG','957GXogcW','6QKwKeo','56060hGWNkx','platform','win32','32898msCwVG','54966900uDrjWj'];a201_0x3d69=function(){return _0x83141d;};return a201_0x3d69();}export function resolveNpmBin(_0x4e8a8d){const _0x23ec6f=a201_0x1f6267;return isWindows?_0x4e8a8d+_0x23ec6f(0x110):_0x4e8a8d;}
@@ -1 +1 @@
1
- const a201_0x1b16b9=a201_0x1bef;(function(_0x149d7f,_0x2f3abe){const _0x38d7a1=a201_0x1bef,_0xd3a90=_0x149d7f();while(!![]){try{const _0x1feb7d=-parseInt(_0x38d7a1(0x18d))/0x1*(-parseInt(_0x38d7a1(0x194))/0x2)+parseInt(_0x38d7a1(0x188))/0x3+parseInt(_0x38d7a1(0x187))/0x4+-parseInt(_0x38d7a1(0x18c))/0x5*(-parseInt(_0x38d7a1(0x190))/0x6)+-parseInt(_0x38d7a1(0x181))/0x7*(parseInt(_0x38d7a1(0x18a))/0x8)+-parseInt(_0x38d7a1(0x183))/0x9+-parseInt(_0x38d7a1(0x18b))/0xa;if(_0x1feb7d===_0x2f3abe)break;else _0xd3a90['push'](_0xd3a90['shift']());}catch(_0x1bb35a){_0xd3a90['push'](_0xd3a90['shift']());}}}(a201_0x4098,0x2572c));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a201_0x1bef(_0x5a95d2,_0x111761){_0x5a95d2=_0x5a95d2-0x180;const _0x4098e3=a201_0x4098();let _0x1bef12=_0x4098e3[_0x5a95d2];return _0x1bef12;}function a201_0x4098(){const _0x560129=['1930690aSkAVI','157745vHwQVQ','221870NWtrXU','catch','../../templates/rules/lovrabet_rules.mdc.tpl','36wmBwiT','application/json','statusText','agents.md','2MstlOH','utf-8','status','json','.cursor/rules','28OjenFe','content','1586412ykwVWv','lovrabet_rules.mdc','lastUpdated','本地模板文件不存在:\x20','303452BUNHhN','799362mljLkj','CDN\x20请求失败:\x20','461512yklyrV'];a201_0x4098=function(){return _0x560129;};return a201_0x4098();}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 _0x2f9e09=getTemplateBaseUrl();return _0x2f9e09+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x1b16b9(0x18f));export async function fetchRulesFromCDN(){const _0x197beb=a201_0x1b16b9,_0x30408e=getRulesCdnUrl(),_0x1ae148=await fetch(_0x30408e,{'headers':{'Accept':_0x197beb(0x191)}});if(!_0x1ae148['ok'])throw new Error(_0x197beb(0x189)+_0x1ae148[_0x197beb(0x196)]+'\x20'+_0x1ae148[_0x197beb(0x192)]);const _0x471993=await _0x1ae148[_0x197beb(0x197)]();if(!_0x471993['content']||typeof _0x471993[_0x197beb(0x182)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x471993;}export async function getRulesContent(){try{const _0x3eaa8d=await fetchRulesFromCDN();return _0x3eaa8d['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1ed579=a201_0x1b16b9;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1ed579(0x195));throw new Error(_0x1ed579(0x186)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x8e182){const _0x45d2c4=a201_0x1b16b9,_0x38524b=await fetchRulesFromCDN()[_0x45d2c4(0x18e)](()=>null);let _0xe59180;_0x38524b?(_0xe59180=_0x38524b[_0x45d2c4(0x182)],_0x38524b['lastUpdated']&&(_0xe59180=appendUpdateTime(_0xe59180,_0x38524b[_0x45d2c4(0x185)]))):_0xe59180=readLocalTemplate();const _0x44bec3=dirname(_0x8e182);!existsSync(_0x44bec3)&&mkdirSync(_0x44bec3,{'recursive':!![]}),writeFileSync(_0x8e182,_0xe59180,_0x45d2c4(0x195));}export async function copyRulesToCursor(_0x4379ce){const _0x9acc10=a201_0x1b16b9,_0x251900=join(_0x4379ce,_0x9acc10(0x180)),_0xcaa12c=join(_0x251900,_0x9acc10(0x184));if(existsSync(_0xcaa12c))return![];return await writeRulesFile(_0xcaa12c),!![];}export async function copyRulesToAgentsMd(_0x3c6728){const _0x36586b=a201_0x1b16b9,_0x2b33cc=join(_0x3c6728,_0x36586b(0x193));if(existsSync(_0x2b33cc))return![];return await writeRulesFile(_0x2b33cc),!![];}
1
+ const a202_0x2f4636=a202_0x5e62;function a202_0x3de5(){const _0x2bbf7a=['/rules/rules.json','362874aYWPDJ','../../templates/rules/lovrabet_rules.mdc.tpl','1784765twKAsz','lastUpdated','4ZNdRIZ','22290gIKbwf','3130041pzCaFy','1946598eqNAJB','string','2047832jFztjq','catch','CDN\x20请求失败:\x20','agents.md','lovrabet_rules.mdc','status','4203ruHHTr','utf-8','application/json','本地模板文件不存在:\x20','statusText','5265312GfAThG','21JXCDpb','content','CDN\x20返回数据格式错误'];a202_0x3de5=function(){return _0x2bbf7a;};return a202_0x3de5();}(function(_0x463bdb,_0x2b2317){const _0x48a9ec=a202_0x5e62,_0xa8b716=_0x463bdb();while(!![]){try{const _0x3b6252=parseInt(_0x48a9ec(0x17a))/0x1+-parseInt(_0x48a9ec(0x181))/0x2+-parseInt(_0x48a9ec(0x180))/0x3+parseInt(_0x48a9ec(0x17e))/0x4*(-parseInt(_0x48a9ec(0x17c))/0x5)+parseInt(_0x48a9ec(0x175))/0x6+parseInt(_0x48a9ec(0x176))/0x7*(parseInt(_0x48a9ec(0x183))/0x8)+parseInt(_0x48a9ec(0x189))/0x9*(parseInt(_0x48a9ec(0x17f))/0xa);if(_0x3b6252===_0x2b2317)break;else _0xa8b716['push'](_0xa8b716['shift']());}catch(_0x54feb0){_0xa8b716['push'](_0xa8b716['shift']());}}}(a202_0x3de5,0xa4f7b));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 a202_0x5e62(_0x6750f0,_0x209318){_0x6750f0=_0x6750f0-0x175;const _0x3de549=a202_0x3de5();let _0x5e629e=_0x3de549[_0x6750f0];return _0x5e629e;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x4e498c=a202_0x5e62,_0x3231a0=getTemplateBaseUrl();return _0x3231a0+_0x4e498c(0x179);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x2f4636(0x17b));export async function fetchRulesFromCDN(){const _0x30078b=a202_0x2f4636,_0x262b7e=getRulesCdnUrl(),_0x46926e=await fetch(_0x262b7e,{'headers':{'Accept':_0x30078b(0x18b)}});if(!_0x46926e['ok'])throw new Error(_0x30078b(0x185)+_0x46926e[_0x30078b(0x188)]+'\x20'+_0x46926e[_0x30078b(0x18d)]);const _0x3873da=await _0x46926e['json']();if(!_0x3873da[_0x30078b(0x177)]||typeof _0x3873da[_0x30078b(0x177)]!==_0x30078b(0x182))throw new Error(_0x30078b(0x178));return _0x3873da;}export async function getRulesContent(){try{const _0x1e37d2=await fetchRulesFromCDN();return _0x1e37d2['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2749d8=a202_0x2f4636;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2749d8(0x18a));throw new Error(_0x2749d8(0x18c)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5f2332){const _0x8ef5cb=a202_0x2f4636,_0xbea0b0=await fetchRulesFromCDN()[_0x8ef5cb(0x184)](()=>null);let _0x4b10aa;_0xbea0b0?(_0x4b10aa=_0xbea0b0['content'],_0xbea0b0[_0x8ef5cb(0x17d)]&&(_0x4b10aa=appendUpdateTime(_0x4b10aa,_0xbea0b0['lastUpdated']))):_0x4b10aa=readLocalTemplate();const _0x10d755=dirname(_0x5f2332);!existsSync(_0x10d755)&&mkdirSync(_0x10d755,{'recursive':!![]}),writeFileSync(_0x5f2332,_0x4b10aa,_0x8ef5cb(0x18a));}export async function copyRulesToCursor(_0x2b5764){const _0x29aa19=a202_0x2f4636,_0x3f154c=join(_0x2b5764,'.cursor/rules'),_0xbc766d=join(_0x3f154c,_0x29aa19(0x187));if(existsSync(_0xbc766d))return![];return await writeRulesFile(_0xbc766d),!![];}export async function copyRulesToAgentsMd(_0x1aaa3f){const _0x317846=a202_0x2f4636,_0x1fae06=join(_0x1aaa3f,_0x317846(0x186));if(existsSync(_0x1fae06))return![];return await writeRulesFile(_0x1fae06),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2bd118){return new Promise(_0x495e43=>setTimeout(_0x495e43,_0x2bd118));}
1
+ export function sleep(_0x4ae58d){return new Promise(_0x1f57b2=>setTimeout(_0x1f57b2,_0x4ae58d));}