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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) 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/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- const a212_0x843cfa=a212_0x323e;(function(_0x5a5a8f,_0x53a1ca){const _0xe81c08=a212_0x323e,_0x6291c8=_0x5a5a8f();while(!![]){try{const _0xf514e1=-parseInt(_0xe81c08(0x1f4))/0x1*(-parseInt(_0xe81c08(0x201))/0x2)+-parseInt(_0xe81c08(0x20c))/0x3+-parseInt(_0xe81c08(0x20d))/0x4+parseInt(_0xe81c08(0x204))/0x5+parseInt(_0xe81c08(0x205))/0x6+parseInt(_0xe81c08(0x1ff))/0x7+-parseInt(_0xe81c08(0x207))/0x8;if(_0xf514e1===_0x53a1ca)break;else _0x6291c8['push'](_0x6291c8['shift']());}catch(_0x543d87){_0x6291c8['push'](_0x6291c8['shift']());}}}(a212_0x548d,0x6a326));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';function a212_0x548d(){const _0xd25ab3=['284pdLNqx','stderr','unknown','1475855lMBJDK','2542464Nwkmpq','add','1139360FIuZVj','status','lovrabet/lovrabet-skill','yes','npx','1008612MvsGjo','3317300TXULIW','exit\x20','trim','Lovrabet','3049rdrdxL','stdio','log','join','pipe','lovrabet/rabetbase','toString','skill','inherit','--skill','stdout','4137406mcDgKr','remove'];a212_0x548d=function(){return _0xd25ab3;};return a212_0x548d();}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';function a212_0x323e(_0x39bb42,_0x11209f){_0x39bb42=_0x39bb42-0x1f4;const _0x548de2=a212_0x548d();let _0x323e2a=_0x548de2[_0x39bb42];return _0x323e2a;}export const NPX_SKILLS_SUBCOMMAND_ADD=a212_0x843cfa(0x206);export const NPX_SKILLS_FLAG_SKILL=a212_0x843cfa(0x1fd);export const RABETBASE_SKILL_SOURCE=a212_0x843cfa(0x1f9);export const LEGACY_RABETBASE_SKILL_SOURCE=a212_0x843cfa(0x209);export const DEFAULT_RABETBASE_SKILL_NAME=a212_0x843cfa(0x210);export function buildNpxSkillsAddArgv(_0x180f8a){const _0x2d7b7e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x180f8a&&_0x2d7b7e['push'](NPX_SKILLS_FLAG_SKILL,_0x180f8a),_0x2d7b7e;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a212_0x843cfa(0x20b),...buildNpxSkillsAddArgv()][a212_0x843cfa(0x1f7)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a212_0x843cfa(0x1f7)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1cf9a7,_0x5ea738){const _0x399936=a212_0x843cfa;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbed436=_0x5ea738?.[_0x399936(0x1f5)]??_0x399936(0x1fc),_0x1a5f21=resolveNpmBin(_0x399936(0x20b)),_0x151c6f=buildNpxSkillsAddArgv(_0x5ea738?.[_0x399936(0x1fb)]),_0x4c90f3=[_0x399936(0x20b),..._0x151c6f][_0x399936(0x1f7)]('\x20');console[_0x399936(0x1f6)]('*\x20'+_0x4c90f3);const _0x5816e7=spawnSync(_0x1a5f21,_0x151c6f,{'cwd':_0x1cf9a7,'stdio':_0xbed436,'env':process.env,'shell':![]}),_0x1bbdce=_0x5816e7[_0x399936(0x208)];if(_0x1bbdce===0x0)return{'ok':!![],'status':0x0};let _0x10ba54=_0x399936(0x20e)+(_0x1bbdce??_0x399936(0x203));if(_0xbed436===_0x399936(0x1f8)){const _0x4ef161=_0x5816e7[_0x399936(0x202)]?_0x5816e7['stderr']['toString']()[_0x399936(0x20f)]():'',_0x44b2b8=_0x5816e7[_0x399936(0x1fe)]?_0x5816e7[_0x399936(0x1fe)][_0x399936(0x1fa)]()[_0x399936(0x20f)]():'';if(_0x4ef161)_0x10ba54=_0x4ef161;else{if(_0x44b2b8)_0x10ba54=_0x44b2b8;}}return{'ok':![],'status':_0x1bbdce??null,'error':_0x10ba54};}export function runNpxSkillsRemove(_0x305f5e,_0x5eaa53,_0x26f9b4=LEGACY_RABETBASE_SKILL_SOURCE){const _0x19d1ba=a212_0x843cfa;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xf36fe8=_0x5eaa53?.[_0x19d1ba(0x1f5)]??_0x19d1ba(0x1fc),_0x36baf1=resolveNpmBin(_0x19d1ba(0x20b)),_0x1cc081=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x19d1ba(0x200),_0x26f9b4,NPX_SKILLS_FLAG_SKILL,_0x5eaa53?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x5eaa53?.[_0x19d1ba(0x20a)]?['-y']:[]],_0x28ef8e=[_0x36baf1,..._0x1cc081]['join']('\x20');console[_0x19d1ba(0x1f6)]('*\x20'+_0x28ef8e);const _0x18d613=spawnSync(_0x36baf1,_0x1cc081,{'cwd':_0x305f5e,'stdio':_0xf36fe8,'env':process.env,'shell':![]}),_0x530063=_0x18d613[_0x19d1ba(0x208)];if(_0x530063===0x0)return{'ok':!![],'status':0x0};let _0x56cd87='exit\x20'+(_0x530063??_0x19d1ba(0x203));if(_0xf36fe8==='pipe'){const _0x4dbb30=_0x18d613[_0x19d1ba(0x202)]?_0x18d613['stderr'][_0x19d1ba(0x1fa)]()[_0x19d1ba(0x20f)]():'',_0x46d8db=_0x18d613[_0x19d1ba(0x1fe)]?_0x18d613[_0x19d1ba(0x1fe)][_0x19d1ba(0x1fa)]()[_0x19d1ba(0x20f)]():'';if(_0x4dbb30)_0x56cd87=_0x4dbb30;else{if(_0x46d8db)_0x56cd87=_0x46d8db;}}return{'ok':![],'status':_0x530063??null,'error':_0x56cd87};}export function runNpxSkillsAddGlobal(_0x1eb5dd,_0x4fc23c,_0x2cb1c4){const _0x1b9232=a212_0x843cfa;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1f83b7=_0x2cb1c4?.['stdio']??_0x1b9232(0x1fc),_0x33cd33=resolveNpmBin(_0x1b9232(0x20b)),_0x18bd7f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4fc23c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x32e527=[_0x1b9232(0x20b),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4fc23c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x1b9232(0x1f6)]('*\x20'+_0x32e527);const _0xa95aa8=spawnSync(_0x33cd33,_0x18bd7f,{'cwd':_0x1eb5dd,'stdio':_0x1f83b7,'env':process.env,'shell':![]}),_0x144100=_0xa95aa8[_0x1b9232(0x208)];if(_0x144100===0x0)return{'ok':!![],'status':0x0};let _0x464c3a='exit\x20'+(_0x144100??'unknown');if(_0x1f83b7===_0x1b9232(0x1f8)){const _0x1cd378=_0xa95aa8[_0x1b9232(0x202)]?_0xa95aa8[_0x1b9232(0x202)][_0x1b9232(0x1fa)]()[_0x1b9232(0x20f)]():'',_0x4b555a=_0xa95aa8[_0x1b9232(0x1fe)]?_0xa95aa8[_0x1b9232(0x1fe)]['toString']()[_0x1b9232(0x20f)]():'';if(_0x1cd378)_0x464c3a=_0x1cd378;else{if(_0x4b555a)_0x464c3a=_0x4b555a;}}return{'ok':![],'status':_0x144100??null,'error':_0x464c3a};}
1
+ const a212_0x37e5e2=a212_0x35f8;(function(_0x391873,_0x4e082d){const _0x4d2293=a212_0x35f8,_0x3f0ebe=_0x391873();while(!![]){try{const _0x12ddc6=parseInt(_0x4d2293(0xd0))/0x1*(-parseInt(_0x4d2293(0xc9))/0x2)+parseInt(_0x4d2293(0xc6))/0x3+parseInt(_0x4d2293(0xd5))/0x4*(parseInt(_0x4d2293(0xde))/0x5)+parseInt(_0x4d2293(0xcd))/0x6*(parseInt(_0x4d2293(0xca))/0x7)+-parseInt(_0x4d2293(0xc7))/0x8*(parseInt(_0x4d2293(0xe2))/0x9)+parseInt(_0x4d2293(0xcc))/0xa+-parseInt(_0x4d2293(0xdd))/0xb*(parseInt(_0x4d2293(0xdc))/0xc);if(_0x12ddc6===_0x4e082d)break;else _0x3f0ebe['push'](_0x3f0ebe['shift']());}catch(_0x361c16){_0x3f0ebe['push'](_0x3f0ebe['shift']());}}}(a212_0x5b4e,0x1ab48));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=a212_0x37e5e2(0xcf);export const NPX_SKILLS_SUBCOMMAND_ADD=a212_0x37e5e2(0xdb);function a212_0x35f8(_0x5409b5,_0x21048b){_0x5409b5=_0x5409b5-0xc2;const _0x5b4ec2=a212_0x5b4e();let _0x35f8f7=_0x5b4ec2[_0x5409b5];return _0x35f8f7;}export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a212_0x37e5e2(0xc3);function a212_0x5b4e(){const _0x2c4e55=['exit\x20','535569UkclEE','291768tlPTpK','stdio','8xQVOOu','7567QkGmaU','Lovrabet','1897620EatDGy','588dYAHnt','inherit','skills','20048vaHxno','pipe','yes','unknown','skill','853868eLqyjl','log','toString','status','trim','stderr','add','142044lpoZDy','429dHPrcB','5ELogHM','remove','npx','join','9wfvLem','push','lovrabet/rabetbase','stdout'];a212_0x5b4e=function(){return _0x2c4e55;};return a212_0x5b4e();}export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a212_0x37e5e2(0xcb);export function buildNpxSkillsAddArgv(_0x104949){const _0x386a22=a212_0x37e5e2,_0x882f67=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x104949&&_0x882f67[_0x386a22(0xc2)](NPX_SKILLS_FLAG_SKILL,_0x104949),_0x882f67;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a212_0x37e5e2(0xe0),...buildNpxSkillsAddArgv()][a212_0x37e5e2(0xe1)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xac48b0,_0x433ca8){const _0x5a78dd=a212_0x37e5e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1c8067=_0x433ca8?.['stdio']??_0x5a78dd(0xce),_0x246c40=resolveNpmBin(_0x5a78dd(0xe0)),_0x38fe41=buildNpxSkillsAddArgv(_0x433ca8?.[_0x5a78dd(0xd4)]),_0x2e139d=[_0x5a78dd(0xe0),..._0x38fe41][_0x5a78dd(0xe1)]('\x20');console[_0x5a78dd(0xd6)]('*\x20'+_0x2e139d);const _0x4169d9=spawnSync(_0x246c40,_0x38fe41,{'cwd':_0xac48b0,'stdio':_0x1c8067,'env':process.env,'shell':![]}),_0x8ebcf1=_0x4169d9[_0x5a78dd(0xd8)];if(_0x8ebcf1===0x0)return{'ok':!![],'status':0x0};let _0x1209c2='exit\x20'+(_0x8ebcf1??_0x5a78dd(0xd3));if(_0x1c8067===_0x5a78dd(0xd1)){const _0xbfd47c=_0x4169d9[_0x5a78dd(0xda)]?_0x4169d9[_0x5a78dd(0xda)]['toString']()['trim']():'',_0x3fb1f3=_0x4169d9['stdout']?_0x4169d9[_0x5a78dd(0xc4)]['toString']()[_0x5a78dd(0xd9)]():'';if(_0xbfd47c)_0x1209c2=_0xbfd47c;else{if(_0x3fb1f3)_0x1209c2=_0x3fb1f3;}}return{'ok':![],'status':_0x8ebcf1??null,'error':_0x1209c2};}export function runNpxSkillsRemove(_0x32a3bf,_0x2a5076,_0x5b8307=LEGACY_RABETBASE_SKILL_SOURCE){const _0x744ead=a212_0x37e5e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x235348=_0x2a5076?.[_0x744ead(0xc8)]??_0x744ead(0xce),_0x2bd34a=resolveNpmBin(_0x744ead(0xe0)),_0x2c5d9b=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x744ead(0xdf),_0x5b8307,NPX_SKILLS_FLAG_SKILL,_0x2a5076?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x2a5076?.[_0x744ead(0xd2)]?['-y']:[]],_0x5c63c1=[_0x2bd34a,..._0x2c5d9b][_0x744ead(0xe1)]('\x20');console['log']('*\x20'+_0x5c63c1);const _0xfcbd39=spawnSync(_0x2bd34a,_0x2c5d9b,{'cwd':_0x32a3bf,'stdio':_0x235348,'env':process.env,'shell':![]}),_0x11d2bb=_0xfcbd39[_0x744ead(0xd8)];if(_0x11d2bb===0x0)return{'ok':!![],'status':0x0};let _0x5ba512=_0x744ead(0xc5)+(_0x11d2bb??_0x744ead(0xd3));if(_0x235348===_0x744ead(0xd1)){const _0x1cd0e5=_0xfcbd39[_0x744ead(0xda)]?_0xfcbd39[_0x744ead(0xda)][_0x744ead(0xd7)]()[_0x744ead(0xd9)]():'',_0x5d2521=_0xfcbd39[_0x744ead(0xc4)]?_0xfcbd39[_0x744ead(0xc4)][_0x744ead(0xd7)]()['trim']():'';if(_0x1cd0e5)_0x5ba512=_0x1cd0e5;else{if(_0x5d2521)_0x5ba512=_0x5d2521;}}return{'ok':![],'status':_0x11d2bb??null,'error':_0x5ba512};}export function runNpxSkillsAddGlobal(_0x4d2422,_0x41a533,_0x5664e0){const _0x1546d7=a212_0x37e5e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b3d4a=_0x5664e0?.['stdio']??_0x1546d7(0xce),_0x47613f=resolveNpmBin(_0x1546d7(0xe0)),_0x4f094a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x41a533,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3b1f8f=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x41a533,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1546d7(0xe1)]('\x20');console[_0x1546d7(0xd6)]('*\x20'+_0x3b1f8f);const _0x2be6c5=spawnSync(_0x47613f,_0x4f094a,{'cwd':_0x4d2422,'stdio':_0x5b3d4a,'env':process.env,'shell':![]}),_0x2c1374=_0x2be6c5[_0x1546d7(0xd8)];if(_0x2c1374===0x0)return{'ok':!![],'status':0x0};let _0x693f7f=_0x1546d7(0xc5)+(_0x2c1374??_0x1546d7(0xd3));if(_0x5b3d4a==='pipe'){const _0x4647bb=_0x2be6c5[_0x1546d7(0xda)]?_0x2be6c5[_0x1546d7(0xda)]['toString']()[_0x1546d7(0xd9)]():'',_0x2cd7f0=_0x2be6c5['stdout']?_0x2be6c5[_0x1546d7(0xc4)][_0x1546d7(0xd7)]()[_0x1546d7(0xd9)]():'';if(_0x4647bb)_0x693f7f=_0x4647bb;else{if(_0x2cd7f0)_0x693f7f=_0x2cd7f0;}}return{'ok':![],'status':_0x2c1374??null,'error':_0x693f7f};}
@@ -1 +1 @@
1
- function a213_0x30e1(){const _0x8ff75=['command','test','durationMs','2115005EdfoEE','[REDACTED]','stringify','3498417GFQijE','message','12MqTVoC','6CdcBcX','entries','52807SIGqsV','rabetbase.command','7lBmVsy','409208OJAtVO','error','10AvJVHQ','874896gVSlsv','some','416163bPPwMR','flags','2994040EPymKn'];a213_0x30e1=function(){return _0x8ff75;};return a213_0x30e1();}(function(_0x3866d2,_0x4f37f0){const _0x1f01c9=a213_0x5785,_0xf12770=_0x3866d2();while(!![]){try{const _0x4d5acd=parseInt(_0x1f01c9(0x155))/0x1*(parseInt(_0x1f01c9(0x168))/0x2)+-parseInt(_0x1f01c9(0x153))/0x3*(-parseInt(_0x1f01c9(0x158))/0x4)+-parseInt(_0x1f01c9(0x163))/0x5+-parseInt(_0x1f01c9(0x15b))/0x6*(-parseInt(_0x1f01c9(0x157))/0x7)+-parseInt(_0x1f01c9(0x15f))/0x8+parseInt(_0x1f01c9(0x166))/0x9+-parseInt(_0x1f01c9(0x15a))/0xa*(parseInt(_0x1f01c9(0x15d))/0xb);if(_0x4d5acd===_0x4f37f0)break;else _0xf12770['push'](_0xf12770['shift']());}catch(_0x351475){_0xf12770['push'](_0xf12770['shift']());}}}(a213_0x30e1,0x35ed6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a213_0x5785(_0x41ed03,_0x597770){_0x41ed03=_0x41ed03-0x153;const _0x30e148=a213_0x30e1();let _0x5785a6=_0x30e148[_0x41ed03];return _0x5785a6;}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(_0x434937){const _0x16d052=a213_0x5785;return SENSITIVE_PATTERNS[_0x16d052(0x15c)](_0x5d996a=>_0x5d996a[_0x16d052(0x161)](_0x434937));}function sanitizeFlags(_0x4c5c90){const _0x33763c=a213_0x5785,_0x509f4d={};for(const [_0x14ab47,_0x516e5a]of Object[_0x33763c(0x154)](_0x4c5c90)){isSensitiveKey(_0x14ab47)?_0x509f4d[_0x14ab47]=_0x516e5a!=null&&_0x516e5a!==''?_0x33763c(0x164):_0x516e5a:_0x509f4d[_0x14ab47]=_0x516e5a;}return _0x509f4d;}export async function reportCommandTrace(_0xb58db9){const _0x285d43=a213_0x5785;try{const _0x35fc2=sanitizeFlags(_0xb58db9[_0x285d43(0x15e)]);await sendCliTraceLog({'spanName':_0x285d43(0x156),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xb58db9['service'],'command.name':_0xb58db9[_0x285d43(0x160)],'command.flags':JSON[_0x285d43(0x165)](_0x35fc2),..._0xb58db9[_0x285d43(0x162)]!=null?{'command.duration_ms':_0xb58db9[_0x285d43(0x162)]}:{},..._0xb58db9[_0x285d43(0x159)]?{'command.error':_0xb58db9[_0x285d43(0x159)]instanceof Error?_0xb58db9['error'][_0x285d43(0x167)]:String(_0xb58db9[_0x285d43(0x159)])}:{}}});}catch{}}
1
+ function a213_0x2a27(){const _0x10048b=['243657CjrQkD','766087FJloNG','error','6qmPzqm','stringify','1416786tDNyhb','1096860ncRkgv','12WSqOvH','136QdFWyj','11957Olxwfc','flags','message','test','[REDACTED]','514205aMevDe','service','2259732ALmwOs','durationMs','156yzajkn','1EZsEEr','command','80xXkovX'];a213_0x2a27=function(){return _0x10048b;};return a213_0x2a27();}(function(_0x202cab,_0x238d95){const _0x43ddf4=a213_0x2f8f,_0x11d1d2=_0x202cab();while(!![]){try{const _0x2d3ec7=-parseInt(_0x43ddf4(0x18b))/0x1*(parseInt(_0x43ddf4(0x17e))/0x2)+-parseInt(_0x43ddf4(0x17d))/0x3+-parseInt(_0x43ddf4(0x17f))/0x4*(parseInt(_0x43ddf4(0x186))/0x5)+parseInt(_0x43ddf4(0x17b))/0x6*(-parseInt(_0x43ddf4(0x179))/0x7)+parseInt(_0x43ddf4(0x180))/0x8*(-parseInt(_0x43ddf4(0x178))/0x9)+parseInt(_0x43ddf4(0x18d))/0xa*(parseInt(_0x43ddf4(0x181))/0xb)+parseInt(_0x43ddf4(0x188))/0xc*(parseInt(_0x43ddf4(0x18a))/0xd);if(_0x2d3ec7===_0x238d95)break;else _0x11d1d2['push'](_0x11d1d2['shift']());}catch(_0x193d23){_0x11d1d2['push'](_0x11d1d2['shift']());}}}(a213_0x2a27,0x5a37b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x40706d){const _0x176609=a213_0x2f8f;return SENSITIVE_PATTERNS['some'](_0x64686a=>_0x64686a[_0x176609(0x184)](_0x40706d));}function a213_0x2f8f(_0x5cf748,_0x505aca){_0x5cf748=_0x5cf748-0x178;const _0x2a27bf=a213_0x2a27();let _0x2f8f31=_0x2a27bf[_0x5cf748];return _0x2f8f31;}function sanitizeFlags(_0x5b2d48){const _0x240e94=a213_0x2f8f,_0x45ed65={};for(const [_0x88c62e,_0x329d0a]of Object['entries'](_0x5b2d48)){isSensitiveKey(_0x88c62e)?_0x45ed65[_0x88c62e]=_0x329d0a!=null&&_0x329d0a!==''?_0x240e94(0x185):_0x329d0a:_0x45ed65[_0x88c62e]=_0x329d0a;}return _0x45ed65;}export async function reportCommandTrace(_0x468730){const _0x347a70=a213_0x2f8f;try{const _0x714334=sanitizeFlags(_0x468730[_0x347a70(0x182)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x468730[_0x347a70(0x187)],'command.name':_0x468730[_0x347a70(0x18c)],'command.flags':JSON[_0x347a70(0x17c)](_0x714334),..._0x468730[_0x347a70(0x189)]!=null?{'command.duration_ms':_0x468730[_0x347a70(0x189)]}:{},..._0x468730[_0x347a70(0x17a)]?{'command.error':_0x468730[_0x347a70(0x17a)]instanceof Error?_0x468730[_0x347a70(0x17a)][_0x347a70(0x183)]:String(_0x468730[_0x347a70(0x17a)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x855320,_0x1f80ff){var _0x27c88b=a214_0xb21b,_0x582a9a=_0x855320();while(!![]){try{var _0x185b05=parseInt(_0x27c88b(0x157))/0x1*(-parseInt(_0x27c88b(0x15d))/0x2)+-parseInt(_0x27c88b(0x15a))/0x3+parseInt(_0x27c88b(0x15b))/0x4*(-parseInt(_0x27c88b(0x151))/0x5)+parseInt(_0x27c88b(0x15c))/0x6*(-parseInt(_0x27c88b(0x159))/0x7)+-parseInt(_0x27c88b(0x155))/0x8*(-parseInt(_0x27c88b(0x150))/0x9)+parseInt(_0x27c88b(0x156))/0xa+-parseInt(_0x27c88b(0x15e))/0xb*(-parseInt(_0x27c88b(0x154))/0xc);if(_0x185b05===_0x1f80ff)break;else _0x582a9a['push'](_0x582a9a['shift']());}catch(_0x51bd15){_0x582a9a['push'](_0x582a9a['shift']());}}}(a214_0x41a2,0xcb5d5));function a214_0xb21b(_0x4b79d1,_0x5a0d23){_0x4b79d1=_0x4b79d1-0x150;var _0x41a21d=a214_0x41a2();var _0xb21b3f=_0x41a21d[_0x4b79d1];return _0xb21b3f;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a214_0x41a2(){var _0x555a2b=['32IfZzll','486198JgqHUB','4234UEPTpx','187wFeLWh','167058rPHulo','146420FYyjix','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','2755488NdsESc','368DZFDqJ','3970270PSqYpj','667ARgDsh','error','126QSJsgL','3649803hCBxgo'];a214_0x41a2=function(){return _0x555a2b;};return a214_0x41a2();}export async function reportCliHelpTrace(_0x20f9a0,_0x393195){var _0x55844d=a214_0xb21b;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x20f9a0,..._0x393195?.[_0x55844d(0x153)]&&{'rabetbase.help.service':_0x393195[_0x55844d(0x153)]}}});}catch(_0x536484){console[_0x55844d(0x158)](_0x55844d(0x152),_0x536484);}}
1
+ function a214_0x5d6f(){var _0xc2eb91=['2676812JVeRUg','cli.help','327DXnAaO','7924378mOdIhp','7CICaJq','service','5CSqnRl','8KzMrcT','5298vwTEsn','244972dCdJPi','1535406TqpuHu','Failed\x20to\x20report\x20CLI\x20help\x20trace:','3893180WRSGIF','5399991lonXef'];a214_0x5d6f=function(){return _0xc2eb91;};return a214_0x5d6f();}function a214_0x2e19(_0x4e84ca,_0xab7e6b){_0x4e84ca=_0x4e84ca-0xaa;var _0x5d6f90=a214_0x5d6f();var _0x2e19c2=_0x5d6f90[_0x4e84ca];return _0x2e19c2;}(function(_0xf3bfa1,_0x20e9c8){var _0x54f0c3=a214_0x2e19,_0x1d2b73=_0xf3bfa1();while(!![]){try{var _0x3c6036=-parseInt(_0x54f0c3(0xaf))/0x1+parseInt(_0x54f0c3(0xae))/0x2*(-parseInt(_0x54f0c3(0xb6))/0x3)+-parseInt(_0x54f0c3(0xb4))/0x4*(-parseInt(_0x54f0c3(0xac))/0x5)+-parseInt(_0x54f0c3(0xb0))/0x6*(parseInt(_0x54f0c3(0xaa))/0x7)+-parseInt(_0x54f0c3(0xad))/0x8*(parseInt(_0x54f0c3(0xb3))/0x9)+parseInt(_0x54f0c3(0xb2))/0xa+parseInt(_0x54f0c3(0xb7))/0xb;if(_0x3c6036===_0x20e9c8)break;else _0x1d2b73['push'](_0x1d2b73['shift']());}catch(_0x49dd48){_0x1d2b73['push'](_0x1d2b73['shift']());}}}(a214_0x5d6f,0x5f0ba));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5b6ca0,_0x515341){var _0x647c0b=a214_0x2e19;try{await sendCliTraceLog({'spanName':_0x647c0b(0xb5),'logData':{'rabetbase.help.kind':_0x5b6ca0,..._0x515341?.[_0x647c0b(0xab)]&&{'rabetbase.help.service':_0x515341['service']}}});}catch(_0x4e8d60){console['error'](_0x647c0b(0xb1),_0x4e8d60);}}
@@ -1 +1 @@
1
- (function(_0x4204b1,_0x51a016){const _0x36c42d=a215_0x295b,_0x5271e9=_0x4204b1();while(!![]){try{const _0x3396bd=-parseInt(_0x36c42d(0x176))/0x1*(parseInt(_0x36c42d(0x178))/0x2)+-parseInt(_0x36c42d(0x185))/0x3*(-parseInt(_0x36c42d(0x17f))/0x4)+parseInt(_0x36c42d(0x177))/0x5*(parseInt(_0x36c42d(0x17d))/0x6)+parseInt(_0x36c42d(0x186))/0x7*(-parseInt(_0x36c42d(0x180))/0x8)+-parseInt(_0x36c42d(0x181))/0x9*(parseInt(_0x36c42d(0x17e))/0xa)+parseInt(_0x36c42d(0x17b))/0xb*(parseInt(_0x36c42d(0x179))/0xc)+parseInt(_0x36c42d(0x187))/0xd*(parseInt(_0x36c42d(0x17c))/0xe);if(_0x3396bd===_0x51a016)break;else _0x5271e9['push'](_0x5271e9['shift']());}catch(_0x9dc534){_0x5271e9['push'](_0x5271e9['shift']());}}}(a215_0x3f5c,0x47fb8));function a215_0x295b(_0x1ce3e0,_0x5600fd){_0x1ce3e0=_0x1ce3e0-0x175;const _0x3f5c34=a215_0x3f5c();let _0x295b69=_0x3f5c34[_0x1ce3e0];return _0x295b69;}function a215_0x3f5c(){const _0x2968ad=['156AbisxX','production','256663CriBlx','2450NDJEdT','30KGecJb','103540YpTUWn','1000948TmznhW','8lqPBzl','117EQHKbb','email','tenant_code','username','3vWtAcY','2364467EEauxq','3237nStthu','tenant','unknown','40603NqKixX','210685yAZCRf','2XpWwOQ'];a215_0x3f5c=function(){return _0x2968ad;};return a215_0x3f5c();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5b279c=a215_0x295b,_0x547cdb=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x510722=_0x547cdb?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5b279c(0x175)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x5b279c(0x17a))}),setUserContext({'id':_0x510722?.['id'],'username':_0x510722?.[_0x5b279c(0x184)],'nickname':_0x510722?.['nickname'],'email':_0x510722?.[_0x5b279c(0x182)],'tenantCode':_0x510722?.[_0x5b279c(0x188)][_0x5b279c(0x183)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x547cdb;}
1
+ function a215_0x49a3(_0x510689,_0xce26b0){_0x510689=_0x510689-0x1df;const _0x229750=a215_0x2297();let _0x49a37f=_0x229750[_0x510689];return _0x49a37f;}(function(_0x372602,_0x41d234){const _0x34f0a2=a215_0x49a3,_0x1224ad=_0x372602();while(!![]){try{const _0x3dad44=parseInt(_0x34f0a2(0x1e5))/0x1+parseInt(_0x34f0a2(0x1ea))/0x2+-parseInt(_0x34f0a2(0x1ec))/0x3+parseInt(_0x34f0a2(0x1ee))/0x4*(parseInt(_0x34f0a2(0x1e6))/0x5)+parseInt(_0x34f0a2(0x1e2))/0x6*(parseInt(_0x34f0a2(0x1eb))/0x7)+-parseInt(_0x34f0a2(0x1e1))/0x8+-parseInt(_0x34f0a2(0x1e0))/0x9;if(_0x3dad44===_0x41d234)break;else _0x1224ad['push'](_0x1224ad['shift']());}catch(_0x3af8a8){_0x1224ad['push'](_0x1224ad['shift']());}}}(a215_0x2297,0x8b163));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a215_0x2297(){const _0x5137a9=['username','634626JOMOlV','2554640qihkqF','54TvAnIg','tenant_code','unknown','178743tnyHSl','89035SkPsJj','email','daily','tenant','1500024mhNDlh','164199FRNmrL','3051762aVSzYy','production','188FLtLZM'];a215_0x2297=function(){return _0x5137a9;};return a215_0x2297();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x113e3c=a215_0x49a3,_0x4c8b9d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xc15cae=_0x4c8b9d?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x113e3c(0x1e4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x113e3c(0x1e8):_0x113e3c(0x1ed))}),setUserContext({'id':_0xc15cae?.['id'],'username':_0xc15cae?.[_0x113e3c(0x1df)],'nickname':_0xc15cae?.['nickname'],'email':_0xc15cae?.[_0x113e3c(0x1e7)],'tenantCode':_0xc15cae?.[_0x113e3c(0x1e9)][_0x113e3c(0x1e3)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4c8b9d;}
@@ -1 +1 @@
1
- function a216_0x5623(){const _0x118fa9=['10INpMmM','3858717ooZHfU','48rlbiio','2359164WOSqvl','4619975YIvfaI','28720164wvIVkD','177777zkEgrZ','exit','570941TlTbOi','8PNSvvC','443529JQnnDW','SIGTERM','then','4qvKIMv','SIGINT','once'];a216_0x5623=function(){return _0x118fa9;};return a216_0x5623();}(function(_0x116388,_0x3c4ab9){const _0x2019f1=a216_0x5910,_0x3b3983=_0x116388();while(!![]){try{const _0x4607dc=parseInt(_0x2019f1(0x1c5))/0x1+-parseInt(_0x2019f1(0x1be))/0x2+parseInt(_0x2019f1(0x1bc))/0x3*(-parseInt(_0x2019f1(0x1c8))/0x4)+parseInt(_0x2019f1(0x1bf))/0x5+parseInt(_0x2019f1(0x1bd))/0x6*(-parseInt(_0x2019f1(0x1c3))/0x7)+-parseInt(_0x2019f1(0x1c4))/0x8*(-parseInt(_0x2019f1(0x1c1))/0x9)+parseInt(_0x2019f1(0x1bb))/0xa*(parseInt(_0x2019f1(0x1c0))/0xb);if(_0x4607dc===_0x3c4ab9)break;else _0x3b3983['push'](_0x3b3983['shift']());}catch(_0x564b73){_0x3b3983['push'](_0x3b3983['shift']());}}}(a216_0x5623,0xd6d04));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a216_0x5910(_0x257b01,_0x29f073){_0x257b01=_0x257b01-0x1ba;const _0x562399=a216_0x5623();let _0x5910f9=_0x562399[_0x257b01];return _0x5910f9;}export function registerOtelShutdownOnExit(){const _0x1d3c06=a216_0x5910;process[_0x1d3c06(0x1ba)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x996106=()=>{const _0x371bf1=_0x1d3c06;void flushOtelNodeIfUsed()[_0x371bf1(0x1c7)](()=>process[_0x371bf1(0x1c2)](0x0));};process[_0x1d3c06(0x1ba)](_0x1d3c06(0x1c9),_0x996106),process['once'](_0x1d3c06(0x1c6),_0x996106);}export async function exitWithOtelShutdown(_0x277c69){const _0x3606be=a216_0x5910;await flushOtelNodeIfUsed(),process[_0x3606be(0x1c2)](_0x277c69);}
1
+ (function(_0x484ee5,_0x263c4f){const _0x48da28=a216_0x1be2,_0x557483=_0x484ee5();while(!![]){try{const _0x5e35cf=parseInt(_0x48da28(0x10b))/0x1+parseInt(_0x48da28(0x103))/0x2*(-parseInt(_0x48da28(0x10f))/0x3)+-parseInt(_0x48da28(0x101))/0x4*(-parseInt(_0x48da28(0x10d))/0x5)+-parseInt(_0x48da28(0x106))/0x6*(parseInt(_0x48da28(0x104))/0x7)+-parseInt(_0x48da28(0x10c))/0x8+parseInt(_0x48da28(0x105))/0x9+-parseInt(_0x48da28(0x107))/0xa*(-parseInt(_0x48da28(0x10e))/0xb);if(_0x5e35cf===_0x263c4f)break;else _0x557483['push'](_0x557483['shift']());}catch(_0x3e695d){_0x557483['push'](_0x557483['shift']());}}}(a216_0x3c1b,0x5307e));import{shutdownTraces}from'@lovrabet/otel-logger';function a216_0x3c1b(){const _0x2d585c=['SIGTERM','2YXPQLO','1485057pPvtxN','1283346vuijTz','18FgKmSh','10RzzjOO','once','beforeExit','exit','662320XyvfEe','1766088vqzqQd','49420pNaidV','3797651bXvTTp','540537MptSoJ','SIGINT','92ZcBkgd'];a216_0x3c1b=function(){return _0x2d585c;};return a216_0x3c1b();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1c9399=a216_0x1be2;process[_0x1c9399(0x108)](_0x1c9399(0x109),()=>{void flushOtelNodeIfUsed();});const _0x1f3676=()=>{const _0x117048=_0x1c9399;void flushOtelNodeIfUsed()['then'](()=>process[_0x117048(0x10a)](0x0));};process[_0x1c9399(0x108)](_0x1c9399(0x110),_0x1f3676),process['once'](_0x1c9399(0x102),_0x1f3676);}function a216_0x1be2(_0x287393,_0x3c2717){_0x287393=_0x287393-0x101;const _0x3c1b9d=a216_0x3c1b();let _0x1be2c7=_0x3c1b9d[_0x287393];return _0x1be2c7;}export async function exitWithOtelShutdown(_0xfb4c11){const _0x1e9eb5=a216_0x1be2;await flushOtelNodeIfUsed(),process[_0x1e9eb5(0x10a)](_0xfb4c11);}
@@ -1 +1 @@
1
- const a217_0x4ae7a2=a217_0x4c02;(function(_0x455e35,_0x8ac77e){const _0x1e7b44=a217_0x4c02,_0x8402c8=_0x455e35();while(!![]){try{const _0x111836=parseInt(_0x1e7b44(0xbb))/0x1+-parseInt(_0x1e7b44(0xc2))/0x2+-parseInt(_0x1e7b44(0xb9))/0x3*(-parseInt(_0x1e7b44(0xb7))/0x4)+parseInt(_0x1e7b44(0xb5))/0x5+parseInt(_0x1e7b44(0xbf))/0x6*(parseInt(_0x1e7b44(0xc1))/0x7)+parseInt(_0x1e7b44(0xb6))/0x8*(-parseInt(_0x1e7b44(0xba))/0x9)+-parseInt(_0x1e7b44(0xb8))/0xa;if(_0x111836===_0x8ac77e)break;else _0x8402c8['push'](_0x8402c8['shift']());}catch(_0x3f8de4){_0x8402c8['push'](_0x8402c8['shift']());}}}(a217_0x3e15,0x5265c));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a217_0x3e15(){const _0x54a2f7=['2443ZBbNss','987834bcULor','630515tbjpib','4088VTRZNx','853052TAvufF','6381770DfkyYw','9uAIjMs','702KmgjRc','335579hTDDTX','version','spanName','rabetbase-cli','7014jHaQnm','manual'];a217_0x3e15=function(){return _0x54a2f7;};return a217_0x3e15();}function a217_0x4c02(_0x53e6be,_0x4bda56){_0x53e6be=_0x53e6be-0xb5;const _0x3e1568=a217_0x3e15();let _0x4c025b=_0x3e1568[_0x53e6be];return _0x4c025b;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a217_0x4ae7a2(0xbe);export async function sendCliTraceLog(_0x9744f){const _0x5c3df0=a217_0x4ae7a2;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x9744f['traceName']??DEFAULT_TRACE_NAME,'version':_0x9744f[_0x5c3df0(0xbc)]??getCliVersion(),'spanName':_0x9744f[_0x5c3df0(0xbd)],'eventType':_0x5c3df0(0xc0),'logData':_0x9744f['logData'],..._0x9744f['traceparent']&&{'traceparent':_0x9744f['traceparent']}});}
1
+ const a217_0x34ccdd=a217_0x43e6;(function(_0x4be0b6,_0x582105){const _0x93796b=a217_0x43e6,_0x3c80b0=_0x4be0b6();while(!![]){try{const _0xa30e2c=-parseInt(_0x93796b(0x13c))/0x1*(-parseInt(_0x93796b(0x140))/0x2)+parseInt(_0x93796b(0x13e))/0x3*(-parseInt(_0x93796b(0x138))/0x4)+parseInt(_0x93796b(0x135))/0x5+parseInt(_0x93796b(0x134))/0x6+parseInt(_0x93796b(0x137))/0x7+parseInt(_0x93796b(0x13f))/0x8*(parseInt(_0x93796b(0x139))/0x9)+-parseInt(_0x93796b(0x13b))/0xa;if(_0xa30e2c===_0x582105)break;else _0x3c80b0['push'](_0x3c80b0['shift']());}catch(_0x4c40f7){_0x3c80b0['push'](_0x3c80b0['shift']());}}}(a217_0x2dec,0xabc89));function a217_0x2dec(){const _0x23957c=['12dCioAL','manual','spanName','6728874JXFGlS','5762160Pwgehh','logData','8658587kWUnRS','88CqfSUt','12237273bxOQQg','traceparent','40488000oIvHHK','129711wqCDav','rabetbase-cli','122235suQDuV','8JoVpCg'];a217_0x2dec=function(){return _0x23957c;};return a217_0x2dec();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a217_0x43e6(_0x8a0588,_0x587eaa){_0x8a0588=_0x8a0588-0x132;const _0x2dec55=a217_0x2dec();let _0x43e659=_0x2dec55[_0x8a0588];return _0x43e659;}const DEFAULT_TRACE_NAME=a217_0x34ccdd(0x13d);export async function sendCliTraceLog(_0x5b80ac){const _0x4f7802=a217_0x34ccdd;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5b80ac['traceName']??DEFAULT_TRACE_NAME,'version':_0x5b80ac['version']??getCliVersion(),'spanName':_0x5b80ac[_0x4f7802(0x133)],'eventType':_0x4f7802(0x132),'logData':_0x5b80ac[_0x4f7802(0x136)],..._0x5b80ac[_0x4f7802(0x13a)]&&{'traceparent':_0x5b80ac[_0x4f7802(0x13a)]}});}
@@ -1 +1 @@
1
- const a218_0x26d4f8=a218_0x49ce;(function(_0x57b24d,_0x4c3a9b){const _0x4e742b=a218_0x49ce,_0x56db96=_0x57b24d();while(!![]){try{const _0x82118d=-parseInt(_0x4e742b(0x99))/0x1+parseInt(_0x4e742b(0x9b))/0x2*(-parseInt(_0x4e742b(0x9d))/0x3)+parseInt(_0x4e742b(0xa8))/0x4+parseInt(_0x4e742b(0xa0))/0x5*(-parseInt(_0x4e742b(0x98))/0x6)+-parseInt(_0x4e742b(0x96))/0x7*(-parseInt(_0x4e742b(0x9a))/0x8)+parseInt(_0x4e742b(0xa2))/0x9+-parseInt(_0x4e742b(0xa1))/0xa*(parseInt(_0x4e742b(0x9e))/0xb);if(_0x82118d===_0x4c3a9b)break;else _0x56db96['push'](_0x56db96['shift']());}catch(_0x5ef0eb){_0x56db96['push'](_0x56db96['shift']());}}}(a218_0x34c7,0xd8c31));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a218_0x26d4f8(0xa4);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a218_0x49ce(_0x5f3ddc,_0xc4c0f0){_0x5f3ddc=_0x5f3ddc-0x95;const _0x34c745=a218_0x34c7();let _0x49ce50=_0x34c745[_0x5f3ddc];return _0x49ce50;}export async function sendPlatformIssueCollectLog(_0x1e12f0){const _0x2815c8=a218_0x26d4f8;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1e12f0[_0x2815c8(0x97)],'issue.description':_0x1e12f0[_0x2815c8(0x9c)],..._0x1e12f0[_0x2815c8(0xa7)]?{'issue.description_original_bytes':_0x1e12f0[_0x2815c8(0xa7)][_0x2815c8(0xa6)],'issue.description_truncated':_0x1e12f0['sanitize'][_0x2815c8(0xa5)],'issue.description_redactions':_0x1e12f0[_0x2815c8(0xa7)][_0x2815c8(0x9f)],'issue.description_redaction_kinds':_0x1e12f0[_0x2815c8(0xa7)][_0x2815c8(0xa3)][_0x2815c8(0x95)](',')}:{}}});}function a218_0x34c7(){const _0x2a6c78=['10894863qlesRV','title','836214FqcVPX','1587832IGFYLJ','8gfslmz','62tvkxDR','description','5979ozyphl','9439969pEgXxj','redactionCount','50iuMNGg','10bjXcqf','14696217SNeIjw','redactionKinds','platform-issue-log-collect','truncated','originalBytes','sanitize','6400076ktwhMr','join'];a218_0x34c7=function(){return _0x2a6c78;};return a218_0x34c7();}
1
+ const a218_0x5d17db=a218_0x406c;(function(_0x536aa7,_0x1ca7af){const _0x3f9569=a218_0x406c,_0x130699=_0x536aa7();while(!![]){try{const _0x2c7aaa=-parseInt(_0x3f9569(0x1af))/0x1*(parseInt(_0x3f9569(0x1b9))/0x2)+parseInt(_0x3f9569(0x1bb))/0x3+parseInt(_0x3f9569(0x1c1))/0x4+-parseInt(_0x3f9569(0x1b3))/0x5*(-parseInt(_0x3f9569(0x1b6))/0x6)+parseInt(_0x3f9569(0x1b2))/0x7*(-parseInt(_0x3f9569(0x1b1))/0x8)+parseInt(_0x3f9569(0x1c0))/0x9+parseInt(_0x3f9569(0x1be))/0xa*(-parseInt(_0x3f9569(0x1b5))/0xb);if(_0x2c7aaa===_0x1ca7af)break;else _0x130699['push'](_0x130699['shift']());}catch(_0x4bbee3){_0x130699['push'](_0x130699['shift']());}}}(a218_0x8813,0x3cda3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a218_0x406c(_0x34dcd6,_0x4a4e24){_0x34dcd6=_0x34dcd6-0x1af;const _0x8813f6=a218_0x8813();let _0x406c72=_0x8813f6[_0x34dcd6];return _0x406c72;}function a218_0x8813(){const _0x365902=['408543DSgkuB','issue.log.collect','redactionCount','2273470MujUFw','originalBytes','3334365SjspZD','1805908KjmFeP','truncated','1wByKFy','sanitize','160504neRFCN','140ZWARSZ','5RfrRnx','join','22muDNqI','1946382zARmno','platform-issue-log-collect','description','354670QMIDRs','title'];a218_0x8813=function(){return _0x365902;};return a218_0x8813();}export const PLATFORM_ISSUE_TRACE_NAME=a218_0x5d17db(0x1b7);export const PLATFORM_ISSUE_SPAN_NAME=a218_0x5d17db(0x1bc);export async function sendPlatformIssueCollectLog(_0x24fb59){const _0x49cff5=a218_0x5d17db;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x24fb59[_0x49cff5(0x1ba)],'issue.description':_0x24fb59[_0x49cff5(0x1b8)],..._0x24fb59[_0x49cff5(0x1b0)]?{'issue.description_original_bytes':_0x24fb59[_0x49cff5(0x1b0)][_0x49cff5(0x1bf)],'issue.description_truncated':_0x24fb59[_0x49cff5(0x1b0)][_0x49cff5(0x1c2)],'issue.description_redactions':_0x24fb59[_0x49cff5(0x1b0)][_0x49cff5(0x1bd)],'issue.description_redaction_kinds':_0x24fb59[_0x49cff5(0x1b0)]['redactionKinds'][_0x49cff5(0x1b4)](',')}:{}}});}
@@ -1 +1 @@
1
- const a220_0x23ab2b=a220_0x47a1;(function(_0x197305,_0x342d40){const _0x36d908=a220_0x47a1,_0x5ec719=_0x197305();while(!![]){try{const _0x27726c=parseInt(_0x36d908(0x7a))/0x1+-parseInt(_0x36d908(0x67))/0x2*(-parseInt(_0x36d908(0x92))/0x3)+parseInt(_0x36d908(0x7c))/0x4+-parseInt(_0x36d908(0x97))/0x5*(parseInt(_0x36d908(0x96))/0x6)+-parseInt(_0x36d908(0x6a))/0x7+parseInt(_0x36d908(0x83))/0x8+-parseInt(_0x36d908(0x91))/0x9;if(_0x27726c===_0x342d40)break;else _0x5ec719['push'](_0x5ec719['shift']());}catch(_0xf4e27b){_0x5ec719['push'](_0x5ec719['shift']());}}}(a220_0x32c9,0x495f7));function a220_0x32c9(){const _0x37fe7d=['.claude','.qoder/skills/lovrabet/SKILL.md','990366ofxjPO','Trae\x20IDE','其他\x20(通用模板)','4053126cyGdeX','Cline\x20IDE','OpenCode\x20IDE','claude','cline','.cline','file','antigravity','CodeBuddy\x20IDE','.cursor/skills/rabetbase.md','.qoder/rules/rabetbase.md','OpenCode','.cline/skills/lovrabet/SKILL.md','Cursor','Antigravity','.trae','334757AMtkDG','trae','918964aLCPDh','.opencode','cursor','Cursor\x20IDE','.windsurf/workflows/rabetbase.md','codebuddy','Codex','4693080dsMFtS','Windsurf\x20IDE','.claude/skills/lovrabet/SKILL.md','SKILL.md.tpl','windsurf','opencode','通用模板\x20-\x20兜底方案','.codex/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Codex\x20IDE','.agent','codex','Windsurf','CodeBuddy','1853100IcARgn','3NstjEC','Cline','.codebuddy','Trae','6vmIHXn','2804315gfXTda','.cursor','qoder','.trae/skills/lovrabet/SKILL.md'];a220_0x32c9=function(){return _0x37fe7d;};return a220_0x32c9();}export const CORE_IDE_CONFIGS={'cursor':{'name':a220_0x23ab2b(0x77),'description':a220_0x23ab2b(0x7f),'folders':['.cursorrules',a220_0x23ab2b(0x98)],'files':[{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x73),'template':a220_0x23ab2b(0x86)}]},'windsurf':{'name':a220_0x23ab2b(0x8f),'description':a220_0x23ab2b(0x84),'folders':['.windsurf'],'files':[{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x80),'template':a220_0x23ab2b(0x86)}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a220_0x23ab2b(0x9b)],'files':[{'type':'file','path':a220_0x23ab2b(0x85),'template':a220_0x23ab2b(0x86)}]},'cline':{'name':a220_0x23ab2b(0x93),'description':a220_0x23ab2b(0x6b),'folders':[a220_0x23ab2b(0x6f)],'files':[{'type':'file','path':a220_0x23ab2b(0x76),'template':a220_0x23ab2b(0x86)}]},'codex':{'name':a220_0x23ab2b(0x82),'description':a220_0x23ab2b(0x8c),'folders':['.codex'],'files':[{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x8a),'template':'SKILL.md.tpl'}]},'opencode':{'name':a220_0x23ab2b(0x75),'description':a220_0x23ab2b(0x6c),'folders':[a220_0x23ab2b(0x7d)],'files':[{'type':a220_0x23ab2b(0x70),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a220_0x23ab2b(0x74),'template':a220_0x23ab2b(0x86)},{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x66),'template':a220_0x23ab2b(0x86)}]},'codebuddy':{'name':a220_0x23ab2b(0x90),'description':a220_0x23ab2b(0x72),'folders':[a220_0x23ab2b(0x94)],'files':[{'type':a220_0x23ab2b(0x70),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a220_0x23ab2b(0x86)}]},'trae':{'name':a220_0x23ab2b(0x95),'description':a220_0x23ab2b(0x68),'folders':[a220_0x23ab2b(0x79)],'files':[{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x9a),'template':a220_0x23ab2b(0x86)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a220_0x23ab2b(0x69),'description':a220_0x23ab2b(0x89),'folders':[a220_0x23ab2b(0x8d)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a220_0x23ab2b(0x86)}]},'antigravity':{'name':a220_0x23ab2b(0x78),'description':'Antigravity\x20IDE','folders':[a220_0x23ab2b(0x8d)],'files':[{'type':a220_0x23ab2b(0x70),'path':a220_0x23ab2b(0x8b),'template':a220_0x23ab2b(0x86)}]}};export const CORE_IDE_LIST=[a220_0x23ab2b(0x6d),a220_0x23ab2b(0x6e),a220_0x23ab2b(0x81),a220_0x23ab2b(0x8e),'cursor',a220_0x23ab2b(0x88),a220_0x23ab2b(0x99),'trae',a220_0x23ab2b(0x87)];export const IDE_LIST=[a220_0x23ab2b(0x71),a220_0x23ab2b(0x6d),a220_0x23ab2b(0x6e),a220_0x23ab2b(0x81),a220_0x23ab2b(0x8e),'cursor','opencode','qoder',a220_0x23ab2b(0x7b),a220_0x23ab2b(0x87),'agent'];function a220_0x47a1(_0x5aba3d,_0x1a23ae){_0x5aba3d=_0x5aba3d-0x66;const _0x32c920=a220_0x32c9();let _0x47a182=_0x32c920[_0x5aba3d];return _0x47a182;}export const ALL_CORE_IDES=[a220_0x23ab2b(0x7e),a220_0x23ab2b(0x87),a220_0x23ab2b(0x6d),'cline',a220_0x23ab2b(0x8e),a220_0x23ab2b(0x88),'qoder',a220_0x23ab2b(0x81),a220_0x23ab2b(0x7b)];
1
+ function a220_0x5a27(){const _0x578d04=['SKILL.md.tpl','Windsurf','trae','codebuddy','.claude/skills/lovrabet/SKILL.md','1741302klFzMY','.cursor','Antigravity','.opencode/skills/lovrabet/SKILL.md','Windsurf\x20IDE','Cline','file','619940YrIeNf','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','1518408AqCcZl','qoder','5201vsekQl','.codebuddy','.windsurf/workflows/rabetbase.md','opencode','5684049WspLbJ','Trae\x20IDE','.agent/skills/lovrabet/SKILL.md','Codex\x20IDE','.cursor/skills/rabetbase.md','Qoder','5orLLvp','Trae','windsurf','.codex','.agent','.cursorrules','codex','CodeBuddy\x20IDE','Antigravity\x20IDE','.codex/skills/lovrabet/SKILL.md','Claude\x20Code','Cursor','cline','Cursor\x20IDE','1768277rpyDVl','cursor','Cline\x20IDE','50616tWgcJE','claude','.opencode','4DFReDA','.windsurf','.qoder','通用模板\x20-\x20兜底方案','CodeBuddy'];a220_0x5a27=function(){return _0x578d04;};return a220_0x5a27();}const a220_0xf3d8d7=a220_0xb690;(function(_0x2bf727,_0x5260f8){const _0x27eeb0=a220_0xb690,_0x2e8ab1=_0x2bf727();while(!![]){try{const _0x223c5f=parseInt(_0x27eeb0(0x15d))/0x1*(-parseInt(_0x27eeb0(0x17b))/0x2)+parseInt(_0x27eeb0(0x15b))/0x3+parseInt(_0x27eeb0(0x18c))/0x4*(-parseInt(_0x27eeb0(0x167))/0x5)+parseInt(_0x27eeb0(0x185))/0x6+parseInt(_0x27eeb0(0x175))/0x7+parseInt(_0x27eeb0(0x178))/0x8+-parseInt(_0x27eeb0(0x161))/0x9;if(_0x223c5f===_0x5260f8)break;else _0x2e8ab1['push'](_0x2e8ab1['shift']());}catch(_0x5d5992){_0x2e8ab1['push'](_0x2e8ab1['shift']());}}}(a220_0x5a27,0x3f127));export const CORE_IDE_CONFIGS={'cursor':{'name':a220_0xf3d8d7(0x172),'description':a220_0xf3d8d7(0x174),'folders':[a220_0xf3d8d7(0x16c),a220_0xf3d8d7(0x186)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x165),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a220_0xf3d8d7(0x181),'description':a220_0xf3d8d7(0x189),'folders':[a220_0xf3d8d7(0x17c)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x15f),'template':'SKILL.md.tpl'}]},'claude':{'name':a220_0xf3d8d7(0x171),'description':a220_0xf3d8d7(0x171),'folders':['.claude'],'files':[{'type':'file','path':a220_0xf3d8d7(0x184),'template':'SKILL.md.tpl'}]},'cline':{'name':a220_0xf3d8d7(0x18a),'description':a220_0xf3d8d7(0x177),'folders':['.cline'],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x15a),'template':a220_0xf3d8d7(0x180)}]},'codex':{'name':'Codex','description':a220_0xf3d8d7(0x164),'folders':[a220_0xf3d8d7(0x16a)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x170),'template':a220_0xf3d8d7(0x180)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a220_0xf3d8d7(0x17a)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x188),'template':'SKILL.md.tpl'}]},'qoder':{'name':a220_0xf3d8d7(0x166),'description':a220_0xf3d8d7(0x18d),'folders':[a220_0xf3d8d7(0x17d)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a220_0xf3d8d7(0x180)},{'type':a220_0xf3d8d7(0x18b),'path':'.qoder/skills/lovrabet/SKILL.md','template':a220_0xf3d8d7(0x180)}]},'codebuddy':{'name':a220_0xf3d8d7(0x17f),'description':a220_0xf3d8d7(0x16e),'folders':[a220_0xf3d8d7(0x15e)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a220_0xf3d8d7(0x180)}]},'trae':{'name':a220_0xf3d8d7(0x168),'description':a220_0xf3d8d7(0x162),'folders':['.trae'],'files':[{'type':a220_0xf3d8d7(0x18b),'path':'.trae/skills/lovrabet/SKILL.md','template':a220_0xf3d8d7(0x180)}]}};function a220_0xb690(_0x134ef6,_0x5f234d){_0x134ef6=_0x134ef6-0x15a;const _0x5a275c=a220_0x5a27();let _0xb690d7=_0x5a275c[_0x134ef6];return _0xb690d7;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a220_0xf3d8d7(0x17e),'folders':['.agent'],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x163),'template':a220_0xf3d8d7(0x180)}]},'antigravity':{'name':a220_0xf3d8d7(0x187),'description':a220_0xf3d8d7(0x16f),'folders':[a220_0xf3d8d7(0x16b)],'files':[{'type':a220_0xf3d8d7(0x18b),'path':a220_0xf3d8d7(0x163),'template':a220_0xf3d8d7(0x180)}]}};export const CORE_IDE_LIST=['claude','cline','codebuddy',a220_0xf3d8d7(0x16d),'cursor',a220_0xf3d8d7(0x160),'qoder',a220_0xf3d8d7(0x182),a220_0xf3d8d7(0x169)];export const IDE_LIST=['antigravity','claude','cline',a220_0xf3d8d7(0x183),a220_0xf3d8d7(0x16d),a220_0xf3d8d7(0x176),a220_0xf3d8d7(0x160),'qoder',a220_0xf3d8d7(0x182),a220_0xf3d8d7(0x169),'agent'];export const ALL_CORE_IDES=['cursor',a220_0xf3d8d7(0x169),a220_0xf3d8d7(0x179),a220_0xf3d8d7(0x173),a220_0xf3d8d7(0x16d),a220_0xf3d8d7(0x160),a220_0xf3d8d7(0x15c),'codebuddy',a220_0xf3d8d7(0x182)];
@@ -1 +1 @@
1
- (function(_0x5a7cce,_0x408751){const _0x66ff47=a221_0x41ec,_0x74705b=_0x5a7cce();while(!![]){try{const _0x216654=-parseInt(_0x66ff47(0x1d4))/0x1*(-parseInt(_0x66ff47(0x1da))/0x2)+-parseInt(_0x66ff47(0x1db))/0x3*(-parseInt(_0x66ff47(0x1d2))/0x4)+-parseInt(_0x66ff47(0x1d6))/0x5+-parseInt(_0x66ff47(0x1d7))/0x6*(-parseInt(_0x66ff47(0x1d5))/0x7)+parseInt(_0x66ff47(0x1d8))/0x8*(parseInt(_0x66ff47(0x1dc))/0x9)+parseInt(_0x66ff47(0x1d3))/0xa+-parseInt(_0x66ff47(0x1d1))/0xb*(parseInt(_0x66ff47(0x1d9))/0xc);if(_0x216654===_0x408751)break;else _0x74705b['push'](_0x74705b['shift']());}catch(_0xb90a62){_0x74705b['push'](_0x74705b['shift']());}}}(a221_0x579f,0x9310b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a221_0x579f(){const _0x4bc1c2=['1vZgvhD','49moMpfm','4401595MdphYo','78786VrTWHU','2847408ORBhCW','24yCQXpD','1990214ElPeVW','12321kBrnYi','27Yfatun','9751709bPGAvB','36BQegYJ','10639710fteKiV'];a221_0x579f=function(){return _0x4bc1c2;};return a221_0x579f();}import{CliErrors}from'../errors.js';function a221_0x41ec(_0x2bd1cb,_0x4e24e0){_0x2bd1cb=_0x2bd1cb-0x1d1;const _0x579fd5=a221_0x579f();let _0x41ecf0=_0x579fd5[_0x2bd1cb];return _0x41ecf0;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x4f79e7,_0x988967){const _0x47eab3=a221_0x2442,_0x3cfccd=_0x4f79e7();while(!![]){try{const _0x31fab7=parseInt(_0x47eab3(0x15a))/0x1+-parseInt(_0x47eab3(0x15e))/0x2+parseInt(_0x47eab3(0x161))/0x3*(-parseInt(_0x47eab3(0x15f))/0x4)+parseInt(_0x47eab3(0x162))/0x5*(parseInt(_0x47eab3(0x15d))/0x6)+-parseInt(_0x47eab3(0x15c))/0x7+-parseInt(_0x47eab3(0x160))/0x8+parseInt(_0x47eab3(0x15b))/0x9*(parseInt(_0x47eab3(0x159))/0xa);if(_0x31fab7===_0x988967)break;else _0x3cfccd['push'](_0x3cfccd['shift']());}catch(_0x3b6b23){_0x3cfccd['push'](_0x3cfccd['shift']());}}}(a221_0x5203,0x54f53));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a221_0x2442(_0xb1406f,_0x535ba3){_0xb1406f=_0xb1406f-0x159;const _0x5203b4=a221_0x5203();let _0x2442b3=_0x5203b4[_0xb1406f];return _0x2442b3;}function a221_0x5203(){const _0x9cc1df=['156290QaWbWP','61480gJKUrQ','201841TeVOea','1089kSuDFL','1448755FThLJM','102rmKRhC','7206rvDGfO','72YwAPTc','4731728WunQAw','54519gKJewi'];a221_0x5203=function(){return _0x9cc1df;};return a221_0x5203();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2961b1,_0x15a326){const _0x80daa6=a222_0x4689,_0x30d2f4=_0x2961b1();while(!![]){try{const _0x53c924=-parseInt(_0x80daa6(0xa6))/0x1+-parseInt(_0x80daa6(0xb0))/0x2+-parseInt(_0x80daa6(0xac))/0x3+parseInt(_0x80daa6(0xaf))/0x4+-parseInt(_0x80daa6(0xab))/0x5*(parseInt(_0x80daa6(0xaa))/0x6)+parseInt(_0x80daa6(0xb2))/0x7+parseInt(_0x80daa6(0xad))/0x8;if(_0x53c924===_0x15a326)break;else _0x30d2f4['push'](_0x30d2f4['shift']());}catch(_0x53dcfb){_0x30d2f4['push'](_0x30d2f4['shift']());}}}(a222_0x3590,0xdb7ad));function a222_0x4689(_0x2f9970,_0x1ed8a3){_0x2f9970=_0x2f9970-0xa6;const _0x35904e=a222_0x3590();let _0x4689e3=_0x35904e[_0x2f9970];return _0x4689e3;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2bdc2d=a222_0x4689,_0x338fcf=getTemplateBaseUrl(),_0x634c3d=[_0x338fcf+_0x2bdc2d(0xa8),_0x338fcf+'/config/index.json'];for(const _0x130ad3 of _0x634c3d){try{const _0x582073=await fetch(_0x130ad3,{'headers':{'Accept':_0x2bdc2d(0xae)}});if(!_0x582073['ok'])continue;const _0xffdfcd=await _0x582073[_0x2bdc2d(0xb3)]();if(!_0xffdfcd[_0x2bdc2d(0xb1)]?.[_0x2bdc2d(0xa7)]||!_0xffdfcd['sdk']?.[_0x2bdc2d(0xa9)]?.[_0x2bdc2d(0xa7)])continue;return _0xffdfcd;}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 _0x648669=Date['now']();if(hasCachedConfig){const _0x4d4991=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x648669-cacheTime<_0x4d4991)return cachedConfig;}const _0x8539b5=await fetchCdnConfig();return cachedConfig=_0x8539b5,cacheTime=_0x648669,hasCachedConfig=!![],_0x8539b5;}function a222_0x3590(){const _0x31a098=['/config.json','node','24QGnexT','777215mTtbxV','5053002JExvxJ','24343072XRjJiO','application/json','6492396DuutjK','2174020YXldBm','cli','9215857PoDpgh','json','1690429OSzest','stableVersion'];a222_0x3590=function(){return _0x31a098;};return a222_0x3590();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x3b7927,_0x287acb){const _0x55f9d1=a222_0x6896,_0x11546c=_0x3b7927();while(!![]){try{const _0x2d6b77=parseInt(_0x55f9d1(0xe6))/0x1+-parseInt(_0x55f9d1(0xeb))/0x2+-parseInt(_0x55f9d1(0xec))/0x3+parseInt(_0x55f9d1(0xef))/0x4+-parseInt(_0x55f9d1(0xe4))/0x5+-parseInt(_0x55f9d1(0xea))/0x6+parseInt(_0x55f9d1(0xe5))/0x7;if(_0x2d6b77===_0x287acb)break;else _0x11546c['push'](_0x11546c['shift']());}catch(_0x2f3701){_0x11546c['push'](_0x11546c['shift']());}}}(a222_0x303a,0x78109));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3deac4=a222_0x6896,_0x2e4380=getTemplateBaseUrl(),_0x32cee2=[_0x2e4380+_0x3deac4(0xee),_0x2e4380+_0x3deac4(0xed)];for(const _0x1cc52e of _0x32cee2){try{const _0x1a5f65=await fetch(_0x1cc52e,{'headers':{'Accept':'application/json'}});if(!_0x1a5f65['ok'])continue;const _0x3ef548=await _0x1a5f65[_0x3deac4(0xe9)]();if(!_0x3ef548['cli']?.[_0x3deac4(0xe7)]||!_0x3ef548['sdk']?.[_0x3deac4(0xe8)]?.[_0x3deac4(0xe7)])continue;return _0x3ef548;}catch{}}return null;}function a222_0x6896(_0x482e9d,_0xedba02){_0x482e9d=_0x482e9d-0xe4;const _0x303aad=a222_0x303a();let _0x68968c=_0x303aad[_0x482e9d];return _0x68968c;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0xcb4643=Date['now']();if(hasCachedConfig){const _0x52b282=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xcb4643-cacheTime<_0x52b282)return cachedConfig;}const _0xdb22df=await fetchCdnConfig();return cachedConfig=_0xdb22df,cacheTime=_0xcb4643,hasCachedConfig=!![],_0xdb22df;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a222_0x303a(){const _0x187ed0=['/config/index.json','/config.json','1494752lWRvpV','1791270GTGChm','8289232vGoYuS','800944EvUwvO','stableVersion','node','json','2663652tfEwFT','533518QyGLTu','2394204rATwFr'];a222_0x303a=function(){return _0x187ed0;};return a222_0x303a();}
@@ -1 +1 @@
1
- function a223_0x1bfa(_0x134dce,_0x226452){_0x134dce=_0x134dce-0x1d6;const _0x729d52=a223_0x729d();let _0x1bfaa9=_0x729d52[_0x134dce];return _0x1bfaa9;}const a223_0xe09bfd=a223_0x1bfa;(function(_0x127c2f,_0x3ec12a){const _0x24955a=a223_0x1bfa,_0x2c92f2=_0x127c2f();while(!![]){try{const _0x12e681=-parseInt(_0x24955a(0x1f7))/0x1+parseInt(_0x24955a(0x1dd))/0x2+-parseInt(_0x24955a(0x1e1))/0x3+-parseInt(_0x24955a(0x1f6))/0x4+parseInt(_0x24955a(0x1fc))/0x5+parseInt(_0x24955a(0x1df))/0x6*(parseInt(_0x24955a(0x1f9))/0x7)+-parseInt(_0x24955a(0x1e5))/0x8*(-parseInt(_0x24955a(0x1fa))/0x9);if(_0x12e681===_0x3ec12a)break;else _0x2c92f2['push'](_0x2c92f2['shift']());}catch(_0x46a1eb){_0x2c92f2['push'](_0x2c92f2['shift']());}}}(a223_0x729d,0x3984b));import a223_0x46c92e from'node:fs';import a223_0x278bac from'node:path';import a223_0x25795a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a223_0xe09bfd(0x1e9);function isNonNumericVersion(_0x25a72d){const _0x44c7ed=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x44c7ed['some'](_0x251300=>_0x251300['test'](_0x25a72d));}function getInstalledVersion(_0x3b70f3,_0x270eb6){const _0x247cde=a223_0xe09bfd;try{const _0x59b0e5=a223_0x278bac[_0x247cde(0x1e8)](_0x3b70f3,_0x247cde(0x1e6),_0x270eb6,_0x247cde(0x1fb));if(a223_0x46c92e[_0x247cde(0x1f2)](_0x59b0e5)){const _0x5e473b=JSON[_0x247cde(0x1ed)](a223_0x46c92e[_0x247cde(0x1dc)](_0x59b0e5,'utf-8'));return _0x5e473b[_0x247cde(0x1f5)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2bcea4=a223_0xe09bfd;try{const _0x20754c=await getCdnConfig();return _0x20754c?.[_0x2bcea4(0x1ea)]?.[_0x2bcea4(0x1e4)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x116a50=a223_0xe09bfd;try{const _0x12d50f=await getCdnConfig();return _0x12d50f?.[_0x116a50(0x1ea)]?.[_0x116a50(0x1e4)]?.['packageName']||_0x116a50(0x1d8);}catch{return _0x116a50(0x1d8);}}export async function checkSdkVersion(_0x34b858){const _0x2e2045=a223_0xe09bfd,_0x49c3d3=a223_0x278bac[_0x2e2045(0x1e8)](_0x34b858,'package.json'),[_0x23582d,_0x4cddd7]=await Promise[_0x2e2045(0x1e2)]([getSdkStableVersion(),getSdkPackageName()]),_0x3cbc52=_0x23582d||FALLBACK_MIN_SDK_VERSION;if(!a223_0x46c92e[_0x2e2045(0x1f2)](_0x49c3d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};try{const _0x53b565=JSON[_0x2e2045(0x1ed)](a223_0x46c92e['readFileSync'](_0x49c3d3,_0x2e2045(0x1d9))),_0x49fb4b=_0x53b565[_0x2e2045(0x1da)]||{},_0x1f0345=_0x53b565[_0x2e2045(0x1f8)]||{},_0x6e1f3f=_0x49fb4b[_0x4cddd7]||_0x1f0345[_0x4cddd7];if(!_0x6e1f3f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};let _0x555417=getInstalledVersion(_0x34b858,_0x4cddd7);!_0x555417&&(_0x555417=_0x6e1f3f);if(isNonNumericVersion(_0x6e1f3f))return{'installed':!![],'version':_0x555417,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};const _0x4632fe=a223_0x25795a[_0x2e2045(0x1f3)](_0x555417),_0x2a9be4=a223_0x25795a['coerce'](_0x3cbc52),_0x3e9079=_0x4632fe&&_0x2a9be4?a223_0x25795a['lt'](_0x4632fe,_0x2a9be4):![];return{'installed':!![],'version':_0x555417,'needsUpgrade':_0x3e9079,'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3cbc52,'packageName':_0x4cddd7,'stableVersion':_0x23582d};}}function a223_0x729d(){const _0x104203=['npm\x20install\x20','log','@lovrabet/sdk','utf8','dependencies','stableVersion','readFileSync','416018WSDIEq','latest','28866dETHls','\x20\x20\x20Stable\x20version:\x20','1364757stqGPk','all','needsUpgrade','node','1306808KwUWeF','node_modules','\x1b[33m','join','1.2.0','sdk','↪\x20SDK\x20update\x20available','packageName','parse','\x1b[0m','\x20\x20\x20Current\x20version:\x20','minVersion','\x1b[1m','existsSync','coerce','\x20\x20\x20Upgrade\x20command:\x20','version','1519812iHlGCA','435324jXCZmp','devDependencies','35WzYbjj','63NHGwGn','package.json','651350zepVGY'];a223_0x729d=function(){return _0x104203;};return a223_0x729d();}export function checkSdkVersionSync(_0x3167ce){const _0x2be076=a223_0xe09bfd,_0x246229=a223_0x278bac[_0x2be076(0x1e8)](_0x3167ce,_0x2be076(0x1fb)),_0x10e1b0=_0x2be076(0x1d8);if(!a223_0x46c92e[_0x2be076(0x1f2)](_0x246229))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};try{const _0x51ff06=JSON[_0x2be076(0x1ed)](a223_0x46c92e[_0x2be076(0x1dc)](_0x246229,_0x2be076(0x1d9))),_0xbc839c=_0x51ff06[_0x2be076(0x1da)]||{},_0x24f659=_0x51ff06[_0x2be076(0x1f8)]||{},_0x451f27=_0xbc839c[_0x10e1b0]||_0x24f659[_0x10e1b0];if(!_0x451f27)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};let _0x47c170=getInstalledVersion(_0x3167ce,_0x10e1b0);!_0x47c170&&(_0x47c170=_0x451f27);if(isNonNumericVersion(_0x451f27))return{'installed':!![],'version':_0x47c170,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};const _0xf7ed16=a223_0x25795a[_0x2be076(0x1f3)](_0x47c170),_0x47b5f8=_0xf7ed16?a223_0x25795a['lt'](_0xf7ed16,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x47c170,'needsUpgrade':_0x47b5f8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x10e1b0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x67c012){const _0x1d93ba=a223_0xe09bfd;if(!_0x67c012[_0x1d93ba(0x1e3)])return;const _0x14339e=_0x1d93ba(0x1e7),_0x27b494=_0x1d93ba(0x1ee),_0x20555a=_0x1d93ba(0x1f1),_0x588ddf=_0x67c012[_0x1d93ba(0x1ec)]||_0x1d93ba(0x1d8),_0x37eb14=_0x67c012[_0x1d93ba(0x1db)]||_0x67c012[_0x1d93ba(0x1f0)],_0x30664c=_0x1d93ba(0x1d6)+_0x588ddf+'@'+(_0x37eb14||_0x1d93ba(0x1de));console[_0x1d93ba(0x1d7)](),console[_0x1d93ba(0x1d7)](''+_0x14339e+_0x20555a+_0x1d93ba(0x1eb)+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1ef)+_0x588ddf+'@'+_0x67c012[_0x1d93ba(0x1f5)]+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1e0)+_0x37eb14+_0x27b494),console[_0x1d93ba(0x1d7)](_0x14339e+_0x1d93ba(0x1f4)+_0x30664c+_0x27b494),console[_0x1d93ba(0x1d7)]();}
1
+ const a223_0x5eeddd=a223_0x2e16;(function(_0x14c0c6,_0x43c7d1){const _0x279f5e=a223_0x2e16,_0x2301e3=_0x14c0c6();while(!![]){try{const _0x15b983=parseInt(_0x279f5e(0x1a4))/0x1+parseInt(_0x279f5e(0x1a8))/0x2+parseInt(_0x279f5e(0x1c6))/0x3+parseInt(_0x279f5e(0x1ba))/0x4*(parseInt(_0x279f5e(0x1c1))/0x5)+parseInt(_0x279f5e(0x1c7))/0x6+-parseInt(_0x279f5e(0x1c2))/0x7*(-parseInt(_0x279f5e(0x1b3))/0x8)+-parseInt(_0x279f5e(0x1a9))/0x9;if(_0x15b983===_0x43c7d1)break;else _0x2301e3['push'](_0x2301e3['shift']());}catch(_0x58ebde){_0x2301e3['push'](_0x2301e3['shift']());}}}(a223_0x5740,0x80f28));import a223_0x25315a from'node:fs';import a223_0x5922e1 from'node:path';import a223_0x4f0743 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a223_0x5740(){const _0x1cb3e7=['stableVersion','node','coerce','892fBmFaY','dependencies','↪\x20SDK\x20update\x20available','\x20\x20\x20Current\x20version:\x20','join','parse','existsSync','23235NvNRPj','7npSQhV','1.2.0','utf8','\x1b[1m','2092155vGQgcY','3389646CyIZku','packageName','npm\x20install\x20','\x20\x20\x20Upgrade\x20command:\x20','some','71138PDsnLS','log','@lovrabet/sdk','utf-8','213364wRqOrC','23428683MrcrjH','sdk','devDependencies','node_modules','\x20\x20\x20Stable\x20version:\x20','all','latest','package.json','\x1b[0m','minVersion','5239424MWqDFR','needsUpgrade','version','readFileSync'];a223_0x5740=function(){return _0x1cb3e7;};return a223_0x5740();}const FALLBACK_MIN_SDK_VERSION=a223_0x5eeddd(0x1c3);function isNonNumericVersion(_0x4ecb06){const _0x3e5518=a223_0x5eeddd,_0x3164b6=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3164b6[_0x3e5518(0x1a3)](_0x5678a2=>_0x5678a2['test'](_0x4ecb06));}function getInstalledVersion(_0xd9a530,_0x2bdd65){const _0x4ca408=a223_0x5eeddd;try{const _0x1e22b9=a223_0x5922e1['join'](_0xd9a530,_0x4ca408(0x1ac),_0x2bdd65,_0x4ca408(0x1b0));if(a223_0x25315a[_0x4ca408(0x1c0)](_0x1e22b9)){const _0x2ce951=JSON[_0x4ca408(0x1bf)](a223_0x25315a['readFileSync'](_0x1e22b9,_0x4ca408(0x1a7)));return _0x2ce951[_0x4ca408(0x1b5)]||null;}}catch{}return null;}function a223_0x2e16(_0x4375a1,_0x6b13e7){_0x4375a1=_0x4375a1-0x1a3;const _0x5740da=a223_0x5740();let _0x2e162d=_0x5740da[_0x4375a1];return _0x2e162d;}async function getSdkStableVersion(){const _0x36f89e=a223_0x5eeddd;try{const _0x5004a2=await getCdnConfig();return _0x5004a2?.['sdk']?.[_0x36f89e(0x1b8)]?.[_0x36f89e(0x1b7)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x29a701=a223_0x5eeddd;try{const _0x1d77c3=await getCdnConfig();return _0x1d77c3?.[_0x29a701(0x1aa)]?.[_0x29a701(0x1b8)]?.[_0x29a701(0x1c8)]||_0x29a701(0x1a6);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x8f7bcb){const _0x5d927d=a223_0x5eeddd,_0xef60bf=a223_0x5922e1[_0x5d927d(0x1be)](_0x8f7bcb,_0x5d927d(0x1b0)),[_0x37fffa,_0x1970b8]=await Promise[_0x5d927d(0x1ae)]([getSdkStableVersion(),getSdkPackageName()]),_0x43159c=_0x37fffa||FALLBACK_MIN_SDK_VERSION;if(!a223_0x25315a[_0x5d927d(0x1c0)](_0xef60bf))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x43159c,'packageName':_0x1970b8,'stableVersion':_0x37fffa};try{const _0x2f360a=JSON['parse'](a223_0x25315a[_0x5d927d(0x1b6)](_0xef60bf,_0x5d927d(0x1c4))),_0x4bd1a1=_0x2f360a[_0x5d927d(0x1bb)]||{},_0x1f1781=_0x2f360a[_0x5d927d(0x1ab)]||{},_0x1e5b63=_0x4bd1a1[_0x1970b8]||_0x1f1781[_0x1970b8];if(!_0x1e5b63)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x43159c,'packageName':_0x1970b8,'stableVersion':_0x37fffa};let _0x4d14ec=getInstalledVersion(_0x8f7bcb,_0x1970b8);!_0x4d14ec&&(_0x4d14ec=_0x1e5b63);if(isNonNumericVersion(_0x1e5b63))return{'installed':!![],'version':_0x4d14ec,'needsUpgrade':![],'minVersion':_0x43159c,'packageName':_0x1970b8,'stableVersion':_0x37fffa};const _0x3c9109=a223_0x4f0743[_0x5d927d(0x1b9)](_0x4d14ec),_0x3b3094=a223_0x4f0743[_0x5d927d(0x1b9)](_0x43159c),_0x3adfb0=_0x3c9109&&_0x3b3094?a223_0x4f0743['lt'](_0x3c9109,_0x3b3094):![];return{'installed':!![],'version':_0x4d14ec,'needsUpgrade':_0x3adfb0,'minVersion':_0x43159c,'packageName':_0x1970b8,'stableVersion':_0x37fffa};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x43159c,'packageName':_0x1970b8,'stableVersion':_0x37fffa};}}export function checkSdkVersionSync(_0x4533f5){const _0x2299c6=a223_0x5eeddd,_0x26637a=a223_0x5922e1[_0x2299c6(0x1be)](_0x4533f5,'package.json'),_0x1167dc=_0x2299c6(0x1a6);if(!a223_0x25315a[_0x2299c6(0x1c0)](_0x26637a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1167dc,'stableVersion':null};try{const _0xd5f47c=JSON['parse'](a223_0x25315a[_0x2299c6(0x1b6)](_0x26637a,_0x2299c6(0x1c4))),_0x3499c5=_0xd5f47c[_0x2299c6(0x1bb)]||{},_0x49c212=_0xd5f47c[_0x2299c6(0x1ab)]||{},_0x2c6c7b=_0x3499c5[_0x1167dc]||_0x49c212[_0x1167dc];if(!_0x2c6c7b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1167dc,'stableVersion':null};let _0x3f551f=getInstalledVersion(_0x4533f5,_0x1167dc);!_0x3f551f&&(_0x3f551f=_0x2c6c7b);if(isNonNumericVersion(_0x2c6c7b))return{'installed':!![],'version':_0x3f551f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1167dc,'stableVersion':null};const _0x5dd8f9=a223_0x4f0743[_0x2299c6(0x1b9)](_0x3f551f),_0x4f295e=_0x5dd8f9?a223_0x4f0743['lt'](_0x5dd8f9,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3f551f,'needsUpgrade':_0x4f295e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1167dc,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1167dc,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x810a85){const _0x455f3c=a223_0x5eeddd;if(!_0x810a85[_0x455f3c(0x1b4)])return;const _0x43a17d='\x1b[33m',_0x14f268=_0x455f3c(0x1b1),_0x512159=_0x455f3c(0x1c5),_0x29545d=_0x810a85[_0x455f3c(0x1c8)]||_0x455f3c(0x1a6),_0xf0fdb7=_0x810a85[_0x455f3c(0x1b7)]||_0x810a85[_0x455f3c(0x1b2)],_0xe6fe87=_0x455f3c(0x1c9)+_0x29545d+'@'+(_0xf0fdb7||_0x455f3c(0x1af));console[_0x455f3c(0x1a5)](),console['log'](''+_0x43a17d+_0x512159+_0x455f3c(0x1bc)+_0x14f268),console[_0x455f3c(0x1a5)](_0x43a17d+_0x455f3c(0x1bd)+_0x29545d+'@'+_0x810a85[_0x455f3c(0x1b5)]+_0x14f268),console['log'](_0x43a17d+_0x455f3c(0x1ad)+_0xf0fdb7+_0x14f268),console[_0x455f3c(0x1a5)](_0x43a17d+_0x455f3c(0x1ca)+_0xe6fe87+_0x14f268),console['log']();}
@@ -1 +1 @@
1
- (function(_0x36eeee,_0x408b7c){const _0x3a503f=a224_0x5326,_0x52e35c=_0x36eeee();while(!![]){try{const _0xe06041=parseInt(_0x3a503f(0x1eb))/0x1+-parseInt(_0x3a503f(0x1dd))/0x2*(-parseInt(_0x3a503f(0x1d5))/0x3)+parseInt(_0x3a503f(0x1e8))/0x4*(-parseInt(_0x3a503f(0x1fd))/0x5)+-parseInt(_0x3a503f(0x1e0))/0x6*(parseInt(_0x3a503f(0x1e3))/0x7)+parseInt(_0x3a503f(0x1f1))/0x8*(-parseInt(_0x3a503f(0x1e2))/0x9)+parseInt(_0x3a503f(0x1e6))/0xa+parseInt(_0x3a503f(0x1fb))/0xb;if(_0xe06041===_0x408b7c)break;else _0x52e35c['push'](_0x52e35c['shift']());}catch(_0x26094b){_0x52e35c['push'](_0x52e35c['shift']());}}}(a224_0x196a,0xd74c7));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a224_0x196a(){const _0x17e6f8=['\x1b[0m','coerce','latest','27094067jRygZh','join','5zMfSDt','package.json','currentVersion','30XVQyOT','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','validation','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Upgrade\x20command:\x20','minimumVersion','Minimum\x20supported:\x20','44744NMMQQs','↪\x20Critical\x20CLI\x20upgrade\x20required','↪\x20New\x20version\x20available','7967142adluvJ','belowMinimum','45HBPrSL','7IYVRZX','log','\x20\x20\x20Minimum\x20supported:\x20','7853060tFHdda','\x20\x20\x20Recommended\x20stable:\x20','3714268lIthyw','\x1b[33m','npm\x20install\x20-g\x20','1074504EhAxqy','parse','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','\x1b[31m','2253344JNcqcf','needsUpgrade','filter','utf-8','minimumVersionMessage','version','Current\x20version:\x20'];a224_0x196a=function(){return _0x17e6f8;};return a224_0x196a();}import a224_0x3d27ad from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a224_0x5326(_0x4e7f54,_0x6a2c00){_0x4e7f54=_0x4e7f54-0x1d3;const _0x196a97=a224_0x196a();let _0x5326f4=_0x196a97[_0x4e7f54];return _0x5326f4;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x170327){const _0x5cf164=a224_0x5326,_0x38850f=_0x170327[_0x5cf164(0x1d6)]||_0x5cf164(0x1fa);return _0x5cf164(0x1ea)+NPM_PACKAGE_NAME+'@'+_0x38850f;}function getCurrentCliVersion(){const _0x3c91d1=a224_0x5326;try{const _0x41f46f=fileURLToPath(import.meta.url),_0xc592ff=resolve(dirname(_0x41f46f),'../..'),_0x398d6f=resolve(_0xc592ff,_0x3c91d1(0x1d3)),_0x8f0b84=JSON[_0x3c91d1(0x1ec)](readFileSync(_0x398d6f,_0x3c91d1(0x1f4)));return _0x8f0b84[_0x3c91d1(0x1f6)]||_0x3c91d1(0x1ed);}catch{return _0x3c91d1(0x1ed);}}export async function checkCliVersion(){const _0x3822ce=a224_0x5326,_0x15545c=getCurrentCliVersion(),_0x440307=await getCliVersionPolicy(),_0x1b6949=_0x440307?.[_0x3822ce(0x1d6)]||null,_0x4198df=_0x440307?.[_0x3822ce(0x1db)]||null;let _0x56e0ba=![],_0x44841c=![];const _0x48e2e7=a224_0x3d27ad[_0x3822ce(0x1f9)](_0x15545c);if(_0x48e2e7&&_0x1b6949)try{const _0x20f0a9=a224_0x3d27ad['coerce'](_0x1b6949);if(_0x20f0a9)_0x56e0ba=a224_0x3d27ad['lt'](_0x48e2e7,_0x20f0a9);}catch{}if(_0x48e2e7&&_0x4198df)try{const _0x1ea432=a224_0x3d27ad['coerce'](_0x4198df);if(_0x1ea432)_0x44841c=a224_0x3d27ad['lt'](_0x48e2e7,_0x1ea432);}catch{}return _0x44841c&&(_0x56e0ba=!![]),{'currentVersion':_0x15545c,'stableVersion':_0x1b6949,'minimumVersion':_0x4198df,'needsUpgrade':_0x56e0ba,'belowMinimum':_0x44841c,'isPreRelease':![],'upgradeMessage':_0x440307?.[_0x3822ce(0x1ef)],'minimumVersionMessage':_0x440307?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x456197){const _0x4e23e0=a224_0x5326;if(!_0x456197[_0x4e23e0(0x1f2)]&&!_0x456197[_0x4e23e0(0x1e1)])return;const _0x5c8dcd=_0x4e23e0(0x1f0),_0x560e39=_0x4e23e0(0x1e9),_0x4f1fdd=_0x4e23e0(0x1f8),_0x1d9eab='\x1b[1m',_0xc7f7bb=getCliUpgradeCommand(_0x456197);console[_0x4e23e0(0x1e4)](),_0x456197[_0x4e23e0(0x1e1)]?(console[_0x4e23e0(0x1e4)](''+_0x5c8dcd+_0x1d9eab+_0x4e23e0(0x1de)+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x5c8dcd+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x456197[_0x4e23e0(0x1d4)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1db)]&&console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1e5)+_0x456197[_0x4e23e0(0x1db)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1d6)]&&_0x456197[_0x4e23e0(0x1d6)]!==_0x456197[_0x4e23e0(0x1db)]&&console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1e7)+_0x456197[_0x4e23e0(0x1d6)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1f5)]&&console['log'](_0x5c8dcd+'\x20\x20\x20'+_0x456197[_0x4e23e0(0x1f5)]+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x5c8dcd+_0x4e23e0(0x1d7)+_0xc7f7bb+_0x4f1fdd)):(console[_0x4e23e0(0x1e4)](''+_0x560e39+_0x1d9eab+_0x4e23e0(0x1df)+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x560e39+_0x4e23e0(0x1ee)+_0x456197['currentVersion']+_0x4f1fdd),console[_0x4e23e0(0x1e4)](_0x560e39+'\x20\x20\x20Stable\x20version:\x20'+_0x456197[_0x4e23e0(0x1d6)]+_0x4f1fdd),_0x456197[_0x4e23e0(0x1ef)]&&console['log'](_0x560e39+'\x20\x20\x20'+_0x456197[_0x4e23e0(0x1ef)]+_0x4f1fdd),console['log'](_0x560e39+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc7f7bb+_0x4f1fdd)),console[_0x4e23e0(0x1e4)]();}export function assertCliVersionSupported(_0x1f7056){const _0x35c09c=a224_0x5326;if(!_0x1f7056[_0x35c09c(0x1e1)])return;const _0x487383=[_0x1f7056[_0x35c09c(0x1f5)],_0x35c09c(0x1f7)+_0x1f7056[_0x35c09c(0x1d4)],_0x1f7056['minimumVersion']?_0x35c09c(0x1dc)+_0x1f7056['minimumVersion']:null,_0x35c09c(0x1da)+getCliUpgradeCommand(_0x1f7056)][_0x35c09c(0x1f3)](Boolean)[_0x35c09c(0x1fc)]('\x0a');throw CliErrors[_0x35c09c(0x1d8)](_0x35c09c(0x1d9),_0x487383);}
1
+ (function(_0x20d427,_0x88096a){const _0x32e68b=a224_0x4e5d,_0x36420b=_0x20d427();while(!![]){try{const _0x81647d=-parseInt(_0x32e68b(0xd4))/0x1+-parseInt(_0x32e68b(0xda))/0x2*(parseInt(_0x32e68b(0xe3))/0x3)+parseInt(_0x32e68b(0xd0))/0x4*(-parseInt(_0x32e68b(0xbd))/0x5)+parseInt(_0x32e68b(0xe2))/0x6*(parseInt(_0x32e68b(0xc4))/0x7)+parseInt(_0x32e68b(0xc7))/0x8+parseInt(_0x32e68b(0xc2))/0x9+-parseInt(_0x32e68b(0xd8))/0xa;if(_0x81647d===_0x88096a)break;else _0x36420b['push'](_0x36420b['shift']());}catch(_0x1159fa){_0x36420b['push'](_0x36420b['shift']());}}}(a224_0x5ec5,0x5e6e2));function a224_0x4e5d(_0x12ff40,_0x54a147){_0x12ff40=_0x12ff40-0xbd;const _0x5ec590=a224_0x5ec5();let _0x4e5df2=_0x5ec590[_0x12ff40];return _0x4e5df2;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a224_0xc08a71 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1e5045){const _0x24ac16=a224_0x4e5d,_0x7b6a22=_0x1e5045[_0x24ac16(0xc3)]||_0x24ac16(0xe1);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x7b6a22;}function getCurrentCliVersion(){const _0x4b38f1=a224_0x4e5d;try{const _0x213543=fileURLToPath(import.meta.url),_0x4994cc=resolve(dirname(_0x213543),_0x4b38f1(0xc0)),_0x33ebd2=resolve(_0x4994cc,_0x4b38f1(0xe0)),_0x565a1b=JSON['parse'](readFileSync(_0x33ebd2,'utf-8'));return _0x565a1b[_0x4b38f1(0xc9)]||'1.0.0';}catch{return _0x4b38f1(0xbe);}}export async function checkCliVersion(){const _0x4e435c=a224_0x4e5d,_0x35acbb=getCurrentCliVersion(),_0x5e0a05=await getCliVersionPolicy(),_0x40ecff=_0x5e0a05?.[_0x4e435c(0xc3)]||null,_0x1564f0=_0x5e0a05?.[_0x4e435c(0xdd)]||null;let _0x3f2cd0=![],_0xd5c6fe=![];const _0x11e57a=a224_0xc08a71[_0x4e435c(0xc8)](_0x35acbb);if(_0x11e57a&&_0x40ecff)try{const _0x5a273b=a224_0xc08a71[_0x4e435c(0xc8)](_0x40ecff);if(_0x5a273b)_0x3f2cd0=a224_0xc08a71['lt'](_0x11e57a,_0x5a273b);}catch{}if(_0x11e57a&&_0x1564f0)try{const _0x577b72=a224_0xc08a71[_0x4e435c(0xc8)](_0x1564f0);if(_0x577b72)_0xd5c6fe=a224_0xc08a71['lt'](_0x11e57a,_0x577b72);}catch{}return _0xd5c6fe&&(_0x3f2cd0=!![]),{'currentVersion':_0x35acbb,'stableVersion':_0x40ecff,'minimumVersion':_0x1564f0,'needsUpgrade':_0x3f2cd0,'belowMinimum':_0xd5c6fe,'isPreRelease':![],'upgradeMessage':_0x5e0a05?.[_0x4e435c(0xca)],'minimumVersionMessage':_0x5e0a05?.[_0x4e435c(0xcf)]};}export function printCliUpgradeWarning(_0x2d3605){const _0x849742=a224_0x4e5d;if(!_0x2d3605[_0x849742(0xcd)]&&!_0x2d3605[_0x849742(0xd6)])return;const _0x472a7d=_0x849742(0xd1),_0xc07fd0=_0x849742(0xd3),_0x3e36a5='\x1b[0m',_0x37f9f5=_0x849742(0xd7),_0x17636b=getCliUpgradeCommand(_0x2d3605);console[_0x849742(0xde)](),_0x2d3605[_0x849742(0xd6)]?(console[_0x849742(0xde)](''+_0x472a7d+_0x37f9f5+_0x849742(0xdb)+_0x3e36a5),console[_0x849742(0xde)](_0x472a7d+_0x849742(0xce)+_0x2d3605[_0x849742(0xc1)]+_0x3e36a5),_0x2d3605[_0x849742(0xdd)]&&console[_0x849742(0xde)](_0x472a7d+_0x849742(0xc6)+_0x2d3605[_0x849742(0xdd)]+_0x3e36a5),_0x2d3605['stableVersion']&&_0x2d3605[_0x849742(0xc3)]!==_0x2d3605[_0x849742(0xdd)]&&console[_0x849742(0xde)](_0x472a7d+_0x849742(0xd9)+_0x2d3605[_0x849742(0xc3)]+_0x3e36a5),_0x2d3605['minimumVersionMessage']&&console[_0x849742(0xde)](_0x472a7d+_0x849742(0xd2)+_0x2d3605['minimumVersionMessage']+_0x3e36a5),console['log'](_0x472a7d+_0x849742(0xdc)+_0x17636b+_0x3e36a5)):(console[_0x849742(0xde)](''+_0xc07fd0+_0x37f9f5+_0x849742(0xe4)+_0x3e36a5),console[_0x849742(0xde)](_0xc07fd0+_0x849742(0xce)+_0x2d3605[_0x849742(0xc1)]+_0x3e36a5),console[_0x849742(0xde)](_0xc07fd0+_0x849742(0xcb)+_0x2d3605[_0x849742(0xc3)]+_0x3e36a5),_0x2d3605[_0x849742(0xca)]&&console[_0x849742(0xde)](_0xc07fd0+'\x20\x20\x20'+_0x2d3605[_0x849742(0xca)]+_0x3e36a5),console[_0x849742(0xde)](_0xc07fd0+_0x849742(0xdc)+_0x17636b+_0x3e36a5)),console['log']();}function a224_0x5ec5(){const _0x2eafe0=['↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Upgrade\x20command:\x20','minimumVersion','log','join','package.json','latest','330yKIUUv','82257uGJBaC','↪\x20New\x20version\x20available','40ZlCrnH','1.0.0','Minimum\x20supported:\x20','../..','currentVersion','2503575wVdbpc','stableVersion','45584PwnXPW','Upgrade\x20command:\x20','\x20\x20\x20Minimum\x20supported:\x20','4325304goffBJ','coerce','version','upgradeMessage','\x20\x20\x20Stable\x20version:\x20','validation','needsUpgrade','\x20\x20\x20Current\x20CLI\x20version:\x20','minimumVersionMessage','188640NXPlQk','\x1b[31m','\x20\x20\x20','\x1b[33m','119986ObKwmF','Current\x20version:\x20','belowMinimum','\x1b[1m','1010130SwTUUy','\x20\x20\x20Recommended\x20stable:\x20','14PEodPG'];a224_0x5ec5=function(){return _0x2eafe0;};return a224_0x5ec5();}export function assertCliVersionSupported(_0x5a5985){const _0x2bb1e2=a224_0x4e5d;if(!_0x5a5985['belowMinimum'])return;const _0x4910f7=[_0x5a5985[_0x2bb1e2(0xcf)],_0x2bb1e2(0xd5)+_0x5a5985[_0x2bb1e2(0xc1)],_0x5a5985['minimumVersion']?_0x2bb1e2(0xbf)+_0x5a5985[_0x2bb1e2(0xdd)]:null,_0x2bb1e2(0xc5)+getCliUpgradeCommand(_0x5a5985)]['filter'](Boolean)[_0x2bb1e2(0xdf)]('\x0a');throw CliErrors[_0x2bb1e2(0xcc)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x4910f7);}
@@ -1 +1 @@
1
- (function(_0x2294a2,_0x21e634){const _0x49dc30=a225_0x5938,_0x23b628=_0x2294a2();while(!![]){try{const _0x235cea=-parseInt(_0x49dc30(0x122))/0x1+parseInt(_0x49dc30(0x11b))/0x2+parseInt(_0x49dc30(0x111))/0x3+parseInt(_0x49dc30(0x11f))/0x4+-parseInt(_0x49dc30(0x113))/0x5+parseInt(_0x49dc30(0x120))/0x6+parseInt(_0x49dc30(0x11e))/0x7*(-parseInt(_0x49dc30(0x11d))/0x8);if(_0x235cea===_0x21e634)break;else _0x23b628['push'](_0x23b628['shift']());}catch(_0x2c2ac9){_0x23b628['push'](_0x23b628['shift']());}}}(a225_0x85a2,0xabcf3));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a225_0x85a2(){const _0x530f24=['signal','trim','1464610GatFTb','application/json','29816WaFcfx','4333XiBYJK','3174116hXJiAg','6413400RrAbjv','latestVersion','154919LXmadw','recommendedVersion','minVersion','json','3300984rEXqMy','string','2646995OEveim','length','cli','minimumVersionMessage','minimumVersion','upgradeMessage'];a225_0x85a2=function(){return _0x530f24;};return a225_0x85a2();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x249050){const _0x8f430d=a225_0x5938;return typeof _0x249050===_0x8f430d(0x112)&&_0x249050[_0x8f430d(0x11a)]()[_0x8f430d(0x114)]>0x0?_0x249050['trim']():null;}function normalizeCliVersionPolicy(_0x287c2a){const _0xaa81c6=a225_0x5938;if(!_0x287c2a||typeof _0x287c2a!=='object')return null;const _0x520612=_0x287c2a,_0x5a953a=_0x520612[_0xaa81c6(0x115)]&&typeof _0x520612[_0xaa81c6(0x115)]==='object'?_0x520612['cli']:_0x520612,_0x2249be=pickString(_0x5a953a['stableVersion'])||pickString(_0x5a953a[_0xaa81c6(0x121)])||pickString(_0x5a953a[_0xaa81c6(0x10e)]),_0x41aca8=pickString(_0x5a953a[_0xaa81c6(0x117)])||pickString(_0x5a953a[_0xaa81c6(0x10f)]);if(!_0x2249be&&!_0x41aca8)return null;return{'stableVersion':_0x2249be,'minimumVersion':_0x41aca8,'upgradeMessage':pickString(_0x5a953a[_0xaa81c6(0x118)])||undefined,'minimumVersionMessage':pickString(_0x5a953a[_0xaa81c6(0x116)])||undefined};}export async function fetchCliVersionPolicy(){const _0x19e45e=a225_0x5938,_0x499e68=new AbortController(),_0x384c69=setTimeout(()=>_0x499e68['abort'](),FETCH_TIMEOUT_MS);try{const _0x3f9562=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x19e45e(0x11c)},'signal':_0x499e68[_0x19e45e(0x119)]});if(!_0x3f9562['ok'])return null;const _0xee0c7f=await _0x3f9562[_0x19e45e(0x110)]();return normalizeCliVersionPolicy(_0xee0c7f);}catch{return null;}finally{clearTimeout(_0x384c69);}}function a225_0x5938(_0x2cc5bc,_0x4092f7){_0x2cc5bc=_0x2cc5bc-0x10e;const _0x85a2fe=a225_0x85a2();let _0x5938fe=_0x85a2fe[_0x2cc5bc];return _0x5938fe;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3047ca=Date['now']();if(hasCachedPolicy){const _0x1dcae9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3047ca-cacheTime<_0x1dcae9)return cachedPolicy;}const _0x1c758a=await fetchCliVersionPolicy();return cachedPolicy=_0x1c758a,cacheTime=_0x3047ca,hasCachedPolicy=!![],_0x1c758a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1dbdea,_0x35afbe){const _0x4f6467=a225_0x3020,_0x271eda=_0x1dbdea();while(!![]){try{const _0x4afcdb=-parseInt(_0x4f6467(0x1ba))/0x1+parseInt(_0x4f6467(0x1b9))/0x2*(-parseInt(_0x4f6467(0x1b2))/0x3)+-parseInt(_0x4f6467(0x1b3))/0x4*(-parseInt(_0x4f6467(0x1b4))/0x5)+-parseInt(_0x4f6467(0x1c5))/0x6+parseInt(_0x4f6467(0x1c6))/0x7+-parseInt(_0x4f6467(0x1b8))/0x8+parseInt(_0x4f6467(0x1b6))/0x9*(parseInt(_0x4f6467(0x1bc))/0xa);if(_0x4afcdb===_0x35afbe)break;else _0x271eda['push'](_0x271eda['shift']());}catch(_0x4a3d51){_0x271eda['push'](_0x271eda['shift']());}}}(a225_0x4f20,0x346aa));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(_0x48a66f){const _0x478988=a225_0x3020;return typeof _0x48a66f===_0x478988(0x1be)&&_0x48a66f[_0x478988(0x1c2)]()['length']>0x0?_0x48a66f[_0x478988(0x1c2)]():null;}function a225_0x3020(_0x28b4a9,_0x2ce3bd){_0x28b4a9=_0x28b4a9-0x1b2;const _0x4f20dc=a225_0x4f20();let _0x302005=_0x4f20dc[_0x28b4a9];return _0x302005;}function normalizeCliVersionPolicy(_0x4a91ff){const _0x305625=a225_0x3020;if(!_0x4a91ff||typeof _0x4a91ff!==_0x305625(0x1c0))return null;const _0x379de2=_0x4a91ff,_0x25c95b=_0x379de2['cli']&&typeof _0x379de2[_0x305625(0x1bb)]==='object'?_0x379de2['cli']:_0x379de2,_0x34c48a=pickString(_0x25c95b[_0x305625(0x1c1)])||pickString(_0x25c95b[_0x305625(0x1c3)])||pickString(_0x25c95b['recommendedVersion']),_0xd6de44=pickString(_0x25c95b[_0x305625(0x1b5)])||pickString(_0x25c95b['minVersion']);if(!_0x34c48a&&!_0xd6de44)return null;return{'stableVersion':_0x34c48a,'minimumVersion':_0xd6de44,'upgradeMessage':pickString(_0x25c95b['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x25c95b[_0x305625(0x1b7)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4f15b7=a225_0x3020,_0x30da0a=new AbortController(),_0x2c5b7f=setTimeout(()=>_0x30da0a[_0x4f15b7(0x1bf)](),FETCH_TIMEOUT_MS);try{const _0x152a15=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4f15b7(0x1c7)},'signal':_0x30da0a['signal']});if(!_0x152a15['ok'])return null;const _0x39e301=await _0x152a15[_0x4f15b7(0x1c4)]();return normalizeCliVersionPolicy(_0x39e301);}catch{return null;}finally{clearTimeout(_0x2c5b7f);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x547605=a225_0x3020,_0x5ae202=Date[_0x547605(0x1bd)]();if(hasCachedPolicy){const _0xca5b2f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5ae202-cacheTime<_0xca5b2f)return cachedPolicy;}const _0x760c3a=await fetchCliVersionPolicy();return cachedPolicy=_0x760c3a,cacheTime=_0x5ae202,hasCachedPolicy=!![],_0x760c3a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a225_0x4f20(){const _0x129745=['10zywEJP','minimumVersion','90gIETIp','minimumVersionMessage','3112672sWRBTa','212FssfeO','266173HjISRr','cli','844020nOnccx','now','string','abort','object','stableVersion','trim','latestVersion','json','2064210UczDSd','2690758pcRDiN','application/json','9573setWtM','647644GITyoC'];a225_0x4f20=function(){return _0x129745;};return a225_0x4f20();}
@@ -1 +1 @@
1
- function a226_0x32fe(_0x265f9b,_0x55af29){_0x265f9b=_0x265f9b-0x19a;const _0x158e40=a226_0x158e();let _0x32fea4=_0x158e40[_0x265f9b];return _0x32fea4;}(function(_0x30efa3,_0x1d670c){const _0x24278e=a226_0x32fe,_0x2c89ac=_0x30efa3();while(!![]){try{const _0x48348f=-parseInt(_0x24278e(0x1a5))/0x1*(parseInt(_0x24278e(0x1a3))/0x2)+-parseInt(_0x24278e(0x19f))/0x3*(parseInt(_0x24278e(0x1a6))/0x4)+parseInt(_0x24278e(0x1a1))/0x5+parseInt(_0x24278e(0x19c))/0x6*(-parseInt(_0x24278e(0x1a4))/0x7)+parseInt(_0x24278e(0x19b))/0x8*(-parseInt(_0x24278e(0x19d))/0x9)+-parseInt(_0x24278e(0x19a))/0xa*(-parseInt(_0x24278e(0x19e))/0xb)+parseInt(_0x24278e(0x1a0))/0xc;if(_0x48348f===_0x1d670c)break;else _0x2c89ac['push'](_0x2c89ac['shift']());}catch(_0x1b5195){_0x2c89ac['push'](_0x2c89ac['shift']());}}}(a226_0x158e,0x8b7e3));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x431b64,getMultiAppConfigs as a226_0x44adb6,getTemplateBaseUrl as a226_0x608b29}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x339e13){const _0x4dc109=a226_0x32fe,_0xe19092=readRawConfig(_0x339e13);return _0xe19092[_0x4dc109(0x1a2)]&&typeof _0xe19092[_0x4dc109(0x1a2)]==='string'&&initEnv(_0xe19092['env']),_0xe19092;}export function getConfigAppCode(){return a226_0x431b64();}function a226_0x158e(){const _0x4ca994=['211183okagRl','93967WHCOfk','156RwIrGB','7776190EFkfNK','156376gGEgwC','138VGUKXl','9pgRWYa','11qTGUQq','31548GPIgqO','5932752TRQfze','3993870INBhkh','env','8FFbMYl'];a226_0x158e=function(){return _0x4ca994;};return a226_0x158e();}export function getMultiAppConfigs(_0x551a76='project'){return a226_0x44adb6(_0x551a76);}export function getTemplateBaseUrl(){return a226_0x608b29();}
1
+ const a226_0x312764=a226_0x53c1;(function(_0xee30ee,_0x56c687){const _0xe045c5=a226_0x53c1,_0x550a88=_0xee30ee();while(!![]){try{const _0x58ae98=-parseInt(_0xe045c5(0x90))/0x1*(parseInt(_0xe045c5(0x97))/0x2)+parseInt(_0xe045c5(0x92))/0x3*(parseInt(_0xe045c5(0x9e))/0x4)+parseInt(_0xe045c5(0x9d))/0x5*(-parseInt(_0xe045c5(0x93))/0x6)+parseInt(_0xe045c5(0x95))/0x7*(-parseInt(_0xe045c5(0x9c))/0x8)+parseInt(_0xe045c5(0x9b))/0x9*(-parseInt(_0xe045c5(0x94))/0xa)+parseInt(_0xe045c5(0x99))/0xb*(parseInt(_0xe045c5(0x96))/0xc)+parseInt(_0xe045c5(0x98))/0xd;if(_0x58ae98===_0x56c687)break;else _0x550a88['push'](_0x550a88['shift']());}catch(_0x8aee7e){_0x550a88['push'](_0x550a88['shift']());}}}(a226_0xff54,0xe6101));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x3a5373,getMultiAppConfigs as a226_0x5d2924,getTemplateBaseUrl as a226_0x223945}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x15d5a2){const _0x33afdd=a226_0x53c1,_0x3f1a0f=readRawConfig(_0x15d5a2);return _0x3f1a0f['env']&&typeof _0x3f1a0f[_0x33afdd(0x91)]==='string'&&initEnv(_0x3f1a0f['env']),_0x3f1a0f;}function a226_0x53c1(_0x4c4255,_0x4970ca){_0x4c4255=_0x4c4255-0x90;const _0xff545a=a226_0xff54();let _0x53c114=_0xff545a[_0x4c4255];return _0x53c114;}export function getConfigAppCode(){return a226_0x3a5373();}export function getMultiAppConfigs(_0x334e18=a226_0x312764(0x9a)){return a226_0x5d2924(_0x334e18);}export function getTemplateBaseUrl(){return a226_0x223945();}function a226_0xff54(){const _0x1991f9=['15foOtPN','125178uvMbJs','3730Psaqkj','284788BukbfG','137628HHmDKy','339734rockdX','27589991PUcDBQ','165cHNgHL','project','5562KGkkTJ','56GOcapb','135ZvOOrf','1276108bgvmcU','11HmIdBC','env'];a226_0xff54=function(){return _0x1991f9;};return a226_0xff54();}
@@ -1 +1 @@
1
- (function(_0x455120,_0x2966ba){const _0x8b9d1b=a227_0x87d0,_0x1762cf=_0x455120();while(!![]){try{const _0x2fbd56=parseInt(_0x8b9d1b(0xb4))/0x1+-parseInt(_0x8b9d1b(0xbd))/0x2+parseInt(_0x8b9d1b(0xbe))/0x3*(-parseInt(_0x8b9d1b(0xaf))/0x4)+parseInt(_0x8b9d1b(0xb2))/0x5*(-parseInt(_0x8b9d1b(0xb3))/0x6)+parseInt(_0x8b9d1b(0xbc))/0x7*(parseInt(_0x8b9d1b(0xbb))/0x8)+-parseInt(_0x8b9d1b(0xb0))/0x9*(parseInt(_0x8b9d1b(0xb8))/0xa)+parseInt(_0x8b9d1b(0xb1))/0xb;if(_0x2fbd56===_0x2966ba)break;else _0x1762cf['push'](_0x1762cf['shift']());}catch(_0x169a7d){_0x1762cf['push'](_0x1762cf['shift']());}}}(a227_0x28b2,0xb8332));import a227_0x31e937 from'node:path';function a227_0x28b2(){const _0x39f2cf=['4451499NMpztW','20474190aAsXRO','6149905ITRNbM','6TvDcHf','805334gFJLUC','join','readdirSync','isDirectory','10ABnNcs','error','name','25416xCijdw','1708mXfHLq','399740iiSlHB','6aMDTIU','mkdirSync','复制目录时出错:','1525736zVEzMa'];a227_0x28b2=function(){return _0x39f2cf;};return a227_0x28b2();}function a227_0x87d0(_0xb686d6,_0xa3ed45){_0xb686d6=_0xb686d6-0xaf;const _0x28b2a4=a227_0x28b2();let _0x87d078=_0x28b2a4[_0xb686d6];return _0x87d078;}import a227_0x40cd36 from'node:fs';export async function copyDirectory(_0x4bde27,_0x5cf322){const _0x2e722f=a227_0x87d0;try{const _0x381de3=a227_0x40cd36[_0x2e722f(0xb6)](_0x4bde27,{'withFileTypes':!![]});a227_0x40cd36[_0x2e722f(0xbf)](_0x5cf322,{'recursive':!![]});for(const _0x46750e of _0x381de3){const _0x2126d7=a227_0x31e937[_0x2e722f(0xb5)](_0x4bde27,_0x46750e[_0x2e722f(0xba)]),_0xe21dfb=a227_0x31e937[_0x2e722f(0xb5)](_0x5cf322,_0x46750e['name']);_0x46750e[_0x2e722f(0xb7)]()?await copyDirectory(_0x2126d7,_0xe21dfb):a227_0x40cd36['copyFileSync'](_0x2126d7,_0xe21dfb);}}catch(_0x1f0aef){console[_0x2e722f(0xb9)](_0x2e722f(0xc0),_0x1f0aef);}}
1
+ (function(_0x219c8a,_0x55dccd){const _0x19fdba=a227_0x219e,_0x2339b8=_0x219c8a();while(!![]){try{const _0x1432cb=parseInt(_0x19fdba(0x118))/0x1*(parseInt(_0x19fdba(0x114))/0x2)+-parseInt(_0x19fdba(0x11b))/0x3+parseInt(_0x19fdba(0x11d))/0x4*(parseInt(_0x19fdba(0x116))/0x5)+-parseInt(_0x19fdba(0x120))/0x6+parseInt(_0x19fdba(0x11a))/0x7+parseInt(_0x19fdba(0x11e))/0x8*(-parseInt(_0x19fdba(0x113))/0x9)+-parseInt(_0x19fdba(0x11c))/0xa*(parseInt(_0x19fdba(0x117))/0xb);if(_0x1432cb===_0x55dccd)break;else _0x2339b8['push'](_0x2339b8['shift']());}catch(_0x1c07d7){_0x2339b8['push'](_0x2339b8['shift']());}}}(a227_0x3a3a,0xc5acc));import a227_0x18bbb8 from'node:path';function a227_0x219e(_0x4731b4,_0x11e675){_0x4731b4=_0x4731b4-0x112;const _0x3a3ad8=a227_0x3a3a();let _0x219ecc=_0x3a3ad8[_0x4731b4];return _0x219ecc;}function a227_0x3a3a(){const _0x2f40aa=['readdirSync','3018232szYSGs','1593531YkAHEN','37330gxfcnZ','2835820FXEITM','6169664ANGTZV','join','1175874uwYMOb','复制目录时出错:','name','18mVicjh','3035206qBaQCb','isDirectory','10BAQWUo','847YbiwNN','1lNJXOb'];a227_0x3a3a=function(){return _0x2f40aa;};return a227_0x3a3a();}import a227_0x180512 from'node:fs';export async function copyDirectory(_0x43349c,_0x59279d){const _0x283bc8=a227_0x219e;try{const _0x554a88=a227_0x180512[_0x283bc8(0x119)](_0x43349c,{'withFileTypes':!![]});a227_0x180512['mkdirSync'](_0x59279d,{'recursive':!![]});for(const _0x2ba017 of _0x554a88){const _0x3efb4c=a227_0x18bbb8[_0x283bc8(0x11f)](_0x43349c,_0x2ba017[_0x283bc8(0x112)]),_0x417d68=a227_0x18bbb8[_0x283bc8(0x11f)](_0x59279d,_0x2ba017[_0x283bc8(0x112)]);_0x2ba017[_0x283bc8(0x115)]()?await copyDirectory(_0x3efb4c,_0x417d68):a227_0x180512['copyFileSync'](_0x3efb4c,_0x417d68);}}catch(_0x1204c1){console['error'](_0x283bc8(0x121),_0x1204c1);}}
@@ -1 +1 @@
1
- function a228_0x2544(){const _0x355d0f=['2042817LUrjWm','145115YrbQQb','isFinite','trim','2734227GRYXJT','8mLSoOl','5080929qpmlkH','2lkqaix','222HRfabF','3850444dQMLFr','24386580GttZKa','1365015fkQLxY','object'];a228_0x2544=function(){return _0x355d0f;};return a228_0x2544();}(function(_0x431ed7,_0xad19cb){const _0x5b0f91=a228_0x2fb2,_0x48d433=_0x431ed7();while(!![]){try{const _0x1611a7=-parseInt(_0x5b0f91(0x1ad))/0x1+-parseInt(_0x5b0f91(0x1a9))/0x2*(parseInt(_0x5b0f91(0x1af))/0x3)+parseInt(_0x5b0f91(0x1ab))/0x4+parseInt(_0x5b0f91(0x1b0))/0x5*(-parseInt(_0x5b0f91(0x1aa))/0x6)+parseInt(_0x5b0f91(0x1a8))/0x7+parseInt(_0x5b0f91(0x1b4))/0x8*(-parseInt(_0x5b0f91(0x1b3))/0x9)+parseInt(_0x5b0f91(0x1ac))/0xa;if(_0x1611a7===_0xad19cb)break;else _0x48d433['push'](_0x48d433['shift']());}catch(_0x467222){_0x48d433['push'](_0x48d433['shift']());}}}(a228_0x2544,0xabc14));function toFiniteNumber(_0x4b87f2){const _0x378f6f=a228_0x2fb2;if(typeof _0x4b87f2==='number'&&Number[_0x378f6f(0x1b1)](_0x4b87f2))return _0x4b87f2;if(typeof _0x4b87f2==='string'){const _0x3ea839=_0x4b87f2[_0x378f6f(0x1b2)]();if(!_0x3ea839)return undefined;const _0x3c4a01=Number(_0x3ea839);if(Number['isFinite'](_0x3c4a01))return _0x3c4a01;}return undefined;}function a228_0x2fb2(_0x5c1b7b,_0x152f19){_0x5c1b7b=_0x5c1b7b-0x1a8;const _0x25449f=a228_0x2544();let _0x2fb20e=_0x25449f[_0x5c1b7b];return _0x2fb20e;}export function normalizeEntityWithIdResponse(_0x3a5116){const _0x254ff1=a228_0x2fb2,_0x45847f=toFiniteNumber(_0x3a5116);if(_0x45847f!==undefined)return{'id':_0x45847f,'entity':{'id':_0x45847f}};if(!_0x3a5116||typeof _0x3a5116!==_0x254ff1(0x1ae))return{'id':undefined,'entity':{}};const _0x500fd9={..._0x3a5116},_0x5ec273=toFiniteNumber(_0x500fd9['id']);return _0x5ec273!==undefined&&(_0x500fd9['id']=_0x5ec273),{'id':_0x5ec273,'entity':_0x500fd9};}
1
+ function a228_0x1410(){const _0x57ca4a=['6819830EBgGfG','132ApCrrB','object','12KqByuE','string','47025LsHnLv','trim','152aBdOaG','isFinite','4635638BEsFqQ','18QIrdIL','2603248HoUeXS','2693930jWeJEF','number','5849pVqqTc','17172650HObiRw'];a228_0x1410=function(){return _0x57ca4a;};return a228_0x1410();}(function(_0x36c4f8,_0x425414){const _0x2b5d75=a228_0x52d3,_0x364bba=_0x36c4f8();while(!![]){try{const _0x3c69b4=parseInt(_0x2b5d75(0x1ad))/0x1*(-parseInt(_0x2b5d75(0x1a6))/0x2)+-parseInt(_0x2b5d75(0x1a4))/0x3*(parseInt(_0x2b5d75(0x1a0))/0x4)+parseInt(_0x2b5d75(0x19f))/0x5+parseInt(_0x2b5d75(0x1a2))/0x6*(-parseInt(_0x2b5d75(0x1a8))/0x7)+-parseInt(_0x2b5d75(0x1aa))/0x8+-parseInt(_0x2b5d75(0x1a9))/0x9*(-parseInt(_0x2b5d75(0x1ab))/0xa)+parseInt(_0x2b5d75(0x1ae))/0xb;if(_0x3c69b4===_0x425414)break;else _0x364bba['push'](_0x364bba['shift']());}catch(_0x421a08){_0x364bba['push'](_0x364bba['shift']());}}}(a228_0x1410,0xd0105));function a228_0x52d3(_0x3bcbeb,_0x4a61e2){_0x3bcbeb=_0x3bcbeb-0x19f;const _0x141058=a228_0x1410();let _0x52d3f5=_0x141058[_0x3bcbeb];return _0x52d3f5;}function toFiniteNumber(_0x5ca902){const _0x1d9e42=a228_0x52d3;if(typeof _0x5ca902===_0x1d9e42(0x1ac)&&Number[_0x1d9e42(0x1a7)](_0x5ca902))return _0x5ca902;if(typeof _0x5ca902===_0x1d9e42(0x1a3)){const _0x20d787=_0x5ca902[_0x1d9e42(0x1a5)]();if(!_0x20d787)return undefined;const _0x35b178=Number(_0x20d787);if(Number[_0x1d9e42(0x1a7)](_0x35b178))return _0x35b178;}return undefined;}export function normalizeEntityWithIdResponse(_0x392f94){const _0x4e8baa=a228_0x52d3,_0x58a636=toFiniteNumber(_0x392f94);if(_0x58a636!==undefined)return{'id':_0x58a636,'entity':{'id':_0x58a636}};if(!_0x392f94||typeof _0x392f94!==_0x4e8baa(0x1a1))return{'id':undefined,'entity':{}};const _0x224f53={..._0x392f94},_0x4cc5df=toFiniteNumber(_0x224f53['id']);return _0x4cc5df!==undefined&&(_0x224f53['id']=_0x4cc5df),{'id':_0x4cc5df,'entity':_0x224f53};}
@@ -1 +1 @@
1
- function a229_0x1e50(_0x3fe6c1,_0x3926f0){_0x3fe6c1=_0x3fe6c1-0xdb;const _0x3cf9fb=a229_0x3cf9();let _0x1e5086=_0x3cf9fb[_0x3fe6c1];return _0x1e5086;}(function(_0x722a74,_0x1a90ae){const _0x36eca9=a229_0x1e50,_0x34251d=_0x722a74();while(!![]){try{const _0x234a6e=-parseInt(_0x36eca9(0xdc))/0x1+-parseInt(_0x36eca9(0xdf))/0x2*(parseInt(_0x36eca9(0xde))/0x3)+parseInt(_0x36eca9(0xe2))/0x4+parseInt(_0x36eca9(0xe4))/0x5*(parseInt(_0x36eca9(0xdd))/0x6)+-parseInt(_0x36eca9(0xe0))/0x7*(-parseInt(_0x36eca9(0xe5))/0x8)+parseInt(_0x36eca9(0xe3))/0x9+-parseInt(_0x36eca9(0xdb))/0xa;if(_0x234a6e===_0x1a90ae)break;else _0x34251d['push'](_0x34251d['shift']());}catch(_0x3d7f8a){_0x34251d['push'](_0x34251d['shift']());}}}(a229_0x3cf9,0x57012));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a229_0x3cf9(){const _0x56f723=['74094nhsCFl','14760yZgpwX','9HHZPIM','15634Eegqqx','1617189xQnDXD','isDirectory','2727332aWCmfW','697338xBHezF','1435DjyeKt','16HeEDkJ','14734740ODwcFl'];a229_0x3cf9=function(){return _0x56f723;};return a229_0x3cf9();}export async function copyDir(_0x4db263,_0x354569){const _0xe1e39e=a229_0x1e50,_0x3be7ae=statSync(_0x4db263);if(_0x3be7ae[_0xe1e39e(0xe1)]()){!existsSync(_0x354569)&&mkdirSync(_0x354569,{'recursive':!![]});const _0x1b08e2=readdirSync(_0x4db263);for(const _0x49ac97 of _0x1b08e2){await copyDir(join(_0x4db263,_0x49ac97),join(_0x354569,_0x49ac97));}}else copyFileSync(_0x4db263,_0x354569);}export function ensureDir(_0x2a968c){!existsSync(_0x2a968c)&&mkdirSync(_0x2a968c,{'recursive':!![]});}export function pathExists(_0x85d3c2){return existsSync(_0x85d3c2);}
1
+ (function(_0x4dd4ea,_0x107a68){const _0x243aa4=a229_0x31f7,_0x4f96d3=_0x4dd4ea();while(!![]){try{const _0x46c9d6=parseInt(_0x243aa4(0xa6))/0x1+parseInt(_0x243aa4(0xa2))/0x2*(-parseInt(_0x243aa4(0xa8))/0x3)+-parseInt(_0x243aa4(0xa1))/0x4+-parseInt(_0x243aa4(0xa4))/0x5+parseInt(_0x243aa4(0xa9))/0x6+-parseInt(_0x243aa4(0xa7))/0x7*(parseInt(_0x243aa4(0xa3))/0x8)+parseInt(_0x243aa4(0xa5))/0x9;if(_0x46c9d6===_0x107a68)break;else _0x4f96d3['push'](_0x4f96d3['shift']());}catch(_0x4aa2a8){_0x4f96d3['push'](_0x4f96d3['shift']());}}}(a229_0x5dc2,0xe0c19));function a229_0x31f7(_0x59a8a4,_0x479dd8){_0x59a8a4=_0x59a8a4-0xa1;const _0x5dc218=a229_0x5dc2();let _0x31f7a8=_0x5dc218[_0x59a8a4];return _0x31f7a8;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x16117f,_0x5672ea){const _0x5b687d=a229_0x31f7,_0x479d32=statSync(_0x16117f);if(_0x479d32[_0x5b687d(0xaa)]()){!existsSync(_0x5672ea)&&mkdirSync(_0x5672ea,{'recursive':!![]});const _0x162718=readdirSync(_0x16117f);for(const _0x3a5fe3 of _0x162718){await copyDir(join(_0x16117f,_0x3a5fe3),join(_0x5672ea,_0x3a5fe3));}}else copyFileSync(_0x16117f,_0x5672ea);}function a229_0x5dc2(){const _0x1d20cc=['2fXGapM','8JWWWXS','8369020BdIBFe','27030411qoPLAV','524009sPzCXu','3100958xCggFe','1273092mbosuN','234714ICBHjK','isDirectory','418976DZlffV'];a229_0x5dc2=function(){return _0x1d20cc;};return a229_0x5dc2();}export function ensureDir(_0x4db26d){!existsSync(_0x4db26d)&&mkdirSync(_0x4db26d,{'recursive':!![]});}export function pathExists(_0x5aecef){return existsSync(_0x5aecef);}
@@ -1 +1 @@
1
- const a230_0x4497e8=a230_0xb52c;(function(_0x303b20,_0x3ac6fa){const _0x33a8c6=a230_0xb52c,_0x59cc5e=_0x303b20();while(!![]){try{const _0x2704cf=parseInt(_0x33a8c6(0xb4))/0x1*(parseInt(_0x33a8c6(0xa5))/0x2)+-parseInt(_0x33a8c6(0x99))/0x3*(-parseInt(_0x33a8c6(0x9e))/0x4)+-parseInt(_0x33a8c6(0x9a))/0x5*(-parseInt(_0x33a8c6(0xb7))/0x6)+parseInt(_0x33a8c6(0xa7))/0x7+parseInt(_0x33a8c6(0x96))/0x8*(parseInt(_0x33a8c6(0xa2))/0x9)+parseInt(_0x33a8c6(0x9f))/0xa*(-parseInt(_0x33a8c6(0x9c))/0xb)+-parseInt(_0x33a8c6(0xb3))/0xc;if(_0x2704cf===_0x3ac6fa)break;else _0x59cc5e['push'](_0x59cc5e['shift']());}catch(_0x52c28d){_0x59cc5e['push'](_0x59cc5e['shift']());}}}(a230_0x262b,0x54bca));function a230_0xb52c(_0x5a82e6,_0x79cb90){_0x5a82e6=_0x5a82e6-0x95;const _0x262b71=a230_0x262b();let _0xb52c7a=_0x262b71[_0x5a82e6];return _0xb52c7a;}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 _0x2a3a63=a230_0xb52c,_0x1622aa=getTemplateBaseUrl();return _0x1622aa+_0x2a3a63(0xb1);}const CACHE_DIR=join(homedir(),a230_0x4497e8(0xa8),a230_0x4497e8(0xae));export async function fetchGuidesFromCDN(){const _0x3160d5=a230_0x4497e8,_0x125ea3=getGuidesCdnUrl(),_0x203537=await fetch(_0x125ea3,{'headers':{'Accept':_0x3160d5(0xb6)}});if(!_0x203537['ok'])throw new Error(_0x3160d5(0x97)+_0x203537['status']+'\x20'+_0x203537[_0x3160d5(0x9b)]);const _0x598ab0=await _0x203537[_0x3160d5(0x95)]();if(!_0x598ab0[_0x3160d5(0xa6)]||typeof _0x598ab0[_0x3160d5(0xa6)]!==_0x3160d5(0xad))throw new Error(_0x3160d5(0xab));return _0x598ab0;}function a230_0x262b(){const _0x21f281=['2362494OpCIsi','json','311776CIyBbb','CDN\x20请求失败:\x20','\x0a\x0a>更新时间:','219vPalVk','5NLyrRb','statusText','167849cZHBmh','skillTemplate','8788cJHlrN','70cJNHHS','extendContent','trimEnd','63BkzEjh','lastUpdated','entries','7024YcvDWE','guides','2806748ctJYwj','.lovrabet','keys','utf-8','CDN\x20返回数据格式错误','length','object','cache','push','.md','/skills/guides.json','map','15525348WbCiDT','148kZLvWJ','content','application/json'];a230_0x262b=function(){return _0x21f281;};return a230_0x262b();}export function writeGuidesToProject(_0xdef647,_0x168923,_0x35cf84='.lovrabet/skill/guides',_0x3f1793){const _0x3bf1ab=a230_0x4497e8,_0x580750=join(_0x168923,_0x35cf84);mkdirSync(_0x580750,{'recursive':!![]});for(const [_0x140000,_0x1f17a1]of Object[_0x3bf1ab(0xa4)](_0xdef647[_0x3bf1ab(0xa6)])){let _0x2be549=_0x1f17a1[_0x3bf1ab(0xb5)];_0x1f17a1[_0x3bf1ab(0xa3)]&&(_0x2be549=appendUpdateTime(_0x2be549,_0x1f17a1[_0x3bf1ab(0xa3)])),writeFileSync(join(_0x580750,_0x140000+_0x3bf1ab(0xb0)),_0x2be549,_0x3bf1ab(0xaa));}}export function appendUpdateTime(_0xe62d39,_0x6680be){const _0xc43f41=a230_0x4497e8;return _0xe62d39=_0xe62d39['replace'](/\n*>更新时间:.*$/m,''),_0xe62d39['trimEnd']()+(_0xc43f41(0x98)+_0x6680be);}export function getSkillTemplate(_0x579042){const _0x3723de=a230_0x4497e8;return _0x579042[_0x3723de(0x9d)]?.[_0x3723de(0xb5)]||'';}export function appendExtendContents(_0x53e0e1,_0x24687b,_0x490381){const _0x545f70=a230_0x4497e8,_0x3687bc=[];for(const [,_0x4dee28]of Object[_0x545f70(0xa4)](_0x24687b['guides'])){_0x4dee28[_0x545f70(0xa0)]&&_0x3687bc[_0x545f70(0xaf)](_0x4dee28['extendContent'][_0x545f70(0xa1)]());}if(_0x3687bc[_0x545f70(0xac)]===0x0)return _0x53e0e1;return _0x53e0e1[_0x545f70(0xa1)]()+'\x0a\x0a'+_0x3687bc['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x273fb6,_0x290cb2,_0x28f83c){const _0x5998ea=a230_0x4497e8,_0x463663=getSkillTemplate(_0x273fb6);if(!_0x463663)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x598f2a=dirname(_0x290cb2);mkdirSync(_0x598f2a,{'recursive':!![]});let _0x131e8f=_0x463663['replace'](/\{\{IDE_NAME\}\}/g,_0x28f83c);_0x131e8f=appendExtendContents(_0x131e8f,_0x273fb6),_0x273fb6[_0x5998ea(0x9d)][_0x5998ea(0xa3)]&&(_0x131e8f=appendUpdateTime(_0x131e8f,_0x273fb6[_0x5998ea(0x9d)][_0x5998ea(0xa3)])),writeFileSync(_0x290cb2,_0x131e8f,_0x5998ea(0xaa));}export async function installGuides(_0x1703a8){const _0x261ee0=a230_0x4497e8,_0x178d15=await fetchGuidesFromCDN();return writeGuidesToProject(_0x178d15,_0x1703a8),Object[_0x261ee0(0xa9)](_0x178d15[_0x261ee0(0xa6)])[_0x261ee0(0xac)];}export function getGuidesSummary(_0x56b037){const _0x39c856=a230_0x4497e8;return Object['entries'](_0x56b037[_0x39c856(0xa6)])[_0x39c856(0xb2)](([_0x388cae,_0x2ee1dc])=>({'key':_0x388cae,'title':_0x2ee1dc['title'],'path':_0x2ee1dc['path']}));}
1
+ const a230_0x595a25=a230_0x36f6;(function(_0x2e7598,_0x452905){const _0xc7fb72=a230_0x36f6,_0x5a852d=_0x2e7598();while(!![]){try{const _0x190766=-parseInt(_0xc7fb72(0x181))/0x1+-parseInt(_0xc7fb72(0x191))/0x2*(parseInt(_0xc7fb72(0x189))/0x3)+parseInt(_0xc7fb72(0x18c))/0x4*(parseInt(_0xc7fb72(0x17d))/0x5)+parseInt(_0xc7fb72(0x18e))/0x6*(-parseInt(_0xc7fb72(0x175))/0x7)+-parseInt(_0xc7fb72(0x17b))/0x8*(-parseInt(_0xc7fb72(0x180))/0x9)+parseInt(_0xc7fb72(0x177))/0xa+parseInt(_0xc7fb72(0x178))/0xb;if(_0x190766===_0x452905)break;else _0x5a852d['push'](_0x5a852d['shift']());}catch(_0x14df5d){_0x5a852d['push'](_0x5a852d['shift']());}}}(a230_0x4767,0xce3ae));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a230_0x36f6(_0x128dfc,_0x43b93e){_0x128dfc=_0x128dfc-0x174;const _0x4767a0=a230_0x4767();let _0x36f62d=_0x4767a0[_0x128dfc];return _0x36f62d;}import{getTemplateBaseUrl}from'../utils/config.js';function a230_0x4767(){const _0x92fd94=['cache','.md','/skills/guides.json','.lovrabet','join','extendContent','\x0a\x0a>更新时间:','974583PGlFxL','title','replace','524oeeJGN','push','4314WdCMzH','keys','skillTemplate','4EmapvT','content','map','length','utf-8','.lovrabet/skill/guides','entries','object','path','12369nGXXWI','application/json','12200970CShpEl','11041173DTLIlJ','CDN\x20数据中缺少\x20skillTemplate','trimEnd','280OfvvWB','CDN\x20返回数据格式错误','1545ADDhec','guides','lastUpdated','230247IXOztp','394811XmWXNe'];a230_0x4767=function(){return _0x92fd94;};return a230_0x4767();}function getGuidesCdnUrl(){const _0x373ebb=a230_0x36f6,_0x4040db=getTemplateBaseUrl();return _0x4040db+_0x373ebb(0x184);}const CACHE_DIR=join(homedir(),a230_0x595a25(0x185),a230_0x595a25(0x182));export async function fetchGuidesFromCDN(){const _0x494c5a=a230_0x595a25,_0x4b8396=getGuidesCdnUrl(),_0x473655=await fetch(_0x4b8396,{'headers':{'Accept':_0x494c5a(0x176)}});if(!_0x473655['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x473655['status']+'\x20'+_0x473655['statusText']);const _0x559653=await _0x473655['json']();if(!_0x559653[_0x494c5a(0x17e)]||typeof _0x559653[_0x494c5a(0x17e)]!==_0x494c5a(0x198))throw new Error(_0x494c5a(0x17c));return _0x559653;}export function writeGuidesToProject(_0x3ac909,_0x4ffcbe,_0x52423f=a230_0x595a25(0x196),_0x4c6378){const _0x3e9d38=a230_0x595a25,_0x1df8a2=join(_0x4ffcbe,_0x52423f);mkdirSync(_0x1df8a2,{'recursive':!![]});for(const [_0x4e1a86,_0xcc4663]of Object[_0x3e9d38(0x197)](_0x3ac909[_0x3e9d38(0x17e)])){let _0x25430f=_0xcc4663[_0x3e9d38(0x192)];_0xcc4663[_0x3e9d38(0x17f)]&&(_0x25430f=appendUpdateTime(_0x25430f,_0xcc4663[_0x3e9d38(0x17f)])),writeFileSync(join(_0x1df8a2,_0x4e1a86+_0x3e9d38(0x183)),_0x25430f,'utf-8');}}export function appendUpdateTime(_0x407f7a,_0xb71d4a){const _0x14eadc=a230_0x595a25;return _0x407f7a=_0x407f7a['replace'](/\n*>更新时间:.*$/m,''),_0x407f7a[_0x14eadc(0x17a)]()+(_0x14eadc(0x188)+_0xb71d4a);}export function getSkillTemplate(_0x30c8dd){const _0x2766d7=a230_0x595a25;return _0x30c8dd[_0x2766d7(0x190)]?.[_0x2766d7(0x192)]||'';}export function appendExtendContents(_0x336981,_0x71ef1a,_0x17a626){const _0x1cc105=a230_0x595a25,_0x1c2e33=[];for(const [,_0xd38537]of Object[_0x1cc105(0x197)](_0x71ef1a[_0x1cc105(0x17e)])){_0xd38537['extendContent']&&_0x1c2e33[_0x1cc105(0x18d)](_0xd38537[_0x1cc105(0x187)][_0x1cc105(0x17a)]());}if(_0x1c2e33['length']===0x0)return _0x336981;return _0x336981[_0x1cc105(0x17a)]()+'\x0a\x0a'+_0x1c2e33[_0x1cc105(0x186)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3c090a,_0x2d86ca,_0xb6c050){const _0x121fe9=a230_0x595a25,_0x32a660=getSkillTemplate(_0x3c090a);if(!_0x32a660)throw new Error(_0x121fe9(0x179));const _0x3b485b=dirname(_0x2d86ca);mkdirSync(_0x3b485b,{'recursive':!![]});let _0x337276=_0x32a660[_0x121fe9(0x18b)](/\{\{IDE_NAME\}\}/g,_0xb6c050);_0x337276=appendExtendContents(_0x337276,_0x3c090a),_0x3c090a[_0x121fe9(0x190)]['lastUpdated']&&(_0x337276=appendUpdateTime(_0x337276,_0x3c090a['skillTemplate'][_0x121fe9(0x17f)])),writeFileSync(_0x2d86ca,_0x337276,_0x121fe9(0x195));}export async function installGuides(_0x59273e){const _0x2b6b30=a230_0x595a25,_0x48d802=await fetchGuidesFromCDN();return writeGuidesToProject(_0x48d802,_0x59273e),Object[_0x2b6b30(0x18f)](_0x48d802[_0x2b6b30(0x17e)])[_0x2b6b30(0x194)];}export function getGuidesSummary(_0x582b39){const _0x548b46=a230_0x595a25;return Object[_0x548b46(0x197)](_0x582b39[_0x548b46(0x17e)])[_0x548b46(0x193)](([_0x4f7afc,_0x428a8b])=>({'key':_0x4f7afc,'title':_0x428a8b[_0x548b46(0x18a)],'path':_0x428a8b[_0x548b46(0x174)]}));}
@@ -1 +1 @@
1
- (function(_0x383b39,_0x58a020){const _0x2889aa=a231_0x4833,_0x4aa443=_0x383b39();while(!![]){try{const _0x543668=parseInt(_0x2889aa(0xe7))/0x1*(-parseInt(_0x2889aa(0xe9))/0x2)+-parseInt(_0x2889aa(0xfe))/0x3+-parseInt(_0x2889aa(0xe5))/0x4+-parseInt(_0x2889aa(0xf8))/0x5+-parseInt(_0x2889aa(0xf4))/0x6+parseInt(_0x2889aa(0xff))/0x7*(parseInt(_0x2889aa(0xf0))/0x8)+parseInt(_0x2889aa(0xe6))/0x9;if(_0x543668===_0x58a020)break;else _0x4aa443['push'](_0x4aa443['shift']());}catch(_0x332278){_0x4aa443['push'](_0x4aa443['shift']());}}}(a231_0x1594,0xceb60));export async function httpRequest(_0x177dfa,_0x320be4={}){const _0x34654d=a231_0x4833,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x320be4;let _0x3ebff7=null;for(let _0x510cde=0x0;_0x510cde<=retries;_0x510cde++){try{const _0x470c72=new AbortController(),_0x2d2462=setTimeout(()=>_0x470c72[_0x34654d(0x101)](),timeout),_0x2411d4=await fetch(_0x177dfa,{'headers':headers,'signal':_0x470c72[_0x34654d(0xf3)]});clearTimeout(_0x2d2462);let _0x399248;const _0xf8ed40=_0x2411d4['headers']['get'](_0x34654d(0xfb));return _0xf8ed40?.[_0x34654d(0xf1)](_0x34654d(0xf7))?_0x399248=await _0x2411d4[_0x34654d(0xfa)]():_0x399248=await _0x2411d4[_0x34654d(0xf6)](),{'ok':_0x2411d4['ok'],'status':_0x2411d4[_0x34654d(0xf9)],'statusText':_0x2411d4[_0x34654d(0x100)],'data':_0x399248,'headers':_0x2411d4[_0x34654d(0xee)],'url':_0x2411d4[_0x34654d(0xef)],'text':()=>_0x2411d4[_0x34654d(0xf6)]()};}catch(_0x4a9e4f){_0x3ebff7=_0x4a9e4f instanceof Error?_0x4a9e4f:new Error(String(_0x4a9e4f));if(_0x510cde===retries)break;if(shouldRetry(_0x4a9e4f)){console[_0x34654d(0xf5)](_0x34654d(0xed)+retryDelay+_0x34654d(0xea)+(_0x510cde+0x1)+_0x34654d(0xfc)),await sleep(retryDelay);continue;}else break;}}throw _0x3ebff7||new Error(_0x34654d(0xfd));}function shouldRetry(_0x30903d){const _0x5a1c53=a231_0x4833;if(_0x30903d instanceof Error){if(_0x30903d['name']===_0x5a1c53(0xf2))return![];if(_0x30903d['name']===_0x5a1c53(0xec)&&_0x30903d[_0x5a1c53(0xeb)][_0x5a1c53(0xf1)](_0x5a1c53(0xe8)))return!![];if(_0x30903d[_0x5a1c53(0xeb)][_0x5a1c53(0xf1)]('ECONNRESET'))return!![];if(_0x30903d[_0x5a1c53(0xeb)]['includes']('ENOTFOUND'))return![];}return![];}function a231_0x1594(){const _0xe16efc=['5566876QkkGxG','34298082LXwIZb','1CVhFtr','fetch','591374kOoDid','ms\x20后进行第\x20','message','TypeError','*\x20请求失败,','headers','url','313160eSkJmX','includes','AbortError','signal','799590uwpMxU','log','text','application/json','272490dQRcTm','status','json','content-type','\x20次重试...','Request\x20failed','3619428jkYDTw','21sEwfIy','statusText','abort'];a231_0x1594=function(){return _0xe16efc;};return a231_0x1594();}function a231_0x4833(_0x3db9e7,_0x4b417e){_0x3db9e7=_0x3db9e7-0xe5;const _0x1594ff=a231_0x1594();let _0x4833ad=_0x1594ff[_0x3db9e7];return _0x4833ad;}function sleep(_0x5c2769){return new Promise(_0x61101e=>setTimeout(_0x61101e,_0x5c2769));}export function validateUrl(_0x2327a7){try{return new URL(_0x2327a7),!![];}catch{return![];}}
1
+ (function(_0x9ca57f,_0x2c669b){const _0x227333=a231_0x2bc5,_0x58d038=_0x9ca57f();while(!![]){try{const _0x4eca57=-parseInt(_0x227333(0x181))/0x1+parseInt(_0x227333(0x185))/0x2*(-parseInt(_0x227333(0x18e))/0x3)+-parseInt(_0x227333(0x17d))/0x4+parseInt(_0x227333(0x183))/0x5*(parseInt(_0x227333(0x194))/0x6)+parseInt(_0x227333(0x182))/0x7+-parseInt(_0x227333(0x17e))/0x8+parseInt(_0x227333(0x176))/0x9*(parseInt(_0x227333(0x177))/0xa);if(_0x4eca57===_0x2c669b)break;else _0x58d038['push'](_0x58d038['shift']());}catch(_0x4ca39a){_0x58d038['push'](_0x58d038['shift']());}}}(a231_0x53f0,0x258d4));function a231_0x2bc5(_0x37f15a,_0x483b19){_0x37f15a=_0x37f15a-0x176;const _0x53f022=a231_0x53f0();let _0x2bc5cb=_0x53f022[_0x37f15a];return _0x2bc5cb;}export async function httpRequest(_0x99e849,_0x351d08={}){const _0x1a0042=a231_0x2bc5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x351d08;let _0x5ce2bc=null;for(let _0x140eea=0x0;_0x140eea<=retries;_0x140eea++){try{const _0x2221b3=new AbortController(),_0x362456=setTimeout(()=>_0x2221b3[_0x1a0042(0x184)](),timeout),_0x35d231=await fetch(_0x99e849,{'headers':headers,'signal':_0x2221b3[_0x1a0042(0x17c)]});clearTimeout(_0x362456);let _0x2a4e51;const _0x196675=_0x35d231[_0x1a0042(0x188)][_0x1a0042(0x18f)](_0x1a0042(0x18b));return _0x196675?.[_0x1a0042(0x18c)](_0x1a0042(0x190))?_0x2a4e51=await _0x35d231['json']():_0x2a4e51=await _0x35d231[_0x1a0042(0x180)](),{'ok':_0x35d231['ok'],'status':_0x35d231['status'],'statusText':_0x35d231[_0x1a0042(0x187)],'data':_0x2a4e51,'headers':_0x35d231[_0x1a0042(0x188)],'url':_0x35d231[_0x1a0042(0x179)],'text':()=>_0x35d231[_0x1a0042(0x180)]()};}catch(_0x2d527b){_0x5ce2bc=_0x2d527b instanceof Error?_0x2d527b:new Error(String(_0x2d527b));if(_0x140eea===retries)break;if(shouldRetry(_0x2d527b)){console[_0x1a0042(0x18d)](_0x1a0042(0x193)+retryDelay+_0x1a0042(0x17f)+(_0x140eea+0x1)+_0x1a0042(0x189)),await sleep(retryDelay);continue;}else break;}}throw _0x5ce2bc||new Error(_0x1a0042(0x186));}function shouldRetry(_0x59bfb3){const _0x2f3bef=a231_0x2bc5;if(_0x59bfb3 instanceof Error){if(_0x59bfb3[_0x2f3bef(0x191)]==='AbortError')return![];if(_0x59bfb3[_0x2f3bef(0x191)]===_0x2f3bef(0x17a)&&_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x192)))return!![];if(_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x17b)))return!![];if(_0x59bfb3[_0x2f3bef(0x178)][_0x2f3bef(0x18c)](_0x2f3bef(0x18a)))return![];}return![];}function a231_0x53f0(){const _0x999e19=['*\x20请求失败,','6tAzwoi','2038923WpRsJR','20BwBkpc','message','url','TypeError','ECONNRESET','signal','837576uqJJpo','656264QiOVqV','ms\x20后进行第\x20','text','155620tKQMQV','1612954QwcFKn','767670dqEMWG','abort','1882GfaSmf','Request\x20failed','statusText','headers','\x20次重试...','ENOTFOUND','content-type','includes','log','753AjCzvj','get','application/json','name','fetch'];a231_0x53f0=function(){return _0x999e19;};return a231_0x53f0();}function sleep(_0x1537c4){return new Promise(_0x4314ef=>setTimeout(_0x4314ef,_0x1537c4));}export function validateUrl(_0x5b38dc){try{return new URL(_0x5b38dc),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a232_0x3cbb(_0x2756d2,_0x2154cf){_0x2756d2=_0x2756d2-0xc9;const _0x4b36ba=a232_0x4b36();let _0x3cbb62=_0x4b36ba[_0x2756d2];return _0x3cbb62;}(function(_0x102f4b,_0x16428e){const _0x2b1992=a232_0x3cbb,_0x5e8299=_0x102f4b();while(!![]){try{const _0x1a8dcb=-parseInt(_0x2b1992(0xcf))/0x1*(parseInt(_0x2b1992(0xd0))/0x2)+parseInt(_0x2b1992(0xd3))/0x3*(-parseInt(_0x2b1992(0xcb))/0x4)+-parseInt(_0x2b1992(0xd7))/0x5+-parseInt(_0x2b1992(0xd1))/0x6*(-parseInt(_0x2b1992(0xd2))/0x7)+-parseInt(_0x2b1992(0xd5))/0x8+parseInt(_0x2b1992(0xce))/0x9*(parseInt(_0x2b1992(0xcd))/0xa)+-parseInt(_0x2b1992(0xc9))/0xb*(parseInt(_0x2b1992(0xca))/0xc);if(_0x1a8dcb===_0x16428e)break;else _0x5e8299['push'](_0x5e8299['shift']());}catch(_0x35895c){_0x5e8299['push'](_0x5e8299['shift']());}}}(a232_0x4b36,0xb087e));function env(_0x23e487){return process.env[`RABETBASE_${_0x23e487}`]||process.env[`LOVRABET_${_0x23e487}`]||undefined;}export function isNonInteractive(_0x4d3cb6){const _0x26bf3c=a232_0x3cbb;return!!(_0x4d3cb6['nonInteractive']||_0x4d3cb6['ci']||env('CI')===_0x26bf3c(0xd6)||process.env.CI===_0x26bf3c(0xd6)||!process[_0x26bf3c(0xd9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x59e4d7=a232_0x3cbb;if(!process[_0x59e4d7(0xd8)]['isTTY'])return![];try{const _0x47d547=process[_0x59e4d7(0xd8)][_0x59e4d7(0xcc)];return process['stdin'][_0x59e4d7(0xd4)](!![]),process['stdin'][_0x59e4d7(0xd4)](_0x47d547??![]),!![];}catch{return![];}}function a232_0x4b36(){const _0x23e1a2=['2122365AxovKc','stdin','stdout','1507MAGfYu','20748UOWrog','128888VftmUU','isRaw','40hTNLvl','2587770EjXHAl','2QLBNDf','933848mPHoJr','8475426qDQcbv','7DpuRrP','3fuXkTr','setRawMode','1697640AetlvA','true'];a232_0x4b36=function(){return _0x23e1a2;};return a232_0x4b36();}
1
+ (function(_0x45d541,_0x2badad){const _0x317902=a232_0x33d8,_0x9f9c2b=_0x45d541();while(!![]){try{const _0x47d16b=parseInt(_0x317902(0x1c5))/0x1+parseInt(_0x317902(0x1be))/0x2*(-parseInt(_0x317902(0x1c8))/0x3)+parseInt(_0x317902(0x1c1))/0x4*(parseInt(_0x317902(0x1bd))/0x5)+parseInt(_0x317902(0x1b8))/0x6+parseInt(_0x317902(0x1bb))/0x7*(-parseInt(_0x317902(0x1bf))/0x8)+parseInt(_0x317902(0x1c4))/0x9+parseInt(_0x317902(0x1bc))/0xa*(-parseInt(_0x317902(0x1c6))/0xb);if(_0x47d16b===_0x2badad)break;else _0x9f9c2b['push'](_0x9f9c2b['shift']());}catch(_0x30d627){_0x9f9c2b['push'](_0x9f9c2b['shift']());}}}(a232_0x7698,0xcc3d9));function a232_0x33d8(_0x29d67a,_0x142c49){_0x29d67a=_0x29d67a-0x1b8;const _0x769857=a232_0x7698();let _0x33d8cf=_0x769857[_0x29d67a];return _0x33d8cf;}function env(_0x5cd892){return process.env[`RABETBASE_${_0x5cd892}`]||process.env[`LOVRABET_${_0x5cd892}`]||undefined;}export function isNonInteractive(_0x649e62){const _0x21c259=a232_0x33d8;return!!(_0x649e62[_0x21c259(0x1b9)]||_0x649e62['ci']||env('CI')===_0x21c259(0x1c0)||process.env.CI===_0x21c259(0x1c0)||!process[_0x21c259(0x1ba)][_0x21c259(0x1c7)]||!isStdinRawModeSupported());}function a232_0x7698(){const _0x50404f=['5759345ybJXMb','2fbhOVh','8882104DVIXPu','true','4IhsEIV','stdin','setRawMode','12829266aFuLaf','1656750HhZaJT','924oGOLcA','isTTY','4538871ezdBlY','3401040fKXUMM','nonInteractive','stdout','7ofljNg','159660BtpCiO'];a232_0x7698=function(){return _0x50404f;};return a232_0x7698();}function isStdinRawModeSupported(){const _0x11031c=a232_0x33d8;if(!process[_0x11031c(0x1c2)]['isTTY'])return![];try{const _0x578660=process[_0x11031c(0x1c2)]['isRaw'];return process[_0x11031c(0x1c2)][_0x11031c(0x1c3)](!![]),process[_0x11031c(0x1c2)][_0x11031c(0x1c3)](_0x578660??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a233_0x181e0a=a233_0x510d;function a233_0x510d(_0x319e6,_0x1ba411){_0x319e6=_0x319e6-0x144;const _0x4b255b=a233_0x4b25();let _0x510da2=_0x4b255b[_0x319e6];return _0x510da2;}(function(_0x5152eb,_0x4e3d83){const _0x4e7c0e=a233_0x510d,_0x1bc4d9=_0x5152eb();while(!![]){try{const _0x34d54a=parseInt(_0x4e7c0e(0x174))/0x1+parseInt(_0x4e7c0e(0x146))/0x2+parseInt(_0x4e7c0e(0x15b))/0x3+-parseInt(_0x4e7c0e(0x161))/0x4+parseInt(_0x4e7c0e(0x168))/0x5+-parseInt(_0x4e7c0e(0x173))/0x6*(-parseInt(_0x4e7c0e(0x15a))/0x7)+-parseInt(_0x4e7c0e(0x15c))/0x8;if(_0x34d54a===_0x4e3d83)break;else _0x1bc4d9['push'](_0x1bc4d9['shift']());}catch(_0x34a782){_0x1bc4d9['push'](_0x1bc4d9['shift']());}}}(a233_0x4b25,0xe86f5));import a233_0x103902 from'winston';import a233_0x9fb554 from'node:fs';import a233_0x49a3d3 from'node:path';class Logger{[a233_0x181e0a(0x16f)];[a233_0x181e0a(0x149)];[a233_0x181e0a(0x169)]='';constructor(){this['logFilePath']='';}[a233_0x181e0a(0x15d)](_0x1bbbb5){this['currentRawCommand']=_0x1bbbb5;}[a233_0x181e0a(0x16a)](){const _0x4b7987=a233_0x181e0a,_0x5b7e39=a233_0x49a3d3['dirname'](this[_0x4b7987(0x149)]);!a233_0x9fb554[_0x4b7987(0x16b)](_0x5b7e39)&&a233_0x9fb554['mkdirSync'](_0x5b7e39,{'recursive':!![]});const _0x21cf55=a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x145)](a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x156)](),a233_0x103902['format']['errors']({'stack':!![]}),a233_0x103902[_0x4b7987(0x165)][_0x4b7987(0x147)](_0x397594=>{const _0xbc0702=_0x4b7987,_0x4b2092={'timestamp':_0x397594[_0xbc0702(0x156)]||new Date()[_0xbc0702(0x150)](),'level':_0x397594[_0xbc0702(0x172)]||'info','command':_0x397594[_0xbc0702(0x148)]||_0xbc0702(0x163),'rawCommand':_0x397594[_0xbc0702(0x162)]||this[_0xbc0702(0x169)]||undefined,'message':_0x397594[_0xbc0702(0x14c)]||'','duration':_0x397594['duration']||undefined,'details':_0x397594[_0xbc0702(0x159)]||undefined};return JSON[_0xbc0702(0x152)](_0x4b2092);}));this[_0x4b7987(0x16f)]=a233_0x103902[_0x4b7987(0x16e)]({'level':'info','format':_0x21cf55,'transports':[new a233_0x103902[(_0x4b7987(0x14b))][(_0x4b7987(0x170))]({'filename':this[_0x4b7987(0x149)],'level':_0x4b7987(0x155)})],'silent':![]}),a233_0x103902['addColors']({'success':_0x4b7987(0x160),'error':'red','warn':_0x4b7987(0x15f),'info':'blue'});}[a233_0x181e0a(0x14e)](_0x2c92e8){const _0x420daa=a233_0x181e0a;this[_0x420daa(0x149)]=a233_0x49a3d3[_0x420daa(0x15e)](_0x2c92e8,_0x420daa(0x153)),this['winstonLogger']&&this[_0x420daa(0x16f)][_0x420daa(0x14d)](),this[_0x420daa(0x16a)]();}[a233_0x181e0a(0x155)](_0x5970f1,_0x39d99c,_0x4d292e){const _0x518f00=a233_0x181e0a;if(!this['logFilePath']||!this[_0x518f00(0x16f)])return;this['winstonLogger']['info'](_0x39d99c,{'command':_0x5970f1,'details':_0x4d292e});}[a233_0x181e0a(0x144)](_0xa4a2ac,_0x404c4e,_0x39f607,_0x1cbc48){const _0x190618=a233_0x181e0a;if(!this['logFilePath']||!this[_0x190618(0x16f)])return;this[_0x190618(0x16f)]['log'](_0x190618(0x155),_0x404c4e,{'level':'success','command':_0xa4a2ac,'duration':_0x39f607,'details':_0x1cbc48});}[a233_0x181e0a(0x14a)](_0x15e022,_0x1dc178,_0x5361a7){const _0x34a63f=a233_0x181e0a;if(!this[_0x34a63f(0x149)]||!this[_0x34a63f(0x16f)])return;this[_0x34a63f(0x16f)][_0x34a63f(0x14a)](_0x1dc178,{'command':_0x15e022,'details':_0x5361a7});}['warn'](_0x446493,_0x41512c,_0x23cf3e){const _0x2defaa=a233_0x181e0a;if(!this['logFilePath']||!this[_0x2defaa(0x16f)])return;this[_0x2defaa(0x16f)][_0x2defaa(0x164)](_0x41512c,{'command':_0x446493,'details':_0x23cf3e});}async['logTask'](_0x5f3aad,_0x217dcf,_0x28635b){const _0x37b00a=a233_0x181e0a,_0x12c4d8=Date[_0x37b00a(0x14f)]();this[_0x37b00a(0x155)](_0x5f3aad,_0x37b00a(0x167)+_0x217dcf);try{const _0x2cf627=await _0x28635b(),_0x453b0b=Date['now']()-_0x12c4d8;return this[_0x37b00a(0x144)](_0x5f3aad,_0x37b00a(0x154)+_0x217dcf,_0x453b0b),_0x2cf627;}catch(_0xc287a0){const _0x468c5d=Date[_0x37b00a(0x14f)]()-_0x12c4d8;this[_0x37b00a(0x14a)](_0x5f3aad,'失败:\x20'+_0x217dcf,{'error':_0xc287a0 instanceof Error?_0xc287a0[_0x37b00a(0x14c)]:String(_0xc287a0),'duration':_0x468c5d});throw _0xc287a0;}}[a233_0x181e0a(0x175)](){const _0x450982=a233_0x181e0a;try{if(!a233_0x9fb554[_0x450982(0x16b)](this[_0x450982(0x149)]))return[];const _0x577fe6=a233_0x9fb554['readFileSync'](this['logFilePath'],_0x450982(0x16d));return _0x577fe6[_0x450982(0x166)]('\x0a')[_0x450982(0x151)](_0x2d70c5=>_0x2d70c5[_0x450982(0x16c)]())[_0x450982(0x158)](_0x4845=>JSON['parse'](_0x4845));}catch(_0x2e2094){return console[_0x450982(0x164)](_0x450982(0x171),_0x2e2094),[];}}['clearLogs'](){const _0xa1cdf3=a233_0x181e0a;try{a233_0x9fb554[_0xa1cdf3(0x16b)](this[_0xa1cdf3(0x149)])&&a233_0x9fb554['writeFileSync'](this[_0xa1cdf3(0x149)],'','utf8');}catch(_0x4f56d0){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4f56d0);}}[a233_0x181e0a(0x157)](){const _0x57e3ec=a233_0x181e0a;return this[_0x57e3ec(0x16f)];}}export const logger=new Logger();function a233_0x4b25(){const _0x3dad77=['now','toISOString','filter','stringify','.lovrabet.log','完成:\x20','info','timestamp','getWinstonInstance','map','details','1309OKOyyk','3575436raPWbV','12332528JSGPUf','setRawCommand','join','yellow','green','5762388UxVPez','rawCommand','unknown','warn','format','split','开始执行:\x20','3741330oAeqhs','currentRawCommand','initWinstonLogger','existsSync','trim','utf8','createLogger','winstonLogger','File','Failed\x20to\x20read\x20logs:','level','10722XDCoSz','1208175hMADoA','readLogs','success','combine','903588FpnXHJ','printf','command','logFilePath','error','transports','message','clear','setLogPath'];a233_0x4b25=function(){return _0x3dad77;};return a233_0x4b25();}
1
+ const a233_0x2d7b56=a233_0x1e22;(function(_0x28447e,_0xf2c4fc){const _0x206235=a233_0x1e22,_0x51d264=_0x28447e();while(!![]){try{const _0x5cf240=-parseInt(_0x206235(0x215))/0x1*(-parseInt(_0x206235(0x1e1))/0x2)+-parseInt(_0x206235(0x1ee))/0x3*(-parseInt(_0x206235(0x208))/0x4)+-parseInt(_0x206235(0x211))/0x5*(parseInt(_0x206235(0x217))/0x6)+-parseInt(_0x206235(0x1f4))/0x7*(-parseInt(_0x206235(0x1e4))/0x8)+parseInt(_0x206235(0x1f7))/0x9+parseInt(_0x206235(0x213))/0xa*(parseInt(_0x206235(0x1e8))/0xb)+-parseInt(_0x206235(0x1ed))/0xc;if(_0x5cf240===_0xf2c4fc)break;else _0x51d264['push'](_0x51d264['shift']());}catch(_0x1dc67d){_0x51d264['push'](_0x51d264['shift']());}}}(a233_0x4ebe,0x19681));function a233_0x4ebe(){const _0x3648fd=['mkdirSync','1741nsGiLR','dirname','278406hOyMdV','utf8','74tQVsqe','join','split','8IXEcRh','clear','timestamp','clearLogs','456401lVsajn','.lovrabet.log','currentRawCommand','Failed\x20to\x20clear\x20logs:','map','2888088Lsyyci','12EiEGLK','parse','setLogPath','开始执行:\x20','existsSync','errors','504644iknosS','filter','error','975393gamAAk','blue','now','transports','green','warn','readFileSync','yellow','winstonLogger','initWinstonLogger','失败:\x20','addColors','format','logFilePath','info','red','success','160984mSImnC','rawCommand','details','setRawCommand','message','trim','logTask','完成:\x20','stringify','20MltUCP','combine','30tPTkwc'];a233_0x4ebe=function(){return _0x3648fd;};return a233_0x4ebe();}import a233_0x1f9a54 from'winston';import a233_0x8eceb5 from'node:fs';import a233_0x3fcfb9 from'node:path';class Logger{[a233_0x2d7b56(0x1ff)];[a233_0x2d7b56(0x204)];[a233_0x2d7b56(0x1ea)]='';constructor(){const _0x4a17a4=a233_0x2d7b56;this[_0x4a17a4(0x204)]='';}[a233_0x2d7b56(0x20b)](_0x4b9b8b){const _0x300339=a233_0x2d7b56;this[_0x300339(0x1ea)]=_0x4b9b8b;}['initWinstonLogger'](){const _0x5aa78c=a233_0x2d7b56,_0x4f3012=a233_0x3fcfb9[_0x5aa78c(0x216)](this[_0x5aa78c(0x204)]);!a233_0x8eceb5[_0x5aa78c(0x1f2)](_0x4f3012)&&a233_0x8eceb5[_0x5aa78c(0x214)](_0x4f3012,{'recursive':!![]});const _0x38d95f=a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x212)](a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x1e6)](),a233_0x1f9a54[_0x5aa78c(0x203)][_0x5aa78c(0x1f3)]({'stack':!![]}),a233_0x1f9a54[_0x5aa78c(0x203)]['printf'](_0x2613a2=>{const _0x31f018=_0x5aa78c,_0x121a03={'timestamp':_0x2613a2[_0x31f018(0x1e6)]||new Date()['toISOString'](),'level':_0x2613a2['level']||'info','command':_0x2613a2['command']||'unknown','rawCommand':_0x2613a2[_0x31f018(0x209)]||this[_0x31f018(0x1ea)]||undefined,'message':_0x2613a2[_0x31f018(0x20c)]||'','duration':_0x2613a2['duration']||undefined,'details':_0x2613a2[_0x31f018(0x20a)]||undefined};return JSON[_0x31f018(0x210)](_0x121a03);}));this[_0x5aa78c(0x1ff)]=a233_0x1f9a54['createLogger']({'level':_0x5aa78c(0x205),'format':_0x38d95f,'transports':[new a233_0x1f9a54[(_0x5aa78c(0x1fa))]['File']({'filename':this[_0x5aa78c(0x204)],'level':_0x5aa78c(0x205)})],'silent':![]}),a233_0x1f9a54[_0x5aa78c(0x202)]({'success':_0x5aa78c(0x1fb),'error':_0x5aa78c(0x206),'warn':_0x5aa78c(0x1fe),'info':_0x5aa78c(0x1f8)});}[a233_0x2d7b56(0x1f0)](_0x494a13){const _0x6953b8=a233_0x2d7b56;this['logFilePath']=a233_0x3fcfb9[_0x6953b8(0x1e2)](_0x494a13,_0x6953b8(0x1e9)),this['winstonLogger']&&this['winstonLogger'][_0x6953b8(0x1e5)](),this[_0x6953b8(0x200)]();}[a233_0x2d7b56(0x205)](_0x1b3727,_0x5c0c5d,_0x3d839d){const _0x47fe5b=a233_0x2d7b56;if(!this[_0x47fe5b(0x204)]||!this[_0x47fe5b(0x1ff)])return;this[_0x47fe5b(0x1ff)][_0x47fe5b(0x205)](_0x5c0c5d,{'command':_0x1b3727,'details':_0x3d839d});}[a233_0x2d7b56(0x207)](_0x5daa63,_0x182e95,_0x3918c3,_0x14abde){const _0x25038b=a233_0x2d7b56;if(!this[_0x25038b(0x204)]||!this['winstonLogger'])return;this[_0x25038b(0x1ff)]['log'](_0x25038b(0x205),_0x182e95,{'level':_0x25038b(0x207),'command':_0x5daa63,'duration':_0x3918c3,'details':_0x14abde});}[a233_0x2d7b56(0x1f6)](_0x57b9d8,_0x116e72,_0xd6094f){const _0x3f1cc4=a233_0x2d7b56;if(!this[_0x3f1cc4(0x204)]||!this[_0x3f1cc4(0x1ff)])return;this['winstonLogger'][_0x3f1cc4(0x1f6)](_0x116e72,{'command':_0x57b9d8,'details':_0xd6094f});}[a233_0x2d7b56(0x1fc)](_0x4634f8,_0x57f036,_0x105411){const _0x2ea28d=a233_0x2d7b56;if(!this[_0x2ea28d(0x204)]||!this[_0x2ea28d(0x1ff)])return;this[_0x2ea28d(0x1ff)][_0x2ea28d(0x1fc)](_0x57f036,{'command':_0x4634f8,'details':_0x105411});}async[a233_0x2d7b56(0x20e)](_0x37b0ab,_0x36c4fd,_0x6c535){const _0xb6be7a=a233_0x2d7b56,_0x14726b=Date[_0xb6be7a(0x1f9)]();this[_0xb6be7a(0x205)](_0x37b0ab,_0xb6be7a(0x1f1)+_0x36c4fd);try{const _0x5c67c8=await _0x6c535(),_0x537f5f=Date[_0xb6be7a(0x1f9)]()-_0x14726b;return this['success'](_0x37b0ab,_0xb6be7a(0x20f)+_0x36c4fd,_0x537f5f),_0x5c67c8;}catch(_0x221b91){const _0x3b1312=Date[_0xb6be7a(0x1f9)]()-_0x14726b;this[_0xb6be7a(0x1f6)](_0x37b0ab,_0xb6be7a(0x201)+_0x36c4fd,{'error':_0x221b91 instanceof Error?_0x221b91[_0xb6be7a(0x20c)]:String(_0x221b91),'duration':_0x3b1312});throw _0x221b91;}}['readLogs'](){const _0x5450d7=a233_0x2d7b56;try{if(!a233_0x8eceb5[_0x5450d7(0x1f2)](this[_0x5450d7(0x204)]))return[];const _0x564e0b=a233_0x8eceb5[_0x5450d7(0x1fd)](this[_0x5450d7(0x204)],'utf8');return _0x564e0b[_0x5450d7(0x1e3)]('\x0a')[_0x5450d7(0x1f5)](_0x42f40a=>_0x42f40a[_0x5450d7(0x20d)]())[_0x5450d7(0x1ec)](_0x3c8075=>JSON[_0x5450d7(0x1ef)](_0x3c8075));}catch(_0x19466f){return console[_0x5450d7(0x1fc)]('Failed\x20to\x20read\x20logs:',_0x19466f),[];}}[a233_0x2d7b56(0x1e7)](){const _0x5252e0=a233_0x2d7b56;try{a233_0x8eceb5[_0x5252e0(0x1f2)](this[_0x5252e0(0x204)])&&a233_0x8eceb5['writeFileSync'](this[_0x5252e0(0x204)],'',_0x5252e0(0x1e0));}catch(_0x28afca){console[_0x5252e0(0x1fc)](_0x5252e0(0x1eb),_0x28afca);}}['getWinstonInstance'](){const _0x11d197=a233_0x2d7b56;return this[_0x11d197(0x1ff)];}}function a233_0x1e22(_0x24310e,_0x4ef1e0){_0x24310e=_0x24310e-0x1e0;const _0x4ebed6=a233_0x4ebe();let _0x1e22d9=_0x4ebed6[_0x24310e];return _0x1e22d9;}export const logger=new Logger();