@lovrabet/rabetbase-cli 2.3.7-beta.2 → 2.3.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- const a224_0x340b67=a224_0x24f2;(function(_0x3d6ce6,_0x5445e9){const _0x34fc2e=a224_0x24f2,_0x23701b=_0x3d6ce6();while(!![]){try{const _0xe2d051=parseInt(_0x34fc2e(0x16a))/0x1+parseInt(_0x34fc2e(0x190))/0x2+-parseInt(_0x34fc2e(0x15d))/0x3+parseInt(_0x34fc2e(0x164))/0x4+-parseInt(_0x34fc2e(0x18a))/0x5*(parseInt(_0x34fc2e(0x166))/0x6)+-parseInt(_0x34fc2e(0x16e))/0x7+parseInt(_0x34fc2e(0x182))/0x8;if(_0xe2d051===_0x5445e9)break;else _0x23701b['push'](_0x23701b['shift']());}catch(_0x5b24e5){_0x23701b['push'](_0x23701b['shift']());}}}(a224_0x5565,0x62250));export const CORE_IDE_CONFIGS={'cursor':{'name':a224_0x340b67(0x180),'description':a224_0x340b67(0x171),'folders':['.cursorrules',a224_0x340b67(0x17e)],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x18d),'template':a224_0x340b67(0x192)}]},'windsurf':{'name':a224_0x340b67(0x16b),'description':'Windsurf\x20IDE','folders':[a224_0x340b67(0x17b)],'files':[{'type':'file','path':a224_0x340b67(0x17f),'template':a224_0x340b67(0x192)}]},'claude':{'name':a224_0x340b67(0x183),'description':'Claude\x20Code','folders':[a224_0x340b67(0x161)],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x189),'template':'SKILL.md.tpl'}]},'cline':{'name':a224_0x340b67(0x188),'description':a224_0x340b67(0x179),'folders':[a224_0x340b67(0x163)],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x167),'template':a224_0x340b67(0x192)}]},'codex':{'name':a224_0x340b67(0x184),'description':a224_0x340b67(0x16c),'folders':[a224_0x340b67(0x162)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':a224_0x340b67(0x192)}]},'opencode':{'name':a224_0x340b67(0x186),'description':a224_0x340b67(0x160),'folders':['.opencode'],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x172),'template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':a224_0x340b67(0x177),'folders':[a224_0x340b67(0x178)],'files':[{'type':'file','path':a224_0x340b67(0x15e),'template':a224_0x340b67(0x192)},{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x17d),'template':a224_0x340b67(0x192)}]},'codebuddy':{'name':a224_0x340b67(0x18f),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x17a),'template':a224_0x340b67(0x192)}]},'trae':{'name':a224_0x340b67(0x174),'description':'Trae\x20IDE','folders':[a224_0x340b67(0x185)],'files':[{'type':'file','path':a224_0x340b67(0x170),'template':a224_0x340b67(0x192)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a224_0x340b67(0x193),'description':a224_0x340b67(0x15f),'folders':[a224_0x340b67(0x18c)],'files':[{'type':a224_0x340b67(0x168),'path':a224_0x340b67(0x169),'template':a224_0x340b67(0x192)}]},'antigravity':{'name':'Antigravity','description':a224_0x340b67(0x175),'folders':[a224_0x340b67(0x18c)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a224_0x340b67(0x192)}]}};function a224_0x24f2(_0xbee079,_0x2793f4){_0xbee079=_0xbee079-0x15d;const _0x556526=a224_0x5565();let _0x24f2e3=_0x556526[_0xbee079];return _0x24f2e3;}export const CORE_IDE_LIST=[a224_0x340b67(0x173),'cline','codebuddy',a224_0x340b67(0x191),a224_0x340b67(0x181),a224_0x340b67(0x18e),a224_0x340b67(0x165),a224_0x340b67(0x18b),a224_0x340b67(0x17c)];export const IDE_LIST=[a224_0x340b67(0x16d),'claude',a224_0x340b67(0x176),a224_0x340b67(0x16f),'codex',a224_0x340b67(0x181),a224_0x340b67(0x18e),a224_0x340b67(0x165),a224_0x340b67(0x18b),a224_0x340b67(0x17c),a224_0x340b67(0x187)];export const ALL_CORE_IDES=[a224_0x340b67(0x181),'windsurf',a224_0x340b67(0x173),a224_0x340b67(0x176),'codex','opencode','qoder',a224_0x340b67(0x16f),a224_0x340b67(0x18b)];function a224_0x5565(){const _0x439aee=['.cline/skills/lovrabet/SKILL.md','file','.agent/skills/lovrabet/SKILL.md','108292kVsNGD','Windsurf','Codex\x20IDE','antigravity','4918340UWsNqd','codebuddy','.trae/skills/lovrabet/SKILL.md','Cursor\x20IDE','.opencode/skills/lovrabet/SKILL.md','claude','Trae','Antigravity\x20IDE','cline','Qoder\x20IDE','.qoder','Cline\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.windsurf','windsurf','.qoder/skills/lovrabet/SKILL.md','.cursor','.windsurf/workflows/rabetbase.md','Cursor','cursor','4263904MngRpu','Claude\x20Code','Codex','.trae','OpenCode','agent','Cline','.claude/skills/lovrabet/SKILL.md','10EjOmSj','trae','.agent','.cursor/skills/rabetbase.md','opencode','CodeBuddy','1250364wZgRzY','codex','SKILL.md.tpl','其他\x20(通用模板)','1575093LrnuUl','.qoder/rules/rabetbase.md','通用模板\x20-\x20兜底方案','OpenCode\x20IDE','.claude','.codex','.cline','2200652JqnaUl','qoder','560922DsrZRY'];a224_0x5565=function(){return _0x439aee;};return a224_0x5565();}
1
+ const a224_0x59473c=a224_0x53f5;function a224_0x53f5(_0x353e9b,_0x248ece){_0x353e9b=_0x353e9b-0x70;const _0x5aeebc=a224_0x5aee();let _0x53f5f2=_0x5aeebc[_0x353e9b];return _0x53f5f2;}function a224_0x5aee(){const _0x524bbe=['file','.codebuddy','.cursorrules','cursor','Codex\x20IDE','Antigravity\x20IDE','7286jKZejN','通用模板\x20-\x20兜底方案','opencode','agent','3244990GcSMgj','Cline','.trae/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.trae','.cursor','.opencode','167598mLehSc','.cline','codex','.qoder','.windsurf','.agent','.cursor/skills/rabetbase.md','130oFObnQ','claude','windsurf','2150487AxMYnG','5853465QcJVXj','Trae\x20IDE','.claude/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','cline','.agent/skills/lovrabet/SKILL.md','OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','codebuddy','Antigravity','SKILL.md.tpl','Qoder','193IRsHSE','Windsurf\x20IDE','2627174MnIEcT','600CAscnw','261024GNwing','Codex','Trae','.qoder/skills/lovrabet/SKILL.md','6OStlPI','qoder','.cline/skills/lovrabet/SKILL.md','trae','Claude\x20Code','.codex/skills/lovrabet/SKILL.md'];a224_0x5aee=function(){return _0x524bbe;};return a224_0x5aee();}(function(_0x426b02,_0x1b6830){const _0x49fc75=a224_0x53f5,_0xa39e3e=_0x426b02();while(!![]){try{const _0x6c4c1f=-parseInt(_0x49fc75(0x91))/0x1*(parseInt(_0x49fc75(0xa5))/0x2)+-parseInt(_0x49fc75(0x84))/0x3+-parseInt(_0x49fc75(0x95))/0x4+parseInt(_0x49fc75(0x85))/0x5+-parseInt(_0x49fc75(0x99))/0x6*(parseInt(_0x49fc75(0x73))/0x7)+parseInt(_0x49fc75(0x94))/0x8*(-parseInt(_0x49fc75(0x7a))/0x9)+-parseInt(_0x49fc75(0x81))/0xa*(-parseInt(_0x49fc75(0x93))/0xb);if(_0x6c4c1f===_0x1b6830)break;else _0xa39e3e['push'](_0xa39e3e['shift']());}catch(_0x5579c1){_0xa39e3e['push'](_0xa39e3e['shift']());}}}(a224_0x5aee,0xe3153));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a224_0x59473c(0xa1),a224_0x59473c(0x78)],'files':[{'type':'file','path':a224_0x59473c(0x80),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a224_0x59473c(0x92),'folders':[a224_0x59473c(0x7e)],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x8c),'template':a224_0x59473c(0x8f)}]},'claude':{'name':a224_0x59473c(0x9d),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x87),'template':a224_0x59473c(0x8f)}]},'cline':{'name':a224_0x59473c(0x74),'description':'Cline\x20IDE','folders':[a224_0x59473c(0x7b)],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x9b),'template':a224_0x59473c(0x8f)}]},'codex':{'name':a224_0x59473c(0x96),'description':a224_0x59473c(0xa3),'folders':['.codex'],'files':[{'type':'file','path':a224_0x59473c(0x9e),'template':a224_0x59473c(0x8f)}]},'opencode':{'name':'OpenCode','description':a224_0x59473c(0x8b),'folders':[a224_0x59473c(0x79)],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x88),'template':a224_0x59473c(0x8f)}]},'qoder':{'name':a224_0x59473c(0x90),'description':'Qoder\x20IDE','folders':[a224_0x59473c(0x7d)],'files':[{'type':a224_0x59473c(0x9f),'path':'.qoder/rules/rabetbase.md','template':a224_0x59473c(0x8f)},{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x98),'template':a224_0x59473c(0x8f)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a224_0x59473c(0xa0)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a224_0x59473c(0x8f)}]},'trae':{'name':a224_0x59473c(0x97),'description':a224_0x59473c(0x86),'folders':[a224_0x59473c(0x77)],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x75),'template':a224_0x59473c(0x8f)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a224_0x59473c(0x76),'description':a224_0x59473c(0x70),'folders':[a224_0x59473c(0x7f)],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x8a),'template':a224_0x59473c(0x8f)}]},'antigravity':{'name':a224_0x59473c(0x8e),'description':a224_0x59473c(0xa4),'folders':['.agent'],'files':[{'type':a224_0x59473c(0x9f),'path':a224_0x59473c(0x8a),'template':a224_0x59473c(0x8f)}]}};export const CORE_IDE_LIST=[a224_0x59473c(0x82),a224_0x59473c(0x89),'codebuddy',a224_0x59473c(0x7c),a224_0x59473c(0xa2),'opencode','qoder',a224_0x59473c(0x9c),a224_0x59473c(0x83)];export const IDE_LIST=['antigravity','claude','cline',a224_0x59473c(0x8d),a224_0x59473c(0x7c),a224_0x59473c(0xa2),a224_0x59473c(0x71),a224_0x59473c(0x9a),'trae',a224_0x59473c(0x83),a224_0x59473c(0x72)];export const ALL_CORE_IDES=['cursor','windsurf','claude',a224_0x59473c(0x89),a224_0x59473c(0x7c),'opencode',a224_0x59473c(0x9a),'codebuddy',a224_0x59473c(0x9c)];
@@ -1 +1 @@
1
- (function(_0x5b626e,_0x316d1e){const _0x17a0d7=a225_0x3244,_0x3d45d0=_0x5b626e();while(!![]){try{const _0x356c3d=-parseInt(_0x17a0d7(0x72))/0x1+-parseInt(_0x17a0d7(0x79))/0x2*(-parseInt(_0x17a0d7(0x76))/0x3)+-parseInt(_0x17a0d7(0x74))/0x4*(parseInt(_0x17a0d7(0x71))/0x5)+-parseInt(_0x17a0d7(0x78))/0x6*(parseInt(_0x17a0d7(0x73))/0x7)+parseInt(_0x17a0d7(0x77))/0x8+parseInt(_0x17a0d7(0x7a))/0x9*(-parseInt(_0x17a0d7(0x75))/0xa)+parseInt(_0x17a0d7(0x70))/0xb;if(_0x356c3d===_0x316d1e)break;else _0x3d45d0['push'](_0x3d45d0['shift']());}catch(_0x4bc4c1){_0x3d45d0['push'](_0x3d45d0['shift']());}}}(a225_0x4484,0x66fa4));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a225_0x3244(_0x415b19,_0x142762){_0x415b19=_0x415b19-0x70;const _0x448455=a225_0x4484();let _0x32449d=_0x448455[_0x415b19];return _0x32449d;}function a225_0x4484(){const _0xa51e91=['5kPeMrW','663714yITLux','672175esGFAW','1392392kcRPzj','308470CxYAGO','4071phBAJD','4600856gHyPQQ','30keFKcR','154xDITqh','207alCIMt','21379798nWWUDw'];a225_0x4484=function(){return _0xa51e91;};return a225_0x4484();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x186dd6,_0x235f81){const _0x46111b=a225_0x145b,_0x29ea58=_0x186dd6();while(!![]){try{const _0x520597=parseInt(_0x46111b(0x13f))/0x1+parseInt(_0x46111b(0x136))/0x2*(parseInt(_0x46111b(0x13e))/0x3)+-parseInt(_0x46111b(0x13c))/0x4+parseInt(_0x46111b(0x13a))/0x5*(parseInt(_0x46111b(0x138))/0x6)+-parseInt(_0x46111b(0x137))/0x7*(-parseInt(_0x46111b(0x13d))/0x8)+-parseInt(_0x46111b(0x140))/0x9+-parseInt(_0x46111b(0x139))/0xa*(-parseInt(_0x46111b(0x13b))/0xb);if(_0x520597===_0x235f81)break;else _0x29ea58['push'](_0x29ea58['shift']());}catch(_0x14b324){_0x29ea58['push'](_0x29ea58['shift']());}}}(a225_0x55be,0x29de6));function a225_0x145b(_0x44766e,_0x12ea12){_0x44766e=_0x44766e-0x136;const _0x55bee6=a225_0x55be();let _0x145bba=_0x55bee6[_0x44766e];return _0x145bba;}function a225_0x55be(){const _0x318f1b=['956312VfSxgi','216056NnHpPW','132nwZYQD','30478lZdZgz','1363905yPdUAC','1846TuWSAz','7AmMZRN','79068YqSlkF','2136380ojFEMH','95PTXDfY','11VxEmWk'];a225_0x55be=function(){return _0x318f1b;};return a225_0x55be();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x468bfd,_0x4f2211){const _0x1eb0e5=a226_0x52f1,_0xd15e35=_0x468bfd();while(!![]){try{const _0x2a1271=parseInt(_0x1eb0e5(0x1ad))/0x1+parseInt(_0x1eb0e5(0x1a6))/0x2*(parseInt(_0x1eb0e5(0x1a7))/0x3)+-parseInt(_0x1eb0e5(0x1ab))/0x4*(-parseInt(_0x1eb0e5(0x1a9))/0x5)+-parseInt(_0x1eb0e5(0x1a4))/0x6+parseInt(_0x1eb0e5(0x1b2))/0x7+parseInt(_0x1eb0e5(0x1a3))/0x8*(parseInt(_0x1eb0e5(0x1a8))/0x9)+-parseInt(_0x1eb0e5(0x1ae))/0xa*(parseInt(_0x1eb0e5(0x1aa))/0xb);if(_0x2a1271===_0x4f2211)break;else _0xd15e35['push'](_0xd15e35['shift']());}catch(_0x417ed2){_0xd15e35['push'](_0xd15e35['shift']());}}}(a226_0x57e9,0xa32b0));import{getTemplateBaseUrl}from'../utils/config.js';function a226_0x52f1(_0x5ea087,_0x562389){_0x5ea087=_0x5ea087-0x1a1;const _0x57e95d=a226_0x57e9();let _0x52f1f6=_0x57e95d[_0x5ea087];return _0x52f1f6;}export async function fetchCdnConfig(){const _0x8bac2=a226_0x52f1,_0xe5d97a=getTemplateBaseUrl(),_0x31e558=[_0xe5d97a+'/config.json',_0xe5d97a+_0x8bac2(0x1a1)];for(const _0x578acd of _0x31e558){try{const _0xbb484d=await fetch(_0x578acd,{'headers':{'Accept':_0x8bac2(0x1b1)}});if(!_0xbb484d['ok'])continue;const _0x2789ca=await _0xbb484d[_0x8bac2(0x1af)]();if(!_0x2789ca[_0x8bac2(0x1b0)]?.['stableVersion']||!_0x2789ca[_0x8bac2(0x1ac)]?.[_0x8bac2(0x1a5)]?.[_0x8bac2(0x1a2)])continue;return _0x2789ca;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x456624=Date['now']();if(hasCachedConfig){const _0x186c18=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x456624-cacheTime<_0x186c18)return cachedConfig;}const _0x41e57d=await fetchCdnConfig();return cachedConfig=_0x41e57d,cacheTime=_0x456624,hasCachedConfig=!![],_0x41e57d;}function a226_0x57e9(){const _0x5cec01=['node','6070dFSJxe','1047NjkEnN','221139rrYujs','3855uCvuGb','36628427AYVWcj','5228iDgVBD','sdk','369259LTkYag','10mcQVih','json','cli','application/json','4878174MrUjIO','/config/index.json','stableVersion','408HcUQcP','2327886FvbvUU'];a226_0x57e9=function(){return _0x5cec01;};return a226_0x57e9();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x17c8c1,_0x50f58e){const _0x495e47=a226_0x41ef,_0x58d76e=_0x17c8c1();while(!![]){try{const _0x4b45cf=parseInt(_0x495e47(0x19e))/0x1*(parseInt(_0x495e47(0x196))/0x2)+-parseInt(_0x495e47(0x190))/0x3*(parseInt(_0x495e47(0x195))/0x4)+parseInt(_0x495e47(0x19b))/0x5*(parseInt(_0x495e47(0x194))/0x6)+parseInt(_0x495e47(0x192))/0x7*(-parseInt(_0x495e47(0x193))/0x8)+parseInt(_0x495e47(0x1a1))/0x9*(-parseInt(_0x495e47(0x19d))/0xa)+parseInt(_0x495e47(0x197))/0xb*(-parseInt(_0x495e47(0x18c))/0xc)+-parseInt(_0x495e47(0x191))/0xd*(-parseInt(_0x495e47(0x18f))/0xe);if(_0x4b45cf===_0x50f58e)break;else _0x58d76e['push'](_0x58d76e['shift']());}catch(_0x412776){_0x58d76e['push'](_0x58d76e['shift']());}}}(a226_0x30f8,0x4f102));import{getTemplateBaseUrl}from'../utils/config.js';function a226_0x41ef(_0x1a1f8b,_0xe32499){_0x1a1f8b=_0x1a1f8b-0x18c;const _0x30f8d9=a226_0x30f8();let _0x41ef38=_0x30f8d9[_0x1a1f8b];return _0x41ef38;}export async function fetchCdnConfig(){const _0x27a7fc=a226_0x41ef,_0x4d3355=getTemplateBaseUrl(),_0x571a8f=[_0x4d3355+_0x27a7fc(0x19f),_0x4d3355+_0x27a7fc(0x18d)];for(const _0x12cdeb of _0x571a8f){try{const _0x2616a1=await fetch(_0x12cdeb,{'headers':{'Accept':_0x27a7fc(0x18e)}});if(!_0x2616a1['ok'])continue;const _0x5ea0fb=await _0x2616a1[_0x27a7fc(0x199)]();if(!_0x5ea0fb[_0x27a7fc(0x19a)]?.[_0x27a7fc(0x19c)]||!_0x5ea0fb[_0x27a7fc(0x198)]?.[_0x27a7fc(0x1a0)]?.['stableVersion'])continue;return _0x5ea0fb;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a226_0x30f8(){const _0x433af4=['1852nubkJB','479328xYNWtx','11kvmLnf','sdk','json','cli','1239790AgTTEN','stableVersion','3190060QRTUsM','1RhiirR','/config.json','node','9iqPLCE','3614196VJPJfD','/config/index.json','application/json','8393196cPRldk','246pjpuYT','13LvNHhm','7VhzZIk','841112pNbmiC','6LeNkdQ'];a226_0x30f8=function(){return _0x433af4;};return a226_0x30f8();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x370ea4=Date['now']();if(hasCachedConfig){const _0x3d7d0c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x370ea4-cacheTime<_0x3d7d0c)return cachedConfig;}const _0x3acb89=await fetchCdnConfig();return cachedConfig=_0x3acb89,cacheTime=_0x370ea4,hasCachedConfig=!![],_0x3acb89;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a227_0x5cd6(){const _0x5b762c=['stableVersion','all','dependencies','existsSync','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','needsUpgrade','utf-8','2102756LMRiLP','↪\x20SDK\x20update\x20available','node','170493hcWWvs','utf8','log','package.json','devDependencies','version','1738110DcWDPk','coerce','@lovrabet/sdk','3GnuheY','latest','readFileSync','parse','1030952dRsaRO','\x1b[1m','1.2.0','\x1b[33m','packageName','\x20\x20\x20Stable\x20version:\x20','623203xdXLQt','npm\x20install\x20','join','12wlzESj','240512WWfcyu','sdk','node_modules','5273883UEzTdk'];a227_0x5cd6=function(){return _0x5b762c;};return a227_0x5cd6();}const a227_0x510b66=a227_0x5de9;(function(_0x493d79,_0x34cce8){const _0x3c9a14=a227_0x5de9,_0x3ec426=_0x493d79();while(!![]){try{const _0x486245=parseInt(_0x3c9a14(0x125))/0x1+parseInt(_0x3c9a14(0x116))/0x2+parseInt(_0x3c9a14(0x12e))/0x3*(parseInt(_0x3c9a14(0x122))/0x4)+parseInt(_0x3c9a14(0x12b))/0x5+parseInt(_0x3c9a14(0x115))/0x6*(-parseInt(_0x3c9a14(0x112))/0x7)+-parseInt(_0x3c9a14(0x10c))/0x8+-parseInt(_0x3c9a14(0x119))/0x9;if(_0x486245===_0x34cce8)break;else _0x3ec426['push'](_0x3ec426['shift']());}catch(_0x2a8e63){_0x3ec426['push'](_0x3ec426['shift']());}}}(a227_0x5cd6,0x4232a));import a227_0x5b9304 from'node:fs';import a227_0x27c11b from'node:path';import a227_0x464860 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a227_0x510b66(0x10e);function isNonNumericVersion(_0x237607){const _0x2447ea=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2447ea['some'](_0x12231e=>_0x12231e['test'](_0x237607));}function getInstalledVersion(_0x1a58bb,_0xcd47c1){const _0x486f1f=a227_0x510b66;try{const _0x52b4ab=a227_0x27c11b[_0x486f1f(0x114)](_0x1a58bb,_0x486f1f(0x118),_0xcd47c1,_0x486f1f(0x128));if(a227_0x5b9304[_0x486f1f(0x11d)](_0x52b4ab)){const _0x1c2e77=JSON[_0x486f1f(0x10b)](a227_0x5b9304[_0x486f1f(0x130)](_0x52b4ab,_0x486f1f(0x121)));return _0x1c2e77['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x7d1a11=a227_0x510b66;try{const _0x19c2fb=await getCdnConfig();return _0x19c2fb?.[_0x7d1a11(0x117)]?.[_0x7d1a11(0x124)]?.[_0x7d1a11(0x11a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1551ad=a227_0x510b66;try{const _0x3b88c5=await getCdnConfig();return _0x3b88c5?.[_0x1551ad(0x117)]?.['node']?.[_0x1551ad(0x110)]||_0x1551ad(0x12d);}catch{return _0x1551ad(0x12d);}}export async function checkSdkVersion(_0x298dab){const _0x42952a=a227_0x510b66,_0x6e6d6a=a227_0x27c11b[_0x42952a(0x114)](_0x298dab,_0x42952a(0x128)),[_0x4a64a2,_0x459622]=await Promise[_0x42952a(0x11b)]([getSdkStableVersion(),getSdkPackageName()]),_0x5a0024=_0x4a64a2||FALLBACK_MIN_SDK_VERSION;if(!a227_0x5b9304[_0x42952a(0x11d)](_0x6e6d6a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5a0024,'packageName':_0x459622,'stableVersion':_0x4a64a2};try{const _0xf39bcb=JSON[_0x42952a(0x10b)](a227_0x5b9304[_0x42952a(0x130)](_0x6e6d6a,'utf8')),_0x5876f4=_0xf39bcb[_0x42952a(0x11c)]||{},_0xac9add=_0xf39bcb[_0x42952a(0x129)]||{},_0x4fd757=_0x5876f4[_0x459622]||_0xac9add[_0x459622];if(!_0x4fd757)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5a0024,'packageName':_0x459622,'stableVersion':_0x4a64a2};let _0x5b81d7=getInstalledVersion(_0x298dab,_0x459622);!_0x5b81d7&&(_0x5b81d7=_0x4fd757);if(isNonNumericVersion(_0x4fd757))return{'installed':!![],'version':_0x5b81d7,'needsUpgrade':![],'minVersion':_0x5a0024,'packageName':_0x459622,'stableVersion':_0x4a64a2};const _0x46acdd=a227_0x464860[_0x42952a(0x12c)](_0x5b81d7),_0x17cf55=a227_0x464860[_0x42952a(0x12c)](_0x5a0024),_0x4df4db=_0x46acdd&&_0x17cf55?a227_0x464860['lt'](_0x46acdd,_0x17cf55):![];return{'installed':!![],'version':_0x5b81d7,'needsUpgrade':_0x4df4db,'minVersion':_0x5a0024,'packageName':_0x459622,'stableVersion':_0x4a64a2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5a0024,'packageName':_0x459622,'stableVersion':_0x4a64a2};}}function a227_0x5de9(_0x821113,_0x570475){_0x821113=_0x821113-0x10b;const _0x5cd619=a227_0x5cd6();let _0x5de9ed=_0x5cd619[_0x821113];return _0x5de9ed;}export function checkSdkVersionSync(_0x122e19){const _0x3b61e7=a227_0x510b66,_0x45913e=a227_0x27c11b[_0x3b61e7(0x114)](_0x122e19,_0x3b61e7(0x128)),_0x1c1408=_0x3b61e7(0x12d);if(!a227_0x5b9304['existsSync'](_0x45913e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1c1408,'stableVersion':null};try{const _0x47c9dc=JSON[_0x3b61e7(0x10b)](a227_0x5b9304[_0x3b61e7(0x130)](_0x45913e,_0x3b61e7(0x126))),_0x377d48=_0x47c9dc[_0x3b61e7(0x11c)]||{},_0xf927a1=_0x47c9dc[_0x3b61e7(0x129)]||{},_0x4c1129=_0x377d48[_0x1c1408]||_0xf927a1[_0x1c1408];if(!_0x4c1129)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1c1408,'stableVersion':null};let _0x6b22f9=getInstalledVersion(_0x122e19,_0x1c1408);!_0x6b22f9&&(_0x6b22f9=_0x4c1129);if(isNonNumericVersion(_0x4c1129))return{'installed':!![],'version':_0x6b22f9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1c1408,'stableVersion':null};const _0x3f878f=a227_0x464860[_0x3b61e7(0x12c)](_0x6b22f9),_0x30ab00=_0x3f878f?a227_0x464860['lt'](_0x3f878f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x6b22f9,'needsUpgrade':_0x30ab00,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1c1408,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1c1408,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3e6a63){const _0x236dae=a227_0x510b66;if(!_0x3e6a63[_0x236dae(0x120)])return;const _0x4f5573=_0x236dae(0x10f),_0x2e4ef1='\x1b[0m',_0x421196=_0x236dae(0x10d),_0x457236=_0x3e6a63[_0x236dae(0x110)]||_0x236dae(0x12d),_0x209ff1=_0x3e6a63[_0x236dae(0x11a)]||_0x3e6a63['minVersion'],_0x4838c0=_0x236dae(0x113)+_0x457236+'@'+(_0x209ff1||_0x236dae(0x12f));console['log'](),console[_0x236dae(0x127)](''+_0x4f5573+_0x421196+_0x236dae(0x123)+_0x2e4ef1),console[_0x236dae(0x127)](_0x4f5573+_0x236dae(0x11f)+_0x457236+'@'+_0x3e6a63[_0x236dae(0x12a)]+_0x2e4ef1),console[_0x236dae(0x127)](_0x4f5573+_0x236dae(0x111)+_0x209ff1+_0x2e4ef1),console[_0x236dae(0x127)](_0x4f5573+_0x236dae(0x11e)+_0x4838c0+_0x2e4ef1),console[_0x236dae(0x127)]();}
1
+ (function(_0x3ae222,_0x4df72f){const _0x24328a=a227_0x5977,_0x5e4db4=_0x3ae222();while(!![]){try{const _0x467341=parseInt(_0x24328a(0x121))/0x1*(parseInt(_0x24328a(0x114))/0x2)+parseInt(_0x24328a(0x117))/0x3+-parseInt(_0x24328a(0x129))/0x4*(parseInt(_0x24328a(0x116))/0x5)+parseInt(_0x24328a(0x10c))/0x6*(-parseInt(_0x24328a(0x125))/0x7)+-parseInt(_0x24328a(0x118))/0x8+parseInt(_0x24328a(0x10e))/0x9+-parseInt(_0x24328a(0x10b))/0xa*(-parseInt(_0x24328a(0x10d))/0xb);if(_0x467341===_0x4df72f)break;else _0x5e4db4['push'](_0x5e4db4['shift']());}catch(_0x5de3e0){_0x5e4db4['push'](_0x5e4db4['shift']());}}}(a227_0x374f,0xbe1ef));import a227_0x2544af from'node:fs';function a227_0x5977(_0xe2e6,_0x32cf87){_0xe2e6=_0xe2e6-0x109;const _0x374f41=a227_0x374f();let _0x5977a1=_0x374f41[_0xe2e6];return _0x5977a1;}import a227_0x4c4b2b from'node:path';import a227_0x1bf443 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0xd041b6){const _0x4756ff=a227_0x5977,_0x4d2f4d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4d2f4d[_0x4756ff(0x128)](_0x515183=>_0x515183[_0x4756ff(0x12a)](_0xd041b6));}function getInstalledVersion(_0x363cc0,_0x161f9d){const _0x5f0fae=a227_0x5977;try{const _0x306adb=a227_0x4c4b2b[_0x5f0fae(0x124)](_0x363cc0,_0x5f0fae(0x12c),_0x161f9d,'package.json');if(a227_0x2544af[_0x5f0fae(0x110)](_0x306adb)){const _0x444718=JSON[_0x5f0fae(0x126)](a227_0x2544af[_0x5f0fae(0x11e)](_0x306adb,_0x5f0fae(0x10a)));return _0x444718[_0x5f0fae(0x12b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47d3f3=a227_0x5977;try{const _0x792b3=await getCdnConfig();return _0x792b3?.[_0x47d3f3(0x115)]?.['node']?.[_0x47d3f3(0x120)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x533ee0=a227_0x5977;try{const _0x2606e9=await getCdnConfig();return _0x2606e9?.['sdk']?.['node']?.['packageName']||'@lovrabet/sdk';}catch{return _0x533ee0(0x11b);}}export async function checkSdkVersion(_0x3f6364){const _0x527ce8=a227_0x5977,_0x5c9d63=a227_0x4c4b2b[_0x527ce8(0x124)](_0x3f6364,_0x527ce8(0x127)),[_0x424f25,_0x7558c1]=await Promise[_0x527ce8(0x11a)]([getSdkStableVersion(),getSdkPackageName()]),_0x278906=_0x424f25||FALLBACK_MIN_SDK_VERSION;if(!a227_0x2544af[_0x527ce8(0x110)](_0x5c9d63))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};try{const _0x4048a3=JSON[_0x527ce8(0x126)](a227_0x2544af[_0x527ce8(0x11e)](_0x5c9d63,_0x527ce8(0x11f))),_0x34c96e=_0x4048a3['dependencies']||{},_0x14d8ef=_0x4048a3['devDependencies']||{},_0x4e5a9e=_0x34c96e[_0x7558c1]||_0x14d8ef[_0x7558c1];if(!_0x4e5a9e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};let _0x559687=getInstalledVersion(_0x3f6364,_0x7558c1);!_0x559687&&(_0x559687=_0x4e5a9e);if(isNonNumericVersion(_0x4e5a9e))return{'installed':!![],'version':_0x559687,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};const _0x28947a=a227_0x1bf443['coerce'](_0x559687),_0x5e0255=a227_0x1bf443[_0x527ce8(0x11d)](_0x278906),_0x581749=_0x28947a&&_0x5e0255?a227_0x1bf443['lt'](_0x28947a,_0x5e0255):![];return{'installed':!![],'version':_0x559687,'needsUpgrade':_0x581749,'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};}}function a227_0x374f(){const _0x436549=['all','@lovrabet/sdk','packageName','coerce','readFileSync','utf8','stableVersion','64544wAhilJ','minVersion','needsUpgrade','join','5316997btcNMJ','parse','package.json','some','1759684wUISFg','test','version','node_modules','dependencies','log','utf-8','1547270JYWjXI','12slAhnx','154frxRQD','3140460gBCUKc','latest','existsSync','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','46RFTRBm','sdk','15oftdBt','103524YgMgWS','3331984HnYgwj','\x1b[1m'];a227_0x374f=function(){return _0x436549;};return a227_0x374f();}export function checkSdkVersionSync(_0x21293c){const _0x219a54=a227_0x5977,_0x2fe004=a227_0x4c4b2b['join'](_0x21293c,_0x219a54(0x127)),_0x18396f=_0x219a54(0x11b);if(!a227_0x2544af['existsSync'](_0x2fe004))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};try{const _0x19675a=JSON[_0x219a54(0x126)](a227_0x2544af[_0x219a54(0x11e)](_0x2fe004,_0x219a54(0x11f))),_0x4774a5=_0x19675a[_0x219a54(0x12d)]||{},_0x5715e2=_0x19675a['devDependencies']||{},_0x234add=_0x4774a5[_0x18396f]||_0x5715e2[_0x18396f];if(!_0x234add)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};let _0x2ffddd=getInstalledVersion(_0x21293c,_0x18396f);!_0x2ffddd&&(_0x2ffddd=_0x234add);if(isNonNumericVersion(_0x234add))return{'installed':!![],'version':_0x2ffddd,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};const _0x16101a=a227_0x1bf443[_0x219a54(0x11d)](_0x2ffddd),_0x44d836=_0x16101a?a227_0x1bf443['lt'](_0x16101a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ffddd,'needsUpgrade':_0x44d836,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xf19b9f){const _0xaa939e=a227_0x5977;if(!_0xf19b9f[_0xaa939e(0x123)])return;const _0x2f68cd='\x1b[33m',_0x5e911f='\x1b[0m',_0x78b0d5=_0xaa939e(0x119),_0x51aefa=_0xf19b9f[_0xaa939e(0x11c)]||_0xaa939e(0x11b),_0x515a0e=_0xf19b9f['stableVersion']||_0xf19b9f[_0xaa939e(0x122)],_0x36d20b='npm\x20install\x20'+_0x51aefa+'@'+(_0x515a0e||_0xaa939e(0x10f));console[_0xaa939e(0x109)](),console['log'](''+_0x2f68cd+_0x78b0d5+'↪\x20SDK\x20update\x20available'+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x113)+_0x51aefa+'@'+_0xf19b9f[_0xaa939e(0x12b)]+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x111)+_0x515a0e+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x112)+_0x36d20b+_0x5e911f),console[_0xaa939e(0x109)]();}
@@ -1 +1 @@
1
- (function(_0x377559,_0x4a61bc){const _0x3d6033=a228_0x3a55,_0x407de1=_0x377559();while(!![]){try{const _0xd7e2fa=-parseInt(_0x3d6033(0xa0))/0x1+-parseInt(_0x3d6033(0xa2))/0x2+-parseInt(_0x3d6033(0xaa))/0x3*(-parseInt(_0x3d6033(0xb9))/0x4)+parseInt(_0x3d6033(0xa9))/0x5+parseInt(_0x3d6033(0xaf))/0x6+parseInt(_0x3d6033(0xab))/0x7+-parseInt(_0x3d6033(0xa4))/0x8;if(_0xd7e2fa===_0x4a61bc)break;else _0x407de1['push'](_0x407de1['shift']());}catch(_0x1c784e){_0x407de1['push'](_0x407de1['shift']());}}}(a228_0x2833,0x2d5f1));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a228_0x2d9c6e 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(_0x5666b3){const _0x1e6ff9=a228_0x3a55,_0x4bf539=_0x5666b3[_0x1e6ff9(0xa1)]||_0x1e6ff9(0xb2);return _0x1e6ff9(0xb0)+NPM_PACKAGE_NAME+'@'+_0x4bf539;}function a228_0x2833(){const _0x286cae=['\x1b[1m','↪\x20Critical\x20CLI\x20upgrade\x20required','186710CpFJNQ','660eMakIL','2200282qVAEZJ','upgradeMessage','Current\x20version:\x20','coerce','1545270KbmXSd','npm\x20install\x20-g\x20','\x1b[33m','latest','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','log','../..','package.json','1768zJxDiu','\x20\x20\x20','minimumVersion','validation','belowMinimum','join','minimumVersionMessage','\x1b[31m','1.0.0','version','345675cyrnfu','stableVersion','329416NXkQZB','\x1b[0m','81832xfgMuo','\x20\x20\x20Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.'];a228_0x2833=function(){return _0x286cae;};return a228_0x2833();}function getCurrentCliVersion(){const _0x5aa054=a228_0x3a55;try{const _0x1e33e2=fileURLToPath(import.meta.url),_0x11accf=resolve(dirname(_0x1e33e2),_0x5aa054(0xb7)),_0x49b1e5=resolve(_0x11accf,_0x5aa054(0xb8)),_0x1a1f34=JSON['parse'](readFileSync(_0x49b1e5,'utf-8'));return _0x1a1f34[_0x5aa054(0x9f)]||_0x5aa054(0x9e);}catch{return'1.0.0';}}function a228_0x3a55(_0x51d0e5,_0x3ee8cf){_0x51d0e5=_0x51d0e5-0x9d;const _0x28339f=a228_0x2833();let _0x3a5525=_0x28339f[_0x51d0e5];return _0x3a5525;}export async function checkCliVersion(){const _0x26228c=a228_0x3a55,_0x567db8=getCurrentCliVersion(),_0x32efee=await getCliVersionPolicy(),_0x55d35e=_0x32efee?.['stableVersion']||null,_0x49e055=_0x32efee?.[_0x26228c(0xbb)]||null;let _0x556174=![],_0x2b5313=![];const _0x1d3b21=a228_0x2d9c6e[_0x26228c(0xae)](_0x567db8);if(_0x1d3b21&&_0x55d35e)try{const _0x1fbe4a=a228_0x2d9c6e[_0x26228c(0xae)](_0x55d35e);if(_0x1fbe4a)_0x556174=a228_0x2d9c6e['lt'](_0x1d3b21,_0x1fbe4a);}catch{}if(_0x1d3b21&&_0x49e055)try{const _0x52b41e=a228_0x2d9c6e['coerce'](_0x49e055);if(_0x52b41e)_0x2b5313=a228_0x2d9c6e['lt'](_0x1d3b21,_0x52b41e);}catch{}return _0x2b5313&&(_0x556174=!![]),{'currentVersion':_0x567db8,'stableVersion':_0x55d35e,'minimumVersion':_0x49e055,'needsUpgrade':_0x556174,'belowMinimum':_0x2b5313,'isPreRelease':![],'upgradeMessage':_0x32efee?.[_0x26228c(0xac)],'minimumVersionMessage':_0x32efee?.[_0x26228c(0xbf)]};}export function printCliUpgradeWarning(_0xbda8c2){const _0x18e7bf=a228_0x3a55;if(!_0xbda8c2['needsUpgrade']&&!_0xbda8c2[_0x18e7bf(0xbd)])return;const _0x181919=_0x18e7bf(0x9d),_0x5640ee=_0x18e7bf(0xb1),_0x2b873a=_0x18e7bf(0xa3),_0x1824e0=_0x18e7bf(0xa7),_0x52dc05=getCliUpgradeCommand(_0xbda8c2);console[_0x18e7bf(0xb6)](),_0xbda8c2['belowMinimum']?(console[_0x18e7bf(0xb6)](''+_0x181919+_0x1824e0+_0x18e7bf(0xa8)+_0x2b873a),console[_0x18e7bf(0xb6)](_0x181919+_0x18e7bf(0xb4)+_0xbda8c2['currentVersion']+_0x2b873a),_0xbda8c2[_0x18e7bf(0xbb)]&&console[_0x18e7bf(0xb6)](_0x181919+_0x18e7bf(0xb5)+_0xbda8c2['minimumVersion']+_0x2b873a),_0xbda8c2['stableVersion']&&_0xbda8c2[_0x18e7bf(0xa1)]!==_0xbda8c2[_0x18e7bf(0xbb)]&&console[_0x18e7bf(0xb6)](_0x181919+_0x18e7bf(0xa5)+_0xbda8c2[_0x18e7bf(0xa1)]+_0x2b873a),_0xbda8c2[_0x18e7bf(0xbf)]&&console[_0x18e7bf(0xb6)](_0x181919+_0x18e7bf(0xba)+_0xbda8c2[_0x18e7bf(0xbf)]+_0x2b873a),console['log'](_0x181919+'\x20\x20\x20Upgrade\x20command:\x20'+_0x52dc05+_0x2b873a)):(console['log'](''+_0x5640ee+_0x1824e0+'↪\x20New\x20version\x20available'+_0x2b873a),console[_0x18e7bf(0xb6)](_0x5640ee+_0x18e7bf(0xb4)+_0xbda8c2['currentVersion']+_0x2b873a),console[_0x18e7bf(0xb6)](_0x5640ee+'\x20\x20\x20Stable\x20version:\x20'+_0xbda8c2[_0x18e7bf(0xa1)]+_0x2b873a),_0xbda8c2['upgradeMessage']&&console['log'](_0x5640ee+'\x20\x20\x20'+_0xbda8c2[_0x18e7bf(0xac)]+_0x2b873a),console[_0x18e7bf(0xb6)](_0x5640ee+_0x18e7bf(0xb3)+_0x52dc05+_0x2b873a)),console[_0x18e7bf(0xb6)]();}export function assertCliVersionSupported(_0x4d15f4){const _0x237699=a228_0x3a55;if(!_0x4d15f4[_0x237699(0xbd)])return;const _0x46d3a1=[_0x4d15f4[_0x237699(0xbf)],_0x237699(0xad)+_0x4d15f4['currentVersion'],_0x4d15f4['minimumVersion']?'Minimum\x20supported:\x20'+_0x4d15f4[_0x237699(0xbb)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x4d15f4)]['filter'](Boolean)[_0x237699(0xbe)]('\x0a');throw CliErrors[_0x237699(0xbc)](_0x237699(0xa6),_0x46d3a1);}
1
+ (function(_0x2ca7c8,_0x30f7bc){const _0x4e3eb1=a228_0x46e7,_0x4b41cb=_0x2ca7c8();while(!![]){try{const _0x542a49=-parseInt(_0x4e3eb1(0x9c))/0x1*(parseInt(_0x4e3eb1(0x95))/0x2)+-parseInt(_0x4e3eb1(0xb6))/0x3+-parseInt(_0x4e3eb1(0x97))/0x4+parseInt(_0x4e3eb1(0xb1))/0x5*(-parseInt(_0x4e3eb1(0xad))/0x6)+-parseInt(_0x4e3eb1(0x93))/0x7+parseInt(_0x4e3eb1(0xa3))/0x8*(parseInt(_0x4e3eb1(0x99))/0x9)+parseInt(_0x4e3eb1(0xb2))/0xa;if(_0x542a49===_0x30f7bc)break;else _0x4b41cb['push'](_0x4b41cb['shift']());}catch(_0x1f9cf3){_0x4b41cb['push'](_0x4b41cb['shift']());}}}(a228_0xac41,0x2d809));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a228_0x26b608 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a228_0x46e7(_0x4859ea,_0x104dfd){_0x4859ea=_0x4859ea-0x93;const _0xac4115=a228_0xac41();let _0x46e701=_0xac4115[_0x4859ea];return _0x46e701;}function a228_0xac41(){const _0x2ebb85=['\x20\x20\x20Upgrade\x20command:\x20','759580jYXSCp','minimumVersion','156762xxlWrs','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Current\x20CLI\x20version:\x20','19nbJPIw','belowMinimum','package.json','↪\x20New\x20version\x20available','Minimum\x20supported:\x20','1.0.0','needsUpgrade','8GoGTuS','join','currentVersion','filter','upgradeMessage','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','Upgrade\x20command:\x20','stableVersion','658392czlNha','utf-8','coerce','validation','10QefFgF','9388780JUYiGg','\x20\x20\x20','latest','\x20\x20\x20Stable\x20version:\x20','412854YJiTmP','\x1b[33m','../..','\x1b[0m','403627xwBLRk','log','17398VdSHox'];a228_0xac41=function(){return _0x2ebb85;};return a228_0xac41();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2f556b){const _0x3a9062=a228_0x46e7,_0x495654=_0x2f556b[_0x3a9062(0xac)]||_0x3a9062(0xb4);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x495654;}function getCurrentCliVersion(){const _0x24ce62=a228_0x46e7;try{const _0x5ae743=fileURLToPath(import.meta.url),_0x383e8d=resolve(dirname(_0x5ae743),_0x24ce62(0xb8)),_0x162f5e=resolve(_0x383e8d,_0x24ce62(0x9e)),_0x5e4f33=JSON['parse'](readFileSync(_0x162f5e,_0x24ce62(0xae)));return _0x5e4f33['version']||_0x24ce62(0xa1);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1f8e29=a228_0x46e7,_0x2e9450=getCurrentCliVersion(),_0x492250=await getCliVersionPolicy(),_0x3750e2=_0x492250?.['stableVersion']||null,_0x3edc91=_0x492250?.[_0x1f8e29(0x98)]||null;let _0x514624=![],_0xdf1578=![];const _0x36e4e1=a228_0x26b608['coerce'](_0x2e9450);if(_0x36e4e1&&_0x3750e2)try{const _0x4372ee=a228_0x26b608[_0x1f8e29(0xaf)](_0x3750e2);if(_0x4372ee)_0x514624=a228_0x26b608['lt'](_0x36e4e1,_0x4372ee);}catch{}if(_0x36e4e1&&_0x3edc91)try{const _0x2f2431=a228_0x26b608['coerce'](_0x3edc91);if(_0x2f2431)_0xdf1578=a228_0x26b608['lt'](_0x36e4e1,_0x2f2431);}catch{}return _0xdf1578&&(_0x514624=!![]),{'currentVersion':_0x2e9450,'stableVersion':_0x3750e2,'minimumVersion':_0x3edc91,'needsUpgrade':_0x514624,'belowMinimum':_0xdf1578,'isPreRelease':![],'upgradeMessage':_0x492250?.['upgradeMessage'],'minimumVersionMessage':_0x492250?.[_0x1f8e29(0xaa)]};}export function printCliUpgradeWarning(_0x49e272){const _0xadb664=a228_0x46e7;if(!_0x49e272[_0xadb664(0xa2)]&&!_0x49e272[_0xadb664(0x9d)])return;const _0x4e8812='\x1b[31m',_0x3531a3=_0xadb664(0xb7),_0x4dfa6d=_0xadb664(0xb9),_0xbb40ac=_0xadb664(0xa8),_0x2f389f=getCliUpgradeCommand(_0x49e272);console[_0xadb664(0x94)](),_0x49e272[_0xadb664(0x9d)]?(console[_0xadb664(0x94)](''+_0x4e8812+_0xbb40ac+_0xadb664(0x9a)+_0x4dfa6d),console['log'](_0x4e8812+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x49e272['currentVersion']+_0x4dfa6d),_0x49e272[_0xadb664(0x98)]&&console[_0xadb664(0x94)](_0x4e8812+'\x20\x20\x20Minimum\x20supported:\x20'+_0x49e272['minimumVersion']+_0x4dfa6d),_0x49e272[_0xadb664(0xac)]&&_0x49e272[_0xadb664(0xac)]!==_0x49e272['minimumVersion']&&console[_0xadb664(0x94)](_0x4e8812+'\x20\x20\x20Recommended\x20stable:\x20'+_0x49e272[_0xadb664(0xac)]+_0x4dfa6d),_0x49e272['minimumVersionMessage']&&console['log'](_0x4e8812+_0xadb664(0xb3)+_0x49e272[_0xadb664(0xaa)]+_0x4dfa6d),console['log'](_0x4e8812+_0xadb664(0x96)+_0x2f389f+_0x4dfa6d)):(console[_0xadb664(0x94)](''+_0x3531a3+_0xbb40ac+_0xadb664(0x9f)+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0x9b)+_0x49e272[_0xadb664(0xa5)]+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0xb5)+_0x49e272[_0xadb664(0xac)]+_0x4dfa6d),_0x49e272[_0xadb664(0xa7)]&&console[_0xadb664(0x94)](_0x3531a3+'\x20\x20\x20'+_0x49e272[_0xadb664(0xa7)]+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0x96)+_0x2f389f+_0x4dfa6d)),console[_0xadb664(0x94)]();}export function assertCliVersionSupported(_0x589b6f){const _0x305031=a228_0x46e7;if(!_0x589b6f[_0x305031(0x9d)])return;const _0x3bc518=[_0x589b6f[_0x305031(0xaa)],'Current\x20version:\x20'+_0x589b6f['currentVersion'],_0x589b6f[_0x305031(0x98)]?_0x305031(0xa0)+_0x589b6f[_0x305031(0x98)]:null,_0x305031(0xab)+getCliUpgradeCommand(_0x589b6f)][_0x305031(0xa6)](Boolean)[_0x305031(0xa4)]('\x0a');throw CliErrors[_0x305031(0xb0)](_0x305031(0xa9),_0x3bc518);}
@@ -1 +1 @@
1
- function a229_0x2b04(_0x5e88ce,_0x5e2bcf){_0x5e88ce=_0x5e88ce-0xf9;const _0x57532d=a229_0x5753();let _0x2b046a=_0x57532d[_0x5e88ce];return _0x2b046a;}(function(_0x10a9da,_0x36f854){const _0x24b606=a229_0x2b04,_0x41882e=_0x10a9da();while(!![]){try{const _0x41c3e9=-parseInt(_0x24b606(0xff))/0x1+parseInt(_0x24b606(0x10d))/0x2*(parseInt(_0x24b606(0xfc))/0x3)+parseInt(_0x24b606(0x105))/0x4*(-parseInt(_0x24b606(0x101))/0x5)+-parseInt(_0x24b606(0xfe))/0x6*(parseInt(_0x24b606(0x109))/0x7)+parseInt(_0x24b606(0x10e))/0x8+-parseInt(_0x24b606(0xfa))/0x9*(parseInt(_0x24b606(0x104))/0xa)+-parseInt(_0x24b606(0x108))/0xb*(-parseInt(_0x24b606(0xfb))/0xc);if(_0x41c3e9===_0x36f854)break;else _0x41882e['push'](_0x41882e['shift']());}catch(_0x3ba277){_0x41882e['push'](_0x41882e['shift']());}}}(a229_0x5753,0xb5e32));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(_0x57a9ac){const _0x864a13=a229_0x2b04;return typeof _0x57a9ac==='string'&&_0x57a9ac[_0x864a13(0x102)]()[_0x864a13(0x10b)]>0x0?_0x57a9ac[_0x864a13(0x102)]():null;}function normalizeCliVersionPolicy(_0x5a803c){const _0x4761c3=a229_0x2b04;if(!_0x5a803c||typeof _0x5a803c!==_0x4761c3(0x100))return null;const _0x489e7c=_0x5a803c,_0x37a528=_0x489e7c[_0x4761c3(0x10c)]&&typeof _0x489e7c[_0x4761c3(0x10c)]===_0x4761c3(0x100)?_0x489e7c[_0x4761c3(0x10c)]:_0x489e7c,_0x5a1593=pickString(_0x37a528['stableVersion'])||pickString(_0x37a528[_0x4761c3(0x106)])||pickString(_0x37a528[_0x4761c3(0x103)]),_0x4b7c47=pickString(_0x37a528['minimumVersion'])||pickString(_0x37a528[_0x4761c3(0xf9)]);if(!_0x5a1593&&!_0x4b7c47)return null;return{'stableVersion':_0x5a1593,'minimumVersion':_0x4b7c47,'upgradeMessage':pickString(_0x37a528['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x37a528[_0x4761c3(0xfd)])||undefined};}export async function fetchCliVersionPolicy(){const _0x31e60f=a229_0x2b04,_0x41276c=new AbortController(),_0x646efb=setTimeout(()=>_0x41276c[_0x31e60f(0x10a)](),FETCH_TIMEOUT_MS);try{const _0x2b59d5=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x41276c[_0x31e60f(0x107)]});if(!_0x2b59d5['ok'])return null;const _0x51fc8f=await _0x2b59d5['json']();return normalizeCliVersionPolicy(_0x51fc8f);}catch{return null;}finally{clearTimeout(_0x646efb);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a229_0x5753(){const _0x1094b9=['304740VnBTWU','11612688eaLreT','minVersion','9fOwhcr','24epswpF','18VjTRKQ','minimumVersionMessage','114GzItsy','1225963vgKGQc','object','25HwQFDG','trim','recommendedVersion','14578610xAfogD','631084VBeAtN','latestVersion','signal','13253790urgZUn','205541YNhrcD','abort','length','cli'];a229_0x5753=function(){return _0x1094b9;};return a229_0x5753();}export async function getCliVersionPolicy(){const _0x340313=Date['now']();if(hasCachedPolicy){const _0x459e82=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x340313-cacheTime<_0x459e82)return cachedPolicy;}const _0x238f0a=await fetchCliVersionPolicy();return cachedPolicy=_0x238f0a,cacheTime=_0x340313,hasCachedPolicy=!![],_0x238f0a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x552488,_0x25f181){const _0x35f7dc=a229_0x3230,_0xb3dcdc=_0x552488();while(!![]){try{const _0x19bc42=-parseInt(_0x35f7dc(0x74))/0x1+-parseInt(_0x35f7dc(0x7b))/0x2+-parseInt(_0x35f7dc(0x7f))/0x3+parseInt(_0x35f7dc(0x79))/0x4+-parseInt(_0x35f7dc(0x78))/0x5*(-parseInt(_0x35f7dc(0x70))/0x6)+-parseInt(_0x35f7dc(0x81))/0x7+-parseInt(_0x35f7dc(0x7d))/0x8*(-parseInt(_0x35f7dc(0x82))/0x9);if(_0x19bc42===_0x25f181)break;else _0xb3dcdc['push'](_0xb3dcdc['shift']());}catch(_0x4bad21){_0xb3dcdc['push'](_0xb3dcdc['shift']());}}}(a229_0x3c91,0x6a87d));function a229_0x3230(_0x570ee1,_0x100299){_0x570ee1=_0x570ee1-0x70;const _0x3c914a=a229_0x3c91();let _0x3230e0=_0x3c914a[_0x570ee1];return _0x3230e0;}function a229_0x3c91(){const _0x16ab43=['abort','stableVersion','6QibRVN','length','upgradeMessage','trim','459836xSSUvb','signal','application/json','minimumVersion','956720ZImHvT','2873868gSRCOO','recommendedVersion','1374514vEGlYe','minVersion','8RytEjo','latestVersion','390297HKDysG','cli','5677658tADSLZ','14533416VwOBkb'];a229_0x3c91=function(){return _0x16ab43;};return a229_0x3c91();}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(_0x1ad473){const _0x5240c1=a229_0x3230;return typeof _0x1ad473==='string'&&_0x1ad473[_0x5240c1(0x73)]()[_0x5240c1(0x71)]>0x0?_0x1ad473[_0x5240c1(0x73)]():null;}function normalizeCliVersionPolicy(_0x1f22d0){const _0x3a600c=a229_0x3230;if(!_0x1f22d0||typeof _0x1f22d0!=='object')return null;const _0x4352af=_0x1f22d0,_0x19ed44=_0x4352af[_0x3a600c(0x80)]&&typeof _0x4352af[_0x3a600c(0x80)]==='object'?_0x4352af[_0x3a600c(0x80)]:_0x4352af,_0x23d2ad=pickString(_0x19ed44[_0x3a600c(0x84)])||pickString(_0x19ed44[_0x3a600c(0x7e)])||pickString(_0x19ed44[_0x3a600c(0x7a)]),_0x20bfb1=pickString(_0x19ed44[_0x3a600c(0x77)])||pickString(_0x19ed44[_0x3a600c(0x7c)]);if(!_0x23d2ad&&!_0x20bfb1)return null;return{'stableVersion':_0x23d2ad,'minimumVersion':_0x20bfb1,'upgradeMessage':pickString(_0x19ed44[_0x3a600c(0x72)])||undefined,'minimumVersionMessage':pickString(_0x19ed44['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x5d8bf0=a229_0x3230,_0x48b09f=new AbortController(),_0x14b99d=setTimeout(()=>_0x48b09f[_0x5d8bf0(0x83)](),FETCH_TIMEOUT_MS);try{const _0x15fa5c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5d8bf0(0x76)},'signal':_0x48b09f[_0x5d8bf0(0x75)]});if(!_0x15fa5c['ok'])return null;const _0xecd080=await _0x15fa5c['json']();return normalizeCliVersionPolicy(_0xecd080);}catch{return null;}finally{clearTimeout(_0x14b99d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x392785=Date['now']();if(hasCachedPolicy){const _0x519d7d=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x392785-cacheTime<_0x519d7d)return cachedPolicy;}const _0x4ad58a=await fetchCliVersionPolicy();return cachedPolicy=_0x4ad58a,cacheTime=_0x392785,hasCachedPolicy=!![],_0x4ad58a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a230_0x2d10f0=a230_0x216a;(function(_0x41d2ab,_0x4f3283){const _0x4d6f40=a230_0x216a,_0x1392ce=_0x41d2ab();while(!![]){try{const _0x3f05be=-parseInt(_0x4d6f40(0x95))/0x1*(parseInt(_0x4d6f40(0x97))/0x2)+parseInt(_0x4d6f40(0x9c))/0x3+-parseInt(_0x4d6f40(0x9d))/0x4*(-parseInt(_0x4d6f40(0x98))/0x5)+-parseInt(_0x4d6f40(0x99))/0x6+-parseInt(_0x4d6f40(0x9a))/0x7+parseInt(_0x4d6f40(0x93))/0x8+-parseInt(_0x4d6f40(0x92))/0x9*(parseInt(_0x4d6f40(0x96))/0xa);if(_0x3f05be===_0x4f3283)break;else _0x1392ce['push'](_0x1392ce['shift']());}catch(_0x11a746){_0x1392ce['push'](_0x1392ce['shift']());}}}(a230_0x2ab4,0xc2a65));function a230_0x2ab4(){const _0x55b591=['251808wHqDdx','10658669XLIHYH','string','4347585slqsfx','575548kNQcAA','project','171VFaaxo','4003008wGBjYO','env','61zIXnYN','586660uEVEXq','1828rvlHDo','55HPUNjR'];a230_0x2ab4=function(){return _0x55b591;};return a230_0x2ab4();}import{initEnv}from'../constant/env.js';function a230_0x216a(_0x3d5ae5,_0x1b6920){_0x3d5ae5=_0x3d5ae5-0x91;const _0x2ab456=a230_0x2ab4();let _0x216a6a=_0x2ab456[_0x3d5ae5];return _0x216a6a;}import{readRawConfig,getConfigAppCode as a230_0x3d8d89,getMultiAppConfigs as a230_0x62cccd,getTemplateBaseUrl as a230_0x5d9c15}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4cf615){const _0x783885=a230_0x216a,_0x3e1381=readRawConfig(_0x4cf615);return _0x3e1381[_0x783885(0x94)]&&typeof _0x3e1381[_0x783885(0x94)]===_0x783885(0x9b)&&initEnv(_0x3e1381[_0x783885(0x94)]),_0x3e1381;}export function getConfigAppCode(){return a230_0x3d8d89();}export function getMultiAppConfigs(_0x3bbde8=a230_0x2d10f0(0x91)){return a230_0x62cccd(_0x3bbde8);}export function getTemplateBaseUrl(){return a230_0x5d9c15();}
1
+ const a230_0x5dd140=a230_0x1672;(function(_0x565748,_0x41e6ed){const _0x1e694f=a230_0x1672,_0x2b8845=_0x565748();while(!![]){try{const _0x366718=parseInt(_0x1e694f(0xab))/0x1*(-parseInt(_0x1e694f(0xb5))/0x2)+-parseInt(_0x1e694f(0xb1))/0x3*(parseInt(_0x1e694f(0xaa))/0x4)+parseInt(_0x1e694f(0xb2))/0x5+parseInt(_0x1e694f(0xb0))/0x6*(-parseInt(_0x1e694f(0xb3))/0x7)+parseInt(_0x1e694f(0xae))/0x8+-parseInt(_0x1e694f(0xa9))/0x9*(-parseInt(_0x1e694f(0xad))/0xa)+-parseInt(_0x1e694f(0xac))/0xb*(-parseInt(_0x1e694f(0xb6))/0xc);if(_0x366718===_0x41e6ed)break;else _0x2b8845['push'](_0x2b8845['shift']());}catch(_0x29b806){_0x2b8845['push'](_0x2b8845['shift']());}}}(a230_0x20ce,0xad57a));function a230_0x1672(_0x4a45a6,_0x5331fa){_0x4a45a6=_0x4a45a6-0xa8;const _0x20cea4=a230_0x20ce();let _0x16720a=_0x20cea4[_0x4a45a6];return _0x16720a;}function a230_0x20ce(){const _0x492612=['29jqjeXr','3016563xferai','20UTZTOT','8093800YgzIGC','env','6785724CDwCqF','38244GSTRLi','2932220HhigDd','7tiJIhX','string','23464nLMUgY','12tNjffL','project','3512097GZtnLi','148SCdnms'];a230_0x20ce=function(){return _0x492612;};return a230_0x20ce();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a230_0x5d1bec,getMultiAppConfigs as a230_0x46f3ec,getTemplateBaseUrl as a230_0x19bc8b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x398e03){const _0x3c0ba1=a230_0x1672,_0x2e0b09=readRawConfig(_0x398e03);return _0x2e0b09[_0x3c0ba1(0xaf)]&&typeof _0x2e0b09[_0x3c0ba1(0xaf)]===_0x3c0ba1(0xb4)&&initEnv(_0x2e0b09[_0x3c0ba1(0xaf)]),_0x2e0b09;}export function getConfigAppCode(){return a230_0x5d1bec();}export function getMultiAppConfigs(_0x23bc88=a230_0x5dd140(0xa8)){return a230_0x46f3ec(_0x23bc88);}export function getTemplateBaseUrl(){return a230_0x19bc8b();}
@@ -1 +1 @@
1
- (function(_0x1f0984,_0x5ec690){const _0xf3a9bc=a231_0x129c,_0x4a7a26=_0x1f0984();while(!![]){try{const _0x1772a5=parseInt(_0xf3a9bc(0x9f))/0x1+-parseInt(_0xf3a9bc(0x98))/0x2+-parseInt(_0xf3a9bc(0x94))/0x3+-parseInt(_0xf3a9bc(0x9c))/0x4*(-parseInt(_0xf3a9bc(0x97))/0x5)+parseInt(_0xf3a9bc(0x9b))/0x6+-parseInt(_0xf3a9bc(0x9a))/0x7+parseInt(_0xf3a9bc(0x9e))/0x8*(parseInt(_0xf3a9bc(0x93))/0x9);if(_0x1772a5===_0x5ec690)break;else _0x4a7a26['push'](_0x4a7a26['shift']());}catch(_0x630ff9){_0x4a7a26['push'](_0x4a7a26['shift']());}}}(a231_0x3409,0x965ee));function a231_0x3409(){const _0x88956d=['error','join','9asDcEz','1449822EKoiQz','readdirSync','name','6565HvIrLt','1158272hYRUIW','isDirectory','6723269mGycGh','5416638zzeXle','820mpvLxZ','复制目录时出错:','7241424WRAOcD','561679PhwStg'];a231_0x3409=function(){return _0x88956d;};return a231_0x3409();}import a231_0x49b641 from'node:path';function a231_0x129c(_0x20c3df,_0x3579eb){_0x20c3df=_0x20c3df-0x92;const _0x340960=a231_0x3409();let _0x129cf2=_0x340960[_0x20c3df];return _0x129cf2;}import a231_0x381aff from'node:fs';export async function copyDirectory(_0x5d0071,_0x3c7769){const _0x29ab9d=a231_0x129c;try{const _0x60a39a=a231_0x381aff[_0x29ab9d(0x95)](_0x5d0071,{'withFileTypes':!![]});a231_0x381aff['mkdirSync'](_0x3c7769,{'recursive':!![]});for(const _0x2dadd5 of _0x60a39a){const _0x48fe95=a231_0x49b641[_0x29ab9d(0x92)](_0x5d0071,_0x2dadd5['name']),_0x380710=a231_0x49b641[_0x29ab9d(0x92)](_0x3c7769,_0x2dadd5[_0x29ab9d(0x96)]);_0x2dadd5[_0x29ab9d(0x99)]()?await copyDirectory(_0x48fe95,_0x380710):a231_0x381aff['copyFileSync'](_0x48fe95,_0x380710);}}catch(_0x37a3f7){console[_0x29ab9d(0xa0)](_0x29ab9d(0x9d),_0x37a3f7);}}
1
+ (function(_0x57c61b,_0x71e948){const _0x709a4c=a231_0x1bf0,_0x50aa79=_0x57c61b();while(!![]){try{const _0x52d13c=parseInt(_0x709a4c(0x70))/0x1*(parseInt(_0x709a4c(0x7a))/0x2)+-parseInt(_0x709a4c(0x77))/0x3+parseInt(_0x709a4c(0x78))/0x4+parseInt(_0x709a4c(0x75))/0x5+parseInt(_0x709a4c(0x7c))/0x6+-parseInt(_0x709a4c(0x76))/0x7+-parseInt(_0x709a4c(0x73))/0x8;if(_0x52d13c===_0x71e948)break;else _0x50aa79['push'](_0x50aa79['shift']());}catch(_0x146dc0){_0x50aa79['push'](_0x50aa79['shift']());}}}(a231_0x1403,0xaadcb));function a231_0x1403(){const _0x240918=['2713125VaSuWv','756076xOcvGM','isDirectory','1830506pbDLUS','name','5897100MThQkj','join','copyFileSync','1BfjVyA','error','复制目录时出错:','5809152jNeFpw','readdirSync','6743130EMARwe','7737646FFyfNy'];a231_0x1403=function(){return _0x240918;};return a231_0x1403();}import a231_0x29a8bd from'node:path';function a231_0x1bf0(_0x4e314f,_0x248e83){_0x4e314f=_0x4e314f-0x6f;const _0x1403df=a231_0x1403();let _0x1bf0d2=_0x1403df[_0x4e314f];return _0x1bf0d2;}import a231_0x2601d7 from'node:fs';export async function copyDirectory(_0xeff039,_0x14e7d9){const _0x45a994=a231_0x1bf0;try{const _0x1abaac=a231_0x2601d7[_0x45a994(0x74)](_0xeff039,{'withFileTypes':!![]});a231_0x2601d7['mkdirSync'](_0x14e7d9,{'recursive':!![]});for(const _0x2f49db of _0x1abaac){const _0x3eb8cc=a231_0x29a8bd[_0x45a994(0x7d)](_0xeff039,_0x2f49db[_0x45a994(0x7b)]),_0x251714=a231_0x29a8bd[_0x45a994(0x7d)](_0x14e7d9,_0x2f49db[_0x45a994(0x7b)]);_0x2f49db[_0x45a994(0x79)]()?await copyDirectory(_0x3eb8cc,_0x251714):a231_0x2601d7[_0x45a994(0x6f)](_0x3eb8cc,_0x251714);}}catch(_0x11bb51){console[_0x45a994(0x71)](_0x45a994(0x72),_0x11bb51);}}
@@ -1 +1 @@
1
- (function(_0x1a44ae,_0x378d12){const _0x4bfca8=a232_0x27b3,_0x413197=_0x1a44ae();while(!![]){try{const _0x3556c1=parseInt(_0x4bfca8(0x136))/0x1*(-parseInt(_0x4bfca8(0x137))/0x2)+-parseInt(_0x4bfca8(0x143))/0x3+-parseInt(_0x4bfca8(0x13f))/0x4+-parseInt(_0x4bfca8(0x138))/0x5*(-parseInt(_0x4bfca8(0x142))/0x6)+parseInt(_0x4bfca8(0x135))/0x7*(parseInt(_0x4bfca8(0x13c))/0x8)+parseInt(_0x4bfca8(0x13a))/0x9+parseInt(_0x4bfca8(0x141))/0xa*(-parseInt(_0x4bfca8(0x13d))/0xb);if(_0x3556c1===_0x378d12)break;else _0x413197['push'](_0x413197['shift']());}catch(_0x52d9c2){_0x413197['push'](_0x413197['shift']());}}}(a232_0x3447,0x749bc));function toFiniteNumber(_0x27c094){const _0xdc6a28=a232_0x27b3;if(typeof _0x27c094===_0xdc6a28(0x13b)&&Number[_0xdc6a28(0x139)](_0x27c094))return _0x27c094;if(typeof _0x27c094===_0xdc6a28(0x13e)){const _0x494b90=_0x27c094[_0xdc6a28(0x140)]();if(!_0x494b90)return undefined;const _0xfd4031=Number(_0x494b90);if(Number[_0xdc6a28(0x139)](_0xfd4031))return _0xfd4031;}return undefined;}function a232_0x3447(){const _0x1ef6b1=['9235NLobgE','isFinite','7108137rbVzuM','number','130504jjhAus','319mgNcUk','string','890948WeUolI','trim','50150LdhsxL','1362zbWkvo','1414590kOrmYS','object','266gKpwlG','3lufWDL','341084CQtUri'];a232_0x3447=function(){return _0x1ef6b1;};return a232_0x3447();}function a232_0x27b3(_0x558c5c,_0x54ed7f){_0x558c5c=_0x558c5c-0x134;const _0x34478d=a232_0x3447();let _0x27b30f=_0x34478d[_0x558c5c];return _0x27b30f;}export function normalizeEntityWithIdResponse(_0x23c61e){const _0x4ef2c4=a232_0x27b3,_0x3f1df9=toFiniteNumber(_0x23c61e);if(_0x3f1df9!==undefined)return{'id':_0x3f1df9,'entity':{'id':_0x3f1df9}};if(!_0x23c61e||typeof _0x23c61e!==_0x4ef2c4(0x134))return{'id':undefined,'entity':{}};const _0x12e8a6={..._0x23c61e},_0x365a8f=toFiniteNumber(_0x12e8a6['id']);return _0x365a8f!==undefined&&(_0x12e8a6['id']=_0x365a8f),{'id':_0x365a8f,'entity':_0x12e8a6};}
1
+ (function(_0x3ac829,_0x97058){const _0x2981f3=a232_0x21b1,_0x332426=_0x3ac829();while(!![]){try{const _0x4e378f=parseInt(_0x2981f3(0x1b1))/0x1*(parseInt(_0x2981f3(0x1b8))/0x2)+-parseInt(_0x2981f3(0x1b5))/0x3*(-parseInt(_0x2981f3(0x1b0))/0x4)+parseInt(_0x2981f3(0x1b3))/0x5*(-parseInt(_0x2981f3(0x1ae))/0x6)+parseInt(_0x2981f3(0x1b9))/0x7*(parseInt(_0x2981f3(0x1af))/0x8)+-parseInt(_0x2981f3(0x1b2))/0x9+-parseInt(_0x2981f3(0x1b7))/0xa*(parseInt(_0x2981f3(0x1be))/0xb)+parseInt(_0x2981f3(0x1bc))/0xc;if(_0x4e378f===_0x97058)break;else _0x332426['push'](_0x332426['shift']());}catch(_0x2311df){_0x332426['push'](_0x332426['shift']());}}}(a232_0x5ce6,0xc9eff));function toFiniteNumber(_0x52c456){const _0x1c7bb5=a232_0x21b1;if(typeof _0x52c456===_0x1c7bb5(0x1b4)&&Number['isFinite'](_0x52c456))return _0x52c456;if(typeof _0x52c456===_0x1c7bb5(0x1b6)){const _0x1bf882=_0x52c456[_0x1c7bb5(0x1bb)]();if(!_0x1bf882)return undefined;const _0x5b13ac=Number(_0x1bf882);if(Number[_0x1c7bb5(0x1ba)](_0x5b13ac))return _0x5b13ac;}return undefined;}function a232_0x21b1(_0x21d662,_0x45cb8b){_0x21d662=_0x21d662-0x1ae;const _0x5ce647=a232_0x5ce6();let _0x21b142=_0x5ce647[_0x21d662];return _0x21b142;}function a232_0x5ce6(){const _0x39fe09=['1464515gnPyXv','number','3AGbnlN','string','1392340pHelmt','4YsogBR','49GrBWfR','isFinite','trim','9667380sBVzHb','object','44VVrBIx','30QyQdun','153752ddWyGJ','3002264vfJCvk','826531NrBZFu','4456710EexyHq'];a232_0x5ce6=function(){return _0x39fe09;};return a232_0x5ce6();}export function normalizeEntityWithIdResponse(_0x20dcd3){const _0x116198=a232_0x21b1,_0x5b601e=toFiniteNumber(_0x20dcd3);if(_0x5b601e!==undefined)return{'id':_0x5b601e,'entity':{'id':_0x5b601e}};if(!_0x20dcd3||typeof _0x20dcd3!==_0x116198(0x1bd))return{'id':undefined,'entity':{}};const _0x22d64c={..._0x20dcd3},_0x2db32c=toFiniteNumber(_0x22d64c['id']);return _0x2db32c!==undefined&&(_0x22d64c['id']=_0x2db32c),{'id':_0x2db32c,'entity':_0x22d64c};}
@@ -1 +1 @@
1
- (function(_0x27cd21,_0x1c3010){const _0x2859e5=a233_0x2a58,_0x17582a=_0x27cd21();while(!![]){try{const _0x188a87=parseInt(_0x2859e5(0x10a))/0x1+parseInt(_0x2859e5(0x106))/0x2*(parseInt(_0x2859e5(0x10c))/0x3)+-parseInt(_0x2859e5(0x108))/0x4*(-parseInt(_0x2859e5(0x107))/0x5)+parseInt(_0x2859e5(0x10b))/0x6*(-parseInt(_0x2859e5(0x10f))/0x7)+parseInt(_0x2859e5(0x10d))/0x8+-parseInt(_0x2859e5(0x111))/0x9*(parseInt(_0x2859e5(0x110))/0xa)+-parseInt(_0x2859e5(0x109))/0xb;if(_0x188a87===_0x1c3010)break;else _0x17582a['push'](_0x17582a['shift']());}catch(_0x591364){_0x17582a['push'](_0x17582a['shift']());}}}(a233_0x233d,0x3ea6c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a233_0x2a58(_0x333a7f,_0x21cfe3){_0x333a7f=_0x333a7f-0x106;const _0x233def=a233_0x233d();let _0x2a5807=_0x233def[_0x333a7f];return _0x2a5807;}function a233_0x233d(){const _0x2b4b5e=['40njrkdi','791784Qnounq','10PytREM','5305kbSUff','440yhyCHC','3102077VhvkZK','244140kCHlSS','12wQtMmQ','255615uTmjvf','2588704xjWMZM','isDirectory','769762JePJls'];a233_0x233d=function(){return _0x2b4b5e;};return a233_0x233d();}import{join}from'node:path';export async function copyDir(_0x3ef8c1,_0x5a0ea6){const _0x2fa1fa=a233_0x2a58,_0x20e3c7=statSync(_0x3ef8c1);if(_0x20e3c7[_0x2fa1fa(0x10e)]()){!existsSync(_0x5a0ea6)&&mkdirSync(_0x5a0ea6,{'recursive':!![]});const _0x2c538d=readdirSync(_0x3ef8c1);for(const _0x1fa4ae of _0x2c538d){await copyDir(join(_0x3ef8c1,_0x1fa4ae),join(_0x5a0ea6,_0x1fa4ae));}}else copyFileSync(_0x3ef8c1,_0x5a0ea6);}export function ensureDir(_0x5627dd){!existsSync(_0x5627dd)&&mkdirSync(_0x5627dd,{'recursive':!![]});}export function pathExists(_0x1e2ca6){return existsSync(_0x1e2ca6);}
1
+ function a233_0x345f(){const _0x5ba07e=['11jOkABh','67434qmlOoQ','19626EInZxN','3962zgUnBG','13716XPrpGS','2743765qjWcTK','18317508uVERjy','isDirectory','336WROcXI','8WmbKJp','4711330dndnLB','1920938UqmgWJ','117kzFBLf'];a233_0x345f=function(){return _0x5ba07e;};return a233_0x345f();}(function(_0x266d68,_0x139cbd){const _0x3480b0=a233_0x4b9c,_0x4da6b3=_0x266d68();while(!![]){try{const _0x4ea0e5=parseInt(_0x3480b0(0x17c))/0x1+-parseInt(_0x3480b0(0x17f))/0x2*(parseInt(_0x3480b0(0x17d))/0x3)+-parseInt(_0x3480b0(0x17a))/0x4*(-parseInt(_0x3480b0(0x176))/0x5)+parseInt(_0x3480b0(0x180))/0x6*(-parseInt(_0x3480b0(0x181))/0x7)+-parseInt(_0x3480b0(0x179))/0x8*(-parseInt(_0x3480b0(0x182))/0x9)+-parseInt(_0x3480b0(0x17b))/0xa+parseInt(_0x3480b0(0x17e))/0xb*(parseInt(_0x3480b0(0x177))/0xc);if(_0x4ea0e5===_0x139cbd)break;else _0x4da6b3['push'](_0x4da6b3['shift']());}catch(_0x25eb09){_0x4da6b3['push'](_0x4da6b3['shift']());}}}(a233_0x345f,0xed2a5));function a233_0x4b9c(_0x34a1aa,_0x363e72){_0x34a1aa=_0x34a1aa-0x176;const _0x345fdd=a233_0x345f();let _0x4b9c44=_0x345fdd[_0x34a1aa];return _0x4b9c44;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4396a9,_0x249738){const _0x686700=a233_0x4b9c,_0x1c6eea=statSync(_0x4396a9);if(_0x1c6eea[_0x686700(0x178)]()){!existsSync(_0x249738)&&mkdirSync(_0x249738,{'recursive':!![]});const _0x4e1f53=readdirSync(_0x4396a9);for(const _0x741375 of _0x4e1f53){await copyDir(join(_0x4396a9,_0x741375),join(_0x249738,_0x741375));}}else copyFileSync(_0x4396a9,_0x249738);}export function ensureDir(_0x50a428){!existsSync(_0x50a428)&&mkdirSync(_0x50a428,{'recursive':!![]});}export function pathExists(_0x4abb89){return existsSync(_0x4abb89);}
@@ -1 +1 @@
1
- const a234_0x44aac1=a234_0x5724;(function(_0x24895f,_0x3e8647){const _0x161797=a234_0x5724,_0x1e1026=_0x24895f();while(!![]){try{const _0x4e5113=parseInt(_0x161797(0x170))/0x1*(-parseInt(_0x161797(0x14f))/0x2)+parseInt(_0x161797(0x169))/0x3*(-parseInt(_0x161797(0x166))/0x4)+-parseInt(_0x161797(0x159))/0x5+parseInt(_0x161797(0x16e))/0x6*(-parseInt(_0x161797(0x162))/0x7)+parseInt(_0x161797(0x165))/0x8+-parseInt(_0x161797(0x152))/0x9*(parseInt(_0x161797(0x15a))/0xa)+parseInt(_0x161797(0x167))/0xb;if(_0x4e5113===_0x3e8647)break;else _0x1e1026['push'](_0x1e1026['shift']());}catch(_0x597a2e){_0x1e1026['push'](_0x1e1026['shift']());}}}(a234_0x3a01,0x81b75));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 _0x3f2b83=a234_0x5724,_0x191d72=getTemplateBaseUrl();return _0x191d72+_0x3f2b83(0x153);}const CACHE_DIR=join(homedir(),a234_0x44aac1(0x16b),a234_0x44aac1(0x15f));export async function fetchGuidesFromCDN(){const _0x4c8029=a234_0x44aac1,_0x1f0444=getGuidesCdnUrl(),_0x4e6547=await fetch(_0x1f0444,{'headers':{'Accept':_0x4c8029(0x16f)}});if(!_0x4e6547['ok'])throw new Error(_0x4c8029(0x14c)+_0x4e6547[_0x4c8029(0x158)]+'\x20'+_0x4e6547[_0x4c8029(0x15d)]);const _0x2f5c34=await _0x4e6547[_0x4c8029(0x163)]();if(!_0x2f5c34[_0x4c8029(0x155)]||typeof _0x2f5c34[_0x4c8029(0x155)]!=='object')throw new Error(_0x4c8029(0x168));return _0x2f5c34;}export function writeGuidesToProject(_0x565f33,_0x4a8cd4,_0x156cf2=a234_0x44aac1(0x171),_0x4b9ebe){const _0x3da456=a234_0x44aac1,_0x56608b=join(_0x4a8cd4,_0x156cf2);mkdirSync(_0x56608b,{'recursive':!![]});for(const [_0x46b534,_0x2b7e3d]of Object[_0x3da456(0x16a)](_0x565f33[_0x3da456(0x155)])){let _0x426dd5=_0x2b7e3d['content'];_0x2b7e3d[_0x3da456(0x150)]&&(_0x426dd5=appendUpdateTime(_0x426dd5,_0x2b7e3d['lastUpdated'])),writeFileSync(join(_0x56608b,_0x46b534+_0x3da456(0x14d)),_0x426dd5,'utf-8');}}export function appendUpdateTime(_0x51bc3a,_0x1d059b){const _0x2a8cd4=a234_0x44aac1;return _0x51bc3a=_0x51bc3a[_0x2a8cd4(0x157)](/\n*>更新时间:.*$/m,''),_0x51bc3a[_0x2a8cd4(0x154)]()+(_0x2a8cd4(0x160)+_0x1d059b);}function a234_0x5724(_0x51c766,_0x17832a){_0x51c766=_0x51c766-0x14c;const _0x3a0172=a234_0x3a01();let _0x572490=_0x3a0172[_0x51c766];return _0x572490;}export function getSkillTemplate(_0x3b32c0){const _0x1996ec=a234_0x44aac1;return _0x3b32c0[_0x1996ec(0x15b)]?.[_0x1996ec(0x15c)]||'';}export function appendExtendContents(_0x487286,_0x521430,_0x59d290){const _0x4c9be5=a234_0x44aac1,_0x1d4dcb=[];for(const [,_0x19ccfe]of Object[_0x4c9be5(0x16a)](_0x521430['guides'])){_0x19ccfe['extendContent']&&_0x1d4dcb[_0x4c9be5(0x14e)](_0x19ccfe[_0x4c9be5(0x16d)][_0x4c9be5(0x154)]());}if(_0x1d4dcb['length']===0x0)return _0x487286;return _0x487286[_0x4c9be5(0x154)]()+'\x0a\x0a'+_0x1d4dcb[_0x4c9be5(0x156)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x507349,_0x1bda65,_0x1d3ba8){const _0x24188e=a234_0x44aac1,_0x238421=getSkillTemplate(_0x507349);if(!_0x238421)throw new Error(_0x24188e(0x151));const _0x12b6c6=dirname(_0x1bda65);mkdirSync(_0x12b6c6,{'recursive':!![]});let _0x2b10ed=_0x238421[_0x24188e(0x157)](/\{\{IDE_NAME\}\}/g,_0x1d3ba8);_0x2b10ed=appendExtendContents(_0x2b10ed,_0x507349),_0x507349['skillTemplate']['lastUpdated']&&(_0x2b10ed=appendUpdateTime(_0x2b10ed,_0x507349[_0x24188e(0x15b)]['lastUpdated'])),writeFileSync(_0x1bda65,_0x2b10ed,_0x24188e(0x164));}function a234_0x3a01(){const _0x221ce8=['\x0a\x0a>更新时间:','title','7HjLQYE','json','utf-8','1106216safbEx','116YdvByc','23612248iMUgQl','CDN\x20返回数据格式错误','64401xbiPbI','entries','.lovrabet','map','extendContent','1941342EeBZxn','application/json','5bDAqDH','.lovrabet/skill/guides','keys','CDN\x20请求失败:\x20','.md','push','205826BFTpGZ','lastUpdated','CDN\x20数据中缺少\x20skillTemplate','128295EZIQav','/skills/guides.json','trimEnd','guides','join','replace','status','466465vfosUk','140Esxult','skillTemplate','content','statusText','length','cache'];a234_0x3a01=function(){return _0x221ce8;};return a234_0x3a01();}export async function installGuides(_0x3d9246){const _0x41a3de=a234_0x44aac1,_0x298281=await fetchGuidesFromCDN();return writeGuidesToProject(_0x298281,_0x3d9246),Object[_0x41a3de(0x172)](_0x298281[_0x41a3de(0x155)])[_0x41a3de(0x15e)];}export function getGuidesSummary(_0xaf09dd){const _0x32e1bc=a234_0x44aac1;return Object['entries'](_0xaf09dd[_0x32e1bc(0x155)])[_0x32e1bc(0x16c)](([_0x1172da,_0x53147c])=>({'key':_0x1172da,'title':_0x53147c[_0x32e1bc(0x161)],'path':_0x53147c['path']}));}
1
+ function a234_0x1e84(_0xbf6514,_0x25e36e){_0xbf6514=_0xbf6514-0x149;const _0x5a4312=a234_0x5a43();let _0x1e8401=_0x5a4312[_0xbf6514];return _0x1e8401;}const a234_0x46af15=a234_0x1e84;(function(_0x39ba0b,_0x2946b7){const _0x57daa5=a234_0x1e84,_0x3cecb=_0x39ba0b();while(!![]){try{const _0x418768=parseInt(_0x57daa5(0x158))/0x1*(parseInt(_0x57daa5(0x14c))/0x2)+-parseInt(_0x57daa5(0x149))/0x3+parseInt(_0x57daa5(0x157))/0x4+-parseInt(_0x57daa5(0x14e))/0x5+-parseInt(_0x57daa5(0x156))/0x6+-parseInt(_0x57daa5(0x169))/0x7*(-parseInt(_0x57daa5(0x168))/0x8)+parseInt(_0x57daa5(0x167))/0x9*(parseInt(_0x57daa5(0x166))/0xa);if(_0x418768===_0x2946b7)break;else _0x3cecb['push'](_0x3cecb['shift']());}catch(_0x44e600){_0x3cecb['push'](_0x3cecb['shift']());}}}(a234_0x5a43,0x4de0c));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 _0x4768c8=a234_0x1e84,_0x546e7b=getTemplateBaseUrl();return _0x546e7b+_0x4768c8(0x160);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x3bd560=a234_0x1e84,_0x4f6b15=getGuidesCdnUrl(),_0x26baa3=await fetch(_0x4f6b15,{'headers':{'Accept':_0x3bd560(0x162)}});if(!_0x26baa3['ok'])throw new Error(_0x3bd560(0x15b)+_0x26baa3[_0x3bd560(0x154)]+'\x20'+_0x26baa3['statusText']);const _0x50b6d5=await _0x26baa3[_0x3bd560(0x16b)]();if(!_0x50b6d5['guides']||typeof _0x50b6d5[_0x3bd560(0x15f)]!==_0x3bd560(0x153))throw new Error('CDN\x20返回数据格式错误');return _0x50b6d5;}export function writeGuidesToProject(_0x5a4a70,_0x2df8b3,_0x43823c=a234_0x46af15(0x165),_0x2e3c41){const _0x1b5884=a234_0x46af15,_0x273014=join(_0x2df8b3,_0x43823c);mkdirSync(_0x273014,{'recursive':!![]});for(const [_0x3f1360,_0x376c3d]of Object[_0x1b5884(0x15c)](_0x5a4a70[_0x1b5884(0x15f)])){let _0x304bb8=_0x376c3d['content'];_0x376c3d['lastUpdated']&&(_0x304bb8=appendUpdateTime(_0x304bb8,_0x376c3d[_0x1b5884(0x16c)])),writeFileSync(join(_0x273014,_0x3f1360+_0x1b5884(0x155)),_0x304bb8,_0x1b5884(0x159));}}export function appendUpdateTime(_0x3bbccb,_0x17288e){const _0x2c6fd1=a234_0x46af15;return _0x3bbccb=_0x3bbccb[_0x2c6fd1(0x14d)](/\n*>更新时间:.*$/m,''),_0x3bbccb[_0x2c6fd1(0x15a)]()+(_0x2c6fd1(0x164)+_0x17288e);}export function getSkillTemplate(_0x45be5d){const _0x8dff55=a234_0x46af15;return _0x45be5d[_0x8dff55(0x163)]?.[_0x8dff55(0x151)]||'';}function a234_0x5a43(){const _0x4d7aa1=['json','lastUpdated','1264617uoBDiN','push','keys','4WvbNJn','replace','2199875DNJQbP','title','join','content','map','object','status','.md','3509772FlDXDZ','580360VBHdHZ','314237ibngnc','utf-8','trimEnd','CDN\x20请求失败:\x20','entries','extendContent','path','guides','/skills/guides.json','length','application/json','skillTemplate','\x0a\x0a>更新时间:','.lovrabet/skill/guides','1556570ggzCQQ','45FrcYhy','24kScYIA','498435cNWdiH','CDN\x20数据中缺少\x20skillTemplate'];a234_0x5a43=function(){return _0x4d7aa1;};return a234_0x5a43();}export function appendExtendContents(_0xedd59e,_0x5ae40c,_0x1ecc4c){const _0x3abed8=a234_0x46af15,_0x431f4b=[];for(const [,_0x2686ba]of Object[_0x3abed8(0x15c)](_0x5ae40c[_0x3abed8(0x15f)])){_0x2686ba[_0x3abed8(0x15d)]&&_0x431f4b[_0x3abed8(0x14a)](_0x2686ba[_0x3abed8(0x15d)]['trimEnd']());}if(_0x431f4b['length']===0x0)return _0xedd59e;return _0xedd59e[_0x3abed8(0x15a)]()+'\x0a\x0a'+_0x431f4b[_0x3abed8(0x150)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xf3b5fe,_0x488986,_0x1c94ec){const _0xf95a2c=a234_0x46af15,_0x41130e=getSkillTemplate(_0xf3b5fe);if(!_0x41130e)throw new Error(_0xf95a2c(0x16a));const _0x60a396=dirname(_0x488986);mkdirSync(_0x60a396,{'recursive':!![]});let _0x4257a3=_0x41130e[_0xf95a2c(0x14d)](/\{\{IDE_NAME\}\}/g,_0x1c94ec);_0x4257a3=appendExtendContents(_0x4257a3,_0xf3b5fe),_0xf3b5fe['skillTemplate'][_0xf95a2c(0x16c)]&&(_0x4257a3=appendUpdateTime(_0x4257a3,_0xf3b5fe[_0xf95a2c(0x163)][_0xf95a2c(0x16c)])),writeFileSync(_0x488986,_0x4257a3,_0xf95a2c(0x159));}export async function installGuides(_0x3af05f){const _0x2ec08e=a234_0x46af15,_0x9dd1e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x9dd1e,_0x3af05f),Object[_0x2ec08e(0x14b)](_0x9dd1e[_0x2ec08e(0x15f)])[_0x2ec08e(0x161)];}export function getGuidesSummary(_0x550ac2){const _0x21fc39=a234_0x46af15;return Object[_0x21fc39(0x15c)](_0x550ac2['guides'])[_0x21fc39(0x152)](([_0x98b0bd,_0x41bb7e])=>({'key':_0x98b0bd,'title':_0x41bb7e[_0x21fc39(0x14f)],'path':_0x41bb7e[_0x21fc39(0x15e)]}));}
@@ -1 +1 @@
1
- (function(_0x1587c9,_0x390267){const _0x50e166=a235_0x40bd,_0x57b112=_0x1587c9();while(!![]){try{const _0x13623a=-parseInt(_0x50e166(0x1bc))/0x1*(-parseInt(_0x50e166(0x1c2))/0x2)+-parseInt(_0x50e166(0x1c4))/0x3*(parseInt(_0x50e166(0x1be))/0x4)+-parseInt(_0x50e166(0x1c3))/0x5*(parseInt(_0x50e166(0x1b7))/0x6)+parseInt(_0x50e166(0x1b2))/0x7*(-parseInt(_0x50e166(0x1ba))/0x8)+parseInt(_0x50e166(0x1c0))/0x9*(parseInt(_0x50e166(0x1ca))/0xa)+parseInt(_0x50e166(0x1c1))/0xb+parseInt(_0x50e166(0x1c6))/0xc;if(_0x13623a===_0x390267)break;else _0x57b112['push'](_0x57b112['shift']());}catch(_0x3389af){_0x57b112['push'](_0x57b112['shift']());}}}(a235_0x2753,0xbe238));export async function httpRequest(_0x4f50f3,_0x46911a={}){const _0x49fc06=a235_0x40bd,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x46911a;let _0x4d8683=null;for(let _0x158323=0x0;_0x158323<=retries;_0x158323++){try{const _0x531c99=new AbortController(),_0xf4d1e0=setTimeout(()=>_0x531c99[_0x49fc06(0x1bf)](),timeout),_0x2898b5=await fetch(_0x4f50f3,{'headers':headers,'signal':_0x531c99['signal']});clearTimeout(_0xf4d1e0);let _0x32b381;const _0x20ef8d=_0x2898b5[_0x49fc06(0x1cb)]['get']('content-type');return _0x20ef8d?.[_0x49fc06(0x1b4)](_0x49fc06(0x1bd))?_0x32b381=await _0x2898b5['json']():_0x32b381=await _0x2898b5[_0x49fc06(0x1b8)](),{'ok':_0x2898b5['ok'],'status':_0x2898b5['status'],'statusText':_0x2898b5[_0x49fc06(0x1c9)],'data':_0x32b381,'headers':_0x2898b5[_0x49fc06(0x1cb)],'url':_0x2898b5[_0x49fc06(0x1b9)],'text':()=>_0x2898b5[_0x49fc06(0x1b8)]()};}catch(_0x17b6b3){_0x4d8683=_0x17b6b3 instanceof Error?_0x17b6b3:new Error(String(_0x17b6b3));if(_0x158323===retries)break;if(shouldRetry(_0x17b6b3)){console[_0x49fc06(0x1c7)](_0x49fc06(0x1bb)+retryDelay+_0x49fc06(0x1b3)+(_0x158323+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x4d8683||new Error('Request\x20failed');}function shouldRetry(_0x29f921){const _0x13ced7=a235_0x40bd;if(_0x29f921 instanceof Error){if(_0x29f921['name']===_0x13ced7(0x1c8))return![];if(_0x29f921[_0x13ced7(0x1b6)]===_0x13ced7(0x1b0)&&_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1b5)))return!![];if(_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1b1)))return!![];if(_0x29f921['message'][_0x13ced7(0x1b4)](_0x13ced7(0x1c5)))return![];}return![];}function sleep(_0x42ff85){return new Promise(_0x5f18f8=>setTimeout(_0x5f18f8,_0x42ff85));}export function validateUrl(_0x17e2b3){try{return new URL(_0x17e2b3),!![];}catch{return![];}}function a235_0x40bd(_0x2737ea,_0x3895e2){_0x2737ea=_0x2737ea-0x1b0;const _0x2753c0=a235_0x2753();let _0x40bd45=_0x2753c0[_0x2737ea];return _0x40bd45;}function a235_0x2753(){const _0x2cf8e5=['AbortError','statusText','1940hNNKCl','headers','TypeError','ECONNRESET','242270OATaxx','ms\x20后进行第\x20','includes','fetch','name','3828kfSLgj','text','url','40VOKRAe','*\x20请求失败,','2MAftud','application/json','2852LKoIYu','abort','69840pKfrTf','1124695fgLKKT','533798ieZCvx','8795RGUFep','2706IayCro','ENOTFOUND','6908916EUEUrR','log'];a235_0x2753=function(){return _0x2cf8e5;};return a235_0x2753();}
1
+ (function(_0x2df42b,_0x2a9fe1){const _0x1cf1fc=a235_0x53bf,_0xea92ac=_0x2df42b();while(!![]){try{const _0x321467=parseInt(_0x1cf1fc(0x11e))/0x1*(parseInt(_0x1cf1fc(0x11c))/0x2)+-parseInt(_0x1cf1fc(0x124))/0x3+parseInt(_0x1cf1fc(0x12e))/0x4*(-parseInt(_0x1cf1fc(0x130))/0x5)+parseInt(_0x1cf1fc(0x12b))/0x6+parseInt(_0x1cf1fc(0x129))/0x7+parseInt(_0x1cf1fc(0x125))/0x8*(-parseInt(_0x1cf1fc(0x12d))/0x9)+-parseInt(_0x1cf1fc(0x123))/0xa*(-parseInt(_0x1cf1fc(0x112))/0xb);if(_0x321467===_0x2a9fe1)break;else _0xea92ac['push'](_0xea92ac['shift']());}catch(_0x114cd7){_0xea92ac['push'](_0xea92ac['shift']());}}}(a235_0x51d5,0x97100));export async function httpRequest(_0x2e83a7,_0x14ffdf={}){const _0x27deae=a235_0x53bf,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x14ffdf;let _0x5eb132=null;for(let _0x34ca43=0x0;_0x34ca43<=retries;_0x34ca43++){try{const _0x53ac9e=new AbortController(),_0x15a918=setTimeout(()=>_0x53ac9e[_0x27deae(0x11b)](),timeout),_0x4f16bd=await fetch(_0x2e83a7,{'headers':headers,'signal':_0x53ac9e['signal']});clearTimeout(_0x15a918);let _0x51c920;const _0x37f938=_0x4f16bd['headers'][_0x27deae(0x126)](_0x27deae(0x120));return _0x37f938?.['includes'](_0x27deae(0x12a))?_0x51c920=await _0x4f16bd[_0x27deae(0x12f)]():_0x51c920=await _0x4f16bd[_0x27deae(0x121)](),{'ok':_0x4f16bd['ok'],'status':_0x4f16bd['status'],'statusText':_0x4f16bd[_0x27deae(0x12c)],'data':_0x51c920,'headers':_0x4f16bd[_0x27deae(0x11d)],'url':_0x4f16bd[_0x27deae(0x11f)],'text':()=>_0x4f16bd[_0x27deae(0x121)]()};}catch(_0x4b1867){_0x5eb132=_0x4b1867 instanceof Error?_0x4b1867:new Error(String(_0x4b1867));if(_0x34ca43===retries)break;if(shouldRetry(_0x4b1867)){console[_0x27deae(0x113)]('*\x20请求失败,'+retryDelay+_0x27deae(0x127)+(_0x34ca43+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x5eb132||new Error(_0x27deae(0x11a));}function a235_0x51d5(){const _0x5ecf43=['4uEgJjV','headers','446287jcYusE','url','content-type','text','ENOTFOUND','2325610hUTMzW','478953VyVYfR','24VsjrVu','get','ms\x20后进行第\x20','message','4187939guuGqE','application/json','2374626mutMKn','statusText','1328202cAUVum','292GavPNm','json','61510AbJXGX','11JeNwuH','log','name','fetch','AbortError','TypeError','includes','ECONNRESET','Request\x20failed','abort'];a235_0x51d5=function(){return _0x5ecf43;};return a235_0x51d5();}function shouldRetry(_0x4e5e65){const _0x4eb5df=a235_0x53bf;if(_0x4e5e65 instanceof Error){if(_0x4e5e65[_0x4eb5df(0x114)]===_0x4eb5df(0x116))return![];if(_0x4e5e65[_0x4eb5df(0x114)]===_0x4eb5df(0x117)&&_0x4e5e65[_0x4eb5df(0x128)][_0x4eb5df(0x118)](_0x4eb5df(0x115)))return!![];if(_0x4e5e65[_0x4eb5df(0x128)][_0x4eb5df(0x118)](_0x4eb5df(0x119)))return!![];if(_0x4e5e65[_0x4eb5df(0x128)]['includes'](_0x4eb5df(0x122)))return![];}return![];}function sleep(_0x21de8e){return new Promise(_0x5a7670=>setTimeout(_0x5a7670,_0x21de8e));}function a235_0x53bf(_0x2733e6,_0x128a6c){_0x2733e6=_0x2733e6-0x112;const _0x51d510=a235_0x51d5();let _0x53bfc6=_0x51d510[_0x2733e6];return _0x53bfc6;}export function validateUrl(_0x59540e){try{return new URL(_0x59540e),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x403c05,_0x5c08aa){const _0x1b2dcf=a236_0x3a45,_0x5763d7=_0x403c05();while(!![]){try{const _0x183496=-parseInt(_0x1b2dcf(0x9e))/0x1+parseInt(_0x1b2dcf(0xa1))/0x2*(-parseInt(_0x1b2dcf(0x9f))/0x3)+-parseInt(_0x1b2dcf(0xa2))/0x4*(parseInt(_0x1b2dcf(0x93))/0x5)+parseInt(_0x1b2dcf(0x9a))/0x6+parseInt(_0x1b2dcf(0x94))/0x7+-parseInt(_0x1b2dcf(0x96))/0x8*(parseInt(_0x1b2dcf(0x9c))/0x9)+parseInt(_0x1b2dcf(0x98))/0xa;if(_0x183496===_0x5c08aa)break;else _0x5763d7['push'](_0x5763d7['shift']());}catch(_0x33f254){_0x5763d7['push'](_0x5763d7['shift']());}}}(a236_0x4484,0xf0f48));function a236_0x3a45(_0x5172ba,_0x214483){_0x5172ba=_0x5172ba-0x93;const _0x4484c0=a236_0x4484();let _0x3a454d=_0x4484c0[_0x5172ba];return _0x3a454d;}function a236_0x4484(){const _0x8b821d=['10484256btYNps','isTTY','2102427bQQtrG','isRaw','799608ihjzXS','2458938rucHpe','stdout','2mydjTO','3614216oLoXED','5AoSjNZ','3643052penthk','true','56qugXUx','setRawMode','28771690iQYkQc','stdin'];a236_0x4484=function(){return _0x8b821d;};return a236_0x4484();}function env(_0x1935ad){return process.env[`RABETBASE_${_0x1935ad}`]||process.env[`LOVRABET_${_0x1935ad}`]||undefined;}export function isNonInteractive(_0x330967){const _0x662da4=a236_0x3a45;return!!(_0x330967['nonInteractive']||_0x330967['ci']||env('CI')===_0x662da4(0x95)||process.env.CI==='true'||!process[_0x662da4(0xa0)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2db516=a236_0x3a45;if(!process[_0x2db516(0x99)][_0x2db516(0x9b)])return![];try{const _0x4450db=process[_0x2db516(0x99)][_0x2db516(0x9d)];return process[_0x2db516(0x99)][_0x2db516(0x97)](!![]),process[_0x2db516(0x99)][_0x2db516(0x97)](_0x4450db??![]),!![];}catch{return![];}}
1
+ function a236_0x489e(){const _0x5d4379=['134904ncRVfx','setRawMode','true','stdout','528994upCyJn','474872WwdGrl','13180FJKwoa','35MbiuoY','isTTY','27935ShbCuH','6AMbyKS','369QxxUpy','523248QuoVYv','stdin','276272xxhdEJ','isRaw'];a236_0x489e=function(){return _0x5d4379;};return a236_0x489e();}(function(_0x57ea82,_0x469b4e){const _0x55423f=a236_0x1d09,_0x50e2a4=_0x57ea82();while(!![]){try{const _0x3ebae8=parseInt(_0x55423f(0xfb))/0x1+parseInt(_0x55423f(0xf1))/0x2+-parseInt(_0x55423f(0xf9))/0x3+parseInt(_0x55423f(0xfd))/0x4+parseInt(_0x55423f(0xf6))/0x5*(-parseInt(_0x55423f(0xf7))/0x6)+-parseInt(_0x55423f(0xf4))/0x7*(parseInt(_0x55423f(0xf2))/0x8)+-parseInt(_0x55423f(0xf8))/0x9*(-parseInt(_0x55423f(0xf3))/0xa);if(_0x3ebae8===_0x469b4e)break;else _0x50e2a4['push'](_0x50e2a4['shift']());}catch(_0x582d4f){_0x50e2a4['push'](_0x50e2a4['shift']());}}}(a236_0x489e,0x250b7));function a236_0x1d09(_0x54402a,_0x30f7fe){_0x54402a=_0x54402a-0xef;const _0x489e7f=a236_0x489e();let _0x1d0959=_0x489e7f[_0x54402a];return _0x1d0959;}function env(_0x153346){return process.env[`RABETBASE_${_0x153346}`]||process.env[`LOVRABET_${_0x153346}`]||undefined;}export function isNonInteractive(_0x107f89){const _0x47b38d=a236_0x1d09;return!!(_0x107f89['nonInteractive']||_0x107f89['ci']||env('CI')===_0x47b38d(0xef)||process.env.CI===_0x47b38d(0xef)||!process[_0x47b38d(0xf0)][_0x47b38d(0xf5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x49da55=a236_0x1d09;if(!process[_0x49da55(0xfa)][_0x49da55(0xf5)])return![];try{const _0x281438=process[_0x49da55(0xfa)][_0x49da55(0xfc)];return process['stdin'][_0x49da55(0xfe)](!![]),process[_0x49da55(0xfa)][_0x49da55(0xfe)](_0x281438??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a237_0x3c86e4=a237_0x64c1;function a237_0x64c1(_0x5a4948,_0x2c267d){_0x5a4948=_0x5a4948-0xf4;const _0x5e30cc=a237_0x5e30();let _0x64c124=_0x5e30cc[_0x5a4948];return _0x64c124;}(function(_0x27fa6c,_0x24c0e4){const _0x6c60ee=a237_0x64c1,_0x340e9a=_0x27fa6c();while(!![]){try{const _0x2b6e2b=-parseInt(_0x6c60ee(0x108))/0x1*(-parseInt(_0x6c60ee(0x106))/0x2)+-parseInt(_0x6c60ee(0x126))/0x3*(-parseInt(_0x6c60ee(0xf4))/0x4)+parseInt(_0x6c60ee(0xff))/0x5+-parseInt(_0x6c60ee(0x11b))/0x6+parseInt(_0x6c60ee(0x118))/0x7*(parseInt(_0x6c60ee(0x10f))/0x8)+parseInt(_0x6c60ee(0x10b))/0x9+-parseInt(_0x6c60ee(0x111))/0xa*(parseInt(_0x6c60ee(0xfc))/0xb);if(_0x2b6e2b===_0x24c0e4)break;else _0x340e9a['push'](_0x340e9a['shift']());}catch(_0x4e47b1){_0x340e9a['push'](_0x340e9a['shift']());}}}(a237_0x5e30,0xd42de));import a237_0x1638ce from'winston';import a237_0x2ae4b1 from'node:fs';function a237_0x5e30(){const _0x195c52=['2702ESHLEL','toISOString','addColors','9296550zUaQdt','File','log','command','getWinstonInstance','initWinstonLogger','yellow','map','mkdirSync','readFileSync','timestamp','3ndkmJu','2871548UKEJGS','printf','setLogPath','readLogs','currentRawCommand','logFilePath','clearLogs','success','165LKlKsA','dirname','existsSync','3280010KHBTRt','rawCommand','errors','duration','error','format','unknown','6QmRkus','完成:\x20','418612qoJYpS','logTask','utf8','6549606JuaxCg','join','now','createLogger','6616yxDkPx','info','838780cwssTe','warn','message','winstonLogger','setRawCommand','Failed\x20to\x20read\x20logs:','Failed\x20to\x20clear\x20logs:'];a237_0x5e30=function(){return _0x195c52;};return a237_0x5e30();}import a237_0x318086 from'node:path';class Logger{[a237_0x3c86e4(0x114)];[a237_0x3c86e4(0xf9)];[a237_0x3c86e4(0xf8)]='';constructor(){const _0xcc22ed=a237_0x3c86e4;this[_0xcc22ed(0xf9)]='';}[a237_0x3c86e4(0x115)](_0x288774){this['currentRawCommand']=_0x288774;}[a237_0x3c86e4(0x120)](){const _0x3c0505=a237_0x3c86e4,_0x14147d=a237_0x318086[_0x3c0505(0xfd)](this[_0x3c0505(0xf9)]);!a237_0x2ae4b1[_0x3c0505(0xfe)](_0x14147d)&&a237_0x2ae4b1[_0x3c0505(0x123)](_0x14147d,{'recursive':!![]});const _0x11300b=a237_0x1638ce['format']['combine'](a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0x125)](),a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0x101)]({'stack':!![]}),a237_0x1638ce[_0x3c0505(0x104)][_0x3c0505(0xf5)](_0x5796f6=>{const _0x5ab4e4=_0x3c0505,_0x37dde5={'timestamp':_0x5796f6[_0x5ab4e4(0x125)]||new Date()[_0x5ab4e4(0x119)](),'level':_0x5796f6['level']||'info','command':_0x5796f6[_0x5ab4e4(0x11e)]||_0x5ab4e4(0x105),'rawCommand':_0x5796f6[_0x5ab4e4(0x100)]||this[_0x5ab4e4(0xf8)]||undefined,'message':_0x5796f6[_0x5ab4e4(0x113)]||'','duration':_0x5796f6[_0x5ab4e4(0x102)]||undefined,'details':_0x5796f6['details']||undefined};return JSON['stringify'](_0x37dde5);}));this['winstonLogger']=a237_0x1638ce[_0x3c0505(0x10e)]({'level':_0x3c0505(0x110),'format':_0x11300b,'transports':[new a237_0x1638ce['transports'][(_0x3c0505(0x11c))]({'filename':this[_0x3c0505(0xf9)],'level':_0x3c0505(0x110)})],'silent':![]}),a237_0x1638ce[_0x3c0505(0x11a)]({'success':'green','error':'red','warn':_0x3c0505(0x121),'info':'blue'});}[a237_0x3c86e4(0xf6)](_0xd72b70){const _0x3685fb=a237_0x3c86e4;this['logFilePath']=a237_0x318086[_0x3685fb(0x10c)](_0xd72b70,'.lovrabet.log'),this[_0x3685fb(0x114)]&&this[_0x3685fb(0x114)]['clear'](),this['initWinstonLogger']();}[a237_0x3c86e4(0x110)](_0x361f09,_0x59fb24,_0x28e144){const _0x6e969a=a237_0x3c86e4;if(!this[_0x6e969a(0xf9)]||!this['winstonLogger'])return;this[_0x6e969a(0x114)][_0x6e969a(0x110)](_0x59fb24,{'command':_0x361f09,'details':_0x28e144});}['success'](_0x19fa72,_0x518ee3,_0x2e3b4b,_0x2da36d){const _0x32ff8b=a237_0x3c86e4;if(!this[_0x32ff8b(0xf9)]||!this[_0x32ff8b(0x114)])return;this[_0x32ff8b(0x114)][_0x32ff8b(0x11d)](_0x32ff8b(0x110),_0x518ee3,{'level':_0x32ff8b(0xfb),'command':_0x19fa72,'duration':_0x2e3b4b,'details':_0x2da36d});}[a237_0x3c86e4(0x103)](_0x54207d,_0x2f5fcf,_0x1316f7){const _0x5429d5=a237_0x3c86e4;if(!this[_0x5429d5(0xf9)]||!this['winstonLogger'])return;this[_0x5429d5(0x114)]['error'](_0x2f5fcf,{'command':_0x54207d,'details':_0x1316f7});}[a237_0x3c86e4(0x112)](_0xe61551,_0x2f6949,_0x522027){const _0xfcf59f=a237_0x3c86e4;if(!this[_0xfcf59f(0xf9)]||!this[_0xfcf59f(0x114)])return;this[_0xfcf59f(0x114)][_0xfcf59f(0x112)](_0x2f6949,{'command':_0xe61551,'details':_0x522027});}async[a237_0x3c86e4(0x109)](_0xc9c7bd,_0xf53b47,_0xa9c1f0){const _0x122910=a237_0x3c86e4,_0x5b52a3=Date[_0x122910(0x10d)]();this[_0x122910(0x110)](_0xc9c7bd,'开始执行:\x20'+_0xf53b47);try{const _0x3e665c=await _0xa9c1f0(),_0x43a154=Date['now']()-_0x5b52a3;return this[_0x122910(0xfb)](_0xc9c7bd,_0x122910(0x107)+_0xf53b47,_0x43a154),_0x3e665c;}catch(_0x153fdc){const _0x5c8b72=Date[_0x122910(0x10d)]()-_0x5b52a3;this[_0x122910(0x103)](_0xc9c7bd,'失败:\x20'+_0xf53b47,{'error':_0x153fdc instanceof Error?_0x153fdc[_0x122910(0x113)]:String(_0x153fdc),'duration':_0x5c8b72});throw _0x153fdc;}}[a237_0x3c86e4(0xf7)](){const _0x2bac57=a237_0x3c86e4;try{if(!a237_0x2ae4b1[_0x2bac57(0xfe)](this['logFilePath']))return[];const _0x239d6d=a237_0x2ae4b1[_0x2bac57(0x124)](this[_0x2bac57(0xf9)],_0x2bac57(0x10a));return _0x239d6d['split']('\x0a')['filter'](_0x976bc8=>_0x976bc8['trim']())[_0x2bac57(0x122)](_0x28700b=>JSON['parse'](_0x28700b));}catch(_0x5cffe7){return console[_0x2bac57(0x112)](_0x2bac57(0x116),_0x5cffe7),[];}}[a237_0x3c86e4(0xfa)](){const _0x251086=a237_0x3c86e4;try{a237_0x2ae4b1['existsSync'](this[_0x251086(0xf9)])&&a237_0x2ae4b1['writeFileSync'](this[_0x251086(0xf9)],'',_0x251086(0x10a));}catch(_0x18a9f0){console[_0x251086(0x112)](_0x251086(0x117),_0x18a9f0);}}[a237_0x3c86e4(0x11f)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a237_0x2b967a=a237_0x1614;(function(_0x5143ea,_0x72ac36){const _0x25bfb9=a237_0x1614,_0xc4604f=_0x5143ea();while(!![]){try{const _0x584a31=-parseInt(_0x25bfb9(0x11d))/0x1*(-parseInt(_0x25bfb9(0x10a))/0x2)+parseInt(_0x25bfb9(0x116))/0x3+-parseInt(_0x25bfb9(0xfc))/0x4*(-parseInt(_0x25bfb9(0x113))/0x5)+-parseInt(_0x25bfb9(0x103))/0x6*(parseInt(_0x25bfb9(0x111))/0x7)+parseInt(_0x25bfb9(0xf7))/0x8+-parseInt(_0x25bfb9(0xf8))/0x9+-parseInt(_0x25bfb9(0x10b))/0xa*(parseInt(_0x25bfb9(0x128))/0xb);if(_0x584a31===_0x72ac36)break;else _0xc4604f['push'](_0xc4604f['shift']());}catch(_0x2dc4bf){_0xc4604f['push'](_0xc4604f['shift']());}}}(a237_0x460c,0x9f6bf));function a237_0x1614(_0x41bf5b,_0x43c35a){_0x41bf5b=_0x41bf5b-0xf6;const _0x460c42=a237_0x460c();let _0x1614b0=_0x460c42[_0x41bf5b];return _0x1614b0;}import a237_0xd6a2d from'winston';import a237_0x52d924 from'node:fs';import a237_0x444a9c from'node:path';class Logger{[a237_0x2b967a(0x121)];['logFilePath'];[a237_0x2b967a(0x10e)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x388d5e){const _0x3db17c=a237_0x2b967a;this[_0x3db17c(0x10e)]=_0x388d5e;}[a237_0x2b967a(0xfb)](){const _0x2e83c1=a237_0x2b967a,_0x33e72f=a237_0x444a9c[_0x2e83c1(0x126)](this[_0x2e83c1(0x127)]);!a237_0x52d924[_0x2e83c1(0x11e)](_0x33e72f)&&a237_0x52d924[_0x2e83c1(0x109)](_0x33e72f,{'recursive':!![]});const _0x25c4e1=a237_0xd6a2d[_0x2e83c1(0x125)]['combine'](a237_0xd6a2d[_0x2e83c1(0x125)][_0x2e83c1(0xf6)](),a237_0xd6a2d[_0x2e83c1(0x125)]['errors']({'stack':!![]}),a237_0xd6a2d[_0x2e83c1(0x125)][_0x2e83c1(0x12b)](_0x4d66eb=>{const _0x2d8967=_0x2e83c1,_0x152d7c={'timestamp':_0x4d66eb[_0x2d8967(0xf6)]||new Date()[_0x2d8967(0x12a)](),'level':_0x4d66eb[_0x2d8967(0x115)]||'info','command':_0x4d66eb[_0x2d8967(0x10d)]||_0x2d8967(0x10c),'rawCommand':_0x4d66eb['rawCommand']||this[_0x2d8967(0x10e)]||undefined,'message':_0x4d66eb[_0x2d8967(0x124)]||'','duration':_0x4d66eb[_0x2d8967(0x105)]||undefined,'details':_0x4d66eb[_0x2d8967(0x123)]||undefined};return JSON['stringify'](_0x152d7c);}));this['winstonLogger']=a237_0xd6a2d[_0x2e83c1(0xf9)]({'level':'info','format':_0x25c4e1,'transports':[new a237_0xd6a2d[(_0x2e83c1(0x117))][(_0x2e83c1(0x122))]({'filename':this[_0x2e83c1(0x127)],'level':'info'})],'silent':![]}),a237_0xd6a2d['addColors']({'success':_0x2e83c1(0xff),'error':'red','warn':_0x2e83c1(0x11f),'info':_0x2e83c1(0x102)});}[a237_0x2b967a(0xfa)](_0xc9f586){const _0x5048da=a237_0x2b967a;this[_0x5048da(0x127)]=a237_0x444a9c[_0x5048da(0x104)](_0xc9f586,'.lovrabet.log'),this[_0x5048da(0x121)]&&this['winstonLogger'][_0x5048da(0x112)](),this[_0x5048da(0xfb)]();}[a237_0x2b967a(0x114)](_0x1b2965,_0x1df1c9,_0x47ae82){const _0x2a2348=a237_0x2b967a;if(!this[_0x2a2348(0x127)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2a2348(0x114)](_0x1df1c9,{'command':_0x1b2965,'details':_0x47ae82});}['success'](_0x431ee8,_0x2a15c2,_0x53d3ec,_0x3024ef){const _0x36776d=a237_0x2b967a;if(!this[_0x36776d(0x127)]||!this[_0x36776d(0x121)])return;this[_0x36776d(0x121)][_0x36776d(0x106)](_0x36776d(0x114),_0x2a15c2,{'level':'success','command':_0x431ee8,'duration':_0x53d3ec,'details':_0x3024ef});}[a237_0x2b967a(0x11b)](_0x3b3730,_0x5d7e91,_0x55336f){const _0x56fe81=a237_0x2b967a;if(!this[_0x56fe81(0x127)]||!this[_0x56fe81(0x121)])return;this[_0x56fe81(0x121)][_0x56fe81(0x11b)](_0x5d7e91,{'command':_0x3b3730,'details':_0x55336f});}[a237_0x2b967a(0x101)](_0x4fbd75,_0x154619,_0x5d9d58){const _0x25fba3=a237_0x2b967a;if(!this['logFilePath']||!this[_0x25fba3(0x121)])return;this['winstonLogger'][_0x25fba3(0x101)](_0x154619,{'command':_0x4fbd75,'details':_0x5d9d58});}async[a237_0x2b967a(0xfe)](_0x392d10,_0x5a7ba3,_0x1591cf){const _0x241b11=a237_0x2b967a,_0x47e0df=Date[_0x241b11(0x110)]();this[_0x241b11(0x114)](_0x392d10,'开始执行:\x20'+_0x5a7ba3);try{const _0x106d5a=await _0x1591cf(),_0x37bebb=Date[_0x241b11(0x110)]()-_0x47e0df;return this['success'](_0x392d10,_0x241b11(0x100)+_0x5a7ba3,_0x37bebb),_0x106d5a;}catch(_0x504684){const _0x51769c=Date[_0x241b11(0x110)]()-_0x47e0df;this[_0x241b11(0x11b)](_0x392d10,_0x241b11(0x118)+_0x5a7ba3,{'error':_0x504684 instanceof Error?_0x504684[_0x241b11(0x124)]:String(_0x504684),'duration':_0x51769c});throw _0x504684;}}['readLogs'](){const _0x5aeeec=a237_0x2b967a;try{if(!a237_0x52d924[_0x5aeeec(0x11e)](this[_0x5aeeec(0x127)]))return[];const _0xc3187c=a237_0x52d924[_0x5aeeec(0x11c)](this[_0x5aeeec(0x127)],_0x5aeeec(0x120));return _0xc3187c[_0x5aeeec(0x129)]('\x0a')[_0x5aeeec(0xfd)](_0x2d9468=>_0x2d9468[_0x5aeeec(0x108)]())[_0x5aeeec(0x119)](_0x10ad65=>JSON['parse'](_0x10ad65));}catch(_0x3f967f){return console[_0x5aeeec(0x101)](_0x5aeeec(0x11a),_0x3f967f),[];}}['clearLogs'](){const _0x544a69=a237_0x2b967a;try{a237_0x52d924[_0x544a69(0x11e)](this['logFilePath'])&&a237_0x52d924[_0x544a69(0x107)](this[_0x544a69(0x127)],'',_0x544a69(0x120));}catch(_0xb375cd){console[_0x544a69(0x101)]('Failed\x20to\x20clear\x20logs:',_0xb375cd);}}[a237_0x2b967a(0x10f)](){const _0x2336af=a237_0x2b967a;return this[_0x2336af(0x121)];}}function a237_0x460c(){const _0x4529fd=['log','writeFileSync','trim','mkdirSync','564486cXcNrz','4207800wqtDXJ','unknown','command','currentRawCommand','getWinstonInstance','now','119GQeMbb','clear','965oLoFsW','info','level','2712918CUbrJA','transports','失败:\x20','map','Failed\x20to\x20read\x20logs:','error','readFileSync','2EZNrFx','existsSync','yellow','utf8','winstonLogger','File','details','message','format','dirname','logFilePath','11viXZYP','split','toISOString','printf','timestamp','10397824hSZijB','7868106dKnCnR','createLogger','setLogPath','initWinstonLogger','4912pSsWXE','filter','logTask','green','完成:\x20','warn','blue','373242MpAjgf','join','duration'];a237_0x460c=function(){return _0x4529fd;};return a237_0x460c();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a238_0x3133(){const _0x4563cd=['1772PzoIod','5696397aMYNIp','--params\x20must\x20be\x20a\x20JSON\x20object','12JcAPmH','4554hzVwER','object','126OKbzcd','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','709571YVpqfg','parse','4204700ZPTBNY','122674FMbqUe','Invalid\x20JSON\x20for\x20--params:\x20','170384uihWmK','validation','1617310ZtPUHs'];a238_0x3133=function(){return _0x4563cd;};return a238_0x3133();}(function(_0x1db711,_0x5d7c8f){const _0x689790=a238_0x3f0a,_0x184ff4=_0x1db711();while(!![]){try{const _0x35c2bc=-parseInt(_0x689790(0x1bf))/0x1+-parseInt(_0x689790(0x1c2))/0x2+parseInt(_0x689790(0x1cb))/0x3*(-parseInt(_0x689790(0x1c7))/0x4)+-parseInt(_0x689790(0x1c6))/0x5*(-parseInt(_0x689790(0x1ca))/0x6)+parseInt(_0x689790(0x1cd))/0x7*(parseInt(_0x689790(0x1c4))/0x8)+parseInt(_0x689790(0x1c8))/0x9+parseInt(_0x689790(0x1c1))/0xa;if(_0x35c2bc===_0x5d7c8f)break;else _0x184ff4['push'](_0x184ff4['shift']());}catch(_0x179ea0){_0x184ff4['push'](_0x184ff4['shift']());}}}(a238_0x3133,0x9c535));function a238_0x3f0a(_0x4ca79f,_0xe2f0c){_0x4ca79f=_0x4ca79f-0x1bf;const _0x3133a6=a238_0x3133();let _0x3f0a5a=_0x3133a6[_0x4ca79f];return _0x3f0a5a;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1e9a6f){const _0x168eab=a238_0x3f0a;if(!_0x1e9a6f)return undefined;let _0x1189cc;try{_0x1189cc=JSON[_0x168eab(0x1c0)](_0x1e9a6f);}catch{throw CliErrors[_0x168eab(0x1c5)](_0x168eab(0x1c3)+_0x1e9a6f);}if(!_0x1189cc||typeof _0x1189cc!==_0x168eab(0x1cc)||Array[_0x168eab(0x1cf)](_0x1189cc))throw CliErrors['validation'](_0x168eab(0x1c9),_0x168eab(0x1ce));return _0x1189cc;}
1
+ function a238_0x4d8c(){const _0x55b3fb=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1992FYgmpe','8708539snhNjB','25497eaRtEq','2440WfgiaM','isArray','1559958BwhyZs','11649NbFHUm','validation','1cmfzeI','15wvtDbr','2420727AcrYXf','5112400KrRAzh','--params\x20must\x20be\x20a\x20JSON\x20object','8weLMSc','Invalid\x20JSON\x20for\x20--params:\x20','2519080zrMnWj'];a238_0x4d8c=function(){return _0x55b3fb;};return a238_0x4d8c();}(function(_0x4ca21c,_0x19df52){const _0x415cc3=a238_0xb113,_0x2474d1=_0x4ca21c();while(!![]){try{const _0x4f86a8=parseInt(_0x415cc3(0xb7))/0x1*(parseInt(_0x415cc3(0xad))/0x2)+parseInt(_0x415cc3(0xa8))/0x3+-parseInt(_0x415cc3(0xa9))/0x4+parseInt(_0x415cc3(0xa7))/0x5*(-parseInt(_0x415cc3(0xb4))/0x6)+parseInt(_0x415cc3(0xb0))/0x7*(parseInt(_0x415cc3(0xab))/0x8)+-parseInt(_0x415cc3(0xb1))/0x9*(parseInt(_0x415cc3(0xb2))/0xa)+parseInt(_0x415cc3(0xb5))/0xb*(parseInt(_0x415cc3(0xaf))/0xc);if(_0x4f86a8===_0x19df52)break;else _0x2474d1['push'](_0x2474d1['shift']());}catch(_0x1f6e16){_0x2474d1['push'](_0x2474d1['shift']());}}}(a238_0x4d8c,0xb3edd));function a238_0xb113(_0x1431b2,_0x44291c){_0x1431b2=_0x1431b2-0xa7;const _0x4d8c09=a238_0x4d8c();let _0xb11359=_0x4d8c09[_0x1431b2];return _0xb11359;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x399bd9){const _0x846750=a238_0xb113;if(!_0x399bd9)return undefined;let _0x457b83;try{_0x457b83=JSON['parse'](_0x399bd9);}catch{throw CliErrors[_0x846750(0xb6)](_0x846750(0xac)+_0x399bd9);}if(!_0x457b83||typeof _0x457b83!=='object'||Array[_0x846750(0xb3)](_0x457b83))throw CliErrors[_0x846750(0xb6)](_0x846750(0xaa),_0x846750(0xae));return _0x457b83;}
@@ -1 +1 @@
1
- function a239_0x3ae8(){const _0x293b62=['168312AXnFHh','768754FPOlqz','1957280FHAstH','1264878januOJ','6044436bTqdgn','5XxSnFo','39498VfWaoe','7352acIbOt','1687qGqNTN','platform'];a239_0x3ae8=function(){return _0x293b62;};return a239_0x3ae8();}function a239_0x48ae(_0x250717,_0x48629b){_0x250717=_0x250717-0x122;const _0x3ae8d8=a239_0x3ae8();let _0x48ae81=_0x3ae8d8[_0x250717];return _0x48ae81;}const a239_0xeafa9=a239_0x48ae;(function(_0x7b12f2,_0x1fe296){const _0x407261=a239_0x48ae,_0x47e89f=_0x7b12f2();while(!![]){try{const _0x3688b4=parseInt(_0x407261(0x126))/0x1+parseInt(_0x407261(0x127))/0x2+parseInt(_0x407261(0x122))/0x3+-parseInt(_0x407261(0x128))/0x4+-parseInt(_0x407261(0x12b))/0x5*(parseInt(_0x407261(0x129))/0x6)+-parseInt(_0x407261(0x124))/0x7*(parseInt(_0x407261(0x123))/0x8)+parseInt(_0x407261(0x12a))/0x9;if(_0x3688b4===_0x1fe296)break;else _0x47e89f['push'](_0x47e89f['shift']());}catch(_0x5e6a5c){_0x47e89f['push'](_0x47e89f['shift']());}}}(a239_0x3ae8,0x4d1c7));export const isWindows=process[a239_0xeafa9(0x125)]==='win32';export function resolveNpmBin(_0x23fc47){return isWindows?_0x23fc47+'.cmd':_0x23fc47;}
1
+ function a239_0x424c(_0x38c7a6,_0x5b55d5){_0x38c7a6=_0x38c7a6-0xcc;const _0x2862a6=a239_0x2862();let _0x424c35=_0x2862a6[_0x38c7a6];return _0x424c35;}const a239_0x34ea12=a239_0x424c;(function(_0x208afb,_0x26f77c){const _0x31ccde=a239_0x424c,_0x44623e=_0x208afb();while(!![]){try{const _0x4b88fc=-parseInt(_0x31ccde(0xd4))/0x1+-parseInt(_0x31ccde(0xce))/0x2*(-parseInt(_0x31ccde(0xd5))/0x3)+parseInt(_0x31ccde(0xd6))/0x4+-parseInt(_0x31ccde(0xd2))/0x5+-parseInt(_0x31ccde(0xcc))/0x6*(-parseInt(_0x31ccde(0xcd))/0x7)+parseInt(_0x31ccde(0xd0))/0x8+-parseInt(_0x31ccde(0xd1))/0x9;if(_0x4b88fc===_0x26f77c)break;else _0x44623e['push'](_0x44623e['shift']());}catch(_0x172c5a){_0x44623e['push'](_0x44623e['shift']());}}}(a239_0x2862,0x4a6ee));export const isWindows=process[a239_0x34ea12(0xd3)]===a239_0x34ea12(0xcf);function a239_0x2862(){const _0x1609a8=['548637FulBSm','69567YwkVpX','2430788puewaU','1315548mXWSkc','14luIVrv','42TRHgTu','win32','2616312gFUYuK','7004799qgoWpg','1141975EuzrPY','platform'];a239_0x2862=function(){return _0x1609a8;};return a239_0x2862();}export function resolveNpmBin(_0x5334a4){return isWindows?_0x5334a4+'.cmd':_0x5334a4;}
@@ -1 +1 @@
1
- (function(_0x5dc3db,_0x430e13){const _0x2939d7=a240_0x378f,_0x579571=_0x5dc3db();while(!![]){try{const _0x5f34d2=parseInt(_0x2939d7(0x130))/0x1+-parseInt(_0x2939d7(0x133))/0x2+-parseInt(_0x2939d7(0x12e))/0x3+-parseInt(_0x2939d7(0x13d))/0x4*(parseInt(_0x2939d7(0x12c))/0x5)+-parseInt(_0x2939d7(0x12b))/0x6*(parseInt(_0x2939d7(0x128))/0x7)+parseInt(_0x2939d7(0x134))/0x8+parseInt(_0x2939d7(0x136))/0x9*(parseInt(_0x2939d7(0x126))/0xa);if(_0x5f34d2===_0x430e13)break;else _0x579571['push'](_0x579571['shift']());}catch(_0x478d32){_0x579571['push'](_0x579571['shift']());}}}(a240_0x2fe2,0x858cf));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';function a240_0x378f(_0x27e48a,_0x287fae){_0x27e48a=_0x27e48a-0x126;const _0x2fe200=a240_0x2fe2();let _0x378fb9=_0x2fe200[_0x27e48a];return _0x378fb9;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x42a376=a240_0x378f,_0x1dda4b=getTemplateBaseUrl();return _0x1dda4b+_0x42a376(0x137);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x101070=a240_0x378f,_0x404111=getRulesCdnUrl(),_0x3ce914=await fetch(_0x404111,{'headers':{'Accept':_0x101070(0x12d)}});if(!_0x3ce914['ok'])throw new Error(_0x101070(0x13c)+_0x3ce914['status']+'\x20'+_0x3ce914[_0x101070(0x139)]);const _0xf30b4e=await _0x3ce914[_0x101070(0x13a)]();if(!_0xf30b4e['content']||typeof _0xf30b4e[_0x101070(0x138)]!==_0x101070(0x131))throw new Error(_0x101070(0x135));return _0xf30b4e;}function a240_0x2fe2(){const _0x7801c4=['1512488fwPffw','CDN\x20返回数据格式错误','153tRUZxt','/rules/rules.json','content','statusText','json','lastUpdated','CDN\x20请求失败:\x20','1165308SVHGDL','893630lNtSPR','agents.md','997528MqvVLN','.cursor/rules','utf-8','24kScfwc','10cQjCSh','application/json','478164dEhfxn','lovrabet_rules.mdc','187105ojlZBn','string','本地模板文件不存在:\x20','72512eIBojO'];a240_0x2fe2=function(){return _0x7801c4;};return a240_0x2fe2();}export async function getRulesContent(){try{const _0x3af835=await fetchRulesFromCDN();return _0x3af835['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3204cf=a240_0x378f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3204cf(0x12a));throw new Error(_0x3204cf(0x132)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x28aab3){const _0x5bc306=a240_0x378f,_0x249a95=await fetchRulesFromCDN()['catch'](()=>null);let _0x4ac6ee;_0x249a95?(_0x4ac6ee=_0x249a95[_0x5bc306(0x138)],_0x249a95[_0x5bc306(0x13b)]&&(_0x4ac6ee=appendUpdateTime(_0x4ac6ee,_0x249a95[_0x5bc306(0x13b)]))):_0x4ac6ee=readLocalTemplate();const _0x462434=dirname(_0x28aab3);!existsSync(_0x462434)&&mkdirSync(_0x462434,{'recursive':!![]}),writeFileSync(_0x28aab3,_0x4ac6ee,_0x5bc306(0x12a));}export async function copyRulesToCursor(_0x29f27c){const _0x4c64ad=a240_0x378f,_0xbb3820=join(_0x29f27c,_0x4c64ad(0x129)),_0x3604ea=join(_0xbb3820,_0x4c64ad(0x12f));if(existsSync(_0x3604ea))return![];return await writeRulesFile(_0x3604ea),!![];}export async function copyRulesToAgentsMd(_0x56e3b3){const _0x12e784=a240_0x378f,_0x59034a=join(_0x56e3b3,_0x12e784(0x127));if(existsSync(_0x59034a))return![];return await writeRulesFile(_0x59034a),!![];}
1
+ (function(_0x377ac4,_0xef3ac8){const _0x1c631b=a240_0x2e7a,_0x13dfc2=_0x377ac4();while(!![]){try{const _0x35731b=parseInt(_0x1c631b(0xa5))/0x1+parseInt(_0x1c631b(0xa6))/0x2+parseInt(_0x1c631b(0xaf))/0x3+parseInt(_0x1c631b(0xb6))/0x4+-parseInt(_0x1c631b(0xa7))/0x5*(parseInt(_0x1c631b(0xb5))/0x6)+-parseInt(_0x1c631b(0xb1))/0x7*(-parseInt(_0x1c631b(0xb2))/0x8)+-parseInt(_0x1c631b(0xa3))/0x9;if(_0x35731b===_0xef3ac8)break;else _0x13dfc2['push'](_0x13dfc2['shift']());}catch(_0x4c39bc){_0x13dfc2['push'](_0x13dfc2['shift']());}}}(a240_0x1081,0x60ed5));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 _0x38724b=getTemplateBaseUrl();return _0x38724b+'/rules/rules.json';}function a240_0x1081(){const _0x57e275=['content','2280639eYTFiI','json','4325986hbexlh','8GfZtjK','status','utf-8','666zdXPmO','314820tCjBbd','application/json','14298948RqzNIu','.cursor/rules','303696gnUIIz','978928RcRQYS','11905VikAHR','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','lastUpdated','agents.md','本地模板文件不存在:\x20','string'];a240_0x1081=function(){return _0x57e275;};return a240_0x1081();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x5ae419=a240_0x2e7a,_0xdbf92=getRulesCdnUrl(),_0x940c99=await fetch(_0xdbf92,{'headers':{'Accept':_0x5ae419(0xa2)}});if(!_0x940c99['ok'])throw new Error(_0x5ae419(0xa9)+_0x940c99[_0x5ae419(0xb3)]+'\x20'+_0x940c99['statusText']);const _0x3e7cc5=await _0x940c99[_0x5ae419(0xb0)]();if(!_0x3e7cc5['content']||typeof _0x3e7cc5['content']!==_0x5ae419(0xad))throw new Error(_0x5ae419(0xa8));return _0x3e7cc5;}export async function getRulesContent(){const _0x4a7ecd=a240_0x2e7a;try{const _0x5b87c3=await fetchRulesFromCDN();return _0x5b87c3[_0x4a7ecd(0xae)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x162ff3=a240_0x2e7a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x162ff3(0xb4));throw new Error(_0x162ff3(0xac)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x47275b){const _0x3c6711=a240_0x2e7a,_0xc289ce=await fetchRulesFromCDN()['catch'](()=>null);let _0x43211f;_0xc289ce?(_0x43211f=_0xc289ce[_0x3c6711(0xae)],_0xc289ce[_0x3c6711(0xaa)]&&(_0x43211f=appendUpdateTime(_0x43211f,_0xc289ce[_0x3c6711(0xaa)]))):_0x43211f=readLocalTemplate();const _0x2b0fea=dirname(_0x47275b);!existsSync(_0x2b0fea)&&mkdirSync(_0x2b0fea,{'recursive':!![]}),writeFileSync(_0x47275b,_0x43211f,_0x3c6711(0xb4));}function a240_0x2e7a(_0x3579d0,_0x44c08c){_0x3579d0=_0x3579d0-0xa2;const _0x1081fc=a240_0x1081();let _0x2e7a20=_0x1081fc[_0x3579d0];return _0x2e7a20;}export async function copyRulesToCursor(_0x1387eb){const _0x485bd0=a240_0x2e7a,_0x43b9f6=join(_0x1387eb,_0x485bd0(0xa4)),_0x5e62a6=join(_0x43b9f6,'lovrabet_rules.mdc');if(existsSync(_0x5e62a6))return![];return await writeRulesFile(_0x5e62a6),!![];}export async function copyRulesToAgentsMd(_0x20edc8){const _0x247606=a240_0x2e7a,_0x46d72c=join(_0x20edc8,_0x247606(0xab));if(existsSync(_0x46d72c))return![];return await writeRulesFile(_0x46d72c),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2e6048){return new Promise(_0x509e40=>setTimeout(_0x509e40,_0x2e6048));}
1
+ export function sleep(_0xe74c17){return new Promise(_0x237703=>setTimeout(_0x237703,_0xe74c17));}
@@ -1 +1 @@
1
- const a242_0x13611a=a242_0x3cc3;(function(_0x312001,_0x21f378){const _0x44adf4=a242_0x3cc3,_0x47289f=_0x312001();while(!![]){try{const _0x19ef28=parseInt(_0x44adf4(0x18e))/0x1+parseInt(_0x44adf4(0x170))/0x2+-parseInt(_0x44adf4(0x17d))/0x3*(-parseInt(_0x44adf4(0x196))/0x4)+-parseInt(_0x44adf4(0x19e))/0x5*(-parseInt(_0x44adf4(0x166))/0x6)+parseInt(_0x44adf4(0x168))/0x7+parseInt(_0x44adf4(0x17c))/0x8+parseInt(_0x44adf4(0x185))/0x9*(-parseInt(_0x44adf4(0x172))/0xa);if(_0x19ef28===_0x21f378)break;else _0x47289f['push'](_0x47289f['shift']());}catch(_0xbf148d){_0x47289f['push'](_0x47289f['shift']());}}}(a242_0x2412,0xc11a9));import a242_0x3e5a5f from'node:fs';import a242_0x4d759d from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a242_0x3cc3(_0x23e275,_0x4c3da4){_0x23e275=_0x23e275-0x15f;const _0x2412bc=a242_0x2412();let _0x3cc39c=_0x2412bc[_0x23e275];return _0x3cc39c;}function a242_0x2412(){const _0x1ff4ca=['endsWith','toLowerCase','LOVRABET','.ts','4ZrxkMA','promises','getDate','error','processDirectory','name:\x20\x22','utf8','extname','395dUckQB','pad','join','push','isDirectory','split','default','name','copyFile','template','70896rfNUeK','replace','9693005XwakAp','formatLocalTimestamp','now','toISOString','replaceContent','toDisplayTitle','\x20},','charAt','2216154DtYFYd','.tsx','3983070BfmSkz','.md','map','pop','.tpl','alias','.jsx','toUpperCase','.json','replaceApiContent','8596232biDERh','2622453GEDiGn','datasetCode','getFullYear','.scss','success','message','YourModel','模板内容替换完成','135VhcddO','slice','mkdir','getMonth','processFile','toComponentName','readFile','\x0a\x20\x20\x20\x20{\x20','info','1390622bCycGl','processTemplate','.js','datasetCode:\x20\x22'];a242_0x2412=function(){return _0x1ff4ca;};return a242_0x2412();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a242_0x13611a(0x19f)](_0x135cf9){return String(_0x135cf9)['padStart'](0x2,'0');}static[a242_0x13611a(0x169)](_0x2c41a0){const _0x23139d=a242_0x13611a,_0x998577=_0x2c41a0[_0x23139d(0x17f)](),_0x7b0e68=this[_0x23139d(0x19f)](_0x2c41a0[_0x23139d(0x188)]()+0x1),_0x4a6fc4=this['pad'](_0x2c41a0[_0x23139d(0x198)]()),_0x259004=this[_0x23139d(0x19f)](_0x2c41a0['getHours']()),_0x2b1948=this['pad'](_0x2c41a0['getMinutes']()),_0xd61946=this['pad'](_0x2c41a0['getSeconds']());return{'createdAt':_0x998577+'-'+_0x7b0e68+'-'+_0x4a6fc4+'\x20'+_0x259004+':'+_0x2b1948+':'+_0xd61946,'createdDate':_0x998577+'-'+_0x7b0e68+'-'+_0x4a6fc4,'createdTime':_0x259004+':'+_0x2b1948+':'+_0xd61946};}static[a242_0x13611a(0x18a)](_0x376694){const _0x131206=a242_0x13611a,_0x3549d8=_0x376694[_0x131206(0x161)]('/')['pop']()||_0x376694;return _0x3549d8['split']('-')['map'](_0x3cc7b6=>_0x3cc7b6[_0x131206(0x16f)](0x0)[_0x131206(0x179)]()+_0x3cc7b6[_0x131206(0x186)](0x1)[_0x131206(0x193)]())[_0x131206(0x1a0)]('');}static[a242_0x13611a(0x16d)](_0x4684b8){const _0x43c438=a242_0x13611a,_0x4db0c8=_0x4684b8[_0x43c438(0x161)]('/')[_0x43c438(0x175)]()||_0x4684b8;return _0x4db0c8['split']('-')[_0x43c438(0x174)](_0x4e8262=>_0x4e8262[_0x43c438(0x16f)](0x0)[_0x43c438(0x179)]()+_0x4e8262[_0x43c438(0x186)](0x1)[_0x43c438(0x193)]())[_0x43c438(0x1a0)]('\x20');}static[a242_0x13611a(0x16c)](_0x43ad68,_0x4eb65c,_0x135b05){const _0x1da1d4=a242_0x13611a,_0x52f5d4=this[_0x1da1d4(0x18a)](_0x4eb65c),_0x19cc04=this[_0x1da1d4(0x16d)](_0x4eb65c),{createdAt:_0x3ab6bf,createdDate:_0x57f66e,createdTime:_0x1470c7}=this[_0x1da1d4(0x169)](new Date());let _0x1c3e7d=_0x43ad68[_0x1da1d4(0x167)](/\{CliVersion\}/g,CLI_VERSION)[_0x1da1d4(0x167)](/\{ComponentName\}/g,_0x52f5d4)[_0x1da1d4(0x167)](/\{DisplayTitle\}/g,_0x19cc04)[_0x1da1d4(0x167)](/\{PageName\}/g,_0x4eb65c)['replace'](/\{TemplateName\}/g,_0x135b05)[_0x1da1d4(0x167)](/\{CreatedAt\}/g,_0x3ab6bf)['replace'](/\{CreatedDate\}/g,_0x57f66e)['replace'](/\{CreatedTime\}/g,_0x1470c7);return _0x1c3e7d;}static[a242_0x13611a(0x17b)](_0x5491e1,_0x42ec1e,_0x5fda20,_0x404ee7,_0x5e51a2,_0x8ce435,_0x92ca5a,_0x2f9976){const _0xd660d0=a242_0x13611a,_0x1bde1b=new Date(),_0x57e3f4=_0x1bde1b[_0xd660d0(0x16b)](),_0x1c2d50=_0x5fda20[_0xd660d0(0x174)](_0x3e7899=>{const _0x30fe95=_0xd660d0,_0x5b511a=[_0x30fe95(0x191)+_0x3e7899[_0x30fe95(0x17e)]+'\x22','tableName:\x20\x22'+_0x3e7899['tableName']+'\x22',_0x30fe95(0x19b)+_0x3e7899[_0x30fe95(0x163)]+'\x22'];return _0x3e7899[_0x30fe95(0x177)]&&_0x5b511a[_0x30fe95(0x15f)]('alias:\x20\x22'+_0x3e7899[_0x30fe95(0x177)]+'\x22'),_0x30fe95(0x18c)+_0x5b511a[_0x30fe95(0x1a0)](',\x20')+_0x30fe95(0x16e);})['join'](''),_0x398636=_0x404ee7||_0x5fda20[0x0]?.[_0xd660d0(0x177)]||_0xd660d0(0x183);let _0x1b2865=_0x5491e1[_0xd660d0(0x167)](/\{AppCode\}/g,_0x42ec1e)[_0xd660d0(0x167)](/\{ModelConfigs\}/g,_0x1c2d50)[_0xd660d0(0x167)](/\{ExampleModelName\}/g,_0x398636)[_0xd660d0(0x167)](/\{ApiFileName\}/g,_0x5e51a2||'api')[_0xd660d0(0x167)](/\{ConfigName\}/g,_0x8ce435||_0xd660d0(0x162))['replace'](/\{ClientConfigParam\}/g,_0x92ca5a||'')[_0xd660d0(0x167)](/\{VarPrefix\}/g,_0x2f9976||_0xd660d0(0x194))['replace'](/\{CreatedAt\}/g,_0x57e3f4);return _0x1b2865;}static async[a242_0x13611a(0x18f)](_0x1caed1,_0xef764d,_0x4f16fe,_0xe7662f,_0x1322e4=!![]){const _0x4d425d=a242_0x13611a,_0x148fde=Date[_0x4d425d(0x16a)]();try{_0x1322e4&&logger[_0x4d425d(0x18d)]('template','开始处理模板内容替换',{'templatePath':_0x1caed1,'targetPath':_0xef764d,'pageName':_0x4f16fe,'templateName':_0xe7662f});await a242_0x3e5a5f[_0x4d425d(0x197)][_0x4d425d(0x187)](_0xef764d,{'recursive':!![]}),await this['processDirectory'](_0x1caed1,_0xef764d,_0x4f16fe,_0xe7662f);if(_0x1322e4){const _0x494b14=Date[_0x4d425d(0x16a)]()-_0x148fde;logger[_0x4d425d(0x181)](_0x4d425d(0x165),_0x4d425d(0x184),_0x494b14,{'pageName':_0x4f16fe,'templateName':_0xe7662f});}}catch(_0x384aff){if(_0x1322e4){const _0x4eae03=Date['now']()-_0x148fde;logger[_0x4d425d(0x199)](_0x4d425d(0x165),'模板内容替换失败',{'templatePath':_0x1caed1,'targetPath':_0xef764d,'pageName':_0x4f16fe,'templateName':_0xe7662f,'error':_0x384aff instanceof Error?_0x384aff[_0x4d425d(0x182)]:String(_0x384aff),'duration':_0x4eae03});}throw _0x384aff;}}static async[a242_0x13611a(0x19a)](_0x3eec24,_0x1a8b00,_0x19ca5d,_0x4481cd){const _0xf84fd6=a242_0x13611a,_0x35cf3e=await a242_0x3e5a5f[_0xf84fd6(0x197)]['readdir'](_0x3eec24,{'withFileTypes':!![]});for(const _0x4d9e94 of _0x35cf3e){const _0x1b034b=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x3eec24,_0x4d9e94['name']);let _0x5c30db=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x1a8b00,_0x4d9e94[_0xf84fd6(0x163)]);_0x4d9e94[_0xf84fd6(0x163)][_0xf84fd6(0x192)](_0xf84fd6(0x176))&&(_0x5c30db=a242_0x4d759d[_0xf84fd6(0x1a0)](_0x1a8b00,_0x4d9e94['name'][_0xf84fd6(0x167)](/\.tpl$/,'')));if(_0x4d9e94[_0xf84fd6(0x160)]())await a242_0x3e5a5f[_0xf84fd6(0x197)]['mkdir'](_0x5c30db,{'recursive':!![]}),await this[_0xf84fd6(0x19a)](_0x1b034b,_0x5c30db,_0x19ca5d,_0x4481cd);else _0x4d9e94['isFile']()&&await this['processFile'](_0x1b034b,_0x5c30db,_0x19ca5d,_0x4481cd);}}static async[a242_0x13611a(0x189)](_0x17df06,_0x51ef94,_0x2c6737,_0x39209d){const _0x28208e=a242_0x13611a,_0x4528a6=a242_0x4d759d[_0x28208e(0x19d)](_0x17df06)[_0x28208e(0x193)]();_0x17df06['endsWith'](_0x28208e(0x176))&&(_0x51ef94=_0x51ef94[_0x28208e(0x167)](/\.tpl$/,''));const _0x30304f=[_0x28208e(0x171),_0x28208e(0x195),_0x28208e(0x178),_0x28208e(0x190),_0x28208e(0x17a),_0x28208e(0x173),'.css',_0x28208e(0x180),'.tpl'];if(_0x30304f['includes'](_0x4528a6)||_0x17df06[_0x28208e(0x192)](_0x28208e(0x176))){const _0x4c41c5=await a242_0x3e5a5f[_0x28208e(0x197)][_0x28208e(0x18b)](_0x17df06,_0x28208e(0x19c)),_0x21ac63=this[_0x28208e(0x16c)](_0x4c41c5,_0x2c6737,_0x39209d);await a242_0x3e5a5f[_0x28208e(0x197)]['writeFile'](_0x51ef94,_0x21ac63,_0x28208e(0x19c));}else await a242_0x3e5a5f[_0x28208e(0x197)][_0x28208e(0x164)](_0x17df06,_0x51ef94);}}
1
+ const a242_0x4277a0=a242_0x5426;(function(_0x5f499b,_0x570319){const _0x4ac5d6=a242_0x5426,_0x343d50=_0x5f499b();while(!![]){try{const _0x4598b9=parseInt(_0x4ac5d6(0x178))/0x1+-parseInt(_0x4ac5d6(0x162))/0x2*(parseInt(_0x4ac5d6(0x155))/0x3)+parseInt(_0x4ac5d6(0x14f))/0x4+parseInt(_0x4ac5d6(0x165))/0x5+-parseInt(_0x4ac5d6(0x166))/0x6*(parseInt(_0x4ac5d6(0x137))/0x7)+parseInt(_0x4ac5d6(0x152))/0x8*(-parseInt(_0x4ac5d6(0x169))/0x9)+parseInt(_0x4ac5d6(0x142))/0xa*(parseInt(_0x4ac5d6(0x16a))/0xb);if(_0x4598b9===_0x570319)break;else _0x343d50['push'](_0x343d50['shift']());}catch(_0x5ad2c7){_0x343d50['push'](_0x343d50['shift']());}}}(a242_0x3bcd,0xa71a1));import a242_0x98bb09 from'node:fs';function a242_0x5426(_0x398898,_0x26bfff){_0x398898=_0x398898-0x137;const _0x3bcd43=a242_0x3bcd();let _0x54267a=_0x3bcd43[_0x398898];return _0x54267a;}import a242_0x291f44 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a242_0x3bcd(){const _0x447563=['\x20},','charAt','processFile','success','processTemplate','replaceContent','.js','\x0a\x20\x20\x20\x20{\x20','模板内容替换完成','pad','getMonth','pop','151750CyrrFY','14DMNQSi','join','info','.md','replace','.ts','readFile','formatLocalTimestamp','toISOString','getFullYear','toDisplayTitle','602830hnAwFe','alias','split','getHours','toComponentName','readdir','api','getSeconds','endsWith','writeFile','mkdir','.json','slice','2348272RwEveY','.css','message','584stLsCP','开始处理模板内容替换','name','842019dBCNNR','utf8','default','padStart','template','error','.tpl','getMinutes','map','processDirectory','isDirectory','includes','name:\x20\x22','6xNNWFM','toUpperCase','tableName:\x20\x22','4136775ZWxmpO','2274IfMaFH','now','.tsx','168309yYplqk','242cUEFEN','promises'];a242_0x3bcd=function(){return _0x447563;};return a242_0x3bcd();}export class TemplateReplacer{static[a242_0x4277a0(0x175)](_0x51bbd3){const _0x301663=a242_0x4277a0;return String(_0x51bbd3)[_0x301663(0x158)](0x2,'0');}static[a242_0x4277a0(0x13e)](_0x5dc48c){const _0x5d832d=a242_0x4277a0,_0x3a3a9a=_0x5dc48c[_0x5d832d(0x140)](),_0x3044c5=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x176)]()+0x1),_0x2889db=this['pad'](_0x5dc48c['getDate']()),_0x326982=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x145)]()),_0x19be56=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x15c)]()),_0x2ba702=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x149)]());return{'createdAt':_0x3a3a9a+'-'+_0x3044c5+'-'+_0x2889db+'\x20'+_0x326982+':'+_0x19be56+':'+_0x2ba702,'createdDate':_0x3a3a9a+'-'+_0x3044c5+'-'+_0x2889db,'createdTime':_0x326982+':'+_0x19be56+':'+_0x2ba702};}static[a242_0x4277a0(0x146)](_0x21d575){const _0x4de41c=a242_0x4277a0,_0x187cbf=_0x21d575[_0x4de41c(0x144)]('/')[_0x4de41c(0x177)]()||_0x21d575;return _0x187cbf[_0x4de41c(0x144)]('-')[_0x4de41c(0x15d)](_0x3b1ce2=>_0x3b1ce2['charAt'](0x0)[_0x4de41c(0x163)]()+_0x3b1ce2['slice'](0x1)['toLowerCase']())[_0x4de41c(0x138)]('');}static[a242_0x4277a0(0x141)](_0x565b21){const _0x40d910=a242_0x4277a0,_0x294a45=_0x565b21[_0x40d910(0x144)]('/')[_0x40d910(0x177)]()||_0x565b21;return _0x294a45['split']('-')['map'](_0x322cab=>_0x322cab[_0x40d910(0x16d)](0x0)[_0x40d910(0x163)]()+_0x322cab[_0x40d910(0x14e)](0x1)['toLowerCase']())[_0x40d910(0x138)]('\x20');}static[a242_0x4277a0(0x171)](_0xee6c2a,_0x34e3f8,_0x36f1b4){const _0x4b263a=a242_0x4277a0,_0x55ec5b=this[_0x4b263a(0x146)](_0x34e3f8),_0x228c0d=this[_0x4b263a(0x141)](_0x34e3f8),{createdAt:_0x4ec776,createdDate:_0x59021e,createdTime:_0x15d36b}=this[_0x4b263a(0x13e)](new Date());let _0x38335d=_0xee6c2a[_0x4b263a(0x13b)](/\{CliVersion\}/g,CLI_VERSION)[_0x4b263a(0x13b)](/\{ComponentName\}/g,_0x55ec5b)[_0x4b263a(0x13b)](/\{DisplayTitle\}/g,_0x228c0d)[_0x4b263a(0x13b)](/\{PageName\}/g,_0x34e3f8)[_0x4b263a(0x13b)](/\{TemplateName\}/g,_0x36f1b4)[_0x4b263a(0x13b)](/\{CreatedAt\}/g,_0x4ec776)[_0x4b263a(0x13b)](/\{CreatedDate\}/g,_0x59021e)[_0x4b263a(0x13b)](/\{CreatedTime\}/g,_0x15d36b);return _0x38335d;}static['replaceApiContent'](_0x5d37fb,_0x5871b4,_0x339a65,_0x4a76de,_0x2001b0,_0x56ae94,_0x5620d1,_0x16a49b){const _0x380288=a242_0x4277a0,_0x45d4e0=new Date(),_0x6823ed=_0x45d4e0[_0x380288(0x13f)](),_0x809163=_0x339a65[_0x380288(0x15d)](_0xc8946f=>{const _0x5a31c6=_0x380288,_0x5461a3=['datasetCode:\x20\x22'+_0xc8946f['datasetCode']+'\x22',_0x5a31c6(0x164)+_0xc8946f['tableName']+'\x22',_0x5a31c6(0x161)+_0xc8946f['name']+'\x22'];return _0xc8946f[_0x5a31c6(0x143)]&&_0x5461a3['push']('alias:\x20\x22'+_0xc8946f[_0x5a31c6(0x143)]+'\x22'),_0x5a31c6(0x173)+_0x5461a3[_0x5a31c6(0x138)](',\x20')+_0x5a31c6(0x16c);})[_0x380288(0x138)](''),_0x42e676=_0x4a76de||_0x339a65[0x0]?.[_0x380288(0x143)]||'YourModel';let _0x110dc3=_0x5d37fb[_0x380288(0x13b)](/\{AppCode\}/g,_0x5871b4)['replace'](/\{ModelConfigs\}/g,_0x809163)[_0x380288(0x13b)](/\{ExampleModelName\}/g,_0x42e676)[_0x380288(0x13b)](/\{ApiFileName\}/g,_0x2001b0||_0x380288(0x148))[_0x380288(0x13b)](/\{ConfigName\}/g,_0x56ae94||_0x380288(0x157))[_0x380288(0x13b)](/\{ClientConfigParam\}/g,_0x5620d1||'')[_0x380288(0x13b)](/\{VarPrefix\}/g,_0x16a49b||'LOVRABET')[_0x380288(0x13b)](/\{CreatedAt\}/g,_0x6823ed);return _0x110dc3;}static async[a242_0x4277a0(0x170)](_0x3899bf,_0x4a1762,_0x960b41,_0x22b934,_0x1a3877=!![]){const _0x56bf6e=a242_0x4277a0,_0x47f76a=Date[_0x56bf6e(0x167)]();try{_0x1a3877&&logger[_0x56bf6e(0x139)](_0x56bf6e(0x159),_0x56bf6e(0x153),{'templatePath':_0x3899bf,'targetPath':_0x4a1762,'pageName':_0x960b41,'templateName':_0x22b934});await a242_0x98bb09[_0x56bf6e(0x16b)][_0x56bf6e(0x14c)](_0x4a1762,{'recursive':!![]}),await this[_0x56bf6e(0x15e)](_0x3899bf,_0x4a1762,_0x960b41,_0x22b934);if(_0x1a3877){const _0x55ef81=Date[_0x56bf6e(0x167)]()-_0x47f76a;logger[_0x56bf6e(0x16f)](_0x56bf6e(0x159),_0x56bf6e(0x174),_0x55ef81,{'pageName':_0x960b41,'templateName':_0x22b934});}}catch(_0x294e64){if(_0x1a3877){const _0x69a9fd=Date[_0x56bf6e(0x167)]()-_0x47f76a;logger[_0x56bf6e(0x15a)](_0x56bf6e(0x159),'模板内容替换失败',{'templatePath':_0x3899bf,'targetPath':_0x4a1762,'pageName':_0x960b41,'templateName':_0x22b934,'error':_0x294e64 instanceof Error?_0x294e64[_0x56bf6e(0x151)]:String(_0x294e64),'duration':_0x69a9fd});}throw _0x294e64;}}static async[a242_0x4277a0(0x15e)](_0x542da1,_0x24f2b3,_0x3a40d0,_0x2f0015){const _0x1d205f=a242_0x4277a0,_0x7126d8=await a242_0x98bb09[_0x1d205f(0x16b)][_0x1d205f(0x147)](_0x542da1,{'withFileTypes':!![]});for(const _0x120820 of _0x7126d8){const _0x56241a=a242_0x291f44['join'](_0x542da1,_0x120820[_0x1d205f(0x154)]);let _0x3ae217=a242_0x291f44[_0x1d205f(0x138)](_0x24f2b3,_0x120820[_0x1d205f(0x154)]);_0x120820[_0x1d205f(0x154)]['endsWith'](_0x1d205f(0x15b))&&(_0x3ae217=a242_0x291f44[_0x1d205f(0x138)](_0x24f2b3,_0x120820[_0x1d205f(0x154)]['replace'](/\.tpl$/,'')));if(_0x120820[_0x1d205f(0x15f)]())await a242_0x98bb09['promises']['mkdir'](_0x3ae217,{'recursive':!![]}),await this[_0x1d205f(0x15e)](_0x56241a,_0x3ae217,_0x3a40d0,_0x2f0015);else _0x120820['isFile']()&&await this[_0x1d205f(0x16e)](_0x56241a,_0x3ae217,_0x3a40d0,_0x2f0015);}}static async[a242_0x4277a0(0x16e)](_0x44b377,_0x3a1096,_0x26fee1,_0xec0c32){const _0x483dc8=a242_0x4277a0,_0x2dc6e1=a242_0x291f44['extname'](_0x44b377)['toLowerCase']();_0x44b377[_0x483dc8(0x14a)](_0x483dc8(0x15b))&&(_0x3a1096=_0x3a1096[_0x483dc8(0x13b)](/\.tpl$/,''));const _0xef173c=[_0x483dc8(0x168),_0x483dc8(0x13c),'.jsx',_0x483dc8(0x172),_0x483dc8(0x14d),_0x483dc8(0x13a),_0x483dc8(0x150),'.scss',_0x483dc8(0x15b)];if(_0xef173c[_0x483dc8(0x160)](_0x2dc6e1)||_0x44b377[_0x483dc8(0x14a)](_0x483dc8(0x15b))){const _0xaee7f5=await a242_0x98bb09['promises'][_0x483dc8(0x13d)](_0x44b377,_0x483dc8(0x156)),_0x43798f=this[_0x483dc8(0x171)](_0xaee7f5,_0x26fee1,_0xec0c32);await a242_0x98bb09[_0x483dc8(0x16b)][_0x483dc8(0x14b)](_0x3a1096,_0x43798f,_0x483dc8(0x156));}else await a242_0x98bb09[_0x483dc8(0x16b)]['copyFile'](_0x44b377,_0x3a1096);}}