@lovrabet/rabetbase-cli 2.3.7-beta.4 → 2.3.7

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 (245) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- const a226_0x3bacc7=a226_0x12af;(function(_0x286ac7,_0x5716d5){const _0x385a48=a226_0x12af,_0x535550=_0x286ac7();while(!![]){try{const _0x238f13=parseInt(_0x385a48(0x124))/0x1*(parseInt(_0x385a48(0x123))/0x2)+-parseInt(_0x385a48(0x10d))/0x3+parseInt(_0x385a48(0xf2))/0x4+-parseInt(_0x385a48(0xf8))/0x5+parseInt(_0x385a48(0x121))/0x6+-parseInt(_0x385a48(0x11c))/0x7+-parseInt(_0x385a48(0xfc))/0x8*(-parseInt(_0x385a48(0xf6))/0x9);if(_0x238f13===_0x5716d5)break;else _0x535550['push'](_0x535550['shift']());}catch(_0x31b657){_0x535550['push'](_0x535550['shift']());}}}(a226_0x48b8,0xb9bbd));export const CORE_IDE_CONFIGS={'cursor':{'name':a226_0x3bacc7(0xff),'description':'Cursor\x20IDE','folders':[a226_0x3bacc7(0x105),a226_0x3bacc7(0x103)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x11b),'template':a226_0x3bacc7(0xef)}]},'windsurf':{'name':a226_0x3bacc7(0x122),'description':a226_0x3bacc7(0x116),'folders':[a226_0x3bacc7(0x120)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0xfb),'template':a226_0x3bacc7(0xef)}]},'claude':{'name':a226_0x3bacc7(0x119),'description':'Claude\x20Code','folders':[a226_0x3bacc7(0x106)],'files':[{'type':a226_0x3bacc7(0xfe),'path':'.claude/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'cline':{'name':a226_0x3bacc7(0x11f),'description':a226_0x3bacc7(0x108),'folders':[a226_0x3bacc7(0x104)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x115),'template':a226_0x3bacc7(0xef)}]},'codex':{'name':a226_0x3bacc7(0xf0),'description':a226_0x3bacc7(0x10b),'folders':[a226_0x3bacc7(0x113)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'opencode':{'name':a226_0x3bacc7(0xf5),'description':a226_0x3bacc7(0xfa),'folders':[a226_0x3bacc7(0x126)],'files':[{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x127),'template':'SKILL.md.tpl'}]},'qoder':{'name':a226_0x3bacc7(0x114),'description':'Qoder\x20IDE','folders':[a226_0x3bacc7(0x125)],'files':[{'type':a226_0x3bacc7(0xfe),'path':'.qoder/rules/rabetbase.md','template':a226_0x3bacc7(0xef)},{'type':a226_0x3bacc7(0xfe),'path':a226_0x3bacc7(0x101),'template':a226_0x3bacc7(0xef)}]},'codebuddy':{'name':'CodeBuddy','description':a226_0x3bacc7(0xf7),'folders':[a226_0x3bacc7(0xf1)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a226_0x3bacc7(0xfd),'description':a226_0x3bacc7(0x117),'folders':[a226_0x3bacc7(0x102)],'files':[{'type':'file','path':a226_0x3bacc7(0x118),'template':a226_0x3bacc7(0xef)}]}};function a226_0x48b8(){const _0xc65db3=['Trae\x20IDE','.trae/skills/lovrabet/SKILL.md','Claude\x20Code','opencode','.cursor/skills/rabetbase.md','1033347JBvVBY','codex','windsurf','Cline','.windsurf','2505462OkQYRE','Windsurf','89518YlNdHT','23ImNdDx','.qoder','.opencode','.opencode/skills/lovrabet/SKILL.md','SKILL.md.tpl','Codex','.codebuddy','4334416EhDiSD','.agent/skills/lovrabet/SKILL.md','.agent','OpenCode','9Ubikrl','CodeBuddy\x20IDE','3763670gJKEDj','Antigravity','OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','591512boyCbi','Trae','file','Cursor','cline','.qoder/skills/lovrabet/SKILL.md','.trae','.cursor','.cline','.cursorrules','.claude','通用模板\x20-\x20兜底方案','Cline\x20IDE','agent','cursor','Codex\x20IDE','codebuddy','2830371PHPdxy','qoder','其他\x20(通用模板)','Antigravity\x20IDE','trae','claude','.codex','Qoder','.cline/skills/lovrabet/SKILL.md','Windsurf\x20IDE'];a226_0x48b8=function(){return _0xc65db3;};return a226_0x48b8();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a226_0x3bacc7(0x10f),'description':a226_0x3bacc7(0x107),'folders':[a226_0x3bacc7(0xf4)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a226_0x3bacc7(0xef)}]},'antigravity':{'name':a226_0x3bacc7(0xf9),'description':a226_0x3bacc7(0x110),'folders':[a226_0x3bacc7(0xf4)],'files':[{'type':'file','path':a226_0x3bacc7(0xf3),'template':a226_0x3bacc7(0xef)}]}};export const CORE_IDE_LIST=[a226_0x3bacc7(0x112),a226_0x3bacc7(0x100),a226_0x3bacc7(0x10c),a226_0x3bacc7(0x11d),a226_0x3bacc7(0x10a),a226_0x3bacc7(0x11a),a226_0x3bacc7(0x10e),a226_0x3bacc7(0x111),a226_0x3bacc7(0x11e)];function a226_0x12af(_0x78b137,_0x5335e5){_0x78b137=_0x78b137-0xef;const _0x48b8db=a226_0x48b8();let _0x12af58=_0x48b8db[_0x78b137];return _0x12af58;}export const IDE_LIST=['antigravity',a226_0x3bacc7(0x112),'cline',a226_0x3bacc7(0x10c),a226_0x3bacc7(0x11d),a226_0x3bacc7(0x10a),'opencode',a226_0x3bacc7(0x10e),a226_0x3bacc7(0x111),a226_0x3bacc7(0x11e),a226_0x3bacc7(0x109)];export const ALL_CORE_IDES=[a226_0x3bacc7(0x10a),a226_0x3bacc7(0x11e),a226_0x3bacc7(0x112),'cline','codex',a226_0x3bacc7(0x11a),a226_0x3bacc7(0x10e),a226_0x3bacc7(0x10c),a226_0x3bacc7(0x111)];
1
+ const a226_0xb4be74=a226_0x2781;(function(_0x50c452,_0x8df184){const _0xd75cae=a226_0x2781,_0x364e11=_0x50c452();while(!![]){try{const _0x36b1c2=parseInt(_0xd75cae(0x1c8))/0x1*(parseInt(_0xd75cae(0x19f))/0x2)+parseInt(_0xd75cae(0x19c))/0x3*(-parseInt(_0xd75cae(0x19b))/0x4)+-parseInt(_0xd75cae(0x1b3))/0x5+parseInt(_0xd75cae(0x1a5))/0x6+-parseInt(_0xd75cae(0x1b9))/0x7+-parseInt(_0xd75cae(0x1b2))/0x8+parseInt(_0xd75cae(0x1aa))/0x9;if(_0x36b1c2===_0x8df184)break;else _0x364e11['push'](_0x364e11['shift']());}catch(_0x3bf394){_0x364e11['push'](_0x364e11['shift']());}}}(a226_0x299e,0xf2faa));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a226_0xb4be74(0x1c5),'folders':[a226_0xb4be74(0x1b6),'.cursor'],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1ba),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a226_0xb4be74(0x1ab),'description':'Windsurf\x20IDE','folders':[a226_0xb4be74(0x1c0)],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1c4),'template':a226_0xb4be74(0x1cb)}]},'claude':{'name':a226_0xb4be74(0x1a0),'description':a226_0xb4be74(0x1a0),'folders':[a226_0xb4be74(0x197)],'files':[{'type':'file','path':a226_0xb4be74(0x19e),'template':a226_0xb4be74(0x1cb)}]},'cline':{'name':'Cline','description':a226_0xb4be74(0x1c6),'folders':[a226_0xb4be74(0x1c1)],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1c2),'template':a226_0xb4be74(0x1cb)}]},'codex':{'name':a226_0xb4be74(0x1c9),'description':a226_0xb4be74(0x195),'folders':[a226_0xb4be74(0x194)],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1bc),'template':'SKILL.md.tpl'}]},'opencode':{'name':a226_0xb4be74(0x198),'description':a226_0xb4be74(0x1af),'folders':[a226_0xb4be74(0x1b0)],'files':[{'type':a226_0xb4be74(0x1a6),'path':'.opencode/skills/lovrabet/SKILL.md','template':a226_0xb4be74(0x1cb)}]},'qoder':{'name':a226_0xb4be74(0x1b1),'description':a226_0xb4be74(0x1b8),'folders':[a226_0xb4be74(0x1a8)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a226_0xb4be74(0x1cb)},{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1be),'template':a226_0xb4be74(0x1cb)}]},'codebuddy':{'name':'CodeBuddy','description':a226_0xb4be74(0x1a4),'folders':[a226_0xb4be74(0x1b7)],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1bd),'template':'SKILL.md.tpl'}]},'trae':{'name':a226_0xb4be74(0x1ac),'description':a226_0xb4be74(0x1cc),'folders':[a226_0xb4be74(0x1b5)],'files':[{'type':a226_0xb4be74(0x1a6),'path':a226_0xb4be74(0x1a9),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a226_0xb4be74(0x1c3),'description':a226_0xb4be74(0x19d),'folders':[a226_0xb4be74(0x1a1)],'files':[{'type':a226_0xb4be74(0x1a6),'path':'.agent/skills/lovrabet/SKILL.md','template':a226_0xb4be74(0x1cb)}]},'antigravity':{'name':'Antigravity','description':a226_0xb4be74(0x1a3),'folders':['.agent'],'files':[{'type':'file','path':a226_0xb4be74(0x1b4),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a226_0xb4be74(0x1ad),a226_0xb4be74(0x1a2),a226_0xb4be74(0x1c7),'codex',a226_0xb4be74(0x1bf),a226_0xb4be74(0x1ae),a226_0xb4be74(0x199),a226_0xb4be74(0x1a7),a226_0xb4be74(0x196)];function a226_0x2781(_0x4f5a18,_0x33640e){_0x4f5a18=_0x4f5a18-0x194;const _0x299ed5=a226_0x299e();let _0x2781bf=_0x299ed5[_0x4f5a18];return _0x2781bf;}function a226_0x299e(){const _0x4fd347=['.trae','.cursorrules','.codebuddy','Qoder\x20IDE','6425804wXthLO','.cursor/skills/rabetbase.md','antigravity','.codex/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','cursor','.windsurf','.cline','.cline/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.windsurf/workflows/rabetbase.md','Cursor\x20IDE','Cline\x20IDE','codebuddy','704131FaXYSK','Codex','agent','SKILL.md.tpl','Trae\x20IDE','.codex','Codex\x20IDE','windsurf','.claude','OpenCode','qoder','codex','4904HleoSR','3291dApckl','通用模板\x20-\x20兜底方案','.claude/skills/lovrabet/SKILL.md','4WwgZnw','Claude\x20Code','.agent','cline','Antigravity\x20IDE','CodeBuddy\x20IDE','5599392uPrXXT','file','trae','.qoder','.trae/skills/lovrabet/SKILL.md','36510057kIVyFF','Windsurf','Trae','claude','opencode','OpenCode\x20IDE','.opencode','Qoder','12938136WBLDYh','7613820JDwhDM','.agent/skills/lovrabet/SKILL.md'];a226_0x299e=function(){return _0x4fd347;};return a226_0x299e();}export const IDE_LIST=[a226_0xb4be74(0x1bb),a226_0xb4be74(0x1ad),a226_0xb4be74(0x1a2),'codebuddy','codex',a226_0xb4be74(0x1bf),'opencode','qoder',a226_0xb4be74(0x1a7),a226_0xb4be74(0x196),a226_0xb4be74(0x1ca)];export const ALL_CORE_IDES=[a226_0xb4be74(0x1bf),'windsurf','claude',a226_0xb4be74(0x1a2),a226_0xb4be74(0x19a),'opencode','qoder',a226_0xb4be74(0x1c7),'trae'];
@@ -1 +1 @@
1
- function a227_0x1d03(){const _0x5f2208=['18JsvNiR','2842332fOwjBt','224144ngLtsM','1994247rZCKjs','8465454SlPTpV','2793iLrktm','164554AKGzQH','2456yGGtOD','1054990tofUjw'];a227_0x1d03=function(){return _0x5f2208;};return a227_0x1d03();}(function(_0x1dca45,_0x27190b){const _0xc28e5e=a227_0x4226,_0x1c6f71=_0x1dca45();while(!![]){try{const _0x565db5=parseInt(_0xc28e5e(0x74))/0x1+parseInt(_0xc28e5e(0x78))/0x2+-parseInt(_0xc28e5e(0x75))/0x3+-parseInt(_0xc28e5e(0x73))/0x4+parseInt(_0xc28e5e(0x71))/0x5*(parseInt(_0xc28e5e(0x72))/0x6)+parseInt(_0xc28e5e(0x77))/0x7*(-parseInt(_0xc28e5e(0x70))/0x8)+parseInt(_0xc28e5e(0x76))/0x9;if(_0x565db5===_0x27190b)break;else _0x1c6f71['push'](_0x1c6f71['shift']());}catch(_0x56ad7f){_0x1c6f71['push'](_0x1c6f71['shift']());}}}(a227_0x1d03,0x5d4f4));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a227_0x4226(_0x4550af,_0x1a98f9){_0x4550af=_0x4550af-0x70;const _0x1d03ba=a227_0x1d03();let _0x422699=_0x1d03ba[_0x4550af];return _0x422699;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a227_0xa31a(){const _0x466d9c=['465644bPToCY','4252068OfYdvA','5rFoGhq','620256tXwPHi','8JcmfRx','2870CUFjVo','3641NmNCUz','810CNoItP','9747qUcZFn','19644pVTYwi','310gjmKTA','4503359AIySZH'];a227_0xa31a=function(){return _0x466d9c;};return a227_0xa31a();}(function(_0x4928f8,_0x459c70){const _0x31005d=a227_0x5f15,_0x1aa4a5=_0x4928f8();while(!![]){try{const _0x52dc19=-parseInt(_0x31005d(0x87))/0x1+parseInt(_0x31005d(0x8e))/0x2*(parseInt(_0x31005d(0x8c))/0x3)+-parseInt(_0x31005d(0x84))/0x4*(-parseInt(_0x31005d(0x86))/0x5)+-parseInt(_0x31005d(0x85))/0x6+parseInt(_0x31005d(0x83))/0x7*(parseInt(_0x31005d(0x88))/0x8)+-parseInt(_0x31005d(0x8b))/0x9*(parseInt(_0x31005d(0x89))/0xa)+-parseInt(_0x31005d(0x8a))/0xb*(-parseInt(_0x31005d(0x8d))/0xc);if(_0x52dc19===_0x459c70)break;else _0x1aa4a5['push'](_0x1aa4a5['shift']());}catch(_0x501702){_0x1aa4a5['push'](_0x1aa4a5['shift']());}}}(a227_0xa31a,0x6df7a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a227_0x5f15(_0x1e66a2,_0x56ce4e){_0x1e66a2=_0x1e66a2-0x83;const _0xa31ad2=a227_0xa31a();let _0x5f154f=_0xa31ad2[_0x1e66a2];return _0x5f154f;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2a039c,_0x36beb3){const _0x3f69f7=a228_0x116b,_0x4aa76b=_0x2a039c();while(!![]){try{const _0x3aebc6=parseInt(_0x3f69f7(0x10c))/0x1+parseInt(_0x3f69f7(0x10d))/0x2+parseInt(_0x3f69f7(0x111))/0x3+-parseInt(_0x3f69f7(0x112))/0x4*(parseInt(_0x3f69f7(0x11b))/0x5)+-parseInt(_0x3f69f7(0x117))/0x6*(parseInt(_0x3f69f7(0x118))/0x7)+parseInt(_0x3f69f7(0x119))/0x8+parseInt(_0x3f69f7(0x114))/0x9*(-parseInt(_0x3f69f7(0x11d))/0xa);if(_0x3aebc6===_0x36beb3)break;else _0x4aa76b['push'](_0x4aa76b['shift']());}catch(_0x3e4687){_0x4aa76b['push'](_0x4aa76b['shift']());}}}(a228_0x2b8a,0x477a3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x14c652=a228_0x116b,_0x248b2d=getTemplateBaseUrl(),_0x4ada0a=[_0x248b2d+_0x14c652(0x113),_0x248b2d+_0x14c652(0x115)];for(const _0x53f16b of _0x4ada0a){try{const _0x46244c=await fetch(_0x53f16b,{'headers':{'Accept':_0x14c652(0x116)}});if(!_0x46244c['ok'])continue;const _0x4b1109=await _0x46244c[_0x14c652(0x11c)]();if(!_0x4b1109['cli']?.[_0x14c652(0x10e)]||!_0x4b1109[_0x14c652(0x11a)]?.[_0x14c652(0x110)]?.['stableVersion'])continue;return _0x4b1109;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a228_0x2b8a(){const _0x5218ff=['stableVersion','now','node','1449057tWYHHa','2121876KnUbpk','/config.json','1926JMwzHu','/config/index.json','application/json','102174lWQYig','14dfKeJd','384224wRGJwG','sdk','5bxBKxG','json','10910PBbZZT','474560Uiuymf','170330fnGbKV'];a228_0x2b8a=function(){return _0x5218ff;};return a228_0x2b8a();}function a228_0x116b(_0x4828f2,_0x312bcd){_0x4828f2=_0x4828f2-0x10c;const _0x2b8a31=a228_0x2b8a();let _0x116bdc=_0x2b8a31[_0x4828f2];return _0x116bdc;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5491c3=a228_0x116b,_0x140eee=Date[_0x5491c3(0x10f)]();if(hasCachedConfig){const _0x3d2fe8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x140eee-cacheTime<_0x3d2fe8)return cachedConfig;}const _0x495c44=await fetchCdnConfig();return cachedConfig=_0x495c44,cacheTime=_0x140eee,hasCachedConfig=!![],_0x495c44;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a228_0x42c3(){const _0xf03b6a=['3zTDxGu','1936828vPjliw','application/json','now','2199445gbVfvc','/config/index.json','node','sdk','/config.json','1861636KkjHWv','6971790zrwidx','8RLVIQW','stableVersion','733747pKjCFV','1996548lifOIp','144KCPAtG','json','cli','670040bbpQzY'];a228_0x42c3=function(){return _0xf03b6a;};return a228_0x42c3();}(function(_0x115350,_0x509ea9){const _0x206ede=a228_0xdaea,_0x481218=_0x115350();while(!![]){try{const _0x5af383=-parseInt(_0x206ede(0x144))/0x1+parseInt(_0x206ede(0x140))/0x2+parseInt(_0x206ede(0x14a))/0x3*(parseInt(_0x206ede(0x14b))/0x4)+-parseInt(_0x206ede(0x13b))/0x5+parseInt(_0x206ede(0x145))/0x6+-parseInt(_0x206ede(0x141))/0x7*(-parseInt(_0x206ede(0x142))/0x8)+parseInt(_0x206ede(0x146))/0x9*(-parseInt(_0x206ede(0x149))/0xa);if(_0x5af383===_0x509ea9)break;else _0x481218['push'](_0x481218['shift']());}catch(_0xd64875){_0x481218['push'](_0x481218['shift']());}}}(a228_0x42c3,0x79985));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2e5acd=a228_0xdaea,_0x4fd676=getTemplateBaseUrl(),_0x19da4a=[_0x4fd676+_0x2e5acd(0x13f),_0x4fd676+_0x2e5acd(0x13c)];for(const _0x19a8c8 of _0x19da4a){try{const _0x5da65f=await fetch(_0x19a8c8,{'headers':{'Accept':_0x2e5acd(0x139)}});if(!_0x5da65f['ok'])continue;const _0x482ff5=await _0x5da65f[_0x2e5acd(0x147)]();if(!_0x482ff5[_0x2e5acd(0x148)]?.[_0x2e5acd(0x143)]||!_0x482ff5[_0x2e5acd(0x13e)]?.[_0x2e5acd(0x13d)]?.[_0x2e5acd(0x143)])continue;return _0x482ff5;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a228_0xdaea(_0x55a63c,_0x566e86){_0x55a63c=_0x55a63c-0x139;const _0x42c364=a228_0x42c3();let _0xdaea37=_0x42c364[_0x55a63c];return _0xdaea37;}export async function getCdnConfig(){const _0xce01f1=a228_0xdaea,_0x73559b=Date[_0xce01f1(0x13a)]();if(hasCachedConfig){const _0x212c0e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x73559b-cacheTime<_0x212c0e)return cachedConfig;}const _0x1f1f03=await fetchCdnConfig();return cachedConfig=_0x1f1f03,cacheTime=_0x73559b,hasCachedConfig=!![],_0x1f1f03;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x98637f,_0x3e6156){const _0x3fa1d8=a229_0xdece,_0x1011f8=_0x98637f();while(!![]){try{const _0x28ee9f=parseInt(_0x3fa1d8(0x127))/0x1+parseInt(_0x3fa1d8(0x121))/0x2*(parseInt(_0x3fa1d8(0x13a))/0x3)+-parseInt(_0x3fa1d8(0x13c))/0x4+parseInt(_0x3fa1d8(0x134))/0x5+parseInt(_0x3fa1d8(0x138))/0x6+-parseInt(_0x3fa1d8(0x131))/0x7+-parseInt(_0x3fa1d8(0x12e))/0x8;if(_0x28ee9f===_0x3e6156)break;else _0x1011f8['push'](_0x1011f8['shift']());}catch(_0x3f8063){_0x1011f8['push'](_0x1011f8['shift']());}}}(a229_0x4b65,0x46885));import a229_0x4f5d28 from'node:fs';import a229_0x4c3fc6 from'node:path';import a229_0x20440d from'semver';function a229_0xdece(_0x208aa2,_0xecb97b){_0x208aa2=_0x208aa2-0x11f;const _0x4b658a=a229_0x4b65();let _0xdece9d=_0x4b658a[_0x208aa2];return _0xdece9d;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x3b4bd8){const _0x47a571=a229_0xdece,_0x3ea8bd=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3ea8bd['some'](_0x391451=>_0x391451[_0x47a571(0x12f)](_0x3b4bd8));}function getInstalledVersion(_0x40ebc7,_0x4aa0db){const _0xae2942=a229_0xdece;try{const _0x4d7a2b=a229_0x4c3fc6[_0xae2942(0x128)](_0x40ebc7,'node_modules',_0x4aa0db,_0xae2942(0x132));if(a229_0x4f5d28[_0xae2942(0x124)](_0x4d7a2b)){const _0x474ba4=JSON[_0xae2942(0x11f)](a229_0x4f5d28[_0xae2942(0x120)](_0x4d7a2b,_0xae2942(0x125)));return _0x474ba4['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x502b1f=a229_0xdece;try{const _0x559998=await getCdnConfig();return _0x559998?.[_0x502b1f(0x13b)]?.[_0x502b1f(0x122)]?.[_0x502b1f(0x12b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x184beb=a229_0xdece;try{const _0x1faf45=await getCdnConfig();return _0x1faf45?.[_0x184beb(0x13b)]?.[_0x184beb(0x122)]?.[_0x184beb(0x139)]||_0x184beb(0x12a);}catch{return _0x184beb(0x12a);}}export async function checkSdkVersion(_0x3143ac){const _0x5355d0=a229_0xdece,_0x4ac816=a229_0x4c3fc6[_0x5355d0(0x128)](_0x3143ac,_0x5355d0(0x132)),[_0x1d7108,_0x644f83]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x5d753c=_0x1d7108||FALLBACK_MIN_SDK_VERSION;if(!a229_0x4f5d28[_0x5355d0(0x124)](_0x4ac816))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d753c,'packageName':_0x644f83,'stableVersion':_0x1d7108};try{const _0x110b74=JSON[_0x5355d0(0x11f)](a229_0x4f5d28[_0x5355d0(0x120)](_0x4ac816,_0x5355d0(0x12d))),_0x1e92d9=_0x110b74[_0x5355d0(0x133)]||{},_0x51ee0c=_0x110b74[_0x5355d0(0x137)]||{},_0x2e06df=_0x1e92d9[_0x644f83]||_0x51ee0c[_0x644f83];if(!_0x2e06df)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d753c,'packageName':_0x644f83,'stableVersion':_0x1d7108};let _0x3c8ac5=getInstalledVersion(_0x3143ac,_0x644f83);!_0x3c8ac5&&(_0x3c8ac5=_0x2e06df);if(isNonNumericVersion(_0x2e06df))return{'installed':!![],'version':_0x3c8ac5,'needsUpgrade':![],'minVersion':_0x5d753c,'packageName':_0x644f83,'stableVersion':_0x1d7108};const _0x3eb7e1=a229_0x20440d['coerce'](_0x3c8ac5),_0xd6a610=a229_0x20440d[_0x5355d0(0x136)](_0x5d753c),_0x4e95cd=_0x3eb7e1&&_0xd6a610?a229_0x20440d['lt'](_0x3eb7e1,_0xd6a610):![];return{'installed':!![],'version':_0x3c8ac5,'needsUpgrade':_0x4e95cd,'minVersion':_0x5d753c,'packageName':_0x644f83,'stableVersion':_0x1d7108};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d753c,'packageName':_0x644f83,'stableVersion':_0x1d7108};}}function a229_0x4b65(){const _0x2210d7=['package.json','dependencies','2039205IqsxrE','\x1b[0m','coerce','devDependencies','3308814hdIJqz','packageName','759702oRuubB','sdk','977932BfNfQf','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','parse','readFileSync','2PAFaul','node','minVersion','existsSync','utf-8','latest','215211KqfMnD','join','log','@lovrabet/sdk','stableVersion','needsUpgrade','utf8','4082368ctuRHm','test','version','2688525KjtmNm'];a229_0x4b65=function(){return _0x2210d7;};return a229_0x4b65();}export function checkSdkVersionSync(_0x1cae05){const _0x4f41ee=a229_0xdece,_0x4fddaf=a229_0x4c3fc6[_0x4f41ee(0x128)](_0x1cae05,'package.json'),_0x567ae0=_0x4f41ee(0x12a);if(!a229_0x4f5d28['existsSync'](_0x4fddaf))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x567ae0,'stableVersion':null};try{const _0x47077b=JSON['parse'](a229_0x4f5d28[_0x4f41ee(0x120)](_0x4fddaf,_0x4f41ee(0x12d))),_0x2b0ba8=_0x47077b['dependencies']||{},_0x26c5e5=_0x47077b[_0x4f41ee(0x137)]||{},_0x77313d=_0x2b0ba8[_0x567ae0]||_0x26c5e5[_0x567ae0];if(!_0x77313d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x567ae0,'stableVersion':null};let _0x4b2b18=getInstalledVersion(_0x1cae05,_0x567ae0);!_0x4b2b18&&(_0x4b2b18=_0x77313d);if(isNonNumericVersion(_0x77313d))return{'installed':!![],'version':_0x4b2b18,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x567ae0,'stableVersion':null};const _0x12f9da=a229_0x20440d[_0x4f41ee(0x136)](_0x4b2b18),_0x49d21a=_0x12f9da?a229_0x20440d['lt'](_0x12f9da,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4b2b18,'needsUpgrade':_0x49d21a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x567ae0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x567ae0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xf0c1f1){const _0x434d59=a229_0xdece;if(!_0xf0c1f1[_0x434d59(0x12c)])return;const _0x3b303b='\x1b[33m',_0x57c287=_0x434d59(0x135),_0x4ad54f='\x1b[1m',_0x43fdd4=_0xf0c1f1[_0x434d59(0x139)]||_0x434d59(0x12a),_0x87d72=_0xf0c1f1[_0x434d59(0x12b)]||_0xf0c1f1[_0x434d59(0x123)],_0x39d05f='npm\x20install\x20'+_0x43fdd4+'@'+(_0x87d72||_0x434d59(0x126));console[_0x434d59(0x129)](),console['log'](''+_0x3b303b+_0x4ad54f+_0x434d59(0x13d)+_0x57c287),console['log'](_0x3b303b+'\x20\x20\x20Current\x20version:\x20'+_0x43fdd4+'@'+_0xf0c1f1[_0x434d59(0x130)]+_0x57c287),console[_0x434d59(0x129)](_0x3b303b+_0x434d59(0x13e)+_0x87d72+_0x57c287),console[_0x434d59(0x129)](_0x3b303b+'\x20\x20\x20Upgrade\x20command:\x20'+_0x39d05f+_0x57c287),console[_0x434d59(0x129)]();}
1
+ (function(_0x29569f,_0x42ed9e){const _0xb9728a=a229_0x5d43,_0x5ef3d9=_0x29569f();while(!![]){try{const _0x46ce2a=-parseInt(_0xb9728a(0xe9))/0x1+parseInt(_0xb9728a(0xf1))/0x2+parseInt(_0xb9728a(0xe3))/0x3+-parseInt(_0xb9728a(0xec))/0x4+parseInt(_0xb9728a(0xe2))/0x5*(-parseInt(_0xb9728a(0xe0))/0x6)+-parseInt(_0xb9728a(0xeb))/0x7*(parseInt(_0xb9728a(0xf5))/0x8)+parseInt(_0xb9728a(0xfb))/0x9;if(_0x46ce2a===_0x42ed9e)break;else _0x5ef3d9['push'](_0x5ef3d9['shift']());}catch(_0x2cd868){_0x5ef3d9['push'](_0x5ef3d9['shift']());}}}(a229_0x12da,0xbf90e));import a229_0xdf5e5e from'node:fs';import a229_0x1668d5 from'node:path';import a229_0x11fa6d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x47f15c){const _0xd9957d=a229_0x5d43,_0xd522da=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xd522da[_0xd9957d(0xff)](_0x1b22ed=>_0x1b22ed['test'](_0x47f15c));}function a229_0x5d43(_0x5661a8,_0x19de9b){_0x5661a8=_0x5661a8-0xdd;const _0x12daaa=a229_0x12da();let _0x5d437b=_0x12daaa[_0x5661a8];return _0x5d437b;}function getInstalledVersion(_0x5597c6,_0x47c751){const _0x5df1fa=a229_0x5d43;try{const _0x55221c=a229_0x1668d5[_0x5df1fa(0xe1)](_0x5597c6,_0x5df1fa(0xdf),_0x47c751,_0x5df1fa(0xfc));if(a229_0xdf5e5e[_0x5df1fa(0xe5)](_0x55221c)){const _0x18e5cc=JSON['parse'](a229_0xdf5e5e['readFileSync'](_0x55221c,_0x5df1fa(0xde)));return _0x18e5cc[_0x5df1fa(0x101)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x21b4d4=a229_0x5d43;try{const _0x33cc34=await getCdnConfig();return _0x33cc34?.[_0x21b4d4(0x102)]?.[_0x21b4d4(0xe6)]?.[_0x21b4d4(0xf4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x28c261=a229_0x5d43;try{const _0xe4bed0=await getCdnConfig();return _0xe4bed0?.[_0x28c261(0x102)]?.[_0x28c261(0xe6)]?.[_0x28c261(0xea)]||_0x28c261(0x103);}catch{return _0x28c261(0x103);}}export async function checkSdkVersion(_0x3e42a5){const _0x4177bc=a229_0x5d43,_0x574dc6=a229_0x1668d5[_0x4177bc(0xe1)](_0x3e42a5,'package.json'),[_0x27e8f4,_0x5441c2]=await Promise[_0x4177bc(0xfd)]([getSdkStableVersion(),getSdkPackageName()]),_0x496e53=_0x27e8f4||FALLBACK_MIN_SDK_VERSION;if(!a229_0xdf5e5e[_0x4177bc(0xe5)](_0x574dc6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};try{const _0x1530b1=JSON[_0x4177bc(0xee)](a229_0xdf5e5e[_0x4177bc(0xf3)](_0x574dc6,_0x4177bc(0xfa))),_0x2c25c1=_0x1530b1['dependencies']||{},_0x2319dc=_0x1530b1['devDependencies']||{},_0x4965a3=_0x2c25c1[_0x5441c2]||_0x2319dc[_0x5441c2];if(!_0x4965a3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};let _0x169f8c=getInstalledVersion(_0x3e42a5,_0x5441c2);!_0x169f8c&&(_0x169f8c=_0x4965a3);if(isNonNumericVersion(_0x4965a3))return{'installed':!![],'version':_0x169f8c,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};const _0x5ca9a5=a229_0x11fa6d[_0x4177bc(0xdd)](_0x169f8c),_0x269b67=a229_0x11fa6d[_0x4177bc(0xdd)](_0x496e53),_0x33be79=_0x5ca9a5&&_0x269b67?a229_0x11fa6d['lt'](_0x5ca9a5,_0x269b67):![];return{'installed':!![],'version':_0x169f8c,'needsUpgrade':_0x33be79,'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};}}export function checkSdkVersionSync(_0x2d1f78){const _0x146500=a229_0x5d43,_0x1e14d2=a229_0x1668d5[_0x146500(0xe1)](_0x2d1f78,_0x146500(0xfc)),_0x1ec4fc='@lovrabet/sdk';if(!a229_0xdf5e5e[_0x146500(0xe5)](_0x1e14d2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};try{const _0x393bf2=JSON[_0x146500(0xee)](a229_0xdf5e5e[_0x146500(0xf3)](_0x1e14d2,_0x146500(0xfa))),_0x452107=_0x393bf2[_0x146500(0xe7)]||{},_0x23c47d=_0x393bf2['devDependencies']||{},_0x4ac560=_0x452107[_0x1ec4fc]||_0x23c47d[_0x1ec4fc];if(!_0x4ac560)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};let _0x3f2c07=getInstalledVersion(_0x2d1f78,_0x1ec4fc);!_0x3f2c07&&(_0x3f2c07=_0x4ac560);if(isNonNumericVersion(_0x4ac560))return{'installed':!![],'version':_0x3f2c07,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};const _0x459caa=a229_0x11fa6d[_0x146500(0xdd)](_0x3f2c07),_0x1fb5d0=_0x459caa?a229_0x11fa6d['lt'](_0x459caa,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3f2c07,'needsUpgrade':_0x1fb5d0,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};}}function a229_0x12da(){const _0x456156=['utf-8','node_modules','1756110hgAxiX','join','10ItUmgS','1052706YsRUDi','latest','existsSync','node','dependencies','npm\x20install\x20','1129178sGnarM','packageName','5404eOorTf','3186740PPfbIc','\x1b[1m','parse','\x1b[0m','needsUpgrade','2317560cgsGlv','\x20\x20\x20Stable\x20version:\x20','readFileSync','stableVersion','4016JNHrVL','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','minVersion','↪\x20SDK\x20update\x20available','utf8','19563741thvDCv','package.json','all','log','some','\x20\x20\x20Current\x20version:\x20','version','sdk','@lovrabet/sdk','coerce'];a229_0x12da=function(){return _0x456156;};return a229_0x12da();}export function printSdkUpgradeWarning(_0x464bb5){const _0x961bc4=a229_0x5d43;if(!_0x464bb5[_0x961bc4(0xf0)])return;const _0x137e66=_0x961bc4(0xf7),_0x5712cf=_0x961bc4(0xef),_0x4f5c5d=_0x961bc4(0xed),_0x20b2ec=_0x464bb5[_0x961bc4(0xea)]||'@lovrabet/sdk',_0x49b5fd=_0x464bb5[_0x961bc4(0xf4)]||_0x464bb5[_0x961bc4(0xf8)],_0x327b29=_0x961bc4(0xe8)+_0x20b2ec+'@'+(_0x49b5fd||_0x961bc4(0xe4));console['log'](),console[_0x961bc4(0xfe)](''+_0x137e66+_0x4f5c5d+_0x961bc4(0xf9)+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0x100)+_0x20b2ec+'@'+_0x464bb5[_0x961bc4(0x101)]+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0xf2)+_0x49b5fd+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0xf6)+_0x327b29+_0x5712cf),console[_0x961bc4(0xfe)]();}
@@ -1 +1 @@
1
- (function(_0x365515,_0xc5355){const _0xa545e1=a230_0x4db9,_0xeea6bf=_0x365515();while(!![]){try{const _0x1608a2=parseInt(_0xa545e1(0x7a))/0x1+parseInt(_0xa545e1(0x7b))/0x2*(-parseInt(_0xa545e1(0x65))/0x3)+-parseInt(_0xa545e1(0x8a))/0x4+-parseInt(_0xa545e1(0x6a))/0x5+-parseInt(_0xa545e1(0x84))/0x6+-parseInt(_0xa545e1(0x82))/0x7+-parseInt(_0xa545e1(0x6b))/0x8*(-parseInt(_0xa545e1(0x86))/0x9);if(_0x1608a2===_0xc5355)break;else _0xeea6bf['push'](_0xeea6bf['shift']());}catch(_0x263b74){_0xeea6bf['push'](_0xeea6bf['shift']());}}}(a230_0x32fd,0xd69ff));function a230_0x32fd(){const _0x2f8aae=['package.json','utf-8','stableVersion','\x1b[33m','latest','8883693NZUWFi','\x1b[31m','3126618axGCnx','minimumVersionMessage','9musQlc','currentVersion','\x20\x20\x20','log','5225012ugBwjs','\x20\x20\x20Upgrade\x20command:\x20','3cSsGoh','1.0.0','belowMinimum','parse','↪\x20Critical\x20CLI\x20upgrade\x20required','328095WEWUuA','25301312eSwZQu','Minimum\x20supported:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','validation','npm\x20install\x20-g\x20','join','\x20\x20\x20Recommended\x20stable:\x20','\x1b[0m','↪\x20New\x20version\x20available','Current\x20version:\x20','upgradeMessage','\x20\x20\x20Minimum\x20supported:\x20','coerce','minimumVersion','version','1395714OXqcJS','1034402KJjkyN','../..'];a230_0x32fd=function(){return _0x2f8aae;};return a230_0x32fd();}import{readFileSync}from'node:fs';function a230_0x4db9(_0x50496e,_0xa72cae){_0x50496e=_0x50496e-0x64;const _0x32fdf7=a230_0x32fd();let _0x4db9d0=_0x32fdf7[_0x50496e];return _0x4db9d0;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a230_0x5c00e0 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(_0x3d06c8){const _0x135b5c=a230_0x4db9,_0x55da56=_0x3d06c8[_0x135b5c(0x7f)]||_0x135b5c(0x81);return _0x135b5c(0x6f)+NPM_PACKAGE_NAME+'@'+_0x55da56;}function getCurrentCliVersion(){const _0x13cd98=a230_0x4db9;try{const _0x33f5d1=fileURLToPath(import.meta.url),_0x327155=resolve(dirname(_0x33f5d1),_0x13cd98(0x7c)),_0x4cfae9=resolve(_0x327155,_0x13cd98(0x7d)),_0x545fd5=JSON[_0x13cd98(0x68)](readFileSync(_0x4cfae9,_0x13cd98(0x7e)));return _0x545fd5[_0x13cd98(0x79)]||'1.0.0';}catch{return _0x13cd98(0x66);}}export async function checkCliVersion(){const _0x307b6c=a230_0x4db9,_0x5e2105=getCurrentCliVersion(),_0x405a85=await getCliVersionPolicy(),_0x4f23bd=_0x405a85?.['stableVersion']||null,_0x20d20f=_0x405a85?.[_0x307b6c(0x78)]||null;let _0x56f63e=![],_0x13fecc=![];const _0x383b49=a230_0x5c00e0['coerce'](_0x5e2105);if(_0x383b49&&_0x4f23bd)try{const _0x50bc16=a230_0x5c00e0[_0x307b6c(0x77)](_0x4f23bd);if(_0x50bc16)_0x56f63e=a230_0x5c00e0['lt'](_0x383b49,_0x50bc16);}catch{}if(_0x383b49&&_0x20d20f)try{const _0x49daba=a230_0x5c00e0[_0x307b6c(0x77)](_0x20d20f);if(_0x49daba)_0x13fecc=a230_0x5c00e0['lt'](_0x383b49,_0x49daba);}catch{}return _0x13fecc&&(_0x56f63e=!![]),{'currentVersion':_0x5e2105,'stableVersion':_0x4f23bd,'minimumVersion':_0x20d20f,'needsUpgrade':_0x56f63e,'belowMinimum':_0x13fecc,'isPreRelease':![],'upgradeMessage':_0x405a85?.['upgradeMessage'],'minimumVersionMessage':_0x405a85?.[_0x307b6c(0x85)]};}export function printCliUpgradeWarning(_0x4a0009){const _0x283e72=a230_0x4db9;if(!_0x4a0009['needsUpgrade']&&!_0x4a0009[_0x283e72(0x67)])return;const _0x14a5aa=_0x283e72(0x83),_0x1c612d=_0x283e72(0x80),_0x4df6e9=_0x283e72(0x72),_0x406e86='\x1b[1m',_0x3a0ca8=getCliUpgradeCommand(_0x4a0009);console[_0x283e72(0x89)](),_0x4a0009[_0x283e72(0x67)]?(console[_0x283e72(0x89)](''+_0x14a5aa+_0x406e86+_0x283e72(0x69)+_0x4df6e9),console[_0x283e72(0x89)](_0x14a5aa+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4a0009[_0x283e72(0x87)]+_0x4df6e9),_0x4a0009['minimumVersion']&&console['log'](_0x14a5aa+_0x283e72(0x76)+_0x4a0009[_0x283e72(0x78)]+_0x4df6e9),_0x4a0009['stableVersion']&&_0x4a0009[_0x283e72(0x7f)]!==_0x4a0009[_0x283e72(0x78)]&&console[_0x283e72(0x89)](_0x14a5aa+_0x283e72(0x71)+_0x4a0009[_0x283e72(0x7f)]+_0x4df6e9),_0x4a0009['minimumVersionMessage']&&console[_0x283e72(0x89)](_0x14a5aa+'\x20\x20\x20'+_0x4a0009['minimumVersionMessage']+_0x4df6e9),console[_0x283e72(0x89)](_0x14a5aa+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3a0ca8+_0x4df6e9)):(console[_0x283e72(0x89)](''+_0x1c612d+_0x406e86+_0x283e72(0x73)+_0x4df6e9),console[_0x283e72(0x89)](_0x1c612d+_0x283e72(0x6d)+_0x4a0009[_0x283e72(0x87)]+_0x4df6e9),console[_0x283e72(0x89)](_0x1c612d+'\x20\x20\x20Stable\x20version:\x20'+_0x4a0009[_0x283e72(0x7f)]+_0x4df6e9),_0x4a0009[_0x283e72(0x75)]&&console[_0x283e72(0x89)](_0x1c612d+_0x283e72(0x88)+_0x4a0009[_0x283e72(0x75)]+_0x4df6e9),console[_0x283e72(0x89)](_0x1c612d+_0x283e72(0x64)+_0x3a0ca8+_0x4df6e9)),console[_0x283e72(0x89)]();}export function assertCliVersionSupported(_0x2813f6){const _0x57fc2b=a230_0x4db9;if(!_0x2813f6[_0x57fc2b(0x67)])return;const _0x309e72=[_0x2813f6[_0x57fc2b(0x85)],_0x57fc2b(0x74)+_0x2813f6[_0x57fc2b(0x87)],_0x2813f6[_0x57fc2b(0x78)]?_0x57fc2b(0x6c)+_0x2813f6[_0x57fc2b(0x78)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x2813f6)]['filter'](Boolean)[_0x57fc2b(0x70)]('\x0a');throw CliErrors[_0x57fc2b(0x6e)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x309e72);}
1
+ function a230_0x4be4(){const _0x2de996=['stableVersion','19077SLpWym','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','\x20\x20\x20Minimum\x20supported:\x20','\x1b[31m','parse','validation','1976508uKmXIL','upgradeMessage','↪\x20New\x20version\x20available','../..','1.0.0','log','version','coerce','utf-8','152GvxYif','42745FsIdaa','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20supported:\x20','Upgrade\x20command:\x20','12827691aeYddJ','\x1b[1m','4492UxXpzi','join','currentVersion','minimumVersionMessage','filter','\x20\x20\x20Stable\x20version:\x20','10ZebRBB','\x20\x20\x20Upgrade\x20command:\x20','belowMinimum','package.json','\x20\x20\x20','1946160kdsTOr','\x1b[33m','minimumVersion','1720432uPzrku','1285kqkRDI'];a230_0x4be4=function(){return _0x2de996;};return a230_0x4be4();}(function(_0x3e6305,_0x5befc4){const _0x87f883=a230_0x5e59,_0x580a7a=_0x3e6305();while(!![]){try{const _0x535a77=-parseInt(_0x87f883(0x1b8))/0x1+parseInt(_0x87f883(0x1b7))/0x2*(-parseInt(_0x87f883(0x1cf))/0x3)+-parseInt(_0x87f883(0x1be))/0x4*(parseInt(_0x87f883(0x1cd))/0x5)+-parseInt(_0x87f883(0x1d6))/0x6+parseInt(_0x87f883(0x1cc))/0x7+-parseInt(_0x87f883(0x1c9))/0x8+parseInt(_0x87f883(0x1bc))/0x9*(parseInt(_0x87f883(0x1c4))/0xa);if(_0x535a77===_0x5befc4)break;else _0x580a7a['push'](_0x580a7a['shift']());}catch(_0x129e44){_0x580a7a['push'](_0x580a7a['shift']());}}}(a230_0x4be4,0x45463));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a230_0x204c33 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(_0x421157){const _0x230b59=a230_0x5e59,_0x1307cc=_0x421157[_0x230b59(0x1ce)]||'latest';return _0x230b59(0x1d1)+NPM_PACKAGE_NAME+'@'+_0x1307cc;}function getCurrentCliVersion(){const _0x70356e=a230_0x5e59;try{const _0x41944=fileURLToPath(import.meta.url),_0x7551c2=resolve(dirname(_0x41944),_0x70356e(0x1d9)),_0x40d216=resolve(_0x7551c2,_0x70356e(0x1c7)),_0xf82d5e=JSON[_0x70356e(0x1d4)](readFileSync(_0x40d216,_0x70356e(0x1b6)));return _0xf82d5e[_0x70356e(0x1dc)]||_0x70356e(0x1da);}catch{return _0x70356e(0x1da);}}export async function checkCliVersion(){const _0x139bac=a230_0x5e59,_0x4c7a5f=getCurrentCliVersion(),_0x7713ce=await getCliVersionPolicy(),_0x57de12=_0x7713ce?.[_0x139bac(0x1ce)]||null,_0x383f31=_0x7713ce?.['minimumVersion']||null;let _0x31eb31=![],_0x324be7=![];const _0x240315=a230_0x204c33['coerce'](_0x4c7a5f);if(_0x240315&&_0x57de12)try{const _0x18f25c=a230_0x204c33[_0x139bac(0x1dd)](_0x57de12);if(_0x18f25c)_0x31eb31=a230_0x204c33['lt'](_0x240315,_0x18f25c);}catch{}if(_0x240315&&_0x383f31)try{const _0x5e41c7=a230_0x204c33[_0x139bac(0x1dd)](_0x383f31);if(_0x5e41c7)_0x324be7=a230_0x204c33['lt'](_0x240315,_0x5e41c7);}catch{}return _0x324be7&&(_0x31eb31=!![]),{'currentVersion':_0x4c7a5f,'stableVersion':_0x57de12,'minimumVersion':_0x383f31,'needsUpgrade':_0x31eb31,'belowMinimum':_0x324be7,'isPreRelease':![],'upgradeMessage':_0x7713ce?.[_0x139bac(0x1d7)],'minimumVersionMessage':_0x7713ce?.[_0x139bac(0x1c1)]};}export function printCliUpgradeWarning(_0x5c2912){const _0x3e0a2c=a230_0x5e59;if(!_0x5c2912['needsUpgrade']&&!_0x5c2912[_0x3e0a2c(0x1c6)])return;const _0x6f0211=_0x3e0a2c(0x1d3),_0x1872c2=_0x3e0a2c(0x1ca),_0x42a364='\x1b[0m',_0x27f5b2=_0x3e0a2c(0x1bd),_0x1ce091=getCliUpgradeCommand(_0x5c2912);console[_0x3e0a2c(0x1db)](),_0x5c2912[_0x3e0a2c(0x1c6)]?(console[_0x3e0a2c(0x1db)](''+_0x6f0211+_0x27f5b2+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x42a364),console[_0x3e0a2c(0x1db)](_0x6f0211+_0x3e0a2c(0x1b9)+_0x5c2912[_0x3e0a2c(0x1c0)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1cb)]&&console[_0x3e0a2c(0x1db)](_0x6f0211+_0x3e0a2c(0x1d2)+_0x5c2912['minimumVersion']+_0x42a364),_0x5c2912['stableVersion']&&_0x5c2912['stableVersion']!==_0x5c2912[_0x3e0a2c(0x1cb)]&&console['log'](_0x6f0211+_0x3e0a2c(0x1d0)+_0x5c2912[_0x3e0a2c(0x1ce)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1c1)]&&console[_0x3e0a2c(0x1db)](_0x6f0211+'\x20\x20\x20'+_0x5c2912[_0x3e0a2c(0x1c1)]+_0x42a364),console['log'](_0x6f0211+_0x3e0a2c(0x1c5)+_0x1ce091+_0x42a364)):(console[_0x3e0a2c(0x1db)](''+_0x1872c2+_0x27f5b2+_0x3e0a2c(0x1d8)+_0x42a364),console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1b9)+_0x5c2912[_0x3e0a2c(0x1c0)]+_0x42a364),console['log'](_0x1872c2+_0x3e0a2c(0x1c3)+_0x5c2912[_0x3e0a2c(0x1ce)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1d7)]&&console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1c8)+_0x5c2912['upgradeMessage']+_0x42a364),console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1c5)+_0x1ce091+_0x42a364)),console['log']();}function a230_0x5e59(_0x1c0b42,_0x1d8a8c){_0x1c0b42=_0x1c0b42-0x1b6;const _0x4be458=a230_0x4be4();let _0x5e5984=_0x4be458[_0x1c0b42];return _0x5e5984;}export function assertCliVersionSupported(_0x12df76){const _0x4a07bc=a230_0x5e59;if(!_0x12df76[_0x4a07bc(0x1c6)])return;const _0x4b88a9=[_0x12df76[_0x4a07bc(0x1c1)],'Current\x20version:\x20'+_0x12df76['currentVersion'],_0x12df76[_0x4a07bc(0x1cb)]?_0x4a07bc(0x1ba)+_0x12df76['minimumVersion']:null,_0x4a07bc(0x1bb)+getCliUpgradeCommand(_0x12df76)][_0x4a07bc(0x1c2)](Boolean)[_0x4a07bc(0x1bf)]('\x0a');throw CliErrors[_0x4a07bc(0x1d5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x4b88a9);}
@@ -1 +1 @@
1
- function a231_0x5b0d(_0x203055,_0x1a3ee4){_0x203055=_0x203055-0x1c4;const _0x2dce5d=a231_0x2dce();let _0x5b0dbe=_0x2dce5d[_0x203055];return _0x5b0dbe;}(function(_0x39c681,_0x3f0590){const _0x264b5e=a231_0x5b0d,_0x4395d3=_0x39c681();while(!![]){try{const _0x47db30=parseInt(_0x264b5e(0x1cb))/0x1*(parseInt(_0x264b5e(0x1ce))/0x2)+-parseInt(_0x264b5e(0x1d5))/0x3*(parseInt(_0x264b5e(0x1d2))/0x4)+parseInt(_0x264b5e(0x1cd))/0x5+-parseInt(_0x264b5e(0x1c6))/0x6*(parseInt(_0x264b5e(0x1c8))/0x7)+parseInt(_0x264b5e(0x1cc))/0x8*(-parseInt(_0x264b5e(0x1ca))/0x9)+parseInt(_0x264b5e(0x1d1))/0xa+-parseInt(_0x264b5e(0x1c9))/0xb;if(_0x47db30===_0x3f0590)break;else _0x4395d3['push'](_0x4395d3['shift']());}catch(_0x4b1b13){_0x4395d3['push'](_0x4395d3['shift']());}}}(a231_0x2dce,0x805bd));function a231_0x2dce(){const _0x18f7aa=['7758136qhwtFL','5053175TdxHnp','1560220shHCnc','stableVersion','minimumVersion','6742360ILYzvU','464IVXXSu','recommendedVersion','cli','654PnUSrt','object','minimumVersionMessage','signal','application/json','1358892KPJwqI','upgradeMessage','7nfvhKh','7894557vcwLgl','9sCFlxG','1FyEWqT'];a231_0x2dce=function(){return _0x18f7aa;};return a231_0x2dce();}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(_0x3c2939){return typeof _0x3c2939==='string'&&_0x3c2939['trim']()['length']>0x0?_0x3c2939['trim']():null;}function normalizeCliVersionPolicy(_0x142da1){const _0x3a4e8b=a231_0x5b0d;if(!_0x142da1||typeof _0x142da1!==_0x3a4e8b(0x1d6))return null;const _0x453ab3=_0x142da1,_0x389337=_0x453ab3[_0x3a4e8b(0x1d4)]&&typeof _0x453ab3['cli']==='object'?_0x453ab3[_0x3a4e8b(0x1d4)]:_0x453ab3,_0x98d8a7=pickString(_0x389337[_0x3a4e8b(0x1cf)])||pickString(_0x389337['latestVersion'])||pickString(_0x389337[_0x3a4e8b(0x1d3)]),_0x20938d=pickString(_0x389337[_0x3a4e8b(0x1d0)])||pickString(_0x389337['minVersion']);if(!_0x98d8a7&&!_0x20938d)return null;return{'stableVersion':_0x98d8a7,'minimumVersion':_0x20938d,'upgradeMessage':pickString(_0x389337[_0x3a4e8b(0x1c7)])||undefined,'minimumVersionMessage':pickString(_0x389337[_0x3a4e8b(0x1d7)])||undefined};}export async function fetchCliVersionPolicy(){const _0x12ca02=a231_0x5b0d,_0x3b3343=new AbortController(),_0x41c15d=setTimeout(()=>_0x3b3343['abort'](),FETCH_TIMEOUT_MS);try{const _0x190d61=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x12ca02(0x1c5)},'signal':_0x3b3343[_0x12ca02(0x1c4)]});if(!_0x190d61['ok'])return null;const _0x15d6df=await _0x190d61['json']();return normalizeCliVersionPolicy(_0x15d6df);}catch{return null;}finally{clearTimeout(_0x41c15d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x16d725=Date['now']();if(hasCachedPolicy){const _0x5dd3fb=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x16d725-cacheTime<_0x5dd3fb)return cachedPolicy;}const _0x1436ea=await fetchCliVersionPolicy();return cachedPolicy=_0x1436ea,cacheTime=_0x16d725,hasCachedPolicy=!![],_0x1436ea;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x54d331,_0x3d643e){const _0x5d1240=a231_0xe521,_0x691ce9=_0x54d331();while(!![]){try{const _0x27adfe=-parseInt(_0x5d1240(0x151))/0x1+-parseInt(_0x5d1240(0x157))/0x2*(-parseInt(_0x5d1240(0x15a))/0x3)+-parseInt(_0x5d1240(0x14f))/0x4*(parseInt(_0x5d1240(0x153))/0x5)+parseInt(_0x5d1240(0x14e))/0x6+parseInt(_0x5d1240(0x15c))/0x7+parseInt(_0x5d1240(0x14c))/0x8+-parseInt(_0x5d1240(0x152))/0x9;if(_0x27adfe===_0x3d643e)break;else _0x691ce9['push'](_0x691ce9['shift']());}catch(_0x25e322){_0x691ce9['push'](_0x691ce9['shift']());}}}(a231_0x6b5b,0xa2b01));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a231_0xe521(_0x327694,_0x56e87b){_0x327694=_0x327694-0x14c;const _0x6b5be7=a231_0x6b5b();let _0xe5215=_0x6b5be7[_0x327694];return _0xe5215;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4ac0a7){const _0x16dfc8=a231_0xe521;return typeof _0x4ac0a7===_0x16dfc8(0x150)&&_0x4ac0a7['trim']()[_0x16dfc8(0x159)]>0x0?_0x4ac0a7[_0x16dfc8(0x156)]():null;}function normalizeCliVersionPolicy(_0x3aa8d1){const _0x40f725=a231_0xe521;if(!_0x3aa8d1||typeof _0x3aa8d1!=='object')return null;const _0x49e00b=_0x3aa8d1,_0x1334c3=_0x49e00b['cli']&&typeof _0x49e00b[_0x40f725(0x15e)]==='object'?_0x49e00b['cli']:_0x49e00b,_0x52f48c=pickString(_0x1334c3[_0x40f725(0x15d)])||pickString(_0x1334c3[_0x40f725(0x14d)])||pickString(_0x1334c3['recommendedVersion']),_0x27f652=pickString(_0x1334c3['minimumVersion'])||pickString(_0x1334c3[_0x40f725(0x154)]);if(!_0x52f48c&&!_0x27f652)return null;return{'stableVersion':_0x52f48c,'minimumVersion':_0x27f652,'upgradeMessage':pickString(_0x1334c3[_0x40f725(0x158)])||undefined,'minimumVersionMessage':pickString(_0x1334c3['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x1b1efb=a231_0xe521,_0x16c521=new AbortController(),_0x1cd436=setTimeout(()=>_0x16c521[_0x1b1efb(0x155)](),FETCH_TIMEOUT_MS);try{const _0x47ca69=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x16c521[_0x1b1efb(0x15b)]});if(!_0x47ca69['ok'])return null;const _0xb4099c=await _0x47ca69['json']();return normalizeCliVersionPolicy(_0xb4099c);}catch{return null;}finally{clearTimeout(_0x1cd436);}}function a231_0x6b5b(){const _0x60889f=['upgradeMessage','length','910419CpMGEH','signal','4456977QXvCks','stableVersion','cli','now','4160984uRXxIV','latestVersion','3464802KRrblH','330492SkMATL','string','1049471VJXATu','1910628bbpRHY','25lSAdTp','minVersion','abort','trim','4BoPkra'];a231_0x6b5b=function(){return _0x60889f;};return a231_0x6b5b();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2f0aff=a231_0xe521,_0x2bec10=Date[_0x2f0aff(0x15f)]();if(hasCachedPolicy){const _0xaef133=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2bec10-cacheTime<_0xaef133)return cachedPolicy;}const _0x50ad4e=await fetchCliVersionPolicy();return cachedPolicy=_0x50ad4e,cacheTime=_0x2bec10,hasCachedPolicy=!![],_0x50ad4e;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a232_0x29f466=a232_0x4ff1;(function(_0x21d230,_0x5d5fa0){const _0x518f10=a232_0x4ff1,_0x2c2c6e=_0x21d230();while(!![]){try{const _0x21e62e=-parseInt(_0x518f10(0x179))/0x1*(parseInt(_0x518f10(0x175))/0x2)+parseInt(_0x518f10(0x177))/0x3+-parseInt(_0x518f10(0x17d))/0x4+parseInt(_0x518f10(0x17c))/0x5*(parseInt(_0x518f10(0x17e))/0x6)+parseInt(_0x518f10(0x17a))/0x7+parseInt(_0x518f10(0x174))/0x8*(-parseInt(_0x518f10(0x173))/0x9)+parseInt(_0x518f10(0x172))/0xa*(parseInt(_0x518f10(0x17f))/0xb);if(_0x21e62e===_0x5d5fa0)break;else _0x2c2c6e['push'](_0x2c2c6e['shift']());}catch(_0x1e666c){_0x2c2c6e['push'](_0x2c2c6e['shift']());}}}(a232_0x2b03,0xe2433));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x39def6,getMultiAppConfigs as a232_0x1fd30e,getTemplateBaseUrl as a232_0x4ed2bd}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1c2bcf){const _0x35627a=a232_0x4ff1,_0x79bce1=readRawConfig(_0x1c2bcf);return _0x79bce1[_0x35627a(0x176)]&&typeof _0x79bce1[_0x35627a(0x176)]===_0x35627a(0x17b)&&initEnv(_0x79bce1[_0x35627a(0x176)]),_0x79bce1;}export function getConfigAppCode(){return a232_0x39def6();}function a232_0x2b03(){const _0x69042c=['869hlaDdj','80930jClKWT','126yEQYrk','1014712bbjeBm','615342dqpVWG','env','219xjsKBN','project','1Ftgnef','11292176HpnlUQ','string','3080225KuBKsq','4362140PPCEnF','18ypkckw'];a232_0x2b03=function(){return _0x69042c;};return a232_0x2b03();}export function getMultiAppConfigs(_0x3a4df3=a232_0x29f466(0x178)){return a232_0x1fd30e(_0x3a4df3);}function a232_0x4ff1(_0x331ec7,_0x339b66){_0x331ec7=_0x331ec7-0x172;const _0x2b039a=a232_0x2b03();let _0x4ff1cf=_0x2b039a[_0x331ec7];return _0x4ff1cf;}export function getTemplateBaseUrl(){return a232_0x4ed2bd();}
1
+ const a232_0x71a28d=a232_0x1e5a;(function(_0x10c1d6,_0x28a7dd){const _0x2fdee4=a232_0x1e5a,_0x3ca33b=_0x10c1d6();while(!![]){try{const _0x4f498a=-parseInt(_0x2fdee4(0x1e1))/0x1*(parseInt(_0x2fdee4(0x1e3))/0x2)+-parseInt(_0x2fdee4(0x1da))/0x3*(parseInt(_0x2fdee4(0x1dc))/0x4)+parseInt(_0x2fdee4(0x1d7))/0x5*(parseInt(_0x2fdee4(0x1e0))/0x6)+parseInt(_0x2fdee4(0x1e2))/0x7*(parseInt(_0x2fdee4(0x1db))/0x8)+-parseInt(_0x2fdee4(0x1d8))/0x9+parseInt(_0x2fdee4(0x1dd))/0xa+-parseInt(_0x2fdee4(0x1d9))/0xb;if(_0x4f498a===_0x28a7dd)break;else _0x3ca33b['push'](_0x3ca33b['shift']());}catch(_0x53b026){_0x3ca33b['push'](_0x3ca33b['shift']());}}}(a232_0xa537,0x90b3b));function a232_0x1e5a(_0x39ddb0,_0x30500f){_0x39ddb0=_0x39ddb0-0x1d6;const _0xa5375=a232_0xa537();let _0x1e5a28=_0xa5375[_0x39ddb0];return _0x1e5a28;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x39f5e0,getMultiAppConfigs as a232_0x53ad19,getTemplateBaseUrl as a232_0x1a0d0d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5dec7c){const _0x1fd748=a232_0x1e5a,_0x3f6614=readRawConfig(_0x5dec7c);return _0x3f6614[_0x1fd748(0x1df)]&&typeof _0x3f6614[_0x1fd748(0x1df)]===_0x1fd748(0x1d6)&&initEnv(_0x3f6614[_0x1fd748(0x1df)]),_0x3f6614;}export function getConfigAppCode(){return a232_0x39f5e0();}function a232_0xa537(){const _0x16be3f=['823535INzVsK','3736845mjbAnF','11500665nPyNYk','12vRHPdg','1177736lhMspc','172904PVgoxK','5260100SHSFGj','project','env','42wvKnnu','5bqxPfC','49WZdojU','193262WVeOJZ','string'];a232_0xa537=function(){return _0x16be3f;};return a232_0xa537();}export function getMultiAppConfigs(_0x45dce3=a232_0x71a28d(0x1de)){return a232_0x53ad19(_0x45dce3);}export function getTemplateBaseUrl(){return a232_0x1a0d0d();}
@@ -1 +1 @@
1
- (function(_0x27db0c,_0x5a991b){const _0x48ab3e=a233_0x53f0,_0x24c603=_0x27db0c();while(!![]){try{const _0x161083=parseInt(_0x48ab3e(0x183))/0x1+parseInt(_0x48ab3e(0x18c))/0x2+parseInt(_0x48ab3e(0x190))/0x3*(parseInt(_0x48ab3e(0x18b))/0x4)+parseInt(_0x48ab3e(0x189))/0x5+parseInt(_0x48ab3e(0x188))/0x6*(parseInt(_0x48ab3e(0x184))/0x7)+-parseInt(_0x48ab3e(0x18f))/0x8*(-parseInt(_0x48ab3e(0x187))/0x9)+parseInt(_0x48ab3e(0x18e))/0xa*(-parseInt(_0x48ab3e(0x186))/0xb);if(_0x161083===_0x5a991b)break;else _0x24c603['push'](_0x24c603['shift']());}catch(_0x697c21){_0x24c603['push'](_0x24c603['shift']());}}}(a233_0x114e,0xec5f7));import a233_0x41c2bd from'node:path';import a233_0x34d1f3 from'node:fs';function a233_0x114e(){const _0x25414a=['28jCGqhb','join','49850383DkZgWd','10138293fBXQXf','2130834ekLFfS','6009055rBMjeg','isDirectory','428PrwsJt','648708IwFFiK','error','10kCYFWK','8EwNydp','1383ZQcZvk','复制目录时出错:','name','readdirSync','1377511LZIMPv'];a233_0x114e=function(){return _0x25414a;};return a233_0x114e();}function a233_0x53f0(_0x287f24,_0x34fb75){_0x287f24=_0x287f24-0x182;const _0x114efa=a233_0x114e();let _0x53f005=_0x114efa[_0x287f24];return _0x53f005;}export async function copyDirectory(_0x216bff,_0x3988b5){const _0x38f380=a233_0x53f0;try{const _0xd1782a=a233_0x34d1f3[_0x38f380(0x182)](_0x216bff,{'withFileTypes':!![]});a233_0x34d1f3['mkdirSync'](_0x3988b5,{'recursive':!![]});for(const _0x540424 of _0xd1782a){const _0x5191c4=a233_0x41c2bd[_0x38f380(0x185)](_0x216bff,_0x540424['name']),_0xa8023b=a233_0x41c2bd[_0x38f380(0x185)](_0x3988b5,_0x540424[_0x38f380(0x192)]);_0x540424[_0x38f380(0x18a)]()?await copyDirectory(_0x5191c4,_0xa8023b):a233_0x34d1f3['copyFileSync'](_0x5191c4,_0xa8023b);}}catch(_0x286839){console[_0x38f380(0x18d)](_0x38f380(0x191),_0x286839);}}
1
+ function a233_0x57f7(_0x90f002,_0x24029c){_0x90f002=_0x90f002-0x6e;const _0x27e01a=a233_0x27e0();let _0x57f782=_0x27e01a[_0x90f002];return _0x57f782;}(function(_0x43e68a,_0xb6ec7d){const _0xaf2c87=a233_0x57f7,_0x11ed01=_0x43e68a();while(!![]){try{const _0x49328f=parseInt(_0xaf2c87(0x6f))/0x1+-parseInt(_0xaf2c87(0x74))/0x2+parseInt(_0xaf2c87(0x7d))/0x3*(-parseInt(_0xaf2c87(0x76))/0x4)+parseInt(_0xaf2c87(0x79))/0x5*(parseInt(_0xaf2c87(0x70))/0x6)+-parseInt(_0xaf2c87(0x72))/0x7+parseInt(_0xaf2c87(0x78))/0x8*(parseInt(_0xaf2c87(0x7b))/0x9)+parseInt(_0xaf2c87(0x75))/0xa;if(_0x49328f===_0xb6ec7d)break;else _0x11ed01['push'](_0x11ed01['shift']());}catch(_0x26d0ae){_0x11ed01['push'](_0x11ed01['shift']());}}}(a233_0x27e0,0xb24b5));import a233_0x224cf3 from'node:path';function a233_0x27e0(){const _0xbe3e78=['56616sNHIDI','40MLcxfO','join','315zSXOfo','name','3LoAnrt','readdirSync','1020714Xpgzza','1278QxMhwg','复制目录时出错:','1446753iqGzZz','isDirectory','114780UaBiei','3706600OKThMJ','2585644DKmwRv','error'];a233_0x27e0=function(){return _0xbe3e78;};return a233_0x27e0();}import a233_0x17e06b from'node:fs';export async function copyDirectory(_0x229fb8,_0x314ff1){const _0x37650d=a233_0x57f7;try{const _0xa5db77=a233_0x17e06b[_0x37650d(0x6e)](_0x229fb8,{'withFileTypes':!![]});a233_0x17e06b['mkdirSync'](_0x314ff1,{'recursive':!![]});for(const _0x28491d of _0xa5db77){const _0x55043c=a233_0x224cf3[_0x37650d(0x7a)](_0x229fb8,_0x28491d[_0x37650d(0x7c)]),_0x420bc3=a233_0x224cf3['join'](_0x314ff1,_0x28491d[_0x37650d(0x7c)]);_0x28491d[_0x37650d(0x73)]()?await copyDirectory(_0x55043c,_0x420bc3):a233_0x17e06b['copyFileSync'](_0x55043c,_0x420bc3);}}catch(_0x13973c){console[_0x37650d(0x77)](_0x37650d(0x71),_0x13973c);}}
@@ -1 +1 @@
1
- (function(_0x2a531c,_0x55cf95){const _0x98a36c=a234_0x20ff,_0x42eb3d=_0x2a531c();while(!![]){try{const _0x4fee24=-parseInt(_0x98a36c(0x13a))/0x1+-parseInt(_0x98a36c(0x136))/0x2*(-parseInt(_0x98a36c(0x13d))/0x3)+-parseInt(_0x98a36c(0x13c))/0x4+-parseInt(_0x98a36c(0x13b))/0x5*(parseInt(_0x98a36c(0x138))/0x6)+-parseInt(_0x98a36c(0x141))/0x7*(-parseInt(_0x98a36c(0x13e))/0x8)+parseInt(_0x98a36c(0x140))/0x9+-parseInt(_0x98a36c(0x13f))/0xa;if(_0x4fee24===_0x55cf95)break;else _0x42eb3d['push'](_0x42eb3d['shift']());}catch(_0x35bd91){_0x42eb3d['push'](_0x42eb3d['shift']());}}}(a234_0x332d,0x59911));function toFiniteNumber(_0x37c4ab){const _0x5d9143=a234_0x20ff;if(typeof _0x37c4ab===_0x5d9143(0x139)&&Number[_0x5d9143(0x137)](_0x37c4ab))return _0x37c4ab;if(typeof _0x37c4ab===_0x5d9143(0x142)){const _0x1190a7=_0x37c4ab['trim']();if(!_0x1190a7)return undefined;const _0x403883=Number(_0x1190a7);if(Number[_0x5d9143(0x137)](_0x403883))return _0x403883;}return undefined;}function a234_0x20ff(_0x4211fc,_0xa7e144){_0x4211fc=_0x4211fc-0x136;const _0x332d0a=a234_0x332d();let _0x20ff13=_0x332d0a[_0x4211fc];return _0x20ff13;}export function normalizeEntityWithIdResponse(_0x38b5c8){const _0x5867f6=toFiniteNumber(_0x38b5c8);if(_0x5867f6!==undefined)return{'id':_0x5867f6,'entity':{'id':_0x5867f6}};if(!_0x38b5c8||typeof _0x38b5c8!=='object')return{'id':undefined,'entity':{}};const _0x55cf2b={..._0x38b5c8},_0x7b0e7b=toFiniteNumber(_0x55cf2b['id']);return _0x7b0e7b!==undefined&&(_0x55cf2b['id']=_0x7b0e7b),{'id':_0x7b0e7b,'entity':_0x55cf2b};}function a234_0x332d(){const _0x59a627=['2GxUilR','isFinite','1436214HPblXu','number','63765zSEJCA','5xaaOmD','587892jNxDqO','632769DSpcKy','272UFMthP','3217160qtZmro','4713687zYAqMk','83181BdKSsb','string'];a234_0x332d=function(){return _0x59a627;};return a234_0x332d();}
1
+ (function(_0xa16ac4,_0x48d552){const _0x302be4=a234_0x3b83,_0x3b5b7b=_0xa16ac4();while(!![]){try{const _0x366330=-parseInt(_0x302be4(0x193))/0x1+parseInt(_0x302be4(0x194))/0x2*(-parseInt(_0x302be4(0x190))/0x3)+-parseInt(_0x302be4(0x191))/0x4+parseInt(_0x302be4(0x18e))/0x5*(parseInt(_0x302be4(0x196))/0x6)+parseInt(_0x302be4(0x18c))/0x7+parseInt(_0x302be4(0x18d))/0x8*(parseInt(_0x302be4(0x195))/0x9)+parseInt(_0x302be4(0x192))/0xa;if(_0x366330===_0x48d552)break;else _0x3b5b7b['push'](_0x3b5b7b['shift']());}catch(_0x42b68c){_0x3b5b7b['push'](_0x3b5b7b['shift']());}}}(a234_0x13e7,0x6d6dc));function toFiniteNumber(_0xabcdaa){const _0x3e818d=a234_0x3b83;if(typeof _0xabcdaa===_0x3e818d(0x18f)&&Number[_0x3e818d(0x189)](_0xabcdaa))return _0xabcdaa;if(typeof _0xabcdaa==='string'){const _0x5bbd89=_0xabcdaa[_0x3e818d(0x18a)]();if(!_0x5bbd89)return undefined;const _0x2921e4=Number(_0x5bbd89);if(Number['isFinite'](_0x2921e4))return _0x2921e4;}return undefined;}export function normalizeEntityWithIdResponse(_0x4aaacb){const _0x4b4288=a234_0x3b83,_0x502d18=toFiniteNumber(_0x4aaacb);if(_0x502d18!==undefined)return{'id':_0x502d18,'entity':{'id':_0x502d18}};if(!_0x4aaacb||typeof _0x4aaacb!==_0x4b4288(0x18b))return{'id':undefined,'entity':{}};const _0x30070d={..._0x4aaacb},_0x4f7d20=toFiniteNumber(_0x30070d['id']);return _0x4f7d20!==undefined&&(_0x30070d['id']=_0x4f7d20),{'id':_0x4f7d20,'entity':_0x30070d};}function a234_0x3b83(_0x16d75a,_0x50de8c){_0x16d75a=_0x16d75a-0x189;const _0x13e7b3=a234_0x13e7();let _0x3b83d5=_0x13e7b3[_0x16d75a];return _0x3b83d5;}function a234_0x13e7(){const _0x2a463e=['5195827ovrzIJ','8jXFrQq','44105qyhDgR','number','741525xPnaWA','1454432ghvAbu','5681690FkXSiU','407039hQkzUU','6WxNres','3706155LCEieZ','162zkqkdt','isFinite','trim','object'];a234_0x13e7=function(){return _0x2a463e;};return a234_0x13e7();}
@@ -1 +1 @@
1
- (function(_0x4daf5c,_0x4c45ed){const _0xa35574=a235_0xde23,_0x30cebf=_0x4daf5c();while(!![]){try{const _0x1fca3c=parseInt(_0xa35574(0x168))/0x1+-parseInt(_0xa35574(0x16d))/0x2*(-parseInt(_0xa35574(0x16b))/0x3)+parseInt(_0xa35574(0x16c))/0x4+parseInt(_0xa35574(0x169))/0x5+-parseInt(_0xa35574(0x166))/0x6*(parseInt(_0xa35574(0x16e))/0x7)+-parseInt(_0xa35574(0x167))/0x8+-parseInt(_0xa35574(0x16a))/0x9;if(_0x1fca3c===_0x4c45ed)break;else _0x30cebf['push'](_0x30cebf['shift']());}catch(_0x171d7e){_0x30cebf['push'](_0x30cebf['shift']());}}}(a235_0x3a27,0x97fa1));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1186c5,_0x49e8d3){const _0x34235c=statSync(_0x1186c5);if(_0x34235c['isDirectory']()){!existsSync(_0x49e8d3)&&mkdirSync(_0x49e8d3,{'recursive':!![]});const _0x188099=readdirSync(_0x1186c5);for(const _0x2e3832 of _0x188099){await copyDir(join(_0x1186c5,_0x2e3832),join(_0x49e8d3,_0x2e3832));}}else copyFileSync(_0x1186c5,_0x49e8d3);}function a235_0x3a27(){const _0x27bb9b=['1506060nwMFlE','231342WTHhNb','1995581dUSvSK','12rzNMlJ','4106488hlLlhQ','908840QmezPp','6204765dEBOGv','9465084gepovq','6fqWAuC'];a235_0x3a27=function(){return _0x27bb9b;};return a235_0x3a27();}export function ensureDir(_0x177541){!existsSync(_0x177541)&&mkdirSync(_0x177541,{'recursive':!![]});}function a235_0xde23(_0x5c6b32,_0x907b2c){_0x5c6b32=_0x5c6b32-0x166;const _0x3a2749=a235_0x3a27();let _0xde2321=_0x3a2749[_0x5c6b32];return _0xde2321;}export function pathExists(_0x212971){return existsSync(_0x212971);}
1
+ (function(_0x96c144,_0x3fc2f0){const _0x40fd46=a235_0x4efd,_0x2782a6=_0x96c144();while(!![]){try{const _0x385505=-parseInt(_0x40fd46(0x137))/0x1+parseInt(_0x40fd46(0x133))/0x2*(parseInt(_0x40fd46(0x132))/0x3)+parseInt(_0x40fd46(0x136))/0x4*(parseInt(_0x40fd46(0x130))/0x5)+parseInt(_0x40fd46(0x135))/0x6+parseInt(_0x40fd46(0x131))/0x7+-parseInt(_0x40fd46(0x138))/0x8*(-parseInt(_0x40fd46(0x13a))/0x9)+-parseInt(_0x40fd46(0x134))/0xa;if(_0x385505===_0x3fc2f0)break;else _0x2782a6['push'](_0x2782a6['shift']());}catch(_0x3a603e){_0x2782a6['push'](_0x2782a6['shift']());}}}(a235_0x56eb,0xeb2aa));function a235_0x56eb(){const _0x2f02ab=['6185592tlTzTN','5240769ugVzoM','2bEViTc','18360350cslKSq','7111044RYfqSM','12hOjMSF','1521850FhXmJk','2043336GcqwVH','isDirectory','9sAEsbZ','416595UWGyJH'];a235_0x56eb=function(){return _0x2f02ab;};return a235_0x56eb();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3e0bff,_0x1cd5de){const _0x1852cb=a235_0x4efd,_0x20dcea=statSync(_0x3e0bff);if(_0x20dcea[_0x1852cb(0x139)]()){!existsSync(_0x1cd5de)&&mkdirSync(_0x1cd5de,{'recursive':!![]});const _0x5a8745=readdirSync(_0x3e0bff);for(const _0x292687 of _0x5a8745){await copyDir(join(_0x3e0bff,_0x292687),join(_0x1cd5de,_0x292687));}}else copyFileSync(_0x3e0bff,_0x1cd5de);}export function ensureDir(_0x2b6c15){!existsSync(_0x2b6c15)&&mkdirSync(_0x2b6c15,{'recursive':!![]});}function a235_0x4efd(_0xcc56fa,_0x417570){_0xcc56fa=_0xcc56fa-0x130;const _0x56ebc7=a235_0x56eb();let _0x4efd04=_0x56ebc7[_0xcc56fa];return _0x4efd04;}export function pathExists(_0x446f1f){return existsSync(_0x446f1f);}
@@ -1 +1 @@
1
- const a236_0x380156=a236_0x3962;(function(_0x13f41f,_0x491b41){const _0x417616=a236_0x3962,_0x200f1e=_0x13f41f();while(!![]){try{const _0x5bc236=parseInt(_0x417616(0xab))/0x1*(-parseInt(_0x417616(0xac))/0x2)+parseInt(_0x417616(0xaf))/0x3+-parseInt(_0x417616(0xb3))/0x4+parseInt(_0x417616(0xb8))/0x5+parseInt(_0x417616(0xa4))/0x6*(-parseInt(_0x417616(0xb2))/0x7)+parseInt(_0x417616(0xa6))/0x8*(parseInt(_0x417616(0xbe))/0x9)+parseInt(_0x417616(0xbb))/0xa;if(_0x5bc236===_0x491b41)break;else _0x200f1e['push'](_0x200f1e['shift']());}catch(_0x431c8c){_0x200f1e['push'](_0x200f1e['shift']());}}}(a236_0x37b7,0x3538e));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a236_0x3962(_0x24c9e3,_0x239f1b){_0x24c9e3=_0x24c9e3-0xa0;const _0x37b792=a236_0x37b7();let _0x39628d=_0x37b792[_0x24c9e3];return _0x39628d;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x508b9d=a236_0x3962,_0x3bc2db=getTemplateBaseUrl();return _0x3bc2db+_0x508b9d(0xad);}const CACHE_DIR=join(homedir(),a236_0x380156(0xaa),a236_0x380156(0xb4));export async function fetchGuidesFromCDN(){const _0x9d7c47=a236_0x380156,_0x4849b8=getGuidesCdnUrl(),_0x3cb247=await fetch(_0x4849b8,{'headers':{'Accept':_0x9d7c47(0xb6)}});if(!_0x3cb247['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3cb247[_0x9d7c47(0xc0)]+'\x20'+_0x3cb247[_0x9d7c47(0xba)]);const _0x3eca1f=await _0x3cb247[_0x9d7c47(0xa7)]();if(!_0x3eca1f['guides']||typeof _0x3eca1f['guides']!==_0x9d7c47(0xbf))throw new Error('CDN\x20返回数据格式错误');return _0x3eca1f;}export function writeGuidesToProject(_0x10afee,_0x250244,_0x1718d1=a236_0x380156(0xc1),_0x170e8b){const _0x503461=a236_0x380156,_0x2aaf52=join(_0x250244,_0x1718d1);mkdirSync(_0x2aaf52,{'recursive':!![]});for(const [_0x2cdab5,_0x39197f]of Object[_0x503461(0xbc)](_0x10afee['guides'])){let _0x23821d=_0x39197f[_0x503461(0xa5)];_0x39197f['lastUpdated']&&(_0x23821d=appendUpdateTime(_0x23821d,_0x39197f['lastUpdated'])),writeFileSync(join(_0x2aaf52,_0x2cdab5+_0x503461(0xa8)),_0x23821d,_0x503461(0xa9));}}export function appendUpdateTime(_0x1e5549,_0x481a97){const _0x2bdac1=a236_0x380156;return _0x1e5549=_0x1e5549[_0x2bdac1(0xa0)](/\n*>更新时间:.*$/m,''),_0x1e5549['trimEnd']()+(_0x2bdac1(0xb0)+_0x481a97);}export function getSkillTemplate(_0x353318){const _0x3236cf=a236_0x380156;return _0x353318[_0x3236cf(0xa1)]?.['content']||'';}export function appendExtendContents(_0xd26100,_0x1d1654,_0x55b45a){const _0x5681f3=a236_0x380156,_0x3bc4b5=[];for(const [,_0xc1b924]of Object['entries'](_0x1d1654[_0x5681f3(0xa3)])){_0xc1b924[_0x5681f3(0xb5)]&&_0x3bc4b5['push'](_0xc1b924[_0x5681f3(0xb5)][_0x5681f3(0xb7)]());}if(_0x3bc4b5[_0x5681f3(0xc2)]===0x0)return _0xd26100;return _0xd26100[_0x5681f3(0xb7)]()+'\x0a\x0a'+_0x3bc4b5[_0x5681f3(0xbd)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xaff224,_0x5df69c,_0x486bed){const _0x16a92a=a236_0x380156,_0x4a1679=getSkillTemplate(_0xaff224);if(!_0x4a1679)throw new Error(_0x16a92a(0xae));const _0x515296=dirname(_0x5df69c);mkdirSync(_0x515296,{'recursive':!![]});let _0x530029=_0x4a1679[_0x16a92a(0xa0)](/\{\{IDE_NAME\}\}/g,_0x486bed);_0x530029=appendExtendContents(_0x530029,_0xaff224),_0xaff224['skillTemplate'][_0x16a92a(0xa2)]&&(_0x530029=appendUpdateTime(_0x530029,_0xaff224[_0x16a92a(0xa1)][_0x16a92a(0xa2)])),writeFileSync(_0x5df69c,_0x530029,_0x16a92a(0xa9));}export async function installGuides(_0x51f519){const _0x4fba27=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4fba27,_0x51f519),Object['keys'](_0x4fba27['guides'])['length'];}export function getGuidesSummary(_0x16f14b){const _0x194ee8=a236_0x380156;return Object[_0x194ee8(0xbc)](_0x16f14b[_0x194ee8(0xa3)])[_0x194ee8(0xb9)](([_0x42d76a,_0x50ec78])=>({'key':_0x42d76a,'title':_0x50ec78['title'],'path':_0x50ec78[_0x194ee8(0xb1)]}));}function a236_0x37b7(){const _0x42906c=['guides','6xTSbiP','content','8eMZMVR','json','.md','utf-8','.lovrabet','3woahwQ','60586nxdwkb','/skills/guides.json','CDN\x20数据中缺少\x20skillTemplate','834801bjfqnS','\x0a\x0a>更新时间:','path','415653WTeQyy','1413772EsotNf','cache','extendContent','application/json','trimEnd','1447605PhevHU','map','statusText','543850RxJVxB','entries','join','895734jNWfCC','object','status','.lovrabet/skill/guides','length','replace','skillTemplate','lastUpdated'];a236_0x37b7=function(){return _0x42906c;};return a236_0x37b7();}
1
+ function a236_0x2e4b(){const _0x4cb54b=['2CNUKiF','guides','skillTemplate','cache','3400998lzUrie','utf-8','5288adZyUF','statusText','13306698hBiqhi','lastUpdated','path','object','24636KbvrfJ','content','push','extendContent','/skills/guides.json','359384cVSWLi','trimEnd','7282060gcqxcQ','entries','6671hCAosf','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','5373045wITiqo','length','replace','20kYLAUM','keys','CDN\x20请求失败:\x20','CDN\x20数据中缺少\x20skillTemplate','application/json','map','.lovrabet/skill/guides'];a236_0x2e4b=function(){return _0x4cb54b;};return a236_0x2e4b();}const a236_0xc486b2=a236_0x5871;(function(_0x305e24,_0x5800e3){const _0x554dbf=a236_0x5871,_0x35a1a2=_0x305e24();while(!![]){try{const _0x2b8326=parseInt(_0x554dbf(0xec))/0x1*(parseInt(_0x554dbf(0xdb))/0x2)+parseInt(_0x554dbf(0xe7))/0x3*(parseInt(_0x554dbf(0xd4))/0x4)+parseInt(_0x554dbf(0xf3))/0x5+-parseInt(_0x554dbf(0xdf))/0x6+-parseInt(_0x554dbf(0xf0))/0x7*(-parseInt(_0x554dbf(0xe1))/0x8)+-parseInt(_0x554dbf(0xe3))/0x9+parseInt(_0x554dbf(0xee))/0xa;if(_0x2b8326===_0x5800e3)break;else _0x35a1a2['push'](_0x35a1a2['shift']());}catch(_0x44359b){_0x35a1a2['push'](_0x35a1a2['shift']());}}}(a236_0x2e4b,0xc057d));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 _0x4e3cfd=a236_0x5871,_0x111336=getTemplateBaseUrl();return _0x111336+_0x4e3cfd(0xeb);}const CACHE_DIR=join(homedir(),'.lovrabet',a236_0xc486b2(0xde));export async function fetchGuidesFromCDN(){const _0x4ec4ca=a236_0xc486b2,_0x1634f1=getGuidesCdnUrl(),_0x197565=await fetch(_0x1634f1,{'headers':{'Accept':_0x4ec4ca(0xd8)}});if(!_0x197565['ok'])throw new Error(_0x4ec4ca(0xd6)+_0x197565['status']+'\x20'+_0x197565[_0x4ec4ca(0xe2)]);const _0x42a8f3=await _0x197565['json']();if(!_0x42a8f3[_0x4ec4ca(0xdc)]||typeof _0x42a8f3['guides']!==_0x4ec4ca(0xe6))throw new Error(_0x4ec4ca(0xf1));return _0x42a8f3;}function a236_0x5871(_0x16cec4,_0x4d2a6a){_0x16cec4=_0x16cec4-0xd4;const _0x2e4b57=a236_0x2e4b();let _0x587174=_0x2e4b57[_0x16cec4];return _0x587174;}export function writeGuidesToProject(_0x35f426,_0x327c9a,_0x320878=a236_0xc486b2(0xda),_0x1e5807){const _0x3b42a1=a236_0xc486b2,_0x436c1d=join(_0x327c9a,_0x320878);mkdirSync(_0x436c1d,{'recursive':!![]});for(const [_0x1a1e3e,_0x4032ba]of Object[_0x3b42a1(0xef)](_0x35f426[_0x3b42a1(0xdc)])){let _0x5c9bd1=_0x4032ba[_0x3b42a1(0xe8)];_0x4032ba['lastUpdated']&&(_0x5c9bd1=appendUpdateTime(_0x5c9bd1,_0x4032ba[_0x3b42a1(0xe4)])),writeFileSync(join(_0x436c1d,_0x1a1e3e+'.md'),_0x5c9bd1,_0x3b42a1(0xe0));}}export function appendUpdateTime(_0x25bdf,_0x989955){const _0x4eded8=a236_0xc486b2;return _0x25bdf=_0x25bdf[_0x4eded8(0xf5)](/\n*>更新时间:.*$/m,''),_0x25bdf[_0x4eded8(0xed)]()+(_0x4eded8(0xf2)+_0x989955);}export function getSkillTemplate(_0x33b98d){const _0x320482=a236_0xc486b2;return _0x33b98d[_0x320482(0xdd)]?.[_0x320482(0xe8)]||'';}export function appendExtendContents(_0x4e8ede,_0x2728e2,_0x540c56){const _0x5538a7=a236_0xc486b2,_0x3da16d=[];for(const [,_0x218e4a]of Object[_0x5538a7(0xef)](_0x2728e2[_0x5538a7(0xdc)])){_0x218e4a[_0x5538a7(0xea)]&&_0x3da16d[_0x5538a7(0xe9)](_0x218e4a['extendContent'][_0x5538a7(0xed)]());}if(_0x3da16d[_0x5538a7(0xf4)]===0x0)return _0x4e8ede;return _0x4e8ede[_0x5538a7(0xed)]()+'\x0a\x0a'+_0x3da16d['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27ff5d,_0x1eafbf,_0x53efd5){const _0x3f45ef=a236_0xc486b2,_0x16f295=getSkillTemplate(_0x27ff5d);if(!_0x16f295)throw new Error(_0x3f45ef(0xd7));const _0x47b42f=dirname(_0x1eafbf);mkdirSync(_0x47b42f,{'recursive':!![]});let _0x2e7a74=_0x16f295[_0x3f45ef(0xf5)](/\{\{IDE_NAME\}\}/g,_0x53efd5);_0x2e7a74=appendExtendContents(_0x2e7a74,_0x27ff5d),_0x27ff5d[_0x3f45ef(0xdd)][_0x3f45ef(0xe4)]&&(_0x2e7a74=appendUpdateTime(_0x2e7a74,_0x27ff5d[_0x3f45ef(0xdd)][_0x3f45ef(0xe4)])),writeFileSync(_0x1eafbf,_0x2e7a74,_0x3f45ef(0xe0));}export async function installGuides(_0x583677){const _0x432678=a236_0xc486b2,_0x59a82f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x59a82f,_0x583677),Object[_0x432678(0xd5)](_0x59a82f[_0x432678(0xdc)])['length'];}export function getGuidesSummary(_0x331d2f){const _0x2be2eb=a236_0xc486b2;return Object[_0x2be2eb(0xef)](_0x331d2f[_0x2be2eb(0xdc)])[_0x2be2eb(0xd9)](([_0x49f17d,_0x31fefc])=>({'key':_0x49f17d,'title':_0x31fefc['title'],'path':_0x31fefc[_0x2be2eb(0xe5)]}));}
@@ -1 +1 @@
1
- (function(_0xdd5cea,_0x4f8c26){const _0xcb6ae4=a237_0x15e5,_0x4285e7=_0xdd5cea();while(!![]){try{const _0x6fdfcd=-parseInt(_0xcb6ae4(0x190))/0x1*(-parseInt(_0xcb6ae4(0x18c))/0x2)+-parseInt(_0xcb6ae4(0x197))/0x3+-parseInt(_0xcb6ae4(0x19d))/0x4*(parseInt(_0xcb6ae4(0x189))/0x5)+-parseInt(_0xcb6ae4(0x191))/0x6+-parseInt(_0xcb6ae4(0x19c))/0x7*(parseInt(_0xcb6ae4(0x1a0))/0x8)+-parseInt(_0xcb6ae4(0x19f))/0x9*(parseInt(_0xcb6ae4(0x196))/0xa)+-parseInt(_0xcb6ae4(0x193))/0xb*(-parseInt(_0xcb6ae4(0x18e))/0xc);if(_0x6fdfcd===_0x4f8c26)break;else _0x4285e7['push'](_0x4285e7['shift']());}catch(_0x26a434){_0x4285e7['push'](_0x4285e7['shift']());}}}(a237_0x2e97,0xcdcf5));export async function httpRequest(_0x13949a,_0x3302b3={}){const _0x2a34f1=a237_0x15e5,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3302b3;let _0x5da032=null;for(let _0x3c56cd=0x0;_0x3c56cd<=retries;_0x3c56cd++){try{const _0x2fe32e=new AbortController(),_0x3e2b02=setTimeout(()=>_0x2fe32e['abort'](),timeout),_0x3be501=await fetch(_0x13949a,{'headers':headers,'signal':_0x2fe32e['signal']});clearTimeout(_0x3e2b02);let _0x4121d0;const _0x39cfd3=_0x3be501[_0x2a34f1(0x19e)][_0x2a34f1(0x186)]('content-type');return _0x39cfd3?.[_0x2a34f1(0x18f)](_0x2a34f1(0x199))?_0x4121d0=await _0x3be501['json']():_0x4121d0=await _0x3be501[_0x2a34f1(0x192)](),{'ok':_0x3be501['ok'],'status':_0x3be501[_0x2a34f1(0x18d)],'statusText':_0x3be501[_0x2a34f1(0x188)],'data':_0x4121d0,'headers':_0x3be501['headers'],'url':_0x3be501[_0x2a34f1(0x185)],'text':()=>_0x3be501[_0x2a34f1(0x192)]()};}catch(_0x429105){_0x5da032=_0x429105 instanceof Error?_0x429105:new Error(String(_0x429105));if(_0x3c56cd===retries)break;if(shouldRetry(_0x429105)){console[_0x2a34f1(0x18a)]('*\x20请求失败,'+retryDelay+_0x2a34f1(0x1a1)+(_0x3c56cd+0x1)+_0x2a34f1(0x1a2)),await sleep(retryDelay);continue;}else break;}}throw _0x5da032||new Error(_0x2a34f1(0x19a));}function a237_0x15e5(_0x5eb956,_0x5502ef){_0x5eb956=_0x5eb956-0x185;const _0x2e978c=a237_0x2e97();let _0x15e572=_0x2e978c[_0x5eb956];return _0x15e572;}function shouldRetry(_0x40fe5b){const _0x530369=a237_0x15e5;if(_0x40fe5b instanceof Error){if(_0x40fe5b[_0x530369(0x195)]===_0x530369(0x187))return![];if(_0x40fe5b[_0x530369(0x195)]===_0x530369(0x198)&&_0x40fe5b[_0x530369(0x194)][_0x530369(0x18f)](_0x530369(0x19b)))return!![];if(_0x40fe5b['message']['includes'](_0x530369(0x18b)))return!![];if(_0x40fe5b[_0x530369(0x194)][_0x530369(0x18f)]('ENOTFOUND'))return![];}return![];}function a237_0x2e97(){const _0x1dd125=['url','get','AbortError','statusText','2272845toeHsa','log','ECONNRESET','24540mRvkKE','status','59797740NOckob','includes','83ZCVVvc','8393718xuAPrg','text','11luzvjW','message','name','13620890nwhwPA','3117999TzCjeI','TypeError','application/json','Request\x20failed','fetch','6325298eiAxtz','4dcFBor','headers','9nccQVo','8iHKmbU','ms\x20后进行第\x20','\x20次重试...'];a237_0x2e97=function(){return _0x1dd125;};return a237_0x2e97();}function sleep(_0x3dd828){return new Promise(_0xaf1187=>setTimeout(_0xaf1187,_0x3dd828));}export function validateUrl(_0x2a8da2){try{return new URL(_0x2a8da2),!![];}catch{return![];}}
1
+ function a237_0xc244(){const _0x3fdbab=['ENOTFOUND','ms\x20后进行第\x20','1411908xVliex','705213EMfUyI','19237930TRZkSU','TypeError','application/json','5JlygXu','410661dZNoXX','message','fetch','text','headers','Request\x20failed','signal','get','8146824yHCpCf','url','name','8475000QbpPrC','includes','1088300qxpIyJ','content-type','*\x20请求失败,','1nkFUOC','56krpsXR','status','\x20次重试...','log'];a237_0xc244=function(){return _0x3fdbab;};return a237_0xc244();}(function(_0x1ae346,_0x47f9fd){const _0x36f9a2=a237_0x3b27,_0x250ce6=_0x1ae346();while(!![]){try{const _0x5c9153=-parseInt(_0x36f9a2(0x91))/0x1*(parseInt(_0x36f9a2(0x7b))/0x2)+parseInt(_0x36f9a2(0x7c))/0x3+-parseInt(_0x36f9a2(0x8e))/0x4*(-parseInt(_0x36f9a2(0x80))/0x5)+parseInt(_0x36f9a2(0x8c))/0x6+parseInt(_0x36f9a2(0x89))/0x7+parseInt(_0x36f9a2(0x75))/0x8*(parseInt(_0x36f9a2(0x81))/0x9)+-parseInt(_0x36f9a2(0x7d))/0xa;if(_0x5c9153===_0x47f9fd)break;else _0x250ce6['push'](_0x250ce6['shift']());}catch(_0x1d2d60){_0x250ce6['push'](_0x250ce6['shift']());}}}(a237_0xc244,0xbcc0e));export async function httpRequest(_0x590b68,_0x10dd5d={}){const _0x2817b3=a237_0x3b27,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x10dd5d;let _0x3cd198=null;for(let _0x3086c3=0x0;_0x3086c3<=retries;_0x3086c3++){try{const _0x11e2c0=new AbortController(),_0x2bcfd8=setTimeout(()=>_0x11e2c0['abort'](),timeout),_0x1b81e6=await fetch(_0x590b68,{'headers':headers,'signal':_0x11e2c0[_0x2817b3(0x87)]});clearTimeout(_0x2bcfd8);let _0x44f3f1;const _0x5b13e2=_0x1b81e6['headers'][_0x2817b3(0x88)](_0x2817b3(0x8f));return _0x5b13e2?.[_0x2817b3(0x8d)](_0x2817b3(0x7f))?_0x44f3f1=await _0x1b81e6['json']():_0x44f3f1=await _0x1b81e6['text'](),{'ok':_0x1b81e6['ok'],'status':_0x1b81e6[_0x2817b3(0x76)],'statusText':_0x1b81e6['statusText'],'data':_0x44f3f1,'headers':_0x1b81e6[_0x2817b3(0x85)],'url':_0x1b81e6[_0x2817b3(0x8a)],'text':()=>_0x1b81e6[_0x2817b3(0x84)]()};}catch(_0x1516c0){_0x3cd198=_0x1516c0 instanceof Error?_0x1516c0:new Error(String(_0x1516c0));if(_0x3086c3===retries)break;if(shouldRetry(_0x1516c0)){console[_0x2817b3(0x78)](_0x2817b3(0x90)+retryDelay+_0x2817b3(0x7a)+(_0x3086c3+0x1)+_0x2817b3(0x77)),await sleep(retryDelay);continue;}else break;}}throw _0x3cd198||new Error(_0x2817b3(0x86));}function shouldRetry(_0x3415e1){const _0x4b31b7=a237_0x3b27;if(_0x3415e1 instanceof Error){if(_0x3415e1['name']==='AbortError')return![];if(_0x3415e1[_0x4b31b7(0x8b)]===_0x4b31b7(0x7e)&&_0x3415e1[_0x4b31b7(0x82)][_0x4b31b7(0x8d)](_0x4b31b7(0x83)))return!![];if(_0x3415e1['message']['includes']('ECONNRESET'))return!![];if(_0x3415e1[_0x4b31b7(0x82)][_0x4b31b7(0x8d)](_0x4b31b7(0x79)))return![];}return![];}function sleep(_0x19704a){return new Promise(_0x27b014=>setTimeout(_0x27b014,_0x19704a));}function a237_0x3b27(_0x3ef082,_0x7a7961){_0x3ef082=_0x3ef082-0x75;const _0xc244a8=a237_0xc244();let _0x3b2711=_0xc244a8[_0x3ef082];return _0x3b2711;}export function validateUrl(_0x4494ee){try{return new URL(_0x4494ee),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a238_0x8f0b(_0x1755a9,_0x563d13){_0x1755a9=_0x1755a9-0x169;const _0x3d4bd6=a238_0x3d4b();let _0x8f0b3e=_0x3d4bd6[_0x1755a9];return _0x8f0b3e;}(function(_0x578645,_0x45000c){const _0x4ca615=a238_0x8f0b,_0x830331=_0x578645();while(!![]){try{const _0x3ee193=-parseInt(_0x4ca615(0x16c))/0x1+-parseInt(_0x4ca615(0x175))/0x2*(-parseInt(_0x4ca615(0x174))/0x3)+parseInt(_0x4ca615(0x16d))/0x4+parseInt(_0x4ca615(0x169))/0x5+-parseInt(_0x4ca615(0x16a))/0x6+-parseInt(_0x4ca615(0x16b))/0x7*(-parseInt(_0x4ca615(0x173))/0x8)+-parseInt(_0x4ca615(0x171))/0x9;if(_0x3ee193===_0x45000c)break;else _0x830331['push'](_0x830331['shift']());}catch(_0x5b3920){_0x830331['push'](_0x830331['shift']());}}}(a238_0x3d4b,0x72cdf));function env(_0x1e9129){return process.env[`RABETBASE_${_0x1e9129}`]||process.env[`LOVRABET_${_0x1e9129}`]||undefined;}export function isNonInteractive(_0x3975f2){const _0x416015=a238_0x8f0b;return!!(_0x3975f2[_0x416015(0x172)]||_0x3975f2['ci']||env('CI')==='true'||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function a238_0x3d4b(){const _0x94d340=['1051224CWRrcy','4382707olFRCX','266290yeRjBd','1579136dXVScH','stdin','setRawMode','isRaw','7472133xbRwqH','nonInteractive','8dlhghC','4902LeoyuR','430RnSjxi','1848875WdoSVK'];a238_0x3d4b=function(){return _0x94d340;};return a238_0x3d4b();}function isStdinRawModeSupported(){const _0x40f770=a238_0x8f0b;if(!process[_0x40f770(0x16e)]['isTTY'])return![];try{const _0x30e07d=process[_0x40f770(0x16e)][_0x40f770(0x170)];return process['stdin'][_0x40f770(0x16f)](!![]),process[_0x40f770(0x16e)][_0x40f770(0x16f)](_0x30e07d??![]),!![];}catch{return![];}}
1
+ (function(_0x418487,_0x56ef5e){const _0x1ac2da=a238_0x4127,_0x3b7f62=_0x418487();while(!![]){try{const _0x2faf0d=parseInt(_0x1ac2da(0xa2))/0x1*(parseInt(_0x1ac2da(0x9f))/0x2)+parseInt(_0x1ac2da(0x9b))/0x3*(-parseInt(_0x1ac2da(0xa3))/0x4)+parseInt(_0x1ac2da(0x96))/0x5*(parseInt(_0x1ac2da(0x9d))/0x6)+-parseInt(_0x1ac2da(0x9a))/0x7+parseInt(_0x1ac2da(0x94))/0x8*(parseInt(_0x1ac2da(0x98))/0x9)+parseInt(_0x1ac2da(0x97))/0xa+parseInt(_0x1ac2da(0x9e))/0xb*(-parseInt(_0x1ac2da(0x9c))/0xc);if(_0x2faf0d===_0x56ef5e)break;else _0x3b7f62['push'](_0x3b7f62['shift']());}catch(_0x29ad7d){_0x3b7f62['push'](_0x3b7f62['shift']());}}}(a238_0x1473,0xb57ad));function env(_0x32d598){return process.env[`RABETBASE_${_0x32d598}`]||process.env[`LOVRABET_${_0x32d598}`]||undefined;}export function isNonInteractive(_0x262b26){const _0x5cc80e=a238_0x4127;return!!(_0x262b26['nonInteractive']||_0x262b26['ci']||env('CI')===_0x5cc80e(0x95)||process.env.CI===_0x5cc80e(0x95)||!process[_0x5cc80e(0x99)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x199273=a238_0x4127;if(!process[_0x199273(0x92)][_0x199273(0xa1)])return![];try{const _0xa8314a=process[_0x199273(0x92)][_0x199273(0xa0)];return process[_0x199273(0x92)]['setRawMode'](!![]),process[_0x199273(0x92)][_0x199273(0x93)](_0xa8314a??![]),!![];}catch{return![];}}function a238_0x4127(_0x1fc597,_0x1ad6a3){_0x1fc597=_0x1fc597-0x92;const _0x1473de=a238_0x1473();let _0x412750=_0x1473de[_0x1fc597];return _0x412750;}function a238_0x1473(){const _0x21a3ee=['isRaw','isTTY','1034203DMrAkC','4XzTcTB','stdin','setRawMode','7792EXrKhg','true','145PEipfb','884430OOIrCN','9603IIraUq','stdout','904694YIRIAJ','2951769nTLjrx','20256NdCMME','56604gsWzUr','3773deVJLK','2chTgUQ'];a238_0x1473=function(){return _0x21a3ee;};return a238_0x1473();}
@@ -1 +1 @@
1
- const a239_0x115d4c=a239_0x5ab2;(function(_0x4396de,_0x2b66e9){const _0x5262a1=a239_0x5ab2,_0x31a4ed=_0x4396de();while(!![]){try{const _0x19ec3c=parseInt(_0x5262a1(0x9e))/0x1*(-parseInt(_0x5262a1(0x8d))/0x2)+-parseInt(_0x5262a1(0x7f))/0x3*(-parseInt(_0x5262a1(0x86))/0x4)+parseInt(_0x5262a1(0x87))/0x5+parseInt(_0x5262a1(0x88))/0x6+-parseInt(_0x5262a1(0x6c))/0x7+-parseInt(_0x5262a1(0x75))/0x8*(parseInt(_0x5262a1(0x99))/0x9)+parseInt(_0x5262a1(0x74))/0xa;if(_0x19ec3c===_0x2b66e9)break;else _0x31a4ed['push'](_0x31a4ed['shift']());}catch(_0x13f0c9){_0x31a4ed['push'](_0x31a4ed['shift']());}}}(a239_0x29e9,0xc79b7));function a239_0x29e9(){const _0x49ae25=['4569834CFohYi','transports','utf8','File','失败:\x20','map','.lovrabet.log','4PCJcim','562890bxEqfx','5112210PcpSqn','errors','printf','info','stringify','34DlNJRZ','writeFileSync','开始执行:\x20','clearLogs','red','now','dirname','Failed\x20to\x20read\x20logs:','currentRawCommand','success','winstonLogger','parse','9MLsIUY','setLogPath','green','unknown','Failed\x20to\x20clear\x20logs:','72577gKhdgU','logTask','existsSync','91791OCzDOj','level','message','完成:\x20','addColors','timestamp','blue','format','2957330UpAoKD','5752888KbBpRw','warn','logFilePath','createLogger','clear','details','yellow','error','readFileSync','filter'];a239_0x29e9=function(){return _0x49ae25;};return a239_0x29e9();}import a239_0x76d22 from'winston';import a239_0xd37fc3 from'node:fs';import a239_0x16cf85 from'node:path';function a239_0x5ab2(_0x1fe514,_0x41491b){_0x1fe514=_0x1fe514-0x6a;const _0x29e9d8=a239_0x29e9();let _0x5ab298=_0x29e9d8[_0x1fe514];return _0x5ab298;}class Logger{[a239_0x115d4c(0x97)];[a239_0x115d4c(0x77)];[a239_0x115d4c(0x95)]='';constructor(){const _0x27fdb4=a239_0x115d4c;this[_0x27fdb4(0x77)]='';}['setRawCommand'](_0x75c1a){const _0x14a08d=a239_0x115d4c;this[_0x14a08d(0x95)]=_0x75c1a;}['initWinstonLogger'](){const _0x2d16df=a239_0x115d4c,_0xdead12=a239_0x16cf85[_0x2d16df(0x93)](this['logFilePath']);!a239_0xd37fc3['existsSync'](_0xdead12)&&a239_0xd37fc3['mkdirSync'](_0xdead12,{'recursive':!![]});const _0x3f411d=a239_0x76d22[_0x2d16df(0x73)]['combine'](a239_0x76d22['format'][_0x2d16df(0x71)](),a239_0x76d22[_0x2d16df(0x73)][_0x2d16df(0x89)]({'stack':!![]}),a239_0x76d22[_0x2d16df(0x73)][_0x2d16df(0x8a)](_0x39a847=>{const _0x36a1ff=_0x2d16df,_0x1aa081={'timestamp':_0x39a847[_0x36a1ff(0x71)]||new Date()['toISOString'](),'level':_0x39a847[_0x36a1ff(0x6d)]||_0x36a1ff(0x8b),'command':_0x39a847['command']||_0x36a1ff(0x9c),'rawCommand':_0x39a847['rawCommand']||this[_0x36a1ff(0x95)]||undefined,'message':_0x39a847[_0x36a1ff(0x6e)]||'','duration':_0x39a847['duration']||undefined,'details':_0x39a847[_0x36a1ff(0x7a)]||undefined};return JSON[_0x36a1ff(0x8c)](_0x1aa081);}));this[_0x2d16df(0x97)]=a239_0x76d22[_0x2d16df(0x78)]({'level':_0x2d16df(0x8b),'format':_0x3f411d,'transports':[new a239_0x76d22[(_0x2d16df(0x80))][(_0x2d16df(0x82))]({'filename':this[_0x2d16df(0x77)],'level':_0x2d16df(0x8b)})],'silent':![]}),a239_0x76d22[_0x2d16df(0x70)]({'success':_0x2d16df(0x9b),'error':_0x2d16df(0x91),'warn':_0x2d16df(0x7b),'info':_0x2d16df(0x72)});}[a239_0x115d4c(0x9a)](_0x4a4376){const _0x2cf63e=a239_0x115d4c;this[_0x2cf63e(0x77)]=a239_0x16cf85['join'](_0x4a4376,_0x2cf63e(0x85)),this[_0x2cf63e(0x97)]&&this['winstonLogger'][_0x2cf63e(0x79)](),this['initWinstonLogger']();}['info'](_0x24bd6d,_0x5c4486,_0x5d0a38){const _0x49783c=a239_0x115d4c;if(!this[_0x49783c(0x77)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x5c4486,{'command':_0x24bd6d,'details':_0x5d0a38});}['success'](_0x187440,_0x31dec3,_0x3bbc0d,_0x54a35a){const _0x475b03=a239_0x115d4c;if(!this[_0x475b03(0x77)]||!this[_0x475b03(0x97)])return;this[_0x475b03(0x97)]['log'](_0x475b03(0x8b),_0x31dec3,{'level':_0x475b03(0x96),'command':_0x187440,'duration':_0x3bbc0d,'details':_0x54a35a});}[a239_0x115d4c(0x7c)](_0x307150,_0x47108d,_0x229a7e){const _0x28265a=a239_0x115d4c;if(!this[_0x28265a(0x77)]||!this[_0x28265a(0x97)])return;this['winstonLogger']['error'](_0x47108d,{'command':_0x307150,'details':_0x229a7e});}[a239_0x115d4c(0x76)](_0xea245b,_0x45e458,_0x37efe0){const _0x25027c=a239_0x115d4c;if(!this[_0x25027c(0x77)]||!this[_0x25027c(0x97)])return;this[_0x25027c(0x97)][_0x25027c(0x76)](_0x45e458,{'command':_0xea245b,'details':_0x37efe0});}async[a239_0x115d4c(0x6a)](_0x1c79d0,_0x227504,_0x7a5dfb){const _0x39ad0d=a239_0x115d4c,_0x457e3b=Date[_0x39ad0d(0x92)]();this[_0x39ad0d(0x8b)](_0x1c79d0,_0x39ad0d(0x8f)+_0x227504);try{const _0x47b318=await _0x7a5dfb(),_0x3be815=Date[_0x39ad0d(0x92)]()-_0x457e3b;return this['success'](_0x1c79d0,_0x39ad0d(0x6f)+_0x227504,_0x3be815),_0x47b318;}catch(_0x4fe543){const _0x577e2e=Date[_0x39ad0d(0x92)]()-_0x457e3b;this[_0x39ad0d(0x7c)](_0x1c79d0,_0x39ad0d(0x83)+_0x227504,{'error':_0x4fe543 instanceof Error?_0x4fe543[_0x39ad0d(0x6e)]:String(_0x4fe543),'duration':_0x577e2e});throw _0x4fe543;}}['readLogs'](){const _0x2106e6=a239_0x115d4c;try{if(!a239_0xd37fc3[_0x2106e6(0x6b)](this['logFilePath']))return[];const _0x4868f2=a239_0xd37fc3[_0x2106e6(0x7d)](this[_0x2106e6(0x77)],_0x2106e6(0x81));return _0x4868f2['split']('\x0a')[_0x2106e6(0x7e)](_0x4e8596=>_0x4e8596['trim']())[_0x2106e6(0x84)](_0xd76630=>JSON[_0x2106e6(0x98)](_0xd76630));}catch(_0x5838c4){return console[_0x2106e6(0x76)](_0x2106e6(0x94),_0x5838c4),[];}}[a239_0x115d4c(0x90)](){const _0x3c0a52=a239_0x115d4c;try{a239_0xd37fc3['existsSync'](this[_0x3c0a52(0x77)])&&a239_0xd37fc3[_0x3c0a52(0x8e)](this[_0x3c0a52(0x77)],'',_0x3c0a52(0x81));}catch(_0x4f1127){console[_0x3c0a52(0x76)](_0x3c0a52(0x9d),_0x4f1127);}}['getWinstonInstance'](){const _0x4985ec=a239_0x115d4c;return this[_0x4985ec(0x97)];}}export const logger=new Logger();
1
+ const a239_0x500d5c=a239_0x3a1b;(function(_0x3d1d4d,_0x45f04b){const _0x48c1f7=a239_0x3a1b,_0x2011b3=_0x3d1d4d();while(!![]){try{const _0x1a0c64=-parseInt(_0x48c1f7(0x1be))/0x1+-parseInt(_0x48c1f7(0x198))/0x2*(parseInt(_0x48c1f7(0x1b8))/0x3)+-parseInt(_0x48c1f7(0x1ac))/0x4+-parseInt(_0x48c1f7(0x19c))/0x5+parseInt(_0x48c1f7(0x190))/0x6*(-parseInt(_0x48c1f7(0x192))/0x7)+parseInt(_0x48c1f7(0x1b4))/0x8+parseInt(_0x48c1f7(0x1bd))/0x9*(parseInt(_0x48c1f7(0x1b5))/0xa);if(_0x1a0c64===_0x45f04b)break;else _0x2011b3['push'](_0x2011b3['shift']());}catch(_0xed4d01){_0x2011b3['push'](_0x2011b3['shift']());}}}(a239_0x37ae,0xe8925));import a239_0x69b7b3 from'winston';import a239_0x51b12d from'node:fs';import a239_0x27af72 from'node:path';function a239_0x3a1b(_0x456037,_0x5f5aaa){_0x456037=_0x456037-0x187;const _0x37aef3=a239_0x37ae();let _0x3a1ba1=_0x37aef3[_0x456037];return _0x3a1ba1;}class Logger{[a239_0x500d5c(0x18f)];[a239_0x500d5c(0x188)];[a239_0x500d5c(0x18e)]='';constructor(){const _0x4c76e7=a239_0x500d5c;this[_0x4c76e7(0x188)]='';}[a239_0x500d5c(0x199)](_0x2a9af5){const _0x56fb36=a239_0x500d5c;this[_0x56fb36(0x18e)]=_0x2a9af5;}[a239_0x500d5c(0x18a)](){const _0x39694c=a239_0x500d5c,_0x47ba17=a239_0x27af72[_0x39694c(0x1ad)](this[_0x39694c(0x188)]);!a239_0x51b12d[_0x39694c(0x1aa)](_0x47ba17)&&a239_0x51b12d[_0x39694c(0x196)](_0x47ba17,{'recursive':!![]});const _0x21f681=a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x1af)](a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x1ba)](),a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x19a)]({'stack':!![]}),a239_0x69b7b3['format'][_0x39694c(0x1b2)](_0x575b31=>{const _0x580f9c=_0x39694c,_0x4dd74e={'timestamp':_0x575b31[_0x580f9c(0x1ba)]||new Date()[_0x580f9c(0x1bf)](),'level':_0x575b31[_0x580f9c(0x18c)]||_0x580f9c(0x1a6),'command':_0x575b31[_0x580f9c(0x18b)]||_0x580f9c(0x1a7),'rawCommand':_0x575b31['rawCommand']||this[_0x580f9c(0x18e)]||undefined,'message':_0x575b31[_0x580f9c(0x1a4)]||'','duration':_0x575b31[_0x580f9c(0x1b3)]||undefined,'details':_0x575b31[_0x580f9c(0x1bb)]||undefined};return JSON[_0x580f9c(0x19b)](_0x4dd74e);}));this[_0x39694c(0x18f)]=a239_0x69b7b3[_0x39694c(0x1a1)]({'level':_0x39694c(0x1a6),'format':_0x21f681,'transports':[new a239_0x69b7b3['transports'][(_0x39694c(0x194))]({'filename':this[_0x39694c(0x188)],'level':_0x39694c(0x1a6)})],'silent':![]}),a239_0x69b7b3[_0x39694c(0x193)]({'success':_0x39694c(0x1a5),'error':_0x39694c(0x19e),'warn':_0x39694c(0x1b6),'info':_0x39694c(0x1ab)});}['setLogPath'](_0x1c43ef){const _0x52f260=a239_0x500d5c;this[_0x52f260(0x188)]=a239_0x27af72['join'](_0x1c43ef,'.lovrabet.log'),this[_0x52f260(0x18f)]&&this['winstonLogger']['clear'](),this[_0x52f260(0x18a)]();}[a239_0x500d5c(0x1a6)](_0xc4e56f,_0x2ad6f8,_0x4cbe34){const _0x417f44=a239_0x500d5c;if(!this[_0x417f44(0x188)]||!this[_0x417f44(0x18f)])return;this['winstonLogger'][_0x417f44(0x1a6)](_0x2ad6f8,{'command':_0xc4e56f,'details':_0x4cbe34});}['success'](_0x24c7d2,_0x55091c,_0x57f0d2,_0x568a19){const _0x109e31=a239_0x500d5c;if(!this[_0x109e31(0x188)]||!this[_0x109e31(0x18f)])return;this['winstonLogger'][_0x109e31(0x1a3)](_0x109e31(0x1a6),_0x55091c,{'level':_0x109e31(0x191),'command':_0x24c7d2,'duration':_0x57f0d2,'details':_0x568a19});}[a239_0x500d5c(0x1ae)](_0x5e356b,_0x10d9ba,_0x449470){const _0x5cd8a8=a239_0x500d5c;if(!this[_0x5cd8a8(0x188)]||!this['winstonLogger'])return;this['winstonLogger'][_0x5cd8a8(0x1ae)](_0x10d9ba,{'command':_0x5e356b,'details':_0x449470});}[a239_0x500d5c(0x1b0)](_0x531e80,_0x3fbc3a,_0x287135){const _0x5d0ed6=a239_0x500d5c;if(!this['logFilePath']||!this[_0x5d0ed6(0x18f)])return;this[_0x5d0ed6(0x18f)][_0x5d0ed6(0x1b0)](_0x3fbc3a,{'command':_0x531e80,'details':_0x287135});}async[a239_0x500d5c(0x1bc)](_0x2150c0,_0x59df09,_0x1352b3){const _0x41dc2b=a239_0x500d5c,_0x4807e2=Date[_0x41dc2b(0x1a2)]();this[_0x41dc2b(0x1a6)](_0x2150c0,_0x41dc2b(0x1b1)+_0x59df09);try{const _0x25439d=await _0x1352b3(),_0x2523a7=Date[_0x41dc2b(0x1a2)]()-_0x4807e2;return this[_0x41dc2b(0x191)](_0x2150c0,_0x41dc2b(0x1a8)+_0x59df09,_0x2523a7),_0x25439d;}catch(_0x4b843b){const _0x5ebe2e=Date['now']()-_0x4807e2;this[_0x41dc2b(0x1ae)](_0x2150c0,_0x41dc2b(0x19d)+_0x59df09,{'error':_0x4b843b instanceof Error?_0x4b843b[_0x41dc2b(0x1a4)]:String(_0x4b843b),'duration':_0x5ebe2e});throw _0x4b843b;}}['readLogs'](){const _0x9d9fec=a239_0x500d5c;try{if(!a239_0x51b12d[_0x9d9fec(0x1aa)](this[_0x9d9fec(0x188)]))return[];const _0x2592e7=a239_0x51b12d['readFileSync'](this[_0x9d9fec(0x188)],_0x9d9fec(0x189));return _0x2592e7['split']('\x0a')[_0x9d9fec(0x1a0)](_0x63ed79=>_0x63ed79[_0x9d9fec(0x197)]())[_0x9d9fec(0x1b7)](_0x212551=>JSON['parse'](_0x212551));}catch(_0xa76ff3){return console['warn'](_0x9d9fec(0x1a9),_0xa76ff3),[];}}[a239_0x500d5c(0x18d)](){const _0x3cc06e=a239_0x500d5c;try{a239_0x51b12d[_0x3cc06e(0x1aa)](this[_0x3cc06e(0x188)])&&a239_0x51b12d[_0x3cc06e(0x187)](this[_0x3cc06e(0x188)],'',_0x3cc06e(0x189));}catch(_0x3df65f){console[_0x3cc06e(0x1b0)](_0x3cc06e(0x195),_0x3df65f);}}[a239_0x500d5c(0x1b9)](){const _0x2bf14d=a239_0x500d5c;return this[_0x2bf14d(0x18f)];}}export const logger=new Logger();function a239_0x37ae(){const _0x5f0401=['format','filter','createLogger','now','log','message','green','info','unknown','完成:\x20','Failed\x20to\x20read\x20logs:','existsSync','blue','2628376YZnVXs','dirname','error','combine','warn','开始执行:\x20','printf','duration','9521360KbMBvd','143140JKJxsX','yellow','map','618279tVwGar','getWinstonInstance','timestamp','details','logTask','3204kJOexf','1830148LUalSm','toISOString','writeFileSync','logFilePath','utf8','initWinstonLogger','command','level','clearLogs','currentRawCommand','winstonLogger','36HzAyPw','success','1369914MjGahe','addColors','File','Failed\x20to\x20clear\x20logs:','mkdirSync','trim','2ptagav','setRawCommand','errors','stringify','7328970sDWXFu','失败:\x20','red'];a239_0x37ae=function(){return _0x5f0401;};return a239_0x37ae();}
@@ -1 +1 @@
1
- (function(_0x395127,_0x493131){const _0x5f38f5=a240_0x55f9,_0x359492=_0x395127();while(!![]){try{const _0x5c7792=-parseInt(_0x5f38f5(0x1df))/0x1+-parseInt(_0x5f38f5(0x1dc))/0x2+parseInt(_0x5f38f5(0x1e2))/0x3+parseInt(_0x5f38f5(0x1e7))/0x4+-parseInt(_0x5f38f5(0x1e5))/0x5+parseInt(_0x5f38f5(0x1e1))/0x6*(-parseInt(_0x5f38f5(0x1e0))/0x7)+-parseInt(_0x5f38f5(0x1de))/0x8*(-parseInt(_0x5f38f5(0x1dd))/0x9);if(_0x5c7792===_0x493131)break;else _0x359492['push'](_0x359492['shift']());}catch(_0x49e0c2){_0x359492['push'](_0x359492['shift']());}}}(a240_0x3500,0x6e6e0));import{CliErrors}from'../errors.js';function a240_0x55f9(_0x1f7080,_0x285a08){_0x1f7080=_0x1f7080-0x1dc;const _0x350080=a240_0x3500();let _0x55f961=_0x350080[_0x1f7080];return _0x55f961;}export function parseJsonParams(_0x44967e){const _0x5364a7=a240_0x55f9;if(!_0x44967e)return undefined;let _0x1ef083;try{_0x1ef083=JSON[_0x5364a7(0x1e3)](_0x44967e);}catch{throw CliErrors[_0x5364a7(0x1e9)](_0x5364a7(0x1ea)+_0x44967e);}if(!_0x1ef083||typeof _0x1ef083!==_0x5364a7(0x1e4)||Array[_0x5364a7(0x1e6)](_0x1ef083))throw CliErrors[_0x5364a7(0x1e9)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x5364a7(0x1e8));return _0x1ef083;}function a240_0x3500(){const _0x408906=['1864dixNwE','32255IGbOmb','345653jqoyoj','78wOBdtF','1519890GeuqTF','parse','object','2118215JGarIX','isArray','475536wlKAwt','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','Invalid\x20JSON\x20for\x20--params:\x20','248670Ogcgtv','40518Nenhyz'];a240_0x3500=function(){return _0x408906;};return a240_0x3500();}
1
+ (function(_0x3b3550,_0x6a5fea){const _0x411389=a240_0x17fc,_0x555211=_0x3b3550();while(!![]){try{const _0x154812=parseInt(_0x411389(0x99))/0x1*(parseInt(_0x411389(0x9b))/0x2)+parseInt(_0x411389(0x91))/0x3+-parseInt(_0x411389(0x92))/0x4*(parseInt(_0x411389(0x94))/0x5)+parseInt(_0x411389(0x90))/0x6+-parseInt(_0x411389(0x8e))/0x7+-parseInt(_0x411389(0x93))/0x8+-parseInt(_0x411389(0x9c))/0x9;if(_0x154812===_0x6a5fea)break;else _0x555211['push'](_0x555211['shift']());}catch(_0x549318){_0x555211['push'](_0x555211['shift']());}}}(a240_0x4475,0x73aae));import{CliErrors}from'../errors.js';function a240_0x17fc(_0x3adc59,_0x1bb191){_0x3adc59=_0x3adc59-0x8e;const _0x447562=a240_0x4475();let _0x17fc73=_0x447562[_0x3adc59];return _0x17fc73;}function a240_0x4475(){const _0x3036da=['parse','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','1FAJdOb','validation','1720174irkaSF','13635864fsYsRp','204813hffSGP','--params\x20must\x20be\x20a\x20JSON\x20object','4669896iaVBtH','2534439PPoPsh','8VgoMIK','3488840LlOgye','72455LlksmS'];a240_0x4475=function(){return _0x3036da;};return a240_0x4475();}export function parseJsonParams(_0x47095a){const _0x12583c=a240_0x17fc;if(!_0x47095a)return undefined;let _0x1f0a98;try{_0x1f0a98=JSON[_0x12583c(0x95)](_0x47095a);}catch{throw CliErrors[_0x12583c(0x9a)](_0x12583c(0x96)+_0x47095a);}if(!_0x1f0a98||typeof _0x1f0a98!==_0x12583c(0x98)||Array['isArray'](_0x1f0a98))throw CliErrors['validation'](_0x12583c(0x8f),_0x12583c(0x97));return _0x1f0a98;}
@@ -1 +1 @@
1
- const a241_0x53a924=a241_0x11d1;function a241_0x11d1(_0x133f6f,_0x1f649b){_0x133f6f=_0x133f6f-0x1d2;const _0x479d90=a241_0x479d();let _0x11d17e=_0x479d90[_0x133f6f];return _0x11d17e;}(function(_0x2bde6a,_0x1a1960){const _0x306f47=a241_0x11d1,_0x523a51=_0x2bde6a();while(!![]){try{const _0x3dddd3=parseInt(_0x306f47(0x1dc))/0x1*(parseInt(_0x306f47(0x1d4))/0x2)+-parseInt(_0x306f47(0x1d2))/0x3+parseInt(_0x306f47(0x1d3))/0x4+-parseInt(_0x306f47(0x1d5))/0x5*(parseInt(_0x306f47(0x1d8))/0x6)+-parseInt(_0x306f47(0x1dd))/0x7*(parseInt(_0x306f47(0x1d7))/0x8)+parseInt(_0x306f47(0x1d9))/0x9*(-parseInt(_0x306f47(0x1de))/0xa)+parseInt(_0x306f47(0x1db))/0xb;if(_0x3dddd3===_0x1a1960)break;else _0x523a51['push'](_0x523a51['shift']());}catch(_0x40f03a){_0x523a51['push'](_0x523a51['shift']());}}}(a241_0x479d,0xf38e2));function a241_0x479d(){const _0xb07994=['5415906fFamzI','1323376bdINtX','2ueOPmD','1049830jCwgFv','.cmd','24eYwzHZ','6oAhQsi','9TLrFhe','win32','48389638sHsbfL','696541WCRLwJ','2381113IUQAXu','13930960DUihoG'];a241_0x479d=function(){return _0xb07994;};return a241_0x479d();}export const isWindows=process['platform']===a241_0x53a924(0x1da);export function resolveNpmBin(_0x3dcee2){const _0x5383d9=a241_0x53a924;return isWindows?_0x3dcee2+_0x5383d9(0x1d6):_0x3dcee2;}
1
+ const a241_0x35346c=a241_0x8616;(function(_0x1aa298,_0x58d1d9){const _0x31c701=a241_0x8616,_0x581d2a=_0x1aa298();while(!![]){try{const _0x4284eb=-parseInt(_0x31c701(0xce))/0x1*(parseInt(_0x31c701(0xca))/0x2)+-parseInt(_0x31c701(0xd0))/0x3+-parseInt(_0x31c701(0xd4))/0x4+-parseInt(_0x31c701(0xcf))/0x5*(parseInt(_0x31c701(0xd3))/0x6)+-parseInt(_0x31c701(0xd2))/0x7*(-parseInt(_0x31c701(0xcb))/0x8)+parseInt(_0x31c701(0xc8))/0x9*(-parseInt(_0x31c701(0xcc))/0xa)+parseInt(_0x31c701(0xc9))/0xb;if(_0x4284eb===_0x58d1d9)break;else _0x581d2a['push'](_0x581d2a['shift']());}catch(_0x366c3c){_0x581d2a['push'](_0x581d2a['shift']());}}}(a241_0x22e4,0xdba64));function a241_0x8616(_0x2e5160,_0x3b9d50){_0x2e5160=_0x2e5160-0xc8;const _0x22e479=a241_0x22e4();let _0x861634=_0x22e479[_0x2e5160];return _0x861634;}export const isWindows=process[a241_0x35346c(0xcd)]==='win32';function a241_0x22e4(){const _0x113b06=['.cmd','91jiKwEB','63582ZLSYyd','6217800sRaglu','51318bhLnzb','81738745YREOnr','1942914gjhnuY','147512dZQcDn','2530JKbiMY','platform','1wRBZfH','795dEvzDH','3352146tVqedA'];a241_0x22e4=function(){return _0x113b06;};return a241_0x22e4();}export function resolveNpmBin(_0x230fb4){const _0x598bd4=a241_0x35346c;return isWindows?_0x230fb4+_0x598bd4(0xd1):_0x230fb4;}
@@ -1 +1 @@
1
- const a242_0x4aba36=a242_0x124b;(function(_0x37185b,_0x4dc688){const _0x2e3afc=a242_0x124b,_0x37e777=_0x37185b();while(!![]){try{const _0x6cd41=-parseInt(_0x2e3afc(0xb6))/0x1+parseInt(_0x2e3afc(0xb1))/0x2+parseInt(_0x2e3afc(0xb4))/0x3*(-parseInt(_0x2e3afc(0xb2))/0x4)+parseInt(_0x2e3afc(0xb5))/0x5+parseInt(_0x2e3afc(0xc3))/0x6*(parseInt(_0x2e3afc(0xbb))/0x7)+parseInt(_0x2e3afc(0xbe))/0x8*(parseInt(_0x2e3afc(0xac))/0x9)+-parseInt(_0x2e3afc(0xbc))/0xa;if(_0x6cd41===_0x4dc688)break;else _0x37e777['push'](_0x37e777['shift']());}catch(_0x49355c){_0x37e777['push'](_0x37e777['shift']());}}}(a242_0x530a,0xcf4b7));function a242_0x124b(_0x123000,_0x5ef167){_0x123000=_0x123000-0xac;const _0x530acd=a242_0x530a();let _0x124b07=_0x530acd[_0x123000];return _0x124b07;}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 _0x18da56=a242_0x124b,_0x41845d=getTemplateBaseUrl();return _0x41845d+_0x18da56(0xb8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a242_0x4aba36(0xc2));function a242_0x530a(){const _0x15b348=['6AjxLKD','122463eGitSC','CDN\x20返回数据格式错误','catch','content','statusText','1083684tVdtXw','3237708OmIJpn','lastUpdated','6WvYnrB','8463115HuvgiC','1310944QbYVVo','lovrabet_rules.mdc','/rules/rules.json','CDN\x20请求失败:\x20','json','11324943FiyzKr','2095070CbIven','.cursor/rules','80uobjqU','utf-8','agents.md','application/json','../../templates/rules/lovrabet_rules.mdc.tpl'];a242_0x530a=function(){return _0x15b348;};return a242_0x530a();}export async function fetchRulesFromCDN(){const _0x3833ec=a242_0x4aba36,_0x43aec7=getRulesCdnUrl(),_0x151f76=await fetch(_0x43aec7,{'headers':{'Accept':_0x3833ec(0xc1)}});if(!_0x151f76['ok'])throw new Error(_0x3833ec(0xb9)+_0x151f76['status']+'\x20'+_0x151f76[_0x3833ec(0xb0)]);const _0x17907e=await _0x151f76[_0x3833ec(0xba)]();if(!_0x17907e['content']||typeof _0x17907e[_0x3833ec(0xaf)]!=='string')throw new Error(_0x3833ec(0xad));return _0x17907e;}export async function getRulesContent(){try{const _0x5ba5e8=await fetchRulesFromCDN();return _0x5ba5e8['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x26b1e5=a242_0x4aba36;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x26b1e5(0xbf));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4a9082){const _0x10dcdf=a242_0x4aba36,_0x2935d7=await fetchRulesFromCDN()[_0x10dcdf(0xae)](()=>null);let _0x23d9bc;_0x2935d7?(_0x23d9bc=_0x2935d7[_0x10dcdf(0xaf)],_0x2935d7[_0x10dcdf(0xb3)]&&(_0x23d9bc=appendUpdateTime(_0x23d9bc,_0x2935d7[_0x10dcdf(0xb3)]))):_0x23d9bc=readLocalTemplate();const _0x29f578=dirname(_0x4a9082);!existsSync(_0x29f578)&&mkdirSync(_0x29f578,{'recursive':!![]}),writeFileSync(_0x4a9082,_0x23d9bc,'utf-8');}export async function copyRulesToCursor(_0x4a3ff8){const _0x5c5e33=a242_0x4aba36,_0x3df504=join(_0x4a3ff8,_0x5c5e33(0xbd)),_0xcde1b8=join(_0x3df504,_0x5c5e33(0xb7));if(existsSync(_0xcde1b8))return![];return await writeRulesFile(_0xcde1b8),!![];}export async function copyRulesToAgentsMd(_0x4c5d93){const _0xaf9a5b=a242_0x4aba36,_0x73d19=join(_0x4c5d93,_0xaf9a5b(0xc0));if(existsSync(_0x73d19))return![];return await writeRulesFile(_0x73d19),!![];}
1
+ const a242_0x15b872=a242_0x30fd;(function(_0x521bfc,_0x5f3df0){const _0xea297a=a242_0x30fd,_0xffcfca=_0x521bfc();while(!![]){try{const _0x4f4248=parseInt(_0xea297a(0x19c))/0x1*(parseInt(_0xea297a(0x1af))/0x2)+-parseInt(_0xea297a(0x1a9))/0x3*(-parseInt(_0xea297a(0x1ae))/0x4)+-parseInt(_0xea297a(0x1a2))/0x5*(parseInt(_0xea297a(0x197))/0x6)+parseInt(_0xea297a(0x1aa))/0x7*(parseInt(_0xea297a(0x1ad))/0x8)+parseInt(_0xea297a(0x19f))/0x9*(parseInt(_0xea297a(0x1a5))/0xa)+parseInt(_0xea297a(0x19a))/0xb*(-parseInt(_0xea297a(0x19e))/0xc)+-parseInt(_0xea297a(0x199))/0xd;if(_0x4f4248===_0x5f3df0)break;else _0xffcfca['push'](_0xffcfca['shift']());}catch(_0x192071){_0xffcfca['push'](_0xffcfca['shift']());}}}(a242_0x4c98,0xd13f1));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a242_0x30fd(_0x4e29bf,_0x156ff1){_0x4e29bf=_0x4e29bf-0x196;const _0x4c9877=a242_0x4c98();let _0x30fd69=_0x4c9877[_0x4e29bf];return _0x30fd69;}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 _0x25e7ce=a242_0x30fd,_0x2c35df=getTemplateBaseUrl();return _0x2c35df+_0x25e7ce(0x1a0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a242_0x15b872(0x1a1));export async function fetchRulesFromCDN(){const _0x587e00=a242_0x15b872,_0x2cc380=getRulesCdnUrl(),_0x1676ec=await fetch(_0x2cc380,{'headers':{'Accept':_0x587e00(0x1a4)}});if(!_0x1676ec['ok'])throw new Error(_0x587e00(0x196)+_0x1676ec[_0x587e00(0x1b0)]+'\x20'+_0x1676ec[_0x587e00(0x1b1)]);const _0x28bd7f=await _0x1676ec[_0x587e00(0x19d)]();if(!_0x28bd7f[_0x587e00(0x1a3)]||typeof _0x28bd7f[_0x587e00(0x1a3)]!==_0x587e00(0x1ac))throw new Error(_0x587e00(0x1a7));return _0x28bd7f;}export async function getRulesContent(){try{const _0x4c4d58=await fetchRulesFromCDN();return _0x4c4d58['content'];}catch{return readLocalTemplate();}}function a242_0x4c98(){const _0x3e3cf1=['26JWLCXX','status','statusText','CDN\x20请求失败:\x20','4182IASoTy','utf-8','15281032APmPPm','88RQBvWU','lastUpdated','68464UKOJAD','json','1160364yrULuS','1901259sacVft','/rules/rules.json','../../templates/rules/lovrabet_rules.mdc.tpl','6455dJmFIj','content','application/json','30xigLKK','本地模板文件不存在:\x20','CDN\x20返回数据格式错误','lovrabet_rules.mdc','57BUGCQE','721QmOQSb','agents.md','string','51704LRKEvr','319256ffRTlS'];a242_0x4c98=function(){return _0x3e3cf1;};return a242_0x4c98();}export function readLocalTemplate(){const _0x13b686=a242_0x15b872;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13b686(0x198));throw new Error(_0x13b686(0x1a6)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xd3bc88){const _0x401837=a242_0x15b872,_0x4eebe2=await fetchRulesFromCDN()['catch'](()=>null);let _0x3a65c3;_0x4eebe2?(_0x3a65c3=_0x4eebe2[_0x401837(0x1a3)],_0x4eebe2['lastUpdated']&&(_0x3a65c3=appendUpdateTime(_0x3a65c3,_0x4eebe2[_0x401837(0x19b)]))):_0x3a65c3=readLocalTemplate();const _0x44a740=dirname(_0xd3bc88);!existsSync(_0x44a740)&&mkdirSync(_0x44a740,{'recursive':!![]}),writeFileSync(_0xd3bc88,_0x3a65c3,'utf-8');}export async function copyRulesToCursor(_0x1258a7){const _0x2290a6=a242_0x15b872,_0x9070b4=join(_0x1258a7,'.cursor/rules'),_0x540c53=join(_0x9070b4,_0x2290a6(0x1a8));if(existsSync(_0x540c53))return![];return await writeRulesFile(_0x540c53),!![];}export async function copyRulesToAgentsMd(_0xa7ce86){const _0x447dde=a242_0x15b872,_0x3cbfe4=join(_0xa7ce86,_0x447dde(0x1ab));if(existsSync(_0x3cbfe4))return![];return await writeRulesFile(_0x3cbfe4),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x494735){return new Promise(_0x22d8f9=>setTimeout(_0x22d8f9,_0x494735));}
1
+ export function sleep(_0x2cc736){return new Promise(_0x28f963=>setTimeout(_0x28f963,_0x2cc736));}
@@ -1 +1 @@
1
- const a244_0x3af362=a244_0x5b2d;function a244_0x138f(){const _0x3f2ae5=['18fSYSYp','YourModel','replace','9781776agOtJb','endsWith','utf8','processFile','extname','name','开始处理模板内容替换','toDisplayTitle','message','.css','replaceContent','3yZHmfl','getMonth','模板内容替换完成','alias','api','pop','462258kNckAz','getFullYear','processTemplate','getHours','default','.js','writeFile','28632jDwxRS','map','.scss','success','.md','toComponentName','formatLocalTimestamp','2693032kODJdB','join','readFile','pad','template','error','tableName','push','alias:\x20\x22','1069322XoKoeh','.tpl','includes','slice','589475GAqPJs','copyFile','\x20},','charAt','.ts','91322ldfvoN','padStart','LOVRABET','readdir','getDate','toLowerCase','305qVWcTJ','promises','35kZUgyn','mkdir','isFile','now','split','isDirectory','processDirectory','\x0a\x20\x20\x20\x20{\x20','110pUxUCx','toUpperCase'];a244_0x138f=function(){return _0x3f2ae5;};return a244_0x138f();}(function(_0x7eff60,_0x3ac141){const _0x58e4dd=a244_0x5b2d,_0x59786f=_0x7eff60();while(!![]){try{const _0x3ffd4e=parseInt(_0x58e4dd(0x215))/0x1+-parseInt(_0x58e4dd(0x211))/0x2*(-parseInt(_0x58e4dd(0x1f4))/0x3)+parseInt(_0x58e4dd(0x201))/0x4*(-parseInt(_0x58e4dd(0x220))/0x5)+parseInt(_0x58e4dd(0x1fa))/0x6*(-parseInt(_0x58e4dd(0x222))/0x7)+parseInt(_0x58e4dd(0x208))/0x8*(-parseInt(_0x58e4dd(0x1e6))/0x9)+parseInt(_0x58e4dd(0x22a))/0xa*(-parseInt(_0x58e4dd(0x21a))/0xb)+parseInt(_0x58e4dd(0x1e9))/0xc;if(_0x3ffd4e===_0x3ac141)break;else _0x59786f['push'](_0x59786f['shift']());}catch(_0x496de8){_0x59786f['push'](_0x59786f['shift']());}}}(a244_0x138f,0x56253));function a244_0x5b2d(_0x3cc6b2,_0x12de3b){_0x3cc6b2=_0x3cc6b2-0x1e6;const _0x138f9a=a244_0x138f();let _0x5b2da5=_0x138f9a[_0x3cc6b2];return _0x5b2da5;}import a244_0x3b3b1f from'node:fs';import a244_0x40e688 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x53c90e){const _0x14abb5=a244_0x5b2d;return String(_0x53c90e)[_0x14abb5(0x21b)](0x2,'0');}static[a244_0x3af362(0x207)](_0x2f8b9c){const _0x8a85be=a244_0x3af362,_0x347796=_0x2f8b9c[_0x8a85be(0x1fb)](),_0x2027de=this['pad'](_0x2f8b9c[_0x8a85be(0x1f5)]()+0x1),_0x2f2106=this['pad'](_0x2f8b9c[_0x8a85be(0x21e)]()),_0x4f680b=this[_0x8a85be(0x20b)](_0x2f8b9c[_0x8a85be(0x1fd)]()),_0x89e5d3=this[_0x8a85be(0x20b)](_0x2f8b9c['getMinutes']()),_0x5b4c1d=this['pad'](_0x2f8b9c['getSeconds']());return{'createdAt':_0x347796+'-'+_0x2027de+'-'+_0x2f2106+'\x20'+_0x4f680b+':'+_0x89e5d3+':'+_0x5b4c1d,'createdDate':_0x347796+'-'+_0x2027de+'-'+_0x2f2106,'createdTime':_0x4f680b+':'+_0x89e5d3+':'+_0x5b4c1d};}static[a244_0x3af362(0x206)](_0x35223f){const _0x12689e=a244_0x3af362,_0x5734c3=_0x35223f[_0x12689e(0x226)]('/')[_0x12689e(0x1f9)]()||_0x35223f;return _0x5734c3['split']('-')[_0x12689e(0x202)](_0x329e46=>_0x329e46[_0x12689e(0x218)](0x0)[_0x12689e(0x22b)]()+_0x329e46[_0x12689e(0x214)](0x1)[_0x12689e(0x21f)]())['join']('');}static[a244_0x3af362(0x1f0)](_0x454af8){const _0x574fe7=a244_0x3af362,_0x3fbe8e=_0x454af8[_0x574fe7(0x226)]('/')[_0x574fe7(0x1f9)]()||_0x454af8;return _0x3fbe8e[_0x574fe7(0x226)]('-')[_0x574fe7(0x202)](_0x4cbeac=>_0x4cbeac[_0x574fe7(0x218)](0x0)[_0x574fe7(0x22b)]()+_0x4cbeac[_0x574fe7(0x214)](0x1)[_0x574fe7(0x21f)]())['join']('\x20');}static[a244_0x3af362(0x1f3)](_0x532695,_0x4d9453,_0x2f2c0f){const _0x5603b4=a244_0x3af362,_0x422110=this['toComponentName'](_0x4d9453),_0x29e3cd=this[_0x5603b4(0x1f0)](_0x4d9453),{createdAt:_0x3e7d8d,createdDate:_0x45d344,createdTime:_0x48882f}=this[_0x5603b4(0x207)](new Date());let _0x15293a=_0x532695['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x5603b4(0x1e8)](/\{ComponentName\}/g,_0x422110)['replace'](/\{DisplayTitle\}/g,_0x29e3cd)['replace'](/\{PageName\}/g,_0x4d9453)[_0x5603b4(0x1e8)](/\{TemplateName\}/g,_0x2f2c0f)[_0x5603b4(0x1e8)](/\{CreatedAt\}/g,_0x3e7d8d)[_0x5603b4(0x1e8)](/\{CreatedDate\}/g,_0x45d344)[_0x5603b4(0x1e8)](/\{CreatedTime\}/g,_0x48882f);return _0x15293a;}static['replaceApiContent'](_0x15e4d4,_0x2dfac8,_0x5afd6a,_0x3fef62,_0xe9c2cb,_0x5e92fc,_0x6ba234,_0x363ff5){const _0x285c6e=a244_0x3af362,_0x59ead9=new Date(),_0x32eebe=_0x59ead9['toISOString'](),_0x57aed4=_0x5afd6a[_0x285c6e(0x202)](_0x127960=>{const _0x2e733a=_0x285c6e,_0x46ed90=['datasetCode:\x20\x22'+_0x127960['datasetCode']+'\x22','tableName:\x20\x22'+_0x127960[_0x2e733a(0x20e)]+'\x22','name:\x20\x22'+_0x127960['name']+'\x22'];return _0x127960[_0x2e733a(0x1f7)]&&_0x46ed90[_0x2e733a(0x20f)](_0x2e733a(0x210)+_0x127960[_0x2e733a(0x1f7)]+'\x22'),_0x2e733a(0x229)+_0x46ed90[_0x2e733a(0x209)](',\x20')+_0x2e733a(0x217);})[_0x285c6e(0x209)](''),_0x5497a0=_0x3fef62||_0x5afd6a[0x0]?.[_0x285c6e(0x1f7)]||_0x285c6e(0x1e7);let _0x5b86d8=_0x15e4d4['replace'](/\{AppCode\}/g,_0x2dfac8)[_0x285c6e(0x1e8)](/\{ModelConfigs\}/g,_0x57aed4)[_0x285c6e(0x1e8)](/\{ExampleModelName\}/g,_0x5497a0)[_0x285c6e(0x1e8)](/\{ApiFileName\}/g,_0xe9c2cb||_0x285c6e(0x1f8))[_0x285c6e(0x1e8)](/\{ConfigName\}/g,_0x5e92fc||_0x285c6e(0x1fe))[_0x285c6e(0x1e8)](/\{ClientConfigParam\}/g,_0x6ba234||'')[_0x285c6e(0x1e8)](/\{VarPrefix\}/g,_0x363ff5||_0x285c6e(0x21c))[_0x285c6e(0x1e8)](/\{CreatedAt\}/g,_0x32eebe);return _0x5b86d8;}static async[a244_0x3af362(0x1fc)](_0x19468a,_0x1b6fb3,_0x2c595a,_0x22fe71,_0x576b8e=!![]){const _0x349a6e=a244_0x3af362,_0x2d3a81=Date[_0x349a6e(0x225)]();try{_0x576b8e&&logger['info']('template',_0x349a6e(0x1ef),{'templatePath':_0x19468a,'targetPath':_0x1b6fb3,'pageName':_0x2c595a,'templateName':_0x22fe71});await a244_0x3b3b1f[_0x349a6e(0x221)][_0x349a6e(0x223)](_0x1b6fb3,{'recursive':!![]}),await this[_0x349a6e(0x228)](_0x19468a,_0x1b6fb3,_0x2c595a,_0x22fe71);if(_0x576b8e){const _0x26ed10=Date[_0x349a6e(0x225)]()-_0x2d3a81;logger[_0x349a6e(0x204)]('template',_0x349a6e(0x1f6),_0x26ed10,{'pageName':_0x2c595a,'templateName':_0x22fe71});}}catch(_0x58dd34){if(_0x576b8e){const _0x1708bd=Date[_0x349a6e(0x225)]()-_0x2d3a81;logger[_0x349a6e(0x20d)](_0x349a6e(0x20c),'模板内容替换失败',{'templatePath':_0x19468a,'targetPath':_0x1b6fb3,'pageName':_0x2c595a,'templateName':_0x22fe71,'error':_0x58dd34 instanceof Error?_0x58dd34[_0x349a6e(0x1f1)]:String(_0x58dd34),'duration':_0x1708bd});}throw _0x58dd34;}}static async[a244_0x3af362(0x228)](_0x2f8a8e,_0x946704,_0x1de76d,_0x4e3533){const _0x391b1e=a244_0x3af362,_0x105673=await a244_0x3b3b1f['promises'][_0x391b1e(0x21d)](_0x2f8a8e,{'withFileTypes':!![]});for(const _0xb90337 of _0x105673){const _0x2f54cf=a244_0x40e688[_0x391b1e(0x209)](_0x2f8a8e,_0xb90337[_0x391b1e(0x1ee)]);let _0x2282de=a244_0x40e688[_0x391b1e(0x209)](_0x946704,_0xb90337[_0x391b1e(0x1ee)]);_0xb90337[_0x391b1e(0x1ee)][_0x391b1e(0x1ea)](_0x391b1e(0x212))&&(_0x2282de=a244_0x40e688[_0x391b1e(0x209)](_0x946704,_0xb90337['name'][_0x391b1e(0x1e8)](/\.tpl$/,'')));if(_0xb90337[_0x391b1e(0x227)]())await a244_0x3b3b1f[_0x391b1e(0x221)][_0x391b1e(0x223)](_0x2282de,{'recursive':!![]}),await this[_0x391b1e(0x228)](_0x2f54cf,_0x2282de,_0x1de76d,_0x4e3533);else _0xb90337[_0x391b1e(0x224)]()&&await this[_0x391b1e(0x1ec)](_0x2f54cf,_0x2282de,_0x1de76d,_0x4e3533);}}static async[a244_0x3af362(0x1ec)](_0x39feb6,_0x48ec33,_0x4cab64,_0x35568a){const _0x247fa2=a244_0x3af362,_0xe226cd=a244_0x40e688[_0x247fa2(0x1ed)](_0x39feb6)['toLowerCase']();_0x39feb6[_0x247fa2(0x1ea)](_0x247fa2(0x212))&&(_0x48ec33=_0x48ec33[_0x247fa2(0x1e8)](/\.tpl$/,''));const _0x1e5fde=['.tsx',_0x247fa2(0x219),'.jsx',_0x247fa2(0x1ff),'.json',_0x247fa2(0x205),_0x247fa2(0x1f2),_0x247fa2(0x203),_0x247fa2(0x212)];if(_0x1e5fde[_0x247fa2(0x213)](_0xe226cd)||_0x39feb6[_0x247fa2(0x1ea)]('.tpl')){const _0x475ca7=await a244_0x3b3b1f[_0x247fa2(0x221)][_0x247fa2(0x20a)](_0x39feb6,'utf8'),_0x45a12d=this[_0x247fa2(0x1f3)](_0x475ca7,_0x4cab64,_0x35568a);await a244_0x3b3b1f[_0x247fa2(0x221)][_0x247fa2(0x200)](_0x48ec33,_0x45a12d,_0x247fa2(0x1eb));}else await a244_0x3b3b1f[_0x247fa2(0x221)][_0x247fa2(0x216)](_0x39feb6,_0x48ec33);}}
1
+ function a244_0x1da7(_0x35473,_0x43e891){_0x35473=_0x35473-0x149;const _0x521a7c=a244_0x521a();let _0x1da796=_0x521a7c[_0x35473];return _0x1da796;}const a244_0x42481c=a244_0x1da7;(function(_0x4e8328,_0x385664){const _0x4fea3e=a244_0x1da7,_0x4dda52=_0x4e8328();while(!![]){try{const _0x4fb881=-parseInt(_0x4fea3e(0x179))/0x1+-parseInt(_0x4fea3e(0x180))/0x2+-parseInt(_0x4fea3e(0x176))/0x3+parseInt(_0x4fea3e(0x15e))/0x4+-parseInt(_0x4fea3e(0x151))/0x5*(parseInt(_0x4fea3e(0x157))/0x6)+parseInt(_0x4fea3e(0x186))/0x7*(parseInt(_0x4fea3e(0x178))/0x8)+parseInt(_0x4fea3e(0x165))/0x9;if(_0x4fb881===_0x385664)break;else _0x4dda52['push'](_0x4dda52['shift']());}catch(_0x438d07){_0x4dda52['push'](_0x4dda52['shift']());}}}(a244_0x521a,0x9535b));import a244_0x11705e from'node:fs';import a244_0x52d4b4 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a244_0x521a(){const _0x3c7956=['includes','toDisplayTitle','slice','endsWith','mkdir','3580948ByZiAC','readdir','tableName','YourModel','utf8','extname','template','27017793PPswWa','push','name','formatLocalTimestamp','模板内容替换完成','writeFile','api','info','processDirectory','getDate','now','map','copyFile','.css','name:\x20\x22','.js','datasetCode:\x20\x22','2693997ejUBkT','default','8aegYre','931862vCnSIN','.json','.md','success','alias','\x20},','.ts','2190136wwtQNa','模板内容替换失败','toLowerCase','padStart','alias:\x20\x22','\x0a\x20\x20\x20\x20{\x20','63966hdCwyN','getFullYear','pop','processFile','toISOString','error','join','datasetCode','isFile','toComponentName','message','processTemplate','开始处理模板内容替换','promises','33660GvKIDD','LOVRABET','getHours','replace','split','.tpl','330DzaOuh','pad'];a244_0x521a=function(){return _0x3c7956;};return a244_0x521a();}export class TemplateReplacer{static[a244_0x42481c(0x158)](_0x661514){const _0x5624ca=a244_0x42481c;return String(_0x661514)[_0x5624ca(0x183)](0x2,'0');}static[a244_0x42481c(0x168)](_0x2430b0){const _0x3ccf43=a244_0x42481c,_0x70bb8e=_0x2430b0[_0x3ccf43(0x187)](),_0x5ea89f=this[_0x3ccf43(0x158)](_0x2430b0['getMonth']()+0x1),_0x237bd9=this['pad'](_0x2430b0[_0x3ccf43(0x16e)]()),_0x2cd821=this['pad'](_0x2430b0[_0x3ccf43(0x153)]()),_0x24235e=this[_0x3ccf43(0x158)](_0x2430b0['getMinutes']()),_0x8a048b=this[_0x3ccf43(0x158)](_0x2430b0['getSeconds']());return{'createdAt':_0x70bb8e+'-'+_0x5ea89f+'-'+_0x237bd9+'\x20'+_0x2cd821+':'+_0x24235e+':'+_0x8a048b,'createdDate':_0x70bb8e+'-'+_0x5ea89f+'-'+_0x237bd9,'createdTime':_0x2cd821+':'+_0x24235e+':'+_0x8a048b};}static[a244_0x42481c(0x14c)](_0x53d9bf){const _0x148e20=a244_0x42481c,_0x48eb04=_0x53d9bf['split']('/')[_0x148e20(0x188)]()||_0x53d9bf;return _0x48eb04[_0x148e20(0x155)]('-')['map'](_0x927451=>_0x927451['charAt'](0x0)['toUpperCase']()+_0x927451['slice'](0x1)['toLowerCase']())[_0x148e20(0x149)]('');}static[a244_0x42481c(0x15a)](_0x79d5e){const _0x27f342=a244_0x42481c,_0x106539=_0x79d5e[_0x27f342(0x155)]('/')['pop']()||_0x79d5e;return _0x106539[_0x27f342(0x155)]('-')['map'](_0x2ab38b=>_0x2ab38b['charAt'](0x0)['toUpperCase']()+_0x2ab38b[_0x27f342(0x15b)](0x1)[_0x27f342(0x182)]())[_0x27f342(0x149)]('\x20');}static['replaceContent'](_0x43a2b4,_0xc27e1b,_0x3c1360){const _0x4abb0d=a244_0x42481c,_0x54dcfc=this[_0x4abb0d(0x14c)](_0xc27e1b),_0x24763d=this['toDisplayTitle'](_0xc27e1b),{createdAt:_0x157327,createdDate:_0x37a738,createdTime:_0x2304fc}=this[_0x4abb0d(0x168)](new Date());let _0x5ecbde=_0x43a2b4['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x4abb0d(0x154)](/\{ComponentName\}/g,_0x54dcfc)[_0x4abb0d(0x154)](/\{DisplayTitle\}/g,_0x24763d)[_0x4abb0d(0x154)](/\{PageName\}/g,_0xc27e1b)[_0x4abb0d(0x154)](/\{TemplateName\}/g,_0x3c1360)[_0x4abb0d(0x154)](/\{CreatedAt\}/g,_0x157327)[_0x4abb0d(0x154)](/\{CreatedDate\}/g,_0x37a738)['replace'](/\{CreatedTime\}/g,_0x2304fc);return _0x5ecbde;}static['replaceApiContent'](_0x50dc8f,_0x257f00,_0x1b5e4c,_0x568725,_0x596707,_0x309b3b,_0x6ecdf6,_0x831bc4){const _0x442c60=a244_0x42481c,_0x983e66=new Date(),_0x4839c6=_0x983e66[_0x442c60(0x18a)](),_0x2816f8=_0x1b5e4c[_0x442c60(0x170)](_0x2f0da6=>{const _0x53eb6d=_0x442c60,_0x1b5c06=[_0x53eb6d(0x175)+_0x2f0da6[_0x53eb6d(0x14a)]+'\x22','tableName:\x20\x22'+_0x2f0da6[_0x53eb6d(0x160)]+'\x22',_0x53eb6d(0x173)+_0x2f0da6[_0x53eb6d(0x167)]+'\x22'];return _0x2f0da6['alias']&&_0x1b5c06[_0x53eb6d(0x166)](_0x53eb6d(0x184)+_0x2f0da6['alias']+'\x22'),_0x53eb6d(0x185)+_0x1b5c06[_0x53eb6d(0x149)](',\x20')+_0x53eb6d(0x17e);})['join'](''),_0x1390a0=_0x568725||_0x1b5e4c[0x0]?.[_0x442c60(0x17d)]||_0x442c60(0x161);let _0x4004a4=_0x50dc8f['replace'](/\{AppCode\}/g,_0x257f00)[_0x442c60(0x154)](/\{ModelConfigs\}/g,_0x2816f8)[_0x442c60(0x154)](/\{ExampleModelName\}/g,_0x1390a0)[_0x442c60(0x154)](/\{ApiFileName\}/g,_0x596707||_0x442c60(0x16b))['replace'](/\{ConfigName\}/g,_0x309b3b||_0x442c60(0x177))['replace'](/\{ClientConfigParam\}/g,_0x6ecdf6||'')[_0x442c60(0x154)](/\{VarPrefix\}/g,_0x831bc4||_0x442c60(0x152))[_0x442c60(0x154)](/\{CreatedAt\}/g,_0x4839c6);return _0x4004a4;}static async[a244_0x42481c(0x14e)](_0x1e5f1f,_0x53e12c,_0x2b650f,_0x36317d,_0x3af2ad=!![]){const _0x3748fc=a244_0x42481c,_0x43a4ac=Date['now']();try{_0x3af2ad&&logger[_0x3748fc(0x16c)]('template',_0x3748fc(0x14f),{'templatePath':_0x1e5f1f,'targetPath':_0x53e12c,'pageName':_0x2b650f,'templateName':_0x36317d});await a244_0x11705e[_0x3748fc(0x150)][_0x3748fc(0x15d)](_0x53e12c,{'recursive':!![]}),await this[_0x3748fc(0x16d)](_0x1e5f1f,_0x53e12c,_0x2b650f,_0x36317d);if(_0x3af2ad){const _0xa1db96=Date[_0x3748fc(0x16f)]()-_0x43a4ac;logger[_0x3748fc(0x17c)]('template',_0x3748fc(0x169),_0xa1db96,{'pageName':_0x2b650f,'templateName':_0x36317d});}}catch(_0x3cf1f8){if(_0x3af2ad){const _0x256142=Date[_0x3748fc(0x16f)]()-_0x43a4ac;logger[_0x3748fc(0x18b)](_0x3748fc(0x164),_0x3748fc(0x181),{'templatePath':_0x1e5f1f,'targetPath':_0x53e12c,'pageName':_0x2b650f,'templateName':_0x36317d,'error':_0x3cf1f8 instanceof Error?_0x3cf1f8[_0x3748fc(0x14d)]:String(_0x3cf1f8),'duration':_0x256142});}throw _0x3cf1f8;}}static async[a244_0x42481c(0x16d)](_0x14e660,_0x3338dd,_0x798ae,_0x3f7739){const _0x50287f=a244_0x42481c,_0x317be0=await a244_0x11705e[_0x50287f(0x150)][_0x50287f(0x15f)](_0x14e660,{'withFileTypes':!![]});for(const _0x1e1810 of _0x317be0){const _0x4e280f=a244_0x52d4b4[_0x50287f(0x149)](_0x14e660,_0x1e1810[_0x50287f(0x167)]);let _0x3a3d71=a244_0x52d4b4['join'](_0x3338dd,_0x1e1810['name']);_0x1e1810[_0x50287f(0x167)][_0x50287f(0x15c)](_0x50287f(0x156))&&(_0x3a3d71=a244_0x52d4b4[_0x50287f(0x149)](_0x3338dd,_0x1e1810[_0x50287f(0x167)]['replace'](/\.tpl$/,'')));if(_0x1e1810['isDirectory']())await a244_0x11705e['promises']['mkdir'](_0x3a3d71,{'recursive':!![]}),await this['processDirectory'](_0x4e280f,_0x3a3d71,_0x798ae,_0x3f7739);else _0x1e1810[_0x50287f(0x14b)]()&&await this[_0x50287f(0x189)](_0x4e280f,_0x3a3d71,_0x798ae,_0x3f7739);}}static async['processFile'](_0x43b9f0,_0x258170,_0x2e4cf0,_0x444944){const _0x493a70=a244_0x42481c,_0x20115f=a244_0x52d4b4[_0x493a70(0x163)](_0x43b9f0)[_0x493a70(0x182)]();_0x43b9f0['endsWith'](_0x493a70(0x156))&&(_0x258170=_0x258170[_0x493a70(0x154)](/\.tpl$/,''));const _0x488a0d=['.tsx',_0x493a70(0x17f),'.jsx',_0x493a70(0x174),_0x493a70(0x17a),_0x493a70(0x17b),_0x493a70(0x172),'.scss',_0x493a70(0x156)];if(_0x488a0d[_0x493a70(0x159)](_0x20115f)||_0x43b9f0[_0x493a70(0x15c)]('.tpl')){const _0x216718=await a244_0x11705e['promises']['readFile'](_0x43b9f0,'utf8'),_0x190070=this['replaceContent'](_0x216718,_0x2e4cf0,_0x444944);await a244_0x11705e['promises'][_0x493a70(0x16a)](_0x258170,_0x190070,_0x493a70(0x162));}else await a244_0x11705e[_0x493a70(0x150)][_0x493a70(0x171)](_0x43b9f0,_0x258170);}}