@lovrabet/rabetbase-cli 2.3.16-beta.5 → 2.3.16-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) 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/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/relation-audit.js +1 -1
  141. package/lib/commands/page/restore.js +1 -1
  142. package/lib/commands/page/shared.js +1 -1
  143. package/lib/commands/page/standard-page-status.js +1 -1
  144. package/lib/commands/page/sync.js +1 -1
  145. package/lib/commands/permit/index.js +1 -1
  146. package/lib/commands/permit/page-get.js +1 -1
  147. package/lib/commands/permit/page-set.js +1 -1
  148. package/lib/commands/permit/role-apis-set.js +1 -1
  149. package/lib/commands/permit/role-menus-set.js +1 -1
  150. package/lib/commands/permit/role-menus.js +1 -1
  151. package/lib/commands/permit/shared.js +1 -1
  152. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  153. package/lib/commands/project/create/format-elapsed.js +1 -1
  154. package/lib/commands/project/create/main.js +1 -1
  155. package/lib/commands/project/create/non-interactive.js +1 -1
  156. package/lib/commands/project/create/project-template-path.js +1 -1
  157. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  158. package/lib/commands/project/create/use-format-code.js +1 -1
  159. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  160. package/lib/commands/project/index.js +1 -1
  161. package/lib/commands/project/upgrade.js +1 -1
  162. package/lib/commands/registry.js +1 -1
  163. package/lib/commands/role/create.js +1 -1
  164. package/lib/commands/role/delete.js +1 -1
  165. package/lib/commands/role/detail.js +1 -1
  166. package/lib/commands/role/index.js +1 -1
  167. package/lib/commands/role/list.js +1 -1
  168. package/lib/commands/role/shared.js +1 -1
  169. package/lib/commands/role/update.js +1 -1
  170. package/lib/commands/role/user-add.js +1 -1
  171. package/lib/commands/role/user-remove.js +1 -1
  172. package/lib/commands/role/user-resolve.js +1 -1
  173. package/lib/commands/run/index.js +1 -1
  174. package/lib/commands/schema.js +1 -1
  175. package/lib/commands/sql/create.js +1 -1
  176. package/lib/commands/sql/delete.js +1 -1
  177. package/lib/commands/sql/detail.js +1 -1
  178. package/lib/commands/sql/exec.js +1 -1
  179. package/lib/commands/sql/index.js +1 -1
  180. package/lib/commands/sql/list.js +1 -1
  181. package/lib/commands/sql/pull.js +1 -1
  182. package/lib/commands/sql/push.js +1 -1
  183. package/lib/commands/sql/shared.js +1 -1
  184. package/lib/commands/sql/status.js +1 -1
  185. package/lib/commands/sql/validate.js +1 -1
  186. package/lib/commands/task/index.js +1 -1
  187. package/lib/commands/task/status.js +1 -1
  188. package/lib/commands/tenant/index.js +1 -1
  189. package/lib/commands/tenant/members-list.js +1 -1
  190. package/lib/commands/tenant/shared.js +1 -1
  191. package/lib/commands/workspace/add.js +1 -1
  192. package/lib/commands/workspace/index.js +1 -1
  193. package/lib/commands/workspace/remove.js +1 -1
  194. package/lib/config/schema.js +1 -1
  195. package/lib/constant/cdn.js +1 -1
  196. package/lib/constant/cli.js +1 -1
  197. package/lib/constant/defaults.js +1 -1
  198. package/lib/constant/domain.js +1 -1
  199. package/lib/constant/env.js +1 -1
  200. package/lib/constant/output.js +1 -1
  201. package/lib/constant/paths.js +1 -1
  202. package/lib/constant/risk.js +1 -1
  203. package/lib/context/app-resolver.js +1 -1
  204. package/lib/context/auth-resolver.js +1 -1
  205. package/lib/context/config-loader.js +1 -1
  206. package/lib/context.js +1 -1
  207. package/lib/core/alias-resolver.js +1 -1
  208. package/lib/core/api-client.js +1 -1
  209. package/lib/core/bff/config.js +1 -1
  210. package/lib/core/bff/file-system.js +1 -1
  211. package/lib/core/bff/hash.js +1 -1
  212. package/lib/core/bff/lock.js +1 -1
  213. package/lib/core/bff/utils.js +1 -1
  214. package/lib/core/db-resolver.js +1 -1
  215. package/lib/core/page/file-system.js +1 -1
  216. package/lib/core/page/hash.js +1 -1
  217. package/lib/core/page/lock.js +1 -1
  218. package/lib/core/sql-index-auditor.js +1 -1
  219. package/lib/core/sql-sync/config.js +1 -1
  220. package/lib/core/sql-sync/file-system.js +1 -1
  221. package/lib/core/sql-sync/hash.js +1 -1
  222. package/lib/core/sql-sync/lock.js +1 -1
  223. package/lib/core/sql-sync/utils.js +1 -1
  224. package/lib/core/sql-validator.js +1 -1
  225. package/lib/errors.js +1 -1
  226. package/lib/framework/build-all-flags.js +1 -1
  227. package/lib/framework/error-output.js +1 -1
  228. package/lib/framework/explicit-yes.js +1 -1
  229. package/lib/framework/flags.js +1 -1
  230. package/lib/framework/help.js +1 -1
  231. package/lib/framework/index.js +1 -1
  232. package/lib/framework/output.js +1 -1
  233. package/lib/framework/response.js +1 -1
  234. package/lib/framework/runner-alias.js +1 -1
  235. package/lib/framework/runner.js +1 -1
  236. package/lib/framework/schema-export.js +1 -1
  237. package/lib/framework/types.js +1 -1
  238. package/lib/generated/build-info.d.ts +4 -4
  239. package/lib/generated/build-info.js +1 -1
  240. package/lib/help.js +1 -1
  241. package/lib/runtime/confirmation.js +1 -1
  242. package/lib/runtime/event.js +1 -1
  243. package/lib/runtime/index.js +1 -1
  244. package/lib/runtime/queue.js +1 -1
  245. package/lib/runtime/resolve.js +1 -1
  246. package/lib/skills/main.js +1 -1
  247. package/lib/skills/npx-skills-add.js +1 -1
  248. package/lib/skills/skill-presence.js +1 -1
  249. package/lib/telemetry/cli-command-trace.js +1 -1
  250. package/lib/telemetry/cli-help-trace.js +1 -1
  251. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  252. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  253. package/lib/telemetry/send-cli-trace-log.js +1 -1
  254. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  255. package/lib/utils/ai_config.js +1 -1
  256. package/lib/utils/apply-jq-filter.js +1 -1
  257. package/lib/utils/cdn-config.js +1 -1
  258. package/lib/utils/check-sdk-version.js +1 -1
  259. package/lib/utils/cli-version-check.js +1 -1
  260. package/lib/utils/cli-version-policy.js +1 -1
  261. package/lib/utils/config.js +1 -1
  262. package/lib/utils/copy-directory.js +1 -1
  263. package/lib/utils/entity-with-id.js +1 -1
  264. package/lib/utils/file-utils.js +1 -1
  265. package/lib/utils/guides-cdn.js +1 -1
  266. package/lib/utils/http-client.js +1 -1
  267. package/lib/utils/is-non-interactive.js +1 -1
  268. package/lib/utils/logger.js +1 -1
  269. package/lib/utils/params.js +1 -1
  270. package/lib/utils/platform.js +1 -1
  271. package/lib/utils/rules-cdn.js +1 -1
  272. package/lib/utils/sleep.js +1 -1
  273. package/lib/utils/template-replacer.js +1 -1
  274. package/lib/utils/update-notice.js +1 -1
  275. package/lib/utils/version.js +1 -1
  276. package/lib/utils/with-active-cookie.js +1 -1
  277. package/lib/utils/write-cli-side-channel.js +1 -1
  278. package/package.json +1 -1
