@lovrabet/rabetbase-cli 2.2.0 → 2.2.1-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 (204) 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/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const a182_0x2f23cf=a182_0x5611;function a182_0x4f77(){const _0x49e70a=['rabetbase-cli','manual','logData','465789SvRyPq','848870fPsYIt','2657960MUnDjg','18jLJxeF','467915vzXGkC','9whVUDT','211410FiQUxw','140945VnRker','697720uhswMw','traceparent','76PxJpii','version','33GbDnia'];a182_0x4f77=function(){return _0x49e70a;};return a182_0x4f77();}(function(_0x3a9e54,_0x294d15){const _0x52f033=a182_0x5611,_0xee3532=_0x3a9e54();while(!![]){try{const _0x453b9f=parseInt(_0x52f033(0x183))/0x1+-parseInt(_0x52f033(0x188))/0x2+parseInt(_0x52f033(0x182))/0x3+parseInt(_0x52f033(0x18c))/0x4*(-parseInt(_0x52f033(0x189))/0x5)+-parseInt(_0x52f033(0x185))/0x6*(parseInt(_0x52f033(0x186))/0x7)+parseInt(_0x52f033(0x18a))/0x8*(-parseInt(_0x52f033(0x187))/0x9)+parseInt(_0x52f033(0x184))/0xa*(parseInt(_0x52f033(0x18e))/0xb);if(_0x453b9f===_0x294d15)break;else _0xee3532['push'](_0xee3532['shift']());}catch(_0x3327c6){_0xee3532['push'](_0xee3532['shift']());}}}(a182_0x4f77,0xd501b));function a182_0x5611(_0x47367c,_0x3354b2){_0x47367c=_0x47367c-0x182;const _0x4f7746=a182_0x4f77();let _0x561174=_0x4f7746[_0x47367c];return _0x561174;}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=a182_0x2f23cf(0x18f);export async function sendCliTraceLog(_0x355fac){const _0x846c=a182_0x2f23cf;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x355fac['traceName']??DEFAULT_TRACE_NAME,'version':_0x355fac[_0x846c(0x18d)]??getCliVersion(),'spanName':_0x355fac['spanName'],'eventType':_0x846c(0x190),'logData':_0x355fac[_0x846c(0x191)],..._0x355fac[_0x846c(0x18b)]&&{'traceparent':_0x355fac[_0x846c(0x18b)]}});}
1
+ (function(_0x389f18,_0xc32c90){const _0x4732b6=a182_0x55ee,_0x31b2cd=_0x389f18();while(!![]){try{const _0x10265e=-parseInt(_0x4732b6(0xdc))/0x1+parseInt(_0x4732b6(0xde))/0x2*(-parseInt(_0x4732b6(0xd7))/0x3)+parseInt(_0x4732b6(0xd5))/0x4*(parseInt(_0x4732b6(0xdd))/0x5)+parseInt(_0x4732b6(0xd6))/0x6*(parseInt(_0x4732b6(0xda))/0x7)+parseInt(_0x4732b6(0xd2))/0x8*(parseInt(_0x4732b6(0xd3))/0x9)+parseInt(_0x4732b6(0xd8))/0xa+-parseInt(_0x4732b6(0xd1))/0xb;if(_0x10265e===_0xc32c90)break;else _0x31b2cd['push'](_0x31b2cd['shift']());}catch(_0x2c8c3c){_0x31b2cd['push'](_0x31b2cd['shift']());}}}(a182_0x59f8,0xe6cc8));function a182_0x59f8(){const _0x4d6dfb=['5514ppgGHk','15xjsiCv','2451620DEfnAP','logData','5103gdKTUP','traceName','575118yDsShn','10GUGsBs','289826NdPGbZ','version','spanName','21740719eLVqsa','8456tVQspx','13617RKceSR','traceparent','3414220jpxlZa'];a182_0x59f8=function(){return _0x4d6dfb;};return a182_0x59f8();}import{sendTraceLog}from'@lovrabet/otel-logger';function a182_0x55ee(_0x222f43,_0x47a4e0){_0x222f43=_0x222f43-0xd0;const _0x59f88=a182_0x59f8();let _0x55eecc=_0x59f88[_0x222f43];return _0x55eecc;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x11802c){const _0x5d3984=a182_0x55ee;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x11802c[_0x5d3984(0xdb)]??DEFAULT_TRACE_NAME,'version':_0x11802c[_0x5d3984(0xdf)]??getCliVersion(),'spanName':_0x11802c[_0x5d3984(0xd0)],'eventType':'manual','logData':_0x11802c[_0x5d3984(0xd9)],..._0x11802c[_0x5d3984(0xd4)]&&{'traceparent':_0x11802c[_0x5d3984(0xd4)]}});}
@@ -1 +1 @@
1
- const a183_0x221bb1=a183_0x3fad;(function(_0x74fae8,_0x3e2541){const _0x273c73=a183_0x3fad,_0x344eea=_0x74fae8();while(!![]){try{const _0x5bce1e=-parseInt(_0x273c73(0xb0))/0x1+parseInt(_0x273c73(0xa8))/0x2*(-parseInt(_0x273c73(0xaa))/0x3)+parseInt(_0x273c73(0xa1))/0x4*(parseInt(_0x273c73(0xa2))/0x5)+-parseInt(_0x273c73(0xa5))/0x6+-parseInt(_0x273c73(0xac))/0x7*(parseInt(_0x273c73(0xa9))/0x8)+parseInt(_0x273c73(0xa4))/0x9*(parseInt(_0x273c73(0xae))/0xa)+parseInt(_0x273c73(0xa6))/0xb*(parseInt(_0x273c73(0xab))/0xc);if(_0x5bce1e===_0x3e2541)break;else _0x344eea['push'](_0x344eea['shift']());}catch(_0x5586f5){_0x344eea['push'](_0x344eea['shift']());}}}(a183_0x40c6,0xbbd0d));function a183_0x40c6(){const _0x1f593e=['7329354pLcIZt','156739lmHZbx','redactionCount','27154StAAma','76600yebUva','216SlunbG','3252nRIfHw','777XlVHwR','redactionKinds','1885310KmQjUx','truncated','1486228oceglz','join','issue.log.collect','sanitize','platform-issue-log-collect','title','4lHVAcU','7337195BinqPS','originalBytes','9jUuxFO'];a183_0x40c6=function(){return _0x1f593e;};return a183_0x40c6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0x3fad(_0x262275,_0x48ffee){_0x262275=_0x262275-0x9c;const _0x40c669=a183_0x40c6();let _0x3fadf9=_0x40c669[_0x262275];return _0x3fadf9;}export const PLATFORM_ISSUE_TRACE_NAME=a183_0x221bb1(0x9f);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x221bb1(0x9d);export async function sendPlatformIssueCollectLog(_0xf8dfb1){const _0x26783f=a183_0x221bb1;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xf8dfb1[_0x26783f(0xa0)],'issue.description':_0xf8dfb1['description'],..._0xf8dfb1[_0x26783f(0x9e)]?{'issue.description_original_bytes':_0xf8dfb1['sanitize'][_0x26783f(0xa3)],'issue.description_truncated':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xaf)],'issue.description_redactions':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xa7)],'issue.description_redaction_kinds':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xad)][_0x26783f(0x9c)](',')}:{}}});}
1
+ function a183_0x1850(_0x359133,_0x2b4e7b){_0x359133=_0x359133-0xde;const _0x3a717a=a183_0x3a71();let _0x1850d1=_0x3a717a[_0x359133];return _0x1850d1;}const a183_0x33ceb6=a183_0x1850;(function(_0x4ee8e4,_0x2bcba7){const _0x5015bb=a183_0x1850,_0x1ea6fb=_0x4ee8e4();while(!![]){try{const _0x367911=-parseInt(_0x5015bb(0xe8))/0x1*(-parseInt(_0x5015bb(0xe6))/0x2)+-parseInt(_0x5015bb(0xe7))/0x3*(parseInt(_0x5015bb(0xde))/0x4)+parseInt(_0x5015bb(0xec))/0x5+parseInt(_0x5015bb(0xed))/0x6+parseInt(_0x5015bb(0xe4))/0x7+parseInt(_0x5015bb(0xe1))/0x8*(-parseInt(_0x5015bb(0xeb))/0x9)+-parseInt(_0x5015bb(0xea))/0xa;if(_0x367911===_0x2bcba7)break;else _0x1ea6fb['push'](_0x1ea6fb['shift']());}catch(_0x1c4cda){_0x1ea6fb['push'](_0x1ea6fb['shift']());}}}(a183_0x3a71,0x43fd5));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a183_0x33ceb6(0xe2);function a183_0x3a71(){const _0x26852c=['truncated','4921180XsbuRR','1071396NAsjfM','1754045ZyuQZf','992820vGhBdo','sanitize','join','redactionKinds','28BvwZtz','issue.log.collect','redactionCount','16RrIWmw','platform-issue-log-collect','title','3130302UCYqmQ','originalBytes','21082nVAZfB','111627MMjYny','29XxyLcn'];a183_0x3a71=function(){return _0x26852c;};return a183_0x3a71();}export const PLATFORM_ISSUE_SPAN_NAME=a183_0x33ceb6(0xdf);export async function sendPlatformIssueCollectLog(_0xcd01db){const _0x2a99a3=a183_0x33ceb6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xcd01db[_0x2a99a3(0xe3)],'issue.description':_0xcd01db['description'],..._0xcd01db[_0x2a99a3(0xee)]?{'issue.description_original_bytes':_0xcd01db[_0x2a99a3(0xee)][_0x2a99a3(0xe5)],'issue.description_truncated':_0xcd01db[_0x2a99a3(0xee)][_0x2a99a3(0xe9)],'issue.description_redactions':_0xcd01db[_0x2a99a3(0xee)][_0x2a99a3(0xe0)],'issue.description_redaction_kinds':_0xcd01db[_0x2a99a3(0xee)][_0x2a99a3(0xf0)][_0x2a99a3(0xef)](',')}:{}}});}
@@ -1 +1 @@
1
- const a185_0x5bdafa=a185_0x31da;(function(_0x3dbde2,_0xea6095){const _0x5a8a75=a185_0x31da,_0x6b12b6=_0x3dbde2();while(!![]){try{const _0x2b71fc=parseInt(_0x5a8a75(0x15c))/0x1*(parseInt(_0x5a8a75(0x17b))/0x2)+-parseInt(_0x5a8a75(0x165))/0x3*(-parseInt(_0x5a8a75(0x163))/0x4)+-parseInt(_0x5a8a75(0x149))/0x5+-parseInt(_0x5a8a75(0x152))/0x6+parseInt(_0x5a8a75(0x15d))/0x7*(-parseInt(_0x5a8a75(0x167))/0x8)+parseInt(_0x5a8a75(0x15b))/0x9+parseInt(_0x5a8a75(0x16d))/0xa*(parseInt(_0x5a8a75(0x17d))/0xb);if(_0x2b71fc===_0xea6095)break;else _0x6b12b6['push'](_0x6b12b6['shift']());}catch(_0x26a23e){_0x6b12b6['push'](_0x6b12b6['shift']());}}}(a185_0xc241,0x2891d));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x5bdafa(0x179),'description':'Cursor\x20IDE','folders':[a185_0x5bdafa(0x160),a185_0x5bdafa(0x161)],'files':[{'type':'file','path':a185_0x5bdafa(0x155),'template':a185_0x5bdafa(0x173)}]},'windsurf':{'name':'Windsurf','description':a185_0x5bdafa(0x150),'folders':[a185_0x5bdafa(0x181)],'files':[{'type':'file','path':a185_0x5bdafa(0x170),'template':'SKILL.md.tpl'}]},'claude':{'name':a185_0x5bdafa(0x16f),'description':a185_0x5bdafa(0x16f),'folders':[a185_0x5bdafa(0x162)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x14c),'template':'SKILL.md.tpl'}]},'cline':{'name':a185_0x5bdafa(0x153),'description':'Cline\x20IDE','folders':[a185_0x5bdafa(0x172)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x171),'template':a185_0x5bdafa(0x173)}]},'codex':{'name':'Codex','description':a185_0x5bdafa(0x157),'folders':[a185_0x5bdafa(0x164)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x180),'template':a185_0x5bdafa(0x173)}]},'opencode':{'name':a185_0x5bdafa(0x17f),'description':a185_0x5bdafa(0x16a),'folders':[a185_0x5bdafa(0x16c)],'files':[{'type':a185_0x5bdafa(0x156),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a185_0x5bdafa(0x17e),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a185_0x5bdafa(0x176),'template':a185_0x5bdafa(0x173)},{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x16b),'template':a185_0x5bdafa(0x173)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x5bdafa(0x14b),'folders':['.codebuddy'],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x15a),'template':a185_0x5bdafa(0x173)}]},'trae':{'name':a185_0x5bdafa(0x174),'description':a185_0x5bdafa(0x177),'folders':[a185_0x5bdafa(0x17c)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x17a),'template':a185_0x5bdafa(0x173)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x5bdafa(0x14f),'description':a185_0x5bdafa(0x169),'folders':['.agent'],'files':[{'type':a185_0x5bdafa(0x156),'path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]},'antigravity':{'name':a185_0x5bdafa(0x158),'description':a185_0x5bdafa(0x151),'folders':[a185_0x5bdafa(0x178)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]}};function a185_0x31da(_0x1dec50,_0x544176){_0x1dec50=_0x1dec50-0x149;const _0xc241a9=a185_0xc241();let _0x31dabc=_0xc241a9[_0x1dec50];return _0x31dabc;}export const CORE_IDE_LIST=[a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),'codex',a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),a185_0x5bdafa(0x14a)];export const IDE_LIST=[a185_0x5bdafa(0x168),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),a185_0x5bdafa(0x15f),a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),'windsurf',a185_0x5bdafa(0x159)];export const ALL_CORE_IDES=[a185_0x5bdafa(0x166),a185_0x5bdafa(0x14a),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15f),'opencode',a185_0x5bdafa(0x175),a185_0x5bdafa(0x15e),'trae'];function a185_0xc241(){const _0x276d12=['.cursor','.claude','51012SerbzE','.codex','9VpyUne','cursor','1237928nLSCQj','antigravity','通用模板\x20-\x20兜底方案','OpenCode\x20IDE','.qoder/skills/lovrabet/SKILL.md','.opencode','6856390rdSUvJ','opencode','Claude\x20Code','.windsurf/workflows/rabetbase.md','.cline/skills/lovrabet/SKILL.md','.cline','SKILL.md.tpl','Trae','qoder','.qoder/rules/rabetbase.md','Trae\x20IDE','.agent','Cursor','.trae/skills/lovrabet/SKILL.md','10qgopHB','.trae','11nMygSw','Qoder','OpenCode','.codex/skills/lovrabet/SKILL.md','.windsurf','1073000GXXOUP','windsurf','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','trae','cline','其他\x20(通用模板)','Windsurf\x20IDE','Antigravity\x20IDE','1954494ahDVFD','Cline','claude','.cursor/skills/rabetbase.md','file','Codex\x20IDE','Antigravity','agent','.codebuddy/skills/lovrabet/SKILL.md','612630ZFHMyH','13859Rieumt','7mUxNap','codebuddy','codex','.cursorrules'];a185_0xc241=function(){return _0x276d12;};return a185_0xc241();}
1
+ const a185_0x538c47=a185_0x3348;(function(_0x466e6e,_0x30ef2c){const _0x22fbba=a185_0x3348,_0x54b08a=_0x466e6e();while(!![]){try{const _0xb98a81=-parseInt(_0x22fbba(0x9f))/0x1+parseInt(_0x22fbba(0xca))/0x2+parseInt(_0x22fbba(0xa7))/0x3+parseInt(_0x22fbba(0xbf))/0x4+-parseInt(_0x22fbba(0xb3))/0x5*(-parseInt(_0x22fbba(0xd0))/0x6)+parseInt(_0x22fbba(0xb6))/0x7+parseInt(_0x22fbba(0xac))/0x8*(-parseInt(_0x22fbba(0xbd))/0x9);if(_0xb98a81===_0x30ef2c)break;else _0x54b08a['push'](_0x54b08a['shift']());}catch(_0x289e6a){_0x54b08a['push'](_0x54b08a['shift']());}}}(a185_0x2045,0x95ea5));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x538c47(0xc1),'description':'Cursor\x20IDE','folders':['.cursorrules',a185_0x538c47(0xd5)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xa6),'template':a185_0x538c47(0xcf)}]},'windsurf':{'name':a185_0x538c47(0xc9),'description':a185_0x538c47(0xba),'folders':[a185_0x538c47(0xaa)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xd6),'template':'SKILL.md.tpl'}]},'claude':{'name':a185_0x538c47(0xaf),'description':a185_0x538c47(0xaf),'folders':['.claude'],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xcc),'template':a185_0x538c47(0xcf)}]},'cline':{'name':'Cline','description':a185_0x538c47(0xa3),'folders':['.cline'],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xa8),'template':'SKILL.md.tpl'}]},'codex':{'name':a185_0x538c47(0xbb),'description':a185_0x538c47(0xd2),'folders':[a185_0x538c47(0xb2)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xa4),'template':a185_0x538c47(0xcf)}]},'opencode':{'name':a185_0x538c47(0xc6),'description':a185_0x538c47(0xa1),'folders':[a185_0x538c47(0xa2)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xbc),'template':a185_0x538c47(0xcf)}]},'qoder':{'name':a185_0x538c47(0xc5),'description':a185_0x538c47(0xa5),'folders':[a185_0x538c47(0xad)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xb5),'template':a185_0x538c47(0xcf)},{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xc0),'template':a185_0x538c47(0xcf)}]},'codebuddy':{'name':a185_0x538c47(0xa9),'description':a185_0x538c47(0xd1),'folders':[a185_0x538c47(0xae)],'files':[{'type':a185_0x538c47(0xcd),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a185_0x538c47(0xcf)}]},'trae':{'name':a185_0x538c47(0xcb),'description':'Trae\x20IDE','folders':[a185_0x538c47(0xc2)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xd4),'template':a185_0x538c47(0xcf)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x538c47(0xc4),'description':a185_0x538c47(0xa0),'folders':['.agent'],'files':[{'type':'file','path':a185_0x538c47(0xb9),'template':a185_0x538c47(0xcf)}]},'antigravity':{'name':a185_0x538c47(0xb1),'description':a185_0x538c47(0xb0),'folders':[a185_0x538c47(0xc3)],'files':[{'type':a185_0x538c47(0xcd),'path':a185_0x538c47(0xb9),'template':'SKILL.md.tpl'}]}};function a185_0x3348(_0x5733c0,_0x3223eb){_0x5733c0=_0x5733c0-0x9e;const _0x2045bf=a185_0x2045();let _0x3348ab=_0x2045bf[_0x5733c0];return _0x3348ab;}export const CORE_IDE_LIST=[a185_0x538c47(0xab),'cline',a185_0x538c47(0x9e),a185_0x538c47(0xd7),'cursor',a185_0x538c47(0xc7),a185_0x538c47(0xce),a185_0x538c47(0xb4),a185_0x538c47(0xbe)];export const IDE_LIST=[a185_0x538c47(0xd3),a185_0x538c47(0xab),'cline',a185_0x538c47(0x9e),a185_0x538c47(0xd7),a185_0x538c47(0xb7),a185_0x538c47(0xc7),a185_0x538c47(0xce),'trae',a185_0x538c47(0xbe),a185_0x538c47(0xb8)];function a185_0x2045(){const _0xedff38=['.qoder/skills/lovrabet/SKILL.md','Cursor','.trae','.agent','其他\x20(通用模板)','Qoder','OpenCode','opencode','cline','Windsurf','1053180Fkfeuw','Trae','.claude/skills/lovrabet/SKILL.md','file','qoder','SKILL.md.tpl','186kWvYLr','CodeBuddy\x20IDE','Codex\x20IDE','antigravity','.trae/skills/lovrabet/SKILL.md','.cursor','.windsurf/workflows/rabetbase.md','codex','codebuddy','344076kEgEgw','通用模板\x20-\x20兜底方案','OpenCode\x20IDE','.opencode','Cline\x20IDE','.codex/skills/lovrabet/SKILL.md','Qoder\x20IDE','.cursor/skills/rabetbase.md','1806000QJXMsI','.cline/skills/lovrabet/SKILL.md','CodeBuddy','.windsurf','claude','8eBjuCE','.qoder','.codebuddy','Claude\x20Code','Antigravity\x20IDE','Antigravity','.codex','5155zOYiyJ','trae','.qoder/rules/rabetbase.md','8213373oGrGSK','cursor','agent','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','Codex','.opencode/skills/lovrabet/SKILL.md','19182195lfNgzv','windsurf','3022376FrUwmY'];a185_0x2045=function(){return _0xedff38;};return a185_0x2045();}export const ALL_CORE_IDES=[a185_0x538c47(0xb7),a185_0x538c47(0xbe),a185_0x538c47(0xab),a185_0x538c47(0xc8),a185_0x538c47(0xd7),a185_0x538c47(0xc7),a185_0x538c47(0xce),'codebuddy',a185_0x538c47(0xb4)];
@@ -1 +1 @@
1
- function a186_0x1404(){const _0x80fe32=['4469208DZGAXJ','70UEbEPi','80991IyHsnP','508990kimmYG','2186478zwCQVE','4911726BXkHHd','5LyxZrB','5016612xacPRP','808CaWBCF','4323847zrEMcT','5PvywEn'];a186_0x1404=function(){return _0x80fe32;};return a186_0x1404();}(function(_0x11d1e7,_0x50e000){const _0x2a215b=a186_0x3797,_0x1693d8=_0x11d1e7();while(!![]){try{const _0x48c747=parseInt(_0x2a215b(0x198))/0x1*(-parseInt(_0x2a215b(0x19c))/0x2)+-parseInt(_0x2a215b(0x199))/0x3+parseInt(_0x2a215b(0x195))/0x4*(parseInt(_0x2a215b(0x19f))/0x5)+parseInt(_0x2a215b(0x19e))/0x6+-parseInt(_0x2a215b(0x19d))/0x7+-parseInt(_0x2a215b(0x196))/0x8*(parseInt(_0x2a215b(0x19b))/0x9)+-parseInt(_0x2a215b(0x19a))/0xa*(-parseInt(_0x2a215b(0x197))/0xb);if(_0x48c747===_0x50e000)break;else _0x1693d8['push'](_0x1693d8['shift']());}catch(_0x68c9e1){_0x1693d8['push'](_0x1693d8['shift']());}}}(a186_0x1404,0xcd491));function a186_0x3797(_0x9cd1d5,_0x4cdacd){_0x9cd1d5=_0x9cd1d5-0x195;const _0x1404b9=a186_0x1404();let _0x379708=_0x1404b9[_0x9cd1d5];return _0x379708;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x21efe2,_0x495f09){const _0x38cc10=a186_0x3780,_0x136fc0=_0x21efe2();while(!![]){try{const _0x268492=parseInt(_0x38cc10(0xb3))/0x1*(parseInt(_0x38cc10(0xac))/0x2)+-parseInt(_0x38cc10(0xae))/0x3*(parseInt(_0x38cc10(0xab))/0x4)+-parseInt(_0x38cc10(0xaa))/0x5+-parseInt(_0x38cc10(0xad))/0x6+-parseInt(_0x38cc10(0xb2))/0x7*(parseInt(_0x38cc10(0xaf))/0x8)+-parseInt(_0x38cc10(0xb1))/0x9+parseInt(_0x38cc10(0xb0))/0xa;if(_0x268492===_0x495f09)break;else _0x136fc0['push'](_0x136fc0['shift']());}catch(_0x292ffd){_0x136fc0['push'](_0x136fc0['shift']());}}}(a186_0x9d17,0x860db));function a186_0x9d17(){const _0x38ad79=['1364CjPVsn','16DJvokF','4372662JiokwY','8313aOteVD','8BUSzck','35872910YCCEbI','5696127rAuJJM','6450591XoUUJb','53837DYchCD','1204000ErVFsR'];a186_0x9d17=function(){return _0x38ad79;};return a186_0x9d17();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a186_0x3780(_0x28414b,_0x169968){_0x28414b=_0x28414b-0xaa;const _0x9d171f=a186_0x9d17();let _0x3780e4=_0x9d171f[_0x28414b];return _0x3780e4;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x359b52,_0x472bd2){const _0x3d2cb7=a187_0x1ab5,_0x42d477=_0x359b52();while(!![]){try{const _0x5c4759=parseInt(_0x3d2cb7(0x176))/0x1+-parseInt(_0x3d2cb7(0x175))/0x2+parseInt(_0x3d2cb7(0x17a))/0x3*(parseInt(_0x3d2cb7(0x174))/0x4)+parseInt(_0x3d2cb7(0x170))/0x5+-parseInt(_0x3d2cb7(0x179))/0x6+-parseInt(_0x3d2cb7(0x16e))/0x7+parseInt(_0x3d2cb7(0x16f))/0x8;if(_0x5c4759===_0x472bd2)break;else _0x42d477['push'](_0x42d477['shift']());}catch(_0xf5476d){_0x42d477['push'](_0x42d477['shift']());}}}(a187_0x4f71,0x77797));import{getTemplateBaseUrl}from'../utils/config.js';function a187_0x1ab5(_0x5803b6,_0x193614){_0x5803b6=_0x5803b6-0x16e;const _0x4f719d=a187_0x4f71();let _0x1ab551=_0x4f719d[_0x5803b6];return _0x1ab551;}export async function fetchCdnConfig(){const _0x5232af=a187_0x1ab5,_0x1305a4=getTemplateBaseUrl(),_0x4a179d=[_0x1305a4+'/config.json',_0x1305a4+_0x5232af(0x177)];for(const _0x4486ad of _0x4a179d){try{const _0x47e8fe=await fetch(_0x4486ad,{'headers':{'Accept':'application/json'}});if(!_0x47e8fe['ok'])continue;const _0x2bd0c6=await _0x47e8fe[_0x5232af(0x173)]();if(!_0x2bd0c6[_0x5232af(0x172)]?.[_0x5232af(0x178)]||!_0x2bd0c6['sdk']?.['node']?.[_0x5232af(0x178)])continue;return _0x2bd0c6;}catch{}}return null;}function a187_0x4f71(){const _0xe50a3a=['cli','json','1043180WFhATL','1892420kOVhhh','948004Nspwlo','/config/index.json','stableVersion','3277890NIIWja','9ecfccu','4478180GIplMA','2255320bIzLyA','3046640KPkGjO','now'];a187_0x4f71=function(){return _0xe50a3a;};return a187_0x4f71();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x207a06=a187_0x1ab5,_0x65731a=Date[_0x207a06(0x171)]();if(hasCachedConfig){const _0x27976c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x65731a-cacheTime<_0x27976c)return cachedConfig;}const _0xa4ebc0=await fetchCdnConfig();return cachedConfig=_0xa4ebc0,cacheTime=_0x65731a,hasCachedConfig=!![],_0xa4ebc0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x8b2e01,_0x418bc1){const _0x3172ff=a187_0x2153,_0x45efab=_0x8b2e01();while(!![]){try{const _0x21cc96=-parseInt(_0x3172ff(0x133))/0x1+parseInt(_0x3172ff(0x13b))/0x2*(-parseInt(_0x3172ff(0x12e))/0x3)+-parseInt(_0x3172ff(0x139))/0x4*(parseInt(_0x3172ff(0x137))/0x5)+parseInt(_0x3172ff(0x131))/0x6+-parseInt(_0x3172ff(0x136))/0x7+parseInt(_0x3172ff(0x132))/0x8+parseInt(_0x3172ff(0x138))/0x9*(parseInt(_0x3172ff(0x135))/0xa);if(_0x21cc96===_0x418bc1)break;else _0x45efab['push'](_0x45efab['shift']());}catch(_0x3cd8cf){_0x45efab['push'](_0x45efab['shift']());}}}(a187_0x4b72,0xf3932));function a187_0x2153(_0x2d3887,_0x4c4627){_0x2d3887=_0x2d3887-0x12e;const _0x4b7226=a187_0x4b72();let _0x2153d5=_0x4b7226[_0x2d3887];return _0x2153d5;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x221bf4=a187_0x2153,_0x951c21=getTemplateBaseUrl(),_0x35b8e3=[_0x951c21+_0x221bf4(0x134),_0x951c21+_0x221bf4(0x13a)];for(const _0x594b22 of _0x35b8e3){try{const _0x4301a5=await fetch(_0x594b22,{'headers':{'Accept':'application/json'}});if(!_0x4301a5['ok'])continue;const _0xe599e4=await _0x4301a5[_0x221bf4(0x13c)]();if(!_0xe599e4['cli']?.[_0x221bf4(0x130)]||!_0xe599e4[_0x221bf4(0x12f)]?.[_0x221bf4(0x13e)]?.[_0x221bf4(0x130)])continue;return _0xe599e4;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x4b72(){const _0x2fe427=['10097658IrGzKj','12157000TuQTLi','624082eyhMem','/config.json','3408470SgflEQ','5528404TDRTPy','70SGDROq','9kdCrtI','307028oQjJYB','/config/index.json','114562iPVisg','json','now','node','3cnLXhm','sdk','stableVersion'];a187_0x4b72=function(){return _0x2fe427;};return a187_0x4b72();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x21883d=a187_0x2153,_0x3de344=Date[_0x21883d(0x13d)]();if(hasCachedConfig){const _0x7b94ac=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3de344-cacheTime<_0x7b94ac)return cachedConfig;}const _0x2133ca=await fetchCdnConfig();return cachedConfig=_0x2133ca,cacheTime=_0x3de344,hasCachedConfig=!![],_0x2133ca;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a188_0x3d9834=a188_0x21d5;(function(_0x391159,_0x1a1bc4){const _0x4ca2a9=a188_0x21d5,_0x1eb0b6=_0x391159();while(!![]){try{const _0x3179bf=parseInt(_0x4ca2a9(0x16f))/0x1*(parseInt(_0x4ca2a9(0x17b))/0x2)+parseInt(_0x4ca2a9(0x179))/0x3+-parseInt(_0x4ca2a9(0x17d))/0x4*(-parseInt(_0x4ca2a9(0x17e))/0x5)+parseInt(_0x4ca2a9(0x178))/0x6*(-parseInt(_0x4ca2a9(0x189))/0x7)+-parseInt(_0x4ca2a9(0x172))/0x8*(-parseInt(_0x4ca2a9(0x18e))/0x9)+parseInt(_0x4ca2a9(0x18d))/0xa*(-parseInt(_0x4ca2a9(0x190))/0xb)+-parseInt(_0x4ca2a9(0x182))/0xc*(parseInt(_0x4ca2a9(0x185))/0xd);if(_0x3179bf===_0x1a1bc4)break;else _0x1eb0b6['push'](_0x1eb0b6['shift']());}catch(_0x5c2f57){_0x1eb0b6['push'](_0x1eb0b6['shift']());}}}(a188_0x5641,0x3217f));import a188_0x3ba592 from'node:fs';import a188_0x2e4a9a from'node:path';import a188_0x5d25f6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x3d9834(0x18f);function isNonNumericVersion(_0x3a47b6){const _0x211004=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x211004['some'](_0x2c20f7=>_0x2c20f7['test'](_0x3a47b6));}function getInstalledVersion(_0x4d11d,_0x485148){const _0x237ab1=a188_0x3d9834;try{const _0x404291=a188_0x2e4a9a['join'](_0x4d11d,'node_modules',_0x485148,_0x237ab1(0x17c));if(a188_0x3ba592[_0x237ab1(0x174)](_0x404291)){const _0x448b09=JSON[_0x237ab1(0x186)](a188_0x3ba592[_0x237ab1(0x184)](_0x404291,_0x237ab1(0x177)));return _0x448b09[_0x237ab1(0x176)]||null;}}catch{}return null;}function a188_0x5641(){const _0x388912=['636845VpkdWa','\x1b[33m','minVersion','@lovrabet/sdk','415716sRDFhV','devDependencies','readFileSync','91AESSYD','parse','\x1b[0m','latest','84qQfLZJ','utf8','all','stableVersion','9280ZxksLB','45ztbLjr','1.2.0','3091NtnvOY','\x20\x20\x20Upgrade\x20command:\x20','join','needsUpgrade','sdk','4ObRKjt','packageName','npm\x20install\x20','147472cglsLb','coerce','existsSync','dependencies','version','utf-8','25770hLIfvd','109800EdqcZP','log','188242OUbPrp','package.json','8vtGupS'];a188_0x5641=function(){return _0x388912;};return a188_0x5641();}async function getSdkStableVersion(){const _0x62b0f6=a188_0x3d9834;try{const _0x1e5b90=await getCdnConfig();return _0x1e5b90?.['sdk']?.['node']?.[_0x62b0f6(0x18c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x594d0b=a188_0x3d9834;try{const _0x5233fa=await getCdnConfig();return _0x5233fa?.[_0x594d0b(0x16e)]?.['node']?.[_0x594d0b(0x170)]||_0x594d0b(0x181);}catch{return _0x594d0b(0x181);}}function a188_0x21d5(_0x1d76cf,_0x3e8c5c){_0x1d76cf=_0x1d76cf-0x16e;const _0x564160=a188_0x5641();let _0x21d583=_0x564160[_0x1d76cf];return _0x21d583;}export async function checkSdkVersion(_0x1299a3){const _0x47310f=a188_0x3d9834,_0x5098ca=a188_0x2e4a9a[_0x47310f(0x192)](_0x1299a3,'package.json'),[_0x1cc9d6,_0x56fa59]=await Promise[_0x47310f(0x18b)]([getSdkStableVersion(),getSdkPackageName()]),_0x27fd19=_0x1cc9d6||FALLBACK_MIN_SDK_VERSION;if(!a188_0x3ba592[_0x47310f(0x174)](_0x5098ca))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};try{const _0x5263fd=JSON['parse'](a188_0x3ba592[_0x47310f(0x184)](_0x5098ca,_0x47310f(0x18a))),_0x20274e=_0x5263fd[_0x47310f(0x175)]||{},_0x4659a9=_0x5263fd[_0x47310f(0x183)]||{},_0x81673=_0x20274e[_0x56fa59]||_0x4659a9[_0x56fa59];if(!_0x81673)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};let _0x4419ff=getInstalledVersion(_0x1299a3,_0x56fa59);!_0x4419ff&&(_0x4419ff=_0x81673);if(isNonNumericVersion(_0x81673))return{'installed':!![],'version':_0x4419ff,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};const _0x127f82=a188_0x5d25f6['coerce'](_0x4419ff),_0x697588=a188_0x5d25f6[_0x47310f(0x173)](_0x27fd19),_0x432a42=_0x127f82&&_0x697588?a188_0x5d25f6['lt'](_0x127f82,_0x697588):![];return{'installed':!![],'version':_0x4419ff,'needsUpgrade':_0x432a42,'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}}export function checkSdkVersionSync(_0x10c983){const _0x4d9467=a188_0x3d9834,_0x23cd77=a188_0x2e4a9a[_0x4d9467(0x192)](_0x10c983,'package.json'),_0x343d63=_0x4d9467(0x181);if(!a188_0x3ba592[_0x4d9467(0x174)](_0x23cd77))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};try{const _0x309f8b=JSON['parse'](a188_0x3ba592['readFileSync'](_0x23cd77,_0x4d9467(0x18a))),_0x51d55e=_0x309f8b[_0x4d9467(0x175)]||{},_0x196042=_0x309f8b['devDependencies']||{},_0x2ec742=_0x51d55e[_0x343d63]||_0x196042[_0x343d63];if(!_0x2ec742)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};let _0x53d6dd=getInstalledVersion(_0x10c983,_0x343d63);!_0x53d6dd&&(_0x53d6dd=_0x2ec742);if(isNonNumericVersion(_0x2ec742))return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};const _0xf67656=a188_0x5d25f6[_0x4d9467(0x173)](_0x53d6dd),_0xa5ce6f=_0xf67656?a188_0x5d25f6['lt'](_0xf67656,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':_0xa5ce6f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1e4fca){const _0x35a352=a188_0x3d9834;if(!_0x1e4fca[_0x35a352(0x193)])return;const _0x48519d=_0x35a352(0x17f),_0x40e2fb=_0x35a352(0x187),_0x160a52='\x1b[1m',_0x5d47d3=_0x1e4fca[_0x35a352(0x170)]||'@lovrabet/sdk',_0x19c397=_0x1e4fca[_0x35a352(0x18c)]||_0x1e4fca[_0x35a352(0x180)],_0x550d9b=_0x35a352(0x171)+_0x5d47d3+'@'+(_0x19c397||_0x35a352(0x188));console[_0x35a352(0x17a)](),console[_0x35a352(0x17a)](''+_0x48519d+_0x160a52+'↪\x20SDK\x20update\x20available'+_0x40e2fb),console['log'](_0x48519d+'\x20\x20\x20Current\x20version:\x20'+_0x5d47d3+'@'+_0x1e4fca['version']+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+'\x20\x20\x20Stable\x20version:\x20'+_0x19c397+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+_0x35a352(0x191)+_0x550d9b+_0x40e2fb),console['log']();}
1
+ const a188_0x4db669=a188_0x1f77;(function(_0x2fe6f0,_0x104450){const _0x47f24b=a188_0x1f77,_0x5dcc2b=_0x2fe6f0();while(!![]){try{const _0x32d1f5=-parseInt(_0x47f24b(0x209))/0x1*(-parseInt(_0x47f24b(0x211))/0x2)+parseInt(_0x47f24b(0x1fd))/0x3+-parseInt(_0x47f24b(0x1f5))/0x4+-parseInt(_0x47f24b(0x1fa))/0x5+parseInt(_0x47f24b(0x1f4))/0x6*(parseInt(_0x47f24b(0x1f2))/0x7)+parseInt(_0x47f24b(0x212))/0x8+-parseInt(_0x47f24b(0x1f9))/0x9;if(_0x32d1f5===_0x104450)break;else _0x5dcc2b['push'](_0x5dcc2b['shift']());}catch(_0x58398c){_0x5dcc2b['push'](_0x5dcc2b['shift']());}}}(a188_0x16c3,0x7aa68));import a188_0x215cd5 from'node:fs';function a188_0x16c3(){const _0x214988=['9018CPQsRX','1180628EVzpoy','@lovrabet/sdk','test','\x20\x20\x20Current\x20version:\x20','10173438uriUcy','1009555aDbNbU','join','node_modules','638565PnlySn','\x1b[1m','coerce','package.json','parse','log','devDependencies','existsSync','minVersion','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','188pmXWRH','sdk','1.2.0','all','dependencies','packageName','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','7748pFMqQM','2643568PCqdei','utf-8','readFileSync','latest','node','utf8','3997sfiSXH','npm\x20install\x20'];a188_0x16c3=function(){return _0x214988;};return a188_0x16c3();}import a188_0xa07ff9 from'node:path';import a188_0x158a77 from'semver';function a188_0x1f77(_0x8cfe17,_0x1f13f6){_0x8cfe17=_0x8cfe17-0x1f0;const _0x16c3fc=a188_0x16c3();let _0x1f77b5=_0x16c3fc[_0x8cfe17];return _0x1f77b5;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x4db669(0x20b);function isNonNumericVersion(_0x654934){const _0x78e5d3=a188_0x4db669,_0x1e414b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1e414b['some'](_0x2e3433=>_0x2e3433[_0x78e5d3(0x1f7)](_0x654934));}function getInstalledVersion(_0x40ba08,_0x307cf3){const _0x12ed70=a188_0x4db669;try{const _0x1852ca=a188_0xa07ff9['join'](_0x40ba08,_0x12ed70(0x1fc),_0x307cf3,_0x12ed70(0x200));if(a188_0x215cd5['existsSync'](_0x1852ca)){const _0x57d6a7=JSON['parse'](a188_0x215cd5[_0x12ed70(0x214)](_0x1852ca,_0x12ed70(0x213)));return _0x57d6a7['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x15be3=a188_0x4db669;try{const _0x42bd2e=await getCdnConfig();return _0x42bd2e?.[_0x15be3(0x20a)]?.[_0x15be3(0x1f0)]?.[_0x15be3(0x208)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x273022=a188_0x4db669;try{const _0x42b7d6=await getCdnConfig();return _0x42b7d6?.['sdk']?.[_0x273022(0x1f0)]?.[_0x273022(0x20e)]||_0x273022(0x1f6);}catch{return _0x273022(0x1f6);}}export async function checkSdkVersion(_0x12f676){const _0x12680b=a188_0x4db669,_0x18de4d=a188_0xa07ff9[_0x12680b(0x1fb)](_0x12f676,_0x12680b(0x200)),[_0x3c15c9,_0x5f32ae]=await Promise[_0x12680b(0x20c)]([getSdkStableVersion(),getSdkPackageName()]),_0x4e35d0=_0x3c15c9||FALLBACK_MIN_SDK_VERSION;if(!a188_0x215cd5[_0x12680b(0x204)](_0x18de4d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e35d0,'packageName':_0x5f32ae,'stableVersion':_0x3c15c9};try{const _0x396ee7=JSON[_0x12680b(0x201)](a188_0x215cd5['readFileSync'](_0x18de4d,_0x12680b(0x1f1))),_0x3e9ddc=_0x396ee7[_0x12680b(0x20d)]||{},_0x2f5149=_0x396ee7[_0x12680b(0x203)]||{},_0x3b72bc=_0x3e9ddc[_0x5f32ae]||_0x2f5149[_0x5f32ae];if(!_0x3b72bc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e35d0,'packageName':_0x5f32ae,'stableVersion':_0x3c15c9};let _0x92073a=getInstalledVersion(_0x12f676,_0x5f32ae);!_0x92073a&&(_0x92073a=_0x3b72bc);if(isNonNumericVersion(_0x3b72bc))return{'installed':!![],'version':_0x92073a,'needsUpgrade':![],'minVersion':_0x4e35d0,'packageName':_0x5f32ae,'stableVersion':_0x3c15c9};const _0x2e8dd8=a188_0x158a77[_0x12680b(0x1ff)](_0x92073a),_0x454467=a188_0x158a77[_0x12680b(0x1ff)](_0x4e35d0),_0x22a1f4=_0x2e8dd8&&_0x454467?a188_0x158a77['lt'](_0x2e8dd8,_0x454467):![];return{'installed':!![],'version':_0x92073a,'needsUpgrade':_0x22a1f4,'minVersion':_0x4e35d0,'packageName':_0x5f32ae,'stableVersion':_0x3c15c9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e35d0,'packageName':_0x5f32ae,'stableVersion':_0x3c15c9};}}export function checkSdkVersionSync(_0x162890){const _0x416434=a188_0x4db669,_0x49f52e=a188_0xa07ff9[_0x416434(0x1fb)](_0x162890,_0x416434(0x200)),_0x34adcb=_0x416434(0x1f6);if(!a188_0x215cd5[_0x416434(0x204)](_0x49f52e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34adcb,'stableVersion':null};try{const _0x49ad52=JSON[_0x416434(0x201)](a188_0x215cd5[_0x416434(0x214)](_0x49f52e,_0x416434(0x1f1))),_0x11dca5=_0x49ad52[_0x416434(0x20d)]||{},_0x33a4a4=_0x49ad52['devDependencies']||{},_0x2e84a6=_0x11dca5[_0x34adcb]||_0x33a4a4[_0x34adcb];if(!_0x2e84a6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34adcb,'stableVersion':null};let _0x1a36b6=getInstalledVersion(_0x162890,_0x34adcb);!_0x1a36b6&&(_0x1a36b6=_0x2e84a6);if(isNonNumericVersion(_0x2e84a6))return{'installed':!![],'version':_0x1a36b6,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34adcb,'stableVersion':null};const _0x5634db=a188_0x158a77[_0x416434(0x1ff)](_0x1a36b6),_0x5f42a8=_0x5634db?a188_0x158a77['lt'](_0x5634db,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1a36b6,'needsUpgrade':_0x5f42a8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34adcb,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34adcb,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x27aebf){const _0x26f700=a188_0x4db669;if(!_0x27aebf[_0x26f700(0x210)])return;const _0x48f4f9=_0x26f700(0x206),_0x388244='\x1b[0m',_0x259a48=_0x26f700(0x1fe),_0x47f969=_0x27aebf[_0x26f700(0x20e)]||_0x26f700(0x1f6),_0x3c2136=_0x27aebf[_0x26f700(0x208)]||_0x27aebf[_0x26f700(0x205)],_0x4dbc95=_0x26f700(0x1f3)+_0x47f969+'@'+(_0x3c2136||_0x26f700(0x215));console[_0x26f700(0x202)](),console[_0x26f700(0x202)](''+_0x48f4f9+_0x259a48+'↪\x20SDK\x20update\x20available'+_0x388244),console[_0x26f700(0x202)](_0x48f4f9+_0x26f700(0x1f8)+_0x47f969+'@'+_0x27aebf['version']+_0x388244),console[_0x26f700(0x202)](_0x48f4f9+_0x26f700(0x20f)+_0x3c2136+_0x388244),console[_0x26f700(0x202)](_0x48f4f9+_0x26f700(0x207)+_0x4dbc95+_0x388244),console[_0x26f700(0x202)]();}
@@ -1 +1 @@
1
- (function(_0xccffc8,_0x3cc942){const _0x5787e4=a189_0x4528,_0x1e160d=_0xccffc8();while(!![]){try{const _0xcef6e6=-parseInt(_0x5787e4(0xa5))/0x1+parseInt(_0x5787e4(0xb6))/0x2+parseInt(_0x5787e4(0xad))/0x3+parseInt(_0x5787e4(0x9d))/0x4*(-parseInt(_0x5787e4(0x98))/0x5)+-parseInt(_0x5787e4(0xbb))/0x6*(-parseInt(_0x5787e4(0xac))/0x7)+parseInt(_0x5787e4(0xae))/0x8*(parseInt(_0x5787e4(0x97))/0x9)+-parseInt(_0x5787e4(0xa0))/0xa;if(_0xcef6e6===_0x3cc942)break;else _0x1e160d['push'](_0x1e160d['shift']());}catch(_0x4dc1d9){_0x1e160d['push'](_0x1e160d['shift']());}}}(a189_0x1e27,0x24638));import{readFileSync}from'node:fs';function a189_0x1e27(){const _0x21d2c1=['\x20\x20\x20Minimum\x20required:\x20','276684MKIJIW','Current\x20version:\x20','join','1655430lJnVHd','1.0.0','belowMinimum','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','64806YBSjVm','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Stable\x20version:\x20','coerce','upgradeMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20','7CCCrPl','744189TcIRbP','16PylSRT','minimumVersionMessage','currentVersion','version','parse','minimumVersion','log','Minimum\x20required:\x20','315872EXaaqa','↪\x20New\x20version\x20available','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','package.json','112824ZmxoHF','utf-8','\x1b[33m','418212xlKKZK','10zSvuGc','\x1b[0m','filter','stableVersion'];a189_0x1e27=function(){return _0x21d2c1;};return a189_0x1e27();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x5002de 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(_0x50cc75){const _0x31dee7=a189_0x4528,_0x50b5fe=_0x50cc75['stableVersion']||'latest';return _0x31dee7(0xb9)+NPM_PACKAGE_NAME+'@'+_0x50b5fe;}function getCurrentCliVersion(){const _0x578226=a189_0x4528;try{const _0xaed991=fileURLToPath(import.meta.url),_0x340b46=resolve(dirname(_0xaed991),'../..'),_0x315775=resolve(_0x340b46,_0x578226(0xba)),_0x521c8e=JSON[_0x578226(0xb2)](readFileSync(_0x315775,_0x578226(0xbc)));return _0x521c8e[_0x578226(0xb1)]||_0x578226(0xa1);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5a6cfd=a189_0x4528,_0x34fa7b=getCurrentCliVersion(),_0x3e31d2=await getCliVersionPolicy(),_0x5056fb=_0x3e31d2?.[_0x5a6cfd(0x9b)]||null,_0x335437=_0x3e31d2?.['minimumVersion']||null;let _0x104db8=![],_0x3c042d=![];const _0x29c737=a189_0x5002de[_0x5a6cfd(0xa8)](_0x34fa7b);if(_0x29c737&&_0x5056fb)try{const _0x33a9ea=a189_0x5002de[_0x5a6cfd(0xa8)](_0x5056fb);if(_0x33a9ea)_0x104db8=a189_0x5002de['lt'](_0x29c737,_0x33a9ea);}catch{}if(_0x29c737&&_0x335437)try{const _0x5bee60=a189_0x5002de[_0x5a6cfd(0xa8)](_0x335437);if(_0x5bee60)_0x3c042d=a189_0x5002de['lt'](_0x29c737,_0x5bee60);}catch{}return _0x3c042d&&(_0x104db8=!![]),{'currentVersion':_0x34fa7b,'stableVersion':_0x5056fb,'minimumVersion':_0x335437,'needsUpgrade':_0x104db8,'belowMinimum':_0x3c042d,'isPreRelease':![],'upgradeMessage':_0x3e31d2?.[_0x5a6cfd(0xa9)],'minimumVersionMessage':_0x3e31d2?.[_0x5a6cfd(0xaf)]};}function a189_0x4528(_0x25dc90,_0x599b4e){_0x25dc90=_0x25dc90-0x96;const _0x1e2794=a189_0x1e27();let _0x4528ac=_0x1e2794[_0x25dc90];return _0x4528ac;}export function printCliUpgradeWarning(_0x298ee2){const _0x53b4ac=a189_0x4528;if(!_0x298ee2[_0x53b4ac(0xa3)]&&!_0x298ee2[_0x53b4ac(0xa2)])return;const _0x38168e='\x1b[31m',_0x37d09a=_0x53b4ac(0x96),_0x3b32b6=_0x53b4ac(0x99),_0x4ab29e='\x1b[1m',_0x148667=getCliUpgradeCommand(_0x298ee2);console['log'](),_0x298ee2[_0x53b4ac(0xa2)]?(console[_0x53b4ac(0xb4)](''+_0x38168e+_0x4ab29e+_0x53b4ac(0xaa)+_0x3b32b6),console['log'](_0x38168e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2[_0x53b4ac(0xb0)]+_0x3b32b6),_0x298ee2['minimumVersion']&&console[_0x53b4ac(0xb4)](_0x38168e+_0x53b4ac(0x9c)+_0x298ee2[_0x53b4ac(0xb3)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0x9b)]&&_0x298ee2[_0x53b4ac(0x9b)]!==_0x298ee2[_0x53b4ac(0xb3)]&&console['log'](_0x38168e+_0x53b4ac(0xb8)+_0x298ee2[_0x53b4ac(0x9b)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0xaf)]&&console['log'](_0x38168e+'\x20\x20\x20'+_0x298ee2[_0x53b4ac(0xaf)]+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x38168e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x148667+_0x3b32b6)):(console[_0x53b4ac(0xb4)](''+_0x37d09a+_0x4ab29e+_0x53b4ac(0xb7)+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2['currentVersion']+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+_0x53b4ac(0xa7)+_0x298ee2['stableVersion']+_0x3b32b6),_0x298ee2[_0x53b4ac(0xa9)]&&console['log'](_0x37d09a+_0x53b4ac(0xab)+_0x298ee2[_0x53b4ac(0xa9)]+_0x3b32b6),console['log'](_0x37d09a+_0x53b4ac(0xa4)+_0x148667+_0x3b32b6)),console[_0x53b4ac(0xb4)]();}export function assertCliVersionSupported(_0x3a3d7d){const _0x14cd94=a189_0x4528;if(!_0x3a3d7d[_0x14cd94(0xa2)])return;const _0x5b577b=[_0x3a3d7d['minimumVersionMessage'],_0x14cd94(0x9e)+_0x3a3d7d['currentVersion'],_0x3a3d7d['minimumVersion']?_0x14cd94(0xb5)+_0x3a3d7d[_0x14cd94(0xb3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x3a3d7d)][_0x14cd94(0x9a)](Boolean)[_0x14cd94(0x9f)]('\x0a');throw CliErrors['validation'](_0x14cd94(0xa6),_0x5b577b);}
1
+ (function(_0x1565d9,_0x28c83d){const _0x209e98=a189_0x12e5,_0x51d54a=_0x1565d9();while(!![]){try{const _0x30cc42=parseInt(_0x209e98(0x19e))/0x1*(-parseInt(_0x209e98(0x19b))/0x2)+parseInt(_0x209e98(0x1b0))/0x3*(-parseInt(_0x209e98(0x1af))/0x4)+-parseInt(_0x209e98(0x1a6))/0x5+-parseInt(_0x209e98(0x1b3))/0x6+-parseInt(_0x209e98(0x1b8))/0x7+parseInt(_0x209e98(0x1a9))/0x8*(parseInt(_0x209e98(0x1b2))/0x9)+-parseInt(_0x209e98(0x195))/0xa*(-parseInt(_0x209e98(0x198))/0xb);if(_0x30cc42===_0x28c83d)break;else _0x51d54a['push'](_0x51d54a['shift']());}catch(_0x4c0c93){_0x51d54a['push'](_0x51d54a['shift']());}}}(a189_0x3826,0xd3ffb));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a189_0x3826(){const _0x4d08cb=['stableVersion','version','18VtfZPs','needsUpgrade','upgradeMessage','latest','log','join','utf-8','1.0.0','6558950PrEtXq','\x1b[33m','filter','4019088GCqWRt','Current\x20version:\x20','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x1b[0m','belowMinimum','3137428nrOIOr','6PTDqOW','currentVersion','9EuhXmk','7244598NuQzrS','\x20\x20\x20Upgrade\x20command:\x20','parse','minimumVersion','\x20\x20\x20','6873321ONSSEd','coerce','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','3613510iwRPRC','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20required:\x20','187MvbYRl','\x20\x20\x20Minimum\x20required:\x20','minimumVersionMessage','78574vkiylu'];a189_0x3826=function(){return _0x4d08cb;};return a189_0x3826();}import a189_0x4a30f1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a189_0x12e5(_0x535025,_0x4bc783){_0x535025=_0x535025-0x195;const _0x3826fd=a189_0x3826();let _0x12e5e0=_0x3826fd[_0x535025];return _0x12e5e0;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x49a261){const _0x1a34ba=a189_0x12e5,_0x40d105=_0x49a261['stableVersion']||_0x1a34ba(0x1a1);return _0x1a34ba(0x1bc)+NPM_PACKAGE_NAME+'@'+_0x40d105;}function getCurrentCliVersion(){const _0x42d0e7=a189_0x12e5;try{const _0x315d38=fileURLToPath(import.meta.url),_0x3abde0=resolve(dirname(_0x315d38),'../..'),_0x509090=resolve(_0x3abde0,'package.json'),_0xe6c354=JSON[_0x42d0e7(0x1b5)](readFileSync(_0x509090,_0x42d0e7(0x1a4)));return _0xe6c354[_0x42d0e7(0x19d)]||_0x42d0e7(0x1a5);}catch{return _0x42d0e7(0x1a5);}}export async function checkCliVersion(){const _0x510908=a189_0x12e5,_0x3f66ca=getCurrentCliVersion(),_0x23fe26=await getCliVersionPolicy(),_0xd81e28=_0x23fe26?.['stableVersion']||null,_0x7b3098=_0x23fe26?.[_0x510908(0x1b6)]||null;let _0x1aa7f4=![],_0xf27ed7=![];const _0x4591a1=a189_0x4a30f1[_0x510908(0x1b9)](_0x3f66ca);if(_0x4591a1&&_0xd81e28)try{const _0x10bdb1=a189_0x4a30f1[_0x510908(0x1b9)](_0xd81e28);if(_0x10bdb1)_0x1aa7f4=a189_0x4a30f1['lt'](_0x4591a1,_0x10bdb1);}catch{}if(_0x4591a1&&_0x7b3098)try{const _0x31bc5e=a189_0x4a30f1[_0x510908(0x1b9)](_0x7b3098);if(_0x31bc5e)_0xf27ed7=a189_0x4a30f1['lt'](_0x4591a1,_0x31bc5e);}catch{}return _0xf27ed7&&(_0x1aa7f4=!![]),{'currentVersion':_0x3f66ca,'stableVersion':_0xd81e28,'minimumVersion':_0x7b3098,'needsUpgrade':_0x1aa7f4,'belowMinimum':_0xf27ed7,'isPreRelease':![],'upgradeMessage':_0x23fe26?.['upgradeMessage'],'minimumVersionMessage':_0x23fe26?.[_0x510908(0x19a)]};}export function printCliUpgradeWarning(_0x2ef036){const _0x225dce=a189_0x12e5;if(!_0x2ef036[_0x225dce(0x19f)]&&!_0x2ef036['belowMinimum'])return;const _0x41c2e8=_0x225dce(0x1ab),_0x3c1ec5=_0x225dce(0x1a7),_0x1586b0=_0x225dce(0x1ad),_0x5b06f5='\x1b[1m',_0x48d5e8=getCliUpgradeCommand(_0x2ef036);console[_0x225dce(0x1a2)](),_0x2ef036[_0x225dce(0x1ae)]?(console['log'](''+_0x41c2e8+_0x5b06f5+_0x225dce(0x1ba)+_0x1586b0),console[_0x225dce(0x1a2)](_0x41c2e8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2ef036[_0x225dce(0x1b1)]+_0x1586b0),_0x2ef036['minimumVersion']&&console[_0x225dce(0x1a2)](_0x41c2e8+_0x225dce(0x199)+_0x2ef036[_0x225dce(0x1b6)]+_0x1586b0),_0x2ef036[_0x225dce(0x19c)]&&_0x2ef036['stableVersion']!==_0x2ef036[_0x225dce(0x1b6)]&&console[_0x225dce(0x1a2)](_0x41c2e8+_0x225dce(0x1bb)+_0x2ef036[_0x225dce(0x19c)]+_0x1586b0),_0x2ef036[_0x225dce(0x19a)]&&console[_0x225dce(0x1a2)](_0x41c2e8+'\x20\x20\x20'+_0x2ef036[_0x225dce(0x19a)]+_0x1586b0),console[_0x225dce(0x1a2)](_0x41c2e8+_0x225dce(0x1b4)+_0x48d5e8+_0x1586b0)):(console['log'](''+_0x3c1ec5+_0x5b06f5+'↪\x20New\x20version\x20available'+_0x1586b0),console[_0x225dce(0x1a2)](_0x3c1ec5+_0x225dce(0x196)+_0x2ef036['currentVersion']+_0x1586b0),console['log'](_0x3c1ec5+'\x20\x20\x20Stable\x20version:\x20'+_0x2ef036[_0x225dce(0x19c)]+_0x1586b0),_0x2ef036['upgradeMessage']&&console[_0x225dce(0x1a2)](_0x3c1ec5+_0x225dce(0x1b7)+_0x2ef036[_0x225dce(0x1a0)]+_0x1586b0),console['log'](_0x3c1ec5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x48d5e8+_0x1586b0)),console['log']();}export function assertCliVersionSupported(_0x28a545){const _0x1697c1=a189_0x12e5;if(!_0x28a545[_0x1697c1(0x1ae)])return;const _0x4d62e9=[_0x28a545['minimumVersionMessage'],_0x1697c1(0x1aa)+_0x28a545[_0x1697c1(0x1b1)],_0x28a545[_0x1697c1(0x1b6)]?_0x1697c1(0x197)+_0x28a545[_0x1697c1(0x1b6)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x28a545)][_0x1697c1(0x1a8)](Boolean)[_0x1697c1(0x1a3)]('\x0a');throw CliErrors['validation'](_0x1697c1(0x1ac),_0x4d62e9);}
@@ -1 +1 @@
1
- (function(_0x1f7797,_0x40c993){const _0x492492=a190_0x2469,_0x3b7a3a=_0x1f7797();while(!![]){try{const _0x47de87=-parseInt(_0x492492(0x94))/0x1+parseInt(_0x492492(0xa1))/0x2*(-parseInt(_0x492492(0xa0))/0x3)+-parseInt(_0x492492(0xa2))/0x4+parseInt(_0x492492(0x9a))/0x5+-parseInt(_0x492492(0x9e))/0x6+-parseInt(_0x492492(0x92))/0x7+parseInt(_0x492492(0x91))/0x8*(parseInt(_0x492492(0x98))/0x9);if(_0x47de87===_0x40c993)break;else _0x3b7a3a['push'](_0x3b7a3a['shift']());}catch(_0x4e7d4b){_0x3b7a3a['push'](_0x3b7a3a['shift']());}}}(a190_0x4ee0,0x3ad2b));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(_0x1def90){const _0x10c827=a190_0x2469;return typeof _0x1def90===_0x10c827(0x93)&&_0x1def90[_0x10c827(0x9d)]()[_0x10c827(0x9c)]>0x0?_0x1def90[_0x10c827(0x9d)]():null;}function a190_0x4ee0(){const _0x38a4b0=['9393606rSAkIS','upgradeMessage','1408900yCXdOP','cli','length','trim','1068696UvlVyC','object','12jBJPrs','82372TAmGBk','1410496VkARTK','stableVersion','latestVersion','now','application/json','8cYoNBD','85925MdOQyi','string','376816MZjhhQ','signal','minimumVersionMessage','recommendedVersion'];a190_0x4ee0=function(){return _0x38a4b0;};return a190_0x4ee0();}function normalizeCliVersionPolicy(_0x6682f){const _0xa23137=a190_0x2469;if(!_0x6682f||typeof _0x6682f!==_0xa23137(0x9f))return null;const _0x24b73a=_0x6682f,_0xa9d2d1=_0x24b73a[_0xa23137(0x9b)]&&typeof _0x24b73a[_0xa23137(0x9b)]===_0xa23137(0x9f)?_0x24b73a['cli']:_0x24b73a,_0x5d7a26=pickString(_0xa9d2d1[_0xa23137(0x8d)])||pickString(_0xa9d2d1[_0xa23137(0x8e)])||pickString(_0xa9d2d1[_0xa23137(0x97)]),_0x23531b=pickString(_0xa9d2d1['minimumVersion'])||pickString(_0xa9d2d1['minVersion']);if(!_0x5d7a26&&!_0x23531b)return null;return{'stableVersion':_0x5d7a26,'minimumVersion':_0x23531b,'upgradeMessage':pickString(_0xa9d2d1[_0xa23137(0x99)])||undefined,'minimumVersionMessage':pickString(_0xa9d2d1[_0xa23137(0x96)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3a34da=a190_0x2469,_0x56b89a=new AbortController(),_0x2d9dd5=setTimeout(()=>_0x56b89a['abort'](),FETCH_TIMEOUT_MS);try{const _0x57bc63=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3a34da(0x90)},'signal':_0x56b89a[_0x3a34da(0x95)]});if(!_0x57bc63['ok'])return null;const _0x48c8bd=await _0x57bc63['json']();return normalizeCliVersionPolicy(_0x48c8bd);}catch{return null;}finally{clearTimeout(_0x2d9dd5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a190_0x2469(_0x4e1e7a,_0x15c284){_0x4e1e7a=_0x4e1e7a-0x8d;const _0x4ee059=a190_0x4ee0();let _0x246959=_0x4ee059[_0x4e1e7a];return _0x246959;}export async function getCliVersionPolicy(){const _0x3a6d7b=a190_0x2469,_0xf22333=Date[_0x3a6d7b(0x8f)]();if(hasCachedPolicy){const _0x2126b3=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf22333-cacheTime<_0x2126b3)return cachedPolicy;}const _0x953edb=await fetchCliVersionPolicy();return cachedPolicy=_0x953edb,cacheTime=_0xf22333,hasCachedPolicy=!![],_0x953edb;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x190dd7,_0x1f967e){const _0x1a5084=a190_0x5426,_0x46b11e=_0x190dd7();while(!![]){try{const _0x227a63=parseInt(_0x1a5084(0x19a))/0x1*(parseInt(_0x1a5084(0x19f))/0x2)+-parseInt(_0x1a5084(0x195))/0x3+-parseInt(_0x1a5084(0x197))/0x4+-parseInt(_0x1a5084(0x194))/0x5+parseInt(_0x1a5084(0x18c))/0x6+parseInt(_0x1a5084(0x191))/0x7*(parseInt(_0x1a5084(0x196))/0x8)+-parseInt(_0x1a5084(0x198))/0x9;if(_0x227a63===_0x1f967e)break;else _0x46b11e['push'](_0x46b11e['shift']());}catch(_0xd36a08){_0x46b11e['push'](_0x46b11e['shift']());}}}(a190_0x5a64,0xc0d4f));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a190_0x5426(_0x4baa25,_0x254fc9){_0x4baa25=_0x4baa25-0x18c;const _0x5a64bb=a190_0x5a64();let _0x54264d=_0x5a64bb[_0x4baa25];return _0x54264d;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x29185f){const _0x5e0ad8=a190_0x5426;return typeof _0x29185f==='string'&&_0x29185f['trim']()[_0x5e0ad8(0x199)]>0x0?_0x29185f[_0x5e0ad8(0x18d)]():null;}function normalizeCliVersionPolicy(_0x54c1ef){const _0x5c0faf=a190_0x5426;if(!_0x54c1ef||typeof _0x54c1ef!==_0x5c0faf(0x19e))return null;const _0x2b0526=_0x54c1ef,_0xa12445=_0x2b0526[_0x5c0faf(0x192)]&&typeof _0x2b0526[_0x5c0faf(0x192)]===_0x5c0faf(0x19e)?_0x2b0526[_0x5c0faf(0x192)]:_0x2b0526,_0x4daa5c=pickString(_0xa12445['stableVersion'])||pickString(_0xa12445['latestVersion'])||pickString(_0xa12445['recommendedVersion']),_0x155a9e=pickString(_0xa12445[_0x5c0faf(0x19c)])||pickString(_0xa12445['minVersion']);if(!_0x4daa5c&&!_0x155a9e)return null;return{'stableVersion':_0x4daa5c,'minimumVersion':_0x155a9e,'upgradeMessage':pickString(_0xa12445[_0x5c0faf(0x193)])||undefined,'minimumVersionMessage':pickString(_0xa12445[_0x5c0faf(0x19b)])||undefined};}export async function fetchCliVersionPolicy(){const _0x493fda=a190_0x5426,_0x10867d=new AbortController(),_0x4604b5=setTimeout(()=>_0x10867d[_0x493fda(0x18f)](),FETCH_TIMEOUT_MS);try{const _0x4b6d11=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x10867d[_0x493fda(0x18e)]});if(!_0x4b6d11['ok'])return null;const _0x4379f6=await _0x4b6d11[_0x493fda(0x190)]();return normalizeCliVersionPolicy(_0x4379f6);}catch{return null;}finally{clearTimeout(_0x4604b5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x50512b=a190_0x5426,_0x5f1c47=Date[_0x50512b(0x19d)]();if(hasCachedPolicy){const _0x3e911b=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5f1c47-cacheTime<_0x3e911b)return cachedPolicy;}const _0x309c46=await fetchCliVersionPolicy();return cachedPolicy=_0x309c46,cacheTime=_0x5f1c47,hasCachedPolicy=!![],_0x309c46;}function a190_0x5a64(){const _0xd08c43=['signal','abort','json','3149062HJvmwG','cli','upgradeMessage','823265NsctPQ','1104342ZmDebp','8KEHxcE','1828552BGrZAI','4864239uhpkEp','length','142024azuBPP','minimumVersionMessage','minimumVersion','now','object','20VicOSt','2700654hkhWLE','trim'];a190_0x5a64=function(){return _0xd08c43;};return a190_0x5a64();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0xab2b3f,_0x523768){const _0x1c733a=a191_0x1167,_0x2865d8=_0xab2b3f();while(!![]){try{const _0x315fdb=-parseInt(_0x1c733a(0x1a5))/0x1+-parseInt(_0x1c733a(0x1ad))/0x2*(-parseInt(_0x1c733a(0x1ac))/0x3)+parseInt(_0x1c733a(0x1a8))/0x4*(parseInt(_0x1c733a(0x1a3))/0x5)+-parseInt(_0x1c733a(0x1ab))/0x6+parseInt(_0x1c733a(0x1a7))/0x7+-parseInt(_0x1c733a(0x1a4))/0x8*(parseInt(_0x1c733a(0x1a6))/0x9)+parseInt(_0x1c733a(0x1aa))/0xa;if(_0x315fdb===_0x523768)break;else _0x2865d8['push'](_0x2865d8['shift']());}catch(_0x2b0e94){_0x2865d8['push'](_0x2865d8['shift']());}}}(a191_0x2b12,0x75e73));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x5d3585,getMultiAppConfigs as a191_0x46d2d5,getTemplateBaseUrl as a191_0x264257}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a191_0x2b12(){const _0x49b9f3=['40962cgYzDm','string','75VIckvf','7454728cxOPOw','554606sSmnnP','9yOJZzJ','2169601ViwyEW','144004Ozpqsp','env','11864580IlmKii','4949010NPmZbh','111klfwcK'];a191_0x2b12=function(){return _0x49b9f3;};return a191_0x2b12();}function a191_0x1167(_0x10a0fd,_0x3703e2){_0x10a0fd=_0x10a0fd-0x1a2;const _0x2b12ba=a191_0x2b12();let _0x11674c=_0x2b12ba[_0x10a0fd];return _0x11674c;}export{isInProject}from'../context.js';export function readConfig(_0x4a95d0){const _0xfeea98=a191_0x1167,_0x20ef64=readRawConfig(_0x4a95d0);return _0x20ef64[_0xfeea98(0x1a9)]&&typeof _0x20ef64['env']===_0xfeea98(0x1a2)&&initEnv(_0x20ef64[_0xfeea98(0x1a9)]),_0x20ef64;}export function getConfigAppCode(){return a191_0x5d3585();}export function getMultiAppConfigs(_0x36cf1f='project'){return a191_0x46d2d5(_0x36cf1f);}export function getTemplateBaseUrl(){return a191_0x264257();}
1
+ const a191_0x9d535e=a191_0x4999;(function(_0x39453f,_0x257741){const _0x1f4aee=a191_0x4999,_0x1d1bda=_0x39453f();while(!![]){try{const _0x2bc51f=-parseInt(_0x1f4aee(0x15a))/0x1+-parseInt(_0x1f4aee(0x159))/0x2*(-parseInt(_0x1f4aee(0x150))/0x3)+-parseInt(_0x1f4aee(0x152))/0x4+-parseInt(_0x1f4aee(0x158))/0x5+-parseInt(_0x1f4aee(0x15b))/0x6*(parseInt(_0x1f4aee(0x157))/0x7)+parseInt(_0x1f4aee(0x156))/0x8+parseInt(_0x1f4aee(0x154))/0x9;if(_0x2bc51f===_0x257741)break;else _0x1d1bda['push'](_0x1d1bda['shift']());}catch(_0x3d4b4e){_0x1d1bda['push'](_0x1d1bda['shift']());}}}(a191_0x3632,0xd0c22));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x433a27,getMultiAppConfigs as a191_0x5335a0,getTemplateBaseUrl as a191_0x3ab985}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x18d146){const _0x5a11dc=a191_0x4999,_0xf7caf7=readRawConfig(_0x18d146);return _0xf7caf7['env']&&typeof _0xf7caf7[_0x5a11dc(0x151)]===_0x5a11dc(0x155)&&initEnv(_0xf7caf7[_0x5a11dc(0x151)]),_0xf7caf7;}function a191_0x4999(_0x217d7f,_0x5866ce){_0x217d7f=_0x217d7f-0x150;const _0x363251=a191_0x3632();let _0x4999c4=_0x363251[_0x217d7f];return _0x4999c4;}export function getConfigAppCode(){return a191_0x433a27();}export function getMultiAppConfigs(_0x3ecfea=a191_0x9d535e(0x153)){return a191_0x5335a0(_0x3ecfea);}export function getTemplateBaseUrl(){return a191_0x3ab985();}function a191_0x3632(){const _0x54b0a8=['env','3007204UiOJNW','project','15453234ojJfoD','string','5618352YeNmYo','5954501ZpFjUC','6581100rmOMId','382AjLlde','203569MnMRAy','6IcMOOD','24471lwnJlk'];a191_0x3632=function(){return _0x54b0a8;};return a191_0x3632();}
@@ -1 +1 @@
1
- (function(_0x535e93,_0x31a39f){const _0x5c6c91=a192_0x3eac,_0x2aef65=_0x535e93();while(!![]){try{const _0x21e840=-parseInt(_0x5c6c91(0xd0))/0x1*(-parseInt(_0x5c6c91(0xcb))/0x2)+parseInt(_0x5c6c91(0xc4))/0x3*(-parseInt(_0x5c6c91(0xc3))/0x4)+parseInt(_0x5c6c91(0xcf))/0x5+-parseInt(_0x5c6c91(0xcd))/0x6+-parseInt(_0x5c6c91(0xc9))/0x7*(parseInt(_0x5c6c91(0xce))/0x8)+parseInt(_0x5c6c91(0xd2))/0x9*(-parseInt(_0x5c6c91(0xc5))/0xa)+parseInt(_0x5c6c91(0xcc))/0xb;if(_0x21e840===_0x31a39f)break;else _0x2aef65['push'](_0x2aef65['shift']());}catch(_0x1c5eb7){_0x2aef65['push'](_0x2aef65['shift']());}}}(a192_0x474e,0x1d842));import a192_0x29c0e9 from'node:path';import a192_0x3d5c4f from'node:fs';export async function copyDirectory(_0x5b4753,_0x347496){const _0x504cbb=a192_0x3eac;try{const _0x3a0313=a192_0x3d5c4f[_0x504cbb(0xc6)](_0x5b4753,{'withFileTypes':!![]});a192_0x3d5c4f[_0x504cbb(0xca)](_0x347496,{'recursive':!![]});for(const _0x4c4c66 of _0x3a0313){const _0x18d53d=a192_0x29c0e9[_0x504cbb(0xd1)](_0x5b4753,_0x4c4c66['name']),_0x59c0b3=a192_0x29c0e9[_0x504cbb(0xd1)](_0x347496,_0x4c4c66[_0x504cbb(0xc7)]);_0x4c4c66[_0x504cbb(0xd4)]()?await copyDirectory(_0x18d53d,_0x59c0b3):a192_0x3d5c4f[_0x504cbb(0xc8)](_0x18d53d,_0x59c0b3);}}catch(_0x4280c8){console['error'](_0x504cbb(0xd3),_0x4280c8);}}function a192_0x3eac(_0x4ab16e,_0x39496b){_0x4ab16e=_0x4ab16e-0xc3;const _0x474ef5=a192_0x474e();let _0x3eacc1=_0x474ef5[_0x4ab16e];return _0x3eacc1;}function a192_0x474e(){const _0x7ad3f5=['16KnvTGq','join','522QVdlPg','复制目录时出错:','isDirectory','12kTPUoX','86331mrrxnO','7880QJeXPk','readdirSync','name','copyFileSync','2163DELbAP','mkdirSync','25858buASui','2154240OkPZyr','989628oOcYRD','3768DDmPrJ','803530sAfxGo'];a192_0x474e=function(){return _0x7ad3f5;};return a192_0x474e();}
1
+ function a192_0x34f6(_0x4397a2,_0x1a7680){_0x4397a2=_0x4397a2-0x71;const _0x129d38=a192_0x129d();let _0x34f679=_0x129d38[_0x4397a2];return _0x34f679;}(function(_0x43f7be,_0x1c455d){const _0x57cd18=a192_0x34f6,_0x18ee4d=_0x43f7be();while(!![]){try{const _0xf59f52=-parseInt(_0x57cd18(0x82))/0x1*(parseInt(_0x57cd18(0x7d))/0x2)+-parseInt(_0x57cd18(0x7a))/0x3+parseInt(_0x57cd18(0x72))/0x4+-parseInt(_0x57cd18(0x78))/0x5+-parseInt(_0x57cd18(0x7c))/0x6*(parseInt(_0x57cd18(0x79))/0x7)+parseInt(_0x57cd18(0x80))/0x8*(parseInt(_0x57cd18(0x71))/0x9)+-parseInt(_0x57cd18(0x81))/0xa*(-parseInt(_0x57cd18(0x75))/0xb);if(_0xf59f52===_0x1c455d)break;else _0x18ee4d['push'](_0x18ee4d['shift']());}catch(_0x4af043){_0x18ee4d['push'](_0x18ee4d['shift']());}}}(a192_0x129d,0xa9664));import a192_0x2875eb from'node:path';import a192_0x51420c from'node:fs';function a192_0x129d(){const _0x2f4440=['readdirSync','56LViOBf','700SXNxkP','41KiBYPC','1077048xsWJjF','4608896rKRLGF','error','copyFileSync','435094gRRFON','name','join','1223220HGzNij','65471kugXXI','3900747TrqmJz','isDirectory','852jvzgwP','58138FYKGzD','复制目录时出错:'];a192_0x129d=function(){return _0x2f4440;};return a192_0x129d();}export async function copyDirectory(_0xc0547c,_0x170aae){const _0x526854=a192_0x34f6;try{const _0x546f1e=a192_0x51420c[_0x526854(0x7f)](_0xc0547c,{'withFileTypes':!![]});a192_0x51420c['mkdirSync'](_0x170aae,{'recursive':!![]});for(const _0x5ce6ea of _0x546f1e){const _0x3d625a=a192_0x2875eb['join'](_0xc0547c,_0x5ce6ea[_0x526854(0x76)]),_0x507b04=a192_0x2875eb[_0x526854(0x77)](_0x170aae,_0x5ce6ea[_0x526854(0x76)]);_0x5ce6ea[_0x526854(0x7b)]()?await copyDirectory(_0x3d625a,_0x507b04):a192_0x51420c[_0x526854(0x74)](_0x3d625a,_0x507b04);}}catch(_0x344285){console[_0x526854(0x73)](_0x526854(0x7e),_0x344285);}}
@@ -1 +1 @@
1
- function a193_0x1dd8(_0x490b62,_0xf1aef2){_0x490b62=_0x490b62-0x190;const _0x421527=a193_0x4215();let _0x1dd87a=_0x421527[_0x490b62];return _0x1dd87a;}(function(_0x13c0d,_0x2f18a2){const _0x2e3329=a193_0x1dd8,_0x393485=_0x13c0d();while(!![]){try{const _0x5365a4=-parseInt(_0x2e3329(0x197))/0x1*(-parseInt(_0x2e3329(0x19b))/0x2)+parseInt(_0x2e3329(0x190))/0x3*(-parseInt(_0x2e3329(0x193))/0x4)+parseInt(_0x2e3329(0x194))/0x5+parseInt(_0x2e3329(0x192))/0x6*(-parseInt(_0x2e3329(0x19c))/0x7)+parseInt(_0x2e3329(0x19a))/0x8+-parseInt(_0x2e3329(0x19d))/0x9*(-parseInt(_0x2e3329(0x195))/0xa)+-parseInt(_0x2e3329(0x199))/0xb;if(_0x5365a4===_0x2f18a2)break;else _0x393485['push'](_0x393485['shift']());}catch(_0x3cdd97){_0x393485['push'](_0x393485['shift']());}}}(a193_0x4215,0x5e7b8));function a193_0x4215(){const _0x478dcf=['34kcVaho','7XYIhcZ','505737JdCRBU','1446UEYMwK','object','3307272PvmbMK','64fsTCOs','3530510gvsVlN','90WjegmP','trim','41179zPqHyO','number','19095219IDmCBX','6159768bBYhhz'];a193_0x4215=function(){return _0x478dcf;};return a193_0x4215();}function toFiniteNumber(_0x5d1c62){const _0x3026ae=a193_0x1dd8;if(typeof _0x5d1c62===_0x3026ae(0x198)&&Number['isFinite'](_0x5d1c62))return _0x5d1c62;if(typeof _0x5d1c62==='string'){const _0x331b21=_0x5d1c62[_0x3026ae(0x196)]();if(!_0x331b21)return undefined;const _0x32c63c=Number(_0x331b21);if(Number['isFinite'](_0x32c63c))return _0x32c63c;}return undefined;}export function normalizeEntityWithIdResponse(_0x5ec051){const _0x1126e3=a193_0x1dd8,_0x11bd8e=toFiniteNumber(_0x5ec051);if(_0x11bd8e!==undefined)return{'id':_0x11bd8e,'entity':{'id':_0x11bd8e}};if(!_0x5ec051||typeof _0x5ec051!==_0x1126e3(0x191))return{'id':undefined,'entity':{}};const _0x5e7aa6={..._0x5ec051},_0x4b68e6=toFiniteNumber(_0x5e7aa6['id']);return _0x4b68e6!==undefined&&(_0x5e7aa6['id']=_0x4b68e6),{'id':_0x4b68e6,'entity':_0x5e7aa6};}
1
+ function a193_0x328f(_0x34a613,_0x16126c){_0x34a613=_0x34a613-0x89;const _0x17aca2=a193_0x17ac();let _0x328ff0=_0x17aca2[_0x34a613];return _0x328ff0;}function a193_0x17ac(){const _0xb1018e=['isFinite','81YdciYS','112940GvFERQ','523899YAOczi','object','number','427bqVeeb','796676qaifQK','16636vPSoxR','24aAaFwJ','string','1826kGxHnW','22665KvoZEX','18300nARaaM','27162wIgUOD'];a193_0x17ac=function(){return _0xb1018e;};return a193_0x17ac();}(function(_0x43591d,_0x46ed14){const _0x1b38bb=a193_0x328f,_0x25c55e=_0x43591d();while(!![]){try{const _0x29876b=-parseInt(_0x1b38bb(0x96))/0x1+-parseInt(_0x1b38bb(0x92))/0x2*(-parseInt(_0x1b38bb(0x8b))/0x3)+-parseInt(_0x1b38bb(0x91))/0x4+parseInt(_0x1b38bb(0x8c))/0x5+parseInt(_0x1b38bb(0x89))/0x6*(-parseInt(_0x1b38bb(0x90))/0x7)+parseInt(_0x1b38bb(0x93))/0x8*(parseInt(_0x1b38bb(0x8d))/0x9)+-parseInt(_0x1b38bb(0x97))/0xa*(-parseInt(_0x1b38bb(0x95))/0xb);if(_0x29876b===_0x46ed14)break;else _0x25c55e['push'](_0x25c55e['shift']());}catch(_0x3e7e91){_0x25c55e['push'](_0x25c55e['shift']());}}}(a193_0x17ac,0x37916));function toFiniteNumber(_0x33c47e){const _0x4f4e4c=a193_0x328f;if(typeof _0x33c47e===_0x4f4e4c(0x8f)&&Number[_0x4f4e4c(0x8a)](_0x33c47e))return _0x33c47e;if(typeof _0x33c47e===_0x4f4e4c(0x94)){const _0x630829=_0x33c47e['trim']();if(!_0x630829)return undefined;const _0x38efca=Number(_0x630829);if(Number[_0x4f4e4c(0x8a)](_0x38efca))return _0x38efca;}return undefined;}export function normalizeEntityWithIdResponse(_0x450220){const _0x5037e2=a193_0x328f,_0x2e22a1=toFiniteNumber(_0x450220);if(_0x2e22a1!==undefined)return{'id':_0x2e22a1,'entity':{'id':_0x2e22a1}};if(!_0x450220||typeof _0x450220!==_0x5037e2(0x8e))return{'id':undefined,'entity':{}};const _0x84c60d={..._0x450220},_0x2f68f4=toFiniteNumber(_0x84c60d['id']);return _0x2f68f4!==undefined&&(_0x84c60d['id']=_0x2f68f4),{'id':_0x2f68f4,'entity':_0x84c60d};}
@@ -1 +1 @@
1
- (function(_0x520e9a,_0x3450da){const _0x2df7d3=a194_0x1d3d,_0x4f01d5=_0x520e9a();while(!![]){try{const _0x46758a=-parseInt(_0x2df7d3(0x7b))/0x1+parseInt(_0x2df7d3(0x83))/0x2*(parseInt(_0x2df7d3(0x7a))/0x3)+-parseInt(_0x2df7d3(0x84))/0x4+parseInt(_0x2df7d3(0x81))/0x5+-parseInt(_0x2df7d3(0x80))/0x6*(parseInt(_0x2df7d3(0x7c))/0x7)+-parseInt(_0x2df7d3(0x7f))/0x8+-parseInt(_0x2df7d3(0x82))/0x9*(-parseInt(_0x2df7d3(0x7d))/0xa);if(_0x46758a===_0x3450da)break;else _0x4f01d5['push'](_0x4f01d5['shift']());}catch(_0x31a686){_0x4f01d5['push'](_0x4f01d5['shift']());}}}(a194_0x2a4f,0x47b3c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a194_0x2a4f(){const _0xc4a708=['292288ayhUSw','6xbSzec','503290IgEdQU','9alJKpO','13582nEOswp','888092ChDMyY','84omnwSK','311126MzJXiG','1202943YsLMGD','7444200MpzIry','isDirectory'];a194_0x2a4f=function(){return _0xc4a708;};return a194_0x2a4f();}import{join}from'node:path';export async function copyDir(_0x14ec4c,_0x1f8122){const _0x472d6b=a194_0x1d3d,_0x20f169=statSync(_0x14ec4c);if(_0x20f169[_0x472d6b(0x7e)]()){!existsSync(_0x1f8122)&&mkdirSync(_0x1f8122,{'recursive':!![]});const _0x5d73da=readdirSync(_0x14ec4c);for(const _0x187682 of _0x5d73da){await copyDir(join(_0x14ec4c,_0x187682),join(_0x1f8122,_0x187682));}}else copyFileSync(_0x14ec4c,_0x1f8122);}function a194_0x1d3d(_0x1299f9,_0x1ce54c){_0x1299f9=_0x1299f9-0x7a;const _0x2a4fcc=a194_0x2a4f();let _0x1d3d67=_0x2a4fcc[_0x1299f9];return _0x1d3d67;}export function ensureDir(_0x454b65){!existsSync(_0x454b65)&&mkdirSync(_0x454b65,{'recursive':!![]});}export function pathExists(_0x88350b){return existsSync(_0x88350b);}
1
+ (function(_0x2953d4,_0x53ff18){const _0x4aa8ee=a194_0x169f,_0x574828=_0x2953d4();while(!![]){try{const _0x3d5158=-parseInt(_0x4aa8ee(0x1ee))/0x1*(-parseInt(_0x4aa8ee(0x1f5))/0x2)+-parseInt(_0x4aa8ee(0x1f4))/0x3*(-parseInt(_0x4aa8ee(0x1ec))/0x4)+parseInt(_0x4aa8ee(0x1f2))/0x5+parseInt(_0x4aa8ee(0x1f3))/0x6+parseInt(_0x4aa8ee(0x1f0))/0x7*(parseInt(_0x4aa8ee(0x1ed))/0x8)+parseInt(_0x4aa8ee(0x1f1))/0x9+-parseInt(_0x4aa8ee(0x1ef))/0xa;if(_0x3d5158===_0x53ff18)break;else _0x574828['push'](_0x574828['shift']());}catch(_0x50021a){_0x574828['push'](_0x574828['shift']());}}}(a194_0xed18,0xcc54a));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x170efe,_0x29529f){const _0x2a23fa=a194_0x169f,_0x280eb0=statSync(_0x170efe);if(_0x280eb0[_0x2a23fa(0x1f6)]()){!existsSync(_0x29529f)&&mkdirSync(_0x29529f,{'recursive':!![]});const _0x54fda8=readdirSync(_0x170efe);for(const _0x5ca6b6 of _0x54fda8){await copyDir(join(_0x170efe,_0x5ca6b6),join(_0x29529f,_0x5ca6b6));}}else copyFileSync(_0x170efe,_0x29529f);}export function ensureDir(_0x2c0f51){!existsSync(_0x2c0f51)&&mkdirSync(_0x2c0f51,{'recursive':!![]});}export function pathExists(_0x235b2c){return existsSync(_0x235b2c);}function a194_0x169f(_0x37198b,_0xf01ff){_0x37198b=_0x37198b-0x1ec;const _0xed1849=a194_0xed18();let _0x169fa4=_0xed1849[_0x37198b];return _0x169fa4;}function a194_0xed18(){const _0x8f3fa9=['219248fxCKaE','127uuQDpv','21712760YvlmCo','28fzCrgK','5780448utzgCG','869010MAjzLR','1828428GHUNcP','348IdRWyU','14820WvOxtp','isDirectory','28852PpXeHC'];a194_0xed18=function(){return _0x8f3fa9;};return a194_0xed18();}
@@ -1 +1 @@
1
- const a195_0x997251=a195_0x40bd;function a195_0x40bd(_0x41912f,_0x19bb81){_0x41912f=_0x41912f-0xce;const _0x1165c1=a195_0x1165();let _0x40bd5a=_0x1165c1[_0x41912f];return _0x40bd5a;}(function(_0x45f6a4,_0x38aadf){const _0x23210c=a195_0x40bd,_0x13eb76=_0x45f6a4();while(!![]){try{const _0x1cdec1=parseInt(_0x23210c(0xdb))/0x1*(parseInt(_0x23210c(0xeb))/0x2)+-parseInt(_0x23210c(0xea))/0x3*(parseInt(_0x23210c(0xe1))/0x4)+parseInt(_0x23210c(0xe9))/0x5*(-parseInt(_0x23210c(0xd5))/0x6)+parseInt(_0x23210c(0xda))/0x7+-parseInt(_0x23210c(0xed))/0x8*(parseInt(_0x23210c(0xde))/0x9)+-parseInt(_0x23210c(0xd1))/0xa*(-parseInt(_0x23210c(0xe3))/0xb)+parseInt(_0x23210c(0xd8))/0xc;if(_0x1cdec1===_0x38aadf)break;else _0x13eb76['push'](_0x13eb76['shift']());}catch(_0x3ea226){_0x13eb76['push'](_0x13eb76['shift']());}}}(a195_0x1165,0xdf127));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x53b980=getTemplateBaseUrl();return _0x53b980+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a195_0x997251(0xdf),'cache');export async function fetchGuidesFromCDN(){const _0x37950f=a195_0x997251,_0x43050b=getGuidesCdnUrl(),_0x40dec5=await fetch(_0x43050b,{'headers':{'Accept':_0x37950f(0xd4)}});if(!_0x40dec5['ok'])throw new Error(_0x37950f(0xe2)+_0x40dec5['status']+'\x20'+_0x40dec5[_0x37950f(0xe5)]);const _0x278615=await _0x40dec5['json']();if(!_0x278615['guides']||typeof _0x278615[_0x37950f(0xe6)]!=='object')throw new Error(_0x37950f(0xd3));return _0x278615;}export function writeGuidesToProject(_0x188a63,_0xc905ed,_0x3da21c=a195_0x997251(0xdc),_0x525647){const _0x1c138c=a195_0x997251,_0xa5a4ee=join(_0xc905ed,_0x3da21c);mkdirSync(_0xa5a4ee,{'recursive':!![]});for(const [_0x4cbd64,_0x6efa51]of Object[_0x1c138c(0xcf)](_0x188a63[_0x1c138c(0xe6)])){let _0x2f1057=_0x6efa51[_0x1c138c(0xd2)];_0x6efa51['lastUpdated']&&(_0x2f1057=appendUpdateTime(_0x2f1057,_0x6efa51[_0x1c138c(0xd9)])),writeFileSync(join(_0xa5a4ee,_0x4cbd64+_0x1c138c(0xd7)),_0x2f1057,_0x1c138c(0xdd));}}function a195_0x1165(){const _0x350295=['replace','4735bgMnNb','9ZmBZed','316154HJqrAS','trimEnd','120bISccl','skillTemplate','entries','\x0a\x0a>更新时间:','78370TnZVEt','content','CDN\x20返回数据格式错误','application/json','7230XPWoDQ','CDN\x20数据中缺少\x20skillTemplate','.md','14090112KOStLo','lastUpdated','10256092uOKAHu','1JaKXbt','.lovrabet/skill/guides','utf-8','562446NTbqdk','.lovrabet','extendContent','816496LthXkf','CDN\x20请求失败:\x20','1133JKkyMW','push','statusText','guides','length'];a195_0x1165=function(){return _0x350295;};return a195_0x1165();}export function appendUpdateTime(_0x1da1a7,_0x479d04){const _0x26d98b=a195_0x997251;return _0x1da1a7=_0x1da1a7[_0x26d98b(0xe8)](/\n*>更新时间:.*$/m,''),_0x1da1a7[_0x26d98b(0xec)]()+(_0x26d98b(0xd0)+_0x479d04);}export function getSkillTemplate(_0x362ff9){const _0x41497c=a195_0x997251;return _0x362ff9[_0x41497c(0xce)]?.['content']||'';}export function appendExtendContents(_0x5b906e,_0x2a3f66,_0x125e76){const _0x139d9c=a195_0x997251,_0x42803f=[];for(const [,_0x2bc011]of Object[_0x139d9c(0xcf)](_0x2a3f66['guides'])){_0x2bc011[_0x139d9c(0xe0)]&&_0x42803f[_0x139d9c(0xe4)](_0x2bc011['extendContent'][_0x139d9c(0xec)]());}if(_0x42803f[_0x139d9c(0xe7)]===0x0)return _0x5b906e;return _0x5b906e[_0x139d9c(0xec)]()+'\x0a\x0a'+_0x42803f['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2ba22e,_0x22de5c,_0x5f5c79){const _0x17f011=a195_0x997251,_0x159679=getSkillTemplate(_0x2ba22e);if(!_0x159679)throw new Error(_0x17f011(0xd6));const _0x39788a=dirname(_0x22de5c);mkdirSync(_0x39788a,{'recursive':!![]});let _0x346c65=_0x159679[_0x17f011(0xe8)](/\{\{IDE_NAME\}\}/g,_0x5f5c79);_0x346c65=appendExtendContents(_0x346c65,_0x2ba22e),_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)]&&(_0x346c65=appendUpdateTime(_0x346c65,_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)])),writeFileSync(_0x22de5c,_0x346c65,_0x17f011(0xdd));}export async function installGuides(_0x222458){const _0x4cd8bf=a195_0x997251,_0x3022cf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3022cf,_0x222458),Object['keys'](_0x3022cf[_0x4cd8bf(0xe6)])[_0x4cd8bf(0xe7)];}export function getGuidesSummary(_0x14f805){return Object['entries'](_0x14f805['guides'])['map'](([_0x39fc90,_0x3d06d0])=>({'key':_0x39fc90,'title':_0x3d06d0['title'],'path':_0x3d06d0['path']}));}
1
+ const a195_0x2fda3e=a195_0x37ff;(function(_0x389309,_0x4081de){const _0x2bf49b=a195_0x37ff,_0x14bb53=_0x389309();while(!![]){try{const _0x16ecd8=-parseInt(_0x2bf49b(0xb9))/0x1+parseInt(_0x2bf49b(0xb4))/0x2+-parseInt(_0x2bf49b(0xbc))/0x3*(parseInt(_0x2bf49b(0xcf))/0x4)+parseInt(_0x2bf49b(0xb8))/0x5*(parseInt(_0x2bf49b(0xca))/0x6)+-parseInt(_0x2bf49b(0xac))/0x7+-parseInt(_0x2bf49b(0xba))/0x8*(-parseInt(_0x2bf49b(0xb3))/0x9)+parseInt(_0x2bf49b(0xbb))/0xa*(parseInt(_0x2bf49b(0xc4))/0xb);if(_0x16ecd8===_0x4081de)break;else _0x14bb53['push'](_0x14bb53['shift']());}catch(_0x240b38){_0x14bb53['push'](_0x14bb53['shift']());}}}(a195_0x402a,0x66974));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a195_0x37ff(_0x276583,_0x130c73){_0x276583=_0x276583-0xab;const _0x402ac4=a195_0x402a();let _0x37ff24=_0x402ac4[_0x276583];return _0x37ff24;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2ae626=a195_0x37ff,_0x5dac09=getTemplateBaseUrl();return _0x5dac09+_0x2ae626(0xae);}const CACHE_DIR=join(homedir(),a195_0x2fda3e(0xad),a195_0x2fda3e(0xaf));export async function fetchGuidesFromCDN(){const _0x2e81c4=a195_0x2fda3e,_0x12c467=getGuidesCdnUrl(),_0x2663be=await fetch(_0x12c467,{'headers':{'Accept':_0x2e81c4(0xc3)}});if(!_0x2663be['ok'])throw new Error(_0x2e81c4(0xc2)+_0x2663be[_0x2e81c4(0xc5)]+'\x20'+_0x2663be[_0x2e81c4(0xce)]);const _0x4e008f=await _0x2663be[_0x2e81c4(0xd1)]();if(!_0x4e008f[_0x2e81c4(0xc0)]||typeof _0x4e008f[_0x2e81c4(0xc0)]!=='object')throw new Error(_0x2e81c4(0xb0));return _0x4e008f;}function a195_0x402a(){const _0x3a24e2=['join','json','path','3110730ezfNhn','.lovrabet','/skills/guides.json','cache','CDN\x20返回数据格式错误','entries','\x0a\x0a>更新时间:','20187pBJmPl','823894VafNNK','map','lastUpdated','.lovrabet/skill/guides','15XrdvIO','192353XigZkQ','1096MuDmRq','213420IkHiWy','1999293WqAVbg','.md','extendContent','utf-8','guides','content','CDN\x20请求失败:\x20','application/json','451ttZQSo','status','replace','title','skillTemplate','trimEnd','258252TmFJId','keys','CDN\x20数据中缺少\x20skillTemplate','length','statusText','4NcYNmE'];a195_0x402a=function(){return _0x3a24e2;};return a195_0x402a();}export function writeGuidesToProject(_0x248f99,_0x350132,_0x583513=a195_0x2fda3e(0xb7),_0x7a098a){const _0x1510ed=a195_0x2fda3e,_0x126555=join(_0x350132,_0x583513);mkdirSync(_0x126555,{'recursive':!![]});for(const [_0x32b4c0,_0x246fbc]of Object['entries'](_0x248f99[_0x1510ed(0xc0)])){let _0x29078d=_0x246fbc['content'];_0x246fbc[_0x1510ed(0xb6)]&&(_0x29078d=appendUpdateTime(_0x29078d,_0x246fbc[_0x1510ed(0xb6)])),writeFileSync(join(_0x126555,_0x32b4c0+_0x1510ed(0xbd)),_0x29078d,_0x1510ed(0xbf));}}export function appendUpdateTime(_0x4fa442,_0xb7e1d2){const _0xb4bd34=a195_0x2fda3e;return _0x4fa442=_0x4fa442[_0xb4bd34(0xc6)](/\n*>更新时间:.*$/m,''),_0x4fa442[_0xb4bd34(0xc9)]()+(_0xb4bd34(0xb2)+_0xb7e1d2);}export function getSkillTemplate(_0x186bb7){const _0x2b47b9=a195_0x2fda3e;return _0x186bb7['skillTemplate']?.[_0x2b47b9(0xc1)]||'';}export function appendExtendContents(_0x2b56fd,_0x186921,_0x346814){const _0xe1d86c=a195_0x2fda3e,_0x368352=[];for(const [,_0x39374f]of Object['entries'](_0x186921[_0xe1d86c(0xc0)])){_0x39374f[_0xe1d86c(0xbe)]&&_0x368352['push'](_0x39374f[_0xe1d86c(0xbe)][_0xe1d86c(0xc9)]());}if(_0x368352[_0xe1d86c(0xcd)]===0x0)return _0x2b56fd;return _0x2b56fd[_0xe1d86c(0xc9)]()+'\x0a\x0a'+_0x368352[_0xe1d86c(0xd0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4d08f1,_0x48b7e7,_0x278c6a){const _0x222f3c=a195_0x2fda3e,_0x2d0d0a=getSkillTemplate(_0x4d08f1);if(!_0x2d0d0a)throw new Error(_0x222f3c(0xcc));const _0x3cb0d4=dirname(_0x48b7e7);mkdirSync(_0x3cb0d4,{'recursive':!![]});let _0x179636=_0x2d0d0a[_0x222f3c(0xc6)](/\{\{IDE_NAME\}\}/g,_0x278c6a);_0x179636=appendExtendContents(_0x179636,_0x4d08f1),_0x4d08f1[_0x222f3c(0xc8)][_0x222f3c(0xb6)]&&(_0x179636=appendUpdateTime(_0x179636,_0x4d08f1[_0x222f3c(0xc8)][_0x222f3c(0xb6)])),writeFileSync(_0x48b7e7,_0x179636,_0x222f3c(0xbf));}export async function installGuides(_0x275abe){const _0x14af06=a195_0x2fda3e,_0x2c909b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2c909b,_0x275abe),Object[_0x14af06(0xcb)](_0x2c909b['guides'])['length'];}export function getGuidesSummary(_0x2fcdbf){const _0x1b67b4=a195_0x2fda3e;return Object[_0x1b67b4(0xb1)](_0x2fcdbf[_0x1b67b4(0xc0)])[_0x1b67b4(0xb5)](([_0x5701fb,_0x44ff10])=>({'key':_0x5701fb,'title':_0x44ff10[_0x1b67b4(0xc7)],'path':_0x44ff10[_0x1b67b4(0xab)]}));}
@@ -1 +1 @@
1
- function a196_0x5759(){const _0x11f90f=['content-type','abort','headers','489980TBEzlM','5179376WFGnJn','includes','4iroFMV','225vzSHlG','statusText','name','648710yDxNkD','17066280foprRg','1636ZsTaWY','TypeError','Request\x20failed','ECONNRESET','status','json','14APmuKM','\x20次重试...','fetch','1642DBnlwP','ms\x20后进行第\x20','1214562kHGuNA','42oXfnXx','message','get','log','signal','15270132PuJfxI','url','application/json','26EGRZuj','text'];a196_0x5759=function(){return _0x11f90f;};return a196_0x5759();}(function(_0x1bd0bb,_0x162401){const _0x179394=a196_0x109c,_0x25a920=_0x1bd0bb();while(!![]){try{const _0x528fa7=parseInt(_0x179394(0x94))/0x1*(-parseInt(_0x179394(0x9d))/0x2)+parseInt(_0x179394(0x9f))/0x3*(-parseInt(_0x179394(0x8e))/0x4)+-parseInt(_0x179394(0x8b))/0x5*(-parseInt(_0x179394(0xa0))/0x6)+-parseInt(_0x179394(0x9a))/0x7*(-parseInt(_0x179394(0x8c))/0x8)+-parseInt(_0x179394(0x8f))/0x9*(-parseInt(_0x179394(0x92))/0xa)+parseInt(_0x179394(0x93))/0xb+-parseInt(_0x179394(0xa5))/0xc*(parseInt(_0x179394(0xa8))/0xd);if(_0x528fa7===_0x162401)break;else _0x25a920['push'](_0x25a920['shift']());}catch(_0x162c15){_0x25a920['push'](_0x25a920['shift']());}}}(a196_0x5759,0xd236f));export async function httpRequest(_0x270848,_0x2f27c1={}){const _0x35195f=a196_0x109c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2f27c1;let _0x43c897=null;for(let _0x3ca261=0x0;_0x3ca261<=retries;_0x3ca261++){try{const _0x498083=new AbortController(),_0x2d50c1=setTimeout(()=>_0x498083[_0x35195f(0x89)](),timeout),_0x56008b=await fetch(_0x270848,{'headers':headers,'signal':_0x498083[_0x35195f(0xa4)]});clearTimeout(_0x2d50c1);let _0x5097d7;const _0x3194d1=_0x56008b[_0x35195f(0x8a)][_0x35195f(0xa2)](_0x35195f(0x88));return _0x3194d1?.[_0x35195f(0x8d)](_0x35195f(0xa7))?_0x5097d7=await _0x56008b[_0x35195f(0x99)]():_0x5097d7=await _0x56008b[_0x35195f(0x87)](),{'ok':_0x56008b['ok'],'status':_0x56008b[_0x35195f(0x98)],'statusText':_0x56008b[_0x35195f(0x90)],'data':_0x5097d7,'headers':_0x56008b['headers'],'url':_0x56008b[_0x35195f(0xa6)],'text':()=>_0x56008b[_0x35195f(0x87)]()};}catch(_0x5d4331){_0x43c897=_0x5d4331 instanceof Error?_0x5d4331:new Error(String(_0x5d4331));if(_0x3ca261===retries)break;if(shouldRetry(_0x5d4331)){console[_0x35195f(0xa3)]('*\x20请求失败,'+retryDelay+_0x35195f(0x9e)+(_0x3ca261+0x1)+_0x35195f(0x9b)),await sleep(retryDelay);continue;}else break;}}throw _0x43c897||new Error(_0x35195f(0x96));}function shouldRetry(_0x4979ae){const _0x5dc142=a196_0x109c;if(_0x4979ae instanceof Error){if(_0x4979ae[_0x5dc142(0x91)]==='AbortError')return![];if(_0x4979ae['name']===_0x5dc142(0x95)&&_0x4979ae['message'][_0x5dc142(0x8d)](_0x5dc142(0x9c)))return!![];if(_0x4979ae['message'][_0x5dc142(0x8d)](_0x5dc142(0x97)))return!![];if(_0x4979ae[_0x5dc142(0xa1)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x276489){return new Promise(_0x27c9d2=>setTimeout(_0x27c9d2,_0x276489));}function a196_0x109c(_0x2702f8,_0x4091a5){_0x2702f8=_0x2702f8-0x87;const _0x575960=a196_0x5759();let _0x109c3f=_0x575960[_0x2702f8];return _0x109c3f;}export function validateUrl(_0x3594a7){try{return new URL(_0x3594a7),!![];}catch{return![];}}
1
+ (function(_0x2f0ef7,_0xac2cc2){const _0x3eecc7=a196_0xf15e,_0x25fee0=_0x2f0ef7();while(!![]){try{const _0x260631=-parseInt(_0x3eecc7(0x1eb))/0x1*(parseInt(_0x3eecc7(0x1e5))/0x2)+-parseInt(_0x3eecc7(0x1f3))/0x3*(parseInt(_0x3eecc7(0x1d8))/0x4)+-parseInt(_0x3eecc7(0x1f8))/0x5*(-parseInt(_0x3eecc7(0x1f1))/0x6)+parseInt(_0x3eecc7(0x1e8))/0x7+-parseInt(_0x3eecc7(0x1f0))/0x8*(-parseInt(_0x3eecc7(0x1e2))/0x9)+parseInt(_0x3eecc7(0x1ec))/0xa*(-parseInt(_0x3eecc7(0x1de))/0xb)+-parseInt(_0x3eecc7(0x1ea))/0xc*(-parseInt(_0x3eecc7(0x1e7))/0xd);if(_0x260631===_0xac2cc2)break;else _0x25fee0['push'](_0x25fee0['shift']());}catch(_0x5b4687){_0x25fee0['push'](_0x25fee0['shift']());}}}(a196_0x3293,0x3ff03));function a196_0x3293(){const _0x597194=['6ejiYEk','statusText','2424mEbqaA','content-type','abort','Request\x20failed','headers','2466855acCBwy','url','1000DlXkMj','log','json','text','\x20次重试...','*\x20请求失败,','55HaWlFs','signal','status','get','719721BMPjsg','message','includes','2SNVztS','TypeError','13XYAnoa','732263ngpRTX','ENOTFOUND','5021508knljAc','521368zSfcRL','862050ifbjNW','fetch','application/json','name','40uBAwSV'];a196_0x3293=function(){return _0x597194;};return a196_0x3293();}export async function httpRequest(_0x439a89,_0x5ae09b={}){const _0x53f31a=a196_0xf15e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5ae09b;let _0x52b105=null;for(let _0x13044e=0x0;_0x13044e<=retries;_0x13044e++){try{const _0x29f001=new AbortController(),_0x5839da=setTimeout(()=>_0x29f001[_0x53f31a(0x1f5)](),timeout),_0x37b19d=await fetch(_0x439a89,{'headers':headers,'signal':_0x29f001[_0x53f31a(0x1df)]});clearTimeout(_0x5839da);let _0x3334f0;const _0x360bda=_0x37b19d[_0x53f31a(0x1f7)][_0x53f31a(0x1e1)](_0x53f31a(0x1f4));return _0x360bda?.['includes'](_0x53f31a(0x1ee))?_0x3334f0=await _0x37b19d[_0x53f31a(0x1da)]():_0x3334f0=await _0x37b19d[_0x53f31a(0x1db)](),{'ok':_0x37b19d['ok'],'status':_0x37b19d[_0x53f31a(0x1e0)],'statusText':_0x37b19d[_0x53f31a(0x1f2)],'data':_0x3334f0,'headers':_0x37b19d[_0x53f31a(0x1f7)],'url':_0x37b19d[_0x53f31a(0x1f9)],'text':()=>_0x37b19d[_0x53f31a(0x1db)]()};}catch(_0x19c90b){_0x52b105=_0x19c90b instanceof Error?_0x19c90b:new Error(String(_0x19c90b));if(_0x13044e===retries)break;if(shouldRetry(_0x19c90b)){console[_0x53f31a(0x1d9)](_0x53f31a(0x1dd)+retryDelay+'ms\x20后进行第\x20'+(_0x13044e+0x1)+_0x53f31a(0x1dc)),await sleep(retryDelay);continue;}else break;}}throw _0x52b105||new Error(_0x53f31a(0x1f6));}function shouldRetry(_0x321541){const _0x3dd3eb=a196_0xf15e;if(_0x321541 instanceof Error){if(_0x321541[_0x3dd3eb(0x1ef)]==='AbortError')return![];if(_0x321541[_0x3dd3eb(0x1ef)]===_0x3dd3eb(0x1e6)&&_0x321541[_0x3dd3eb(0x1e3)][_0x3dd3eb(0x1e4)](_0x3dd3eb(0x1ed)))return!![];if(_0x321541[_0x3dd3eb(0x1e3)]['includes']('ECONNRESET'))return!![];if(_0x321541[_0x3dd3eb(0x1e3)][_0x3dd3eb(0x1e4)](_0x3dd3eb(0x1e9)))return![];}return![];}function sleep(_0x1d9d31){return new Promise(_0x173ec0=>setTimeout(_0x173ec0,_0x1d9d31));}function a196_0xf15e(_0x3bd75e,_0x235b1c){_0x3bd75e=_0x3bd75e-0x1d8;const _0x3293fc=a196_0x3293();let _0xf15e47=_0x3293fc[_0x3bd75e];return _0xf15e47;}export function validateUrl(_0x362d69){try{return new URL(_0x362d69),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a197_0x1e94(_0x3caa8f,_0x208cf4){_0x3caa8f=_0x3caa8f-0xd5;const _0x1b6a77=a197_0x1b6a();let _0x1e9421=_0x1b6a77[_0x3caa8f];return _0x1e9421;}(function(_0x4fcf76,_0x3c2f90){const _0x312d2f=a197_0x1e94,_0x3170d2=_0x4fcf76();while(!![]){try{const _0x57b303=-parseInt(_0x312d2f(0xd8))/0x1+parseInt(_0x312d2f(0xe2))/0x2+-parseInt(_0x312d2f(0xe3))/0x3+-parseInt(_0x312d2f(0xe1))/0x4+parseInt(_0x312d2f(0xdf))/0x5*(-parseInt(_0x312d2f(0xd5))/0x6)+parseInt(_0x312d2f(0xdb))/0x7+parseInt(_0x312d2f(0xe0))/0x8*(parseInt(_0x312d2f(0xdc))/0x9);if(_0x57b303===_0x3c2f90)break;else _0x3170d2['push'](_0x3170d2['shift']());}catch(_0x5d2e5e){_0x3170d2['push'](_0x3170d2['shift']());}}}(a197_0x1b6a,0x1edcb));function env(_0x29c0f6){return process.env[`RABETBASE_${_0x29c0f6}`]||process.env[`LOVRABET_${_0x29c0f6}`]||undefined;}export function isNonInteractive(_0x23ddbf){const _0x3194c7=a197_0x1e94;return!!(_0x23ddbf['nonInteractive']||_0x23ddbf['ci']||env('CI')==='true'||process.env.CI===_0x3194c7(0xda)||!process[_0x3194c7(0xd6)][_0x3194c7(0xde)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4db890=a197_0x1e94;if(!process['stdin']['isTTY'])return![];try{const _0x38c37d=process[_0x4db890(0xd9)][_0x4db890(0xd7)];return process[_0x4db890(0xd9)][_0x4db890(0xdd)](!![]),process[_0x4db890(0xd9)][_0x4db890(0xdd)](_0x38c37d??![]),!![];}catch{return![];}}function a197_0x1b6a(){const _0x25af9a=['stdin','true','1403710QBzTUF','3177jzONGM','setRawMode','isTTY','395bggrpM','6896PONLAY','67024PRRvdV','78024VHZNij','363225LhFGnA','3270bWSSgR','stdout','isRaw','236531BpjTjE'];a197_0x1b6a=function(){return _0x25af9a;};return a197_0x1b6a();}
1
+ (function(_0x50538e,_0x58c49b){const _0x5c0fad=a197_0xe237,_0x3825d2=_0x50538e();while(!![]){try{const _0x1a4113=-parseInt(_0x5c0fad(0x10f))/0x1+-parseInt(_0x5c0fad(0x111))/0x2+-parseInt(_0x5c0fad(0x109))/0x3*(parseInt(_0x5c0fad(0x108))/0x4)+parseInt(_0x5c0fad(0x107))/0x5*(parseInt(_0x5c0fad(0x112))/0x6)+-parseInt(_0x5c0fad(0x10c))/0x7*(parseInt(_0x5c0fad(0x10a))/0x8)+parseInt(_0x5c0fad(0x10d))/0x9+-parseInt(_0x5c0fad(0x110))/0xa*(-parseInt(_0x5c0fad(0x103))/0xb);if(_0x1a4113===_0x58c49b)break;else _0x3825d2['push'](_0x3825d2['shift']());}catch(_0x15b10d){_0x3825d2['push'](_0x3825d2['shift']());}}}(a197_0x573e,0x1870d));function env(_0x16d93f){return process.env[`RABETBASE_${_0x16d93f}`]||process.env[`LOVRABET_${_0x16d93f}`]||undefined;}export function isNonInteractive(_0x2e6234){const _0x104f2a=a197_0xe237;return!!(_0x2e6234[_0x104f2a(0x106)]||_0x2e6234['ci']||env('CI')===_0x104f2a(0x113)||process.env.CI===_0x104f2a(0x113)||!process[_0x104f2a(0x104)][_0x104f2a(0x10b)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x34c0d1=a197_0xe237;if(!process[_0x34c0d1(0x10e)]['isTTY'])return![];try{const _0xaafd03=process[_0x34c0d1(0x10e)]['isRaw'];return process[_0x34c0d1(0x10e)]['setRawMode'](!![]),process[_0x34c0d1(0x10e)][_0x34c0d1(0x105)](_0xaafd03??![]),!![];}catch{return![];}}function a197_0xe237(_0x1c73d0,_0x9503f7){_0x1c73d0=_0x1c73d0-0x103;const _0x573ea4=a197_0x573e();let _0xe237e4=_0x573ea4[_0x1c73d0];return _0xe237e4;}function a197_0x573e(){const _0x5a75bb=['true','4740923lyWkgE','stdout','setRawMode','nonInteractive','988915hZNSeF','676708LOrSeK','3BkrxAE','3496qWIGCC','isTTY','721wwsXqR','257661KFlZlz','stdin','145145UxjWBj','10FCPIbl','395926WCacjf','6nbrQgc'];a197_0x573e=function(){return _0x5a75bb;};return a197_0x573e();}
@@ -1 +1 @@
1
- const a198_0x5cff09=a198_0x1365;(function(_0x5a4b92,_0x1e801d){const _0x484b08=a198_0x1365,_0x196b26=_0x5a4b92();while(!![]){try{const _0xdc8be8=parseInt(_0x484b08(0x89))/0x1+-parseInt(_0x484b08(0xb6))/0x2+-parseInt(_0x484b08(0xa4))/0x3*(-parseInt(_0x484b08(0x99))/0x4)+-parseInt(_0x484b08(0x84))/0x5+-parseInt(_0x484b08(0xbd))/0x6*(parseInt(_0x484b08(0x9f))/0x7)+-parseInt(_0x484b08(0xa6))/0x8*(parseInt(_0x484b08(0x85))/0x9)+parseInt(_0x484b08(0x87))/0xa*(parseInt(_0x484b08(0x8d))/0xb);if(_0xdc8be8===_0x1e801d)break;else _0x196b26['push'](_0x196b26['shift']());}catch(_0xbf4fe0){_0x196b26['push'](_0x196b26['shift']());}}}(a198_0x4a4a,0x45f91));import a198_0x650db9 from'winston';import a198_0x175335 from'node:fs';function a198_0x1365(_0x20fe64,_0x5e63c5){_0x20fe64=_0x20fe64-0x84;const _0x4a4ab9=a198_0x4a4a();let _0x136597=_0x4a4ab9[_0x20fe64];return _0x136597;}import a198_0xc9d404 from'node:path';class Logger{[a198_0x5cff09(0x98)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x4f4b0a){const _0x20f24a=a198_0x5cff09;this[_0x20f24a(0xa7)]=_0x4f4b0a;}[a198_0x5cff09(0xb1)](){const _0x45adfd=a198_0x5cff09,_0x57c90a=a198_0xc9d404[_0x45adfd(0xbe)](this['logFilePath']);!a198_0x175335['existsSync'](_0x57c90a)&&a198_0x175335[_0x45adfd(0xb9)](_0x57c90a,{'recursive':!![]});const _0xda758c=a198_0x650db9[_0x45adfd(0x95)]['combine'](a198_0x650db9['format'][_0x45adfd(0xab)](),a198_0x650db9[_0x45adfd(0x95)][_0x45adfd(0xb7)]({'stack':!![]}),a198_0x650db9['format'][_0x45adfd(0x8f)](_0x2f9c78=>{const _0xdb4f3b=_0x45adfd,_0x1d4b90={'timestamp':_0x2f9c78[_0xdb4f3b(0xab)]||new Date()[_0xdb4f3b(0xa9)](),'level':_0x2f9c78['level']||_0xdb4f3b(0xbb),'command':_0x2f9c78[_0xdb4f3b(0x8a)]||_0xdb4f3b(0xaf),'rawCommand':_0x2f9c78[_0xdb4f3b(0x9c)]||this[_0xdb4f3b(0xa7)]||undefined,'message':_0x2f9c78[_0xdb4f3b(0x92)]||'','duration':_0x2f9c78[_0xdb4f3b(0xa2)]||undefined,'details':_0x2f9c78[_0xdb4f3b(0x94)]||undefined};return JSON[_0xdb4f3b(0x8c)](_0x1d4b90);}));this[_0x45adfd(0x98)]=a198_0x650db9[_0x45adfd(0xa0)]({'level':_0x45adfd(0xbb),'format':_0xda758c,'transports':[new a198_0x650db9['transports'][(_0x45adfd(0xb3))]({'filename':this[_0x45adfd(0xbc)],'level':'info'})],'silent':![]}),a198_0x650db9[_0x45adfd(0xa5)]({'success':_0x45adfd(0xbf),'error':_0x45adfd(0xb4),'warn':_0x45adfd(0xb5),'info':_0x45adfd(0x91)});}[a198_0x5cff09(0x97)](_0x313711){const _0x2e314c=a198_0x5cff09;this[_0x2e314c(0xbc)]=a198_0xc9d404[_0x2e314c(0xb8)](_0x313711,_0x2e314c(0x9e)),this[_0x2e314c(0x98)]&&this[_0x2e314c(0x98)][_0x2e314c(0x9a)](),this['initWinstonLogger']();}[a198_0x5cff09(0xbb)](_0x8f14b1,_0x5a385e,_0x37c100){const _0x3a55ac=a198_0x5cff09;if(!this[_0x3a55ac(0xbc)]||!this[_0x3a55ac(0x98)])return;this[_0x3a55ac(0x98)]['info'](_0x5a385e,{'command':_0x8f14b1,'details':_0x37c100});}[a198_0x5cff09(0x9d)](_0x50478a,_0x1ab172,_0xe0e50a,_0x9de8fd){const _0x310a82=a198_0x5cff09;if(!this[_0x310a82(0xbc)]||!this[_0x310a82(0x98)])return;this[_0x310a82(0x98)][_0x310a82(0x90)](_0x310a82(0xbb),_0x1ab172,{'level':_0x310a82(0x9d),'command':_0x50478a,'duration':_0xe0e50a,'details':_0x9de8fd});}[a198_0x5cff09(0x88)](_0x18b51f,_0x452078,_0x51c6b9){const _0x1a1042=a198_0x5cff09;if(!this[_0x1a1042(0xbc)]||!this[_0x1a1042(0x98)])return;this[_0x1a1042(0x98)][_0x1a1042(0x88)](_0x452078,{'command':_0x18b51f,'details':_0x51c6b9});}['warn'](_0x527fd8,_0x3a364a,_0x323d3e){const _0x2797e1=a198_0x5cff09;if(!this[_0x2797e1(0xbc)]||!this['winstonLogger'])return;this[_0x2797e1(0x98)][_0x2797e1(0x8e)](_0x3a364a,{'command':_0x527fd8,'details':_0x323d3e});}async[a198_0x5cff09(0x8b)](_0x181d5c,_0x34748a,_0x31119c){const _0x40654c=a198_0x5cff09,_0x44c3a5=Date['now']();this[_0x40654c(0xbb)](_0x181d5c,_0x40654c(0x93)+_0x34748a);try{const _0x48a337=await _0x31119c(),_0x1ce76d=Date[_0x40654c(0xb2)]()-_0x44c3a5;return this[_0x40654c(0x9d)](_0x181d5c,_0x40654c(0x9b)+_0x34748a,_0x1ce76d),_0x48a337;}catch(_0x2bf1ee){const _0x38cfd5=Date['now']()-_0x44c3a5;this['error'](_0x181d5c,_0x40654c(0xac)+_0x34748a,{'error':_0x2bf1ee instanceof Error?_0x2bf1ee[_0x40654c(0x92)]:String(_0x2bf1ee),'duration':_0x38cfd5});throw _0x2bf1ee;}}['readLogs'](){const _0x5a93c9=a198_0x5cff09;try{if(!a198_0x175335[_0x5a93c9(0xa3)](this[_0x5a93c9(0xbc)]))return[];const _0x534c4d=a198_0x175335['readFileSync'](this[_0x5a93c9(0xbc)],_0x5a93c9(0xa1));return _0x534c4d[_0x5a93c9(0x86)]('\x0a')[_0x5a93c9(0x96)](_0x497813=>_0x497813[_0x5a93c9(0xae)]())[_0x5a93c9(0xad)](_0x549a5b=>JSON['parse'](_0x549a5b));}catch(_0x59564c){return console[_0x5a93c9(0x8e)](_0x5a93c9(0xa8),_0x59564c),[];}}['clearLogs'](){const _0x37ab33=a198_0x5cff09;try{a198_0x175335[_0x37ab33(0xa3)](this[_0x37ab33(0xbc)])&&a198_0x175335[_0x37ab33(0xb0)](this[_0x37ab33(0xbc)],'',_0x37ab33(0xa1));}catch(_0x2fe980){console[_0x37ab33(0x8e)](_0x37ab33(0xaa),_0x2fe980);}}[a198_0x5cff09(0xba)](){return this['winstonLogger'];}}function a198_0x4a4a(){const _0x579437=['6yUkHIL','addColors','526664XYQMgi','currentRawCommand','Failed\x20to\x20read\x20logs:','toISOString','Failed\x20to\x20clear\x20logs:','timestamp','失败:\x20','map','trim','unknown','writeFileSync','initWinstonLogger','now','File','red','yellow','870326PpErQM','errors','join','mkdirSync','getWinstonInstance','info','logFilePath','6LMNadw','dirname','green','2381425yVNKfV','72olcmQj','split','12897430FaoxTi','error','301035FkzCeK','command','logTask','stringify','11kbuEKZ','warn','printf','log','blue','message','开始执行:\x20','details','format','filter','setLogPath','winstonLogger','430276sobwCn','clear','完成:\x20','rawCommand','success','.lovrabet.log','568365riZkfT','createLogger','utf8','duration','existsSync'];a198_0x4a4a=function(){return _0x579437;};return a198_0x4a4a();}export const logger=new Logger();
1
+ const a198_0x1d5293=a198_0x38db;function a198_0x38db(_0x392927,_0x38f604){_0x392927=_0x392927-0x12b;const _0x51956f=a198_0x5195();let _0x38db6c=_0x51956f[_0x392927];return _0x38db6c;}function a198_0x5195(){const _0x1d2279=['initWinstonLogger','errors','transports','dirname','timestamp','1011973RmBjxJ','logTask','失败:\x20','trim','filter','parse','success','Failed\x20to\x20read\x20logs:','error','26924799iTBpvg','setLogPath','49FvVpzI','1505259GWOARy','green','join','Failed\x20to\x20clear\x20logs:','readFileSync','log','logFilePath','2mGoCbt','blue','.lovrabet.log','35795gpEexG','addColors','59416CTPOHY','level','yellow','stringify','getWinstonInstance','map','details','30djvRuf','rawCommand','split','now','5889636zsEyCL','168tPRfrC','red','message','printf','utf8','existsSync','currentRawCommand','warn','toISOString','4477671UIxZEn','createLogger','duration','winstonLogger','writeFileSync','开始执行:\x20','command','format','info'];a198_0x5195=function(){return _0x1d2279;};return a198_0x5195();}(function(_0x1e0c94,_0x5a244d){const _0x24c732=a198_0x38db,_0x362a15=_0x1e0c94();while(!![]){try{const _0xfb3671=parseInt(_0x24c732(0x134))/0x1+-parseInt(_0x24c732(0x147))/0x2*(parseInt(_0x24c732(0x161))/0x3)+-parseInt(_0x24c732(0x157))/0x4+-parseInt(_0x24c732(0x14a))/0x5*(parseInt(_0x24c732(0x158))/0x6)+parseInt(_0x24c732(0x13f))/0x7*(parseInt(_0x24c732(0x14c))/0x8)+-parseInt(_0x24c732(0x140))/0x9*(-parseInt(_0x24c732(0x153))/0xa)+parseInt(_0x24c732(0x13d))/0xb;if(_0xfb3671===_0x5a244d)break;else _0x362a15['push'](_0x362a15['shift']());}catch(_0x486890){_0x362a15['push'](_0x362a15['shift']());}}}(a198_0x5195,0xcf086));import a198_0x327710 from'winston';import a198_0x3acf17 from'node:fs';import a198_0x254a83 from'node:path';class Logger{[a198_0x1d5293(0x164)];[a198_0x1d5293(0x146)];[a198_0x1d5293(0x15e)]='';constructor(){const _0xa203b5=a198_0x1d5293;this[_0xa203b5(0x146)]='';}['setRawCommand'](_0x526e9a){const _0x3d9270=a198_0x1d5293;this[_0x3d9270(0x15e)]=_0x526e9a;}[a198_0x1d5293(0x12f)](){const _0x42d326=a198_0x1d5293,_0x5160ab=a198_0x254a83[_0x42d326(0x132)](this[_0x42d326(0x146)]);!a198_0x3acf17[_0x42d326(0x15d)](_0x5160ab)&&a198_0x3acf17['mkdirSync'](_0x5160ab,{'recursive':!![]});const _0x3cc1a4=a198_0x327710[_0x42d326(0x12d)]['combine'](a198_0x327710[_0x42d326(0x12d)][_0x42d326(0x133)](),a198_0x327710[_0x42d326(0x12d)][_0x42d326(0x130)]({'stack':!![]}),a198_0x327710['format'][_0x42d326(0x15b)](_0x201097=>{const _0x211ef0=_0x42d326,_0x2a3c65={'timestamp':_0x201097[_0x211ef0(0x133)]||new Date()[_0x211ef0(0x160)](),'level':_0x201097[_0x211ef0(0x14d)]||'info','command':_0x201097[_0x211ef0(0x12c)]||'unknown','rawCommand':_0x201097[_0x211ef0(0x154)]||this[_0x211ef0(0x15e)]||undefined,'message':_0x201097[_0x211ef0(0x15a)]||'','duration':_0x201097[_0x211ef0(0x163)]||undefined,'details':_0x201097[_0x211ef0(0x152)]||undefined};return JSON[_0x211ef0(0x14f)](_0x2a3c65);}));this[_0x42d326(0x164)]=a198_0x327710[_0x42d326(0x162)]({'level':_0x42d326(0x12e),'format':_0x3cc1a4,'transports':[new a198_0x327710[(_0x42d326(0x131))]['File']({'filename':this[_0x42d326(0x146)],'level':'info'})],'silent':![]}),a198_0x327710[_0x42d326(0x14b)]({'success':_0x42d326(0x141),'error':_0x42d326(0x159),'warn':_0x42d326(0x14e),'info':_0x42d326(0x148)});}[a198_0x1d5293(0x13e)](_0x40480b){const _0x18ad59=a198_0x1d5293;this[_0x18ad59(0x146)]=a198_0x254a83[_0x18ad59(0x142)](_0x40480b,_0x18ad59(0x149)),this[_0x18ad59(0x164)]&&this[_0x18ad59(0x164)]['clear'](),this[_0x18ad59(0x12f)]();}[a198_0x1d5293(0x12e)](_0x2cc677,_0x334e55,_0x196fc9){const _0x4cb3f2=a198_0x1d5293;if(!this[_0x4cb3f2(0x146)]||!this[_0x4cb3f2(0x164)])return;this[_0x4cb3f2(0x164)]['info'](_0x334e55,{'command':_0x2cc677,'details':_0x196fc9});}[a198_0x1d5293(0x13a)](_0x5d7b9c,_0x55ab77,_0x4988fe,_0x31f672){const _0x54abc1=a198_0x1d5293;if(!this[_0x54abc1(0x146)]||!this['winstonLogger'])return;this[_0x54abc1(0x164)][_0x54abc1(0x145)](_0x54abc1(0x12e),_0x55ab77,{'level':'success','command':_0x5d7b9c,'duration':_0x4988fe,'details':_0x31f672});}['error'](_0x5affda,_0x38d4e7,_0x2f5b0c){const _0x50b249=a198_0x1d5293;if(!this[_0x50b249(0x146)]||!this[_0x50b249(0x164)])return;this[_0x50b249(0x164)][_0x50b249(0x13c)](_0x38d4e7,{'command':_0x5affda,'details':_0x2f5b0c});}['warn'](_0x345d16,_0x4ad023,_0x1aaf79){const _0x31135b=a198_0x1d5293;if(!this[_0x31135b(0x146)]||!this[_0x31135b(0x164)])return;this['winstonLogger']['warn'](_0x4ad023,{'command':_0x345d16,'details':_0x1aaf79});}async[a198_0x1d5293(0x135)](_0x5e0382,_0x395732,_0x4ff6d0){const _0x485835=a198_0x1d5293,_0x1e6503=Date[_0x485835(0x156)]();this[_0x485835(0x12e)](_0x5e0382,_0x485835(0x12b)+_0x395732);try{const _0x5051f3=await _0x4ff6d0(),_0x1b612f=Date[_0x485835(0x156)]()-_0x1e6503;return this[_0x485835(0x13a)](_0x5e0382,'完成:\x20'+_0x395732,_0x1b612f),_0x5051f3;}catch(_0x34aa17){const _0x355b24=Date[_0x485835(0x156)]()-_0x1e6503;this['error'](_0x5e0382,_0x485835(0x136)+_0x395732,{'error':_0x34aa17 instanceof Error?_0x34aa17[_0x485835(0x15a)]:String(_0x34aa17),'duration':_0x355b24});throw _0x34aa17;}}['readLogs'](){const _0x589dd5=a198_0x1d5293;try{if(!a198_0x3acf17[_0x589dd5(0x15d)](this[_0x589dd5(0x146)]))return[];const _0x410028=a198_0x3acf17[_0x589dd5(0x144)](this[_0x589dd5(0x146)],_0x589dd5(0x15c));return _0x410028[_0x589dd5(0x155)]('\x0a')[_0x589dd5(0x138)](_0x5c5237=>_0x5c5237[_0x589dd5(0x137)]())[_0x589dd5(0x151)](_0x208279=>JSON[_0x589dd5(0x139)](_0x208279));}catch(_0x4f1eac){return console[_0x589dd5(0x15f)](_0x589dd5(0x13b),_0x4f1eac),[];}}['clearLogs'](){const _0x50cc5f=a198_0x1d5293;try{a198_0x3acf17[_0x50cc5f(0x15d)](this['logFilePath'])&&a198_0x3acf17[_0x50cc5f(0x165)](this[_0x50cc5f(0x146)],'',_0x50cc5f(0x15c));}catch(_0x225366){console[_0x50cc5f(0x15f)](_0x50cc5f(0x143),_0x225366);}}[a198_0x1d5293(0x150)](){const _0x12da75=a198_0x1d5293;return this[_0x12da75(0x164)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x2414be,_0x1c88ab){const _0x1f284e=a199_0x2604,_0x49e8f2=_0x2414be();while(!![]){try{const _0x5ae8fc=parseInt(_0x1f284e(0x13e))/0x1*(-parseInt(_0x1f284e(0x12e))/0x2)+-parseInt(_0x1f284e(0x132))/0x3+-parseInt(_0x1f284e(0x12f))/0x4+-parseInt(_0x1f284e(0x13a))/0x5*(parseInt(_0x1f284e(0x12d))/0x6)+-parseInt(_0x1f284e(0x130))/0x7+-parseInt(_0x1f284e(0x13c))/0x8*(-parseInt(_0x1f284e(0x137))/0x9)+-parseInt(_0x1f284e(0x131))/0xa*(-parseInt(_0x1f284e(0x138))/0xb);if(_0x5ae8fc===_0x1c88ab)break;else _0x49e8f2['push'](_0x49e8f2['shift']());}catch(_0x503357){_0x49e8f2['push'](_0x49e8f2['shift']());}}}(a199_0x34fc,0x453b5));function a199_0x2604(_0x160c20,_0x52dcf6){_0x160c20=_0x160c20-0x12d;const _0x34fc17=a199_0x34fc();let _0x2604ab=_0x34fc17[_0x160c20];return _0x2604ab;}import{CliErrors}from'../errors.js';function a199_0x34fc(){const _0x14d8f4=['2wzXKum','623244MAYZVe','527415eYSLpX','310sgLGoX','1380963ihfloh','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','parse','validation','171pmRzAh','245872zPrrPR','isArray','125ePQPnX','--params\x20must\x20be\x20a\x20JSON\x20object','189320XSYcZd','Invalid\x20JSON\x20for\x20--params:\x20','97047vPgTNH','16908viCmzC'];a199_0x34fc=function(){return _0x14d8f4;};return a199_0x34fc();}export function parseJsonParams(_0x20aac1){const _0xa03792=a199_0x2604;if(!_0x20aac1)return undefined;let _0x14eeec;try{_0x14eeec=JSON[_0xa03792(0x135)](_0x20aac1);}catch{throw CliErrors[_0xa03792(0x136)](_0xa03792(0x13d)+_0x20aac1);}if(!_0x14eeec||typeof _0x14eeec!==_0xa03792(0x134)||Array[_0xa03792(0x139)](_0x14eeec))throw CliErrors[_0xa03792(0x136)](_0xa03792(0x13b),_0xa03792(0x133));return _0x14eeec;}
1
+ function a199_0x4659(_0x21ebc9,_0x1a4617){_0x21ebc9=_0x21ebc9-0x193;const _0x2505bd=a199_0x2505();let _0x4659d5=_0x2505bd[_0x21ebc9];return _0x4659d5;}function a199_0x2505(){const _0x134065=['894MLTsmM','16mCaMZM','--params\x20must\x20be\x20a\x20JSON\x20object','10GOtgGj','12ShYWPm','4582292bNsyIy','48fkCPRL','42252KPhgWx','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','parse','Invalid\x20JSON\x20for\x20--params:\x20','validation','7657bzfsfO','17059UEGKBh','1674453SokcQg','6319899ffAaeF','47029uQEExr','6414475tVoPtD'];a199_0x2505=function(){return _0x134065;};return a199_0x2505();}(function(_0xff049b,_0x7eaa26){const _0x46efd7=a199_0x4659,_0x40b8e7=_0xff049b();while(!![]){try{const _0x2ebf2b=parseInt(_0x46efd7(0x19b))/0x1*(parseInt(_0x46efd7(0x1a3))/0x2)+parseInt(_0x46efd7(0x199))/0x3*(-parseInt(_0x46efd7(0x1a1))/0x4)+-parseInt(_0x46efd7(0x19c))/0x5+-parseInt(_0x46efd7(0x19d))/0x6*(parseInt(_0x46efd7(0x198))/0x7)+-parseInt(_0x46efd7(0x19e))/0x8*(-parseInt(_0x46efd7(0x19a))/0x9)+parseInt(_0x46efd7(0x1a0))/0xa*(-parseInt(_0x46efd7(0x1a2))/0xb)+parseInt(_0x46efd7(0x1a4))/0xc*(parseInt(_0x46efd7(0x197))/0xd);if(_0x2ebf2b===_0x7eaa26)break;else _0x40b8e7['push'](_0x40b8e7['shift']());}catch(_0xacbcff){_0x40b8e7['push'](_0x40b8e7['shift']());}}}(a199_0x2505,0xd4642));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x529829){const _0x1c345f=a199_0x4659;if(!_0x529829)return undefined;let _0x242666;try{_0x242666=JSON[_0x1c345f(0x194)](_0x529829);}catch{throw CliErrors[_0x1c345f(0x196)](_0x1c345f(0x195)+_0x529829);}if(!_0x242666||typeof _0x242666!=='object'||Array['isArray'](_0x242666))throw CliErrors['validation'](_0x1c345f(0x19f),_0x1c345f(0x193));return _0x242666;}
@@ -1 +1 @@
1
- (function(_0x3ac7a5,_0x55d4fa){const _0x3dfbd2=a200_0x3f3f,_0x15a55e=_0x3ac7a5();while(!![]){try{const _0x344524=-parseInt(_0x3dfbd2(0xcf))/0x1+parseInt(_0x3dfbd2(0xcd))/0x2+-parseInt(_0x3dfbd2(0xd0))/0x3+-parseInt(_0x3dfbd2(0xca))/0x4*(parseInt(_0x3dfbd2(0xcb))/0x5)+parseInt(_0x3dfbd2(0xd1))/0x6+-parseInt(_0x3dfbd2(0xc8))/0x7*(-parseInt(_0x3dfbd2(0xc9))/0x8)+parseInt(_0x3dfbd2(0xce))/0x9;if(_0x344524===_0x55d4fa)break;else _0x15a55e['push'](_0x15a55e['shift']());}catch(_0x40e7b7){_0x15a55e['push'](_0x15a55e['shift']());}}}(a200_0x14f6,0xab6cc));export const isWindows=process['platform']==='win32';function a200_0x3f3f(_0x152340,_0x227e7a){_0x152340=_0x152340-0xc8;const _0x14f6a9=a200_0x14f6();let _0x3f3f57=_0x14f6a9[_0x152340];return _0x3f3f57;}export function resolveNpmBin(_0x335064){const _0xa83af7=a200_0x3f3f;return isWindows?_0x335064+_0xa83af7(0xcc):_0x335064;}function a200_0x14f6(){const _0x5824c1=['73952ACpLrS','12pUJNRG','2264865DjLPkN','.cmd','2503968aEyhyD','12603393faAaRk','176508byazsl','3319668KVLjkK','1211076ntFmgG','371XmVxIn'];a200_0x14f6=function(){return _0x5824c1;};return a200_0x14f6();}
1
+ const a200_0x4f543b=a200_0xbfbb;function a200_0xbfbb(_0x1cc352,_0x4c09c5){_0x1cc352=_0x1cc352-0x1c9;const _0x3b07b2=a200_0x3b07();let _0xbfbbc5=_0x3b07b2[_0x1cc352];return _0xbfbbc5;}(function(_0x134177,_0x3e0014){const _0x2f209b=a200_0xbfbb,_0x2b173b=_0x134177();while(!![]){try{const _0x1593f4=-parseInt(_0x2f209b(0x1cb))/0x1*(parseInt(_0x2f209b(0x1d7))/0x2)+parseInt(_0x2f209b(0x1ce))/0x3+parseInt(_0x2f209b(0x1c9))/0x4*(-parseInt(_0x2f209b(0x1d3))/0x5)+-parseInt(_0x2f209b(0x1d5))/0x6+parseInt(_0x2f209b(0x1ca))/0x7*(parseInt(_0x2f209b(0x1d1))/0x8)+-parseInt(_0x2f209b(0x1d0))/0x9*(parseInt(_0x2f209b(0x1d4))/0xa)+-parseInt(_0x2f209b(0x1d2))/0xb*(-parseInt(_0x2f209b(0x1cc))/0xc);if(_0x1593f4===_0x3e0014)break;else _0x2b173b['push'](_0x2b173b['shift']());}catch(_0x346362){_0x2b173b['push'](_0x2b173b['shift']());}}}(a200_0x3b07,0xc1247));export const isWindows=process[a200_0x4f543b(0x1cf)]===a200_0x4f543b(0x1d6);export function resolveNpmBin(_0x30f257){const _0x30c69d=a200_0x4f543b;return isWindows?_0x30f257+_0x30c69d(0x1cd):_0x30f257;}function a200_0x3b07(){const _0x1084bf=['8HVwCwz','898540ubkgTe','5861429aeBwLP','236339DIcvEc','97116Pijdrj','.cmd','859956UeINDa','platform','176184VDvOHa','8LWEBMg','4290Glerjl','15oLfpwu','640phkIDS','3702198WADCkk','win32'];a200_0x3b07=function(){return _0x1084bf;};return a200_0x3b07();}
@@ -1 +1 @@
1
- (function(_0x353426,_0x2d46c3){const _0x282d68=a201_0x4d10,_0x2f0178=_0x353426();while(!![]){try{const _0x12c181=-parseInt(_0x282d68(0x1de))/0x1+-parseInt(_0x282d68(0x1df))/0x2+-parseInt(_0x282d68(0x1d0))/0x3+parseInt(_0x282d68(0x1d8))/0x4*(parseInt(_0x282d68(0x1d1))/0x5)+parseInt(_0x282d68(0x1d3))/0x6+parseInt(_0x282d68(0x1da))/0x7+parseInt(_0x282d68(0x1d2))/0x8;if(_0x12c181===_0x2d46c3)break;else _0x2f0178['push'](_0x2f0178['shift']());}catch(_0x52672a){_0x2f0178['push'](_0x2f0178['shift']());}}}(a201_0x450a,0xbe982));function a201_0x4d10(_0x369681,_0x27c68c){_0x369681=_0x369681-0x1cb;const _0x450ac8=a201_0x450a();let _0x4d10ad=_0x450ac8[_0x369681];return _0x4d10ad;}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 _0x5da913=a201_0x4d10,_0x4cd4a8=getTemplateBaseUrl();return _0x4cd4a8+_0x5da913(0x1cb);}function a201_0x450a(){const _0x187bab=['/rules/rules.json','lastUpdated','status','CDN\x20请求失败:\x20','content','1385163sHlVnq','5MWEiax','1060520CfVZbQ','5878104hZKhPJ','.cursor/rules','json','catch','lovrabet_rules.mdc','4306852wIEYtT','application/json','2548448eNNNNf','string','statusText','本地模板文件不存在:\x20','841899gGyivU','937464QqkiUD','utf-8','agents.md','CDN\x20返回数据格式错误'];a201_0x450a=function(){return _0x187bab;};return a201_0x450a();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2407f9=a201_0x4d10,_0x4829df=getRulesCdnUrl(),_0xbfe90b=await fetch(_0x4829df,{'headers':{'Accept':_0x2407f9(0x1d9)}});if(!_0xbfe90b['ok'])throw new Error(_0x2407f9(0x1ce)+_0xbfe90b[_0x2407f9(0x1cd)]+'\x20'+_0xbfe90b[_0x2407f9(0x1dc)]);const _0x1b0bb7=await _0xbfe90b[_0x2407f9(0x1d5)]();if(!_0x1b0bb7[_0x2407f9(0x1cf)]||typeof _0x1b0bb7[_0x2407f9(0x1cf)]!==_0x2407f9(0x1db))throw new Error(_0x2407f9(0x1e2));return _0x1b0bb7;}export async function getRulesContent(){const _0x49a01a=a201_0x4d10;try{const _0x42fff1=await fetchRulesFromCDN();return _0x42fff1[_0x49a01a(0x1cf)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2fd8ce=a201_0x4d10;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2fd8ce(0x1e0));throw new Error(_0x2fd8ce(0x1dd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x492954){const _0x2ac99=a201_0x4d10,_0x9c489d=await fetchRulesFromCDN()[_0x2ac99(0x1d6)](()=>null);let _0x1531c4;_0x9c489d?(_0x1531c4=_0x9c489d[_0x2ac99(0x1cf)],_0x9c489d[_0x2ac99(0x1cc)]&&(_0x1531c4=appendUpdateTime(_0x1531c4,_0x9c489d[_0x2ac99(0x1cc)]))):_0x1531c4=readLocalTemplate();const _0x1a3a9a=dirname(_0x492954);!existsSync(_0x1a3a9a)&&mkdirSync(_0x1a3a9a,{'recursive':!![]}),writeFileSync(_0x492954,_0x1531c4,_0x2ac99(0x1e0));}export async function copyRulesToCursor(_0x34b38d){const _0x27cd07=a201_0x4d10,_0xf73ee2=join(_0x34b38d,_0x27cd07(0x1d4)),_0x279478=join(_0xf73ee2,_0x27cd07(0x1d7));if(existsSync(_0x279478))return![];return await writeRulesFile(_0x279478),!![];}export async function copyRulesToAgentsMd(_0x334459){const _0x3d06c0=a201_0x4d10,_0x410ab6=join(_0x334459,_0x3d06c0(0x1e1));if(existsSync(_0x410ab6))return![];return await writeRulesFile(_0x410ab6),!![];}
1
+ const a201_0x1cd61d=a201_0xcde7;function a201_0xcde7(_0x1c4c60,_0xf7e046){_0x1c4c60=_0x1c4c60-0x79;const _0x5ae1c9=a201_0x5ae1();let _0xcde77d=_0x5ae1c9[_0x1c4c60];return _0xcde77d;}(function(_0x1b67ab,_0x216811){const _0x47f005=a201_0xcde7,_0x5438d7=_0x1b67ab();while(!![]){try{const _0x5c416a=parseInt(_0x47f005(0x7e))/0x1+-parseInt(_0x47f005(0x85))/0x2+parseInt(_0x47f005(0x89))/0x3*(parseInt(_0x47f005(0x7f))/0x4)+-parseInt(_0x47f005(0x8b))/0x5+parseInt(_0x47f005(0x90))/0x6*(parseInt(_0x47f005(0x7d))/0x7)+-parseInt(_0x47f005(0x7b))/0x8*(parseInt(_0x47f005(0x79))/0x9)+parseInt(_0x47f005(0x8c))/0xa;if(_0x5c416a===_0x216811)break;else _0x5438d7['push'](_0x5438d7['shift']());}catch(_0x5c5ee9){_0x5438d7['push'](_0x5438d7['shift']());}}}(a201_0x5ae1,0x4858d));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 _0xde7226=a201_0xcde7,_0x13776b=getTemplateBaseUrl();return _0x13776b+_0xde7226(0x82);}function a201_0x5ae1(){const _0x2edea0=['CDN\x20返回数据格式错误','lovrabet_rules.mdc','status','18daqnna','1583235EQcAbZ','json','8Xkecjm','.cursor/rules','564991zoTaYy','352030LbsyHh','922504JTibGc','../../templates/rules/lovrabet_rules.mdc.tpl','string','/rules/rules.json','content','CDN\x20请求失败:\x20','781138eVSlUb','agents.md','statusText','lastUpdated','3yUmNtt','catch','1088230gzoYPo','2556680MRwrSx'];a201_0x5ae1=function(){return _0x2edea0;};return a201_0x5ae1();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x1cd61d(0x80));export async function fetchRulesFromCDN(){const _0x140940=a201_0x1cd61d,_0x55de7a=getRulesCdnUrl(),_0x3697cb=await fetch(_0x55de7a,{'headers':{'Accept':'application/json'}});if(!_0x3697cb['ok'])throw new Error(_0x140940(0x84)+_0x3697cb[_0x140940(0x8f)]+'\x20'+_0x3697cb[_0x140940(0x87)]);const _0x46e27a=await _0x3697cb[_0x140940(0x7a)]();if(!_0x46e27a[_0x140940(0x83)]||typeof _0x46e27a[_0x140940(0x83)]!==_0x140940(0x81))throw new Error(_0x140940(0x8d));return _0x46e27a;}export async function getRulesContent(){try{const _0x247d35=await fetchRulesFromCDN();return _0x247d35['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1c5fe6){const _0x3efae9=a201_0x1cd61d,_0x5727cc=await fetchRulesFromCDN()[_0x3efae9(0x8a)](()=>null);let _0x57d386;_0x5727cc?(_0x57d386=_0x5727cc[_0x3efae9(0x83)],_0x5727cc[_0x3efae9(0x88)]&&(_0x57d386=appendUpdateTime(_0x57d386,_0x5727cc[_0x3efae9(0x88)]))):_0x57d386=readLocalTemplate();const _0x21801b=dirname(_0x1c5fe6);!existsSync(_0x21801b)&&mkdirSync(_0x21801b,{'recursive':!![]}),writeFileSync(_0x1c5fe6,_0x57d386,'utf-8');}export async function copyRulesToCursor(_0x275d52){const _0x1359d4=a201_0x1cd61d,_0x131d18=join(_0x275d52,_0x1359d4(0x7c)),_0x287bd5=join(_0x131d18,_0x1359d4(0x8e));if(existsSync(_0x287bd5))return![];return await writeRulesFile(_0x287bd5),!![];}export async function copyRulesToAgentsMd(_0x53f077){const _0x3cafc8=a201_0x1cd61d,_0x1d8c95=join(_0x53f077,_0x3cafc8(0x86));if(existsSync(_0x1d8c95))return![];return await writeRulesFile(_0x1d8c95),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4c0b15){return new Promise(_0x5525bb=>setTimeout(_0x5525bb,_0x4c0b15));}
1
+ export function sleep(_0x115d61){return new Promise(_0x476c4d=>setTimeout(_0x476c4d,_0x115d61));}