@lovrabet/rabetbase-cli 2.3.9 → 2.3.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) 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/group-create.js +1 -1
  104. package/lib/commands/menu/group-update.js +1 -1
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -1
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -1
  110. package/lib/commands/menu/shared/facts.js +1 -1
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -1
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -1
  177. package/lib/commands/task/status.js +1 -1
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -1
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -1
  215. package/lib/framework/explicit-yes.js +1 -1
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x424de1,_0x2423a2){const _0x1aace2=a232_0x4b2b,_0x3d07de=_0x424de1();while(!![]){try{const _0x37f1af=parseInt(_0x1aace2(0x189))/0x1*(parseInt(_0x1aace2(0x18b))/0x2)+parseInt(_0x1aace2(0x18c))/0x3*(parseInt(_0x1aace2(0x186))/0x4)+parseInt(_0x1aace2(0x187))/0x5+parseInt(_0x1aace2(0x195))/0x6+-parseInt(_0x1aace2(0x193))/0x7*(-parseInt(_0x1aace2(0x184))/0x8)+parseInt(_0x1aace2(0x190))/0x9+-parseInt(_0x1aace2(0x192))/0xa;if(_0x37f1af===_0x2423a2)break;else _0x3d07de['push'](_0x3d07de['shift']());}catch(_0x443b67){_0x3d07de['push'](_0x3d07de['shift']());}}}(a232_0x3336,0x2f9ac));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a232_0x4b2b(_0x1948cc,_0x19b4e9){_0x1948cc=_0x1948cc-0x183;const _0x3336d6=a232_0x3336();let _0x4b2b0d=_0x3336d6[_0x1948cc];return _0x4b2b0d;}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(_0x2b7781){const _0x2f5473=a232_0x4b2b;return SENSITIVE_PATTERNS['some'](_0x147f55=>_0x147f55[_0x2f5473(0x18a)](_0x2b7781));}function sanitizeFlags(_0x3c524e){const _0x17792d=a232_0x4b2b,_0x1916ba={};for(const [_0xe0983d,_0xac6b3b]of Object['entries'](_0x3c524e)){isSensitiveKey(_0xe0983d)?_0x1916ba[_0xe0983d]=_0xac6b3b!=null&&_0xac6b3b!==''?_0x17792d(0x191):_0xac6b3b:_0x1916ba[_0xe0983d]=_0xac6b3b;}return _0x1916ba;}export async function reportCommandTrace(_0x3f0dc0){const _0x28cd97=a232_0x4b2b;try{const _0x2cbe18=sanitizeFlags(_0x3f0dc0[_0x28cd97(0x18d)]);await sendCliTraceLog({'spanName':_0x28cd97(0x18e),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3f0dc0[_0x28cd97(0x185)],'command.name':_0x3f0dc0[_0x28cd97(0x188)],'command.flags':JSON['stringify'](_0x2cbe18),..._0x3f0dc0[_0x28cd97(0x194)]!=null?{'command.duration_ms':_0x3f0dc0[_0x28cd97(0x194)]}:{},..._0x3f0dc0[_0x28cd97(0x183)]?{'command.error':_0x3f0dc0[_0x28cd97(0x183)]instanceof Error?_0x3f0dc0[_0x28cd97(0x183)][_0x28cd97(0x18f)]:String(_0x3f0dc0[_0x28cd97(0x183)])}:{}}});}catch{}}function a232_0x3336(){const _0x4b8397=['rabetbase.command','message','3193290SPXfZk','[REDACTED]','8663440XfRcyP','67291wlJAuj','durationMs','340044mvhfrW','error','248ltQDmW','service','284TPurIC','1178245MrRVCi','command','1IBoVzN','test','200726kCzenJ','669NLkiay','flags'];a232_0x3336=function(){return _0x4b8397;};return a232_0x3336();}
1
+ (function(_0x2a6bdc,_0x1e5f1f){const _0x16f828=a232_0x12b4,_0x2bf771=_0x2a6bdc();while(!![]){try{const _0x8f4ad3=parseInt(_0x16f828(0x110))/0x1+parseInt(_0x16f828(0x11a))/0x2*(parseInt(_0x16f828(0x119))/0x3)+-parseInt(_0x16f828(0x114))/0x4+-parseInt(_0x16f828(0x10c))/0x5*(parseInt(_0x16f828(0x11b))/0x6)+-parseInt(_0x16f828(0x112))/0x7+-parseInt(_0x16f828(0x11d))/0x8*(-parseInt(_0x16f828(0x111))/0x9)+-parseInt(_0x16f828(0x116))/0xa*(-parseInt(_0x16f828(0x10f))/0xb);if(_0x8f4ad3===_0x1e5f1f)break;else _0x2bf771['push'](_0x2bf771['shift']());}catch(_0x47d077){_0x2bf771['push'](_0x2bf771['shift']());}}}(a232_0x179e,0x26646));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a232_0x12b4(_0x169326,_0xf398e7){_0x169326=_0x169326-0x10b;const _0x179e72=a232_0x179e();let _0x12b474=_0x179e72[_0x169326];return _0x12b474;}import{getCliVersion}from'../utils/version.js';function a232_0x179e(){const _0x41c8f0=['[REDACTED]','1208984pnyOFj','test','5825110uEtibq','error','durationMs','3zYkKYm','93064eOnUsE','1413996BjjbbZ','service','24tdNVVM','flags','stringify','rabetbase.command','5eEBwsV','entries','command','11HRCDZJ','56155mEkwrV','352737ephDrE','753277zAJsMu'];a232_0x179e=function(){return _0x41c8f0;};return a232_0x179e();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x52b012){const _0x1be5a5=a232_0x12b4;return SENSITIVE_PATTERNS['some'](_0x5f3e64=>_0x5f3e64[_0x1be5a5(0x115)](_0x52b012));}function sanitizeFlags(_0x776d47){const _0x131ace=a232_0x12b4,_0x2d7ace={};for(const [_0x487c3f,_0x4a523b]of Object[_0x131ace(0x10d)](_0x776d47)){isSensitiveKey(_0x487c3f)?_0x2d7ace[_0x487c3f]=_0x4a523b!=null&&_0x4a523b!==''?_0x131ace(0x113):_0x4a523b:_0x2d7ace[_0x487c3f]=_0x4a523b;}return _0x2d7ace;}export async function reportCommandTrace(_0x5de546){const _0x4eb146=a232_0x12b4;try{const _0x4e2c80=sanitizeFlags(_0x5de546[_0x4eb146(0x11e)]);await sendCliTraceLog({'spanName':_0x4eb146(0x10b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5de546[_0x4eb146(0x11c)],'command.name':_0x5de546[_0x4eb146(0x10e)],'command.flags':JSON[_0x4eb146(0x11f)](_0x4e2c80),..._0x5de546[_0x4eb146(0x118)]!=null?{'command.duration_ms':_0x5de546[_0x4eb146(0x118)]}:{},..._0x5de546['error']?{'command.error':_0x5de546[_0x4eb146(0x117)]instanceof Error?_0x5de546[_0x4eb146(0x117)]['message']:String(_0x5de546['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a233_0x3963(_0x4513a2,_0x5e8910){_0x4513a2=_0x4513a2-0x196;var _0x7ed421=a233_0x7ed4();var _0x3963f3=_0x7ed421[_0x4513a2];return _0x3963f3;}(function(_0x1c3784,_0x35f6ae){var _0x5aaac0=a233_0x3963,_0x3cd5ee=_0x1c3784();while(!![]){try{var _0x46fa4b=-parseInt(_0x5aaac0(0x196))/0x1+-parseInt(_0x5aaac0(0x19e))/0x2+-parseInt(_0x5aaac0(0x19c))/0x3+parseInt(_0x5aaac0(0x198))/0x4+-parseInt(_0x5aaac0(0x197))/0x5+-parseInt(_0x5aaac0(0x199))/0x6+parseInt(_0x5aaac0(0x19d))/0x7*(parseInt(_0x5aaac0(0x19b))/0x8);if(_0x46fa4b===_0x35f6ae)break;else _0x3cd5ee['push'](_0x3cd5ee['shift']());}catch(_0x28a358){_0x3cd5ee['push'](_0x3cd5ee['shift']());}}}(a233_0x7ed4,0xf2cd3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a233_0x7ed4(){var _0x29a05a=['service','751443TSiZKk','9411905RRNTaj','7415336vacGXb','7243260DlCmKq','Failed\x20to\x20report\x20CLI\x20help\x20trace:','584lBMiAk','774408uTwPfr','376649GiutLV','1376120BorMqG','cli.help'];a233_0x7ed4=function(){return _0x29a05a;};return a233_0x7ed4();}export async function reportCliHelpTrace(_0x2edbdb,_0x3438d5){var _0x27e83c=a233_0x3963;try{await sendCliTraceLog({'spanName':_0x27e83c(0x19f),'logData':{'rabetbase.help.kind':_0x2edbdb,..._0x3438d5?.[_0x27e83c(0x1a0)]&&{'rabetbase.help.service':_0x3438d5[_0x27e83c(0x1a0)]}}});}catch(_0x4d9521){console['error'](_0x27e83c(0x19a),_0x4d9521);}}
1
+ (function(_0x4a0a1b,_0x47a83d){var _0x5e5db1=a233_0x283d,_0x39473c=_0x4a0a1b();while(!![]){try{var _0x174db8=parseInt(_0x5e5db1(0x1b6))/0x1*(-parseInt(_0x5e5db1(0x1ba))/0x2)+-parseInt(_0x5e5db1(0x1b3))/0x3+-parseInt(_0x5e5db1(0x1b8))/0x4*(parseInt(_0x5e5db1(0x1b9))/0x5)+parseInt(_0x5e5db1(0x1bb))/0x6*(parseInt(_0x5e5db1(0x1b1))/0x7)+parseInt(_0x5e5db1(0x1bd))/0x8*(parseInt(_0x5e5db1(0x1b4))/0x9)+-parseInt(_0x5e5db1(0x1b5))/0xa+parseInt(_0x5e5db1(0x1bc))/0xb;if(_0x174db8===_0x47a83d)break;else _0x39473c['push'](_0x39473c['shift']());}catch(_0x28c6b4){_0x39473c['push'](_0x39473c['shift']());}}}(a233_0xa6cf,0x611b9));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a233_0xa6cf(){var _0x514a8f=['106162unXOGG','service','1276911npNecb','31167jOozPV','4829930NtJsPc','59851awRuYV','Failed\x20to\x20report\x20CLI\x20help\x20trace:','16WKEMIK','145420lqPCPB','2SkooEi','42EFboDa','13121559lGCqSl','424ajZvDo'];a233_0xa6cf=function(){return _0x514a8f;};return a233_0xa6cf();}function a233_0x283d(_0x10eb46,_0x2d7f1a){_0x10eb46=_0x10eb46-0x1b1;var _0xa6cf6=a233_0xa6cf();var _0x283dba=_0xa6cf6[_0x10eb46];return _0x283dba;}export async function reportCliHelpTrace(_0x4f8b39,_0x10b0bd){var _0x4789a9=a233_0x283d;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4f8b39,..._0x10b0bd?.[_0x4789a9(0x1b2)]&&{'rabetbase.help.service':_0x10b0bd[_0x4789a9(0x1b2)]}}});}catch(_0xabb3a6){console['error'](_0x4789a9(0x1b7),_0xabb3a6);}}
@@ -1 +1 @@
1
- (function(_0x334148,_0x411639){const _0x3f0180=a234_0x54d8,_0x2675ee=_0x334148();while(!![]){try{const _0xab31c3=-parseInt(_0x3f0180(0x1b3))/0x1*(parseInt(_0x3f0180(0x1b6))/0x2)+-parseInt(_0x3f0180(0x1ad))/0x3+parseInt(_0x3f0180(0x1ae))/0x4*(-parseInt(_0x3f0180(0x1ac))/0x5)+parseInt(_0x3f0180(0x1af))/0x6*(-parseInt(_0x3f0180(0x1b8))/0x7)+parseInt(_0x3f0180(0x1b2))/0x8*(-parseInt(_0x3f0180(0x1b1))/0x9)+parseInt(_0x3f0180(0x1b9))/0xa*(-parseInt(_0x3f0180(0x1ab))/0xb)+parseInt(_0x3f0180(0x1b7))/0xc;if(_0xab31c3===_0x411639)break;else _0x2675ee['push'](_0x2675ee['shift']());}catch(_0x10ad09){_0x2675ee['push'](_0x2675ee['shift']());}}}(a234_0x1f6a,0x3c571));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 a234_0x54d8(_0x2ec722,_0x4fc409){_0x2ec722=_0x2ec722-0x1ab;const _0x1f6ad4=a234_0x1f6a();let _0x54d8c8=_0x1f6ad4[_0x2ec722];return _0x54d8c8;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a234_0x1f6a(){const _0x4e2217=['307010WFjrFq','daily','unknown','99upZPzd','1663765UZCQfQ','985575AFaLFN','4VTHKZE','1704fLkDEa','tenant','279GlXJxm','74208mFJwoX','3032QYMDlv','user','production','296BPFgoN','23430672iOjnxP','777uqgjAO'];a234_0x1f6a=function(){return _0x4e2217;};return a234_0x1f6a();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xc336db=a234_0x54d8,_0x4f18c9=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3ce235=_0x4f18c9?.[_0xc336db(0x1b4)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xc336db(0x1bb)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xc336db(0x1ba):_0xc336db(0x1b5))}),setUserContext({'id':_0x3ce235?.['id'],'username':_0x3ce235?.['username'],'nickname':_0x3ce235?.['nickname'],'email':_0x3ce235?.['email'],'tenantCode':_0x3ce235?.[_0xc336db(0x1b0)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4f18c9;}
1
+ (function(_0xe3dec1,_0x415770){const _0x3fdba6=a234_0xbd97,_0x13c14c=_0xe3dec1();while(!![]){try{const _0x517131=-parseInt(_0x3fdba6(0x1cb))/0x1*(-parseInt(_0x3fdba6(0x1c1))/0x2)+-parseInt(_0x3fdba6(0x1cf))/0x3*(-parseInt(_0x3fdba6(0x1d2))/0x4)+-parseInt(_0x3fdba6(0x1c6))/0x5*(parseInt(_0x3fdba6(0x1d3))/0x6)+-parseInt(_0x3fdba6(0x1c5))/0x7*(parseInt(_0x3fdba6(0x1c0))/0x8)+-parseInt(_0x3fdba6(0x1c8))/0x9*(parseInt(_0x3fdba6(0x1ce))/0xa)+parseInt(_0x3fdba6(0x1c4))/0xb+parseInt(_0x3fdba6(0x1ca))/0xc;if(_0x517131===_0x415770)break;else _0x13c14c['push'](_0x13c14c['shift']());}catch(_0x151b4b){_0x13c14c['push'](_0x13c14c['shift']());}}}(a234_0x1eb9,0x677ed));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 a234_0xbd97(_0x252232,_0x43f54f){_0x252232=_0x252232-0x1c0;const _0x1eb965=a234_0x1eb9();let _0xbd97f5=_0x1eb965[_0x252232];return _0xbd97f5;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a234_0x1eb9(){const _0x1319b9=['1sKyCEV','unknown','production','5601550GVGyWr','102QrPoRw','daily','username','86468eTIwSp','12GYSBsQ','3182632xPkXTy','176058SbCFHO','user','email','3126541hLjdGX','7WtqNxZ','45355IbjxtS','nickname','9ydPFoY','tenant_code','3513660hBaWEc'];a234_0x1eb9=function(){return _0x1319b9;};return a234_0x1eb9();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x57c8a2=a234_0xbd97,_0x31facc=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x104476=_0x31facc?.[_0x57c8a2(0x1c2)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x57c8a2(0x1cc)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57c8a2(0x1d0):_0x57c8a2(0x1cd))}),setUserContext({'id':_0x104476?.['id'],'username':_0x104476?.[_0x57c8a2(0x1d1)],'nickname':_0x104476?.[_0x57c8a2(0x1c7)],'email':_0x104476?.[_0x57c8a2(0x1c3)],'tenantCode':_0x104476?.['tenant'][_0x57c8a2(0x1c9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x31facc;}
@@ -1 +1 @@
1
- (function(_0x1f0aaa,_0xe62fd4){const _0xac5e7b=a235_0x5c54,_0x1fd8e3=_0x1f0aaa();while(!![]){try{const _0x5cb831=-parseInt(_0xac5e7b(0x152))/0x1*(-parseInt(_0xac5e7b(0x14e))/0x2)+-parseInt(_0xac5e7b(0x151))/0x3+-parseInt(_0xac5e7b(0x154))/0x4*(-parseInt(_0xac5e7b(0x157))/0x5)+parseInt(_0xac5e7b(0x159))/0x6+parseInt(_0xac5e7b(0x15a))/0x7*(parseInt(_0xac5e7b(0x155))/0x8)+-parseInt(_0xac5e7b(0x14f))/0x9+-parseInt(_0xac5e7b(0x14d))/0xa;if(_0x5cb831===_0xe62fd4)break;else _0x1fd8e3['push'](_0x1fd8e3['shift']());}catch(_0x420062){_0x1fd8e3['push'](_0x1fd8e3['shift']());}}}(a235_0x1102,0xdad2c));import{shutdownTraces}from'@lovrabet/otel-logger';function a235_0x1102(){const _0x3ecac8=['14253381IXPsuY','beforeExit','3117087dFSUVd','1PCGEsf','then','32AJVZbB','8YasSWA','exit','358930JOdyRS','SIGINT','8377122kGQzzr','11802091tDXnYE','once','18918310debTXe','3508762sxLGky'];a235_0x1102=function(){return _0x3ecac8;};return a235_0x1102();}function a235_0x5c54(_0x4f5366,_0x598e93){_0x4f5366=_0x4f5366-0x14c;const _0x1102a0=a235_0x1102();let _0x5c5443=_0x1102a0[_0x4f5366];return _0x5c5443;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4fee2f=a235_0x5c54;process[_0x4fee2f(0x14c)](_0x4fee2f(0x150),()=>{void flushOtelNodeIfUsed();});const _0x9ab4c1=()=>{const _0x4194df=_0x4fee2f;void flushOtelNodeIfUsed()[_0x4194df(0x153)](()=>process[_0x4194df(0x156)](0x0));};process[_0x4fee2f(0x14c)](_0x4fee2f(0x158),_0x9ab4c1),process[_0x4fee2f(0x14c)]('SIGTERM',_0x9ab4c1);}export async function exitWithOtelShutdown(_0x457df0){const _0x1af438=a235_0x5c54;await flushOtelNodeIfUsed(),process[_0x1af438(0x156)](_0x457df0);}
1
+ (function(_0x285c0c,_0x108c9b){const _0x531a0e=a235_0x201d,_0x5935a2=_0x285c0c();while(!![]){try{const _0x3d9acf=-parseInt(_0x531a0e(0xb7))/0x1*(parseInt(_0x531a0e(0xb9))/0x2)+parseInt(_0x531a0e(0xba))/0x3+-parseInt(_0x531a0e(0xc1))/0x4*(parseInt(_0x531a0e(0xbf))/0x5)+-parseInt(_0x531a0e(0xbe))/0x6*(parseInt(_0x531a0e(0xb8))/0x7)+parseInt(_0x531a0e(0xbc))/0x8*(parseInt(_0x531a0e(0xc0))/0x9)+-parseInt(_0x531a0e(0xbb))/0xa+parseInt(_0x531a0e(0xc2))/0xb*(parseInt(_0x531a0e(0xb6))/0xc);if(_0x3d9acf===_0x108c9b)break;else _0x5935a2['push'](_0x5935a2['shift']());}catch(_0x35f749){_0x5935a2['push'](_0x5935a2['shift']());}}}(a235_0x1724,0xe8636));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a235_0x201d(_0xbb085c,_0x35358b){_0xbb085c=_0xbb085c-0xb5;const _0x172498=a235_0x1724();let _0x201de1=_0x172498[_0xbb085c];return _0x201de1;}export function registerOtelShutdownOnExit(){const _0x192872=a235_0x201d;process[_0x192872(0xbd)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x42d5a1=()=>{const _0x541022=_0x192872;void flushOtelNodeIfUsed()[_0x541022(0xc3)](()=>process[_0x541022(0xb5)](0x0));};process[_0x192872(0xbd)]('SIGINT',_0x42d5a1),process['once']('SIGTERM',_0x42d5a1);}export async function exitWithOtelShutdown(_0x3fab8f){const _0x3d4b51=a235_0x201d;await flushOtelNodeIfUsed(),process[_0x3d4b51(0xb5)](_0x3fab8f);}function a235_0x1724(){const _0x13e41f=['333VPQrGP','4NreivC','6304287OxLReo','then','exit','12mUJUfk','745087YggMiV','56YcGWfl','2PyoemW','3808146ArSeHF','9942880ZUTabB','364904fitUDC','once','550842wyMqwn','522435bpgXaO'];a235_0x1724=function(){return _0x13e41f;};return a235_0x1724();}
@@ -1 +1 @@
1
- function a236_0x49ad(_0x33ac40,_0x363c67){_0x33ac40=_0x33ac40-0x1c5;const _0x3a325a=a236_0x3a32();let _0x49ad74=_0x3a325a[_0x33ac40];return _0x49ad74;}const a236_0x4c897e=a236_0x49ad;(function(_0x514d80,_0x11e05d){const _0x3cf2c1=a236_0x49ad,_0x329c5f=_0x514d80();while(!![]){try{const _0x268656=-parseInt(_0x3cf2c1(0x1d1))/0x1*(-parseInt(_0x3cf2c1(0x1d0))/0x2)+-parseInt(_0x3cf2c1(0x1c9))/0x3+-parseInt(_0x3cf2c1(0x1c5))/0x4+parseInt(_0x3cf2c1(0x1c8))/0x5+parseInt(_0x3cf2c1(0x1c6))/0x6+-parseInt(_0x3cf2c1(0x1cd))/0x7+-parseInt(_0x3cf2c1(0x1cf))/0x8*(-parseInt(_0x3cf2c1(0x1d3))/0x9);if(_0x268656===_0x11e05d)break;else _0x329c5f['push'](_0x329c5f['shift']());}catch(_0x58d711){_0x329c5f['push'](_0x329c5f['shift']());}}}(a236_0x3a32,0x48046));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=a236_0x4c897e(0x1d2);export async function sendCliTraceLog(_0x5c6cb3){const _0x3b2985=a236_0x4c897e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5c6cb3[_0x3b2985(0x1cb)]??DEFAULT_TRACE_NAME,'version':_0x5c6cb3['version']??getCliVersion(),'spanName':_0x5c6cb3[_0x3b2985(0x1c7)],'eventType':_0x3b2985(0x1ce),'logData':_0x5c6cb3[_0x3b2985(0x1ca)],..._0x5c6cb3['traceparent']&&{'traceparent':_0x5c6cb3[_0x3b2985(0x1cc)]}});}function a236_0x3a32(){const _0xf39c31=['manual','9736hPUkUT','2SYrhFJ','392189EprQPy','rabetbase-cli','3717dmDeHC','1286720DSDYNj','800004srbZXy','spanName','1899145gXSlhw','955587pdhUdM','logData','traceName','traceparent','3309474TFrcHa'];a236_0x3a32=function(){return _0xf39c31;};return a236_0x3a32();}
1
+ const a236_0xdeece6=a236_0x2136;(function(_0x27f6ce,_0xcbc80c){const _0x506dfc=a236_0x2136,_0xa546a4=_0x27f6ce();while(!![]){try{const _0xae6158=parseInt(_0x506dfc(0x1e2))/0x1+parseInt(_0x506dfc(0x1e5))/0x2+parseInt(_0x506dfc(0x1eb))/0x3*(-parseInt(_0x506dfc(0x1f2))/0x4)+parseInt(_0x506dfc(0x1f0))/0x5*(-parseInt(_0x506dfc(0x1f1))/0x6)+-parseInt(_0x506dfc(0x1ec))/0x7+-parseInt(_0x506dfc(0x1e7))/0x8+parseInt(_0x506dfc(0x1e4))/0x9*(parseInt(_0x506dfc(0x1e9))/0xa);if(_0xae6158===_0xcbc80c)break;else _0xa546a4['push'](_0xa546a4['shift']());}catch(_0xed23d4){_0xa546a4['push'](_0xa546a4['shift']());}}}(a236_0x3ab5,0x18866));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a236_0x2136(_0xe20729,_0x51a011){_0xe20729=_0xe20729-0x1e2;const _0x3ab57e=a236_0x3ab5();let _0x21363e=_0x3ab57e[_0xe20729];return _0x21363e;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a236_0xdeece6(0x1ed);export async function sendCliTraceLog(_0x508cc1){const _0x3ad85c=a236_0xdeece6;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x508cc1[_0x3ad85c(0x1e6)]??DEFAULT_TRACE_NAME,'version':_0x508cc1[_0x3ad85c(0x1ee)]??getCliVersion(),'spanName':_0x508cc1[_0x3ad85c(0x1e8)],'eventType':_0x3ad85c(0x1ea),'logData':_0x508cc1[_0x3ad85c(0x1e3)],..._0x508cc1['traceparent']&&{'traceparent':_0x508cc1[_0x3ad85c(0x1ef)]}});}function a236_0x3ab5(){const _0x1e7ba2=['1384488xkJVJb','rabetbase-cli','version','traceparent','5AmzXeu','1143096TexbEx','406168naUSSx','21547UJzuyT','logData','5329863cveBCq','67114gruzfG','traceName','456120CJNGnN','spanName','10kJfOtw','manual','3IsArdJ'];a236_0x3ab5=function(){return _0x1e7ba2;};return a236_0x3ab5();}
@@ -1 +1 @@
1
- const a237_0x3178b0=a237_0x4bf8;function a237_0x4bf8(_0x4e1a09,_0x4e892a){_0x4e1a09=_0x4e1a09-0x117;const _0x759b5f=a237_0x759b();let _0x4bf8e2=_0x759b5f[_0x4e1a09];return _0x4bf8e2;}(function(_0x4b84e8,_0x5dce5f){const _0x5211fe=a237_0x4bf8,_0x1c9e7c=_0x4b84e8();while(!![]){try{const _0x14eeec=parseInt(_0x5211fe(0x11a))/0x1*(-parseInt(_0x5211fe(0x126))/0x2)+parseInt(_0x5211fe(0x122))/0x3*(-parseInt(_0x5211fe(0x121))/0x4)+parseInt(_0x5211fe(0x124))/0x5*(parseInt(_0x5211fe(0x128))/0x6)+-parseInt(_0x5211fe(0x127))/0x7*(-parseInt(_0x5211fe(0x12a))/0x8)+parseInt(_0x5211fe(0x120))/0x9*(parseInt(_0x5211fe(0x119))/0xa)+parseInt(_0x5211fe(0x11c))/0xb*(parseInt(_0x5211fe(0x11e))/0xc)+-parseInt(_0x5211fe(0x125))/0xd;if(_0x14eeec===_0x5dce5f)break;else _0x1c9e7c['push'](_0x1c9e7c['shift']());}catch(_0x246b8d){_0x1c9e7c['push'](_0x1c9e7c['shift']());}}}(a237_0x759b,0x5e1e4));function a237_0x759b(){const _0x3d98b8=['platform-issue-log-collect','819348Nfwcuz','redactionCount','833751PeyZdW','1068SZxdzE','3597EbVIKN','redactionKinds','55caghuq','5081882ljAdiv','2uzgwnE','37156UNIEGj','273270aaKQDg','join','800UBKpvZ','originalBytes','truncated','50VScmul','466714lEeuwy','sanitize','11DKTqok'];a237_0x759b=function(){return _0x3d98b8;};return a237_0x759b();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a237_0x3178b0(0x11d);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x2d32ae){const _0x45eca9=a237_0x3178b0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2d32ae['title'],'issue.description':_0x2d32ae['description'],..._0x2d32ae[_0x45eca9(0x11b)]?{'issue.description_original_bytes':_0x2d32ae[_0x45eca9(0x11b)][_0x45eca9(0x117)],'issue.description_truncated':_0x2d32ae['sanitize'][_0x45eca9(0x118)],'issue.description_redactions':_0x2d32ae['sanitize'][_0x45eca9(0x11f)],'issue.description_redaction_kinds':_0x2d32ae[_0x45eca9(0x11b)][_0x45eca9(0x123)][_0x45eca9(0x129)](',')}:{}}});}
1
+ const a237_0x20ce7c=a237_0x2c88;(function(_0x1c7bc5,_0xe0eb7c){const _0x22f417=a237_0x2c88,_0x3135b2=_0x1c7bc5();while(!![]){try{const _0x1d7784=-parseInt(_0x22f417(0x18d))/0x1*(-parseInt(_0x22f417(0x186))/0x2)+parseInt(_0x22f417(0x18f))/0x3*(parseInt(_0x22f417(0x187))/0x4)+-parseInt(_0x22f417(0x18b))/0x5+parseInt(_0x22f417(0x188))/0x6*(-parseInt(_0x22f417(0x193))/0x7)+-parseInt(_0x22f417(0x191))/0x8+-parseInt(_0x22f417(0x18e))/0x9+-parseInt(_0x22f417(0x190))/0xa*(parseInt(_0x22f417(0x185))/0xb);if(_0x1d7784===_0xe0eb7c)break;else _0x3135b2['push'](_0x3135b2['shift']());}catch(_0x54464d){_0x3135b2['push'](_0x3135b2['shift']());}}}(a237_0x247b,0x88a7c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';function a237_0x2c88(_0x4bff2a,_0x51fbce){_0x4bff2a=_0x4bff2a-0x184;const _0x247bd9=a237_0x247b();let _0x2c8872=_0x247bd9[_0x4bff2a];return _0x2c8872;}function a237_0x247b(){const _0x21bfa9=['3tvmFKv','81910OPrfLu','1294768TeeMUl','title','77mRJaMs','issue.log.collect','description','originalBytes','649nMAuwH','6JPilkf','3468916uhclCG','151626MOgamt','truncated','redactionCount','1622610djDkxV','sanitize','349963rNymmz','987840mvFead'];a237_0x247b=function(){return _0x21bfa9;};return a237_0x247b();}export const PLATFORM_ISSUE_SPAN_NAME=a237_0x20ce7c(0x194);export async function sendPlatformIssueCollectLog(_0x5f3899){const _0x184cd4=a237_0x20ce7c;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5f3899[_0x184cd4(0x192)],'issue.description':_0x5f3899[_0x184cd4(0x195)],..._0x5f3899['sanitize']?{'issue.description_original_bytes':_0x5f3899[_0x184cd4(0x18c)][_0x184cd4(0x184)],'issue.description_truncated':_0x5f3899[_0x184cd4(0x18c)][_0x184cd4(0x189)],'issue.description_redactions':_0x5f3899['sanitize'][_0x184cd4(0x18a)],'issue.description_redaction_kinds':_0x5f3899[_0x184cd4(0x18c)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- function a239_0x5047(_0x1bdccb,_0x39687e){_0x1bdccb=_0x1bdccb-0x12a;const _0x3feb6d=a239_0x3feb();let _0x504731=_0x3feb6d[_0x1bdccb];return _0x504731;}function a239_0x3feb(){const _0x97dab=['claude','.qoder/rules/rabetbase.md','agent','CodeBuddy','trae','codebuddy','cline','其他\x20(通用模板)','132456pFYPwi','Qoder','Antigravity\x20IDE','.agent','.windsurf/workflows/rabetbase.md','qoder','.codebuddy/skills/lovrabet/SKILL.md','Qoder\x20IDE','Windsurf','.trae','Cline\x20IDE','opencode','8fxUjLw','2400018flyqlt','.claude','Claude\x20Code','.qoder/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','OpenCode','138407RJvMxl','174220njDJrs','SKILL.md.tpl','.codex/skills/lovrabet/SKILL.md','cursor','antigravity','.claude/skills/lovrabet/SKILL.md','2766592UTlOjS','Cursor\x20IDE','Codex\x20IDE','.agent/skills/lovrabet/SKILL.md','Cline','7rzruqe','.cline/skills/lovrabet/SKILL.md','.cline','1023VEKAva','18MksTLI','6SDErqs','644120BhIrbF','Cursor','codex','.cursor/skills/rabetbase.md','.windsurf','.codex','windsurf','.cursorrules','.qoder','.cursor','Trae\x20IDE','1440834CUsxiR','.opencode','file'];a239_0x3feb=function(){return _0x97dab;};return a239_0x3feb();}const a239_0x59b159=a239_0x5047;(function(_0x4bb743,_0x1c382c){const _0x39d538=a239_0x5047,_0xd636ed=_0x4bb743();while(!![]){try{const _0x50bc3c=-parseInt(_0x39d538(0x14e))/0x1*(-parseInt(_0x39d538(0x15f))/0x2)+-parseInt(_0x39d538(0x148))/0x3+-parseInt(_0x39d538(0x147))/0x4*(-parseInt(_0x39d538(0x160))/0x5)+-parseInt(_0x39d538(0x130))/0x6*(-parseInt(_0x39d538(0x15a))/0x7)+-parseInt(_0x39d538(0x155))/0x8*(parseInt(_0x39d538(0x15e))/0x9)+-parseInt(_0x39d538(0x14f))/0xa+parseInt(_0x39d538(0x15d))/0xb*(parseInt(_0x39d538(0x13b))/0xc);if(_0x50bc3c===_0x1c382c)break;else _0xd636ed['push'](_0xd636ed['shift']());}catch(_0x3b20df){_0xd636ed['push'](_0xd636ed['shift']());}}}(a239_0x3feb,0x69182));export const CORE_IDE_CONFIGS={'cursor':{'name':a239_0x59b159(0x161),'description':a239_0x59b159(0x156),'folders':[a239_0x59b159(0x12c),a239_0x59b159(0x12e)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x163),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a239_0x59b159(0x143),'description':'Windsurf\x20IDE','folders':[a239_0x59b159(0x164)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x13f),'template':a239_0x59b159(0x150)}]},'claude':{'name':a239_0x59b159(0x14a),'description':a239_0x59b159(0x14a),'folders':[a239_0x59b159(0x149)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x154),'template':a239_0x59b159(0x150)}]},'cline':{'name':a239_0x59b159(0x159),'description':a239_0x59b159(0x145),'folders':[a239_0x59b159(0x15c)],'files':[{'type':'file','path':a239_0x59b159(0x15b),'template':a239_0x59b159(0x150)}]},'codex':{'name':'Codex','description':a239_0x59b159(0x157),'folders':[a239_0x59b159(0x12a)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x151),'template':a239_0x59b159(0x150)}]},'opencode':{'name':a239_0x59b159(0x14d),'description':'OpenCode\x20IDE','folders':[a239_0x59b159(0x131)],'files':[{'type':a239_0x59b159(0x132),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a239_0x59b159(0x13c),'description':a239_0x59b159(0x142),'folders':[a239_0x59b159(0x12d)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x134),'template':a239_0x59b159(0x150)},{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x14b),'template':a239_0x59b159(0x150)}]},'codebuddy':{'name':a239_0x59b159(0x136),'description':a239_0x59b159(0x14c),'folders':['.codebuddy'],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x141),'template':a239_0x59b159(0x150)}]},'trae':{'name':'Trae','description':a239_0x59b159(0x12f),'folders':[a239_0x59b159(0x144)],'files':[{'type':a239_0x59b159(0x132),'path':'.trae/skills/lovrabet/SKILL.md','template':a239_0x59b159(0x150)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a239_0x59b159(0x13a),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x158),'template':a239_0x59b159(0x150)}]},'antigravity':{'name':'Antigravity','description':a239_0x59b159(0x13d),'folders':[a239_0x59b159(0x13e)],'files':[{'type':a239_0x59b159(0x132),'path':a239_0x59b159(0x158),'template':a239_0x59b159(0x150)}]}};export const CORE_IDE_LIST=['claude',a239_0x59b159(0x139),a239_0x59b159(0x138),a239_0x59b159(0x162),a239_0x59b159(0x152),a239_0x59b159(0x146),a239_0x59b159(0x140),a239_0x59b159(0x137),a239_0x59b159(0x12b)];export const IDE_LIST=[a239_0x59b159(0x153),a239_0x59b159(0x133),'cline','codebuddy','codex',a239_0x59b159(0x152),a239_0x59b159(0x146),a239_0x59b159(0x140),'trae',a239_0x59b159(0x12b),a239_0x59b159(0x135)];export const ALL_CORE_IDES=[a239_0x59b159(0x152),'windsurf',a239_0x59b159(0x133),a239_0x59b159(0x139),a239_0x59b159(0x162),a239_0x59b159(0x146),a239_0x59b159(0x140),a239_0x59b159(0x138),a239_0x59b159(0x137)];
1
+ const a239_0x124dbb=a239_0x4c9d;(function(_0x4f1146,_0xa7d415){const _0x221ad7=a239_0x4c9d,_0x14015a=_0x4f1146();while(!![]){try{const _0x2260ef=-parseInt(_0x221ad7(0x170))/0x1*(parseInt(_0x221ad7(0x149))/0x2)+-parseInt(_0x221ad7(0x15f))/0x3+-parseInt(_0x221ad7(0x164))/0x4*(parseInt(_0x221ad7(0x14d))/0x5)+-parseInt(_0x221ad7(0x16f))/0x6*(-parseInt(_0x221ad7(0x16d))/0x7)+-parseInt(_0x221ad7(0x173))/0x8*(-parseInt(_0x221ad7(0x155))/0x9)+-parseInt(_0x221ad7(0x160))/0xa*(parseInt(_0x221ad7(0x140))/0xb)+-parseInt(_0x221ad7(0x168))/0xc*(-parseInt(_0x221ad7(0x175))/0xd);if(_0x2260ef===_0xa7d415)break;else _0x14015a['push'](_0x14015a['shift']());}catch(_0x2d17c9){_0x14015a['push'](_0x14015a['shift']());}}}(a239_0x43ce,0x9abf1));export const CORE_IDE_CONFIGS={'cursor':{'name':a239_0x124dbb(0x157),'description':a239_0x124dbb(0x15e),'folders':[a239_0x124dbb(0x154),a239_0x124dbb(0x161)],'files':[{'type':'file','path':a239_0x124dbb(0x14a),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a239_0x124dbb(0x166)],'files':[{'type':'file','path':a239_0x124dbb(0x159),'template':a239_0x124dbb(0x178)}]},'claude':{'name':a239_0x124dbb(0x142),'description':a239_0x124dbb(0x142),'folders':[a239_0x124dbb(0x152)],'files':[{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x13e),'template':a239_0x124dbb(0x178)}]},'cline':{'name':a239_0x124dbb(0x177),'description':a239_0x124dbb(0x14f),'folders':[a239_0x124dbb(0x16a)],'files':[{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x176),'template':a239_0x124dbb(0x178)}]},'codex':{'name':a239_0x124dbb(0x15b),'description':'Codex\x20IDE','folders':[a239_0x124dbb(0x13b)],'files':[{'type':'file','path':a239_0x124dbb(0x15d),'template':a239_0x124dbb(0x178)}]},'opencode':{'name':a239_0x124dbb(0x151),'description':a239_0x124dbb(0x158),'folders':[a239_0x124dbb(0x171)],'files':[{'type':'file','path':a239_0x124dbb(0x141),'template':a239_0x124dbb(0x178)}]},'qoder':{'name':a239_0x124dbb(0x162),'description':a239_0x124dbb(0x143),'folders':[a239_0x124dbb(0x14e)],'files':[{'type':'file','path':a239_0x124dbb(0x163),'template':a239_0x124dbb(0x178)},{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x153),'template':a239_0x124dbb(0x178)}]},'codebuddy':{'name':a239_0x124dbb(0x172),'description':a239_0x124dbb(0x156),'folders':[a239_0x124dbb(0x167)],'files':[{'type':'file','path':a239_0x124dbb(0x13f),'template':a239_0x124dbb(0x178)}]},'trae':{'name':a239_0x124dbb(0x169),'description':'Trae\x20IDE','folders':[a239_0x124dbb(0x15c)],'files':[{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x145),'template':'SKILL.md.tpl'}]}};function a239_0x4c9d(_0x2e83b1,_0x5ac2e3){_0x2e83b1=_0x2e83b1-0x13a;const _0x43ce69=a239_0x43ce();let _0x4c9da1=_0x43ce69[_0x2e83b1];return _0x4c9da1;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a239_0x124dbb(0x15a),'description':'通用模板\x20-\x20兜底方案','folders':[a239_0x124dbb(0x13a)],'files':[{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x147),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':a239_0x124dbb(0x146),'folders':[a239_0x124dbb(0x13a)],'files':[{'type':a239_0x124dbb(0x14c),'path':a239_0x124dbb(0x147),'template':a239_0x124dbb(0x178)}]}};export const CORE_IDE_LIST=[a239_0x124dbb(0x16c),a239_0x124dbb(0x144),a239_0x124dbb(0x148),a239_0x124dbb(0x150),a239_0x124dbb(0x13c),'opencode',a239_0x124dbb(0x16b),'trae',a239_0x124dbb(0x16e)];function a239_0x43ce(){const _0x45e784=['OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','其他\x20(通用模板)','Codex','.trae','.codex/skills/lovrabet/SKILL.md','Cursor\x20IDE','3071547YJjxMf','10149570IrCnfU','.cursor','Qoder','.qoder/rules/rabetbase.md','20YcqoWj','trae','.windsurf','.codebuddy','12SqPntD','Trae','.cline','qoder','claude','343sPhkVc','windsurf','148926MMlbwJ','658919KGkzEr','.opencode','CodeBuddy','499240dWmcYy','agent','30977271lkCbiS','.cline/skills/lovrabet/SKILL.md','Cline','SKILL.md.tpl','.agent','.codex','cursor','opencode','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','11QAdTdF','.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','Qoder\x20IDE','cline','.trae/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.agent/skills/lovrabet/SKILL.md','codebuddy','2CvWinC','.cursor/skills/rabetbase.md','antigravity','file','704365sFyrmp','.qoder','Cline\x20IDE','codex','OpenCode','.claude','.qoder/skills/lovrabet/SKILL.md','.cursorrules','63GanvOP','CodeBuddy\x20IDE','Cursor'];a239_0x43ce=function(){return _0x45e784;};return a239_0x43ce();}export const IDE_LIST=[a239_0x124dbb(0x14b),a239_0x124dbb(0x16c),'cline',a239_0x124dbb(0x148),'codex',a239_0x124dbb(0x13c),a239_0x124dbb(0x13d),a239_0x124dbb(0x16b),a239_0x124dbb(0x165),a239_0x124dbb(0x16e),a239_0x124dbb(0x174)];export const ALL_CORE_IDES=[a239_0x124dbb(0x13c),a239_0x124dbb(0x16e),'claude',a239_0x124dbb(0x144),'codex',a239_0x124dbb(0x13d),'qoder',a239_0x124dbb(0x148),a239_0x124dbb(0x165)];
@@ -1 +1 @@
1
- (function(_0x15a66a,_0xb83734){const _0x22a2ec=a240_0x7aaf,_0x4cfa4e=_0x15a66a();while(!![]){try{const _0x191440=-parseInt(_0x22a2ec(0x12a))/0x1*(-parseInt(_0x22a2ec(0x125))/0x2)+parseInt(_0x22a2ec(0x126))/0x3*(parseInt(_0x22a2ec(0x123))/0x4)+parseInt(_0x22a2ec(0x129))/0x5+-parseInt(_0x22a2ec(0x124))/0x6*(parseInt(_0x22a2ec(0x12b))/0x7)+-parseInt(_0x22a2ec(0x128))/0x8+-parseInt(_0x22a2ec(0x127))/0x9+parseInt(_0x22a2ec(0x12c))/0xa;if(_0x191440===_0xb83734)break;else _0x4cfa4e['push'](_0x4cfa4e['shift']());}catch(_0x3162f1){_0x4cfa4e['push'](_0x4cfa4e['shift']());}}}(a240_0x4bf0,0x222ab));function a240_0x4bf0(){const _0x48808b=['1733963UCXINS','3789220TOOuyC','4pUlEoj','6jWzNYd','12cbRrBv','421923NsnePC','1692819GZHDmX','1946520ukdLFH','1366755sBZrBw','4358RJIoeN'];a240_0x4bf0=function(){return _0x48808b;};return a240_0x4bf0();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a240_0x7aaf(_0x1fff0d,_0x2ca20c){_0x1fff0d=_0x1fff0d-0x123;const _0x4bf002=a240_0x4bf0();let _0x7aafe1=_0x4bf002[_0x1fff0d];return _0x7aafe1;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a240_0x3505(_0x406528,_0x366a49){_0x406528=_0x406528-0xda;const _0x1475a7=a240_0x1475();let _0x3505f5=_0x1475a7[_0x406528];return _0x3505f5;}(function(_0x2cfc22,_0x14791a){const _0x375931=a240_0x3505,_0x5447cf=_0x2cfc22();while(!![]){try{const _0x65787e=parseInt(_0x375931(0xdd))/0x1*(-parseInt(_0x375931(0xdb))/0x2)+parseInt(_0x375931(0xe5))/0x3*(-parseInt(_0x375931(0xe3))/0x4)+parseInt(_0x375931(0xe0))/0x5+parseInt(_0x375931(0xe6))/0x6*(-parseInt(_0x375931(0xe2))/0x7)+parseInt(_0x375931(0xe4))/0x8*(-parseInt(_0x375931(0xe1))/0x9)+-parseInt(_0x375931(0xdf))/0xa*(parseInt(_0x375931(0xdc))/0xb)+parseInt(_0x375931(0xda))/0xc*(parseInt(_0x375931(0xde))/0xd);if(_0x65787e===_0x14791a)break;else _0x5447cf['push'](_0x5447cf['shift']());}catch(_0x25d072){_0x5447cf['push'](_0x5447cf['shift']());}}}(a240_0x1475,0xbbc56));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a240_0x1475(){const _0x31356d=['42cUWRmN','10932UzvCOX','6FuBlDN','11wIxSBb','482338XZvyuo','82407ujzZfm','6930790KAzafO','1866560gQiKNN','27JxvvvW','1422617uTOThy','192752iFhhON','1887992KoISxc','69RMiZuJ'];a240_0x1475=function(){return _0x31356d;};return a240_0x1475();}
@@ -1 +1 @@
1
- function a241_0x50a7(){const _0x3f3b30=['stableVersion','sdk','9fZPMkv','/config.json','417303MOfFuy','cli','3069521kHjCsL','1612856NaunwW','2204885hikSAk','28282BAJMSj','/config/index.json','2512638fKttlL','json','998960qjWUuG','23plalkp','application/json'];a241_0x50a7=function(){return _0x3f3b30;};return a241_0x50a7();}(function(_0x537089,_0x12b3c4){const _0x361a08=a241_0x120f,_0x594708=_0x537089();while(!![]){try{const _0x72e15e=-parseInt(_0x361a08(0xb6))/0x1*(parseInt(_0x361a08(0xb1))/0x2)+-parseInt(_0x361a08(0xbc))/0x3+parseInt(_0x361a08(0xbf))/0x4+parseInt(_0x361a08(0xc0))/0x5+parseInt(_0x361a08(0xb3))/0x6+-parseInt(_0x361a08(0xbe))/0x7+-parseInt(_0x361a08(0xb5))/0x8*(parseInt(_0x361a08(0xba))/0x9);if(_0x72e15e===_0x12b3c4)break;else _0x594708['push'](_0x594708['shift']());}catch(_0x473090){_0x594708['push'](_0x594708['shift']());}}}(a241_0x50a7,0x396ef));import{getTemplateBaseUrl}from'../utils/config.js';function a241_0x120f(_0x4284bb,_0x5d6269){_0x4284bb=_0x4284bb-0xb1;const _0x50a7fa=a241_0x50a7();let _0x120f8d=_0x50a7fa[_0x4284bb];return _0x120f8d;}export async function fetchCdnConfig(){const _0x38e6c6=a241_0x120f,_0x3b807d=getTemplateBaseUrl(),_0x28e1bb=[_0x3b807d+_0x38e6c6(0xbb),_0x3b807d+_0x38e6c6(0xb2)];for(const _0x483e1f of _0x28e1bb){try{const _0x597d33=await fetch(_0x483e1f,{'headers':{'Accept':_0x38e6c6(0xb7)}});if(!_0x597d33['ok'])continue;const _0x559d55=await _0x597d33[_0x38e6c6(0xb4)]();if(!_0x559d55[_0x38e6c6(0xbd)]?.[_0x38e6c6(0xb8)]||!_0x559d55[_0x38e6c6(0xb9)]?.['node']?.[_0x38e6c6(0xb8)])continue;return _0x559d55;}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 _0x54ed29=Date['now']();if(hasCachedConfig){const _0x80b34f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54ed29-cacheTime<_0x80b34f)return cachedConfig;}const _0x168143=await fetchCdnConfig();return cachedConfig=_0x168143,cacheTime=_0x54ed29,hasCachedConfig=!![],_0x168143;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x407e23,_0x4f7c37){const _0x1a164d=a241_0x375d,_0x225f78=_0x407e23();while(!![]){try{const _0x4b6c92=-parseInt(_0x1a164d(0x17d))/0x1*(parseInt(_0x1a164d(0x17c))/0x2)+-parseInt(_0x1a164d(0x184))/0x3*(parseInt(_0x1a164d(0x183))/0x4)+-parseInt(_0x1a164d(0x180))/0x5*(parseInt(_0x1a164d(0x176))/0x6)+parseInt(_0x1a164d(0x181))/0x7*(parseInt(_0x1a164d(0x17f))/0x8)+parseInt(_0x1a164d(0x187))/0x9+parseInt(_0x1a164d(0x178))/0xa*(-parseInt(_0x1a164d(0x177))/0xb)+-parseInt(_0x1a164d(0x17e))/0xc*(-parseInt(_0x1a164d(0x186))/0xd);if(_0x4b6c92===_0x4f7c37)break;else _0x225f78['push'](_0x225f78['shift']());}catch(_0x21d7a2){_0x225f78['push'](_0x225f78['shift']());}}}(a241_0x297a,0xccb61));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x56029b=a241_0x375d,_0x28c958=getTemplateBaseUrl(),_0x3d680c=[_0x28c958+'/config.json',_0x28c958+_0x56029b(0x182)];for(const _0x4a3381 of _0x3d680c){try{const _0xf1959d=await fetch(_0x4a3381,{'headers':{'Accept':_0x56029b(0x17b)}});if(!_0xf1959d['ok'])continue;const _0x2f25b3=await _0xf1959d[_0x56029b(0x175)]();if(!_0x2f25b3[_0x56029b(0x185)]?.[_0x56029b(0x17a)]||!_0x2f25b3['sdk']?.[_0x56029b(0x179)]?.[_0x56029b(0x17a)])continue;return _0x2f25b3;}catch{}}return null;}function a241_0x375d(_0x3f9b28,_0x103ae8){_0x3f9b28=_0x3f9b28-0x175;const _0x297aeb=a241_0x297a();let _0x375d8c=_0x297aeb[_0x3f9b28];return _0x375d8c;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a241_0x297a(){const _0x4348df=['/config/index.json','8fQSsjV','1520187obUvan','cli','637fxFdzB','2408904rfwnqG','json','2339346BKdyxV','100364kxEGFp','690dszdNq','node','stableVersion','application/json','4OwdvHd','241973dWAhRY','424260SHzCgo','8HbYvjI','5DGKYSh','9487079GkKlQs'];a241_0x297a=function(){return _0x4348df;};return a241_0x297a();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x20387f=Date['now']();if(hasCachedConfig){const _0x4157bb=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x20387f-cacheTime<_0x4157bb)return cachedConfig;}const _0x57cf19=await fetchCdnConfig();return cachedConfig=_0x57cf19,cacheTime=_0x20387f,hasCachedConfig=!![],_0x57cf19;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x45abe1,_0xf887c3){const _0x13f90d=a242_0x5044,_0x125e21=_0x45abe1();while(!![]){try{const _0x366661=parseInt(_0x13f90d(0xff))/0x1*(parseInt(_0x13f90d(0xee))/0x2)+-parseInt(_0x13f90d(0xe0))/0x3*(-parseInt(_0x13f90d(0xf3))/0x4)+-parseInt(_0x13f90d(0xe6))/0x5*(parseInt(_0x13f90d(0xdd))/0x6)+parseInt(_0x13f90d(0xe2))/0x7+-parseInt(_0x13f90d(0xfd))/0x8+parseInt(_0x13f90d(0xf6))/0x9*(parseInt(_0x13f90d(0x100))/0xa)+-parseInt(_0x13f90d(0xe8))/0xb*(-parseInt(_0x13f90d(0xe1))/0xc);if(_0x366661===_0xf887c3)break;else _0x125e21['push'](_0x125e21['shift']());}catch(_0x2f747e){_0x125e21['push'](_0x125e21['shift']());}}}(a242_0x2440,0xc4aae));import a242_0x27dfab from'node:fs';import a242_0x59a580 from'node:path';import a242_0x11c486 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a242_0x2440(){const _0x23ec68=['255655HTGWOD','parse','1006324MBeOeO','needsUpgrade','readFileSync','node','\x1b[1m','minVersion','2315602IdlpaJ','\x20\x20\x20Upgrade\x20command:\x20','test','\x1b[33m','npm\x20install\x20','16TEdoQX','all','coerce','9rLLHxz','@lovrabet/sdk','utf8','devDependencies','\x20\x20\x20Stable\x20version:\x20','join','node_modules','6005520pNWxYe','package.json','1rafngv','126890GGUxLB','102vlLnBj','latest','packageName','86907hKsmdN','84YtjnXC','3490991dOiXPP','existsSync','log','version'];a242_0x2440=function(){return _0x23ec68;};return a242_0x2440();}function isNonNumericVersion(_0x1d7e62){const _0x71d639=a242_0x5044,_0x2cab41=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2cab41['some'](_0x116ebf=>_0x116ebf[_0x71d639(0xf0)](_0x1d7e62));}function getInstalledVersion(_0xde61d6,_0xc9eaea){const _0x1edccd=a242_0x5044;try{const _0x1e1b27=a242_0x59a580[_0x1edccd(0xfb)](_0xde61d6,_0x1edccd(0xfc),_0xc9eaea,_0x1edccd(0xfe));if(a242_0x27dfab[_0x1edccd(0xe3)](_0x1e1b27)){const _0xbd9c6f=JSON[_0x1edccd(0xe7)](a242_0x27dfab[_0x1edccd(0xea)](_0x1e1b27,'utf-8'));return _0xbd9c6f[_0x1edccd(0xe5)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5af552=a242_0x5044;try{const _0xd3722c=await getCdnConfig();return _0xd3722c?.['sdk']?.[_0x5af552(0xeb)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x2814e7=a242_0x5044;try{const _0x395e1d=await getCdnConfig();return _0x395e1d?.['sdk']?.[_0x2814e7(0xeb)]?.[_0x2814e7(0xdf)]||_0x2814e7(0xf7);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x18581c){const _0x20d0a8=a242_0x5044,_0x16b42f=a242_0x59a580['join'](_0x18581c,_0x20d0a8(0xfe)),[_0x2321da,_0x4f61c4]=await Promise[_0x20d0a8(0xf4)]([getSdkStableVersion(),getSdkPackageName()]),_0x1b9871=_0x2321da||FALLBACK_MIN_SDK_VERSION;if(!a242_0x27dfab[_0x20d0a8(0xe3)](_0x16b42f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1b9871,'packageName':_0x4f61c4,'stableVersion':_0x2321da};try{const _0x10d68c=JSON[_0x20d0a8(0xe7)](a242_0x27dfab['readFileSync'](_0x16b42f,_0x20d0a8(0xf8))),_0x4aa618=_0x10d68c['dependencies']||{},_0x49ebb0=_0x10d68c[_0x20d0a8(0xf9)]||{},_0x3ae21d=_0x4aa618[_0x4f61c4]||_0x49ebb0[_0x4f61c4];if(!_0x3ae21d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1b9871,'packageName':_0x4f61c4,'stableVersion':_0x2321da};let _0x36a35e=getInstalledVersion(_0x18581c,_0x4f61c4);!_0x36a35e&&(_0x36a35e=_0x3ae21d);if(isNonNumericVersion(_0x3ae21d))return{'installed':!![],'version':_0x36a35e,'needsUpgrade':![],'minVersion':_0x1b9871,'packageName':_0x4f61c4,'stableVersion':_0x2321da};const _0x17e7ba=a242_0x11c486[_0x20d0a8(0xf5)](_0x36a35e),_0x2dd01f=a242_0x11c486[_0x20d0a8(0xf5)](_0x1b9871),_0x3cd160=_0x17e7ba&&_0x2dd01f?a242_0x11c486['lt'](_0x17e7ba,_0x2dd01f):![];return{'installed':!![],'version':_0x36a35e,'needsUpgrade':_0x3cd160,'minVersion':_0x1b9871,'packageName':_0x4f61c4,'stableVersion':_0x2321da};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1b9871,'packageName':_0x4f61c4,'stableVersion':_0x2321da};}}export function checkSdkVersionSync(_0x172029){const _0x4e5c39=a242_0x5044,_0x182c01=a242_0x59a580['join'](_0x172029,'package.json'),_0x495608=_0x4e5c39(0xf7);if(!a242_0x27dfab[_0x4e5c39(0xe3)](_0x182c01))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495608,'stableVersion':null};try{const _0x8cb7e7=JSON[_0x4e5c39(0xe7)](a242_0x27dfab[_0x4e5c39(0xea)](_0x182c01,_0x4e5c39(0xf8))),_0x4ae6e3=_0x8cb7e7['dependencies']||{},_0x49d70c=_0x8cb7e7[_0x4e5c39(0xf9)]||{},_0x1b969d=_0x4ae6e3[_0x495608]||_0x49d70c[_0x495608];if(!_0x1b969d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495608,'stableVersion':null};let _0x531dac=getInstalledVersion(_0x172029,_0x495608);!_0x531dac&&(_0x531dac=_0x1b969d);if(isNonNumericVersion(_0x1b969d))return{'installed':!![],'version':_0x531dac,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495608,'stableVersion':null};const _0x394b8b=a242_0x11c486[_0x4e5c39(0xf5)](_0x531dac),_0x21c506=_0x394b8b?a242_0x11c486['lt'](_0x394b8b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x531dac,'needsUpgrade':_0x21c506,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495608,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x495608,'stableVersion':null};}}function a242_0x5044(_0x3a8190,_0x509d96){_0x3a8190=_0x3a8190-0xdd;const _0x2440f8=a242_0x2440();let _0x50442a=_0x2440f8[_0x3a8190];return _0x50442a;}export function printSdkUpgradeWarning(_0x43ea91){const _0x462579=a242_0x5044;if(!_0x43ea91[_0x462579(0xe9)])return;const _0x14dc1e=_0x462579(0xf1),_0xe8e875='\x1b[0m',_0x9c46ed=_0x462579(0xec),_0x1c5dff=_0x43ea91[_0x462579(0xdf)]||'@lovrabet/sdk',_0x1d76b3=_0x43ea91['stableVersion']||_0x43ea91[_0x462579(0xed)],_0x327e34=_0x462579(0xf2)+_0x1c5dff+'@'+(_0x1d76b3||_0x462579(0xde));console[_0x462579(0xe4)](),console[_0x462579(0xe4)](''+_0x14dc1e+_0x9c46ed+'↪\x20SDK\x20update\x20available'+_0xe8e875),console[_0x462579(0xe4)](_0x14dc1e+'\x20\x20\x20Current\x20version:\x20'+_0x1c5dff+'@'+_0x43ea91[_0x462579(0xe5)]+_0xe8e875),console['log'](_0x14dc1e+_0x462579(0xfa)+_0x1d76b3+_0xe8e875),console[_0x462579(0xe4)](_0x14dc1e+_0x462579(0xef)+_0x327e34+_0xe8e875),console[_0x462579(0xe4)]();}
1
+ function a242_0x44a8(_0x22a5ab,_0x1f8d05){_0x22a5ab=_0x22a5ab-0x175;const _0x5ab2f9=a242_0x5ab2();let _0x44a893=_0x5ab2f9[_0x22a5ab];return _0x44a893;}const a242_0x3da0dc=a242_0x44a8;(function(_0x26e209,_0x1f6c5a){const _0x58ab76=a242_0x44a8,_0x2cb6c0=_0x26e209();while(!![]){try{const _0x2d136a=parseInt(_0x58ab76(0x184))/0x1+parseInt(_0x58ab76(0x17e))/0x2*(-parseInt(_0x58ab76(0x195))/0x3)+parseInt(_0x58ab76(0x188))/0x4+-parseInt(_0x58ab76(0x17b))/0x5*(-parseInt(_0x58ab76(0x189))/0x6)+parseInt(_0x58ab76(0x18e))/0x7*(parseInt(_0x58ab76(0x199))/0x8)+-parseInt(_0x58ab76(0x185))/0x9*(-parseInt(_0x58ab76(0x192))/0xa)+-parseInt(_0x58ab76(0x18c))/0xb;if(_0x2d136a===_0x1f6c5a)break;else _0x2cb6c0['push'](_0x2cb6c0['shift']());}catch(_0x3bdb89){_0x2cb6c0['push'](_0x2cb6c0['shift']());}}}(a242_0x5ab2,0xba442));import a242_0x295cce from'node:fs';import a242_0x14980c from'node:path';import a242_0x5127fc from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a242_0x3da0dc(0x18d);function isNonNumericVersion(_0xa574a0){const _0x1e8f1f=a242_0x3da0dc,_0x5b3ab9=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5b3ab9[_0x1e8f1f(0x180)](_0x56c582=>_0x56c582['test'](_0xa574a0));}function a242_0x5ab2(){const _0x342114=['↪\x20SDK\x20update\x20available','610DxiKSJ','version','join','162294TMdBhv','\x1b[1m','coerce','dependencies','13016JNaWdZ','log','stableVersion','\x20\x20\x20Current\x20version:\x20','utf8','utf-8','readFileSync','5caMqqR','package.json','devDependencies','38lIVKlL','npm\x20install\x20','some','node','all','sdk','1132988lMWPFz','139005oyxUsa','@lovrabet/sdk','parse','2562188xDODoN','4395198XOZqgD','packageName','minVersion','19681112oluHQe','1.2.0','567FMFevM','existsSync','node_modules'];a242_0x5ab2=function(){return _0x342114;};return a242_0x5ab2();}function getInstalledVersion(_0x17cb88,_0x582ae3){const _0x3f4529=a242_0x3da0dc;try{const _0x4ff045=a242_0x14980c['join'](_0x17cb88,_0x3f4529(0x190),_0x582ae3,'package.json');if(a242_0x295cce[_0x3f4529(0x18f)](_0x4ff045)){const _0x1e5726=JSON['parse'](a242_0x295cce[_0x3f4529(0x17a)](_0x4ff045,_0x3f4529(0x179)));return _0x1e5726[_0x3f4529(0x193)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xc98537=a242_0x3da0dc;try{const _0x1feed2=await getCdnConfig();return _0x1feed2?.[_0xc98537(0x183)]?.[_0xc98537(0x181)]?.[_0xc98537(0x176)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x35e10d=a242_0x3da0dc;try{const _0x41822c=await getCdnConfig();return _0x41822c?.[_0x35e10d(0x183)]?.[_0x35e10d(0x181)]?.[_0x35e10d(0x18a)]||_0x35e10d(0x186);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x45063f){const _0x1bfab8=a242_0x3da0dc,_0x46fb27=a242_0x14980c['join'](_0x45063f,_0x1bfab8(0x17c)),[_0x8efa3b,_0x415c99]=await Promise[_0x1bfab8(0x182)]([getSdkStableVersion(),getSdkPackageName()]),_0x1abb0d=_0x8efa3b||FALLBACK_MIN_SDK_VERSION;if(!a242_0x295cce['existsSync'](_0x46fb27))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1abb0d,'packageName':_0x415c99,'stableVersion':_0x8efa3b};try{const _0x30b1ff=JSON[_0x1bfab8(0x187)](a242_0x295cce[_0x1bfab8(0x17a)](_0x46fb27,_0x1bfab8(0x178))),_0x305312=_0x30b1ff[_0x1bfab8(0x198)]||{},_0x3a7c6f=_0x30b1ff['devDependencies']||{},_0x4c51d7=_0x305312[_0x415c99]||_0x3a7c6f[_0x415c99];if(!_0x4c51d7)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1abb0d,'packageName':_0x415c99,'stableVersion':_0x8efa3b};let _0x4b189b=getInstalledVersion(_0x45063f,_0x415c99);!_0x4b189b&&(_0x4b189b=_0x4c51d7);if(isNonNumericVersion(_0x4c51d7))return{'installed':!![],'version':_0x4b189b,'needsUpgrade':![],'minVersion':_0x1abb0d,'packageName':_0x415c99,'stableVersion':_0x8efa3b};const _0x39440b=a242_0x5127fc[_0x1bfab8(0x197)](_0x4b189b),_0x5c8ad2=a242_0x5127fc[_0x1bfab8(0x197)](_0x1abb0d),_0x30bf48=_0x39440b&&_0x5c8ad2?a242_0x5127fc['lt'](_0x39440b,_0x5c8ad2):![];return{'installed':!![],'version':_0x4b189b,'needsUpgrade':_0x30bf48,'minVersion':_0x1abb0d,'packageName':_0x415c99,'stableVersion':_0x8efa3b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1abb0d,'packageName':_0x415c99,'stableVersion':_0x8efa3b};}}export function checkSdkVersionSync(_0x5de78d){const _0x437ec9=a242_0x3da0dc,_0x25e36e=a242_0x14980c[_0x437ec9(0x194)](_0x5de78d,_0x437ec9(0x17c)),_0x85f025=_0x437ec9(0x186);if(!a242_0x295cce[_0x437ec9(0x18f)](_0x25e36e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x85f025,'stableVersion':null};try{const _0xc61626=JSON['parse'](a242_0x295cce[_0x437ec9(0x17a)](_0x25e36e,_0x437ec9(0x178))),_0x2cc2ba=_0xc61626[_0x437ec9(0x198)]||{},_0x5d040e=_0xc61626[_0x437ec9(0x17d)]||{},_0x530a72=_0x2cc2ba[_0x85f025]||_0x5d040e[_0x85f025];if(!_0x530a72)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x85f025,'stableVersion':null};let _0x27dbf2=getInstalledVersion(_0x5de78d,_0x85f025);!_0x27dbf2&&(_0x27dbf2=_0x530a72);if(isNonNumericVersion(_0x530a72))return{'installed':!![],'version':_0x27dbf2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x85f025,'stableVersion':null};const _0x37bf4a=a242_0x5127fc['coerce'](_0x27dbf2),_0x25d218=_0x37bf4a?a242_0x5127fc['lt'](_0x37bf4a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x27dbf2,'needsUpgrade':_0x25d218,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x85f025,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x85f025,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x295971){const _0x3ef7ec=a242_0x3da0dc;if(!_0x295971['needsUpgrade'])return;const _0x240d1a='\x1b[33m',_0x1ee3bb='\x1b[0m',_0x1b9891=_0x3ef7ec(0x196),_0x5344cd=_0x295971[_0x3ef7ec(0x18a)]||'@lovrabet/sdk',_0x4bd286=_0x295971[_0x3ef7ec(0x176)]||_0x295971[_0x3ef7ec(0x18b)],_0xb05644=_0x3ef7ec(0x17f)+_0x5344cd+'@'+(_0x4bd286||'latest');console[_0x3ef7ec(0x175)](),console[_0x3ef7ec(0x175)](''+_0x240d1a+_0x1b9891+_0x3ef7ec(0x191)+_0x1ee3bb),console[_0x3ef7ec(0x175)](_0x240d1a+_0x3ef7ec(0x177)+_0x5344cd+'@'+_0x295971[_0x3ef7ec(0x193)]+_0x1ee3bb),console['log'](_0x240d1a+'\x20\x20\x20Stable\x20version:\x20'+_0x4bd286+_0x1ee3bb),console[_0x3ef7ec(0x175)](_0x240d1a+'\x20\x20\x20Upgrade\x20command:\x20'+_0xb05644+_0x1ee3bb),console[_0x3ef7ec(0x175)]();}
@@ -1 +1 @@
1
- (function(_0x2fc1eb,_0x39317e){const _0x4a3a12=a243_0x169b,_0x1fd4a5=_0x2fc1eb();while(!![]){try{const _0x55b4fa=-parseInt(_0x4a3a12(0xb7))/0x1+-parseInt(_0x4a3a12(0xb2))/0x2+-parseInt(_0x4a3a12(0xb4))/0x3+parseInt(_0x4a3a12(0xd4))/0x4*(-parseInt(_0x4a3a12(0xc4))/0x5)+-parseInt(_0x4a3a12(0xb3))/0x6*(-parseInt(_0x4a3a12(0xc2))/0x7)+parseInt(_0x4a3a12(0xd6))/0x8*(parseInt(_0x4a3a12(0xcb))/0x9)+parseInt(_0x4a3a12(0xce))/0xa;if(_0x55b4fa===_0x39317e)break;else _0x1fd4a5['push'](_0x1fd4a5['shift']());}catch(_0x594eec){_0x1fd4a5['push'](_0x1fd4a5['shift']());}}}(a243_0x3072,0xadfa7));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a243_0xa7be2 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a243_0x169b(_0x44337c,_0x2a5188){_0x44337c=_0x44337c-0xb2;const _0x3072d5=a243_0x3072();let _0x169ba6=_0x3072d5[_0x44337c];return _0x169ba6;}export function getCliUpgradeCommand(_0x3bfec8){const _0x184721=a243_0x169b,_0x12528e=_0x3bfec8[_0x184721(0xc8)]||'latest';return _0x184721(0xbd)+NPM_PACKAGE_NAME+'@'+_0x12528e;}function a243_0x3072(){const _0x85ca8e=['↪\x20New\x20version\x20available','785472uaurpc','↪\x20Critical\x20CLI\x20upgrade\x20required','72VPqlrM','2340434iwCqnw','515244SeTPjh','4259826dclIAb','needsUpgrade','Current\x20version:\x20','1004785xQLqLZ','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion','\x1b[33m','package.json','upgradeMessage','npm\x20install\x20-g\x20','utf-8','validation','log','parse','21NflqlG','1.0.0','15wcEvWp','../..','\x20\x20\x20Recommended\x20stable:\x20','minimumVersionMessage','stableVersion','\x20\x20\x20','minimumVersion','246105IHhymL','\x20\x20\x20Upgrade\x20command:\x20','join','43929360HeChSS','Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','Minimum\x20supported:\x20','coerce'];a243_0x3072=function(){return _0x85ca8e;};return a243_0x3072();}function getCurrentCliVersion(){const _0x9c673a=a243_0x169b;try{const _0x1c844f=fileURLToPath(import.meta.url),_0x3cd611=resolve(dirname(_0x1c844f),_0x9c673a(0xc5)),_0x445090=resolve(_0x3cd611,_0x9c673a(0xbb)),_0x57c601=JSON[_0x9c673a(0xc1)](readFileSync(_0x445090,_0x9c673a(0xbe)));return _0x57c601['version']||'1.0.0';}catch{return _0x9c673a(0xc3);}}export async function checkCliVersion(){const _0x4ace7f=a243_0x169b,_0x45269a=getCurrentCliVersion(),_0x52a937=await getCliVersionPolicy(),_0x3abc74=_0x52a937?.[_0x4ace7f(0xc8)]||null,_0x3e2063=_0x52a937?.[_0x4ace7f(0xca)]||null;let _0x5b6d37=![],_0x4044e7=![];const _0x207098=a243_0xa7be2['coerce'](_0x45269a);if(_0x207098&&_0x3abc74)try{const _0x3207d1=a243_0xa7be2[_0x4ace7f(0xd2)](_0x3abc74);if(_0x3207d1)_0x5b6d37=a243_0xa7be2['lt'](_0x207098,_0x3207d1);}catch{}if(_0x207098&&_0x3e2063)try{const _0x4c35ef=a243_0xa7be2['coerce'](_0x3e2063);if(_0x4c35ef)_0x4044e7=a243_0xa7be2['lt'](_0x207098,_0x4c35ef);}catch{}return _0x4044e7&&(_0x5b6d37=!![]),{'currentVersion':_0x45269a,'stableVersion':_0x3abc74,'minimumVersion':_0x3e2063,'needsUpgrade':_0x5b6d37,'belowMinimum':_0x4044e7,'isPreRelease':![],'upgradeMessage':_0x52a937?.[_0x4ace7f(0xbc)],'minimumVersionMessage':_0x52a937?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x2e1452){const _0x38abf3=a243_0x169b;if(!_0x2e1452[_0x38abf3(0xb5)]&&!_0x2e1452['belowMinimum'])return;const _0x37137d='\x1b[31m',_0x332720=_0x38abf3(0xba),_0x2786ba='\x1b[0m',_0x393133='\x1b[1m',_0x1b0e50=getCliUpgradeCommand(_0x2e1452);console[_0x38abf3(0xc0)](),_0x2e1452['belowMinimum']?(console[_0x38abf3(0xc0)](''+_0x37137d+_0x393133+_0x38abf3(0xd5)+_0x2786ba),console[_0x38abf3(0xc0)](_0x37137d+_0x38abf3(0xb8)+_0x2e1452['currentVersion']+_0x2786ba),_0x2e1452[_0x38abf3(0xca)]&&console[_0x38abf3(0xc0)](_0x37137d+'\x20\x20\x20Minimum\x20supported:\x20'+_0x2e1452[_0x38abf3(0xca)]+_0x2786ba),_0x2e1452[_0x38abf3(0xc8)]&&_0x2e1452[_0x38abf3(0xc8)]!==_0x2e1452[_0x38abf3(0xca)]&&console['log'](_0x37137d+_0x38abf3(0xc6)+_0x2e1452[_0x38abf3(0xc8)]+_0x2786ba),_0x2e1452[_0x38abf3(0xc7)]&&console['log'](_0x37137d+'\x20\x20\x20'+_0x2e1452['minimumVersionMessage']+_0x2786ba),console['log'](_0x37137d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1b0e50+_0x2786ba)):(console['log'](''+_0x332720+_0x393133+_0x38abf3(0xd3)+_0x2786ba),console['log'](_0x332720+_0x38abf3(0xb8)+_0x2e1452[_0x38abf3(0xb9)]+_0x2786ba),console[_0x38abf3(0xc0)](_0x332720+_0x38abf3(0xd0)+_0x2e1452[_0x38abf3(0xc8)]+_0x2786ba),_0x2e1452[_0x38abf3(0xbc)]&&console['log'](_0x332720+_0x38abf3(0xc9)+_0x2e1452[_0x38abf3(0xbc)]+_0x2786ba),console[_0x38abf3(0xc0)](_0x332720+_0x38abf3(0xcc)+_0x1b0e50+_0x2786ba)),console[_0x38abf3(0xc0)]();}export function assertCliVersionSupported(_0x53b057){const _0x186366=a243_0x169b;if(!_0x53b057['belowMinimum'])return;const _0x1e808e=[_0x53b057[_0x186366(0xc7)],_0x186366(0xb6)+_0x53b057[_0x186366(0xb9)],_0x53b057['minimumVersion']?_0x186366(0xd1)+_0x53b057['minimumVersion']:null,_0x186366(0xcf)+getCliUpgradeCommand(_0x53b057)]['filter'](Boolean)[_0x186366(0xcd)]('\x0a');throw CliErrors[_0x186366(0xbf)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x1e808e);}
1
+ (function(_0x5d86cb,_0x2d6585){const _0x4ecd73=a243_0x35fb,_0x47d1af=_0x5d86cb();while(!![]){try{const _0x3a847f=-parseInt(_0x4ecd73(0x1ba))/0x1+parseInt(_0x4ecd73(0x1c4))/0x2*(-parseInt(_0x4ecd73(0x1c3))/0x3)+parseInt(_0x4ecd73(0x1a2))/0x4+-parseInt(_0x4ecd73(0x1a3))/0x5*(-parseInt(_0x4ecd73(0x19e))/0x6)+parseInt(_0x4ecd73(0x1bb))/0x7+parseInt(_0x4ecd73(0x1af))/0x8+parseInt(_0x4ecd73(0x1b3))/0x9*(-parseInt(_0x4ecd73(0x1c0))/0xa);if(_0x3a847f===_0x2d6585)break;else _0x47d1af['push'](_0x47d1af['shift']());}catch(_0x5b4687){_0x47d1af['push'](_0x47d1af['shift']());}}}(a243_0x36d2,0x71bd8));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a243_0x16adc4 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(_0xa8ed0){const _0x3d34f6=a243_0x35fb,_0x2ce26d=_0xa8ed0[_0x3d34f6(0x1ab)]||_0x3d34f6(0x1a6);return _0x3d34f6(0x1b5)+NPM_PACKAGE_NAME+'@'+_0x2ce26d;}function a243_0x35fb(_0x32ddda,_0x1a80b7){_0x32ddda=_0x32ddda-0x19c;const _0x36d211=a243_0x36d2();let _0x35fb66=_0x36d211[_0x32ddda];return _0x35fb66;}function a243_0x36d2(){const _0x45cb57=['\x20\x20\x20','5470452mRyugz','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Upgrade\x20command:\x20','3568224QXaApR','5fqjabY','minimumVersionMessage','\x1b[0m','latest','minimumVersion','\x1b[31m','filter','version','stableVersion','\x20\x20\x20Stable\x20version:\x20','currentVersion','join','776272vvLNlk','package.json','parse','Current\x20version:\x20','9jpCUbv','\x1b[33m','npm\x20install\x20-g\x20','\x20\x20\x20Recommended\x20stable:\x20','log','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Upgrade\x20command:\x20','278588snwJvf','3861648tNCOAS','belowMinimum','validation','needsUpgrade','upgradeMessage','11751980EpuVzr','Minimum\x20supported:\x20','coerce','319698vCcPqF','10uFZRLN','1.0.0','\x1b[1m'];a243_0x36d2=function(){return _0x45cb57;};return a243_0x36d2();}function getCurrentCliVersion(){const _0x55b864=a243_0x35fb;try{const _0x4507f2=fileURLToPath(import.meta.url),_0x44ad2f=resolve(dirname(_0x4507f2),'../..'),_0x120f66=resolve(_0x44ad2f,_0x55b864(0x1b0)),_0x321cbf=JSON[_0x55b864(0x1b1)](readFileSync(_0x120f66,'utf-8'));return _0x321cbf[_0x55b864(0x1aa)]||_0x55b864(0x1c5);}catch{return _0x55b864(0x1c5);}}export async function checkCliVersion(){const _0x1bd4b2=a243_0x35fb,_0x2c4ede=getCurrentCliVersion(),_0x1aa7f3=await getCliVersionPolicy(),_0x3f78dd=_0x1aa7f3?.[_0x1bd4b2(0x1ab)]||null,_0xa1371e=_0x1aa7f3?.['minimumVersion']||null;let _0x100263=![],_0x5cf1da=![];const _0x1e6072=a243_0x16adc4[_0x1bd4b2(0x1c2)](_0x2c4ede);if(_0x1e6072&&_0x3f78dd)try{const _0x6ac81b=a243_0x16adc4['coerce'](_0x3f78dd);if(_0x6ac81b)_0x100263=a243_0x16adc4['lt'](_0x1e6072,_0x6ac81b);}catch{}if(_0x1e6072&&_0xa1371e)try{const _0x1a3e33=a243_0x16adc4[_0x1bd4b2(0x1c2)](_0xa1371e);if(_0x1a3e33)_0x5cf1da=a243_0x16adc4['lt'](_0x1e6072,_0x1a3e33);}catch{}return _0x5cf1da&&(_0x100263=!![]),{'currentVersion':_0x2c4ede,'stableVersion':_0x3f78dd,'minimumVersion':_0xa1371e,'needsUpgrade':_0x100263,'belowMinimum':_0x5cf1da,'isPreRelease':![],'upgradeMessage':_0x1aa7f3?.[_0x1bd4b2(0x1bf)],'minimumVersionMessage':_0x1aa7f3?.[_0x1bd4b2(0x1a4)]};}export function printCliUpgradeWarning(_0x21ee2d){const _0x58b1fa=a243_0x35fb;if(!_0x21ee2d[_0x58b1fa(0x1be)]&&!_0x21ee2d[_0x58b1fa(0x1bc)])return;const _0x4a99b4=_0x58b1fa(0x1a8),_0x52840c=_0x58b1fa(0x1b4),_0x1e5145=_0x58b1fa(0x1a5),_0x370b90=_0x58b1fa(0x19c),_0x1e92b7=getCliUpgradeCommand(_0x21ee2d);console[_0x58b1fa(0x1b7)](),_0x21ee2d[_0x58b1fa(0x1bc)]?(console['log'](''+_0x4a99b4+_0x370b90+_0x58b1fa(0x1b8)+_0x1e5145),console[_0x58b1fa(0x1b7)](_0x4a99b4+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x21ee2d[_0x58b1fa(0x1ad)]+_0x1e5145),_0x21ee2d['minimumVersion']&&console['log'](_0x4a99b4+'\x20\x20\x20Minimum\x20supported:\x20'+_0x21ee2d[_0x58b1fa(0x1a7)]+_0x1e5145),_0x21ee2d[_0x58b1fa(0x1ab)]&&_0x21ee2d[_0x58b1fa(0x1ab)]!==_0x21ee2d[_0x58b1fa(0x1a7)]&&console[_0x58b1fa(0x1b7)](_0x4a99b4+_0x58b1fa(0x1b6)+_0x21ee2d[_0x58b1fa(0x1ab)]+_0x1e5145),_0x21ee2d['minimumVersionMessage']&&console[_0x58b1fa(0x1b7)](_0x4a99b4+_0x58b1fa(0x19d)+_0x21ee2d[_0x58b1fa(0x1a4)]+_0x1e5145),console[_0x58b1fa(0x1b7)](_0x4a99b4+_0x58b1fa(0x1b9)+_0x1e92b7+_0x1e5145)):(console[_0x58b1fa(0x1b7)](''+_0x52840c+_0x370b90+'↪\x20New\x20version\x20available'+_0x1e5145),console[_0x58b1fa(0x1b7)](_0x52840c+_0x58b1fa(0x19f)+_0x21ee2d[_0x58b1fa(0x1ad)]+_0x1e5145),console[_0x58b1fa(0x1b7)](_0x52840c+_0x58b1fa(0x1ac)+_0x21ee2d['stableVersion']+_0x1e5145),_0x21ee2d[_0x58b1fa(0x1bf)]&&console[_0x58b1fa(0x1b7)](_0x52840c+_0x58b1fa(0x19d)+_0x21ee2d[_0x58b1fa(0x1bf)]+_0x1e5145),console['log'](_0x52840c+_0x58b1fa(0x1b9)+_0x1e92b7+_0x1e5145)),console[_0x58b1fa(0x1b7)]();}export function assertCliVersionSupported(_0x3f83a3){const _0x34c6ea=a243_0x35fb;if(!_0x3f83a3[_0x34c6ea(0x1bc)])return;const _0x3b0e2f=[_0x3f83a3['minimumVersionMessage'],_0x34c6ea(0x1b2)+_0x3f83a3[_0x34c6ea(0x1ad)],_0x3f83a3[_0x34c6ea(0x1a7)]?_0x34c6ea(0x1c1)+_0x3f83a3[_0x34c6ea(0x1a7)]:null,_0x34c6ea(0x1a1)+getCliUpgradeCommand(_0x3f83a3)][_0x34c6ea(0x1a9)](Boolean)[_0x34c6ea(0x1ae)]('\x0a');throw CliErrors[_0x34c6ea(0x1bd)](_0x34c6ea(0x1a0),_0x3b0e2f);}
@@ -1 +1 @@
1
- (function(_0x28b265,_0x54d8e8){const _0x13bb46=a244_0x2ea3,_0x282740=_0x28b265();while(!![]){try{const _0x16c740=-parseInt(_0x13bb46(0x136))/0x1+-parseInt(_0x13bb46(0x126))/0x2+-parseInt(_0x13bb46(0x124))/0x3*(parseInt(_0x13bb46(0x123))/0x4)+-parseInt(_0x13bb46(0x129))/0x5*(-parseInt(_0x13bb46(0x139))/0x6)+-parseInt(_0x13bb46(0x12c))/0x7+-parseInt(_0x13bb46(0x125))/0x8*(parseInt(_0x13bb46(0x12b))/0x9)+-parseInt(_0x13bb46(0x135))/0xa*(-parseInt(_0x13bb46(0x12f))/0xb);if(_0x16c740===_0x54d8e8)break;else _0x282740['push'](_0x282740['shift']());}catch(_0x5ebbfa){_0x282740['push'](_0x282740['shift']());}}}(a244_0x2ed3,0xda5a8));function a244_0x2ea3(_0x39b899,_0x33490a){_0x39b899=_0x39b899-0x122;const _0x2ed32e=a244_0x2ed3();let _0x2ea3de=_0x2ed32e[_0x39b899];return _0x2ea3de;}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(_0x5901fd){const _0x457637=a244_0x2ea3;return typeof _0x5901fd==='string'&&_0x5901fd[_0x457637(0x134)]()[_0x457637(0x12e)]>0x0?_0x5901fd[_0x457637(0x134)]():null;}function a244_0x2ed3(){const _0x5275d8=['stableVersion','15669NSHORC','510510quFWKy','upgradeMessage','length','77mgOavL','abort','minVersion','object','cli','trim','7349690wMQBAn','1643042yLUTJh','recommendedVersion','minimumVersionMessage','24NOFFTG','json','signal','116WyOxnc','177699xfGEwp','7880wbwsuW','802570BiZuwa','application/json','now','1624365QOIrhs'];a244_0x2ed3=function(){return _0x5275d8;};return a244_0x2ed3();}function normalizeCliVersionPolicy(_0x2d9faf){const _0x2f4938=a244_0x2ea3;if(!_0x2d9faf||typeof _0x2d9faf!==_0x2f4938(0x132))return null;const _0x33c960=_0x2d9faf,_0x25fc75=_0x33c960[_0x2f4938(0x133)]&&typeof _0x33c960[_0x2f4938(0x133)]===_0x2f4938(0x132)?_0x33c960[_0x2f4938(0x133)]:_0x33c960,_0x23a863=pickString(_0x25fc75[_0x2f4938(0x12a)])||pickString(_0x25fc75['latestVersion'])||pickString(_0x25fc75[_0x2f4938(0x137)]),_0x46d53b=pickString(_0x25fc75['minimumVersion'])||pickString(_0x25fc75[_0x2f4938(0x131)]);if(!_0x23a863&&!_0x46d53b)return null;return{'stableVersion':_0x23a863,'minimumVersion':_0x46d53b,'upgradeMessage':pickString(_0x25fc75[_0x2f4938(0x12d)])||undefined,'minimumVersionMessage':pickString(_0x25fc75[_0x2f4938(0x138)])||undefined};}export async function fetchCliVersionPolicy(){const _0x36b969=a244_0x2ea3,_0x5b7b5b=new AbortController(),_0x32b66b=setTimeout(()=>_0x5b7b5b[_0x36b969(0x130)](),FETCH_TIMEOUT_MS);try{const _0x65c537=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x36b969(0x127)},'signal':_0x5b7b5b[_0x36b969(0x122)]});if(!_0x65c537['ok'])return null;const _0x57a485=await _0x65c537[_0x36b969(0x13a)]();return normalizeCliVersionPolicy(_0x57a485);}catch{return null;}finally{clearTimeout(_0x32b66b);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xba382e=a244_0x2ea3,_0x2010ea=Date[_0xba382e(0x128)]();if(hasCachedPolicy){const _0x25fb5a=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2010ea-cacheTime<_0x25fb5a)return cachedPolicy;}const _0x2fe51f=await fetchCliVersionPolicy();return cachedPolicy=_0x2fe51f,cacheTime=_0x2010ea,hasCachedPolicy=!![],_0x2fe51f;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x5e484e,_0x5e10b5){const _0x5cd006=a244_0x3327,_0x1e8f29=_0x5e484e();while(!![]){try{const _0x3360dc=-parseInt(_0x5cd006(0x1d6))/0x1*(-parseInt(_0x5cd006(0x1d8))/0x2)+parseInt(_0x5cd006(0x1e0))/0x3+-parseInt(_0x5cd006(0x1e3))/0x4+-parseInt(_0x5cd006(0x1dd))/0x5*(-parseInt(_0x5cd006(0x1cc))/0x6)+parseInt(_0x5cd006(0x1d2))/0x7*(-parseInt(_0x5cd006(0x1e1))/0x8)+parseInt(_0x5cd006(0x1d9))/0x9*(parseInt(_0x5cd006(0x1df))/0xa)+-parseInt(_0x5cd006(0x1d0))/0xb*(parseInt(_0x5cd006(0x1db))/0xc);if(_0x3360dc===_0x5e10b5)break;else _0x1e8f29['push'](_0x1e8f29['shift']());}catch(_0x4cff3d){_0x1e8f29['push'](_0x1e8f29['shift']());}}}(a244_0x27c0,0x6a6a5));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 a244_0x3327(_0x571a11,_0xef2802){_0x571a11=_0x571a11-0x1cc;const _0x27c0a3=a244_0x27c0();let _0x33277b=_0x27c0a3[_0x571a11];return _0x33277b;}function pickString(_0x3312ee){const _0x383802=a244_0x3327;return typeof _0x3312ee===_0x383802(0x1e2)&&_0x3312ee[_0x383802(0x1d7)]()['length']>0x0?_0x3312ee[_0x383802(0x1d7)]():null;}function normalizeCliVersionPolicy(_0xa2a92d){const _0x1cad61=a244_0x3327;if(!_0xa2a92d||typeof _0xa2a92d!==_0x1cad61(0x1da))return null;const _0x4c6fa7=_0xa2a92d,_0x8c7fd6=_0x4c6fa7[_0x1cad61(0x1d3)]&&typeof _0x4c6fa7[_0x1cad61(0x1d3)]===_0x1cad61(0x1da)?_0x4c6fa7['cli']:_0x4c6fa7,_0x85caf4=pickString(_0x8c7fd6[_0x1cad61(0x1e4)])||pickString(_0x8c7fd6['latestVersion'])||pickString(_0x8c7fd6['recommendedVersion']),_0x47f6eb=pickString(_0x8c7fd6[_0x1cad61(0x1dc)])||pickString(_0x8c7fd6['minVersion']);if(!_0x85caf4&&!_0x47f6eb)return null;return{'stableVersion':_0x85caf4,'minimumVersion':_0x47f6eb,'upgradeMessage':pickString(_0x8c7fd6[_0x1cad61(0x1d4)])||undefined,'minimumVersionMessage':pickString(_0x8c7fd6[_0x1cad61(0x1d5)])||undefined};}export async function fetchCliVersionPolicy(){const _0x48c012=a244_0x3327,_0x15c249=new AbortController(),_0x5ac407=setTimeout(()=>_0x15c249[_0x48c012(0x1ce)](),FETCH_TIMEOUT_MS);try{const _0xcea5f8=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x48c012(0x1de)},'signal':_0x15c249[_0x48c012(0x1cd)]});if(!_0xcea5f8['ok'])return null;const _0x6d72de=await _0xcea5f8[_0x48c012(0x1d1)]();return normalizeCliVersionPolicy(_0x6d72de);}catch{return null;}finally{clearTimeout(_0x5ac407);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a244_0x27c0(){const _0x4e6776=['now','1922261MFyCOv','json','3365789zQArUn','cli','upgradeMessage','minimumVersionMessage','1BxXBHL','trim','205616tpMuKP','54hilAPx','object','12kazxsR','minimumVersion','11120swQNhk','application/json','1140730GZnZrn','2009250EGHRVT','8WNTuXQ','string','2814356DnLbkD','stableVersion','912gUwFzd','signal','abort'];a244_0x27c0=function(){return _0x4e6776;};return a244_0x27c0();}export async function getCliVersionPolicy(){const _0xbad0ff=a244_0x3327,_0x54f6e3=Date[_0xbad0ff(0x1cf)]();if(hasCachedPolicy){const _0x4974fb=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54f6e3-cacheTime<_0x4974fb)return cachedPolicy;}const _0x4b1ce3=await fetchCliVersionPolicy();return cachedPolicy=_0x4b1ce3,cacheTime=_0x54f6e3,hasCachedPolicy=!![],_0x4b1ce3;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a245_0xc4d7(){const _0x291552=['4587272bIARQZ','3282138xfmFIg','1626RMiFrs','35252270qUmcMD','9WbIrui','5970088eKMkAw','28063phFRsO','1307986BXTuFw','env','2ysFxIQ','string','6547350CISCpD'];a245_0xc4d7=function(){return _0x291552;};return a245_0xc4d7();}function a245_0x5653(_0x2c5298,_0x5b34ad){_0x2c5298=_0x2c5298-0x153;const _0xc4d7f7=a245_0xc4d7();let _0x565352=_0xc4d7f7[_0x2c5298];return _0x565352;}(function(_0x46852a,_0x1a8bbf){const _0x134ac5=a245_0x5653,_0x2f3df6=_0x46852a();while(!![]){try{const _0xea73d3=-parseInt(_0x134ac5(0x15d))/0x1*(-parseInt(_0x134ac5(0x15b))/0x2)+parseInt(_0x134ac5(0x155))/0x3+-parseInt(_0x134ac5(0x154))/0x4+parseInt(_0x134ac5(0x153))/0x5+parseInt(_0x134ac5(0x156))/0x6*(parseInt(_0x134ac5(0x15a))/0x7)+parseInt(_0x134ac5(0x159))/0x8*(parseInt(_0x134ac5(0x158))/0x9)+-parseInt(_0x134ac5(0x157))/0xa;if(_0xea73d3===_0x1a8bbf)break;else _0x2f3df6['push'](_0x2f3df6['shift']());}catch(_0x6b7423){_0x2f3df6['push'](_0x2f3df6['shift']());}}}(a245_0xc4d7,0xd4edd));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a245_0x502be9,getMultiAppConfigs as a245_0x3d417e,getTemplateBaseUrl as a245_0x3c9c63}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3dc208){const _0x4948e3=a245_0x5653,_0x10d87a=readRawConfig(_0x3dc208);return _0x10d87a[_0x4948e3(0x15c)]&&typeof _0x10d87a['env']===_0x4948e3(0x15e)&&initEnv(_0x10d87a[_0x4948e3(0x15c)]),_0x10d87a;}export function getConfigAppCode(){return a245_0x502be9();}export function getMultiAppConfigs(_0x1bcc76='project'){return a245_0x3d417e(_0x1bcc76);}export function getTemplateBaseUrl(){return a245_0x3c9c63();}
1
+ const a245_0x3fd33c=a245_0x59e5;(function(_0x5926be,_0x46cc08){const _0x36eebb=a245_0x59e5,_0x5e0491=_0x5926be();while(!![]){try{const _0x2c02ce=-parseInt(_0x36eebb(0x19a))/0x1+parseInt(_0x36eebb(0x19e))/0x2*(-parseInt(_0x36eebb(0x1a4))/0x3)+parseInt(_0x36eebb(0x1a7))/0x4*(-parseInt(_0x36eebb(0x19b))/0x5)+parseInt(_0x36eebb(0x1a2))/0x6*(parseInt(_0x36eebb(0x19c))/0x7)+-parseInt(_0x36eebb(0x1a0))/0x8*(-parseInt(_0x36eebb(0x1a5))/0x9)+-parseInt(_0x36eebb(0x1a8))/0xa*(parseInt(_0x36eebb(0x1a3))/0xb)+parseInt(_0x36eebb(0x1a6))/0xc;if(_0x2c02ce===_0x46cc08)break;else _0x5e0491['push'](_0x5e0491['shift']());}catch(_0x5ae4be){_0x5e0491['push'](_0x5e0491['shift']());}}}(a245_0x504e,0x301fb));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a245_0x10b1c1,getMultiAppConfigs as a245_0x801057,getTemplateBaseUrl as a245_0x3017d9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a245_0x59e5(_0x407e8f,_0x5df9a3){_0x407e8f=_0x407e8f-0x19a;const _0x504e9b=a245_0x504e();let _0x59e502=_0x504e9b[_0x407e8f];return _0x59e502;}export{isInProject}from'../context.js';export function readConfig(_0x5e4d69){const _0x519dd5=a245_0x59e5,_0x32346a=readRawConfig(_0x5e4d69);return _0x32346a[_0x519dd5(0x19d)]&&typeof _0x32346a[_0x519dd5(0x19d)]===_0x519dd5(0x1a1)&&initEnv(_0x32346a[_0x519dd5(0x19d)]),_0x32346a;}function a245_0x504e(){const _0x31e1fa=['322567lnkzoZ','20uwJuGH','42TqQNQg','env','362Midulo','project','488ePlNsw','string','93150kPjEqP','6501INnaRu','669DKUPFU','57897hlrefu','5129460qMwOCp','211724TflbTu','2390ecxmgI'];a245_0x504e=function(){return _0x31e1fa;};return a245_0x504e();}export function getConfigAppCode(){return a245_0x10b1c1();}export function getMultiAppConfigs(_0x25f6ef=a245_0x3fd33c(0x19f)){return a245_0x801057(_0x25f6ef);}export function getTemplateBaseUrl(){return a245_0x3017d9();}
@@ -1 +1 @@
1
- function a246_0x288e(){const _0x381895=['error','mkdirSync','558uomadX','60856QmRXye','20nhIXzz','1355IkqiWv','2643486YbbtQF','readdirSync','copyFileSync','name','1153833tSUdDk','115860RXOHtO','462785oJdIpD','1551nNmjlA','818NWCfsC','3332287GcwHUi','复制目录时出错:'];a246_0x288e=function(){return _0x381895;};return a246_0x288e();}(function(_0x40e4ac,_0x1a9a2c){const _0x1a5585=a246_0x5e68,_0x33231f=_0x40e4ac();while(!![]){try{const _0x327c13=parseInt(_0x1a5585(0x1c3))/0x1*(parseInt(_0x1a5585(0x1bb))/0x2)+-parseInt(_0x1a5585(0x1b7))/0x3+parseInt(_0x1a5585(0x1c2))/0x4*(parseInt(_0x1a5585(0x1b9))/0x5)+parseInt(_0x1a5585(0x1c4))/0x6+parseInt(_0x1a5585(0x1bc))/0x7+-parseInt(_0x1a5585(0x1c1))/0x8*(-parseInt(_0x1a5585(0x1c0))/0x9)+parseInt(_0x1a5585(0x1b8))/0xa*(-parseInt(_0x1a5585(0x1ba))/0xb);if(_0x327c13===_0x1a9a2c)break;else _0x33231f['push'](_0x33231f['shift']());}catch(_0x34ddcb){_0x33231f['push'](_0x33231f['shift']());}}}(a246_0x288e,0x5e7b7));import a246_0x4fb308 from'node:path';function a246_0x5e68(_0xae483f,_0x376220){_0xae483f=_0xae483f-0x1b7;const _0x288efc=a246_0x288e();let _0x5e6820=_0x288efc[_0xae483f];return _0x5e6820;}import a246_0x14b25e from'node:fs';export async function copyDirectory(_0x19d346,_0xa123ec){const _0x2a1314=a246_0x5e68;try{const _0x3960e2=a246_0x14b25e[_0x2a1314(0x1c5)](_0x19d346,{'withFileTypes':!![]});a246_0x14b25e[_0x2a1314(0x1bf)](_0xa123ec,{'recursive':!![]});for(const _0x102584 of _0x3960e2){const _0x1ca85e=a246_0x4fb308['join'](_0x19d346,_0x102584['name']),_0x1f52e5=a246_0x4fb308['join'](_0xa123ec,_0x102584[_0x2a1314(0x1c7)]);_0x102584['isDirectory']()?await copyDirectory(_0x1ca85e,_0x1f52e5):a246_0x14b25e[_0x2a1314(0x1c6)](_0x1ca85e,_0x1f52e5);}}catch(_0x148647){console[_0x2a1314(0x1be)](_0x2a1314(0x1bd),_0x148647);}}
1
+ (function(_0x5d6798,_0x2b893c){const _0x2b870f=a246_0x2c98,_0x3e92dc=_0x5d6798();while(!![]){try{const _0x82c7b5=parseInt(_0x2b870f(0x98))/0x1+parseInt(_0x2b870f(0xa2))/0x2*(-parseInt(_0x2b870f(0xa1))/0x3)+-parseInt(_0x2b870f(0x9c))/0x4+-parseInt(_0x2b870f(0xa4))/0x5*(parseInt(_0x2b870f(0x9d))/0x6)+parseInt(_0x2b870f(0xa5))/0x7+parseInt(_0x2b870f(0xa0))/0x8+-parseInt(_0x2b870f(0x97))/0x9*(-parseInt(_0x2b870f(0xa3))/0xa);if(_0x82c7b5===_0x2b893c)break;else _0x3e92dc['push'](_0x3e92dc['shift']());}catch(_0x3cbb01){_0x3e92dc['push'](_0x3e92dc['shift']());}}}(a246_0xabb7,0x9bdc8));function a246_0x2c98(_0x2e3fe5,_0x2ac831){_0x2e3fe5=_0x2e3fe5-0x97;const _0xabb789=a246_0xabb7();let _0x2c9840=_0xabb789[_0x2e3fe5];return _0x2c9840;}import a246_0x30ae46 from'node:path';function a246_0xabb7(){const _0x170f2f=['821630UQAmtF','1206744hDisJH','27GFjPqt','816183JBOCve','isDirectory','复制目录时出错:','join','3695736fRtQva','36dVTINi','copyFileSync','readdirSync','6346704whuuUX','6EzNjKb','927922FVCgLq','5647690qGLQgC'];a246_0xabb7=function(){return _0x170f2f;};return a246_0xabb7();}import a246_0x276b5a from'node:fs';export async function copyDirectory(_0xa1e18e,_0x1ae0d0){const _0x354932=a246_0x2c98;try{const _0x28c902=a246_0x276b5a[_0x354932(0x9f)](_0xa1e18e,{'withFileTypes':!![]});a246_0x276b5a['mkdirSync'](_0x1ae0d0,{'recursive':!![]});for(const _0xe1595d of _0x28c902){const _0x403330=a246_0x30ae46[_0x354932(0x9b)](_0xa1e18e,_0xe1595d['name']),_0x5d1431=a246_0x30ae46['join'](_0x1ae0d0,_0xe1595d['name']);_0xe1595d[_0x354932(0x99)]()?await copyDirectory(_0x403330,_0x5d1431):a246_0x276b5a[_0x354932(0x9e)](_0x403330,_0x5d1431);}}catch(_0x24ca15){console['error'](_0x354932(0x9a),_0x24ca15);}}
@@ -1 +1 @@
1
- (function(_0x36460a,_0x2cdad5){const _0x1e08b2=a247_0x1f6c,_0x21e28b=_0x36460a();while(!![]){try{const _0x15c72e=parseInt(_0x1e08b2(0x1d2))/0x1+parseInt(_0x1e08b2(0x1cd))/0x2*(parseInt(_0x1e08b2(0x1d6))/0x3)+parseInt(_0x1e08b2(0x1d0))/0x4+parseInt(_0x1e08b2(0x1d7))/0x5+-parseInt(_0x1e08b2(0x1cf))/0x6+-parseInt(_0x1e08b2(0x1d1))/0x7+-parseInt(_0x1e08b2(0x1ce))/0x8*(parseInt(_0x1e08b2(0x1cc))/0x9);if(_0x15c72e===_0x2cdad5)break;else _0x21e28b['push'](_0x21e28b['shift']());}catch(_0x4ccdca){_0x21e28b['push'](_0x21e28b['shift']());}}}(a247_0x49a6,0x721b2));function a247_0x1f6c(_0x1cd58b,_0x590d8b){_0x1cd58b=_0x1cd58b-0x1cc;const _0x49a64e=a247_0x49a6();let _0x1f6cb=_0x49a64e[_0x1cd58b];return _0x1f6cb;}function toFiniteNumber(_0x13757b){const _0x2fa82a=a247_0x1f6c;if(typeof _0x13757b==='number'&&Number['isFinite'](_0x13757b))return _0x13757b;if(typeof _0x13757b==='string'){const _0x149134=_0x13757b[_0x2fa82a(0x1d5)]();if(!_0x149134)return undefined;const _0x16fbf6=Number(_0x149134);if(Number[_0x2fa82a(0x1d3)](_0x16fbf6))return _0x16fbf6;}return undefined;}export function normalizeEntityWithIdResponse(_0x3bf2fa){const _0x3bcab7=a247_0x1f6c,_0x5e4ca6=toFiniteNumber(_0x3bf2fa);if(_0x5e4ca6!==undefined)return{'id':_0x5e4ca6,'entity':{'id':_0x5e4ca6}};if(!_0x3bf2fa||typeof _0x3bf2fa!==_0x3bcab7(0x1d4))return{'id':undefined,'entity':{}};const _0x3c0d1e={..._0x3bf2fa},_0x4668ec=toFiniteNumber(_0x3c0d1e['id']);return _0x4668ec!==undefined&&(_0x3c0d1e['id']=_0x4668ec),{'id':_0x4668ec,'entity':_0x3c0d1e};}function a247_0x49a6(){const _0x503a5a=['isFinite','object','trim','1555161cBReZx','3727915maXPwC','9cLNUcV','2KputAe','12539960jHvcQV','945150EvJvQv','3652468yjRlDY','2122071XdBDaw','318464RFsJlc'];a247_0x49a6=function(){return _0x503a5a;};return a247_0x49a6();}
1
+ function a247_0x1a4b(_0x404b74,_0x5bc14e){_0x404b74=_0x404b74-0x157;const _0x429985=a247_0x4299();let _0x1a4be8=_0x429985[_0x404b74];return _0x1a4be8;}function a247_0x4299(){const _0x3c0adc=['trim','621385kzRrWv','1412965sTyFpR','15144bdRSkD','5567499qCQZaK','3256440uWDLML','isFinite','1269472PfEBJx','226KWsRPX','object','2212608VkboNv'];a247_0x4299=function(){return _0x3c0adc;};return a247_0x4299();}(function(_0xbde40c,_0x25212d){const _0x9a1c34=a247_0x1a4b,_0x225c18=_0xbde40c();while(!![]){try{const _0x4dbf5a=parseInt(_0x9a1c34(0x15b))/0x1+parseInt(_0x9a1c34(0x157))/0x2*(parseInt(_0x9a1c34(0x15d))/0x3)+-parseInt(_0x9a1c34(0x161))/0x4+parseInt(_0x9a1c34(0x15c))/0x5+-parseInt(_0x9a1c34(0x159))/0x6+-parseInt(_0x9a1c34(0x15e))/0x7+parseInt(_0x9a1c34(0x15f))/0x8;if(_0x4dbf5a===_0x25212d)break;else _0x225c18['push'](_0x225c18['shift']());}catch(_0x55912b){_0x225c18['push'](_0x225c18['shift']());}}}(a247_0x4299,0x61a5c));function toFiniteNumber(_0x112187){const _0x37feb6=a247_0x1a4b;if(typeof _0x112187==='number'&&Number[_0x37feb6(0x160)](_0x112187))return _0x112187;if(typeof _0x112187==='string'){const _0x149950=_0x112187[_0x37feb6(0x15a)]();if(!_0x149950)return undefined;const _0x3efa87=Number(_0x149950);if(Number['isFinite'](_0x3efa87))return _0x3efa87;}return undefined;}export function normalizeEntityWithIdResponse(_0x939f94){const _0xa7b9a5=a247_0x1a4b,_0xb3a101=toFiniteNumber(_0x939f94);if(_0xb3a101!==undefined)return{'id':_0xb3a101,'entity':{'id':_0xb3a101}};if(!_0x939f94||typeof _0x939f94!==_0xa7b9a5(0x158))return{'id':undefined,'entity':{}};const _0x58844e={..._0x939f94},_0x24b99b=toFiniteNumber(_0x58844e['id']);return _0x24b99b!==undefined&&(_0x58844e['id']=_0x24b99b),{'id':_0x24b99b,'entity':_0x58844e};}
@@ -1 +1 @@
1
- (function(_0x4670fc,_0x20d3dd){const _0x22140b=a248_0x1445,_0x122211=_0x4670fc();while(!![]){try{const _0x135d21=parseInt(_0x22140b(0x183))/0x1+parseInt(_0x22140b(0x184))/0x2+parseInt(_0x22140b(0x181))/0x3+-parseInt(_0x22140b(0x188))/0x4*(parseInt(_0x22140b(0x186))/0x5)+-parseInt(_0x22140b(0x187))/0x6*(-parseInt(_0x22140b(0x189))/0x7)+-parseInt(_0x22140b(0x18a))/0x8+-parseInt(_0x22140b(0x185))/0x9;if(_0x135d21===_0x20d3dd)break;else _0x122211['push'](_0x122211['shift']());}catch(_0x882ee4){_0x122211['push'](_0x122211['shift']());}}}(a248_0x4b21,0xa38a4));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a248_0x1445(_0x38fa94,_0x4f32e0){_0x38fa94=_0x38fa94-0x181;const _0x4b212e=a248_0x4b21();let _0x14453b=_0x4b212e[_0x38fa94];return _0x14453b;}import{join}from'node:path';export async function copyDir(_0x5d1570,_0x2109a1){const _0x109c56=a248_0x1445,_0x2b3b5e=statSync(_0x5d1570);if(_0x2b3b5e[_0x109c56(0x182)]()){!existsSync(_0x2109a1)&&mkdirSync(_0x2109a1,{'recursive':!![]});const _0x59c77f=readdirSync(_0x5d1570);for(const _0x47cdbd of _0x59c77f){await copyDir(join(_0x5d1570,_0x47cdbd),join(_0x2109a1,_0x47cdbd));}}else copyFileSync(_0x5d1570,_0x2109a1);}function a248_0x4b21(){const _0x4e38e9=['330939KBJHpC','1096164DXQptj','473571dKNgnE','3288470ErbYck','69102HUyRfZ','4fitaXM','301wnBOur','9901320VezBKX','3730758cULrnX','isDirectory'];a248_0x4b21=function(){return _0x4e38e9;};return a248_0x4b21();}export function ensureDir(_0xfc9e15){!existsSync(_0xfc9e15)&&mkdirSync(_0xfc9e15,{'recursive':!![]});}export function pathExists(_0x58869d){return existsSync(_0x58869d);}
1
+ (function(_0x293538,_0x24a604){const _0x5aea45=a248_0x9ab8,_0x2f98d6=_0x293538();while(!![]){try{const _0x207cbd=-parseInt(_0x5aea45(0x124))/0x1+parseInt(_0x5aea45(0x128))/0x2*(-parseInt(_0x5aea45(0x120))/0x3)+parseInt(_0x5aea45(0x121))/0x4+-parseInt(_0x5aea45(0x123))/0x5*(parseInt(_0x5aea45(0x126))/0x6)+parseInt(_0x5aea45(0x122))/0x7+parseInt(_0x5aea45(0x127))/0x8+-parseInt(_0x5aea45(0x11f))/0x9*(-parseInt(_0x5aea45(0x129))/0xa);if(_0x207cbd===_0x24a604)break;else _0x2f98d6['push'](_0x2f98d6['shift']());}catch(_0x378380){_0x2f98d6['push'](_0x2f98d6['shift']());}}}(a248_0x14fa,0xe744f));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a248_0x14fa(){const _0x3ee7d0=['11150584jZfADL','693322ZKORTn','20pXvkNV','12640977mOHNGF','15kCPgDG','1498968dyOOtF','5855178aNCJiE','6179045UkbGok','1497732zfOaSK','isDirectory','6jpjcVz'];a248_0x14fa=function(){return _0x3ee7d0;};return a248_0x14fa();}import{join}from'node:path';function a248_0x9ab8(_0xfc80ee,_0x3c0c45){_0xfc80ee=_0xfc80ee-0x11f;const _0x14fa38=a248_0x14fa();let _0x9ab85=_0x14fa38[_0xfc80ee];return _0x9ab85;}export async function copyDir(_0x5bbeab,_0x58b522){const _0x119801=a248_0x9ab8,_0x3b510d=statSync(_0x5bbeab);if(_0x3b510d[_0x119801(0x125)]()){!existsSync(_0x58b522)&&mkdirSync(_0x58b522,{'recursive':!![]});const _0x563864=readdirSync(_0x5bbeab);for(const _0x2282cf of _0x563864){await copyDir(join(_0x5bbeab,_0x2282cf),join(_0x58b522,_0x2282cf));}}else copyFileSync(_0x5bbeab,_0x58b522);}export function ensureDir(_0x278aca){!existsSync(_0x278aca)&&mkdirSync(_0x278aca,{'recursive':!![]});}export function pathExists(_0x1604fa){return existsSync(_0x1604fa);}
@@ -1 +1 @@
1
- const a249_0x266167=a249_0x21a2;(function(_0x48e604,_0x54a875){const _0x43afb5=a249_0x21a2,_0x4fd6ff=_0x48e604();while(!![]){try{const _0x162623=-parseInt(_0x43afb5(0x79))/0x1*(parseInt(_0x43afb5(0x76))/0x2)+-parseInt(_0x43afb5(0x94))/0x3+-parseInt(_0x43afb5(0x77))/0x4*(parseInt(_0x43afb5(0x89))/0x5)+-parseInt(_0x43afb5(0x7c))/0x6*(-parseInt(_0x43afb5(0x75))/0x7)+parseInt(_0x43afb5(0x74))/0x8*(-parseInt(_0x43afb5(0x8f))/0x9)+parseInt(_0x43afb5(0x8c))/0xa*(parseInt(_0x43afb5(0x8e))/0xb)+parseInt(_0x43afb5(0x85))/0xc;if(_0x162623===_0x54a875)break;else _0x4fd6ff['push'](_0x4fd6ff['shift']());}catch(_0x81ec0f){_0x4fd6ff['push'](_0x4fd6ff['shift']());}}}(a249_0x13e1,0xb70f0));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 _0x4a8e25=a249_0x21a2,_0x2b0d9c=getTemplateBaseUrl();return _0x2b0d9c+_0x4a8e25(0x7e);}function a249_0x13e1(){const _0x1814b0=['title','replace','59754qwYfnc','.lovrabet','/skills/guides.json','length','extendContent','join','guides','skillTemplate','.md','41831688Lkdkkn','lastUpdated','keys','object','5xMNrgS','trimEnd','statusText','20OrbqFq','map','6784679CkvGco','123462cnlnQl','application/json','content','entries','CDN\x20请求失败:\x20','1625181vZMzJn','CDN\x20返回数据格式错误','push','json','status','728ehpwyd','385sVdwZG','120882NaWAtx','5349124ZGuQGt','utf-8','23lkPUGw'];a249_0x13e1=function(){return _0x1814b0;};return a249_0x13e1();}const CACHE_DIR=join(homedir(),a249_0x266167(0x7d),'cache');function a249_0x21a2(_0x4b050c,_0x2ade0f){_0x4b050c=_0x4b050c-0x72;const _0x13e15e=a249_0x13e1();let _0x21a2cd=_0x13e15e[_0x4b050c];return _0x21a2cd;}export async function fetchGuidesFromCDN(){const _0x414950=a249_0x266167,_0x4ffb1d=getGuidesCdnUrl(),_0x36c0d1=await fetch(_0x4ffb1d,{'headers':{'Accept':_0x414950(0x90)}});if(!_0x36c0d1['ok'])throw new Error(_0x414950(0x93)+_0x36c0d1[_0x414950(0x73)]+'\x20'+_0x36c0d1[_0x414950(0x8b)]);const _0x12e63c=await _0x36c0d1[_0x414950(0x72)]();if(!_0x12e63c[_0x414950(0x82)]||typeof _0x12e63c[_0x414950(0x82)]!==_0x414950(0x88))throw new Error(_0x414950(0x95));return _0x12e63c;}export function writeGuidesToProject(_0x118235,_0x2d9344,_0x193912='.lovrabet/skill/guides',_0x1fe531){const _0x1586e5=a249_0x266167,_0x2c3ba7=join(_0x2d9344,_0x193912);mkdirSync(_0x2c3ba7,{'recursive':!![]});for(const [_0x301da9,_0x7fd581]of Object['entries'](_0x118235[_0x1586e5(0x82)])){let _0x2dce6a=_0x7fd581[_0x1586e5(0x91)];_0x7fd581[_0x1586e5(0x86)]&&(_0x2dce6a=appendUpdateTime(_0x2dce6a,_0x7fd581[_0x1586e5(0x86)])),writeFileSync(join(_0x2c3ba7,_0x301da9+_0x1586e5(0x84)),_0x2dce6a,_0x1586e5(0x78));}}export function appendUpdateTime(_0x2dcc08,_0x452cf9){const _0x1fd11e=a249_0x266167;return _0x2dcc08=_0x2dcc08[_0x1fd11e(0x7b)](/\n*>更新时间:.*$/m,''),_0x2dcc08[_0x1fd11e(0x8a)]()+('\x0a\x0a>更新时间:'+_0x452cf9);}export function getSkillTemplate(_0x104273){const _0x3838ba=a249_0x266167;return _0x104273[_0x3838ba(0x83)]?.[_0x3838ba(0x91)]||'';}export function appendExtendContents(_0x33d12a,_0x471eec,_0x427c17){const _0x572c02=a249_0x266167,_0x442ed5=[];for(const [,_0x1e2ee0]of Object['entries'](_0x471eec[_0x572c02(0x82)])){_0x1e2ee0[_0x572c02(0x80)]&&_0x442ed5[_0x572c02(0x96)](_0x1e2ee0[_0x572c02(0x80)][_0x572c02(0x8a)]());}if(_0x442ed5['length']===0x0)return _0x33d12a;return _0x33d12a[_0x572c02(0x8a)]()+'\x0a\x0a'+_0x442ed5[_0x572c02(0x81)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x7829f8,_0x39588a,_0x1fbe76){const _0x5c0571=a249_0x266167,_0x2a0e3d=getSkillTemplate(_0x7829f8);if(!_0x2a0e3d)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x29df12=dirname(_0x39588a);mkdirSync(_0x29df12,{'recursive':!![]});let _0xa86b3e=_0x2a0e3d[_0x5c0571(0x7b)](/\{\{IDE_NAME\}\}/g,_0x1fbe76);_0xa86b3e=appendExtendContents(_0xa86b3e,_0x7829f8),_0x7829f8[_0x5c0571(0x83)][_0x5c0571(0x86)]&&(_0xa86b3e=appendUpdateTime(_0xa86b3e,_0x7829f8[_0x5c0571(0x83)]['lastUpdated'])),writeFileSync(_0x39588a,_0xa86b3e,_0x5c0571(0x78));}export async function installGuides(_0x1feaaf){const _0x1fa73c=a249_0x266167,_0x3ab5d9=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3ab5d9,_0x1feaaf),Object[_0x1fa73c(0x87)](_0x3ab5d9[_0x1fa73c(0x82)])[_0x1fa73c(0x7f)];}export function getGuidesSummary(_0xa73e8e){const _0x49c0ab=a249_0x266167;return Object[_0x49c0ab(0x92)](_0xa73e8e[_0x49c0ab(0x82)])[_0x49c0ab(0x8d)](([_0x5228a5,_0x26cc18])=>({'key':_0x5228a5,'title':_0x26cc18[_0x49c0ab(0x7a)],'path':_0x26cc18['path']}));}
1
+ const a249_0x67fcfa=a249_0xb47c;(function(_0xe43537,_0x1fe1be){const _0x2dd4a3=a249_0xb47c,_0x2e85e5=_0xe43537();while(!![]){try{const _0x323b43=parseInt(_0x2dd4a3(0x77))/0x1+parseInt(_0x2dd4a3(0x79))/0x2*(-parseInt(_0x2dd4a3(0x7e))/0x3)+parseInt(_0x2dd4a3(0x72))/0x4+parseInt(_0x2dd4a3(0x7b))/0x5+parseInt(_0x2dd4a3(0x84))/0x6*(-parseInt(_0x2dd4a3(0x76))/0x7)+-parseInt(_0x2dd4a3(0x74))/0x8*(parseInt(_0x2dd4a3(0x75))/0x9)+-parseInt(_0x2dd4a3(0x81))/0xa;if(_0x323b43===_0x1fe1be)break;else _0x2e85e5['push'](_0x2e85e5['shift']());}catch(_0x507c76){_0x2e85e5['push'](_0x2e85e5['shift']());}}}(a249_0x49fc,0x2f6c6));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a249_0xb47c(_0x4adadb,_0x886c2e){_0x4adadb=_0x4adadb-0x64;const _0x49fc3e=a249_0x49fc();let _0xb47cd0=_0x49fc3e[_0x4adadb];return _0xb47cd0;}function getGuidesCdnUrl(){const _0x3314c2=a249_0xb47c,_0x196866=getTemplateBaseUrl();return _0x196866+_0x3314c2(0x6b);}const CACHE_DIR=join(homedir(),a249_0x67fcfa(0x7d),a249_0x67fcfa(0x7a));export async function fetchGuidesFromCDN(){const _0x3771be=a249_0x67fcfa,_0x233dae=getGuidesCdnUrl(),_0x4e9c66=await fetch(_0x233dae,{'headers':{'Accept':_0x3771be(0x65)}});if(!_0x4e9c66['ok'])throw new Error(_0x3771be(0x80)+_0x4e9c66[_0x3771be(0x6a)]+'\x20'+_0x4e9c66[_0x3771be(0x6c)]);const _0x43d495=await _0x4e9c66['json']();if(!_0x43d495['guides']||typeof _0x43d495['guides']!=='object')throw new Error(_0x3771be(0x73));return _0x43d495;}export function writeGuidesToProject(_0x2fde22,_0x362b6d,_0x5a858c=a249_0x67fcfa(0x70),_0x4901b0){const _0x5a3ea8=a249_0x67fcfa,_0x70664d=join(_0x362b6d,_0x5a858c);mkdirSync(_0x70664d,{'recursive':!![]});for(const [_0x1f4ae8,_0x4d6413]of Object['entries'](_0x2fde22['guides'])){let _0x504a85=_0x4d6413[_0x5a3ea8(0x67)];_0x4d6413[_0x5a3ea8(0x7c)]&&(_0x504a85=appendUpdateTime(_0x504a85,_0x4d6413[_0x5a3ea8(0x7c)])),writeFileSync(join(_0x70664d,_0x1f4ae8+_0x5a3ea8(0x6f)),_0x504a85,_0x5a3ea8(0x7f));}}export function appendUpdateTime(_0x33cfd3,_0x5ac272){const _0x17a574=a249_0x67fcfa;return _0x33cfd3=_0x33cfd3[_0x17a574(0x82)](/\n*>更新时间:.*$/m,''),_0x33cfd3[_0x17a574(0x71)]()+(_0x17a574(0x83)+_0x5ac272);}export function getSkillTemplate(_0x581be5){const _0x1ffefb=a249_0x67fcfa;return _0x581be5[_0x1ffefb(0x85)]?.[_0x1ffefb(0x67)]||'';}export function appendExtendContents(_0x8120d9,_0x3e2c43,_0x52316f){const _0x79ecc8=a249_0x67fcfa,_0x169898=[];for(const [,_0x5baddf]of Object[_0x79ecc8(0x69)](_0x3e2c43[_0x79ecc8(0x66)])){_0x5baddf[_0x79ecc8(0x78)]&&_0x169898['push'](_0x5baddf[_0x79ecc8(0x78)]['trimEnd']());}if(_0x169898[_0x79ecc8(0x68)]===0x0)return _0x8120d9;return _0x8120d9[_0x79ecc8(0x71)]()+'\x0a\x0a'+_0x169898['join']('\x0a\x0a')+'\x0a';}function a249_0x49fc(){const _0x16e9e9=['skillTemplate','keys','map','application/json','guides','content','length','entries','status','/skills/guides.json','statusText','path','title','.md','.lovrabet/skill/guides','trimEnd','1302912TIgnVV','CDN\x20返回数据格式错误','12144FcdBof','630oDzLCY','217xvBdxQ','200164SUiHer','extendContent','2Vvdhfa','cache','1671705zkrNtk','lastUpdated','.lovrabet','881943JIFOLS','utf-8','CDN\x20请求失败:\x20','772970GNPzrF','replace','\x0a\x0a>更新时间:','36474xvGDmz'];a249_0x49fc=function(){return _0x16e9e9;};return a249_0x49fc();}export function writeSkillFile(_0x39065c,_0x348707,_0x3e1143){const _0x5b739a=a249_0x67fcfa,_0x397abd=getSkillTemplate(_0x39065c);if(!_0x397abd)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x65b31=dirname(_0x348707);mkdirSync(_0x65b31,{'recursive':!![]});let _0x1c3e5c=_0x397abd['replace'](/\{\{IDE_NAME\}\}/g,_0x3e1143);_0x1c3e5c=appendExtendContents(_0x1c3e5c,_0x39065c),_0x39065c[_0x5b739a(0x85)]['lastUpdated']&&(_0x1c3e5c=appendUpdateTime(_0x1c3e5c,_0x39065c[_0x5b739a(0x85)][_0x5b739a(0x7c)])),writeFileSync(_0x348707,_0x1c3e5c,'utf-8');}export async function installGuides(_0x28be1d){const _0x518cc4=a249_0x67fcfa,_0x3884e8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3884e8,_0x28be1d),Object[_0x518cc4(0x86)](_0x3884e8[_0x518cc4(0x66)])[_0x518cc4(0x68)];}export function getGuidesSummary(_0x446b62){const _0x3abb17=a249_0x67fcfa;return Object[_0x3abb17(0x69)](_0x446b62[_0x3abb17(0x66)])[_0x3abb17(0x64)](([_0x2b8c9b,_0x21f38b])=>({'key':_0x2b8c9b,'title':_0x21f38b[_0x3abb17(0x6e)],'path':_0x21f38b[_0x3abb17(0x6d)]}));}
@@ -1 +1 @@
1
- function a250_0x10f1(){const _0x3e581d=['703849tPilMF','name','signal','TypeError','4545669lPKxqu','AbortError','2nrpNnL','message','abort','639vjMKGn','includes','headers','Request\x20failed','7334261gmPszw','*\x20请求失败,','json','130990HkrEzg','946986LvvoHl','log','text','statusText','1895125GajwBf','8YUywqp','get','application/json','status','14AMPlRq','2224600TmmSei','url','36yBxwXT'];a250_0x10f1=function(){return _0x3e581d;};return a250_0x10f1();}(function(_0x4745e7,_0x5764b5){const _0x13da25=a250_0x32ce,_0x4dcf90=_0x4745e7();while(!![]){try{const _0x395a41=-parseInt(_0x13da25(0xe9))/0x1+-parseInt(_0x13da25(0xef))/0x2*(parseInt(_0x13da25(0xed))/0x3)+-parseInt(_0x13da25(0xe1))/0x4*(-parseInt(_0x13da25(0xe0))/0x5)+parseInt(_0x13da25(0xdc))/0x6*(-parseInt(_0x13da25(0xe5))/0x7)+-parseInt(_0x13da25(0xe6))/0x8+parseInt(_0x13da25(0xf2))/0x9*(parseInt(_0x13da25(0xdb))/0xa)+-parseInt(_0x13da25(0xf6))/0xb*(-parseInt(_0x13da25(0xe8))/0xc);if(_0x395a41===_0x5764b5)break;else _0x4dcf90['push'](_0x4dcf90['shift']());}catch(_0x191288){_0x4dcf90['push'](_0x4dcf90['shift']());}}}(a250_0x10f1,0xd5c03));export async function httpRequest(_0x3ae296,_0x329961={}){const _0x47ad4b=a250_0x32ce,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x329961;let _0x2b1ce3=null;for(let _0x1a717e=0x0;_0x1a717e<=retries;_0x1a717e++){try{const _0x532aeb=new AbortController(),_0x1cf62e=setTimeout(()=>_0x532aeb[_0x47ad4b(0xf1)](),timeout),_0x1ce8f1=await fetch(_0x3ae296,{'headers':headers,'signal':_0x532aeb[_0x47ad4b(0xeb)]});clearTimeout(_0x1cf62e);let _0x2add40;const _0x3c39cc=_0x1ce8f1[_0x47ad4b(0xf4)][_0x47ad4b(0xe2)]('content-type');return _0x3c39cc?.[_0x47ad4b(0xf3)](_0x47ad4b(0xe3))?_0x2add40=await _0x1ce8f1[_0x47ad4b(0xf8)]():_0x2add40=await _0x1ce8f1[_0x47ad4b(0xde)](),{'ok':_0x1ce8f1['ok'],'status':_0x1ce8f1[_0x47ad4b(0xe4)],'statusText':_0x1ce8f1[_0x47ad4b(0xdf)],'data':_0x2add40,'headers':_0x1ce8f1[_0x47ad4b(0xf4)],'url':_0x1ce8f1[_0x47ad4b(0xe7)],'text':()=>_0x1ce8f1[_0x47ad4b(0xde)]()};}catch(_0xd21069){_0x2b1ce3=_0xd21069 instanceof Error?_0xd21069:new Error(String(_0xd21069));if(_0x1a717e===retries)break;if(shouldRetry(_0xd21069)){console[_0x47ad4b(0xdd)](_0x47ad4b(0xf7)+retryDelay+'ms\x20后进行第\x20'+(_0x1a717e+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x2b1ce3||new Error(_0x47ad4b(0xf5));}function a250_0x32ce(_0x58381f,_0x87a99d){_0x58381f=_0x58381f-0xdb;const _0x10f14e=a250_0x10f1();let _0x32ce8a=_0x10f14e[_0x58381f];return _0x32ce8a;}function shouldRetry(_0x45e3f0){const _0xda1b2a=a250_0x32ce;if(_0x45e3f0 instanceof Error){if(_0x45e3f0[_0xda1b2a(0xea)]===_0xda1b2a(0xee))return![];if(_0x45e3f0['name']===_0xda1b2a(0xec)&&_0x45e3f0[_0xda1b2a(0xf0)]['includes']('fetch'))return!![];if(_0x45e3f0[_0xda1b2a(0xf0)][_0xda1b2a(0xf3)]('ECONNRESET'))return!![];if(_0x45e3f0[_0xda1b2a(0xf0)][_0xda1b2a(0xf3)]('ENOTFOUND'))return![];}return![];}function sleep(_0x3b157c){return new Promise(_0x4c58db=>setTimeout(_0x4c58db,_0x3b157c));}export function validateUrl(_0x3c1794){try{return new URL(_0x3c1794),!![];}catch{return![];}}
1
+ function a250_0x32d5(){const _0x4fb339=['AbortError','log','ms\x20后进行第\x20','includes','11515ThnvpX','90vQogFd','856136rtEUSr','statusText','status','1341794Wrpjxz','\x20次重试...','signal','url','name','18692zTvGlr','864696aDPdQd','json','message','abort','text','2895319WbNHHr','2364iaKtEr','5634954pAouni','headers','get','content-type'];a250_0x32d5=function(){return _0x4fb339;};return a250_0x32d5();}(function(_0x98f9ab,_0x3395eb){const _0xea9e2d=a250_0x16ad,_0x34e236=_0x98f9ab();while(!![]){try{const _0x4cb89f=-parseInt(_0xea9e2d(0x153))/0x1+parseInt(_0xea9e2d(0x156))/0x2+-parseInt(_0xea9e2d(0x152))/0x3*(parseInt(_0xea9e2d(0x15b))/0x4)+-parseInt(_0xea9e2d(0x151))/0x5*(-parseInt(_0xea9e2d(0x148))/0x6)+parseInt(_0xea9e2d(0x147))/0x7+parseInt(_0xea9e2d(0x15c))/0x8+-parseInt(_0xea9e2d(0x149))/0x9;if(_0x4cb89f===_0x3395eb)break;else _0x34e236['push'](_0x34e236['shift']());}catch(_0x1a174c){_0x34e236['push'](_0x34e236['shift']());}}}(a250_0x32d5,0x7496f));export async function httpRequest(_0x53fb92,_0x475192={}){const _0x358010=a250_0x16ad,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x475192;let _0x2006c2=null;for(let _0x1753fe=0x0;_0x1753fe<=retries;_0x1753fe++){try{const _0x17fc6c=new AbortController(),_0x26c508=setTimeout(()=>_0x17fc6c[_0x358010(0x15f)](),timeout),_0x2a2e90=await fetch(_0x53fb92,{'headers':headers,'signal':_0x17fc6c[_0x358010(0x158)]});clearTimeout(_0x26c508);let _0x4f4080;const _0x53f78b=_0x2a2e90[_0x358010(0x14a)][_0x358010(0x14b)](_0x358010(0x14c));return _0x53f78b?.['includes']('application/json')?_0x4f4080=await _0x2a2e90[_0x358010(0x15d)]():_0x4f4080=await _0x2a2e90['text'](),{'ok':_0x2a2e90['ok'],'status':_0x2a2e90[_0x358010(0x155)],'statusText':_0x2a2e90[_0x358010(0x154)],'data':_0x4f4080,'headers':_0x2a2e90['headers'],'url':_0x2a2e90[_0x358010(0x159)],'text':()=>_0x2a2e90[_0x358010(0x160)]()};}catch(_0x1ba55c){_0x2006c2=_0x1ba55c instanceof Error?_0x1ba55c:new Error(String(_0x1ba55c));if(_0x1753fe===retries)break;if(shouldRetry(_0x1ba55c)){console[_0x358010(0x14e)]('*\x20请求失败,'+retryDelay+_0x358010(0x14f)+(_0x1753fe+0x1)+_0x358010(0x157)),await sleep(retryDelay);continue;}else break;}}throw _0x2006c2||new Error('Request\x20failed');}function a250_0x16ad(_0x267fa0,_0x3e83b0){_0x267fa0=_0x267fa0-0x147;const _0x32d57d=a250_0x32d5();let _0x16ada4=_0x32d57d[_0x267fa0];return _0x16ada4;}function shouldRetry(_0x9a9c0a){const _0x42765c=a250_0x16ad;if(_0x9a9c0a instanceof Error){if(_0x9a9c0a[_0x42765c(0x15a)]===_0x42765c(0x14d))return![];if(_0x9a9c0a[_0x42765c(0x15a)]==='TypeError'&&_0x9a9c0a['message'][_0x42765c(0x150)]('fetch'))return!![];if(_0x9a9c0a['message'][_0x42765c(0x150)]('ECONNRESET'))return!![];if(_0x9a9c0a[_0x42765c(0x15e)][_0x42765c(0x150)]('ENOTFOUND'))return![];}return![];}function sleep(_0x18a534){return new Promise(_0x2987cb=>setTimeout(_0x2987cb,_0x18a534));}export function validateUrl(_0x51ebbc){try{return new URL(_0x51ebbc),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a251_0xd0a9(_0x16477c,_0x1a22cd){_0x16477c=_0x16477c-0x1d6;const _0x3c28bc=a251_0x3c28();let _0xd0a902=_0x3c28bc[_0x16477c];return _0xd0a902;}(function(_0x4202b1,_0x10d6e1){const _0x44fd2c=a251_0xd0a9,_0x38e985=_0x4202b1();while(!![]){try{const _0x4db2bd=-parseInt(_0x44fd2c(0x1d8))/0x1+-parseInt(_0x44fd2c(0x1e3))/0x2+-parseInt(_0x44fd2c(0x1dc))/0x3+-parseInt(_0x44fd2c(0x1e0))/0x4*(-parseInt(_0x44fd2c(0x1e2))/0x5)+parseInt(_0x44fd2c(0x1d7))/0x6*(parseInt(_0x44fd2c(0x1da))/0x7)+parseInt(_0x44fd2c(0x1df))/0x8+parseInt(_0x44fd2c(0x1dd))/0x9;if(_0x4db2bd===_0x10d6e1)break;else _0x38e985['push'](_0x38e985['shift']());}catch(_0x538090){_0x38e985['push'](_0x38e985['shift']());}}}(a251_0x3c28,0x94a3d));function env(_0x2a59ba){return process.env[`RABETBASE_${_0x2a59ba}`]||process.env[`LOVRABET_${_0x2a59ba}`]||undefined;}export function isNonInteractive(_0x3e0c33){const _0x180644=a251_0xd0a9;return!!(_0x3e0c33[_0x180644(0x1de)]||_0x3e0c33['ci']||env('CI')===_0x180644(0x1d6)||process.env.CI==='true'||!process['stdout'][_0x180644(0x1d9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2eab1f=a251_0xd0a9;if(!process[_0x2eab1f(0x1e1)][_0x2eab1f(0x1d9)])return![];try{const _0x4ec006=process['stdin']['isRaw'];return process[_0x2eab1f(0x1e1)][_0x2eab1f(0x1db)](!![]),process['stdin']['setRawMode'](_0x4ec006??![]),!![];}catch{return![];}}function a251_0x3c28(){const _0x2caf69=['1972iPkyxK','stdin','1685DclmBk','1893114rqKrBq','true','6ZHCfEZ','1187423WwMSuL','isTTY','8082935LaQDBC','setRawMode','3346206FVsemE','15086367JjECAt','nonInteractive','6888816tPmKfg'];a251_0x3c28=function(){return _0x2caf69;};return a251_0x3c28();}
1
+ (function(_0x5484f0,_0x26d69b){const _0x3818d4=a251_0x962d,_0x39ea2a=_0x5484f0();while(!![]){try{const _0x192ce1=parseInt(_0x3818d4(0xae))/0x1+parseInt(_0x3818d4(0xa7))/0x2*(-parseInt(_0x3818d4(0xb3))/0x3)+parseInt(_0x3818d4(0xa8))/0x4+parseInt(_0x3818d4(0xad))/0x5*(-parseInt(_0x3818d4(0xb4))/0x6)+parseInt(_0x3818d4(0xa6))/0x7*(parseInt(_0x3818d4(0xb1))/0x8)+parseInt(_0x3818d4(0xaa))/0x9*(-parseInt(_0x3818d4(0xa9))/0xa)+parseInt(_0x3818d4(0xb0))/0xb;if(_0x192ce1===_0x26d69b)break;else _0x39ea2a['push'](_0x39ea2a['shift']());}catch(_0x4a4e8f){_0x39ea2a['push'](_0x39ea2a['shift']());}}}(a251_0x5ba7,0xf2332));function a251_0x962d(_0x4e6696,_0x2e85d3){_0x4e6696=_0x4e6696-0xa5;const _0x5ba75b=a251_0x5ba7();let _0x962de=_0x5ba75b[_0x4e6696];return _0x962de;}function env(_0x1f0c13){return process.env[`RABETBASE_${_0x1f0c13}`]||process.env[`LOVRABET_${_0x1f0c13}`]||undefined;}export function isNonInteractive(_0x2922fd){const _0x4c63be=a251_0x962d;return!!(_0x2922fd['nonInteractive']||_0x2922fd['ci']||env('CI')===_0x4c63be(0xb2)||process.env.CI===_0x4c63be(0xb2)||!process[_0x4c63be(0xb5)][_0x4c63be(0xaf)]||!isStdinRawModeSupported());}function a251_0x5ba7(){const _0x3cd6b8=['setRawMode','5971364ELuyaN','11032tZnVOF','7893424tXdDEg','12704930xrBfYU','9BMlFHp','stdin','isRaw','5VdGkQy','766093LTnpcm','isTTY','21774005OCbUVb','8MvVQXJ','true','1038ALtHGL','8405262HGYvkp','stdout'];a251_0x5ba7=function(){return _0x3cd6b8;};return a251_0x5ba7();}function isStdinRawModeSupported(){const _0x32ba51=a251_0x962d;if(!process['stdin']['isTTY'])return![];try{const _0x37c1d7=process[_0x32ba51(0xab)][_0x32ba51(0xac)];return process[_0x32ba51(0xab)][_0x32ba51(0xa5)](!![]),process[_0x32ba51(0xab)][_0x32ba51(0xa5)](_0x37c1d7??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a252_0x426e13=a252_0x2b39;(function(_0x49d704,_0x17c041){const _0x363439=a252_0x2b39,_0x32efdf=_0x49d704();while(!![]){try{const _0x3b9521=-parseInt(_0x363439(0xce))/0x1+-parseInt(_0x363439(0x9d))/0x2*(parseInt(_0x363439(0xa5))/0x3)+-parseInt(_0x363439(0xc7))/0x4*(-parseInt(_0x363439(0xae))/0x5)+parseInt(_0x363439(0xbf))/0x6+-parseInt(_0x363439(0xa8))/0x7+-parseInt(_0x363439(0x9c))/0x8+parseInt(_0x363439(0xa0))/0x9;if(_0x3b9521===_0x17c041)break;else _0x32efdf['push'](_0x32efdf['shift']());}catch(_0x2f4a37){_0x32efdf['push'](_0x32efdf['shift']());}}}(a252_0x52b8,0x4d207));import a252_0x47ae04 from'winston';import a252_0x48d55 from'node:fs';function a252_0x52b8(){const _0x5cf62d=['toISOString','logTask','9324900QTRJLG','Failed\x20to\x20clear\x20logs:','getWinstonInstance','printf','success','3156dKuhXZ','blue','开始执行:\x20','3304630gYXkqP','map','rawCommand','addColors','完成:\x20','error','1569045LIFPtO','winstonLogger','失败:\x20','info','split','join','timestamp','writeFileSync','setLogPath','setRawCommand','yellow','trim','message','format','clear','currentRawCommand','utf8','679566UtgPDS','level','clearLogs','stringify','existsSync','File','unknown','readLogs','8GajjTY','details','duration','transports','warn','green','now','339324WafLFk','errors','initWinstonLogger','createLogger','command','Failed\x20to\x20read\x20logs:','logFilePath','3615024GKguOy','376rTZxQF'];a252_0x52b8=function(){return _0x5cf62d;};return a252_0x52b8();}import a252_0x4795e8 from'node:path';class Logger{['winstonLogger'];[a252_0x426e13(0x9b)];['currentRawCommand']='';constructor(){const _0x495bb6=a252_0x426e13;this[_0x495bb6(0x9b)]='';}[a252_0x426e13(0xb7)](_0x52fc16){const _0x50ba04=a252_0x426e13;this[_0x50ba04(0xbd)]=_0x52fc16;}[a252_0x426e13(0xd0)](){const _0x4beb81=a252_0x426e13,_0x44eadf=a252_0x4795e8['dirname'](this[_0x4beb81(0x9b)]);!a252_0x48d55['existsSync'](_0x44eadf)&&a252_0x48d55['mkdirSync'](_0x44eadf,{'recursive':!![]});const _0x4b39d8=a252_0x47ae04[_0x4beb81(0xbb)]['combine'](a252_0x47ae04[_0x4beb81(0xbb)][_0x4beb81(0xb4)](),a252_0x47ae04[_0x4beb81(0xbb)][_0x4beb81(0xcf)]({'stack':!![]}),a252_0x47ae04[_0x4beb81(0xbb)][_0x4beb81(0xa3)](_0x124f46=>{const _0x189407=_0x4beb81,_0x30176e={'timestamp':_0x124f46[_0x189407(0xb4)]||new Date()[_0x189407(0x9e)](),'level':_0x124f46[_0x189407(0xc0)]||'info','command':_0x124f46[_0x189407(0x99)]||_0x189407(0xc5),'rawCommand':_0x124f46[_0x189407(0xaa)]||this[_0x189407(0xbd)]||undefined,'message':_0x124f46[_0x189407(0xba)]||'','duration':_0x124f46[_0x189407(0xc9)]||undefined,'details':_0x124f46[_0x189407(0xc8)]||undefined};return JSON[_0x189407(0xc2)](_0x30176e);}));this['winstonLogger']=a252_0x47ae04[_0x4beb81(0xd1)]({'level':_0x4beb81(0xb1),'format':_0x4b39d8,'transports':[new a252_0x47ae04[(_0x4beb81(0xca))][(_0x4beb81(0xc4))]({'filename':this[_0x4beb81(0x9b)],'level':_0x4beb81(0xb1)})],'silent':![]}),a252_0x47ae04[_0x4beb81(0xab)]({'success':_0x4beb81(0xcc),'error':'red','warn':_0x4beb81(0xb8),'info':_0x4beb81(0xa6)});}[a252_0x426e13(0xb6)](_0x4e049d){const _0x12c414=a252_0x426e13;this['logFilePath']=a252_0x4795e8[_0x12c414(0xb3)](_0x4e049d,'.lovrabet.log'),this[_0x12c414(0xaf)]&&this[_0x12c414(0xaf)][_0x12c414(0xbc)](),this[_0x12c414(0xd0)]();}['info'](_0x17c3ad,_0xcd171e,_0x55a602){const _0x1aa804=a252_0x426e13;if(!this[_0x1aa804(0x9b)]||!this[_0x1aa804(0xaf)])return;this[_0x1aa804(0xaf)][_0x1aa804(0xb1)](_0xcd171e,{'command':_0x17c3ad,'details':_0x55a602});}['success'](_0x2973d1,_0x47f761,_0x2fd2cf,_0x4bc808){const _0x3eab27=a252_0x426e13;if(!this[_0x3eab27(0x9b)]||!this[_0x3eab27(0xaf)])return;this['winstonLogger']['log'](_0x3eab27(0xb1),_0x47f761,{'level':_0x3eab27(0xa4),'command':_0x2973d1,'duration':_0x2fd2cf,'details':_0x4bc808});}[a252_0x426e13(0xad)](_0x4fbd22,_0x5289a1,_0x4cd03e){const _0x42dbbf=a252_0x426e13;if(!this[_0x42dbbf(0x9b)]||!this[_0x42dbbf(0xaf)])return;this[_0x42dbbf(0xaf)][_0x42dbbf(0xad)](_0x5289a1,{'command':_0x4fbd22,'details':_0x4cd03e});}[a252_0x426e13(0xcb)](_0x3e0624,_0x1adb8c,_0x8bfa3b){const _0xd41f40=a252_0x426e13;if(!this[_0xd41f40(0x9b)]||!this['winstonLogger'])return;this[_0xd41f40(0xaf)][_0xd41f40(0xcb)](_0x1adb8c,{'command':_0x3e0624,'details':_0x8bfa3b});}async[a252_0x426e13(0x9f)](_0x11d2e1,_0x28fb74,_0x252e59){const _0x3c805e=a252_0x426e13,_0x1a3e44=Date[_0x3c805e(0xcd)]();this['info'](_0x11d2e1,_0x3c805e(0xa7)+_0x28fb74);try{const _0x137bc4=await _0x252e59(),_0x41b5f9=Date[_0x3c805e(0xcd)]()-_0x1a3e44;return this[_0x3c805e(0xa4)](_0x11d2e1,_0x3c805e(0xac)+_0x28fb74,_0x41b5f9),_0x137bc4;}catch(_0x5c0952){const _0x496a84=Date['now']()-_0x1a3e44;this[_0x3c805e(0xad)](_0x11d2e1,_0x3c805e(0xb0)+_0x28fb74,{'error':_0x5c0952 instanceof Error?_0x5c0952[_0x3c805e(0xba)]:String(_0x5c0952),'duration':_0x496a84});throw _0x5c0952;}}[a252_0x426e13(0xc6)](){const _0x27928c=a252_0x426e13;try{if(!a252_0x48d55[_0x27928c(0xc3)](this[_0x27928c(0x9b)]))return[];const _0x506cb2=a252_0x48d55['readFileSync'](this[_0x27928c(0x9b)],'utf8');return _0x506cb2[_0x27928c(0xb2)]('\x0a')['filter'](_0x25310d=>_0x25310d[_0x27928c(0xb9)]())[_0x27928c(0xa9)](_0x55cdb3=>JSON['parse'](_0x55cdb3));}catch(_0x2aa75b){return console['warn'](_0x27928c(0x9a),_0x2aa75b),[];}}[a252_0x426e13(0xc1)](){const _0x45d84f=a252_0x426e13;try{a252_0x48d55['existsSync'](this['logFilePath'])&&a252_0x48d55[_0x45d84f(0xb5)](this[_0x45d84f(0x9b)],'',_0x45d84f(0xbe));}catch(_0x1f8ab0){console[_0x45d84f(0xcb)](_0x45d84f(0xa1),_0x1f8ab0);}}[a252_0x426e13(0xa2)](){const _0x1aebef=a252_0x426e13;return this[_0x1aebef(0xaf)];}}function a252_0x2b39(_0x3560ea,_0x5ea06b){_0x3560ea=_0x3560ea-0x99;const _0x52b860=a252_0x52b8();let _0x2b3959=_0x52b860[_0x3560ea];return _0x2b3959;}export const logger=new Logger();
1
+ const a252_0x239a2c=a252_0x2785;(function(_0x3491dc,_0xcb71e2){const _0x31536c=a252_0x2785,_0x37617b=_0x3491dc();while(!![]){try{const _0x1a26ee=-parseInt(_0x31536c(0x204))/0x1*(parseInt(_0x31536c(0x1fa))/0x2)+-parseInt(_0x31536c(0x1f1))/0x3+-parseInt(_0x31536c(0x203))/0x4*(parseInt(_0x31536c(0x1ec))/0x5)+-parseInt(_0x31536c(0x1e9))/0x6*(parseInt(_0x31536c(0x1e5))/0x7)+parseInt(_0x31536c(0x1ea))/0x8+parseInt(_0x31536c(0x1ff))/0x9+parseInt(_0x31536c(0x1f3))/0xa*(parseInt(_0x31536c(0x214))/0xb);if(_0x1a26ee===_0xcb71e2)break;else _0x37617b['push'](_0x37617b['shift']());}catch(_0x5942bd){_0x37617b['push'](_0x37617b['shift']());}}}(a252_0x2fc2,0x9306a));import a252_0x46a1b1 from'winston';import a252_0x578eee from'node:fs';function a252_0x2fc2(){const _0x4a1617=['mkdirSync','rawCommand','warn','329Htdcuc','addColors','readLogs','dirname','136038ImNQfO','2159416VSGOth','map','25JTgibQ','winstonLogger','existsSync','filter','clearLogs','358998gIoJoN','writeFileSync','31638370EvgGCs','logTask','yellow','split','duration','失败:\x20','success','197494QMqZTH','timestamp','now','green','logFilePath','85320BgrJEi','currentRawCommand','initWinstonLogger','log','376612OYIgrV','12NTvwbg','parse','details','开始执行:\x20','完成:\x20','info','readFileSync','getWinstonInstance','createLogger','Failed\x20to\x20clear\x20logs:','File','errors','join','command','format','message','11ahhRyF'];a252_0x2fc2=function(){return _0x4a1617;};return a252_0x2fc2();}import a252_0x1c476d from'node:path';class Logger{[a252_0x239a2c(0x1ed)];[a252_0x239a2c(0x1fe)];[a252_0x239a2c(0x200)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x1934ea){const _0x5b8b98=a252_0x239a2c;this[_0x5b8b98(0x200)]=_0x1934ea;}['initWinstonLogger'](){const _0x2c46f9=a252_0x239a2c,_0x2ce873=a252_0x1c476d[_0x2c46f9(0x1e8)](this[_0x2c46f9(0x1fe)]);!a252_0x578eee[_0x2c46f9(0x1ee)](_0x2ce873)&&a252_0x578eee[_0x2c46f9(0x215)](_0x2ce873,{'recursive':!![]});const _0x304e2a=a252_0x46a1b1['format']['combine'](a252_0x46a1b1[_0x2c46f9(0x212)][_0x2c46f9(0x1fb)](),a252_0x46a1b1[_0x2c46f9(0x212)][_0x2c46f9(0x20f)]({'stack':!![]}),a252_0x46a1b1[_0x2c46f9(0x212)]['printf'](_0x41b24a=>{const _0x2b8d3d=_0x2c46f9,_0x573560={'timestamp':_0x41b24a[_0x2b8d3d(0x1fb)]||new Date()['toISOString'](),'level':_0x41b24a['level']||_0x2b8d3d(0x209),'command':_0x41b24a[_0x2b8d3d(0x211)]||'unknown','rawCommand':_0x41b24a[_0x2b8d3d(0x1e3)]||this[_0x2b8d3d(0x200)]||undefined,'message':_0x41b24a[_0x2b8d3d(0x213)]||'','duration':_0x41b24a[_0x2b8d3d(0x1f7)]||undefined,'details':_0x41b24a[_0x2b8d3d(0x206)]||undefined};return JSON['stringify'](_0x573560);}));this[_0x2c46f9(0x1ed)]=a252_0x46a1b1[_0x2c46f9(0x20c)]({'level':'info','format':_0x304e2a,'transports':[new a252_0x46a1b1['transports'][(_0x2c46f9(0x20e))]({'filename':this[_0x2c46f9(0x1fe)],'level':'info'})],'silent':![]}),a252_0x46a1b1[_0x2c46f9(0x1e6)]({'success':_0x2c46f9(0x1fd),'error':'red','warn':_0x2c46f9(0x1f5),'info':'blue'});}['setLogPath'](_0x12b598){const _0x1da689=a252_0x239a2c;this['logFilePath']=a252_0x1c476d[_0x1da689(0x210)](_0x12b598,'.lovrabet.log'),this[_0x1da689(0x1ed)]&&this[_0x1da689(0x1ed)]['clear'](),this[_0x1da689(0x201)]();}[a252_0x239a2c(0x209)](_0xe451da,_0x4b56f6,_0x4ea4b9){const _0x2c52f4=a252_0x239a2c;if(!this[_0x2c52f4(0x1fe)]||!this[_0x2c52f4(0x1ed)])return;this[_0x2c52f4(0x1ed)][_0x2c52f4(0x209)](_0x4b56f6,{'command':_0xe451da,'details':_0x4ea4b9});}['success'](_0x2c885b,_0x5f277e,_0x422d16,_0x51997e){const _0xc06e90=a252_0x239a2c;if(!this[_0xc06e90(0x1fe)]||!this[_0xc06e90(0x1ed)])return;this['winstonLogger'][_0xc06e90(0x202)]('info',_0x5f277e,{'level':_0xc06e90(0x1f9),'command':_0x2c885b,'duration':_0x422d16,'details':_0x51997e});}['error'](_0x170c7e,_0x57f728,_0xee6f82){const _0x3354ea=a252_0x239a2c;if(!this[_0x3354ea(0x1fe)]||!this[_0x3354ea(0x1ed)])return;this[_0x3354ea(0x1ed)]['error'](_0x57f728,{'command':_0x170c7e,'details':_0xee6f82});}['warn'](_0xd8e072,_0x533e57,_0x1f0fa1){const _0x45e637=a252_0x239a2c;if(!this[_0x45e637(0x1fe)]||!this['winstonLogger'])return;this[_0x45e637(0x1ed)]['warn'](_0x533e57,{'command':_0xd8e072,'details':_0x1f0fa1});}async[a252_0x239a2c(0x1f4)](_0x518662,_0x58975e,_0xaa17b9){const _0x37a878=a252_0x239a2c,_0x9e0109=Date[_0x37a878(0x1fc)]();this[_0x37a878(0x209)](_0x518662,_0x37a878(0x207)+_0x58975e);try{const _0x20b969=await _0xaa17b9(),_0x3d452e=Date[_0x37a878(0x1fc)]()-_0x9e0109;return this[_0x37a878(0x1f9)](_0x518662,_0x37a878(0x208)+_0x58975e,_0x3d452e),_0x20b969;}catch(_0x1c7d68){const _0x59209e=Date[_0x37a878(0x1fc)]()-_0x9e0109;this['error'](_0x518662,_0x37a878(0x1f8)+_0x58975e,{'error':_0x1c7d68 instanceof Error?_0x1c7d68['message']:String(_0x1c7d68),'duration':_0x59209e});throw _0x1c7d68;}}[a252_0x239a2c(0x1e7)](){const _0x4921ae=a252_0x239a2c;try{if(!a252_0x578eee[_0x4921ae(0x1ee)](this[_0x4921ae(0x1fe)]))return[];const _0x3a0e56=a252_0x578eee[_0x4921ae(0x20a)](this[_0x4921ae(0x1fe)],'utf8');return _0x3a0e56[_0x4921ae(0x1f6)]('\x0a')[_0x4921ae(0x1ef)](_0x5e1fdb=>_0x5e1fdb['trim']())[_0x4921ae(0x1eb)](_0x45b59a=>JSON[_0x4921ae(0x205)](_0x45b59a));}catch(_0x3385fc){return console[_0x4921ae(0x1e4)]('Failed\x20to\x20read\x20logs:',_0x3385fc),[];}}[a252_0x239a2c(0x1f0)](){const _0x300824=a252_0x239a2c;try{a252_0x578eee[_0x300824(0x1ee)](this[_0x300824(0x1fe)])&&a252_0x578eee[_0x300824(0x1f2)](this[_0x300824(0x1fe)],'','utf8');}catch(_0x21962b){console[_0x300824(0x1e4)](_0x300824(0x20d),_0x21962b);}}[a252_0x239a2c(0x20b)](){const _0xc3a078=a252_0x239a2c;return this[_0xc3a078(0x1ed)];}}function a252_0x2785(_0x3d684e,_0x1fc7f3){_0x3d684e=_0x3d684e-0x1e3;const _0x2fc2d3=a252_0x2fc2();let _0x27851b=_0x2fc2d3[_0x3d684e];return _0x27851b;}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x24b3f5,_0x7c147e){const _0x1fcb66=a253_0x6256,_0x741182=_0x24b3f5();while(!![]){try{const _0x30b7d9=-parseInt(_0x1fcb66(0x1b1))/0x1+parseInt(_0x1fcb66(0x1a7))/0x2+-parseInt(_0x1fcb66(0x1ad))/0x3*(-parseInt(_0x1fcb66(0x1b0))/0x4)+-parseInt(_0x1fcb66(0x1ac))/0x5+parseInt(_0x1fcb66(0x1a8))/0x6+-parseInt(_0x1fcb66(0x1ae))/0x7+parseInt(_0x1fcb66(0x1a6))/0x8;if(_0x30b7d9===_0x7c147e)break;else _0x741182['push'](_0x741182['shift']());}catch(_0x1b4ec6){_0x741182['push'](_0x741182['shift']());}}}(a253_0x47e8,0x9e444));import{CliErrors}from'../errors.js';function a253_0x47e8(){const _0x55f8e8=['validation','isArray','Invalid\x20JSON\x20for\x20--params:\x20','2503680ZpcGou','539454XxfaHE','7912604TpNjBs','object','20iuCVVH','174354LencxK','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','parse','--params\x20must\x20be\x20a\x20JSON\x20object','5813184UgmAUv','1499204OHTyps','470292bbitYY'];a253_0x47e8=function(){return _0x55f8e8;};return a253_0x47e8();}function a253_0x6256(_0x388458,_0x48d156){_0x388458=_0x388458-0x1a3;const _0x47e8cb=a253_0x47e8();let _0x62566a=_0x47e8cb[_0x388458];return _0x62566a;}export function parseJsonParams(_0x433562){const _0x1f2202=a253_0x6256;if(!_0x433562)return undefined;let _0xc6fd77;try{_0xc6fd77=JSON[_0x1f2202(0x1a4)](_0x433562);}catch{throw CliErrors[_0x1f2202(0x1a9)](_0x1f2202(0x1ab)+_0x433562);}if(!_0xc6fd77||typeof _0xc6fd77!==_0x1f2202(0x1af)||Array[_0x1f2202(0x1aa)](_0xc6fd77))throw CliErrors[_0x1f2202(0x1a9)](_0x1f2202(0x1a5),_0x1f2202(0x1a3));return _0xc6fd77;}
1
+ (function(_0x299d6a,_0x281ed7){const _0x52ba85=a253_0x5446,_0x11b8f7=_0x299d6a();while(!![]){try{const _0x2ccabc=parseInt(_0x52ba85(0xf6))/0x1*(parseInt(_0x52ba85(0xf2))/0x2)+parseInt(_0x52ba85(0xfd))/0x3+parseInt(_0x52ba85(0xf5))/0x4*(parseInt(_0x52ba85(0x101))/0x5)+parseInt(_0x52ba85(0xfc))/0x6+-parseInt(_0x52ba85(0xff))/0x7*(-parseInt(_0x52ba85(0xfb))/0x8)+-parseInt(_0x52ba85(0xf1))/0x9*(-parseInt(_0x52ba85(0xf7))/0xa)+-parseInt(_0x52ba85(0xfa))/0xb;if(_0x2ccabc===_0x281ed7)break;else _0x11b8f7['push'](_0x11b8f7['shift']());}catch(_0x5c5586){_0x11b8f7['push'](_0x11b8f7['shift']());}}}(a253_0x2f58,0xe7abf));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x322116){const _0x1957d8=a253_0x5446;if(!_0x322116)return undefined;let _0x1ef2c6;try{_0x1ef2c6=JSON[_0x1957d8(0x100)](_0x322116);}catch{throw CliErrors[_0x1957d8(0xf0)](_0x1957d8(0xf3)+_0x322116);}if(!_0x1ef2c6||typeof _0x1ef2c6!==_0x1957d8(0xfe)||Array[_0x1957d8(0xf4)](_0x1ef2c6))throw CliErrors['validation'](_0x1957d8(0xf8),_0x1957d8(0xf9));return _0x1ef2c6;}function a253_0x5446(_0x3ac470,_0x5bf10b){_0x3ac470=_0x3ac470-0xf0;const _0x2f5814=a253_0x2f58();let _0x54461c=_0x2f5814[_0x3ac470];return _0x54461c;}function a253_0x2f58(){const _0x2dd5f2=['--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','56056363XdvbKC','11560gbvooA','9538908zGdTkx','4839567MlLLMd','object','777VxDyuf','parse','40RbvuIu','validation','18sGDtDK','8Dnsclx','Invalid\x20JSON\x20for\x20--params:\x20','isArray','140636IcTBgi','314641HSYvyW','5708610mwDRWZ'];a253_0x2f58=function(){return _0x2dd5f2;};return a253_0x2f58();}
@@ -1 +1 @@
1
- const a254_0x19d093=a254_0x3245;(function(_0x4a0cc2,_0x2d025f){const _0x17acc7=a254_0x3245,_0x51669b=_0x4a0cc2();while(!![]){try{const _0x4e1eb0=parseInt(_0x17acc7(0x14b))/0x1+parseInt(_0x17acc7(0x150))/0x2+parseInt(_0x17acc7(0x154))/0x3*(parseInt(_0x17acc7(0x14d))/0x4)+parseInt(_0x17acc7(0x151))/0x5+parseInt(_0x17acc7(0x152))/0x6+-parseInt(_0x17acc7(0x14f))/0x7*(parseInt(_0x17acc7(0x14e))/0x8)+-parseInt(_0x17acc7(0x149))/0x9;if(_0x4e1eb0===_0x2d025f)break;else _0x51669b['push'](_0x51669b['shift']());}catch(_0x1db84e){_0x51669b['push'](_0x51669b['shift']());}}}(a254_0x261d,0xde467));export const isWindows=process[a254_0x19d093(0x14c)]===a254_0x19d093(0x14a);function a254_0x3245(_0x400815,_0x28e2a9){_0x400815=_0x400815-0x149;const _0x261da9=a254_0x261d();let _0x3245fe=_0x261da9[_0x400815];return _0x3245fe;}export function resolveNpmBin(_0x5edac6){const _0xc95263=a254_0x19d093;return isWindows?_0x5edac6+_0xc95263(0x153):_0x5edac6;}function a254_0x261d(){const _0x194a8c=['6167UkTxCq','1900978NMNccn','1903960sQlZjR','5450868OMvJgH','.cmd','70194DAmAjw','7088508RdxrYO','win32','135872HlogWc','platform','164mOhKXR','14864SzityB'];a254_0x261d=function(){return _0x194a8c;};return a254_0x261d();}
1
+ const a254_0x2aa2ba=a254_0x32c2;function a254_0x2a35(){const _0x2c0feb=['2961300nFbZgy','285hlTqBD','3450228uYfWSX','239238BYQIYs','9SpsTOG','10132888ylDUCk','5958617YYGLEf','platform','1795164aArEOc','33204WLUUks','win32'];a254_0x2a35=function(){return _0x2c0feb;};return a254_0x2a35();}(function(_0x422d2a,_0x4666cf){const _0x39b444=a254_0x32c2,_0x274fbc=_0x422d2a();while(!![]){try{const _0x3f78de=-parseInt(_0x39b444(0x144))/0x1+parseInt(_0x39b444(0x149))/0x2+-parseInt(_0x39b444(0x141))/0x3+parseInt(_0x39b444(0x143))/0x4+parseInt(_0x39b444(0x142))/0x5*(-parseInt(_0x39b444(0x14a))/0x6)+-parseInt(_0x39b444(0x147))/0x7+parseInt(_0x39b444(0x146))/0x8*(parseInt(_0x39b444(0x145))/0x9);if(_0x3f78de===_0x4666cf)break;else _0x274fbc['push'](_0x274fbc['shift']());}catch(_0x3b7a21){_0x274fbc['push'](_0x274fbc['shift']());}}}(a254_0x2a35,0x9ab8f));function a254_0x32c2(_0x58d801,_0x4f1306){_0x58d801=_0x58d801-0x141;const _0x2a35d6=a254_0x2a35();let _0x32c250=_0x2a35d6[_0x58d801];return _0x32c250;}export const isWindows=process[a254_0x2aa2ba(0x148)]===a254_0x2aa2ba(0x14b);export function resolveNpmBin(_0x3fb7aa){return isWindows?_0x3fb7aa+'.cmd':_0x3fb7aa;}