@lovrabet/rabetbase-cli 2.2.3-beta.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) 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/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- const a184_0xec3ffe=a184_0x1928;(function(_0x4b0585,_0x241b01){const _0x5eb8e0=a184_0x1928,_0x5557a8=_0x4b0585();while(!![]){try{const _0x160811=-parseInt(_0x5eb8e0(0x16d))/0x1*(-parseInt(_0x5eb8e0(0x162))/0x2)+-parseInt(_0x5eb8e0(0x16b))/0x3+-parseInt(_0x5eb8e0(0x163))/0x4*(parseInt(_0x5eb8e0(0x165))/0x5)+-parseInt(_0x5eb8e0(0x16c))/0x6+-parseInt(_0x5eb8e0(0x161))/0x7+parseInt(_0x5eb8e0(0x166))/0x8*(parseInt(_0x5eb8e0(0x15f))/0x9)+parseInt(_0x5eb8e0(0x16e))/0xa*(parseInt(_0x5eb8e0(0x170))/0xb);if(_0x160811===_0x241b01)break;else _0x5557a8['push'](_0x5557a8['shift']());}catch(_0x337c5b){_0x5557a8['push'](_0x5557a8['shift']());}}}(a184_0x1a82,0xe616b));function a184_0x1928(_0x5dc9a9,_0xe15ac){_0x5dc9a9=_0x5dc9a9-0x15e;const _0x1a8269=a184_0x1a82();let _0x1928d8=_0x1a8269[_0x5dc9a9];return _0x1928d8;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a184_0xec3ffe(0x16f);export const PLATFORM_ISSUE_SPAN_NAME=a184_0xec3ffe(0x167);function a184_0x1a82(){const _0x5e35cd=['join','5600541SyUTgc','995478VJrHWB','63HZnxzu','321730XDmcRB','platform-issue-log-collect','1694nhqitJ','originalBytes','4815qKIkcH','description','4140143vQEXZk','4202xeEkZf','1508sobiku','truncated','20845sQCjuG','768hrmDgt','issue.log.collect','redactionCount','sanitize'];a184_0x1a82=function(){return _0x5e35cd;};return a184_0x1a82();}export async function sendPlatformIssueCollectLog(_0x4e78c2){const _0x299bc1=a184_0xec3ffe;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4e78c2['title'],'issue.description':_0x4e78c2[_0x299bc1(0x160)],..._0x4e78c2[_0x299bc1(0x169)]?{'issue.description_original_bytes':_0x4e78c2['sanitize'][_0x299bc1(0x15e)],'issue.description_truncated':_0x4e78c2[_0x299bc1(0x169)][_0x299bc1(0x164)],'issue.description_redactions':_0x4e78c2[_0x299bc1(0x169)][_0x299bc1(0x168)],'issue.description_redaction_kinds':_0x4e78c2['sanitize']['redactionKinds'][_0x299bc1(0x16a)](',')}:{}}});}
1
+ const a184_0x30a705=a184_0x2a8a;(function(_0xe58852,_0xd901cd){const _0x5dd7f5=a184_0x2a8a,_0x2a15d9=_0xe58852();while(!![]){try{const _0x30cc0c=parseInt(_0x5dd7f5(0x17a))/0x1*(parseInt(_0x5dd7f5(0x17d))/0x2)+parseInt(_0x5dd7f5(0x16b))/0x3*(parseInt(_0x5dd7f5(0x176))/0x4)+parseInt(_0x5dd7f5(0x174))/0x5+parseInt(_0x5dd7f5(0x173))/0x6+-parseInt(_0x5dd7f5(0x17e))/0x7+parseInt(_0x5dd7f5(0x17b))/0x8+-parseInt(_0x5dd7f5(0x170))/0x9*(parseInt(_0x5dd7f5(0x17c))/0xa);if(_0x30cc0c===_0xd901cd)break;else _0x2a15d9['push'](_0x2a15d9['shift']());}catch(_0xc0886c){_0x2a15d9['push'](_0x2a15d9['shift']());}}}(a184_0x2ece,0x58bb8));function a184_0x2ece(){const _0xebf410=['2840825HQzJDW','truncated','265476NEruKN','originalBytes','platform-issue-log-collect','sanitize','149ssOInt','3447048DNKYNk','22816650QmlAFC','7978TvjLKe','764232ZxbcvD','24HZzfrq','description','redactionCount','redactionKinds','join','9fWAuSp','issue.log.collect','title','3779580xnCDzp'];a184_0x2ece=function(){return _0xebf410;};return a184_0x2ece();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a184_0x2a8a(_0x3add2b,_0x56eeef){_0x3add2b=_0x3add2b-0x16b;const _0x2ece67=a184_0x2ece();let _0x2a8a27=_0x2ece67[_0x3add2b];return _0x2a8a27;}export const PLATFORM_ISSUE_TRACE_NAME=a184_0x30a705(0x178);export const PLATFORM_ISSUE_SPAN_NAME=a184_0x30a705(0x171);export async function sendPlatformIssueCollectLog(_0x3b0c2f){const _0x3c2138=a184_0x30a705;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3b0c2f[_0x3c2138(0x172)],'issue.description':_0x3b0c2f[_0x3c2138(0x16c)],..._0x3b0c2f[_0x3c2138(0x179)]?{'issue.description_original_bytes':_0x3b0c2f['sanitize'][_0x3c2138(0x177)],'issue.description_truncated':_0x3b0c2f[_0x3c2138(0x179)][_0x3c2138(0x175)],'issue.description_redactions':_0x3b0c2f[_0x3c2138(0x179)][_0x3c2138(0x16d)],'issue.description_redaction_kinds':_0x3b0c2f['sanitize'][_0x3c2138(0x16e)][_0x3c2138(0x16f)](',')}:{}}});}
@@ -1 +1 @@
1
- const a186_0x370b56=a186_0x4e3e;(function(_0x19bfd3,_0x3ac8a8){const _0x502595=a186_0x4e3e,_0x3bbfb6=_0x19bfd3();while(!![]){try{const _0x14bf28=parseInt(_0x502595(0x182))/0x1*(parseInt(_0x502595(0x171))/0x2)+parseInt(_0x502595(0x176))/0x3*(parseInt(_0x502595(0x16f))/0x4)+parseInt(_0x502595(0x16a))/0x5*(parseInt(_0x502595(0x165))/0x6)+-parseInt(_0x502595(0x187))/0x7*(parseInt(_0x502595(0x168))/0x8)+-parseInt(_0x502595(0x16c))/0x9+parseInt(_0x502595(0x17f))/0xa+-parseInt(_0x502595(0x18e))/0xb;if(_0x14bf28===_0x3ac8a8)break;else _0x3bbfb6['push'](_0x3bbfb6['shift']());}catch(_0x5e9e22){_0x3bbfb6['push'](_0x3bbfb6['shift']());}}}(a186_0x51ad,0xd4c44));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a186_0x370b56(0x183),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a186_0x370b56(0x170)}]},'windsurf':{'name':'Windsurf','description':a186_0x370b56(0x164),'folders':[a186_0x370b56(0x16e)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x17c),'template':a186_0x370b56(0x170)}]},'claude':{'name':a186_0x370b56(0x17a),'description':'Claude\x20Code','folders':[a186_0x370b56(0x166)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x177),'template':a186_0x370b56(0x170)}]},'cline':{'name':a186_0x370b56(0x16b),'description':a186_0x370b56(0x15c),'folders':['.cline'],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x15a),'template':a186_0x370b56(0x170)}]},'codex':{'name':a186_0x370b56(0x179),'description':'Codex\x20IDE','folders':[a186_0x370b56(0x173)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x18f),'template':'SKILL.md.tpl'}]},'opencode':{'name':a186_0x370b56(0x160),'description':a186_0x370b56(0x169),'folders':[a186_0x370b56(0x167)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x17e),'template':a186_0x370b56(0x170)}]},'qoder':{'name':a186_0x370b56(0x185),'description':a186_0x370b56(0x162),'folders':['.qoder'],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x15e),'template':a186_0x370b56(0x170)},{'type':a186_0x370b56(0x18b),'path':'.qoder/skills/lovrabet/SKILL.md','template':a186_0x370b56(0x170)}]},'codebuddy':{'name':a186_0x370b56(0x16d),'description':a186_0x370b56(0x180),'folders':[a186_0x370b56(0x175)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x184),'template':'SKILL.md.tpl'}]},'trae':{'name':a186_0x370b56(0x188),'description':a186_0x370b56(0x186),'folders':['.trae'],'files':[{'type':a186_0x370b56(0x18b),'path':'.trae/skills/lovrabet/SKILL.md','template':a186_0x370b56(0x170)}]}};function a186_0x51ad(){const _0x265cf2=['3RilkYb','.claude/skills/lovrabet/SKILL.md','cursor','Codex','Claude\x20Code','.agent','.windsurf/workflows/rabetbase.md','antigravity','.opencode/skills/lovrabet/SKILL.md','17318110wbPOKX','CodeBuddy\x20IDE','codebuddy','1231534GAvPJP','.cursorrules','.codebuddy/skills/lovrabet/SKILL.md','Qoder','Trae\x20IDE','911946mDsnqH','Trae','opencode','Antigravity','file','cline','codex','12779426fpeADa','.codex/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.cline/skills/lovrabet/SKILL.md','agent','Cline\x20IDE','claude','.qoder/rules/rabetbase.md','其他\x20(通用模板)','OpenCode','windsurf','Qoder\x20IDE','qoder','Windsurf\x20IDE','1470znkhPY','.claude','.opencode','40YVGXnw','OpenCode\x20IDE','18985ENOtit','Cline','14064264MecOXu','CodeBuddy','.windsurf','1414936KKStOm','SKILL.md.tpl','2zQAEMZ','trae','.codex','.agent/skills/lovrabet/SKILL.md','.codebuddy'];a186_0x51ad=function(){return _0x265cf2;};return a186_0x51ad();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x370b56(0x15f),'description':'通用模板\x20-\x20兜底方案','folders':[a186_0x370b56(0x17b)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x174),'template':a186_0x370b56(0x170)}]},'antigravity':{'name':a186_0x370b56(0x18a),'description':a186_0x370b56(0x190),'folders':[a186_0x370b56(0x17b)],'files':[{'type':a186_0x370b56(0x18b),'path':a186_0x370b56(0x174),'template':a186_0x370b56(0x170)}]}};function a186_0x4e3e(_0x5d297a,_0xaefa86){_0x5d297a=_0x5d297a-0x15a;const _0x51ad83=a186_0x51ad();let _0x4e3e89=_0x51ad83[_0x5d297a];return _0x4e3e89;}export const CORE_IDE_LIST=[a186_0x370b56(0x15d),a186_0x370b56(0x18c),'codebuddy','codex','cursor',a186_0x370b56(0x189),a186_0x370b56(0x163),a186_0x370b56(0x172),'windsurf'];export const IDE_LIST=[a186_0x370b56(0x17d),a186_0x370b56(0x15d),a186_0x370b56(0x18c),a186_0x370b56(0x181),a186_0x370b56(0x18d),a186_0x370b56(0x178),a186_0x370b56(0x189),'qoder','trae',a186_0x370b56(0x161),a186_0x370b56(0x15b)];export const ALL_CORE_IDES=['cursor','windsurf',a186_0x370b56(0x15d),a186_0x370b56(0x18c),a186_0x370b56(0x18d),'opencode',a186_0x370b56(0x163),'codebuddy',a186_0x370b56(0x172)];
1
+ function a186_0x1d69(_0x265276,_0x38466c){_0x265276=_0x265276-0xeb;const _0x15a4fb=a186_0x15a4();let _0x1d6949=_0x15a4fb[_0x265276];return _0x1d6949;}function a186_0x15a4(){const _0x35636b=['.qoder','Antigravity','.cline','cursor','2695mUzDVz','Windsurf\x20IDE','6awotwo','7950uxUgPn','.claude','qoder','Qoder','cline','trae','356WYcIga','Cline\x20IDE','Cline','21287ioPBry','21023112aWsMCy','claude','4229334uEzFAk','antigravity','1924092zDctnX','file','.cursor/skills/rabetbase.md','codex','.codex/skills/lovrabet/SKILL.md','.codex','opencode','.qoder/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','codebuddy','4096ghSZqG','windsurf','Antigravity\x20IDE','.qoder/rules/rabetbase.md','Trae\x20IDE','.agent/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.windsurf','.cursorrules','.codebuddy/skills/lovrabet/SKILL.md','OpenCode','Codex','其他\x20(通用模板)','Trae','Cursor\x20IDE','.codebuddy','Codex\x20IDE','.agent','109540Qasltp','SKILL.md.tpl','agent','1yhBwBk','34212OUVPsx','.windsurf/workflows/rabetbase.md','Claude\x20Code','.trae/skills/lovrabet/SKILL.md','.trae'];a186_0x15a4=function(){return _0x35636b;};return a186_0x15a4();}const a186_0x3bf101=a186_0x1d69;(function(_0x147101,_0x40d294){const _0x4f5f81=a186_0x1d69,_0xaef483=_0x147101();while(!![]){try{const _0x19330b=-parseInt(_0x4f5f81(0x101))/0x1*(-parseInt(_0x4f5f81(0x11c))/0x2)+-parseInt(_0x4f5f81(0x102))/0x3*(parseInt(_0x4f5f81(0x114))/0x4)+parseInt(_0x4f5f81(0xfe))/0x5*(-parseInt(_0x4f5f81(0x10d))/0x6)+parseInt(_0x4f5f81(0x117))/0x7*(-parseInt(_0x4f5f81(0xec))/0x8)+parseInt(_0x4f5f81(0x11a))/0x9+-parseInt(_0x4f5f81(0x10e))/0xa*(-parseInt(_0x4f5f81(0x10b))/0xb)+parseInt(_0x4f5f81(0x118))/0xc;if(_0x19330b===_0x40d294)break;else _0xaef483['push'](_0xaef483['shift']());}catch(_0x1264d8){_0xaef483['push'](_0xaef483['shift']());}}}(a186_0x15a4,0xbf9b1));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a186_0x3bf101(0xfa),'folders':[a186_0x3bf101(0xf4),'.cursor'],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x11e),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a186_0x3bf101(0x10c),'folders':[a186_0x3bf101(0xf3)],'files':[{'type':'file','path':a186_0x3bf101(0x103),'template':a186_0x3bf101(0xff)}]},'claude':{'name':a186_0x3bf101(0x104),'description':a186_0x3bf101(0x104),'folders':[a186_0x3bf101(0x10f)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':a186_0x3bf101(0x116),'description':a186_0x3bf101(0x115),'folders':[a186_0x3bf101(0x109)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':a186_0x3bf101(0xf7),'description':a186_0x3bf101(0xfc),'folders':[a186_0x3bf101(0x121)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x120),'template':a186_0x3bf101(0xff)}]},'opencode':{'name':a186_0x3bf101(0xf6),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x124),'template':a186_0x3bf101(0xff)}]},'qoder':{'name':a186_0x3bf101(0x111),'description':'Qoder\x20IDE','folders':[a186_0x3bf101(0x107)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xef),'template':'SKILL.md.tpl'},{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x123),'template':a186_0x3bf101(0xff)}]},'codebuddy':{'name':'CodeBuddy','description':a186_0x3bf101(0xf2),'folders':[a186_0x3bf101(0xfb)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xf5),'template':a186_0x3bf101(0xff)}]},'trae':{'name':a186_0x3bf101(0xf9),'description':a186_0x3bf101(0xf0),'folders':[a186_0x3bf101(0x106)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0x105),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a186_0x3bf101(0xf8),'description':'通用模板\x20-\x20兜底方案','folders':[a186_0x3bf101(0xfd)],'files':[{'type':a186_0x3bf101(0x11d),'path':a186_0x3bf101(0xf1),'template':a186_0x3bf101(0xff)}]},'antigravity':{'name':a186_0x3bf101(0x108),'description':a186_0x3bf101(0xee),'folders':[a186_0x3bf101(0xfd)],'files':[{'type':a186_0x3bf101(0x11d),'path':'.agent/skills/lovrabet/SKILL.md','template':a186_0x3bf101(0xff)}]}};export const CORE_IDE_LIST=[a186_0x3bf101(0x119),a186_0x3bf101(0x112),'codebuddy','codex','cursor',a186_0x3bf101(0x122),a186_0x3bf101(0x110),'trae',a186_0x3bf101(0xed)];export const IDE_LIST=[a186_0x3bf101(0x11b),'claude',a186_0x3bf101(0x112),a186_0x3bf101(0xeb),a186_0x3bf101(0x11f),'cursor',a186_0x3bf101(0x122),'qoder',a186_0x3bf101(0x113),'windsurf',a186_0x3bf101(0x100)];export const ALL_CORE_IDES=[a186_0x3bf101(0x10a),a186_0x3bf101(0xed),'claude',a186_0x3bf101(0x112),a186_0x3bf101(0x11f),a186_0x3bf101(0x122),a186_0x3bf101(0x110),a186_0x3bf101(0xeb),'trae'];
@@ -1 +1 @@
1
- (function(_0x5d4fcb,_0x1d6534){const _0x2bf864=a187_0xe0fb,_0x153e1d=_0x5d4fcb();while(!![]){try{const _0x586000=-parseInt(_0x2bf864(0x112))/0x1+-parseInt(_0x2bf864(0x10d))/0x2+-parseInt(_0x2bf864(0x116))/0x3+parseInt(_0x2bf864(0x110))/0x4*(-parseInt(_0x2bf864(0x115))/0x5)+-parseInt(_0x2bf864(0x10f))/0x6*(parseInt(_0x2bf864(0x113))/0x7)+parseInt(_0x2bf864(0x114))/0x8+-parseInt(_0x2bf864(0x111))/0x9*(-parseInt(_0x2bf864(0x10e))/0xa);if(_0x586000===_0x1d6534)break;else _0x153e1d['push'](_0x153e1d['shift']());}catch(_0x161f0e){_0x153e1d['push'](_0x153e1d['shift']());}}}(a187_0x2ded,0xaf085));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a187_0xe0fb(_0x56eda5,_0x330c66){_0x56eda5=_0x56eda5-0x10d;const _0x2ded29=a187_0x2ded();let _0xe0fbd8=_0x2ded29[_0x56eda5];return _0xe0fbd8;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a187_0x2ded(){const _0x10de3f=['3174TlSfoH','160GUaTtI','27954zfaWtV','99056cQMaGg','2198kCzFJz','10894856uSOWMI','138825izKLdz','979935waSmwD','674222AULwez','4490AvokRk'];a187_0x2ded=function(){return _0x10de3f;};return a187_0x2ded();}
1
+ (function(_0x1c033f,_0x352247){const _0x167cfc=a187_0x5add,_0x265db5=_0x1c033f();while(!![]){try{const _0x31065c=parseInt(_0x167cfc(0xd4))/0x1*(parseInt(_0x167cfc(0xd7))/0x2)+-parseInt(_0x167cfc(0xd5))/0x3*(parseInt(_0x167cfc(0xd8))/0x4)+parseInt(_0x167cfc(0xd9))/0x5*(parseInt(_0x167cfc(0xce))/0x6)+parseInt(_0x167cfc(0xd2))/0x7*(parseInt(_0x167cfc(0xd0))/0x8)+parseInt(_0x167cfc(0xcf))/0x9+parseInt(_0x167cfc(0xd6))/0xa+-parseInt(_0x167cfc(0xd1))/0xb*(parseInt(_0x167cfc(0xd3))/0xc);if(_0x31065c===_0x352247)break;else _0x265db5['push'](_0x265db5['shift']());}catch(_0x21890a){_0x265db5['push'](_0x265db5['shift']());}}}(a187_0xa0c5,0xbd6ed));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a187_0x5add(_0x2ca7e3,_0x373e1a){_0x2ca7e3=_0x2ca7e3-0xce;const _0xa0c571=a187_0xa0c5();let _0x5add1f=_0xa0c571[_0x2ca7e3];return _0x5add1f;}import{CliErrors}from'../errors.js';function a187_0xa0c5(){const _0x11cf46=['6OJykqe','12965040aOdqHw','1491208zJOHEH','869aINjPe','49vObrxu','521124vohkYR','125924ipycvA','12GtpKGK','11572190eilMaS','8lbOMnB','1490864UEgAnD','6456160UbzxLq'];a187_0xa0c5=function(){return _0x11cf46;};return a187_0xa0c5();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5e971d,_0xd4dd2a){const _0x1451e6=a188_0x2492,_0x1584b9=_0x5e971d();while(!![]){try{const _0x4983a0=-parseInt(_0x1451e6(0x93))/0x1+parseInt(_0x1451e6(0x85))/0x2*(-parseInt(_0x1451e6(0x82))/0x3)+parseInt(_0x1451e6(0x89))/0x4+parseInt(_0x1451e6(0x8b))/0x5*(-parseInt(_0x1451e6(0x83))/0x6)+parseInt(_0x1451e6(0x88))/0x7*(-parseInt(_0x1451e6(0x86))/0x8)+-parseInt(_0x1451e6(0x92))/0x9*(parseInt(_0x1451e6(0x8f))/0xa)+parseInt(_0x1451e6(0x91))/0xb;if(_0x4983a0===_0xd4dd2a)break;else _0x1584b9['push'](_0x1584b9['shift']());}catch(_0x14795c){_0x1584b9['push'](_0x1584b9['shift']());}}}(a188_0x2adb,0x18e76));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x278aa0=a188_0x2492,_0x548325=getTemplateBaseUrl(),_0x540b7f=[_0x548325+_0x278aa0(0x8e),_0x548325+_0x278aa0(0x84)];for(const _0x32969f of _0x540b7f){try{const _0x1400c0=await fetch(_0x32969f,{'headers':{'Accept':'application/json'}});if(!_0x1400c0['ok'])continue;const _0x3b32b6=await _0x1400c0[_0x278aa0(0x8d)]();if(!_0x3b32b6[_0x278aa0(0x8c)]?.['stableVersion']||!_0x3b32b6[_0x278aa0(0x8a)]?.['node']?.[_0x278aa0(0x87)])continue;return _0x3b32b6;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2d8def=a188_0x2492,_0x57fd46=Date[_0x2d8def(0x90)]();if(hasCachedConfig){const _0x344d53=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x57fd46-cacheTime<_0x344d53)return cachedConfig;}const _0x4091fb=await fetchCdnConfig();return cachedConfig=_0x4091fb,cacheTime=_0x57fd46,hasCachedConfig=!![],_0x4091fb;}function a188_0x2adb(){const _0x5a5782=['7430sRoKNc','cli','json','/config.json','143400OHenOc','now','3664122tWWxNn','81UHFjxc','142243zHejRy','6qBuNgv','336fChSrW','/config/index.json','9624zbHyFD','262392rAxrYB','stableVersion','7DIGSQk','663384NsfJsh','sdk'];a188_0x2adb=function(){return _0x5a5782;};return a188_0x2adb();}function a188_0x2492(_0x2a3c5f,_0x2de166){_0x2a3c5f=_0x2a3c5f-0x82;const _0x2adb62=a188_0x2adb();let _0x2492ea=_0x2adb62[_0x2a3c5f];return _0x2492ea;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a188_0x5256(_0x49fedc,_0x1a86ab){_0x49fedc=_0x49fedc-0x8b;const _0x300c93=a188_0x300c();let _0x5256ed=_0x300c93[_0x49fedc];return _0x5256ed;}function a188_0x300c(){const _0x1e9d8c=['7zyXIMZ','6112FzovqI','/config/index.json','5YIxIaU','87272APgBzu','cli','json','3386364gyvkmi','stableVersion','node','16590530UKcYJh','application/json','11PGyPIR','423VxGPEj','3236240XeQuaM','453364QwnnyX','/config.json','now','4302312stLPdk','1170aoSPWv'];a188_0x300c=function(){return _0x1e9d8c;};return a188_0x300c();}(function(_0x5efd0f,_0x5c313b){const _0x28f167=a188_0x5256,_0x5b73ef=_0x5efd0f();while(!![]){try{const _0x2d6d12=-parseInt(_0x28f167(0x96))/0x1*(-parseInt(_0x28f167(0x8e))/0x2)+parseInt(_0x28f167(0x8c))/0x3*(-parseInt(_0x28f167(0x94))/0x4)+parseInt(_0x28f167(0x8d))/0x5+-parseInt(_0x28f167(0x9a))/0x6*(parseInt(_0x28f167(0x93))/0x7)+parseInt(_0x28f167(0x97))/0x8*(-parseInt(_0x28f167(0x92))/0x9)+-parseInt(_0x28f167(0x9d))/0xa*(-parseInt(_0x28f167(0x8b))/0xb)+-parseInt(_0x28f167(0x91))/0xc;if(_0x2d6d12===_0x5c313b)break;else _0x5b73ef['push'](_0x5b73ef['shift']());}catch(_0x3e5c37){_0x5b73ef['push'](_0x5b73ef['shift']());}}}(a188_0x300c,0xd79e5));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1d5dda=a188_0x5256,_0x4de39f=getTemplateBaseUrl(),_0x2996c0=[_0x4de39f+_0x1d5dda(0x8f),_0x4de39f+_0x1d5dda(0x95)];for(const _0x34ef12 of _0x2996c0){try{const _0x122cb4=await fetch(_0x34ef12,{'headers':{'Accept':_0x1d5dda(0x9e)}});if(!_0x122cb4['ok'])continue;const _0x3a36cc=await _0x122cb4[_0x1d5dda(0x99)]();if(!_0x3a36cc[_0x1d5dda(0x98)]?.[_0x1d5dda(0x9b)]||!_0x3a36cc['sdk']?.[_0x1d5dda(0x9c)]?.[_0x1d5dda(0x9b)])continue;return _0x3a36cc;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5290ff=a188_0x5256,_0x532451=Date[_0x5290ff(0x90)]();if(hasCachedConfig){const _0x2558e4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x532451-cacheTime<_0x2558e4)return cachedConfig;}const _0xa2b295=await fetchCdnConfig();return cachedConfig=_0xa2b295,cacheTime=_0x532451,hasCachedConfig=!![],_0xa2b295;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a189_0x542a(){const _0x22ed1a=['1440408gTRBUF','node','↪\x20SDK\x20update\x20available','package.json','@lovrabet/sdk','45SrmjXk','\x20\x20\x20Stable\x20version:\x20','join','parse','1.2.0','minVersion','529518CcbxnM','npm\x20install\x20','sdk','node_modules','existsSync','packageName','10740456prChzf','coerce','some','all','200272PAoMVz','latest','version','stableVersion','devDependencies','6994971QRainC','14MnKnpo','\x1b[33m','readFileSync','log','1110404ceYwuj','497439kBBvlb','\x1b[1m','test','utf8','\x20\x20\x20Current\x20version:\x20','\x1b[0m'];a189_0x542a=function(){return _0x22ed1a;};return a189_0x542a();}const a189_0x5923b5=a189_0x1645;(function(_0x5101a3,_0x15f704){const _0x3b0950=a189_0x1645,_0x361153=_0x5101a3();while(!![]){try{const _0x5010ae=parseInt(_0x3b0950(0x180))/0x1+parseInt(_0x3b0950(0x187))/0x2+parseInt(_0x3b0950(0x181))/0x3+-parseInt(_0x3b0950(0x176))/0x4*(parseInt(_0x3b0950(0x166))/0x5)+parseInt(_0x3b0950(0x16c))/0x6*(-parseInt(_0x3b0950(0x17c))/0x7)+-parseInt(_0x3b0950(0x172))/0x8+parseInt(_0x3b0950(0x17b))/0x9;if(_0x5010ae===_0x15f704)break;else _0x361153['push'](_0x361153['shift']());}catch(_0x1ed279){_0x361153['push'](_0x361153['shift']());}}}(a189_0x542a,0xc447d));function a189_0x1645(_0x4cb578,_0x31dfc){_0x4cb578=_0x4cb578-0x165;const _0x542a66=a189_0x542a();let _0x1645ec=_0x542a66[_0x4cb578];return _0x1645ec;}import a189_0x444fbb from'node:fs';import a189_0x294b27 from'node:path';import a189_0x154e05 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a189_0x5923b5(0x16a);function isNonNumericVersion(_0x482dce){const _0x143f68=a189_0x5923b5,_0x5c0237=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5c0237[_0x143f68(0x174)](_0x55b839=>_0x55b839[_0x143f68(0x183)](_0x482dce));}function getInstalledVersion(_0x4b67ed,_0x9452aa){const _0x1dad57=a189_0x5923b5;try{const _0x1ba3f9=a189_0x294b27[_0x1dad57(0x168)](_0x4b67ed,_0x1dad57(0x16f),_0x9452aa,_0x1dad57(0x18a));if(a189_0x444fbb['existsSync'](_0x1ba3f9)){const _0x4c41da=JSON[_0x1dad57(0x169)](a189_0x444fbb[_0x1dad57(0x17e)](_0x1ba3f9,'utf-8'));return _0x4c41da[_0x1dad57(0x178)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3a495b=a189_0x5923b5;try{const _0x471dd8=await getCdnConfig();return _0x471dd8?.[_0x3a495b(0x16e)]?.[_0x3a495b(0x188)]?.[_0x3a495b(0x179)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3d96d6=a189_0x5923b5;try{const _0x249613=await getCdnConfig();return _0x249613?.[_0x3d96d6(0x16e)]?.[_0x3d96d6(0x188)]?.[_0x3d96d6(0x171)]||_0x3d96d6(0x165);}catch{return _0x3d96d6(0x165);}}export async function checkSdkVersion(_0x1dbaae){const _0x135204=a189_0x5923b5,_0x2ae940=a189_0x294b27[_0x135204(0x168)](_0x1dbaae,'package.json'),[_0x32dd68,_0x254b7b]=await Promise[_0x135204(0x175)]([getSdkStableVersion(),getSdkPackageName()]),_0x1e5aa5=_0x32dd68||FALLBACK_MIN_SDK_VERSION;if(!a189_0x444fbb['existsSync'](_0x2ae940))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};try{const _0x2d787f=JSON[_0x135204(0x169)](a189_0x444fbb[_0x135204(0x17e)](_0x2ae940,_0x135204(0x184))),_0x3de1c0=_0x2d787f['dependencies']||{},_0x368b26=_0x2d787f[_0x135204(0x17a)]||{},_0xb9812d=_0x3de1c0[_0x254b7b]||_0x368b26[_0x254b7b];if(!_0xb9812d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};let _0x5bb10d=getInstalledVersion(_0x1dbaae,_0x254b7b);!_0x5bb10d&&(_0x5bb10d=_0xb9812d);if(isNonNumericVersion(_0xb9812d))return{'installed':!![],'version':_0x5bb10d,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};const _0x181eae=a189_0x154e05['coerce'](_0x5bb10d),_0xdcb81f=a189_0x154e05[_0x135204(0x173)](_0x1e5aa5),_0x5445dd=_0x181eae&&_0xdcb81f?a189_0x154e05['lt'](_0x181eae,_0xdcb81f):![];return{'installed':!![],'version':_0x5bb10d,'needsUpgrade':_0x5445dd,'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1e5aa5,'packageName':_0x254b7b,'stableVersion':_0x32dd68};}}export function checkSdkVersionSync(_0x2edbe1){const _0x2d6902=a189_0x5923b5,_0x53bc43=a189_0x294b27['join'](_0x2edbe1,_0x2d6902(0x18a)),_0x2a9416=_0x2d6902(0x165);if(!a189_0x444fbb[_0x2d6902(0x170)](_0x53bc43))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};try{const _0x2ce8ff=JSON[_0x2d6902(0x169)](a189_0x444fbb[_0x2d6902(0x17e)](_0x53bc43,_0x2d6902(0x184))),_0x18b1de=_0x2ce8ff['dependencies']||{},_0x4d0104=_0x2ce8ff['devDependencies']||{},_0x28df9a=_0x18b1de[_0x2a9416]||_0x4d0104[_0x2a9416];if(!_0x28df9a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};let _0x1f0456=getInstalledVersion(_0x2edbe1,_0x2a9416);!_0x1f0456&&(_0x1f0456=_0x28df9a);if(isNonNumericVersion(_0x28df9a))return{'installed':!![],'version':_0x1f0456,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};const _0x5449dc=a189_0x154e05['coerce'](_0x1f0456),_0x5dc2b1=_0x5449dc?a189_0x154e05['lt'](_0x5449dc,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1f0456,'needsUpgrade':_0x5dc2b1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a9416,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x28e5fe){const _0x174f96=a189_0x5923b5;if(!_0x28e5fe['needsUpgrade'])return;const _0x48ecc7=_0x174f96(0x17d),_0x363f2a=_0x174f96(0x186),_0x442581=_0x174f96(0x182),_0x206a86=_0x28e5fe[_0x174f96(0x171)]||'@lovrabet/sdk',_0x440fc3=_0x28e5fe[_0x174f96(0x179)]||_0x28e5fe[_0x174f96(0x16b)],_0x8c6645=_0x174f96(0x16d)+_0x206a86+'@'+(_0x440fc3||_0x174f96(0x177));console['log'](),console[_0x174f96(0x17f)](''+_0x48ecc7+_0x442581+_0x174f96(0x189)+_0x363f2a),console[_0x174f96(0x17f)](_0x48ecc7+_0x174f96(0x185)+_0x206a86+'@'+_0x28e5fe['version']+_0x363f2a),console[_0x174f96(0x17f)](_0x48ecc7+_0x174f96(0x167)+_0x440fc3+_0x363f2a),console['log'](_0x48ecc7+'\x20\x20\x20Upgrade\x20command:\x20'+_0x8c6645+_0x363f2a),console[_0x174f96(0x17f)]();}
1
+ const a189_0x4cc615=a189_0xb71b;(function(_0xfeac2f,_0x26ac0f){const _0xc6ae3e=a189_0xb71b,_0x3b6bf3=_0xfeac2f();while(!![]){try{const _0x429ef6=-parseInt(_0xc6ae3e(0x1e4))/0x1+parseInt(_0xc6ae3e(0x1f1))/0x2+-parseInt(_0xc6ae3e(0x1e9))/0x3+-parseInt(_0xc6ae3e(0x1dd))/0x4*(parseInt(_0xc6ae3e(0x1e5))/0x5)+-parseInt(_0xc6ae3e(0x1d6))/0x6+-parseInt(_0xc6ae3e(0x1e6))/0x7+parseInt(_0xc6ae3e(0x1d2))/0x8*(parseInt(_0xc6ae3e(0x1e2))/0x9);if(_0x429ef6===_0x26ac0f)break;else _0x3b6bf3['push'](_0x3b6bf3['shift']());}catch(_0x36e3c5){_0x3b6bf3['push'](_0x3b6bf3['shift']());}}}(a189_0x567e,0x83362));import a189_0x258cb7 from'node:fs';import a189_0x7dc271 from'node:path';import a189_0x50920a from'semver';function a189_0xb71b(_0x38222e,_0x1d907f){_0x38222e=_0x38222e-0x1d2;const _0x567e76=a189_0x567e();let _0xb71b86=_0x567e76[_0x38222e];return _0xb71b86;}function a189_0x567e(){const _0x592dd3=['\x1b[0m','devDependencies','3448080kRxZMY','\x20\x20\x20Upgrade\x20command:\x20','parse','utf8','latest','all','readFileSync','94196BqaUDH','minVersion','utf-8','coerce','test','9999JCvbqb','needsUpgrade','390363puXebA','25BzZJps','668129SXgbeW','\x20\x20\x20Current\x20version:\x20','version','2726199gnbXRP','package.json','\x1b[33m','1.2.0','join','dependencies','stableVersion','@lovrabet/sdk','713718ChzpEc','↪\x20SDK\x20update\x20available','\x1b[1m','some','node_modules','sdk','node','npm\x20install\x20','existsSync','16328noxxfZ','log'];a189_0x567e=function(){return _0x592dd3;};return a189_0x567e();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a189_0x4cc615(0x1ec);function isNonNumericVersion(_0x1cc5e8){const _0x3a12dc=a189_0x4cc615,_0xaf98da=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xaf98da[_0x3a12dc(0x1f4)](_0x55619b=>_0x55619b[_0x3a12dc(0x1e1)](_0x1cc5e8));}function getInstalledVersion(_0x6d9459,_0x3a2016){const _0x4c4ac9=a189_0x4cc615;try{const _0x56ab98=a189_0x7dc271[_0x4c4ac9(0x1ed)](_0x6d9459,_0x4c4ac9(0x1f5),_0x3a2016,_0x4c4ac9(0x1ea));if(a189_0x258cb7['existsSync'](_0x56ab98)){const _0x5dc872=JSON[_0x4c4ac9(0x1d8)](a189_0x258cb7[_0x4c4ac9(0x1dc)](_0x56ab98,_0x4c4ac9(0x1df)));return _0x5dc872[_0x4c4ac9(0x1e8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x52d5a2=a189_0x4cc615;try{const _0x1014fe=await getCdnConfig();return _0x1014fe?.['sdk']?.['node']?.[_0x52d5a2(0x1ef)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x9e8a04=a189_0x4cc615;try{const _0x1b218e=await getCdnConfig();return _0x1b218e?.[_0x9e8a04(0x1f6)]?.[_0x9e8a04(0x1f7)]?.['packageName']||_0x9e8a04(0x1f0);}catch{return _0x9e8a04(0x1f0);}}export async function checkSdkVersion(_0x239aff){const _0x51d891=a189_0x4cc615,_0x4390ff=a189_0x7dc271[_0x51d891(0x1ed)](_0x239aff,_0x51d891(0x1ea)),[_0x45106b,_0x52dff8]=await Promise[_0x51d891(0x1db)]([getSdkStableVersion(),getSdkPackageName()]),_0x76c930=_0x45106b||FALLBACK_MIN_SDK_VERSION;if(!a189_0x258cb7[_0x51d891(0x1f9)](_0x4390ff))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};try{const _0x4b329a=JSON[_0x51d891(0x1d8)](a189_0x258cb7[_0x51d891(0x1dc)](_0x4390ff,_0x51d891(0x1d9))),_0x1b315c=_0x4b329a[_0x51d891(0x1ee)]||{},_0x3da622=_0x4b329a[_0x51d891(0x1d5)]||{},_0xa31166=_0x1b315c[_0x52dff8]||_0x3da622[_0x52dff8];if(!_0xa31166)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};let _0x4868cf=getInstalledVersion(_0x239aff,_0x52dff8);!_0x4868cf&&(_0x4868cf=_0xa31166);if(isNonNumericVersion(_0xa31166))return{'installed':!![],'version':_0x4868cf,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};const _0x344c3f=a189_0x50920a[_0x51d891(0x1e0)](_0x4868cf),_0x5d568a=a189_0x50920a[_0x51d891(0x1e0)](_0x76c930),_0x24d6a0=_0x344c3f&&_0x5d568a?a189_0x50920a['lt'](_0x344c3f,_0x5d568a):![];return{'installed':!![],'version':_0x4868cf,'needsUpgrade':_0x24d6a0,'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x76c930,'packageName':_0x52dff8,'stableVersion':_0x45106b};}}export function checkSdkVersionSync(_0x2369db){const _0x2570c8=a189_0x4cc615,_0x52bbfa=a189_0x7dc271[_0x2570c8(0x1ed)](_0x2369db,'package.json'),_0x23a374=_0x2570c8(0x1f0);if(!a189_0x258cb7['existsSync'](_0x52bbfa))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};try{const _0x3b0a69=JSON[_0x2570c8(0x1d8)](a189_0x258cb7[_0x2570c8(0x1dc)](_0x52bbfa,_0x2570c8(0x1d9))),_0x97b881=_0x3b0a69[_0x2570c8(0x1ee)]||{},_0x3d56e2=_0x3b0a69[_0x2570c8(0x1d5)]||{},_0x51335e=_0x97b881[_0x23a374]||_0x3d56e2[_0x23a374];if(!_0x51335e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};let _0x4a745c=getInstalledVersion(_0x2369db,_0x23a374);!_0x4a745c&&(_0x4a745c=_0x51335e);if(isNonNumericVersion(_0x51335e))return{'installed':!![],'version':_0x4a745c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};const _0x18c51e=a189_0x50920a[_0x2570c8(0x1e0)](_0x4a745c),_0x2c9661=_0x18c51e?a189_0x50920a['lt'](_0x18c51e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4a745c,'needsUpgrade':_0x2c9661,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x23a374,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x48cf76){const _0x4b0283=a189_0x4cc615;if(!_0x48cf76[_0x4b0283(0x1e3)])return;const _0x585f5d=_0x4b0283(0x1eb),_0x274fd8=_0x4b0283(0x1d4),_0x5c939a=_0x4b0283(0x1f3),_0x172b99=_0x48cf76['packageName']||_0x4b0283(0x1f0),_0x161e10=_0x48cf76[_0x4b0283(0x1ef)]||_0x48cf76[_0x4b0283(0x1de)],_0x3d806d=_0x4b0283(0x1f8)+_0x172b99+'@'+(_0x161e10||_0x4b0283(0x1da));console[_0x4b0283(0x1d3)](),console[_0x4b0283(0x1d3)](''+_0x585f5d+_0x5c939a+_0x4b0283(0x1f2)+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+_0x4b0283(0x1e7)+_0x172b99+'@'+_0x48cf76[_0x4b0283(0x1e8)]+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+'\x20\x20\x20Stable\x20version:\x20'+_0x161e10+_0x274fd8),console[_0x4b0283(0x1d3)](_0x585f5d+_0x4b0283(0x1d7)+_0x3d806d+_0x274fd8),console['log']();}
@@ -1 +1 @@
1
- (function(_0x121d5c,_0x3458a9){const _0x3e48f0=a190_0x392e,_0x5bf8fe=_0x121d5c();while(!![]){try{const _0x5c1f79=-parseInt(_0x3e48f0(0xb4))/0x1+parseInt(_0x3e48f0(0xa2))/0x2*(parseInt(_0x3e48f0(0xb3))/0x3)+-parseInt(_0x3e48f0(0x9c))/0x4*(parseInt(_0x3e48f0(0xa1))/0x5)+-parseInt(_0x3e48f0(0x96))/0x6+parseInt(_0x3e48f0(0xb5))/0x7+-parseInt(_0x3e48f0(0x95))/0x8+-parseInt(_0x3e48f0(0xb1))/0x9;if(_0x5c1f79===_0x3458a9)break;else _0x5bf8fe['push'](_0x5bf8fe['shift']());}catch(_0x574058){_0x5bf8fe['push'](_0x5bf8fe['shift']());}}}(a190_0x3724,0x2b8fa));function a190_0x3724(){const _0x3b32b6=['log','version','join','Upgrade\x20command:\x20','parse','477216mPScfH','npm\x20install\x20-g\x20','236244TGmqRd','22988kMIcmC','2069592KUDUyP','\x1b[33m','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20','filter','\x20\x20\x20Current\x20CLI\x20version:\x20','utf-8','Minimum\x20supported:\x20','199688iEWvaI','205866ZGLmPv','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Stable\x20version:\x20','validation','1.0.0','593876cjYOlP','minimumVersion','minimumVersionMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','needsUpgrade','10UQJIXb','8XmTIwW','\x1b[31m','stableVersion','Current\x20version:\x20','package.json','\x1b[1m','coerce','belowMinimum','↪\x20New\x20version\x20available','upgradeMessage'];a190_0x3724=function(){return _0x3b32b6;};return a190_0x3724();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a190_0x59f976 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a190_0x392e(_0x54d74f,_0x413c89){_0x54d74f=_0x54d74f-0x91;const _0x37243e=a190_0x3724();let _0x392e59=_0x37243e[_0x54d74f];return _0x392e59;}export function getCliUpgradeCommand(_0x40beab){const _0x3d6bfd=a190_0x392e,_0x98dad9=_0x40beab['stableVersion']||'latest';return _0x3d6bfd(0xb2)+NPM_PACKAGE_NAME+'@'+_0x98dad9;}function getCurrentCliVersion(){const _0x101eec=a190_0x392e;try{const _0x330b95=fileURLToPath(import.meta.url),_0x57329c=resolve(dirname(_0x330b95),'../..'),_0x456f96=resolve(_0x57329c,_0x101eec(0xa6)),_0x3ce058=JSON[_0x101eec(0xb0)](readFileSync(_0x456f96,_0x101eec(0x93)));return _0x3ce058[_0x101eec(0xad)]||_0x101eec(0x9b);}catch{return _0x101eec(0x9b);}}export async function checkCliVersion(){const _0xb75b66=a190_0x392e,_0xe0d4c=getCurrentCliVersion(),_0x5287fa=await getCliVersionPolicy(),_0x199b79=_0x5287fa?.[_0xb75b66(0xa4)]||null,_0xb02158=_0x5287fa?.[_0xb75b66(0x9d)]||null;let _0x46ca9b=![],_0x47ddd3=![];const _0x3b8eea=a190_0x59f976[_0xb75b66(0xa8)](_0xe0d4c);if(_0x3b8eea&&_0x199b79)try{const _0x599ea9=a190_0x59f976['coerce'](_0x199b79);if(_0x599ea9)_0x46ca9b=a190_0x59f976['lt'](_0x3b8eea,_0x599ea9);}catch{}if(_0x3b8eea&&_0xb02158)try{const _0x49c728=a190_0x59f976['coerce'](_0xb02158);if(_0x49c728)_0x47ddd3=a190_0x59f976['lt'](_0x3b8eea,_0x49c728);}catch{}return _0x47ddd3&&(_0x46ca9b=!![]),{'currentVersion':_0xe0d4c,'stableVersion':_0x199b79,'minimumVersion':_0xb02158,'needsUpgrade':_0x46ca9b,'belowMinimum':_0x47ddd3,'isPreRelease':![],'upgradeMessage':_0x5287fa?.[_0xb75b66(0xab)],'minimumVersionMessage':_0x5287fa?.[_0xb75b66(0x9e)]};}export function printCliUpgradeWarning(_0x420e27){const _0x551728=a190_0x392e;if(!_0x420e27[_0x551728(0xa0)]&&!_0x420e27[_0x551728(0xa9)])return;const _0x416354=_0x551728(0xa3),_0x5e46dc=_0x551728(0xb6),_0x5543b3='\x1b[0m',_0x2111b4=_0x551728(0xa7),_0x5a7b5f=getCliUpgradeCommand(_0x420e27);console['log'](),_0x420e27[_0x551728(0xa9)]?(console[_0x551728(0xac)](''+_0x416354+_0x2111b4+_0x551728(0x9f)+_0x5543b3),console[_0x551728(0xac)](_0x416354+_0x551728(0x92)+_0x420e27['currentVersion']+_0x5543b3),_0x420e27['minimumVersion']&&console['log'](_0x416354+_0x551728(0xb7)+_0x420e27['minimumVersion']+_0x5543b3),_0x420e27[_0x551728(0xa4)]&&_0x420e27[_0x551728(0xa4)]!==_0x420e27[_0x551728(0x9d)]&&console['log'](_0x416354+_0x551728(0x98)+_0x420e27[_0x551728(0xa4)]+_0x5543b3),_0x420e27[_0x551728(0x9e)]&&console[_0x551728(0xac)](_0x416354+_0x551728(0xb8)+_0x420e27[_0x551728(0x9e)]+_0x5543b3),console['log'](_0x416354+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5a7b5f+_0x5543b3)):(console['log'](''+_0x5e46dc+_0x2111b4+_0x551728(0xaa)+_0x5543b3),console['log'](_0x5e46dc+_0x551728(0x92)+_0x420e27['currentVersion']+_0x5543b3),console[_0x551728(0xac)](_0x5e46dc+_0x551728(0x99)+_0x420e27[_0x551728(0xa4)]+_0x5543b3),_0x420e27[_0x551728(0xab)]&&console[_0x551728(0xac)](_0x5e46dc+_0x551728(0xb8)+_0x420e27[_0x551728(0xab)]+_0x5543b3),console[_0x551728(0xac)](_0x5e46dc+_0x551728(0x97)+_0x5a7b5f+_0x5543b3)),console[_0x551728(0xac)]();}export function assertCliVersionSupported(_0x5f3de4){const _0x5ef81e=a190_0x392e;if(!_0x5f3de4[_0x5ef81e(0xa9)])return;const _0x2817d0=[_0x5f3de4['minimumVersionMessage'],_0x5ef81e(0xa5)+_0x5f3de4['currentVersion'],_0x5f3de4[_0x5ef81e(0x9d)]?_0x5ef81e(0x94)+_0x5f3de4['minimumVersion']:null,_0x5ef81e(0xaf)+getCliUpgradeCommand(_0x5f3de4)][_0x5ef81e(0x91)](Boolean)[_0x5ef81e(0xae)]('\x0a');throw CliErrors[_0x5ef81e(0x9a)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x2817d0);}
1
+ (function(_0x46090e,_0x800ae2){const _0x445c14=a190_0x39d6,_0x552975=_0x46090e();while(!![]){try{const _0xe17d51=-parseInt(_0x445c14(0xf9))/0x1*(-parseInt(_0x445c14(0xe7))/0x2)+parseInt(_0x445c14(0xed))/0x3*(parseInt(_0x445c14(0xf8))/0x4)+parseInt(_0x445c14(0x103))/0x5+-parseInt(_0x445c14(0xec))/0x6+-parseInt(_0x445c14(0xde))/0x7*(-parseInt(_0x445c14(0xf0))/0x8)+-parseInt(_0x445c14(0xfc))/0x9*(-parseInt(_0x445c14(0xef))/0xa)+-parseInt(_0x445c14(0xdc))/0xb;if(_0xe17d51===_0x800ae2)break;else _0x552975['push'](_0x552975['shift']());}catch(_0x180ba1){_0x552975['push'](_0x552975['shift']());}}}(a190_0x17ed,0x8f8ed));import{readFileSync}from'node:fs';function a190_0x39d6(_0x5175cb,_0x126ba6){_0x5175cb=_0x5175cb-0xda;const _0x17edf6=a190_0x17ed();let _0x39d6c8=_0x17edf6[_0x5175cb];return _0x39d6c8;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a190_0x35cc2e from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a190_0x17ed(){const _0x53a7b7=['\x20\x20\x20','parse','join','npm\x20install\x20-g\x20','\x20\x20\x20Recommended\x20stable:\x20','package.json','currentVersion','log','2xTGSVb','\x1b[33m','\x20\x20\x20Minimum\x20supported:\x20','↪\x20New\x20version\x20available','Upgrade\x20command:\x20','4870434riJlDc','3KhPhHy','\x20\x20\x20Upgrade\x20command:\x20','937940SmaCkN','24nTxzqd','needsUpgrade','belowMinimum','1.0.0','\x1b[1m','\x1b[31m','upgradeMessage','latest','586736sqFvhD','1002641BIkDzB','\x1b[0m','validation','18fSEvYT','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Minimum\x20supported:\x20','../..','3465730oQbJEX','minimumVersionMessage','stableVersion','15497438oEXsrm','coerce','1816619kfmpmM'];a190_0x17ed=function(){return _0x53a7b7;};return a190_0x17ed();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4a190b){const _0x3bba8e=a190_0x39d6,_0x529f31=_0x4a190b['stableVersion']||_0x3bba8e(0xf7);return _0x3bba8e(0xe2)+NPM_PACKAGE_NAME+'@'+_0x529f31;}function getCurrentCliVersion(){const _0x1884b4=a190_0x39d6;try{const _0xdd76f2=fileURLToPath(import.meta.url),_0x5a799e=resolve(dirname(_0xdd76f2),_0x1884b4(0x102)),_0x34b091=resolve(_0x5a799e,_0x1884b4(0xe4)),_0x2f088f=JSON[_0x1884b4(0xe0)](readFileSync(_0x34b091,'utf-8'));return _0x2f088f['version']||_0x1884b4(0xf3);}catch{return _0x1884b4(0xf3);}}export async function checkCliVersion(){const _0x4167d3=a190_0x39d6,_0x4ea1a2=getCurrentCliVersion(),_0x59d6ea=await getCliVersionPolicy(),_0x3c7244=_0x59d6ea?.[_0x4167d3(0xdb)]||null,_0x58b0b3=_0x59d6ea?.[_0x4167d3(0xff)]||null;let _0x5003ad=![],_0x5c2dda=![];const _0xd335c5=a190_0x35cc2e[_0x4167d3(0xdd)](_0x4ea1a2);if(_0xd335c5&&_0x3c7244)try{const _0x503be9=a190_0x35cc2e[_0x4167d3(0xdd)](_0x3c7244);if(_0x503be9)_0x5003ad=a190_0x35cc2e['lt'](_0xd335c5,_0x503be9);}catch{}if(_0xd335c5&&_0x58b0b3)try{const _0x4c275a=a190_0x35cc2e[_0x4167d3(0xdd)](_0x58b0b3);if(_0x4c275a)_0x5c2dda=a190_0x35cc2e['lt'](_0xd335c5,_0x4c275a);}catch{}return _0x5c2dda&&(_0x5003ad=!![]),{'currentVersion':_0x4ea1a2,'stableVersion':_0x3c7244,'minimumVersion':_0x58b0b3,'needsUpgrade':_0x5003ad,'belowMinimum':_0x5c2dda,'isPreRelease':![],'upgradeMessage':_0x59d6ea?.[_0x4167d3(0xf6)],'minimumVersionMessage':_0x59d6ea?.[_0x4167d3(0xda)]};}export function printCliUpgradeWarning(_0x10e308){const _0x50abb1=a190_0x39d6;if(!_0x10e308[_0x50abb1(0xf1)]&&!_0x10e308['belowMinimum'])return;const _0x2b930a=_0x50abb1(0xf5),_0x31bd37=_0x50abb1(0xe8),_0x1247c0=_0x50abb1(0xfa),_0x30881a=_0x50abb1(0xf4),_0x52dfab=getCliUpgradeCommand(_0x10e308);console[_0x50abb1(0xe6)](),_0x10e308[_0x50abb1(0xf2)]?(console[_0x50abb1(0xe6)](''+_0x2b930a+_0x30881a+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x1247c0),console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xfd)+_0x10e308[_0x50abb1(0xe5)]+_0x1247c0),_0x10e308[_0x50abb1(0xff)]&&console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xe9)+_0x10e308[_0x50abb1(0xff)]+_0x1247c0),_0x10e308[_0x50abb1(0xdb)]&&_0x10e308[_0x50abb1(0xdb)]!==_0x10e308[_0x50abb1(0xff)]&&console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xe3)+_0x10e308[_0x50abb1(0xdb)]+_0x1247c0),_0x10e308['minimumVersionMessage']&&console['log'](_0x2b930a+_0x50abb1(0xdf)+_0x10e308[_0x50abb1(0xda)]+_0x1247c0),console[_0x50abb1(0xe6)](_0x2b930a+_0x50abb1(0xee)+_0x52dfab+_0x1247c0)):(console['log'](''+_0x31bd37+_0x30881a+_0x50abb1(0xea)+_0x1247c0),console['log'](_0x31bd37+_0x50abb1(0xfd)+_0x10e308[_0x50abb1(0xe5)]+_0x1247c0),console[_0x50abb1(0xe6)](_0x31bd37+_0x50abb1(0xfe)+_0x10e308[_0x50abb1(0xdb)]+_0x1247c0),_0x10e308[_0x50abb1(0xf6)]&&console[_0x50abb1(0xe6)](_0x31bd37+_0x50abb1(0xdf)+_0x10e308[_0x50abb1(0xf6)]+_0x1247c0),console['log'](_0x31bd37+'\x20\x20\x20Upgrade\x20command:\x20'+_0x52dfab+_0x1247c0)),console['log']();}export function assertCliVersionSupported(_0x137dc3){const _0x3f59c5=a190_0x39d6;if(!_0x137dc3[_0x3f59c5(0xf2)])return;const _0x8ed1f5=[_0x137dc3['minimumVersionMessage'],'Current\x20version:\x20'+_0x137dc3['currentVersion'],_0x137dc3[_0x3f59c5(0xff)]?_0x3f59c5(0x101)+_0x137dc3['minimumVersion']:null,_0x3f59c5(0xeb)+getCliUpgradeCommand(_0x137dc3)]['filter'](Boolean)[_0x3f59c5(0xe1)]('\x0a');throw CliErrors[_0x3f59c5(0xfb)](_0x3f59c5(0x100),_0x8ed1f5);}
@@ -1 +1 @@
1
- function a191_0x342c(){const _0x3805d9=['5016717wIdyar','latestVersion','minimumVersion','7111209zXbuJo','minVersion','120857yCDTRh','stableVersion','application/json','minimumVersionMessage','74330MdFAiv','2082048CXaBkY','3029481ujfnPD','length','6nsHTLS','trim','3828ROVIXe','json','cli','abort','object','8zYdAyM','now','2700xaCoDv','recommendedVersion','1945LvBtcx'];a191_0x342c=function(){return _0x3805d9;};return a191_0x342c();}(function(_0x3dc943,_0x4c9e49){const _0x4b5d70=a191_0x3beb,_0x44b98b=_0x3dc943();while(!![]){try{const _0x2b43d9=-parseInt(_0x4b5d70(0x18a))/0x1+-parseInt(_0x4b5d70(0x18f))/0x2+parseInt(_0x4b5d70(0x190))/0x3+-parseInt(_0x4b5d70(0x182))/0x4*(parseInt(_0x4b5d70(0x184))/0x5)+parseInt(_0x4b5d70(0x192))/0x6*(-parseInt(_0x4b5d70(0x188))/0x7)+-parseInt(_0x4b5d70(0x180))/0x8*(parseInt(_0x4b5d70(0x185))/0x9)+-parseInt(_0x4b5d70(0x18e))/0xa*(-parseInt(_0x4b5d70(0x194))/0xb);if(_0x2b43d9===_0x4c9e49)break;else _0x44b98b['push'](_0x44b98b['shift']());}catch(_0x18f225){_0x44b98b['push'](_0x44b98b['shift']());}}}(a191_0x342c,0x922e3));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(_0x281f18){const _0x328314=a191_0x3beb;return typeof _0x281f18==='string'&&_0x281f18['trim']()[_0x328314(0x191)]>0x0?_0x281f18[_0x328314(0x193)]():null;}function normalizeCliVersionPolicy(_0x5ed3ac){const _0x205a63=a191_0x3beb;if(!_0x5ed3ac||typeof _0x5ed3ac!==_0x205a63(0x17f))return null;const _0x3b3605=_0x5ed3ac,_0x1c4d8e=_0x3b3605[_0x205a63(0x196)]&&typeof _0x3b3605[_0x205a63(0x196)]==='object'?_0x3b3605[_0x205a63(0x196)]:_0x3b3605,_0x145058=pickString(_0x1c4d8e[_0x205a63(0x18b)])||pickString(_0x1c4d8e[_0x205a63(0x186)])||pickString(_0x1c4d8e[_0x205a63(0x183)]),_0x367568=pickString(_0x1c4d8e[_0x205a63(0x187)])||pickString(_0x1c4d8e[_0x205a63(0x189)]);if(!_0x145058&&!_0x367568)return null;return{'stableVersion':_0x145058,'minimumVersion':_0x367568,'upgradeMessage':pickString(_0x1c4d8e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x1c4d8e[_0x205a63(0x18d)])||undefined};}export async function fetchCliVersionPolicy(){const _0x14d353=a191_0x3beb,_0x486219=new AbortController(),_0xfc0bcf=setTimeout(()=>_0x486219[_0x14d353(0x197)](),FETCH_TIMEOUT_MS);try{const _0x443c83=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x14d353(0x18c)},'signal':_0x486219['signal']});if(!_0x443c83['ok'])return null;const _0x36367f=await _0x443c83[_0x14d353(0x195)]();return normalizeCliVersionPolicy(_0x36367f);}catch{return null;}finally{clearTimeout(_0xfc0bcf);}}function a191_0x3beb(_0x4cc2a6,_0x2acc37){_0x4cc2a6=_0x4cc2a6-0x17f;const _0x342cf5=a191_0x342c();let _0x3beb5b=_0x342cf5[_0x4cc2a6];return _0x3beb5b;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x160ae=a191_0x3beb,_0x144a88=Date[_0x160ae(0x181)]();if(hasCachedPolicy){const _0xf82502=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x144a88-cacheTime<_0xf82502)return cachedPolicy;}const _0x1f124a=await fetchCliVersionPolicy();return cachedPolicy=_0x1f124a,cacheTime=_0x144a88,hasCachedPolicy=!![],_0x1f124a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a191_0x205b(){const _0x1b468d=['latestVersion','34318280gWPkmM','12pYsiHa','stableVersion','object','signal','trim','length','minimumVersionMessage','json','9315096sJyOSF','5935brKHRO','8921934pTSjJH','8zBIyTk','300546WKwmDT','minVersion','cli','abort','493758KPOUeh','application/json','5564MExPgw','9964682TDuPtz','now','minimumVersion'];a191_0x205b=function(){return _0x1b468d;};return a191_0x205b();}(function(_0x4bbbe2,_0x31ecda){const _0x536b40=a191_0x163a,_0x41e128=_0x4bbbe2();while(!![]){try{const _0x49f136=-parseInt(_0x536b40(0x139))/0x1+parseInt(_0x536b40(0x145))/0x2*(parseInt(_0x536b40(0x13d))/0x3)+parseInt(_0x536b40(0x13f))/0x4*(parseInt(_0x536b40(0x136))/0x5)+parseInt(_0x536b40(0x135))/0x6+parseInt(_0x536b40(0x140))/0x7+parseInt(_0x536b40(0x138))/0x8*(-parseInt(_0x536b40(0x137))/0x9)+-parseInt(_0x536b40(0x144))/0xa;if(_0x49f136===_0x31ecda)break;else _0x41e128['push'](_0x41e128['shift']());}catch(_0xb47ed0){_0x41e128['push'](_0x41e128['shift']());}}}(a191_0x205b,0xd985f));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(_0x1cfbde){const _0x354575=a191_0x163a;return typeof _0x1cfbde==='string'&&_0x1cfbde['trim']()[_0x354575(0x132)]>0x0?_0x1cfbde[_0x354575(0x131)]():null;}function normalizeCliVersionPolicy(_0x3803dd){const _0xc5d603=a191_0x163a;if(!_0x3803dd||typeof _0x3803dd!=='object')return null;const _0x2f9fbe=_0x3803dd,_0xaf26=_0x2f9fbe[_0xc5d603(0x13b)]&&typeof _0x2f9fbe['cli']===_0xc5d603(0x12f)?_0x2f9fbe[_0xc5d603(0x13b)]:_0x2f9fbe,_0x17c25e=pickString(_0xaf26[_0xc5d603(0x146)])||pickString(_0xaf26[_0xc5d603(0x143)])||pickString(_0xaf26['recommendedVersion']),_0x408e61=pickString(_0xaf26[_0xc5d603(0x142)])||pickString(_0xaf26[_0xc5d603(0x13a)]);if(!_0x17c25e&&!_0x408e61)return null;return{'stableVersion':_0x17c25e,'minimumVersion':_0x408e61,'upgradeMessage':pickString(_0xaf26['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0xaf26[_0xc5d603(0x133)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3bd706=a191_0x163a,_0x2a71f0=new AbortController(),_0x3fa965=setTimeout(()=>_0x2a71f0[_0x3bd706(0x13c)](),FETCH_TIMEOUT_MS);try{const _0x2f8a01=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3bd706(0x13e)},'signal':_0x2a71f0[_0x3bd706(0x130)]});if(!_0x2f8a01['ok'])return null;const _0x580d15=await _0x2f8a01[_0x3bd706(0x134)]();return normalizeCliVersionPolicy(_0x580d15);}catch{return null;}finally{clearTimeout(_0x3fa965);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a191_0x163a(_0x235cb2,_0x55e42c){_0x235cb2=_0x235cb2-0x12f;const _0x205b3f=a191_0x205b();let _0x163a14=_0x205b3f[_0x235cb2];return _0x163a14;}export async function getCliVersionPolicy(){const _0x34bb8c=a191_0x163a,_0x4cf00c=Date[_0x34bb8c(0x141)]();if(hasCachedPolicy){const _0x209040=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4cf00c-cacheTime<_0x209040)return cachedPolicy;}const _0x70606b=await fetchCliVersionPolicy();return cachedPolicy=_0x70606b,cacheTime=_0x4cf00c,hasCachedPolicy=!![],_0x70606b;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a192_0x2b3d5c=a192_0x2807;(function(_0xeaede3,_0x3d0234){const _0x224d25=a192_0x2807,_0x3b5184=_0xeaede3();while(!![]){try{const _0x219ffd=parseInt(_0x224d25(0x118))/0x1*(-parseInt(_0x224d25(0x11b))/0x2)+-parseInt(_0x224d25(0x110))/0x3+-parseInt(_0x224d25(0x111))/0x4+parseInt(_0x224d25(0x117))/0x5*(parseInt(_0x224d25(0x113))/0x6)+parseInt(_0x224d25(0x11c))/0x7*(-parseInt(_0x224d25(0x119))/0x8)+parseInt(_0x224d25(0x11a))/0x9*(parseInt(_0x224d25(0x115))/0xa)+-parseInt(_0x224d25(0x11e))/0xb*(-parseInt(_0x224d25(0x116))/0xc);if(_0x219ffd===_0x3d0234)break;else _0x3b5184['push'](_0x3b5184['shift']());}catch(_0x459d2d){_0x3b5184['push'](_0x3b5184['shift']());}}}(a192_0x50aa,0x33b94));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0xccb7dd,getMultiAppConfigs as a192_0x3f61fa,getTemplateBaseUrl as a192_0x36927b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a192_0x2807(_0x1db5fe,_0x30b965){_0x1db5fe=_0x1db5fe-0x110;const _0x50aa69=a192_0x50aa();let _0x280791=_0x50aa69[_0x1db5fe];return _0x280791;}export{isInProject}from'../context.js';function a192_0x50aa(){const _0x2bc4fd=['30ICqSln','7QUpsrY','env','358721bytdKz','747249WUbDwI','1592096DHiCQm','string','1945506QhjTZy','project','9560xTmTMS','216jLrgMY','5TIfVYW','7839qqszqk','1596072lNGWMP','2493hgqzOP'];a192_0x50aa=function(){return _0x2bc4fd;};return a192_0x50aa();}export function readConfig(_0x4aa091){const _0x20ca14=a192_0x2807,_0x1bcb10=readRawConfig(_0x4aa091);return _0x1bcb10[_0x20ca14(0x11d)]&&typeof _0x1bcb10[_0x20ca14(0x11d)]===_0x20ca14(0x112)&&initEnv(_0x1bcb10[_0x20ca14(0x11d)]),_0x1bcb10;}export function getConfigAppCode(){return a192_0xccb7dd();}export function getMultiAppConfigs(_0x240cea=a192_0x2b3d5c(0x114)){return a192_0x3f61fa(_0x240cea);}export function getTemplateBaseUrl(){return a192_0x36927b();}
1
+ function a192_0x1ec5(_0x2eb431,_0x4c8345){_0x2eb431=_0x2eb431-0x18e;const _0x36ded9=a192_0x36de();let _0x1ec5a8=_0x36ded9[_0x2eb431];return _0x1ec5a8;}const a192_0x556025=a192_0x1ec5;(function(_0x3295ff,_0x37485f){const _0x2bb97f=a192_0x1ec5,_0x25ede7=_0x3295ff();while(!![]){try{const _0x52ba90=-parseInt(_0x2bb97f(0x19d))/0x1*(-parseInt(_0x2bb97f(0x19a))/0x2)+-parseInt(_0x2bb97f(0x195))/0x3*(parseInt(_0x2bb97f(0x18f))/0x4)+parseInt(_0x2bb97f(0x194))/0x5*(parseInt(_0x2bb97f(0x19b))/0x6)+-parseInt(_0x2bb97f(0x193))/0x7+-parseInt(_0x2bb97f(0x196))/0x8*(parseInt(_0x2bb97f(0x192))/0x9)+-parseInt(_0x2bb97f(0x190))/0xa*(parseInt(_0x2bb97f(0x191))/0xb)+parseInt(_0x2bb97f(0x197))/0xc*(parseInt(_0x2bb97f(0x198))/0xd);if(_0x52ba90===_0x37485f)break;else _0x25ede7['push'](_0x25ede7['shift']());}catch(_0x8c35d6){_0x25ede7['push'](_0x25ede7['shift']());}}}(a192_0x36de,0xd9167));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a192_0xa8afc5,getMultiAppConfigs as a192_0x5c453c,getTemplateBaseUrl as a192_0x585014}from'../context.js';function a192_0x36de(){const _0x3c9116=['4026536lUwFQQ','12KpZiwJ','51638704lcDOyS','project','126344ytdIlr','6QJiDKa','string','16WWzYsK','env','4FCvgRC','31970vKGFUE','4873fTvFaO','9XPOvLT','3997147echocj','540595bWhzyu','5133837SUxvzu'];a192_0x36de=function(){return _0x3c9116;};return a192_0x36de();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4152e4){const _0x3d9969=a192_0x1ec5,_0x4e2b9e=readRawConfig(_0x4152e4);return _0x4e2b9e[_0x3d9969(0x18e)]&&typeof _0x4e2b9e['env']===_0x3d9969(0x19c)&&initEnv(_0x4e2b9e['env']),_0x4e2b9e;}export function getConfigAppCode(){return a192_0xa8afc5();}export function getMultiAppConfigs(_0x19f81e=a192_0x556025(0x199)){return a192_0x5c453c(_0x19f81e);}export function getTemplateBaseUrl(){return a192_0x585014();}
@@ -1 +1 @@
1
- (function(_0x59d847,_0x42b6b4){const _0x5b4c47=a193_0x2287,_0x21c893=_0x59d847();while(!![]){try{const _0x85d9e7=parseInt(_0x5b4c47(0x90))/0x1+parseInt(_0x5b4c47(0x99))/0x2*(parseInt(_0x5b4c47(0x97))/0x3)+-parseInt(_0x5b4c47(0x8f))/0x4+-parseInt(_0x5b4c47(0x95))/0x5*(-parseInt(_0x5b4c47(0x9b))/0x6)+parseInt(_0x5b4c47(0x91))/0x7*(-parseInt(_0x5b4c47(0x8e))/0x8)+-parseInt(_0x5b4c47(0x9e))/0x9*(parseInt(_0x5b4c47(0x93))/0xa)+-parseInt(_0x5b4c47(0x92))/0xb*(-parseInt(_0x5b4c47(0x9d))/0xc);if(_0x85d9e7===_0x42b6b4)break;else _0x21c893['push'](_0x21c893['shift']());}catch(_0x3746ca){_0x21c893['push'](_0x21c893['shift']());}}}(a193_0x284d,0x97aed));import a193_0x4733de from'node:path';import a193_0x49e746 from'node:fs';function a193_0x2287(_0x4271fb,_0x484d41){_0x4271fb=_0x4271fb-0x8c;const _0x284dc9=a193_0x284d();let _0x22873c=_0x284dc9[_0x4271fb];return _0x22873c;}export async function copyDirectory(_0xc08cf4,_0x51d5f1){const _0x14834b=a193_0x2287;try{const _0x23e34e=a193_0x49e746['readdirSync'](_0xc08cf4,{'withFileTypes':!![]});a193_0x49e746[_0x14834b(0x9a)](_0x51d5f1,{'recursive':!![]});for(const _0x4d1150 of _0x23e34e){const _0x32cac3=a193_0x4733de['join'](_0xc08cf4,_0x4d1150[_0x14834b(0x8c)]),_0x3e41e0=a193_0x4733de[_0x14834b(0x96)](_0x51d5f1,_0x4d1150[_0x14834b(0x8c)]);_0x4d1150[_0x14834b(0x8d)]()?await copyDirectory(_0x32cac3,_0x3e41e0):a193_0x49e746[_0x14834b(0x98)](_0x32cac3,_0x3e41e0);}}catch(_0x4de309){console[_0x14834b(0x9c)](_0x14834b(0x94),_0x4de309);}}function a193_0x284d(){const _0x1c2c13=['1729EAMuQS','28721frFaga','8500SgRxWu','复制目录时出错:','6030PXhdqc','join','9uZtTDg','copyFileSync','40694usJIiW','mkdirSync','3042gSDYKL','error','5856SjqDiB','11187LKWQrG','name','isDirectory','3256PUXovl','4406160QkHTew','933261LugcNk'];a193_0x284d=function(){return _0x1c2c13;};return a193_0x284d();}
1
+ (function(_0x442094,_0x39ef88){const _0x503fd9=a193_0x4971,_0x166ff3=_0x442094();while(!![]){try{const _0x1c2ac1=parseInt(_0x503fd9(0x138))/0x1*(parseInt(_0x503fd9(0x130))/0x2)+parseInt(_0x503fd9(0x132))/0x3*(-parseInt(_0x503fd9(0x12d))/0x4)+parseInt(_0x503fd9(0x12b))/0x5+-parseInt(_0x503fd9(0x12e))/0x6*(-parseInt(_0x503fd9(0x12f))/0x7)+parseInt(_0x503fd9(0x12c))/0x8*(-parseInt(_0x503fd9(0x135))/0x9)+parseInt(_0x503fd9(0x12a))/0xa*(parseInt(_0x503fd9(0x137))/0xb)+-parseInt(_0x503fd9(0x136))/0xc;if(_0x1c2ac1===_0x39ef88)break;else _0x166ff3['push'](_0x166ff3['shift']());}catch(_0x1e08a2){_0x166ff3['push'](_0x166ff3['shift']());}}}(a193_0x2d1f,0x631f1));import a193_0x113036 from'node:path';import a193_0x5374af from'node:fs';function a193_0x4971(_0x2e4668,_0x55705d){_0x2e4668=_0x2e4668-0x129;const _0x2d1fb5=a193_0x2d1f();let _0x4971e0=_0x2d1fb5[_0x2e4668];return _0x4971e0;}function a193_0x2d1f(){const _0x507359=['74781OygQNF','mkdirSync','readdirSync','144IyOiCt','17091804IQxXyc','1111xLJwZC','3cVXyzv','copyFileSync','name','63870hfFzkn','3433025htPqzG','9592kpZiIA','92IwPmFx','28374kNdaDt','973tDfuwa','289200QgDOVv','复制目录时出错:'];a193_0x2d1f=function(){return _0x507359;};return a193_0x2d1f();}export async function copyDirectory(_0x27c53e,_0x375840){const _0x3362e6=a193_0x4971;try{const _0x1efe68=a193_0x5374af[_0x3362e6(0x134)](_0x27c53e,{'withFileTypes':!![]});a193_0x5374af[_0x3362e6(0x133)](_0x375840,{'recursive':!![]});for(const _0x61349c of _0x1efe68){const _0x5095a5=a193_0x113036['join'](_0x27c53e,_0x61349c[_0x3362e6(0x129)]),_0x4756d3=a193_0x113036['join'](_0x375840,_0x61349c['name']);_0x61349c['isDirectory']()?await copyDirectory(_0x5095a5,_0x4756d3):a193_0x5374af[_0x3362e6(0x139)](_0x5095a5,_0x4756d3);}}catch(_0x4d54be){console['error'](_0x3362e6(0x131),_0x4d54be);}}
@@ -1 +1 @@
1
- (function(_0x2dfef6,_0x173170){const _0xae489c=a194_0x3aea,_0x7fb2fa=_0x2dfef6();while(!![]){try{const _0x3ba340=-parseInt(_0xae489c(0xda))/0x1*(-parseInt(_0xae489c(0xd1))/0x2)+parseInt(_0xae489c(0xcf))/0x3*(parseInt(_0xae489c(0xd7))/0x4)+-parseInt(_0xae489c(0xd9))/0x5*(parseInt(_0xae489c(0xd3))/0x6)+parseInt(_0xae489c(0xce))/0x7*(parseInt(_0xae489c(0xcc))/0x8)+parseInt(_0xae489c(0xd6))/0x9*(-parseInt(_0xae489c(0xd0))/0xa)+-parseInt(_0xae489c(0xd2))/0xb*(-parseInt(_0xae489c(0xd5))/0xc)+-parseInt(_0xae489c(0xcb))/0xd*(parseInt(_0xae489c(0xcd))/0xe);if(_0x3ba340===_0x173170)break;else _0x7fb2fa['push'](_0x7fb2fa['shift']());}catch(_0xbb41a8){_0x7fb2fa['push'](_0x7fb2fa['shift']());}}}(a194_0x21a1,0x41f0f));function a194_0x3aea(_0x146a62,_0x2e18bf){_0x146a62=_0x146a62-0xc9;const _0x21a156=a194_0x21a1();let _0x3aeadb=_0x21a156[_0x146a62];return _0x3aeadb;}function a194_0x21a1(){const _0xc3e43=['isFinite','2540031wBCgOF','128XIuQbO','14PIaQgT','111440qTbWAC','883080MBOGNt','20sGdGtm','6gEpsOd','11opUxvh','434556LXjTAX','trim','1903956mekZze','957267HsasVc','4WSsEXq','object','25cZdAVC','110865FllwpH','string'];a194_0x21a1=function(){return _0xc3e43;};return a194_0x21a1();}function toFiniteNumber(_0x39268){const _0x382d14=a194_0x3aea;if(typeof _0x39268==='number'&&Number[_0x382d14(0xca)](_0x39268))return _0x39268;if(typeof _0x39268===_0x382d14(0xc9)){const _0x4059da=_0x39268[_0x382d14(0xd4)]();if(!_0x4059da)return undefined;const _0x4f4b2c=Number(_0x4059da);if(Number['isFinite'](_0x4f4b2c))return _0x4f4b2c;}return undefined;}export function normalizeEntityWithIdResponse(_0x2bdc8c){const _0x427100=a194_0x3aea,_0x24119c=toFiniteNumber(_0x2bdc8c);if(_0x24119c!==undefined)return{'id':_0x24119c,'entity':{'id':_0x24119c}};if(!_0x2bdc8c||typeof _0x2bdc8c!==_0x427100(0xd8))return{'id':undefined,'entity':{}};const _0x7642bf={..._0x2bdc8c},_0x233e4e=toFiniteNumber(_0x7642bf['id']);return _0x233e4e!==undefined&&(_0x7642bf['id']=_0x233e4e),{'id':_0x233e4e,'entity':_0x7642bf};}
1
+ (function(_0x4ce57d,_0x3554ce){const _0x443b7c=a194_0x2249,_0x45f8e0=_0x4ce57d();while(!![]){try{const _0x36a3f6=parseInt(_0x443b7c(0x150))/0x1*(-parseInt(_0x443b7c(0x146))/0x2)+parseInt(_0x443b7c(0x147))/0x3*(-parseInt(_0x443b7c(0x148))/0x4)+parseInt(_0x443b7c(0x14e))/0x5*(-parseInt(_0x443b7c(0x14a))/0x6)+-parseInt(_0x443b7c(0x14f))/0x7+parseInt(_0x443b7c(0x149))/0x8*(parseInt(_0x443b7c(0x151))/0x9)+parseInt(_0x443b7c(0x154))/0xa+parseInt(_0x443b7c(0x155))/0xb;if(_0x36a3f6===_0x3554ce)break;else _0x45f8e0['push'](_0x45f8e0['shift']());}catch(_0x21ecc8){_0x45f8e0['push'](_0x45f8e0['shift']());}}}(a194_0x1066,0x89f1b));function a194_0x2249(_0xa616d5,_0x586e40){_0xa616d5=_0xa616d5-0x146;const _0x10661d=a194_0x1066();let _0x224967=_0x10661d[_0xa616d5];return _0x224967;}function a194_0x1066(){const _0x4e07d3=['7465bwnDRq','3619322nEpoNc','1hebhWY','4232592rooGSE','object','number','8346930FbgxcC','4140840pCrgLv','1840162nyQjND','33eYDaVZ','15840bSajlr','16wuXVGp','426aDCxVL','string','trim','isFinite'];a194_0x1066=function(){return _0x4e07d3;};return a194_0x1066();}function toFiniteNumber(_0x42488c){const _0x989947=a194_0x2249;if(typeof _0x42488c===_0x989947(0x153)&&Number[_0x989947(0x14d)](_0x42488c))return _0x42488c;if(typeof _0x42488c===_0x989947(0x14b)){const _0x54a73b=_0x42488c[_0x989947(0x14c)]();if(!_0x54a73b)return undefined;const _0x52b67f=Number(_0x54a73b);if(Number['isFinite'](_0x52b67f))return _0x52b67f;}return undefined;}export function normalizeEntityWithIdResponse(_0x44d375){const _0x3d5594=a194_0x2249,_0x496d76=toFiniteNumber(_0x44d375);if(_0x496d76!==undefined)return{'id':_0x496d76,'entity':{'id':_0x496d76}};if(!_0x44d375||typeof _0x44d375!==_0x3d5594(0x152))return{'id':undefined,'entity':{}};const _0x469b30={..._0x44d375},_0x571278=toFiniteNumber(_0x469b30['id']);return _0x571278!==undefined&&(_0x469b30['id']=_0x571278),{'id':_0x571278,'entity':_0x469b30};}
@@ -1 +1 @@
1
- function a195_0x3f0f(){const _0x928587=['924OUEUqN','22328rdSQyy','819100EGMYao','1702686WSqLBD','180wxTScj','272191fLUntR','1404QsJHkX','1420308Fjneac','isDirectory','5wQapmB','96770uMHzjX','91HUxRyk'];a195_0x3f0f=function(){return _0x928587;};return a195_0x3f0f();}(function(_0x4e7da3,_0x1babf4){const _0x585969=a195_0x1855,_0x241b5d=_0x4e7da3();while(!![]){try{const _0x2a4341=parseInt(_0x585969(0x19f))/0x1+-parseInt(_0x585969(0x19c))/0x2+parseInt(_0x585969(0x19e))/0x3*(parseInt(_0x585969(0x1a0))/0x4)+-parseInt(_0x585969(0x1a3))/0x5*(parseInt(_0x585969(0x19d))/0x6)+parseInt(_0x585969(0x1a5))/0x7*(-parseInt(_0x585969(0x1a7))/0x8)+-parseInt(_0x585969(0x1a1))/0x9+-parseInt(_0x585969(0x1a4))/0xa*(-parseInt(_0x585969(0x1a6))/0xb);if(_0x2a4341===_0x1babf4)break;else _0x241b5d['push'](_0x241b5d['shift']());}catch(_0x384c93){_0x241b5d['push'](_0x241b5d['shift']());}}}(a195_0x3f0f,0x35645));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4fce6d,_0x266add){const _0x4e7002=a195_0x1855,_0x85ce1a=statSync(_0x4fce6d);if(_0x85ce1a[_0x4e7002(0x1a2)]()){!existsSync(_0x266add)&&mkdirSync(_0x266add,{'recursive':!![]});const _0x2c4493=readdirSync(_0x4fce6d);for(const _0x4e7d74 of _0x2c4493){await copyDir(join(_0x4fce6d,_0x4e7d74),join(_0x266add,_0x4e7d74));}}else copyFileSync(_0x4fce6d,_0x266add);}export function ensureDir(_0x311fc3){!existsSync(_0x311fc3)&&mkdirSync(_0x311fc3,{'recursive':!![]});}function a195_0x1855(_0xdd6286,_0x43ae7e){_0xdd6286=_0xdd6286-0x19c;const _0x3f0f80=a195_0x3f0f();let _0x185559=_0x3f0f80[_0xdd6286];return _0x185559;}export function pathExists(_0x15ebbb){return existsSync(_0x15ebbb);}
1
+ (function(_0x177b37,_0x219e22){const _0x196a41=a195_0x3831,_0x303347=_0x177b37();while(!![]){try{const _0x228763=-parseInt(_0x196a41(0x1c9))/0x1*(-parseInt(_0x196a41(0x1ca))/0x2)+-parseInt(_0x196a41(0x1d3))/0x3+-parseInt(_0x196a41(0x1d1))/0x4*(parseInt(_0x196a41(0x1cc))/0x5)+-parseInt(_0x196a41(0x1d2))/0x6+-parseInt(_0x196a41(0x1cf))/0x7*(parseInt(_0x196a41(0x1d0))/0x8)+-parseInt(_0x196a41(0x1ce))/0x9+parseInt(_0x196a41(0x1cb))/0xa;if(_0x228763===_0x219e22)break;else _0x303347['push'](_0x303347['shift']());}catch(_0x45584b){_0x303347['push'](_0x303347['shift']());}}}(a195_0x1232,0xee2cd));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a195_0x1232(){const _0x34ec7a=['3521duYivu','27376iDZXfv','4uCMAME','423480odSjyA','5477442TmcWqN','1244447PFfDJp','2TuRQxl','67292450zxvqgG','7450045biLqLI','isDirectory','17014122XWLloD'];a195_0x1232=function(){return _0x34ec7a;};return a195_0x1232();}function a195_0x3831(_0x54cdaf,_0x38e3f2){_0x54cdaf=_0x54cdaf-0x1c9;const _0x123213=a195_0x1232();let _0x383118=_0x123213[_0x54cdaf];return _0x383118;}import{join}from'node:path';export async function copyDir(_0x23cb21,_0x2c5910){const _0x18f42d=a195_0x3831,_0xe2450f=statSync(_0x23cb21);if(_0xe2450f[_0x18f42d(0x1cd)]()){!existsSync(_0x2c5910)&&mkdirSync(_0x2c5910,{'recursive':!![]});const _0x2bb28f=readdirSync(_0x23cb21);for(const _0x560c64 of _0x2bb28f){await copyDir(join(_0x23cb21,_0x560c64),join(_0x2c5910,_0x560c64));}}else copyFileSync(_0x23cb21,_0x2c5910);}export function ensureDir(_0x2a6636){!existsSync(_0x2a6636)&&mkdirSync(_0x2a6636,{'recursive':!![]});}export function pathExists(_0x36aec9){return existsSync(_0x36aec9);}
@@ -1 +1 @@
1
- const a196_0x14a6c6=a196_0x58b4;(function(_0x3a57a3,_0x196950){const _0x4eeed6=a196_0x58b4,_0x1e9f0a=_0x3a57a3();while(!![]){try{const _0x4f8d4b=parseInt(_0x4eeed6(0x1f5))/0x1+parseInt(_0x4eeed6(0x1eb))/0x2+parseInt(_0x4eeed6(0x1e7))/0x3+parseInt(_0x4eeed6(0x1f3))/0x4+parseInt(_0x4eeed6(0x1ef))/0x5+parseInt(_0x4eeed6(0x1e4))/0x6+-parseInt(_0x4eeed6(0x1ea))/0x7*(parseInt(_0x4eeed6(0x1e3))/0x8);if(_0x4f8d4b===_0x196950)break;else _0x1e9f0a['push'](_0x1e9f0a['shift']());}catch(_0x25388b){_0x1e9f0a['push'](_0x1e9f0a['shift']());}}}(a196_0x1c95,0x4ad69));import{mkdirSync,writeFileSync}from'node:fs';function a196_0x58b4(_0x5be17f,_0x550352){_0x5be17f=_0x5be17f-0x1e1;const _0x1c95a0=a196_0x1c95();let _0x58b40c=_0x1c95a0[_0x5be17f];return _0x58b40c;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5693f3=a196_0x58b4,_0x5c5cdc=getTemplateBaseUrl();return _0x5c5cdc+_0x5693f3(0x1e2);}const CACHE_DIR=join(homedir(),a196_0x14a6c6(0x1fd),'cache');export async function fetchGuidesFromCDN(){const _0x56bd41=a196_0x14a6c6,_0x322d43=getGuidesCdnUrl(),_0x873e5d=await fetch(_0x322d43,{'headers':{'Accept':_0x56bd41(0x1ed)}});if(!_0x873e5d['ok'])throw new Error(_0x56bd41(0x1f4)+_0x873e5d[_0x56bd41(0x1ee)]+'\x20'+_0x873e5d[_0x56bd41(0x1fe)]);const _0x55f24b=await _0x873e5d[_0x56bd41(0x1f7)]();if(!_0x55f24b[_0x56bd41(0x1e8)]||typeof _0x55f24b[_0x56bd41(0x1e8)]!==_0x56bd41(0x1f6))throw new Error('CDN\x20返回数据格式错误');return _0x55f24b;}export function writeGuidesToProject(_0x46cdca,_0x3a806d,_0x14fdba=a196_0x14a6c6(0x1f1),_0x4e8624){const _0x31e03a=a196_0x14a6c6,_0x5d7509=join(_0x3a806d,_0x14fdba);mkdirSync(_0x5d7509,{'recursive':!![]});for(const [_0x5e8a40,_0x3f066f]of Object[_0x31e03a(0x1f2)](_0x46cdca[_0x31e03a(0x1e8)])){let _0x3368a9=_0x3f066f[_0x31e03a(0x1e6)];_0x3f066f[_0x31e03a(0x1f8)]&&(_0x3368a9=appendUpdateTime(_0x3368a9,_0x3f066f[_0x31e03a(0x1f8)])),writeFileSync(join(_0x5d7509,_0x5e8a40+'.md'),_0x3368a9,_0x31e03a(0x1e9));}}export function appendUpdateTime(_0x2da3ea,_0x20cfa3){const _0x403c39=a196_0x14a6c6;return _0x2da3ea=_0x2da3ea['replace'](/\n*>更新时间:.*$/m,''),_0x2da3ea[_0x403c39(0x1fc)]()+(_0x403c39(0x1fb)+_0x20cfa3);}export function getSkillTemplate(_0x22b0bb){const _0x54c1f4=a196_0x14a6c6;return _0x22b0bb[_0x54c1f4(0x1fa)]?.[_0x54c1f4(0x1e6)]||'';}export function appendExtendContents(_0x448d07,_0x4d3759,_0x4dfb61){const _0x8b24e1=a196_0x14a6c6,_0x3d6f9d=[];for(const [,_0x5c4f77]of Object[_0x8b24e1(0x1f2)](_0x4d3759[_0x8b24e1(0x1e8)])){_0x5c4f77['extendContent']&&_0x3d6f9d[_0x8b24e1(0x1f0)](_0x5c4f77[_0x8b24e1(0x1e1)][_0x8b24e1(0x1fc)]());}if(_0x3d6f9d['length']===0x0)return _0x448d07;return _0x448d07[_0x8b24e1(0x1fc)]()+'\x0a\x0a'+_0x3d6f9d[_0x8b24e1(0x1f9)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x45c011,_0xf72135,_0x1a1a11){const _0x515d07=a196_0x14a6c6,_0x385bcd=getSkillTemplate(_0x45c011);if(!_0x385bcd)throw new Error(_0x515d07(0x1ec));const _0x3f78bd=dirname(_0xf72135);mkdirSync(_0x3f78bd,{'recursive':!![]});let _0x318540=_0x385bcd['replace'](/\{\{IDE_NAME\}\}/g,_0x1a1a11);_0x318540=appendExtendContents(_0x318540,_0x45c011),_0x45c011[_0x515d07(0x1fa)][_0x515d07(0x1f8)]&&(_0x318540=appendUpdateTime(_0x318540,_0x45c011[_0x515d07(0x1fa)]['lastUpdated'])),writeFileSync(_0xf72135,_0x318540,_0x515d07(0x1e9));}export async function installGuides(_0x259434){const _0x436ed2=a196_0x14a6c6,_0x3bf1a7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3bf1a7,_0x259434),Object[_0x436ed2(0x1ff)](_0x3bf1a7[_0x436ed2(0x1e8)])['length'];}function a196_0x1c95(){const _0x4b51cf=['64hwLTGo','2086932MslMej','title','content','1788285bKGgjl','guides','utf-8','1855497jpwXBI','744692pnloIS','CDN\x20数据中缺少\x20skillTemplate','application/json','status','1167990xFTXnt','push','.lovrabet/skill/guides','entries','1271520Shgnwj','CDN\x20请求失败:\x20','559364tShTVh','object','json','lastUpdated','join','skillTemplate','\x0a\x0a>更新时间:','trimEnd','.lovrabet','statusText','keys','extendContent','/skills/guides.json'];a196_0x1c95=function(){return _0x4b51cf;};return a196_0x1c95();}export function getGuidesSummary(_0x934016){const _0x5d6272=a196_0x14a6c6;return Object[_0x5d6272(0x1f2)](_0x934016[_0x5d6272(0x1e8)])['map'](([_0x9b4fdb,_0x184cd8])=>({'key':_0x9b4fdb,'title':_0x184cd8[_0x5d6272(0x1e5)],'path':_0x184cd8['path']}));}
1
+ const a196_0x1ecf9a=a196_0x30dc;(function(_0x771fc2,_0x19e06a){const _0x31499f=a196_0x30dc,_0xab7ae6=_0x771fc2();while(!![]){try{const _0x5c65e5=parseInt(_0x31499f(0xf2))/0x1+-parseInt(_0x31499f(0xe5))/0x2*(parseInt(_0x31499f(0xe8))/0x3)+-parseInt(_0x31499f(0xf0))/0x4*(-parseInt(_0x31499f(0xef))/0x5)+-parseInt(_0x31499f(0xdc))/0x6*(-parseInt(_0x31499f(0xe6))/0x7)+parseInt(_0x31499f(0xf3))/0x8*(parseInt(_0x31499f(0xe4))/0x9)+parseInt(_0x31499f(0xe2))/0xa+parseInt(_0x31499f(0xf5))/0xb*(-parseInt(_0x31499f(0xf7))/0xc);if(_0x5c65e5===_0x19e06a)break;else _0xab7ae6['push'](_0xab7ae6['shift']());}catch(_0x30c90c){_0xab7ae6['push'](_0xab7ae6['shift']());}}}(a196_0x2cd0,0x2d836));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a196_0x2cd0(){const _0x910b29=['839502sQzFvm','guides','map','join','lastUpdated','status','176270yIpQuU','\x0a\x0a>更新时间:','648OzibuT','6dDqqjx','7bIsHff','title','157449ETVkSr','json','entries','content','CDN\x20数据中缺少\x20skillTemplate','path','length','219210IreLTa','8RsDWzJ','replace','74295txVekm','36024CKSSHP','application/json','1099516Whzvbj','extendContent','36gYvIoa','utf-8','.md','trimEnd','CDN\x20请求失败:\x20','.lovrabet/skill/guides','skillTemplate','/skills/guides.json','statusText','cache','object'];a196_0x2cd0=function(){return _0x910b29;};return a196_0x2cd0();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x23cd53=a196_0x30dc,_0x583eae=getTemplateBaseUrl();return _0x583eae+_0x23cd53(0xfe);}const CACHE_DIR=join(homedir(),'.lovrabet',a196_0x1ecf9a(0x100));export async function fetchGuidesFromCDN(){const _0x1b2004=a196_0x1ecf9a,_0x5b5d6c=getGuidesCdnUrl(),_0x3848b7=await fetch(_0x5b5d6c,{'headers':{'Accept':_0x1b2004(0xf4)}});if(!_0x3848b7['ok'])throw new Error(_0x1b2004(0xfb)+_0x3848b7[_0x1b2004(0xe1)]+'\x20'+_0x3848b7[_0x1b2004(0xff)]);const _0x2c2f85=await _0x3848b7[_0x1b2004(0xe9)]();if(!_0x2c2f85[_0x1b2004(0xdd)]||typeof _0x2c2f85[_0x1b2004(0xdd)]!==_0x1b2004(0x101))throw new Error('CDN\x20返回数据格式错误');return _0x2c2f85;}function a196_0x30dc(_0x18666f,_0x2e7633){_0x18666f=_0x18666f-0xdc;const _0x2cd03c=a196_0x2cd0();let _0x30dc70=_0x2cd03c[_0x18666f];return _0x30dc70;}export function writeGuidesToProject(_0x288c30,_0x124194,_0x554053=a196_0x1ecf9a(0xfc),_0x48d3a8){const _0x169530=a196_0x1ecf9a,_0x4ac71d=join(_0x124194,_0x554053);mkdirSync(_0x4ac71d,{'recursive':!![]});for(const [_0x3fbab0,_0x59ebb2]of Object[_0x169530(0xea)](_0x288c30[_0x169530(0xdd)])){let _0x45908b=_0x59ebb2['content'];_0x59ebb2[_0x169530(0xe0)]&&(_0x45908b=appendUpdateTime(_0x45908b,_0x59ebb2[_0x169530(0xe0)])),writeFileSync(join(_0x4ac71d,_0x3fbab0+_0x169530(0xf9)),_0x45908b,_0x169530(0xf8));}}export function appendUpdateTime(_0x5b0927,_0x137ab9){const _0x227ab0=a196_0x1ecf9a;return _0x5b0927=_0x5b0927[_0x227ab0(0xf1)](/\n*>更新时间:.*$/m,''),_0x5b0927[_0x227ab0(0xfa)]()+(_0x227ab0(0xe3)+_0x137ab9);}export function getSkillTemplate(_0xcdc50d){const _0x241157=a196_0x1ecf9a;return _0xcdc50d[_0x241157(0xfd)]?.[_0x241157(0xeb)]||'';}export function appendExtendContents(_0x1dcd5d,_0x463077,_0x3e7c2d){const _0xc45101=a196_0x1ecf9a,_0x1c3f76=[];for(const [,_0x105bae]of Object[_0xc45101(0xea)](_0x463077['guides'])){_0x105bae[_0xc45101(0xf6)]&&_0x1c3f76['push'](_0x105bae[_0xc45101(0xf6)][_0xc45101(0xfa)]());}if(_0x1c3f76[_0xc45101(0xee)]===0x0)return _0x1dcd5d;return _0x1dcd5d[_0xc45101(0xfa)]()+'\x0a\x0a'+_0x1c3f76[_0xc45101(0xdf)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4f91de,_0xf1894a,_0x5efbe1){const _0x1557d4=a196_0x1ecf9a,_0x33d5c7=getSkillTemplate(_0x4f91de);if(!_0x33d5c7)throw new Error(_0x1557d4(0xec));const _0x33e36a=dirname(_0xf1894a);mkdirSync(_0x33e36a,{'recursive':!![]});let _0x157fa4=_0x33d5c7[_0x1557d4(0xf1)](/\{\{IDE_NAME\}\}/g,_0x5efbe1);_0x157fa4=appendExtendContents(_0x157fa4,_0x4f91de),_0x4f91de['skillTemplate'][_0x1557d4(0xe0)]&&(_0x157fa4=appendUpdateTime(_0x157fa4,_0x4f91de[_0x1557d4(0xfd)][_0x1557d4(0xe0)])),writeFileSync(_0xf1894a,_0x157fa4,_0x1557d4(0xf8));}export async function installGuides(_0x135925){const _0x59dbbb=a196_0x1ecf9a,_0x871c01=await fetchGuidesFromCDN();return writeGuidesToProject(_0x871c01,_0x135925),Object['keys'](_0x871c01[_0x59dbbb(0xdd)])[_0x59dbbb(0xee)];}export function getGuidesSummary(_0x2ae13f){const _0x42d848=a196_0x1ecf9a;return Object[_0x42d848(0xea)](_0x2ae13f[_0x42d848(0xdd)])[_0x42d848(0xde)](([_0x1d6223,_0x2cbd00])=>({'key':_0x1d6223,'title':_0x2cbd00[_0x42d848(0xe7)],'path':_0x2cbd00[_0x42d848(0xed)]}));}
@@ -1 +1 @@
1
- (function(_0x1e16cb,_0x295acb){const _0x2b358e=a197_0x3c2b,_0x3e5e6f=_0x1e16cb();while(!![]){try{const _0x254e4a=parseInt(_0x2b358e(0x1e8))/0x1+-parseInt(_0x2b358e(0x1e0))/0x2+parseInt(_0x2b358e(0x1ee))/0x3*(-parseInt(_0x2b358e(0x1e1))/0x4)+-parseInt(_0x2b358e(0x1ec))/0x5+parseInt(_0x2b358e(0x1ea))/0x6+-parseInt(_0x2b358e(0x1df))/0x7+parseInt(_0x2b358e(0x1eb))/0x8;if(_0x254e4a===_0x295acb)break;else _0x3e5e6f['push'](_0x3e5e6f['shift']());}catch(_0x18d159){_0x3e5e6f['push'](_0x3e5e6f['shift']());}}}(a197_0x42a1,0xe886a));function a197_0x42a1(){const _0x5b10d7=['url','abort','json','signal','194681eYOqvf','Request\x20failed','10047414GSDRpr','28285536FZdSef','106595XMzcfw','name','426486VAGxEs','message','content-type','log','get','*\x20请求失败,','ms\x20后进行第\x20','AbortError','application/json','includes','text','13265763PgBDoY','1375964FGeAjN','52JSiJiO','headers','status'];a197_0x42a1=function(){return _0x5b10d7;};return a197_0x42a1();}export async function httpRequest(_0x2d1808,_0x4daeab={}){const _0x38dc8c=a197_0x3c2b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4daeab;let _0x196c41=null;for(let _0x43336f=0x0;_0x43336f<=retries;_0x43336f++){try{const _0x430108=new AbortController(),_0x3a32c1=setTimeout(()=>_0x430108[_0x38dc8c(0x1e5)](),timeout),_0x338318=await fetch(_0x2d1808,{'headers':headers,'signal':_0x430108[_0x38dc8c(0x1e7)]});clearTimeout(_0x3a32c1);let _0x55675e;const _0x5ad7d7=_0x338318[_0x38dc8c(0x1e2)][_0x38dc8c(0x1f2)](_0x38dc8c(0x1f0));return _0x5ad7d7?.[_0x38dc8c(0x1dd)](_0x38dc8c(0x1dc))?_0x55675e=await _0x338318[_0x38dc8c(0x1e6)]():_0x55675e=await _0x338318['text'](),{'ok':_0x338318['ok'],'status':_0x338318[_0x38dc8c(0x1e3)],'statusText':_0x338318['statusText'],'data':_0x55675e,'headers':_0x338318[_0x38dc8c(0x1e2)],'url':_0x338318[_0x38dc8c(0x1e4)],'text':()=>_0x338318[_0x38dc8c(0x1de)]()};}catch(_0x3bdc7d){_0x196c41=_0x3bdc7d instanceof Error?_0x3bdc7d:new Error(String(_0x3bdc7d));if(_0x43336f===retries)break;if(shouldRetry(_0x3bdc7d)){console[_0x38dc8c(0x1f1)](_0x38dc8c(0x1f3)+retryDelay+_0x38dc8c(0x1da)+(_0x43336f+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x196c41||new Error(_0x38dc8c(0x1e9));}function shouldRetry(_0x132974){const _0x8e6460=a197_0x3c2b;if(_0x132974 instanceof Error){if(_0x132974[_0x8e6460(0x1ed)]===_0x8e6460(0x1db))return![];if(_0x132974['name']==='TypeError'&&_0x132974['message'][_0x8e6460(0x1dd)]('fetch'))return!![];if(_0x132974['message'][_0x8e6460(0x1dd)]('ECONNRESET'))return!![];if(_0x132974[_0x8e6460(0x1ef)][_0x8e6460(0x1dd)]('ENOTFOUND'))return![];}return![];}function sleep(_0x50eac2){return new Promise(_0x3adbe0=>setTimeout(_0x3adbe0,_0x50eac2));}function a197_0x3c2b(_0x208adb,_0x18bcc7){_0x208adb=_0x208adb-0x1da;const _0x42a1fb=a197_0x42a1();let _0x3c2bec=_0x42a1fb[_0x208adb];return _0x3c2bec;}export function validateUrl(_0x5f22e6){try{return new URL(_0x5f22e6),!![];}catch{return![];}}
1
+ function a197_0x4392(){const _0x48278c=['headers','963715kseaQN','7776ffdWAz','ENOTFOUND','status','37493oqBTjG','6mWZOqE','12871764oapQsr','2548BRfuiB','AbortError','text','url','json','Request\x20failed','ms\x20后进行第\x20','307417WjaRiq','5172CKJMoW','application/json','signal','statusText','\x20次重试...','984kOiTMD','name','content-type','230jbYXby','includes','4374018QMsUzo','ECONNRESET','log','8elryBp','message'];a197_0x4392=function(){return _0x48278c;};return a197_0x4392();}(function(_0x2a974a,_0x5166d9){const _0x43379d=a197_0x52d4,_0x1003e3=_0x2a974a();while(!![]){try{const _0x19c3ae=parseInt(_0x43379d(0x1e7))/0x1*(parseInt(_0x43379d(0x1e0))/0x2)+-parseInt(_0x43379d(0x1d8))/0x3*(-parseInt(_0x43379d(0x1d3))/0x4)+-parseInt(_0x43379d(0x1e3))/0x5*(-parseInt(_0x43379d(0x1e8))/0x6)+-parseInt(_0x43379d(0x1ea))/0x7*(parseInt(_0x43379d(0x1e4))/0x8)+-parseInt(_0x43379d(0x1dd))/0x9+-parseInt(_0x43379d(0x1db))/0xa*(parseInt(_0x43379d(0x1f1))/0xb)+parseInt(_0x43379d(0x1e9))/0xc;if(_0x19c3ae===_0x5166d9)break;else _0x1003e3['push'](_0x1003e3['shift']());}catch(_0x8e9fe8){_0x1003e3['push'](_0x1003e3['shift']());}}}(a197_0x4392,0x5720b));export async function httpRequest(_0x15c778,_0x5bdc43={}){const _0x44ec3d=a197_0x52d4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5bdc43;let _0x533760=null;for(let _0x35f87a=0x0;_0x35f87a<=retries;_0x35f87a++){try{const _0x387683=new AbortController(),_0x1b60f4=setTimeout(()=>_0x387683['abort'](),timeout),_0x559cd1=await fetch(_0x15c778,{'headers':headers,'signal':_0x387683[_0x44ec3d(0x1d5)]});clearTimeout(_0x1b60f4);let _0x5392c6;const _0x32f188=_0x559cd1['headers']['get'](_0x44ec3d(0x1da));return _0x32f188?.[_0x44ec3d(0x1dc)](_0x44ec3d(0x1d4))?_0x5392c6=await _0x559cd1[_0x44ec3d(0x1ee)]():_0x5392c6=await _0x559cd1[_0x44ec3d(0x1ec)](),{'ok':_0x559cd1['ok'],'status':_0x559cd1[_0x44ec3d(0x1e6)],'statusText':_0x559cd1[_0x44ec3d(0x1d6)],'data':_0x5392c6,'headers':_0x559cd1[_0x44ec3d(0x1e2)],'url':_0x559cd1[_0x44ec3d(0x1ed)],'text':()=>_0x559cd1['text']()};}catch(_0x4c32e2){_0x533760=_0x4c32e2 instanceof Error?_0x4c32e2:new Error(String(_0x4c32e2));if(_0x35f87a===retries)break;if(shouldRetry(_0x4c32e2)){console[_0x44ec3d(0x1df)]('*\x20请求失败,'+retryDelay+_0x44ec3d(0x1f0)+(_0x35f87a+0x1)+_0x44ec3d(0x1d7)),await sleep(retryDelay);continue;}else break;}}throw _0x533760||new Error(_0x44ec3d(0x1ef));}function a197_0x52d4(_0x416e76,_0xf70f55){_0x416e76=_0x416e76-0x1d3;const _0x43928f=a197_0x4392();let _0x52d482=_0x43928f[_0x416e76];return _0x52d482;}function shouldRetry(_0x191e95){const _0x14d017=a197_0x52d4;if(_0x191e95 instanceof Error){if(_0x191e95[_0x14d017(0x1d9)]===_0x14d017(0x1eb))return![];if(_0x191e95[_0x14d017(0x1d9)]==='TypeError'&&_0x191e95[_0x14d017(0x1e1)]['includes']('fetch'))return!![];if(_0x191e95[_0x14d017(0x1e1)][_0x14d017(0x1dc)](_0x14d017(0x1de)))return!![];if(_0x191e95[_0x14d017(0x1e1)][_0x14d017(0x1dc)](_0x14d017(0x1e5)))return![];}return![];}function sleep(_0x54685e){return new Promise(_0x1971e8=>setTimeout(_0x1971e8,_0x54685e));}export function validateUrl(_0x43837a){try{return new URL(_0x43837a),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a198_0x1256(_0x5f2890,_0x128fd3){_0x5f2890=_0x5f2890-0xd0;const _0x545c2a=a198_0x545c();let _0x1256ba=_0x545c2a[_0x5f2890];return _0x1256ba;}(function(_0xf1812b,_0x36c177){const _0x3969a4=a198_0x1256,_0x17312a=_0xf1812b();while(!![]){try{const _0xdec65c=parseInt(_0x3969a4(0xe0))/0x1*(parseInt(_0x3969a4(0xd5))/0x2)+-parseInt(_0x3969a4(0xd4))/0x3+parseInt(_0x3969a4(0xd1))/0x4*(-parseInt(_0x3969a4(0xd6))/0x5)+-parseInt(_0x3969a4(0xdb))/0x6*(-parseInt(_0x3969a4(0xe1))/0x7)+-parseInt(_0x3969a4(0xdd))/0x8*(-parseInt(_0x3969a4(0xda))/0x9)+-parseInt(_0x3969a4(0xdc))/0xa*(parseInt(_0x3969a4(0xd2))/0xb)+-parseInt(_0x3969a4(0xd3))/0xc*(-parseInt(_0x3969a4(0xd7))/0xd);if(_0xdec65c===_0x36c177)break;else _0x17312a['push'](_0x17312a['shift']());}catch(_0x135b41){_0x17312a['push'](_0x17312a['shift']());}}}(a198_0x545c,0xd6bdc));function env(_0x39b902){return process.env[`RABETBASE_${_0x39b902}`]||process.env[`LOVRABET_${_0x39b902}`]||undefined;}export function isNonInteractive(_0x4dbd7b){const _0x552379=a198_0x1256;return!!(_0x4dbd7b['nonInteractive']||_0x4dbd7b['ci']||env('CI')==='true'||process.env.CI===_0x552379(0xd0)||!process[_0x552379(0xd8)][_0x552379(0xde)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e7708=a198_0x1256;if(!process['stdin'][_0x4e7708(0xde)])return![];try{const _0x3def88=process[_0x4e7708(0xe2)][_0x4e7708(0xdf)];return process[_0x4e7708(0xe2)][_0x4e7708(0xd9)](!![]),process[_0x4e7708(0xe2)][_0x4e7708(0xd9)](_0x3def88??![]),!![];}catch{return![];}}function a198_0x545c(){const _0x25db4b=['1097718EuMvkU','10550510veCkZf','9952iwwQtp','isTTY','isRaw','2GhLvZR','21OYKApf','stdin','true','43324BnNzyx','11dUJAfD','24ZmQaFe','1044615dWoqfE','234914AoyRxs','645aBVYPs','16747601ScDBfY','stdout','setRawMode','2313pDkwQt'];a198_0x545c=function(){return _0x25db4b;};return a198_0x545c();}
1
+ (function(_0x4beb98,_0x466a4a){const _0xac0b7b=a198_0x3be2,_0x2b80c4=_0x4beb98();while(!![]){try{const _0x1463e2=-parseInt(_0xac0b7b(0x1a3))/0x1+-parseInt(_0xac0b7b(0x198))/0x2+parseInt(_0xac0b7b(0x1a1))/0x3+-parseInt(_0xac0b7b(0x19d))/0x4*(-parseInt(_0xac0b7b(0x195))/0x5)+-parseInt(_0xac0b7b(0x19a))/0x6+-parseInt(_0xac0b7b(0x1a0))/0x7*(parseInt(_0xac0b7b(0x199))/0x8)+parseInt(_0xac0b7b(0x197))/0x9;if(_0x1463e2===_0x466a4a)break;else _0x2b80c4['push'](_0x2b80c4['shift']());}catch(_0x3aba74){_0x2b80c4['push'](_0x2b80c4['shift']());}}}(a198_0x82b4,0x34984));function env(_0x3641fd){return process.env[`RABETBASE_${_0x3641fd}`]||process.env[`LOVRABET_${_0x3641fd}`]||undefined;}function a198_0x82b4(){const _0x3e0c56=['1365hwTsEv','setRawMode','8802909ODkJHk','420592fMNnNc','16bXPvLG','1349658yfdQsD','nonInteractive','stdout','3152fUpTpM','true','stdin','1444583MNHMdc','487827McOeWO','isTTY','292429RHlGSo'];a198_0x82b4=function(){return _0x3e0c56;};return a198_0x82b4();}export function isNonInteractive(_0xa3a8bf){const _0x5f0ece=a198_0x3be2;return!!(_0xa3a8bf[_0x5f0ece(0x19b)]||_0xa3a8bf['ci']||env('CI')===_0x5f0ece(0x19e)||process.env.CI==='true'||!process[_0x5f0ece(0x19c)][_0x5f0ece(0x1a2)]||!isStdinRawModeSupported());}function a198_0x3be2(_0x3eed8e,_0xdba659){_0x3eed8e=_0x3eed8e-0x195;const _0x82b43f=a198_0x82b4();let _0x3be2b3=_0x82b43f[_0x3eed8e];return _0x3be2b3;}function isStdinRawModeSupported(){const _0x164854=a198_0x3be2;if(!process[_0x164854(0x19f)][_0x164854(0x1a2)])return![];try{const _0x34c34d=process[_0x164854(0x19f)]['isRaw'];return process['stdin'][_0x164854(0x196)](!![]),process[_0x164854(0x19f)][_0x164854(0x196)](_0x34c34d??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a199_0x1dab3b=a199_0x33d9;function a199_0x1b57(){const _0x2f262f=['winstonLogger','readFileSync','logFilePath','getWinstonInstance','File','red','mkdirSync','开始执行:\x20','green','initWinstonLogger','9944102lRKJmN','5azKIAz','success','duration','1TXCjPB','existsSync','level','error','format','details','now','12075920PlCJfV','printf','完成:\x20','失败:\x20','569154JCIFIY','clearLogs','info','addColors','split','15120743BhxAIc','42MoOWmR','10OIDIhL','warn','parse','filter','toISOString','unknown','rawCommand','combine','join','logTask','10863072mkFSlC','createLogger','258204PBmGEB','utf8','Failed\x20to\x20read\x20logs:','setLogPath','976558gGdtmj','currentRawCommand'];a199_0x1b57=function(){return _0x2f262f;};return a199_0x1b57();}(function(_0x389c74,_0x968bc6){const _0x12df34=a199_0x33d9,_0x5f259d=_0x389c74();while(!![]){try{const _0x105f58=-parseInt(_0x12df34(0x17a))/0x1*(parseInt(_0x12df34(0x16a))/0x2)+parseInt(_0x12df34(0x159))/0x3*(parseInt(_0x12df34(0x166))/0x4)+-parseInt(_0x12df34(0x177))/0x5*(-parseInt(_0x12df34(0x153))/0x6)+-parseInt(_0x12df34(0x176))/0x7+parseInt(_0x12df34(0x181))/0x8+-parseInt(_0x12df34(0x164))/0x9+parseInt(_0x12df34(0x15a))/0xa*(parseInt(_0x12df34(0x158))/0xb);if(_0x105f58===_0x968bc6)break;else _0x5f259d['push'](_0x5f259d['shift']());}catch(_0x4153fe){_0x5f259d['push'](_0x5f259d['shift']());}}}(a199_0x1b57,0xbb353));import a199_0x48f24d from'winston';import a199_0x5ebbf5 from'node:fs';import a199_0x3b8774 from'node:path';class Logger{[a199_0x1dab3b(0x16c)];[a199_0x1dab3b(0x16e)];[a199_0x1dab3b(0x16b)]='';constructor(){const _0x348722=a199_0x1dab3b;this[_0x348722(0x16e)]='';}['setRawCommand'](_0xe12edf){const _0x1742c4=a199_0x1dab3b;this[_0x1742c4(0x16b)]=_0xe12edf;}[a199_0x1dab3b(0x175)](){const _0x49a458=a199_0x1dab3b,_0x4a37f8=a199_0x3b8774['dirname'](this[_0x49a458(0x16e)]);!a199_0x5ebbf5[_0x49a458(0x17b)](_0x4a37f8)&&a199_0x5ebbf5[_0x49a458(0x172)](_0x4a37f8,{'recursive':!![]});const _0x2f1dfc=a199_0x48f24d[_0x49a458(0x17e)][_0x49a458(0x161)](a199_0x48f24d['format']['timestamp'](),a199_0x48f24d[_0x49a458(0x17e)]['errors']({'stack':!![]}),a199_0x48f24d[_0x49a458(0x17e)][_0x49a458(0x182)](_0x232d46=>{const _0xbb58f3=_0x49a458,_0x522e35={'timestamp':_0x232d46['timestamp']||new Date()[_0xbb58f3(0x15e)](),'level':_0x232d46[_0xbb58f3(0x17c)]||_0xbb58f3(0x155),'command':_0x232d46['command']||_0xbb58f3(0x15f),'rawCommand':_0x232d46[_0xbb58f3(0x160)]||this['currentRawCommand']||undefined,'message':_0x232d46['message']||'','duration':_0x232d46[_0xbb58f3(0x179)]||undefined,'details':_0x232d46[_0xbb58f3(0x17f)]||undefined};return JSON['stringify'](_0x522e35);}));this[_0x49a458(0x16c)]=a199_0x48f24d[_0x49a458(0x165)]({'level':_0x49a458(0x155),'format':_0x2f1dfc,'transports':[new a199_0x48f24d['transports'][(_0x49a458(0x170))]({'filename':this['logFilePath'],'level':_0x49a458(0x155)})],'silent':![]}),a199_0x48f24d[_0x49a458(0x156)]({'success':_0x49a458(0x174),'error':_0x49a458(0x171),'warn':'yellow','info':'blue'});}[a199_0x1dab3b(0x169)](_0xa7d918){const _0x5488d4=a199_0x1dab3b;this[_0x5488d4(0x16e)]=a199_0x3b8774[_0x5488d4(0x162)](_0xa7d918,'.lovrabet.log'),this[_0x5488d4(0x16c)]&&this[_0x5488d4(0x16c)]['clear'](),this[_0x5488d4(0x175)]();}[a199_0x1dab3b(0x155)](_0x4312d7,_0x14527d,_0x2ac506){const _0x45e2a4=a199_0x1dab3b;if(!this[_0x45e2a4(0x16e)]||!this[_0x45e2a4(0x16c)])return;this[_0x45e2a4(0x16c)]['info'](_0x14527d,{'command':_0x4312d7,'details':_0x2ac506});}['success'](_0x335288,_0x22a797,_0x232210,_0x41ffb0){const _0x364884=a199_0x1dab3b;if(!this[_0x364884(0x16e)]||!this[_0x364884(0x16c)])return;this[_0x364884(0x16c)]['log'](_0x364884(0x155),_0x22a797,{'level':_0x364884(0x178),'command':_0x335288,'duration':_0x232210,'details':_0x41ffb0});}[a199_0x1dab3b(0x17d)](_0x86d18c,_0x489230,_0xe2464a){const _0x408f63=a199_0x1dab3b;if(!this['logFilePath']||!this[_0x408f63(0x16c)])return;this[_0x408f63(0x16c)][_0x408f63(0x17d)](_0x489230,{'command':_0x86d18c,'details':_0xe2464a});}[a199_0x1dab3b(0x15b)](_0xbf5fa1,_0x1e80e2,_0x5d5dfd){const _0x197bd0=a199_0x1dab3b;if(!this[_0x197bd0(0x16e)]||!this[_0x197bd0(0x16c)])return;this[_0x197bd0(0x16c)]['warn'](_0x1e80e2,{'command':_0xbf5fa1,'details':_0x5d5dfd});}async[a199_0x1dab3b(0x163)](_0x5e6e6e,_0xc406b6,_0x2d23fb){const _0x1c1510=a199_0x1dab3b,_0x18e7d3=Date['now']();this[_0x1c1510(0x155)](_0x5e6e6e,_0x1c1510(0x173)+_0xc406b6);try{const _0x26d57e=await _0x2d23fb(),_0x1acc05=Date[_0x1c1510(0x180)]()-_0x18e7d3;return this[_0x1c1510(0x178)](_0x5e6e6e,_0x1c1510(0x183)+_0xc406b6,_0x1acc05),_0x26d57e;}catch(_0x2a976f){const _0x217622=Date[_0x1c1510(0x180)]()-_0x18e7d3;this['error'](_0x5e6e6e,_0x1c1510(0x184)+_0xc406b6,{'error':_0x2a976f instanceof Error?_0x2a976f['message']:String(_0x2a976f),'duration':_0x217622});throw _0x2a976f;}}['readLogs'](){const _0xd42574=a199_0x1dab3b;try{if(!a199_0x5ebbf5['existsSync'](this[_0xd42574(0x16e)]))return[];const _0x41c18e=a199_0x5ebbf5[_0xd42574(0x16d)](this[_0xd42574(0x16e)],_0xd42574(0x167));return _0x41c18e[_0xd42574(0x157)]('\x0a')[_0xd42574(0x15d)](_0x51fa6e=>_0x51fa6e['trim']())['map'](_0x357f45=>JSON[_0xd42574(0x15c)](_0x357f45));}catch(_0x2ad943){return console[_0xd42574(0x15b)](_0xd42574(0x168),_0x2ad943),[];}}[a199_0x1dab3b(0x154)](){const _0x121334=a199_0x1dab3b;try{a199_0x5ebbf5[_0x121334(0x17b)](this[_0x121334(0x16e)])&&a199_0x5ebbf5['writeFileSync'](this[_0x121334(0x16e)],'','utf8');}catch(_0x16ee92){console[_0x121334(0x15b)]('Failed\x20to\x20clear\x20logs:',_0x16ee92);}}[a199_0x1dab3b(0x16f)](){return this['winstonLogger'];}}function a199_0x33d9(_0x4a5a87,_0x5f4ad4){_0x4a5a87=_0x4a5a87-0x153;const _0x1b57ed=a199_0x1b57();let _0x33d909=_0x1b57ed[_0x4a5a87];return _0x33d909;}export const logger=new Logger();
1
+ const a199_0x1d501c=a199_0x17f3;(function(_0xb964f0,_0x1460e5){const _0x3f44ca=a199_0x17f3,_0x23c9ca=_0xb964f0();while(!![]){try{const _0xc2ac90=parseInt(_0x3f44ca(0x97))/0x1*(parseInt(_0x3f44ca(0xc0))/0x2)+parseInt(_0x3f44ca(0xc8))/0x3*(-parseInt(_0x3f44ca(0xc6))/0x4)+-parseInt(_0x3f44ca(0xbf))/0x5*(parseInt(_0x3f44ca(0x9e))/0x6)+-parseInt(_0x3f44ca(0xcb))/0x7+parseInt(_0x3f44ca(0xac))/0x8*(parseInt(_0x3f44ca(0xba))/0x9)+-parseInt(_0x3f44ca(0xae))/0xa+-parseInt(_0x3f44ca(0x9f))/0xb*(-parseInt(_0x3f44ca(0xb5))/0xc);if(_0xc2ac90===_0x1460e5)break;else _0x23c9ca['push'](_0x23c9ca['shift']());}catch(_0x3317f0){_0x23c9ca['push'](_0x23c9ca['shift']());}}}(a199_0x1649,0x85a52));import a199_0x3b617c from'winston';import a199_0x4b0a8f from'node:fs';function a199_0x17f3(_0x1f36fa,_0x3cefa8){_0x1f36fa=_0x1f36fa-0x95;const _0x164905=a199_0x1649();let _0x17f3b0=_0x164905[_0x1f36fa];return _0x17f3b0;}import a199_0x531c1c from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a199_0x1d501c(0xb6)]='';constructor(){const _0x1dcdc5=a199_0x1d501c;this[_0x1dcdc5(0xc5)]='';}[a199_0x1d501c(0x96)](_0x3a7ba6){const _0x33fd57=a199_0x1d501c;this[_0x33fd57(0xb6)]=_0x3a7ba6;}[a199_0x1d501c(0xa2)](){const _0xfbb7f8=a199_0x1d501c,_0x3f2ebe=a199_0x531c1c[_0xfbb7f8(0xbc)](this[_0xfbb7f8(0xc5)]);!a199_0x4b0a8f[_0xfbb7f8(0xbe)](_0x3f2ebe)&&a199_0x4b0a8f['mkdirSync'](_0x3f2ebe,{'recursive':!![]});const _0x244250=a199_0x3b617c['format']['combine'](a199_0x3b617c['format']['timestamp'](),a199_0x3b617c['format'][_0xfbb7f8(0x9b)]({'stack':!![]}),a199_0x3b617c[_0xfbb7f8(0x98)][_0xfbb7f8(0x9d)](_0x457568=>{const _0x361bf1=_0xfbb7f8,_0x4dce04={'timestamp':_0x457568[_0x361bf1(0xc4)]||new Date()[_0x361bf1(0xa4)](),'level':_0x457568[_0x361bf1(0xaa)]||_0x361bf1(0xa0),'command':_0x457568[_0x361bf1(0xb9)]||'unknown','rawCommand':_0x457568[_0x361bf1(0xca)]||this[_0x361bf1(0xb6)]||undefined,'message':_0x457568[_0x361bf1(0xab)]||'','duration':_0x457568['duration']||undefined,'details':_0x457568[_0x361bf1(0xc2)]||undefined};return JSON[_0x361bf1(0xbd)](_0x4dce04);}));this['winstonLogger']=a199_0x3b617c[_0xfbb7f8(0x95)]({'level':_0xfbb7f8(0xa0),'format':_0x244250,'transports':[new a199_0x3b617c['transports'][(_0xfbb7f8(0xc3))]({'filename':this[_0xfbb7f8(0xc5)],'level':_0xfbb7f8(0xa0)})],'silent':![]}),a199_0x3b617c[_0xfbb7f8(0xad)]({'success':_0xfbb7f8(0xb2),'error':_0xfbb7f8(0xa3),'warn':_0xfbb7f8(0xa1),'info':_0xfbb7f8(0xcd)});}[a199_0x1d501c(0x99)](_0x29686a){const _0x459ea8=a199_0x1d501c;this[_0x459ea8(0xc5)]=a199_0x531c1c[_0x459ea8(0xa7)](_0x29686a,'.lovrabet.log'),this[_0x459ea8(0xbb)]&&this[_0x459ea8(0xbb)][_0x459ea8(0xc9)](),this[_0x459ea8(0xa2)]();}['info'](_0x3c4c14,_0x10da5c,_0xab78b6){const _0x59125d=a199_0x1d501c;if(!this[_0x59125d(0xc5)]||!this[_0x59125d(0xbb)])return;this[_0x59125d(0xbb)]['info'](_0x10da5c,{'command':_0x3c4c14,'details':_0xab78b6});}[a199_0x1d501c(0xc7)](_0x1d049e,_0x338776,_0x277b51,_0x2e5e3e){const _0x490482=a199_0x1d501c;if(!this[_0x490482(0xc5)]||!this['winstonLogger'])return;this[_0x490482(0xbb)][_0x490482(0xa5)]('info',_0x338776,{'level':'success','command':_0x1d049e,'duration':_0x277b51,'details':_0x2e5e3e});}[a199_0x1d501c(0xb1)](_0x5bfa2d,_0x24c5a4,_0x601710){const _0x169301=a199_0x1d501c;if(!this[_0x169301(0xc5)]||!this[_0x169301(0xbb)])return;this[_0x169301(0xbb)][_0x169301(0xb1)](_0x24c5a4,{'command':_0x5bfa2d,'details':_0x601710});}[a199_0x1d501c(0xaf)](_0x45ba26,_0x1b701f,_0x5ae5d6){const _0x38b0ff=a199_0x1d501c;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x38b0ff(0xbb)][_0x38b0ff(0xaf)](_0x1b701f,{'command':_0x45ba26,'details':_0x5ae5d6});}async[a199_0x1d501c(0xa9)](_0x46a3ee,_0x29305f,_0x197310){const _0x2ae001=a199_0x1d501c,_0x4d2b47=Date[_0x2ae001(0xb4)]();this[_0x2ae001(0xa0)](_0x46a3ee,'开始执行:\x20'+_0x29305f);try{const _0x4db0a8=await _0x197310(),_0x112fe2=Date[_0x2ae001(0xb4)]()-_0x4d2b47;return this[_0x2ae001(0xc7)](_0x46a3ee,_0x2ae001(0xb0)+_0x29305f,_0x112fe2),_0x4db0a8;}catch(_0x4c2a40){const _0x5423ad=Date['now']()-_0x4d2b47;this[_0x2ae001(0xb1)](_0x46a3ee,_0x2ae001(0xcc)+_0x29305f,{'error':_0x4c2a40 instanceof Error?_0x4c2a40[_0x2ae001(0xab)]:String(_0x4c2a40),'duration':_0x5423ad});throw _0x4c2a40;}}[a199_0x1d501c(0x9a)](){const _0x591356=a199_0x1d501c;try{if(!a199_0x4b0a8f[_0x591356(0xbe)](this[_0x591356(0xc5)]))return[];const _0x27c194=a199_0x4b0a8f['readFileSync'](this[_0x591356(0xc5)],_0x591356(0xb3));return _0x27c194[_0x591356(0xb8)]('\x0a')[_0x591356(0xa6)](_0x4e76cd=>_0x4e76cd[_0x591356(0xb7)]())['map'](_0x14e28c=>JSON[_0x591356(0xc1)](_0x14e28c));}catch(_0x549322){return console[_0x591356(0xaf)](_0x591356(0x9c),_0x549322),[];}}[a199_0x1d501c(0xce)](){const _0x2523d7=a199_0x1d501c;try{a199_0x4b0a8f[_0x2523d7(0xbe)](this['logFilePath'])&&a199_0x4b0a8f[_0x2523d7(0xa8)](this['logFilePath'],'',_0x2523d7(0xb3));}catch(_0x4610ba){console[_0x2523d7(0xaf)]('Failed\x20to\x20clear\x20logs:',_0x4610ba);}}['getWinstonInstance'](){const _0x1ce44e=a199_0x1d501c;return this[_0x1ce44e(0xbb)];}}export const logger=new Logger();function a199_0x1649(){const _0x61667c=['2vaEKvG','parse','details','File','timestamp','logFilePath','4nYuFph','success','1229091KHZVmU','clear','rawCommand','1437569tbsFcN','失败:\x20','blue','clearLogs','createLogger','setRawCommand','152376BLFdAY','format','setLogPath','readLogs','errors','Failed\x20to\x20read\x20logs:','printf','663420fXbdHg','11UXlnqr','info','yellow','initWinstonLogger','red','toISOString','log','filter','join','writeFileSync','logTask','level','message','65904tBjqdo','addColors','9526840DNGmiu','warn','完成:\x20','error','green','utf8','now','28392744HOOUHQ','currentRawCommand','trim','split','command','405kVxcxE','winstonLogger','dirname','stringify','existsSync','35VgBzDb'];a199_0x1649=function(){return _0x61667c;};return a199_0x1649();}
@@ -1 +1 @@
1
- (function(_0x21aff4,_0x31bc8e){const _0x122fec=a200_0xce77,_0x287676=_0x21aff4();while(!![]){try{const _0x298cad=parseInt(_0x122fec(0x1c4))/0x1*(parseInt(_0x122fec(0x1c7))/0x2)+parseInt(_0x122fec(0x1c3))/0x3*(-parseInt(_0x122fec(0x1c5))/0x4)+-parseInt(_0x122fec(0x1be))/0x5*(-parseInt(_0x122fec(0x1bf))/0x6)+parseInt(_0x122fec(0x1bb))/0x7+parseInt(_0x122fec(0x1bd))/0x8+parseInt(_0x122fec(0x1c2))/0x9+-parseInt(_0x122fec(0x1c1))/0xa;if(_0x298cad===_0x31bc8e)break;else _0x287676['push'](_0x287676['shift']());}catch(_0xff0caf){_0x287676['push'](_0x287676['shift']());}}}(a200_0x45f8,0x59134));function a200_0x45f8(){const _0xd1d172=['2628815CiVlfI','isArray','3415088npdjkg','131635gsVzMR','72cDSvHa','validation','2742840zwYjwc','1925568HYzAzI','2147511oilyxf','1619VpLjMg','4USGNAv','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','28cyMkRI','object'];a200_0x45f8=function(){return _0xd1d172;};return a200_0x45f8();}import{CliErrors}from'../errors.js';function a200_0xce77(_0x209bb9,_0x13efe0){_0x209bb9=_0x209bb9-0x1bb;const _0x45f81f=a200_0x45f8();let _0xce7726=_0x45f81f[_0x209bb9];return _0xce7726;}export function parseJsonParams(_0x160513){const _0x38ce98=a200_0xce77;if(!_0x160513)return undefined;let _0x594c10;try{_0x594c10=JSON['parse'](_0x160513);}catch{throw CliErrors[_0x38ce98(0x1c0)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x160513);}if(!_0x594c10||typeof _0x594c10!==_0x38ce98(0x1c8)||Array[_0x38ce98(0x1bc)](_0x594c10))throw CliErrors[_0x38ce98(0x1c0)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x38ce98(0x1c6));return _0x594c10;}
1
+ (function(_0x225e26,_0x3ed908){const _0x1591de=a200_0x562e,_0x22113c=_0x225e26();while(!![]){try{const _0x1d5b89=parseInt(_0x1591de(0x8c))/0x1+parseInt(_0x1591de(0x8d))/0x2+parseInt(_0x1591de(0x89))/0x3+parseInt(_0x1591de(0x83))/0x4+parseInt(_0x1591de(0x81))/0x5*(-parseInt(_0x1591de(0x84))/0x6)+-parseInt(_0x1591de(0x8a))/0x7*(parseInt(_0x1591de(0x80))/0x8)+-parseInt(_0x1591de(0x86))/0x9;if(_0x1d5b89===_0x3ed908)break;else _0x22113c['push'](_0x22113c['shift']());}catch(_0x12a674){_0x22113c['push'](_0x22113c['shift']());}}}(a200_0x39df,0x51919));import{CliErrors}from'../errors.js';function a200_0x562e(_0x4654d3,_0x5d3c50){_0x4654d3=_0x4654d3-0x80;const _0x39df03=a200_0x39df();let _0x562e20=_0x39df03[_0x4654d3];return _0x562e20;}export function parseJsonParams(_0xd533c7){const _0x157e91=a200_0x562e;if(!_0xd533c7)return undefined;let _0x2ed930;try{_0x2ed930=JSON[_0x157e91(0x8e)](_0xd533c7);}catch{throw CliErrors['validation'](_0x157e91(0x8b)+_0xd533c7);}if(!_0x2ed930||typeof _0x2ed930!==_0x157e91(0x87)||Array[_0x157e91(0x85)](_0x2ed930))throw CliErrors[_0x157e91(0x88)](_0x157e91(0x82),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x2ed930;}function a200_0x39df(){const _0x40630c=['994770mIVscJ','isArray','3403170YfkTtw','object','validation','1180929EMrceN','7OAjhtV','Invalid\x20JSON\x20for\x20--params:\x20','614021JNqYaA','1118112fbUVss','parse','4584984CuAQYj','10rApHsi','--params\x20must\x20be\x20a\x20JSON\x20object','200912amorcl'];a200_0x39df=function(){return _0x40630c;};return a200_0x39df();}
@@ -1 +1 @@
1
- function a201_0x45d0(){const _0x11c515=['22668cKzWmU','2928280pLPFtx','2555oTLFli','.cmd','712wQULAu','platform','17846444CQeZGl','6265900urwwRj','48gtVCyz','709380cknPQK','798170wMUQUh','1114mkLwlc','117VXOgCW','win32'];a201_0x45d0=function(){return _0x11c515;};return a201_0x45d0();}const a201_0x547ba4=a201_0xe76a;(function(_0x2c410e,_0x35608e){const _0x39ae17=a201_0xe76a,_0xc6e7ba=_0x2c410e();while(!![]){try{const _0x2d618b=-parseInt(_0x39ae17(0x1cd))/0x1*(parseInt(_0x39ae17(0x1c8))/0x2)+parseInt(_0x39ae17(0x1cb))/0x3*(parseInt(_0x39ae17(0x1cf))/0x4)+-parseInt(_0x39ae17(0x1c4))/0x5+parseInt(_0x39ae17(0x1c5))/0x6*(-parseInt(_0x39ae17(0x1c6))/0x7)+parseInt(_0x39ae17(0x1cc))/0x8+parseInt(_0x39ae17(0x1c9))/0x9*(parseInt(_0x39ae17(0x1c7))/0xa)+parseInt(_0x39ae17(0x1c3))/0xb;if(_0x2d618b===_0x35608e)break;else _0xc6e7ba['push'](_0xc6e7ba['shift']());}catch(_0x18386a){_0xc6e7ba['push'](_0xc6e7ba['shift']());}}}(a201_0x45d0,0xd7d19));export const isWindows=process[a201_0x547ba4(0x1d0)]===a201_0x547ba4(0x1ca);function a201_0xe76a(_0x380155,_0x4d96a2){_0x380155=_0x380155-0x1c3;const _0x45d01c=a201_0x45d0();let _0xe76aaf=_0x45d01c[_0x380155];return _0xe76aaf;}export function resolveNpmBin(_0x3e3d51){const _0x1b72ec=a201_0x547ba4;return isWindows?_0x3e3d51+_0x1b72ec(0x1ce):_0x3e3d51;}
1
+ const a201_0xfa8c0f=a201_0x3a6c;function a201_0x3a6c(_0x443518,_0x1377a6){_0x443518=_0x443518-0x168;const _0x285a34=a201_0x285a();let _0x3a6c80=_0x285a34[_0x443518];return _0x3a6c80;}(function(_0x461f42,_0x358b35){const _0x1671a8=a201_0x3a6c,_0x3c5e58=_0x461f42();while(!![]){try{const _0x5c1f1e=parseInt(_0x1671a8(0x16c))/0x1*(-parseInt(_0x1671a8(0x16a))/0x2)+-parseInt(_0x1671a8(0x173))/0x3+parseInt(_0x1671a8(0x16f))/0x4+-parseInt(_0x1671a8(0x16b))/0x5+-parseInt(_0x1671a8(0x16e))/0x6+-parseInt(_0x1671a8(0x171))/0x7*(-parseInt(_0x1671a8(0x170))/0x8)+parseInt(_0x1671a8(0x169))/0x9;if(_0x5c1f1e===_0x358b35)break;else _0x3c5e58['push'](_0x3c5e58['shift']());}catch(_0x44c607){_0x3c5e58['push'](_0x3c5e58['shift']());}}}(a201_0x285a,0x5166a));function a201_0x285a(){const _0x44ed42=['1725921AvJvXR','platform','9725481tBgUxj','10pgBCFI','3272635oeqHim','48098LXaHUk','.cmd','2051400OMBDnH','2594332uNutCN','80rEaxGt','291515qToZBw','win32'];a201_0x285a=function(){return _0x44ed42;};return a201_0x285a();}export const isWindows=process[a201_0xfa8c0f(0x168)]===a201_0xfa8c0f(0x172);export function resolveNpmBin(_0x3c6b1f){const _0x50f3a4=a201_0xfa8c0f;return isWindows?_0x3c6b1f+_0x50f3a4(0x16d):_0x3c6b1f;}
@@ -1 +1 @@
1
- const a202_0x383b64=a202_0x4b1f;(function(_0x52ade6,_0x46f23e){const _0x2247b0=a202_0x4b1f,_0x4eaa76=_0x52ade6();while(!![]){try{const _0x5571c8=parseInt(_0x2247b0(0x148))/0x1+parseInt(_0x2247b0(0x152))/0x2*(parseInt(_0x2247b0(0x13f))/0x3)+parseInt(_0x2247b0(0x149))/0x4*(-parseInt(_0x2247b0(0x144))/0x5)+-parseInt(_0x2247b0(0x143))/0x6*(parseInt(_0x2247b0(0x14e))/0x7)+-parseInt(_0x2247b0(0x151))/0x8*(-parseInt(_0x2247b0(0x14d))/0x9)+parseInt(_0x2247b0(0x14f))/0xa+parseInt(_0x2247b0(0x142))/0xb*(-parseInt(_0x2247b0(0x14c))/0xc);if(_0x5571c8===_0x46f23e)break;else _0x4eaa76['push'](_0x4eaa76['shift']());}catch(_0x42847b){_0x4eaa76['push'](_0x4eaa76['shift']());}}}(a202_0x18a4,0xd5283));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 _0x31e877=a202_0x4b1f,_0x224269=getTemplateBaseUrl();return _0x224269+_0x31e877(0x153);}function a202_0x18a4(){const _0x1ad59c=['utf-8','147GLExWs','../../templates/rules/lovrabet_rules.mdc.tpl','content','12278838DrHqVi','227802sEzMUx','8307785yKCgWa','lastUpdated','catch','CDN\x20请求失败:\x20','773806wxwadd','4xbHjQk','statusText','agents.md','12mprOut','9ourtHl','217xbrlSR','8691790ZzpQNv','.cursor/rules','11803872LWRNsl','69772AReaCB','/rules/rules.json','CDN\x20返回数据格式错误','application/json','status'];a202_0x18a4=function(){return _0x1ad59c;};return a202_0x18a4();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x383b64(0x140));export async function fetchRulesFromCDN(){const _0x470c5c=a202_0x383b64,_0x57a093=getRulesCdnUrl(),_0x10f7c7=await fetch(_0x57a093,{'headers':{'Accept':_0x470c5c(0x155)}});if(!_0x10f7c7['ok'])throw new Error(_0x470c5c(0x147)+_0x10f7c7[_0x470c5c(0x156)]+'\x20'+_0x10f7c7[_0x470c5c(0x14a)]);const _0x5f2599=await _0x10f7c7['json']();if(!_0x5f2599['content']||typeof _0x5f2599[_0x470c5c(0x141)]!=='string')throw new Error(_0x470c5c(0x154));return _0x5f2599;}export async function getRulesContent(){const _0x488b86=a202_0x383b64;try{const _0x3375d3=await fetchRulesFromCDN();return _0x3375d3[_0x488b86(0x141)];}catch{return readLocalTemplate();}}function a202_0x4b1f(_0x498501,_0x111439){_0x498501=_0x498501-0x13f;const _0x18a439=a202_0x18a4();let _0x4b1ff7=_0x18a439[_0x498501];return _0x4b1ff7;}export function readLocalTemplate(){const _0xfaf676=a202_0x383b64;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0xfaf676(0x157));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1be108){const _0x27c95e=a202_0x383b64,_0x3f99b4=await fetchRulesFromCDN()[_0x27c95e(0x146)](()=>null);let _0x3714a9;_0x3f99b4?(_0x3714a9=_0x3f99b4[_0x27c95e(0x141)],_0x3f99b4[_0x27c95e(0x145)]&&(_0x3714a9=appendUpdateTime(_0x3714a9,_0x3f99b4[_0x27c95e(0x145)]))):_0x3714a9=readLocalTemplate();const _0x37a15=dirname(_0x1be108);!existsSync(_0x37a15)&&mkdirSync(_0x37a15,{'recursive':!![]}),writeFileSync(_0x1be108,_0x3714a9,_0x27c95e(0x157));}export async function copyRulesToCursor(_0x270b27){const _0x27711d=a202_0x383b64,_0x3529b5=join(_0x270b27,_0x27711d(0x150)),_0x544539=join(_0x3529b5,'lovrabet_rules.mdc');if(existsSync(_0x544539))return![];return await writeRulesFile(_0x544539),!![];}export async function copyRulesToAgentsMd(_0x54e506){const _0xb76c8a=a202_0x383b64,_0x49cae9=join(_0x54e506,_0xb76c8a(0x14b));if(existsSync(_0x49cae9))return![];return await writeRulesFile(_0x49cae9),!![];}
1
+ const a202_0x251718=a202_0x1de1;(function(_0x2e08ab,_0x320e29){const _0x33c3ac=a202_0x1de1,_0x1241ea=_0x2e08ab();while(!![]){try{const _0x54aeae=parseInt(_0x33c3ac(0x1f7))/0x1*(parseInt(_0x33c3ac(0x1f4))/0x2)+parseInt(_0x33c3ac(0x1ec))/0x3*(parseInt(_0x33c3ac(0x1fc))/0x4)+parseInt(_0x33c3ac(0x1ea))/0x5*(parseInt(_0x33c3ac(0x1f2))/0x6)+parseInt(_0x33c3ac(0x1e5))/0x7*(parseInt(_0x33c3ac(0x1e3))/0x8)+parseInt(_0x33c3ac(0x1e9))/0x9*(-parseInt(_0x33c3ac(0x1f8))/0xa)+-parseInt(_0x33c3ac(0x1ee))/0xb+-parseInt(_0x33c3ac(0x1e4))/0xc*(parseInt(_0x33c3ac(0x1e1))/0xd);if(_0x54aeae===_0x320e29)break;else _0x1241ea['push'](_0x1241ea['shift']());}catch(_0xdc59d6){_0x1241ea['push'](_0x1241ea['shift']());}}}(a202_0x3326,0x52929));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a202_0x3326(){const _0x443dc3=['本地模板文件不存在:\x20','648052ZQVlwm','13sRbViA','.cursor/rules','219272rrvkTu','9624612OnJyev','168AXroAb','json','lovrabet_rules.mdc','agents.md','1746558epRvwg','155XgZWpi','utf-8','3Augtdp','application/json','660033YXVjrz','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','statusText','90198tohHOd','../../templates/rules/lovrabet_rules.mdc.tpl','216962GMBENd','lastUpdated','string','1CJJFmm','10iJDhdl','status','content'];a202_0x3326=function(){return _0x443dc3;};return a202_0x3326();}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 _0x38302f=getTemplateBaseUrl();return _0x38302f+'/rules/rules.json';}function a202_0x1de1(_0x2a0313,_0x366762){_0x2a0313=_0x2a0313-0x1e1;const _0x332653=a202_0x3326();let _0x1de197=_0x332653[_0x2a0313];return _0x1de197;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a202_0x251718(0x1f3));export async function fetchRulesFromCDN(){const _0x3c15ce=a202_0x251718,_0x9cf403=getRulesCdnUrl(),_0x2fcaa1=await fetch(_0x9cf403,{'headers':{'Accept':_0x3c15ce(0x1ed)}});if(!_0x2fcaa1['ok'])throw new Error(_0x3c15ce(0x1ef)+_0x2fcaa1[_0x3c15ce(0x1f9)]+'\x20'+_0x2fcaa1[_0x3c15ce(0x1f1)]);const _0xe558ab=await _0x2fcaa1[_0x3c15ce(0x1e6)]();if(!_0xe558ab[_0x3c15ce(0x1fa)]||typeof _0xe558ab[_0x3c15ce(0x1fa)]!==_0x3c15ce(0x1f6))throw new Error(_0x3c15ce(0x1f0));return _0xe558ab;}export async function getRulesContent(){const _0x28e39e=a202_0x251718;try{const _0x2020ba=await fetchRulesFromCDN();return _0x2020ba[_0x28e39e(0x1fa)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3cbd0a=a202_0x251718;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3cbd0a(0x1eb));throw new Error(_0x3cbd0a(0x1fb)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x123644){const _0x308493=a202_0x251718,_0x373706=await fetchRulesFromCDN()['catch'](()=>null);let _0x47e572;_0x373706?(_0x47e572=_0x373706[_0x308493(0x1fa)],_0x373706[_0x308493(0x1f5)]&&(_0x47e572=appendUpdateTime(_0x47e572,_0x373706[_0x308493(0x1f5)]))):_0x47e572=readLocalTemplate();const _0x3a0808=dirname(_0x123644);!existsSync(_0x3a0808)&&mkdirSync(_0x3a0808,{'recursive':!![]}),writeFileSync(_0x123644,_0x47e572,_0x308493(0x1eb));}export async function copyRulesToCursor(_0x2b9bc7){const _0x2b100c=a202_0x251718,_0x514f76=join(_0x2b9bc7,_0x2b100c(0x1e2)),_0x23bf59=join(_0x514f76,_0x2b100c(0x1e7));if(existsSync(_0x23bf59))return![];return await writeRulesFile(_0x23bf59),!![];}export async function copyRulesToAgentsMd(_0x1fe272){const _0x25965a=a202_0x251718,_0x206b7a=join(_0x1fe272,_0x25965a(0x1e8));if(existsSync(_0x206b7a))return![];return await writeRulesFile(_0x206b7a),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x52d104){return new Promise(_0x395676=>setTimeout(_0x395676,_0x52d104));}
1
+ export function sleep(_0x1e98f6){return new Promise(_0x27b697=>setTimeout(_0x27b697,_0x1e98f6));}
@@ -1 +1 @@
1
- const a204_0x5ac0e9=a204_0x492f;(function(_0x5d8ea4,_0x1b2023){const _0x4fbed5=a204_0x492f,_0x539a1c=_0x5d8ea4();while(!![]){try{const _0x2bfec6=-parseInt(_0x4fbed5(0x17c))/0x1*(parseInt(_0x4fbed5(0x15d))/0x2)+-parseInt(_0x4fbed5(0x18e))/0x3+parseInt(_0x4fbed5(0x16b))/0x4*(-parseInt(_0x4fbed5(0x16c))/0x5)+-parseInt(_0x4fbed5(0x197))/0x6+-parseInt(_0x4fbed5(0x176))/0x7*(-parseInt(_0x4fbed5(0x15f))/0x8)+parseInt(_0x4fbed5(0x188))/0x9*(parseInt(_0x4fbed5(0x1a1))/0xa)+-parseInt(_0x4fbed5(0x18a))/0xb*(-parseInt(_0x4fbed5(0x194))/0xc);if(_0x2bfec6===_0x1b2023)break;else _0x539a1c['push'](_0x539a1c['shift']());}catch(_0x1f84b5){_0x539a1c['push'](_0x539a1c['shift']());}}}(a204_0x4957,0xc8da4));import a204_0x59ab08 from'node:fs';import a204_0xaaf136 from'node:path';function a204_0x4957(){const _0x5bbfa0=['getHours','YourModel','toLowerCase','name','pop','toISOString','模板内容替换失败','name:\x20\x22','1076652INLtvT','readdir','1719278mVFQhx','map','.jsx','pad','628152BeSypm','开始处理模板内容替换','.json','split','utf8','replace','72xbyQqk','template','extname','8185662GEaMDz','\x0a\x20\x20\x20\x20{\x20','default','\x20},','success','mkdir','processDirectory','formatLocalTimestamp','getDate','.tpl','120nBDqYl','info','tableName:\x20\x22','copyFile','2oZZkLY','.tsx','4424pINrtj','promises','LOVRABET','tableName','padStart','.md','error','replaceContent','alias','getMonth','replaceApiContent','now','32776iKIoRb','85jGWWoi','datasetCode','getMinutes','isDirectory','processFile','slice','.ts','toComponentName','join','includes','10633tjTjmn','.css','alias:\x20\x22','toDisplayTitle','.js','endsWith','677680JmXEtk','datasetCode:\x20\x22','processTemplate','message'];a204_0x4957=function(){return _0x5bbfa0;};return a204_0x4957();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a204_0x492f(_0x4c6b5c,_0x5c695c){_0x4c6b5c=_0x4c6b5c-0x15a;const _0x495751=a204_0x4957();let _0x492fff=_0x495751[_0x4c6b5c];return _0x492fff;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5e9e81){const _0x5a8e2c=a204_0x492f;return String(_0x5e9e81)[_0x5a8e2c(0x163)](0x2,'0');}static[a204_0x5ac0e9(0x19e)](_0x4e309f){const _0x25f995=a204_0x5ac0e9,_0x570b78=_0x4e309f['getFullYear'](),_0x1b5fec=this[_0x25f995(0x18d)](_0x4e309f[_0x25f995(0x168)]()+0x1),_0x2b3881=this[_0x25f995(0x18d)](_0x4e309f[_0x25f995(0x19f)]()),_0x53b625=this[_0x25f995(0x18d)](_0x4e309f[_0x25f995(0x180)]()),_0x19b234=this[_0x25f995(0x18d)](_0x4e309f[_0x25f995(0x16e)]()),_0x29ce23=this[_0x25f995(0x18d)](_0x4e309f['getSeconds']());return{'createdAt':_0x570b78+'-'+_0x1b5fec+'-'+_0x2b3881+'\x20'+_0x53b625+':'+_0x19b234+':'+_0x29ce23,'createdDate':_0x570b78+'-'+_0x1b5fec+'-'+_0x2b3881,'createdTime':_0x53b625+':'+_0x19b234+':'+_0x29ce23};}static[a204_0x5ac0e9(0x173)](_0x248912){const _0x3350c9=a204_0x5ac0e9,_0xf995bd=_0x248912[_0x3350c9(0x191)]('/')[_0x3350c9(0x184)]()||_0x248912;return _0xf995bd['split']('-')[_0x3350c9(0x18b)](_0x45a040=>_0x45a040['charAt'](0x0)['toUpperCase']()+_0x45a040[_0x3350c9(0x171)](0x1)['toLowerCase']())[_0x3350c9(0x174)]('');}static['toDisplayTitle'](_0x49ed69){const _0x2934b7=a204_0x5ac0e9,_0x5d2465=_0x49ed69['split']('/')[_0x2934b7(0x184)]()||_0x49ed69;return _0x5d2465[_0x2934b7(0x191)]('-')[_0x2934b7(0x18b)](_0x2f7ed5=>_0x2f7ed5['charAt'](0x0)['toUpperCase']()+_0x2f7ed5['slice'](0x1)['toLowerCase']())[_0x2934b7(0x174)]('\x20');}static['replaceContent'](_0x476f98,_0x4b7b02,_0x2c6ab3){const _0x346b95=a204_0x5ac0e9,_0x16ec4d=this[_0x346b95(0x173)](_0x4b7b02),_0x5388b8=this[_0x346b95(0x179)](_0x4b7b02),{createdAt:_0x5ea1b2,createdDate:_0x4ee7f4,createdTime:_0x372c36}=this[_0x346b95(0x19e)](new Date());let _0x38cf0c=_0x476f98[_0x346b95(0x193)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x16ec4d)['replace'](/\{DisplayTitle\}/g,_0x5388b8)[_0x346b95(0x193)](/\{PageName\}/g,_0x4b7b02)[_0x346b95(0x193)](/\{TemplateName\}/g,_0x2c6ab3)[_0x346b95(0x193)](/\{CreatedAt\}/g,_0x5ea1b2)[_0x346b95(0x193)](/\{CreatedDate\}/g,_0x4ee7f4)[_0x346b95(0x193)](/\{CreatedTime\}/g,_0x372c36);return _0x38cf0c;}static[a204_0x5ac0e9(0x169)](_0x324779,_0x34d720,_0x243945,_0x4502fb,_0x17522a,_0x2d995d,_0x12b65e,_0x1716ed){const _0x5b172f=a204_0x5ac0e9,_0x3456d7=new Date(),_0x3cf2c3=_0x3456d7[_0x5b172f(0x185)](),_0x326966=_0x243945[_0x5b172f(0x18b)](_0x2f53ac=>{const _0x46157d=_0x5b172f,_0x3533f0=[_0x46157d(0x17d)+_0x2f53ac[_0x46157d(0x16d)]+'\x22',_0x46157d(0x15b)+_0x2f53ac[_0x46157d(0x162)]+'\x22',_0x46157d(0x187)+_0x2f53ac['name']+'\x22'];return _0x2f53ac[_0x46157d(0x167)]&&_0x3533f0['push'](_0x46157d(0x178)+_0x2f53ac[_0x46157d(0x167)]+'\x22'),_0x46157d(0x198)+_0x3533f0[_0x46157d(0x174)](',\x20')+_0x46157d(0x19a);})[_0x5b172f(0x174)](''),_0x59c518=_0x4502fb||_0x243945[0x0]?.[_0x5b172f(0x167)]||_0x5b172f(0x181);let _0x3fb894=_0x324779[_0x5b172f(0x193)](/\{AppCode\}/g,_0x34d720)['replace'](/\{ModelConfigs\}/g,_0x326966)['replace'](/\{ExampleModelName\}/g,_0x59c518)[_0x5b172f(0x193)](/\{ApiFileName\}/g,_0x17522a||'api')['replace'](/\{ConfigName\}/g,_0x2d995d||_0x5b172f(0x199))['replace'](/\{ClientConfigParam\}/g,_0x12b65e||'')[_0x5b172f(0x193)](/\{VarPrefix\}/g,_0x1716ed||_0x5b172f(0x161))[_0x5b172f(0x193)](/\{CreatedAt\}/g,_0x3cf2c3);return _0x3fb894;}static async[a204_0x5ac0e9(0x17e)](_0x1d5fa3,_0x1f6098,_0x2717c1,_0x4f5fed,_0x58ca14=!![]){const _0x3254b7=a204_0x5ac0e9,_0x5e9d70=Date['now']();try{_0x58ca14&&logger[_0x3254b7(0x15a)]('template',_0x3254b7(0x18f),{'templatePath':_0x1d5fa3,'targetPath':_0x1f6098,'pageName':_0x2717c1,'templateName':_0x4f5fed});await a204_0x59ab08[_0x3254b7(0x160)][_0x3254b7(0x19c)](_0x1f6098,{'recursive':!![]}),await this[_0x3254b7(0x19d)](_0x1d5fa3,_0x1f6098,_0x2717c1,_0x4f5fed);if(_0x58ca14){const _0x34695c=Date[_0x3254b7(0x16a)]()-_0x5e9d70;logger[_0x3254b7(0x19b)](_0x3254b7(0x195),'模板内容替换完成',_0x34695c,{'pageName':_0x2717c1,'templateName':_0x4f5fed});}}catch(_0x2477f2){if(_0x58ca14){const _0xd8b801=Date[_0x3254b7(0x16a)]()-_0x5e9d70;logger[_0x3254b7(0x165)](_0x3254b7(0x195),_0x3254b7(0x186),{'templatePath':_0x1d5fa3,'targetPath':_0x1f6098,'pageName':_0x2717c1,'templateName':_0x4f5fed,'error':_0x2477f2 instanceof Error?_0x2477f2[_0x3254b7(0x17f)]:String(_0x2477f2),'duration':_0xd8b801});}throw _0x2477f2;}}static async[a204_0x5ac0e9(0x19d)](_0x5d38ce,_0x52fd57,_0x5b1be8,_0x100261){const _0x40a162=a204_0x5ac0e9,_0x132983=await a204_0x59ab08[_0x40a162(0x160)][_0x40a162(0x189)](_0x5d38ce,{'withFileTypes':!![]});for(const _0x275fda of _0x132983){const _0x5230a0=a204_0xaaf136[_0x40a162(0x174)](_0x5d38ce,_0x275fda[_0x40a162(0x183)]);let _0xce00c=a204_0xaaf136['join'](_0x52fd57,_0x275fda['name']);_0x275fda[_0x40a162(0x183)]['endsWith'](_0x40a162(0x1a0))&&(_0xce00c=a204_0xaaf136[_0x40a162(0x174)](_0x52fd57,_0x275fda['name'][_0x40a162(0x193)](/\.tpl$/,'')));if(_0x275fda[_0x40a162(0x16f)]())await a204_0x59ab08[_0x40a162(0x160)][_0x40a162(0x19c)](_0xce00c,{'recursive':!![]}),await this[_0x40a162(0x19d)](_0x5230a0,_0xce00c,_0x5b1be8,_0x100261);else _0x275fda['isFile']()&&await this[_0x40a162(0x170)](_0x5230a0,_0xce00c,_0x5b1be8,_0x100261);}}static async[a204_0x5ac0e9(0x170)](_0x45483f,_0x437752,_0x27c317,_0x1f1c10){const _0x56f102=a204_0x5ac0e9,_0x215fb4=a204_0xaaf136[_0x56f102(0x196)](_0x45483f)[_0x56f102(0x182)]();_0x45483f[_0x56f102(0x17b)](_0x56f102(0x1a0))&&(_0x437752=_0x437752[_0x56f102(0x193)](/\.tpl$/,''));const _0x324aa3=[_0x56f102(0x15e),_0x56f102(0x172),_0x56f102(0x18c),_0x56f102(0x17a),_0x56f102(0x190),_0x56f102(0x164),_0x56f102(0x177),'.scss','.tpl'];if(_0x324aa3[_0x56f102(0x175)](_0x215fb4)||_0x45483f[_0x56f102(0x17b)](_0x56f102(0x1a0))){const _0x1f9d69=await a204_0x59ab08[_0x56f102(0x160)]['readFile'](_0x45483f,_0x56f102(0x192)),_0x3cc9fc=this[_0x56f102(0x166)](_0x1f9d69,_0x27c317,_0x1f1c10);await a204_0x59ab08[_0x56f102(0x160)]['writeFile'](_0x437752,_0x3cc9fc,'utf8');}else await a204_0x59ab08[_0x56f102(0x160)][_0x56f102(0x15c)](_0x45483f,_0x437752);}}
1
+ function a204_0x3dbf(){const _0xa26bcd=['slice','readFile','success','11358iCdkIc','name','7803000eaXABQ','processTemplate','datasetCode','replace','模板内容替换完成','1899968vXcygJ','1468530vWjbye','template','extname','replaceContent','tableName','isDirectory','promises','pad','YourModel','toUpperCase','368406UEPjFs','8lEsOJc','.json','toDisplayTitle','readdir','info','split','模板内容替换失败','utf8','default','formatLocalTimestamp','isFile','getFullYear','writeFile','getMinutes','getSeconds','.md','error','2155455rmhlCy','push','api','pop','toComponentName','processDirectory','.scss','now','\x0a\x20\x20\x20\x20{\x20','.css','message','endsWith','copyFile','mkdir','10032aTWwvJ','.tpl','toISOString','1912lCBJoJ','join','72sPwVVa','toLowerCase','LOVRABET','name:\x20\x22','datasetCode:\x20\x22','map','charAt','alias:\x20\x22','.js','processFile','alias'];a204_0x3dbf=function(){return _0xa26bcd;};return a204_0x3dbf();}const a204_0x2a9413=a204_0x2921;(function(_0x21108e,_0x20fd8a){const _0x4c2b5d=a204_0x2921,_0x1edf60=_0x21108e();while(!![]){try{const _0x54cb66=parseInt(_0x4c2b5d(0xc6))/0x1*(-parseInt(_0x4c2b5d(0xc1))/0x2)+-parseInt(_0x4c2b5d(0xe6))/0x3*(-parseInt(_0x4c2b5d(0xe7))/0x4)+parseInt(_0x4c2b5d(0xb3))/0x5+-parseInt(_0x4c2b5d(0xdc))/0x6+-parseInt(_0x4c2b5d(0xdb))/0x7+parseInt(_0x4c2b5d(0xc4))/0x8*(-parseInt(_0x4c2b5d(0xd4))/0x9)+parseInt(_0x4c2b5d(0xd6))/0xa;if(_0x54cb66===_0x20fd8a)break;else _0x1edf60['push'](_0x1edf60['shift']());}catch(_0x576ea5){_0x1edf60['push'](_0x1edf60['shift']());}}}(a204_0x3dbf,0x43e1e));import a204_0x107c1c from'node:fs';import a204_0x20d27a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a204_0x2921(_0x47d8e4,_0x2f38a4){_0x47d8e4=_0x47d8e4-0xa8;const _0x3dbfef=a204_0x3dbf();let _0x2921a0=_0x3dbfef[_0x47d8e4];return _0x2921a0;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x2a9413(0xe3)](_0x5bacf5){return String(_0x5bacf5)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x327f06){const _0x356c29=a204_0x2a9413,_0x450d52=_0x327f06[_0x356c29(0xad)](),_0x55675=this[_0x356c29(0xe3)](_0x327f06['getMonth']()+0x1),_0x5e48d3=this[_0x356c29(0xe3)](_0x327f06['getDate']()),_0x5162c0=this[_0x356c29(0xe3)](_0x327f06['getHours']()),_0x44a604=this[_0x356c29(0xe3)](_0x327f06[_0x356c29(0xaf)]()),_0x3c85d6=this[_0x356c29(0xe3)](_0x327f06[_0x356c29(0xb0)]());return{'createdAt':_0x450d52+'-'+_0x55675+'-'+_0x5e48d3+'\x20'+_0x5162c0+':'+_0x44a604+':'+_0x3c85d6,'createdDate':_0x450d52+'-'+_0x55675+'-'+_0x5e48d3,'createdTime':_0x5162c0+':'+_0x44a604+':'+_0x3c85d6};}static[a204_0x2a9413(0xb7)](_0x496a6a){const _0x419457=a204_0x2a9413,_0x3a866d=_0x496a6a[_0x419457(0xec)]('/')[_0x419457(0xb6)]()||_0x496a6a;return _0x3a866d[_0x419457(0xec)]('-')['map'](_0x159f3d=>_0x159f3d[_0x419457(0xcc)](0x0)[_0x419457(0xe5)]()+_0x159f3d['slice'](0x1)[_0x419457(0xc7)]())['join']('');}static[a204_0x2a9413(0xe9)](_0xd173f){const _0x37136b=a204_0x2a9413,_0x23a871=_0xd173f[_0x37136b(0xec)]('/')[_0x37136b(0xb6)]()||_0xd173f;return _0x23a871[_0x37136b(0xec)]('-')[_0x37136b(0xcb)](_0x456b58=>_0x456b58[_0x37136b(0xcc)](0x0)[_0x37136b(0xe5)]()+_0x456b58[_0x37136b(0xd1)](0x1)[_0x37136b(0xc7)]())[_0x37136b(0xc5)]('\x20');}static[a204_0x2a9413(0xdf)](_0x4c8885,_0x5e7960,_0x447dbe){const _0x12a6f8=a204_0x2a9413,_0x54a866=this[_0x12a6f8(0xb7)](_0x5e7960),_0x59b67b=this['toDisplayTitle'](_0x5e7960),{createdAt:_0x2aa573,createdDate:_0x107d83,createdTime:_0x8982fc}=this[_0x12a6f8(0xab)](new Date());let _0x2c282e=_0x4c8885[_0x12a6f8(0xd9)](/\{CliVersion\}/g,CLI_VERSION)[_0x12a6f8(0xd9)](/\{ComponentName\}/g,_0x54a866)[_0x12a6f8(0xd9)](/\{DisplayTitle\}/g,_0x59b67b)[_0x12a6f8(0xd9)](/\{PageName\}/g,_0x5e7960)[_0x12a6f8(0xd9)](/\{TemplateName\}/g,_0x447dbe)[_0x12a6f8(0xd9)](/\{CreatedAt\}/g,_0x2aa573)[_0x12a6f8(0xd9)](/\{CreatedDate\}/g,_0x107d83)[_0x12a6f8(0xd9)](/\{CreatedTime\}/g,_0x8982fc);return _0x2c282e;}static['replaceApiContent'](_0x2de1b2,_0x669b94,_0x2a2beb,_0x11c806,_0x25c2a2,_0x1192ea,_0x12e7de,_0x3807b8){const _0x2217a0=a204_0x2a9413,_0x37b5da=new Date(),_0x5da266=_0x37b5da[_0x2217a0(0xc3)](),_0x55de60=_0x2a2beb[_0x2217a0(0xcb)](_0x48c39f=>{const _0x1e83c4=_0x2217a0,_0x23b3a7=[_0x1e83c4(0xca)+_0x48c39f[_0x1e83c4(0xd8)]+'\x22','tableName:\x20\x22'+_0x48c39f[_0x1e83c4(0xe0)]+'\x22',_0x1e83c4(0xc9)+_0x48c39f[_0x1e83c4(0xd5)]+'\x22'];return _0x48c39f['alias']&&_0x23b3a7[_0x1e83c4(0xb4)](_0x1e83c4(0xcd)+_0x48c39f[_0x1e83c4(0xd0)]+'\x22'),_0x1e83c4(0xbb)+_0x23b3a7['join'](',\x20')+'\x20},';})[_0x2217a0(0xc5)](''),_0x5bdf21=_0x11c806||_0x2a2beb[0x0]?.[_0x2217a0(0xd0)]||_0x2217a0(0xe4);let _0x4b5bca=_0x2de1b2[_0x2217a0(0xd9)](/\{AppCode\}/g,_0x669b94)['replace'](/\{ModelConfigs\}/g,_0x55de60)[_0x2217a0(0xd9)](/\{ExampleModelName\}/g,_0x5bdf21)[_0x2217a0(0xd9)](/\{ApiFileName\}/g,_0x25c2a2||_0x2217a0(0xb5))[_0x2217a0(0xd9)](/\{ConfigName\}/g,_0x1192ea||_0x2217a0(0xaa))[_0x2217a0(0xd9)](/\{ClientConfigParam\}/g,_0x12e7de||'')[_0x2217a0(0xd9)](/\{VarPrefix\}/g,_0x3807b8||_0x2217a0(0xc8))[_0x2217a0(0xd9)](/\{CreatedAt\}/g,_0x5da266);return _0x4b5bca;}static async[a204_0x2a9413(0xd7)](_0x250a0c,_0x41230c,_0x5c8ea0,_0x5b1460,_0x45433b=!![]){const _0x4bd6a3=a204_0x2a9413,_0x2ba2d7=Date[_0x4bd6a3(0xba)]();try{_0x45433b&&logger[_0x4bd6a3(0xeb)](_0x4bd6a3(0xdd),'开始处理模板内容替换',{'templatePath':_0x250a0c,'targetPath':_0x41230c,'pageName':_0x5c8ea0,'templateName':_0x5b1460});await a204_0x107c1c[_0x4bd6a3(0xe2)][_0x4bd6a3(0xc0)](_0x41230c,{'recursive':!![]}),await this[_0x4bd6a3(0xb8)](_0x250a0c,_0x41230c,_0x5c8ea0,_0x5b1460);if(_0x45433b){const _0x49168d=Date[_0x4bd6a3(0xba)]()-_0x2ba2d7;logger[_0x4bd6a3(0xd3)](_0x4bd6a3(0xdd),_0x4bd6a3(0xda),_0x49168d,{'pageName':_0x5c8ea0,'templateName':_0x5b1460});}}catch(_0x14f624){if(_0x45433b){const _0x5505ef=Date[_0x4bd6a3(0xba)]()-_0x2ba2d7;logger[_0x4bd6a3(0xb2)]('template',_0x4bd6a3(0xa8),{'templatePath':_0x250a0c,'targetPath':_0x41230c,'pageName':_0x5c8ea0,'templateName':_0x5b1460,'error':_0x14f624 instanceof Error?_0x14f624[_0x4bd6a3(0xbd)]:String(_0x14f624),'duration':_0x5505ef});}throw _0x14f624;}}static async[a204_0x2a9413(0xb8)](_0x96cf1,_0x19a2af,_0x5b2598,_0x43c862){const _0x2f759c=a204_0x2a9413,_0x296a0f=await a204_0x107c1c[_0x2f759c(0xe2)][_0x2f759c(0xea)](_0x96cf1,{'withFileTypes':!![]});for(const _0x529d4b of _0x296a0f){const _0x3bc21f=a204_0x20d27a[_0x2f759c(0xc5)](_0x96cf1,_0x529d4b[_0x2f759c(0xd5)]);let _0x853abd=a204_0x20d27a[_0x2f759c(0xc5)](_0x19a2af,_0x529d4b['name']);_0x529d4b[_0x2f759c(0xd5)][_0x2f759c(0xbe)](_0x2f759c(0xc2))&&(_0x853abd=a204_0x20d27a[_0x2f759c(0xc5)](_0x19a2af,_0x529d4b[_0x2f759c(0xd5)]['replace'](/\.tpl$/,'')));if(_0x529d4b[_0x2f759c(0xe1)]())await a204_0x107c1c[_0x2f759c(0xe2)][_0x2f759c(0xc0)](_0x853abd,{'recursive':!![]}),await this['processDirectory'](_0x3bc21f,_0x853abd,_0x5b2598,_0x43c862);else _0x529d4b[_0x2f759c(0xac)]()&&await this[_0x2f759c(0xcf)](_0x3bc21f,_0x853abd,_0x5b2598,_0x43c862);}}static async['processFile'](_0x4cde2b,_0x10f50f,_0x123ac6,_0x4a1ef6){const _0x19f263=a204_0x2a9413,_0x328fbe=a204_0x20d27a[_0x19f263(0xde)](_0x4cde2b)['toLowerCase']();_0x4cde2b[_0x19f263(0xbe)](_0x19f263(0xc2))&&(_0x10f50f=_0x10f50f[_0x19f263(0xd9)](/\.tpl$/,''));const _0x96f1d3=['.tsx','.ts','.jsx',_0x19f263(0xce),_0x19f263(0xe8),_0x19f263(0xb1),_0x19f263(0xbc),_0x19f263(0xb9),_0x19f263(0xc2)];if(_0x96f1d3['includes'](_0x328fbe)||_0x4cde2b[_0x19f263(0xbe)](_0x19f263(0xc2))){const _0x926e68=await a204_0x107c1c[_0x19f263(0xe2)][_0x19f263(0xd2)](_0x4cde2b,_0x19f263(0xa9)),_0x281587=this[_0x19f263(0xdf)](_0x926e68,_0x123ac6,_0x4a1ef6);await a204_0x107c1c['promises'][_0x19f263(0xae)](_0x10f50f,_0x281587,_0x19f263(0xa9));}else await a204_0x107c1c[_0x19f263(0xe2)][_0x19f263(0xbf)](_0x4cde2b,_0x10f50f);}}