@lovrabet/rabetbase-cli 2.2.0-beta.2 → 2.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) 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/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const a185_0x1b128a=a185_0x3d5c;function a185_0x4cbf(){const _0xebec39=['.codex','.cline','windsurf','Claude\x20Code','4selEQW','16cesbKS','.qoder','OpenCode\x20IDE','.agent','.claude','.cursor','SKILL.md.tpl','claude','Windsurf','8041mzWcIx','.opencode','.qoder/rules/rabetbase.md','Trae','agent','trae','Antigravity','.cline/skills/lovrabet/SKILL.md','cline','codex','950346cHvZBt','.opencode/skills/lovrabet/SKILL.md','477980CUVJgb','.windsurf/workflows/rabetbase.md','Codex','1238013mIQrXh','.codebuddy','antigravity','.codex/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','1074771btKbeC','Cline','.cursor/skills/rabetbase.md','opencode','22XKiEtV','Qoder\x20IDE','其他\x20(通用模板)','3955236IbsalZ','CodeBuddy\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Windsurf\x20IDE','cursor','file','10WzdoAM','Cline\x20IDE','.trae/skills/lovrabet/SKILL.md','OpenCode','2654160skLBOG','Cursor','.windsurf','Trae\x20IDE','30mCTlCi','codebuddy','Cursor\x20IDE'];a185_0x4cbf=function(){return _0xebec39;};return a185_0x4cbf();}(function(_0x4f1475,_0x553800){const _0x626bbf=a185_0x3d5c,_0x31b0af=_0x4f1475();while(!![]){try{const _0x441fc7=-parseInt(_0x626bbf(0x134))/0x1*(parseInt(_0x626bbf(0x123))/0x2)+parseInt(_0x626bbf(0x13e))/0x3*(-parseInt(_0x626bbf(0x12a))/0x4)+parseInt(_0x626bbf(0x140))/0x5+-parseInt(_0x626bbf(0x11f))/0x6+parseInt(_0x626bbf(0x109))/0x7*(parseInt(_0x626bbf(0x12b))/0x8)+parseInt(_0x626bbf(0x10e))/0x9*(parseInt(_0x626bbf(0x11b))/0xa)+-parseInt(_0x626bbf(0x112))/0xb*(-parseInt(_0x626bbf(0x115))/0xc);if(_0x441fc7===_0x553800)break;else _0x31b0af['push'](_0x31b0af['shift']());}catch(_0x4c638d){_0x31b0af['push'](_0x31b0af['shift']());}}}(a185_0x4cbf,0x55016));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x1b128a(0x120),'description':a185_0x1b128a(0x125),'folders':['.cursorrules',a185_0x1b128a(0x130)],'files':[{'type':'file','path':a185_0x1b128a(0x110),'template':a185_0x1b128a(0x131)}]},'windsurf':{'name':a185_0x1b128a(0x133),'description':a185_0x1b128a(0x118),'folders':[a185_0x1b128a(0x121)],'files':[{'type':'file','path':a185_0x1b128a(0x141),'template':a185_0x1b128a(0x131)}]},'claude':{'name':a185_0x1b128a(0x129),'description':'Claude\x20Code','folders':[a185_0x1b128a(0x12f)],'files':[{'type':a185_0x1b128a(0x11a),'path':'.claude/skills/lovrabet/SKILL.md','template':a185_0x1b128a(0x131)}]},'cline':{'name':a185_0x1b128a(0x10f),'description':a185_0x1b128a(0x11c),'folders':[a185_0x1b128a(0x127)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x13b),'template':a185_0x1b128a(0x131)}]},'codex':{'name':a185_0x1b128a(0x142),'description':'Codex\x20IDE','folders':[a185_0x1b128a(0x126)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10c),'template':a185_0x1b128a(0x131)}]},'opencode':{'name':a185_0x1b128a(0x11e),'description':a185_0x1b128a(0x12d),'folders':[a185_0x1b128a(0x135)],'files':[{'type':'file','path':a185_0x1b128a(0x13f),'template':a185_0x1b128a(0x131)}]},'qoder':{'name':'Qoder','description':a185_0x1b128a(0x113),'folders':[a185_0x1b128a(0x12c)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x136),'template':a185_0x1b128a(0x131)},{'type':a185_0x1b128a(0x11a),'path':'.qoder/skills/lovrabet/SKILL.md','template':a185_0x1b128a(0x131)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x1b128a(0x116),'folders':[a185_0x1b128a(0x10a)],'files':[{'type':'file','path':a185_0x1b128a(0x117),'template':a185_0x1b128a(0x131)}]},'trae':{'name':a185_0x1b128a(0x137),'description':a185_0x1b128a(0x122),'folders':['.trae'],'files':[{'type':'file','path':a185_0x1b128a(0x11d),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x1b128a(0x114),'description':'通用模板\x20-\x20兜底方案','folders':[a185_0x1b128a(0x12e)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10d),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a185_0x1b128a(0x13a),'description':'Antigravity\x20IDE','folders':[a185_0x1b128a(0x12e)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10d),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a185_0x1b128a(0x132),a185_0x1b128a(0x13c),'codebuddy',a185_0x1b128a(0x13d),a185_0x1b128a(0x119),'opencode','qoder',a185_0x1b128a(0x139),a185_0x1b128a(0x128)];function a185_0x3d5c(_0x495cda,_0x30621f){_0x495cda=_0x495cda-0x109;const _0x4cbf17=a185_0x4cbf();let _0x3d5cf2=_0x4cbf17[_0x495cda];return _0x3d5cf2;}export const IDE_LIST=[a185_0x1b128a(0x10b),a185_0x1b128a(0x132),'cline','codebuddy',a185_0x1b128a(0x13d),a185_0x1b128a(0x119),a185_0x1b128a(0x111),'qoder','trae',a185_0x1b128a(0x128),a185_0x1b128a(0x138)];export const ALL_CORE_IDES=[a185_0x1b128a(0x119),a185_0x1b128a(0x128),'claude',a185_0x1b128a(0x13c),'codex','opencode','qoder',a185_0x1b128a(0x124),'trae'];
1
+ function a185_0x108f(_0x17c01a,_0x3eacfd){_0x17c01a=_0x17c01a-0x1c5;const _0x507d83=a185_0x507d();let _0x108f51=_0x507d83[_0x17c01a];return _0x108f51;}const a185_0x1a7916=a185_0x108f;(function(_0x57d482,_0x41a758){const _0x16d645=a185_0x108f,_0x21fc8d=_0x57d482();while(!![]){try{const _0x115449=parseInt(_0x16d645(0x1cb))/0x1*(parseInt(_0x16d645(0x1eb))/0x2)+parseInt(_0x16d645(0x1f7))/0x3+-parseInt(_0x16d645(0x1de))/0x4+parseInt(_0x16d645(0x1c5))/0x5+parseInt(_0x16d645(0x1ef))/0x6*(-parseInt(_0x16d645(0x1f6))/0x7)+-parseInt(_0x16d645(0x1df))/0x8*(-parseInt(_0x16d645(0x1d3))/0x9)+parseInt(_0x16d645(0x1dd))/0xa;if(_0x115449===_0x41a758)break;else _0x21fc8d['push'](_0x21fc8d['shift']());}catch(_0x4bba33){_0x21fc8d['push'](_0x21fc8d['shift']());}}}(a185_0x507d,0x22abc));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x1a7916(0x1ed),'description':'Cursor\x20IDE','folders':[a185_0x1a7916(0x1e2),a185_0x1a7916(0x1e7)],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1d9),'template':a185_0x1a7916(0x1ec)}]},'windsurf':{'name':a185_0x1a7916(0x1e6),'description':a185_0x1a7916(0x1e5),'folders':['.windsurf'],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1d8),'template':a185_0x1a7916(0x1ec)}]},'claude':{'name':a185_0x1a7916(0x1cd),'description':'Claude\x20Code','folders':[a185_0x1a7916(0x1e8)],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1f9),'template':a185_0x1a7916(0x1ec)}]},'cline':{'name':a185_0x1a7916(0x1db),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1f5),'template':a185_0x1a7916(0x1ec)}]},'codex':{'name':'Codex','description':a185_0x1a7916(0x1f4),'folders':[a185_0x1a7916(0x1e4)],'files':[{'type':'file','path':a185_0x1a7916(0x1d7),'template':'SKILL.md.tpl'}]},'opencode':{'name':a185_0x1a7916(0x1f2),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':'file','path':a185_0x1a7916(0x1d2),'template':a185_0x1a7916(0x1ec)}]},'qoder':{'name':a185_0x1a7916(0x1c8),'description':a185_0x1a7916(0x1e9),'folders':[a185_0x1a7916(0x1c6)],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1f3),'template':a185_0x1a7916(0x1ec)},{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1cc),'template':a185_0x1a7916(0x1ec)}]},'codebuddy':{'name':a185_0x1a7916(0x1d5),'description':a185_0x1a7916(0x1ca),'folders':['.codebuddy'],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1ee),'template':'SKILL.md.tpl'}]},'trae':{'name':a185_0x1a7916(0x1d0),'description':'Trae\x20IDE','folders':[a185_0x1a7916(0x1f8)],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1ce),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a185_0x1a7916(0x1d6)],'files':[{'type':a185_0x1a7916(0x1fa),'path':a185_0x1a7916(0x1da),'template':a185_0x1a7916(0x1ec)}]},'antigravity':{'name':a185_0x1a7916(0x1f1),'description':'Antigravity\x20IDE','folders':[a185_0x1a7916(0x1d6)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x1a7916(0x1ec)}]}};export const CORE_IDE_LIST=['claude','cline',a185_0x1a7916(0x1ea),a185_0x1a7916(0x1e1),a185_0x1a7916(0x1dc),'opencode',a185_0x1a7916(0x1cf),'trae',a185_0x1a7916(0x1f0)];export const IDE_LIST=[a185_0x1a7916(0x1d1),a185_0x1a7916(0x1d4),a185_0x1a7916(0x1e3),a185_0x1a7916(0x1ea),'codex',a185_0x1a7916(0x1dc),'opencode',a185_0x1a7916(0x1cf),a185_0x1a7916(0x1c9),a185_0x1a7916(0x1f0),a185_0x1a7916(0x1e0)];export const ALL_CORE_IDES=[a185_0x1a7916(0x1dc),a185_0x1a7916(0x1f0),a185_0x1a7916(0x1d4),'cline',a185_0x1a7916(0x1e1),a185_0x1a7916(0x1c7),a185_0x1a7916(0x1cf),a185_0x1a7916(0x1ea),a185_0x1a7916(0x1c9)];function a185_0x507d(){const _0x2f725f=['OpenCode','.qoder/rules/rabetbase.md','Codex\x20IDE','.cline/skills/lovrabet/SKILL.md','28gsPmHt','9933DKNhjH','.trae','.claude/skills/lovrabet/SKILL.md','file','466195FwGYUY','.qoder','opencode','Qoder','trae','CodeBuddy\x20IDE','19ytsteY','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','.trae/skills/lovrabet/SKILL.md','qoder','Trae','antigravity','.opencode/skills/lovrabet/SKILL.md','519705xgBdgu','claude','CodeBuddy','.agent','.codex/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','.agent/skills/lovrabet/SKILL.md','Cline','cursor','1727530vyuIVQ','982556qMrodw','8VLKNKg','agent','codex','.cursorrules','cline','.codex','Windsurf\x20IDE','Windsurf','.cursor','.claude','Qoder\x20IDE','codebuddy','25538KsvWYy','SKILL.md.tpl','Cursor','.codebuddy/skills/lovrabet/SKILL.md','273012cUdcSL','windsurf','Antigravity'];a185_0x507d=function(){return _0x2f725f;};return a185_0x507d();}
@@ -1 +1 @@
1
- function a186_0x409e(){const _0x3fca44=['3hJHxse','33bsubag','8802CCgMLg','6IvKbaF','6272040OdoqlS','1767682QlLPaX','328RsecHN','584000NXxKxr','3344180kPOIeB','3742648EaGEEG','3692325YlqFWj'];a186_0x409e=function(){return _0x3fca44;};return a186_0x409e();}(function(_0x51b111,_0x29b76e){const _0x456495=a186_0xc9fa,_0x4073d0=_0x51b111();while(!![]){try{const _0x194a88=-parseInt(_0x456495(0x181))/0x1+-parseInt(_0x456495(0x17f))/0x2*(-parseInt(_0x456495(0x17a))/0x3)+parseInt(_0x456495(0x183))/0x4+-parseInt(_0x456495(0x182))/0x5*(-parseInt(_0x456495(0x17d))/0x6)+parseInt(_0x456495(0x184))/0x7+-parseInt(_0x456495(0x180))/0x8*(parseInt(_0x456495(0x17c))/0x9)+-parseInt(_0x456495(0x17e))/0xa*(parseInt(_0x456495(0x17b))/0xb);if(_0x194a88===_0x29b76e)break;else _0x4073d0['push'](_0x4073d0['shift']());}catch(_0x51c472){_0x4073d0['push'](_0x4073d0['shift']());}}}(a186_0x409e,0x7c898));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0xc9fa(_0xb6c835,_0x1243f6){_0xb6c835=_0xb6c835-0x17a;const _0x409e1c=a186_0x409e();let _0xc9fac=_0x409e1c[_0xb6c835];return _0xc9fac;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x206beb,_0x3b8bac){const _0x3f923c=a186_0x4066,_0x47ef80=_0x206beb();while(!![]){try{const _0x410300=-parseInt(_0x3f923c(0xa5))/0x1*(parseInt(_0x3f923c(0x9f))/0x2)+parseInt(_0x3f923c(0xa4))/0x3+parseInt(_0x3f923c(0xa2))/0x4+parseInt(_0x3f923c(0xa0))/0x5*(parseInt(_0x3f923c(0xa3))/0x6)+-parseInt(_0x3f923c(0xa1))/0x7+-parseInt(_0x3f923c(0xa6))/0x8+parseInt(_0x3f923c(0xa8))/0x9*(parseInt(_0x3f923c(0xa7))/0xa);if(_0x410300===_0x3b8bac)break;else _0x47ef80['push'](_0x47ef80['shift']());}catch(_0x2f6a6b){_0x47ef80['push'](_0x47ef80['shift']());}}}(a186_0x2ab7,0x984e2));function a186_0x2ab7(){const _0x5b535c=['5sbsnEJ','4731846gPxnMG','297656JLUkJS','2088738jTXtZU','3295338lvXxJZ','2BqSxqq','9581424DhorGr','15479270PKTBrm','9jZOzEq','571412gqSkoN'];a186_0x2ab7=function(){return _0x5b535c;};return a186_0x2ab7();}function a186_0x4066(_0x5eede6,_0x4ab79c){_0x5eede6=_0x5eede6-0x9f;const _0x2ab7f7=a186_0x2ab7();let _0x4066c0=_0x2ab7f7[_0x5eede6];return _0x4066c0;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x1415f9,_0xf60539){const _0xae01a2=a187_0x35ee,_0x1e7af8=_0x1415f9();while(!![]){try{const _0x473e89=-parseInt(_0xae01a2(0xb5))/0x1+-parseInt(_0xae01a2(0xaa))/0x2+-parseInt(_0xae01a2(0xab))/0x3*(parseInt(_0xae01a2(0xaf))/0x4)+-parseInt(_0xae01a2(0xa9))/0x5*(parseInt(_0xae01a2(0xb0))/0x6)+parseInt(_0xae01a2(0xac))/0x7+parseInt(_0xae01a2(0xb3))/0x8+parseInt(_0xae01a2(0xad))/0x9*(parseInt(_0xae01a2(0xb9))/0xa);if(_0x473e89===_0xf60539)break;else _0x1e7af8['push'](_0x1e7af8['shift']());}catch(_0x732e1c){_0x1e7af8['push'](_0x1e7af8['shift']());}}}(a187_0x52dd,0xb4396));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x943aaf=a187_0x35ee,_0x307a17=getTemplateBaseUrl(),_0x3402cb=[_0x307a17+_0x943aaf(0xb2),_0x307a17+_0x943aaf(0xb8)];for(const _0x3ed882 of _0x3402cb){try{const _0x44cd6d=await fetch(_0x3ed882,{'headers':{'Accept':_0x943aaf(0xae)}});if(!_0x44cd6d['ok'])continue;const _0x40905=await _0x44cd6d[_0x943aaf(0xb7)]();if(!_0x40905['cli']?.['stableVersion']||!_0x40905['sdk']?.[_0x943aaf(0xb1)]?.[_0x943aaf(0xb4)])continue;return _0x40905;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x52dd(){const _0x2883be=['/config.json','2593984ksNIHe','stableVersion','215632espqWl','now','json','/config/index.json','20HyDqDX','2839765IWIDVT','979294IkcqyG','60aMwweL','718424ERLkoI','11052135OEiXHq','application/json','174296jOYBLX','6bTtmGH','node'];a187_0x52dd=function(){return _0x2883be;};return a187_0x52dd();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3638f5=a187_0x35ee,_0x2f6a37=Date[_0x3638f5(0xb6)]();if(hasCachedConfig){const _0x2b7c61=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f6a37-cacheTime<_0x2b7c61)return cachedConfig;}const _0x262d1c=await fetchCdnConfig();return cachedConfig=_0x262d1c,cacheTime=_0x2f6a37,hasCachedConfig=!![],_0x262d1c;}function a187_0x35ee(_0x17a9c0,_0x2afc4d){_0x17a9c0=_0x17a9c0-0xa9;const _0x52dd9d=a187_0x52dd();let _0x35ee6a=_0x52dd9d[_0x17a9c0];return _0x35ee6a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a187_0x26f1(_0x5aac68,_0x473de6){_0x5aac68=_0x5aac68-0xd4;const _0x42e278=a187_0x42e2();let _0x26f1da=_0x42e278[_0x5aac68];return _0x26f1da;}(function(_0x37ab9a,_0x15b2b3){const _0x57d11b=a187_0x26f1,_0x21f5f6=_0x37ab9a();while(!![]){try{const _0x513695=-parseInt(_0x57d11b(0xd9))/0x1+parseInt(_0x57d11b(0xdc))/0x2+-parseInt(_0x57d11b(0xd6))/0x3*(-parseInt(_0x57d11b(0xdb))/0x4)+parseInt(_0x57d11b(0xda))/0x5*(parseInt(_0x57d11b(0xd4))/0x6)+-parseInt(_0x57d11b(0xd7))/0x7+-parseInt(_0x57d11b(0xde))/0x8+parseInt(_0x57d11b(0xdd))/0x9;if(_0x513695===_0x15b2b3)break;else _0x21f5f6['push'](_0x21f5f6['shift']());}catch(_0x102089){_0x21f5f6['push'](_0x21f5f6['shift']());}}}(a187_0x42e2,0x34db4));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x198ab3=a187_0x26f1,_0x16fdf9=getTemplateBaseUrl(),_0x31197b=[_0x16fdf9+'/config.json',_0x16fdf9+_0x198ab3(0xd5)];for(const _0x366877 of _0x31197b){try{const _0x16956c=await fetch(_0x366877,{'headers':{'Accept':_0x198ab3(0xd8)}});if(!_0x16956c['ok'])continue;const _0x2df81e=await _0x16956c['json']();if(!_0x2df81e['cli']?.[_0x198ab3(0xe0)]||!_0x2df81e['sdk']?.[_0x198ab3(0xdf)]?.[_0x198ab3(0xe0)])continue;return _0x2df81e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a187_0x42e2(){const _0x413d83=['454760qPCXJi','node','stableVersion','13512rKSxZd','/config/index.json','140982QkrMLJ','2535393PLGSWp','application/json','381438yzUHqA','620xSgCyq','4sPgRNE','630930tKrWQA','3377475NsKBvM'];a187_0x42e2=function(){return _0x413d83;};return a187_0x42e2();}export async function getCdnConfig(){const _0x10ed25=Date['now']();if(hasCachedConfig){const _0x565885=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x10ed25-cacheTime<_0x565885)return cachedConfig;}const _0x2041f7=await fetchCdnConfig();return cachedConfig=_0x2041f7,cacheTime=_0x10ed25,hasCachedConfig=!![],_0x2041f7;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a188_0x7b9647=a188_0x4f37;(function(_0x3f4a39,_0x2293a4){const _0x589c1d=a188_0x4f37,_0x2a88e5=_0x3f4a39();while(!![]){try{const _0x55575a=-parseInt(_0x589c1d(0xb3))/0x1+-parseInt(_0x589c1d(0xad))/0x2*(parseInt(_0x589c1d(0xa5))/0x3)+-parseInt(_0x589c1d(0x94))/0x4+-parseInt(_0x589c1d(0xb1))/0x5*(-parseInt(_0x589c1d(0xaa))/0x6)+parseInt(_0x589c1d(0x9c))/0x7+parseInt(_0x589c1d(0x95))/0x8+parseInt(_0x589c1d(0x9b))/0x9;if(_0x55575a===_0x2293a4)break;else _0x2a88e5['push'](_0x2a88e5['shift']());}catch(_0x1e8e56){_0x2a88e5['push'](_0x2a88e5['shift']());}}}(a188_0x2159,0x490a8));import a188_0x3beda4 from'node:fs';function a188_0x4f37(_0x22d397,_0x247cd5){_0x22d397=_0x22d397-0x90;const _0x2159a6=a188_0x2159();let _0x4f376f=_0x2159a6[_0x22d397];return _0x4f376f;}import a188_0x4de70b from'node:path';import a188_0x4e1927 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x7b9647(0xa3);function a188_0x2159(){const _0x3a6bf6=['\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','npm\x20install\x20','node','1.2.0','stableVersion','1126395QTBKBE','@lovrabet/sdk','parse','\x1b[33m','readFileSync','556716nXwBUN','\x20\x20\x20Upgrade\x20command:\x20','\x1b[0m','2BQqCLY','devDependencies','package.json','version','5dbFDke','join','479205sAXWyY','utf-8','existsSync','latest','packageName','utf8','dependencies','sdk','669552cxFtFs','3312728lWlDQF','test','\x1b[1m','needsUpgrade','all','coerce','3442824vPlDRu','3022747ErlGnI','log','node_modules'];a188_0x2159=function(){return _0x3a6bf6;};return a188_0x2159();}function isNonNumericVersion(_0x6547b){const _0x536543=a188_0x7b9647,_0x55c88b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x55c88b['some'](_0x1f52b8=>_0x1f52b8[_0x536543(0x96)](_0x6547b));}function getInstalledVersion(_0xb3a060,_0x131530){const _0x6b8060=a188_0x7b9647;try{const _0x2781db=a188_0x4de70b[_0x6b8060(0xb2)](_0xb3a060,_0x6b8060(0x9e),_0x131530,_0x6b8060(0xaf));if(a188_0x3beda4[_0x6b8060(0xb5)](_0x2781db)){const _0x55168b=JSON['parse'](a188_0x3beda4[_0x6b8060(0xa9)](_0x2781db,_0x6b8060(0xb4)));return _0x55168b[_0x6b8060(0xb0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x69904f=a188_0x7b9647;try{const _0x3c635e=await getCdnConfig();return _0x3c635e?.[_0x69904f(0x93)]?.[_0x69904f(0xa2)]?.[_0x69904f(0xa4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3290bf=a188_0x7b9647;try{const _0x3eaaef=await getCdnConfig();return _0x3eaaef?.[_0x3290bf(0x93)]?.[_0x3290bf(0xa2)]?.[_0x3290bf(0x90)]||_0x3290bf(0xa6);}catch{return _0x3290bf(0xa6);}}export async function checkSdkVersion(_0x4b9490){const _0xc9d7af=a188_0x7b9647,_0xaedfc7=a188_0x4de70b[_0xc9d7af(0xb2)](_0x4b9490,_0xc9d7af(0xaf)),[_0x174406,_0x6d20c6]=await Promise[_0xc9d7af(0x99)]([getSdkStableVersion(),getSdkPackageName()]),_0x404b8c=_0x174406||FALLBACK_MIN_SDK_VERSION;if(!a188_0x3beda4[_0xc9d7af(0xb5)](_0xaedfc7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};try{const _0x50cc61=JSON[_0xc9d7af(0xa7)](a188_0x3beda4['readFileSync'](_0xaedfc7,'utf8')),_0x289959=_0x50cc61[_0xc9d7af(0x92)]||{},_0x593d19=_0x50cc61[_0xc9d7af(0xae)]||{},_0x416ae9=_0x289959[_0x6d20c6]||_0x593d19[_0x6d20c6];if(!_0x416ae9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};let _0x46c487=getInstalledVersion(_0x4b9490,_0x6d20c6);!_0x46c487&&(_0x46c487=_0x416ae9);if(isNonNumericVersion(_0x416ae9))return{'installed':!![],'version':_0x46c487,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};const _0x597386=a188_0x4e1927[_0xc9d7af(0x9a)](_0x46c487),_0x42732e=a188_0x4e1927[_0xc9d7af(0x9a)](_0x404b8c),_0x312ec3=_0x597386&&_0x42732e?a188_0x4e1927['lt'](_0x597386,_0x42732e):![];return{'installed':!![],'version':_0x46c487,'needsUpgrade':_0x312ec3,'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};}}export function checkSdkVersionSync(_0x4a8d22){const _0x228ed0=a188_0x7b9647,_0x4f08fc=a188_0x4de70b['join'](_0x4a8d22,'package.json'),_0x2c9ea8=_0x228ed0(0xa6);if(!a188_0x3beda4['existsSync'](_0x4f08fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};try{const _0x296909=JSON[_0x228ed0(0xa7)](a188_0x3beda4[_0x228ed0(0xa9)](_0x4f08fc,_0x228ed0(0x91))),_0x470ef0=_0x296909[_0x228ed0(0x92)]||{},_0x37a56f=_0x296909['devDependencies']||{},_0x1ea474=_0x470ef0[_0x2c9ea8]||_0x37a56f[_0x2c9ea8];if(!_0x1ea474)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};let _0x331006=getInstalledVersion(_0x4a8d22,_0x2c9ea8);!_0x331006&&(_0x331006=_0x1ea474);if(isNonNumericVersion(_0x1ea474))return{'installed':!![],'version':_0x331006,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};const _0x4f4de6=a188_0x4e1927['coerce'](_0x331006),_0x447f09=_0x4f4de6?a188_0x4e1927['lt'](_0x4f4de6,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x331006,'needsUpgrade':_0x447f09,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x330c5f){const _0x2eb483=a188_0x7b9647;if(!_0x330c5f[_0x2eb483(0x98)])return;const _0x3ee8c2=_0x2eb483(0xa8),_0x334d37=_0x2eb483(0xac),_0x244212=_0x2eb483(0x97),_0x5e21f5=_0x330c5f['packageName']||'@lovrabet/sdk',_0x558a44=_0x330c5f[_0x2eb483(0xa4)]||_0x330c5f['minVersion'],_0x272bcc=_0x2eb483(0xa1)+_0x5e21f5+'@'+(_0x558a44||_0x2eb483(0xb6));console[_0x2eb483(0x9d)](),console[_0x2eb483(0x9d)](''+_0x3ee8c2+_0x244212+'↪\x20SDK\x20update\x20available'+_0x334d37),console[_0x2eb483(0x9d)](_0x3ee8c2+_0x2eb483(0x9f)+_0x5e21f5+'@'+_0x330c5f[_0x2eb483(0xb0)]+_0x334d37),console['log'](_0x3ee8c2+_0x2eb483(0xa0)+_0x558a44+_0x334d37),console[_0x2eb483(0x9d)](_0x3ee8c2+_0x2eb483(0xab)+_0x272bcc+_0x334d37),console[_0x2eb483(0x9d)]();}
1
+ (function(_0x33cb55,_0x479148){const _0x5caa92=a188_0x6663,_0xd41e58=_0x33cb55();while(!![]){try{const _0x2c0edd=parseInt(_0x5caa92(0xd4))/0x1*(parseInt(_0x5caa92(0xef))/0x2)+parseInt(_0x5caa92(0xda))/0x3+-parseInt(_0x5caa92(0xe9))/0x4+-parseInt(_0x5caa92(0xd9))/0x5*(parseInt(_0x5caa92(0xed))/0x6)+parseInt(_0x5caa92(0xee))/0x7+parseInt(_0x5caa92(0xe2))/0x8+-parseInt(_0x5caa92(0xdd))/0x9;if(_0x2c0edd===_0x479148)break;else _0xd41e58['push'](_0xd41e58['shift']());}catch(_0x422bdf){_0xd41e58['push'](_0xd41e58['shift']());}}}(a188_0x2255,0xca037));import a188_0x11c661 from'node:fs';import a188_0xe72258 from'node:path';import a188_0x5cd076 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a188_0x2255(){const _0x40c97a=['version','\x1b[0m','join','test','node_modules','minVersion','67sYnjCR','all','\x1b[1m','utf8','\x20\x20\x20Stable\x20version:\x20','2247710xUbWlM','3992019mCYeRK','readFileSync','log','26311248cpvlkT','stableVersion','devDependencies','packageName','sdk','11352712HGnGYt','package.json','@lovrabet/sdk','parse','latest','↪\x20SDK\x20update\x20available','\x20\x20\x20Current\x20version:\x20','2855788Zxwhoa','dependencies','node','existsSync','12eHNAdU','9838087KSnIEu','36082zfuekR','coerce'];a188_0x2255=function(){return _0x40c97a;};return a188_0x2255();}const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x456473){const _0x264b2a=a188_0x6663,_0x2aa1b2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2aa1b2['some'](_0xc4ec81=>_0xc4ec81[_0x264b2a(0xd1)](_0x456473));}function a188_0x6663(_0x1e5ecf,_0x16fbb4){_0x1e5ecf=_0x1e5ecf-0xd1;const _0x2255c6=a188_0x2255();let _0x666326=_0x2255c6[_0x1e5ecf];return _0x666326;}function getInstalledVersion(_0x254156,_0x5606a0){const _0x219d6c=a188_0x6663;try{const _0x5563e5=a188_0xe72258[_0x219d6c(0xf3)](_0x254156,_0x219d6c(0xd2),_0x5606a0,_0x219d6c(0xe3));if(a188_0x11c661['existsSync'](_0x5563e5)){const _0x6940f1=JSON[_0x219d6c(0xe5)](a188_0x11c661[_0x219d6c(0xdb)](_0x5563e5,'utf-8'));return _0x6940f1[_0x219d6c(0xf1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5338f8=a188_0x6663;try{const _0x4f80a9=await getCdnConfig();return _0x4f80a9?.[_0x5338f8(0xe1)]?.[_0x5338f8(0xeb)]?.[_0x5338f8(0xde)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x340d2b=a188_0x6663;try{const _0x2db78a=await getCdnConfig();return _0x2db78a?.[_0x340d2b(0xe1)]?.[_0x340d2b(0xeb)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x340d2b(0xe4);}}export async function checkSdkVersion(_0x58b05f){const _0x4f8b12=a188_0x6663,_0x4afa8c=a188_0xe72258['join'](_0x58b05f,_0x4f8b12(0xe3)),[_0x24b1f8,_0x55fac2]=await Promise[_0x4f8b12(0xd5)]([getSdkStableVersion(),getSdkPackageName()]),_0x23c4ae=_0x24b1f8||FALLBACK_MIN_SDK_VERSION;if(!a188_0x11c661[_0x4f8b12(0xec)](_0x4afa8c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c4ae,'packageName':_0x55fac2,'stableVersion':_0x24b1f8};try{const _0x5dba8d=JSON[_0x4f8b12(0xe5)](a188_0x11c661['readFileSync'](_0x4afa8c,_0x4f8b12(0xd7))),_0x33e544=_0x5dba8d['dependencies']||{},_0x56c12c=_0x5dba8d[_0x4f8b12(0xdf)]||{},_0x1aeebc=_0x33e544[_0x55fac2]||_0x56c12c[_0x55fac2];if(!_0x1aeebc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c4ae,'packageName':_0x55fac2,'stableVersion':_0x24b1f8};let _0x5768bf=getInstalledVersion(_0x58b05f,_0x55fac2);!_0x5768bf&&(_0x5768bf=_0x1aeebc);if(isNonNumericVersion(_0x1aeebc))return{'installed':!![],'version':_0x5768bf,'needsUpgrade':![],'minVersion':_0x23c4ae,'packageName':_0x55fac2,'stableVersion':_0x24b1f8};const _0x3bc237=a188_0x5cd076[_0x4f8b12(0xf0)](_0x5768bf),_0x11f060=a188_0x5cd076[_0x4f8b12(0xf0)](_0x23c4ae),_0x42e4fa=_0x3bc237&&_0x11f060?a188_0x5cd076['lt'](_0x3bc237,_0x11f060):![];return{'installed':!![],'version':_0x5768bf,'needsUpgrade':_0x42e4fa,'minVersion':_0x23c4ae,'packageName':_0x55fac2,'stableVersion':_0x24b1f8};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c4ae,'packageName':_0x55fac2,'stableVersion':_0x24b1f8};}}export function checkSdkVersionSync(_0x574c8d){const _0x55d792=a188_0x6663,_0x27f160=a188_0xe72258[_0x55d792(0xf3)](_0x574c8d,_0x55d792(0xe3)),_0x334ddb=_0x55d792(0xe4);if(!a188_0x11c661[_0x55d792(0xec)](_0x27f160))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x334ddb,'stableVersion':null};try{const _0x4590f6=JSON[_0x55d792(0xe5)](a188_0x11c661['readFileSync'](_0x27f160,'utf8')),_0x4f480a=_0x4590f6[_0x55d792(0xea)]||{},_0xac126b=_0x4590f6[_0x55d792(0xdf)]||{},_0x4ca8e5=_0x4f480a[_0x334ddb]||_0xac126b[_0x334ddb];if(!_0x4ca8e5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x334ddb,'stableVersion':null};let _0x54cca5=getInstalledVersion(_0x574c8d,_0x334ddb);!_0x54cca5&&(_0x54cca5=_0x4ca8e5);if(isNonNumericVersion(_0x4ca8e5))return{'installed':!![],'version':_0x54cca5,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x334ddb,'stableVersion':null};const _0x415832=a188_0x5cd076[_0x55d792(0xf0)](_0x54cca5),_0x44ce2f=_0x415832?a188_0x5cd076['lt'](_0x415832,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x54cca5,'needsUpgrade':_0x44ce2f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x334ddb,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x334ddb,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ecb3d){const _0x369401=a188_0x6663;if(!_0x2ecb3d['needsUpgrade'])return;const _0x5c2163='\x1b[33m',_0x14e9cb=_0x369401(0xf2),_0x5e583a=_0x369401(0xd6),_0x1f36e1=_0x2ecb3d[_0x369401(0xe0)]||_0x369401(0xe4),_0x3ebc9e=_0x2ecb3d[_0x369401(0xde)]||_0x2ecb3d[_0x369401(0xd3)],_0x1e1b81='npm\x20install\x20'+_0x1f36e1+'@'+(_0x3ebc9e||_0x369401(0xe6));console['log'](),console[_0x369401(0xdc)](''+_0x5c2163+_0x5e583a+_0x369401(0xe7)+_0x14e9cb),console[_0x369401(0xdc)](_0x5c2163+_0x369401(0xe8)+_0x1f36e1+'@'+_0x2ecb3d[_0x369401(0xf1)]+_0x14e9cb),console['log'](_0x5c2163+_0x369401(0xd8)+_0x3ebc9e+_0x14e9cb),console[_0x369401(0xdc)](_0x5c2163+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1e1b81+_0x14e9cb),console[_0x369401(0xdc)]();}
@@ -1 +1 @@
1
- (function(_0xd84a43,_0x4d2d85){const _0x241b09=a189_0x2519,_0x439101=_0xd84a43();while(!![]){try{const _0x556ac0=-parseInt(_0x241b09(0xe1))/0x1+-parseInt(_0x241b09(0xfa))/0x2*(-parseInt(_0x241b09(0xe3))/0x3)+parseInt(_0x241b09(0xe2))/0x4+parseInt(_0x241b09(0xf3))/0x5+parseInt(_0x241b09(0xf6))/0x6+-parseInt(_0x241b09(0xf2))/0x7+parseInt(_0x241b09(0xf5))/0x8;if(_0x556ac0===_0x4d2d85)break;else _0x439101['push'](_0x439101['shift']());}catch(_0x113dba){_0x439101['push'](_0x439101['shift']());}}}(a189_0x4f31,0xf1427));function a189_0x2519(_0x4ca0f1,_0x380afc){_0x4ca0f1=_0x4ca0f1-0xe0;const _0x4f31d4=a189_0x4f31();let _0x25194f=_0x4f31d4[_0x4ca0f1];return _0x25194f;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x582fee 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(_0x4c37c5){const _0xa27a99=a189_0x2519,_0x1c6ed9=_0x4c37c5['stableVersion']||_0xa27a99(0x100);return _0xa27a99(0xec)+NPM_PACKAGE_NAME+'@'+_0x1c6ed9;}function getCurrentCliVersion(){const _0x4ad0a5=a189_0x2519;try{const _0x10d07b=fileURLToPath(import.meta.url),_0x57eed3=resolve(dirname(_0x10d07b),_0x4ad0a5(0xe9)),_0x4ed595=resolve(_0x57eed3,'package.json'),_0x3f7e50=JSON[_0x4ad0a5(0xed)](readFileSync(_0x4ed595,_0x4ad0a5(0x101)));return _0x3f7e50[_0x4ad0a5(0xe6)]||_0x4ad0a5(0x107);}catch{return _0x4ad0a5(0x107);}}export async function checkCliVersion(){const _0x134ea1=a189_0x2519,_0x427eac=getCurrentCliVersion(),_0x32804f=await getCliVersionPolicy(),_0x3fcdd3=_0x32804f?.['stableVersion']||null,_0x8921a0=_0x32804f?.[_0x134ea1(0xf7)]||null;let _0x439030=![],_0x41d889=![];const _0x402da4=a189_0x582fee[_0x134ea1(0xe7)](_0x427eac);if(_0x402da4&&_0x3fcdd3)try{const _0x3e0440=a189_0x582fee[_0x134ea1(0xe7)](_0x3fcdd3);if(_0x3e0440)_0x439030=a189_0x582fee['lt'](_0x402da4,_0x3e0440);}catch{}if(_0x402da4&&_0x8921a0)try{const _0x307e86=a189_0x582fee[_0x134ea1(0xe7)](_0x8921a0);if(_0x307e86)_0x41d889=a189_0x582fee['lt'](_0x402da4,_0x307e86);}catch{}return _0x41d889&&(_0x439030=!![]),{'currentVersion':_0x427eac,'stableVersion':_0x3fcdd3,'minimumVersion':_0x8921a0,'needsUpgrade':_0x439030,'belowMinimum':_0x41d889,'isPreRelease':![],'upgradeMessage':_0x32804f?.[_0x134ea1(0xf8)],'minimumVersionMessage':_0x32804f?.[_0x134ea1(0x102)]};}function a189_0x4f31(){const _0x1bedbd=['\x20\x20\x20Stable\x20version:\x20','latest','utf-8','minimumVersionMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x20\x20\x20','1972098OnwEzn','1511136KGgRLk','9VtRogo','currentVersion','\x1b[1m','version','coerce','\x20\x20\x20Minimum\x20required:\x20','../..','filter','Minimum\x20required:\x20','npm\x20install\x20-g\x20','parse','needsUpgrade','\x1b[0m','\x1b[33m','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','9611420WtJGxc','7046165wBPmhS','stableVersion','4527208fJHFVy','9168828YErVNX','minimumVersion','upgradeMessage','\x1b[31m','301534SOrroN','log','Upgrade\x20command:\x20','validation','\x20\x20\x20Recommended\x20stable:\x20'];a189_0x4f31=function(){return _0x1bedbd;};return a189_0x4f31();}export function printCliUpgradeWarning(_0x319f28){const _0x3043a6=a189_0x2519;if(!_0x319f28[_0x3043a6(0xee)]&&!_0x319f28['belowMinimum'])return;const _0x2a50ed=_0x3043a6(0xf9),_0x28254e=_0x3043a6(0xf0),_0x299895=_0x3043a6(0xef),_0x4f9b53=_0x3043a6(0xe5),_0x5619fb=getCliUpgradeCommand(_0x319f28);console[_0x3043a6(0xfb)](),_0x319f28[_0x3043a6(0x104)]?(console[_0x3043a6(0xfb)](''+_0x2a50ed+_0x4f9b53+_0x3043a6(0x105)+_0x299895),console['log'](_0x2a50ed+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x319f28[_0x3043a6(0xe4)]+_0x299895),_0x319f28['minimumVersion']&&console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0xe8)+_0x319f28[_0x3043a6(0xf7)]+_0x299895),_0x319f28[_0x3043a6(0xf4)]&&_0x319f28['stableVersion']!==_0x319f28[_0x3043a6(0xf7)]&&console['log'](_0x2a50ed+_0x3043a6(0xfe)+_0x319f28['stableVersion']+_0x299895),_0x319f28['minimumVersionMessage']&&console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0xe0)+_0x319f28['minimumVersionMessage']+_0x299895),console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0x106)+_0x5619fb+_0x299895)):(console[_0x3043a6(0xfb)](''+_0x28254e+_0x4f9b53+'↪\x20New\x20version\x20available'+_0x299895),console['log'](_0x28254e+_0x3043a6(0x103)+_0x319f28[_0x3043a6(0xe4)]+_0x299895),console[_0x3043a6(0xfb)](_0x28254e+_0x3043a6(0xff)+_0x319f28[_0x3043a6(0xf4)]+_0x299895),_0x319f28[_0x3043a6(0xf8)]&&console['log'](_0x28254e+_0x3043a6(0xe0)+_0x319f28[_0x3043a6(0xf8)]+_0x299895),console[_0x3043a6(0xfb)](_0x28254e+_0x3043a6(0x106)+_0x5619fb+_0x299895)),console[_0x3043a6(0xfb)]();}export function assertCliVersionSupported(_0xe1ef26){const _0x423f2a=a189_0x2519;if(!_0xe1ef26[_0x423f2a(0x104)])return;const _0x5f31f2=[_0xe1ef26[_0x423f2a(0x102)],'Current\x20version:\x20'+_0xe1ef26[_0x423f2a(0xe4)],_0xe1ef26['minimumVersion']?_0x423f2a(0xeb)+_0xe1ef26[_0x423f2a(0xf7)]:null,_0x423f2a(0xfc)+getCliUpgradeCommand(_0xe1ef26)][_0x423f2a(0xea)](Boolean)['join']('\x0a');throw CliErrors[_0x423f2a(0xfd)](_0x423f2a(0xf1),_0x5f31f2);}
1
+ function a189_0x50cd(_0x22e8b6,_0xe6dad2){_0x22e8b6=_0x22e8b6-0x14e;const _0x4d3d72=a189_0x4d3d();let _0x50cd56=_0x4d3d72[_0x22e8b6];return _0x50cd56;}(function(_0x331781,_0x58849b){const _0x4dd93a=a189_0x50cd,_0x1a614d=_0x331781();while(!![]){try{const _0x3f06b4=-parseInt(_0x4dd93a(0x157))/0x1*(-parseInt(_0x4dd93a(0x161))/0x2)+parseInt(_0x4dd93a(0x160))/0x3+parseInt(_0x4dd93a(0x15d))/0x4+-parseInt(_0x4dd93a(0x172))/0x5+-parseInt(_0x4dd93a(0x165))/0x6*(-parseInt(_0x4dd93a(0x169))/0x7)+-parseInt(_0x4dd93a(0x15f))/0x8*(parseInt(_0x4dd93a(0x16f))/0x9)+-parseInt(_0x4dd93a(0x166))/0xa;if(_0x3f06b4===_0x58849b)break;else _0x1a614d['push'](_0x1a614d['shift']());}catch(_0x5c79d9){_0x1a614d['push'](_0x1a614d['shift']());}}}(a189_0x4d3d,0x5ac7a));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a189_0x4d3d(){const _0x218284=['1.0.0','utf-8','14xGRRCF','validation','log','currentVersion','minimumVersion','join','46026xHpgot','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20','1280385XozlxG','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','\x20\x20\x20Minimum\x20required:\x20','upgradeMessage','package.json','belowMinimum','↪\x20New\x20version\x20available','../..','\x1b[33m','\x1b[31m','needsUpgrade','309362WUvOKm','Upgrade\x20command:\x20','version','Minimum\x20required:\x20','stableVersion','\x1b[1m','2841528JfOWKW','parse','984aZQDjR','2058399xPSEhn','4NtmfFH','minimumVersionMessage','latest','\x20\x20\x20Upgrade\x20command:\x20','1870194yQxpkS','13817040UdVcZV'];a189_0x4d3d=function(){return _0x218284;};return a189_0x4d3d();}import{fileURLToPath}from'node:url';import a189_0x1798af 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(_0x17a46f){const _0x1a7c9e=a189_0x50cd,_0x56e26f=_0x17a46f[_0x1a7c9e(0x15b)]||_0x1a7c9e(0x163);return _0x1a7c9e(0x177)+NPM_PACKAGE_NAME+'@'+_0x56e26f;}function getCurrentCliVersion(){const _0x297ff7=a189_0x50cd;try{const _0x4c49c7=fileURLToPath(import.meta.url),_0x34f31a=resolve(dirname(_0x4c49c7),_0x297ff7(0x153)),_0x161032=resolve(_0x34f31a,_0x297ff7(0x150)),_0x147a7e=JSON[_0x297ff7(0x15e)](readFileSync(_0x161032,_0x297ff7(0x168)));return _0x147a7e[_0x297ff7(0x159)]||_0x297ff7(0x167);}catch{return _0x297ff7(0x167);}}export async function checkCliVersion(){const _0x13a743=a189_0x50cd,_0x142e61=getCurrentCliVersion(),_0x256902=await getCliVersionPolicy(),_0x4538e6=_0x256902?.[_0x13a743(0x15b)]||null,_0x16122d=_0x256902?.[_0x13a743(0x16d)]||null;let _0x4daa7c=![],_0x31e6d3=![];const _0x409e56=a189_0x1798af[_0x13a743(0x174)](_0x142e61);if(_0x409e56&&_0x4538e6)try{const _0x109203=a189_0x1798af[_0x13a743(0x174)](_0x4538e6);if(_0x109203)_0x4daa7c=a189_0x1798af['lt'](_0x409e56,_0x109203);}catch{}if(_0x409e56&&_0x16122d)try{const _0x4d8dc9=a189_0x1798af[_0x13a743(0x174)](_0x16122d);if(_0x4d8dc9)_0x31e6d3=a189_0x1798af['lt'](_0x409e56,_0x4d8dc9);}catch{}return _0x31e6d3&&(_0x4daa7c=!![]),{'currentVersion':_0x142e61,'stableVersion':_0x4538e6,'minimumVersion':_0x16122d,'needsUpgrade':_0x4daa7c,'belowMinimum':_0x31e6d3,'isPreRelease':![],'upgradeMessage':_0x256902?.[_0x13a743(0x14f)],'minimumVersionMessage':_0x256902?.[_0x13a743(0x162)]};}export function printCliUpgradeWarning(_0x11c394){const _0x370311=a189_0x50cd;if(!_0x11c394[_0x370311(0x156)]&&!_0x11c394[_0x370311(0x151)])return;const _0x4e5f33=_0x370311(0x155),_0x5b14d1=_0x370311(0x154),_0x3397d3='\x1b[0m',_0x202ba5=_0x370311(0x15c),_0x38c273=getCliUpgradeCommand(_0x11c394);console[_0x370311(0x16b)](),_0x11c394[_0x370311(0x151)]?(console[_0x370311(0x16b)](''+_0x4e5f33+_0x202ba5+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x3397d3),console[_0x370311(0x16b)](_0x4e5f33+_0x370311(0x173)+_0x11c394[_0x370311(0x16c)]+_0x3397d3),_0x11c394[_0x370311(0x16d)]&&console[_0x370311(0x16b)](_0x4e5f33+_0x370311(0x14e)+_0x11c394['minimumVersion']+_0x3397d3),_0x11c394[_0x370311(0x15b)]&&_0x11c394[_0x370311(0x15b)]!==_0x11c394['minimumVersion']&&console['log'](_0x4e5f33+_0x370311(0x176)+_0x11c394['stableVersion']+_0x3397d3),_0x11c394[_0x370311(0x162)]&&console[_0x370311(0x16b)](_0x4e5f33+'\x20\x20\x20'+_0x11c394[_0x370311(0x162)]+_0x3397d3),console[_0x370311(0x16b)](_0x4e5f33+_0x370311(0x164)+_0x38c273+_0x3397d3)):(console[_0x370311(0x16b)](''+_0x5b14d1+_0x202ba5+_0x370311(0x152)+_0x3397d3),console[_0x370311(0x16b)](_0x5b14d1+_0x370311(0x173)+_0x11c394[_0x370311(0x16c)]+_0x3397d3),console['log'](_0x5b14d1+_0x370311(0x170)+_0x11c394[_0x370311(0x15b)]+_0x3397d3),_0x11c394[_0x370311(0x14f)]&&console[_0x370311(0x16b)](_0x5b14d1+_0x370311(0x171)+_0x11c394[_0x370311(0x14f)]+_0x3397d3),console[_0x370311(0x16b)](_0x5b14d1+'\x20\x20\x20Upgrade\x20command:\x20'+_0x38c273+_0x3397d3)),console['log']();}export function assertCliVersionSupported(_0x485695){const _0x4ff8f6=a189_0x50cd;if(!_0x485695[_0x4ff8f6(0x151)])return;const _0x5d9948=[_0x485695['minimumVersionMessage'],'Current\x20version:\x20'+_0x485695['currentVersion'],_0x485695[_0x4ff8f6(0x16d)]?_0x4ff8f6(0x15a)+_0x485695[_0x4ff8f6(0x16d)]:null,_0x4ff8f6(0x158)+getCliUpgradeCommand(_0x485695)]['filter'](Boolean)[_0x4ff8f6(0x16e)]('\x0a');throw CliErrors[_0x4ff8f6(0x16a)](_0x4ff8f6(0x175),_0x5d9948);}
@@ -1 +1 @@
1
- function a190_0x59ca(){const _0x23e3ee=['signal','21wBKHSq','minimumVersion','abort','477EHpeVq','4MpCqJB','application/json','46432HGWFaC','length','46698OILJdc','879075GDTuwf','stableVersion','json','object','1530438JrvyjI','latestVersion','245330PeHVgB','trim','recommendedVersion','minimumVersionMessage','string','457681groqAG','1092621cNkehH','upgradeMessage'];a190_0x59ca=function(){return _0x23e3ee;};return a190_0x59ca();}(function(_0x4c2e9a,_0x4fc082){const _0x14ac82=a190_0x53f2,_0x575f54=_0x4c2e9a();while(!![]){try{const _0x24716e=parseInt(_0x14ac82(0x186))/0x1*(parseInt(_0x14ac82(0x18e))/0x2)+-parseInt(_0x14ac82(0x183))/0x3*(parseInt(_0x14ac82(0x18a))/0x4)+parseInt(_0x14ac82(0x18f))/0x5+parseInt(_0x14ac82(0x193))/0x6+parseInt(_0x14ac82(0x182))/0x7+parseInt(_0x14ac82(0x18c))/0x8*(-parseInt(_0x14ac82(0x189))/0x9)+parseInt(_0x14ac82(0x195))/0xa;if(_0x24716e===_0x4fc082)break;else _0x575f54['push'](_0x575f54['shift']());}catch(_0x56a6f6){_0x575f54['push'](_0x575f54['shift']());}}}(a190_0x59ca,0x52d72));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(_0x41d036){const _0x3bc329=a190_0x53f2;return typeof _0x41d036===_0x3bc329(0x181)&&_0x41d036['trim']()[_0x3bc329(0x18d)]>0x0?_0x41d036[_0x3bc329(0x196)]():null;}function a190_0x53f2(_0x5e44b3,_0x5b519f){_0x5e44b3=_0x5e44b3-0x17f;const _0x59ca0a=a190_0x59ca();let _0x53f21e=_0x59ca0a[_0x5e44b3];return _0x53f21e;}function normalizeCliVersionPolicy(_0x124585){const _0x22db69=a190_0x53f2;if(!_0x124585||typeof _0x124585!==_0x22db69(0x192))return null;const _0x34ae5a=_0x124585,_0x22e8c2=_0x34ae5a['cli']&&typeof _0x34ae5a['cli']===_0x22db69(0x192)?_0x34ae5a['cli']:_0x34ae5a,_0x3f879d=pickString(_0x22e8c2[_0x22db69(0x190)])||pickString(_0x22e8c2[_0x22db69(0x194)])||pickString(_0x22e8c2[_0x22db69(0x17f)]),_0x4e915c=pickString(_0x22e8c2[_0x22db69(0x187)])||pickString(_0x22e8c2['minVersion']);if(!_0x3f879d&&!_0x4e915c)return null;return{'stableVersion':_0x3f879d,'minimumVersion':_0x4e915c,'upgradeMessage':pickString(_0x22e8c2[_0x22db69(0x184)])||undefined,'minimumVersionMessage':pickString(_0x22e8c2[_0x22db69(0x180)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1257dc=a190_0x53f2,_0x69c5aa=new AbortController(),_0x4f3f0b=setTimeout(()=>_0x69c5aa[_0x1257dc(0x188)](),FETCH_TIMEOUT_MS);try{const _0x4c1de5=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1257dc(0x18b)},'signal':_0x69c5aa[_0x1257dc(0x185)]});if(!_0x4c1de5['ok'])return null;const _0x212f9a=await _0x4c1de5[_0x1257dc(0x191)]();return normalizeCliVersionPolicy(_0x212f9a);}catch{return null;}finally{clearTimeout(_0x4f3f0b);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3e4d62=Date['now']();if(hasCachedPolicy){const _0x15b7f3=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3e4d62-cacheTime<_0x15b7f3)return cachedPolicy;}const _0x37e1f1=await fetchCliVersionPolicy();return cachedPolicy=_0x37e1f1,cacheTime=_0x3e4d62,hasCachedPolicy=!![],_0x37e1f1;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1c7074,_0x3d608b){const _0x1099b8=a190_0x3941,_0x1a8c55=_0x1c7074();while(!![]){try{const _0x23ad88=-parseInt(_0x1099b8(0x79))/0x1*(-parseInt(_0x1099b8(0x80))/0x2)+parseInt(_0x1099b8(0x89))/0x3+-parseInt(_0x1099b8(0x8b))/0x4+parseInt(_0x1099b8(0x7e))/0x5*(parseInt(_0x1099b8(0x77))/0x6)+parseInt(_0x1099b8(0x7f))/0x7*(parseInt(_0x1099b8(0x8c))/0x8)+-parseInt(_0x1099b8(0x7c))/0x9*(-parseInt(_0x1099b8(0x78))/0xa)+-parseInt(_0x1099b8(0x7a))/0xb;if(_0x23ad88===_0x3d608b)break;else _0x1a8c55['push'](_0x1a8c55['shift']());}catch(_0xbcb459){_0x1a8c55['push'](_0x1a8c55['shift']());}}}(a190_0x3715,0xd8ebb));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(_0x3a94c6){const _0x485503=a190_0x3941;return typeof _0x3a94c6==='string'&&_0x3a94c6['trim']()[_0x485503(0x81)]>0x0?_0x3a94c6[_0x485503(0x7d)]():null;}function normalizeCliVersionPolicy(_0x1a4827){const _0x2953ef=a190_0x3941;if(!_0x1a4827||typeof _0x1a4827!=='object')return null;const _0xc02e07=_0x1a4827,_0x53286f=_0xc02e07['cli']&&typeof _0xc02e07[_0x2953ef(0x85)]===_0x2953ef(0x82)?_0xc02e07[_0x2953ef(0x85)]:_0xc02e07,_0x28b298=pickString(_0x53286f[_0x2953ef(0x8e)])||pickString(_0x53286f[_0x2953ef(0x8d)])||pickString(_0x53286f[_0x2953ef(0x87)]),_0x3cf42e=pickString(_0x53286f[_0x2953ef(0x8a)])||pickString(_0x53286f[_0x2953ef(0x86)]);if(!_0x28b298&&!_0x3cf42e)return null;return{'stableVersion':_0x28b298,'minimumVersion':_0x3cf42e,'upgradeMessage':pickString(_0x53286f[_0x2953ef(0x8f)])||undefined,'minimumVersionMessage':pickString(_0x53286f[_0x2953ef(0x76)])||undefined};}export async function fetchCliVersionPolicy(){const _0x19a15b=a190_0x3941,_0x2e16c9=new AbortController(),_0xed6755=setTimeout(()=>_0x2e16c9[_0x19a15b(0x83)](),FETCH_TIMEOUT_MS);try{const _0x4a08d4=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x2e16c9[_0x19a15b(0x7b)]});if(!_0x4a08d4['ok'])return null;const _0x31052a=await _0x4a08d4[_0x19a15b(0x84)]();return normalizeCliVersionPolicy(_0x31052a);}catch{return null;}finally{clearTimeout(_0xed6755);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a190_0x3941(_0x4cd425,_0x49f5c5){_0x4cd425=_0x4cd425-0x76;const _0x37150f=a190_0x3715();let _0x3941bb=_0x37150f[_0x4cd425];return _0x3941bb;}function a190_0x3715(){const _0x328d2d=['cli','minVersion','recommendedVersion','now','2922027JOMcKe','minimumVersion','6925752JnSTpQ','31656qEpyAC','latestVersion','stableVersion','upgradeMessage','minimumVersionMessage','1058406LZyRPQ','2581970MexUaT','11gPFjFR','6592663muVQTn','signal','36KdsAMA','trim','30bKLOsG','133mcltqh','14344npiMrm','length','object','abort','json'];a190_0x3715=function(){return _0x328d2d;};return a190_0x3715();}export async function getCliVersionPolicy(){const _0x55439d=a190_0x3941,_0x56c2bd=Date[_0x55439d(0x88)]();if(hasCachedPolicy){const _0x3b18d6=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x56c2bd-cacheTime<_0x3b18d6)return cachedPolicy;}const _0x4b8551=await fetchCliVersionPolicy();return cachedPolicy=_0x4b8551,cacheTime=_0x56c2bd,hasCachedPolicy=!![],_0x4b8551;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a191_0x315d(_0x1ed189,_0x10ba55){_0x1ed189=_0x1ed189-0x1d0;const _0x10decc=a191_0x10de();let _0x315d7d=_0x10decc[_0x1ed189];return _0x315d7d;}const a191_0x473702=a191_0x315d;(function(_0x507cad,_0x470e71){const _0x3b4695=a191_0x315d,_0x55752e=_0x507cad();while(!![]){try{const _0x127b5b=-parseInt(_0x3b4695(0x1d4))/0x1*(-parseInt(_0x3b4695(0x1d3))/0x2)+parseInt(_0x3b4695(0x1d0))/0x3*(-parseInt(_0x3b4695(0x1d1))/0x4)+-parseInt(_0x3b4695(0x1d2))/0x5+parseInt(_0x3b4695(0x1d6))/0x6+parseInt(_0x3b4695(0x1da))/0x7+parseInt(_0x3b4695(0x1db))/0x8*(parseInt(_0x3b4695(0x1d8))/0x9)+parseInt(_0x3b4695(0x1d9))/0xa*(-parseInt(_0x3b4695(0x1dd))/0xb);if(_0x127b5b===_0x470e71)break;else _0x55752e['push'](_0x55752e['shift']());}catch(_0x3bb827){_0x55752e['push'](_0x55752e['shift']());}}}(a191_0x10de,0xcc1bf));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x2c7234,getMultiAppConfigs as a191_0x5903f3,getTemplateBaseUrl as a191_0x2e2d16}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x32dba7){const _0x404a98=a191_0x315d,_0x499661=readRawConfig(_0x32dba7);return _0x499661[_0x404a98(0x1dc)]&&typeof _0x499661[_0x404a98(0x1dc)]===_0x404a98(0x1d7)&&initEnv(_0x499661[_0x404a98(0x1dc)]),_0x499661;}export function getConfigAppCode(){return a191_0x2c7234();}function a191_0x10de(){const _0x23c809=['project','6645492Tyczzb','string','9YbwsXE','10YnwpJw','6768762vvHTZt','1063064HkiTjR','env','5937602jUmNOh','2259291nkKfNe','4udhigw','729050jQEFaa','2hEOSSH','67289yYPHzU'];a191_0x10de=function(){return _0x23c809;};return a191_0x10de();}export function getMultiAppConfigs(_0x511b20=a191_0x473702(0x1d5)){return a191_0x5903f3(_0x511b20);}export function getTemplateBaseUrl(){return a191_0x2e2d16();}
1
+ const a191_0x411635=a191_0x1f94;(function(_0x26dcaf,_0x4d3733){const _0x2fa2e8=a191_0x1f94,_0x285fae=_0x26dcaf();while(!![]){try{const _0x2ecd5b=parseInt(_0x2fa2e8(0x10f))/0x1+-parseInt(_0x2fa2e8(0x110))/0x2*(parseInt(_0x2fa2e8(0x10d))/0x3)+-parseInt(_0x2fa2e8(0x113))/0x4+-parseInt(_0x2fa2e8(0x10a))/0x5*(-parseInt(_0x2fa2e8(0x112))/0x6)+-parseInt(_0x2fa2e8(0x111))/0x7+-parseInt(_0x2fa2e8(0x109))/0x8*(-parseInt(_0x2fa2e8(0x10b))/0x9)+-parseInt(_0x2fa2e8(0x108))/0xa;if(_0x2ecd5b===_0x4d3733)break;else _0x285fae['push'](_0x285fae['shift']());}catch(_0x1e1598){_0x285fae['push'](_0x285fae['shift']());}}}(a191_0x1982,0x6e658));import{initEnv}from'../constant/env.js';function a191_0x1f94(_0x34bb35,_0x48ee79){_0x34bb35=_0x34bb35-0x108;const _0x198235=a191_0x1982();let _0x1f940e=_0x198235[_0x34bb35];return _0x1f940e;}import{readRawConfig,getConfigAppCode as a191_0x5cf090,getMultiAppConfigs as a191_0x1b482f,getTemplateBaseUrl as a191_0x4bc18a}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a191_0x1982(){const _0x5c6bc1=['487488zSKnGz','env','805358MHmArs','4OUURIW','2867627zmGyYL','30nKGUgM','604696bZTiyI','2208120uiFFnR','5488240WRLYsQ','67435ulEQwS','9iXPlVd','project'];a191_0x1982=function(){return _0x5c6bc1;};return a191_0x1982();}export function readConfig(_0x8b24dc){const _0x47afc7=a191_0x1f94,_0x3d48ac=readRawConfig(_0x8b24dc);return _0x3d48ac[_0x47afc7(0x10e)]&&typeof _0x3d48ac['env']==='string'&&initEnv(_0x3d48ac[_0x47afc7(0x10e)]),_0x3d48ac;}export function getConfigAppCode(){return a191_0x5cf090();}export function getMultiAppConfigs(_0x355a5a=a191_0x411635(0x10c)){return a191_0x1b482f(_0x355a5a);}export function getTemplateBaseUrl(){return a191_0x4bc18a();}
@@ -1 +1 @@
1
- function a192_0x180b(_0x543060,_0x528854){_0x543060=_0x543060-0x1c3;const _0x1f5710=a192_0x1f57();let _0x180be4=_0x1f5710[_0x543060];return _0x180be4;}(function(_0x3033a3,_0x7dec5e){const _0x5d5a1d=a192_0x180b,_0x45caba=_0x3033a3();while(!![]){try{const _0x8bedde=-parseInt(_0x5d5a1d(0x1c4))/0x1+-parseInt(_0x5d5a1d(0x1cc))/0x2+-parseInt(_0x5d5a1d(0x1ce))/0x3+parseInt(_0x5d5a1d(0x1cb))/0x4+-parseInt(_0x5d5a1d(0x1c5))/0x5+parseInt(_0x5d5a1d(0x1cf))/0x6+parseInt(_0x5d5a1d(0x1c8))/0x7;if(_0x8bedde===_0x7dec5e)break;else _0x45caba['push'](_0x45caba['shift']());}catch(_0x2c99e8){_0x45caba['push'](_0x45caba['shift']());}}}(a192_0x1f57,0x77f84));import a192_0x1a643c from'node:path';function a192_0x1f57(){const _0xf45993=['isDirectory','copyFileSync','202852DIYQCS','4688820hctJrC','join','readdirSync','13263859vbvFzj','name','error','428036qYBHMy','1266218SzfOpV','mkdirSync','622986ADlhYQ','2825622tfvVNS'];a192_0x1f57=function(){return _0xf45993;};return a192_0x1f57();}import a192_0x388cb7 from'node:fs';export async function copyDirectory(_0x469dfd,_0x3ec6d1){const _0x2960af=a192_0x180b;try{const _0x22cb0d=a192_0x388cb7[_0x2960af(0x1c7)](_0x469dfd,{'withFileTypes':!![]});a192_0x388cb7[_0x2960af(0x1cd)](_0x3ec6d1,{'recursive':!![]});for(const _0xc86a6c of _0x22cb0d){const _0x3e12a4=a192_0x1a643c[_0x2960af(0x1c6)](_0x469dfd,_0xc86a6c[_0x2960af(0x1c9)]),_0xacabb8=a192_0x1a643c[_0x2960af(0x1c6)](_0x3ec6d1,_0xc86a6c[_0x2960af(0x1c9)]);_0xc86a6c[_0x2960af(0x1d0)]()?await copyDirectory(_0x3e12a4,_0xacabb8):a192_0x388cb7[_0x2960af(0x1c3)](_0x3e12a4,_0xacabb8);}}catch(_0x6ec5d2){console[_0x2960af(0x1ca)]('复制目录时出错:',_0x6ec5d2);}}
1
+ (function(_0x158cd6,_0x4e6a18){const _0x6acad0=a192_0x54f3,_0x3ffade=_0x158cd6();while(!![]){try{const _0x5f0db4=parseInt(_0x6acad0(0x172))/0x1*(-parseInt(_0x6acad0(0x17f))/0x2)+parseInt(_0x6acad0(0x16e))/0x3*(-parseInt(_0x6acad0(0x173))/0x4)+parseInt(_0x6acad0(0x17d))/0x5+parseInt(_0x6acad0(0x16d))/0x6*(-parseInt(_0x6acad0(0x176))/0x7)+-parseInt(_0x6acad0(0x178))/0x8*(parseInt(_0x6acad0(0x17e))/0x9)+parseInt(_0x6acad0(0x17a))/0xa*(-parseInt(_0x6acad0(0x175))/0xb)+parseInt(_0x6acad0(0x177))/0xc;if(_0x5f0db4===_0x4e6a18)break;else _0x3ffade['push'](_0x3ffade['shift']());}catch(_0x372b7e){_0x3ffade['push'](_0x3ffade['shift']());}}}(a192_0x4eae,0xf0296));import a192_0x1c60b0 from'node:path';import a192_0x8a55a1 from'node:fs';function a192_0x54f3(_0x4b1248,_0x10e12c){_0x4b1248=_0x4b1248-0x16d;const _0x4eae07=a192_0x4eae();let _0x54f384=_0x4eae07[_0x4b1248];return _0x54f384;}export async function copyDirectory(_0x4d7ec,_0x4bf32a){const _0x3e62ec=a192_0x54f3;try{const _0x2353aa=a192_0x8a55a1[_0x3e62ec(0x180)](_0x4d7ec,{'withFileTypes':!![]});a192_0x8a55a1[_0x3e62ec(0x17b)](_0x4bf32a,{'recursive':!![]});for(const _0x5b48ac of _0x2353aa){const _0x216b03=a192_0x1c60b0[_0x3e62ec(0x170)](_0x4d7ec,_0x5b48ac['name']),_0x89d06d=a192_0x1c60b0['join'](_0x4bf32a,_0x5b48ac[_0x3e62ec(0x171)]);_0x5b48ac[_0x3e62ec(0x17c)]()?await copyDirectory(_0x216b03,_0x89d06d):a192_0x8a55a1[_0x3e62ec(0x16f)](_0x216b03,_0x89d06d);}}catch(_0xd99af9){console[_0x3e62ec(0x179)](_0x3e62ec(0x174),_0xd99af9);}}function a192_0x4eae(){const _0x4d7226=['18572IOAUga','4ZLIjAQ','复制目录时出错:','33pmgPjU','3496437HDKKfN','50683308XkvXqu','2141104KyItaI','error','258070XBtEHI','mkdirSync','isDirectory','3873515NRQiGg','36OmfPzZ','164DnBLau','readdirSync','6PKJDbB','2532726eNWKzX','copyFileSync','join','name'];a192_0x4eae=function(){return _0x4d7226;};return a192_0x4eae();}
@@ -1 +1 @@
1
- function a193_0x1c92(_0x1def31,_0xaeb59b){_0x1def31=_0x1def31-0x1ac;const _0x2529f9=a193_0x2529();let _0x1c9288=_0x2529f9[_0x1def31];return _0x1c9288;}(function(_0x8d49c3,_0x59fbe6){const _0x21a625=a193_0x1c92,_0xecb58e=_0x8d49c3();while(!![]){try{const _0xc0d391=parseInt(_0x21a625(0x1ae))/0x1+-parseInt(_0x21a625(0x1b4))/0x2+parseInt(_0x21a625(0x1b2))/0x3+-parseInt(_0x21a625(0x1b5))/0x4+parseInt(_0x21a625(0x1ac))/0x5+parseInt(_0x21a625(0x1ad))/0x6*(parseInt(_0x21a625(0x1af))/0x7)+parseInt(_0x21a625(0x1b7))/0x8*(-parseInt(_0x21a625(0x1b8))/0x9);if(_0xc0d391===_0x59fbe6)break;else _0xecb58e['push'](_0xecb58e['shift']());}catch(_0xf32c6){_0xecb58e['push'](_0xecb58e['shift']());}}}(a193_0x2529,0x5da06));function a193_0x2529(){const _0x5c8954=['378444pNNoRl','2427180HMLlHK','isFinite','504DLfFwg','32247sQifIp','3243485yxQbRW','66XzWxpO','67555uNwttm','274442zCHZEn','string','object','773166qXeOVL','number'];a193_0x2529=function(){return _0x5c8954;};return a193_0x2529();}function toFiniteNumber(_0x20e966){const _0x1a84a2=a193_0x1c92;if(typeof _0x20e966===_0x1a84a2(0x1b3)&&Number[_0x1a84a2(0x1b6)](_0x20e966))return _0x20e966;if(typeof _0x20e966===_0x1a84a2(0x1b0)){const _0x2e0a44=_0x20e966['trim']();if(!_0x2e0a44)return undefined;const _0x9def55=Number(_0x2e0a44);if(Number[_0x1a84a2(0x1b6)](_0x9def55))return _0x9def55;}return undefined;}export function normalizeEntityWithIdResponse(_0x146618){const _0x458de0=a193_0x1c92,_0x1594e3=toFiniteNumber(_0x146618);if(_0x1594e3!==undefined)return{'id':_0x1594e3,'entity':{'id':_0x1594e3}};if(!_0x146618||typeof _0x146618!==_0x458de0(0x1b1))return{'id':undefined,'entity':{}};const _0x140d26={..._0x146618},_0x88e649=toFiniteNumber(_0x140d26['id']);return _0x88e649!==undefined&&(_0x140d26['id']=_0x88e649),{'id':_0x88e649,'entity':_0x140d26};}
1
+ (function(_0x5ec4ad,_0xeb4e86){const _0x5dd23f=a193_0x481c,_0x52a930=_0x5ec4ad();while(!![]){try{const _0x1b03dd=-parseInt(_0x5dd23f(0x126))/0x1*(-parseInt(_0x5dd23f(0x11e))/0x2)+-parseInt(_0x5dd23f(0x120))/0x3+-parseInt(_0x5dd23f(0x122))/0x4+parseInt(_0x5dd23f(0x123))/0x5*(-parseInt(_0x5dd23f(0x121))/0x6)+-parseInt(_0x5dd23f(0x12a))/0x7+parseInt(_0x5dd23f(0x127))/0x8+parseInt(_0x5dd23f(0x124))/0x9;if(_0x1b03dd===_0xeb4e86)break;else _0x52a930['push'](_0x52a930['shift']());}catch(_0xc988a3){_0x52a930['push'](_0x52a930['shift']());}}}(a193_0x55c9,0x9b749));function a193_0x481c(_0x1bf1e2,_0x5dc851){_0x1bf1e2=_0x1bf1e2-0x11e;const _0x55c9e6=a193_0x55c9();let _0x481c94=_0x55c9e6[_0x1bf1e2];return _0x481c94;}function a193_0x55c9(){const _0x429141=['5061560Kugfrq','729814qRWMjf','isFinite','3649551rmhHob','67926CTqBSE','3430528ISpECg','295dwnvra','24077799LawkOQ','string','2luIrAi','5574304VxNlQR','trim','number'];a193_0x55c9=function(){return _0x429141;};return a193_0x55c9();}function toFiniteNumber(_0x2c87a6){const _0x5effbd=a193_0x481c;if(typeof _0x2c87a6===_0x5effbd(0x129)&&Number[_0x5effbd(0x11f)](_0x2c87a6))return _0x2c87a6;if(typeof _0x2c87a6===_0x5effbd(0x125)){const _0x3b08b7=_0x2c87a6[_0x5effbd(0x128)]();if(!_0x3b08b7)return undefined;const _0x1724a1=Number(_0x3b08b7);if(Number[_0x5effbd(0x11f)](_0x1724a1))return _0x1724a1;}return undefined;}export function normalizeEntityWithIdResponse(_0x3fe623){const _0x51c901=toFiniteNumber(_0x3fe623);if(_0x51c901!==undefined)return{'id':_0x51c901,'entity':{'id':_0x51c901}};if(!_0x3fe623||typeof _0x3fe623!=='object')return{'id':undefined,'entity':{}};const _0x3112dd={..._0x3fe623},_0x4fb595=toFiniteNumber(_0x3112dd['id']);return _0x4fb595!==undefined&&(_0x3112dd['id']=_0x4fb595),{'id':_0x4fb595,'entity':_0x3112dd};}
@@ -1 +1 @@
1
- function a194_0x4696(_0x2ae5fb,_0x30f5c5){_0x2ae5fb=_0x2ae5fb-0xff;const _0x3071d2=a194_0x3071();let _0x4696dc=_0x3071d2[_0x2ae5fb];return _0x4696dc;}(function(_0x1c61eb,_0x118996){const _0x249eaa=a194_0x4696,_0x2cc34d=_0x1c61eb();while(!![]){try{const _0x592a3b=-parseInt(_0x249eaa(0x106))/0x1*(-parseInt(_0x249eaa(0x105))/0x2)+parseInt(_0x249eaa(0x108))/0x3+-parseInt(_0x249eaa(0x107))/0x4+parseInt(_0x249eaa(0x102))/0x5*(-parseInt(_0x249eaa(0x104))/0x6)+-parseInt(_0x249eaa(0x103))/0x7*(parseInt(_0x249eaa(0x101))/0x8)+parseInt(_0x249eaa(0x100))/0x9+parseInt(_0x249eaa(0xff))/0xa;if(_0x592a3b===_0x118996)break;else _0x2cc34d['push'](_0x2cc34d['shift']());}catch(_0x1736f5){_0x2cc34d['push'](_0x2cc34d['shift']());}}}(a194_0x3071,0xe8751));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a194_0x3071(){const _0x4ab2ce=['2344122HFgELb','15127704WaykgI','1565UUSIIK','7ztqJeH','10254Trweme','4GRhYYa','611749HqgQlK','3070668evrIjJ','4226502qvGbar','12529020Fbqdma'];a194_0x3071=function(){return _0x4ab2ce;};return a194_0x3071();}export async function copyDir(_0x1846ca,_0x5bf653){const _0x154cea=statSync(_0x1846ca);if(_0x154cea['isDirectory']()){!existsSync(_0x5bf653)&&mkdirSync(_0x5bf653,{'recursive':!![]});const _0x42ff6f=readdirSync(_0x1846ca);for(const _0xd29186 of _0x42ff6f){await copyDir(join(_0x1846ca,_0xd29186),join(_0x5bf653,_0xd29186));}}else copyFileSync(_0x1846ca,_0x5bf653);}export function ensureDir(_0x1bb18d){!existsSync(_0x1bb18d)&&mkdirSync(_0x1bb18d,{'recursive':!![]});}export function pathExists(_0x3b66a4){return existsSync(_0x3b66a4);}
1
+ (function(_0x45d298,_0x558d9a){const _0x1d139c=a194_0xf991,_0x143200=_0x45d298();while(!![]){try{const _0x342e2a=-parseInt(_0x1d139c(0x179))/0x1+parseInt(_0x1d139c(0x178))/0x2*(-parseInt(_0x1d139c(0x17a))/0x3)+-parseInt(_0x1d139c(0x176))/0x4+parseInt(_0x1d139c(0x173))/0x5+-parseInt(_0x1d139c(0x172))/0x6+-parseInt(_0x1d139c(0x174))/0x7+-parseInt(_0x1d139c(0x175))/0x8*(-parseInt(_0x1d139c(0x177))/0x9);if(_0x342e2a===_0x558d9a)break;else _0x143200['push'](_0x143200['shift']());}catch(_0x55e533){_0x143200['push'](_0x143200['shift']());}}}(a194_0x4d72,0x9ebf2));function a194_0x4d72(){const _0x5d4592=['216vMxGmr','4094528TUPFZO','1717524SGBcVj','8sSlUHX','976041XzDZPk','809160icOadd','isDirectory','7530480pjQBjM','4236765rwxSFY','7112462xWzSQB'];a194_0x4d72=function(){return _0x5d4592;};return a194_0x4d72();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2e9233,_0x519e6d){const _0x26d310=a194_0xf991,_0x4ba61e=statSync(_0x2e9233);if(_0x4ba61e[_0x26d310(0x171)]()){!existsSync(_0x519e6d)&&mkdirSync(_0x519e6d,{'recursive':!![]});const _0x51677f=readdirSync(_0x2e9233);for(const _0x1b732c of _0x51677f){await copyDir(join(_0x2e9233,_0x1b732c),join(_0x519e6d,_0x1b732c));}}else copyFileSync(_0x2e9233,_0x519e6d);}export function ensureDir(_0x413bfb){!existsSync(_0x413bfb)&&mkdirSync(_0x413bfb,{'recursive':!![]});}function a194_0xf991(_0xb8363b,_0x4a1042){_0xb8363b=_0xb8363b-0x171;const _0x4d7298=a194_0x4d72();let _0xf991af=_0x4d7298[_0xb8363b];return _0xf991af;}export function pathExists(_0x26a840){return existsSync(_0x26a840);}
@@ -1 +1 @@
1
- const a195_0x47124f=a195_0x18da;(function(_0x8b052d,_0x54cff3){const _0x3bb112=a195_0x18da,_0x16b4e9=_0x8b052d();while(!![]){try{const _0x27f613=-parseInt(_0x3bb112(0xd2))/0x1+-parseInt(_0x3bb112(0xd4))/0x2*(-parseInt(_0x3bb112(0xe3))/0x3)+parseInt(_0x3bb112(0xd3))/0x4+parseInt(_0x3bb112(0xee))/0x5+-parseInt(_0x3bb112(0xdf))/0x6*(parseInt(_0x3bb112(0xdc))/0x7)+parseInt(_0x3bb112(0xd5))/0x8+-parseInt(_0x3bb112(0xe2))/0x9*(parseInt(_0x3bb112(0xe9))/0xa);if(_0x27f613===_0x54cff3)break;else _0x16b4e9['push'](_0x16b4e9['shift']());}catch(_0xd91a9c){_0x16b4e9['push'](_0x16b4e9['shift']());}}}(a195_0x2493,0x461dc));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 _0x2a5107=getTemplateBaseUrl();return _0x2a5107+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a195_0x47124f(0xe6));export async function fetchGuidesFromCDN(){const _0x3bfa78=a195_0x47124f,_0x40ccb4=getGuidesCdnUrl(),_0x2e3bf6=await fetch(_0x40ccb4,{'headers':{'Accept':_0x3bfa78(0xdd)}});if(!_0x2e3bf6['ok'])throw new Error(_0x3bfa78(0xeb)+_0x2e3bf6['status']+'\x20'+_0x2e3bf6['statusText']);const _0x40c27=await _0x2e3bf6[_0x3bfa78(0xd0)]();if(!_0x40c27[_0x3bfa78(0xda)]||typeof _0x40c27[_0x3bfa78(0xda)]!==_0x3bfa78(0xed))throw new Error(_0x3bfa78(0xde));return _0x40c27;}function a195_0x18da(_0x133e23,_0x30aacd){_0x133e23=_0x133e23-0xd0;const _0x24939d=a195_0x2493();let _0x18da6b=_0x24939d[_0x133e23];return _0x18da6b;}export function writeGuidesToProject(_0x240638,_0x549363,_0x31c963=a195_0x47124f(0xe5),_0x44b62d){const _0x41900f=a195_0x47124f,_0x4435fc=join(_0x549363,_0x31c963);mkdirSync(_0x4435fc,{'recursive':!![]});for(const [_0x5c1420,_0x133959]of Object[_0x41900f(0xec)](_0x240638['guides'])){let _0x50174c=_0x133959[_0x41900f(0xe4)];_0x133959['lastUpdated']&&(_0x50174c=appendUpdateTime(_0x50174c,_0x133959['lastUpdated'])),writeFileSync(join(_0x4435fc,_0x5c1420+'.md'),_0x50174c,'utf-8');}}export function appendUpdateTime(_0x2b5f87,_0x23920c){const _0x1b47bb=a195_0x47124f;return _0x2b5f87=_0x2b5f87[_0x1b47bb(0xe7)](/\n*>更新时间:.*$/m,''),_0x2b5f87[_0x1b47bb(0xe8)]()+(_0x1b47bb(0xea)+_0x23920c);}export function getSkillTemplate(_0x3b5172){const _0x1067b1=a195_0x47124f;return _0x3b5172[_0x1067b1(0xd8)]?.[_0x1067b1(0xe4)]||'';}export function appendExtendContents(_0x6aaaec,_0x4d17c3,_0x2ac140){const _0x3d2db5=a195_0x47124f,_0xe40ddf=[];for(const [,_0x5b3565]of Object[_0x3d2db5(0xec)](_0x4d17c3['guides'])){_0x5b3565[_0x3d2db5(0xd7)]&&_0xe40ddf['push'](_0x5b3565['extendContent'][_0x3d2db5(0xe8)]());}if(_0xe40ddf['length']===0x0)return _0x6aaaec;return _0x6aaaec[_0x3d2db5(0xe8)]()+'\x0a\x0a'+_0xe40ddf[_0x3d2db5(0xdb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3cef1a,_0x1596e6,_0x518b9e){const _0x4002fe=a195_0x47124f,_0x1c2a91=getSkillTemplate(_0x3cef1a);if(!_0x1c2a91)throw new Error(_0x4002fe(0xd9));const _0x46fb2e=dirname(_0x1596e6);mkdirSync(_0x46fb2e,{'recursive':!![]});let _0x5e9176=_0x1c2a91[_0x4002fe(0xe7)](/\{\{IDE_NAME\}\}/g,_0x518b9e);_0x5e9176=appendExtendContents(_0x5e9176,_0x3cef1a),_0x3cef1a['skillTemplate'][_0x4002fe(0xd1)]&&(_0x5e9176=appendUpdateTime(_0x5e9176,_0x3cef1a[_0x4002fe(0xd8)][_0x4002fe(0xd1)])),writeFileSync(_0x1596e6,_0x5e9176,_0x4002fe(0xe0));}function a195_0x2493(){const _0xa5e8f0=['content','.lovrabet/skill/guides','cache','replace','trimEnd','4782590LCocqp','\x0a\x0a>更新时间:','CDN\x20请求失败:\x20','entries','object','2710235egBOUo','json','lastUpdated','79964PQKUJf','118544tUTrVX','1162kmnoDQ','4279960eUHXGr','keys','extendContent','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','guides','join','248766MIdFZD','application/json','CDN\x20返回数据格式错误','96XvlYYu','utf-8','title','9ueLExC','1587YMWsYi'];a195_0x2493=function(){return _0xa5e8f0;};return a195_0x2493();}export async function installGuides(_0x4e0ea1){const _0xd63f78=a195_0x47124f,_0x179394=await fetchGuidesFromCDN();return writeGuidesToProject(_0x179394,_0x4e0ea1),Object[_0xd63f78(0xd6)](_0x179394[_0xd63f78(0xda)])['length'];}export function getGuidesSummary(_0x49eb60){const _0x502e42=a195_0x47124f;return Object[_0x502e42(0xec)](_0x49eb60[_0x502e42(0xda)])['map'](([_0x383e09,_0x21ad21])=>({'key':_0x383e09,'title':_0x21ad21[_0x502e42(0xe1)],'path':_0x21ad21['path']}));}
1
+ const a195_0x1169e4=a195_0xa8e8;(function(_0x578daf,_0x338633){const _0x36efe9=a195_0xa8e8,_0x409b56=_0x578daf();while(!![]){try{const _0x435811=-parseInt(_0x36efe9(0xdb))/0x1+-parseInt(_0x36efe9(0xdc))/0x2+parseInt(_0x36efe9(0xf9))/0x3*(-parseInt(_0x36efe9(0xe5))/0x4)+parseInt(_0x36efe9(0xda))/0x5*(parseInt(_0x36efe9(0xfd))/0x6)+-parseInt(_0x36efe9(0xdd))/0x7*(-parseInt(_0x36efe9(0xf7))/0x8)+-parseInt(_0x36efe9(0xf6))/0x9*(-parseInt(_0x36efe9(0xec))/0xa)+parseInt(_0x36efe9(0xdf))/0xb;if(_0x435811===_0x338633)break;else _0x409b56['push'](_0x409b56['shift']());}catch(_0x15f3c6){_0x409b56['push'](_0x409b56['shift']());}}}(a195_0x49b6,0x294f1));import{mkdirSync,writeFileSync}from'node:fs';function a195_0x49b6(){const _0x187dfc=['statusText','title','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','374608PKFXQW','push','.lovrabet','lastUpdated','map','guides','CDN\x20返回数据格式错误','74180ZsAGmI','.lovrabet/skill/guides','keys','entries','content','json','replace','path','cache','/skills/guides.json','171WoIWRb','13408ANWxBf','.md','3NblJVO','length','object','trimEnd','76998XSAqsf','application/json','extendContent','utf-8','25jRWeLd','85198wSEVvW','228034vrEapz','504VwwVeb','status','1499179fNpfOX','\x0a\x0a>更新时间:'];a195_0x49b6=function(){return _0x187dfc;};return a195_0x49b6();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0xa7c526=a195_0xa8e8,_0x2156ef=getTemplateBaseUrl();return _0x2156ef+_0xa7c526(0xf5);}function a195_0xa8e8(_0x589c81,_0x15492d){_0x589c81=_0x589c81-0xd8;const _0x49b6af=a195_0x49b6();let _0xa8e8a4=_0x49b6af[_0x589c81];return _0xa8e8a4;}const CACHE_DIR=join(homedir(),a195_0x1169e4(0xe7),a195_0x1169e4(0xf4));export async function fetchGuidesFromCDN(){const _0x3a89b5=a195_0x1169e4,_0x381c74=getGuidesCdnUrl(),_0x32e85a=await fetch(_0x381c74,{'headers':{'Accept':_0x3a89b5(0xfe)}});if(!_0x32e85a['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x32e85a[_0x3a89b5(0xde)]+'\x20'+_0x32e85a[_0x3a89b5(0xe1)]);const _0x1d8e6d=await _0x32e85a[_0x3a89b5(0xf1)]();if(!_0x1d8e6d[_0x3a89b5(0xea)]||typeof _0x1d8e6d[_0x3a89b5(0xea)]!==_0x3a89b5(0xfb))throw new Error(_0x3a89b5(0xeb));return _0x1d8e6d;}export function writeGuidesToProject(_0x32a093,_0x5ea1c1,_0x156ac7=a195_0x1169e4(0xed),_0x484037){const _0x348180=a195_0x1169e4,_0x426125=join(_0x5ea1c1,_0x156ac7);mkdirSync(_0x426125,{'recursive':!![]});for(const [_0x5a7181,_0x50a89f]of Object[_0x348180(0xef)](_0x32a093[_0x348180(0xea)])){let _0x5389cb=_0x50a89f[_0x348180(0xf0)];_0x50a89f[_0x348180(0xe8)]&&(_0x5389cb=appendUpdateTime(_0x5389cb,_0x50a89f[_0x348180(0xe8)])),writeFileSync(join(_0x426125,_0x5a7181+_0x348180(0xf8)),_0x5389cb,_0x348180(0xd9));}}export function appendUpdateTime(_0x518860,_0x394f1e){const _0x3744f0=a195_0x1169e4;return _0x518860=_0x518860[_0x3744f0(0xf2)](/\n*>更新时间:.*$/m,''),_0x518860[_0x3744f0(0xfc)]()+(_0x3744f0(0xe0)+_0x394f1e);}export function getSkillTemplate(_0x540723){const _0x18164c=a195_0x1169e4;return _0x540723[_0x18164c(0xe3)]?.[_0x18164c(0xf0)]||'';}export function appendExtendContents(_0x50ca0e,_0x3ddf05,_0x200cbf){const _0x39a6de=a195_0x1169e4,_0x3db409=[];for(const [,_0x46f09c]of Object[_0x39a6de(0xef)](_0x3ddf05['guides'])){_0x46f09c[_0x39a6de(0xd8)]&&_0x3db409[_0x39a6de(0xe6)](_0x46f09c['extendContent'][_0x39a6de(0xfc)]());}if(_0x3db409['length']===0x0)return _0x50ca0e;return _0x50ca0e['trimEnd']()+'\x0a\x0a'+_0x3db409['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x588a0a,_0x14f499,_0x1a85c4){const _0x492753=a195_0x1169e4,_0x196f51=getSkillTemplate(_0x588a0a);if(!_0x196f51)throw new Error(_0x492753(0xe4));const _0x42b0f7=dirname(_0x14f499);mkdirSync(_0x42b0f7,{'recursive':!![]});let _0xe28f31=_0x196f51[_0x492753(0xf2)](/\{\{IDE_NAME\}\}/g,_0x1a85c4);_0xe28f31=appendExtendContents(_0xe28f31,_0x588a0a),_0x588a0a[_0x492753(0xe3)]['lastUpdated']&&(_0xe28f31=appendUpdateTime(_0xe28f31,_0x588a0a[_0x492753(0xe3)][_0x492753(0xe8)])),writeFileSync(_0x14f499,_0xe28f31,'utf-8');}export async function installGuides(_0x13f6d1){const _0x129532=a195_0x1169e4,_0x4f0d7b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4f0d7b,_0x13f6d1),Object[_0x129532(0xee)](_0x4f0d7b[_0x129532(0xea)])[_0x129532(0xfa)];}export function getGuidesSummary(_0x11ed7e){const _0x5d5df5=a195_0x1169e4;return Object['entries'](_0x11ed7e[_0x5d5df5(0xea)])[_0x5d5df5(0xe9)](([_0xa0fd28,_0x546a19])=>({'key':_0xa0fd28,'title':_0x546a19[_0x5d5df5(0xe2)],'path':_0x546a19[_0x5d5df5(0xf3)]}));}
@@ -1 +1 @@
1
- function a196_0x319e(){const _0x296098=['96WNqAwI','message','includes','get','headers','126064AUZOHG','36316IFPIOg','4125770BjjUkh','name','*\x20请求失败,','url','application/json','160205BtLCsT','ms\x20后进行第\x20','log','4RUhYph','8fnYcVC','text','691722AvmsGa','status','Request\x20failed','128559EYvIjd','AbortError','1767762ttibxu'];a196_0x319e=function(){return _0x296098;};return a196_0x319e();}(function(_0x1e7f83,_0x1580bf){const _0x26129d=a196_0x50e4,_0x5001a0=_0x1e7f83();while(!![]){try{const _0x13939e=parseInt(_0x26129d(0x12d))/0x1+-parseInt(_0x26129d(0x122))/0x2+parseInt(_0x26129d(0x125))/0x3*(parseInt(_0x26129d(0x11f))/0x4)+-parseInt(_0x26129d(0x11c))/0x5+parseInt(_0x26129d(0x128))/0x6*(-parseInt(_0x26129d(0x12e))/0x7)+-parseInt(_0x26129d(0x120))/0x8*(-parseInt(_0x26129d(0x127))/0x9)+parseInt(_0x26129d(0x12f))/0xa;if(_0x13939e===_0x1580bf)break;else _0x5001a0['push'](_0x5001a0['shift']());}catch(_0x5f4f05){_0x5001a0['push'](_0x5001a0['shift']());}}}(a196_0x319e,0x4d64a));export async function httpRequest(_0x1d5712,_0xdb3e06={}){const _0x1b7b18=a196_0x50e4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xdb3e06;let _0x28df33=null;for(let _0xbc6d51=0x0;_0xbc6d51<=retries;_0xbc6d51++){try{const _0x317543=new AbortController(),_0x432f22=setTimeout(()=>_0x317543['abort'](),timeout),_0x203783=await fetch(_0x1d5712,{'headers':headers,'signal':_0x317543['signal']});clearTimeout(_0x432f22);let _0x7e87ae;const _0x1bf6de=_0x203783['headers'][_0x1b7b18(0x12b)]('content-type');return _0x1bf6de?.[_0x1b7b18(0x12a)](_0x1b7b18(0x11b))?_0x7e87ae=await _0x203783['json']():_0x7e87ae=await _0x203783[_0x1b7b18(0x121)](),{'ok':_0x203783['ok'],'status':_0x203783[_0x1b7b18(0x123)],'statusText':_0x203783['statusText'],'data':_0x7e87ae,'headers':_0x203783[_0x1b7b18(0x12c)],'url':_0x203783[_0x1b7b18(0x11a)],'text':()=>_0x203783[_0x1b7b18(0x121)]()};}catch(_0xca5836){_0x28df33=_0xca5836 instanceof Error?_0xca5836:new Error(String(_0xca5836));if(_0xbc6d51===retries)break;if(shouldRetry(_0xca5836)){console[_0x1b7b18(0x11e)](_0x1b7b18(0x119)+retryDelay+_0x1b7b18(0x11d)+(_0xbc6d51+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x28df33||new Error(_0x1b7b18(0x124));}function a196_0x50e4(_0x256ea1,_0x218c5e){_0x256ea1=_0x256ea1-0x118;const _0x319e51=a196_0x319e();let _0x50e4b8=_0x319e51[_0x256ea1];return _0x50e4b8;}function shouldRetry(_0x124f1b){const _0x43de62=a196_0x50e4;if(_0x124f1b instanceof Error){if(_0x124f1b[_0x43de62(0x118)]===_0x43de62(0x126))return![];if(_0x124f1b[_0x43de62(0x118)]==='TypeError'&&_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('fetch'))return!![];if(_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('ECONNRESET'))return!![];if(_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('ENOTFOUND'))return![];}return![];}function sleep(_0x4596fc){return new Promise(_0x1cf095=>setTimeout(_0x1cf095,_0x4596fc));}export function validateUrl(_0x30b512){try{return new URL(_0x30b512),!![];}catch{return![];}}
1
+ (function(_0xc37d67,_0x2d4953){const _0x3c5fae=a196_0x2a35,_0x4e411e=_0xc37d67();while(!![]){try{const _0x34ae67=-parseInt(_0x3c5fae(0xa8))/0x1+-parseInt(_0x3c5fae(0xaf))/0x2+parseInt(_0x3c5fae(0xb7))/0x3+-parseInt(_0x3c5fae(0xb8))/0x4*(parseInt(_0x3c5fae(0xb4))/0x5)+-parseInt(_0x3c5fae(0xa2))/0x6*(-parseInt(_0x3c5fae(0xb2))/0x7)+-parseInt(_0x3c5fae(0xc0))/0x8+parseInt(_0x3c5fae(0xbe))/0x9*(parseInt(_0x3c5fae(0xac))/0xa);if(_0x34ae67===_0x2d4953)break;else _0x4e411e['push'](_0x4e411e['shift']());}catch(_0x40303c){_0x4e411e['push'](_0x4e411e['shift']());}}}(a196_0x3739,0x511e6));function a196_0x3739(){const _0x43c920=['ENOTFOUND','statusText','includes','47150OCRkQv','signal','json','490046UWeGFq','log','TypeError','7hceflO','abort','8825UOlzKr','content-type','Request\x20failed','888144TrvZqv','292qfjDOR','ECONNRESET','get','name','status','AbortError','1179NMNZws','\x20次重试...','1668752mHIhgZ','2000910zOAmJM','headers','url','*\x20请求失败,','message','text','332474hBsCQD'];a196_0x3739=function(){return _0x43c920;};return a196_0x3739();}export async function httpRequest(_0x424e2f,_0x572f94={}){const _0xc47526=a196_0x2a35,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x572f94;let _0x2fbf3f=null;for(let _0x145378=0x0;_0x145378<=retries;_0x145378++){try{const _0x164ece=new AbortController(),_0x531bc8=setTimeout(()=>_0x164ece[_0xc47526(0xb3)](),timeout),_0x5048e1=await fetch(_0x424e2f,{'headers':headers,'signal':_0x164ece[_0xc47526(0xad)]});clearTimeout(_0x531bc8);let _0xeaa943;const _0x14c21f=_0x5048e1[_0xc47526(0xa3)][_0xc47526(0xba)](_0xc47526(0xb5));return _0x14c21f?.[_0xc47526(0xab)]('application/json')?_0xeaa943=await _0x5048e1[_0xc47526(0xae)]():_0xeaa943=await _0x5048e1[_0xc47526(0xa7)](),{'ok':_0x5048e1['ok'],'status':_0x5048e1[_0xc47526(0xbc)],'statusText':_0x5048e1[_0xc47526(0xaa)],'data':_0xeaa943,'headers':_0x5048e1[_0xc47526(0xa3)],'url':_0x5048e1[_0xc47526(0xa4)],'text':()=>_0x5048e1['text']()};}catch(_0x3496be){_0x2fbf3f=_0x3496be instanceof Error?_0x3496be:new Error(String(_0x3496be));if(_0x145378===retries)break;if(shouldRetry(_0x3496be)){console[_0xc47526(0xb0)](_0xc47526(0xa5)+retryDelay+'ms\x20后进行第\x20'+(_0x145378+0x1)+_0xc47526(0xbf)),await sleep(retryDelay);continue;}else break;}}throw _0x2fbf3f||new Error(_0xc47526(0xb6));}function shouldRetry(_0x1759da){const _0x31ce98=a196_0x2a35;if(_0x1759da instanceof Error){if(_0x1759da['name']===_0x31ce98(0xbd))return![];if(_0x1759da[_0x31ce98(0xbb)]===_0x31ce98(0xb1)&&_0x1759da['message'][_0x31ce98(0xab)]('fetch'))return!![];if(_0x1759da[_0x31ce98(0xa6)]['includes'](_0x31ce98(0xb9)))return!![];if(_0x1759da[_0x31ce98(0xa6)][_0x31ce98(0xab)](_0x31ce98(0xa9)))return![];}return![];}function a196_0x2a35(_0x38f1b8,_0x25b3ec){_0x38f1b8=_0x38f1b8-0xa2;const _0x37393e=a196_0x3739();let _0x2a352=_0x37393e[_0x38f1b8];return _0x2a352;}function sleep(_0x46a2cd){return new Promise(_0x31c052=>setTimeout(_0x31c052,_0x46a2cd));}export function validateUrl(_0x306816){try{return new URL(_0x306816),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x595cd7,_0x366c17){const _0x31e316=a197_0x46e1,_0x2d26d7=_0x595cd7();while(!![]){try{const _0x4b307c=-parseInt(_0x31e316(0xed))/0x1*(-parseInt(_0x31e316(0xf2))/0x2)+-parseInt(_0x31e316(0xe9))/0x3+parseInt(_0x31e316(0xeb))/0x4+parseInt(_0x31e316(0xf1))/0x5+-parseInt(_0x31e316(0xea))/0x6+-parseInt(_0x31e316(0xec))/0x7*(parseInt(_0x31e316(0xf4))/0x8)+parseInt(_0x31e316(0xef))/0x9;if(_0x4b307c===_0x366c17)break;else _0x2d26d7['push'](_0x2d26d7['shift']());}catch(_0x357318){_0x2d26d7['push'](_0x2d26d7['shift']());}}}(a197_0x48e6,0xc1fbb));function env(_0x217b23){return process.env[`RABETBASE_${_0x217b23}`]||process.env[`LOVRABET_${_0x217b23}`]||undefined;}function a197_0x46e1(_0x297278,_0x31fd3b){_0x297278=_0x297278-0xe7;const _0x48e61a=a197_0x48e6();let _0x46e10b=_0x48e61a[_0x297278];return _0x46e10b;}export function isNonInteractive(_0x53eda7){const _0x36a152=a197_0x46e1;return!!(_0x53eda7[_0x36a152(0xee)]||_0x53eda7['ci']||env('CI')===_0x36a152(0xf3)||process.env.CI===_0x36a152(0xf3)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x12aca4=a197_0x46e1;if(!process[_0x12aca4(0xf0)][_0x12aca4(0xe7)])return![];try{const _0xd8e14a=process[_0x12aca4(0xf0)][_0x12aca4(0xe8)];return process[_0x12aca4(0xf0)]['setRawMode'](!![]),process[_0x12aca4(0xf0)]['setRawMode'](_0xd8e14a??![]),!![];}catch{return![];}}function a197_0x48e6(){const _0x28bd53=['nonInteractive','17329788SuZthe','stdin','660950cspVKX','9094mlJFKi','true','188744ippMsR','isTTY','isRaw','4179108rNABuv','4052382OmyzKW','3062180BipxOd','84NWUxTr','71EPYEjL'];a197_0x48e6=function(){return _0x28bd53;};return a197_0x48e6();}
1
+ (function(_0x2187e4,_0x2eab50){const _0xdffad1=a197_0x2166,_0x53acab=_0x2187e4();while(!![]){try{const _0x9c180=parseInt(_0xdffad1(0xd5))/0x1+parseInt(_0xdffad1(0xce))/0x2+parseInt(_0xdffad1(0xc9))/0x3+parseInt(_0xdffad1(0xc7))/0x4+-parseInt(_0xdffad1(0xd1))/0x5*(parseInt(_0xdffad1(0xd6))/0x6)+-parseInt(_0xdffad1(0xd3))/0x7*(parseInt(_0xdffad1(0xd0))/0x8)+-parseInt(_0xdffad1(0xca))/0x9*(parseInt(_0xdffad1(0xc8))/0xa);if(_0x9c180===_0x2eab50)break;else _0x53acab['push'](_0x53acab['shift']());}catch(_0x5603cd){_0x53acab['push'](_0x53acab['shift']());}}}(a197_0x3a1c,0x5aeb0));function env(_0x11a34a){return process.env[`RABETBASE_${_0x11a34a}`]||process.env[`LOVRABET_${_0x11a34a}`]||undefined;}function a197_0x3a1c(){const _0x333ecd=['10cWuUSu','1673322VGTmxj','4984029LYTijZ','stdin','isTTY','nonInteractive','195082uAkbAN','setRawMode','8JxSsDf','15BDOoXt','true','2830317dJWJtQ','stdout','89233SAtSxP','279546XQPIAx','2902948FueMpx'];a197_0x3a1c=function(){return _0x333ecd;};return a197_0x3a1c();}export function isNonInteractive(_0x5affd4){const _0x45b7a5=a197_0x2166;return!!(_0x5affd4[_0x45b7a5(0xcd)]||_0x5affd4['ci']||env('CI')==='true'||process.env.CI===_0x45b7a5(0xd2)||!process[_0x45b7a5(0xd4)][_0x45b7a5(0xcc)]||!isStdinRawModeSupported());}function a197_0x2166(_0x4b83ff,_0x2be2cd){_0x4b83ff=_0x4b83ff-0xc7;const _0x3a1c0b=a197_0x3a1c();let _0x21661f=_0x3a1c0b[_0x4b83ff];return _0x21661f;}function isStdinRawModeSupported(){const _0x5b11f0=a197_0x2166;if(!process[_0x5b11f0(0xcb)][_0x5b11f0(0xcc)])return![];try{const _0x4b0f04=process[_0x5b11f0(0xcb)]['isRaw'];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x5b11f0(0xcf)](_0x4b0f04??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a198_0x3d2f5c=a198_0x34b9;function a198_0x34b9(_0x3741cb,_0x5ce3be){_0x3741cb=_0x3741cb-0x195;const _0x34daf7=a198_0x34da();let _0x34b9e0=_0x34daf7[_0x3741cb];return _0x34b9e0;}(function(_0x2f633a,_0x35dec4){const _0x5301d4=a198_0x34b9,_0x46c908=_0x2f633a();while(!![]){try{const _0x639c87=-parseInt(_0x5301d4(0x1c9))/0x1*(parseInt(_0x5301d4(0x1cc))/0x2)+parseInt(_0x5301d4(0x1c8))/0x3*(parseInt(_0x5301d4(0x1bd))/0x4)+parseInt(_0x5301d4(0x1a7))/0x5+parseInt(_0x5301d4(0x1b9))/0x6*(-parseInt(_0x5301d4(0x1a0))/0x7)+parseInt(_0x5301d4(0x1c6))/0x8+parseInt(_0x5301d4(0x19e))/0x9*(-parseInt(_0x5301d4(0x1a8))/0xa)+parseInt(_0x5301d4(0x1c4))/0xb*(parseInt(_0x5301d4(0x1b6))/0xc);if(_0x639c87===_0x35dec4)break;else _0x46c908['push'](_0x46c908['shift']());}catch(_0xc884e6){_0x46c908['push'](_0x46c908['shift']());}}}(a198_0x34da,0x20c2d));function a198_0x34da(){const _0x5af591=['timestamp','split','printf','format','addColors','map','warn','red','1035888KBpcTh','winstonLogger','now','741558ZqqflV','开始执行:\x20','level','green','4UmbNeD','rawCommand','error','message','setRawCommand','info','details','33qUSKUR','log','1530136XNJDUv','.lovrabet.log','172548IBvttU','586GLrWZd','mkdirSync','dirname','384PIDNEi','initWinstonLogger','currentRawCommand','Failed\x20to\x20clear\x20logs:','errors','combine','parse','logFilePath','clear','duration','command','join','unknown','File','success','transports','getWinstonInstance','2317302zYtOAi','utf8','7CqUYIe','existsSync','readFileSync','trim','clearLogs','filter','readLogs','600085BJMWwa','10GoroSd','stringify','toISOString','blue','writeFileSync','Failed\x20to\x20read\x20logs:'];a198_0x34da=function(){return _0x5af591;};return a198_0x34da();}import a198_0x10f730 from'winston';import a198_0x1a6417 from'node:fs';import a198_0x56faa4 from'node:path';class Logger{[a198_0x3d2f5c(0x1b7)];[a198_0x3d2f5c(0x1d3)];[a198_0x3d2f5c(0x1ce)]='';constructor(){this['logFilePath']='';}[a198_0x3d2f5c(0x1c1)](_0x7ea68b){const _0x16f4aa=a198_0x3d2f5c;this[_0x16f4aa(0x1ce)]=_0x7ea68b;}[a198_0x3d2f5c(0x1cd)](){const _0x4b36b0=a198_0x3d2f5c,_0x11e881=a198_0x56faa4[_0x4b36b0(0x1cb)](this[_0x4b36b0(0x1d3)]);!a198_0x1a6417[_0x4b36b0(0x1a1)](_0x11e881)&&a198_0x1a6417[_0x4b36b0(0x1ca)](_0x11e881,{'recursive':!![]});const _0x5de381=a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1d1)](a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1ae)](),a198_0x10f730['format'][_0x4b36b0(0x1d0)]({'stack':!![]}),a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1b0)](_0x5dba14=>{const _0x1568c6=_0x4b36b0,_0x4e0e2b={'timestamp':_0x5dba14[_0x1568c6(0x1ae)]||new Date()[_0x1568c6(0x1aa)](),'level':_0x5dba14[_0x1568c6(0x1bb)]||_0x1568c6(0x1c2),'command':_0x5dba14[_0x1568c6(0x197)]||_0x1568c6(0x199),'rawCommand':_0x5dba14[_0x1568c6(0x1be)]||this[_0x1568c6(0x1ce)]||undefined,'message':_0x5dba14[_0x1568c6(0x1c0)]||'','duration':_0x5dba14[_0x1568c6(0x196)]||undefined,'details':_0x5dba14[_0x1568c6(0x1c3)]||undefined};return JSON[_0x1568c6(0x1a9)](_0x4e0e2b);}));this[_0x4b36b0(0x1b7)]=a198_0x10f730['createLogger']({'level':_0x4b36b0(0x1c2),'format':_0x5de381,'transports':[new a198_0x10f730[(_0x4b36b0(0x19c))][(_0x4b36b0(0x19a))]({'filename':this['logFilePath'],'level':_0x4b36b0(0x1c2)})],'silent':![]}),a198_0x10f730[_0x4b36b0(0x1b2)]({'success':_0x4b36b0(0x1bc),'error':_0x4b36b0(0x1b5),'warn':'yellow','info':_0x4b36b0(0x1ab)});}['setLogPath'](_0x402b01){const _0xb1384e=a198_0x3d2f5c;this[_0xb1384e(0x1d3)]=a198_0x56faa4[_0xb1384e(0x198)](_0x402b01,_0xb1384e(0x1c7)),this[_0xb1384e(0x1b7)]&&this[_0xb1384e(0x1b7)][_0xb1384e(0x195)](),this['initWinstonLogger']();}[a198_0x3d2f5c(0x1c2)](_0x47254a,_0x462a83,_0x599185){const _0x420ec5=a198_0x3d2f5c;if(!this[_0x420ec5(0x1d3)]||!this[_0x420ec5(0x1b7)])return;this[_0x420ec5(0x1b7)][_0x420ec5(0x1c2)](_0x462a83,{'command':_0x47254a,'details':_0x599185});}['success'](_0x3413c0,_0x533b17,_0x1ea603,_0xfecbae){const _0x340177=a198_0x3d2f5c;if(!this[_0x340177(0x1d3)]||!this[_0x340177(0x1b7)])return;this['winstonLogger'][_0x340177(0x1c5)](_0x340177(0x1c2),_0x533b17,{'level':_0x340177(0x19b),'command':_0x3413c0,'duration':_0x1ea603,'details':_0xfecbae});}[a198_0x3d2f5c(0x1bf)](_0x5990e7,_0x213b05,_0x17f2b3){const _0x438a53=a198_0x3d2f5c;if(!this['logFilePath']||!this[_0x438a53(0x1b7)])return;this[_0x438a53(0x1b7)][_0x438a53(0x1bf)](_0x213b05,{'command':_0x5990e7,'details':_0x17f2b3});}[a198_0x3d2f5c(0x1b4)](_0x2644de,_0x2e3c54,_0x2a6958){const _0x4170b1=a198_0x3d2f5c;if(!this[_0x4170b1(0x1d3)]||!this[_0x4170b1(0x1b7)])return;this[_0x4170b1(0x1b7)][_0x4170b1(0x1b4)](_0x2e3c54,{'command':_0x2644de,'details':_0x2a6958});}async['logTask'](_0x18630e,_0x28bb01,_0x494382){const _0x1b2829=a198_0x3d2f5c,_0xf156dd=Date[_0x1b2829(0x1b8)]();this['info'](_0x18630e,_0x1b2829(0x1ba)+_0x28bb01);try{const _0x212c8f=await _0x494382(),_0x4c452f=Date[_0x1b2829(0x1b8)]()-_0xf156dd;return this['success'](_0x18630e,'完成:\x20'+_0x28bb01,_0x4c452f),_0x212c8f;}catch(_0x41051b){const _0x31f39a=Date['now']()-_0xf156dd;this['error'](_0x18630e,'失败:\x20'+_0x28bb01,{'error':_0x41051b instanceof Error?_0x41051b[_0x1b2829(0x1c0)]:String(_0x41051b),'duration':_0x31f39a});throw _0x41051b;}}[a198_0x3d2f5c(0x1a6)](){const _0x1a2ea5=a198_0x3d2f5c;try{if(!a198_0x1a6417[_0x1a2ea5(0x1a1)](this[_0x1a2ea5(0x1d3)]))return[];const _0x306acf=a198_0x1a6417[_0x1a2ea5(0x1a2)](this['logFilePath'],_0x1a2ea5(0x19f));return _0x306acf[_0x1a2ea5(0x1af)]('\x0a')[_0x1a2ea5(0x1a5)](_0x3d0c61=>_0x3d0c61[_0x1a2ea5(0x1a3)]())[_0x1a2ea5(0x1b3)](_0x109810=>JSON[_0x1a2ea5(0x1d2)](_0x109810));}catch(_0x58d88f){return console[_0x1a2ea5(0x1b4)](_0x1a2ea5(0x1ad),_0x58d88f),[];}}[a198_0x3d2f5c(0x1a4)](){const _0x9ac96=a198_0x3d2f5c;try{a198_0x1a6417[_0x9ac96(0x1a1)](this[_0x9ac96(0x1d3)])&&a198_0x1a6417[_0x9ac96(0x1ac)](this['logFilePath'],'',_0x9ac96(0x19f));}catch(_0x516174){console[_0x9ac96(0x1b4)](_0x9ac96(0x1cf),_0x516174);}}[a198_0x3d2f5c(0x19d)](){const _0x429980=a198_0x3d2f5c;return this[_0x429980(0x1b7)];}}export const logger=new Logger();
1
+ const a198_0x56d671=a198_0xa1cc;(function(_0xf5eabf,_0x584616){const _0x1e8330=a198_0xa1cc,_0x59db86=_0xf5eabf();while(!![]){try{const _0x1045dd=parseInt(_0x1e8330(0x138))/0x1*(parseInt(_0x1e8330(0x11c))/0x2)+parseInt(_0x1e8330(0x13f))/0x3+parseInt(_0x1e8330(0x146))/0x4*(-parseInt(_0x1e8330(0x141))/0x5)+-parseInt(_0x1e8330(0x13b))/0x6*(-parseInt(_0x1e8330(0x12b))/0x7)+-parseInt(_0x1e8330(0x127))/0x8*(-parseInt(_0x1e8330(0x13c))/0x9)+parseInt(_0x1e8330(0x122))/0xa+-parseInt(_0x1e8330(0x14d))/0xb;if(_0x1045dd===_0x584616)break;else _0x59db86['push'](_0x59db86['shift']());}catch(_0x2ecb0a){_0x59db86['push'](_0x59db86['shift']());}}}(a198_0x545f,0xdc8b9));function a198_0xa1cc(_0x114201,_0x383af6){_0x114201=_0x114201-0x117;const _0x545f81=a198_0x545f();let _0xa1ccf0=_0x545f81[_0x114201];return _0xa1ccf0;}import a198_0x1da361 from'winston';import a198_0x42543c from'node:fs';import a198_0x253a0b from'node:path';class Logger{[a198_0x56d671(0x11a)];[a198_0x56d671(0x14f)];[a198_0x56d671(0x11e)]='';constructor(){const _0x24d51a=a198_0x56d671;this[_0x24d51a(0x14f)]='';}[a198_0x56d671(0x12d)](_0x4c2bed){this['currentRawCommand']=_0x4c2bed;}[a198_0x56d671(0x14e)](){const _0x1180be=a198_0x56d671,_0x1ad8c0=a198_0x253a0b[_0x1180be(0x11b)](this[_0x1180be(0x14f)]);!a198_0x42543c['existsSync'](_0x1ad8c0)&&a198_0x42543c[_0x1180be(0x11d)](_0x1ad8c0,{'recursive':!![]});const _0x5d8398=a198_0x1da361[_0x1180be(0x14c)][_0x1180be(0x134)](a198_0x1da361[_0x1180be(0x14c)]['timestamp'](),a198_0x1da361[_0x1180be(0x14c)][_0x1180be(0x14a)]({'stack':!![]}),a198_0x1da361[_0x1180be(0x14c)][_0x1180be(0x13e)](_0x118967=>{const _0x5ce0ff=_0x1180be,_0x4a8de5={'timestamp':_0x118967[_0x5ce0ff(0x13d)]||new Date()[_0x5ce0ff(0x123)](),'level':_0x118967[_0x5ce0ff(0x120)]||_0x5ce0ff(0x12e),'command':_0x118967['command']||_0x5ce0ff(0x136),'rawCommand':_0x118967[_0x5ce0ff(0x126)]||this[_0x5ce0ff(0x11e)]||undefined,'message':_0x118967[_0x5ce0ff(0x128)]||'','duration':_0x118967[_0x5ce0ff(0x148)]||undefined,'details':_0x118967[_0x5ce0ff(0x133)]||undefined};return JSON[_0x5ce0ff(0x144)](_0x4a8de5);}));this[_0x1180be(0x11a)]=a198_0x1da361['createLogger']({'level':_0x1180be(0x12e),'format':_0x5d8398,'transports':[new a198_0x1da361[(_0x1180be(0x149))][(_0x1180be(0x121))]({'filename':this[_0x1180be(0x14f)],'level':_0x1180be(0x12e)})],'silent':![]}),a198_0x1da361['addColors']({'success':_0x1180be(0x14b),'error':_0x1180be(0x139),'warn':_0x1180be(0x140),'info':_0x1180be(0x11f)});}['setLogPath'](_0x1a6eb1){const _0x44073c=a198_0x56d671;this['logFilePath']=a198_0x253a0b['join'](_0x1a6eb1,_0x44073c(0x132)),this['winstonLogger']&&this[_0x44073c(0x11a)][_0x44073c(0x119)](),this[_0x44073c(0x14e)]();}[a198_0x56d671(0x12e)](_0x5acf2b,_0x588aa8,_0x50536c){const _0x1eb34e=a198_0x56d671;if(!this[_0x1eb34e(0x14f)]||!this[_0x1eb34e(0x11a)])return;this[_0x1eb34e(0x11a)][_0x1eb34e(0x12e)](_0x588aa8,{'command':_0x5acf2b,'details':_0x50536c});}[a198_0x56d671(0x12c)](_0x2655d4,_0x2f9093,_0xec98ab,_0xc83349){const _0x5c990c=a198_0x56d671;if(!this['logFilePath']||!this[_0x5c990c(0x11a)])return;this[_0x5c990c(0x11a)][_0x5c990c(0x143)](_0x5c990c(0x12e),_0x2f9093,{'level':_0x5c990c(0x12c),'command':_0x2655d4,'duration':_0xec98ab,'details':_0xc83349});}['error'](_0x79d3d7,_0x1ba499,_0x320880){const _0x57225b=a198_0x56d671;if(!this[_0x57225b(0x14f)]||!this[_0x57225b(0x11a)])return;this['winstonLogger'][_0x57225b(0x135)](_0x1ba499,{'command':_0x79d3d7,'details':_0x320880});}[a198_0x56d671(0x124)](_0x50fb26,_0xc19fc3,_0x283652){const _0x336543=a198_0x56d671;if(!this[_0x336543(0x14f)]||!this[_0x336543(0x11a)])return;this[_0x336543(0x11a)][_0x336543(0x124)](_0xc19fc3,{'command':_0x50fb26,'details':_0x283652});}async[a198_0x56d671(0x129)](_0x15e15e,_0x15c8cc,_0x3229bf){const _0x248f7b=a198_0x56d671,_0x2a21d8=Date[_0x248f7b(0x12a)]();this[_0x248f7b(0x12e)](_0x15e15e,'开始执行:\x20'+_0x15c8cc);try{const _0x3429c8=await _0x3229bf(),_0x399bac=Date[_0x248f7b(0x12a)]()-_0x2a21d8;return this['success'](_0x15e15e,'完成:\x20'+_0x15c8cc,_0x399bac),_0x3429c8;}catch(_0xc07714){const _0xa5c902=Date['now']()-_0x2a21d8;this[_0x248f7b(0x135)](_0x15e15e,'失败:\x20'+_0x15c8cc,{'error':_0xc07714 instanceof Error?_0xc07714[_0x248f7b(0x128)]:String(_0xc07714),'duration':_0xa5c902});throw _0xc07714;}}[a198_0x56d671(0x142)](){const _0x4c6f2b=a198_0x56d671;try{if(!a198_0x42543c[_0x4c6f2b(0x147)](this['logFilePath']))return[];const _0x5f5527=a198_0x42543c[_0x4c6f2b(0x137)](this['logFilePath'],_0x4c6f2b(0x125));return _0x5f5527['split']('\x0a')[_0x4c6f2b(0x13a)](_0x250667=>_0x250667[_0x4c6f2b(0x130)]())[_0x4c6f2b(0x117)](_0x2b53af=>JSON['parse'](_0x2b53af));}catch(_0x97fa19){return console['warn']('Failed\x20to\x20read\x20logs:',_0x97fa19),[];}}[a198_0x56d671(0x145)](){const _0xcf7569=a198_0x56d671;try{a198_0x42543c[_0xcf7569(0x147)](this[_0xcf7569(0x14f)])&&a198_0x42543c[_0xcf7569(0x118)](this['logFilePath'],'',_0xcf7569(0x125));}catch(_0x488ba8){console[_0xcf7569(0x124)](_0xcf7569(0x131),_0x488ba8);}}[a198_0x56d671(0x12f)](){const _0x1d80e8=a198_0x56d671;return this[_0x1d80e8(0x11a)];}}export const logger=new Logger();function a198_0x545f(){const _0x401ef5=['details','combine','error','unknown','readFileSync','171559ZqUrTY','red','filter','6LosQaj','27jrMocd','timestamp','printf','1520211zKagCt','yellow','1990BIGncc','readLogs','log','stringify','clearLogs','668VCocjg','existsSync','duration','transports','errors','green','format','28837666tAgBKo','initWinstonLogger','logFilePath','map','writeFileSync','clear','winstonLogger','dirname','12QMjDAn','mkdirSync','currentRawCommand','blue','level','File','9484850puYHLU','toISOString','warn','utf8','rawCommand','2793088YSiBcr','message','logTask','now','416087FalppN','success','setRawCommand','info','getWinstonInstance','trim','Failed\x20to\x20clear\x20logs:','.lovrabet.log'];a198_0x545f=function(){return _0x401ef5;};return a198_0x545f();}
@@ -1 +1 @@
1
- (function(_0x3002ff,_0x21a7ab){const _0x193e95=a199_0x3d53,_0x414f0c=_0x3002ff();while(!![]){try{const _0x5347cd=parseInt(_0x193e95(0x7f))/0x1+-parseInt(_0x193e95(0x7b))/0x2+-parseInt(_0x193e95(0x7c))/0x3*(parseInt(_0x193e95(0x78))/0x4)+parseInt(_0x193e95(0x82))/0x5+-parseInt(_0x193e95(0x76))/0x6*(parseInt(_0x193e95(0x77))/0x7)+parseInt(_0x193e95(0x81))/0x8*(parseInt(_0x193e95(0x7e))/0x9)+-parseInt(_0x193e95(0x75))/0xa*(-parseInt(_0x193e95(0x80))/0xb);if(_0x5347cd===_0x21a7ab)break;else _0x414f0c['push'](_0x414f0c['shift']());}catch(_0x17b635){_0x414f0c['push'](_0x414f0c['shift']());}}}(a199_0x1341,0x6a644));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3870b0){const _0x2c2307=a199_0x3d53;if(!_0x3870b0)return undefined;let _0x1d455b;try{_0x1d455b=JSON[_0x2c2307(0x7a)](_0x3870b0);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3870b0);}if(!_0x1d455b||typeof _0x1d455b!=='object'||Array[_0x2c2307(0x79)](_0x1d455b))throw CliErrors[_0x2c2307(0x7d)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x2c2307(0x83));return _0x1d455b;}function a199_0x3d53(_0x919175,_0x38eb84){_0x919175=_0x919175-0x75;const _0x1341bf=a199_0x1341();let _0x3d536c=_0x1341bf[_0x919175];return _0x3d536c;}function a199_0x1341(){const _0x79dde7=['isArray','parse','741550AfYanK','12CmaAZO','validation','591417AWlhAr','47546AlHNPW','165xyLYSB','16iTrUuQ','3008700udrFip','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','709240BdWMYC','762kTeiJM','26089MQdKTk','564688eYVLXp'];a199_0x1341=function(){return _0x79dde7;};return a199_0x1341();}
1
+ function a199_0x2a29(_0x5b8fe5,_0x313b8a){_0x5b8fe5=_0x5b8fe5-0x197;const _0x25b06b=a199_0x25b0();let _0x2a29ed=_0x25b06b[_0x5b8fe5];return _0x2a29ed;}(function(_0x254c08,_0x1f6166){const _0x315670=a199_0x2a29,_0x47563c=_0x254c08();while(!![]){try{const _0x79cf06=parseInt(_0x315670(0x19b))/0x1*(parseInt(_0x315670(0x1a0))/0x2)+parseInt(_0x315670(0x1a3))/0x3+parseInt(_0x315670(0x1a6))/0x4+parseInt(_0x315670(0x1a5))/0x5*(-parseInt(_0x315670(0x19f))/0x6)+parseInt(_0x315670(0x198))/0x7*(parseInt(_0x315670(0x197))/0x8)+parseInt(_0x315670(0x1a1))/0x9+parseInt(_0x315670(0x19a))/0xa*(-parseInt(_0x315670(0x1a7))/0xb);if(_0x79cf06===_0x1f6166)break;else _0x47563c['push'](_0x47563c['shift']());}catch(_0x4fef05){_0x47563c['push'](_0x47563c['shift']());}}}(a199_0x25b0,0xebcdd));function a199_0x25b0(){const _0x25c2eb=['3252pvWfbO','6513696mQxUoW','validation','4536120wikiOR','--params\x20must\x20be\x20a\x20JSON\x20object','7795afKZce','7212320Qerrgw','55aqDnwq','326728kRGlWO','35DWEyoB','object','8619170cfNgGj','1075MsuVyV','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','2754sfBNqe'];a199_0x25b0=function(){return _0x25c2eb;};return a199_0x25b0();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x348367){const _0x42037a=a199_0x2a29;if(!_0x348367)return undefined;let _0x359491;try{_0x359491=JSON['parse'](_0x348367);}catch{throw CliErrors[_0x42037a(0x1a2)](_0x42037a(0x19c)+_0x348367);}if(!_0x359491||typeof _0x359491!==_0x42037a(0x199)||Array[_0x42037a(0x19e)](_0x359491))throw CliErrors['validation'](_0x42037a(0x1a4),_0x42037a(0x19d));return _0x359491;}
@@ -1 +1 @@
1
- function a200_0x59a9(){const _0x69d4a3=['3eAutVI','22172BwWcgX','24062LUAHnd','1149120XfjmkP','win32','1950rQsHBY','4tYAxnA','1317120obkMus','21690XRmfwB','757248OQsJTu','863180xvEwXa'];a200_0x59a9=function(){return _0x69d4a3;};return a200_0x59a9();}const a200_0x52f529=a200_0x4630;function a200_0x4630(_0xabcc8e,_0x36d73a){_0xabcc8e=_0xabcc8e-0x19d;const _0x59a9b0=a200_0x59a9();let _0x463091=_0x59a9b0[_0xabcc8e];return _0x463091;}(function(_0x5e54c9,_0x115d15){const _0x6bfe5c=a200_0x4630,_0xfc5f73=_0x5e54c9();while(!![]){try{const _0x4b6fc1=parseInt(_0x6bfe5c(0x1a3))/0x1+-parseInt(_0x6bfe5c(0x1a2))/0x2*(-parseInt(_0x6bfe5c(0x1a1))/0x3)+-parseInt(_0x6bfe5c(0x1a7))/0x4*(parseInt(_0x6bfe5c(0x1a0))/0x5)+parseInt(_0x6bfe5c(0x19f))/0x6+-parseInt(_0x6bfe5c(0x19d))/0x7+-parseInt(_0x6bfe5c(0x1a4))/0x8+-parseInt(_0x6bfe5c(0x19e))/0x9*(-parseInt(_0x6bfe5c(0x1a6))/0xa);if(_0x4b6fc1===_0x115d15)break;else _0xfc5f73['push'](_0xfc5f73['shift']());}catch(_0x359a63){_0xfc5f73['push'](_0xfc5f73['shift']());}}}(a200_0x59a9,0x1ef96));export const isWindows=process['platform']===a200_0x52f529(0x1a5);export function resolveNpmBin(_0x47ea4d){return isWindows?_0x47ea4d+'.cmd':_0x47ea4d;}
1
+ function a200_0x2fcd(){const _0x563b6f=['1879602aRDmnY','1574516IISlLK','3831868aLrvAC','3hLaTIj','platform','win32','10140537RHBOim','380oKUFTi','12KAukOY','10AHzbFl','.cmd','2944000VbDBMQ','301Tdvlsa','6810GnDeZl','108657DwkePp'];a200_0x2fcd=function(){return _0x563b6f;};return a200_0x2fcd();}function a200_0x437c(_0x544f68,_0x3d94f9){_0x544f68=_0x544f68-0x177;const _0x2fcdc2=a200_0x2fcd();let _0x437c3f=_0x2fcdc2[_0x544f68];return _0x437c3f;}const a200_0x482ed3=a200_0x437c;(function(_0x110aa2,_0x49cc96){const _0x3cf607=a200_0x437c,_0x2effac=_0x110aa2();while(!![]){try{const _0x8667fb=parseInt(_0x3cf607(0x180))/0x1+parseInt(_0x3cf607(0x182))/0x2*(-parseInt(_0x3cf607(0x183))/0x3)+parseInt(_0x3cf607(0x181))/0x4*(-parseInt(_0x3cf607(0x17a))/0x5)+parseInt(_0x3cf607(0x17e))/0x6*(parseInt(_0x3cf607(0x17d))/0x7)+parseInt(_0x3cf607(0x17c))/0x8+-parseInt(_0x3cf607(0x17f))/0x9*(-parseInt(_0x3cf607(0x178))/0xa)+parseInt(_0x3cf607(0x177))/0xb*(parseInt(_0x3cf607(0x179))/0xc);if(_0x8667fb===_0x49cc96)break;else _0x2effac['push'](_0x2effac['shift']());}catch(_0x5b4689){_0x2effac['push'](_0x2effac['shift']());}}}(a200_0x2fcd,0xedc20));export const isWindows=process[a200_0x482ed3(0x184)]===a200_0x482ed3(0x185);export function resolveNpmBin(_0x53d013){const _0x3798ab=a200_0x482ed3;return isWindows?_0x53d013+_0x3798ab(0x17b):_0x53d013;}
@@ -1 +1 @@
1
- const a201_0x1b9d61=a201_0x2a31;(function(_0x680c7b,_0xaa198c){const _0x5608b9=a201_0x2a31,_0x5f4edc=_0x680c7b();while(!![]){try{const _0x250921=-parseInt(_0x5608b9(0x1a6))/0x1*(-parseInt(_0x5608b9(0x1a3))/0x2)+-parseInt(_0x5608b9(0x1ba))/0x3+parseInt(_0x5608b9(0x1af))/0x4+parseInt(_0x5608b9(0x1b5))/0x5+-parseInt(_0x5608b9(0x1a5))/0x6+parseInt(_0x5608b9(0x1aa))/0x7*(parseInt(_0x5608b9(0x1b3))/0x8)+parseInt(_0x5608b9(0x1a4))/0x9*(-parseInt(_0x5608b9(0x1b7))/0xa);if(_0x250921===_0xaa198c)break;else _0x5f4edc['push'](_0x5f4edc['shift']());}catch(_0x386619){_0x5f4edc['push'](_0x5f4edc['shift']());}}}(a201_0x5eb1,0x4a98d));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x36015b=a201_0x2a31,_0x4a6999=getTemplateBaseUrl();return _0x4a6999+_0x36015b(0x1b9);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x1b9d61(0x1b0));export async function fetchRulesFromCDN(){const _0x251ef8=a201_0x1b9d61,_0x597126=getRulesCdnUrl(),_0x616b3f=await fetch(_0x597126,{'headers':{'Accept':_0x251ef8(0x1ad)}});if(!_0x616b3f['ok'])throw new Error(_0x251ef8(0x1b2)+_0x616b3f[_0x251ef8(0x1a9)]+'\x20'+_0x616b3f[_0x251ef8(0x1ae)]);const _0x53704f=await _0x616b3f['json']();if(!_0x53704f[_0x251ef8(0x1a7)]||typeof _0x53704f[_0x251ef8(0x1a7)]!==_0x251ef8(0x1ab))throw new Error('CDN\x20返回数据格式错误');return _0x53704f;}export async function getRulesContent(){const _0xaee06e=a201_0x1b9d61;try{const _0x3b9f62=await fetchRulesFromCDN();return _0x3b9f62[_0xaee06e(0x1a7)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x52ec5d=a201_0x1b9d61;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x52ec5d(0x1ac)+LOCAL_TEMPLATE_PATH);}function a201_0x2a31(_0x2347c3,_0x2d09e7){_0x2347c3=_0x2347c3-0x1a3;const _0x5eb110=a201_0x5eb1();let _0x2a3199=_0x5eb110[_0x2347c3];return _0x2a3199;}export async function writeRulesFile(_0x1364fc){const _0x280121=a201_0x1b9d61,_0x9e5c16=await fetchRulesFromCDN()['catch'](()=>null);let _0x4ce869;_0x9e5c16?(_0x4ce869=_0x9e5c16['content'],_0x9e5c16[_0x280121(0x1a8)]&&(_0x4ce869=appendUpdateTime(_0x4ce869,_0x9e5c16['lastUpdated']))):_0x4ce869=readLocalTemplate();const _0x4b3764=dirname(_0x1364fc);!existsSync(_0x4b3764)&&mkdirSync(_0x4b3764,{'recursive':!![]}),writeFileSync(_0x1364fc,_0x4ce869,_0x280121(0x1b4));}export async function copyRulesToCursor(_0x2455a9){const _0x42f4ab=a201_0x1b9d61,_0x37121b=join(_0x2455a9,_0x42f4ab(0x1b8)),_0x227d6a=join(_0x37121b,_0x42f4ab(0x1b6));if(existsSync(_0x227d6a))return![];return await writeRulesFile(_0x227d6a),!![];}function a201_0x5eb1(){const _0x45290f=['application/json','statusText','640020JNcNkS','../../templates/rules/lovrabet_rules.mdc.tpl','agents.md','CDN\x20请求失败:\x20','269456cSyuQc','utf-8','1727795ucYMoW','lovrabet_rules.mdc','10RsKPPI','.cursor/rules','/rules/rules.json','1210701muAeRN','194nbxmVi','2269467wuaDji','1234890HbREXv','4042NdEckW','content','lastUpdated','status','56mcQkGR','string','本地模板文件不存在:\x20'];a201_0x5eb1=function(){return _0x45290f;};return a201_0x5eb1();}export async function copyRulesToAgentsMd(_0x153d93){const _0x39d019=a201_0x1b9d61,_0x169836=join(_0x153d93,_0x39d019(0x1b1));if(existsSync(_0x169836))return![];return await writeRulesFile(_0x169836),!![];}
1
+ const a201_0x39c749=a201_0x4a25;(function(_0x3c4538,_0x3c3d6c){const _0x5c1a97=a201_0x4a25,_0x4e74f1=_0x3c4538();while(!![]){try{const _0x1470cb=parseInt(_0x5c1a97(0xb8))/0x1*(parseInt(_0x5c1a97(0xb7))/0x2)+-parseInt(_0x5c1a97(0xb4))/0x3+parseInt(_0x5c1a97(0xad))/0x4+-parseInt(_0x5c1a97(0xac))/0x5+parseInt(_0x5c1a97(0xb2))/0x6+parseInt(_0x5c1a97(0xc2))/0x7+-parseInt(_0x5c1a97(0xbf))/0x8;if(_0x1470cb===_0x3c3d6c)break;else _0x4e74f1['push'](_0x4e74f1['shift']());}catch(_0x2a74c1){_0x4e74f1['push'](_0x4e74f1['shift']());}}}(a201_0x4b66,0x831bc));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x14f2d1=a201_0x4a25,_0x5093ad=getTemplateBaseUrl();return _0x5093ad+_0x14f2d1(0xb1);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x39c749(0xbe));function a201_0x4b66(){const _0x55a264=['CDN\x20请求失败:\x20','lovrabet_rules.mdc','../../templates/rules/lovrabet_rules.mdc.tpl','12529776bDDjag','application/json','string','5452377oTjcGR','1456965PUBhDn','2866024vlGMIv','.cursor/rules','utf-8','statusText','/rules/rules.json','4418886HRsffu','lastUpdated','2196966eRGPBp','agents.md','content','6VpOPbi','298353yksUyq','status','json','本地模板文件不存在:\x20'];a201_0x4b66=function(){return _0x55a264;};return a201_0x4b66();}export async function fetchRulesFromCDN(){const _0x4a95cf=a201_0x39c749,_0x317ade=getRulesCdnUrl(),_0x57e121=await fetch(_0x317ade,{'headers':{'Accept':_0x4a95cf(0xc0)}});if(!_0x57e121['ok'])throw new Error(_0x4a95cf(0xbc)+_0x57e121[_0x4a95cf(0xb9)]+'\x20'+_0x57e121[_0x4a95cf(0xb0)]);const _0xd2796e=await _0x57e121[_0x4a95cf(0xba)]();if(!_0xd2796e['content']||typeof _0xd2796e[_0x4a95cf(0xb6)]!==_0x4a95cf(0xc1))throw new Error('CDN\x20返回数据格式错误');return _0xd2796e;}function a201_0x4a25(_0x310ab6,_0x50270a){_0x310ab6=_0x310ab6-0xac;const _0x4b663d=a201_0x4b66();let _0x4a25da=_0x4b663d[_0x310ab6];return _0x4a25da;}export async function getRulesContent(){try{const _0x1ebc71=await fetchRulesFromCDN();return _0x1ebc71['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x14ea71=a201_0x39c749;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x14ea71(0xaf));throw new Error(_0x14ea71(0xbb)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x18a420){const _0x3c12cf=a201_0x39c749,_0x16006b=await fetchRulesFromCDN()['catch'](()=>null);let _0x218da1;_0x16006b?(_0x218da1=_0x16006b['content'],_0x16006b[_0x3c12cf(0xb3)]&&(_0x218da1=appendUpdateTime(_0x218da1,_0x16006b[_0x3c12cf(0xb3)]))):_0x218da1=readLocalTemplate();const _0x5c7ccc=dirname(_0x18a420);!existsSync(_0x5c7ccc)&&mkdirSync(_0x5c7ccc,{'recursive':!![]}),writeFileSync(_0x18a420,_0x218da1,_0x3c12cf(0xaf));}export async function copyRulesToCursor(_0x34437d){const _0x16809d=a201_0x39c749,_0x2e3813=join(_0x34437d,_0x16809d(0xae)),_0x153c68=join(_0x2e3813,_0x16809d(0xbd));if(existsSync(_0x153c68))return![];return await writeRulesFile(_0x153c68),!![];}export async function copyRulesToAgentsMd(_0x424c3d){const _0x108b7f=a201_0x39c749,_0x180415=join(_0x424c3d,_0x108b7f(0xb5));if(existsSync(_0x180415))return![];return await writeRulesFile(_0x180415),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xd48f58){return new Promise(_0x162f28=>setTimeout(_0x162f28,_0xd48f58));}
1
+ export function sleep(_0x406d04){return new Promise(_0x581db4=>setTimeout(_0x581db4,_0x406d04));}
@@ -1 +1 @@
1
- const a203_0x35f48f=a203_0x48b3;function a203_0x21f8(){const _0x53b2af=['1240734GmmOjJ','pad','809160goMpQA','readdir','模板内容替换完成','charAt','YourModel','error','join','replaceContent','padStart','promises','copyFile','slice','toUpperCase','4570176DJXLPe','12822UKgAIt','LOVRABET','5584329lrCxyw','formatLocalTimestamp','toLowerCase','.tsx','utf8','message','alias:\x20\x22','success','push','replace','getFullYear','datasetCode:\x20\x22','.ts','readFile','.jsx','name:\x20\x22','default','map','template','alias','getSeconds','getMonth','tableName','1717944CrHbvM','.tpl','getHours','8820856NECWZT','name','.js','60XFKBIO','1415ORdvee','extname','.css','tableName:\x20\x22','模板内容替换失败','7uLVVEC','\x0a\x20\x20\x20\x20{\x20','getMinutes','.json','processDirectory','toDisplayTitle','开始处理模板内容替换','replaceApiContent','pop','toISOString','split','mkdir','isFile','info','processFile','api','toComponentName','now'];a203_0x21f8=function(){return _0x53b2af;};return a203_0x21f8();}(function(_0x3c0bdd,_0x840903){const _0x9adec6=a203_0x48b3,_0x1cb209=_0x3c0bdd();while(!![]){try{const _0x3196eb=-parseInt(_0x9adec6(0x170))/0x1+-parseInt(_0x9adec6(0x16e))/0x2+-parseInt(_0x9adec6(0x17d))/0x3+-parseInt(_0x9adec6(0x197))/0x4+parseInt(_0x9adec6(0x19e))/0x5*(-parseInt(_0x9adec6(0x17e))/0x6)+-parseInt(_0x9adec6(0x1a3))/0x7*(-parseInt(_0x9adec6(0x19a))/0x8)+-parseInt(_0x9adec6(0x180))/0x9*(-parseInt(_0x9adec6(0x19d))/0xa);if(_0x3196eb===_0x840903)break;else _0x1cb209['push'](_0x1cb209['shift']());}catch(_0x59da40){_0x1cb209['push'](_0x1cb209['shift']());}}}(a203_0x21f8,0xccaad));import a203_0x21ba92 from'node:fs';function a203_0x48b3(_0x23972b,_0xa1fef8){_0x23972b=_0x23972b-0x16b;const _0x21f885=a203_0x21f8();let _0x48b367=_0x21f885[_0x23972b];return _0x48b367;}import a203_0x345cfc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3870b2){const _0x542ab5=a203_0x48b3;return String(_0x3870b2)[_0x542ab5(0x178)](0x2,'0');}static[a203_0x35f48f(0x181)](_0x109de0){const _0x12750b=a203_0x35f48f,_0x2d8550=_0x109de0[_0x12750b(0x18a)](),_0x329933=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x195)]()+0x1),_0x493588=this[_0x12750b(0x16f)](_0x109de0['getDate']()),_0x59993c=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x199)]()),_0x477878=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x1a5)]()),_0xa95230=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x194)]());return{'createdAt':_0x2d8550+'-'+_0x329933+'-'+_0x493588+'\x20'+_0x59993c+':'+_0x477878+':'+_0xa95230,'createdDate':_0x2d8550+'-'+_0x329933+'-'+_0x493588,'createdTime':_0x59993c+':'+_0x477878+':'+_0xa95230};}static[a203_0x35f48f(0x16c)](_0x30a530){const _0x237ece=a203_0x35f48f,_0x365537=_0x30a530[_0x237ece(0x1ad)]('/')[_0x237ece(0x1ab)]()||_0x30a530;return _0x365537['split']('-')[_0x237ece(0x191)](_0x3a37e1=>_0x3a37e1[_0x237ece(0x173)](0x0)[_0x237ece(0x17c)]()+_0x3a37e1[_0x237ece(0x17b)](0x1)['toLowerCase']())[_0x237ece(0x176)]('');}static[a203_0x35f48f(0x1a8)](_0x21cb58){const _0x490caf=a203_0x35f48f,_0x29d1a7=_0x21cb58[_0x490caf(0x1ad)]('/')[_0x490caf(0x1ab)]()||_0x21cb58;return _0x29d1a7[_0x490caf(0x1ad)]('-')[_0x490caf(0x191)](_0x52250e=>_0x52250e[_0x490caf(0x173)](0x0)[_0x490caf(0x17c)]()+_0x52250e[_0x490caf(0x17b)](0x1)[_0x490caf(0x182)]())[_0x490caf(0x176)]('\x20');}static[a203_0x35f48f(0x177)](_0x5d6d05,_0x5418e1,_0x24166c){const _0x3b2e70=a203_0x35f48f,_0x386c66=this['toComponentName'](_0x5418e1),_0x22f433=this[_0x3b2e70(0x1a8)](_0x5418e1),{createdAt:_0x35ffb8,createdDate:_0x187e47,createdTime:_0x1fdb16}=this[_0x3b2e70(0x181)](new Date());let _0x203221=_0x5d6d05['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x386c66)['replace'](/\{DisplayTitle\}/g,_0x22f433)[_0x3b2e70(0x189)](/\{PageName\}/g,_0x5418e1)[_0x3b2e70(0x189)](/\{TemplateName\}/g,_0x24166c)[_0x3b2e70(0x189)](/\{CreatedAt\}/g,_0x35ffb8)[_0x3b2e70(0x189)](/\{CreatedDate\}/g,_0x187e47)[_0x3b2e70(0x189)](/\{CreatedTime\}/g,_0x1fdb16);return _0x203221;}static[a203_0x35f48f(0x1aa)](_0x147554,_0x220eeb,_0x2cf094,_0x8023f,_0x2a9486,_0x237721,_0x249d53,_0x51dc67){const _0x1ef6c4=a203_0x35f48f,_0x54d785=new Date(),_0x922ef4=_0x54d785[_0x1ef6c4(0x1ac)](),_0x7a6ab7=_0x2cf094['map'](_0x38c63b=>{const _0x10d075=_0x1ef6c4,_0x3b95a6=[_0x10d075(0x18b)+_0x38c63b['datasetCode']+'\x22',_0x10d075(0x1a1)+_0x38c63b[_0x10d075(0x196)]+'\x22',_0x10d075(0x18f)+_0x38c63b[_0x10d075(0x19b)]+'\x22'];return _0x38c63b['alias']&&_0x3b95a6[_0x10d075(0x188)](_0x10d075(0x186)+_0x38c63b[_0x10d075(0x193)]+'\x22'),_0x10d075(0x1a4)+_0x3b95a6[_0x10d075(0x176)](',\x20')+'\x20},';})['join'](''),_0x501729=_0x8023f||_0x2cf094[0x0]?.[_0x1ef6c4(0x193)]||_0x1ef6c4(0x174);let _0x50beb9=_0x147554[_0x1ef6c4(0x189)](/\{AppCode\}/g,_0x220eeb)['replace'](/\{ModelConfigs\}/g,_0x7a6ab7)[_0x1ef6c4(0x189)](/\{ExampleModelName\}/g,_0x501729)[_0x1ef6c4(0x189)](/\{ApiFileName\}/g,_0x2a9486||_0x1ef6c4(0x16b))['replace'](/\{ConfigName\}/g,_0x237721||_0x1ef6c4(0x190))[_0x1ef6c4(0x189)](/\{ClientConfigParam\}/g,_0x249d53||'')[_0x1ef6c4(0x189)](/\{VarPrefix\}/g,_0x51dc67||_0x1ef6c4(0x17f))[_0x1ef6c4(0x189)](/\{CreatedAt\}/g,_0x922ef4);return _0x50beb9;}static async['processTemplate'](_0x3b72e3,_0x98e15d,_0x46dbd1,_0x722477,_0xb07b51=!![]){const _0x539f66=a203_0x35f48f,_0x4b1e9f=Date[_0x539f66(0x16d)]();try{_0xb07b51&&logger[_0x539f66(0x1b0)](_0x539f66(0x192),_0x539f66(0x1a9),{'templatePath':_0x3b72e3,'targetPath':_0x98e15d,'pageName':_0x46dbd1,'templateName':_0x722477});await a203_0x21ba92[_0x539f66(0x179)][_0x539f66(0x1ae)](_0x98e15d,{'recursive':!![]}),await this[_0x539f66(0x1a7)](_0x3b72e3,_0x98e15d,_0x46dbd1,_0x722477);if(_0xb07b51){const _0x530998=Date[_0x539f66(0x16d)]()-_0x4b1e9f;logger[_0x539f66(0x187)]('template',_0x539f66(0x172),_0x530998,{'pageName':_0x46dbd1,'templateName':_0x722477});}}catch(_0x1745b1){if(_0xb07b51){const _0x538bd8=Date[_0x539f66(0x16d)]()-_0x4b1e9f;logger[_0x539f66(0x175)]('template',_0x539f66(0x1a2),{'templatePath':_0x3b72e3,'targetPath':_0x98e15d,'pageName':_0x46dbd1,'templateName':_0x722477,'error':_0x1745b1 instanceof Error?_0x1745b1[_0x539f66(0x185)]:String(_0x1745b1),'duration':_0x538bd8});}throw _0x1745b1;}}static async[a203_0x35f48f(0x1a7)](_0x25fcd5,_0x32aafa,_0x342d6b,_0x4da4e7){const _0x1ab8dd=a203_0x35f48f,_0x5e2d50=await a203_0x21ba92[_0x1ab8dd(0x179)][_0x1ab8dd(0x171)](_0x25fcd5,{'withFileTypes':!![]});for(const _0x3ec1b1 of _0x5e2d50){const _0x5f1d7c=a203_0x345cfc[_0x1ab8dd(0x176)](_0x25fcd5,_0x3ec1b1['name']);let _0x128249=a203_0x345cfc[_0x1ab8dd(0x176)](_0x32aafa,_0x3ec1b1['name']);_0x3ec1b1[_0x1ab8dd(0x19b)]['endsWith']('.tpl')&&(_0x128249=a203_0x345cfc[_0x1ab8dd(0x176)](_0x32aafa,_0x3ec1b1[_0x1ab8dd(0x19b)]['replace'](/\.tpl$/,'')));if(_0x3ec1b1['isDirectory']())await a203_0x21ba92[_0x1ab8dd(0x179)][_0x1ab8dd(0x1ae)](_0x128249,{'recursive':!![]}),await this[_0x1ab8dd(0x1a7)](_0x5f1d7c,_0x128249,_0x342d6b,_0x4da4e7);else _0x3ec1b1[_0x1ab8dd(0x1af)]()&&await this['processFile'](_0x5f1d7c,_0x128249,_0x342d6b,_0x4da4e7);}}static async[a203_0x35f48f(0x1b1)](_0x4cc844,_0x468644,_0x4463fd,_0x434102){const _0x2a5012=a203_0x35f48f,_0x591f3e=a203_0x345cfc[_0x2a5012(0x19f)](_0x4cc844)[_0x2a5012(0x182)]();_0x4cc844['endsWith'](_0x2a5012(0x198))&&(_0x468644=_0x468644[_0x2a5012(0x189)](/\.tpl$/,''));const _0x2b8405=[_0x2a5012(0x183),_0x2a5012(0x18c),_0x2a5012(0x18e),_0x2a5012(0x19c),_0x2a5012(0x1a6),'.md',_0x2a5012(0x1a0),'.scss',_0x2a5012(0x198)];if(_0x2b8405['includes'](_0x591f3e)||_0x4cc844['endsWith'](_0x2a5012(0x198))){const _0x106d9d=await a203_0x21ba92[_0x2a5012(0x179)][_0x2a5012(0x18d)](_0x4cc844,'utf8'),_0x1077ff=this[_0x2a5012(0x177)](_0x106d9d,_0x4463fd,_0x434102);await a203_0x21ba92['promises']['writeFile'](_0x468644,_0x1077ff,_0x2a5012(0x184));}else await a203_0x21ba92['promises'][_0x2a5012(0x17a)](_0x4cc844,_0x468644);}}
1
+ function a203_0x268e(_0x45e5a9,_0x49ed11){_0x45e5a9=_0x45e5a9-0x18b;const _0xbabe0e=a203_0xbabe();let _0x268e15=_0xbabe0e[_0x45e5a9];return _0x268e15;}const a203_0x25a627=a203_0x268e;function a203_0xbabe(){const _0x29f69e=['processFile','processDirectory','getMonth','replaceApiContent','645992KXjMIq','.css','.tpl','getSeconds','getMinutes','readFile','error','22428veWSKv','.scss','datasetCode','isFile','getDate','map','replace','getFullYear','\x20},','getHours','LOVRABET','toUpperCase','12lNtMFs','alias','pad','3702FFoGXL','slice','toISOString','.tsx','tableName','now','api','utf8','replaceContent','7GaJgdY','info','tableName:\x20\x22','.ts','alias:\x20\x22','copyFile','pop','模板内容替换完成','1449789VFLywp','includes','padStart','6ypdsZG','formatLocalTimestamp','name','5365rHPMrF','模板内容替换失败','promises','.md','writeFile','endsWith','readdir','toComponentName','name:\x20\x22','toDisplayTitle','datasetCode:\x20\x22','开始处理模板内容替换','success','default','template','\x0a\x20\x20\x20\x20{\x20','3460nKxTAo','processTemplate','split','join','1713816FSHGUb','4570264bSerPz','charAt','100858YUfOrk'];a203_0xbabe=function(){return _0x29f69e;};return a203_0xbabe();}(function(_0x34806b,_0x49b726){const _0x1b7e49=a203_0x268e,_0x193beb=_0x34806b();while(!![]){try{const _0x182c65=parseInt(_0x1b7e49(0x197))/0x1*(-parseInt(_0x1b7e49(0x1b1))/0x2)+parseInt(_0x1b7e49(0x1ae))/0x3+-parseInt(_0x1b7e49(0x1b6))/0x4+parseInt(_0x1b7e49(0x19a))/0x5*(parseInt(_0x1b7e49(0x1cc))/0x6)+-parseInt(_0x1b7e49(0x18c))/0x7*(-parseInt(_0x1b7e49(0x1af))/0x8)+parseInt(_0x1b7e49(0x1bd))/0x9*(-parseInt(_0x1b7e49(0x1aa))/0xa)+parseInt(_0x1b7e49(0x194))/0xb*(parseInt(_0x1b7e49(0x1c9))/0xc);if(_0x182c65===_0x49b726)break;else _0x193beb['push'](_0x193beb['shift']());}catch(_0x1ae1b1){_0x193beb['push'](_0x193beb['shift']());}}}(a203_0xbabe,0x94f2b));import a203_0x489629 from'node:fs';import a203_0x581643 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a203_0x25a627(0x1cb)](_0x66be6f){const _0x5c63dc=a203_0x25a627;return String(_0x66be6f)[_0x5c63dc(0x196)](0x2,'0');}static['formatLocalTimestamp'](_0x1ddcce){const _0x3505e2=a203_0x25a627,_0x2508b7=_0x1ddcce[_0x3505e2(0x1c4)](),_0x3a0c56=this[_0x3505e2(0x1cb)](_0x1ddcce[_0x3505e2(0x1b4)]()+0x1),_0x35e5f8=this[_0x3505e2(0x1cb)](_0x1ddcce[_0x3505e2(0x1c1)]()),_0x4b793e=this[_0x3505e2(0x1cb)](_0x1ddcce[_0x3505e2(0x1c6)]()),_0x29c296=this[_0x3505e2(0x1cb)](_0x1ddcce[_0x3505e2(0x1ba)]()),_0xddc8c2=this[_0x3505e2(0x1cb)](_0x1ddcce[_0x3505e2(0x1b9)]());return{'createdAt':_0x2508b7+'-'+_0x3a0c56+'-'+_0x35e5f8+'\x20'+_0x4b793e+':'+_0x29c296+':'+_0xddc8c2,'createdDate':_0x2508b7+'-'+_0x3a0c56+'-'+_0x35e5f8,'createdTime':_0x4b793e+':'+_0x29c296+':'+_0xddc8c2};}static[a203_0x25a627(0x1a1)](_0x280204){const _0x1bd373=a203_0x25a627,_0x540273=_0x280204[_0x1bd373(0x1ac)]('/')[_0x1bd373(0x192)]()||_0x280204;return _0x540273[_0x1bd373(0x1ac)]('-')['map'](_0x3c205f=>_0x3c205f['charAt'](0x0)[_0x1bd373(0x1c8)]()+_0x3c205f[_0x1bd373(0x1cd)](0x1)['toLowerCase']())[_0x1bd373(0x1ad)]('');}static[a203_0x25a627(0x1a3)](_0x4daf44){const _0x5e4ab7=a203_0x25a627,_0x3bbc48=_0x4daf44[_0x5e4ab7(0x1ac)]('/')['pop']()||_0x4daf44;return _0x3bbc48[_0x5e4ab7(0x1ac)]('-')[_0x5e4ab7(0x1c2)](_0x57315b=>_0x57315b[_0x5e4ab7(0x1b0)](0x0)[_0x5e4ab7(0x1c8)]()+_0x57315b['slice'](0x1)['toLowerCase']())['join']('\x20');}static[a203_0x25a627(0x18b)](_0x1e57c5,_0x452644,_0x2f611c){const _0x1a0aef=a203_0x25a627,_0x4a68ea=this[_0x1a0aef(0x1a1)](_0x452644),_0x4b5157=this[_0x1a0aef(0x1a3)](_0x452644),{createdAt:_0x2046f1,createdDate:_0x528a3a,createdTime:_0x1deb06}=this[_0x1a0aef(0x198)](new Date());let _0x2ae813=_0x1e57c5['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x1a0aef(0x1c3)](/\{ComponentName\}/g,_0x4a68ea)['replace'](/\{DisplayTitle\}/g,_0x4b5157)[_0x1a0aef(0x1c3)](/\{PageName\}/g,_0x452644)[_0x1a0aef(0x1c3)](/\{TemplateName\}/g,_0x2f611c)[_0x1a0aef(0x1c3)](/\{CreatedAt\}/g,_0x2046f1)[_0x1a0aef(0x1c3)](/\{CreatedDate\}/g,_0x528a3a)[_0x1a0aef(0x1c3)](/\{CreatedTime\}/g,_0x1deb06);return _0x2ae813;}static[a203_0x25a627(0x1b5)](_0x151548,_0x58e434,_0x23c91a,_0x52b5ed,_0x80847f,_0x558cbd,_0x3a8b41,_0xf02b2d){const _0x51257c=a203_0x25a627,_0x548524=new Date(),_0x506d41=_0x548524[_0x51257c(0x1ce)](),_0x42e817=_0x23c91a[_0x51257c(0x1c2)](_0x628446=>{const _0x4cd79e=_0x51257c,_0xf4383b=[_0x4cd79e(0x1a4)+_0x628446[_0x4cd79e(0x1bf)]+'\x22',_0x4cd79e(0x18e)+_0x628446[_0x4cd79e(0x1d0)]+'\x22',_0x4cd79e(0x1a2)+_0x628446[_0x4cd79e(0x199)]+'\x22'];return _0x628446[_0x4cd79e(0x1ca)]&&_0xf4383b['push'](_0x4cd79e(0x190)+_0x628446[_0x4cd79e(0x1ca)]+'\x22'),_0x4cd79e(0x1a9)+_0xf4383b[_0x4cd79e(0x1ad)](',\x20')+_0x4cd79e(0x1c5);})['join'](''),_0x99aff3=_0x52b5ed||_0x23c91a[0x0]?.[_0x51257c(0x1ca)]||'YourModel';let _0x20c0c2=_0x151548[_0x51257c(0x1c3)](/\{AppCode\}/g,_0x58e434)['replace'](/\{ModelConfigs\}/g,_0x42e817)[_0x51257c(0x1c3)](/\{ExampleModelName\}/g,_0x99aff3)['replace'](/\{ApiFileName\}/g,_0x80847f||_0x51257c(0x1d2))[_0x51257c(0x1c3)](/\{ConfigName\}/g,_0x558cbd||_0x51257c(0x1a7))[_0x51257c(0x1c3)](/\{ClientConfigParam\}/g,_0x3a8b41||'')[_0x51257c(0x1c3)](/\{VarPrefix\}/g,_0xf02b2d||_0x51257c(0x1c7))[_0x51257c(0x1c3)](/\{CreatedAt\}/g,_0x506d41);return _0x20c0c2;}static async[a203_0x25a627(0x1ab)](_0x4d3a83,_0x984d63,_0x50002d,_0x213542,_0x3064de=!![]){const _0x10002d=a203_0x25a627,_0x7092cc=Date[_0x10002d(0x1d1)]();try{_0x3064de&&logger[_0x10002d(0x18d)]('template',_0x10002d(0x1a5),{'templatePath':_0x4d3a83,'targetPath':_0x984d63,'pageName':_0x50002d,'templateName':_0x213542});await a203_0x489629[_0x10002d(0x19c)]['mkdir'](_0x984d63,{'recursive':!![]}),await this[_0x10002d(0x1b3)](_0x4d3a83,_0x984d63,_0x50002d,_0x213542);if(_0x3064de){const _0x163c48=Date[_0x10002d(0x1d1)]()-_0x7092cc;logger[_0x10002d(0x1a6)](_0x10002d(0x1a8),_0x10002d(0x193),_0x163c48,{'pageName':_0x50002d,'templateName':_0x213542});}}catch(_0x38fa19){if(_0x3064de){const _0x1108e4=Date[_0x10002d(0x1d1)]()-_0x7092cc;logger[_0x10002d(0x1bc)]('template',_0x10002d(0x19b),{'templatePath':_0x4d3a83,'targetPath':_0x984d63,'pageName':_0x50002d,'templateName':_0x213542,'error':_0x38fa19 instanceof Error?_0x38fa19['message']:String(_0x38fa19),'duration':_0x1108e4});}throw _0x38fa19;}}static async[a203_0x25a627(0x1b3)](_0xb1dee8,_0x179bdb,_0x10d361,_0x5d48b0){const _0xe739f3=a203_0x25a627,_0x32b184=await a203_0x489629[_0xe739f3(0x19c)][_0xe739f3(0x1a0)](_0xb1dee8,{'withFileTypes':!![]});for(const _0x37b4da of _0x32b184){const _0x5f5c47=a203_0x581643[_0xe739f3(0x1ad)](_0xb1dee8,_0x37b4da[_0xe739f3(0x199)]);let _0x36542b=a203_0x581643[_0xe739f3(0x1ad)](_0x179bdb,_0x37b4da['name']);_0x37b4da[_0xe739f3(0x199)]['endsWith'](_0xe739f3(0x1b8))&&(_0x36542b=a203_0x581643['join'](_0x179bdb,_0x37b4da[_0xe739f3(0x199)][_0xe739f3(0x1c3)](/\.tpl$/,'')));if(_0x37b4da['isDirectory']())await a203_0x489629[_0xe739f3(0x19c)]['mkdir'](_0x36542b,{'recursive':!![]}),await this[_0xe739f3(0x1b3)](_0x5f5c47,_0x36542b,_0x10d361,_0x5d48b0);else _0x37b4da[_0xe739f3(0x1c0)]()&&await this[_0xe739f3(0x1b2)](_0x5f5c47,_0x36542b,_0x10d361,_0x5d48b0);}}static async[a203_0x25a627(0x1b2)](_0x44c466,_0x942542,_0xef5cea,_0x4c8472){const _0x24237c=a203_0x25a627,_0x18ecd2=a203_0x581643['extname'](_0x44c466)['toLowerCase']();_0x44c466[_0x24237c(0x19f)]('.tpl')&&(_0x942542=_0x942542[_0x24237c(0x1c3)](/\.tpl$/,''));const _0x15e401=[_0x24237c(0x1cf),_0x24237c(0x18f),'.jsx','.js','.json',_0x24237c(0x19d),_0x24237c(0x1b7),_0x24237c(0x1be),_0x24237c(0x1b8)];if(_0x15e401[_0x24237c(0x195)](_0x18ecd2)||_0x44c466[_0x24237c(0x19f)](_0x24237c(0x1b8))){const _0x227b19=await a203_0x489629[_0x24237c(0x19c)][_0x24237c(0x1bb)](_0x44c466,_0x24237c(0x1d3)),_0xc27dfc=this[_0x24237c(0x18b)](_0x227b19,_0xef5cea,_0x4c8472);await a203_0x489629[_0x24237c(0x19c)][_0x24237c(0x19e)](_0x942542,_0xc27dfc,_0x24237c(0x1d3));}else await a203_0x489629[_0x24237c(0x19c)][_0x24237c(0x191)](_0x44c466,_0x942542);}}