@lovrabet/rabetbase-cli 2.1.7-beta.9 → 2.1.8

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 (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a178_0x3804cf=a178_0xa77e;(function(_0x155101,_0x13e959){const _0x349454=a178_0xa77e,_0x1bdbfa=_0x155101();while(!![]){try{const _0x3003ea=-parseInt(_0x349454(0x100))/0x1*(parseInt(_0x349454(0xf5))/0x2)+parseInt(_0x349454(0x10b))/0x3+parseInt(_0x349454(0xfc))/0x4+-parseInt(_0x349454(0xf1))/0x5+parseInt(_0x349454(0xea))/0x6+-parseInt(_0x349454(0xe9))/0x7+-parseInt(_0x349454(0xfb))/0x8*(-parseInt(_0x349454(0xeb))/0x9);if(_0x3003ea===_0x13e959)break;else _0x1bdbfa['push'](_0x1bdbfa['shift']());}catch(_0x2783b2){_0x1bdbfa['push'](_0x1bdbfa['shift']());}}}(a178_0x4a60,0xabbe7));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x3804cf(0x114),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a178_0x3804cf(0x113)}]},'windsurf':{'name':a178_0x3804cf(0x106),'description':a178_0x3804cf(0x103),'folders':[a178_0x3804cf(0x117)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10a),'template':a178_0x3804cf(0x113)}]},'claude':{'name':a178_0x3804cf(0xe4),'description':'Claude\x20Code','folders':[a178_0x3804cf(0xe8)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10c),'template':a178_0x3804cf(0x113)}]},'cline':{'name':a178_0x3804cf(0x108),'description':'Cline\x20IDE','folders':[a178_0x3804cf(0xf8)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10e),'template':a178_0x3804cf(0x113)}]},'codex':{'name':'Codex','description':a178_0x3804cf(0xf4),'folders':[a178_0x3804cf(0xef)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xe7),'template':a178_0x3804cf(0x113)}]},'opencode':{'name':a178_0x3804cf(0x110),'description':'OpenCode\x20IDE','folders':[a178_0x3804cf(0xf3)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xed),'template':a178_0x3804cf(0x113)}]},'qoder':{'name':'Qoder','description':a178_0x3804cf(0x10d),'folders':[a178_0x3804cf(0x10f)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x112),'template':a178_0x3804cf(0x113)},{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xf7),'template':a178_0x3804cf(0x113)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x3804cf(0xf9),'folders':[a178_0x3804cf(0x111)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x118),'template':'SKILL.md.tpl'}]},'trae':{'name':a178_0x3804cf(0x109),'description':a178_0x3804cf(0x102),'folders':[a178_0x3804cf(0xf0)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x101),'template':a178_0x3804cf(0x113)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x3804cf(0xe5),'description':a178_0x3804cf(0x115),'folders':['.agent'],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x116),'template':a178_0x3804cf(0x113)}]},'antigravity':{'name':'Antigravity','description':a178_0x3804cf(0xec),'folders':['.agent'],'files':[{'type':'file','path':a178_0x3804cf(0x116),'template':'SKILL.md.tpl'}]}};function a178_0xa77e(_0x1caeb3,_0x5862f4){_0x1caeb3=_0x1caeb3-0xe4;const _0x4a6085=a178_0x4a60();let _0xa77ec8=_0x4a6085[_0x1caeb3];return _0xa77ec8;}export const CORE_IDE_LIST=[a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xee),a178_0x3804cf(0xfd),a178_0x3804cf(0xe6),a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xff),a178_0x3804cf(0xfe)];function a178_0x4a60(){const _0x3c39f6=['codex','windsurf','trae','32rHSGIS','.trae/skills/lovrabet/SKILL.md','Trae\x20IDE','Windsurf\x20IDE','cline','agent','Windsurf','opencode','Cline','Trae','.windsurf/workflows/rabetbase.md','3036156cjywPy','.claude/skills/lovrabet/SKILL.md','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','.qoder','OpenCode','.codebuddy','.qoder/rules/rabetbase.md','SKILL.md.tpl','Cursor','通用模板\x20-\x20兜底方案','.agent/skills/lovrabet/SKILL.md','.windsurf','.codebuddy/skills/lovrabet/SKILL.md','Claude\x20Code','其他\x20(通用模板)','cursor','.codex/skills/lovrabet/SKILL.md','.claude','9665593VhktSo','1941390XElKIA','891693IZmqZo','Antigravity\x20IDE','.opencode/skills/lovrabet/SKILL.md','codebuddy','.codex','.trae','2064845TfbTZj','file','.opencode','Codex\x20IDE','33316YEvSyH','claude','.qoder/skills/lovrabet/SKILL.md','.cline','CodeBuddy\x20IDE','qoder','104fIuLUo','1626676asEJcK'];a178_0x4a60=function(){return _0x3c39f6;};return a178_0x4a60();}export const IDE_LIST=['antigravity',a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xee),a178_0x3804cf(0xfd),'cursor',a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xff),a178_0x3804cf(0xfe),a178_0x3804cf(0x105)];export const ALL_CORE_IDES=[a178_0x3804cf(0xe6),'windsurf',a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xfd),a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xee),a178_0x3804cf(0xff)];
1
+ function a178_0x3a34(_0x227cbb,_0x36d86c){_0x227cbb=_0x227cbb-0xea;const _0x43da7f=a178_0x43da();let _0x3a3494=_0x43da7f[_0x227cbb];return _0x3a3494;}const a178_0x496134=a178_0x3a34;(function(_0x4365ed,_0x38f1b7){const _0x5e621c=a178_0x3a34,_0x4420b0=_0x4365ed();while(!![]){try{const _0x49f908=parseInt(_0x5e621c(0xed))/0x1+-parseInt(_0x5e621c(0x101))/0x2+parseInt(_0x5e621c(0x11a))/0x3+-parseInt(_0x5e621c(0x105))/0x4+parseInt(_0x5e621c(0x106))/0x5+parseInt(_0x5e621c(0x107))/0x6+parseInt(_0x5e621c(0xeb))/0x7*(-parseInt(_0x5e621c(0x119))/0x8);if(_0x49f908===_0x38f1b7)break;else _0x4420b0['push'](_0x4420b0['shift']());}catch(_0x31b142){_0x4420b0['push'](_0x4420b0['shift']());}}}(a178_0x43da,0xcdf45));function a178_0x43da(){const _0x24b8be=['Trae\x20IDE','.cline/skills/lovrabet/SKILL.md','.cline','Antigravity\x20IDE','1765614YUhXvh','Cursor','windsurf','Codex','5244940EBStwM','7595400AiZqyZ','4612062LERIae','file','.windsurf','trae','.claude','cline','.cursor','codex','其他\x20(通用模板)','.trae','.claude/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','Antigravity','CodeBuddy\x20IDE','Claude\x20Code','Qoder','SKILL.md.tpl','通用模板\x20-\x20兜底方案','2767112kWFJZG','1710504aNTxTj','.agent/skills/lovrabet/SKILL.md','7XaWrWY','cursor','525595rhFmCz','Windsurf\x20IDE','.qoder/skills/lovrabet/SKILL.md','claude','.cursorrules','Cursor\x20IDE','qoder','opencode','OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','CodeBuddy','Qoder\x20IDE','Windsurf','Cline','codebuddy'];a178_0x43da=function(){return _0x24b8be;};return a178_0x43da();}export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x496134(0x102),'description':a178_0x496134(0xf2),'folders':[a178_0x496134(0xf1),a178_0x496134(0x10d)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xf7),'template':a178_0x496134(0x117)}]},'windsurf':{'name':a178_0x496134(0xfa),'description':a178_0x496134(0xee),'folders':[a178_0x496134(0x109)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xf6),'template':a178_0x496134(0x117)}]},'claude':{'name':'Claude\x20Code','description':a178_0x496134(0x115),'folders':[a178_0x496134(0x10b)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0x111),'template':a178_0x496134(0x117)}]},'cline':{'name':a178_0x496134(0xfb),'description':'Cline\x20IDE','folders':[a178_0x496134(0xff)],'files':[{'type':'file','path':a178_0x496134(0xfe),'template':a178_0x496134(0x117)}]},'codex':{'name':a178_0x496134(0x104),'description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':a178_0x496134(0x108),'path':'.codex/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a178_0x496134(0xf5),'folders':['.opencode'],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a178_0x496134(0x117)}]},'qoder':{'name':a178_0x496134(0x116),'description':a178_0x496134(0xf9),'folders':['.qoder'],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a178_0x496134(0x117)},{'type':a178_0x496134(0x108),'path':a178_0x496134(0xef),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a178_0x496134(0xf8),'description':a178_0x496134(0x114),'folders':['.codebuddy'],'files':[{'type':a178_0x496134(0x108),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a178_0x496134(0x117)}]},'trae':{'name':'Trae','description':a178_0x496134(0xfd),'folders':[a178_0x496134(0x110)],'files':[{'type':'file','path':a178_0x496134(0x112),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x496134(0x10f),'description':a178_0x496134(0x118),'folders':['.agent'],'files':[{'type':'file','path':a178_0x496134(0xea),'template':a178_0x496134(0x117)}]},'antigravity':{'name':a178_0x496134(0x113),'description':a178_0x496134(0x100),'folders':['.agent'],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xea),'template':a178_0x496134(0x117)}]}};export const CORE_IDE_LIST=[a178_0x496134(0xf0),'cline',a178_0x496134(0xfc),'codex',a178_0x496134(0xec),a178_0x496134(0xf4),a178_0x496134(0xf3),a178_0x496134(0x10a),a178_0x496134(0x103)];export const IDE_LIST=['antigravity',a178_0x496134(0xf0),a178_0x496134(0x10c),a178_0x496134(0xfc),a178_0x496134(0x10e),a178_0x496134(0xec),'opencode',a178_0x496134(0xf3),a178_0x496134(0x10a),'windsurf','agent'];export const ALL_CORE_IDES=['cursor',a178_0x496134(0x103),a178_0x496134(0xf0),a178_0x496134(0x10c),a178_0x496134(0x10e),'opencode','qoder',a178_0x496134(0xfc),a178_0x496134(0x10a)];
@@ -1 +1 @@
1
- function a179_0x4d14(){const _0x1054fa=['2698528adKVIT','5ZZfTkN','942060PjzJLD','8986928tvwmyO','552544pgwpWl','939324GNjcSF','530131wCtPHQ','2900244YmpNyw'];a179_0x4d14=function(){return _0x1054fa;};return a179_0x4d14();}(function(_0x4497e3,_0x496d26){const _0x32ed93=a179_0x9689,_0x14febc=_0x4497e3();while(!![]){try{const _0x24e413=-parseInt(_0x32ed93(0x141))/0x1+parseInt(_0x32ed93(0x13f))/0x2+-parseInt(_0x32ed93(0x140))/0x3+-parseInt(_0x32ed93(0x13d))/0x4+-parseInt(_0x32ed93(0x13c))/0x5*(-parseInt(_0x32ed93(0x142))/0x6)+-parseInt(_0x32ed93(0x143))/0x7+parseInt(_0x32ed93(0x13e))/0x8;if(_0x24e413===_0x496d26)break;else _0x14febc['push'](_0x14febc['shift']());}catch(_0x460b0b){_0x14febc['push'](_0x14febc['shift']());}}}(a179_0x4d14,0x663c2));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0x9689(_0x130294,_0x5f1bce){_0x130294=_0x130294-0x13c;const _0x4d14eb=a179_0x4d14();let _0x9689b2=_0x4d14eb[_0x130294];return _0x9689b2;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2e5ed7,_0x56aae0){const _0x5b56f2=a179_0x3b8a,_0x57f3a2=_0x2e5ed7();while(!![]){try{const _0x5e09c3=-parseInt(_0x5b56f2(0x89))/0x1+parseInt(_0x5b56f2(0x84))/0x2*(parseInt(_0x5b56f2(0x82))/0x3)+-parseInt(_0x5b56f2(0x83))/0x4*(parseInt(_0x5b56f2(0x8b))/0x5)+-parseInt(_0x5b56f2(0x88))/0x6+parseInt(_0x5b56f2(0x85))/0x7+parseInt(_0x5b56f2(0x8c))/0x8*(parseInt(_0x5b56f2(0x8a))/0x9)+-parseInt(_0x5b56f2(0x86))/0xa*(-parseInt(_0x5b56f2(0x87))/0xb);if(_0x5e09c3===_0x56aae0)break;else _0x57f3a2['push'](_0x57f3a2['shift']());}catch(_0x1f3b9d){_0x57f3a2['push'](_0x57f3a2['shift']());}}}(a179_0x33ce,0x5f6a6));function a179_0x33ce(){const _0x2bca60=['5589693zbENhF','5395iixcJj','8AKxysT','318315LxLuvp','980mkhKch','4pOcrQy','2035502ntjppd','190HZlNNc','114279iqhDXT','3199260VtvMIM','133077RbJENn'];a179_0x33ce=function(){return _0x2bca60;};return a179_0x33ce();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a179_0x3b8a(_0x231fca,_0x414687){_0x231fca=_0x231fca-0x82;const _0x33ce9c=a179_0x33ce();let _0x3b8a43=_0x33ce9c[_0x231fca];return _0x3b8a43;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a180_0x4a68(_0xc785eb,_0x386f9c){_0xc785eb=_0xc785eb-0x19d;const _0x1bc0a3=a180_0x1bc0();let _0x4a6824=_0x1bc0a3[_0xc785eb];return _0x4a6824;}(function(_0x2ee5d9,_0x48a4d6){const _0x3bc989=a180_0x4a68,_0xe011ce=_0x2ee5d9();while(!![]){try{const _0x147750=parseInt(_0x3bc989(0x1a0))/0x1*(-parseInt(_0x3bc989(0x1a9))/0x2)+parseInt(_0x3bc989(0x1aa))/0x3*(-parseInt(_0x3bc989(0x1a4))/0x4)+parseInt(_0x3bc989(0x1a1))/0x5+-parseInt(_0x3bc989(0x1a3))/0x6+parseInt(_0x3bc989(0x1ab))/0x7+-parseInt(_0x3bc989(0x1a7))/0x8*(parseInt(_0x3bc989(0x1ad))/0x9)+parseInt(_0x3bc989(0x19e))/0xa*(parseInt(_0x3bc989(0x19d))/0xb);if(_0x147750===_0x48a4d6)break;else _0xe011ce['push'](_0xe011ce['shift']());}catch(_0x4efddd){_0xe011ce['push'](_0xe011ce['shift']());}}}(a180_0x1bc0,0xae8ae));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0x1bc0(){const _0x362f2=['cli','34iImcXw','237LUPLTZ','2550954nXbJLP','/config/index.json','368523XfAkUV','application/json','20931735UTsdmn','10FSfWsO','/config.json','22818sNwbuv','3389245VpgBnb','now','1190172LmhypA','39700LqaJFM','stableVersion','sdk','168cMDvpl'];a180_0x1bc0=function(){return _0x362f2;};return a180_0x1bc0();}export async function fetchCdnConfig(){const _0x547d7a=a180_0x4a68,_0x58d95a=getTemplateBaseUrl(),_0x538812=[_0x58d95a+_0x547d7a(0x19f),_0x58d95a+_0x547d7a(0x1ac)];for(const _0xccce00 of _0x538812){try{const _0x5efa65=await fetch(_0xccce00,{'headers':{'Accept':_0x547d7a(0x1ae)}});if(!_0x5efa65['ok'])continue;const _0x220941=await _0x5efa65['json']();if(!_0x220941[_0x547d7a(0x1a8)]?.[_0x547d7a(0x1a5)]||!_0x220941[_0x547d7a(0x1a6)]?.['node']?.[_0x547d7a(0x1a5)])continue;return _0x220941;}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 _0x469d02=a180_0x4a68,_0x24a160=Date[_0x469d02(0x1a2)]();if(hasCachedConfig){const _0x1d5178=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x24a160-cacheTime<_0x1d5178)return cachedConfig;}const _0x15f784=await fetchCdnConfig();return cachedConfig=_0x15f784,cacheTime=_0x24a160,hasCachedConfig=!![],_0x15f784;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2ba09e,_0x350ea1){const _0x49d318=a180_0x24bc,_0x1351d7=_0x2ba09e();while(!![]){try{const _0x2ea3b5=-parseInt(_0x49d318(0x158))/0x1+parseInt(_0x49d318(0x150))/0x2*(-parseInt(_0x49d318(0x155))/0x3)+parseInt(_0x49d318(0x157))/0x4+-parseInt(_0x49d318(0x15a))/0x5*(-parseInt(_0x49d318(0x156))/0x6)+-parseInt(_0x49d318(0x14e))/0x7+-parseInt(_0x49d318(0x154))/0x8+parseInt(_0x49d318(0x159))/0x9;if(_0x2ea3b5===_0x350ea1)break;else _0x1351d7['push'](_0x1351d7['shift']());}catch(_0x3dadce){_0x1351d7['push'](_0x1351d7['shift']());}}}(a180_0x2097,0x980bf));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3775d3=a180_0x24bc,_0x96c5e9=getTemplateBaseUrl(),_0x460f28=[_0x96c5e9+_0x3775d3(0x14b),_0x96c5e9+_0x3775d3(0x14a)];for(const _0x46944c of _0x460f28){try{const _0x143792=await fetch(_0x46944c,{'headers':{'Accept':_0x3775d3(0x152)}});if(!_0x143792['ok'])continue;const _0x47a268=await _0x143792[_0x3775d3(0x14d)]();if(!_0x47a268[_0x3775d3(0x14f)]?.[_0x3775d3(0x151)]||!_0x47a268[_0x3775d3(0x14c)]?.[_0x3775d3(0x153)]?.[_0x3775d3(0x151)])continue;return _0x47a268;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a180_0x2097(){const _0x33c3bf=['/config.json','sdk','json','3633196hBBEIB','cli','28426PvoshP','stableVersion','application/json','node','152648HFlsps','126MazJwe','2629806qgnZIQ','3455836GNLYrZ','928694tyYqWj','12458448YznXGt','5yzLaZW','now','/config/index.json'];a180_0x2097=function(){return _0x33c3bf;};return a180_0x2097();}let hasCachedConfig=![];function a180_0x24bc(_0x509480,_0x436253){_0x509480=_0x509480-0x149;const _0x209728=a180_0x2097();let _0x24bc4c=_0x209728[_0x509480];return _0x24bc4c;}export async function getCdnConfig(){const _0x154857=a180_0x24bc,_0x379496=Date[_0x154857(0x149)]();if(hasCachedConfig){const _0x5ea68d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x379496-cacheTime<_0x5ea68d)return cachedConfig;}const _0xf5a033=await fetchCdnConfig();return cachedConfig=_0xf5a033,cacheTime=_0x379496,hasCachedConfig=!![],_0xf5a033;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a181_0x198c30=a181_0x2027;(function(_0x4b7f5f,_0x174927){const _0x2fb844=a181_0x2027,_0x1e3d93=_0x4b7f5f();while(!![]){try{const _0x1b90bf=-parseInt(_0x2fb844(0x208))/0x1+parseInt(_0x2fb844(0x1f5))/0x2*(-parseInt(_0x2fb844(0x20f))/0x3)+parseInt(_0x2fb844(0x214))/0x4+parseInt(_0x2fb844(0x1fe))/0x5*(parseInt(_0x2fb844(0x206))/0x6)+parseInt(_0x2fb844(0x212))/0x7*(parseInt(_0x2fb844(0x1ef))/0x8)+parseInt(_0x2fb844(0x1f0))/0x9+-parseInt(_0x2fb844(0x20a))/0xa;if(_0x1b90bf===_0x174927)break;else _0x1e3d93['push'](_0x1e3d93['shift']());}catch(_0x1e0916){_0x1e3d93['push'](_0x1e3d93['shift']());}}}(a181_0x2523,0xe020a));import a181_0x4a4904 from'node:fs';import a181_0x178ec0 from'node:path';import a181_0x30d567 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x198c30(0x203);function isNonNumericVersion(_0x5b05f5){const _0x535388=a181_0x198c30,_0x180608=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x180608[_0x535388(0x200)](_0x3712ae=>_0x3712ae[_0x535388(0x1f4)](_0x5b05f5));}function a181_0x2027(_0x51c716,_0x4a823b){_0x51c716=_0x51c716-0x1ee;const _0x2523d5=a181_0x2523();let _0x20274f=_0x2523d5[_0x51c716];return _0x20274f;}function getInstalledVersion(_0x26fe96,_0x46a06c){const _0x2e342f=a181_0x198c30;try{const _0x33a66f=a181_0x178ec0[_0x2e342f(0x1f1)](_0x26fe96,_0x2e342f(0x1f3),_0x46a06c,'package.json');if(a181_0x4a4904[_0x2e342f(0x213)](_0x33a66f)){const _0x29ba22=JSON[_0x2e342f(0x1fc)](a181_0x4a4904[_0x2e342f(0x204)](_0x33a66f,_0x2e342f(0x20d)));return _0x29ba22[_0x2e342f(0x1ff)]||null;}}catch{}return null;}function a181_0x2523(){const _0x3235d0=['npm\x20install\x20','all','35sZQCBD','existsSync','4327972TRBuUB','stableVersion','\x1b[1m','2245328DdVXrn','13394079WRvAat','join','sdk','node_modules','test','16oaYhDZ','\x20\x20\x20Current\x20version:\x20','dependencies','coerce','\x1b[0m','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','parse','node','10bozkHT','version','some','@lovrabet/sdk','package.json','1.2.0','readFileSync','log','3388074dKdUKp','utf8','428239hiwKsv','packageName','28087750hPzOzi','devDependencies','↪\x20SDK\x20update\x20available','utf-8','\x1b[33m','355452AaSDQV'];a181_0x2523=function(){return _0x3235d0;};return a181_0x2523();}async function getSdkStableVersion(){const _0x42d0f2=a181_0x198c30;try{const _0x27b42d=await getCdnConfig();return _0x27b42d?.[_0x42d0f2(0x1f2)]?.[_0x42d0f2(0x1fd)]?.[_0x42d0f2(0x215)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5d8745=a181_0x198c30;try{const _0x5a3543=await getCdnConfig();return _0x5a3543?.['sdk']?.[_0x5d8745(0x1fd)]?.['packageName']||_0x5d8745(0x201);}catch{return _0x5d8745(0x201);}}export async function checkSdkVersion(_0x3eca67){const _0x30a3c9=a181_0x198c30,_0x3331e6=a181_0x178ec0['join'](_0x3eca67,_0x30a3c9(0x202)),[_0x387c76,_0x1b7717]=await Promise[_0x30a3c9(0x211)]([getSdkStableVersion(),getSdkPackageName()]),_0xd2824e=_0x387c76||FALLBACK_MIN_SDK_VERSION;if(!a181_0x4a4904[_0x30a3c9(0x213)](_0x3331e6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd2824e,'packageName':_0x1b7717,'stableVersion':_0x387c76};try{const _0x1aa9a1=JSON[_0x30a3c9(0x1fc)](a181_0x4a4904[_0x30a3c9(0x204)](_0x3331e6,_0x30a3c9(0x207))),_0x18962e=_0x1aa9a1[_0x30a3c9(0x1f7)]||{},_0x82b41f=_0x1aa9a1[_0x30a3c9(0x20b)]||{},_0x393dd2=_0x18962e[_0x1b7717]||_0x82b41f[_0x1b7717];if(!_0x393dd2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd2824e,'packageName':_0x1b7717,'stableVersion':_0x387c76};let _0x2ad5d1=getInstalledVersion(_0x3eca67,_0x1b7717);!_0x2ad5d1&&(_0x2ad5d1=_0x393dd2);if(isNonNumericVersion(_0x393dd2))return{'installed':!![],'version':_0x2ad5d1,'needsUpgrade':![],'minVersion':_0xd2824e,'packageName':_0x1b7717,'stableVersion':_0x387c76};const _0x326900=a181_0x30d567[_0x30a3c9(0x1f8)](_0x2ad5d1),_0x3e395d=a181_0x30d567[_0x30a3c9(0x1f8)](_0xd2824e),_0x2a209c=_0x326900&&_0x3e395d?a181_0x30d567['lt'](_0x326900,_0x3e395d):![];return{'installed':!![],'version':_0x2ad5d1,'needsUpgrade':_0x2a209c,'minVersion':_0xd2824e,'packageName':_0x1b7717,'stableVersion':_0x387c76};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd2824e,'packageName':_0x1b7717,'stableVersion':_0x387c76};}}export function checkSdkVersionSync(_0xce46da){const _0x31b60b=a181_0x198c30,_0x44b402=a181_0x178ec0[_0x31b60b(0x1f1)](_0xce46da,_0x31b60b(0x202)),_0x1e80a5=_0x31b60b(0x201);if(!a181_0x4a4904['existsSync'](_0x44b402))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1e80a5,'stableVersion':null};try{const _0x12a536=JSON[_0x31b60b(0x1fc)](a181_0x4a4904[_0x31b60b(0x204)](_0x44b402,_0x31b60b(0x207))),_0x54f534=_0x12a536[_0x31b60b(0x1f7)]||{},_0x524322=_0x12a536[_0x31b60b(0x20b)]||{},_0x4b768f=_0x54f534[_0x1e80a5]||_0x524322[_0x1e80a5];if(!_0x4b768f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1e80a5,'stableVersion':null};let _0x50679e=getInstalledVersion(_0xce46da,_0x1e80a5);!_0x50679e&&(_0x50679e=_0x4b768f);if(isNonNumericVersion(_0x4b768f))return{'installed':!![],'version':_0x50679e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1e80a5,'stableVersion':null};const _0x445bc7=a181_0x30d567['coerce'](_0x50679e),_0x4a6640=_0x445bc7?a181_0x30d567['lt'](_0x445bc7,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x50679e,'needsUpgrade':_0x4a6640,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1e80a5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1e80a5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x30d970){const _0x2824e4=a181_0x198c30;if(!_0x30d970[_0x2824e4(0x1fb)])return;const _0x317345=_0x2824e4(0x20e),_0x5a67d1=_0x2824e4(0x1f9),_0x8e4ac6=_0x2824e4(0x1ee),_0x45366e=_0x30d970[_0x2824e4(0x209)]||_0x2824e4(0x201),_0x301696=_0x30d970[_0x2824e4(0x215)]||_0x30d970['minVersion'],_0x2daf65=_0x2824e4(0x210)+_0x45366e+'@'+(_0x301696||'latest');console[_0x2824e4(0x205)](),console['log'](''+_0x317345+_0x8e4ac6+_0x2824e4(0x20c)+_0x5a67d1),console[_0x2824e4(0x205)](_0x317345+_0x2824e4(0x1f6)+_0x45366e+'@'+_0x30d970[_0x2824e4(0x1ff)]+_0x5a67d1),console['log'](_0x317345+_0x2824e4(0x1fa)+_0x301696+_0x5a67d1),console[_0x2824e4(0x205)](_0x317345+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2daf65+_0x5a67d1),console[_0x2824e4(0x205)]();}
1
+ const a181_0x2c862b=a181_0x1a7b;(function(_0x2216c3,_0x347b1f){const _0x5282c5=a181_0x1a7b,_0x57dc49=_0x2216c3();while(!![]){try{const _0x37f45f=parseInt(_0x5282c5(0xa0))/0x1+-parseInt(_0x5282c5(0xc2))/0x2+parseInt(_0x5282c5(0xba))/0x3*(-parseInt(_0x5282c5(0xb5))/0x4)+-parseInt(_0x5282c5(0xb0))/0x5*(-parseInt(_0x5282c5(0xa9))/0x6)+parseInt(_0x5282c5(0xac))/0x7*(-parseInt(_0x5282c5(0xb6))/0x8)+-parseInt(_0x5282c5(0xa4))/0x9*(-parseInt(_0x5282c5(0x9f))/0xa)+-parseInt(_0x5282c5(0xc3))/0xb;if(_0x37f45f===_0x347b1f)break;else _0x57dc49['push'](_0x57dc49['shift']());}catch(_0x58b3b9){_0x57dc49['push'](_0x57dc49['shift']());}}}(a181_0x5592,0x8ad13));import a181_0x1cd44d from'node:fs';import a181_0xeb97a9 from'node:path';import a181_0x25dea1 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x2c862b(0xc0);function a181_0x1a7b(_0xa015d0,_0x4b126c){_0xa015d0=_0xa015d0-0x9e;const _0x5592e7=a181_0x5592();let _0x1a7b68=_0x5592e7[_0xa015d0];return _0x1a7b68;}function isNonNumericVersion(_0x17e5da){const _0xa00d46=a181_0x2c862b,_0x3ee8bc=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3ee8bc[_0xa00d46(0xbb)](_0x263f3b=>_0x263f3b[_0xa00d46(0xa1)](_0x17e5da));}function getInstalledVersion(_0x1f69c9,_0x3a6aa7){const _0x14ccc1=a181_0x2c862b;try{const _0x28792a=a181_0xeb97a9[_0x14ccc1(0xb4)](_0x1f69c9,_0x14ccc1(0xbf),_0x3a6aa7,_0x14ccc1(0xb3));if(a181_0x1cd44d[_0x14ccc1(0xad)](_0x28792a)){const _0x41b4e1=JSON[_0x14ccc1(0xb7)](a181_0x1cd44d[_0x14ccc1(0x9e)](_0x28792a,'utf-8'));return _0x41b4e1[_0x14ccc1(0xb1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x38d9f4=a181_0x2c862b;try{const _0x44ff36=await getCdnConfig();return _0x44ff36?.[_0x38d9f4(0xbc)]?.[_0x38d9f4(0xaa)]?.[_0x38d9f4(0xb2)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x585278=a181_0x2c862b;try{const _0x496a73=await getCdnConfig();return _0x496a73?.['sdk']?.[_0x585278(0xaa)]?.['packageName']||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}function a181_0x5592(){const _0x5829d2=['log','3jaILvK','some','sdk','latest','coerce','node_modules','1.2.0','devDependencies','1058860wzqUka','2298835Giquas','needsUpgrade','readFileSync','4763080wyvaQn','727161ILzfYz','test','↪\x20SDK\x20update\x20available','minVersion','9RrLVMc','packageName','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','@lovrabet/sdk','6wuoSVK','node','utf8','363013DyXPXN','existsSync','\x20\x20\x20Current\x20version:\x20','all','4840225RBsGRz','version','stableVersion','package.json','join','761348IHpurc','104LjkHCX','parse','\x1b[33m'];a181_0x5592=function(){return _0x5829d2;};return a181_0x5592();}export async function checkSdkVersion(_0x3ff0cf){const _0x13f49c=a181_0x2c862b,_0x103e61=a181_0xeb97a9[_0x13f49c(0xb4)](_0x3ff0cf,_0x13f49c(0xb3)),[_0x575abf,_0x11514d]=await Promise[_0x13f49c(0xaf)]([getSdkStableVersion(),getSdkPackageName()]),_0x789c6=_0x575abf||FALLBACK_MIN_SDK_VERSION;if(!a181_0x1cd44d[_0x13f49c(0xad)](_0x103e61))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};try{const _0xa48ab0=JSON[_0x13f49c(0xb7)](a181_0x1cd44d[_0x13f49c(0x9e)](_0x103e61,_0x13f49c(0xab))),_0x28563b=_0xa48ab0['dependencies']||{},_0x1aa602=_0xa48ab0[_0x13f49c(0xc1)]||{},_0x5c180f=_0x28563b[_0x11514d]||_0x1aa602[_0x11514d];if(!_0x5c180f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};let _0x1f8c24=getInstalledVersion(_0x3ff0cf,_0x11514d);!_0x1f8c24&&(_0x1f8c24=_0x5c180f);if(isNonNumericVersion(_0x5c180f))return{'installed':!![],'version':_0x1f8c24,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};const _0x46176b=a181_0x25dea1['coerce'](_0x1f8c24),_0x269d0a=a181_0x25dea1[_0x13f49c(0xbe)](_0x789c6),_0x169378=_0x46176b&&_0x269d0a?a181_0x25dea1['lt'](_0x46176b,_0x269d0a):![];return{'installed':!![],'version':_0x1f8c24,'needsUpgrade':_0x169378,'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x789c6,'packageName':_0x11514d,'stableVersion':_0x575abf};}}export function checkSdkVersionSync(_0x4ae43c){const _0x31a446=a181_0x2c862b,_0x4dad96=a181_0xeb97a9[_0x31a446(0xb4)](_0x4ae43c,_0x31a446(0xb3)),_0x37e4ac='@lovrabet/sdk';if(!a181_0x1cd44d['existsSync'](_0x4dad96))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};try{const _0x3f029c=JSON[_0x31a446(0xb7)](a181_0x1cd44d[_0x31a446(0x9e)](_0x4dad96,_0x31a446(0xab))),_0x11abc4=_0x3f029c['dependencies']||{},_0x4ad820=_0x3f029c['devDependencies']||{},_0x2b1cfe=_0x11abc4[_0x37e4ac]||_0x4ad820[_0x37e4ac];if(!_0x2b1cfe)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};let _0x9ae267=getInstalledVersion(_0x4ae43c,_0x37e4ac);!_0x9ae267&&(_0x9ae267=_0x2b1cfe);if(isNonNumericVersion(_0x2b1cfe))return{'installed':!![],'version':_0x9ae267,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};const _0x460bb3=a181_0x25dea1['coerce'](_0x9ae267),_0x36f816=_0x460bb3?a181_0x25dea1['lt'](_0x460bb3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x9ae267,'needsUpgrade':_0x36f816,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x37e4ac,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3f498a){const _0x4b5313=a181_0x2c862b;if(!_0x3f498a[_0x4b5313(0xc4)])return;const _0x56d662=_0x4b5313(0xb8),_0x4114a3='\x1b[0m',_0x2e7e08='\x1b[1m',_0x5f21d8=_0x3f498a[_0x4b5313(0xa5)]||_0x4b5313(0xa8),_0x38fecb=_0x3f498a[_0x4b5313(0xb2)]||_0x3f498a[_0x4b5313(0xa3)],_0x3aaf61='npm\x20install\x20'+_0x5f21d8+'@'+(_0x38fecb||_0x4b5313(0xbd));console[_0x4b5313(0xb9)](),console[_0x4b5313(0xb9)](''+_0x56d662+_0x2e7e08+_0x4b5313(0xa2)+_0x4114a3),console[_0x4b5313(0xb9)](_0x56d662+_0x4b5313(0xae)+_0x5f21d8+'@'+_0x3f498a['version']+_0x4114a3),console['log'](_0x56d662+_0x4b5313(0xa7)+_0x38fecb+_0x4114a3),console[_0x4b5313(0xb9)](_0x56d662+_0x4b5313(0xa6)+_0x3aaf61+_0x4114a3),console['log']();}
@@ -1 +1 @@
1
- (function(_0x585031,_0x325b22){const _0x47b713=a182_0x1f37,_0x4c20fe=_0x585031();while(!![]){try{const _0x3618e9=parseInt(_0x47b713(0x1e7))/0x1+-parseInt(_0x47b713(0x1f2))/0x2*(parseInt(_0x47b713(0x1da))/0x3)+parseInt(_0x47b713(0x1ea))/0x4*(-parseInt(_0x47b713(0x1df))/0x5)+-parseInt(_0x47b713(0x205))/0x6*(parseInt(_0x47b713(0x1f5))/0x7)+parseInt(_0x47b713(0x1dd))/0x8*(parseInt(_0x47b713(0x1db))/0x9)+-parseInt(_0x47b713(0x1e9))/0xa*(parseInt(_0x47b713(0x1f3))/0xb)+parseInt(_0x47b713(0x1ee))/0xc*(parseInt(_0x47b713(0x1e8))/0xd);if(_0x3618e9===_0x325b22)break;else _0x4c20fe['push'](_0x4c20fe['shift']());}catch(_0x488882){_0x4c20fe['push'](_0x4c20fe['shift']());}}}(a182_0x3780,0x326d0));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a182_0x5e3d47 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a182_0x1f37(_0x3343a5,_0x4ee198){_0x3343a5=_0x3343a5-0x1da;const _0x3780e8=a182_0x3780();let _0x1f3767=_0x3780e8[_0x3343a5];return _0x1f3767;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x3341ab){const _0x21b88b=a182_0x1f37,_0x5a2c19=_0x3341ab[_0x21b88b(0x1f9)]||_0x21b88b(0x1fc);return _0x21b88b(0x1ef)+NPM_PACKAGE_NAME+'@'+_0x5a2c19;}function getCurrentCliVersion(){const _0x5c23ea=a182_0x1f37;try{const _0x10910f=fileURLToPath(import.meta.url),_0x829978=resolve(dirname(_0x10910f),_0x5c23ea(0x207)),_0x1d9b83=resolve(_0x829978,_0x5c23ea(0x206)),_0x4d8060=JSON[_0x5c23ea(0x1e3)](readFileSync(_0x1d9b83,_0x5c23ea(0x1e5)));return _0x4d8060[_0x5c23ea(0x1fa)]||_0x5c23ea(0x1e0);}catch{return _0x5c23ea(0x1e0);}}export async function checkCliVersion(){const _0x15aede=a182_0x1f37,_0x3d7237=getCurrentCliVersion(),_0x4ec925=await getCliVersionPolicy(),_0x3cfe7b=_0x4ec925?.[_0x15aede(0x1f9)]||null,_0x491b57=_0x4ec925?.[_0x15aede(0x202)]||null;let _0x2f7d04=![],_0x5592b3=![];const _0x16138d=a182_0x5e3d47['coerce'](_0x3d7237);if(_0x16138d&&_0x3cfe7b)try{const _0xa6c2e0=a182_0x5e3d47[_0x15aede(0x1f8)](_0x3cfe7b);if(_0xa6c2e0)_0x2f7d04=a182_0x5e3d47['lt'](_0x16138d,_0xa6c2e0);}catch{}if(_0x16138d&&_0x491b57)try{const _0x47c0c6=a182_0x5e3d47[_0x15aede(0x1f8)](_0x491b57);if(_0x47c0c6)_0x5592b3=a182_0x5e3d47['lt'](_0x16138d,_0x47c0c6);}catch{}return _0x5592b3&&(_0x2f7d04=!![]),{'currentVersion':_0x3d7237,'stableVersion':_0x3cfe7b,'minimumVersion':_0x491b57,'needsUpgrade':_0x2f7d04,'belowMinimum':_0x5592b3,'isPreRelease':![],'upgradeMessage':_0x4ec925?.[_0x15aede(0x204)],'minimumVersionMessage':_0x4ec925?.[_0x15aede(0x1de)]};}function a182_0x3780(){const _0x573824=['\x1b[33m','1156656BeLxLm','minimumVersionMessage','174015lphRmZ','1.0.0','Current\x20version:\x20','\x1b[31m','parse','\x20\x20\x20Minimum\x20required:\x20','utf-8','needsUpgrade','313397eIvAxe','234SZoqiR','894500ugjBdi','36prnsFb','\x20\x20\x20Current\x20CLI\x20version:\x20','Upgrade\x20command:\x20','filter','469332FsAkFt','npm\x20install\x20-g\x20','Minimum\x20required:\x20','\x20\x20\x20Recommended\x20stable:\x20','2racOkn','44oDZNkB','\x20\x20\x20Stable\x20version:\x20','7kTrLNJ','join','log','coerce','stableVersion','version','belowMinimum','latest','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20','currentVersion','\x20\x20\x20Upgrade\x20command:\x20','validation','minimumVersion','\x1b[1m','upgradeMessage','1825962ixCals','package.json','../..','373983otzaRY','18CiZTnS'];a182_0x3780=function(){return _0x573824;};return a182_0x3780();}export function printCliUpgradeWarning(_0x2ea9ab){const _0x54f468=a182_0x1f37;if(!_0x2ea9ab[_0x54f468(0x1e6)]&&!_0x2ea9ab[_0x54f468(0x1fb)])return;const _0x321579=_0x54f468(0x1e2),_0xbf1fe5=_0x54f468(0x1dc),_0x578f4a='\x1b[0m',_0x28c755=_0x54f468(0x203),_0x5027ee=getCliUpgradeCommand(_0x2ea9ab);console[_0x54f468(0x1f7)](),_0x2ea9ab[_0x54f468(0x1fb)]?(console[_0x54f468(0x1f7)](''+_0x321579+_0x28c755+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x578f4a),console[_0x54f468(0x1f7)](_0x321579+_0x54f468(0x1eb)+_0x2ea9ab[_0x54f468(0x1ff)]+_0x578f4a),_0x2ea9ab[_0x54f468(0x202)]&&console[_0x54f468(0x1f7)](_0x321579+_0x54f468(0x1e4)+_0x2ea9ab[_0x54f468(0x202)]+_0x578f4a),_0x2ea9ab['stableVersion']&&_0x2ea9ab[_0x54f468(0x1f9)]!==_0x2ea9ab[_0x54f468(0x202)]&&console['log'](_0x321579+_0x54f468(0x1f1)+_0x2ea9ab[_0x54f468(0x1f9)]+_0x578f4a),_0x2ea9ab['minimumVersionMessage']&&console[_0x54f468(0x1f7)](_0x321579+_0x54f468(0x1fe)+_0x2ea9ab['minimumVersionMessage']+_0x578f4a),console[_0x54f468(0x1f7)](_0x321579+_0x54f468(0x200)+_0x5027ee+_0x578f4a)):(console[_0x54f468(0x1f7)](''+_0xbf1fe5+_0x28c755+'↪\x20New\x20version\x20available'+_0x578f4a),console[_0x54f468(0x1f7)](_0xbf1fe5+_0x54f468(0x1eb)+_0x2ea9ab[_0x54f468(0x1ff)]+_0x578f4a),console[_0x54f468(0x1f7)](_0xbf1fe5+_0x54f468(0x1f4)+_0x2ea9ab[_0x54f468(0x1f9)]+_0x578f4a),_0x2ea9ab[_0x54f468(0x204)]&&console[_0x54f468(0x1f7)](_0xbf1fe5+_0x54f468(0x1fe)+_0x2ea9ab[_0x54f468(0x204)]+_0x578f4a),console['log'](_0xbf1fe5+_0x54f468(0x200)+_0x5027ee+_0x578f4a)),console[_0x54f468(0x1f7)]();}export function assertCliVersionSupported(_0x4d8445){const _0x1e8e65=a182_0x1f37;if(!_0x4d8445[_0x1e8e65(0x1fb)])return;const _0x2a7382=[_0x4d8445['minimumVersionMessage'],_0x1e8e65(0x1e1)+_0x4d8445[_0x1e8e65(0x1ff)],_0x4d8445[_0x1e8e65(0x202)]?_0x1e8e65(0x1f0)+_0x4d8445[_0x1e8e65(0x202)]:null,_0x1e8e65(0x1ec)+getCliUpgradeCommand(_0x4d8445)][_0x1e8e65(0x1ed)](Boolean)[_0x1e8e65(0x1f6)]('\x0a');throw CliErrors[_0x1e8e65(0x201)](_0x1e8e65(0x1fd),_0x2a7382);}
1
+ (function(_0x1637dd,_0x1038fb){const _0x1be66d=a182_0x95de,_0x27e067=_0x1637dd();while(!![]){try{const _0x7f00d=-parseInt(_0x1be66d(0xe9))/0x1*(parseInt(_0x1be66d(0xf6))/0x2)+-parseInt(_0x1be66d(0xec))/0x3+-parseInt(_0x1be66d(0xdd))/0x4*(-parseInt(_0x1be66d(0xd0))/0x5)+-parseInt(_0x1be66d(0xe1))/0x6*(parseInt(_0x1be66d(0xdf))/0x7)+parseInt(_0x1be66d(0xe5))/0x8+parseInt(_0x1be66d(0xf7))/0x9+parseInt(_0x1be66d(0xe6))/0xa;if(_0x7f00d===_0x1038fb)break;else _0x27e067['push'](_0x27e067['shift']());}catch(_0x3e3d54){_0x27e067['push'](_0x27e067['shift']());}}}(a182_0x53e6,0x6815c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a182_0x95de(_0x3e2c7e,_0x183b79){_0x3e2c7e=_0x3e2c7e-0xcf;const _0x53e68b=a182_0x53e6();let _0x95de22=_0x53e68b[_0x3e2c7e];return _0x95de22;}import{fileURLToPath}from'node:url';import a182_0x1468b0 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a182_0x53e6(){const _0x4b65ad=['\x1b[1m','minimumVersion','stableVersion','Upgrade\x20command:\x20','1209412oXAdTf','log','14frRuGh','minimumVersionMessage','1933680LBimQB','latest','\x20\x20\x20Recommended\x20stable:\x20','validation','4655968rgXcYS','4709120QVRcwO','needsUpgrade','currentVersion','1vsqwUc','\x20\x20\x20Minimum\x20required:\x20','\x1b[0m','869745HcOSVz','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20version:\x20','\x1b[33m','Minimum\x20required:\x20','belowMinimum','upgradeMessage','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','../..','1275308yHAheF','5788800idRErF','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Upgrade\x20command:\x20','version','5CMmRpi','npm\x20install\x20-g\x20','filter','utf-8','coerce','1.0.0','\x1b[31m','↪\x20New\x20version\x20available','\x20\x20\x20'];a182_0x53e6=function(){return _0x4b65ad;};return a182_0x53e6();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5a67e0){const _0x2ce82e=a182_0x95de,_0x13fec7=_0x5a67e0['stableVersion']||_0x2ce82e(0xe2);return _0x2ce82e(0xd1)+NPM_PACKAGE_NAME+'@'+_0x13fec7;}function getCurrentCliVersion(){const _0x504a73=a182_0x95de;try{const _0x2bf4a9=fileURLToPath(import.meta.url),_0x56d439=resolve(dirname(_0x2bf4a9),_0x504a73(0xf5)),_0x3d0730=resolve(_0x56d439,'package.json'),_0x5489f9=JSON['parse'](readFileSync(_0x3d0730,_0x504a73(0xd3)));return _0x5489f9[_0x504a73(0xcf)]||_0x504a73(0xd5);}catch{return _0x504a73(0xd5);}}export async function checkCliVersion(){const _0x3b1cc1=a182_0x95de,_0x3f18e4=getCurrentCliVersion(),_0xe7597=await getCliVersionPolicy(),_0xe0b0ad=_0xe7597?.[_0x3b1cc1(0xdb)]||null,_0x40684e=_0xe7597?.['minimumVersion']||null;let _0x53fe60=![],_0x2067cb=![];const _0x506042=a182_0x1468b0[_0x3b1cc1(0xd4)](_0x3f18e4);if(_0x506042&&_0xe0b0ad)try{const _0x107d2e=a182_0x1468b0[_0x3b1cc1(0xd4)](_0xe0b0ad);if(_0x107d2e)_0x53fe60=a182_0x1468b0['lt'](_0x506042,_0x107d2e);}catch{}if(_0x506042&&_0x40684e)try{const _0x57ec0e=a182_0x1468b0[_0x3b1cc1(0xd4)](_0x40684e);if(_0x57ec0e)_0x2067cb=a182_0x1468b0['lt'](_0x506042,_0x57ec0e);}catch{}return _0x2067cb&&(_0x53fe60=!![]),{'currentVersion':_0x3f18e4,'stableVersion':_0xe0b0ad,'minimumVersion':_0x40684e,'needsUpgrade':_0x53fe60,'belowMinimum':_0x2067cb,'isPreRelease':![],'upgradeMessage':_0xe7597?.['upgradeMessage'],'minimumVersionMessage':_0xe7597?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x5b0edc){const _0x17d220=a182_0x95de;if(!_0x5b0edc[_0x17d220(0xe7)]&&!_0x5b0edc[_0x17d220(0xf1)])return;const _0x40d572=_0x17d220(0xd6),_0x471ae7=_0x17d220(0xef),_0x5b4d5d=_0x17d220(0xeb),_0x402929=_0x17d220(0xd9),_0x5184b3=getCliUpgradeCommand(_0x5b0edc);console[_0x17d220(0xde)](),_0x5b0edc[_0x17d220(0xf1)]?(console[_0x17d220(0xde)](''+_0x40d572+_0x402929+_0x17d220(0xed)+_0x5b4d5d),console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xf4)+_0x5b0edc[_0x17d220(0xe8)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xda)]&&console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xea)+_0x5b0edc[_0x17d220(0xda)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xdb)]&&_0x5b0edc[_0x17d220(0xdb)]!==_0x5b0edc[_0x17d220(0xda)]&&console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xe3)+_0x5b0edc[_0x17d220(0xdb)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xe0)]&&console['log'](_0x40d572+_0x17d220(0xd8)+_0x5b0edc[_0x17d220(0xe0)]+_0x5b4d5d),console[_0x17d220(0xde)](_0x40d572+_0x17d220(0xf9)+_0x5184b3+_0x5b4d5d)):(console[_0x17d220(0xde)](''+_0x471ae7+_0x402929+_0x17d220(0xd7)+_0x5b4d5d),console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xf4)+_0x5b0edc[_0x17d220(0xe8)]+_0x5b4d5d),console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xf3)+_0x5b0edc[_0x17d220(0xdb)]+_0x5b4d5d),_0x5b0edc[_0x17d220(0xf2)]&&console[_0x17d220(0xde)](_0x471ae7+_0x17d220(0xd8)+_0x5b0edc[_0x17d220(0xf2)]+_0x5b4d5d),console['log'](_0x471ae7+_0x17d220(0xf9)+_0x5184b3+_0x5b4d5d)),console['log']();}export function assertCliVersionSupported(_0x471ca9){const _0x2de8ce=a182_0x95de;if(!_0x471ca9['belowMinimum'])return;const _0x2616bb=[_0x471ca9[_0x2de8ce(0xe0)],_0x2de8ce(0xee)+_0x471ca9[_0x2de8ce(0xe8)],_0x471ca9[_0x2de8ce(0xda)]?_0x2de8ce(0xf0)+_0x471ca9[_0x2de8ce(0xda)]:null,_0x2de8ce(0xdc)+getCliUpgradeCommand(_0x471ca9)][_0x2de8ce(0xd2)](Boolean)['join']('\x0a');throw CliErrors[_0x2de8ce(0xe4)](_0x2de8ce(0xf8),_0x2616bb);}
@@ -1 +1 @@
1
- (function(_0x563948,_0x376a67){const _0x3cd75f=a183_0x4d97,_0x2e6377=_0x563948();while(!![]){try{const _0xd54cf3=parseInt(_0x3cd75f(0x160))/0x1+parseInt(_0x3cd75f(0x15f))/0x2+parseInt(_0x3cd75f(0x152))/0x3+parseInt(_0x3cd75f(0x14d))/0x4+parseInt(_0x3cd75f(0x15a))/0x5+parseInt(_0x3cd75f(0x151))/0x6*(-parseInt(_0x3cd75f(0x15d))/0x7)+-parseInt(_0x3cd75f(0x157))/0x8;if(_0xd54cf3===_0x376a67)break;else _0x2e6377['push'](_0x2e6377['shift']());}catch(_0x44d2b4){_0x2e6377['push'](_0x2e6377['shift']());}}}(a183_0xd4fa,0x1ffcb));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 a183_0xd4fa(){const _0x1edb75=['latestVersion','application/json','770616ZFGeeo','minimumVersion','now','823730xlqhFl','upgradeMessage','string','1731905Wawpzs','minVersion','255156ULsNYe','37090tWiZQB','cli','object','signal','37328XfRwIZ','recommendedVersion','json','trim','6nShkCK','408045vVUjYY','stableVersion','length'];a183_0xd4fa=function(){return _0x1edb75;};return a183_0xd4fa();}function pickString(_0x4a6fe9){const _0x43b749=a183_0x4d97;return typeof _0x4a6fe9===_0x43b749(0x15c)&&_0x4a6fe9[_0x43b749(0x150)]()[_0x43b749(0x154)]>0x0?_0x4a6fe9[_0x43b749(0x150)]():null;}function normalizeCliVersionPolicy(_0x3fa13a){const _0x1b281c=a183_0x4d97;if(!_0x3fa13a||typeof _0x3fa13a!==_0x1b281c(0x14b))return null;const _0x88c1ef=_0x3fa13a,_0x297e42=_0x88c1ef[_0x1b281c(0x14a)]&&typeof _0x88c1ef['cli']==='object'?_0x88c1ef[_0x1b281c(0x14a)]:_0x88c1ef,_0x10917c=pickString(_0x297e42[_0x1b281c(0x153)])||pickString(_0x297e42[_0x1b281c(0x155)])||pickString(_0x297e42[_0x1b281c(0x14e)]),_0x55cd3c=pickString(_0x297e42[_0x1b281c(0x158)])||pickString(_0x297e42[_0x1b281c(0x15e)]);if(!_0x10917c&&!_0x55cd3c)return null;return{'stableVersion':_0x10917c,'minimumVersion':_0x55cd3c,'upgradeMessage':pickString(_0x297e42[_0x1b281c(0x15b)])||undefined,'minimumVersionMessage':pickString(_0x297e42['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x79b385=a183_0x4d97,_0x2a8467=new AbortController(),_0x4ee445=setTimeout(()=>_0x2a8467['abort'](),FETCH_TIMEOUT_MS);try{const _0x29af7a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x79b385(0x156)},'signal':_0x2a8467[_0x79b385(0x14c)]});if(!_0x29af7a['ok'])return null;const _0x1ddee=await _0x29af7a[_0x79b385(0x14f)]();return normalizeCliVersionPolicy(_0x1ddee);}catch{return null;}finally{clearTimeout(_0x4ee445);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a183_0x4d97(_0x508a53,_0x59497d){_0x508a53=_0x508a53-0x14a;const _0xd4faed=a183_0xd4fa();let _0x4d97ab=_0xd4faed[_0x508a53];return _0x4d97ab;}export async function getCliVersionPolicy(){const _0x3c8b60=a183_0x4d97,_0x545116=Date[_0x3c8b60(0x159)]();if(hasCachedPolicy){const _0x5f5d37=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x545116-cacheTime<_0x5f5d37)return cachedPolicy;}const _0x1f221d=await fetchCliVersionPolicy();return cachedPolicy=_0x1f221d,cacheTime=_0x545116,hasCachedPolicy=!![],_0x1f221d;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0xec8fe6,_0x3d5388){const _0x3497d9=a183_0x3f71,_0x53ae2e=_0xec8fe6();while(!![]){try{const _0x30e566=-parseInt(_0x3497d9(0x72))/0x1+parseInt(_0x3497d9(0x68))/0x2*(-parseInt(_0x3497d9(0x78))/0x3)+-parseInt(_0x3497d9(0x71))/0x4*(-parseInt(_0x3497d9(0x65))/0x5)+parseInt(_0x3497d9(0x67))/0x6*(-parseInt(_0x3497d9(0x75))/0x7)+parseInt(_0x3497d9(0x7a))/0x8*(-parseInt(_0x3497d9(0x69))/0x9)+-parseInt(_0x3497d9(0x76))/0xa*(-parseInt(_0x3497d9(0x6d))/0xb)+-parseInt(_0x3497d9(0x79))/0xc*(-parseInt(_0x3497d9(0x73))/0xd);if(_0x30e566===_0x3d5388)break;else _0x53ae2e['push'](_0x53ae2e['shift']());}catch(_0x1dc6b8){_0x53ae2e['push'](_0x53ae2e['shift']());}}}(a183_0x27ff,0x82cd1));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a183_0x27ff(){const _0x53c8d6=['50yrYtCw','trim','1137icikJl','6576GhrYSk','255144JwIDMk','now','stableVersion','945fmaiAv','minVersion','12WjUCUi','2434ysxvgg','9Gngkyw','object','json','cli','303391zUcrNI','recommendedVersion','signal','minimumVersion','13976Swealx','916998ObzlFO','51246ovlQSq','minimumVersionMessage','3544072ulISFL'];a183_0x27ff=function(){return _0x53c8d6;};return a183_0x27ff();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x483f99){const _0x1fdd1c=a183_0x3f71;return typeof _0x483f99==='string'&&_0x483f99[_0x1fdd1c(0x77)]()['length']>0x0?_0x483f99[_0x1fdd1c(0x77)]():null;}function normalizeCliVersionPolicy(_0x5c7d37){const _0x18c53e=a183_0x3f71;if(!_0x5c7d37||typeof _0x5c7d37!==_0x18c53e(0x6a))return null;const _0xdbd22c=_0x5c7d37,_0x557ccb=_0xdbd22c['cli']&&typeof _0xdbd22c['cli']===_0x18c53e(0x6a)?_0xdbd22c[_0x18c53e(0x6c)]:_0xdbd22c,_0x11312f=pickString(_0x557ccb[_0x18c53e(0x64)])||pickString(_0x557ccb['latestVersion'])||pickString(_0x557ccb[_0x18c53e(0x6e)]),_0x1f31a1=pickString(_0x557ccb[_0x18c53e(0x70)])||pickString(_0x557ccb[_0x18c53e(0x66)]);if(!_0x11312f&&!_0x1f31a1)return null;return{'stableVersion':_0x11312f,'minimumVersion':_0x1f31a1,'upgradeMessage':pickString(_0x557ccb['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x557ccb[_0x18c53e(0x74)])||undefined};}export async function fetchCliVersionPolicy(){const _0x2d2da0=a183_0x3f71,_0x1ed24d=new AbortController(),_0x3bc315=setTimeout(()=>_0x1ed24d['abort'](),FETCH_TIMEOUT_MS);try{const _0x3760ca=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1ed24d[_0x2d2da0(0x6f)]});if(!_0x3760ca['ok'])return null;const _0xf8bc12=await _0x3760ca[_0x2d2da0(0x6b)]();return normalizeCliVersionPolicy(_0xf8bc12);}catch{return null;}finally{clearTimeout(_0x3bc315);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4cd1cf=a183_0x3f71,_0x13da35=Date[_0x4cd1cf(0x7b)]();if(hasCachedPolicy){const _0x55e00f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x13da35-cacheTime<_0x55e00f)return cachedPolicy;}const _0x567b27=await fetchCliVersionPolicy();return cachedPolicy=_0x567b27,cacheTime=_0x13da35,hasCachedPolicy=!![],_0x567b27;}function a183_0x3f71(_0x48bdcd,_0x3e63b8){_0x48bdcd=_0x48bdcd-0x64;const _0x27ff4a=a183_0x27ff();let _0x3f71cd=_0x27ff4a[_0x48bdcd];return _0x3f71cd;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a184_0x2940e4=a184_0x580f;(function(_0x4f2397,_0x5d53d8){const _0x4c040d=a184_0x580f,_0x57d771=_0x4f2397();while(!![]){try{const _0x44ee52=-parseInt(_0x4c040d(0x11d))/0x1*(parseInt(_0x4c040d(0x121))/0x2)+parseInt(_0x4c040d(0x11e))/0x3+-parseInt(_0x4c040d(0x124))/0x4*(-parseInt(_0x4c040d(0x125))/0x5)+-parseInt(_0x4c040d(0x11b))/0x6+-parseInt(_0x4c040d(0x122))/0x7+parseInt(_0x4c040d(0x120))/0x8*(-parseInt(_0x4c040d(0x11a))/0x9)+parseInt(_0x4c040d(0x123))/0xa*(parseInt(_0x4c040d(0x11f))/0xb);if(_0x44ee52===_0x5d53d8)break;else _0x57d771['push'](_0x57d771['shift']());}catch(_0x1c0ef1){_0x57d771['push'](_0x57d771['shift']());}}}(a184_0x71a6,0xbaaca));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x281c6d,getMultiAppConfigs as a184_0x42d26d,getTemplateBaseUrl as a184_0x531625}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a184_0x580f(_0x30992c,_0x1f5e1d){_0x30992c=_0x30992c-0x119;const _0x71a614=a184_0x71a6();let _0x580f39=_0x71a614[_0x30992c];return _0x580f39;}function a184_0x71a6(){const _0x2d3433=['44AzwIdT','425224hcDFmb','2409638GXsTFk','1750805Heslsh','5343850QlFPim','8bFFDlw','881305SUdyyz','env','117yvhlgi','4793148gZyREI','project','1VORjSz','3658011XFzoOu'];a184_0x71a6=function(){return _0x2d3433;};return a184_0x71a6();}export function readConfig(_0x383fbf){const _0x4543f1=a184_0x580f,_0x25cc84=readRawConfig(_0x383fbf);return _0x25cc84[_0x4543f1(0x119)]&&typeof _0x25cc84['env']==='string'&&initEnv(_0x25cc84[_0x4543f1(0x119)]),_0x25cc84;}export function getConfigAppCode(){return a184_0x281c6d();}export function getMultiAppConfigs(_0x58724c=a184_0x2940e4(0x11c)){return a184_0x42d26d(_0x58724c);}export function getTemplateBaseUrl(){return a184_0x531625();}
1
+ const a184_0x5b8bf4=a184_0x191d;(function(_0x4ba839,_0x4c1297){const _0x27c128=a184_0x191d,_0x485807=_0x4ba839();while(!![]){try{const _0x1f16ff=-parseInt(_0x27c128(0x174))/0x1*(-parseInt(_0x27c128(0x176))/0x2)+-parseInt(_0x27c128(0x178))/0x3+parseInt(_0x27c128(0x16e))/0x4+parseInt(_0x27c128(0x177))/0x5+parseInt(_0x27c128(0x179))/0x6+parseInt(_0x27c128(0x172))/0x7*(-parseInt(_0x27c128(0x170))/0x8)+-parseInt(_0x27c128(0x171))/0x9;if(_0x1f16ff===_0x4c1297)break;else _0x485807['push'](_0x485807['shift']());}catch(_0x2202dd){_0x485807['push'](_0x485807['shift']());}}}(a184_0x13dc,0xa97ad));import{initEnv}from'../constant/env.js';function a184_0x13dc(){const _0x3c972d=['string','106UTfIjk','412850VhcaMj','523695dFCvvE','3836562yyuNrE','5459936TCQXEI','env','5800dFaNtF','12475917NYPRTC','4333MrqsoP','project','11637NCfxfU'];a184_0x13dc=function(){return _0x3c972d;};return a184_0x13dc();}import{readRawConfig,getConfigAppCode as a184_0x544bb1,getMultiAppConfigs as a184_0x5d5637,getTemplateBaseUrl as a184_0x10053b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a184_0x191d(_0x273cd5,_0x20527b){_0x273cd5=_0x273cd5-0x16e;const _0x13dc80=a184_0x13dc();let _0x191d09=_0x13dc80[_0x273cd5];return _0x191d09;}export{isInProject}from'../context.js';export function readConfig(_0x2b5a8c){const _0x265b41=a184_0x191d,_0x17d2c2=readRawConfig(_0x2b5a8c);return _0x17d2c2['env']&&typeof _0x17d2c2[_0x265b41(0x16f)]===_0x265b41(0x175)&&initEnv(_0x17d2c2[_0x265b41(0x16f)]),_0x17d2c2;}export function getConfigAppCode(){return a184_0x544bb1();}export function getMultiAppConfigs(_0x47b5f5=a184_0x5b8bf4(0x173)){return a184_0x5d5637(_0x47b5f5);}export function getTemplateBaseUrl(){return a184_0x10053b();}
@@ -1 +1 @@
1
- (function(_0x5c846e,_0x162f23){const _0x27e5e5=a185_0x3520,_0x5cc0b5=_0x5c846e();while(!![]){try{const _0x112865=parseInt(_0x27e5e5(0x181))/0x1*(-parseInt(_0x27e5e5(0x17c))/0x2)+-parseInt(_0x27e5e5(0x17d))/0x3+parseInt(_0x27e5e5(0x17a))/0x4*(-parseInt(_0x27e5e5(0x178))/0x5)+-parseInt(_0x27e5e5(0x189))/0x6*(-parseInt(_0x27e5e5(0x17e))/0x7)+parseInt(_0x27e5e5(0x17b))/0x8*(parseInt(_0x27e5e5(0x180))/0x9)+parseInt(_0x27e5e5(0x177))/0xa*(-parseInt(_0x27e5e5(0x185))/0xb)+parseInt(_0x27e5e5(0x183))/0xc;if(_0x112865===_0x162f23)break;else _0x5cc0b5['push'](_0x5cc0b5['shift']());}catch(_0x12f43d){_0x5cc0b5['push'](_0x5cc0b5['shift']());}}}(a185_0x5ab2,0x435cb));function a185_0x3520(_0xeb0669,_0x3394d6){_0xeb0669=_0xeb0669-0x177;const _0x5ab233=a185_0x5ab2();let _0x352076=_0x5ab233[_0xeb0669];return _0x352076;}import a185_0x277fd2 from'node:path';function a185_0x5ab2(){const _0x317845=['45ucnLwr','3738wToIXb','error','12180420thIfXF','readdirSync','109285foHkLc','isDirectory','name','copyFileSync','47046jlyjQS','500sXjUga','3580eHORiJ','join','1668fyjtZW','60280vfUeTg','226aHYRny','253278DsWBAt','469rdJGeD','mkdirSync'];a185_0x5ab2=function(){return _0x317845;};return a185_0x5ab2();}import a185_0x8a2439 from'node:fs';export async function copyDirectory(_0x48657a,_0x11473c){const _0xb71277=a185_0x3520;try{const _0x1157e4=a185_0x8a2439[_0xb71277(0x184)](_0x48657a,{'withFileTypes':!![]});a185_0x8a2439[_0xb71277(0x17f)](_0x11473c,{'recursive':!![]});for(const _0x341e80 of _0x1157e4){const _0x16c83e=a185_0x277fd2[_0xb71277(0x179)](_0x48657a,_0x341e80[_0xb71277(0x187)]),_0x539fbe=a185_0x277fd2[_0xb71277(0x179)](_0x11473c,_0x341e80[_0xb71277(0x187)]);_0x341e80[_0xb71277(0x186)]()?await copyDirectory(_0x16c83e,_0x539fbe):a185_0x8a2439[_0xb71277(0x188)](_0x16c83e,_0x539fbe);}}catch(_0x5e77bc){console[_0xb71277(0x182)]('复制目录时出错:',_0x5e77bc);}}
1
+ function a185_0x5140(_0x310481,_0x373b08){_0x310481=_0x310481-0x182;const _0x18ec79=a185_0x18ec();let _0x5140d0=_0x18ec79[_0x310481];return _0x5140d0;}function a185_0x18ec(){const _0x5c2b63=['2240295Roqejt','1431444KFeoSf','32927022jaXEvW','336543PBHTmb','join','8azknjk','1434867fKJdsT','name','8933449ONRqxd','2FqfHUh','1265460FPVGRx','error','mkdirSync','readdirSync'];a185_0x18ec=function(){return _0x5c2b63;};return a185_0x18ec();}(function(_0x1a08e8,_0x5f2345){const _0x1ca01a=a185_0x5140,_0x339d4a=_0x1a08e8();while(!![]){try{const _0x2f47c6=-parseInt(_0x1ca01a(0x184))/0x1+-parseInt(_0x1ca01a(0x187))/0x2*(parseInt(_0x1ca01a(0x18f))/0x3)+-parseInt(_0x1ca01a(0x188))/0x4+parseInt(_0x1ca01a(0x18c))/0x5+-parseInt(_0x1ca01a(0x18d))/0x6+-parseInt(_0x1ca01a(0x186))/0x7+-parseInt(_0x1ca01a(0x183))/0x8*(-parseInt(_0x1ca01a(0x18e))/0x9);if(_0x2f47c6===_0x5f2345)break;else _0x339d4a['push'](_0x339d4a['shift']());}catch(_0x4818c0){_0x339d4a['push'](_0x339d4a['shift']());}}}(a185_0x18ec,0xb1d67));import a185_0x25c111 from'node:path';import a185_0x12118c from'node:fs';export async function copyDirectory(_0x22c032,_0x2706e3){const _0x560a66=a185_0x5140;try{const _0x2a55e9=a185_0x12118c[_0x560a66(0x18b)](_0x22c032,{'withFileTypes':!![]});a185_0x12118c[_0x560a66(0x18a)](_0x2706e3,{'recursive':!![]});for(const _0x3c7a3b of _0x2a55e9){const _0x37aeae=a185_0x25c111[_0x560a66(0x182)](_0x22c032,_0x3c7a3b['name']),_0x30a2d1=a185_0x25c111[_0x560a66(0x182)](_0x2706e3,_0x3c7a3b[_0x560a66(0x185)]);_0x3c7a3b['isDirectory']()?await copyDirectory(_0x37aeae,_0x30a2d1):a185_0x12118c['copyFileSync'](_0x37aeae,_0x30a2d1);}}catch(_0xf9711c){console[_0x560a66(0x189)]('复制目录时出错:',_0xf9711c);}}
@@ -1 +1 @@
1
- function a186_0x37ea(_0x4c7102,_0xf5a4b3){_0x4c7102=_0x4c7102-0x12c;const _0x9d4d12=a186_0x9d4d();let _0x37ea70=_0x9d4d12[_0x4c7102];return _0x37ea70;}(function(_0x421477,_0x51cb42){const _0xd03197=a186_0x37ea,_0xacca70=_0x421477();while(!![]){try{const _0x1e826d=parseInt(_0xd03197(0x134))/0x1*(-parseInt(_0xd03197(0x137))/0x2)+-parseInt(_0xd03197(0x12c))/0x3*(parseInt(_0xd03197(0x130))/0x4)+-parseInt(_0xd03197(0x13b))/0x5+parseInt(_0xd03197(0x131))/0x6*(-parseInt(_0xd03197(0x12f))/0x7)+-parseInt(_0xd03197(0x133))/0x8*(parseInt(_0xd03197(0x13a))/0x9)+-parseInt(_0xd03197(0x12e))/0xa*(parseInt(_0xd03197(0x139))/0xb)+parseInt(_0xd03197(0x136))/0xc;if(_0x1e826d===_0x51cb42)break;else _0xacca70['push'](_0xacca70['shift']());}catch(_0xdfb63){_0xacca70['push'](_0xacca70['shift']());}}}(a186_0x9d4d,0x31b35));function toFiniteNumber(_0x58fa2f){const _0x5a8e0c=a186_0x37ea;if(typeof _0x58fa2f===_0x5a8e0c(0x135)&&Number[_0x5a8e0c(0x138)](_0x58fa2f))return _0x58fa2f;if(typeof _0x58fa2f==='string'){const _0x416bc7=_0x58fa2f[_0x5a8e0c(0x132)]();if(!_0x416bc7)return undefined;const _0x215a07=Number(_0x416bc7);if(Number['isFinite'](_0x215a07))return _0x215a07;}return undefined;}export function normalizeEntityWithIdResponse(_0x1f8edc){const _0x1481f0=a186_0x37ea,_0x16bfc1=toFiniteNumber(_0x1f8edc);if(_0x16bfc1!==undefined)return{'id':_0x16bfc1,'entity':{'id':_0x16bfc1}};if(!_0x1f8edc||typeof _0x1f8edc!==_0x1481f0(0x12d))return{'id':undefined,'entity':{}};const _0x3bc202={..._0x1f8edc},_0x22b586=toFiniteNumber(_0x3bc202['id']);return _0x22b586!==undefined&&(_0x3bc202['id']=_0x22b586),{'id':_0x22b586,'entity':_0x3bc202};}function a186_0x9d4d(){const _0x1156ed=['61jEshqm','number','18795492kXDDez','8182jdcYOk','isFinite','339878osBBEY','529677qupjql','57130JCRsIc','982803KJWKEn','object','70cLZRVg','196UgEcdJ','4OxVger','43872Safuam','trim','48oQUYtY'];a186_0x9d4d=function(){return _0x1156ed;};return a186_0x9d4d();}
1
+ function a186_0xafa4(){const _0x589145=['2351160sxAeKe','string','104tTEqpk','object','isFinite','trim','8261MUOZfT','6CQVTNx','10932fPVpHR','1922991xAwURO','73449vsHGmJ','1145952hssOkj','5WJAMNk','24848IKwvPG','number','3820nggYvp'];a186_0xafa4=function(){return _0x589145;};return a186_0xafa4();}(function(_0x48e602,_0x100bc4){const _0x1acbb7=a186_0x5be8,_0x3a1166=_0x48e602();while(!![]){try{const _0x4f9081=parseInt(_0x1acbb7(0x172))/0x1*(-parseInt(_0x1acbb7(0x178))/0x2)+parseInt(_0x1acbb7(0x174))/0x3+parseInt(_0x1acbb7(0x173))/0x4*(parseInt(_0x1acbb7(0x177))/0x5)+-parseInt(_0x1acbb7(0x176))/0x6+-parseInt(_0x1acbb7(0x16b))/0x7+-parseInt(_0x1acbb7(0x16d))/0x8*(-parseInt(_0x1acbb7(0x175))/0x9)+parseInt(_0x1acbb7(0x17a))/0xa*(parseInt(_0x1acbb7(0x171))/0xb);if(_0x4f9081===_0x100bc4)break;else _0x3a1166['push'](_0x3a1166['shift']());}catch(_0x4cde3b){_0x3a1166['push'](_0x3a1166['shift']());}}}(a186_0xafa4,0x6a459));function a186_0x5be8(_0x238e27,_0x416a09){_0x238e27=_0x238e27-0x16b;const _0xafa4aa=a186_0xafa4();let _0x5be8fc=_0xafa4aa[_0x238e27];return _0x5be8fc;}function toFiniteNumber(_0x37c9de){const _0x447eea=a186_0x5be8;if(typeof _0x37c9de===_0x447eea(0x179)&&Number[_0x447eea(0x16f)](_0x37c9de))return _0x37c9de;if(typeof _0x37c9de===_0x447eea(0x16c)){const _0x13eeee=_0x37c9de[_0x447eea(0x170)]();if(!_0x13eeee)return undefined;const _0x299139=Number(_0x13eeee);if(Number[_0x447eea(0x16f)](_0x299139))return _0x299139;}return undefined;}export function normalizeEntityWithIdResponse(_0x2f6652){const _0x15376d=a186_0x5be8,_0x36d246=toFiniteNumber(_0x2f6652);if(_0x36d246!==undefined)return{'id':_0x36d246,'entity':{'id':_0x36d246}};if(!_0x2f6652||typeof _0x2f6652!==_0x15376d(0x16e))return{'id':undefined,'entity':{}};const _0x449ed1={..._0x2f6652},_0xb24a87=toFiniteNumber(_0x449ed1['id']);return _0xb24a87!==undefined&&(_0x449ed1['id']=_0xb24a87),{'id':_0xb24a87,'entity':_0x449ed1};}
@@ -1 +1 @@
1
- function a187_0x519d(_0xb02be3,_0x23b219){_0xb02be3=_0xb02be3-0x1dd;const _0x24fc42=a187_0x24fc();let _0x519d8b=_0x24fc42[_0xb02be3];return _0x519d8b;}(function(_0x1f577b,_0x36d44b){const _0x16b99c=a187_0x519d,_0x4a352b=_0x1f577b();while(!![]){try{const _0x50fbd0=parseInt(_0x16b99c(0x1dd))/0x1+parseInt(_0x16b99c(0x1e7))/0x2*(-parseInt(_0x16b99c(0x1df))/0x3)+-parseInt(_0x16b99c(0x1e3))/0x4*(-parseInt(_0x16b99c(0x1e5))/0x5)+parseInt(_0x16b99c(0x1e2))/0x6*(-parseInt(_0x16b99c(0x1e1))/0x7)+-parseInt(_0x16b99c(0x1e6))/0x8*(parseInt(_0x16b99c(0x1de))/0x9)+-parseInt(_0x16b99c(0x1e4))/0xa+parseInt(_0x16b99c(0x1e8))/0xb*(parseInt(_0x16b99c(0x1e0))/0xc);if(_0x50fbd0===_0x36d44b)break;else _0x4a352b['push'](_0x4a352b['shift']());}catch(_0x1f4a1d){_0x4a352b['push'](_0x4a352b['shift']());}}}(a187_0x24fc,0xdd34a));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a187_0x24fc(){const _0x595244=['17611oiPyhM','397539LvUhtW','378jOeiFL','3bkRTMe','29688WWpfbn','130508UGsMJw','450GjHhwZ','578844rEvtbJ','15087710MMruKW','35EbFtwu','1160KszTwc','3104342xFdZUr'];a187_0x24fc=function(){return _0x595244;};return a187_0x24fc();}export async function copyDir(_0x41b1da,_0x1eebbb){const _0x2ab15c=statSync(_0x41b1da);if(_0x2ab15c['isDirectory']()){!existsSync(_0x1eebbb)&&mkdirSync(_0x1eebbb,{'recursive':!![]});const _0x1a5023=readdirSync(_0x41b1da);for(const _0x4d2e90 of _0x1a5023){await copyDir(join(_0x41b1da,_0x4d2e90),join(_0x1eebbb,_0x4d2e90));}}else copyFileSync(_0x41b1da,_0x1eebbb);}export function ensureDir(_0x14ec90){!existsSync(_0x14ec90)&&mkdirSync(_0x14ec90,{'recursive':!![]});}export function pathExists(_0x3c65c7){return existsSync(_0x3c65c7);}
1
+ (function(_0x1453c1,_0x8c0a4b){const _0x4ff2af=a187_0x173c,_0x3bbaaa=_0x1453c1();while(!![]){try{const _0x2b7cc8=parseInt(_0x4ff2af(0x194))/0x1*(parseInt(_0x4ff2af(0x190))/0x2)+parseInt(_0x4ff2af(0x193))/0x3+parseInt(_0x4ff2af(0x191))/0x4+parseInt(_0x4ff2af(0x192))/0x5*(parseInt(_0x4ff2af(0x18d))/0x6)+parseInt(_0x4ff2af(0x18f))/0x7*(parseInt(_0x4ff2af(0x18a))/0x8)+-parseInt(_0x4ff2af(0x18c))/0x9+parseInt(_0x4ff2af(0x18e))/0xa*(-parseInt(_0x4ff2af(0x195))/0xb);if(_0x2b7cc8===_0x8c0a4b)break;else _0x3bbaaa['push'](_0x3bbaaa['shift']());}catch(_0x4ac95f){_0x3bbaaa['push'](_0x3bbaaa['shift']());}}}(a187_0x44c6,0x188c6));function a187_0x173c(_0x2c2fa5,_0x137692){_0x2c2fa5=_0x2c2fa5-0x18a;const _0x44c65f=a187_0x44c6();let _0x173cc5=_0x44c65f[_0x2c2fa5];return _0x173cc5;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a187_0x44c6(){const _0xb88605=['270564OSyYQY','30hminvi','7VCXXAW','5686wUwlGa','697204fwzuby','20coHTlQ','94710fmoegG','1tovgTo','783101ISUSMV','875864HEJBeM','isDirectory','1660050VcNvbM'];a187_0x44c6=function(){return _0xb88605;};return a187_0x44c6();}import{join}from'node:path';export async function copyDir(_0x280ad6,_0x1fd84c){const _0x41d9fa=a187_0x173c,_0x2814a8=statSync(_0x280ad6);if(_0x2814a8[_0x41d9fa(0x18b)]()){!existsSync(_0x1fd84c)&&mkdirSync(_0x1fd84c,{'recursive':!![]});const _0x386554=readdirSync(_0x280ad6);for(const _0xfb9a8f of _0x386554){await copyDir(join(_0x280ad6,_0xfb9a8f),join(_0x1fd84c,_0xfb9a8f));}}else copyFileSync(_0x280ad6,_0x1fd84c);}export function ensureDir(_0x2d2b2d){!existsSync(_0x2d2b2d)&&mkdirSync(_0x2d2b2d,{'recursive':!![]});}export function pathExists(_0x5c233c){return existsSync(_0x5c233c);}
@@ -1 +1 @@
1
- const a188_0x182899=a188_0x2e42;(function(_0x3de0b4,_0x5a09fc){const _0x457a8a=a188_0x2e42,_0x3f01d9=_0x3de0b4();while(!![]){try{const _0x4c2f07=parseInt(_0x457a8a(0x1a7))/0x1+parseInt(_0x457a8a(0x196))/0x2*(parseInt(_0x457a8a(0x1a8))/0x3)+parseInt(_0x457a8a(0x19d))/0x4+parseInt(_0x457a8a(0x19e))/0x5+-parseInt(_0x457a8a(0x1a9))/0x6+-parseInt(_0x457a8a(0x199))/0x7+-parseInt(_0x457a8a(0x1a0))/0x8*(parseInt(_0x457a8a(0x1b1))/0x9);if(_0x4c2f07===_0x5a09fc)break;else _0x3f01d9['push'](_0x3f01d9['shift']());}catch(_0x190a48){_0x3f01d9['push'](_0x3f01d9['shift']());}}}(a188_0x5176,0xdf9fe));import{mkdirSync,writeFileSync}from'node:fs';function a188_0x5176(){const _0x2462bb=['/skills/guides.json','extendContent','object','\x0a\x0a>更新时间:','keys','226629JgHXHq','title','.md','path','application/json','724292MTswBj','skillTemplate','.lovrabet/skill/guides','9022244KbPRMZ','content','CDN\x20返回数据格式错误','trimEnd','3129988oUcUbb','1801840nNqZpk','join','104IZkAlc','length','.lovrabet','lastUpdated','map','statusText','guides','1357990ARQlSh','12aaRlKe','8503368scLWma','push','entries'];a188_0x5176=function(){return _0x2462bb;};return a188_0x5176();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x56f44c=a188_0x2e42,_0x40a8db=getTemplateBaseUrl();return _0x40a8db+_0x56f44c(0x1ac);}const CACHE_DIR=join(homedir(),a188_0x182899(0x1a2),'cache');export async function fetchGuidesFromCDN(){const _0x40b5c4=a188_0x182899,_0x3eb19f=getGuidesCdnUrl(),_0x5b42b6=await fetch(_0x3eb19f,{'headers':{'Accept':_0x40b5c4(0x195)}});if(!_0x5b42b6['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5b42b6['status']+'\x20'+_0x5b42b6[_0x40b5c4(0x1a5)]);const _0x404918=await _0x5b42b6['json']();if(!_0x404918[_0x40b5c4(0x1a6)]||typeof _0x404918['guides']!==_0x40b5c4(0x1ae))throw new Error(_0x40b5c4(0x19b));return _0x404918;}export function writeGuidesToProject(_0x1e360c,_0xf69985,_0x277f7e=a188_0x182899(0x198),_0x5ac34e){const _0xf9e389=a188_0x182899,_0x544ee5=join(_0xf69985,_0x277f7e);mkdirSync(_0x544ee5,{'recursive':!![]});for(const [_0x3ac538,_0x437087]of Object[_0xf9e389(0x1ab)](_0x1e360c[_0xf9e389(0x1a6)])){let _0x91e950=_0x437087['content'];_0x437087['lastUpdated']&&(_0x91e950=appendUpdateTime(_0x91e950,_0x437087[_0xf9e389(0x1a3)])),writeFileSync(join(_0x544ee5,_0x3ac538+_0xf9e389(0x1b3)),_0x91e950,'utf-8');}}export function appendUpdateTime(_0x26b6ab,_0xfc1215){const _0xc1df76=a188_0x182899;return _0x26b6ab=_0x26b6ab['replace'](/\n*>更新时间:.*$/m,''),_0x26b6ab[_0xc1df76(0x19c)]()+(_0xc1df76(0x1af)+_0xfc1215);}export function getSkillTemplate(_0x383b90){const _0x16deea=a188_0x182899;return _0x383b90[_0x16deea(0x197)]?.[_0x16deea(0x19a)]||'';}function a188_0x2e42(_0x460dfe,_0x69c4be){_0x460dfe=_0x460dfe-0x194;const _0x517669=a188_0x5176();let _0x2e423a=_0x517669[_0x460dfe];return _0x2e423a;}export function appendExtendContents(_0x2f41b6,_0x8dcbee,_0x34ab1a){const _0x16c899=a188_0x182899,_0xec715e=[];for(const [,_0x4183a3]of Object['entries'](_0x8dcbee[_0x16c899(0x1a6)])){_0x4183a3[_0x16c899(0x1ad)]&&_0xec715e[_0x16c899(0x1aa)](_0x4183a3['extendContent'][_0x16c899(0x19c)]());}if(_0xec715e[_0x16c899(0x1a1)]===0x0)return _0x2f41b6;return _0x2f41b6[_0x16c899(0x19c)]()+'\x0a\x0a'+_0xec715e[_0x16c899(0x19f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xda6297,_0x29fd05,_0x141e39){const _0x46ff0a=a188_0x182899,_0x353358=getSkillTemplate(_0xda6297);if(!_0x353358)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x59086c=dirname(_0x29fd05);mkdirSync(_0x59086c,{'recursive':!![]});let _0x3a82a6=_0x353358['replace'](/\{\{IDE_NAME\}\}/g,_0x141e39);_0x3a82a6=appendExtendContents(_0x3a82a6,_0xda6297),_0xda6297[_0x46ff0a(0x197)][_0x46ff0a(0x1a3)]&&(_0x3a82a6=appendUpdateTime(_0x3a82a6,_0xda6297['skillTemplate'][_0x46ff0a(0x1a3)])),writeFileSync(_0x29fd05,_0x3a82a6,'utf-8');}export async function installGuides(_0x2d4bbf){const _0x32161c=a188_0x182899,_0x26eed5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x26eed5,_0x2d4bbf),Object[_0x32161c(0x1b0)](_0x26eed5[_0x32161c(0x1a6)])[_0x32161c(0x1a1)];}export function getGuidesSummary(_0x333f00){const _0x56b607=a188_0x182899;return Object[_0x56b607(0x1ab)](_0x333f00['guides'])[_0x56b607(0x1a4)](([_0x5c0b15,_0x5983a4])=>({'key':_0x5c0b15,'title':_0x5983a4[_0x56b607(0x1b2)],'path':_0x5983a4[_0x56b607(0x194)]}));}
1
+ const a188_0x2bb8fc=a188_0x1f0c;(function(_0x2cf49c,_0x256b7a){const _0x24db39=a188_0x1f0c,_0x4e27ca=_0x2cf49c();while(!![]){try{const _0x53fd1a=-parseInt(_0x24db39(0x176))/0x1+-parseInt(_0x24db39(0x15e))/0x2*(parseInt(_0x24db39(0x17e))/0x3)+-parseInt(_0x24db39(0x164))/0x4+parseInt(_0x24db39(0x174))/0x5*(parseInt(_0x24db39(0x172))/0x6)+-parseInt(_0x24db39(0x17b))/0x7+-parseInt(_0x24db39(0x171))/0x8+parseInt(_0x24db39(0x170))/0x9;if(_0x53fd1a===_0x256b7a)break;else _0x4e27ca['push'](_0x4e27ca['shift']());}catch(_0x31c38d){_0x4e27ca['push'](_0x4e27ca['shift']());}}}(a188_0x3452,0xa16c1));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a188_0x1f0c(_0x4416c1,_0x2d0922){_0x4416c1=_0x4416c1-0x15d;const _0x3452a2=a188_0x3452();let _0x1f0c39=_0x3452a2[_0x4416c1];return _0x1f0c39;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x346b0e=getTemplateBaseUrl();return _0x346b0e+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a188_0x2bb8fc(0x179),a188_0x2bb8fc(0x162));export async function fetchGuidesFromCDN(){const _0x4d78cd=a188_0x2bb8fc,_0x21ea39=getGuidesCdnUrl(),_0x5a34b7=await fetch(_0x21ea39,{'headers':{'Accept':_0x4d78cd(0x17a)}});if(!_0x5a34b7['ok'])throw new Error(_0x4d78cd(0x16e)+_0x5a34b7[_0x4d78cd(0x178)]+'\x20'+_0x5a34b7[_0x4d78cd(0x16c)]);const _0x20c771=await _0x5a34b7[_0x4d78cd(0x160)]();if(!_0x20c771[_0x4d78cd(0x166)]||typeof _0x20c771[_0x4d78cd(0x166)]!==_0x4d78cd(0x175))throw new Error(_0x4d78cd(0x161));return _0x20c771;}export function writeGuidesToProject(_0x24cfeb,_0x397b5c,_0x52b1da='.lovrabet/skill/guides',_0x269a7b){const _0x96b87b=a188_0x2bb8fc,_0x4cff5a=join(_0x397b5c,_0x52b1da);mkdirSync(_0x4cff5a,{'recursive':!![]});for(const [_0x10a281,_0x1df143]of Object['entries'](_0x24cfeb[_0x96b87b(0x166)])){let _0x300cdc=_0x1df143[_0x96b87b(0x163)];_0x1df143[_0x96b87b(0x169)]&&(_0x300cdc=appendUpdateTime(_0x300cdc,_0x1df143['lastUpdated'])),writeFileSync(join(_0x4cff5a,_0x10a281+_0x96b87b(0x16f)),_0x300cdc,_0x96b87b(0x15d));}}function a188_0x3452(){const _0x37cbd3=['statusText','map','CDN\x20请求失败:\x20','.md','47758653FolcAV','8846656LpzIxl','92574uQrteo','keys','20WJcLux','object','669637oVLteo','push','status','.lovrabet','application/json','8377467pZoUCN','replace','title','2367IFRvlW','utf-8','2570suXSnj','CDN\x20数据中缺少\x20skillTemplate','json','CDN\x20返回数据格式错误','cache','content','2883732jNOLVw','extendContent','guides','length','skillTemplate','lastUpdated','trimEnd','entries'];a188_0x3452=function(){return _0x37cbd3;};return a188_0x3452();}export function appendUpdateTime(_0xe400b1,_0x4abc77){const _0x4bea25=a188_0x2bb8fc;return _0xe400b1=_0xe400b1[_0x4bea25(0x17c)](/\n*>更新时间:.*$/m,''),_0xe400b1['trimEnd']()+('\x0a\x0a>更新时间:'+_0x4abc77);}export function getSkillTemplate(_0x389248){const _0x58eecc=a188_0x2bb8fc;return _0x389248[_0x58eecc(0x168)]?.[_0x58eecc(0x163)]||'';}export function appendExtendContents(_0x11285d,_0x327343,_0x1c53c2){const _0x569fd9=a188_0x2bb8fc,_0x1736d3=[];for(const [,_0x30c442]of Object['entries'](_0x327343[_0x569fd9(0x166)])){_0x30c442['extendContent']&&_0x1736d3[_0x569fd9(0x177)](_0x30c442[_0x569fd9(0x165)]['trimEnd']());}if(_0x1736d3[_0x569fd9(0x167)]===0x0)return _0x11285d;return _0x11285d[_0x569fd9(0x16a)]()+'\x0a\x0a'+_0x1736d3['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2af199,_0x3b4051,_0x49be59){const _0x17e831=a188_0x2bb8fc,_0x27a99f=getSkillTemplate(_0x2af199);if(!_0x27a99f)throw new Error(_0x17e831(0x15f));const _0x279c31=dirname(_0x3b4051);mkdirSync(_0x279c31,{'recursive':!![]});let _0x21b0a7=_0x27a99f[_0x17e831(0x17c)](/\{\{IDE_NAME\}\}/g,_0x49be59);_0x21b0a7=appendExtendContents(_0x21b0a7,_0x2af199),_0x2af199[_0x17e831(0x168)][_0x17e831(0x169)]&&(_0x21b0a7=appendUpdateTime(_0x21b0a7,_0x2af199['skillTemplate'][_0x17e831(0x169)])),writeFileSync(_0x3b4051,_0x21b0a7,_0x17e831(0x15d));}export async function installGuides(_0x263491){const _0x39cdd5=a188_0x2bb8fc,_0x5b7fc2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5b7fc2,_0x263491),Object[_0x39cdd5(0x173)](_0x5b7fc2[_0x39cdd5(0x166)])['length'];}export function getGuidesSummary(_0x5b1c66){const _0x438a88=a188_0x2bb8fc;return Object[_0x438a88(0x16b)](_0x5b1c66[_0x438a88(0x166)])[_0x438a88(0x16d)](([_0x49a5f9,_0x50545d])=>({'key':_0x49a5f9,'title':_0x50545d[_0x438a88(0x17d)],'path':_0x50545d['path']}));}
@@ -1 +1 @@
1
- function a189_0x21e8(_0x4271d4,_0x45b1de){_0x4271d4=_0x4271d4-0xa9;const _0x1e25c1=a189_0x1e25();let _0x21e82e=_0x1e25c1[_0x4271d4];return _0x21e82e;}(function(_0x417584,_0x4b7ce7){const _0x2c7e69=a189_0x21e8,_0x57dae1=_0x417584();while(!![]){try{const _0x428a74=parseInt(_0x2c7e69(0xaf))/0x1+parseInt(_0x2c7e69(0xb7))/0x2+-parseInt(_0x2c7e69(0xab))/0x3+-parseInt(_0x2c7e69(0xb4))/0x4+-parseInt(_0x2c7e69(0xc3))/0x5+-parseInt(_0x2c7e69(0xbe))/0x6*(-parseInt(_0x2c7e69(0xc1))/0x7)+parseInt(_0x2c7e69(0xba))/0x8;if(_0x428a74===_0x4b7ce7)break;else _0x57dae1['push'](_0x57dae1['shift']());}catch(_0x2f8fa6){_0x57dae1['push'](_0x57dae1['shift']());}}}(a189_0x1e25,0x6bcee));export async function httpRequest(_0x611ac1,_0x223634={}){const _0x595037=a189_0x21e8,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x223634;let _0x53fedb=null;for(let _0x476969=0x0;_0x476969<=retries;_0x476969++){try{const _0x4f43fa=new AbortController(),_0x332136=setTimeout(()=>_0x4f43fa[_0x595037(0xad)](),timeout),_0x46583c=await fetch(_0x611ac1,{'headers':headers,'signal':_0x4f43fa[_0x595037(0xc0)]});clearTimeout(_0x332136);let _0x125b2f;const _0x346ccf=_0x46583c[_0x595037(0xae)]['get'](_0x595037(0xaa));return _0x346ccf?.[_0x595037(0xbd)](_0x595037(0xb3))?_0x125b2f=await _0x46583c['json']():_0x125b2f=await _0x46583c['text'](),{'ok':_0x46583c['ok'],'status':_0x46583c[_0x595037(0xac)],'statusText':_0x46583c[_0x595037(0xbc)],'data':_0x125b2f,'headers':_0x46583c[_0x595037(0xae)],'url':_0x46583c[_0x595037(0xb0)],'text':()=>_0x46583c[_0x595037(0xb2)]()};}catch(_0x3a19a2){_0x53fedb=_0x3a19a2 instanceof Error?_0x3a19a2:new Error(String(_0x3a19a2));if(_0x476969===retries)break;if(shouldRetry(_0x3a19a2)){console[_0x595037(0xb8)]('*\x20请求失败,'+retryDelay+_0x595037(0xb6)+(_0x476969+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x53fedb||new Error(_0x595037(0xb9));}function shouldRetry(_0x4e21e0){const _0x3dc449=a189_0x21e8;if(_0x4e21e0 instanceof Error){if(_0x4e21e0[_0x3dc449(0xa9)]==='AbortError')return![];if(_0x4e21e0['name']===_0x3dc449(0xbf)&&_0x4e21e0[_0x3dc449(0xb5)]['includes'](_0x3dc449(0xc2)))return!![];if(_0x4e21e0[_0x3dc449(0xb5)][_0x3dc449(0xbd)](_0x3dc449(0xbb)))return!![];if(_0x4e21e0[_0x3dc449(0xb5)][_0x3dc449(0xbd)](_0x3dc449(0xb1)))return![];}return![];}function a189_0x1e25(){const _0x21aeb8=['9431440GFjOfi','ECONNRESET','statusText','includes','7008oEpHFV','TypeError','signal','2275IjTxMR','fetch','3897695lcJAeO','name','content-type','2354835ThIPZg','status','abort','headers','246931ASuBZJ','url','ENOTFOUND','text','application/json','632184DUODlK','message','ms\x20后进行第\x20','717302sgHUTS','log','Request\x20failed'];a189_0x1e25=function(){return _0x21aeb8;};return a189_0x1e25();}function sleep(_0xd4250){return new Promise(_0x3682e2=>setTimeout(_0x3682e2,_0xd4250));}export function validateUrl(_0x59dc0f){try{return new URL(_0x59dc0f),!![];}catch{return![];}}
1
+ function a189_0x40f7(_0x4b3078,_0x5ea90d){_0x4b3078=_0x4b3078-0x178;const _0x445060=a189_0x4450();let _0x40f7b1=_0x445060[_0x4b3078];return _0x40f7b1;}(function(_0x235d34,_0x39d752){const _0x4ba5e0=a189_0x40f7,_0x31e9bb=_0x235d34();while(!![]){try{const _0x2548ca=-parseInt(_0x4ba5e0(0x18c))/0x1*(parseInt(_0x4ba5e0(0x17b))/0x2)+parseInt(_0x4ba5e0(0x184))/0x3+-parseInt(_0x4ba5e0(0x182))/0x4*(-parseInt(_0x4ba5e0(0x18e))/0x5)+parseInt(_0x4ba5e0(0x181))/0x6+parseInt(_0x4ba5e0(0x188))/0x7+-parseInt(_0x4ba5e0(0x180))/0x8+-parseInt(_0x4ba5e0(0x193))/0x9;if(_0x2548ca===_0x39d752)break;else _0x31e9bb['push'](_0x31e9bb['shift']());}catch(_0xbf4509){_0x31e9bb['push'](_0x31e9bb['shift']());}}}(a189_0x4450,0xce33e));export async function httpRequest(_0x5a3981,_0x30896f={}){const _0x246d13=a189_0x40f7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x30896f;let _0x436b08=null;for(let _0x4fa70b=0x0;_0x4fa70b<=retries;_0x4fa70b++){try{const _0x1faaa7=new AbortController(),_0x5b1877=setTimeout(()=>_0x1faaa7[_0x246d13(0x194)](),timeout),_0xb7ed94=await fetch(_0x5a3981,{'headers':headers,'signal':_0x1faaa7[_0x246d13(0x18d)]});clearTimeout(_0x5b1877);let _0x180ce0;const _0x11462a=_0xb7ed94[_0x246d13(0x17f)]['get'](_0x246d13(0x179));return _0x11462a?.[_0x246d13(0x18f)]('application/json')?_0x180ce0=await _0xb7ed94[_0x246d13(0x183)]():_0x180ce0=await _0xb7ed94[_0x246d13(0x187)](),{'ok':_0xb7ed94['ok'],'status':_0xb7ed94[_0x246d13(0x192)],'statusText':_0xb7ed94[_0x246d13(0x17c)],'data':_0x180ce0,'headers':_0xb7ed94[_0x246d13(0x17f)],'url':_0xb7ed94['url'],'text':()=>_0xb7ed94[_0x246d13(0x187)]()};}catch(_0x146d12){_0x436b08=_0x146d12 instanceof Error?_0x146d12:new Error(String(_0x146d12));if(_0x4fa70b===retries)break;if(shouldRetry(_0x146d12)){console[_0x246d13(0x17a)](_0x246d13(0x18a)+retryDelay+_0x246d13(0x189)+(_0x4fa70b+0x1)+_0x246d13(0x178)),await sleep(retryDelay);continue;}else break;}}throw _0x436b08||new Error(_0x246d13(0x190));}function shouldRetry(_0x4ef36a){const _0x3d7f78=a189_0x40f7;if(_0x4ef36a instanceof Error){if(_0x4ef36a[_0x3d7f78(0x185)]===_0x3d7f78(0x18b))return![];if(_0x4ef36a[_0x3d7f78(0x185)]===_0x3d7f78(0x17d)&&_0x4ef36a[_0x3d7f78(0x17e)][_0x3d7f78(0x18f)](_0x3d7f78(0x186)))return!![];if(_0x4ef36a['message'][_0x3d7f78(0x18f)](_0x3d7f78(0x191)))return!![];if(_0x4ef36a[_0x3d7f78(0x17e)][_0x3d7f78(0x18f)]('ENOTFOUND'))return![];}return![];}function sleep(_0x378ff4){return new Promise(_0x21c601=>setTimeout(_0x21c601,_0x378ff4));}function a189_0x4450(){const _0x3a2554=['4226028spgoPF','3188OoACpF','json','5017014oRZwEe','name','fetch','text','11736809dSPiXW','ms\x20后进行第\x20','*\x20请求失败,','AbortError','331dXBJxK','signal','1335HoRbbY','includes','Request\x20failed','ECONNRESET','status','10094994gThaTm','abort','\x20次重试...','content-type','log','5048lCHKDA','statusText','TypeError','message','headers','11715568rXbufv'];a189_0x4450=function(){return _0x3a2554;};return a189_0x4450();}export function validateUrl(_0x93e096){try{return new URL(_0x93e096),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4dfe56,_0x3f8a94){const _0x482b7e=a190_0x48f7,_0x3070d4=_0x4dfe56();while(!![]){try{const _0x28a08b=-parseInt(_0x482b7e(0x104))/0x1+parseInt(_0x482b7e(0xfb))/0x2*(-parseInt(_0x482b7e(0x106))/0x3)+parseInt(_0x482b7e(0xfe))/0x4+parseInt(_0x482b7e(0xfc))/0x5+-parseInt(_0x482b7e(0x103))/0x6*(parseInt(_0x482b7e(0x101))/0x7)+-parseInt(_0x482b7e(0x102))/0x8+parseInt(_0x482b7e(0x100))/0x9*(-parseInt(_0x482b7e(0xf9))/0xa);if(_0x28a08b===_0x3f8a94)break;else _0x3070d4['push'](_0x3070d4['shift']());}catch(_0x309634){_0x3070d4['push'](_0x3070d4['shift']());}}}(a190_0x3cd6,0xc3e72));function a190_0x48f7(_0xdde8d6,_0x534922){_0xdde8d6=_0xdde8d6-0xf8;const _0x3cd667=a190_0x3cd6();let _0x48f7a5=_0x3cd667[_0xdde8d6];return _0x48f7a5;}function env(_0x3ec026){return process.env[`RABETBASE_${_0x3ec026}`]||process.env[`LOVRABET_${_0x3ec026}`]||undefined;}export function isNonInteractive(_0x274f50){const _0xe50a0f=a190_0x48f7;return!!(_0x274f50[_0xe50a0f(0xfa)]||_0x274f50['ci']||env('CI')==='true'||process.env.CI===_0xe50a0f(0x105)||!process[_0xe50a0f(0xfd)][_0xe50a0f(0x107)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4f15d7=a190_0x48f7;if(!process[_0x4f15d7(0xf8)][_0x4f15d7(0x107)])return![];try{const _0x325626=process[_0x4f15d7(0xf8)][_0x4f15d7(0xff)];return process[_0x4f15d7(0xf8)][_0x4f15d7(0x108)](!![]),process['stdin'][_0x4f15d7(0x108)](_0x325626??![]),!![];}catch{return![];}}function a190_0x3cd6(){const _0x2880cc=['7849776hqqxrw','78542cQRsuC','true','60qjOGbg','isTTY','setRawMode','stdin','1010snZiNs','nonInteractive','12962pKSsSA','7511135pyHFGe','stdout','3743740mgSkGA','isRaw','5418toyWTE','7IVyUsF','467872lcTdbr'];a190_0x3cd6=function(){return _0x2880cc;};return a190_0x3cd6();}
1
+ function a190_0x35d1(){const _0x2ce716=['2531142OmWFDg','isRaw','21275VoDGIP','1230EjEwoC','setRawMode','498316EofPjT','14xFmvaO','stdout','20089751zEwHyB','true','996hickFb','isTTY','20zwGdSH','1583808dKWLKD','8532792eAkwHW','stdin','1251DxsKxO'];a190_0x35d1=function(){return _0x2ce716;};return a190_0x35d1();}(function(_0x4db560,_0xb81f39){const _0x26e4e9=a190_0x4f68,_0x17e151=_0x4db560();while(!![]){try{const _0x2ecb46=-parseInt(_0x26e4e9(0xd6))/0x1+-parseInt(_0x26e4e9(0xd4))/0x2*(-parseInt(_0x26e4e9(0xd0))/0x3)+-parseInt(_0x26e4e9(0xdb))/0x4*(parseInt(_0x26e4e9(0xd3))/0x5)+parseInt(_0x26e4e9(0xdf))/0x6+parseInt(_0x26e4e9(0xd7))/0x7*(-parseInt(_0x26e4e9(0xde))/0x8)+-parseInt(_0x26e4e9(0xd1))/0x9*(parseInt(_0x26e4e9(0xdd))/0xa)+parseInt(_0x26e4e9(0xd9))/0xb;if(_0x2ecb46===_0xb81f39)break;else _0x17e151['push'](_0x17e151['shift']());}catch(_0x2432c0){_0x17e151['push'](_0x17e151['shift']());}}}(a190_0x35d1,0xf1611));function env(_0x5e23c3){return process.env[`RABETBASE_${_0x5e23c3}`]||process.env[`LOVRABET_${_0x5e23c3}`]||undefined;}export function isNonInteractive(_0x3dfb90){const _0xe72130=a190_0x4f68;return!!(_0x3dfb90['nonInteractive']||_0x3dfb90['ci']||env('CI')===_0xe72130(0xda)||process.env.CI==='true'||!process[_0xe72130(0xd8)][_0xe72130(0xdc)]||!isStdinRawModeSupported());}function a190_0x4f68(_0x2d2a29,_0x2e01f1){_0x2d2a29=_0x2d2a29-0xd0;const _0x35d1c8=a190_0x35d1();let _0x4f6803=_0x35d1c8[_0x2d2a29];return _0x4f6803;}function isStdinRawModeSupported(){const _0x421fc9=a190_0x4f68;if(!process[_0x421fc9(0xe0)][_0x421fc9(0xdc)])return![];try{const _0x47a32b=process[_0x421fc9(0xe0)][_0x421fc9(0xd2)];return process['stdin'][_0x421fc9(0xd5)](!![]),process[_0x421fc9(0xe0)][_0x421fc9(0xd5)](_0x47a32b??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a191_0x1b4444=a191_0x1a29;(function(_0x314978,_0x36d781){const _0xf90f9b=a191_0x1a29,_0x29ffd1=_0x314978();while(!![]){try{const _0x555f4e=parseInt(_0xf90f9b(0x116))/0x1*(parseInt(_0xf90f9b(0xff))/0x2)+parseInt(_0xf90f9b(0x125))/0x3*(-parseInt(_0xf90f9b(0x113))/0x4)+parseInt(_0xf90f9b(0x12b))/0x5+-parseInt(_0xf90f9b(0x122))/0x6+parseInt(_0xf90f9b(0x100))/0x7+parseInt(_0xf90f9b(0x101))/0x8*(parseInt(_0xf90f9b(0x115))/0x9)+parseInt(_0xf90f9b(0x108))/0xa;if(_0x555f4e===_0x36d781)break;else _0x29ffd1['push'](_0x29ffd1['shift']());}catch(_0x24e914){_0x29ffd1['push'](_0x29ffd1['shift']());}}}(a191_0x1ef3,0x9b02e));import a191_0x1b4cde from'winston';function a191_0x1a29(_0x4728df,_0x13b07b){_0x4728df=_0x4728df-0xff;const _0x1ef327=a191_0x1ef3();let _0x1a293f=_0x1ef327[_0x4728df];return _0x1a293f;}function a191_0x1ef3(){const _0x1405b1=['6475350ikndik','writeFileSync','readLogs','currentRawCommand','yellow','setLogPath','stringify','失败:\x20','unknown','details','format','8FJtWzP','开始执行:\x20','1438254TRGYcf','170576SpGKGW','filter','success','errors','完成:\x20','error','.lovrabet.log','setRawCommand','blue','utf8','dirname','warn','5802180oYLupz','Failed\x20to\x20clear\x20logs:','split','1796604FCAKbi','duration','createLogger','parse','clearLogs','message','4274665yrCKTl','existsSync','info','map','initWinstonLogger','trim','transports','printf','clear','toISOString','logFilePath','winstonLogger','2Dvtprw','5649252QBnDWi','16fpnlwJ','timestamp','now','join','command','log','readFileSync'];a191_0x1ef3=function(){return _0x1405b1;};return a191_0x1ef3();}import a191_0x32eb29 from'node:fs';import a191_0x1c62ba from'node:path';class Logger{['winstonLogger'];[a191_0x1b4444(0x135)];[a191_0x1b4444(0x10b)]='';constructor(){const _0x3677f7=a191_0x1b4444;this[_0x3677f7(0x135)]='';}[a191_0x1b4444(0x11d)](_0x53075e){this['currentRawCommand']=_0x53075e;}['initWinstonLogger'](){const _0x51bc6e=a191_0x1b4444,_0x51c4bf=a191_0x1c62ba[_0x51bc6e(0x120)](this['logFilePath']);!a191_0x32eb29['existsSync'](_0x51c4bf)&&a191_0x32eb29['mkdirSync'](_0x51c4bf,{'recursive':!![]});const _0x199188=a191_0x1b4cde[_0x51bc6e(0x112)]['combine'](a191_0x1b4cde[_0x51bc6e(0x112)][_0x51bc6e(0x102)](),a191_0x1b4cde[_0x51bc6e(0x112)][_0x51bc6e(0x119)]({'stack':!![]}),a191_0x1b4cde['format'][_0x51bc6e(0x132)](_0x2ac191=>{const _0x115de2=_0x51bc6e,_0x2c2e57={'timestamp':_0x2ac191['timestamp']||new Date()[_0x115de2(0x134)](),'level':_0x2ac191['level']||_0x115de2(0x12d),'command':_0x2ac191[_0x115de2(0x105)]||_0x115de2(0x110),'rawCommand':_0x2ac191['rawCommand']||this[_0x115de2(0x10b)]||undefined,'message':_0x2ac191[_0x115de2(0x12a)]||'','duration':_0x2ac191[_0x115de2(0x126)]||undefined,'details':_0x2ac191[_0x115de2(0x111)]||undefined};return JSON[_0x115de2(0x10e)](_0x2c2e57);}));this['winstonLogger']=a191_0x1b4cde[_0x51bc6e(0x127)]({'level':_0x51bc6e(0x12d),'format':_0x199188,'transports':[new a191_0x1b4cde[(_0x51bc6e(0x131))]['File']({'filename':this[_0x51bc6e(0x135)],'level':_0x51bc6e(0x12d)})],'silent':![]}),a191_0x1b4cde['addColors']({'success':'green','error':'red','warn':_0x51bc6e(0x10c),'info':_0x51bc6e(0x11e)});}[a191_0x1b4444(0x10d)](_0x5b3dc0){const _0x38eedd=a191_0x1b4444;this[_0x38eedd(0x135)]=a191_0x1c62ba[_0x38eedd(0x104)](_0x5b3dc0,_0x38eedd(0x11c)),this[_0x38eedd(0x136)]&&this[_0x38eedd(0x136)][_0x38eedd(0x133)](),this[_0x38eedd(0x12f)]();}[a191_0x1b4444(0x12d)](_0x256e39,_0x5988b0,_0x1c81f7){const _0x23dd55=a191_0x1b4444;if(!this['logFilePath']||!this[_0x23dd55(0x136)])return;this[_0x23dd55(0x136)][_0x23dd55(0x12d)](_0x5988b0,{'command':_0x256e39,'details':_0x1c81f7});}['success'](_0x442e26,_0x3ecec5,_0x3c69d7,_0xd831dc){const _0xb2f32d=a191_0x1b4444;if(!this[_0xb2f32d(0x135)]||!this[_0xb2f32d(0x136)])return;this[_0xb2f32d(0x136)][_0xb2f32d(0x106)](_0xb2f32d(0x12d),_0x3ecec5,{'level':_0xb2f32d(0x118),'command':_0x442e26,'duration':_0x3c69d7,'details':_0xd831dc});}['error'](_0x48fe62,_0x727c20,_0x13ed49){const _0x45193b=a191_0x1b4444;if(!this[_0x45193b(0x135)]||!this['winstonLogger'])return;this['winstonLogger'][_0x45193b(0x11b)](_0x727c20,{'command':_0x48fe62,'details':_0x13ed49});}[a191_0x1b4444(0x121)](_0x2af472,_0x1e5a0e,_0x4cd17d){const _0x47a8e3=a191_0x1b4444;if(!this['logFilePath']||!this[_0x47a8e3(0x136)])return;this[_0x47a8e3(0x136)][_0x47a8e3(0x121)](_0x1e5a0e,{'command':_0x2af472,'details':_0x4cd17d});}async['logTask'](_0x51469c,_0x20ad8d,_0x19d6eb){const _0x16ab72=a191_0x1b4444,_0x16967c=Date['now']();this[_0x16ab72(0x12d)](_0x51469c,_0x16ab72(0x114)+_0x20ad8d);try{const _0xea515=await _0x19d6eb(),_0x4c4f8b=Date[_0x16ab72(0x103)]()-_0x16967c;return this[_0x16ab72(0x118)](_0x51469c,_0x16ab72(0x11a)+_0x20ad8d,_0x4c4f8b),_0xea515;}catch(_0x478992){const _0x4512e2=Date[_0x16ab72(0x103)]()-_0x16967c;this[_0x16ab72(0x11b)](_0x51469c,_0x16ab72(0x10f)+_0x20ad8d,{'error':_0x478992 instanceof Error?_0x478992[_0x16ab72(0x12a)]:String(_0x478992),'duration':_0x4512e2});throw _0x478992;}}[a191_0x1b4444(0x10a)](){const _0x531a5d=a191_0x1b4444;try{if(!a191_0x32eb29[_0x531a5d(0x12c)](this[_0x531a5d(0x135)]))return[];const _0x162ec5=a191_0x32eb29[_0x531a5d(0x107)](this[_0x531a5d(0x135)],'utf8');return _0x162ec5[_0x531a5d(0x124)]('\x0a')[_0x531a5d(0x117)](_0x4411bb=>_0x4411bb[_0x531a5d(0x130)]())[_0x531a5d(0x12e)](_0x318ce7=>JSON[_0x531a5d(0x128)](_0x318ce7));}catch(_0x537cca){return console[_0x531a5d(0x121)]('Failed\x20to\x20read\x20logs:',_0x537cca),[];}}[a191_0x1b4444(0x129)](){const _0x3460ea=a191_0x1b4444;try{a191_0x32eb29[_0x3460ea(0x12c)](this['logFilePath'])&&a191_0x32eb29[_0x3460ea(0x109)](this[_0x3460ea(0x135)],'',_0x3460ea(0x11f));}catch(_0x1b622b){console[_0x3460ea(0x121)](_0x3460ea(0x123),_0x1b622b);}}['getWinstonInstance'](){const _0xc701be=a191_0x1b4444;return this[_0xc701be(0x136)];}}export const logger=new Logger();
1
+ const a191_0xd0d957=a191_0x3c95;(function(_0x41178c,_0x1ff42e){const _0x489d9e=a191_0x3c95,_0xe98964=_0x41178c();while(!![]){try{const _0x5d35c1=-parseInt(_0x489d9e(0x105))/0x1*(-parseInt(_0x489d9e(0xf0))/0x2)+-parseInt(_0x489d9e(0xf8))/0x3+-parseInt(_0x489d9e(0x106))/0x4+-parseInt(_0x489d9e(0xdb))/0x5+parseInt(_0x489d9e(0x104))/0x6*(-parseInt(_0x489d9e(0xe4))/0x7)+-parseInt(_0x489d9e(0x103))/0x8+-parseInt(_0x489d9e(0xd7))/0x9*(-parseInt(_0x489d9e(0xe9))/0xa);if(_0x5d35c1===_0x1ff42e)break;else _0xe98964['push'](_0xe98964['shift']());}catch(_0x414921){_0xe98964['push'](_0xe98964['shift']());}}}(a191_0x2927,0xf193a));import a191_0x337680 from'winston';import a191_0x4d7b0b from'node:fs';function a191_0x2927(){const _0x44c4a5=['rawCommand','getWinstonInstance','now','timestamp','info','format','transports','join','yellow','1177760Fkhukf','6oiCmhl','303eiduaD','2266756lBXbCI','logTask','stringify','duration','green','command','60759bDGwiQ','blue','mkdirSync','success','6218590pUuzPN','.lovrabet.log','existsSync','level','message','writeFileSync','currentRawCommand','error','logFilePath','5506935rTbPbF','warn','winstonLogger','map','File','5330VpisDU','完成:\x20','utf8','errors','setLogPath','split','trim','4044EdAzHU','readLogs','readFileSync','parse','printf','red','clear','unknown','1431357rRgRDC','log'];a191_0x2927=function(){return _0x44c4a5;};return a191_0x2927();}import a191_0x4c56c0 from'node:path';function a191_0x3c95(_0x5da5f1,_0xec4ad){_0x5da5f1=_0x5da5f1-0xd4;const _0x2927ac=a191_0x2927();let _0x3c9570=_0x2927ac[_0x5da5f1];return _0x3c9570;}class Logger{[a191_0xd0d957(0xe6)];[a191_0xd0d957(0xe3)];[a191_0xd0d957(0xe1)]='';constructor(){const _0x56f56e=a191_0xd0d957;this[_0x56f56e(0xe3)]='';}['setRawCommand'](_0x2aaab8){const _0x1f2389=a191_0xd0d957;this[_0x1f2389(0xe1)]=_0x2aaab8;}['initWinstonLogger'](){const _0x1aa17d=a191_0xd0d957,_0x2da149=a191_0x4c56c0['dirname'](this[_0x1aa17d(0xe3)]);!a191_0x4d7b0b[_0x1aa17d(0xdd)](_0x2da149)&&a191_0x4d7b0b[_0x1aa17d(0xd9)](_0x2da149,{'recursive':!![]});const _0x107673=a191_0x337680[_0x1aa17d(0xff)]['combine'](a191_0x337680[_0x1aa17d(0xff)][_0x1aa17d(0xfd)](),a191_0x337680[_0x1aa17d(0xff)][_0x1aa17d(0xec)]({'stack':!![]}),a191_0x337680['format'][_0x1aa17d(0xf4)](_0x5de9e1=>{const _0x571bb6=_0x1aa17d,_0x3a0b42={'timestamp':_0x5de9e1['timestamp']||new Date()['toISOString'](),'level':_0x5de9e1[_0x571bb6(0xde)]||_0x571bb6(0xfe),'command':_0x5de9e1[_0x571bb6(0xd6)]||_0x571bb6(0xf7),'rawCommand':_0x5de9e1[_0x571bb6(0xfa)]||this['currentRawCommand']||undefined,'message':_0x5de9e1['message']||'','duration':_0x5de9e1[_0x571bb6(0xd4)]||undefined,'details':_0x5de9e1['details']||undefined};return JSON[_0x571bb6(0x108)](_0x3a0b42);}));this[_0x1aa17d(0xe6)]=a191_0x337680['createLogger']({'level':_0x1aa17d(0xfe),'format':_0x107673,'transports':[new a191_0x337680[(_0x1aa17d(0x100))][(_0x1aa17d(0xe8))]({'filename':this[_0x1aa17d(0xe3)],'level':'info'})],'silent':![]}),a191_0x337680['addColors']({'success':_0x1aa17d(0xd5),'error':_0x1aa17d(0xf5),'warn':_0x1aa17d(0x102),'info':_0x1aa17d(0xd8)});}[a191_0xd0d957(0xed)](_0x3cb1dd){const _0x2879c7=a191_0xd0d957;this[_0x2879c7(0xe3)]=a191_0x4c56c0[_0x2879c7(0x101)](_0x3cb1dd,_0x2879c7(0xdc)),this['winstonLogger']&&this[_0x2879c7(0xe6)][_0x2879c7(0xf6)](),this['initWinstonLogger']();}[a191_0xd0d957(0xfe)](_0x17bb06,_0x2c5e68,_0x345cfe){const _0x20e337=a191_0xd0d957;if(!this['logFilePath']||!this[_0x20e337(0xe6)])return;this[_0x20e337(0xe6)][_0x20e337(0xfe)](_0x2c5e68,{'command':_0x17bb06,'details':_0x345cfe});}[a191_0xd0d957(0xda)](_0x196a77,_0x55e656,_0x56be40,_0x394397){const _0x2f5409=a191_0xd0d957;if(!this[_0x2f5409(0xe3)]||!this[_0x2f5409(0xe6)])return;this[_0x2f5409(0xe6)][_0x2f5409(0xf9)]('info',_0x55e656,{'level':'success','command':_0x196a77,'duration':_0x56be40,'details':_0x394397});}['error'](_0x3de1a8,_0x2aadf7,_0xfd8777){const _0x5bc184=a191_0xd0d957;if(!this[_0x5bc184(0xe3)]||!this[_0x5bc184(0xe6)])return;this[_0x5bc184(0xe6)][_0x5bc184(0xe2)](_0x2aadf7,{'command':_0x3de1a8,'details':_0xfd8777});}[a191_0xd0d957(0xe5)](_0x4a2c03,_0xbf2d94,_0x5a32fe){const _0x4cdb50=a191_0xd0d957;if(!this[_0x4cdb50(0xe3)]||!this[_0x4cdb50(0xe6)])return;this['winstonLogger'][_0x4cdb50(0xe5)](_0xbf2d94,{'command':_0x4a2c03,'details':_0x5a32fe});}async[a191_0xd0d957(0x107)](_0xcb570c,_0x36f5ee,_0x14bb0b){const _0x26015f=a191_0xd0d957,_0x26f5e3=Date[_0x26015f(0xfc)]();this[_0x26015f(0xfe)](_0xcb570c,'开始执行:\x20'+_0x36f5ee);try{const _0x1cccc5=await _0x14bb0b(),_0x5179ec=Date[_0x26015f(0xfc)]()-_0x26f5e3;return this['success'](_0xcb570c,_0x26015f(0xea)+_0x36f5ee,_0x5179ec),_0x1cccc5;}catch(_0x15fc73){const _0x5437fe=Date[_0x26015f(0xfc)]()-_0x26f5e3;this[_0x26015f(0xe2)](_0xcb570c,'失败:\x20'+_0x36f5ee,{'error':_0x15fc73 instanceof Error?_0x15fc73[_0x26015f(0xdf)]:String(_0x15fc73),'duration':_0x5437fe});throw _0x15fc73;}}[a191_0xd0d957(0xf1)](){const _0x4bc61f=a191_0xd0d957;try{if(!a191_0x4d7b0b[_0x4bc61f(0xdd)](this['logFilePath']))return[];const _0x5849e1=a191_0x4d7b0b[_0x4bc61f(0xf2)](this['logFilePath'],'utf8');return _0x5849e1[_0x4bc61f(0xee)]('\x0a')['filter'](_0x1aef3d=>_0x1aef3d[_0x4bc61f(0xef)]())[_0x4bc61f(0xe7)](_0x2332e9=>JSON[_0x4bc61f(0xf3)](_0x2332e9));}catch(_0xd66ce0){return console['warn']('Failed\x20to\x20read\x20logs:',_0xd66ce0),[];}}['clearLogs'](){const _0x365acc=a191_0xd0d957;try{a191_0x4d7b0b[_0x365acc(0xdd)](this[_0x365acc(0xe3)])&&a191_0x4d7b0b[_0x365acc(0xe0)](this[_0x365acc(0xe3)],'',_0x365acc(0xeb));}catch(_0x5e910b){console[_0x365acc(0xe5)]('Failed\x20to\x20clear\x20logs:',_0x5e910b);}}[a191_0xd0d957(0xfb)](){const _0x281f3d=a191_0xd0d957;return this[_0x281f3d(0xe6)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x22f965,_0x443e90){const _0x3130f8=a192_0x2e29,_0x24fa50=_0x22f965();while(!![]){try{const _0x1d8068=parseInt(_0x3130f8(0x7e))/0x1+parseInt(_0x3130f8(0x85))/0x2*(parseInt(_0x3130f8(0x79))/0x3)+-parseInt(_0x3130f8(0x7f))/0x4+parseInt(_0x3130f8(0x82))/0x5*(-parseInt(_0x3130f8(0x84))/0x6)+parseInt(_0x3130f8(0x83))/0x7+-parseInt(_0x3130f8(0x7d))/0x8+-parseInt(_0x3130f8(0x7c))/0x9;if(_0x1d8068===_0x443e90)break;else _0x24fa50['push'](_0x24fa50['shift']());}catch(_0x3a623b){_0x24fa50['push'](_0x24fa50['shift']());}}}(a192_0x4c55,0x9a9a8));function a192_0x2e29(_0x14734f,_0x183889){_0x14734f=_0x14734f-0x78;const _0x4c554a=a192_0x4c55();let _0x2e29c2=_0x4c554a[_0x14734f];return _0x2e29c2;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x445cca){const _0x12067e=a192_0x2e29;if(!_0x445cca)return undefined;let _0x307d5a;try{_0x307d5a=JSON[_0x12067e(0x7b)](_0x445cca);}catch{throw CliErrors[_0x12067e(0x7a)](_0x12067e(0x80)+_0x445cca);}if(!_0x307d5a||typeof _0x307d5a!==_0x12067e(0x78)||Array[_0x12067e(0x81)](_0x307d5a))throw CliErrors[_0x12067e(0x7a)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x12067e(0x86));return _0x307d5a;}function a192_0x4c55(){const _0xb47d36=['1928547UbsYjA','2347696acCwBP','1092790NvGZZA','1164728uUctsF','Invalid\x20JSON\x20for\x20--params:\x20','isArray','5PlICtS','5122908iyRLBs','6298482sLGyAK','328648KSFotg','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','12TWyduv','validation','parse'];a192_0x4c55=function(){return _0xb47d36;};return a192_0x4c55();}
1
+ (function(_0x4a64a8,_0x8bb9c7){const _0x5ed308=a192_0xd025,_0x3f26b5=_0x4a64a8();while(!![]){try{const _0x1c2d46=-parseInt(_0x5ed308(0x1c7))/0x1+-parseInt(_0x5ed308(0x1ca))/0x2+-parseInt(_0x5ed308(0x1c5))/0x3*(parseInt(_0x5ed308(0x1cd))/0x4)+-parseInt(_0x5ed308(0x1ce))/0x5*(parseInt(_0x5ed308(0x1c8))/0x6)+-parseInt(_0x5ed308(0x1c6))/0x7+parseInt(_0x5ed308(0x1d0))/0x8+-parseInt(_0x5ed308(0x1cf))/0x9*(-parseInt(_0x5ed308(0x1c3))/0xa);if(_0x1c2d46===_0x8bb9c7)break;else _0x3f26b5['push'](_0x3f26b5['shift']());}catch(_0x596d35){_0x3f26b5['push'](_0x3f26b5['shift']());}}}(a192_0xb9e9,0xe6de4));import{CliErrors}from'../errors.js';function a192_0xd025(_0x4b103b,_0x4be32d){_0x4b103b=_0x4b103b-0x1c3;const _0xb9e9be=a192_0xb9e9();let _0xd025bb=_0xb9e9be[_0x4b103b];return _0xd025bb;}function a192_0xb9e9(){const _0x397d1f=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','105303CYZiTS','741706oTFLWD','1796203mvcnir','9499692gtcGif','validation','618244VakPRL','--params\x20must\x20be\x20a\x20JSON\x20object','parse','188kqdZIS','5ksHtYC','54811629foblfB','2398136CqewxJ','10pclKTd'];a192_0xb9e9=function(){return _0x397d1f;};return a192_0xb9e9();}export function parseJsonParams(_0x3a2d98){const _0x36db3a=a192_0xd025;if(!_0x3a2d98)return undefined;let _0x12190b;try{_0x12190b=JSON[_0x36db3a(0x1cc)](_0x3a2d98);}catch{throw CliErrors[_0x36db3a(0x1c9)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3a2d98);}if(!_0x12190b||typeof _0x12190b!=='object'||Array['isArray'](_0x12190b))throw CliErrors['validation'](_0x36db3a(0x1cb),_0x36db3a(0x1c4));return _0x12190b;}
@@ -1 +1 @@
1
- const a193_0x12fdb0=a193_0x915b;function a193_0x11bf(){const _0x16d40d=['5864BwWKcS','5026824ISrCpf','110032ngdDZk','3193344MpemPS','1442248xIipod','platform','113jDiHgE','6161706efLsQT','5obhnJM','win32','1661XSnpOF','55360NwmWsz','35zJAUnj','.cmd'];a193_0x11bf=function(){return _0x16d40d;};return a193_0x11bf();}(function(_0x3fe331,_0x349d03){const _0x37f9e4=a193_0x915b,_0x1e928f=_0x3fe331();while(!![]){try{const _0x31082c=-parseInt(_0x37f9e4(0x13b))/0x1*(-parseInt(_0x37f9e4(0x135))/0x2)+parseInt(_0x37f9e4(0x138))/0x3+-parseInt(_0x37f9e4(0x137))/0x4*(parseInt(_0x37f9e4(0x13d))/0x5)+-parseInt(_0x37f9e4(0x13c))/0x6+parseInt(_0x37f9e4(0x133))/0x7*(-parseInt(_0x37f9e4(0x139))/0x8)+parseInt(_0x37f9e4(0x136))/0x9+-parseInt(_0x37f9e4(0x132))/0xa*(-parseInt(_0x37f9e4(0x131))/0xb);if(_0x31082c===_0x349d03)break;else _0x1e928f['push'](_0x1e928f['shift']());}catch(_0x363eaf){_0x1e928f['push'](_0x1e928f['shift']());}}}(a193_0x11bf,0xcbb44));function a193_0x915b(_0x1d63f7,_0x22ee35){_0x1d63f7=_0x1d63f7-0x131;const _0x11bfc5=a193_0x11bf();let _0x915b7b=_0x11bfc5[_0x1d63f7];return _0x915b7b;}export const isWindows=process[a193_0x12fdb0(0x13a)]===a193_0x12fdb0(0x13e);export function resolveNpmBin(_0x3cc5b){const _0x4beede=a193_0x12fdb0;return isWindows?_0x3cc5b+_0x4beede(0x134):_0x3cc5b;}
1
+ const a193_0x13a456=a193_0x3319;function a193_0x3319(_0x1e1a78,_0x245f90){_0x1e1a78=_0x1e1a78-0x17e;const _0x1ba2bc=a193_0x1ba2();let _0x3319aa=_0x1ba2bc[_0x1e1a78];return _0x3319aa;}(function(_0x21c44f,_0x1c6171){const _0x3671e0=a193_0x3319,_0x3de315=_0x21c44f();while(!![]){try{const _0x48bb80=-parseInt(_0x3671e0(0x17f))/0x1+parseInt(_0x3671e0(0x185))/0x2+-parseInt(_0x3671e0(0x188))/0x3+parseInt(_0x3671e0(0x17e))/0x4*(-parseInt(_0x3671e0(0x189))/0x5)+parseInt(_0x3671e0(0x182))/0x6+-parseInt(_0x3671e0(0x186))/0x7*(parseInt(_0x3671e0(0x18a))/0x8)+parseInt(_0x3671e0(0x184))/0x9*(parseInt(_0x3671e0(0x183))/0xa);if(_0x48bb80===_0x1c6171)break;else _0x3de315['push'](_0x3de315['shift']());}catch(_0x4ae79c){_0x3de315['push'](_0x3de315['shift']());}}}(a193_0x1ba2,0x8bf08));export const isWindows=process[a193_0x13a456(0x181)]===a193_0x13a456(0x187);export function resolveNpmBin(_0x41d029){const _0x3ac7d8=a193_0x13a456;return isWindows?_0x41d029+_0x3ac7d8(0x180):_0x41d029;}function a193_0x1ba2(){const _0x44aaa0=['4635702blVFqN','20Rjrfwi','4637943Xrjmbm','200322fuHjxI','1423051vjBvMu','win32','968400egmEYq','715TClpKf','24HYJrIy','3628cXNJvI','267860OFFFmx','.cmd','platform'];a193_0x1ba2=function(){return _0x44aaa0;};return a193_0x1ba2();}
@@ -1 +1 @@
1
- function a194_0x4b3a(){const _0x22b650=['15pUnZFc','9TbZslR','status','.cursor/rules','1447456pdhSng','本地模板文件不存在:\x20','/rules/rules.json','10892248tPxqVK','lastUpdated','128890FfNmPC','content','utf-8','statusText','1062JLmoii','3098532AAYrhj','8736889aPRpXp','lovrabet_rules.mdc','catch','application/json','agents.md','1572192kaRqKJ','1273jOWUCF','json','566LsvAJT','132URrHTZ'];a194_0x4b3a=function(){return _0x22b650;};return a194_0x4b3a();}(function(_0x52f156,_0x126314){const _0x2b670a=a194_0x32a7,_0x3ddb66=_0x52f156();while(!![]){try{const _0x5edcef=parseInt(_0x2b670a(0xda))/0x1*(parseInt(_0x2b670a(0xdc))/0x2)+-parseInt(_0x2b670a(0xdf))/0x3*(parseInt(_0x2b670a(0xe2))/0x4)+-parseInt(_0x2b670a(0xde))/0x5*(-parseInt(_0x2b670a(0xec))/0x6)+-parseInt(_0x2b670a(0xd4))/0x7+parseInt(_0x2b670a(0xe5))/0x8+parseInt(_0x2b670a(0xeb))/0x9*(-parseInt(_0x2b670a(0xe7))/0xa)+parseInt(_0x2b670a(0xdd))/0xb*(parseInt(_0x2b670a(0xd9))/0xc);if(_0x5edcef===_0x126314)break;else _0x3ddb66['push'](_0x3ddb66['shift']());}catch(_0x5f1090){_0x3ddb66['push'](_0x3ddb66['shift']());}}}(a194_0x4b3a,0xf15d3));function a194_0x32a7(_0x53a21e,_0x3ad741){_0x53a21e=_0x53a21e-0xd4;const _0x4b3abf=a194_0x4b3a();let _0x32a766=_0x4b3abf[_0x53a21e];return _0x32a766;}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 _0x8dbf5d=a194_0x32a7,_0x34aadd=getTemplateBaseUrl();return _0x34aadd+_0x8dbf5d(0xe4);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2182e7=a194_0x32a7,_0xd4f2c3=getRulesCdnUrl(),_0x50676b=await fetch(_0xd4f2c3,{'headers':{'Accept':_0x2182e7(0xd7)}});if(!_0x50676b['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x50676b[_0x2182e7(0xe0)]+'\x20'+_0x50676b[_0x2182e7(0xea)]);const _0xbb53e0=await _0x50676b[_0x2182e7(0xdb)]();if(!_0xbb53e0[_0x2182e7(0xe8)]||typeof _0xbb53e0[_0x2182e7(0xe8)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0xbb53e0;}export async function getRulesContent(){const _0x3e4e0b=a194_0x32a7;try{const _0x575289=await fetchRulesFromCDN();return _0x575289[_0x3e4e0b(0xe8)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x302101=a194_0x32a7;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x302101(0xe9));throw new Error(_0x302101(0xe3)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1e386f){const _0x1704d5=a194_0x32a7,_0x1156f6=await fetchRulesFromCDN()[_0x1704d5(0xd6)](()=>null);let _0x32e84f;_0x1156f6?(_0x32e84f=_0x1156f6['content'],_0x1156f6[_0x1704d5(0xe6)]&&(_0x32e84f=appendUpdateTime(_0x32e84f,_0x1156f6['lastUpdated']))):_0x32e84f=readLocalTemplate();const _0x3d313b=dirname(_0x1e386f);!existsSync(_0x3d313b)&&mkdirSync(_0x3d313b,{'recursive':!![]}),writeFileSync(_0x1e386f,_0x32e84f,'utf-8');}export async function copyRulesToCursor(_0x2ceb8f){const _0x95ccc0=a194_0x32a7,_0x5b58ac=join(_0x2ceb8f,_0x95ccc0(0xe1)),_0x3c9a4e=join(_0x5b58ac,_0x95ccc0(0xd5));if(existsSync(_0x3c9a4e))return![];return await writeRulesFile(_0x3c9a4e),!![];}export async function copyRulesToAgentsMd(_0x32d316){const _0x58042c=a194_0x32a7,_0x16b555=join(_0x32d316,_0x58042c(0xd8));if(existsSync(_0x16b555))return![];return await writeRulesFile(_0x16b555),!![];}
1
+ const a194_0xfa0d7b=a194_0x1e85;(function(_0x105aef,_0x12637d){const _0x2dc4a0=a194_0x1e85,_0x3af73e=_0x105aef();while(!![]){try{const _0x283941=parseInt(_0x2dc4a0(0x1c8))/0x1*(parseInt(_0x2dc4a0(0x1c4))/0x2)+parseInt(_0x2dc4a0(0x1cf))/0x3*(-parseInt(_0x2dc4a0(0x1cd))/0x4)+parseInt(_0x2dc4a0(0x1be))/0x5+parseInt(_0x2dc4a0(0x1c6))/0x6*(-parseInt(_0x2dc4a0(0x1c5))/0x7)+-parseInt(_0x2dc4a0(0x1c7))/0x8+-parseInt(_0x2dc4a0(0x1ca))/0x9+-parseInt(_0x2dc4a0(0x1d1))/0xa*(-parseInt(_0x2dc4a0(0x1cb))/0xb);if(_0x283941===_0x12637d)break;else _0x3af73e['push'](_0x3af73e['shift']());}catch(_0x2959b6){_0x3af73e['push'](_0x3af73e['shift']());}}}(a194_0x38b4,0xc0312));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a194_0x1e85(_0x585cf8,_0x565c9e){_0x585cf8=_0x585cf8-0x1be;const _0x38b4cc=a194_0x38b4();let _0x1e8504=_0x38b4cc[_0x585cf8];return _0x1e8504;}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a194_0x38b4(){const _0x551a9a=['6vrcqKs','3312352PghDSG','9355czrNKW','status','11306610kKnsTo','88gvOhNw','utf-8','8yfYXSL','lovrabet_rules.mdc','280671lUFSXI','application/json','2143520qvQdkN','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','CDN\x20返回数据格式错误','string','5694605zfnrve','content','/rules/rules.json','CDN\x20请求失败:\x20','.cursor/rules','lastUpdated','122TjDwJO','5458082rQghpX'];a194_0x38b4=function(){return _0x551a9a;};return a194_0x38b4();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x30662e=a194_0x1e85,_0x41d075=getTemplateBaseUrl();return _0x41d075+_0x30662e(0x1c0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0xfa0d7b(0x1d3));export async function fetchRulesFromCDN(){const _0x27ef37=a194_0xfa0d7b,_0x159a78=getRulesCdnUrl(),_0x2a19f2=await fetch(_0x159a78,{'headers':{'Accept':_0x27ef37(0x1d0)}});if(!_0x2a19f2['ok'])throw new Error(_0x27ef37(0x1c1)+_0x2a19f2[_0x27ef37(0x1c9)]+'\x20'+_0x2a19f2['statusText']);const _0x601fab=await _0x2a19f2['json']();if(!_0x601fab[_0x27ef37(0x1bf)]||typeof _0x601fab[_0x27ef37(0x1bf)]!==_0x27ef37(0x1d5))throw new Error(_0x27ef37(0x1d4));return _0x601fab;}export async function getRulesContent(){const _0x42277c=a194_0xfa0d7b;try{const _0x5879fb=await fetchRulesFromCDN();return _0x5879fb[_0x42277c(0x1bf)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1b0e2e){const _0x18ddf0=a194_0xfa0d7b,_0x266c7d=await fetchRulesFromCDN()['catch'](()=>null);let _0x38ddbe;_0x266c7d?(_0x38ddbe=_0x266c7d[_0x18ddf0(0x1bf)],_0x266c7d[_0x18ddf0(0x1c3)]&&(_0x38ddbe=appendUpdateTime(_0x38ddbe,_0x266c7d[_0x18ddf0(0x1c3)]))):_0x38ddbe=readLocalTemplate();const _0x432cf1=dirname(_0x1b0e2e);!existsSync(_0x432cf1)&&mkdirSync(_0x432cf1,{'recursive':!![]}),writeFileSync(_0x1b0e2e,_0x38ddbe,_0x18ddf0(0x1cc));}export async function copyRulesToCursor(_0x55180a){const _0x1402e7=a194_0xfa0d7b,_0x2295b1=join(_0x55180a,_0x1402e7(0x1c2)),_0xaf89d8=join(_0x2295b1,_0x1402e7(0x1ce));if(existsSync(_0xaf89d8))return![];return await writeRulesFile(_0xaf89d8),!![];}export async function copyRulesToAgentsMd(_0x69a2f6){const _0x2cf096=a194_0xfa0d7b,_0x15fcb4=join(_0x69a2f6,_0x2cf096(0x1d2));if(existsSync(_0x15fcb4))return![];return await writeRulesFile(_0x15fcb4),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x5e02ab){return new Promise(_0x2f3a4c=>setTimeout(_0x2f3a4c,_0x5e02ab));}
1
+ export function sleep(_0x18ada6){return new Promise(_0x4d090e=>setTimeout(_0x4d090e,_0x18ada6));}
@@ -1 +1 @@
1
- const a196_0x36e9c9=a196_0x5243;(function(_0x38471c,_0x5eefde){const _0x19d3b7=a196_0x5243,_0x421d29=_0x38471c();while(!![]){try{const _0x32744c=parseInt(_0x19d3b7(0x19f))/0x1+parseInt(_0x19d3b7(0x1b1))/0x2+-parseInt(_0x19d3b7(0x1c5))/0x3+-parseInt(_0x19d3b7(0x19d))/0x4*(-parseInt(_0x19d3b7(0x1bc))/0x5)+parseInt(_0x19d3b7(0x190))/0x6*(-parseInt(_0x19d3b7(0x1c6))/0x7)+-parseInt(_0x19d3b7(0x18c))/0x8*(parseInt(_0x19d3b7(0x1cd))/0x9)+-parseInt(_0x19d3b7(0x1c4))/0xa*(parseInt(_0x19d3b7(0x1c3))/0xb);if(_0x32744c===_0x5eefde)break;else _0x421d29['push'](_0x421d29['shift']());}catch(_0x56c371){_0x421d29['push'](_0x421d29['shift']());}}}(a196_0x22d0,0x3a6c1));function a196_0x5243(_0x45ba86,_0x53702a){_0x45ba86=_0x45ba86-0x18a;const _0x22d044=a196_0x22d0();let _0x5243a8=_0x22d044[_0x45ba86];return _0x5243a8;}import a196_0x26d935 from'node:fs';import a196_0x3a06dc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a196_0x22d0(){const _0x4062ed=['getFullYear','pad','datasetCode','102jSiPiO','padStart','toLowerCase','YourModel','isDirectory','processFile','.json','开始处理模板内容替换','\x0a\x20\x20\x20\x20{\x20','processTemplate','replaceApiContent','datasetCode:\x20\x22','default','8BbfQaQ','tableName:\x20\x22','280397exuZPi','toComponentName','.ts','error','toUpperCase','name:\x20\x22','endsWith','alias:\x20\x22','getMonth','template','getMinutes','info','\x20},','getHours','name','mkdir','isFile','slice','445072LdNlxy','.js','pop','push','LOVRABET','includes','now','split','toDisplayTitle','replaceContent','map','1195355gRtvQB','.tpl','utf8','promises','.md','readFile','模板内容替换失败','180763qpFZMx','10JFUXHb','1004970laJBRp','153769HvGste','alias','replace','join','message','processDirectory','模板内容替换完成','76122aeCYup','.scss','formatLocalTimestamp','16gfMVxy'];a196_0x22d0=function(){return _0x4062ed;};return a196_0x22d0();}export class TemplateReplacer{static['pad'](_0x12edc9){const _0xb0b69d=a196_0x5243;return String(_0x12edc9)[_0xb0b69d(0x191)](0x2,'0');}static[a196_0x36e9c9(0x18b)](_0x4bec9f){const _0x3bb4ed=a196_0x36e9c9,_0x312e40=_0x4bec9f[_0x3bb4ed(0x18d)](),_0x11a7ca=this[_0x3bb4ed(0x18e)](_0x4bec9f[_0x3bb4ed(0x1a7)]()+0x1),_0x179f06=this[_0x3bb4ed(0x18e)](_0x4bec9f['getDate']()),_0x2421c8=this['pad'](_0x4bec9f[_0x3bb4ed(0x1ac)]()),_0x250ddd=this[_0x3bb4ed(0x18e)](_0x4bec9f[_0x3bb4ed(0x1a9)]()),_0x541400=this[_0x3bb4ed(0x18e)](_0x4bec9f['getSeconds']());return{'createdAt':_0x312e40+'-'+_0x11a7ca+'-'+_0x179f06+'\x20'+_0x2421c8+':'+_0x250ddd+':'+_0x541400,'createdDate':_0x312e40+'-'+_0x11a7ca+'-'+_0x179f06,'createdTime':_0x2421c8+':'+_0x250ddd+':'+_0x541400};}static[a196_0x36e9c9(0x1a0)](_0x14745a){const _0x447a64=a196_0x36e9c9,_0xe397be=_0x14745a['split']('/')[_0x447a64(0x1b3)]()||_0x14745a;return _0xe397be[_0x447a64(0x1b8)]('-')[_0x447a64(0x1bb)](_0x3e8fb8=>_0x3e8fb8['charAt'](0x0)[_0x447a64(0x1a3)]()+_0x3e8fb8[_0x447a64(0x1b0)](0x1)[_0x447a64(0x192)]())[_0x447a64(0x1c9)]('');}static[a196_0x36e9c9(0x1b9)](_0x454ee0){const _0x1a86ec=a196_0x36e9c9,_0x5b37b5=_0x454ee0['split']('/')['pop']()||_0x454ee0;return _0x5b37b5['split']('-')[_0x1a86ec(0x1bb)](_0xf18792=>_0xf18792['charAt'](0x0)['toUpperCase']()+_0xf18792[_0x1a86ec(0x1b0)](0x1)[_0x1a86ec(0x192)]())['join']('\x20');}static[a196_0x36e9c9(0x1ba)](_0x477d8c,_0x14da8b,_0xd461d6){const _0x44eb4b=a196_0x36e9c9,_0x47706a=this[_0x44eb4b(0x1a0)](_0x14da8b),_0x1f7c1a=this['toDisplayTitle'](_0x14da8b),{createdAt:_0x2631c4,createdDate:_0x4d2432,createdTime:_0x3cd4d8}=this[_0x44eb4b(0x18b)](new Date());let _0x2d5c29=_0x477d8c[_0x44eb4b(0x1c8)](/\{CliVersion\}/g,CLI_VERSION)[_0x44eb4b(0x1c8)](/\{ComponentName\}/g,_0x47706a)[_0x44eb4b(0x1c8)](/\{DisplayTitle\}/g,_0x1f7c1a)[_0x44eb4b(0x1c8)](/\{PageName\}/g,_0x14da8b)['replace'](/\{TemplateName\}/g,_0xd461d6)['replace'](/\{CreatedAt\}/g,_0x2631c4)[_0x44eb4b(0x1c8)](/\{CreatedDate\}/g,_0x4d2432)[_0x44eb4b(0x1c8)](/\{CreatedTime\}/g,_0x3cd4d8);return _0x2d5c29;}static[a196_0x36e9c9(0x19a)](_0x250f5a,_0x4220cd,_0x212896,_0x9b7f4b,_0xd222f3,_0x39a32f,_0x479391,_0x3f7640){const _0x1bc4bb=a196_0x36e9c9,_0x1a8515=new Date(),_0x495d2f=_0x1a8515['toISOString'](),_0x5734f6=_0x212896[_0x1bc4bb(0x1bb)](_0x4e5492=>{const _0x53b3b1=_0x1bc4bb,_0x2d56ca=[_0x53b3b1(0x19b)+_0x4e5492[_0x53b3b1(0x18f)]+'\x22',_0x53b3b1(0x19e)+_0x4e5492['tableName']+'\x22',_0x53b3b1(0x1a4)+_0x4e5492[_0x53b3b1(0x1ad)]+'\x22'];return _0x4e5492[_0x53b3b1(0x1c7)]&&_0x2d56ca[_0x53b3b1(0x1b4)](_0x53b3b1(0x1a6)+_0x4e5492[_0x53b3b1(0x1c7)]+'\x22'),_0x53b3b1(0x198)+_0x2d56ca[_0x53b3b1(0x1c9)](',\x20')+_0x53b3b1(0x1ab);})[_0x1bc4bb(0x1c9)](''),_0x311abf=_0x9b7f4b||_0x212896[0x0]?.[_0x1bc4bb(0x1c7)]||_0x1bc4bb(0x193);let _0x1768f8=_0x250f5a[_0x1bc4bb(0x1c8)](/\{AppCode\}/g,_0x4220cd)[_0x1bc4bb(0x1c8)](/\{ModelConfigs\}/g,_0x5734f6)[_0x1bc4bb(0x1c8)](/\{ExampleModelName\}/g,_0x311abf)[_0x1bc4bb(0x1c8)](/\{ApiFileName\}/g,_0xd222f3||'api')[_0x1bc4bb(0x1c8)](/\{ConfigName\}/g,_0x39a32f||_0x1bc4bb(0x19c))[_0x1bc4bb(0x1c8)](/\{ClientConfigParam\}/g,_0x479391||'')[_0x1bc4bb(0x1c8)](/\{VarPrefix\}/g,_0x3f7640||_0x1bc4bb(0x1b5))['replace'](/\{CreatedAt\}/g,_0x495d2f);return _0x1768f8;}static async[a196_0x36e9c9(0x199)](_0x4adf67,_0x2e0638,_0xecc2dc,_0x41c80c,_0x34f110=!![]){const _0x1810f0=a196_0x36e9c9,_0x27962c=Date[_0x1810f0(0x1b7)]();try{_0x34f110&&logger[_0x1810f0(0x1aa)]('template',_0x1810f0(0x197),{'templatePath':_0x4adf67,'targetPath':_0x2e0638,'pageName':_0xecc2dc,'templateName':_0x41c80c});await a196_0x26d935[_0x1810f0(0x1bf)][_0x1810f0(0x1ae)](_0x2e0638,{'recursive':!![]}),await this[_0x1810f0(0x1cb)](_0x4adf67,_0x2e0638,_0xecc2dc,_0x41c80c);if(_0x34f110){const _0x3f46f5=Date[_0x1810f0(0x1b7)]()-_0x27962c;logger['success'](_0x1810f0(0x1a8),_0x1810f0(0x1cc),_0x3f46f5,{'pageName':_0xecc2dc,'templateName':_0x41c80c});}}catch(_0x40665e){if(_0x34f110){const _0x4ceaf0=Date['now']()-_0x27962c;logger[_0x1810f0(0x1a2)](_0x1810f0(0x1a8),_0x1810f0(0x1c2),{'templatePath':_0x4adf67,'targetPath':_0x2e0638,'pageName':_0xecc2dc,'templateName':_0x41c80c,'error':_0x40665e instanceof Error?_0x40665e[_0x1810f0(0x1ca)]:String(_0x40665e),'duration':_0x4ceaf0});}throw _0x40665e;}}static async[a196_0x36e9c9(0x1cb)](_0x358362,_0x2ccadd,_0x13e8b8,_0x6e0cd7){const _0x542744=a196_0x36e9c9,_0x12ce05=await a196_0x26d935[_0x542744(0x1bf)]['readdir'](_0x358362,{'withFileTypes':!![]});for(const _0x26b85b of _0x12ce05){const _0x4a96b4=a196_0x3a06dc[_0x542744(0x1c9)](_0x358362,_0x26b85b[_0x542744(0x1ad)]);let _0x362ee5=a196_0x3a06dc[_0x542744(0x1c9)](_0x2ccadd,_0x26b85b['name']);_0x26b85b['name'][_0x542744(0x1a5)](_0x542744(0x1bd))&&(_0x362ee5=a196_0x3a06dc[_0x542744(0x1c9)](_0x2ccadd,_0x26b85b[_0x542744(0x1ad)][_0x542744(0x1c8)](/\.tpl$/,'')));if(_0x26b85b[_0x542744(0x194)]())await a196_0x26d935['promises'][_0x542744(0x1ae)](_0x362ee5,{'recursive':!![]}),await this[_0x542744(0x1cb)](_0x4a96b4,_0x362ee5,_0x13e8b8,_0x6e0cd7);else _0x26b85b[_0x542744(0x1af)]()&&await this[_0x542744(0x195)](_0x4a96b4,_0x362ee5,_0x13e8b8,_0x6e0cd7);}}static async['processFile'](_0x1cbda9,_0x18ecf5,_0x389bb3,_0x437b27){const _0x24ba5c=a196_0x36e9c9,_0x1a58f7=a196_0x3a06dc['extname'](_0x1cbda9)['toLowerCase']();_0x1cbda9[_0x24ba5c(0x1a5)]('.tpl')&&(_0x18ecf5=_0x18ecf5[_0x24ba5c(0x1c8)](/\.tpl$/,''));const _0x123939=['.tsx',_0x24ba5c(0x1a1),'.jsx',_0x24ba5c(0x1b2),_0x24ba5c(0x196),_0x24ba5c(0x1c0),'.css',_0x24ba5c(0x18a),_0x24ba5c(0x1bd)];if(_0x123939[_0x24ba5c(0x1b6)](_0x1a58f7)||_0x1cbda9[_0x24ba5c(0x1a5)](_0x24ba5c(0x1bd))){const _0x1ce1f3=await a196_0x26d935[_0x24ba5c(0x1bf)][_0x24ba5c(0x1c1)](_0x1cbda9,_0x24ba5c(0x1be)),_0x4e3d17=this['replaceContent'](_0x1ce1f3,_0x389bb3,_0x437b27);await a196_0x26d935[_0x24ba5c(0x1bf)]['writeFile'](_0x18ecf5,_0x4e3d17,'utf8');}else await a196_0x26d935['promises']['copyFile'](_0x1cbda9,_0x18ecf5);}}
1
+ const a196_0x1cd48c=a196_0x10cf;(function(_0x480795,_0x5cdf31){const _0x4d93c6=a196_0x10cf,_0xe674d=_0x480795();while(!![]){try{const _0x49a29c=parseInt(_0x4d93c6(0x1e2))/0x1*(parseInt(_0x4d93c6(0x1e6))/0x2)+-parseInt(_0x4d93c6(0x1dd))/0x3*(-parseInt(_0x4d93c6(0x1f2))/0x4)+-parseInt(_0x4d93c6(0x1f0))/0x5+-parseInt(_0x4d93c6(0x1f8))/0x6*(-parseInt(_0x4d93c6(0x21d))/0x7)+parseInt(_0x4d93c6(0x21e))/0x8+parseInt(_0x4d93c6(0x1fb))/0x9*(parseInt(_0x4d93c6(0x207))/0xa)+-parseInt(_0x4d93c6(0x1f9))/0xb;if(_0x49a29c===_0x5cdf31)break;else _0xe674d['push'](_0xe674d['shift']());}catch(_0x4375f0){_0xe674d['push'](_0xe674d['shift']());}}}(a196_0xc4c2,0xd740f));function a196_0x10cf(_0x166e48,_0x14b02a){_0x166e48=_0x166e48-0x1d9;const _0xc4c2c2=a196_0xc4c2();let _0x10cf47=_0xc4c2c2[_0x166e48];return _0x10cf47;}import a196_0x3ba979 from'node:fs';import a196_0x14e215 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a196_0xc4c2(){const _0x479e52=['tableName','copyFile','1351269uneVNH','pad','getHours','map','isFile','239rnTqIu','processDirectory','name:\x20\x22','\x20},','9166CHsNHD','readdir','tableName:\x20\x22','.json','promises','replaceContent','message','.js','processTemplate','default','865660bpWpAY','开始处理模板内容替换','12yOnhrf','.ts','utf8','replaceApiContent','info','readFile','8809986hXaxIF','45398628Qmucyf','YourModel','9bZLNGi','charAt','getSeconds','replace','pop','datasetCode:\x20\x22','split','getMinutes','模板内容替换失败','.css','getDate','alias','9998960XqShpy','template','getFullYear','.md','toDisplayTitle','formatLocalTimestamp','now','toLowerCase','.tsx','isDirectory','toUpperCase','datasetCode','join','toComponentName','endsWith','error','writeFile','padStart','name','LOVRABET','.tpl','mkdir','7srccJD','2137008dqBYtd','processFile','slice','.jsx'];a196_0xc4c2=function(){return _0x479e52;};return a196_0xc4c2();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x1cd48c(0x1de)](_0x1355f6){const _0x2e2e37=a196_0x1cd48c;return String(_0x1355f6)[_0x2e2e37(0x218)](0x2,'0');}static[a196_0x1cd48c(0x20c)](_0x4a880a){const _0x5172b2=a196_0x1cd48c,_0x517a2f=_0x4a880a[_0x5172b2(0x209)](),_0x3bc431=this['pad'](_0x4a880a['getMonth']()+0x1),_0x521aa3=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x205)]()),_0x43bfa8=this['pad'](_0x4a880a[_0x5172b2(0x1df)]()),_0x1574ce=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x202)]()),_0x527eec=this[_0x5172b2(0x1de)](_0x4a880a[_0x5172b2(0x1fd)]());return{'createdAt':_0x517a2f+'-'+_0x3bc431+'-'+_0x521aa3+'\x20'+_0x43bfa8+':'+_0x1574ce+':'+_0x527eec,'createdDate':_0x517a2f+'-'+_0x3bc431+'-'+_0x521aa3,'createdTime':_0x43bfa8+':'+_0x1574ce+':'+_0x527eec};}static[a196_0x1cd48c(0x214)](_0x477252){const _0x48cc61=a196_0x1cd48c,_0x5f4c4c=_0x477252[_0x48cc61(0x201)]('/')['pop']()||_0x477252;return _0x5f4c4c['split']('-')[_0x48cc61(0x1e0)](_0x79a5f4=>_0x79a5f4['charAt'](0x0)[_0x48cc61(0x211)]()+_0x79a5f4[_0x48cc61(0x1d9)](0x1)[_0x48cc61(0x20e)]())[_0x48cc61(0x213)]('');}static[a196_0x1cd48c(0x20b)](_0x2e4e4e){const _0x3c731b=a196_0x1cd48c,_0x2270c6=_0x2e4e4e[_0x3c731b(0x201)]('/')[_0x3c731b(0x1ff)]()||_0x2e4e4e;return _0x2270c6[_0x3c731b(0x201)]('-')[_0x3c731b(0x1e0)](_0x18d2d7=>_0x18d2d7[_0x3c731b(0x1fc)](0x0)[_0x3c731b(0x211)]()+_0x18d2d7[_0x3c731b(0x1d9)](0x1)['toLowerCase']())['join']('\x20');}static[a196_0x1cd48c(0x1eb)](_0x2023c4,_0x41181a,_0x3e2101){const _0x1c4faf=a196_0x1cd48c,_0x33e108=this[_0x1c4faf(0x214)](_0x41181a),_0x3be76b=this[_0x1c4faf(0x20b)](_0x41181a),{createdAt:_0x49a531,createdDate:_0x77e903,createdTime:_0x35862f}=this['formatLocalTimestamp'](new Date());let _0x18b26b=_0x2023c4[_0x1c4faf(0x1fe)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x33e108)[_0x1c4faf(0x1fe)](/\{DisplayTitle\}/g,_0x3be76b)[_0x1c4faf(0x1fe)](/\{PageName\}/g,_0x41181a)[_0x1c4faf(0x1fe)](/\{TemplateName\}/g,_0x3e2101)['replace'](/\{CreatedAt\}/g,_0x49a531)[_0x1c4faf(0x1fe)](/\{CreatedDate\}/g,_0x77e903)[_0x1c4faf(0x1fe)](/\{CreatedTime\}/g,_0x35862f);return _0x18b26b;}static[a196_0x1cd48c(0x1f5)](_0x2daaa7,_0x19e680,_0x1905db,_0x62563,_0x27380d,_0x5c7de0,_0x5ca913,_0x3b1a04){const _0xaee9c0=a196_0x1cd48c,_0xa2be56=new Date(),_0x3fb64a=_0xa2be56['toISOString'](),_0x119e96=_0x1905db[_0xaee9c0(0x1e0)](_0x262757=>{const _0x23d7be=_0xaee9c0,_0x4e8af9=[_0x23d7be(0x200)+_0x262757[_0x23d7be(0x212)]+'\x22',_0x23d7be(0x1e8)+_0x262757[_0x23d7be(0x1db)]+'\x22',_0x23d7be(0x1e4)+_0x262757[_0x23d7be(0x219)]+'\x22'];return _0x262757['alias']&&_0x4e8af9['push']('alias:\x20\x22'+_0x262757['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x4e8af9[_0x23d7be(0x213)](',\x20')+_0x23d7be(0x1e5);})[_0xaee9c0(0x213)](''),_0x3955cf=_0x62563||_0x1905db[0x0]?.[_0xaee9c0(0x206)]||_0xaee9c0(0x1fa);let _0x4fc123=_0x2daaa7[_0xaee9c0(0x1fe)](/\{AppCode\}/g,_0x19e680)[_0xaee9c0(0x1fe)](/\{ModelConfigs\}/g,_0x119e96)[_0xaee9c0(0x1fe)](/\{ExampleModelName\}/g,_0x3955cf)[_0xaee9c0(0x1fe)](/\{ApiFileName\}/g,_0x27380d||'api')[_0xaee9c0(0x1fe)](/\{ConfigName\}/g,_0x5c7de0||_0xaee9c0(0x1ef))[_0xaee9c0(0x1fe)](/\{ClientConfigParam\}/g,_0x5ca913||'')[_0xaee9c0(0x1fe)](/\{VarPrefix\}/g,_0x3b1a04||_0xaee9c0(0x21a))[_0xaee9c0(0x1fe)](/\{CreatedAt\}/g,_0x3fb64a);return _0x4fc123;}static async[a196_0x1cd48c(0x1ee)](_0x168ec4,_0x4fdb28,_0xee980b,_0x1fbf71,_0x425e7b=!![]){const _0x5d1ea6=a196_0x1cd48c,_0x11e475=Date[_0x5d1ea6(0x20d)]();try{_0x425e7b&&logger[_0x5d1ea6(0x1f6)]('template',_0x5d1ea6(0x1f1),{'templatePath':_0x168ec4,'targetPath':_0x4fdb28,'pageName':_0xee980b,'templateName':_0x1fbf71});await a196_0x3ba979[_0x5d1ea6(0x1ea)][_0x5d1ea6(0x21c)](_0x4fdb28,{'recursive':!![]}),await this[_0x5d1ea6(0x1e3)](_0x168ec4,_0x4fdb28,_0xee980b,_0x1fbf71);if(_0x425e7b){const _0x176c3a=Date[_0x5d1ea6(0x20d)]()-_0x11e475;logger['success'](_0x5d1ea6(0x208),'模板内容替换完成',_0x176c3a,{'pageName':_0xee980b,'templateName':_0x1fbf71});}}catch(_0x150774){if(_0x425e7b){const _0x403a94=Date[_0x5d1ea6(0x20d)]()-_0x11e475;logger[_0x5d1ea6(0x216)]('template',_0x5d1ea6(0x203),{'templatePath':_0x168ec4,'targetPath':_0x4fdb28,'pageName':_0xee980b,'templateName':_0x1fbf71,'error':_0x150774 instanceof Error?_0x150774[_0x5d1ea6(0x1ec)]:String(_0x150774),'duration':_0x403a94});}throw _0x150774;}}static async[a196_0x1cd48c(0x1e3)](_0x4c0bfd,_0x10fa05,_0x26ad3d,_0x43bdcb){const _0x53acc7=a196_0x1cd48c,_0x3725fe=await a196_0x3ba979['promises'][_0x53acc7(0x1e7)](_0x4c0bfd,{'withFileTypes':!![]});for(const _0x4cfaa6 of _0x3725fe){const _0x2eb0c7=a196_0x14e215[_0x53acc7(0x213)](_0x4c0bfd,_0x4cfaa6[_0x53acc7(0x219)]);let _0x47def2=a196_0x14e215[_0x53acc7(0x213)](_0x10fa05,_0x4cfaa6[_0x53acc7(0x219)]);_0x4cfaa6[_0x53acc7(0x219)][_0x53acc7(0x215)](_0x53acc7(0x21b))&&(_0x47def2=a196_0x14e215[_0x53acc7(0x213)](_0x10fa05,_0x4cfaa6[_0x53acc7(0x219)][_0x53acc7(0x1fe)](/\.tpl$/,'')));if(_0x4cfaa6[_0x53acc7(0x210)]())await a196_0x3ba979[_0x53acc7(0x1ea)][_0x53acc7(0x21c)](_0x47def2,{'recursive':!![]}),await this[_0x53acc7(0x1e3)](_0x2eb0c7,_0x47def2,_0x26ad3d,_0x43bdcb);else _0x4cfaa6[_0x53acc7(0x1e1)]()&&await this[_0x53acc7(0x21f)](_0x2eb0c7,_0x47def2,_0x26ad3d,_0x43bdcb);}}static async['processFile'](_0x590c0a,_0x870f44,_0x196997,_0xc764aa){const _0x3b5ab8=a196_0x1cd48c,_0x22c4cb=a196_0x14e215['extname'](_0x590c0a)[_0x3b5ab8(0x20e)]();_0x590c0a['endsWith']('.tpl')&&(_0x870f44=_0x870f44[_0x3b5ab8(0x1fe)](/\.tpl$/,''));const _0x533f22=[_0x3b5ab8(0x20f),_0x3b5ab8(0x1f3),_0x3b5ab8(0x1da),_0x3b5ab8(0x1ed),_0x3b5ab8(0x1e9),_0x3b5ab8(0x20a),_0x3b5ab8(0x204),'.scss',_0x3b5ab8(0x21b)];if(_0x533f22['includes'](_0x22c4cb)||_0x590c0a[_0x3b5ab8(0x215)]('.tpl')){const _0xc3c0d=await a196_0x3ba979['promises'][_0x3b5ab8(0x1f7)](_0x590c0a,_0x3b5ab8(0x1f4)),_0x333b13=this[_0x3b5ab8(0x1eb)](_0xc3c0d,_0x196997,_0xc764aa);await a196_0x3ba979['promises'][_0x3b5ab8(0x217)](_0x870f44,_0x333b13,_0x3b5ab8(0x1f4));}else await a196_0x3ba979['promises'][_0x3b5ab8(0x1dc)](_0x590c0a,_0x870f44);}}
@@ -1 +1 @@
1
- (function(_0x4c314d,_0x2434dc){var _0x45e52a=a197_0x219f,_0x2e43d=_0x4c314d();while(!![]){try{var _0x121ad3=-parseInt(_0x45e52a(0x1cc))/0x1+-parseInt(_0x45e52a(0x1d0))/0x2*(-parseInt(_0x45e52a(0x1cb))/0x3)+-parseInt(_0x45e52a(0x1d2))/0x4+parseInt(_0x45e52a(0x1ca))/0x5*(parseInt(_0x45e52a(0x1ce))/0x6)+parseInt(_0x45e52a(0x1cd))/0x7+-parseInt(_0x45e52a(0x1cf))/0x8*(parseInt(_0x45e52a(0x1d1))/0x9)+parseInt(_0x45e52a(0x1d3))/0xa;if(_0x121ad3===_0x2434dc)break;else _0x2e43d['push'](_0x2e43d['shift']());}catch(_0x39735b){_0x2e43d['push'](_0x2e43d['shift']());}}}(a197_0x148e,0xc0961));import{VERSION}from'../generated/build-info.js';function a197_0x219f(_0x2181b9,_0x1a3d8f){_0x2181b9=_0x2181b9-0x1ca;var _0x148e23=a197_0x148e();var _0x219f49=_0x148e23[_0x2181b9];return _0x219f49;}function a197_0x148e(){var _0x50108c=['5123064nUFIim','7001120GjgBtV','630ZzCEyJ','63mwzzBO','400409AIQLxc','7674632jnlNAq','47670mEiolt','9872waXVgp','58828BVXdRN','6894YeLzSv'];a197_0x148e=function(){return _0x50108c;};return a197_0x148e();}export function getCliVersion(){return VERSION;}
1
+ (function(_0xffe83e,_0x1688ae){var _0x29586e=a197_0x410b,_0xac4bee=_0xffe83e();while(!![]){try{var _0x27ec38=parseInt(_0x29586e(0xbc))/0x1*(parseInt(_0x29586e(0xc0))/0x2)+-parseInt(_0x29586e(0xb7))/0x3*(-parseInt(_0x29586e(0xbd))/0x4)+parseInt(_0x29586e(0xba))/0x5*(-parseInt(_0x29586e(0xb9))/0x6)+parseInt(_0x29586e(0xb8))/0x7*(parseInt(_0x29586e(0xbe))/0x8)+-parseInt(_0x29586e(0xbf))/0x9+parseInt(_0x29586e(0xbb))/0xa+-parseInt(_0x29586e(0xb6))/0xb;if(_0x27ec38===_0x1688ae)break;else _0xac4bee['push'](_0xac4bee['shift']());}catch(_0x25f5b9){_0xac4bee['push'](_0xac4bee['shift']());}}}(a197_0x1dfe,0x84275));function a197_0x410b(_0x2616e0,_0x4db6e5){_0x2616e0=_0x2616e0-0xb6;var _0x1dfeea=a197_0x1dfe();var _0x410bd1=_0x1dfeea[_0x2616e0];return _0x410bd1;}function a197_0x1dfe(){var _0x2ff32a=['2370facgho','14wOcVHv','3291384iOAOeM','5ccEMRM','6100880jUgrSh','142abNbkK','4340BSjJqU','1163576sNWxkH','6814530sscZPx','4970DyvXCc','2903637zvkgeW'];a197_0x1dfe=function(){return _0x2ff32a;};return a197_0x1dfe();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}