@lovrabet/rabetbase-cli 2.2.3 → 2.2.4-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -1
  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
- (function(_0x3bc008,_0x2650c9){const _0x45e9ad=a183_0x54dc,_0x10d4ed=_0x3bc008();while(!![]){try{const _0x441ffa=parseInt(_0x45e9ad(0x1ea))/0x1*(parseInt(_0x45e9ad(0x1f3))/0x2)+-parseInt(_0x45e9ad(0x1ee))/0x3*(-parseInt(_0x45e9ad(0x1ef))/0x4)+parseInt(_0x45e9ad(0x1f0))/0x5*(parseInt(_0x45e9ad(0x1f4))/0x6)+parseInt(_0x45e9ad(0x1e8))/0x7*(parseInt(_0x45e9ad(0x1ed))/0x8)+-parseInt(_0x45e9ad(0x1ec))/0x9+parseInt(_0x45e9ad(0x1e6))/0xa*(parseInt(_0x45e9ad(0x1eb))/0xb)+-parseInt(_0x45e9ad(0x1f5))/0xc;if(_0x441ffa===_0x2650c9)break;else _0x10d4ed['push'](_0x10d4ed['shift']());}catch(_0x1bafbd){_0x10d4ed['push'](_0x10d4ed['shift']());}}}(a183_0x29d5,0xbb622));import{sendTraceLog}from'@lovrabet/otel-logger';function a183_0x54dc(_0x44876e,_0x513bf2){_0x44876e=_0x44876e-0x1e5;const _0x29d5f3=a183_0x29d5();let _0x54dc40=_0x29d5f3[_0x44876e];return _0x54dc40;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a183_0x29d5(){const _0xac5e9e=['2238183LQCLsy','428432lsEaJb','3FlBUeW','4268116FdiBWB','1471335AVRpNX','version','logData','6RePZtm','24upIHnq','55567092ueSVDc','traceName','6243610QfmVuC','traceparent','119hSYSSw','spanName','414521BsxZdi','22wQYnmy'];a183_0x29d5=function(){return _0xac5e9e;};return a183_0x29d5();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5a67b3){const _0x20c31c=a183_0x54dc;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5a67b3[_0x20c31c(0x1e5)]??DEFAULT_TRACE_NAME,'version':_0x5a67b3[_0x20c31c(0x1f1)]??getCliVersion(),'spanName':_0x5a67b3[_0x20c31c(0x1e9)],'eventType':'manual','logData':_0x5a67b3[_0x20c31c(0x1f2)],..._0x5a67b3[_0x20c31c(0x1e7)]&&{'traceparent':_0x5a67b3['traceparent']}});}
1
+ function a183_0x30b1(_0x588889,_0x31370a){_0x588889=_0x588889-0x1ce;const _0x3eebeb=a183_0x3eeb();let _0x30b1fd=_0x3eebeb[_0x588889];return _0x30b1fd;}const a183_0x30b366=a183_0x30b1;(function(_0x4fffae,_0x880788){const _0x3ee17a=a183_0x30b1,_0x962e42=_0x4fffae();while(!![]){try{const _0x5103fc=-parseInt(_0x3ee17a(0x1dc))/0x1*(parseInt(_0x3ee17a(0x1d0))/0x2)+-parseInt(_0x3ee17a(0x1da))/0x3+parseInt(_0x3ee17a(0x1d3))/0x4*(parseInt(_0x3ee17a(0x1db))/0x5)+-parseInt(_0x3ee17a(0x1d4))/0x6+parseInt(_0x3ee17a(0x1df))/0x7*(parseInt(_0x3ee17a(0x1d9))/0x8)+parseInt(_0x3ee17a(0x1de))/0x9*(-parseInt(_0x3ee17a(0x1cf))/0xa)+-parseInt(_0x3ee17a(0x1ce))/0xb*(-parseInt(_0x3ee17a(0x1dd))/0xc);if(_0x5103fc===_0x880788)break;else _0x962e42['push'](_0x962e42['shift']());}catch(_0x4824b1){_0x962e42['push'](_0x962e42['shift']());}}}(a183_0x3eeb,0x8c676));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a183_0x30b366(0x1d2);export async function sendCliTraceLog(_0x4f1c92){const _0x39c3c8=a183_0x30b366;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4f1c92[_0x39c3c8(0x1d8)]??DEFAULT_TRACE_NAME,'version':_0x4f1c92[_0x39c3c8(0x1d7)]??getCliVersion(),'spanName':_0x4f1c92['spanName'],'eventType':_0x39c3c8(0x1d6),'logData':_0x4f1c92[_0x39c3c8(0x1d1)],..._0x4f1c92[_0x39c3c8(0x1d5)]&&{'traceparent':_0x4f1c92[_0x39c3c8(0x1d5)]}});}function a183_0x3eeb(){const _0x417819=['version','traceName','470728jqAoDf','3109989CdYbFq','5zDSxHK','26eKllSU','12qCOTUY','18voKBXU','105GnwQoO','17943277zdrrHg','917340jrRCZa','46738ElWREo','logData','rabetbase-cli','1155904ixHCgc','2399874KGELkw','traceparent','manual'];a183_0x3eeb=function(){return _0x417819;};return a183_0x3eeb();}
@@ -1 +1 @@
1
- const a184_0x30a705=a184_0x2a8a;(function(_0xe58852,_0xd901cd){const _0x5dd7f5=a184_0x2a8a,_0x2a15d9=_0xe58852();while(!![]){try{const _0x30cc0c=parseInt(_0x5dd7f5(0x17a))/0x1*(parseInt(_0x5dd7f5(0x17d))/0x2)+parseInt(_0x5dd7f5(0x16b))/0x3*(parseInt(_0x5dd7f5(0x176))/0x4)+parseInt(_0x5dd7f5(0x174))/0x5+parseInt(_0x5dd7f5(0x173))/0x6+-parseInt(_0x5dd7f5(0x17e))/0x7+parseInt(_0x5dd7f5(0x17b))/0x8+-parseInt(_0x5dd7f5(0x170))/0x9*(parseInt(_0x5dd7f5(0x17c))/0xa);if(_0x30cc0c===_0xd901cd)break;else _0x2a15d9['push'](_0x2a15d9['shift']());}catch(_0xc0886c){_0x2a15d9['push'](_0x2a15d9['shift']());}}}(a184_0x2ece,0x58bb8));function a184_0x2ece(){const _0xebf410=['2840825HQzJDW','truncated','265476NEruKN','originalBytes','platform-issue-log-collect','sanitize','149ssOInt','3447048DNKYNk','22816650QmlAFC','7978TvjLKe','764232ZxbcvD','24HZzfrq','description','redactionCount','redactionKinds','join','9fWAuSp','issue.log.collect','title','3779580xnCDzp'];a184_0x2ece=function(){return _0xebf410;};return a184_0x2ece();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a184_0x2a8a(_0x3add2b,_0x56eeef){_0x3add2b=_0x3add2b-0x16b;const _0x2ece67=a184_0x2ece();let _0x2a8a27=_0x2ece67[_0x3add2b];return _0x2a8a27;}export const PLATFORM_ISSUE_TRACE_NAME=a184_0x30a705(0x178);export const PLATFORM_ISSUE_SPAN_NAME=a184_0x30a705(0x171);export async function sendPlatformIssueCollectLog(_0x3b0c2f){const _0x3c2138=a184_0x30a705;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3b0c2f[_0x3c2138(0x172)],'issue.description':_0x3b0c2f[_0x3c2138(0x16c)],..._0x3b0c2f[_0x3c2138(0x179)]?{'issue.description_original_bytes':_0x3b0c2f['sanitize'][_0x3c2138(0x177)],'issue.description_truncated':_0x3b0c2f[_0x3c2138(0x179)][_0x3c2138(0x175)],'issue.description_redactions':_0x3b0c2f[_0x3c2138(0x179)][_0x3c2138(0x16d)],'issue.description_redaction_kinds':_0x3b0c2f['sanitize'][_0x3c2138(0x16e)][_0x3c2138(0x16f)](',')}:{}}});}
1
+ const a184_0x113beb=a184_0x1f54;(function(_0x57cad1,_0x192749){const _0x634c20=a184_0x1f54,_0x3ba213=_0x57cad1();while(!![]){try{const _0x5a94e0=-parseInt(_0x634c20(0x1ce))/0x1*(parseInt(_0x634c20(0x1d4))/0x2)+-parseInt(_0x634c20(0x1d0))/0x3*(parseInt(_0x634c20(0x1d8))/0x4)+parseInt(_0x634c20(0x1cb))/0x5+-parseInt(_0x634c20(0x1d1))/0x6*(-parseInt(_0x634c20(0x1ca))/0x7)+-parseInt(_0x634c20(0x1d7))/0x8+-parseInt(_0x634c20(0x1d3))/0x9+-parseInt(_0x634c20(0x1dd))/0xa*(-parseInt(_0x634c20(0x1cf))/0xb);if(_0x5a94e0===_0x192749)break;else _0x3ba213['push'](_0x3ba213['shift']());}catch(_0x2edce1){_0x3ba213['push'](_0x3ba213['shift']());}}}(a184_0x40d8,0xd6a62));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a184_0x40d8(){const _0x5e0410=['322ATdYyU','3144540ZDzBWf','originalBytes','redactionKinds','3223CcNjaQ','6547706tswhRT','213ccDFol','127038YYqHrn','join','6865290Tekpjn','62IUTDyR','truncated','sanitize','8333648AWNviv','548OOCvCt','redactionCount','issue.log.collect','platform-issue-log-collect','title','20ahkMiJ'];a184_0x40d8=function(){return _0x5e0410;};return a184_0x40d8();}export const PLATFORM_ISSUE_TRACE_NAME=a184_0x113beb(0x1db);function a184_0x1f54(_0x348075,_0x5c70da){_0x348075=_0x348075-0x1ca;const _0x40d85f=a184_0x40d8();let _0x1f54a1=_0x40d85f[_0x348075];return _0x1f54a1;}export const PLATFORM_ISSUE_SPAN_NAME=a184_0x113beb(0x1da);export async function sendPlatformIssueCollectLog(_0x56f2ae){const _0x2f661f=a184_0x113beb;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x56f2ae[_0x2f661f(0x1dc)],'issue.description':_0x56f2ae['description'],..._0x56f2ae[_0x2f661f(0x1d6)]?{'issue.description_original_bytes':_0x56f2ae['sanitize'][_0x2f661f(0x1cc)],'issue.description_truncated':_0x56f2ae[_0x2f661f(0x1d6)][_0x2f661f(0x1d5)],'issue.description_redactions':_0x56f2ae[_0x2f661f(0x1d6)][_0x2f661f(0x1d9)],'issue.description_redaction_kinds':_0x56f2ae[_0x2f661f(0x1d6)][_0x2f661f(0x1cd)][_0x2f661f(0x1d2)](',')}:{}}});}
@@ -1 +1 @@
1
- function a186_0x1d69(_0x265276,_0x38466c){_0x265276=_0x265276-0xeb;const _0x15a4fb=a186_0x15a4();let _0x1d6949=_0x15a4fb[_0x265276];return _0x1d6949;}function a186_0x15a4(){const _0x35636b=['.qoder','Antigravity','.cline','cursor','2695mUzDVz','Windsurf\x20IDE','6awotwo','7950uxUgPn','.claude','qoder','Qoder','cline','trae','356WYcIga','Cline\x20IDE','Cline','21287ioPBry','21023112aWsMCy','claude','4229334uEzFAk','antigravity','1924092zDctnX','file','.cursor/skills/rabetbase.md','codex','.codex/skills/lovrabet/SKILL.md','.codex','opencode','.qoder/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','codebuddy','4096ghSZqG','windsurf','Antigravity\x20IDE','.qoder/rules/rabetbase.md','Trae\x20IDE','.agent/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.windsurf','.cursorrules','.codebuddy/skills/lovrabet/SKILL.md','OpenCode','Codex','其他\x20(通用模板)','Trae','Cursor\x20IDE','.codebuddy','Codex\x20IDE','.agent','109540Qasltp','SKILL.md.tpl','agent','1yhBwBk','34212OUVPsx','.windsurf/workflows/rabetbase.md','Claude\x20Code','.trae/skills/lovrabet/SKILL.md','.trae'];a186_0x15a4=function(){return _0x35636b;};return a186_0x15a4();}const a186_0x3bf101=a186_0x1d69;(function(_0x147101,_0x40d294){const _0x4f5f81=a186_0x1d69,_0xaef483=_0x147101();while(!![]){try{const _0x19330b=-parseInt(_0x4f5f81(0x101))/0x1*(-parseInt(_0x4f5f81(0x11c))/0x2)+-parseInt(_0x4f5f81(0x102))/0x3*(parseInt(_0x4f5f81(0x114))/0x4)+parseInt(_0x4f5f81(0xfe))/0x5*(-parseInt(_0x4f5f81(0x10d))/0x6)+parseInt(_0x4f5f81(0x117))/0x7*(-parseInt(_0x4f5f81(0xec))/0x8)+parseInt(_0x4f5f81(0x11a))/0x9+-parseInt(_0x4f5f81(0x10e))/0xa*(-parseInt(_0x4f5f81(0x10b))/0xb)+parseInt(_0x4f5f81(0x118))/0xc;if(_0x19330b===_0x40d294)break;else _0xaef483['push'](_0xaef483['shift']());}catch(_0x1264d8){_0xaef483['push'](_0xaef483['shift']());}}}(a186_0x15a4,0xbf9b1));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a186_0x3bf101(0xfa),'folders':[a186_0x3bf101(0xf4),'.cursor'],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x11e),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a186_0x3bf101(0x10c),'folders':[a186_0x3bf101(0xf3)],'files':[{'type':'file','path':a186_0x3bf101(0x103),'template':a186_0x3bf101(0xff)}]},'claude':{'name':a186_0x3bf101(0x104),'description':a186_0x3bf101(0x104),'folders':[a186_0x3bf101(0x10f)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':a186_0x3bf101(0x116),'description':a186_0x3bf101(0x115),'folders':[a186_0x3bf101(0x109)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':a186_0x3bf101(0xf7),'description':a186_0x3bf101(0xfc),'folders':[a186_0x3bf101(0x121)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x120),'template':a186_0x3bf101(0xff)}]},'opencode':{'name':a186_0x3bf101(0xf6),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x124),'template':a186_0x3bf101(0xff)}]},'qoder':{'name':a186_0x3bf101(0x111),'description':'Qoder\x20IDE','folders':[a186_0x3bf101(0x107)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xef),'template':'SKILL.md.tpl'},{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x123),'template':a186_0x3bf101(0xff)}]},'codebuddy':{'name':'CodeBuddy','description':a186_0x3bf101(0xf2),'folders':[a186_0x3bf101(0xfb)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xf5),'template':a186_0x3bf101(0xff)}]},'trae':{'name':a186_0x3bf101(0xf9),'description':a186_0x3bf101(0xf0),'folders':[a186_0x3bf101(0x106)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x105),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x3bf101(0xf8),'description':'通用模板\x20-\x20兜底方案','folders':[a186_0x3bf101(0xfd)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xf1),'template':a186_0x3bf101(0xff)}]},'antigravity':{'name':a186_0x3bf101(0x108),'description':a186_0x3bf101(0xee),'folders':[a186_0x3bf101(0xfd)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.agent/skills/lovrabet/SKILL.md','template':a186_0x3bf101(0xff)}]}};export const CORE_IDE_LIST=[a186_0x3bf101(0x119),a186_0x3bf101(0x112),'codebuddy','codex','cursor',a186_0x3bf101(0x122),a186_0x3bf101(0x110),'trae',a186_0x3bf101(0xed)];export const IDE_LIST=[a186_0x3bf101(0x11b),'claude',a186_0x3bf101(0x112),a186_0x3bf101(0xeb),a186_0x3bf101(0x11f),'cursor',a186_0x3bf101(0x122),'qoder',a186_0x3bf101(0x113),'windsurf',a186_0x3bf101(0x100)];export const ALL_CORE_IDES=[a186_0x3bf101(0x10a),a186_0x3bf101(0xed),'claude',a186_0x3bf101(0x112),a186_0x3bf101(0x11f),a186_0x3bf101(0x122),a186_0x3bf101(0x110),a186_0x3bf101(0xeb),'trae'];
1
+ const a186_0x25315d=a186_0x11e3;(function(_0x50cec4,_0x29947d){const _0x38f20f=a186_0x11e3,_0x25cc24=_0x50cec4();while(!![]){try{const _0x306f72=parseInt(_0x38f20f(0x1d8))/0x1+parseInt(_0x38f20f(0x1df))/0x2*(parseInt(_0x38f20f(0x1d1))/0x3)+parseInt(_0x38f20f(0x1c2))/0x4+parseInt(_0x38f20f(0x1bc))/0x5*(-parseInt(_0x38f20f(0x1e3))/0x6)+-parseInt(_0x38f20f(0x1d4))/0x7*(parseInt(_0x38f20f(0x1be))/0x8)+-parseInt(_0x38f20f(0x1b8))/0x9*(-parseInt(_0x38f20f(0x1c6))/0xa)+parseInt(_0x38f20f(0x1e0))/0xb;if(_0x306f72===_0x29947d)break;else _0x25cc24['push'](_0x25cc24['shift']());}catch(_0x5f01e7){_0x25cc24['push'](_0x25cc24['shift']());}}}(a186_0x2287,0xe333c));function a186_0x2287(){const _0x4c7470=['trae','.codebuddy/skills/lovrabet/SKILL.md','.cursorrules','OpenCode','.agent/skills/lovrabet/SKILL.md','Cursor','.codebuddy','Cursor\x20IDE','Cline','4770fVzNuC','.opencode','antigravity','.cursor','7637865IGVNqQ','.windsurf','464jzfSma','.trae','.codex/skills/lovrabet/SKILL.md','SKILL.md.tpl','387532aUeKas','Codex\x20IDE','.qoder/skills/lovrabet/SKILL.md','cline','34350dpqASv','claude','.codex','qoder','其他\x20(通用模板)','opencode','Codex','Trae','windsurf','Antigravity','Windsurf','3xHyffY','.cline','Windsurf\x20IDE','216146sNPmZf','.agent','codebuddy','.qoder/rules/rabetbase.md','722777eyYzSl','file','.trae/skills/lovrabet/SKILL.md','codex','通用模板\x20-\x20兜底方案','cursor','Qoder','1769158ffGTgj','7967608gkrdOt','.cline/skills/lovrabet/SKILL.md','Cline\x20IDE','6IbkKKC'];a186_0x2287=function(){return _0x4c7470;};return a186_0x2287();}function a186_0x11e3(_0x2b2d49,_0x4f0d86){_0x2b2d49=_0x2b2d49-0x1b7;const _0x228780=a186_0x2287();let _0x11e31d=_0x228780[_0x2b2d49];return _0x11e31d;}export const CORE_IDE_CONFIGS={'cursor':{'name':a186_0x25315d(0x1e9),'description':a186_0x25315d(0x1eb),'folders':[a186_0x25315d(0x1e6),a186_0x25315d(0x1bb)],'files':[{'type':a186_0x25315d(0x1d9),'path':'.cursor/skills/rabetbase.md','template':a186_0x25315d(0x1c1)}]},'windsurf':{'name':a186_0x25315d(0x1d0),'description':a186_0x25315d(0x1d3),'folders':[a186_0x25315d(0x1bd)],'files':[{'type':a186_0x25315d(0x1d9),'path':'.windsurf/workflows/rabetbase.md','template':a186_0x25315d(0x1c1)}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a186_0x25315d(0x1d9),'path':'.claude/skills/lovrabet/SKILL.md','template':a186_0x25315d(0x1c1)}]},'cline':{'name':a186_0x25315d(0x1b7),'description':a186_0x25315d(0x1e2),'folders':[a186_0x25315d(0x1d2)],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1e1),'template':a186_0x25315d(0x1c1)}]},'codex':{'name':a186_0x25315d(0x1cc),'description':a186_0x25315d(0x1c3),'folders':[a186_0x25315d(0x1c8)],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1c0),'template':a186_0x25315d(0x1c1)}]},'opencode':{'name':a186_0x25315d(0x1e7),'description':'OpenCode\x20IDE','folders':[a186_0x25315d(0x1b9)],'files':[{'type':a186_0x25315d(0x1d9),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a186_0x25315d(0x1de),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1d7),'template':a186_0x25315d(0x1c1)},{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1c4),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a186_0x25315d(0x1ea)],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1e5),'template':a186_0x25315d(0x1c1)}]},'trae':{'name':a186_0x25315d(0x1cd),'description':'Trae\x20IDE','folders':[a186_0x25315d(0x1bf)],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1da),'template':a186_0x25315d(0x1c1)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x25315d(0x1ca),'description':a186_0x25315d(0x1dc),'folders':[a186_0x25315d(0x1d5)],'files':[{'type':'file','path':a186_0x25315d(0x1e8),'template':a186_0x25315d(0x1c1)}]},'antigravity':{'name':a186_0x25315d(0x1cf),'description':'Antigravity\x20IDE','folders':[a186_0x25315d(0x1d5)],'files':[{'type':a186_0x25315d(0x1d9),'path':a186_0x25315d(0x1e8),'template':a186_0x25315d(0x1c1)}]}};export const CORE_IDE_LIST=['claude',a186_0x25315d(0x1c5),a186_0x25315d(0x1d6),a186_0x25315d(0x1db),'cursor',a186_0x25315d(0x1cb),'qoder',a186_0x25315d(0x1e4),'windsurf'];export const IDE_LIST=[a186_0x25315d(0x1ba),'claude',a186_0x25315d(0x1c5),'codebuddy',a186_0x25315d(0x1db),a186_0x25315d(0x1dd),a186_0x25315d(0x1cb),a186_0x25315d(0x1c9),a186_0x25315d(0x1e4),a186_0x25315d(0x1ce),'agent'];export const ALL_CORE_IDES=[a186_0x25315d(0x1dd),a186_0x25315d(0x1ce),a186_0x25315d(0x1c7),'cline',a186_0x25315d(0x1db),a186_0x25315d(0x1cb),'qoder',a186_0x25315d(0x1d6),a186_0x25315d(0x1e4)];
@@ -1 +1 @@
1
- (function(_0x1c033f,_0x352247){const _0x167cfc=a187_0x5add,_0x265db5=_0x1c033f();while(!![]){try{const _0x31065c=parseInt(_0x167cfc(0xd4))/0x1*(parseInt(_0x167cfc(0xd7))/0x2)+-parseInt(_0x167cfc(0xd5))/0x3*(parseInt(_0x167cfc(0xd8))/0x4)+parseInt(_0x167cfc(0xd9))/0x5*(parseInt(_0x167cfc(0xce))/0x6)+parseInt(_0x167cfc(0xd2))/0x7*(parseInt(_0x167cfc(0xd0))/0x8)+parseInt(_0x167cfc(0xcf))/0x9+parseInt(_0x167cfc(0xd6))/0xa+-parseInt(_0x167cfc(0xd1))/0xb*(parseInt(_0x167cfc(0xd3))/0xc);if(_0x31065c===_0x352247)break;else _0x265db5['push'](_0x265db5['shift']());}catch(_0x21890a){_0x265db5['push'](_0x265db5['shift']());}}}(a187_0xa0c5,0xbd6ed));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a187_0x5add(_0x2ca7e3,_0x373e1a){_0x2ca7e3=_0x2ca7e3-0xce;const _0xa0c571=a187_0xa0c5();let _0x5add1f=_0xa0c571[_0x2ca7e3];return _0x5add1f;}import{CliErrors}from'../errors.js';function a187_0xa0c5(){const _0x11cf46=['6OJykqe','12965040aOdqHw','1491208zJOHEH','869aINjPe','49vObrxu','521124vohkYR','125924ipycvA','12GtpKGK','11572190eilMaS','8lbOMnB','1490864UEgAnD','6456160UbzxLq'];a187_0xa0c5=function(){return _0x11cf46;};return a187_0xa0c5();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x19cb42,_0x543129){const _0x4a1ab5=a187_0x566d,_0x44201b=_0x19cb42();while(!![]){try{const _0x2c5edd=-parseInt(_0x4a1ab5(0x194))/0x1+-parseInt(_0x4a1ab5(0x192))/0x2+parseInt(_0x4a1ab5(0x18f))/0x3+-parseInt(_0x4a1ab5(0x193))/0x4*(-parseInt(_0x4a1ab5(0x197))/0x5)+parseInt(_0x4a1ab5(0x195))/0x6+parseInt(_0x4a1ab5(0x196))/0x7+parseInt(_0x4a1ab5(0x191))/0x8*(parseInt(_0x4a1ab5(0x190))/0x9);if(_0x2c5edd===_0x543129)break;else _0x44201b['push'](_0x44201b['shift']());}catch(_0x502044){_0x44201b['push'](_0x44201b['shift']());}}}(a187_0x4e16,0x7071d));function a187_0x566d(_0x8f058c,_0x6ae59b){_0x8f058c=_0x8f058c-0x18f;const _0x4e16c8=a187_0x4e16();let _0x566d6a=_0x4e16c8[_0x8f058c];return _0x566d6a;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a187_0x4e16(){const _0x3b8412=['118444rufEIS','392682kFZzhV','1765914aYmfIW','693602uMdTvV','90LGfPhg','1774428wFulBV','36IsoLSO','319936JTbMMH','1649184Uzdaqe'];a187_0x4e16=function(){return _0x3b8412;};return a187_0x4e16();}
@@ -1 +1 @@
1
- function a188_0x5256(_0x49fedc,_0x1a86ab){_0x49fedc=_0x49fedc-0x8b;const _0x300c93=a188_0x300c();let _0x5256ed=_0x300c93[_0x49fedc];return _0x5256ed;}function a188_0x300c(){const _0x1e9d8c=['7zyXIMZ','6112FzovqI','/config/index.json','5YIxIaU','87272APgBzu','cli','json','3386364gyvkmi','stableVersion','node','16590530UKcYJh','application/json','11PGyPIR','423VxGPEj','3236240XeQuaM','453364QwnnyX','/config.json','now','4302312stLPdk','1170aoSPWv'];a188_0x300c=function(){return _0x1e9d8c;};return a188_0x300c();}(function(_0x5efd0f,_0x5c313b){const _0x28f167=a188_0x5256,_0x5b73ef=_0x5efd0f();while(!![]){try{const _0x2d6d12=-parseInt(_0x28f167(0x96))/0x1*(-parseInt(_0x28f167(0x8e))/0x2)+parseInt(_0x28f167(0x8c))/0x3*(-parseInt(_0x28f167(0x94))/0x4)+parseInt(_0x28f167(0x8d))/0x5+-parseInt(_0x28f167(0x9a))/0x6*(parseInt(_0x28f167(0x93))/0x7)+parseInt(_0x28f167(0x97))/0x8*(-parseInt(_0x28f167(0x92))/0x9)+-parseInt(_0x28f167(0x9d))/0xa*(-parseInt(_0x28f167(0x8b))/0xb)+-parseInt(_0x28f167(0x91))/0xc;if(_0x2d6d12===_0x5c313b)break;else _0x5b73ef['push'](_0x5b73ef['shift']());}catch(_0x3e5c37){_0x5b73ef['push'](_0x5b73ef['shift']());}}}(a188_0x300c,0xd79e5));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1d5dda=a188_0x5256,_0x4de39f=getTemplateBaseUrl(),_0x2996c0=[_0x4de39f+_0x1d5dda(0x8f),_0x4de39f+_0x1d5dda(0x95)];for(const _0x34ef12 of _0x2996c0){try{const _0x122cb4=await fetch(_0x34ef12,{'headers':{'Accept':_0x1d5dda(0x9e)}});if(!_0x122cb4['ok'])continue;const _0x3a36cc=await _0x122cb4[_0x1d5dda(0x99)]();if(!_0x3a36cc[_0x1d5dda(0x98)]?.[_0x1d5dda(0x9b)]||!_0x3a36cc['sdk']?.[_0x1d5dda(0x9c)]?.[_0x1d5dda(0x9b)])continue;return _0x3a36cc;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5290ff=a188_0x5256,_0x532451=Date[_0x5290ff(0x90)]();if(hasCachedConfig){const _0x2558e4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x532451-cacheTime<_0x2558e4)return cachedConfig;}const _0xa2b295=await fetchCdnConfig();return cachedConfig=_0xa2b295,cacheTime=_0x532451,hasCachedConfig=!![],_0xa2b295;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x517ecf,_0x30bc88){const _0x1cbf32=a188_0x505b,_0x3a4db5=_0x517ecf();while(!![]){try{const _0x41f3e6=-parseInt(_0x1cbf32(0xdb))/0x1*(-parseInt(_0x1cbf32(0xd6))/0x2)+-parseInt(_0x1cbf32(0xd8))/0x3*(parseInt(_0x1cbf32(0xdf))/0x4)+parseInt(_0x1cbf32(0xd5))/0x5+-parseInt(_0x1cbf32(0xda))/0x6*(parseInt(_0x1cbf32(0xd3))/0x7)+-parseInt(_0x1cbf32(0xd1))/0x8+parseInt(_0x1cbf32(0xe4))/0x9*(parseInt(_0x1cbf32(0xdd))/0xa)+-parseInt(_0x1cbf32(0xe1))/0xb*(-parseInt(_0x1cbf32(0xdc))/0xc);if(_0x41f3e6===_0x30bc88)break;else _0x3a4db5['push'](_0x3a4db5['shift']());}catch(_0x4b48f6){_0x3a4db5['push'](_0x3a4db5['shift']());}}}(a188_0x6815,0x8521f));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x50c30d=a188_0x505b,_0x1957d6=getTemplateBaseUrl(),_0x5d8542=[_0x1957d6+_0x50c30d(0xe2),_0x1957d6+'/config/index.json'];for(const _0x312760 of _0x5d8542){try{const _0x4d6187=await fetch(_0x312760,{'headers':{'Accept':_0x50c30d(0xd2)}});if(!_0x4d6187['ok'])continue;const _0x93600b=await _0x4d6187[_0x50c30d(0xe3)]();if(!_0x93600b[_0x50c30d(0xe0)]?.[_0x50c30d(0xde)]||!_0x93600b[_0x50c30d(0xd4)]?.[_0x50c30d(0xd7)]?.['stableVersion'])continue;return _0x93600b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a188_0x6815(){const _0x374a46=['48VpxhJl','node','4287WjtcOM','now','185514prtCuF','33337nxgzmm','870060lGlYoV','4637840vGZPbR','stableVersion','2948VDnBLI','cli','55ANzIkB','/config.json','json','18mCztaT','8249592qIcAbD','application/json','14ESAKgL','sdk','3006700txpMgI'];a188_0x6815=function(){return _0x374a46;};return a188_0x6815();}let hasCachedConfig=![];function a188_0x505b(_0x233bff,_0x1023c4){_0x233bff=_0x233bff-0xd1;const _0x68155c=a188_0x6815();let _0x505bc5=_0x68155c[_0x233bff];return _0x505bc5;}export async function getCdnConfig(){const _0x12ece7=a188_0x505b,_0x5b3a50=Date[_0x12ece7(0xd9)]();if(hasCachedConfig){const _0x59da0d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5b3a50-cacheTime<_0x59da0d)return cachedConfig;}const _0x165f75=await fetchCdnConfig();return cachedConfig=_0x165f75,cacheTime=_0x5b3a50,hasCachedConfig=!![],_0x165f75;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a189_0x4cc615=a189_0xb71b;(function(_0xfeac2f,_0x26ac0f){const _0xc6ae3e=a189_0xb71b,_0x3b6bf3=_0xfeac2f();while(!![]){try{const _0x429ef6=-parseInt(_0xc6ae3e(0x1e4))/0x1+parseInt(_0xc6ae3e(0x1f1))/0x2+-parseInt(_0xc6ae3e(0x1e9))/0x3+-parseInt(_0xc6ae3e(0x1dd))/0x4*(parseInt(_0xc6ae3e(0x1e5))/0x5)+-parseInt(_0xc6ae3e(0x1d6))/0x6+-parseInt(_0xc6ae3e(0x1e6))/0x7+parseInt(_0xc6ae3e(0x1d2))/0x8*(parseInt(_0xc6ae3e(0x1e2))/0x9);if(_0x429ef6===_0x26ac0f)break;else _0x3b6bf3['push'](_0x3b6bf3['shift']());}catch(_0x36e3c5){_0x3b6bf3['push'](_0x3b6bf3['shift']());}}}(a189_0x567e,0x83362));import a189_0x258cb7 from'node:fs';import a189_0x7dc271 from'node:path';import a189_0x50920a from'semver';function a189_0xb71b(_0x38222e,_0x1d907f){_0x38222e=_0x38222e-0x1d2;const _0x567e76=a189_0x567e();let _0xb71b86=_0x567e76[_0x38222e];return _0xb71b86;}function a189_0x567e(){const _0x592dd3=['\x1b[0m','devDependencies','3448080kRxZMY','\x20\x20\x20Upgrade\x20command:\x20','parse','utf8','latest','all','readFileSync','94196BqaUDH','minVersion','utf-8','coerce','test','9999JCvbqb','needsUpgrade','390363puXebA','25BzZJps','668129SXgbeW','\x20\x20\x20Current\x20version:\x20','version','2726199gnbXRP','package.json','\x1b[33m','1.2.0','join','dependencies','stableVersion','@lovrabet/sdk','713718ChzpEc','↪\x20SDK\x20update\x20available','\x1b[1m','some','node_modules','sdk','node','npm\x20install\x20','existsSync','16328noxxfZ','log'];a189_0x567e=function(){return _0x592dd3;};return a189_0x567e();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a189_0x4cc615(0x1ec);function isNonNumericVersion(_0x1cc5e8){const _0x3a12dc=a189_0x4cc615,_0xaf98da=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xaf98da[_0x3a12dc(0x1f4)](_0x55619b=>_0x55619b[_0x3a12dc(0x1e1)](_0x1cc5e8));}function getInstalledVersion(_0x6d9459,_0x3a2016){const _0x4c4ac9=a189_0x4cc615;try{const _0x56ab98=a189_0x7dc271[_0x4c4ac9(0x1ed)](_0x6d9459,_0x4c4ac9(0x1f5),_0x3a2016,_0x4c4ac9(0x1ea));if(a189_0x258cb7['existsSync'](_0x56ab98)){const _0x5dc872=JSON[_0x4c4ac9(0x1d8)](a189_0x258cb7[_0x4c4ac9(0x1dc)](_0x56ab98,_0x4c4ac9(0x1df)));return _0x5dc872[_0x4c4ac9(0x1e8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x52d5a2=a189_0x4cc615;try{const _0x1014fe=await getCdnConfig();return _0x1014fe?.['sdk']?.['node']?.[_0x52d5a2(0x1ef)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x9e8a04=a189_0x4cc615;try{const _0x1b218e=await getCdnConfig();return _0x1b218e?.[_0x9e8a04(0x1f6)]?.[_0x9e8a04(0x1f7)]?.['packageName']||_0x9e8a04(0x1f0);}catch{return _0x9e8a04(0x1f0);}}export async function checkSdkVersion(_0x239aff){const _0x51d891=a189_0x4cc615,_0x4390ff=a189_0x7dc271[_0x51d891(0x1ed)](_0x239aff,_0x51d891(0x1ea)),[_0x45106b,_0x52dff8]=await Promise[_0x51d891(0x1db)]([getSdkStableVersion(),getSdkPackageName()]),_0x76c930=_0x45106b||FALLBACK_MIN_SDK_VERSION;if(!a189_0x258cb7[_0x51d891(0x1f9)](_0x4390ff))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};try{const _0x4b329a=JSON[_0x51d891(0x1d8)](a189_0x258cb7[_0x51d891(0x1dc)](_0x4390ff,_0x51d891(0x1d9))),_0x1b315c=_0x4b329a[_0x51d891(0x1ee)]||{},_0x3da622=_0x4b329a[_0x51d891(0x1d5)]||{},_0xa31166=_0x1b315c[_0x52dff8]||_0x3da622[_0x52dff8];if(!_0xa31166)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};let _0x4868cf=getInstalledVersion(_0x239aff,_0x52dff8);!_0x4868cf&&(_0x4868cf=_0xa31166);if(isNonNumericVersion(_0xa31166))return{'installed':!![],'version':_0x4868cf,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};const _0x344c3f=a189_0x50920a[_0x51d891(0x1e0)](_0x4868cf),_0x5d568a=a189_0x50920a[_0x51d891(0x1e0)](_0x76c930),_0x24d6a0=_0x344c3f&&_0x5d568a?a189_0x50920a['lt'](_0x344c3f,_0x5d568a):![];return{'installed':!![],'version':_0x4868cf,'needsUpgrade':_0x24d6a0,'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};}}export function checkSdkVersionSync(_0x2369db){const _0x2570c8=a189_0x4cc615,_0x52bbfa=a189_0x7dc271[_0x2570c8(0x1ed)](_0x2369db,'package.json'),_0x23a374=_0x2570c8(0x1f0);if(!a189_0x258cb7['existsSync'](_0x52bbfa))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};try{const _0x3b0a69=JSON[_0x2570c8(0x1d8)](a189_0x258cb7[_0x2570c8(0x1dc)](_0x52bbfa,_0x2570c8(0x1d9))),_0x97b881=_0x3b0a69[_0x2570c8(0x1ee)]||{},_0x3d56e2=_0x3b0a69[_0x2570c8(0x1d5)]||{},_0x51335e=_0x97b881[_0x23a374]||_0x3d56e2[_0x23a374];if(!_0x51335e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};let _0x4a745c=getInstalledVersion(_0x2369db,_0x23a374);!_0x4a745c&&(_0x4a745c=_0x51335e);if(isNonNumericVersion(_0x51335e))return{'installed':!![],'version':_0x4a745c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};const _0x18c51e=a189_0x50920a[_0x2570c8(0x1e0)](_0x4a745c),_0x2c9661=_0x18c51e?a189_0x50920a['lt'](_0x18c51e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4a745c,'needsUpgrade':_0x2c9661,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x48cf76){const _0x4b0283=a189_0x4cc615;if(!_0x48cf76[_0x4b0283(0x1e3)])return;const _0x585f5d=_0x4b0283(0x1eb),_0x274fd8=_0x4b0283(0x1d4),_0x5c939a=_0x4b0283(0x1f3),_0x172b99=_0x48cf76['packageName']||_0x4b0283(0x1f0),_0x161e10=_0x48cf76[_0x4b0283(0x1ef)]||_0x48cf76[_0x4b0283(0x1de)],_0x3d806d=_0x4b0283(0x1f8)+_0x172b99+'@'+(_0x161e10||_0x4b0283(0x1da));console[_0x4b0283(0x1d3)](),console[_0x4b0283(0x1d3)](''+_0x585f5d+_0x5c939a+_0x4b0283(0x1f2)+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+_0x4b0283(0x1e7)+_0x172b99+'@'+_0x48cf76[_0x4b0283(0x1e8)]+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+'\x20\x20\x20Stable\x20version:\x20'+_0x161e10+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+_0x4b0283(0x1d7)+_0x3d806d+_0x274fd8),console['log']();}
1
+ const a189_0x4da375=a189_0x37e7;(function(_0x2ba36e,_0x3a6edf){const _0x430a4b=a189_0x37e7,_0x2cbe8c=_0x2ba36e();while(!![]){try{const _0xce7cff=parseInt(_0x430a4b(0x17c))/0x1+parseInt(_0x430a4b(0x17b))/0x2+-parseInt(_0x430a4b(0x181))/0x3+parseInt(_0x430a4b(0x196))/0x4*(parseInt(_0x430a4b(0x18f))/0x5)+parseInt(_0x430a4b(0x19a))/0x6+parseInt(_0x430a4b(0x190))/0x7+parseInt(_0x430a4b(0x198))/0x8*(-parseInt(_0x430a4b(0x18a))/0x9);if(_0xce7cff===_0x3a6edf)break;else _0x2cbe8c['push'](_0x2cbe8c['shift']());}catch(_0xb32b6b){_0x2cbe8c['push'](_0x2cbe8c['shift']());}}}(a189_0xf42d,0xd93de));import a189_0x519929 from'node:fs';import a189_0x4f0a66 from'node:path';import a189_0x57a215 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a189_0x37e7(_0x410709,_0x483eba){_0x410709=_0x410709-0x175;const _0xf42df9=a189_0xf42d();let _0x37e74e=_0xf42df9[_0x410709];return _0x37e74e;}const FALLBACK_MIN_SDK_VERSION=a189_0x4da375(0x193);function isNonNumericVersion(_0x31f4b0){const _0x4fa97d=a189_0x4da375,_0x2b44e3=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2b44e3[_0x4fa97d(0x195)](_0x18c0e9=>_0x18c0e9[_0x4fa97d(0x192)](_0x31f4b0));}function a189_0xf42d(){const _0x2751c3=['1015204anSYUK','package.json','16YtGqyy','utf-8','5206554RZjeRb','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','readFileSync','all','↪\x20SDK\x20update\x20available','@lovrabet/sdk','2731736wtcQew','647866VbrUoJ','packageName','parse','log','sdk','1128579NvebiT','existsSync','node','\x20\x20\x20Current\x20version:\x20','coerce','needsUpgrade','\x20\x20\x20Stable\x20version:\x20','version','join','22905846JSaqaf','utf8','dependencies','npm\x20install\x20','\x1b[0m','35VcHDQE','11886721FAZVJz','devDependencies','test','1.2.0','\x1b[33m','some'];a189_0xf42d=function(){return _0x2751c3;};return a189_0xf42d();}function getInstalledVersion(_0x5448a5,_0x229310){const _0xbb5bb0=a189_0x4da375;try{const _0x4bf4ee=a189_0x4f0a66['join'](_0x5448a5,'node_modules',_0x229310,_0xbb5bb0(0x197));if(a189_0x519929['existsSync'](_0x4bf4ee)){const _0x2b5be1=JSON[_0xbb5bb0(0x17e)](a189_0x519929[_0xbb5bb0(0x177)](_0x4bf4ee,_0xbb5bb0(0x199)));return _0x2b5be1[_0xbb5bb0(0x188)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x567c25=a189_0x4da375;try{const _0x4de210=await getCdnConfig();return _0x4de210?.[_0x567c25(0x180)]?.[_0x567c25(0x183)]?.[_0x567c25(0x175)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x56e30f=a189_0x4da375;try{const _0x37100e=await getCdnConfig();return _0x37100e?.[_0x56e30f(0x180)]?.[_0x56e30f(0x183)]?.[_0x56e30f(0x17d)]||'@lovrabet/sdk';}catch{return _0x56e30f(0x17a);}}export async function checkSdkVersion(_0x5a10b0){const _0x516adc=a189_0x4da375,_0x1dcb4b=a189_0x4f0a66['join'](_0x5a10b0,_0x516adc(0x197)),[_0x43261d,_0x1c0d7e]=await Promise[_0x516adc(0x178)]([getSdkStableVersion(),getSdkPackageName()]),_0x213172=_0x43261d||FALLBACK_MIN_SDK_VERSION;if(!a189_0x519929[_0x516adc(0x182)](_0x1dcb4b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x213172,'packageName':_0x1c0d7e,'stableVersion':_0x43261d};try{const _0xf5ef1b=JSON[_0x516adc(0x17e)](a189_0x519929[_0x516adc(0x177)](_0x1dcb4b,_0x516adc(0x18b))),_0x5547a4=_0xf5ef1b[_0x516adc(0x18c)]||{},_0x3cd623=_0xf5ef1b[_0x516adc(0x191)]||{},_0x2c8ef8=_0x5547a4[_0x1c0d7e]||_0x3cd623[_0x1c0d7e];if(!_0x2c8ef8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x213172,'packageName':_0x1c0d7e,'stableVersion':_0x43261d};let _0x1e740f=getInstalledVersion(_0x5a10b0,_0x1c0d7e);!_0x1e740f&&(_0x1e740f=_0x2c8ef8);if(isNonNumericVersion(_0x2c8ef8))return{'installed':!![],'version':_0x1e740f,'needsUpgrade':![],'minVersion':_0x213172,'packageName':_0x1c0d7e,'stableVersion':_0x43261d};const _0x4043e3=a189_0x57a215['coerce'](_0x1e740f),_0x4d277f=a189_0x57a215[_0x516adc(0x185)](_0x213172),_0x13f22b=_0x4043e3&&_0x4d277f?a189_0x57a215['lt'](_0x4043e3,_0x4d277f):![];return{'installed':!![],'version':_0x1e740f,'needsUpgrade':_0x13f22b,'minVersion':_0x213172,'packageName':_0x1c0d7e,'stableVersion':_0x43261d};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x213172,'packageName':_0x1c0d7e,'stableVersion':_0x43261d};}}export function checkSdkVersionSync(_0x2026db){const _0x736acb=a189_0x4da375,_0x2edc9b=a189_0x4f0a66[_0x736acb(0x189)](_0x2026db,'package.json'),_0x5334cd=_0x736acb(0x17a);if(!a189_0x519929['existsSync'](_0x2edc9b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5334cd,'stableVersion':null};try{const _0x29851f=JSON[_0x736acb(0x17e)](a189_0x519929[_0x736acb(0x177)](_0x2edc9b,_0x736acb(0x18b))),_0x2368cb=_0x29851f[_0x736acb(0x18c)]||{},_0x2594a0=_0x29851f['devDependencies']||{},_0x50ba9d=_0x2368cb[_0x5334cd]||_0x2594a0[_0x5334cd];if(!_0x50ba9d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5334cd,'stableVersion':null};let _0x49c96c=getInstalledVersion(_0x2026db,_0x5334cd);!_0x49c96c&&(_0x49c96c=_0x50ba9d);if(isNonNumericVersion(_0x50ba9d))return{'installed':!![],'version':_0x49c96c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5334cd,'stableVersion':null};const _0x2fc1f2=a189_0x57a215[_0x736acb(0x185)](_0x49c96c),_0x5af1a6=_0x2fc1f2?a189_0x57a215['lt'](_0x2fc1f2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x49c96c,'needsUpgrade':_0x5af1a6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5334cd,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5334cd,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x499495){const _0x2f6175=a189_0x4da375;if(!_0x499495[_0x2f6175(0x186)])return;const _0x4305f7=_0x2f6175(0x194),_0x31089d=_0x2f6175(0x18e),_0x2c1f21='\x1b[1m',_0x5744a6=_0x499495['packageName']||_0x2f6175(0x17a),_0x2333c0=_0x499495[_0x2f6175(0x175)]||_0x499495['minVersion'],_0x1cd108=_0x2f6175(0x18d)+_0x5744a6+'@'+(_0x2333c0||'latest');console[_0x2f6175(0x17f)](),console[_0x2f6175(0x17f)](''+_0x4305f7+_0x2c1f21+_0x2f6175(0x179)+_0x31089d),console[_0x2f6175(0x17f)](_0x4305f7+_0x2f6175(0x184)+_0x5744a6+'@'+_0x499495[_0x2f6175(0x188)]+_0x31089d),console[_0x2f6175(0x17f)](_0x4305f7+_0x2f6175(0x187)+_0x2333c0+_0x31089d),console[_0x2f6175(0x17f)](_0x4305f7+_0x2f6175(0x176)+_0x1cd108+_0x31089d),console['log']();}
@@ -1 +1 @@
1
- (function(_0x46090e,_0x800ae2){const _0x445c14=a190_0x39d6,_0x552975=_0x46090e();while(!![]){try{const _0xe17d51=-parseInt(_0x445c14(0xf9))/0x1*(-parseInt(_0x445c14(0xe7))/0x2)+parseInt(_0x445c14(0xed))/0x3*(parseInt(_0x445c14(0xf8))/0x4)+parseInt(_0x445c14(0x103))/0x5+-parseInt(_0x445c14(0xec))/0x6+-parseInt(_0x445c14(0xde))/0x7*(-parseInt(_0x445c14(0xf0))/0x8)+-parseInt(_0x445c14(0xfc))/0x9*(-parseInt(_0x445c14(0xef))/0xa)+-parseInt(_0x445c14(0xdc))/0xb;if(_0xe17d51===_0x800ae2)break;else _0x552975['push'](_0x552975['shift']());}catch(_0x180ba1){_0x552975['push'](_0x552975['shift']());}}}(a190_0x17ed,0x8f8ed));import{readFileSync}from'node:fs';function a190_0x39d6(_0x5175cb,_0x126ba6){_0x5175cb=_0x5175cb-0xda;const _0x17edf6=a190_0x17ed();let _0x39d6c8=_0x17edf6[_0x5175cb];return _0x39d6c8;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a190_0x35cc2e from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a190_0x17ed(){const _0x53a7b7=['\x20\x20\x20','parse','join','npm\x20install\x20-g\x20','\x20\x20\x20Recommended\x20stable:\x20','package.json','currentVersion','log','2xTGSVb','\x1b[33m','\x20\x20\x20Minimum\x20supported:\x20','↪\x20New\x20version\x20available','Upgrade\x20command:\x20','4870434riJlDc','3KhPhHy','\x20\x20\x20Upgrade\x20command:\x20','937940SmaCkN','24nTxzqd','needsUpgrade','belowMinimum','1.0.0','\x1b[1m','\x1b[31m','upgradeMessage','latest','586736sqFvhD','1002641BIkDzB','\x1b[0m','validation','18fSEvYT','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Minimum\x20supported:\x20','../..','3465730oQbJEX','minimumVersionMessage','stableVersion','15497438oEXsrm','coerce','1816619kfmpmM'];a190_0x17ed=function(){return _0x53a7b7;};return a190_0x17ed();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4a190b){const _0x3bba8e=a190_0x39d6,_0x529f31=_0x4a190b['stableVersion']||_0x3bba8e(0xf7);return _0x3bba8e(0xe2)+NPM_PACKAGE_NAME+'@'+_0x529f31;}function getCurrentCliVersion(){const _0x1884b4=a190_0x39d6;try{const _0xdd76f2=fileURLToPath(import.meta.url),_0x5a799e=resolve(dirname(_0xdd76f2),_0x1884b4(0x102)),_0x34b091=resolve(_0x5a799e,_0x1884b4(0xe4)),_0x2f088f=JSON[_0x1884b4(0xe0)](readFileSync(_0x34b091,'utf-8'));return _0x2f088f['version']||_0x1884b4(0xf3);}catch{return _0x1884b4(0xf3);}}export async function checkCliVersion(){const _0x4167d3=a190_0x39d6,_0x4ea1a2=getCurrentCliVersion(),_0x59d6ea=await getCliVersionPolicy(),_0x3c7244=_0x59d6ea?.[_0x4167d3(0xdb)]||null,_0x58b0b3=_0x59d6ea?.[_0x4167d3(0xff)]||null;let _0x5003ad=![],_0x5c2dda=![];const _0xd335c5=a190_0x35cc2e[_0x4167d3(0xdd)](_0x4ea1a2);if(_0xd335c5&&_0x3c7244)try{const _0x503be9=a190_0x35cc2e[_0x4167d3(0xdd)](_0x3c7244);if(_0x503be9)_0x5003ad=a190_0x35cc2e['lt'](_0xd335c5,_0x503be9);}catch{}if(_0xd335c5&&_0x58b0b3)try{const _0x4c275a=a190_0x35cc2e[_0x4167d3(0xdd)](_0x58b0b3);if(_0x4c275a)_0x5c2dda=a190_0x35cc2e['lt'](_0xd335c5,_0x4c275a);}catch{}return _0x5c2dda&&(_0x5003ad=!![]),{'currentVersion':_0x4ea1a2,'stableVersion':_0x3c7244,'minimumVersion':_0x58b0b3,'needsUpgrade':_0x5003ad,'belowMinimum':_0x5c2dda,'isPreRelease':![],'upgradeMessage':_0x59d6ea?.[_0x4167d3(0xf6)],'minimumVersionMessage':_0x59d6ea?.[_0x4167d3(0xda)]};}export function printCliUpgradeWarning(_0x10e308){const _0x50abb1=a190_0x39d6;if(!_0x10e308[_0x50abb1(0xf1)]&&!_0x10e308['belowMinimum'])return;const _0x2b930a=_0x50abb1(0xf5),_0x31bd37=_0x50abb1(0xe8),_0x1247c0=_0x50abb1(0xfa),_0x30881a=_0x50abb1(0xf4),_0x52dfab=getCliUpgradeCommand(_0x10e308);console[_0x50abb1(0xe6)](),_0x10e308[_0x50abb1(0xf2)]?(console[_0x50abb1(0xe6)](''+_0x2b930a+_0x30881a+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x1247c0),console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xfd)+_0x10e308[_0x50abb1(0xe5)]+_0x1247c0),_0x10e308[_0x50abb1(0xff)]&&console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xe9)+_0x10e308[_0x50abb1(0xff)]+_0x1247c0),_0x10e308[_0x50abb1(0xdb)]&&_0x10e308[_0x50abb1(0xdb)]!==_0x10e308[_0x50abb1(0xff)]&&console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xe3)+_0x10e308[_0x50abb1(0xdb)]+_0x1247c0),_0x10e308['minimumVersionMessage']&&console['log'](_0x2b930a+_0x50abb1(0xdf)+_0x10e308[_0x50abb1(0xda)]+_0x1247c0),console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xee)+_0x52dfab+_0x1247c0)):(console['log'](''+_0x31bd37+_0x30881a+_0x50abb1(0xea)+_0x1247c0),console['log'](_0x31bd37+_0x50abb1(0xfd)+_0x10e308[_0x50abb1(0xe5)]+_0x1247c0),console[_0x50abb1(0xe6)](_0x31bd37+_0x50abb1(0xfe)+_0x10e308[_0x50abb1(0xdb)]+_0x1247c0),_0x10e308[_0x50abb1(0xf6)]&&console[_0x50abb1(0xe6)](_0x31bd37+_0x50abb1(0xdf)+_0x10e308[_0x50abb1(0xf6)]+_0x1247c0),console['log'](_0x31bd37+'\x20\x20\x20Upgrade\x20command:\x20'+_0x52dfab+_0x1247c0)),console['log']();}export function assertCliVersionSupported(_0x137dc3){const _0x3f59c5=a190_0x39d6;if(!_0x137dc3[_0x3f59c5(0xf2)])return;const _0x8ed1f5=[_0x137dc3['minimumVersionMessage'],'Current\x20version:\x20'+_0x137dc3['currentVersion'],_0x137dc3[_0x3f59c5(0xff)]?_0x3f59c5(0x101)+_0x137dc3['minimumVersion']:null,_0x3f59c5(0xeb)+getCliUpgradeCommand(_0x137dc3)]['filter'](Boolean)[_0x3f59c5(0xe1)]('\x0a');throw CliErrors[_0x3f59c5(0xfb)](_0x3f59c5(0x100),_0x8ed1f5);}
1
+ function a190_0x1909(){const _0x3195ae=['17379jePcYw','join','40248shIPrb','../..','2207940wChSpJ','Current\x20version:\x20','minimumVersionMessage','belowMinimum','log','\x20\x20\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[33m','currentVersion','npm\x20install\x20-g\x20','\x1b[31m','1904GCAefs','coerce','560176xAAVdM','134oErzco','↪\x20Critical\x20CLI\x20upgrade\x20required','2288acqfei','upgradeMessage','validation','\x20\x20\x20Minimum\x20supported:\x20','5RdCRwY','stableVersion','parse','\x1b[0m','Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','Upgrade\x20command:\x20','18990QwfcIq','\x20\x20\x20Stable\x20version:\x20','minimumVersion','18951WrjNrO','1.0.0','1783602xieiyo','latest','filter','utf-8'];a190_0x1909=function(){return _0x3195ae;};return a190_0x1909();}(function(_0x23a87c,_0x318d43){const _0x5c818e=a190_0x39e1,_0x3eff16=_0x23a87c();while(!![]){try{const _0x465176=-parseInt(_0x5c818e(0x9b))/0x1+parseInt(_0x5c818e(0xac))/0x2*(-parseInt(_0x5c818e(0x93))/0x3)+-parseInt(_0x5c818e(0xab))/0x4+parseInt(_0x5c818e(0x89))/0x5*(parseInt(_0x5c818e(0x95))/0x6)+-parseInt(_0x5c818e(0x9d))/0x7+parseInt(_0x5c818e(0xa9))/0x8*(parseInt(_0x5c818e(0x99))/0x9)+-parseInt(_0x5c818e(0x90))/0xa*(-parseInt(_0x5c818e(0xae))/0xb);if(_0x465176===_0x318d43)break;else _0x3eff16['push'](_0x3eff16['shift']());}catch(_0xa0946){_0x3eff16['push'](_0x3eff16['shift']());}}}(a190_0x1909,0x38db6));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a190_0x39e1(_0x3ef644,_0x578952){_0x3ef644=_0x3ef644-0x86;const _0x1909f7=a190_0x1909();let _0x39e104=_0x1909f7[_0x3ef644];return _0x39e104;}import a190_0x506ead 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(_0x223792){const _0x2683f9=a190_0x39e1,_0x113616=_0x223792[_0x2683f9(0x8a)]||_0x2683f9(0x96);return _0x2683f9(0xa7)+NPM_PACKAGE_NAME+'@'+_0x113616;}function getCurrentCliVersion(){const _0x209fc1=a190_0x39e1;try{const _0x5d9b0b=fileURLToPath(import.meta.url),_0x37f623=resolve(dirname(_0x5d9b0b),_0x209fc1(0x9c)),_0x4ef5a8=resolve(_0x37f623,'package.json'),_0x5cedf7=JSON[_0x209fc1(0x8b)](readFileSync(_0x4ef5a8,_0x209fc1(0x98)));return _0x5cedf7['version']||'1.0.0';}catch{return _0x209fc1(0x94);}}export async function checkCliVersion(){const _0x2f1ca5=a190_0x39e1,_0x30b0c9=getCurrentCliVersion(),_0x3146d2=await getCliVersionPolicy(),_0x1fe72e=_0x3146d2?.['stableVersion']||null,_0x5eb602=_0x3146d2?.[_0x2f1ca5(0x92)]||null;let _0x1ab1d2=![],_0x1696c5=![];const _0xc508f0=a190_0x506ead[_0x2f1ca5(0xaa)](_0x30b0c9);if(_0xc508f0&&_0x1fe72e)try{const _0x310879=a190_0x506ead[_0x2f1ca5(0xaa)](_0x1fe72e);if(_0x310879)_0x1ab1d2=a190_0x506ead['lt'](_0xc508f0,_0x310879);}catch{}if(_0xc508f0&&_0x5eb602)try{const _0x1698e4=a190_0x506ead[_0x2f1ca5(0xaa)](_0x5eb602);if(_0x1698e4)_0x1696c5=a190_0x506ead['lt'](_0xc508f0,_0x1698e4);}catch{}return _0x1696c5&&(_0x1ab1d2=!![]),{'currentVersion':_0x30b0c9,'stableVersion':_0x1fe72e,'minimumVersion':_0x5eb602,'needsUpgrade':_0x1ab1d2,'belowMinimum':_0x1696c5,'isPreRelease':![],'upgradeMessage':_0x3146d2?.[_0x2f1ca5(0x86)],'minimumVersionMessage':_0x3146d2?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4f5c22){const _0x2b1ed9=a190_0x39e1;if(!_0x4f5c22['needsUpgrade']&&!_0x4f5c22[_0x2b1ed9(0xa0)])return;const _0x1c979b=_0x2b1ed9(0xa8),_0x3ab5e5=_0x2b1ed9(0xa5),_0x4c9c3d=_0x2b1ed9(0x8c),_0x5c3d28='\x1b[1m',_0x1986cb=getCliUpgradeCommand(_0x4f5c22);console[_0x2b1ed9(0xa1)](),_0x4f5c22[_0x2b1ed9(0xa0)]?(console[_0x2b1ed9(0xa1)](''+_0x1c979b+_0x5c3d28+_0x2b1ed9(0xad)+_0x4c9c3d),console[_0x2b1ed9(0xa1)](_0x1c979b+_0x2b1ed9(0xa4)+_0x4f5c22[_0x2b1ed9(0xa6)]+_0x4c9c3d),_0x4f5c22['minimumVersion']&&console[_0x2b1ed9(0xa1)](_0x1c979b+_0x2b1ed9(0x88)+_0x4f5c22['minimumVersion']+_0x4c9c3d),_0x4f5c22[_0x2b1ed9(0x8a)]&&_0x4f5c22[_0x2b1ed9(0x8a)]!==_0x4f5c22[_0x2b1ed9(0x92)]&&console[_0x2b1ed9(0xa1)](_0x1c979b+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4f5c22[_0x2b1ed9(0x8a)]+_0x4c9c3d),_0x4f5c22[_0x2b1ed9(0x9f)]&&console[_0x2b1ed9(0xa1)](_0x1c979b+_0x2b1ed9(0xa2)+_0x4f5c22[_0x2b1ed9(0x9f)]+_0x4c9c3d),console['log'](_0x1c979b+_0x2b1ed9(0x8e)+_0x1986cb+_0x4c9c3d)):(console[_0x2b1ed9(0xa1)](''+_0x3ab5e5+_0x5c3d28+'↪\x20New\x20version\x20available'+_0x4c9c3d),console['log'](_0x3ab5e5+_0x2b1ed9(0xa4)+_0x4f5c22[_0x2b1ed9(0xa6)]+_0x4c9c3d),console[_0x2b1ed9(0xa1)](_0x3ab5e5+_0x2b1ed9(0x91)+_0x4f5c22[_0x2b1ed9(0x8a)]+_0x4c9c3d),_0x4f5c22['upgradeMessage']&&console['log'](_0x3ab5e5+_0x2b1ed9(0xa2)+_0x4f5c22[_0x2b1ed9(0x86)]+_0x4c9c3d),console['log'](_0x3ab5e5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1986cb+_0x4c9c3d)),console['log']();}export function assertCliVersionSupported(_0x14afac){const _0xc2b8fb=a190_0x39e1;if(!_0x14afac[_0xc2b8fb(0xa0)])return;const _0x2f3e4d=[_0x14afac['minimumVersionMessage'],_0xc2b8fb(0x9e)+_0x14afac[_0xc2b8fb(0xa6)],_0x14afac[_0xc2b8fb(0x92)]?_0xc2b8fb(0x8d)+_0x14afac['minimumVersion']:null,_0xc2b8fb(0x8f)+getCliUpgradeCommand(_0x14afac)][_0xc2b8fb(0x97)](Boolean)[_0xc2b8fb(0x9a)]('\x0a');throw CliErrors[_0xc2b8fb(0x87)](_0xc2b8fb(0xa3),_0x2f3e4d);}
@@ -1 +1 @@
1
- function a191_0x205b(){const _0x1b468d=['latestVersion','34318280gWPkmM','12pYsiHa','stableVersion','object','signal','trim','length','minimumVersionMessage','json','9315096sJyOSF','5935brKHRO','8921934pTSjJH','8zBIyTk','300546WKwmDT','minVersion','cli','abort','493758KPOUeh','application/json','5564MExPgw','9964682TDuPtz','now','minimumVersion'];a191_0x205b=function(){return _0x1b468d;};return a191_0x205b();}(function(_0x4bbbe2,_0x31ecda){const _0x536b40=a191_0x163a,_0x41e128=_0x4bbbe2();while(!![]){try{const _0x49f136=-parseInt(_0x536b40(0x139))/0x1+parseInt(_0x536b40(0x145))/0x2*(parseInt(_0x536b40(0x13d))/0x3)+parseInt(_0x536b40(0x13f))/0x4*(parseInt(_0x536b40(0x136))/0x5)+parseInt(_0x536b40(0x135))/0x6+parseInt(_0x536b40(0x140))/0x7+parseInt(_0x536b40(0x138))/0x8*(-parseInt(_0x536b40(0x137))/0x9)+-parseInt(_0x536b40(0x144))/0xa;if(_0x49f136===_0x31ecda)break;else _0x41e128['push'](_0x41e128['shift']());}catch(_0xb47ed0){_0x41e128['push'](_0x41e128['shift']());}}}(a191_0x205b,0xd985f));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(_0x1cfbde){const _0x354575=a191_0x163a;return typeof _0x1cfbde==='string'&&_0x1cfbde['trim']()[_0x354575(0x132)]>0x0?_0x1cfbde[_0x354575(0x131)]():null;}function normalizeCliVersionPolicy(_0x3803dd){const _0xc5d603=a191_0x163a;if(!_0x3803dd||typeof _0x3803dd!=='object')return null;const _0x2f9fbe=_0x3803dd,_0xaf26=_0x2f9fbe[_0xc5d603(0x13b)]&&typeof _0x2f9fbe['cli']===_0xc5d603(0x12f)?_0x2f9fbe[_0xc5d603(0x13b)]:_0x2f9fbe,_0x17c25e=pickString(_0xaf26[_0xc5d603(0x146)])||pickString(_0xaf26[_0xc5d603(0x143)])||pickString(_0xaf26['recommendedVersion']),_0x408e61=pickString(_0xaf26[_0xc5d603(0x142)])||pickString(_0xaf26[_0xc5d603(0x13a)]);if(!_0x17c25e&&!_0x408e61)return null;return{'stableVersion':_0x17c25e,'minimumVersion':_0x408e61,'upgradeMessage':pickString(_0xaf26['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0xaf26[_0xc5d603(0x133)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3bd706=a191_0x163a,_0x2a71f0=new AbortController(),_0x3fa965=setTimeout(()=>_0x2a71f0[_0x3bd706(0x13c)](),FETCH_TIMEOUT_MS);try{const _0x2f8a01=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3bd706(0x13e)},'signal':_0x2a71f0[_0x3bd706(0x130)]});if(!_0x2f8a01['ok'])return null;const _0x580d15=await _0x2f8a01[_0x3bd706(0x134)]();return normalizeCliVersionPolicy(_0x580d15);}catch{return null;}finally{clearTimeout(_0x3fa965);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a191_0x163a(_0x235cb2,_0x55e42c){_0x235cb2=_0x235cb2-0x12f;const _0x205b3f=a191_0x205b();let _0x163a14=_0x205b3f[_0x235cb2];return _0x163a14;}export async function getCliVersionPolicy(){const _0x34bb8c=a191_0x163a,_0x4cf00c=Date[_0x34bb8c(0x141)]();if(hasCachedPolicy){const _0x209040=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4cf00c-cacheTime<_0x209040)return cachedPolicy;}const _0x70606b=await fetchCliVersionPolicy();return cachedPolicy=_0x70606b,cacheTime=_0x4cf00c,hasCachedPolicy=!![],_0x70606b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x5db53a,_0x58aedc){const _0x47084b=a191_0x9583,_0x4e5e5f=_0x5db53a();while(!![]){try{const _0x15f233=parseInt(_0x47084b(0x19a))/0x1+parseInt(_0x47084b(0x1ae))/0x2+-parseInt(_0x47084b(0x19c))/0x3*(-parseInt(_0x47084b(0x19e))/0x4)+-parseInt(_0x47084b(0x1ac))/0x5*(parseInt(_0x47084b(0x19b))/0x6)+parseInt(_0x47084b(0x1a3))/0x7*(-parseInt(_0x47084b(0x1a7))/0x8)+-parseInt(_0x47084b(0x19f))/0x9+parseInt(_0x47084b(0x1aa))/0xa;if(_0x15f233===_0x58aedc)break;else _0x4e5e5f['push'](_0x4e5e5f['shift']());}catch(_0xbdcae8){_0x4e5e5f['push'](_0x4e5e5f['shift']());}}}(a191_0x1cdf,0x96219));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 a191_0x9583(_0x61b411,_0x2b7d5a){_0x61b411=_0x61b411-0x19a;const _0x1cdf8a=a191_0x1cdf();let _0x9583f8=_0x1cdf8a[_0x61b411];return _0x9583f8;}function pickString(_0x55291c){const _0x8116b5=a191_0x9583;return typeof _0x55291c===_0x8116b5(0x19d)&&_0x55291c[_0x8116b5(0x1a0)]()[_0x8116b5(0x1a5)]>0x0?_0x55291c[_0x8116b5(0x1a0)]():null;}function a191_0x1cdf(){const _0x3d5ec2=['8UGiwAV','object','stableVersion','14697710RRXCMf','json','29180uFwdUN','abort','231858JMWRjY','968577nPqQtU','1158FyZKoz','38298HnJMqO','string','20LdiOhr','572652rKTumg','trim','application/json','cli','5692358rAFwff','recommendedVersion','length','signal'];a191_0x1cdf=function(){return _0x3d5ec2;};return a191_0x1cdf();}function normalizeCliVersionPolicy(_0x295088){const _0x4f00e4=a191_0x9583;if(!_0x295088||typeof _0x295088!==_0x4f00e4(0x1a8))return null;const _0x430141=_0x295088,_0x4c7bc0=_0x430141[_0x4f00e4(0x1a2)]&&typeof _0x430141[_0x4f00e4(0x1a2)]==='object'?_0x430141[_0x4f00e4(0x1a2)]:_0x430141,_0x28a8e7=pickString(_0x4c7bc0[_0x4f00e4(0x1a9)])||pickString(_0x4c7bc0['latestVersion'])||pickString(_0x4c7bc0[_0x4f00e4(0x1a4)]),_0x4d8582=pickString(_0x4c7bc0['minimumVersion'])||pickString(_0x4c7bc0['minVersion']);if(!_0x28a8e7&&!_0x4d8582)return null;return{'stableVersion':_0x28a8e7,'minimumVersion':_0x4d8582,'upgradeMessage':pickString(_0x4c7bc0['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4c7bc0['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x40b835=a191_0x9583,_0x4aa90a=new AbortController(),_0x242301=setTimeout(()=>_0x4aa90a[_0x40b835(0x1ad)](),FETCH_TIMEOUT_MS);try{const _0x50bfce=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x40b835(0x1a1)},'signal':_0x4aa90a[_0x40b835(0x1a6)]});if(!_0x50bfce['ok'])return null;const _0x32b4d9=await _0x50bfce[_0x40b835(0x1ab)]();return normalizeCliVersionPolicy(_0x32b4d9);}catch{return null;}finally{clearTimeout(_0x242301);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x54ab91=Date['now']();if(hasCachedPolicy){const _0x29e945=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54ab91-cacheTime<_0x29e945)return cachedPolicy;}const _0x3157b2=await fetchCliVersionPolicy();return cachedPolicy=_0x3157b2,cacheTime=_0x54ab91,hasCachedPolicy=!![],_0x3157b2;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a192_0x1ec5(_0x2eb431,_0x4c8345){_0x2eb431=_0x2eb431-0x18e;const _0x36ded9=a192_0x36de();let _0x1ec5a8=_0x36ded9[_0x2eb431];return _0x1ec5a8;}const a192_0x556025=a192_0x1ec5;(function(_0x3295ff,_0x37485f){const _0x2bb97f=a192_0x1ec5,_0x25ede7=_0x3295ff();while(!![]){try{const _0x52ba90=-parseInt(_0x2bb97f(0x19d))/0x1*(-parseInt(_0x2bb97f(0x19a))/0x2)+-parseInt(_0x2bb97f(0x195))/0x3*(parseInt(_0x2bb97f(0x18f))/0x4)+parseInt(_0x2bb97f(0x194))/0x5*(parseInt(_0x2bb97f(0x19b))/0x6)+-parseInt(_0x2bb97f(0x193))/0x7+-parseInt(_0x2bb97f(0x196))/0x8*(parseInt(_0x2bb97f(0x192))/0x9)+-parseInt(_0x2bb97f(0x190))/0xa*(parseInt(_0x2bb97f(0x191))/0xb)+parseInt(_0x2bb97f(0x197))/0xc*(parseInt(_0x2bb97f(0x198))/0xd);if(_0x52ba90===_0x37485f)break;else _0x25ede7['push'](_0x25ede7['shift']());}catch(_0x8c35d6){_0x25ede7['push'](_0x25ede7['shift']());}}}(a192_0x36de,0xd9167));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0xa8afc5,getMultiAppConfigs as a192_0x5c453c,getTemplateBaseUrl as a192_0x585014}from'../context.js';function a192_0x36de(){const _0x3c9116=['4026536lUwFQQ','12KpZiwJ','51638704lcDOyS','project','126344ytdIlr','6QJiDKa','string','16WWzYsK','env','4FCvgRC','31970vKGFUE','4873fTvFaO','9XPOvLT','3997147echocj','540595bWhzyu','5133837SUxvzu'];a192_0x36de=function(){return _0x3c9116;};return a192_0x36de();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4152e4){const _0x3d9969=a192_0x1ec5,_0x4e2b9e=readRawConfig(_0x4152e4);return _0x4e2b9e[_0x3d9969(0x18e)]&&typeof _0x4e2b9e['env']===_0x3d9969(0x19c)&&initEnv(_0x4e2b9e['env']),_0x4e2b9e;}export function getConfigAppCode(){return a192_0xa8afc5();}export function getMultiAppConfigs(_0x19f81e=a192_0x556025(0x199)){return a192_0x5c453c(_0x19f81e);}export function getTemplateBaseUrl(){return a192_0x585014();}
1
+ const a192_0x1af559=a192_0x5e91;(function(_0x389cc6,_0x3b40d4){const _0x213ed6=a192_0x5e91,_0x16de34=_0x389cc6();while(!![]){try{const _0x148136=-parseInt(_0x213ed6(0x1df))/0x1*(-parseInt(_0x213ed6(0x1dc))/0x2)+parseInt(_0x213ed6(0x1dd))/0x3+parseInt(_0x213ed6(0x1de))/0x4*(-parseInt(_0x213ed6(0x1da))/0x5)+-parseInt(_0x213ed6(0x1e3))/0x6+parseInt(_0x213ed6(0x1db))/0x7*(-parseInt(_0x213ed6(0x1d8))/0x8)+-parseInt(_0x213ed6(0x1e4))/0x9*(-parseInt(_0x213ed6(0x1e2))/0xa)+parseInt(_0x213ed6(0x1d9))/0xb*(parseInt(_0x213ed6(0x1e0))/0xc);if(_0x148136===_0x3b40d4)break;else _0x16de34['push'](_0x16de34['shift']());}catch(_0x4732ba){_0x16de34['push'](_0x16de34['shift']());}}}(a192_0x3b72,0x34dcf));import{initEnv}from'../constant/env.js';function a192_0x3b72(){const _0x4da082=['12120isPwFO','11ZBvoek','55DGuvJV','336AfWVsr','60ibyxXY','55065sKhHiX','126020mWYXjj','6605oRkjfG','2644356liXsnv','project','30RLnPPj','1100910qqvhcm','1147257ZNLXaO','env','string'];a192_0x3b72=function(){return _0x4da082;};return a192_0x3b72();}import{readRawConfig,getConfigAppCode as a192_0x159678,getMultiAppConfigs as a192_0x1d9f62,getTemplateBaseUrl as a192_0xdaeb0f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2a4fa2){const _0x3f3f74=a192_0x5e91,_0x3df14b=readRawConfig(_0x2a4fa2);return _0x3df14b[_0x3f3f74(0x1e5)]&&typeof _0x3df14b[_0x3f3f74(0x1e5)]===_0x3f3f74(0x1e6)&&initEnv(_0x3df14b[_0x3f3f74(0x1e5)]),_0x3df14b;}export function getConfigAppCode(){return a192_0x159678();}export function getMultiAppConfigs(_0x227427=a192_0x1af559(0x1e1)){return a192_0x1d9f62(_0x227427);}function a192_0x5e91(_0x4f1b5b,_0x35f181){_0x4f1b5b=_0x4f1b5b-0x1d8;const _0x3b7229=a192_0x3b72();let _0x5e91e1=_0x3b7229[_0x4f1b5b];return _0x5e91e1;}export function getTemplateBaseUrl(){return a192_0xdaeb0f();}
@@ -1 +1 @@
1
- (function(_0x442094,_0x39ef88){const _0x503fd9=a193_0x4971,_0x166ff3=_0x442094();while(!![]){try{const _0x1c2ac1=parseInt(_0x503fd9(0x138))/0x1*(parseInt(_0x503fd9(0x130))/0x2)+parseInt(_0x503fd9(0x132))/0x3*(-parseInt(_0x503fd9(0x12d))/0x4)+parseInt(_0x503fd9(0x12b))/0x5+-parseInt(_0x503fd9(0x12e))/0x6*(-parseInt(_0x503fd9(0x12f))/0x7)+parseInt(_0x503fd9(0x12c))/0x8*(-parseInt(_0x503fd9(0x135))/0x9)+parseInt(_0x503fd9(0x12a))/0xa*(parseInt(_0x503fd9(0x137))/0xb)+-parseInt(_0x503fd9(0x136))/0xc;if(_0x1c2ac1===_0x39ef88)break;else _0x166ff3['push'](_0x166ff3['shift']());}catch(_0x1e08a2){_0x166ff3['push'](_0x166ff3['shift']());}}}(a193_0x2d1f,0x631f1));import a193_0x113036 from'node:path';import a193_0x5374af from'node:fs';function a193_0x4971(_0x2e4668,_0x55705d){_0x2e4668=_0x2e4668-0x129;const _0x2d1fb5=a193_0x2d1f();let _0x4971e0=_0x2d1fb5[_0x2e4668];return _0x4971e0;}function a193_0x2d1f(){const _0x507359=['74781OygQNF','mkdirSync','readdirSync','144IyOiCt','17091804IQxXyc','1111xLJwZC','3cVXyzv','copyFileSync','name','63870hfFzkn','3433025htPqzG','9592kpZiIA','92IwPmFx','28374kNdaDt','973tDfuwa','289200QgDOVv','复制目录时出错:'];a193_0x2d1f=function(){return _0x507359;};return a193_0x2d1f();}export async function copyDirectory(_0x27c53e,_0x375840){const _0x3362e6=a193_0x4971;try{const _0x1efe68=a193_0x5374af[_0x3362e6(0x134)](_0x27c53e,{'withFileTypes':!![]});a193_0x5374af[_0x3362e6(0x133)](_0x375840,{'recursive':!![]});for(const _0x61349c of _0x1efe68){const _0x5095a5=a193_0x113036['join'](_0x27c53e,_0x61349c[_0x3362e6(0x129)]),_0x4756d3=a193_0x113036['join'](_0x375840,_0x61349c['name']);_0x61349c['isDirectory']()?await copyDirectory(_0x5095a5,_0x4756d3):a193_0x5374af[_0x3362e6(0x139)](_0x5095a5,_0x4756d3);}}catch(_0x4d54be){console['error'](_0x3362e6(0x131),_0x4d54be);}}
1
+ (function(_0x5eb4de,_0x35aca5){const _0x25aad1=a193_0xb85e,_0x507c04=_0x5eb4de();while(!![]){try{const _0x43e48a=parseInt(_0x25aad1(0xc8))/0x1*(parseInt(_0x25aad1(0xcd))/0x2)+-parseInt(_0x25aad1(0xc5))/0x3+parseInt(_0x25aad1(0xc7))/0x4+-parseInt(_0x25aad1(0xd2))/0x5*(parseInt(_0x25aad1(0xce))/0x6)+parseInt(_0x25aad1(0xcc))/0x7+parseInt(_0x25aad1(0xd5))/0x8*(-parseInt(_0x25aad1(0xd4))/0x9)+parseInt(_0x25aad1(0xc6))/0xa;if(_0x43e48a===_0x35aca5)break;else _0x507c04['push'](_0x507c04['shift']());}catch(_0x2603f4){_0x507c04['push'](_0x507c04['shift']());}}}(a193_0x157a,0xe707a));import a193_0x538257 from'node:path';function a193_0xb85e(_0x5e1ca0,_0x24b0db){_0x5e1ca0=_0x5e1ca0-0xc5;const _0x157a4f=a193_0x157a();let _0xb85ecc=_0x157a4f[_0x5e1ca0];return _0xb85ecc;}function a193_0x157a(){const _0x5cb1dd=['isDirectory','join','readdirSync','158215TAcqVj','copyFileSync','92997BLcVbG','600Lddfai','1891485PExmZc','13740940jEyXsv','1166772JmNArB','6809gnCNEP','name','复制目录时出错:','mkdirSync','4308423hOhtJr','30guCixI','6CcHyIr'];a193_0x157a=function(){return _0x5cb1dd;};return a193_0x157a();}import a193_0x5affaf from'node:fs';export async function copyDirectory(_0x3ade87,_0x4f3552){const _0x29a2a1=a193_0xb85e;try{const _0x55a30b=a193_0x5affaf[_0x29a2a1(0xd1)](_0x3ade87,{'withFileTypes':!![]});a193_0x5affaf[_0x29a2a1(0xcb)](_0x4f3552,{'recursive':!![]});for(const _0x63eaba of _0x55a30b){const _0x471596=a193_0x538257['join'](_0x3ade87,_0x63eaba[_0x29a2a1(0xc9)]),_0x1d0274=a193_0x538257[_0x29a2a1(0xd0)](_0x4f3552,_0x63eaba[_0x29a2a1(0xc9)]);_0x63eaba[_0x29a2a1(0xcf)]()?await copyDirectory(_0x471596,_0x1d0274):a193_0x5affaf[_0x29a2a1(0xd3)](_0x471596,_0x1d0274);}}catch(_0x5cc764){console['error'](_0x29a2a1(0xca),_0x5cc764);}}
@@ -1 +1 @@
1
- (function(_0x4ce57d,_0x3554ce){const _0x443b7c=a194_0x2249,_0x45f8e0=_0x4ce57d();while(!![]){try{const _0x36a3f6=parseInt(_0x443b7c(0x150))/0x1*(-parseInt(_0x443b7c(0x146))/0x2)+parseInt(_0x443b7c(0x147))/0x3*(-parseInt(_0x443b7c(0x148))/0x4)+parseInt(_0x443b7c(0x14e))/0x5*(-parseInt(_0x443b7c(0x14a))/0x6)+-parseInt(_0x443b7c(0x14f))/0x7+parseInt(_0x443b7c(0x149))/0x8*(parseInt(_0x443b7c(0x151))/0x9)+parseInt(_0x443b7c(0x154))/0xa+parseInt(_0x443b7c(0x155))/0xb;if(_0x36a3f6===_0x3554ce)break;else _0x45f8e0['push'](_0x45f8e0['shift']());}catch(_0x21ecc8){_0x45f8e0['push'](_0x45f8e0['shift']());}}}(a194_0x1066,0x89f1b));function a194_0x2249(_0xa616d5,_0x586e40){_0xa616d5=_0xa616d5-0x146;const _0x10661d=a194_0x1066();let _0x224967=_0x10661d[_0xa616d5];return _0x224967;}function a194_0x1066(){const _0x4e07d3=['7465bwnDRq','3619322nEpoNc','1hebhWY','4232592rooGSE','object','number','8346930FbgxcC','4140840pCrgLv','1840162nyQjND','33eYDaVZ','15840bSajlr','16wuXVGp','426aDCxVL','string','trim','isFinite'];a194_0x1066=function(){return _0x4e07d3;};return a194_0x1066();}function toFiniteNumber(_0x42488c){const _0x989947=a194_0x2249;if(typeof _0x42488c===_0x989947(0x153)&&Number[_0x989947(0x14d)](_0x42488c))return _0x42488c;if(typeof _0x42488c===_0x989947(0x14b)){const _0x54a73b=_0x42488c[_0x989947(0x14c)]();if(!_0x54a73b)return undefined;const _0x52b67f=Number(_0x54a73b);if(Number['isFinite'](_0x52b67f))return _0x52b67f;}return undefined;}export function normalizeEntityWithIdResponse(_0x44d375){const _0x3d5594=a194_0x2249,_0x496d76=toFiniteNumber(_0x44d375);if(_0x496d76!==undefined)return{'id':_0x496d76,'entity':{'id':_0x496d76}};if(!_0x44d375||typeof _0x44d375!==_0x3d5594(0x152))return{'id':undefined,'entity':{}};const _0x469b30={..._0x44d375},_0x571278=toFiniteNumber(_0x469b30['id']);return _0x571278!==undefined&&(_0x469b30['id']=_0x571278),{'id':_0x571278,'entity':_0x469b30};}
1
+ (function(_0x28c41f,_0x4b9b99){const _0x216b65=a194_0x19d0,_0x15f151=_0x28c41f();while(!![]){try{const _0x11c946=parseInt(_0x216b65(0x186))/0x1*(parseInt(_0x216b65(0x180))/0x2)+parseInt(_0x216b65(0x185))/0x3+-parseInt(_0x216b65(0x182))/0x4+-parseInt(_0x216b65(0x187))/0x5+parseInt(_0x216b65(0x17d))/0x6*(parseInt(_0x216b65(0x17f))/0x7)+parseInt(_0x216b65(0x183))/0x8+-parseInt(_0x216b65(0x188))/0x9;if(_0x11c946===_0x4b9b99)break;else _0x15f151['push'](_0x15f151['shift']());}catch(_0x1a626b){_0x15f151['push'](_0x15f151['shift']());}}}(a194_0x1e08,0xb9ff0));function a194_0x19d0(_0x3b6e52,_0x5df58e){_0x3b6e52=_0x3b6e52-0x17d;const _0x1e088b=a194_0x1e08();let _0x19d044=_0x1e088b[_0x3b6e52];return _0x19d044;}function a194_0x1e08(){const _0x1df7f8=['6GFcguF','number','2019626vLKDyk','8caBLEg','string','4076188FjzBbD','2040168JzhCer','isFinite','3202053DraVRN','153553FZHYrP','645100HVtFWV','2836755hodgwE'];a194_0x1e08=function(){return _0x1df7f8;};return a194_0x1e08();}function toFiniteNumber(_0xb13017){const _0x39d57b=a194_0x19d0;if(typeof _0xb13017===_0x39d57b(0x17e)&&Number[_0x39d57b(0x184)](_0xb13017))return _0xb13017;if(typeof _0xb13017===_0x39d57b(0x181)){const _0x212bbf=_0xb13017['trim']();if(!_0x212bbf)return undefined;const _0x1e2b81=Number(_0x212bbf);if(Number[_0x39d57b(0x184)](_0x1e2b81))return _0x1e2b81;}return undefined;}export function normalizeEntityWithIdResponse(_0x2a71d4){const _0x1e9524=toFiniteNumber(_0x2a71d4);if(_0x1e9524!==undefined)return{'id':_0x1e9524,'entity':{'id':_0x1e9524}};if(!_0x2a71d4||typeof _0x2a71d4!=='object')return{'id':undefined,'entity':{}};const _0x139d35={..._0x2a71d4},_0xd43d37=toFiniteNumber(_0x139d35['id']);return _0xd43d37!==undefined&&(_0x139d35['id']=_0xd43d37),{'id':_0xd43d37,'entity':_0x139d35};}
@@ -1 +1 @@
1
- (function(_0x177b37,_0x219e22){const _0x196a41=a195_0x3831,_0x303347=_0x177b37();while(!![]){try{const _0x228763=-parseInt(_0x196a41(0x1c9))/0x1*(-parseInt(_0x196a41(0x1ca))/0x2)+-parseInt(_0x196a41(0x1d3))/0x3+-parseInt(_0x196a41(0x1d1))/0x4*(parseInt(_0x196a41(0x1cc))/0x5)+-parseInt(_0x196a41(0x1d2))/0x6+-parseInt(_0x196a41(0x1cf))/0x7*(parseInt(_0x196a41(0x1d0))/0x8)+-parseInt(_0x196a41(0x1ce))/0x9+parseInt(_0x196a41(0x1cb))/0xa;if(_0x228763===_0x219e22)break;else _0x303347['push'](_0x303347['shift']());}catch(_0x45584b){_0x303347['push'](_0x303347['shift']());}}}(a195_0x1232,0xee2cd));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a195_0x1232(){const _0x34ec7a=['3521duYivu','27376iDZXfv','4uCMAME','423480odSjyA','5477442TmcWqN','1244447PFfDJp','2TuRQxl','67292450zxvqgG','7450045biLqLI','isDirectory','17014122XWLloD'];a195_0x1232=function(){return _0x34ec7a;};return a195_0x1232();}function a195_0x3831(_0x54cdaf,_0x38e3f2){_0x54cdaf=_0x54cdaf-0x1c9;const _0x123213=a195_0x1232();let _0x383118=_0x123213[_0x54cdaf];return _0x383118;}import{join}from'node:path';export async function copyDir(_0x23cb21,_0x2c5910){const _0x18f42d=a195_0x3831,_0xe2450f=statSync(_0x23cb21);if(_0xe2450f[_0x18f42d(0x1cd)]()){!existsSync(_0x2c5910)&&mkdirSync(_0x2c5910,{'recursive':!![]});const _0x2bb28f=readdirSync(_0x23cb21);for(const _0x560c64 of _0x2bb28f){await copyDir(join(_0x23cb21,_0x560c64),join(_0x2c5910,_0x560c64));}}else copyFileSync(_0x23cb21,_0x2c5910);}export function ensureDir(_0x2a6636){!existsSync(_0x2a6636)&&mkdirSync(_0x2a6636,{'recursive':!![]});}export function pathExists(_0x36aec9){return existsSync(_0x36aec9);}
1
+ function a195_0x4f9a(){const _0x1fa70c=['1161526LsPIvW','655836wJLDmA','766683uiJByx','isDirectory','5166FbPABK','62388aqIAAi','1535jypcdE','2016000fzFDTS','2508384oexrfP','1fvykyz','3130zaCTnM'];a195_0x4f9a=function(){return _0x1fa70c;};return a195_0x4f9a();}(function(_0x277ca7,_0x25dc29){const _0x422505=a195_0x316d,_0x312039=_0x277ca7();while(!![]){try{const _0x54d1f7=parseInt(_0x422505(0x14e))/0x1*(-parseInt(_0x422505(0x150))/0x2)+-parseInt(_0x422505(0x152))/0x3+-parseInt(_0x422505(0x151))/0x4+-parseInt(_0x422505(0x14b))/0x5*(parseInt(_0x422505(0x154))/0x6)+-parseInt(_0x422505(0x14c))/0x7+-parseInt(_0x422505(0x14d))/0x8+-parseInt(_0x422505(0x14a))/0x9*(-parseInt(_0x422505(0x14f))/0xa);if(_0x54d1f7===_0x25dc29)break;else _0x312039['push'](_0x312039['shift']());}catch(_0x46e7c3){_0x312039['push'](_0x312039['shift']());}}}(a195_0x4f9a,0x4a1c6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a195_0x316d(_0x1a1599,_0x1f1155){_0x1a1599=_0x1a1599-0x14a;const _0x4f9af5=a195_0x4f9a();let _0x316d44=_0x4f9af5[_0x1a1599];return _0x316d44;}export async function copyDir(_0x542ad6,_0x2b6f7e){const _0x2a8513=a195_0x316d,_0xa0175f=statSync(_0x542ad6);if(_0xa0175f[_0x2a8513(0x153)]()){!existsSync(_0x2b6f7e)&&mkdirSync(_0x2b6f7e,{'recursive':!![]});const _0x11bc25=readdirSync(_0x542ad6);for(const _0x42ea39 of _0x11bc25){await copyDir(join(_0x542ad6,_0x42ea39),join(_0x2b6f7e,_0x42ea39));}}else copyFileSync(_0x542ad6,_0x2b6f7e);}export function ensureDir(_0x29e57c){!existsSync(_0x29e57c)&&mkdirSync(_0x29e57c,{'recursive':!![]});}export function pathExists(_0xa8aaff){return existsSync(_0xa8aaff);}
@@ -1 +1 @@
1
- const a196_0x1ecf9a=a196_0x30dc;(function(_0x771fc2,_0x19e06a){const _0x31499f=a196_0x30dc,_0xab7ae6=_0x771fc2();while(!![]){try{const _0x5c65e5=parseInt(_0x31499f(0xf2))/0x1+-parseInt(_0x31499f(0xe5))/0x2*(parseInt(_0x31499f(0xe8))/0x3)+-parseInt(_0x31499f(0xf0))/0x4*(-parseInt(_0x31499f(0xef))/0x5)+-parseInt(_0x31499f(0xdc))/0x6*(-parseInt(_0x31499f(0xe6))/0x7)+parseInt(_0x31499f(0xf3))/0x8*(parseInt(_0x31499f(0xe4))/0x9)+parseInt(_0x31499f(0xe2))/0xa+parseInt(_0x31499f(0xf5))/0xb*(-parseInt(_0x31499f(0xf7))/0xc);if(_0x5c65e5===_0x19e06a)break;else _0xab7ae6['push'](_0xab7ae6['shift']());}catch(_0x30c90c){_0xab7ae6['push'](_0xab7ae6['shift']());}}}(a196_0x2cd0,0x2d836));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a196_0x2cd0(){const _0x910b29=['839502sQzFvm','guides','map','join','lastUpdated','status','176270yIpQuU','\x0a\x0a>更新时间:','648OzibuT','6dDqqjx','7bIsHff','title','157449ETVkSr','json','entries','content','CDN\x20数据中缺少\x20skillTemplate','path','length','219210IreLTa','8RsDWzJ','replace','74295txVekm','36024CKSSHP','application/json','1099516Whzvbj','extendContent','36gYvIoa','utf-8','.md','trimEnd','CDN\x20请求失败:\x20','.lovrabet/skill/guides','skillTemplate','/skills/guides.json','statusText','cache','object'];a196_0x2cd0=function(){return _0x910b29;};return a196_0x2cd0();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x23cd53=a196_0x30dc,_0x583eae=getTemplateBaseUrl();return _0x583eae+_0x23cd53(0xfe);}const CACHE_DIR=join(homedir(),'.lovrabet',a196_0x1ecf9a(0x100));export async function fetchGuidesFromCDN(){const _0x1b2004=a196_0x1ecf9a,_0x5b5d6c=getGuidesCdnUrl(),_0x3848b7=await fetch(_0x5b5d6c,{'headers':{'Accept':_0x1b2004(0xf4)}});if(!_0x3848b7['ok'])throw new Error(_0x1b2004(0xfb)+_0x3848b7[_0x1b2004(0xe1)]+'\x20'+_0x3848b7[_0x1b2004(0xff)]);const _0x2c2f85=await _0x3848b7[_0x1b2004(0xe9)]();if(!_0x2c2f85[_0x1b2004(0xdd)]||typeof _0x2c2f85[_0x1b2004(0xdd)]!==_0x1b2004(0x101))throw new Error('CDN\x20返回数据格式错误');return _0x2c2f85;}function a196_0x30dc(_0x18666f,_0x2e7633){_0x18666f=_0x18666f-0xdc;const _0x2cd03c=a196_0x2cd0();let _0x30dc70=_0x2cd03c[_0x18666f];return _0x30dc70;}export function writeGuidesToProject(_0x288c30,_0x124194,_0x554053=a196_0x1ecf9a(0xfc),_0x48d3a8){const _0x169530=a196_0x1ecf9a,_0x4ac71d=join(_0x124194,_0x554053);mkdirSync(_0x4ac71d,{'recursive':!![]});for(const [_0x3fbab0,_0x59ebb2]of Object[_0x169530(0xea)](_0x288c30[_0x169530(0xdd)])){let _0x45908b=_0x59ebb2['content'];_0x59ebb2[_0x169530(0xe0)]&&(_0x45908b=appendUpdateTime(_0x45908b,_0x59ebb2[_0x169530(0xe0)])),writeFileSync(join(_0x4ac71d,_0x3fbab0+_0x169530(0xf9)),_0x45908b,_0x169530(0xf8));}}export function appendUpdateTime(_0x5b0927,_0x137ab9){const _0x227ab0=a196_0x1ecf9a;return _0x5b0927=_0x5b0927[_0x227ab0(0xf1)](/\n*>更新时间:.*$/m,''),_0x5b0927[_0x227ab0(0xfa)]()+(_0x227ab0(0xe3)+_0x137ab9);}export function getSkillTemplate(_0xcdc50d){const _0x241157=a196_0x1ecf9a;return _0xcdc50d[_0x241157(0xfd)]?.[_0x241157(0xeb)]||'';}export function appendExtendContents(_0x1dcd5d,_0x463077,_0x3e7c2d){const _0xc45101=a196_0x1ecf9a,_0x1c3f76=[];for(const [,_0x105bae]of Object[_0xc45101(0xea)](_0x463077['guides'])){_0x105bae[_0xc45101(0xf6)]&&_0x1c3f76['push'](_0x105bae[_0xc45101(0xf6)][_0xc45101(0xfa)]());}if(_0x1c3f76[_0xc45101(0xee)]===0x0)return _0x1dcd5d;return _0x1dcd5d[_0xc45101(0xfa)]()+'\x0a\x0a'+_0x1c3f76[_0xc45101(0xdf)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4f91de,_0xf1894a,_0x5efbe1){const _0x1557d4=a196_0x1ecf9a,_0x33d5c7=getSkillTemplate(_0x4f91de);if(!_0x33d5c7)throw new Error(_0x1557d4(0xec));const _0x33e36a=dirname(_0xf1894a);mkdirSync(_0x33e36a,{'recursive':!![]});let _0x157fa4=_0x33d5c7[_0x1557d4(0xf1)](/\{\{IDE_NAME\}\}/g,_0x5efbe1);_0x157fa4=appendExtendContents(_0x157fa4,_0x4f91de),_0x4f91de['skillTemplate'][_0x1557d4(0xe0)]&&(_0x157fa4=appendUpdateTime(_0x157fa4,_0x4f91de[_0x1557d4(0xfd)][_0x1557d4(0xe0)])),writeFileSync(_0xf1894a,_0x157fa4,_0x1557d4(0xf8));}export async function installGuides(_0x135925){const _0x59dbbb=a196_0x1ecf9a,_0x871c01=await fetchGuidesFromCDN();return writeGuidesToProject(_0x871c01,_0x135925),Object['keys'](_0x871c01[_0x59dbbb(0xdd)])[_0x59dbbb(0xee)];}export function getGuidesSummary(_0x2ae13f){const _0x42d848=a196_0x1ecf9a;return Object[_0x42d848(0xea)](_0x2ae13f[_0x42d848(0xdd)])[_0x42d848(0xde)](([_0x1d6223,_0x2cbd00])=>({'key':_0x1d6223,'title':_0x2cbd00[_0x42d848(0xe7)],'path':_0x2cbd00[_0x42d848(0xed)]}));}
1
+ const a196_0xb939e2=a196_0x4d77;(function(_0x3e5df1,_0x2e237e){const _0xaac9a7=a196_0x4d77,_0x3aec7a=_0x3e5df1();while(!![]){try{const _0x5d917c=-parseInt(_0xaac9a7(0xb9))/0x1*(-parseInt(_0xaac9a7(0xb6))/0x2)+parseInt(_0xaac9a7(0xbc))/0x3+-parseInt(_0xaac9a7(0xb5))/0x4+parseInt(_0xaac9a7(0xb7))/0x5+parseInt(_0xaac9a7(0xbf))/0x6+-parseInt(_0xaac9a7(0xaf))/0x7*(parseInt(_0xaac9a7(0xb2))/0x8)+-parseInt(_0xaac9a7(0xc0))/0x9;if(_0x5d917c===_0x2e237e)break;else _0x3aec7a['push'](_0x3aec7a['shift']());}catch(_0x2d5445){_0x3aec7a['push'](_0x3aec7a['shift']());}}}(a196_0x9299,0x1b7d4));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a196_0x9299(){const _0x178cff=['cache','application/json','entries','\x0a\x0a>更新时间:','push','length','lastUpdated','14462qalaeo','CDN\x20数据中缺少\x20skillTemplate','replace','296qbKAsN','path','utf-8','152320sGVITW','2ROqrLx','996430hTSwUK','trimEnd','163551TSsJlH','/skills/guides.json','content','354744RByBXr','extendContent','json','1011048pkzeqL','3802275CvXEvo','title','.lovrabet/skill/guides','guides','skillTemplate'];a196_0x9299=function(){return _0x178cff;};return a196_0x9299();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x1e4738=a196_0x4d77,_0x3fec85=getTemplateBaseUrl();return _0x3fec85+_0x1e4738(0xba);}function a196_0x4d77(_0x6f4108,_0x34cd72){_0x6f4108=_0x6f4108-0xa7;const _0x929927=a196_0x9299();let _0x4d7730=_0x929927[_0x6f4108];return _0x4d7730;}const CACHE_DIR=join(homedir(),'.lovrabet',a196_0xb939e2(0xa8));export async function fetchGuidesFromCDN(){const _0x1deb34=a196_0xb939e2,_0x424dd5=getGuidesCdnUrl(),_0x24cbe0=await fetch(_0x424dd5,{'headers':{'Accept':_0x1deb34(0xa9)}});if(!_0x24cbe0['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x24cbe0['status']+'\x20'+_0x24cbe0['statusText']);const _0x12fb73=await _0x24cbe0[_0x1deb34(0xbe)]();if(!_0x12fb73[_0x1deb34(0xc3)]||typeof _0x12fb73[_0x1deb34(0xc3)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x12fb73;}export function writeGuidesToProject(_0x45928b,_0x4082f3,_0x3c3625=a196_0xb939e2(0xc2),_0x2be367){const _0x53bf0d=a196_0xb939e2,_0x521a37=join(_0x4082f3,_0x3c3625);mkdirSync(_0x521a37,{'recursive':!![]});for(const [_0x37bfc2,_0x380445]of Object['entries'](_0x45928b['guides'])){let _0x1c241f=_0x380445[_0x53bf0d(0xbb)];_0x380445[_0x53bf0d(0xae)]&&(_0x1c241f=appendUpdateTime(_0x1c241f,_0x380445['lastUpdated'])),writeFileSync(join(_0x521a37,_0x37bfc2+'.md'),_0x1c241f,'utf-8');}}export function appendUpdateTime(_0x40840b,_0x432ca9){const _0x315aa4=a196_0xb939e2;return _0x40840b=_0x40840b['replace'](/\n*>更新时间:.*$/m,''),_0x40840b[_0x315aa4(0xb8)]()+(_0x315aa4(0xab)+_0x432ca9);}export function getSkillTemplate(_0x1941dd){return _0x1941dd['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x4dea20,_0x5354c0,_0x5bae04){const _0x17766f=a196_0xb939e2,_0xbda083=[];for(const [,_0x582e56]of Object[_0x17766f(0xaa)](_0x5354c0['guides'])){_0x582e56['extendContent']&&_0xbda083[_0x17766f(0xac)](_0x582e56[_0x17766f(0xbd)][_0x17766f(0xb8)]());}if(_0xbda083[_0x17766f(0xad)]===0x0)return _0x4dea20;return _0x4dea20[_0x17766f(0xb8)]()+'\x0a\x0a'+_0xbda083['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5644ab,_0x5c142b,_0x252f6b){const _0x4f4c28=a196_0xb939e2,_0x36c316=getSkillTemplate(_0x5644ab);if(!_0x36c316)throw new Error(_0x4f4c28(0xb0));const _0x39403c=dirname(_0x5c142b);mkdirSync(_0x39403c,{'recursive':!![]});let _0x3e1fd7=_0x36c316[_0x4f4c28(0xb1)](/\{\{IDE_NAME\}\}/g,_0x252f6b);_0x3e1fd7=appendExtendContents(_0x3e1fd7,_0x5644ab),_0x5644ab['skillTemplate']['lastUpdated']&&(_0x3e1fd7=appendUpdateTime(_0x3e1fd7,_0x5644ab[_0x4f4c28(0xa7)][_0x4f4c28(0xae)])),writeFileSync(_0x5c142b,_0x3e1fd7,_0x4f4c28(0xb4));}export async function installGuides(_0x5ea499){const _0x3efb3a=a196_0xb939e2,_0x43820c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x43820c,_0x5ea499),Object['keys'](_0x43820c[_0x3efb3a(0xc3)])[_0x3efb3a(0xad)];}export function getGuidesSummary(_0x3277f1){const _0x14342f=a196_0xb939e2;return Object[_0x14342f(0xaa)](_0x3277f1[_0x14342f(0xc3)])['map'](([_0x4cf62b,_0x229ca3])=>({'key':_0x4cf62b,'title':_0x229ca3[_0x14342f(0xc1)],'path':_0x229ca3[_0x14342f(0xb3)]}));}
@@ -1 +1 @@
1
- function a197_0x4392(){const _0x48278c=['headers','963715kseaQN','7776ffdWAz','ENOTFOUND','status','37493oqBTjG','6mWZOqE','12871764oapQsr','2548BRfuiB','AbortError','text','url','json','Request\x20failed','ms\x20后进行第\x20','307417WjaRiq','5172CKJMoW','application/json','signal','statusText','\x20次重试...','984kOiTMD','name','content-type','230jbYXby','includes','4374018QMsUzo','ECONNRESET','log','8elryBp','message'];a197_0x4392=function(){return _0x48278c;};return a197_0x4392();}(function(_0x2a974a,_0x5166d9){const _0x43379d=a197_0x52d4,_0x1003e3=_0x2a974a();while(!![]){try{const _0x19c3ae=parseInt(_0x43379d(0x1e7))/0x1*(parseInt(_0x43379d(0x1e0))/0x2)+-parseInt(_0x43379d(0x1d8))/0x3*(-parseInt(_0x43379d(0x1d3))/0x4)+-parseInt(_0x43379d(0x1e3))/0x5*(-parseInt(_0x43379d(0x1e8))/0x6)+-parseInt(_0x43379d(0x1ea))/0x7*(parseInt(_0x43379d(0x1e4))/0x8)+-parseInt(_0x43379d(0x1dd))/0x9+-parseInt(_0x43379d(0x1db))/0xa*(parseInt(_0x43379d(0x1f1))/0xb)+parseInt(_0x43379d(0x1e9))/0xc;if(_0x19c3ae===_0x5166d9)break;else _0x1003e3['push'](_0x1003e3['shift']());}catch(_0x8e9fe8){_0x1003e3['push'](_0x1003e3['shift']());}}}(a197_0x4392,0x5720b));export async function httpRequest(_0x15c778,_0x5bdc43={}){const _0x44ec3d=a197_0x52d4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5bdc43;let _0x533760=null;for(let _0x35f87a=0x0;_0x35f87a<=retries;_0x35f87a++){try{const _0x387683=new AbortController(),_0x1b60f4=setTimeout(()=>_0x387683['abort'](),timeout),_0x559cd1=await fetch(_0x15c778,{'headers':headers,'signal':_0x387683[_0x44ec3d(0x1d5)]});clearTimeout(_0x1b60f4);let _0x5392c6;const _0x32f188=_0x559cd1['headers']['get'](_0x44ec3d(0x1da));return _0x32f188?.[_0x44ec3d(0x1dc)](_0x44ec3d(0x1d4))?_0x5392c6=await _0x559cd1[_0x44ec3d(0x1ee)]():_0x5392c6=await _0x559cd1[_0x44ec3d(0x1ec)](),{'ok':_0x559cd1['ok'],'status':_0x559cd1[_0x44ec3d(0x1e6)],'statusText':_0x559cd1[_0x44ec3d(0x1d6)],'data':_0x5392c6,'headers':_0x559cd1[_0x44ec3d(0x1e2)],'url':_0x559cd1[_0x44ec3d(0x1ed)],'text':()=>_0x559cd1['text']()};}catch(_0x4c32e2){_0x533760=_0x4c32e2 instanceof Error?_0x4c32e2:new Error(String(_0x4c32e2));if(_0x35f87a===retries)break;if(shouldRetry(_0x4c32e2)){console[_0x44ec3d(0x1df)]('*\x20请求失败,'+retryDelay+_0x44ec3d(0x1f0)+(_0x35f87a+0x1)+_0x44ec3d(0x1d7)),await sleep(retryDelay);continue;}else break;}}throw _0x533760||new Error(_0x44ec3d(0x1ef));}function a197_0x52d4(_0x416e76,_0xf70f55){_0x416e76=_0x416e76-0x1d3;const _0x43928f=a197_0x4392();let _0x52d482=_0x43928f[_0x416e76];return _0x52d482;}function shouldRetry(_0x191e95){const _0x14d017=a197_0x52d4;if(_0x191e95 instanceof Error){if(_0x191e95[_0x14d017(0x1d9)]===_0x14d017(0x1eb))return![];if(_0x191e95[_0x14d017(0x1d9)]==='TypeError'&&_0x191e95[_0x14d017(0x1e1)]['includes']('fetch'))return!![];if(_0x191e95[_0x14d017(0x1e1)][_0x14d017(0x1dc)](_0x14d017(0x1de)))return!![];if(_0x191e95[_0x14d017(0x1e1)][_0x14d017(0x1dc)](_0x14d017(0x1e5)))return![];}return![];}function sleep(_0x54685e){return new Promise(_0x1971e8=>setTimeout(_0x1971e8,_0x54685e));}export function validateUrl(_0x43837a){try{return new URL(_0x43837a),!![];}catch{return![];}}
1
+ (function(_0x18c25c,_0x512f7d){const _0x3bb067=a197_0x3881,_0x1faf49=_0x18c25c();while(!![]){try{const _0x5bff1e=parseInt(_0x3bb067(0x182))/0x1*(-parseInt(_0x3bb067(0x192))/0x2)+-parseInt(_0x3bb067(0x178))/0x3*(parseInt(_0x3bb067(0x18f))/0x4)+-parseInt(_0x3bb067(0x180))/0x5+parseInt(_0x3bb067(0x18d))/0x6*(-parseInt(_0x3bb067(0x193))/0x7)+parseInt(_0x3bb067(0x185))/0x8*(parseInt(_0x3bb067(0x188))/0x9)+parseInt(_0x3bb067(0x18a))/0xa*(-parseInt(_0x3bb067(0x191))/0xb)+parseInt(_0x3bb067(0x181))/0xc;if(_0x5bff1e===_0x512f7d)break;else _0x1faf49['push'](_0x1faf49['shift']());}catch(_0x457a58){_0x1faf49['push'](_0x1faf49['shift']());}}}(a197_0x40e0,0x73440));export async function httpRequest(_0x130e98,_0x4a89c5={}){const _0x186a48=a197_0x3881,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4a89c5;let _0x252ce6=null;for(let _0x296765=0x0;_0x296765<=retries;_0x296765++){try{const _0x31065e=new AbortController(),_0x1246d2=setTimeout(()=>_0x31065e['abort'](),timeout),_0x53d905=await fetch(_0x130e98,{'headers':headers,'signal':_0x31065e[_0x186a48(0x190)]});clearTimeout(_0x1246d2);let _0x1a4cea;const _0x4f428e=_0x53d905['headers'][_0x186a48(0x187)](_0x186a48(0x186));return _0x4f428e?.[_0x186a48(0x177)](_0x186a48(0x18c))?_0x1a4cea=await _0x53d905[_0x186a48(0x175)]():_0x1a4cea=await _0x53d905[_0x186a48(0x189)](),{'ok':_0x53d905['ok'],'status':_0x53d905[_0x186a48(0x183)],'statusText':_0x53d905[_0x186a48(0x17d)],'data':_0x1a4cea,'headers':_0x53d905[_0x186a48(0x17f)],'url':_0x53d905['url'],'text':()=>_0x53d905[_0x186a48(0x189)]()};}catch(_0x4f6217){_0x252ce6=_0x4f6217 instanceof Error?_0x4f6217:new Error(String(_0x4f6217));if(_0x296765===retries)break;if(shouldRetry(_0x4f6217)){console[_0x186a48(0x18e)](_0x186a48(0x179)+retryDelay+_0x186a48(0x184)+(_0x296765+0x1)+_0x186a48(0x174)),await sleep(retryDelay);continue;}else break;}}throw _0x252ce6||new Error('Request\x20failed');}function shouldRetry(_0x34fdb0){const _0x5ad648=a197_0x3881;if(_0x34fdb0 instanceof Error){if(_0x34fdb0[_0x5ad648(0x18b)]===_0x5ad648(0x176))return![];if(_0x34fdb0[_0x5ad648(0x18b)]===_0x5ad648(0x17c)&&_0x34fdb0[_0x5ad648(0x17e)][_0x5ad648(0x177)](_0x5ad648(0x17b)))return!![];if(_0x34fdb0['message']['includes']('ECONNRESET'))return!![];if(_0x34fdb0[_0x5ad648(0x17e)]['includes'](_0x5ad648(0x17a)))return![];}return![];}function a197_0x3881(_0x390b62,_0x619201){_0x390b62=_0x390b62-0x174;const _0x40e08b=a197_0x40e0();let _0x38814f=_0x40e08b[_0x390b62];return _0x38814f;}function sleep(_0xe9a9df){return new Promise(_0x32bff9=>setTimeout(_0x32bff9,_0xe9a9df));}function a197_0x40e0(){const _0x204507=['log','402364KbZsys','signal','77kSPMmH','2THTCwq','1034551flIung','\x20次重试...','json','AbortError','includes','27EsNuxS','*\x20请求失败,','ENOTFOUND','fetch','TypeError','statusText','message','headers','3071130zAWjDv','30744792EAeubN','559219VTvHAb','status','ms\x20后进行第\x20','8YYYljm','content-type','get','4806432ruLodD','text','145490OiVeRi','name','application/json','18GHYoWg'];a197_0x40e0=function(){return _0x204507;};return a197_0x40e0();}export function validateUrl(_0x2a7dd8){try{return new URL(_0x2a7dd8),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4beb98,_0x466a4a){const _0xac0b7b=a198_0x3be2,_0x2b80c4=_0x4beb98();while(!![]){try{const _0x1463e2=-parseInt(_0xac0b7b(0x1a3))/0x1+-parseInt(_0xac0b7b(0x198))/0x2+parseInt(_0xac0b7b(0x1a1))/0x3+-parseInt(_0xac0b7b(0x19d))/0x4*(-parseInt(_0xac0b7b(0x195))/0x5)+-parseInt(_0xac0b7b(0x19a))/0x6+-parseInt(_0xac0b7b(0x1a0))/0x7*(parseInt(_0xac0b7b(0x199))/0x8)+parseInt(_0xac0b7b(0x197))/0x9;if(_0x1463e2===_0x466a4a)break;else _0x2b80c4['push'](_0x2b80c4['shift']());}catch(_0x3aba74){_0x2b80c4['push'](_0x2b80c4['shift']());}}}(a198_0x82b4,0x34984));function env(_0x3641fd){return process.env[`RABETBASE_${_0x3641fd}`]||process.env[`LOVRABET_${_0x3641fd}`]||undefined;}function a198_0x82b4(){const _0x3e0c56=['1365hwTsEv','setRawMode','8802909ODkJHk','420592fMNnNc','16bXPvLG','1349658yfdQsD','nonInteractive','stdout','3152fUpTpM','true','stdin','1444583MNHMdc','487827McOeWO','isTTY','292429RHlGSo'];a198_0x82b4=function(){return _0x3e0c56;};return a198_0x82b4();}export function isNonInteractive(_0xa3a8bf){const _0x5f0ece=a198_0x3be2;return!!(_0xa3a8bf[_0x5f0ece(0x19b)]||_0xa3a8bf['ci']||env('CI')===_0x5f0ece(0x19e)||process.env.CI==='true'||!process[_0x5f0ece(0x19c)][_0x5f0ece(0x1a2)]||!isStdinRawModeSupported());}function a198_0x3be2(_0x3eed8e,_0xdba659){_0x3eed8e=_0x3eed8e-0x195;const _0x82b43f=a198_0x82b4();let _0x3be2b3=_0x82b43f[_0x3eed8e];return _0x3be2b3;}function isStdinRawModeSupported(){const _0x164854=a198_0x3be2;if(!process[_0x164854(0x19f)][_0x164854(0x1a2)])return![];try{const _0x34c34d=process[_0x164854(0x19f)]['isRaw'];return process['stdin'][_0x164854(0x196)](!![]),process[_0x164854(0x19f)][_0x164854(0x196)](_0x34c34d??![]),!![];}catch{return![];}}
1
+ function a198_0x4366(){const _0x1bd07d=['1951pMDKmT','4904123KnwhaA','stdin','3210732PMoeuc','true','isTTY','558tcjkIb','isRaw','55blGzKC','2377680hsVmRr','19044650APTWGy','392xmhjJM','145107zPczEO','setRawMode','102292eIlTMo'];a198_0x4366=function(){return _0x1bd07d;};return a198_0x4366();}function a198_0x3eee(_0x1e5233,_0x3350cb){_0x1e5233=_0x1e5233-0xa3;const _0x436658=a198_0x4366();let _0x3eee75=_0x436658[_0x1e5233];return _0x3eee75;}(function(_0x48f6d9,_0x190654){const _0x233456=a198_0x3eee,_0x2aca21=_0x48f6d9();while(!![]){try{const _0x5c9d18=-parseInt(_0x233456(0xa7))/0x1*(-parseInt(_0x233456(0xad))/0x2)+-parseInt(_0x233456(0xb0))/0x3+parseInt(_0x233456(0xa6))/0x4*(-parseInt(_0x233456(0xaf))/0x5)+parseInt(_0x233456(0xaa))/0x6+-parseInt(_0x233456(0xa8))/0x7+parseInt(_0x233456(0xa3))/0x8*(-parseInt(_0x233456(0xa4))/0x9)+parseInt(_0x233456(0xb1))/0xa;if(_0x5c9d18===_0x190654)break;else _0x2aca21['push'](_0x2aca21['shift']());}catch(_0x4f8d13){_0x2aca21['push'](_0x2aca21['shift']());}}}(a198_0x4366,0x6666d));function env(_0x105d8d){return process.env[`RABETBASE_${_0x105d8d}`]||process.env[`LOVRABET_${_0x105d8d}`]||undefined;}export function isNonInteractive(_0x34d540){const _0x845e8e=a198_0x3eee;return!!(_0x34d540['nonInteractive']||_0x34d540['ci']||env('CI')==='true'||process.env.CI===_0x845e8e(0xab)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5d32ff=a198_0x3eee;if(!process[_0x5d32ff(0xa9)][_0x5d32ff(0xac)])return![];try{const _0x39237e=process[_0x5d32ff(0xa9)][_0x5d32ff(0xae)];return process[_0x5d32ff(0xa9)][_0x5d32ff(0xa5)](!![]),process[_0x5d32ff(0xa9)][_0x5d32ff(0xa5)](_0x39237e??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a199_0x1d501c=a199_0x17f3;(function(_0xb964f0,_0x1460e5){const _0x3f44ca=a199_0x17f3,_0x23c9ca=_0xb964f0();while(!![]){try{const _0xc2ac90=parseInt(_0x3f44ca(0x97))/0x1*(parseInt(_0x3f44ca(0xc0))/0x2)+parseInt(_0x3f44ca(0xc8))/0x3*(-parseInt(_0x3f44ca(0xc6))/0x4)+-parseInt(_0x3f44ca(0xbf))/0x5*(parseInt(_0x3f44ca(0x9e))/0x6)+-parseInt(_0x3f44ca(0xcb))/0x7+parseInt(_0x3f44ca(0xac))/0x8*(parseInt(_0x3f44ca(0xba))/0x9)+-parseInt(_0x3f44ca(0xae))/0xa+-parseInt(_0x3f44ca(0x9f))/0xb*(-parseInt(_0x3f44ca(0xb5))/0xc);if(_0xc2ac90===_0x1460e5)break;else _0x23c9ca['push'](_0x23c9ca['shift']());}catch(_0x3317f0){_0x23c9ca['push'](_0x23c9ca['shift']());}}}(a199_0x1649,0x85a52));import a199_0x3b617c from'winston';import a199_0x4b0a8f from'node:fs';function a199_0x17f3(_0x1f36fa,_0x3cefa8){_0x1f36fa=_0x1f36fa-0x95;const _0x164905=a199_0x1649();let _0x17f3b0=_0x164905[_0x1f36fa];return _0x17f3b0;}import a199_0x531c1c from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a199_0x1d501c(0xb6)]='';constructor(){const _0x1dcdc5=a199_0x1d501c;this[_0x1dcdc5(0xc5)]='';}[a199_0x1d501c(0x96)](_0x3a7ba6){const _0x33fd57=a199_0x1d501c;this[_0x33fd57(0xb6)]=_0x3a7ba6;}[a199_0x1d501c(0xa2)](){const _0xfbb7f8=a199_0x1d501c,_0x3f2ebe=a199_0x531c1c[_0xfbb7f8(0xbc)](this[_0xfbb7f8(0xc5)]);!a199_0x4b0a8f[_0xfbb7f8(0xbe)](_0x3f2ebe)&&a199_0x4b0a8f['mkdirSync'](_0x3f2ebe,{'recursive':!![]});const _0x244250=a199_0x3b617c['format']['combine'](a199_0x3b617c['format']['timestamp'](),a199_0x3b617c['format'][_0xfbb7f8(0x9b)]({'stack':!![]}),a199_0x3b617c[_0xfbb7f8(0x98)][_0xfbb7f8(0x9d)](_0x457568=>{const _0x361bf1=_0xfbb7f8,_0x4dce04={'timestamp':_0x457568[_0x361bf1(0xc4)]||new Date()[_0x361bf1(0xa4)](),'level':_0x457568[_0x361bf1(0xaa)]||_0x361bf1(0xa0),'command':_0x457568[_0x361bf1(0xb9)]||'unknown','rawCommand':_0x457568[_0x361bf1(0xca)]||this[_0x361bf1(0xb6)]||undefined,'message':_0x457568[_0x361bf1(0xab)]||'','duration':_0x457568['duration']||undefined,'details':_0x457568[_0x361bf1(0xc2)]||undefined};return JSON[_0x361bf1(0xbd)](_0x4dce04);}));this['winstonLogger']=a199_0x3b617c[_0xfbb7f8(0x95)]({'level':_0xfbb7f8(0xa0),'format':_0x244250,'transports':[new a199_0x3b617c['transports'][(_0xfbb7f8(0xc3))]({'filename':this[_0xfbb7f8(0xc5)],'level':_0xfbb7f8(0xa0)})],'silent':![]}),a199_0x3b617c[_0xfbb7f8(0xad)]({'success':_0xfbb7f8(0xb2),'error':_0xfbb7f8(0xa3),'warn':_0xfbb7f8(0xa1),'info':_0xfbb7f8(0xcd)});}[a199_0x1d501c(0x99)](_0x29686a){const _0x459ea8=a199_0x1d501c;this[_0x459ea8(0xc5)]=a199_0x531c1c[_0x459ea8(0xa7)](_0x29686a,'.lovrabet.log'),this[_0x459ea8(0xbb)]&&this[_0x459ea8(0xbb)][_0x459ea8(0xc9)](),this[_0x459ea8(0xa2)]();}['info'](_0x3c4c14,_0x10da5c,_0xab78b6){const _0x59125d=a199_0x1d501c;if(!this[_0x59125d(0xc5)]||!this[_0x59125d(0xbb)])return;this[_0x59125d(0xbb)]['info'](_0x10da5c,{'command':_0x3c4c14,'details':_0xab78b6});}[a199_0x1d501c(0xc7)](_0x1d049e,_0x338776,_0x277b51,_0x2e5e3e){const _0x490482=a199_0x1d501c;if(!this[_0x490482(0xc5)]||!this['winstonLogger'])return;this[_0x490482(0xbb)][_0x490482(0xa5)]('info',_0x338776,{'level':'success','command':_0x1d049e,'duration':_0x277b51,'details':_0x2e5e3e});}[a199_0x1d501c(0xb1)](_0x5bfa2d,_0x24c5a4,_0x601710){const _0x169301=a199_0x1d501c;if(!this[_0x169301(0xc5)]||!this[_0x169301(0xbb)])return;this[_0x169301(0xbb)][_0x169301(0xb1)](_0x24c5a4,{'command':_0x5bfa2d,'details':_0x601710});}[a199_0x1d501c(0xaf)](_0x45ba26,_0x1b701f,_0x5ae5d6){const _0x38b0ff=a199_0x1d501c;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x38b0ff(0xbb)][_0x38b0ff(0xaf)](_0x1b701f,{'command':_0x45ba26,'details':_0x5ae5d6});}async[a199_0x1d501c(0xa9)](_0x46a3ee,_0x29305f,_0x197310){const _0x2ae001=a199_0x1d501c,_0x4d2b47=Date[_0x2ae001(0xb4)]();this[_0x2ae001(0xa0)](_0x46a3ee,'开始执行:\x20'+_0x29305f);try{const _0x4db0a8=await _0x197310(),_0x112fe2=Date[_0x2ae001(0xb4)]()-_0x4d2b47;return this[_0x2ae001(0xc7)](_0x46a3ee,_0x2ae001(0xb0)+_0x29305f,_0x112fe2),_0x4db0a8;}catch(_0x4c2a40){const _0x5423ad=Date['now']()-_0x4d2b47;this[_0x2ae001(0xb1)](_0x46a3ee,_0x2ae001(0xcc)+_0x29305f,{'error':_0x4c2a40 instanceof Error?_0x4c2a40[_0x2ae001(0xab)]:String(_0x4c2a40),'duration':_0x5423ad});throw _0x4c2a40;}}[a199_0x1d501c(0x9a)](){const _0x591356=a199_0x1d501c;try{if(!a199_0x4b0a8f[_0x591356(0xbe)](this[_0x591356(0xc5)]))return[];const _0x27c194=a199_0x4b0a8f['readFileSync'](this[_0x591356(0xc5)],_0x591356(0xb3));return _0x27c194[_0x591356(0xb8)]('\x0a')[_0x591356(0xa6)](_0x4e76cd=>_0x4e76cd[_0x591356(0xb7)]())['map'](_0x14e28c=>JSON[_0x591356(0xc1)](_0x14e28c));}catch(_0x549322){return console[_0x591356(0xaf)](_0x591356(0x9c),_0x549322),[];}}[a199_0x1d501c(0xce)](){const _0x2523d7=a199_0x1d501c;try{a199_0x4b0a8f[_0x2523d7(0xbe)](this['logFilePath'])&&a199_0x4b0a8f[_0x2523d7(0xa8)](this['logFilePath'],'',_0x2523d7(0xb3));}catch(_0x4610ba){console[_0x2523d7(0xaf)]('Failed\x20to\x20clear\x20logs:',_0x4610ba);}}['getWinstonInstance'](){const _0x1ce44e=a199_0x1d501c;return this[_0x1ce44e(0xbb)];}}export const logger=new Logger();function a199_0x1649(){const _0x61667c=['2vaEKvG','parse','details','File','timestamp','logFilePath','4nYuFph','success','1229091KHZVmU','clear','rawCommand','1437569tbsFcN','失败:\x20','blue','clearLogs','createLogger','setRawCommand','152376BLFdAY','format','setLogPath','readLogs','errors','Failed\x20to\x20read\x20logs:','printf','663420fXbdHg','11UXlnqr','info','yellow','initWinstonLogger','red','toISOString','log','filter','join','writeFileSync','logTask','level','message','65904tBjqdo','addColors','9526840DNGmiu','warn','完成:\x20','error','green','utf8','now','28392744HOOUHQ','currentRawCommand','trim','split','command','405kVxcxE','winstonLogger','dirname','stringify','existsSync','35VgBzDb'];a199_0x1649=function(){return _0x61667c;};return a199_0x1649();}
1
+ const a199_0x12e375=a199_0x2cf1;function a199_0x2b3c(){const _0x2264fe=['format','warn','details','addColors','writeFileSync','.lovrabet.log','159950pIFrCu','trim','getWinstonInstance','logTask','red','Failed\x20to\x20read\x20logs:','readLogs','join','winstonLogger','duration','5YamOAG','combine','map','clearLogs','128268uRptFn','timestamp','dirname','开始执行:\x20','180frBPSa','info','301561xidFOv','871590fZjldg','mkdirSync','level','command','blue','154680xNRyyt','split','stringify','success','now','existsSync','2FFqKqk','toISOString','clear','printf','完成:\x20','filter','yellow','rawCommand','utf8','logFilePath','setRawCommand','createLogger','unknown','3498hbhnnB','errors','message','currentRawCommand','File','4610dySxoC','log','error','449271fKeExt','initWinstonLogger'];a199_0x2b3c=function(){return _0x2264fe;};return a199_0x2b3c();}(function(_0x497922,_0x4a11fa){const _0x13d302=a199_0x2cf1,_0x28b161=_0x497922();while(!![]){try{const _0x120935=-parseInt(_0x13d302(0x189))/0x1+-parseInt(_0x13d302(0x195))/0x2*(-parseInt(_0x13d302(0x16d))/0x3)+parseInt(_0x13d302(0x183))/0x4+-parseInt(_0x13d302(0x17f))/0x5*(parseInt(_0x13d302(0x18a))/0x6)+parseInt(_0x13d302(0x175))/0x7+parseInt(_0x13d302(0x18f))/0x8*(parseInt(_0x13d302(0x187))/0x9)+-parseInt(_0x13d302(0x16a))/0xa*(-parseInt(_0x13d302(0x165))/0xb);if(_0x120935===_0x4a11fa)break;else _0x28b161['push'](_0x28b161['shift']());}catch(_0x4a02f2){_0x28b161['push'](_0x28b161['shift']());}}}(a199_0x2b3c,0x4714a));import a199_0x9af3fa from'winston';import a199_0x575db7 from'node:fs';function a199_0x2cf1(_0x5b4b24,_0x4937e3){_0x5b4b24=_0x5b4b24-0x162;const _0x2b3ce7=a199_0x2b3c();let _0x2cf172=_0x2b3ce7[_0x5b4b24];return _0x2cf172;}import a199_0x10d393 from'node:path';class Logger{[a199_0x12e375(0x17d)];[a199_0x12e375(0x19e)];[a199_0x12e375(0x168)]='';constructor(){const _0x293a12=a199_0x12e375;this[_0x293a12(0x19e)]='';}[a199_0x12e375(0x162)](_0x4de74d){this['currentRawCommand']=_0x4de74d;}[a199_0x12e375(0x16e)](){const _0x40e731=a199_0x12e375,_0x75fc4=a199_0x10d393[_0x40e731(0x185)](this[_0x40e731(0x19e)]);!a199_0x575db7[_0x40e731(0x194)](_0x75fc4)&&a199_0x575db7[_0x40e731(0x18b)](_0x75fc4,{'recursive':!![]});const _0x56d22f=a199_0x9af3fa[_0x40e731(0x16f)][_0x40e731(0x180)](a199_0x9af3fa['format'][_0x40e731(0x184)](),a199_0x9af3fa['format'][_0x40e731(0x166)]({'stack':!![]}),a199_0x9af3fa[_0x40e731(0x16f)][_0x40e731(0x198)](_0x4b0a89=>{const _0x5db8db=_0x40e731,_0x455a80={'timestamp':_0x4b0a89['timestamp']||new Date()[_0x5db8db(0x196)](),'level':_0x4b0a89[_0x5db8db(0x18c)]||'info','command':_0x4b0a89[_0x5db8db(0x18d)]||_0x5db8db(0x164),'rawCommand':_0x4b0a89[_0x5db8db(0x19c)]||this[_0x5db8db(0x168)]||undefined,'message':_0x4b0a89[_0x5db8db(0x167)]||'','duration':_0x4b0a89[_0x5db8db(0x17e)]||undefined,'details':_0x4b0a89[_0x5db8db(0x171)]||undefined};return JSON[_0x5db8db(0x191)](_0x455a80);}));this[_0x40e731(0x17d)]=a199_0x9af3fa[_0x40e731(0x163)]({'level':_0x40e731(0x188),'format':_0x56d22f,'transports':[new a199_0x9af3fa['transports'][(_0x40e731(0x169))]({'filename':this[_0x40e731(0x19e)],'level':_0x40e731(0x188)})],'silent':![]}),a199_0x9af3fa[_0x40e731(0x172)]({'success':'green','error':_0x40e731(0x179),'warn':_0x40e731(0x19b),'info':_0x40e731(0x18e)});}['setLogPath'](_0x4f14f9){const _0x1fb84b=a199_0x12e375;this[_0x1fb84b(0x19e)]=a199_0x10d393[_0x1fb84b(0x17c)](_0x4f14f9,_0x1fb84b(0x174)),this[_0x1fb84b(0x17d)]&&this[_0x1fb84b(0x17d)][_0x1fb84b(0x197)](),this[_0x1fb84b(0x16e)]();}[a199_0x12e375(0x188)](_0x280b50,_0x1b7866,_0x1c17bf){const _0x3146b6=a199_0x12e375;if(!this[_0x3146b6(0x19e)]||!this[_0x3146b6(0x17d)])return;this[_0x3146b6(0x17d)]['info'](_0x1b7866,{'command':_0x280b50,'details':_0x1c17bf});}[a199_0x12e375(0x192)](_0x281d53,_0x32204c,_0x4e14eb,_0x20e277){const _0x879122=a199_0x12e375;if(!this['logFilePath']||!this[_0x879122(0x17d)])return;this[_0x879122(0x17d)][_0x879122(0x16b)]('info',_0x32204c,{'level':_0x879122(0x192),'command':_0x281d53,'duration':_0x4e14eb,'details':_0x20e277});}[a199_0x12e375(0x16c)](_0x9a9098,_0x388c18,_0x576741){const _0x7486ef=a199_0x12e375;if(!this[_0x7486ef(0x19e)]||!this[_0x7486ef(0x17d)])return;this['winstonLogger'][_0x7486ef(0x16c)](_0x388c18,{'command':_0x9a9098,'details':_0x576741});}[a199_0x12e375(0x170)](_0x9191d9,_0x442af2,_0x14997e){const _0x55d3c1=a199_0x12e375;if(!this[_0x55d3c1(0x19e)]||!this[_0x55d3c1(0x17d)])return;this[_0x55d3c1(0x17d)][_0x55d3c1(0x170)](_0x442af2,{'command':_0x9191d9,'details':_0x14997e});}async[a199_0x12e375(0x178)](_0x3dbde4,_0x519200,_0x479339){const _0x4e506a=a199_0x12e375,_0x179f38=Date[_0x4e506a(0x193)]();this[_0x4e506a(0x188)](_0x3dbde4,_0x4e506a(0x186)+_0x519200);try{const _0x2a9b4f=await _0x479339(),_0x49be5d=Date[_0x4e506a(0x193)]()-_0x179f38;return this[_0x4e506a(0x192)](_0x3dbde4,_0x4e506a(0x199)+_0x519200,_0x49be5d),_0x2a9b4f;}catch(_0x525792){const _0x10294a=Date[_0x4e506a(0x193)]()-_0x179f38;this[_0x4e506a(0x16c)](_0x3dbde4,'失败:\x20'+_0x519200,{'error':_0x525792 instanceof Error?_0x525792[_0x4e506a(0x167)]:String(_0x525792),'duration':_0x10294a});throw _0x525792;}}[a199_0x12e375(0x17b)](){const _0x514a32=a199_0x12e375;try{if(!a199_0x575db7[_0x514a32(0x194)](this[_0x514a32(0x19e)]))return[];const _0x5da90e=a199_0x575db7['readFileSync'](this['logFilePath'],_0x514a32(0x19d));return _0x5da90e[_0x514a32(0x190)]('\x0a')[_0x514a32(0x19a)](_0x5ed97e=>_0x5ed97e[_0x514a32(0x176)]())[_0x514a32(0x181)](_0x5e176f=>JSON['parse'](_0x5e176f));}catch(_0x24f361){return console[_0x514a32(0x170)](_0x514a32(0x17a),_0x24f361),[];}}[a199_0x12e375(0x182)](){const _0x4df9c5=a199_0x12e375;try{a199_0x575db7[_0x4df9c5(0x194)](this[_0x4df9c5(0x19e)])&&a199_0x575db7[_0x4df9c5(0x173)](this[_0x4df9c5(0x19e)],'',_0x4df9c5(0x19d));}catch(_0x10e0ba){console[_0x4df9c5(0x170)]('Failed\x20to\x20clear\x20logs:',_0x10e0ba);}}[a199_0x12e375(0x177)](){const _0x1173ca=a199_0x12e375;return this[_0x1173ca(0x17d)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x225e26,_0x3ed908){const _0x1591de=a200_0x562e,_0x22113c=_0x225e26();while(!![]){try{const _0x1d5b89=parseInt(_0x1591de(0x8c))/0x1+parseInt(_0x1591de(0x8d))/0x2+parseInt(_0x1591de(0x89))/0x3+parseInt(_0x1591de(0x83))/0x4+parseInt(_0x1591de(0x81))/0x5*(-parseInt(_0x1591de(0x84))/0x6)+-parseInt(_0x1591de(0x8a))/0x7*(parseInt(_0x1591de(0x80))/0x8)+-parseInt(_0x1591de(0x86))/0x9;if(_0x1d5b89===_0x3ed908)break;else _0x22113c['push'](_0x22113c['shift']());}catch(_0x12a674){_0x22113c['push'](_0x22113c['shift']());}}}(a200_0x39df,0x51919));import{CliErrors}from'../errors.js';function a200_0x562e(_0x4654d3,_0x5d3c50){_0x4654d3=_0x4654d3-0x80;const _0x39df03=a200_0x39df();let _0x562e20=_0x39df03[_0x4654d3];return _0x562e20;}export function parseJsonParams(_0xd533c7){const _0x157e91=a200_0x562e;if(!_0xd533c7)return undefined;let _0x2ed930;try{_0x2ed930=JSON[_0x157e91(0x8e)](_0xd533c7);}catch{throw CliErrors['validation'](_0x157e91(0x8b)+_0xd533c7);}if(!_0x2ed930||typeof _0x2ed930!==_0x157e91(0x87)||Array[_0x157e91(0x85)](_0x2ed930))throw CliErrors[_0x157e91(0x88)](_0x157e91(0x82),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2ed930;}function a200_0x39df(){const _0x40630c=['994770mIVscJ','isArray','3403170YfkTtw','object','validation','1180929EMrceN','7OAjhtV','Invalid\x20JSON\x20for\x20--params:\x20','614021JNqYaA','1118112fbUVss','parse','4584984CuAQYj','10rApHsi','--params\x20must\x20be\x20a\x20JSON\x20object','200912amorcl'];a200_0x39df=function(){return _0x40630c;};return a200_0x39df();}
1
+ (function(_0xec406,_0x46fc33){const _0x21f2c2=a200_0x548a,_0x31f735=_0xec406();while(!![]){try{const _0x35f507=-parseInt(_0x21f2c2(0x14e))/0x1*(parseInt(_0x21f2c2(0x14f))/0x2)+parseInt(_0x21f2c2(0x14c))/0x3*(-parseInt(_0x21f2c2(0x148))/0x4)+-parseInt(_0x21f2c2(0x14d))/0x5+parseInt(_0x21f2c2(0x146))/0x6*(-parseInt(_0x21f2c2(0x14b))/0x7)+parseInt(_0x21f2c2(0x151))/0x8*(parseInt(_0x21f2c2(0x150))/0x9)+-parseInt(_0x21f2c2(0x149))/0xa+parseInt(_0x21f2c2(0x147))/0xb*(parseInt(_0x21f2c2(0x145))/0xc);if(_0x35f507===_0x46fc33)break;else _0x31f735['push'](_0x31f735['shift']());}catch(_0x108f64){_0x31f735['push'](_0x31f735['shift']());}}}(a200_0x33fe,0xf0dfd));function a200_0x33fe(){const _0x1c9ba5=['63nxCiUA','937064jhhFiT','validation','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','138612xplmgb','2600196xnuHha','7722wZfbAK','3885616MrwkWL','16258140jQDWob','object','28NHHIUh','6HlSzdF','5469825KIHrOJ','140551kSizad','22JZceUT'];a200_0x33fe=function(){return _0x1c9ba5;};return a200_0x33fe();}function a200_0x548a(_0x13e9bc,_0x275e96){_0x13e9bc=_0x13e9bc-0x145;const _0x33fe24=a200_0x33fe();let _0x548a96=_0x33fe24[_0x13e9bc];return _0x548a96;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4c18ef){const _0x5aaa66=a200_0x548a;if(!_0x4c18ef)return undefined;let _0xbc3dfb;try{_0xbc3dfb=JSON['parse'](_0x4c18ef);}catch{throw CliErrors[_0x5aaa66(0x152)](_0x5aaa66(0x153)+_0x4c18ef);}if(!_0xbc3dfb||typeof _0xbc3dfb!==_0x5aaa66(0x14a)||Array['isArray'](_0xbc3dfb))throw CliErrors['validation'](_0x5aaa66(0x154),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xbc3dfb;}
@@ -1 +1 @@
1
- const a201_0xfa8c0f=a201_0x3a6c;function a201_0x3a6c(_0x443518,_0x1377a6){_0x443518=_0x443518-0x168;const _0x285a34=a201_0x285a();let _0x3a6c80=_0x285a34[_0x443518];return _0x3a6c80;}(function(_0x461f42,_0x358b35){const _0x1671a8=a201_0x3a6c,_0x3c5e58=_0x461f42();while(!![]){try{const _0x5c1f1e=parseInt(_0x1671a8(0x16c))/0x1*(-parseInt(_0x1671a8(0x16a))/0x2)+-parseInt(_0x1671a8(0x173))/0x3+parseInt(_0x1671a8(0x16f))/0x4+-parseInt(_0x1671a8(0x16b))/0x5+-parseInt(_0x1671a8(0x16e))/0x6+-parseInt(_0x1671a8(0x171))/0x7*(-parseInt(_0x1671a8(0x170))/0x8)+parseInt(_0x1671a8(0x169))/0x9;if(_0x5c1f1e===_0x358b35)break;else _0x3c5e58['push'](_0x3c5e58['shift']());}catch(_0x44c607){_0x3c5e58['push'](_0x3c5e58['shift']());}}}(a201_0x285a,0x5166a));function a201_0x285a(){const _0x44ed42=['1725921AvJvXR','platform','9725481tBgUxj','10pgBCFI','3272635oeqHim','48098LXaHUk','.cmd','2051400OMBDnH','2594332uNutCN','80rEaxGt','291515qToZBw','win32'];a201_0x285a=function(){return _0x44ed42;};return a201_0x285a();}export const isWindows=process[a201_0xfa8c0f(0x168)]===a201_0xfa8c0f(0x172);export function resolveNpmBin(_0x3c6b1f){const _0x50f3a4=a201_0xfa8c0f;return isWindows?_0x3c6b1f+_0x50f3a4(0x16d):_0x3c6b1f;}
1
+ function a201_0x24d9(){const _0x36f8a7=['2005997TDUHgu','9531144cTOOsS','1154100zuaUqE','90VNhmFR','287217mzSLYy','2054968HvJOxR','14218hSilNe','platform','5KDFRQd','.cmd','1620464lHmscI'];a201_0x24d9=function(){return _0x36f8a7;};return a201_0x24d9();}function a201_0x7cce(_0x3f3cfc,_0x5a221c){_0x3f3cfc=_0x3f3cfc-0x1b3;const _0x24d975=a201_0x24d9();let _0x7ccebf=_0x24d975[_0x3f3cfc];return _0x7ccebf;}const a201_0x556f0d=a201_0x7cce;(function(_0xdfac5,_0x1ace2f){const _0x20c7e9=a201_0x7cce,_0x421af0=_0xdfac5();while(!![]){try{const _0x5207d2=-parseInt(_0x20c7e9(0x1b7))/0x1+parseInt(_0x20c7e9(0x1b9))/0x2*(-parseInt(_0x20c7e9(0x1b6))/0x3)+parseInt(_0x20c7e9(0x1bd))/0x4*(parseInt(_0x20c7e9(0x1bb))/0x5)+-parseInt(_0x20c7e9(0x1b5))/0x6+-parseInt(_0x20c7e9(0x1b3))/0x7+-parseInt(_0x20c7e9(0x1b8))/0x8+parseInt(_0x20c7e9(0x1b4))/0x9;if(_0x5207d2===_0x1ace2f)break;else _0x421af0['push'](_0x421af0['shift']());}catch(_0xd3fa24){_0x421af0['push'](_0x421af0['shift']());}}}(a201_0x24d9,0x37a0d));export const isWindows=process[a201_0x556f0d(0x1ba)]==='win32';export function resolveNpmBin(_0x491f89){const _0x4fa5cf=a201_0x556f0d;return isWindows?_0x491f89+_0x4fa5cf(0x1bc):_0x491f89;}
@@ -1 +1 @@
1
- const a202_0x251718=a202_0x1de1;(function(_0x2e08ab,_0x320e29){const _0x33c3ac=a202_0x1de1,_0x1241ea=_0x2e08ab();while(!![]){try{const _0x54aeae=parseInt(_0x33c3ac(0x1f7))/0x1*(parseInt(_0x33c3ac(0x1f4))/0x2)+parseInt(_0x33c3ac(0x1ec))/0x3*(parseInt(_0x33c3ac(0x1fc))/0x4)+parseInt(_0x33c3ac(0x1ea))/0x5*(parseInt(_0x33c3ac(0x1f2))/0x6)+parseInt(_0x33c3ac(0x1e5))/0x7*(parseInt(_0x33c3ac(0x1e3))/0x8)+parseInt(_0x33c3ac(0x1e9))/0x9*(-parseInt(_0x33c3ac(0x1f8))/0xa)+-parseInt(_0x33c3ac(0x1ee))/0xb+-parseInt(_0x33c3ac(0x1e4))/0xc*(parseInt(_0x33c3ac(0x1e1))/0xd);if(_0x54aeae===_0x320e29)break;else _0x1241ea['push'](_0x1241ea['shift']());}catch(_0xdc59d6){_0x1241ea['push'](_0x1241ea['shift']());}}}(a202_0x3326,0x52929));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a202_0x3326(){const _0x443dc3=['本地模板文件不存在:\x20','648052ZQVlwm','13sRbViA','.cursor/rules','219272rrvkTu','9624612OnJyev','168AXroAb','json','lovrabet_rules.mdc','agents.md','1746558epRvwg','155XgZWpi','utf-8','3Augtdp','application/json','660033YXVjrz','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','statusText','90198tohHOd','../../templates/rules/lovrabet_rules.mdc.tpl','216962GMBENd','lastUpdated','string','1CJJFmm','10iJDhdl','status','content'];a202_0x3326=function(){return _0x443dc3;};return a202_0x3326();}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x38302f=getTemplateBaseUrl();return _0x38302f+'/rules/rules.json';}function a202_0x1de1(_0x2a0313,_0x366762){_0x2a0313=_0x2a0313-0x1e1;const _0x332653=a202_0x3326();let _0x1de197=_0x332653[_0x2a0313];return _0x1de197;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x251718(0x1f3));export async function fetchRulesFromCDN(){const _0x3c15ce=a202_0x251718,_0x9cf403=getRulesCdnUrl(),_0x2fcaa1=await fetch(_0x9cf403,{'headers':{'Accept':_0x3c15ce(0x1ed)}});if(!_0x2fcaa1['ok'])throw new Error(_0x3c15ce(0x1ef)+_0x2fcaa1[_0x3c15ce(0x1f9)]+'\x20'+_0x2fcaa1[_0x3c15ce(0x1f1)]);const _0xe558ab=await _0x2fcaa1[_0x3c15ce(0x1e6)]();if(!_0xe558ab[_0x3c15ce(0x1fa)]||typeof _0xe558ab[_0x3c15ce(0x1fa)]!==_0x3c15ce(0x1f6))throw new Error(_0x3c15ce(0x1f0));return _0xe558ab;}export async function getRulesContent(){const _0x28e39e=a202_0x251718;try{const _0x2020ba=await fetchRulesFromCDN();return _0x2020ba[_0x28e39e(0x1fa)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3cbd0a=a202_0x251718;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3cbd0a(0x1eb));throw new Error(_0x3cbd0a(0x1fb)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x123644){const _0x308493=a202_0x251718,_0x373706=await fetchRulesFromCDN()['catch'](()=>null);let _0x47e572;_0x373706?(_0x47e572=_0x373706[_0x308493(0x1fa)],_0x373706[_0x308493(0x1f5)]&&(_0x47e572=appendUpdateTime(_0x47e572,_0x373706[_0x308493(0x1f5)]))):_0x47e572=readLocalTemplate();const _0x3a0808=dirname(_0x123644);!existsSync(_0x3a0808)&&mkdirSync(_0x3a0808,{'recursive':!![]}),writeFileSync(_0x123644,_0x47e572,_0x308493(0x1eb));}export async function copyRulesToCursor(_0x2b9bc7){const _0x2b100c=a202_0x251718,_0x514f76=join(_0x2b9bc7,_0x2b100c(0x1e2)),_0x23bf59=join(_0x514f76,_0x2b100c(0x1e7));if(existsSync(_0x23bf59))return![];return await writeRulesFile(_0x23bf59),!![];}export async function copyRulesToAgentsMd(_0x1fe272){const _0x25965a=a202_0x251718,_0x206b7a=join(_0x1fe272,_0x25965a(0x1e8));if(existsSync(_0x206b7a))return![];return await writeRulesFile(_0x206b7a),!![];}
1
+ (function(_0x539367,_0x68e9c4){const _0xb5d71f=a202_0x4537,_0x881251=_0x539367();while(!![]){try{const _0x2178e9=-parseInt(_0xb5d71f(0xf6))/0x1*(parseInt(_0xb5d71f(0xed))/0x2)+parseInt(_0xb5d71f(0xea))/0x3+parseInt(_0xb5d71f(0xf2))/0x4*(parseInt(_0xb5d71f(0xe9))/0x5)+-parseInt(_0xb5d71f(0xef))/0x6+-parseInt(_0xb5d71f(0xf4))/0x7+-parseInt(_0xb5d71f(0xee))/0x8+parseInt(_0xb5d71f(0xec))/0x9*(parseInt(_0xb5d71f(0xf3))/0xa);if(_0x2178e9===_0x68e9c4)break;else _0x881251['push'](_0x881251['shift']());}catch(_0x5276fe){_0x881251['push'](_0x881251['shift']());}}}(a202_0x1c9e,0x24383));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5d84f7=getTemplateBaseUrl();return _0x5d84f7+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x4bb2b4=a202_0x4537,_0x335484=getRulesCdnUrl(),_0x39c957=await fetch(_0x335484,{'headers':{'Accept':_0x4bb2b4(0xf8)}});if(!_0x39c957['ok'])throw new Error(_0x4bb2b4(0xe8)+_0x39c957['status']+'\x20'+_0x39c957[_0x4bb2b4(0xf7)]);const _0x1a82b0=await _0x39c957[_0x4bb2b4(0xfa)]();if(!_0x1a82b0[_0x4bb2b4(0xe6)]||typeof _0x1a82b0['content']!==_0x4bb2b4(0xf5))throw new Error(_0x4bb2b4(0xeb));return _0x1a82b0;}function a202_0x4537(_0x460d90,_0x2a9788){_0x460d90=_0x460d90-0xe6;const _0x1c9e5e=a202_0x1c9e();let _0x4537b9=_0x1c9e5e[_0x460d90];return _0x4537b9;}export async function getRulesContent(){const _0x17d593=a202_0x4537;try{const _0x545e4b=await fetchRulesFromCDN();return _0x545e4b[_0x17d593(0xe6)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x42b6ff=a202_0x4537;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x42b6ff(0xf0));throw new Error(_0x42b6ff(0xfd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x24c872){const _0x53e7c4=a202_0x4537,_0x1dcd53=await fetchRulesFromCDN()[_0x53e7c4(0xfc)](()=>null);let _0x388f3e;_0x1dcd53?(_0x388f3e=_0x1dcd53[_0x53e7c4(0xe6)],_0x1dcd53[_0x53e7c4(0xf9)]&&(_0x388f3e=appendUpdateTime(_0x388f3e,_0x1dcd53[_0x53e7c4(0xf9)]))):_0x388f3e=readLocalTemplate();const _0x597a7f=dirname(_0x24c872);!existsSync(_0x597a7f)&&mkdirSync(_0x597a7f,{'recursive':!![]}),writeFileSync(_0x24c872,_0x388f3e,_0x53e7c4(0xf0));}export async function copyRulesToCursor(_0x3ccd62){const _0xd2e1bb=a202_0x4537,_0x1b6de2=join(_0x3ccd62,_0xd2e1bb(0xf1)),_0x35225f=join(_0x1b6de2,_0xd2e1bb(0xfb));if(existsSync(_0x35225f))return![];return await writeRulesFile(_0x35225f),!![];}export async function copyRulesToAgentsMd(_0xe348ee){const _0x375ef5=a202_0x4537,_0x3cd9fe=join(_0xe348ee,_0x375ef5(0xe7));if(existsSync(_0x3cd9fe))return![];return await writeRulesFile(_0x3cd9fe),!![];}function a202_0x1c9e(){const _0x1c9f8d=['catch','本地模板文件不存在:\x20','content','agents.md','CDN\x20请求失败:\x20','15rQofik','172581OdvTiL','CDN\x20返回数据格式错误','601974tJwBSc','8278FqECQx','2057160jQHCjY','1070478vnrMXZ','utf-8','.cursor/rules','316268trgRaG','100etEfyb','1411886YXUECw','string','43HUbgJb','statusText','application/json','lastUpdated','json','lovrabet_rules.mdc'];a202_0x1c9e=function(){return _0x1c9f8d;};return a202_0x1c9e();}
@@ -1 +1 @@
1
- export function sleep(_0x1e98f6){return new Promise(_0x27b697=>setTimeout(_0x27b697,_0x1e98f6));}
1
+ export function sleep(_0x4ca4d0){return new Promise(_0x5a7d0b=>setTimeout(_0x5a7d0b,_0x4ca4d0));}