@@ -1 +1 @@
1
- const a259_0x16df02=a259_0x503a;(function(_0x47b73a,_0x595543){const _0xe84da3=a259_0x503a,_0x23297a=_0x47b73a();while(!![]){try{const _0x4dfa1c=parseInt(_0xe84da3(0x1e5))/0x1+parseInt(_0xe84da3(0x1f0))/0x2+-parseInt(_0xe84da3(0x1ed))/0x3*(parseInt(_0xe84da3(0x20d))/0x4)+parseInt(_0xe84da3(0x1fd))/0x5+-parseInt(_0xe84da3(0x1df))/0x6+parseInt(_0xe84da3(0x1e7))/0x7*(parseInt(_0xe84da3(0x20e))/0x8)+parseInt(_0xe84da3(0x1e3))/0x9*(-parseInt(_0xe84da3(0x206))/0xa);if(_0x4dfa1c===_0x595543)break;else _0x23297a['push'](_0x23297a['shift']());}catch(_0x301d20){_0x23297a['push'](_0x23297a['shift']());}}}(a259_0x14c6,0xe084d));export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0x16df02(0x214),'description':'Cursor\x20IDE','folders':[a259_0x16df02(0x1ff),a259_0x16df02(0x20b)],'files':[{'type':'file','path':a259_0x16df02(0x20a),'template':a259_0x16df02(0x1fe)}]},'windsurf':{'name':'Windsurf','description':a259_0x16df02(0x1e8),'folders':[a259_0x16df02(0x1fb)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ea),'template':'SKILL.md.tpl'}]},'claude':{'name':a259_0x16df02(0x1ef),'description':a259_0x16df02(0x1ef),'folders':[a259_0x16df02(0x1ee)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fa),'template':a259_0x16df02(0x1fe)}]},'cline':{'name':a259_0x16df02(0x1e0),'description':'Cline\x20IDE','folders':[a259_0x16df02(0x208)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1f1),'template':a259_0x16df02(0x1fe)}]},'codex':{'name':a259_0x16df02(0x212),'description':a259_0x16df02(0x1e1),'folders':[a259_0x16df02(0x203)],'files':[{'type':'file','path':a259_0x16df02(0x205),'template':a259_0x16df02(0x1fe)}]},'opencode':{'name':'OpenCode','description':a259_0x16df02(0x1f7),'folders':[a259_0x16df02(0x204)],'files':[{'type':'file','path':a259_0x16df02(0x1dd),'template':a259_0x16df02(0x1fe)}]},'qoder':{'name':a259_0x16df02(0x1de),'description':'Qoder\x20IDE','folders':[a259_0x16df02(0x1eb)],'files':[{'type':'file','path':a259_0x16df02(0x213),'template':a259_0x16df02(0x1fe)},{'type':a259_0x16df02(0x1f2),'path':'.qoder/skills/lovrabet/SKILL.md','template':a259_0x16df02(0x1fe)}]},'codebuddy':{'name':a259_0x16df02(0x1e2),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ec),'template':'SKILL.md.tpl'}]},'trae':{'name':a259_0x16df02(0x20f),'description':'Trae\x20IDE','folders':[a259_0x16df02(0x1f4)],'files':[{'type':'file','path':a259_0x16df02(0x1f8),'template':a259_0x16df02(0x1fe)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a259_0x16df02(0x202),'description':a259_0x16df02(0x201),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]},'antigravity':{'name':a259_0x16df02(0x1f9),'description':a259_0x16df02(0x20c),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]}};export const CORE_IDE_LIST=[a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),'codex',a259_0x16df02(0x207),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210)];function a259_0x503a(_0x126b3e,_0x184ffb){_0x126b3e=_0x126b3e-0x1dd;const _0x14c676=a259_0x14c6();let _0x503afa=_0x14c676[_0x126b3e];return _0x503afa;}function a259_0x14c6(){const _0x5d65f8=['.qoder','.codebuddy/skills/lovrabet/SKILL.md','216GaLtkT','.claude','Claude\x20Code','3639544QIiqXf','.cline/skills/lovrabet/SKILL.md','file','codex','.trae','cline','trae','OpenCode\x20IDE','.trae/skills/lovrabet/SKILL.md','Antigravity','.claude/skills/lovrabet/SKILL.md','.windsurf','.agent/skills/lovrabet/SKILL.md','5234840oliIYK','SKILL.md.tpl','.cursorrules','antigravity','通用模板\x20-\x20兜底方案','其他\x20(通用模板)','.codex','.opencode','.codex/skills/lovrabet/SKILL.md','10qAOfxg','cursor','.cline','codebuddy','.cursor/skills/rabetbase.md','.cursor','Antigravity\x20IDE','4500Tgpwno','192736ebbQzD','Trae','windsurf','qoder','Codex','.qoder/rules/rabetbase.md','Cursor','.opencode/skills/lovrabet/SKILL.md','Qoder','106872JixZPn','Cline','Codex\x20IDE','CodeBuddy','37823796XkqHaz','claude','1511125tYfEtJ','.agent','245xXXvzO','Windsurf\x20IDE','opencode','.windsurf/workflows/rabetbase.md'];a259_0x14c6=function(){return _0x5d65f8;};return a259_0x14c6();}export const IDE_LIST=[a259_0x16df02(0x200),a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),a259_0x16df02(0x1f3),a259_0x16df02(0x207),'opencode',a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210),'agent'];export const ALL_CORE_IDES=[a259_0x16df02(0x207),'windsurf',a259_0x16df02(0x1e4),'cline',a259_0x16df02(0x1f3),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x209),a259_0x16df02(0x1f6)];
1
+ const a259_0xb74096=a259_0x4edb;function a259_0x4edb(_0x5a0b14,_0xc16e49){_0x5a0b14=_0x5a0b14-0xfb;const _0x3cfaf8=a259_0x3cfa();let _0x4edbd3=_0x3cfaf8[_0x5a0b14];return _0x4edbd3;}(function(_0x20a183,_0x4b9311){const _0x24006a=a259_0x4edb,_0x19c560=_0x20a183();while(!![]){try{const _0x518994=-parseInt(_0x24006a(0x129))/0x1*(-parseInt(_0x24006a(0x12e))/0x2)+parseInt(_0x24006a(0xfb))/0x3*(parseInt(_0x24006a(0x124))/0x4)+parseInt(_0x24006a(0x100))/0x5*(parseInt(_0x24006a(0x137))/0x6)+parseInt(_0x24006a(0x125))/0x7+-parseInt(_0x24006a(0x12f))/0x8*(-parseInt(_0x24006a(0x11f))/0x9)+-parseInt(_0x24006a(0x102))/0xa+-parseInt(_0x24006a(0xff))/0xb*(parseInt(_0x24006a(0x119))/0xc);if(_0x518994===_0x4b9311)break;else _0x19c560['push'](_0x19c560['shift']());}catch(_0x8d444e){_0x19c560['push'](_0x19c560['shift']());}}}(a259_0x3cfa,0xc1f47));function a259_0x3cfa(){const _0x51139b=['Cursor','18FQQqhw','36qGYNcH','OpenCode','Trae','file','847pLIjrU','88735CJSWsj','.cursor','11962150CHSKjp','Windsurf\x20IDE','.cursorrules','Qoder\x20IDE','Claude\x20Code','Cursor\x20IDE','qoder','codex','Codex\x20IDE','.agent/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.codex','cursor','antigravity','.trae/skills/lovrabet/SKILL.md','.opencode','.qoder/rules/rabetbase.md','claude','.codebuddy/skills/lovrabet/SKILL.md','cline','.windsurf/workflows/rabetbase.md','.agent','201324MvssPn','windsurf','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.qoder','.codex/skills/lovrabet/SKILL.md','149211ZSDxcY','SKILL.md.tpl','.codebuddy','.cursor/skills/rabetbase.md','CodeBuddy','391440ckrcyu','8191526nWwyVE','Cline\x20IDE','agent','.claude','1IjxavM','OpenCode\x20IDE','opencode','.opencode/skills/lovrabet/SKILL.md','.cline','973616OqaRiw','192hIXTsd','codebuddy','Codex','trae','.qoder/skills/lovrabet/SKILL.md','Trae\x20IDE','Qoder'];a259_0x3cfa=function(){return _0x51139b;};return a259_0x3cfa();}export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0xb74096(0x136),'description':a259_0xb74096(0x107),'folders':[a259_0xb74096(0x104),a259_0xb74096(0x101)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x122),'template':a259_0xb74096(0x120)}]},'windsurf':{'name':'Windsurf','description':a259_0xb74096(0x103),'folders':['.windsurf'],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x117),'template':'SKILL.md.tpl'}]},'claude':{'name':a259_0xb74096(0x106),'description':'Claude\x20Code','folders':[a259_0xb74096(0x128)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x10c),'template':a259_0xb74096(0x120)}]},'cline':{'name':'Cline','description':a259_0xb74096(0x126),'folders':[a259_0xb74096(0x12d)],'files':[{'type':'file','path':a259_0xb74096(0x11b),'template':a259_0xb74096(0x120)}]},'codex':{'name':a259_0xb74096(0x131),'description':a259_0xb74096(0x10a),'folders':[a259_0xb74096(0x10e)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x11e),'template':a259_0xb74096(0x120)}]},'opencode':{'name':a259_0xb74096(0xfc),'description':a259_0xb74096(0x12a),'folders':[a259_0xb74096(0x112)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x12c),'template':a259_0xb74096(0x120)}]},'qoder':{'name':a259_0xb74096(0x135),'description':a259_0xb74096(0x105),'folders':[a259_0xb74096(0x11d)],'files':[{'type':'file','path':a259_0xb74096(0x113),'template':a259_0xb74096(0x120)},{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x133),'template':a259_0xb74096(0x120)}]},'codebuddy':{'name':a259_0xb74096(0x123),'description':'CodeBuddy\x20IDE','folders':[a259_0xb74096(0x121)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x115),'template':a259_0xb74096(0x120)}]},'trae':{'name':a259_0xb74096(0xfd),'description':a259_0xb74096(0x134),'folders':['.trae'],'files':[{'type':'file','path':a259_0xb74096(0x111),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a259_0xb74096(0x10d),'folders':[a259_0xb74096(0x118)],'files':[{'type':'file','path':a259_0xb74096(0x10b),'template':a259_0xb74096(0x120)}]},'antigravity':{'name':'Antigravity','description':a259_0xb74096(0x11c),'folders':[a259_0xb74096(0x118)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x10b),'template':a259_0xb74096(0x120)}]}};export const CORE_IDE_LIST=[a259_0xb74096(0x114),'cline',a259_0xb74096(0x130),a259_0xb74096(0x109),'cursor',a259_0xb74096(0x12b),'qoder','trae',a259_0xb74096(0x11a)];export const IDE_LIST=[a259_0xb74096(0x110),a259_0xb74096(0x114),a259_0xb74096(0x116),a259_0xb74096(0x130),a259_0xb74096(0x109),a259_0xb74096(0x10f),a259_0xb74096(0x12b),a259_0xb74096(0x108),a259_0xb74096(0x132),a259_0xb74096(0x11a),a259_0xb74096(0x127)];export const ALL_CORE_IDES=['cursor','windsurf',a259_0xb74096(0x114),a259_0xb74096(0x116),a259_0xb74096(0x109),'opencode',a259_0xb74096(0x108),a259_0xb74096(0x130),a259_0xb74096(0x132)];
@@ -1 +1 @@
1
- (function(_0x2a2e8c,_0x5abb68){const _0x3fb885=a260_0x3c95,_0x3ec347=_0x2a2e8c();while(!![]){try{const _0x4eabee=parseInt(_0x3fb885(0x94))/0x1*(-parseInt(_0x3fb885(0x93))/0x2)+-parseInt(_0x3fb885(0x98))/0x3*(-parseInt(_0x3fb885(0x96))/0x4)+-parseInt(_0x3fb885(0x97))/0x5*(-parseInt(_0x3fb885(0x9c))/0x6)+-parseInt(_0x3fb885(0x91))/0x7+-parseInt(_0x3fb885(0x95))/0x8+parseInt(_0x3fb885(0x9a))/0x9*(-parseInt(_0x3fb885(0x92))/0xa)+parseInt(_0x3fb885(0x9b))/0xb*(parseInt(_0x3fb885(0x99))/0xc);if(_0x4eabee===_0x5abb68)break;else _0x3ec347['push'](_0x3ec347['shift']());}catch(_0x24a06a){_0x3ec347['push'](_0x3ec347['shift']());}}}(a260_0x1504,0xb4899));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a260_0x3c95(_0x2e2b3a,_0x289065){_0x2e2b3a=_0x2e2b3a-0x91;const _0x150414=a260_0x1504();let _0x3c951d=_0x150414[_0x2e2b3a];return _0x3c951d;}function a260_0x1504(){const _0x21794c=['219uxhLpr','252cssbuE','27ETfTll','775423CKJAPG','990LdoXvX','6141527IERrcA','1439310wOdcoh','6UVYAGW','55885qWKSWF','6641208wUlymT','6604lcLabZ','43805rIGuGr'];a260_0x1504=function(){return _0x21794c;};return a260_0x1504();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xe4712a,_0x12a6ec){const _0x472097=a260_0x4d46,_0x6de633=_0xe4712a();while(!![]){try{const _0x5d8c8c=-parseInt(_0x472097(0x103))/0x1+-parseInt(_0x472097(0x102))/0x2*(parseInt(_0x472097(0x105))/0x3)+parseInt(_0x472097(0x10b))/0x4*(parseInt(_0x472097(0x107))/0x5)+parseInt(_0x472097(0x108))/0x6+parseInt(_0x472097(0x10a))/0x7*(parseInt(_0x472097(0x106))/0x8)+-parseInt(_0x472097(0x104))/0x9+parseInt(_0x472097(0x109))/0xa;if(_0x5d8c8c===_0x12a6ec)break;else _0x6de633['push'](_0x6de633['shift']());}catch(_0x195f57){_0x6de633['push'](_0x6de633['shift']());}}}(a260_0x3518,0x21364));function a260_0x4d46(_0x4a861f,_0x194814){_0x4a861f=_0x4a861f-0x102;const _0x35182f=a260_0x3518();let _0x4d46be=_0x35182f[_0x4a861f];return _0x4d46be;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a260_0x3518(){const _0x305b87=['4UmeQCC','2HJVIKi','201880BhBHYS','988029bnKOeV','560712uEVxMK','8RCclje','611555TiAJWs','1456626oFJFUy','489660OrwGud','1543871NrVyPQ'];a260_0x3518=function(){return _0x305b87;};return a260_0x3518();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a261_0x50d5(_0xed82d9,_0x384f5e){_0xed82d9=_0xed82d9-0x137;const _0x3b77b7=a261_0x3b77();let _0x50d571=_0x3b77b7[_0xed82d9];return _0x50d571;}(function(_0x11cdb7,_0xa6161b){const _0x981c32=a261_0x50d5,_0x475378=_0x11cdb7();while(!![]){try{const _0x5146f9=-parseInt(_0x981c32(0x13a))/0x1*(-parseInt(_0x981c32(0x147))/0x2)+-parseInt(_0x981c32(0x138))/0x3+-parseInt(_0x981c32(0x142))/0x4+parseInt(_0x981c32(0x139))/0x5+-parseInt(_0x981c32(0x13b))/0x6*(parseInt(_0x981c32(0x146))/0x7)+parseInt(_0x981c32(0x140))/0x8*(parseInt(_0x981c32(0x143))/0x9)+-parseInt(_0x981c32(0x13c))/0xa*(parseInt(_0x981c32(0x141))/0xb);if(_0x5146f9===_0xa6161b)break;else _0x475378['push'](_0x475378['shift']());}catch(_0x36488f){_0x475378['push'](_0x475378['shift']());}}}(a261_0x3b77,0x5dc42));import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x3b77(){const _0x18c311=['115157OOcQSG','2WMRytx','node','stableVersion','now','317205osoCWU','1189505eWGIEq','752543kUDiOu','36yXbHbT','2009510VomDiM','json','/config/index.json','/config.json','8UDzSjw','11OynjpX','1081892wowSEk','625383TfOLKR','application/json','sdk'];a261_0x3b77=function(){return _0x18c311;};return a261_0x3b77();}export async function fetchCdnConfig(){const _0x55c000=a261_0x50d5,_0x2dbe92=getTemplateBaseUrl(),_0x5a7a4b=[_0x2dbe92+_0x55c000(0x13f),_0x2dbe92+_0x55c000(0x13e)];for(const _0x341cc2 of _0x5a7a4b){try{const _0x33a47c=await fetch(_0x341cc2,{'headers':{'Accept':_0x55c000(0x144)}});if(!_0x33a47c['ok'])continue;const _0x1fccb3=await _0x33a47c[_0x55c000(0x13d)]();if(!_0x1fccb3['cli']?.['stableVersion']||!_0x1fccb3[_0x55c000(0x145)]?.[_0x55c000(0x148)]?.[_0x55c000(0x149)])continue;return _0x1fccb3;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2cbdf9=a261_0x50d5,_0xf2ccfa=Date[_0x2cbdf9(0x137)]();if(hasCachedConfig){const _0x4d61e8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf2ccfa-cacheTime<_0x4d61e8)return cachedConfig;}const _0x696842=await fetchCdnConfig();return cachedConfig=_0x696842,cacheTime=_0xf2ccfa,hasCachedConfig=!![],_0x696842;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a261_0x219f(_0x56b5bd,_0x30181f){_0x56b5bd=_0x56b5bd-0x16d;const _0x23d97b=a261_0x23d9();let _0x219f63=_0x23d97b[_0x56b5bd];return _0x219f63;}(function(_0x4a7c43,_0x31696f){const _0x4e5997=a261_0x219f,_0x247a1=_0x4a7c43();while(!![]){try{const _0xacbe15=-parseInt(_0x4e5997(0x176))/0x1+parseInt(_0x4e5997(0x17a))/0x2+-parseInt(_0x4e5997(0x171))/0x3*(parseInt(_0x4e5997(0x178))/0x4)+parseInt(_0x4e5997(0x16d))/0x5+-parseInt(_0x4e5997(0x179))/0x6*(-parseInt(_0x4e5997(0x17d))/0x7)+-parseInt(_0x4e5997(0x172))/0x8+parseInt(_0x4e5997(0x173))/0x9*(-parseInt(_0x4e5997(0x16e))/0xa);if(_0xacbe15===_0x31696f)break;else _0x247a1['push'](_0x247a1['shift']());}catch(_0x51ef07){_0x247a1['push'](_0x247a1['shift']());}}}(a261_0x23d9,0xc2a5b));import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x23d9(){const _0x47d104=['4UoJpgC','5730990aJCnlj','1553750BXCsYK','now','application/json','7qsZOzT','/config/index.json','5897940fLOzwa','10SBVHmk','node','sdk','3125091XRQRNz','2295632CdTbGg','2865384ObGCDA','cli','json','467326ChlKUD','stableVersion'];a261_0x23d9=function(){return _0x47d104;};return a261_0x23d9();}export async function fetchCdnConfig(){const _0x2a3d44=a261_0x219f,_0x2222eb=getTemplateBaseUrl(),_0x1c20f3=[_0x2222eb+'/config.json',_0x2222eb+_0x2a3d44(0x17e)];for(const _0x3b65c2 of _0x1c20f3){try{const _0x5a5b0b=await fetch(_0x3b65c2,{'headers':{'Accept':_0x2a3d44(0x17c)}});if(!_0x5a5b0b['ok'])continue;const _0x5c72c5=await _0x5a5b0b[_0x2a3d44(0x175)]();if(!_0x5c72c5[_0x2a3d44(0x174)]?.[_0x2a3d44(0x177)]||!_0x5c72c5[_0x2a3d44(0x170)]?.[_0x2a3d44(0x16f)]?.[_0x2a3d44(0x177)])continue;return _0x5c72c5;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x52e47f=a261_0x219f,_0x48a99f=Date[_0x52e47f(0x17b)]();if(hasCachedConfig){const _0x3ab182=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x48a99f-cacheTime<_0x3ab182)return cachedConfig;}const _0x817806=await fetchCdnConfig();return cachedConfig=_0x817806,cacheTime=_0x48a99f,hasCachedConfig=!![],_0x817806;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a262_0x5ea00c=a262_0x4a15;(function(_0xc48df1,_0x358975){const _0x234101=a262_0x4a15,_0x3282ce=_0xc48df1();while(!![]){try{const _0x341bc4=-parseInt(_0x234101(0xa1))/0x1*(parseInt(_0x234101(0x93))/0x2)+-parseInt(_0x234101(0x81))/0x3+-parseInt(_0x234101(0xa2))/0x4+parseInt(_0x234101(0x9a))/0x5*(parseInt(_0x234101(0x8f))/0x6)+parseInt(_0x234101(0x9b))/0x7+parseInt(_0x234101(0x92))/0x8+parseInt(_0x234101(0x9c))/0x9;if(_0x341bc4===_0x358975)break;else _0x3282ce['push'](_0x3282ce['shift']());}catch(_0x3917cf){_0x3282ce['push'](_0x3282ce['shift']());}}}(a262_0x1d1c,0xf095c));import a262_0x3b6b9e from'node:fs';import a262_0x384dff from'node:path';import a262_0x289812 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a262_0x5ea00c(0x9d);function a262_0x4a15(_0x39157f,_0x1d70d5){_0x39157f=_0x39157f-0x81;const _0x1d1cff=a262_0x1d1c();let _0x4a1503=_0x1d1cff[_0x39157f];return _0x4a1503;}function isNonNumericVersion(_0x3d6bfd){const _0x59bcd=a262_0x5ea00c,_0x53fe62=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x53fe62[_0x59bcd(0x98)](_0x367f75=>_0x367f75['test'](_0x3d6bfd));}function getInstalledVersion(_0x27c185,_0x1e83b6){const _0x45aa29=a262_0x5ea00c;try{const _0x2c9ece=a262_0x384dff['join'](_0x27c185,_0x45aa29(0xa7),_0x1e83b6,'package.json');if(a262_0x3b6b9e[_0x45aa29(0xa3)](_0x2c9ece)){const _0x248fbe=JSON[_0x45aa29(0xa5)](a262_0x3b6b9e[_0x45aa29(0x82)](_0x2c9ece,_0x45aa29(0xa0)));return _0x248fbe[_0x45aa29(0x95)]||null;}}catch{}return null;}function a262_0x1d1c(){const _0x4faa7d=['6ygtdKi','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','14780664IwuyIZ','18dLhYts','package.json','version','join','\x20\x20\x20Upgrade\x20command:\x20','some','\x1b[33m','3363805vmIFPV','9224642xSVxrD','973494QXhgOG','1.2.0','@lovrabet/sdk','dependencies','utf-8','77358zXmLkg','5443424mwszcF','existsSync','coerce','parse','node','node_modules','2711406lFpEdo','readFileSync','\x1b[1m','\x1b[0m','log','stableVersion','latest','devDependencies','needsUpgrade','\x20\x20\x20Stable\x20version:\x20','sdk','packageName','utf8','minVersion'];a262_0x1d1c=function(){return _0x4faa7d;};return a262_0x1d1c();}async function getSdkStableVersion(){const _0x58cd84=a262_0x5ea00c;try{const _0x1d2736=await getCdnConfig();return _0x1d2736?.[_0x58cd84(0x8b)]?.[_0x58cd84(0xa6)]?.[_0x58cd84(0x86)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x269fed=a262_0x5ea00c;try{const _0x388037=await getCdnConfig();return _0x388037?.[_0x269fed(0x8b)]?.[_0x269fed(0xa6)]?.[_0x269fed(0x8c)]||_0x269fed(0x9e);}catch{return _0x269fed(0x9e);}}export async function checkSdkVersion(_0x273106){const _0x22898c=a262_0x5ea00c,_0x4baba9=a262_0x384dff[_0x22898c(0x96)](_0x273106,_0x22898c(0x94)),[_0x12bbed,_0x19345a]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x48de68=_0x12bbed||FALLBACK_MIN_SDK_VERSION;if(!a262_0x3b6b9e[_0x22898c(0xa3)](_0x4baba9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};try{const _0x49cf73=JSON[_0x22898c(0xa5)](a262_0x3b6b9e[_0x22898c(0x82)](_0x4baba9,_0x22898c(0x8d))),_0x45d01c=_0x49cf73[_0x22898c(0x9f)]||{},_0x2ba784=_0x49cf73[_0x22898c(0x88)]||{},_0x50a03c=_0x45d01c[_0x19345a]||_0x2ba784[_0x19345a];if(!_0x50a03c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};let _0x2ff704=getInstalledVersion(_0x273106,_0x19345a);!_0x2ff704&&(_0x2ff704=_0x50a03c);if(isNonNumericVersion(_0x50a03c))return{'installed':!![],'version':_0x2ff704,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};const _0x8635eb=a262_0x289812[_0x22898c(0xa4)](_0x2ff704),_0x1ac557=a262_0x289812[_0x22898c(0xa4)](_0x48de68),_0x45a345=_0x8635eb&&_0x1ac557?a262_0x289812['lt'](_0x8635eb,_0x1ac557):![];return{'installed':!![],'version':_0x2ff704,'needsUpgrade':_0x45a345,'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}}export function checkSdkVersionSync(_0x363498){const _0x599391=a262_0x5ea00c,_0x3ca2ef=a262_0x384dff['join'](_0x363498,_0x599391(0x94)),_0x293f28='@lovrabet/sdk';if(!a262_0x3b6b9e[_0x599391(0xa3)](_0x3ca2ef))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};try{const _0x8f7d5=JSON[_0x599391(0xa5)](a262_0x3b6b9e['readFileSync'](_0x3ca2ef,'utf8')),_0x3d079b=_0x8f7d5[_0x599391(0x9f)]||{},_0x52ae21=_0x8f7d5['devDependencies']||{},_0x410ea3=_0x3d079b[_0x293f28]||_0x52ae21[_0x293f28];if(!_0x410ea3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};let _0x2d92da=getInstalledVersion(_0x363498,_0x293f28);!_0x2d92da&&(_0x2d92da=_0x410ea3);if(isNonNumericVersion(_0x410ea3))return{'installed':!![],'version':_0x2d92da,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};const _0x49ea70=a262_0x289812[_0x599391(0xa4)](_0x2d92da),_0xa99fa6=_0x49ea70?a262_0x289812['lt'](_0x49ea70,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2d92da,'needsUpgrade':_0xa99fa6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x474e6f){const _0x227005=a262_0x5ea00c;if(!_0x474e6f[_0x227005(0x89)])return;const _0x555881=_0x227005(0x99),_0xcf1d1=_0x227005(0x84),_0x35d684=_0x227005(0x83),_0x559633=_0x474e6f['packageName']||_0x227005(0x9e),_0x445282=_0x474e6f[_0x227005(0x86)]||_0x474e6f[_0x227005(0x8e)],_0x57b490='npm\x20install\x20'+_0x559633+'@'+(_0x445282||_0x227005(0x87));console[_0x227005(0x85)](),console[_0x227005(0x85)](''+_0x555881+_0x35d684+_0x227005(0x91)+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x90)+_0x559633+'@'+_0x474e6f[_0x227005(0x95)]+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x8a)+_0x445282+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x97)+_0x57b490+_0xcf1d1),console[_0x227005(0x85)]();}
1
+ (function(_0x599c3d,_0x149907){const _0x1397f9=a262_0x58d7,_0x2800bb=_0x599c3d();while(!![]){try{const _0x66c097=parseInt(_0x1397f9(0xb9))/0x1*(parseInt(_0x1397f9(0xb1))/0x2)+parseInt(_0x1397f9(0xbf))/0x3+parseInt(_0x1397f9(0xcb))/0x4*(-parseInt(_0x1397f9(0xc2))/0x5)+-parseInt(_0x1397f9(0xbe))/0x6*(parseInt(_0x1397f9(0xd4))/0x7)+-parseInt(_0x1397f9(0xb6))/0x8*(parseInt(_0x1397f9(0xcf))/0x9)+parseInt(_0x1397f9(0xbb))/0xa+parseInt(_0x1397f9(0xd0))/0xb;if(_0x66c097===_0x149907)break;else _0x2800bb['push'](_0x2800bb['shift']());}catch(_0xe8b62d){_0x2800bb['push'](_0x2800bb['shift']());}}}(a262_0x2fae,0x2442d));function a262_0x2fae(){const _0x447add=['\x1b[33m','test','86JlnpLl','minVersion','\x20\x20\x20Stable\x20version:\x20','node_modules','coerce','392GNsVry','\x20\x20\x20Current\x20version:\x20','sdk','1591xMBqCF','parse','1432000UOsFLr','stableVersion','devDependencies','6TfHDtu','185163zTcvXp','log','dependencies','25660kXPQix','all','package.json','readFileSync','@lovrabet/sdk','existsSync','\x1b[0m','latest','npm\x20install\x20','64lDxivy','\x20\x20\x20Upgrade\x20command:\x20','join','\x1b[1m','41247QnFCux','4387119xNmdQV','utf8','packageName','version','1518713AGBrNj','↪\x20SDK\x20update\x20available','utf-8','node'];a262_0x2fae=function(){return _0x447add;};return a262_0x2fae();}import a262_0x5694a4 from'node:fs';function a262_0x58d7(_0xe0c50,_0x59d6df){_0xe0c50=_0xe0c50-0xaf;const _0x2fae80=a262_0x2fae();let _0x58d79b=_0x2fae80[_0xe0c50];return _0x58d79b;}import a262_0x340d22 from'node:path';import a262_0xd5e0d2 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1c1ca1){const _0x30459b=a262_0x58d7,_0x2be287=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2be287['some'](_0xb561e7=>_0xb561e7[_0x30459b(0xb0)](_0x1c1ca1));}function getInstalledVersion(_0x20a0c2,_0x3c2002){const _0x29c6d0=a262_0x58d7;try{const _0xfad651=a262_0x340d22[_0x29c6d0(0xcd)](_0x20a0c2,_0x29c6d0(0xb4),_0x3c2002,_0x29c6d0(0xc4));if(a262_0x5694a4[_0x29c6d0(0xc7)](_0xfad651)){const _0x4b396c=JSON[_0x29c6d0(0xba)](a262_0x5694a4['readFileSync'](_0xfad651,_0x29c6d0(0xd6)));return _0x4b396c[_0x29c6d0(0xd3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3cb301=a262_0x58d7;try{const _0x548fdb=await getCdnConfig();return _0x548fdb?.[_0x3cb301(0xb8)]?.[_0x3cb301(0xd7)]?.[_0x3cb301(0xbc)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3df39b=a262_0x58d7;try{const _0x1fbb36=await getCdnConfig();return _0x1fbb36?.['sdk']?.[_0x3df39b(0xd7)]?.[_0x3df39b(0xd2)]||_0x3df39b(0xc6);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x150af7){const _0x256b33=a262_0x58d7,_0x359527=a262_0x340d22[_0x256b33(0xcd)](_0x150af7,_0x256b33(0xc4)),[_0x5bea50,_0x4d0af2]=await Promise[_0x256b33(0xc3)]([getSdkStableVersion(),getSdkPackageName()]),_0x55f6ec=_0x5bea50||FALLBACK_MIN_SDK_VERSION;if(!a262_0x5694a4[_0x256b33(0xc7)](_0x359527))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};try{const _0x299731=JSON[_0x256b33(0xba)](a262_0x5694a4[_0x256b33(0xc5)](_0x359527,'utf8')),_0x227823=_0x299731[_0x256b33(0xc1)]||{},_0x2eec5b=_0x299731[_0x256b33(0xbd)]||{},_0x2bc220=_0x227823[_0x4d0af2]||_0x2eec5b[_0x4d0af2];if(!_0x2bc220)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};let _0x303d8f=getInstalledVersion(_0x150af7,_0x4d0af2);!_0x303d8f&&(_0x303d8f=_0x2bc220);if(isNonNumericVersion(_0x2bc220))return{'installed':!![],'version':_0x303d8f,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};const _0x47b7c3=a262_0xd5e0d2[_0x256b33(0xb5)](_0x303d8f),_0x1a1925=a262_0xd5e0d2[_0x256b33(0xb5)](_0x55f6ec),_0x3ce5f2=_0x47b7c3&&_0x1a1925?a262_0xd5e0d2['lt'](_0x47b7c3,_0x1a1925):![];return{'installed':!![],'version':_0x303d8f,'needsUpgrade':_0x3ce5f2,'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};}}export function checkSdkVersionSync(_0x269f27){const _0x319c0a=a262_0x58d7,_0x554c0d=a262_0x340d22[_0x319c0a(0xcd)](_0x269f27,_0x319c0a(0xc4)),_0x3b2ab2=_0x319c0a(0xc6);if(!a262_0x5694a4[_0x319c0a(0xc7)](_0x554c0d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};try{const _0x5d02f2=JSON[_0x319c0a(0xba)](a262_0x5694a4[_0x319c0a(0xc5)](_0x554c0d,_0x319c0a(0xd1))),_0x16bc69=_0x5d02f2[_0x319c0a(0xc1)]||{},_0x2d0442=_0x5d02f2[_0x319c0a(0xbd)]||{},_0x14b7db=_0x16bc69[_0x3b2ab2]||_0x2d0442[_0x3b2ab2];if(!_0x14b7db)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};let _0x29306f=getInstalledVersion(_0x269f27,_0x3b2ab2);!_0x29306f&&(_0x29306f=_0x14b7db);if(isNonNumericVersion(_0x14b7db))return{'installed':!![],'version':_0x29306f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};const _0x816a42=a262_0xd5e0d2[_0x319c0a(0xb5)](_0x29306f),_0xcbf5ac=_0x816a42?a262_0xd5e0d2['lt'](_0x816a42,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29306f,'needsUpgrade':_0xcbf5ac,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x784df2){const _0x4405b4=a262_0x58d7;if(!_0x784df2['needsUpgrade'])return;const _0x2b5743=_0x4405b4(0xaf),_0x234313=_0x4405b4(0xc8),_0x29586f=_0x4405b4(0xce),_0x31772b=_0x784df2[_0x4405b4(0xd2)]||_0x4405b4(0xc6),_0x3d85e7=_0x784df2[_0x4405b4(0xbc)]||_0x784df2[_0x4405b4(0xb2)],_0x206e0c=_0x4405b4(0xca)+_0x31772b+'@'+(_0x3d85e7||_0x4405b4(0xc9));console[_0x4405b4(0xc0)](),console[_0x4405b4(0xc0)](''+_0x2b5743+_0x29586f+_0x4405b4(0xd5)+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xb7)+_0x31772b+'@'+_0x784df2[_0x4405b4(0xd3)]+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xb3)+_0x3d85e7+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xcc)+_0x206e0c+_0x234313),console[_0x4405b4(0xc0)]();}
@@ -1 +1 @@
1
- (function(_0x264e21,_0x122b28){const _0x2525e2=a263_0x3f70,_0x3d629f=_0x264e21();while(!![]){try{const _0x926b1a=-parseInt(_0x2525e2(0x14a))/0x1+-parseInt(_0x2525e2(0x158))/0x2*(parseInt(_0x2525e2(0x148))/0x3)+parseInt(_0x2525e2(0x154))/0x4*(parseInt(_0x2525e2(0x15a))/0x5)+-parseInt(_0x2525e2(0x152))/0x6*(parseInt(_0x2525e2(0x15e))/0x7)+parseInt(_0x2525e2(0x15f))/0x8+parseInt(_0x2525e2(0x15b))/0x9+parseInt(_0x2525e2(0x16a))/0xa;if(_0x926b1a===_0x122b28)break;else _0x3d629f['push'](_0x3d629f['shift']());}catch(_0x221a6f){_0x3d629f['push'](_0x3d629f['shift']());}}}(a263_0x65e2,0x34f4b));function a263_0x3f70(_0x1bf5af,_0x5052c5){_0x1bf5af=_0x1bf5af-0x146;const _0x65e2e8=a263_0x65e2();let _0x3f7081=_0x65e2e8[_0x1bf5af];return _0x3f7081;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x2ec24b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x368735){const _0x59b774=a263_0x3f70,_0x24be60=_0x368735[_0x59b774(0x168)]||_0x59b774(0x150);return _0x59b774(0x14c)+NPM_PACKAGE_NAME+'@'+_0x24be60;}function getCurrentCliVersion(){const _0x43c431=a263_0x3f70;try{const _0x29abdd=fileURLToPath(import.meta.url),_0x59e314=resolve(dirname(_0x29abdd),_0x43c431(0x16e)),_0x350ed1=resolve(_0x59e314,_0x43c431(0x14e)),_0x1ae9b4=JSON[_0x43c431(0x166)](readFileSync(_0x350ed1,_0x43c431(0x146)));return _0x1ae9b4['version']||_0x43c431(0x16b);}catch{return _0x43c431(0x16b);}}export async function checkCliVersion(){const _0x1326b0=a263_0x3f70,_0x202404=getCurrentCliVersion(),_0x485b69=await getCliVersionPolicy(),_0x4b075a=_0x485b69?.['stableVersion']||null,_0x2507d1=_0x485b69?.[_0x1326b0(0x163)]||null;let _0x297d14=![],_0x355d99=![];const _0x175ca7=a263_0x2ec24b[_0x1326b0(0x14b)](_0x202404);if(_0x175ca7&&_0x4b075a)try{const _0x2174e5=a263_0x2ec24b[_0x1326b0(0x14b)](_0x4b075a);if(_0x2174e5)_0x297d14=a263_0x2ec24b['lt'](_0x175ca7,_0x2174e5);}catch{}if(_0x175ca7&&_0x2507d1)try{const _0x27b45c=a263_0x2ec24b[_0x1326b0(0x14b)](_0x2507d1);if(_0x27b45c)_0x355d99=a263_0x2ec24b['lt'](_0x175ca7,_0x27b45c);}catch{}return _0x355d99&&(_0x297d14=!![]),{'currentVersion':_0x202404,'stableVersion':_0x4b075a,'minimumVersion':_0x2507d1,'needsUpgrade':_0x297d14,'belowMinimum':_0x355d99,'isPreRelease':![],'upgradeMessage':_0x485b69?.['upgradeMessage'],'minimumVersionMessage':_0x485b69?.[_0x1326b0(0x16d)]};}function a263_0x65e2(){const _0x23df06=['\x1b[1m','package.json','log','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','66tZLoRi','Minimum\x20supported:\x20','12JyqwIm','\x1b[31m','belowMinimum','Upgrade\x20command:\x20','120XgeTBa','needsUpgrade','225365IuQOUe','2528964THFNDD','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','141827fcbCTQ','3438232TNSEia','upgradeMessage','currentVersion','validation','minimumVersion','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','parse','\x1b[33m','stableVersion','join','2003080nEHdyX','1.0.0','Current\x20version:\x20','minimumVersionMessage','../..','utf-8','filter','16782SDzSUF','\x20\x20\x20Stable\x20version:\x20','270884fjvVBf','coerce','npm\x20install\x20-g\x20'];a263_0x65e2=function(){return _0x23df06;};return a263_0x65e2();}export function printCliUpgradeWarning(_0x32db1e){const _0x4aa11c=a263_0x3f70;if(!_0x32db1e[_0x4aa11c(0x159)]&&!_0x32db1e[_0x4aa11c(0x156)])return;const _0xf6338a=_0x4aa11c(0x155),_0x5276a6=_0x4aa11c(0x167),_0xd3db85='\x1b[0m',_0x24c86c=_0x4aa11c(0x14d),_0x26cbaa=getCliUpgradeCommand(_0x32db1e);console[_0x4aa11c(0x14f)](),_0x32db1e[_0x4aa11c(0x156)]?(console['log'](''+_0xf6338a+_0x24c86c+_0x4aa11c(0x165)+_0xd3db85),console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x163)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x15c)+_0x32db1e['minimumVersion']+_0xd3db85),_0x32db1e[_0x4aa11c(0x168)]&&_0x32db1e[_0x4aa11c(0x168)]!==_0x32db1e['minimumVersion']&&console[_0x4aa11c(0x14f)](_0xf6338a+'\x20\x20\x20Recommended\x20stable:\x20'+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x16d)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x164)+_0x32db1e[_0x4aa11c(0x16d)]+_0xd3db85),console['log'](_0xf6338a+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)):(console['log'](''+_0x5276a6+_0x24c86c+'↪\x20New\x20version\x20available'+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x149)+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x160)]&&console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x164)+_0x32db1e['upgradeMessage']+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)),console[_0x4aa11c(0x14f)]();}export function assertCliVersionSupported(_0x1bec83){const _0x447772=a263_0x3f70;if(!_0x1bec83[_0x447772(0x156)])return;const _0x31b9c8=[_0x1bec83[_0x447772(0x16d)],_0x447772(0x16c)+_0x1bec83[_0x447772(0x161)],_0x1bec83['minimumVersion']?_0x447772(0x153)+_0x1bec83[_0x447772(0x163)]:null,_0x447772(0x157)+getCliUpgradeCommand(_0x1bec83)][_0x447772(0x147)](Boolean)[_0x447772(0x169)]('\x0a');throw CliErrors[_0x447772(0x162)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x31b9c8);}
1
+ (function(_0x5f79c8,_0x5a646d){const _0x597f0d=a263_0x19fb,_0xf8ded8=_0x5f79c8();while(!![]){try{const _0x4b1562=-parseInt(_0x597f0d(0x10b))/0x1+parseInt(_0x597f0d(0x118))/0x2+parseInt(_0x597f0d(0x113))/0x3+parseInt(_0x597f0d(0x105))/0x4*(-parseInt(_0x597f0d(0x107))/0x5)+parseInt(_0x597f0d(0xfb))/0x6+-parseInt(_0x597f0d(0x100))/0x7*(parseInt(_0x597f0d(0x109))/0x8)+parseInt(_0x597f0d(0x11a))/0x9;if(_0x4b1562===_0x5a646d)break;else _0xf8ded8['push'](_0xf8ded8['shift']());}catch(_0x510e75){_0xf8ded8['push'](_0xf8ded8['shift']());}}}(a263_0x5426,0x38e71));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x4b6dea from'semver';function a263_0x5426(){const _0xef538=['\x1b[33m','log','719418IgmsUo','stableVersion','utf-8','version','coerce','490427BbYTjf','minimumVersionMessage','package.json','upgradeMessage','\x20\x20\x20Recommended\x20stable:\x20','24SaUSCj','\x1b[0m','193130rdugVf','\x20\x20\x20Minimum\x20supported:\x20','40suIXxy','latest','127556jPYxCn','minimumVersion','Current\x20version:\x20','filter','parse','\x20\x20\x20Upgrade\x20command:\x20','join','\x20\x20\x20Stable\x20version:\x20','231291iMcGmf','currentVersion','Minimum\x20supported:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20','793452MqwgZB','npm\x20install\x20-g\x20','3140676uMbfjG','1.0.0','\x1b[1m','\x1b[31m','belowMinimum','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','↪\x20New\x20version\x20available'];a263_0x5426=function(){return _0xef538;};return a263_0x5426();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2d1d93){const _0x5ad54f=a263_0x19fb,_0xaf317=_0x2d1d93[_0x5ad54f(0xfc)]||_0x5ad54f(0x10a);return _0x5ad54f(0x119)+NPM_PACKAGE_NAME+'@'+_0xaf317;}function getCurrentCliVersion(){const _0x2ee613=a263_0x19fb;try{const _0x49a58a=fileURLToPath(import.meta.url),_0x49ebb6=resolve(dirname(_0x49a58a),'../..'),_0x5da1ca=resolve(_0x49ebb6,_0x2ee613(0x102)),_0x433fba=JSON[_0x2ee613(0x10f)](readFileSync(_0x5da1ca,_0x2ee613(0xfd)));return _0x433fba[_0x2ee613(0xfe)]||_0x2ee613(0x11b);}catch{return _0x2ee613(0x11b);}}export async function checkCliVersion(){const _0xe7d4d4=a263_0x19fb,_0x25f539=getCurrentCliVersion(),_0x12bb89=await getCliVersionPolicy(),_0x1d4650=_0x12bb89?.['stableVersion']||null,_0xf1e0f2=_0x12bb89?.['minimumVersion']||null;let _0x5156de=![],_0x487ef4=![];const _0x540c29=a263_0x4b6dea[_0xe7d4d4(0xff)](_0x25f539);if(_0x540c29&&_0x1d4650)try{const _0x303675=a263_0x4b6dea[_0xe7d4d4(0xff)](_0x1d4650);if(_0x303675)_0x5156de=a263_0x4b6dea['lt'](_0x540c29,_0x303675);}catch{}if(_0x540c29&&_0xf1e0f2)try{const _0x1931bf=a263_0x4b6dea['coerce'](_0xf1e0f2);if(_0x1931bf)_0x487ef4=a263_0x4b6dea['lt'](_0x540c29,_0x1931bf);}catch{}return _0x487ef4&&(_0x5156de=!![]),{'currentVersion':_0x25f539,'stableVersion':_0x1d4650,'minimumVersion':_0xf1e0f2,'needsUpgrade':_0x5156de,'belowMinimum':_0x487ef4,'isPreRelease':![],'upgradeMessage':_0x12bb89?.['upgradeMessage'],'minimumVersionMessage':_0x12bb89?.['minimumVersionMessage']};}function a263_0x19fb(_0x1a9aa5,_0x59428d){_0x1a9aa5=_0x1a9aa5-0xfa;const _0x5426bb=a263_0x5426();let _0x19fbb0=_0x5426bb[_0x1a9aa5];return _0x19fbb0;}export function printCliUpgradeWarning(_0x46da46){const _0x5c49b1=a263_0x19fb;if(!_0x46da46['needsUpgrade']&&!_0x46da46['belowMinimum'])return;const _0x413c0d=_0x5c49b1(0x11d),_0x2b4984=_0x5c49b1(0x122),_0x2439b9=_0x5c49b1(0x106),_0x59ba38=_0x5c49b1(0x11c),_0x5c05d6=getCliUpgradeCommand(_0x46da46);console[_0x5c49b1(0xfa)](),_0x46da46[_0x5c49b1(0x11e)]?(console[_0x5c49b1(0xfa)](''+_0x413c0d+_0x59ba38+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x2439b9),console[_0x5c49b1(0xfa)](_0x413c0d+_0x5c49b1(0x120)+_0x46da46[_0x5c49b1(0x114)]+_0x2439b9),_0x46da46[_0x5c49b1(0x10c)]&&console['log'](_0x413c0d+_0x5c49b1(0x108)+_0x46da46[_0x5c49b1(0x10c)]+_0x2439b9),_0x46da46[_0x5c49b1(0xfc)]&&_0x46da46['stableVersion']!==_0x46da46[_0x5c49b1(0x10c)]&&console['log'](_0x413c0d+_0x5c49b1(0x104)+_0x46da46[_0x5c49b1(0xfc)]+_0x2439b9),_0x46da46[_0x5c49b1(0x101)]&&console['log'](_0x413c0d+_0x5c49b1(0x117)+_0x46da46[_0x5c49b1(0x101)]+_0x2439b9),console[_0x5c49b1(0xfa)](_0x413c0d+_0x5c49b1(0x110)+_0x5c05d6+_0x2439b9)):(console['log'](''+_0x2b4984+_0x59ba38+_0x5c49b1(0x121)+_0x2439b9),console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x120)+_0x46da46[_0x5c49b1(0x114)]+_0x2439b9),console['log'](_0x2b4984+_0x5c49b1(0x112)+_0x46da46[_0x5c49b1(0xfc)]+_0x2439b9),_0x46da46[_0x5c49b1(0x103)]&&console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x117)+_0x46da46[_0x5c49b1(0x103)]+_0x2439b9),console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x110)+_0x5c05d6+_0x2439b9)),console[_0x5c49b1(0xfa)]();}export function assertCliVersionSupported(_0x15f740){const _0xb54eba=a263_0x19fb;if(!_0x15f740[_0xb54eba(0x11e)])return;const _0xf27145=[_0x15f740[_0xb54eba(0x101)],_0xb54eba(0x10d)+_0x15f740['currentVersion'],_0x15f740[_0xb54eba(0x10c)]?_0xb54eba(0x115)+_0x15f740[_0xb54eba(0x10c)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x15f740)][_0xb54eba(0x10e)](Boolean)[_0xb54eba(0x111)]('\x0a');throw CliErrors[_0xb54eba(0x11f)](_0xb54eba(0x116),_0xf27145);}
@@ -1 +1 @@
1
- (function(_0x545331,_0x34024b){const _0x36a451=a264_0x1cff,_0x401164=_0x545331();while(!![]){try{const _0x42498e=parseInt(_0x36a451(0xf0))/0x1*(-parseInt(_0x36a451(0xf8))/0x2)+-parseInt(_0x36a451(0xf4))/0x3+-parseInt(_0x36a451(0xf5))/0x4+-parseInt(_0x36a451(0xfb))/0x5*(-parseInt(_0x36a451(0xf1))/0x6)+parseInt(_0x36a451(0xf2))/0x7+parseInt(_0x36a451(0xfa))/0x8+parseInt(_0x36a451(0xf6))/0x9;if(_0x42498e===_0x34024b)break;else _0x401164['push'](_0x401164['shift']());}catch(_0x4b3ad1){_0x401164['push'](_0x401164['shift']());}}}(a264_0x31e2,0x7cb2b));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a264_0x1cff(_0x5ed2fc,_0x555a10){_0x5ed2fc=_0x5ed2fc-0xe6;const _0x31e21c=a264_0x31e2();let _0x1cffb3=_0x31e21c[_0x5ed2fc];return _0x1cffb3;}function a264_0x31e2(){const _0x536d2f=['string','json','trim','latestVersion','length','now','object','4lGuFax','366bnMHtJ','5140898PwMNLU','upgradeMessage','95364azzesL','2334104jxnHMH','1680642jCjnkJ','recommendedVersion','253366MoezXb','signal','2610560VwzesA','31585AmOCJX','cli','minVersion','abort','minimumVersion','minimumVersionMessage','application/json','stableVersion'];a264_0x31e2=function(){return _0x536d2f;};return a264_0x31e2();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x6e7579){const _0x2cba6d=a264_0x1cff;return typeof _0x6e7579===_0x2cba6d(0xe9)&&_0x6e7579[_0x2cba6d(0xeb)]()[_0x2cba6d(0xed)]>0x0?_0x6e7579[_0x2cba6d(0xeb)]():null;}function normalizeCliVersionPolicy(_0x4aa6ec){const _0x4d50f6=a264_0x1cff;if(!_0x4aa6ec||typeof _0x4aa6ec!==_0x4d50f6(0xef))return null;const _0x9f138e=_0x4aa6ec,_0xdf0cf9=_0x9f138e[_0x4d50f6(0xfc)]&&typeof _0x9f138e[_0x4d50f6(0xfc)]===_0x4d50f6(0xef)?_0x9f138e[_0x4d50f6(0xfc)]:_0x9f138e,_0x3abd3a=pickString(_0xdf0cf9[_0x4d50f6(0xe8)])||pickString(_0xdf0cf9[_0x4d50f6(0xec)])||pickString(_0xdf0cf9[_0x4d50f6(0xf7)]),_0x335d9a=pickString(_0xdf0cf9[_0x4d50f6(0xff)])||pickString(_0xdf0cf9[_0x4d50f6(0xfd)]);if(!_0x3abd3a&&!_0x335d9a)return null;return{'stableVersion':_0x3abd3a,'minimumVersion':_0x335d9a,'upgradeMessage':pickString(_0xdf0cf9[_0x4d50f6(0xf3)])||undefined,'minimumVersionMessage':pickString(_0xdf0cf9[_0x4d50f6(0xe6)])||undefined};}export async function fetchCliVersionPolicy(){const _0x512275=a264_0x1cff,_0x58c8aa=new AbortController(),_0x3a13c6=setTimeout(()=>_0x58c8aa[_0x512275(0xfe)](),FETCH_TIMEOUT_MS);try{const _0x3dcebc=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x512275(0xe7)},'signal':_0x58c8aa[_0x512275(0xf9)]});if(!_0x3dcebc['ok'])return null;const _0xb7b9a8=await _0x3dcebc[_0x512275(0xea)]();return normalizeCliVersionPolicy(_0xb7b9a8);}catch{return null;}finally{clearTimeout(_0x3a13c6);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x25b967=a264_0x1cff,_0x2f61b2=Date[_0x25b967(0xee)]();if(hasCachedPolicy){const _0x528e1f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f61b2-cacheTime<_0x528e1f)return cachedPolicy;}const _0x303479=await fetchCliVersionPolicy();return cachedPolicy=_0x303479,cacheTime=_0x2f61b2,hasCachedPolicy=!![],_0x303479;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x2227cb,_0x15a275){const _0x212fcd=a264_0x8a54,_0x1dc337=_0x2227cb();while(!![]){try{const _0x2b9961=parseInt(_0x212fcd(0x128))/0x1*(-parseInt(_0x212fcd(0x132))/0x2)+parseInt(_0x212fcd(0x130))/0x3+-parseInt(_0x212fcd(0x120))/0x4+parseInt(_0x212fcd(0x12e))/0x5*(-parseInt(_0x212fcd(0x121))/0x6)+parseInt(_0x212fcd(0x133))/0x7*(-parseInt(_0x212fcd(0x125))/0x8)+parseInt(_0x212fcd(0x136))/0x9+parseInt(_0x212fcd(0x12a))/0xa*(parseInt(_0x212fcd(0x12d))/0xb);if(_0x2b9961===_0x15a275)break;else _0x1dc337['push'](_0x1dc337['shift']());}catch(_0x229102){_0x1dc337['push'](_0x1dc337['shift']());}}}(a264_0xb65e,0x92496));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 a264_0x8a54(_0x540f87,_0x445616){_0x540f87=_0x540f87-0x11e;const _0xb65ed8=a264_0xb65e();let _0x8a54c2=_0xb65ed8[_0x540f87];return _0x8a54c2;}function pickString(_0x43403b){const _0x1305f4=a264_0x8a54;return typeof _0x43403b===_0x1305f4(0x11e)&&_0x43403b[_0x1305f4(0x131)]()[_0x1305f4(0x12f)]>0x0?_0x43403b['trim']():null;}function normalizeCliVersionPolicy(_0x4fca5b){const _0xff00af=a264_0x8a54;if(!_0x4fca5b||typeof _0x4fca5b!==_0xff00af(0x135))return null;const _0x405212=_0x4fca5b,_0x7d23e1=_0x405212[_0xff00af(0x126)]&&typeof _0x405212[_0xff00af(0x126)]==='object'?_0x405212['cli']:_0x405212,_0x53b417=pickString(_0x7d23e1['stableVersion'])||pickString(_0x7d23e1[_0xff00af(0x134)])||pickString(_0x7d23e1[_0xff00af(0x12b)]),_0x1040c1=pickString(_0x7d23e1[_0xff00af(0x12c)])||pickString(_0x7d23e1[_0xff00af(0x129)]);if(!_0x53b417&&!_0x1040c1)return null;return{'stableVersion':_0x53b417,'minimumVersion':_0x1040c1,'upgradeMessage':pickString(_0x7d23e1['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x7d23e1[_0xff00af(0x11f)])||undefined};}export async function fetchCliVersionPolicy(){const _0x199d3e=a264_0x8a54,_0x1e8153=new AbortController(),_0x2383c7=setTimeout(()=>_0x1e8153[_0x199d3e(0x124)](),FETCH_TIMEOUT_MS);try{const _0x3ebb17=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1e8153[_0x199d3e(0x127)]});if(!_0x3ebb17['ok'])return null;const _0x3667dd=await _0x3ebb17[_0x199d3e(0x123)]();return normalizeCliVersionPolicy(_0x3667dd);}catch{return null;}finally{clearTimeout(_0x2383c7);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3af2a6=a264_0x8a54,_0x2f0e9a=Date[_0x3af2a6(0x122)]();if(hasCachedPolicy){const _0x2a3c72=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f0e9a-cacheTime<_0x2a3c72)return cachedPolicy;}const _0x52e527=await fetchCliVersionPolicy();return cachedPolicy=_0x52e527,cacheTime=_0x2f0e9a,hasCachedPolicy=!![],_0x52e527;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a264_0xb65e(){const _0x265845=['75976wxdUdK','cli','signal','813kCEBvb','minVersion','9303130nxiter','recommendedVersion','minimumVersion','11QiwVad','205EWPtHz','length','1518267LyVGYH','trim','66EsgWEp','329MqapHF','latestVersion','object','8633007mhoqJw','string','minimumVersionMessage','2296544JbJhqD','109626SVobzG','now','json','abort'];a264_0xb65e=function(){return _0x265845;};return a264_0xb65e();}
@@ -1 +1 @@
1
- const a265_0x281566=a265_0x4efb;function a265_0x4efb(_0x56131a,_0x46b20e){_0x56131a=_0x56131a-0xab;const _0xbe998d=a265_0xbe99();let _0x4efb72=_0xbe998d[_0x56131a];return _0x4efb72;}(function(_0x773b8c,_0x2a588f){const _0x34f90d=a265_0x4efb,_0x395e4f=_0x773b8c();while(!![]){try{const _0x5c5084=parseInt(_0x34f90d(0xb1))/0x1*(parseInt(_0x34f90d(0xb5))/0x2)+-parseInt(_0x34f90d(0xb0))/0x3+-parseInt(_0x34f90d(0xab))/0x4*(-parseInt(_0x34f90d(0xb8))/0x5)+parseInt(_0x34f90d(0xaf))/0x6*(parseInt(_0x34f90d(0xac))/0x7)+-parseInt(_0x34f90d(0xb6))/0x8*(parseInt(_0x34f90d(0xb3))/0x9)+-parseInt(_0x34f90d(0xad))/0xa*(-parseInt(_0x34f90d(0xb7))/0xb)+parseInt(_0x34f90d(0xae))/0xc*(parseInt(_0x34f90d(0xb4))/0xd);if(_0x5c5084===_0x2a588f)break;else _0x395e4f['push'](_0x395e4f['shift']());}catch(_0x42c470){_0x395e4f['push'](_0x395e4f['shift']());}}}(a265_0xbe99,0xbd734));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a265_0x2d49c3,getMultiAppConfigs as a265_0x17d9d4,getTemplateBaseUrl as a265_0x1dddf9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a265_0xbe99(){const _0x5e3bd6=['1167548hgTagA','175oROgGS','670QoSLOS','5592zCaglM','346254MwrxlH','3566922veJIAa','25mcwhJa','env','9lBxsNp','10114yPyZrk','50188QtmESQ','12152480VKZjYr','124696pfrKIs','5JbGIZj','project'];a265_0xbe99=function(){return _0x5e3bd6;};return a265_0xbe99();}export function readConfig(_0x35006f){const _0x86f39c=a265_0x4efb,_0x527ab4=readRawConfig(_0x35006f);return _0x527ab4[_0x86f39c(0xb2)]&&typeof _0x527ab4[_0x86f39c(0xb2)]==='string'&&initEnv(_0x527ab4[_0x86f39c(0xb2)]),_0x527ab4;}export function getConfigAppCode(){return a265_0x2d49c3();}export function getMultiAppConfigs(_0x4aa51d=a265_0x281566(0xb9)){return a265_0x17d9d4(_0x4aa51d);}export function getTemplateBaseUrl(){return a265_0x1dddf9();}
1
+ const a265_0x6facbc=a265_0x4959;(function(_0x4ce800,_0x5f382a){const _0x498918=a265_0x4959,_0x253f0=_0x4ce800();while(!![]){try{const _0x108f91=parseInt(_0x498918(0xc1))/0x1+parseInt(_0x498918(0xb7))/0x2*(-parseInt(_0x498918(0xb4))/0x3)+parseInt(_0x498918(0xbf))/0x4*(parseInt(_0x498918(0xbb))/0x5)+-parseInt(_0x498918(0xba))/0x6*(parseInt(_0x498918(0xbc))/0x7)+parseInt(_0x498918(0xc0))/0x8+parseInt(_0x498918(0xb6))/0x9*(parseInt(_0x498918(0xb8))/0xa)+parseInt(_0x498918(0xbd))/0xb*(parseInt(_0x498918(0xb9))/0xc);if(_0x108f91===_0x5f382a)break;else _0x253f0['push'](_0x253f0['shift']());}catch(_0x28af5b){_0x253f0['push'](_0x253f0['shift']());}}}(a265_0x2d05,0xa7b85));import{initEnv}from'../constant/env.js';function a265_0x2d05(){const _0x2a56b2=['60RochGg','6468AENuDn','376140TifAub','5sTfRAZ','119Mjbkxc','209zghvhn','env','4405636vcwvyD','603208aCDPMU','555219AecScO','3fBVBHc','project','891972kLggcp','1168414sYWHaV'];a265_0x2d05=function(){return _0x2a56b2;};return a265_0x2d05();}import{readRawConfig,getConfigAppCode as a265_0x2f979c,getMultiAppConfigs as a265_0x476226,getTemplateBaseUrl as a265_0x55019b}from'../context.js';function a265_0x4959(_0x5e0c39,_0x2d7f3f){_0x5e0c39=_0x5e0c39-0xb4;const _0x2d05ec=a265_0x2d05();let _0x49596b=_0x2d05ec[_0x5e0c39];return _0x49596b;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xc60f82){const _0x58b570=a265_0x4959,_0x3bce06=readRawConfig(_0xc60f82);return _0x3bce06[_0x58b570(0xbe)]&&typeof _0x3bce06[_0x58b570(0xbe)]==='string'&&initEnv(_0x3bce06[_0x58b570(0xbe)]),_0x3bce06;}export function getConfigAppCode(){return a265_0x2f979c();}export function getMultiAppConfigs(_0x219d86=a265_0x6facbc(0xb5)){return a265_0x476226(_0x219d86);}export function getTemplateBaseUrl(){return a265_0x55019b();}
@@ -1 +1 @@
1
- function a266_0xccb3(_0x452cbc,_0x54c76b){_0x452cbc=_0x452cbc-0x1c5;const _0x274163=a266_0x2741();let _0xccb3d4=_0x274163[_0x452cbc];return _0xccb3d4;}function a266_0x2741(){const _0x136e4f=['error','isDirectory','readdirSync','8abJHqO','copyFileSync','1130166PhWWnv','669490yCQAFX','66uzlVIv','50501649SKNzXJ','232826uyFxuj','name','2180968YuBLow','895500SOPnvR','1296634SWDoEV','join','100SUVsax','21tXrPWl'];a266_0x2741=function(){return _0x136e4f;};return a266_0x2741();}(function(_0x12b85d,_0x4bb09a){const _0x4a641f=a266_0xccb3,_0x163edd=_0x12b85d();while(!![]){try{const _0x428958=-parseInt(_0x4a641f(0x1cb))/0x1+parseInt(_0x4a641f(0x1cf))/0x2+parseInt(_0x4a641f(0x1c7))/0x3*(-parseInt(_0x4a641f(0x1c5))/0x4)+-parseInt(_0x4a641f(0x1c8))/0x5*(parseInt(_0x4a641f(0x1c9))/0x6)+parseInt(_0x4a641f(0x1d2))/0x7*(-parseInt(_0x4a641f(0x1cd))/0x8)+-parseInt(_0x4a641f(0x1ce))/0x9*(parseInt(_0x4a641f(0x1d1))/0xa)+parseInt(_0x4a641f(0x1ca))/0xb;if(_0x428958===_0x4bb09a)break;else _0x163edd['push'](_0x163edd['shift']());}catch(_0x16a628){_0x163edd['push'](_0x163edd['shift']());}}}(a266_0x2741,0xec2c5));import a266_0x1a9091 from'node:path';import a266_0x35c6fb from'node:fs';export async function copyDirectory(_0x254716,_0x3bea9e){const _0x5dd130=a266_0xccb3;try{const _0x5dd1b6=a266_0x35c6fb[_0x5dd130(0x1d5)](_0x254716,{'withFileTypes':!![]});a266_0x35c6fb['mkdirSync'](_0x3bea9e,{'recursive':!![]});for(const _0x39f7b8 of _0x5dd1b6){const _0x366eaa=a266_0x1a9091[_0x5dd130(0x1d0)](_0x254716,_0x39f7b8['name']),_0x10ceb3=a266_0x1a9091[_0x5dd130(0x1d0)](_0x3bea9e,_0x39f7b8[_0x5dd130(0x1cc)]);_0x39f7b8[_0x5dd130(0x1d4)]()?await copyDirectory(_0x366eaa,_0x10ceb3):a266_0x35c6fb[_0x5dd130(0x1c6)](_0x366eaa,_0x10ceb3);}}catch(_0x21afe6){console[_0x5dd130(0x1d3)]('复制目录时出错:',_0x21afe6);}}
1
+ (function(_0x34a0e5,_0x13f977){const _0x23c49c=a266_0x59d2,_0x246841=_0x34a0e5();while(!![]){try{const _0x4dfa7c=parseInt(_0x23c49c(0x1d6))/0x1*(parseInt(_0x23c49c(0x1d9))/0x2)+-parseInt(_0x23c49c(0x1d5))/0x3*(-parseInt(_0x23c49c(0x1e1))/0x4)+parseInt(_0x23c49c(0x1cf))/0x5*(parseInt(_0x23c49c(0x1d1))/0x6)+-parseInt(_0x23c49c(0x1d0))/0x7*(parseInt(_0x23c49c(0x1e0))/0x8)+-parseInt(_0x23c49c(0x1dc))/0x9+-parseInt(_0x23c49c(0x1de))/0xa*(parseInt(_0x23c49c(0x1d4))/0xb)+parseInt(_0x23c49c(0x1d3))/0xc;if(_0x4dfa7c===_0x13f977)break;else _0x246841['push'](_0x246841['shift']());}catch(_0x1a992e){_0x246841['push'](_0x246841['shift']());}}}(a266_0x3d2a,0xbed65));import a266_0x24b4ca from'node:path';function a266_0x59d2(_0x2536fe,_0x11f40f){_0x2536fe=_0x2536fe-0x1ce;const _0x3d2a65=a266_0x3d2a();let _0x59d2a8=_0x3d2a65[_0x2536fe];return _0x59d2a8;}import a266_0x50c490 from'node:fs';function a266_0x3d2a(){const _0x3ca96d=['mkdirSync','4BdUvJb','isDirectory','name','4294116rLXBaH','readdirSync','2570hEsbEZ','error','8sUNWha','77816AHEjcL','join','5iQhPiK','1256962BVsrzS','4805490oEGWDS','复制目录时出错:','3699900ewHIMl','45199ghpYxY','96XRVMOa','381302tPibEu','copyFileSync'];a266_0x3d2a=function(){return _0x3ca96d;};return a266_0x3d2a();}export async function copyDirectory(_0x51921a,_0x407593){const _0x910dc1=a266_0x59d2;try{const _0x98d195=a266_0x50c490[_0x910dc1(0x1dd)](_0x51921a,{'withFileTypes':!![]});a266_0x50c490[_0x910dc1(0x1d8)](_0x407593,{'recursive':!![]});for(const _0x3c91b9 of _0x98d195){const _0x2001cc=a266_0x24b4ca['join'](_0x51921a,_0x3c91b9[_0x910dc1(0x1db)]),_0x502115=a266_0x24b4ca[_0x910dc1(0x1ce)](_0x407593,_0x3c91b9['name']);_0x3c91b9[_0x910dc1(0x1da)]()?await copyDirectory(_0x2001cc,_0x502115):a266_0x50c490[_0x910dc1(0x1d7)](_0x2001cc,_0x502115);}}catch(_0x2e62fb){console[_0x910dc1(0x1df)](_0x910dc1(0x1d2),_0x2e62fb);}}
@@ -1 +1 @@
1
- function a267_0x4556(_0x4b7fa1,_0x7d5bb4){_0x4b7fa1=_0x4b7fa1-0xee;const _0x4b5608=a267_0x4b56();let _0x455636=_0x4b5608[_0x4b7fa1];return _0x455636;}(function(_0x5ea89d,_0x306d4b){const _0xcf1e36=a267_0x4556,_0x16842a=_0x5ea89d();while(!![]){try{const _0x2514af=-parseInt(_0xcf1e36(0xf1))/0x1+-parseInt(_0xcf1e36(0xf7))/0x2+parseInt(_0xcf1e36(0xf6))/0x3+parseInt(_0xcf1e36(0xf2))/0x4*(-parseInt(_0xcf1e36(0xef))/0x5)+parseInt(_0xcf1e36(0xf3))/0x6+-parseInt(_0xcf1e36(0xee))/0x7*(parseInt(_0xcf1e36(0xf0))/0x8)+parseInt(_0xcf1e36(0xf4))/0x9;if(_0x2514af===_0x306d4b)break;else _0x16842a['push'](_0x16842a['shift']());}catch(_0x45863d){_0x16842a['push'](_0x16842a['shift']());}}}(a267_0x4b56,0xa3f6a));function toFiniteNumber(_0x200b2e){const _0x1a62bc=a267_0x4556;if(typeof _0x200b2e===_0x1a62bc(0xf5)&&Number[_0x1a62bc(0xfa)](_0x200b2e))return _0x200b2e;if(typeof _0x200b2e===_0x1a62bc(0xf8)){const _0x41a78a=_0x200b2e[_0x1a62bc(0xf9)]();if(!_0x41a78a)return undefined;const _0xf6dbe1=Number(_0x41a78a);if(Number['isFinite'](_0xf6dbe1))return _0xf6dbe1;}return undefined;}export function normalizeEntityWithIdResponse(_0x4aabe4){const _0x42c01c=toFiniteNumber(_0x4aabe4);if(_0x42c01c!==undefined)return{'id':_0x42c01c,'entity':{'id':_0x42c01c}};if(!_0x4aabe4||typeof _0x4aabe4!=='object')return{'id':undefined,'entity':{}};const _0x1229d6={..._0x4aabe4},_0x3a807c=toFiniteNumber(_0x1229d6['id']);return _0x3a807c!==undefined&&(_0x1229d6['id']=_0x3a807c),{'id':_0x3a807c,'entity':_0x1229d6};}function a267_0x4b56(){const _0x28410e=['1255883vOvrcb','16WYZaiV','5157966yPfLNj','1769814NxKjIb','number','3991086LXYDCa','448356Mglfmi','string','trim','isFinite','24710HOxAiQ','218755nGkevk','136DEWysP'];a267_0x4b56=function(){return _0x28410e;};return a267_0x4b56();}
1
+ (function(_0x20ef05,_0x5f1d96){const _0x1b9685=a267_0xb213,_0x53cbbe=_0x20ef05();while(!![]){try{const _0x5b2897=-parseInt(_0x1b9685(0x13e))/0x1*(parseInt(_0x1b9685(0x141))/0x2)+-parseInt(_0x1b9685(0x13a))/0x3+-parseInt(_0x1b9685(0x139))/0x4*(-parseInt(_0x1b9685(0x138))/0x5)+parseInt(_0x1b9685(0x13b))/0x6+parseInt(_0x1b9685(0x143))/0x7*(-parseInt(_0x1b9685(0x140))/0x8)+-parseInt(_0x1b9685(0x13c))/0x9+parseInt(_0x1b9685(0x144))/0xa;if(_0x5b2897===_0x5f1d96)break;else _0x53cbbe['push'](_0x53cbbe['shift']());}catch(_0x41399e){_0x53cbbe['push'](_0x53cbbe['shift']());}}}(a267_0x2601,0x4ec44));function toFiniteNumber(_0xc9f3d1){const _0x2d69f3=a267_0xb213;if(typeof _0xc9f3d1==='number'&&Number[_0x2d69f3(0x142)](_0xc9f3d1))return _0xc9f3d1;if(typeof _0xc9f3d1===_0x2d69f3(0x137)){const _0x44ceb3=_0xc9f3d1[_0x2d69f3(0x13d)]();if(!_0x44ceb3)return undefined;const _0x3c9eea=Number(_0x44ceb3);if(Number[_0x2d69f3(0x142)](_0x3c9eea))return _0x3c9eea;}return undefined;}function a267_0x2601(){const _0x3a4fb5=['931278VSNUcm','1804614Odawqz','3575493nLwOub','trim','2GRaJoK','object','260312SekLwW','126352KRYczA','isFinite','14cCAUfF','6626460XXyxZq','string','1291730hKlfNc','4WogprH'];a267_0x2601=function(){return _0x3a4fb5;};return a267_0x2601();}function a267_0xb213(_0x3b0e7f,_0xaeb220){_0x3b0e7f=_0x3b0e7f-0x137;const _0x2601e4=a267_0x2601();let _0xb2135c=_0x2601e4[_0x3b0e7f];return _0xb2135c;}export function normalizeEntityWithIdResponse(_0x310a3c){const _0x37b930=a267_0xb213,_0x1d12ac=toFiniteNumber(_0x310a3c);if(_0x1d12ac!==undefined)return{'id':_0x1d12ac,'entity':{'id':_0x1d12ac}};if(!_0x310a3c||typeof _0x310a3c!==_0x37b930(0x13f))return{'id':undefined,'entity':{}};const _0x51bb17={..._0x310a3c},_0x50af55=toFiniteNumber(_0x51bb17['id']);return _0x50af55!==undefined&&(_0x51bb17['id']=_0x50af55),{'id':_0x50af55,'entity':_0x51bb17};}
@@ -1 +1 @@
1
- function a268_0x2543(_0x38e955,_0x439b74){_0x38e955=_0x38e955-0x10b;const _0x51edb6=a268_0x51ed();let _0x2543f2=_0x51edb6[_0x38e955];return _0x2543f2;}(function(_0x372fb5,_0x393b03){const _0x4e0639=a268_0x2543,_0x1b3818=_0x372fb5();while(!![]){try{const _0x499c39=parseInt(_0x4e0639(0x10f))/0x1*(-parseInt(_0x4e0639(0x10e))/0x2)+-parseInt(_0x4e0639(0x114))/0x3*(-parseInt(_0x4e0639(0x112))/0x4)+-parseInt(_0x4e0639(0x111))/0x5+parseInt(_0x4e0639(0x115))/0x6*(parseInt(_0x4e0639(0x116))/0x7)+parseInt(_0x4e0639(0x10b))/0x8+parseInt(_0x4e0639(0x10d))/0x9*(-parseInt(_0x4e0639(0x10c))/0xa)+parseInt(_0x4e0639(0x110))/0xb;if(_0x499c39===_0x393b03)break;else _0x1b3818['push'](_0x1b3818['shift']());}catch(_0x4ca2b3){_0x1b3818['push'](_0x1b3818['shift']());}}}(a268_0x51ed,0x5c448));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x520ef5,_0x54f8d5){const _0x2bab32=a268_0x2543,_0x2bb586=statSync(_0x520ef5);if(_0x2bb586[_0x2bab32(0x113)]()){!existsSync(_0x54f8d5)&&mkdirSync(_0x54f8d5,{'recursive':!![]});const _0x2fd1a2=readdirSync(_0x520ef5);for(const _0x1645a8 of _0x2fd1a2){await copyDir(join(_0x520ef5,_0x1645a8),join(_0x54f8d5,_0x1645a8));}}else copyFileSync(_0x520ef5,_0x54f8d5);}export function ensureDir(_0x19c1ca){!existsSync(_0x19c1ca)&&mkdirSync(_0x19c1ca,{'recursive':!![]});}export function pathExists(_0x2efaa0){return existsSync(_0x2efaa0);}function a268_0x51ed(){const _0x839faf=['104BWFuaC','isDirectory','1380MaTpXH','3108zsfDck','4298uRqmAO','3075176EBDqhB','3020TQkgTZ','21492efWJRy','397060ppqtid','2qIBquO','15382092gvzcfV','3083085mqsOGE'];a268_0x51ed=function(){return _0x839faf;};return a268_0x51ed();}
1
+ function a268_0x2ca2(_0x100597,_0x11027e){_0x100597=_0x100597-0x1cf;const _0x53fe35=a268_0x53fe();let _0x2ca287=_0x53fe35[_0x100597];return _0x2ca287;}(function(_0x33510b,_0x26fb8a){const _0x4b66d1=a268_0x2ca2,_0x17fa57=_0x33510b();while(!![]){try{const _0x3b5278=parseInt(_0x4b66d1(0x1d4))/0x1*(-parseInt(_0x4b66d1(0x1db))/0x2)+parseInt(_0x4b66d1(0x1d6))/0x3*(parseInt(_0x4b66d1(0x1da))/0x4)+-parseInt(_0x4b66d1(0x1d3))/0x5+-parseInt(_0x4b66d1(0x1d1))/0x6*(parseInt(_0x4b66d1(0x1d0))/0x7)+parseInt(_0x4b66d1(0x1d5))/0x8*(-parseInt(_0x4b66d1(0x1d9))/0x9)+parseInt(_0x4b66d1(0x1d2))/0xa*(-parseInt(_0x4b66d1(0x1d8))/0xb)+parseInt(_0x4b66d1(0x1d7))/0xc;if(_0x3b5278===_0x26fb8a)break;else _0x17fa57['push'](_0x17fa57['shift']());}catch(_0x4b6dff){_0x17fa57['push'](_0x17fa57['shift']());}}}(a268_0x53fe,0x954c7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2ac5bc,_0x3b00a4){const _0x5d894d=a268_0x2ca2,_0x21c54c=statSync(_0x2ac5bc);if(_0x21c54c[_0x5d894d(0x1cf)]()){!existsSync(_0x3b00a4)&&mkdirSync(_0x3b00a4,{'recursive':!![]});const _0x1fa5d4=readdirSync(_0x2ac5bc);for(const _0x1f1206 of _0x1fa5d4){await copyDir(join(_0x2ac5bc,_0x1f1206),join(_0x3b00a4,_0x1f1206));}}else copyFileSync(_0x2ac5bc,_0x3b00a4);}export function ensureDir(_0x384e19){!existsSync(_0x384e19)&&mkdirSync(_0x384e19,{'recursive':!![]});}export function pathExists(_0x45ebf5){return existsSync(_0x45ebf5);}function a268_0x53fe(){const _0x2f6dbf=['233KPKtwG','1704GhIACf','2622ATbTBT','9450900xtZxSS','110tKONIF','3708bbmjIV','4028YWZLLA','1076njufxl','isDirectory','626878Rwrihe','6ccykBt','8810pGmVam','3723460SbTdyY'];a268_0x53fe=function(){return _0x2f6dbf;};return a268_0x53fe();}
@@ -1 +1 @@
1
- const a269_0x534f7f=a269_0x2168;(function(_0x5c3c2b,_0x6e07a0){const _0x3a9cba=a269_0x2168,_0x3c7be1=_0x5c3c2b();while(!![]){try{const _0x4f7b81=parseInt(_0x3a9cba(0x1cd))/0x1+-parseInt(_0x3a9cba(0x1c3))/0x2+-parseInt(_0x3a9cba(0x1c5))/0x3*(-parseInt(_0x3a9cba(0x1ce))/0x4)+parseInt(_0x3a9cba(0x1c0))/0x5*(-parseInt(_0x3a9cba(0x1c9))/0x6)+-parseInt(_0x3a9cba(0x1e2))/0x7+parseInt(_0x3a9cba(0x1d9))/0x8*(-parseInt(_0x3a9cba(0x1e0))/0x9)+parseInt(_0x3a9cba(0x1d7))/0xa;if(_0x4f7b81===_0x6e07a0)break;else _0x3c7be1['push'](_0x3c7be1['shift']());}catch(_0x5d7106){_0x3c7be1['push'](_0x3c7be1['shift']());}}}(a269_0x2cc1,0x31155));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5d6674=getTemplateBaseUrl();return _0x5d6674+'/skills/guides.json';}function a269_0x2168(_0x2da06d,_0x6c366b){_0x2da06d=_0x2da06d-0x1bf;const _0x2cc196=a269_0x2cc1();let _0x2168a6=_0x2cc196[_0x2da06d];return _0x2168a6;}const CACHE_DIR=join(homedir(),a269_0x534f7f(0x1de),a269_0x534f7f(0x1cf));export async function fetchGuidesFromCDN(){const _0x4e7e90=a269_0x534f7f,_0x4758f0=getGuidesCdnUrl(),_0xfe8607=await fetch(_0x4758f0,{'headers':{'Accept':_0x4e7e90(0x1e1)}});if(!_0xfe8607['ok'])throw new Error(_0x4e7e90(0x1dc)+_0xfe8607[_0x4e7e90(0x1c6)]+'\x20'+_0xfe8607[_0x4e7e90(0x1d3)]);const _0x487237=await _0xfe8607['json']();if(!_0x487237[_0x4e7e90(0x1da)]||typeof _0x487237[_0x4e7e90(0x1da)]!==_0x4e7e90(0x1c1))throw new Error(_0x4e7e90(0x1db));return _0x487237;}export function writeGuidesToProject(_0x8afd22,_0x34edcf,_0x410eb4='.lovrabet/skill/guides',_0x57a2f7){const _0x25f322=a269_0x534f7f,_0x4a21e9=join(_0x34edcf,_0x410eb4);mkdirSync(_0x4a21e9,{'recursive':!![]});for(const [_0x398b10,_0xd1ef08]of Object['entries'](_0x8afd22[_0x25f322(0x1da)])){let _0x5c1d79=_0xd1ef08[_0x25f322(0x1d8)];_0xd1ef08[_0x25f322(0x1d0)]&&(_0x5c1d79=appendUpdateTime(_0x5c1d79,_0xd1ef08[_0x25f322(0x1d0)])),writeFileSync(join(_0x4a21e9,_0x398b10+_0x25f322(0x1ca)),_0x5c1d79,_0x25f322(0x1d1));}}export function appendUpdateTime(_0x216110,_0x1b6ad6){const _0x53b1dc=a269_0x534f7f;return _0x216110=_0x216110[_0x53b1dc(0x1c8)](/\n*>更新时间:.*$/m,''),_0x216110[_0x53b1dc(0x1c2)]()+(_0x53b1dc(0x1d6)+_0x1b6ad6);}function a269_0x2cc1(){const _0x3fc1c5=['length','468246FncPBF','status','map','replace','1259166YnCHes','.md','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','386553FFqjUh','4QqeyOO','cache','lastUpdated','utf-8','push','statusText','title','keys','\x0a\x0a>更新时间:','6092900wzyCWk','content','12984lvXzEq','guides','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','extendContent','.lovrabet','entries','477ZciiWN','application/json','2476425PYPXeQ','join','5xkDJag','object','trimEnd','602450cNFVeV'];a269_0x2cc1=function(){return _0x3fc1c5;};return a269_0x2cc1();}export function getSkillTemplate(_0x368f1d){const _0x460f4e=a269_0x534f7f;return _0x368f1d[_0x460f4e(0x1cb)]?.[_0x460f4e(0x1d8)]||'';}export function appendExtendContents(_0x34e05d,_0x2512b3,_0x512019){const _0x1c11fb=a269_0x534f7f,_0x184f71=[];for(const [,_0x2dfe78]of Object[_0x1c11fb(0x1df)](_0x2512b3[_0x1c11fb(0x1da)])){_0x2dfe78[_0x1c11fb(0x1dd)]&&_0x184f71[_0x1c11fb(0x1d2)](_0x2dfe78['extendContent'][_0x1c11fb(0x1c2)]());}if(_0x184f71['length']===0x0)return _0x34e05d;return _0x34e05d[_0x1c11fb(0x1c2)]()+'\x0a\x0a'+_0x184f71[_0x1c11fb(0x1bf)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x385da2,_0x4c68fa,_0xa95871){const _0x8c8bec=a269_0x534f7f,_0x425419=getSkillTemplate(_0x385da2);if(!_0x425419)throw new Error(_0x8c8bec(0x1cc));const _0x338d87=dirname(_0x4c68fa);mkdirSync(_0x338d87,{'recursive':!![]});let _0x5e8b2d=_0x425419[_0x8c8bec(0x1c8)](/\{\{IDE_NAME\}\}/g,_0xa95871);_0x5e8b2d=appendExtendContents(_0x5e8b2d,_0x385da2),_0x385da2[_0x8c8bec(0x1cb)][_0x8c8bec(0x1d0)]&&(_0x5e8b2d=appendUpdateTime(_0x5e8b2d,_0x385da2[_0x8c8bec(0x1cb)][_0x8c8bec(0x1d0)])),writeFileSync(_0x4c68fa,_0x5e8b2d,_0x8c8bec(0x1d1));}export async function installGuides(_0xbb62bc){const _0x5ed474=a269_0x534f7f,_0x58c434=await fetchGuidesFromCDN();return writeGuidesToProject(_0x58c434,_0xbb62bc),Object[_0x5ed474(0x1d5)](_0x58c434[_0x5ed474(0x1da)])[_0x5ed474(0x1c4)];}export function getGuidesSummary(_0x9f62b1){const _0x5acfc3=a269_0x534f7f;return Object[_0x5acfc3(0x1df)](_0x9f62b1[_0x5acfc3(0x1da)])[_0x5acfc3(0x1c7)](([_0x14768d,_0x22e8a6])=>({'key':_0x14768d,'title':_0x22e8a6[_0x5acfc3(0x1d4)],'path':_0x22e8a6['path']}));}
1
+ const a269_0x35c502=a269_0xeaaa;(function(_0x4fd623,_0x101b60){const _0x16c4f9=a269_0xeaaa,_0x4b4a68=_0x4fd623();while(!![]){try{const _0x1bf118=-parseInt(_0x16c4f9(0xf1))/0x1*(parseInt(_0x16c4f9(0xf3))/0x2)+parseInt(_0x16c4f9(0xf6))/0x3+parseInt(_0x16c4f9(0xeb))/0x4*(parseInt(_0x16c4f9(0xe2))/0x5)+-parseInt(_0x16c4f9(0xea))/0x6*(-parseInt(_0x16c4f9(0xe3))/0x7)+-parseInt(_0x16c4f9(0xe1))/0x8+parseInt(_0x16c4f9(0xf7))/0x9+parseInt(_0x16c4f9(0xf4))/0xa*(parseInt(_0x16c4f9(0xe0))/0xb);if(_0x1bf118===_0x101b60)break;else _0x4b4a68['push'](_0x4b4a68['shift']());}catch(_0x34d2ac){_0x4b4a68['push'](_0x4b4a68['shift']());}}}(a269_0xccf9,0xdd699));import{mkdirSync,writeFileSync}from'node:fs';function a269_0xccf9(){const _0x2cf5f9=['8wYHbXs','object','join','extendContent','status','application/json','235mmyIcZ','CDN\x20请求失败:\x20','9658WsAhUW','270ejoqeM','guides','35199QGKRuX','192303DmYxvO','.lovrabet/skill/guides','replace','content','length','\x0a\x0a>更新时间:','json','path','trimEnd','utf-8','CDN\x20数据中缺少\x20skillTemplate','.md','entries','297924pAEphf','5622320RKTetz','2342105wqxzls','1825775AWoVAO','push','skillTemplate','lastUpdated','map','title','cache','24myKCwP'];a269_0xccf9=function(){return _0x2cf5f9;};return a269_0xccf9();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x25a113=getTemplateBaseUrl();return _0x25a113+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a269_0x35c502(0xe9));function a269_0xeaaa(_0x38fa8c,_0xb9077a){_0x38fa8c=_0x38fa8c-0xd7;const _0xccf944=a269_0xccf9();let _0xeaaa77=_0xccf944[_0x38fa8c];return _0xeaaa77;}export async function fetchGuidesFromCDN(){const _0x1110a0=a269_0x35c502,_0x33af94=getGuidesCdnUrl(),_0x117ee7=await fetch(_0x33af94,{'headers':{'Accept':_0x1110a0(0xf0)}});if(!_0x117ee7['ok'])throw new Error(_0x1110a0(0xf2)+_0x117ee7[_0x1110a0(0xef)]+'\x20'+_0x117ee7['statusText']);const _0xe65a5d=await _0x117ee7[_0x1110a0(0xd9)]();if(!_0xe65a5d['guides']||typeof _0xe65a5d[_0x1110a0(0xf5)]!==_0x1110a0(0xec))throw new Error('CDN\x20返回数据格式错误');return _0xe65a5d;}export function writeGuidesToProject(_0x588f23,_0x495507,_0x124380=a269_0x35c502(0xf8),_0x2bb853){const _0x10fb6c=a269_0x35c502,_0x1c00f1=join(_0x495507,_0x124380);mkdirSync(_0x1c00f1,{'recursive':!![]});for(const [_0x2ce33b,_0x3cc48c]of Object[_0x10fb6c(0xdf)](_0x588f23[_0x10fb6c(0xf5)])){let _0x5a8f57=_0x3cc48c[_0x10fb6c(0xfa)];_0x3cc48c[_0x10fb6c(0xe6)]&&(_0x5a8f57=appendUpdateTime(_0x5a8f57,_0x3cc48c[_0x10fb6c(0xe6)])),writeFileSync(join(_0x1c00f1,_0x2ce33b+_0x10fb6c(0xde)),_0x5a8f57,_0x10fb6c(0xdc));}}export function appendUpdateTime(_0xa18cac,_0x48c473){const _0x27885f=a269_0x35c502;return _0xa18cac=_0xa18cac['replace'](/\n*>更新时间:.*$/m,''),_0xa18cac[_0x27885f(0xdb)]()+(_0x27885f(0xd8)+_0x48c473);}export function getSkillTemplate(_0x45d530){const _0x1ed907=a269_0x35c502;return _0x45d530[_0x1ed907(0xe5)]?.[_0x1ed907(0xfa)]||'';}export function appendExtendContents(_0x2a4ad1,_0x38c80e,_0x50a838){const _0x9ae907=a269_0x35c502,_0x3a2388=[];for(const [,_0x3b2ec6]of Object['entries'](_0x38c80e['guides'])){_0x3b2ec6[_0x9ae907(0xee)]&&_0x3a2388[_0x9ae907(0xe4)](_0x3b2ec6['extendContent'][_0x9ae907(0xdb)]());}if(_0x3a2388[_0x9ae907(0xd7)]===0x0)return _0x2a4ad1;return _0x2a4ad1[_0x9ae907(0xdb)]()+'\x0a\x0a'+_0x3a2388[_0x9ae907(0xed)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5a93d3,_0x12f2f4,_0x218390){const _0x27d2a9=a269_0x35c502,_0x31e9fa=getSkillTemplate(_0x5a93d3);if(!_0x31e9fa)throw new Error(_0x27d2a9(0xdd));const _0x17d1e9=dirname(_0x12f2f4);mkdirSync(_0x17d1e9,{'recursive':!![]});let _0x10006f=_0x31e9fa[_0x27d2a9(0xf9)](/\{\{IDE_NAME\}\}/g,_0x218390);_0x10006f=appendExtendContents(_0x10006f,_0x5a93d3),_0x5a93d3[_0x27d2a9(0xe5)]['lastUpdated']&&(_0x10006f=appendUpdateTime(_0x10006f,_0x5a93d3[_0x27d2a9(0xe5)][_0x27d2a9(0xe6)])),writeFileSync(_0x12f2f4,_0x10006f,_0x27d2a9(0xdc));}export async function installGuides(_0x5c8ecf){const _0x56cf37=a269_0x35c502,_0x37a650=await fetchGuidesFromCDN();return writeGuidesToProject(_0x37a650,_0x5c8ecf),Object['keys'](_0x37a650[_0x56cf37(0xf5)])[_0x56cf37(0xd7)];}export function getGuidesSummary(_0x3f4681){const _0x2cc5e7=a269_0x35c502;return Object[_0x2cc5e7(0xdf)](_0x3f4681[_0x2cc5e7(0xf5)])[_0x2cc5e7(0xe7)](([_0x8fb187,_0x23b41c])=>({'key':_0x8fb187,'title':_0x23b41c[_0x2cc5e7(0xe8)],'path':_0x23b41c[_0x2cc5e7(0xda)]}));}
@@ -1 +1 @@
1
- function a270_0x3882(_0x186d21,_0x4664e8){_0x186d21=_0x186d21-0x18f;const _0x1465e9=a270_0x1465();let _0x3882e3=_0x1465e9[_0x186d21];return _0x3882e3;}(function(_0x4ef4c8,_0x15fb52){const _0x39e73c=a270_0x3882,_0x4ecaee=_0x4ef4c8();while(!![]){try{const _0x5b6085=-parseInt(_0x39e73c(0x19d))/0x1+parseInt(_0x39e73c(0x1a1))/0x2*(parseInt(_0x39e73c(0x1ad))/0x3)+parseInt(_0x39e73c(0x1a7))/0x4*(-parseInt(_0x39e73c(0x1a9))/0x5)+parseInt(_0x39e73c(0x195))/0x6+parseInt(_0x39e73c(0x1a5))/0x7+-parseInt(_0x39e73c(0x1aa))/0x8*(-parseInt(_0x39e73c(0x1a3))/0x9)+parseInt(_0x39e73c(0x1ac))/0xa*(-parseInt(_0x39e73c(0x1a6))/0xb);if(_0x5b6085===_0x15fb52)break;else _0x4ecaee['push'](_0x4ecaee['shift']());}catch(_0x4bbc69){_0x4ecaee['push'](_0x4ecaee['shift']());}}}(a270_0x1465,0xae4e3));function a270_0x1465(){const _0x4c1e13=['headers','35686GYkLTZ','includes','99qTesNK','text','5621742ueGdER','77JsHmLM','765956DuYyGn','log','15hUWnin','437432YQABQV','*\x20请求失败,','1149570hFwhrN','204pIsewC','TypeError','ECONNRESET','ms\x20后进行第\x20','\x20次重试...','message','Request\x20failed','get','789534iaZbiQ','ENOTFOUND','AbortError','json','name','abort','statusText','url','656367hAzJhM','content-type','status'];a270_0x1465=function(){return _0x4c1e13;};return a270_0x1465();}export async function httpRequest(_0x5e182c,_0x534f6f={}){const _0xbe7639=a270_0x3882,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x534f6f;let _0x4f3796=null;for(let _0x2c0698=0x0;_0x2c0698<=retries;_0x2c0698++){try{const _0x3d4cee=new AbortController(),_0x38f259=setTimeout(()=>_0x3d4cee[_0xbe7639(0x19a)](),timeout),_0x190516=await fetch(_0x5e182c,{'headers':headers,'signal':_0x3d4cee['signal']});clearTimeout(_0x38f259);let _0x14813e;const _0x259b10=_0x190516[_0xbe7639(0x1a0)][_0xbe7639(0x194)](_0xbe7639(0x19e));return _0x259b10?.[_0xbe7639(0x1a2)]('application/json')?_0x14813e=await _0x190516[_0xbe7639(0x198)]():_0x14813e=await _0x190516[_0xbe7639(0x1a4)](),{'ok':_0x190516['ok'],'status':_0x190516[_0xbe7639(0x19f)],'statusText':_0x190516[_0xbe7639(0x19b)],'data':_0x14813e,'headers':_0x190516['headers'],'url':_0x190516[_0xbe7639(0x19c)],'text':()=>_0x190516[_0xbe7639(0x1a4)]()};}catch(_0x493ada){_0x4f3796=_0x493ada instanceof Error?_0x493ada:new Error(String(_0x493ada));if(_0x2c0698===retries)break;if(shouldRetry(_0x493ada)){console[_0xbe7639(0x1a8)](_0xbe7639(0x1ab)+retryDelay+_0xbe7639(0x190)+(_0x2c0698+0x1)+_0xbe7639(0x191)),await sleep(retryDelay);continue;}else break;}}throw _0x4f3796||new Error(_0xbe7639(0x193));}function shouldRetry(_0x136148){const _0x5b8435=a270_0x3882;if(_0x136148 instanceof Error){if(_0x136148[_0x5b8435(0x199)]===_0x5b8435(0x197))return![];if(_0x136148[_0x5b8435(0x199)]===_0x5b8435(0x1ae)&&_0x136148[_0x5b8435(0x192)]['includes']('fetch'))return!![];if(_0x136148['message'][_0x5b8435(0x1a2)](_0x5b8435(0x18f)))return!![];if(_0x136148[_0x5b8435(0x192)][_0x5b8435(0x1a2)](_0x5b8435(0x196)))return![];}return![];}function sleep(_0x40d1cb){return new Promise(_0x36c74c=>setTimeout(_0x36c74c,_0x40d1cb));}export function validateUrl(_0x1f2f4d){try{return new URL(_0x1f2f4d),!![];}catch{return![];}}
1
+ (function(_0x353c68,_0x4a5cd6){const _0x579df3=a270_0x30a7,_0x257e9f=_0x353c68();while(!![]){try{const _0x1c13ae=-parseInt(_0x579df3(0x136))/0x1+-parseInt(_0x579df3(0x12c))/0x2+parseInt(_0x579df3(0x12e))/0x3+-parseInt(_0x579df3(0x12d))/0x4*(-parseInt(_0x579df3(0x147))/0x5)+parseInt(_0x579df3(0x12f))/0x6*(-parseInt(_0x579df3(0x139))/0x7)+parseInt(_0x579df3(0x12a))/0x8+parseInt(_0x579df3(0x137))/0x9;if(_0x1c13ae===_0x4a5cd6)break;else _0x257e9f['push'](_0x257e9f['shift']());}catch(_0x4618b8){_0x257e9f['push'](_0x257e9f['shift']());}}}(a270_0x5466,0xabcdc));function a270_0x30a7(_0x25907d,_0x2d1e4e){_0x25907d=_0x25907d-0x12a;const _0x5466d7=a270_0x5466();let _0x30a7ba=_0x5466d7[_0x25907d];return _0x30a7ba;}function a270_0x5466(){const _0x327fd6=['headers','text','1296035QeNmOa','5092168ncabDo','ENOTFOUND','2076940eGlTNx','4LaNSkL','66264ujKBjD','5549922GZSUpb','json','message','Request\x20failed','includes','log','name','884434wOzzKA','23704047hUAOIx','ECONNRESET','7EbcWWR','TypeError','fetch','url','AbortError','abort','signal','ms\x20后进行第\x20','status','content-type','statusText','\x20次重试...'];a270_0x5466=function(){return _0x327fd6;};return a270_0x5466();}export async function httpRequest(_0x56a424,_0x791206={}){const _0x4f7979=a270_0x30a7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x791206;let _0x172e94=null;for(let _0xa69002=0x0;_0xa69002<=retries;_0xa69002++){try{const _0x3ced45=new AbortController(),_0x487bec=setTimeout(()=>_0x3ced45[_0x4f7979(0x13e)](),timeout),_0x56456a=await fetch(_0x56a424,{'headers':headers,'signal':_0x3ced45[_0x4f7979(0x13f)]});clearTimeout(_0x487bec);let _0x43c2b6;const _0x32c0d6=_0x56456a['headers']['get'](_0x4f7979(0x142));return _0x32c0d6?.[_0x4f7979(0x133)]('application/json')?_0x43c2b6=await _0x56456a[_0x4f7979(0x130)]():_0x43c2b6=await _0x56456a[_0x4f7979(0x146)](),{'ok':_0x56456a['ok'],'status':_0x56456a[_0x4f7979(0x141)],'statusText':_0x56456a[_0x4f7979(0x143)],'data':_0x43c2b6,'headers':_0x56456a[_0x4f7979(0x145)],'url':_0x56456a[_0x4f7979(0x13c)],'text':()=>_0x56456a[_0x4f7979(0x146)]()};}catch(_0x40a30b){_0x172e94=_0x40a30b instanceof Error?_0x40a30b:new Error(String(_0x40a30b));if(_0xa69002===retries)break;if(shouldRetry(_0x40a30b)){console[_0x4f7979(0x134)]('*\x20请求失败,'+retryDelay+_0x4f7979(0x140)+(_0xa69002+0x1)+_0x4f7979(0x144)),await sleep(retryDelay);continue;}else break;}}throw _0x172e94||new Error(_0x4f7979(0x132));}function shouldRetry(_0x4a5536){const _0x34f0c1=a270_0x30a7;if(_0x4a5536 instanceof Error){if(_0x4a5536[_0x34f0c1(0x135)]===_0x34f0c1(0x13d))return![];if(_0x4a5536[_0x34f0c1(0x135)]===_0x34f0c1(0x13a)&&_0x4a5536[_0x34f0c1(0x131)][_0x34f0c1(0x133)](_0x34f0c1(0x13b)))return!![];if(_0x4a5536['message'][_0x34f0c1(0x133)](_0x34f0c1(0x138)))return!![];if(_0x4a5536[_0x34f0c1(0x131)][_0x34f0c1(0x133)](_0x34f0c1(0x12b)))return![];}return![];}function sleep(_0x2a9703){return new Promise(_0x226f48=>setTimeout(_0x226f48,_0x2a9703));}export function validateUrl(_0x40ed6a){try{return new URL(_0x40ed6a),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x333cce,_0x3d9b1e){const _0x270941=a271_0x568d,_0x2c446c=_0x333cce();while(!![]){try{const _0x10724d=-parseInt(_0x270941(0x159))/0x1*(parseInt(_0x270941(0x156))/0x2)+parseInt(_0x270941(0x154))/0x3*(-parseInt(_0x270941(0x150))/0x4)+parseInt(_0x270941(0x15b))/0x5*(parseInt(_0x270941(0x14c))/0x6)+-parseInt(_0x270941(0x15a))/0x7*(-parseInt(_0x270941(0x149))/0x8)+-parseInt(_0x270941(0x14a))/0x9*(parseInt(_0x270941(0x152))/0xa)+parseInt(_0x270941(0x14f))/0xb*(-parseInt(_0x270941(0x157))/0xc)+-parseInt(_0x270941(0x14e))/0xd*(-parseInt(_0x270941(0x155))/0xe);if(_0x10724d===_0x3d9b1e)break;else _0x2c446c['push'](_0x2c446c['shift']());}catch(_0xf843f3){_0x2c446c['push'](_0x2c446c['shift']());}}}(a271_0x663e,0xcc793));function env(_0x1f0353){return process.env[`RABETBASE_${_0x1f0353}`]||process.env[`LOVRABET_${_0x1f0353}`]||undefined;}function a271_0x568d(_0x46c1b2,_0x1aed4f){_0x46c1b2=_0x46c1b2-0x149;const _0x663e3e=a271_0x663e();let _0x568d98=_0x663e3e[_0x46c1b2];return _0x568d98;}export function isNonInteractive(_0x1d5cf8){const _0x6e3e4e=a271_0x568d;return!!(_0x1d5cf8['nonInteractive']||_0x1d5cf8['ci']||env('CI')===_0x6e3e4e(0x158)||process.env.CI===_0x6e3e4e(0x158)||!process[_0x6e3e4e(0x14d)][_0x6e3e4e(0x153)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2ee95b=a271_0x568d;if(!process[_0x2ee95b(0x14b)][_0x2ee95b(0x153)])return![];try{const _0xed2b82=process[_0x2ee95b(0x14b)]['isRaw'];return process['stdin'][_0x2ee95b(0x151)](!![]),process[_0x2ee95b(0x14b)][_0x2ee95b(0x151)](_0xed2b82??![]),!![];}catch{return![];}}function a271_0x663e(){const _0x446937=['26514kVBaos','stdin','2766AQCULB','stdout','38596337kvcmSz','11nyqVzL','4ZEGMhI','setRawMode','4090ysapJk','isTTY','1750983cusbcw','14krNKsW','7662mLcqZO','9140232SiQtgR','true','234FGQrlw','1071413bHCPNb','985pEoxZG','64mFczvW'];a271_0x663e=function(){return _0x446937;};return a271_0x663e();}
1
+ (function(_0x253961,_0x4d5ffb){const _0x159b6c=a271_0x7a7c,_0x372dee=_0x253961();while(!![]){try{const _0x513902=-parseInt(_0x159b6c(0xf6))/0x1+parseInt(_0x159b6c(0xf0))/0x2+-parseInt(_0x159b6c(0xf1))/0x3+-parseInt(_0x159b6c(0xfc))/0x4+-parseInt(_0x159b6c(0xf3))/0x5*(parseInt(_0x159b6c(0xf2))/0x6)+-parseInt(_0x159b6c(0xef))/0x7+parseInt(_0x159b6c(0xf4))/0x8*(parseInt(_0x159b6c(0xf5))/0x9);if(_0x513902===_0x4d5ffb)break;else _0x372dee['push'](_0x372dee['shift']());}catch(_0x21af7d){_0x372dee['push'](_0x372dee['shift']());}}}(a271_0x4c90,0xca3d3));function env(_0xc5bb6c){return process.env[`RABETBASE_${_0xc5bb6c}`]||process.env[`LOVRABET_${_0xc5bb6c}`]||undefined;}export function isNonInteractive(_0x39e28b){const _0x285c35=a271_0x7a7c;return!!(_0x39e28b['nonInteractive']||_0x39e28b['ci']||env('CI')===_0x285c35(0xf8)||process.env.CI==='true'||!process[_0x285c35(0xfa)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x475df1=a271_0x7a7c;if(!process[_0x475df1(0xee)][_0x475df1(0xf9)])return![];try{const _0x127a8c=process[_0x475df1(0xee)][_0x475df1(0xfb)];return process[_0x475df1(0xee)][_0x475df1(0xf7)](!![]),process['stdin'][_0x475df1(0xf7)](_0x127a8c??![]),!![];}catch{return![];}}function a271_0x7a7c(_0x461235,_0x2d0b3b){_0x461235=_0x461235-0xee;const _0x4c90ef=a271_0x4c90();let _0x7a7cdb=_0x4c90ef[_0x461235];return _0x7a7cdb;}function a271_0x4c90(){const _0x4a1d7c=['630185UgxQoi','1160VdBCZI','208782GTbMqb','269420PMqbfs','setRawMode','true','isTTY','stdout','isRaw','726440fSmzqL','stdin','5360838JzwoeV','1341314UxftFc','3698730VgQlYI','36yQkscO'];a271_0x4c90=function(){return _0x4a1d7c;};return a271_0x4c90();}
@@ -1 +1 @@
1
- const a272_0x2b852a=a272_0xcf91;function a272_0xcf91(_0x4366ff,_0x388c97){_0x4366ff=_0x4366ff-0xe8;const _0x426833=a272_0x4268();let _0xcf9193=_0x426833[_0x4366ff];return _0xcf9193;}(function(_0x431d5a,_0x2a6971){const _0x2b5492=a272_0xcf91,_0x54d516=_0x431d5a();while(!![]){try{const _0x4dcf14=parseInt(_0x2b5492(0x10e))/0x1+parseInt(_0x2b5492(0x108))/0x2+parseInt(_0x2b5492(0x11c))/0x3*(-parseInt(_0x2b5492(0x11e))/0x4)+-parseInt(_0x2b5492(0xef))/0x5*(-parseInt(_0x2b5492(0xf3))/0x6)+-parseInt(_0x2b5492(0x107))/0x7+-parseInt(_0x2b5492(0xf0))/0x8*(parseInt(_0x2b5492(0x109))/0x9)+parseInt(_0x2b5492(0xeb))/0xa*(-parseInt(_0x2b5492(0x114))/0xb);if(_0x4dcf14===_0x2a6971)break;else _0x54d516['push'](_0x54d516['shift']());}catch(_0x29bf6f){_0x54d516['push'](_0x54d516['shift']());}}}(a272_0x4268,0x3f5fc));import a272_0x40fd6c from'winston';import a272_0x337f91 from'node:fs';import a272_0x1265f1 from'node:path';class Logger{[a272_0x2b852a(0x116)];['logFilePath'];['currentRawCommand']='';constructor(){const _0x321971=a272_0x2b852a;this[_0x321971(0x100)]='';}[a272_0x2b852a(0x10f)](_0x424dec){const _0xc9fc2c=a272_0x2b852a;this[_0xc9fc2c(0xf7)]=_0x424dec;}['initWinstonLogger'](){const _0x352ef5=a272_0x2b852a,_0x1105da=a272_0x1265f1[_0x352ef5(0xe9)](this[_0x352ef5(0x100)]);!a272_0x337f91[_0x352ef5(0x11a)](_0x1105da)&&a272_0x337f91['mkdirSync'](_0x1105da,{'recursive':!![]});const _0x1dd986=a272_0x40fd6c[_0x352ef5(0x11b)][_0x352ef5(0x104)](a272_0x40fd6c[_0x352ef5(0x11b)][_0x352ef5(0x111)](),a272_0x40fd6c[_0x352ef5(0x11b)]['errors']({'stack':!![]}),a272_0x40fd6c[_0x352ef5(0x11b)][_0x352ef5(0xee)](_0x548804=>{const _0x2b278f=_0x352ef5,_0x32383e={'timestamp':_0x548804[_0x2b278f(0x111)]||new Date()[_0x2b278f(0x101)](),'level':_0x548804[_0x2b278f(0x10b)]||_0x2b278f(0xfa),'command':_0x548804['command']||_0x2b278f(0xf8),'rawCommand':_0x548804[_0x2b278f(0x105)]||this['currentRawCommand']||undefined,'message':_0x548804[_0x2b278f(0x118)]||'','duration':_0x548804[_0x2b278f(0x112)]||undefined,'details':_0x548804[_0x2b278f(0x11f)]||undefined};return JSON[_0x2b278f(0x115)](_0x32383e);}));this[_0x352ef5(0x116)]=a272_0x40fd6c[_0x352ef5(0xec)]({'level':_0x352ef5(0xfa),'format':_0x1dd986,'transports':[new a272_0x40fd6c[(_0x352ef5(0x119))]['File']({'filename':this[_0x352ef5(0x100)],'level':'info'})],'silent':![]}),a272_0x40fd6c[_0x352ef5(0x11d)]({'success':'green','error':_0x352ef5(0xfd),'warn':_0x352ef5(0xfc),'info':_0x352ef5(0x10c)});}['setLogPath'](_0x134f29){const _0x229a9f=a272_0x2b852a;this['logFilePath']=a272_0x1265f1[_0x229a9f(0x10a)](_0x134f29,_0x229a9f(0xf5)),this[_0x229a9f(0x116)]&&this[_0x229a9f(0x116)][_0x229a9f(0xf4)](),this[_0x229a9f(0xf1)]();}['info'](_0x2abd9c,_0x3e2269,_0x47f892){const _0x99daf2=a272_0x2b852a;if(!this[_0x99daf2(0x100)]||!this[_0x99daf2(0x116)])return;this['winstonLogger'][_0x99daf2(0xfa)](_0x3e2269,{'command':_0x2abd9c,'details':_0x47f892});}['success'](_0x24690d,_0x30e5d7,_0x53df8c,_0x1e16b0){const _0x33d476=a272_0x2b852a;if(!this[_0x33d476(0x100)]||!this[_0x33d476(0x116)])return;this[_0x33d476(0x116)]['log'](_0x33d476(0xfa),_0x30e5d7,{'level':_0x33d476(0x10d),'command':_0x24690d,'duration':_0x53df8c,'details':_0x1e16b0});}['error'](_0x520b83,_0x257778,_0x403676){const _0x4ed527=a272_0x2b852a;if(!this[_0x4ed527(0x100)]||!this[_0x4ed527(0x116)])return;this[_0x4ed527(0x116)][_0x4ed527(0x102)](_0x257778,{'command':_0x520b83,'details':_0x403676});}[a272_0x2b852a(0xf9)](_0x4dba1c,_0x5a17c1,_0x32a326){const _0x579749=a272_0x2b852a;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x579749(0x116)][_0x579749(0xf9)](_0x5a17c1,{'command':_0x4dba1c,'details':_0x32a326});}async[a272_0x2b852a(0x117)](_0x3c8c18,_0xda953a,_0x36b331){const _0x4a8345=a272_0x2b852a,_0x427100=Date['now']();this[_0x4a8345(0xfa)](_0x3c8c18,_0x4a8345(0x106)+_0xda953a);try{const _0x35dccb=await _0x36b331(),_0x1b90fa=Date[_0x4a8345(0x103)]()-_0x427100;return this[_0x4a8345(0x10d)](_0x3c8c18,'完成:\x20'+_0xda953a,_0x1b90fa),_0x35dccb;}catch(_0x27a4d4){const _0x5c6c1a=Date[_0x4a8345(0x103)]()-_0x427100;this[_0x4a8345(0x102)](_0x3c8c18,_0x4a8345(0xff)+_0xda953a,{'error':_0x27a4d4 instanceof Error?_0x27a4d4['message']:String(_0x27a4d4),'duration':_0x5c6c1a});throw _0x27a4d4;}}[a272_0x2b852a(0x120)](){const _0x2f1549=a272_0x2b852a;try{if(!a272_0x337f91[_0x2f1549(0x11a)](this[_0x2f1549(0x100)]))return[];const _0x1f9ada=a272_0x337f91[_0x2f1549(0xea)](this[_0x2f1549(0x100)],_0x2f1549(0xf2));return _0x1f9ada[_0x2f1549(0xfe)]('\x0a')[_0x2f1549(0xed)](_0x38d4d6=>_0x38d4d6[_0x2f1549(0xe8)]())['map'](_0x400ebe=>JSON[_0x2f1549(0xfb)](_0x400ebe));}catch(_0x544c01){return console[_0x2f1549(0xf9)](_0x2f1549(0x121),_0x544c01),[];}}[a272_0x2b852a(0xf6)](){const _0x8173ea=a272_0x2b852a;try{a272_0x337f91['existsSync'](this['logFilePath'])&&a272_0x337f91['writeFileSync'](this[_0x8173ea(0x100)],'',_0x8173ea(0xf2));}catch(_0x8a3da1){console['warn'](_0x8173ea(0x110),_0x8a3da1);}}[a272_0x2b852a(0x113)](){const _0x40c57e=a272_0x2b852a;return this[_0x40c57e(0x116)];}}function a272_0x4268(){const _0x56b2fe=['clearLogs','currentRawCommand','unknown','warn','info','parse','yellow','red','split','失败:\x20','logFilePath','toISOString','error','now','combine','rawCommand','开始执行:\x20','339976kYadve','990018PYKpdL','9iscUAq','join','level','blue','success','324917oMmCem','setRawCommand','Failed\x20to\x20clear\x20logs:','timestamp','duration','getWinstonInstance','699281EogYhy','stringify','winstonLogger','logTask','message','transports','existsSync','format','956919RILKeu','addColors','4ZwlYua','details','readLogs','Failed\x20to\x20read\x20logs:','trim','dirname','readFileSync','10uVHnlx','createLogger','filter','printf','102215urgzPO','1197416gkoyDD','initWinstonLogger','utf8','6FJsKJv','clear','.lovrabet.log'];a272_0x4268=function(){return _0x56b2fe;};return a272_0x4268();}export const logger=new Logger();
1
+ const a272_0x3ff418=a272_0x18ae;(function(_0x273326,_0x1bc671){const _0x27de58=a272_0x18ae,_0x2183a3=_0x273326();while(!![]){try{const _0x592a5c=parseInt(_0x27de58(0x109))/0x1*(-parseInt(_0x27de58(0x11d))/0x2)+-parseInt(_0x27de58(0x142))/0x3+parseInt(_0x27de58(0x110))/0x4*(-parseInt(_0x27de58(0x11b))/0x5)+-parseInt(_0x27de58(0x136))/0x6+parseInt(_0x27de58(0x143))/0x7*(-parseInt(_0x27de58(0x13f))/0x8)+parseInt(_0x27de58(0x12e))/0x9*(parseInt(_0x27de58(0x10e))/0xa)+parseInt(_0x27de58(0x13d))/0xb;if(_0x592a5c===_0x1bc671)break;else _0x2183a3['push'](_0x2183a3['shift']());}catch(_0x4dec1b){_0x2183a3['push'](_0x2183a3['shift']());}}}(a272_0x4c98,0xd53d2));function a272_0x4c98(){const _0x272e70=['dirname','message','parse','printf','utf8','green','setLogPath','warn','createLogger','315tboOWc','.lovrabet.log','error','command','info','Failed\x20to\x20read\x20logs:','map','setRawCommand','1116360itzcrn','yellow','errors','logTask','winstonLogger','transports','unknown','45453793MdQGVh','readFileSync','16nKzpUb','existsSync','完成:\x20','1919028Tszemy','3302516rDAjhv','details','1tNtcOZ','filter','blue','toISOString','level','162730vQHMAm','red','363532YkysuM','split','失败:\x20','addColors','now','combine','rawCommand','currentRawCommand','trim','clearLogs','timestamp','55QwpWjS','join','2118534WyMEyi','logFilePath','writeFileSync','success','format','mkdirSync','initWinstonLogger','Failed\x20to\x20clear\x20logs:'];a272_0x4c98=function(){return _0x272e70;};return a272_0x4c98();}import a272_0x1014f1 from'winston';import a272_0x3ff4e0 from'node:fs';import a272_0x3c68e8 from'node:path';class Logger{['winstonLogger'];[a272_0x3ff418(0x11e)];[a272_0x3ff418(0x117)]='';constructor(){const _0x4d7803=a272_0x3ff418;this[_0x4d7803(0x11e)]='';}[a272_0x3ff418(0x135)](_0x4dd7da){const _0x47944e=a272_0x3ff418;this[_0x47944e(0x117)]=_0x4dd7da;}[a272_0x3ff418(0x123)](){const _0x19913f=a272_0x3ff418,_0x20a64b=a272_0x3c68e8[_0x19913f(0x125)](this[_0x19913f(0x11e)]);!a272_0x3ff4e0[_0x19913f(0x140)](_0x20a64b)&&a272_0x3ff4e0[_0x19913f(0x122)](_0x20a64b,{'recursive':!![]});const _0x472153=a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x115)](a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x11a)](),a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x138)]({'stack':!![]}),a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x128)](_0x31e27d=>{const _0x244cb6=_0x19913f,_0x39183f={'timestamp':_0x31e27d[_0x244cb6(0x11a)]||new Date()[_0x244cb6(0x10c)](),'level':_0x31e27d[_0x244cb6(0x10d)]||_0x244cb6(0x132),'command':_0x31e27d[_0x244cb6(0x131)]||_0x244cb6(0x13c),'rawCommand':_0x31e27d[_0x244cb6(0x116)]||this['currentRawCommand']||undefined,'message':_0x31e27d[_0x244cb6(0x126)]||'','duration':_0x31e27d['duration']||undefined,'details':_0x31e27d[_0x244cb6(0x108)]||undefined};return JSON['stringify'](_0x39183f);}));this[_0x19913f(0x13a)]=a272_0x1014f1[_0x19913f(0x12d)]({'level':'info','format':_0x472153,'transports':[new a272_0x1014f1[(_0x19913f(0x13b))]['File']({'filename':this[_0x19913f(0x11e)],'level':_0x19913f(0x132)})],'silent':![]}),a272_0x1014f1[_0x19913f(0x113)]({'success':_0x19913f(0x12a),'error':_0x19913f(0x10f),'warn':_0x19913f(0x137),'info':_0x19913f(0x10b)});}[a272_0x3ff418(0x12b)](_0x3b099a){const _0x23fb51=a272_0x3ff418;this[_0x23fb51(0x11e)]=a272_0x3c68e8[_0x23fb51(0x11c)](_0x3b099a,_0x23fb51(0x12f)),this[_0x23fb51(0x13a)]&&this['winstonLogger']['clear'](),this[_0x23fb51(0x123)]();}[a272_0x3ff418(0x132)](_0x13febb,_0x3fb603,_0xb2dc1a){const _0x4a6ff9=a272_0x3ff418;if(!this[_0x4a6ff9(0x11e)]||!this[_0x4a6ff9(0x13a)])return;this[_0x4a6ff9(0x13a)]['info'](_0x3fb603,{'command':_0x13febb,'details':_0xb2dc1a});}[a272_0x3ff418(0x120)](_0x2f1349,_0x19cccd,_0x3eccf6,_0x52d0ba){const _0x540508=a272_0x3ff418;if(!this['logFilePath']||!this[_0x540508(0x13a)])return;this['winstonLogger']['log'](_0x540508(0x132),_0x19cccd,{'level':_0x540508(0x120),'command':_0x2f1349,'duration':_0x3eccf6,'details':_0x52d0ba});}[a272_0x3ff418(0x130)](_0x59d2e9,_0x4111fa,_0x48cca5){const _0x135d7c=a272_0x3ff418;if(!this[_0x135d7c(0x11e)]||!this[_0x135d7c(0x13a)])return;this[_0x135d7c(0x13a)][_0x135d7c(0x130)](_0x4111fa,{'command':_0x59d2e9,'details':_0x48cca5});}[a272_0x3ff418(0x12c)](_0xba5571,_0x3241b2,_0x3493ea){const _0x12166f=a272_0x3ff418;if(!this[_0x12166f(0x11e)]||!this['winstonLogger'])return;this['winstonLogger'][_0x12166f(0x12c)](_0x3241b2,{'command':_0xba5571,'details':_0x3493ea});}async[a272_0x3ff418(0x139)](_0x331750,_0x27e19c,_0x570845){const _0x349fb2=a272_0x3ff418,_0x8baa3c=Date[_0x349fb2(0x114)]();this[_0x349fb2(0x132)](_0x331750,'开始执行:\x20'+_0x27e19c);try{const _0x24397d=await _0x570845(),_0x5e4215=Date[_0x349fb2(0x114)]()-_0x8baa3c;return this[_0x349fb2(0x120)](_0x331750,_0x349fb2(0x141)+_0x27e19c,_0x5e4215),_0x24397d;}catch(_0x2360d6){const _0x11718b=Date[_0x349fb2(0x114)]()-_0x8baa3c;this['error'](_0x331750,_0x349fb2(0x112)+_0x27e19c,{'error':_0x2360d6 instanceof Error?_0x2360d6[_0x349fb2(0x126)]:String(_0x2360d6),'duration':_0x11718b});throw _0x2360d6;}}['readLogs'](){const _0x3aef85=a272_0x3ff418;try{if(!a272_0x3ff4e0[_0x3aef85(0x140)](this[_0x3aef85(0x11e)]))return[];const _0x3329da=a272_0x3ff4e0[_0x3aef85(0x13e)](this[_0x3aef85(0x11e)],_0x3aef85(0x129));return _0x3329da[_0x3aef85(0x111)]('\x0a')[_0x3aef85(0x10a)](_0x14b062=>_0x14b062[_0x3aef85(0x118)]())[_0x3aef85(0x134)](_0xc092f3=>JSON[_0x3aef85(0x127)](_0xc092f3));}catch(_0x8519e5){return console[_0x3aef85(0x12c)](_0x3aef85(0x133),_0x8519e5),[];}}[a272_0x3ff418(0x119)](){const _0x2ae39b=a272_0x3ff418;try{a272_0x3ff4e0['existsSync'](this[_0x2ae39b(0x11e)])&&a272_0x3ff4e0[_0x2ae39b(0x11f)](this[_0x2ae39b(0x11e)],'',_0x2ae39b(0x129));}catch(_0x1b5ae2){console[_0x2ae39b(0x12c)](_0x2ae39b(0x124),_0x1b5ae2);}}['getWinstonInstance'](){return this['winstonLogger'];}}function a272_0x18ae(_0x2d30b7,_0x2d7c88){_0x2d30b7=_0x2d30b7-0x108;const _0x4c98ad=a272_0x4c98();let _0x18ae5e=_0x4c98ad[_0x2d30b7];return _0x18ae5e;}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x18f119,_0x486c83){const _0x174eac=a273_0x3025,_0x517b07=_0x18f119();while(!![]){try{const _0x5bef0e=-parseInt(_0x174eac(0x69))/0x1*(-parseInt(_0x174eac(0x6d))/0x2)+parseInt(_0x174eac(0x72))/0x3+-parseInt(_0x174eac(0x6b))/0x4*(parseInt(_0x174eac(0x76))/0x5)+parseInt(_0x174eac(0x70))/0x6+-parseInt(_0x174eac(0x78))/0x7*(parseInt(_0x174eac(0x71))/0x8)+parseInt(_0x174eac(0x6c))/0x9+-parseInt(_0x174eac(0x6f))/0xa;if(_0x5bef0e===_0x486c83)break;else _0x517b07['push'](_0x517b07['shift']());}catch(_0x3b794a){_0x517b07['push'](_0x517b07['shift']());}}}(a273_0x4d33,0x28d22));function a273_0x3025(_0x423f43,_0xd18ae2){_0x423f43=_0x423f43-0x69;const _0x4d3390=a273_0x4d33();let _0x302518=_0x4d3390[_0x423f43];return _0x302518;}import{CliErrors}from'../errors.js';function a273_0x4d33(){const _0x553434=['--params\x20must\x20be\x20a\x20JSON\x20object','isArray','parse','325865DKRXeD','Invalid\x20JSON\x20for\x20--params:\x20','652939NHjESf','121sKaMJH','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','12gsOVAY','1462518CTdAVM','2322VlGliC','validation','1472830psboRw','1594680PtRPBw','8KJZypH','103554nIoiKS'];a273_0x4d33=function(){return _0x553434;};return a273_0x4d33();}export function parseJsonParams(_0x3e09d4){const _0x90fe6e=a273_0x3025;if(!_0x3e09d4)return undefined;let _0x6a942d;try{_0x6a942d=JSON[_0x90fe6e(0x75)](_0x3e09d4);}catch{throw CliErrors[_0x90fe6e(0x6e)](_0x90fe6e(0x77)+_0x3e09d4);}if(!_0x6a942d||typeof _0x6a942d!=='object'||Array[_0x90fe6e(0x74)](_0x6a942d))throw CliErrors['validation'](_0x90fe6e(0x73),_0x90fe6e(0x6a));return _0x6a942d;}
1
+ function a273_0x5cce(){const _0x3f818e=['135QINauf','47UfwuWB','5077961HKEgkS','1218768ZhtuSt','parse','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','8576592GjvdAx','object','2134353iXpupM','23046MGaekH','5wyiELx','--params\x20must\x20be\x20a\x20JSON\x20object','33SIReoZ','213860JraIkJ','validation','3050660emszOT','6OESTOP'];a273_0x5cce=function(){return _0x3f818e;};return a273_0x5cce();}function a273_0x472a(_0x2c9626,_0x70be9d){_0x2c9626=_0x2c9626-0x13a;const _0x5ccee1=a273_0x5cce();let _0x472a7e=_0x5ccee1[_0x2c9626];return _0x472a7e;}(function(_0x302e15,_0x4c5a63){const _0x5b2f3d=a273_0x472a,_0x278604=_0x302e15();while(!![]){try{const _0x2776bc=parseInt(_0x5b2f3d(0x148))/0x1*(parseInt(_0x5b2f3d(0x13f))/0x2)+parseInt(_0x5b2f3d(0x13e))/0x3+parseInt(_0x5b2f3d(0x145))/0x4*(parseInt(_0x5b2f3d(0x140))/0x5)+-parseInt(_0x5b2f3d(0x146))/0x6*(-parseInt(_0x5b2f3d(0x149))/0x7)+parseInt(_0x5b2f3d(0x14a))/0x8+parseInt(_0x5b2f3d(0x147))/0x9*(-parseInt(_0x5b2f3d(0x143))/0xa)+-parseInt(_0x5b2f3d(0x142))/0xb*(parseInt(_0x5b2f3d(0x13c))/0xc);if(_0x2776bc===_0x4c5a63)break;else _0x278604['push'](_0x278604['shift']());}catch(_0x1933b9){_0x278604['push'](_0x278604['shift']());}}}(a273_0x5cce,0x689f0));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x544c00){const _0x3839fd=a273_0x472a;if(!_0x544c00)return undefined;let _0x145c31;try{_0x145c31=JSON[_0x3839fd(0x14b)](_0x544c00);}catch{throw CliErrors[_0x3839fd(0x144)](_0x3839fd(0x13b)+_0x544c00);}if(!_0x145c31||typeof _0x145c31!==_0x3839fd(0x13d)||Array['isArray'](_0x145c31))throw CliErrors[_0x3839fd(0x144)](_0x3839fd(0x141),_0x3839fd(0x13a));return _0x145c31;}
@@ -1 +1 @@
1
- const a274_0x2b43dd=a274_0x471f;(function(_0x26f4d4,_0x318a45){const _0x5ea323=a274_0x471f,_0x14a786=_0x26f4d4();while(!![]){try{const _0x470942=-parseInt(_0x5ea323(0x172))/0x1*(parseInt(_0x5ea323(0x16d))/0x2)+-parseInt(_0x5ea323(0x175))/0x3*(-parseInt(_0x5ea323(0x177))/0x4)+-parseInt(_0x5ea323(0x171))/0x5*(-parseInt(_0x5ea323(0x176))/0x6)+-parseInt(_0x5ea323(0x16b))/0x7+-parseInt(_0x5ea323(0x169))/0x8*(-parseInt(_0x5ea323(0x174))/0x9)+parseInt(_0x5ea323(0x16e))/0xa+-parseInt(_0x5ea323(0x170))/0xb*(-parseInt(_0x5ea323(0x16f))/0xc);if(_0x470942===_0x318a45)break;else _0x14a786['push'](_0x14a786['shift']());}catch(_0x3e1d8f){_0x14a786['push'](_0x14a786['shift']());}}}(a274_0x2104,0xd9c1b));export const isWindows=process[a274_0x2b43dd(0x173)]===a274_0x2b43dd(0x16a);function a274_0x2104(){const _0x4fd14d=['win32','10399396DeqBnt','.cmd','2cKbtOn','16170540wDLtMj','5811024mvLlEo','22HYMosV','60PNyQlM','1213678jVFxtv','platform','9KZXgFi','1611717pqlExo','139758HZKAEs','4PtjZHE','1511392LiGyOM'];a274_0x2104=function(){return _0x4fd14d;};return a274_0x2104();}function a274_0x471f(_0xc15166,_0x553a25){_0xc15166=_0xc15166-0x169;const _0x21048a=a274_0x2104();let _0x471f06=_0x21048a[_0xc15166];return _0x471f06;}export function resolveNpmBin(_0x3111a0){const _0x215894=a274_0x2b43dd;return isWindows?_0x3111a0+_0x215894(0x16c):_0x3111a0;}
1
+ function a274_0x14c7(_0x5454c5,_0x1ed3bf){_0x5454c5=_0x5454c5-0x106;const _0x110e26=a274_0x110e();let _0x14c774=_0x110e26[_0x5454c5];return _0x14c774;}function a274_0x110e(){const _0x5097d4=['platform','4KyaGuW','274332UlxbzG','343857dMaCrz','win32','1729NxtPeP','6568263jJwvNw','6640260xaYMKK','5621955ycqrSN','848619ljDrio','50168YTHMfb'];a274_0x110e=function(){return _0x5097d4;};return a274_0x110e();}const a274_0x508c12=a274_0x14c7;(function(_0xff261c,_0xbe99f2){const _0x30e6d3=a274_0x14c7,_0x50d5d2=_0xff261c();while(!![]){try{const _0x36c041=parseInt(_0x30e6d3(0x110))/0x1+parseInt(_0x30e6d3(0x10e))/0x2*(parseInt(_0x30e6d3(0x10b))/0x3)+-parseInt(_0x30e6d3(0x10f))/0x4+parseInt(_0x30e6d3(0x10a))/0x5+parseInt(_0x30e6d3(0x109))/0x6+parseInt(_0x30e6d3(0x107))/0x7*(-parseInt(_0x30e6d3(0x10c))/0x8)+-parseInt(_0x30e6d3(0x108))/0x9;if(_0x36c041===_0xbe99f2)break;else _0x50d5d2['push'](_0x50d5d2['shift']());}catch(_0x4923ab){_0x50d5d2['push'](_0x50d5d2['shift']());}}}(a274_0x110e,0xc1b21));export const isWindows=process[a274_0x508c12(0x10d)]===a274_0x508c12(0x106);export function resolveNpmBin(_0x146ed1){return isWindows?_0x146ed1+'.cmd':_0x146ed1;}
@@ -1 +1 @@
1
- (function(_0x20f7d0,_0x3d873d){const _0x2a85eb=a275_0x147b,_0x2b3b39=_0x20f7d0();while(!![]){try{const _0x21b89d=-parseInt(_0x2a85eb(0x11d))/0x1*(parseInt(_0x2a85eb(0x11f))/0x2)+parseInt(_0x2a85eb(0x116))/0x3+-parseInt(_0x2a85eb(0x12c))/0x4*(-parseInt(_0x2a85eb(0x123))/0x5)+parseInt(_0x2a85eb(0x115))/0x6*(parseInt(_0x2a85eb(0x128))/0x7)+-parseInt(_0x2a85eb(0x11b))/0x8*(parseInt(_0x2a85eb(0x124))/0x9)+parseInt(_0x2a85eb(0x12d))/0xa+-parseInt(_0x2a85eb(0x129))/0xb;if(_0x21b89d===_0x3d873d)break;else _0x2b3b39['push'](_0x2b3b39['shift']());}catch(_0x411ea1){_0x2b3b39['push'](_0x2b3b39['shift']());}}}(a275_0x4890,0x99b03));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 a275_0x147b(_0x565cdb,_0x59e70d){_0x565cdb=_0x565cdb-0x115;const _0x4890ef=a275_0x4890();let _0x147bd6=_0x4890ef[_0x565cdb];return _0x147bd6;}function getRulesCdnUrl(){const _0x24a38d=a275_0x147b,_0x39dff7=getTemplateBaseUrl();return _0x39dff7+_0x24a38d(0x117);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a275_0x4890(){const _0x6e26aa=['1018UpBSzg','lastUpdated','statusText','content','10PpUQLT','99HKqrMV','agents.md','lovrabet_rules.mdc','utf-8','7042QRxpOk','32490370GVLzJW','status','application/json','2455328UOTIAY','11247570hmxAqH','7146VArpzo','3456450zPyBkm','/rules/rules.json','json','CDN\x20返回数据格式错误','catch','796072EKDSJm','.cursor/rules','49sXtFAS','string'];a275_0x4890=function(){return _0x6e26aa;};return a275_0x4890();}export async function fetchRulesFromCDN(){const _0x552b81=a275_0x147b,_0x2c7ce4=getRulesCdnUrl(),_0x2060ee=await fetch(_0x2c7ce4,{'headers':{'Accept':_0x552b81(0x12b)}});if(!_0x2060ee['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2060ee[_0x552b81(0x12a)]+'\x20'+_0x2060ee[_0x552b81(0x121)]);const _0x4b139f=await _0x2060ee[_0x552b81(0x118)]();if(!_0x4b139f[_0x552b81(0x122)]||typeof _0x4b139f[_0x552b81(0x122)]!==_0x552b81(0x11e))throw new Error(_0x552b81(0x119));return _0x4b139f;}export async function getRulesContent(){const _0x2cf756=a275_0x147b;try{const _0xdcd68=await fetchRulesFromCDN();return _0xdcd68[_0x2cf756(0x122)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x251328=a275_0x147b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251328(0x127));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5825ef){const _0x2248e7=a275_0x147b,_0x71b429=await fetchRulesFromCDN()[_0x2248e7(0x11a)](()=>null);let _0x3cdba3;_0x71b429?(_0x3cdba3=_0x71b429[_0x2248e7(0x122)],_0x71b429[_0x2248e7(0x120)]&&(_0x3cdba3=appendUpdateTime(_0x3cdba3,_0x71b429[_0x2248e7(0x120)]))):_0x3cdba3=readLocalTemplate();const _0x2f7ea3=dirname(_0x5825ef);!existsSync(_0x2f7ea3)&&mkdirSync(_0x2f7ea3,{'recursive':!![]}),writeFileSync(_0x5825ef,_0x3cdba3,_0x2248e7(0x127));}export async function copyRulesToCursor(_0x526895){const _0x45973f=a275_0x147b,_0x11fd8e=join(_0x526895,_0x45973f(0x11c)),_0x256734=join(_0x11fd8e,_0x45973f(0x126));if(existsSync(_0x256734))return![];return await writeRulesFile(_0x256734),!![];}export async function copyRulesToAgentsMd(_0x546496){const _0xd20dd8=a275_0x147b,_0x355b43=join(_0x546496,_0xd20dd8(0x125));if(existsSync(_0x355b43))return![];return await writeRulesFile(_0x355b43),!![];}
1
+ const a275_0x34bfad=a275_0x17b7;(function(_0x19e5d1,_0x335770){const _0xb94586=a275_0x17b7,_0x4d22d3=_0x19e5d1();while(!![]){try{const _0x41c3a9=parseInt(_0xb94586(0x11b))/0x1+-parseInt(_0xb94586(0x10e))/0x2+-parseInt(_0xb94586(0x119))/0x3+parseInt(_0xb94586(0x115))/0x4+parseInt(_0xb94586(0x112))/0x5*(parseInt(_0xb94586(0x116))/0x6)+-parseInt(_0xb94586(0x10f))/0x7+parseInt(_0xb94586(0x122))/0x8*(parseInt(_0xb94586(0x121))/0x9);if(_0x41c3a9===_0x335770)break;else _0x4d22d3['push'](_0x4d22d3['shift']());}catch(_0x2c61c8){_0x4d22d3['push'](_0x4d22d3['shift']());}}}(a275_0xc4cd,0x7289c));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a275_0xc4cd(){const _0x3c04ac=['../../templates/rules/lovrabet_rules.mdc.tpl','211146FNVYza','json','status','utf-8','本地模板文件不存在:\x20','lastUpdated','1250829VkyUSc','24dcfygn','application/json','lovrabet_rules.mdc','catch','CDN\x20返回数据格式错误','1164828ALqimx','922320vyctYC','.cursor/rules','agents.md','111405zskwpI','CDN\x20请求失败:\x20','content','1519676GuaoQp','234UCQGaW','string','statusText','2080935egsxOw'];a275_0xc4cd=function(){return _0x3c04ac;};return a275_0xc4cd();}import{getTemplateBaseUrl}from'../utils/config.js';function a275_0x17b7(_0x303e42,_0xed8c11){_0x303e42=_0x303e42-0x10a;const _0xc4cdfd=a275_0xc4cd();let _0x17b744=_0xc4cdfd[_0x303e42];return _0x17b744;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1addfa=getTemplateBaseUrl();return _0x1addfa+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a275_0x34bfad(0x11a));export async function fetchRulesFromCDN(){const _0x390ec9=a275_0x34bfad,_0x215fe5=getRulesCdnUrl(),_0x58b56b=await fetch(_0x215fe5,{'headers':{'Accept':_0x390ec9(0x10a)}});if(!_0x58b56b['ok'])throw new Error(_0x390ec9(0x113)+_0x58b56b[_0x390ec9(0x11d)]+'\x20'+_0x58b56b[_0x390ec9(0x118)]);const _0x3bbe77=await _0x58b56b[_0x390ec9(0x11c)]();if(!_0x3bbe77[_0x390ec9(0x114)]||typeof _0x3bbe77[_0x390ec9(0x114)]!==_0x390ec9(0x117))throw new Error(_0x390ec9(0x10d));return _0x3bbe77;}export async function getRulesContent(){const _0x8d6efa=a275_0x34bfad;try{const _0x22fcce=await fetchRulesFromCDN();return _0x22fcce[_0x8d6efa(0x114)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x577a5e=a275_0x34bfad;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x577a5e(0x11e));throw new Error(_0x577a5e(0x11f)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5da690){const _0x548e14=a275_0x34bfad,_0x3bc5ed=await fetchRulesFromCDN()[_0x548e14(0x10c)](()=>null);let _0x59c537;_0x3bc5ed?(_0x59c537=_0x3bc5ed[_0x548e14(0x114)],_0x3bc5ed[_0x548e14(0x120)]&&(_0x59c537=appendUpdateTime(_0x59c537,_0x3bc5ed[_0x548e14(0x120)]))):_0x59c537=readLocalTemplate();const _0x281bd2=dirname(_0x5da690);!existsSync(_0x281bd2)&&mkdirSync(_0x281bd2,{'recursive':!![]}),writeFileSync(_0x5da690,_0x59c537,_0x548e14(0x11e));}export async function copyRulesToCursor(_0x5964c6){const _0x35b9ed=a275_0x34bfad,_0x54fa2e=join(_0x5964c6,_0x35b9ed(0x110)),_0x1e8c7f=join(_0x54fa2e,_0x35b9ed(0x10b));if(existsSync(_0x1e8c7f))return![];return await writeRulesFile(_0x1e8c7f),!![];}export async function copyRulesToAgentsMd(_0x3a0101){const _0x2e34f9=a275_0x34bfad,_0x2563ca=join(_0x3a0101,_0x2e34f9(0x111));if(existsSync(_0x2563ca))return![];return await writeRulesFile(_0x2563ca),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x104f86){return new Promise(_0x3f6314=>setTimeout(_0x3f6314,_0x104f86));}
1
+ export function sleep(_0x4bc48b){return new Promise(_0x145cb1=>setTimeout(_0x145cb1,_0x4bc48b));}
@@ -1 +1 @@
1
- function a277_0x4223(_0x49a240,_0x39414f){_0x49a240=_0x49a240-0xd7;const _0x3b4cfe=a277_0x3b4c();let _0x422348=_0x3b4cfe[_0x49a240];return _0x422348;}const a277_0x47a9d2=a277_0x4223;(function(_0x45c693,_0x3fa1a8){const _0x1a7404=a277_0x4223,_0xc8f202=_0x45c693();while(!![]){try{const _0x15a25a=parseInt(_0x1a7404(0xf8))/0x1*(parseInt(_0x1a7404(0x10e))/0x2)+-parseInt(_0x1a7404(0xf3))/0x3+parseInt(_0x1a7404(0xfc))/0x4+parseInt(_0x1a7404(0xef))/0x5+-parseInt(_0x1a7404(0x119))/0x6+parseInt(_0x1a7404(0x105))/0x7*(parseInt(_0x1a7404(0x104))/0x8)+-parseInt(_0x1a7404(0xe9))/0x9*(parseInt(_0x1a7404(0xec))/0xa);if(_0x15a25a===_0x3fa1a8)break;else _0xc8f202['push'](_0xc8f202['shift']());}catch(_0x133725){_0xc8f202['push'](_0xc8f202['shift']());}}}(a277_0x3b4c,0xd326e));function a277_0x3b4c(){const _0x379003=['.jsx','includes','writeFile','3347UrKAbY','utf8','push','toLowerCase','593920luSiJt','.js','开始处理模板内容替换','promises','\x0a\x20\x20\x20\x20{\x20','tableName','datasetCode','processDirectory','30696nnLRfg','791SBszGK','datasetCode:\x20\x22','getDate','YourModel','模板内容替换失败','pop','map','.tpl','now','694dYoiyK','replace','processTemplate','slice','pad','info','replaceApiContent','formatLocalTimestamp','alias','getMonth','readFile','7651776wZlSXl','endsWith','toUpperCase','replaceContent','name','join','getMinutes','default','alias:\x20\x22','extname','.md','success','padStart','.scss','error','.json','processFile','template','toComponentName','readdir','344529nAQpUX','getHours','api','200AUcjXp','mkdir','split','8423555wQiQjl','isFile','getFullYear','toDisplayTitle','1567161UMxcKY','tableName:\x20\x22'];a277_0x3b4c=function(){return _0x379003;};return a277_0x3b4c();}import a277_0x9a7e29 from'node:fs';import a277_0x480a42 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x47a9d2(0x112)](_0x406f94){const _0x461555=a277_0x47a9d2;return String(_0x406f94)[_0x461555(0xe1)](0x2,'0');}static['formatLocalTimestamp'](_0x18e960){const _0x5eb437=a277_0x47a9d2,_0x44ab28=_0x18e960[_0x5eb437(0xf1)](),_0x54fafd=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x117)]()+0x1),_0x5c0f29=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x107)]()),_0x29447b=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0xea)]()),_0x28fafe=this['pad'](_0x18e960[_0x5eb437(0xdb)]()),_0x33b9f6=this[_0x5eb437(0x112)](_0x18e960['getSeconds']());return{'createdAt':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29+'\x20'+_0x29447b+':'+_0x28fafe+':'+_0x33b9f6,'createdDate':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29,'createdTime':_0x29447b+':'+_0x28fafe+':'+_0x33b9f6};}static[a277_0x47a9d2(0xe7)](_0x3335ba){const _0x444441=a277_0x47a9d2,_0x31cdc2=_0x3335ba[_0x444441(0xee)]('/')['pop']()||_0x3335ba;return _0x31cdc2[_0x444441(0xee)]('-')[_0x444441(0x10b)](_0xe3d9f3=>_0xe3d9f3['charAt'](0x0)['toUpperCase']()+_0xe3d9f3[_0x444441(0x111)](0x1)[_0x444441(0xfb)]())[_0x444441(0xda)]('');}static[a277_0x47a9d2(0xf2)](_0x3588af){const _0x5b8b07=a277_0x47a9d2,_0x20af52=_0x3588af[_0x5b8b07(0xee)]('/')[_0x5b8b07(0x10a)]()||_0x3588af;return _0x20af52['split']('-')[_0x5b8b07(0x10b)](_0x36fc4c=>_0x36fc4c['charAt'](0x0)[_0x5b8b07(0xd7)]()+_0x36fc4c[_0x5b8b07(0x111)](0x1)[_0x5b8b07(0xfb)]())[_0x5b8b07(0xda)]('\x20');}static[a277_0x47a9d2(0xd8)](_0x239609,_0x1ade1d,_0x2ae82e){const _0x3c2f17=a277_0x47a9d2,_0x52984d=this[_0x3c2f17(0xe7)](_0x1ade1d),_0x3c6166=this['toDisplayTitle'](_0x1ade1d),{createdAt:_0x36c8e5,createdDate:_0x18b665,createdTime:_0xeaba3c}=this[_0x3c2f17(0x115)](new Date());let _0x25e24a=_0x239609[_0x3c2f17(0x10f)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x52984d)[_0x3c2f17(0x10f)](/\{DisplayTitle\}/g,_0x3c6166)['replace'](/\{PageName\}/g,_0x1ade1d)[_0x3c2f17(0x10f)](/\{TemplateName\}/g,_0x2ae82e)[_0x3c2f17(0x10f)](/\{CreatedAt\}/g,_0x36c8e5)['replace'](/\{CreatedDate\}/g,_0x18b665)[_0x3c2f17(0x10f)](/\{CreatedTime\}/g,_0xeaba3c);return _0x25e24a;}static[a277_0x47a9d2(0x114)](_0x2ef757,_0x32fac9,_0x3841cd,_0x1e6add,_0x494078,_0x13016e,_0x3b5007,_0x2ef539){const _0x10168b=a277_0x47a9d2,_0x219691=new Date(),_0x461e38=_0x219691['toISOString'](),_0x49987c=_0x3841cd[_0x10168b(0x10b)](_0x1c97fd=>{const _0x27ba79=_0x10168b,_0x6b17b6=[_0x27ba79(0x106)+_0x1c97fd[_0x27ba79(0x102)]+'\x22',_0x27ba79(0xf4)+_0x1c97fd[_0x27ba79(0x101)]+'\x22','name:\x20\x22'+_0x1c97fd[_0x27ba79(0xd9)]+'\x22'];return _0x1c97fd[_0x27ba79(0x116)]&&_0x6b17b6[_0x27ba79(0xfa)](_0x27ba79(0xdd)+_0x1c97fd[_0x27ba79(0x116)]+'\x22'),_0x27ba79(0x100)+_0x6b17b6[_0x27ba79(0xda)](',\x20')+'\x20},';})[_0x10168b(0xda)](''),_0x50ba48=_0x1e6add||_0x3841cd[0x0]?.['alias']||_0x10168b(0x108);let _0x1bf858=_0x2ef757[_0x10168b(0x10f)](/\{AppCode\}/g,_0x32fac9)[_0x10168b(0x10f)](/\{ModelConfigs\}/g,_0x49987c)[_0x10168b(0x10f)](/\{ExampleModelName\}/g,_0x50ba48)[_0x10168b(0x10f)](/\{ApiFileName\}/g,_0x494078||_0x10168b(0xeb))[_0x10168b(0x10f)](/\{ConfigName\}/g,_0x13016e||_0x10168b(0xdc))[_0x10168b(0x10f)](/\{ClientConfigParam\}/g,_0x3b5007||'')['replace'](/\{VarPrefix\}/g,_0x2ef539||'LOVRABET')[_0x10168b(0x10f)](/\{CreatedAt\}/g,_0x461e38);return _0x1bf858;}static async[a277_0x47a9d2(0x110)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345,_0x1d5b85=!![]){const _0x2fa5cd=a277_0x47a9d2,_0x2af18a=Date[_0x2fa5cd(0x10d)]();try{_0x1d5b85&&logger[_0x2fa5cd(0x113)](_0x2fa5cd(0xe6),_0x2fa5cd(0xfe),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345});await a277_0x9a7e29[_0x2fa5cd(0xff)][_0x2fa5cd(0xed)](_0x5d3cb0,{'recursive':!![]}),await this[_0x2fa5cd(0x103)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345);if(_0x1d5b85){const _0x2a0ae4=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe0)](_0x2fa5cd(0xe6),'模板内容替换完成',_0x2a0ae4,{'pageName':_0x3dbdc6,'templateName':_0x420345});}}catch(_0x46f4d7){if(_0x1d5b85){const _0x43ce62=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe3)](_0x2fa5cd(0xe6),_0x2fa5cd(0x109),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345,'error':_0x46f4d7 instanceof Error?_0x46f4d7['message']:String(_0x46f4d7),'duration':_0x43ce62});}throw _0x46f4d7;}}static async['processDirectory'](_0x3bcac0,_0x173481,_0x271c9d,_0x375373){const _0xa5727f=a277_0x47a9d2,_0x1cafd3=await a277_0x9a7e29['promises'][_0xa5727f(0xe8)](_0x3bcac0,{'withFileTypes':!![]});for(const _0x54fabe of _0x1cafd3){const _0xc22415=a277_0x480a42['join'](_0x3bcac0,_0x54fabe[_0xa5727f(0xd9)]);let _0x5872e6=a277_0x480a42['join'](_0x173481,_0x54fabe[_0xa5727f(0xd9)]);_0x54fabe[_0xa5727f(0xd9)][_0xa5727f(0x11a)](_0xa5727f(0x10c))&&(_0x5872e6=a277_0x480a42[_0xa5727f(0xda)](_0x173481,_0x54fabe[_0xa5727f(0xd9)]['replace'](/\.tpl$/,'')));if(_0x54fabe['isDirectory']())await a277_0x9a7e29[_0xa5727f(0xff)][_0xa5727f(0xed)](_0x5872e6,{'recursive':!![]}),await this['processDirectory'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);else _0x54fabe[_0xa5727f(0xf0)]()&&await this['processFile'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);}}static async[a277_0x47a9d2(0xe5)](_0x4ca906,_0x1a670e,_0x29d5fc,_0x169689){const _0x546b5a=a277_0x47a9d2,_0x2321d9=a277_0x480a42[_0x546b5a(0xde)](_0x4ca906)[_0x546b5a(0xfb)]();_0x4ca906['endsWith']('.tpl')&&(_0x1a670e=_0x1a670e[_0x546b5a(0x10f)](/\.tpl$/,''));const _0x1527b0=['.tsx','.ts',_0x546b5a(0xf5),_0x546b5a(0xfd),_0x546b5a(0xe4),_0x546b5a(0xdf),'.css',_0x546b5a(0xe2),_0x546b5a(0x10c)];if(_0x1527b0[_0x546b5a(0xf6)](_0x2321d9)||_0x4ca906[_0x546b5a(0x11a)](_0x546b5a(0x10c))){const _0x2a0bc7=await a277_0x9a7e29['promises'][_0x546b5a(0x118)](_0x4ca906,'utf8'),_0x45a0cd=this['replaceContent'](_0x2a0bc7,_0x29d5fc,_0x169689);await a277_0x9a7e29[_0x546b5a(0xff)][_0x546b5a(0xf7)](_0x1a670e,_0x45a0cd,_0x546b5a(0xf9));}else await a277_0x9a7e29[_0x546b5a(0xff)]['copyFile'](_0x4ca906,_0x1a670e);}}
1
+ function a277_0x45e6(_0xd686a8,_0x5e3dd8){_0xd686a8=_0xd686a8-0x132;const _0x1525cc=a277_0x1525();let _0x45e684=_0x1525cc[_0xd686a8];return _0x45e684;}function a277_0x1525(){const _0xb32085=['split','模板内容替换失败','replace','copyFile','isDirectory','LOVRABET','map','success','.tpl','processFile','readFile','api','开始处理模板内容替换','getMinutes','\x20},','replaceContent','name:\x20\x22','263244IlhmlW','now','345232olQmXS','info','8839910ZMIMtF','formatLocalTimestamp','toComponentName','utf8','33330176gzQICL','getHours','.js','.jsx','alias:\x20\x22','.json','9YSeMqf','.scss','YourModel','模板内容替换完成','name','415jDWvgH','toUpperCase','58524VciEoP','toDisplayTitle','push','replaceApiContent','includes','error','join','.tsx','template','21qrvfIn','slice','getFullYear','pad','processTemplate','toISOString','tableName','.css','getSeconds','8ooAArz','padStart','pop','readdir','6040006rCtjkO','toLowerCase','.md','alias','promises','\x0a\x20\x20\x20\x20{\x20','endsWith','114132dmYbOR','datasetCode:\x20\x22','processDirectory','tableName:\x20\x22','mkdir','charAt','extname','message'];a277_0x1525=function(){return _0xb32085;};return a277_0x1525();}const a277_0x45b823=a277_0x45e6;(function(_0x132fbb,_0x509303){const _0xeefffd=a277_0x45e6,_0x3daad4=_0x132fbb();while(!![]){try{const _0x4ed210=parseInt(_0xeefffd(0x136))/0x1*(parseInt(_0xeefffd(0x141))/0x2)+parseInt(_0xeefffd(0x178))/0x3*(parseInt(_0xeefffd(0x15a))/0x4)+-parseInt(_0xeefffd(0x16d))/0x5*(-parseInt(_0xeefffd(0x16f))/0x6)+parseInt(_0xeefffd(0x13a))/0x7+parseInt(_0xeefffd(0x15c))/0x8*(parseInt(_0xeefffd(0x168))/0x9)+parseInt(_0xeefffd(0x15e))/0xa+-parseInt(_0xeefffd(0x162))/0xb;if(_0x4ed210===_0x509303)break;else _0x3daad4['push'](_0x3daad4['shift']());}catch(_0x2750d5){_0x3daad4['push'](_0x3daad4['shift']());}}}(a277_0x1525,0x76d76));import a277_0x247214 from'node:fs';import a277_0x5d7d97 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x45b823(0x17b)](_0x477cfc){const _0x51077a=a277_0x45b823;return String(_0x477cfc)[_0x51077a(0x137)](0x2,'0');}static[a277_0x45b823(0x15f)](_0x18e835){const _0x1328ed=a277_0x45b823,_0xae02b0=_0x18e835[_0x1328ed(0x17a)](),_0x303b05=this['pad'](_0x18e835['getMonth']()+0x1),_0x59a822=this[_0x1328ed(0x17b)](_0x18e835['getDate']()),_0x30e497=this[_0x1328ed(0x17b)](_0x18e835[_0x1328ed(0x163)]()),_0x3aae79=this[_0x1328ed(0x17b)](_0x18e835[_0x1328ed(0x156)]()),_0x57f2bc=this[_0x1328ed(0x17b)](_0x18e835[_0x1328ed(0x135)]());return{'createdAt':_0xae02b0+'-'+_0x303b05+'-'+_0x59a822+'\x20'+_0x30e497+':'+_0x3aae79+':'+_0x57f2bc,'createdDate':_0xae02b0+'-'+_0x303b05+'-'+_0x59a822,'createdTime':_0x30e497+':'+_0x3aae79+':'+_0x57f2bc};}static[a277_0x45b823(0x160)](_0x20d4ad){const _0x5d8a07=a277_0x45b823,_0x5c4e59=_0x20d4ad[_0x5d8a07(0x149)]('/')['pop']()||_0x20d4ad;return _0x5c4e59[_0x5d8a07(0x149)]('-')[_0x5d8a07(0x14f)](_0x451645=>_0x451645[_0x5d8a07(0x146)](0x0)[_0x5d8a07(0x16e)]()+_0x451645[_0x5d8a07(0x179)](0x1)[_0x5d8a07(0x13b)]())[_0x5d8a07(0x175)]('');}static[a277_0x45b823(0x170)](_0x4c03d1){const _0x511ea2=a277_0x45b823,_0x16417a=_0x4c03d1[_0x511ea2(0x149)]('/')[_0x511ea2(0x138)]()||_0x4c03d1;return _0x16417a[_0x511ea2(0x149)]('-')[_0x511ea2(0x14f)](_0x519737=>_0x519737[_0x511ea2(0x146)](0x0)[_0x511ea2(0x16e)]()+_0x519737[_0x511ea2(0x179)](0x1)[_0x511ea2(0x13b)]())[_0x511ea2(0x175)]('\x20');}static[a277_0x45b823(0x158)](_0x111b12,_0x533657,_0x5bbd89){const _0x5ac30d=a277_0x45b823,_0x261bc0=this['toComponentName'](_0x533657),_0x178b3c=this[_0x5ac30d(0x170)](_0x533657),{createdAt:_0x2a51c1,createdDate:_0x149dc5,createdTime:_0x2581eb}=this[_0x5ac30d(0x15f)](new Date());let _0xee05ac=_0x111b12['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x5ac30d(0x14b)](/\{ComponentName\}/g,_0x261bc0)[_0x5ac30d(0x14b)](/\{DisplayTitle\}/g,_0x178b3c)['replace'](/\{PageName\}/g,_0x533657)[_0x5ac30d(0x14b)](/\{TemplateName\}/g,_0x5bbd89)[_0x5ac30d(0x14b)](/\{CreatedAt\}/g,_0x2a51c1)[_0x5ac30d(0x14b)](/\{CreatedDate\}/g,_0x149dc5)[_0x5ac30d(0x14b)](/\{CreatedTime\}/g,_0x2581eb);return _0xee05ac;}static[a277_0x45b823(0x172)](_0x46ca48,_0xf6795f,_0x157187,_0xff2f40,_0xd22b12,_0x2b6dab,_0x8184c7,_0x4dbb93){const _0x493aff=a277_0x45b823,_0xe9018c=new Date(),_0x5ab71a=_0xe9018c[_0x493aff(0x132)](),_0xa49430=_0x157187[_0x493aff(0x14f)](_0x4af915=>{const _0x33c059=_0x493aff,_0x1cfe26=[_0x33c059(0x142)+_0x4af915['datasetCode']+'\x22',_0x33c059(0x144)+_0x4af915[_0x33c059(0x133)]+'\x22',_0x33c059(0x159)+_0x4af915[_0x33c059(0x16c)]+'\x22'];return _0x4af915[_0x33c059(0x13d)]&&_0x1cfe26[_0x33c059(0x171)](_0x33c059(0x166)+_0x4af915[_0x33c059(0x13d)]+'\x22'),_0x33c059(0x13f)+_0x1cfe26[_0x33c059(0x175)](',\x20')+_0x33c059(0x157);})['join'](''),_0xe9da54=_0xff2f40||_0x157187[0x0]?.[_0x493aff(0x13d)]||_0x493aff(0x16a);let _0x109635=_0x46ca48['replace'](/\{AppCode\}/g,_0xf6795f)[_0x493aff(0x14b)](/\{ModelConfigs\}/g,_0xa49430)['replace'](/\{ExampleModelName\}/g,_0xe9da54)[_0x493aff(0x14b)](/\{ApiFileName\}/g,_0xd22b12||_0x493aff(0x154))[_0x493aff(0x14b)](/\{ConfigName\}/g,_0x2b6dab||'default')['replace'](/\{ClientConfigParam\}/g,_0x8184c7||'')[_0x493aff(0x14b)](/\{VarPrefix\}/g,_0x4dbb93||_0x493aff(0x14e))['replace'](/\{CreatedAt\}/g,_0x5ab71a);return _0x109635;}static async[a277_0x45b823(0x17c)](_0x29b920,_0x5cc8cb,_0x4f3db6,_0xf33036,_0x33e595=!![]){const _0x32ffaa=a277_0x45b823,_0x4b3f84=Date[_0x32ffaa(0x15b)]();try{_0x33e595&&logger[_0x32ffaa(0x15d)](_0x32ffaa(0x177),_0x32ffaa(0x155),{'templatePath':_0x29b920,'targetPath':_0x5cc8cb,'pageName':_0x4f3db6,'templateName':_0xf33036});await a277_0x247214['promises'][_0x32ffaa(0x145)](_0x5cc8cb,{'recursive':!![]}),await this[_0x32ffaa(0x143)](_0x29b920,_0x5cc8cb,_0x4f3db6,_0xf33036);if(_0x33e595){const _0x5f08fb=Date[_0x32ffaa(0x15b)]()-_0x4b3f84;logger[_0x32ffaa(0x150)](_0x32ffaa(0x177),_0x32ffaa(0x16b),_0x5f08fb,{'pageName':_0x4f3db6,'templateName':_0xf33036});}}catch(_0x20fa24){if(_0x33e595){const _0x11b697=Date[_0x32ffaa(0x15b)]()-_0x4b3f84;logger[_0x32ffaa(0x174)]('template',_0x32ffaa(0x14a),{'templatePath':_0x29b920,'targetPath':_0x5cc8cb,'pageName':_0x4f3db6,'templateName':_0xf33036,'error':_0x20fa24 instanceof Error?_0x20fa24[_0x32ffaa(0x148)]:String(_0x20fa24),'duration':_0x11b697});}throw _0x20fa24;}}static async[a277_0x45b823(0x143)](_0x19a126,_0x1096af,_0x528340,_0x5d428a){const _0x44da5d=a277_0x45b823,_0x10c7bb=await a277_0x247214['promises'][_0x44da5d(0x139)](_0x19a126,{'withFileTypes':!![]});for(const _0x60eb99 of _0x10c7bb){const _0x170ec7=a277_0x5d7d97[_0x44da5d(0x175)](_0x19a126,_0x60eb99[_0x44da5d(0x16c)]);let _0xa19969=a277_0x5d7d97[_0x44da5d(0x175)](_0x1096af,_0x60eb99[_0x44da5d(0x16c)]);_0x60eb99[_0x44da5d(0x16c)][_0x44da5d(0x140)](_0x44da5d(0x151))&&(_0xa19969=a277_0x5d7d97[_0x44da5d(0x175)](_0x1096af,_0x60eb99[_0x44da5d(0x16c)]['replace'](/\.tpl$/,'')));if(_0x60eb99[_0x44da5d(0x14d)]())await a277_0x247214[_0x44da5d(0x13e)][_0x44da5d(0x145)](_0xa19969,{'recursive':!![]}),await this[_0x44da5d(0x143)](_0x170ec7,_0xa19969,_0x528340,_0x5d428a);else _0x60eb99['isFile']()&&await this[_0x44da5d(0x152)](_0x170ec7,_0xa19969,_0x528340,_0x5d428a);}}static async[a277_0x45b823(0x152)](_0x4ea256,_0x4524d4,_0x5f1cfc,_0xa411f0){const _0x26f67c=a277_0x45b823,_0xceb207=a277_0x5d7d97[_0x26f67c(0x147)](_0x4ea256)['toLowerCase']();_0x4ea256[_0x26f67c(0x140)](_0x26f67c(0x151))&&(_0x4524d4=_0x4524d4[_0x26f67c(0x14b)](/\.tpl$/,''));const _0x336e1b=[_0x26f67c(0x176),'.ts',_0x26f67c(0x165),_0x26f67c(0x164),_0x26f67c(0x167),_0x26f67c(0x13c),_0x26f67c(0x134),_0x26f67c(0x169),_0x26f67c(0x151)];if(_0x336e1b[_0x26f67c(0x173)](_0xceb207)||_0x4ea256[_0x26f67c(0x140)](_0x26f67c(0x151))){const _0x465750=await a277_0x247214[_0x26f67c(0x13e)][_0x26f67c(0x153)](_0x4ea256,'utf8'),_0x66e175=this['replaceContent'](_0x465750,_0x5f1cfc,_0xa411f0);await a277_0x247214[_0x26f67c(0x13e)]['writeFile'](_0x4524d4,_0x66e175,_0x26f67c(0x161));}else await a277_0x247214[_0x26f67c(0x13e)][_0x26f67c(0x14c)](_0x4ea256,_0x4524d4);}}