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

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 -0
  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 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  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 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  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 -0
  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 -0
  177. package/lib/commands/task/status.js +1 -0
  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 -0
  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 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  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
- const a218_0x450cb5=a218_0x3dbc;(function(_0x3be8cb,_0x33f039){const _0x5e24e4=a218_0x3dbc,_0x1e9857=_0x3be8cb();while(!![]){try{const _0x8f4b7e=parseInt(_0x5e24e4(0x167))/0x1*(-parseInt(_0x5e24e4(0x15b))/0x2)+parseInt(_0x5e24e4(0x170))/0x3*(-parseInt(_0x5e24e4(0x16a))/0x4)+-parseInt(_0x5e24e4(0x179))/0x5+-parseInt(_0x5e24e4(0x15f))/0x6*(-parseInt(_0x5e24e4(0x16b))/0x7)+-parseInt(_0x5e24e4(0x164))/0x8*(-parseInt(_0x5e24e4(0x15c))/0x9)+parseInt(_0x5e24e4(0x173))/0xa*(-parseInt(_0x5e24e4(0x163))/0xb)+parseInt(_0x5e24e4(0x176))/0xc*(parseInt(_0x5e24e4(0x16e))/0xd);if(_0x8f4b7e===_0x33f039)break;else _0x1e9857['push'](_0x1e9857['shift']());}catch(_0x18357d){_0x1e9857['push'](_0x1e9857['shift']());}}}(a218_0x2293,0x4b2ac));import{spawnSync}from'node:child_process';function a218_0x2293(){const _0x21d243=['685405JcOBDq','skills','toString','815722TpDfEA','209394QOzvnZ','add','lovrabet/lovrabet-skill','6VSInct','yes','pipe','unknown','57167wFjWCe','32kJOHRv','npx','status','1vnJIAZ','inherit','join','2043544LwLgas','105392ZKuOrG','stdio','lovrabet/rabetbase','13aXiEzj','exit\x20','3nCDkAD','stdout','stderr','920AjqaTE','push','log','20804592NWyNAg','skill','trim'];a218_0x2293=function(){return _0x21d243;};return a218_0x2293();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a218_0x450cb5(0x17a);export const NPX_SKILLS_SUBCOMMAND_ADD=a218_0x450cb5(0x15d);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a218_0x450cb5(0x16d);function a218_0x3dbc(_0x1bf6ac,_0x2f9c19){_0x1bf6ac=_0x1bf6ac-0x15b;const _0x229387=a218_0x2293();let _0x3dbcd4=_0x229387[_0x1bf6ac];return _0x3dbcd4;}export const LEGACY_RABETBASE_SKILL_SOURCE=a218_0x450cb5(0x15e);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x253ed){const _0x4a4156=a218_0x450cb5,_0x4b2803=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x253ed&&_0x4b2803[_0x4a4156(0x174)](NPX_SKILLS_FLAG_SKILL,_0x253ed),_0x4b2803;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a218_0x450cb5(0x165),...buildNpxSkillsAddArgv()][a218_0x450cb5(0x169)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a218_0x450cb5(0x165),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a218_0x450cb5(0x169)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x18b2e1,_0x5ce435){const _0x973d9d=a218_0x450cb5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5aed66=_0x5ce435?.['stdio']??_0x973d9d(0x168),_0x1a0164=resolveNpmBin(_0x973d9d(0x165)),_0x5781fd=buildNpxSkillsAddArgv(_0x5ce435?.[_0x973d9d(0x177)]),_0xf39110=[_0x973d9d(0x165),..._0x5781fd][_0x973d9d(0x169)]('\x20');console[_0x973d9d(0x175)]('*\x20'+_0xf39110);const _0x3aca18=spawnSync(_0x1a0164,_0x5781fd,{'cwd':_0x18b2e1,'stdio':_0x5aed66,'env':process.env,'shell':![]}),_0x22a6b0=_0x3aca18[_0x973d9d(0x166)];if(_0x22a6b0===0x0)return{'ok':!![],'status':0x0};let _0x71db5e=_0x973d9d(0x16f)+(_0x22a6b0??_0x973d9d(0x162));if(_0x5aed66===_0x973d9d(0x161)){const _0xe39cb2=_0x3aca18[_0x973d9d(0x172)]?_0x3aca18[_0x973d9d(0x172)][_0x973d9d(0x17b)]()[_0x973d9d(0x178)]():'',_0x36f3bc=_0x3aca18[_0x973d9d(0x171)]?_0x3aca18['stdout'][_0x973d9d(0x17b)]()['trim']():'';if(_0xe39cb2)_0x71db5e=_0xe39cb2;else{if(_0x36f3bc)_0x71db5e=_0x36f3bc;}}return{'ok':![],'status':_0x22a6b0??null,'error':_0x71db5e};}export function runNpxSkillsRemove(_0x14d81e,_0x4cead1,_0x2eab8b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x24fad9=a218_0x450cb5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x58dc04=_0x4cead1?.[_0x24fad9(0x16c)]??_0x24fad9(0x168),_0x354937=resolveNpmBin('npx'),_0x385e68=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2eab8b,NPX_SKILLS_FLAG_SKILL,_0x4cead1?.[_0x24fad9(0x177)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4cead1?.[_0x24fad9(0x160)]?['-y']:[]],_0x4c0dfa=[_0x354937,..._0x385e68][_0x24fad9(0x169)]('\x20');console['log']('*\x20'+_0x4c0dfa);const _0x4bfe8f=spawnSync(_0x354937,_0x385e68,{'cwd':_0x14d81e,'stdio':_0x58dc04,'env':process.env,'shell':![]}),_0xfdec6=_0x4bfe8f[_0x24fad9(0x166)];if(_0xfdec6===0x0)return{'ok':!![],'status':0x0};let _0x3438c4=_0x24fad9(0x16f)+(_0xfdec6??_0x24fad9(0x162));if(_0x58dc04==='pipe'){const _0x4b3e93=_0x4bfe8f[_0x24fad9(0x172)]?_0x4bfe8f[_0x24fad9(0x172)][_0x24fad9(0x17b)]()[_0x24fad9(0x178)]():'',_0x4fd451=_0x4bfe8f['stdout']?_0x4bfe8f['stdout'][_0x24fad9(0x17b)]()['trim']():'';if(_0x4b3e93)_0x3438c4=_0x4b3e93;else{if(_0x4fd451)_0x3438c4=_0x4fd451;}}return{'ok':![],'status':_0xfdec6??null,'error':_0x3438c4};}export function runNpxSkillsAddGlobal(_0x56087d,_0x359271,_0x5759fb){const _0x1695a7=a218_0x450cb5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3a4fc5=_0x5759fb?.['stdio']??_0x1695a7(0x168),_0x23cd23=resolveNpmBin(_0x1695a7(0x165)),_0x307405=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x359271,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x15ac6f=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x359271,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1695a7(0x169)]('\x20');console[_0x1695a7(0x175)]('*\x20'+_0x15ac6f);const _0x1a74fc=spawnSync(_0x23cd23,_0x307405,{'cwd':_0x56087d,'stdio':_0x3a4fc5,'env':process.env,'shell':![]}),_0x583a89=_0x1a74fc[_0x1695a7(0x166)];if(_0x583a89===0x0)return{'ok':!![],'status':0x0};let _0x80f881=_0x1695a7(0x16f)+(_0x583a89??_0x1695a7(0x162));if(_0x3a4fc5===_0x1695a7(0x161)){const _0x1061c1=_0x1a74fc[_0x1695a7(0x172)]?_0x1a74fc[_0x1695a7(0x172)]['toString']()[_0x1695a7(0x178)]():'',_0x1585d7=_0x1a74fc['stdout']?_0x1a74fc[_0x1695a7(0x171)][_0x1695a7(0x17b)]()[_0x1695a7(0x178)]():'';if(_0x1061c1)_0x80f881=_0x1061c1;else{if(_0x1585d7)_0x80f881=_0x1585d7;}}return{'ok':![],'status':_0x583a89??null,'error':_0x80f881};}
1
+ const a231_0x5f5c1f=a231_0x5df4;(function(_0xaef544,_0x1e607d){const _0x598518=a231_0x5df4,_0x319482=_0xaef544();while(!![]){try{const _0x3e577b=-parseInt(_0x598518(0x92))/0x1*(-parseInt(_0x598518(0x98))/0x2)+-parseInt(_0x598518(0x96))/0x3+-parseInt(_0x598518(0x90))/0x4*(-parseInt(_0x598518(0x8a))/0x5)+-parseInt(_0x598518(0x8b))/0x6*(-parseInt(_0x598518(0x9b))/0x7)+parseInt(_0x598518(0xa4))/0x8*(-parseInt(_0x598518(0xa5))/0x9)+parseInt(_0x598518(0x93))/0xa+parseInt(_0x598518(0x8c))/0xb*(-parseInt(_0x598518(0x9c))/0xc);if(_0x3e577b===_0x1e607d)break;else _0x319482['push'](_0x319482['shift']());}catch(_0x4db97d){_0x319482['push'](_0x319482['shift']());}}}(a231_0x503c,0xb98e1));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';function a231_0x503c(){const _0x18bcce=['exit\x20','88vIoeEj','58068PRvWRW','join','skill','npx','stdio','15grEXFh','6KhvQUP','20713YpyYAx','push','toString','yes','118652LTUswt','log','493673nqwUYt','11564910KrvhUU','pipe','inherit','4297851NXJQRX','stdout','4vyXCZk','stderr','Lovrabet','3365831ygJqQX','2868JoyOgp','trim','lovrabet/rabetbase','unknown','lovrabet/lovrabet-skill','status','remove'];a231_0x503c=function(){return _0x18bcce;};return a231_0x503c();}export const NPX_SKILLS_SUBCOMMAND_ADD='add';function a231_0x5df4(_0x384e47,_0x39f465){_0x384e47=_0x384e47-0x8a;const _0x503c78=a231_0x503c();let _0x5df4fa=_0x503c78[_0x384e47];return _0x5df4fa;}export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a231_0x5f5c1f(0x9e);export const LEGACY_RABETBASE_SKILL_SOURCE=a231_0x5f5c1f(0xa0);export const DEFAULT_RABETBASE_SKILL_NAME=a231_0x5f5c1f(0x9a);export function buildNpxSkillsAddArgv(_0x134cbf){const _0x31874d=a231_0x5f5c1f,_0x5d8bd6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x134cbf&&_0x5d8bd6[_0x31874d(0x8d)](NPX_SKILLS_FLAG_SKILL,_0x134cbf),_0x5d8bd6;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a231_0x5f5c1f(0xa8),...buildNpxSkillsAddArgv()][a231_0x5f5c1f(0xa6)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a231_0x5f5c1f(0xa8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a231_0x5f5c1f(0xa6)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3c9774,_0x1fddc0){const _0x2baf74=a231_0x5f5c1f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x155b0e=_0x1fddc0?.[_0x2baf74(0xa9)]??'inherit',_0xfe8c36=resolveNpmBin(_0x2baf74(0xa8)),_0x1d8c0c=buildNpxSkillsAddArgv(_0x1fddc0?.[_0x2baf74(0xa7)]),_0x2e4000=['npx',..._0x1d8c0c][_0x2baf74(0xa6)]('\x20');console[_0x2baf74(0x91)]('*\x20'+_0x2e4000);const _0x31ba2f=spawnSync(_0xfe8c36,_0x1d8c0c,{'cwd':_0x3c9774,'stdio':_0x155b0e,'env':process.env,'shell':![]}),_0x3201a5=_0x31ba2f[_0x2baf74(0xa1)];if(_0x3201a5===0x0)return{'ok':!![],'status':0x0};let _0x439fba=_0x2baf74(0xa3)+(_0x3201a5??_0x2baf74(0x9f));if(_0x155b0e===_0x2baf74(0x94)){const _0x3f2952=_0x31ba2f['stderr']?_0x31ba2f['stderr'][_0x2baf74(0x8e)]()[_0x2baf74(0x9d)]():'',_0x56770a=_0x31ba2f[_0x2baf74(0x97)]?_0x31ba2f[_0x2baf74(0x97)]['toString']()['trim']():'';if(_0x3f2952)_0x439fba=_0x3f2952;else{if(_0x56770a)_0x439fba=_0x56770a;}}return{'ok':![],'status':_0x3201a5??null,'error':_0x439fba};}export function runNpxSkillsRemove(_0x56a98f,_0x18ee4a,_0x5d089d=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1155f5=a231_0x5f5c1f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1bd265=_0x18ee4a?.[_0x1155f5(0xa9)]??_0x1155f5(0x95),_0x18961f=resolveNpmBin(_0x1155f5(0xa8)),_0x639a86=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1155f5(0xa2),_0x5d089d,NPX_SKILLS_FLAG_SKILL,_0x18ee4a?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x18ee4a?.[_0x1155f5(0x8f)]?['-y']:[]],_0x12ea69=[_0x18961f,..._0x639a86]['join']('\x20');console[_0x1155f5(0x91)]('*\x20'+_0x12ea69);const _0x2cfb94=spawnSync(_0x18961f,_0x639a86,{'cwd':_0x56a98f,'stdio':_0x1bd265,'env':process.env,'shell':![]}),_0x26f992=_0x2cfb94['status'];if(_0x26f992===0x0)return{'ok':!![],'status':0x0};let _0x3a7c72=_0x1155f5(0xa3)+(_0x26f992??_0x1155f5(0x9f));if(_0x1bd265===_0x1155f5(0x94)){const _0x2657c9=_0x2cfb94[_0x1155f5(0x99)]?_0x2cfb94[_0x1155f5(0x99)][_0x1155f5(0x8e)]()[_0x1155f5(0x9d)]():'',_0x23935c=_0x2cfb94[_0x1155f5(0x97)]?_0x2cfb94['stdout'][_0x1155f5(0x8e)]()['trim']():'';if(_0x2657c9)_0x3a7c72=_0x2657c9;else{if(_0x23935c)_0x3a7c72=_0x23935c;}}return{'ok':![],'status':_0x26f992??null,'error':_0x3a7c72};}export function runNpxSkillsAddGlobal(_0x4bd142,_0x5482de,_0x5f3f30){const _0x5b4fed=a231_0x5f5c1f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a9668=_0x5f3f30?.[_0x5b4fed(0xa9)]??'inherit',_0x8858c6=resolveNpmBin(_0x5b4fed(0xa8)),_0x1187f8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5482de,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x470d78=[_0x5b4fed(0xa8),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5482de,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x5b4fed(0xa6)]('\x20');console[_0x5b4fed(0x91)]('*\x20'+_0x470d78);const _0x5b2df5=spawnSync(_0x8858c6,_0x1187f8,{'cwd':_0x4bd142,'stdio':_0x5a9668,'env':process.env,'shell':![]}),_0x755051=_0x5b2df5['status'];if(_0x755051===0x0)return{'ok':!![],'status':0x0};let _0x902dd1=_0x5b4fed(0xa3)+(_0x755051??_0x5b4fed(0x9f));if(_0x5a9668==='pipe'){const _0x442997=_0x5b2df5['stderr']?_0x5b2df5['stderr'][_0x5b4fed(0x8e)]()['trim']():'',_0x36c3ea=_0x5b2df5[_0x5b4fed(0x97)]?_0x5b2df5[_0x5b4fed(0x97)][_0x5b4fed(0x8e)]()[_0x5b4fed(0x9d)]():'';if(_0x442997)_0x902dd1=_0x442997;else{if(_0x36c3ea)_0x902dd1=_0x36c3ea;}}return{'ok':![],'status':_0x755051??null,'error':_0x902dd1};}
@@ -1 +1 @@
1
- (function(_0x1fe731,_0x48d59f){const _0x2dd657=a219_0x1a54,_0x3bd47b=_0x1fe731();while(!![]){try{const _0x49b647=-parseInt(_0x2dd657(0x159))/0x1+-parseInt(_0x2dd657(0x149))/0x2*(-parseInt(_0x2dd657(0x15a))/0x3)+parseInt(_0x2dd657(0x154))/0x4+-parseInt(_0x2dd657(0x14b))/0x5+parseInt(_0x2dd657(0x14c))/0x6*(parseInt(_0x2dd657(0x14d))/0x7)+parseInt(_0x2dd657(0x158))/0x8+parseInt(_0x2dd657(0x14a))/0x9;if(_0x49b647===_0x48d59f)break;else _0x3bd47b['push'](_0x3bd47b['shift']());}catch(_0x244f1a){_0x3bd47b['push'](_0x3bd47b['shift']());}}}(a219_0x2d7a,0x96314));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a219_0x2d7a(){const _0x1c543a=['[REDACTED]','160618MIvcxC','1238679XaCZVA','3982895JFVJCd','937002jHlvIu','7cDGpBt','message','flags','error','command','service','entries','3270752OREZPx','rabetbase.command','some','stringify','3304000PoSOtR','193028lMJWcu','3CfDfDE','durationMs'];a219_0x2d7a=function(){return _0x1c543a;};return a219_0x2d7a();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x23918b){const _0x4db4c3=a219_0x1a54;return SENSITIVE_PATTERNS[_0x4db4c3(0x156)](_0x29d6e0=>_0x29d6e0['test'](_0x23918b));}function a219_0x1a54(_0x46bb38,_0x32849d){_0x46bb38=_0x46bb38-0x148;const _0x2d7aa9=a219_0x2d7a();let _0x1a545f=_0x2d7aa9[_0x46bb38];return _0x1a545f;}function sanitizeFlags(_0x1624a9){const _0x34f89d=a219_0x1a54,_0x25f2c9={};for(const [_0x158d77,_0x45839a]of Object[_0x34f89d(0x153)](_0x1624a9)){isSensitiveKey(_0x158d77)?_0x25f2c9[_0x158d77]=_0x45839a!=null&&_0x45839a!==''?_0x34f89d(0x148):_0x45839a:_0x25f2c9[_0x158d77]=_0x45839a;}return _0x25f2c9;}export async function reportCommandTrace(_0x912ae4){const _0x877c7d=a219_0x1a54;try{const _0x1d2812=sanitizeFlags(_0x912ae4[_0x877c7d(0x14f)]);await sendCliTraceLog({'spanName':_0x877c7d(0x155),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x912ae4[_0x877c7d(0x152)],'command.name':_0x912ae4[_0x877c7d(0x151)],'command.flags':JSON[_0x877c7d(0x157)](_0x1d2812),..._0x912ae4['durationMs']!=null?{'command.duration_ms':_0x912ae4[_0x877c7d(0x15b)]}:{},..._0x912ae4[_0x877c7d(0x150)]?{'command.error':_0x912ae4[_0x877c7d(0x150)]instanceof Error?_0x912ae4[_0x877c7d(0x150)][_0x877c7d(0x14e)]:String(_0x912ae4[_0x877c7d(0x150)])}:{}}});}catch{}}
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 +1 @@
1
- (function(_0x5a7147,_0x4499f7){var _0x42bea5=a220_0x6808,_0x18e1fd=_0x5a7147();while(!![]){try{var _0x2d5494=-parseInt(_0x42bea5(0x10b))/0x1*(parseInt(_0x42bea5(0x114))/0x2)+parseInt(_0x42bea5(0x111))/0x3+-parseInt(_0x42bea5(0x113))/0x4*(parseInt(_0x42bea5(0x10f))/0x5)+-parseInt(_0x42bea5(0x10c))/0x6+-parseInt(_0x42bea5(0x115))/0x7+-parseInt(_0x42bea5(0x10e))/0x8+parseInt(_0x42bea5(0x112))/0x9;if(_0x2d5494===_0x4499f7)break;else _0x18e1fd['push'](_0x18e1fd['shift']());}catch(_0x2f9102){_0x18e1fd['push'](_0x18e1fd['shift']());}}}(a220_0x5a83,0xe9261));function a220_0x6808(_0x1c3dc2,_0x102377){_0x1c3dc2=_0x1c3dc2-0x10b;var _0x5a83d6=a220_0x5a83();var _0x6808ea=_0x5a83d6[_0x1c3dc2];return _0x6808ea;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x3aac53,_0x31dc7a){var _0x5ae08b=a220_0x6808;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x3aac53,..._0x31dc7a?.[_0x5ae08b(0x10d)]&&{'rabetbase.help.service':_0x31dc7a[_0x5ae08b(0x10d)]}}});}catch(_0x241e4d){console[_0x5ae08b(0x110)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x241e4d);}}function a220_0x5a83(){var _0x1530a5=['42199830lplUVC','569300QKYblb','14JNxTis','12132176fcqTLk','182092fjKUVg','10819746FbjBMu','service','5086808yiFGEi','5iGyePJ','error','5566158TUfDqJ'];a220_0x5a83=function(){return _0x1530a5;};return a220_0x5a83();}
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 +1 @@
1
- function a221_0x307f(_0x509f80,_0x5d32d5){_0x509f80=_0x509f80-0xe9;const _0x1c8817=a221_0x1c88();let _0x307f9a=_0x1c8817[_0x509f80];return _0x307f9a;}(function(_0x3e9591,_0x370e8a){const _0x30e41e=a221_0x307f,_0x2d0dbb=_0x3e9591();while(!![]){try{const _0x30008f=-parseInt(_0x30e41e(0xef))/0x1+-parseInt(_0x30e41e(0xe9))/0x2+-parseInt(_0x30e41e(0xed))/0x3*(-parseInt(_0x30e41e(0xf2))/0x4)+parseInt(_0x30e41e(0xf9))/0x5+parseInt(_0x30e41e(0xec))/0x6*(parseInt(_0x30e41e(0xf4))/0x7)+parseInt(_0x30e41e(0xea))/0x8+parseInt(_0x30e41e(0xf8))/0x9;if(_0x30008f===_0x370e8a)break;else _0x2d0dbb['push'](_0x2d0dbb['shift']());}catch(_0x18d41e){_0x2d0dbb['push'](_0x2d0dbb['shift']());}}}(a221_0x1c88,0x534a3));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a221_0x1c88(){const _0xd804e8=['user','tenant','production','1762425DyKpHr','671245UorBZI','daily','1087164hQKRRB','3104392OhxknZ','unknown','678WmYDae','606Epmivi','tenant_code','297537DxesUa','nickname','email','2476XiMWhT','username','21007mDTzYF'];a221_0x1c88=function(){return _0xd804e8;};return a221_0x1c88();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4cbb5e=a221_0x307f,_0x427591=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5e4cf0=_0x427591?.[_0x4cbb5e(0xf5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4cbb5e(0xeb)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4cbb5e(0xfa):_0x4cbb5e(0xf7))}),setUserContext({'id':_0x5e4cf0?.['id'],'username':_0x5e4cf0?.[_0x4cbb5e(0xf3)],'nickname':_0x5e4cf0?.[_0x4cbb5e(0xf0)],'email':_0x5e4cf0?.[_0x4cbb5e(0xf1)],'tenantCode':_0x5e4cf0?.[_0x4cbb5e(0xf6)][_0x4cbb5e(0xee)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x427591;}
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 +1 @@
1
- (function(_0x2b0016,_0x37f363){const _0x8f1ea1=a222_0x1802,_0x437b2a=_0x2b0016();while(!![]){try{const _0x451e45=parseInt(_0x8f1ea1(0xf6))/0x1+-parseInt(_0x8f1ea1(0xfe))/0x2+parseInt(_0x8f1ea1(0xf5))/0x3+-parseInt(_0x8f1ea1(0xf7))/0x4*(-parseInt(_0x8f1ea1(0xfa))/0x5)+parseInt(_0x8f1ea1(0xf3))/0x6*(parseInt(_0x8f1ea1(0xfc))/0x7)+-parseInt(_0x8f1ea1(0xfd))/0x8*(parseInt(_0x8f1ea1(0xf4))/0x9)+parseInt(_0x8f1ea1(0x100))/0xa;if(_0x451e45===_0x37f363)break;else _0x437b2a['push'](_0x437b2a['shift']());}catch(_0x2da58b){_0x437b2a['push'](_0x437b2a['shift']());}}}(a222_0x12a5,0x60373));import{shutdownTraces}from'@lovrabet/otel-logger';function a222_0x12a5(){const _0xe65c2=['1284738QRxeMr','beforeExit','221990zdjNtb','42uDtSSq','18Hqrqbg','1332885KmUHVN','689949pZbPYW','12TgXpfO','exit','once','607055WEAtWb','SIGTERM','137284iYtSZf','2485968biGErx'];a222_0x12a5=function(){return _0xe65c2;};return a222_0x12a5();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a222_0x1802(_0x16a891,_0x2f5640){_0x16a891=_0x16a891-0xf3;const _0x12a5d9=a222_0x12a5();let _0x1802e9=_0x12a5d9[_0x16a891];return _0x1802e9;}export function registerOtelShutdownOnExit(){const _0x55caf3=a222_0x1802;process[_0x55caf3(0xf9)](_0x55caf3(0xff),()=>{void flushOtelNodeIfUsed();});const _0x217256=()=>{const _0x344bc0=_0x55caf3;void flushOtelNodeIfUsed()['then'](()=>process[_0x344bc0(0xf8)](0x0));};process['once']('SIGINT',_0x217256),process['once'](_0x55caf3(0xfb),_0x217256);}export async function exitWithOtelShutdown(_0x17eabe){await flushOtelNodeIfUsed(),process['exit'](_0x17eabe);}
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 +1 @@
1
- const a223_0x527fb9=a223_0x3517;(function(_0x7aab48,_0x50cd8e){const _0x3a5d87=a223_0x3517,_0x2b877c=_0x7aab48();while(!![]){try{const _0x21d528=-parseInt(_0x3a5d87(0xef))/0x1*(parseInt(_0x3a5d87(0xe6))/0x2)+-parseInt(_0x3a5d87(0xee))/0x3+-parseInt(_0x3a5d87(0xf3))/0x4+parseInt(_0x3a5d87(0xf1))/0x5+parseInt(_0x3a5d87(0xf0))/0x6+parseInt(_0x3a5d87(0xec))/0x7+parseInt(_0x3a5d87(0xf2))/0x8;if(_0x21d528===_0x50cd8e)break;else _0x2b877c['push'](_0x2b877c['shift']());}catch(_0x26be3f){_0x2b877c['push'](_0x2b877c['shift']());}}}(a223_0x4437,0x48129));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a223_0x4437(){const _0x12b87e=['678408lYVoyw','3xcgIOx','85350vSdeeJ','2949835vBBmWE','1145504SxfwKz','1677152wuFWbE','144626awXfSH','version','traceparent','manual','logData','rabetbase-cli','2871344rWxtSo','spanName'];a223_0x4437=function(){return _0x12b87e;};return a223_0x4437();}import{getCliVersion}from'../utils/version.js';function a223_0x3517(_0xd4aff4,_0x358349){_0xd4aff4=_0xd4aff4-0xe6;const _0x4437a5=a223_0x4437();let _0x3517b4=_0x4437a5[_0xd4aff4];return _0x3517b4;}const DEFAULT_TRACE_NAME=a223_0x527fb9(0xeb);export async function sendCliTraceLog(_0x238836){const _0x30ff63=a223_0x527fb9;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x238836['traceName']??DEFAULT_TRACE_NAME,'version':_0x238836[_0x30ff63(0xe7)]??getCliVersion(),'spanName':_0x238836[_0x30ff63(0xed)],'eventType':_0x30ff63(0xe9),'logData':_0x238836[_0x30ff63(0xea)],..._0x238836[_0x30ff63(0xe8)]&&{'traceparent':_0x238836[_0x30ff63(0xe8)]}});}
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 +1 @@
1
- const a224_0x4f9238=a224_0x4e89;function a224_0x4e89(_0x66208,_0x55653e){_0x66208=_0x66208-0x8c;const _0x5f1720=a224_0x5f17();let _0x4e8966=_0x5f1720[_0x66208];return _0x4e8966;}(function(_0x53d978,_0x3664a7){const _0x2a94ac=a224_0x4e89,_0x1eef79=_0x53d978();while(!![]){try{const _0x5f3be8=-parseInt(_0x2a94ac(0x90))/0x1+parseInt(_0x2a94ac(0x96))/0x2*(parseInt(_0x2a94ac(0x98))/0x3)+parseInt(_0x2a94ac(0x9a))/0x4*(parseInt(_0x2a94ac(0x95))/0x5)+parseInt(_0x2a94ac(0x8c))/0x6+parseInt(_0x2a94ac(0x8d))/0x7+-parseInt(_0x2a94ac(0x8f))/0x8+-parseInt(_0x2a94ac(0x91))/0x9;if(_0x5f3be8===_0x3664a7)break;else _0x1eef79['push'](_0x1eef79['shift']());}catch(_0x2cb46e){_0x1eef79['push'](_0x1eef79['shift']());}}}(a224_0x5f17,0xe1a23));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a224_0x4f9238(0x8e);export const PLATFORM_ISSUE_SPAN_NAME=a224_0x4f9238(0x97);function a224_0x5f17(){const _0x30d579=['description','title','5391174hwUKfC','9373413JKTAhw','platform-issue-log-collect','5861272LORGlR','22735ovMTRl','15573654uDfVoT','redactionCount','sanitize','join','599365oDOzEP','69086jUBWMC','issue.log.collect','81mPqYsH','truncated','8nWwmAz'];a224_0x5f17=function(){return _0x30d579;};return a224_0x5f17();}export async function sendPlatformIssueCollectLog(_0x32126a){const _0x170c8b=a224_0x4f9238;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x32126a[_0x170c8b(0x9c)],'issue.description':_0x32126a[_0x170c8b(0x9b)],..._0x32126a[_0x170c8b(0x93)]?{'issue.description_original_bytes':_0x32126a[_0x170c8b(0x93)]['originalBytes'],'issue.description_truncated':_0x32126a[_0x170c8b(0x93)][_0x170c8b(0x99)],'issue.description_redactions':_0x32126a[_0x170c8b(0x93)][_0x170c8b(0x92)],'issue.description_redaction_kinds':_0x32126a['sanitize']['redactionKinds'][_0x170c8b(0x94)](',')}:{}}});}
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 +1 @@
1
- const a226_0x5111c4=a226_0x1d19;function a226_0x1d19(_0x175849,_0x56b30d){_0x175849=_0x175849-0xc3;const _0x2a0ad1=a226_0x2a0a();let _0x1d19e0=_0x2a0ad1[_0x175849];return _0x1d19e0;}(function(_0x5c01d7,_0x203680){const _0x4a4b23=a226_0x1d19,_0x2ab527=_0x5c01d7();while(!![]){try{const _0x3b0dc1=-parseInt(_0x4a4b23(0xcd))/0x1*(parseInt(_0x4a4b23(0xed))/0x2)+parseInt(_0x4a4b23(0xdd))/0x3+parseInt(_0x4a4b23(0xf1))/0x4+-parseInt(_0x4a4b23(0xeb))/0x5*(-parseInt(_0x4a4b23(0xf3))/0x6)+-parseInt(_0x4a4b23(0xc7))/0x7*(parseInt(_0x4a4b23(0xe2))/0x8)+-parseInt(_0x4a4b23(0xe9))/0x9+-parseInt(_0x4a4b23(0xc4))/0xa*(-parseInt(_0x4a4b23(0xf4))/0xb);if(_0x3b0dc1===_0x203680)break;else _0x2ab527['push'](_0x2ab527['shift']());}catch(_0x4a252d){_0x2ab527['push'](_0x2ab527['shift']());}}}(a226_0x2a0a,0xa7f94));function a226_0x2a0a(){const _0x122415=['307992OyCIoU','319rkvVct','.codex/skills/lovrabet/SKILL.md','.opencode','Cline','SKILL.md.tpl','.codebuddy','222730ohlYjW','claude','trae','217nfqGvF','.windsurf','.agent/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','codebuddy','5081fCCqtj','.opencode/skills/lovrabet/SKILL.md','.cline','opencode','Codex','qoder','Cursor','.claude/skills/lovrabet/SKILL.md','Codex\x20IDE','其他\x20(通用模板)','cline','Trae','OpenCode\x20IDE','Qoder\x20IDE','Claude\x20Code','.trae/skills/lovrabet/SKILL.md','2171235GONBRK','.codex','antigravity','file','Qoder','341008vOyCSD','.windsurf/workflows/rabetbase.md','agent','cursor','.qoder/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.agent','12321216hDVsrJ','.qoder/rules/rabetbase.md','75cOsQFl','codex','2LnfhDi','Antigravity','OpenCode','windsurf','4975556BPfaRW','Antigravity\x20IDE'];a226_0x2a0a=function(){return _0x122415;};return a226_0x2a0a();}export const CORE_IDE_CONFIGS={'cursor':{'name':a226_0x5111c4(0xd3),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a226_0x5111c4(0xca),'template':a226_0x5111c4(0xf8)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a226_0x5111c4(0xc8)],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xe3),'template':'SKILL.md.tpl'}]},'claude':{'name':a226_0x5111c4(0xdb),'description':a226_0x5111c4(0xdb),'folders':['.claude'],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xd4),'template':a226_0x5111c4(0xf8)}]},'cline':{'name':a226_0x5111c4(0xf7),'description':'Cline\x20IDE','folders':[a226_0x5111c4(0xcf)],'files':[{'type':a226_0x5111c4(0xe0),'path':'.cline/skills/lovrabet/SKILL.md','template':a226_0x5111c4(0xf8)}]},'codex':{'name':a226_0x5111c4(0xd1),'description':a226_0x5111c4(0xd5),'folders':[a226_0x5111c4(0xde)],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xf5),'template':'SKILL.md.tpl'}]},'opencode':{'name':a226_0x5111c4(0xef),'description':a226_0x5111c4(0xd9),'folders':[a226_0x5111c4(0xf6)],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xce),'template':'SKILL.md.tpl'}]},'qoder':{'name':a226_0x5111c4(0xe1),'description':a226_0x5111c4(0xda),'folders':['.qoder'],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xea),'template':a226_0x5111c4(0xf8)},{'type':'file','path':a226_0x5111c4(0xe6),'template':a226_0x5111c4(0xf8)}]},'codebuddy':{'name':'CodeBuddy','description':a226_0x5111c4(0xe7),'folders':[a226_0x5111c4(0xc3)],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xcb),'template':a226_0x5111c4(0xf8)}]},'trae':{'name':a226_0x5111c4(0xd8),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a226_0x5111c4(0xdc),'template':a226_0x5111c4(0xf8)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a226_0x5111c4(0xd6),'description':'通用模板\x20-\x20兜底方案','folders':[a226_0x5111c4(0xe8)],'files':[{'type':'file','path':a226_0x5111c4(0xc9),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a226_0x5111c4(0xee),'description':a226_0x5111c4(0xf2),'folders':['.agent'],'files':[{'type':a226_0x5111c4(0xe0),'path':a226_0x5111c4(0xc9),'template':a226_0x5111c4(0xf8)}]}};export const CORE_IDE_LIST=[a226_0x5111c4(0xc5),'cline',a226_0x5111c4(0xcc),a226_0x5111c4(0xec),'cursor','opencode',a226_0x5111c4(0xd2),'trae',a226_0x5111c4(0xf0)];export const IDE_LIST=[a226_0x5111c4(0xdf),a226_0x5111c4(0xc5),a226_0x5111c4(0xd7),'codebuddy',a226_0x5111c4(0xec),a226_0x5111c4(0xe5),a226_0x5111c4(0xd0),a226_0x5111c4(0xd2),a226_0x5111c4(0xc6),a226_0x5111c4(0xf0),a226_0x5111c4(0xe4)];export const ALL_CORE_IDES=[a226_0x5111c4(0xe5),a226_0x5111c4(0xf0),a226_0x5111c4(0xc5),a226_0x5111c4(0xd7),a226_0x5111c4(0xec),a226_0x5111c4(0xd0),'qoder',a226_0x5111c4(0xcc),'trae'];
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 +1 @@
1
- (function(_0x56c365,_0x737493){const _0x31460d=a227_0x4b10,_0xd17d03=_0x56c365();while(!![]){try{const _0x81144e=parseInt(_0x31460d(0x150))/0x1+-parseInt(_0x31460d(0x14c))/0x2*(parseInt(_0x31460d(0x152))/0x3)+-parseInt(_0x31460d(0x149))/0x4*(parseInt(_0x31460d(0x14e))/0x5)+-parseInt(_0x31460d(0x14a))/0x6+parseInt(_0x31460d(0x14b))/0x7+parseInt(_0x31460d(0x14d))/0x8+parseInt(_0x31460d(0x14f))/0x9*(parseInt(_0x31460d(0x151))/0xa);if(_0x81144e===_0x737493)break;else _0xd17d03['push'](_0xd17d03['shift']());}catch(_0x1bf36b){_0xd17d03['push'](_0xd17d03['shift']());}}}(a227_0x6652,0xe467d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a227_0x4b10(_0x2eb13f,_0x3bc3b1){_0x2eb13f=_0x2eb13f-0x149;const _0x6652fb=a227_0x6652();let _0x4b1072=_0x6652fb[_0x2eb13f];return _0x4b1072;}function a227_0x6652(){const _0x40217a=['12018377smqUfG','15886Dkgmat','2204240dycFPR','345HCsQkd','117BrEiML','726256rcCaMD','265030MzejTO','69mtScgU','12020jhcEgm','10425918reCOcK'];a227_0x6652=function(){return _0x40217a;};return a227_0x6652();}
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 +1 @@
1
- (function(_0x39dd7f,_0xc69d5b){const _0x408592=a228_0x3902,_0x187fdb=_0x39dd7f();while(!![]){try{const _0xafa8e3=parseInt(_0x408592(0x133))/0x1+parseInt(_0x408592(0x140))/0x2*(parseInt(_0x408592(0x13b))/0x3)+-parseInt(_0x408592(0x132))/0x4+parseInt(_0x408592(0x135))/0x5*(-parseInt(_0x408592(0x13c))/0x6)+-parseInt(_0x408592(0x134))/0x7*(parseInt(_0x408592(0x13d))/0x8)+parseInt(_0x408592(0x139))/0x9*(parseInt(_0x408592(0x13f))/0xa)+parseInt(_0x408592(0x138))/0xb;if(_0xafa8e3===_0xc69d5b)break;else _0x187fdb['push'](_0x187fdb['shift']());}catch(_0x64e4a7){_0x187fdb['push'](_0x187fdb['shift']());}}}(a228_0x44ce,0xe7f5b));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x166152=a228_0x3902,_0x4d21ba=getTemplateBaseUrl(),_0x3bb023=[_0x4d21ba+_0x166152(0x13a),_0x4d21ba+_0x166152(0x130)];for(const _0x48f89e of _0x3bb023){try{const _0x44118e=await fetch(_0x48f89e,{'headers':{'Accept':_0x166152(0x137)}});if(!_0x44118e['ok'])continue;const _0x636639=await _0x44118e[_0x166152(0x13e)]();if(!_0x636639['cli']?.[_0x166152(0x131)]||!_0x636639[_0x166152(0x136)]?.['node']?.[_0x166152(0x131)])continue;return _0x636639;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a228_0x44ce(){const _0x37cbd4=['551268yTtmZf','/config.json','1769574MVkgIx','1981758LTlvvf','16sNanLf','json','160PYZOJG','4mVVYzB','/config/index.json','stableVersion','5152548boVUiK','815192cxSVeW','997157zXbyFo','15FLrCvp','sdk','application/json','5929935GfbkWH'];a228_0x44ce=function(){return _0x37cbd4;};return a228_0x44ce();}export async function getCdnConfig(){const _0x51189c=Date['now']();if(hasCachedConfig){const _0x33f62e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x51189c-cacheTime<_0x33f62e)return cachedConfig;}const _0x3101a4=await fetchCdnConfig();return cachedConfig=_0x3101a4,cacheTime=_0x51189c,hasCachedConfig=!![],_0x3101a4;}function a228_0x3902(_0x58a8f2,_0x2d76bc){_0x58a8f2=_0x58a8f2-0x130;const _0x44ce23=a228_0x44ce();let _0x3902f0=_0x44ce23[_0x58a8f2];return _0x3902f0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
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 +1 @@
1
- const a229_0x5f2993=a229_0x2ead;function a229_0x4879(){const _0x317dd2=['1743HaxIKn','node','10410KzRlZb','package.json','\x1b[0m','202tXMDfM','\x20\x20\x20Current\x20version:\x20','70NLMkYh','existsSync','8NSxcAy','\x20\x20\x20Stable\x20version:\x20','packageName','1.2.0','stableVersion','@lovrabet/sdk','11071xgIfKC','3154014euoqIZ','410000iwtghf','12JFlXHE','dependencies','57780aWcHzo','test','15WupOib','\x1b[1m','log','needsUpgrade','coerce','sdk','version','devDependencies','parse','some','\x20\x20\x20Upgrade\x20command:\x20','3890068NlHEiz','utf-8','utf8','node_modules','174339inJlul','readFileSync'];a229_0x4879=function(){return _0x317dd2;};return a229_0x4879();}(function(_0x1a91e5,_0x1dc661){const _0xddc223=a229_0x2ead,_0x4de4d5=_0x1a91e5();while(!![]){try{const _0x3e1d88=-parseInt(_0xddc223(0x1f7))/0x1*(-parseInt(_0xddc223(0x1ed))/0x2)+-parseInt(_0xddc223(0x1fe))/0x3*(-parseInt(_0xddc223(0x1f9))/0x4)+parseInt(_0xddc223(0x1fc))/0x5+parseInt(_0xddc223(0x1ea))/0x6*(-parseInt(_0xddc223(0x1e8))/0x7)+parseInt(_0xddc223(0x1f1))/0x8*(-parseInt(_0xddc223(0x1f8))/0x9)+parseInt(_0xddc223(0x1ef))/0xa*(parseInt(_0xddc223(0x1e6))/0xb)+-parseInt(_0xddc223(0x1fa))/0xc*(parseInt(_0xddc223(0x1e2))/0xd);if(_0x3e1d88===_0x1dc661)break;else _0x4de4d5['push'](_0x4de4d5['shift']());}catch(_0x597f3a){_0x4de4d5['push'](_0x4de4d5['shift']());}}}(a229_0x4879,0xa3ef1));function a229_0x2ead(_0x4cfcf2,_0x59a7f7){_0x4cfcf2=_0x4cfcf2-0x1de;const _0x48797f=a229_0x4879();let _0x2eadec=_0x48797f[_0x4cfcf2];return _0x2eadec;}import a229_0x1171d8 from'node:fs';import a229_0x24cf72 from'node:path';import a229_0x5e6c73 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a229_0x5f2993(0x1f4);function isNonNumericVersion(_0x346cd0){const _0x326879=a229_0x5f2993,_0x38172e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x38172e[_0x326879(0x1e0)](_0x2d11c3=>_0x2d11c3[_0x326879(0x1fd)](_0x346cd0));}function getInstalledVersion(_0x853dfa,_0x442766){const _0x51de92=a229_0x5f2993;try{const _0xc17383=a229_0x24cf72['join'](_0x853dfa,_0x51de92(0x1e5),_0x442766,_0x51de92(0x1eb));if(a229_0x1171d8[_0x51de92(0x1f0)](_0xc17383)){const _0x17e072=JSON['parse'](a229_0x1171d8[_0x51de92(0x1e7)](_0xc17383,_0x51de92(0x1e3)));return _0x17e072[_0x51de92(0x204)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x192dd2=a229_0x5f2993;try{const _0x4f0804=await getCdnConfig();return _0x4f0804?.[_0x192dd2(0x203)]?.[_0x192dd2(0x1e9)]?.[_0x192dd2(0x1f5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x49576c=a229_0x5f2993;try{const _0x150ae3=await getCdnConfig();return _0x150ae3?.[_0x49576c(0x203)]?.['node']?.[_0x49576c(0x1f3)]||_0x49576c(0x1f6);}catch{return _0x49576c(0x1f6);}}export async function checkSdkVersion(_0x57c929){const _0x13d253=a229_0x5f2993,_0x32483c=a229_0x24cf72['join'](_0x57c929,_0x13d253(0x1eb)),[_0xc019c,_0x497122]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x91800b=_0xc019c||FALLBACK_MIN_SDK_VERSION;if(!a229_0x1171d8[_0x13d253(0x1f0)](_0x32483c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};try{const _0x5b722c=JSON[_0x13d253(0x1df)](a229_0x1171d8['readFileSync'](_0x32483c,_0x13d253(0x1e4))),_0x216eed=_0x5b722c[_0x13d253(0x1fb)]||{},_0x21779c=_0x5b722c[_0x13d253(0x1de)]||{},_0x505173=_0x216eed[_0x497122]||_0x21779c[_0x497122];if(!_0x505173)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};let _0x14a24d=getInstalledVersion(_0x57c929,_0x497122);!_0x14a24d&&(_0x14a24d=_0x505173);if(isNonNumericVersion(_0x505173))return{'installed':!![],'version':_0x14a24d,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};const _0x1a74d=a229_0x5e6c73['coerce'](_0x14a24d),_0x5f1076=a229_0x5e6c73[_0x13d253(0x202)](_0x91800b),_0x9a056a=_0x1a74d&&_0x5f1076?a229_0x5e6c73['lt'](_0x1a74d,_0x5f1076):![];return{'installed':!![],'version':_0x14a24d,'needsUpgrade':_0x9a056a,'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};}}export function checkSdkVersionSync(_0x3b6bbb){const _0x42ebca=a229_0x5f2993,_0x1444e7=a229_0x24cf72['join'](_0x3b6bbb,_0x42ebca(0x1eb)),_0x29340e='@lovrabet/sdk';if(!a229_0x1171d8['existsSync'](_0x1444e7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};try{const _0x41414b=JSON[_0x42ebca(0x1df)](a229_0x1171d8[_0x42ebca(0x1e7)](_0x1444e7,_0x42ebca(0x1e4))),_0x546eec=_0x41414b['dependencies']||{},_0x3e76fd=_0x41414b['devDependencies']||{},_0x4a7404=_0x546eec[_0x29340e]||_0x3e76fd[_0x29340e];if(!_0x4a7404)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};let _0x3cf3b1=getInstalledVersion(_0x3b6bbb,_0x29340e);!_0x3cf3b1&&(_0x3cf3b1=_0x4a7404);if(isNonNumericVersion(_0x4a7404))return{'installed':!![],'version':_0x3cf3b1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};const _0x5dcd6f=a229_0x5e6c73[_0x42ebca(0x202)](_0x3cf3b1),_0x34cd70=_0x5dcd6f?a229_0x5e6c73['lt'](_0x5dcd6f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3cf3b1,'needsUpgrade':_0x34cd70,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x462986){const _0x28f649=a229_0x5f2993;if(!_0x462986[_0x28f649(0x201)])return;const _0x42f650='\x1b[33m',_0x1325c7=_0x28f649(0x1ec),_0x2d0128=_0x28f649(0x1ff),_0x4b0e88=_0x462986[_0x28f649(0x1f3)]||_0x28f649(0x1f6),_0x46238b=_0x462986[_0x28f649(0x1f5)]||_0x462986['minVersion'],_0x2c1f08='npm\x20install\x20'+_0x4b0e88+'@'+(_0x46238b||'latest');console['log'](),console[_0x28f649(0x200)](''+_0x42f650+_0x2d0128+'↪\x20SDK\x20update\x20available'+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1ee)+_0x4b0e88+'@'+_0x462986[_0x28f649(0x204)]+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1f2)+_0x46238b+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1e1)+_0x2c1f08+_0x1325c7),console['log']();}
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 +1 @@
1
- function a230_0x4bc7(_0x5d7423,_0xf591ab){_0x5d7423=_0x5d7423-0x1bc;const _0x34e477=a230_0x34e4();let _0x4bc7a1=_0x34e477[_0x5d7423];return _0x4bc7a1;}(function(_0x30d9e7,_0xff5db4){const _0x59b9b0=a230_0x4bc7,_0x31f810=_0x30d9e7();while(!![]){try{const _0x4a96a7=parseInt(_0x59b9b0(0x1cf))/0x1+parseInt(_0x59b9b0(0x1cd))/0x2+-parseInt(_0x59b9b0(0x1d5))/0x3+-parseInt(_0x59b9b0(0x1d0))/0x4+parseInt(_0x59b9b0(0x1c5))/0x5+parseInt(_0x59b9b0(0x1d4))/0x6+-parseInt(_0x59b9b0(0x1d8))/0x7*(parseInt(_0x59b9b0(0x1c3))/0x8);if(_0x4a96a7===_0xff5db4)break;else _0x31f810['push'](_0x31f810['shift']());}catch(_0x1f58e8){_0x31f810['push'](_0x31f810['shift']());}}}(a230_0x34e4,0x728d2));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a230_0xe225fb from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a230_0x34e4(){const _0x5ed393=['↪\x20New\x20version\x20available','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','utf-8','currentVersion','version','993400cDtNgd','package.json','478578JKGRwi','1277752RsQNfY','\x20\x20\x20Recommended\x20stable:\x20','join','minimumVersion','2617098wUetOY','1532523njeIlQ','belowMinimum','upgradeMessage','21XdMUxj','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Current\x20version:\x20','log','parse','../..','\x1b[31m','1.0.0','\x20\x20\x20Stable\x20version:\x20','coerce','\x20\x20\x20','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','minimumVersionMessage','filter','validation','needsUpgrade','\x1b[1m','1725208gtYCdf','\x20\x20\x20Current\x20CLI\x20version:\x20','2674865CpbiIk'];a230_0x34e4=function(){return _0x5ed393;};return a230_0x34e4();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x34c6b2){const _0x32734c=a230_0x4bc7,_0x47100e=_0x34c6b2['stableVersion']||'latest';return _0x32734c(0x1c8)+NPM_PACKAGE_NAME+'@'+_0x47100e;}function getCurrentCliVersion(){const _0x3ffbd9=a230_0x4bc7;try{const _0x4d563e=fileURLToPath(import.meta.url),_0x5cc128=resolve(dirname(_0x4d563e),_0x3ffbd9(0x1de)),_0x314adc=resolve(_0x5cc128,_0x3ffbd9(0x1ce)),_0x72d8b1=JSON[_0x3ffbd9(0x1dd)](readFileSync(_0x314adc,_0x3ffbd9(0x1ca)));return _0x72d8b1[_0x3ffbd9(0x1cc)]||_0x3ffbd9(0x1e0);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1753e3=a230_0x4bc7,_0x39ac5e=getCurrentCliVersion(),_0x558620=await getCliVersionPolicy(),_0x2d0c3d=_0x558620?.['stableVersion']||null,_0x5612de=_0x558620?.[_0x1753e3(0x1d3)]||null;let _0x537c45=![],_0x33b70a=![];const _0x1615c5=a230_0xe225fb['coerce'](_0x39ac5e);if(_0x1615c5&&_0x2d0c3d)try{const _0x17f772=a230_0xe225fb['coerce'](_0x2d0c3d);if(_0x17f772)_0x537c45=a230_0xe225fb['lt'](_0x1615c5,_0x17f772);}catch{}if(_0x1615c5&&_0x5612de)try{const _0xb3a2f8=a230_0xe225fb[_0x1753e3(0x1e2)](_0x5612de);if(_0xb3a2f8)_0x33b70a=a230_0xe225fb['lt'](_0x1615c5,_0xb3a2f8);}catch{}return _0x33b70a&&(_0x537c45=!![]),{'currentVersion':_0x39ac5e,'stableVersion':_0x2d0c3d,'minimumVersion':_0x5612de,'needsUpgrade':_0x537c45,'belowMinimum':_0x33b70a,'isPreRelease':![],'upgradeMessage':_0x558620?.[_0x1753e3(0x1d7)],'minimumVersionMessage':_0x558620?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x200d4d){const _0x4fd127=a230_0x4bc7;if(!_0x200d4d[_0x4fd127(0x1c1)]&&!_0x200d4d[_0x4fd127(0x1d6)])return;const _0x443cd1=_0x4fd127(0x1df),_0x1fda85=_0x4fd127(0x1bd),_0x48e388='\x1b[0m',_0x1d5850=_0x4fd127(0x1c2),_0x3191cd=getCliUpgradeCommand(_0x200d4d);console['log'](),_0x200d4d[_0x4fd127(0x1d6)]?(console['log'](''+_0x443cd1+_0x1d5850+_0x4fd127(0x1c9)+_0x48e388),console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1c4)+_0x200d4d[_0x4fd127(0x1cb)]+_0x48e388),_0x200d4d[_0x4fd127(0x1d3)]&&console[_0x4fd127(0x1dc)](_0x443cd1+'\x20\x20\x20Minimum\x20supported:\x20'+_0x200d4d['minimumVersion']+_0x48e388),_0x200d4d[_0x4fd127(0x1d9)]&&_0x200d4d[_0x4fd127(0x1d9)]!==_0x200d4d[_0x4fd127(0x1d3)]&&console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1d1)+_0x200d4d[_0x4fd127(0x1d9)]+_0x48e388),_0x200d4d[_0x4fd127(0x1be)]&&console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1e3)+_0x200d4d[_0x4fd127(0x1be)]+_0x48e388),console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1bc)+_0x3191cd+_0x48e388)):(console[_0x4fd127(0x1dc)](''+_0x1fda85+_0x1d5850+_0x4fd127(0x1c6)+_0x48e388),console[_0x4fd127(0x1dc)](_0x1fda85+_0x4fd127(0x1c4)+_0x200d4d[_0x4fd127(0x1cb)]+_0x48e388),console['log'](_0x1fda85+_0x4fd127(0x1e1)+_0x200d4d[_0x4fd127(0x1d9)]+_0x48e388),_0x200d4d[_0x4fd127(0x1d7)]&&console[_0x4fd127(0x1dc)](_0x1fda85+_0x4fd127(0x1e3)+_0x200d4d['upgradeMessage']+_0x48e388),console[_0x4fd127(0x1dc)](_0x1fda85+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3191cd+_0x48e388)),console['log']();}export function assertCliVersionSupported(_0x5d96ba){const _0xaa4038=a230_0x4bc7;if(!_0x5d96ba['belowMinimum'])return;const _0x2fd7f1=[_0x5d96ba[_0xaa4038(0x1be)],_0xaa4038(0x1db)+_0x5d96ba['currentVersion'],_0x5d96ba['minimumVersion']?_0xaa4038(0x1c7)+_0x5d96ba[_0xaa4038(0x1d3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x5d96ba)][_0xaa4038(0x1bf)](Boolean)[_0xaa4038(0x1d2)]('\x0a');throw CliErrors[_0xaa4038(0x1c0)](_0xaa4038(0x1da),_0x2fd7f1);}
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 +1 @@
1
- (function(_0x39c5b1,_0x42d2cc){const _0x34b14e=a231_0x6f74,_0x468078=_0x39c5b1();while(!![]){try{const _0x3cda83=parseInt(_0x34b14e(0x1cf))/0x1+parseInt(_0x34b14e(0x1c1))/0x2+-parseInt(_0x34b14e(0x1c8))/0x3*(-parseInt(_0x34b14e(0x1c3))/0x4)+-parseInt(_0x34b14e(0x1ca))/0x5+-parseInt(_0x34b14e(0x1ce))/0x6+-parseInt(_0x34b14e(0x1cc))/0x7+parseInt(_0x34b14e(0x1c2))/0x8*(parseInt(_0x34b14e(0x1c5))/0x9);if(_0x3cda83===_0x42d2cc)break;else _0x468078['push'](_0x468078['shift']());}catch(_0x20a9ce){_0x468078['push'](_0x468078['shift']());}}}(a231_0x37f7,0xf1aaf));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(_0x59711b){const _0x586beb=a231_0x6f74;return typeof _0x59711b===_0x586beb(0x1c0)&&_0x59711b[_0x586beb(0x1bf)]()['length']>0x0?_0x59711b['trim']():null;}function normalizeCliVersionPolicy(_0x2ad2d2){const _0x443de8=a231_0x6f74;if(!_0x2ad2d2||typeof _0x2ad2d2!==_0x443de8(0x1cd))return null;const _0x39e865=_0x2ad2d2,_0x3b4675=_0x39e865[_0x443de8(0x1be)]&&typeof _0x39e865['cli']==='object'?_0x39e865[_0x443de8(0x1be)]:_0x39e865,_0x3dd300=pickString(_0x3b4675[_0x443de8(0x1c7)])||pickString(_0x3b4675[_0x443de8(0x1cb)])||pickString(_0x3b4675[_0x443de8(0x1d1)]),_0x596a1f=pickString(_0x3b4675[_0x443de8(0x1c9)])||pickString(_0x3b4675[_0x443de8(0x1c4)]);if(!_0x3dd300&&!_0x596a1f)return null;return{'stableVersion':_0x3dd300,'minimumVersion':_0x596a1f,'upgradeMessage':pickString(_0x3b4675['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3b4675['minimumVersionMessage'])||undefined};}function a231_0x6f74(_0x302ca3,_0xe170f3){_0x302ca3=_0x302ca3-0x1be;const _0x37f7da=a231_0x37f7();let _0x6f749c=_0x37f7da[_0x302ca3];return _0x6f749c;}function a231_0x37f7(){const _0x519cc1=['80288CuEyvN','2360248cNHZsv','minVersion','1602ANdOYf','abort','stableVersion','6GsyopN','minimumVersion','9227945bBRuok','latestVersion','13238568jUAtJO','object','287562lHrylS','1498297uLUguc','signal','recommendedVersion','cli','trim','string','619564HMByUX'];a231_0x37f7=function(){return _0x519cc1;};return a231_0x37f7();}export async function fetchCliVersionPolicy(){const _0x9991aa=a231_0x6f74,_0x365305=new AbortController(),_0xc53a9d=setTimeout(()=>_0x365305[_0x9991aa(0x1c6)](),FETCH_TIMEOUT_MS);try{const _0x305971=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x365305[_0x9991aa(0x1d0)]});if(!_0x305971['ok'])return null;const _0x511345=await _0x305971['json']();return normalizeCliVersionPolicy(_0x511345);}catch{return null;}finally{clearTimeout(_0xc53a9d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x44f01e=Date['now']();if(hasCachedPolicy){const _0x5aa402=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x44f01e-cacheTime<_0x5aa402)return cachedPolicy;}const _0x3015be=await fetchCliVersionPolicy();return cachedPolicy=_0x3015be,cacheTime=_0x44f01e,hasCachedPolicy=!![],_0x3015be;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
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 +1 @@
1
- (function(_0x5e31cf,_0x3b6a99){const _0x38f685=a232_0x4c4b,_0x88bbbb=_0x5e31cf();while(!![]){try{const _0x35985c=-parseInt(_0x38f685(0xbb))/0x1+parseInt(_0x38f685(0xc5))/0x2+-parseInt(_0x38f685(0xc2))/0x3+-parseInt(_0x38f685(0xbf))/0x4*(parseInt(_0x38f685(0xc3))/0x5)+-parseInt(_0x38f685(0xbd))/0x6+parseInt(_0x38f685(0xbe))/0x7*(-parseInt(_0x38f685(0xc1))/0x8)+parseInt(_0x38f685(0xc0))/0x9;if(_0x35985c===_0x3b6a99)break;else _0x88bbbb['push'](_0x88bbbb['shift']());}catch(_0x513d30){_0x88bbbb['push'](_0x88bbbb['shift']());}}}(a232_0x2554,0xabcc0));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x40f5c7,getMultiAppConfigs as a232_0x2c76bc,getTemplateBaseUrl as a232_0x425dc5}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a232_0x4c4b(_0x3cbd15,_0x598187){_0x3cbd15=_0x3cbd15-0xbb;const _0x2554b5=a232_0x2554();let _0x4c4b61=_0x2554b5[_0x3cbd15];return _0x4c4b61;}export{isInProject}from'../context.js';export function readConfig(_0x68884){const _0x5c6917=a232_0x4c4b,_0x4083ae=readRawConfig(_0x68884);return _0x4083ae['env']&&typeof _0x4083ae[_0x5c6917(0xbc)]===_0x5c6917(0xc4)&&initEnv(_0x4083ae[_0x5c6917(0xbc)]),_0x4083ae;}function a232_0x2554(){const _0x16c333=['29268jBHilT','41939982HPbnjD','1825224updijm','3989442smquSS','895DoegBI','string','2033388wovAqO','1228756ggsHIT','env','3890358iBnzra','14rUbgNh'];a232_0x2554=function(){return _0x16c333;};return a232_0x2554();}export function getConfigAppCode(){return a232_0x40f5c7();}export function getMultiAppConfigs(_0x471473='project'){return a232_0x2c76bc(_0x471473);}export function getTemplateBaseUrl(){return a232_0x425dc5();}
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 +1 @@
1
- (function(_0x4dd38c,_0x4cd9d5){const _0x208d3d=a233_0xcac8,_0x3dcd6a=_0x4dd38c();while(!![]){try{const _0x36b1e4=parseInt(_0x208d3d(0xe1))/0x1*(parseInt(_0x208d3d(0xd6))/0x2)+parseInt(_0x208d3d(0xd4))/0x3*(-parseInt(_0x208d3d(0xde))/0x4)+parseInt(_0x208d3d(0xe2))/0x5+parseInt(_0x208d3d(0xdd))/0x6+-parseInt(_0x208d3d(0xdb))/0x7*(parseInt(_0x208d3d(0xdc))/0x8)+parseInt(_0x208d3d(0xe0))/0x9*(parseInt(_0x208d3d(0xd8))/0xa)+parseInt(_0x208d3d(0xd2))/0xb*(-parseInt(_0x208d3d(0xe3))/0xc);if(_0x36b1e4===_0x4cd9d5)break;else _0x3dcd6a['push'](_0x3dcd6a['shift']());}catch(_0x1a7091){_0x3dcd6a['push'](_0x3dcd6a['shift']());}}}(a233_0x1c67,0x2a05a));function a233_0xcac8(_0x33dfa7,_0x1a1d9e){_0x33dfa7=_0x33dfa7-0xd2;const _0x1c670b=a233_0x1c67();let _0xcac87f=_0x1c670b[_0x33dfa7];return _0xcac87f;}import a233_0x480e7c from'node:path';function a233_0x1c67(){const _0x2aec57=['6ZbxLPE','error','38LCOiQy','copyFileSync','250cTgxve','name','复制目录时出错:','42yOUngE','362888fPbXvn','1064904VJzWpp','137140YetWii','isDirectory','86391DsvEPw','8332vTebvh','1041500aRWnDE','12iBkOMG','readdirSync','2983299ZWZAni','join'];a233_0x1c67=function(){return _0x2aec57;};return a233_0x1c67();}import a233_0x22b696 from'node:fs';export async function copyDirectory(_0x5ed122,_0x3aa70f){const _0x37721b=a233_0xcac8;try{const _0x23e32a=a233_0x22b696[_0x37721b(0xe4)](_0x5ed122,{'withFileTypes':!![]});a233_0x22b696['mkdirSync'](_0x3aa70f,{'recursive':!![]});for(const _0x148cd1 of _0x23e32a){const _0x20e4ec=a233_0x480e7c[_0x37721b(0xd3)](_0x5ed122,_0x148cd1[_0x37721b(0xd9)]),_0x5c9314=a233_0x480e7c['join'](_0x3aa70f,_0x148cd1[_0x37721b(0xd9)]);_0x148cd1[_0x37721b(0xdf)]()?await copyDirectory(_0x20e4ec,_0x5c9314):a233_0x22b696[_0x37721b(0xd7)](_0x20e4ec,_0x5c9314);}}catch(_0x13aace){console[_0x37721b(0xd5)](_0x37721b(0xda),_0x13aace);}}
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 +1 @@
1
- function a234_0x3f44(_0x43108a,_0x15f53b){_0x43108a=_0x43108a-0x116;const _0x5c2288=a234_0x5c22();let _0x3f44d7=_0x5c2288[_0x43108a];return _0x3f44d7;}(function(_0x29179e,_0x587bbc){const _0x2e0da2=a234_0x3f44,_0x15de50=_0x29179e();while(!![]){try{const _0x10ab52=-parseInt(_0x2e0da2(0x11c))/0x1*(parseInt(_0x2e0da2(0x120))/0x2)+-parseInt(_0x2e0da2(0x11a))/0x3*(-parseInt(_0x2e0da2(0x11b))/0x4)+parseInt(_0x2e0da2(0x123))/0x5+-parseInt(_0x2e0da2(0x119))/0x6*(parseInt(_0x2e0da2(0x116))/0x7)+-parseInt(_0x2e0da2(0x122))/0x8+parseInt(_0x2e0da2(0x118))/0x9*(parseInt(_0x2e0da2(0x121))/0xa)+-parseInt(_0x2e0da2(0x11f))/0xb*(parseInt(_0x2e0da2(0x117))/0xc);if(_0x10ab52===_0x587bbc)break;else _0x15de50['push'](_0x15de50['shift']());}catch(_0x338748){_0x15de50['push'](_0x15de50['shift']());}}}(a234_0x5c22,0x9d2bb));function toFiniteNumber(_0x5a7b4a){const _0x193ed1=a234_0x3f44;if(typeof _0x5a7b4a===_0x193ed1(0x11e)&&Number[_0x193ed1(0x11d)](_0x5a7b4a))return _0x5a7b4a;if(typeof _0x5a7b4a==='string'){const _0x15d08e=_0x5a7b4a['trim']();if(!_0x15d08e)return undefined;const _0x3b0821=Number(_0x15d08e);if(Number[_0x193ed1(0x11d)](_0x3b0821))return _0x3b0821;}return undefined;}function a234_0x5c22(){const _0x33159d=['1674LJJrDt','20tUUgXV','7481280PMSaah','3934655LrOqGY','94619UUkNtx','629712CClkKm','4706037VZDOab','96Aztwog','282nnkavf','46564gCPPDa','976ihiORJ','isFinite','number','66KrozHD'];a234_0x5c22=function(){return _0x33159d;};return a234_0x5c22();}export function normalizeEntityWithIdResponse(_0x536ed5){const _0x5a2fe3=toFiniteNumber(_0x536ed5);if(_0x5a2fe3!==undefined)return{'id':_0x5a2fe3,'entity':{'id':_0x5a2fe3}};if(!_0x536ed5||typeof _0x536ed5!=='object')return{'id':undefined,'entity':{}};const _0xfc8923={..._0x536ed5},_0x5009a7=toFiniteNumber(_0xfc8923['id']);return _0x5009a7!==undefined&&(_0xfc8923['id']=_0x5009a7),{'id':_0x5009a7,'entity':_0xfc8923};}
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 +1 @@
1
- (function(_0x9e6162,_0x2de2db){const _0x52abb7=a235_0xcef4,_0x1c9ed8=_0x9e6162();while(!![]){try{const _0x2e8c82=-parseInt(_0x52abb7(0xf0))/0x1+-parseInt(_0x52abb7(0xf1))/0x2+parseInt(_0x52abb7(0xf7))/0x3+parseInt(_0x52abb7(0xf3))/0x4+-parseInt(_0x52abb7(0xf6))/0x5*(parseInt(_0x52abb7(0xef))/0x6)+-parseInt(_0x52abb7(0xf2))/0x7*(-parseInt(_0x52abb7(0xf4))/0x8)+parseInt(_0x52abb7(0xf5))/0x9;if(_0x2e8c82===_0x2de2db)break;else _0x1c9ed8['push'](_0x1c9ed8['shift']());}catch(_0x56c293){_0x1c9ed8['push'](_0x1c9ed8['shift']());}}}(a235_0x3e3c,0xd500d));function a235_0x3e3c(){const _0x36895d=['11893rPbUyl','6732792BURRTo','3224ilXBmp','12490470WKXEfr','733870IPYDho','1109220aZTxwU','isDirectory','6hQaqxL','1445215LHEoVA','3322030ZQCbJR'];a235_0x3e3c=function(){return _0x36895d;};return a235_0x3e3c();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x57cb37,_0x4a0865){const _0x46acd2=a235_0xcef4,_0x8b7928=statSync(_0x57cb37);if(_0x8b7928[_0x46acd2(0xf8)]()){!existsSync(_0x4a0865)&&mkdirSync(_0x4a0865,{'recursive':!![]});const _0x37df04=readdirSync(_0x57cb37);for(const _0x28ce19 of _0x37df04){await copyDir(join(_0x57cb37,_0x28ce19),join(_0x4a0865,_0x28ce19));}}else copyFileSync(_0x57cb37,_0x4a0865);}export function ensureDir(_0x2634be){!existsSync(_0x2634be)&&mkdirSync(_0x2634be,{'recursive':!![]});}function a235_0xcef4(_0x47a494,_0x5d4e37){_0x47a494=_0x47a494-0xef;const _0x3e3c87=a235_0x3e3c();let _0xcef4c1=_0x3e3c87[_0x47a494];return _0xcef4c1;}export function pathExists(_0x26973e){return existsSync(_0x26973e);}
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 +1 @@
1
- const a236_0x3160ed=a236_0x4d14;(function(_0x5a450d,_0x3cb11a){const _0x42c3e1=a236_0x4d14,_0x53fc35=_0x5a450d();while(!![]){try{const _0x49f91c=-parseInt(_0x42c3e1(0x1de))/0x1+-parseInt(_0x42c3e1(0x1f1))/0x2+-parseInt(_0x42c3e1(0x1e9))/0x3+-parseInt(_0x42c3e1(0x1e0))/0x4*(parseInt(_0x42c3e1(0x1eb))/0x5)+parseInt(_0x42c3e1(0x1ef))/0x6*(-parseInt(_0x42c3e1(0x1db))/0x7)+-parseInt(_0x42c3e1(0x1e5))/0x8+parseInt(_0x42c3e1(0x1dc))/0x9;if(_0x49f91c===_0x3cb11a)break;else _0x53fc35['push'](_0x53fc35['shift']());}catch(_0x4c868a){_0x53fc35['push'](_0x53fc35['shift']());}}}(a236_0x5868,0xc7098));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 _0x189c50=a236_0x4d14,_0x1746db=getTemplateBaseUrl();return _0x1746db+_0x189c50(0x1d7);}const CACHE_DIR=join(homedir(),a236_0x3160ed(0x1e1),a236_0x3160ed(0x1ed));export async function fetchGuidesFromCDN(){const _0x1af41b=a236_0x3160ed,_0x4267fb=getGuidesCdnUrl(),_0x524c87=await fetch(_0x4267fb,{'headers':{'Accept':_0x1af41b(0x1d6)}});if(!_0x524c87['ok'])throw new Error(_0x1af41b(0x1ee)+_0x524c87['status']+'\x20'+_0x524c87['statusText']);const _0x44844d=await _0x524c87[_0x1af41b(0x1ea)]();if(!_0x44844d[_0x1af41b(0x1e7)]||typeof _0x44844d[_0x1af41b(0x1e7)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x44844d;}export function writeGuidesToProject(_0x338eb8,_0x310520,_0x48a41d=a236_0x3160ed(0x1d8),_0x18360b){const _0x39e93a=a236_0x3160ed,_0x3f45a6=join(_0x310520,_0x48a41d);mkdirSync(_0x3f45a6,{'recursive':!![]});for(const [_0x5161c3,_0x8e4264]of Object[_0x39e93a(0x1d9)](_0x338eb8[_0x39e93a(0x1e7)])){let _0x58dc55=_0x8e4264[_0x39e93a(0x1dd)];_0x8e4264[_0x39e93a(0x1da)]&&(_0x58dc55=appendUpdateTime(_0x58dc55,_0x8e4264['lastUpdated'])),writeFileSync(join(_0x3f45a6,_0x5161c3+_0x39e93a(0x1ec)),_0x58dc55,'utf-8');}}export function appendUpdateTime(_0x56c6b3,_0x39fa6e){const _0x2e5ac2=a236_0x3160ed;return _0x56c6b3=_0x56c6b3[_0x2e5ac2(0x1e6)](/\n*>更新时间:.*$/m,''),_0x56c6b3['trimEnd']()+('\x0a\x0a>更新时间:'+_0x39fa6e);}function a236_0x4d14(_0x504aee,_0x267c56){_0x504aee=_0x504aee-0x1d6;const _0x586856=a236_0x5868();let _0x4d1433=_0x586856[_0x504aee];return _0x4d1433;}export function getSkillTemplate(_0x5cebea){const _0x42713d=a236_0x3160ed;return _0x5cebea[_0x42713d(0x1e4)]?.[_0x42713d(0x1dd)]||'';}export function appendExtendContents(_0x4a4a0d,_0x373fa5,_0x5cc0db){const _0x155cd3=a236_0x3160ed,_0x249568=[];for(const [,_0x2ea9ef]of Object['entries'](_0x373fa5[_0x155cd3(0x1e7)])){_0x2ea9ef['extendContent']&&_0x249568['push'](_0x2ea9ef[_0x155cd3(0x1e2)]['trimEnd']());}if(_0x249568[_0x155cd3(0x1e8)]===0x0)return _0x4a4a0d;return _0x4a4a0d['trimEnd']()+'\x0a\x0a'+_0x249568[_0x155cd3(0x1df)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x190445,_0x31ed20,_0x516a97){const _0x4632d5=a236_0x3160ed,_0x31bb19=getSkillTemplate(_0x190445);if(!_0x31bb19)throw new Error(_0x4632d5(0x1e3));const _0x3f6fe1=dirname(_0x31ed20);mkdirSync(_0x3f6fe1,{'recursive':!![]});let _0x54bcf5=_0x31bb19[_0x4632d5(0x1e6)](/\{\{IDE_NAME\}\}/g,_0x516a97);_0x54bcf5=appendExtendContents(_0x54bcf5,_0x190445),_0x190445[_0x4632d5(0x1e4)][_0x4632d5(0x1da)]&&(_0x54bcf5=appendUpdateTime(_0x54bcf5,_0x190445[_0x4632d5(0x1e4)][_0x4632d5(0x1da)])),writeFileSync(_0x31ed20,_0x54bcf5,'utf-8');}export async function installGuides(_0x49c13e){const _0x1c3bce=a236_0x3160ed,_0x434518=await fetchGuidesFromCDN();return writeGuidesToProject(_0x434518,_0x49c13e),Object['keys'](_0x434518[_0x1c3bce(0x1e7)])[_0x1c3bce(0x1e8)];}export function getGuidesSummary(_0x25e697){const _0x50737f=a236_0x3160ed;return Object['entries'](_0x25e697['guides'])['map'](([_0x3471d1,_0x1464ef])=>({'key':_0x3471d1,'title':_0x1464ef[_0x50737f(0x1f0)],'path':_0x1464ef['path']}));}function a236_0x5868(){const _0x48960c=['43925HvfooR','.md','cache','CDN\x20请求失败:\x20','14976sabWKW','title','2355990lvRHMs','application/json','/skills/guides.json','.lovrabet/skill/guides','entries','lastUpdated','735zGTtrI','45101295YnIMTT','content','817848IciuHg','join','604oDbsMp','.lovrabet','extendContent','CDN\x20数据中缺少\x20skillTemplate','skillTemplate','2761624LnWXCw','replace','guides','length','799014WFLWPb','json'];a236_0x5868=function(){return _0x48960c;};return a236_0x5868();}
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 +1 @@
1
- (function(_0x20d10d,_0x1acf5e){const _0x4e2c78=a237_0x4165,_0x26a027=_0x20d10d();while(!![]){try{const _0x14b5fc=parseInt(_0x4e2c78(0xdb))/0x1+-parseInt(_0x4e2c78(0xd5))/0x2+parseInt(_0x4e2c78(0xe5))/0x3+parseInt(_0x4e2c78(0xca))/0x4*(parseInt(_0x4e2c78(0xd2))/0x5)+-parseInt(_0x4e2c78(0xde))/0x6*(-parseInt(_0x4e2c78(0xce))/0x7)+parseInt(_0x4e2c78(0xda))/0x8*(-parseInt(_0x4e2c78(0xd8))/0x9)+-parseInt(_0x4e2c78(0xe0))/0xa;if(_0x14b5fc===_0x1acf5e)break;else _0x26a027['push'](_0x26a027['shift']());}catch(_0x5b97b5){_0x26a027['push'](_0x26a027['shift']());}}}(a237_0x56c4,0x349ce));export async function httpRequest(_0x308e73,_0x195b12={}){const _0x52f31e=a237_0x4165,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x195b12;let _0x46ff9e=null;for(let _0x46f417=0x0;_0x46f417<=retries;_0x46f417++){try{const _0x1d446d=new AbortController(),_0x4fae75=setTimeout(()=>_0x1d446d['abort'](),timeout),_0x1cff83=await fetch(_0x308e73,{'headers':headers,'signal':_0x1d446d[_0x52f31e(0xd7)]});clearTimeout(_0x4fae75);let _0x17df8c;const _0x34b403=_0x1cff83[_0x52f31e(0xd1)]['get'](_0x52f31e(0xdc));return _0x34b403?.[_0x52f31e(0xcf)](_0x52f31e(0xe1))?_0x17df8c=await _0x1cff83[_0x52f31e(0xcb)]():_0x17df8c=await _0x1cff83[_0x52f31e(0xcd)](),{'ok':_0x1cff83['ok'],'status':_0x1cff83['status'],'statusText':_0x1cff83[_0x52f31e(0xd0)],'data':_0x17df8c,'headers':_0x1cff83[_0x52f31e(0xd1)],'url':_0x1cff83[_0x52f31e(0xd6)],'text':()=>_0x1cff83['text']()};}catch(_0xdb6a37){_0x46ff9e=_0xdb6a37 instanceof Error?_0xdb6a37:new Error(String(_0xdb6a37));if(_0x46f417===retries)break;if(shouldRetry(_0xdb6a37)){console[_0x52f31e(0xd4)](_0x52f31e(0xe3)+retryDelay+'ms\x20后进行第\x20'+(_0x46f417+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x46ff9e||new Error(_0x52f31e(0xcc));}function a237_0x56c4(){const _0x3d7456=['text','6580hDHKDY','includes','statusText','headers','5fADhDL','ENOTFOUND','log','632038RKieFW','url','signal','331956GAFcKQ','message','16PuBEzt','158182bLXzgw','content-type','name','2622BYMKjz','fetch','5668630tlcYiZ','application/json','TypeError','*\x20请求失败,','AbortError','943953knschD','1154156HYGute','json','Request\x20failed'];a237_0x56c4=function(){return _0x3d7456;};return a237_0x56c4();}function shouldRetry(_0x3bc2d2){const _0x12ef36=a237_0x4165;if(_0x3bc2d2 instanceof Error){if(_0x3bc2d2[_0x12ef36(0xdd)]===_0x12ef36(0xe4))return![];if(_0x3bc2d2[_0x12ef36(0xdd)]===_0x12ef36(0xe2)&&_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)](_0x12ef36(0xdf)))return!![];if(_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)]('ECONNRESET'))return!![];if(_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)](_0x12ef36(0xd3)))return![];}return![];}function a237_0x4165(_0x283781,_0x2401f8){_0x283781=_0x283781-0xca;const _0x56c49a=a237_0x56c4();let _0x4165dc=_0x56c49a[_0x283781];return _0x4165dc;}function sleep(_0x3c228f){return new Promise(_0x1bb65=>setTimeout(_0x1bb65,_0x3c228f));}export function validateUrl(_0x2b9935){try{return new URL(_0x2b9935),!![];}catch{return![];}}
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 +1 @@
1
- function a238_0x4d45(){const _0x299647=['3272899YIwKzU','3XqRbfQ','true','isTTY','11599600ArgFgJ','1538140BqLXwm','3491739WRvoyH','isRaw','4TkCiSN','stdout','stdin','5697zwoMiR','18693675LpVUbW','nonInteractive','6vqHhvd','1003038zkXgbm','5896BdBKwF','setRawMode'];a238_0x4d45=function(){return _0x299647;};return a238_0x4d45();}(function(_0x1d4124,_0x46df09){const _0x423fa0=a238_0x3100,_0x11fcd0=_0x1d4124();while(!![]){try{const _0x56306c=-parseInt(_0x423fa0(0x1d3))/0x1*(parseInt(_0x423fa0(0x1cf))/0x2)+-parseInt(_0x423fa0(0x1d8))/0x3*(parseInt(_0x423fa0(0x1da))/0x4)+-parseInt(_0x423fa0(0x1d7))/0x5+-parseInt(_0x423fa0(0x1ce))/0x6*(-parseInt(_0x423fa0(0x1d2))/0x7)+-parseInt(_0x423fa0(0x1d0))/0x8*(-parseInt(_0x423fa0(0x1cb))/0x9)+parseInt(_0x423fa0(0x1d6))/0xa+parseInt(_0x423fa0(0x1cc))/0xb;if(_0x56306c===_0x46df09)break;else _0x11fcd0['push'](_0x11fcd0['shift']());}catch(_0x4c68ef){_0x11fcd0['push'](_0x11fcd0['shift']());}}}(a238_0x4d45,0xc78d5));function env(_0x5e2050){return process.env[`RABETBASE_${_0x5e2050}`]||process.env[`LOVRABET_${_0x5e2050}`]||undefined;}function a238_0x3100(_0x4920f3,_0x16c76d){_0x4920f3=_0x4920f3-0x1c9;const _0x4d45d0=a238_0x4d45();let _0x310040=_0x4d45d0[_0x4920f3];return _0x310040;}export function isNonInteractive(_0x1a49a6){const _0x859a1f=a238_0x3100;return!!(_0x1a49a6[_0x859a1f(0x1cd)]||_0x1a49a6['ci']||env('CI')===_0x859a1f(0x1d4)||process.env.CI===_0x859a1f(0x1d4)||!process[_0x859a1f(0x1c9)][_0x859a1f(0x1d5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1812be=a238_0x3100;if(!process[_0x1812be(0x1ca)][_0x1812be(0x1d5)])return![];try{const _0xeae40b=process[_0x1812be(0x1ca)][_0x1812be(0x1d9)];return process['stdin'][_0x1812be(0x1d1)](!![]),process[_0x1812be(0x1ca)]['setRawMode'](_0xeae40b??![]),!![];}catch{return![];}}
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 +1 @@
1
- function a239_0x38f4(_0x2ac243,_0x54d5b0){_0x2ac243=_0x2ac243-0xc1;const _0x4eb59c=a239_0x4eb5();let _0x38f434=_0x4eb59c[_0x2ac243];return _0x38f434;}const a239_0x1db047=a239_0x38f4;(function(_0x300651,_0x3a5b4b){const _0x4522aa=a239_0x38f4,_0x495aca=_0x300651();while(!![]){try{const _0x461492=parseInt(_0x4522aa(0xf9))/0x1*(parseInt(_0x4522aa(0xc7))/0x2)+parseInt(_0x4522aa(0xd0))/0x3*(parseInt(_0x4522aa(0xca))/0x4)+-parseInt(_0x4522aa(0xc6))/0x5*(-parseInt(_0x4522aa(0xcc))/0x6)+-parseInt(_0x4522aa(0xd3))/0x7*(-parseInt(_0x4522aa(0xd1))/0x8)+-parseInt(_0x4522aa(0xcb))/0x9+-parseInt(_0x4522aa(0xe0))/0xa*(-parseInt(_0x4522aa(0xc9))/0xb)+parseInt(_0x4522aa(0xe6))/0xc;if(_0x461492===_0x3a5b4b)break;else _0x495aca['push'](_0x495aca['shift']());}catch(_0x346d78){_0x495aca['push'](_0x495aca['shift']());}}}(a239_0x4eb5,0xb5441));import a239_0x1daaf0 from'winston';import a239_0x263db3 from'node:fs';function a239_0x4eb5(){const _0x17a43b=['833tmCCZd','parse','transports','red','logTask','message','join','完成:\x20','warn','rawCommand','File','logFilePath','log','370210BMekaO','addColors','split','info','combine','readFileSync','1736892bOSVoX','toISOString','timestamp','winstonLogger','errors','now','dirname','format','filter','printf','开始执行:\x20','details','utf8','Failed\x20to\x20read\x20logs:','currentRawCommand','Failed\x20to\x20clear\x20logs:','green','setRawCommand','setLogPath','515875CtkIDP','readLogs','clearLogs','createLogger','yellow','.lovrabet.log','success','1065MzdDGX','4KAVduz','initWinstonLogger','121ferWGE','25876rFhzDI','11939040OffuUk','5604ysCtdo','mkdirSync','map','error','78EYXqUw','7944eWsjzW','getWinstonInstance'];a239_0x4eb5=function(){return _0x17a43b;};return a239_0x4eb5();}import a239_0x407fe7 from'node:path';class Logger{[a239_0x1db047(0xe9)];[a239_0x1db047(0xde)];[a239_0x1db047(0xf4)]='';constructor(){const _0x50d3a0=a239_0x1db047;this[_0x50d3a0(0xde)]='';}[a239_0x1db047(0xf7)](_0x2137dd){const _0x1223a2=a239_0x1db047;this[_0x1223a2(0xf4)]=_0x2137dd;}[a239_0x1db047(0xc8)](){const _0x451968=a239_0x1db047,_0x2e7f68=a239_0x407fe7[_0x451968(0xec)](this[_0x451968(0xde)]);!a239_0x263db3['existsSync'](_0x2e7f68)&&a239_0x263db3[_0x451968(0xcd)](_0x2e7f68,{'recursive':!![]});const _0x57031a=a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xe4)](a239_0x1daaf0['format'][_0x451968(0xe8)](),a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xea)]({'stack':!![]}),a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xef)](_0x89b999=>{const _0x2e04dc=_0x451968,_0x4a3796={'timestamp':_0x89b999[_0x2e04dc(0xe8)]||new Date()[_0x2e04dc(0xe7)](),'level':_0x89b999['level']||'info','command':_0x89b999['command']||'unknown','rawCommand':_0x89b999[_0x2e04dc(0xdc)]||this[_0x2e04dc(0xf4)]||undefined,'message':_0x89b999['message']||'','duration':_0x89b999['duration']||undefined,'details':_0x89b999[_0x2e04dc(0xf1)]||undefined};return JSON['stringify'](_0x4a3796);}));this[_0x451968(0xe9)]=a239_0x1daaf0[_0x451968(0xc2)]({'level':_0x451968(0xe3),'format':_0x57031a,'transports':[new a239_0x1daaf0[(_0x451968(0xd5))][(_0x451968(0xdd))]({'filename':this[_0x451968(0xde)],'level':_0x451968(0xe3)})],'silent':![]}),a239_0x1daaf0[_0x451968(0xe1)]({'success':_0x451968(0xf6),'error':_0x451968(0xd6),'warn':_0x451968(0xc3),'info':'blue'});}[a239_0x1db047(0xf8)](_0x533657){const _0x5c7fc7=a239_0x1db047;this[_0x5c7fc7(0xde)]=a239_0x407fe7[_0x5c7fc7(0xd9)](_0x533657,_0x5c7fc7(0xc4)),this[_0x5c7fc7(0xe9)]&&this[_0x5c7fc7(0xe9)]['clear'](),this['initWinstonLogger']();}[a239_0x1db047(0xe3)](_0x49fe7e,_0xa92156,_0xf35383){const _0x402209=a239_0x1db047;if(!this['logFilePath']||!this[_0x402209(0xe9)])return;this[_0x402209(0xe9)][_0x402209(0xe3)](_0xa92156,{'command':_0x49fe7e,'details':_0xf35383});}[a239_0x1db047(0xc5)](_0xea60c9,_0x1727a1,_0x219711,_0x3eba16){const _0x2c74fa=a239_0x1db047;if(!this['logFilePath']||!this[_0x2c74fa(0xe9)])return;this[_0x2c74fa(0xe9)][_0x2c74fa(0xdf)](_0x2c74fa(0xe3),_0x1727a1,{'level':_0x2c74fa(0xc5),'command':_0xea60c9,'duration':_0x219711,'details':_0x3eba16});}[a239_0x1db047(0xcf)](_0x3800a1,_0x558549,_0x5d1dc1){const _0x456a34=a239_0x1db047;if(!this[_0x456a34(0xde)]||!this[_0x456a34(0xe9)])return;this['winstonLogger'][_0x456a34(0xcf)](_0x558549,{'command':_0x3800a1,'details':_0x5d1dc1});}[a239_0x1db047(0xdb)](_0x45047e,_0x79647b,_0xa4370e){const _0x3fa134=a239_0x1db047;if(!this[_0x3fa134(0xde)]||!this['winstonLogger'])return;this['winstonLogger'][_0x3fa134(0xdb)](_0x79647b,{'command':_0x45047e,'details':_0xa4370e});}async[a239_0x1db047(0xd7)](_0x3fe7c8,_0x3b041d,_0xcf2f1e){const _0x2e074d=a239_0x1db047,_0x36b869=Date[_0x2e074d(0xeb)]();this[_0x2e074d(0xe3)](_0x3fe7c8,_0x2e074d(0xf0)+_0x3b041d);try{const _0x281b0f=await _0xcf2f1e(),_0x333785=Date[_0x2e074d(0xeb)]()-_0x36b869;return this[_0x2e074d(0xc5)](_0x3fe7c8,_0x2e074d(0xda)+_0x3b041d,_0x333785),_0x281b0f;}catch(_0x571943){const _0x2a32de=Date[_0x2e074d(0xeb)]()-_0x36b869;this[_0x2e074d(0xcf)](_0x3fe7c8,'失败:\x20'+_0x3b041d,{'error':_0x571943 instanceof Error?_0x571943[_0x2e074d(0xd8)]:String(_0x571943),'duration':_0x2a32de});throw _0x571943;}}[a239_0x1db047(0xfa)](){const _0x4f93c7=a239_0x1db047;try{if(!a239_0x263db3['existsSync'](this['logFilePath']))return[];const _0x3ca7ae=a239_0x263db3[_0x4f93c7(0xe5)](this[_0x4f93c7(0xde)],_0x4f93c7(0xf2));return _0x3ca7ae[_0x4f93c7(0xe2)]('\x0a')[_0x4f93c7(0xee)](_0x846437=>_0x846437['trim']())[_0x4f93c7(0xce)](_0xf85f05=>JSON[_0x4f93c7(0xd4)](_0xf85f05));}catch(_0x5c17c3){return console[_0x4f93c7(0xdb)](_0x4f93c7(0xf3),_0x5c17c3),[];}}[a239_0x1db047(0xc1)](){const _0x49a928=a239_0x1db047;try{a239_0x263db3['existsSync'](this[_0x49a928(0xde)])&&a239_0x263db3['writeFileSync'](this['logFilePath'],'',_0x49a928(0xf2));}catch(_0x5d539b){console['warn'](_0x49a928(0xf5),_0x5d539b);}}[a239_0x1db047(0xd2)](){const _0x959df=a239_0x1db047;return this[_0x959df(0xe9)];}}export const logger=new Logger();
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();