@lovrabet/rabetbase-cli 2.1.10-beta.4 → 2.1.11

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 (198) 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/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/report.js +1 -1
  80. package/lib/commands/logs/index.js +1 -1
  81. package/lib/commands/menu/index.js +1 -1
  82. package/lib/commands/menu/shared/compare-table.js +1 -1
  83. package/lib/commands/menu/shared/index.js +1 -1
  84. package/lib/commands/menu/shared/inquirer.js +1 -1
  85. package/lib/commands/menu/shared/local-pages.js +1 -1
  86. package/lib/commands/menu/shared/logic.js +1 -1
  87. package/lib/commands/menu/shared/service.js +1 -1
  88. package/lib/commands/menu/shared/sync-core.js +1 -1
  89. package/lib/commands/menu/shared/update-core.js +1 -1
  90. package/lib/commands/menu/shared/valid-url.js +1 -1
  91. package/lib/commands/menu/sync.js +1 -1
  92. package/lib/commands/menu/update.js +1 -1
  93. package/lib/commands/page/generate-start.js +1 -1
  94. package/lib/commands/page/generate-status.js +1 -1
  95. package/lib/commands/page/index.js +1 -1
  96. package/lib/commands/page/pull.js +1 -1
  97. package/lib/commands/page/push.js +1 -1
  98. package/lib/commands/page/shared.js +1 -1
  99. package/lib/commands/page/standard-page-status.js +1 -1
  100. package/lib/commands/page/sync.js +1 -1
  101. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  102. package/lib/commands/project/create/format-elapsed.js +1 -1
  103. package/lib/commands/project/create/main.js +1 -1
  104. package/lib/commands/project/create/non-interactive.js +1 -1
  105. package/lib/commands/project/create/project-template-path.js +1 -1
  106. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  107. package/lib/commands/project/create/use-format-code.js +1 -1
  108. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  109. package/lib/commands/project/index.js +1 -1
  110. package/lib/commands/project/init.js +1 -1
  111. package/lib/commands/project/upgrade.js +1 -1
  112. package/lib/commands/registry.js +1 -1
  113. package/lib/commands/run/index.js +1 -1
  114. package/lib/commands/schema.js +1 -1
  115. package/lib/commands/skill/index.js +1 -1
  116. package/lib/commands/sql/create.js +1 -1
  117. package/lib/commands/sql/delete.js +1 -1
  118. package/lib/commands/sql/detail.js +1 -1
  119. package/lib/commands/sql/exec.js +1 -1
  120. package/lib/commands/sql/index.js +1 -1
  121. package/lib/commands/sql/list.js +1 -1
  122. package/lib/commands/sql/pull.js +1 -1
  123. package/lib/commands/sql/push.js +1 -1
  124. package/lib/commands/sql/save.js +1 -1
  125. package/lib/commands/sql/shared.js +1 -1
  126. package/lib/commands/sql/status.js +1 -1
  127. package/lib/commands/sql/validate.js +1 -1
  128. package/lib/config/schema.js +1 -1
  129. package/lib/constant/cdn.js +1 -1
  130. package/lib/constant/cli.js +1 -1
  131. package/lib/constant/defaults.js +1 -1
  132. package/lib/constant/domain.js +1 -1
  133. package/lib/constant/env.js +1 -1
  134. package/lib/constant/output.js +1 -1
  135. package/lib/constant/paths.js +1 -1
  136. package/lib/constant/risk.js +1 -1
  137. package/lib/context.js +1 -1
  138. package/lib/core/alias-resolver.js +1 -1
  139. package/lib/core/api-client.js +1 -1
  140. package/lib/core/bff/config.js +1 -1
  141. package/lib/core/bff/file-system.js +1 -1
  142. package/lib/core/bff/hash.js +1 -1
  143. package/lib/core/bff/lock.js +1 -1
  144. package/lib/core/bff/utils.js +1 -1
  145. package/lib/core/db-resolver.js +1 -1
  146. package/lib/core/page/file-system.js +1 -1
  147. package/lib/core/page/hash.js +1 -1
  148. package/lib/core/page/lock.js +1 -1
  149. package/lib/core/sql-sync/config.js +1 -1
  150. package/lib/core/sql-sync/file-system.js +1 -1
  151. package/lib/core/sql-sync/hash.js +1 -1
  152. package/lib/core/sql-sync/lock.js +1 -1
  153. package/lib/core/sql-sync/utils.js +1 -1
  154. package/lib/core/sql-validator.js +1 -1
  155. package/lib/errors.js +1 -1
  156. package/lib/framework/build-all-flags.js +1 -1
  157. package/lib/framework/flags.js +1 -1
  158. package/lib/framework/help.js +1 -1
  159. package/lib/framework/index.js +1 -1
  160. package/lib/framework/output.js +1 -1
  161. package/lib/framework/response.js +1 -1
  162. package/lib/framework/runner-alias.js +1 -1
  163. package/lib/framework/runner.js +1 -1
  164. package/lib/framework/schema-export.js +1 -1
  165. package/lib/framework/types.js +1 -1
  166. package/lib/generated/build-info.js +1 -1
  167. package/lib/help.js +1 -1
  168. package/lib/skills/main.js +1 -1
  169. package/lib/skills/npx-skills-add.js +1 -1
  170. package/lib/telemetry/cli-command-trace.js +1 -1
  171. package/lib/telemetry/cli-help-trace.js +1 -1
  172. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  173. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  174. package/lib/telemetry/send-cli-trace-log.js +1 -1
  175. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  176. package/lib/utils/ai_config.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cdn-config.js +1 -1
  179. package/lib/utils/check-sdk-version.js +1 -1
  180. package/lib/utils/cli-version-check.js +1 -1
  181. package/lib/utils/cli-version-policy.js +1 -1
  182. package/lib/utils/config.js +1 -1
  183. package/lib/utils/copy-directory.js +1 -1
  184. package/lib/utils/entity-with-id.js +1 -1
  185. package/lib/utils/file-utils.js +1 -1
  186. package/lib/utils/guides-cdn.js +1 -1
  187. package/lib/utils/http-client.js +1 -1
  188. package/lib/utils/is-non-interactive.js +1 -1
  189. package/lib/utils/logger.js +1 -1
  190. package/lib/utils/params.js +1 -1
  191. package/lib/utils/platform.js +1 -1
  192. package/lib/utils/rules-cdn.js +1 -1
  193. package/lib/utils/sleep.js +1 -1
  194. package/lib/utils/template-replacer.js +1 -1
  195. package/lib/utils/version.js +1 -1
  196. package/lib/utils/with-active-cookie.js +1 -1
  197. package/lib/utils/write-cli-side-channel.js +1 -1
  198. package/package.json +1 -1
