@lovrabet/rabetbase-cli 2.3.4 → 2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- const a220_0x4c32ca=a220_0x22a2;(function(_0x3a886d,_0xa6219e){const _0x1add1e=a220_0x22a2,_0x2e77e2=_0x3a886d();while(!![]){try{const _0x1dc935=parseInt(_0x1add1e(0x16c))/0x1*(parseInt(_0x1add1e(0x16a))/0x2)+-parseInt(_0x1add1e(0x15a))/0x3*(parseInt(_0x1add1e(0x17a))/0x4)+parseInt(_0x1add1e(0x156))/0x5*(parseInt(_0x1add1e(0x16e))/0x6)+parseInt(_0x1add1e(0x16f))/0x7+parseInt(_0x1add1e(0x17d))/0x8+parseInt(_0x1add1e(0x16d))/0x9*(parseInt(_0x1add1e(0x171))/0xa)+-parseInt(_0x1add1e(0x167))/0xb;if(_0x1dc935===_0xa6219e)break;else _0x2e77e2['push'](_0x2e77e2['shift']());}catch(_0x32fc6e){_0x2e77e2['push'](_0x2e77e2['shift']());}}}(a220_0x1e24,0xf0be7));export const CORE_IDE_CONFIGS={'cursor':{'name':a220_0x4c32ca(0x15d),'description':a220_0x4c32ca(0x170),'folders':[a220_0x4c32ca(0x154),'.cursor'],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x168),'template':a220_0x4c32ca(0x14c)}]},'windsurf':{'name':a220_0x4c32ca(0x175),'description':'Windsurf\x20IDE','folders':[a220_0x4c32ca(0x17b)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.windsurf/workflows/rabetbase.md','template':a220_0x4c32ca(0x14c)}]},'claude':{'name':a220_0x4c32ca(0x16b),'description':'Claude\x20Code','folders':[a220_0x4c32ca(0x165)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x153),'template':a220_0x4c32ca(0x14c)}]},'cline':{'name':a220_0x4c32ca(0x178),'description':'Cline\x20IDE','folders':[a220_0x4c32ca(0x174)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x149),'template':a220_0x4c32ca(0x14c)}]},'codex':{'name':a220_0x4c32ca(0x151),'description':a220_0x4c32ca(0x179),'folders':[a220_0x4c32ca(0x150)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.codex/skills/lovrabet/SKILL.md','template':a220_0x4c32ca(0x14c)}]},'opencode':{'name':a220_0x4c32ca(0x161),'description':'OpenCode\x20IDE','folders':[a220_0x4c32ca(0x160)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x166),'template':a220_0x4c32ca(0x14c)}]},'qoder':{'name':a220_0x4c32ca(0x163),'description':a220_0x4c32ca(0x176),'folders':[a220_0x4c32ca(0x17e)],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x17c),'template':a220_0x4c32ca(0x14c)},{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x162),'template':a220_0x4c32ca(0x14c)}]},'codebuddy':{'name':a220_0x4c32ca(0x15e),'description':'CodeBuddy\x20IDE','folders':[a220_0x4c32ca(0x15f)],'files':[{'type':a220_0x4c32ca(0x15b),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a220_0x4c32ca(0x148),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a220_0x4c32ca(0x15c),'template':a220_0x4c32ca(0x14c)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a220_0x4c32ca(0x177),'description':a220_0x4c32ca(0x157),'folders':[a220_0x4c32ca(0x158)],'files':[{'type':'file','path':a220_0x4c32ca(0x14f),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a220_0x4c32ca(0x172),'description':a220_0x4c32ca(0x159),'folders':['.agent'],'files':[{'type':a220_0x4c32ca(0x15b),'path':a220_0x4c32ca(0x14f),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a220_0x4c32ca(0x164),a220_0x4c32ca(0x14a),a220_0x4c32ca(0x14b),a220_0x4c32ca(0x14d),a220_0x4c32ca(0x169),a220_0x4c32ca(0x14e),a220_0x4c32ca(0x173),a220_0x4c32ca(0x155),a220_0x4c32ca(0x152)];function a220_0x1e24(){const _0x1b957e=['.codex','Codex','windsurf','.claude/skills/lovrabet/SKILL.md','.cursorrules','trae','5qiLwLM','通用模板\x20-\x20兜底方案','.agent','Antigravity\x20IDE','15ZNDIHY','file','.trae/skills/lovrabet/SKILL.md','Cursor','CodeBuddy','.codebuddy','.opencode','OpenCode','.qoder/skills/lovrabet/SKILL.md','Qoder','claude','.claude','.opencode/skills/lovrabet/SKILL.md','76960235cruJHK','.cursor/skills/rabetbase.md','cursor','3225428csqoMG','Claude\x20Code','1DOjIkJ','26127PXNAWX','9859326DiNHFf','12021296PdSiSk','Cursor\x20IDE','5520ACdLGc','Antigravity','qoder','.cline','Windsurf','Qoder\x20IDE','其他\x20(通用模板)','Cline','Codex\x20IDE','390596NhzwPF','.windsurf','.qoder/rules/rabetbase.md','15159984upFrKs','.qoder','Trae','.cline/skills/lovrabet/SKILL.md','cline','codebuddy','SKILL.md.tpl','codex','opencode','.agent/skills/lovrabet/SKILL.md'];a220_0x1e24=function(){return _0x1b957e;};return a220_0x1e24();}function a220_0x22a2(_0x18e529,_0x304c1c){_0x18e529=_0x18e529-0x148;const _0x1e248d=a220_0x1e24();let _0x22a205=_0x1e248d[_0x18e529];return _0x22a205;}export const IDE_LIST=['antigravity',a220_0x4c32ca(0x164),'cline',a220_0x4c32ca(0x14b),'codex',a220_0x4c32ca(0x169),a220_0x4c32ca(0x14e),'qoder',a220_0x4c32ca(0x155),a220_0x4c32ca(0x152),'agent'];export const ALL_CORE_IDES=[a220_0x4c32ca(0x169),a220_0x4c32ca(0x152),'claude',a220_0x4c32ca(0x14a),a220_0x4c32ca(0x14d),a220_0x4c32ca(0x14e),a220_0x4c32ca(0x173),a220_0x4c32ca(0x14b),a220_0x4c32ca(0x155)];
1
+ const a220_0x208e27=a220_0xbb48;(function(_0x77f425,_0x3a86ea){const _0x492d8e=a220_0xbb48,_0x54aa37=_0x77f425();while(!![]){try{const _0x249f3e=parseInt(_0x492d8e(0x1ae))/0x1*(-parseInt(_0x492d8e(0x1a1))/0x2)+-parseInt(_0x492d8e(0x1c1))/0x3+parseInt(_0x492d8e(0x19e))/0x4+parseInt(_0x492d8e(0x1b3))/0x5*(-parseInt(_0x492d8e(0x195))/0x6)+parseInt(_0x492d8e(0x1b5))/0x7*(-parseInt(_0x492d8e(0x19f))/0x8)+parseInt(_0x492d8e(0x1a7))/0x9*(-parseInt(_0x492d8e(0x1a8))/0xa)+parseInt(_0x492d8e(0x192))/0xb;if(_0x249f3e===_0x3a86ea)break;else _0x54aa37['push'](_0x54aa37['shift']());}catch(_0x46f797){_0x54aa37['push'](_0x54aa37['shift']());}}}(a220_0x188f,0xa09cf));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a220_0x208e27(0x1ab),a220_0x208e27(0x190)],'files':[{'type':a220_0x208e27(0x1b1),'path':'.cursor/skills/rabetbase.md','template':a220_0x208e27(0x1ad)}]},'windsurf':{'name':'Windsurf','description':a220_0x208e27(0x1ac),'folders':['.windsurf'],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1ba),'template':'SKILL.md.tpl'}]},'claude':{'name':a220_0x208e27(0x194),'description':a220_0x208e27(0x194),'folders':[a220_0x208e27(0x1b2)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a220_0x208e27(0x1ad)}]},'cline':{'name':a220_0x208e27(0x1a2),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1af),'template':a220_0x208e27(0x1ad)}]},'codex':{'name':a220_0x208e27(0x197),'description':a220_0x208e27(0x1b7),'folders':[a220_0x208e27(0x1bf)],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1bd),'template':a220_0x208e27(0x1ad)}]},'opencode':{'name':'OpenCode','description':a220_0x208e27(0x19d),'folders':[a220_0x208e27(0x1a4)],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1bc),'template':a220_0x208e27(0x1ad)}]},'qoder':{'name':'Qoder','description':a220_0x208e27(0x199),'folders':[a220_0x208e27(0x1b6)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a220_0x208e27(0x1ad)},{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1b4),'template':a220_0x208e27(0x1ad)}]},'codebuddy':{'name':'CodeBuddy','description':a220_0x208e27(0x1a9),'folders':[a220_0x208e27(0x1a3)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a220_0x208e27(0x1ad)}]},'trae':{'name':a220_0x208e27(0x1bb),'description':'Trae\x20IDE','folders':[a220_0x208e27(0x1b8)],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1a5),'template':a220_0x208e27(0x1ad)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a220_0x208e27(0x198),'folders':[a220_0x208e27(0x1b0)],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1b9),'template':a220_0x208e27(0x1ad)}]},'antigravity':{'name':'Antigravity','description':a220_0x208e27(0x1a6),'folders':[a220_0x208e27(0x1b0)],'files':[{'type':a220_0x208e27(0x1b1),'path':a220_0x208e27(0x1b9),'template':a220_0x208e27(0x1ad)}]}};export const CORE_IDE_LIST=[a220_0x208e27(0x1be),a220_0x208e27(0x19b),'codebuddy',a220_0x208e27(0x196),'cursor',a220_0x208e27(0x1c0),a220_0x208e27(0x191),a220_0x208e27(0x19c),'windsurf'];export const IDE_LIST=[a220_0x208e27(0x1aa),a220_0x208e27(0x1be),'cline',a220_0x208e27(0x193),a220_0x208e27(0x196),a220_0x208e27(0x19a),a220_0x208e27(0x1c0),'qoder',a220_0x208e27(0x19c),'windsurf',a220_0x208e27(0x1a0)];function a220_0xbb48(_0x15c304,_0x4a7d13){_0x15c304=_0x15c304-0x190;const _0x188f40=a220_0x188f();let _0xbb4804=_0x188f40[_0x15c304];return _0xbb4804;}function a220_0x188f(){const _0x34cd4b=['Antigravity\x20IDE','126opcAjL','886610QTXEuI','CodeBuddy\x20IDE','antigravity','.cursorrules','Windsurf\x20IDE','SKILL.md.tpl','81922szVrRj','.cline/skills/lovrabet/SKILL.md','.agent','file','.claude','5615635SwSVsP','.qoder/skills/lovrabet/SKILL.md','17045YKghzo','.qoder','Codex\x20IDE','.trae','.agent/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','Trae','.opencode/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','claude','.codex','opencode','2476320lxEDDV','.cursor','qoder','36504061dtvIxu','codebuddy','Claude\x20Code','6HAarjC','codex','Codex','通用模板\x20-\x20兜底方案','Qoder\x20IDE','cursor','cline','trae','OpenCode\x20IDE','4806924XXVtiH','864wNBQQm','agent','10xBEPBr','Cline','.codebuddy','.opencode','.trae/skills/lovrabet/SKILL.md'];a220_0x188f=function(){return _0x34cd4b;};return a220_0x188f();}export const ALL_CORE_IDES=['cursor','windsurf',a220_0x208e27(0x1be),a220_0x208e27(0x19b),a220_0x208e27(0x196),a220_0x208e27(0x1c0),a220_0x208e27(0x191),'codebuddy',a220_0x208e27(0x19c)];
@@ -1 +1 @@
1
- (function(_0x15f046,_0x44ba1e){const _0x53a249=a221_0x58dc,_0x523efa=_0x15f046();while(!![]){try{const _0x33e06b=parseInt(_0x53a249(0x1cd))/0x1+parseInt(_0x53a249(0x1d5))/0x2+parseInt(_0x53a249(0x1d4))/0x3*(-parseInt(_0x53a249(0x1ce))/0x4)+-parseInt(_0x53a249(0x1d1))/0x5*(-parseInt(_0x53a249(0x1d6))/0x6)+-parseInt(_0x53a249(0x1d0))/0x7*(-parseInt(_0x53a249(0x1d2))/0x8)+parseInt(_0x53a249(0x1cf))/0x9+-parseInt(_0x53a249(0x1d3))/0xa;if(_0x33e06b===_0x44ba1e)break;else _0x523efa['push'](_0x523efa['shift']());}catch(_0x2f883c){_0x523efa['push'](_0x523efa['shift']());}}}(a221_0x9dd4,0x93431));function a221_0x9dd4(){const _0x370c96=['1268802apbglV','705035BymtWh','4bBxsao','745857PGTaQM','2653jKElLb','10iPnOss','13864RQvWWM','20940280ZGNjwE','1006431nHUoBP','2330082yhcbgZ'];a221_0x9dd4=function(){return _0x370c96;};return a221_0x9dd4();}function a221_0x58dc(_0x398ca2,_0x303bd6){_0x398ca2=_0x398ca2-0x1cd;const _0x9dd45d=a221_0x9dd4();let _0x58dc58=_0x9dd45d[_0x398ca2];return _0x58dc58;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x142a60,_0x2baeef){const _0x185f0f=a221_0x1db8,_0x1dcc37=_0x142a60();while(!![]){try{const _0x39e5f0=parseInt(_0x185f0f(0x8d))/0x1*(parseInt(_0x185f0f(0x94))/0x2)+parseInt(_0x185f0f(0x91))/0x3*(-parseInt(_0x185f0f(0x8f))/0x4)+-parseInt(_0x185f0f(0x8c))/0x5+-parseInt(_0x185f0f(0x8b))/0x6*(parseInt(_0x185f0f(0x8a))/0x7)+parseInt(_0x185f0f(0x90))/0x8*(-parseInt(_0x185f0f(0x93))/0x9)+parseInt(_0x185f0f(0x89))/0xa*(-parseInt(_0x185f0f(0x92))/0xb)+parseInt(_0x185f0f(0x8e))/0xc;if(_0x39e5f0===_0x2baeef)break;else _0x1dcc37['push'](_0x1dcc37['shift']());}catch(_0x89cdab){_0x1dcc37['push'](_0x1dcc37['shift']());}}}(a221_0x4e19,0xbb23b));function a221_0x1db8(_0x167ad2,_0x45bb16){_0x167ad2=_0x167ad2-0x89;const _0x4e1965=a221_0x4e19();let _0x1db867=_0x4e1965[_0x167ad2];return _0x1db867;}function a221_0x4e19(){const _0x3c3869=['9145860NVQdiK','865870orHiMQ','5ZiJtfF','47631204rTbVaV','4KtxpTN','2520LOnEUK','1162491vryING','11RzAuWg','30483IolmoN','58722OYIypf','1976630sVQdxv','7NzOQPy'];a221_0x4e19=function(){return _0x3c3869;};return a221_0x4e19();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5d8dc0,_0x56a49f){const _0x56004d=a222_0x2414,_0xb933d3=_0x5d8dc0();while(!![]){try{const _0x4e4395=parseInt(_0x56004d(0x1cb))/0x1+parseInt(_0x56004d(0x1cd))/0x2+parseInt(_0x56004d(0x1c6))/0x3+-parseInt(_0x56004d(0x1ca))/0x4+-parseInt(_0x56004d(0x1c4))/0x5+parseInt(_0x56004d(0x1c9))/0x6*(-parseInt(_0x56004d(0x1c7))/0x7)+parseInt(_0x56004d(0x1cc))/0x8*(parseInt(_0x56004d(0x1d3))/0x9);if(_0x4e4395===_0x56a49f)break;else _0xb933d3['push'](_0xb933d3['shift']());}catch(_0x3b6693){_0xb933d3['push'](_0xb933d3['shift']());}}}(a222_0x19ed,0xe8c44));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x51bde6=a222_0x2414,_0x2741d4=getTemplateBaseUrl(),_0x4c7370=[_0x2741d4+_0x51bde6(0x1d0),_0x2741d4+_0x51bde6(0x1d2)];for(const _0x4551dd of _0x4c7370){try{const _0x295366=await fetch(_0x4551dd,{'headers':{'Accept':_0x51bde6(0x1ce)}});if(!_0x295366['ok'])continue;const _0x159d6f=await _0x295366['json']();if(!_0x159d6f[_0x51bde6(0x1c5)]?.[_0x51bde6(0x1cf)]||!_0x159d6f['sdk']?.[_0x51bde6(0x1c8)]?.[_0x51bde6(0x1cf)])continue;return _0x159d6f;}catch{}}return null;}function a222_0x19ed(){const _0x480fcb=['/config/index.json','27YNgDfV','8578890SeDQHl','cli','3973689gZqWol','119ChAVaC','node','322536fuvfzE','676436JvrFrK','1380167bgqDsv','981608bHnyfi','1358636usPKzr','application/json','stableVersion','/config.json','now'];a222_0x19ed=function(){return _0x480fcb;};return a222_0x19ed();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a222_0x2414(_0x4666ce,_0x4b3c0c){_0x4666ce=_0x4666ce-0x1c4;const _0x19ed91=a222_0x19ed();let _0x24143f=_0x19ed91[_0x4666ce];return _0x24143f;}let hasCachedConfig=![];export async function getCdnConfig(){const _0xd2bc59=a222_0x2414,_0x572cac=Date[_0xd2bc59(0x1d1)]();if(hasCachedConfig){const _0x41777c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x572cac-cacheTime<_0x41777c)return cachedConfig;}const _0x27bcbc=await fetchCdnConfig();return cachedConfig=_0x27bcbc,cacheTime=_0x572cac,hasCachedConfig=!![],_0x27bcbc;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x982c1b,_0xb5719b){const _0x1579ca=a222_0x28c2,_0x3ca7a7=_0x982c1b();while(!![]){try{const _0x2a909e=-parseInt(_0x1579ca(0xc5))/0x1*(parseInt(_0x1579ca(0xc4))/0x2)+parseInt(_0x1579ca(0xc6))/0x3+parseInt(_0x1579ca(0xbc))/0x4*(-parseInt(_0x1579ca(0xbe))/0x5)+-parseInt(_0x1579ca(0xc0))/0x6*(parseInt(_0x1579ca(0xc3))/0x7)+parseInt(_0x1579ca(0xbd))/0x8+-parseInt(_0x1579ca(0xc1))/0x9+parseInt(_0x1579ca(0xc2))/0xa;if(_0x2a909e===_0xb5719b)break;else _0x3ca7a7['push'](_0x3ca7a7['shift']());}catch(_0x248dab){_0x3ca7a7['push'](_0x3ca7a7['shift']());}}}(a222_0x2abd,0x770b9));function a222_0x28c2(_0x569a69,_0x195cb5){_0x569a69=_0x569a69-0xb5;const _0x2abd58=a222_0x2abd();let _0x28c25b=_0x2abd58[_0x569a69];return _0x28c25b;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5318fe=a222_0x28c2,_0x5662fe=getTemplateBaseUrl(),_0x409b11=[_0x5662fe+_0x5318fe(0xb5),_0x5662fe+_0x5318fe(0xba)];for(const _0x136d73 of _0x409b11){try{const _0xa600d8=await fetch(_0x136d73,{'headers':{'Accept':_0x5318fe(0xb6)}});if(!_0xa600d8['ok'])continue;const _0x55e8a7=await _0xa600d8[_0x5318fe(0xbf)]();if(!_0x55e8a7[_0x5318fe(0xb8)]?.[_0x5318fe(0xb7)]||!_0x55e8a7['sdk']?.[_0x5318fe(0xb9)]?.[_0x5318fe(0xb7)])continue;return _0x55e8a7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a222_0x2abd(){const _0x3680aa=['application/json','stableVersion','cli','node','/config/index.json','now','164VOSuCI','5371800hjxqoi','42915zFIDAu','json','1000938xSYzrc','8059140RhVnOt','16237170oekENk','7qhAKiJ','13574xonXRD','70lloMCo','245079IaAenA','/config.json'];a222_0x2abd=function(){return _0x3680aa;};return a222_0x2abd();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x13900a=a222_0x28c2,_0x55f904=Date[_0x13900a(0xbb)]();if(hasCachedConfig){const _0x548470=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55f904-cacheTime<_0x548470)return cachedConfig;}const _0x4e8d1f=await fetchCdnConfig();return cachedConfig=_0x4e8d1f,cacheTime=_0x55f904,hasCachedConfig=!![],_0x4e8d1f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a223_0x286f19=a223_0x8d82;(function(_0x4d8316,_0x578475){const _0x557474=a223_0x8d82,_0x9a0ebe=_0x4d8316();while(!![]){try{const _0x2af096=-parseInt(_0x557474(0x15b))/0x1*(parseInt(_0x557474(0x16e))/0x2)+parseInt(_0x557474(0x151))/0x3*(-parseInt(_0x557474(0x153))/0x4)+-parseInt(_0x557474(0x150))/0x5*(-parseInt(_0x557474(0x161))/0x6)+-parseInt(_0x557474(0x15f))/0x7+-parseInt(_0x557474(0x157))/0x8*(parseInt(_0x557474(0x15d))/0x9)+-parseInt(_0x557474(0x173))/0xa*(parseInt(_0x557474(0x169))/0xb)+-parseInt(_0x557474(0x156))/0xc*(-parseInt(_0x557474(0x174))/0xd);if(_0x2af096===_0x578475)break;else _0x9a0ebe['push'](_0x9a0ebe['shift']());}catch(_0x8c5883){_0x9a0ebe['push'](_0x9a0ebe['shift']());}}}(a223_0x5b0b,0xec741));function a223_0x8d82(_0x1ecd13,_0x460087){_0x1ecd13=_0x1ecd13-0x14b;const _0x5b0bd8=a223_0x5b0b();let _0x8d824e=_0x5b0bd8[_0x1ecd13];return _0x8d824e;}import a223_0x2c883a from'node:fs';import a223_0x4b0348 from'node:path';function a223_0x5b0b(){const _0x3261a9=['14041379Dihggq','stableVersion','devDependencies','\x20\x20\x20Current\x20version:\x20','join','8CDTeWU','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','node','sdk','10SWUivL','26SSDntw','packageName','minVersion','\x20\x20\x20Upgrade\x20command:\x20','1.2.0','package.json','2479510xIwLOm','113961WyTUVb','latest','88OhajGT','coerce','dependencies','23431116qncNeE','2706760HhXPPq','log','readFileSync','test','229027cxRBzy','needsUpgrade','9eIKBXv','@lovrabet/sdk','461433sCgHQX','version','6xpuPYf','npm\x20install\x20','↪\x20SDK\x20update\x20available','parse','utf8','existsSync','all','node_modules'];a223_0x5b0b=function(){return _0x3261a9;};return a223_0x5b0b();}import a223_0x16716c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a223_0x286f19(0x14e);function isNonNumericVersion(_0xb3e4b9){const _0x398967=a223_0x286f19,_0x30210b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x30210b['some'](_0x131549=>_0x131549[_0x398967(0x15a)](_0xb3e4b9));}function getInstalledVersion(_0x1c6740,_0x1a9cb0){const _0x3f124f=a223_0x286f19;try{const _0x429c3d=a223_0x4b0348['join'](_0x1c6740,_0x3f124f(0x168),_0x1a9cb0,_0x3f124f(0x14f));if(a223_0x2c883a['existsSync'](_0x429c3d)){const _0x132cfb=JSON[_0x3f124f(0x164)](a223_0x2c883a['readFileSync'](_0x429c3d,'utf-8'));return _0x132cfb[_0x3f124f(0x160)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4e5774=a223_0x286f19;try{const _0x5090b2=await getCdnConfig();return _0x5090b2?.[_0x4e5774(0x172)]?.[_0x4e5774(0x171)]?.[_0x4e5774(0x16a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x164eb7=a223_0x286f19;try{const _0x1e9e7a=await getCdnConfig();return _0x1e9e7a?.[_0x164eb7(0x172)]?.[_0x164eb7(0x171)]?.[_0x164eb7(0x14b)]||_0x164eb7(0x15e);}catch{return _0x164eb7(0x15e);}}export async function checkSdkVersion(_0x284740){const _0x44a357=a223_0x286f19,_0x93d421=a223_0x4b0348[_0x44a357(0x16d)](_0x284740,'package.json'),[_0x14f753,_0x4e4738]=await Promise[_0x44a357(0x167)]([getSdkStableVersion(),getSdkPackageName()]),_0xbfec06=_0x14f753||FALLBACK_MIN_SDK_VERSION;if(!a223_0x2c883a['existsSync'](_0x93d421))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};try{const _0x9225b3=JSON[_0x44a357(0x164)](a223_0x2c883a[_0x44a357(0x159)](_0x93d421,_0x44a357(0x165))),_0x2d5c4d=_0x9225b3[_0x44a357(0x155)]||{},_0x3a7de1=_0x9225b3[_0x44a357(0x16b)]||{},_0x3233d0=_0x2d5c4d[_0x4e4738]||_0x3a7de1[_0x4e4738];if(!_0x3233d0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};let _0x342e50=getInstalledVersion(_0x284740,_0x4e4738);!_0x342e50&&(_0x342e50=_0x3233d0);if(isNonNumericVersion(_0x3233d0))return{'installed':!![],'version':_0x342e50,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};const _0x4264d2=a223_0x16716c[_0x44a357(0x154)](_0x342e50),_0x1f3b64=a223_0x16716c[_0x44a357(0x154)](_0xbfec06),_0x53ebb8=_0x4264d2&&_0x1f3b64?a223_0x16716c['lt'](_0x4264d2,_0x1f3b64):![];return{'installed':!![],'version':_0x342e50,'needsUpgrade':_0x53ebb8,'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbfec06,'packageName':_0x4e4738,'stableVersion':_0x14f753};}}export function checkSdkVersionSync(_0x5f5106){const _0x12cd0b=a223_0x286f19,_0x39f8e8=a223_0x4b0348['join'](_0x5f5106,'package.json'),_0x5ece5b=_0x12cd0b(0x15e);if(!a223_0x2c883a[_0x12cd0b(0x166)](_0x39f8e8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};try{const _0xf2eeb4=JSON[_0x12cd0b(0x164)](a223_0x2c883a['readFileSync'](_0x39f8e8,_0x12cd0b(0x165))),_0x49bdb1=_0xf2eeb4[_0x12cd0b(0x155)]||{},_0x24ee45=_0xf2eeb4[_0x12cd0b(0x16b)]||{},_0x1eb219=_0x49bdb1[_0x5ece5b]||_0x24ee45[_0x5ece5b];if(!_0x1eb219)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};let _0x29b0b1=getInstalledVersion(_0x5f5106,_0x5ece5b);!_0x29b0b1&&(_0x29b0b1=_0x1eb219);if(isNonNumericVersion(_0x1eb219))return{'installed':!![],'version':_0x29b0b1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};const _0x494377=a223_0x16716c[_0x12cd0b(0x154)](_0x29b0b1),_0x5d1cd5=_0x494377?a223_0x16716c['lt'](_0x494377,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29b0b1,'needsUpgrade':_0x5d1cd5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ece5b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3c0c94){const _0x4cb29a=a223_0x286f19;if(!_0x3c0c94[_0x4cb29a(0x15c)])return;const _0x3e34d9=_0x4cb29a(0x16f),_0x4becba='\x1b[0m',_0x36275f='\x1b[1m',_0x5c69f7=_0x3c0c94['packageName']||_0x4cb29a(0x15e),_0x1d8b5e=_0x3c0c94['stableVersion']||_0x3c0c94[_0x4cb29a(0x14c)],_0x4ea08f=_0x4cb29a(0x162)+_0x5c69f7+'@'+(_0x1d8b5e||_0x4cb29a(0x152));console['log'](),console['log'](''+_0x3e34d9+_0x36275f+_0x4cb29a(0x163)+_0x4becba),console[_0x4cb29a(0x158)](_0x3e34d9+_0x4cb29a(0x16c)+_0x5c69f7+'@'+_0x3c0c94['version']+_0x4becba),console[_0x4cb29a(0x158)](_0x3e34d9+_0x4cb29a(0x170)+_0x1d8b5e+_0x4becba),console['log'](_0x3e34d9+_0x4cb29a(0x14d)+_0x4ea08f+_0x4becba),console[_0x4cb29a(0x158)]();}
1
+ (function(_0x112e58,_0xf91567){const _0x5d395e=a223_0x319d,_0x2dd56b=_0x112e58();while(!![]){try{const _0x425fd=-parseInt(_0x5d395e(0x189))/0x1+parseInt(_0x5d395e(0x19c))/0x2*(-parseInt(_0x5d395e(0x17e))/0x3)+-parseInt(_0x5d395e(0x187))/0x4*(parseInt(_0x5d395e(0x197))/0x5)+parseInt(_0x5d395e(0x186))/0x6*(parseInt(_0x5d395e(0x19a))/0x7)+-parseInt(_0x5d395e(0x18d))/0x8+-parseInt(_0x5d395e(0x188))/0x9+parseInt(_0x5d395e(0x193))/0xa;if(_0x425fd===_0xf91567)break;else _0x2dd56b['push'](_0x2dd56b['shift']());}catch(_0x5454fe){_0x2dd56b['push'](_0x2dd56b['shift']());}}}(a223_0x2066,0x4d0ff));import a223_0x234dd2 from'node:fs';function a223_0x2066(){const _0x2ec772=['node','567194tRwhYD','existsSync','\x1b[33m','sdk','\x1b[1m','some','join','log','@lovrabet/sdk','3oMymcV','stableVersion','needsUpgrade','dependencies','utf-8','package.json','devDependencies','parse','1446VscKGq','52HtNmyQ','1308276vZEdnB','595987PpJoza','minVersion','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','2511176oRyyHd','utf8','\x20\x20\x20Current\x20version:\x20','readFileSync','npm\x20install\x20','test','16443360adXHzR','↪\x20SDK\x20update\x20available','packageName','version','161735NEXDtt','latest','coerce','12509WLtZCh'];a223_0x2066=function(){return _0x2ec772;};return a223_0x2066();}import a223_0x217ec9 from'node:path';import a223_0x2971e3 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x429aec){const _0x285f43=a223_0x319d,_0x585672=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x585672[_0x285f43(0x1a1)](_0x36cdaa=>_0x36cdaa[_0x285f43(0x192)](_0x429aec));}function a223_0x319d(_0x1e7d6a,_0x5a0eb6){_0x1e7d6a=_0x1e7d6a-0x17c;const _0x2066cb=a223_0x2066();let _0x319d88=_0x2066cb[_0x1e7d6a];return _0x319d88;}function getInstalledVersion(_0x8c5c2f,_0x4c7166){const _0xda73e2=a223_0x319d;try{const _0x358e7c=a223_0x217ec9['join'](_0x8c5c2f,'node_modules',_0x4c7166,_0xda73e2(0x183));if(a223_0x234dd2[_0xda73e2(0x19d)](_0x358e7c)){const _0x46aa6a=JSON['parse'](a223_0x234dd2[_0xda73e2(0x190)](_0x358e7c,_0xda73e2(0x182)));return _0x46aa6a['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1042b5=a223_0x319d;try{const _0x1d9d49=await getCdnConfig();return _0x1d9d49?.[_0x1042b5(0x19f)]?.[_0x1042b5(0x19b)]?.[_0x1042b5(0x17f)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x237eeb=a223_0x319d;try{const _0xdfb595=await getCdnConfig();return _0xdfb595?.[_0x237eeb(0x19f)]?.[_0x237eeb(0x19b)]?.[_0x237eeb(0x195)]||_0x237eeb(0x17d);}catch{return _0x237eeb(0x17d);}}export async function checkSdkVersion(_0x1dc4dd){const _0x190b33=a223_0x319d,_0x47d231=a223_0x217ec9[_0x190b33(0x1a2)](_0x1dc4dd,_0x190b33(0x183)),[_0x288509,_0x277740]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3ab851=_0x288509||FALLBACK_MIN_SDK_VERSION;if(!a223_0x234dd2['existsSync'](_0x47d231))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3ab851,'packageName':_0x277740,'stableVersion':_0x288509};try{const _0x32ed54=JSON[_0x190b33(0x185)](a223_0x234dd2['readFileSync'](_0x47d231,_0x190b33(0x18e))),_0x357d9d=_0x32ed54[_0x190b33(0x181)]||{},_0xc17e6e=_0x32ed54[_0x190b33(0x184)]||{},_0x1cc8e5=_0x357d9d[_0x277740]||_0xc17e6e[_0x277740];if(!_0x1cc8e5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3ab851,'packageName':_0x277740,'stableVersion':_0x288509};let _0x196c88=getInstalledVersion(_0x1dc4dd,_0x277740);!_0x196c88&&(_0x196c88=_0x1cc8e5);if(isNonNumericVersion(_0x1cc8e5))return{'installed':!![],'version':_0x196c88,'needsUpgrade':![],'minVersion':_0x3ab851,'packageName':_0x277740,'stableVersion':_0x288509};const _0x2711e3=a223_0x2971e3['coerce'](_0x196c88),_0x3a2d8e=a223_0x2971e3[_0x190b33(0x199)](_0x3ab851),_0x2b213e=_0x2711e3&&_0x3a2d8e?a223_0x2971e3['lt'](_0x2711e3,_0x3a2d8e):![];return{'installed':!![],'version':_0x196c88,'needsUpgrade':_0x2b213e,'minVersion':_0x3ab851,'packageName':_0x277740,'stableVersion':_0x288509};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3ab851,'packageName':_0x277740,'stableVersion':_0x288509};}}export function checkSdkVersionSync(_0x4bd111){const _0x43b143=a223_0x319d,_0x265b9a=a223_0x217ec9[_0x43b143(0x1a2)](_0x4bd111,_0x43b143(0x183)),_0x3a3153=_0x43b143(0x17d);if(!a223_0x234dd2['existsSync'](_0x265b9a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3a3153,'stableVersion':null};try{const _0x25d940=JSON[_0x43b143(0x185)](a223_0x234dd2[_0x43b143(0x190)](_0x265b9a,'utf8')),_0x1023de=_0x25d940[_0x43b143(0x181)]||{},_0x330711=_0x25d940['devDependencies']||{},_0x1f6a3b=_0x1023de[_0x3a3153]||_0x330711[_0x3a3153];if(!_0x1f6a3b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3a3153,'stableVersion':null};let _0x531bcf=getInstalledVersion(_0x4bd111,_0x3a3153);!_0x531bcf&&(_0x531bcf=_0x1f6a3b);if(isNonNumericVersion(_0x1f6a3b))return{'installed':!![],'version':_0x531bcf,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3a3153,'stableVersion':null};const _0x5deb90=a223_0x2971e3[_0x43b143(0x199)](_0x531bcf),_0x59e5e1=_0x5deb90?a223_0x2971e3['lt'](_0x5deb90,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x531bcf,'needsUpgrade':_0x59e5e1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3a3153,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3a3153,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x20c674){const _0x3c4e32=a223_0x319d;if(!_0x20c674[_0x3c4e32(0x180)])return;const _0xd4304e=_0x3c4e32(0x19e),_0x307279=_0x3c4e32(0x18b),_0x3d281d=_0x3c4e32(0x1a0),_0x2728f5=_0x20c674[_0x3c4e32(0x195)]||_0x3c4e32(0x17d),_0x1176a0=_0x20c674[_0x3c4e32(0x17f)]||_0x20c674[_0x3c4e32(0x18a)],_0x43ef6d=_0x3c4e32(0x191)+_0x2728f5+'@'+(_0x1176a0||_0x3c4e32(0x198));console[_0x3c4e32(0x17c)](),console[_0x3c4e32(0x17c)](''+_0xd4304e+_0x3d281d+_0x3c4e32(0x194)+_0x307279),console[_0x3c4e32(0x17c)](_0xd4304e+_0x3c4e32(0x18f)+_0x2728f5+'@'+_0x20c674[_0x3c4e32(0x196)]+_0x307279),console[_0x3c4e32(0x17c)](_0xd4304e+'\x20\x20\x20Stable\x20version:\x20'+_0x1176a0+_0x307279),console['log'](_0xd4304e+_0x3c4e32(0x18c)+_0x43ef6d+_0x307279),console[_0x3c4e32(0x17c)]();}
@@ -1 +1 @@
1
- (function(_0x13263b,_0x20b623){const _0x13ef69=a224_0x5990,_0x2fa4c1=_0x13263b();while(!![]){try{const _0x31be5f=-parseInt(_0x13ef69(0x1af))/0x1*(parseInt(_0x13ef69(0x1b6))/0x2)+parseInt(_0x13ef69(0x196))/0x3*(parseInt(_0x13ef69(0x1a4))/0x4)+parseInt(_0x13ef69(0x1b4))/0x5*(-parseInt(_0x13ef69(0x19a))/0x6)+-parseInt(_0x13ef69(0x19e))/0x7*(parseInt(_0x13ef69(0x195))/0x8)+parseInt(_0x13ef69(0x1a5))/0x9+-parseInt(_0x13ef69(0x1a2))/0xa*(-parseInt(_0x13ef69(0x199))/0xb)+-parseInt(_0x13ef69(0x1a1))/0xc*(-parseInt(_0x13ef69(0x1b2))/0xd);if(_0x31be5f===_0x20b623)break;else _0x2fa4c1['push'](_0x2fa4c1['shift']());}catch(_0x17e597){_0x2fa4c1['push'](_0x2fa4c1['shift']());}}}(a224_0x4f60,0xeebc4));import{readFileSync}from'node:fs';function a224_0x4f60(){const _0x1ec316=['\x20\x20\x20Minimum\x20supported:\x20','coerce','8XiziGn','877077JVEsRG','Upgrade\x20command:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','11anPIaf','1032uOyViH','package.json','Minimum\x20supported:\x20','\x20\x20\x20','9370459HPzILH','stableVersion','belowMinimum','2503824OpsrFJ','2449140iyUUlY','\x20\x20\x20Current\x20CLI\x20version:\x20','12TtExpu','7869672GCABrY','\x1b[1m','npm\x20install\x20-g\x20','minimumVersionMessage','latest','version','upgradeMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','currentVersion','utf-8','1jqJGKw','Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','208wccuUD','filter','33775jFUdJa','minimumVersion','3712948QELbsv','\x20\x20\x20Recommended\x20stable:\x20','validation','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','log','↪\x20New\x20version\x20available','../..'];a224_0x4f60=function(){return _0x1ec316;};return a224_0x4f60();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a224_0x2836bc from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a224_0x5990(_0x320b42,_0x1c6b3e){_0x320b42=_0x320b42-0x190;const _0x4f609f=a224_0x4f60();let _0x599097=_0x4f609f[_0x320b42];return _0x599097;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x86c42e){const _0x4767bf=a224_0x5990,_0x35ee99=_0x86c42e[_0x4767bf(0x19f)]||_0x4767bf(0x1a9);return _0x4767bf(0x1a7)+NPM_PACKAGE_NAME+'@'+_0x35ee99;}function getCurrentCliVersion(){const _0xc6d963=a224_0x5990;try{const _0x2d37f9=fileURLToPath(import.meta.url),_0x56f8c0=resolve(dirname(_0x2d37f9),_0xc6d963(0x192)),_0x3b2ee1=resolve(_0x56f8c0,_0xc6d963(0x19b)),_0x6edcb=JSON['parse'](readFileSync(_0x3b2ee1,_0xc6d963(0x1ae)));return _0x6edcb[_0xc6d963(0x1aa)]||_0xc6d963(0x1bb);}catch{return _0xc6d963(0x1bb);}}export async function checkCliVersion(){const _0x1831be=a224_0x5990,_0x3b8051=getCurrentCliVersion(),_0x442442=await getCliVersionPolicy(),_0x3a3a10=_0x442442?.[_0x1831be(0x19f)]||null,_0x5222b8=_0x442442?.['minimumVersion']||null;let _0x220bc4=![],_0x11bac1=![];const _0x173f96=a224_0x2836bc[_0x1831be(0x194)](_0x3b8051);if(_0x173f96&&_0x3a3a10)try{const _0x47c156=a224_0x2836bc['coerce'](_0x3a3a10);if(_0x47c156)_0x220bc4=a224_0x2836bc['lt'](_0x173f96,_0x47c156);}catch{}if(_0x173f96&&_0x5222b8)try{const _0x28d14b=a224_0x2836bc['coerce'](_0x5222b8);if(_0x28d14b)_0x11bac1=a224_0x2836bc['lt'](_0x173f96,_0x28d14b);}catch{}return _0x11bac1&&(_0x220bc4=!![]),{'currentVersion':_0x3b8051,'stableVersion':_0x3a3a10,'minimumVersion':_0x5222b8,'needsUpgrade':_0x220bc4,'belowMinimum':_0x11bac1,'isPreRelease':![],'upgradeMessage':_0x442442?.[_0x1831be(0x1ab)],'minimumVersionMessage':_0x442442?.[_0x1831be(0x1a8)]};}export function printCliUpgradeWarning(_0x386864){const _0x402911=a224_0x5990;if(!_0x386864['needsUpgrade']&&!_0x386864[_0x402911(0x1a0)])return;const _0x568182='\x1b[31m',_0x207803='\x1b[33m',_0x47072e=_0x402911(0x1b9),_0x2d7df3=_0x402911(0x1a6),_0x327ddc=getCliUpgradeCommand(_0x386864);console['log'](),_0x386864[_0x402911(0x1a0)]?(console[_0x402911(0x190)](''+_0x568182+_0x2d7df3+_0x402911(0x198)+_0x47072e),console['log'](_0x568182+_0x402911(0x1a3)+_0x386864[_0x402911(0x1ad)]+_0x47072e),_0x386864['minimumVersion']&&console[_0x402911(0x190)](_0x568182+_0x402911(0x193)+_0x386864[_0x402911(0x1b5)]+_0x47072e),_0x386864[_0x402911(0x19f)]&&_0x386864[_0x402911(0x19f)]!==_0x386864[_0x402911(0x1b5)]&&console['log'](_0x568182+_0x402911(0x1b7)+_0x386864[_0x402911(0x19f)]+_0x47072e),_0x386864[_0x402911(0x1a8)]&&console[_0x402911(0x190)](_0x568182+_0x402911(0x19d)+_0x386864['minimumVersionMessage']+_0x47072e),console[_0x402911(0x190)](_0x568182+_0x402911(0x1ba)+_0x327ddc+_0x47072e)):(console['log'](''+_0x207803+_0x2d7df3+_0x402911(0x191)+_0x47072e),console['log'](_0x207803+_0x402911(0x1a3)+_0x386864[_0x402911(0x1ad)]+_0x47072e),console[_0x402911(0x190)](_0x207803+_0x402911(0x1b1)+_0x386864[_0x402911(0x19f)]+_0x47072e),_0x386864[_0x402911(0x1ab)]&&console[_0x402911(0x190)](_0x207803+_0x402911(0x19d)+_0x386864[_0x402911(0x1ab)]+_0x47072e),console[_0x402911(0x190)](_0x207803+_0x402911(0x1ba)+_0x327ddc+_0x47072e)),console[_0x402911(0x190)]();}export function assertCliVersionSupported(_0x1b03d9){const _0x465fab=a224_0x5990;if(!_0x1b03d9[_0x465fab(0x1a0)])return;const _0x486e6e=[_0x1b03d9['minimumVersionMessage'],_0x465fab(0x1b0)+_0x1b03d9[_0x465fab(0x1ad)],_0x1b03d9['minimumVersion']?_0x465fab(0x19c)+_0x1b03d9[_0x465fab(0x1b5)]:null,_0x465fab(0x197)+getCliUpgradeCommand(_0x1b03d9)][_0x465fab(0x1b3)](Boolean)['join']('\x0a');throw CliErrors[_0x465fab(0x1b8)](_0x465fab(0x1ac),_0x486e6e);}
1
+ (function(_0x3b79f0,_0x25a191){const _0x288850=a224_0x2b68,_0x17a0da=_0x3b79f0();while(!![]){try{const _0x679402=parseInt(_0x288850(0x1e7))/0x1*(parseInt(_0x288850(0x1ec))/0x2)+-parseInt(_0x288850(0x1db))/0x3*(-parseInt(_0x288850(0x1e1))/0x4)+-parseInt(_0x288850(0x1ee))/0x5*(parseInt(_0x288850(0x1f6))/0x6)+-parseInt(_0x288850(0x1f9))/0x7*(parseInt(_0x288850(0x1d9))/0x8)+-parseInt(_0x288850(0x1d6))/0x9*(parseInt(_0x288850(0x1e0))/0xa)+parseInt(_0x288850(0x1dd))/0xb*(-parseInt(_0x288850(0x1f1))/0xc)+-parseInt(_0x288850(0x1d8))/0xd*(-parseInt(_0x288850(0x1fb))/0xe);if(_0x679402===_0x25a191)break;else _0x17a0da['push'](_0x17a0da['shift']());}catch(_0x261e01){_0x17a0da['push'](_0x17a0da['shift']());}}}(a224_0xab47,0x19f52));function a224_0x2b68(_0x233fbc,_0x3fb11d){_0x233fbc=_0x233fbc-0x1d5;const _0xab4720=a224_0xab47();let _0x2b68a9=_0xab4720[_0x233fbc];return _0x2b68a9;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a224_0x2b5984 from'semver';function a224_0xab47(){const _0x310625=['13kGxUsj','log','package.json','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','3422Tkwzhx','../..','717505daRnIi','\x1b[1m','minimumVersion','2418036WIBrQN','\x20\x20\x20Upgrade\x20command:\x20','belowMinimum','1.0.0','coerce','6Yffilt','latest','filter','1136198bhGauk','currentVersion','14OXGLwN','\x1b[31m','Minimum\x20supported:\x20','72hVZTGz','npm\x20install\x20-g\x20','5978102JdhtuD','8qpFyIG','stableVersion','75tpyDGF','utf-8','11sEQyZY','needsUpgrade','↪\x20Critical\x20CLI\x20upgrade\x20required','71790xaJFBT','30236uWYtMI','\x20\x20\x20','\x20\x20\x20Stable\x20version:\x20','Current\x20version:\x20','validation','minimumVersionMessage'];a224_0xab47=function(){return _0x310625;};return a224_0xab47();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x578bba){const _0xa55bd4=a224_0x2b68,_0x14a34c=_0x578bba[_0xa55bd4(0x1da)]||_0xa55bd4(0x1f7);return _0xa55bd4(0x1d7)+NPM_PACKAGE_NAME+'@'+_0x14a34c;}function getCurrentCliVersion(){const _0x22e68e=a224_0x2b68;try{const _0x5799d4=fileURLToPath(import.meta.url),_0x591ec4=resolve(dirname(_0x5799d4),_0x22e68e(0x1ed)),_0x145c2d=resolve(_0x591ec4,_0x22e68e(0x1e9)),_0x1ab489=JSON['parse'](readFileSync(_0x145c2d,_0x22e68e(0x1dc)));return _0x1ab489['version']||_0x22e68e(0x1f4);}catch{return _0x22e68e(0x1f4);}}export async function checkCliVersion(){const _0x4dd35f=a224_0x2b68,_0x2d4e73=getCurrentCliVersion(),_0x32c7bd=await getCliVersionPolicy(),_0x20f1c1=_0x32c7bd?.[_0x4dd35f(0x1da)]||null,_0x3fb78b=_0x32c7bd?.[_0x4dd35f(0x1f0)]||null;let _0x32948b=![],_0x32147e=![];const _0x153f41=a224_0x2b5984[_0x4dd35f(0x1f5)](_0x2d4e73);if(_0x153f41&&_0x20f1c1)try{const _0x129a44=a224_0x2b5984[_0x4dd35f(0x1f5)](_0x20f1c1);if(_0x129a44)_0x32948b=a224_0x2b5984['lt'](_0x153f41,_0x129a44);}catch{}if(_0x153f41&&_0x3fb78b)try{const _0x1eb496=a224_0x2b5984[_0x4dd35f(0x1f5)](_0x3fb78b);if(_0x1eb496)_0x32147e=a224_0x2b5984['lt'](_0x153f41,_0x1eb496);}catch{}return _0x32147e&&(_0x32948b=!![]),{'currentVersion':_0x2d4e73,'stableVersion':_0x20f1c1,'minimumVersion':_0x3fb78b,'needsUpgrade':_0x32948b,'belowMinimum':_0x32147e,'isPreRelease':![],'upgradeMessage':_0x32c7bd?.['upgradeMessage'],'minimumVersionMessage':_0x32c7bd?.[_0x4dd35f(0x1e6)]};}export function printCliUpgradeWarning(_0x1d1055){const _0x1e166d=a224_0x2b68;if(!_0x1d1055[_0x1e166d(0x1de)]&&!_0x1d1055[_0x1e166d(0x1f3)])return;const _0x36ab96=_0x1e166d(0x1fc),_0x111f1f='\x1b[33m',_0x530405='\x1b[0m',_0x748940=_0x1e166d(0x1ef),_0x101118=getCliUpgradeCommand(_0x1d1055);console['log'](),_0x1d1055['belowMinimum']?(console[_0x1e166d(0x1e8)](''+_0x36ab96+_0x748940+_0x1e166d(0x1df)+_0x530405),console[_0x1e166d(0x1e8)](_0x36ab96+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x1d1055[_0x1e166d(0x1fa)]+_0x530405),_0x1d1055[_0x1e166d(0x1f0)]&&console['log'](_0x36ab96+_0x1e166d(0x1ea)+_0x1d1055[_0x1e166d(0x1f0)]+_0x530405),_0x1d1055[_0x1e166d(0x1da)]&&_0x1d1055[_0x1e166d(0x1da)]!==_0x1d1055['minimumVersion']&&console[_0x1e166d(0x1e8)](_0x36ab96+'\x20\x20\x20Recommended\x20stable:\x20'+_0x1d1055[_0x1e166d(0x1da)]+_0x530405),_0x1d1055[_0x1e166d(0x1e6)]&&console[_0x1e166d(0x1e8)](_0x36ab96+_0x1e166d(0x1e2)+_0x1d1055[_0x1e166d(0x1e6)]+_0x530405),console[_0x1e166d(0x1e8)](_0x36ab96+_0x1e166d(0x1f2)+_0x101118+_0x530405)):(console[_0x1e166d(0x1e8)](''+_0x111f1f+_0x748940+'↪\x20New\x20version\x20available'+_0x530405),console[_0x1e166d(0x1e8)](_0x111f1f+_0x1e166d(0x1eb)+_0x1d1055[_0x1e166d(0x1fa)]+_0x530405),console[_0x1e166d(0x1e8)](_0x111f1f+_0x1e166d(0x1e3)+_0x1d1055['stableVersion']+_0x530405),_0x1d1055['upgradeMessage']&&console[_0x1e166d(0x1e8)](_0x111f1f+_0x1e166d(0x1e2)+_0x1d1055['upgradeMessage']+_0x530405),console[_0x1e166d(0x1e8)](_0x111f1f+_0x1e166d(0x1f2)+_0x101118+_0x530405)),console[_0x1e166d(0x1e8)]();}export function assertCliVersionSupported(_0x34d997){const _0x28b598=a224_0x2b68;if(!_0x34d997[_0x28b598(0x1f3)])return;const _0xad25e2=[_0x34d997[_0x28b598(0x1e6)],_0x28b598(0x1e4)+_0x34d997[_0x28b598(0x1fa)],_0x34d997['minimumVersion']?_0x28b598(0x1d5)+_0x34d997[_0x28b598(0x1f0)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x34d997)][_0x28b598(0x1f8)](Boolean)['join']('\x0a');throw CliErrors[_0x28b598(0x1e5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0xad25e2);}
@@ -1 +1 @@
1
- (function(_0x5d08bd,_0x1853d5){const _0x1ff491=a225_0x2449,_0x2013f7=_0x5d08bd();while(!![]){try{const _0x60c4e2=-parseInt(_0x1ff491(0x12c))/0x1*(parseInt(_0x1ff491(0x126))/0x2)+-parseInt(_0x1ff491(0x12e))/0x3*(parseInt(_0x1ff491(0x131))/0x4)+parseInt(_0x1ff491(0x129))/0x5*(-parseInt(_0x1ff491(0x12b))/0x6)+-parseInt(_0x1ff491(0x130))/0x7*(-parseInt(_0x1ff491(0x12d))/0x8)+parseInt(_0x1ff491(0x12a))/0x9+-parseInt(_0x1ff491(0x122))/0xa*(-parseInt(_0x1ff491(0x121))/0xb)+-parseInt(_0x1ff491(0x128))/0xc;if(_0x60c4e2===_0x1853d5)break;else _0x2013f7['push'](_0x2013f7['shift']());}catch(_0x509159){_0x2013f7['push'](_0x2013f7['shift']());}}}(a225_0x1e5e,0x8532c));function a225_0x2449(_0x1b9ee9,_0x46af79){_0x1b9ee9=_0x1b9ee9-0x11e;const _0x1e5e01=a225_0x1e5e();let _0x244905=_0x1e5e01[_0x1b9ee9];return _0x244905;}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(_0x1e1875){const _0x5ed048=a225_0x2449;return typeof _0x1e1875===_0x5ed048(0x12f)&&_0x1e1875['trim']()[_0x5ed048(0x132)]>0x0?_0x1e1875[_0x5ed048(0x124)]():null;}function normalizeCliVersionPolicy(_0x1caaef){const _0x1b0495=a225_0x2449;if(!_0x1caaef||typeof _0x1caaef!=='object')return null;const _0x48f4e4=_0x1caaef,_0x13cb0b=_0x48f4e4['cli']&&typeof _0x48f4e4[_0x1b0495(0x133)]===_0x1b0495(0x127)?_0x48f4e4['cli']:_0x48f4e4,_0xee52af=pickString(_0x13cb0b['stableVersion'])||pickString(_0x13cb0b[_0x1b0495(0x125)])||pickString(_0x13cb0b[_0x1b0495(0x120)]),_0xc0f5ec=pickString(_0x13cb0b[_0x1b0495(0x11e)])||pickString(_0x13cb0b[_0x1b0495(0x123)]);if(!_0xee52af&&!_0xc0f5ec)return null;return{'stableVersion':_0xee52af,'minimumVersion':_0xc0f5ec,'upgradeMessage':pickString(_0x13cb0b[_0x1b0495(0x11f)])||undefined,'minimumVersionMessage':pickString(_0x13cb0b['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x59ba59=new AbortController(),_0x481082=setTimeout(()=>_0x59ba59['abort'](),FETCH_TIMEOUT_MS);try{const _0x16dbae=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x59ba59['signal']});if(!_0x16dbae['ok'])return null;const _0x6c7b3a=await _0x16dbae['json']();return normalizeCliVersionPolicy(_0x6c7b3a);}catch{return null;}finally{clearTimeout(_0x481082);}}function a225_0x1e5e(){const _0x1b2e86=['length','cli','minimumVersion','upgradeMessage','recommendedVersion','7981622yCFZUx','10AvBSBG','minVersion','trim','latestVersion','66CMPypn','object','1739736HEogQY','273250iEGKFh','1549683mmrVKi','30OcDdme','5324vkDPQp','32FDIuTC','9eEtEVk','string','1620052LLHvOo','912044heNPzG'];a225_0x1e5e=function(){return _0x1b2e86;};return a225_0x1e5e();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2f9010=Date['now']();if(hasCachedPolicy){const _0x4efe4e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f9010-cacheTime<_0x4efe4e)return cachedPolicy;}const _0x121011=await fetchCliVersionPolicy();return cachedPolicy=_0x121011,cacheTime=_0x2f9010,hasCachedPolicy=!![],_0x121011;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1d0381,_0x4bf2d2){const _0x27799d=a225_0x4f31,_0x2210f1=_0x1d0381();while(!![]){try{const _0x59255c=parseInt(_0x27799d(0xb8))/0x1+-parseInt(_0x27799d(0xc1))/0x2*(parseInt(_0x27799d(0xc0))/0x3)+-parseInt(_0x27799d(0xbc))/0x4+-parseInt(_0x27799d(0xcc))/0x5+-parseInt(_0x27799d(0xc8))/0x6*(-parseInt(_0x27799d(0xc3))/0x7)+-parseInt(_0x27799d(0xc4))/0x8+parseInt(_0x27799d(0xc6))/0x9;if(_0x59255c===_0x4bf2d2)break;else _0x2210f1['push'](_0x2210f1['shift']());}catch(_0x400495){_0x2210f1['push'](_0x2210f1['shift']());}}}(a225_0x12ef,0x8834c));function a225_0x4f31(_0x5a46a5,_0x513ced){_0x5a46a5=_0x5a46a5-0xb6;const _0x12efe1=a225_0x12ef();let _0x4f31be=_0x12efe1[_0x5a46a5];return _0x4f31be;}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(_0x1330f0){const _0xb258a5=a225_0x4f31;return typeof _0x1330f0==='string'&&_0x1330f0[_0xb258a5(0xc9)]()[_0xb258a5(0xc5)]>0x0?_0x1330f0[_0xb258a5(0xc9)]():null;}function normalizeCliVersionPolicy(_0x1c0489){const _0x53a7ae=a225_0x4f31;if(!_0x1c0489||typeof _0x1c0489!=='object')return null;const _0x29ee31=_0x1c0489,_0x137c5f=_0x29ee31[_0x53a7ae(0xb6)]&&typeof _0x29ee31[_0x53a7ae(0xb6)]==='object'?_0x29ee31['cli']:_0x29ee31,_0x4fbc52=pickString(_0x137c5f[_0x53a7ae(0xb7)])||pickString(_0x137c5f[_0x53a7ae(0xc2)])||pickString(_0x137c5f[_0x53a7ae(0xbd)]),_0x2e62e8=pickString(_0x137c5f[_0x53a7ae(0xbf)])||pickString(_0x137c5f[_0x53a7ae(0xba)]);if(!_0x4fbc52&&!_0x2e62e8)return null;return{'stableVersion':_0x4fbc52,'minimumVersion':_0x2e62e8,'upgradeMessage':pickString(_0x137c5f[_0x53a7ae(0xb9)])||undefined,'minimumVersionMessage':pickString(_0x137c5f[_0x53a7ae(0xc7)])||undefined};}export async function fetchCliVersionPolicy(){const _0xf7accd=a225_0x4f31,_0x5d159e=new AbortController(),_0x3129ad=setTimeout(()=>_0x5d159e[_0xf7accd(0xbb)](),FETCH_TIMEOUT_MS);try{const _0x2e5444=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xf7accd(0xbe)},'signal':_0x5d159e[_0xf7accd(0xca)]});if(!_0x2e5444['ok'])return null;const _0x397609=await _0x2e5444['json']();return normalizeCliVersionPolicy(_0x397609);}catch{return null;}finally{clearTimeout(_0x3129ad);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4b5ce9=a225_0x4f31,_0x999df0=Date[_0x4b5ce9(0xcb)]();if(hasCachedPolicy){const _0x20e041=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x999df0-cacheTime<_0x20e041)return cachedPolicy;}const _0x362f61=await fetchCliVersionPolicy();return cachedPolicy=_0x362f61,cacheTime=_0x999df0,hasCachedPolicy=!![],_0x362f61;}function a225_0x12ef(){const _0x33d05d=['now','4887695OSrfCi','cli','stableVersion','919065xDyHlt','upgradeMessage','minVersion','abort','2306468RNpnmq','recommendedVersion','application/json','minimumVersion','3zktjRy','2012954QeEUaH','latestVersion','14YqrdRF','3988824RmvCku','length','16586073agetEI','minimumVersionMessage','2565522mLXwQD','trim','signal'];a225_0x12ef=function(){return _0x33d05d;};return a225_0x12ef();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a226_0xecb58d=a226_0x4c8f;function a226_0x68bd(){const _0x5a0903=['875817eUsKNH','4952364rBtgZj','12KJbonk','string','7wKDdkZ','654702vsVnDM','project','8EEQwqX','env','4320460notbgs','145134mkUKjy','1548608GcyeSy','1616765nNxiKJ'];a226_0x68bd=function(){return _0x5a0903;};return a226_0x68bd();}(function(_0x4063d6,_0x4ebdd6){const _0x585d13=a226_0x4c8f,_0x217e92=_0x4063d6();while(!![]){try{const _0x24091e=parseInt(_0x585d13(0xae))/0x1+parseInt(_0x585d13(0xaf))/0x2+-parseInt(_0x585d13(0xa9))/0x3+parseInt(_0x585d13(0xa6))/0x4*(parseInt(_0x585d13(0xb0))/0x5)+-parseInt(_0x585d13(0xb2))/0x6*(parseInt(_0x585d13(0xa8))/0x7)+parseInt(_0x585d13(0xab))/0x8*(parseInt(_0x585d13(0xb1))/0x9)+-parseInt(_0x585d13(0xad))/0xa;if(_0x24091e===_0x4ebdd6)break;else _0x217e92['push'](_0x217e92['shift']());}catch(_0x188be2){_0x217e92['push'](_0x217e92['shift']());}}}(a226_0x68bd,0x7cca0));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x90892f,getMultiAppConfigs as a226_0x4d6d78,getTemplateBaseUrl as a226_0x5c1ae5}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a226_0x4c8f(_0x107dc9,_0x3cd225){_0x107dc9=_0x107dc9-0xa6;const _0x68bdbe=a226_0x68bd();let _0x4c8fbf=_0x68bdbe[_0x107dc9];return _0x4c8fbf;}export{isInProject}from'../context.js';export function readConfig(_0x3f6e54){const _0x2bc277=a226_0x4c8f,_0x45e3ee=readRawConfig(_0x3f6e54);return _0x45e3ee[_0x2bc277(0xac)]&&typeof _0x45e3ee[_0x2bc277(0xac)]===_0x2bc277(0xa7)&&initEnv(_0x45e3ee[_0x2bc277(0xac)]),_0x45e3ee;}export function getConfigAppCode(){return a226_0x90892f();}export function getMultiAppConfigs(_0x5936f0=a226_0xecb58d(0xaa)){return a226_0x4d6d78(_0x5936f0);}export function getTemplateBaseUrl(){return a226_0x5c1ae5();}
1
+ const a226_0x4acb40=a226_0x2c20;(function(_0x2d1be6,_0x48dd19){const _0x2bcde5=a226_0x2c20,_0xa2614f=_0x2d1be6();while(!![]){try{const _0xc65c09=parseInt(_0x2bcde5(0x148))/0x1+parseInt(_0x2bcde5(0x144))/0x2*(-parseInt(_0x2bcde5(0x141))/0x3)+-parseInt(_0x2bcde5(0x146))/0x4+parseInt(_0x2bcde5(0x143))/0x5+parseInt(_0x2bcde5(0x13f))/0x6+parseInt(_0x2bcde5(0x140))/0x7*(parseInt(_0x2bcde5(0x145))/0x8)+-parseInt(_0x2bcde5(0x13d))/0x9*(parseInt(_0x2bcde5(0x149))/0xa);if(_0xc65c09===_0x48dd19)break;else _0xa2614f['push'](_0xa2614f['shift']());}catch(_0x5b72a4){_0xa2614f['push'](_0xa2614f['shift']());}}}(a226_0x3743,0x20620));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a226_0x492b91,getMultiAppConfigs as a226_0x2ed5b5,getTemplateBaseUrl as a226_0x50261e}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a226_0x3743(){const _0x26ce00=['project','147103dCkihT','1228070IBZSbr','18JobRqA','env','1419666Lwmwap','77xhYBHt','147594MStrYq','string','1014350Dewkgu','6bSeIXr','148112HyAzYL','1057560PougyM'];a226_0x3743=function(){return _0x26ce00;};return a226_0x3743();}export{isInProject}from'../context.js';export function readConfig(_0x331149){const _0x1979b8=a226_0x2c20,_0x35595a=readRawConfig(_0x331149);return _0x35595a['env']&&typeof _0x35595a[_0x1979b8(0x13e)]===_0x1979b8(0x142)&&initEnv(_0x35595a[_0x1979b8(0x13e)]),_0x35595a;}export function getConfigAppCode(){return a226_0x492b91();}export function getMultiAppConfigs(_0x40e4c2=a226_0x4acb40(0x147)){return a226_0x2ed5b5(_0x40e4c2);}function a226_0x2c20(_0x596f57,_0x5dfc6f){_0x596f57=_0x596f57-0x13d;const _0x37433c=a226_0x3743();let _0x2c2046=_0x37433c[_0x596f57];return _0x2c2046;}export function getTemplateBaseUrl(){return a226_0x50261e();}
@@ -1 +1 @@
1
- (function(_0x49550d,_0x3f5a53){const _0x2cb44a=a227_0x4cf1,_0x5d29a=_0x49550d();while(!![]){try{const _0x501d55=-parseInt(_0x2cb44a(0x1c1))/0x1+-parseInt(_0x2cb44a(0x1c2))/0x2+-parseInt(_0x2cb44a(0x1c0))/0x3+parseInt(_0x2cb44a(0x1c3))/0x4*(parseInt(_0x2cb44a(0x1bd))/0x5)+-parseInt(_0x2cb44a(0x1c4))/0x6+parseInt(_0x2cb44a(0x1c6))/0x7+parseInt(_0x2cb44a(0x1bf))/0x8*(parseInt(_0x2cb44a(0x1c7))/0x9);if(_0x501d55===_0x3f5a53)break;else _0x5d29a['push'](_0x5d29a['shift']());}catch(_0xbab991){_0x5d29a['push'](_0x5d29a['shift']());}}}(a227_0x1338,0xa07d4));function a227_0x1338(){const _0x33be45=['5ogQBSQ','copyFileSync','4459328VEeUJR','192087kLxNsg','81174OtCheE','1547896DMJweE','2315876foWdEi','3110322vqsuvu','name','2807707MWtrXY','18rnstAJ','isDirectory'];a227_0x1338=function(){return _0x33be45;};return a227_0x1338();}import a227_0x35f203 from'node:path';import a227_0x31a466 from'node:fs';function a227_0x4cf1(_0x13a387,_0x32ca1d){_0x13a387=_0x13a387-0x1bc;const _0x133866=a227_0x1338();let _0x4cf18b=_0x133866[_0x13a387];return _0x4cf18b;}export async function copyDirectory(_0x2aba16,_0xc6d649){const _0x5afa2b=a227_0x4cf1;try{const _0x5496c0=a227_0x31a466['readdirSync'](_0x2aba16,{'withFileTypes':!![]});a227_0x31a466['mkdirSync'](_0xc6d649,{'recursive':!![]});for(const _0xfa407d of _0x5496c0){const _0x8ece82=a227_0x35f203['join'](_0x2aba16,_0xfa407d[_0x5afa2b(0x1c5)]),_0x24f98c=a227_0x35f203['join'](_0xc6d649,_0xfa407d[_0x5afa2b(0x1c5)]);_0xfa407d[_0x5afa2b(0x1bc)]()?await copyDirectory(_0x8ece82,_0x24f98c):a227_0x31a466[_0x5afa2b(0x1be)](_0x8ece82,_0x24f98c);}}catch(_0x37fdc4){console['error']('复制目录时出错:',_0x37fdc4);}}
1
+ (function(_0x43cdfb,_0x2b9dc2){const _0x512913=a227_0x7b1d,_0x101588=_0x43cdfb();while(!![]){try{const _0xd88c42=-parseInt(_0x512913(0x1ec))/0x1*(-parseInt(_0x512913(0x1f3))/0x2)+parseInt(_0x512913(0x1ef))/0x3+parseInt(_0x512913(0x1e5))/0x4*(-parseInt(_0x512913(0x1ed))/0x5)+parseInt(_0x512913(0x1eb))/0x6+-parseInt(_0x512913(0x1ee))/0x7+-parseInt(_0x512913(0x1e7))/0x8+parseInt(_0x512913(0x1e8))/0x9*(parseInt(_0x512913(0x1e4))/0xa);if(_0xd88c42===_0x2b9dc2)break;else _0x101588['push'](_0x101588['shift']());}catch(_0x3045d9){_0x101588['push'](_0x101588['shift']());}}}(a227_0x3a34,0xada3f));import a227_0x908a42 from'node:path';function a227_0x7b1d(_0x127271,_0x509142){_0x127271=_0x127271-0x1e3;const _0x3a342e=a227_0x3a34();let _0x7b1d7=_0x3a342e[_0x127271];return _0x7b1d7;}import a227_0x336a5b from'node:fs';function a227_0x3a34(){const _0x5d1cde=['27460OqgnyL','604tCSasQ','复制目录时出错:','5303944hbhJgk','900lXhuTJ','mkdirSync','join','530898OJywlZ','1366538muRuvV','3245IXFrTy','5264924ZETtVH','1484202eMNHMh','readdirSync','copyFileSync','isDirectory','2XieAHp','error'];a227_0x3a34=function(){return _0x5d1cde;};return a227_0x3a34();}export async function copyDirectory(_0x1a89aa,_0x1bbb0f){const _0x36d569=a227_0x7b1d;try{const _0x10fa90=a227_0x336a5b[_0x36d569(0x1f0)](_0x1a89aa,{'withFileTypes':!![]});a227_0x336a5b[_0x36d569(0x1e9)](_0x1bbb0f,{'recursive':!![]});for(const _0x4bebd5 of _0x10fa90){const _0x24dbdf=a227_0x908a42['join'](_0x1a89aa,_0x4bebd5['name']),_0x1d6d1b=a227_0x908a42[_0x36d569(0x1ea)](_0x1bbb0f,_0x4bebd5['name']);_0x4bebd5[_0x36d569(0x1f2)]()?await copyDirectory(_0x24dbdf,_0x1d6d1b):a227_0x336a5b[_0x36d569(0x1f1)](_0x24dbdf,_0x1d6d1b);}}catch(_0x2d3309){console[_0x36d569(0x1e3)](_0x36d569(0x1e6),_0x2d3309);}}
@@ -1 +1 @@
1
- function a228_0x5236(_0x2f4a97,_0x23ccb1){_0x2f4a97=_0x2f4a97-0x105;const _0x14c9d1=a228_0x14c9();let _0x52361d=_0x14c9d1[_0x2f4a97];return _0x52361d;}(function(_0x2eacfe,_0x3d4433){const _0xcb075a=a228_0x5236,_0x198ab0=_0x2eacfe();while(!![]){try{const _0x1dd6f6=parseInt(_0xcb075a(0x109))/0x1+parseInt(_0xcb075a(0x10b))/0x2*(parseInt(_0xcb075a(0x111))/0x3)+-parseInt(_0xcb075a(0x10a))/0x4*(-parseInt(_0xcb075a(0x110))/0x5)+parseInt(_0xcb075a(0x10d))/0x6*(-parseInt(_0xcb075a(0x10f))/0x7)+parseInt(_0xcb075a(0x106))/0x8+parseInt(_0xcb075a(0x112))/0x9+-parseInt(_0xcb075a(0x108))/0xa*(parseInt(_0xcb075a(0x113))/0xb);if(_0x1dd6f6===_0x3d4433)break;else _0x198ab0['push'](_0x198ab0['shift']());}catch(_0x440e3c){_0x198ab0['push'](_0x198ab0['shift']());}}}(a228_0x14c9,0xb889f));function a228_0x14c9(){const _0x494282=['726mIXPPe','string','76426xTGodK','50JHhMcU','1735359wIhhiT','2282013AJIYjq','710303WeLuDL','isFinite','12000168xsKFhT','trim','240BFcQJl','631200qCUgFT','265388FNOCdQ','2RWlXIl','number'];a228_0x14c9=function(){return _0x494282;};return a228_0x14c9();}function toFiniteNumber(_0x2d48e5){const _0x8226b=a228_0x5236;if(typeof _0x2d48e5===_0x8226b(0x10c)&&Number[_0x8226b(0x105)](_0x2d48e5))return _0x2d48e5;if(typeof _0x2d48e5===_0x8226b(0x10e)){const _0x303b1d=_0x2d48e5[_0x8226b(0x107)]();if(!_0x303b1d)return undefined;const _0xcd70f6=Number(_0x303b1d);if(Number[_0x8226b(0x105)](_0xcd70f6))return _0xcd70f6;}return undefined;}export function normalizeEntityWithIdResponse(_0x2c6f3c){const _0x2e6d6e=toFiniteNumber(_0x2c6f3c);if(_0x2e6d6e!==undefined)return{'id':_0x2e6d6e,'entity':{'id':_0x2e6d6e}};if(!_0x2c6f3c||typeof _0x2c6f3c!=='object')return{'id':undefined,'entity':{}};const _0x275b3f={..._0x2c6f3c},_0x4a3444=toFiniteNumber(_0x275b3f['id']);return _0x4a3444!==undefined&&(_0x275b3f['id']=_0x4a3444),{'id':_0x4a3444,'entity':_0x275b3f};}
1
+ function a228_0x9542(){const _0x43afe1=['number','3568975RhRJAZ','7QAuakO','3987RniFxn','10096806DZiqDk','742642ltlfSm','string','object','1572369YbNuGc','266030hKDdeb','12665824qBCDMo','279ZSHGbP','404RDqVga','isFinite'];a228_0x9542=function(){return _0x43afe1;};return a228_0x9542();}(function(_0x2a8552,_0x4a8b05){const _0x5a1a65=a228_0x20f8,_0xb780db=_0x2a8552();while(!![]){try{const _0x538500=parseInt(_0x5a1a65(0x169))/0x1+-parseInt(_0x5a1a65(0x166))/0x2+parseInt(_0x5a1a65(0x164))/0x3*(-parseInt(_0x5a1a65(0x16d))/0x4)+parseInt(_0x5a1a65(0x170))/0x5+parseInt(_0x5a1a65(0x165))/0x6*(-parseInt(_0x5a1a65(0x171))/0x7)+parseInt(_0x5a1a65(0x16b))/0x8+-parseInt(_0x5a1a65(0x16c))/0x9*(parseInt(_0x5a1a65(0x16a))/0xa);if(_0x538500===_0x4a8b05)break;else _0xb780db['push'](_0xb780db['shift']());}catch(_0x2336c8){_0xb780db['push'](_0xb780db['shift']());}}}(a228_0x9542,0xd111c));function a228_0x20f8(_0x3c15ad,_0x32ad3e){_0x3c15ad=_0x3c15ad-0x164;const _0x9542c4=a228_0x9542();let _0x20f898=_0x9542c4[_0x3c15ad];return _0x20f898;}function toFiniteNumber(_0x48178d){const _0x1b6482=a228_0x20f8;if(typeof _0x48178d===_0x1b6482(0x16f)&&Number[_0x1b6482(0x16e)](_0x48178d))return _0x48178d;if(typeof _0x48178d===_0x1b6482(0x167)){const _0x4f5c83=_0x48178d['trim']();if(!_0x4f5c83)return undefined;const _0x31f13b=Number(_0x4f5c83);if(Number[_0x1b6482(0x16e)](_0x31f13b))return _0x31f13b;}return undefined;}export function normalizeEntityWithIdResponse(_0x2842f2){const _0x1a0c87=a228_0x20f8,_0x232fae=toFiniteNumber(_0x2842f2);if(_0x232fae!==undefined)return{'id':_0x232fae,'entity':{'id':_0x232fae}};if(!_0x2842f2||typeof _0x2842f2!==_0x1a0c87(0x168))return{'id':undefined,'entity':{}};const _0x734475={..._0x2842f2},_0xe9933=toFiniteNumber(_0x734475['id']);return _0xe9933!==undefined&&(_0x734475['id']=_0xe9933),{'id':_0xe9933,'entity':_0x734475};}
@@ -1 +1 @@
1
- function a229_0x42f7(_0x558ff6,_0x163705){_0x558ff6=_0x558ff6-0x114;const _0xa2b975=a229_0xa2b9();let _0x42f7ec=_0xa2b975[_0x558ff6];return _0x42f7ec;}function a229_0xa2b9(){const _0x45fdb9=['2344446rYdYOS','1555430cMwvBO','44901yeDBiG','4634544KvCxbo','13gQOIKR','218494dKLVqm','1febmRP','1267305NwtLkv','11UPvNfd','4lQqFuE','21175kTofmR','480noyfzb','isDirectory','6adciQZ'];a229_0xa2b9=function(){return _0x45fdb9;};return a229_0xa2b9();}(function(_0x3f6257,_0x353f86){const _0x3d4ca7=a229_0x42f7,_0x59966d=_0x3f6257();while(!![]){try{const _0xbe0b1b=-parseInt(_0x3d4ca7(0x117))/0x1*(-parseInt(_0x3d4ca7(0x116))/0x2)+-parseInt(_0x3d4ca7(0x121))/0x3*(parseInt(_0x3d4ca7(0x11a))/0x4)+-parseInt(_0x3d4ca7(0x118))/0x5*(parseInt(_0x3d4ca7(0x11e))/0x6)+parseInt(_0x3d4ca7(0x11b))/0x7*(-parseInt(_0x3d4ca7(0x11c))/0x8)+parseInt(_0x3d4ca7(0x11f))/0x9+-parseInt(_0x3d4ca7(0x120))/0xa*(parseInt(_0x3d4ca7(0x119))/0xb)+-parseInt(_0x3d4ca7(0x114))/0xc*(-parseInt(_0x3d4ca7(0x115))/0xd);if(_0xbe0b1b===_0x353f86)break;else _0x59966d['push'](_0x59966d['shift']());}catch(_0x386259){_0x59966d['push'](_0x59966d['shift']());}}}(a229_0xa2b9,0x24bd2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5ce382,_0x43ed7c){const _0x1995c1=a229_0x42f7,_0x5b886c=statSync(_0x5ce382);if(_0x5b886c[_0x1995c1(0x11d)]()){!existsSync(_0x43ed7c)&&mkdirSync(_0x43ed7c,{'recursive':!![]});const _0x383d6a=readdirSync(_0x5ce382);for(const _0x260212 of _0x383d6a){await copyDir(join(_0x5ce382,_0x260212),join(_0x43ed7c,_0x260212));}}else copyFileSync(_0x5ce382,_0x43ed7c);}export function ensureDir(_0x9e6bbe){!existsSync(_0x9e6bbe)&&mkdirSync(_0x9e6bbe,{'recursive':!![]});}export function pathExists(_0xdae5ed){return existsSync(_0xdae5ed);}
1
+ (function(_0x47d448,_0x59a6dd){const _0x512185=a229_0x2d65,_0x3aeb2a=_0x47d448();while(!![]){try{const _0x29b48b=parseInt(_0x512185(0x1d2))/0x1*(-parseInt(_0x512185(0x1d4))/0x2)+parseInt(_0x512185(0x1cf))/0x3+parseInt(_0x512185(0x1d3))/0x4+-parseInt(_0x512185(0x1d6))/0x5*(-parseInt(_0x512185(0x1d1))/0x6)+-parseInt(_0x512185(0x1d0))/0x7+parseInt(_0x512185(0x1d7))/0x8+-parseInt(_0x512185(0x1d8))/0x9;if(_0x29b48b===_0x59a6dd)break;else _0x3aeb2a['push'](_0x3aeb2a['shift']());}catch(_0xbfd48b){_0x3aeb2a['push'](_0x3aeb2a['shift']());}}}(a229_0x2189,0xd776d));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a229_0x2d65(_0xef40a2,_0x25ca2d){_0xef40a2=_0xef40a2-0x1cf;const _0x2189e3=a229_0x2189();let _0x2d6589=_0x2189e3[_0xef40a2];return _0x2d6589;}import{join}from'node:path';export async function copyDir(_0x4673a9,_0x2420c3){const _0x69710b=a229_0x2d65,_0x275665=statSync(_0x4673a9);if(_0x275665[_0x69710b(0x1d5)]()){!existsSync(_0x2420c3)&&mkdirSync(_0x2420c3,{'recursive':!![]});const _0x4acee0=readdirSync(_0x4673a9);for(const _0xd636ca of _0x4acee0){await copyDir(join(_0x4673a9,_0xd636ca),join(_0x2420c3,_0xd636ca));}}else copyFileSync(_0x4673a9,_0x2420c3);}export function ensureDir(_0x21ed87){!existsSync(_0x21ed87)&&mkdirSync(_0x21ed87,{'recursive':!![]});}export function pathExists(_0x482955){return existsSync(_0x482955);}function a229_0x2189(){const _0x4f7574=['6mumfNH','797141jFSlyF','1182228ufIaRw','4UZMXWm','isDirectory','5661155Wsaoea','12220192bpyVLp','9984573uSGSyB','3432786XDvICP','3593478tcypbR'];a229_0x2189=function(){return _0x4f7574;};return a229_0x2189();}
@@ -1 +1 @@
1
- const a230_0x3cad95=a230_0x964c;(function(_0xdfd63,_0x175f06){const _0x3ba217=a230_0x964c,_0x1a5d4c=_0xdfd63();while(!![]){try{const _0x408b14=parseInt(_0x3ba217(0x20f))/0x1*(parseInt(_0x3ba217(0x1ef))/0x2)+parseInt(_0x3ba217(0x20e))/0x3+-parseInt(_0x3ba217(0x1fb))/0x4*(-parseInt(_0x3ba217(0x20c))/0x5)+-parseInt(_0x3ba217(0x201))/0x6*(-parseInt(_0x3ba217(0x1ee))/0x7)+parseInt(_0x3ba217(0x205))/0x8*(-parseInt(_0x3ba217(0x20a))/0x9)+-parseInt(_0x3ba217(0x207))/0xa*(-parseInt(_0x3ba217(0x202))/0xb)+-parseInt(_0x3ba217(0x1ec))/0xc;if(_0x408b14===_0x175f06)break;else _0x1a5d4c['push'](_0x1a5d4c['shift']());}catch(_0x45e759){_0x1a5d4c['push'](_0x1a5d4c['shift']());}}}(a230_0x20a1,0xab287));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a230_0x964c(_0x4011a9,_0x34e2c3){_0x4011a9=_0x4011a9-0x1eb;const _0x20a1b2=a230_0x20a1();let _0x964c6c=_0x20a1b2[_0x4011a9];return _0x964c6c;}function getGuidesCdnUrl(){const _0x1f15fd=a230_0x964c,_0x56e683=getTemplateBaseUrl();return _0x56e683+_0x1f15fd(0x1fa);}const CACHE_DIR=join(homedir(),a230_0x3cad95(0x206),'cache');function a230_0x20a1(){const _0x513907=['object','statusText','length','/skills/guides.json','4878064anYyTx','push','skillTemplate','CDN\x20请求失败:\x20','extendContent','title','2298nIpfnK','523237XhVjCp','content','CDN\x20数据中缺少\x20skillTemplate','5216zegqpp','.lovrabet','130IUUqsD','guides','\x0a\x0a>更新时间:','27qnGJpE','lastUpdated','5LlrTVo','path','1643919ewkfIv','3pgdBHI','.lovrabet/skill/guides','trimEnd','31368960pFZMIH','entries','14721cGzsoZ','83860uLgnEx','join','replace','CDN\x20返回数据格式错误','json','status','application/json','utf-8'];a230_0x20a1=function(){return _0x513907;};return a230_0x20a1();}export async function fetchGuidesFromCDN(){const _0x454d4f=a230_0x3cad95,_0x364cdd=getGuidesCdnUrl(),_0x401bef=await fetch(_0x364cdd,{'headers':{'Accept':_0x454d4f(0x1f5)}});if(!_0x401bef['ok'])throw new Error(_0x454d4f(0x1fe)+_0x401bef[_0x454d4f(0x1f4)]+'\x20'+_0x401bef[_0x454d4f(0x1f8)]);const _0xefe1dd=await _0x401bef[_0x454d4f(0x1f3)]();if(!_0xefe1dd[_0x454d4f(0x208)]||typeof _0xefe1dd['guides']!==_0x454d4f(0x1f7))throw new Error(_0x454d4f(0x1f2));return _0xefe1dd;}export function writeGuidesToProject(_0x500ddd,_0x27f7cf,_0x21db6e=a230_0x3cad95(0x210),_0x35fe5f){const _0x51ef44=a230_0x3cad95,_0x38b56e=join(_0x27f7cf,_0x21db6e);mkdirSync(_0x38b56e,{'recursive':!![]});for(const [_0x4c12f4,_0x279843]of Object[_0x51ef44(0x1ed)](_0x500ddd['guides'])){let _0x142530=_0x279843[_0x51ef44(0x203)];_0x279843['lastUpdated']&&(_0x142530=appendUpdateTime(_0x142530,_0x279843[_0x51ef44(0x20b)])),writeFileSync(join(_0x38b56e,_0x4c12f4+'.md'),_0x142530,_0x51ef44(0x1f6));}}export function appendUpdateTime(_0x98dae,_0x1c226c){const _0x557c53=a230_0x3cad95;return _0x98dae=_0x98dae[_0x557c53(0x1f1)](/\n*>更新时间:.*$/m,''),_0x98dae[_0x557c53(0x1eb)]()+(_0x557c53(0x209)+_0x1c226c);}export function getSkillTemplate(_0x4b460b){const _0xa434ac=a230_0x3cad95;return _0x4b460b[_0xa434ac(0x1fd)]?.[_0xa434ac(0x203)]||'';}export function appendExtendContents(_0x11300c,_0x2e2623,_0x378494){const _0x4a504a=a230_0x3cad95,_0x23d242=[];for(const [,_0x232b9f]of Object[_0x4a504a(0x1ed)](_0x2e2623[_0x4a504a(0x208)])){_0x232b9f[_0x4a504a(0x1ff)]&&_0x23d242[_0x4a504a(0x1fc)](_0x232b9f[_0x4a504a(0x1ff)]['trimEnd']());}if(_0x23d242[_0x4a504a(0x1f9)]===0x0)return _0x11300c;return _0x11300c[_0x4a504a(0x1eb)]()+'\x0a\x0a'+_0x23d242[_0x4a504a(0x1f0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x62ff22,_0x31273c,_0x56cc08){const _0x3c2d99=a230_0x3cad95,_0x338b9b=getSkillTemplate(_0x62ff22);if(!_0x338b9b)throw new Error(_0x3c2d99(0x204));const _0x201aa3=dirname(_0x31273c);mkdirSync(_0x201aa3,{'recursive':!![]});let _0x1c4024=_0x338b9b[_0x3c2d99(0x1f1)](/\{\{IDE_NAME\}\}/g,_0x56cc08);_0x1c4024=appendExtendContents(_0x1c4024,_0x62ff22),_0x62ff22['skillTemplate'][_0x3c2d99(0x20b)]&&(_0x1c4024=appendUpdateTime(_0x1c4024,_0x62ff22[_0x3c2d99(0x1fd)][_0x3c2d99(0x20b)])),writeFileSync(_0x31273c,_0x1c4024,'utf-8');}export async function installGuides(_0x4631b4){const _0x4c493b=a230_0x3cad95,_0x3a1fac=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3a1fac,_0x4631b4),Object['keys'](_0x3a1fac[_0x4c493b(0x208)])[_0x4c493b(0x1f9)];}export function getGuidesSummary(_0x212698){const _0x22319b=a230_0x3cad95;return Object['entries'](_0x212698[_0x22319b(0x208)])['map'](([_0x1de434,_0x5764b7])=>({'key':_0x1de434,'title':_0x5764b7[_0x22319b(0x200)],'path':_0x5764b7[_0x22319b(0x20d)]}));}
1
+ const a230_0x3aa637=a230_0x2e23;(function(_0x508860,_0x4cb3ed){const _0x3a657a=a230_0x2e23,_0x25e265=_0x508860();while(!![]){try{const _0x470dc3=parseInt(_0x3a657a(0x1c6))/0x1*(-parseInt(_0x3a657a(0x1db))/0x2)+parseInt(_0x3a657a(0x1c3))/0x3*(parseInt(_0x3a657a(0x1e4))/0x4)+-parseInt(_0x3a657a(0x1de))/0x5*(parseInt(_0x3a657a(0x1d0))/0x6)+parseInt(_0x3a657a(0x1e2))/0x7+-parseInt(_0x3a657a(0x1d9))/0x8*(parseInt(_0x3a657a(0x1d5))/0x9)+-parseInt(_0x3a657a(0x1e0))/0xa*(-parseInt(_0x3a657a(0x1ce))/0xb)+parseInt(_0x3a657a(0x1dc))/0xc;if(_0x470dc3===_0x4cb3ed)break;else _0x25e265['push'](_0x25e265['shift']());}catch(_0x392609){_0x25e265['push'](_0x25e265['shift']());}}}(a230_0x185d,0x7c7a2));function a230_0x185d(){const _0x2e73f3=['.lovrabet/skill/guides','CDN\x20返回数据格式错误','491289jxnYhI','statusText','CDN\x20请求失败:\x20','5ElNden','CDN\x20数据中缺少\x20skillTemplate','length','utf-8','application/json','guides','keys','replace','33XGVlbW','extendContent','12uAtDxz','lastUpdated','entries','.md','status','9459RlblGp','map','join','/skills/guides.json','2456mkfNun','content','255544IrjcIg','7321728RtUbhk','path','1570830brcFYU','cache','30210wZXdhO','skillTemplate','3485454iqsaad','trimEnd','24msxmin','title'];a230_0x185d=function(){return _0x2e73f3;};return a230_0x185d();}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a230_0x2e23(_0x2bcb97,_0xf2f8fa){_0x2bcb97=_0x2bcb97-0x1c2;const _0x185d1c=a230_0x185d();let _0x2e2373=_0x185d1c[_0x2bcb97];return _0x2e2373;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x1eeef0=a230_0x2e23,_0xdc3ab=getTemplateBaseUrl();return _0xdc3ab+_0x1eeef0(0x1d8);}const CACHE_DIR=join(homedir(),'.lovrabet',a230_0x3aa637(0x1df));export async function fetchGuidesFromCDN(){const _0x62f4e9=a230_0x3aa637,_0x541139=getGuidesCdnUrl(),_0x15e71a=await fetch(_0x541139,{'headers':{'Accept':_0x62f4e9(0x1ca)}});if(!_0x15e71a['ok'])throw new Error(_0x62f4e9(0x1c5)+_0x15e71a[_0x62f4e9(0x1d4)]+'\x20'+_0x15e71a[_0x62f4e9(0x1c4)]);const _0x4fcf17=await _0x15e71a['json']();if(!_0x4fcf17[_0x62f4e9(0x1cb)]||typeof _0x4fcf17[_0x62f4e9(0x1cb)]!=='object')throw new Error(_0x62f4e9(0x1c2));return _0x4fcf17;}export function writeGuidesToProject(_0x12845f,_0x45ac9c,_0x300cc3=a230_0x3aa637(0x1e6),_0x1a7ecc){const _0x127a63=a230_0x3aa637,_0x139b6b=join(_0x45ac9c,_0x300cc3);mkdirSync(_0x139b6b,{'recursive':!![]});for(const [_0x5005c4,_0x5cf464]of Object[_0x127a63(0x1d2)](_0x12845f['guides'])){let _0x4df92a=_0x5cf464[_0x127a63(0x1da)];_0x5cf464['lastUpdated']&&(_0x4df92a=appendUpdateTime(_0x4df92a,_0x5cf464['lastUpdated'])),writeFileSync(join(_0x139b6b,_0x5005c4+_0x127a63(0x1d3)),_0x4df92a,_0x127a63(0x1c9));}}export function appendUpdateTime(_0x526574,_0x39d44a){const _0x4090a7=a230_0x3aa637;return _0x526574=_0x526574[_0x4090a7(0x1cd)](/\n*>更新时间:.*$/m,''),_0x526574[_0x4090a7(0x1e3)]()+('\x0a\x0a>更新时间:'+_0x39d44a);}export function getSkillTemplate(_0x25817b){const _0x3c05d4=a230_0x3aa637;return _0x25817b[_0x3c05d4(0x1e1)]?.[_0x3c05d4(0x1da)]||'';}export function appendExtendContents(_0x5d0740,_0x672de7,_0x61da9){const _0x6be57c=a230_0x3aa637,_0x3e06bc=[];for(const [,_0xfe330d]of Object[_0x6be57c(0x1d2)](_0x672de7[_0x6be57c(0x1cb)])){_0xfe330d[_0x6be57c(0x1cf)]&&_0x3e06bc['push'](_0xfe330d[_0x6be57c(0x1cf)][_0x6be57c(0x1e3)]());}if(_0x3e06bc[_0x6be57c(0x1c8)]===0x0)return _0x5d0740;return _0x5d0740[_0x6be57c(0x1e3)]()+'\x0a\x0a'+_0x3e06bc[_0x6be57c(0x1d7)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x15b133,_0x1d975f,_0x3588c9){const _0x4e2d9f=a230_0x3aa637,_0x4b938a=getSkillTemplate(_0x15b133);if(!_0x4b938a)throw new Error(_0x4e2d9f(0x1c7));const _0x1901fc=dirname(_0x1d975f);mkdirSync(_0x1901fc,{'recursive':!![]});let _0x3033a3=_0x4b938a[_0x4e2d9f(0x1cd)](/\{\{IDE_NAME\}\}/g,_0x3588c9);_0x3033a3=appendExtendContents(_0x3033a3,_0x15b133),_0x15b133[_0x4e2d9f(0x1e1)][_0x4e2d9f(0x1d1)]&&(_0x3033a3=appendUpdateTime(_0x3033a3,_0x15b133[_0x4e2d9f(0x1e1)]['lastUpdated'])),writeFileSync(_0x1d975f,_0x3033a3,_0x4e2d9f(0x1c9));}export async function installGuides(_0x14a725){const _0x1bc289=a230_0x3aa637,_0x5841b7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5841b7,_0x14a725),Object[_0x1bc289(0x1cc)](_0x5841b7[_0x1bc289(0x1cb)])[_0x1bc289(0x1c8)];}export function getGuidesSummary(_0x5f4119){const _0x585e0d=a230_0x3aa637;return Object[_0x585e0d(0x1d2)](_0x5f4119[_0x585e0d(0x1cb)])[_0x585e0d(0x1d6)](([_0xd61bf,_0x1a4f17])=>({'key':_0xd61bf,'title':_0x1a4f17[_0x585e0d(0x1e5)],'path':_0x1a4f17[_0x585e0d(0x1dd)]}));}
@@ -1 +1 @@
1
- function a231_0x5cf2(_0x430c56,_0x1e36a8){_0x430c56=_0x430c56-0x1e7;const _0xaa5da8=a231_0xaa5d();let _0x5cf20e=_0xaa5da8[_0x430c56];return _0x5cf20e;}(function(_0x30feeb,_0x353ca3){const _0x531214=a231_0x5cf2,_0x46b8d4=_0x30feeb();while(!![]){try{const _0x3d1d30=-parseInt(_0x531214(0x1f8))/0x1*(-parseInt(_0x531214(0x1ef))/0x2)+parseInt(_0x531214(0x1f0))/0x3*(-parseInt(_0x531214(0x203))/0x4)+parseInt(_0x531214(0x1eb))/0x5+parseInt(_0x531214(0x1fd))/0x6+parseInt(_0x531214(0x1f1))/0x7+parseInt(_0x531214(0x1fb))/0x8+parseInt(_0x531214(0x1f4))/0x9*(-parseInt(_0x531214(0x1f2))/0xa);if(_0x3d1d30===_0x353ca3)break;else _0x46b8d4['push'](_0x46b8d4['shift']());}catch(_0x260b8e){_0x46b8d4['push'](_0x46b8d4['shift']());}}}(a231_0xaa5d,0xbf3ed));function a231_0xaa5d(){const _0x5dd804=['headers','*\x20请求失败,','58QLzcdl','3aEdyBe','2515905TueGDg','50CmTMxG','includes','813537dCLRyx','get','\x20次重试...','AbortError','11759imkPzg','ENOTFOUND','Request\x20failed','5189192EMdbnt','name','1314174UBAFAy','message','signal','text','json','url','1915768AZVJJW','log','application/json','content-type','status','abort','730720HDmUlk','fetch'];a231_0xaa5d=function(){return _0x5dd804;};return a231_0xaa5d();}export async function httpRequest(_0x15a724,_0x160456={}){const _0x137be0=a231_0x5cf2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x160456;let _0x2599fd=null;for(let _0x5052a3=0x0;_0x5052a3<=retries;_0x5052a3++){try{const _0x506888=new AbortController(),_0x5559c1=setTimeout(()=>_0x506888[_0x137be0(0x1ea)](),timeout),_0x11d814=await fetch(_0x15a724,{'headers':headers,'signal':_0x506888[_0x137be0(0x1ff)]});clearTimeout(_0x5559c1);let _0xf1b2bb;const _0x1c3b16=_0x11d814['headers'][_0x137be0(0x1f5)](_0x137be0(0x1e8));return _0x1c3b16?.[_0x137be0(0x1f3)](_0x137be0(0x1e7))?_0xf1b2bb=await _0x11d814[_0x137be0(0x201)]():_0xf1b2bb=await _0x11d814['text'](),{'ok':_0x11d814['ok'],'status':_0x11d814[_0x137be0(0x1e9)],'statusText':_0x11d814['statusText'],'data':_0xf1b2bb,'headers':_0x11d814[_0x137be0(0x1ed)],'url':_0x11d814[_0x137be0(0x202)],'text':()=>_0x11d814[_0x137be0(0x200)]()};}catch(_0x1392db){_0x2599fd=_0x1392db instanceof Error?_0x1392db:new Error(String(_0x1392db));if(_0x5052a3===retries)break;if(shouldRetry(_0x1392db)){console[_0x137be0(0x204)](_0x137be0(0x1ee)+retryDelay+'ms\x20后进行第\x20'+(_0x5052a3+0x1)+_0x137be0(0x1f6)),await sleep(retryDelay);continue;}else break;}}throw _0x2599fd||new Error(_0x137be0(0x1fa));}function shouldRetry(_0xa40297){const _0x34e837=a231_0x5cf2;if(_0xa40297 instanceof Error){if(_0xa40297[_0x34e837(0x1fc)]===_0x34e837(0x1f7))return![];if(_0xa40297[_0x34e837(0x1fc)]==='TypeError'&&_0xa40297[_0x34e837(0x1fe)][_0x34e837(0x1f3)](_0x34e837(0x1ec)))return!![];if(_0xa40297[_0x34e837(0x1fe)]['includes']('ECONNRESET'))return!![];if(_0xa40297[_0x34e837(0x1fe)][_0x34e837(0x1f3)](_0x34e837(0x1f9)))return![];}return![];}function sleep(_0x50af12){return new Promise(_0x5cdd60=>setTimeout(_0x5cdd60,_0x50af12));}export function validateUrl(_0x60dbc0){try{return new URL(_0x60dbc0),!![];}catch{return![];}}
1
+ (function(_0x3bd2ef,_0x4bd3a0){const _0x216bf7=a231_0x3c08,_0x5c6920=_0x3bd2ef();while(!![]){try{const _0x3e9816=parseInt(_0x216bf7(0x1a7))/0x1+parseInt(_0x216bf7(0x1aa))/0x2*(-parseInt(_0x216bf7(0x19c))/0x3)+-parseInt(_0x216bf7(0x194))/0x4+parseInt(_0x216bf7(0x1ac))/0x5+-parseInt(_0x216bf7(0x1b2))/0x6*(parseInt(_0x216bf7(0x1ad))/0x7)+parseInt(_0x216bf7(0x198))/0x8+parseInt(_0x216bf7(0x1a8))/0x9*(parseInt(_0x216bf7(0x19b))/0xa);if(_0x3e9816===_0x4bd3a0)break;else _0x5c6920['push'](_0x5c6920['shift']());}catch(_0xe07f27){_0x5c6920['push'](_0x5c6920['shift']());}}}(a231_0x616b,0x8f80b));export async function httpRequest(_0x12f15,_0x1155ea={}){const _0x12f711=a231_0x3c08,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1155ea;let _0x288401=null;for(let _0x1376a8=0x0;_0x1376a8<=retries;_0x1376a8++){try{const _0x5d9a63=new AbortController(),_0x47384f=setTimeout(()=>_0x5d9a63[_0x12f711(0x1b0)](),timeout),_0x382dff=await fetch(_0x12f15,{'headers':headers,'signal':_0x5d9a63['signal']});clearTimeout(_0x47384f);let _0x2a18e4;const _0x57b790=_0x382dff['headers'][_0x12f711(0x1a5)](_0x12f711(0x1a2));return _0x57b790?.['includes'](_0x12f711(0x199))?_0x2a18e4=await _0x382dff['json']():_0x2a18e4=await _0x382dff[_0x12f711(0x1a4)](),{'ok':_0x382dff['ok'],'status':_0x382dff[_0x12f711(0x1a3)],'statusText':_0x382dff[_0x12f711(0x195)],'data':_0x2a18e4,'headers':_0x382dff[_0x12f711(0x1b1)],'url':_0x382dff[_0x12f711(0x1a0)],'text':()=>_0x382dff[_0x12f711(0x1a4)]()};}catch(_0x57be1a){_0x288401=_0x57be1a instanceof Error?_0x57be1a:new Error(String(_0x57be1a));if(_0x1376a8===retries)break;if(shouldRetry(_0x57be1a)){console[_0x12f711(0x19a)](_0x12f711(0x1a9)+retryDelay+_0x12f711(0x196)+(_0x1376a8+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x288401||new Error(_0x12f711(0x1af));}function a231_0x616b(){const _0x2acd90=['url','message','content-type','status','text','get','ECONNRESET','186670bUQzBj','5291343nliZru','*\x20请求失败,','594IrrWto','AbortError','239170AysiqA','2703323qyhDzi','ENOTFOUND','Request\x20failed','abort','headers','18eMSaxE','4019536POSvFh','statusText','ms\x20后进行第\x20','name','6282608gxywfn','application/json','log','30KfJjki','327YjfGsq','includes','fetch','TypeError'];a231_0x616b=function(){return _0x2acd90;};return a231_0x616b();}function shouldRetry(_0x223a1b){const _0x278958=a231_0x3c08;if(_0x223a1b instanceof Error){if(_0x223a1b['name']===_0x278958(0x1ab))return![];if(_0x223a1b[_0x278958(0x197)]===_0x278958(0x19f)&&_0x223a1b[_0x278958(0x1a1)][_0x278958(0x19d)](_0x278958(0x19e)))return!![];if(_0x223a1b[_0x278958(0x1a1)][_0x278958(0x19d)](_0x278958(0x1a6)))return!![];if(_0x223a1b[_0x278958(0x1a1)][_0x278958(0x19d)](_0x278958(0x1ae)))return![];}return![];}function sleep(_0x39e2ae){return new Promise(_0x1cd4cf=>setTimeout(_0x1cd4cf,_0x39e2ae));}function a231_0x3c08(_0x30584a,_0x263a6b){_0x30584a=_0x30584a-0x194;const _0x616b0c=a231_0x616b();let _0x3c087e=_0x616b0c[_0x30584a];return _0x3c087e;}export function validateUrl(_0xb66818){try{return new URL(_0xb66818),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a232_0x138c(){const _0x4dc448=['1215252zmoWMY','138kJfFCN','45jLoGtu','6215480uHbfiQ','stdout','2190115IHwIas','91763RlWfXf','nonInteractive','479523GKmxHp','20313927qeegIk','stdin','isTTY','10eeNgSF','setRawMode','164632lGFXUB','true'];a232_0x138c=function(){return _0x4dc448;};return a232_0x138c();}function a232_0x4f97(_0x339dae,_0x5528ec){_0x339dae=_0x339dae-0xe8;const _0x138cbd=a232_0x138c();let _0x4f97b0=_0x138cbd[_0x339dae];return _0x4f97b0;}(function(_0x3c7197,_0x2cadb8){const _0x5234f7=a232_0x4f97,_0x2b5b10=_0x3c7197();while(!![]){try{const _0x42bdc2=-parseInt(_0x5234f7(0xf6))/0x1+-parseInt(_0x5234f7(0xee))/0x2+-parseInt(_0x5234f7(0xf0))/0x3*(parseInt(_0x5234f7(0xec))/0x4)+parseInt(_0x5234f7(0xf3))/0x5+parseInt(_0x5234f7(0xef))/0x6*(parseInt(_0x5234f7(0xf4))/0x7)+-parseInt(_0x5234f7(0xf1))/0x8+-parseInt(_0x5234f7(0xf7))/0x9*(-parseInt(_0x5234f7(0xea))/0xa);if(_0x42bdc2===_0x2cadb8)break;else _0x2b5b10['push'](_0x2b5b10['shift']());}catch(_0x1a6e9a){_0x2b5b10['push'](_0x2b5b10['shift']());}}}(a232_0x138c,0x7dc6b));function env(_0x33df0d){return process.env[`RABETBASE_${_0x33df0d}`]||process.env[`LOVRABET_${_0x33df0d}`]||undefined;}export function isNonInteractive(_0x5d3d9e){const _0xb984d8=a232_0x4f97;return!!(_0x5d3d9e[_0xb984d8(0xf5)]||_0x5d3d9e['ci']||env('CI')==='true'||process.env.CI===_0xb984d8(0xed)||!process[_0xb984d8(0xf2)][_0xb984d8(0xe9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e1569=a232_0x4f97;if(!process[_0x5e1569(0xe8)][_0x5e1569(0xe9)])return![];try{const _0x13c067=process['stdin']['isRaw'];return process[_0x5e1569(0xe8)]['setRawMode'](!![]),process[_0x5e1569(0xe8)][_0x5e1569(0xeb)](_0x13c067??![]),!![];}catch{return![];}}
1
+ (function(_0x5e041e,_0x519c76){const _0x5533fa=a232_0x1736,_0x547a90=_0x5e041e();while(!![]){try{const _0x342ddf=parseInt(_0x5533fa(0x174))/0x1*(parseInt(_0x5533fa(0x16b))/0x2)+parseInt(_0x5533fa(0x163))/0x3*(-parseInt(_0x5533fa(0x162))/0x4)+-parseInt(_0x5533fa(0x16e))/0x5*(parseInt(_0x5533fa(0x168))/0x6)+parseInt(_0x5533fa(0x171))/0x7*(parseInt(_0x5533fa(0x16f))/0x8)+parseInt(_0x5533fa(0x169))/0x9*(parseInt(_0x5533fa(0x165))/0xa)+-parseInt(_0x5533fa(0x166))/0xb+parseInt(_0x5533fa(0x167))/0xc*(parseInt(_0x5533fa(0x164))/0xd);if(_0x342ddf===_0x519c76)break;else _0x547a90['push'](_0x547a90['shift']());}catch(_0x5eb89b){_0x547a90['push'](_0x547a90['shift']());}}}(a232_0x525b,0xf1593));function a232_0x525b(){const _0xec3486=['3ZsGIJC','6368052MlYpik','3ZGoULo','13bSuloY','10gQqUxl','16292815LZjvzq','35475444WnRFqY','1710dmBhOa','6174567XzATfW','isTTY','439238dKSYqG','isRaw','setRawMode','27265YTyQuw','632EzfRfS','nonInteractive','116487FOcJBs','stdin','true'];a232_0x525b=function(){return _0xec3486;};return a232_0x525b();}function env(_0x30b50e){return process.env[`RABETBASE_${_0x30b50e}`]||process.env[`LOVRABET_${_0x30b50e}`]||undefined;}export function isNonInteractive(_0x45f80c){const _0x50d7e5=a232_0x1736;return!!(_0x45f80c[_0x50d7e5(0x170)]||_0x45f80c['ci']||env('CI')==='true'||process.env.CI===_0x50d7e5(0x173)||!process['stdout'][_0x50d7e5(0x16a)]||!isStdinRawModeSupported());}function a232_0x1736(_0x5d32d2,_0x5ab592){_0x5d32d2=_0x5d32d2-0x162;const _0x525bb8=a232_0x525b();let _0x17364b=_0x525bb8[_0x5d32d2];return _0x17364b;}function isStdinRawModeSupported(){const _0x9d199d=a232_0x1736;if(!process[_0x9d199d(0x172)][_0x9d199d(0x16a)])return![];try{const _0x157a58=process[_0x9d199d(0x172)][_0x9d199d(0x16c)];return process[_0x9d199d(0x172)]['setRawMode'](!![]),process[_0x9d199d(0x172)][_0x9d199d(0x16d)](_0x157a58??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a233_0x201547=a233_0x4602;(function(_0x335681,_0x5ecc34){const _0x43f0cf=a233_0x4602,_0x23ded9=_0x335681();while(!![]){try{const _0x3337cb=parseInt(_0x43f0cf(0xc9))/0x1+-parseInt(_0x43f0cf(0xe2))/0x2*(-parseInt(_0x43f0cf(0xe7))/0x3)+parseInt(_0x43f0cf(0xd2))/0x4*(parseInt(_0x43f0cf(0xe9))/0x5)+parseInt(_0x43f0cf(0xfc))/0x6+parseInt(_0x43f0cf(0xf1))/0x7*(-parseInt(_0x43f0cf(0xdf))/0x8)+parseInt(_0x43f0cf(0xed))/0x9+-parseInt(_0x43f0cf(0xfa))/0xa*(parseInt(_0x43f0cf(0xd0))/0xb);if(_0x3337cb===_0x5ecc34)break;else _0x23ded9['push'](_0x23ded9['shift']());}catch(_0x314395){_0x23ded9['push'](_0x23ded9['shift']());}}}(a233_0x35bd,0x801fa));import a233_0x58c63d from'winston';import a233_0x1e3eb2 from'node:fs';import a233_0x2e881f from'node:path';class Logger{[a233_0x201547(0xdd)];[a233_0x201547(0xca)];[a233_0x201547(0xf2)]='';constructor(){this['logFilePath']='';}[a233_0x201547(0xd8)](_0x1fb31e){const _0x568a7d=a233_0x201547;this[_0x568a7d(0xf2)]=_0x1fb31e;}[a233_0x201547(0xcd)](){const _0x446798=a233_0x201547,_0xfa1a9e=a233_0x2e881f[_0x446798(0xcf)](this[_0x446798(0xca)]);!a233_0x1e3eb2[_0x446798(0xc8)](_0xfa1a9e)&&a233_0x1e3eb2[_0x446798(0xe4)](_0xfa1a9e,{'recursive':!![]});const _0x70cf2e=a233_0x58c63d['format'][_0x446798(0xf3)](a233_0x58c63d[_0x446798(0xda)][_0x446798(0xea)](),a233_0x58c63d[_0x446798(0xda)]['errors']({'stack':!![]}),a233_0x58c63d[_0x446798(0xda)][_0x446798(0xe6)](_0xc6e4fa=>{const _0x5ffd8a=_0x446798,_0x405c8c={'timestamp':_0xc6e4fa[_0x5ffd8a(0xea)]||new Date()[_0x5ffd8a(0xcc)](),'level':_0xc6e4fa[_0x5ffd8a(0xde)]||_0x5ffd8a(0xee),'command':_0xc6e4fa['command']||_0x5ffd8a(0xdb),'rawCommand':_0xc6e4fa[_0x5ffd8a(0xf8)]||this[_0x5ffd8a(0xf2)]||undefined,'message':_0xc6e4fa[_0x5ffd8a(0xce)]||'','duration':_0xc6e4fa[_0x5ffd8a(0xd3)]||undefined,'details':_0xc6e4fa[_0x5ffd8a(0xf9)]||undefined};return JSON['stringify'](_0x405c8c);}));this[_0x446798(0xdd)]=a233_0x58c63d['createLogger']({'level':_0x446798(0xee),'format':_0x70cf2e,'transports':[new a233_0x58c63d['transports'][(_0x446798(0xd1))]({'filename':this['logFilePath'],'level':_0x446798(0xee)})],'silent':![]}),a233_0x58c63d[_0x446798(0xd6)]({'success':'green','error':'red','warn':'yellow','info':_0x446798(0xf0)});}[a233_0x201547(0xe0)](_0x3f86bd){const _0x2544ad=a233_0x201547;this['logFilePath']=a233_0x2e881f[_0x2544ad(0xd9)](_0x3f86bd,_0x2544ad(0xd5)),this[_0x2544ad(0xdd)]&&this[_0x2544ad(0xdd)]['clear'](),this[_0x2544ad(0xcd)]();}[a233_0x201547(0xee)](_0x566265,_0xfa17a9,_0x36ac71){const _0x1a09a4=a233_0x201547;if(!this['logFilePath']||!this[_0x1a09a4(0xdd)])return;this[_0x1a09a4(0xdd)][_0x1a09a4(0xee)](_0xfa17a9,{'command':_0x566265,'details':_0x36ac71});}[a233_0x201547(0xff)](_0x530acb,_0x4b2f8a,_0x2fdeb2,_0x33dfac){const _0x319a21=a233_0x201547;if(!this[_0x319a21(0xca)]||!this[_0x319a21(0xdd)])return;this[_0x319a21(0xdd)][_0x319a21(0xe5)](_0x319a21(0xee),_0x4b2f8a,{'level':_0x319a21(0xff),'command':_0x530acb,'duration':_0x2fdeb2,'details':_0x33dfac});}[a233_0x201547(0xd7)](_0x16e5ab,_0x28f5ab,_0x15260c){const _0x49ed00=a233_0x201547;if(!this[_0x49ed00(0xca)]||!this[_0x49ed00(0xdd)])return;this[_0x49ed00(0xdd)][_0x49ed00(0xd7)](_0x28f5ab,{'command':_0x16e5ab,'details':_0x15260c});}[a233_0x201547(0xec)](_0x23381d,_0x2669a1,_0x4d48a0){const _0x11338e=a233_0x201547;if(!this[_0x11338e(0xca)]||!this[_0x11338e(0xdd)])return;this[_0x11338e(0xdd)][_0x11338e(0xec)](_0x2669a1,{'command':_0x23381d,'details':_0x4d48a0});}async[a233_0x201547(0xe1)](_0x2f7f1d,_0x52edff,_0x484fb5){const _0x9dcf6d=a233_0x201547,_0x556bf5=Date[_0x9dcf6d(0xeb)]();this[_0x9dcf6d(0xee)](_0x2f7f1d,_0x9dcf6d(0xe8)+_0x52edff);try{const _0xa591ba=await _0x484fb5(),_0x265627=Date[_0x9dcf6d(0xeb)]()-_0x556bf5;return this[_0x9dcf6d(0xff)](_0x2f7f1d,_0x9dcf6d(0xcb)+_0x52edff,_0x265627),_0xa591ba;}catch(_0x1a65c1){const _0x5418bb=Date[_0x9dcf6d(0xeb)]()-_0x556bf5;this['error'](_0x2f7f1d,'失败:\x20'+_0x52edff,{'error':_0x1a65c1 instanceof Error?_0x1a65c1[_0x9dcf6d(0xce)]:String(_0x1a65c1),'duration':_0x5418bb});throw _0x1a65c1;}}[a233_0x201547(0xfb)](){const _0x5f1caf=a233_0x201547;try{if(!a233_0x1e3eb2[_0x5f1caf(0xc8)](this[_0x5f1caf(0xca)]))return[];const _0x3934a4=a233_0x1e3eb2[_0x5f1caf(0xe3)](this['logFilePath'],_0x5f1caf(0xf4));return _0x3934a4[_0x5f1caf(0xf6)]('\x0a')[_0x5f1caf(0xef)](_0x48b1bc=>_0x48b1bc['trim']())[_0x5f1caf(0xf5)](_0x5652e7=>JSON[_0x5f1caf(0xfd)](_0x5652e7));}catch(_0xa2641b){return console[_0x5f1caf(0xec)](_0x5f1caf(0xfe),_0xa2641b),[];}}[a233_0x201547(0xdc)](){const _0x3abbd7=a233_0x201547;try{a233_0x1e3eb2['existsSync'](this['logFilePath'])&&a233_0x1e3eb2[_0x3abbd7(0xf7)](this[_0x3abbd7(0xca)],'','utf8');}catch(_0x501155){console[_0x3abbd7(0xec)](_0x3abbd7(0xd4),_0x501155);}}['getWinstonInstance'](){const _0x5a589c=a233_0x201547;return this[_0x5a589c(0xdd)];}}export const logger=new Logger();function a233_0x4602(_0x41b488,_0x2ad324){_0x41b488=_0x41b488-0xc8;const _0x35bdcc=a233_0x35bd();let _0x460257=_0x35bdcc[_0x41b488];return _0x460257;}function a233_0x35bd(){const _0x2246d5=['logTask','26xzzPvy','readFileSync','mkdirSync','log','printf','39561qDJJXW','开始执行:\x20','5sqQWsx','timestamp','now','warn','5739687JYQZhS','info','filter','blue','7QymCBv','currentRawCommand','combine','utf8','map','split','writeFileSync','rawCommand','details','30idftCx','readLogs','5144112JYpkWa','parse','Failed\x20to\x20read\x20logs:','success','existsSync','462446OvmznN','logFilePath','完成:\x20','toISOString','initWinstonLogger','message','dirname','3549304nPNmkL','File','637036FQpalw','duration','Failed\x20to\x20clear\x20logs:','.lovrabet.log','addColors','error','setRawCommand','join','format','unknown','clearLogs','winstonLogger','level','6363560ZDcEme','setLogPath'];a233_0x35bd=function(){return _0x2246d5;};return a233_0x35bd();}
1
+ const a233_0x239c0b=a233_0x4003;(function(_0x3d3841,_0xb02ced){const _0x964004=a233_0x4003,_0x3bf72b=_0x3d3841();while(!![]){try{const _0x27d124=-parseInt(_0x964004(0x1b7))/0x1*(parseInt(_0x964004(0x1d4))/0x2)+parseInt(_0x964004(0x1e1))/0x3*(-parseInt(_0x964004(0x1da))/0x4)+-parseInt(_0x964004(0x1dc))/0x5+-parseInt(_0x964004(0x1b9))/0x6+-parseInt(_0x964004(0x1d7))/0x7+-parseInt(_0x964004(0x1e8))/0x8+parseInt(_0x964004(0x1b4))/0x9*(parseInt(_0x964004(0x1c9))/0xa);if(_0x27d124===_0xb02ced)break;else _0x3bf72b['push'](_0x3bf72b['shift']());}catch(_0x2bb552){_0x3bf72b['push'](_0x3bf72b['shift']());}}}(a233_0x59bc,0x2e2a9));function a233_0x4003(_0x1358b4,_0x2687dd){_0x1358b4=_0x1358b4-0x1af;const _0x59bcb7=a233_0x59bc();let _0x40032b=_0x59bcb7[_0x1358b4];return _0x40032b;}import a233_0x375475 from'winston';import a233_0x3486b7 from'node:fs';import a233_0xa5a94e from'node:path';function a233_0x59bc(){const _0x26c0e4=['green','setRawCommand','开始执行:\x20','20swRnyc','combine','writeFileSync','2601333gzCAhx','split','duration','13096yCAqfG','完成:\x20','1763215FPoeWT','utf8','失败:\x20','Failed\x20to\x20clear\x20logs:','rawCommand','132ojZmZi','now','yellow','existsSync','transports','command','toISOString','2720328NHJGnI','Failed\x20to\x20read\x20logs:','blue','info','join','errors','.lovrabet.log','1378395iXAYyV','mkdirSync','timestamp','4763RjdmjT','details','1437714aOngIE','dirname','readLogs','level','readFileSync','log','clear','createLogger','success','clearLogs','printf','map','red','format','error','setLogPath','110YeArtY','currentRawCommand','warn','getWinstonInstance','winstonLogger','message','logTask','logFilePath'];a233_0x59bc=function(){return _0x26c0e4;};return a233_0x59bc();}class Logger{[a233_0x239c0b(0x1cd)];['logFilePath'];[a233_0x239c0b(0x1ca)]='';constructor(){const _0x5b4cf2=a233_0x239c0b;this[_0x5b4cf2(0x1d0)]='';}[a233_0x239c0b(0x1d2)](_0x4ac59e){const _0x8c8617=a233_0x239c0b;this[_0x8c8617(0x1ca)]=_0x4ac59e;}['initWinstonLogger'](){const _0x4fb1d1=a233_0x239c0b,_0x3cb174=a233_0xa5a94e[_0x4fb1d1(0x1ba)](this[_0x4fb1d1(0x1d0)]);!a233_0x3486b7[_0x4fb1d1(0x1e4)](_0x3cb174)&&a233_0x3486b7[_0x4fb1d1(0x1b5)](_0x3cb174,{'recursive':!![]});const _0x4cf2f6=a233_0x375475[_0x4fb1d1(0x1c6)][_0x4fb1d1(0x1d5)](a233_0x375475[_0x4fb1d1(0x1c6)][_0x4fb1d1(0x1b6)](),a233_0x375475[_0x4fb1d1(0x1c6)][_0x4fb1d1(0x1b2)]({'stack':!![]}),a233_0x375475[_0x4fb1d1(0x1c6)][_0x4fb1d1(0x1c3)](_0x5cf756=>{const _0x5b30c0=_0x4fb1d1,_0x575bef={'timestamp':_0x5cf756[_0x5b30c0(0x1b6)]||new Date()[_0x5b30c0(0x1e7)](),'level':_0x5cf756[_0x5b30c0(0x1bc)]||_0x5b30c0(0x1b0),'command':_0x5cf756[_0x5b30c0(0x1e6)]||'unknown','rawCommand':_0x5cf756[_0x5b30c0(0x1e0)]||this[_0x5b30c0(0x1ca)]||undefined,'message':_0x5cf756[_0x5b30c0(0x1ce)]||'','duration':_0x5cf756[_0x5b30c0(0x1d9)]||undefined,'details':_0x5cf756[_0x5b30c0(0x1b8)]||undefined};return JSON['stringify'](_0x575bef);}));this[_0x4fb1d1(0x1cd)]=a233_0x375475[_0x4fb1d1(0x1c0)]({'level':'info','format':_0x4cf2f6,'transports':[new a233_0x375475[(_0x4fb1d1(0x1e5))]['File']({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a233_0x375475['addColors']({'success':_0x4fb1d1(0x1d1),'error':_0x4fb1d1(0x1c5),'warn':_0x4fb1d1(0x1e3),'info':_0x4fb1d1(0x1af)});}[a233_0x239c0b(0x1c8)](_0x1eae1c){const _0x423868=a233_0x239c0b;this[_0x423868(0x1d0)]=a233_0xa5a94e[_0x423868(0x1b1)](_0x1eae1c,_0x423868(0x1b3)),this[_0x423868(0x1cd)]&&this[_0x423868(0x1cd)][_0x423868(0x1bf)](),this['initWinstonLogger']();}[a233_0x239c0b(0x1b0)](_0x67e2d1,_0x5b2142,_0x3e505a){const _0x5fa0d1=a233_0x239c0b;if(!this[_0x5fa0d1(0x1d0)]||!this[_0x5fa0d1(0x1cd)])return;this[_0x5fa0d1(0x1cd)]['info'](_0x5b2142,{'command':_0x67e2d1,'details':_0x3e505a});}[a233_0x239c0b(0x1c1)](_0x463fdc,_0x43e945,_0x591936,_0x2e6683){const _0x5da844=a233_0x239c0b;if(!this[_0x5da844(0x1d0)]||!this[_0x5da844(0x1cd)])return;this[_0x5da844(0x1cd)][_0x5da844(0x1be)](_0x5da844(0x1b0),_0x43e945,{'level':'success','command':_0x463fdc,'duration':_0x591936,'details':_0x2e6683});}[a233_0x239c0b(0x1c7)](_0x54fb62,_0xb53ee3,_0x160e0a){const _0xa648ca=a233_0x239c0b;if(!this['logFilePath']||!this[_0xa648ca(0x1cd)])return;this[_0xa648ca(0x1cd)]['error'](_0xb53ee3,{'command':_0x54fb62,'details':_0x160e0a});}[a233_0x239c0b(0x1cb)](_0x7e3dc5,_0x2c36e4,_0x3dbb5a){const _0x25e79f=a233_0x239c0b;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x25e79f(0x1cd)][_0x25e79f(0x1cb)](_0x2c36e4,{'command':_0x7e3dc5,'details':_0x3dbb5a});}async[a233_0x239c0b(0x1cf)](_0x105698,_0x39b220,_0x49996b){const _0x26eb6c=a233_0x239c0b,_0x9d8f6a=Date['now']();this[_0x26eb6c(0x1b0)](_0x105698,_0x26eb6c(0x1d3)+_0x39b220);try{const _0x3b6b74=await _0x49996b(),_0x38db64=Date[_0x26eb6c(0x1e2)]()-_0x9d8f6a;return this['success'](_0x105698,_0x26eb6c(0x1db)+_0x39b220,_0x38db64),_0x3b6b74;}catch(_0x2353e9){const _0x3f12ce=Date[_0x26eb6c(0x1e2)]()-_0x9d8f6a;this[_0x26eb6c(0x1c7)](_0x105698,_0x26eb6c(0x1de)+_0x39b220,{'error':_0x2353e9 instanceof Error?_0x2353e9['message']:String(_0x2353e9),'duration':_0x3f12ce});throw _0x2353e9;}}[a233_0x239c0b(0x1bb)](){const _0x327fad=a233_0x239c0b;try{if(!a233_0x3486b7[_0x327fad(0x1e4)](this[_0x327fad(0x1d0)]))return[];const _0x2e8217=a233_0x3486b7[_0x327fad(0x1bd)](this['logFilePath'],_0x327fad(0x1dd));return _0x2e8217[_0x327fad(0x1d8)]('\x0a')['filter'](_0x14549d=>_0x14549d['trim']())[_0x327fad(0x1c4)](_0x122fb8=>JSON['parse'](_0x122fb8));}catch(_0x37e282){return console[_0x327fad(0x1cb)](_0x327fad(0x1e9),_0x37e282),[];}}[a233_0x239c0b(0x1c2)](){const _0x5e3af7=a233_0x239c0b;try{a233_0x3486b7['existsSync'](this[_0x5e3af7(0x1d0)])&&a233_0x3486b7[_0x5e3af7(0x1d6)](this['logFilePath'],'','utf8');}catch(_0x373f47){console['warn'](_0x5e3af7(0x1df),_0x373f47);}}[a233_0x239c0b(0x1cc)](){const _0x1c0910=a233_0x239c0b;return this[_0x1c0910(0x1cd)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0xedb276,_0x1bf23f){const _0x55220f=a234_0x2e8a,_0x337a95=_0xedb276();while(!![]){try{const _0x234126=-parseInt(_0x55220f(0xed))/0x1*(-parseInt(_0x55220f(0xe9))/0x2)+parseInt(_0x55220f(0xf1))/0x3+parseInt(_0x55220f(0xeb))/0x4+parseInt(_0x55220f(0xee))/0x5+parseInt(_0x55220f(0xf3))/0x6*(-parseInt(_0x55220f(0xe8))/0x7)+parseInt(_0x55220f(0xf0))/0x8*(parseInt(_0x55220f(0xec))/0x9)+parseInt(_0x55220f(0xef))/0xa*(-parseInt(_0x55220f(0xe5))/0xb);if(_0x234126===_0x1bf23f)break;else _0x337a95['push'](_0x337a95['shift']());}catch(_0x1b1245){_0x337a95['push'](_0x337a95['shift']());}}}(a234_0x5c90,0xb5612));import{CliErrors}from'../errors.js';function a234_0x2e8a(_0x174346,_0x3d2bb2){_0x174346=_0x174346-0xe3;const _0x5c908f=a234_0x5c90();let _0x2e8a38=_0x5c908f[_0x174346];return _0x2e8a38;}export function parseJsonParams(_0x5e9ea6){const _0x40620c=a234_0x2e8a;if(!_0x5e9ea6)return undefined;let _0x7beb5e;try{_0x7beb5e=JSON[_0x40620c(0xea)](_0x5e9ea6);}catch{throw CliErrors['validation'](_0x40620c(0xe4)+_0x5e9ea6);}if(!_0x7beb5e||typeof _0x7beb5e!==_0x40620c(0xf2)||Array[_0x40620c(0xe6)](_0x7beb5e))throw CliErrors[_0x40620c(0xe7)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x40620c(0xe3));return _0x7beb5e;}function a234_0x5c90(){const _0x5cb7fe=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','26271949VyqKsj','isArray','validation','357gXXuwF','1976346CShtWp','parse','2596660tMIRVZ','354789SReSez','1QIOzVB','7194165srQmbB','10VZrdsT','8mTlOYt','1214634mDCJjO','object','45786cqVADB'];a234_0x5c90=function(){return _0x5cb7fe;};return a234_0x5c90();}
1
+ (function(_0x2b1328,_0x31d9e1){const _0x2815f0=a234_0x25de,_0xcb4dee=_0x2b1328();while(!![]){try{const _0x2dfeec=-parseInt(_0x2815f0(0x7f))/0x1*(-parseInt(_0x2815f0(0x7a))/0x2)+parseInt(_0x2815f0(0x79))/0x3+-parseInt(_0x2815f0(0x81))/0x4+-parseInt(_0x2815f0(0x73))/0x5*(parseInt(_0x2815f0(0x7d))/0x6)+-parseInt(_0x2815f0(0x7e))/0x7+-parseInt(_0x2815f0(0x7b))/0x8+-parseInt(_0x2815f0(0x75))/0x9*(-parseInt(_0x2815f0(0x74))/0xa);if(_0x2dfeec===_0x31d9e1)break;else _0xcb4dee['push'](_0xcb4dee['shift']());}catch(_0x25666a){_0xcb4dee['push'](_0xcb4dee['shift']());}}}(a234_0x5b95,0x882aa));import{CliErrors}from'../errors.js';function a234_0x25de(_0x434f58,_0x4b1edc){_0x434f58=_0x434f58-0x73;const _0x5b9585=a234_0x5b95();let _0x25de69=_0x5b9585[_0x434f58];return _0x25de69;}function a234_0x5b95(){const _0x253255=['--params\x20must\x20be\x20a\x20JSON\x20object','2069949GXdlmG','28mUwPMU','2451144rSjYZJ','validation','1302EAlUZv','1145900HnqfSX','19814QjIbLd','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3803664NpnZBI','13890fdwLvk','8070970dBprdZ','18jfiySt','object','parse'];a234_0x5b95=function(){return _0x253255;};return a234_0x5b95();}export function parseJsonParams(_0x5ec7c8){const _0x15d10c=a234_0x25de;if(!_0x5ec7c8)return undefined;let _0x848ce;try{_0x848ce=JSON[_0x15d10c(0x77)](_0x5ec7c8);}catch{throw CliErrors[_0x15d10c(0x7c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5ec7c8);}if(!_0x848ce||typeof _0x848ce!==_0x15d10c(0x76)||Array['isArray'](_0x848ce))throw CliErrors[_0x15d10c(0x7c)](_0x15d10c(0x78),_0x15d10c(0x80));return _0x848ce;}
@@ -1 +1 @@
1
- const a235_0x2c4054=a235_0x524c;(function(_0x170db7,_0x5183be){const _0x5addff=a235_0x524c,_0x106bba=_0x170db7();while(!![]){try{const _0x58b39d=-parseInt(_0x5addff(0x1c9))/0x1*(parseInt(_0x5addff(0x1c4))/0x2)+parseInt(_0x5addff(0x1c5))/0x3*(parseInt(_0x5addff(0x1c7))/0x4)+-parseInt(_0x5addff(0x1c8))/0x5+parseInt(_0x5addff(0x1cb))/0x6+-parseInt(_0x5addff(0x1ca))/0x7+parseInt(_0x5addff(0x1c3))/0x8+-parseInt(_0x5addff(0x1c1))/0x9*(-parseInt(_0x5addff(0x1c2))/0xa);if(_0x58b39d===_0x5183be)break;else _0x106bba['push'](_0x106bba['shift']());}catch(_0x37341e){_0x106bba['push'](_0x106bba['shift']());}}}(a235_0xe640,0xa1f83));function a235_0x524c(_0x61c0ab,_0xe095f9){_0x61c0ab=_0x61c0ab-0x1c1;const _0xe6403c=a235_0xe640();let _0x524c61=_0xe6403c[_0x61c0ab];return _0x524c61;}export const isWindows=process[a235_0x2c4054(0x1cd)]===a235_0x2c4054(0x1c6);function a235_0xe640(){const _0x2aea02=['.cmd','platform','3196755lxvZuT','10QaItQz','5053856hoSsMl','146EtYxcY','3arHjHi','win32','3327368loUPsf','1725025ZXulNB','16976bHRyhf','4405065ZLrgQY','6349236jItZBJ'];a235_0xe640=function(){return _0x2aea02;};return a235_0xe640();}export function resolveNpmBin(_0x51ece6){const _0x22c708=a235_0x2c4054;return isWindows?_0x51ece6+_0x22c708(0x1cc):_0x51ece6;}
1
+ const a235_0x48e469=a235_0xc780;function a235_0x17fa(){const _0x1c3c37=['169281NhXVXf','platform','208UrExgE','842177JcDhGv','win32','2202rWlTXd','30454932JwzeQC','6AZlDuc','2972DGdEmD','662848klvRIS','7150825GkEtYZ','13lQLGDs','3205nyTuFp','2tMmVpI','10NlILcT'];a235_0x17fa=function(){return _0x1c3c37;};return a235_0x17fa();}(function(_0x1b2ef1,_0x1d3c81){const _0x8aa3f2=a235_0xc780,_0x34f68e=_0x1b2ef1();while(!![]){try{const _0x212b5d=-parseInt(_0x8aa3f2(0x1c6))/0x1+parseInt(_0x8aa3f2(0x1bb))/0x2*(-parseInt(_0x8aa3f2(0x1c2))/0x3)+parseInt(_0x8aa3f2(0x1c5))/0x4*(-parseInt(_0x8aa3f2(0x1ba))/0x5)+-parseInt(_0x8aa3f2(0x1c4))/0x6*(-parseInt(_0x8aa3f2(0x1c0))/0x7)+-parseInt(_0x8aa3f2(0x1bf))/0x8*(parseInt(_0x8aa3f2(0x1bd))/0x9)+-parseInt(_0x8aa3f2(0x1bc))/0xa*(parseInt(_0x8aa3f2(0x1b8))/0xb)+-parseInt(_0x8aa3f2(0x1c3))/0xc*(-parseInt(_0x8aa3f2(0x1b9))/0xd);if(_0x212b5d===_0x1d3c81)break;else _0x34f68e['push'](_0x34f68e['shift']());}catch(_0x40f03f){_0x34f68e['push'](_0x34f68e['shift']());}}}(a235_0x17fa,0x5c984));export const isWindows=process[a235_0x48e469(0x1be)]===a235_0x48e469(0x1c1);function a235_0xc780(_0x378168,_0x5ccff5){_0x378168=_0x378168-0x1b8;const _0x17faa8=a235_0x17fa();let _0xc78025=_0x17faa8[_0x378168];return _0xc78025;}export function resolveNpmBin(_0x126801){return isWindows?_0x126801+'.cmd':_0x126801;}
@@ -1 +1 @@
1
- const a236_0x557313=a236_0x4a5e;(function(_0x32c21f,_0x356328){const _0x25f922=a236_0x4a5e,_0x304588=_0x32c21f();while(!![]){try{const _0xfbef37=-parseInt(_0x25f922(0xd2))/0x1*(parseInt(_0x25f922(0xc4))/0x2)+-parseInt(_0x25f922(0xcd))/0x3+parseInt(_0x25f922(0xbf))/0x4+parseInt(_0x25f922(0xd1))/0x5+parseInt(_0x25f922(0xc9))/0x6*(parseInt(_0x25f922(0xd5))/0x7)+parseInt(_0x25f922(0xcb))/0x8*(-parseInt(_0x25f922(0xcc))/0x9)+parseInt(_0x25f922(0xcf))/0xa;if(_0xfbef37===_0x356328)break;else _0x304588['push'](_0x304588['shift']());}catch(_0x38a281){_0x304588['push'](_0x304588['shift']());}}}(a236_0x35bd,0xc85b6));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 a236_0x4a5e(_0x14f4a1,_0x3167ce){_0x14f4a1=_0x14f4a1-0xbd;const _0x35bd30=a236_0x35bd();let _0x4a5ea1=_0x35bd30[_0x14f4a1];return _0x4a5ea1;}function getRulesCdnUrl(){const _0x3a6811=a236_0x4a5e,_0x566ecb=getTemplateBaseUrl();return _0x566ecb+_0x3a6811(0xc0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a236_0x557313(0xd4));export async function fetchRulesFromCDN(){const _0x10485d=a236_0x557313,_0x168044=getRulesCdnUrl(),_0x21fae8=await fetch(_0x168044,{'headers':{'Accept':_0x10485d(0xd0)}});if(!_0x21fae8['ok'])throw new Error(_0x10485d(0xbe)+_0x21fae8[_0x10485d(0xd6)]+'\x20'+_0x21fae8[_0x10485d(0xc8)]);const _0x3b8993=await _0x21fae8[_0x10485d(0xc6)]();if(!_0x3b8993[_0x10485d(0xc2)]||typeof _0x3b8993[_0x10485d(0xc2)]!==_0x10485d(0xc1))throw new Error(_0x10485d(0xc5));return _0x3b8993;}export async function getRulesContent(){const _0x468d00=a236_0x557313;try{const _0x177da6=await fetchRulesFromCDN();return _0x177da6[_0x468d00(0xc2)];}catch{return readLocalTemplate();}}function a236_0x35bd(){const _0x2e58b2=['2387720mUXJRr','/rules/rules.json','string','content','catch','34pOWhWV','CDN\x20返回数据格式错误','json','agents.md','statusText','6WuWMAG','本地模板文件不存在:\x20','407272RDiuLB','261eOEnqS','2018136PormNH','.cursor/rules','8454120bWcboy','application/json','6603270xxFeKB','18235EhNsHn','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','3617138wnugpU','status','lastUpdated','CDN\x20请求失败:\x20'];a236_0x35bd=function(){return _0x2e58b2;};return a236_0x35bd();}export function readLocalTemplate(){const _0x43b5db=a236_0x557313;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x43b5db(0xd3));throw new Error(_0x43b5db(0xca)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x77f9f0){const _0x385f79=a236_0x557313,_0x520b1b=await fetchRulesFromCDN()[_0x385f79(0xc3)](()=>null);let _0x5e5c8f;_0x520b1b?(_0x5e5c8f=_0x520b1b[_0x385f79(0xc2)],_0x520b1b['lastUpdated']&&(_0x5e5c8f=appendUpdateTime(_0x5e5c8f,_0x520b1b[_0x385f79(0xbd)]))):_0x5e5c8f=readLocalTemplate();const _0x1927ac=dirname(_0x77f9f0);!existsSync(_0x1927ac)&&mkdirSync(_0x1927ac,{'recursive':!![]}),writeFileSync(_0x77f9f0,_0x5e5c8f,_0x385f79(0xd3));}export async function copyRulesToCursor(_0x5a4c98){const _0x5d24d2=a236_0x557313,_0x201093=join(_0x5a4c98,_0x5d24d2(0xce)),_0x24ab6e=join(_0x201093,'lovrabet_rules.mdc');if(existsSync(_0x24ab6e))return![];return await writeRulesFile(_0x24ab6e),!![];}export async function copyRulesToAgentsMd(_0xd3b370){const _0x2d4794=a236_0x557313,_0x23f7f7=join(_0xd3b370,_0x2d4794(0xc7));if(existsSync(_0x23f7f7))return![];return await writeRulesFile(_0x23f7f7),!![];}
1
+ const a236_0x359ff0=a236_0x5cf8;(function(_0x3875bb,_0x434ca1){const _0xe999b3=a236_0x5cf8,_0x331efa=_0x3875bb();while(!![]){try{const _0x3b2d80=-parseInt(_0xe999b3(0x9a))/0x1+parseInt(_0xe999b3(0xa0))/0x2+-parseInt(_0xe999b3(0xa5))/0x3+-parseInt(_0xe999b3(0x9f))/0x4+parseInt(_0xe999b3(0xa8))/0x5*(-parseInt(_0xe999b3(0xaa))/0x6)+-parseInt(_0xe999b3(0x98))/0x7*(-parseInt(_0xe999b3(0x9b))/0x8)+parseInt(_0xe999b3(0xa7))/0x9*(parseInt(_0xe999b3(0xa6))/0xa);if(_0x3b2d80===_0x434ca1)break;else _0x331efa['push'](_0x331efa['shift']());}catch(_0x51a4a7){_0x331efa['push'](_0x331efa['shift']());}}}(a236_0x4187,0x9b7d9));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 _0x25a4d6=a236_0x5cf8,_0x4e5ac9=getTemplateBaseUrl();return _0x4e5ac9+_0x25a4d6(0x99);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a236_0x359ff0(0xa3));export async function fetchRulesFromCDN(){const _0x477010=a236_0x359ff0,_0x2101fe=getRulesCdnUrl(),_0x407973=await fetch(_0x2101fe,{'headers':{'Accept':_0x477010(0x9d)}});if(!_0x407973['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x407973[_0x477010(0xa2)]+'\x20'+_0x407973[_0x477010(0x97)]);const _0x1f9bf8=await _0x407973[_0x477010(0xac)]();if(!_0x1f9bf8[_0x477010(0xa4)]||typeof _0x1f9bf8['content']!==_0x477010(0x9c))throw new Error(_0x477010(0xab));return _0x1f9bf8;}export async function getRulesContent(){const _0x34087b=a236_0x359ff0;try{const _0x5382d8=await fetchRulesFromCDN();return _0x5382d8[_0x34087b(0xa4)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x29c2ec=a236_0x359ff0;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x29c2ec(0x96));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4867c9){const _0x4ea0dc=a236_0x359ff0,_0x1a4970=await fetchRulesFromCDN()[_0x4ea0dc(0x9e)](()=>null);let _0x8fcf31;_0x1a4970?(_0x8fcf31=_0x1a4970[_0x4ea0dc(0xa4)],_0x1a4970[_0x4ea0dc(0xad)]&&(_0x8fcf31=appendUpdateTime(_0x8fcf31,_0x1a4970['lastUpdated']))):_0x8fcf31=readLocalTemplate();const _0x2472f0=dirname(_0x4867c9);!existsSync(_0x2472f0)&&mkdirSync(_0x2472f0,{'recursive':!![]}),writeFileSync(_0x4867c9,_0x8fcf31,_0x4ea0dc(0x96));}export async function copyRulesToCursor(_0x47a7a8){const _0x51b9b8=a236_0x359ff0,_0x4f19c7=join(_0x47a7a8,'.cursor/rules'),_0x16c14d=join(_0x4f19c7,_0x51b9b8(0xa9));if(existsSync(_0x16c14d))return![];return await writeRulesFile(_0x16c14d),!![];}export async function copyRulesToAgentsMd(_0x555015){const _0x141a5=a236_0x359ff0,_0x3100f5=join(_0x555015,_0x141a5(0xa1));if(existsSync(_0x3100f5))return![];return await writeRulesFile(_0x3100f5),!![];}function a236_0x5cf8(_0x182e5a,_0x3b1c07){_0x182e5a=_0x182e5a-0x96;const _0x418769=a236_0x4187();let _0x5cf860=_0x418769[_0x182e5a];return _0x5cf860;}function a236_0x4187(){const _0x2ed04c=['1069632kNxtPW','226330qMdagA','1197BaNoDf','350HRkgpA','lovrabet_rules.mdc','89868WUmpQx','CDN\x20返回数据格式错误','json','lastUpdated','utf-8','statusText','56LIplqB','/rules/rules.json','986001yehXIa','43976GGyFnP','string','application/json','catch','1128768Okovtf','511842ThPrKe','agents.md','status','../../templates/rules/lovrabet_rules.mdc.tpl','content'];a236_0x4187=function(){return _0x2ed04c;};return a236_0x4187();}
@@ -1 +1 @@
1
- export function sleep(_0x1b20c6){return new Promise(_0x101084=>setTimeout(_0x101084,_0x1b20c6));}
1
+ export function sleep(_0x4fd504){return new Promise(_0x58bb59=>setTimeout(_0x58bb59,_0x4fd504));}
@@ -1 +1 @@
1
- function a238_0x1180(_0x1b0fbb,_0x320879){_0x1b0fbb=_0x1b0fbb-0xff;const _0x4642f1=a238_0x4642();let _0x118098=_0x4642f1[_0x1b0fbb];return _0x118098;}const a238_0x539781=a238_0x1180;(function(_0x285eac,_0x9537be){const _0x14a310=a238_0x1180,_0x2f9999=_0x285eac();while(!![]){try{const _0x4e8eb8=parseInt(_0x14a310(0x12a))/0x1*(parseInt(_0x14a310(0x11b))/0x2)+-parseInt(_0x14a310(0x136))/0x3*(-parseInt(_0x14a310(0x104))/0x4)+-parseInt(_0x14a310(0x134))/0x5+parseInt(_0x14a310(0x123))/0x6+-parseInt(_0x14a310(0x13a))/0x7*(parseInt(_0x14a310(0x12b))/0x8)+-parseInt(_0x14a310(0x140))/0x9+parseInt(_0x14a310(0x10d))/0xa;if(_0x4e8eb8===_0x9537be)break;else _0x2f9999['push'](_0x2f9999['shift']());}catch(_0x2d9620){_0x2f9999['push'](_0x2f9999['shift']());}}}(a238_0x4642,0x458a3));import a238_0x212f4e from'node:fs';import a238_0x5316cc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a238_0x4642(){const _0x5c9e69=['map','15SGnmnU','176iOfeMt','toISOString','isFile','push','alias:\x20\x22','toDisplayTitle','copyFile','.json','datasetCode:\x20\x22','2228425oGOGsW','.css','87pxkQsF','name','promises','info','179606ObtMVP','now','join','tableName:\x20\x22','api','includes','1498950ukKjLq','YourModel','toComponentName','replaceContent','split','模板内容替换完成','67916mLgEVX','padStart','pad','processDirectory','error','\x0a\x20\x20\x20\x20{\x20','getSeconds','getHours','replaceApiContent','7520120zHqpJI','.jsx','utf8','.tsx','alias','.md','readFile','datasetCode','.ts','toLowerCase','模板内容替换失败','pop','default','.tpl','14242nXyLJS','LOVRABET','toUpperCase','writeFile','replace','extname','template','charAt','661968dRhgYO','getDate','slice','endsWith','getMinutes','formatLocalTimestamp'];a238_0x4642=function(){return _0x5c9e69;};return a238_0x4642();}export class TemplateReplacer{static[a238_0x539781(0x106)](_0x15507d){const _0x3845bb=a238_0x539781;return String(_0x15507d)[_0x3845bb(0x105)](0x2,'0');}static[a238_0x539781(0x128)](_0x5e0923){const _0xb816af=a238_0x539781,_0x3dd90e=_0x5e0923['getFullYear'](),_0x1f523e=this[_0xb816af(0x106)](_0x5e0923['getMonth']()+0x1),_0x35c329=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x124)]()),_0x396386=this['pad'](_0x5e0923[_0xb816af(0x10b)]()),_0x3d9392=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x127)]()),_0x944adf=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x10a)]());return{'createdAt':_0x3dd90e+'-'+_0x1f523e+'-'+_0x35c329+'\x20'+_0x396386+':'+_0x3d9392+':'+_0x944adf,'createdDate':_0x3dd90e+'-'+_0x1f523e+'-'+_0x35c329,'createdTime':_0x396386+':'+_0x3d9392+':'+_0x944adf};}static[a238_0x539781(0x100)](_0x4ff3da){const _0x26c6ea=a238_0x539781,_0xf09998=_0x4ff3da[_0x26c6ea(0x102)]('/')[_0x26c6ea(0x118)]()||_0x4ff3da;return _0xf09998[_0x26c6ea(0x102)]('-')['map'](_0x4e9ad3=>_0x4e9ad3[_0x26c6ea(0x122)](0x0)[_0x26c6ea(0x11d)]()+_0x4e9ad3[_0x26c6ea(0x125)](0x1)[_0x26c6ea(0x116)]())[_0x26c6ea(0x13c)]('');}static[a238_0x539781(0x130)](_0x35bbb2){const _0x1e5581=a238_0x539781,_0x1c70b6=_0x35bbb2[_0x1e5581(0x102)]('/')[_0x1e5581(0x118)]()||_0x35bbb2;return _0x1c70b6['split']('-')[_0x1e5581(0x129)](_0x202493=>_0x202493[_0x1e5581(0x122)](0x0)['toUpperCase']()+_0x202493[_0x1e5581(0x125)](0x1)[_0x1e5581(0x116)]())[_0x1e5581(0x13c)]('\x20');}static[a238_0x539781(0x101)](_0x8b25b9,_0x58a486,_0x35af8d){const _0x48773f=a238_0x539781,_0x4b8c45=this[_0x48773f(0x100)](_0x58a486),_0x438cdc=this[_0x48773f(0x130)](_0x58a486),{createdAt:_0x1397de,createdDate:_0xbafbaa,createdTime:_0x13ee70}=this[_0x48773f(0x128)](new Date());let _0x74c0f9=_0x8b25b9[_0x48773f(0x11f)](/\{CliVersion\}/g,CLI_VERSION)[_0x48773f(0x11f)](/\{ComponentName\}/g,_0x4b8c45)[_0x48773f(0x11f)](/\{DisplayTitle\}/g,_0x438cdc)[_0x48773f(0x11f)](/\{PageName\}/g,_0x58a486)['replace'](/\{TemplateName\}/g,_0x35af8d)[_0x48773f(0x11f)](/\{CreatedAt\}/g,_0x1397de)['replace'](/\{CreatedDate\}/g,_0xbafbaa)[_0x48773f(0x11f)](/\{CreatedTime\}/g,_0x13ee70);return _0x74c0f9;}static[a238_0x539781(0x10c)](_0x253a04,_0x1950ad,_0x25dabc,_0x53674f,_0x1f99ba,_0xe95796,_0x4f8217,_0x43beba){const _0x272db2=a238_0x539781,_0x2a1ba5=new Date(),_0x4e6cfc=_0x2a1ba5[_0x272db2(0x12c)](),_0x4591e3=_0x25dabc['map'](_0x3d0015=>{const _0xd861ad=_0x272db2,_0x2bc648=[_0xd861ad(0x133)+_0x3d0015[_0xd861ad(0x114)]+'\x22',_0xd861ad(0x13d)+_0x3d0015['tableName']+'\x22','name:\x20\x22'+_0x3d0015['name']+'\x22'];return _0x3d0015[_0xd861ad(0x111)]&&_0x2bc648[_0xd861ad(0x12e)](_0xd861ad(0x12f)+_0x3d0015['alias']+'\x22'),_0xd861ad(0x109)+_0x2bc648['join'](',\x20')+'\x20},';})[_0x272db2(0x13c)](''),_0x1a6048=_0x53674f||_0x25dabc[0x0]?.['alias']||_0x272db2(0xff);let _0x3599de=_0x253a04[_0x272db2(0x11f)](/\{AppCode\}/g,_0x1950ad)[_0x272db2(0x11f)](/\{ModelConfigs\}/g,_0x4591e3)['replace'](/\{ExampleModelName\}/g,_0x1a6048)[_0x272db2(0x11f)](/\{ApiFileName\}/g,_0x1f99ba||_0x272db2(0x13e))[_0x272db2(0x11f)](/\{ConfigName\}/g,_0xe95796||_0x272db2(0x119))[_0x272db2(0x11f)](/\{ClientConfigParam\}/g,_0x4f8217||'')[_0x272db2(0x11f)](/\{VarPrefix\}/g,_0x43beba||_0x272db2(0x11c))[_0x272db2(0x11f)](/\{CreatedAt\}/g,_0x4e6cfc);return _0x3599de;}static async['processTemplate'](_0x2a32a5,_0x48092a,_0x3004c7,_0x157826,_0x1d011d=!![]){const _0x4b605b=a238_0x539781,_0x1c8251=Date[_0x4b605b(0x13b)]();try{_0x1d011d&&logger[_0x4b605b(0x139)](_0x4b605b(0x121),'开始处理模板内容替换',{'templatePath':_0x2a32a5,'targetPath':_0x48092a,'pageName':_0x3004c7,'templateName':_0x157826});await a238_0x212f4e[_0x4b605b(0x138)]['mkdir'](_0x48092a,{'recursive':!![]}),await this[_0x4b605b(0x107)](_0x2a32a5,_0x48092a,_0x3004c7,_0x157826);if(_0x1d011d){const _0x252386=Date[_0x4b605b(0x13b)]()-_0x1c8251;logger['success'](_0x4b605b(0x121),_0x4b605b(0x103),_0x252386,{'pageName':_0x3004c7,'templateName':_0x157826});}}catch(_0x4436ca){if(_0x1d011d){const _0x1f04ab=Date[_0x4b605b(0x13b)]()-_0x1c8251;logger[_0x4b605b(0x108)](_0x4b605b(0x121),_0x4b605b(0x117),{'templatePath':_0x2a32a5,'targetPath':_0x48092a,'pageName':_0x3004c7,'templateName':_0x157826,'error':_0x4436ca instanceof Error?_0x4436ca['message']:String(_0x4436ca),'duration':_0x1f04ab});}throw _0x4436ca;}}static async[a238_0x539781(0x107)](_0x3b862d,_0x412281,_0x316dee,_0x532d68){const _0x1e3f1e=a238_0x539781,_0x1b78e5=await a238_0x212f4e[_0x1e3f1e(0x138)]['readdir'](_0x3b862d,{'withFileTypes':!![]});for(const _0x4dd471 of _0x1b78e5){const _0x414796=a238_0x5316cc[_0x1e3f1e(0x13c)](_0x3b862d,_0x4dd471['name']);let _0x4061d3=a238_0x5316cc['join'](_0x412281,_0x4dd471[_0x1e3f1e(0x137)]);_0x4dd471[_0x1e3f1e(0x137)][_0x1e3f1e(0x126)]('.tpl')&&(_0x4061d3=a238_0x5316cc[_0x1e3f1e(0x13c)](_0x412281,_0x4dd471[_0x1e3f1e(0x137)][_0x1e3f1e(0x11f)](/\.tpl$/,'')));if(_0x4dd471['isDirectory']())await a238_0x212f4e['promises']['mkdir'](_0x4061d3,{'recursive':!![]}),await this[_0x1e3f1e(0x107)](_0x414796,_0x4061d3,_0x316dee,_0x532d68);else _0x4dd471[_0x1e3f1e(0x12d)]()&&await this['processFile'](_0x414796,_0x4061d3,_0x316dee,_0x532d68);}}static async['processFile'](_0x5495b1,_0x2c92b0,_0x28f794,_0x57da4e){const _0x5c9858=a238_0x539781,_0x2a94c7=a238_0x5316cc[_0x5c9858(0x120)](_0x5495b1)[_0x5c9858(0x116)]();_0x5495b1[_0x5c9858(0x126)]('.tpl')&&(_0x2c92b0=_0x2c92b0[_0x5c9858(0x11f)](/\.tpl$/,''));const _0x99178d=[_0x5c9858(0x110),_0x5c9858(0x115),_0x5c9858(0x10e),'.js',_0x5c9858(0x132),_0x5c9858(0x112),_0x5c9858(0x135),'.scss',_0x5c9858(0x11a)];if(_0x99178d[_0x5c9858(0x13f)](_0x2a94c7)||_0x5495b1[_0x5c9858(0x126)](_0x5c9858(0x11a))){const _0xeb9446=await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x113)](_0x5495b1,_0x5c9858(0x10f)),_0x1c0558=this['replaceContent'](_0xeb9446,_0x28f794,_0x57da4e);await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x11e)](_0x2c92b0,_0x1c0558,_0x5c9858(0x10f));}else await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x131)](_0x5495b1,_0x2c92b0);}}
1
+ function a238_0x23a7(){const _0x421277=['6492sURcCe','1683955QfeoJx','charAt','toDisplayTitle','info','template','.css','\x0a\x20\x20\x20\x20{\x20','13434vkAleX','api','.ts','tableName','YourModel','error','processTemplate','540134ReKxVH','mkdir','replaceContent','.tpl','message','padStart','endsWith','100fzSbgt','alias:\x20\x22','map','join','readdir','1YRLXGT','1140UVytPN','replaceApiContent','模板内容替换完成','readFile','.js','getFullYear','toISOString','toComponentName','now','2937ZaeprO','pop','.scss','388EXEhbG','.jsx','formatLocalTimestamp','LOVRABET','slice','copyFile','getMinutes','30984ztwOmP','utf8','pad','replace','name','getHours','alias','开始处理模板内容替换','toUpperCase','promises','177JSSpCo','push','isFile','split','name:\x20\x22','16yCFLHE','getSeconds','isDirectory','27tIoymp','success','writeFile','模板内容替换失败','toLowerCase','datasetCode:\x20\x22','processDirectory','getMonth','includes','processFile'];a238_0x23a7=function(){return _0x421277;};return a238_0x23a7();}const a238_0x4b4465=a238_0x29a5;(function(_0x5ca57d,_0x4c4028){const _0x15f644=a238_0x29a5,_0x5c6ddf=_0x5ca57d();while(!![]){try{const _0x54c0a2=-parseInt(_0x15f644(0x16e))/0x1*(parseInt(_0x15f644(0x137))/0x2)+parseInt(_0x15f644(0x141))/0x3*(-parseInt(_0x15f644(0x130))/0x4)+-parseInt(_0x15f644(0x169))/0x5*(parseInt(_0x15f644(0x15b))/0x6)+-parseInt(_0x15f644(0x162))/0x7*(-parseInt(_0x15f644(0x146))/0x8)+parseInt(_0x15f644(0x149))/0x9*(-parseInt(_0x15f644(0x16f))/0xa)+parseInt(_0x15f644(0x12d))/0xb*(parseInt(_0x15f644(0x153))/0xc)+-parseInt(_0x15f644(0x154))/0xd;if(_0x54c0a2===_0x4c4028)break;else _0x5c6ddf['push'](_0x5c6ddf['shift']());}catch(_0x23dbea){_0x5c6ddf['push'](_0x5c6ddf['shift']());}}}(a238_0x23a7,0x191f3));import a238_0x1f1ef9 from'node:fs';import a238_0x268e78 from'node:path';function a238_0x29a5(_0x5895c5,_0x36a5e5){_0x5895c5=_0x5895c5-0x12c;const _0x23a718=a238_0x23a7();let _0x29a5b1=_0x23a718[_0x5895c5];return _0x29a5b1;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a238_0x4b4465(0x139)](_0x56117e){const _0x198c40=a238_0x4b4465;return String(_0x56117e)[_0x198c40(0x167)](0x2,'0');}static['formatLocalTimestamp'](_0x229122){const _0x375caa=a238_0x4b4465,_0x5a9306=_0x229122[_0x375caa(0x174)](),_0x1b8d9c=this[_0x375caa(0x139)](_0x229122[_0x375caa(0x150)]()+0x1),_0xbf4db9=this['pad'](_0x229122['getDate']()),_0xedf332=this[_0x375caa(0x139)](_0x229122[_0x375caa(0x13c)]()),_0x817268=this['pad'](_0x229122[_0x375caa(0x136)]()),_0xce1bbe=this[_0x375caa(0x139)](_0x229122[_0x375caa(0x147)]());return{'createdAt':_0x5a9306+'-'+_0x1b8d9c+'-'+_0xbf4db9+'\x20'+_0xedf332+':'+_0x817268+':'+_0xce1bbe,'createdDate':_0x5a9306+'-'+_0x1b8d9c+'-'+_0xbf4db9,'createdTime':_0xedf332+':'+_0x817268+':'+_0xce1bbe};}static[a238_0x4b4465(0x176)](_0x88eaa5){const _0x57b83d=a238_0x4b4465,_0x55071a=_0x88eaa5[_0x57b83d(0x144)]('/')[_0x57b83d(0x12e)]()||_0x88eaa5;return _0x55071a[_0x57b83d(0x144)]('-')[_0x57b83d(0x16b)](_0x483916=>_0x483916[_0x57b83d(0x155)](0x0)[_0x57b83d(0x13f)]()+_0x483916[_0x57b83d(0x134)](0x1)['toLowerCase']())[_0x57b83d(0x16c)]('');}static[a238_0x4b4465(0x156)](_0xab1330){const _0x1c13c2=a238_0x4b4465,_0x1552c2=_0xab1330[_0x1c13c2(0x144)]('/')[_0x1c13c2(0x12e)]()||_0xab1330;return _0x1552c2[_0x1c13c2(0x144)]('-')[_0x1c13c2(0x16b)](_0x31ec71=>_0x31ec71[_0x1c13c2(0x155)](0x0)[_0x1c13c2(0x13f)]()+_0x31ec71['slice'](0x1)[_0x1c13c2(0x14d)]())[_0x1c13c2(0x16c)]('\x20');}static[a238_0x4b4465(0x164)](_0x205487,_0x224fbf,_0x3ad5c5){const _0x396d8e=a238_0x4b4465,_0x6835b7=this['toComponentName'](_0x224fbf),_0x41b205=this['toDisplayTitle'](_0x224fbf),{createdAt:_0xbefd2f,createdDate:_0x3dd23a,createdTime:_0x19c2dd}=this[_0x396d8e(0x132)](new Date());let _0x582f7b=_0x205487[_0x396d8e(0x13a)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x6835b7)[_0x396d8e(0x13a)](/\{DisplayTitle\}/g,_0x41b205)[_0x396d8e(0x13a)](/\{PageName\}/g,_0x224fbf)['replace'](/\{TemplateName\}/g,_0x3ad5c5)[_0x396d8e(0x13a)](/\{CreatedAt\}/g,_0xbefd2f)[_0x396d8e(0x13a)](/\{CreatedDate\}/g,_0x3dd23a)[_0x396d8e(0x13a)](/\{CreatedTime\}/g,_0x19c2dd);return _0x582f7b;}static[a238_0x4b4465(0x170)](_0x1dd60c,_0x410a51,_0xaaa152,_0x55e9f0,_0x52d9e5,_0x172863,_0x242a83,_0x8f1a4b){const _0x188018=a238_0x4b4465,_0x27aae1=new Date(),_0x2b41d8=_0x27aae1[_0x188018(0x175)](),_0x5c4eba=_0xaaa152[_0x188018(0x16b)](_0x296efc=>{const _0x720c64=_0x188018,_0x5d7b2c=[_0x720c64(0x14e)+_0x296efc['datasetCode']+'\x22','tableName:\x20\x22'+_0x296efc[_0x720c64(0x15e)]+'\x22',_0x720c64(0x145)+_0x296efc[_0x720c64(0x13b)]+'\x22'];return _0x296efc[_0x720c64(0x13d)]&&_0x5d7b2c[_0x720c64(0x142)](_0x720c64(0x16a)+_0x296efc['alias']+'\x22'),_0x720c64(0x15a)+_0x5d7b2c[_0x720c64(0x16c)](',\x20')+'\x20},';})['join'](''),_0xd86b03=_0x55e9f0||_0xaaa152[0x0]?.['alias']||_0x188018(0x15f);let _0x3dadf6=_0x1dd60c['replace'](/\{AppCode\}/g,_0x410a51)[_0x188018(0x13a)](/\{ModelConfigs\}/g,_0x5c4eba)[_0x188018(0x13a)](/\{ExampleModelName\}/g,_0xd86b03)[_0x188018(0x13a)](/\{ApiFileName\}/g,_0x52d9e5||_0x188018(0x15c))[_0x188018(0x13a)](/\{ConfigName\}/g,_0x172863||'default')[_0x188018(0x13a)](/\{ClientConfigParam\}/g,_0x242a83||'')[_0x188018(0x13a)](/\{VarPrefix\}/g,_0x8f1a4b||_0x188018(0x133))[_0x188018(0x13a)](/\{CreatedAt\}/g,_0x2b41d8);return _0x3dadf6;}static async[a238_0x4b4465(0x161)](_0x18a849,_0x122528,_0xa34980,_0x162936,_0x5f06f6=!![]){const _0x54b8e9=a238_0x4b4465,_0x3b0394=Date[_0x54b8e9(0x12c)]();try{_0x5f06f6&&logger[_0x54b8e9(0x157)]('template',_0x54b8e9(0x13e),{'templatePath':_0x18a849,'targetPath':_0x122528,'pageName':_0xa34980,'templateName':_0x162936});await a238_0x1f1ef9[_0x54b8e9(0x140)]['mkdir'](_0x122528,{'recursive':!![]}),await this['processDirectory'](_0x18a849,_0x122528,_0xa34980,_0x162936);if(_0x5f06f6){const _0x2fff5e=Date['now']()-_0x3b0394;logger[_0x54b8e9(0x14a)](_0x54b8e9(0x158),_0x54b8e9(0x171),_0x2fff5e,{'pageName':_0xa34980,'templateName':_0x162936});}}catch(_0x1ddb30){if(_0x5f06f6){const _0x2e7a10=Date['now']()-_0x3b0394;logger[_0x54b8e9(0x160)]('template',_0x54b8e9(0x14c),{'templatePath':_0x18a849,'targetPath':_0x122528,'pageName':_0xa34980,'templateName':_0x162936,'error':_0x1ddb30 instanceof Error?_0x1ddb30[_0x54b8e9(0x166)]:String(_0x1ddb30),'duration':_0x2e7a10});}throw _0x1ddb30;}}static async[a238_0x4b4465(0x14f)](_0x135d0e,_0x526209,_0x3257cd,_0x416086){const _0xc9cfa7=a238_0x4b4465,_0x1cbbf6=await a238_0x1f1ef9[_0xc9cfa7(0x140)][_0xc9cfa7(0x16d)](_0x135d0e,{'withFileTypes':!![]});for(const _0xb306fd of _0x1cbbf6){const _0x3ec754=a238_0x268e78[_0xc9cfa7(0x16c)](_0x135d0e,_0xb306fd['name']);let _0x39f9d1=a238_0x268e78['join'](_0x526209,_0xb306fd[_0xc9cfa7(0x13b)]);_0xb306fd[_0xc9cfa7(0x13b)][_0xc9cfa7(0x168)]('.tpl')&&(_0x39f9d1=a238_0x268e78[_0xc9cfa7(0x16c)](_0x526209,_0xb306fd[_0xc9cfa7(0x13b)][_0xc9cfa7(0x13a)](/\.tpl$/,'')));if(_0xb306fd[_0xc9cfa7(0x148)]())await a238_0x1f1ef9[_0xc9cfa7(0x140)][_0xc9cfa7(0x163)](_0x39f9d1,{'recursive':!![]}),await this['processDirectory'](_0x3ec754,_0x39f9d1,_0x3257cd,_0x416086);else _0xb306fd[_0xc9cfa7(0x143)]()&&await this['processFile'](_0x3ec754,_0x39f9d1,_0x3257cd,_0x416086);}}static async[a238_0x4b4465(0x152)](_0x5dc408,_0x4dc9b7,_0x2dd8ff,_0x529dae){const _0x56dfc8=a238_0x4b4465,_0x54c6bb=a238_0x268e78['extname'](_0x5dc408)[_0x56dfc8(0x14d)]();_0x5dc408[_0x56dfc8(0x168)](_0x56dfc8(0x165))&&(_0x4dc9b7=_0x4dc9b7['replace'](/\.tpl$/,''));const _0x47363c=['.tsx',_0x56dfc8(0x15d),_0x56dfc8(0x131),_0x56dfc8(0x173),'.json','.md',_0x56dfc8(0x159),_0x56dfc8(0x12f),_0x56dfc8(0x165)];if(_0x47363c[_0x56dfc8(0x151)](_0x54c6bb)||_0x5dc408[_0x56dfc8(0x168)]('.tpl')){const _0x4ecdf5=await a238_0x1f1ef9['promises'][_0x56dfc8(0x172)](_0x5dc408,_0x56dfc8(0x138)),_0x67458a=this[_0x56dfc8(0x164)](_0x4ecdf5,_0x2dd8ff,_0x529dae);await a238_0x1f1ef9[_0x56dfc8(0x140)][_0x56dfc8(0x14b)](_0x4dc9b7,_0x67458a,'utf8');}else await a238_0x1f1ef9[_0x56dfc8(0x140)][_0x56dfc8(0x135)](_0x5dc408,_0x4dc9b7);}}