@lovrabet/rabetbase-cli 2.3.4-beta.1 → 2.3.4-beta.3

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 (219) hide show
  1. package/README.md +99 -560
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/generate.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-audit.js +1 -1
  69. package/lib/commands/dataset/relation-create.js +1 -1
  70. package/lib/commands/dataset/relation-delete.js +1 -1
  71. package/lib/commands/dataset/relation-shared.js +1 -1
  72. package/lib/commands/dataset/relation-update.js +1 -1
  73. package/lib/commands/dataset/relations.js +1 -1
  74. package/lib/commands/dataset/rename.js +1 -1
  75. package/lib/commands/dataset/restore.js +1 -1
  76. package/lib/commands/db/analyze-cancel.js +1 -1
  77. package/lib/commands/db/analyze-start.js +1 -1
  78. package/lib/commands/db/analyze-status.js +1 -1
  79. package/lib/commands/db/create.js +1 -1
  80. package/lib/commands/db/delete.js +1 -1
  81. package/lib/commands/db/detail.js +1 -1
  82. package/lib/commands/db/diff.js +1 -1
  83. package/lib/commands/db/index.js +1 -1
  84. package/lib/commands/db/list.js +1 -1
  85. package/lib/commands/db/shared.js +1 -1
  86. package/lib/commands/db/tables.js +1 -1
  87. package/lib/commands/db/test.js +1 -1
  88. package/lib/commands/db/update.js +1 -1
  89. package/lib/commands/doctor.js +1 -1
  90. package/lib/commands/init/index.js +1 -1
  91. package/lib/commands/issue/index.js +1 -1
  92. package/lib/commands/issue/nudge.js +1 -1
  93. package/lib/commands/issue/report.js +1 -1
  94. package/lib/commands/issue/shared.js +1 -1
  95. package/lib/commands/logs/index.js +1 -1
  96. package/lib/commands/menu/index.js +1 -1
  97. package/lib/commands/menu/list.js +1 -1
  98. package/lib/commands/menu/shared/compare-table.js +1 -1
  99. package/lib/commands/menu/shared/index.js +1 -1
  100. package/lib/commands/menu/shared/inquirer.js +1 -1
  101. package/lib/commands/menu/shared/local-pages.js +1 -1
  102. package/lib/commands/menu/shared/logic.js +1 -1
  103. package/lib/commands/menu/shared/service.js +1 -1
  104. package/lib/commands/menu/shared/sync-core.js +1 -1
  105. package/lib/commands/menu/shared/update-core.js +1 -1
  106. package/lib/commands/menu/shared/valid-url.js +1 -1
  107. package/lib/commands/menu/sync.js +1 -1
  108. package/lib/commands/menu/update.js +1 -1
  109. package/lib/commands/page/generate-start.js +1 -1
  110. package/lib/commands/page/generate-status.js +1 -1
  111. package/lib/commands/page/index.js +1 -1
  112. package/lib/commands/page/pull.js +1 -1
  113. package/lib/commands/page/push.js +1 -1
  114. package/lib/commands/page/relation-audit.js +1 -1
  115. package/lib/commands/page/shared.js +1 -1
  116. package/lib/commands/page/standard-page-status.js +1 -1
  117. package/lib/commands/page/sync.js +1 -1
  118. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  119. package/lib/commands/project/create/format-elapsed.js +1 -1
  120. package/lib/commands/project/create/main.js +1 -1
  121. package/lib/commands/project/create/non-interactive.js +1 -1
  122. package/lib/commands/project/create/project-template-path.js +1 -1
  123. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  124. package/lib/commands/project/create/use-format-code.js +1 -1
  125. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  126. package/lib/commands/project/index.js +1 -1
  127. package/lib/commands/project/init.js +1 -1
  128. package/lib/commands/project/upgrade.js +1 -1
  129. package/lib/commands/registry.js +1 -1
  130. package/lib/commands/run/index.js +1 -1
  131. package/lib/commands/schema.js +1 -1
  132. package/lib/commands/sql/create.js +1 -1
  133. package/lib/commands/sql/delete.js +1 -1
  134. package/lib/commands/sql/detail.js +1 -1
  135. package/lib/commands/sql/exec.js +1 -1
  136. package/lib/commands/sql/index.js +1 -1
  137. package/lib/commands/sql/list.js +1 -1
  138. package/lib/commands/sql/pull.js +1 -1
  139. package/lib/commands/sql/push.js +1 -1
  140. package/lib/commands/sql/save.js +1 -1
  141. package/lib/commands/sql/shared.js +1 -1
  142. package/lib/commands/sql/status.js +1 -1
  143. package/lib/commands/sql/validate.js +1 -1
  144. package/lib/commands/workspace/index.js +1 -1
  145. package/lib/config/schema.js +1 -1
  146. package/lib/constant/cdn.js +1 -1
  147. package/lib/constant/cli.js +1 -1
  148. package/lib/constant/defaults.js +1 -1
  149. package/lib/constant/domain.js +1 -1
  150. package/lib/constant/env.js +1 -1
  151. package/lib/constant/output.js +1 -1
  152. package/lib/constant/paths.js +1 -1
  153. package/lib/constant/risk.js +1 -1
  154. package/lib/context/app-resolver.js +1 -1
  155. package/lib/context/auth-resolver.js +1 -1
  156. package/lib/context/config-loader.js +1 -1
  157. package/lib/context.js +1 -1
  158. package/lib/core/alias-resolver.js +1 -1
  159. package/lib/core/api-client.js +1 -1
  160. package/lib/core/bff/config.js +1 -1
  161. package/lib/core/bff/file-system.js +1 -1
  162. package/lib/core/bff/hash.js +1 -1
  163. package/lib/core/bff/lock.js +1 -1
  164. package/lib/core/bff/utils.js +1 -1
  165. package/lib/core/db-resolver.js +1 -1
  166. package/lib/core/page/file-system.js +1 -1
  167. package/lib/core/page/hash.js +1 -1
  168. package/lib/core/page/lock.js +1 -1
  169. package/lib/core/sql-sync/config.js +1 -1
  170. package/lib/core/sql-sync/file-system.js +1 -1
  171. package/lib/core/sql-sync/hash.js +1 -1
  172. package/lib/core/sql-sync/lock.js +1 -1
  173. package/lib/core/sql-sync/utils.js +1 -1
  174. package/lib/core/sql-validator.js +1 -1
  175. package/lib/errors.js +1 -1
  176. package/lib/framework/build-all-flags.js +1 -1
  177. package/lib/framework/flags.js +1 -1
  178. package/lib/framework/help.js +1 -1
  179. package/lib/framework/index.js +1 -1
  180. package/lib/framework/output.js +1 -1
  181. package/lib/framework/response.js +1 -1
  182. package/lib/framework/runner-alias.js +1 -1
  183. package/lib/framework/runner.js +1 -1
  184. package/lib/framework/schema-export.js +1 -1
  185. package/lib/framework/types.js +1 -1
  186. package/lib/generated/build-info.js +1 -1
  187. package/lib/help.js +1 -1
  188. package/lib/skills/main.js +1 -1
  189. package/lib/skills/npx-skills-add.js +1 -1
  190. package/lib/telemetry/cli-command-trace.js +1 -1
  191. package/lib/telemetry/cli-help-trace.js +1 -1
  192. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  193. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  194. package/lib/telemetry/send-cli-trace-log.js +1 -1
  195. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  196. package/lib/utils/ai_config.js +1 -1
  197. package/lib/utils/apply-jq-filter.js +1 -1
  198. package/lib/utils/cdn-config.js +1 -1
  199. package/lib/utils/check-sdk-version.js +1 -1
  200. package/lib/utils/cli-version-check.js +1 -1
  201. package/lib/utils/cli-version-policy.js +1 -1
  202. package/lib/utils/config.js +1 -1
  203. package/lib/utils/copy-directory.js +1 -1
  204. package/lib/utils/entity-with-id.js +1 -1
  205. package/lib/utils/file-utils.js +1 -1
  206. package/lib/utils/guides-cdn.js +1 -1
  207. package/lib/utils/http-client.js +1 -1
  208. package/lib/utils/is-non-interactive.js +1 -1
  209. package/lib/utils/logger.js +1 -1
  210. package/lib/utils/params.js +1 -1
  211. package/lib/utils/platform.js +1 -1
  212. package/lib/utils/rules-cdn.js +1 -1
  213. package/lib/utils/sleep.js +1 -1
  214. package/lib/utils/template-replacer.js +1 -1
  215. package/lib/utils/update-notice.js +1 -1
  216. package/lib/utils/version.js +1 -1
  217. package/lib/utils/with-active-cookie.js +1 -1
  218. package/lib/utils/write-cli-side-channel.js +1 -1
  219. package/package.json +18 -2
