@lovrabet/rabetbase-cli 2.3.1-beta.2 → 2.3.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-audit.js +1 -0
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
@@ -1 +1 @@
1
- const a198_0x411e0e=a198_0x5c33;(function(_0x3bacde,_0x434fd9){const _0x3a49e9=a198_0x5c33,_0x508913=_0x3bacde();while(!![]){try{const _0x47f651=-parseInt(_0x3a49e9(0x18b))/0x1+-parseInt(_0x3a49e9(0x158))/0x2+parseInt(_0x3a49e9(0x16b))/0x3+parseInt(_0x3a49e9(0x18f))/0x4*(-parseInt(_0x3a49e9(0x156))/0x5)+parseInt(_0x3a49e9(0x18c))/0x6+parseInt(_0x3a49e9(0x161))/0x7*(parseInt(_0x3a49e9(0x15b))/0x8)+parseInt(_0x3a49e9(0x16d))/0x9;if(_0x47f651===_0x434fd9)break;else _0x508913['push'](_0x508913['shift']());}catch(_0x2a6f81){_0x508913['push'](_0x508913['shift']());}}}(a198_0x9b0c,0xe6de7));export const CORE_IDE_CONFIGS={'cursor':{'name':a198_0x411e0e(0x162),'description':a198_0x411e0e(0x163),'folders':['.cursorrules',a198_0x411e0e(0x18d)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x17d),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a198_0x411e0e(0x17e),'description':a198_0x411e0e(0x17f),'folders':[a198_0x411e0e(0x16a)],'files':[{'type':a198_0x411e0e(0x169),'path':'.windsurf/workflows/rabetbase.md','template':a198_0x411e0e(0x173)}]},'claude':{'name':a198_0x411e0e(0x15c),'description':a198_0x411e0e(0x15c),'folders':[a198_0x411e0e(0x15d)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a198_0x411e0e(0x186),'folders':[a198_0x411e0e(0x168)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x184),'template':a198_0x411e0e(0x173)}]},'codex':{'name':a198_0x411e0e(0x176),'description':a198_0x411e0e(0x171),'folders':[a198_0x411e0e(0x159)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x177),'template':'SKILL.md.tpl'}]},'opencode':{'name':a198_0x411e0e(0x170),'description':a198_0x411e0e(0x157),'folders':[a198_0x411e0e(0x15f)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x165),'template':'SKILL.md.tpl'}]},'qoder':{'name':a198_0x411e0e(0x167),'description':a198_0x411e0e(0x181),'folders':[a198_0x411e0e(0x189)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x187),'template':'SKILL.md.tpl'},{'type':'file','path':a198_0x411e0e(0x15e),'template':a198_0x411e0e(0x173)}]},'codebuddy':{'name':a198_0x411e0e(0x17b),'description':a198_0x411e0e(0x16c),'folders':[a198_0x411e0e(0x175)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x18a),'template':'SKILL.md.tpl'}]},'trae':{'name':a198_0x411e0e(0x17a),'description':'Trae\x20IDE','folders':[a198_0x411e0e(0x178)],'files':[{'type':'file','path':a198_0x411e0e(0x179),'template':a198_0x411e0e(0x173)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a198_0x411e0e(0x164),'description':a198_0x411e0e(0x174),'folders':[a198_0x411e0e(0x15a)],'files':[{'type':'file','path':a198_0x411e0e(0x188),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a198_0x411e0e(0x183),'description':a198_0x411e0e(0x17c),'folders':[a198_0x411e0e(0x15a)],'files':[{'type':a198_0x411e0e(0x169),'path':a198_0x411e0e(0x188),'template':a198_0x411e0e(0x173)}]}};export const CORE_IDE_LIST=['claude',a198_0x411e0e(0x172),'codebuddy',a198_0x411e0e(0x185),a198_0x411e0e(0x182),a198_0x411e0e(0x166),a198_0x411e0e(0x16e),a198_0x411e0e(0x16f),a198_0x411e0e(0x160)];export const IDE_LIST=[a198_0x411e0e(0x18e),'claude',a198_0x411e0e(0x172),a198_0x411e0e(0x180),a198_0x411e0e(0x185),'cursor',a198_0x411e0e(0x166),a198_0x411e0e(0x16e),a198_0x411e0e(0x16f),'windsurf','agent'];function a198_0x5c33(_0x22c160,_0x4e7841){_0x22c160=_0x22c160-0x156;const _0x9b0ce=a198_0x9b0c();let _0x5c3302=_0x9b0ce[_0x22c160];return _0x5c3302;}function a198_0x9b0c(){const _0x5d2c9a=['Windsurf\x20IDE','codebuddy','Qoder\x20IDE','cursor','Antigravity','.cline/skills/lovrabet/SKILL.md','codex','Cline\x20IDE','.qoder/rules/rabetbase.md','.agent/skills/lovrabet/SKILL.md','.qoder','.codebuddy/skills/lovrabet/SKILL.md','1053760LZtbUg','2157162nsLouV','.cursor','antigravity','28748PwTsIb','claude','5oCPisn','OpenCode\x20IDE','216848CeZVmR','.codex','.agent','28232urWRFy','Claude\x20Code','.claude','.qoder/skills/lovrabet/SKILL.md','.opencode','windsurf','826VytYGo','Cursor','Cursor\x20IDE','其他\x20(通用模板)','.opencode/skills/lovrabet/SKILL.md','opencode','Qoder','.cline','file','.windsurf','1753341SpoAKz','CodeBuddy\x20IDE','6791526OfWAVp','qoder','trae','OpenCode','Codex\x20IDE','cline','SKILL.md.tpl','通用模板\x20-\x20兜底方案','.codebuddy','Codex','.codex/skills/lovrabet/SKILL.md','.trae','.trae/skills/lovrabet/SKILL.md','Trae','CodeBuddy','Antigravity\x20IDE','.cursor/skills/rabetbase.md','Windsurf'];a198_0x9b0c=function(){return _0x5d2c9a;};return a198_0x9b0c();}export const ALL_CORE_IDES=[a198_0x411e0e(0x182),'windsurf',a198_0x411e0e(0x190),a198_0x411e0e(0x172),a198_0x411e0e(0x185),a198_0x411e0e(0x166),a198_0x411e0e(0x16e),a198_0x411e0e(0x180),'trae'];
1
+ function a199_0x3e57(){const _0x535bc9=['14676CxsGBl','40YSYVuP','Cursor','windsurf','agent','.cursorrules','.claude/skills/lovrabet/SKILL.md','Cline','8746434NRfdjh','OpenCode','.cursor','.qoder/rules/rabetbase.md','130meTRek','36ssixQs','Cline\x20IDE','OpenCode\x20IDE','134538jSnHyl','.windsurf','.cline','110cnqABz','.trae/skills/lovrabet/SKILL.md','599725nYVItD','cline','.qoder/skills/lovrabet/SKILL.md','.agent','Codex\x20IDE','118kdoZGa','Claude\x20Code','通用模板\x20-\x20兜底方案','codex','qoder','claude','.codex','16967MUPYcg','.agent/skills/lovrabet/SKILL.md','Antigravity','Windsurf\x20IDE','Codex','.windsurf/workflows/rabetbase.md','codebuddy','4377113GDzwGm','SKILL.md.tpl','file','Qoder','24LgcssC','Antigravity\x20IDE','antigravity','.opencode/skills/lovrabet/SKILL.md','Cursor\x20IDE','.opencode','opencode','.qoder','940910kzYkYH','trae'];a199_0x3e57=function(){return _0x535bc9;};return a199_0x3e57();}const a199_0x719855=a199_0x4fe8;(function(_0x35b026,_0x1fbf14){const _0x709a71=a199_0x4fe8,_0xe314f1=_0x35b026();while(!![]){try{const _0x343008=-parseInt(_0x709a71(0x9a))/0x1*(parseInt(_0x709a71(0x93))/0x2)+-parseInt(_0x709a71(0x89))/0x3*(-parseInt(_0x709a71(0xb0))/0x4)+parseInt(_0x709a71(0x85))/0x5*(-parseInt(_0x709a71(0xaf))/0x6)+-parseInt(_0x709a71(0x8e))/0x7*(-parseInt(_0x709a71(0xa5))/0x8)+parseInt(_0x709a71(0x81))/0x9+-parseInt(_0x709a71(0xad))/0xa*(-parseInt(_0x709a71(0x8c))/0xb)+parseInt(_0x709a71(0x86))/0xc*(-parseInt(_0x709a71(0xa1))/0xd);if(_0x343008===_0x1fbf14)break;else _0xe314f1['push'](_0xe314f1['shift']());}catch(_0x56d646){_0xe314f1['push'](_0xe314f1['shift']());}}}(a199_0x3e57,0x84aed));export const CORE_IDE_CONFIGS={'cursor':{'name':a199_0x719855(0xb1),'description':a199_0x719855(0xa9),'folders':[a199_0x719855(0xb4),a199_0x719855(0x83)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a199_0x719855(0xa2)}]},'windsurf':{'name':'Windsurf','description':a199_0x719855(0x9d),'folders':[a199_0x719855(0x8a)],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x9f),'template':'SKILL.md.tpl'}]},'claude':{'name':a199_0x719855(0x94),'description':a199_0x719855(0x94),'folders':['.claude'],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x7f),'template':'SKILL.md.tpl'}]},'cline':{'name':a199_0x719855(0x80),'description':a199_0x719855(0x87),'folders':[a199_0x719855(0x8b)],'files':[{'type':a199_0x719855(0xa3),'path':'.cline/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'codex':{'name':a199_0x719855(0x9e),'description':a199_0x719855(0x92),'folders':[a199_0x719855(0x99)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'opencode':{'name':a199_0x719855(0x82),'description':a199_0x719855(0x88),'folders':[a199_0x719855(0xaa)],'files':[{'type':'file','path':a199_0x719855(0xa8),'template':a199_0x719855(0xa2)}]},'qoder':{'name':a199_0x719855(0xa4),'description':'Qoder\x20IDE','folders':[a199_0x719855(0xac)],'files':[{'type':'file','path':a199_0x719855(0x84),'template':a199_0x719855(0xa2)},{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x90),'template':a199_0x719855(0xa2)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a199_0x719855(0xa3),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a199_0x719855(0xa2)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a199_0x719855(0x8d),'template':a199_0x719855(0xa2)}]}};function a199_0x4fe8(_0x1d837d,_0x25fe33){_0x1d837d=_0x1d837d-0x7f;const _0x3e57f7=a199_0x3e57();let _0x4fe879=_0x3e57f7[_0x1d837d];return _0x4fe879;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a199_0x719855(0x95),'folders':[a199_0x719855(0x91)],'files':[{'type':a199_0x719855(0xa3),'path':a199_0x719855(0x9b),'template':a199_0x719855(0xa2)}]},'antigravity':{'name':a199_0x719855(0x9c),'description':a199_0x719855(0xa6),'folders':[a199_0x719855(0x91)],'files':[{'type':'file','path':a199_0x719855(0x9b),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a199_0x719855(0x98),'cline',a199_0x719855(0xa0),'codex','cursor',a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xae),a199_0x719855(0xb2)];export const IDE_LIST=[a199_0x719855(0xa7),a199_0x719855(0x98),a199_0x719855(0x8f),'codebuddy',a199_0x719855(0x96),'cursor',a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xae),'windsurf',a199_0x719855(0xb3)];export const ALL_CORE_IDES=['cursor',a199_0x719855(0xb2),a199_0x719855(0x98),a199_0x719855(0x8f),a199_0x719855(0x96),a199_0x719855(0xab),a199_0x719855(0x97),a199_0x719855(0xa0),a199_0x719855(0xae)];
@@ -1 +1 @@
1
- (function(_0x3e7862,_0x52c4cf){const _0x532c4f=a199_0x5c96,_0x226b4c=_0x3e7862();while(!![]){try{const _0x2ea4be=parseInt(_0x532c4f(0x1cf))/0x1+parseInt(_0x532c4f(0x1d2))/0x2+parseInt(_0x532c4f(0x1d6))/0x3*(-parseInt(_0x532c4f(0x1d5))/0x4)+-parseInt(_0x532c4f(0x1cd))/0x5*(parseInt(_0x532c4f(0x1d0))/0x6)+parseInt(_0x532c4f(0x1d4))/0x7+-parseInt(_0x532c4f(0x1ce))/0x8*(-parseInt(_0x532c4f(0x1d1))/0x9)+-parseInt(_0x532c4f(0x1d3))/0xa;if(_0x2ea4be===_0x52c4cf)break;else _0x226b4c['push'](_0x226b4c['shift']());}catch(_0x5c6f91){_0x226b4c['push'](_0x226b4c['shift']());}}}(a199_0x4662,0xb8fbc));function a199_0x4662(){const _0xec8e82=['1086244oMVhwC','6jAkZpo','13329hZlKLX','1571552ZxulWT','5190310idDzRr','2596657RrqdVs','3985816dooYGE','3ntGGXd','6017335UuaoFB','6664SSuGUA'];a199_0x4662=function(){return _0xec8e82;};return a199_0x4662();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a199_0x5c96(_0x3b54b3,_0xff0a5e){_0x3b54b3=_0x3b54b3-0x1cd;const _0x4662a0=a199_0x4662();let _0x5c96ac=_0x4662a0[_0x3b54b3];return _0x5c96ac;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x446249,_0x1abc7d){const _0x31ac70=a200_0x541c,_0x3ec483=_0x446249();while(!![]){try{const _0x3e9e2e=parseInt(_0x31ac70(0x16a))/0x1+parseInt(_0x31ac70(0x16d))/0x2*(-parseInt(_0x31ac70(0x164))/0x3)+parseInt(_0x31ac70(0x16e))/0x4*(-parseInt(_0x31ac70(0x16f))/0x5)+parseInt(_0x31ac70(0x167))/0x6*(parseInt(_0x31ac70(0x168))/0x7)+parseInt(_0x31ac70(0x16c))/0x8*(parseInt(_0x31ac70(0x16b))/0x9)+parseInt(_0x31ac70(0x166))/0xa+parseInt(_0x31ac70(0x165))/0xb*(-parseInt(_0x31ac70(0x169))/0xc);if(_0x3e9e2e===_0x1abc7d)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x4e81a0){_0x3ec483['push'](_0x3ec483['shift']());}}}(a200_0x5495,0xd145b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a200_0x541c(_0xbbdcb0,_0x43972f){_0xbbdcb0=_0xbbdcb0-0x164;const _0x549542=a200_0x5495();let _0x541c80=_0x549542[_0xbbdcb0];return _0x541c80;}import{CliErrors}from'../errors.js';function a200_0x5495(){const _0x4260f3=['130920IWNMoy','206tEoQUH','10832KlAkSd','1085DopWDz','18579CIYSTh','19588987WzTVmi','16734840bUkUsy','1541418ZRimKT','7xuyfSI','12JplMKW','689384ljGkZa','684AfeJKw'];a200_0x5495=function(){return _0x4260f3;};return a200_0x5495();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a200_0x533b(_0x344f81,_0x318757){_0x344f81=_0x344f81-0x89;const _0x464497=a200_0x4644();let _0x533b3c=_0x464497[_0x344f81];return _0x533b3c;}(function(_0x29206f,_0x580aea){const _0x30c04d=a200_0x533b,_0x41720a=_0x29206f();while(!![]){try{const _0x592c9e=-parseInt(_0x30c04d(0x93))/0x1*(-parseInt(_0x30c04d(0x91))/0x2)+-parseInt(_0x30c04d(0x95))/0x3*(parseInt(_0x30c04d(0x8b))/0x4)+-parseInt(_0x30c04d(0x8c))/0x5*(-parseInt(_0x30c04d(0x90))/0x6)+parseInt(_0x30c04d(0x8f))/0x7*(parseInt(_0x30c04d(0x8e))/0x8)+parseInt(_0x30c04d(0x8a))/0x9+parseInt(_0x30c04d(0x94))/0xa+-parseInt(_0x30c04d(0x96))/0xb;if(_0x592c9e===_0x580aea)break;else _0x41720a['push'](_0x41720a['shift']());}catch(_0x289128){_0x41720a['push'](_0x41720a['shift']());}}}(a200_0x4644,0xc711e));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2edf81=a200_0x533b,_0x5701ba=getTemplateBaseUrl(),_0x5113e5=[_0x5701ba+_0x2edf81(0x92),_0x5701ba+'/config/index.json'];for(const _0x4cc585 of _0x5113e5){try{const _0x2834a4=await fetch(_0x4cc585,{'headers':{'Accept':'application/json'}});if(!_0x2834a4['ok'])continue;const _0x47bce2=await _0x2834a4['json']();if(!_0x47bce2[_0x2edf81(0x98)]?.[_0x2edf81(0x8d)]||!_0x47bce2[_0x2edf81(0x97)]?.[_0x2edf81(0x89)]?.['stableVersion'])continue;return _0x47bce2;}catch{}}return null;}function a200_0x4644(){const _0x489149=['10082330odrUwq','2085GFLAHb','14532386WbnNOU','sdk','cli','node','4113252PqunIF','7336ntZCKQ','5089990zpXJGm','stableVersion','40gYBybC','711277oAfcUY','6TQnyKd','686wZeYIH','/config.json','1224tlhLsH'];a200_0x4644=function(){return _0x489149;};return a200_0x4644();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x261b9d=Date['now']();if(hasCachedConfig){const _0x1fd8c3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x261b9d-cacheTime<_0x1fd8c3)return cachedConfig;}const _0x182a0a=await fetchCdnConfig();return cachedConfig=_0x182a0a,cacheTime=_0x261b9d,hasCachedConfig=!![],_0x182a0a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xab5715,_0x52ba16){const _0x55c496=a201_0x5e90,_0x3238af=_0xab5715();while(!![]){try{const _0x41cf8d=parseInt(_0x55c496(0x171))/0x1*(parseInt(_0x55c496(0x172))/0x2)+parseInt(_0x55c496(0x179))/0x3+-parseInt(_0x55c496(0x173))/0x4*(parseInt(_0x55c496(0x16f))/0x5)+-parseInt(_0x55c496(0x16e))/0x6+parseInt(_0x55c496(0x17c))/0x7+parseInt(_0x55c496(0x17d))/0x8*(-parseInt(_0x55c496(0x178))/0x9)+parseInt(_0x55c496(0x176))/0xa*(parseInt(_0x55c496(0x170))/0xb);if(_0x41cf8d===_0x52ba16)break;else _0x3238af['push'](_0x3238af['shift']());}catch(_0xdc6c9){_0x3238af['push'](_0x3238af['shift']());}}}(a201_0xa090,0x9b7dd));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x23186b=a201_0x5e90,_0x4af43d=getTemplateBaseUrl(),_0x39f9dc=[_0x4af43d+'/config.json',_0x4af43d+_0x23186b(0x177)];for(const _0x305d6d of _0x39f9dc){try{const _0x482111=await fetch(_0x305d6d,{'headers':{'Accept':'application/json'}});if(!_0x482111['ok'])continue;const _0x18bb99=await _0x482111[_0x23186b(0x175)]();if(!_0x18bb99[_0x23186b(0x17b)]?.[_0x23186b(0x174)]||!_0x18bb99[_0x23186b(0x17e)]?.[_0x23186b(0x17a)]?.[_0x23186b(0x174)])continue;return _0x18bb99;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a201_0xa090(){const _0x6576d6=['sdk','7271784nFAjiY','430iIgsGX','22uhExtj','1uwWFai','1529246oOaDFo','46876PtCcrU','stableVersion','json','8537330hthPzy','/config/index.json','3712572CIIYQK','684285gmARif','node','cli','3983105aljIjz','8ERgqld'];a201_0xa090=function(){return _0x6576d6;};return a201_0xa090();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x4e3b00=Date['now']();if(hasCachedConfig){const _0x3164fd=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e3b00-cacheTime<_0x3164fd)return cachedConfig;}const _0x21c41b=await fetchCdnConfig();return cachedConfig=_0x21c41b,cacheTime=_0x4e3b00,hasCachedConfig=!![],_0x21c41b;}function a201_0x5e90(_0x3fa5fe,_0x10ad04){_0x3fa5fe=_0x3fa5fe-0x16e;const _0xa09041=a201_0xa090();let _0x5e90e7=_0xa09041[_0x3fa5fe];return _0x5e90e7;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a201_0xcd0c(){const _0xc6781c=['676698HfEOCU','stableVersion','\x20\x20\x20Current\x20version:\x20','69016zLZOtI','all','@lovrabet/sdk','version','1.2.0','sdk','node','dependencies','12SVVCtA','107702SbOgDH','\x1b[33m','needsUpgrade','4613874rzgomJ','devDependencies','\x20\x20\x20Stable\x20version:\x20','existsSync','5GCuocv','\x1b[0m','node_modules','168ESQURW','↪\x20SDK\x20update\x20available','parse','readFileSync','join','log','packageName','some','package.json','24LNtSJm','coerce','235989jmCcKC','4966268wJsuLq','1038111nWDIgd','utf8','300CfZYax','latest','test'];a201_0xcd0c=function(){return _0xc6781c;};return a201_0xcd0c();}function a201_0x19f1(_0x13976f,_0x163fe2){_0x13976f=_0x13976f-0xc8;const _0xcd0c5b=a201_0xcd0c();let _0x19f141=_0xcd0c5b[_0x13976f];return _0x19f141;}const a201_0x517d4b=a201_0x19f1;(function(_0x2714fa,_0x31e1f8){const _0x45c92e=a201_0x19f1,_0x6a22c9=_0x2714fa();while(!![]){try{const _0x4149c8=parseInt(_0x45c92e(0xe0))/0x1*(parseInt(_0x45c92e(0xe8))/0x2)+parseInt(_0x45c92e(0xd8))/0x3+-parseInt(_0x45c92e(0xd7))/0x4+-parseInt(_0x45c92e(0xc8))/0x5*(-parseInt(_0x45c92e(0xec))/0x6)+parseInt(_0x45c92e(0xe9))/0x7*(-parseInt(_0x45c92e(0xcb))/0x8)+-parseInt(_0x45c92e(0xd6))/0x9*(-parseInt(_0x45c92e(0xda))/0xa)+-parseInt(_0x45c92e(0xdd))/0xb*(parseInt(_0x45c92e(0xd4))/0xc);if(_0x4149c8===_0x31e1f8)break;else _0x6a22c9['push'](_0x6a22c9['shift']());}catch(_0xe0404c){_0x6a22c9['push'](_0x6a22c9['shift']());}}}(a201_0xcd0c,0x99541));import a201_0x2bae9a from'node:fs';import a201_0x61123f from'node:path';import a201_0xdf5797 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a201_0x517d4b(0xe4);function isNonNumericVersion(_0x4696c4){const _0x244127=a201_0x517d4b,_0x4a151a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4a151a[_0x244127(0xd2)](_0x532905=>_0x532905[_0x244127(0xdc)](_0x4696c4));}function getInstalledVersion(_0x9d5297,_0x513556){const _0x538f92=a201_0x517d4b;try{const _0x38880d=a201_0x61123f[_0x538f92(0xcf)](_0x9d5297,_0x538f92(0xca),_0x513556,_0x538f92(0xd3));if(a201_0x2bae9a[_0x538f92(0xef)](_0x38880d)){const _0x57337d=JSON[_0x538f92(0xcd)](a201_0x2bae9a[_0x538f92(0xce)](_0x38880d,'utf-8'));return _0x57337d['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47ae1f=a201_0x517d4b;try{const _0x15118f=await getCdnConfig();return _0x15118f?.[_0x47ae1f(0xe5)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x939817=a201_0x517d4b;try{const _0x5b2e29=await getCdnConfig();return _0x5b2e29?.[_0x939817(0xe5)]?.[_0x939817(0xe6)]?.[_0x939817(0xd1)]||_0x939817(0xe2);}catch{return _0x939817(0xe2);}}export async function checkSdkVersion(_0x44d9cb){const _0x39ceac=a201_0x517d4b,_0x35d690=a201_0x61123f[_0x39ceac(0xcf)](_0x44d9cb,'package.json'),[_0x4d1f54,_0x1c0195]=await Promise[_0x39ceac(0xe1)]([getSdkStableVersion(),getSdkPackageName()]),_0x40e253=_0x4d1f54||FALLBACK_MIN_SDK_VERSION;if(!a201_0x2bae9a[_0x39ceac(0xef)](_0x35d690))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};try{const _0x23142a=JSON[_0x39ceac(0xcd)](a201_0x2bae9a[_0x39ceac(0xce)](_0x35d690,_0x39ceac(0xd9))),_0x17b56=_0x23142a[_0x39ceac(0xe7)]||{},_0x5cb580=_0x23142a[_0x39ceac(0xed)]||{},_0x1f8d30=_0x17b56[_0x1c0195]||_0x5cb580[_0x1c0195];if(!_0x1f8d30)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};let _0x55d14d=getInstalledVersion(_0x44d9cb,_0x1c0195);!_0x55d14d&&(_0x55d14d=_0x1f8d30);if(isNonNumericVersion(_0x1f8d30))return{'installed':!![],'version':_0x55d14d,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};const _0x24c428=a201_0xdf5797['coerce'](_0x55d14d),_0x289754=a201_0xdf5797[_0x39ceac(0xd5)](_0x40e253),_0xcc1bdb=_0x24c428&&_0x289754?a201_0xdf5797['lt'](_0x24c428,_0x289754):![];return{'installed':!![],'version':_0x55d14d,'needsUpgrade':_0xcc1bdb,'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40e253,'packageName':_0x1c0195,'stableVersion':_0x4d1f54};}}export function checkSdkVersionSync(_0x3d960e){const _0x136b7f=a201_0x517d4b,_0x4b3711=a201_0x61123f['join'](_0x3d960e,_0x136b7f(0xd3)),_0x34fd01=_0x136b7f(0xe2);if(!a201_0x2bae9a[_0x136b7f(0xef)](_0x4b3711))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};try{const _0x582431=JSON[_0x136b7f(0xcd)](a201_0x2bae9a[_0x136b7f(0xce)](_0x4b3711,_0x136b7f(0xd9))),_0x366616=_0x582431[_0x136b7f(0xe7)]||{},_0x254001=_0x582431[_0x136b7f(0xed)]||{},_0x32468a=_0x366616[_0x34fd01]||_0x254001[_0x34fd01];if(!_0x32468a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};let _0x10946=getInstalledVersion(_0x3d960e,_0x34fd01);!_0x10946&&(_0x10946=_0x32468a);if(isNonNumericVersion(_0x32468a))return{'installed':!![],'version':_0x10946,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};const _0xce2ad0=a201_0xdf5797['coerce'](_0x10946),_0x4eda30=_0xce2ad0?a201_0xdf5797['lt'](_0xce2ad0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x10946,'needsUpgrade':_0x4eda30,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x34fd01,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x465e67){const _0x134823=a201_0x517d4b;if(!_0x465e67[_0x134823(0xeb)])return;const _0x463a79=_0x134823(0xea),_0x37eb3f=_0x134823(0xc9),_0x265e30='\x1b[1m',_0x335285=_0x465e67['packageName']||'@lovrabet/sdk',_0xeb2ce5=_0x465e67[_0x134823(0xde)]||_0x465e67['minVersion'],_0x2ccd41='npm\x20install\x20'+_0x335285+'@'+(_0xeb2ce5||_0x134823(0xdb));console['log'](),console['log'](''+_0x463a79+_0x265e30+_0x134823(0xcc)+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+_0x134823(0xdf)+_0x335285+'@'+_0x465e67[_0x134823(0xe3)]+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+_0x134823(0xee)+_0xeb2ce5+_0x37eb3f),console[_0x134823(0xd0)](_0x463a79+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2ccd41+_0x37eb3f),console['log']();}
1
+ const a202_0x418211=a202_0x2c14;(function(_0x3e1c06,_0x28b601){const _0x2cb3bf=a202_0x2c14,_0xcd5cfc=_0x3e1c06();while(!![]){try{const _0x236256=-parseInt(_0x2cb3bf(0x10d))/0x1+parseInt(_0x2cb3bf(0x10b))/0x2+parseInt(_0x2cb3bf(0x105))/0x3+parseInt(_0x2cb3bf(0x10f))/0x4*(parseInt(_0x2cb3bf(0x10c))/0x5)+-parseInt(_0x2cb3bf(0x108))/0x6+parseInt(_0x2cb3bf(0x115))/0x7*(parseInt(_0x2cb3bf(0x101))/0x8)+parseInt(_0x2cb3bf(0x112))/0x9*(-parseInt(_0x2cb3bf(0x114))/0xa);if(_0x236256===_0x28b601)break;else _0xcd5cfc['push'](_0xcd5cfc['shift']());}catch(_0x157581){_0xcd5cfc['push'](_0xcd5cfc['shift']());}}}(a202_0x43c6,0x5f4b0));import a202_0x543968 from'node:fs';import a202_0x40be29 from'node:path';import a202_0x554e9b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a202_0x2c14(_0x32b8ab,_0x314dfe){_0x32b8ab=_0x32b8ab-0xf0;const _0x43c6b1=a202_0x43c6();let _0x2c1473=_0x43c6b1[_0x32b8ab];return _0x2c1473;}const FALLBACK_MIN_SDK_VERSION=a202_0x418211(0xfa);function isNonNumericVersion(_0x5aef7a){const _0x26afdc=a202_0x418211,_0x2af6e5=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2af6e5[_0x26afdc(0xfd)](_0x236227=>_0x236227['test'](_0x5aef7a));}function getInstalledVersion(_0x4156fe,_0x26682e){const _0x37598f=a202_0x418211;try{const _0x3d50d7=a202_0x40be29[_0x37598f(0xf1)](_0x4156fe,'node_modules',_0x26682e,_0x37598f(0x104));if(a202_0x543968[_0x37598f(0xff)](_0x3d50d7)){const _0x8b97e9=JSON[_0x37598f(0xf4)](a202_0x543968[_0x37598f(0x102)](_0x3d50d7,'utf-8'));return _0x8b97e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1fbc42=a202_0x418211;try{const _0x2b1fc9=await getCdnConfig();return _0x2b1fc9?.[_0x1fbc42(0xfc)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x3ac1cd=a202_0x418211;try{const _0x39530a=await getCdnConfig();return _0x39530a?.[_0x3ac1cd(0xfc)]?.['node']?.['packageName']||_0x3ac1cd(0x111);}catch{return _0x3ac1cd(0x111);}}function a202_0x43c6(){const _0x380c46=['some','stableVersion','existsSync','\x20\x20\x20Stable\x20version:\x20','3220296jpgMxa','readFileSync','needsUpgrade','package.json','1241766fJPjoD','\x1b[1m','\x1b[0m','1282920ooUZPD','npm\x20install\x20','version','1089474VRpqOm','1645gjBwCu','262687AxNiSS','dependencies','2092dLnEUg','latest','@lovrabet/sdk','2998962xuFNtT','devDependencies','20UNEalk','7diWvAx','minVersion','join','\x20\x20\x20Upgrade\x20command:\x20','all','parse','coerce','log','utf8','\x20\x20\x20Current\x20version:\x20','packageName','1.2.0','\x1b[33m','sdk'];a202_0x43c6=function(){return _0x380c46;};return a202_0x43c6();}export async function checkSdkVersion(_0x4516d2){const _0x158dd1=a202_0x418211,_0x429152=a202_0x40be29[_0x158dd1(0xf1)](_0x4516d2,_0x158dd1(0x104)),[_0x4c5f23,_0x930a59]=await Promise[_0x158dd1(0xf3)]([getSdkStableVersion(),getSdkPackageName()]),_0x8c95bf=_0x4c5f23||FALLBACK_MIN_SDK_VERSION;if(!a202_0x543968[_0x158dd1(0xff)](_0x429152))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};try{const _0x59938d=JSON[_0x158dd1(0xf4)](a202_0x543968[_0x158dd1(0x102)](_0x429152,_0x158dd1(0xf7))),_0x491b2c=_0x59938d['dependencies']||{},_0x26b67f=_0x59938d[_0x158dd1(0x113)]||{},_0x2cdf80=_0x491b2c[_0x930a59]||_0x26b67f[_0x930a59];if(!_0x2cdf80)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};let _0x3955a8=getInstalledVersion(_0x4516d2,_0x930a59);!_0x3955a8&&(_0x3955a8=_0x2cdf80);if(isNonNumericVersion(_0x2cdf80))return{'installed':!![],'version':_0x3955a8,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};const _0x1be553=a202_0x554e9b['coerce'](_0x3955a8),_0x323b01=a202_0x554e9b['coerce'](_0x8c95bf),_0x525c32=_0x1be553&&_0x323b01?a202_0x554e9b['lt'](_0x1be553,_0x323b01):![];return{'installed':!![],'version':_0x3955a8,'needsUpgrade':_0x525c32,'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x8c95bf,'packageName':_0x930a59,'stableVersion':_0x4c5f23};}}export function checkSdkVersionSync(_0x393a6c){const _0x51536c=a202_0x418211,_0xd87a04=a202_0x40be29['join'](_0x393a6c,_0x51536c(0x104)),_0x102a95=_0x51536c(0x111);if(!a202_0x543968[_0x51536c(0xff)](_0xd87a04))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};try{const _0xb711a0=JSON[_0x51536c(0xf4)](a202_0x543968['readFileSync'](_0xd87a04,_0x51536c(0xf7))),_0x50582c=_0xb711a0[_0x51536c(0x10e)]||{},_0x5e85c3=_0xb711a0[_0x51536c(0x113)]||{},_0x3cd623=_0x50582c[_0x102a95]||_0x5e85c3[_0x102a95];if(!_0x3cd623)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};let _0x40ea75=getInstalledVersion(_0x393a6c,_0x102a95);!_0x40ea75&&(_0x40ea75=_0x3cd623);if(isNonNumericVersion(_0x3cd623))return{'installed':!![],'version':_0x40ea75,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};const _0x1a65fc=a202_0x554e9b[_0x51536c(0xf5)](_0x40ea75),_0x30e489=_0x1a65fc?a202_0x554e9b['lt'](_0x1a65fc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x40ea75,'needsUpgrade':_0x30e489,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x102a95,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2fa19c){const _0x511989=a202_0x418211;if(!_0x2fa19c[_0x511989(0x103)])return;const _0xe9ee22=_0x511989(0xfb),_0xac59b2=_0x511989(0x107),_0x272551=_0x511989(0x106),_0x594225=_0x2fa19c[_0x511989(0xf9)]||_0x511989(0x111),_0x447358=_0x2fa19c[_0x511989(0xfe)]||_0x2fa19c[_0x511989(0xf0)],_0x4eea62=_0x511989(0x109)+_0x594225+'@'+(_0x447358||_0x511989(0x110));console[_0x511989(0xf6)](),console['log'](''+_0xe9ee22+_0x272551+'↪\x20SDK\x20update\x20available'+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf8)+_0x594225+'@'+_0x2fa19c[_0x511989(0x10a)]+_0xac59b2),console['log'](_0xe9ee22+_0x511989(0x100)+_0x447358+_0xac59b2),console[_0x511989(0xf6)](_0xe9ee22+_0x511989(0xf2)+_0x4eea62+_0xac59b2),console['log']();}
@@ -1 +1 @@
1
- (function(_0x17a8d0,_0x88e9b8){const _0x49e1a5=a202_0x42fc,_0x12f36f=_0x17a8d0();while(!![]){try{const _0x31d328=parseInt(_0x49e1a5(0xf6))/0x1+-parseInt(_0x49e1a5(0xfc))/0x2+-parseInt(_0x49e1a5(0xdb))/0x3+-parseInt(_0x49e1a5(0xdc))/0x4+-parseInt(_0x49e1a5(0xf8))/0x5*(-parseInt(_0x49e1a5(0xfe))/0x6)+parseInt(_0x49e1a5(0xe0))/0x7+parseInt(_0x49e1a5(0xe2))/0x8;if(_0x31d328===_0x88e9b8)break;else _0x12f36f['push'](_0x12f36f['shift']());}catch(_0x587a4e){_0x12f36f['push'](_0x12f36f['shift']());}}}(a202_0xc3bb,0x430c1));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a202_0x3e3448 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(_0x40d1ff){const _0x59514d=a202_0x42fc,_0x37da92=_0x40d1ff['stableVersion']||'latest';return _0x59514d(0xea)+NPM_PACKAGE_NAME+'@'+_0x37da92;}function getCurrentCliVersion(){const _0x319254=a202_0x42fc;try{const _0x3aaf05=fileURLToPath(import.meta.url),_0x4e0296=resolve(dirname(_0x3aaf05),_0x319254(0xe6)),_0x327963=resolve(_0x4e0296,_0x319254(0xd9)),_0x5adb35=JSON[_0x319254(0xfd)](readFileSync(_0x327963,'utf-8'));return _0x5adb35[_0x319254(0xdf)]||_0x319254(0xf0);}catch{return _0x319254(0xf0);}}export async function checkCliVersion(){const _0x5db61f=a202_0x42fc,_0xe288cf=getCurrentCliVersion(),_0x1cb69a=await getCliVersionPolicy(),_0x1bc126=_0x1cb69a?.[_0x5db61f(0xfa)]||null,_0x4c06de=_0x1cb69a?.[_0x5db61f(0xec)]||null;let _0x5534a7=![],_0x1ea8cc=![];const _0x49a0a3=a202_0x3e3448[_0x5db61f(0xeb)](_0xe288cf);if(_0x49a0a3&&_0x1bc126)try{const _0x537ac4=a202_0x3e3448[_0x5db61f(0xeb)](_0x1bc126);if(_0x537ac4)_0x5534a7=a202_0x3e3448['lt'](_0x49a0a3,_0x537ac4);}catch{}if(_0x49a0a3&&_0x4c06de)try{const _0x1e8499=a202_0x3e3448[_0x5db61f(0xeb)](_0x4c06de);if(_0x1e8499)_0x1ea8cc=a202_0x3e3448['lt'](_0x49a0a3,_0x1e8499);}catch{}return _0x1ea8cc&&(_0x5534a7=!![]),{'currentVersion':_0xe288cf,'stableVersion':_0x1bc126,'minimumVersion':_0x4c06de,'needsUpgrade':_0x5534a7,'belowMinimum':_0x1ea8cc,'isPreRelease':![],'upgradeMessage':_0x1cb69a?.[_0x5db61f(0xf2)],'minimumVersionMessage':_0x1cb69a?.[_0x5db61f(0xfb)]};}function a202_0xc3bb(){const _0x2a89d5=['upgradeMessage','\x20\x20\x20Recommended\x20stable:\x20','\x1b[31m','\x20\x20\x20','192678PfVIbN','↪\x20New\x20version\x20available','873640LqlRxh','\x1b[0m','stableVersion','minimumVersionMessage','521444fBtipo','parse','12AVccHq','package.json','Minimum\x20supported:\x20','1331073ZgKoxn','1807256nHkUwK','belowMinimum','validation','version','3686445lUpWIG','\x1b[1m','2896664UdIqEF','currentVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','../..','needsUpgrade','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','coerce','minimumVersion','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[33m','1.0.0','log'];a202_0xc3bb=function(){return _0x2a89d5;};return a202_0xc3bb();}export function printCliUpgradeWarning(_0xe7906f){const _0x1c989c=a202_0x42fc;if(!_0xe7906f[_0x1c989c(0xe7)]&&!_0xe7906f[_0x1c989c(0xdd)])return;const _0x553a86=_0x1c989c(0xf4),_0x779b90=_0x1c989c(0xef),_0x3ed7ff=_0x1c989c(0xf9),_0x544593=_0x1c989c(0xe1),_0x207551=getCliUpgradeCommand(_0xe7906f);console['log'](),_0xe7906f[_0x1c989c(0xdd)]?(console[_0x1c989c(0xf1)](''+_0x553a86+_0x544593+_0x1c989c(0xe4)+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xee)+_0xe7906f[_0x1c989c(0xe3)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xec)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xed)+_0xe7906f[_0x1c989c(0xec)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xfa)]&&_0xe7906f['stableVersion']!==_0xe7906f[_0x1c989c(0xec)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xf3)+_0xe7906f[_0x1c989c(0xfa)]+_0x3ed7ff),_0xe7906f[_0x1c989c(0xfb)]&&console[_0x1c989c(0xf1)](_0x553a86+_0x1c989c(0xf5)+_0xe7906f['minimumVersionMessage']+_0x3ed7ff),console['log'](_0x553a86+_0x1c989c(0xe9)+_0x207551+_0x3ed7ff)):(console[_0x1c989c(0xf1)](''+_0x779b90+_0x544593+_0x1c989c(0xf7)+_0x3ed7ff),console['log'](_0x779b90+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xe7906f[_0x1c989c(0xe3)]+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x779b90+'\x20\x20\x20Stable\x20version:\x20'+_0xe7906f[_0x1c989c(0xfa)]+_0x3ed7ff),_0xe7906f['upgradeMessage']&&console[_0x1c989c(0xf1)](_0x779b90+_0x1c989c(0xf5)+_0xe7906f['upgradeMessage']+_0x3ed7ff),console[_0x1c989c(0xf1)](_0x779b90+_0x1c989c(0xe9)+_0x207551+_0x3ed7ff)),console['log']();}function a202_0x42fc(_0x1d5881,_0xb022f0){_0x1d5881=_0x1d5881-0xd9;const _0xc3bb46=a202_0xc3bb();let _0x42fcb1=_0xc3bb46[_0x1d5881];return _0x42fcb1;}export function assertCliVersionSupported(_0x44941d){const _0x3dc2b3=a202_0x42fc;if(!_0x44941d[_0x3dc2b3(0xdd)])return;const _0x2a2629=[_0x44941d[_0x3dc2b3(0xfb)],'Current\x20version:\x20'+_0x44941d[_0x3dc2b3(0xe3)],_0x44941d[_0x3dc2b3(0xec)]?_0x3dc2b3(0xda)+_0x44941d[_0x3dc2b3(0xec)]:null,_0x3dc2b3(0xe8)+getCliUpgradeCommand(_0x44941d)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x3dc2b3(0xde)](_0x3dc2b3(0xe5),_0x2a2629);}
1
+ (function(_0x3cb6ab,_0x14f51d){const _0x29cdf5=a203_0x42d4,_0x53314d=_0x3cb6ab();while(!![]){try{const _0x469fc4=parseInt(_0x29cdf5(0x10e))/0x1*(parseInt(_0x29cdf5(0x113))/0x2)+parseInt(_0x29cdf5(0xfc))/0x3+-parseInt(_0x29cdf5(0x114))/0x4+parseInt(_0x29cdf5(0xf9))/0x5*(-parseInt(_0x29cdf5(0x112))/0x6)+-parseInt(_0x29cdf5(0xff))/0x7*(parseInt(_0x29cdf5(0x108))/0x8)+-parseInt(_0x29cdf5(0x10a))/0x9+parseInt(_0x29cdf5(0xfa))/0xa*(parseInt(_0x29cdf5(0x107))/0xb);if(_0x469fc4===_0x14f51d)break;else _0x53314d['push'](_0x53314d['shift']());}catch(_0x16d748){_0x53314d['push'](_0x53314d['shift']());}}}(a203_0x1771,0xe96ae));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a203_0x258a2d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a203_0x42d4(_0x127968,_0x3577b7){_0x127968=_0x127968-0xf9;const _0x17713f=a203_0x1771();let _0x42d489=_0x17713f[_0x127968];return _0x42d489;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a203_0x1771(){const _0x3d6b67=['1.0.0','28QmmiGg','version','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Minimum\x20supported:\x20','stableVersion','Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','869kuoWyU','2854648pAjprm','join','2813400xKQoyo','\x20\x20\x20Recommended\x20stable:\x20','validation','coerce','5JFzwrd','\x1b[1m','minimumVersion','minimumVersionMessage','3420BWEPPf','195298UWokSV','3392708zvEFpP','../..','npm\x20install\x20-g\x20','\x20\x20\x20Upgrade\x20command:\x20','utf-8','parse','upgradeMessage','Minimum\x20supported:\x20','\x1b[31m','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','\x20\x20\x20','currentVersion','log','8115QyDYsU','408880ugpvEP','\x1b[0m','2252676jUcNMj','Upgrade\x20command:\x20'];a203_0x1771=function(){return _0x3d6b67;};return a203_0x1771();}export function getCliUpgradeCommand(_0x361810){const _0x24bf38=a203_0x42d4,_0x40c8cf=_0x361810[_0x24bf38(0x104)]||_0x24bf38(0x11d);return _0x24bf38(0x116)+NPM_PACKAGE_NAME+'@'+_0x40c8cf;}function getCurrentCliVersion(){const _0x444556=a203_0x42d4;try{const _0x3bf50a=fileURLToPath(import.meta.url),_0x480277=resolve(dirname(_0x3bf50a),_0x444556(0x115)),_0x481596=resolve(_0x480277,'package.json'),_0xfbd487=JSON[_0x444556(0x119)](readFileSync(_0x481596,_0x444556(0x118)));return _0xfbd487[_0x444556(0x100)]||'1.0.0';}catch{return _0x444556(0xfe);}}export async function checkCliVersion(){const _0x5b81f1=a203_0x42d4,_0x2f124d=getCurrentCliVersion(),_0x30588b=await getCliVersionPolicy(),_0x4f2041=_0x30588b?.[_0x5b81f1(0x104)]||null,_0x37b0b3=_0x30588b?.['minimumVersion']||null;let _0x5dc031=![],_0x325e3a=![];const _0x5bbcc6=a203_0x258a2d[_0x5b81f1(0x10d)](_0x2f124d);if(_0x5bbcc6&&_0x4f2041)try{const _0x2fb1d6=a203_0x258a2d['coerce'](_0x4f2041);if(_0x2fb1d6)_0x5dc031=a203_0x258a2d['lt'](_0x5bbcc6,_0x2fb1d6);}catch{}if(_0x5bbcc6&&_0x37b0b3)try{const _0x3d3829=a203_0x258a2d['coerce'](_0x37b0b3);if(_0x3d3829)_0x325e3a=a203_0x258a2d['lt'](_0x5bbcc6,_0x3d3829);}catch{}return _0x325e3a&&(_0x5dc031=!![]),{'currentVersion':_0x2f124d,'stableVersion':_0x4f2041,'minimumVersion':_0x37b0b3,'needsUpgrade':_0x5dc031,'belowMinimum':_0x325e3a,'isPreRelease':![],'upgradeMessage':_0x30588b?.[_0x5b81f1(0x11a)],'minimumVersionMessage':_0x30588b?.[_0x5b81f1(0x111)]};}export function printCliUpgradeWarning(_0x2e8404){const _0x1d6e6e=a203_0x42d4;if(!_0x2e8404['needsUpgrade']&&!_0x2e8404[_0x1d6e6e(0x11f)])return;const _0x1fe66a=_0x1d6e6e(0x11c),_0x13bce8=_0x1d6e6e(0x101),_0x46dfe2=_0x1d6e6e(0xfb),_0x14cd1d=_0x1d6e6e(0x10f),_0x539a01=getCliUpgradeCommand(_0x2e8404);console[_0x1d6e6e(0x122)](),_0x2e8404[_0x1d6e6e(0x11f)]?(console[_0x1d6e6e(0x122)](''+_0x1fe66a+_0x14cd1d+_0x1d6e6e(0x102)+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x11e)+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x103)+_0x2e8404[_0x1d6e6e(0x110)]+_0x46dfe2),_0x2e8404['stableVersion']&&_0x2e8404[_0x1d6e6e(0x104)]!==_0x2e8404[_0x1d6e6e(0x110)]&&console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x10b)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x111)]&&console['log'](_0x1fe66a+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x111)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x1fe66a+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)):(console[_0x1d6e6e(0x122)](''+_0x13bce8+_0x14cd1d+'↪\x20New\x20version\x20available'+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2e8404[_0x1d6e6e(0x121)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x106)+_0x2e8404[_0x1d6e6e(0x104)]+_0x46dfe2),_0x2e8404[_0x1d6e6e(0x11a)]&&console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x120)+_0x2e8404[_0x1d6e6e(0x11a)]+_0x46dfe2),console[_0x1d6e6e(0x122)](_0x13bce8+_0x1d6e6e(0x117)+_0x539a01+_0x46dfe2)),console[_0x1d6e6e(0x122)]();}export function assertCliVersionSupported(_0x547a43){const _0x1db844=a203_0x42d4;if(!_0x547a43[_0x1db844(0x11f)])return;const _0x47aac3=[_0x547a43['minimumVersionMessage'],_0x1db844(0x105)+_0x547a43[_0x1db844(0x121)],_0x547a43['minimumVersion']?_0x1db844(0x11b)+_0x547a43['minimumVersion']:null,_0x1db844(0xfd)+getCliUpgradeCommand(_0x547a43)]['filter'](Boolean)[_0x1db844(0x109)]('\x0a');throw CliErrors[_0x1db844(0x10c)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x47aac3);}
@@ -1 +1 @@
1
- function a203_0x3624(){const _0x47dacf=['1269936ExPLQy','abort','upgradeMessage','string','1653060jKxvun','json','1564548ByrmCx','length','minimumVersion','application/json','signal','minVersion','365015WvSYAq','cli','2301912lneYKU','36BlsVAm','2412dNQiUN','latestVersion','1094151oUTTYW','stableVersion','object','2CSQiFV','trim'];a203_0x3624=function(){return _0x47dacf;};return a203_0x3624();}(function(_0x59c798,_0x53a6ab){const _0x430ebc=a203_0x1101,_0x1045db=_0x59c798();while(!![]){try{const _0x47d16f=parseInt(_0x430ebc(0x1ef))/0x1+parseInt(_0x430ebc(0x1f4))/0x2*(parseInt(_0x430ebc(0x1f1))/0x3)+parseInt(_0x430ebc(0x1e5))/0x4+-parseInt(_0x430ebc(0x1e3))/0x5+-parseInt(_0x430ebc(0x1ee))/0x6*(parseInt(_0x430ebc(0x1eb))/0x7)+parseInt(_0x430ebc(0x1ed))/0x8+-parseInt(_0x430ebc(0x1f6))/0x9;if(_0x47d16f===_0x53a6ab)break;else _0x1045db['push'](_0x1045db['shift']());}catch(_0x2e41b1){_0x1045db['push'](_0x1045db['shift']());}}}(a203_0x3624,0x3fd2b));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x49e62c){const _0x4ff9d7=a203_0x1101;return typeof _0x49e62c===_0x4ff9d7(0x1e2)&&_0x49e62c['trim']()[_0x4ff9d7(0x1e6)]>0x0?_0x49e62c[_0x4ff9d7(0x1f5)]():null;}function normalizeCliVersionPolicy(_0x47a3f7){const _0x1420ca=a203_0x1101;if(!_0x47a3f7||typeof _0x47a3f7!=='object')return null;const _0x33e85c=_0x47a3f7,_0x3060b9=_0x33e85c[_0x1420ca(0x1ec)]&&typeof _0x33e85c[_0x1420ca(0x1ec)]===_0x1420ca(0x1f3)?_0x33e85c[_0x1420ca(0x1ec)]:_0x33e85c,_0x301be4=pickString(_0x3060b9[_0x1420ca(0x1f2)])||pickString(_0x3060b9[_0x1420ca(0x1f0)])||pickString(_0x3060b9['recommendedVersion']),_0xec6bba=pickString(_0x3060b9[_0x1420ca(0x1e7)])||pickString(_0x3060b9[_0x1420ca(0x1ea)]);if(!_0x301be4&&!_0xec6bba)return null;return{'stableVersion':_0x301be4,'minimumVersion':_0xec6bba,'upgradeMessage':pickString(_0x3060b9[_0x1420ca(0x1e1)])||undefined,'minimumVersionMessage':pickString(_0x3060b9['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0xfbea0b=a203_0x1101,_0xac6253=new AbortController(),_0x1f2e1b=setTimeout(()=>_0xac6253[_0xfbea0b(0x1e0)](),FETCH_TIMEOUT_MS);try{const _0xc0c524=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xfbea0b(0x1e8)},'signal':_0xac6253[_0xfbea0b(0x1e9)]});if(!_0xc0c524['ok'])return null;const _0x26b8e4=await _0xc0c524[_0xfbea0b(0x1e4)]();return normalizeCliVersionPolicy(_0x26b8e4);}catch{return null;}finally{clearTimeout(_0x1f2e1b);}}function a203_0x1101(_0x13bb6f,_0x3e32ab){_0x13bb6f=_0x13bb6f-0x1e0;const _0x3624f9=a203_0x3624();let _0x11017e=_0x3624f9[_0x13bb6f];return _0x11017e;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xf52918=Date['now']();if(hasCachedPolicy){const _0x252130=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf52918-cacheTime<_0x252130)return cachedPolicy;}const _0x253d4f=await fetchCliVersionPolicy();return cachedPolicy=_0x253d4f,cacheTime=_0xf52918,hasCachedPolicy=!![],_0x253d4f;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x15b233,_0x3cad88){const _0x1d012e=a204_0xce31,_0xc0bc46=_0x15b233();while(!![]){try{const _0x1ed1f7=-parseInt(_0x1d012e(0xee))/0x1+-parseInt(_0x1d012e(0xde))/0x2+parseInt(_0x1d012e(0xf2))/0x3*(parseInt(_0x1d012e(0xec))/0x4)+parseInt(_0x1d012e(0xef))/0x5*(parseInt(_0x1d012e(0xe3))/0x6)+parseInt(_0x1d012e(0xe6))/0x7+-parseInt(_0x1d012e(0xe1))/0x8+parseInt(_0x1d012e(0xe7))/0x9*(parseInt(_0x1d012e(0xe9))/0xa);if(_0x1ed1f7===_0x3cad88)break;else _0xc0bc46['push'](_0xc0bc46['shift']());}catch(_0x471965){_0xc0bc46['push'](_0xc0bc46['shift']());}}}(a204_0x5caf,0xba946));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3ab0aa){const _0x4c18d0=a204_0xce31;return typeof _0x3ab0aa===_0x4c18d0(0xf3)&&_0x3ab0aa[_0x4c18d0(0xf4)]()['length']>0x0?_0x3ab0aa[_0x4c18d0(0xf4)]():null;}function normalizeCliVersionPolicy(_0x35276e){const _0x444cdf=a204_0xce31;if(!_0x35276e||typeof _0x35276e!==_0x444cdf(0xdf))return null;const _0x142e0a=_0x35276e,_0x4a48c7=_0x142e0a[_0x444cdf(0xe8)]&&typeof _0x142e0a[_0x444cdf(0xe8)]===_0x444cdf(0xdf)?_0x142e0a[_0x444cdf(0xe8)]:_0x142e0a,_0x5df5af=pickString(_0x4a48c7[_0x444cdf(0xe4)])||pickString(_0x4a48c7[_0x444cdf(0xe0)])||pickString(_0x4a48c7[_0x444cdf(0xe2)]),_0x3cf975=pickString(_0x4a48c7[_0x444cdf(0xeb)])||pickString(_0x4a48c7[_0x444cdf(0xf1)]);if(!_0x5df5af&&!_0x3cf975)return null;return{'stableVersion':_0x5df5af,'minimumVersion':_0x3cf975,'upgradeMessage':pickString(_0x4a48c7['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a48c7['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x4377b8=a204_0xce31,_0x4ab5be=new AbortController(),_0x22a798=setTimeout(()=>_0x4ab5be['abort'](),FETCH_TIMEOUT_MS);try{const _0x331f5a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4377b8(0xed)},'signal':_0x4ab5be[_0x4377b8(0xea)]});if(!_0x331f5a['ok'])return null;const _0x43fbd2=await _0x331f5a[_0x4377b8(0xe5)]();return normalizeCliVersionPolicy(_0x43fbd2);}catch{return null;}finally{clearTimeout(_0x22a798);}}function a204_0x5caf(){const _0x5064b5=['object','latestVersion','11386832tEbFnE','recommendedVersion','2124hwbFXO','stableVersion','json','3373951mNPrvk','1437579NiZlPG','cli','150DWIZDV','signal','minimumVersion','4cOLeay','application/json','626749lJMoAe','485MaVgBs','now','minVersion','3481962cpCepX','string','trim','2517234oQwGal'];a204_0x5caf=function(){return _0x5064b5;};return a204_0x5caf();}function a204_0xce31(_0x173dfc,_0x2b5c94){_0x173dfc=_0x173dfc-0xde;const _0x5caf26=a204_0x5caf();let _0xce31ab=_0x5caf26[_0x173dfc];return _0xce31ab;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4cd044=a204_0xce31,_0x14a47c=Date[_0x4cd044(0xf0)]();if(hasCachedPolicy){const _0x31b716=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x14a47c-cacheTime<_0x31b716)return cachedPolicy;}const _0x5e5838=await fetchCliVersionPolicy();return cachedPolicy=_0x5e5838,cacheTime=_0x14a47c,hasCachedPolicy=!![],_0x5e5838;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a204_0x59912c=a204_0x37f6;(function(_0x5759e5,_0x27aca4){const _0x3cc45e=a204_0x37f6,_0x3d52ae=_0x5759e5();while(!![]){try{const _0x25566c=-parseInt(_0x3cc45e(0x123))/0x1*(-parseInt(_0x3cc45e(0x11e))/0x2)+parseInt(_0x3cc45e(0x120))/0x3+-parseInt(_0x3cc45e(0x122))/0x4+-parseInt(_0x3cc45e(0x11a))/0x5*(parseInt(_0x3cc45e(0x119))/0x6)+-parseInt(_0x3cc45e(0x121))/0x7+-parseInt(_0x3cc45e(0x125))/0x8*(-parseInt(_0x3cc45e(0x11d))/0x9)+parseInt(_0x3cc45e(0x11b))/0xa;if(_0x25566c===_0x27aca4)break;else _0x3d52ae['push'](_0x3d52ae['shift']());}catch(_0x3913d7){_0x3d52ae['push'](_0x3d52ae['shift']());}}}(a204_0x176d,0x8b053));function a204_0x37f6(_0x5588b4,_0x4a482a){_0x5588b4=_0x5588b4-0x119;const _0x176d99=a204_0x176d();let _0x37f6cd=_0x176d99[_0x5588b4];return _0x37f6cd;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a204_0x5f49db,getMultiAppConfigs as a204_0x4da389,getTemplateBaseUrl as a204_0x29232f}from'../context.js';function a204_0x176d(){const _0x33127f=['project','1678647GBsagb','5303585hLeTFG','2783304uXmZpQ','1zAjzTj','string','153704SPvEqc','42360KFXGeX','620NGpDuW','8390250MhbQdH','env','351gAmbHR','1500934FYWasK'];a204_0x176d=function(){return _0x33127f;};return a204_0x176d();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xf557a7){const _0x50e0c2=a204_0x37f6,_0x42056b=readRawConfig(_0xf557a7);return _0x42056b[_0x50e0c2(0x11c)]&&typeof _0x42056b[_0x50e0c2(0x11c)]===_0x50e0c2(0x124)&&initEnv(_0x42056b[_0x50e0c2(0x11c)]),_0x42056b;}export function getConfigAppCode(){return a204_0x5f49db();}export function getMultiAppConfigs(_0x2711c3=a204_0x59912c(0x11f)){return a204_0x4da389(_0x2711c3);}export function getTemplateBaseUrl(){return a204_0x29232f();}
1
+ function a205_0x4537(){const _0x4c0815=['114877AxeTNp','225IaMDXP','string','env','499846JavjjI','6332070PdIPcG','2805nraaHM','project','1014146iQUIUX','2384jXwfCu','36blwEwH','12jHGuJt','16456anYPGo','8016oHQzAh','199448BhuaBT'];a205_0x4537=function(){return _0x4c0815;};return a205_0x4537();}const a205_0x21bfd3=a205_0x38bb;(function(_0x21096d,_0x3278a1){const _0x1a8dd6=a205_0x38bb,_0x4bdccc=_0x21096d();while(!![]){try{const _0x2628d2=parseInt(_0x1a8dd6(0x133))/0x1+-parseInt(_0x1a8dd6(0x13e))/0x2*(parseInt(_0x1a8dd6(0x136))/0x3)+-parseInt(_0x1a8dd6(0x134))/0x4*(parseInt(_0x1a8dd6(0x131))/0x5)+-parseInt(_0x1a8dd6(0x135))/0x6*(-parseInt(_0x1a8dd6(0x13a))/0x7)+parseInt(_0x1a8dd6(0x139))/0x8*(-parseInt(_0x1a8dd6(0x13b))/0x9)+parseInt(_0x1a8dd6(0x130))/0xa+-parseInt(_0x1a8dd6(0x137))/0xb*(-parseInt(_0x1a8dd6(0x138))/0xc);if(_0x2628d2===_0x3278a1)break;else _0x4bdccc['push'](_0x4bdccc['shift']());}catch(_0x4f3296){_0x4bdccc['push'](_0x4bdccc['shift']());}}}(a205_0x4537,0xc0570));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a205_0x17cb08,getMultiAppConfigs as a205_0x4d1896,getTemplateBaseUrl as a205_0x1a825b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4f14d1){const _0x539994=a205_0x38bb,_0x1df92b=readRawConfig(_0x4f14d1);return _0x1df92b[_0x539994(0x13d)]&&typeof _0x1df92b[_0x539994(0x13d)]===_0x539994(0x13c)&&initEnv(_0x1df92b[_0x539994(0x13d)]),_0x1df92b;}export function getConfigAppCode(){return a205_0x17cb08();}function a205_0x38bb(_0x273f2c,_0x5076a4){_0x273f2c=_0x273f2c-0x130;const _0x453741=a205_0x4537();let _0x38bb18=_0x453741[_0x273f2c];return _0x38bb18;}export function getMultiAppConfigs(_0x5e9386=a205_0x21bfd3(0x132)){return a205_0x4d1896(_0x5e9386);}export function getTemplateBaseUrl(){return a205_0x1a825b();}
@@ -1 +1 @@
1
- (function(_0x3d4583,_0x153b19){const _0x1f5477=a205_0xbac2,_0x25b028=_0x3d4583();while(!![]){try{const _0x10e2b8=-parseInt(_0x1f5477(0x171))/0x1+parseInt(_0x1f5477(0x17c))/0x2*(-parseInt(_0x1f5477(0x178))/0x3)+-parseInt(_0x1f5477(0x16e))/0x4*(parseInt(_0x1f5477(0x16b))/0x5)+parseInt(_0x1f5477(0x16f))/0x6*(parseInt(_0x1f5477(0x17b))/0x7)+parseInt(_0x1f5477(0x175))/0x8*(-parseInt(_0x1f5477(0x173))/0x9)+parseInt(_0x1f5477(0x16d))/0xa+parseInt(_0x1f5477(0x170))/0xb*(parseInt(_0x1f5477(0x172))/0xc);if(_0x10e2b8===_0x153b19)break;else _0x25b028['push'](_0x25b028['shift']());}catch(_0x452e85){_0x25b028['push'](_0x25b028['shift']());}}}(a205_0x4ee8,0xb5f20));import a205_0x3ba429 from'node:path';function a205_0x4ee8(){const _0x113ade=['7BBvCJJ','178KTttpX','24605RYXMop','readdirSync','10282860VJgUWW','4AgwvRe','466350HWnktY','32290885pxbATI','915032aOBuOM','12GVeeNF','9cYHCad','name','11708488fshulp','join','copyFileSync','30768WQpOvM','error','mkdirSync'];a205_0x4ee8=function(){return _0x113ade;};return a205_0x4ee8();}import a205_0x35502d from'node:fs';function a205_0xbac2(_0x5e6e5a,_0x5a7d78){_0x5e6e5a=_0x5e6e5a-0x16b;const _0x4ee8dc=a205_0x4ee8();let _0xbac244=_0x4ee8dc[_0x5e6e5a];return _0xbac244;}export async function copyDirectory(_0x3acd4f,_0x100810){const _0x2d8fc9=a205_0xbac2;try{const _0x2b700d=a205_0x35502d[_0x2d8fc9(0x16c)](_0x3acd4f,{'withFileTypes':!![]});a205_0x35502d[_0x2d8fc9(0x17a)](_0x100810,{'recursive':!![]});for(const _0x5d23ab of _0x2b700d){const _0x4c512d=a205_0x3ba429[_0x2d8fc9(0x176)](_0x3acd4f,_0x5d23ab[_0x2d8fc9(0x174)]),_0x3db3c1=a205_0x3ba429[_0x2d8fc9(0x176)](_0x100810,_0x5d23ab['name']);_0x5d23ab['isDirectory']()?await copyDirectory(_0x4c512d,_0x3db3c1):a205_0x35502d[_0x2d8fc9(0x177)](_0x4c512d,_0x3db3c1);}}catch(_0x50b13c){console[_0x2d8fc9(0x179)]('复制目录时出错:',_0x50b13c);}}
1
+ function a206_0x2ac4(){const _0x70ac0a=['301KYegFH','join','3487479WXiVPr','copyFileSync','2860536eqalci','mkdirSync','4776930ZcYRqg','1656166CXFbNl','name','1299985WonsDg','159000HCnidb','11460610SVvYov','error','9XzucGc','1yNRKSJ','复制目录时出错:'];a206_0x2ac4=function(){return _0x70ac0a;};return a206_0x2ac4();}(function(_0x5734da,_0x41a770){const _0x4fc3ea=a206_0x1dbf,_0xbbf774=_0x5734da();while(!![]){try{const _0x2d229e=parseInt(_0x4fc3ea(0xc9))/0x1*(parseInt(_0x4fc3ea(0xc2))/0x2)+-parseInt(_0x4fc3ea(0xbd))/0x3+parseInt(_0x4fc3ea(0xbf))/0x4+-parseInt(_0x4fc3ea(0xc4))/0x5+parseInt(_0x4fc3ea(0xc1))/0x6+parseInt(_0x4fc3ea(0xbb))/0x7*(parseInt(_0x4fc3ea(0xc5))/0x8)+parseInt(_0x4fc3ea(0xc8))/0x9*(-parseInt(_0x4fc3ea(0xc6))/0xa);if(_0x2d229e===_0x41a770)break;else _0xbbf774['push'](_0xbbf774['shift']());}catch(_0x37938a){_0xbbf774['push'](_0xbbf774['shift']());}}}(a206_0x2ac4,0x98b26));function a206_0x1dbf(_0x579d8c,_0x58bc97){_0x579d8c=_0x579d8c-0xbb;const _0x2ac403=a206_0x2ac4();let _0x1dbf5b=_0x2ac403[_0x579d8c];return _0x1dbf5b;}import a206_0x2e267c from'node:path';import a206_0x313527 from'node:fs';export async function copyDirectory(_0x539fff,_0x46a554){const _0x44121b=a206_0x1dbf;try{const _0x11bc43=a206_0x313527['readdirSync'](_0x539fff,{'withFileTypes':!![]});a206_0x313527[_0x44121b(0xc0)](_0x46a554,{'recursive':!![]});for(const _0x368d30 of _0x11bc43){const _0x10e55a=a206_0x2e267c[_0x44121b(0xbc)](_0x539fff,_0x368d30[_0x44121b(0xc3)]),_0x5d4279=a206_0x2e267c['join'](_0x46a554,_0x368d30['name']);_0x368d30['isDirectory']()?await copyDirectory(_0x10e55a,_0x5d4279):a206_0x313527[_0x44121b(0xbe)](_0x10e55a,_0x5d4279);}}catch(_0x55eba8){console[_0x44121b(0xc7)](_0x44121b(0xca),_0x55eba8);}}
@@ -1 +1 @@
1
- (function(_0x33c69f,_0x5dd7e0){const _0x5a1575=a206_0x159f,_0x4d1f5e=_0x33c69f();while(!![]){try{const _0x5cb79c=-parseInt(_0x5a1575(0xdc))/0x1*(parseInt(_0x5a1575(0xe6))/0x2)+-parseInt(_0x5a1575(0xe3))/0x3*(parseInt(_0x5a1575(0xe0))/0x4)+-parseInt(_0x5a1575(0xde))/0x5*(-parseInt(_0x5a1575(0xdf))/0x6)+parseInt(_0x5a1575(0xe9))/0x7+-parseInt(_0x5a1575(0xe1))/0x8+-parseInt(_0x5a1575(0xe2))/0x9*(-parseInt(_0x5a1575(0xe7))/0xa)+parseInt(_0x5a1575(0xe8))/0xb;if(_0x5cb79c===_0x5dd7e0)break;else _0x4d1f5e['push'](_0x4d1f5e['shift']());}catch(_0x47e554){_0x4d1f5e['push'](_0x4d1f5e['shift']());}}}(a206_0xa18c,0x7936b));function a206_0x159f(_0x40ea4d,_0x571541){_0x40ea4d=_0x40ea4d-0xdc;const _0xa18cc7=a206_0xa18c();let _0x159f77=_0xa18cc7[_0x40ea4d];return _0x159f77;}function a206_0xa18c(){const _0x5dbccc=['54lplocf','592017KMiTtx','trim','number','86gbEdLF','1392100YJaOZo','513623PdYFkc','4622233YstFul','object','string','5385cukzqU','isFinite','5iLzPwd','1066902kSVuBy','12NiPZpN','3200208xoBVkH'];a206_0xa18c=function(){return _0x5dbccc;};return a206_0xa18c();}function toFiniteNumber(_0x39c0bd){const _0x101ea9=a206_0x159f;if(typeof _0x39c0bd===_0x101ea9(0xe5)&&Number['isFinite'](_0x39c0bd))return _0x39c0bd;if(typeof _0x39c0bd===_0x101ea9(0xeb)){const _0x47984f=_0x39c0bd[_0x101ea9(0xe4)]();if(!_0x47984f)return undefined;const _0x24a631=Number(_0x47984f);if(Number[_0x101ea9(0xdd)](_0x24a631))return _0x24a631;}return undefined;}export function normalizeEntityWithIdResponse(_0x59f5cd){const _0x2c2e05=a206_0x159f,_0x474a5c=toFiniteNumber(_0x59f5cd);if(_0x474a5c!==undefined)return{'id':_0x474a5c,'entity':{'id':_0x474a5c}};if(!_0x59f5cd||typeof _0x59f5cd!==_0x2c2e05(0xea))return{'id':undefined,'entity':{}};const _0x1d4a68={..._0x59f5cd},_0x2683a3=toFiniteNumber(_0x1d4a68['id']);return _0x2683a3!==undefined&&(_0x1d4a68['id']=_0x2683a3),{'id':_0x2683a3,'entity':_0x1d4a68};}
1
+ (function(_0x190ecb,_0x4c17c4){const _0x2a7102=a207_0x3979,_0x2855c4=_0x190ecb();while(!![]){try{const _0xef2ce1=parseInt(_0x2a7102(0x118))/0x1*(parseInt(_0x2a7102(0x11c))/0x2)+parseInt(_0x2a7102(0x122))/0x3*(parseInt(_0x2a7102(0x121))/0x4)+parseInt(_0x2a7102(0x120))/0x5+-parseInt(_0x2a7102(0x124))/0x6*(-parseInt(_0x2a7102(0x11e))/0x7)+parseInt(_0x2a7102(0x11d))/0x8*(-parseInt(_0x2a7102(0x116))/0x9)+-parseInt(_0x2a7102(0x117))/0xa*(-parseInt(_0x2a7102(0x11f))/0xb)+-parseInt(_0x2a7102(0x123))/0xc;if(_0xef2ce1===_0x4c17c4)break;else _0x2855c4['push'](_0x2855c4['shift']());}catch(_0x4b9618){_0x2855c4['push'](_0x2855c4['shift']());}}}(a207_0x29fe,0x2ae63));function toFiniteNumber(_0x1da8ab){const _0x100c9b=a207_0x3979;if(typeof _0x1da8ab==='number'&&Number[_0x100c9b(0x11a)](_0x1da8ab))return _0x1da8ab;if(typeof _0x1da8ab===_0x100c9b(0x11b)){const _0x5754eb=_0x1da8ab[_0x100c9b(0x115)]();if(!_0x5754eb)return undefined;const _0x9d8514=Number(_0x5754eb);if(Number[_0x100c9b(0x11a)](_0x9d8514))return _0x9d8514;}return undefined;}function a207_0x3979(_0x125a6a,_0x532265){_0x125a6a=_0x125a6a-0x115;const _0x29fe6f=a207_0x29fe();let _0x397967=_0x29fe6f[_0x125a6a];return _0x397967;}export function normalizeEntityWithIdResponse(_0x113932){const _0x4c8da2=a207_0x3979,_0x369465=toFiniteNumber(_0x113932);if(_0x369465!==undefined)return{'id':_0x369465,'entity':{'id':_0x369465}};if(!_0x113932||typeof _0x113932!==_0x4c8da2(0x119))return{'id':undefined,'entity':{}};const _0x3ccfea={..._0x113932},_0x5d335f=toFiniteNumber(_0x3ccfea['id']);return _0x5d335f!==undefined&&(_0x3ccfea['id']=_0x5d335f),{'id':_0x5d335f,'entity':_0x3ccfea};}function a207_0x29fe(){const _0xf1761c=['29nnYFQj','object','isFinite','string','16402MLyqdY','692488KTKOWn','5243QPOlRF','11oMQIxN','134400WWmuIE','18716IJfJWk','3ZhQaSr','6455196EzDdyX','2250mAuVbF','trim','9aCRhXr','2499460InaAPx'];a207_0x29fe=function(){return _0xf1761c;};return a207_0x29fe();}
@@ -1 +1 @@
1
- (function(_0x55ff11,_0x25f1b9){const _0xed5a8a=a207_0x26bc,_0x26a2f9=_0x55ff11();while(!![]){try{const _0x5e8866=-parseInt(_0xed5a8a(0x14a))/0x1*(-parseInt(_0xed5a8a(0x14b))/0x2)+parseInt(_0xed5a8a(0x153))/0x3+-parseInt(_0xed5a8a(0x150))/0x4+-parseInt(_0xed5a8a(0x14d))/0x5*(-parseInt(_0xed5a8a(0x152))/0x6)+-parseInt(_0xed5a8a(0x151))/0x7*(-parseInt(_0xed5a8a(0x14e))/0x8)+parseInt(_0xed5a8a(0x155))/0x9*(-parseInt(_0xed5a8a(0x14f))/0xa)+parseInt(_0xed5a8a(0x14c))/0xb*(-parseInt(_0xed5a8a(0x154))/0xc);if(_0x5e8866===_0x25f1b9)break;else _0x26a2f9['push'](_0x26a2f9['shift']());}catch(_0x280d0f){_0x26a2f9['push'](_0x26a2f9['shift']());}}}(a207_0x5ab6,0x45e5c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x12a8bc,_0x20075d){const _0xe42ce8=statSync(_0x12a8bc);if(_0xe42ce8['isDirectory']()){!existsSync(_0x20075d)&&mkdirSync(_0x20075d,{'recursive':!![]});const _0x3ee849=readdirSync(_0x12a8bc);for(const _0x150393 of _0x3ee849){await copyDir(join(_0x12a8bc,_0x150393),join(_0x20075d,_0x150393));}}else copyFileSync(_0x12a8bc,_0x20075d);}function a207_0x5ab6(){const _0x37c994=['6595xfkabZ','432424bVMscU','15770FqFDtQ','1382316gXRAQU','63GciCuv','186nzLPUf','748371ItJmBJ','48couCWh','531agYlTn','1dhLJgA','906142XwZbVa','1388673GHjUHx'];a207_0x5ab6=function(){return _0x37c994;};return a207_0x5ab6();}function a207_0x26bc(_0x51513e,_0x366ab6){_0x51513e=_0x51513e-0x14a;const _0x5ab645=a207_0x5ab6();let _0x26bccc=_0x5ab645[_0x51513e];return _0x26bccc;}export function ensureDir(_0xa240b){!existsSync(_0xa240b)&&mkdirSync(_0xa240b,{'recursive':!![]});}export function pathExists(_0xc8e9dc){return existsSync(_0xc8e9dc);}
1
+ (function(_0x1fd111,_0x43a98a){const _0x4b0eef=a208_0x1138,_0x42f44c=_0x1fd111();while(!![]){try{const _0x19fc93=-parseInt(_0x4b0eef(0x1bf))/0x1+-parseInt(_0x4b0eef(0x1c3))/0x2+parseInt(_0x4b0eef(0x1bd))/0x3*(parseInt(_0x4b0eef(0x1bb))/0x4)+parseInt(_0x4b0eef(0x1c0))/0x5+parseInt(_0x4b0eef(0x1c1))/0x6+parseInt(_0x4b0eef(0x1bc))/0x7+parseInt(_0x4b0eef(0x1c4))/0x8*(-parseInt(_0x4b0eef(0x1c2))/0x9);if(_0x19fc93===_0x43a98a)break;else _0x42f44c['push'](_0x42f44c['shift']());}catch(_0x3000d0){_0x42f44c['push'](_0x42f44c['shift']());}}}(a208_0x6ddf,0xb9ecc));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a208_0x1138(_0x5123b6,_0x3fa769){_0x5123b6=_0x5123b6-0x1bb;const _0x6ddfcd=a208_0x6ddf();let _0x1138db=_0x6ddfcd[_0x5123b6];return _0x1138db;}import{join}from'node:path';export async function copyDir(_0x353fed,_0x417355){const _0x4b313b=a208_0x1138,_0x4bbb2c=statSync(_0x353fed);if(_0x4bbb2c[_0x4b313b(0x1be)]()){!existsSync(_0x417355)&&mkdirSync(_0x417355,{'recursive':!![]});const _0x2dd1a8=readdirSync(_0x353fed);for(const _0x6eee91 of _0x2dd1a8){await copyDir(join(_0x353fed,_0x6eee91),join(_0x417355,_0x6eee91));}}else copyFileSync(_0x353fed,_0x417355);}export function ensureDir(_0x55ae3d){!existsSync(_0x55ae3d)&&mkdirSync(_0x55ae3d,{'recursive':!![]});}function a208_0x6ddf(){const _0x24182b=['32739JQZGeq','isDirectory','1193183WyIvuT','2905280MNYjmP','4987386pjJicz','261UfDANi','760756YTTogo','158520IwkvXQ','476pbbNvv','1391670BRWcoU'];a208_0x6ddf=function(){return _0x24182b;};return a208_0x6ddf();}export function pathExists(_0x44c112){return existsSync(_0x44c112);}
@@ -1 +1 @@
1
- const a208_0x56b702=a208_0x3adb;(function(_0xe6c2fb,_0x20bb1d){const _0x22b7ef=a208_0x3adb,_0x3261aa=_0xe6c2fb();while(!![]){try{const _0x7ec303=-parseInt(_0x22b7ef(0x1fd))/0x1+parseInt(_0x22b7ef(0x1e6))/0x2+-parseInt(_0x22b7ef(0x1e9))/0x3*(-parseInt(_0x22b7ef(0x1fc))/0x4)+parseInt(_0x22b7ef(0x1f2))/0x5+parseInt(_0x22b7ef(0x1ea))/0x6*(-parseInt(_0x22b7ef(0x1ef))/0x7)+parseInt(_0x22b7ef(0x1e8))/0x8+parseInt(_0x22b7ef(0x1e3))/0x9*(-parseInt(_0x22b7ef(0x1e5))/0xa);if(_0x7ec303===_0x20bb1d)break;else _0x3261aa['push'](_0x3261aa['shift']());}catch(_0x3e8a7a){_0x3261aa['push'](_0x3261aa['shift']());}}}(a208_0x5db8,0xd09c1));import{mkdirSync,writeFileSync}from'node:fs';function a208_0x3adb(_0x3930e5,_0x42a1ea){_0x3930e5=_0x3930e5-0x1e1;const _0x5db888=a208_0x5db8();let _0x3adb37=_0x5db888[_0x3930e5];return _0x3adb37;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x20f446=a208_0x3adb,_0x4df35f=getTemplateBaseUrl();return _0x4df35f+_0x20f446(0x1e4);}const CACHE_DIR=join(homedir(),a208_0x56b702(0x1f6),a208_0x56b702(0x1ed));export async function fetchGuidesFromCDN(){const _0x1d0190=a208_0x56b702,_0x2de973=getGuidesCdnUrl(),_0x35649c=await fetch(_0x2de973,{'headers':{'Accept':_0x1d0190(0x1f8)}});if(!_0x35649c['ok'])throw new Error(_0x1d0190(0x1eb)+_0x35649c[_0x1d0190(0x1f9)]+'\x20'+_0x35649c[_0x1d0190(0x200)]);const _0x24d5d8=await _0x35649c['json']();if(!_0x24d5d8[_0x1d0190(0x202)]||typeof _0x24d5d8[_0x1d0190(0x202)]!==_0x1d0190(0x1e1))throw new Error(_0x1d0190(0x1ff));return _0x24d5d8;}export function writeGuidesToProject(_0x372c93,_0x2a7b0a,_0x2688ee=a208_0x56b702(0x205),_0x5c334a){const _0x36f508=a208_0x56b702,_0x574b45=join(_0x2a7b0a,_0x2688ee);mkdirSync(_0x574b45,{'recursive':!![]});for(const [_0x2f8c2b,_0x7fffbd]of Object[_0x36f508(0x1f3)](_0x372c93[_0x36f508(0x202)])){let _0x4728c0=_0x7fffbd['content'];_0x7fffbd[_0x36f508(0x1fa)]&&(_0x4728c0=appendUpdateTime(_0x4728c0,_0x7fffbd[_0x36f508(0x1fa)])),writeFileSync(join(_0x574b45,_0x2f8c2b+_0x36f508(0x1f0)),_0x4728c0,_0x36f508(0x203));}}export function appendUpdateTime(_0x56cf33,_0x5bad6e){const _0x53a6a5=a208_0x56b702;return _0x56cf33=_0x56cf33[_0x53a6a5(0x1f4)](/\n*>更新时间:.*$/m,''),_0x56cf33['trimEnd']()+(_0x53a6a5(0x1f5)+_0x5bad6e);}export function getSkillTemplate(_0x479461){const _0x430c8c=a208_0x56b702;return _0x479461[_0x430c8c(0x1f7)]?.[_0x430c8c(0x1e7)]||'';}export function appendExtendContents(_0x49fc60,_0xe9d93a,_0x2b7caf){const _0x138c8d=a208_0x56b702,_0x55c788=[];for(const [,_0x31ad36]of Object[_0x138c8d(0x1f3)](_0xe9d93a[_0x138c8d(0x202)])){_0x31ad36['extendContent']&&_0x55c788['push'](_0x31ad36[_0x138c8d(0x1ee)][_0x138c8d(0x1e2)]());}if(_0x55c788[_0x138c8d(0x1fb)]===0x0)return _0x49fc60;return _0x49fc60[_0x138c8d(0x1e2)]()+'\x0a\x0a'+_0x55c788[_0x138c8d(0x1f1)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x42e4bc,_0xc1be06,_0x48f0a4){const _0x54cee3=a208_0x56b702,_0x394d27=getSkillTemplate(_0x42e4bc);if(!_0x394d27)throw new Error(_0x54cee3(0x1ec));const _0xb2d549=dirname(_0xc1be06);mkdirSync(_0xb2d549,{'recursive':!![]});let _0x20a83f=_0x394d27['replace'](/\{\{IDE_NAME\}\}/g,_0x48f0a4);_0x20a83f=appendExtendContents(_0x20a83f,_0x42e4bc),_0x42e4bc[_0x54cee3(0x1f7)][_0x54cee3(0x1fa)]&&(_0x20a83f=appendUpdateTime(_0x20a83f,_0x42e4bc[_0x54cee3(0x1f7)][_0x54cee3(0x1fa)])),writeFileSync(_0xc1be06,_0x20a83f,_0x54cee3(0x203));}export async function installGuides(_0x47fe72){const _0xe2beca=a208_0x56b702,_0x2af036=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2af036,_0x47fe72),Object[_0xe2beca(0x201)](_0x2af036[_0xe2beca(0x202)])['length'];}function a208_0x5db8(){const _0x2315ae=['guides','utf-8','path','.lovrabet/skill/guides','object','trimEnd','684EqbZoc','/skills/guides.json','4750unUfFS','887764uhWxFP','content','4813496qdKnCB','150918gGuasa','127440jYZeIg','CDN\x20请求失败:\x20','CDN\x20数据中缺少\x20skillTemplate','cache','extendContent','252fQTkQY','.md','join','2607210ujQbiQ','entries','replace','\x0a\x0a>更新时间:','.lovrabet','skillTemplate','application/json','status','lastUpdated','length','56vyfrXL','616090xbphks','map','CDN\x20返回数据格式错误','statusText','keys'];a208_0x5db8=function(){return _0x2315ae;};return a208_0x5db8();}export function getGuidesSummary(_0x4726d8){const _0x1d58fd=a208_0x56b702;return Object[_0x1d58fd(0x1f3)](_0x4726d8[_0x1d58fd(0x202)])[_0x1d58fd(0x1fe)](([_0x3735b3,_0x10e4ff])=>({'key':_0x3735b3,'title':_0x10e4ff['title'],'path':_0x10e4ff[_0x1d58fd(0x204)]}));}
1
+ const a209_0x27beea=a209_0x42b9;(function(_0x593826,_0x2ac3ba){const _0x56d867=a209_0x42b9,_0x12232e=_0x593826();while(!![]){try{const _0x5a6473=-parseInt(_0x56d867(0x17f))/0x1+parseInt(_0x56d867(0x17d))/0x2+parseInt(_0x56d867(0x189))/0x3+-parseInt(_0x56d867(0x187))/0x4*(-parseInt(_0x56d867(0x192))/0x5)+parseInt(_0x56d867(0x178))/0x6+-parseInt(_0x56d867(0x17e))/0x7*(-parseInt(_0x56d867(0x18e))/0x8)+parseInt(_0x56d867(0x186))/0x9*(-parseInt(_0x56d867(0x179))/0xa);if(_0x5a6473===_0x2ac3ba)break;else _0x12232e['push'](_0x12232e['shift']());}catch(_0x4b15bb){_0x12232e['push'](_0x12232e['shift']());}}}(a209_0x1ce6,0xf2646));function a209_0x42b9(_0x4e006d,_0x16517b){_0x4e006d=_0x4e006d-0x172;const _0x1ce63b=a209_0x1ce6();let _0x42b939=_0x1ce63b[_0x4e006d];return _0x42b939;}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 _0x380f0f=a209_0x42b9,_0x4065e1=getTemplateBaseUrl();return _0x4065e1+_0x380f0f(0x18f);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x68a0=a209_0x42b9,_0x35c612=getGuidesCdnUrl(),_0x357e62=await fetch(_0x35c612,{'headers':{'Accept':_0x68a0(0x193)}});if(!_0x357e62['ok'])throw new Error(_0x68a0(0x18c)+_0x357e62[_0x68a0(0x190)]+'\x20'+_0x357e62[_0x68a0(0x184)]);const _0x374b41=await _0x357e62['json']();if(!_0x374b41['guides']||typeof _0x374b41[_0x68a0(0x175)]!==_0x68a0(0x17c))throw new Error('CDN\x20返回数据格式错误');return _0x374b41;}export function writeGuidesToProject(_0x2bf6b3,_0x54651c,_0x46b907=a209_0x27beea(0x17a),_0x48bd18){const _0x5322c9=a209_0x27beea,_0xf9f790=join(_0x54651c,_0x46b907);mkdirSync(_0xf9f790,{'recursive':!![]});for(const [_0x4c2940,_0x239c9b]of Object[_0x5322c9(0x185)](_0x2bf6b3[_0x5322c9(0x175)])){let _0xd42c87=_0x239c9b[_0x5322c9(0x172)];_0x239c9b[_0x5322c9(0x18d)]&&(_0xd42c87=appendUpdateTime(_0xd42c87,_0x239c9b[_0x5322c9(0x18d)])),writeFileSync(join(_0xf9f790,_0x4c2940+_0x5322c9(0x18a)),_0xd42c87,'utf-8');}}export function appendUpdateTime(_0x3c9315,_0x5797a7){const _0x1fa8c9=a209_0x27beea;return _0x3c9315=_0x3c9315[_0x1fa8c9(0x188)](/\n*>更新时间:.*$/m,''),_0x3c9315['trimEnd']()+('\x0a\x0a>更新时间:'+_0x5797a7);}function a209_0x1ce6(){const _0x1aa03c=['status','length','20olPqep','application/json','push','content','join','path','guides','trimEnd','title','6319452wdnmkJ','53890BjBBGm','.lovrabet/skill/guides','extendContent','object','3218650brtqfI','2885547mtmhpw','913653KYwRLe','keys','map','skillTemplate','utf-8','statusText','entries','8487cKRxDd','1470688MhKcYe','replace','4855200NPfiDH','.md','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','24tkNwDA','/skills/guides.json'];a209_0x1ce6=function(){return _0x1aa03c;};return a209_0x1ce6();}export function getSkillTemplate(_0x1e2935){const _0x598cf7=a209_0x27beea;return _0x1e2935[_0x598cf7(0x182)]?.[_0x598cf7(0x172)]||'';}export function appendExtendContents(_0x33d25d,_0x3de922,_0x3eea34){const _0x312452=a209_0x27beea,_0x426e7f=[];for(const [,_0x1bb6ad]of Object[_0x312452(0x185)](_0x3de922[_0x312452(0x175)])){_0x1bb6ad[_0x312452(0x17b)]&&_0x426e7f[_0x312452(0x194)](_0x1bb6ad[_0x312452(0x17b)][_0x312452(0x176)]());}if(_0x426e7f[_0x312452(0x191)]===0x0)return _0x33d25d;return _0x33d25d[_0x312452(0x176)]()+'\x0a\x0a'+_0x426e7f[_0x312452(0x173)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x279f6e,_0x37c23c,_0x4fc7bb){const _0x5e021c=a209_0x27beea,_0x45e486=getSkillTemplate(_0x279f6e);if(!_0x45e486)throw new Error(_0x5e021c(0x18b));const _0x306291=dirname(_0x37c23c);mkdirSync(_0x306291,{'recursive':!![]});let _0x132644=_0x45e486[_0x5e021c(0x188)](/\{\{IDE_NAME\}\}/g,_0x4fc7bb);_0x132644=appendExtendContents(_0x132644,_0x279f6e),_0x279f6e[_0x5e021c(0x182)][_0x5e021c(0x18d)]&&(_0x132644=appendUpdateTime(_0x132644,_0x279f6e[_0x5e021c(0x182)]['lastUpdated'])),writeFileSync(_0x37c23c,_0x132644,_0x5e021c(0x183));}export async function installGuides(_0x55b8cc){const _0x2dd3bc=a209_0x27beea,_0x437798=await fetchGuidesFromCDN();return writeGuidesToProject(_0x437798,_0x55b8cc),Object[_0x2dd3bc(0x180)](_0x437798[_0x2dd3bc(0x175)])[_0x2dd3bc(0x191)];}export function getGuidesSummary(_0x46cb7d){const _0x27a2ee=a209_0x27beea;return Object[_0x27a2ee(0x185)](_0x46cb7d[_0x27a2ee(0x175)])[_0x27a2ee(0x181)](([_0x2f1ccd,_0x3b76c5])=>({'key':_0x2f1ccd,'title':_0x3b76c5[_0x27a2ee(0x177)],'path':_0x3b76c5[_0x27a2ee(0x174)]}));}
@@ -1 +1 @@
1
- (function(_0x391ef5,_0xa42780){const _0x47b7a9=a209_0x57d2,_0x4ffdc9=_0x391ef5();while(!![]){try{const _0x2a334b=parseInt(_0x47b7a9(0xcf))/0x1*(parseInt(_0x47b7a9(0xda))/0x2)+-parseInt(_0x47b7a9(0xe3))/0x3+parseInt(_0x47b7a9(0xce))/0x4*(-parseInt(_0x47b7a9(0xe5))/0x5)+-parseInt(_0x47b7a9(0xe7))/0x6+-parseInt(_0x47b7a9(0xd8))/0x7*(parseInt(_0x47b7a9(0xd3))/0x8)+-parseInt(_0x47b7a9(0xe0))/0x9*(parseInt(_0x47b7a9(0xd4))/0xa)+-parseInt(_0x47b7a9(0xd6))/0xb*(-parseInt(_0x47b7a9(0xdc))/0xc);if(_0x2a334b===_0xa42780)break;else _0x4ffdc9['push'](_0x4ffdc9['shift']());}catch(_0x3dc9f3){_0x4ffdc9['push'](_0x4ffdc9['shift']());}}}(a209_0x243e,0xd5fb6));export async function httpRequest(_0xc5966e,_0x11356a={}){const _0x1ea404=a209_0x57d2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x11356a;let _0x1f1db3=null;for(let _0x33d10c=0x0;_0x33d10c<=retries;_0x33d10c++){try{const _0x47d1f3=new AbortController(),_0x49e985=setTimeout(()=>_0x47d1f3[_0x1ea404(0xdf)](),timeout),_0x1a13fc=await fetch(_0xc5966e,{'headers':headers,'signal':_0x47d1f3[_0x1ea404(0xd2)]});clearTimeout(_0x49e985);let _0x584fe0;const _0x1a28cd=_0x1a13fc[_0x1ea404(0xe9)]['get']('content-type');return _0x1a28cd?.[_0x1ea404(0xde)](_0x1ea404(0xdd))?_0x584fe0=await _0x1a13fc['json']():_0x584fe0=await _0x1a13fc[_0x1ea404(0xe2)](),{'ok':_0x1a13fc['ok'],'status':_0x1a13fc['status'],'statusText':_0x1a13fc[_0x1ea404(0xe1)],'data':_0x584fe0,'headers':_0x1a13fc['headers'],'url':_0x1a13fc[_0x1ea404(0xd7)],'text':()=>_0x1a13fc['text']()};}catch(_0x49e760){_0x1f1db3=_0x49e760 instanceof Error?_0x49e760:new Error(String(_0x49e760));if(_0x33d10c===retries)break;if(shouldRetry(_0x49e760)){console[_0x1ea404(0xe6)](_0x1ea404(0xe4)+retryDelay+_0x1ea404(0xd1)+(_0x33d10c+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1f1db3||new Error(_0x1ea404(0xe8));}function shouldRetry(_0x580a82){const _0x399956=a209_0x57d2;if(_0x580a82 instanceof Error){if(_0x580a82['name']===_0x399956(0xd5))return![];if(_0x580a82['name']===_0x399956(0xd9)&&_0x580a82[_0x399956(0xdb)]['includes'](_0x399956(0xd0)))return!![];if(_0x580a82[_0x399956(0xdb)][_0x399956(0xde)]('ECONNRESET'))return!![];if(_0x580a82[_0x399956(0xdb)][_0x399956(0xde)]('ENOTFOUND'))return![];}return![];}function a209_0x57d2(_0x598916,_0x321886){_0x598916=_0x598916-0xce;const _0x243e07=a209_0x243e();let _0x57d280=_0x243e07[_0x598916];return _0x57d280;}function a209_0x243e(){const _0x276089=['1250MFOZfe','AbortError','3462448PQTXky','url','369530wlFUUh','TypeError','20BzQwon','message','192FhGboS','application/json','includes','abort','121977hgUmvV','statusText','text','1343202RviXGo','*\x20请求失败,','12560ZwazVT','log','9598290XhuWws','Request\x20failed','headers','2248vzLdMG','162698vlEjLm','fetch','ms\x20后进行第\x20','signal','96JGhsZk'];a209_0x243e=function(){return _0x276089;};return a209_0x243e();}function sleep(_0x429d1f){return new Promise(_0x18a000=>setTimeout(_0x18a000,_0x429d1f));}export function validateUrl(_0x3d7d86){try{return new URL(_0x3d7d86),!![];}catch{return![];}}
1
+ function a210_0x1517(_0x1362d7,_0x36e2b6){_0x1362d7=_0x1362d7-0x9e;const _0x402fb4=a210_0x402f();let _0x151725=_0x402fb4[_0x1362d7];return _0x151725;}function a210_0x402f(){const _0x40637f=['statusText','381ZVuwvL','9779464qjHRmp','8528238fdlXBC','text','application/json','ECONNRESET','url','get','ms\x20后进行第\x20','1636IrtgCr','\x20次重试...','headers','12rqCZpL','includes','24631580timUvB','content-type','129282JSUZpE','message','fetch','4bYBEsb','6184505ggsbuc','name','signal','791210EzQuTr'];a210_0x402f=function(){return _0x40637f;};return a210_0x402f();}(function(_0xf04419,_0x3dad00){const _0x5d440d=a210_0x1517,_0x13f3d8=_0xf04419();while(!![]){try{const _0x551108=parseInt(_0x5d440d(0xb5))/0x1+parseInt(_0x5d440d(0xae))/0x2*(-parseInt(_0x5d440d(0xa5))/0x3)+parseInt(_0x5d440d(0x9f))/0x4*(parseInt(_0x5d440d(0xa0))/0x5)+parseInt(_0x5d440d(0xb1))/0x6*(-parseInt(_0x5d440d(0xa3))/0x7)+parseInt(_0x5d440d(0xa6))/0x8+parseInt(_0x5d440d(0xa7))/0x9+-parseInt(_0x5d440d(0xb3))/0xa;if(_0x551108===_0x3dad00)break;else _0x13f3d8['push'](_0x13f3d8['shift']());}catch(_0x11f21e){_0x13f3d8['push'](_0x13f3d8['shift']());}}}(a210_0x402f,0xb56b6));export async function httpRequest(_0x405d9d,_0x5c1569={}){const _0x34d5d2=a210_0x1517,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5c1569;let _0x2faae3=null;for(let _0x3e4b1c=0x0;_0x3e4b1c<=retries;_0x3e4b1c++){try{const _0x28b62e=new AbortController(),_0x1e928a=setTimeout(()=>_0x28b62e['abort'](),timeout),_0x45dc8b=await fetch(_0x405d9d,{'headers':headers,'signal':_0x28b62e[_0x34d5d2(0xa2)]});clearTimeout(_0x1e928a);let _0x3b4689;const _0x1083f3=_0x45dc8b[_0x34d5d2(0xb0)][_0x34d5d2(0xac)](_0x34d5d2(0xb4));return _0x1083f3?.[_0x34d5d2(0xb2)](_0x34d5d2(0xa9))?_0x3b4689=await _0x45dc8b['json']():_0x3b4689=await _0x45dc8b[_0x34d5d2(0xa8)](),{'ok':_0x45dc8b['ok'],'status':_0x45dc8b['status'],'statusText':_0x45dc8b[_0x34d5d2(0xa4)],'data':_0x3b4689,'headers':_0x45dc8b['headers'],'url':_0x45dc8b[_0x34d5d2(0xab)],'text':()=>_0x45dc8b[_0x34d5d2(0xa8)]()};}catch(_0x555c84){_0x2faae3=_0x555c84 instanceof Error?_0x555c84:new Error(String(_0x555c84));if(_0x3e4b1c===retries)break;if(shouldRetry(_0x555c84)){console['log']('*\x20请求失败,'+retryDelay+_0x34d5d2(0xad)+(_0x3e4b1c+0x1)+_0x34d5d2(0xaf)),await sleep(retryDelay);continue;}else break;}}throw _0x2faae3||new Error('Request\x20failed');}function shouldRetry(_0x2e0cf5){const _0x290901=a210_0x1517;if(_0x2e0cf5 instanceof Error){if(_0x2e0cf5[_0x290901(0xa1)]==='AbortError')return![];if(_0x2e0cf5[_0x290901(0xa1)]==='TypeError'&&_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0x9e)))return!![];if(_0x2e0cf5[_0x290901(0xb6)][_0x290901(0xb2)](_0x290901(0xaa)))return!![];if(_0x2e0cf5[_0x290901(0xb6)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x3edea6){return new Promise(_0xb5e3d8=>setTimeout(_0xb5e3d8,_0x3edea6));}export function validateUrl(_0x236da2){try{return new URL(_0x236da2),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x118d29,_0x5152b5){const _0xfcdc5e=a210_0x52e6,_0x20605c=_0x118d29();while(!![]){try{const _0x1921a9=-parseInt(_0xfcdc5e(0x1f4))/0x1*(-parseInt(_0xfcdc5e(0x1fa))/0x2)+-parseInt(_0xfcdc5e(0x1ef))/0x3*(-parseInt(_0xfcdc5e(0x1fb))/0x4)+parseInt(_0xfcdc5e(0x1ff))/0x5+-parseInt(_0xfcdc5e(0x1f9))/0x6*(parseInt(_0xfcdc5e(0x1f6))/0x7)+-parseInt(_0xfcdc5e(0x1f2))/0x8*(parseInt(_0xfcdc5e(0x1f0))/0x9)+-parseInt(_0xfcdc5e(0x1f7))/0xa+-parseInt(_0xfcdc5e(0x1f3))/0xb*(-parseInt(_0xfcdc5e(0x1ee))/0xc);if(_0x1921a9===_0x5152b5)break;else _0x20605c['push'](_0x20605c['shift']());}catch(_0x2d61fd){_0x20605c['push'](_0x20605c['shift']());}}}(a210_0x29a0,0xefd96));function env(_0x3e0eeb){return process.env[`RABETBASE_${_0x3e0eeb}`]||process.env[`LOVRABET_${_0x3e0eeb}`]||undefined;}export function isNonInteractive(_0x40b370){const _0x5e5ed9=a210_0x52e6;return!!(_0x40b370[_0x5e5ed9(0x1fd)]||_0x40b370['ci']||env('CI')===_0x5e5ed9(0x1fe)||process.env.CI===_0x5e5ed9(0x1fe)||!process[_0x5e5ed9(0x1f5)]['isTTY']||!isStdinRawModeSupported());}function a210_0x52e6(_0x7d571,_0xb211c1){_0x7d571=_0x7d571-0x1ee;const _0x29a074=a210_0x29a0();let _0x52e691=_0x29a074[_0x7d571];return _0x52e691;}function a210_0x29a0(){const _0x38e370=['6102040lrtbxM','isTTY','716982hdghIp','33346Zntnon','118112tLKEIp','setRawMode','nonInteractive','true','8262920MZhXtl','132HLYrnw','51DXZZVw','3456KPqFNU','stdin','22728FEpqDT','1690634kovNwM','2OHPWko','stdout','70GaalTo'];a210_0x29a0=function(){return _0x38e370;};return a210_0x29a0();}function isStdinRawModeSupported(){const _0x4f9343=a210_0x52e6;if(!process[_0x4f9343(0x1f1)][_0x4f9343(0x1f8)])return![];try{const _0x13f137=process[_0x4f9343(0x1f1)]['isRaw'];return process[_0x4f9343(0x1f1)][_0x4f9343(0x1fc)](!![]),process[_0x4f9343(0x1f1)][_0x4f9343(0x1fc)](_0x13f137??![]),!![];}catch{return![];}}
1
+ (function(_0x54f0af,_0x4a2d6e){const _0x43e49d=a211_0x34dc,_0x192287=_0x54f0af();while(!![]){try{const _0x237265=parseInt(_0x43e49d(0x1cd))/0x1*(parseInt(_0x43e49d(0x1d2))/0x2)+parseInt(_0x43e49d(0x1da))/0x3+-parseInt(_0x43e49d(0x1d4))/0x4+parseInt(_0x43e49d(0x1d0))/0x5*(parseInt(_0x43e49d(0x1db))/0x6)+-parseInt(_0x43e49d(0x1d1))/0x7+-parseInt(_0x43e49d(0x1cb))/0x8*(parseInt(_0x43e49d(0x1ce))/0x9)+parseInt(_0x43e49d(0x1d5))/0xa*(parseInt(_0x43e49d(0x1cc))/0xb);if(_0x237265===_0x4a2d6e)break;else _0x192287['push'](_0x192287['shift']());}catch(_0x7de419){_0x192287['push'](_0x192287['shift']());}}}(a211_0x9491,0x288ab));function env(_0x599424){return process.env[`RABETBASE_${_0x599424}`]||process.env[`LOVRABET_${_0x599424}`]||undefined;}export function isNonInteractive(_0x452291){const _0x11af13=a211_0x34dc;return!!(_0x452291['nonInteractive']||_0x452291['ci']||env('CI')===_0x11af13(0x1d7)||process.env.CI===_0x11af13(0x1d7)||!process[_0x11af13(0x1cf)][_0x11af13(0x1d3)]||!isStdinRawModeSupported());}function a211_0x9491(){const _0x32d693=['setRawMode','stdin','743865rFzSDT','12810HGOkiZ','1568UCJXBP','935KYUcGj','103BdXJtx','11466dIOnFy','stdout','685wUfBdC','2170434iJYcYd','1064pvBomz','isTTY','542564xfSHEn','31320zRlDXC','isRaw','true'];a211_0x9491=function(){return _0x32d693;};return a211_0x9491();}function a211_0x34dc(_0x4b42ea,_0x4b1c9d){_0x4b42ea=_0x4b42ea-0x1cb;const _0x9491eb=a211_0x9491();let _0x34dcdc=_0x9491eb[_0x4b42ea];return _0x34dcdc;}function isStdinRawModeSupported(){const _0x55315a=a211_0x34dc;if(!process['stdin'][_0x55315a(0x1d3)])return![];try{const _0x52938c=process['stdin'][_0x55315a(0x1d6)];return process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](!![]),process[_0x55315a(0x1d9)][_0x55315a(0x1d8)](_0x52938c??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a211_0x3dfac7=a211_0x3bae;function a211_0x45ad(){const _0x449439=['Failed\x20to\x20clear\x20logs:','utf8','clear','combine','getWinstonInstance','.lovrabet.log','join','534SDSnwE','失败:\x20','existsSync','203616lCjMMi','filter','完成:\x20','info','parse','Failed\x20to\x20read\x20logs:','toISOString','initWinstonLogger','log','format','winstonLogger','currentRawCommand','logFilePath','red','unknown','1116351VqYeOi','268485huPyME','map','details','logTask','setLogPath','error','700406iRXvCL','dirname','addColors','split','10752jbTnGX','blue','createLogger','timestamp','rawCommand','stringify','now','425142oWSvQb','success','duration','File','yellow','trim','5289184uNJJAi','mkdirSync','transports','errors','warn'];a211_0x45ad=function(){return _0x449439;};return a211_0x45ad();}(function(_0x1d49f1,_0x46b72a){const _0x58ee99=a211_0x3bae,_0x3a6075=_0x1d49f1();while(!![]){try{const _0x51f9f2=-parseInt(_0x58ee99(0x157))/0x1+parseInt(_0x58ee99(0x14c))/0x2+-parseInt(_0x58ee99(0x145))/0x3+-parseInt(_0x58ee99(0x136))/0x4+-parseInt(_0x58ee99(0x146))/0x5+-parseInt(_0x58ee99(0x169))/0x6*(-parseInt(_0x58ee99(0x150))/0x7)+parseInt(_0x58ee99(0x15d))/0x8;if(_0x51f9f2===_0x46b72a)break;else _0x3a6075['push'](_0x3a6075['shift']());}catch(_0x4221b8){_0x3a6075['push'](_0x3a6075['shift']());}}}(a211_0x45ad,0x3c1b3));import a211_0x2c263b from'winston';import a211_0x106ad2 from'node:fs';import a211_0x329403 from'node:path';class Logger{[a211_0x3dfac7(0x140)];[a211_0x3dfac7(0x142)];['currentRawCommand']='';constructor(){const _0x3695ad=a211_0x3dfac7;this[_0x3695ad(0x142)]='';}['setRawCommand'](_0x290e34){const _0x1cd5f8=a211_0x3dfac7;this[_0x1cd5f8(0x141)]=_0x290e34;}[a211_0x3dfac7(0x13d)](){const _0x6305e8=a211_0x3dfac7,_0x5a09ea=a211_0x329403[_0x6305e8(0x14d)](this[_0x6305e8(0x142)]);!a211_0x106ad2['existsSync'](_0x5a09ea)&&a211_0x106ad2[_0x6305e8(0x15e)](_0x5a09ea,{'recursive':!![]});const _0x464b4a=a211_0x2c263b['format'][_0x6305e8(0x165)](a211_0x2c263b[_0x6305e8(0x13f)][_0x6305e8(0x153)](),a211_0x2c263b[_0x6305e8(0x13f)][_0x6305e8(0x160)]({'stack':!![]}),a211_0x2c263b['format']['printf'](_0x282d38=>{const _0x3c9e8f=_0x6305e8,_0x536b8d={'timestamp':_0x282d38[_0x3c9e8f(0x153)]||new Date()[_0x3c9e8f(0x13c)](),'level':_0x282d38['level']||_0x3c9e8f(0x139),'command':_0x282d38['command']||_0x3c9e8f(0x144),'rawCommand':_0x282d38[_0x3c9e8f(0x154)]||this[_0x3c9e8f(0x141)]||undefined,'message':_0x282d38['message']||'','duration':_0x282d38[_0x3c9e8f(0x159)]||undefined,'details':_0x282d38[_0x3c9e8f(0x148)]||undefined};return JSON[_0x3c9e8f(0x155)](_0x536b8d);}));this['winstonLogger']=a211_0x2c263b[_0x6305e8(0x152)]({'level':_0x6305e8(0x139),'format':_0x464b4a,'transports':[new a211_0x2c263b[(_0x6305e8(0x15f))][(_0x6305e8(0x15a))]({'filename':this[_0x6305e8(0x142)],'level':'info'})],'silent':![]}),a211_0x2c263b[_0x6305e8(0x14e)]({'success':'green','error':_0x6305e8(0x143),'warn':_0x6305e8(0x15b),'info':_0x6305e8(0x151)});}[a211_0x3dfac7(0x14a)](_0x44fa4f){const _0x457355=a211_0x3dfac7;this['logFilePath']=a211_0x329403[_0x457355(0x168)](_0x44fa4f,_0x457355(0x167)),this['winstonLogger']&&this['winstonLogger'][_0x457355(0x164)](),this['initWinstonLogger']();}[a211_0x3dfac7(0x139)](_0x2b11d5,_0x496e01,_0x351379){const _0x40011b=a211_0x3dfac7;if(!this[_0x40011b(0x142)]||!this['winstonLogger'])return;this[_0x40011b(0x140)][_0x40011b(0x139)](_0x496e01,{'command':_0x2b11d5,'details':_0x351379});}[a211_0x3dfac7(0x158)](_0x310ebc,_0x78473e,_0x4b64b4,_0x1f9962){const _0x133cd5=a211_0x3dfac7;if(!this[_0x133cd5(0x142)]||!this[_0x133cd5(0x140)])return;this[_0x133cd5(0x140)][_0x133cd5(0x13e)](_0x133cd5(0x139),_0x78473e,{'level':_0x133cd5(0x158),'command':_0x310ebc,'duration':_0x4b64b4,'details':_0x1f9962});}['error'](_0x532835,_0x8e2130,_0x3cbeb0){const _0x4ea50e=a211_0x3dfac7;if(!this[_0x4ea50e(0x142)]||!this['winstonLogger'])return;this[_0x4ea50e(0x140)][_0x4ea50e(0x14b)](_0x8e2130,{'command':_0x532835,'details':_0x3cbeb0});}[a211_0x3dfac7(0x161)](_0x432d46,_0x3507ce,_0x1e0fb2){const _0x108118=a211_0x3dfac7;if(!this[_0x108118(0x142)]||!this[_0x108118(0x140)])return;this[_0x108118(0x140)]['warn'](_0x3507ce,{'command':_0x432d46,'details':_0x1e0fb2});}async[a211_0x3dfac7(0x149)](_0x6c4de9,_0x1c042a,_0x3af597){const _0x4e61a2=a211_0x3dfac7,_0x56b794=Date[_0x4e61a2(0x156)]();this[_0x4e61a2(0x139)](_0x6c4de9,'开始执行:\x20'+_0x1c042a);try{const _0x45aac8=await _0x3af597(),_0x23e366=Date['now']()-_0x56b794;return this[_0x4e61a2(0x158)](_0x6c4de9,_0x4e61a2(0x138)+_0x1c042a,_0x23e366),_0x45aac8;}catch(_0x586b83){const _0x35dba1=Date[_0x4e61a2(0x156)]()-_0x56b794;this['error'](_0x6c4de9,_0x4e61a2(0x134)+_0x1c042a,{'error':_0x586b83 instanceof Error?_0x586b83['message']:String(_0x586b83),'duration':_0x35dba1});throw _0x586b83;}}['readLogs'](){const _0x199562=a211_0x3dfac7;try{if(!a211_0x106ad2[_0x199562(0x135)](this[_0x199562(0x142)]))return[];const _0x228cb4=a211_0x106ad2['readFileSync'](this['logFilePath'],_0x199562(0x163));return _0x228cb4[_0x199562(0x14f)]('\x0a')[_0x199562(0x137)](_0x420bfb=>_0x420bfb[_0x199562(0x15c)]())[_0x199562(0x147)](_0x4182cf=>JSON[_0x199562(0x13a)](_0x4182cf));}catch(_0x44b1c6){return console['warn'](_0x199562(0x13b),_0x44b1c6),[];}}['clearLogs'](){const _0x2662da=a211_0x3dfac7;try{a211_0x106ad2[_0x2662da(0x135)](this[_0x2662da(0x142)])&&a211_0x106ad2['writeFileSync'](this[_0x2662da(0x142)],'',_0x2662da(0x163));}catch(_0x5d90eb){console[_0x2662da(0x161)](_0x2662da(0x162),_0x5d90eb);}}[a211_0x3dfac7(0x166)](){const _0x5b7b17=a211_0x3dfac7;return this[_0x5b7b17(0x140)];}}function a211_0x3bae(_0x1c2786,_0x5d37c1){_0x1c2786=_0x1c2786-0x134;const _0x45ada2=a211_0x45ad();let _0x3baef8=_0x45ada2[_0x1c2786];return _0x3baef8;}export const logger=new Logger();
1
+ function a212_0x3b98(){const _0x4dd324=['dirname','stringify','161270pdyveN','9930AykKRF','logFilePath','unknown','currentRawCommand','utf8','error','Failed\x20to\x20clear\x20logs:','success','details','logTask','toISOString','winstonLogger','clearLogs','rawCommand','now','map','setRawCommand','command','171hBnWgs','57074mgHQRZ','initWinstonLogger','clear','blue','File','404580vIItHs','mkdirSync','timestamp','readLogs','1320378TiiwVs','filter','getWinstonInstance','addColors','3149544alxuMo','readFileSync','log','existsSync','失败:\x20','createLogger','transports','7FtPonz','Failed\x20to\x20read\x20logs:','printf','setLogPath','108EkiEDl','level','36Kccfjr','format','5iPLaBS','开始执行:\x20','writeFileSync','join','warn','129027gkNSOO','yellow','message','.lovrabet.log','info'];a212_0x3b98=function(){return _0x4dd324;};return a212_0x3b98();}const a212_0x15d31d=a212_0x5026;(function(_0x53cf39,_0x1b71a4){const _0xe87f71=a212_0x5026,_0x5559c9=_0x53cf39();while(!![]){try{const _0x266018=-parseInt(_0xe87f71(0x209))/0x1*(parseInt(_0xe87f71(0x1ed))/0x2)+parseInt(_0xe87f71(0x20e))/0x3+parseInt(_0xe87f71(0x207))/0x4*(-parseInt(_0xe87f71(0x216))/0x5)+-parseInt(_0xe87f71(0x1f6))/0x6*(-parseInt(_0xe87f71(0x201))/0x7)+-parseInt(_0xe87f71(0x1fa))/0x8+-parseInt(_0xe87f71(0x1ec))/0x9*(-parseInt(_0xe87f71(0x215))/0xa)+-parseInt(_0xe87f71(0x1f2))/0xb*(-parseInt(_0xe87f71(0x205))/0xc);if(_0x266018===_0x1b71a4)break;else _0x5559c9['push'](_0x5559c9['shift']());}catch(_0x4fb710){_0x5559c9['push'](_0x5559c9['shift']());}}}(a212_0x3b98,0x5488d));function a212_0x5026(_0x518409,_0x45c860){_0x518409=_0x518409-0x1e2;const _0x3b98e2=a212_0x3b98();let _0x50263a=_0x3b98e2[_0x518409];return _0x50263a;}import a212_0xe98d1c from'winston';import a212_0x307293 from'node:fs';import a212_0x83f883 from'node:path';class Logger{['winstonLogger'];[a212_0x15d31d(0x217)];[a212_0x15d31d(0x219)]='';constructor(){this['logFilePath']='';}[a212_0x15d31d(0x1ea)](_0x3d0f26){const _0xfd86a=a212_0x15d31d;this[_0xfd86a(0x219)]=_0x3d0f26;}[a212_0x15d31d(0x1ee)](){const _0x549218=a212_0x15d31d,_0x21759e=a212_0x83f883[_0x549218(0x213)](this[_0x549218(0x217)]);!a212_0x307293[_0x549218(0x1fd)](_0x21759e)&&a212_0x307293[_0x549218(0x1f3)](_0x21759e,{'recursive':!![]});const _0xbe678b=a212_0xe98d1c[_0x549218(0x208)]['combine'](a212_0xe98d1c['format'][_0x549218(0x1f4)](),a212_0xe98d1c[_0x549218(0x208)]['errors']({'stack':!![]}),a212_0xe98d1c['format'][_0x549218(0x203)](_0x53d993=>{const _0x39a1e0=_0x549218,_0x2bdf88={'timestamp':_0x53d993[_0x39a1e0(0x1f4)]||new Date()[_0x39a1e0(0x1e4)](),'level':_0x53d993[_0x39a1e0(0x206)]||_0x39a1e0(0x212),'command':_0x53d993[_0x39a1e0(0x1eb)]||_0x39a1e0(0x218),'rawCommand':_0x53d993[_0x39a1e0(0x1e7)]||this[_0x39a1e0(0x219)]||undefined,'message':_0x53d993[_0x39a1e0(0x210)]||'','duration':_0x53d993['duration']||undefined,'details':_0x53d993[_0x39a1e0(0x1e2)]||undefined};return JSON[_0x39a1e0(0x214)](_0x2bdf88);}));this['winstonLogger']=a212_0xe98d1c[_0x549218(0x1ff)]({'level':_0x549218(0x212),'format':_0xbe678b,'transports':[new a212_0xe98d1c[(_0x549218(0x200))][(_0x549218(0x1f1))]({'filename':this[_0x549218(0x217)],'level':_0x549218(0x212)})],'silent':![]}),a212_0xe98d1c[_0x549218(0x1f9)]({'success':'green','error':'red','warn':_0x549218(0x20f),'info':_0x549218(0x1f0)});}[a212_0x15d31d(0x204)](_0x12ad66){const _0x2383e7=a212_0x15d31d;this[_0x2383e7(0x217)]=a212_0x83f883[_0x2383e7(0x20c)](_0x12ad66,_0x2383e7(0x211)),this[_0x2383e7(0x1e5)]&&this[_0x2383e7(0x1e5)][_0x2383e7(0x1ef)](),this[_0x2383e7(0x1ee)]();}['info'](_0x164578,_0x3b36d8,_0x3a8d91){const _0x522652=a212_0x15d31d;if(!this[_0x522652(0x217)]||!this[_0x522652(0x1e5)])return;this[_0x522652(0x1e5)][_0x522652(0x212)](_0x3b36d8,{'command':_0x164578,'details':_0x3a8d91});}[a212_0x15d31d(0x21d)](_0x42efc4,_0x598252,_0x3212ac,_0x503516){const _0x41e7aa=a212_0x15d31d;if(!this[_0x41e7aa(0x217)]||!this[_0x41e7aa(0x1e5)])return;this[_0x41e7aa(0x1e5)][_0x41e7aa(0x1fc)]('info',_0x598252,{'level':_0x41e7aa(0x21d),'command':_0x42efc4,'duration':_0x3212ac,'details':_0x503516});}[a212_0x15d31d(0x21b)](_0x58154e,_0x3d32d2,_0x5cdcc2){const _0x3d81cc=a212_0x15d31d;if(!this[_0x3d81cc(0x217)]||!this[_0x3d81cc(0x1e5)])return;this[_0x3d81cc(0x1e5)][_0x3d81cc(0x21b)](_0x3d32d2,{'command':_0x58154e,'details':_0x5cdcc2});}[a212_0x15d31d(0x20d)](_0x44a261,_0x45af6a,_0x265bd9){const _0x13716f=a212_0x15d31d;if(!this['logFilePath']||!this[_0x13716f(0x1e5)])return;this['winstonLogger']['warn'](_0x45af6a,{'command':_0x44a261,'details':_0x265bd9});}async[a212_0x15d31d(0x1e3)](_0x328050,_0x374ba8,_0x3ce336){const _0x26e5e7=a212_0x15d31d,_0x2ded04=Date[_0x26e5e7(0x1e8)]();this[_0x26e5e7(0x212)](_0x328050,_0x26e5e7(0x20a)+_0x374ba8);try{const _0x20b29e=await _0x3ce336(),_0x232dd6=Date['now']()-_0x2ded04;return this[_0x26e5e7(0x21d)](_0x328050,'完成:\x20'+_0x374ba8,_0x232dd6),_0x20b29e;}catch(_0x1afe8e){const _0x51583a=Date['now']()-_0x2ded04;this['error'](_0x328050,_0x26e5e7(0x1fe)+_0x374ba8,{'error':_0x1afe8e instanceof Error?_0x1afe8e['message']:String(_0x1afe8e),'duration':_0x51583a});throw _0x1afe8e;}}[a212_0x15d31d(0x1f5)](){const _0x4e8929=a212_0x15d31d;try{if(!a212_0x307293['existsSync'](this[_0x4e8929(0x217)]))return[];const _0x284dc4=a212_0x307293[_0x4e8929(0x1fb)](this[_0x4e8929(0x217)],_0x4e8929(0x21a));return _0x284dc4['split']('\x0a')[_0x4e8929(0x1f7)](_0x2aae7e=>_0x2aae7e['trim']())[_0x4e8929(0x1e9)](_0xc2b0d2=>JSON['parse'](_0xc2b0d2));}catch(_0x4ab737){return console[_0x4e8929(0x20d)](_0x4e8929(0x202),_0x4ab737),[];}}[a212_0x15d31d(0x1e6)](){const _0x2b2224=a212_0x15d31d;try{a212_0x307293[_0x2b2224(0x1fd)](this['logFilePath'])&&a212_0x307293[_0x2b2224(0x20b)](this['logFilePath'],'',_0x2b2224(0x21a));}catch(_0x15a6d7){console['warn'](_0x2b2224(0x21c),_0x15a6d7);}}[a212_0x15d31d(0x1f8)](){const _0x552922=a212_0x15d31d;return this[_0x552922(0x1e5)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a212_0x2a1d(_0x2c2200,_0x3c525e){_0x2c2200=_0x2c2200-0x144;const _0x59dcd7=a212_0x59dc();let _0x2a1d35=_0x59dcd7[_0x2c2200];return _0x2a1d35;}(function(_0x52c741,_0x22500f){const _0x18f106=a212_0x2a1d,_0x4048e=_0x52c741();while(!![]){try{const _0x2ed37b=parseInt(_0x18f106(0x14c))/0x1*(parseInt(_0x18f106(0x147))/0x2)+-parseInt(_0x18f106(0x14a))/0x3+-parseInt(_0x18f106(0x145))/0x4*(parseInt(_0x18f106(0x148))/0x5)+-parseInt(_0x18f106(0x14b))/0x6+parseInt(_0x18f106(0x14f))/0x7+-parseInt(_0x18f106(0x144))/0x8+parseInt(_0x18f106(0x14e))/0x9;if(_0x2ed37b===_0x22500f)break;else _0x4048e['push'](_0x4048e['shift']());}catch(_0x4e88e3){_0x4048e['push'](_0x4048e['shift']());}}}(a212_0x59dc,0x7cd37));function a212_0x59dc(){const _0x2bc630=['isArray','2683041OfkVKM','2858148UaavlL','1LlCiub','parse','26068257uqqwKT','3489563kIXWQL','7676928gGAmmH','104mXOssl','validation','364124flBlMm','141430wsJmnW'];a212_0x59dc=function(){return _0x2bc630;};return a212_0x59dc();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x31b9fd){const _0x532655=a212_0x2a1d;if(!_0x31b9fd)return undefined;let _0x3ae540;try{_0x3ae540=JSON[_0x532655(0x14d)](_0x31b9fd);}catch{throw CliErrors[_0x532655(0x146)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x31b9fd);}if(!_0x3ae540||typeof _0x3ae540!=='object'||Array[_0x532655(0x149)](_0x3ae540))throw CliErrors[_0x532655(0x146)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3ae540;}
1
+ (function(_0x4859a4,_0x3cd671){const _0x407526=a213_0x55d0,_0x31dc3c=_0x4859a4();while(!![]){try{const _0x3725b3=parseInt(_0x407526(0x1ea))/0x1+-parseInt(_0x407526(0x1ec))/0x2*(-parseInt(_0x407526(0x1e9))/0x3)+-parseInt(_0x407526(0x1ee))/0x4+-parseInt(_0x407526(0x1eb))/0x5+-parseInt(_0x407526(0x1e8))/0x6+parseInt(_0x407526(0x1ed))/0x7*(parseInt(_0x407526(0x1f0))/0x8)+parseInt(_0x407526(0x1e6))/0x9;if(_0x3725b3===_0x3cd671)break;else _0x31dc3c['push'](_0x31dc3c['shift']());}catch(_0x1598bf){_0x31dc3c['push'](_0x31dc3c['shift']());}}}(a213_0x3baa,0xb9bad));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x9a59f9){const _0xc1b305=a213_0x55d0;if(!_0x9a59f9)return undefined;let _0x3cdbe0;try{_0x3cdbe0=JSON[_0xc1b305(0x1f3)](_0x9a59f9);}catch{throw CliErrors['validation'](_0xc1b305(0x1ef)+_0x9a59f9);}if(!_0x3cdbe0||typeof _0x3cdbe0!==_0xc1b305(0x1f1)||Array['isArray'](_0x3cdbe0))throw CliErrors[_0xc1b305(0x1f4)](_0xc1b305(0x1e7),_0xc1b305(0x1f2));return _0x3cdbe0;}function a213_0x55d0(_0x32ed04,_0x4fd049){_0x32ed04=_0x32ed04-0x1e6;const _0x3baacc=a213_0x3baa();let _0x55d017=_0x3baacc[_0x32ed04];return _0x55d017;}function a213_0x3baa(){const _0xdbb5e1=['parse','validation','6565563tOJJIG','--params\x20must\x20be\x20a\x20JSON\x20object','1257324fAmrsu','18qZutCL','86508ZSaUPo','2358895MDdbbB','241354gDIzDz','7WRInnJ','5672756rOyDEk','Invalid\x20JSON\x20for\x20--params:\x20','10561552SMPIza','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27'];a213_0x3baa=function(){return _0xdbb5e1;};return a213_0x3baa();}
@@ -1 +1 @@
1
- function a213_0x5a80(_0x208f7d,_0x31fb17){_0x208f7d=_0x208f7d-0x91;const _0x1071ee=a213_0x1071();let _0x5a80e5=_0x1071ee[_0x208f7d];return _0x5a80e5;}const a213_0x17a570=a213_0x5a80;function a213_0x1071(){const _0x2ac14c=['3910291nQoMwA','54180bvcbSo','3999455yVprXT','2eTbpiu','win32','platform','1827EglkSz','.cmd','60BdUGIR','1514024OpYOUH','1342061ccJIRy','12DQprDm','646053bXGCSC','627007oSwdWt','40sKbPkX'];a213_0x1071=function(){return _0x2ac14c;};return a213_0x1071();}(function(_0x4badca,_0x2cef7b){const _0x582cce=a213_0x5a80,_0x2e97e1=_0x4badca();while(!![]){try{const _0x1ea51c=-parseInt(_0x582cce(0x93))/0x1+parseInt(_0x582cce(0x98))/0x2*(-parseInt(_0x582cce(0x92))/0x3)+parseInt(_0x582cce(0x9e))/0x4+parseInt(_0x582cce(0x97))/0x5*(parseInt(_0x582cce(0x91))/0x6)+-parseInt(_0x582cce(0x9f))/0x7*(parseInt(_0x582cce(0x94))/0x8)+-parseInt(_0x582cce(0x9b))/0x9*(parseInt(_0x582cce(0x96))/0xa)+-parseInt(_0x582cce(0x95))/0xb*(-parseInt(_0x582cce(0x9d))/0xc);if(_0x1ea51c===_0x2cef7b)break;else _0x2e97e1['push'](_0x2e97e1['shift']());}catch(_0xff90b9){_0x2e97e1['push'](_0x2e97e1['shift']());}}}(a213_0x1071,0xd0b52));export const isWindows=process[a213_0x17a570(0x9a)]===a213_0x17a570(0x99);export function resolveNpmBin(_0x3893b2){const _0x47ecd5=a213_0x17a570;return isWindows?_0x3893b2+_0x47ecd5(0x9c):_0x3893b2;}
1
+ const a214_0x466007=a214_0x4c2f;(function(_0x2eff49,_0x4ce57a){const _0x5ad0df=a214_0x4c2f,_0x5220b6=_0x2eff49();while(!![]){try{const _0x4d6493=parseInt(_0x5ad0df(0x1dd))/0x1*(-parseInt(_0x5ad0df(0x1d6))/0x2)+parseInt(_0x5ad0df(0x1e2))/0x3*(parseInt(_0x5ad0df(0x1da))/0x4)+-parseInt(_0x5ad0df(0x1dc))/0x5+-parseInt(_0x5ad0df(0x1e0))/0x6*(-parseInt(_0x5ad0df(0x1d7))/0x7)+-parseInt(_0x5ad0df(0x1e3))/0x8+-parseInt(_0x5ad0df(0x1db))/0x9+parseInt(_0x5ad0df(0x1df))/0xa*(parseInt(_0x5ad0df(0x1d9))/0xb);if(_0x4d6493===_0x4ce57a)break;else _0x5220b6['push'](_0x5220b6['shift']());}catch(_0x314b60){_0x5220b6['push'](_0x5220b6['shift']());}}}(a214_0x266e,0xd6622));export const isWindows=process[a214_0x466007(0x1de)]===a214_0x466007(0x1e1);function a214_0x266e(){const _0x3df029=['82809hEnExX','8430400PiaMGa','848879kYvhjv','platform','145270uqEwih','17154npSvbK','win32','3uNoZRQ','145216wvThqY','2ZwTFry','1995MOFNty','.cmd','1716tSNbnS','1437596cPyqbk'];a214_0x266e=function(){return _0x3df029;};return a214_0x266e();}function a214_0x4c2f(_0x4215c9,_0x1d73a2){_0x4215c9=_0x4215c9-0x1d6;const _0x266e84=a214_0x266e();let _0x4c2f91=_0x266e84[_0x4215c9];return _0x4c2f91;}export function resolveNpmBin(_0x385af8){const _0x371938=a214_0x466007;return isWindows?_0x385af8+_0x371938(0x1d8):_0x385af8;}
@@ -1 +1 @@
1
- const a214_0x53bd6b=a214_0x3518;(function(_0x57d960,_0x3f014e){const _0x13c94e=a214_0x3518,_0x5d1420=_0x57d960();while(!![]){try{const _0x5b3fa3=-parseInt(_0x13c94e(0x131))/0x1*(parseInt(_0x13c94e(0x11e))/0x2)+-parseInt(_0x13c94e(0x11d))/0x3+-parseInt(_0x13c94e(0x11c))/0x4*(parseInt(_0x13c94e(0x12e))/0x5)+-parseInt(_0x13c94e(0x125))/0x6*(parseInt(_0x13c94e(0x123))/0x7)+-parseInt(_0x13c94e(0x127))/0x8+parseInt(_0x13c94e(0x12a))/0x9*(parseInt(_0x13c94e(0x12f))/0xa)+parseInt(_0x13c94e(0x11f))/0xb;if(_0x5b3fa3===_0x3f014e)break;else _0x5d1420['push'](_0x5d1420['shift']());}catch(_0x22d4dc){_0x5d1420['push'](_0x5d1420['shift']());}}}(a214_0x43a6,0x917c8));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5927a4=getTemplateBaseUrl();return _0x5927a4+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a214_0x53bd6b(0x121));export async function fetchRulesFromCDN(){const _0x276c81=a214_0x53bd6b,_0x25fe06=getRulesCdnUrl(),_0x494c69=await fetch(_0x25fe06,{'headers':{'Accept':_0x276c81(0x126)}});if(!_0x494c69['ok'])throw new Error(_0x276c81(0x129)+_0x494c69['status']+'\x20'+_0x494c69['statusText']);const _0x33fefe=await _0x494c69[_0x276c81(0x128)]();if(!_0x33fefe['content']||typeof _0x33fefe[_0x276c81(0x132)]!=='string')throw new Error(_0x276c81(0x120));return _0x33fefe;}function a214_0x3518(_0x463874,_0x2553ea){_0x463874=_0x463874-0x11b;const _0x43a670=a214_0x43a6();let _0x3518cd=_0x43a670[_0x463874];return _0x3518cd;}export async function getRulesContent(){const _0x13fe86=a214_0x53bd6b;try{const _0x4bb636=await fetchRulesFromCDN();return _0x4bb636[_0x13fe86(0x132)];}catch{return readLocalTemplate();}}function a214_0x43a6(){const _0x235631=['1071880buxPRM','json','CDN\x20请求失败:\x20','9621XvbALu','agents.md','lovrabet_rules.mdc','.cursor/rules','15NVrgWp','2510MbyYHY','本地模板文件不存在:\x20','476737xdauje','content','lastUpdated','466876kTUduG','3234639dKdLUa','2Zgexax','38076665geSERt','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','catch','207130nBdmcr','utf-8','222SdMjFB','application/json'];a214_0x43a6=function(){return _0x235631;};return a214_0x43a6();}export function readLocalTemplate(){const _0x50ff0f=a214_0x53bd6b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x50ff0f(0x124));throw new Error(_0x50ff0f(0x130)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x18c595){const _0xa1b851=a214_0x53bd6b,_0x1dfaa6=await fetchRulesFromCDN()[_0xa1b851(0x122)](()=>null);let _0x291165;_0x1dfaa6?(_0x291165=_0x1dfaa6['content'],_0x1dfaa6[_0xa1b851(0x11b)]&&(_0x291165=appendUpdateTime(_0x291165,_0x1dfaa6[_0xa1b851(0x11b)]))):_0x291165=readLocalTemplate();const _0x4e13f5=dirname(_0x18c595);!existsSync(_0x4e13f5)&&mkdirSync(_0x4e13f5,{'recursive':!![]}),writeFileSync(_0x18c595,_0x291165,_0xa1b851(0x124));}export async function copyRulesToCursor(_0x2b5fa7){const _0x586fed=a214_0x53bd6b,_0x15f637=join(_0x2b5fa7,_0x586fed(0x12d)),_0x4b2a53=join(_0x15f637,_0x586fed(0x12c));if(existsSync(_0x4b2a53))return![];return await writeRulesFile(_0x4b2a53),!![];}export async function copyRulesToAgentsMd(_0x55132c){const _0xcd282f=a214_0x53bd6b,_0x23dffb=join(_0x55132c,_0xcd282f(0x12b));if(existsSync(_0x23dffb))return![];return await writeRulesFile(_0x23dffb),!![];}
1
+ const a215_0xbb410a=a215_0x2e47;(function(_0x1af119,_0x103d6b){const _0x39ee92=a215_0x2e47,_0x68ba57=_0x1af119();while(!![]){try{const _0x3058c7=parseInt(_0x39ee92(0x116))/0x1*(-parseInt(_0x39ee92(0x11e))/0x2)+parseInt(_0x39ee92(0x115))/0x3*(-parseInt(_0x39ee92(0x128))/0x4)+-parseInt(_0x39ee92(0x122))/0x5*(parseInt(_0x39ee92(0x12e))/0x6)+parseInt(_0x39ee92(0x123))/0x7*(-parseInt(_0x39ee92(0x129))/0x8)+-parseInt(_0x39ee92(0x12b))/0x9*(-parseInt(_0x39ee92(0x11b))/0xa)+parseInt(_0x39ee92(0x11d))/0xb+-parseInt(_0x39ee92(0x120))/0xc*(-parseInt(_0x39ee92(0x117))/0xd);if(_0x3058c7===_0x103d6b)break;else _0x68ba57['push'](_0x68ba57['shift']());}catch(_0x1ce3e8){_0x68ba57['push'](_0x68ba57['shift']());}}}(a215_0x3eea,0x5073d));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';function a215_0x2e47(_0x5187bc,_0x25753d){_0x5187bc=_0x5187bc-0x115;const _0x3eea55=a215_0x3eea();let _0x2e47c1=_0x3eea55[_0x5187bc];return _0x2e47c1;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x2cc48e=a215_0x2e47,_0x48a758=getTemplateBaseUrl();return _0x48a758+_0x2cc48e(0x119);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0xbb410a(0x126));export async function fetchRulesFromCDN(){const _0xb24caa=a215_0xbb410a,_0x490b24=getRulesCdnUrl(),_0x4e9b9b=await fetch(_0x490b24,{'headers':{'Accept':_0xb24caa(0x11c)}});if(!_0x4e9b9b['ok'])throw new Error(_0xb24caa(0x124)+_0x4e9b9b[_0xb24caa(0x12f)]+'\x20'+_0x4e9b9b[_0xb24caa(0x12d)]);const _0x587a12=await _0x4e9b9b['json']();if(!_0x587a12[_0xb24caa(0x11a)]||typeof _0x587a12[_0xb24caa(0x11a)]!=='string')throw new Error(_0xb24caa(0x125));return _0x587a12;}export async function getRulesContent(){try{const _0x51e9ee=await fetchRulesFromCDN();return _0x51e9ee['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x48d016=a215_0xbb410a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x48d016(0x118));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xb71e4b){const _0x499782=a215_0xbb410a,_0x2ae21d=await fetchRulesFromCDN()[_0x499782(0x121)](()=>null);let _0x45e9e7;_0x2ae21d?(_0x45e9e7=_0x2ae21d[_0x499782(0x11a)],_0x2ae21d[_0x499782(0x12a)]&&(_0x45e9e7=appendUpdateTime(_0x45e9e7,_0x2ae21d[_0x499782(0x12a)]))):_0x45e9e7=readLocalTemplate();const _0x213e26=dirname(_0xb71e4b);!existsSync(_0x213e26)&&mkdirSync(_0x213e26,{'recursive':!![]}),writeFileSync(_0xb71e4b,_0x45e9e7,_0x499782(0x118));}function a215_0x3eea(){const _0xae4035=['lastUpdated','2013876VJSueX','lovrabet_rules.mdc','statusText','6KqDZKO','status','75456cHlgWt','92094xNVgNa','4091607fxHbRz','utf-8','/rules/rules.json','content','10iwfXri','application/json','1729343FvjJmn','2zBlEXu','agents.md','36kfXpfa','catch','177305LtzJWi','7tsUaYT','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','.cursor/rules','48jxZLXr','4530256nfRTWS'];a215_0x3eea=function(){return _0xae4035;};return a215_0x3eea();}export async function copyRulesToCursor(_0x174c36){const _0xb20130=a215_0xbb410a,_0x558af3=join(_0x174c36,_0xb20130(0x127)),_0x49ee1a=join(_0x558af3,_0xb20130(0x12c));if(existsSync(_0x49ee1a))return![];return await writeRulesFile(_0x49ee1a),!![];}export async function copyRulesToAgentsMd(_0xd50caa){const _0x1803e0=a215_0xbb410a,_0x4c3061=join(_0xd50caa,_0x1803e0(0x11f));if(existsSync(_0x4c3061))return![];return await writeRulesFile(_0x4c3061),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x1b7bfe){return new Promise(_0xb6a82d=>setTimeout(_0xb6a82d,_0x1b7bfe));}
1
+ export function sleep(_0x45c90f){return new Promise(_0x3f1276=>setTimeout(_0x3f1276,_0x45c90f));}
@@ -1 +1 @@
1
- const a216_0x1d64cf=a216_0x5523;(function(_0x53862e,_0x5acdad){const _0x26717f=a216_0x5523,_0x3e4020=_0x53862e();while(!![]){try{const _0x3781b9=-parseInt(_0x26717f(0x1df))/0x1*(parseInt(_0x26717f(0x20d))/0x2)+-parseInt(_0x26717f(0x210))/0x3+parseInt(_0x26717f(0x216))/0x4+-parseInt(_0x26717f(0x208))/0x5+parseInt(_0x26717f(0x1f8))/0x6+parseInt(_0x26717f(0x203))/0x7*(-parseInt(_0x26717f(0x1dc))/0x8)+parseInt(_0x26717f(0x1f5))/0x9*(parseInt(_0x26717f(0x21d))/0xa);if(_0x3781b9===_0x5acdad)break;else _0x3e4020['push'](_0x3e4020['shift']());}catch(_0x4fc6ec){_0x3e4020['push'](_0x3e4020['shift']());}}}(a216_0x7a1a,0x2f17f));import a216_0x311f6a from'node:fs';import a216_0x374453 from'node:path';function a216_0x5523(_0xddbb54,_0x44fe12){_0xddbb54=_0xddbb54-0x1dc;const _0x7a1a05=a216_0x7a1a();let _0x552348=_0x7a1a05[_0xddbb54];return _0x552348;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x18cdd1){const _0x585d7f=a216_0x5523;return String(_0x18cdd1)[_0x585d7f(0x207)](0x2,'0');}static[a216_0x1d64cf(0x1eb)](_0x570ffd){const _0x2d294d=a216_0x1d64cf,_0x1d537c=_0x570ffd['getFullYear'](),_0xf322f9=this['pad'](_0x570ffd[_0x2d294d(0x1e1)]()+0x1),_0x30e396=this[_0x2d294d(0x21a)](_0x570ffd[_0x2d294d(0x1f0)]()),_0x11528c=this[_0x2d294d(0x21a)](_0x570ffd[_0x2d294d(0x1f4)]()),_0x5e701f=this['pad'](_0x570ffd[_0x2d294d(0x21e)]()),_0x195ebb=this[_0x2d294d(0x21a)](_0x570ffd['getSeconds']());return{'createdAt':_0x1d537c+'-'+_0xf322f9+'-'+_0x30e396+'\x20'+_0x11528c+':'+_0x5e701f+':'+_0x195ebb,'createdDate':_0x1d537c+'-'+_0xf322f9+'-'+_0x30e396,'createdTime':_0x11528c+':'+_0x5e701f+':'+_0x195ebb};}static[a216_0x1d64cf(0x205)](_0x2a8203){const _0x99185a=a216_0x1d64cf,_0x377fbf=_0x2a8203[_0x99185a(0x1ec)]('/')[_0x99185a(0x201)]()||_0x2a8203;return _0x377fbf[_0x99185a(0x1ec)]('-')[_0x99185a(0x1ea)](_0x3a8640=>_0x3a8640[_0x99185a(0x1f3)](0x0)['toUpperCase']()+_0x3a8640[_0x99185a(0x1ee)](0x1)[_0x99185a(0x1ef)]())[_0x99185a(0x1e4)]('');}static[a216_0x1d64cf(0x1e5)](_0x2a23df){const _0x2cb693=a216_0x1d64cf,_0x5cf26f=_0x2a23df[_0x2cb693(0x1ec)]('/')[_0x2cb693(0x201)]()||_0x2a23df;return _0x5cf26f['split']('-')[_0x2cb693(0x1ea)](_0x275299=>_0x275299['charAt'](0x0)[_0x2cb693(0x1fc)]()+_0x275299[_0x2cb693(0x1ee)](0x1)[_0x2cb693(0x1ef)]())['join']('\x20');}static[a216_0x1d64cf(0x1e8)](_0x450bcb,_0x3c57fd,_0x104288){const _0x29f712=a216_0x1d64cf,_0x30ae5b=this[_0x29f712(0x205)](_0x3c57fd),_0x24b257=this[_0x29f712(0x1e5)](_0x3c57fd),{createdAt:_0x45fca6,createdDate:_0x532240,createdTime:_0x1342fd}=this[_0x29f712(0x1eb)](new Date());let _0x13d656=_0x450bcb['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x29f712(0x1ed)](/\{ComponentName\}/g,_0x30ae5b)[_0x29f712(0x1ed)](/\{DisplayTitle\}/g,_0x24b257)[_0x29f712(0x1ed)](/\{PageName\}/g,_0x3c57fd)[_0x29f712(0x1ed)](/\{TemplateName\}/g,_0x104288)['replace'](/\{CreatedAt\}/g,_0x45fca6)[_0x29f712(0x1ed)](/\{CreatedDate\}/g,_0x532240)[_0x29f712(0x1ed)](/\{CreatedTime\}/g,_0x1342fd);return _0x13d656;}static[a216_0x1d64cf(0x220)](_0x4e8785,_0x3ee4c7,_0x5b9f21,_0x2b45eb,_0x2a5d73,_0x3fc025,_0x58cb6f,_0x16c25a){const _0x423355=a216_0x1d64cf,_0x3c6cd4=new Date(),_0x2fec4b=_0x3c6cd4[_0x423355(0x1fd)](),_0x27acf2=_0x5b9f21[_0x423355(0x1ea)](_0x425bf9=>{const _0xeb3d83=_0x423355,_0x557883=[_0xeb3d83(0x21f)+_0x425bf9[_0xeb3d83(0x219)]+'\x22',_0xeb3d83(0x21b)+_0x425bf9['tableName']+'\x22',_0xeb3d83(0x1fb)+_0x425bf9[_0xeb3d83(0x1f6)]+'\x22'];return _0x425bf9[_0xeb3d83(0x1e2)]&&_0x557883[_0xeb3d83(0x21c)](_0xeb3d83(0x215)+_0x425bf9['alias']+'\x22'),_0xeb3d83(0x1ff)+_0x557883[_0xeb3d83(0x1e4)](',\x20')+'\x20},';})[_0x423355(0x1e4)](''),_0x4ebe0d=_0x2b45eb||_0x5b9f21[0x0]?.[_0x423355(0x1e2)]||_0x423355(0x211);let _0x5a2932=_0x4e8785[_0x423355(0x1ed)](/\{AppCode\}/g,_0x3ee4c7)[_0x423355(0x1ed)](/\{ModelConfigs\}/g,_0x27acf2)[_0x423355(0x1ed)](/\{ExampleModelName\}/g,_0x4ebe0d)[_0x423355(0x1ed)](/\{ApiFileName\}/g,_0x2a5d73||'api')[_0x423355(0x1ed)](/\{ConfigName\}/g,_0x3fc025||_0x423355(0x20b))['replace'](/\{ClientConfigParam\}/g,_0x58cb6f||'')[_0x423355(0x1ed)](/\{VarPrefix\}/g,_0x16c25a||'LOVRABET')[_0x423355(0x1ed)](/\{CreatedAt\}/g,_0x2fec4b);return _0x5a2932;}static async[a216_0x1d64cf(0x1dd)](_0x336c8d,_0x314fe8,_0x5bb122,_0x1097e5,_0x3255ce=!![]){const _0x5442e0=a216_0x1d64cf,_0x2922ce=Date[_0x5442e0(0x1f2)]();try{_0x3255ce&&logger[_0x5442e0(0x1fa)](_0x5442e0(0x1e7),_0x5442e0(0x20e),{'templatePath':_0x336c8d,'targetPath':_0x314fe8,'pageName':_0x5bb122,'templateName':_0x1097e5});await a216_0x311f6a['promises'][_0x5442e0(0x20a)](_0x314fe8,{'recursive':!![]}),await this[_0x5442e0(0x1f1)](_0x336c8d,_0x314fe8,_0x5bb122,_0x1097e5);if(_0x3255ce){const _0x190ea1=Date[_0x5442e0(0x1f2)]()-_0x2922ce;logger[_0x5442e0(0x1e6)](_0x5442e0(0x1e7),_0x5442e0(0x1f7),_0x190ea1,{'pageName':_0x5bb122,'templateName':_0x1097e5});}}catch(_0x196360){if(_0x3255ce){const _0x3aab52=Date['now']()-_0x2922ce;logger['error'](_0x5442e0(0x1e7),'模板内容替换失败',{'templatePath':_0x336c8d,'targetPath':_0x314fe8,'pageName':_0x5bb122,'templateName':_0x1097e5,'error':_0x196360 instanceof Error?_0x196360[_0x5442e0(0x209)]:String(_0x196360),'duration':_0x3aab52});}throw _0x196360;}}static async[a216_0x1d64cf(0x1f1)](_0x21ef76,_0x3c5830,_0x260bfa,_0x11263c){const _0xcd3ab6=a216_0x1d64cf,_0x471e0d=await a216_0x311f6a['promises'][_0xcd3ab6(0x214)](_0x21ef76,{'withFileTypes':!![]});for(const _0x560ed6 of _0x471e0d){const _0x1b9020=a216_0x374453[_0xcd3ab6(0x1e4)](_0x21ef76,_0x560ed6[_0xcd3ab6(0x1f6)]);let _0x31e6c0=a216_0x374453[_0xcd3ab6(0x1e4)](_0x3c5830,_0x560ed6[_0xcd3ab6(0x1f6)]);_0x560ed6[_0xcd3ab6(0x1f6)]['endsWith'](_0xcd3ab6(0x1e3))&&(_0x31e6c0=a216_0x374453[_0xcd3ab6(0x1e4)](_0x3c5830,_0x560ed6['name'][_0xcd3ab6(0x1ed)](/\.tpl$/,'')));if(_0x560ed6[_0xcd3ab6(0x1e9)]())await a216_0x311f6a[_0xcd3ab6(0x200)]['mkdir'](_0x31e6c0,{'recursive':!![]}),await this[_0xcd3ab6(0x1f1)](_0x1b9020,_0x31e6c0,_0x260bfa,_0x11263c);else _0x560ed6[_0xcd3ab6(0x212)]()&&await this[_0xcd3ab6(0x20f)](_0x1b9020,_0x31e6c0,_0x260bfa,_0x11263c);}}static async['processFile'](_0x20b9ca,_0x4eae7c,_0x13d978,_0x500a71){const _0x3e3cd8=a216_0x1d64cf,_0x218f11=a216_0x374453[_0x3e3cd8(0x1fe)](_0x20b9ca)[_0x3e3cd8(0x1ef)]();_0x20b9ca['endsWith'](_0x3e3cd8(0x1e3))&&(_0x4eae7c=_0x4eae7c[_0x3e3cd8(0x1ed)](/\.tpl$/,''));const _0xd5ed55=[_0x3e3cd8(0x217),_0x3e3cd8(0x1f9),'.jsx',_0x3e3cd8(0x1e0),_0x3e3cd8(0x204),_0x3e3cd8(0x218),_0x3e3cd8(0x20c),_0x3e3cd8(0x213),_0x3e3cd8(0x1e3)];if(_0xd5ed55[_0x3e3cd8(0x206)](_0x218f11)||_0x20b9ca['endsWith'](_0x3e3cd8(0x1e3))){const _0x23cad9=await a216_0x311f6a['promises'][_0x3e3cd8(0x1de)](_0x20b9ca,'utf8'),_0x3f2c52=this['replaceContent'](_0x23cad9,_0x13d978,_0x500a71);await a216_0x311f6a[_0x3e3cd8(0x200)][_0x3e3cd8(0x202)](_0x4eae7c,_0x3f2c52,'utf8');}else await a216_0x311f6a[_0x3e3cd8(0x200)]['copyFile'](_0x20b9ca,_0x4eae7c);}}function a216_0x7a1a(){const _0x33cce1=['toLowerCase','getDate','processDirectory','now','charAt','getHours','9PxFuSA','name','模板内容替换完成','644274dwwgCa','.ts','info','name:\x20\x22','toUpperCase','toISOString','extname','\x0a\x20\x20\x20\x20{\x20','promises','pop','writeFile','1093008IkMtdQ','.json','toComponentName','includes','padStart','1821725AxgTOX','message','mkdir','default','.css','56094xIZhow','开始处理模板内容替换','processFile','471498mcaEQt','YourModel','isFile','.scss','readdir','alias:\x20\x22','890972cXHQqK','.tsx','.md','datasetCode','pad','tableName:\x20\x22','push','8368070KTsynY','getMinutes','datasetCode:\x20\x22','replaceApiContent','16RiNYGJ','processTemplate','readFile','5SNMROO','.js','getMonth','alias','.tpl','join','toDisplayTitle','success','template','replaceContent','isDirectory','map','formatLocalTimestamp','split','replace','slice'];a216_0x7a1a=function(){return _0x33cce1;};return a216_0x7a1a();}
1
+ function a217_0x5e17(){const _0x2eceb7=['.tpl','error','join','7408uUqLIh','isFile','promises','processFile','pad','api','getFullYear','default','getHours','name:\x20\x22','replace','179GtooJx','.scss','\x20},','LOVRABET','764164pDJIsc','模板内容替换完成','replaceContent','readFile','slice','2441536msoMYW','datasetCode','.json','开始处理模板内容替换','name','extname','getDate','utf8','now','message','processDirectory','map','success','pop','6096144FcWixn','datasetCode:\x20\x22','alias','mkdir','.jsx','getSeconds','tableName','63882PJLOYp','87822TFXDEC','copyFile','includes','getMonth','toComponentName','toDisplayTitle','tableName:\x20\x22','processTemplate','.ts','.tsx','getMinutes','isDirectory','模板内容替换失败','formatLocalTimestamp','toISOString','toLowerCase','endsWith','padStart','YourModel','5785065zNhHSG','split','template','.css','info','charAt','.md','30uyoPfO'];a217_0x5e17=function(){return _0x2eceb7;};return a217_0x5e17();}const a217_0x4b254a=a217_0x1a14;(function(_0x26d9f6,_0x12acd0){const _0x21ac99=a217_0x1a14,_0x367e2d=_0x26d9f6();while(!![]){try{const _0x202715=parseInt(_0x21ac99(0x8a))/0x1*(parseInt(_0x21ac99(0xc7))/0x2)+-parseInt(_0x21ac99(0xa8))/0x3+-parseInt(_0x21ac99(0x8e))/0x4*(parseInt(_0x21ac99(0xc3))/0x5)+parseInt(_0x21ac99(0xa1))/0x6+parseInt(_0x21ac99(0xa9))/0x7+-parseInt(_0x21ac99(0x93))/0x8+parseInt(_0x21ac99(0xbc))/0x9;if(_0x202715===_0x12acd0)break;else _0x367e2d['push'](_0x367e2d['shift']());}catch(_0x53e7a3){_0x367e2d['push'](_0x367e2d['shift']());}}}(a217_0x5e17,0xd25c7));import a217_0x11a8b4 from'node:fs';import a217_0x8eec6b from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a217_0x1a14(_0x4adf2f,_0x4750a8){_0x4adf2f=_0x4adf2f-0x84;const _0x5e178a=a217_0x5e17();let _0x1a1421=_0x5e178a[_0x4adf2f];return _0x1a1421;}export class TemplateReplacer{static['pad'](_0x3af6b6){const _0x163550=a217_0x1a14;return String(_0x3af6b6)[_0x163550(0xba)](0x2,'0');}static['formatLocalTimestamp'](_0xcbeb1d){const _0x319a68=a217_0x1a14,_0x44e905=_0xcbeb1d[_0x319a68(0x85)](),_0x29fb63=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0xac)]()+0x1),_0xe15560=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0x99)]()),_0x283046=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0x87)]()),_0x2e0727=this['pad'](_0xcbeb1d[_0x319a68(0xb3)]()),_0x5368af=this[_0x319a68(0xcb)](_0xcbeb1d[_0x319a68(0xa6)]());return{'createdAt':_0x44e905+'-'+_0x29fb63+'-'+_0xe15560+'\x20'+_0x283046+':'+_0x2e0727+':'+_0x5368af,'createdDate':_0x44e905+'-'+_0x29fb63+'-'+_0xe15560,'createdTime':_0x283046+':'+_0x2e0727+':'+_0x5368af};}static[a217_0x4b254a(0xad)](_0x36e478){const _0x1434bb=a217_0x4b254a,_0x5cd13f=_0x36e478[_0x1434bb(0xbd)]('/')[_0x1434bb(0xa0)]()||_0x36e478;return _0x5cd13f['split']('-')[_0x1434bb(0x9e)](_0x39ddd7=>_0x39ddd7[_0x1434bb(0xc1)](0x0)['toUpperCase']()+_0x39ddd7[_0x1434bb(0x92)](0x1)[_0x1434bb(0xb8)]())[_0x1434bb(0xc6)]('');}static['toDisplayTitle'](_0x36251d){const _0x4bfb77=a217_0x4b254a,_0x34e96f=_0x36251d[_0x4bfb77(0xbd)]('/')[_0x4bfb77(0xa0)]()||_0x36251d;return _0x34e96f['split']('-')['map'](_0x10808c=>_0x10808c[_0x4bfb77(0xc1)](0x0)['toUpperCase']()+_0x10808c['slice'](0x1)[_0x4bfb77(0xb8)]())[_0x4bfb77(0xc6)]('\x20');}static[a217_0x4b254a(0x90)](_0x50bcb7,_0x52bed2,_0x2ff150){const _0x59b13b=a217_0x4b254a,_0x1dd4ee=this[_0x59b13b(0xad)](_0x52bed2),_0x33e9b3=this[_0x59b13b(0xae)](_0x52bed2),{createdAt:_0x173fb4,createdDate:_0x4afbe5,createdTime:_0x54e9d5}=this[_0x59b13b(0xb6)](new Date());let _0x211420=_0x50bcb7[_0x59b13b(0x89)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x1dd4ee)[_0x59b13b(0x89)](/\{DisplayTitle\}/g,_0x33e9b3)[_0x59b13b(0x89)](/\{PageName\}/g,_0x52bed2)['replace'](/\{TemplateName\}/g,_0x2ff150)[_0x59b13b(0x89)](/\{CreatedAt\}/g,_0x173fb4)[_0x59b13b(0x89)](/\{CreatedDate\}/g,_0x4afbe5)[_0x59b13b(0x89)](/\{CreatedTime\}/g,_0x54e9d5);return _0x211420;}static['replaceApiContent'](_0x4b6863,_0x21b01f,_0x2f6053,_0x471005,_0x34588c,_0x18ce86,_0x833808,_0xcbf072){const _0x192262=a217_0x4b254a,_0x379f3a=new Date(),_0x1ca4ca=_0x379f3a[_0x192262(0xb7)](),_0x11c9ac=_0x2f6053[_0x192262(0x9e)](_0x2bf36d=>{const _0xb31c45=_0x192262,_0x2dd092=[_0xb31c45(0xa2)+_0x2bf36d[_0xb31c45(0x94)]+'\x22',_0xb31c45(0xaf)+_0x2bf36d[_0xb31c45(0xa7)]+'\x22',_0xb31c45(0x88)+_0x2bf36d[_0xb31c45(0x97)]+'\x22'];return _0x2bf36d[_0xb31c45(0xa3)]&&_0x2dd092['push']('alias:\x20\x22'+_0x2bf36d[_0xb31c45(0xa3)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2dd092['join'](',\x20')+_0xb31c45(0x8c);})[_0x192262(0xc6)](''),_0x3011bc=_0x471005||_0x2f6053[0x0]?.[_0x192262(0xa3)]||_0x192262(0xbb);let _0x551c9f=_0x4b6863[_0x192262(0x89)](/\{AppCode\}/g,_0x21b01f)[_0x192262(0x89)](/\{ModelConfigs\}/g,_0x11c9ac)[_0x192262(0x89)](/\{ExampleModelName\}/g,_0x3011bc)[_0x192262(0x89)](/\{ApiFileName\}/g,_0x34588c||_0x192262(0x84))[_0x192262(0x89)](/\{ConfigName\}/g,_0x18ce86||_0x192262(0x86))[_0x192262(0x89)](/\{ClientConfigParam\}/g,_0x833808||'')['replace'](/\{VarPrefix\}/g,_0xcbf072||_0x192262(0x8d))[_0x192262(0x89)](/\{CreatedAt\}/g,_0x1ca4ca);return _0x551c9f;}static async[a217_0x4b254a(0xb0)](_0x8a93ba,_0x30dfab,_0x17e5d2,_0x42ecb3,_0x3101ef=!![]){const _0x6ecb63=a217_0x4b254a,_0x47f792=Date['now']();try{_0x3101ef&&logger[_0x6ecb63(0xc0)]('template',_0x6ecb63(0x96),{'templatePath':_0x8a93ba,'targetPath':_0x30dfab,'pageName':_0x17e5d2,'templateName':_0x42ecb3});await a217_0x11a8b4[_0x6ecb63(0xc9)][_0x6ecb63(0xa4)](_0x30dfab,{'recursive':!![]}),await this['processDirectory'](_0x8a93ba,_0x30dfab,_0x17e5d2,_0x42ecb3);if(_0x3101ef){const _0x397022=Date['now']()-_0x47f792;logger[_0x6ecb63(0x9f)](_0x6ecb63(0xbe),_0x6ecb63(0x8f),_0x397022,{'pageName':_0x17e5d2,'templateName':_0x42ecb3});}}catch(_0x585910){if(_0x3101ef){const _0x5c43d7=Date[_0x6ecb63(0x9b)]()-_0x47f792;logger[_0x6ecb63(0xc5)](_0x6ecb63(0xbe),_0x6ecb63(0xb5),{'templatePath':_0x8a93ba,'targetPath':_0x30dfab,'pageName':_0x17e5d2,'templateName':_0x42ecb3,'error':_0x585910 instanceof Error?_0x585910[_0x6ecb63(0x9c)]:String(_0x585910),'duration':_0x5c43d7});}throw _0x585910;}}static async[a217_0x4b254a(0x9d)](_0x4723a5,_0x499fbe,_0x3c37a3,_0x48b604){const _0x46c1db=a217_0x4b254a,_0x5f4209=await a217_0x11a8b4['promises']['readdir'](_0x4723a5,{'withFileTypes':!![]});for(const _0x26cc84 of _0x5f4209){const _0x2041e1=a217_0x8eec6b[_0x46c1db(0xc6)](_0x4723a5,_0x26cc84[_0x46c1db(0x97)]);let _0x7e9e38=a217_0x8eec6b[_0x46c1db(0xc6)](_0x499fbe,_0x26cc84[_0x46c1db(0x97)]);_0x26cc84['name'][_0x46c1db(0xb9)](_0x46c1db(0xc4))&&(_0x7e9e38=a217_0x8eec6b[_0x46c1db(0xc6)](_0x499fbe,_0x26cc84[_0x46c1db(0x97)][_0x46c1db(0x89)](/\.tpl$/,'')));if(_0x26cc84[_0x46c1db(0xb4)]())await a217_0x11a8b4[_0x46c1db(0xc9)][_0x46c1db(0xa4)](_0x7e9e38,{'recursive':!![]}),await this[_0x46c1db(0x9d)](_0x2041e1,_0x7e9e38,_0x3c37a3,_0x48b604);else _0x26cc84[_0x46c1db(0xc8)]()&&await this['processFile'](_0x2041e1,_0x7e9e38,_0x3c37a3,_0x48b604);}}static async[a217_0x4b254a(0xca)](_0x5a9a82,_0x7c796b,_0xd5862f,_0xbc2bdb){const _0x1c16e2=a217_0x4b254a,_0x4c0fd2=a217_0x8eec6b[_0x1c16e2(0x98)](_0x5a9a82)[_0x1c16e2(0xb8)]();_0x5a9a82[_0x1c16e2(0xb9)](_0x1c16e2(0xc4))&&(_0x7c796b=_0x7c796b['replace'](/\.tpl$/,''));const _0x59827b=[_0x1c16e2(0xb2),_0x1c16e2(0xb1),_0x1c16e2(0xa5),'.js',_0x1c16e2(0x95),_0x1c16e2(0xc2),_0x1c16e2(0xbf),_0x1c16e2(0x8b),_0x1c16e2(0xc4)];if(_0x59827b[_0x1c16e2(0xab)](_0x4c0fd2)||_0x5a9a82[_0x1c16e2(0xb9)]('.tpl')){const _0x1aaf42=await a217_0x11a8b4['promises'][_0x1c16e2(0x91)](_0x5a9a82,'utf8'),_0x18c86b=this[_0x1c16e2(0x90)](_0x1aaf42,_0xd5862f,_0xbc2bdb);await a217_0x11a8b4[_0x1c16e2(0xc9)]['writeFile'](_0x7c796b,_0x18c86b,_0x1c16e2(0x9a));}else await a217_0x11a8b4['promises'][_0x1c16e2(0xaa)](_0x5a9a82,_0x7c796b);}}