@lovrabet/rabetbase-cli 2.3.10-beta.2 → 2.3.10

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 (259) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/regroup-start.js +1 -1
  109. package/lib/commands/menu/shared/compare-table.js +1 -1
  110. package/lib/commands/menu/shared/delete-plan.js +1 -1
  111. package/lib/commands/menu/shared/facts.js +1 -1
  112. package/lib/commands/menu/shared/index.js +1 -1
  113. package/lib/commands/menu/shared/inquirer.js +1 -1
  114. package/lib/commands/menu/shared/local-pages.js +1 -1
  115. package/lib/commands/menu/shared/logic.js +1 -1
  116. package/lib/commands/menu/shared/mutations.js +1 -1
  117. package/lib/commands/menu/shared/service.js +1 -1
  118. package/lib/commands/menu/shared/sync-core.js +1 -1
  119. package/lib/commands/menu/shared/update-core.js +1 -1
  120. package/lib/commands/menu/shared/valid-url.js +1 -1
  121. package/lib/commands/menu/sync.js +1 -1
  122. package/lib/commands/menu/update.js +1 -1
  123. package/lib/commands/notification/config-list.js +1 -1
  124. package/lib/commands/notification/index.js +1 -1
  125. package/lib/commands/page/generate-start.js +1 -1
  126. package/lib/commands/page/generate-status.js +1 -1
  127. package/lib/commands/page/index.js +1 -1
  128. package/lib/commands/page/pull.js +1 -1
  129. package/lib/commands/page/push.js +1 -1
  130. package/lib/commands/page/relation-audit.js +1 -1
  131. package/lib/commands/page/shared.js +1 -1
  132. package/lib/commands/page/standard-page-status.js +1 -1
  133. package/lib/commands/page/sync.js +1 -1
  134. package/lib/commands/permit/index.js +1 -1
  135. package/lib/commands/permit/page-get.js +1 -1
  136. package/lib/commands/permit/page-set.js +1 -1
  137. package/lib/commands/permit/role-apis-set.js +1 -1
  138. package/lib/commands/permit/role-menus-set.js +1 -1
  139. package/lib/commands/permit/role-menus.js +1 -1
  140. package/lib/commands/permit/shared.js +1 -1
  141. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  142. package/lib/commands/project/create/format-elapsed.js +1 -1
  143. package/lib/commands/project/create/main.js +1 -1
  144. package/lib/commands/project/create/non-interactive.js +1 -1
  145. package/lib/commands/project/create/project-template-path.js +1 -1
  146. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  147. package/lib/commands/project/create/use-format-code.js +1 -1
  148. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  149. package/lib/commands/project/index.js +1 -1
  150. package/lib/commands/project/init.js +1 -1
  151. package/lib/commands/project/upgrade.js +1 -1
  152. package/lib/commands/registry.js +1 -1
  153. package/lib/commands/role/create.js +1 -1
  154. package/lib/commands/role/delete.js +1 -1
  155. package/lib/commands/role/detail.js +1 -1
  156. package/lib/commands/role/index.js +1 -1
  157. package/lib/commands/role/list.js +1 -1
  158. package/lib/commands/role/shared.js +1 -1
  159. package/lib/commands/role/update.js +1 -1
  160. package/lib/commands/role/user-add.js +1 -1
  161. package/lib/commands/role/user-remove.js +1 -1
  162. package/lib/commands/role/user-resolve.js +1 -1
  163. package/lib/commands/run/index.js +1 -1
  164. package/lib/commands/schema.js +1 -1
  165. package/lib/commands/sql/create.js +1 -1
  166. package/lib/commands/sql/delete.js +1 -1
  167. package/lib/commands/sql/detail.js +1 -1
  168. package/lib/commands/sql/exec.js +1 -1
  169. package/lib/commands/sql/index.js +1 -1
  170. package/lib/commands/sql/list.js +1 -1
  171. package/lib/commands/sql/pull.js +1 -1
  172. package/lib/commands/sql/push.js +1 -1
  173. package/lib/commands/sql/save.js +1 -1
  174. package/lib/commands/sql/shared.js +1 -1
  175. package/lib/commands/sql/status.js +1 -1
  176. package/lib/commands/sql/validate.js +1 -1
  177. package/lib/commands/task/index.js +1 -1
  178. package/lib/commands/task/status.js +1 -1
  179. package/lib/commands/workspace/add.js +1 -1
  180. package/lib/commands/workspace/index.js +1 -1
  181. package/lib/commands/workspace/remove.js +1 -1
  182. package/lib/config/schema.js +1 -1
  183. package/lib/constant/cdn.js +1 -1
  184. package/lib/constant/cli.js +1 -1
  185. package/lib/constant/defaults.js +1 -1
  186. package/lib/constant/domain.js +1 -1
  187. package/lib/constant/env.js +1 -1
  188. package/lib/constant/output.js +1 -1
  189. package/lib/constant/paths.js +1 -1
  190. package/lib/constant/risk.js +1 -1
  191. package/lib/context/app-resolver.js +1 -1
  192. package/lib/context/auth-resolver.js +1 -1
  193. package/lib/context/config-loader.js +1 -1
  194. package/lib/context.js +1 -1
  195. package/lib/core/alias-resolver.js +1 -1
  196. package/lib/core/api-client.js +1 -1
  197. package/lib/core/bff/config.js +1 -1
  198. package/lib/core/bff/file-system.js +1 -1
  199. package/lib/core/bff/hash.js +1 -1
  200. package/lib/core/bff/lock.js +1 -1
  201. package/lib/core/bff/utils.js +1 -1
  202. package/lib/core/db-resolver.js +1 -1
  203. package/lib/core/page/file-system.js +1 -1
  204. package/lib/core/page/hash.js +1 -1
  205. package/lib/core/page/lock.js +1 -1
  206. package/lib/core/sql-index-auditor.js +1 -1
  207. package/lib/core/sql-sync/config.js +1 -1
  208. package/lib/core/sql-sync/file-system.js +1 -1
  209. package/lib/core/sql-sync/hash.js +1 -1
  210. package/lib/core/sql-sync/lock.js +1 -1
  211. package/lib/core/sql-sync/utils.js +1 -1
  212. package/lib/core/sql-validator.js +1 -1
  213. package/lib/errors.js +1 -1
  214. package/lib/framework/build-all-flags.js +1 -1
  215. package/lib/framework/error-output.js +1 -1
  216. package/lib/framework/explicit-yes.js +1 -1
  217. package/lib/framework/flags.js +1 -1
  218. package/lib/framework/help.js +1 -1
  219. package/lib/framework/index.js +1 -1
  220. package/lib/framework/output.js +1 -1
  221. package/lib/framework/response.js +1 -1
  222. package/lib/framework/runner-alias.js +1 -1
  223. package/lib/framework/runner.js +1 -1
  224. package/lib/framework/schema-export.js +1 -1
  225. package/lib/framework/types.js +1 -1
  226. package/lib/generated/build-info.js +1 -1
  227. package/lib/help.js +1 -1
  228. package/lib/skills/main.js +1 -1
  229. package/lib/skills/npx-skills-add.js +1 -1
  230. package/lib/telemetry/cli-command-trace.js +1 -1
  231. package/lib/telemetry/cli-help-trace.js +1 -1
  232. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  233. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  234. package/lib/telemetry/send-cli-trace-log.js +1 -1
  235. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  236. package/lib/utils/ai_config.js +1 -1
  237. package/lib/utils/apply-jq-filter.js +1 -1
  238. package/lib/utils/cdn-config.js +1 -1
  239. package/lib/utils/check-sdk-version.js +1 -1
  240. package/lib/utils/cli-version-check.js +1 -1
  241. package/lib/utils/cli-version-policy.js +1 -1
  242. package/lib/utils/config.js +1 -1
  243. package/lib/utils/copy-directory.js +1 -1
  244. package/lib/utils/entity-with-id.js +1 -1
  245. package/lib/utils/file-utils.js +1 -1
  246. package/lib/utils/guides-cdn.js +1 -1
  247. package/lib/utils/http-client.js +1 -1
  248. package/lib/utils/is-non-interactive.js +1 -1
  249. package/lib/utils/logger.js +1 -1
  250. package/lib/utils/params.js +1 -1
  251. package/lib/utils/platform.js +1 -1
  252. package/lib/utils/rules-cdn.js +1 -1
  253. package/lib/utils/sleep.js +1 -1
  254. package/lib/utils/template-replacer.js +1 -1
  255. package/lib/utils/update-notice.js +1 -1
  256. package/lib/utils/version.js +1 -1
  257. package/lib/utils/with-active-cookie.js +1 -1
  258. package/lib/utils/write-cli-side-channel.js +1 -1
  259. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2cf6f2,_0x112f41){const _0x11a37c=a233_0x3844,_0x17b23e=_0x2cf6f2();while(!![]){try{const _0x27ecce=parseInt(_0x11a37c(0x6b))/0x1+-parseInt(_0x11a37c(0x68))/0x2*(parseInt(_0x11a37c(0x71))/0x3)+parseInt(_0x11a37c(0x74))/0x4*(-parseInt(_0x11a37c(0x72))/0x5)+parseInt(_0x11a37c(0x76))/0x6+-parseInt(_0x11a37c(0x77))/0x7*(-parseInt(_0x11a37c(0x7c))/0x8)+-parseInt(_0x11a37c(0x73))/0x9+parseInt(_0x11a37c(0x75))/0xa;if(_0x27ecce===_0x112f41)break;else _0x17b23e['push'](_0x17b23e['shift']());}catch(_0x33152c){_0x17b23e['push'](_0x17b23e['shift']());}}}(a233_0x125a,0x7bfa6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a233_0x3844(_0xf6270e,_0x35d70a){_0xf6270e=_0xf6270e-0x67;const _0x125a8b=a233_0x125a();let _0x38442e=_0x125a8b[_0xf6270e];return _0x38442e;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a233_0x125a(){const _0x17f3f4=['2924586VPkHNQ','514284KxDdzS','5945820trqgbu','298038GYnaGs','28ywKiJN','[REDACTED]','rabetbase.command','command','test','1805256wZwTko','flags','21108PpteTV','entries','error','534164EthtAz','message','stringify','service','some','durationMs','99WyxPHO','35gvLwbZ'];a233_0x125a=function(){return _0x17f3f4;};return a233_0x125a();}function isSensitiveKey(_0x221809){const _0x45a0a8=a233_0x3844;return SENSITIVE_PATTERNS[_0x45a0a8(0x6f)](_0x4e00b8=>_0x4e00b8[_0x45a0a8(0x7b)](_0x221809));}function sanitizeFlags(_0x134dc7){const _0x33cad5=a233_0x3844,_0x270b35={};for(const [_0x4f2037,_0x1e5eef]of Object[_0x33cad5(0x69)](_0x134dc7)){isSensitiveKey(_0x4f2037)?_0x270b35[_0x4f2037]=_0x1e5eef!=null&&_0x1e5eef!==''?_0x33cad5(0x78):_0x1e5eef:_0x270b35[_0x4f2037]=_0x1e5eef;}return _0x270b35;}export async function reportCommandTrace(_0x2ef95c){const _0x3e4931=a233_0x3844;try{const _0x5888a5=sanitizeFlags(_0x2ef95c[_0x3e4931(0x67)]);await sendCliTraceLog({'spanName':_0x3e4931(0x79),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2ef95c[_0x3e4931(0x6e)],'command.name':_0x2ef95c[_0x3e4931(0x7a)],'command.flags':JSON[_0x3e4931(0x6d)](_0x5888a5),..._0x2ef95c[_0x3e4931(0x70)]!=null?{'command.duration_ms':_0x2ef95c[_0x3e4931(0x70)]}:{},..._0x2ef95c[_0x3e4931(0x6a)]?{'command.error':_0x2ef95c[_0x3e4931(0x6a)]instanceof Error?_0x2ef95c['error'][_0x3e4931(0x6c)]:String(_0x2ef95c[_0x3e4931(0x6a)])}:{}}});}catch{}}
1
+ (function(_0x2bde5d,_0x3d382e){const _0x3b6daf=a233_0x49fd,_0x2fce8b=_0x2bde5d();while(!![]){try{const _0x449481=-parseInt(_0x3b6daf(0x1bf))/0x1+parseInt(_0x3b6daf(0x1bd))/0x2*(parseInt(_0x3b6daf(0x1b3))/0x3)+-parseInt(_0x3b6daf(0x1c3))/0x4+-parseInt(_0x3b6daf(0x1b6))/0x5*(parseInt(_0x3b6daf(0x1ba))/0x6)+parseInt(_0x3b6daf(0x1b8))/0x7*(parseInt(_0x3b6daf(0x1bb))/0x8)+-parseInt(_0x3b6daf(0x1b7))/0x9*(-parseInt(_0x3b6daf(0x1c2))/0xa)+parseInt(_0x3b6daf(0x1c8))/0xb*(parseInt(_0x3b6daf(0x1c0))/0xc);if(_0x449481===_0x3d382e)break;else _0x2fce8b['push'](_0x2fce8b['shift']());}catch(_0x2391f3){_0x2fce8b['push'](_0x2fce8b['shift']());}}}(a233_0x1d88,0x2d336));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4ecd37){const _0x588317=a233_0x49fd;return SENSITIVE_PATTERNS[_0x588317(0x1be)](_0x9a6fcc=>_0x9a6fcc[_0x588317(0x1bc)](_0x4ecd37));}function sanitizeFlags(_0x186708){const _0x244857=a233_0x49fd,_0x1c3cff={};for(const [_0x2600e2,_0x358006]of Object[_0x244857(0x1c1)](_0x186708)){isSensitiveKey(_0x2600e2)?_0x1c3cff[_0x2600e2]=_0x358006!=null&&_0x358006!==''?_0x244857(0x1c6):_0x358006:_0x1c3cff[_0x2600e2]=_0x358006;}return _0x1c3cff;}export async function reportCommandTrace(_0x1b0cd8){const _0x21b7e7=a233_0x49fd;try{const _0x209088=sanitizeFlags(_0x1b0cd8['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1b0cd8[_0x21b7e7(0x1c7)],'command.name':_0x1b0cd8[_0x21b7e7(0x1c5)],'command.flags':JSON[_0x21b7e7(0x1b9)](_0x209088),..._0x1b0cd8[_0x21b7e7(0x1b5)]!=null?{'command.duration_ms':_0x1b0cd8['durationMs']}:{},..._0x1b0cd8['error']?{'command.error':_0x1b0cd8['error']instanceof Error?_0x1b0cd8[_0x21b7e7(0x1b4)][_0x21b7e7(0x1c4)]:String(_0x1b0cd8[_0x21b7e7(0x1b4)])}:{}}});}catch{}}function a233_0x49fd(_0x2682b5,_0x332c3e){_0x2682b5=_0x2682b5-0x1b3;const _0x1d882c=a233_0x1d88();let _0x49fdd1=_0x1d882c[_0x2682b5];return _0x49fdd1;}function a233_0x1d88(){const _0x558af0=['service','4609axbUNm','415578wxodFr','error','durationMs','13605RODDxD','234hziLuJ','153251xNulvc','stringify','102lPFVQN','16yEsAEk','test','2thTUrL','some','282405yPogNg','16932ILWMtV','entries','2230OrXNbw','1062060YttDQN','message','command','[REDACTED]'];a233_0x1d88=function(){return _0x558af0;};return a233_0x1d88();}
@@ -1 +1 @@
1
- (function(_0x4a12f0,_0xb7b25e){var _0x3f914a=a234_0x5957,_0x2ef381=_0x4a12f0();while(!![]){try{var _0x4051fb=parseInt(_0x3f914a(0x75))/0x1+parseInt(_0x3f914a(0x71))/0x2*(parseInt(_0x3f914a(0x70))/0x3)+-parseInt(_0x3f914a(0x77))/0x4+parseInt(_0x3f914a(0x76))/0x5+parseInt(_0x3f914a(0x72))/0x6*(parseInt(_0x3f914a(0x6e))/0x7)+parseInt(_0x3f914a(0x6f))/0x8+-parseInt(_0x3f914a(0x78))/0x9;if(_0x4051fb===_0xb7b25e)break;else _0x2ef381['push'](_0x2ef381['shift']());}catch(_0xa0c4d6){_0x2ef381['push'](_0x2ef381['shift']());}}}(a234_0x5abb,0xdf892));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a234_0x5abb(){var _0x5e1920=['10262152hcDXtU','4708707lhxNyr','2QktiqS','10002iYlbmo','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','1341785tBAsTw','4498940PlpAoK','6217536cwbCrV','31926987hutBZf','error','3878OpCaGl'];a234_0x5abb=function(){return _0x5e1920;};return a234_0x5abb();}function a234_0x5957(_0x160b47,_0x184b15){_0x160b47=_0x160b47-0x6e;var _0x5abbf5=a234_0x5abb();var _0x595708=_0x5abbf5[_0x160b47];return _0x595708;}export async function reportCliHelpTrace(_0x52eeaf,_0x448f2d){var _0x175264=a234_0x5957;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x52eeaf,..._0x448f2d?.[_0x175264(0x74)]&&{'rabetbase.help.service':_0x448f2d[_0x175264(0x74)]}}});}catch(_0x5b31b2){console[_0x175264(0x79)](_0x175264(0x73),_0x5b31b2);}}
1
+ function a234_0x8da9(_0x3d9fa3,_0x286b){_0x3d9fa3=_0x3d9fa3-0x97;var _0x1e5d68=a234_0x1e5d();var _0x8da940=_0x1e5d68[_0x3d9fa3];return _0x8da940;}(function(_0x51243c,_0x5135df){var _0x2bd9af=a234_0x8da9,_0x5c8116=_0x51243c();while(!![]){try{var _0xa96e56=parseInt(_0x2bd9af(0x9b))/0x1+-parseInt(_0x2bd9af(0x97))/0x2+parseInt(_0x2bd9af(0x9e))/0x3+parseInt(_0x2bd9af(0xa1))/0x4*(-parseInt(_0x2bd9af(0x99))/0x5)+-parseInt(_0x2bd9af(0xa3))/0x6+-parseInt(_0x2bd9af(0xa2))/0x7*(-parseInt(_0x2bd9af(0x9d))/0x8)+parseInt(_0x2bd9af(0x9a))/0x9;if(_0xa96e56===_0x5135df)break;else _0x5c8116['push'](_0x5c8116['shift']());}catch(_0x18eacc){_0x5c8116['push'](_0x5c8116['shift']());}}}(a234_0x1e5d,0x91746));function a234_0x1e5d(){var _0xeca649=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','44xpxBzg','6171851UcHNBs','5567652ggekCD','701338SCKKSy','cli.help','529855HZkoUy','9047124QHcvdq','328520hufryQ','error','8owmiET','2473875qpQUkL','service'];a234_0x1e5d=function(){return _0xeca649;};return a234_0x1e5d();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5b8e5f,_0x1c93ca){var _0x41bbf0=a234_0x8da9;try{await sendCliTraceLog({'spanName':_0x41bbf0(0x98),'logData':{'rabetbase.help.kind':_0x5b8e5f,..._0x1c93ca?.[_0x41bbf0(0x9f)]&&{'rabetbase.help.service':_0x1c93ca[_0x41bbf0(0x9f)]}}});}catch(_0x49dd4a){console[_0x41bbf0(0x9c)](_0x41bbf0(0xa0),_0x49dd4a);}}
@@ -1 +1 @@
1
- (function(_0x323444,_0x28047f){const _0x1647fe=a235_0x2a3e,_0xb5c4d6=_0x323444();while(!![]){try{const _0x2fc63e=-parseInt(_0x1647fe(0xfb))/0x1*(parseInt(_0x1647fe(0x108))/0x2)+parseInt(_0x1647fe(0xfd))/0x3+parseInt(_0x1647fe(0xfc))/0x4+parseInt(_0x1647fe(0x105))/0x5*(parseInt(_0x1647fe(0x107))/0x6)+parseInt(_0x1647fe(0x104))/0x7*(parseInt(_0x1647fe(0x106))/0x8)+parseInt(_0x1647fe(0x103))/0x9+-parseInt(_0x1647fe(0x102))/0xa;if(_0x2fc63e===_0x28047f)break;else _0xb5c4d6['push'](_0xb5c4d6['shift']());}catch(_0x2a4c2a){_0xb5c4d6['push'](_0xb5c4d6['shift']());}}}(a235_0x5205,0x91f89));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a235_0x5205(){const _0x493890=['7zZHeYJ','335FGAQMc','5467928ZCLhBN','82686aqcdcb','2EJPiJi','user','730712sNJabh','1070800LycZNm','2696052QRzZhU','username','email','production','tenant','24941290eueegO','9445824WmLZFe'];a235_0x5205=function(){return _0x493890;};return a235_0x5205();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a235_0x2a3e(_0x2f0477,_0xef991c){_0x2f0477=_0x2f0477-0xfa;const _0x520535=a235_0x5205();let _0x2a3e8a=_0x520535[_0x2f0477];return _0x2a3e8a;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3d753d=a235_0x2a3e,_0xb84e7c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4ffd5f=_0xb84e7c?.[_0x3d753d(0xfa)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x3d753d(0x100))}),setUserContext({'id':_0x4ffd5f?.['id'],'username':_0x4ffd5f?.[_0x3d753d(0xfe)],'nickname':_0x4ffd5f?.['nickname'],'email':_0x4ffd5f?.[_0x3d753d(0xff)],'tenantCode':_0x4ffd5f?.[_0x3d753d(0x101)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xb84e7c;}
1
+ (function(_0xe5b819,_0x111478){const _0x121a94=a235_0xa275,_0x24d976=_0xe5b819();while(!![]){try{const _0x3a6925=parseInt(_0x121a94(0x1a8))/0x1+parseInt(_0x121a94(0x1ab))/0x2*(-parseInt(_0x121a94(0x1a6))/0x3)+parseInt(_0x121a94(0x1b5))/0x4*(-parseInt(_0x121a94(0x1aa))/0x5)+-parseInt(_0x121a94(0x1a1))/0x6*(parseInt(_0x121a94(0x1b3))/0x7)+-parseInt(_0x121a94(0x1a3))/0x8*(-parseInt(_0x121a94(0x1a4))/0x9)+parseInt(_0x121a94(0x1a9))/0xa+-parseInt(_0x121a94(0x1ad))/0xb*(parseInt(_0x121a94(0x1b2))/0xc);if(_0x3a6925===_0x111478)break;else _0x24d976['push'](_0x24d976['shift']());}catch(_0x1cafe9){_0x24d976['push'](_0x24d976['shift']());}}}(a235_0x2283,0x1e02b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a235_0xa275(_0x210320,_0x33c154){_0x210320=_0x210320-0x1a1;const _0x22834e=a235_0x2283();let _0xa275d3=_0x22834e[_0x210320];return _0xa275d3;}function a235_0x2283(){const _0x60bded=['production','email','unknown','username','315996JrnxjD','35fIsdkW','nickname','630516ibeKWQ','73878CJHbUZ','tenant','1400XvWeAO','6516KSbbhS','user','9rapCkd','daily','120771bJPHeQ','1489900WatlZi','5TXlXqy','18674chQMmd','tenant_code','11osQEiQ'];a235_0x2283=function(){return _0x60bded;};return a235_0x2283();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x54f6c5=a235_0xa275,_0x2c0566=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xe114b0=_0x2c0566?.[_0x54f6c5(0x1a5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x54f6c5(0x1b0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x54f6c5(0x1a7):_0x54f6c5(0x1ae))}),setUserContext({'id':_0xe114b0?.['id'],'username':_0xe114b0?.[_0x54f6c5(0x1b1)],'nickname':_0xe114b0?.[_0x54f6c5(0x1b4)],'email':_0xe114b0?.[_0x54f6c5(0x1af)],'tenantCode':_0xe114b0?.[_0x54f6c5(0x1a2)][_0x54f6c5(0x1ac)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2c0566;}
@@ -1 +1 @@
1
- (function(_0x2422f1,_0x1c1b42){const _0x3db780=a236_0x1e79,_0x3d210a=_0x2422f1();while(!![]){try{const _0x5abd16=-parseInt(_0x3db780(0x15c))/0x1+parseInt(_0x3db780(0x155))/0x2*(-parseInt(_0x3db780(0x15a))/0x3)+parseInt(_0x3db780(0x156))/0x4+-parseInt(_0x3db780(0x154))/0x5+parseInt(_0x3db780(0x157))/0x6+parseInt(_0x3db780(0x158))/0x7+parseInt(_0x3db780(0x159))/0x8;if(_0x5abd16===_0x1c1b42)break;else _0x3d210a['push'](_0x3d210a['shift']());}catch(_0x4cd3e5){_0x3d210a['push'](_0x3d210a['shift']());}}}(a236_0x291b,0xf1591));function a236_0x1e79(_0x3ae68f,_0x2f0683){_0x3ae68f=_0x3ae68f-0x151;const _0x291ba3=a236_0x291b();let _0x1e79fc=_0x291ba3[_0x3ae68f];return _0x1e79fc;}function a236_0x291b(){const _0x9f05bb=['SIGINT','5675675GgkLGs','2WgOvNl','4759524bOlycT','765606dfaRMb','1821659gwikKn','18316672NlYZjr','5137254kdDHkH','exit','31189xjFpVP','then','beforeExit','once'];a236_0x291b=function(){return _0x9f05bb;};return a236_0x291b();}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 _0x3de1b4=a236_0x1e79;process[_0x3de1b4(0x152)](_0x3de1b4(0x151),()=>{void flushOtelNodeIfUsed();});const _0x3bb743=()=>{const _0x1b63f4=_0x3de1b4;void flushOtelNodeIfUsed()[_0x1b63f4(0x15d)](()=>process[_0x1b63f4(0x15b)](0x0));};process[_0x3de1b4(0x152)](_0x3de1b4(0x153),_0x3bb743),process['once']('SIGTERM',_0x3bb743);}export async function exitWithOtelShutdown(_0x24659d){const _0x9dfd78=a236_0x1e79;await flushOtelNodeIfUsed(),process[_0x9dfd78(0x15b)](_0x24659d);}
1
+ function a236_0x2707(){const _0x157f90=['SIGTERM','4073388RSaZuv','then','4556259jSqSOZ','once','beforeExit','20CzDTjO','6MmdrXP','1418781klxRZq','SIGINT','exit','24wTvYyF','20BAMuXh','3349122YjBiRI','19316275dtFWUQ','413899XIEmAR','1030254IKkYAr'];a236_0x2707=function(){return _0x157f90;};return a236_0x2707();}(function(_0x17c7b2,_0x1e6905){const _0x2951bd=a236_0x2a96,_0x208736=_0x17c7b2();while(!![]){try{const _0x363d6f=parseInt(_0x2951bd(0x1be))/0x1*(-parseInt(_0x2951bd(0x1c7))/0x2)+-parseInt(_0x2951bd(0x1cd))/0x3+-parseInt(_0x2951bd(0x1c1))/0x4+-parseInt(_0x2951bd(0x1c6))/0x5*(-parseInt(_0x2951bd(0x1bf))/0x6)+parseInt(_0x2951bd(0x1c8))/0x7*(parseInt(_0x2951bd(0x1cb))/0x8)+-parseInt(_0x2951bd(0x1c3))/0x9+-parseInt(_0x2951bd(0x1cc))/0xa*(-parseInt(_0x2951bd(0x1bd))/0xb);if(_0x363d6f===_0x1e6905)break;else _0x208736['push'](_0x208736['shift']());}catch(_0x57f24d){_0x208736['push'](_0x208736['shift']());}}}(a236_0x2707,0xe1a6a));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a236_0x2a96(_0x4ddb6c,_0x583f54){_0x4ddb6c=_0x4ddb6c-0x1bd;const _0x270772=a236_0x2707();let _0x2a9644=_0x270772[_0x4ddb6c];return _0x2a9644;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x503267=a236_0x2a96;process[_0x503267(0x1c4)](_0x503267(0x1c5),()=>{void flushOtelNodeIfUsed();});const _0xcfd67d=()=>{const _0x8342ba=_0x503267;void flushOtelNodeIfUsed()[_0x8342ba(0x1c2)](()=>process[_0x8342ba(0x1ca)](0x0));};process[_0x503267(0x1c4)](_0x503267(0x1c9),_0xcfd67d),process['once'](_0x503267(0x1c0),_0xcfd67d);}export async function exitWithOtelShutdown(_0x309783){const _0x58bd48=a236_0x2a96;await flushOtelNodeIfUsed(),process[_0x58bd48(0x1ca)](_0x309783);}
@@ -1 +1 @@
1
- function a237_0x1faf(_0x4bb957,_0x3aa31f){_0x4bb957=_0x4bb957-0xd3;const _0x476942=a237_0x4769();let _0x1fafb3=_0x476942[_0x4bb957];return _0x1fafb3;}const a237_0x2a400d=a237_0x1faf;(function(_0x62a104,_0x3b7489){const _0x518bf6=a237_0x1faf,_0xe84f42=_0x62a104();while(!![]){try{const _0x37f027=-parseInt(_0x518bf6(0xe0))/0x1+-parseInt(_0x518bf6(0xdd))/0x2+-parseInt(_0x518bf6(0xda))/0x3*(-parseInt(_0x518bf6(0xdf))/0x4)+parseInt(_0x518bf6(0xe2))/0x5*(-parseInt(_0x518bf6(0xd5))/0x6)+-parseInt(_0x518bf6(0xd7))/0x7*(parseInt(_0x518bf6(0xd8))/0x8)+-parseInt(_0x518bf6(0xde))/0x9*(parseInt(_0x518bf6(0xd9))/0xa)+parseInt(_0x518bf6(0xd4))/0xb*(parseInt(_0x518bf6(0xe1))/0xc);if(_0x37f027===_0x3b7489)break;else _0xe84f42['push'](_0xe84f42['shift']());}catch(_0x5a19fb){_0xe84f42['push'](_0xe84f42['shift']());}}}(a237_0x4769,0x785b0));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=a237_0x2a400d(0xd3);export async function sendCliTraceLog(_0x2ab227){const _0x3868bd=a237_0x2a400d;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2ab227[_0x3868bd(0xd6)]??DEFAULT_TRACE_NAME,'version':_0x2ab227['version']??getCliVersion(),'spanName':_0x2ab227['spanName'],'eventType':'manual','logData':_0x2ab227[_0x3868bd(0xdc)],..._0x2ab227['traceparent']&&{'traceparent':_0x2ab227[_0x3868bd(0xdb)]}});}function a237_0x4769(){const _0x43c6f7=['traceparent','logData','711890xZhEqY','35928GMEJCM','74600QJYMpk','24666MnEgxO','72QtVyDz','2066270NCPWrY','rabetbase-cli','1793726EeLApQ','12jKPSRx','traceName','21obQpvu','33528IGoeXd','590YyUzdu','156NGzJgx'];a237_0x4769=function(){return _0x43c6f7;};return a237_0x4769();}
1
+ const a237_0xb0a551=a237_0x5abd;function a237_0x3437(){const _0x5c8542=['96684dDvOgm','7Vonipg','traceparent','traceName','809224qHjFWW','1330735qCAPTn','1436274ADHpGW','192769VVkxcs','rabetbase-cli','1180176faueIV','353166xUJCWl','version','logData','manual'];a237_0x3437=function(){return _0x5c8542;};return a237_0x3437();}(function(_0xbde007,_0x26d1ec){const _0x322914=a237_0x5abd,_0x226db6=_0xbde007();while(!![]){try{const _0x32ad0f=parseInt(_0x322914(0x93))/0x1+-parseInt(_0x322914(0x9a))/0x2+parseInt(_0x322914(0x96))/0x3+parseInt(_0x322914(0x95))/0x4+-parseInt(_0x322914(0x9f))/0x5+parseInt(_0x322914(0xa0))/0x6*(-parseInt(_0x322914(0x9b))/0x7)+parseInt(_0x322914(0x9e))/0x8;if(_0x32ad0f===_0x26d1ec)break;else _0x226db6['push'](_0x226db6['shift']());}catch(_0x4815c8){_0x226db6['push'](_0x226db6['shift']());}}}(a237_0x3437,0x254f4));function a237_0x5abd(_0x286fc8,_0x25c3a3){_0x286fc8=_0x286fc8-0x93;const _0x3437f9=a237_0x3437();let _0x5abddc=_0x3437f9[_0x286fc8];return _0x5abddc;}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=a237_0xb0a551(0x94);export async function sendCliTraceLog(_0x258e2f){const _0x9fa74d=a237_0xb0a551;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x258e2f[_0x9fa74d(0x9d)]??DEFAULT_TRACE_NAME,'version':_0x258e2f[_0x9fa74d(0x97)]??getCliVersion(),'spanName':_0x258e2f['spanName'],'eventType':_0x9fa74d(0x99),'logData':_0x258e2f[_0x9fa74d(0x98)],..._0x258e2f[_0x9fa74d(0x9c)]&&{'traceparent':_0x258e2f[_0x9fa74d(0x9c)]}});}
@@ -1 +1 @@
1
- const a238_0x2ea74b=a238_0x3dec;function a238_0x3dec(_0x17adbe,_0x3e2077){_0x17adbe=_0x17adbe-0x1e7;const _0x19468f=a238_0x1946();let _0x3dec4d=_0x19468f[_0x17adbe];return _0x3dec4d;}function a238_0x1946(){const _0x585ef4=['346690jvfozT','10108210PfHrgf','57cEcKda','originalBytes','title','description','sanitize','platform-issue-log-collect','redactionKinds','44592IUGZPd','117vFATMg','redactionCount','1131049Xaxelm','223866ppRWst','join','1185RMZOzO','340932TQNjSn','8797168KBXeBV'];a238_0x1946=function(){return _0x585ef4;};return a238_0x1946();}(function(_0x155bad,_0x2a4b2c){const _0x11e4f2=a238_0x3dec,_0x1b9c50=_0x155bad();while(!![]){try{const _0x562624=parseInt(_0x11e4f2(0x1eb))/0x1+parseInt(_0x11e4f2(0x1ec))/0x2+parseInt(_0x11e4f2(0x1f3))/0x3*(parseInt(_0x11e4f2(0x1ef))/0x4)+-parseInt(_0x11e4f2(0x1ee))/0x5*(parseInt(_0x11e4f2(0x1e8))/0x6)+parseInt(_0x11e4f2(0x1f2))/0x7+-parseInt(_0x11e4f2(0x1f0))/0x8+parseInt(_0x11e4f2(0x1e9))/0x9*(-parseInt(_0x11e4f2(0x1f1))/0xa);if(_0x562624===_0x2a4b2c)break;else _0x1b9c50['push'](_0x1b9c50['shift']());}catch(_0x2ca155){_0x1b9c50['push'](_0x1b9c50['shift']());}}}(a238_0x1946,0xf2d98));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a238_0x2ea74b(0x1f8);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3bf092){const _0x422b71=a238_0x2ea74b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3bf092[_0x422b71(0x1f5)],'issue.description':_0x3bf092[_0x422b71(0x1f6)],..._0x3bf092[_0x422b71(0x1f7)]?{'issue.description_original_bytes':_0x3bf092[_0x422b71(0x1f7)][_0x422b71(0x1f4)],'issue.description_truncated':_0x3bf092[_0x422b71(0x1f7)]['truncated'],'issue.description_redactions':_0x3bf092['sanitize'][_0x422b71(0x1ea)],'issue.description_redaction_kinds':_0x3bf092[_0x422b71(0x1f7)][_0x422b71(0x1e7)][_0x422b71(0x1ed)](',')}:{}}});}
1
+ function a238_0x121d(_0x41308b,_0x577fce){_0x41308b=_0x41308b-0xb7;const _0xad2238=a238_0xad22();let _0x121d7c=_0xad2238[_0x41308b];return _0x121d7c;}function a238_0xad22(){const _0x12dd24=['24gZiwcr','2407544UZuIUW','307ELQYNj','description','46749070NgCAYS','issue.log.collect','join','225198VZJLTp','title','13638834xBAiCO','platform-issue-log-collect','sanitize','543414mGRLrA','2510bAGoNe','originalBytes','redactionCount','1118551GTZmnf','205UTVYsV'];a238_0xad22=function(){return _0x12dd24;};return a238_0xad22();}const a238_0x51d394=a238_0x121d;(function(_0x10b095,_0x5b31fe){const _0x57b901=a238_0x121d,_0x4a5700=_0x10b095();while(!![]){try{const _0x5eb74b=-parseInt(_0x57b901(0xba))/0x1*(parseInt(_0x57b901(0xc5))/0x2)+-parseInt(_0x57b901(0xc4))/0x3+-parseInt(_0x57b901(0xb9))/0x4+-parseInt(_0x57b901(0xb7))/0x5*(parseInt(_0x57b901(0xbf))/0x6)+parseInt(_0x57b901(0xc8))/0x7*(parseInt(_0x57b901(0xb8))/0x8)+-parseInt(_0x57b901(0xc1))/0x9+parseInt(_0x57b901(0xbc))/0xa;if(_0x5eb74b===_0x5b31fe)break;else _0x4a5700['push'](_0x4a5700['shift']());}catch(_0x21dcd4){_0x4a5700['push'](_0x4a5700['shift']());}}}(a238_0xad22,0xe3772));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a238_0x51d394(0xc2);export const PLATFORM_ISSUE_SPAN_NAME=a238_0x51d394(0xbd);export async function sendPlatformIssueCollectLog(_0x4ea141){const _0x454ca0=a238_0x51d394;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4ea141[_0x454ca0(0xc0)],'issue.description':_0x4ea141[_0x454ca0(0xbb)],..._0x4ea141[_0x454ca0(0xc3)]?{'issue.description_original_bytes':_0x4ea141[_0x454ca0(0xc3)][_0x454ca0(0xc6)],'issue.description_truncated':_0x4ea141[_0x454ca0(0xc3)]['truncated'],'issue.description_redactions':_0x4ea141[_0x454ca0(0xc3)][_0x454ca0(0xc7)],'issue.description_redaction_kinds':_0x4ea141[_0x454ca0(0xc3)]['redactionKinds'][_0x454ca0(0xbe)](',')}:{}}});}
@@ -1 +1 @@
1
- function a240_0x4bb8(_0x250c43,_0x4c7324){_0x250c43=_0x250c43-0x6d;const _0x49a5ad=a240_0x49a5();let _0x4bb8bb=_0x49a5ad[_0x250c43];return _0x4bb8bb;}const a240_0x4a6bd3=a240_0x4bb8;(function(_0x515c96,_0x5893a0){const _0x2314af=a240_0x4bb8,_0xdf3916=_0x515c96();while(!![]){try{const _0x8c2140=parseInt(_0x2314af(0x99))/0x1*(-parseInt(_0x2314af(0xa0))/0x2)+parseInt(_0x2314af(0x81))/0x3+parseInt(_0x2314af(0x94))/0x4*(-parseInt(_0x2314af(0x6f))/0x5)+parseInt(_0x2314af(0x8c))/0x6+parseInt(_0x2314af(0x8a))/0x7*(parseInt(_0x2314af(0x89))/0x8)+-parseInt(_0x2314af(0x84))/0x9+-parseInt(_0x2314af(0x9a))/0xa*(parseInt(_0x2314af(0x80))/0xb);if(_0x8c2140===_0x5893a0)break;else _0xdf3916['push'](_0xdf3916['shift']());}catch(_0x1b3a0f){_0xdf3916['push'](_0xdf3916['shift']());}}}(a240_0x49a5,0x8b558));export const CORE_IDE_CONFIGS={'cursor':{'name':a240_0x4a6bd3(0x72),'description':a240_0x4a6bd3(0x7f),'folders':[a240_0x4a6bd3(0x98),a240_0x4a6bd3(0x7e)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a240_0x4a6bd3(0x93)}]},'windsurf':{'name':a240_0x4a6bd3(0x7a),'description':'Windsurf\x20IDE','folders':[a240_0x4a6bd3(0x88)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x96),'template':'SKILL.md.tpl'}]},'claude':{'name':a240_0x4a6bd3(0x9b),'description':a240_0x4a6bd3(0x9b),'folders':[a240_0x4a6bd3(0x83)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x6e),'template':a240_0x4a6bd3(0x93)}]},'cline':{'name':a240_0x4a6bd3(0x90),'description':a240_0x4a6bd3(0x95),'folders':[a240_0x4a6bd3(0xa2)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x7c),'template':'SKILL.md.tpl'}]},'codex':{'name':'Codex','description':a240_0x4a6bd3(0x8f),'folders':['.codex'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x8b),'template':'SKILL.md.tpl'}]},'opencode':{'name':a240_0x4a6bd3(0x9f),'description':a240_0x4a6bd3(0x75),'folders':[a240_0x4a6bd3(0x9c)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x76),'template':'SKILL.md.tpl'}]},'qoder':{'name':a240_0x4a6bd3(0x77),'description':a240_0x4a6bd3(0x78),'folders':[a240_0x4a6bd3(0x74)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x9d),'template':a240_0x4a6bd3(0x93)},{'type':a240_0x4a6bd3(0xa3),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a240_0x4a6bd3(0x8e),'description':a240_0x4a6bd3(0xa1),'folders':['.codebuddy'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x92),'template':a240_0x4a6bd3(0x93)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x8d),'template':a240_0x4a6bd3(0x93)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a240_0x4a6bd3(0x7d),'folders':[a240_0x4a6bd3(0x82)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x85),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a240_0x4a6bd3(0x73),'description':a240_0x4a6bd3(0x97),'folders':[a240_0x4a6bd3(0x82)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x85),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=['claude',a240_0x4a6bd3(0x70),'codebuddy',a240_0x4a6bd3(0x6d),'cursor',a240_0x4a6bd3(0x7b),a240_0x4a6bd3(0x71),a240_0x4a6bd3(0x91),a240_0x4a6bd3(0x86)];function a240_0x49a5(){const _0x18f29c=['.opencode/skills/lovrabet/SKILL.md','Qoder','Qoder\x20IDE','codebuddy','Windsurf','opencode','.cline/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.cursor','Cursor\x20IDE','12606jVfypy','1213287SQfcIP','.agent','.claude','2959902pcBCFn','.agent/skills/lovrabet/SKILL.md','windsurf','cursor','.windsurf','7284296qicsLn','7JpKMPD','.codex/skills/lovrabet/SKILL.md','5336646yQwIuF','.trae/skills/lovrabet/SKILL.md','CodeBuddy','Codex\x20IDE','Cline','trae','.codebuddy/skills/lovrabet/SKILL.md','SKILL.md.tpl','244nwzEgk','Cline\x20IDE','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','.cursorrules','4PnmsHa','1230ugOCqE','Claude\x20Code','.opencode','.qoder/rules/rabetbase.md','claude','OpenCode','175822dIFAQB','CodeBuddy\x20IDE','.cline','file','codex','.claude/skills/lovrabet/SKILL.md','66575DXppQz','cline','qoder','Cursor','Antigravity','.qoder','OpenCode\x20IDE'];a240_0x49a5=function(){return _0x18f29c;};return a240_0x49a5();}export const IDE_LIST=['antigravity','claude',a240_0x4a6bd3(0x70),a240_0x4a6bd3(0x79),a240_0x4a6bd3(0x6d),'cursor',a240_0x4a6bd3(0x7b),'qoder',a240_0x4a6bd3(0x91),a240_0x4a6bd3(0x86),'agent'];export const ALL_CORE_IDES=[a240_0x4a6bd3(0x87),a240_0x4a6bd3(0x86),a240_0x4a6bd3(0x9e),a240_0x4a6bd3(0x70),a240_0x4a6bd3(0x6d),'opencode','qoder',a240_0x4a6bd3(0x79),'trae'];
1
+ const a240_0x582c6d=a240_0x55cf;function a240_0x55cf(_0x499ec7,_0x4bdeb6){_0x499ec7=_0x499ec7-0x80;const _0x3707d0=a240_0x3707();let _0x55cf87=_0x3707d0[_0x499ec7];return _0x55cf87;}(function(_0x222df1,_0x23aa3d){const _0x3a3203=a240_0x55cf,_0x317f53=_0x222df1();while(!![]){try{const _0x12a525=-parseInt(_0x3a3203(0xa7))/0x1+-parseInt(_0x3a3203(0x95))/0x2*(parseInt(_0x3a3203(0x8a))/0x3)+-parseInt(_0x3a3203(0x8b))/0x4+-parseInt(_0x3a3203(0x8f))/0x5+-parseInt(_0x3a3203(0xaa))/0x6*(-parseInt(_0x3a3203(0xae))/0x7)+parseInt(_0x3a3203(0x99))/0x8+parseInt(_0x3a3203(0xa5))/0x9;if(_0x12a525===_0x23aa3d)break;else _0x317f53['push'](_0x317f53['shift']());}catch(_0x13a096){_0x317f53['push'](_0x317f53['shift']());}}}(a240_0x3707,0x89491));export const CORE_IDE_CONFIGS={'cursor':{'name':a240_0x582c6d(0xa3),'description':'Cursor\x20IDE','folders':[a240_0x582c6d(0x89),'.cursor'],'files':[{'type':'file','path':a240_0x582c6d(0x91),'template':a240_0x582c6d(0xa8)}]},'windsurf':{'name':a240_0x582c6d(0xa4),'description':a240_0x582c6d(0x9d),'folders':[a240_0x582c6d(0xb2)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x94),'template':a240_0x582c6d(0xa8)}]},'claude':{'name':a240_0x582c6d(0xad),'description':a240_0x582c6d(0xad),'folders':[a240_0x582c6d(0xa9)],'files':[{'type':a240_0x582c6d(0xaf),'path':'.claude/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]},'cline':{'name':a240_0x582c6d(0x8c),'description':'Cline\x20IDE','folders':[a240_0x582c6d(0x96)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0xb5),'template':a240_0x582c6d(0xa8)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a240_0x582c6d(0x9c)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x84),'template':a240_0x582c6d(0xa8)}]},'opencode':{'name':a240_0x582c6d(0x90),'description':a240_0x582c6d(0xab),'folders':[a240_0x582c6d(0xa0)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x87),'template':a240_0x582c6d(0xa8)}]},'qoder':{'name':'Qoder','description':a240_0x582c6d(0x8e),'folders':[a240_0x582c6d(0x9f)],'files':[{'type':a240_0x582c6d(0xaf),'path':'.qoder/rules/rabetbase.md','template':a240_0x582c6d(0xa8)},{'type':'file','path':a240_0x582c6d(0xb4),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a240_0x582c6d(0x9b),'description':a240_0x582c6d(0xb0),'folders':[a240_0x582c6d(0xb6)],'files':[{'type':'file','path':a240_0x582c6d(0x86),'template':a240_0x582c6d(0xa8)}]},'trae':{'name':'Trae','description':a240_0x582c6d(0xa1),'folders':[a240_0x582c6d(0x9a)],'files':[{'type':a240_0x582c6d(0xaf),'path':a240_0x582c6d(0x9e),'template':a240_0x582c6d(0xa8)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a240_0x582c6d(0xa6),'description':a240_0x582c6d(0x88),'folders':[a240_0x582c6d(0x92)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]},'antigravity':{'name':a240_0x582c6d(0xac),'description':a240_0x582c6d(0x93),'folders':[a240_0x582c6d(0x92)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a240_0x582c6d(0xa8)}]}};export const CORE_IDE_LIST=[a240_0x582c6d(0x98),a240_0x582c6d(0xb3),a240_0x582c6d(0x82),a240_0x582c6d(0x97),a240_0x582c6d(0x8d),a240_0x582c6d(0x80),a240_0x582c6d(0x85),a240_0x582c6d(0x83),a240_0x582c6d(0xa2)];function a240_0x3707(){const _0x4561b6=['Windsurf\x20IDE','.trae/skills/lovrabet/SKILL.md','.qoder','.opencode','Trae\x20IDE','windsurf','Cursor','Windsurf','15375060yMYxig','其他\x20(通用模板)','223593IxVEhQ','SKILL.md.tpl','.claude','194604eBRyAG','OpenCode\x20IDE','Antigravity','Claude\x20Code','119fWFClm','file','CodeBuddy\x20IDE','antigravity','.windsurf','cline','.qoder/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','.codebuddy','opencode','agent','codebuddy','trae','.codex/skills/lovrabet/SKILL.md','qoder','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.cursorrules','6bIDzlG','3088336CTNJDa','Cline','cursor','Qoder\x20IDE','1643840WYrVUn','OpenCode','.cursor/skills/rabetbase.md','.agent','Antigravity\x20IDE','.windsurf/workflows/rabetbase.md','1011286RtKQpv','.cline','codex','claude','5106672EuZhvw','.trae','CodeBuddy','.codex'];a240_0x3707=function(){return _0x4561b6;};return a240_0x3707();}export const IDE_LIST=[a240_0x582c6d(0xb1),a240_0x582c6d(0x98),a240_0x582c6d(0xb3),a240_0x582c6d(0x82),'codex',a240_0x582c6d(0x8d),a240_0x582c6d(0x80),a240_0x582c6d(0x85),'trae','windsurf',a240_0x582c6d(0x81)];export const ALL_CORE_IDES=[a240_0x582c6d(0x8d),a240_0x582c6d(0xa2),a240_0x582c6d(0x98),a240_0x582c6d(0xb3),'codex',a240_0x582c6d(0x80),a240_0x582c6d(0x85),a240_0x582c6d(0x82),a240_0x582c6d(0x83)];
@@ -1 +1 @@
1
- function a241_0x38ba(){const _0x5241c7=['19thcNDH','11290430AJLZaY','1441500XvwWXZ','54306846zsBZgo','9QVhNJF','5566864DWBoDl','37764WiUYzY','2025107ximmbQ','5226FqECwM','24UhUEDW','3970oxeQZH'];a241_0x38ba=function(){return _0x5241c7;};return a241_0x38ba();}(function(_0x4c2574,_0x1114fe){const _0x1a72b7=a241_0x2b03,_0x34601c=_0x4c2574();while(!![]){try{const _0x3e2144=parseInt(_0x1a72b7(0x156))/0x1*(parseInt(_0x1a72b7(0x15c))/0x2)+-parseInt(_0x1a72b7(0x158))/0x3+-parseInt(_0x1a72b7(0x15b))/0x4+parseInt(_0x1a72b7(0x155))/0x5*(-parseInt(_0x1a72b7(0x153))/0x6)+parseInt(_0x1a72b7(0x15d))/0x7*(-parseInt(_0x1a72b7(0x154))/0x8)+parseInt(_0x1a72b7(0x15a))/0x9*(-parseInt(_0x1a72b7(0x157))/0xa)+parseInt(_0x1a72b7(0x159))/0xb;if(_0x3e2144===_0x1114fe)break;else _0x34601c['push'](_0x34601c['shift']());}catch(_0x8f9090){_0x34601c['push'](_0x34601c['shift']());}}}(a241_0x38ba,0xb3720));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a241_0x2b03(_0x3ce7d0,_0x174d81){_0x3ce7d0=_0x3ce7d0-0x153;const _0x38ba23=a241_0x38ba();let _0x2b0337=_0x38ba23[_0x3ce7d0];return _0x2b0337;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x391d7c,_0x14002a){const _0x32133e=a241_0x18e9,_0x1228c0=_0x391d7c();while(!![]){try{const _0xdd6a72=parseInt(_0x32133e(0xfe))/0x1*(parseInt(_0x32133e(0xfb))/0x2)+parseInt(_0x32133e(0xf9))/0x3+-parseInt(_0x32133e(0xfa))/0x4+parseInt(_0x32133e(0x100))/0x5*(parseInt(_0x32133e(0xf7))/0x6)+-parseInt(_0x32133e(0x101))/0x7+parseInt(_0x32133e(0xf8))/0x8*(parseInt(_0x32133e(0xfc))/0x9)+-parseInt(_0x32133e(0xff))/0xa*(-parseInt(_0x32133e(0xfd))/0xb);if(_0xdd6a72===_0x14002a)break;else _0x1228c0['push'](_0x1228c0['shift']());}catch(_0x7d1af0){_0x1228c0['push'](_0x1228c0['shift']());}}}(a241_0x343d,0xed7fd));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a241_0x18e9(_0x13da84,_0x307ee4){_0x13da84=_0x13da84-0xf7;const _0x343df6=a241_0x343d();let _0x18e9e8=_0x343df6[_0x13da84];return _0x18e9e8;}function a241_0x343d(){const _0x27c8d0=['1261345RutrEV','1915928rOjPms','18BaZJQO','16ukhUqo','2807046ixFRsC','5295836lRnzxt','36802XspxIr','3447153QcxQGM','11XjsHqi','1VDVYEt','935360xkatad'];a241_0x343d=function(){return _0x27c8d0;};return a241_0x343d();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a242_0x2723(_0x3aafc8,_0x5de4c2){_0x3aafc8=_0x3aafc8-0x12f;const _0x47875b=a242_0x4787();let _0x272367=_0x47875b[_0x3aafc8];return _0x272367;}(function(_0x1338c8,_0x34c3b6){const _0xb66892=a242_0x2723,_0x444d4d=_0x1338c8();while(!![]){try{const _0x2fccc2=-parseInt(_0xb66892(0x140))/0x1+parseInt(_0xb66892(0x13b))/0x2*(-parseInt(_0xb66892(0x136))/0x3)+parseInt(_0xb66892(0x132))/0x4*(parseInt(_0xb66892(0x137))/0x5)+-parseInt(_0xb66892(0x13e))/0x6+-parseInt(_0xb66892(0x138))/0x7*(-parseInt(_0xb66892(0x12f))/0x8)+-parseInt(_0xb66892(0x13c))/0x9+parseInt(_0xb66892(0x13f))/0xa;if(_0x2fccc2===_0x34c3b6)break;else _0x444d4d['push'](_0x444d4d['shift']());}catch(_0x53c95d){_0x444d4d['push'](_0x444d4d['shift']());}}}(a242_0x4787,0xd9b2a));import{getTemplateBaseUrl}from'../utils/config.js';function a242_0x4787(){const _0x418f88=['120AkVwvh','json','/config/index.json','28Lmrpvi','stableVersion','/config.json','node','21ddzRNz','1044755psTnTp','415884RduuFm','application/json','now','430558aDgvTJ','4168449GORAdy','cli','8349738IlDBAs','28137360EAEsvD','914146zWefCi'];a242_0x4787=function(){return _0x418f88;};return a242_0x4787();}export async function fetchCdnConfig(){const _0x188995=a242_0x2723,_0x3cd608=getTemplateBaseUrl(),_0x2a62ce=[_0x3cd608+_0x188995(0x134),_0x3cd608+_0x188995(0x131)];for(const _0x49def1 of _0x2a62ce){try{const _0x18eaf2=await fetch(_0x49def1,{'headers':{'Accept':_0x188995(0x139)}});if(!_0x18eaf2['ok'])continue;const _0x589ecb=await _0x18eaf2[_0x188995(0x130)]();if(!_0x589ecb[_0x188995(0x13d)]?.[_0x188995(0x133)]||!_0x589ecb['sdk']?.[_0x188995(0x135)]?.[_0x188995(0x133)])continue;return _0x589ecb;}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 _0x579dd4=a242_0x2723,_0x3dac6f=Date[_0x579dd4(0x13a)]();if(hasCachedConfig){const _0x149820=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3dac6f-cacheTime<_0x149820)return cachedConfig;}const _0x555d6d=await fetchCdnConfig();return cachedConfig=_0x555d6d,cacheTime=_0x3dac6f,hasCachedConfig=!![],_0x555d6d;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5362d0,_0x5bf255){const _0x1d43e9=a242_0x2247,_0x4a6ea5=_0x5362d0();while(!![]){try{const _0x17bc94=parseInt(_0x1d43e9(0x142))/0x1+-parseInt(_0x1d43e9(0x14b))/0x2+-parseInt(_0x1d43e9(0x143))/0x3*(-parseInt(_0x1d43e9(0x13c))/0x4)+-parseInt(_0x1d43e9(0x14a))/0x5*(parseInt(_0x1d43e9(0x144))/0x6)+-parseInt(_0x1d43e9(0x14e))/0x7*(-parseInt(_0x1d43e9(0x141))/0x8)+parseInt(_0x1d43e9(0x14d))/0x9*(parseInt(_0x1d43e9(0x145))/0xa)+-parseInt(_0x1d43e9(0x148))/0xb;if(_0x17bc94===_0x5bf255)break;else _0x4a6ea5['push'](_0x4a6ea5['shift']());}catch(_0x197873){_0x4a6ea5['push'](_0x4a6ea5['shift']());}}}(a242_0x5d09,0x6b604));function a242_0x2247(_0x4e9ec5,_0x3aa768){_0x4e9ec5=_0x4e9ec5-0x13c;const _0x5d0915=a242_0x5d09();let _0x2247a8=_0x5d0915[_0x4e9ec5];return _0x2247a8;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x30d61c=a242_0x2247,_0x2c805d=getTemplateBaseUrl(),_0x222043=[_0x2c805d+'/config.json',_0x2c805d+_0x30d61c(0x13d)];for(const _0x4a914a of _0x222043){try{const _0x123f9c=await fetch(_0x4a914a,{'headers':{'Accept':_0x30d61c(0x146)}});if(!_0x123f9c['ok'])continue;const _0x57aec0=await _0x123f9c[_0x30d61c(0x140)]();if(!_0x57aec0[_0x30d61c(0x13e)]?.[_0x30d61c(0x14c)]||!_0x57aec0[_0x30d61c(0x147)]?.[_0x30d61c(0x13f)]?.[_0x30d61c(0x14c)])continue;return _0x57aec0;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a242_0x5d09(){const _0x5e2df8=['71015rWuVXU','3128044hRuTvX','/config/index.json','cli','node','json','216VBaJon','416454Ylzrph','3BuVajC','6GhjBQO','7180730qZcrUM','application/json','sdk','3395678vBJFyy','now','3530760LGiSze','1471582jbriHd','stableVersion','9LlaNrx'];a242_0x5d09=function(){return _0x5e2df8;};return a242_0x5d09();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0xe704b6=a242_0x2247,_0x4435c0=Date[_0xe704b6(0x149)]();if(hasCachedConfig){const _0x56fe0d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4435c0-cacheTime<_0x56fe0d)return cachedConfig;}const _0x4b0585=await fetchCdnConfig();return cachedConfig=_0x4b0585,cacheTime=_0x4435c0,hasCachedConfig=!![],_0x4b0585;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a243_0x428409=a243_0x30d7;function a243_0x30d7(_0x5db21f,_0x2264b1){_0x5db21f=_0x5db21f-0x6e;const _0x1a68d6=a243_0x1a68();let _0x30d799=_0x1a68d6[_0x5db21f];return _0x30d799;}(function(_0x771f5,_0x5f1c34){const _0x27e1ca=a243_0x30d7,_0x323fc6=_0x771f5();while(!![]){try{const _0x53827e=-parseInt(_0x27e1ca(0x7f))/0x1+parseInt(_0x27e1ca(0x85))/0x2+-parseInt(_0x27e1ca(0x78))/0x3+-parseInt(_0x27e1ca(0x8e))/0x4*(parseInt(_0x27e1ca(0x7b))/0x5)+parseInt(_0x27e1ca(0x8a))/0x6*(-parseInt(_0x27e1ca(0x70))/0x7)+parseInt(_0x27e1ca(0x74))/0x8*(parseInt(_0x27e1ca(0x79))/0x9)+parseInt(_0x27e1ca(0x8c))/0xa;if(_0x53827e===_0x5f1c34)break;else _0x323fc6['push'](_0x323fc6['shift']());}catch(_0x520a0d){_0x323fc6['push'](_0x323fc6['shift']());}}}(a243_0x1a68,0x8b61a));import a243_0x24fa18 from'node:fs';import a243_0x46901b from'node:path';import a243_0x1a21ab from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a243_0x1a68(){const _0x3e3266=['all','some','package.json','readFileSync','join','minVersion','\x20\x20\x20Current\x20version:\x20','version','665vOBvkW','coerce','\x1b[1m','latest','8DJaIhN','utf8','existsSync','sdk','2734734WjxhKe','6258807xFDIdE','@lovrabet/sdk','4805vcaODR','utf-8','parse','\x20\x20\x20Stable\x20version:\x20','997728evngJD','\x1b[0m','test','node_modules','packageName','npm\x20install\x20','331894okVeQs','stableVersion','log','devDependencies','node','50334OcwFfD','dependencies','30519790xVzOjX','1.2.0','2648IjfFKw'];a243_0x1a68=function(){return _0x3e3266;};return a243_0x1a68();}const FALLBACK_MIN_SDK_VERSION=a243_0x428409(0x8d);function isNonNumericVersion(_0x92a31d){const _0xcea70a=a243_0x428409,_0x1f4812=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1f4812[_0xcea70a(0x90)](_0x1ab1a9=>_0x1ab1a9[_0xcea70a(0x81)](_0x92a31d));}function getInstalledVersion(_0x19b92a,_0x4c60a8){const _0x4b1113=a243_0x428409;try{const _0x40ecab=a243_0x46901b['join'](_0x19b92a,_0x4b1113(0x82),_0x4c60a8,'package.json');if(a243_0x24fa18['existsSync'](_0x40ecab)){const _0x5a8c13=JSON[_0x4b1113(0x7d)](a243_0x24fa18[_0x4b1113(0x92)](_0x40ecab,_0x4b1113(0x7c)));return _0x5a8c13[_0x4b1113(0x6f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x49488c=a243_0x428409;try{const _0x53fcb3=await getCdnConfig();return _0x53fcb3?.[_0x49488c(0x77)]?.[_0x49488c(0x89)]?.[_0x49488c(0x86)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4c40b1=a243_0x428409;try{const _0x125659=await getCdnConfig();return _0x125659?.['sdk']?.['node']?.[_0x4c40b1(0x83)]||_0x4c40b1(0x7a);}catch{return _0x4c40b1(0x7a);}}export async function checkSdkVersion(_0x11233d){const _0x485aca=a243_0x428409,_0x47fa8d=a243_0x46901b['join'](_0x11233d,_0x485aca(0x91)),[_0x476b02,_0x27e018]=await Promise[_0x485aca(0x8f)]([getSdkStableVersion(),getSdkPackageName()]),_0x2101a7=_0x476b02||FALLBACK_MIN_SDK_VERSION;if(!a243_0x24fa18[_0x485aca(0x76)](_0x47fa8d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};try{const _0x26a02e=JSON[_0x485aca(0x7d)](a243_0x24fa18[_0x485aca(0x92)](_0x47fa8d,_0x485aca(0x75))),_0x487170=_0x26a02e['dependencies']||{},_0x4711b7=_0x26a02e[_0x485aca(0x88)]||{},_0x247d55=_0x487170[_0x27e018]||_0x4711b7[_0x27e018];if(!_0x247d55)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};let _0x47aa7b=getInstalledVersion(_0x11233d,_0x27e018);!_0x47aa7b&&(_0x47aa7b=_0x247d55);if(isNonNumericVersion(_0x247d55))return{'installed':!![],'version':_0x47aa7b,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};const _0x173ed3=a243_0x1a21ab[_0x485aca(0x71)](_0x47aa7b),_0x30a703=a243_0x1a21ab['coerce'](_0x2101a7),_0x4cc880=_0x173ed3&&_0x30a703?a243_0x1a21ab['lt'](_0x173ed3,_0x30a703):![];return{'installed':!![],'version':_0x47aa7b,'needsUpgrade':_0x4cc880,'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};}}export function checkSdkVersionSync(_0x4b8e0e){const _0xe0aa6d=a243_0x428409,_0x1739fc=a243_0x46901b[_0xe0aa6d(0x93)](_0x4b8e0e,'package.json'),_0x2dadd8=_0xe0aa6d(0x7a);if(!a243_0x24fa18[_0xe0aa6d(0x76)](_0x1739fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};try{const _0x1b6712=JSON['parse'](a243_0x24fa18[_0xe0aa6d(0x92)](_0x1739fc,_0xe0aa6d(0x75))),_0x2fb304=_0x1b6712[_0xe0aa6d(0x8b)]||{},_0x52e5f8=_0x1b6712[_0xe0aa6d(0x88)]||{},_0x5624c6=_0x2fb304[_0x2dadd8]||_0x52e5f8[_0x2dadd8];if(!_0x5624c6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};let _0x5719ae=getInstalledVersion(_0x4b8e0e,_0x2dadd8);!_0x5719ae&&(_0x5719ae=_0x5624c6);if(isNonNumericVersion(_0x5624c6))return{'installed':!![],'version':_0x5719ae,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};const _0x2bde8e=a243_0x1a21ab['coerce'](_0x5719ae),_0x4d7946=_0x2bde8e?a243_0x1a21ab['lt'](_0x2bde8e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5719ae,'needsUpgrade':_0x4d7946,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3bf9e5){const _0x18a835=a243_0x428409;if(!_0x3bf9e5['needsUpgrade'])return;const _0x1bafab='\x1b[33m',_0x21cdb0=_0x18a835(0x80),_0x46d1ba=_0x18a835(0x72),_0x114af1=_0x3bf9e5[_0x18a835(0x83)]||_0x18a835(0x7a),_0x3c6bad=_0x3bf9e5['stableVersion']||_0x3bf9e5[_0x18a835(0x94)],_0x358e2c=_0x18a835(0x84)+_0x114af1+'@'+(_0x3c6bad||_0x18a835(0x73));console[_0x18a835(0x87)](),console[_0x18a835(0x87)](''+_0x1bafab+_0x46d1ba+'↪\x20SDK\x20update\x20available'+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+_0x18a835(0x6e)+_0x114af1+'@'+_0x3bf9e5['version']+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+_0x18a835(0x7e)+_0x3c6bad+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+'\x20\x20\x20Upgrade\x20command:\x20'+_0x358e2c+_0x21cdb0),console['log']();}
1
+ (function(_0x1d97c4,_0x56e4ca){const _0x1df705=a243_0x426e,_0x2e8ce9=_0x1d97c4();while(!![]){try{const _0x452268=-parseInt(_0x1df705(0x1dc))/0x1*(parseInt(_0x1df705(0x1d4))/0x2)+-parseInt(_0x1df705(0x1e9))/0x3*(-parseInt(_0x1df705(0x1e4))/0x4)+parseInt(_0x1df705(0x1ef))/0x5*(parseInt(_0x1df705(0x1d8))/0x6)+-parseInt(_0x1df705(0x1d9))/0x7*(-parseInt(_0x1df705(0x1e7))/0x8)+-parseInt(_0x1df705(0x1e2))/0x9*(-parseInt(_0x1df705(0x1dd))/0xa)+-parseInt(_0x1df705(0x1f0))/0xb*(-parseInt(_0x1df705(0x1d7))/0xc)+-parseInt(_0x1df705(0x1df))/0xd;if(_0x452268===_0x56e4ca)break;else _0x2e8ce9['push'](_0x2e8ce9['shift']());}catch(_0xb749c6){_0x2e8ce9['push'](_0x2e8ce9['shift']());}}}(a243_0x15cc,0xec04a));import a243_0x259d0c from'node:fs';import a243_0x52039d from'node:path';import a243_0x35026d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x37fe0a){const _0x17bb2a=a243_0x426e,_0x26960e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x26960e['some'](_0x525e25=>_0x525e25[_0x17bb2a(0x1e5)](_0x37fe0a));}function getInstalledVersion(_0x12c226,_0x12252d){const _0x1aab21=a243_0x426e;try{const _0x5d06f2=a243_0x52039d['join'](_0x12c226,'node_modules',_0x12252d,'package.json');if(a243_0x259d0c[_0x1aab21(0x1d5)](_0x5d06f2)){const _0x30a1e3=JSON['parse'](a243_0x259d0c[_0x1aab21(0x1da)](_0x5d06f2,'utf-8'));return _0x30a1e3[_0x1aab21(0x1f4)]||null;}}catch{}return null;}function a243_0x426e(_0x205659,_0x4b584b){_0x205659=_0x205659-0x1d2;const _0x15cc65=a243_0x15cc();let _0x426e39=_0x15cc65[_0x205659];return _0x426e39;}async function getSdkStableVersion(){const _0x983790=a243_0x426e;try{const _0x2ab43e=await getCdnConfig();return _0x2ab43e?.['sdk']?.[_0x983790(0x1e1)]?.[_0x983790(0x1d6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x12b0e4=a243_0x426e;try{const _0x5b339f=await getCdnConfig();return _0x5b339f?.[_0x12b0e4(0x1f8)]?.[_0x12b0e4(0x1e1)]?.[_0x12b0e4(0x1f1)]||_0x12b0e4(0x1ec);}catch{return _0x12b0e4(0x1ec);}}export async function checkSdkVersion(_0x3cdaba){const _0x5c24a9=a243_0x426e,_0x2fc3af=a243_0x52039d[_0x5c24a9(0x1f7)](_0x3cdaba,'package.json'),[_0x112037,_0x20f2bc]=await Promise[_0x5c24a9(0x1e0)]([getSdkStableVersion(),getSdkPackageName()]),_0x3563d4=_0x112037||FALLBACK_MIN_SDK_VERSION;if(!a243_0x259d0c['existsSync'](_0x2fc3af))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};try{const _0x49c8da=JSON[_0x5c24a9(0x1eb)](a243_0x259d0c['readFileSync'](_0x2fc3af,_0x5c24a9(0x1f5))),_0x979b22=_0x49c8da['dependencies']||{},_0x327075=_0x49c8da['devDependencies']||{},_0x1b2bad=_0x979b22[_0x20f2bc]||_0x327075[_0x20f2bc];if(!_0x1b2bad)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};let _0x3afdc5=getInstalledVersion(_0x3cdaba,_0x20f2bc);!_0x3afdc5&&(_0x3afdc5=_0x1b2bad);if(isNonNumericVersion(_0x1b2bad))return{'installed':!![],'version':_0x3afdc5,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};const _0x3fe9b4=a243_0x35026d['coerce'](_0x3afdc5),_0x2b03b1=a243_0x35026d[_0x5c24a9(0x1f3)](_0x3563d4),_0x1d5dca=_0x3fe9b4&&_0x2b03b1?a243_0x35026d['lt'](_0x3fe9b4,_0x2b03b1):![];return{'installed':!![],'version':_0x3afdc5,'needsUpgrade':_0x1d5dca,'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3563d4,'packageName':_0x20f2bc,'stableVersion':_0x112037};}}function a243_0x15cc(){const _0x3ef600=['\x1b[1m','2mBYobp','existsSync','stableVersion','6656124BIifYZ','61590TtnMdH','842387RqYJpa','readFileSync','\x1b[33m','1415651vIQSmr','285450QSEzZe','\x20\x20\x20Upgrade\x20command:\x20','5596591BGWpTx','all','node','99xJUwFk','needsUpgrade','1382860PXoGho','test','minVersion','8yKtUEo','↪\x20SDK\x20update\x20available','3PLzosN','devDependencies','parse','@lovrabet/sdk','\x1b[0m','\x20\x20\x20Current\x20version:\x20','720XKviIc','11DWWlod','packageName','log','coerce','version','utf8','\x20\x20\x20Stable\x20version:\x20','join','sdk','latest'];a243_0x15cc=function(){return _0x3ef600;};return a243_0x15cc();}export function checkSdkVersionSync(_0x5c3afd){const _0x8d0685=a243_0x426e,_0x317a50=a243_0x52039d[_0x8d0685(0x1f7)](_0x5c3afd,'package.json'),_0x458fa5=_0x8d0685(0x1ec);if(!a243_0x259d0c[_0x8d0685(0x1d5)](_0x317a50))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};try{const _0x2d7caa=JSON['parse'](a243_0x259d0c[_0x8d0685(0x1da)](_0x317a50,_0x8d0685(0x1f5))),_0x3d4e97=_0x2d7caa['dependencies']||{},_0x3c7203=_0x2d7caa[_0x8d0685(0x1ea)]||{},_0x167ae2=_0x3d4e97[_0x458fa5]||_0x3c7203[_0x458fa5];if(!_0x167ae2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};let _0x29c6ea=getInstalledVersion(_0x5c3afd,_0x458fa5);!_0x29c6ea&&(_0x29c6ea=_0x167ae2);if(isNonNumericVersion(_0x167ae2))return{'installed':!![],'version':_0x29c6ea,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};const _0x3a5e41=a243_0x35026d[_0x8d0685(0x1f3)](_0x29c6ea),_0x2722d8=_0x3a5e41?a243_0x35026d['lt'](_0x3a5e41,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29c6ea,'needsUpgrade':_0x2722d8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458fa5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3c3dea){const _0xd92142=a243_0x426e;if(!_0x3c3dea[_0xd92142(0x1e3)])return;const _0x5c5bba=_0xd92142(0x1db),_0x28e858=_0xd92142(0x1ed),_0x3d18d0=_0xd92142(0x1d3),_0x49e00d=_0x3c3dea[_0xd92142(0x1f1)]||_0xd92142(0x1ec),_0x3203c8=_0x3c3dea[_0xd92142(0x1d6)]||_0x3c3dea[_0xd92142(0x1e6)],_0x500ed3='npm\x20install\x20'+_0x49e00d+'@'+(_0x3203c8||_0xd92142(0x1d2));console['log'](),console[_0xd92142(0x1f2)](''+_0x5c5bba+_0x3d18d0+_0xd92142(0x1e8)+_0x28e858),console['log'](_0x5c5bba+_0xd92142(0x1ee)+_0x49e00d+'@'+_0x3c3dea[_0xd92142(0x1f4)]+_0x28e858),console[_0xd92142(0x1f2)](_0x5c5bba+_0xd92142(0x1f6)+_0x3203c8+_0x28e858),console[_0xd92142(0x1f2)](_0x5c5bba+_0xd92142(0x1de)+_0x500ed3+_0x28e858),console[_0xd92142(0x1f2)]();}
@@ -1 +1 @@
1
- (function(_0x414f94,_0xe3d8b2){const _0xd49bb0=a244_0x4d1b,_0x559313=_0x414f94();while(!![]){try{const _0x5a82b8=-parseInt(_0xd49bb0(0x190))/0x1+parseInt(_0xd49bb0(0x192))/0x2+-parseInt(_0xd49bb0(0x1a1))/0x3+-parseInt(_0xd49bb0(0x193))/0x4*(parseInt(_0xd49bb0(0x195))/0x5)+-parseInt(_0xd49bb0(0x1a9))/0x6*(-parseInt(_0xd49bb0(0x1a0))/0x7)+-parseInt(_0xd49bb0(0x19e))/0x8+parseInt(_0xd49bb0(0x198))/0x9;if(_0x5a82b8===_0xe3d8b2)break;else _0x559313['push'](_0x559313['shift']());}catch(_0x17d0cb){_0x559313['push'](_0x559313['shift']());}}}(a244_0x1d18,0x1d9bf));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a244_0x1d18(){const _0x12272d=['1.0.0','package.json','version','73312Jiyxsg','join','183940VZpZEL','5036dlYNZx','belowMinimum','545iFyYhz','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20','1961262yOzeao','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','↪\x20New\x20version\x20available','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','894288uQzolY','minimumVersion','553Ftikel','3873ykLGkU','currentVersion','filter','\x20\x20\x20Recommended\x20stable:\x20','validation','upgradeMessage','utf-8','Upgrade\x20command:\x20','10254vGHSbS','coerce','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','log','../..','↪\x20Critical\x20CLI\x20upgrade\x20required','needsUpgrade','npm\x20install\x20-g\x20'];a244_0x1d18=function(){return _0x12272d;};return a244_0x1d18();}import{fileURLToPath}from'node:url';function a244_0x4d1b(_0x5e656c,_0x5c9550){_0x5e656c=_0x5e656c-0x18f;const _0x1d187d=a244_0x1d18();let _0x4d1b07=_0x1d187d[_0x5e656c];return _0x4d1b07;}import a244_0x483d83 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x773852){const _0x1688ed=a244_0x4d1b,_0x20f391=_0x773852[_0x1688ed(0x1ab)]||'latest';return _0x1688ed(0x1b1)+NPM_PACKAGE_NAME+'@'+_0x20f391;}function getCurrentCliVersion(){const _0x711bc7=a244_0x4d1b;try{const _0x1f77c6=fileURLToPath(import.meta.url),_0x4647c4=resolve(dirname(_0x1f77c6),_0x711bc7(0x1ae)),_0x3d255a=resolve(_0x4647c4,_0x711bc7(0x1b3)),_0x1f9de1=JSON['parse'](readFileSync(_0x3d255a,_0x711bc7(0x1a7)));return _0x1f9de1[_0x711bc7(0x18f)]||_0x711bc7(0x1b2);}catch{return _0x711bc7(0x1b2);}}export async function checkCliVersion(){const _0x1a8255=a244_0x4d1b,_0x4a0c38=getCurrentCliVersion(),_0x4dc7c4=await getCliVersionPolicy(),_0x54f89f=_0x4dc7c4?.[_0x1a8255(0x1ab)]||null,_0x369186=_0x4dc7c4?.[_0x1a8255(0x19f)]||null;let _0x4e6567=![],_0x210855=![];const _0x319e0b=a244_0x483d83[_0x1a8255(0x1aa)](_0x4a0c38);if(_0x319e0b&&_0x54f89f)try{const _0x2f594e=a244_0x483d83[_0x1a8255(0x1aa)](_0x54f89f);if(_0x2f594e)_0x4e6567=a244_0x483d83['lt'](_0x319e0b,_0x2f594e);}catch{}if(_0x319e0b&&_0x369186)try{const _0x521b01=a244_0x483d83['coerce'](_0x369186);if(_0x521b01)_0x210855=a244_0x483d83['lt'](_0x319e0b,_0x521b01);}catch{}return _0x210855&&(_0x4e6567=!![]),{'currentVersion':_0x4a0c38,'stableVersion':_0x54f89f,'minimumVersion':_0x369186,'needsUpgrade':_0x4e6567,'belowMinimum':_0x210855,'isPreRelease':![],'upgradeMessage':_0x4dc7c4?.[_0x1a8255(0x1a6)],'minimumVersionMessage':_0x4dc7c4?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4d733f){const _0x347c1a=a244_0x4d1b;if(!_0x4d733f[_0x347c1a(0x1b0)]&&!_0x4d733f[_0x347c1a(0x194)])return;const _0x167463='\x1b[31m',_0x2a434d='\x1b[33m',_0x4f72bd='\x1b[0m',_0x35b28a='\x1b[1m',_0x442a12=getCliUpgradeCommand(_0x4d733f);console[_0x347c1a(0x1ad)](),_0x4d733f[_0x347c1a(0x194)]?(console[_0x347c1a(0x1ad)](''+_0x167463+_0x35b28a+_0x347c1a(0x1af)+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x19c)+_0x4d733f['currentVersion']+_0x4f72bd),_0x4d733f['minimumVersion']&&console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x19d)+_0x4d733f['minimumVersion']+_0x4f72bd),_0x4d733f[_0x347c1a(0x1ab)]&&_0x4d733f['stableVersion']!==_0x4d733f[_0x347c1a(0x19f)]&&console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x1a4)+_0x4d733f[_0x347c1a(0x1ab)]+_0x4f72bd),_0x4d733f[_0x347c1a(0x19a)]&&console['log'](_0x167463+'\x20\x20\x20'+_0x4d733f[_0x347c1a(0x19a)]+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x1ac)+_0x442a12+_0x4f72bd)):(console[_0x347c1a(0x1ad)](''+_0x2a434d+_0x35b28a+_0x347c1a(0x19b)+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x19c)+_0x4d733f[_0x347c1a(0x1a2)]+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x196)+_0x4d733f['stableVersion']+_0x4f72bd),_0x4d733f[_0x347c1a(0x1a6)]&&console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x197)+_0x4d733f[_0x347c1a(0x1a6)]+_0x4f72bd),console['log'](_0x2a434d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x442a12+_0x4f72bd)),console[_0x347c1a(0x1ad)]();}export function assertCliVersionSupported(_0x5c668c){const _0x4d35eb=a244_0x4d1b;if(!_0x5c668c[_0x4d35eb(0x194)])return;const _0x42799e=[_0x5c668c[_0x4d35eb(0x19a)],'Current\x20version:\x20'+_0x5c668c[_0x4d35eb(0x1a2)],_0x5c668c['minimumVersion']?'Minimum\x20supported:\x20'+_0x5c668c[_0x4d35eb(0x19f)]:null,_0x4d35eb(0x1a8)+getCliUpgradeCommand(_0x5c668c)][_0x4d35eb(0x1a3)](Boolean)[_0x4d35eb(0x191)]('\x0a');throw CliErrors[_0x4d35eb(0x1a5)](_0x4d35eb(0x199),_0x42799e);}
1
+ (function(_0x3a7919,_0x10763c){const _0x56819f=a244_0x1a5a,_0xc6ae6b=_0x3a7919();while(!![]){try{const _0x349ede=parseInt(_0x56819f(0xb2))/0x1+parseInt(_0x56819f(0xb3))/0x2*(parseInt(_0x56819f(0x98))/0x3)+parseInt(_0x56819f(0xb4))/0x4*(parseInt(_0x56819f(0xad))/0x5)+parseInt(_0x56819f(0x97))/0x6+parseInt(_0x56819f(0xb8))/0x7*(-parseInt(_0x56819f(0xb9))/0x8)+-parseInt(_0x56819f(0xa2))/0x9*(parseInt(_0x56819f(0xbb))/0xa)+parseInt(_0x56819f(0x99))/0xb*(-parseInt(_0x56819f(0x95))/0xc);if(_0x349ede===_0x10763c)break;else _0xc6ae6b['push'](_0xc6ae6b['shift']());}catch(_0x256b02){_0xc6ae6b['push'](_0xc6ae6b['shift']());}}}(a244_0x2d23,0xd7aa2));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a244_0x49541d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a244_0x1a5a(_0x52ebc8,_0x4dc99a){_0x52ebc8=_0x52ebc8-0x93;const _0x2d2371=a244_0x2d23();let _0x1a5aff=_0x2d2371[_0x52ebc8];return _0x1a5aff;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x7cd5e7){const _0x3f5fa6=a244_0x1a5a,_0x49960b=_0x7cd5e7[_0x3f5fa6(0xa7)]||_0x3f5fa6(0xba);return _0x3f5fa6(0xb5)+NPM_PACKAGE_NAME+'@'+_0x49960b;}function getCurrentCliVersion(){const _0x15312e=a244_0x1a5a;try{const _0x31c74b=fileURLToPath(import.meta.url),_0x4d5ebf=resolve(dirname(_0x31c74b),_0x15312e(0x96)),_0x393a80=resolve(_0x4d5ebf,_0x15312e(0xae)),_0x1915c4=JSON['parse'](readFileSync(_0x393a80,'utf-8'));return _0x1915c4[_0x15312e(0xac)]||_0x15312e(0xa0);}catch{return _0x15312e(0xa0);}}export async function checkCliVersion(){const _0x214fcd=a244_0x1a5a,_0x212446=getCurrentCliVersion(),_0x2a911d=await getCliVersionPolicy(),_0x569894=_0x2a911d?.[_0x214fcd(0xa7)]||null,_0x516e27=_0x2a911d?.[_0x214fcd(0xb7)]||null;let _0x3e6d08=![],_0x26da3d=![];const _0x41f15e=a244_0x49541d['coerce'](_0x212446);if(_0x41f15e&&_0x569894)try{const _0x25b8a7=a244_0x49541d[_0x214fcd(0x9f)](_0x569894);if(_0x25b8a7)_0x3e6d08=a244_0x49541d['lt'](_0x41f15e,_0x25b8a7);}catch{}if(_0x41f15e&&_0x516e27)try{const _0x6f47a0=a244_0x49541d[_0x214fcd(0x9f)](_0x516e27);if(_0x6f47a0)_0x26da3d=a244_0x49541d['lt'](_0x41f15e,_0x6f47a0);}catch{}return _0x26da3d&&(_0x3e6d08=!![]),{'currentVersion':_0x212446,'stableVersion':_0x569894,'minimumVersion':_0x516e27,'needsUpgrade':_0x3e6d08,'belowMinimum':_0x26da3d,'isPreRelease':![],'upgradeMessage':_0x2a911d?.[_0x214fcd(0xb6)],'minimumVersionMessage':_0x2a911d?.['minimumVersionMessage']};}function a244_0x2d23(){const _0x2aba6a=['254290ZIuAEu','Upgrade\x20command:\x20','minimumVersionMessage','\x1b[0m','needsUpgrade','780JSxlkC','../..','10265676evdjHc','128001MicGkZ','58575jRniKs','\x1b[1m','validation','Current\x20version:\x20','currentVersion','filter','coerce','1.0.0','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','621VYafHi','\x20\x20\x20Stable\x20version:\x20','belowMinimum','log','\x1b[31m','stableVersion','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','version','273190pwdbiS','package.json','\x20\x20\x20Upgrade\x20command:\x20','↪\x20New\x20version\x20available','\x20\x20\x20Current\x20CLI\x20version:\x20','415392ALjRvN','50PvueJu','92UDWvVY','npm\x20install\x20-g\x20','upgradeMessage','minimumVersion','9597XGfgBe','8552yUnDSS','latest'];a244_0x2d23=function(){return _0x2aba6a;};return a244_0x2d23();}export function printCliUpgradeWarning(_0x75b75c){const _0x6749bc=a244_0x1a5a;if(!_0x75b75c[_0x6749bc(0x94)]&&!_0x75b75c['belowMinimum'])return;const _0x28ea77=_0x6749bc(0xa6),_0x4f5d87=_0x6749bc(0xab),_0x261cf6=_0x6749bc(0x93),_0x482322=_0x6749bc(0x9a),_0x3efee9=getCliUpgradeCommand(_0x75b75c);console[_0x6749bc(0xa5)](),_0x75b75c['belowMinimum']?(console[_0x6749bc(0xa5)](''+_0x28ea77+_0x482322+_0x6749bc(0xaa)+_0x261cf6),console[_0x6749bc(0xa5)](_0x28ea77+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x75b75c['currentVersion']+_0x261cf6),_0x75b75c[_0x6749bc(0xb7)]&&console['log'](_0x28ea77+'\x20\x20\x20Minimum\x20supported:\x20'+_0x75b75c[_0x6749bc(0xb7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xa7)]&&_0x75b75c[_0x6749bc(0xa7)]!==_0x75b75c[_0x6749bc(0xb7)]&&console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xa8)+_0x75b75c[_0x6749bc(0xa7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xbd)]&&console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xa9)+_0x75b75c[_0x6749bc(0xbd)]+_0x261cf6),console[_0x6749bc(0xa5)](_0x28ea77+_0x6749bc(0xaf)+_0x3efee9+_0x261cf6)):(console[_0x6749bc(0xa5)](''+_0x4f5d87+_0x482322+_0x6749bc(0xb0)+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xb1)+_0x75b75c[_0x6749bc(0x9d)]+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xa3)+_0x75b75c[_0x6749bc(0xa7)]+_0x261cf6),_0x75b75c[_0x6749bc(0xb6)]&&console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xa9)+_0x75b75c['upgradeMessage']+_0x261cf6),console[_0x6749bc(0xa5)](_0x4f5d87+_0x6749bc(0xaf)+_0x3efee9+_0x261cf6)),console[_0x6749bc(0xa5)]();}export function assertCliVersionSupported(_0x317032){const _0x5ce661=a244_0x1a5a;if(!_0x317032[_0x5ce661(0xa4)])return;const _0x3295a8=[_0x317032[_0x5ce661(0xbd)],_0x5ce661(0x9c)+_0x317032[_0x5ce661(0x9d)],_0x317032[_0x5ce661(0xb7)]?'Minimum\x20supported:\x20'+_0x317032[_0x5ce661(0xb7)]:null,_0x5ce661(0xbc)+getCliUpgradeCommand(_0x317032)][_0x5ce661(0x9e)](Boolean)['join']('\x0a');throw CliErrors[_0x5ce661(0x9b)](_0x5ce661(0xa1),_0x3295a8);}
@@ -1 +1 @@
1
- (function(_0x1ffbc1,_0x172105){const _0x58afcf=a245_0x3476,_0x408624=_0x1ffbc1();while(!![]){try{const _0x1baafd=-parseInt(_0x58afcf(0x153))/0x1*(parseInt(_0x58afcf(0x149))/0x2)+parseInt(_0x58afcf(0x157))/0x3*(parseInt(_0x58afcf(0x158))/0x4)+-parseInt(_0x58afcf(0x152))/0x5+parseInt(_0x58afcf(0x15a))/0x6*(parseInt(_0x58afcf(0x14b))/0x7)+-parseInt(_0x58afcf(0x156))/0x8*(parseInt(_0x58afcf(0x155))/0x9)+-parseInt(_0x58afcf(0x14f))/0xa+-parseInt(_0x58afcf(0x15b))/0xb*(-parseInt(_0x58afcf(0x15c))/0xc);if(_0x1baafd===_0x172105)break;else _0x408624['push'](_0x408624['shift']());}catch(_0x4a6a9c){_0x408624['push'](_0x408624['shift']());}}}(a245_0x531a,0x95b88));function a245_0x531a(){const _0x5ef8d9=['cli','signal','2693095ZNYUmM','50ualprd','upgradeMessage','9ZREYBX','1411128tHxiIR','21rhkwdV','563764tAbZTP','abort','6XMyJSY','11Alligl','24856620jkzPoB','application/json','minimumVersionMessage','object','trim','string','47800vdPHhS','length','4465279fBQwhN','latestVersion','json','minimumVersion','11726030UInQDC'];a245_0x531a=function(){return _0x5ef8d9;};return a245_0x531a();}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(_0x262c8f){const _0x513a5c=a245_0x3476;return typeof _0x262c8f===_0x513a5c(0x148)&&_0x262c8f['trim']()[_0x513a5c(0x14a)]>0x0?_0x262c8f[_0x513a5c(0x147)]():null;}function a245_0x3476(_0x2fe0a5,_0x2425f3){_0x2fe0a5=_0x2fe0a5-0x146;const _0x531a30=a245_0x531a();let _0x347681=_0x531a30[_0x2fe0a5];return _0x347681;}function normalizeCliVersionPolicy(_0xcbc02a){const _0x3e6d39=a245_0x3476;if(!_0xcbc02a||typeof _0xcbc02a!==_0x3e6d39(0x146))return null;const _0x5d9320=_0xcbc02a,_0x1f23d9=_0x5d9320['cli']&&typeof _0x5d9320[_0x3e6d39(0x150)]==='object'?_0x5d9320[_0x3e6d39(0x150)]:_0x5d9320,_0x31798d=pickString(_0x1f23d9['stableVersion'])||pickString(_0x1f23d9[_0x3e6d39(0x14c)])||pickString(_0x1f23d9['recommendedVersion']),_0x2d4552=pickString(_0x1f23d9[_0x3e6d39(0x14e)])||pickString(_0x1f23d9['minVersion']);if(!_0x31798d&&!_0x2d4552)return null;return{'stableVersion':_0x31798d,'minimumVersion':_0x2d4552,'upgradeMessage':pickString(_0x1f23d9[_0x3e6d39(0x154)])||undefined,'minimumVersionMessage':pickString(_0x1f23d9[_0x3e6d39(0x15e)])||undefined};}export async function fetchCliVersionPolicy(){const _0x997283=a245_0x3476,_0x24a27c=new AbortController(),_0x2a5d99=setTimeout(()=>_0x24a27c[_0x997283(0x159)](),FETCH_TIMEOUT_MS);try{const _0x466da3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x997283(0x15d)},'signal':_0x24a27c[_0x997283(0x151)]});if(!_0x466da3['ok'])return null;const _0x392dac=await _0x466da3[_0x997283(0x14d)]();return normalizeCliVersionPolicy(_0x392dac);}catch{return null;}finally{clearTimeout(_0x2a5d99);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x54944a=Date['now']();if(hasCachedPolicy){const _0x3834bf=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54944a-cacheTime<_0x3834bf)return cachedPolicy;}const _0x47eb17=await fetchCliVersionPolicy();return cachedPolicy=_0x47eb17,cacheTime=_0x54944a,hasCachedPolicy=!![],_0x47eb17;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1f1b98,_0x8ff401){const _0x3465ac=a245_0x2224,_0x307892=_0x1f1b98();while(!![]){try{const _0x22b3ed=parseInt(_0x3465ac(0x9c))/0x1*(parseInt(_0x3465ac(0xa2))/0x2)+parseInt(_0x3465ac(0x9a))/0x3*(parseInt(_0x3465ac(0xa0))/0x4)+-parseInt(_0x3465ac(0x92))/0x5*(parseInt(_0x3465ac(0xa5))/0x6)+parseInt(_0x3465ac(0x98))/0x7*(parseInt(_0x3465ac(0x9f))/0x8)+-parseInt(_0x3465ac(0xa9))/0x9+-parseInt(_0x3465ac(0x95))/0xa*(parseInt(_0x3465ac(0xab))/0xb)+parseInt(_0x3465ac(0xa8))/0xc;if(_0x22b3ed===_0x8ff401)break;else _0x307892['push'](_0x307892['shift']());}catch(_0x54e804){_0x307892['push'](_0x307892['shift']());}}}(a245_0x4c25,0x9d9ec));function a245_0x4c25(){const _0x18d3ba=['2KQbMhi','stableVersion','object','18BzAyRE','minimumVersion','trim','5898108XmcpbT','5390874tzjIOL','length','22xLNZMl','minimumVersionMessage','738230nkObSt','now','latestVersion','4162690mHqmRA','abort','cli','617414ymuNRH','recommendedVersion','9HFBeNp','string','446466ndVejd','json','signal','40tQuFVD','1521452UKncWn','upgradeMessage'];a245_0x4c25=function(){return _0x18d3ba;};return a245_0x4c25();}function a245_0x2224(_0x30c6d5,_0x1adbea){_0x30c6d5=_0x30c6d5-0x92;const _0x4c25da=a245_0x4c25();let _0x22247b=_0x4c25da[_0x30c6d5];return _0x22247b;}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(_0x553331){const _0x53c550=a245_0x2224;return typeof _0x553331===_0x53c550(0x9b)&&_0x553331[_0x53c550(0xa7)]()[_0x53c550(0xaa)]>0x0?_0x553331['trim']():null;}function normalizeCliVersionPolicy(_0x249168){const _0x2bab03=a245_0x2224;if(!_0x249168||typeof _0x249168!=='object')return null;const _0xc0569=_0x249168,_0x5a9a16=_0xc0569[_0x2bab03(0x97)]&&typeof _0xc0569[_0x2bab03(0x97)]===_0x2bab03(0xa4)?_0xc0569[_0x2bab03(0x97)]:_0xc0569,_0x2cfdc7=pickString(_0x5a9a16[_0x2bab03(0xa3)])||pickString(_0x5a9a16[_0x2bab03(0x94)])||pickString(_0x5a9a16[_0x2bab03(0x99)]),_0x3140ae=pickString(_0x5a9a16[_0x2bab03(0xa6)])||pickString(_0x5a9a16['minVersion']);if(!_0x2cfdc7&&!_0x3140ae)return null;return{'stableVersion':_0x2cfdc7,'minimumVersion':_0x3140ae,'upgradeMessage':pickString(_0x5a9a16[_0x2bab03(0xa1)])||undefined,'minimumVersionMessage':pickString(_0x5a9a16[_0x2bab03(0xac)])||undefined};}export async function fetchCliVersionPolicy(){const _0xc415ec=a245_0x2224,_0x3e2a52=new AbortController(),_0x4b026d=setTimeout(()=>_0x3e2a52[_0xc415ec(0x96)](),FETCH_TIMEOUT_MS);try{const _0xed0980=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x3e2a52[_0xc415ec(0x9e)]});if(!_0xed0980['ok'])return null;const _0xde62d2=await _0xed0980[_0xc415ec(0x9d)]();return normalizeCliVersionPolicy(_0xde62d2);}catch{return null;}finally{clearTimeout(_0x4b026d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3a37ac=a245_0x2224,_0xe2f712=Date[_0x3a37ac(0x93)]();if(hasCachedPolicy){const _0x4e2398=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe2f712-cacheTime<_0x4e2398)return cachedPolicy;}const _0x382d67=await fetchCliVersionPolicy();return cachedPolicy=_0x382d67,cacheTime=_0xe2f712,hasCachedPolicy=!![],_0x382d67;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a246_0x2683(){const _0x1fe2cf=['3OQKyUh','project','18jmOUjm','1295692ZRyYUJ','8780784dTalTi','786395aKXhui','env','17742vywTJh','62SYSdan','1778ebXVuP','667170AHXWZR','25590686dMNsQi','5174AiXhjo','12fNvHZT','string'];a246_0x2683=function(){return _0x1fe2cf;};return a246_0x2683();}const a246_0x401d3b=a246_0x5df2;(function(_0x2b13c3,_0x4cc534){const _0xc0778a=a246_0x5df2,_0x21c341=_0x2b13c3();while(!![]){try{const _0x3921af=-parseInt(_0xc0778a(0x1a2))/0x1*(parseInt(_0xc0778a(0x19e))/0x2)+-parseInt(_0xc0778a(0x196))/0x3*(-parseInt(_0xc0778a(0x199))/0x4)+-parseInt(_0xc0778a(0x19b))/0x5+parseInt(_0xc0778a(0x19d))/0x6*(-parseInt(_0xc0778a(0x19f))/0x7)+-parseInt(_0xc0778a(0x19a))/0x8+parseInt(_0xc0778a(0x198))/0x9*(parseInt(_0xc0778a(0x1a0))/0xa)+parseInt(_0xc0778a(0x1a1))/0xb*(parseInt(_0xc0778a(0x1a3))/0xc);if(_0x3921af===_0x4cc534)break;else _0x21c341['push'](_0x21c341['shift']());}catch(_0x658c1d){_0x21c341['push'](_0x21c341['shift']());}}}(a246_0x2683,0x96bda));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a246_0xffe92a,getMultiAppConfigs as a246_0x3e3e32,getTemplateBaseUrl as a246_0x9bb2a1}from'../context.js';function a246_0x5df2(_0xc3aa0f,_0x518352){_0xc3aa0f=_0xc3aa0f-0x196;const _0x268347=a246_0x2683();let _0x5df2e9=_0x268347[_0xc3aa0f];return _0x5df2e9;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x256460){const _0x479a1d=a246_0x5df2,_0x16212a=readRawConfig(_0x256460);return _0x16212a[_0x479a1d(0x19c)]&&typeof _0x16212a['env']===_0x479a1d(0x1a4)&&initEnv(_0x16212a[_0x479a1d(0x19c)]),_0x16212a;}export function getConfigAppCode(){return a246_0xffe92a();}export function getMultiAppConfigs(_0x32065e=a246_0x401d3b(0x197)){return a246_0x3e3e32(_0x32065e);}export function getTemplateBaseUrl(){return a246_0x9bb2a1();}
1
+ function a246_0x182d(){const _0x566029=['string','16210200KhuPAr','8KIZHBw','env','1NUpQoc','2980116jXFjAa','858385uCqAeo','11697RebzUA','79248izuiAd','2814LdXSrk','110478LNjpAY','project','70WhdnRE','40CBXRFG','865329ilhPHt'];a246_0x182d=function(){return _0x566029;};return a246_0x182d();}const a246_0x1ef7c4=a246_0x5d75;function a246_0x5d75(_0x4642ba,_0x4a4342){_0x4642ba=_0x4642ba-0xee;const _0x182d30=a246_0x182d();let _0x5d751a=_0x182d30[_0x4642ba];return _0x5d751a;}(function(_0xfb5c2,_0x52a284){const _0x177217=a246_0x5d75,_0x2d085e=_0xfb5c2();while(!![]){try{const _0x53b8c7=parseInt(_0x177217(0xf6))/0x1*(-parseInt(_0x177217(0xfc))/0x2)+parseInt(_0x177217(0xf1))/0x3+-parseInt(_0x177217(0xfa))/0x4*(parseInt(_0x177217(0xef))/0x5)+-parseInt(_0x177217(0xfb))/0x6*(parseInt(_0x177217(0xf9))/0x7)+parseInt(_0x177217(0xf4))/0x8*(parseInt(_0x177217(0xf7))/0x9)+parseInt(_0x177217(0xf0))/0xa*(-parseInt(_0x177217(0xf8))/0xb)+parseInt(_0x177217(0xf3))/0xc;if(_0x53b8c7===_0x52a284)break;else _0x2d085e['push'](_0x2d085e['shift']());}catch(_0x4e65e8){_0x2d085e['push'](_0x2d085e['shift']());}}}(a246_0x182d,0x84513));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a246_0x37463c,getMultiAppConfigs as a246_0x340d52,getTemplateBaseUrl as a246_0x3807bb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xb09fb6){const _0x566c85=a246_0x5d75,_0x51d0b8=readRawConfig(_0xb09fb6);return _0x51d0b8[_0x566c85(0xf5)]&&typeof _0x51d0b8[_0x566c85(0xf5)]===_0x566c85(0xf2)&&initEnv(_0x51d0b8[_0x566c85(0xf5)]),_0x51d0b8;}export function getConfigAppCode(){return a246_0x37463c();}export function getMultiAppConfigs(_0x49aeae=a246_0x1ef7c4(0xee)){return a246_0x340d52(_0x49aeae);}export function getTemplateBaseUrl(){return a246_0x3807bb();}
@@ -1 +1 @@
1
- function a247_0x49c3(){const _0x90cd27=['error','907109NYkyqK','copyFileSync','14731083UvHuPc','8TQYyqC','join','35572680gVHVaY','1QggdyE','name','readdirSync','5695212dpxqXs','8940775FqSsSP','170398ViPNlK','24UuKDoL','2199195cJDMqy'];a247_0x49c3=function(){return _0x90cd27;};return a247_0x49c3();}function a247_0x1020(_0x706e1b,_0x5e4573){_0x706e1b=_0x706e1b-0x1bf;const _0x49c32a=a247_0x49c3();let _0x102056=_0x49c32a[_0x706e1b];return _0x102056;}(function(_0x481ada,_0x4d044){const _0x3e10ba=a247_0x1020,_0x5b3da8=_0x481ada();while(!![]){try{const _0x14bd50=parseInt(_0x3e10ba(0x1c2))/0x1*(-parseInt(_0x3e10ba(0x1c7))/0x2)+-parseInt(_0x3e10ba(0x1c9))/0x3+parseInt(_0x3e10ba(0x1c5))/0x4+parseInt(_0x3e10ba(0x1c6))/0x5+-parseInt(_0x3e10ba(0x1c8))/0x6*(-parseInt(_0x3e10ba(0x1cb))/0x7)+parseInt(_0x3e10ba(0x1bf))/0x8*(parseInt(_0x3e10ba(0x1cd))/0x9)+-parseInt(_0x3e10ba(0x1c1))/0xa;if(_0x14bd50===_0x4d044)break;else _0x5b3da8['push'](_0x5b3da8['shift']());}catch(_0x5a4d09){_0x5b3da8['push'](_0x5b3da8['shift']());}}}(a247_0x49c3,0xf2149));import a247_0xa8ce2 from'node:path';import a247_0x4cc4f3 from'node:fs';export async function copyDirectory(_0x39b887,_0x3218d4){const _0x1465e2=a247_0x1020;try{const _0x1c58b9=a247_0x4cc4f3[_0x1465e2(0x1c4)](_0x39b887,{'withFileTypes':!![]});a247_0x4cc4f3['mkdirSync'](_0x3218d4,{'recursive':!![]});for(const _0x5eea49 of _0x1c58b9){const _0x1a6464=a247_0xa8ce2[_0x1465e2(0x1c0)](_0x39b887,_0x5eea49[_0x1465e2(0x1c3)]),_0x507744=a247_0xa8ce2['join'](_0x3218d4,_0x5eea49[_0x1465e2(0x1c3)]);_0x5eea49['isDirectory']()?await copyDirectory(_0x1a6464,_0x507744):a247_0x4cc4f3[_0x1465e2(0x1cc)](_0x1a6464,_0x507744);}}catch(_0x2b3aba){console[_0x1465e2(0x1ca)]('复制目录时出错:',_0x2b3aba);}}
1
+ (function(_0x2fe7f4,_0x3d0da7){const _0x1bea72=a247_0x521a,_0x93acad=_0x2fe7f4();while(!![]){try{const _0x124e61=-parseInt(_0x1bea72(0x1dc))/0x1*(-parseInt(_0x1bea72(0x1da))/0x2)+-parseInt(_0x1bea72(0x1d4))/0x3+parseInt(_0x1bea72(0x1d6))/0x4*(parseInt(_0x1bea72(0x1d3))/0x5)+-parseInt(_0x1bea72(0x1d7))/0x6+parseInt(_0x1bea72(0x1db))/0x7*(parseInt(_0x1bea72(0x1e3))/0x8)+-parseInt(_0x1bea72(0x1e1))/0x9*(-parseInt(_0x1bea72(0x1e2))/0xa)+-parseInt(_0x1bea72(0x1d5))/0xb;if(_0x124e61===_0x3d0da7)break;else _0x93acad['push'](_0x93acad['shift']());}catch(_0x32c76f){_0x93acad['push'](_0x93acad['shift']());}}}(a247_0x56fe,0x28b66));function a247_0x521a(_0x9ce18b,_0x4e87bb){_0x9ce18b=_0x9ce18b-0x1d3;const _0x56fee0=a247_0x56fe();let _0x521ae9=_0x56fee0[_0x9ce18b];return _0x521ae9;}function a247_0x56fe(){const _0x394f54=['6430TRiqrq','14jUWkyO','89qFUlIs','copyFileSync','readdirSync','join','name','819eHZjDq','20510aoZDve','397608PzeZHE','5wWLHhL','236853RiqcpE','3568917SSdNCf','628620CXzhfO','955062yMwSnX','isDirectory','mkdirSync'];a247_0x56fe=function(){return _0x394f54;};return a247_0x56fe();}import a247_0x22c481 from'node:path';import a247_0x4ee7df from'node:fs';export async function copyDirectory(_0x1dae89,_0x310771){const _0x27966f=a247_0x521a;try{const _0x1acb3e=a247_0x4ee7df[_0x27966f(0x1de)](_0x1dae89,{'withFileTypes':!![]});a247_0x4ee7df[_0x27966f(0x1d9)](_0x310771,{'recursive':!![]});for(const _0x115516 of _0x1acb3e){const _0x28eb84=a247_0x22c481['join'](_0x1dae89,_0x115516[_0x27966f(0x1e0)]),_0x311b9a=a247_0x22c481[_0x27966f(0x1df)](_0x310771,_0x115516[_0x27966f(0x1e0)]);_0x115516[_0x27966f(0x1d8)]()?await copyDirectory(_0x28eb84,_0x311b9a):a247_0x4ee7df[_0x27966f(0x1dd)](_0x28eb84,_0x311b9a);}}catch(_0x486af2){console['error']('复制目录时出错:',_0x486af2);}}
@@ -1 +1 @@
1
- (function(_0x1a3c2c,_0x12e2f8){const _0x2b08bf=a248_0x4572,_0x1ff306=_0x1a3c2c();while(!![]){try{const _0x4892aa=-parseInt(_0x2b08bf(0x6b))/0x1*(-parseInt(_0x2b08bf(0x6e))/0x2)+-parseInt(_0x2b08bf(0x71))/0x3*(parseInt(_0x2b08bf(0x6d))/0x4)+-parseInt(_0x2b08bf(0x6c))/0x5*(-parseInt(_0x2b08bf(0x70))/0x6)+-parseInt(_0x2b08bf(0x68))/0x7+-parseInt(_0x2b08bf(0x75))/0x8*(-parseInt(_0x2b08bf(0x6f))/0x9)+parseInt(_0x2b08bf(0x74))/0xa+parseInt(_0x2b08bf(0x73))/0xb;if(_0x4892aa===_0x12e2f8)break;else _0x1ff306['push'](_0x1ff306['shift']());}catch(_0x251799){_0x1ff306['push'](_0x1ff306['shift']());}}}(a248_0x4d2a,0x7ea1e));function a248_0x4d2a(){const _0x2a593d=['334868CbQIkz','7404579saKgdW','18msTSzN','3nyKPDz','trim','1621884Eaatiz','3909450YutEHR','8dQZUla','4610928ltplNE','isFinite','object','3OBTEKf','53595olTlWI','2872756xIldFv'];a248_0x4d2a=function(){return _0x2a593d;};return a248_0x4d2a();}function a248_0x4572(_0x1f0df4,_0xedf3ae){_0x1f0df4=_0x1f0df4-0x68;const _0x4d2a62=a248_0x4d2a();let _0x457229=_0x4d2a62[_0x1f0df4];return _0x457229;}function toFiniteNumber(_0x4773e7){const _0x111336=a248_0x4572;if(typeof _0x4773e7==='number'&&Number[_0x111336(0x69)](_0x4773e7))return _0x4773e7;if(typeof _0x4773e7==='string'){const _0xd9c640=_0x4773e7[_0x111336(0x72)]();if(!_0xd9c640)return undefined;const _0x52c4bf=Number(_0xd9c640);if(Number[_0x111336(0x69)](_0x52c4bf))return _0x52c4bf;}return undefined;}export function normalizeEntityWithIdResponse(_0x76c7ba){const _0xb54c6=a248_0x4572,_0x3fc854=toFiniteNumber(_0x76c7ba);if(_0x3fc854!==undefined)return{'id':_0x3fc854,'entity':{'id':_0x3fc854}};if(!_0x76c7ba||typeof _0x76c7ba!==_0xb54c6(0x6a))return{'id':undefined,'entity':{}};const _0x3b8836={..._0x76c7ba},_0x522128=toFiniteNumber(_0x3b8836['id']);return _0x522128!==undefined&&(_0x3b8836['id']=_0x522128),{'id':_0x522128,'entity':_0x3b8836};}
1
+ function a248_0x2006(){const _0x40e5aa=['340vRKCIy','string','72340PBNnfe','528786TdpUxH','object','1252608uWzxtN','number','8779416nzVmoJ','4477270UNNDUd','108NBNVlt','trim','794362ASoiBb','2LoYFmq','isFinite','1647016ptWdAh'];a248_0x2006=function(){return _0x40e5aa;};return a248_0x2006();}function a248_0x5e56(_0x17d7aa,_0x1efb8a){_0x17d7aa=_0x17d7aa-0x178;const _0x200657=a248_0x2006();let _0x5e564f=_0x200657[_0x17d7aa];return _0x5e564f;}(function(_0x2f69f7,_0x3d028c){const _0x233112=a248_0x5e56,_0x5f33b9=_0x2f69f7();while(!![]){try{const _0x2ce5ff=parseInt(_0x233112(0x17c))/0x1*(-parseInt(_0x233112(0x17b))/0x2)+-parseInt(_0x233112(0x184))/0x3+-parseInt(_0x233112(0x17e))/0x4+parseInt(_0x233112(0x181))/0x5*(-parseInt(_0x233112(0x179))/0x6)+-parseInt(_0x233112(0x178))/0x7+parseInt(_0x233112(0x186))/0x8+-parseInt(_0x233112(0x182))/0x9*(-parseInt(_0x233112(0x17f))/0xa);if(_0x2ce5ff===_0x3d028c)break;else _0x5f33b9['push'](_0x5f33b9['shift']());}catch(_0x31b1f2){_0x5f33b9['push'](_0x5f33b9['shift']());}}}(a248_0x2006,0x8b7f1));function toFiniteNumber(_0x2b5fa9){const _0x438653=a248_0x5e56;if(typeof _0x2b5fa9===_0x438653(0x185)&&Number[_0x438653(0x17d)](_0x2b5fa9))return _0x2b5fa9;if(typeof _0x2b5fa9===_0x438653(0x180)){const _0x5751ec=_0x2b5fa9[_0x438653(0x17a)]();if(!_0x5751ec)return undefined;const _0x3920e4=Number(_0x5751ec);if(Number[_0x438653(0x17d)](_0x3920e4))return _0x3920e4;}return undefined;}export function normalizeEntityWithIdResponse(_0x36503d){const _0x1675d1=a248_0x5e56,_0x385919=toFiniteNumber(_0x36503d);if(_0x385919!==undefined)return{'id':_0x385919,'entity':{'id':_0x385919}};if(!_0x36503d||typeof _0x36503d!==_0x1675d1(0x183))return{'id':undefined,'entity':{}};const _0xf62d3a={..._0x36503d},_0x4bed89=toFiniteNumber(_0xf62d3a['id']);return _0x4bed89!==undefined&&(_0xf62d3a['id']=_0x4bed89),{'id':_0x4bed89,'entity':_0xf62d3a};}
@@ -1 +1 @@
1
- (function(_0x31c358,_0x5ae25d){const _0x12886c=a249_0x3ade,_0x1314e2=_0x31c358();while(!![]){try{const _0x5c052a=parseInt(_0x12886c(0x11e))/0x1*(-parseInt(_0x12886c(0x126))/0x2)+-parseInt(_0x12886c(0x120))/0x3*(-parseInt(_0x12886c(0x124))/0x4)+-parseInt(_0x12886c(0x11d))/0x5+parseInt(_0x12886c(0x11f))/0x6+-parseInt(_0x12886c(0x121))/0x7*(-parseInt(_0x12886c(0x123))/0x8)+parseInt(_0x12886c(0x122))/0x9*(-parseInt(_0x12886c(0x11b))/0xa)+-parseInt(_0x12886c(0x125))/0xb*(-parseInt(_0x12886c(0x11c))/0xc);if(_0x5c052a===_0x5ae25d)break;else _0x1314e2['push'](_0x1314e2['shift']());}catch(_0x5acc1c){_0x1314e2['push'](_0x1314e2['shift']());}}}(a249_0x1e9f,0x50ae9));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a249_0x1e9f(){const _0x4651cc=['14xuIpVb','10467YPpZpw','468544yiColM','220WdGyoT','229009xrWzhq','40314OoVbxw','4060wRwBia','588mJrrAs','3088660UMXVjt','23fJFima','2614872egHlog','16959bEagMw'];a249_0x1e9f=function(){return _0x4651cc;};return a249_0x1e9f();}import{join}from'node:path';function a249_0x3ade(_0x5eca75,_0x27ac4f){_0x5eca75=_0x5eca75-0x11b;const _0x1e9fd1=a249_0x1e9f();let _0x3adeec=_0x1e9fd1[_0x5eca75];return _0x3adeec;}export async function copyDir(_0x3a4406,_0x529383){const _0x1018ce=statSync(_0x3a4406);if(_0x1018ce['isDirectory']()){!existsSync(_0x529383)&&mkdirSync(_0x529383,{'recursive':!![]});const _0x5cfc67=readdirSync(_0x3a4406);for(const _0x120135 of _0x5cfc67){await copyDir(join(_0x3a4406,_0x120135),join(_0x529383,_0x120135));}}else copyFileSync(_0x3a4406,_0x529383);}export function ensureDir(_0x486719){!existsSync(_0x486719)&&mkdirSync(_0x486719,{'recursive':!![]});}export function pathExists(_0x4f4b72){return existsSync(_0x4f4b72);}
1
+ (function(_0x226226,_0x59a1f0){const _0x4869d6=a249_0x25ce,_0x227cd1=_0x226226();while(!![]){try{const _0x369fce=-parseInt(_0x4869d6(0x96))/0x1*(-parseInt(_0x4869d6(0x98))/0x2)+parseInt(_0x4869d6(0x97))/0x3+-parseInt(_0x4869d6(0x9b))/0x4*(-parseInt(_0x4869d6(0x95))/0x5)+-parseInt(_0x4869d6(0x9f))/0x6*(parseInt(_0x4869d6(0x9a))/0x7)+parseInt(_0x4869d6(0x9d))/0x8*(parseInt(_0x4869d6(0x99))/0x9)+-parseInt(_0x4869d6(0x9e))/0xa+parseInt(_0x4869d6(0x9c))/0xb*(-parseInt(_0x4869d6(0x94))/0xc);if(_0x369fce===_0x59a1f0)break;else _0x227cd1['push'](_0x227cd1['shift']());}catch(_0x4f95b3){_0x227cd1['push'](_0x227cd1['shift']());}}}(a249_0x1239,0x9e5af));function a249_0x25ce(_0x111789,_0x37dc71){_0x111789=_0x111789-0x93;const _0x123906=a249_0x1239();let _0x25ce2b=_0x123906[_0x111789];return _0x25ce2b;}function a249_0x1239(){const _0x259916=['5771380omqtsl','12zUWMKl','isDirectory','5061864JoCXNc','5312030RVsAXi','196894Mwawvh','3340686WIlpcV','8arYxYC','2105307YkJlTp','1156547GgilrC','4crmMyL','55yIpFbP','24yZxNSq'];a249_0x1239=function(){return _0x259916;};return a249_0x1239();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x45d4c3,_0x12a12f){const _0x22e320=a249_0x25ce,_0xdb0f78=statSync(_0x45d4c3);if(_0xdb0f78[_0x22e320(0x93)]()){!existsSync(_0x12a12f)&&mkdirSync(_0x12a12f,{'recursive':!![]});const _0x23d521=readdirSync(_0x45d4c3);for(const _0x21d3ef of _0x23d521){await copyDir(join(_0x45d4c3,_0x21d3ef),join(_0x12a12f,_0x21d3ef));}}else copyFileSync(_0x45d4c3,_0x12a12f);}export function ensureDir(_0x16ac7d){!existsSync(_0x16ac7d)&&mkdirSync(_0x16ac7d,{'recursive':!![]});}export function pathExists(_0x5e4697){return existsSync(_0x5e4697);}
@@ -1 +1 @@
1
- const a250_0x186d1b=a250_0x295f;(function(_0x4ce68d,_0x2ad1b8){const _0x2d717a=a250_0x295f,_0xe9ad1d=_0x4ce68d();while(!![]){try{const _0x2bc1e3=parseInt(_0x2d717a(0x1dc))/0x1+-parseInt(_0x2d717a(0x1da))/0x2*(parseInt(_0x2d717a(0x1d0))/0x3)+-parseInt(_0x2d717a(0x1e6))/0x4*(parseInt(_0x2d717a(0x1eb))/0x5)+parseInt(_0x2d717a(0x1e0))/0x6*(parseInt(_0x2d717a(0x1de))/0x7)+parseInt(_0x2d717a(0x1cb))/0x8+-parseInt(_0x2d717a(0x1d2))/0x9+parseInt(_0x2d717a(0x1d9))/0xa;if(_0x2bc1e3===_0x2ad1b8)break;else _0xe9ad1d['push'](_0xe9ad1d['shift']());}catch(_0x44b70e){_0xe9ad1d['push'](_0xe9ad1d['shift']());}}}(a250_0x3088,0xb05a7));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 _0x3a51ea=getTemplateBaseUrl();return _0x3a51ea+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a250_0x186d1b(0x1cc),a250_0x186d1b(0x1e1));export async function fetchGuidesFromCDN(){const _0x2eaedb=a250_0x186d1b,_0x583b40=getGuidesCdnUrl(),_0x1dfb82=await fetch(_0x583b40,{'headers':{'Accept':_0x2eaedb(0x1e5)}});if(!_0x1dfb82['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1dfb82[_0x2eaedb(0x1cd)]+'\x20'+_0x1dfb82[_0x2eaedb(0x1e7)]);const _0x2f46ee=await _0x1dfb82[_0x2eaedb(0x1d7)]();if(!_0x2f46ee[_0x2eaedb(0x1d4)]||typeof _0x2f46ee[_0x2eaedb(0x1d4)]!=='object')throw new Error(_0x2eaedb(0x1e8));return _0x2f46ee;}function a250_0x295f(_0x5e8991,_0x4227c6){_0x5e8991=_0x5e8991-0x1ca;const _0x30880a=a250_0x3088();let _0x295ff7=_0x30880a[_0x5e8991];return _0x295ff7;}export function writeGuidesToProject(_0x77dcac,_0x49db8e,_0x1bd5eb=a250_0x186d1b(0x1e2),_0x3a599b){const _0x212b9b=a250_0x186d1b,_0x261195=join(_0x49db8e,_0x1bd5eb);mkdirSync(_0x261195,{'recursive':!![]});for(const [_0x352dc8,_0xe0c49f]of Object[_0x212b9b(0x1ce)](_0x77dcac[_0x212b9b(0x1d4)])){let _0x4cbfed=_0xe0c49f['content'];_0xe0c49f[_0x212b9b(0x1d8)]&&(_0x4cbfed=appendUpdateTime(_0x4cbfed,_0xe0c49f[_0x212b9b(0x1d8)])),writeFileSync(join(_0x261195,_0x352dc8+'.md'),_0x4cbfed,_0x212b9b(0x1e9));}}export function appendUpdateTime(_0x6a964a,_0xc2cca5){const _0x48f0b5=a250_0x186d1b;return _0x6a964a=_0x6a964a['replace'](/\n*>更新时间:.*$/m,''),_0x6a964a['trimEnd']()+(_0x48f0b5(0x1ea)+_0xc2cca5);}export function getSkillTemplate(_0x45d8f9){const _0x3f97c=a250_0x186d1b;return _0x45d8f9[_0x3f97c(0x1e4)]?.[_0x3f97c(0x1d5)]||'';}function a250_0x3088(){const _0x100d62=['14EsXLrh','title','2065254kgdRnM','cache','.lovrabet/skill/guides','length','skillTemplate','application/json','105796rzFBTr','statusText','CDN\x20返回数据格式错误','utf-8','\x0a\x0a>更新时间:','15cDNDvh','CDN\x20数据中缺少\x20skillTemplate','9684168iCbjYu','.lovrabet','status','entries','keys','104451mQdHLC','push','9238266CrdycB','trimEnd','guides','content','map','json','lastUpdated','9169860qWIGCP','78AwcWwP','path','370102CQiFTe','extendContent'];a250_0x3088=function(){return _0x100d62;};return a250_0x3088();}export function appendExtendContents(_0x17c2fe,_0x2b5fc1,_0x16aa55){const _0x16ea5e=a250_0x186d1b,_0xc7caf5=[];for(const [,_0x11f50a]of Object[_0x16ea5e(0x1ce)](_0x2b5fc1[_0x16ea5e(0x1d4)])){_0x11f50a[_0x16ea5e(0x1dd)]&&_0xc7caf5[_0x16ea5e(0x1d1)](_0x11f50a['extendContent'][_0x16ea5e(0x1d3)]());}if(_0xc7caf5[_0x16ea5e(0x1e3)]===0x0)return _0x17c2fe;return _0x17c2fe[_0x16ea5e(0x1d3)]()+'\x0a\x0a'+_0xc7caf5['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2aae9f,_0x44a9f3,_0x104f09){const _0x59dc61=a250_0x186d1b,_0x199509=getSkillTemplate(_0x2aae9f);if(!_0x199509)throw new Error(_0x59dc61(0x1ca));const _0x2150d5=dirname(_0x44a9f3);mkdirSync(_0x2150d5,{'recursive':!![]});let _0x2c9224=_0x199509['replace'](/\{\{IDE_NAME\}\}/g,_0x104f09);_0x2c9224=appendExtendContents(_0x2c9224,_0x2aae9f),_0x2aae9f[_0x59dc61(0x1e4)]['lastUpdated']&&(_0x2c9224=appendUpdateTime(_0x2c9224,_0x2aae9f[_0x59dc61(0x1e4)]['lastUpdated'])),writeFileSync(_0x44a9f3,_0x2c9224,_0x59dc61(0x1e9));}export async function installGuides(_0x56dba5){const _0x4aa501=a250_0x186d1b,_0x5b2480=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5b2480,_0x56dba5),Object[_0x4aa501(0x1cf)](_0x5b2480['guides'])[_0x4aa501(0x1e3)];}export function getGuidesSummary(_0x277a82){const _0x55c51b=a250_0x186d1b;return Object['entries'](_0x277a82['guides'])[_0x55c51b(0x1d6)](([_0x582e54,_0x1afc09])=>({'key':_0x582e54,'title':_0x1afc09[_0x55c51b(0x1df)],'path':_0x1afc09[_0x55c51b(0x1db)]}));}
1
+ const a250_0x4fc0c8=a250_0x3364;(function(_0x4f9bdc,_0x34dbdd){const _0x5119cd=a250_0x3364,_0x424272=_0x4f9bdc();while(!![]){try{const _0x4deb47=parseInt(_0x5119cd(0xbf))/0x1*(-parseInt(_0x5119cd(0xe0))/0x2)+-parseInt(_0x5119cd(0xdf))/0x3+parseInt(_0x5119cd(0xd7))/0x4+-parseInt(_0x5119cd(0xdc))/0x5+-parseInt(_0x5119cd(0xcd))/0x6*(-parseInt(_0x5119cd(0xc8))/0x7)+-parseInt(_0x5119cd(0xc7))/0x8*(parseInt(_0x5119cd(0xc6))/0x9)+-parseInt(_0x5119cd(0xc1))/0xa*(-parseInt(_0x5119cd(0xde))/0xb);if(_0x4deb47===_0x34dbdd)break;else _0x424272['push'](_0x424272['shift']());}catch(_0x27e1e8){_0x424272['push'](_0x424272['shift']());}}}(a250_0x44d4,0xcf896));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a250_0x3364(_0x599e49,_0x48bb45){_0x599e49=_0x599e49-0xbe;const _0x44d489=a250_0x44d4();let _0x3364a5=_0x44d489[_0x599e49];return _0x3364a5;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x51042d=getTemplateBaseUrl();return _0x51042d+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a250_0x4fc0c8(0xd8),'cache');export async function fetchGuidesFromCDN(){const _0x13a3d5=a250_0x4fc0c8,_0x23a955=getGuidesCdnUrl(),_0x333e95=await fetch(_0x23a955,{'headers':{'Accept':_0x13a3d5(0xc0)}});if(!_0x333e95['ok'])throw new Error(_0x13a3d5(0xda)+_0x333e95[_0x13a3d5(0xc5)]+'\x20'+_0x333e95['statusText']);const _0x42ba66=await _0x333e95[_0x13a3d5(0xcc)]();if(!_0x42ba66[_0x13a3d5(0xcf)]||typeof _0x42ba66[_0x13a3d5(0xcf)]!==_0x13a3d5(0xd4))throw new Error(_0x13a3d5(0xd9));return _0x42ba66;}export function writeGuidesToProject(_0x4fdedc,_0x38be77,_0x5c789d=a250_0x4fc0c8(0xc2),_0x1034fe){const _0x216006=a250_0x4fc0c8,_0x1a7476=join(_0x38be77,_0x5c789d);mkdirSync(_0x1a7476,{'recursive':!![]});for(const [_0x286dea,_0x4ce2df]of Object[_0x216006(0xdb)](_0x4fdedc[_0x216006(0xcf)])){let _0x1eb568=_0x4ce2df[_0x216006(0xd0)];_0x4ce2df['lastUpdated']&&(_0x1eb568=appendUpdateTime(_0x1eb568,_0x4ce2df[_0x216006(0xce)])),writeFileSync(join(_0x1a7476,_0x286dea+'.md'),_0x1eb568,_0x216006(0xc9));}}export function appendUpdateTime(_0x4c1b3d,_0x1bc625){const _0x30d283=a250_0x4fc0c8;return _0x4c1b3d=_0x4c1b3d[_0x30d283(0xc4)](/\n*>更新时间:.*$/m,''),_0x4c1b3d[_0x30d283(0xc3)]()+(_0x30d283(0xd1)+_0x1bc625);}export function getSkillTemplate(_0x3ffd85){const _0x8bb687=a250_0x4fc0c8;return _0x3ffd85[_0x8bb687(0xd2)]?.[_0x8bb687(0xd0)]||'';}function a250_0x44d4(){const _0x489bcd=['10224LtlBEh','7uEEIoJ','utf-8','push','keys','json','5494530vexHnk','lastUpdated','guides','content','\x0a\x0a>更新时间:','skillTemplate','extendContent','object','join','length','1594528PlUQCg','.lovrabet','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','entries','4787535ejKlPZ','CDN\x20数据中缺少\x20skillTemplate','30335041ikWzNt','1908591kIctwe','37244UdolJn','path','37QOYbES','application/json','10JWibdc','.lovrabet/skill/guides','trimEnd','replace','status','6615MeDcaD'];a250_0x44d4=function(){return _0x489bcd;};return a250_0x44d4();}export function appendExtendContents(_0x2e9155,_0x39c9ae,_0x218242){const _0x3aa14e=a250_0x4fc0c8,_0x1abd4a=[];for(const [,_0x366201]of Object[_0x3aa14e(0xdb)](_0x39c9ae[_0x3aa14e(0xcf)])){_0x366201[_0x3aa14e(0xd3)]&&_0x1abd4a[_0x3aa14e(0xca)](_0x366201[_0x3aa14e(0xd3)]['trimEnd']());}if(_0x1abd4a[_0x3aa14e(0xd6)]===0x0)return _0x2e9155;return _0x2e9155[_0x3aa14e(0xc3)]()+'\x0a\x0a'+_0x1abd4a[_0x3aa14e(0xd5)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5b72a2,_0x3d0586,_0x3b9136){const _0x572db1=a250_0x4fc0c8,_0x43f202=getSkillTemplate(_0x5b72a2);if(!_0x43f202)throw new Error(_0x572db1(0xdd));const _0x322c36=dirname(_0x3d0586);mkdirSync(_0x322c36,{'recursive':!![]});let _0x2bf6fe=_0x43f202[_0x572db1(0xc4)](/\{\{IDE_NAME\}\}/g,_0x3b9136);_0x2bf6fe=appendExtendContents(_0x2bf6fe,_0x5b72a2),_0x5b72a2[_0x572db1(0xd2)][_0x572db1(0xce)]&&(_0x2bf6fe=appendUpdateTime(_0x2bf6fe,_0x5b72a2[_0x572db1(0xd2)][_0x572db1(0xce)])),writeFileSync(_0x3d0586,_0x2bf6fe,'utf-8');}export async function installGuides(_0x223763){const _0x16b6ec=a250_0x4fc0c8,_0x3c5f3f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3c5f3f,_0x223763),Object[_0x16b6ec(0xcb)](_0x3c5f3f[_0x16b6ec(0xcf)])['length'];}export function getGuidesSummary(_0x47e8ad){const _0x16a05c=a250_0x4fc0c8;return Object['entries'](_0x47e8ad[_0x16a05c(0xcf)])['map'](([_0x4ed811,_0x3ee26])=>({'key':_0x4ed811,'title':_0x3ee26['title'],'path':_0x3ee26[_0x16a05c(0xbe)]}));}
@@ -1 +1 @@
1
- function a251_0x381a(){const _0x4e22f0=['log','text','name','headers','content-type','abort','fetch','838844ARermy','\x20次重试...','*\x20请求失败,','application/json','signal','99120yTpbry','10716WTXzKp','message','Request\x20failed','1488790CTITeM','4412DpdqEY','222PhLndR','ms\x20后进行第\x20','url','182723bnmxPG','includes','ECONNRESET','json','515PejwbN','693486tFtSCM','252CJYKqU'];a251_0x381a=function(){return _0x4e22f0;};return a251_0x381a();}(function(_0x1b2558,_0x3ceb20){const _0x30156b=a251_0xb14f,_0x3c499c=_0x1b2558();while(!![]){try{const _0x51fd53=-parseInt(_0x30156b(0x1a9))/0x1+-parseInt(_0x30156b(0x19b))/0x2+parseInt(_0x30156b(0x1a6))/0x3*(parseInt(_0x30156b(0x1a5))/0x4)+parseInt(_0x30156b(0x1ad))/0x5*(parseInt(_0x30156b(0x1a1))/0x6)+parseInt(_0x30156b(0x1af))/0x7*(parseInt(_0x30156b(0x1a0))/0x8)+parseInt(_0x30156b(0x1ae))/0x9+parseInt(_0x30156b(0x1a4))/0xa;if(_0x51fd53===_0x3ceb20)break;else _0x3c499c['push'](_0x3c499c['shift']());}catch(_0x15eba4){_0x3c499c['push'](_0x3c499c['shift']());}}}(a251_0x381a,0x51e30));export async function httpRequest(_0x539d7c,_0x3e7492={}){const _0x10cfa5=a251_0xb14f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3e7492;let _0x3b0aac=null;for(let _0x1b6a36=0x0;_0x1b6a36<=retries;_0x1b6a36++){try{const _0x436963=new AbortController(),_0x17d2c0=setTimeout(()=>_0x436963[_0x10cfa5(0x1b5)](),timeout),_0x624d07=await fetch(_0x539d7c,{'headers':headers,'signal':_0x436963[_0x10cfa5(0x19f)]});clearTimeout(_0x17d2c0);let _0x53b5f1;const _0xba656=_0x624d07['headers']['get'](_0x10cfa5(0x1b4));return _0xba656?.[_0x10cfa5(0x1aa)](_0x10cfa5(0x19e))?_0x53b5f1=await _0x624d07[_0x10cfa5(0x1ac)]():_0x53b5f1=await _0x624d07[_0x10cfa5(0x1b1)](),{'ok':_0x624d07['ok'],'status':_0x624d07['status'],'statusText':_0x624d07['statusText'],'data':_0x53b5f1,'headers':_0x624d07[_0x10cfa5(0x1b3)],'url':_0x624d07[_0x10cfa5(0x1a8)],'text':()=>_0x624d07['text']()};}catch(_0x530c9f){_0x3b0aac=_0x530c9f instanceof Error?_0x530c9f:new Error(String(_0x530c9f));if(_0x1b6a36===retries)break;if(shouldRetry(_0x530c9f)){console[_0x10cfa5(0x1b0)](_0x10cfa5(0x19d)+retryDelay+_0x10cfa5(0x1a7)+(_0x1b6a36+0x1)+_0x10cfa5(0x19c)),await sleep(retryDelay);continue;}else break;}}throw _0x3b0aac||new Error(_0x10cfa5(0x1a3));}function a251_0xb14f(_0x1de684,_0x4f6dbc){_0x1de684=_0x1de684-0x19a;const _0x381a95=a251_0x381a();let _0xb14f23=_0x381a95[_0x1de684];return _0xb14f23;}function shouldRetry(_0x393caa){const _0x139a2c=a251_0xb14f;if(_0x393caa instanceof Error){if(_0x393caa[_0x139a2c(0x1b2)]==='AbortError')return![];if(_0x393caa[_0x139a2c(0x1b2)]==='TypeError'&&_0x393caa[_0x139a2c(0x1a2)][_0x139a2c(0x1aa)](_0x139a2c(0x19a)))return!![];if(_0x393caa['message'][_0x139a2c(0x1aa)](_0x139a2c(0x1ab)))return!![];if(_0x393caa[_0x139a2c(0x1a2)][_0x139a2c(0x1aa)]('ENOTFOUND'))return![];}return![];}function sleep(_0x331ef0){return new Promise(_0x4b35a0=>setTimeout(_0x4b35a0,_0x331ef0));}export function validateUrl(_0x51afe4){try{return new URL(_0x51afe4),!![];}catch{return![];}}
1
+ (function(_0x22e85a,_0x26d041){const _0x2d6cac=a251_0x1470,_0x9cf9cc=_0x22e85a();while(!![]){try{const _0x27669c=parseInt(_0x2d6cac(0x1a8))/0x1*(parseInt(_0x2d6cac(0x1a7))/0x2)+parseInt(_0x2d6cac(0x19f))/0x3*(-parseInt(_0x2d6cac(0x1b3))/0x4)+-parseInt(_0x2d6cac(0x19b))/0x5*(-parseInt(_0x2d6cac(0x19e))/0x6)+parseInt(_0x2d6cac(0x1a6))/0x7*(-parseInt(_0x2d6cac(0x1aa))/0x8)+-parseInt(_0x2d6cac(0x1ac))/0x9*(parseInt(_0x2d6cac(0x1b0))/0xa)+parseInt(_0x2d6cac(0x1a1))/0xb+parseInt(_0x2d6cac(0x1b4))/0xc;if(_0x27669c===_0x26d041)break;else _0x9cf9cc['push'](_0x9cf9cc['shift']());}catch(_0x89d65b){_0x9cf9cc['push'](_0x9cf9cc['shift']());}}}(a251_0x51b1,0x50f1c));function a251_0x1470(_0x5ebbd5,_0xad1f8a){_0x5ebbd5=_0x5ebbd5-0x193;const _0x51b195=a251_0x51b1();let _0x147004=_0x51b195[_0x5ebbd5];return _0x147004;}function a251_0x51b1(){const _0x3c1246=['115761bWKMNP','url','634304DtXvxL','ENOTFOUND','text','abort','message','9002ypKotp','83998LTHIFO','2yViliT','ECONNRESET','712hQbgAR','\x20次重试...','9tXJheF','headers','log','AbortError','4574770GIbKaE','includes','content-type','56TqLZQK','13012404hNnvQD','TypeError','status','ms\x20后进行第\x20','signal','json','Request\x20failed','fetch','application/json','110wGQLqp','get','name','59364ohMPhu'];a251_0x51b1=function(){return _0x3c1246;};return a251_0x51b1();}export async function httpRequest(_0x75b7aa,_0x510e70={}){const _0xdad156=a251_0x1470,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x510e70;let _0x10de1d=null;for(let _0x5dd857=0x0;_0x5dd857<=retries;_0x5dd857++){try{const _0x35b04a=new AbortController(),_0x36d804=setTimeout(()=>_0x35b04a[_0xdad156(0x1a4)](),timeout),_0x5ef70c=await fetch(_0x75b7aa,{'headers':headers,'signal':_0x35b04a[_0xdad156(0x196)]});clearTimeout(_0x36d804);let _0x27b6bb;const _0x48de79=_0x5ef70c[_0xdad156(0x1ad)][_0xdad156(0x19c)](_0xdad156(0x1b2));return _0x48de79?.[_0xdad156(0x1b1)](_0xdad156(0x19a))?_0x27b6bb=await _0x5ef70c[_0xdad156(0x197)]():_0x27b6bb=await _0x5ef70c[_0xdad156(0x1a3)](),{'ok':_0x5ef70c['ok'],'status':_0x5ef70c[_0xdad156(0x194)],'statusText':_0x5ef70c['statusText'],'data':_0x27b6bb,'headers':_0x5ef70c[_0xdad156(0x1ad)],'url':_0x5ef70c[_0xdad156(0x1a0)],'text':()=>_0x5ef70c[_0xdad156(0x1a3)]()};}catch(_0x3cc008){_0x10de1d=_0x3cc008 instanceof Error?_0x3cc008:new Error(String(_0x3cc008));if(_0x5dd857===retries)break;if(shouldRetry(_0x3cc008)){console[_0xdad156(0x1ae)]('*\x20请求失败,'+retryDelay+_0xdad156(0x195)+(_0x5dd857+0x1)+_0xdad156(0x1ab)),await sleep(retryDelay);continue;}else break;}}throw _0x10de1d||new Error(_0xdad156(0x198));}function shouldRetry(_0x23c170){const _0x363113=a251_0x1470;if(_0x23c170 instanceof Error){if(_0x23c170[_0x363113(0x19d)]===_0x363113(0x1af))return![];if(_0x23c170[_0x363113(0x19d)]===_0x363113(0x193)&&_0x23c170[_0x363113(0x1a5)]['includes'](_0x363113(0x199)))return!![];if(_0x23c170[_0x363113(0x1a5)][_0x363113(0x1b1)](_0x363113(0x1a9)))return!![];if(_0x23c170[_0x363113(0x1a5)]['includes'](_0x363113(0x1a2)))return![];}return![];}function sleep(_0x2540f3){return new Promise(_0x44192b=>setTimeout(_0x44192b,_0x2540f3));}export function validateUrl(_0x2be3a5){try{return new URL(_0x2be3a5),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x3c2cc4,_0x986e70){const _0x957ae8=a252_0x4466,_0x1c991a=_0x3c2cc4();while(!![]){try{const _0x17b6ac=-parseInt(_0x957ae8(0xf1))/0x1*(parseInt(_0x957ae8(0xf4))/0x2)+parseInt(_0x957ae8(0xf2))/0x3+parseInt(_0x957ae8(0xf9))/0x4+-parseInt(_0x957ae8(0xfd))/0x5+-parseInt(_0x957ae8(0xfa))/0x6*(parseInt(_0x957ae8(0xfe))/0x7)+parseInt(_0x957ae8(0xff))/0x8+parseInt(_0x957ae8(0xf6))/0x9;if(_0x17b6ac===_0x986e70)break;else _0x1c991a['push'](_0x1c991a['shift']());}catch(_0x38f219){_0x1c991a['push'](_0x1c991a['shift']());}}}(a252_0x5a8f,0x7af8f));function a252_0x4466(_0xa55f1f,_0x3e8553){_0xa55f1f=_0xa55f1f-0xf1;const _0x5a8f03=a252_0x5a8f();let _0x446675=_0x5a8f03[_0xa55f1f];return _0x446675;}function env(_0xd97a67){return process.env[`RABETBASE_${_0xd97a67}`]||process.env[`LOVRABET_${_0xd97a67}`]||undefined;}export function isNonInteractive(_0x52d04c){const _0x25bdbf=a252_0x4466;return!!(_0x52d04c[_0x25bdbf(0xf5)]||_0x52d04c['ci']||env('CI')==='true'||process.env.CI===_0x25bdbf(0xf8)||!process['stdout'][_0x25bdbf(0xf3)]||!isStdinRawModeSupported());}function a252_0x5a8f(){const _0x2845eb=['232rspaxk','nonInteractive','1728270JyfTEi','setRawMode','true','2597488rkibAj','12YnFvVt','isRaw','stdin','4842175iKbjOB','1816493cfElWx','7335520vDBbCC','399eUCnxh','837210Aqievw','isTTY'];a252_0x5a8f=function(){return _0x2845eb;};return a252_0x5a8f();}function isStdinRawModeSupported(){const _0x1efbd7=a252_0x4466;if(!process[_0x1efbd7(0xfc)]['isTTY'])return![];try{const _0x83a858=process[_0x1efbd7(0xfc)][_0x1efbd7(0xfb)];return process['stdin'][_0x1efbd7(0xf7)](!![]),process[_0x1efbd7(0xfc)][_0x1efbd7(0xf7)](_0x83a858??![]),!![];}catch{return![];}}
1
+ function a252_0x3bff(){const _0x21a32c=['2400447bAZJFw','32780GFCryv','1153NozBpJ','7193137brHELh','nonInteractive','3312595iMNOOu','1817590JUyWXA','true','1385442BTFwCE','8QvUOAR','stdout','117NiGcsL','setRawMode','stdin','isTTY','1834KrOSKU'];a252_0x3bff=function(){return _0x21a32c;};return a252_0x3bff();}(function(_0x1fb1ce,_0x42ef82){const _0x1e616f=a252_0x1903,_0x38aaae=_0x1fb1ce();while(!![]){try{const _0x2e6741=parseInt(_0x1e616f(0x1ee))/0x1*(-parseInt(_0x1e616f(0x1eb))/0x2)+parseInt(_0x1e616f(0x1ec))/0x3+parseInt(_0x1e616f(0x1ed))/0x4+-parseInt(_0x1e616f(0x1f1))/0x5+parseInt(_0x1e616f(0x1e4))/0x6+-parseInt(_0x1e616f(0x1ef))/0x7*(parseInt(_0x1e616f(0x1e5))/0x8)+-parseInt(_0x1e616f(0x1e7))/0x9*(-parseInt(_0x1e616f(0x1e2))/0xa);if(_0x2e6741===_0x42ef82)break;else _0x38aaae['push'](_0x38aaae['shift']());}catch(_0x49706c){_0x38aaae['push'](_0x38aaae['shift']());}}}(a252_0x3bff,0x9fd73));function env(_0x449741){return process.env[`RABETBASE_${_0x449741}`]||process.env[`LOVRABET_${_0x449741}`]||undefined;}export function isNonInteractive(_0x56bd60){const _0x4c6886=a252_0x1903;return!!(_0x56bd60[_0x4c6886(0x1f0)]||_0x56bd60['ci']||env('CI')===_0x4c6886(0x1e3)||process.env.CI===_0x4c6886(0x1e3)||!process[_0x4c6886(0x1e6)][_0x4c6886(0x1ea)]||!isStdinRawModeSupported());}function a252_0x1903(_0x1b6e26,_0x165824){_0x1b6e26=_0x1b6e26-0x1e2;const _0x3bfff9=a252_0x3bff();let _0x190353=_0x3bfff9[_0x1b6e26];return _0x190353;}function isStdinRawModeSupported(){const _0x533423=a252_0x1903;if(!process[_0x533423(0x1e9)][_0x533423(0x1ea)])return![];try{const _0x121a97=process['stdin']['isRaw'];return process[_0x533423(0x1e9)][_0x533423(0x1e8)](!![]),process['stdin'][_0x533423(0x1e8)](_0x121a97??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a253_0x521ef5=a253_0x18b5;(function(_0x4e8d2a,_0x5b9280){const _0xd05e4b=a253_0x18b5,_0x407128=_0x4e8d2a();while(!![]){try{const _0x353c9b=-parseInt(_0xd05e4b(0xbf))/0x1*(parseInt(_0xd05e4b(0xce))/0x2)+-parseInt(_0xd05e4b(0xcc))/0x3*(parseInt(_0xd05e4b(0xbe))/0x4)+parseInt(_0xd05e4b(0xe3))/0x5*(parseInt(_0xd05e4b(0xc5))/0x6)+-parseInt(_0xd05e4b(0xd3))/0x7+-parseInt(_0xd05e4b(0xc3))/0x8*(parseInt(_0xd05e4b(0xdf))/0x9)+-parseInt(_0xd05e4b(0xec))/0xa+parseInt(_0xd05e4b(0xda))/0xb;if(_0x353c9b===_0x5b9280)break;else _0x407128['push'](_0x407128['shift']());}catch(_0x27f4f8){_0x407128['push'](_0x407128['shift']());}}}(a253_0x157d,0x34f1d));import a253_0x4d4fcb from'winston';import a253_0x5666e5 from'node:fs';function a253_0x18b5(_0x48e94e,_0x317c5d){_0x48e94e=_0x48e94e-0xb8;const _0x157db9=a253_0x157d();let _0x18b5fe=_0x157db9[_0x48e94e];return _0x18b5fe;}import a253_0x24bc74 from'node:path';class Logger{['winstonLogger'];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x1a7323){const _0x57443c=a253_0x18b5;this[_0x57443c(0xc9)]=_0x1a7323;}[a253_0x521ef5(0xc7)](){const _0x3a377d=a253_0x521ef5,_0x436229=a253_0x24bc74[_0x3a377d(0xe2)](this[_0x3a377d(0xd5)]);!a253_0x5666e5[_0x3a377d(0xc8)](_0x436229)&&a253_0x5666e5[_0x3a377d(0xbd)](_0x436229,{'recursive':!![]});const _0x3992fc=a253_0x4d4fcb['format'][_0x3a377d(0xc4)](a253_0x4d4fcb[_0x3a377d(0xbb)][_0x3a377d(0xeb)](),a253_0x4d4fcb[_0x3a377d(0xbb)][_0x3a377d(0xe6)]({'stack':!![]}),a253_0x4d4fcb[_0x3a377d(0xbb)]['printf'](_0x461da3=>{const _0x42efe5=_0x3a377d,_0x1a17a1={'timestamp':_0x461da3[_0x42efe5(0xeb)]||new Date()[_0x42efe5(0xba)](),'level':_0x461da3['level']||_0x42efe5(0xd7),'command':_0x461da3[_0x42efe5(0xdd)]||_0x42efe5(0xd6),'rawCommand':_0x461da3[_0x42efe5(0xe5)]||this[_0x42efe5(0xc9)]||undefined,'message':_0x461da3[_0x42efe5(0xd8)]||'','duration':_0x461da3[_0x42efe5(0xcd)]||undefined,'details':_0x461da3[_0x42efe5(0xb8)]||undefined};return JSON[_0x42efe5(0xc1)](_0x1a17a1);}));this[_0x3a377d(0xbc)]=a253_0x4d4fcb[_0x3a377d(0xb9)]({'level':_0x3a377d(0xd7),'format':_0x3992fc,'transports':[new a253_0x4d4fcb['transports']['File']({'filename':this[_0x3a377d(0xd5)],'level':'info'})],'silent':![]}),a253_0x4d4fcb['addColors']({'success':'green','error':_0x3a377d(0xc2),'warn':_0x3a377d(0xea),'info':'blue'});}[a253_0x521ef5(0xd2)](_0x7c4885){const _0x50c279=a253_0x521ef5;this[_0x50c279(0xd5)]=a253_0x24bc74[_0x50c279(0xe1)](_0x7c4885,_0x50c279(0xde)),this[_0x50c279(0xbc)]&&this[_0x50c279(0xbc)][_0x50c279(0xc6)](),this[_0x50c279(0xc7)]();}['info'](_0x484428,_0x5d1f47,_0x2e1422){const _0x1102b4=a253_0x521ef5;if(!this[_0x1102b4(0xd5)]||!this[_0x1102b4(0xbc)])return;this[_0x1102b4(0xbc)][_0x1102b4(0xd7)](_0x5d1f47,{'command':_0x484428,'details':_0x2e1422});}[a253_0x521ef5(0xd0)](_0x344808,_0x7ff4e9,_0x15c05e,_0x103b40){const _0x5743ed=a253_0x521ef5;if(!this[_0x5743ed(0xd5)]||!this[_0x5743ed(0xbc)])return;this[_0x5743ed(0xbc)][_0x5743ed(0xe8)](_0x5743ed(0xd7),_0x7ff4e9,{'level':'success','command':_0x344808,'duration':_0x15c05e,'details':_0x103b40});}[a253_0x521ef5(0xe0)](_0x5b4e97,_0x40fd91,_0x6eba47){const _0x35e591=a253_0x521ef5;if(!this[_0x35e591(0xd5)]||!this[_0x35e591(0xbc)])return;this[_0x35e591(0xbc)][_0x35e591(0xe0)](_0x40fd91,{'command':_0x5b4e97,'details':_0x6eba47});}[a253_0x521ef5(0xdc)](_0x39ac74,_0x8e6069,_0x1db8f8){const _0x26547d=a253_0x521ef5;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x26547d(0xbc)][_0x26547d(0xdc)](_0x8e6069,{'command':_0x39ac74,'details':_0x1db8f8});}async[a253_0x521ef5(0xd1)](_0x50a4f9,_0x288d16,_0xe5acae){const _0x7f95f2=a253_0x521ef5,_0x7062d9=Date['now']();this[_0x7f95f2(0xd7)](_0x50a4f9,_0x7f95f2(0xe7)+_0x288d16);try{const _0x2c741b=await _0xe5acae(),_0x519b71=Date['now']()-_0x7062d9;return this[_0x7f95f2(0xd0)](_0x50a4f9,_0x7f95f2(0xca)+_0x288d16,_0x519b71),_0x2c741b;}catch(_0xa25be8){const _0x46e9d9=Date[_0x7f95f2(0xe9)]()-_0x7062d9;this[_0x7f95f2(0xe0)](_0x50a4f9,'失败:\x20'+_0x288d16,{'error':_0xa25be8 instanceof Error?_0xa25be8[_0x7f95f2(0xd8)]:String(_0xa25be8),'duration':_0x46e9d9});throw _0xa25be8;}}[a253_0x521ef5(0xdb)](){const _0x4ebc44=a253_0x521ef5;try{if(!a253_0x5666e5['existsSync'](this[_0x4ebc44(0xd5)]))return[];const _0x591395=a253_0x5666e5[_0x4ebc44(0xcf)](this[_0x4ebc44(0xd5)],'utf8');return _0x591395['split']('\x0a')['filter'](_0x237727=>_0x237727['trim']())['map'](_0x2f93e4=>JSON[_0x4ebc44(0xc0)](_0x2f93e4));}catch(_0x4f0e80){return console['warn']('Failed\x20to\x20read\x20logs:',_0x4f0e80),[];}}[a253_0x521ef5(0xe4)](){const _0x436b2c=a253_0x521ef5;try{a253_0x5666e5[_0x436b2c(0xc8)](this['logFilePath'])&&a253_0x5666e5[_0x436b2c(0xd9)](this[_0x436b2c(0xd5)],'',_0x436b2c(0xd4));}catch(_0x1eee8e){console['warn'](_0x436b2c(0xcb),_0x1eee8e);}}['getWinstonInstance'](){const _0x5f53e2=a253_0x521ef5;return this[_0x5f53e2(0xbc)];}}export const logger=new Logger();function a253_0x157d(){const _0x44d494=['timestamp','729210FJyDqH','details','createLogger','toISOString','format','winstonLogger','mkdirSync','326104oyYLqc','89lfryTF','parse','stringify','red','15320ZTGgog','combine','48nASCku','clear','initWinstonLogger','existsSync','currentRawCommand','完成:\x20','Failed\x20to\x20clear\x20logs:','3tKWANR','duration','4548rTdLtU','readFileSync','success','logTask','setLogPath','467474cAhLXD','utf8','logFilePath','unknown','info','message','writeFileSync','6505158avAoBa','readLogs','warn','command','.lovrabet.log','1314GHhFbJ','error','join','dirname','205430yRZcky','clearLogs','rawCommand','errors','开始执行:\x20','log','now','yellow'];a253_0x157d=function(){return _0x44d494;};return a253_0x157d();}
1
+ function a253_0x4816(_0x10c0fe,_0xfae9ef){_0x10c0fe=_0x10c0fe-0x18b;const _0x3bb367=a253_0x3bb3();let _0x48169b=_0x3bb367[_0x10c0fe];return _0x48169b;}const a253_0x10a69c=a253_0x4816;(function(_0x439c58,_0x4f4fbc){const _0x6b9dbc=a253_0x4816,_0x1bdd39=_0x439c58();while(!![]){try{const _0x305fc0=parseInt(_0x6b9dbc(0x1ab))/0x1*(-parseInt(_0x6b9dbc(0x1b5))/0x2)+parseInt(_0x6b9dbc(0x1a6))/0x3*(parseInt(_0x6b9dbc(0x19f))/0x4)+parseInt(_0x6b9dbc(0x1c0))/0x5*(parseInt(_0x6b9dbc(0x19d))/0x6)+-parseInt(_0x6b9dbc(0x1aa))/0x7+parseInt(_0x6b9dbc(0x1c1))/0x8*(parseInt(_0x6b9dbc(0x1b1))/0x9)+-parseInt(_0x6b9dbc(0x1b0))/0xa+-parseInt(_0x6b9dbc(0x1a2))/0xb*(parseInt(_0x6b9dbc(0x1c6))/0xc);if(_0x305fc0===_0x4f4fbc)break;else _0x1bdd39['push'](_0x1bdd39['shift']());}catch(_0x85f8b0){_0x1bdd39['push'](_0x1bdd39['shift']());}}}(a253_0x3bb3,0x53c98));import a253_0x215266 from'winston';import a253_0x3a96fd from'node:fs';import a253_0x42b63d from'node:path';class Logger{['winstonLogger'];[a253_0x10a69c(0x1a4)];[a253_0x10a69c(0x1ae)]='';constructor(){const _0x1d6bc2=a253_0x10a69c;this[_0x1d6bc2(0x1a4)]='';}[a253_0x10a69c(0x191)](_0x2c61df){this['currentRawCommand']=_0x2c61df;}[a253_0x10a69c(0x1ba)](){const _0x262077=a253_0x10a69c,_0x14d5d7=a253_0x42b63d['dirname'](this[_0x262077(0x1a4)]);!a253_0x3a96fd[_0x262077(0x1bb)](_0x14d5d7)&&a253_0x3a96fd[_0x262077(0x190)](_0x14d5d7,{'recursive':!![]});const _0x156fbc=a253_0x215266[_0x262077(0x1b6)][_0x262077(0x1c4)](a253_0x215266['format'][_0x262077(0x1ad)](),a253_0x215266[_0x262077(0x1b6)][_0x262077(0x19b)]({'stack':!![]}),a253_0x215266[_0x262077(0x1b6)][_0x262077(0x1b2)](_0xcb6911=>{const _0xc2f176=_0x262077,_0x430c04={'timestamp':_0xcb6911['timestamp']||new Date()[_0xc2f176(0x1a9)](),'level':_0xcb6911[_0xc2f176(0x1bc)]||'info','command':_0xcb6911[_0xc2f176(0x1b7)]||'unknown','rawCommand':_0xcb6911[_0xc2f176(0x1a0)]||this[_0xc2f176(0x1ae)]||undefined,'message':_0xcb6911['message']||'','duration':_0xcb6911[_0xc2f176(0x1a7)]||undefined,'details':_0xcb6911[_0xc2f176(0x1bf)]||undefined};return JSON[_0xc2f176(0x18d)](_0x430c04);}));this[_0x262077(0x196)]=a253_0x215266['createLogger']({'level':_0x262077(0x1b4),'format':_0x156fbc,'transports':[new a253_0x215266[(_0x262077(0x194))]['File']({'filename':this[_0x262077(0x1a4)],'level':_0x262077(0x1b4)})],'silent':![]}),a253_0x215266[_0x262077(0x19e)]({'success':_0x262077(0x1a3),'error':_0x262077(0x1c2),'warn':_0x262077(0x18b),'info':'blue'});}[a253_0x10a69c(0x1a1)](_0x37da50){const _0x29022a=a253_0x10a69c;this[_0x29022a(0x1a4)]=a253_0x42b63d['join'](_0x37da50,_0x29022a(0x1c3)),this['winstonLogger']&&this[_0x29022a(0x196)][_0x29022a(0x193)](),this[_0x29022a(0x1ba)]();}[a253_0x10a69c(0x1b4)](_0x32d131,_0x59716c,_0x153b4a){const _0x4cac5c=a253_0x10a69c;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4cac5c(0x196)][_0x4cac5c(0x1b4)](_0x59716c,{'command':_0x32d131,'details':_0x153b4a});}[a253_0x10a69c(0x1bd)](_0x5775b6,_0x1fb7b8,_0x1d1f61,_0x57f2b1){const _0x2d5870=a253_0x10a69c;if(!this[_0x2d5870(0x1a4)]||!this[_0x2d5870(0x196)])return;this[_0x2d5870(0x196)]['log'](_0x2d5870(0x1b4),_0x1fb7b8,{'level':_0x2d5870(0x1bd),'command':_0x5775b6,'duration':_0x1d1f61,'details':_0x57f2b1});}[a253_0x10a69c(0x199)](_0x391634,_0x5d6343,_0x56a14f){const _0x205fcd=a253_0x10a69c;if(!this[_0x205fcd(0x1a4)]||!this[_0x205fcd(0x196)])return;this['winstonLogger'][_0x205fcd(0x199)](_0x5d6343,{'command':_0x391634,'details':_0x56a14f});}['warn'](_0x440524,_0x259014,_0x3d49c9){const _0x8cfa83=a253_0x10a69c;if(!this[_0x8cfa83(0x1a4)]||!this[_0x8cfa83(0x196)])return;this['winstonLogger']['warn'](_0x259014,{'command':_0x440524,'details':_0x3d49c9});}async[a253_0x10a69c(0x195)](_0x423489,_0x116e4e,_0x2f85da){const _0x24011e=a253_0x10a69c,_0x319fb1=Date[_0x24011e(0x197)]();this['info'](_0x423489,_0x24011e(0x1a8)+_0x116e4e);try{const _0x5eb6e9=await _0x2f85da(),_0xb6760d=Date[_0x24011e(0x197)]()-_0x319fb1;return this['success'](_0x423489,'完成:\x20'+_0x116e4e,_0xb6760d),_0x5eb6e9;}catch(_0x197c6f){const _0x190262=Date['now']()-_0x319fb1;this[_0x24011e(0x199)](_0x423489,_0x24011e(0x1b3)+_0x116e4e,{'error':_0x197c6f instanceof Error?_0x197c6f[_0x24011e(0x18e)]:String(_0x197c6f),'duration':_0x190262});throw _0x197c6f;}}[a253_0x10a69c(0x1af)](){const _0x34d669=a253_0x10a69c;try{if(!a253_0x3a96fd[_0x34d669(0x1bb)](this['logFilePath']))return[];const _0x4f3739=a253_0x3a96fd[_0x34d669(0x1be)](this[_0x34d669(0x1a4)],_0x34d669(0x19a));return _0x4f3739[_0x34d669(0x192)]('\x0a')[_0x34d669(0x19c)](_0x32f9b8=>_0x32f9b8[_0x34d669(0x1c5)]())[_0x34d669(0x1b8)](_0x58f1d4=>JSON[_0x34d669(0x198)](_0x58f1d4));}catch(_0x4c8365){return console[_0x34d669(0x1a5)](_0x34d669(0x18c),_0x4c8365),[];}}['clearLogs'](){const _0x176ecd=a253_0x10a69c;try{a253_0x3a96fd[_0x176ecd(0x1bb)](this[_0x176ecd(0x1a4)])&&a253_0x3a96fd[_0x176ecd(0x1b9)](this[_0x176ecd(0x1a4)],'',_0x176ecd(0x19a));}catch(_0xa8e8b3){console[_0x176ecd(0x1a5)](_0x176ecd(0x18f),_0xa8e8b3);}}[a253_0x10a69c(0x1ac)](){const _0x69bb6c=a253_0x10a69c;return this[_0x69bb6c(0x196)];}}function a253_0x3bb3(){const _0x3620d2=['split','clear','transports','logTask','winstonLogger','now','parse','error','utf8','errors','filter','18OEJkxY','addColors','24eMIKWe','rawCommand','setLogPath','803keOwkU','green','logFilePath','warn','98172lXFCPU','duration','开始执行:\x20','toISOString','1691837OVVtAv','4TlbzxD','getWinstonInstance','timestamp','currentRawCommand','readLogs','1061230JnPqPr','1557MyvBRR','printf','失败:\x20','info','8638HqtsEv','format','command','map','writeFileSync','initWinstonLogger','existsSync','level','success','readFileSync','details','950110PknBGL','22424vhHwmM','red','.lovrabet.log','combine','trim','89268Wvlevx','yellow','Failed\x20to\x20read\x20logs:','stringify','message','Failed\x20to\x20clear\x20logs:','mkdirSync','setRawCommand'];a253_0x3bb3=function(){return _0x3620d2;};return a253_0x3bb3();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a254_0xe775(_0x5d8c46,_0x14caa5){_0x5d8c46=_0x5d8c46-0x188;const _0x2e926d=a254_0x2e92();let _0xe775ee=_0x2e926d[_0x5d8c46];return _0xe775ee;}(function(_0x11a426,_0x2e2b9d){const _0x5178a3=a254_0xe775,_0x28c339=_0x11a426();while(!![]){try{const _0x5de10d=-parseInt(_0x5178a3(0x188))/0x1*(-parseInt(_0x5178a3(0x195))/0x2)+parseInt(_0x5178a3(0x194))/0x3+parseInt(_0x5178a3(0x191))/0x4+parseInt(_0x5178a3(0x189))/0x5*(parseInt(_0x5178a3(0x190))/0x6)+parseInt(_0x5178a3(0x192))/0x7*(-parseInt(_0x5178a3(0x196))/0x8)+parseInt(_0x5178a3(0x18d))/0x9*(-parseInt(_0x5178a3(0x18b))/0xa)+-parseInt(_0x5178a3(0x18f))/0xb;if(_0x5de10d===_0x2e2b9d)break;else _0x28c339['push'](_0x28c339['shift']());}catch(_0x3001cb){_0x28c339['push'](_0x28c339['shift']());}}}(a254_0x2e92,0x5e739));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x12730){const _0x5d7022=a254_0xe775;if(!_0x12730)return undefined;let _0x52fbfb;try{_0x52fbfb=JSON[_0x5d7022(0x18a)](_0x12730);}catch{throw CliErrors[_0x5d7022(0x18e)](_0x5d7022(0x193)+_0x12730);}if(!_0x52fbfb||typeof _0x52fbfb!==_0x5d7022(0x18c)||Array['isArray'](_0x52fbfb))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x52fbfb;}function a254_0x2e92(){const _0x4830e0=['Invalid\x20JSON\x20for\x20--params:\x20','2036274RDCRvc','12VHVkbk','80EjIpMg','50350OXAbCQ','1931965wQWuMj','parse','50BbZOyI','object','390267ypyVzi','validation','4339588bHorKR','6XXtkvQ','754060XDNYVl','390299VpUZev'];a254_0x2e92=function(){return _0x4830e0;};return a254_0x2e92();}
1
+ (function(_0x4e77cc,_0x3a8720){const _0x443d85=a254_0xbc31,_0x8047ae=_0x4e77cc();while(!![]){try{const _0x348f0b=-parseInt(_0x443d85(0xac))/0x1*(parseInt(_0x443d85(0xa7))/0x2)+parseInt(_0x443d85(0xb0))/0x3+-parseInt(_0x443d85(0xb3))/0x4*(-parseInt(_0x443d85(0xad))/0x5)+-parseInt(_0x443d85(0xae))/0x6*(-parseInt(_0x443d85(0xaa))/0x7)+parseInt(_0x443d85(0xb1))/0x8+parseInt(_0x443d85(0xab))/0x9+parseInt(_0x443d85(0xa5))/0xa*(-parseInt(_0x443d85(0xa9))/0xb);if(_0x348f0b===_0x3a8720)break;else _0x8047ae['push'](_0x8047ae['shift']());}catch(_0x3afc30){_0x8047ae['push'](_0x8047ae['shift']());}}}(a254_0x2853,0x24418));function a254_0xbc31(_0x2de4f6,_0x22dac2){_0x2de4f6=_0x2de4f6-0xa5;const _0x2853cf=a254_0x2853();let _0xbc3192=_0x2853cf[_0x2de4f6];return _0xbc3192;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1fb3dc){const _0x8f42c0=a254_0xbc31;if(!_0x1fb3dc)return undefined;let _0x2193e3;try{_0x2193e3=JSON['parse'](_0x1fb3dc);}catch{throw CliErrors[_0x8f42c0(0xa6)](_0x8f42c0(0xa8)+_0x1fb3dc);}if(!_0x2193e3||typeof _0x2193e3!=='object'||Array[_0x8f42c0(0xaf)](_0x2193e3))throw CliErrors[_0x8f42c0(0xa6)](_0x8f42c0(0xb2),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2193e3;}function a254_0x2853(){const _0x396031=['Invalid\x20JSON\x20for\x20--params:\x20','957abkJua','8274EBMlHM','1858779uoXgnw','163857wQbCUF','5HgRkOP','1098adJKAV','isArray','164445IDfdTv','1701656SZrilK','--params\x20must\x20be\x20a\x20JSON\x20object','210956tlGPsD','49510BIkdPW','validation','2uchbdD'];a254_0x2853=function(){return _0x396031;};return a254_0x2853();}
@@ -1 +1 @@
1
- const a255_0x470d44=a255_0x4f88;function a255_0x4f88(_0x251841,_0x32750d){_0x251841=_0x251841-0x159;const _0x14b447=a255_0x14b4();let _0x4f8889=_0x14b447[_0x251841];return _0x4f8889;}(function(_0x188653,_0x217b9e){const _0x373535=a255_0x4f88,_0x426071=_0x188653();while(!![]){try{const _0x3a1705=parseInt(_0x373535(0x15d))/0x1*(-parseInt(_0x373535(0x160))/0x2)+-parseInt(_0x373535(0x161))/0x3*(-parseInt(_0x373535(0x163))/0x4)+-parseInt(_0x373535(0x15f))/0x5+parseInt(_0x373535(0x15a))/0x6*(parseInt(_0x373535(0x15b))/0x7)+parseInt(_0x373535(0x15e))/0x8*(parseInt(_0x373535(0x15c))/0x9)+-parseInt(_0x373535(0x162))/0xa*(-parseInt(_0x373535(0x164))/0xb)+parseInt(_0x373535(0x165))/0xc;if(_0x3a1705===_0x217b9e)break;else _0x426071['push'](_0x426071['shift']());}catch(_0x55619d){_0x426071['push'](_0x426071['shift']());}}}(a255_0x14b4,0x58775));export const isWindows=process[a255_0x470d44(0x159)]==='win32';function a255_0x14b4(){const _0x56b4eb=['8OCyzwK','3189490BfMGZv','2MubRWI','51VYtOcC','26310aBaDLt','3888ONKBGO','2189bfEkya','5961948grHIYG','platform','1086fhbOSc','1211cOoyhM','3518631xgkqLC','458939lELyne'];a255_0x14b4=function(){return _0x56b4eb;};return a255_0x14b4();}export function resolveNpmBin(_0x2117dc){return isWindows?_0x2117dc+'.cmd':_0x2117dc;}
1
+ function a255_0x4d95(_0x25a3c3,_0x389029){_0x25a3c3=_0x25a3c3-0x71;const _0x3fbd62=a255_0x3fbd();let _0x4d95d0=_0x3fbd62[_0x25a3c3];return _0x4d95d0;}const a255_0x5bde8c=a255_0x4d95;function a255_0x3fbd(){const _0x5ba262=['13485390sfglnl','812902dYsWsm','3647508PuOSsj','171fAJJPe','2PkrZPP','19587OvDLPO','659715IRWvLn','176rWRhzF','411245RNCwzK','11qjUYaC','6rZWgiV','win32','277208LqjyCU'];a255_0x3fbd=function(){return _0x5ba262;};return a255_0x3fbd();}(function(_0x5f5a87,_0x3fdef4){const _0x40f866=a255_0x4d95,_0x8e5d83=_0x5f5a87();while(!![]){try{const _0x246033=-parseInt(_0x40f866(0x7c))/0x1*(-parseInt(_0x40f866(0x72))/0x2)+-parseInt(_0x40f866(0x73))/0x3*(-parseInt(_0x40f866(0x75))/0x4)+parseInt(_0x40f866(0x76))/0x5*(-parseInt(_0x40f866(0x78))/0x6)+parseInt(_0x40f866(0x74))/0x7+-parseInt(_0x40f866(0x7a))/0x8*(-parseInt(_0x40f866(0x71))/0x9)+-parseInt(_0x40f866(0x7b))/0xa+parseInt(_0x40f866(0x77))/0xb*(parseInt(_0x40f866(0x7d))/0xc);if(_0x246033===_0x3fdef4)break;else _0x8e5d83['push'](_0x8e5d83['shift']());}catch(_0x59af2a){_0x8e5d83['push'](_0x8e5d83['shift']());}}}(a255_0x3fbd,0xb13cb));export const isWindows=process['platform']===a255_0x5bde8c(0x79);export function resolveNpmBin(_0x1d3daa){return isWindows?_0x1d3daa+'.cmd':_0x1d3daa;}