@@ -1 +1 @@
1
- function a199_0x2acf(_0x57a97e,_0x4f3629){_0x57a97e=_0x57a97e-0x12d;const _0x4fc6e6=a199_0x4fc6();let _0x2acfd1=_0x4fc6e6[_0x57a97e];return _0x2acfd1;}const a199_0x5c0950=a199_0x2acf;(function(_0x3dd712,_0x4256cf){const _0x17dede=a199_0x2acf,_0x17f995=_0x3dd712();while(!![]){try{const _0x2e3d80=parseInt(_0x17dede(0x15e))/0x1+parseInt(_0x17dede(0x143))/0x2*(parseInt(_0x17dede(0x13b))/0x3)+-parseInt(_0x17dede(0x144))/0x4*(parseInt(_0x17dede(0x140))/0x5)+-parseInt(_0x17dede(0x13a))/0x6+parseInt(_0x17dede(0x12f))/0x7*(-parseInt(_0x17dede(0x142))/0x8)+-parseInt(_0x17dede(0x13c))/0x9+parseInt(_0x17dede(0x134))/0xa;if(_0x2e3d80===_0x4256cf)break;else _0x17f995['push'](_0x17f995['shift']());}catch(_0x25779c){_0x17f995['push'](_0x17f995['shift']());}}}(a199_0x4fc6,0x5b555));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x5c0950(0x14f),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a199_0x5c0950(0x156),'template':a199_0x5c0950(0x154)}]},'windsurf':{'name':a199_0x5c0950(0x15a),'description':a199_0x5c0950(0x139),'folders':['.windsurf'],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x138),'template':a199_0x5c0950(0x154)}]},'claude':{'name':a199_0x5c0950(0x15f),'description':a199_0x5c0950(0x15f),'folders':['.claude'],'files':[{'type':a199_0x5c0950(0x147),'path':'.claude/skills/lovrabet/SKILL.md','template':a199_0x5c0950(0x154)}]},'cline':{'name':a199_0x5c0950(0x153),'description':a199_0x5c0950(0x135),'folders':[a199_0x5c0950(0x150)],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x12d),'template':a199_0x5c0950(0x154)}]},'codex':{'name':a199_0x5c0950(0x145),'description':a199_0x5c0950(0x13d),'folders':['.codex'],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x130),'template':a199_0x5c0950(0x154)}]},'opencode':{'name':a199_0x5c0950(0x158),'description':a199_0x5c0950(0x148),'folders':['.opencode'],'files':[{'type':'file','path':a199_0x5c0950(0x152),'template':a199_0x5c0950(0x154)}]},'qoder':{'name':a199_0x5c0950(0x15b),'description':a199_0x5c0950(0x13f),'folders':[a199_0x5c0950(0x159)],'files':[{'type':a199_0x5c0950(0x147),'path':'.qoder/rules/rabetbase.md','template':a199_0x5c0950(0x154)},{'type':a199_0x5c0950(0x147),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a199_0x5c0950(0x131),'description':a199_0x5c0950(0x146),'folders':[a199_0x5c0950(0x15d)],'files':[{'type':a199_0x5c0950(0x147),'path':a199_0x5c0950(0x151),'template':a199_0x5c0950(0x154)}]},'trae':{'name':'Trae','description':a199_0x5c0950(0x13e),'folders':[a199_0x5c0950(0x141)],'files':[{'type':a199_0x5c0950(0x147),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a199_0x5c0950(0x132),'folders':[a199_0x5c0950(0x14e)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'antigravity':{'name':a199_0x5c0950(0x155),'description':a199_0x5c0950(0x14d),'folders':[a199_0x5c0950(0x14e)],'files':[{'type':a199_0x5c0950(0x147),'path':'.agent/skills/lovrabet/SKILL.md','template':a199_0x5c0950(0x154)}]}};export const CORE_IDE_LIST=['claude',a199_0x5c0950(0x149),'codebuddy',a199_0x5c0950(0x14c),a199_0x5c0950(0x14a),a199_0x5c0950(0x12e),a199_0x5c0950(0x133),a199_0x5c0950(0x137),a199_0x5c0950(0x136)];export const IDE_LIST=['antigravity',a199_0x5c0950(0x14b),a199_0x5c0950(0x149),a199_0x5c0950(0x15c),a199_0x5c0950(0x14c),'cursor',a199_0x5c0950(0x12e),'qoder','trae','windsurf',a199_0x5c0950(0x157)];export const ALL_CORE_IDES=['cursor',a199_0x5c0950(0x136),a199_0x5c0950(0x14b),a199_0x5c0950(0x149),a199_0x5c0950(0x14c),a199_0x5c0950(0x12e),'qoder',a199_0x5c0950(0x15c),a199_0x5c0950(0x137)];function a199_0x4fc6(){const _0x2add09=['trae','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','1408200lhTHXm','6lPONWz','45216otCWlH','Codex\x20IDE','Trae\x20IDE','Qoder\x20IDE','5yrQKMP','.trae','1226760icpIQe','199514dfGeMT','2269340zYQXyt','Codex','CodeBuddy\x20IDE','file','OpenCode\x20IDE','cline','cursor','claude','codex','Antigravity\x20IDE','.agent','Cursor','.cline','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','Cline','SKILL.md.tpl','Antigravity','.cursor/skills/rabetbase.md','agent','OpenCode','.qoder','Windsurf','Qoder','codebuddy','.codebuddy','312229QfZETg','Claude\x20Code','.cline/skills/lovrabet/SKILL.md','opencode','21DaKzMh','.codex/skills/lovrabet/SKILL.md','CodeBuddy','通用模板\x20-\x20兜底方案','qoder','11294520DdMdEf','Cline\x20IDE','windsurf'];a199_0x4fc6=function(){return _0x2add09;};return a199_0x4fc6();}
1
+ function a199_0x2703(_0xdc3761,_0xbc2910){_0xdc3761=_0xdc3761-0x144;const _0x2f9f69=a199_0x2f9f();let _0x2703c3=_0x2f9f69[_0xdc3761];return _0x2703c3;}const a199_0x31c6ed=a199_0x2703;(function(_0x3bb856,_0x33118c){const _0x252b7e=a199_0x2703,_0x209bd0=_0x3bb856();while(!![]){try{const _0x4de930=parseInt(_0x252b7e(0x177))/0x1+parseInt(_0x252b7e(0x155))/0x2*(parseInt(_0x252b7e(0x14d))/0x3)+parseInt(_0x252b7e(0x174))/0x4+-parseInt(_0x252b7e(0x168))/0x5+-parseInt(_0x252b7e(0x14c))/0x6+-parseInt(_0x252b7e(0x172))/0x7*(parseInt(_0x252b7e(0x160))/0x8)+-parseInt(_0x252b7e(0x14a))/0x9;if(_0x4de930===_0x33118c)break;else _0x209bd0['push'](_0x209bd0['shift']());}catch(_0x3835fd){_0x209bd0['push'](_0x209bd0['shift']());}}}(a199_0x2f9f,0xd1fab));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x31c6ed(0x16a),'description':a199_0x31c6ed(0x16c),'folders':[a199_0x31c6ed(0x163),'.cursor'],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x173),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a199_0x31c6ed(0x154),'description':a199_0x31c6ed(0x171),'folders':[a199_0x31c6ed(0x164)],'files':[{'type':a199_0x31c6ed(0x178),'path':'.windsurf/workflows/rabetbase.md','template':a199_0x31c6ed(0x14e)}]},'claude':{'name':a199_0x31c6ed(0x159),'description':'Claude\x20Code','folders':[a199_0x31c6ed(0x175)],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x151),'template':a199_0x31c6ed(0x14e)}]},'cline':{'name':'Cline','description':a199_0x31c6ed(0x15b),'folders':[a199_0x31c6ed(0x147)],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x167),'template':a199_0x31c6ed(0x14e)}]},'codex':{'name':'Codex','description':a199_0x31c6ed(0x179),'folders':[a199_0x31c6ed(0x15a)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a199_0x31c6ed(0x14e)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a199_0x31c6ed(0x15c)],'files':[{'type':a199_0x31c6ed(0x178),'path':'.opencode/skills/lovrabet/SKILL.md','template':a199_0x31c6ed(0x14e)}]},'qoder':{'name':a199_0x31c6ed(0x16e),'description':a199_0x31c6ed(0x162),'folders':[a199_0x31c6ed(0x15f)],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x16d),'template':a199_0x31c6ed(0x14e)},{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x15e),'template':a199_0x31c6ed(0x14e)}]},'codebuddy':{'name':a199_0x31c6ed(0x148),'description':a199_0x31c6ed(0x149),'folders':['.codebuddy'],'files':[{'type':a199_0x31c6ed(0x178),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a199_0x31c6ed(0x14e)}]},'trae':{'name':a199_0x31c6ed(0x176),'description':a199_0x31c6ed(0x16b),'folders':[a199_0x31c6ed(0x145)],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x152),'template':a199_0x31c6ed(0x14e)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a199_0x31c6ed(0x15d),'description':a199_0x31c6ed(0x169),'folders':[a199_0x31c6ed(0x170)],'files':[{'type':'file','path':a199_0x31c6ed(0x158),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a199_0x31c6ed(0x156),'description':'Antigravity\x20IDE','folders':[a199_0x31c6ed(0x170)],'files':[{'type':a199_0x31c6ed(0x178),'path':a199_0x31c6ed(0x158),'template':a199_0x31c6ed(0x14e)}]}};export const CORE_IDE_LIST=[a199_0x31c6ed(0x165),'cline',a199_0x31c6ed(0x153),'codex',a199_0x31c6ed(0x144),'opencode',a199_0x31c6ed(0x166),a199_0x31c6ed(0x146),'windsurf'];export const IDE_LIST=[a199_0x31c6ed(0x150),a199_0x31c6ed(0x165),a199_0x31c6ed(0x157),'codebuddy',a199_0x31c6ed(0x14b),a199_0x31c6ed(0x144),a199_0x31c6ed(0x14f),'qoder','trae',a199_0x31c6ed(0x16f),a199_0x31c6ed(0x161)];function a199_0x2f9f(){const _0x9faebf=['1279764YyfxuR','codex','10190430VggFlX','1160916aUAvdJ','SKILL.md.tpl','opencode','antigravity','.claude/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','codebuddy','Windsurf','6qbuLwG','Antigravity','cline','.agent/skills/lovrabet/SKILL.md','Claude\x20Code','.codex','Cline\x20IDE','.opencode','其他\x20(通用模板)','.qoder/skills/lovrabet/SKILL.md','.qoder','8tdxnYs','agent','Qoder\x20IDE','.cursorrules','.windsurf','claude','qoder','.cline/skills/lovrabet/SKILL.md','3915080movGTr','通用模板\x20-\x20兜底方案','Cursor','Trae\x20IDE','Cursor\x20IDE','.qoder/rules/rabetbase.md','Qoder','windsurf','.agent','Windsurf\x20IDE','6426462sfWlTG','.cursor/skills/rabetbase.md','6206120Qvufqh','.claude','Trae','1689312rfIXig','file','Codex\x20IDE','cursor','.trae','trae','.cline','CodeBuddy','CodeBuddy\x20IDE'];a199_0x2f9f=function(){return _0x9faebf;};return a199_0x2f9f();}export const ALL_CORE_IDES=[a199_0x31c6ed(0x144),a199_0x31c6ed(0x16f),a199_0x31c6ed(0x165),a199_0x31c6ed(0x157),a199_0x31c6ed(0x14b),a199_0x31c6ed(0x14f),a199_0x31c6ed(0x166),a199_0x31c6ed(0x153),'trae'];
@@ -1 +1 @@
1
- (function(_0x34ff13,_0xff8eed){const _0xa5c8f3=a200_0x25d0,_0xec5e1d=_0x34ff13();while(!![]){try{const _0x164c50=-parseInt(_0xa5c8f3(0x7a))/0x1*(-parseInt(_0xa5c8f3(0x7c))/0x2)+parseInt(_0xa5c8f3(0x81))/0x3*(parseInt(_0xa5c8f3(0x80))/0x4)+parseInt(_0xa5c8f3(0x7d))/0x5+parseInt(_0xa5c8f3(0x7b))/0x6*(parseInt(_0xa5c8f3(0x79))/0x7)+parseInt(_0xa5c8f3(0x77))/0x8*(-parseInt(_0xa5c8f3(0x7f))/0x9)+parseInt(_0xa5c8f3(0x7e))/0xa+-parseInt(_0xa5c8f3(0x76))/0xb*(parseInt(_0xa5c8f3(0x78))/0xc);if(_0x164c50===_0xff8eed)break;else _0xec5e1d['push'](_0xec5e1d['shift']());}catch(_0x349b10){_0xec5e1d['push'](_0xec5e1d['shift']());}}}(a200_0xfd95,0xa591c));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x25d0(_0x7cc731,_0xf15fc6){_0x7cc731=_0x7cc731-0x76;const _0xfd9558=a200_0xfd95();let _0x25d0d0=_0xfd9558[_0x7cc731];return _0x25d0d0;}function a200_0xfd95(){const _0x402524=['2086100KuqDdZ','630370XUVsHH','9OLRlyl','16ITWnYy','831132LHoaCE','863016KuvoUv','6986344STNZhQ','228hWYhpA','35xNuhmk','49CjtTEv','1404630ivemFW','11558NKTeTm'];a200_0xfd95=function(){return _0x402524;};return a200_0xfd95();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x485c81,_0x506b19){const _0x366ab3=a200_0x305c,_0x311527=_0x485c81();while(!![]){try{const _0x30f771=-parseInt(_0x366ab3(0xab))/0x1+parseInt(_0x366ab3(0xb1))/0x2+-parseInt(_0x366ab3(0xac))/0x3*(-parseInt(_0x366ab3(0xb0))/0x4)+parseInt(_0x366ab3(0xa9))/0x5+parseInt(_0x366ab3(0xaa))/0x6+parseInt(_0x366ab3(0xae))/0x7*(parseInt(_0x366ab3(0xb2))/0x8)+parseInt(_0x366ab3(0xaf))/0x9*(-parseInt(_0x366ab3(0xad))/0xa);if(_0x30f771===_0x506b19)break;else _0x311527['push'](_0x311527['shift']());}catch(_0xef21bb){_0x311527['push'](_0x311527['shift']());}}}(a200_0x56d4,0x4267a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x56d4(){const _0x37b582=['1552CgRLHE','130870AgdZZK','2750376YuoSSb','15576ncThkd','18456ldcfJH','4589660INpyzS','6573llpSXO','18KKIMPR','332PIdVgs','56300ewvZjL'];a200_0x56d4=function(){return _0x37b582;};return a200_0x56d4();}function a200_0x305c(_0x36799b,_0x1abb2b){_0x36799b=_0x36799b-0xa9;const _0x56d4be=a200_0x56d4();let _0x305c1e=_0x56d4be[_0x36799b];return _0x305c1e;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a201_0x996c(_0x93e588,_0x196204){_0x93e588=_0x93e588-0xcd;const _0x50bab4=a201_0x50ba();let _0x996c12=_0x50bab4[_0x93e588];return _0x996c12;}(function(_0x54ffe2,_0x2e5318){const _0xa45ebf=a201_0x996c,_0x4817ba=_0x54ffe2();while(!![]){try{const _0x2ec631=-parseInt(_0xa45ebf(0xd1))/0x1*(-parseInt(_0xa45ebf(0xd7))/0x2)+parseInt(_0xa45ebf(0xd2))/0x3+parseInt(_0xa45ebf(0xd3))/0x4+-parseInt(_0xa45ebf(0xd0))/0x5+parseInt(_0xa45ebf(0xce))/0x6+parseInt(_0xa45ebf(0xd9))/0x7+-parseInt(_0xa45ebf(0xd4))/0x8;if(_0x2ec631===_0x2e5318)break;else _0x4817ba['push'](_0x4817ba['shift']());}catch(_0x314b45){_0x4817ba['push'](_0x4817ba['shift']());}}}(a201_0x50ba,0xd6110));function a201_0x50ba(){const _0x3b2fe2=['8AHglRn','2040876UYdKoN','2190288yDpGqi','19504904zwAFps','cli','node','173252DmVpWP','sdk','11833577OvoiFd','stableVersion','3489456nEKzSF','now','4390150vfDcpu'];a201_0x50ba=function(){return _0x3b2fe2;};return a201_0x50ba();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x43fba6=a201_0x996c,_0x536cd5=getTemplateBaseUrl(),_0x4081d2=[_0x536cd5+'/config.json',_0x536cd5+'/config/index.json'];for(const _0x5332ae of _0x4081d2){try{const _0x1d9dd8=await fetch(_0x5332ae,{'headers':{'Accept':'application/json'}});if(!_0x1d9dd8['ok'])continue;const _0x1d0a27=await _0x1d9dd8['json']();if(!_0x1d0a27[_0x43fba6(0xd5)]?.[_0x43fba6(0xcd)]||!_0x1d0a27[_0x43fba6(0xd8)]?.[_0x43fba6(0xd6)]?.[_0x43fba6(0xcd)])continue;return _0x1d0a27;}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 _0x1d90b3=a201_0x996c,_0x45e0b7=Date[_0x1d90b3(0xcf)]();if(hasCachedConfig){const _0x54f6ca=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x45e0b7-cacheTime<_0x54f6ca)return cachedConfig;}const _0x41c459=await fetchCdnConfig();return cachedConfig=_0x41c459,cacheTime=_0x45e0b7,hasCachedConfig=!![],_0x41c459;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x393f5b,_0x177568){const _0x5230e6=a201_0x4b87,_0x5b0417=_0x393f5b();while(!![]){try{const _0x241078=-parseInt(_0x5230e6(0x1b1))/0x1+-parseInt(_0x5230e6(0x1b6))/0x2*(-parseInt(_0x5230e6(0x1b5))/0x3)+parseInt(_0x5230e6(0x1b3))/0x4+parseInt(_0x5230e6(0x1b0))/0x5+-parseInt(_0x5230e6(0x1b2))/0x6+parseInt(_0x5230e6(0x1aa))/0x7+parseInt(_0x5230e6(0x1ad))/0x8;if(_0x241078===_0x177568)break;else _0x5b0417['push'](_0x5b0417['shift']());}catch(_0x559e9a){_0x5b0417['push'](_0x5b0417['shift']());}}}(a201_0x2227,0x743ad));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5dcff6=a201_0x4b87,_0x36141f=getTemplateBaseUrl(),_0x4fa226=[_0x36141f+_0x5dcff6(0x1b9),_0x36141f+_0x5dcff6(0x1b7)];for(const _0x4ff940 of _0x4fa226){try{const _0x6046c2=await fetch(_0x4ff940,{'headers':{'Accept':_0x5dcff6(0x1ac)}});if(!_0x6046c2['ok'])continue;const _0x4c8e79=await _0x6046c2[_0x5dcff6(0x1ab)]();if(!_0x4c8e79['cli']?.[_0x5dcff6(0x1b8)]||!_0x4c8e79[_0x5dcff6(0x1af)]?.[_0x5dcff6(0x1b4)]?.[_0x5dcff6(0x1b8)])continue;return _0x4c8e79;}catch{}}return null;}function a201_0x4b87(_0xa9c924,_0x5e70f4){_0xa9c924=_0xa9c924-0x1aa;const _0x2227fe=a201_0x2227();let _0x4b87cd=_0x2227fe[_0xa9c924];return _0x4b87cd;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a201_0x2227(){const _0x4d202f=['application/json','5075512jmdpBe','now','sdk','810850xtRgwY','304793IJKBJQ','4823394faVRSB','27700IoyONv','node','52935yOfZOE','58hFFxXr','/config/index.json','stableVersion','/config.json','1886710fJHQFT','json'];a201_0x2227=function(){return _0x4d202f;};return a201_0x2227();}export async function getCdnConfig(){const _0x176594=a201_0x4b87,_0x1a11b3=Date[_0x176594(0x1ae)]();if(hasCachedConfig){const _0x3b572d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a11b3-cacheTime<_0x3b572d)return cachedConfig;}const _0x4b7cac=await fetchCdnConfig();return cachedConfig=_0x4b7cac,cacheTime=_0x1a11b3,hasCachedConfig=!![],_0x4b7cac;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a202_0x21be0b=a202_0x47bd;(function(_0x171daa,_0x2f681d){const _0x4077a7=a202_0x47bd,_0x112b83=_0x171daa();while(!![]){try{const _0x492156=parseInt(_0x4077a7(0x1a1))/0x1+-parseInt(_0x4077a7(0x1a4))/0x2*(-parseInt(_0x4077a7(0x1ad))/0x3)+-parseInt(_0x4077a7(0x19e))/0x4+-parseInt(_0x4077a7(0x19b))/0x5+-parseInt(_0x4077a7(0x1b3))/0x6+parseInt(_0x4077a7(0x191))/0x7*(parseInt(_0x4077a7(0x1a9))/0x8)+parseInt(_0x4077a7(0x194))/0x9;if(_0x492156===_0x2f681d)break;else _0x112b83['push'](_0x112b83['shift']());}catch(_0x5acafd){_0x112b83['push'](_0x112b83['shift']());}}}(a202_0x1aa4,0x43c6d));import a202_0x1a55b6 from'node:fs';import a202_0xdd7d8f from'node:path';import a202_0x30f5c3 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a202_0x1aa4(){const _0x8c802f=['1962968uSznoY','1.2.0','npm\x20install\x20','\x1b[0m','524049NlTKDY','node','\x20\x20\x20Stable\x20version:\x20','utf8','stableVersion','log','2542908rUfudX','some','↪\x20SDK\x20update\x20available','version','utf-8','7eJZDov','coerce','join','4734396pevkmu','package.json','devDependencies','existsSync','@lovrabet/sdk','readFileSync','\x20\x20\x20Current\x20version:\x20','160885oYCepb','\x1b[33m','\x1b[1m','1841860acdmmz','packageName','latest','247975YejZxS','dependencies','needsUpgrade','2glSifv','all','test','sdk','parse'];a202_0x1aa4=function(){return _0x8c802f;};return a202_0x1aa4();}const FALLBACK_MIN_SDK_VERSION=a202_0x21be0b(0x1aa);function isNonNumericVersion(_0x1c7667){const _0x4728ec=a202_0x21be0b,_0x3d6556=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3d6556[_0x4728ec(0x1b4)](_0x47cfcb=>_0x47cfcb[_0x4728ec(0x1a6)](_0x1c7667));}function getInstalledVersion(_0x3544a9,_0x4b624f){const _0x3eb29d=a202_0x21be0b;try{const _0xb2bf76=a202_0xdd7d8f['join'](_0x3544a9,'node_modules',_0x4b624f,_0x3eb29d(0x195));if(a202_0x1a55b6['existsSync'](_0xb2bf76)){const _0x4450e8=JSON[_0x3eb29d(0x1a8)](a202_0x1a55b6[_0x3eb29d(0x199)](_0xb2bf76,_0x3eb29d(0x190)));return _0x4450e8[_0x3eb29d(0x18f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x899f9d=a202_0x21be0b;try{const _0xb133d6=await getCdnConfig();return _0xb133d6?.['sdk']?.[_0x899f9d(0x1ae)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x41f9f9=a202_0x21be0b;try{const _0x5b7fa0=await getCdnConfig();return _0x5b7fa0?.[_0x41f9f9(0x1a7)]?.[_0x41f9f9(0x1ae)]?.['packageName']||_0x41f9f9(0x198);}catch{return'@lovrabet/sdk';}}function a202_0x47bd(_0x1e13a1,_0x4da1cb){_0x1e13a1=_0x1e13a1-0x18f;const _0x1aa47b=a202_0x1aa4();let _0x47bdb1=_0x1aa47b[_0x1e13a1];return _0x47bdb1;}export async function checkSdkVersion(_0x393eb7){const _0x20f131=a202_0x21be0b,_0x376871=a202_0xdd7d8f[_0x20f131(0x193)](_0x393eb7,'package.json'),[_0x121e9f,_0x1c847d]=await Promise[_0x20f131(0x1a5)]([getSdkStableVersion(),getSdkPackageName()]),_0xdbed2e=_0x121e9f||FALLBACK_MIN_SDK_VERSION;if(!a202_0x1a55b6[_0x20f131(0x197)](_0x376871))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};try{const _0x309d8b=JSON['parse'](a202_0x1a55b6[_0x20f131(0x199)](_0x376871,_0x20f131(0x1b0))),_0x73712=_0x309d8b[_0x20f131(0x1a2)]||{},_0xdaa6d4=_0x309d8b[_0x20f131(0x196)]||{},_0x1a82e9=_0x73712[_0x1c847d]||_0xdaa6d4[_0x1c847d];if(!_0x1a82e9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};let _0x4d9a24=getInstalledVersion(_0x393eb7,_0x1c847d);!_0x4d9a24&&(_0x4d9a24=_0x1a82e9);if(isNonNumericVersion(_0x1a82e9))return{'installed':!![],'version':_0x4d9a24,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};const _0x38ee40=a202_0x30f5c3[_0x20f131(0x192)](_0x4d9a24),_0x8dc031=a202_0x30f5c3[_0x20f131(0x192)](_0xdbed2e),_0x5583bd=_0x38ee40&&_0x8dc031?a202_0x30f5c3['lt'](_0x38ee40,_0x8dc031):![];return{'installed':!![],'version':_0x4d9a24,'needsUpgrade':_0x5583bd,'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xdbed2e,'packageName':_0x1c847d,'stableVersion':_0x121e9f};}}export function checkSdkVersionSync(_0x57a38a){const _0x486983=a202_0x21be0b,_0x187ab6=a202_0xdd7d8f[_0x486983(0x193)](_0x57a38a,_0x486983(0x195)),_0x41aa75=_0x486983(0x198);if(!a202_0x1a55b6[_0x486983(0x197)](_0x187ab6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};try{const _0x1c409f=JSON[_0x486983(0x1a8)](a202_0x1a55b6['readFileSync'](_0x187ab6,_0x486983(0x1b0))),_0x54c868=_0x1c409f[_0x486983(0x1a2)]||{},_0x19c0ef=_0x1c409f[_0x486983(0x196)]||{},_0x9b28a1=_0x54c868[_0x41aa75]||_0x19c0ef[_0x41aa75];if(!_0x9b28a1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};let _0x296cc8=getInstalledVersion(_0x57a38a,_0x41aa75);!_0x296cc8&&(_0x296cc8=_0x9b28a1);if(isNonNumericVersion(_0x9b28a1))return{'installed':!![],'version':_0x296cc8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};const _0x3174bc=a202_0x30f5c3['coerce'](_0x296cc8),_0x252e4e=_0x3174bc?a202_0x30f5c3['lt'](_0x3174bc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x296cc8,'needsUpgrade':_0x252e4e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x41aa75,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x292f46){const _0x250361=a202_0x21be0b;if(!_0x292f46[_0x250361(0x1a3)])return;const _0x204d54=_0x250361(0x19c),_0x471be3=_0x250361(0x1ac),_0x2b41c0=_0x250361(0x19d),_0x1ff3a1=_0x292f46[_0x250361(0x19f)]||_0x250361(0x198),_0x2b2a85=_0x292f46[_0x250361(0x1b1)]||_0x292f46['minVersion'],_0x5cc632=_0x250361(0x1ab)+_0x1ff3a1+'@'+(_0x2b2a85||_0x250361(0x1a0));console[_0x250361(0x1b2)](),console[_0x250361(0x1b2)](''+_0x204d54+_0x2b41c0+_0x250361(0x1b5)+_0x471be3),console[_0x250361(0x1b2)](_0x204d54+_0x250361(0x19a)+_0x1ff3a1+'@'+_0x292f46[_0x250361(0x18f)]+_0x471be3),console['log'](_0x204d54+_0x250361(0x1af)+_0x2b2a85+_0x471be3),console[_0x250361(0x1b2)](_0x204d54+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5cc632+_0x471be3),console[_0x250361(0x1b2)]();}
1
+ function a202_0x2494(_0x5d82ef,_0x53f970){_0x5d82ef=_0x5d82ef-0x17e;const _0x44f6be=a202_0x44f6();let _0x24941a=_0x44f6be[_0x5d82ef];return _0x24941a;}const a202_0x349fd4=a202_0x2494;(function(_0x53face,_0x28b16b){const _0x3c44e6=a202_0x2494,_0x4bd6fb=_0x53face();while(!![]){try{const _0x2fe279=parseInt(_0x3c44e6(0x17e))/0x1*(parseInt(_0x3c44e6(0x194))/0x2)+-parseInt(_0x3c44e6(0x189))/0x3*(-parseInt(_0x3c44e6(0x182))/0x4)+parseInt(_0x3c44e6(0x192))/0x5+-parseInt(_0x3c44e6(0x18c))/0x6*(parseInt(_0x3c44e6(0x18e))/0x7)+parseInt(_0x3c44e6(0x196))/0x8*(-parseInt(_0x3c44e6(0x19a))/0x9)+parseInt(_0x3c44e6(0x183))/0xa+-parseInt(_0x3c44e6(0x1a0))/0xb*(parseInt(_0x3c44e6(0x188))/0xc);if(_0x2fe279===_0x28b16b)break;else _0x4bd6fb['push'](_0x4bd6fb['shift']());}catch(_0x4873ee){_0x4bd6fb['push'](_0x4bd6fb['shift']());}}}(a202_0x44f6,0xa7737));import a202_0x5f1b97 from'node:fs';import a202_0x5535c3 from'node:path';import a202_0x219a00 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a202_0x349fd4(0x199);function a202_0x44f6(){const _0x421ca9=['package.json','devDependencies','↪\x20SDK\x20update\x20available','minVersion','99lpoUiM','test','utf-8','node_modules','some','1czhPAF','packageName','coerce','all','244vLRMNh','5031630XbiUZV','log','stableVersion','npm\x20install\x20','@lovrabet/sdk','913092jfhjmS','20814vppGHh','\x20\x20\x20Upgrade\x20command:\x20','node','12qUdyGq','parse','3137428grQmmp','existsSync','dependencies','utf8','4491940gGxZNV','\x1b[0m','1254466qmapIL','join','4608LMmoLf','version','readFileSync','1.2.0','2889sHUIrU','\x1b[33m'];a202_0x44f6=function(){return _0x421ca9;};return a202_0x44f6();}function isNonNumericVersion(_0x23cd10){const _0x55006d=a202_0x349fd4,_0x8137af=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x8137af[_0x55006d(0x1a4)](_0x28f685=>_0x28f685[_0x55006d(0x1a1)](_0x23cd10));}function getInstalledVersion(_0x2f7b8e,_0x13bad6){const _0x2b4050=a202_0x349fd4;try{const _0x126b9d=a202_0x5535c3['join'](_0x2f7b8e,_0x2b4050(0x1a3),_0x13bad6,'package.json');if(a202_0x5f1b97['existsSync'](_0x126b9d)){const _0x41f119=JSON[_0x2b4050(0x18d)](a202_0x5f1b97[_0x2b4050(0x198)](_0x126b9d,_0x2b4050(0x1a2)));return _0x41f119[_0x2b4050(0x197)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3be1af=a202_0x349fd4;try{const _0x321552=await getCdnConfig();return _0x321552?.['sdk']?.[_0x3be1af(0x18b)]?.[_0x3be1af(0x185)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4695c8=a202_0x349fd4;try{const _0x2c7ef4=await getCdnConfig();return _0x2c7ef4?.['sdk']?.[_0x4695c8(0x18b)]?.[_0x4695c8(0x17f)]||_0x4695c8(0x187);}catch{return _0x4695c8(0x187);}}export async function checkSdkVersion(_0x3c71c4){const _0x34da01=a202_0x349fd4,_0x136f3d=a202_0x5535c3[_0x34da01(0x195)](_0x3c71c4,_0x34da01(0x19c)),[_0x5e1952,_0x49cf16]=await Promise[_0x34da01(0x181)]([getSdkStableVersion(),getSdkPackageName()]),_0x36129d=_0x5e1952||FALLBACK_MIN_SDK_VERSION;if(!a202_0x5f1b97[_0x34da01(0x18f)](_0x136f3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};try{const _0x3e9e75=JSON[_0x34da01(0x18d)](a202_0x5f1b97['readFileSync'](_0x136f3d,_0x34da01(0x191))),_0x383dcd=_0x3e9e75[_0x34da01(0x190)]||{},_0x3a0333=_0x3e9e75[_0x34da01(0x19d)]||{},_0x39ac33=_0x383dcd[_0x49cf16]||_0x3a0333[_0x49cf16];if(!_0x39ac33)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};let _0x45be7f=getInstalledVersion(_0x3c71c4,_0x49cf16);!_0x45be7f&&(_0x45be7f=_0x39ac33);if(isNonNumericVersion(_0x39ac33))return{'installed':!![],'version':_0x45be7f,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};const _0x207540=a202_0x219a00['coerce'](_0x45be7f),_0x3dd343=a202_0x219a00[_0x34da01(0x180)](_0x36129d),_0x3fc3a7=_0x207540&&_0x3dd343?a202_0x219a00['lt'](_0x207540,_0x3dd343):![];return{'installed':!![],'version':_0x45be7f,'needsUpgrade':_0x3fc3a7,'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x36129d,'packageName':_0x49cf16,'stableVersion':_0x5e1952};}}export function checkSdkVersionSync(_0x483cc2){const _0x273de4=a202_0x349fd4,_0x5c3728=a202_0x5535c3[_0x273de4(0x195)](_0x483cc2,_0x273de4(0x19c)),_0x4f8d1e='@lovrabet/sdk';if(!a202_0x5f1b97[_0x273de4(0x18f)](_0x5c3728))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};try{const _0x242a4e=JSON[_0x273de4(0x18d)](a202_0x5f1b97[_0x273de4(0x198)](_0x5c3728,_0x273de4(0x191))),_0x5120dc=_0x242a4e[_0x273de4(0x190)]||{},_0x4e2751=_0x242a4e[_0x273de4(0x19d)]||{},_0x3b4550=_0x5120dc[_0x4f8d1e]||_0x4e2751[_0x4f8d1e];if(!_0x3b4550)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};let _0x4682ae=getInstalledVersion(_0x483cc2,_0x4f8d1e);!_0x4682ae&&(_0x4682ae=_0x3b4550);if(isNonNumericVersion(_0x3b4550))return{'installed':!![],'version':_0x4682ae,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};const _0x570a20=a202_0x219a00['coerce'](_0x4682ae),_0x2e63b6=_0x570a20?a202_0x219a00['lt'](_0x570a20,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4682ae,'needsUpgrade':_0x2e63b6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4f8d1e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3e2416){const _0x5ac2cb=a202_0x349fd4;if(!_0x3e2416['needsUpgrade'])return;const _0xb0f5e4=_0x5ac2cb(0x19b),_0x2dce8d=_0x5ac2cb(0x193),_0x406f04='\x1b[1m',_0xc281ef=_0x3e2416['packageName']||'@lovrabet/sdk',_0x9b8f8f=_0x3e2416['stableVersion']||_0x3e2416[_0x5ac2cb(0x19f)],_0x5d2412=_0x5ac2cb(0x186)+_0xc281ef+'@'+(_0x9b8f8f||'latest');console['log'](),console[_0x5ac2cb(0x184)](''+_0xb0f5e4+_0x406f04+_0x5ac2cb(0x19e)+_0x2dce8d),console[_0x5ac2cb(0x184)](_0xb0f5e4+'\x20\x20\x20Current\x20version:\x20'+_0xc281ef+'@'+_0x3e2416['version']+_0x2dce8d),console['log'](_0xb0f5e4+'\x20\x20\x20Stable\x20version:\x20'+_0x9b8f8f+_0x2dce8d),console[_0x5ac2cb(0x184)](_0xb0f5e4+_0x5ac2cb(0x18a)+_0x5d2412+_0x2dce8d),console[_0x5ac2cb(0x184)]();}
@@ -1 +1 @@
1
- (function(_0x27a3a3,_0x480472){const _0x52a861=a203_0x41b9,_0x55439c=_0x27a3a3();while(!![]){try{const _0x2d4c90=-parseInt(_0x52a861(0x203))/0x1*(parseInt(_0x52a861(0x209))/0x2)+parseInt(_0x52a861(0x1f3))/0x3+parseInt(_0x52a861(0x206))/0x4+-parseInt(_0x52a861(0x1fe))/0x5+parseInt(_0x52a861(0x1eb))/0x6+-parseInt(_0x52a861(0x20f))/0x7*(parseInt(_0x52a861(0x20d))/0x8)+parseInt(_0x52a861(0x1ef))/0x9;if(_0x2d4c90===_0x480472)break;else _0x55439c['push'](_0x55439c['shift']());}catch(_0x93d847){_0x55439c['push'](_0x55439c['shift']());}}}(a203_0x12fb,0x90592));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a203_0x12fb(){const _0x32c997=['minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','../..','\x20\x20\x20Upgrade\x20command:\x20','parse','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','2161390oTBXoj','npm\x20install\x20-g\x20','\x1b[1m','upgradeMessage','stableVersion','1UMgeaO','\x20\x20\x20Minimum\x20supported:\x20','log','983912FlSBKb','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','1334714JuaxXc','version','\x1b[31m','Current\x20version:\x20','24VCJTHp','currentVersion','146293CpVpxZ','\x1b[0m','validation','6969918DFNord','belowMinimum','↪\x20New\x20version\x20available','latest','2416131AAQTSr','Upgrade\x20command:\x20','filter','1.0.0','232476ENZjaK','↪\x20Critical\x20CLI\x20upgrade\x20required'];a203_0x12fb=function(){return _0x32c997;};return a203_0x12fb();}import a203_0x293c1f 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(_0x1e68f8){const _0x28f978=a203_0x41b9,_0x5be2de=_0x1e68f8[_0x28f978(0x202)]||_0x28f978(0x1ee);return _0x28f978(0x1ff)+NPM_PACKAGE_NAME+'@'+_0x5be2de;}function getCurrentCliVersion(){const _0x4c7d59=a203_0x41b9;try{const _0x8bc3e3=fileURLToPath(import.meta.url),_0x42fc6f=resolve(dirname(_0x8bc3e3),_0x4c7d59(0x1f8)),_0x281f62=resolve(_0x42fc6f,'package.json'),_0x140266=JSON[_0x4c7d59(0x1fa)](readFileSync(_0x281f62,'utf-8'));return _0x140266[_0x4c7d59(0x20a)]||_0x4c7d59(0x1f2);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x11385f=a203_0x41b9,_0x4bcbf5=getCurrentCliVersion(),_0x1118c7=await getCliVersionPolicy(),_0x273d44=_0x1118c7?.[_0x11385f(0x202)]||null,_0x2ddf0a=_0x1118c7?.[_0x11385f(0x207)]||null;let _0x2d1655=![],_0x487ad1=![];const _0xa4ed38=a203_0x293c1f[_0x11385f(0x1fd)](_0x4bcbf5);if(_0xa4ed38&&_0x273d44)try{const _0x968271=a203_0x293c1f[_0x11385f(0x1fd)](_0x273d44);if(_0x968271)_0x2d1655=a203_0x293c1f['lt'](_0xa4ed38,_0x968271);}catch{}if(_0xa4ed38&&_0x2ddf0a)try{const _0x5b7f22=a203_0x293c1f[_0x11385f(0x1fd)](_0x2ddf0a);if(_0x5b7f22)_0x487ad1=a203_0x293c1f['lt'](_0xa4ed38,_0x5b7f22);}catch{}return _0x487ad1&&(_0x2d1655=!![]),{'currentVersion':_0x4bcbf5,'stableVersion':_0x273d44,'minimumVersion':_0x2ddf0a,'needsUpgrade':_0x2d1655,'belowMinimum':_0x487ad1,'isPreRelease':![],'upgradeMessage':_0x1118c7?.[_0x11385f(0x201)],'minimumVersionMessage':_0x1118c7?.[_0x11385f(0x1f5)]};}function a203_0x41b9(_0x4ac911,_0x1cdb5e){_0x4ac911=_0x4ac911-0x1eb;const _0x12fb64=a203_0x12fb();let _0x41b9b0=_0x12fb64[_0x4ac911];return _0x41b9b0;}export function printCliUpgradeWarning(_0x279036){const _0x3aaa54=a203_0x41b9;if(!_0x279036[_0x3aaa54(0x1f7)]&&!_0x279036[_0x3aaa54(0x1ec)])return;const _0x570cd2=_0x3aaa54(0x20b),_0x44ee89='\x1b[33m',_0xdba99d=_0x3aaa54(0x210),_0x30d487=_0x3aaa54(0x200),_0x48dd66=getCliUpgradeCommand(_0x279036);console[_0x3aaa54(0x205)](),_0x279036['belowMinimum']?(console[_0x3aaa54(0x205)](''+_0x570cd2+_0x30d487+_0x3aaa54(0x1f4)+_0xdba99d),console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x1fc)+_0x279036['currentVersion']+_0xdba99d),_0x279036[_0x3aaa54(0x207)]&&console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x204)+_0x279036[_0x3aaa54(0x207)]+_0xdba99d),_0x279036[_0x3aaa54(0x202)]&&_0x279036[_0x3aaa54(0x202)]!==_0x279036[_0x3aaa54(0x207)]&&console[_0x3aaa54(0x205)](_0x570cd2+'\x20\x20\x20Recommended\x20stable:\x20'+_0x279036[_0x3aaa54(0x202)]+_0xdba99d),_0x279036[_0x3aaa54(0x1f5)]&&console[_0x3aaa54(0x205)](_0x570cd2+_0x3aaa54(0x1fb)+_0x279036['minimumVersionMessage']+_0xdba99d),console[_0x3aaa54(0x205)](_0x570cd2+'\x20\x20\x20Upgrade\x20command:\x20'+_0x48dd66+_0xdba99d)):(console[_0x3aaa54(0x205)](''+_0x44ee89+_0x30d487+_0x3aaa54(0x1ed)+_0xdba99d),console['log'](_0x44ee89+_0x3aaa54(0x1fc)+_0x279036['currentVersion']+_0xdba99d),console[_0x3aaa54(0x205)](_0x44ee89+_0x3aaa54(0x1f6)+_0x279036['stableVersion']+_0xdba99d),_0x279036[_0x3aaa54(0x201)]&&console['log'](_0x44ee89+_0x3aaa54(0x1fb)+_0x279036['upgradeMessage']+_0xdba99d),console[_0x3aaa54(0x205)](_0x44ee89+_0x3aaa54(0x1f9)+_0x48dd66+_0xdba99d)),console[_0x3aaa54(0x205)]();}export function assertCliVersionSupported(_0x38b0d6){const _0x140c8b=a203_0x41b9;if(!_0x38b0d6['belowMinimum'])return;const _0x46d5ae=[_0x38b0d6['minimumVersionMessage'],_0x140c8b(0x20c)+_0x38b0d6[_0x140c8b(0x20e)],_0x38b0d6[_0x140c8b(0x207)]?'Minimum\x20supported:\x20'+_0x38b0d6['minimumVersion']:null,_0x140c8b(0x1f0)+getCliUpgradeCommand(_0x38b0d6)][_0x140c8b(0x1f1)](Boolean)['join']('\x0a');throw CliErrors[_0x140c8b(0x211)](_0x140c8b(0x208),_0x46d5ae);}
1
+ (function(_0x3730a8,_0x2c8529){const _0x30682e=a203_0xe24c,_0x88b228=_0x3730a8();while(!![]){try{const _0x4a12d0=-parseInt(_0x30682e(0x1f3))/0x1+parseInt(_0x30682e(0x1d7))/0x2*(parseInt(_0x30682e(0x1d3))/0x3)+parseInt(_0x30682e(0x1ef))/0x4+parseInt(_0x30682e(0x1f6))/0x5*(parseInt(_0x30682e(0x1dd))/0x6)+parseInt(_0x30682e(0x1d4))/0x7*(-parseInt(_0x30682e(0x1de))/0x8)+parseInt(_0x30682e(0x1ee))/0x9*(-parseInt(_0x30682e(0x1f4))/0xa)+-parseInt(_0x30682e(0x1e0))/0xb*(-parseInt(_0x30682e(0x1d8))/0xc);if(_0x4a12d0===_0x2c8529)break;else _0x88b228['push'](_0x88b228['shift']());}catch(_0x17fc36){_0x88b228['push'](_0x88b228['shift']());}}}(a203_0x25bd,0x37ee9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x597b82 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(_0x3a7e9d){const _0x1c0d81=a203_0xe24c,_0x3575db=_0x3a7e9d['stableVersion']||_0x1c0d81(0x1e8);return _0x1c0d81(0x1e3)+NPM_PACKAGE_NAME+'@'+_0x3575db;}function getCurrentCliVersion(){const _0x93169c=a203_0xe24c;try{const _0xc2bddb=fileURLToPath(import.meta.url),_0x4bc43d=resolve(dirname(_0xc2bddb),'../..'),_0x58aa61=resolve(_0x4bc43d,_0x93169c(0x1f7)),_0x3b44d7=JSON[_0x93169c(0x1d9)](readFileSync(_0x58aa61,_0x93169c(0x1ec)));return _0x3b44d7[_0x93169c(0x1db)]||_0x93169c(0x1e1);}catch{return _0x93169c(0x1e1);}}function a203_0x25bd(){const _0x278d17=['402535SBSDrT','package.json','needsUpgrade','belowMinimum','coerce','Minimum\x20supported:\x20','\x20\x20\x20','88398RQOVNa','1176RwpzNT','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','30IMXbDr','428820fphLXq','parse','Current\x20version:\x20','version','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','6noKzzu','6968slCQYF','\x1b[1m','77rQwFnx','1.0.0','stableVersion','npm\x20install\x20-g\x20','\x1b[33m','minimumVersion','\x20\x20\x20Recommended\x20stable:\x20','upgradeMessage','latest','minimumVersionMessage','log','currentVersion','utf-8','\x1b[31m','584037pwPffC','428448bNNISY','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[0m','\x20\x20\x20Current\x20CLI\x20version:\x20','374543OMXLrE','20CxTHuH','↪\x20New\x20version\x20available'];a203_0x25bd=function(){return _0x278d17;};return a203_0x25bd();}export async function checkCliVersion(){const _0xc80d75=a203_0xe24c,_0x1e6bc4=getCurrentCliVersion(),_0x5a6cb5=await getCliVersionPolicy(),_0x340b0d=_0x5a6cb5?.[_0xc80d75(0x1e2)]||null,_0x953a6e=_0x5a6cb5?.[_0xc80d75(0x1e5)]||null;let _0x589973=![],_0x5ad3d9=![];const _0x412fa6=a203_0x597b82[_0xc80d75(0x1fa)](_0x1e6bc4);if(_0x412fa6&&_0x340b0d)try{const _0x4eda26=a203_0x597b82[_0xc80d75(0x1fa)](_0x340b0d);if(_0x4eda26)_0x589973=a203_0x597b82['lt'](_0x412fa6,_0x4eda26);}catch{}if(_0x412fa6&&_0x953a6e)try{const _0x5ea1d9=a203_0x597b82[_0xc80d75(0x1fa)](_0x953a6e);if(_0x5ea1d9)_0x5ad3d9=a203_0x597b82['lt'](_0x412fa6,_0x5ea1d9);}catch{}return _0x5ad3d9&&(_0x589973=!![]),{'currentVersion':_0x1e6bc4,'stableVersion':_0x340b0d,'minimumVersion':_0x953a6e,'needsUpgrade':_0x589973,'belowMinimum':_0x5ad3d9,'isPreRelease':![],'upgradeMessage':_0x5a6cb5?.['upgradeMessage'],'minimumVersionMessage':_0x5a6cb5?.[_0xc80d75(0x1e9)]};}export function printCliUpgradeWarning(_0x95c680){const _0x520d9b=a203_0xe24c;if(!_0x95c680[_0x520d9b(0x1f8)]&&!_0x95c680[_0x520d9b(0x1f9)])return;const _0x1e9168=_0x520d9b(0x1ed),_0x412b02=_0x520d9b(0x1e4),_0x56aaf7=_0x520d9b(0x1f1),_0xc75fa=_0x520d9b(0x1df),_0x35f73d=getCliUpgradeCommand(_0x95c680);console[_0x520d9b(0x1ea)](),_0x95c680[_0x520d9b(0x1f9)]?(console[_0x520d9b(0x1ea)](''+_0x1e9168+_0xc75fa+_0x520d9b(0x1f0)+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x1e9168+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x95c680[_0x520d9b(0x1eb)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e5)]&&console['log'](_0x1e9168+'\x20\x20\x20Minimum\x20supported:\x20'+_0x95c680[_0x520d9b(0x1e5)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e2)]&&_0x95c680[_0x520d9b(0x1e2)]!==_0x95c680[_0x520d9b(0x1e5)]&&console[_0x520d9b(0x1ea)](_0x1e9168+_0x520d9b(0x1e6)+_0x95c680[_0x520d9b(0x1e2)]+_0x56aaf7),_0x95c680[_0x520d9b(0x1e9)]&&console[_0x520d9b(0x1ea)](_0x1e9168+_0x520d9b(0x1fc)+_0x95c680[_0x520d9b(0x1e9)]+_0x56aaf7),console['log'](_0x1e9168+_0x520d9b(0x1d6)+_0x35f73d+_0x56aaf7)):(console[_0x520d9b(0x1ea)](''+_0x412b02+_0xc75fa+_0x520d9b(0x1f5)+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1f2)+_0x95c680[_0x520d9b(0x1eb)]+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+'\x20\x20\x20Stable\x20version:\x20'+_0x95c680['stableVersion']+_0x56aaf7),_0x95c680['upgradeMessage']&&console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1fc)+_0x95c680[_0x520d9b(0x1e7)]+_0x56aaf7),console[_0x520d9b(0x1ea)](_0x412b02+_0x520d9b(0x1d6)+_0x35f73d+_0x56aaf7)),console[_0x520d9b(0x1ea)]();}function a203_0xe24c(_0x4dc582,_0xab257b){_0x4dc582=_0x4dc582-0x1d3;const _0x25bdf7=a203_0x25bd();let _0xe24c9c=_0x25bdf7[_0x4dc582];return _0xe24c9c;}export function assertCliVersionSupported(_0x3bf82c){const _0x37ecd9=a203_0xe24c;if(!_0x3bf82c[_0x37ecd9(0x1f9)])return;const _0x235a20=[_0x3bf82c[_0x37ecd9(0x1e9)],_0x37ecd9(0x1da)+_0x3bf82c[_0x37ecd9(0x1eb)],_0x3bf82c[_0x37ecd9(0x1e5)]?_0x37ecd9(0x1fb)+_0x3bf82c[_0x37ecd9(0x1e5)]:null,_0x37ecd9(0x1d5)+getCliUpgradeCommand(_0x3bf82c)]['filter'](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x37ecd9(0x1dc),_0x235a20);}
@@ -1 +1 @@
1
- (function(_0x405596,_0x4c5e95){const _0x1e5240=a204_0x140c,_0xb12a39=_0x405596();while(!![]){try{const _0x347888=parseInt(_0x1e5240(0x1bd))/0x1*(parseInt(_0x1e5240(0x1a8))/0x2)+-parseInt(_0x1e5240(0x1c0))/0x3*(parseInt(_0x1e5240(0x1b3))/0x4)+-parseInt(_0x1e5240(0x1af))/0x5*(parseInt(_0x1e5240(0x1ba))/0x6)+parseInt(_0x1e5240(0x1b2))/0x7+-parseInt(_0x1e5240(0x1b9))/0x8*(-parseInt(_0x1e5240(0x1b4))/0x9)+-parseInt(_0x1e5240(0x1b1))/0xa+-parseInt(_0x1e5240(0x1bb))/0xb*(-parseInt(_0x1e5240(0x1a9))/0xc);if(_0x347888===_0x4c5e95)break;else _0xb12a39['push'](_0xb12a39['shift']());}catch(_0x5a4d69){_0xb12a39['push'](_0xb12a39['shift']());}}}(a204_0x2edc,0x4c42b));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 a204_0x140c(_0x39645a,_0x5c1d9f){_0x39645a=_0x39645a-0x1a5;const _0x2edc28=a204_0x2edc();let _0x140c3e=_0x2edc28[_0x39645a];return _0x140c3e;}function a204_0x2edc(){const _0x950229=['7531452NqYiOn','now','signal','stableVersion','trim','latestVersion','5140rXvtyG','json','2558590sBnWVw','2124703cezuwC','248156ZDiFpD','1161DviqKv','length','upgradeMessage','object','recommendedVersion','472NkvBPP','2478efwNYY','11rOGHfI','minimumVersionMessage','17ikxxMK','application/json','minVersion','9UkdqCj','abort','cli','string','minimumVersion','28252UeleMj'];a204_0x2edc=function(){return _0x950229;};return a204_0x2edc();}function pickString(_0x476fc3){const _0x13b3e3=a204_0x140c;return typeof _0x476fc3===_0x13b3e3(0x1a6)&&_0x476fc3[_0x13b3e3(0x1ad)]()[_0x13b3e3(0x1b5)]>0x0?_0x476fc3[_0x13b3e3(0x1ad)]():null;}function normalizeCliVersionPolicy(_0x1328fc){const _0x39a3b7=a204_0x140c;if(!_0x1328fc||typeof _0x1328fc!==_0x39a3b7(0x1b7))return null;const _0x17a1b6=_0x1328fc,_0x5c13c7=_0x17a1b6['cli']&&typeof _0x17a1b6[_0x39a3b7(0x1a5)]===_0x39a3b7(0x1b7)?_0x17a1b6['cli']:_0x17a1b6,_0x314f7d=pickString(_0x5c13c7[_0x39a3b7(0x1ac)])||pickString(_0x5c13c7[_0x39a3b7(0x1ae)])||pickString(_0x5c13c7[_0x39a3b7(0x1b8)]),_0x823554=pickString(_0x5c13c7[_0x39a3b7(0x1a7)])||pickString(_0x5c13c7[_0x39a3b7(0x1bf)]);if(!_0x314f7d&&!_0x823554)return null;return{'stableVersion':_0x314f7d,'minimumVersion':_0x823554,'upgradeMessage':pickString(_0x5c13c7[_0x39a3b7(0x1b6)])||undefined,'minimumVersionMessage':pickString(_0x5c13c7[_0x39a3b7(0x1bc)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1f6a83=a204_0x140c,_0x2ea8ef=new AbortController(),_0x28dae4=setTimeout(()=>_0x2ea8ef[_0x1f6a83(0x1c1)](),FETCH_TIMEOUT_MS);try{const _0x33eabd=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1f6a83(0x1be)},'signal':_0x2ea8ef[_0x1f6a83(0x1ab)]});if(!_0x33eabd['ok'])return null;const _0x1bc333=await _0x33eabd[_0x1f6a83(0x1b0)]();return normalizeCliVersionPolicy(_0x1bc333);}catch{return null;}finally{clearTimeout(_0x28dae4);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x410c20=a204_0x140c,_0x14554b=Date[_0x410c20(0x1aa)]();if(hasCachedPolicy){const _0x56cd88=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14554b-cacheTime<_0x56cd88)return cachedPolicy;}const _0x346dff=await fetchCliVersionPolicy();return cachedPolicy=_0x346dff,cacheTime=_0x14554b,hasCachedPolicy=!![],_0x346dff;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1556a4,_0x598142){const _0x2ebd71=a204_0x42fd,_0x4a9b64=_0x1556a4();while(!![]){try{const _0x46c8d0=parseInt(_0x2ebd71(0x11b))/0x1*(parseInt(_0x2ebd71(0x11f))/0x2)+parseInt(_0x2ebd71(0x115))/0x3+parseInt(_0x2ebd71(0x111))/0x4+-parseInt(_0x2ebd71(0x120))/0x5+-parseInt(_0x2ebd71(0x121))/0x6+parseInt(_0x2ebd71(0x119))/0x7+parseInt(_0x2ebd71(0x11a))/0x8;if(_0x46c8d0===_0x598142)break;else _0x4a9b64['push'](_0x4a9b64['shift']());}catch(_0x4b0de7){_0x4a9b64['push'](_0x4a9b64['shift']());}}}(a204_0x5ad0,0x6ec09));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(_0x876c08){const _0x51d722=a204_0x42fd;return typeof _0x876c08===_0x51d722(0x116)&&_0x876c08['trim']()['length']>0x0?_0x876c08[_0x51d722(0x112)]():null;}function normalizeCliVersionPolicy(_0x3d4ad4){const _0x425e37=a204_0x42fd;if(!_0x3d4ad4||typeof _0x3d4ad4!==_0x425e37(0x117))return null;const _0x412027=_0x3d4ad4,_0x2b4323=_0x412027['cli']&&typeof _0x412027['cli']==='object'?_0x412027['cli']:_0x412027,_0x1a9285=pickString(_0x2b4323[_0x425e37(0x11c)])||pickString(_0x2b4323[_0x425e37(0x113)])||pickString(_0x2b4323['recommendedVersion']),_0x53818e=pickString(_0x2b4323[_0x425e37(0x124)])||pickString(_0x2b4323[_0x425e37(0x123)]);if(!_0x1a9285&&!_0x53818e)return null;return{'stableVersion':_0x1a9285,'minimumVersion':_0x53818e,'upgradeMessage':pickString(_0x2b4323['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2b4323['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x5b7827=a204_0x42fd,_0x21011c=new AbortController(),_0x52004d=setTimeout(()=>_0x21011c[_0x5b7827(0x11d)](),FETCH_TIMEOUT_MS);try{const _0x178c94=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5b7827(0x118)},'signal':_0x21011c[_0x5b7827(0x11e)]});if(!_0x178c94['ok'])return null;const _0x50db86=await _0x178c94[_0x5b7827(0x114)]();return normalizeCliVersionPolicy(_0x50db86);}catch{return null;}finally{clearTimeout(_0x52004d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a204_0x5ad0(){const _0x3edba7=['minVersion','minimumVersion','2794720XBDuqX','trim','latestVersion','json','505836LHflOS','string','object','application/json','264663CjoxbQ','417472GPORqH','4021qMZcco','stableVersion','abort','signal','172EhKHwk','536060nPxUMw','4453428mHcsXc','now'];a204_0x5ad0=function(){return _0x3edba7;};return a204_0x5ad0();}export async function getCliVersionPolicy(){const _0x6ff2f=a204_0x42fd,_0x103432=Date[_0x6ff2f(0x122)]();if(hasCachedPolicy){const _0x2ad396=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x103432-cacheTime<_0x2ad396)return cachedPolicy;}const _0x4e5354=await fetchCliVersionPolicy();return cachedPolicy=_0x4e5354,cacheTime=_0x103432,hasCachedPolicy=!![],_0x4e5354;}function a204_0x42fd(_0x4d0653,_0x36e3f7){_0x4d0653=_0x4d0653-0x111;const _0x5ad05f=a204_0x5ad0();let _0x42fda4=_0x5ad05f[_0x4d0653];return _0x42fda4;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a205_0x4446(){const _0x2b9eac=['10484mNOxCf','string','project','183TFGhFI','2947540rTmIng','530DyBrWP','78378NVLFjj','14636646CFdmrJ','462MYfXZI','32116650HXInJE','177144sYLUdH','env','502218mTbBTf'];a205_0x4446=function(){return _0x2b9eac;};return a205_0x4446();}const a205_0x557507=a205_0x1b6e;(function(_0x42d6e2,_0x5d7cc9){const _0x4f37e9=a205_0x1b6e,_0x6efef8=_0x42d6e2();while(!![]){try{const _0x4073d9=parseInt(_0x4f37e9(0x17b))/0x1+parseInt(_0x4f37e9(0x180))/0x2+-parseInt(_0x4f37e9(0x17f))/0x3*(-parseInt(_0x4f37e9(0x17c))/0x4)+parseInt(_0x4f37e9(0x174))/0x5*(-parseInt(_0x4f37e9(0x175))/0x6)+parseInt(_0x4f37e9(0x177))/0x7*(-parseInt(_0x4f37e9(0x179))/0x8)+-parseInt(_0x4f37e9(0x176))/0x9+parseInt(_0x4f37e9(0x178))/0xa;if(_0x4073d9===_0x5d7cc9)break;else _0x6efef8['push'](_0x6efef8['shift']());}catch(_0x26a749){_0x6efef8['push'](_0x6efef8['shift']());}}}(a205_0x4446,0xd5a74));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0x2f151e,getMultiAppConfigs as a205_0x5b89bf,getTemplateBaseUrl as a205_0x3d5cc2}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a205_0x1b6e(_0x505dca,_0x59613f){_0x505dca=_0x505dca-0x174;const _0x4446f3=a205_0x4446();let _0x1b6e72=_0x4446f3[_0x505dca];return _0x1b6e72;}export{isInProject}from'../context.js';export function readConfig(_0x4feb42){const _0x5c7437=a205_0x1b6e,_0x49691d=readRawConfig(_0x4feb42);return _0x49691d[_0x5c7437(0x17a)]&&typeof _0x49691d['env']===_0x5c7437(0x17d)&&initEnv(_0x49691d[_0x5c7437(0x17a)]),_0x49691d;}export function getConfigAppCode(){return a205_0x2f151e();}export function getMultiAppConfigs(_0x21f57a=a205_0x557507(0x17e)){return a205_0x5b89bf(_0x21f57a);}export function getTemplateBaseUrl(){return a205_0x3d5cc2();}
1
+ const a205_0x2ea0cb=a205_0x3b53;(function(_0x4568c2,_0x2bd946){const _0xf7816a=a205_0x3b53,_0x3c8286=_0x4568c2();while(!![]){try{const _0x5c1b41=parseInt(_0xf7816a(0xe0))/0x1+parseInt(_0xf7816a(0xd7))/0x2+-parseInt(_0xf7816a(0xdd))/0x3*(parseInt(_0xf7816a(0xdb))/0x4)+-parseInt(_0xf7816a(0xde))/0x5+parseInt(_0xf7816a(0xe2))/0x6*(parseInt(_0xf7816a(0xda))/0x7)+-parseInt(_0xf7816a(0xdf))/0x8+parseInt(_0xf7816a(0xd8))/0x9*(-parseInt(_0xf7816a(0xd9))/0xa);if(_0x5c1b41===_0x2bd946)break;else _0x3c8286['push'](_0x3c8286['shift']());}catch(_0x47d053){_0x3c8286['push'](_0x3c8286['shift']());}}}(a205_0xb419,0xe755c));import{initEnv}from'../constant/env.js';function a205_0x3b53(_0x399875,_0x1eeb91){_0x399875=_0x399875-0xd7;const _0xb4191a=a205_0xb419();let _0x3b53e0=_0xb4191a[_0x399875];return _0x3b53e0;}import{readRawConfig,getConfigAppCode as a205_0x335df9,getMultiAppConfigs as a205_0x434414,getTemplateBaseUrl as a205_0x1f8524}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a205_0xb419(){const _0x40e45a=['string','2111838TsYOOs','1414620xQyMZE','3386512wfYXZF','880467JydBqu','env','31686XSxMCb','project','2767318EUTuWO','2655QOUtGu','39970oavvXr','1687EnakSe','4gQhCaf'];a205_0xb419=function(){return _0x40e45a;};return a205_0xb419();}export function readConfig(_0x3a1622){const _0x343b06=a205_0x3b53,_0x57c14c=readRawConfig(_0x3a1622);return _0x57c14c['env']&&typeof _0x57c14c[_0x343b06(0xe1)]===_0x343b06(0xdc)&&initEnv(_0x57c14c['env']),_0x57c14c;}export function getConfigAppCode(){return a205_0x335df9();}export function getMultiAppConfigs(_0x4e7b75=a205_0x2ea0cb(0xe3)){return a205_0x434414(_0x4e7b75);}export function getTemplateBaseUrl(){return a205_0x1f8524();}
@@ -1 +1 @@
1
- (function(_0x2d0051,_0x4c7cff){const _0x44f32f=a206_0x3338,_0x57fd88=_0x2d0051();while(!![]){try{const _0x80abfc=-parseInt(_0x44f32f(0x1c7))/0x1*(-parseInt(_0x44f32f(0x1cb))/0x2)+-parseInt(_0x44f32f(0x1c4))/0x3*(parseInt(_0x44f32f(0x1c8))/0x4)+-parseInt(_0x44f32f(0x1cd))/0x5+-parseInt(_0x44f32f(0x1c9))/0x6+-parseInt(_0x44f32f(0x1c5))/0x7+parseInt(_0x44f32f(0x1ce))/0x8*(parseInt(_0x44f32f(0x1c0))/0x9)+parseInt(_0x44f32f(0x1c6))/0xa;if(_0x80abfc===_0x4c7cff)break;else _0x57fd88['push'](_0x57fd88['shift']());}catch(_0x5ca0dd){_0x57fd88['push'](_0x57fd88['shift']());}}}(a206_0x2567,0x1a1ac));function a206_0x3338(_0x54363a,_0x1c3a41){_0x54363a=_0x54363a-0x1be;const _0x2567fa=a206_0x2567();let _0x3338df=_0x2567fa[_0x54363a];return _0x3338df;}import a206_0x20fdeb from'node:path';import a206_0x52ff4b from'node:fs';function a206_0x2567(){const _0x539c67=['copyFileSync','复制目录时出错:','27bvqaFa','name','isDirectory','mkdirSync','12BlgEUy','1194634MwuQbN','5226840nDexVM','5564IVboGa','205908SXWCnC','833970FenVtG','join','18pbYnOB','readdirSync','326440zVAdDe','306712EPLINI'];a206_0x2567=function(){return _0x539c67;};return a206_0x2567();}export async function copyDirectory(_0x3f1760,_0x45c99a){const _0x1e9cbe=a206_0x3338;try{const _0x4d7ee0=a206_0x52ff4b[_0x1e9cbe(0x1cc)](_0x3f1760,{'withFileTypes':!![]});a206_0x52ff4b[_0x1e9cbe(0x1c3)](_0x45c99a,{'recursive':!![]});for(const _0x578bd2 of _0x4d7ee0){const _0x286308=a206_0x20fdeb[_0x1e9cbe(0x1ca)](_0x3f1760,_0x578bd2['name']),_0x21a86e=a206_0x20fdeb[_0x1e9cbe(0x1ca)](_0x45c99a,_0x578bd2[_0x1e9cbe(0x1c1)]);_0x578bd2[_0x1e9cbe(0x1c2)]()?await copyDirectory(_0x286308,_0x21a86e):a206_0x52ff4b[_0x1e9cbe(0x1be)](_0x286308,_0x21a86e);}}catch(_0x2dcce3){console['error'](_0x1e9cbe(0x1bf),_0x2dcce3);}}
1
+ (function(_0x8b3b78,_0x2ec090){const _0x527d64=a206_0x5410,_0x384f32=_0x8b3b78();while(!![]){try{const _0x380db3=-parseInt(_0x527d64(0x1c4))/0x1+-parseInt(_0x527d64(0x1c7))/0x2*(-parseInt(_0x527d64(0x1cd))/0x3)+parseInt(_0x527d64(0x1c5))/0x4*(parseInt(_0x527d64(0x1c9))/0x5)+parseInt(_0x527d64(0x1c0))/0x6+-parseInt(_0x527d64(0x1c8))/0x7+parseInt(_0x527d64(0x1cc))/0x8+parseInt(_0x527d64(0x1c2))/0x9;if(_0x380db3===_0x2ec090)break;else _0x384f32['push'](_0x384f32['shift']());}catch(_0x12ccd8){_0x384f32['push'](_0x384f32['shift']());}}}(a206_0x45bf,0x6618a));import a206_0x377762 from'node:path';function a206_0x5410(_0x2ad263,_0x4b8db6){_0x2ad263=_0x2ad263-0x1c0;const _0x45bfcb=a206_0x45bf();let _0x541014=_0x45bfcb[_0x2ad263];return _0x541014;}function a206_0x45bf(){const _0xda8635=['error','698668IgHclS','509708ZqKrNR','join','652148DBAePV','5293442QurpQz','10ijJjnv','copyFileSync','复制目录时出错:','1770776OGiakJ','6OCpJPp','readdirSync','isDirectory','3043428PYmmai','name','2137257uEiZSd'];a206_0x45bf=function(){return _0xda8635;};return a206_0x45bf();}import a206_0x3f1e75 from'node:fs';export async function copyDirectory(_0x27475b,_0x26c63b){const _0x397a8b=a206_0x5410;try{const _0x17418f=a206_0x3f1e75[_0x397a8b(0x1ce)](_0x27475b,{'withFileTypes':!![]});a206_0x3f1e75['mkdirSync'](_0x26c63b,{'recursive':!![]});for(const _0x3279cb of _0x17418f){const _0x44aadf=a206_0x377762[_0x397a8b(0x1c6)](_0x27475b,_0x3279cb['name']),_0x4b71d0=a206_0x377762[_0x397a8b(0x1c6)](_0x26c63b,_0x3279cb[_0x397a8b(0x1c1)]);_0x3279cb[_0x397a8b(0x1cf)]()?await copyDirectory(_0x44aadf,_0x4b71d0):a206_0x3f1e75[_0x397a8b(0x1ca)](_0x44aadf,_0x4b71d0);}}catch(_0x2b7e7f){console[_0x397a8b(0x1c3)](_0x397a8b(0x1cb),_0x2b7e7f);}}
@@ -1 +1 @@
1
- function a207_0x1516(_0x407a56,_0x436d2a){_0x407a56=_0x407a56-0x82;const _0x53822f=a207_0x5382();let _0x151618=_0x53822f[_0x407a56];return _0x151618;}(function(_0x12572a,_0x4a5d16){const _0x653190=a207_0x1516,_0x2e85de=_0x12572a();while(!![]){try{const _0x2cece9=parseInt(_0x653190(0x87))/0x1+parseInt(_0x653190(0x83))/0x2*(parseInt(_0x653190(0x86))/0x3)+parseInt(_0x653190(0x85))/0x4+-parseInt(_0x653190(0x8b))/0x5+-parseInt(_0x653190(0x8e))/0x6+parseInt(_0x653190(0x89))/0x7*(-parseInt(_0x653190(0x88))/0x8)+parseInt(_0x653190(0x84))/0x9*(parseInt(_0x653190(0x8d))/0xa);if(_0x2cece9===_0x4a5d16)break;else _0x2e85de['push'](_0x2e85de['shift']());}catch(_0x480acb){_0x2e85de['push'](_0x2e85de['shift']());}}}(a207_0x5382,0x3859c));function toFiniteNumber(_0x35ca20){const _0x507bbe=a207_0x1516;if(typeof _0x35ca20===_0x507bbe(0x82)&&Number['isFinite'](_0x35ca20))return _0x35ca20;if(typeof _0x35ca20==='string'){const _0x48c4b7=_0x35ca20[_0x507bbe(0x8a)]();if(!_0x48c4b7)return undefined;const _0x2ba577=Number(_0x48c4b7);if(Number[_0x507bbe(0x8c)](_0x2ba577))return _0x2ba577;}return undefined;}export function normalizeEntityWithIdResponse(_0x19ef66){const _0x3cbea3=a207_0x1516,_0x4a4d8a=toFiniteNumber(_0x19ef66);if(_0x4a4d8a!==undefined)return{'id':_0x4a4d8a,'entity':{'id':_0x4a4d8a}};if(!_0x19ef66||typeof _0x19ef66!==_0x3cbea3(0x8f))return{'id':undefined,'entity':{}};const _0x2c6c09={..._0x19ef66},_0x19ab52=toFiniteNumber(_0x2c6c09['id']);return _0x19ab52!==undefined&&(_0x2c6c09['id']=_0x19ab52),{'id':_0x19ab52,'entity':_0x2c6c09};}function a207_0x5382(){const _0x53c38f=['45GfsxGE','116251SfSCDh','11320zfGAyT','1883QRuqzN','trim','2069015fGqiSj','isFinite','97430gNwrDq','269142NzpUZI','object','number','12914adUtuA','495HoMgnV','1284544KKLGrd'];a207_0x5382=function(){return _0x53c38f;};return a207_0x5382();}
1
+ (function(_0x1a63da,_0x8881dc){const _0xd386e1=a207_0x18e3,_0x25236c=_0x1a63da();while(!![]){try{const _0xfaf438=parseInt(_0xd386e1(0x121))/0x1+-parseInt(_0xd386e1(0x11c))/0x2*(parseInt(_0xd386e1(0x11e))/0x3)+parseInt(_0xd386e1(0x11f))/0x4+parseInt(_0xd386e1(0x118))/0x5*(-parseInt(_0xd386e1(0x120))/0x6)+-parseInt(_0xd386e1(0x119))/0x7*(parseInt(_0xd386e1(0x124))/0x8)+parseInt(_0xd386e1(0x117))/0x9+parseInt(_0xd386e1(0x11a))/0xa*(parseInt(_0xd386e1(0x116))/0xb);if(_0xfaf438===_0x8881dc)break;else _0x25236c['push'](_0x25236c['shift']());}catch(_0xbbcb7a){_0x25236c['push'](_0x25236c['shift']());}}}(a207_0x2f25,0x53825));function a207_0x2f25(){const _0x2940f7=['number','1496007obyCQq','2450848hTKuYE','129534HFgEjx','246579HFCGxA','trim','string','10312QtxzIs','256333tpwvzw','2158317AMVoFq','110WAiwSP','469drsovA','130GXZmTa','isFinite','2gEHXAT'];a207_0x2f25=function(){return _0x2940f7;};return a207_0x2f25();}function toFiniteNumber(_0x3395b3){const _0x47938b=a207_0x18e3;if(typeof _0x3395b3===_0x47938b(0x11d)&&Number[_0x47938b(0x11b)](_0x3395b3))return _0x3395b3;if(typeof _0x3395b3===_0x47938b(0x123)){const _0x12598c=_0x3395b3[_0x47938b(0x122)]();if(!_0x12598c)return undefined;const _0x102aca=Number(_0x12598c);if(Number[_0x47938b(0x11b)](_0x102aca))return _0x102aca;}return undefined;}function a207_0x18e3(_0x1e56cb,_0x5f14e2){_0x1e56cb=_0x1e56cb-0x116;const _0x2f2534=a207_0x2f25();let _0x18e374=_0x2f2534[_0x1e56cb];return _0x18e374;}export function normalizeEntityWithIdResponse(_0x26d637){const _0x4e40ce=toFiniteNumber(_0x26d637);if(_0x4e40ce!==undefined)return{'id':_0x4e40ce,'entity':{'id':_0x4e40ce}};if(!_0x26d637||typeof _0x26d637!=='object')return{'id':undefined,'entity':{}};const _0x22a355={..._0x26d637},_0x13bef5=toFiniteNumber(_0x22a355['id']);return _0x13bef5!==undefined&&(_0x22a355['id']=_0x13bef5),{'id':_0x13bef5,'entity':_0x22a355};}
@@ -1 +1 @@
1
- (function(_0x29aed6,_0x212a89){const _0x3f8980=a208_0x4404,_0x3f6b74=_0x29aed6();while(!![]){try{const _0x217dcb=parseInt(_0x3f8980(0x13e))/0x1+parseInt(_0x3f8980(0x143))/0x2+-parseInt(_0x3f8980(0x145))/0x3+parseInt(_0x3f8980(0x148))/0x4*(-parseInt(_0x3f8980(0x147))/0x5)+parseInt(_0x3f8980(0x144))/0x6*(parseInt(_0x3f8980(0x146))/0x7)+-parseInt(_0x3f8980(0x13f))/0x8*(-parseInt(_0x3f8980(0x142))/0x9)+parseInt(_0x3f8980(0x141))/0xa*(-parseInt(_0x3f8980(0x149))/0xb);if(_0x217dcb===_0x212a89)break;else _0x3f6b74['push'](_0x3f6b74['shift']());}catch(_0x71bd5d){_0x3f6b74['push'](_0x3f6b74['shift']());}}}(a208_0xbb2a,0xc33a1));function a208_0xbb2a(){const _0x583a8f=['1911464gIOoTN','85758PsJlUf','689244YWZqgQ','119CmnBeZ','2115Inegey','5304kwFecd','10911571DpdncD','820651GFYqNv','176fmcxwj','isDirectory','10GACQyj','230274tNnJtl'];a208_0xbb2a=function(){return _0x583a8f;};return a208_0xbb2a();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x36c43f,_0x225560){const _0x57818e=a208_0x4404,_0x570a17=statSync(_0x36c43f);if(_0x570a17[_0x57818e(0x140)]()){!existsSync(_0x225560)&&mkdirSync(_0x225560,{'recursive':!![]});const _0x11f7bf=readdirSync(_0x36c43f);for(const _0x5e5552 of _0x11f7bf){await copyDir(join(_0x36c43f,_0x5e5552),join(_0x225560,_0x5e5552));}}else copyFileSync(_0x36c43f,_0x225560);}function a208_0x4404(_0x2267bf,_0x394db5){_0x2267bf=_0x2267bf-0x13e;const _0xbb2af2=a208_0xbb2a();let _0x440413=_0xbb2af2[_0x2267bf];return _0x440413;}export function ensureDir(_0xc5872e){!existsSync(_0xc5872e)&&mkdirSync(_0xc5872e,{'recursive':!![]});}export function pathExists(_0x49ba5b){return existsSync(_0x49ba5b);}
1
+ (function(_0x585826,_0x4b9d82){const _0x2ae489=a208_0x2f1c,_0x18c32e=_0x585826();while(!![]){try{const _0x21661a=parseInt(_0x2ae489(0x19c))/0x1*(parseInt(_0x2ae489(0x1a0))/0x2)+parseInt(_0x2ae489(0x1a2))/0x3+-parseInt(_0x2ae489(0x19e))/0x4*(parseInt(_0x2ae489(0x19d))/0x5)+-parseInt(_0x2ae489(0x199))/0x6+-parseInt(_0x2ae489(0x19b))/0x7+parseInt(_0x2ae489(0x1a1))/0x8+parseInt(_0x2ae489(0x19a))/0x9;if(_0x21661a===_0x4b9d82)break;else _0x18c32e['push'](_0x18c32e['shift']());}catch(_0x504d4d){_0x18c32e['push'](_0x18c32e['shift']());}}}(a208_0x3309,0xda44a));function a208_0x2f1c(_0x32e505,_0x49211e){_0x32e505=_0x32e505-0x199;const _0x33098b=a208_0x3309();let _0x2f1c68=_0x33098b[_0x32e505];return _0x2f1c68;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x3309(){const _0x343f99=['6757068YvNhvD','16336620GhjtIc','9612169SxsCzu','1023559MYPjds','235qQdjzw','80764SZfVyN','isDirectory','2IBxLRf','11561160vgsIMQ','175392ZsiJXb'];a208_0x3309=function(){return _0x343f99;};return a208_0x3309();}import{join}from'node:path';export async function copyDir(_0x455427,_0x1994e0){const _0xd9616e=a208_0x2f1c,_0xaaf804=statSync(_0x455427);if(_0xaaf804[_0xd9616e(0x19f)]()){!existsSync(_0x1994e0)&&mkdirSync(_0x1994e0,{'recursive':!![]});const _0x56382f=readdirSync(_0x455427);for(const _0x3900f8 of _0x56382f){await copyDir(join(_0x455427,_0x3900f8),join(_0x1994e0,_0x3900f8));}}else copyFileSync(_0x455427,_0x1994e0);}export function ensureDir(_0x48a365){!existsSync(_0x48a365)&&mkdirSync(_0x48a365,{'recursive':!![]});}export function pathExists(_0x766b10){return existsSync(_0x766b10);}
@@ -1 +1 @@
1
- const a209_0x4c96dd=a209_0x2f8c;(function(_0xac2d74,_0x51480d){const _0x15644b=a209_0x2f8c,_0x2ae602=_0xac2d74();while(!![]){try{const _0x2d4761=-parseInt(_0x15644b(0x12e))/0x1+parseInt(_0x15644b(0x139))/0x2*(parseInt(_0x15644b(0x146))/0x3)+parseInt(_0x15644b(0x148))/0x4*(parseInt(_0x15644b(0x12b))/0x5)+-parseInt(_0x15644b(0x13c))/0x6+-parseInt(_0x15644b(0x131))/0x7*(-parseInt(_0x15644b(0x12c))/0x8)+-parseInt(_0x15644b(0x133))/0x9+parseInt(_0x15644b(0x128))/0xa;if(_0x2d4761===_0x51480d)break;else _0x2ae602['push'](_0x2ae602['shift']());}catch(_0x22561b){_0x2ae602['push'](_0x2ae602['shift']());}}}(a209_0x5574,0x9dfbd));function a209_0x2f8c(_0x5d7faa,_0x34c231){_0x5d7faa=_0x5d7faa-0x126;const _0x5574ac=a209_0x5574();let _0x2f8c14=_0x5574ac[_0x5d7faa];return _0x2f8c14;}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 _0x447a3a=a209_0x2f8c,_0x1cdf28=getTemplateBaseUrl();return _0x1cdf28+_0x447a3a(0x126);}const CACHE_DIR=join(homedir(),a209_0x4c96dd(0x136),a209_0x4c96dd(0x13f));export async function fetchGuidesFromCDN(){const _0x442ecf=a209_0x4c96dd,_0x4faa22=getGuidesCdnUrl(),_0x2434af=await fetch(_0x4faa22,{'headers':{'Accept':_0x442ecf(0x12a)}});if(!_0x2434af['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2434af[_0x442ecf(0x13d)]+'\x20'+_0x2434af['statusText']);const _0x574ea3=await _0x2434af[_0x442ecf(0x135)]();if(!_0x574ea3['guides']||typeof _0x574ea3[_0x442ecf(0x132)]!==_0x442ecf(0x144))throw new Error(_0x442ecf(0x141));return _0x574ea3;}export function writeGuidesToProject(_0x5a6e41,_0x14a045,_0x1b87d6=a209_0x4c96dd(0x145),_0x5efa3a){const _0x35535a=a209_0x4c96dd,_0xe42145=join(_0x14a045,_0x1b87d6);mkdirSync(_0xe42145,{'recursive':!![]});for(const [_0x2efcaa,_0x496dd7]of Object['entries'](_0x5a6e41[_0x35535a(0x132)])){let _0x40d368=_0x496dd7[_0x35535a(0x13e)];_0x496dd7[_0x35535a(0x13a)]&&(_0x40d368=appendUpdateTime(_0x40d368,_0x496dd7[_0x35535a(0x13a)])),writeFileSync(join(_0xe42145,_0x2efcaa+_0x35535a(0x140)),_0x40d368,_0x35535a(0x137));}}function a209_0x5574(){const _0x2c3102=['keys','430672oziuFY','map','\x0a\x0a>更新时间:','1085vdRjvm','guides','5551245NjXrZx','skillTemplate','json','.lovrabet','utf-8','extendContent','10SXpvgI','lastUpdated','trimEnd','1433454rnytxr','status','content','cache','.md','CDN\x20返回数据格式错误','entries','title','object','.lovrabet/skill/guides','54723GryKNK','path','8QrFDNi','replace','/skills/guides.json','CDN\x20数据中缺少\x20skillTemplate','15105410RmRNhS','join','application/json','684815uMgUzV','2984EnooES'];a209_0x5574=function(){return _0x2c3102;};return a209_0x5574();}export function appendUpdateTime(_0x37c218,_0x27c4f0){const _0x47076f=a209_0x4c96dd;return _0x37c218=_0x37c218[_0x47076f(0x149)](/\n*>更新时间:.*$/m,''),_0x37c218[_0x47076f(0x13b)]()+(_0x47076f(0x130)+_0x27c4f0);}export function getSkillTemplate(_0x3e2df6){const _0xa0fd40=a209_0x4c96dd;return _0x3e2df6[_0xa0fd40(0x134)]?.[_0xa0fd40(0x13e)]||'';}export function appendExtendContents(_0x322f61,_0x2f4418,_0x44efa5){const _0x2016fe=a209_0x4c96dd,_0x1f9181=[];for(const [,_0x2a36d5]of Object[_0x2016fe(0x142)](_0x2f4418[_0x2016fe(0x132)])){_0x2a36d5['extendContent']&&_0x1f9181['push'](_0x2a36d5[_0x2016fe(0x138)][_0x2016fe(0x13b)]());}if(_0x1f9181['length']===0x0)return _0x322f61;return _0x322f61[_0x2016fe(0x13b)]()+'\x0a\x0a'+_0x1f9181[_0x2016fe(0x129)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x548ccf,_0x1c4e22,_0x331c37){const _0xe1005c=a209_0x4c96dd,_0x1d49f2=getSkillTemplate(_0x548ccf);if(!_0x1d49f2)throw new Error(_0xe1005c(0x127));const _0x37f70e=dirname(_0x1c4e22);mkdirSync(_0x37f70e,{'recursive':!![]});let _0x50b014=_0x1d49f2[_0xe1005c(0x149)](/\{\{IDE_NAME\}\}/g,_0x331c37);_0x50b014=appendExtendContents(_0x50b014,_0x548ccf),_0x548ccf['skillTemplate'][_0xe1005c(0x13a)]&&(_0x50b014=appendUpdateTime(_0x50b014,_0x548ccf[_0xe1005c(0x134)][_0xe1005c(0x13a)])),writeFileSync(_0x1c4e22,_0x50b014,_0xe1005c(0x137));}export async function installGuides(_0x140e01){const _0x174d46=a209_0x4c96dd,_0x217060=await fetchGuidesFromCDN();return writeGuidesToProject(_0x217060,_0x140e01),Object[_0x174d46(0x12d)](_0x217060['guides'])['length'];}export function getGuidesSummary(_0x177fd2){const _0x885861=a209_0x4c96dd;return Object[_0x885861(0x142)](_0x177fd2['guides'])[_0x885861(0x12f)](([_0xd87030,_0xfa568d])=>({'key':_0xd87030,'title':_0xfa568d[_0x885861(0x143)],'path':_0xfa568d[_0x885861(0x147)]}));}
1
+ const a209_0x2449bc=a209_0x33a1;(function(_0x332c5f,_0x4bfc11){const _0x22028a=a209_0x33a1,_0x4a6934=_0x332c5f();while(!![]){try{const _0x5dd6b0=-parseInt(_0x22028a(0xef))/0x1+-parseInt(_0x22028a(0xf1))/0x2+parseInt(_0x22028a(0xe2))/0x3*(-parseInt(_0x22028a(0xe5))/0x4)+parseInt(_0x22028a(0xeb))/0x5+-parseInt(_0x22028a(0xf5))/0x6+-parseInt(_0x22028a(0xf8))/0x7*(parseInt(_0x22028a(0x101))/0x8)+-parseInt(_0x22028a(0xdf))/0x9*(-parseInt(_0x22028a(0xfc))/0xa);if(_0x5dd6b0===_0x4bfc11)break;else _0x4a6934['push'](_0x4a6934['shift']());}catch(_0x120d77){_0x4a6934['push'](_0x4a6934['shift']());}}}(a209_0x3267,0x1b302));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 _0x37fd26=getTemplateBaseUrl();return _0x37fd26+'/skills/guides.json';}function a209_0x3267(){const _0x5e0b3=['join','utf-8','statusText','284855WeLwGv','.lovrabet/skill/guides','title','application/json','121664yxLtcA','.md','360750aISKUb','length','push','.lovrabet','471900yJnDVS','map','lastUpdated','7KufERZ','skillTemplate','replace','status','570OmXFQC','CDN\x20请求失败:\x20','cache','guides','extendContent','590680tNGsNg','97731FsJTNq','keys','\x0a\x0a>更新时间:','543RgFpkf','object','json','2432LPoasH','entries','content'];a209_0x3267=function(){return _0x5e0b3;};return a209_0x3267();}const CACHE_DIR=join(homedir(),a209_0x2449bc(0xf4),a209_0x2449bc(0xfe));export async function fetchGuidesFromCDN(){const _0x318da4=a209_0x2449bc,_0x2c39a8=getGuidesCdnUrl(),_0x254a3c=await fetch(_0x2c39a8,{'headers':{'Accept':_0x318da4(0xee)}});if(!_0x254a3c['ok'])throw new Error(_0x318da4(0xfd)+_0x254a3c[_0x318da4(0xfb)]+'\x20'+_0x254a3c[_0x318da4(0xea)]);const _0x1ffae1=await _0x254a3c[_0x318da4(0xe4)]();if(!_0x1ffae1[_0x318da4(0xff)]||typeof _0x1ffae1[_0x318da4(0xff)]!==_0x318da4(0xe3))throw new Error('CDN\x20返回数据格式错误');return _0x1ffae1;}function a209_0x33a1(_0x14bd5e,_0x3530ff){_0x14bd5e=_0x14bd5e-0xdf;const _0x3267eb=a209_0x3267();let _0x33a12d=_0x3267eb[_0x14bd5e];return _0x33a12d;}export function writeGuidesToProject(_0x4a1552,_0x2daf51,_0x269a85=a209_0x2449bc(0xec),_0x39133a){const _0x12f818=a209_0x2449bc,_0x40324f=join(_0x2daf51,_0x269a85);mkdirSync(_0x40324f,{'recursive':!![]});for(const [_0x49136d,_0x278ab2]of Object['entries'](_0x4a1552['guides'])){let _0x1647a0=_0x278ab2['content'];_0x278ab2[_0x12f818(0xf7)]&&(_0x1647a0=appendUpdateTime(_0x1647a0,_0x278ab2['lastUpdated'])),writeFileSync(join(_0x40324f,_0x49136d+_0x12f818(0xf0)),_0x1647a0,_0x12f818(0xe9));}}export function appendUpdateTime(_0x519328,_0x1e8944){const _0x392ba3=a209_0x2449bc;return _0x519328=_0x519328[_0x392ba3(0xfa)](/\n*>更新时间:.*$/m,''),_0x519328['trimEnd']()+(_0x392ba3(0xe1)+_0x1e8944);}export function getSkillTemplate(_0x13bbcd){const _0x171ce7=a209_0x2449bc;return _0x13bbcd[_0x171ce7(0xf9)]?.[_0x171ce7(0xe7)]||'';}export function appendExtendContents(_0xba9a50,_0x536f61,_0x3aeb49){const _0x339ea6=a209_0x2449bc,_0x34e98e=[];for(const [,_0x3124f4]of Object[_0x339ea6(0xe6)](_0x536f61[_0x339ea6(0xff)])){_0x3124f4[_0x339ea6(0x100)]&&_0x34e98e[_0x339ea6(0xf3)](_0x3124f4[_0x339ea6(0x100)]['trimEnd']());}if(_0x34e98e[_0x339ea6(0xf2)]===0x0)return _0xba9a50;return _0xba9a50['trimEnd']()+'\x0a\x0a'+_0x34e98e[_0x339ea6(0xe8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37c8de,_0x49ebce,_0x1a1970){const _0xc7bd9b=a209_0x2449bc,_0x405dcb=getSkillTemplate(_0x37c8de);if(!_0x405dcb)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x2a99b1=dirname(_0x49ebce);mkdirSync(_0x2a99b1,{'recursive':!![]});let _0x1eb16a=_0x405dcb[_0xc7bd9b(0xfa)](/\{\{IDE_NAME\}\}/g,_0x1a1970);_0x1eb16a=appendExtendContents(_0x1eb16a,_0x37c8de),_0x37c8de[_0xc7bd9b(0xf9)][_0xc7bd9b(0xf7)]&&(_0x1eb16a=appendUpdateTime(_0x1eb16a,_0x37c8de[_0xc7bd9b(0xf9)][_0xc7bd9b(0xf7)])),writeFileSync(_0x49ebce,_0x1eb16a,_0xc7bd9b(0xe9));}export async function installGuides(_0x33ddf9){const _0x1ee4ce=a209_0x2449bc,_0x40ad5e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x40ad5e,_0x33ddf9),Object[_0x1ee4ce(0xe0)](_0x40ad5e[_0x1ee4ce(0xff)])[_0x1ee4ce(0xf2)];}export function getGuidesSummary(_0x57bf20){const _0x32669b=a209_0x2449bc;return Object[_0x32669b(0xe6)](_0x57bf20['guides'])[_0x32669b(0xf6)](([_0x4dd4fd,_0xc1779a])=>({'key':_0x4dd4fd,'title':_0xc1779a[_0x32669b(0xed)],'path':_0xc1779a['path']}));}
@@ -1 +1 @@
1
- (function(_0x24aff9,_0x50475d){const _0x5533bd=a210_0x16ec,_0x79da4e=_0x24aff9();while(!![]){try{const _0x2b5c33=-parseInt(_0x5533bd(0xf7))/0x1+parseInt(_0x5533bd(0xed))/0x2*(-parseInt(_0x5533bd(0xf2))/0x3)+parseInt(_0x5533bd(0xf9))/0x4*(parseInt(_0x5533bd(0xf0))/0x5)+parseInt(_0x5533bd(0xfb))/0x6*(parseInt(_0x5533bd(0xfe))/0x7)+parseInt(_0x5533bd(0xec))/0x8*(parseInt(_0x5533bd(0xfc))/0x9)+-parseInt(_0x5533bd(0xf5))/0xa+parseInt(_0x5533bd(0x106))/0xb*(parseInt(_0x5533bd(0xf1))/0xc);if(_0x2b5c33===_0x50475d)break;else _0x79da4e['push'](_0x79da4e['shift']());}catch(_0x3c478e){_0x79da4e['push'](_0x79da4e['shift']());}}}(a210_0x238c,0x9da8a));export async function httpRequest(_0x1510c5,_0x41a34f={}){const _0x4a0edd=a210_0x16ec,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x41a34f;let _0x367210=null;for(let _0x3fb76e=0x0;_0x3fb76e<=retries;_0x3fb76e++){try{const _0x30e1e2=new AbortController(),_0x291463=setTimeout(()=>_0x30e1e2[_0x4a0edd(0x102)](),timeout),_0x436d1d=await fetch(_0x1510c5,{'headers':headers,'signal':_0x30e1e2['signal']});clearTimeout(_0x291463);let _0x4335d2;const _0x2e4483=_0x436d1d[_0x4a0edd(0x107)]['get']('content-type');return _0x2e4483?.[_0x4a0edd(0xee)]('application/json')?_0x4335d2=await _0x436d1d[_0x4a0edd(0x103)]():_0x4335d2=await _0x436d1d[_0x4a0edd(0x105)](),{'ok':_0x436d1d['ok'],'status':_0x436d1d[_0x4a0edd(0x101)],'statusText':_0x436d1d['statusText'],'data':_0x4335d2,'headers':_0x436d1d[_0x4a0edd(0x107)],'url':_0x436d1d[_0x4a0edd(0x104)],'text':()=>_0x436d1d[_0x4a0edd(0x105)]()};}catch(_0x20328d){_0x367210=_0x20328d instanceof Error?_0x20328d:new Error(String(_0x20328d));if(_0x3fb76e===retries)break;if(shouldRetry(_0x20328d)){console['log']('*\x20请求失败,'+retryDelay+_0x4a0edd(0xf4)+(_0x3fb76e+0x1)+_0x4a0edd(0x100)),await sleep(retryDelay);continue;}else break;}}throw _0x367210||new Error('Request\x20failed');}function a210_0x238c(){const _0x1aab3e=['TypeError','93646UnaVJf','ENOTFOUND','\x20次重试...','status','abort','json','url','text','77tMvjFw','headers','104ZJOoAU','110298bvoHQQ','includes','fetch','185BEClOk','4621104cVVKFs','57rlLMZu','ECONNRESET','ms\x20后进行第\x20','12098380BbwXiW','message','1009760dWyumr','name','35212YTrXbr','AbortError','186ovCTxj','330318oCbCzg'];a210_0x238c=function(){return _0x1aab3e;};return a210_0x238c();}function shouldRetry(_0x469c5c){const _0x19c3f0=a210_0x16ec;if(_0x469c5c instanceof Error){if(_0x469c5c[_0x19c3f0(0xf8)]===_0x19c3f0(0xfa))return![];if(_0x469c5c[_0x19c3f0(0xf8)]===_0x19c3f0(0xfd)&&_0x469c5c[_0x19c3f0(0xf6)][_0x19c3f0(0xee)](_0x19c3f0(0xef)))return!![];if(_0x469c5c['message'][_0x19c3f0(0xee)](_0x19c3f0(0xf3)))return!![];if(_0x469c5c[_0x19c3f0(0xf6)][_0x19c3f0(0xee)](_0x19c3f0(0xff)))return![];}return![];}function sleep(_0x1d87cc){return new Promise(_0x280f76=>setTimeout(_0x280f76,_0x1d87cc));}function a210_0x16ec(_0x49421c,_0x2a49fa){_0x49421c=_0x49421c-0xec;const _0x238cf6=a210_0x238c();let _0x16ec74=_0x238cf6[_0x49421c];return _0x16ec74;}export function validateUrl(_0x18f6b9){try{return new URL(_0x18f6b9),!![];}catch{return![];}}
1
+ function a210_0x2c54(){const _0xeb8081=['560375eDnYnO','content-type','ECONNRESET','fetch','1933776fUjQlz','1989JhdzCP','status','url','*\x20请求失败,','includes','\x20次重试...','TypeError','statusText','53052wzXCms','get','1545078XMHEPM','58965XdKoWv','name','abort','Request\x20failed','json','111ZVbNau','5174981nwSKEL','application/json','AbortError','message','42twzXtY','88210dNdvZo','ENOTFOUND','text','log'];a210_0x2c54=function(){return _0xeb8081;};return a210_0x2c54();}(function(_0x174eec,_0x516d6c){const _0xde55b1=a210_0x56a9,_0x498365=_0x174eec();while(!![]){try{const _0x30fd74=parseInt(_0xde55b1(0x77))/0x1+parseInt(_0xde55b1(0x95))/0x2+parseInt(_0xde55b1(0x7c))/0x3*(-parseInt(_0xde55b1(0x93))/0x4)+-parseInt(_0xde55b1(0x86))/0x5*(parseInt(_0xde55b1(0x81))/0x6)+-parseInt(_0xde55b1(0x7d))/0x7+-parseInt(_0xde55b1(0x8a))/0x8+-parseInt(_0xde55b1(0x8b))/0x9*(-parseInt(_0xde55b1(0x82))/0xa);if(_0x30fd74===_0x516d6c)break;else _0x498365['push'](_0x498365['shift']());}catch(_0x422cd5){_0x498365['push'](_0x498365['shift']());}}}(a210_0x2c54,0x8018c));function a210_0x56a9(_0x24c206,_0x1069bf){_0x24c206=_0x24c206-0x77;const _0x2c54d5=a210_0x2c54();let _0x56a92e=_0x2c54d5[_0x24c206];return _0x56a92e;}export async function httpRequest(_0x399479,_0x391b2f={}){const _0x276284=a210_0x56a9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x391b2f;let _0x18ad9e=null;for(let _0x27d9eb=0x0;_0x27d9eb<=retries;_0x27d9eb++){try{const _0x42d879=new AbortController(),_0x368a7d=setTimeout(()=>_0x42d879[_0x276284(0x79)](),timeout),_0x2217e4=await fetch(_0x399479,{'headers':headers,'signal':_0x42d879['signal']});clearTimeout(_0x368a7d);let _0x427c7b;const _0x55c64f=_0x2217e4['headers'][_0x276284(0x94)](_0x276284(0x87));return _0x55c64f?.[_0x276284(0x8f)](_0x276284(0x7e))?_0x427c7b=await _0x2217e4[_0x276284(0x7b)]():_0x427c7b=await _0x2217e4['text'](),{'ok':_0x2217e4['ok'],'status':_0x2217e4[_0x276284(0x8c)],'statusText':_0x2217e4[_0x276284(0x92)],'data':_0x427c7b,'headers':_0x2217e4['headers'],'url':_0x2217e4[_0x276284(0x8d)],'text':()=>_0x2217e4[_0x276284(0x84)]()};}catch(_0x10d6b1){_0x18ad9e=_0x10d6b1 instanceof Error?_0x10d6b1:new Error(String(_0x10d6b1));if(_0x27d9eb===retries)break;if(shouldRetry(_0x10d6b1)){console[_0x276284(0x85)](_0x276284(0x8e)+retryDelay+'ms\x20后进行第\x20'+(_0x27d9eb+0x1)+_0x276284(0x90)),await sleep(retryDelay);continue;}else break;}}throw _0x18ad9e||new Error(_0x276284(0x7a));}function shouldRetry(_0x346f08){const _0x4e040b=a210_0x56a9;if(_0x346f08 instanceof Error){if(_0x346f08[_0x4e040b(0x78)]===_0x4e040b(0x7f))return![];if(_0x346f08[_0x4e040b(0x78)]===_0x4e040b(0x91)&&_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x89)))return!![];if(_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x88)))return!![];if(_0x346f08[_0x4e040b(0x80)][_0x4e040b(0x8f)](_0x4e040b(0x83)))return![];}return![];}function sleep(_0x171fff){return new Promise(_0x2e9445=>setTimeout(_0x2e9445,_0x171fff));}export function validateUrl(_0x3e1ab0){try{return new URL(_0x3e1ab0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2be70d,_0x2ec590){const _0x6e1697=a211_0x9c0b,_0x4814b8=_0x2be70d();while(!![]){try{const _0x355232=-parseInt(_0x6e1697(0xf8))/0x1*(-parseInt(_0x6e1697(0xec))/0x2)+parseInt(_0x6e1697(0xee))/0x3*(parseInt(_0x6e1697(0xf0))/0x4)+-parseInt(_0x6e1697(0xfa))/0x5+-parseInt(_0x6e1697(0xea))/0x6+-parseInt(_0x6e1697(0xf5))/0x7*(-parseInt(_0x6e1697(0xed))/0x8)+-parseInt(_0x6e1697(0xf4))/0x9+-parseInt(_0x6e1697(0xf9))/0xa*(-parseInt(_0x6e1697(0xf1))/0xb);if(_0x355232===_0x2ec590)break;else _0x4814b8['push'](_0x4814b8['shift']());}catch(_0xa0b9be){_0x4814b8['push'](_0x4814b8['shift']());}}}(a211_0x5783,0x395e6));function a211_0x5783(){const _0x2c007d=['setRawMode','3710853IcdsvA','28zmZVgF','isRaw','true','39NDcPRN','709010tfJcRI','835365QYLAbL','isTTY','310632Ypflcs','nonInteractive','96HAIEPL','760576PkAqxG','1551AuOpSV','stdin','3196FJrETz','11uyclFu','stdout'];a211_0x5783=function(){return _0x2c007d;};return a211_0x5783();}function a211_0x9c0b(_0x2998a2,_0xd067e){_0x2998a2=_0x2998a2-0xea;const _0x5783b3=a211_0x5783();let _0x9c0b02=_0x5783b3[_0x2998a2];return _0x9c0b02;}function env(_0x139c21){return process.env[`RABETBASE_${_0x139c21}`]||process.env[`LOVRABET_${_0x139c21}`]||undefined;}export function isNonInteractive(_0x3a3887){const _0x181016=a211_0x9c0b;return!!(_0x3a3887[_0x181016(0xeb)]||_0x3a3887['ci']||env('CI')===_0x181016(0xf7)||process.env.CI===_0x181016(0xf7)||!process[_0x181016(0xf2)][_0x181016(0xfb)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x20a120=a211_0x9c0b;if(!process[_0x20a120(0xef)][_0x20a120(0xfb)])return![];try{const _0xcbd6a4=process[_0x20a120(0xef)][_0x20a120(0xf6)];return process['stdin'][_0x20a120(0xf3)](!![]),process['stdin'][_0x20a120(0xf3)](_0xcbd6a4??![]),!![];}catch{return![];}}
1
+ function a211_0x1058(_0x4fc7ab,_0x1f7aa1){_0x4fc7ab=_0x4fc7ab-0x96;const _0x630f66=a211_0x630f();let _0x1058c9=_0x630f66[_0x4fc7ab];return _0x1058c9;}(function(_0x43cadc,_0x4a084b){const _0x1a1efc=a211_0x1058,_0x486707=_0x43cadc();while(!![]){try{const _0x2b11bf=parseInt(_0x1a1efc(0x96))/0x1*(-parseInt(_0x1a1efc(0x9b))/0x2)+-parseInt(_0x1a1efc(0x97))/0x3+-parseInt(_0x1a1efc(0x9c))/0x4+-parseInt(_0x1a1efc(0xa3))/0x5+-parseInt(_0x1a1efc(0x9a))/0x6+parseInt(_0x1a1efc(0xa2))/0x7+parseInt(_0x1a1efc(0xa1))/0x8*(parseInt(_0x1a1efc(0x9d))/0x9);if(_0x2b11bf===_0x4a084b)break;else _0x486707['push'](_0x486707['shift']());}catch(_0x2d2ddd){_0x486707['push'](_0x486707['shift']());}}}(a211_0x630f,0xa3472));function env(_0x165854){return process.env[`RABETBASE_${_0x165854}`]||process.env[`LOVRABET_${_0x165854}`]||undefined;}export function isNonInteractive(_0x39868f){const _0x27a343=a211_0x1058;return!!(_0x39868f['nonInteractive']||_0x39868f['ci']||env('CI')===_0x27a343(0xa4)||process.env.CI===_0x27a343(0xa4)||!process[_0x27a343(0xa0)][_0x27a343(0x9f)]||!isStdinRawModeSupported());}function a211_0x630f(){const _0x33f999=['3307192vvhqBG','5752430bPLrzG','true','3MzeRhb','837753okVFmp','isRaw','stdin','483810hqSVBg','464458VNUlvJ','1784448vZQDHb','143271WXaaAl','setRawMode','isTTY','stdout','1432TnWOXk'];a211_0x630f=function(){return _0x33f999;};return a211_0x630f();}function isStdinRawModeSupported(){const _0x38b678=a211_0x1058;if(!process[_0x38b678(0x99)][_0x38b678(0x9f)])return![];try{const _0x1cb4e4=process[_0x38b678(0x99)][_0x38b678(0x98)];return process[_0x38b678(0x99)][_0x38b678(0x9e)](!![]),process[_0x38b678(0x99)]['setRawMode'](_0x1cb4e4??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a212_0x52cd(){const _0x1a2294=['开始执行:\x20','warn','createLogger','message','duration','printf','getWinstonInstance','readFileSync','toISOString','734729zNAwtp','.lovrabet.log','currentRawCommand','map','errors','initWinstonLogger','logTask','1660cWvsXR','writeFileSync','unknown','now','失败:\x20','setRawCommand','format','error','logFilePath','existsSync','3268390GxsCJt','File','info','blue','4432578HRPZxY','trim','red','parse','mkdirSync','command','setLogPath','clear','addColors','4edUvHb','Failed\x20to\x20clear\x20logs:','timestamp','19798cxrfWo','utf8','117UPVjPV','winstonLogger','107577ySBJnH','rawCommand','success','clearLogs','33568gGDYSv','4682293yWENRr'];a212_0x52cd=function(){return _0x1a2294;};return a212_0x52cd();}function a212_0x9e17(_0x42863c,_0x24c817){_0x42863c=_0x42863c-0x190;const _0x52cdd0=a212_0x52cd();let _0x9e172d=_0x52cdd0[_0x42863c];return _0x9e172d;}const a212_0x470f3f=a212_0x9e17;(function(_0x21bae0,_0x255ba9){const _0x42df96=a212_0x9e17,_0x2cea54=_0x21bae0();while(!![]){try{const _0x400c87=parseInt(_0x42df96(0x1bd))/0x1+parseInt(_0x42df96(0x1aa))/0x2*(-parseInt(_0x42df96(0x1ac))/0x3)+parseInt(_0x42df96(0x1a7))/0x4*(parseInt(_0x42df96(0x19a))/0x5)+parseInt(_0x42df96(0x19e))/0x6+parseInt(_0x42df96(0x1b3))/0x7+parseInt(_0x42df96(0x1b2))/0x8+parseInt(_0x42df96(0x1ae))/0x9*(-parseInt(_0x42df96(0x190))/0xa);if(_0x400c87===_0x255ba9)break;else _0x2cea54['push'](_0x2cea54['shift']());}catch(_0x3c5276){_0x2cea54['push'](_0x2cea54['shift']());}}}(a212_0x52cd,0x68fb6));import a212_0x586a8d from'winston';import a212_0x182faa from'node:fs';import a212_0xd5de76 from'node:path';class Logger{[a212_0x470f3f(0x1ad)];[a212_0x470f3f(0x198)];[a212_0x470f3f(0x1bf)]='';constructor(){const _0xe6d147=a212_0x470f3f;this[_0xe6d147(0x198)]='';}[a212_0x470f3f(0x195)](_0x5040af){const _0x19c917=a212_0x470f3f;this[_0x19c917(0x1bf)]=_0x5040af;}[a212_0x470f3f(0x1c2)](){const _0x3ccf77=a212_0x470f3f,_0x5d0e3d=a212_0xd5de76['dirname'](this['logFilePath']);!a212_0x182faa[_0x3ccf77(0x199)](_0x5d0e3d)&&a212_0x182faa[_0x3ccf77(0x1a2)](_0x5d0e3d,{'recursive':!![]});const _0x5abb42=a212_0x586a8d[_0x3ccf77(0x196)]['combine'](a212_0x586a8d[_0x3ccf77(0x196)]['timestamp'](),a212_0x586a8d['format'][_0x3ccf77(0x1c1)]({'stack':!![]}),a212_0x586a8d['format'][_0x3ccf77(0x1b9)](_0x400084=>{const _0x360a66=_0x3ccf77,_0x31a962={'timestamp':_0x400084[_0x360a66(0x1a9)]||new Date()[_0x360a66(0x1bc)](),'level':_0x400084['level']||_0x360a66(0x19c),'command':_0x400084[_0x360a66(0x1a3)]||_0x360a66(0x192),'rawCommand':_0x400084[_0x360a66(0x1af)]||this[_0x360a66(0x1bf)]||undefined,'message':_0x400084[_0x360a66(0x1b7)]||'','duration':_0x400084[_0x360a66(0x1b8)]||undefined,'details':_0x400084['details']||undefined};return JSON['stringify'](_0x31a962);}));this[_0x3ccf77(0x1ad)]=a212_0x586a8d[_0x3ccf77(0x1b6)]({'level':_0x3ccf77(0x19c),'format':_0x5abb42,'transports':[new a212_0x586a8d['transports'][(_0x3ccf77(0x19b))]({'filename':this[_0x3ccf77(0x198)],'level':_0x3ccf77(0x19c)})],'silent':![]}),a212_0x586a8d[_0x3ccf77(0x1a6)]({'success':'green','error':_0x3ccf77(0x1a0),'warn':'yellow','info':_0x3ccf77(0x19d)});}[a212_0x470f3f(0x1a4)](_0x1ccfb6){const _0x29fb1c=a212_0x470f3f;this['logFilePath']=a212_0xd5de76['join'](_0x1ccfb6,_0x29fb1c(0x1be)),this['winstonLogger']&&this['winstonLogger'][_0x29fb1c(0x1a5)](),this[_0x29fb1c(0x1c2)]();}[a212_0x470f3f(0x19c)](_0x48216d,_0x57fd6b,_0xc8c4d2){const _0x5ca143=a212_0x470f3f;if(!this[_0x5ca143(0x198)]||!this[_0x5ca143(0x1ad)])return;this[_0x5ca143(0x1ad)][_0x5ca143(0x19c)](_0x57fd6b,{'command':_0x48216d,'details':_0xc8c4d2});}[a212_0x470f3f(0x1b0)](_0x37c7e2,_0x53f438,_0x2a0c04,_0x31c6e5){const _0x215e4e=a212_0x470f3f;if(!this[_0x215e4e(0x198)]||!this[_0x215e4e(0x1ad)])return;this['winstonLogger']['log'](_0x215e4e(0x19c),_0x53f438,{'level':_0x215e4e(0x1b0),'command':_0x37c7e2,'duration':_0x2a0c04,'details':_0x31c6e5});}['error'](_0x2031f3,_0x28d20f,_0x4c37c4){const _0x46a507=a212_0x470f3f;if(!this[_0x46a507(0x198)]||!this['winstonLogger'])return;this[_0x46a507(0x1ad)][_0x46a507(0x197)](_0x28d20f,{'command':_0x2031f3,'details':_0x4c37c4});}[a212_0x470f3f(0x1b5)](_0x3bfc44,_0x136e9a,_0x112670){const _0x395201=a212_0x470f3f;if(!this[_0x395201(0x198)]||!this[_0x395201(0x1ad)])return;this[_0x395201(0x1ad)][_0x395201(0x1b5)](_0x136e9a,{'command':_0x3bfc44,'details':_0x112670});}async[a212_0x470f3f(0x1c3)](_0xb1d130,_0xa47891,_0xdc7f4b){const _0x290741=a212_0x470f3f,_0x23d694=Date[_0x290741(0x193)]();this[_0x290741(0x19c)](_0xb1d130,_0x290741(0x1b4)+_0xa47891);try{const _0x1cc99a=await _0xdc7f4b(),_0x1feb4b=Date[_0x290741(0x193)]()-_0x23d694;return this['success'](_0xb1d130,'完成:\x20'+_0xa47891,_0x1feb4b),_0x1cc99a;}catch(_0x53b13b){const _0x28fcae=Date['now']()-_0x23d694;this[_0x290741(0x197)](_0xb1d130,_0x290741(0x194)+_0xa47891,{'error':_0x53b13b instanceof Error?_0x53b13b['message']:String(_0x53b13b),'duration':_0x28fcae});throw _0x53b13b;}}['readLogs'](){const _0x218488=a212_0x470f3f;try{if(!a212_0x182faa[_0x218488(0x199)](this[_0x218488(0x198)]))return[];const _0x54f60b=a212_0x182faa[_0x218488(0x1bb)](this[_0x218488(0x198)],_0x218488(0x1ab));return _0x54f60b['split']('\x0a')['filter'](_0x1eb9fe=>_0x1eb9fe[_0x218488(0x19f)]())[_0x218488(0x1c0)](_0x2dc21b=>JSON[_0x218488(0x1a1)](_0x2dc21b));}catch(_0x9348f8){return console[_0x218488(0x1b5)]('Failed\x20to\x20read\x20logs:',_0x9348f8),[];}}[a212_0x470f3f(0x1b1)](){const _0x56d3e0=a212_0x470f3f;try{a212_0x182faa[_0x56d3e0(0x199)](this[_0x56d3e0(0x198)])&&a212_0x182faa[_0x56d3e0(0x191)](this['logFilePath'],'',_0x56d3e0(0x1ab));}catch(_0x55484c){console[_0x56d3e0(0x1b5)](_0x56d3e0(0x1a8),_0x55484c);}}[a212_0x470f3f(0x1ba)](){const _0x4494bd=a212_0x470f3f;return this[_0x4494bd(0x1ad)];}}export const logger=new Logger();
1
+ const a212_0x2238b0=a212_0x5c26;(function(_0xf914c6,_0x55a160){const _0x3b2c06=a212_0x5c26,_0x311b69=_0xf914c6();while(!![]){try{const _0x298f17=parseInt(_0x3b2c06(0x182))/0x1*(parseInt(_0x3b2c06(0x180))/0x2)+parseInt(_0x3b2c06(0x150))/0x3*(parseInt(_0x3b2c06(0x14f))/0x4)+-parseInt(_0x3b2c06(0x188))/0x5+-parseInt(_0x3b2c06(0x158))/0x6*(parseInt(_0x3b2c06(0x171))/0x7)+-parseInt(_0x3b2c06(0x178))/0x8+parseInt(_0x3b2c06(0x172))/0x9*(parseInt(_0x3b2c06(0x153))/0xa)+parseInt(_0x3b2c06(0x154))/0xb*(parseInt(_0x3b2c06(0x15c))/0xc);if(_0x298f17===_0x55a160)break;else _0x311b69['push'](_0x311b69['shift']());}catch(_0x3ea4c1){_0x311b69['push'](_0x311b69['shift']());}}}(a212_0x1c3e,0xdd3d7));import a212_0x305756 from'winston';import a212_0x52e6d8 from'node:fs';import a212_0x247ab3 from'node:path';class Logger{[a212_0x2238b0(0x159)];[a212_0x2238b0(0x15b)];[a212_0x2238b0(0x161)]='';constructor(){const _0x2c0887=a212_0x2238b0;this[_0x2c0887(0x15b)]='';}[a212_0x2238b0(0x16f)](_0x46ee57){const _0x26d114=a212_0x2238b0;this[_0x26d114(0x161)]=_0x46ee57;}['initWinstonLogger'](){const _0x548956=a212_0x2238b0,_0x125062=a212_0x247ab3[_0x548956(0x186)](this[_0x548956(0x15b)]);!a212_0x52e6d8[_0x548956(0x16d)](_0x125062)&&a212_0x52e6d8['mkdirSync'](_0x125062,{'recursive':!![]});const _0x18ec69=a212_0x305756['format'][_0x548956(0x16b)](a212_0x305756['format'][_0x548956(0x169)](),a212_0x305756[_0x548956(0x185)][_0x548956(0x17e)]({'stack':!![]}),a212_0x305756['format'][_0x548956(0x17a)](_0x573467=>{const _0x1715bb=_0x548956,_0x7045be={'timestamp':_0x573467[_0x1715bb(0x169)]||new Date()['toISOString'](),'level':_0x573467[_0x1715bb(0x16a)]||_0x1715bb(0x166),'command':_0x573467['command']||_0x1715bb(0x15a),'rawCommand':_0x573467['rawCommand']||this[_0x1715bb(0x161)]||undefined,'message':_0x573467[_0x1715bb(0x175)]||'','duration':_0x573467[_0x1715bb(0x15f)]||undefined,'details':_0x573467['details']||undefined};return JSON[_0x1715bb(0x15d)](_0x7045be);}));this[_0x548956(0x159)]=a212_0x305756['createLogger']({'level':_0x548956(0x166),'format':_0x18ec69,'transports':[new a212_0x305756['transports']['File']({'filename':this[_0x548956(0x15b)],'level':'info'})],'silent':![]}),a212_0x305756[_0x548956(0x165)]({'success':_0x548956(0x187),'error':_0x548956(0x17c),'warn':_0x548956(0x160),'info':_0x548956(0x177)});}[a212_0x2238b0(0x17d)](_0xf4cd86){const _0x277656=a212_0x2238b0;this['logFilePath']=a212_0x247ab3[_0x277656(0x17b)](_0xf4cd86,_0x277656(0x179)),this[_0x277656(0x159)]&&this[_0x277656(0x159)][_0x277656(0x184)](),this[_0x277656(0x176)]();}[a212_0x2238b0(0x166)](_0x2afab8,_0x4505ee,_0x15ba9e){const _0x59dd4e=a212_0x2238b0;if(!this[_0x59dd4e(0x15b)]||!this[_0x59dd4e(0x159)])return;this['winstonLogger']['info'](_0x4505ee,{'command':_0x2afab8,'details':_0x15ba9e});}[a212_0x2238b0(0x157)](_0x3c5a48,_0x1a539e,_0x337fe1,_0x48dd1a){const _0x28b8aa=a212_0x2238b0;if(!this['logFilePath']||!this[_0x28b8aa(0x159)])return;this[_0x28b8aa(0x159)][_0x28b8aa(0x173)](_0x28b8aa(0x166),_0x1a539e,{'level':_0x28b8aa(0x157),'command':_0x3c5a48,'duration':_0x337fe1,'details':_0x48dd1a});}[a212_0x2238b0(0x170)](_0x54ad84,_0x4305b7,_0x539a7e){const _0x865920=a212_0x2238b0;if(!this[_0x865920(0x15b)]||!this[_0x865920(0x159)])return;this[_0x865920(0x159)][_0x865920(0x170)](_0x4305b7,{'command':_0x54ad84,'details':_0x539a7e});}[a212_0x2238b0(0x183)](_0x6f04b2,_0x496390,_0x20ef52){const _0x422cec=a212_0x2238b0;if(!this[_0x422cec(0x15b)]||!this['winstonLogger'])return;this[_0x422cec(0x159)][_0x422cec(0x183)](_0x496390,{'command':_0x6f04b2,'details':_0x20ef52});}async[a212_0x2238b0(0x14e)](_0x193b3e,_0x486a09,_0x38cbd7){const _0x3c6b3b=a212_0x2238b0,_0x358def=Date['now']();this[_0x3c6b3b(0x166)](_0x193b3e,_0x3c6b3b(0x151)+_0x486a09);try{const _0x227350=await _0x38cbd7(),_0xf5476b=Date['now']()-_0x358def;return this['success'](_0x193b3e,_0x3c6b3b(0x162)+_0x486a09,_0xf5476b),_0x227350;}catch(_0x31c462){const _0x5e9e52=Date[_0x3c6b3b(0x17f)]()-_0x358def;this[_0x3c6b3b(0x170)](_0x193b3e,_0x3c6b3b(0x181)+_0x486a09,{'error':_0x31c462 instanceof Error?_0x31c462['message']:String(_0x31c462),'duration':_0x5e9e52});throw _0x31c462;}}[a212_0x2238b0(0x163)](){const _0x4c6a31=a212_0x2238b0;try{if(!a212_0x52e6d8[_0x4c6a31(0x16d)](this['logFilePath']))return[];const _0x5a1f2f=a212_0x52e6d8['readFileSync'](this['logFilePath'],'utf8');return _0x5a1f2f[_0x4c6a31(0x168)]('\x0a')[_0x4c6a31(0x164)](_0x42da6a=>_0x42da6a[_0x4c6a31(0x174)]())[_0x4c6a31(0x155)](_0x27a0ea=>JSON[_0x4c6a31(0x156)](_0x27a0ea));}catch(_0x531e51){return console['warn']('Failed\x20to\x20read\x20logs:',_0x531e51),[];}}[a212_0x2238b0(0x16e)](){const _0x481e09=a212_0x2238b0;try{a212_0x52e6d8[_0x481e09(0x16d)](this['logFilePath'])&&a212_0x52e6d8[_0x481e09(0x16c)](this['logFilePath'],'',_0x481e09(0x15e));}catch(_0x227a83){console[_0x481e09(0x183)](_0x481e09(0x152),_0x227a83);}}[a212_0x2238b0(0x167)](){const _0x21a08f=a212_0x2238b0;return this[_0x21a08f(0x159)];}}export const logger=new Logger();function a212_0x5c26(_0x3a7999,_0xea4c95){_0x3a7999=_0x3a7999-0x14e;const _0x1c3e62=a212_0x1c3e();let _0x5c2681=_0x1c3e62[_0x3a7999];return _0x5c2681;}function a212_0x1c3e(){const _0x27826c=['clearLogs','setRawCommand','error','594034bViaBu','45VLuZST','log','trim','message','initWinstonLogger','blue','4155984OReQnF','.lovrabet.log','printf','join','red','setLogPath','errors','now','474HgxZFW','失败:\x20','881GxzDGF','warn','clear','format','dirname','green','7182955nHkwxK','logTask','172iCxKTv','37635EnSqjx','开始执行:\x20','Failed\x20to\x20clear\x20logs:','1201430LNynBL','4645135BjkTLb','map','parse','success','102UCGDJf','winstonLogger','unknown','logFilePath','84YmsuDu','stringify','utf8','duration','yellow','currentRawCommand','完成:\x20','readLogs','filter','addColors','info','getWinstonInstance','split','timestamp','level','combine','writeFileSync','existsSync'];a212_0x1c3e=function(){return _0x27826c;};return a212_0x1c3e();}
@@ -1 +1 @@
1
- (function(_0x1e0720,_0x1c62af){const _0x435a2c=a213_0x1b7d,_0x17055d=_0x1e0720();while(!![]){try{const _0x416006=parseInt(_0x435a2c(0x1b4))/0x1+parseInt(_0x435a2c(0x1b5))/0x2*(parseInt(_0x435a2c(0x1bb))/0x3)+-parseInt(_0x435a2c(0x1bc))/0x4*(-parseInt(_0x435a2c(0x1ba))/0x5)+parseInt(_0x435a2c(0x1c0))/0x6*(-parseInt(_0x435a2c(0x1bf))/0x7)+-parseInt(_0x435a2c(0x1c1))/0x8*(-parseInt(_0x435a2c(0x1b6))/0x9)+parseInt(_0x435a2c(0x1c3))/0xa*(-parseInt(_0x435a2c(0x1bd))/0xb)+parseInt(_0x435a2c(0x1b8))/0xc*(parseInt(_0x435a2c(0x1be))/0xd);if(_0x416006===_0x1c62af)break;else _0x17055d['push'](_0x17055d['shift']());}catch(_0xacde9c){_0x17055d['push'](_0x17055d['shift']());}}}(a213_0x35ea,0xa7a2b));import{CliErrors}from'../errors.js';function a213_0x1b7d(_0x2fb80a,_0x472c7a){_0x2fb80a=_0x2fb80a-0x1b3;const _0x35ea54=a213_0x35ea();let _0x1b7dde=_0x35ea54[_0x2fb80a];return _0x1b7dde;}export function parseJsonParams(_0x53a8c1){const _0x504527=a213_0x1b7d;if(!_0x53a8c1)return undefined;let _0x5ca4ea;try{_0x5ca4ea=JSON['parse'](_0x53a8c1);}catch{throw CliErrors[_0x504527(0x1c2)](_0x504527(0x1b7)+_0x53a8c1);}if(!_0x5ca4ea||typeof _0x5ca4ea!==_0x504527(0x1b9)||Array['isArray'](_0x5ca4ea))throw CliErrors[_0x504527(0x1c2)](_0x504527(0x1b3),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x5ca4ea;}function a213_0x35ea(){const _0x476d0a=['120twSCUO','6516boKHpl','Invalid\x20JSON\x20for\x20--params:\x20','12FRDVlC','object','15vWalBq','1527ovWCek','885996jaDjKe','176ldpUOt','11035310oVrIhw','2616061UZhrqx','18DQzjZW','5968lIylFY','validation','236360YrdyTD','--params\x20must\x20be\x20a\x20JSON\x20object','101969qNQAAG'];a213_0x35ea=function(){return _0x476d0a;};return a213_0x35ea();}
1
+ function a213_0x2bf2(_0x380d3e,_0x1c21b9){_0x380d3e=_0x380d3e-0xd9;const _0x56a04f=a213_0x56a0();let _0x2bf2d8=_0x56a04f[_0x380d3e];return _0x2bf2d8;}function a213_0x56a0(){const _0x4fc761=['1858136TqVRGK','9750670MFDDgU','object','2757978rlWEOK','6CgIXLQ','isArray','6253177HKbUmM','4hnOIdg','410705DAoQWs','1019730tnbnov','validation','--params\x20must\x20be\x20a\x20JSON\x20object','1910885IIDMGv','parse','9wYELOc'];a213_0x56a0=function(){return _0x4fc761;};return a213_0x56a0();}(function(_0x19c25c,_0x413ff8){const _0x2d05fd=a213_0x2bf2,_0x3c547b=_0x19c25c();while(!![]){try{const _0x34615d=-parseInt(_0x2d05fd(0xdc))/0x1+parseInt(_0x2d05fd(0xe6))/0x2+-parseInt(_0x2d05fd(0xdd))/0x3+-parseInt(_0x2d05fd(0xdb))/0x4*(-parseInt(_0x2d05fd(0xe0))/0x5)+-parseInt(_0x2d05fd(0xe7))/0x6*(-parseInt(_0x2d05fd(0xda))/0x7)+-parseInt(_0x2d05fd(0xe3))/0x8*(parseInt(_0x2d05fd(0xe2))/0x9)+-parseInt(_0x2d05fd(0xe4))/0xa;if(_0x34615d===_0x413ff8)break;else _0x3c547b['push'](_0x3c547b['shift']());}catch(_0x3b8622){_0x3c547b['push'](_0x3c547b['shift']());}}}(a213_0x56a0,0xaa0d0));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3b5fa7){const _0x368652=a213_0x2bf2;if(!_0x3b5fa7)return undefined;let _0x596e04;try{_0x596e04=JSON[_0x368652(0xe1)](_0x3b5fa7);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3b5fa7);}if(!_0x596e04||typeof _0x596e04!==_0x368652(0xe5)||Array[_0x368652(0xd9)](_0x596e04))throw CliErrors[_0x368652(0xde)](_0x368652(0xdf),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x596e04;}
@@ -1 +1 @@
1
- function a214_0x4b4e(){const _0x10ca75=['8mmDrrV','18yxbOah','3811900cmkFRa','267105JhjOiu','4585053erPvxT','1469943cGTFsd','12EUdcrM','580TWAKso','win32','737pIHCTB','platform','33964HrOvjH','320844enWDFn'];a214_0x4b4e=function(){return _0x10ca75;};return a214_0x4b4e();}const a214_0x369a39=a214_0x1ab9;(function(_0x3614de,_0x154325){const _0x2c17d9=a214_0x1ab9,_0x2f3b0f=_0x3614de();while(!![]){try{const _0x3eb1e6=-parseInt(_0x2c17d9(0x1af))/0x1*(-parseInt(_0x2c17d9(0x1ad))/0x2)+parseInt(_0x2c17d9(0x1a5))/0x3+-parseInt(_0x2c17d9(0x1ac))/0x4*(-parseInt(_0x2c17d9(0x1a9))/0x5)+-parseInt(_0x2c17d9(0x1a7))/0x6*(-parseInt(_0x2c17d9(0x1b1))/0x7)+-parseInt(_0x2c17d9(0x1a6))/0x8*(parseInt(_0x2c17d9(0x1ab))/0x9)+parseInt(_0x2c17d9(0x1a8))/0xa+-parseInt(_0x2c17d9(0x1aa))/0xb;if(_0x3eb1e6===_0x154325)break;else _0x2f3b0f['push'](_0x2f3b0f['shift']());}catch(_0x1b29d4){_0x2f3b0f['push'](_0x2f3b0f['shift']());}}}(a214_0x4b4e,0x48659));function a214_0x1ab9(_0xc3e1ba,_0xfee1b){_0xc3e1ba=_0xc3e1ba-0x1a5;const _0x4b4e98=a214_0x4b4e();let _0x1ab99e=_0x4b4e98[_0xc3e1ba];return _0x1ab99e;}export const isWindows=process[a214_0x369a39(0x1b0)]===a214_0x369a39(0x1ae);export function resolveNpmBin(_0x97d2fa){return isWindows?_0x97d2fa+'.cmd':_0x97d2fa;}
1
+ const a214_0x40f94d=a214_0x301c;(function(_0x92aaa1,_0x2cdf10){const _0x1053e6=a214_0x301c,_0x2933d3=_0x92aaa1();while(!![]){try{const _0xd2a74a=parseInt(_0x1053e6(0x1aa))/0x1+parseInt(_0x1053e6(0x1b2))/0x2*(parseInt(_0x1053e6(0x1ad))/0x3)+-parseInt(_0x1053e6(0x1a8))/0x4*(parseInt(_0x1053e6(0x1b0))/0x5)+-parseInt(_0x1053e6(0x1a7))/0x6+parseInt(_0x1053e6(0x1a6))/0x7+-parseInt(_0x1053e6(0x1ae))/0x8+-parseInt(_0x1053e6(0x1b1))/0x9*(-parseInt(_0x1053e6(0x1af))/0xa);if(_0xd2a74a===_0x2cdf10)break;else _0x2933d3['push'](_0x2933d3['shift']());}catch(_0x3521e2){_0x2933d3['push'](_0x2933d3['shift']());}}}(a214_0x4bc9,0x239ba));function a214_0x301c(_0x585d3c,_0x7a3b79){_0x585d3c=_0x585d3c-0x1a6;const _0x4bc9dc=a214_0x4bc9();let _0x301c7d=_0x4bc9dc[_0x585d3c];return _0x301c7d;}function a214_0x4bc9(){const _0xfdeb26=['1041040BnzzkN','25340UUFbLb','273450PVVPNQ','1071GpgYLf','25716ZHIZFQ','1088626uYcXXC','883116ZcduBq','12WGWwzZ','.cmd','65882cpSuqF','win32','platform','15hWWwyT'];a214_0x4bc9=function(){return _0xfdeb26;};return a214_0x4bc9();}export const isWindows=process[a214_0x40f94d(0x1ac)]===a214_0x40f94d(0x1ab);export function resolveNpmBin(_0x5ef46a){const _0x540c7e=a214_0x40f94d;return isWindows?_0x5ef46a+_0x540c7e(0x1a9):_0x5ef46a;}
@@ -1 +1 @@
1
- const a215_0x4c9d1b=a215_0x3221;(function(_0x38e388,_0x523019){const _0x24e607=a215_0x3221,_0x374db4=_0x38e388();while(!![]){try{const _0x34f959=-parseInt(_0x24e607(0x6b))/0x1+parseInt(_0x24e607(0x6e))/0x2*(parseInt(_0x24e607(0x6f))/0x3)+-parseInt(_0x24e607(0x72))/0x4+-parseInt(_0x24e607(0x78))/0x5+parseInt(_0x24e607(0x71))/0x6*(-parseInt(_0x24e607(0x6c))/0x7)+parseInt(_0x24e607(0x7a))/0x8*(-parseInt(_0x24e607(0x79))/0x9)+parseInt(_0x24e607(0x7d))/0xa;if(_0x34f959===_0x523019)break;else _0x374db4['push'](_0x374db4['shift']());}catch(_0x51c051){_0x374db4['push'](_0x374db4['shift']());}}}(a215_0x1ce8,0xe03cc));function a215_0x1ce8(){const _0x464d24=['lovrabet_rules.mdc','utf-8','71078780FFGSYy','json','status','string','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','/rules/rules.json','1093920fpyCOc','301iBjCPX','content','2DuDIHN','2514651shOMBB','本地模板文件不存在:\x20','196770GPumAu','6988712EAtnLC','CDN\x20返回数据格式错误','lastUpdated','catch','CDN\x20请求失败:\x20','agents.md','6225980TqGSIF','1755GVqrHh','62816qHQjmO'];a215_0x1ce8=function(){return _0x464d24;};return a215_0x1ce8();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a215_0x3221(_0x1ac20e,_0x5f2962){_0x1ac20e=_0x1ac20e-0x65;const _0x1ce848=a215_0x1ce8();let _0x32216e=_0x1ce848[_0x1ac20e];return _0x32216e;}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x20071d=a215_0x3221,_0x305572=getTemplateBaseUrl();return _0x305572+_0x20071d(0x6a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0x4c9d1b(0x68));export async function fetchRulesFromCDN(){const _0x58ee81=a215_0x4c9d1b,_0x46cbbd=getRulesCdnUrl(),_0x38dea3=await fetch(_0x46cbbd,{'headers':{'Accept':'application/json'}});if(!_0x38dea3['ok'])throw new Error(_0x58ee81(0x76)+_0x38dea3[_0x58ee81(0x66)]+'\x20'+_0x38dea3[_0x58ee81(0x69)]);const _0x587fbe=await _0x38dea3[_0x58ee81(0x65)]();if(!_0x587fbe[_0x58ee81(0x6d)]||typeof _0x587fbe[_0x58ee81(0x6d)]!==_0x58ee81(0x67))throw new Error(_0x58ee81(0x73));return _0x587fbe;}export async function getRulesContent(){const _0x277e0d=a215_0x4c9d1b;try{const _0x3e19d8=await fetchRulesFromCDN();return _0x3e19d8[_0x277e0d(0x6d)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3d9f79=a215_0x4c9d1b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3d9f79(0x7c));throw new Error(_0x3d9f79(0x70)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x31c672){const _0x249f1c=a215_0x4c9d1b,_0x5bcffb=await fetchRulesFromCDN()[_0x249f1c(0x75)](()=>null);let _0x5d9169;_0x5bcffb?(_0x5d9169=_0x5bcffb[_0x249f1c(0x6d)],_0x5bcffb[_0x249f1c(0x74)]&&(_0x5d9169=appendUpdateTime(_0x5d9169,_0x5bcffb[_0x249f1c(0x74)]))):_0x5d9169=readLocalTemplate();const _0x46c90b=dirname(_0x31c672);!existsSync(_0x46c90b)&&mkdirSync(_0x46c90b,{'recursive':!![]}),writeFileSync(_0x31c672,_0x5d9169,'utf-8');}export async function copyRulesToCursor(_0x446a58){const _0x326e71=a215_0x4c9d1b,_0x1e50f8=join(_0x446a58,'.cursor/rules'),_0x1cdfb9=join(_0x1e50f8,_0x326e71(0x7b));if(existsSync(_0x1cdfb9))return![];return await writeRulesFile(_0x1cdfb9),!![];}export async function copyRulesToAgentsMd(_0x805e04){const _0xfe4f2b=a215_0x4c9d1b,_0x375968=join(_0x805e04,_0xfe4f2b(0x77));if(existsSync(_0x375968))return![];return await writeRulesFile(_0x375968),!![];}
1
+ function a215_0x517a(){const _0x33c397=['2587755LMPLtV','/rules/rules.json','809181UUTxot','11654592zDEsgs','9onoGwy','CDN\x20返回数据格式错误','lovrabet_rules.mdc','json','本地模板文件不存在:\x20','835160pQEVqg','5383524YVQuiy','18lNtaUD','lastUpdated','utf-8','content','13094256JWBhlc','string','statusText','catch','3RLyziP','application/json','../../templates/rules/lovrabet_rules.mdc.tpl','1294822GFBqXM'];a215_0x517a=function(){return _0x33c397;};return a215_0x517a();}const a215_0x4a27a4=a215_0x48bd;(function(_0x1acbde,_0x400781){const _0x4537d2=a215_0x48bd,_0x420bf9=_0x1acbde();while(!![]){try{const _0x747385=-parseInt(_0x4537d2(0x1e3))/0x1+parseInt(_0x4537d2(0x1e0))/0x2*(-parseInt(_0x4537d2(0x1dd))/0x3)+parseInt(_0x4537d2(0x1eb))/0x4+-parseInt(_0x4537d2(0x1e1))/0x5*(-parseInt(_0x4537d2(0x1ec))/0x6)+-parseInt(_0x4537d2(0x1d9))/0x7+parseInt(_0x4537d2(0x1e4))/0x8+parseInt(_0x4537d2(0x1e5))/0x9*(-parseInt(_0x4537d2(0x1ea))/0xa);if(_0x747385===_0x400781)break;else _0x420bf9['push'](_0x420bf9['shift']());}catch(_0x3a7098){_0x420bf9['push'](_0x420bf9['shift']());}}}(a215_0x517a,0xe6a02));function a215_0x48bd(_0x198e60,_0x2016f4){_0x198e60=_0x198e60-0x1d7;const _0x517a67=a215_0x517a();let _0x48bdab=_0x517a67[_0x198e60];return _0x48bdab;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x2e3e7b=a215_0x48bd,_0x30d7c7=getTemplateBaseUrl();return _0x30d7c7+_0x2e3e7b(0x1e2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0x4a27a4(0x1df));export async function fetchRulesFromCDN(){const _0x29941e=a215_0x4a27a4,_0x5f202e=getRulesCdnUrl(),_0x3557b3=await fetch(_0x5f202e,{'headers':{'Accept':_0x29941e(0x1de)}});if(!_0x3557b3['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3557b3['status']+'\x20'+_0x3557b3[_0x29941e(0x1db)]);const _0x421cc5=await _0x3557b3[_0x29941e(0x1e8)]();if(!_0x421cc5[_0x29941e(0x1d8)]||typeof _0x421cc5[_0x29941e(0x1d8)]!==_0x29941e(0x1da))throw new Error(_0x29941e(0x1e6));return _0x421cc5;}export async function getRulesContent(){try{const _0x40ec6b=await fetchRulesFromCDN();return _0x40ec6b['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x13d22f=a215_0x4a27a4;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13d22f(0x1d7));throw new Error(_0x13d22f(0x1e9)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1696e6){const _0x487482=a215_0x4a27a4,_0x5ae68e=await fetchRulesFromCDN()[_0x487482(0x1dc)](()=>null);let _0x223ee9;_0x5ae68e?(_0x223ee9=_0x5ae68e['content'],_0x5ae68e[_0x487482(0x1ed)]&&(_0x223ee9=appendUpdateTime(_0x223ee9,_0x5ae68e[_0x487482(0x1ed)]))):_0x223ee9=readLocalTemplate();const _0x28f979=dirname(_0x1696e6);!existsSync(_0x28f979)&&mkdirSync(_0x28f979,{'recursive':!![]}),writeFileSync(_0x1696e6,_0x223ee9,_0x487482(0x1d7));}export async function copyRulesToCursor(_0x12acdb){const _0xf0f6ba=a215_0x4a27a4,_0x5b0574=join(_0x12acdb,'.cursor/rules'),_0x266e34=join(_0x5b0574,_0xf0f6ba(0x1e7));if(existsSync(_0x266e34))return![];return await writeRulesFile(_0x266e34),!![];}export async function copyRulesToAgentsMd(_0x41165f){const _0x581eef=join(_0x41165f,'agents.md');if(existsSync(_0x581eef))return![];return await writeRulesFile(_0x581eef),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1b1f55){return new Promise(_0x25959b=>setTimeout(_0x25959b,_0x1b1f55));}
1
+ export function sleep(_0xadbc24){return new Promise(_0x21ba2e=>setTimeout(_0x21ba2e,_0xadbc24));}
@@ -1 +1 @@
1
- const a217_0x39cb67=a217_0x44c6;(function(_0x391273,_0x5db8e5){const _0x2419ec=a217_0x44c6,_0x47c0b9=_0x391273();while(!![]){try{const _0x55f76b=-parseInt(_0x2419ec(0x1b7))/0x1*(-parseInt(_0x2419ec(0x1db))/0x2)+parseInt(_0x2419ec(0x1a3))/0x3*(-parseInt(_0x2419ec(0x1d5))/0x4)+parseInt(_0x2419ec(0x1a1))/0x5*(-parseInt(_0x2419ec(0x1b1))/0x6)+parseInt(_0x2419ec(0x1a9))/0x7+parseInt(_0x2419ec(0x1c8))/0x8+parseInt(_0x2419ec(0x1a8))/0x9*(parseInt(_0x2419ec(0x1bf))/0xa)+parseInt(_0x2419ec(0x1ac))/0xb*(-parseInt(_0x2419ec(0x1d6))/0xc);if(_0x55f76b===_0x5db8e5)break;else _0x47c0b9['push'](_0x47c0b9['shift']());}catch(_0x1fa0fb){_0x47c0b9['push'](_0x47c0b9['shift']());}}}(a217_0x3c9e,0xd1adc));import a217_0x18e6bb from'node:fs';import a217_0x2f273c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a217_0x44c6(_0x81a848,_0x4c0f41){_0x81a848=_0x81a848-0x1a1;const _0x3c9edc=a217_0x3c9e();let _0x44c64c=_0x3c9edc[_0x81a848];return _0x44c64c;}function a217_0x3c9e(){const _0x56f4bd=['31305732XZODSX','getHours','.md','readdir','error','164ItFdez','replace','extname','padStart','api','getMonth','5wrXEsp','slice','1950QqDLwg','toUpperCase','isDirectory','processDirectory','alias','4755483nzcuys','9141363LfdLUs','endsWith','name:\x20\x22','11qYcwWh','.scss','mkdir','writeFile','now','5108310mlIwBO','utf8','.ts','charAt','模板内容替换失败','pop','16069stvQBl','split','copyFile','promises','LOVRABET','template','toDisplayTitle','toLowerCase','10ooUTxn','replaceContent','includes','join','\x0a\x20\x20\x20\x20{\x20','formatLocalTimestamp','map','getMinutes','info','10933088qWjfzY','default','toComponentName','模板内容替换完成','datasetCode:\x20\x22','.js','push','name','.tpl','getDate','datasetCode','pad','开始处理模板内容替换','1228kFargG'];a217_0x3c9e=function(){return _0x56f4bd;};return a217_0x3c9e();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x565754){const _0x232f6d=a217_0x44c6;return String(_0x565754)[_0x232f6d(0x1de)](0x2,'0');}static[a217_0x39cb67(0x1c4)](_0x195e3d){const _0x17989e=a217_0x39cb67,_0x4cd8b3=_0x195e3d['getFullYear'](),_0x31ed5c=this['pad'](_0x195e3d[_0x17989e(0x1e0)]()+0x1),_0x43dde1=this[_0x17989e(0x1d3)](_0x195e3d[_0x17989e(0x1d1)]()),_0x205117=this['pad'](_0x195e3d[_0x17989e(0x1d7)]()),_0x41c7a3=this[_0x17989e(0x1d3)](_0x195e3d[_0x17989e(0x1c6)]()),_0x1efabc=this[_0x17989e(0x1d3)](_0x195e3d['getSeconds']());return{'createdAt':_0x4cd8b3+'-'+_0x31ed5c+'-'+_0x43dde1+'\x20'+_0x205117+':'+_0x41c7a3+':'+_0x1efabc,'createdDate':_0x4cd8b3+'-'+_0x31ed5c+'-'+_0x43dde1,'createdTime':_0x205117+':'+_0x41c7a3+':'+_0x1efabc};}static[a217_0x39cb67(0x1ca)](_0xa1be7e){const _0x3dcc6e=a217_0x39cb67,_0x444ad9=_0xa1be7e[_0x3dcc6e(0x1b8)]('/')[_0x3dcc6e(0x1b6)]()||_0xa1be7e;return _0x444ad9['split']('-')[_0x3dcc6e(0x1c5)](_0x4d23c5=>_0x4d23c5['charAt'](0x0)[_0x3dcc6e(0x1a4)]()+_0x4d23c5[_0x3dcc6e(0x1a2)](0x1)[_0x3dcc6e(0x1be)]())[_0x3dcc6e(0x1c2)]('');}static[a217_0x39cb67(0x1bd)](_0x12168b){const _0x20aa51=a217_0x39cb67,_0xbdb906=_0x12168b[_0x20aa51(0x1b8)]('/')['pop']()||_0x12168b;return _0xbdb906[_0x20aa51(0x1b8)]('-')['map'](_0x4cc076=>_0x4cc076[_0x20aa51(0x1b4)](0x0)[_0x20aa51(0x1a4)]()+_0x4cc076[_0x20aa51(0x1a2)](0x1)['toLowerCase']())[_0x20aa51(0x1c2)]('\x20');}static[a217_0x39cb67(0x1c0)](_0x440a22,_0x35059a,_0x3fd2e9){const _0x5e5fbf=a217_0x39cb67,_0x519344=this['toComponentName'](_0x35059a),_0x22ea10=this[_0x5e5fbf(0x1bd)](_0x35059a),{createdAt:_0xb7e893,createdDate:_0x142d86,createdTime:_0x3047c6}=this[_0x5e5fbf(0x1c4)](new Date());let _0x455fd9=_0x440a22[_0x5e5fbf(0x1dc)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x519344)[_0x5e5fbf(0x1dc)](/\{DisplayTitle\}/g,_0x22ea10)[_0x5e5fbf(0x1dc)](/\{PageName\}/g,_0x35059a)[_0x5e5fbf(0x1dc)](/\{TemplateName\}/g,_0x3fd2e9)[_0x5e5fbf(0x1dc)](/\{CreatedAt\}/g,_0xb7e893)[_0x5e5fbf(0x1dc)](/\{CreatedDate\}/g,_0x142d86)['replace'](/\{CreatedTime\}/g,_0x3047c6);return _0x455fd9;}static['replaceApiContent'](_0xf17c89,_0xc22bee,_0x6ed361,_0x321244,_0x5625ad,_0x24c1a7,_0x2946f5,_0x54e671){const _0x2fc6f4=a217_0x39cb67,_0x1ddb9a=new Date(),_0x2b148f=_0x1ddb9a['toISOString'](),_0x466041=_0x6ed361['map'](_0x7e55ef=>{const _0x4cb3f2=a217_0x44c6,_0x36a40d=[_0x4cb3f2(0x1cc)+_0x7e55ef[_0x4cb3f2(0x1d2)]+'\x22','tableName:\x20\x22'+_0x7e55ef['tableName']+'\x22',_0x4cb3f2(0x1ab)+_0x7e55ef[_0x4cb3f2(0x1cf)]+'\x22'];return _0x7e55ef['alias']&&_0x36a40d[_0x4cb3f2(0x1ce)]('alias:\x20\x22'+_0x7e55ef[_0x4cb3f2(0x1a7)]+'\x22'),_0x4cb3f2(0x1c3)+_0x36a40d[_0x4cb3f2(0x1c2)](',\x20')+'\x20},';})['join'](''),_0x2b0bde=_0x321244||_0x6ed361[0x0]?.[_0x2fc6f4(0x1a7)]||'YourModel';let _0x4d18fc=_0xf17c89[_0x2fc6f4(0x1dc)](/\{AppCode\}/g,_0xc22bee)[_0x2fc6f4(0x1dc)](/\{ModelConfigs\}/g,_0x466041)['replace'](/\{ExampleModelName\}/g,_0x2b0bde)['replace'](/\{ApiFileName\}/g,_0x5625ad||_0x2fc6f4(0x1df))[_0x2fc6f4(0x1dc)](/\{ConfigName\}/g,_0x24c1a7||_0x2fc6f4(0x1c9))[_0x2fc6f4(0x1dc)](/\{ClientConfigParam\}/g,_0x2946f5||'')[_0x2fc6f4(0x1dc)](/\{VarPrefix\}/g,_0x54e671||_0x2fc6f4(0x1bb))[_0x2fc6f4(0x1dc)](/\{CreatedAt\}/g,_0x2b148f);return _0x4d18fc;}static async['processTemplate'](_0x7abade,_0x44102d,_0x6d0baa,_0x2decb1,_0x2e57ff=!![]){const _0x548ff7=a217_0x39cb67,_0x20b589=Date[_0x548ff7(0x1b0)]();try{_0x2e57ff&&logger[_0x548ff7(0x1c7)](_0x548ff7(0x1bc),_0x548ff7(0x1d4),{'templatePath':_0x7abade,'targetPath':_0x44102d,'pageName':_0x6d0baa,'templateName':_0x2decb1});await a217_0x18e6bb[_0x548ff7(0x1ba)][_0x548ff7(0x1ae)](_0x44102d,{'recursive':!![]}),await this[_0x548ff7(0x1a6)](_0x7abade,_0x44102d,_0x6d0baa,_0x2decb1);if(_0x2e57ff){const _0x7c0e67=Date[_0x548ff7(0x1b0)]()-_0x20b589;logger['success'](_0x548ff7(0x1bc),_0x548ff7(0x1cb),_0x7c0e67,{'pageName':_0x6d0baa,'templateName':_0x2decb1});}}catch(_0x491691){if(_0x2e57ff){const _0x273e9d=Date[_0x548ff7(0x1b0)]()-_0x20b589;logger[_0x548ff7(0x1da)]('template',_0x548ff7(0x1b5),{'templatePath':_0x7abade,'targetPath':_0x44102d,'pageName':_0x6d0baa,'templateName':_0x2decb1,'error':_0x491691 instanceof Error?_0x491691['message']:String(_0x491691),'duration':_0x273e9d});}throw _0x491691;}}static async[a217_0x39cb67(0x1a6)](_0xcbadb1,_0xa751a6,_0x5bf0ba,_0x121b50){const _0x71e2d5=a217_0x39cb67,_0x52759b=await a217_0x18e6bb[_0x71e2d5(0x1ba)][_0x71e2d5(0x1d9)](_0xcbadb1,{'withFileTypes':!![]});for(const _0x1148f4 of _0x52759b){const _0x52e44c=a217_0x2f273c[_0x71e2d5(0x1c2)](_0xcbadb1,_0x1148f4['name']);let _0x44cbe4=a217_0x2f273c['join'](_0xa751a6,_0x1148f4[_0x71e2d5(0x1cf)]);_0x1148f4[_0x71e2d5(0x1cf)][_0x71e2d5(0x1aa)](_0x71e2d5(0x1d0))&&(_0x44cbe4=a217_0x2f273c[_0x71e2d5(0x1c2)](_0xa751a6,_0x1148f4['name'][_0x71e2d5(0x1dc)](/\.tpl$/,'')));if(_0x1148f4[_0x71e2d5(0x1a5)]())await a217_0x18e6bb[_0x71e2d5(0x1ba)][_0x71e2d5(0x1ae)](_0x44cbe4,{'recursive':!![]}),await this[_0x71e2d5(0x1a6)](_0x52e44c,_0x44cbe4,_0x5bf0ba,_0x121b50);else _0x1148f4['isFile']()&&await this['processFile'](_0x52e44c,_0x44cbe4,_0x5bf0ba,_0x121b50);}}static async['processFile'](_0x5048f9,_0x535f3d,_0x580a20,_0x4549e5){const _0x1b6464=a217_0x39cb67,_0x1a0121=a217_0x2f273c[_0x1b6464(0x1dd)](_0x5048f9)['toLowerCase']();_0x5048f9[_0x1b6464(0x1aa)]('.tpl')&&(_0x535f3d=_0x535f3d[_0x1b6464(0x1dc)](/\.tpl$/,''));const _0x4ee485=['.tsx',_0x1b6464(0x1b3),'.jsx',_0x1b6464(0x1cd),'.json',_0x1b6464(0x1d8),'.css',_0x1b6464(0x1ad),_0x1b6464(0x1d0)];if(_0x4ee485[_0x1b6464(0x1c1)](_0x1a0121)||_0x5048f9['endsWith'](_0x1b6464(0x1d0))){const _0x422b65=await a217_0x18e6bb['promises']['readFile'](_0x5048f9,_0x1b6464(0x1b2)),_0x4473c1=this[_0x1b6464(0x1c0)](_0x422b65,_0x580a20,_0x4549e5);await a217_0x18e6bb[_0x1b6464(0x1ba)][_0x1b6464(0x1af)](_0x535f3d,_0x4473c1,_0x1b6464(0x1b2));}else await a217_0x18e6bb[_0x1b6464(0x1ba)][_0x1b6464(0x1b9)](_0x5048f9,_0x535f3d);}}
1
+ const a217_0x4d058a=a217_0x45b0;function a217_0x45b0(_0x3d20aa,_0x2d9465){_0x3d20aa=_0x3d20aa-0x194;const _0x1c7cb5=a217_0x1c7c();let _0x45b085=_0x1c7cb5[_0x3d20aa];return _0x45b085;}function a217_0x1c7c(){const _0x3a7466=['getFullYear','4798pbiVgb','12518387cHBmDj','name','alias:\x20\x22','.tpl','.md','toLowerCase','mkdir','now','datasetCode:\x20\x22','processDirectory','7846760PoqpGs','toISOString','LOVRABET','模板内容替换完成','default','join','13136760EHUgKy','toDisplayTitle','alias','name:\x20\x22','writeFile','message','info','readdir','getDate','tableName:\x20\x22','padStart','split','replaceContent','readFile','processTemplate','379fezCNF','charAt','push','32wZcZco','tableName','map','.json','.css','toComponentName','YourModel','pad','template','531756PNCbXv','169107xgYdrU','formatLocalTimestamp','6laQfiU','error','\x0a\x20\x20\x20\x20{\x20','5062796zYokuA','success','.js','replace','isDirectory','toUpperCase','extname','pop','endsWith','isFile','copyFile','promises','includes','processFile','.tsx','utf8','slice'];a217_0x1c7c=function(){return _0x3a7466;};return a217_0x1c7c();}(function(_0x30c67c,_0x59b0eb){const _0x19dc32=a217_0x45b0,_0xeef20d=_0x30c67c();while(!![]){try{const _0x31ce6b=parseInt(_0x19dc32(0x1b9))/0x1*(parseInt(_0x19dc32(0x199))/0x2)+parseInt(_0x19dc32(0x1c6))/0x3+parseInt(_0x19dc32(0x1cb))/0x4+parseInt(_0x19dc32(0x1a4))/0x5+parseInt(_0x19dc32(0x1c8))/0x6*(-parseInt(_0x19dc32(0x19a))/0x7)+parseInt(_0x19dc32(0x1bc))/0x8*(parseInt(_0x19dc32(0x1c5))/0x9)+-parseInt(_0x19dc32(0x1aa))/0xa;if(_0x31ce6b===_0x59b0eb)break;else _0xeef20d['push'](_0xeef20d['shift']());}catch(_0x268054){_0xeef20d['push'](_0xeef20d['shift']());}}}(a217_0x1c7c,0xe4430));import a217_0x223ab8 from'node:fs';import a217_0xdf02b1 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a217_0x4d058a(0x1c3)](_0x40f488){const _0x4dfc89=a217_0x4d058a;return String(_0x40f488)[_0x4dfc89(0x1b4)](0x2,'0');}static[a217_0x4d058a(0x1c7)](_0x35e8ed){const _0x38279f=a217_0x4d058a,_0x353eac=_0x35e8ed[_0x38279f(0x198)](),_0x1fc0c2=this[_0x38279f(0x1c3)](_0x35e8ed['getMonth']()+0x1),_0x79bb2c=this[_0x38279f(0x1c3)](_0x35e8ed[_0x38279f(0x1b2)]()),_0x577df9=this[_0x38279f(0x1c3)](_0x35e8ed['getHours']()),_0x4d76f4=this[_0x38279f(0x1c3)](_0x35e8ed['getMinutes']()),_0x2eb084=this[_0x38279f(0x1c3)](_0x35e8ed['getSeconds']());return{'createdAt':_0x353eac+'-'+_0x1fc0c2+'-'+_0x79bb2c+'\x20'+_0x577df9+':'+_0x4d76f4+':'+_0x2eb084,'createdDate':_0x353eac+'-'+_0x1fc0c2+'-'+_0x79bb2c,'createdTime':_0x577df9+':'+_0x4d76f4+':'+_0x2eb084};}static[a217_0x4d058a(0x1c1)](_0x231d9d){const _0x574fad=a217_0x4d058a,_0x5bba91=_0x231d9d['split']('/')[_0x574fad(0x1d2)]()||_0x231d9d;return _0x5bba91[_0x574fad(0x1b5)]('-')[_0x574fad(0x1be)](_0x46455e=>_0x46455e['charAt'](0x0)[_0x574fad(0x1d0)]()+_0x46455e[_0x574fad(0x197)](0x1)[_0x574fad(0x19f)]())[_0x574fad(0x1a9)]('');}static[a217_0x4d058a(0x1ab)](_0x261424){const _0x30a773=a217_0x4d058a,_0x35d643=_0x261424['split']('/')['pop']()||_0x261424;return _0x35d643['split']('-')[_0x30a773(0x1be)](_0x2f5cd3=>_0x2f5cd3[_0x30a773(0x1ba)](0x0)['toUpperCase']()+_0x2f5cd3['slice'](0x1)['toLowerCase']())[_0x30a773(0x1a9)]('\x20');}static[a217_0x4d058a(0x1b6)](_0x7129aa,_0x93f414,_0x587ec4){const _0x2f4667=a217_0x4d058a,_0x266137=this['toComponentName'](_0x93f414),_0x4a9804=this[_0x2f4667(0x1ab)](_0x93f414),{createdAt:_0x3cb5e9,createdDate:_0x408b82,createdTime:_0x2c12d3}=this['formatLocalTimestamp'](new Date());let _0x28023e=_0x7129aa['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x266137)['replace'](/\{DisplayTitle\}/g,_0x4a9804)[_0x2f4667(0x1ce)](/\{PageName\}/g,_0x93f414)['replace'](/\{TemplateName\}/g,_0x587ec4)[_0x2f4667(0x1ce)](/\{CreatedAt\}/g,_0x3cb5e9)['replace'](/\{CreatedDate\}/g,_0x408b82)['replace'](/\{CreatedTime\}/g,_0x2c12d3);return _0x28023e;}static['replaceApiContent'](_0x365827,_0x507154,_0x357c9c,_0x49bc9c,_0x2488f1,_0x2dbaf0,_0x955346,_0x22734e){const _0x19b3b4=a217_0x4d058a,_0x79cbd9=new Date(),_0x4cbeef=_0x79cbd9[_0x19b3b4(0x1a5)](),_0x5763a7=_0x357c9c[_0x19b3b4(0x1be)](_0xecd3c1=>{const _0x441577=_0x19b3b4,_0x391009=[_0x441577(0x1a2)+_0xecd3c1['datasetCode']+'\x22',_0x441577(0x1b3)+_0xecd3c1[_0x441577(0x1bd)]+'\x22',_0x441577(0x1ad)+_0xecd3c1[_0x441577(0x19b)]+'\x22'];return _0xecd3c1['alias']&&_0x391009[_0x441577(0x1bb)](_0x441577(0x19c)+_0xecd3c1['alias']+'\x22'),_0x441577(0x1ca)+_0x391009['join'](',\x20')+'\x20},';})[_0x19b3b4(0x1a9)](''),_0x4afbe9=_0x49bc9c||_0x357c9c[0x0]?.[_0x19b3b4(0x1ac)]||_0x19b3b4(0x1c2);let _0x249e3b=_0x365827['replace'](/\{AppCode\}/g,_0x507154)['replace'](/\{ModelConfigs\}/g,_0x5763a7)[_0x19b3b4(0x1ce)](/\{ExampleModelName\}/g,_0x4afbe9)['replace'](/\{ApiFileName\}/g,_0x2488f1||'api')[_0x19b3b4(0x1ce)](/\{ConfigName\}/g,_0x2dbaf0||_0x19b3b4(0x1a8))[_0x19b3b4(0x1ce)](/\{ClientConfigParam\}/g,_0x955346||'')['replace'](/\{VarPrefix\}/g,_0x22734e||_0x19b3b4(0x1a6))[_0x19b3b4(0x1ce)](/\{CreatedAt\}/g,_0x4cbeef);return _0x249e3b;}static async[a217_0x4d058a(0x1b8)](_0x3ef596,_0x27d459,_0x1e8c96,_0x1786f5,_0x29293c=!![]){const _0x58e22a=a217_0x4d058a,_0x1ae69e=Date[_0x58e22a(0x1a1)]();try{_0x29293c&&logger[_0x58e22a(0x1b0)](_0x58e22a(0x1c4),'开始处理模板内容替换',{'templatePath':_0x3ef596,'targetPath':_0x27d459,'pageName':_0x1e8c96,'templateName':_0x1786f5});await a217_0x223ab8['promises'][_0x58e22a(0x1a0)](_0x27d459,{'recursive':!![]}),await this[_0x58e22a(0x1a3)](_0x3ef596,_0x27d459,_0x1e8c96,_0x1786f5);if(_0x29293c){const _0x162fe4=Date['now']()-_0x1ae69e;logger[_0x58e22a(0x1cc)](_0x58e22a(0x1c4),_0x58e22a(0x1a7),_0x162fe4,{'pageName':_0x1e8c96,'templateName':_0x1786f5});}}catch(_0x1fc3d5){if(_0x29293c){const _0x5ac427=Date['now']()-_0x1ae69e;logger[_0x58e22a(0x1c9)](_0x58e22a(0x1c4),'模板内容替换失败',{'templatePath':_0x3ef596,'targetPath':_0x27d459,'pageName':_0x1e8c96,'templateName':_0x1786f5,'error':_0x1fc3d5 instanceof Error?_0x1fc3d5[_0x58e22a(0x1af)]:String(_0x1fc3d5),'duration':_0x5ac427});}throw _0x1fc3d5;}}static async[a217_0x4d058a(0x1a3)](_0x2f638a,_0x5c91a9,_0x341cc1,_0x2e743f){const _0x4cb9c4=a217_0x4d058a,_0x426c59=await a217_0x223ab8['promises'][_0x4cb9c4(0x1b1)](_0x2f638a,{'withFileTypes':!![]});for(const _0x4d1923 of _0x426c59){const _0x5b1c5d=a217_0xdf02b1['join'](_0x2f638a,_0x4d1923[_0x4cb9c4(0x19b)]);let _0x8dc404=a217_0xdf02b1[_0x4cb9c4(0x1a9)](_0x5c91a9,_0x4d1923[_0x4cb9c4(0x19b)]);_0x4d1923[_0x4cb9c4(0x19b)][_0x4cb9c4(0x1d3)](_0x4cb9c4(0x19d))&&(_0x8dc404=a217_0xdf02b1[_0x4cb9c4(0x1a9)](_0x5c91a9,_0x4d1923['name'][_0x4cb9c4(0x1ce)](/\.tpl$/,'')));if(_0x4d1923[_0x4cb9c4(0x1cf)]())await a217_0x223ab8['promises']['mkdir'](_0x8dc404,{'recursive':!![]}),await this[_0x4cb9c4(0x1a3)](_0x5b1c5d,_0x8dc404,_0x341cc1,_0x2e743f);else _0x4d1923[_0x4cb9c4(0x1d4)]()&&await this[_0x4cb9c4(0x194)](_0x5b1c5d,_0x8dc404,_0x341cc1,_0x2e743f);}}static async[a217_0x4d058a(0x194)](_0x513388,_0x582aca,_0x194eb1,_0x932a02){const _0x467b53=a217_0x4d058a,_0x3acb8c=a217_0xdf02b1[_0x467b53(0x1d1)](_0x513388)['toLowerCase']();_0x513388[_0x467b53(0x1d3)](_0x467b53(0x19d))&&(_0x582aca=_0x582aca[_0x467b53(0x1ce)](/\.tpl$/,''));const _0x522b8d=[_0x467b53(0x195),'.ts','.jsx',_0x467b53(0x1cd),_0x467b53(0x1bf),_0x467b53(0x19e),_0x467b53(0x1c0),'.scss',_0x467b53(0x19d)];if(_0x522b8d[_0x467b53(0x1d7)](_0x3acb8c)||_0x513388['endsWith']('.tpl')){const _0x166541=await a217_0x223ab8[_0x467b53(0x1d6)][_0x467b53(0x1b7)](_0x513388,_0x467b53(0x196)),_0x4e5d1e=this[_0x467b53(0x1b6)](_0x166541,_0x194eb1,_0x932a02);await a217_0x223ab8[_0x467b53(0x1d6)][_0x467b53(0x1ae)](_0x582aca,_0x4e5d1e,_0x467b53(0x196));}else await a217_0x223ab8['promises'][_0x467b53(0x1d5)](_0x513388,_0x582aca);}}