@lovrabet/rabetbase-cli 2.3.2-beta.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.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 +1 -1
@@ -1 +1 @@
1
- (function(_0x4ace36,_0x1fb678){const _0x4630e5=a192_0x3287,_0xa1e1e9=_0x4ace36();while(!![]){try{const _0x1f1ece=parseInt(_0x4630e5(0x73))/0x1*(parseInt(_0x4630e5(0x70))/0x2)+parseInt(_0x4630e5(0x77))/0x3+parseInt(_0x4630e5(0x6e))/0x4*(-parseInt(_0x4630e5(0x80))/0x5)+parseInt(_0x4630e5(0x76))/0x6+parseInt(_0x4630e5(0x7e))/0x7*(-parseInt(_0x4630e5(0x6d))/0x8)+parseInt(_0x4630e5(0x78))/0x9+-parseInt(_0x4630e5(0x79))/0xa*(-parseInt(_0x4630e5(0x72))/0xb);if(_0x1f1ece===_0x1fb678)break;else _0xa1e1e9['push'](_0xa1e1e9['shift']());}catch(_0x2b29ca){_0xa1e1e9['push'](_0xa1e1e9['shift']());}}}(a192_0x5463,0x62ce2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a192_0x5463(){const _0x5e2ba1=['412myctlF','message','2WEAcSh','durationMs','407wZLzYH','539663ViGfNx','error','[REDACTED]','1875264vuMbhW','1110444iEARqF','4153599tDiwby','4670fueUSn','entries','service','stringify','test','21MzAzfX','rabetbase.command','37460tFfJal','1399368RMTvBx'];a192_0x5463=function(){return _0x5e2ba1;};return a192_0x5463();}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(_0x975e69){const _0x1d1001=a192_0x3287;return SENSITIVE_PATTERNS['some'](_0x193356=>_0x193356[_0x1d1001(0x7d)](_0x975e69));}function sanitizeFlags(_0xa7eafc){const _0x44c768=a192_0x3287,_0x1c7e43={};for(const [_0xdae156,_0x3eb043]of Object[_0x44c768(0x7a)](_0xa7eafc)){isSensitiveKey(_0xdae156)?_0x1c7e43[_0xdae156]=_0x3eb043!=null&&_0x3eb043!==''?_0x44c768(0x75):_0x3eb043:_0x1c7e43[_0xdae156]=_0x3eb043;}return _0x1c7e43;}function a192_0x3287(_0x4fe420,_0x48df7f){_0x4fe420=_0x4fe420-0x6d;const _0x546305=a192_0x5463();let _0x328782=_0x546305[_0x4fe420];return _0x328782;}export async function reportCommandTrace(_0x417926){const _0xd35d0c=a192_0x3287;try{const _0xeae157=sanitizeFlags(_0x417926['flags']);await sendCliTraceLog({'spanName':_0xd35d0c(0x7f),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x417926[_0xd35d0c(0x7b)],'command.name':_0x417926['command'],'command.flags':JSON[_0xd35d0c(0x7c)](_0xeae157),..._0x417926[_0xd35d0c(0x71)]!=null?{'command.duration_ms':_0x417926[_0xd35d0c(0x71)]}:{},..._0x417926[_0xd35d0c(0x74)]?{'command.error':_0x417926[_0xd35d0c(0x74)]instanceof Error?_0x417926[_0xd35d0c(0x74)][_0xd35d0c(0x6f)]:String(_0x417926[_0xd35d0c(0x74)])}:{}}});}catch{}}
1
+ (function(_0x4e328c,_0x392e5a){const _0x5097a8=a192_0x4ad7,_0xd73fbb=_0x4e328c();while(!![]){try{const _0x47fdf9=parseInt(_0x5097a8(0x18e))/0x1+parseInt(_0x5097a8(0x17f))/0x2*(parseInt(_0x5097a8(0x180))/0x3)+parseInt(_0x5097a8(0x183))/0x4+-parseInt(_0x5097a8(0x185))/0x5+parseInt(_0x5097a8(0x187))/0x6*(parseInt(_0x5097a8(0x18c))/0x7)+-parseInt(_0x5097a8(0x189))/0x8*(-parseInt(_0x5097a8(0x18d))/0x9)+-parseInt(_0x5097a8(0x18b))/0xa*(parseInt(_0x5097a8(0x190))/0xb);if(_0x47fdf9===_0x392e5a)break;else _0xd73fbb['push'](_0xd73fbb['shift']());}catch(_0x3406db){_0xd73fbb['push'](_0xd73fbb['shift']());}}}(a192_0x3d9b,0xbe310));function a192_0x3d9b(){const _0x301184=['542622oBqKjC','durationMs','command','2840388UeHbrd','entries','7787490kgIBWv','error','1338kWfRnQ','rabetbase.command','216wcwbtk','test','258690TDAVHK','32018NCbTbF','513855Uzlfpc','643703stqttL','stringify','979PstNne','[REDACTED]','8GdjDca'];a192_0x3d9b=function(){return _0x301184;};return a192_0x3d9b();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a192_0x4ad7(_0x55cf0b,_0x275d76){_0x55cf0b=_0x55cf0b-0x17f;const _0x3d9b74=a192_0x3d9b();let _0x4ad7f6=_0x3d9b74[_0x55cf0b];return _0x4ad7f6;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x146438){const _0x4e265e=a192_0x4ad7;return SENSITIVE_PATTERNS['some'](_0x143007=>_0x143007[_0x4e265e(0x18a)](_0x146438));}function sanitizeFlags(_0x4e40a5){const _0x5f6d8c=a192_0x4ad7,_0x4adf82={};for(const [_0x141a06,_0x17df45]of Object[_0x5f6d8c(0x184)](_0x4e40a5)){isSensitiveKey(_0x141a06)?_0x4adf82[_0x141a06]=_0x17df45!=null&&_0x17df45!==''?_0x5f6d8c(0x191):_0x17df45:_0x4adf82[_0x141a06]=_0x17df45;}return _0x4adf82;}export async function reportCommandTrace(_0x54e9bb){const _0x1c24a8=a192_0x4ad7;try{const _0x326686=sanitizeFlags(_0x54e9bb['flags']);await sendCliTraceLog({'spanName':_0x1c24a8(0x188),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x54e9bb['service'],'command.name':_0x54e9bb[_0x1c24a8(0x182)],'command.flags':JSON[_0x1c24a8(0x18f)](_0x326686),..._0x54e9bb[_0x1c24a8(0x181)]!=null?{'command.duration_ms':_0x54e9bb[_0x1c24a8(0x181)]}:{},..._0x54e9bb[_0x1c24a8(0x186)]?{'command.error':_0x54e9bb['error']instanceof Error?_0x54e9bb['error']['message']:String(_0x54e9bb['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x4a048e,_0x1a3e4a){var _0x3797dd=a193_0x5710,_0x259695=_0x4a048e();while(!![]){try{var _0xed52d2=parseInt(_0x3797dd(0x1b7))/0x1+-parseInt(_0x3797dd(0x1ac))/0x2*(parseInt(_0x3797dd(0x1b2))/0x3)+parseInt(_0x3797dd(0x1ab))/0x4*(-parseInt(_0x3797dd(0x1af))/0x5)+parseInt(_0x3797dd(0x1b4))/0x6*(-parseInt(_0x3797dd(0x1b3))/0x7)+parseInt(_0x3797dd(0x1b5))/0x8+-parseInt(_0x3797dd(0x1b6))/0x9+-parseInt(_0x3797dd(0x1ae))/0xa*(-parseInt(_0x3797dd(0x1ad))/0xb);if(_0xed52d2===_0x1a3e4a)break;else _0x259695['push'](_0x259695['shift']());}catch(_0x56f594){_0x259695['push'](_0x259695['shift']());}}}(a193_0x2fed,0xaa2af));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a193_0x2fed(){var _0x102091=['2167nmSVYR','79570mWRZAN','2269395ZRszWB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','995781LZYFUl','2114231nBroCM','18PFZxve','5957952hMeqha','7945407ZtUWcZ','959462ZOBdYJ','service','error','4OoeuHM','2ELcYfb'];a193_0x2fed=function(){return _0x102091;};return a193_0x2fed();}function a193_0x5710(_0x4223fb,_0x3ce2b2){_0x4223fb=_0x4223fb-0x1a9;var _0x2fed7c=a193_0x2fed();var _0x571040=_0x2fed7c[_0x4223fb];return _0x571040;}export async function reportCliHelpTrace(_0xeddb19,_0x8edb7f){var _0x4de51f=a193_0x5710;try{await sendCliTraceLog({'spanName':_0x4de51f(0x1b1),'logData':{'rabetbase.help.kind':_0xeddb19,..._0x8edb7f?.['service']&&{'rabetbase.help.service':_0x8edb7f[_0x4de51f(0x1a9)]}}});}catch(_0x32ba0e){console[_0x4de51f(0x1aa)](_0x4de51f(0x1b0),_0x32ba0e);}}
1
+ (function(_0x132c50,_0x14e1ac){var _0x1b7a22=a193_0x449b,_0x48d78e=_0x132c50();while(!![]){try{var _0x65a95=parseInt(_0x1b7a22(0x100))/0x1*(-parseInt(_0x1b7a22(0xff))/0x2)+parseInt(_0x1b7a22(0xf6))/0x3*(-parseInt(_0x1b7a22(0xfa))/0x4)+-parseInt(_0x1b7a22(0x101))/0x5*(-parseInt(_0x1b7a22(0xfd))/0x6)+parseInt(_0x1b7a22(0xf4))/0x7+parseInt(_0x1b7a22(0xf7))/0x8+-parseInt(_0x1b7a22(0xfe))/0x9*(-parseInt(_0x1b7a22(0x102))/0xa)+-parseInt(_0x1b7a22(0xf5))/0xb*(parseInt(_0x1b7a22(0xf9))/0xc);if(_0x65a95===_0x14e1ac)break;else _0x48d78e['push'](_0x48d78e['shift']());}catch(_0x3804fe){_0x48d78e['push'](_0x48d78e['shift']());}}}(a193_0x4372,0xb9b50));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1d5605,_0x227415){var _0x1a779c=a193_0x449b;try{await sendCliTraceLog({'spanName':_0x1a779c(0xf8),'logData':{'rabetbase.help.kind':_0x1d5605,..._0x227415?.[_0x1a779c(0xfb)]&&{'rabetbase.help.service':_0x227415['service']}}});}catch(_0x4351c0){console['error'](_0x1a779c(0xfc),_0x4351c0);}}function a193_0x449b(_0x5ebaea,_0xe90752){_0x5ebaea=_0x5ebaea-0xf4;var _0x4372ef=a193_0x4372();var _0x449b8d=_0x4372ef[_0x5ebaea];return _0x449b8d;}function a193_0x4372(){var _0x3e9b46=['service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','3540zRPALq','603OrcrMe','17354vjylhs','54RDFTaR','1015fQeBZb','175730maSYqQ','7606872GtpwWk','3423673ogWmrb','333hlUzCl','4322584axUuSo','cli.help','48dUncyz','16216kfgzGt'];a193_0x4372=function(){return _0x3e9b46;};return a193_0x4372();}
@@ -1 +1 @@
1
- (function(_0x2c98f1,_0x5f13c9){const _0x3811b5=a194_0xc6a9,_0x2cd400=_0x2c98f1();while(!![]){try{const _0xcd5d46=parseInt(_0x3811b5(0x143))/0x1+parseInt(_0x3811b5(0x13d))/0x2*(parseInt(_0x3811b5(0x140))/0x3)+-parseInt(_0x3811b5(0x13f))/0x4+parseInt(_0x3811b5(0x138))/0x5*(parseInt(_0x3811b5(0x13b))/0x6)+-parseInt(_0x3811b5(0x142))/0x7+-parseInt(_0x3811b5(0x13c))/0x8+-parseInt(_0x3811b5(0x13a))/0x9*(-parseInt(_0x3811b5(0x145))/0xa);if(_0xcd5d46===_0x5f13c9)break;else _0x2cd400['push'](_0x2cd400['shift']());}catch(_0x449284){_0x2cd400['push'](_0x2cd400['shift']());}}}(a194_0x4c08,0x78864));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';function a194_0xc6a9(_0x120665,_0xd91681){_0x120665=_0x120665-0x136;const _0x4c0852=a194_0x4c08();let _0xc6a985=_0x4c0852[_0x120665];return _0xc6a985;}function a194_0x4c08(){const _0xe41c6b=['nickname','tenant','47195tCHarW','daily','4217193oRxXiA','264pbtUxO','2996264ZLTgMr','58766jYioMv','unknown','994964vlEvEJ','78iPgJpV','user','5380018rQBFDd','237665sQeKZo','username','10iuZPPj','tenant_code'];a194_0x4c08=function(){return _0xe41c6b;};return a194_0x4c08();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3fa387=a194_0xc6a9,_0x46fb3a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4d6471=_0x46fb3a?.[_0x3fa387(0x141)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3fa387(0x13e)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3fa387(0x139):'production')}),setUserContext({'id':_0x4d6471?.['id'],'username':_0x4d6471?.[_0x3fa387(0x144)],'nickname':_0x4d6471?.[_0x3fa387(0x136)],'email':_0x4d6471?.['email'],'tenantCode':_0x4d6471?.[_0x3fa387(0x137)][_0x3fa387(0x146)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x46fb3a;}
1
+ (function(_0x23d87e,_0x1c4c95){const _0x3556cd=a194_0x2be1,_0xa89bb1=_0x23d87e();while(!![]){try{const _0x3f2164=-parseInt(_0x3556cd(0xe5))/0x1*(-parseInt(_0x3556cd(0xe8))/0x2)+parseInt(_0x3556cd(0xea))/0x3+parseInt(_0x3556cd(0xf2))/0x4+parseInt(_0x3556cd(0xf1))/0x5*(parseInt(_0x3556cd(0xe7))/0x6)+-parseInt(_0x3556cd(0xeb))/0x7+-parseInt(_0x3556cd(0xf0))/0x8*(-parseInt(_0x3556cd(0xed))/0x9)+-parseInt(_0x3556cd(0xf3))/0xa;if(_0x3f2164===_0x1c4c95)break;else _0xa89bb1['push'](_0xa89bb1['shift']());}catch(_0x4cb6ff){_0xa89bb1['push'](_0xa89bb1['shift']());}}}(a194_0x5225,0x4b07a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a194_0x5225(){const _0x16be55=['1926432hNfNPq','10864250UhTLzD','unknown','1GxlndS','daily','100050uHyisu','197172OAqthn','user','1178238LNEmjT','2042999mlXUXG','nickname','9HeabEt','production','email','3433512zQPuEV','85HfDpaq'];a194_0x5225=function(){return _0x16be55;};return a194_0x5225();}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_0x2be1(_0xa54ce6,_0x1d5c0a){_0xa54ce6=_0xa54ce6-0xe5;const _0x522529=a194_0x5225();let _0x2be119=_0x522529[_0xa54ce6];return _0x2be119;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2928d5=a194_0x2be1,_0x1c0ce4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1ea5fb=_0x1c0ce4?.[_0x2928d5(0xe9)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2928d5(0xf4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2928d5(0xe6):_0x2928d5(0xee))}),setUserContext({'id':_0x1ea5fb?.['id'],'username':_0x1ea5fb?.['username'],'nickname':_0x1ea5fb?.[_0x2928d5(0xec)],'email':_0x1ea5fb?.[_0x2928d5(0xef)],'tenantCode':_0x1ea5fb?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1c0ce4;}
@@ -1 +1 @@
1
- function a195_0x36f7(){const _0x3a8d73=['once','SIGINT','41190nqLcJk','beforeExit','262551tmiccC','1105310QvEezB','SIGTERM','3552hzaqtg','581AKBhfK','4uXlgAZ','1aDTaBu','exit','147036qmLcpp','500044DrrlMF','9sUmIDg','2811666xzuZHZ'];a195_0x36f7=function(){return _0x3a8d73;};return a195_0x36f7();}function a195_0x20a8(_0x2145b3,_0x5531d7){_0x2145b3=_0x2145b3-0x67;const _0x36f7de=a195_0x36f7();let _0x20a81e=_0x36f7de[_0x2145b3];return _0x20a81e;}(function(_0x3228da,_0x1963eb){const _0x3b2d32=a195_0x20a8,_0x22144c=_0x3228da();while(!![]){try{const _0x7b8aa3=-parseInt(_0x3b2d32(0x6b))/0x1*(-parseInt(_0x3b2d32(0x6e))/0x2)+parseInt(_0x3b2d32(0x75))/0x3*(-parseInt(_0x3b2d32(0x6a))/0x4)+parseInt(_0x3b2d32(0x76))/0x5+-parseInt(_0x3b2d32(0x6d))/0x6+parseInt(_0x3b2d32(0x69))/0x7*(parseInt(_0x3b2d32(0x68))/0x8)+parseInt(_0x3b2d32(0x6f))/0x9*(-parseInt(_0x3b2d32(0x73))/0xa)+-parseInt(_0x3b2d32(0x70))/0xb;if(_0x7b8aa3===_0x1963eb)break;else _0x22144c['push'](_0x22144c['shift']());}catch(_0xba4a1a){_0x22144c['push'](_0x22144c['shift']());}}}(a195_0x36f7,0x213fc));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 _0x4611f9=a195_0x20a8;process[_0x4611f9(0x71)](_0x4611f9(0x74),()=>{void flushOtelNodeIfUsed();});const _0x5b6eec=()=>{const _0x1867a8=_0x4611f9;void flushOtelNodeIfUsed()['then'](()=>process[_0x1867a8(0x6c)](0x0));};process[_0x4611f9(0x71)](_0x4611f9(0x72),_0x5b6eec),process['once'](_0x4611f9(0x67),_0x5b6eec);}export async function exitWithOtelShutdown(_0x5aeea4){const _0x429471=a195_0x20a8;await flushOtelNodeIfUsed(),process[_0x429471(0x6c)](_0x5aeea4);}
1
+ (function(_0x3e08a6,_0x3df1f4){const _0x53b6b6=a195_0x26c7,_0x40bc22=_0x3e08a6();while(!![]){try{const _0xd17b47=parseInt(_0x53b6b6(0xe4))/0x1*(parseInt(_0x53b6b6(0xe0))/0x2)+-parseInt(_0x53b6b6(0xe7))/0x3+parseInt(_0x53b6b6(0xdd))/0x4+-parseInt(_0x53b6b6(0xe1))/0x5+-parseInt(_0x53b6b6(0xe2))/0x6*(parseInt(_0x53b6b6(0xe6))/0x7)+-parseInt(_0x53b6b6(0xe5))/0x8+parseInt(_0x53b6b6(0xde))/0x9;if(_0xd17b47===_0x3df1f4)break;else _0x40bc22['push'](_0x40bc22['shift']());}catch(_0x1eca72){_0x40bc22['push'](_0x40bc22['shift']());}}}(a195_0x3fe3,0x6dd0b));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 a195_0x26c7(_0x263abc,_0x1b299c){_0x263abc=_0x263abc-0xdd;const _0x3fe3a4=a195_0x3fe3();let _0x26c735=_0x3fe3a4[_0x263abc];return _0x26c735;}export function registerOtelShutdownOnExit(){const _0x279bf6=a195_0x26c7;process[_0x279bf6(0xdf)](_0x279bf6(0xe3),()=>{void flushOtelNodeIfUsed();});const _0x209fa2=()=>{const _0x3d2474=_0x279bf6;void flushOtelNodeIfUsed()[_0x3d2474(0xe9)](()=>process['exit'](0x0));};process[_0x279bf6(0xdf)](_0x279bf6(0xe8),_0x209fa2),process[_0x279bf6(0xdf)]('SIGTERM',_0x209fa2);}function a195_0x3fe3(){const _0x398b12=['SIGINT','then','1782864dmQVaY','12815262Fxznyb','once','702AMHmZT','2131285ENMNFg','66qZMxZt','beforeExit','125hvMXhK','4524312KcdVLE','186361OsMjRQ','537171VfQBLC'];a195_0x3fe3=function(){return _0x398b12;};return a195_0x3fe3();}export async function exitWithOtelShutdown(_0x4d04bb){await flushOtelNodeIfUsed(),process['exit'](_0x4d04bb);}
@@ -1 +1 @@
1
- const a196_0x1f26b8=a196_0x47e4;(function(_0x5b0a5e,_0x5df8f0){const _0x302ed2=a196_0x47e4,_0x1bf7e9=_0x5b0a5e();while(!![]){try{const _0x5998c1=-parseInt(_0x302ed2(0x1e7))/0x1+-parseInt(_0x302ed2(0x1e6))/0x2+parseInt(_0x302ed2(0x1df))/0x3+parseInt(_0x302ed2(0x1eb))/0x4*(-parseInt(_0x302ed2(0x1e1))/0x5)+-parseInt(_0x302ed2(0x1e3))/0x6+parseInt(_0x302ed2(0x1e8))/0x7+-parseInt(_0x302ed2(0x1e4))/0x8*(-parseInt(_0x302ed2(0x1dd))/0x9);if(_0x5998c1===_0x5df8f0)break;else _0x1bf7e9['push'](_0x1bf7e9['shift']());}catch(_0x5c0b85){_0x1bf7e9['push'](_0x1bf7e9['shift']());}}}(a196_0x5e31,0x60d57));function a196_0x5e31(){const _0x301572=['569816PJMkOy','407523qBBxku','712789cWQNkh','rabetbase-cli','traceparent','1456gPtHhs','117sOnjoW','version','1490661HbMgYQ','traceName','5045JUJRbb','spanName','2266830sWMBak','760264cEwEJm','logData'];a196_0x5e31=function(){return _0x301572;};return a196_0x5e31();}function a196_0x47e4(_0x490d75,_0x59be39){_0x490d75=_0x490d75-0x1dd;const _0x5e31f3=a196_0x5e31();let _0x47e4d5=_0x5e31f3[_0x490d75];return _0x47e4d5;}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=a196_0x1f26b8(0x1e9);export async function sendCliTraceLog(_0x3c0389){const _0x17f24d=a196_0x1f26b8;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3c0389[_0x17f24d(0x1e0)]??DEFAULT_TRACE_NAME,'version':_0x3c0389[_0x17f24d(0x1de)]??getCliVersion(),'spanName':_0x3c0389[_0x17f24d(0x1e2)],'eventType':'manual','logData':_0x3c0389[_0x17f24d(0x1e5)],..._0x3c0389[_0x17f24d(0x1ea)]&&{'traceparent':_0x3c0389[_0x17f24d(0x1ea)]}});}
1
+ const a196_0x1601c5=a196_0x3dd3;(function(_0x14717d,_0x400b88){const _0x5835f9=a196_0x3dd3,_0x31e1fa=_0x14717d();while(!![]){try{const _0x597351=parseInt(_0x5835f9(0xe7))/0x1+parseInt(_0x5835f9(0xe1))/0x2*(-parseInt(_0x5835f9(0xef))/0x3)+-parseInt(_0x5835f9(0xed))/0x4+parseInt(_0x5835f9(0xeb))/0x5*(parseInt(_0x5835f9(0xec))/0x6)+parseInt(_0x5835f9(0xdf))/0x7*(parseInt(_0x5835f9(0xe4))/0x8)+parseInt(_0x5835f9(0xe2))/0x9*(parseInt(_0x5835f9(0xea))/0xa)+-parseInt(_0x5835f9(0xe3))/0xb;if(_0x597351===_0x400b88)break;else _0x31e1fa['push'](_0x31e1fa['shift']());}catch(_0x1fb958){_0x31e1fa['push'](_0x31e1fa['shift']());}}}(a196_0x3236,0x74d30));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a196_0x3236(){const _0x4582a4=['manual','20OxfMKx','5uHlstu','5143158zYjOXd','3219844mLOATw','rabetbase-cli','20571xjTqha','traceName','2158877toyYAn','traceparent','268UrSkWd','1015083dTPfHo','1579193uDoGRu','16mtYJgM','logData','spanName','646285gKdVrP','version'];a196_0x3236=function(){return _0x4582a4;};return a196_0x3236();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a196_0x1601c5(0xee);function a196_0x3dd3(_0x469eec,_0x3db788){_0x469eec=_0x469eec-0xde;const _0x323657=a196_0x3236();let _0x3dd303=_0x323657[_0x469eec];return _0x3dd303;}export async function sendCliTraceLog(_0x4e9ae1){const _0x5d35f9=a196_0x1601c5;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4e9ae1[_0x5d35f9(0xde)]??DEFAULT_TRACE_NAME,'version':_0x4e9ae1[_0x5d35f9(0xe8)]??getCliVersion(),'spanName':_0x4e9ae1[_0x5d35f9(0xe6)],'eventType':_0x5d35f9(0xe9),'logData':_0x4e9ae1[_0x5d35f9(0xe5)],..._0x4e9ae1[_0x5d35f9(0xe0)]&&{'traceparent':_0x4e9ae1[_0x5d35f9(0xe0)]}});}
@@ -1 +1 @@
1
- const a197_0x35d060=a197_0xdaf7;function a197_0xdaf7(_0x504210,_0x502d86){_0x504210=_0x504210-0x69;const _0xa0ecf9=a197_0xa0ec();let _0xdaf773=_0xa0ecf9[_0x504210];return _0xdaf773;}(function(_0x5cb82e,_0x71fe8d){const _0x1666dc=a197_0xdaf7,_0x152b8d=_0x5cb82e();while(!![]){try{const _0x2daaef=parseInt(_0x1666dc(0x69))/0x1*(parseInt(_0x1666dc(0x6a))/0x2)+parseInt(_0x1666dc(0x71))/0x3*(parseInt(_0x1666dc(0x75))/0x4)+-parseInt(_0x1666dc(0x73))/0x5+-parseInt(_0x1666dc(0x7a))/0x6*(-parseInt(_0x1666dc(0x6b))/0x7)+-parseInt(_0x1666dc(0x6e))/0x8+-parseInt(_0x1666dc(0x78))/0x9*(parseInt(_0x1666dc(0x6f))/0xa)+parseInt(_0x1666dc(0x74))/0xb*(parseInt(_0x1666dc(0x6c))/0xc);if(_0x2daaef===_0x71fe8d)break;else _0x152b8d['push'](_0x152b8d['shift']());}catch(_0x2c881e){_0x152b8d['push'](_0x152b8d['shift']());}}}(a197_0xa0ec,0xaeefa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';function a197_0xa0ec(){const _0xfa9538=['4132695RZMwoB','11OGbWsm','1156wrHHBQ','truncated','issue.log.collect','10572183AgzySs','sanitize','6AvSJMj','147dIvIRw','17068oKmwDe','7588882QEOdAo','5685144cyzlmy','title','981240sjbbrB','10hEknef','join','291GWoqiS','redactionKinds'];a197_0xa0ec=function(){return _0xfa9538;};return a197_0xa0ec();}export const PLATFORM_ISSUE_SPAN_NAME=a197_0x35d060(0x77);export async function sendPlatformIssueCollectLog(_0x4a64d7){const _0x125c93=a197_0x35d060;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4a64d7[_0x125c93(0x6d)],'issue.description':_0x4a64d7['description'],..._0x4a64d7[_0x125c93(0x79)]?{'issue.description_original_bytes':_0x4a64d7['sanitize']['originalBytes'],'issue.description_truncated':_0x4a64d7[_0x125c93(0x79)][_0x125c93(0x76)],'issue.description_redactions':_0x4a64d7[_0x125c93(0x79)]['redactionCount'],'issue.description_redaction_kinds':_0x4a64d7[_0x125c93(0x79)][_0x125c93(0x72)][_0x125c93(0x70)](',')}:{}}});}
1
+ function a197_0x1f33(){const _0x57ba3e=['10kEQKQv','480462PdZhYJ','242339iYjSGv','redactionKinds','redactionCount','platform-issue-log-collect','sanitize','description','title','3803950oYDejq','9358206VOjFMY','233656uwrROJ','140VxcUgl','1966704BLPjvz','truncated','9PcWOBH','1097025LRTZsW','4xaSwXA'];a197_0x1f33=function(){return _0x57ba3e;};return a197_0x1f33();}const a197_0x42b075=a197_0x2c53;function a197_0x2c53(_0x40102e,_0x584b29){_0x40102e=_0x40102e-0xc1;const _0x1f3336=a197_0x1f33();let _0x2c5321=_0x1f3336[_0x40102e];return _0x2c5321;}(function(_0x4a91be,_0x1b18c9){const _0x521e12=a197_0x2c53,_0x9b9d3c=_0x4a91be();while(!![]){try{const _0x1f1ad2=-parseInt(_0x521e12(0xca))/0x1+parseInt(_0x521e12(0xc9))/0x2+parseInt(_0x521e12(0xc6))/0x3*(parseInt(_0x521e12(0xc7))/0x4)+-parseInt(_0x521e12(0xc8))/0x5*(parseInt(_0x521e12(0xc3))/0x6)+-parseInt(_0x521e12(0xc2))/0x7*(parseInt(_0x521e12(0xc1))/0x8)+parseInt(_0x521e12(0xc5))/0x9*(parseInt(_0x521e12(0xd1))/0xa)+parseInt(_0x521e12(0xd2))/0xb;if(_0x1f1ad2===_0x1b18c9)break;else _0x9b9d3c['push'](_0x9b9d3c['shift']());}catch(_0x28b801){_0x9b9d3c['push'](_0x9b9d3c['shift']());}}}(a197_0x1f33,0x56ab8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a197_0x42b075(0xcd);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x5f4b7c){const _0x294524=a197_0x42b075;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5f4b7c[_0x294524(0xd0)],'issue.description':_0x5f4b7c[_0x294524(0xcf)],..._0x5f4b7c['sanitize']?{'issue.description_original_bytes':_0x5f4b7c[_0x294524(0xce)]['originalBytes'],'issue.description_truncated':_0x5f4b7c[_0x294524(0xce)][_0x294524(0xc4)],'issue.description_redactions':_0x5f4b7c[_0x294524(0xce)][_0x294524(0xcc)],'issue.description_redaction_kinds':_0x5f4b7c[_0x294524(0xce)][_0x294524(0xcb)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- function a199_0x3e57(){const _0x535bc9=['14676CxsGBl','40YSYVuP','Cursor','windsurf','agent','.cursorrules','.claude/skills/lovrabet/SKILL.md','Cline','8746434NRfdjh','OpenCode','.cursor','.qoder/rules/rabetbase.md','130meTRek','36ssixQs','Cline\x20IDE','OpenCode\x20IDE','134538jSnHyl','.windsurf','.cline','110cnqABz','.trae/skills/lovrabet/SKILL.md','599725nYVItD','cline','.qoder/skills/lovrabet/SKILL.md','.agent','Codex\x20IDE','118kdoZGa','Claude\x20Code','通用模板\x20-\x20兜底方案','codex','qoder','claude','.codex','16967MUPYcg','.agent/skills/lovrabet/SKILL.md','Antigravity','Windsurf\x20IDE','Codex','.windsurf/workflows/rabetbase.md','codebuddy','4377113GDzwGm','SKILL.md.tpl','file','Qoder','24LgcssC','Antigravity\x20IDE','antigravity','.opencode/skills/lovrabet/SKILL.md','Cursor\x20IDE','.opencode','opencode','.qoder','940910kzYkYH','trae'];a199_0x3e57=function(){return _0x535bc9;};return a199_0x3e57();}const a199_0x719855=a199_0x4fe8;(function(_0x35b026,_0x1fbf14){const _0x709a71=a199_0x4fe8,_0xe314f1=_0x35b026();while(!![]){try{const _0x343008=-parseInt(_0x709a71(0x9a))/0x1*(parseInt(_0x709a71(0x93))/0x2)+-parseInt(_0x709a71(0x89))/0x3*(-parseInt(_0x709a71(0xb0))/0x4)+parseInt(_0x709a71(0x85))/0x5*(-parseInt(_0x709a71(0xaf))/0x6)+-parseInt(_0x709a71(0x8e))/0x7*(-parseInt(_0x709a71(0xa5))/0x8)+parseInt(_0x709a71(0x81))/0x9+-parseInt(_0x709a71(0xad))/0xa*(-parseInt(_0x709a71(0x8c))/0xb)+parseInt(_0x709a71(0x86))/0xc*(-parseInt(_0x709a71(0xa1))/0xd);if(_0x343008===_0x1fbf14)break;else _0xe314f1['push'](_0xe314f1['shift']());}catch(_0x56d646){_0xe314f1['push'](_0xe314f1['shift']());}}}(a199_0x3e57,0x84aed));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x719855(0xb1),'description':a199_0x719855(0xa9),'folders':[a199_0x719855(0xb4),a199_0x719855(0x83)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a199_0x719855(0xa2)}]},'windsurf':{'name':'Windsurf','description':a199_0x719855(0x9d),'folders':[a199_0x719855(0x8a)],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x9f),'template':'SKILL.md.tpl'}]},'claude':{'name':a199_0x719855(0x94),'description':a199_0x719855(0x94),'folders':['.claude'],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x7f),'template':'SKILL.md.tpl'}]},'cline':{'name':a199_0x719855(0x80),'description':a199_0x719855(0x87),'folders':[a199_0x719855(0x8b)],'files':[{'type':a199_0x719855(0xa3),'path':'.cline/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'codex':{'name':a199_0x719855(0x9e),'description':a199_0x719855(0x92),'folders':[a199_0x719855(0x99)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'opencode':{'name':a199_0x719855(0x82),'description':a199_0x719855(0x88),'folders':[a199_0x719855(0xaa)],'files':[{'type':'file','path':a199_0x719855(0xa8),'template':a199_0x719855(0xa2)}]},'qoder':{'name':a199_0x719855(0xa4),'description':'Qoder\x20IDE','folders':[a199_0x719855(0xac)],'files':[{'type':'file','path':a199_0x719855(0x84),'template':a199_0x719855(0xa2)},{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x90),'template':a199_0x719855(0xa2)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a199_0x719855(0xa3),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a199_0x719855(0x8d),'template':a199_0x719855(0xa2)}]}};function a199_0x4fe8(_0x1d837d,_0x25fe33){_0x1d837d=_0x1d837d-0x7f;const _0x3e57f7=a199_0x3e57();let _0x4fe879=_0x3e57f7[_0x1d837d];return _0x4fe879;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a199_0x719855(0x95),'folders':[a199_0x719855(0x91)],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x9b),'template':a199_0x719855(0xa2)}]},'antigravity':{'name':a199_0x719855(0x9c),'description':a199_0x719855(0xa6),'folders':[a199_0x719855(0x91)],'files':[{'type':'file','path':a199_0x719855(0x9b),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a199_0x719855(0x98),'cline',a199_0x719855(0xa0),'codex','cursor',a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xae),a199_0x719855(0xb2)];export const IDE_LIST=[a199_0x719855(0xa7),a199_0x719855(0x98),a199_0x719855(0x8f),'codebuddy',a199_0x719855(0x96),'cursor',a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xae),'windsurf',a199_0x719855(0xb3)];export const ALL_CORE_IDES=['cursor',a199_0x719855(0xb2),a199_0x719855(0x98),a199_0x719855(0x8f),a199_0x719855(0x96),a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xa0),a199_0x719855(0xae)];
1
+ const a199_0x46010d=a199_0x5588;(function(_0xaadf41,_0x1874e3){const _0x2c6d06=a199_0x5588,_0x520541=_0xaadf41();while(!![]){try{const _0x2b2247=-parseInt(_0x2c6d06(0x1fc))/0x1+-parseInt(_0x2c6d06(0x1ef))/0x2+parseInt(_0x2c6d06(0x206))/0x3*(parseInt(_0x2c6d06(0x1e9))/0x4)+parseInt(_0x2c6d06(0x20e))/0x5*(-parseInt(_0x2c6d06(0x1da))/0x6)+-parseInt(_0x2c6d06(0x1f2))/0x7+-parseInt(_0x2c6d06(0x1f3))/0x8*(parseInt(_0x2c6d06(0x1ff))/0x9)+-parseInt(_0x2c6d06(0x1f5))/0xa*(-parseInt(_0x2c6d06(0x1dd))/0xb);if(_0x2b2247===_0x1874e3)break;else _0x520541['push'](_0x520541['shift']());}catch(_0x37fb3e){_0x520541['push'](_0x520541['shift']());}}}(a199_0xe24f,0x67171));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x46010d(0x1e3),'description':a199_0x46010d(0x20d),'folders':[a199_0x46010d(0x1e0),a199_0x46010d(0x1df)],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x209),'template':a199_0x46010d(0x1e7)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a199_0x46010d(0x1db)],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x1fd),'template':a199_0x46010d(0x1e7)}]},'claude':{'name':'Claude\x20Code','description':a199_0x46010d(0x205),'folders':[a199_0x46010d(0x208)],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x1ed),'template':a199_0x46010d(0x1e7)}]},'cline':{'name':a199_0x46010d(0x207),'description':a199_0x46010d(0x20c),'folders':['.cline'],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x203),'template':a199_0x46010d(0x1e7)}]},'codex':{'name':a199_0x46010d(0x1d6),'description':a199_0x46010d(0x204),'folders':[a199_0x46010d(0x1e2)],'files':[{'type':a199_0x46010d(0x1e6),'path':'.codex/skills/lovrabet/SKILL.md','template':a199_0x46010d(0x1e7)}]},'opencode':{'name':a199_0x46010d(0x1dc),'description':a199_0x46010d(0x1e8),'folders':[a199_0x46010d(0x1eb)],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a199_0x46010d(0x1e7)}]},'qoder':{'name':a199_0x46010d(0x20a),'description':a199_0x46010d(0x1d9),'folders':[a199_0x46010d(0x1d7)],'files':[{'type':'file','path':a199_0x46010d(0x200),'template':a199_0x46010d(0x1e7)},{'type':a199_0x46010d(0x1e6),'path':'.qoder/skills/lovrabet/SKILL.md','template':a199_0x46010d(0x1e7)}]},'codebuddy':{'name':'CodeBuddy','description':a199_0x46010d(0x202),'folders':[a199_0x46010d(0x201)],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x1f0),'template':a199_0x46010d(0x1e7)}]},'trae':{'name':a199_0x46010d(0x1f4),'description':a199_0x46010d(0x1fa),'folders':['.trae'],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x1ec),'template':a199_0x46010d(0x1e7)}]}};function a199_0x5588(_0x21f1ca,_0xbcc733){_0x21f1ca=_0x21f1ca-0x1d6;const _0xe24f92=a199_0xe24f();let _0x558864=_0xe24f92[_0x21f1ca];return _0x558864;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a199_0x46010d(0x1de),'description':a199_0x46010d(0x1e1),'folders':['.agent'],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a199_0x46010d(0x1e7)}]},'antigravity':{'name':a199_0x46010d(0x1f7),'description':a199_0x46010d(0x1e5),'folders':['.agent'],'files':[{'type':a199_0x46010d(0x1e6),'path':a199_0x46010d(0x1fe),'template':a199_0x46010d(0x1e7)}]}};export const CORE_IDE_LIST=[a199_0x46010d(0x1f1),a199_0x46010d(0x1ea),a199_0x46010d(0x1f8),a199_0x46010d(0x1d8),a199_0x46010d(0x1f9),'opencode',a199_0x46010d(0x1fb),a199_0x46010d(0x1f6),a199_0x46010d(0x1e4)];function a199_0xe24f(){const _0x5a3f06=['24jmKSMP','Trae','26793210nwqRWU','trae','Antigravity','codebuddy','cursor','Trae\x20IDE','qoder','251602Ieihcp','.windsurf/workflows/rabetbase.md','.agent/skills/lovrabet/SKILL.md','820071pRozKl','.qoder/rules/rabetbase.md','.codebuddy','CodeBuddy\x20IDE','.cline/skills/lovrabet/SKILL.md','Codex\x20IDE','Claude\x20Code','20919oPgTpQ','Cline','.claude','.cursor/skills/rabetbase.md','Qoder','opencode','Cline\x20IDE','Cursor\x20IDE','35fwbbis','Codex','.qoder','codex','Qoder\x20IDE','666702bbVCIQ','.windsurf','OpenCode','11iKgufI','其他\x20(通用模板)','.cursor','.cursorrules','通用模板\x20-\x20兜底方案','.codex','Cursor','windsurf','Antigravity\x20IDE','file','SKILL.md.tpl','OpenCode\x20IDE','108glHMOl','cline','.opencode','.trae/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','agent','1116904ovxiMD','.codebuddy/skills/lovrabet/SKILL.md','claude','4088735htYnUW'];a199_0xe24f=function(){return _0x5a3f06;};return a199_0xe24f();}export const IDE_LIST=['antigravity',a199_0x46010d(0x1f1),a199_0x46010d(0x1ea),a199_0x46010d(0x1f8),a199_0x46010d(0x1d8),a199_0x46010d(0x1f9),a199_0x46010d(0x20b),'qoder',a199_0x46010d(0x1f6),a199_0x46010d(0x1e4),a199_0x46010d(0x1ee)];export const ALL_CORE_IDES=['cursor',a199_0x46010d(0x1e4),a199_0x46010d(0x1f1),a199_0x46010d(0x1ea),a199_0x46010d(0x1d8),a199_0x46010d(0x20b),a199_0x46010d(0x1fb),a199_0x46010d(0x1f8),'trae'];
@@ -1 +1 @@
1
- (function(_0x446249,_0x1abc7d){const _0x31ac70=a200_0x541c,_0x3ec483=_0x446249();while(!![]){try{const _0x3e9e2e=parseInt(_0x31ac70(0x16a))/0x1+parseInt(_0x31ac70(0x16d))/0x2*(-parseInt(_0x31ac70(0x164))/0x3)+parseInt(_0x31ac70(0x16e))/0x4*(-parseInt(_0x31ac70(0x16f))/0x5)+parseInt(_0x31ac70(0x167))/0x6*(parseInt(_0x31ac70(0x168))/0x7)+parseInt(_0x31ac70(0x16c))/0x8*(parseInt(_0x31ac70(0x16b))/0x9)+parseInt(_0x31ac70(0x166))/0xa+parseInt(_0x31ac70(0x165))/0xb*(-parseInt(_0x31ac70(0x169))/0xc);if(_0x3e9e2e===_0x1abc7d)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x4e81a0){_0x3ec483['push'](_0x3ec483['shift']());}}}(a200_0x5495,0xd145b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x541c(_0xbbdcb0,_0x43972f){_0xbbdcb0=_0xbbdcb0-0x164;const _0x549542=a200_0x5495();let _0x541c80=_0x549542[_0xbbdcb0];return _0x541c80;}import{CliErrors}from'../errors.js';function a200_0x5495(){const _0x4260f3=['130920IWNMoy','206tEoQUH','10832KlAkSd','1085DopWDz','18579CIYSTh','19588987WzTVmi','16734840bUkUsy','1541418ZRimKT','7xuyfSI','12JplMKW','689384ljGkZa','684AfeJKw'];a200_0x5495=function(){return _0x4260f3;};return a200_0x5495();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a200_0x2855(_0x18c58e,_0x15c6ab){_0x18c58e=_0x18c58e-0x102;const _0x9238e8=a200_0x9238();let _0x28554f=_0x9238e8[_0x18c58e];return _0x28554f;}(function(_0x58c7fd,_0xa6064e){const _0x3d2964=a200_0x2855,_0x395001=_0x58c7fd();while(!![]){try{const _0x2715f2=parseInt(_0x3d2964(0x106))/0x1*(parseInt(_0x3d2964(0x104))/0x2)+-parseInt(_0x3d2964(0x109))/0x3+-parseInt(_0x3d2964(0x107))/0x4+parseInt(_0x3d2964(0x10b))/0x5+-parseInt(_0x3d2964(0x105))/0x6*(parseInt(_0x3d2964(0x10a))/0x7)+-parseInt(_0x3d2964(0x102))/0x8*(-parseInt(_0x3d2964(0x108))/0x9)+-parseInt(_0x3d2964(0x103))/0xa*(-parseInt(_0x3d2964(0x10c))/0xb);if(_0x2715f2===_0xa6064e)break;else _0x395001['push'](_0x395001['shift']());}catch(_0x5538e4){_0x395001['push'](_0x395001['shift']());}}}(a200_0x9238,0x303bd));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x9238(){const _0x3169ce=['553bxhTGl','1066360lvyRsv','11SRisBx','8gfSAFg','316070CDwpjC','270FNNsbt','2838nZjrzB','2133IdRxuE','1506932ZQAGqh','3328767niKNpP','873096IWhNod'];a200_0x9238=function(){return _0x3169ce;};return a200_0x9238();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0xab5715,_0x52ba16){const _0x55c496=a201_0x5e90,_0x3238af=_0xab5715();while(!![]){try{const _0x41cf8d=parseInt(_0x55c496(0x171))/0x1*(parseInt(_0x55c496(0x172))/0x2)+parseInt(_0x55c496(0x179))/0x3+-parseInt(_0x55c496(0x173))/0x4*(parseInt(_0x55c496(0x16f))/0x5)+-parseInt(_0x55c496(0x16e))/0x6+parseInt(_0x55c496(0x17c))/0x7+parseInt(_0x55c496(0x17d))/0x8*(-parseInt(_0x55c496(0x178))/0x9)+parseInt(_0x55c496(0x176))/0xa*(parseInt(_0x55c496(0x170))/0xb);if(_0x41cf8d===_0x52ba16)break;else _0x3238af['push'](_0x3238af['shift']());}catch(_0xdc6c9){_0x3238af['push'](_0x3238af['shift']());}}}(a201_0xa090,0x9b7dd));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x23186b=a201_0x5e90,_0x4af43d=getTemplateBaseUrl(),_0x39f9dc=[_0x4af43d+'/config.json',_0x4af43d+_0x23186b(0x177)];for(const _0x305d6d of _0x39f9dc){try{const _0x482111=await fetch(_0x305d6d,{'headers':{'Accept':'application/json'}});if(!_0x482111['ok'])continue;const _0x18bb99=await _0x482111[_0x23186b(0x175)]();if(!_0x18bb99[_0x23186b(0x17b)]?.[_0x23186b(0x174)]||!_0x18bb99[_0x23186b(0x17e)]?.[_0x23186b(0x17a)]?.[_0x23186b(0x174)])continue;return _0x18bb99;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a201_0xa090(){const _0x6576d6=['sdk','7271784nFAjiY','430iIgsGX','22uhExtj','1uwWFai','1529246oOaDFo','46876PtCcrU','stableVersion','json','8537330hthPzy','/config/index.json','3712572CIIYQK','684285gmARif','node','cli','3983105aljIjz','8ERgqld'];a201_0xa090=function(){return _0x6576d6;};return a201_0xa090();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x4e3b00=Date['now']();if(hasCachedConfig){const _0x3164fd=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e3b00-cacheTime<_0x3164fd)return cachedConfig;}const _0x21c41b=await fetchCdnConfig();return cachedConfig=_0x21c41b,cacheTime=_0x4e3b00,hasCachedConfig=!![],_0x21c41b;}function a201_0x5e90(_0x3fa5fe,_0x10ad04){_0x3fa5fe=_0x3fa5fe-0x16e;const _0xa09041=a201_0xa090();let _0x5e90e7=_0xa09041[_0x3fa5fe];return _0x5e90e7;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x44e119,_0x1e08af){const _0x379dfc=a201_0x27c0,_0x4850e2=_0x44e119();while(!![]){try{const _0x2ad736=parseInt(_0x379dfc(0x1bc))/0x1*(parseInt(_0x379dfc(0x1c1))/0x2)+-parseInt(_0x379dfc(0x1b6))/0x3*(parseInt(_0x379dfc(0x1b5))/0x4)+parseInt(_0x379dfc(0x1be))/0x5*(-parseInt(_0x379dfc(0x1c3))/0x6)+parseInt(_0x379dfc(0x1b9))/0x7+-parseInt(_0x379dfc(0x1c4))/0x8+-parseInt(_0x379dfc(0x1b7))/0x9+-parseInt(_0x379dfc(0x1bb))/0xa;if(_0x2ad736===_0x1e08af)break;else _0x4850e2['push'](_0x4850e2['shift']());}catch(_0x16bc0a){_0x4850e2['push'](_0x4850e2['shift']());}}}(a201_0x3429,0x24306));import{getTemplateBaseUrl}from'../utils/config.js';function a201_0x27c0(_0x4dcf35,_0x23a80d){_0x4dcf35=_0x4dcf35-0x1b5;const _0x3429e2=a201_0x3429();let _0x27c097=_0x3429e2[_0x4dcf35];return _0x27c097;}export async function fetchCdnConfig(){const _0x508bc8=a201_0x27c0,_0x191495=getTemplateBaseUrl(),_0x70d228=[_0x191495+_0x508bc8(0x1bd),_0x191495+_0x508bc8(0x1bf)];for(const _0x5a1edf of _0x70d228){try{const _0x36daf8=await fetch(_0x5a1edf,{'headers':{'Accept':_0x508bc8(0x1ba)}});if(!_0x36daf8['ok'])continue;const _0x5e886b=await _0x36daf8[_0x508bc8(0x1c2)]();if(!_0x5e886b['cli']?.[_0x508bc8(0x1c5)]||!_0x5e886b[_0x508bc8(0x1c0)]?.[_0x508bc8(0x1b8)]?.[_0x508bc8(0x1c5)])continue;return _0x5e886b;}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 _0x1f1a4c=Date['now']();if(hasCachedConfig){const _0x377616=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1f1a4c-cacheTime<_0x377616)return cachedConfig;}const _0x4b76eb=await fetchCdnConfig();return cachedConfig=_0x4b76eb,cacheTime=_0x1f1a4c,hasCachedConfig=!![],_0x4b76eb;}function a201_0x3429(){const _0x3cb762=['application/json','67400ZIWRnJ','4008AiufxL','/config.json','5KoOjZI','/config/index.json','sdk','142gDzoUG','json','346266fOHeCe','740128diFwCd','stableVersion','4FleVCb','598119wUqiNm','512622rCzzwa','node','1938720URMZOz'];a201_0x3429=function(){return _0x3cb762;};return a201_0x3429();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a202_0x418211=a202_0x2c14;(function(_0x3e1c06,_0x28b601){const _0x2cb3bf=a202_0x2c14,_0xcd5cfc=_0x3e1c06();while(!![]){try{const _0x236256=-parseInt(_0x2cb3bf(0x10d))/0x1+parseInt(_0x2cb3bf(0x10b))/0x2+parseInt(_0x2cb3bf(0x105))/0x3+parseInt(_0x2cb3bf(0x10f))/0x4*(parseInt(_0x2cb3bf(0x10c))/0x5)+-parseInt(_0x2cb3bf(0x108))/0x6+parseInt(_0x2cb3bf(0x115))/0x7*(parseInt(_0x2cb3bf(0x101))/0x8)+parseInt(_0x2cb3bf(0x112))/0x9*(-parseInt(_0x2cb3bf(0x114))/0xa);if(_0x236256===_0x28b601)break;else _0xcd5cfc['push'](_0xcd5cfc['shift']());}catch(_0x157581){_0xcd5cfc['push'](_0xcd5cfc['shift']());}}}(a202_0x43c6,0x5f4b0));import a202_0x543968 from'node:fs';import a202_0x40be29 from'node:path';import a202_0x554e9b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a202_0x2c14(_0x32b8ab,_0x314dfe){_0x32b8ab=_0x32b8ab-0xf0;const _0x43c6b1=a202_0x43c6();let _0x2c1473=_0x43c6b1[_0x32b8ab];return _0x2c1473;}const FALLBACK_MIN_SDK_VERSION=a202_0x418211(0xfa);function isNonNumericVersion(_0x5aef7a){const _0x26afdc=a202_0x418211,_0x2af6e5=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2af6e5[_0x26afdc(0xfd)](_0x236227=>_0x236227['test'](_0x5aef7a));}function getInstalledVersion(_0x4156fe,_0x26682e){const _0x37598f=a202_0x418211;try{const _0x3d50d7=a202_0x40be29[_0x37598f(0xf1)](_0x4156fe,'node_modules',_0x26682e,_0x37598f(0x104));if(a202_0x543968[_0x37598f(0xff)](_0x3d50d7)){const _0x8b97e9=JSON[_0x37598f(0xf4)](a202_0x543968[_0x37598f(0x102)](_0x3d50d7,'utf-8'));return _0x8b97e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1fbc42=a202_0x418211;try{const _0x2b1fc9=await getCdnConfig();return _0x2b1fc9?.[_0x1fbc42(0xfc)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x3ac1cd=a202_0x418211;try{const _0x39530a=await getCdnConfig();return _0x39530a?.[_0x3ac1cd(0xfc)]?.['node']?.['packageName']||_0x3ac1cd(0x111);}catch{return _0x3ac1cd(0x111);}}function a202_0x43c6(){const _0x380c46=['some','stableVersion','existsSync','\x20\x20\x20Stable\x20version:\x20','3220296jpgMxa','readFileSync','needsUpgrade','package.json','1241766fJPjoD','\x1b[1m','\x1b[0m','1282920ooUZPD','npm\x20install\x20','version','1089474VRpqOm','1645gjBwCu','262687AxNiSS','dependencies','2092dLnEUg','latest','@lovrabet/sdk','2998962xuFNtT','devDependencies','20UNEalk','7diWvAx','minVersion','join','\x20\x20\x20Upgrade\x20command:\x20','all','parse','coerce','log','utf8','\x20\x20\x20Current\x20version:\x20','packageName','1.2.0','\x1b[33m','sdk'];a202_0x43c6=function(){return _0x380c46;};return a202_0x43c6();}export async function checkSdkVersion(_0x4516d2){const _0x158dd1=a202_0x418211,_0x429152=a202_0x40be29[_0x158dd1(0xf1)](_0x4516d2,_0x158dd1(0x104)),[_0x4c5f23,_0x930a59]=await Promise[_0x158dd1(0xf3)]([getSdkStableVersion(),getSdkPackageName()]),_0x8c95bf=_0x4c5f23||FALLBACK_MIN_SDK_VERSION;if(!a202_0x543968[_0x158dd1(0xff)](_0x429152))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};try{const _0x59938d=JSON[_0x158dd1(0xf4)](a202_0x543968[_0x158dd1(0x102)](_0x429152,_0x158dd1(0xf7))),_0x491b2c=_0x59938d['dependencies']||{},_0x26b67f=_0x59938d[_0x158dd1(0x113)]||{},_0x2cdf80=_0x491b2c[_0x930a59]||_0x26b67f[_0x930a59];if(!_0x2cdf80)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};let _0x3955a8=getInstalledVersion(_0x4516d2,_0x930a59);!_0x3955a8&&(_0x3955a8=_0x2cdf80);if(isNonNumericVersion(_0x2cdf80))return{'installed':!![],'version':_0x3955a8,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};const _0x1be553=a202_0x554e9b['coerce'](_0x3955a8),_0x323b01=a202_0x554e9b['coerce'](_0x8c95bf),_0x525c32=_0x1be553&&_0x323b01?a202_0x554e9b['lt'](_0x1be553,_0x323b01):![];return{'installed':!![],'version':_0x3955a8,'needsUpgrade':_0x525c32,'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}}export function checkSdkVersionSync(_0x393a6c){const _0x51536c=a202_0x418211,_0xd87a04=a202_0x40be29['join'](_0x393a6c,_0x51536c(0x104)),_0x102a95=_0x51536c(0x111);if(!a202_0x543968[_0x51536c(0xff)](_0xd87a04))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};try{const _0xb711a0=JSON[_0x51536c(0xf4)](a202_0x543968['readFileSync'](_0xd87a04,_0x51536c(0xf7))),_0x50582c=_0xb711a0[_0x51536c(0x10e)]||{},_0x5e85c3=_0xb711a0[_0x51536c(0x113)]||{},_0x3cd623=_0x50582c[_0x102a95]||_0x5e85c3[_0x102a95];if(!_0x3cd623)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};let _0x40ea75=getInstalledVersion(_0x393a6c,_0x102a95);!_0x40ea75&&(_0x40ea75=_0x3cd623);if(isNonNumericVersion(_0x3cd623))return{'installed':!![],'version':_0x40ea75,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};const _0x1a65fc=a202_0x554e9b[_0x51536c(0xf5)](_0x40ea75),_0x30e489=_0x1a65fc?a202_0x554e9b['lt'](_0x1a65fc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x40ea75,'needsUpgrade':_0x30e489,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2fa19c){const _0x511989=a202_0x418211;if(!_0x2fa19c[_0x511989(0x103)])return;const _0xe9ee22=_0x511989(0xfb),_0xac59b2=_0x511989(0x107),_0x272551=_0x511989(0x106),_0x594225=_0x2fa19c[_0x511989(0xf9)]||_0x511989(0x111),_0x447358=_0x2fa19c[_0x511989(0xfe)]||_0x2fa19c[_0x511989(0xf0)],_0x4eea62=_0x511989(0x109)+_0x594225+'@'+(_0x447358||_0x511989(0x110));console[_0x511989(0xf6)](),console['log'](''+_0xe9ee22+_0x272551+'↪\x20SDK\x20update\x20available'+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf8)+_0x594225+'@'+_0x2fa19c[_0x511989(0x10a)]+_0xac59b2),console['log'](_0xe9ee22+_0x511989(0x100)+_0x447358+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf2)+_0x4eea62+_0xac59b2),console['log']();}
1
+ const a202_0x4e7194=a202_0x1169;(function(_0x49ecd9,_0x4d9b1a){const _0x4a2d57=a202_0x1169,_0x3f21a7=_0x49ecd9();while(!![]){try{const _0x2817ff=parseInt(_0x4a2d57(0x197))/0x1*(-parseInt(_0x4a2d57(0x198))/0x2)+-parseInt(_0x4a2d57(0x187))/0x3*(parseInt(_0x4a2d57(0x186))/0x4)+-parseInt(_0x4a2d57(0x191))/0x5+parseInt(_0x4a2d57(0x195))/0x6*(parseInt(_0x4a2d57(0x192))/0x7)+-parseInt(_0x4a2d57(0x1a2))/0x8*(parseInt(_0x4a2d57(0x189))/0x9)+-parseInt(_0x4a2d57(0x18d))/0xa+parseInt(_0x4a2d57(0x196))/0xb;if(_0x2817ff===_0x4d9b1a)break;else _0x3f21a7['push'](_0x3f21a7['shift']());}catch(_0xf1e42f){_0x3f21a7['push'](_0x3f21a7['shift']());}}}(a202_0x26cb,0x87ad8));import a202_0x195f49 from'node:fs';import a202_0x21d7ff from'node:path';import a202_0x31787b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a202_0x4e7194(0x19d);function isNonNumericVersion(_0x2e1f92){const _0x58f415=a202_0x4e7194,_0x3fc848=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3fc848['some'](_0x18e12a=>_0x18e12a[_0x58f415(0x1a1)](_0x2e1f92));}function getInstalledVersion(_0x386b13,_0x38301d){const _0x2ccccf=a202_0x4e7194;try{const _0x5e81ff=a202_0x21d7ff[_0x2ccccf(0x19b)](_0x386b13,_0x2ccccf(0x18b),_0x38301d,_0x2ccccf(0x1a0));if(a202_0x195f49[_0x2ccccf(0x19f)](_0x5e81ff)){const _0x183347=JSON['parse'](a202_0x195f49[_0x2ccccf(0x19e)](_0x5e81ff,_0x2ccccf(0x18f)));return _0x183347[_0x2ccccf(0x1a4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2f7998=a202_0x4e7194;try{const _0x7244af=await getCdnConfig();return _0x7244af?.['sdk']?.['node']?.[_0x2f7998(0x188)]||null;}catch{return null;}}function a202_0x26cb(){const _0x5a1f32=['test','3280wTeZRV','latest','version','packageName','\x1b[0m','coerce','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','9288ajoHla','45UkStLd','stableVersion','20232oPXOro','dependencies','node_modules','\x1b[33m','7863450CcERRe','\x20\x20\x20Current\x20version:\x20','utf-8','log','2094945pjXdpX','11473YXzxDK','\x20\x20\x20Stable\x20version:\x20','parse','2922tFCddQ','23970848KbcOua','259781DpigzS','2wxLxjQ','utf8','@lovrabet/sdk','join','node','1.2.0','readFileSync','existsSync','package.json'];a202_0x26cb=function(){return _0x5a1f32;};return a202_0x26cb();}async function getSdkPackageName(){const _0x3b445d=a202_0x4e7194;try{const _0x5d4e0a=await getCdnConfig();return _0x5d4e0a?.['sdk']?.[_0x3b445d(0x19c)]?.[_0x3b445d(0x1a5)]||'@lovrabet/sdk';}catch{return _0x3b445d(0x19a);}}function a202_0x1169(_0x58e2f1,_0x426e5a){_0x58e2f1=_0x58e2f1-0x183;const _0x26cb2f=a202_0x26cb();let _0x11694f=_0x26cb2f[_0x58e2f1];return _0x11694f;}export async function checkSdkVersion(_0x24ffe6){const _0x8df480=a202_0x4e7194,_0x1ee28b=a202_0x21d7ff['join'](_0x24ffe6,_0x8df480(0x1a0)),[_0x1c06a7,_0x1d4bf1]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x5c0f51=_0x1c06a7||FALLBACK_MIN_SDK_VERSION;if(!a202_0x195f49['existsSync'](_0x1ee28b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c0f51,'packageName':_0x1d4bf1,'stableVersion':_0x1c06a7};try{const _0x24f9b6=JSON[_0x8df480(0x194)](a202_0x195f49[_0x8df480(0x19e)](_0x1ee28b,'utf8')),_0x2e3eae=_0x24f9b6[_0x8df480(0x18a)]||{},_0x234dde=_0x24f9b6['devDependencies']||{},_0x4b94f8=_0x2e3eae[_0x1d4bf1]||_0x234dde[_0x1d4bf1];if(!_0x4b94f8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c0f51,'packageName':_0x1d4bf1,'stableVersion':_0x1c06a7};let _0x4af835=getInstalledVersion(_0x24ffe6,_0x1d4bf1);!_0x4af835&&(_0x4af835=_0x4b94f8);if(isNonNumericVersion(_0x4b94f8))return{'installed':!![],'version':_0x4af835,'needsUpgrade':![],'minVersion':_0x5c0f51,'packageName':_0x1d4bf1,'stableVersion':_0x1c06a7};const _0x416153=a202_0x31787b[_0x8df480(0x1a7)](_0x4af835),_0x57e9f0=a202_0x31787b[_0x8df480(0x1a7)](_0x5c0f51),_0x4a8a75=_0x416153&&_0x57e9f0?a202_0x31787b['lt'](_0x416153,_0x57e9f0):![];return{'installed':!![],'version':_0x4af835,'needsUpgrade':_0x4a8a75,'minVersion':_0x5c0f51,'packageName':_0x1d4bf1,'stableVersion':_0x1c06a7};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c0f51,'packageName':_0x1d4bf1,'stableVersion':_0x1c06a7};}}export function checkSdkVersionSync(_0x4b4c69){const _0x3f6005=a202_0x4e7194,_0x3539a5=a202_0x21d7ff[_0x3f6005(0x19b)](_0x4b4c69,_0x3f6005(0x1a0)),_0x341577=_0x3f6005(0x19a);if(!a202_0x195f49['existsSync'](_0x3539a5))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x341577,'stableVersion':null};try{const _0x5656e1=JSON['parse'](a202_0x195f49[_0x3f6005(0x19e)](_0x3539a5,_0x3f6005(0x199))),_0x114009=_0x5656e1['dependencies']||{},_0x316440=_0x5656e1['devDependencies']||{},_0x38ed4f=_0x114009[_0x341577]||_0x316440[_0x341577];if(!_0x38ed4f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x341577,'stableVersion':null};let _0x1e7349=getInstalledVersion(_0x4b4c69,_0x341577);!_0x1e7349&&(_0x1e7349=_0x38ed4f);if(isNonNumericVersion(_0x38ed4f))return{'installed':!![],'version':_0x1e7349,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x341577,'stableVersion':null};const _0x3e0011=a202_0x31787b[_0x3f6005(0x1a7)](_0x1e7349),_0x528171=_0x3e0011?a202_0x31787b['lt'](_0x3e0011,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1e7349,'needsUpgrade':_0x528171,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x341577,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x341577,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x187210){const _0x2189c6=a202_0x4e7194;if(!_0x187210[_0x2189c6(0x183)])return;const _0x251650=_0x2189c6(0x18c),_0x38a6cf=_0x2189c6(0x1a6),_0x24581e='\x1b[1m',_0x6c3a12=_0x187210[_0x2189c6(0x1a5)]||_0x2189c6(0x19a),_0x38a636=_0x187210[_0x2189c6(0x188)]||_0x187210['minVersion'],_0x1fdb3a=_0x2189c6(0x185)+_0x6c3a12+'@'+(_0x38a636||_0x2189c6(0x1a3));console[_0x2189c6(0x190)](),console[_0x2189c6(0x190)](''+_0x251650+_0x24581e+'↪\x20SDK\x20update\x20available'+_0x38a6cf),console[_0x2189c6(0x190)](_0x251650+_0x2189c6(0x18e)+_0x6c3a12+'@'+_0x187210['version']+_0x38a6cf),console['log'](_0x251650+_0x2189c6(0x193)+_0x38a636+_0x38a6cf),console[_0x2189c6(0x190)](_0x251650+_0x2189c6(0x184)+_0x1fdb3a+_0x38a6cf),console['log']();}
@@ -1 +1 @@
1
- (function(_0x3cb6ab,_0x14f51d){const _0x29cdf5=a203_0x42d4,_0x53314d=_0x3cb6ab();while(!![]){try{const _0x469fc4=parseInt(_0x29cdf5(0x10e))/0x1*(parseInt(_0x29cdf5(0x113))/0x2)+parseInt(_0x29cdf5(0xfc))/0x3+-parseInt(_0x29cdf5(0x114))/0x4+parseInt(_0x29cdf5(0xf9))/0x5*(-parseInt(_0x29cdf5(0x112))/0x6)+-parseInt(_0x29cdf5(0xff))/0x7*(parseInt(_0x29cdf5(0x108))/0x8)+-parseInt(_0x29cdf5(0x10a))/0x9+parseInt(_0x29cdf5(0xfa))/0xa*(parseInt(_0x29cdf5(0x107))/0xb);if(_0x469fc4===_0x14f51d)break;else _0x53314d['push'](_0x53314d['shift']());}catch(_0x16d748){_0x53314d['push'](_0x53314d['shift']());}}}(a203_0x1771,0xe96ae));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x258a2d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a203_0x42d4(_0x127968,_0x3577b7){_0x127968=_0x127968-0xf9;const _0x17713f=a203_0x1771();let _0x42d489=_0x17713f[_0x127968];return _0x42d489;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a203_0x1771(){const _0x3d6b67=['1.0.0','28QmmiGg','version','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Minimum\x20supported:\x20','stableVersion','Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','869kuoWyU','2854648pAjprm','join','2813400xKQoyo','\x20\x20\x20Recommended\x20stable:\x20','validation','coerce','5JFzwrd','\x1b[1m','minimumVersion','minimumVersionMessage','3420BWEPPf','195298UWokSV','3392708zvEFpP','../..','npm\x20install\x20-g\x20','\x20\x20\x20Upgrade\x20command:\x20','utf-8','parse','upgradeMessage','Minimum\x20supported:\x20','\x1b[31m','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','\x20\x20\x20','currentVersion','log','8115QyDYsU','408880ugpvEP','\x1b[0m','2252676jUcNMj','Upgrade\x20command:\x20'];a203_0x1771=function(){return _0x3d6b67;};return a203_0x1771();}export function getCliUpgradeCommand(_0x361810){const _0x24bf38=a203_0x42d4,_0x40c8cf=_0x361810[_0x24bf38(0x104)]||_0x24bf38(0x11d);return _0x24bf38(0x116)+NPM_PACKAGE_NAME+'@'+_0x40c8cf;}function getCurrentCliVersion(){const _0x444556=a203_0x42d4;try{const _0x3bf50a=fileURLToPath(import.meta.url),_0x480277=resolve(dirname(_0x3bf50a),_0x444556(0x115)),_0x481596=resolve(_0x480277,'package.json'),_0xfbd487=JSON[_0x444556(0x119)](readFileSync(_0x481596,_0x444556(0x118)));return _0xfbd487[_0x444556(0x100)]||'1.0.0';}catch{return _0x444556(0xfe);}}export async function checkCliVersion(){const _0x5b81f1=a203_0x42d4,_0x2f124d=getCurrentCliVersion(),_0x30588b=await getCliVersionPolicy(),_0x4f2041=_0x30588b?.[_0x5b81f1(0x104)]||null,_0x37b0b3=_0x30588b?.['minimumVersion']||null;let _0x5dc031=![],_0x325e3a=![];const _0x5bbcc6=a203_0x258a2d[_0x5b81f1(0x10d)](_0x2f124d);if(_0x5bbcc6&&_0x4f2041)try{const _0x2fb1d6=a203_0x258a2d['coerce'](_0x4f2041);if(_0x2fb1d6)_0x5dc031=a203_0x258a2d['lt'](_0x5bbcc6,_0x2fb1d6);}catch{}if(_0x5bbcc6&&_0x37b0b3)try{const _0x3d3829=a203_0x258a2d['coerce'](_0x37b0b3);if(_0x3d3829)_0x325e3a=a203_0x258a2d['lt'](_0x5bbcc6,_0x3d3829);}catch{}return _0x325e3a&&(_0x5dc031=!![]),{'currentVersion':_0x2f124d,'stableVersion':_0x4f2041,'minimumVersion':_0x37b0b3,'needsUpgrade':_0x5dc031,'belowMinimum':_0x325e3a,'isPreRelease':![],'upgradeMessage':_0x30588b?.[_0x5b81f1(0x11a)],'minimumVersionMessage':_0x30588b?.[_0x5b81f1(0x111)]};}export function printCliUpgradeWarning(_0x2e8404){const _0x1d6e6e=a203_0x42d4;if(!_0x2e8404['needsUpgrade']&&!_0x2e8404[_0x1d6e6e(0x11f)])return;const _0x1fe66a=_0x1d6e6e(0x11c),_0x13bce8=_0x1d6e6e(0x101),_0x46dfe2=_0x1d6e6e(0xfb),_0x14cd1d=_0x1d6e6e(0x10f),_0x539a01=getCliUpgradeCommand(_0x2e8404);console[_0x1d6e6e(0x122)](),_0x2e8404[_0x1d6e6e(0x11f)]?(console[_0x1d6e6e(0x122)](''+_0x1fe66a+_0x14cd1d+_0x1d6e6e(0x102)+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x11e)+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x103)+_0x2e8404[_0x1d6e6e(0x110)]+_0x46dfe2),_0x2e8404['stableVersion']&&_0x2e8404[_0x1d6e6e(0x104)]!==_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x10b)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x111)]&&console['log'](_0x1fe66a+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x111)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)):(console[_0x1d6e6e(0x122)](''+_0x13bce8+_0x14cd1d+'↪\x20New\x20version\x20available'+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x106)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x11a)]&&console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x11a)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)),console[_0x1d6e6e(0x122)]();}export function assertCliVersionSupported(_0x547a43){const _0x1db844=a203_0x42d4;if(!_0x547a43[_0x1db844(0x11f)])return;const _0x47aac3=[_0x547a43['minimumVersionMessage'],_0x1db844(0x105)+_0x547a43[_0x1db844(0x121)],_0x547a43['minimumVersion']?_0x1db844(0x11b)+_0x547a43['minimumVersion']:null,_0x1db844(0xfd)+getCliUpgradeCommand(_0x547a43)]['filter'](Boolean)[_0x1db844(0x109)]('\x0a');throw CliErrors[_0x1db844(0x10c)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x47aac3);}
1
+ (function(_0x2f2b55,_0x19518d){const _0x33e59b=a203_0x2005,_0x388ef9=_0x2f2b55();while(!![]){try{const _0x1e8b01=-parseInt(_0x33e59b(0x1b5))/0x1+parseInt(_0x33e59b(0x1a7))/0x2+parseInt(_0x33e59b(0x1ab))/0x3*(parseInt(_0x33e59b(0x1ad))/0x4)+-parseInt(_0x33e59b(0x1bf))/0x5*(parseInt(_0x33e59b(0x1a1))/0x6)+-parseInt(_0x33e59b(0x19f))/0x7+parseInt(_0x33e59b(0x1b7))/0x8*(parseInt(_0x33e59b(0x1bb))/0x9)+parseInt(_0x33e59b(0x1a0))/0xa;if(_0x1e8b01===_0x19518d)break;else _0x388ef9['push'](_0x388ef9['shift']());}catch(_0x7549d1){_0x388ef9['push'](_0x388ef9['shift']());}}}(a203_0x50be,0xaef5d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x3b46c1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a203_0x50be(){const _0x1bc283=['minimumVersion','\x20\x20\x20Recommended\x20stable:\x20','Current\x20version:\x20','508257jqujDm','currentVersion','2286896qRsUrO','coerce','\x1b[1m','1.0.0','9QCuDmE','belowMinimum','log','stableVersion','11665GsKrXp','\x20\x20\x20','filter','9651474VJaduz','21105450EXxDus','3384sHkqil','parse','utf-8','upgradeMessage','validation','join','1216262oFFumc','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersionMessage','\x1b[31m','1893gggNnX','\x20\x20\x20Upgrade\x20command:\x20','5800pXveKL','\x20\x20\x20Stable\x20version:\x20','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[33m'];a203_0x50be=function(){return _0x1bc283;};return a203_0x50be();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x3a61a7){const _0x13acba=a203_0x2005,_0x350de9=_0x3a61a7[_0x13acba(0x1be)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x350de9;}function getCurrentCliVersion(){const _0x222d8e=a203_0x2005;try{const _0x4dfc3e=fileURLToPath(import.meta.url),_0x54d7f1=resolve(dirname(_0x4dfc3e),'../..'),_0x12664e=resolve(_0x54d7f1,'package.json'),_0x49e50f=JSON[_0x222d8e(0x1a2)](readFileSync(_0x12664e,_0x222d8e(0x1a3)));return _0x49e50f['version']||_0x222d8e(0x1ba);}catch{return _0x222d8e(0x1ba);}}export async function checkCliVersion(){const _0x24b272=a203_0x2005,_0x4a1850=getCurrentCliVersion(),_0x5235bf=await getCliVersionPolicy(),_0x58638c=_0x5235bf?.['stableVersion']||null,_0x158455=_0x5235bf?.[_0x24b272(0x1b2)]||null;let _0x4c1e25=![],_0x3a5bd9=![];const _0x1e83a4=a203_0x3b46c1[_0x24b272(0x1b8)](_0x4a1850);if(_0x1e83a4&&_0x58638c)try{const _0x3c5138=a203_0x3b46c1[_0x24b272(0x1b8)](_0x58638c);if(_0x3c5138)_0x4c1e25=a203_0x3b46c1['lt'](_0x1e83a4,_0x3c5138);}catch{}if(_0x1e83a4&&_0x158455)try{const _0x39bb0a=a203_0x3b46c1['coerce'](_0x158455);if(_0x39bb0a)_0x3a5bd9=a203_0x3b46c1['lt'](_0x1e83a4,_0x39bb0a);}catch{}return _0x3a5bd9&&(_0x4c1e25=!![]),{'currentVersion':_0x4a1850,'stableVersion':_0x58638c,'minimumVersion':_0x158455,'needsUpgrade':_0x4c1e25,'belowMinimum':_0x3a5bd9,'isPreRelease':![],'upgradeMessage':_0x5235bf?.[_0x24b272(0x1a4)],'minimumVersionMessage':_0x5235bf?.[_0x24b272(0x1a9)]};}function a203_0x2005(_0x2be283,_0x385d32){_0x2be283=_0x2be283-0x19e;const _0x50be46=a203_0x50be();let _0x2005ec=_0x50be46[_0x2be283];return _0x2005ec;}export function printCliUpgradeWarning(_0x3602d8){const _0x3e9ef2=a203_0x2005;if(!_0x3602d8['needsUpgrade']&&!_0x3602d8[_0x3e9ef2(0x1bc)])return;const _0xc66cea=_0x3e9ef2(0x1aa),_0x3a34eb=_0x3e9ef2(0x1b1),_0x68fb4b='\x1b[0m',_0x2a90cb=_0x3e9ef2(0x1b9),_0x1ec9ed=getCliUpgradeCommand(_0x3602d8);console['log'](),_0x3602d8[_0x3e9ef2(0x1bc)]?(console[_0x3e9ef2(0x1bd)](''+_0xc66cea+_0x2a90cb+_0x3e9ef2(0x1a8)+_0x68fb4b),console['log'](_0xc66cea+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3602d8[_0x3e9ef2(0x1b6)]+_0x68fb4b),_0x3602d8[_0x3e9ef2(0x1b2)]&&console[_0x3e9ef2(0x1bd)](_0xc66cea+'\x20\x20\x20Minimum\x20supported:\x20'+_0x3602d8[_0x3e9ef2(0x1b2)]+_0x68fb4b),_0x3602d8[_0x3e9ef2(0x1be)]&&_0x3602d8[_0x3e9ef2(0x1be)]!==_0x3602d8[_0x3e9ef2(0x1b2)]&&console[_0x3e9ef2(0x1bd)](_0xc66cea+_0x3e9ef2(0x1b3)+_0x3602d8[_0x3e9ef2(0x1be)]+_0x68fb4b),_0x3602d8[_0x3e9ef2(0x1a9)]&&console[_0x3e9ef2(0x1bd)](_0xc66cea+_0x3e9ef2(0x1c0)+_0x3602d8[_0x3e9ef2(0x1a9)]+_0x68fb4b),console['log'](_0xc66cea+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1ec9ed+_0x68fb4b)):(console[_0x3e9ef2(0x1bd)](''+_0x3a34eb+_0x2a90cb+'↪\x20New\x20version\x20available'+_0x68fb4b),console['log'](_0x3a34eb+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3602d8[_0x3e9ef2(0x1b6)]+_0x68fb4b),console[_0x3e9ef2(0x1bd)](_0x3a34eb+_0x3e9ef2(0x1ae)+_0x3602d8[_0x3e9ef2(0x1be)]+_0x68fb4b),_0x3602d8['upgradeMessage']&&console[_0x3e9ef2(0x1bd)](_0x3a34eb+_0x3e9ef2(0x1c0)+_0x3602d8[_0x3e9ef2(0x1a4)]+_0x68fb4b),console[_0x3e9ef2(0x1bd)](_0x3a34eb+_0x3e9ef2(0x1ac)+_0x1ec9ed+_0x68fb4b)),console['log']();}export function assertCliVersionSupported(_0x349d26){const _0x166226=a203_0x2005;if(!_0x349d26[_0x166226(0x1bc)])return;const _0x282c77=[_0x349d26[_0x166226(0x1a9)],_0x166226(0x1b4)+_0x349d26[_0x166226(0x1b6)],_0x349d26[_0x166226(0x1b2)]?'Minimum\x20supported:\x20'+_0x349d26[_0x166226(0x1b2)]:null,_0x166226(0x1af)+getCliUpgradeCommand(_0x349d26)][_0x166226(0x19e)](Boolean)[_0x166226(0x1a6)]('\x0a');throw CliErrors[_0x166226(0x1a5)](_0x166226(0x1b0),_0x282c77);}
@@ -1 +1 @@
1
- (function(_0x15b233,_0x3cad88){const _0x1d012e=a204_0xce31,_0xc0bc46=_0x15b233();while(!![]){try{const _0x1ed1f7=-parseInt(_0x1d012e(0xee))/0x1+-parseInt(_0x1d012e(0xde))/0x2+parseInt(_0x1d012e(0xf2))/0x3*(parseInt(_0x1d012e(0xec))/0x4)+parseInt(_0x1d012e(0xef))/0x5*(parseInt(_0x1d012e(0xe3))/0x6)+parseInt(_0x1d012e(0xe6))/0x7+-parseInt(_0x1d012e(0xe1))/0x8+parseInt(_0x1d012e(0xe7))/0x9*(parseInt(_0x1d012e(0xe9))/0xa);if(_0x1ed1f7===_0x3cad88)break;else _0xc0bc46['push'](_0xc0bc46['shift']());}catch(_0x471965){_0xc0bc46['push'](_0xc0bc46['shift']());}}}(a204_0x5caf,0xba946));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3ab0aa){const _0x4c18d0=a204_0xce31;return typeof _0x3ab0aa===_0x4c18d0(0xf3)&&_0x3ab0aa[_0x4c18d0(0xf4)]()['length']>0x0?_0x3ab0aa[_0x4c18d0(0xf4)]():null;}function normalizeCliVersionPolicy(_0x35276e){const _0x444cdf=a204_0xce31;if(!_0x35276e||typeof _0x35276e!==_0x444cdf(0xdf))return null;const _0x142e0a=_0x35276e,_0x4a48c7=_0x142e0a[_0x444cdf(0xe8)]&&typeof _0x142e0a[_0x444cdf(0xe8)]===_0x444cdf(0xdf)?_0x142e0a[_0x444cdf(0xe8)]:_0x142e0a,_0x5df5af=pickString(_0x4a48c7[_0x444cdf(0xe4)])||pickString(_0x4a48c7[_0x444cdf(0xe0)])||pickString(_0x4a48c7[_0x444cdf(0xe2)]),_0x3cf975=pickString(_0x4a48c7[_0x444cdf(0xeb)])||pickString(_0x4a48c7[_0x444cdf(0xf1)]);if(!_0x5df5af&&!_0x3cf975)return null;return{'stableVersion':_0x5df5af,'minimumVersion':_0x3cf975,'upgradeMessage':pickString(_0x4a48c7['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a48c7['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x4377b8=a204_0xce31,_0x4ab5be=new AbortController(),_0x22a798=setTimeout(()=>_0x4ab5be['abort'](),FETCH_TIMEOUT_MS);try{const _0x331f5a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4377b8(0xed)},'signal':_0x4ab5be[_0x4377b8(0xea)]});if(!_0x331f5a['ok'])return null;const _0x43fbd2=await _0x331f5a[_0x4377b8(0xe5)]();return normalizeCliVersionPolicy(_0x43fbd2);}catch{return null;}finally{clearTimeout(_0x22a798);}}function a204_0x5caf(){const _0x5064b5=['object','latestVersion','11386832tEbFnE','recommendedVersion','2124hwbFXO','stableVersion','json','3373951mNPrvk','1437579NiZlPG','cli','150DWIZDV','signal','minimumVersion','4cOLeay','application/json','626749lJMoAe','485MaVgBs','now','minVersion','3481962cpCepX','string','trim','2517234oQwGal'];a204_0x5caf=function(){return _0x5064b5;};return a204_0x5caf();}function a204_0xce31(_0x173dfc,_0x2b5c94){_0x173dfc=_0x173dfc-0xde;const _0x5caf26=a204_0x5caf();let _0xce31ab=_0x5caf26[_0x173dfc];return _0xce31ab;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4cd044=a204_0xce31,_0x14a47c=Date[_0x4cd044(0xf0)]();if(hasCachedPolicy){const _0x31b716=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14a47c-cacheTime<_0x31b716)return cachedPolicy;}const _0x5e5838=await fetchCliVersionPolicy();return cachedPolicy=_0x5e5838,cacheTime=_0x14a47c,hasCachedPolicy=!![],_0x5e5838;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a204_0x1773(_0x2a5c18,_0x442418){_0x2a5c18=_0x2a5c18-0x1ef;const _0x5530a9=a204_0x5530();let _0x17738e=_0x5530a9[_0x2a5c18];return _0x17738e;}(function(_0x39b8e4,_0x246591){const _0x4a7a32=a204_0x1773,_0x17271c=_0x39b8e4();while(!![]){try{const _0x34b0f1=parseInt(_0x4a7a32(0x1f9))/0x1*(-parseInt(_0x4a7a32(0x1f3))/0x2)+parseInt(_0x4a7a32(0x1fc))/0x3+parseInt(_0x4a7a32(0x1f5))/0x4+parseInt(_0x4a7a32(0x200))/0x5+-parseInt(_0x4a7a32(0x1f8))/0x6+parseInt(_0x4a7a32(0x205))/0x7*(parseInt(_0x4a7a32(0x1fb))/0x8)+-parseInt(_0x4a7a32(0x1ef))/0x9;if(_0x34b0f1===_0x246591)break;else _0x17271c['push'](_0x17271c['shift']());}catch(_0xc36499){_0x17271c['push'](_0x17271c['shift']());}}}(a204_0x5530,0x4619d));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x359c62){const _0x2696de=a204_0x1773;return typeof _0x359c62===_0x2696de(0x1f0)&&_0x359c62[_0x2696de(0x1fa)]()[_0x2696de(0x1f7)]>0x0?_0x359c62['trim']():null;}function normalizeCliVersionPolicy(_0x9d0caf){const _0x545794=a204_0x1773;if(!_0x9d0caf||typeof _0x9d0caf!==_0x545794(0x203))return null;const _0xa5f89b=_0x9d0caf,_0xf8ffbd=_0xa5f89b[_0x545794(0x1f4)]&&typeof _0xa5f89b[_0x545794(0x1f4)]===_0x545794(0x203)?_0xa5f89b[_0x545794(0x1f4)]:_0xa5f89b,_0x4fc0ee=pickString(_0xf8ffbd[_0x545794(0x1f1)])||pickString(_0xf8ffbd[_0x545794(0x1f2)])||pickString(_0xf8ffbd[_0x545794(0x1fe)]),_0x22a581=pickString(_0xf8ffbd['minimumVersion'])||pickString(_0xf8ffbd[_0x545794(0x1f6)]);if(!_0x4fc0ee&&!_0x22a581)return null;return{'stableVersion':_0x4fc0ee,'minimumVersion':_0x22a581,'upgradeMessage':pickString(_0xf8ffbd['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0xf8ffbd[_0x545794(0x202)])||undefined};}export async function fetchCliVersionPolicy(){const _0x412d8b=a204_0x1773,_0x2c3ffb=new AbortController(),_0x1f8917=setTimeout(()=>_0x2c3ffb[_0x412d8b(0x204)](),FETCH_TIMEOUT_MS);try{const _0x11ce96=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x2c3ffb[_0x412d8b(0x201)]});if(!_0x11ce96['ok'])return null;const _0x507140=await _0x11ce96[_0x412d8b(0x1fd)]();return normalizeCliVersionPolicy(_0x507140);}catch{return null;}finally{clearTimeout(_0x1f8917);}}function a204_0x5530(){const _0x15b446=['123080cNpZCn','1280562RBkqFO','json','recommendedVersion','now','1765540UzesET','signal','minimumVersionMessage','object','abort','77uzhgob','7597233WLsCLx','string','stableVersion','latestVersion','2SJAtTd','cli','1955676eRjOcc','minVersion','length','665610ekRlKY','195911oMncPQ','trim'];a204_0x5530=function(){return _0x15b446;};return a204_0x5530();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x532039=a204_0x1773,_0x2a8220=Date[_0x532039(0x1ff)]();if(hasCachedPolicy){const _0x449110=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2a8220-cacheTime<_0x449110)return cachedPolicy;}const _0x46c27d=await fetchCliVersionPolicy();return cachedPolicy=_0x46c27d,cacheTime=_0x2a8220,hasCachedPolicy=!![],_0x46c27d;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a205_0x4537(){const _0x4c0815=['114877AxeTNp','225IaMDXP','string','env','499846JavjjI','6332070PdIPcG','2805nraaHM','project','1014146iQUIUX','2384jXwfCu','36blwEwH','12jHGuJt','16456anYPGo','8016oHQzAh','199448BhuaBT'];a205_0x4537=function(){return _0x4c0815;};return a205_0x4537();}const a205_0x21bfd3=a205_0x38bb;(function(_0x21096d,_0x3278a1){const _0x1a8dd6=a205_0x38bb,_0x4bdccc=_0x21096d();while(!![]){try{const _0x2628d2=parseInt(_0x1a8dd6(0x133))/0x1+-parseInt(_0x1a8dd6(0x13e))/0x2*(parseInt(_0x1a8dd6(0x136))/0x3)+-parseInt(_0x1a8dd6(0x134))/0x4*(parseInt(_0x1a8dd6(0x131))/0x5)+-parseInt(_0x1a8dd6(0x135))/0x6*(-parseInt(_0x1a8dd6(0x13a))/0x7)+parseInt(_0x1a8dd6(0x139))/0x8*(-parseInt(_0x1a8dd6(0x13b))/0x9)+parseInt(_0x1a8dd6(0x130))/0xa+-parseInt(_0x1a8dd6(0x137))/0xb*(-parseInt(_0x1a8dd6(0x138))/0xc);if(_0x2628d2===_0x3278a1)break;else _0x4bdccc['push'](_0x4bdccc['shift']());}catch(_0x4f3296){_0x4bdccc['push'](_0x4bdccc['shift']());}}}(a205_0x4537,0xc0570));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0x17cb08,getMultiAppConfigs as a205_0x4d1896,getTemplateBaseUrl as a205_0x1a825b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4f14d1){const _0x539994=a205_0x38bb,_0x1df92b=readRawConfig(_0x4f14d1);return _0x1df92b[_0x539994(0x13d)]&&typeof _0x1df92b[_0x539994(0x13d)]===_0x539994(0x13c)&&initEnv(_0x1df92b[_0x539994(0x13d)]),_0x1df92b;}export function getConfigAppCode(){return a205_0x17cb08();}function a205_0x38bb(_0x273f2c,_0x5076a4){_0x273f2c=_0x273f2c-0x130;const _0x453741=a205_0x4537();let _0x38bb18=_0x453741[_0x273f2c];return _0x38bb18;}export function getMultiAppConfigs(_0x5e9386=a205_0x21bfd3(0x132)){return a205_0x4d1896(_0x5e9386);}export function getTemplateBaseUrl(){return a205_0x1a825b();}
1
+ const a205_0x5999e8=a205_0x253c;(function(_0x24419b,_0x5cad3c){const _0xd8cfe4=a205_0x253c,_0xb7d517=_0x24419b();while(!![]){try{const _0x32016e=parseInt(_0xd8cfe4(0xda))/0x1*(-parseInt(_0xd8cfe4(0xd4))/0x2)+-parseInt(_0xd8cfe4(0xdb))/0x3+parseInt(_0xd8cfe4(0xd8))/0x4*(-parseInt(_0xd8cfe4(0xde))/0x5)+parseInt(_0xd8cfe4(0xdc))/0x6*(-parseInt(_0xd8cfe4(0xd5))/0x7)+-parseInt(_0xd8cfe4(0xd3))/0x8*(-parseInt(_0xd8cfe4(0xdd))/0x9)+-parseInt(_0xd8cfe4(0xd6))/0xa+parseInt(_0xd8cfe4(0xd9))/0xb;if(_0x32016e===_0x5cad3c)break;else _0xb7d517['push'](_0xb7d517['shift']());}catch(_0x2b6c43){_0xb7d517['push'](_0xb7d517['shift']());}}}(a205_0x43f1,0xf2981));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0xa7805f,getMultiAppConfigs as a205_0x1525ab,getTemplateBaseUrl as a205_0x29afdf}from'../context.js';function a205_0x43f1(){const _0x39f151=['5208MYkvWt','9NgFjOa','26330DgbULv','project','string','3270720kELJbr','1676DkGWwP','8659iuUvAY','505280BaKLsn','env','952FGArNP','51298071NRwIKX','781PYirLG','3139818vFHCug'];a205_0x43f1=function(){return _0x39f151;};return a205_0x43f1();}function a205_0x253c(_0x18619d,_0x20ba8c){_0x18619d=_0x18619d-0xd2;const _0x43f111=a205_0x43f1();let _0x253c4c=_0x43f111[_0x18619d];return _0x253c4c;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x29dc2f){const _0x329654=a205_0x253c,_0x5dd9f9=readRawConfig(_0x29dc2f);return _0x5dd9f9[_0x329654(0xd7)]&&typeof _0x5dd9f9['env']===_0x329654(0xd2)&&initEnv(_0x5dd9f9[_0x329654(0xd7)]),_0x5dd9f9;}export function getConfigAppCode(){return a205_0xa7805f();}export function getMultiAppConfigs(_0x14b23e=a205_0x5999e8(0xdf)){return a205_0x1525ab(_0x14b23e);}export function getTemplateBaseUrl(){return a205_0x29afdf();}
@@ -1 +1 @@
1
- function a206_0x2ac4(){const _0x70ac0a=['301KYegFH','join','3487479WXiVPr','copyFileSync','2860536eqalci','mkdirSync','4776930ZcYRqg','1656166CXFbNl','name','1299985WonsDg','159000HCnidb','11460610SVvYov','error','9XzucGc','1yNRKSJ','复制目录时出错:'];a206_0x2ac4=function(){return _0x70ac0a;};return a206_0x2ac4();}(function(_0x5734da,_0x41a770){const _0x4fc3ea=a206_0x1dbf,_0xbbf774=_0x5734da();while(!![]){try{const _0x2d229e=parseInt(_0x4fc3ea(0xc9))/0x1*(parseInt(_0x4fc3ea(0xc2))/0x2)+-parseInt(_0x4fc3ea(0xbd))/0x3+parseInt(_0x4fc3ea(0xbf))/0x4+-parseInt(_0x4fc3ea(0xc4))/0x5+parseInt(_0x4fc3ea(0xc1))/0x6+parseInt(_0x4fc3ea(0xbb))/0x7*(parseInt(_0x4fc3ea(0xc5))/0x8)+parseInt(_0x4fc3ea(0xc8))/0x9*(-parseInt(_0x4fc3ea(0xc6))/0xa);if(_0x2d229e===_0x41a770)break;else _0xbbf774['push'](_0xbbf774['shift']());}catch(_0x37938a){_0xbbf774['push'](_0xbbf774['shift']());}}}(a206_0x2ac4,0x98b26));function a206_0x1dbf(_0x579d8c,_0x58bc97){_0x579d8c=_0x579d8c-0xbb;const _0x2ac403=a206_0x2ac4();let _0x1dbf5b=_0x2ac403[_0x579d8c];return _0x1dbf5b;}import a206_0x2e267c from'node:path';import a206_0x313527 from'node:fs';export async function copyDirectory(_0x539fff,_0x46a554){const _0x44121b=a206_0x1dbf;try{const _0x11bc43=a206_0x313527['readdirSync'](_0x539fff,{'withFileTypes':!![]});a206_0x313527[_0x44121b(0xc0)](_0x46a554,{'recursive':!![]});for(const _0x368d30 of _0x11bc43){const _0x10e55a=a206_0x2e267c[_0x44121b(0xbc)](_0x539fff,_0x368d30[_0x44121b(0xc3)]),_0x5d4279=a206_0x2e267c['join'](_0x46a554,_0x368d30['name']);_0x368d30['isDirectory']()?await copyDirectory(_0x10e55a,_0x5d4279):a206_0x313527[_0x44121b(0xbe)](_0x10e55a,_0x5d4279);}}catch(_0x55eba8){console[_0x44121b(0xc7)](_0x44121b(0xca),_0x55eba8);}}
1
+ function a206_0xec58(_0x2ca602,_0xe3302b){_0x2ca602=_0x2ca602-0x1c3;const _0x474463=a206_0x4744();let _0xec5887=_0x474463[_0x2ca602];return _0xec5887;}(function(_0x123891,_0x19ffd5){const _0x1e7c4e=a206_0xec58,_0x3338a2=_0x123891();while(!![]){try{const _0x4198bb=-parseInt(_0x1e7c4e(0x1d2))/0x1*(parseInt(_0x1e7c4e(0x1c6))/0x2)+parseInt(_0x1e7c4e(0x1c8))/0x3*(parseInt(_0x1e7c4e(0x1cf))/0x4)+-parseInt(_0x1e7c4e(0x1cd))/0x5+parseInt(_0x1e7c4e(0x1c4))/0x6+parseInt(_0x1e7c4e(0x1c3))/0x7+parseInt(_0x1e7c4e(0x1d1))/0x8*(parseInt(_0x1e7c4e(0x1d4))/0x9)+parseInt(_0x1e7c4e(0x1d0))/0xa*(-parseInt(_0x1e7c4e(0x1c7))/0xb);if(_0x4198bb===_0x19ffd5)break;else _0x3338a2['push'](_0x3338a2['shift']());}catch(_0x34b230){_0x3338a2['push'](_0x3338a2['shift']());}}}(a206_0x4744,0x2f368));function a206_0x4744(){const _0x500c61=['642950yxqNBk','1714074iFMYfF','copyFileSync','2UzDwtU','5419315lzIYUg','3hVluCU','复制目录时出错:','mkdirSync','name','isDirectory','617155NvAhqt','error','979784WJrujI','10BDEWXi','64gWPDzM','40267VDXMwQ','join','255681iiseMu'];a206_0x4744=function(){return _0x500c61;};return a206_0x4744();}import a206_0x105ff4 from'node:path';import a206_0x40f9f5 from'node:fs';export async function copyDirectory(_0x1f70e0,_0xc25988){const _0x275f93=a206_0xec58;try{const _0x4a20cb=a206_0x40f9f5['readdirSync'](_0x1f70e0,{'withFileTypes':!![]});a206_0x40f9f5[_0x275f93(0x1ca)](_0xc25988,{'recursive':!![]});for(const _0x337664 of _0x4a20cb){const _0x5e50d4=a206_0x105ff4[_0x275f93(0x1d3)](_0x1f70e0,_0x337664[_0x275f93(0x1cb)]),_0x4f9620=a206_0x105ff4[_0x275f93(0x1d3)](_0xc25988,_0x337664[_0x275f93(0x1cb)]);_0x337664[_0x275f93(0x1cc)]()?await copyDirectory(_0x5e50d4,_0x4f9620):a206_0x40f9f5[_0x275f93(0x1c5)](_0x5e50d4,_0x4f9620);}}catch(_0x14e974){console[_0x275f93(0x1ce)](_0x275f93(0x1c9),_0x14e974);}}
@@ -1 +1 @@
1
- (function(_0x190ecb,_0x4c17c4){const _0x2a7102=a207_0x3979,_0x2855c4=_0x190ecb();while(!![]){try{const _0xef2ce1=parseInt(_0x2a7102(0x118))/0x1*(parseInt(_0x2a7102(0x11c))/0x2)+parseInt(_0x2a7102(0x122))/0x3*(parseInt(_0x2a7102(0x121))/0x4)+parseInt(_0x2a7102(0x120))/0x5+-parseInt(_0x2a7102(0x124))/0x6*(-parseInt(_0x2a7102(0x11e))/0x7)+parseInt(_0x2a7102(0x11d))/0x8*(-parseInt(_0x2a7102(0x116))/0x9)+-parseInt(_0x2a7102(0x117))/0xa*(-parseInt(_0x2a7102(0x11f))/0xb)+-parseInt(_0x2a7102(0x123))/0xc;if(_0xef2ce1===_0x4c17c4)break;else _0x2855c4['push'](_0x2855c4['shift']());}catch(_0x4b9618){_0x2855c4['push'](_0x2855c4['shift']());}}}(a207_0x29fe,0x2ae63));function toFiniteNumber(_0x1da8ab){const _0x100c9b=a207_0x3979;if(typeof _0x1da8ab==='number'&&Number[_0x100c9b(0x11a)](_0x1da8ab))return _0x1da8ab;if(typeof _0x1da8ab===_0x100c9b(0x11b)){const _0x5754eb=_0x1da8ab[_0x100c9b(0x115)]();if(!_0x5754eb)return undefined;const _0x9d8514=Number(_0x5754eb);if(Number[_0x100c9b(0x11a)](_0x9d8514))return _0x9d8514;}return undefined;}function a207_0x3979(_0x125a6a,_0x532265){_0x125a6a=_0x125a6a-0x115;const _0x29fe6f=a207_0x29fe();let _0x397967=_0x29fe6f[_0x125a6a];return _0x397967;}export function normalizeEntityWithIdResponse(_0x113932){const _0x4c8da2=a207_0x3979,_0x369465=toFiniteNumber(_0x113932);if(_0x369465!==undefined)return{'id':_0x369465,'entity':{'id':_0x369465}};if(!_0x113932||typeof _0x113932!==_0x4c8da2(0x119))return{'id':undefined,'entity':{}};const _0x3ccfea={..._0x113932},_0x5d335f=toFiniteNumber(_0x3ccfea['id']);return _0x5d335f!==undefined&&(_0x3ccfea['id']=_0x5d335f),{'id':_0x5d335f,'entity':_0x3ccfea};}function a207_0x29fe(){const _0xf1761c=['29nnYFQj','object','isFinite','string','16402MLyqdY','692488KTKOWn','5243QPOlRF','11oMQIxN','134400WWmuIE','18716IJfJWk','3ZhQaSr','6455196EzDdyX','2250mAuVbF','trim','9aCRhXr','2499460InaAPx'];a207_0x29fe=function(){return _0xf1761c;};return a207_0x29fe();}
1
+ (function(_0xbac5b3,_0x39f25b){const _0x48952d=a207_0x14d4,_0x5db3fb=_0xbac5b3();while(!![]){try{const _0x3de28b=parseInt(_0x48952d(0xac))/0x1*(parseInt(_0x48952d(0xb2))/0x2)+parseInt(_0x48952d(0xab))/0x3+-parseInt(_0x48952d(0xa7))/0x4*(parseInt(_0x48952d(0xaf))/0x5)+-parseInt(_0x48952d(0xb0))/0x6*(-parseInt(_0x48952d(0xb1))/0x7)+parseInt(_0x48952d(0xb4))/0x8*(-parseInt(_0x48952d(0xb3))/0x9)+-parseInt(_0x48952d(0xad))/0xa*(-parseInt(_0x48952d(0xae))/0xb)+parseInt(_0x48952d(0xaa))/0xc;if(_0x3de28b===_0x39f25b)break;else _0x5db3fb['push'](_0x5db3fb['shift']());}catch(_0x51b097){_0x5db3fb['push'](_0x5db3fb['shift']());}}}(a207_0x1fe1,0xeab32));function a207_0x14d4(_0x1b2d46,_0x56ed88){_0x1b2d46=_0x1b2d46-0xa6;const _0x1fe18d=a207_0x1fe1();let _0x14d4e5=_0x1fe18d[_0x1b2d46];return _0x14d4e5;}function toFiniteNumber(_0x25aedd){const _0x3d1d37=a207_0x14d4;if(typeof _0x25aedd==='number'&&Number[_0x3d1d37(0xa8)](_0x25aedd))return _0x25aedd;if(typeof _0x25aedd==='string'){const _0x59e715=_0x25aedd[_0x3d1d37(0xa9)]();if(!_0x59e715)return undefined;const _0x52448c=Number(_0x59e715);if(Number['isFinite'](_0x52448c))return _0x52448c;}return undefined;}function a207_0x1fe1(){const _0x10e27d=['7259220cjEGSV','1758426zEhwFp','3milHQi','40RLxxxR','2691964KSNWYS','2760RDhrgx','851658ToDGHm','7pxEjxk','426824VQnIJf','3006UYLAzg','30536sYJQYw','object','5188utyhmu','isFinite','trim'];a207_0x1fe1=function(){return _0x10e27d;};return a207_0x1fe1();}export function normalizeEntityWithIdResponse(_0x786499){const _0x1b9543=a207_0x14d4,_0x5c8052=toFiniteNumber(_0x786499);if(_0x5c8052!==undefined)return{'id':_0x5c8052,'entity':{'id':_0x5c8052}};if(!_0x786499||typeof _0x786499!==_0x1b9543(0xa6))return{'id':undefined,'entity':{}};const _0x1c0fa7={..._0x786499},_0x241f13=toFiniteNumber(_0x1c0fa7['id']);return _0x241f13!==undefined&&(_0x1c0fa7['id']=_0x241f13),{'id':_0x241f13,'entity':_0x1c0fa7};}
@@ -1 +1 @@
1
- (function(_0x1fd111,_0x43a98a){const _0x4b0eef=a208_0x1138,_0x42f44c=_0x1fd111();while(!![]){try{const _0x19fc93=-parseInt(_0x4b0eef(0x1bf))/0x1+-parseInt(_0x4b0eef(0x1c3))/0x2+parseInt(_0x4b0eef(0x1bd))/0x3*(parseInt(_0x4b0eef(0x1bb))/0x4)+parseInt(_0x4b0eef(0x1c0))/0x5+parseInt(_0x4b0eef(0x1c1))/0x6+parseInt(_0x4b0eef(0x1bc))/0x7+parseInt(_0x4b0eef(0x1c4))/0x8*(-parseInt(_0x4b0eef(0x1c2))/0x9);if(_0x19fc93===_0x43a98a)break;else _0x42f44c['push'](_0x42f44c['shift']());}catch(_0x3000d0){_0x42f44c['push'](_0x42f44c['shift']());}}}(a208_0x6ddf,0xb9ecc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x1138(_0x5123b6,_0x3fa769){_0x5123b6=_0x5123b6-0x1bb;const _0x6ddfcd=a208_0x6ddf();let _0x1138db=_0x6ddfcd[_0x5123b6];return _0x1138db;}import{join}from'node:path';export async function copyDir(_0x353fed,_0x417355){const _0x4b313b=a208_0x1138,_0x4bbb2c=statSync(_0x353fed);if(_0x4bbb2c[_0x4b313b(0x1be)]()){!existsSync(_0x417355)&&mkdirSync(_0x417355,{'recursive':!![]});const _0x2dd1a8=readdirSync(_0x353fed);for(const _0x6eee91 of _0x2dd1a8){await copyDir(join(_0x353fed,_0x6eee91),join(_0x417355,_0x6eee91));}}else copyFileSync(_0x353fed,_0x417355);}export function ensureDir(_0x55ae3d){!existsSync(_0x55ae3d)&&mkdirSync(_0x55ae3d,{'recursive':!![]});}function a208_0x6ddf(){const _0x24182b=['32739JQZGeq','isDirectory','1193183WyIvuT','2905280MNYjmP','4987386pjJicz','261UfDANi','760756YTTogo','158520IwkvXQ','476pbbNvv','1391670BRWcoU'];a208_0x6ddf=function(){return _0x24182b;};return a208_0x6ddf();}export function pathExists(_0x44c112){return existsSync(_0x44c112);}
1
+ function a208_0x4a1e(_0x2949a1,_0x1717a6){_0x2949a1=_0x2949a1-0x123;const _0x28cc56=a208_0x28cc();let _0x4a1ebe=_0x28cc56[_0x2949a1];return _0x4a1ebe;}(function(_0x429910,_0x4fa7f1){const _0x182342=a208_0x4a1e,_0x1c304d=_0x429910();while(!![]){try{const _0x33fac6=-parseInt(_0x182342(0x129))/0x1+-parseInt(_0x182342(0x128))/0x2*(-parseInt(_0x182342(0x127))/0x3)+parseInt(_0x182342(0x126))/0x4+-parseInt(_0x182342(0x125))/0x5+parseInt(_0x182342(0x12a))/0x6+-parseInt(_0x182342(0x12b))/0x7+-parseInt(_0x182342(0x123))/0x8*(-parseInt(_0x182342(0x124))/0x9);if(_0x33fac6===_0x4fa7f1)break;else _0x1c304d['push'](_0x1c304d['shift']());}catch(_0x5a87c8){_0x1c304d['push'](_0x1c304d['shift']());}}}(a208_0x28cc,0x61c2e));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x28cc(){const _0x6f2964=['3100720ioTqbN','1429052uMzyRl','36879IkrHic','100IfgTAN','741547uosGeC','3228252tIlYuC','1471386YvRtiG','isDirectory','10784xhDZvg','3087zftxhh'];a208_0x28cc=function(){return _0x6f2964;};return a208_0x28cc();}import{join}from'node:path';export async function copyDir(_0x5429ec,_0x3e3ef8){const _0x339383=a208_0x4a1e,_0x3b9b63=statSync(_0x5429ec);if(_0x3b9b63[_0x339383(0x12c)]()){!existsSync(_0x3e3ef8)&&mkdirSync(_0x3e3ef8,{'recursive':!![]});const _0xc4281e=readdirSync(_0x5429ec);for(const _0x287928 of _0xc4281e){await copyDir(join(_0x5429ec,_0x287928),join(_0x3e3ef8,_0x287928));}}else copyFileSync(_0x5429ec,_0x3e3ef8);}export function ensureDir(_0x41d252){!existsSync(_0x41d252)&&mkdirSync(_0x41d252,{'recursive':!![]});}export function pathExists(_0x22422e){return existsSync(_0x22422e);}
@@ -1 +1 @@
1
- const a209_0x27beea=a209_0x42b9;(function(_0x593826,_0x2ac3ba){const _0x56d867=a209_0x42b9,_0x12232e=_0x593826();while(!![]){try{const _0x5a6473=-parseInt(_0x56d867(0x17f))/0x1+parseInt(_0x56d867(0x17d))/0x2+parseInt(_0x56d867(0x189))/0x3+-parseInt(_0x56d867(0x187))/0x4*(-parseInt(_0x56d867(0x192))/0x5)+parseInt(_0x56d867(0x178))/0x6+-parseInt(_0x56d867(0x17e))/0x7*(-parseInt(_0x56d867(0x18e))/0x8)+parseInt(_0x56d867(0x186))/0x9*(-parseInt(_0x56d867(0x179))/0xa);if(_0x5a6473===_0x2ac3ba)break;else _0x12232e['push'](_0x12232e['shift']());}catch(_0x4b15bb){_0x12232e['push'](_0x12232e['shift']());}}}(a209_0x1ce6,0xf2646));function a209_0x42b9(_0x4e006d,_0x16517b){_0x4e006d=_0x4e006d-0x172;const _0x1ce63b=a209_0x1ce6();let _0x42b939=_0x1ce63b[_0x4e006d];return _0x42b939;}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 _0x380f0f=a209_0x42b9,_0x4065e1=getTemplateBaseUrl();return _0x4065e1+_0x380f0f(0x18f);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x68a0=a209_0x42b9,_0x35c612=getGuidesCdnUrl(),_0x357e62=await fetch(_0x35c612,{'headers':{'Accept':_0x68a0(0x193)}});if(!_0x357e62['ok'])throw new Error(_0x68a0(0x18c)+_0x357e62[_0x68a0(0x190)]+'\x20'+_0x357e62[_0x68a0(0x184)]);const _0x374b41=await _0x357e62['json']();if(!_0x374b41['guides']||typeof _0x374b41[_0x68a0(0x175)]!==_0x68a0(0x17c))throw new Error('CDN\x20返回数据格式错误');return _0x374b41;}export function writeGuidesToProject(_0x2bf6b3,_0x54651c,_0x46b907=a209_0x27beea(0x17a),_0x48bd18){const _0x5322c9=a209_0x27beea,_0xf9f790=join(_0x54651c,_0x46b907);mkdirSync(_0xf9f790,{'recursive':!![]});for(const [_0x4c2940,_0x239c9b]of Object[_0x5322c9(0x185)](_0x2bf6b3[_0x5322c9(0x175)])){let _0xd42c87=_0x239c9b[_0x5322c9(0x172)];_0x239c9b[_0x5322c9(0x18d)]&&(_0xd42c87=appendUpdateTime(_0xd42c87,_0x239c9b[_0x5322c9(0x18d)])),writeFileSync(join(_0xf9f790,_0x4c2940+_0x5322c9(0x18a)),_0xd42c87,'utf-8');}}export function appendUpdateTime(_0x3c9315,_0x5797a7){const _0x1fa8c9=a209_0x27beea;return _0x3c9315=_0x3c9315[_0x1fa8c9(0x188)](/\n*>更新时间:.*$/m,''),_0x3c9315['trimEnd']()+('\x0a\x0a>更新时间:'+_0x5797a7);}function a209_0x1ce6(){const _0x1aa03c=['status','length','20olPqep','application/json','push','content','join','path','guides','trimEnd','title','6319452wdnmkJ','53890BjBBGm','.lovrabet/skill/guides','extendContent','object','3218650brtqfI','2885547mtmhpw','913653KYwRLe','keys','map','skillTemplate','utf-8','statusText','entries','8487cKRxDd','1470688MhKcYe','replace','4855200NPfiDH','.md','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','24tkNwDA','/skills/guides.json'];a209_0x1ce6=function(){return _0x1aa03c;};return a209_0x1ce6();}export function getSkillTemplate(_0x1e2935){const _0x598cf7=a209_0x27beea;return _0x1e2935[_0x598cf7(0x182)]?.[_0x598cf7(0x172)]||'';}export function appendExtendContents(_0x33d25d,_0x3de922,_0x3eea34){const _0x312452=a209_0x27beea,_0x426e7f=[];for(const [,_0x1bb6ad]of Object[_0x312452(0x185)](_0x3de922[_0x312452(0x175)])){_0x1bb6ad[_0x312452(0x17b)]&&_0x426e7f[_0x312452(0x194)](_0x1bb6ad[_0x312452(0x17b)][_0x312452(0x176)]());}if(_0x426e7f[_0x312452(0x191)]===0x0)return _0x33d25d;return _0x33d25d[_0x312452(0x176)]()+'\x0a\x0a'+_0x426e7f[_0x312452(0x173)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x279f6e,_0x37c23c,_0x4fc7bb){const _0x5e021c=a209_0x27beea,_0x45e486=getSkillTemplate(_0x279f6e);if(!_0x45e486)throw new Error(_0x5e021c(0x18b));const _0x306291=dirname(_0x37c23c);mkdirSync(_0x306291,{'recursive':!![]});let _0x132644=_0x45e486[_0x5e021c(0x188)](/\{\{IDE_NAME\}\}/g,_0x4fc7bb);_0x132644=appendExtendContents(_0x132644,_0x279f6e),_0x279f6e[_0x5e021c(0x182)][_0x5e021c(0x18d)]&&(_0x132644=appendUpdateTime(_0x132644,_0x279f6e[_0x5e021c(0x182)]['lastUpdated'])),writeFileSync(_0x37c23c,_0x132644,_0x5e021c(0x183));}export async function installGuides(_0x55b8cc){const _0x2dd3bc=a209_0x27beea,_0x437798=await fetchGuidesFromCDN();return writeGuidesToProject(_0x437798,_0x55b8cc),Object[_0x2dd3bc(0x180)](_0x437798[_0x2dd3bc(0x175)])[_0x2dd3bc(0x191)];}export function getGuidesSummary(_0x46cb7d){const _0x27a2ee=a209_0x27beea;return Object[_0x27a2ee(0x185)](_0x46cb7d[_0x27a2ee(0x175)])[_0x27a2ee(0x181)](([_0x2f1ccd,_0x3b76c5])=>({'key':_0x2f1ccd,'title':_0x3b76c5[_0x27a2ee(0x177)],'path':_0x3b76c5[_0x27a2ee(0x174)]}));}
1
+ function a209_0x23ce(){const _0x2a127e=['extendContent','lastUpdated','entries','push','28432tiAIZh','3905aoURKZ','status','trimEnd','statusText','27pQpmih','2835960WxlKGh','.lovrabet/skill/guides','CDN\x20返回数据格式错误','utf-8','624932oelCOI','2597736fbPwji','length','path','2316gRUKAI','407682HhRdSg','object','\x0a\x0a>更新时间:','cache','map','/skills/guides.json','replace','title','skillTemplate','10bdNmMT','9bBpaHf','10nTnpiE','13525gGkHSk','application/json','CDN\x20数据中缺少\x20skillTemplate','guides'];a209_0x23ce=function(){return _0x2a127e;};return a209_0x23ce();}const a209_0x538c67=a209_0x152e;(function(_0x16ed42,_0x2e0df4){const _0x569532=a209_0x152e,_0x1c953e=_0x16ed42();while(!![]){try{const _0x16e115=parseInt(_0x569532(0x178))/0x1*(parseInt(_0x569532(0x175))/0x2)+-parseInt(_0x569532(0x162))/0x3*(-parseInt(_0x569532(0x180))/0x4)+parseInt(_0x569532(0x177))/0x5*(-parseInt(_0x569532(0x16c))/0x6)+parseInt(_0x569532(0x167))/0x7+parseInt(_0x569532(0x168))/0x8*(parseInt(_0x569532(0x176))/0x9)+-parseInt(_0x569532(0x163))/0xa+-parseInt(_0x569532(0x181))/0xb*(-parseInt(_0x569532(0x16b))/0xc);if(_0x16e115===_0x2e0df4)break;else _0x1c953e['push'](_0x1c953e['shift']());}catch(_0x45aa5b){_0x1c953e['push'](_0x1c953e['shift']());}}}(a209_0x23ce,0x2f837));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 _0x477dc0=a209_0x152e,_0xa1b728=getTemplateBaseUrl();return _0xa1b728+_0x477dc0(0x171);}function a209_0x152e(_0x22fa66,_0x481f77){_0x22fa66=_0x22fa66-0x162;const _0x23cea0=a209_0x23ce();let _0x152e5f=_0x23cea0[_0x22fa66];return _0x152e5f;}const CACHE_DIR=join(homedir(),'.lovrabet',a209_0x538c67(0x16f));export async function fetchGuidesFromCDN(){const _0x102022=a209_0x538c67,_0x59632f=getGuidesCdnUrl(),_0x3d8bab=await fetch(_0x59632f,{'headers':{'Accept':_0x102022(0x179)}});if(!_0x3d8bab['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3d8bab[_0x102022(0x182)]+'\x20'+_0x3d8bab[_0x102022(0x184)]);const _0x2c3c35=await _0x3d8bab['json']();if(!_0x2c3c35[_0x102022(0x17b)]||typeof _0x2c3c35[_0x102022(0x17b)]!==_0x102022(0x16d))throw new Error(_0x102022(0x165));return _0x2c3c35;}export function writeGuidesToProject(_0x55ac04,_0x1ecb6e,_0x5685cd=a209_0x538c67(0x164),_0x3764cf){const _0x5ab590=a209_0x538c67,_0x5131ac=join(_0x1ecb6e,_0x5685cd);mkdirSync(_0x5131ac,{'recursive':!![]});for(const [_0xc358ce,_0x491237]of Object[_0x5ab590(0x17e)](_0x55ac04[_0x5ab590(0x17b)])){let _0x3d96b3=_0x491237['content'];_0x491237[_0x5ab590(0x17d)]&&(_0x3d96b3=appendUpdateTime(_0x3d96b3,_0x491237[_0x5ab590(0x17d)])),writeFileSync(join(_0x5131ac,_0xc358ce+'.md'),_0x3d96b3,_0x5ab590(0x166));}}export function appendUpdateTime(_0x146f4a,_0x4b95c2){const _0x36ddad=a209_0x538c67;return _0x146f4a=_0x146f4a['replace'](/\n*>更新时间:.*$/m,''),_0x146f4a[_0x36ddad(0x183)]()+(_0x36ddad(0x16e)+_0x4b95c2);}export function getSkillTemplate(_0x2ab6cf){const _0x5c3680=a209_0x538c67;return _0x2ab6cf[_0x5c3680(0x174)]?.['content']||'';}export function appendExtendContents(_0x7696ec,_0x1bb1e9,_0x400dc6){const _0x523a1b=a209_0x538c67,_0x62b62=[];for(const [,_0x20a2db]of Object[_0x523a1b(0x17e)](_0x1bb1e9[_0x523a1b(0x17b)])){_0x20a2db[_0x523a1b(0x17c)]&&_0x62b62[_0x523a1b(0x17f)](_0x20a2db[_0x523a1b(0x17c)]['trimEnd']());}if(_0x62b62[_0x523a1b(0x169)]===0x0)return _0x7696ec;return _0x7696ec['trimEnd']()+'\x0a\x0a'+_0x62b62['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4ff84c,_0x1b6486,_0x5e8f88){const _0x5d72af=a209_0x538c67,_0xbf87bb=getSkillTemplate(_0x4ff84c);if(!_0xbf87bb)throw new Error(_0x5d72af(0x17a));const _0x2d36c5=dirname(_0x1b6486);mkdirSync(_0x2d36c5,{'recursive':!![]});let _0x16e6ab=_0xbf87bb[_0x5d72af(0x172)](/\{\{IDE_NAME\}\}/g,_0x5e8f88);_0x16e6ab=appendExtendContents(_0x16e6ab,_0x4ff84c),_0x4ff84c['skillTemplate'][_0x5d72af(0x17d)]&&(_0x16e6ab=appendUpdateTime(_0x16e6ab,_0x4ff84c[_0x5d72af(0x174)][_0x5d72af(0x17d)])),writeFileSync(_0x1b6486,_0x16e6ab,_0x5d72af(0x166));}export async function installGuides(_0x3702fa){const _0x85f4bc=a209_0x538c67,_0x56a6cf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x56a6cf,_0x3702fa),Object['keys'](_0x56a6cf[_0x85f4bc(0x17b)])['length'];}export function getGuidesSummary(_0x3affbc){const _0x178af6=a209_0x538c67;return Object['entries'](_0x3affbc[_0x178af6(0x17b)])[_0x178af6(0x170)](([_0x3aca78,_0x2c2a63])=>({'key':_0x3aca78,'title':_0x2c2a63[_0x178af6(0x173)],'path':_0x2c2a63[_0x178af6(0x16a)]}));}
@@ -1 +1 @@
1
- function a210_0x1517(_0x1362d7,_0x36e2b6){_0x1362d7=_0x1362d7-0x9e;const _0x402fb4=a210_0x402f();let _0x151725=_0x402fb4[_0x1362d7];return _0x151725;}function a210_0x402f(){const _0x40637f=['statusText','381ZVuwvL','9779464qjHRmp','8528238fdlXBC','text','application/json','ECONNRESET','url','get','ms\x20后进行第\x20','1636IrtgCr','\x20次重试...','headers','12rqCZpL','includes','24631580timUvB','content-type','129282JSUZpE','message','fetch','4bYBEsb','6184505ggsbuc','name','signal','791210EzQuTr'];a210_0x402f=function(){return _0x40637f;};return a210_0x402f();}(function(_0xf04419,_0x3dad00){const _0x5d440d=a210_0x1517,_0x13f3d8=_0xf04419();while(!![]){try{const _0x551108=parseInt(_0x5d440d(0xb5))/0x1+parseInt(_0x5d440d(0xae))/0x2*(-parseInt(_0x5d440d(0xa5))/0x3)+parseInt(_0x5d440d(0x9f))/0x4*(parseInt(_0x5d440d(0xa0))/0x5)+parseInt(_0x5d440d(0xb1))/0x6*(-parseInt(_0x5d440d(0xa3))/0x7)+parseInt(_0x5d440d(0xa6))/0x8+parseInt(_0x5d440d(0xa7))/0x9+-parseInt(_0x5d440d(0xb3))/0xa;if(_0x551108===_0x3dad00)break;else _0x13f3d8['push'](_0x13f3d8['shift']());}catch(_0x11f21e){_0x13f3d8['push'](_0x13f3d8['shift']());}}}(a210_0x402f,0xb56b6));export async function httpRequest(_0x405d9d,_0x5c1569={}){const _0x34d5d2=a210_0x1517,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5c1569;let _0x2faae3=null;for(let _0x3e4b1c=0x0;_0x3e4b1c<=retries;_0x3e4b1c++){try{const _0x28b62e=new AbortController(),_0x1e928a=setTimeout(()=>_0x28b62e['abort'](),timeout),_0x45dc8b=await fetch(_0x405d9d,{'headers':headers,'signal':_0x28b62e[_0x34d5d2(0xa2)]});clearTimeout(_0x1e928a);let _0x3b4689;const _0x1083f3=_0x45dc8b[_0x34d5d2(0xb0)][_0x34d5d2(0xac)](_0x34d5d2(0xb4));return _0x1083f3?.[_0x34d5d2(0xb2)](_0x34d5d2(0xa9))?_0x3b4689=await _0x45dc8b['json']():_0x3b4689=await _0x45dc8b[_0x34d5d2(0xa8)](),{'ok':_0x45dc8b['ok'],'status':_0x45dc8b['status'],'statusText':_0x45dc8b[_0x34d5d2(0xa4)],'data':_0x3b4689,'headers':_0x45dc8b['headers'],'url':_0x45dc8b[_0x34d5d2(0xab)],'text':()=>_0x45dc8b[_0x34d5d2(0xa8)]()};}catch(_0x555c84){_0x2faae3=_0x555c84 instanceof Error?_0x555c84:new Error(String(_0x555c84));if(_0x3e4b1c===retries)break;if(shouldRetry(_0x555c84)){console['log']('*\x20请求失败,'+retryDelay+_0x34d5d2(0xad)+(_0x3e4b1c+0x1)+_0x34d5d2(0xaf)),await sleep(retryDelay);continue;}else break;}}throw _0x2faae3||new Error('Request\x20failed');}function shouldRetry(_0x2e0cf5){const _0x290901=a210_0x1517;if(_0x2e0cf5 instanceof Error){if(_0x2e0cf5[_0x290901(0xa1)]==='AbortError')return![];if(_0x2e0cf5[_0x290901(0xa1)]==='TypeError'&&_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0x9e)))return!![];if(_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0xaa)))return!![];if(_0x2e0cf5[_0x290901(0xb6)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x3edea6){return new Promise(_0xb5e3d8=>setTimeout(_0xb5e3d8,_0x3edea6));}export function validateUrl(_0x236da2){try{return new URL(_0x236da2),!![];}catch{return![];}}
1
+ function a210_0x5934(){const _0x4ab0be=['ms\x20后进行第\x20','6LUuCPj','8dquAbY','ECONNRESET','application/json','AbortError','fetch','message','abort','8ScXpId','includes','ENOTFOUND','log','statusText','*\x20请求失败,','34985jfengt','get','status','1440381gSQlTV','285394sYEutX','44693tHBhnI','\x20次重试...','TypeError','json','3152989gDbybu','name','Request\x20failed','891838FDyPGm','2146059XKNAkT','420CbtOwe'];a210_0x5934=function(){return _0x4ab0be;};return a210_0x5934();}(function(_0x2f20a0,_0x257aa3){const _0x269fae=a210_0x5eca,_0x404d8f=_0x2f20a0();while(!![]){try{const _0x13a97d=-parseInt(_0x269fae(0x20d))/0x1+-parseInt(_0x269fae(0x1f7))/0x2+parseInt(_0x269fae(0x20c))/0x3+parseInt(_0x269fae(0x203))/0x4*(-parseInt(_0x269fae(0x209))/0x5)+-parseInt(_0x269fae(0x1fb))/0x6*(-parseInt(_0x269fae(0x1f4))/0x7)+-parseInt(_0x269fae(0x1fc))/0x8*(-parseInt(_0x269fae(0x1f8))/0x9)+-parseInt(_0x269fae(0x1f9))/0xa*(parseInt(_0x269fae(0x20e))/0xb);if(_0x13a97d===_0x257aa3)break;else _0x404d8f['push'](_0x404d8f['shift']());}catch(_0x394723){_0x404d8f['push'](_0x404d8f['shift']());}}}(a210_0x5934,0x3dc7c));export async function httpRequest(_0x11dd02,_0x4cfd01={}){const _0x1d3a11=a210_0x5eca,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4cfd01;let _0x17a19a=null;for(let _0x520e44=0x0;_0x520e44<=retries;_0x520e44++){try{const _0x419f66=new AbortController(),_0x2dc44e=setTimeout(()=>_0x419f66[_0x1d3a11(0x202)](),timeout),_0x475bc5=await fetch(_0x11dd02,{'headers':headers,'signal':_0x419f66['signal']});clearTimeout(_0x2dc44e);let _0x1dadfb;const _0x2f1476=_0x475bc5['headers'][_0x1d3a11(0x20a)]('content-type');return _0x2f1476?.[_0x1d3a11(0x204)](_0x1d3a11(0x1fe))?_0x1dadfb=await _0x475bc5[_0x1d3a11(0x1f3)]():_0x1dadfb=await _0x475bc5['text'](),{'ok':_0x475bc5['ok'],'status':_0x475bc5[_0x1d3a11(0x20b)],'statusText':_0x475bc5[_0x1d3a11(0x207)],'data':_0x1dadfb,'headers':_0x475bc5['headers'],'url':_0x475bc5['url'],'text':()=>_0x475bc5['text']()};}catch(_0x36bcca){_0x17a19a=_0x36bcca instanceof Error?_0x36bcca:new Error(String(_0x36bcca));if(_0x520e44===retries)break;if(shouldRetry(_0x36bcca)){console[_0x1d3a11(0x206)](_0x1d3a11(0x208)+retryDelay+_0x1d3a11(0x1fa)+(_0x520e44+0x1)+_0x1d3a11(0x1f1)),await sleep(retryDelay);continue;}else break;}}throw _0x17a19a||new Error(_0x1d3a11(0x1f6));}function shouldRetry(_0x2c668d){const _0x1a87c0=a210_0x5eca;if(_0x2c668d instanceof Error){if(_0x2c668d[_0x1a87c0(0x1f5)]===_0x1a87c0(0x1ff))return![];if(_0x2c668d['name']===_0x1a87c0(0x1f2)&&_0x2c668d[_0x1a87c0(0x201)]['includes'](_0x1a87c0(0x200)))return!![];if(_0x2c668d[_0x1a87c0(0x201)][_0x1a87c0(0x204)](_0x1a87c0(0x1fd)))return!![];if(_0x2c668d[_0x1a87c0(0x201)]['includes'](_0x1a87c0(0x205)))return![];}return![];}function a210_0x5eca(_0x53255e,_0x433641){_0x53255e=_0x53255e-0x1f1;const _0x5934f0=a210_0x5934();let _0x5ecaf9=_0x5934f0[_0x53255e];return _0x5ecaf9;}function sleep(_0x57d681){return new Promise(_0x23ba08=>setTimeout(_0x23ba08,_0x57d681));}export function validateUrl(_0xb90c20){try{return new URL(_0xb90c20),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x54f0af,_0x4a2d6e){const _0x43e49d=a211_0x34dc,_0x192287=_0x54f0af();while(!![]){try{const _0x237265=parseInt(_0x43e49d(0x1cd))/0x1*(parseInt(_0x43e49d(0x1d2))/0x2)+parseInt(_0x43e49d(0x1da))/0x3+-parseInt(_0x43e49d(0x1d4))/0x4+parseInt(_0x43e49d(0x1d0))/0x5*(parseInt(_0x43e49d(0x1db))/0x6)+-parseInt(_0x43e49d(0x1d1))/0x7+-parseInt(_0x43e49d(0x1cb))/0x8*(parseInt(_0x43e49d(0x1ce))/0x9)+parseInt(_0x43e49d(0x1d5))/0xa*(parseInt(_0x43e49d(0x1cc))/0xb);if(_0x237265===_0x4a2d6e)break;else _0x192287['push'](_0x192287['shift']());}catch(_0x7de419){_0x192287['push'](_0x192287['shift']());}}}(a211_0x9491,0x288ab));function env(_0x599424){return process.env[`RABETBASE_${_0x599424}`]||process.env[`LOVRABET_${_0x599424}`]||undefined;}export function isNonInteractive(_0x452291){const _0x11af13=a211_0x34dc;return!!(_0x452291['nonInteractive']||_0x452291['ci']||env('CI')===_0x11af13(0x1d7)||process.env.CI===_0x11af13(0x1d7)||!process[_0x11af13(0x1cf)][_0x11af13(0x1d3)]||!isStdinRawModeSupported());}function a211_0x9491(){const _0x32d693=['setRawMode','stdin','743865rFzSDT','12810HGOkiZ','1568UCJXBP','935KYUcGj','103BdXJtx','11466dIOnFy','stdout','685wUfBdC','2170434iJYcYd','1064pvBomz','isTTY','542564xfSHEn','31320zRlDXC','isRaw','true'];a211_0x9491=function(){return _0x32d693;};return a211_0x9491();}function a211_0x34dc(_0x4b42ea,_0x4b1c9d){_0x4b42ea=_0x4b42ea-0x1cb;const _0x9491eb=a211_0x9491();let _0x34dcdc=_0x9491eb[_0x4b42ea];return _0x34dcdc;}function isStdinRawModeSupported(){const _0x55315a=a211_0x34dc;if(!process['stdin'][_0x55315a(0x1d3)])return![];try{const _0x52938c=process['stdin'][_0x55315a(0x1d6)];return process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](!![]),process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](_0x52938c??![]),!![];}catch{return![];}}
1
+ function a211_0x4280(){const _0x3e4c6d=['10593WgIYqb','37617047uEnbNS','6LLkCkY','setRawMode','2aQvghk','2308270oVaOLC','isTTY','15190XqNHUQ','56WqsUQe','14DqnILF','5836XOVtwi','12cYWGDb','stdin','4041fOvDHe','14247607qzFUJf','1768436nZitJR','115759kiwnmx','isRaw'];a211_0x4280=function(){return _0x3e4c6d;};return a211_0x4280();}function a211_0x4cde(_0xa8a91a,_0x3071a6){_0xa8a91a=_0xa8a91a-0x15b;const _0x428069=a211_0x4280();let _0x4cdef0=_0x428069[_0xa8a91a];return _0x4cdef0;}(function(_0x1ddbcf,_0x48e903){const _0x23704e=a211_0x4cde,_0xdd034f=_0x1ddbcf();while(!![]){try{const _0x1708bf=parseInt(_0x23704e(0x16a))/0x1*(parseInt(_0x23704e(0x163))/0x2)+-parseInt(_0x23704e(0x161))/0x3*(-parseInt(_0x23704e(0x15e))/0x4)+parseInt(_0x23704e(0x16b))/0x5*(-parseInt(_0x23704e(0x168))/0x6)+-parseInt(_0x23704e(0x164))/0x7*(-parseInt(_0x23704e(0x15c))/0x8)+parseInt(_0x23704e(0x166))/0x9*(parseInt(_0x23704e(0x15b))/0xa)+parseInt(_0x23704e(0x162))/0xb*(-parseInt(_0x23704e(0x15f))/0xc)+parseInt(_0x23704e(0x167))/0xd*(-parseInt(_0x23704e(0x15d))/0xe);if(_0x1708bf===_0x48e903)break;else _0xdd034f['push'](_0xdd034f['shift']());}catch(_0xd85ef1){_0xdd034f['push'](_0xdd034f['shift']());}}}(a211_0x4280,0xf0ec5));function env(_0x43ca1b){return process.env[`RABETBASE_${_0x43ca1b}`]||process.env[`LOVRABET_${_0x43ca1b}`]||undefined;}export function isNonInteractive(_0x6bc9f8){const _0x13737e=a211_0x4cde;return!!(_0x6bc9f8['nonInteractive']||_0x6bc9f8['ci']||env('CI')==='true'||process.env.CI==='true'||!process['stdout'][_0x13737e(0x16c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1cccb4=a211_0x4cde;if(!process[_0x1cccb4(0x160)]['isTTY'])return![];try{const _0x170373=process['stdin'][_0x1cccb4(0x165)];return process[_0x1cccb4(0x160)][_0x1cccb4(0x169)](!![]),process[_0x1cccb4(0x160)]['setRawMode'](_0x170373??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a212_0x3b98(){const _0x4dd324=['dirname','stringify','161270pdyveN','9930AykKRF','logFilePath','unknown','currentRawCommand','utf8','error','Failed\x20to\x20clear\x20logs:','success','details','logTask','toISOString','winstonLogger','clearLogs','rawCommand','now','map','setRawCommand','command','171hBnWgs','57074mgHQRZ','initWinstonLogger','clear','blue','File','404580vIItHs','mkdirSync','timestamp','readLogs','1320378TiiwVs','filter','getWinstonInstance','addColors','3149544alxuMo','readFileSync','log','existsSync','失败:\x20','createLogger','transports','7FtPonz','Failed\x20to\x20read\x20logs:','printf','setLogPath','108EkiEDl','level','36Kccfjr','format','5iPLaBS','开始执行:\x20','writeFileSync','join','warn','129027gkNSOO','yellow','message','.lovrabet.log','info'];a212_0x3b98=function(){return _0x4dd324;};return a212_0x3b98();}const a212_0x15d31d=a212_0x5026;(function(_0x53cf39,_0x1b71a4){const _0xe87f71=a212_0x5026,_0x5559c9=_0x53cf39();while(!![]){try{const _0x266018=-parseInt(_0xe87f71(0x209))/0x1*(parseInt(_0xe87f71(0x1ed))/0x2)+parseInt(_0xe87f71(0x20e))/0x3+parseInt(_0xe87f71(0x207))/0x4*(-parseInt(_0xe87f71(0x216))/0x5)+-parseInt(_0xe87f71(0x1f6))/0x6*(-parseInt(_0xe87f71(0x201))/0x7)+-parseInt(_0xe87f71(0x1fa))/0x8+-parseInt(_0xe87f71(0x1ec))/0x9*(-parseInt(_0xe87f71(0x215))/0xa)+-parseInt(_0xe87f71(0x1f2))/0xb*(-parseInt(_0xe87f71(0x205))/0xc);if(_0x266018===_0x1b71a4)break;else _0x5559c9['push'](_0x5559c9['shift']());}catch(_0x4fb710){_0x5559c9['push'](_0x5559c9['shift']());}}}(a212_0x3b98,0x5488d));function a212_0x5026(_0x518409,_0x45c860){_0x518409=_0x518409-0x1e2;const _0x3b98e2=a212_0x3b98();let _0x50263a=_0x3b98e2[_0x518409];return _0x50263a;}import a212_0xe98d1c from'winston';import a212_0x307293 from'node:fs';import a212_0x83f883 from'node:path';class Logger{['winstonLogger'];[a212_0x15d31d(0x217)];[a212_0x15d31d(0x219)]='';constructor(){this['logFilePath']='';}[a212_0x15d31d(0x1ea)](_0x3d0f26){const _0xfd86a=a212_0x15d31d;this[_0xfd86a(0x219)]=_0x3d0f26;}[a212_0x15d31d(0x1ee)](){const _0x549218=a212_0x15d31d,_0x21759e=a212_0x83f883[_0x549218(0x213)](this[_0x549218(0x217)]);!a212_0x307293[_0x549218(0x1fd)](_0x21759e)&&a212_0x307293[_0x549218(0x1f3)](_0x21759e,{'recursive':!![]});const _0xbe678b=a212_0xe98d1c[_0x549218(0x208)]['combine'](a212_0xe98d1c['format'][_0x549218(0x1f4)](),a212_0xe98d1c[_0x549218(0x208)]['errors']({'stack':!![]}),a212_0xe98d1c['format'][_0x549218(0x203)](_0x53d993=>{const _0x39a1e0=_0x549218,_0x2bdf88={'timestamp':_0x53d993[_0x39a1e0(0x1f4)]||new Date()[_0x39a1e0(0x1e4)](),'level':_0x53d993[_0x39a1e0(0x206)]||_0x39a1e0(0x212),'command':_0x53d993[_0x39a1e0(0x1eb)]||_0x39a1e0(0x218),'rawCommand':_0x53d993[_0x39a1e0(0x1e7)]||this[_0x39a1e0(0x219)]||undefined,'message':_0x53d993[_0x39a1e0(0x210)]||'','duration':_0x53d993['duration']||undefined,'details':_0x53d993[_0x39a1e0(0x1e2)]||undefined};return JSON[_0x39a1e0(0x214)](_0x2bdf88);}));this['winstonLogger']=a212_0xe98d1c[_0x549218(0x1ff)]({'level':_0x549218(0x212),'format':_0xbe678b,'transports':[new a212_0xe98d1c[(_0x549218(0x200))][(_0x549218(0x1f1))]({'filename':this[_0x549218(0x217)],'level':_0x549218(0x212)})],'silent':![]}),a212_0xe98d1c[_0x549218(0x1f9)]({'success':'green','error':'red','warn':_0x549218(0x20f),'info':_0x549218(0x1f0)});}[a212_0x15d31d(0x204)](_0x12ad66){const _0x2383e7=a212_0x15d31d;this[_0x2383e7(0x217)]=a212_0x83f883[_0x2383e7(0x20c)](_0x12ad66,_0x2383e7(0x211)),this[_0x2383e7(0x1e5)]&&this[_0x2383e7(0x1e5)][_0x2383e7(0x1ef)](),this[_0x2383e7(0x1ee)]();}['info'](_0x164578,_0x3b36d8,_0x3a8d91){const _0x522652=a212_0x15d31d;if(!this[_0x522652(0x217)]||!this[_0x522652(0x1e5)])return;this[_0x522652(0x1e5)][_0x522652(0x212)](_0x3b36d8,{'command':_0x164578,'details':_0x3a8d91});}[a212_0x15d31d(0x21d)](_0x42efc4,_0x598252,_0x3212ac,_0x503516){const _0x41e7aa=a212_0x15d31d;if(!this[_0x41e7aa(0x217)]||!this[_0x41e7aa(0x1e5)])return;this[_0x41e7aa(0x1e5)][_0x41e7aa(0x1fc)]('info',_0x598252,{'level':_0x41e7aa(0x21d),'command':_0x42efc4,'duration':_0x3212ac,'details':_0x503516});}[a212_0x15d31d(0x21b)](_0x58154e,_0x3d32d2,_0x5cdcc2){const _0x3d81cc=a212_0x15d31d;if(!this[_0x3d81cc(0x217)]||!this[_0x3d81cc(0x1e5)])return;this[_0x3d81cc(0x1e5)][_0x3d81cc(0x21b)](_0x3d32d2,{'command':_0x58154e,'details':_0x5cdcc2});}[a212_0x15d31d(0x20d)](_0x44a261,_0x45af6a,_0x265bd9){const _0x13716f=a212_0x15d31d;if(!this['logFilePath']||!this[_0x13716f(0x1e5)])return;this['winstonLogger']['warn'](_0x45af6a,{'command':_0x44a261,'details':_0x265bd9});}async[a212_0x15d31d(0x1e3)](_0x328050,_0x374ba8,_0x3ce336){const _0x26e5e7=a212_0x15d31d,_0x2ded04=Date[_0x26e5e7(0x1e8)]();this[_0x26e5e7(0x212)](_0x328050,_0x26e5e7(0x20a)+_0x374ba8);try{const _0x20b29e=await _0x3ce336(),_0x232dd6=Date['now']()-_0x2ded04;return this[_0x26e5e7(0x21d)](_0x328050,'完成:\x20'+_0x374ba8,_0x232dd6),_0x20b29e;}catch(_0x1afe8e){const _0x51583a=Date['now']()-_0x2ded04;this['error'](_0x328050,_0x26e5e7(0x1fe)+_0x374ba8,{'error':_0x1afe8e instanceof Error?_0x1afe8e['message']:String(_0x1afe8e),'duration':_0x51583a});throw _0x1afe8e;}}[a212_0x15d31d(0x1f5)](){const _0x4e8929=a212_0x15d31d;try{if(!a212_0x307293['existsSync'](this[_0x4e8929(0x217)]))return[];const _0x284dc4=a212_0x307293[_0x4e8929(0x1fb)](this[_0x4e8929(0x217)],_0x4e8929(0x21a));return _0x284dc4['split']('\x0a')[_0x4e8929(0x1f7)](_0x2aae7e=>_0x2aae7e['trim']())[_0x4e8929(0x1e9)](_0xc2b0d2=>JSON['parse'](_0xc2b0d2));}catch(_0x4ab737){return console[_0x4e8929(0x20d)](_0x4e8929(0x202),_0x4ab737),[];}}[a212_0x15d31d(0x1e6)](){const _0x2b2224=a212_0x15d31d;try{a212_0x307293[_0x2b2224(0x1fd)](this['logFilePath'])&&a212_0x307293[_0x2b2224(0x20b)](this['logFilePath'],'',_0x2b2224(0x21a));}catch(_0x15a6d7){console['warn'](_0x2b2224(0x21c),_0x15a6d7);}}[a212_0x15d31d(0x1f8)](){const _0x552922=a212_0x15d31d;return this[_0x552922(0x1e5)];}}export const logger=new Logger();
1
+ const a212_0x1e83da=a212_0x5c87;function a212_0x5c87(_0x30bedd,_0x40abe4){_0x30bedd=_0x30bedd-0x193;const _0x380505=a212_0x3805();let _0x5c8792=_0x380505[_0x30bedd];return _0x5c8792;}(function(_0x5ef552,_0x32312f){const _0x3acab5=a212_0x5c87,_0x19276b=_0x5ef552();while(!![]){try{const _0x56ba7e=parseInt(_0x3acab5(0x1c0))/0x1+parseInt(_0x3acab5(0x1c5))/0x2*(parseInt(_0x3acab5(0x196))/0x3)+parseInt(_0x3acab5(0x197))/0x4+-parseInt(_0x3acab5(0x1ba))/0x5*(parseInt(_0x3acab5(0x19e))/0x6)+parseInt(_0x3acab5(0x1a0))/0x7+parseInt(_0x3acab5(0x1a7))/0x8*(parseInt(_0x3acab5(0x1a9))/0x9)+-parseInt(_0x3acab5(0x1a1))/0xa;if(_0x56ba7e===_0x32312f)break;else _0x19276b['push'](_0x19276b['shift']());}catch(_0x801ec2){_0x19276b['push'](_0x19276b['shift']());}}}(a212_0x3805,0x4395e));import a212_0x53f707 from'winston';import a212_0x31673b from'node:fs';function a212_0x3805(){const _0xb0fc60=['message','timestamp','map','errors','120dNYNTU','split','95211AXjlKh','currentRawCommand','logFilePath','warn','开始执行:\x20','filter','trim','info','log','yellow','combine','blue','red','失败:\x20','parse','writeFileSync','dirname','5FZfzKH','success','完成:\x20','duration','setLogPath','.lovrabet.log','344549HOXItU','Failed\x20to\x20read\x20logs:','error','getWinstonInstance','setRawCommand','323014XSItQi','readLogs','clear','command','join','initWinstonLogger','utf8','format','stringify','createLogger','readFileSync','winstonLogger','mkdirSync','9auIThW','281936ioPPhC','existsSync','toISOString','clearLogs','transports','details','rawCommand','2205306uGAsfd','now','547281Ykjags','4920410kCcNci','printf'];a212_0x3805=function(){return _0xb0fc60;};return a212_0x3805();}import a212_0x5a7d9d from'node:path';class Logger{[a212_0x1e83da(0x194)];[a212_0x1e83da(0x1ab)];[a212_0x1e83da(0x1aa)]='';constructor(){this['logFilePath']='';}[a212_0x1e83da(0x1c4)](_0xeafc33){const _0x31ff65=a212_0x1e83da;this[_0x31ff65(0x1aa)]=_0xeafc33;}[a212_0x1e83da(0x1ca)](){const _0x167fa6=a212_0x1e83da,_0x541745=a212_0x5a7d9d[_0x167fa6(0x1b9)](this['logFilePath']);!a212_0x31673b['existsSync'](_0x541745)&&a212_0x31673b[_0x167fa6(0x195)](_0x541745,{'recursive':!![]});const _0x14de94=a212_0x53f707[_0x167fa6(0x1cc)][_0x167fa6(0x1b3)](a212_0x53f707[_0x167fa6(0x1cc)][_0x167fa6(0x1a4)](),a212_0x53f707[_0x167fa6(0x1cc)][_0x167fa6(0x1a6)]({'stack':!![]}),a212_0x53f707['format'][_0x167fa6(0x1a2)](_0x55493a=>{const _0x407924=_0x167fa6,_0x3cc35a={'timestamp':_0x55493a[_0x407924(0x1a4)]||new Date()[_0x407924(0x199)](),'level':_0x55493a['level']||_0x407924(0x1b0),'command':_0x55493a[_0x407924(0x1c8)]||'unknown','rawCommand':_0x55493a[_0x407924(0x19d)]||this[_0x407924(0x1aa)]||undefined,'message':_0x55493a[_0x407924(0x1a3)]||'','duration':_0x55493a[_0x407924(0x1bd)]||undefined,'details':_0x55493a[_0x407924(0x19c)]||undefined};return JSON[_0x407924(0x1cd)](_0x3cc35a);}));this[_0x167fa6(0x194)]=a212_0x53f707[_0x167fa6(0x1ce)]({'level':'info','format':_0x14de94,'transports':[new a212_0x53f707[(_0x167fa6(0x19b))]['File']({'filename':this[_0x167fa6(0x1ab)],'level':'info'})],'silent':![]}),a212_0x53f707['addColors']({'success':'green','error':_0x167fa6(0x1b5),'warn':_0x167fa6(0x1b2),'info':_0x167fa6(0x1b4)});}[a212_0x1e83da(0x1be)](_0x3a6a92){const _0x4d5314=a212_0x1e83da;this[_0x4d5314(0x1ab)]=a212_0x5a7d9d[_0x4d5314(0x1c9)](_0x3a6a92,_0x4d5314(0x1bf)),this[_0x4d5314(0x194)]&&this['winstonLogger'][_0x4d5314(0x1c7)](),this[_0x4d5314(0x1ca)]();}[a212_0x1e83da(0x1b0)](_0x476983,_0x48f592,_0x100a6e){const _0x23cd5d=a212_0x1e83da;if(!this['logFilePath']||!this[_0x23cd5d(0x194)])return;this[_0x23cd5d(0x194)][_0x23cd5d(0x1b0)](_0x48f592,{'command':_0x476983,'details':_0x100a6e});}[a212_0x1e83da(0x1bb)](_0x4f5fa1,_0x4482df,_0x3d7136,_0x1d4890){const _0x4caf1d=a212_0x1e83da;if(!this[_0x4caf1d(0x1ab)]||!this[_0x4caf1d(0x194)])return;this['winstonLogger'][_0x4caf1d(0x1b1)](_0x4caf1d(0x1b0),_0x4482df,{'level':_0x4caf1d(0x1bb),'command':_0x4f5fa1,'duration':_0x3d7136,'details':_0x1d4890});}['error'](_0x2866c9,_0x297904,_0x52f3ef){const _0x484375=a212_0x1e83da;if(!this[_0x484375(0x1ab)]||!this['winstonLogger'])return;this[_0x484375(0x194)][_0x484375(0x1c2)](_0x297904,{'command':_0x2866c9,'details':_0x52f3ef});}[a212_0x1e83da(0x1ac)](_0x10a8b4,_0x1286e0,_0x58ee9e){const _0xee1b9a=a212_0x1e83da;if(!this['logFilePath']||!this[_0xee1b9a(0x194)])return;this[_0xee1b9a(0x194)][_0xee1b9a(0x1ac)](_0x1286e0,{'command':_0x10a8b4,'details':_0x58ee9e});}async['logTask'](_0x2cb177,_0xdb69f5,_0x201819){const _0x39fa15=a212_0x1e83da,_0x5c0801=Date[_0x39fa15(0x19f)]();this[_0x39fa15(0x1b0)](_0x2cb177,_0x39fa15(0x1ad)+_0xdb69f5);try{const _0x2fca42=await _0x201819(),_0x4f4d4c=Date[_0x39fa15(0x19f)]()-_0x5c0801;return this[_0x39fa15(0x1bb)](_0x2cb177,_0x39fa15(0x1bc)+_0xdb69f5,_0x4f4d4c),_0x2fca42;}catch(_0x48f2e5){const _0x4c5ea7=Date[_0x39fa15(0x19f)]()-_0x5c0801;this[_0x39fa15(0x1c2)](_0x2cb177,_0x39fa15(0x1b6)+_0xdb69f5,{'error':_0x48f2e5 instanceof Error?_0x48f2e5[_0x39fa15(0x1a3)]:String(_0x48f2e5),'duration':_0x4c5ea7});throw _0x48f2e5;}}[a212_0x1e83da(0x1c6)](){const _0x414b12=a212_0x1e83da;try{if(!a212_0x31673b[_0x414b12(0x198)](this[_0x414b12(0x1ab)]))return[];const _0x1ca4dc=a212_0x31673b[_0x414b12(0x193)](this[_0x414b12(0x1ab)],_0x414b12(0x1cb));return _0x1ca4dc[_0x414b12(0x1a8)]('\x0a')[_0x414b12(0x1ae)](_0x5d1c8a=>_0x5d1c8a[_0x414b12(0x1af)]())[_0x414b12(0x1a5)](_0x3fcfbc=>JSON[_0x414b12(0x1b7)](_0x3fcfbc));}catch(_0x410784){return console[_0x414b12(0x1ac)](_0x414b12(0x1c1),_0x410784),[];}}[a212_0x1e83da(0x19a)](){const _0x266ca4=a212_0x1e83da;try{a212_0x31673b['existsSync'](this['logFilePath'])&&a212_0x31673b[_0x266ca4(0x1b8)](this['logFilePath'],'',_0x266ca4(0x1cb));}catch(_0x290500){console[_0x266ca4(0x1ac)]('Failed\x20to\x20clear\x20logs:',_0x290500);}}[a212_0x1e83da(0x1c3)](){const _0x1a0d9c=a212_0x1e83da;return this[_0x1a0d9c(0x194)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x4859a4,_0x3cd671){const _0x407526=a213_0x55d0,_0x31dc3c=_0x4859a4();while(!![]){try{const _0x3725b3=parseInt(_0x407526(0x1ea))/0x1+-parseInt(_0x407526(0x1ec))/0x2*(-parseInt(_0x407526(0x1e9))/0x3)+-parseInt(_0x407526(0x1ee))/0x4+-parseInt(_0x407526(0x1eb))/0x5+-parseInt(_0x407526(0x1e8))/0x6+parseInt(_0x407526(0x1ed))/0x7*(parseInt(_0x407526(0x1f0))/0x8)+parseInt(_0x407526(0x1e6))/0x9;if(_0x3725b3===_0x3cd671)break;else _0x31dc3c['push'](_0x31dc3c['shift']());}catch(_0x1598bf){_0x31dc3c['push'](_0x31dc3c['shift']());}}}(a213_0x3baa,0xb9bad));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x9a59f9){const _0xc1b305=a213_0x55d0;if(!_0x9a59f9)return undefined;let _0x3cdbe0;try{_0x3cdbe0=JSON[_0xc1b305(0x1f3)](_0x9a59f9);}catch{throw CliErrors['validation'](_0xc1b305(0x1ef)+_0x9a59f9);}if(!_0x3cdbe0||typeof _0x3cdbe0!==_0xc1b305(0x1f1)||Array['isArray'](_0x3cdbe0))throw CliErrors[_0xc1b305(0x1f4)](_0xc1b305(0x1e7),_0xc1b305(0x1f2));return _0x3cdbe0;}function a213_0x55d0(_0x32ed04,_0x4fd049){_0x32ed04=_0x32ed04-0x1e6;const _0x3baacc=a213_0x3baa();let _0x55d017=_0x3baacc[_0x32ed04];return _0x55d017;}function a213_0x3baa(){const _0xdbb5e1=['parse','validation','6565563tOJJIG','--params\x20must\x20be\x20a\x20JSON\x20object','1257324fAmrsu','18qZutCL','86508ZSaUPo','2358895MDdbbB','241354gDIzDz','7WRInnJ','5672756rOyDEk','Invalid\x20JSON\x20for\x20--params:\x20','10561552SMPIza','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a213_0x3baa=function(){return _0xdbb5e1;};return a213_0x3baa();}
1
+ (function(_0xcbfee8,_0x150d20){const _0x18b303=a213_0x3031,_0x41105c=_0xcbfee8();while(!![]){try{const _0x5e396e=-parseInt(_0x18b303(0x13a))/0x1+parseInt(_0x18b303(0x12d))/0x2*(-parseInt(_0x18b303(0x12f))/0x3)+-parseInt(_0x18b303(0x134))/0x4*(parseInt(_0x18b303(0x135))/0x5)+-parseInt(_0x18b303(0x139))/0x6*(-parseInt(_0x18b303(0x133))/0x7)+parseInt(_0x18b303(0x13b))/0x8+parseInt(_0x18b303(0x137))/0x9+parseInt(_0x18b303(0x12e))/0xa*(parseInt(_0x18b303(0x131))/0xb);if(_0x5e396e===_0x150d20)break;else _0x41105c['push'](_0x41105c['shift']());}catch(_0x5a004c){_0x41105c['push'](_0x41105c['shift']());}}}(a213_0x51f0,0xb92b4));import{CliErrors}from'../errors.js';function a213_0x51f0(){const _0x48bee1=['object','4968027HlHYVz','Invalid\x20JSON\x20for\x20--params:\x20','32898iNDhMR','1424533jUudSs','5600416LJbovl','validation','755266REEWJB','4017620mlhaWQ','6aPwLSn','parse','33oUTgLK','--params\x20must\x20be\x20a\x20JSON\x20object','1379TnkLaO','4zjHgHF','2996205syChHb'];a213_0x51f0=function(){return _0x48bee1;};return a213_0x51f0();}function a213_0x3031(_0x435274,_0x319671){_0x435274=_0x435274-0x12d;const _0x51f0f6=a213_0x51f0();let _0x3031e1=_0x51f0f6[_0x435274];return _0x3031e1;}export function parseJsonParams(_0x5ccfd0){const _0x580483=a213_0x3031;if(!_0x5ccfd0)return undefined;let _0x1bffa1;try{_0x1bffa1=JSON[_0x580483(0x130)](_0x5ccfd0);}catch{throw CliErrors[_0x580483(0x13c)](_0x580483(0x138)+_0x5ccfd0);}if(!_0x1bffa1||typeof _0x1bffa1!==_0x580483(0x136)||Array['isArray'](_0x1bffa1))throw CliErrors['validation'](_0x580483(0x132),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x1bffa1;}
@@ -1 +1 @@
1
- const a214_0x466007=a214_0x4c2f;(function(_0x2eff49,_0x4ce57a){const _0x5ad0df=a214_0x4c2f,_0x5220b6=_0x2eff49();while(!![]){try{const _0x4d6493=parseInt(_0x5ad0df(0x1dd))/0x1*(-parseInt(_0x5ad0df(0x1d6))/0x2)+parseInt(_0x5ad0df(0x1e2))/0x3*(parseInt(_0x5ad0df(0x1da))/0x4)+-parseInt(_0x5ad0df(0x1dc))/0x5+-parseInt(_0x5ad0df(0x1e0))/0x6*(-parseInt(_0x5ad0df(0x1d7))/0x7)+-parseInt(_0x5ad0df(0x1e3))/0x8+-parseInt(_0x5ad0df(0x1db))/0x9+parseInt(_0x5ad0df(0x1df))/0xa*(parseInt(_0x5ad0df(0x1d9))/0xb);if(_0x4d6493===_0x4ce57a)break;else _0x5220b6['push'](_0x5220b6['shift']());}catch(_0x314b60){_0x5220b6['push'](_0x5220b6['shift']());}}}(a214_0x266e,0xd6622));export const isWindows=process[a214_0x466007(0x1de)]===a214_0x466007(0x1e1);function a214_0x266e(){const _0x3df029=['82809hEnExX','8430400PiaMGa','848879kYvhjv','platform','145270uqEwih','17154npSvbK','win32','3uNoZRQ','145216wvThqY','2ZwTFry','1995MOFNty','.cmd','1716tSNbnS','1437596cPyqbk'];a214_0x266e=function(){return _0x3df029;};return a214_0x266e();}function a214_0x4c2f(_0x4215c9,_0x1d73a2){_0x4215c9=_0x4215c9-0x1d6;const _0x266e84=a214_0x266e();let _0x4c2f91=_0x266e84[_0x4215c9];return _0x4c2f91;}export function resolveNpmBin(_0x385af8){const _0x371938=a214_0x466007;return isWindows?_0x385af8+_0x371938(0x1d8):_0x385af8;}
1
+ const a214_0x585514=a214_0x3fd3;(function(_0x2bc0ae,_0x5546ac){const _0x30b316=a214_0x3fd3,_0x1752f8=_0x2bc0ae();while(!![]){try{const _0x1b3a62=parseInt(_0x30b316(0x75))/0x1+parseInt(_0x30b316(0x6e))/0x2*(parseInt(_0x30b316(0x73))/0x3)+-parseInt(_0x30b316(0x70))/0x4+parseInt(_0x30b316(0x74))/0x5+-parseInt(_0x30b316(0x6d))/0x6+-parseInt(_0x30b316(0x71))/0x7+parseInt(_0x30b316(0x6c))/0x8;if(_0x1b3a62===_0x5546ac)break;else _0x1752f8['push'](_0x1752f8['shift']());}catch(_0x464b65){_0x1752f8['push'](_0x1752f8['shift']());}}}(a214_0x3b37,0xd3054));export const isWindows=process[a214_0x585514(0x76)]===a214_0x585514(0x72);function a214_0x3fd3(_0x252f26,_0x23601c){_0x252f26=_0x252f26-0x6c;const _0x3b3789=a214_0x3b37();let _0x3fd348=_0x3b3789[_0x252f26];return _0x3fd348;}function a214_0x3b37(){const _0x4b32a5=['3504696BcJrYS','2843290KrefNb','1580406UcUcHG','platform','6930400uofRTC','4409454WcRSWZ','2iGUuXj','.cmd','5498708taFOsU','8467690PSEEEe','win32'];a214_0x3b37=function(){return _0x4b32a5;};return a214_0x3b37();}export function resolveNpmBin(_0x55e887){const _0x187fdf=a214_0x585514;return isWindows?_0x55e887+_0x187fdf(0x6f):_0x55e887;}