@lovrabet/rabetbase-cli 2.3.3-beta.4 → 2.3.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) 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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -1
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/generate.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +2 -2
  219. package/lib/commands/app/use.js +0 -1
@@ -1 +1 @@
1
- (function(_0x54c60f,_0xa625f1){const _0x5bff42=a193_0x2011,_0xec80e1=_0x54c60f();while(!![]){try{const _0x4ce513=parseInt(_0x5bff42(0x99))/0x1*(-parseInt(_0x5bff42(0x9e))/0x2)+-parseInt(_0x5bff42(0x92))/0x3*(parseInt(_0x5bff42(0x9a))/0x4)+parseInt(_0x5bff42(0x90))/0x5*(parseInt(_0x5bff42(0x94))/0x6)+-parseInt(_0x5bff42(0x8c))/0x7*(-parseInt(_0x5bff42(0x95))/0x8)+parseInt(_0x5bff42(0x98))/0x9*(-parseInt(_0x5bff42(0x96))/0xa)+-parseInt(_0x5bff42(0x8f))/0xb*(parseInt(_0x5bff42(0x8d))/0xc)+parseInt(_0x5bff42(0x9c))/0xd;if(_0x4ce513===_0xa625f1)break;else _0xec80e1['push'](_0xec80e1['shift']());}catch(_0x430474){_0xec80e1['push'](_0xec80e1['shift']());}}}(a193_0x331b,0xb7496));function a193_0x2011(_0x55cbb3,_0x5d5fee){_0x55cbb3=_0x55cbb3-0x8b;const _0x331be5=a193_0x331b();let _0x201183=_0x331be5[_0x55cbb3];return _0x201183;}function a193_0x331b(){const _0x5d0b2d=['748855dbMyHx','command','6ovcDqc','stringify','18wcpjQt','5112vrDNQE','30ELBhCi','rabetbase.command','647442yiGRMk','21059geDuME','926216UhyUNa','error','19886893AVgDht','some','82odfAAE','service','5803zWrALa','156DGUhkE','message','182534SkPZGH'];a193_0x331b=function(){return _0x5d0b2d;};return a193_0x331b();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4e10bd){const _0xf6a415=a193_0x2011;return SENSITIVE_PATTERNS[_0xf6a415(0x9d)](_0x503053=>_0x503053['test'](_0x4e10bd));}function sanitizeFlags(_0x1b6661){const _0x21a381={};for(const [_0x49ad42,_0x4c6106]of Object['entries'](_0x1b6661)){isSensitiveKey(_0x49ad42)?_0x21a381[_0x49ad42]=_0x4c6106!=null&&_0x4c6106!==''?'[REDACTED]':_0x4c6106:_0x21a381[_0x49ad42]=_0x4c6106;}return _0x21a381;}export async function reportCommandTrace(_0x3eae3e){const _0xae8fd=a193_0x2011;try{const _0x3dd617=sanitizeFlags(_0x3eae3e['flags']);await sendCliTraceLog({'spanName':_0xae8fd(0x97),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3eae3e[_0xae8fd(0x8b)],'command.name':_0x3eae3e[_0xae8fd(0x91)],'command.flags':JSON[_0xae8fd(0x93)](_0x3dd617),..._0x3eae3e['durationMs']!=null?{'command.duration_ms':_0x3eae3e['durationMs']}:{},..._0x3eae3e[_0xae8fd(0x9b)]?{'command.error':_0x3eae3e[_0xae8fd(0x9b)]instanceof Error?_0x3eae3e[_0xae8fd(0x9b)][_0xae8fd(0x8e)]:String(_0x3eae3e[_0xae8fd(0x9b)])}:{}}});}catch{}}
1
+ function a192_0xa063(_0x1ee783,_0x26ee88){_0x1ee783=_0x1ee783-0xe0;const _0x6ece5f=a192_0x6ece();let _0xa063ed=_0x6ece5f[_0x1ee783];return _0xa063ed;}(function(_0x191190,_0x41a9ce){const _0x409676=a192_0xa063,_0x49cde9=_0x191190();while(!![]){try{const _0x52adf8=-parseInt(_0x409676(0xed))/0x1+-parseInt(_0x409676(0xf1))/0x2+parseInt(_0x409676(0xea))/0x3*(parseInt(_0x409676(0xf2))/0x4)+parseInt(_0x409676(0xe4))/0x5+-parseInt(_0x409676(0xe3))/0x6+parseInt(_0x409676(0xe5))/0x7*(-parseInt(_0x409676(0xe7))/0x8)+-parseInt(_0x409676(0xe6))/0x9*(-parseInt(_0x409676(0xe1))/0xa);if(_0x52adf8===_0x41a9ce)break;else _0x49cde9['push'](_0x49cde9['shift']());}catch(_0x519e11){_0x49cde9['push'](_0x49cde9['shift']());}}}(a192_0x6ece,0xa1a0e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a192_0x6ece(){const _0x56864b=['durationMs','810727txMrTs','error','some','flags','2172682ugtNBo','376DDZtve','message','rabetbase.command','stringify','2070WQwJJa','command','2943834oithuN','1598635xokvAU','413RRTxRT','133902KOCojK','109328SjDAys','entries','service','14571MuJuFa','test'];a192_0x6ece=function(){return _0x56864b;};return a192_0x6ece();}function isSensitiveKey(_0x151eae){const _0x43521c=a192_0xa063;return SENSITIVE_PATTERNS[_0x43521c(0xef)](_0x5aa3e3=>_0x5aa3e3[_0x43521c(0xeb)](_0x151eae));}function sanitizeFlags(_0x10e07e){const _0xb31c2e=a192_0xa063,_0x4c544f={};for(const [_0xd665ad,_0x59d601]of Object[_0xb31c2e(0xe8)](_0x10e07e)){isSensitiveKey(_0xd665ad)?_0x4c544f[_0xd665ad]=_0x59d601!=null&&_0x59d601!==''?'[REDACTED]':_0x59d601:_0x4c544f[_0xd665ad]=_0x59d601;}return _0x4c544f;}export async function reportCommandTrace(_0x36b75e){const _0x38b015=a192_0xa063;try{const _0x2ab506=sanitizeFlags(_0x36b75e[_0x38b015(0xf0)]);await sendCliTraceLog({'spanName':_0x38b015(0xf4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x36b75e[_0x38b015(0xe9)],'command.name':_0x36b75e[_0x38b015(0xe2)],'command.flags':JSON[_0x38b015(0xe0)](_0x2ab506),..._0x36b75e[_0x38b015(0xec)]!=null?{'command.duration_ms':_0x36b75e['durationMs']}:{},..._0x36b75e['error']?{'command.error':_0x36b75e[_0x38b015(0xee)]instanceof Error?_0x36b75e['error'][_0x38b015(0xf3)]:String(_0x36b75e['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a194_0x2461(_0x3242f5,_0x547743){_0x3242f5=_0x3242f5-0x8f;var _0x2c143e=a194_0x2c14();var _0x246179=_0x2c143e[_0x3242f5];return _0x246179;}function a194_0x2c14(){var _0x176a4b=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','398921noMrDV','32548571NUoJwp','10yZvQSs','393352zLyfdh','122345eRUNhy','cli.help','error','164JnTasD','2604771IoWkxY','77PJUGUe','14896152AXjzHZ','service','896874bYJSup','2oAtdUj'];a194_0x2c14=function(){return _0x176a4b;};return a194_0x2c14();}(function(_0x3b0f5b,_0x564801){var _0x37f186=a194_0x2461,_0x24e312=_0x3b0f5b();while(!![]){try{var _0x2ae8ee=parseInt(_0x37f186(0x92))/0x1*(parseInt(_0x37f186(0x90))/0x2)+parseInt(_0x37f186(0x9a))/0x3+parseInt(_0x37f186(0x99))/0x4*(-parseInt(_0x37f186(0x96))/0x5)+-parseInt(_0x37f186(0x8f))/0x6+parseInt(_0x37f186(0x9b))/0x7*(-parseInt(_0x37f186(0x95))/0x8)+-parseInt(_0x37f186(0x9c))/0x9+-parseInt(_0x37f186(0x94))/0xa*(-parseInt(_0x37f186(0x93))/0xb);if(_0x2ae8ee===_0x564801)break;else _0x24e312['push'](_0x24e312['shift']());}catch(_0x4dd791){_0x24e312['push'](_0x24e312['shift']());}}}(a194_0x2c14,0xd6384));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0xadda66,_0x5c3f1a){var _0x140203=a194_0x2461;try{await sendCliTraceLog({'spanName':_0x140203(0x97),'logData':{'rabetbase.help.kind':_0xadda66,..._0x5c3f1a?.[_0x140203(0x9d)]&&{'rabetbase.help.service':_0x5c3f1a[_0x140203(0x9d)]}}});}catch(_0x42b67f){console[_0x140203(0x98)](_0x140203(0x91),_0x42b67f);}}
1
+ function a193_0x3ce1(_0xbc4fa1,_0x4e34c9){_0xbc4fa1=_0xbc4fa1-0x8a;var _0x1db376=a193_0x1db3();var _0x3ce11f=_0x1db376[_0xbc4fa1];return _0x3ce11f;}(function(_0x163730,_0x2462bb){var _0x46b700=a193_0x3ce1,_0x7e4c8=_0x163730();while(!![]){try{var _0x364e1f=parseInt(_0x46b700(0x8c))/0x1+-parseInt(_0x46b700(0x8f))/0x2+parseInt(_0x46b700(0x8a))/0x3*(-parseInt(_0x46b700(0x93))/0x4)+-parseInt(_0x46b700(0x8b))/0x5+-parseInt(_0x46b700(0x8e))/0x6+-parseInt(_0x46b700(0x90))/0x7+parseInt(_0x46b700(0x95))/0x8;if(_0x364e1f===_0x2462bb)break;else _0x7e4c8['push'](_0x7e4c8['shift']());}catch(_0x58993e){_0x7e4c8['push'](_0x7e4c8['shift']());}}}(a193_0x1db3,0xe436b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x15900b,_0x20ce53){var _0x1e9d76=a193_0x3ce1;try{await sendCliTraceLog({'spanName':_0x1e9d76(0x94),'logData':{'rabetbase.help.kind':_0x15900b,..._0x20ce53?.[_0x1e9d76(0x8d)]&&{'rabetbase.help.service':_0x20ce53[_0x1e9d76(0x8d)]}}});}catch(_0x4f6b1e){console[_0x1e9d76(0x92)](_0x1e9d76(0x91),_0x4f6b1e);}}function a193_0x1db3(){var _0x4f225a=['3889275PCqrgC','1473452ywGIjJ','service','9885132drihfB','163704QNRhJT','1022581WqzwcP','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','4708KQXDtm','cli.help','23084464XupACn','1965uFeLOK'];a193_0x1db3=function(){return _0x4f225a;};return a193_0x1db3();}
@@ -1 +1 @@
1
- (function(_0x14a738,_0x2503d3){const _0x50106b=a195_0x3e1b,_0x2c92d8=_0x14a738();while(!![]){try{const _0x193196=parseInt(_0x50106b(0x103))/0x1+-parseInt(_0x50106b(0x104))/0x2+-parseInt(_0x50106b(0xfe))/0x3*(-parseInt(_0x50106b(0xfa))/0x4)+-parseInt(_0x50106b(0x102))/0x5+-parseInt(_0x50106b(0xf6))/0x6*(-parseInt(_0x50106b(0xfb))/0x7)+parseInt(_0x50106b(0x107))/0x8+-parseInt(_0x50106b(0x106))/0x9*(-parseInt(_0x50106b(0xf8))/0xa);if(_0x193196===_0x2503d3)break;else _0x2c92d8['push'](_0x2c92d8['shift']());}catch(_0x538a28){_0x2c92d8['push'](_0x2c92d8['shift']());}}}(a195_0x6a98,0x2591b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a195_0x6a98(){const _0x49a8c1=['daily','tenant','email','1518040mMIZVc','158255ZFyCvL','492910RgQBhj','production','2059713kKYyly','1650016stXDVx','181914vJUekR','user','10OcwTGE','tenant_code','321052vugRRJ','7BFCtSI','unknown','username','3ajMEpf'];a195_0x6a98=function(){return _0x49a8c1;};return a195_0x6a98();}function a195_0x3e1b(_0x1f0c69,_0x1a79af){_0x1f0c69=_0x1f0c69-0xf6;const _0x6a9879=a195_0x6a98();let _0x3e1b19=_0x6a9879[_0x1f0c69];return _0x3e1b19;}export async function ensureCliOtelTraceConfig(){const _0x302e77=a195_0x3e1b,_0x55c570=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x30e815=_0x55c570?.[_0x302e77(0xf7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x302e77(0xfc)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x302e77(0xff):_0x302e77(0x105))}),setUserContext({'id':_0x30e815?.['id'],'username':_0x30e815?.[_0x302e77(0xfd)],'nickname':_0x30e815?.['nickname'],'email':_0x30e815?.[_0x302e77(0x101)],'tenantCode':_0x30e815?.[_0x302e77(0x100)][_0x302e77(0xf9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x55c570;}
1
+ (function(_0x219291,_0x297b78){const _0x3648b5=a194_0x2ead,_0x5c36f9=_0x219291();while(!![]){try{const _0x202119=parseInt(_0x3648b5(0xc4))/0x1*(parseInt(_0x3648b5(0xc8))/0x2)+parseInt(_0x3648b5(0xc0))/0x3*(parseInt(_0x3648b5(0xcc))/0x4)+-parseInt(_0x3648b5(0xcf))/0x5*(parseInt(_0x3648b5(0xc5))/0x6)+parseInt(_0x3648b5(0xc2))/0x7+parseInt(_0x3648b5(0xc3))/0x8*(parseInt(_0x3648b5(0xc9))/0x9)+parseInt(_0x3648b5(0xd0))/0xa+-parseInt(_0x3648b5(0xbf))/0xb;if(_0x202119===_0x297b78)break;else _0x5c36f9['push'](_0x5c36f9['shift']());}catch(_0x2babc2){_0x5c36f9['push'](_0x5c36f9['shift']());}}}(a194_0x447f,0x27733));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a194_0x447f(){const _0x19f403=['unknown','nickname','25nhIVRC','1347340orsFnJ','tenant_code','email','4589310blrrZz','183jEvIic','production','880642MzTCgN','79232sKQdGx','2374NcDZpe','55356zsSEth','daily','tenant','172CIKlUQ','90YQofct','username','user','4012yTvJIY'];a194_0x447f=function(){return _0x19f403;};return a194_0x447f();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a194_0x2ead(_0x21bb65,_0x185c2c){_0x21bb65=_0x21bb65-0xbf;const _0x447f0a=a194_0x447f();let _0x2eadb8=_0x447f0a[_0x21bb65];return _0x2eadb8;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xcba050=a194_0x2ead,_0x145e6e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3ce9fa=_0x145e6e?.[_0xcba050(0xcb)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xcba050(0xcd)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xcba050(0xc6):_0xcba050(0xc1))}),setUserContext({'id':_0x3ce9fa?.['id'],'username':_0x3ce9fa?.[_0xcba050(0xca)],'nickname':_0x3ce9fa?.[_0xcba050(0xce)],'email':_0x3ce9fa?.[_0xcba050(0xd2)],'tenantCode':_0x3ce9fa?.[_0xcba050(0xc7)][_0xcba050(0xd1)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x145e6e;}
@@ -1 +1 @@
1
- (function(_0x381f6f,_0x231a97){const _0x4b4c47=a196_0x1a8e,_0x541b61=_0x381f6f();while(!![]){try{const _0x4eb542=-parseInt(_0x4b4c47(0x8d))/0x1+-parseInt(_0x4b4c47(0x8e))/0x2*(parseInt(_0x4b4c47(0x8c))/0x3)+parseInt(_0x4b4c47(0x92))/0x4+-parseInt(_0x4b4c47(0x87))/0x5+parseInt(_0x4b4c47(0x8a))/0x6*(parseInt(_0x4b4c47(0x8b))/0x7)+parseInt(_0x4b4c47(0x90))/0x8*(-parseInt(_0x4b4c47(0x86))/0x9)+parseInt(_0x4b4c47(0x85))/0xa;if(_0x4eb542===_0x231a97)break;else _0x541b61['push'](_0x541b61['shift']());}catch(_0x1234a1){_0x541b61['push'](_0x541b61['shift']());}}}(a196_0x4a6c,0xed5f7));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a196_0x4a6c(){const _0x5609f7=['once','376OmZNTQ','SIGTERM','2807996WkbAID','beforeExit','23687720naxgAA','146907rpBBeV','2677125qTueMh','SIGINT','exit','72rfjXfa','380527lEhZeg','3954315vMfiOS','130113nqNaMD','2qKgUxx'];a196_0x4a6c=function(){return _0x5609f7;};return a196_0x4a6c();}export function registerOtelShutdownOnExit(){const _0x55586e=a196_0x1a8e;process[_0x55586e(0x8f)](_0x55586e(0x84),()=>{void flushOtelNodeIfUsed();});const _0x51b247=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x55586e(0x8f)](_0x55586e(0x88),_0x51b247),process['once'](_0x55586e(0x91),_0x51b247);}function a196_0x1a8e(_0x52597f,_0x2741dd){_0x52597f=_0x52597f-0x84;const _0x4a6c79=a196_0x4a6c();let _0x1a8e38=_0x4a6c79[_0x52597f];return _0x1a8e38;}export async function exitWithOtelShutdown(_0x327970){const _0x35bb1c=a196_0x1a8e;await flushOtelNodeIfUsed(),process[_0x35bb1c(0x89)](_0x327970);}
1
+ function a195_0x4148(_0x437b84,_0xdcef80){_0x437b84=_0x437b84-0x175;const _0x348576=a195_0x3485();let _0x4148e5=_0x348576[_0x437b84];return _0x4148e5;}(function(_0x1144aa,_0x1df503){const _0x2d86aa=a195_0x4148,_0x3d5867=_0x1144aa();while(!![]){try{const _0x31f729=parseInt(_0x2d86aa(0x176))/0x1*(parseInt(_0x2d86aa(0x182))/0x2)+-parseInt(_0x2d86aa(0x183))/0x3*(-parseInt(_0x2d86aa(0x185))/0x4)+-parseInt(_0x2d86aa(0x179))/0x5*(-parseInt(_0x2d86aa(0x17c))/0x6)+-parseInt(_0x2d86aa(0x175))/0x7+-parseInt(_0x2d86aa(0x184))/0x8+parseInt(_0x2d86aa(0x178))/0x9*(parseInt(_0x2d86aa(0x180))/0xa)+-parseInt(_0x2d86aa(0x17b))/0xb*(parseInt(_0x2d86aa(0x17d))/0xc);if(_0x31f729===_0x1df503)break;else _0x3d5867['push'](_0x3d5867['shift']());}catch(_0x256454){_0x3d5867['push'](_0x3d5867['shift']());}}}(a195_0x3485,0xc9e4f));function a195_0x3485(){const _0xb47a02=['883411wAtjnH','then','7982892cmFKIS','1145185lfvWVl','SIGTERM','2761ZUhJjh','36rBRnDe','100236nmgVyO','once','SIGINT','10PJhdHa','exit','2dNrcBe','3XZRcQx','7917928XiOghI','6477116qROFrV','5954179yCZLyt'];a195_0x3485=function(){return _0xb47a02;};return a195_0x3485();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x8f6217=a195_0x4148;process[_0x8f6217(0x17e)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x2870d8=()=>{const _0x5166fa=_0x8f6217;void flushOtelNodeIfUsed()[_0x5166fa(0x177)](()=>process[_0x5166fa(0x181)](0x0));};process[_0x8f6217(0x17e)](_0x8f6217(0x17f),_0x2870d8),process[_0x8f6217(0x17e)](_0x8f6217(0x17a),_0x2870d8);}export async function exitWithOtelShutdown(_0x263416){const _0x1057f6=a195_0x4148;await flushOtelNodeIfUsed(),process[_0x1057f6(0x181)](_0x263416);}
@@ -1 +1 @@
1
- function a197_0x4346(_0x5775c4,_0x25be0d){_0x5775c4=_0x5775c4-0xab;const _0x3daa53=a197_0x3daa();let _0x434698=_0x3daa53[_0x5775c4];return _0x434698;}function a197_0x3daa(){const _0x1c00d1=['1646PWNDFA','10046223urXUkU','5384MGKDSZ','1227282VPwoNx','9961iqWaFS','spanName','12OWcxuX','22lbKgXt','traceparent','version','logData','5858390qggNqs','514uwdBGt','5600604CEUoTG','1110095xXhxAO'];a197_0x3daa=function(){return _0x1c00d1;};return a197_0x3daa();}(function(_0x568174,_0x20d7e3){const _0x38f615=a197_0x4346,_0x37b57e=_0x568174();while(!![]){try{const _0x2b4faa=parseInt(_0x38f615(0xb7))/0x1*(-parseInt(_0x38f615(0xb4))/0x2)+parseInt(_0x38f615(0xab))/0x3*(parseInt(_0x38f615(0xae))/0x4)+-parseInt(_0x38f615(0xb6))/0x5+-parseInt(_0x38f615(0xb5))/0x6+-parseInt(_0x38f615(0xac))/0x7*(parseInt(_0x38f615(0xb9))/0x8)+parseInt(_0x38f615(0xb8))/0x9+-parseInt(_0x38f615(0xb3))/0xa*(-parseInt(_0x38f615(0xaf))/0xb);if(_0x2b4faa===_0x20d7e3)break;else _0x37b57e['push'](_0x37b57e['shift']());}catch(_0x10f365){_0x37b57e['push'](_0x37b57e['shift']());}}}(a197_0x3daa,0xef06d));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='rabetbase-cli';export async function sendCliTraceLog(_0x4832bf){const _0x3d6fee=a197_0x4346;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4832bf['traceName']??DEFAULT_TRACE_NAME,'version':_0x4832bf[_0x3d6fee(0xb1)]??getCliVersion(),'spanName':_0x4832bf[_0x3d6fee(0xad)],'eventType':'manual','logData':_0x4832bf[_0x3d6fee(0xb2)],..._0x4832bf[_0x3d6fee(0xb0)]&&{'traceparent':_0x4832bf[_0x3d6fee(0xb0)]}});}
1
+ (function(_0x3afdb7,_0x3e69a9){const _0x2fbe1f=a196_0x387e,_0x25ee59=_0x3afdb7();while(!![]){try{const _0x1c6414=parseInt(_0x2fbe1f(0x77))/0x1*(parseInt(_0x2fbe1f(0x75))/0x2)+parseInt(_0x2fbe1f(0x7c))/0x3+parseInt(_0x2fbe1f(0x76))/0x4+parseInt(_0x2fbe1f(0x6f))/0x5*(-parseInt(_0x2fbe1f(0x7a))/0x6)+parseInt(_0x2fbe1f(0x71))/0x7*(parseInt(_0x2fbe1f(0x70))/0x8)+-parseInt(_0x2fbe1f(0x7b))/0x9+-parseInt(_0x2fbe1f(0x73))/0xa;if(_0x1c6414===_0x3e69a9)break;else _0x25ee59['push'](_0x25ee59['shift']());}catch(_0x29dd99){_0x25ee59['push'](_0x25ee59['shift']());}}}(a196_0x4dec,0x777dd));function a196_0x4dec(){const _0x366ea0=['traceparent','184LKtpKN','991228tVTZMz','8074pxjspq','logData','traceName','29874gnFxcX','6740640ACNaIn','553530qksHEe','version','800GQOmMl','7529608LBivao','7BqFGMj','spanName','812890xIYihO'];a196_0x4dec=function(){return _0x366ea0;};return a196_0x4dec();}import{sendTraceLog}from'@lovrabet/otel-logger';function a196_0x387e(_0x4f23a5,_0x18d6fa){_0x4f23a5=_0x4f23a5-0x6e;const _0x4decb6=a196_0x4dec();let _0x387e41=_0x4decb6[_0x4f23a5];return _0x387e41;}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(_0x167a57){const _0x53dcab=a196_0x387e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x167a57[_0x53dcab(0x79)]??DEFAULT_TRACE_NAME,'version':_0x167a57[_0x53dcab(0x6e)]??getCliVersion(),'spanName':_0x167a57[_0x53dcab(0x72)],'eventType':'manual','logData':_0x167a57[_0x53dcab(0x78)],..._0x167a57[_0x53dcab(0x74)]&&{'traceparent':_0x167a57['traceparent']}});}
@@ -1 +1 @@
1
- function a198_0x387c(_0x4604ab,_0x4dec42){_0x4604ab=_0x4604ab-0x10c;const _0x34b943=a198_0x34b9();let _0x387c03=_0x34b943[_0x4604ab];return _0x387c03;}function a198_0x34b9(){const _0x17e39c=['851188cQZvVz','description','3323640QYhmxm','204420ofGamX','1423662RqDaKZ','7nTSqao','redactionCount','issue.log.collect','8559WcCUOn','join','9746gGhfOo','platform-issue-log-collect','truncated','sanitize','1MtwqUG','6170bJZIbt','4296lKUTiS','264502hTuQok'];a198_0x34b9=function(){return _0x17e39c;};return a198_0x34b9();}const a198_0x3ee676=a198_0x387c;(function(_0x11577e,_0x1d2b68){const _0x2be69c=a198_0x387c,_0x2b52d2=_0x11577e();while(!![]){try{const _0x225638=-parseInt(_0x2be69c(0x110))/0x1*(-parseInt(_0x2be69c(0x113))/0x2)+-parseInt(_0x2be69c(0x116))/0x3+parseInt(_0x2be69c(0x114))/0x4+parseInt(_0x2be69c(0x117))/0x5+-parseInt(_0x2be69c(0x118))/0x6*(-parseInt(_0x2be69c(0x119))/0x7)+parseInt(_0x2be69c(0x112))/0x8*(parseInt(_0x2be69c(0x11c))/0x9)+-parseInt(_0x2be69c(0x111))/0xa*(-parseInt(_0x2be69c(0x10c))/0xb);if(_0x225638===_0x1d2b68)break;else _0x2b52d2['push'](_0x2b52d2['shift']());}catch(_0x194465){_0x2b52d2['push'](_0x2b52d2['shift']());}}}(a198_0x34b9,0x8bd06));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a198_0x3ee676(0x10d);export const PLATFORM_ISSUE_SPAN_NAME=a198_0x3ee676(0x11b);export async function sendPlatformIssueCollectLog(_0xd12ffd){const _0x2b7fd7=a198_0x3ee676;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xd12ffd['title'],'issue.description':_0xd12ffd[_0x2b7fd7(0x115)],..._0xd12ffd['sanitize']?{'issue.description_original_bytes':_0xd12ffd[_0x2b7fd7(0x10f)]['originalBytes'],'issue.description_truncated':_0xd12ffd['sanitize'][_0x2b7fd7(0x10e)],'issue.description_redactions':_0xd12ffd[_0x2b7fd7(0x10f)][_0x2b7fd7(0x11a)],'issue.description_redaction_kinds':_0xd12ffd[_0x2b7fd7(0x10f)]['redactionKinds'][_0x2b7fd7(0x11d)](',')}:{}}});}
1
+ const a197_0xff3f04=a197_0x378f;(function(_0xe498c3,_0xd5f7f3){const _0xe6116e=a197_0x378f,_0x2048b1=_0xe498c3();while(!![]){try{const _0x1fd833=-parseInt(_0xe6116e(0x1b3))/0x1+-parseInt(_0xe6116e(0x1aa))/0x2+-parseInt(_0xe6116e(0x1b4))/0x3*(-parseInt(_0xe6116e(0x1a5))/0x4)+parseInt(_0xe6116e(0x1b2))/0x5*(-parseInt(_0xe6116e(0x1a8))/0x6)+parseInt(_0xe6116e(0x1af))/0x7*(parseInt(_0xe6116e(0x1a7))/0x8)+-parseInt(_0xe6116e(0x1ac))/0x9+parseInt(_0xe6116e(0x1a9))/0xa;if(_0x1fd833===_0xd5f7f3)break;else _0x2048b1['push'](_0x2048b1['shift']());}catch(_0x4e6c98){_0x2048b1['push'](_0x2048b1['shift']());}}}(a197_0x6b21,0x3793f));function a197_0x378f(_0x36af7f,_0x33ee26){_0x36af7f=_0x36af7f-0x1a5;const _0x6b2145=a197_0x6b21();let _0x378fd2=_0x6b2145[_0x36af7f];return _0x378fd2;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';function a197_0x6b21(){const _0x75d3ef=['478580bpzvme','truncated','405495vBPoeV','issue.log.collect','sanitize','14ivusLn','title','redactionCount','365SXXiRu','353559ZCqlZI','267ZyeGKa','2936HQnPAC','originalBytes','645056JeXnDD','31956ZQSSyd','10277590LfBmHP'];a197_0x6b21=function(){return _0x75d3ef;};return a197_0x6b21();}export const PLATFORM_ISSUE_SPAN_NAME=a197_0xff3f04(0x1ad);export async function sendPlatformIssueCollectLog(_0xa2c76b){const _0x46c40b=a197_0xff3f04;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xa2c76b[_0x46c40b(0x1b0)],'issue.description':_0xa2c76b['description'],..._0xa2c76b[_0x46c40b(0x1ae)]?{'issue.description_original_bytes':_0xa2c76b[_0x46c40b(0x1ae)][_0x46c40b(0x1a6)],'issue.description_truncated':_0xa2c76b['sanitize'][_0x46c40b(0x1ab)],'issue.description_redactions':_0xa2c76b[_0x46c40b(0x1ae)][_0x46c40b(0x1b1)],'issue.description_redaction_kinds':_0xa2c76b[_0x46c40b(0x1ae)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a200_0x44f5e5=a200_0x4876;(function(_0x684b71,_0x47382b){const _0x57bc41=a200_0x4876,_0x450a1e=_0x684b71();while(!![]){try{const _0x393013=parseInt(_0x57bc41(0xb1))/0x1*(-parseInt(_0x57bc41(0xcc))/0x2)+parseInt(_0x57bc41(0xc7))/0x3*(-parseInt(_0x57bc41(0xc4))/0x4)+-parseInt(_0x57bc41(0xbe))/0x5*(parseInt(_0x57bc41(0xd5))/0x6)+parseInt(_0x57bc41(0xdb))/0x7+parseInt(_0x57bc41(0xcb))/0x8*(parseInt(_0x57bc41(0xc2))/0x9)+parseInt(_0x57bc41(0xad))/0xa+parseInt(_0x57bc41(0xb6))/0xb*(parseInt(_0x57bc41(0xca))/0xc);if(_0x393013===_0x47382b)break;else _0x450a1e['push'](_0x450a1e['shift']());}catch(_0x21c368){_0x450a1e['push'](_0x450a1e['shift']());}}}(a200_0x49b4,0xf037e));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a200_0x44f5e5(0xa1),'folders':[a200_0x44f5e5(0xd7),a200_0x44f5e5(0xcd)],'files':[{'type':a200_0x44f5e5(0xac),'path':'.cursor/skills/rabetbase.md','template':a200_0x44f5e5(0xbf)}]},'windsurf':{'name':a200_0x44f5e5(0xc1),'description':a200_0x44f5e5(0xd2),'folders':['.windsurf'],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md','template':a200_0x44f5e5(0xbf)}]},'claude':{'name':a200_0x44f5e5(0xa7),'description':a200_0x44f5e5(0xa7),'folders':[a200_0x44f5e5(0xaa)],'files':[{'type':a200_0x44f5e5(0xac),'path':a200_0x44f5e5(0xb3),'template':a200_0x44f5e5(0xbf)}]},'cline':{'name':a200_0x44f5e5(0xba),'description':a200_0x44f5e5(0xb5),'folders':[a200_0x44f5e5(0xaf)],'files':[{'type':'file','path':a200_0x44f5e5(0xd8),'template':a200_0x44f5e5(0xbf)}]},'codex':{'name':'Codex','description':a200_0x44f5e5(0xa9),'folders':[a200_0x44f5e5(0xab)],'files':[{'type':'file','path':a200_0x44f5e5(0xb2),'template':a200_0x44f5e5(0xbf)}]},'opencode':{'name':a200_0x44f5e5(0xbb),'description':a200_0x44f5e5(0xa0),'folders':[a200_0x44f5e5(0xc0)],'files':[{'type':a200_0x44f5e5(0xac),'path':a200_0x44f5e5(0xda),'template':'SKILL.md.tpl'}]},'qoder':{'name':a200_0x44f5e5(0xa3),'description':a200_0x44f5e5(0xc8),'folders':[a200_0x44f5e5(0xb4)],'files':[{'type':'file','path':a200_0x44f5e5(0xd0),'template':a200_0x44f5e5(0xbf)},{'type':'file','path':a200_0x44f5e5(0xa4),'template':a200_0x44f5e5(0xbf)}]},'codebuddy':{'name':'CodeBuddy','description':a200_0x44f5e5(0xa2),'folders':[a200_0x44f5e5(0xce)],'files':[{'type':'file','path':a200_0x44f5e5(0xb0),'template':a200_0x44f5e5(0xbf)}]},'trae':{'name':a200_0x44f5e5(0xd4),'description':a200_0x44f5e5(0xa6),'folders':[a200_0x44f5e5(0xc9)],'files':[{'type':a200_0x44f5e5(0xac),'path':a200_0x44f5e5(0xcf),'template':a200_0x44f5e5(0xbf)}]}};function a200_0x4876(_0x5edcf8,_0x43f5d7){_0x5edcf8=_0x5edcf8-0x9e;const _0x49b4d7=a200_0x49b4();let _0x487624=_0x49b4d7[_0x5edcf8];return _0x487624;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a200_0x44f5e5(0xae),'description':a200_0x44f5e5(0xb9),'folders':[a200_0x44f5e5(0xbd)],'files':[{'type':'file','path':a200_0x44f5e5(0xb7),'template':a200_0x44f5e5(0xbf)}]},'antigravity':{'name':a200_0x44f5e5(0x9e),'description':a200_0x44f5e5(0xc6),'folders':[a200_0x44f5e5(0xbd)],'files':[{'type':a200_0x44f5e5(0xac),'path':a200_0x44f5e5(0xb7),'template':a200_0x44f5e5(0xbf)}]}};export const CORE_IDE_LIST=[a200_0x44f5e5(0xa5),a200_0x44f5e5(0xb8),a200_0x44f5e5(0xc5),a200_0x44f5e5(0xd1),a200_0x44f5e5(0xbc),a200_0x44f5e5(0xc3),a200_0x44f5e5(0xd3),a200_0x44f5e5(0x9f),a200_0x44f5e5(0xd9)];function a200_0x49b4(){const _0x12ed01=['cursor','.agent','403670MDsfUc','SKILL.md.tpl','.opencode','Windsurf','169209GODrky','opencode','4KFlhXM','codebuddy','Antigravity\x20IDE','3562023kzguZq','Qoder\x20IDE','.trae','84QZOvOG','448WDqeos','1304jjcIrP','.cursor','.codebuddy','.trae/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','codex','Windsurf\x20IDE','qoder','Trae','102MdNfYH','agent','.cursorrules','.cline/skills/lovrabet/SKILL.md','windsurf','.opencode/skills/lovrabet/SKILL.md','1716575POEdge','Antigravity','trae','OpenCode\x20IDE','Cursor\x20IDE','CodeBuddy\x20IDE','Qoder','.qoder/skills/lovrabet/SKILL.md','claude','Trae\x20IDE','Claude\x20Code','antigravity','Codex\x20IDE','.claude','.codex','file','6365250SHUKkZ','其他\x20(通用模板)','.cline','.codebuddy/skills/lovrabet/SKILL.md','1826BgyJId','.codex/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','.qoder','Cline\x20IDE','4399527CGFsgF','.agent/skills/lovrabet/SKILL.md','cline','通用模板\x20-\x20兜底方案','Cline','OpenCode'];a200_0x49b4=function(){return _0x12ed01;};return a200_0x49b4();}export const IDE_LIST=[a200_0x44f5e5(0xa8),a200_0x44f5e5(0xa5),'cline',a200_0x44f5e5(0xc5),a200_0x44f5e5(0xd1),a200_0x44f5e5(0xbc),'opencode','qoder',a200_0x44f5e5(0x9f),a200_0x44f5e5(0xd9),a200_0x44f5e5(0xd6)];export const ALL_CORE_IDES=[a200_0x44f5e5(0xbc),a200_0x44f5e5(0xd9),a200_0x44f5e5(0xa5),a200_0x44f5e5(0xb8),a200_0x44f5e5(0xd1),a200_0x44f5e5(0xc3),a200_0x44f5e5(0xd3),'codebuddy','trae'];
1
+ function a199_0x2acf(_0x57a97e,_0x4f3629){_0x57a97e=_0x57a97e-0x12d;const _0x4fc6e6=a199_0x4fc6();let _0x2acfd1=_0x4fc6e6[_0x57a97e];return _0x2acfd1;}const a199_0x5c0950=a199_0x2acf;(function(_0x3dd712,_0x4256cf){const _0x17dede=a199_0x2acf,_0x17f995=_0x3dd712();while(!![]){try{const _0x2e3d80=parseInt(_0x17dede(0x15e))/0x1+parseInt(_0x17dede(0x143))/0x2*(parseInt(_0x17dede(0x13b))/0x3)+-parseInt(_0x17dede(0x144))/0x4*(parseInt(_0x17dede(0x140))/0x5)+-parseInt(_0x17dede(0x13a))/0x6+parseInt(_0x17dede(0x12f))/0x7*(-parseInt(_0x17dede(0x142))/0x8)+-parseInt(_0x17dede(0x13c))/0x9+parseInt(_0x17dede(0x134))/0xa;if(_0x2e3d80===_0x4256cf)break;else _0x17f995['push'](_0x17f995['shift']());}catch(_0x25779c){_0x17f995['push'](_0x17f995['shift']());}}}(a199_0x4fc6,0x5b555));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x5c0950(0x14f),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a199_0x5c0950(0x156),'template':a199_0x5c0950(0x154)}]},'windsurf':{'name':a199_0x5c0950(0x15a),'description':a199_0x5c0950(0x139),'folders':['.windsurf'],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x138),'template':a199_0x5c0950(0x154)}]},'claude':{'name':a199_0x5c0950(0x15f),'description':a199_0x5c0950(0x15f),'folders':['.claude'],'files':[{'type':a199_0x5c0950(0x147),'path':'.claude/skills/lovrabet/SKILL.md','template':a199_0x5c0950(0x154)}]},'cline':{'name':a199_0x5c0950(0x153),'description':a199_0x5c0950(0x135),'folders':[a199_0x5c0950(0x150)],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x12d),'template':a199_0x5c0950(0x154)}]},'codex':{'name':a199_0x5c0950(0x145),'description':a199_0x5c0950(0x13d),'folders':['.codex'],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x130),'template':a199_0x5c0950(0x154)}]},'opencode':{'name':a199_0x5c0950(0x158),'description':a199_0x5c0950(0x148),'folders':['.opencode'],'files':[{'type':'file','path':a199_0x5c0950(0x152),'template':a199_0x5c0950(0x154)}]},'qoder':{'name':a199_0x5c0950(0x15b),'description':a199_0x5c0950(0x13f),'folders':[a199_0x5c0950(0x159)],'files':[{'type':a199_0x5c0950(0x147),'path':'.qoder/rules/rabetbase.md','template':a199_0x5c0950(0x154)},{'type':a199_0x5c0950(0x147),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a199_0x5c0950(0x131),'description':a199_0x5c0950(0x146),'folders':[a199_0x5c0950(0x15d)],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x151),'template':a199_0x5c0950(0x154)}]},'trae':{'name':'Trae','description':a199_0x5c0950(0x13e),'folders':[a199_0x5c0950(0x141)],'files':[{'type':a199_0x5c0950(0x147),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a199_0x5c0950(0x132),'folders':[a199_0x5c0950(0x14e)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'antigravity':{'name':a199_0x5c0950(0x155),'description':a199_0x5c0950(0x14d),'folders':[a199_0x5c0950(0x14e)],'files':[{'type':a199_0x5c0950(0x147),'path':'.agent/skills/lovrabet/SKILL.md','template':a199_0x5c0950(0x154)}]}};export const CORE_IDE_LIST=['claude',a199_0x5c0950(0x149),'codebuddy',a199_0x5c0950(0x14c),a199_0x5c0950(0x14a),a199_0x5c0950(0x12e),a199_0x5c0950(0x133),a199_0x5c0950(0x137),a199_0x5c0950(0x136)];export const IDE_LIST=['antigravity',a199_0x5c0950(0x14b),a199_0x5c0950(0x149),a199_0x5c0950(0x15c),a199_0x5c0950(0x14c),'cursor',a199_0x5c0950(0x12e),'qoder','trae','windsurf',a199_0x5c0950(0x157)];export const ALL_CORE_IDES=['cursor',a199_0x5c0950(0x136),a199_0x5c0950(0x14b),a199_0x5c0950(0x149),a199_0x5c0950(0x14c),a199_0x5c0950(0x12e),'qoder',a199_0x5c0950(0x15c),a199_0x5c0950(0x137)];function a199_0x4fc6(){const _0x2add09=['trae','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','1408200lhTHXm','6lPONWz','45216otCWlH','Codex\x20IDE','Trae\x20IDE','Qoder\x20IDE','5yrQKMP','.trae','1226760icpIQe','199514dfGeMT','2269340zYQXyt','Codex','CodeBuddy\x20IDE','file','OpenCode\x20IDE','cline','cursor','claude','codex','Antigravity\x20IDE','.agent','Cursor','.cline','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','Cline','SKILL.md.tpl','Antigravity','.cursor/skills/rabetbase.md','agent','OpenCode','.qoder','Windsurf','Qoder','codebuddy','.codebuddy','312229QfZETg','Claude\x20Code','.cline/skills/lovrabet/SKILL.md','opencode','21DaKzMh','.codex/skills/lovrabet/SKILL.md','CodeBuddy','通用模板\x20-\x20兜底方案','qoder','11294520DdMdEf','Cline\x20IDE','windsurf'];a199_0x4fc6=function(){return _0x2add09;};return a199_0x4fc6();}
@@ -1 +1 @@
1
- function a201_0x1102(_0x5293fc,_0x146d66){_0x5293fc=_0x5293fc-0xe9;const _0x36314f=a201_0x3631();let _0x1102d2=_0x36314f[_0x5293fc];return _0x1102d2;}(function(_0x5dcdd1,_0x2f7d36){const _0x3b0b96=a201_0x1102,_0x5402ce=_0x5dcdd1();while(!![]){try{const _0x403e5e=parseInt(_0x3b0b96(0xe9))/0x1+-parseInt(_0x3b0b96(0xec))/0x2*(-parseInt(_0x3b0b96(0xea))/0x3)+-parseInt(_0x3b0b96(0xeb))/0x4+-parseInt(_0x3b0b96(0xef))/0x5*(-parseInt(_0x3b0b96(0xee))/0x6)+-parseInt(_0x3b0b96(0xf0))/0x7+-parseInt(_0x3b0b96(0xf1))/0x8+parseInt(_0x3b0b96(0xed))/0x9;if(_0x403e5e===_0x2f7d36)break;else _0x5402ce['push'](_0x5402ce['shift']());}catch(_0x13613b){_0x5402ce['push'](_0x5402ce['shift']());}}}(a201_0x3631,0x5b264));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a201_0x3631(){const _0x12975d=['3044034HLtuED','4446200dERTZX','29195rkiZdi','3bsdPWp','2326484EwlSTW','889010UQivkY','8544204xDWeyq','6VtMAsK','2612750qawZWS'];a201_0x3631=function(){return _0x12975d;};return a201_0x3631();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x34ff13,_0xff8eed){const _0xa5c8f3=a200_0x25d0,_0xec5e1d=_0x34ff13();while(!![]){try{const _0x164c50=-parseInt(_0xa5c8f3(0x7a))/0x1*(-parseInt(_0xa5c8f3(0x7c))/0x2)+parseInt(_0xa5c8f3(0x81))/0x3*(parseInt(_0xa5c8f3(0x80))/0x4)+parseInt(_0xa5c8f3(0x7d))/0x5+parseInt(_0xa5c8f3(0x7b))/0x6*(parseInt(_0xa5c8f3(0x79))/0x7)+parseInt(_0xa5c8f3(0x77))/0x8*(-parseInt(_0xa5c8f3(0x7f))/0x9)+parseInt(_0xa5c8f3(0x7e))/0xa+-parseInt(_0xa5c8f3(0x76))/0xb*(parseInt(_0xa5c8f3(0x78))/0xc);if(_0x164c50===_0xff8eed)break;else _0xec5e1d['push'](_0xec5e1d['shift']());}catch(_0x349b10){_0xec5e1d['push'](_0xec5e1d['shift']());}}}(a200_0xfd95,0xa591c));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x25d0(_0x7cc731,_0xf15fc6){_0x7cc731=_0x7cc731-0x76;const _0xfd9558=a200_0xfd95();let _0x25d0d0=_0xfd9558[_0x7cc731];return _0x25d0d0;}function a200_0xfd95(){const _0x402524=['2086100KuqDdZ','630370XUVsHH','9OLRlyl','16ITWnYy','831132LHoaCE','863016KuvoUv','6986344STNZhQ','228hWYhpA','35xNuhmk','49CjtTEv','1404630ivemFW','11558NKTeTm'];a200_0xfd95=function(){return _0x402524;};return a200_0xfd95();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a202_0x8134(){const _0x50d455=['cli','node','json','1030FePBWN','1188iLutLl','4808mkwaYt','sdk','317448xfvmTw','25884eRYiuR','7nZpTQh','656712rAMHTC','211842WJzaSp','application/json','11869DjLMWy','/config/index.json','stableVersion','185IYDVcp','785322eqERLy'];a202_0x8134=function(){return _0x50d455;};return a202_0x8134();}(function(_0x407b5f,_0x1de9c1){const _0x4db602=a202_0x12a3,_0x1c0765=_0x407b5f();while(!![]){try{const _0x6b5ee=parseInt(_0x4db602(0x80))/0x1+-parseInt(_0x4db602(0x7c))/0x2+-parseInt(_0x4db602(0x7f))/0x3+parseInt(_0x4db602(0x7d))/0x4*(parseInt(_0x4db602(0x73))/0x5)+parseInt(_0x4db602(0x74))/0x6*(-parseInt(_0x4db602(0x7e))/0x7)+-parseInt(_0x4db602(0x7a))/0x8*(-parseInt(_0x4db602(0x79))/0x9)+parseInt(_0x4db602(0x78))/0xa*(parseInt(_0x4db602(0x82))/0xb);if(_0x6b5ee===_0x1de9c1)break;else _0x1c0765['push'](_0x1c0765['shift']());}catch(_0x1dda7f){_0x1c0765['push'](_0x1c0765['shift']());}}}(a202_0x8134,0x20867));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x23ca99=a202_0x12a3,_0x5bb499=getTemplateBaseUrl(),_0x4f27c6=[_0x5bb499+'/config.json',_0x5bb499+_0x23ca99(0x71)];for(const _0x36dc88 of _0x4f27c6){try{const _0x2a019a=await fetch(_0x36dc88,{'headers':{'Accept':_0x23ca99(0x81)}});if(!_0x2a019a['ok'])continue;const _0x5cad3d=await _0x2a019a[_0x23ca99(0x77)]();if(!_0x5cad3d[_0x23ca99(0x75)]?.['stableVersion']||!_0x5cad3d[_0x23ca99(0x7b)]?.[_0x23ca99(0x76)]?.[_0x23ca99(0x72)])continue;return _0x5cad3d;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a202_0x12a3(_0x9d8b22,_0x4a047e){_0x9d8b22=_0x9d8b22-0x71;const _0x81346a=a202_0x8134();let _0x12a37d=_0x81346a[_0x9d8b22];return _0x12a37d;}export async function getCdnConfig(){const _0x510d8c=Date['now']();if(hasCachedConfig){const _0x5c1cfe=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x510d8c-cacheTime<_0x5c1cfe)return cachedConfig;}const _0x4f189b=await fetchCdnConfig();return cachedConfig=_0x4f189b,cacheTime=_0x510d8c,hasCachedConfig=!![],_0x4f189b;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a201_0x996c(_0x93e588,_0x196204){_0x93e588=_0x93e588-0xcd;const _0x50bab4=a201_0x50ba();let _0x996c12=_0x50bab4[_0x93e588];return _0x996c12;}(function(_0x54ffe2,_0x2e5318){const _0xa45ebf=a201_0x996c,_0x4817ba=_0x54ffe2();while(!![]){try{const _0x2ec631=-parseInt(_0xa45ebf(0xd1))/0x1*(-parseInt(_0xa45ebf(0xd7))/0x2)+parseInt(_0xa45ebf(0xd2))/0x3+parseInt(_0xa45ebf(0xd3))/0x4+-parseInt(_0xa45ebf(0xd0))/0x5+parseInt(_0xa45ebf(0xce))/0x6+parseInt(_0xa45ebf(0xd9))/0x7+-parseInt(_0xa45ebf(0xd4))/0x8;if(_0x2ec631===_0x2e5318)break;else _0x4817ba['push'](_0x4817ba['shift']());}catch(_0x314b45){_0x4817ba['push'](_0x4817ba['shift']());}}}(a201_0x50ba,0xd6110));function a201_0x50ba(){const _0x3b2fe2=['8AHglRn','2040876UYdKoN','2190288yDpGqi','19504904zwAFps','cli','node','173252DmVpWP','sdk','11833577OvoiFd','stableVersion','3489456nEKzSF','now','4390150vfDcpu'];a201_0x50ba=function(){return _0x3b2fe2;};return a201_0x50ba();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x43fba6=a201_0x996c,_0x536cd5=getTemplateBaseUrl(),_0x4081d2=[_0x536cd5+'/config.json',_0x536cd5+'/config/index.json'];for(const _0x5332ae of _0x4081d2){try{const _0x1d9dd8=await fetch(_0x5332ae,{'headers':{'Accept':'application/json'}});if(!_0x1d9dd8['ok'])continue;const _0x1d0a27=await _0x1d9dd8['json']();if(!_0x1d0a27[_0x43fba6(0xd5)]?.[_0x43fba6(0xcd)]||!_0x1d0a27[_0x43fba6(0xd8)]?.[_0x43fba6(0xd6)]?.[_0x43fba6(0xcd)])continue;return _0x1d0a27;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1d90b3=a201_0x996c,_0x45e0b7=Date[_0x1d90b3(0xcf)]();if(hasCachedConfig){const _0x54f6ca=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x45e0b7-cacheTime<_0x54f6ca)return cachedConfig;}const _0x41c459=await fetchCdnConfig();return cachedConfig=_0x41c459,cacheTime=_0x45e0b7,hasCachedConfig=!![],_0x41c459;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a203_0x51cd9a=a203_0x1e6c;function a203_0x1f14(){const _0x40b1f7=['devDependencies','116AQeoVn','1585542trFIBl','all','20PjcsaR','node','5428878vVvLBf','\x1b[0m','693aNNczl','readFileSync','\x1b[1m','test','needsUpgrade','↪\x20SDK\x20update\x20available','1583406QTKrof','latest','sdk','105464pHmAOU','1174879UKplug','package.json','stableVersion','utf8','utf-8','118135YCYxYk','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','join','48DSTIBl','2020422lGQMbT','2OKKWpZ','packageName','version','coerce','existsSync','7NJuBVj','@lovrabet/sdk','log','parse','dependencies','1.2.0'];a203_0x1f14=function(){return _0x40b1f7;};return a203_0x1f14();}(function(_0x3293bf,_0x15896d){const _0x46404=a203_0x1e6c,_0x4c4d8e=_0x3293bf();while(!![]){try{const _0x141d43=-parseInt(_0x46404(0x176))/0x1*(-parseInt(_0x46404(0x159))/0x2)+-parseInt(_0x46404(0x166))/0x3+parseInt(_0x46404(0x165))/0x4*(parseInt(_0x46404(0x17b))/0x5)+parseInt(_0x46404(0x158))/0x6*(-parseInt(_0x46404(0x15e))/0x7)+-parseInt(_0x46404(0x175))/0x8*(-parseInt(_0x46404(0x16c))/0x9)+parseInt(_0x46404(0x168))/0xa*(parseInt(_0x46404(0x172))/0xb)+-parseInt(_0x46404(0x17f))/0xc*(parseInt(_0x46404(0x16a))/0xd);if(_0x141d43===_0x15896d)break;else _0x4c4d8e['push'](_0x4c4d8e['shift']());}catch(_0x41347b){_0x4c4d8e['push'](_0x4c4d8e['shift']());}}}(a203_0x1f14,0x992aa));import a203_0x127085 from'node:fs';import a203_0x144ec3 from'node:path';import a203_0x318ff2 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a203_0x51cd9a(0x163);function isNonNumericVersion(_0x2ad499){const _0x5f08d3=a203_0x51cd9a,_0x514d55=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x514d55['some'](_0x1e1a71=>_0x1e1a71[_0x5f08d3(0x16f)](_0x2ad499));}function getInstalledVersion(_0x5bf622,_0x29f247){const _0x392bc7=a203_0x51cd9a;try{const _0xd45611=a203_0x144ec3[_0x392bc7(0x17e)](_0x5bf622,'node_modules',_0x29f247,_0x392bc7(0x177));if(a203_0x127085['existsSync'](_0xd45611)){const _0x3ad45c=JSON[_0x392bc7(0x161)](a203_0x127085[_0x392bc7(0x16d)](_0xd45611,_0x392bc7(0x17a)));return _0x3ad45c[_0x392bc7(0x15b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3598f2=a203_0x51cd9a;try{const _0x554cde=await getCdnConfig();return _0x554cde?.[_0x3598f2(0x174)]?.[_0x3598f2(0x169)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x5e9692=a203_0x51cd9a;try{const _0x2e1144=await getCdnConfig();return _0x2e1144?.[_0x5e9692(0x174)]?.['node']?.[_0x5e9692(0x15a)]||'@lovrabet/sdk';}catch{return _0x5e9692(0x15f);}}export async function checkSdkVersion(_0x104d5b){const _0x47096a=a203_0x51cd9a,_0x1bc1e0=a203_0x144ec3[_0x47096a(0x17e)](_0x104d5b,'package.json'),[_0x3cc971,_0x5b331c]=await Promise[_0x47096a(0x167)]([getSdkStableVersion(),getSdkPackageName()]),_0x5933f7=_0x3cc971||FALLBACK_MIN_SDK_VERSION;if(!a203_0x127085[_0x47096a(0x15d)](_0x1bc1e0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5933f7,'packageName':_0x5b331c,'stableVersion':_0x3cc971};try{const _0x183aa3=JSON[_0x47096a(0x161)](a203_0x127085['readFileSync'](_0x1bc1e0,_0x47096a(0x179))),_0x4d1dbb=_0x183aa3[_0x47096a(0x162)]||{},_0x305af4=_0x183aa3[_0x47096a(0x164)]||{},_0x182fbe=_0x4d1dbb[_0x5b331c]||_0x305af4[_0x5b331c];if(!_0x182fbe)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5933f7,'packageName':_0x5b331c,'stableVersion':_0x3cc971};let _0x2603b4=getInstalledVersion(_0x104d5b,_0x5b331c);!_0x2603b4&&(_0x2603b4=_0x182fbe);if(isNonNumericVersion(_0x182fbe))return{'installed':!![],'version':_0x2603b4,'needsUpgrade':![],'minVersion':_0x5933f7,'packageName':_0x5b331c,'stableVersion':_0x3cc971};const _0x2a2827=a203_0x318ff2[_0x47096a(0x15c)](_0x2603b4),_0x558a7a=a203_0x318ff2[_0x47096a(0x15c)](_0x5933f7),_0x22dff7=_0x2a2827&&_0x558a7a?a203_0x318ff2['lt'](_0x2a2827,_0x558a7a):![];return{'installed':!![],'version':_0x2603b4,'needsUpgrade':_0x22dff7,'minVersion':_0x5933f7,'packageName':_0x5b331c,'stableVersion':_0x3cc971};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5933f7,'packageName':_0x5b331c,'stableVersion':_0x3cc971};}}export function checkSdkVersionSync(_0x303056){const _0x19802b=a203_0x51cd9a,_0x145792=a203_0x144ec3[_0x19802b(0x17e)](_0x303056,_0x19802b(0x177)),_0x30f2be=_0x19802b(0x15f);if(!a203_0x127085[_0x19802b(0x15d)](_0x145792))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30f2be,'stableVersion':null};try{const _0x55bbd1=JSON[_0x19802b(0x161)](a203_0x127085[_0x19802b(0x16d)](_0x145792,_0x19802b(0x179))),_0x314455=_0x55bbd1[_0x19802b(0x162)]||{},_0xe7ec5c=_0x55bbd1[_0x19802b(0x164)]||{},_0x2770dc=_0x314455[_0x30f2be]||_0xe7ec5c[_0x30f2be];if(!_0x2770dc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30f2be,'stableVersion':null};let _0x1e8930=getInstalledVersion(_0x303056,_0x30f2be);!_0x1e8930&&(_0x1e8930=_0x2770dc);if(isNonNumericVersion(_0x2770dc))return{'installed':!![],'version':_0x1e8930,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30f2be,'stableVersion':null};const _0x52817a=a203_0x318ff2[_0x19802b(0x15c)](_0x1e8930),_0x133118=_0x52817a?a203_0x318ff2['lt'](_0x52817a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1e8930,'needsUpgrade':_0x133118,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30f2be,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30f2be,'stableVersion':null};}}function a203_0x1e6c(_0x17510b,_0xb45c58){_0x17510b=_0x17510b-0x158;const _0x1f144e=a203_0x1f14();let _0x1e6c80=_0x1f144e[_0x17510b];return _0x1e6c80;}export function printSdkUpgradeWarning(_0x574754){const _0x2b014e=a203_0x51cd9a;if(!_0x574754[_0x2b014e(0x170)])return;const _0x224b5c='\x1b[33m',_0x35c5fe=_0x2b014e(0x16b),_0x239588=_0x2b014e(0x16e),_0x5df74c=_0x574754[_0x2b014e(0x15a)]||_0x2b014e(0x15f),_0x3c7007=_0x574754[_0x2b014e(0x178)]||_0x574754['minVersion'],_0x232700=_0x2b014e(0x17d)+_0x5df74c+'@'+(_0x3c7007||_0x2b014e(0x173));console[_0x2b014e(0x160)](),console[_0x2b014e(0x160)](''+_0x224b5c+_0x239588+_0x2b014e(0x171)+_0x35c5fe),console[_0x2b014e(0x160)](_0x224b5c+_0x2b014e(0x17c)+_0x5df74c+'@'+_0x574754[_0x2b014e(0x15b)]+_0x35c5fe),console['log'](_0x224b5c+'\x20\x20\x20Stable\x20version:\x20'+_0x3c7007+_0x35c5fe),console['log'](_0x224b5c+'\x20\x20\x20Upgrade\x20command:\x20'+_0x232700+_0x35c5fe),console[_0x2b014e(0x160)]();}
1
+ const a202_0x21be0b=a202_0x47bd;(function(_0x171daa,_0x2f681d){const _0x4077a7=a202_0x47bd,_0x112b83=_0x171daa();while(!![]){try{const _0x492156=parseInt(_0x4077a7(0x1a1))/0x1+-parseInt(_0x4077a7(0x1a4))/0x2*(-parseInt(_0x4077a7(0x1ad))/0x3)+-parseInt(_0x4077a7(0x19e))/0x4+-parseInt(_0x4077a7(0x19b))/0x5+-parseInt(_0x4077a7(0x1b3))/0x6+parseInt(_0x4077a7(0x191))/0x7*(parseInt(_0x4077a7(0x1a9))/0x8)+parseInt(_0x4077a7(0x194))/0x9;if(_0x492156===_0x2f681d)break;else _0x112b83['push'](_0x112b83['shift']());}catch(_0x5acafd){_0x112b83['push'](_0x112b83['shift']());}}}(a202_0x1aa4,0x43c6d));import a202_0x1a55b6 from'node:fs';import a202_0xdd7d8f from'node:path';import a202_0x30f5c3 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a202_0x1aa4(){const _0x8c802f=['1962968uSznoY','1.2.0','npm\x20install\x20','\x1b[0m','524049NlTKDY','node','\x20\x20\x20Stable\x20version:\x20','utf8','stableVersion','log','2542908rUfudX','some','↪\x20SDK\x20update\x20available','version','utf-8','7eJZDov','coerce','join','4734396pevkmu','package.json','devDependencies','existsSync','@lovrabet/sdk','readFileSync','\x20\x20\x20Current\x20version:\x20','160885oYCepb','\x1b[33m','\x1b[1m','1841860acdmmz','packageName','latest','247975YejZxS','dependencies','needsUpgrade','2glSifv','all','test','sdk','parse'];a202_0x1aa4=function(){return _0x8c802f;};return a202_0x1aa4();}const FALLBACK_MIN_SDK_VERSION=a202_0x21be0b(0x1aa);function isNonNumericVersion(_0x1c7667){const _0x4728ec=a202_0x21be0b,_0x3d6556=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3d6556[_0x4728ec(0x1b4)](_0x47cfcb=>_0x47cfcb[_0x4728ec(0x1a6)](_0x1c7667));}function getInstalledVersion(_0x3544a9,_0x4b624f){const _0x3eb29d=a202_0x21be0b;try{const _0xb2bf76=a202_0xdd7d8f['join'](_0x3544a9,'node_modules',_0x4b624f,_0x3eb29d(0x195));if(a202_0x1a55b6['existsSync'](_0xb2bf76)){const _0x4450e8=JSON[_0x3eb29d(0x1a8)](a202_0x1a55b6[_0x3eb29d(0x199)](_0xb2bf76,_0x3eb29d(0x190)));return _0x4450e8[_0x3eb29d(0x18f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x899f9d=a202_0x21be0b;try{const _0xb133d6=await getCdnConfig();return _0xb133d6?.['sdk']?.[_0x899f9d(0x1ae)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x41f9f9=a202_0x21be0b;try{const _0x5b7fa0=await getCdnConfig();return _0x5b7fa0?.[_0x41f9f9(0x1a7)]?.[_0x41f9f9(0x1ae)]?.['packageName']||_0x41f9f9(0x198);}catch{return'@lovrabet/sdk';}}function a202_0x47bd(_0x1e13a1,_0x4da1cb){_0x1e13a1=_0x1e13a1-0x18f;const _0x1aa47b=a202_0x1aa4();let _0x47bdb1=_0x1aa47b[_0x1e13a1];return _0x47bdb1;}export async function checkSdkVersion(_0x393eb7){const _0x20f131=a202_0x21be0b,_0x376871=a202_0xdd7d8f[_0x20f131(0x193)](_0x393eb7,'package.json'),[_0x121e9f,_0x1c847d]=await Promise[_0x20f131(0x1a5)]([getSdkStableVersion(),getSdkPackageName()]),_0xdbed2e=_0x121e9f||FALLBACK_MIN_SDK_VERSION;if(!a202_0x1a55b6[_0x20f131(0x197)](_0x376871))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};try{const _0x309d8b=JSON['parse'](a202_0x1a55b6[_0x20f131(0x199)](_0x376871,_0x20f131(0x1b0))),_0x73712=_0x309d8b[_0x20f131(0x1a2)]||{},_0xdaa6d4=_0x309d8b[_0x20f131(0x196)]||{},_0x1a82e9=_0x73712[_0x1c847d]||_0xdaa6d4[_0x1c847d];if(!_0x1a82e9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};let _0x4d9a24=getInstalledVersion(_0x393eb7,_0x1c847d);!_0x4d9a24&&(_0x4d9a24=_0x1a82e9);if(isNonNumericVersion(_0x1a82e9))return{'installed':!![],'version':_0x4d9a24,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};const _0x38ee40=a202_0x30f5c3[_0x20f131(0x192)](_0x4d9a24),_0x8dc031=a202_0x30f5c3[_0x20f131(0x192)](_0xdbed2e),_0x5583bd=_0x38ee40&&_0x8dc031?a202_0x30f5c3['lt'](_0x38ee40,_0x8dc031):![];return{'installed':!![],'version':_0x4d9a24,'needsUpgrade':_0x5583bd,'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};}}export function checkSdkVersionSync(_0x57a38a){const _0x486983=a202_0x21be0b,_0x187ab6=a202_0xdd7d8f[_0x486983(0x193)](_0x57a38a,_0x486983(0x195)),_0x41aa75=_0x486983(0x198);if(!a202_0x1a55b6[_0x486983(0x197)](_0x187ab6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};try{const _0x1c409f=JSON[_0x486983(0x1a8)](a202_0x1a55b6['readFileSync'](_0x187ab6,_0x486983(0x1b0))),_0x54c868=_0x1c409f[_0x486983(0x1a2)]||{},_0x19c0ef=_0x1c409f[_0x486983(0x196)]||{},_0x9b28a1=_0x54c868[_0x41aa75]||_0x19c0ef[_0x41aa75];if(!_0x9b28a1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};let _0x296cc8=getInstalledVersion(_0x57a38a,_0x41aa75);!_0x296cc8&&(_0x296cc8=_0x9b28a1);if(isNonNumericVersion(_0x9b28a1))return{'installed':!![],'version':_0x296cc8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};const _0x3174bc=a202_0x30f5c3['coerce'](_0x296cc8),_0x252e4e=_0x3174bc?a202_0x30f5c3['lt'](_0x3174bc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x296cc8,'needsUpgrade':_0x252e4e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x292f46){const _0x250361=a202_0x21be0b;if(!_0x292f46[_0x250361(0x1a3)])return;const _0x204d54=_0x250361(0x19c),_0x471be3=_0x250361(0x1ac),_0x2b41c0=_0x250361(0x19d),_0x1ff3a1=_0x292f46[_0x250361(0x19f)]||_0x250361(0x198),_0x2b2a85=_0x292f46[_0x250361(0x1b1)]||_0x292f46['minVersion'],_0x5cc632=_0x250361(0x1ab)+_0x1ff3a1+'@'+(_0x2b2a85||_0x250361(0x1a0));console[_0x250361(0x1b2)](),console[_0x250361(0x1b2)](''+_0x204d54+_0x2b41c0+_0x250361(0x1b5)+_0x471be3),console[_0x250361(0x1b2)](_0x204d54+_0x250361(0x19a)+_0x1ff3a1+'@'+_0x292f46[_0x250361(0x18f)]+_0x471be3),console['log'](_0x204d54+_0x250361(0x1af)+_0x2b2a85+_0x471be3),console[_0x250361(0x1b2)](_0x204d54+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5cc632+_0x471be3),console[_0x250361(0x1b2)]();}
@@ -1 +1 @@
1
- (function(_0x59fd12,_0x179249){const _0x43d653=a204_0xf9d1,_0x32cf68=_0x59fd12();while(!![]){try{const _0x57b7e9=-parseInt(_0x43d653(0x1fb))/0x1+-parseInt(_0x43d653(0x203))/0x2*(-parseInt(_0x43d653(0x1fc))/0x3)+-parseInt(_0x43d653(0x20c))/0x4*(parseInt(_0x43d653(0x20e))/0x5)+-parseInt(_0x43d653(0x1fa))/0x6+parseInt(_0x43d653(0x206))/0x7*(parseInt(_0x43d653(0x215))/0x8)+parseInt(_0x43d653(0x211))/0x9+parseInt(_0x43d653(0x207))/0xa;if(_0x57b7e9===_0x179249)break;else _0x32cf68['push'](_0x32cf68['shift']());}catch(_0x4689e6){_0x32cf68['push'](_0x32cf68['shift']());}}}(a204_0x313d,0xcd70b));import{readFileSync}from'node:fs';function a204_0xf9d1(_0x225336,_0xf90160){_0x225336=_0x225336-0x1f4;const _0x313dad=a204_0x313d();let _0xf9d179=_0x313dad[_0x225336];return _0xf9d179;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a204_0x6b62b5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a204_0x313d(){const _0x1395f7=['Current\x20version:\x20','utf-8','minimumVersion','log','coerce','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','2546508FYhfsN','435697VqQZLz','2235EwitYP','upgradeMessage','currentVersion','belowMinimum','\x1b[0m','join','\x20\x20\x20Upgrade\x20command:\x20','2134GjBYOb','stableVersion','minimumVersionMessage','7MQGzKs','311250xfwNth','\x20\x20\x20Current\x20CLI\x20version:\x20','npm\x20install\x20-g\x20','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','4852192WnESjp','↪\x20Critical\x20CLI\x20upgrade\x20required','5oaqJRF','latest','\x20\x20\x20Minimum\x20supported:\x20','8856675rbNcVU','needsUpgrade','\x1b[33m','↪\x20New\x20version\x20available','8836248gZxJey','1.0.0','\x1b[31m'];a204_0x313d=function(){return _0x1395f7;};return a204_0x313d();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x248044){const _0x5d082a=a204_0xf9d1,_0x1e05d6=_0x248044[_0x5d082a(0x204)]||_0x5d082a(0x20f);return _0x5d082a(0x209)+NPM_PACKAGE_NAME+'@'+_0x1e05d6;}function getCurrentCliVersion(){const _0x3ba062=a204_0xf9d1;try{const _0xed80ed=fileURLToPath(import.meta.url),_0x1f3b20=resolve(dirname(_0xed80ed),'../..'),_0x15b724=resolve(_0x1f3b20,'package.json'),_0x6a17f6=JSON['parse'](readFileSync(_0x15b724,_0x3ba062(0x1f5)));return _0x6a17f6['version']||_0x3ba062(0x216);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1bf503=a204_0xf9d1,_0x3270b9=getCurrentCliVersion(),_0x5e83ea=await getCliVersionPolicy(),_0x36226d=_0x5e83ea?.[_0x1bf503(0x204)]||null,_0x4d8b5d=_0x5e83ea?.[_0x1bf503(0x1f6)]||null;let _0xca55f6=![],_0x28ef0f=![];const _0x22e0da=a204_0x6b62b5[_0x1bf503(0x1f8)](_0x3270b9);if(_0x22e0da&&_0x36226d)try{const _0x28594e=a204_0x6b62b5[_0x1bf503(0x1f8)](_0x36226d);if(_0x28594e)_0xca55f6=a204_0x6b62b5['lt'](_0x22e0da,_0x28594e);}catch{}if(_0x22e0da&&_0x4d8b5d)try{const _0x44736d=a204_0x6b62b5[_0x1bf503(0x1f8)](_0x4d8b5d);if(_0x44736d)_0x28ef0f=a204_0x6b62b5['lt'](_0x22e0da,_0x44736d);}catch{}return _0x28ef0f&&(_0xca55f6=!![]),{'currentVersion':_0x3270b9,'stableVersion':_0x36226d,'minimumVersion':_0x4d8b5d,'needsUpgrade':_0xca55f6,'belowMinimum':_0x28ef0f,'isPreRelease':![],'upgradeMessage':_0x5e83ea?.[_0x1bf503(0x1fd)],'minimumVersionMessage':_0x5e83ea?.[_0x1bf503(0x205)]};}export function printCliUpgradeWarning(_0x36a5f2){const _0x387a3a=a204_0xf9d1;if(!_0x36a5f2[_0x387a3a(0x212)]&&!_0x36a5f2[_0x387a3a(0x1ff)])return;const _0x573825=_0x387a3a(0x217),_0xb456b3=_0x387a3a(0x213),_0x4fc2ae=_0x387a3a(0x200),_0x2b2472='\x1b[1m',_0x36a796=getCliUpgradeCommand(_0x36a5f2);console[_0x387a3a(0x1f7)](),_0x36a5f2[_0x387a3a(0x1ff)]?(console[_0x387a3a(0x1f7)](''+_0x573825+_0x2b2472+_0x387a3a(0x20d)+_0x4fc2ae),console['log'](_0x573825+_0x387a3a(0x208)+_0x36a5f2[_0x387a3a(0x1fe)]+_0x4fc2ae),_0x36a5f2[_0x387a3a(0x1f6)]&&console[_0x387a3a(0x1f7)](_0x573825+_0x387a3a(0x210)+_0x36a5f2[_0x387a3a(0x1f6)]+_0x4fc2ae),_0x36a5f2[_0x387a3a(0x204)]&&_0x36a5f2['stableVersion']!==_0x36a5f2[_0x387a3a(0x1f6)]&&console[_0x387a3a(0x1f7)](_0x573825+_0x387a3a(0x20b)+_0x36a5f2[_0x387a3a(0x204)]+_0x4fc2ae),_0x36a5f2[_0x387a3a(0x205)]&&console[_0x387a3a(0x1f7)](_0x573825+'\x20\x20\x20'+_0x36a5f2[_0x387a3a(0x205)]+_0x4fc2ae),console[_0x387a3a(0x1f7)](_0x573825+_0x387a3a(0x202)+_0x36a796+_0x4fc2ae)):(console[_0x387a3a(0x1f7)](''+_0xb456b3+_0x2b2472+_0x387a3a(0x214)+_0x4fc2ae),console['log'](_0xb456b3+_0x387a3a(0x208)+_0x36a5f2[_0x387a3a(0x1fe)]+_0x4fc2ae),console[_0x387a3a(0x1f7)](_0xb456b3+_0x387a3a(0x20a)+_0x36a5f2[_0x387a3a(0x204)]+_0x4fc2ae),_0x36a5f2[_0x387a3a(0x1fd)]&&console[_0x387a3a(0x1f7)](_0xb456b3+'\x20\x20\x20'+_0x36a5f2[_0x387a3a(0x1fd)]+_0x4fc2ae),console[_0x387a3a(0x1f7)](_0xb456b3+_0x387a3a(0x202)+_0x36a796+_0x4fc2ae)),console[_0x387a3a(0x1f7)]();}export function assertCliVersionSupported(_0x5209e9){const _0xb6e938=a204_0xf9d1;if(!_0x5209e9['belowMinimum'])return;const _0x1d475a=[_0x5209e9['minimumVersionMessage'],_0xb6e938(0x1f4)+_0x5209e9[_0xb6e938(0x1fe)],_0x5209e9[_0xb6e938(0x1f6)]?'Minimum\x20supported:\x20'+_0x5209e9[_0xb6e938(0x1f6)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x5209e9)]['filter'](Boolean)[_0xb6e938(0x201)]('\x0a');throw CliErrors['validation'](_0xb6e938(0x1f9),_0x1d475a);}
1
+ (function(_0x27a3a3,_0x480472){const _0x52a861=a203_0x41b9,_0x55439c=_0x27a3a3();while(!![]){try{const _0x2d4c90=-parseInt(_0x52a861(0x203))/0x1*(parseInt(_0x52a861(0x209))/0x2)+parseInt(_0x52a861(0x1f3))/0x3+parseInt(_0x52a861(0x206))/0x4+-parseInt(_0x52a861(0x1fe))/0x5+parseInt(_0x52a861(0x1eb))/0x6+-parseInt(_0x52a861(0x20f))/0x7*(parseInt(_0x52a861(0x20d))/0x8)+parseInt(_0x52a861(0x1ef))/0x9;if(_0x2d4c90===_0x480472)break;else _0x55439c['push'](_0x55439c['shift']());}catch(_0x93d847){_0x55439c['push'](_0x55439c['shift']());}}}(a203_0x12fb,0x90592));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a203_0x12fb(){const _0x32c997=['minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','../..','\x20\x20\x20Upgrade\x20command:\x20','parse','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','2161390oTBXoj','npm\x20install\x20-g\x20','\x1b[1m','upgradeMessage','stableVersion','1UMgeaO','\x20\x20\x20Minimum\x20supported:\x20','log','983912FlSBKb','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','1334714JuaxXc','version','\x1b[31m','Current\x20version:\x20','24VCJTHp','currentVersion','146293CpVpxZ','\x1b[0m','validation','6969918DFNord','belowMinimum','↪\x20New\x20version\x20available','latest','2416131AAQTSr','Upgrade\x20command:\x20','filter','1.0.0','232476ENZjaK','↪\x20Critical\x20CLI\x20upgrade\x20required'];a203_0x12fb=function(){return _0x32c997;};return a203_0x12fb();}import a203_0x293c1f 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(_0x1e68f8){const _0x28f978=a203_0x41b9,_0x5be2de=_0x1e68f8[_0x28f978(0x202)]||_0x28f978(0x1ee);return _0x28f978(0x1ff)+NPM_PACKAGE_NAME+'@'+_0x5be2de;}function getCurrentCliVersion(){const _0x4c7d59=a203_0x41b9;try{const _0x8bc3e3=fileURLToPath(import.meta.url),_0x42fc6f=resolve(dirname(_0x8bc3e3),_0x4c7d59(0x1f8)),_0x281f62=resolve(_0x42fc6f,'package.json'),_0x140266=JSON[_0x4c7d59(0x1fa)](readFileSync(_0x281f62,'utf-8'));return _0x140266[_0x4c7d59(0x20a)]||_0x4c7d59(0x1f2);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x11385f=a203_0x41b9,_0x4bcbf5=getCurrentCliVersion(),_0x1118c7=await getCliVersionPolicy(),_0x273d44=_0x1118c7?.[_0x11385f(0x202)]||null,_0x2ddf0a=_0x1118c7?.[_0x11385f(0x207)]||null;let _0x2d1655=![],_0x487ad1=![];const _0xa4ed38=a203_0x293c1f[_0x11385f(0x1fd)](_0x4bcbf5);if(_0xa4ed38&&_0x273d44)try{const _0x968271=a203_0x293c1f[_0x11385f(0x1fd)](_0x273d44);if(_0x968271)_0x2d1655=a203_0x293c1f['lt'](_0xa4ed38,_0x968271);}catch{}if(_0xa4ed38&&_0x2ddf0a)try{const _0x5b7f22=a203_0x293c1f[_0x11385f(0x1fd)](_0x2ddf0a);if(_0x5b7f22)_0x487ad1=a203_0x293c1f['lt'](_0xa4ed38,_0x5b7f22);}catch{}return _0x487ad1&&(_0x2d1655=!![]),{'currentVersion':_0x4bcbf5,'stableVersion':_0x273d44,'minimumVersion':_0x2ddf0a,'needsUpgrade':_0x2d1655,'belowMinimum':_0x487ad1,'isPreRelease':![],'upgradeMessage':_0x1118c7?.[_0x11385f(0x201)],'minimumVersionMessage':_0x1118c7?.[_0x11385f(0x1f5)]};}function a203_0x41b9(_0x4ac911,_0x1cdb5e){_0x4ac911=_0x4ac911-0x1eb;const _0x12fb64=a203_0x12fb();let _0x41b9b0=_0x12fb64[_0x4ac911];return _0x41b9b0;}export function printCliUpgradeWarning(_0x279036){const _0x3aaa54=a203_0x41b9;if(!_0x279036[_0x3aaa54(0x1f7)]&&!_0x279036[_0x3aaa54(0x1ec)])return;const _0x570cd2=_0x3aaa54(0x20b),_0x44ee89='\x1b[33m',_0xdba99d=_0x3aaa54(0x210),_0x30d487=_0x3aaa54(0x200),_0x48dd66=getCliUpgradeCommand(_0x279036);console[_0x3aaa54(0x205)](),_0x279036['belowMinimum']?(console[_0x3aaa54(0x205)](''+_0x570cd2+_0x30d487+_0x3aaa54(0x1f4)+_0xdba99d),console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x1fc)+_0x279036['currentVersion']+_0xdba99d),_0x279036[_0x3aaa54(0x207)]&&console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x204)+_0x279036[_0x3aaa54(0x207)]+_0xdba99d),_0x279036[_0x3aaa54(0x202)]&&_0x279036[_0x3aaa54(0x202)]!==_0x279036[_0x3aaa54(0x207)]&&console[_0x3aaa54(0x205)](_0x570cd2+'\x20\x20\x20Recommended\x20stable:\x20'+_0x279036[_0x3aaa54(0x202)]+_0xdba99d),_0x279036[_0x3aaa54(0x1f5)]&&console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x1fb)+_0x279036['minimumVersionMessage']+_0xdba99d),console[_0x3aaa54(0x205)](_0x570cd2+'\x20\x20\x20Upgrade\x20command:\x20'+_0x48dd66+_0xdba99d)):(console[_0x3aaa54(0x205)](''+_0x44ee89+_0x30d487+_0x3aaa54(0x1ed)+_0xdba99d),console['log'](_0x44ee89+_0x3aaa54(0x1fc)+_0x279036['currentVersion']+_0xdba99d),console[_0x3aaa54(0x205)](_0x44ee89+_0x3aaa54(0x1f6)+_0x279036['stableVersion']+_0xdba99d),_0x279036[_0x3aaa54(0x201)]&&console['log'](_0x44ee89+_0x3aaa54(0x1fb)+_0x279036['upgradeMessage']+_0xdba99d),console[_0x3aaa54(0x205)](_0x44ee89+_0x3aaa54(0x1f9)+_0x48dd66+_0xdba99d)),console[_0x3aaa54(0x205)]();}export function assertCliVersionSupported(_0x38b0d6){const _0x140c8b=a203_0x41b9;if(!_0x38b0d6['belowMinimum'])return;const _0x46d5ae=[_0x38b0d6['minimumVersionMessage'],_0x140c8b(0x20c)+_0x38b0d6[_0x140c8b(0x20e)],_0x38b0d6[_0x140c8b(0x207)]?'Minimum\x20supported:\x20'+_0x38b0d6['minimumVersion']:null,_0x140c8b(0x1f0)+getCliUpgradeCommand(_0x38b0d6)][_0x140c8b(0x1f1)](Boolean)['join']('\x0a');throw CliErrors[_0x140c8b(0x211)](_0x140c8b(0x208),_0x46d5ae);}
@@ -1 +1 @@
1
- (function(_0x1a43b9,_0x20eceb){const _0x151900=a205_0x334c,_0x4f9039=_0x1a43b9();while(!![]){try{const _0x531f92=parseInt(_0x151900(0x13a))/0x1*(-parseInt(_0x151900(0x13d))/0x2)+-parseInt(_0x151900(0x141))/0x3+-parseInt(_0x151900(0x146))/0x4+-parseInt(_0x151900(0x139))/0x5+-parseInt(_0x151900(0x135))/0x6+-parseInt(_0x151900(0x140))/0x7*(parseInt(_0x151900(0x147))/0x8)+parseInt(_0x151900(0x134))/0x9;if(_0x531f92===_0x20eceb)break;else _0x4f9039['push'](_0x4f9039['shift']());}catch(_0x170405){_0x4f9039['push'](_0x4f9039['shift']());}}}(a205_0x2da3,0x772c4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a205_0x334c(_0x498d95,_0x2b83cf){_0x498d95=_0x498d95-0x133;const _0x2da3c0=a205_0x2da3();let _0x334cbc=_0x2da3c0[_0x498d95];return _0x334cbc;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4a5109){const _0x575b5d=a205_0x334c;return typeof _0x4a5109==='string'&&_0x4a5109[_0x575b5d(0x133)]()[_0x575b5d(0x13c)]>0x0?_0x4a5109[_0x575b5d(0x133)]():null;}function normalizeCliVersionPolicy(_0x293a84){const _0x1857fa=a205_0x334c;if(!_0x293a84||typeof _0x293a84!=='object')return null;const _0xbc762f=_0x293a84,_0x21f3a9=_0xbc762f[_0x1857fa(0x137)]&&typeof _0xbc762f[_0x1857fa(0x137)]===_0x1857fa(0x14a)?_0xbc762f['cli']:_0xbc762f,_0x2f7818=pickString(_0x21f3a9[_0x1857fa(0x138)])||pickString(_0x21f3a9[_0x1857fa(0x143)])||pickString(_0x21f3a9[_0x1857fa(0x148)]),_0xfa1f06=pickString(_0x21f3a9[_0x1857fa(0x13f)])||pickString(_0x21f3a9[_0x1857fa(0x149)]);if(!_0x2f7818&&!_0xfa1f06)return null;return{'stableVersion':_0x2f7818,'minimumVersion':_0xfa1f06,'upgradeMessage':pickString(_0x21f3a9[_0x1857fa(0x145)])||undefined,'minimumVersionMessage':pickString(_0x21f3a9[_0x1857fa(0x144)])||undefined};}export async function fetchCliVersionPolicy(){const _0x56d124=a205_0x334c,_0x55b489=new AbortController(),_0x401206=setTimeout(()=>_0x55b489[_0x56d124(0x13b)](),FETCH_TIMEOUT_MS);try{const _0x31501e=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x56d124(0x13e)},'signal':_0x55b489['signal']});if(!_0x31501e['ok'])return null;const _0x5ab6ac=await _0x31501e[_0x56d124(0x136)]();return normalizeCliVersionPolicy(_0x5ab6ac);}catch{return null;}finally{clearTimeout(_0x401206);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2524fc=a205_0x334c,_0x3cca95=Date[_0x2524fc(0x142)]();if(hasCachedPolicy){const _0x4406ad=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3cca95-cacheTime<_0x4406ad)return cachedPolicy;}const _0xfc30f1=await fetchCliVersionPolicy();return cachedPolicy=_0xfc30f1,cacheTime=_0x3cca95,hasCachedPolicy=!![],_0xfc30f1;}function a205_0x2da3(){const _0x1ce4e3=['length','2WoIsSF','application/json','minimumVersion','48062BlgDqY','1962918ZlUCcz','now','latestVersion','minimumVersionMessage','upgradeMessage','1525996ztDZdR','840OlAOQe','recommendedVersion','minVersion','object','trim','25402806LzMJER','24582lWJEbp','json','cli','stableVersion','2771875iepriS','19195bjjflE','abort'];a205_0x2da3=function(){return _0x1ce4e3;};return a205_0x2da3();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x405596,_0x4c5e95){const _0x1e5240=a204_0x140c,_0xb12a39=_0x405596();while(!![]){try{const _0x347888=parseInt(_0x1e5240(0x1bd))/0x1*(parseInt(_0x1e5240(0x1a8))/0x2)+-parseInt(_0x1e5240(0x1c0))/0x3*(parseInt(_0x1e5240(0x1b3))/0x4)+-parseInt(_0x1e5240(0x1af))/0x5*(parseInt(_0x1e5240(0x1ba))/0x6)+parseInt(_0x1e5240(0x1b2))/0x7+-parseInt(_0x1e5240(0x1b9))/0x8*(-parseInt(_0x1e5240(0x1b4))/0x9)+-parseInt(_0x1e5240(0x1b1))/0xa+-parseInt(_0x1e5240(0x1bb))/0xb*(-parseInt(_0x1e5240(0x1a9))/0xc);if(_0x347888===_0x4c5e95)break;else _0xb12a39['push'](_0xb12a39['shift']());}catch(_0x5a4d69){_0xb12a39['push'](_0xb12a39['shift']());}}}(a204_0x2edc,0x4c42b));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 a204_0x140c(_0x39645a,_0x5c1d9f){_0x39645a=_0x39645a-0x1a5;const _0x2edc28=a204_0x2edc();let _0x140c3e=_0x2edc28[_0x39645a];return _0x140c3e;}function a204_0x2edc(){const _0x950229=['7531452NqYiOn','now','signal','stableVersion','trim','latestVersion','5140rXvtyG','json','2558590sBnWVw','2124703cezuwC','248156ZDiFpD','1161DviqKv','length','upgradeMessage','object','recommendedVersion','472NkvBPP','2478efwNYY','11rOGHfI','minimumVersionMessage','17ikxxMK','application/json','minVersion','9UkdqCj','abort','cli','string','minimumVersion','28252UeleMj'];a204_0x2edc=function(){return _0x950229;};return a204_0x2edc();}function pickString(_0x476fc3){const _0x13b3e3=a204_0x140c;return typeof _0x476fc3===_0x13b3e3(0x1a6)&&_0x476fc3[_0x13b3e3(0x1ad)]()[_0x13b3e3(0x1b5)]>0x0?_0x476fc3[_0x13b3e3(0x1ad)]():null;}function normalizeCliVersionPolicy(_0x1328fc){const _0x39a3b7=a204_0x140c;if(!_0x1328fc||typeof _0x1328fc!==_0x39a3b7(0x1b7))return null;const _0x17a1b6=_0x1328fc,_0x5c13c7=_0x17a1b6['cli']&&typeof _0x17a1b6[_0x39a3b7(0x1a5)]===_0x39a3b7(0x1b7)?_0x17a1b6['cli']:_0x17a1b6,_0x314f7d=pickString(_0x5c13c7[_0x39a3b7(0x1ac)])||pickString(_0x5c13c7[_0x39a3b7(0x1ae)])||pickString(_0x5c13c7[_0x39a3b7(0x1b8)]),_0x823554=pickString(_0x5c13c7[_0x39a3b7(0x1a7)])||pickString(_0x5c13c7[_0x39a3b7(0x1bf)]);if(!_0x314f7d&&!_0x823554)return null;return{'stableVersion':_0x314f7d,'minimumVersion':_0x823554,'upgradeMessage':pickString(_0x5c13c7[_0x39a3b7(0x1b6)])||undefined,'minimumVersionMessage':pickString(_0x5c13c7[_0x39a3b7(0x1bc)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1f6a83=a204_0x140c,_0x2ea8ef=new AbortController(),_0x28dae4=setTimeout(()=>_0x2ea8ef[_0x1f6a83(0x1c1)](),FETCH_TIMEOUT_MS);try{const _0x33eabd=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1f6a83(0x1be)},'signal':_0x2ea8ef[_0x1f6a83(0x1ab)]});if(!_0x33eabd['ok'])return null;const _0x1bc333=await _0x33eabd[_0x1f6a83(0x1b0)]();return normalizeCliVersionPolicy(_0x1bc333);}catch{return null;}finally{clearTimeout(_0x28dae4);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x410c20=a204_0x140c,_0x14554b=Date[_0x410c20(0x1aa)]();if(hasCachedPolicy){const _0x56cd88=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14554b-cacheTime<_0x56cd88)return cachedPolicy;}const _0x346dff=await fetchCliVersionPolicy();return cachedPolicy=_0x346dff,cacheTime=_0x14554b,hasCachedPolicy=!![],_0x346dff;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x574e45,_0x14f94a){const _0x22d74c=a206_0xb8f2,_0x31fbd1=_0x574e45();while(!![]){try{const _0x362641=-parseInt(_0x22d74c(0x12f))/0x1*(-parseInt(_0x22d74c(0x134))/0x2)+parseInt(_0x22d74c(0x12e))/0x3+-parseInt(_0x22d74c(0x132))/0x4*(parseInt(_0x22d74c(0x12d))/0x5)+parseInt(_0x22d74c(0x133))/0x6+parseInt(_0x22d74c(0x12b))/0x7+-parseInt(_0x22d74c(0x130))/0x8+-parseInt(_0x22d74c(0x131))/0x9*(-parseInt(_0x22d74c(0x129))/0xa);if(_0x362641===_0x14f94a)break;else _0x31fbd1['push'](_0x31fbd1['shift']());}catch(_0x223f21){_0x31fbd1['push'](_0x31fbd1['shift']());}}}(a206_0x2725,0xa3794));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a206_0x1df631,getMultiAppConfigs as a206_0xd227c0,getTemplateBaseUrl as a206_0x5ce216}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a206_0x2725(){const _0x46ac6f=['5175angbPd','1304016vRdmYu','19jAggIr','10304064biknBZ','135LmnsHv','3244KEyhrA','5945226xvzOcW','41882DchxKm','411310PDbVuo','env','2496158aRukOO','string'];a206_0x2725=function(){return _0x46ac6f;};return a206_0x2725();}export function readConfig(_0x33fce2){const _0x13101a=a206_0xb8f2,_0x40a012=readRawConfig(_0x33fce2);return _0x40a012['env']&&typeof _0x40a012[_0x13101a(0x12a)]===_0x13101a(0x12c)&&initEnv(_0x40a012[_0x13101a(0x12a)]),_0x40a012;}function a206_0xb8f2(_0x171fca,_0xe7a005){_0x171fca=_0x171fca-0x129;const _0x2725a9=a206_0x2725();let _0xb8f2d=_0x2725a9[_0x171fca];return _0xb8f2d;}export function getConfigAppCode(){return a206_0x1df631();}export function getMultiAppConfigs(_0x4af5f8='project'){return a206_0xd227c0(_0x4af5f8);}export function getTemplateBaseUrl(){return a206_0x5ce216();}
1
+ function a205_0x4446(){const _0x2b9eac=['10484mNOxCf','string','project','183TFGhFI','2947540rTmIng','530DyBrWP','78378NVLFjj','14636646CFdmrJ','462MYfXZI','32116650HXInJE','177144sYLUdH','env','502218mTbBTf'];a205_0x4446=function(){return _0x2b9eac;};return a205_0x4446();}const a205_0x557507=a205_0x1b6e;(function(_0x42d6e2,_0x5d7cc9){const _0x4f37e9=a205_0x1b6e,_0x6efef8=_0x42d6e2();while(!![]){try{const _0x4073d9=parseInt(_0x4f37e9(0x17b))/0x1+parseInt(_0x4f37e9(0x180))/0x2+-parseInt(_0x4f37e9(0x17f))/0x3*(-parseInt(_0x4f37e9(0x17c))/0x4)+parseInt(_0x4f37e9(0x174))/0x5*(-parseInt(_0x4f37e9(0x175))/0x6)+parseInt(_0x4f37e9(0x177))/0x7*(-parseInt(_0x4f37e9(0x179))/0x8)+-parseInt(_0x4f37e9(0x176))/0x9+parseInt(_0x4f37e9(0x178))/0xa;if(_0x4073d9===_0x5d7cc9)break;else _0x6efef8['push'](_0x6efef8['shift']());}catch(_0x26a749){_0x6efef8['push'](_0x6efef8['shift']());}}}(a205_0x4446,0xd5a74));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0x2f151e,getMultiAppConfigs as a205_0x5b89bf,getTemplateBaseUrl as a205_0x3d5cc2}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a205_0x1b6e(_0x505dca,_0x59613f){_0x505dca=_0x505dca-0x174;const _0x4446f3=a205_0x4446();let _0x1b6e72=_0x4446f3[_0x505dca];return _0x1b6e72;}export{isInProject}from'../context.js';export function readConfig(_0x4feb42){const _0x5c7437=a205_0x1b6e,_0x49691d=readRawConfig(_0x4feb42);return _0x49691d[_0x5c7437(0x17a)]&&typeof _0x49691d['env']===_0x5c7437(0x17d)&&initEnv(_0x49691d[_0x5c7437(0x17a)]),_0x49691d;}export function getConfigAppCode(){return a205_0x2f151e();}export function getMultiAppConfigs(_0x21f57a=a205_0x557507(0x17e)){return a205_0x5b89bf(_0x21f57a);}export function getTemplateBaseUrl(){return a205_0x3d5cc2();}
@@ -1 +1 @@
1
- (function(_0x44abbf,_0x30dfa0){const _0x4774fc=a207_0x4c09,_0x110395=_0x44abbf();while(!![]){try{const _0x566bf9=-parseInt(_0x4774fc(0x155))/0x1*(parseInt(_0x4774fc(0x151))/0x2)+parseInt(_0x4774fc(0x157))/0x3*(-parseInt(_0x4774fc(0x14a))/0x4)+parseInt(_0x4774fc(0x150))/0x5+-parseInt(_0x4774fc(0x159))/0x6*(-parseInt(_0x4774fc(0x152))/0x7)+-parseInt(_0x4774fc(0x158))/0x8+parseInt(_0x4774fc(0x14e))/0x9+-parseInt(_0x4774fc(0x14f))/0xa*(-parseInt(_0x4774fc(0x15a))/0xb);if(_0x566bf9===_0x30dfa0)break;else _0x110395['push'](_0x110395['shift']());}catch(_0x6619be){_0x110395['push'](_0x110395['shift']());}}}(a207_0x394d,0xe67cb));import a207_0x2703c2 from'node:path';function a207_0x4c09(_0x1c44e1,_0x360382){_0x1c44e1=_0x1c44e1-0x14a;const _0x394df5=a207_0x394d();let _0x4c0908=_0x394df5[_0x1c44e1];return _0x4c0908;}import a207_0x4b5f25 from'node:fs';function a207_0x394d(){const _0x16cbf7=['55wFWbrZ','复制目录时出错:','92FgdCan','mkdirSync','copyFileSync','error','8997237eKntFq','1378730gBOOna','8600535Atmmwb','3653262ZRhDGl','2513vIXJMj','name','isDirectory','1vTbejS','join','6462lbwJVb','7718320rxXnGH','6282PcTnug'];a207_0x394d=function(){return _0x16cbf7;};return a207_0x394d();}export async function copyDirectory(_0xd5daf2,_0x3311c8){const _0x2e0b67=a207_0x4c09;try{const _0x3b827f=a207_0x4b5f25['readdirSync'](_0xd5daf2,{'withFileTypes':!![]});a207_0x4b5f25[_0x2e0b67(0x14b)](_0x3311c8,{'recursive':!![]});for(const _0x13ee6 of _0x3b827f){const _0x36ddda=a207_0x2703c2[_0x2e0b67(0x156)](_0xd5daf2,_0x13ee6[_0x2e0b67(0x153)]),_0x10bb97=a207_0x2703c2[_0x2e0b67(0x156)](_0x3311c8,_0x13ee6[_0x2e0b67(0x153)]);_0x13ee6[_0x2e0b67(0x154)]()?await copyDirectory(_0x36ddda,_0x10bb97):a207_0x4b5f25[_0x2e0b67(0x14c)](_0x36ddda,_0x10bb97);}}catch(_0x4ea4e5){console[_0x2e0b67(0x14d)](_0x2e0b67(0x15b),_0x4ea4e5);}}
1
+ (function(_0x2d0051,_0x4c7cff){const _0x44f32f=a206_0x3338,_0x57fd88=_0x2d0051();while(!![]){try{const _0x80abfc=-parseInt(_0x44f32f(0x1c7))/0x1*(-parseInt(_0x44f32f(0x1cb))/0x2)+-parseInt(_0x44f32f(0x1c4))/0x3*(parseInt(_0x44f32f(0x1c8))/0x4)+-parseInt(_0x44f32f(0x1cd))/0x5+-parseInt(_0x44f32f(0x1c9))/0x6+-parseInt(_0x44f32f(0x1c5))/0x7+parseInt(_0x44f32f(0x1ce))/0x8*(parseInt(_0x44f32f(0x1c0))/0x9)+parseInt(_0x44f32f(0x1c6))/0xa;if(_0x80abfc===_0x4c7cff)break;else _0x57fd88['push'](_0x57fd88['shift']());}catch(_0x5ca0dd){_0x57fd88['push'](_0x57fd88['shift']());}}}(a206_0x2567,0x1a1ac));function a206_0x3338(_0x54363a,_0x1c3a41){_0x54363a=_0x54363a-0x1be;const _0x2567fa=a206_0x2567();let _0x3338df=_0x2567fa[_0x54363a];return _0x3338df;}import a206_0x20fdeb from'node:path';import a206_0x52ff4b from'node:fs';function a206_0x2567(){const _0x539c67=['copyFileSync','复制目录时出错:','27bvqaFa','name','isDirectory','mkdirSync','12BlgEUy','1194634MwuQbN','5226840nDexVM','5564IVboGa','205908SXWCnC','833970FenVtG','join','18pbYnOB','readdirSync','326440zVAdDe','306712EPLINI'];a206_0x2567=function(){return _0x539c67;};return a206_0x2567();}export async function copyDirectory(_0x3f1760,_0x45c99a){const _0x1e9cbe=a206_0x3338;try{const _0x4d7ee0=a206_0x52ff4b[_0x1e9cbe(0x1cc)](_0x3f1760,{'withFileTypes':!![]});a206_0x52ff4b[_0x1e9cbe(0x1c3)](_0x45c99a,{'recursive':!![]});for(const _0x578bd2 of _0x4d7ee0){const _0x286308=a206_0x20fdeb[_0x1e9cbe(0x1ca)](_0x3f1760,_0x578bd2['name']),_0x21a86e=a206_0x20fdeb[_0x1e9cbe(0x1ca)](_0x45c99a,_0x578bd2[_0x1e9cbe(0x1c1)]);_0x578bd2[_0x1e9cbe(0x1c2)]()?await copyDirectory(_0x286308,_0x21a86e):a206_0x52ff4b[_0x1e9cbe(0x1be)](_0x286308,_0x21a86e);}}catch(_0x2dcce3){console['error'](_0x1e9cbe(0x1bf),_0x2dcce3);}}
@@ -1 +1 @@
1
- (function(_0x5ae4a1,_0x1346f5){const _0x386728=a208_0x4021,_0x8ded1c=_0x5ae4a1();while(!![]){try{const _0x1bb723=parseInt(_0x386728(0x1d0))/0x1*(parseInt(_0x386728(0x1d6))/0x2)+-parseInt(_0x386728(0x1d4))/0x3+parseInt(_0x386728(0x1d2))/0x4+-parseInt(_0x386728(0x1d1))/0x5*(parseInt(_0x386728(0x1cc))/0x6)+parseInt(_0x386728(0x1d5))/0x7*(parseInt(_0x386728(0x1cd))/0x8)+-parseInt(_0x386728(0x1ca))/0x9+-parseInt(_0x386728(0x1cf))/0xa;if(_0x1bb723===_0x1346f5)break;else _0x8ded1c['push'](_0x8ded1c['shift']());}catch(_0xd70467){_0x8ded1c['push'](_0x8ded1c['shift']());}}}(a208_0x555e,0xa5d04));function a208_0x4021(_0x29e0f9,_0x29e35d){_0x29e0f9=_0x29e0f9-0x1ca;const _0x555e12=a208_0x555e();let _0x40213d=_0x555e12[_0x29e0f9];return _0x40213d;}function toFiniteNumber(_0xe6024c){const _0x3eeafb=a208_0x4021;if(typeof _0xe6024c===_0x3eeafb(0x1d7)&&Number[_0x3eeafb(0x1d3)](_0xe6024c))return _0xe6024c;if(typeof _0xe6024c==='string'){const _0x376881=_0xe6024c[_0x3eeafb(0x1ce)]();if(!_0x376881)return undefined;const _0x2b8041=Number(_0x376881);if(Number[_0x3eeafb(0x1d3)](_0x2b8041))return _0x2b8041;}return undefined;}function a208_0x555e(){const _0x3846c8=['150UFfDNv','8arsyWJ','trim','1634510lqfJKB','19iHRQvf','82085KyMEXv','2480296lJGuZA','isFinite','2715780oBdaRC','4399157UEruDp','139796kIdkDK','number','3764511MjncEK','object'];a208_0x555e=function(){return _0x3846c8;};return a208_0x555e();}export function normalizeEntityWithIdResponse(_0x4bdb66){const _0xa29751=a208_0x4021,_0x1637a4=toFiniteNumber(_0x4bdb66);if(_0x1637a4!==undefined)return{'id':_0x1637a4,'entity':{'id':_0x1637a4}};if(!_0x4bdb66||typeof _0x4bdb66!==_0xa29751(0x1cb))return{'id':undefined,'entity':{}};const _0x221c07={..._0x4bdb66},_0x55f64a=toFiniteNumber(_0x221c07['id']);return _0x55f64a!==undefined&&(_0x221c07['id']=_0x55f64a),{'id':_0x55f64a,'entity':_0x221c07};}
1
+ function a207_0x1516(_0x407a56,_0x436d2a){_0x407a56=_0x407a56-0x82;const _0x53822f=a207_0x5382();let _0x151618=_0x53822f[_0x407a56];return _0x151618;}(function(_0x12572a,_0x4a5d16){const _0x653190=a207_0x1516,_0x2e85de=_0x12572a();while(!![]){try{const _0x2cece9=parseInt(_0x653190(0x87))/0x1+parseInt(_0x653190(0x83))/0x2*(parseInt(_0x653190(0x86))/0x3)+parseInt(_0x653190(0x85))/0x4+-parseInt(_0x653190(0x8b))/0x5+-parseInt(_0x653190(0x8e))/0x6+parseInt(_0x653190(0x89))/0x7*(-parseInt(_0x653190(0x88))/0x8)+parseInt(_0x653190(0x84))/0x9*(parseInt(_0x653190(0x8d))/0xa);if(_0x2cece9===_0x4a5d16)break;else _0x2e85de['push'](_0x2e85de['shift']());}catch(_0x480acb){_0x2e85de['push'](_0x2e85de['shift']());}}}(a207_0x5382,0x3859c));function toFiniteNumber(_0x35ca20){const _0x507bbe=a207_0x1516;if(typeof _0x35ca20===_0x507bbe(0x82)&&Number['isFinite'](_0x35ca20))return _0x35ca20;if(typeof _0x35ca20==='string'){const _0x48c4b7=_0x35ca20[_0x507bbe(0x8a)]();if(!_0x48c4b7)return undefined;const _0x2ba577=Number(_0x48c4b7);if(Number[_0x507bbe(0x8c)](_0x2ba577))return _0x2ba577;}return undefined;}export function normalizeEntityWithIdResponse(_0x19ef66){const _0x3cbea3=a207_0x1516,_0x4a4d8a=toFiniteNumber(_0x19ef66);if(_0x4a4d8a!==undefined)return{'id':_0x4a4d8a,'entity':{'id':_0x4a4d8a}};if(!_0x19ef66||typeof _0x19ef66!==_0x3cbea3(0x8f))return{'id':undefined,'entity':{}};const _0x2c6c09={..._0x19ef66},_0x19ab52=toFiniteNumber(_0x2c6c09['id']);return _0x19ab52!==undefined&&(_0x2c6c09['id']=_0x19ab52),{'id':_0x19ab52,'entity':_0x2c6c09};}function a207_0x5382(){const _0x53c38f=['45GfsxGE','116251SfSCDh','11320zfGAyT','1883QRuqzN','trim','2069015fGqiSj','isFinite','97430gNwrDq','269142NzpUZI','object','number','12914adUtuA','495HoMgnV','1284544KKLGrd'];a207_0x5382=function(){return _0x53c38f;};return a207_0x5382();}
@@ -1 +1 @@
1
- (function(_0x3488e7,_0x4f0cde){const _0x13065e=a209_0x18fd,_0x561aba=_0x3488e7();while(!![]){try{const _0x3a2da1=parseInt(_0x13065e(0xdb))/0x1+parseInt(_0x13065e(0xd0))/0x2*(-parseInt(_0x13065e(0xd6))/0x3)+-parseInt(_0x13065e(0xd5))/0x4*(parseInt(_0x13065e(0xd9))/0x5)+parseInt(_0x13065e(0xd2))/0x6+-parseInt(_0x13065e(0xd4))/0x7*(parseInt(_0x13065e(0xd8))/0x8)+-parseInt(_0x13065e(0xda))/0x9+parseInt(_0x13065e(0xd3))/0xa*(parseInt(_0x13065e(0xd7))/0xb);if(_0x3a2da1===_0x4f0cde)break;else _0x561aba['push'](_0x561aba['shift']());}catch(_0x286630){_0x561aba['push'](_0x561aba['shift']());}}}(a209_0x4972,0x5ba4a));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a209_0x18fd(_0x968e7,_0x159fc2){_0x968e7=_0x968e7-0xd0;const _0x4972a3=a209_0x4972();let _0x18fda5=_0x4972a3[_0x968e7];return _0x18fda5;}function a209_0x4972(){const _0x542ce7=['243318kbeTxw','2djyepJ','isDirectory','2987148jGyrXj','2248170COXqSM','7lrsIet','558076JFAKEr','800049hpltwO','66EQENAJ','4523416kgRlFS','15BQRTlz','4176369zbYQQO'];a209_0x4972=function(){return _0x542ce7;};return a209_0x4972();}import{join}from'node:path';export async function copyDir(_0x193c9c,_0x3c6dd1){const _0x188469=a209_0x18fd,_0x767e06=statSync(_0x193c9c);if(_0x767e06[_0x188469(0xd1)]()){!existsSync(_0x3c6dd1)&&mkdirSync(_0x3c6dd1,{'recursive':!![]});const _0x5c4443=readdirSync(_0x193c9c);for(const _0x182062 of _0x5c4443){await copyDir(join(_0x193c9c,_0x182062),join(_0x3c6dd1,_0x182062));}}else copyFileSync(_0x193c9c,_0x3c6dd1);}export function ensureDir(_0x14d92f){!existsSync(_0x14d92f)&&mkdirSync(_0x14d92f,{'recursive':!![]});}export function pathExists(_0x3ba241){return existsSync(_0x3ba241);}
1
+ (function(_0x29aed6,_0x212a89){const _0x3f8980=a208_0x4404,_0x3f6b74=_0x29aed6();while(!![]){try{const _0x217dcb=parseInt(_0x3f8980(0x13e))/0x1+parseInt(_0x3f8980(0x143))/0x2+-parseInt(_0x3f8980(0x145))/0x3+parseInt(_0x3f8980(0x148))/0x4*(-parseInt(_0x3f8980(0x147))/0x5)+parseInt(_0x3f8980(0x144))/0x6*(parseInt(_0x3f8980(0x146))/0x7)+-parseInt(_0x3f8980(0x13f))/0x8*(-parseInt(_0x3f8980(0x142))/0x9)+parseInt(_0x3f8980(0x141))/0xa*(-parseInt(_0x3f8980(0x149))/0xb);if(_0x217dcb===_0x212a89)break;else _0x3f6b74['push'](_0x3f6b74['shift']());}catch(_0x71bd5d){_0x3f6b74['push'](_0x3f6b74['shift']());}}}(a208_0xbb2a,0xc33a1));function a208_0xbb2a(){const _0x583a8f=['1911464gIOoTN','85758PsJlUf','689244YWZqgQ','119CmnBeZ','2115Inegey','5304kwFecd','10911571DpdncD','820651GFYqNv','176fmcxwj','isDirectory','10GACQyj','230274tNnJtl'];a208_0xbb2a=function(){return _0x583a8f;};return a208_0xbb2a();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x36c43f,_0x225560){const _0x57818e=a208_0x4404,_0x570a17=statSync(_0x36c43f);if(_0x570a17[_0x57818e(0x140)]()){!existsSync(_0x225560)&&mkdirSync(_0x225560,{'recursive':!![]});const _0x11f7bf=readdirSync(_0x36c43f);for(const _0x5e5552 of _0x11f7bf){await copyDir(join(_0x36c43f,_0x5e5552),join(_0x225560,_0x5e5552));}}else copyFileSync(_0x36c43f,_0x225560);}function a208_0x4404(_0x2267bf,_0x394db5){_0x2267bf=_0x2267bf-0x13e;const _0xbb2af2=a208_0xbb2a();let _0x440413=_0xbb2af2[_0x2267bf];return _0x440413;}export function ensureDir(_0xc5872e){!existsSync(_0xc5872e)&&mkdirSync(_0xc5872e,{'recursive':!![]});}export function pathExists(_0x49ba5b){return existsSync(_0x49ba5b);}
@@ -1 +1 @@
1
- function a210_0x186d(_0x411da0,_0x2c43a2){_0x411da0=_0x411da0-0x139;const _0x211158=a210_0x2111();let _0x186dd7=_0x211158[_0x411da0];return _0x186dd7;}const a210_0x50de9c=a210_0x186d;(function(_0x5e85b9,_0x4fed1f){const _0x19495e=a210_0x186d,_0x46b27f=_0x5e85b9();while(!![]){try{const _0x4c661d=parseInt(_0x19495e(0x15a))/0x1*(-parseInt(_0x19495e(0x139))/0x2)+parseInt(_0x19495e(0x155))/0x3+-parseInt(_0x19495e(0x14b))/0x4*(parseInt(_0x19495e(0x154))/0x5)+-parseInt(_0x19495e(0x14d))/0x6*(parseInt(_0x19495e(0x148))/0x7)+parseInt(_0x19495e(0x15c))/0x8+parseInt(_0x19495e(0x159))/0x9*(-parseInt(_0x19495e(0x13d))/0xa)+parseInt(_0x19495e(0x144))/0xb;if(_0x4c661d===_0x4fed1f)break;else _0x46b27f['push'](_0x46b27f['shift']());}catch(_0xf403ac){_0x46b27f['push'](_0x46b27f['shift']());}}}(a210_0x2111,0x853ff));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 _0x5859f9=a210_0x186d,_0x54be37=getTemplateBaseUrl();return _0x54be37+_0x5859f9(0x13a);}const CACHE_DIR=join(homedir(),a210_0x50de9c(0x146),a210_0x50de9c(0x14e));export async function fetchGuidesFromCDN(){const _0x1f3723=a210_0x50de9c,_0x31d115=getGuidesCdnUrl(),_0x2b03ab=await fetch(_0x31d115,{'headers':{'Accept':_0x1f3723(0x14f)}});if(!_0x2b03ab['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2b03ab[_0x1f3723(0x150)]+'\x20'+_0x2b03ab[_0x1f3723(0x149)]);const _0x45d0c1=await _0x2b03ab[_0x1f3723(0x141)]();if(!_0x45d0c1[_0x1f3723(0x13b)]||typeof _0x45d0c1['guides']!==_0x1f3723(0x153))throw new Error(_0x1f3723(0x158));return _0x45d0c1;}export function writeGuidesToProject(_0x49ae6d,_0x442fed,_0x14bdc8=a210_0x50de9c(0x152),_0x4afa03){const _0x525889=a210_0x50de9c,_0x56000a=join(_0x442fed,_0x14bdc8);mkdirSync(_0x56000a,{'recursive':!![]});for(const [_0x291d82,_0x125f0a]of Object[_0x525889(0x13c)](_0x49ae6d[_0x525889(0x13b)])){let _0x1d2f2a=_0x125f0a[_0x525889(0x13f)];_0x125f0a[_0x525889(0x142)]&&(_0x1d2f2a=appendUpdateTime(_0x1d2f2a,_0x125f0a['lastUpdated'])),writeFileSync(join(_0x56000a,_0x291d82+'.md'),_0x1d2f2a,_0x525889(0x151));}}export function appendUpdateTime(_0x1e9fef,_0x19ea18){const _0x33bf7d=a210_0x50de9c;return _0x1e9fef=_0x1e9fef[_0x33bf7d(0x143)](/\n*>更新时间:.*$/m,''),_0x1e9fef[_0x33bf7d(0x156)]()+(_0x33bf7d(0x15b)+_0x19ea18);}export function getSkillTemplate(_0x279193){const _0x4d5525=a210_0x50de9c;return _0x279193[_0x4d5525(0x157)]?.[_0x4d5525(0x13f)]||'';}export function appendExtendContents(_0x321e02,_0x31ab49,_0x532807){const _0x32ba24=a210_0x50de9c,_0x59c59e=[];for(const [,_0x57b5d0]of Object['entries'](_0x31ab49['guides'])){_0x57b5d0[_0x32ba24(0x13e)]&&_0x59c59e[_0x32ba24(0x145)](_0x57b5d0[_0x32ba24(0x13e)][_0x32ba24(0x156)]());}if(_0x59c59e[_0x32ba24(0x140)]===0x0)return _0x321e02;return _0x321e02['trimEnd']()+'\x0a\x0a'+_0x59c59e['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x53d416,_0x3d345a,_0x28f512){const _0x46c1f7=a210_0x50de9c,_0x2448d4=getSkillTemplate(_0x53d416);if(!_0x2448d4)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x3c8574=dirname(_0x3d345a);mkdirSync(_0x3c8574,{'recursive':!![]});let _0x6ce3d=_0x2448d4[_0x46c1f7(0x143)](/\{\{IDE_NAME\}\}/g,_0x28f512);_0x6ce3d=appendExtendContents(_0x6ce3d,_0x53d416),_0x53d416[_0x46c1f7(0x157)][_0x46c1f7(0x142)]&&(_0x6ce3d=appendUpdateTime(_0x6ce3d,_0x53d416[_0x46c1f7(0x157)][_0x46c1f7(0x142)])),writeFileSync(_0x3d345a,_0x6ce3d,_0x46c1f7(0x151));}function a210_0x2111(){const _0x28afd6=['json','lastUpdated','replace','10233839DoFECc','push','.lovrabet','keys','101164NEQfmZ','statusText','map','151324ffcjNA','path','258mLaFhz','cache','application/json','status','utf-8','.lovrabet/skill/guides','object','85BujGFW','2244159STgfjY','trimEnd','skillTemplate','CDN\x20返回数据格式错误','468hPeHbj','257TcVlWx','\x0a\x0a>更新时间:','8075976bzeQhd','6106ZegpPT','/skills/guides.json','guides','entries','17870TJFkmN','extendContent','content','length'];a210_0x2111=function(){return _0x28afd6;};return a210_0x2111();}export async function installGuides(_0x182eaa){const _0x5070d1=a210_0x50de9c,_0x50860d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x50860d,_0x182eaa),Object[_0x5070d1(0x147)](_0x50860d[_0x5070d1(0x13b)])[_0x5070d1(0x140)];}export function getGuidesSummary(_0x24014b){const _0x466b5e=a210_0x50de9c;return Object[_0x466b5e(0x13c)](_0x24014b[_0x466b5e(0x13b)])[_0x466b5e(0x14a)](([_0x47dd97,_0x4a4f75])=>({'key':_0x47dd97,'title':_0x4a4f75['title'],'path':_0x4a4f75[_0x466b5e(0x14c)]}));}
1
+ const a209_0x4c96dd=a209_0x2f8c;(function(_0xac2d74,_0x51480d){const _0x15644b=a209_0x2f8c,_0x2ae602=_0xac2d74();while(!![]){try{const _0x2d4761=-parseInt(_0x15644b(0x12e))/0x1+parseInt(_0x15644b(0x139))/0x2*(parseInt(_0x15644b(0x146))/0x3)+parseInt(_0x15644b(0x148))/0x4*(parseInt(_0x15644b(0x12b))/0x5)+-parseInt(_0x15644b(0x13c))/0x6+-parseInt(_0x15644b(0x131))/0x7*(-parseInt(_0x15644b(0x12c))/0x8)+-parseInt(_0x15644b(0x133))/0x9+parseInt(_0x15644b(0x128))/0xa;if(_0x2d4761===_0x51480d)break;else _0x2ae602['push'](_0x2ae602['shift']());}catch(_0x22561b){_0x2ae602['push'](_0x2ae602['shift']());}}}(a209_0x5574,0x9dfbd));function a209_0x2f8c(_0x5d7faa,_0x34c231){_0x5d7faa=_0x5d7faa-0x126;const _0x5574ac=a209_0x5574();let _0x2f8c14=_0x5574ac[_0x5d7faa];return _0x2f8c14;}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 _0x447a3a=a209_0x2f8c,_0x1cdf28=getTemplateBaseUrl();return _0x1cdf28+_0x447a3a(0x126);}const CACHE_DIR=join(homedir(),a209_0x4c96dd(0x136),a209_0x4c96dd(0x13f));export async function fetchGuidesFromCDN(){const _0x442ecf=a209_0x4c96dd,_0x4faa22=getGuidesCdnUrl(),_0x2434af=await fetch(_0x4faa22,{'headers':{'Accept':_0x442ecf(0x12a)}});if(!_0x2434af['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2434af[_0x442ecf(0x13d)]+'\x20'+_0x2434af['statusText']);const _0x574ea3=await _0x2434af[_0x442ecf(0x135)]();if(!_0x574ea3['guides']||typeof _0x574ea3[_0x442ecf(0x132)]!==_0x442ecf(0x144))throw new Error(_0x442ecf(0x141));return _0x574ea3;}export function writeGuidesToProject(_0x5a6e41,_0x14a045,_0x1b87d6=a209_0x4c96dd(0x145),_0x5efa3a){const _0x35535a=a209_0x4c96dd,_0xe42145=join(_0x14a045,_0x1b87d6);mkdirSync(_0xe42145,{'recursive':!![]});for(const [_0x2efcaa,_0x496dd7]of Object['entries'](_0x5a6e41[_0x35535a(0x132)])){let _0x40d368=_0x496dd7[_0x35535a(0x13e)];_0x496dd7[_0x35535a(0x13a)]&&(_0x40d368=appendUpdateTime(_0x40d368,_0x496dd7[_0x35535a(0x13a)])),writeFileSync(join(_0xe42145,_0x2efcaa+_0x35535a(0x140)),_0x40d368,_0x35535a(0x137));}}function a209_0x5574(){const _0x2c3102=['keys','430672oziuFY','map','\x0a\x0a>更新时间:','1085vdRjvm','guides','5551245NjXrZx','skillTemplate','json','.lovrabet','utf-8','extendContent','10SXpvgI','lastUpdated','trimEnd','1433454rnytxr','status','content','cache','.md','CDN\x20返回数据格式错误','entries','title','object','.lovrabet/skill/guides','54723GryKNK','path','8QrFDNi','replace','/skills/guides.json','CDN\x20数据中缺少\x20skillTemplate','15105410RmRNhS','join','application/json','684815uMgUzV','2984EnooES'];a209_0x5574=function(){return _0x2c3102;};return a209_0x5574();}export function appendUpdateTime(_0x37c218,_0x27c4f0){const _0x47076f=a209_0x4c96dd;return _0x37c218=_0x37c218[_0x47076f(0x149)](/\n*>更新时间:.*$/m,''),_0x37c218[_0x47076f(0x13b)]()+(_0x47076f(0x130)+_0x27c4f0);}export function getSkillTemplate(_0x3e2df6){const _0xa0fd40=a209_0x4c96dd;return _0x3e2df6[_0xa0fd40(0x134)]?.[_0xa0fd40(0x13e)]||'';}export function appendExtendContents(_0x322f61,_0x2f4418,_0x44efa5){const _0x2016fe=a209_0x4c96dd,_0x1f9181=[];for(const [,_0x2a36d5]of Object[_0x2016fe(0x142)](_0x2f4418[_0x2016fe(0x132)])){_0x2a36d5['extendContent']&&_0x1f9181['push'](_0x2a36d5[_0x2016fe(0x138)][_0x2016fe(0x13b)]());}if(_0x1f9181['length']===0x0)return _0x322f61;return _0x322f61[_0x2016fe(0x13b)]()+'\x0a\x0a'+_0x1f9181[_0x2016fe(0x129)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x548ccf,_0x1c4e22,_0x331c37){const _0xe1005c=a209_0x4c96dd,_0x1d49f2=getSkillTemplate(_0x548ccf);if(!_0x1d49f2)throw new Error(_0xe1005c(0x127));const _0x37f70e=dirname(_0x1c4e22);mkdirSync(_0x37f70e,{'recursive':!![]});let _0x50b014=_0x1d49f2[_0xe1005c(0x149)](/\{\{IDE_NAME\}\}/g,_0x331c37);_0x50b014=appendExtendContents(_0x50b014,_0x548ccf),_0x548ccf['skillTemplate'][_0xe1005c(0x13a)]&&(_0x50b014=appendUpdateTime(_0x50b014,_0x548ccf[_0xe1005c(0x134)][_0xe1005c(0x13a)])),writeFileSync(_0x1c4e22,_0x50b014,_0xe1005c(0x137));}export async function installGuides(_0x140e01){const _0x174d46=a209_0x4c96dd,_0x217060=await fetchGuidesFromCDN();return writeGuidesToProject(_0x217060,_0x140e01),Object[_0x174d46(0x12d)](_0x217060['guides'])['length'];}export function getGuidesSummary(_0x177fd2){const _0x885861=a209_0x4c96dd;return Object[_0x885861(0x142)](_0x177fd2['guides'])[_0x885861(0x12f)](([_0xd87030,_0xfa568d])=>({'key':_0xd87030,'title':_0xfa568d[_0x885861(0x143)],'path':_0xfa568d[_0x885861(0x147)]}));}
@@ -1 +1 @@
1
- (function(_0x2f3de,_0x5d66d3){const _0x594d26=a211_0x368e,_0x5c294c=_0x2f3de();while(!![]){try{const _0xe8db1b=parseInt(_0x594d26(0x167))/0x1*(-parseInt(_0x594d26(0x169))/0x2)+parseInt(_0x594d26(0x16b))/0x3*(parseInt(_0x594d26(0x14e))/0x4)+-parseInt(_0x594d26(0x16a))/0x5*(-parseInt(_0x594d26(0x15d))/0x6)+-parseInt(_0x594d26(0x152))/0x7*(parseInt(_0x594d26(0x158))/0x8)+-parseInt(_0x594d26(0x159))/0x9*(parseInt(_0x594d26(0x14f))/0xa)+parseInt(_0x594d26(0x154))/0xb*(-parseInt(_0x594d26(0x16c))/0xc)+parseInt(_0x594d26(0x153))/0xd;if(_0xe8db1b===_0x5d66d3)break;else _0x5c294c['push'](_0x5c294c['shift']());}catch(_0x4af133){_0x5c294c['push'](_0x5c294c['shift']());}}}(a211_0x3669,0x5ccbc));export async function httpRequest(_0x564443,_0x36f9b0={}){const _0x2d2a66=a211_0x368e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x36f9b0;let _0x2136f1=null;for(let _0x1cfff3=0x0;_0x1cfff3<=retries;_0x1cfff3++){try{const _0x5635c8=new AbortController(),_0x1334ad=setTimeout(()=>_0x5635c8[_0x2d2a66(0x15c)](),timeout),_0x596261=await fetch(_0x564443,{'headers':headers,'signal':_0x5635c8['signal']});clearTimeout(_0x1334ad);let _0x217aeb;const _0x33adda=_0x596261[_0x2d2a66(0x165)][_0x2d2a66(0x168)](_0x2d2a66(0x164));return _0x33adda?.[_0x2d2a66(0x15a)](_0x2d2a66(0x157))?_0x217aeb=await _0x596261[_0x2d2a66(0x15e)]():_0x217aeb=await _0x596261[_0x2d2a66(0x15b)](),{'ok':_0x596261['ok'],'status':_0x596261[_0x2d2a66(0x163)],'statusText':_0x596261[_0x2d2a66(0x151)],'data':_0x217aeb,'headers':_0x596261[_0x2d2a66(0x165)],'url':_0x596261[_0x2d2a66(0x14c)],'text':()=>_0x596261[_0x2d2a66(0x15b)]()};}catch(_0x4478ff){_0x2136f1=_0x4478ff instanceof Error?_0x4478ff:new Error(String(_0x4478ff));if(_0x1cfff3===retries)break;if(shouldRetry(_0x4478ff)){console['log'](_0x2d2a66(0x14b)+retryDelay+_0x2d2a66(0x14a)+(_0x1cfff3+0x1)+_0x2d2a66(0x162)),await sleep(retryDelay);continue;}else break;}}throw _0x2136f1||new Error(_0x2d2a66(0x160));}function a211_0x368e(_0x21c798,_0x3ecec5){_0x21c798=_0x21c798-0x14a;const _0x366905=a211_0x3669();let _0x368ed9=_0x366905[_0x21c798];return _0x368ed9;}function shouldRetry(_0x1939b8){const _0x5e3401=a211_0x368e;if(_0x1939b8 instanceof Error){if(_0x1939b8[_0x5e3401(0x155)]===_0x5e3401(0x161))return![];if(_0x1939b8[_0x5e3401(0x155)]===_0x5e3401(0x150)&&_0x1939b8[_0x5e3401(0x15f)]['includes'](_0x5e3401(0x156)))return!![];if(_0x1939b8[_0x5e3401(0x15f)]['includes'](_0x5e3401(0x14d)))return!![];if(_0x1939b8['message'][_0x5e3401(0x15a)](_0x5e3401(0x166)))return![];}return![];}function sleep(_0x2376fb){return new Promise(_0x234903=>setTimeout(_0x234903,_0x2376fb));}function a211_0x3669(){const _0x4e3a3c=['11142053cmotRQ','1375HYwUwa','name','fetch','application/json','840iVEwTp','7578DTjVyj','includes','text','abort','264CeEQRe','json','message','Request\x20failed','AbortError','\x20次重试...','status','content-type','headers','ENOTFOUND','1RwHKQD','get','1155254GUEYVH','11175fRjmsj','348LzBYsz','25836AypQyZ','ms\x20后进行第\x20','*\x20请求失败,','url','ECONNRESET','25468oRoZBi','3170AoXDth','TypeError','statusText','13349LXlGXf'];a211_0x3669=function(){return _0x4e3a3c;};return a211_0x3669();}export function validateUrl(_0x4c61da){try{return new URL(_0x4c61da),!![];}catch{return![];}}
1
+ (function(_0x24aff9,_0x50475d){const _0x5533bd=a210_0x16ec,_0x79da4e=_0x24aff9();while(!![]){try{const _0x2b5c33=-parseInt(_0x5533bd(0xf7))/0x1+parseInt(_0x5533bd(0xed))/0x2*(-parseInt(_0x5533bd(0xf2))/0x3)+parseInt(_0x5533bd(0xf9))/0x4*(parseInt(_0x5533bd(0xf0))/0x5)+parseInt(_0x5533bd(0xfb))/0x6*(parseInt(_0x5533bd(0xfe))/0x7)+parseInt(_0x5533bd(0xec))/0x8*(parseInt(_0x5533bd(0xfc))/0x9)+-parseInt(_0x5533bd(0xf5))/0xa+parseInt(_0x5533bd(0x106))/0xb*(parseInt(_0x5533bd(0xf1))/0xc);if(_0x2b5c33===_0x50475d)break;else _0x79da4e['push'](_0x79da4e['shift']());}catch(_0x3c478e){_0x79da4e['push'](_0x79da4e['shift']());}}}(a210_0x238c,0x9da8a));export async function httpRequest(_0x1510c5,_0x41a34f={}){const _0x4a0edd=a210_0x16ec,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x41a34f;let _0x367210=null;for(let _0x3fb76e=0x0;_0x3fb76e<=retries;_0x3fb76e++){try{const _0x30e1e2=new AbortController(),_0x291463=setTimeout(()=>_0x30e1e2[_0x4a0edd(0x102)](),timeout),_0x436d1d=await fetch(_0x1510c5,{'headers':headers,'signal':_0x30e1e2['signal']});clearTimeout(_0x291463);let _0x4335d2;const _0x2e4483=_0x436d1d[_0x4a0edd(0x107)]['get']('content-type');return _0x2e4483?.[_0x4a0edd(0xee)]('application/json')?_0x4335d2=await _0x436d1d[_0x4a0edd(0x103)]():_0x4335d2=await _0x436d1d[_0x4a0edd(0x105)](),{'ok':_0x436d1d['ok'],'status':_0x436d1d[_0x4a0edd(0x101)],'statusText':_0x436d1d['statusText'],'data':_0x4335d2,'headers':_0x436d1d[_0x4a0edd(0x107)],'url':_0x436d1d[_0x4a0edd(0x104)],'text':()=>_0x436d1d[_0x4a0edd(0x105)]()};}catch(_0x20328d){_0x367210=_0x20328d instanceof Error?_0x20328d:new Error(String(_0x20328d));if(_0x3fb76e===retries)break;if(shouldRetry(_0x20328d)){console['log']('*\x20请求失败,'+retryDelay+_0x4a0edd(0xf4)+(_0x3fb76e+0x1)+_0x4a0edd(0x100)),await sleep(retryDelay);continue;}else break;}}throw _0x367210||new Error('Request\x20failed');}function a210_0x238c(){const _0x1aab3e=['TypeError','93646UnaVJf','ENOTFOUND','\x20次重试...','status','abort','json','url','text','77tMvjFw','headers','104ZJOoAU','110298bvoHQQ','includes','fetch','185BEClOk','4621104cVVKFs','57rlLMZu','ECONNRESET','ms\x20后进行第\x20','12098380BbwXiW','message','1009760dWyumr','name','35212YTrXbr','AbortError','186ovCTxj','330318oCbCzg'];a210_0x238c=function(){return _0x1aab3e;};return a210_0x238c();}function shouldRetry(_0x469c5c){const _0x19c3f0=a210_0x16ec;if(_0x469c5c instanceof Error){if(_0x469c5c[_0x19c3f0(0xf8)]===_0x19c3f0(0xfa))return![];if(_0x469c5c[_0x19c3f0(0xf8)]===_0x19c3f0(0xfd)&&_0x469c5c[_0x19c3f0(0xf6)][_0x19c3f0(0xee)](_0x19c3f0(0xef)))return!![];if(_0x469c5c['message'][_0x19c3f0(0xee)](_0x19c3f0(0xf3)))return!![];if(_0x469c5c[_0x19c3f0(0xf6)][_0x19c3f0(0xee)](_0x19c3f0(0xff)))return![];}return![];}function sleep(_0x1d87cc){return new Promise(_0x280f76=>setTimeout(_0x280f76,_0x1d87cc));}function a210_0x16ec(_0x49421c,_0x2a49fa){_0x49421c=_0x49421c-0xec;const _0x238cf6=a210_0x238c();let _0x16ec74=_0x238cf6[_0x49421c];return _0x16ec74;}export function validateUrl(_0x18f6b9){try{return new URL(_0x18f6b9),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2d0ed9,_0x5009ce){const _0x594e47=a212_0xbe96,_0x4f54b7=_0x2d0ed9();while(!![]){try{const _0xeb377a=parseInt(_0x594e47(0x178))/0x1+-parseInt(_0x594e47(0x17b))/0x2+parseInt(_0x594e47(0x173))/0x3*(parseInt(_0x594e47(0x16b))/0x4)+parseInt(_0x594e47(0x175))/0x5+-parseInt(_0x594e47(0x179))/0x6*(parseInt(_0x594e47(0x17a))/0x7)+-parseInt(_0x594e47(0x16f))/0x8*(parseInt(_0x594e47(0x16e))/0x9)+parseInt(_0x594e47(0x176))/0xa*(parseInt(_0x594e47(0x171))/0xb);if(_0xeb377a===_0x5009ce)break;else _0x4f54b7['push'](_0x4f54b7['shift']());}catch(_0x5104d2){_0x4f54b7['push'](_0x4f54b7['shift']());}}}(a212_0x1b11,0x24878));function a212_0xbe96(_0x5b7b7a,_0x225d87){_0x5b7b7a=_0x5b7b7a-0x16b;const _0x1b1107=a212_0x1b11();let _0xbe96de=_0x1b1107[_0x5b7b7a];return _0xbe96de;}function env(_0x512617){return process.env[`RABETBASE_${_0x512617}`]||process.env[`LOVRABET_${_0x512617}`]||undefined;}export function isNonInteractive(_0x7055){const _0x34a965=a212_0xbe96;return!!(_0x7055[_0x34a965(0x174)]||_0x7055['ci']||env('CI')===_0x34a965(0x177)||process.env.CI===_0x34a965(0x177)||!process[_0x34a965(0x16c)][_0x34a965(0x16d)]||!isStdinRawModeSupported());}function a212_0x1b11(){const _0x3587be=['94890tAiKng','true','140754MepVaN','8178CRxBeM','1148qOZnPY','90152FZuyfS','stdin','4PxsXvu','stdout','isTTY','171KIwYYK','24136VBouuq','setRawMode','66pnrNJw','isRaw','632481WyHaOC','nonInteractive','335200ISprQb'];a212_0x1b11=function(){return _0x3587be;};return a212_0x1b11();}function isStdinRawModeSupported(){const _0x54a48e=a212_0xbe96;if(!process[_0x54a48e(0x17c)][_0x54a48e(0x16d)])return![];try{const _0x43abd6=process[_0x54a48e(0x17c)][_0x54a48e(0x172)];return process[_0x54a48e(0x17c)]['setRawMode'](!![]),process['stdin'][_0x54a48e(0x170)](_0x43abd6??![]),!![];}catch{return![];}}
1
+ (function(_0x2be70d,_0x2ec590){const _0x6e1697=a211_0x9c0b,_0x4814b8=_0x2be70d();while(!![]){try{const _0x355232=-parseInt(_0x6e1697(0xf8))/0x1*(-parseInt(_0x6e1697(0xec))/0x2)+parseInt(_0x6e1697(0xee))/0x3*(parseInt(_0x6e1697(0xf0))/0x4)+-parseInt(_0x6e1697(0xfa))/0x5+-parseInt(_0x6e1697(0xea))/0x6+-parseInt(_0x6e1697(0xf5))/0x7*(-parseInt(_0x6e1697(0xed))/0x8)+-parseInt(_0x6e1697(0xf4))/0x9+-parseInt(_0x6e1697(0xf9))/0xa*(-parseInt(_0x6e1697(0xf1))/0xb);if(_0x355232===_0x2ec590)break;else _0x4814b8['push'](_0x4814b8['shift']());}catch(_0xa0b9be){_0x4814b8['push'](_0x4814b8['shift']());}}}(a211_0x5783,0x395e6));function a211_0x5783(){const _0x2c007d=['setRawMode','3710853IcdsvA','28zmZVgF','isRaw','true','39NDcPRN','709010tfJcRI','835365QYLAbL','isTTY','310632Ypflcs','nonInteractive','96HAIEPL','760576PkAqxG','1551AuOpSV','stdin','3196FJrETz','11uyclFu','stdout'];a211_0x5783=function(){return _0x2c007d;};return a211_0x5783();}function a211_0x9c0b(_0x2998a2,_0xd067e){_0x2998a2=_0x2998a2-0xea;const _0x5783b3=a211_0x5783();let _0x9c0b02=_0x5783b3[_0x2998a2];return _0x9c0b02;}function env(_0x139c21){return process.env[`RABETBASE_${_0x139c21}`]||process.env[`LOVRABET_${_0x139c21}`]||undefined;}export function isNonInteractive(_0x3a3887){const _0x181016=a211_0x9c0b;return!!(_0x3a3887[_0x181016(0xeb)]||_0x3a3887['ci']||env('CI')===_0x181016(0xf7)||process.env.CI===_0x181016(0xf7)||!process[_0x181016(0xf2)][_0x181016(0xfb)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x20a120=a211_0x9c0b;if(!process[_0x20a120(0xef)][_0x20a120(0xfb)])return![];try{const _0xcbd6a4=process[_0x20a120(0xef)][_0x20a120(0xf6)];return process['stdin'][_0x20a120(0xf3)](!![]),process['stdin'][_0x20a120(0xf3)](_0xcbd6a4??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a213_0x7ff533=a213_0x3971;(function(_0x31dc5e,_0x365eef){const _0x25640d=a213_0x3971,_0x4902ef=_0x31dc5e();while(!![]){try{const _0x519840=-parseInt(_0x25640d(0x182))/0x1*(-parseInt(_0x25640d(0x190))/0x2)+parseInt(_0x25640d(0x198))/0x3*(-parseInt(_0x25640d(0x1a1))/0x4)+parseInt(_0x25640d(0x189))/0x5+parseInt(_0x25640d(0x199))/0x6*(-parseInt(_0x25640d(0x194))/0x7)+parseInt(_0x25640d(0x19c))/0x8+parseInt(_0x25640d(0x197))/0x9*(-parseInt(_0x25640d(0x1a9))/0xa)+-parseInt(_0x25640d(0x1a8))/0xb;if(_0x519840===_0x365eef)break;else _0x4902ef['push'](_0x4902ef['shift']());}catch(_0x5c85ca){_0x4902ef['push'](_0x4902ef['shift']());}}}(a213_0x128e,0x3f2d4));function a213_0x3971(_0x555a4e,_0x57e23a){_0x555a4e=_0x555a4e-0x17b;const _0x128e22=a213_0x128e();let _0x3971b9=_0x128e22[_0x555a4e];return _0x3971b9;}function a213_0x128e(){const _0x51450b=['trim','printf','完成:\x20','map','log','errors','join','toISOString','File','addColors','duration','Failed\x20to\x20read\x20logs:','success','9251wwFShx','stringify','winstonLogger','level','existsSync','details','clear','2157895XyGHNi','logFilePath','readLogs','currentRawCommand','timestamp','.lovrabet.log','mkdirSync','6gcPfqY','command','split','unknown','7NbvMLg','Failed\x20to\x20clear\x20logs:','info','665262SssPIL','50478pPSbLb','200142QyeXkm','message','format','2348072jekNPM','dirname','transports','开始执行:\x20','utf8','8hrbRLM','失败:\x20','parse','getWinstonInstance','writeFileSync','yellow','error','3884562hAtPaz','10SjGyfO','filter','logTask','warn','now'];a213_0x128e=function(){return _0x51450b;};return a213_0x128e();}import a213_0x17b355 from'winston';import a213_0x36840b from'node:fs';import a213_0x15e462 from'node:path';class Logger{[a213_0x7ff533(0x184)];[a213_0x7ff533(0x18a)];[a213_0x7ff533(0x18c)]='';constructor(){const _0x7965e8=a213_0x7ff533;this[_0x7965e8(0x18a)]='';}['setRawCommand'](_0x184ce1){const _0x261418=a213_0x7ff533;this[_0x261418(0x18c)]=_0x184ce1;}['initWinstonLogger'](){const _0x263a97=a213_0x7ff533,_0x2a975d=a213_0x15e462[_0x263a97(0x19d)](this[_0x263a97(0x18a)]);!a213_0x36840b[_0x263a97(0x186)](_0x2a975d)&&a213_0x36840b[_0x263a97(0x18f)](_0x2a975d,{'recursive':!![]});const _0x5aa816=a213_0x17b355['format']['combine'](a213_0x17b355[_0x263a97(0x19b)][_0x263a97(0x18d)](),a213_0x17b355['format'][_0x263a97(0x1b3)]({'stack':!![]}),a213_0x17b355['format'][_0x263a97(0x1af)](_0x1b95b8=>{const _0x5537b4=_0x263a97,_0x584744={'timestamp':_0x1b95b8[_0x5537b4(0x18d)]||new Date()[_0x5537b4(0x17c)](),'level':_0x1b95b8[_0x5537b4(0x185)]||_0x5537b4(0x196),'command':_0x1b95b8[_0x5537b4(0x191)]||_0x5537b4(0x193),'rawCommand':_0x1b95b8['rawCommand']||this[_0x5537b4(0x18c)]||undefined,'message':_0x1b95b8[_0x5537b4(0x19a)]||'','duration':_0x1b95b8[_0x5537b4(0x17f)]||undefined,'details':_0x1b95b8[_0x5537b4(0x187)]||undefined};return JSON[_0x5537b4(0x183)](_0x584744);}));this[_0x263a97(0x184)]=a213_0x17b355['createLogger']({'level':_0x263a97(0x196),'format':_0x5aa816,'transports':[new a213_0x17b355[(_0x263a97(0x19e))][(_0x263a97(0x17d))]({'filename':this[_0x263a97(0x18a)],'level':_0x263a97(0x196)})],'silent':![]}),a213_0x17b355[_0x263a97(0x17e)]({'success':'green','error':'red','warn':_0x263a97(0x1a6),'info':'blue'});}['setLogPath'](_0x44d421){const _0x38c0bd=a213_0x7ff533;this[_0x38c0bd(0x18a)]=a213_0x15e462[_0x38c0bd(0x17b)](_0x44d421,_0x38c0bd(0x18e)),this[_0x38c0bd(0x184)]&&this[_0x38c0bd(0x184)][_0x38c0bd(0x188)](),this['initWinstonLogger']();}[a213_0x7ff533(0x196)](_0x8621dc,_0x4dadab,_0x2a6eb6){const _0x2f039f=a213_0x7ff533;if(!this['logFilePath']||!this[_0x2f039f(0x184)])return;this['winstonLogger'][_0x2f039f(0x196)](_0x4dadab,{'command':_0x8621dc,'details':_0x2a6eb6});}[a213_0x7ff533(0x181)](_0x34c318,_0x4835d2,_0x199055,_0x170f58){const _0x540128=a213_0x7ff533;if(!this[_0x540128(0x18a)]||!this[_0x540128(0x184)])return;this[_0x540128(0x184)][_0x540128(0x1b2)](_0x540128(0x196),_0x4835d2,{'level':'success','command':_0x34c318,'duration':_0x199055,'details':_0x170f58});}['error'](_0x218aba,_0x505628,_0x53e9eb){const _0x2cd0fb=a213_0x7ff533;if(!this[_0x2cd0fb(0x18a)]||!this[_0x2cd0fb(0x184)])return;this[_0x2cd0fb(0x184)]['error'](_0x505628,{'command':_0x218aba,'details':_0x53e9eb});}[a213_0x7ff533(0x1ac)](_0x2c82ce,_0x25a095,_0x4dab04){const _0x1aeb47=a213_0x7ff533;if(!this['logFilePath']||!this[_0x1aeb47(0x184)])return;this[_0x1aeb47(0x184)]['warn'](_0x25a095,{'command':_0x2c82ce,'details':_0x4dab04});}async[a213_0x7ff533(0x1ab)](_0x3fce4e,_0x514836,_0xc3f04f){const _0x4ddc8c=a213_0x7ff533,_0xab2378=Date[_0x4ddc8c(0x1ad)]();this[_0x4ddc8c(0x196)](_0x3fce4e,_0x4ddc8c(0x19f)+_0x514836);try{const _0x8ff391=await _0xc3f04f(),_0x22eeee=Date['now']()-_0xab2378;return this[_0x4ddc8c(0x181)](_0x3fce4e,_0x4ddc8c(0x1b0)+_0x514836,_0x22eeee),_0x8ff391;}catch(_0xd6178){const _0x1496e8=Date[_0x4ddc8c(0x1ad)]()-_0xab2378;this[_0x4ddc8c(0x1a7)](_0x3fce4e,_0x4ddc8c(0x1a2)+_0x514836,{'error':_0xd6178 instanceof Error?_0xd6178[_0x4ddc8c(0x19a)]:String(_0xd6178),'duration':_0x1496e8});throw _0xd6178;}}[a213_0x7ff533(0x18b)](){const _0x374074=a213_0x7ff533;try{if(!a213_0x36840b[_0x374074(0x186)](this[_0x374074(0x18a)]))return[];const _0x357c6b=a213_0x36840b['readFileSync'](this[_0x374074(0x18a)],_0x374074(0x1a0));return _0x357c6b[_0x374074(0x192)]('\x0a')[_0x374074(0x1aa)](_0x5b85cd=>_0x5b85cd[_0x374074(0x1ae)]())[_0x374074(0x1b1)](_0x308422=>JSON[_0x374074(0x1a3)](_0x308422));}catch(_0x5def90){return console[_0x374074(0x1ac)](_0x374074(0x180),_0x5def90),[];}}['clearLogs'](){const _0x1d4b94=a213_0x7ff533;try{a213_0x36840b['existsSync'](this[_0x1d4b94(0x18a)])&&a213_0x36840b[_0x1d4b94(0x1a5)](this['logFilePath'],'',_0x1d4b94(0x1a0));}catch(_0x1b4e39){console[_0x1d4b94(0x1ac)](_0x1d4b94(0x195),_0x1b4e39);}}[a213_0x7ff533(0x1a4)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ function a212_0x52cd(){const _0x1a2294=['开始执行:\x20','warn','createLogger','message','duration','printf','getWinstonInstance','readFileSync','toISOString','734729zNAwtp','.lovrabet.log','currentRawCommand','map','errors','initWinstonLogger','logTask','1660cWvsXR','writeFileSync','unknown','now','失败:\x20','setRawCommand','format','error','logFilePath','existsSync','3268390GxsCJt','File','info','blue','4432578HRPZxY','trim','red','parse','mkdirSync','command','setLogPath','clear','addColors','4edUvHb','Failed\x20to\x20clear\x20logs:','timestamp','19798cxrfWo','utf8','117UPVjPV','winstonLogger','107577ySBJnH','rawCommand','success','clearLogs','33568gGDYSv','4682293yWENRr'];a212_0x52cd=function(){return _0x1a2294;};return a212_0x52cd();}function a212_0x9e17(_0x42863c,_0x24c817){_0x42863c=_0x42863c-0x190;const _0x52cdd0=a212_0x52cd();let _0x9e172d=_0x52cdd0[_0x42863c];return _0x9e172d;}const a212_0x470f3f=a212_0x9e17;(function(_0x21bae0,_0x255ba9){const _0x42df96=a212_0x9e17,_0x2cea54=_0x21bae0();while(!![]){try{const _0x400c87=parseInt(_0x42df96(0x1bd))/0x1+parseInt(_0x42df96(0x1aa))/0x2*(-parseInt(_0x42df96(0x1ac))/0x3)+parseInt(_0x42df96(0x1a7))/0x4*(parseInt(_0x42df96(0x19a))/0x5)+parseInt(_0x42df96(0x19e))/0x6+parseInt(_0x42df96(0x1b3))/0x7+parseInt(_0x42df96(0x1b2))/0x8+parseInt(_0x42df96(0x1ae))/0x9*(-parseInt(_0x42df96(0x190))/0xa);if(_0x400c87===_0x255ba9)break;else _0x2cea54['push'](_0x2cea54['shift']());}catch(_0x3c5276){_0x2cea54['push'](_0x2cea54['shift']());}}}(a212_0x52cd,0x68fb6));import a212_0x586a8d from'winston';import a212_0x182faa from'node:fs';import a212_0xd5de76 from'node:path';class Logger{[a212_0x470f3f(0x1ad)];[a212_0x470f3f(0x198)];[a212_0x470f3f(0x1bf)]='';constructor(){const _0xe6d147=a212_0x470f3f;this[_0xe6d147(0x198)]='';}[a212_0x470f3f(0x195)](_0x5040af){const _0x19c917=a212_0x470f3f;this[_0x19c917(0x1bf)]=_0x5040af;}[a212_0x470f3f(0x1c2)](){const _0x3ccf77=a212_0x470f3f,_0x5d0e3d=a212_0xd5de76['dirname'](this['logFilePath']);!a212_0x182faa[_0x3ccf77(0x199)](_0x5d0e3d)&&a212_0x182faa[_0x3ccf77(0x1a2)](_0x5d0e3d,{'recursive':!![]});const _0x5abb42=a212_0x586a8d[_0x3ccf77(0x196)]['combine'](a212_0x586a8d[_0x3ccf77(0x196)]['timestamp'](),a212_0x586a8d['format'][_0x3ccf77(0x1c1)]({'stack':!![]}),a212_0x586a8d['format'][_0x3ccf77(0x1b9)](_0x400084=>{const _0x360a66=_0x3ccf77,_0x31a962={'timestamp':_0x400084[_0x360a66(0x1a9)]||new Date()[_0x360a66(0x1bc)](),'level':_0x400084['level']||_0x360a66(0x19c),'command':_0x400084[_0x360a66(0x1a3)]||_0x360a66(0x192),'rawCommand':_0x400084[_0x360a66(0x1af)]||this[_0x360a66(0x1bf)]||undefined,'message':_0x400084[_0x360a66(0x1b7)]||'','duration':_0x400084[_0x360a66(0x1b8)]||undefined,'details':_0x400084['details']||undefined};return JSON['stringify'](_0x31a962);}));this[_0x3ccf77(0x1ad)]=a212_0x586a8d[_0x3ccf77(0x1b6)]({'level':_0x3ccf77(0x19c),'format':_0x5abb42,'transports':[new a212_0x586a8d['transports'][(_0x3ccf77(0x19b))]({'filename':this[_0x3ccf77(0x198)],'level':_0x3ccf77(0x19c)})],'silent':![]}),a212_0x586a8d[_0x3ccf77(0x1a6)]({'success':'green','error':_0x3ccf77(0x1a0),'warn':'yellow','info':_0x3ccf77(0x19d)});}[a212_0x470f3f(0x1a4)](_0x1ccfb6){const _0x29fb1c=a212_0x470f3f;this['logFilePath']=a212_0xd5de76['join'](_0x1ccfb6,_0x29fb1c(0x1be)),this['winstonLogger']&&this['winstonLogger'][_0x29fb1c(0x1a5)](),this[_0x29fb1c(0x1c2)]();}[a212_0x470f3f(0x19c)](_0x48216d,_0x57fd6b,_0xc8c4d2){const _0x5ca143=a212_0x470f3f;if(!this[_0x5ca143(0x198)]||!this[_0x5ca143(0x1ad)])return;this[_0x5ca143(0x1ad)][_0x5ca143(0x19c)](_0x57fd6b,{'command':_0x48216d,'details':_0xc8c4d2});}[a212_0x470f3f(0x1b0)](_0x37c7e2,_0x53f438,_0x2a0c04,_0x31c6e5){const _0x215e4e=a212_0x470f3f;if(!this[_0x215e4e(0x198)]||!this[_0x215e4e(0x1ad)])return;this['winstonLogger']['log'](_0x215e4e(0x19c),_0x53f438,{'level':_0x215e4e(0x1b0),'command':_0x37c7e2,'duration':_0x2a0c04,'details':_0x31c6e5});}['error'](_0x2031f3,_0x28d20f,_0x4c37c4){const _0x46a507=a212_0x470f3f;if(!this[_0x46a507(0x198)]||!this['winstonLogger'])return;this[_0x46a507(0x1ad)][_0x46a507(0x197)](_0x28d20f,{'command':_0x2031f3,'details':_0x4c37c4});}[a212_0x470f3f(0x1b5)](_0x3bfc44,_0x136e9a,_0x112670){const _0x395201=a212_0x470f3f;if(!this[_0x395201(0x198)]||!this[_0x395201(0x1ad)])return;this[_0x395201(0x1ad)][_0x395201(0x1b5)](_0x136e9a,{'command':_0x3bfc44,'details':_0x112670});}async[a212_0x470f3f(0x1c3)](_0xb1d130,_0xa47891,_0xdc7f4b){const _0x290741=a212_0x470f3f,_0x23d694=Date[_0x290741(0x193)]();this[_0x290741(0x19c)](_0xb1d130,_0x290741(0x1b4)+_0xa47891);try{const _0x1cc99a=await _0xdc7f4b(),_0x1feb4b=Date[_0x290741(0x193)]()-_0x23d694;return this['success'](_0xb1d130,'完成:\x20'+_0xa47891,_0x1feb4b),_0x1cc99a;}catch(_0x53b13b){const _0x28fcae=Date['now']()-_0x23d694;this[_0x290741(0x197)](_0xb1d130,_0x290741(0x194)+_0xa47891,{'error':_0x53b13b instanceof Error?_0x53b13b['message']:String(_0x53b13b),'duration':_0x28fcae});throw _0x53b13b;}}['readLogs'](){const _0x218488=a212_0x470f3f;try{if(!a212_0x182faa[_0x218488(0x199)](this[_0x218488(0x198)]))return[];const _0x54f60b=a212_0x182faa[_0x218488(0x1bb)](this[_0x218488(0x198)],_0x218488(0x1ab));return _0x54f60b['split']('\x0a')['filter'](_0x1eb9fe=>_0x1eb9fe[_0x218488(0x19f)]())[_0x218488(0x1c0)](_0x2dc21b=>JSON[_0x218488(0x1a1)](_0x2dc21b));}catch(_0x9348f8){return console[_0x218488(0x1b5)]('Failed\x20to\x20read\x20logs:',_0x9348f8),[];}}[a212_0x470f3f(0x1b1)](){const _0x56d3e0=a212_0x470f3f;try{a212_0x182faa[_0x56d3e0(0x199)](this[_0x56d3e0(0x198)])&&a212_0x182faa[_0x56d3e0(0x191)](this['logFilePath'],'',_0x56d3e0(0x1ab));}catch(_0x55484c){console[_0x56d3e0(0x1b5)](_0x56d3e0(0x1a8),_0x55484c);}}[a212_0x470f3f(0x1ba)](){const _0x4494bd=a212_0x470f3f;return this[_0x4494bd(0x1ad)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a214_0x472d(){const _0x18a2ba=['30zWkLcM','isArray','2870890mUyEOm','8aQEvoQ','898662poPXnl','6450150QfSfwA','1065923rPQMXd','object','447rFjjFu','19595EONMya','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','583227UcHvBV','12976vzagxV','920sEhFkC','validation','parse'];a214_0x472d=function(){return _0x18a2ba;};return a214_0x472d();}(function(_0x2012db,_0x5920b6){const _0x4d5767=a214_0x3b28,_0x5a6ced=_0x2012db();while(!![]){try{const _0x1b55c4=-parseInt(_0x4d5767(0xa4))/0x1+-parseInt(_0x4d5767(0x9a))/0x2*(-parseInt(_0x4d5767(0x96))/0x3)+parseInt(_0x4d5767(0x9b))/0x4*(-parseInt(_0x4d5767(0x97))/0x5)+-parseInt(_0x4d5767(0xa2))/0x6+parseInt(_0x4d5767(0xa3))/0x7+parseInt(_0x4d5767(0xa1))/0x8*(parseInt(_0x4d5767(0x99))/0x9)+-parseInt(_0x4d5767(0x9e))/0xa*(-parseInt(_0x4d5767(0xa0))/0xb);if(_0x1b55c4===_0x5920b6)break;else _0x5a6ced['push'](_0x5a6ced['shift']());}catch(_0x56b33e){_0x5a6ced['push'](_0x5a6ced['shift']());}}}(a214_0x472d,0x97171));import{CliErrors}from'../errors.js';function a214_0x3b28(_0x249922,_0x544000){_0x249922=_0x249922-0x95;const _0x472dcc=a214_0x472d();let _0x3b281a=_0x472dcc[_0x249922];return _0x3b281a;}export function parseJsonParams(_0x5c43b9){const _0x3509f4=a214_0x3b28;if(!_0x5c43b9)return undefined;let _0x5efcaf;try{_0x5efcaf=JSON[_0x3509f4(0x9d)](_0x5c43b9);}catch{throw CliErrors[_0x3509f4(0x9c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5c43b9);}if(!_0x5efcaf||typeof _0x5efcaf!==_0x3509f4(0x95)||Array[_0x3509f4(0x9f)](_0x5efcaf))throw CliErrors[_0x3509f4(0x9c)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x3509f4(0x98));return _0x5efcaf;}
1
+ (function(_0x1e0720,_0x1c62af){const _0x435a2c=a213_0x1b7d,_0x17055d=_0x1e0720();while(!![]){try{const _0x416006=parseInt(_0x435a2c(0x1b4))/0x1+parseInt(_0x435a2c(0x1b5))/0x2*(parseInt(_0x435a2c(0x1bb))/0x3)+-parseInt(_0x435a2c(0x1bc))/0x4*(-parseInt(_0x435a2c(0x1ba))/0x5)+parseInt(_0x435a2c(0x1c0))/0x6*(-parseInt(_0x435a2c(0x1bf))/0x7)+-parseInt(_0x435a2c(0x1c1))/0x8*(-parseInt(_0x435a2c(0x1b6))/0x9)+parseInt(_0x435a2c(0x1c3))/0xa*(-parseInt(_0x435a2c(0x1bd))/0xb)+parseInt(_0x435a2c(0x1b8))/0xc*(parseInt(_0x435a2c(0x1be))/0xd);if(_0x416006===_0x1c62af)break;else _0x17055d['push'](_0x17055d['shift']());}catch(_0xacde9c){_0x17055d['push'](_0x17055d['shift']());}}}(a213_0x35ea,0xa7a2b));import{CliErrors}from'../errors.js';function a213_0x1b7d(_0x2fb80a,_0x472c7a){_0x2fb80a=_0x2fb80a-0x1b3;const _0x35ea54=a213_0x35ea();let _0x1b7dde=_0x35ea54[_0x2fb80a];return _0x1b7dde;}export function parseJsonParams(_0x53a8c1){const _0x504527=a213_0x1b7d;if(!_0x53a8c1)return undefined;let _0x5ca4ea;try{_0x5ca4ea=JSON['parse'](_0x53a8c1);}catch{throw CliErrors[_0x504527(0x1c2)](_0x504527(0x1b7)+_0x53a8c1);}if(!_0x5ca4ea||typeof _0x5ca4ea!==_0x504527(0x1b9)||Array['isArray'](_0x5ca4ea))throw CliErrors[_0x504527(0x1c2)](_0x504527(0x1b3),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x5ca4ea;}function a213_0x35ea(){const _0x476d0a=['120twSCUO','6516boKHpl','Invalid\x20JSON\x20for\x20--params:\x20','12FRDVlC','object','15vWalBq','1527ovWCek','885996jaDjKe','176ldpUOt','11035310oVrIhw','2616061UZhrqx','18DQzjZW','5968lIylFY','validation','236360YrdyTD','--params\x20must\x20be\x20a\x20JSON\x20object','101969qNQAAG'];a213_0x35ea=function(){return _0x476d0a;};return a213_0x35ea();}
@@ -1 +1 @@
1
- function a215_0x1d8c(_0x599179,_0x29c622){_0x599179=_0x599179-0x12e;const _0x4ebe84=a215_0x4ebe();let _0x1d8c3f=_0x4ebe84[_0x599179];return _0x1d8c3f;}(function(_0x559f2a,_0x27d4cb){const _0x3c1b6b=a215_0x1d8c,_0x5d6278=_0x559f2a();while(!![]){try{const _0x1fbb6c=-parseInt(_0x3c1b6b(0x12e))/0x1+parseInt(_0x3c1b6b(0x12f))/0x2+-parseInt(_0x3c1b6b(0x136))/0x3+parseInt(_0x3c1b6b(0x137))/0x4+parseInt(_0x3c1b6b(0x133))/0x5*(-parseInt(_0x3c1b6b(0x131))/0x6)+parseInt(_0x3c1b6b(0x135))/0x7*(parseInt(_0x3c1b6b(0x132))/0x8)+parseInt(_0x3c1b6b(0x134))/0x9;if(_0x1fbb6c===_0x27d4cb)break;else _0x5d6278['push'](_0x5d6278['shift']());}catch(_0xdd79d0){_0x5d6278['push'](_0x5d6278['shift']());}}}(a215_0x4ebe,0x86e62));export const isWindows=process['platform']==='win32';function a215_0x4ebe(){const _0x11d055=['.cmd','6UwASrz','221048jMmKxl','57585aBqJYd','15294078IHDQiw','7PCPwIH','1699749BDTTWK','160896mrVcVm','897379xLtmBa','521656VkZFXx'];a215_0x4ebe=function(){return _0x11d055;};return a215_0x4ebe();}export function resolveNpmBin(_0x43f742){const _0x516843=a215_0x1d8c;return isWindows?_0x43f742+_0x516843(0x130):_0x43f742;}
1
+ function a214_0x4b4e(){const _0x10ca75=['8mmDrrV','18yxbOah','3811900cmkFRa','267105JhjOiu','4585053erPvxT','1469943cGTFsd','12EUdcrM','580TWAKso','win32','737pIHCTB','platform','33964HrOvjH','320844enWDFn'];a214_0x4b4e=function(){return _0x10ca75;};return a214_0x4b4e();}const a214_0x369a39=a214_0x1ab9;(function(_0x3614de,_0x154325){const _0x2c17d9=a214_0x1ab9,_0x2f3b0f=_0x3614de();while(!![]){try{const _0x3eb1e6=-parseInt(_0x2c17d9(0x1af))/0x1*(-parseInt(_0x2c17d9(0x1ad))/0x2)+parseInt(_0x2c17d9(0x1a5))/0x3+-parseInt(_0x2c17d9(0x1ac))/0x4*(-parseInt(_0x2c17d9(0x1a9))/0x5)+-parseInt(_0x2c17d9(0x1a7))/0x6*(-parseInt(_0x2c17d9(0x1b1))/0x7)+-parseInt(_0x2c17d9(0x1a6))/0x8*(parseInt(_0x2c17d9(0x1ab))/0x9)+parseInt(_0x2c17d9(0x1a8))/0xa+-parseInt(_0x2c17d9(0x1aa))/0xb;if(_0x3eb1e6===_0x154325)break;else _0x2f3b0f['push'](_0x2f3b0f['shift']());}catch(_0x1b29d4){_0x2f3b0f['push'](_0x2f3b0f['shift']());}}}(a214_0x4b4e,0x48659));function a214_0x1ab9(_0xc3e1ba,_0xfee1b){_0xc3e1ba=_0xc3e1ba-0x1a5;const _0x4b4e98=a214_0x4b4e();let _0x1ab99e=_0x4b4e98[_0xc3e1ba];return _0x1ab99e;}export const isWindows=process[a214_0x369a39(0x1b0)]===a214_0x369a39(0x1ae);export function resolveNpmBin(_0x97d2fa){return isWindows?_0x97d2fa+'.cmd':_0x97d2fa;}