@@ -1 +1 @@
1
- const a180_0x428791=a180_0x20d8;function a180_0x4cb4(){const _0x8c48be=['.codex/skills/lovrabet/SKILL.md','agent','cursor','trae','21roYEcX','通用模板\x20-\x20兜底方案','889438rzOmpg','cline','claude','SKILL.md.tpl','Windsurf','CodeBuddy','.qoder','28494uoHeuY','.qoder/rules/rabetbase.md','695ZiUCom','.codex','.cline/skills/lovrabet/SKILL.md','Codex','Qoder','.cursorrules','.cursor','475060hxDjAR','OpenCode','Codex\x20IDE','.trae/skills/lovrabet/SKILL.md','Qoder\x20IDE','.agent/skills/lovrabet/SKILL.md','Cursor','Cline\x20IDE','Trae\x20IDE','.claude','Claude\x20Code','.qoder/skills/lovrabet/SKILL.md','3278768ILlQeH','codebuddy','file','.codebuddy','.agent','antigravity','18205569cpCpfT','3144240OfRlzM','.codebuddy/skills/lovrabet/SKILL.md','632288EMrNmR','qoder','windsurf','.opencode/skills/lovrabet/SKILL.md','OpenCode\x20IDE','.cursor/skills/rabetbase.md','其他\x20(通用模板)','.trae','.opencode','10TQjaJC','Antigravity','Trae','Cursor\x20IDE','opencode','codex'];a180_0x4cb4=function(){return _0x8c48be;};return a180_0x4cb4();}function a180_0x20d8(_0x29b340,_0x218623){_0x29b340=_0x29b340-0x1ec;const _0x4cb4b9=a180_0x4cb4();let _0x20d806=_0x4cb4b9[_0x29b340];return _0x20d806;}(function(_0x4b0dd1,_0x40018e){const _0x2cc004=a180_0x20d8,_0xaa6794=_0x4b0dd1();while(!![]){try{const _0x5b5c48=parseInt(_0x2cc004(0x224))/0x1+parseInt(_0x2cc004(0x1fa))/0x2+parseInt(_0x2cc004(0x20d))/0x3+parseInt(_0x2cc004(0x206))/0x4+-parseInt(_0x2cc004(0x1f3))/0x5*(parseInt(_0x2cc004(0x1f1))/0x6)+parseInt(_0x2cc004(0x222))/0x7*(parseInt(_0x2cc004(0x20f))/0x8)+-parseInt(_0x2cc004(0x20c))/0x9*(parseInt(_0x2cc004(0x218))/0xa);if(_0x5b5c48===_0x40018e)break;else _0xaa6794['push'](_0xaa6794['shift']());}catch(_0x3cbce6){_0xaa6794['push'](_0xaa6794['shift']());}}}(a180_0x4cb4,0x86020));export const CORE_IDE_CONFIGS={'cursor':{'name':a180_0x428791(0x200),'description':a180_0x428791(0x21b),'folders':[a180_0x428791(0x1f8),a180_0x428791(0x1f9)],'files':[{'type':'file','path':a180_0x428791(0x214),'template':a180_0x428791(0x1ed)}]},'windsurf':{'name':a180_0x428791(0x1ee),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':a180_0x428791(0x208),'path':'.windsurf/workflows/rabetbase.md','template':a180_0x428791(0x1ed)}]},'claude':{'name':a180_0x428791(0x204),'description':a180_0x428791(0x204),'folders':[a180_0x428791(0x203)],'files':[{'type':a180_0x428791(0x208),'path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a180_0x428791(0x201),'folders':['.cline'],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x1f5),'template':a180_0x428791(0x1ed)}]},'codex':{'name':a180_0x428791(0x1f6),'description':a180_0x428791(0x1fc),'folders':[a180_0x428791(0x1f4)],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x21e),'template':a180_0x428791(0x1ed)}]},'opencode':{'name':a180_0x428791(0x1fb),'description':a180_0x428791(0x213),'folders':[a180_0x428791(0x217)],'files':[{'type':'file','path':a180_0x428791(0x212),'template':a180_0x428791(0x1ed)}]},'qoder':{'name':a180_0x428791(0x1f7),'description':a180_0x428791(0x1fe),'folders':[a180_0x428791(0x1f0)],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x1f2),'template':a180_0x428791(0x1ed)},{'type':a180_0x428791(0x208),'path':a180_0x428791(0x205),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a180_0x428791(0x1ef),'description':'CodeBuddy\x20IDE','folders':[a180_0x428791(0x209)],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x20e),'template':a180_0x428791(0x1ed)}]},'trae':{'name':a180_0x428791(0x21a),'description':a180_0x428791(0x202),'folders':[a180_0x428791(0x216)],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x1fd),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a180_0x428791(0x215),'description':a180_0x428791(0x223),'folders':[a180_0x428791(0x20a)],'files':[{'type':a180_0x428791(0x208),'path':'.agent/skills/lovrabet/SKILL.md','template':a180_0x428791(0x1ed)}]},'antigravity':{'name':a180_0x428791(0x219),'description':'Antigravity\x20IDE','folders':[a180_0x428791(0x20a)],'files':[{'type':a180_0x428791(0x208),'path':a180_0x428791(0x1ff),'template':a180_0x428791(0x1ed)}]}};export const CORE_IDE_LIST=[a180_0x428791(0x1ec),'cline',a180_0x428791(0x207),a180_0x428791(0x21d),a180_0x428791(0x220),a180_0x428791(0x21c),a180_0x428791(0x210),'trae','windsurf'];export const IDE_LIST=[a180_0x428791(0x20b),a180_0x428791(0x1ec),a180_0x428791(0x225),'codebuddy','codex','cursor',a180_0x428791(0x21c),'qoder',a180_0x428791(0x221),'windsurf',a180_0x428791(0x21f)];export const ALL_CORE_IDES=[a180_0x428791(0x220),a180_0x428791(0x211),a180_0x428791(0x1ec),a180_0x428791(0x225),a180_0x428791(0x21d),'opencode',a180_0x428791(0x210),a180_0x428791(0x207),a180_0x428791(0x221)];
1
+ function a180_0x5603(){const _0x413710=['729095jYdyqk','claude','.qoder/rules/rabetbase.md','.agent/skills/lovrabet/SKILL.md','file','agent','.claude/skills/lovrabet/SKILL.md','7716ULUnMi','1338ErvSrp','11ecpPMP','Qoder','.qoder','3221232zhKErA','windsurf','5306700IrHpsC','trae','其他\x20(通用模板)','Codex','Trae\x20IDE','2moTtSB','.windsurf/workflows/rabetbase.md','Trae','Claude\x20Code','.windsurf','cline','.trae','.cursor','opencode','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','Cursor','CodeBuddy','antigravity','5912hViRGe','.codebuddy','Codex\x20IDE','Qoder\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','3798288MnjhVI','Windsurf','Cline','.cursor/skills/rabetbase.md','Windsurf\x20IDE','Cline\x20IDE','.agent','qoder','.claude','Cursor\x20IDE','SKILL.md.tpl','.opencode','CodeBuddy\x20IDE','cursor','codex','codebuddy','Antigravity\x20IDE','.opencode/skills/lovrabet/SKILL.md','11352170vAhyzd','Antigravity','3836cgvydw'];a180_0x5603=function(){return _0x413710;};return a180_0x5603();}const a180_0x292cb1=a180_0x17fb;(function(_0x5be474,_0x4f8f60){const _0x1233b0=a180_0x17fb,_0x2e597e=_0x5be474();while(!![]){try{const _0x10c3a3=-parseInt(_0x1233b0(0x124))/0x1*(parseInt(_0x1233b0(0xfc))/0x2)+-parseInt(_0x1233b0(0xf1))/0x3*(-parseInt(_0x1233b0(0x10a))/0x4)+parseInt(_0x1233b0(0xf7))/0x5+parseInt(_0x1233b0(0xf0))/0x6*(parseInt(_0x1233b0(0x123))/0x7)+parseInt(_0x1233b0(0xf5))/0x8+-parseInt(_0x1233b0(0x10f))/0x9+parseInt(_0x1233b0(0x121))/0xa*(-parseInt(_0x1233b0(0xf2))/0xb);if(_0x10c3a3===_0x4f8f60)break;else _0x2e597e['push'](_0x2e597e['shift']());}catch(_0x41c806){_0x2e597e['push'](_0x2e597e['shift']());}}}(a180_0x5603,0x8437e));export const CORE_IDE_CONFIGS={'cursor':{'name':a180_0x292cb1(0x107),'description':a180_0x292cb1(0x118),'folders':['.cursorrules',a180_0x292cb1(0x103)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x112),'template':a180_0x292cb1(0x119)}]},'windsurf':{'name':a180_0x292cb1(0x110),'description':a180_0x292cb1(0x113),'folders':[a180_0x292cb1(0x100)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0xfd),'template':a180_0x292cb1(0x119)}]},'claude':{'name':a180_0x292cb1(0xff),'description':a180_0x292cb1(0xff),'folders':[a180_0x292cb1(0x117)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x12a),'template':'SKILL.md.tpl'}]},'cline':{'name':a180_0x292cb1(0x111),'description':a180_0x292cb1(0x114),'folders':['.cline'],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':a180_0x292cb1(0xfa),'description':a180_0x292cb1(0x10c),'folders':['.codex'],'files':[{'type':'file','path':a180_0x292cb1(0x105),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a180_0x292cb1(0x11a)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x120),'template':'SKILL.md.tpl'}]},'qoder':{'name':a180_0x292cb1(0xf3),'description':a180_0x292cb1(0x10d),'folders':[a180_0x292cb1(0xf4)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x126),'template':a180_0x292cb1(0x119)},{'type':a180_0x292cb1(0x128),'path':'.qoder/skills/lovrabet/SKILL.md','template':a180_0x292cb1(0x119)}]},'codebuddy':{'name':a180_0x292cb1(0x108),'description':a180_0x292cb1(0x11b),'folders':[a180_0x292cb1(0x10b)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x10e),'template':a180_0x292cb1(0x119)}]},'trae':{'name':a180_0x292cb1(0xfe),'description':a180_0x292cb1(0xfb),'folders':[a180_0x292cb1(0x102)],'files':[{'type':a180_0x292cb1(0x128),'path':'.trae/skills/lovrabet/SKILL.md','template':a180_0x292cb1(0x119)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a180_0x292cb1(0xf9),'description':a180_0x292cb1(0x106),'folders':[a180_0x292cb1(0x115)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x127),'template':a180_0x292cb1(0x119)}]},'antigravity':{'name':a180_0x292cb1(0x122),'description':a180_0x292cb1(0x11f),'folders':[a180_0x292cb1(0x115)],'files':[{'type':a180_0x292cb1(0x128),'path':a180_0x292cb1(0x127),'template':a180_0x292cb1(0x119)}]}};export const CORE_IDE_LIST=['claude',a180_0x292cb1(0x101),'codebuddy',a180_0x292cb1(0x11d),a180_0x292cb1(0x11c),a180_0x292cb1(0x104),a180_0x292cb1(0x116),a180_0x292cb1(0xf8),a180_0x292cb1(0xf6)];function a180_0x17fb(_0x3ddf08,_0x292a3a){_0x3ddf08=_0x3ddf08-0xf0;const _0x56032b=a180_0x5603();let _0x17fbd5=_0x56032b[_0x3ddf08];return _0x17fbd5;}export const IDE_LIST=[a180_0x292cb1(0x109),a180_0x292cb1(0x125),a180_0x292cb1(0x101),a180_0x292cb1(0x11e),a180_0x292cb1(0x11d),a180_0x292cb1(0x11c),a180_0x292cb1(0x104),'qoder',a180_0x292cb1(0xf8),a180_0x292cb1(0xf6),a180_0x292cb1(0x129)];export const ALL_CORE_IDES=[a180_0x292cb1(0x11c),'windsurf','claude',a180_0x292cb1(0x101),'codex',a180_0x292cb1(0x104),a180_0x292cb1(0x116),a180_0x292cb1(0x11e),a180_0x292cb1(0xf8)];
@@ -1 +1 @@
1
- function a181_0x5596(_0xeef099,_0x1894c7){_0xeef099=_0xeef099-0x10c;const _0xbac73e=a181_0xbac7();let _0x559624=_0xbac73e[_0xeef099];return _0x559624;}(function(_0x18280c,_0x5483b4){const _0x401f9f=a181_0x5596,_0x7cba7b=_0x18280c();while(!![]){try{const _0x4b17bc=parseInt(_0x401f9f(0x113))/0x1+parseInt(_0x401f9f(0x10d))/0x2+parseInt(_0x401f9f(0x10e))/0x3*(-parseInt(_0x401f9f(0x10f))/0x4)+parseInt(_0x401f9f(0x114))/0x5+-parseInt(_0x401f9f(0x111))/0x6+-parseInt(_0x401f9f(0x112))/0x7+-parseInt(_0x401f9f(0x10c))/0x8*(-parseInt(_0x401f9f(0x110))/0x9);if(_0x4b17bc===_0x5483b4)break;else _0x7cba7b['push'](_0x7cba7b['shift']());}catch(_0x372ea6){_0x7cba7b['push'](_0x7cba7b['shift']());}}}(a181_0xbac7,0xcf8ab));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a181_0xbac7(){const _0x1b3541=['225IBIhuh','8521650HjHNny','10593065WWQwfh','1503768ORHugk','711840CwgmcM','696184mNmUSw','1100248GJouDl','1503MZfWKm','4696AhjWqq'];a181_0xbac7=function(){return _0x1b3541;};return a181_0xbac7();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a181_0x1d8b(_0x356033,_0x3b6d02){_0x356033=_0x356033-0x1d3;const _0x3642f2=a181_0x3642();let _0x1d8b37=_0x3642f2[_0x356033];return _0x1d8b37;}(function(_0x5a799b,_0x5c4acb){const _0x5ba53=a181_0x1d8b,_0x577810=_0x5a799b();while(!![]){try{const _0x2ebe8c=-parseInt(_0x5ba53(0x1d4))/0x1+parseInt(_0x5ba53(0x1d5))/0x2+parseInt(_0x5ba53(0x1d3))/0x3*(-parseInt(_0x5ba53(0x1d7))/0x4)+-parseInt(_0x5ba53(0x1d6))/0x5*(-parseInt(_0x5ba53(0x1d8))/0x6)+-parseInt(_0x5ba53(0x1db))/0x7*(-parseInt(_0x5ba53(0x1d9))/0x8)+-parseInt(_0x5ba53(0x1dd))/0x9*(parseInt(_0x5ba53(0x1dc))/0xa)+-parseInt(_0x5ba53(0x1da))/0xb;if(_0x2ebe8c===_0x5c4acb)break;else _0x577810['push'](_0x577810['shift']());}catch(_0x5ab6f3){_0x577810['push'](_0x577810['shift']());}}}(a181_0x3642,0xadf83));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a181_0x3642(){const _0x5af325=['6250jBcQSs','15544oTsZbk','2364BTCWAT','40DSoTjs','19019vrDaRZ','895195EqrZFu','283700gqhIVU','90KAZPBQ','543HjQkwR','313226UNyJbW','1765350lzzmWo'];a181_0x3642=function(){return _0x5af325;};return a181_0x3642();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x16c5c6,_0x527564){const _0x379e40=a182_0x3a84,_0x2d7f41=_0x16c5c6();while(!![]){try{const _0x2cdd0c=parseInt(_0x379e40(0x163))/0x1+-parseInt(_0x379e40(0x167))/0x2*(-parseInt(_0x379e40(0x16a))/0x3)+parseInt(_0x379e40(0x165))/0x4*(-parseInt(_0x379e40(0x166))/0x5)+parseInt(_0x379e40(0x15f))/0x6*(parseInt(_0x379e40(0x16b))/0x7)+parseInt(_0x379e40(0x164))/0x8+-parseInt(_0x379e40(0x169))/0x9+-parseInt(_0x379e40(0x161))/0xa;if(_0x2cdd0c===_0x527564)break;else _0x2d7f41['push'](_0x2d7f41['shift']());}catch(_0x34b8de){_0x2d7f41['push'](_0x2d7f41['shift']());}}}(a182_0x5c80,0x6ba00));import{getTemplateBaseUrl}from'../utils/config.js';function a182_0x5c80(){const _0xa5b8ff=['721zOHENZ','application/json','now','/config.json','node','json','50454LlUjmg','cli','799030NZNCMZ','/config/index.json','562997KsAEIV','5058856qjMXgM','1856iBssPv','8750dPxmlI','242154shxyiE','stableVersion','7648407ZFTbLz','3iJzAJP'];a182_0x5c80=function(){return _0xa5b8ff;};return a182_0x5c80();}export async function fetchCdnConfig(){const _0x14e949=a182_0x3a84,_0x4cc0f3=getTemplateBaseUrl(),_0x53c16f=[_0x4cc0f3+_0x14e949(0x15c),_0x4cc0f3+_0x14e949(0x162)];for(const _0x5f1c1e of _0x53c16f){try{const _0x3c232e=await fetch(_0x5f1c1e,{'headers':{'Accept':_0x14e949(0x16c)}});if(!_0x3c232e['ok'])continue;const _0x276b28=await _0x3c232e[_0x14e949(0x15e)]();if(!_0x276b28[_0x14e949(0x160)]?.[_0x14e949(0x168)]||!_0x276b28['sdk']?.[_0x14e949(0x15d)]?.[_0x14e949(0x168)])continue;return _0x276b28;}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 _0x312803=a182_0x3a84,_0x202498=Date[_0x312803(0x16d)]();if(hasCachedConfig){const _0xcb65c6=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x202498-cacheTime<_0xcb65c6)return cachedConfig;}const _0x4311c7=await fetchCdnConfig();return cachedConfig=_0x4311c7,cacheTime=_0x202498,hasCachedConfig=!![],_0x4311c7;}function a182_0x3a84(_0x573c84,_0x139589){_0x573c84=_0x573c84-0x15c;const _0x5c80e0=a182_0x5c80();let _0x3a84ce=_0x5c80e0[_0x573c84];return _0x3a84ce;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a182_0x47a8(){const _0x3b5749=['now','46ipujwa','5314548zdPZAW','33688010WgfYHY','9434180FdwRch','application/json','json','/config/index.json','stableVersion','3mEWvtm','7846181dUyuyu','11306312gHWcXk','8869okiCND','sdk','10611894sbqgso','/config.json','9uCcqZN','cli'];a182_0x47a8=function(){return _0x3b5749;};return a182_0x47a8();}(function(_0x55bee3,_0x1693be){const _0x5be37c=a182_0x5954,_0x151a75=_0x55bee3();while(!![]){try{const _0x52c142=-parseInt(_0x5be37c(0x85))/0x1*(-parseInt(_0x5be37c(0x8c))/0x2)+-parseInt(_0x5be37c(0x82))/0x3*(-parseInt(_0x5be37c(0x8d))/0x4)+-parseInt(_0x5be37c(0x8f))/0x5+-parseInt(_0x5be37c(0x87))/0x6+parseInt(_0x5be37c(0x83))/0x7+-parseInt(_0x5be37c(0x84))/0x8*(parseInt(_0x5be37c(0x89))/0x9)+parseInt(_0x5be37c(0x8e))/0xa;if(_0x52c142===_0x1693be)break;else _0x151a75['push'](_0x151a75['shift']());}catch(_0x953339){_0x151a75['push'](_0x151a75['shift']());}}}(a182_0x47a8,0xe8cbe));function a182_0x5954(_0x1911e0,_0x1205f4){_0x1911e0=_0x1911e0-0x7f;const _0x47a8ea=a182_0x47a8();let _0x5954e2=_0x47a8ea[_0x1911e0];return _0x5954e2;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x440345=a182_0x5954,_0x2c4e16=getTemplateBaseUrl(),_0x3e4d0a=[_0x2c4e16+_0x440345(0x88),_0x2c4e16+_0x440345(0x80)];for(const _0x124d10 of _0x3e4d0a){try{const _0x19359b=await fetch(_0x124d10,{'headers':{'Accept':_0x440345(0x90)}});if(!_0x19359b['ok'])continue;const _0x37fb5d=await _0x19359b[_0x440345(0x7f)]();if(!_0x37fb5d[_0x440345(0x8a)]?.[_0x440345(0x81)]||!_0x37fb5d[_0x440345(0x86)]?.['node']?.[_0x440345(0x81)])continue;return _0x37fb5d;}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 _0x22b8ab=a182_0x5954,_0x549d64=Date[_0x22b8ab(0x8b)]();if(hasCachedConfig){const _0x560eb2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x549d64-cacheTime<_0x560eb2)return cachedConfig;}const _0x27b697=await fetchCdnConfig();return cachedConfig=_0x27b697,cacheTime=_0x549d64,hasCachedConfig=!![],_0x27b697;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a183_0x27d93e=a183_0x9e61;(function(_0x48d1c7,_0x4958fa){const _0x24e226=a183_0x9e61,_0xd70a92=_0x48d1c7();while(!![]){try{const _0x594a67=parseInt(_0x24e226(0x144))/0x1*(-parseInt(_0x24e226(0x145))/0x2)+-parseInt(_0x24e226(0x160))/0x3*(parseInt(_0x24e226(0x169))/0x4)+parseInt(_0x24e226(0x158))/0x5+parseInt(_0x24e226(0x153))/0x6*(-parseInt(_0x24e226(0x14c))/0x7)+parseInt(_0x24e226(0x146))/0x8*(parseInt(_0x24e226(0x14e))/0x9)+parseInt(_0x24e226(0x15e))/0xa*(parseInt(_0x24e226(0x166))/0xb)+-parseInt(_0x24e226(0x162))/0xc;if(_0x594a67===_0x4958fa)break;else _0xd70a92['push'](_0xd70a92['shift']());}catch(_0x5bc472){_0xd70a92['push'](_0xd70a92['shift']());}}}(a183_0x5c48,0x9197b));import a183_0x2d4ea0 from'node:fs';import a183_0x29f2a0 from'node:path';import a183_0x2ceb9e from'semver';function a183_0x5c48(){const _0x1a464b=['259vYYZtH','↪\x20SDK\x20update\x20available','4940343TTgWRS','join','npm\x20install\x20','\x20\x20\x20Upgrade\x20command:\x20','log','28806rWiBvF','sdk','utf-8','dependencies','parse','1091530TDhpIb','node','needsUpgrade','readFileSync','existsSync','\x1b[1m','1091560LqASxz','devDependencies','3ufZBRc','package.json','11243304xKVsHx','\x20\x20\x20Stable\x20version:\x20','version','1.2.0','110FdAUKR','stableVersion','all','1179036TnCQbB','minVersion','\x1b[33m','@lovrabet/sdk','402035WTxRpv','2eugwhh','16JGSBEj','node_modules','\x20\x20\x20Current\x20version:\x20','packageName','some','coerce'];a183_0x5c48=function(){return _0x1a464b;};return a183_0x5c48();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a183_0x27d93e(0x165);function isNonNumericVersion(_0x1b0e49){const _0x1e88d2=a183_0x27d93e,_0xedf7c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xedf7c[_0x1e88d2(0x14a)](_0x3c3463=>_0x3c3463['test'](_0x1b0e49));}function getInstalledVersion(_0x6794c9,_0x457244){const _0x3e8c7e=a183_0x27d93e;try{const _0x31e14f=a183_0x29f2a0[_0x3e8c7e(0x14f)](_0x6794c9,_0x3e8c7e(0x147),_0x457244,_0x3e8c7e(0x161));if(a183_0x2d4ea0[_0x3e8c7e(0x15c)](_0x31e14f)){const _0x4a60c2=JSON[_0x3e8c7e(0x157)](a183_0x2d4ea0[_0x3e8c7e(0x15b)](_0x31e14f,_0x3e8c7e(0x155)));return _0x4a60c2[_0x3e8c7e(0x164)]||null;}}catch{}return null;}function a183_0x9e61(_0x271577,_0x3e8191){_0x271577=_0x271577-0x143;const _0x5c48dd=a183_0x5c48();let _0x9e61da=_0x5c48dd[_0x271577];return _0x9e61da;}async function getSdkStableVersion(){const _0x32acf1=a183_0x27d93e;try{const _0x27424f=await getCdnConfig();return _0x27424f?.['sdk']?.[_0x32acf1(0x159)]?.[_0x32acf1(0x167)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x56d723=a183_0x27d93e;try{const _0x10039c=await getCdnConfig();return _0x10039c?.[_0x56d723(0x154)]?.['node']?.[_0x56d723(0x149)]||_0x56d723(0x143);}catch{return _0x56d723(0x143);}}export async function checkSdkVersion(_0x13c0e7){const _0xd4ccf4=a183_0x27d93e,_0x219bf1=a183_0x29f2a0[_0xd4ccf4(0x14f)](_0x13c0e7,'package.json'),[_0x27be2a,_0x51da7b]=await Promise[_0xd4ccf4(0x168)]([getSdkStableVersion(),getSdkPackageName()]),_0x2fa660=_0x27be2a||FALLBACK_MIN_SDK_VERSION;if(!a183_0x2d4ea0[_0xd4ccf4(0x15c)](_0x219bf1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2fa660,'packageName':_0x51da7b,'stableVersion':_0x27be2a};try{const _0x50981b=JSON[_0xd4ccf4(0x157)](a183_0x2d4ea0['readFileSync'](_0x219bf1,'utf8')),_0x4a4994=_0x50981b[_0xd4ccf4(0x156)]||{},_0x332a81=_0x50981b[_0xd4ccf4(0x15f)]||{},_0x5c6f76=_0x4a4994[_0x51da7b]||_0x332a81[_0x51da7b];if(!_0x5c6f76)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2fa660,'packageName':_0x51da7b,'stableVersion':_0x27be2a};let _0x3fbf08=getInstalledVersion(_0x13c0e7,_0x51da7b);!_0x3fbf08&&(_0x3fbf08=_0x5c6f76);if(isNonNumericVersion(_0x5c6f76))return{'installed':!![],'version':_0x3fbf08,'needsUpgrade':![],'minVersion':_0x2fa660,'packageName':_0x51da7b,'stableVersion':_0x27be2a};const _0x53f0c3=a183_0x2ceb9e[_0xd4ccf4(0x14b)](_0x3fbf08),_0x151bc7=a183_0x2ceb9e[_0xd4ccf4(0x14b)](_0x2fa660),_0x219cb1=_0x53f0c3&&_0x151bc7?a183_0x2ceb9e['lt'](_0x53f0c3,_0x151bc7):![];return{'installed':!![],'version':_0x3fbf08,'needsUpgrade':_0x219cb1,'minVersion':_0x2fa660,'packageName':_0x51da7b,'stableVersion':_0x27be2a};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2fa660,'packageName':_0x51da7b,'stableVersion':_0x27be2a};}}export function checkSdkVersionSync(_0x1a940c){const _0x5e8512=a183_0x27d93e,_0x2c747d=a183_0x29f2a0[_0x5e8512(0x14f)](_0x1a940c,_0x5e8512(0x161)),_0x303193='@lovrabet/sdk';if(!a183_0x2d4ea0[_0x5e8512(0x15c)](_0x2c747d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x303193,'stableVersion':null};try{const _0x3b0f2b=JSON[_0x5e8512(0x157)](a183_0x2d4ea0[_0x5e8512(0x15b)](_0x2c747d,'utf8')),_0x38eb4f=_0x3b0f2b[_0x5e8512(0x156)]||{},_0x39a210=_0x3b0f2b['devDependencies']||{},_0x1f26a7=_0x38eb4f[_0x303193]||_0x39a210[_0x303193];if(!_0x1f26a7)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x303193,'stableVersion':null};let _0x216824=getInstalledVersion(_0x1a940c,_0x303193);!_0x216824&&(_0x216824=_0x1f26a7);if(isNonNumericVersion(_0x1f26a7))return{'installed':!![],'version':_0x216824,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x303193,'stableVersion':null};const _0x29373d=a183_0x2ceb9e[_0x5e8512(0x14b)](_0x216824),_0x322a73=_0x29373d?a183_0x2ceb9e['lt'](_0x29373d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x216824,'needsUpgrade':_0x322a73,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x303193,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x303193,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x305d7e){const _0x53227d=a183_0x27d93e;if(!_0x305d7e[_0x53227d(0x15a)])return;const _0x4af7a8=_0x53227d(0x16b),_0x453a6d='\x1b[0m',_0x35b142=_0x53227d(0x15d),_0x5b6381=_0x305d7e[_0x53227d(0x149)]||_0x53227d(0x143),_0x54ca6b=_0x305d7e[_0x53227d(0x167)]||_0x305d7e[_0x53227d(0x16a)],_0x2bd6b6=_0x53227d(0x150)+_0x5b6381+'@'+(_0x54ca6b||'latest');console[_0x53227d(0x152)](),console['log'](''+_0x4af7a8+_0x35b142+_0x53227d(0x14d)+_0x453a6d),console['log'](_0x4af7a8+_0x53227d(0x148)+_0x5b6381+'@'+_0x305d7e[_0x53227d(0x164)]+_0x453a6d),console[_0x53227d(0x152)](_0x4af7a8+_0x53227d(0x163)+_0x54ca6b+_0x453a6d),console[_0x53227d(0x152)](_0x4af7a8+_0x53227d(0x151)+_0x2bd6b6+_0x453a6d),console[_0x53227d(0x152)]();}
1
+ const a183_0x11a48a=a183_0x41c1;(function(_0x134021,_0x9011b3){const _0x4130f0=a183_0x41c1,_0xb97d53=_0x134021();while(!![]){try{const _0x4bddaf=parseInt(_0x4130f0(0x1da))/0x1*(parseInt(_0x4130f0(0x1d9))/0x2)+parseInt(_0x4130f0(0x1bd))/0x3+-parseInt(_0x4130f0(0x1cf))/0x4*(parseInt(_0x4130f0(0x1d8))/0x5)+-parseInt(_0x4130f0(0x1e1))/0x6+-parseInt(_0x4130f0(0x1ce))/0x7*(-parseInt(_0x4130f0(0x1dc))/0x8)+parseInt(_0x4130f0(0x1db))/0x9+parseInt(_0x4130f0(0x1d5))/0xa;if(_0x4bddaf===_0x9011b3)break;else _0xb97d53['push'](_0xb97d53['shift']());}catch(_0x773022){_0xb97d53['push'](_0xb97d53['shift']());}}}(a183_0x39a9,0x54463));import a183_0x36f586 from'node:fs';import a183_0x2471e2 from'node:path';import a183_0x29184c from'semver';function a183_0x39a9(){const _0x26226f=['\x1b[1m','\x20\x20\x20Upgrade\x20command:\x20','packageName','\x20\x20\x20Stable\x20version:\x20','readFileSync','test','join','@lovrabet/sdk','node','1.2.0','\x1b[33m','coerce','all','utf8','stableVersion','dependencies','1974cTdPYq','4PHyEpa','↪\x20SDK\x20update\x20available','package.json','devDependencies','needsUpgrade','some','1007920mHVfZx','minVersion','log','2906205NZvzSZ','2bjFiDQ','167113SkIXoL','556443gOFBga','6544dHwCxA','sdk','existsSync','latest','npm\x20install\x20','1425612VnwgPU','\x20\x20\x20Current\x20version:\x20','parse','1810866YJKDNI'];a183_0x39a9=function(){return _0x26226f;};return a183_0x39a9();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a183_0x11a48a(0x1c7);function isNonNumericVersion(_0x3cd5c9){const _0x3f96d=a183_0x11a48a,_0x27cdba=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x27cdba[_0x3f96d(0x1d4)](_0x8e0496=>_0x8e0496[_0x3f96d(0x1c3)](_0x3cd5c9));}function getInstalledVersion(_0x79d4ee,_0x470ae9){const _0x194192=a183_0x11a48a;try{const _0x2db3c8=a183_0x2471e2[_0x194192(0x1c4)](_0x79d4ee,'node_modules',_0x470ae9,'package.json');if(a183_0x36f586[_0x194192(0x1de)](_0x2db3c8)){const _0x48478a=JSON[_0x194192(0x1bc)](a183_0x36f586[_0x194192(0x1c2)](_0x2db3c8,'utf-8'));return _0x48478a['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x262544=a183_0x11a48a;try{const _0x58d7e5=await getCdnConfig();return _0x58d7e5?.[_0x262544(0x1dd)]?.['node']?.[_0x262544(0x1cc)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3bef2c=a183_0x11a48a;try{const _0x239caf=await getCdnConfig();return _0x239caf?.['sdk']?.[_0x3bef2c(0x1c6)]?.[_0x3bef2c(0x1c0)]||_0x3bef2c(0x1c5);}catch{return _0x3bef2c(0x1c5);}}export async function checkSdkVersion(_0x58b7b1){const _0x1bef69=a183_0x11a48a,_0x5baec7=a183_0x2471e2[_0x1bef69(0x1c4)](_0x58b7b1,_0x1bef69(0x1d1)),[_0x413a2f,_0x272c2a]=await Promise[_0x1bef69(0x1ca)]([getSdkStableVersion(),getSdkPackageName()]),_0x5af79e=_0x413a2f||FALLBACK_MIN_SDK_VERSION;if(!a183_0x36f586[_0x1bef69(0x1de)](_0x5baec7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5af79e,'packageName':_0x272c2a,'stableVersion':_0x413a2f};try{const _0x282127=JSON[_0x1bef69(0x1bc)](a183_0x36f586['readFileSync'](_0x5baec7,_0x1bef69(0x1cb))),_0x1923d5=_0x282127[_0x1bef69(0x1cd)]||{},_0xb262a=_0x282127['devDependencies']||{},_0xbc6e9d=_0x1923d5[_0x272c2a]||_0xb262a[_0x272c2a];if(!_0xbc6e9d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5af79e,'packageName':_0x272c2a,'stableVersion':_0x413a2f};let _0x32301a=getInstalledVersion(_0x58b7b1,_0x272c2a);!_0x32301a&&(_0x32301a=_0xbc6e9d);if(isNonNumericVersion(_0xbc6e9d))return{'installed':!![],'version':_0x32301a,'needsUpgrade':![],'minVersion':_0x5af79e,'packageName':_0x272c2a,'stableVersion':_0x413a2f};const _0x30eaf7=a183_0x29184c[_0x1bef69(0x1c9)](_0x32301a),_0x9bca1e=a183_0x29184c['coerce'](_0x5af79e),_0x49424e=_0x30eaf7&&_0x9bca1e?a183_0x29184c['lt'](_0x30eaf7,_0x9bca1e):![];return{'installed':!![],'version':_0x32301a,'needsUpgrade':_0x49424e,'minVersion':_0x5af79e,'packageName':_0x272c2a,'stableVersion':_0x413a2f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5af79e,'packageName':_0x272c2a,'stableVersion':_0x413a2f};}}export function checkSdkVersionSync(_0x4c187a){const _0x9980f6=a183_0x11a48a,_0xa85456=a183_0x2471e2[_0x9980f6(0x1c4)](_0x4c187a,_0x9980f6(0x1d1)),_0x2b7852=_0x9980f6(0x1c5);if(!a183_0x36f586[_0x9980f6(0x1de)](_0xa85456))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b7852,'stableVersion':null};try{const _0x1fee55=JSON[_0x9980f6(0x1bc)](a183_0x36f586[_0x9980f6(0x1c2)](_0xa85456,'utf8')),_0x4d2836=_0x1fee55[_0x9980f6(0x1cd)]||{},_0x487524=_0x1fee55[_0x9980f6(0x1d2)]||{},_0x411f31=_0x4d2836[_0x2b7852]||_0x487524[_0x2b7852];if(!_0x411f31)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b7852,'stableVersion':null};let _0x759e1f=getInstalledVersion(_0x4c187a,_0x2b7852);!_0x759e1f&&(_0x759e1f=_0x411f31);if(isNonNumericVersion(_0x411f31))return{'installed':!![],'version':_0x759e1f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b7852,'stableVersion':null};const _0x5d8a8c=a183_0x29184c['coerce'](_0x759e1f),_0x19bfeb=_0x5d8a8c?a183_0x29184c['lt'](_0x5d8a8c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x759e1f,'needsUpgrade':_0x19bfeb,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b7852,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b7852,'stableVersion':null};}}function a183_0x41c1(_0x53cb79,_0xa2b881){_0x53cb79=_0x53cb79-0x1bc;const _0x39a947=a183_0x39a9();let _0x41c1d4=_0x39a947[_0x53cb79];return _0x41c1d4;}export function printSdkUpgradeWarning(_0x33222f){const _0x5e27b5=a183_0x11a48a;if(!_0x33222f[_0x5e27b5(0x1d3)])return;const _0x33083c=_0x5e27b5(0x1c8),_0x3a13a9='\x1b[0m',_0xc610e7=_0x5e27b5(0x1be),_0x48eb4e=_0x33222f['packageName']||_0x5e27b5(0x1c5),_0x3a57d2=_0x33222f[_0x5e27b5(0x1cc)]||_0x33222f[_0x5e27b5(0x1d6)],_0xa7ca24=_0x5e27b5(0x1e0)+_0x48eb4e+'@'+(_0x3a57d2||_0x5e27b5(0x1df));console['log'](),console[_0x5e27b5(0x1d7)](''+_0x33083c+_0xc610e7+_0x5e27b5(0x1d0)+_0x3a13a9),console[_0x5e27b5(0x1d7)](_0x33083c+_0x5e27b5(0x1e2)+_0x48eb4e+'@'+_0x33222f['version']+_0x3a13a9),console['log'](_0x33083c+_0x5e27b5(0x1c1)+_0x3a57d2+_0x3a13a9),console[_0x5e27b5(0x1d7)](_0x33083c+_0x5e27b5(0x1bf)+_0xa7ca24+_0x3a13a9),console[_0x5e27b5(0x1d7)]();}
@@ -1 +1 @@
1
- (function(_0x37f98c,_0x309346){const _0x4215a9=a184_0x4514,_0x1e95e5=_0x37f98c();while(!![]){try{const _0x3e8d69=parseInt(_0x4215a9(0x136))/0x1+parseInt(_0x4215a9(0x147))/0x2+parseInt(_0x4215a9(0x13f))/0x3+parseInt(_0x4215a9(0x12c))/0x4+-parseInt(_0x4215a9(0x125))/0x5*(-parseInt(_0x4215a9(0x13a))/0x6)+-parseInt(_0x4215a9(0x145))/0x7+-parseInt(_0x4215a9(0x14a))/0x8*(parseInt(_0x4215a9(0x13d))/0x9);if(_0x3e8d69===_0x309346)break;else _0x1e95e5['push'](_0x1e95e5['shift']());}catch(_0x11b380){_0x1e95e5['push'](_0x1e95e5['shift']());}}}(a184_0x14ad,0xd834b));import{readFileSync}from'node:fs';function a184_0x4514(_0x7e2419,_0x177419){_0x7e2419=_0x7e2419-0x125;const _0x14adfb=a184_0x14ad();let _0x45147a=_0x14adfb[_0x7e2419];return _0x45147a;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a184_0x30dca7 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a184_0x14ad(){const _0x4b3e51=['\x20\x20\x20Current\x20CLI\x20version:\x20','minimumVersionMessage','belowMinimum','187166iddTqy','\x1b[0m','1684534yoKwvl','log','upgradeMessage','1096PnsKRU','482005TgRzmb','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x1b[33m','utf-8','npm\x20install\x20-g\x20','Current\x20version:\x20','↪\x20New\x20version\x20available','6329496chrQOt','parse','minimumVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','filter','\x20\x20\x20Minimum\x20required:\x20','coerce','1.0.0','join','\x20\x20\x20Recommended\x20stable:\x20','1748195IlmbCY','\x20\x20\x20','version','Upgrade\x20command:\x20','90atlavk','stableVersion','needsUpgrade','419427yocpOz','currentVersion','5034231PwQdsb','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20'];a184_0x14ad=function(){return _0x4b3e51;};return a184_0x14ad();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x12b0e2){const _0x2a3a62=a184_0x4514,_0x3297f9=_0x12b0e2[_0x2a3a62(0x13b)]||'latest';return _0x2a3a62(0x129)+NPM_PACKAGE_NAME+'@'+_0x3297f9;}function getCurrentCliVersion(){const _0x3405ac=a184_0x4514;try{const _0x251379=fileURLToPath(import.meta.url),_0x3f187d=resolve(dirname(_0x251379),'../..'),_0x22e7c2=resolve(_0x3f187d,'package.json'),_0x8dc925=JSON[_0x3405ac(0x12d)](readFileSync(_0x22e7c2,_0x3405ac(0x128)));return _0x8dc925[_0x3405ac(0x138)]||_0x3405ac(0x133);}catch{return _0x3405ac(0x133);}}export async function checkCliVersion(){const _0x2242e6=a184_0x4514,_0x4890ef=getCurrentCliVersion(),_0x472786=await getCliVersionPolicy(),_0xbe0b8f=_0x472786?.[_0x2242e6(0x13b)]||null,_0x17f849=_0x472786?.[_0x2242e6(0x12e)]||null;let _0x5ccaf0=![],_0x2e638b=![];const _0x1ce031=a184_0x30dca7['coerce'](_0x4890ef);if(_0x1ce031&&_0xbe0b8f)try{const _0x2e229d=a184_0x30dca7[_0x2242e6(0x132)](_0xbe0b8f);if(_0x2e229d)_0x5ccaf0=a184_0x30dca7['lt'](_0x1ce031,_0x2e229d);}catch{}if(_0x1ce031&&_0x17f849)try{const _0x141155=a184_0x30dca7['coerce'](_0x17f849);if(_0x141155)_0x2e638b=a184_0x30dca7['lt'](_0x1ce031,_0x141155);}catch{}return _0x2e638b&&(_0x5ccaf0=!![]),{'currentVersion':_0x4890ef,'stableVersion':_0xbe0b8f,'minimumVersion':_0x17f849,'needsUpgrade':_0x5ccaf0,'belowMinimum':_0x2e638b,'isPreRelease':![],'upgradeMessage':_0x472786?.[_0x2242e6(0x149)],'minimumVersionMessage':_0x472786?.[_0x2242e6(0x143)]};}export function printCliUpgradeWarning(_0x1f96eb){const _0x56b49f=a184_0x4514;if(!_0x1f96eb[_0x56b49f(0x13c)]&&!_0x1f96eb[_0x56b49f(0x144)])return;const _0xbc3e44='\x1b[31m',_0x31e265=_0x56b49f(0x127),_0x163d93=_0x56b49f(0x146),_0x5e674d='\x1b[1m',_0x24bbb1=getCliUpgradeCommand(_0x1f96eb);console[_0x56b49f(0x148)](),_0x1f96eb[_0x56b49f(0x144)]?(console[_0x56b49f(0x148)](''+_0xbc3e44+_0x5e674d+_0x56b49f(0x12f)+_0x163d93),console[_0x56b49f(0x148)](_0xbc3e44+_0x56b49f(0x142)+_0x1f96eb[_0x56b49f(0x13e)]+_0x163d93),_0x1f96eb['minimumVersion']&&console['log'](_0xbc3e44+_0x56b49f(0x131)+_0x1f96eb['minimumVersion']+_0x163d93),_0x1f96eb['stableVersion']&&_0x1f96eb[_0x56b49f(0x13b)]!==_0x1f96eb[_0x56b49f(0x12e)]&&console[_0x56b49f(0x148)](_0xbc3e44+_0x56b49f(0x135)+_0x1f96eb['stableVersion']+_0x163d93),_0x1f96eb[_0x56b49f(0x143)]&&console[_0x56b49f(0x148)](_0xbc3e44+'\x20\x20\x20'+_0x1f96eb[_0x56b49f(0x143)]+_0x163d93),console['log'](_0xbc3e44+_0x56b49f(0x140)+_0x24bbb1+_0x163d93)):(console[_0x56b49f(0x148)](''+_0x31e265+_0x5e674d+_0x56b49f(0x12b)+_0x163d93),console[_0x56b49f(0x148)](_0x31e265+_0x56b49f(0x142)+_0x1f96eb['currentVersion']+_0x163d93),console[_0x56b49f(0x148)](_0x31e265+_0x56b49f(0x141)+_0x1f96eb[_0x56b49f(0x13b)]+_0x163d93),_0x1f96eb[_0x56b49f(0x149)]&&console[_0x56b49f(0x148)](_0x31e265+_0x56b49f(0x137)+_0x1f96eb['upgradeMessage']+_0x163d93),console[_0x56b49f(0x148)](_0x31e265+'\x20\x20\x20Upgrade\x20command:\x20'+_0x24bbb1+_0x163d93)),console[_0x56b49f(0x148)]();}export function assertCliVersionSupported(_0x4f11e5){const _0x45a8fb=a184_0x4514;if(!_0x4f11e5[_0x45a8fb(0x144)])return;const _0x3940bb=[_0x4f11e5[_0x45a8fb(0x143)],_0x45a8fb(0x12a)+_0x4f11e5['currentVersion'],_0x4f11e5[_0x45a8fb(0x12e)]?'Minimum\x20required:\x20'+_0x4f11e5[_0x45a8fb(0x12e)]:null,_0x45a8fb(0x139)+getCliUpgradeCommand(_0x4f11e5)][_0x45a8fb(0x130)](Boolean)[_0x45a8fb(0x134)]('\x0a');throw CliErrors['validation'](_0x45a8fb(0x126),_0x3940bb);}
1
+ (function(_0x378466,_0x446e5f){const _0x32504b=a184_0x12b9,_0x45fddb=_0x378466();while(!![]){try{const _0x193edd=-parseInt(_0x32504b(0x110))/0x1+-parseInt(_0x32504b(0xf9))/0x2*(parseInt(_0x32504b(0x109))/0x3)+parseInt(_0x32504b(0x11b))/0x4*(parseInt(_0x32504b(0x107))/0x5)+parseInt(_0x32504b(0x11c))/0x6*(parseInt(_0x32504b(0xfa))/0x7)+-parseInt(_0x32504b(0x103))/0x8*(-parseInt(_0x32504b(0xfb))/0x9)+parseInt(_0x32504b(0x108))/0xa*(parseInt(_0x32504b(0x106))/0xb)+-parseInt(_0x32504b(0x121))/0xc*(-parseInt(_0x32504b(0x11f))/0xd);if(_0x193edd===_0x446e5f)break;else _0x45fddb['push'](_0x45fddb['shift']());}catch(_0xe44e1c){_0x45fddb['push'](_0x45fddb['shift']());}}}(a184_0x4c91,0x73241));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a184_0x12b9(_0x15eeeb,_0x100803){_0x15eeeb=_0x15eeeb-0xf9;const _0x4c9164=a184_0x4c91();let _0x12b908=_0x4c9164[_0x15eeeb];return _0x12b908;}import a184_0x420842 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x17146c){const _0xe22d0a=a184_0x12b9,_0x5681bb=_0x17146c['stableVersion']||_0xe22d0a(0x112);return _0xe22d0a(0x10b)+NPM_PACKAGE_NAME+'@'+_0x5681bb;}function getCurrentCliVersion(){const _0x54e687=a184_0x12b9;try{const _0x245133=fileURLToPath(import.meta.url),_0x462022=resolve(dirname(_0x245133),_0x54e687(0x120)),_0xccfafb=resolve(_0x462022,_0x54e687(0x122)),_0x252a63=JSON[_0x54e687(0x117)](readFileSync(_0xccfafb,_0x54e687(0x11a)));return _0x252a63['version']||_0x54e687(0x11d);}catch{return _0x54e687(0x11d);}}function a184_0x4c91(){const _0x47de51=['belowMinimum','\x20\x20\x20','validation','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','filter','stableVersion','56dEaMtd','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','1859XqHQdn','1031245BFjxnt','13730QlzZIG','680145fxQBgn','upgradeMessage','npm\x20install\x20-g\x20','↪\x20New\x20version\x20available','Upgrade\x20command:\x20','log','\x20\x20\x20Recommended\x20stable:\x20','177241luhxQj','\x1b[0m','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion','Minimum\x20required:\x20','\x1b[31m','parse','\x20\x20\x20Minimum\x20required:\x20','coerce','utf-8','8Wwmcfn','6PeJjUj','1.0.0','Current\x20version:\x20','52bxYsor','../..','1662660tzzOEg','package.json','\x20\x20\x20Stable\x20version:\x20','\x1b[33m','6hpCAeR','288407DxQGcg','114489XUFyrB'];a184_0x4c91=function(){return _0x47de51;};return a184_0x4c91();}export async function checkCliVersion(){const _0x38c373=a184_0x12b9,_0x4c6e8c=getCurrentCliVersion(),_0x4aeb27=await getCliVersionPolicy(),_0x5e2d51=_0x4aeb27?.[_0x38c373(0x102)]||null,_0xefa4dc=_0x4aeb27?.['minimumVersion']||null;let _0x1cad43=![],_0x2303eb=![];const _0x3aad6f=a184_0x420842['coerce'](_0x4c6e8c);if(_0x3aad6f&&_0x5e2d51)try{const _0x4d8dc8=a184_0x420842[_0x38c373(0x119)](_0x5e2d51);if(_0x4d8dc8)_0x1cad43=a184_0x420842['lt'](_0x3aad6f,_0x4d8dc8);}catch{}if(_0x3aad6f&&_0xefa4dc)try{const _0x32e056=a184_0x420842['coerce'](_0xefa4dc);if(_0x32e056)_0x2303eb=a184_0x420842['lt'](_0x3aad6f,_0x32e056);}catch{}return _0x2303eb&&(_0x1cad43=!![]),{'currentVersion':_0x4c6e8c,'stableVersion':_0x5e2d51,'minimumVersion':_0xefa4dc,'needsUpgrade':_0x1cad43,'belowMinimum':_0x2303eb,'isPreRelease':![],'upgradeMessage':_0x4aeb27?.[_0x38c373(0x10a)],'minimumVersionMessage':_0x4aeb27?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x1dba7f){const _0x1c3683=a184_0x12b9;if(!_0x1dba7f['needsUpgrade']&&!_0x1dba7f[_0x1c3683(0xfc)])return;const _0x416963=_0x1c3683(0x116),_0x2942e0=_0x1c3683(0x124),_0x248bf5=_0x1c3683(0x111),_0x4024c2='\x1b[1m',_0x39c5a7=getCliUpgradeCommand(_0x1dba7f);console['log'](),_0x1dba7f['belowMinimum']?(console[_0x1c3683(0x10e)](''+_0x416963+_0x4024c2+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x248bf5),console[_0x1c3683(0x10e)](_0x416963+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x1dba7f[_0x1c3683(0x114)]+_0x248bf5),_0x1dba7f[_0x1c3683(0xff)]&&console[_0x1c3683(0x10e)](_0x416963+_0x1c3683(0x118)+_0x1dba7f['minimumVersion']+_0x248bf5),_0x1dba7f['stableVersion']&&_0x1dba7f[_0x1c3683(0x102)]!==_0x1dba7f['minimumVersion']&&console[_0x1c3683(0x10e)](_0x416963+_0x1c3683(0x10f)+_0x1dba7f['stableVersion']+_0x248bf5),_0x1dba7f[_0x1c3683(0x104)]&&console[_0x1c3683(0x10e)](_0x416963+_0x1c3683(0xfd)+_0x1dba7f['minimumVersionMessage']+_0x248bf5),console[_0x1c3683(0x10e)](_0x416963+_0x1c3683(0x105)+_0x39c5a7+_0x248bf5)):(console['log'](''+_0x2942e0+_0x4024c2+_0x1c3683(0x10c)+_0x248bf5),console[_0x1c3683(0x10e)](_0x2942e0+_0x1c3683(0x113)+_0x1dba7f[_0x1c3683(0x114)]+_0x248bf5),console[_0x1c3683(0x10e)](_0x2942e0+_0x1c3683(0x123)+_0x1dba7f[_0x1c3683(0x102)]+_0x248bf5),_0x1dba7f['upgradeMessage']&&console[_0x1c3683(0x10e)](_0x2942e0+'\x20\x20\x20'+_0x1dba7f[_0x1c3683(0x10a)]+_0x248bf5),console['log'](_0x2942e0+'\x20\x20\x20Upgrade\x20command:\x20'+_0x39c5a7+_0x248bf5)),console['log']();}export function assertCliVersionSupported(_0x541ef1){const _0x4dbc3d=a184_0x12b9;if(!_0x541ef1[_0x4dbc3d(0xfc)])return;const _0x36b414=[_0x541ef1[_0x4dbc3d(0x104)],_0x4dbc3d(0x11e)+_0x541ef1['currentVersion'],_0x541ef1[_0x4dbc3d(0xff)]?_0x4dbc3d(0x115)+_0x541ef1[_0x4dbc3d(0xff)]:null,_0x4dbc3d(0x10d)+getCliUpgradeCommand(_0x541ef1)][_0x4dbc3d(0x101)](Boolean)['join']('\x0a');throw CliErrors[_0x4dbc3d(0xfe)](_0x4dbc3d(0x100),_0x36b414);}
@@ -1 +1 @@
1
- (function(_0xf12e36,_0x488f17){const _0x56418a=a185_0x3ef0,_0x324411=_0xf12e36();while(!![]){try{const _0xd88baf=parseInt(_0x56418a(0x137))/0x1+parseInt(_0x56418a(0x13b))/0x2*(-parseInt(_0x56418a(0x138))/0x3)+parseInt(_0x56418a(0x130))/0x4+-parseInt(_0x56418a(0x127))/0x5*(parseInt(_0x56418a(0x12a))/0x6)+parseInt(_0x56418a(0x12b))/0x7+parseInt(_0x56418a(0x128))/0x8+parseInt(_0x56418a(0x13d))/0x9*(-parseInt(_0x56418a(0x12f))/0xa);if(_0xd88baf===_0x488f17)break;else _0x324411['push'](_0x324411['shift']());}catch(_0xb7c713){_0x324411['push'](_0x324411['shift']());}}}(a185_0x59df,0x798ba));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a185_0x3ef0(_0x20bed2,_0x2e6370){_0x20bed2=_0x20bed2-0x125;const _0x59dfca=a185_0x59df();let _0x3ef0d8=_0x59dfca[_0x20bed2];return _0x3ef0d8;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x33678f){const _0x3b7b41=a185_0x3ef0;return typeof _0x33678f===_0x3b7b41(0x12d)&&_0x33678f[_0x3b7b41(0x13a)]()[_0x3b7b41(0x135)]>0x0?_0x33678f[_0x3b7b41(0x13a)]():null;}function normalizeCliVersionPolicy(_0x2b2ed6){const _0x6cadbf=a185_0x3ef0;if(!_0x2b2ed6||typeof _0x2b2ed6!==_0x6cadbf(0x133))return null;const _0x4abc2c=_0x2b2ed6,_0x319abc=_0x4abc2c[_0x6cadbf(0x129)]&&typeof _0x4abc2c[_0x6cadbf(0x129)]===_0x6cadbf(0x133)?_0x4abc2c[_0x6cadbf(0x129)]:_0x4abc2c,_0x496fb5=pickString(_0x319abc[_0x6cadbf(0x139)])||pickString(_0x319abc['latestVersion'])||pickString(_0x319abc[_0x6cadbf(0x131)]),_0x2e4379=pickString(_0x319abc[_0x6cadbf(0x12e)])||pickString(_0x319abc['minVersion']);if(!_0x496fb5&&!_0x2e4379)return null;return{'stableVersion':_0x496fb5,'minimumVersion':_0x2e4379,'upgradeMessage':pickString(_0x319abc[_0x6cadbf(0x134)])||undefined,'minimumVersionMessage':pickString(_0x319abc[_0x6cadbf(0x125)])||undefined};}export async function fetchCliVersionPolicy(){const _0x140b9d=a185_0x3ef0,_0x1c8865=new AbortController(),_0x5af3b5=setTimeout(()=>_0x1c8865[_0x140b9d(0x132)](),FETCH_TIMEOUT_MS);try{const _0x2b042f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x140b9d(0x136)},'signal':_0x1c8865[_0x140b9d(0x13c)]});if(!_0x2b042f['ok'])return null;const _0xed2b3f=await _0x2b042f[_0x140b9d(0x12c)]();return normalizeCliVersionPolicy(_0xed2b3f);}catch{return null;}finally{clearTimeout(_0x5af3b5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a185_0x59df(){const _0x273d37=['10wHNrhf','2977604ZrtpmR','recommendedVersion','abort','object','upgradeMessage','length','application/json','629206JFjugY','1411341McbDPa','stableVersion','trim','2njPlhH','signal','12950541PydcRP','minimumVersionMessage','now','1321480SWGbbM','5723648BaqfTJ','cli','6qraIHp','4077353fezkNe','json','string','minimumVersion'];a185_0x59df=function(){return _0x273d37;};return a185_0x59df();}export async function getCliVersionPolicy(){const _0x4337f6=a185_0x3ef0,_0x6f3b78=Date[_0x4337f6(0x126)]();if(hasCachedPolicy){const _0x41639a=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x6f3b78-cacheTime<_0x41639a)return cachedPolicy;}const _0x16fe04=await fetchCliVersionPolicy();return cachedPolicy=_0x16fe04,cacheTime=_0x6f3b78,hasCachedPolicy=!![],_0x16fe04;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a185_0x207c(_0x563142,_0xd64ee){_0x563142=_0x563142-0x16a;const _0x58afe4=a185_0x58af();let _0x207cd1=_0x58afe4[_0x563142];return _0x207cd1;}(function(_0x5ac619,_0x435da6){const _0x53a2ae=a185_0x207c,_0x5295cb=_0x5ac619();while(!![]){try{const _0x2e071f=parseInt(_0x53a2ae(0x16c))/0x1+parseInt(_0x53a2ae(0x16e))/0x2+-parseInt(_0x53a2ae(0x16d))/0x3+parseInt(_0x53a2ae(0x17c))/0x4+-parseInt(_0x53a2ae(0x171))/0x5+parseInt(_0x53a2ae(0x17e))/0x6*(parseInt(_0x53a2ae(0x17f))/0x7)+-parseInt(_0x53a2ae(0x173))/0x8*(parseInt(_0x53a2ae(0x174))/0x9);if(_0x2e071f===_0x435da6)break;else _0x5295cb['push'](_0x5295cb['shift']());}catch(_0x15d4b5){_0x5295cb['push'](_0x5295cb['shift']());}}}(a185_0x58af,0x9aba6));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x391f94){const _0x15d093=a185_0x207c;return typeof _0x391f94===_0x15d093(0x16f)&&_0x391f94['trim']()[_0x15d093(0x170)]>0x0?_0x391f94['trim']():null;}function normalizeCliVersionPolicy(_0x4e35cd){const _0x31fee6=a185_0x207c;if(!_0x4e35cd||typeof _0x4e35cd!==_0x31fee6(0x176))return null;const _0x56e5b2=_0x4e35cd,_0x482a3c=_0x56e5b2[_0x31fee6(0x177)]&&typeof _0x56e5b2['cli']===_0x31fee6(0x176)?_0x56e5b2[_0x31fee6(0x177)]:_0x56e5b2,_0x54b6a2=pickString(_0x482a3c[_0x31fee6(0x179)])||pickString(_0x482a3c[_0x31fee6(0x17d)])||pickString(_0x482a3c['recommendedVersion']),_0x1b660f=pickString(_0x482a3c[_0x31fee6(0x16a)])||pickString(_0x482a3c[_0x31fee6(0x16b)]);if(!_0x54b6a2&&!_0x1b660f)return null;return{'stableVersion':_0x54b6a2,'minimumVersion':_0x1b660f,'upgradeMessage':pickString(_0x482a3c[_0x31fee6(0x17a)])||undefined,'minimumVersionMessage':pickString(_0x482a3c[_0x31fee6(0x175)])||undefined};}export async function fetchCliVersionPolicy(){const _0x5cab4b=a185_0x207c,_0x278eb1=new AbortController(),_0x1f1a83=setTimeout(()=>_0x278eb1[_0x5cab4b(0x17b)](),FETCH_TIMEOUT_MS);try{const _0x2f3dc6=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x278eb1[_0x5cab4b(0x172)]});if(!_0x2f3dc6['ok'])return null;const _0x578c66=await _0x2f3dc6[_0x5cab4b(0x178)]();return normalizeCliVersionPolicy(_0x578c66);}catch{return null;}finally{clearTimeout(_0x1f1a83);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a185_0x58af(){const _0x3106e2=['53224YBUgEu','477MovkFY','minimumVersionMessage','object','cli','json','stableVersion','upgradeMessage','abort','4094592nLuifd','latestVersion','6FDVdZO','1212589ZVBnBb','minimumVersion','minVersion','921371SXDhVq','3572457CwMMko','1674660zCTcGQ','string','length','3891910FXMpUZ','signal'];a185_0x58af=function(){return _0x3106e2;};return a185_0x58af();}export async function getCliVersionPolicy(){const _0x1225ff=Date['now']();if(hasCachedPolicy){const _0x565d7b=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1225ff-cacheTime<_0x565d7b)return cachedPolicy;}const _0x38396b=await fetchCliVersionPolicy();return cachedPolicy=_0x38396b,cacheTime=_0x1225ff,hasCachedPolicy=!![],_0x38396b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x1890a6,_0x5d755b){const _0xc2938f=a186_0x3af4,_0x5a8dd1=_0x1890a6();while(!![]){try{const _0x3ffeb7=parseInt(_0xc2938f(0x182))/0x1*(parseInt(_0xc2938f(0x17d))/0x2)+parseInt(_0xc2938f(0x17f))/0x3*(-parseInt(_0xc2938f(0x17c))/0x4)+-parseInt(_0xc2938f(0x180))/0x5+parseInt(_0xc2938f(0x181))/0x6+parseInt(_0xc2938f(0x17e))/0x7+parseInt(_0xc2938f(0x17b))/0x8+-parseInt(_0xc2938f(0x184))/0x9;if(_0x3ffeb7===_0x5d755b)break;else _0x5a8dd1['push'](_0x5a8dd1['shift']());}catch(_0x29e6cb){_0x5a8dd1['push'](_0x5a8dd1['shift']());}}}(a186_0x3bce,0x4081c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a186_0x114d7e,getMultiAppConfigs as a186_0x507c97,getTemplateBaseUrl as a186_0x22f132}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a186_0x3bce(){const _0x334ee1=['5868774iHADtd','2094896bgfiIf','18516GDsmAV','111560KTJpUz','3194989lgFqPe','51DwdMHK','2575735LiubNg','1739022yCnUOq','9ORitCN','env'];a186_0x3bce=function(){return _0x334ee1;};return a186_0x3bce();}export{isInProject}from'../context.js';export function readConfig(_0x54e939){const _0x41bbb1=a186_0x3af4,_0x328281=readRawConfig(_0x54e939);return _0x328281[_0x41bbb1(0x183)]&&typeof _0x328281[_0x41bbb1(0x183)]==='string'&&initEnv(_0x328281[_0x41bbb1(0x183)]),_0x328281;}function a186_0x3af4(_0x22ab14,_0x25ae3b){_0x22ab14=_0x22ab14-0x17b;const _0x3bce29=a186_0x3bce();let _0x3af4d5=_0x3bce29[_0x22ab14];return _0x3af4d5;}export function getConfigAppCode(){return a186_0x114d7e();}export function getMultiAppConfigs(_0x507a3e='project'){return a186_0x507c97(_0x507a3e);}export function getTemplateBaseUrl(){return a186_0x22f132();}
1
+ (function(_0x20e8b9,_0xeda33e){const _0x10e70d=a186_0x5402,_0x377c02=_0x20e8b9();while(!![]){try{const _0x4363ee=parseInt(_0x10e70d(0x135))/0x1*(-parseInt(_0x10e70d(0x132))/0x2)+-parseInt(_0x10e70d(0x131))/0x3*(-parseInt(_0x10e70d(0x134))/0x4)+parseInt(_0x10e70d(0x13a))/0x5+parseInt(_0x10e70d(0x138))/0x6+-parseInt(_0x10e70d(0x130))/0x7*(-parseInt(_0x10e70d(0x137))/0x8)+-parseInt(_0x10e70d(0x133))/0x9*(-parseInt(_0x10e70d(0x13b))/0xa)+-parseInt(_0x10e70d(0x136))/0xb*(parseInt(_0x10e70d(0x12f))/0xc);if(_0x4363ee===_0xeda33e)break;else _0x377c02['push'](_0x377c02['shift']());}catch(_0x28ed64){_0x377c02['push'](_0x377c02['shift']());}}}(a186_0xcf44,0x6b809));import{initEnv}from'../constant/env.js';function a186_0xcf44(){const _0x4a32a9=['string','3232340wAGeHr','3140qXBgsO','env','17943864isKwzo','1232KittpI','4362CTUEkw','70978mEhrYk','25227fMAKdE','2168RVEULk','19ehWKxr','11Ynkgqd','12104iweaXU','173856SQahsr'];a186_0xcf44=function(){return _0x4a32a9;};return a186_0xcf44();}import{readRawConfig,getConfigAppCode as a186_0x57651f,getMultiAppConfigs as a186_0x19eda9,getTemplateBaseUrl as a186_0x4036a5}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x52922f){const _0x31a8ee=a186_0x5402,_0x15833b=readRawConfig(_0x52922f);return _0x15833b[_0x31a8ee(0x12e)]&&typeof _0x15833b[_0x31a8ee(0x12e)]===_0x31a8ee(0x139)&&initEnv(_0x15833b[_0x31a8ee(0x12e)]),_0x15833b;}export function getConfigAppCode(){return a186_0x57651f();}function a186_0x5402(_0x488722,_0x360b16){_0x488722=_0x488722-0x12e;const _0xcf44f6=a186_0xcf44();let _0x5402cf=_0xcf44f6[_0x488722];return _0x5402cf;}export function getMultiAppConfigs(_0x52b9ae='project'){return a186_0x19eda9(_0x52b9ae);}export function getTemplateBaseUrl(){return a186_0x4036a5();}
@@ -1 +1 @@
1
- (function(_0xbda995,_0x42859b){const _0x4261b0=a187_0xa761,_0xdcc907=_0xbda995();while(!![]){try{const _0x4db189=-parseInt(_0x4261b0(0x189))/0x1*(parseInt(_0x4261b0(0x18d))/0x2)+parseInt(_0x4261b0(0x190))/0x3+-parseInt(_0x4261b0(0x18e))/0x4+-parseInt(_0x4261b0(0x192))/0x5*(parseInt(_0x4261b0(0x191))/0x6)+-parseInt(_0x4261b0(0x18c))/0x7*(parseInt(_0x4261b0(0x186))/0x8)+-parseInt(_0x4261b0(0x193))/0x9*(-parseInt(_0x4261b0(0x194))/0xa)+-parseInt(_0x4261b0(0x18f))/0xb*(-parseInt(_0x4261b0(0x196))/0xc);if(_0x4db189===_0x42859b)break;else _0xdcc907['push'](_0xdcc907['shift']());}catch(_0x436edf){_0xdcc907['push'](_0xdcc907['shift']());}}}(a187_0x4ef6,0x7c11d));function a187_0xa761(_0x57c40f,_0x1b2f8e){_0x57c40f=_0x57c40f-0x184;const _0x4ef69b=a187_0x4ef6();let _0xa7611c=_0x4ef69b[_0x57c40f];return _0xa7611c;}import a187_0x4ee663 from'node:path';function a187_0x4ef6(){const _0x46d172=['join','609rHzFfd','263566fuzVQy','1292432HbjdsJ','22UkMdUw','1122681DqRGHR','3954iJkqAK','365KGPrBR','99cFjvpA','706330xXZCsA','isDirectory','6102708kDmGjY','复制目录时出错:','error','70048AQfQYQ','mkdirSync','name','4PqSvJm','copyFileSync'];a187_0x4ef6=function(){return _0x46d172;};return a187_0x4ef6();}import a187_0x4b0c05 from'node:fs';export async function copyDirectory(_0x56589b,_0x120d3a){const _0x3383a0=a187_0xa761;try{const _0x38e2fe=a187_0x4b0c05['readdirSync'](_0x56589b,{'withFileTypes':!![]});a187_0x4b0c05[_0x3383a0(0x187)](_0x120d3a,{'recursive':!![]});for(const _0x4dda8f of _0x38e2fe){const _0x3086fd=a187_0x4ee663[_0x3383a0(0x18b)](_0x56589b,_0x4dda8f[_0x3383a0(0x188)]),_0x2def79=a187_0x4ee663['join'](_0x120d3a,_0x4dda8f['name']);_0x4dda8f[_0x3383a0(0x195)]()?await copyDirectory(_0x3086fd,_0x2def79):a187_0x4b0c05[_0x3383a0(0x18a)](_0x3086fd,_0x2def79);}}catch(_0x460d65){console[_0x3383a0(0x185)](_0x3383a0(0x184),_0x460d65);}}
1
+ function a187_0x5d02(_0x14cf29,_0x11c281){_0x14cf29=_0x14cf29-0xd8;const _0x99f6c7=a187_0x99f6();let _0x5d02ed=_0x99f6c7[_0x14cf29];return _0x5d02ed;}(function(_0x2b3706,_0x5b3ca5){const _0x53c669=a187_0x5d02,_0x3dd974=_0x2b3706();while(!![]){try{const _0x31af1f=parseInt(_0x53c669(0xe1))/0x1+-parseInt(_0x53c669(0xd9))/0x2+-parseInt(_0x53c669(0xdf))/0x3*(parseInt(_0x53c669(0xe6))/0x4)+-parseInt(_0x53c669(0xe3))/0x5+parseInt(_0x53c669(0xe0))/0x6+-parseInt(_0x53c669(0xdb))/0x7*(parseInt(_0x53c669(0xd8))/0x8)+-parseInt(_0x53c669(0xdc))/0x9*(-parseInt(_0x53c669(0xe2))/0xa);if(_0x31af1f===_0x5b3ca5)break;else _0x3dd974['push'](_0x3dd974['shift']());}catch(_0x1144c6){_0x3dd974['push'](_0x3dd974['shift']());}}}(a187_0x99f6,0xbab6c));import a187_0x17ab66 from'node:path';import a187_0x44f2d8 from'node:fs';export async function copyDirectory(_0x2fa833,_0x3c5c0c){const _0x59ce0d=a187_0x5d02;try{const _0x3dd42b=a187_0x44f2d8[_0x59ce0d(0xe4)](_0x2fa833,{'withFileTypes':!![]});a187_0x44f2d8[_0x59ce0d(0xda)](_0x3c5c0c,{'recursive':!![]});for(const _0x5541ca of _0x3dd42b){const _0x38c6dc=a187_0x17ab66[_0x59ce0d(0xdd)](_0x2fa833,_0x5541ca[_0x59ce0d(0xe7)]),_0x55cc63=a187_0x17ab66[_0x59ce0d(0xdd)](_0x3c5c0c,_0x5541ca[_0x59ce0d(0xe7)]);_0x5541ca['isDirectory']()?await copyDirectory(_0x38c6dc,_0x55cc63):a187_0x44f2d8['copyFileSync'](_0x38c6dc,_0x55cc63);}}catch(_0x45f16b){console[_0x59ce0d(0xde)](_0x59ce0d(0xe5),_0x45f16b);}}function a187_0x99f6(){const _0x4d7686=['648277UMvBTh','9wcPxCv','join','error','3llxFmU','7974018UsCXxX','258015yJCFsP','25485740PfzvIb','5434615uQAWxC','readdirSync','复制目录时出错:','1186108TOIiEb','name','120pDgeoe','1196394IHBYgi','mkdirSync'];a187_0x99f6=function(){return _0x4d7686;};return a187_0x99f6();}
@@ -1 +1 @@
1
- (function(_0x14eb88,_0x4aa92f){const _0x34557c=a188_0x280c,_0x144f70=_0x14eb88();while(!![]){try{const _0x4b9c21=-parseInt(_0x34557c(0x1b2))/0x1+-parseInt(_0x34557c(0x1b9))/0x2*(parseInt(_0x34557c(0x1b0))/0x3)+parseInt(_0x34557c(0x1b8))/0x4*(-parseInt(_0x34557c(0x1bb))/0x5)+-parseInt(_0x34557c(0x1b1))/0x6+-parseInt(_0x34557c(0x1bd))/0x7*(parseInt(_0x34557c(0x1ba))/0x8)+-parseInt(_0x34557c(0x1b4))/0x9+-parseInt(_0x34557c(0x1b3))/0xa*(-parseInt(_0x34557c(0x1b6))/0xb);if(_0x4b9c21===_0x4aa92f)break;else _0x144f70['push'](_0x144f70['shift']());}catch(_0x44618c){_0x144f70['push'](_0x144f70['shift']());}}}(a188_0x284e,0x71191));function a188_0x280c(_0x4c29cf,_0x324121){_0x4c29cf=_0x4c29cf-0x1b0;const _0x284e05=a188_0x284e();let _0x280c8f=_0x284e05[_0x4c29cf];return _0x280c8f;}function a188_0x284e(){const _0x108977=['number','139601gtbikn','string','4jarFnC','2dmibGx','16qDmLaj','794140bnpcif','object','2907002nNyLeJ','1695531YfZvwx','1159860kJGKHW','276378IvnWQs','2420bhQzTV','5253372qhiEaS'];a188_0x284e=function(){return _0x108977;};return a188_0x284e();}function toFiniteNumber(_0x3ba628){const _0xc018a9=a188_0x280c;if(typeof _0x3ba628===_0xc018a9(0x1b5)&&Number['isFinite'](_0x3ba628))return _0x3ba628;if(typeof _0x3ba628===_0xc018a9(0x1b7)){const _0x346306=_0x3ba628['trim']();if(!_0x346306)return undefined;const _0x5dc378=Number(_0x346306);if(Number['isFinite'](_0x5dc378))return _0x5dc378;}return undefined;}export function normalizeEntityWithIdResponse(_0x1ade68){const _0x2411da=a188_0x280c,_0x5d5f36=toFiniteNumber(_0x1ade68);if(_0x5d5f36!==undefined)return{'id':_0x5d5f36,'entity':{'id':_0x5d5f36}};if(!_0x1ade68||typeof _0x1ade68!==_0x2411da(0x1bc))return{'id':undefined,'entity':{}};const _0x3d45bb={..._0x1ade68},_0x3b0063=toFiniteNumber(_0x3d45bb['id']);return _0x3b0063!==undefined&&(_0x3d45bb['id']=_0x3b0063),{'id':_0x3b0063,'entity':_0x3d45bb};}
1
+ (function(_0x647b8f,_0x13fcf7){const _0x4c70b5=a188_0x550f,_0x26d286=_0x647b8f();while(!![]){try{const _0x1dbba1=parseInt(_0x4c70b5(0x13a))/0x1+parseInt(_0x4c70b5(0x130))/0x2+parseInt(_0x4c70b5(0x132))/0x3*(parseInt(_0x4c70b5(0x12f))/0x4)+-parseInt(_0x4c70b5(0x13b))/0x5+-parseInt(_0x4c70b5(0x134))/0x6*(-parseInt(_0x4c70b5(0x137))/0x7)+parseInt(_0x4c70b5(0x13c))/0x8+-parseInt(_0x4c70b5(0x131))/0x9;if(_0x1dbba1===_0x13fcf7)break;else _0x26d286['push'](_0x26d286['shift']());}catch(_0x5102d0){_0x26d286['push'](_0x26d286['shift']());}}}(a188_0x5172,0x9498d));function a188_0x5172(){const _0x5b5ffe=['23589243gdLclR','3333993bNhpcC','string','1545906yfqRWP','number','trim','14WeoDLf','object','isFinite','1163645xelJsz','3151035iKouSY','6652632bFFESb','4wZgDRF','476060EDpKAx'];a188_0x5172=function(){return _0x5b5ffe;};return a188_0x5172();}function a188_0x550f(_0x326144,_0x569dd4){_0x326144=_0x326144-0x12f;const _0x51722c=a188_0x5172();let _0x550f2b=_0x51722c[_0x326144];return _0x550f2b;}function toFiniteNumber(_0x300432){const _0x2b59d4=a188_0x550f;if(typeof _0x300432===_0x2b59d4(0x135)&&Number[_0x2b59d4(0x139)](_0x300432))return _0x300432;if(typeof _0x300432===_0x2b59d4(0x133)){const _0x3438df=_0x300432[_0x2b59d4(0x136)]();if(!_0x3438df)return undefined;const _0x14e3b6=Number(_0x3438df);if(Number[_0x2b59d4(0x139)](_0x14e3b6))return _0x14e3b6;}return undefined;}export function normalizeEntityWithIdResponse(_0x1d786a){const _0x2376c0=a188_0x550f,_0x57255e=toFiniteNumber(_0x1d786a);if(_0x57255e!==undefined)return{'id':_0x57255e,'entity':{'id':_0x57255e}};if(!_0x1d786a||typeof _0x1d786a!==_0x2376c0(0x138))return{'id':undefined,'entity':{}};const _0x490bba={..._0x1d786a},_0x57f7c9=toFiniteNumber(_0x490bba['id']);return _0x57f7c9!==undefined&&(_0x490bba['id']=_0x57f7c9),{'id':_0x57f7c9,'entity':_0x490bba};}
@@ -1 +1 @@
1
- (function(_0x2bab16,_0x494a06){const _0x21f64d=a189_0x32d0,_0x1b4a76=_0x2bab16();while(!![]){try{const _0x550d25=-parseInt(_0x21f64d(0xce))/0x1+parseInt(_0x21f64d(0xc8))/0x2*(-parseInt(_0x21f64d(0xcc))/0x3)+-parseInt(_0x21f64d(0xd0))/0x4*(-parseInt(_0x21f64d(0xcb))/0x5)+-parseInt(_0x21f64d(0xcd))/0x6+parseInt(_0x21f64d(0xcf))/0x7*(-parseInt(_0x21f64d(0xca))/0x8)+parseInt(_0x21f64d(0xd1))/0x9+parseInt(_0x21f64d(0xd2))/0xa*(parseInt(_0x21f64d(0xd3))/0xb);if(_0x550d25===_0x494a06)break;else _0x1b4a76['push'](_0x1b4a76['shift']());}catch(_0x137152){_0x1b4a76['push'](_0x1b4a76['shift']());}}}(a189_0x5861,0x5eff5));function a189_0x32d0(_0x3249aa,_0x368e92){_0x3249aa=_0x3249aa-0xc8;const _0x586128=a189_0x5861();let _0x32d082=_0x586128[_0x3249aa];return _0x32d082;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x520eaa,_0x3d9a65){const _0x20029b=a189_0x32d0,_0x293b4b=statSync(_0x520eaa);if(_0x293b4b[_0x20029b(0xc9)]()){!existsSync(_0x3d9a65)&&mkdirSync(_0x3d9a65,{'recursive':!![]});const _0x5b95f2=readdirSync(_0x520eaa);for(const _0x3841f3 of _0x5b95f2){await copyDir(join(_0x520eaa,_0x3841f3),join(_0x3d9a65,_0x3841f3));}}else copyFileSync(_0x520eaa,_0x3d9a65);}export function ensureDir(_0x2e85bb){!existsSync(_0x2e85bb)&&mkdirSync(_0x2e85bb,{'recursive':!![]});}function a189_0x5861(){const _0x19c4c0=['10PbAIGj','16751779nBNQNG','2tEVnBu','isDirectory','881864uvoPFl','19835zXCJsx','1889994HDTyCA','4515312wjyTNm','727191HoyhPz','14QkYWPx','700wJNjQm','4519818Npytjl'];a189_0x5861=function(){return _0x19c4c0;};return a189_0x5861();}export function pathExists(_0x50b82a){return existsSync(_0x50b82a);}
1
+ (function(_0x19e71b,_0x151061){const _0x1653d1=a189_0x55c7,_0x42d595=_0x19e71b();while(!![]){try{const _0x314bb7=-parseInt(_0x1653d1(0xaa))/0x1*(parseInt(_0x1653d1(0xa2))/0x2)+parseInt(_0x1653d1(0xa4))/0x3*(-parseInt(_0x1653d1(0xa3))/0x4)+-parseInt(_0x1653d1(0xa9))/0x5+parseInt(_0x1653d1(0xa8))/0x6*(parseInt(_0x1653d1(0xa5))/0x7)+-parseInt(_0x1653d1(0xa1))/0x8*(-parseInt(_0x1653d1(0xae))/0x9)+parseInt(_0x1653d1(0xa6))/0xa*(-parseInt(_0x1653d1(0xa7))/0xb)+parseInt(_0x1653d1(0xad))/0xc*(parseInt(_0x1653d1(0xac))/0xd);if(_0x314bb7===_0x151061)break;else _0x42d595['push'](_0x42d595['shift']());}catch(_0x1b64ec){_0x42d595['push'](_0x42d595['shift']());}}}(a189_0x4ef7,0x68112));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a189_0x55c7(_0x546fc6,_0x59d289){_0x546fc6=_0x546fc6-0xa1;const _0x4ef723=a189_0x4ef7();let _0x55c764=_0x4ef723[_0x546fc6];return _0x55c764;}function a189_0x4ef7(){const _0x37e859=['91KqVCns','3026796gDFSOo','14724cktuDX','1072PMblFE','62zFkmIN','128pmWLwj','71751HlWThF','574CeGOZn','776170fphShR','55QTGKHe','7944oSwWyb','2373225uVhKQJ','1261cCGLdm','isDirectory'];a189_0x4ef7=function(){return _0x37e859;};return a189_0x4ef7();}export async function copyDir(_0x39a07d,_0x3e714b){const _0x33a131=a189_0x55c7,_0x104e00=statSync(_0x39a07d);if(_0x104e00[_0x33a131(0xab)]()){!existsSync(_0x3e714b)&&mkdirSync(_0x3e714b,{'recursive':!![]});const _0x282447=readdirSync(_0x39a07d);for(const _0x238667 of _0x282447){await copyDir(join(_0x39a07d,_0x238667),join(_0x3e714b,_0x238667));}}else copyFileSync(_0x39a07d,_0x3e714b);}export function ensureDir(_0x1482f0){!existsSync(_0x1482f0)&&mkdirSync(_0x1482f0,{'recursive':!![]});}export function pathExists(_0x43561b){return existsSync(_0x43561b);}
@@ -1 +1 @@
1
- const a190_0x32f11e=a190_0x46df;function a190_0x596b(){const _0x1931fa=['77640oJSwDS','\x0a\x0a>更新时间:','length','guides','31722330CgyBgE','.lovrabet','cache','replace','join','trimEnd','/skills/guides.json','3323488yqICoo','status','extendContent','1429173lHSjvp','1490105xekeMD','CDN\x20数据中缺少\x20skillTemplate','184TODGsZ','CDN\x20请求失败:\x20','7332288nctdQg','application/json','skillTemplate','object','lastUpdated','64fHYSRB','2eRGqNy','utf-8','path','.lovrabet/skill/guides','7560780ezSIEN','map','push','.md','entries'];a190_0x596b=function(){return _0x1931fa;};return a190_0x596b();}function a190_0x46df(_0x416637,_0x24eef0){_0x416637=_0x416637-0x1c8;const _0x596bab=a190_0x596b();let _0x46df9c=_0x596bab[_0x416637];return _0x46df9c;}(function(_0x462e2d,_0x5c46c9){const _0x157b8c=a190_0x46df,_0x56d77b=_0x462e2d();while(!![]){try{const _0x3d6f5d=parseInt(_0x157b8c(0x1dc))/0x1*(-parseInt(_0x157b8c(0x1e6))/0x2)+parseInt(_0x157b8c(0x1cd))/0x3*(parseInt(_0x157b8c(0x1de))/0x4)+-parseInt(_0x157b8c(0x1c8))/0x5+parseInt(_0x157b8c(0x1e0))/0x6+-parseInt(_0x157b8c(0x1d8))/0x7+-parseInt(_0x157b8c(0x1e5))/0x8*(parseInt(_0x157b8c(0x1db))/0x9)+parseInt(_0x157b8c(0x1d1))/0xa;if(_0x3d6f5d===_0x5c46c9)break;else _0x56d77b['push'](_0x56d77b['shift']());}catch(_0x3d38c6){_0x56d77b['push'](_0x56d77b['shift']());}}}(a190_0x596b,0xcc6dc));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5a7586=a190_0x46df,_0x2d3d6f=getTemplateBaseUrl();return _0x2d3d6f+_0x5a7586(0x1d7);}const CACHE_DIR=join(homedir(),a190_0x32f11e(0x1d2),a190_0x32f11e(0x1d3));export async function fetchGuidesFromCDN(){const _0x3839d6=a190_0x32f11e,_0xf6f36b=getGuidesCdnUrl(),_0x4ef941=await fetch(_0xf6f36b,{'headers':{'Accept':_0x3839d6(0x1e1)}});if(!_0x4ef941['ok'])throw new Error(_0x3839d6(0x1df)+_0x4ef941[_0x3839d6(0x1d9)]+'\x20'+_0x4ef941['statusText']);const _0x114a8b=await _0x4ef941['json']();if(!_0x114a8b['guides']||typeof _0x114a8b[_0x3839d6(0x1d0)]!==_0x3839d6(0x1e3))throw new Error('CDN\x20返回数据格式错误');return _0x114a8b;}export function writeGuidesToProject(_0x2c80a4,_0x366b7e,_0x1cacc2=a190_0x32f11e(0x1e9),_0x37fefd){const _0x8fd598=a190_0x32f11e,_0x3ea4b7=join(_0x366b7e,_0x1cacc2);mkdirSync(_0x3ea4b7,{'recursive':!![]});for(const [_0x3a9705,_0x49995a]of Object[_0x8fd598(0x1cc)](_0x2c80a4[_0x8fd598(0x1d0)])){let _0x59aeca=_0x49995a['content'];_0x49995a[_0x8fd598(0x1e4)]&&(_0x59aeca=appendUpdateTime(_0x59aeca,_0x49995a['lastUpdated'])),writeFileSync(join(_0x3ea4b7,_0x3a9705+_0x8fd598(0x1cb)),_0x59aeca,_0x8fd598(0x1e7));}}export function appendUpdateTime(_0x19e69b,_0x3e84ca){const _0x4d2d73=a190_0x32f11e;return _0x19e69b=_0x19e69b[_0x4d2d73(0x1d4)](/\n*>更新时间:.*$/m,''),_0x19e69b['trimEnd']()+(_0x4d2d73(0x1ce)+_0x3e84ca);}export function getSkillTemplate(_0x2ecc55){return _0x2ecc55['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x4f2396,_0x5a5755,_0x2811a0){const _0x4610d0=a190_0x32f11e,_0xbf2c2d=[];for(const [,_0x1c2579]of Object[_0x4610d0(0x1cc)](_0x5a5755[_0x4610d0(0x1d0)])){_0x1c2579[_0x4610d0(0x1da)]&&_0xbf2c2d[_0x4610d0(0x1ca)](_0x1c2579[_0x4610d0(0x1da)][_0x4610d0(0x1d6)]());}if(_0xbf2c2d['length']===0x0)return _0x4f2396;return _0x4f2396[_0x4610d0(0x1d6)]()+'\x0a\x0a'+_0xbf2c2d[_0x4610d0(0x1d5)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x394276,_0x4ba38a,_0x2b47ee){const _0x3ee895=a190_0x32f11e,_0x47ade1=getSkillTemplate(_0x394276);if(!_0x47ade1)throw new Error(_0x3ee895(0x1dd));const _0x20947b=dirname(_0x4ba38a);mkdirSync(_0x20947b,{'recursive':!![]});let _0x27067e=_0x47ade1[_0x3ee895(0x1d4)](/\{\{IDE_NAME\}\}/g,_0x2b47ee);_0x27067e=appendExtendContents(_0x27067e,_0x394276),_0x394276[_0x3ee895(0x1e2)][_0x3ee895(0x1e4)]&&(_0x27067e=appendUpdateTime(_0x27067e,_0x394276[_0x3ee895(0x1e2)][_0x3ee895(0x1e4)])),writeFileSync(_0x4ba38a,_0x27067e,_0x3ee895(0x1e7));}export async function installGuides(_0x322a98){const _0x1417d7=a190_0x32f11e,_0x1b9d18=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1b9d18,_0x322a98),Object['keys'](_0x1b9d18['guides'])[_0x1417d7(0x1cf)];}export function getGuidesSummary(_0x1f1df8){const _0x5c6925=a190_0x32f11e;return Object[_0x5c6925(0x1cc)](_0x1f1df8[_0x5c6925(0x1d0)])[_0x5c6925(0x1c9)](([_0x554202,_0x86bd3f])=>({'key':_0x554202,'title':_0x86bd3f['title'],'path':_0x86bd3f[_0x5c6925(0x1e8)]}));}
1
+ const a190_0x4b256c=a190_0x19f6;(function(_0x2dc23b,_0x4b6330){const _0xb2a617=a190_0x19f6,_0x307548=_0x2dc23b();while(!![]){try{const _0x5c4fa8=-parseInt(_0xb2a617(0xbd))/0x1+-parseInt(_0xb2a617(0xb4))/0x2*(-parseInt(_0xb2a617(0xac))/0x3)+-parseInt(_0xb2a617(0xb1))/0x4+-parseInt(_0xb2a617(0xb8))/0x5*(parseInt(_0xb2a617(0xb3))/0x6)+-parseInt(_0xb2a617(0xba))/0x7*(parseInt(_0xb2a617(0xb5))/0x8)+parseInt(_0xb2a617(0xc1))/0x9+parseInt(_0xb2a617(0xab))/0xa;if(_0x5c4fa8===_0x4b6330)break;else _0x307548['push'](_0x307548['shift']());}catch(_0x287e1d){_0x307548['push'](_0x307548['shift']());}}}(a190_0x357b,0xa7dd7));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a190_0x19f6(_0x4bcf16,_0x19435b){_0x4bcf16=_0x4bcf16-0xa3;const _0x357bad=a190_0x357b();let _0x19f637=_0x357bad[_0x4bcf16];return _0x19f637;}function getGuidesCdnUrl(){const _0x15c558=a190_0x19f6,_0x5dfac4=getTemplateBaseUrl();return _0x5dfac4+_0x15c558(0xae);}const CACHE_DIR=join(homedir(),a190_0x4b256c(0xad),a190_0x4b256c(0xa8));export async function fetchGuidesFromCDN(){const _0x5ad5a9=a190_0x4b256c,_0x365dfd=getGuidesCdnUrl(),_0x30c418=await fetch(_0x365dfd,{'headers':{'Accept':_0x5ad5a9(0xa5)}});if(!_0x30c418['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x30c418[_0x5ad5a9(0xc4)]+'\x20'+_0x30c418[_0x5ad5a9(0xa4)]);const _0x56f66b=await _0x30c418[_0x5ad5a9(0xb2)]();if(!_0x56f66b[_0x5ad5a9(0xaf)]||typeof _0x56f66b['guides']!==_0x5ad5a9(0xbc))throw new Error('CDN\x20返回数据格式错误');return _0x56f66b;}export function writeGuidesToProject(_0x1e0b1e,_0x2094db,_0x499eb3='.lovrabet/skill/guides',_0x594a69){const _0x1834d4=a190_0x4b256c,_0x30e205=join(_0x2094db,_0x499eb3);mkdirSync(_0x30e205,{'recursive':!![]});for(const [_0x358f01,_0x5ac446]of Object[_0x1834d4(0xb7)](_0x1e0b1e['guides'])){let _0x3b6133=_0x5ac446[_0x1834d4(0xbf)];_0x5ac446[_0x1834d4(0xbe)]&&(_0x3b6133=appendUpdateTime(_0x3b6133,_0x5ac446[_0x1834d4(0xbe)])),writeFileSync(join(_0x30e205,_0x358f01+_0x1834d4(0xb6)),_0x3b6133,'utf-8');}}export function appendUpdateTime(_0xf63a43,_0x193e57){const _0x5f14c0=a190_0x4b256c;return _0xf63a43=_0xf63a43[_0x5f14c0(0xb0)](/\n*>更新时间:.*$/m,''),_0xf63a43[_0x5f14c0(0xbb)]()+('\x0a\x0a>更新时间:'+_0x193e57);}function a190_0x357b(){const _0x3952c3=['cache','keys','skillTemplate','35614490mhxYSB','108DCtXBz','.lovrabet','/skills/guides.json','guides','replace','1659080lfdfDI','json','42zHuIku','20626aeHTHY','497064AyujtY','.md','entries','762835dHLzae','push','77lPurKu','trimEnd','object','1299188etkgwx','lastUpdated','content','join','1982232MRhDAX','title','path','status','utf-8','statusText','application/json','map','extendContent'];a190_0x357b=function(){return _0x3952c3;};return a190_0x357b();}export function getSkillTemplate(_0x46d56c){const _0xcf9913=a190_0x4b256c;return _0x46d56c[_0xcf9913(0xaa)]?.['content']||'';}export function appendExtendContents(_0x1f7884,_0x1b95db,_0x42a692){const _0x39b4b5=a190_0x4b256c,_0x5904a6=[];for(const [,_0x3d8477]of Object[_0x39b4b5(0xb7)](_0x1b95db[_0x39b4b5(0xaf)])){_0x3d8477[_0x39b4b5(0xa7)]&&_0x5904a6[_0x39b4b5(0xb9)](_0x3d8477['extendContent']['trimEnd']());}if(_0x5904a6['length']===0x0)return _0x1f7884;return _0x1f7884[_0x39b4b5(0xbb)]()+'\x0a\x0a'+_0x5904a6[_0x39b4b5(0xc0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27fb8d,_0x2691af,_0xd44cfa){const _0x4e96c0=a190_0x4b256c,_0x5b40f5=getSkillTemplate(_0x27fb8d);if(!_0x5b40f5)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5b90d4=dirname(_0x2691af);mkdirSync(_0x5b90d4,{'recursive':!![]});let _0x5cec24=_0x5b40f5[_0x4e96c0(0xb0)](/\{\{IDE_NAME\}\}/g,_0xd44cfa);_0x5cec24=appendExtendContents(_0x5cec24,_0x27fb8d),_0x27fb8d[_0x4e96c0(0xaa)][_0x4e96c0(0xbe)]&&(_0x5cec24=appendUpdateTime(_0x5cec24,_0x27fb8d[_0x4e96c0(0xaa)]['lastUpdated'])),writeFileSync(_0x2691af,_0x5cec24,_0x4e96c0(0xa3));}export async function installGuides(_0x4946cc){const _0x4a8695=a190_0x4b256c,_0x1586a4=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1586a4,_0x4946cc),Object[_0x4a8695(0xa9)](_0x1586a4[_0x4a8695(0xaf)])['length'];}export function getGuidesSummary(_0x11b913){const _0x31a47e=a190_0x4b256c;return Object[_0x31a47e(0xb7)](_0x11b913['guides'])[_0x31a47e(0xa6)](([_0x4ef4d5,_0x58aebd])=>({'key':_0x4ef4d5,'title':_0x58aebd[_0x31a47e(0xc2)],'path':_0x58aebd[_0x31a47e(0xc3)]}));}
@@ -1 +1 @@
1
- (function(_0x9069c3,_0x3c6e52){const _0x1e1789=a191_0x28c9,_0xa03ece=_0x9069c3();while(!![]){try{const _0xd7b003=-parseInt(_0x1e1789(0xc8))/0x1*(parseInt(_0x1e1789(0xc5))/0x2)+-parseInt(_0x1e1789(0xca))/0x3*(-parseInt(_0x1e1789(0xb2))/0x4)+parseInt(_0x1e1789(0xc4))/0x5*(parseInt(_0x1e1789(0xb5))/0x6)+parseInt(_0x1e1789(0xc0))/0x7+parseInt(_0x1e1789(0xb8))/0x8+parseInt(_0x1e1789(0xb3))/0x9*(parseInt(_0x1e1789(0xbd))/0xa)+-parseInt(_0x1e1789(0xbc))/0xb*(parseInt(_0x1e1789(0xc6))/0xc);if(_0xd7b003===_0x3c6e52)break;else _0xa03ece['push'](_0xa03ece['shift']());}catch(_0x16eb0d){_0xa03ece['push'](_0xa03ece['shift']());}}}(a191_0x523d,0xad1d5));function a191_0x28c9(_0x476ebb,_0x5eec33){_0x476ebb=_0x476ebb-0xaf;const _0x523d08=a191_0x523d();let _0x28c9d0=_0x523d08[_0x476ebb];return _0x28c9d0;}export async function httpRequest(_0x5849ae,_0x32c6bd={}){const _0x404028=a191_0x28c9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x32c6bd;let _0x499693=null;for(let _0x5662e5=0x0;_0x5662e5<=retries;_0x5662e5++){try{const _0x332e9f=new AbortController(),_0x2f3553=setTimeout(()=>_0x332e9f['abort'](),timeout),_0x4aae66=await fetch(_0x5849ae,{'headers':headers,'signal':_0x332e9f[_0x404028(0xba)]});clearTimeout(_0x2f3553);let _0x5ce16c;const _0x2d6213=_0x4aae66[_0x404028(0xb9)][_0x404028(0xbf)]('content-type');return _0x2d6213?.[_0x404028(0xc1)](_0x404028(0xb6))?_0x5ce16c=await _0x4aae66['json']():_0x5ce16c=await _0x4aae66['text'](),{'ok':_0x4aae66['ok'],'status':_0x4aae66[_0x404028(0xcb)],'statusText':_0x4aae66[_0x404028(0xaf)],'data':_0x5ce16c,'headers':_0x4aae66['headers'],'url':_0x4aae66[_0x404028(0xbb)],'text':()=>_0x4aae66[_0x404028(0xb7)]()};}catch(_0x3be2ce){_0x499693=_0x3be2ce instanceof Error?_0x3be2ce:new Error(String(_0x3be2ce));if(_0x5662e5===retries)break;if(shouldRetry(_0x3be2ce)){console['log'](_0x404028(0xc2)+retryDelay+_0x404028(0xb4)+(_0x5662e5+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x499693||new Error(_0x404028(0xc3));}function shouldRetry(_0x37f8bc){const _0x348cbb=a191_0x28c9;if(_0x37f8bc instanceof Error){if(_0x37f8bc[_0x348cbb(0xc7)]===_0x348cbb(0xb1))return![];if(_0x37f8bc['name']===_0x348cbb(0xb0)&&_0x37f8bc['message'][_0x348cbb(0xc1)](_0x348cbb(0xc9)))return!![];if(_0x37f8bc['message'][_0x348cbb(0xc1)]('ECONNRESET'))return!![];if(_0x37f8bc[_0x348cbb(0xbe)][_0x348cbb(0xc1)]('ENOTFOUND'))return![];}return![];}function sleep(_0x2b1e7c){return new Promise(_0x3c129b=>setTimeout(_0x3c129b,_0x2b1e7c));}export function validateUrl(_0x53d47d){try{return new URL(_0x53d47d),!![];}catch{return![];}}function a191_0x523d(){const _0x32e9c5=['signal','url','11HxUxRj','6610mudYEv','message','get','5946584AitcLE','includes','*\x20请求失败,','Request\x20failed','5ecWaes','12XGxKgg','27066828tSUTVU','name','127742yzadNh','fetch','1175658vKyGES','status','statusText','TypeError','AbortError','4ibfrnf','12897GYrPQZ','ms\x20后进行第\x20','2264910tPwmsa','application/json','text','9320016gWxtdn','headers'];a191_0x523d=function(){return _0x32e9c5;};return a191_0x523d();}
1
+ (function(_0x1e99fd,_0x4304a4){const _0x49d9ea=a191_0xa123,_0x2cdcd6=_0x1e99fd();while(!![]){try{const _0x4b736d=-parseInt(_0x49d9ea(0x15d))/0x1+-parseInt(_0x49d9ea(0x15f))/0x2+parseInt(_0x49d9ea(0x14e))/0x3*(-parseInt(_0x49d9ea(0x14f))/0x4)+parseInt(_0x49d9ea(0x154))/0x5*(parseInt(_0x49d9ea(0x159))/0x6)+-parseInt(_0x49d9ea(0x148))/0x7*(-parseInt(_0x49d9ea(0x149))/0x8)+parseInt(_0x49d9ea(0x15e))/0x9*(parseInt(_0x49d9ea(0x146))/0xa)+-parseInt(_0x49d9ea(0x147))/0xb;if(_0x4b736d===_0x4304a4)break;else _0x2cdcd6['push'](_0x2cdcd6['shift']());}catch(_0x3baab7){_0x2cdcd6['push'](_0x2cdcd6['shift']());}}}(a191_0x686d,0x77d9b));export async function httpRequest(_0x1bc4f6,_0x20a96f={}){const _0xad5164=a191_0xa123,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x20a96f;let _0x3305b9=null;for(let _0x149db0=0x0;_0x149db0<=retries;_0x149db0++){try{const _0x339498=new AbortController(),_0x28d414=setTimeout(()=>_0x339498[_0xad5164(0x158)](),timeout),_0x193325=await fetch(_0x1bc4f6,{'headers':headers,'signal':_0x339498[_0xad5164(0x160)]});clearTimeout(_0x28d414);let _0x41ce82;const _0x26e118=_0x193325['headers'][_0xad5164(0x14a)](_0xad5164(0x151));return _0x26e118?.[_0xad5164(0x142)](_0xad5164(0x156))?_0x41ce82=await _0x193325[_0xad5164(0x144)]():_0x41ce82=await _0x193325['text'](),{'ok':_0x193325['ok'],'status':_0x193325[_0xad5164(0x155)],'statusText':_0x193325['statusText'],'data':_0x41ce82,'headers':_0x193325[_0xad5164(0x14d)],'url':_0x193325[_0xad5164(0x15a)],'text':()=>_0x193325[_0xad5164(0x153)]()};}catch(_0x526873){_0x3305b9=_0x526873 instanceof Error?_0x526873:new Error(String(_0x526873));if(_0x149db0===retries)break;if(shouldRetry(_0x526873)){console['log'](_0xad5164(0x143)+retryDelay+_0xad5164(0x15c)+(_0x149db0+0x1)+_0xad5164(0x150)),await sleep(retryDelay);continue;}else break;}}throw _0x3305b9||new Error(_0xad5164(0x145));}function a191_0xa123(_0x23d414,_0x875deb){_0x23d414=_0x23d414-0x141;const _0x686d3c=a191_0x686d();let _0xa123ec=_0x686d3c[_0x23d414];return _0xa123ec;}function a191_0x686d(){const _0x42a1da=['get','message','ECONNRESET','headers','921NsJZhQ','1468MDCiGB','\x20次重试...','content-type','fetch','text','10rtQGwB','status','application/json','name','abort','2856120NYAHHy','url','AbortError','ms\x20后进行第\x20','488380eUSUkP','2653218TieKie','1858040zdEmWN','signal','ENOTFOUND','includes','*\x20请求失败,','json','Request\x20failed','10dfjDAL','2006774EYiTcA','84sKWCBP','637712JDSbLd'];a191_0x686d=function(){return _0x42a1da;};return a191_0x686d();}function shouldRetry(_0x5753c5){const _0x2a7d48=a191_0xa123;if(_0x5753c5 instanceof Error){if(_0x5753c5[_0x2a7d48(0x157)]===_0x2a7d48(0x15b))return![];if(_0x5753c5[_0x2a7d48(0x157)]==='TypeError'&&_0x5753c5[_0x2a7d48(0x14b)][_0x2a7d48(0x142)](_0x2a7d48(0x152)))return!![];if(_0x5753c5[_0x2a7d48(0x14b)][_0x2a7d48(0x142)](_0x2a7d48(0x14c)))return!![];if(_0x5753c5[_0x2a7d48(0x14b)]['includes'](_0x2a7d48(0x141)))return![];}return![];}function sleep(_0x264440){return new Promise(_0x455843=>setTimeout(_0x455843,_0x264440));}export function validateUrl(_0x5e1f09){try{return new URL(_0x5e1f09),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x443505,_0x4abd43){const _0x518510=a192_0x45c7,_0x47ff3b=_0x443505();while(!![]){try{const _0x515bba=parseInt(_0x518510(0xbc))/0x1+parseInt(_0x518510(0xb0))/0x2+parseInt(_0x518510(0xb2))/0x3*(-parseInt(_0x518510(0xb3))/0x4)+-parseInt(_0x518510(0xaf))/0x5*(parseInt(_0x518510(0xba))/0x6)+parseInt(_0x518510(0xbd))/0x7+-parseInt(_0x518510(0xb4))/0x8*(-parseInt(_0x518510(0xb8))/0x9)+parseInt(_0x518510(0xb9))/0xa*(parseInt(_0x518510(0xb1))/0xb);if(_0x515bba===_0x4abd43)break;else _0x47ff3b['push'](_0x47ff3b['shift']());}catch(_0x5cb871){_0x47ff3b['push'](_0x47ff3b['shift']());}}}(a192_0xd12c,0x3f8f2));function a192_0x45c7(_0x491cc6,_0x1207c5){_0x491cc6=_0x491cc6-0xae;const _0xd12ce7=a192_0xd12c();let _0x45c700=_0xd12ce7[_0x491cc6];return _0x45c700;}function env(_0x375c9d){return process.env[`RABETBASE_${_0x375c9d}`]||process.env[`LOVRABET_${_0x375c9d}`]||undefined;}export function isNonInteractive(_0x23fe56){const _0x2b9921=a192_0x45c7;return!!(_0x23fe56['nonInteractive']||_0x23fe56['ci']||env('CI')===_0x2b9921(0xbe)||process.env.CI===_0x2b9921(0xbe)||!process[_0x2b9921(0xb5)][_0x2b9921(0xae)]||!isStdinRawModeSupported());}function a192_0xd12c(){const _0x4d63dc=['20kvXRkx','733182tZqCHL','323125CrGIAF','1077MGtVso','5724BAzFKF','233576pyDwbm','stdout','isRaw','stdin','36IxTJqJ','80xcpOft','334590ligGWw','setRawMode','33190YtxDGs','1718906WPiWTo','true','isTTY'];a192_0xd12c=function(){return _0x4d63dc;};return a192_0xd12c();}function isStdinRawModeSupported(){const _0x2575f6=a192_0x45c7;if(!process[_0x2575f6(0xb7)][_0x2575f6(0xae)])return![];try{const _0x2829e6=process[_0x2575f6(0xb7)][_0x2575f6(0xb6)];return process[_0x2575f6(0xb7)][_0x2575f6(0xbb)](!![]),process[_0x2575f6(0xb7)]['setRawMode'](_0x2829e6??![]),!![];}catch{return![];}}
1
+ (function(_0x57c067,_0x11c698){const _0x24f5d1=a192_0x29be,_0x2c0b68=_0x57c067();while(!![]){try{const _0x5d7049=-parseInt(_0x24f5d1(0x112))/0x1*(parseInt(_0x24f5d1(0x114))/0x2)+-parseInt(_0x24f5d1(0x10a))/0x3*(-parseInt(_0x24f5d1(0x10c))/0x4)+-parseInt(_0x24f5d1(0x10e))/0x5+-parseInt(_0x24f5d1(0x110))/0x6*(-parseInt(_0x24f5d1(0x118))/0x7)+-parseInt(_0x24f5d1(0x116))/0x8+parseInt(_0x24f5d1(0x10f))/0x9*(parseInt(_0x24f5d1(0x109))/0xa)+parseInt(_0x24f5d1(0x108))/0xb*(parseInt(_0x24f5d1(0x117))/0xc);if(_0x5d7049===_0x11c698)break;else _0x2c0b68['push'](_0x2c0b68['shift']());}catch(_0x460bb0){_0x2c0b68['push'](_0x2c0b68['shift']());}}}(a192_0x5075,0x8c58f));function env(_0x17c3b5){return process.env[`RABETBASE_${_0x17c3b5}`]||process.env[`LOVRABET_${_0x17c3b5}`]||undefined;}function a192_0x29be(_0x1ee205,_0x54acba){_0x1ee205=_0x1ee205-0x107;const _0x5075de=a192_0x5075();let _0x29bea4=_0x5075de[_0x1ee205];return _0x29bea4;}export function isNonInteractive(_0x5cd6af){const _0x1da543=a192_0x29be;return!!(_0x5cd6af[_0x1da543(0x111)]||_0x5cd6af['ci']||env('CI')===_0x1da543(0x113)||process.env.CI===_0x1da543(0x113)||!process[_0x1da543(0x10d)][_0x1da543(0x107)]||!isStdinRawModeSupported());}function a192_0x5075(){const _0x577051=['setRawMode','isTTY','402589FWRDCS','10DgfAKl','271959xOWSCz','isRaw','12AkPsoN','stdout','4534380LBKcJq','2880135Chraaa','27894pxgTwf','nonInteractive','1SGUPoC','true','2205802xVdzgj','stdin','5093776nZsFcG','792XIsnFt','322sLSvez'];a192_0x5075=function(){return _0x577051;};return a192_0x5075();}function isStdinRawModeSupported(){const _0x38214b=a192_0x29be;if(!process[_0x38214b(0x115)][_0x38214b(0x107)])return![];try{const _0x16f931=process[_0x38214b(0x115)][_0x38214b(0x10b)];return process[_0x38214b(0x115)][_0x38214b(0x119)](!![]),process[_0x38214b(0x115)][_0x38214b(0x119)](_0x16f931??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a193_0x15ef(){const _0x260d86=['开始执行:\x20','utf8','split','12kmDeui','.lovrabet.log','transports','combine','428980utHdNF','logFilePath','format','88CJZKwV','createLogger','929284JbJToz','join','dirname','message','rawCommand','log','timestamp','13410TKPdSR','326694CdGEBa','warn','24241bRDWwe','getWinstonInstance','existsSync','Failed\x20to\x20read\x20logs:','red','map','errors','File','toISOString','duration','initWinstonLogger','logTask','843981kJJXcF','yellow','addColors','green','readFileSync','level','success','blue','command','currentRawCommand','1730008YXzNyo','info','11034QTKKym','writeFileSync','now','stringify','unknown','error','Failed\x20to\x20clear\x20logs:','clearLogs','winstonLogger'];a193_0x15ef=function(){return _0x260d86;};return a193_0x15ef();}const a193_0x11b9ea=a193_0x381e;(function(_0x5d13cd,_0x8123a1){const _0x5e49da=a193_0x381e,_0x57888c=_0x5d13cd();while(!![]){try{const _0x29f811=-parseInt(_0x5e49da(0x1cf))/0x1+-parseInt(_0x5e49da(0x1c7))/0x2+-parseInt(_0x5e49da(0x1dd))/0x3+-parseInt(_0x5e49da(0x1e7))/0x4+parseInt(_0x5e49da(0x1c2))/0x5*(parseInt(_0x5e49da(0x1be))/0x6)+-parseInt(_0x5e49da(0x1d1))/0x7*(parseInt(_0x5e49da(0x1c5))/0x8)+-parseInt(_0x5e49da(0x1e9))/0x9*(-parseInt(_0x5e49da(0x1ce))/0xa);if(_0x29f811===_0x8123a1)break;else _0x57888c['push'](_0x57888c['shift']());}catch(_0x19a2a3){_0x57888c['push'](_0x57888c['shift']());}}}(a193_0x15ef,0x42810));function a193_0x381e(_0x440432,_0x440a35){_0x440432=_0x440432-0x1b3;const _0x15ef73=a193_0x15ef();let _0x381ed8=_0x15ef73[_0x440432];return _0x381ed8;}import a193_0x226fe2 from'winston';import a193_0xb56740 from'node:fs';import a193_0x1339a6 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a193_0x11b9ea(0x1e6)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x462d85){this['currentRawCommand']=_0x462d85;}[a193_0x11b9ea(0x1db)](){const _0x1706c7=a193_0x11b9ea,_0x3703ff=a193_0x1339a6[_0x1706c7(0x1c9)](this[_0x1706c7(0x1c3)]);!a193_0xb56740[_0x1706c7(0x1d3)](_0x3703ff)&&a193_0xb56740['mkdirSync'](_0x3703ff,{'recursive':!![]});const _0x2893de=a193_0x226fe2[_0x1706c7(0x1c4)][_0x1706c7(0x1c1)](a193_0x226fe2[_0x1706c7(0x1c4)][_0x1706c7(0x1cd)](),a193_0x226fe2[_0x1706c7(0x1c4)][_0x1706c7(0x1d7)]({'stack':!![]}),a193_0x226fe2[_0x1706c7(0x1c4)]['printf'](_0x17ec79=>{const _0x5773fe=_0x1706c7,_0x2a01d5={'timestamp':_0x17ec79[_0x5773fe(0x1cd)]||new Date()[_0x5773fe(0x1d9)](),'level':_0x17ec79[_0x5773fe(0x1e2)]||'info','command':_0x17ec79[_0x5773fe(0x1e5)]||_0x5773fe(0x1b6),'rawCommand':_0x17ec79[_0x5773fe(0x1cb)]||this[_0x5773fe(0x1e6)]||undefined,'message':_0x17ec79[_0x5773fe(0x1ca)]||'','duration':_0x17ec79[_0x5773fe(0x1da)]||undefined,'details':_0x17ec79['details']||undefined};return JSON[_0x5773fe(0x1b5)](_0x2a01d5);}));this[_0x1706c7(0x1ba)]=a193_0x226fe2[_0x1706c7(0x1c6)]({'level':_0x1706c7(0x1e8),'format':_0x2893de,'transports':[new a193_0x226fe2[(_0x1706c7(0x1c0))][(_0x1706c7(0x1d8))]({'filename':this[_0x1706c7(0x1c3)],'level':_0x1706c7(0x1e8)})],'silent':![]}),a193_0x226fe2[_0x1706c7(0x1df)]({'success':_0x1706c7(0x1e0),'error':_0x1706c7(0x1d5),'warn':_0x1706c7(0x1de),'info':_0x1706c7(0x1e4)});}['setLogPath'](_0x506077){const _0x239eab=a193_0x11b9ea;this[_0x239eab(0x1c3)]=a193_0x1339a6[_0x239eab(0x1c8)](_0x506077,_0x239eab(0x1bf)),this[_0x239eab(0x1ba)]&&this['winstonLogger']['clear'](),this[_0x239eab(0x1db)]();}[a193_0x11b9ea(0x1e8)](_0x3dcce1,_0x3a9967,_0x41b420){const _0x5dde58=a193_0x11b9ea;if(!this[_0x5dde58(0x1c3)]||!this[_0x5dde58(0x1ba)])return;this[_0x5dde58(0x1ba)][_0x5dde58(0x1e8)](_0x3a9967,{'command':_0x3dcce1,'details':_0x41b420});}[a193_0x11b9ea(0x1e3)](_0x3d2399,_0x1edfec,_0x38ee1b,_0x27bcf){const _0x1a1728=a193_0x11b9ea;if(!this[_0x1a1728(0x1c3)]||!this[_0x1a1728(0x1ba)])return;this['winstonLogger'][_0x1a1728(0x1cc)]('info',_0x1edfec,{'level':'success','command':_0x3d2399,'duration':_0x38ee1b,'details':_0x27bcf});}[a193_0x11b9ea(0x1b7)](_0x486289,_0x5151b6,_0x2e5e5c){const _0x173834=a193_0x11b9ea;if(!this['logFilePath']||!this[_0x173834(0x1ba)])return;this[_0x173834(0x1ba)][_0x173834(0x1b7)](_0x5151b6,{'command':_0x486289,'details':_0x2e5e5c});}[a193_0x11b9ea(0x1d0)](_0x1aefc8,_0x2438a8,_0x5ca326){const _0x57f727=a193_0x11b9ea;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x57f727(0x1ba)][_0x57f727(0x1d0)](_0x2438a8,{'command':_0x1aefc8,'details':_0x5ca326});}async[a193_0x11b9ea(0x1dc)](_0x5bd30f,_0x433912,_0x39960b){const _0x2ac189=a193_0x11b9ea,_0x31f657=Date[_0x2ac189(0x1b4)]();this['info'](_0x5bd30f,_0x2ac189(0x1bb)+_0x433912);try{const _0x4654c6=await _0x39960b(),_0x16ae85=Date['now']()-_0x31f657;return this['success'](_0x5bd30f,'完成:\x20'+_0x433912,_0x16ae85),_0x4654c6;}catch(_0x526c21){const _0x381c9f=Date[_0x2ac189(0x1b4)]()-_0x31f657;this['error'](_0x5bd30f,'失败:\x20'+_0x433912,{'error':_0x526c21 instanceof Error?_0x526c21['message']:String(_0x526c21),'duration':_0x381c9f});throw _0x526c21;}}['readLogs'](){const _0x4e9647=a193_0x11b9ea;try{if(!a193_0xb56740['existsSync'](this['logFilePath']))return[];const _0x5569f6=a193_0xb56740[_0x4e9647(0x1e1)](this[_0x4e9647(0x1c3)],_0x4e9647(0x1bc));return _0x5569f6[_0x4e9647(0x1bd)]('\x0a')['filter'](_0x12b473=>_0x12b473['trim']())[_0x4e9647(0x1d6)](_0x2d45c5=>JSON['parse'](_0x2d45c5));}catch(_0x4484f6){return console[_0x4e9647(0x1d0)](_0x4e9647(0x1d4),_0x4484f6),[];}}[a193_0x11b9ea(0x1b9)](){const _0x419bac=a193_0x11b9ea;try{a193_0xb56740[_0x419bac(0x1d3)](this[_0x419bac(0x1c3)])&&a193_0xb56740[_0x419bac(0x1b3)](this[_0x419bac(0x1c3)],'',_0x419bac(0x1bc));}catch(_0x2dc114){console[_0x419bac(0x1d0)](_0x419bac(0x1b8),_0x2dc114);}}[a193_0x11b9ea(0x1d2)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a193_0x537365=a193_0x429b;function a193_0x429b(_0xf186ef,_0x61fc4a){_0xf186ef=_0xf186ef-0x199;const _0x535576=a193_0x5355();let _0x429bb1=_0x535576[_0xf186ef];return _0x429bb1;}(function(_0x2e5ad5,_0x3859a0){const _0x18e16d=a193_0x429b,_0x31dd45=_0x2e5ad5();while(!![]){try{const _0x33da49=-parseInt(_0x18e16d(0x1ae))/0x1*(-parseInt(_0x18e16d(0x1a8))/0x2)+-parseInt(_0x18e16d(0x1b9))/0x3+parseInt(_0x18e16d(0x1cb))/0x4+-parseInt(_0x18e16d(0x1d2))/0x5*(-parseInt(_0x18e16d(0x1c7))/0x6)+-parseInt(_0x18e16d(0x1a2))/0x7+parseInt(_0x18e16d(0x1ba))/0x8*(parseInt(_0x18e16d(0x1d4))/0x9)+parseInt(_0x18e16d(0x1bc))/0xa*(parseInt(_0x18e16d(0x199))/0xb);if(_0x33da49===_0x3859a0)break;else _0x31dd45['push'](_0x31dd45['shift']());}catch(_0x391474){_0x31dd45['push'](_0x31dd45['shift']());}}}(a193_0x5355,0x7d55f));import a193_0x3ff173 from'winston';import a193_0x360cdc from'node:fs';import a193_0x28e29f from'node:path';class Logger{[a193_0x537365(0x1a7)];[a193_0x537365(0x1be)];[a193_0x537365(0x1d1)]='';constructor(){this['logFilePath']='';}[a193_0x537365(0x19c)](_0xb70192){this['currentRawCommand']=_0xb70192;}[a193_0x537365(0x1aa)](){const _0x43c46f=a193_0x537365,_0x809885=a193_0x28e29f[_0x43c46f(0x1bd)](this[_0x43c46f(0x1be)]);!a193_0x360cdc[_0x43c46f(0x1b4)](_0x809885)&&a193_0x360cdc[_0x43c46f(0x1a6)](_0x809885,{'recursive':!![]});const _0x38f3f7=a193_0x3ff173[_0x43c46f(0x1ad)][_0x43c46f(0x1ce)](a193_0x3ff173[_0x43c46f(0x1ad)][_0x43c46f(0x1a3)](),a193_0x3ff173['format'][_0x43c46f(0x1a1)]({'stack':!![]}),a193_0x3ff173[_0x43c46f(0x1ad)][_0x43c46f(0x1c9)](_0x51d222=>{const _0x1240b1=_0x43c46f,_0x512ab2={'timestamp':_0x51d222[_0x1240b1(0x1a3)]||new Date()[_0x1240b1(0x1b2)](),'level':_0x51d222['level']||_0x1240b1(0x1cd),'command':_0x51d222[_0x1240b1(0x1af)]||'unknown','rawCommand':_0x51d222[_0x1240b1(0x19d)]||this['currentRawCommand']||undefined,'message':_0x51d222[_0x1240b1(0x19e)]||'','duration':_0x51d222[_0x1240b1(0x1ac)]||undefined,'details':_0x51d222[_0x1240b1(0x1bb)]||undefined};return JSON[_0x1240b1(0x1c8)](_0x512ab2);}));this['winstonLogger']=a193_0x3ff173[_0x43c46f(0x1a0)]({'level':_0x43c46f(0x1cd),'format':_0x38f3f7,'transports':[new a193_0x3ff173[(_0x43c46f(0x19a))][(_0x43c46f(0x1c3))]({'filename':this[_0x43c46f(0x1be)],'level':_0x43c46f(0x1cd)})],'silent':![]}),a193_0x3ff173[_0x43c46f(0x1ab)]({'success':_0x43c46f(0x1c2),'error':_0x43c46f(0x19f),'warn':_0x43c46f(0x1c4),'info':_0x43c46f(0x1d3)});}[a193_0x537365(0x1cc)](_0x48c0dc){const _0x4d5c1c=a193_0x537365;this[_0x4d5c1c(0x1be)]=a193_0x28e29f[_0x4d5c1c(0x1a9)](_0x48c0dc,_0x4d5c1c(0x1c0)),this[_0x4d5c1c(0x1a7)]&&this['winstonLogger']['clear'](),this[_0x4d5c1c(0x1aa)]();}[a193_0x537365(0x1cd)](_0x215f2f,_0x2ef033,_0x3c473a){const _0x12e63a=a193_0x537365;if(!this['logFilePath']||!this[_0x12e63a(0x1a7)])return;this[_0x12e63a(0x1a7)]['info'](_0x2ef033,{'command':_0x215f2f,'details':_0x3c473a});}['success'](_0x4a95e0,_0x68aa05,_0x8f82d7,_0x3e062f){const _0x1a9a21=a193_0x537365;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x1a9a21(0x1b7)]('info',_0x68aa05,{'level':_0x1a9a21(0x1a4),'command':_0x4a95e0,'duration':_0x8f82d7,'details':_0x3e062f});}[a193_0x537365(0x1ca)](_0x949eaa,_0x47a264,_0x189daa){const _0x30d128=a193_0x537365;if(!this['logFilePath']||!this[_0x30d128(0x1a7)])return;this['winstonLogger'][_0x30d128(0x1ca)](_0x47a264,{'command':_0x949eaa,'details':_0x189daa});}[a193_0x537365(0x1b8)](_0x25191a,_0x2a7f8f,_0xab9f15){const _0x5d490e=a193_0x537365;if(!this[_0x5d490e(0x1be)]||!this['winstonLogger'])return;this[_0x5d490e(0x1a7)]['warn'](_0x2a7f8f,{'command':_0x25191a,'details':_0xab9f15});}async[a193_0x537365(0x1c1)](_0x48a546,_0x48c641,_0xa1da65){const _0x47ff0b=a193_0x537365,_0x42b100=Date['now']();this[_0x47ff0b(0x1cd)](_0x48a546,'开始执行:\x20'+_0x48c641);try{const _0x44bc83=await _0xa1da65(),_0x22e6fe=Date[_0x47ff0b(0x1b5)]()-_0x42b100;return this[_0x47ff0b(0x1a4)](_0x48a546,_0x47ff0b(0x1b0)+_0x48c641,_0x22e6fe),_0x44bc83;}catch(_0xca0e68){const _0x1a9388=Date[_0x47ff0b(0x1b5)]()-_0x42b100;this[_0x47ff0b(0x1ca)](_0x48a546,'失败:\x20'+_0x48c641,{'error':_0xca0e68 instanceof Error?_0xca0e68['message']:String(_0xca0e68),'duration':_0x1a9388});throw _0xca0e68;}}[a193_0x537365(0x1bf)](){const _0x4b9d25=a193_0x537365;try{if(!a193_0x360cdc[_0x4b9d25(0x1b4)](this[_0x4b9d25(0x1be)]))return[];const _0x2b027f=a193_0x360cdc['readFileSync'](this[_0x4b9d25(0x1be)],_0x4b9d25(0x19b));return _0x2b027f['split']('\x0a')[_0x4b9d25(0x1c5)](_0x3f86cb=>_0x3f86cb[_0x4b9d25(0x1b6)]())[_0x4b9d25(0x1b1)](_0x126272=>JSON[_0x4b9d25(0x1a5)](_0x126272));}catch(_0x3fd678){return console[_0x4b9d25(0x1b8)](_0x4b9d25(0x1d0),_0x3fd678),[];}}['clearLogs'](){const _0x3c4425=a193_0x537365;try{a193_0x360cdc[_0x3c4425(0x1b4)](this['logFilePath'])&&a193_0x360cdc[_0x3c4425(0x1c6)](this[_0x3c4425(0x1be)],'',_0x3c4425(0x19b));}catch(_0x15e126){console[_0x3c4425(0x1b8)](_0x3c4425(0x1cf),_0x15e126);}}[a193_0x537365(0x1b3)](){const _0x42a6e5=a193_0x537365;return this[_0x42a6e5(0x1a7)];}}export const logger=new Logger();function a193_0x5355(){const _0x3029aa=['6193wPJmWs','transports','utf8','setRawCommand','rawCommand','message','red','createLogger','errors','41650TolCMT','timestamp','success','parse','mkdirSync','winstonLogger','2tIqSUu','join','initWinstonLogger','addColors','duration','format','99241wglrGd','command','完成:\x20','map','toISOString','getWinstonInstance','existsSync','now','trim','log','warn','1993923cnTqyh','2361760ybmKyf','details','9550nYLjOX','dirname','logFilePath','readLogs','.lovrabet.log','logTask','green','File','yellow','filter','writeFileSync','214782xqGjXo','stringify','printf','error','864172FjHVDT','setLogPath','info','combine','Failed\x20to\x20clear\x20logs:','Failed\x20to\x20read\x20logs:','currentRawCommand','5xTtNHx','blue','9DRmJUz'];a193_0x5355=function(){return _0x3029aa;};return a193_0x5355();}
@@ -1 +1 @@
1
- function a194_0x9292(_0x393a3a,_0x327985){_0x393a3a=_0x393a3a-0x137;const _0x318958=a194_0x3189();let _0x92925=_0x318958[_0x393a3a];return _0x92925;}(function(_0x200b1b,_0x3a17d9){const _0x24ebcb=a194_0x9292,_0x1460e8=_0x200b1b();while(!![]){try{const _0x3cf9b9=-parseInt(_0x24ebcb(0x13d))/0x1*(-parseInt(_0x24ebcb(0x13b))/0x2)+parseInt(_0x24ebcb(0x138))/0x3*(parseInt(_0x24ebcb(0x139))/0x4)+-parseInt(_0x24ebcb(0x13e))/0x5+-parseInt(_0x24ebcb(0x149))/0x6*(parseInt(_0x24ebcb(0x145))/0x7)+-parseInt(_0x24ebcb(0x140))/0x8*(-parseInt(_0x24ebcb(0x148))/0x9)+parseInt(_0x24ebcb(0x13c))/0xa*(parseInt(_0x24ebcb(0x141))/0xb)+parseInt(_0x24ebcb(0x142))/0xc*(-parseInt(_0x24ebcb(0x147))/0xd);if(_0x3cf9b9===_0x3a17d9)break;else _0x1460e8['push'](_0x1460e8['shift']());}catch(_0x5b7212){_0x1460e8['push'](_0x1460e8['shift']());}}}(a194_0x3189,0x32477));function a194_0x3189(){const _0x2cab79=['validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','182viqSOm','object','234JyUXya','249903SwGsBh','26454GbOLzR','parse','975309TOpvVD','4CyTGMo','isArray','2AEXJBu','356030tDHnfA','405389xiTkYZ','266060YakRYN','Invalid\x20JSON\x20for\x20--params:\x20','32CWWCRI','55TMWGYr','430524FAuJBq'];a194_0x3189=function(){return _0x2cab79;};return a194_0x3189();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3f1c99){const _0x5d908b=a194_0x9292;if(!_0x3f1c99)return undefined;let _0x4c3977;try{_0x4c3977=JSON[_0x5d908b(0x137)](_0x3f1c99);}catch{throw CliErrors[_0x5d908b(0x143)](_0x5d908b(0x13f)+_0x3f1c99);}if(!_0x4c3977||typeof _0x4c3977!==_0x5d908b(0x146)||Array[_0x5d908b(0x13a)](_0x4c3977))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object',_0x5d908b(0x144));return _0x4c3977;}
1
+ function a194_0x30dd(){const _0x1ad097=['3FMNpVg','624368LrLdbH','--params\x20must\x20be\x20a\x20JSON\x20object','Invalid\x20JSON\x20for\x20--params:\x20','4415DTDHjK','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','1595592wlHvPu','2580688VqOsvs','2148ZFZJlw','2767324RZGCoC','18bHAHfi','29501XOlzDT','parse','object','isArray','889820nlhIbD'];a194_0x30dd=function(){return _0x1ad097;};return a194_0x30dd();}function a194_0x22e4(_0x548dfe,_0x5eabc2){_0x548dfe=_0x548dfe-0x10e;const _0x30dd8c=a194_0x30dd();let _0x22e461=_0x30dd8c[_0x548dfe];return _0x22e461;}(function(_0x12c48e,_0x1cfcfe){const _0x60f5f5=a194_0x22e4,_0x21672e=_0x12c48e();while(!![]){try{const _0x5bc430=-parseInt(_0x60f5f5(0x114))/0x1+parseInt(_0x60f5f5(0x110))/0x2+parseInt(_0x60f5f5(0x119))/0x3*(-parseInt(_0x60f5f5(0x11a))/0x4)+parseInt(_0x60f5f5(0x11d))/0x5*(parseInt(_0x60f5f5(0x111))/0x6)+-parseInt(_0x60f5f5(0x112))/0x7+-parseInt(_0x60f5f5(0x10f))/0x8+-parseInt(_0x60f5f5(0x113))/0x9*(parseInt(_0x60f5f5(0x118))/0xa);if(_0x5bc430===_0x1cfcfe)break;else _0x21672e['push'](_0x21672e['shift']());}catch(_0x3c5a88){_0x21672e['push'](_0x21672e['shift']());}}}(a194_0x30dd,0x9e3b8));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2ed717){const _0x2d664c=a194_0x22e4;if(!_0x2ed717)return undefined;let _0x554545;try{_0x554545=JSON[_0x2d664c(0x115)](_0x2ed717);}catch{throw CliErrors[_0x2d664c(0x10e)](_0x2d664c(0x11c)+_0x2ed717);}if(!_0x554545||typeof _0x554545!==_0x2d664c(0x116)||Array[_0x2d664c(0x117)](_0x554545))throw CliErrors[_0x2d664c(0x10e)](_0x2d664c(0x11b),_0x2d664c(0x11e));return _0x554545;}
@@ -1 +1 @@
1
- function a195_0x54d7(){const _0x42f053=['63WwyAJe','256380XWtSvD','5hVUMTE','303208PUBOLQ','367947XDpMdL','3367250sBwjml','213648prWfAK','559984lmdWuw','104562CEUzog','9VuEjPD'];a195_0x54d7=function(){return _0x42f053;};return a195_0x54d7();}(function(_0x1fc9dd,_0x32a92a){const _0x4f0523=a195_0x39d2,_0x2db97d=_0x1fc9dd();while(!![]){try{const _0x463bdd=-parseInt(_0x4f0523(0x151))/0x1+parseInt(_0x4f0523(0x14c))/0x2*(-parseInt(_0x4f0523(0x14f))/0x3)+-parseInt(_0x4f0523(0x149))/0x4+-parseInt(_0x4f0523(0x152))/0x5*(parseInt(_0x4f0523(0x14e))/0x6)+-parseInt(_0x4f0523(0x150))/0x7*(-parseInt(_0x4f0523(0x14d))/0x8)+parseInt(_0x4f0523(0x14a))/0x9+parseInt(_0x4f0523(0x14b))/0xa;if(_0x463bdd===_0x32a92a)break;else _0x2db97d['push'](_0x2db97d['shift']());}catch(_0x5df9ea){_0x2db97d['push'](_0x2db97d['shift']());}}}(a195_0x54d7,0x52665));function a195_0x39d2(_0x40d484,_0x252397){_0x40d484=_0x40d484-0x149;const _0x54d74f=a195_0x54d7();let _0x39d280=_0x54d74f[_0x40d484];return _0x39d280;}export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0xb1084d){return isWindows?_0xb1084d+'.cmd':_0xb1084d;}
1
+ (function(_0x109bc3,_0x430704){const _0x3b048b=a195_0x431f,_0x569e57=_0x109bc3();while(!![]){try{const _0x522f9f=parseInt(_0x3b048b(0x123))/0x1*(parseInt(_0x3b048b(0x127))/0x2)+parseInt(_0x3b048b(0x124))/0x3+parseInt(_0x3b048b(0x11f))/0x4+parseInt(_0x3b048b(0x120))/0x5*(parseInt(_0x3b048b(0x11e))/0x6)+-parseInt(_0x3b048b(0x122))/0x7*(parseInt(_0x3b048b(0x126))/0x8)+parseInt(_0x3b048b(0x125))/0x9+-parseInt(_0x3b048b(0x128))/0xa;if(_0x522f9f===_0x430704)break;else _0x569e57['push'](_0x569e57['shift']());}catch(_0x288229){_0x569e57['push'](_0x569e57['shift']());}}}(a195_0x2774,0x56211));export const isWindows=process['platform']==='win32';function a195_0x431f(_0x42434e,_0x58ad5a){_0x42434e=_0x42434e-0x11e;const _0x277465=a195_0x2774();let _0x431f6a=_0x277465[_0x42434e];return _0x431f6a;}function a195_0x2774(){const _0x59527b=['423656xHDPSS','6fEFAtq','8909460XuRCXV','384534Ktzzgj','689572qbVWkW','5NPTpOD','.cmd','28XQcmCv','169933bZYwxj','413274uernvk','5143680XRoKjI'];a195_0x2774=function(){return _0x59527b;};return a195_0x2774();}export function resolveNpmBin(_0x59a7c0){const _0x30ae51=a195_0x431f;return isWindows?_0x59a7c0+_0x30ae51(0x121):_0x59a7c0;}
@@ -1 +1 @@
1
- const a196_0x654647=a196_0x159d;(function(_0x5ab5ae,_0x5c03ed){const _0x5c8863=a196_0x159d,_0x1ea538=_0x5ab5ae();while(!![]){try{const _0x7fc52=-parseInt(_0x5c8863(0x1d8))/0x1+parseInt(_0x5c8863(0x1d0))/0x2*(parseInt(_0x5c8863(0x1cf))/0x3)+-parseInt(_0x5c8863(0x1d9))/0x4*(parseInt(_0x5c8863(0x1da))/0x5)+parseInt(_0x5c8863(0x1e0))/0x6+-parseInt(_0x5c8863(0x1dd))/0x7+parseInt(_0x5c8863(0x1ce))/0x8+parseInt(_0x5c8863(0x1e2))/0x9*(parseInt(_0x5c8863(0x1e1))/0xa);if(_0x7fc52===_0x5c03ed)break;else _0x1ea538['push'](_0x1ea538['shift']());}catch(_0x2367fc){_0x1ea538['push'](_0x1ea538['shift']());}}}(a196_0xa852,0x6aff8));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a196_0x159d(_0x5b51f4,_0x27f248){_0x5b51f4=_0x5b51f4-0x1cc;const _0xa852c8=a196_0xa852();let _0x159da5=_0xa852c8[_0x5b51f4];return _0x159da5;}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 _0x40c13f=getTemplateBaseUrl();return _0x40c13f+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a196_0x654647(0x1d5));function a196_0xa852(){const _0x2641fe=['../../templates/rules/lovrabet_rules.mdc.tpl','statusText','application/json','125075rHycKL','92wvshzC','100985seefrF','lastUpdated','lovrabet_rules.mdc','5976250nmKyIm','content','.cursor/rules','1090416WlMsXP','60DPhwrd','1142019PJPYwG','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','6357632bBnbkV','3sbgJtw','287668FulqHc','json','status','catch','utf-8'];a196_0xa852=function(){return _0x2641fe;};return a196_0xa852();}export async function fetchRulesFromCDN(){const _0x39f8ca=a196_0x654647,_0x295f13=getRulesCdnUrl(),_0x34510c=await fetch(_0x295f13,{'headers':{'Accept':_0x39f8ca(0x1d7)}});if(!_0x34510c['ok'])throw new Error(_0x39f8ca(0x1cc)+_0x34510c[_0x39f8ca(0x1d2)]+'\x20'+_0x34510c[_0x39f8ca(0x1d6)]);const _0x20c661=await _0x34510c[_0x39f8ca(0x1d1)]();if(!_0x20c661['content']||typeof _0x20c661[_0x39f8ca(0x1de)]!=='string')throw new Error(_0x39f8ca(0x1cd));return _0x20c661;}export async function getRulesContent(){const _0xfe6aec=a196_0x654647;try{const _0x3fc1cb=await fetchRulesFromCDN();return _0x3fc1cb[_0xfe6aec(0x1de)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2113ab=a196_0x654647;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2113ab(0x1d4));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4bdade){const _0x246637=a196_0x654647,_0x7f53b0=await fetchRulesFromCDN()[_0x246637(0x1d3)](()=>null);let _0x2732ee;_0x7f53b0?(_0x2732ee=_0x7f53b0[_0x246637(0x1de)],_0x7f53b0[_0x246637(0x1db)]&&(_0x2732ee=appendUpdateTime(_0x2732ee,_0x7f53b0[_0x246637(0x1db)]))):_0x2732ee=readLocalTemplate();const _0x2be107=dirname(_0x4bdade);!existsSync(_0x2be107)&&mkdirSync(_0x2be107,{'recursive':!![]}),writeFileSync(_0x4bdade,_0x2732ee,'utf-8');}export async function copyRulesToCursor(_0x258d3a){const _0x5cc288=a196_0x654647,_0x5186bd=join(_0x258d3a,_0x5cc288(0x1df)),_0x40e071=join(_0x5186bd,_0x5cc288(0x1dc));if(existsSync(_0x40e071))return![];return await writeRulesFile(_0x40e071),!![];}export async function copyRulesToAgentsMd(_0x1a65ba){const _0x5333b9=join(_0x1a65ba,'agents.md');if(existsSync(_0x5333b9))return![];return await writeRulesFile(_0x5333b9),!![];}
1
+ (function(_0xddd6ee,_0x240046){const _0xe2e0ab=a196_0x545f,_0x47ab2d=_0xddd6ee();while(!![]){try{const _0x1f604d=parseInt(_0xe2e0ab(0x11c))/0x1+-parseInt(_0xe2e0ab(0x114))/0x2+-parseInt(_0xe2e0ab(0x123))/0x3+parseInt(_0xe2e0ab(0x117))/0x4*(-parseInt(_0xe2e0ab(0x112))/0x5)+-parseInt(_0xe2e0ab(0x121))/0x6*(parseInt(_0xe2e0ab(0x118))/0x7)+-parseInt(_0xe2e0ab(0x10f))/0x8*(-parseInt(_0xe2e0ab(0x11e))/0x9)+-parseInt(_0xe2e0ab(0x113))/0xa*(-parseInt(_0xe2e0ab(0x11d))/0xb);if(_0x1f604d===_0x240046)break;else _0x47ab2d['push'](_0x47ab2d['shift']());}catch(_0x2c1c90){_0x47ab2d['push'](_0x47ab2d['shift']());}}}(a196_0x4610,0x8d13d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a196_0x545f(_0x5bcc2f,_0x4a85a4){_0x5bcc2f=_0x5bcc2f-0x10c;const _0x461000=a196_0x4610();let _0x545f78=_0x461000[_0x5bcc2f];return _0x545f78;}import{appendUpdateTime}from'../utils/guides-cdn.js';function a196_0x4610(){const _0x39f69c=['lovrabet_rules.mdc','lastUpdated','32514KqKsGn','CDN\x20请求失败:\x20','3242835JEarSY','status','agents.md','/rules/rules.json','content','10264oBAVLx','.cursor/rules','CDN\x20返回数据格式错误','185EoGtez','53420FoIAcC','640722VaTMvE','json','catch','20452yrRNTg','959JexKNX','本地模板文件不存在:\x20','utf-8','string','1149503yBxdhX','1529RuaQhH','7146xGWibo'];a196_0x4610=function(){return _0x39f69c;};return a196_0x4610();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x327fb1=a196_0x545f,_0x8f790f=getTemplateBaseUrl();return _0x8f790f+_0x327fb1(0x10d);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x4b43aa=a196_0x545f,_0x4e75b6=getRulesCdnUrl(),_0x4c20e4=await fetch(_0x4e75b6,{'headers':{'Accept':'application/json'}});if(!_0x4c20e4['ok'])throw new Error(_0x4b43aa(0x122)+_0x4c20e4[_0x4b43aa(0x124)]+'\x20'+_0x4c20e4['statusText']);const _0x5dca06=await _0x4c20e4[_0x4b43aa(0x115)]();if(!_0x5dca06[_0x4b43aa(0x10e)]||typeof _0x5dca06[_0x4b43aa(0x10e)]!==_0x4b43aa(0x11b))throw new Error(_0x4b43aa(0x111));return _0x5dca06;}export async function getRulesContent(){const _0x4d78c0=a196_0x545f;try{const _0x257e94=await fetchRulesFromCDN();return _0x257e94[_0x4d78c0(0x10e)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x106010=a196_0x545f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x106010(0x11a));throw new Error(_0x106010(0x119)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3a92c5){const _0x2a7945=a196_0x545f,_0x8d4f1=await fetchRulesFromCDN()[_0x2a7945(0x116)](()=>null);let _0x5d2099;_0x8d4f1?(_0x5d2099=_0x8d4f1[_0x2a7945(0x10e)],_0x8d4f1[_0x2a7945(0x120)]&&(_0x5d2099=appendUpdateTime(_0x5d2099,_0x8d4f1[_0x2a7945(0x120)]))):_0x5d2099=readLocalTemplate();const _0xb7bb37=dirname(_0x3a92c5);!existsSync(_0xb7bb37)&&mkdirSync(_0xb7bb37,{'recursive':!![]}),writeFileSync(_0x3a92c5,_0x5d2099,_0x2a7945(0x11a));}export async function copyRulesToCursor(_0x398256){const _0x50a067=a196_0x545f,_0x4285c1=join(_0x398256,_0x50a067(0x110)),_0x3eba77=join(_0x4285c1,_0x50a067(0x11f));if(existsSync(_0x3eba77))return![];return await writeRulesFile(_0x3eba77),!![];}export async function copyRulesToAgentsMd(_0x402830){const _0x546e35=a196_0x545f,_0x1af822=join(_0x402830,_0x546e35(0x10c));if(existsSync(_0x1af822))return![];return await writeRulesFile(_0x1af822),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x3fb7cd){return new Promise(_0x3fb33e=>setTimeout(_0x3fb33e,_0x3fb7cd));}
1
+ export function sleep(_0x47ab81){return new Promise(_0x2a5f85=>setTimeout(_0x2a5f85,_0x47ab81));}
@@ -1 +1 @@
1
- const a198_0x408d9b=a198_0x2bf0;function a198_0x2551(){const _0x3ff523=['82723LEUZqY','promises','6FDagkf','676431GwmgpV','toComponentName','split','isDirectory','processFile','name','toISOString','.ts','template','includes','tableName:\x20\x22','getSeconds','processTemplate','padStart','api','alias','charAt','4YeDndw','now','.md','isFile','name:\x20\x22','endsWith','pad','mkdir','getFullYear','模板内容替换失败','1852417ObWcgy','getDate','6671478iqEBkj','模板内容替换完成','extname','readdir','push','toLowerCase','toUpperCase','.css','map','utf8','1325016QIXmWd','alias:\x20\x22','replaceContent','9bXLJFX','slice','replaceApiContent','\x0a\x20\x20\x20\x20{\x20','toDisplayTitle','error','.json','tableName','info','writeFile','129670TAwCEn','replace','getMinutes','readFile','LOVRABET','success','.tpl','pop','datasetCode:\x20\x22','2iuWPan','\x20},','join','message','810150tXywPf'];a198_0x2551=function(){return _0x3ff523;};return a198_0x2551();}(function(_0x49ade1,_0x461eff){const _0x29184a=a198_0x2bf0,_0x4e8366=_0x49ade1();while(!![]){try{const _0x5dd311=-parseInt(_0x29184a(0x149))/0x1*(parseInt(_0x29184a(0x189))/0x2)+-parseInt(_0x29184a(0x14c))/0x3*(-parseInt(_0x29184a(0x15d))/0x4)+parseInt(_0x29184a(0x148))/0x5*(-parseInt(_0x29184a(0x14b))/0x6)+-parseInt(_0x29184a(0x167))/0x7+-parseInt(_0x29184a(0x173))/0x8+parseInt(_0x29184a(0x176))/0x9*(parseInt(_0x29184a(0x180))/0xa)+parseInt(_0x29184a(0x169))/0xb;if(_0x5dd311===_0x461eff)break;else _0x4e8366['push'](_0x4e8366['shift']());}catch(_0x4e843f){_0x4e8366['push'](_0x4e8366['shift']());}}}(a198_0x2551,0x297cb));import a198_0x241e8c from'node:fs';import a198_0x31978e from'node:path';import{logger}from'../utils/logger.js';function a198_0x2bf0(_0x415e6a,_0x2caba3){_0x415e6a=_0x415e6a-0x145;const _0x2551f0=a198_0x2551();let _0x2bf01d=_0x2551f0[_0x415e6a];return _0x2bf01d;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a198_0x408d9b(0x163)](_0x437567){const _0xc515c7=a198_0x408d9b;return String(_0x437567)[_0xc515c7(0x159)](0x2,'0');}static['formatLocalTimestamp'](_0x4b34f3){const _0x3bea0c=a198_0x408d9b,_0xc0e9fb=_0x4b34f3[_0x3bea0c(0x165)](),_0x366ac9=this[_0x3bea0c(0x163)](_0x4b34f3['getMonth']()+0x1),_0x1fdb40=this[_0x3bea0c(0x163)](_0x4b34f3[_0x3bea0c(0x168)]()),_0x52dd4e=this['pad'](_0x4b34f3['getHours']()),_0x480714=this[_0x3bea0c(0x163)](_0x4b34f3[_0x3bea0c(0x182)]()),_0x119224=this[_0x3bea0c(0x163)](_0x4b34f3[_0x3bea0c(0x157)]());return{'createdAt':_0xc0e9fb+'-'+_0x366ac9+'-'+_0x1fdb40+'\x20'+_0x52dd4e+':'+_0x480714+':'+_0x119224,'createdDate':_0xc0e9fb+'-'+_0x366ac9+'-'+_0x1fdb40,'createdTime':_0x52dd4e+':'+_0x480714+':'+_0x119224};}static['toComponentName'](_0x145d25){const _0x38db7a=a198_0x408d9b,_0x306f29=_0x145d25['split']('/')[_0x38db7a(0x187)]()||_0x145d25;return _0x306f29[_0x38db7a(0x14e)]('-')['map'](_0x1c10e3=>_0x1c10e3['charAt'](0x0)[_0x38db7a(0x16f)]()+_0x1c10e3[_0x38db7a(0x177)](0x1)[_0x38db7a(0x16e)]())[_0x38db7a(0x146)]('');}static[a198_0x408d9b(0x17a)](_0x43a868){const _0x2d7cd6=a198_0x408d9b,_0x2717e3=_0x43a868['split']('/')[_0x2d7cd6(0x187)]()||_0x43a868;return _0x2717e3[_0x2d7cd6(0x14e)]('-')[_0x2d7cd6(0x171)](_0x2e35ad=>_0x2e35ad[_0x2d7cd6(0x15c)](0x0)['toUpperCase']()+_0x2e35ad[_0x2d7cd6(0x177)](0x1)['toLowerCase']())['join']('\x20');}static[a198_0x408d9b(0x175)](_0x55b0e3,_0x22eaa5,_0x20b4a6){const _0x3c86dd=a198_0x408d9b,_0x4b73a8=this[_0x3c86dd(0x14d)](_0x22eaa5),_0x5ca969=this[_0x3c86dd(0x17a)](_0x22eaa5),{createdAt:_0xae5220,createdDate:_0x2ec3e7,createdTime:_0x370f35}=this['formatLocalTimestamp'](new Date());let _0x12d0ac=_0x55b0e3['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3c86dd(0x181)](/\{ComponentName\}/g,_0x4b73a8)[_0x3c86dd(0x181)](/\{DisplayTitle\}/g,_0x5ca969)[_0x3c86dd(0x181)](/\{PageName\}/g,_0x22eaa5)[_0x3c86dd(0x181)](/\{TemplateName\}/g,_0x20b4a6)[_0x3c86dd(0x181)](/\{CreatedAt\}/g,_0xae5220)[_0x3c86dd(0x181)](/\{CreatedDate\}/g,_0x2ec3e7)[_0x3c86dd(0x181)](/\{CreatedTime\}/g,_0x370f35);return _0x12d0ac;}static[a198_0x408d9b(0x178)](_0x4e9fa9,_0x3b8880,_0x58fbc2,_0x17cbcc,_0x537c9e,_0x20d28b,_0x512713,_0x10eb8a){const _0x1d39dc=a198_0x408d9b,_0x16e585=new Date(),_0x5b1e0c=_0x16e585[_0x1d39dc(0x152)](),_0x6657a8=_0x58fbc2[_0x1d39dc(0x171)](_0x2744e7=>{const _0x2807c0=_0x1d39dc,_0x2e63ae=[_0x2807c0(0x188)+_0x2744e7['datasetCode']+'\x22',_0x2807c0(0x156)+_0x2744e7[_0x2807c0(0x17d)]+'\x22',_0x2807c0(0x161)+_0x2744e7[_0x2807c0(0x151)]+'\x22'];return _0x2744e7[_0x2807c0(0x15b)]&&_0x2e63ae[_0x2807c0(0x16d)](_0x2807c0(0x174)+_0x2744e7[_0x2807c0(0x15b)]+'\x22'),_0x2807c0(0x179)+_0x2e63ae[_0x2807c0(0x146)](',\x20')+_0x2807c0(0x145);})[_0x1d39dc(0x146)](''),_0x567946=_0x17cbcc||_0x58fbc2[0x0]?.[_0x1d39dc(0x15b)]||'YourModel';let _0x1e3da9=_0x4e9fa9[_0x1d39dc(0x181)](/\{AppCode\}/g,_0x3b8880)[_0x1d39dc(0x181)](/\{ModelConfigs\}/g,_0x6657a8)['replace'](/\{ExampleModelName\}/g,_0x567946)[_0x1d39dc(0x181)](/\{ApiFileName\}/g,_0x537c9e||_0x1d39dc(0x15a))[_0x1d39dc(0x181)](/\{ConfigName\}/g,_0x20d28b||'default')[_0x1d39dc(0x181)](/\{ClientConfigParam\}/g,_0x512713||'')[_0x1d39dc(0x181)](/\{VarPrefix\}/g,_0x10eb8a||_0x1d39dc(0x184))[_0x1d39dc(0x181)](/\{CreatedAt\}/g,_0x5b1e0c);return _0x1e3da9;}static async[a198_0x408d9b(0x158)](_0x5edbb6,_0x3b0c4a,_0x5b6187,_0x480490,_0x3ddee2=!![]){const _0x57b34d=a198_0x408d9b,_0x3b8710=Date['now']();try{_0x3ddee2&&logger[_0x57b34d(0x17e)](_0x57b34d(0x154),'开始处理模板内容替换',{'templatePath':_0x5edbb6,'targetPath':_0x3b0c4a,'pageName':_0x5b6187,'templateName':_0x480490});await a198_0x241e8c[_0x57b34d(0x14a)][_0x57b34d(0x164)](_0x3b0c4a,{'recursive':!![]}),await this['processDirectory'](_0x5edbb6,_0x3b0c4a,_0x5b6187,_0x480490);if(_0x3ddee2){const _0x2cf226=Date[_0x57b34d(0x15e)]()-_0x3b8710;logger[_0x57b34d(0x185)]('template',_0x57b34d(0x16a),_0x2cf226,{'pageName':_0x5b6187,'templateName':_0x480490});}}catch(_0x117135){if(_0x3ddee2){const _0x372c04=Date[_0x57b34d(0x15e)]()-_0x3b8710;logger[_0x57b34d(0x17b)](_0x57b34d(0x154),_0x57b34d(0x166),{'templatePath':_0x5edbb6,'targetPath':_0x3b0c4a,'pageName':_0x5b6187,'templateName':_0x480490,'error':_0x117135 instanceof Error?_0x117135[_0x57b34d(0x147)]:String(_0x117135),'duration':_0x372c04});}throw _0x117135;}}static async['processDirectory'](_0x2a65eb,_0x167db8,_0x1d0dc5,_0x5f3662){const _0x27d8ea=a198_0x408d9b,_0x48b483=await a198_0x241e8c[_0x27d8ea(0x14a)][_0x27d8ea(0x16c)](_0x2a65eb,{'withFileTypes':!![]});for(const _0x39a358 of _0x48b483){const _0x5bba30=a198_0x31978e[_0x27d8ea(0x146)](_0x2a65eb,_0x39a358['name']);let _0x31a6d9=a198_0x31978e['join'](_0x167db8,_0x39a358['name']);_0x39a358[_0x27d8ea(0x151)][_0x27d8ea(0x162)](_0x27d8ea(0x186))&&(_0x31a6d9=a198_0x31978e[_0x27d8ea(0x146)](_0x167db8,_0x39a358['name']['replace'](/\.tpl$/,'')));if(_0x39a358[_0x27d8ea(0x14f)]())await a198_0x241e8c['promises'][_0x27d8ea(0x164)](_0x31a6d9,{'recursive':!![]}),await this['processDirectory'](_0x5bba30,_0x31a6d9,_0x1d0dc5,_0x5f3662);else _0x39a358[_0x27d8ea(0x160)]()&&await this[_0x27d8ea(0x150)](_0x5bba30,_0x31a6d9,_0x1d0dc5,_0x5f3662);}}static async[a198_0x408d9b(0x150)](_0x4c45c0,_0x5da08c,_0x17b038,_0x177cf6){const _0x381be6=a198_0x408d9b,_0x1bab10=a198_0x31978e[_0x381be6(0x16b)](_0x4c45c0)[_0x381be6(0x16e)]();_0x4c45c0[_0x381be6(0x162)](_0x381be6(0x186))&&(_0x5da08c=_0x5da08c[_0x381be6(0x181)](/\.tpl$/,''));const _0x359fc8=['.tsx',_0x381be6(0x153),'.jsx','.js',_0x381be6(0x17c),_0x381be6(0x15f),_0x381be6(0x170),'.scss',_0x381be6(0x186)];if(_0x359fc8[_0x381be6(0x155)](_0x1bab10)||_0x4c45c0[_0x381be6(0x162)](_0x381be6(0x186))){const _0x5a822c=await a198_0x241e8c['promises'][_0x381be6(0x183)](_0x4c45c0,_0x381be6(0x172)),_0x39e441=this[_0x381be6(0x175)](_0x5a822c,_0x17b038,_0x177cf6);await a198_0x241e8c['promises'][_0x381be6(0x17f)](_0x5da08c,_0x39e441,_0x381be6(0x172));}else await a198_0x241e8c[_0x381be6(0x14a)]['copyFile'](_0x4c45c0,_0x5da08c);}}
1
+ const a198_0x3d55be=a198_0x25cf;(function(_0x558db0,_0x4662e9){const _0x474169=a198_0x25cf,_0x5801f7=_0x558db0();while(!![]){try{const _0x58f1db=-parseInt(_0x474169(0x107))/0x1+parseInt(_0x474169(0xf9))/0x2+-parseInt(_0x474169(0x115))/0x3*(-parseInt(_0x474169(0x111))/0x4)+-parseInt(_0x474169(0x10d))/0x5+parseInt(_0x474169(0x12e))/0x6+parseInt(_0x474169(0x112))/0x7+-parseInt(_0x474169(0xf5))/0x8*(parseInt(_0x474169(0x102))/0x9);if(_0x58f1db===_0x4662e9)break;else _0x5801f7['push'](_0x5801f7['shift']());}catch(_0x59ce43){_0x5801f7['push'](_0x5801f7['shift']());}}}(a198_0x2107,0xc0084));function a198_0x25cf(_0x1d3e60,_0x5b64c8){_0x1d3e60=_0x1d3e60-0xf2;const _0x2107a3=a198_0x2107();let _0x25cf0d=_0x2107a3[_0x1d3e60];return _0x25cf0d;}import a198_0x42358e from'node:fs';import a198_0x4d6937 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a198_0x2107(){const _0x4771e3=['map','api','5484095lIJVva','padStart','.json','.jsx','12XVKfWK','9731806lDJUVC','toLowerCase','getMonth','958995ArHjUg','default','模板内容替换完成','readdir','.js','tableName:\x20\x22','copyFile','pad','info','utf8','pop','template','getHours','toISOString','.tpl','YourModel','toDisplayTitle','extname','slice','replaceContent','replaceApiContent','join','promises','.css','alias:\x20\x22','3023142khxaME','charAt','datasetCode','alias','writeFile','datasetCode:\x20\x22','includes','success','formatLocalTimestamp','getMinutes','9258536PcPbUz','processDirectory','mkdir','toUpperCase','1640678WaSwEp','endsWith','toComponentName','replace','readFile','processFile','now','.ts','split','9yToHKu','name','\x20},','isFile','isDirectory','632749jambHW','tableName','\x0a\x20\x20\x20\x20{\x20','getFullYear'];a198_0x2107=function(){return _0x4771e3;};return a198_0x2107();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a198_0x3d55be(0x11c)](_0x5e6303){const _0x50f194=a198_0x3d55be;return String(_0x5e6303)[_0x50f194(0x10e)](0x2,'0');}static['formatLocalTimestamp'](_0x259c04){const _0x453dc6=a198_0x3d55be,_0x3e473a=_0x259c04[_0x453dc6(0x10a)](),_0x3849d1=this['pad'](_0x259c04[_0x453dc6(0x114)]()+0x1),_0x4f4c5b=this[_0x453dc6(0x11c)](_0x259c04['getDate']()),_0x27766e=this['pad'](_0x259c04[_0x453dc6(0x121)]()),_0x5d4240=this['pad'](_0x259c04[_0x453dc6(0xf4)]()),_0x36fbd0=this['pad'](_0x259c04['getSeconds']());return{'createdAt':_0x3e473a+'-'+_0x3849d1+'-'+_0x4f4c5b+'\x20'+_0x27766e+':'+_0x5d4240+':'+_0x36fbd0,'createdDate':_0x3e473a+'-'+_0x3849d1+'-'+_0x4f4c5b,'createdTime':_0x27766e+':'+_0x5d4240+':'+_0x36fbd0};}static[a198_0x3d55be(0xfb)](_0x1ba347){const _0x8634e7=a198_0x3d55be,_0x54cc44=_0x1ba347[_0x8634e7(0x101)]('/')[_0x8634e7(0x11f)]()||_0x1ba347;return _0x54cc44[_0x8634e7(0x101)]('-')['map'](_0x1b51e3=>_0x1b51e3[_0x8634e7(0x12f)](0x0)[_0x8634e7(0xf8)]()+_0x1b51e3[_0x8634e7(0x127)](0x1)[_0x8634e7(0x113)]())[_0x8634e7(0x12a)]('');}static[a198_0x3d55be(0x125)](_0x5ec16c){const _0x1da19e=a198_0x3d55be,_0x4ba435=_0x5ec16c['split']('/')[_0x1da19e(0x11f)]()||_0x5ec16c;return _0x4ba435[_0x1da19e(0x101)]('-')[_0x1da19e(0x10b)](_0x3f0a24=>_0x3f0a24[_0x1da19e(0x12f)](0x0)['toUpperCase']()+_0x3f0a24[_0x1da19e(0x127)](0x1)[_0x1da19e(0x113)]())[_0x1da19e(0x12a)]('\x20');}static[a198_0x3d55be(0x128)](_0x3ed6bb,_0x10089b,_0x33d0ef){const _0x3a1772=a198_0x3d55be,_0xa78dcf=this[_0x3a1772(0xfb)](_0x10089b),_0x5b6a46=this[_0x3a1772(0x125)](_0x10089b),{createdAt:_0x22c387,createdDate:_0x52d8bf,createdTime:_0x5c8ff7}=this[_0x3a1772(0xf3)](new Date());let _0xd9d3e5=_0x3ed6bb[_0x3a1772(0xfc)](/\{CliVersion\}/g,CLI_VERSION)[_0x3a1772(0xfc)](/\{ComponentName\}/g,_0xa78dcf)[_0x3a1772(0xfc)](/\{DisplayTitle\}/g,_0x5b6a46)[_0x3a1772(0xfc)](/\{PageName\}/g,_0x10089b)[_0x3a1772(0xfc)](/\{TemplateName\}/g,_0x33d0ef)[_0x3a1772(0xfc)](/\{CreatedAt\}/g,_0x22c387)['replace'](/\{CreatedDate\}/g,_0x52d8bf)['replace'](/\{CreatedTime\}/g,_0x5c8ff7);return _0xd9d3e5;}static[a198_0x3d55be(0x129)](_0x46f9ec,_0x405a26,_0x31cc64,_0x4cb1df,_0x2e19b7,_0x230803,_0x42e683,_0x1137f6){const _0x3a7139=a198_0x3d55be,_0x47516f=new Date(),_0x58dbba=_0x47516f[_0x3a7139(0x122)](),_0x1a712e=_0x31cc64[_0x3a7139(0x10b)](_0x354f72=>{const _0x438459=_0x3a7139,_0x545493=[_0x438459(0x133)+_0x354f72[_0x438459(0x130)]+'\x22',_0x438459(0x11a)+_0x354f72[_0x438459(0x108)]+'\x22','name:\x20\x22'+_0x354f72['name']+'\x22'];return _0x354f72['alias']&&_0x545493['push'](_0x438459(0x12d)+_0x354f72[_0x438459(0x131)]+'\x22'),_0x438459(0x109)+_0x545493['join'](',\x20')+_0x438459(0x104);})['join'](''),_0x71518f=_0x4cb1df||_0x31cc64[0x0]?.[_0x3a7139(0x131)]||_0x3a7139(0x124);let _0x24c319=_0x46f9ec[_0x3a7139(0xfc)](/\{AppCode\}/g,_0x405a26)[_0x3a7139(0xfc)](/\{ModelConfigs\}/g,_0x1a712e)[_0x3a7139(0xfc)](/\{ExampleModelName\}/g,_0x71518f)[_0x3a7139(0xfc)](/\{ApiFileName\}/g,_0x2e19b7||_0x3a7139(0x10c))[_0x3a7139(0xfc)](/\{ConfigName\}/g,_0x230803||_0x3a7139(0x116))[_0x3a7139(0xfc)](/\{ClientConfigParam\}/g,_0x42e683||'')[_0x3a7139(0xfc)](/\{VarPrefix\}/g,_0x1137f6||'LOVRABET')[_0x3a7139(0xfc)](/\{CreatedAt\}/g,_0x58dbba);return _0x24c319;}static async['processTemplate'](_0x9ebeab,_0x20e3a2,_0x5010d0,_0x55adfd,_0x279af0=!![]){const _0x2ee3ff=a198_0x3d55be,_0x4801ca=Date[_0x2ee3ff(0xff)]();try{_0x279af0&&logger[_0x2ee3ff(0x11d)](_0x2ee3ff(0x120),'开始处理模板内容替换',{'templatePath':_0x9ebeab,'targetPath':_0x20e3a2,'pageName':_0x5010d0,'templateName':_0x55adfd});await a198_0x42358e[_0x2ee3ff(0x12b)][_0x2ee3ff(0xf7)](_0x20e3a2,{'recursive':!![]}),await this['processDirectory'](_0x9ebeab,_0x20e3a2,_0x5010d0,_0x55adfd);if(_0x279af0){const _0x526117=Date[_0x2ee3ff(0xff)]()-_0x4801ca;logger[_0x2ee3ff(0xf2)](_0x2ee3ff(0x120),_0x2ee3ff(0x117),_0x526117,{'pageName':_0x5010d0,'templateName':_0x55adfd});}}catch(_0x598d0f){if(_0x279af0){const _0x1537b4=Date[_0x2ee3ff(0xff)]()-_0x4801ca;logger['error']('template','模板内容替换失败',{'templatePath':_0x9ebeab,'targetPath':_0x20e3a2,'pageName':_0x5010d0,'templateName':_0x55adfd,'error':_0x598d0f instanceof Error?_0x598d0f['message']:String(_0x598d0f),'duration':_0x1537b4});}throw _0x598d0f;}}static async['processDirectory'](_0x141986,_0xdfe111,_0x453046,_0x3cfd22){const _0xec888b=a198_0x3d55be,_0x190ba2=await a198_0x42358e[_0xec888b(0x12b)][_0xec888b(0x118)](_0x141986,{'withFileTypes':!![]});for(const _0x265b00 of _0x190ba2){const _0xde321a=a198_0x4d6937[_0xec888b(0x12a)](_0x141986,_0x265b00[_0xec888b(0x103)]);let _0x2b6965=a198_0x4d6937[_0xec888b(0x12a)](_0xdfe111,_0x265b00['name']);_0x265b00['name']['endsWith']('.tpl')&&(_0x2b6965=a198_0x4d6937[_0xec888b(0x12a)](_0xdfe111,_0x265b00[_0xec888b(0x103)][_0xec888b(0xfc)](/\.tpl$/,'')));if(_0x265b00[_0xec888b(0x106)]())await a198_0x42358e['promises'][_0xec888b(0xf7)](_0x2b6965,{'recursive':!![]}),await this[_0xec888b(0xf6)](_0xde321a,_0x2b6965,_0x453046,_0x3cfd22);else _0x265b00[_0xec888b(0x105)]()&&await this[_0xec888b(0xfe)](_0xde321a,_0x2b6965,_0x453046,_0x3cfd22);}}static async[a198_0x3d55be(0xfe)](_0x329263,_0x42930f,_0x516466,_0x4a397e){const _0x18cf3f=a198_0x3d55be,_0x36656c=a198_0x4d6937[_0x18cf3f(0x126)](_0x329263)[_0x18cf3f(0x113)]();_0x329263[_0x18cf3f(0xfa)](_0x18cf3f(0x123))&&(_0x42930f=_0x42930f[_0x18cf3f(0xfc)](/\.tpl$/,''));const _0x33c586=['.tsx',_0x18cf3f(0x100),_0x18cf3f(0x110),_0x18cf3f(0x119),_0x18cf3f(0x10f),'.md',_0x18cf3f(0x12c),'.scss',_0x18cf3f(0x123)];if(_0x33c586[_0x18cf3f(0x134)](_0x36656c)||_0x329263['endsWith']('.tpl')){const _0x269121=await a198_0x42358e['promises'][_0x18cf3f(0xfd)](_0x329263,_0x18cf3f(0x11e)),_0x29336e=this[_0x18cf3f(0x128)](_0x269121,_0x516466,_0x4a397e);await a198_0x42358e['promises'][_0x18cf3f(0x132)](_0x42930f,_0x29336e,'utf8');}else await a198_0x42358e[_0x18cf3f(0x12b)][_0x18cf3f(0x11b)](_0x329263,_0x42930f);}}
@@ -1 +1 @@
1
- function a199_0x2fc6(_0x1cd0aa,_0x5675e7){_0x1cd0aa=_0x1cd0aa-0x100;var _0x45144a=a199_0x4514();var _0x2fc601=_0x45144a[_0x1cd0aa];return _0x2fc601;}(function(_0x2888d4,_0x4aa4f8){var _0x1a4520=a199_0x2fc6,_0x5344f0=_0x2888d4();while(!![]){try{var _0x302dcc=parseInt(_0x1a4520(0x102))/0x1*(parseInt(_0x1a4520(0x103))/0x2)+-parseInt(_0x1a4520(0x108))/0x3*(-parseInt(_0x1a4520(0x107))/0x4)+-parseInt(_0x1a4520(0x104))/0x5*(parseInt(_0x1a4520(0x101))/0x6)+-parseInt(_0x1a4520(0x109))/0x7+-parseInt(_0x1a4520(0x106))/0x8+-parseInt(_0x1a4520(0x105))/0x9+-parseInt(_0x1a4520(0x100))/0xa*(-parseInt(_0x1a4520(0x10a))/0xb);if(_0x302dcc===_0x4aa4f8)break;else _0x5344f0['push'](_0x5344f0['shift']());}catch(_0x38b761){_0x5344f0['push'](_0x5344f0['shift']());}}}(a199_0x4514,0xcdcbb));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a199_0x4514(){var _0x49ef02=['23420jQvxXZ','6172722iMbpuJ','9qEiJYs','259382yfSpGk','5oixhES','634671OLPTVq','1993488ZWFofH','4AclToa','563097rSDDFb','3997203cVLUMG','6611BKjcDn'];a199_0x4514=function(){return _0x49ef02;};return a199_0x4514();}
1
+ (function(_0x26b21a,_0xca585a){var _0xeb6d87=a199_0x51b7,_0x4b6ecf=_0x26b21a();while(!![]){try{var _0x4fcef2=-parseInt(_0xeb6d87(0xe1))/0x1*(-parseInt(_0xeb6d87(0xdd))/0x2)+-parseInt(_0xeb6d87(0xdb))/0x3+-parseInt(_0xeb6d87(0xdf))/0x4+-parseInt(_0xeb6d87(0xe2))/0x5+-parseInt(_0xeb6d87(0xe4))/0x6+parseInt(_0xeb6d87(0xdc))/0x7*(parseInt(_0xeb6d87(0xde))/0x8)+parseInt(_0xeb6d87(0xe3))/0x9*(parseInt(_0xeb6d87(0xe0))/0xa);if(_0x4fcef2===_0xca585a)break;else _0x4b6ecf['push'](_0x4b6ecf['shift']());}catch(_0x845569){_0x4b6ecf['push'](_0x4b6ecf['shift']());}}}(a199_0x1eaa,0x6d444));import{VERSION}from'../generated/build-info.js';function a199_0x51b7(_0x5f142b,_0x14ea4f){_0x5f142b=_0x5f142b-0xdb;var _0x1eaa13=a199_0x1eaa();var _0x51b7ae=_0x1eaa13[_0x5f142b];return _0x51b7ae;}export function getCliVersion(){return VERSION;}function a199_0x1eaa(){var _0x5dafba=['1178044AzEYei','2350cHBQBX','592929NTlIKl','1844465YoTKMk','15129nGNVkE','987072uZUZnn','1354920luNrGY','31549eTvTNm','2aDUIZj','1312HZsWbD'];a199_0x1eaa=function(){return _0x5dafba;};return a199_0x1eaa();}