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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x386121,_0x357158){const _0x207f2d=a183_0x5e12,_0x29d307=_0x386121();while(!![]){try{const _0x326ce8=parseInt(_0x207f2d(0x165))/0x1*(parseInt(_0x207f2d(0x16b))/0x2)+parseInt(_0x207f2d(0x168))/0x3+-parseInt(_0x207f2d(0x163))/0x4+parseInt(_0x207f2d(0x167))/0x5*(-parseInt(_0x207f2d(0x162))/0x6)+parseInt(_0x207f2d(0x169))/0x7*(-parseInt(_0x207f2d(0x16f))/0x8)+parseInt(_0x207f2d(0x161))/0x9*(parseInt(_0x207f2d(0x16e))/0xa)+parseInt(_0x207f2d(0x16d))/0xb;if(_0x326ce8===_0x357158)break;else _0x29d307['push'](_0x29d307['shift']());}catch(_0x199968){_0x29d307['push'](_0x29d307['shift']());}}}(a183_0x408f,0x4b42a));function a183_0x5e12(_0x138e98,_0x436524){_0x138e98=_0x138e98-0x161;const _0x408fe6=a183_0x408f();let _0x5e12ee=_0x408fe6[_0x138e98];return _0x5e12ee;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a183_0x408f(){const _0x5aa989=['redactionCount','6127792iWWWFI','2681060DxPRxk','3712amgrhj','join','9jMViDk','1759584qQsdiy','904860yHqVHN','sanitize','2GjUIjo','redactionKinds','10EnqLzu','991689NktkVm','2989YuXdrW','originalBytes','163396sLEkgO'];a183_0x408f=function(){return _0x5aa989;};return a183_0x408f();}export async function sendPlatformIssueCollectLog(_0x4e4072){const _0xe1e409=a183_0x5e12;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4e4072['title'],'issue.description':_0x4e4072['description'],..._0x4e4072['sanitize']?{'issue.description_original_bytes':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x16a)],'issue.description_truncated':_0x4e4072[_0xe1e409(0x164)]['truncated'],'issue.description_redactions':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x16c)],'issue.description_redaction_kinds':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x166)][_0xe1e409(0x170)](',')}:{}}});}
1
+ const a183_0x221bb1=a183_0x3fad;(function(_0x74fae8,_0x3e2541){const _0x273c73=a183_0x3fad,_0x344eea=_0x74fae8();while(!![]){try{const _0x5bce1e=-parseInt(_0x273c73(0xb0))/0x1+parseInt(_0x273c73(0xa8))/0x2*(-parseInt(_0x273c73(0xaa))/0x3)+parseInt(_0x273c73(0xa1))/0x4*(parseInt(_0x273c73(0xa2))/0x5)+-parseInt(_0x273c73(0xa5))/0x6+-parseInt(_0x273c73(0xac))/0x7*(parseInt(_0x273c73(0xa9))/0x8)+parseInt(_0x273c73(0xa4))/0x9*(parseInt(_0x273c73(0xae))/0xa)+parseInt(_0x273c73(0xa6))/0xb*(parseInt(_0x273c73(0xab))/0xc);if(_0x5bce1e===_0x3e2541)break;else _0x344eea['push'](_0x344eea['shift']());}catch(_0x5586f5){_0x344eea['push'](_0x344eea['shift']());}}}(a183_0x40c6,0xbbd0d));function a183_0x40c6(){const _0x1f593e=['7329354pLcIZt','156739lmHZbx','redactionCount','27154StAAma','76600yebUva','216SlunbG','3252nRIfHw','777XlVHwR','redactionKinds','1885310KmQjUx','truncated','1486228oceglz','join','issue.log.collect','sanitize','platform-issue-log-collect','title','4lHVAcU','7337195BinqPS','originalBytes','9jUuxFO'];a183_0x40c6=function(){return _0x1f593e;};return a183_0x40c6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0x3fad(_0x262275,_0x48ffee){_0x262275=_0x262275-0x9c;const _0x40c669=a183_0x40c6();let _0x3fadf9=_0x40c669[_0x262275];return _0x3fadf9;}export const PLATFORM_ISSUE_TRACE_NAME=a183_0x221bb1(0x9f);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x221bb1(0x9d);export async function sendPlatformIssueCollectLog(_0xf8dfb1){const _0x26783f=a183_0x221bb1;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xf8dfb1[_0x26783f(0xa0)],'issue.description':_0xf8dfb1['description'],..._0xf8dfb1[_0x26783f(0x9e)]?{'issue.description_original_bytes':_0xf8dfb1['sanitize'][_0x26783f(0xa3)],'issue.description_truncated':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xaf)],'issue.description_redactions':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xa7)],'issue.description_redaction_kinds':_0xf8dfb1[_0x26783f(0x9e)][_0x26783f(0xad)][_0x26783f(0x9c)](',')}:{}}});}
@@ -1 +1 @@
1
- const a185_0x31cc3=a185_0x283b;function a185_0x283b(_0x1bb419,_0x321605){_0x1bb419=_0x1bb419-0x1da;const _0x1d0208=a185_0x1d02();let _0x283b3d=_0x1d0208[_0x1bb419];return _0x283b3d;}function a185_0x1d02(){const _0x304674=['claude','.windsurf','qoder','.qoder/skills/lovrabet/SKILL.md','.claude','.cursorrules','codebuddy','.agent','Claude\x20Code','1033404jRjjmO','2YjqMfi','.qoder','.cursor','.codebuddy/skills/lovrabet/SKILL.md','Codex','CodeBuddy','.opencode/skills/lovrabet/SKILL.md','antigravity','cursor','.agent/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','95890jhAMuh','2104yRzCtA','2607Kfqweh','.cline/skills/lovrabet/SKILL.md','Windsurf','371916xNhlGy','其他\x20(通用模板)','Cline','272291PQLmkO','.codebuddy','Qoder\x20IDE','Windsurf\x20IDE','Cursor\x20IDE','Trae','77495sZCoPk','.trae','.codex','325980VJUtsk','windsurf','SKILL.md.tpl','opencode','Qoder','codex','cline','OpenCode\x20IDE','trae','CodeBuddy\x20IDE','2961CBHXvh','Cursor','file','Cline\x20IDE','Codex\x20IDE','444ksPIsb'];a185_0x1d02=function(){return _0x304674;};return a185_0x1d02();}(function(_0x14efa0,_0x5b3af6){const _0x17be85=a185_0x283b,_0x244857=_0x14efa0();while(!![]){try{const _0x274ec5=-parseInt(_0x17be85(0x1f2))/0x1*(-parseInt(_0x17be85(0x1df))/0x2)+parseInt(_0x17be85(0x1de))/0x3+parseInt(_0x17be85(0x20a))/0x4*(-parseInt(_0x17be85(0x1f8))/0x5)+-parseInt(_0x17be85(0x1ef))/0x6+parseInt(_0x17be85(0x205))/0x7*(-parseInt(_0x17be85(0x1eb))/0x8)+-parseInt(_0x17be85(0x1fb))/0x9+parseInt(_0x17be85(0x1ea))/0xa*(parseInt(_0x17be85(0x1ec))/0xb);if(_0x274ec5===_0x5b3af6)break;else _0x244857['push'](_0x244857['shift']());}catch(_0x4e6cff){_0x244857['push'](_0x244857['shift']());}}}(a185_0x1d02,0xea414));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x31cc3(0x206),'description':a185_0x31cc3(0x1f6),'folders':[a185_0x31cc3(0x1da),a185_0x31cc3(0x1e1)],'files':[{'type':a185_0x31cc3(0x207),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a185_0x31cc3(0x1ee),'description':a185_0x31cc3(0x1f5),'folders':[a185_0x31cc3(0x20c)],'files':[{'type':a185_0x31cc3(0x207),'path':'.windsurf/workflows/rabetbase.md','template':a185_0x31cc3(0x1fd)}]},'claude':{'name':a185_0x31cc3(0x1dd),'description':a185_0x31cc3(0x1dd),'folders':[a185_0x31cc3(0x20f)],'files':[{'type':a185_0x31cc3(0x207),'path':'.claude/skills/lovrabet/SKILL.md','template':a185_0x31cc3(0x1fd)}]},'cline':{'name':a185_0x31cc3(0x1f1),'description':a185_0x31cc3(0x208),'folders':['.cline'],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1ed),'template':'SKILL.md.tpl'}]},'codex':{'name':a185_0x31cc3(0x1e3),'description':a185_0x31cc3(0x209),'folders':[a185_0x31cc3(0x1fa)],'files':[{'type':a185_0x31cc3(0x207),'path':'.codex/skills/lovrabet/SKILL.md','template':a185_0x31cc3(0x1fd)}]},'opencode':{'name':'OpenCode','description':a185_0x31cc3(0x202),'folders':['.opencode'],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e5),'template':a185_0x31cc3(0x1fd)}]},'qoder':{'name':a185_0x31cc3(0x1ff),'description':a185_0x31cc3(0x1f4),'folders':[a185_0x31cc3(0x1e0)],'files':[{'type':a185_0x31cc3(0x207),'path':'.qoder/rules/rabetbase.md','template':a185_0x31cc3(0x1fd)},{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x20e),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a185_0x31cc3(0x1e4),'description':a185_0x31cc3(0x204),'folders':[a185_0x31cc3(0x1f3)],'files':[{'type':'file','path':a185_0x31cc3(0x1e2),'template':a185_0x31cc3(0x1fd)}]},'trae':{'name':a185_0x31cc3(0x1f7),'description':'Trae\x20IDE','folders':[a185_0x31cc3(0x1f9)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e9),'template':a185_0x31cc3(0x1fd)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x31cc3(0x1f0),'description':'通用模板\x20-\x20兜底方案','folders':[a185_0x31cc3(0x1dc)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e8),'template':a185_0x31cc3(0x1fd)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a185_0x31cc3(0x1dc)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e8),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a185_0x31cc3(0x20b),'cline','codebuddy',a185_0x31cc3(0x200),a185_0x31cc3(0x1e7),'opencode',a185_0x31cc3(0x20d),a185_0x31cc3(0x203),'windsurf'];export const IDE_LIST=[a185_0x31cc3(0x1e6),'claude',a185_0x31cc3(0x201),'codebuddy',a185_0x31cc3(0x200),'cursor',a185_0x31cc3(0x1fe),a185_0x31cc3(0x20d),a185_0x31cc3(0x203),'windsurf','agent'];export const ALL_CORE_IDES=[a185_0x31cc3(0x1e7),a185_0x31cc3(0x1fc),a185_0x31cc3(0x20b),a185_0x31cc3(0x201),a185_0x31cc3(0x200),'opencode',a185_0x31cc3(0x20d),a185_0x31cc3(0x1db),a185_0x31cc3(0x203)];
1
+ const a185_0x5bdafa=a185_0x31da;(function(_0x3dbde2,_0xea6095){const _0x5a8a75=a185_0x31da,_0x6b12b6=_0x3dbde2();while(!![]){try{const _0x2b71fc=parseInt(_0x5a8a75(0x15c))/0x1*(parseInt(_0x5a8a75(0x17b))/0x2)+-parseInt(_0x5a8a75(0x165))/0x3*(-parseInt(_0x5a8a75(0x163))/0x4)+-parseInt(_0x5a8a75(0x149))/0x5+-parseInt(_0x5a8a75(0x152))/0x6+parseInt(_0x5a8a75(0x15d))/0x7*(-parseInt(_0x5a8a75(0x167))/0x8)+parseInt(_0x5a8a75(0x15b))/0x9+parseInt(_0x5a8a75(0x16d))/0xa*(parseInt(_0x5a8a75(0x17d))/0xb);if(_0x2b71fc===_0xea6095)break;else _0x6b12b6['push'](_0x6b12b6['shift']());}catch(_0x26a23e){_0x6b12b6['push'](_0x6b12b6['shift']());}}}(a185_0xc241,0x2891d));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x5bdafa(0x179),'description':'Cursor\x20IDE','folders':[a185_0x5bdafa(0x160),a185_0x5bdafa(0x161)],'files':[{'type':'file','path':a185_0x5bdafa(0x155),'template':a185_0x5bdafa(0x173)}]},'windsurf':{'name':'Windsurf','description':a185_0x5bdafa(0x150),'folders':[a185_0x5bdafa(0x181)],'files':[{'type':'file','path':a185_0x5bdafa(0x170),'template':'SKILL.md.tpl'}]},'claude':{'name':a185_0x5bdafa(0x16f),'description':a185_0x5bdafa(0x16f),'folders':[a185_0x5bdafa(0x162)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x14c),'template':'SKILL.md.tpl'}]},'cline':{'name':a185_0x5bdafa(0x153),'description':'Cline\x20IDE','folders':[a185_0x5bdafa(0x172)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x171),'template':a185_0x5bdafa(0x173)}]},'codex':{'name':'Codex','description':a185_0x5bdafa(0x157),'folders':[a185_0x5bdafa(0x164)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x180),'template':a185_0x5bdafa(0x173)}]},'opencode':{'name':a185_0x5bdafa(0x17f),'description':a185_0x5bdafa(0x16a),'folders':[a185_0x5bdafa(0x16c)],'files':[{'type':a185_0x5bdafa(0x156),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a185_0x5bdafa(0x17e),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a185_0x5bdafa(0x176),'template':a185_0x5bdafa(0x173)},{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x16b),'template':a185_0x5bdafa(0x173)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x5bdafa(0x14b),'folders':['.codebuddy'],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x15a),'template':a185_0x5bdafa(0x173)}]},'trae':{'name':a185_0x5bdafa(0x174),'description':a185_0x5bdafa(0x177),'folders':[a185_0x5bdafa(0x17c)],'files':[{'type':a185_0x5bdafa(0x156),'path':a185_0x5bdafa(0x17a),'template':a185_0x5bdafa(0x173)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x5bdafa(0x14f),'description':a185_0x5bdafa(0x169),'folders':['.agent'],'files':[{'type':a185_0x5bdafa(0x156),'path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]},'antigravity':{'name':a185_0x5bdafa(0x158),'description':a185_0x5bdafa(0x151),'folders':[a185_0x5bdafa(0x178)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a185_0x5bdafa(0x173)}]}};function a185_0x31da(_0x1dec50,_0x544176){_0x1dec50=_0x1dec50-0x149;const _0xc241a9=a185_0xc241();let _0x31dabc=_0xc241a9[_0x1dec50];return _0x31dabc;}export const CORE_IDE_LIST=[a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),'codex',a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),a185_0x5bdafa(0x14a)];export const IDE_LIST=[a185_0x5bdafa(0x168),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15e),a185_0x5bdafa(0x15f),a185_0x5bdafa(0x166),a185_0x5bdafa(0x16e),a185_0x5bdafa(0x175),a185_0x5bdafa(0x14d),'windsurf',a185_0x5bdafa(0x159)];export const ALL_CORE_IDES=[a185_0x5bdafa(0x166),a185_0x5bdafa(0x14a),a185_0x5bdafa(0x154),a185_0x5bdafa(0x14e),a185_0x5bdafa(0x15f),'opencode',a185_0x5bdafa(0x175),a185_0x5bdafa(0x15e),'trae'];function a185_0xc241(){const _0x276d12=['.cursor','.claude','51012SerbzE','.codex','9VpyUne','cursor','1237928nLSCQj','antigravity','通用模板\x20-\x20兜底方案','OpenCode\x20IDE','.qoder/skills/lovrabet/SKILL.md','.opencode','6856390rdSUvJ','opencode','Claude\x20Code','.windsurf/workflows/rabetbase.md','.cline/skills/lovrabet/SKILL.md','.cline','SKILL.md.tpl','Trae','qoder','.qoder/rules/rabetbase.md','Trae\x20IDE','.agent','Cursor','.trae/skills/lovrabet/SKILL.md','10qgopHB','.trae','11nMygSw','Qoder','OpenCode','.codex/skills/lovrabet/SKILL.md','.windsurf','1073000GXXOUP','windsurf','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','trae','cline','其他\x20(通用模板)','Windsurf\x20IDE','Antigravity\x20IDE','1954494ahDVFD','Cline','claude','.cursor/skills/rabetbase.md','file','Codex\x20IDE','Antigravity','agent','.codebuddy/skills/lovrabet/SKILL.md','612630ZFHMyH','13859Rieumt','7mUxNap','codebuddy','codex','.cursorrules'];a185_0xc241=function(){return _0x276d12;};return a185_0xc241();}
@@ -1 +1 @@
1
- (function(_0x3d79a4,_0x14545e){const _0x3bad15=a186_0x10f8,_0x275d48=_0x3d79a4();while(!![]){try{const _0x216e8d=parseInt(_0x3bad15(0x65))/0x1+parseInt(_0x3bad15(0x6b))/0x2+parseInt(_0x3bad15(0x69))/0x3*(parseInt(_0x3bad15(0x67))/0x4)+-parseInt(_0x3bad15(0x6d))/0x5+parseInt(_0x3bad15(0x68))/0x6+-parseInt(_0x3bad15(0x6a))/0x7*(-parseInt(_0x3bad15(0x66))/0x8)+-parseInt(_0x3bad15(0x6c))/0x9;if(_0x216e8d===_0x14545e)break;else _0x275d48['push'](_0x275d48['shift']());}catch(_0x2f7524){_0x275d48['push'](_0x275d48['shift']());}}}(a186_0x52fe,0x47507));function a186_0x10f8(_0x5b47dd,_0x378c57){_0x5b47dd=_0x5b47dd-0x65;const _0x52fef2=a186_0x52fe();let _0x10f8f7=_0x52fef2[_0x5b47dd];return _0x10f8f7;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0x52fe(){const _0x2fb96b=['678620XFMRez','1658802MvTWpa','6XEkfWG','15715YemThY','150394LLRPnm','1868931YbvdGS','2834560NVBNQI','216305nmXDMR','568HBqfRa'];a186_0x52fe=function(){return _0x2fb96b;};return a186_0x52fe();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a186_0x1404(){const _0x80fe32=['4469208DZGAXJ','70UEbEPi','80991IyHsnP','508990kimmYG','2186478zwCQVE','4911726BXkHHd','5LyxZrB','5016612xacPRP','808CaWBCF','4323847zrEMcT','5PvywEn'];a186_0x1404=function(){return _0x80fe32;};return a186_0x1404();}(function(_0x11d1e7,_0x50e000){const _0x2a215b=a186_0x3797,_0x1693d8=_0x11d1e7();while(!![]){try{const _0x48c747=parseInt(_0x2a215b(0x198))/0x1*(-parseInt(_0x2a215b(0x19c))/0x2)+-parseInt(_0x2a215b(0x199))/0x3+parseInt(_0x2a215b(0x195))/0x4*(parseInt(_0x2a215b(0x19f))/0x5)+parseInt(_0x2a215b(0x19e))/0x6+-parseInt(_0x2a215b(0x19d))/0x7+-parseInt(_0x2a215b(0x196))/0x8*(parseInt(_0x2a215b(0x19b))/0x9)+-parseInt(_0x2a215b(0x19a))/0xa*(-parseInt(_0x2a215b(0x197))/0xb);if(_0x48c747===_0x50e000)break;else _0x1693d8['push'](_0x1693d8['shift']());}catch(_0x68c9e1){_0x1693d8['push'](_0x1693d8['shift']());}}}(a186_0x1404,0xcd491));function a186_0x3797(_0x9cd1d5,_0x4cdacd){_0x9cd1d5=_0x9cd1d5-0x195;const _0x1404b9=a186_0x1404();let _0x379708=_0x1404b9[_0x9cd1d5];return _0x379708;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x528513,_0x5502d5){const _0x121353=a187_0x144c,_0x11e623=_0x528513();while(!![]){try{const _0x55074e=-parseInt(_0x121353(0xbd))/0x1*(parseInt(_0x121353(0xbe))/0x2)+-parseInt(_0x121353(0xb5))/0x3+-parseInt(_0x121353(0xc7))/0x4*(parseInt(_0x121353(0xc3))/0x5)+parseInt(_0x121353(0xb8))/0x6+parseInt(_0x121353(0xb9))/0x7*(parseInt(_0x121353(0xbf))/0x8)+parseInt(_0x121353(0xba))/0x9*(parseInt(_0x121353(0xb7))/0xa)+parseInt(_0x121353(0xc2))/0xb*(parseInt(_0x121353(0xbc))/0xc);if(_0x55074e===_0x5502d5)break;else _0x11e623['push'](_0x11e623['shift']());}catch(_0x3dc277){_0x11e623['push'](_0x11e623['shift']());}}}(a187_0x402d,0xd6c86));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2caa73=a187_0x144c,_0x4f38be=getTemplateBaseUrl(),_0x404b72=[_0x4f38be+_0x2caa73(0xb6),_0x4f38be+_0x2caa73(0xc8)];for(const _0xcc05c3 of _0x404b72){try{const _0x2b64db=await fetch(_0xcc05c3,{'headers':{'Accept':'application/json'}});if(!_0x2b64db['ok'])continue;const _0xde8844=await _0x2b64db[_0x2caa73(0xc0)]();if(!_0xde8844[_0x2caa73(0xc4)]?.[_0x2caa73(0xc5)]||!_0xde8844[_0x2caa73(0xbb)]?.[_0x2caa73(0xc6)]?.[_0x2caa73(0xc5)])continue;return _0xde8844;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x402d(){const _0x401941=['4103556WyvFnb','1kyGKyp','1975628TDnhau','6640736qMYhsn','json','now','11prGMmu','5zgjrbZ','cli','stableVersion','node','4055804kIKVJK','/config/index.json','3342942Skorom','/config.json','1704130lnrEZf','9917136RyZAkc','14fyPpFb','18NqFLHv','sdk'];a187_0x402d=function(){return _0x401941;};return a187_0x402d();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2d2a99=a187_0x144c,_0x3bd023=Date[_0x2d2a99(0xc1)]();if(hasCachedConfig){const _0x407940=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3bd023-cacheTime<_0x407940)return cachedConfig;}const _0x26fbef=await fetchCdnConfig();return cachedConfig=_0x26fbef,cacheTime=_0x3bd023,hasCachedConfig=!![],_0x26fbef;}function a187_0x144c(_0x224883,_0x428c51){_0x224883=_0x224883-0xb5;const _0x402d5b=a187_0x402d();let _0x144c2d=_0x402d5b[_0x224883];return _0x144c2d;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x359b52,_0x472bd2){const _0x3d2cb7=a187_0x1ab5,_0x42d477=_0x359b52();while(!![]){try{const _0x5c4759=parseInt(_0x3d2cb7(0x176))/0x1+-parseInt(_0x3d2cb7(0x175))/0x2+parseInt(_0x3d2cb7(0x17a))/0x3*(parseInt(_0x3d2cb7(0x174))/0x4)+parseInt(_0x3d2cb7(0x170))/0x5+-parseInt(_0x3d2cb7(0x179))/0x6+-parseInt(_0x3d2cb7(0x16e))/0x7+parseInt(_0x3d2cb7(0x16f))/0x8;if(_0x5c4759===_0x472bd2)break;else _0x42d477['push'](_0x42d477['shift']());}catch(_0xf5476d){_0x42d477['push'](_0x42d477['shift']());}}}(a187_0x4f71,0x77797));import{getTemplateBaseUrl}from'../utils/config.js';function a187_0x1ab5(_0x5803b6,_0x193614){_0x5803b6=_0x5803b6-0x16e;const _0x4f719d=a187_0x4f71();let _0x1ab551=_0x4f719d[_0x5803b6];return _0x1ab551;}export async function fetchCdnConfig(){const _0x5232af=a187_0x1ab5,_0x1305a4=getTemplateBaseUrl(),_0x4a179d=[_0x1305a4+'/config.json',_0x1305a4+_0x5232af(0x177)];for(const _0x4486ad of _0x4a179d){try{const _0x47e8fe=await fetch(_0x4486ad,{'headers':{'Accept':'application/json'}});if(!_0x47e8fe['ok'])continue;const _0x2bd0c6=await _0x47e8fe[_0x5232af(0x173)]();if(!_0x2bd0c6[_0x5232af(0x172)]?.[_0x5232af(0x178)]||!_0x2bd0c6['sdk']?.['node']?.[_0x5232af(0x178)])continue;return _0x2bd0c6;}catch{}}return null;}function a187_0x4f71(){const _0xe50a3a=['cli','json','1043180WFhATL','1892420kOVhhh','948004Nspwlo','/config/index.json','stableVersion','3277890NIIWja','9ecfccu','4478180GIplMA','2255320bIzLyA','3046640KPkGjO','now'];a187_0x4f71=function(){return _0xe50a3a;};return a187_0x4f71();}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x207a06=a187_0x1ab5,_0x65731a=Date[_0x207a06(0x171)]();if(hasCachedConfig){const _0x27976c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x65731a-cacheTime<_0x27976c)return cachedConfig;}const _0xa4ebc0=await fetchCdnConfig();return cachedConfig=_0xa4ebc0,cacheTime=_0x65731a,hasCachedConfig=!![],_0xa4ebc0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a188_0x10a2ed=a188_0x2804;(function(_0x106f4e,_0x49009b){const _0x5e8689=a188_0x2804,_0xd95524=_0x106f4e();while(!![]){try{const _0x56702c=-parseInt(_0x5e8689(0xc5))/0x1*(parseInt(_0x5e8689(0xbd))/0x2)+-parseInt(_0x5e8689(0xa6))/0x3+parseInt(_0x5e8689(0xaf))/0x4+parseInt(_0x5e8689(0xb3))/0x5*(parseInt(_0x5e8689(0xb7))/0x6)+parseInt(_0x5e8689(0xc1))/0x7*(parseInt(_0x5e8689(0xc0))/0x8)+-parseInt(_0x5e8689(0xbb))/0x9+-parseInt(_0x5e8689(0xad))/0xa;if(_0x56702c===_0x49009b)break;else _0xd95524['push'](_0xd95524['shift']());}catch(_0x3a096b){_0xd95524['push'](_0xd95524['shift']());}}}(a188_0x4ef4,0x9265a));import a188_0x22d023 from'node:fs';import a188_0xf11ac3 from'node:path';import a188_0x23c995 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x10a2ed(0xa5);function a188_0x4ef4(){const _0x413074=['dependencies','6JMuklr','version','devDependencies','parse','1337463FoMjra','sdk','324446dNgoDZ','npm\x20install\x20','@lovrabet/sdk','4624712mMsahb','7kilpUI','test','readFileSync','stableVersion','1OPWCKe','log','existsSync','1.2.0','1022028bdBiIU','↪\x20SDK\x20update\x20available','coerce','\x1b[1m','node_modules','packageName','\x1b[33m','2329260JWrgcq','package.json','1470248MHEEZK','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','utf8','2692115nOhPXu','node','join'];a188_0x4ef4=function(){return _0x413074;};return a188_0x4ef4();}function isNonNumericVersion(_0x399fbd){const _0x3479e4=a188_0x10a2ed,_0xbf75ba=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xbf75ba['some'](_0x46c51a=>_0x46c51a[_0x3479e4(0xc2)](_0x399fbd));}function getInstalledVersion(_0x187db6,_0x531ed5){const _0x630ddd=a188_0x10a2ed;try{const _0x3fc81c=a188_0xf11ac3[_0x630ddd(0xb5)](_0x187db6,_0x630ddd(0xaa),_0x531ed5,'package.json');if(a188_0x22d023[_0x630ddd(0xc7)](_0x3fc81c)){const _0x3e7c76=JSON[_0x630ddd(0xba)](a188_0x22d023['readFileSync'](_0x3fc81c,'utf-8'));return _0x3e7c76[_0x630ddd(0xb8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4d9ac6=a188_0x10a2ed;try{const _0x2a29d5=await getCdnConfig();return _0x2a29d5?.[_0x4d9ac6(0xbc)]?.[_0x4d9ac6(0xb4)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x5983fe=a188_0x10a2ed;try{const _0x226a48=await getCdnConfig();return _0x226a48?.[_0x5983fe(0xbc)]?.[_0x5983fe(0xb4)]?.[_0x5983fe(0xab)]||'@lovrabet/sdk';}catch{return _0x5983fe(0xbf);}}export async function checkSdkVersion(_0x8e6511){const _0x3cc9bb=a188_0x10a2ed,_0xa103d3=a188_0xf11ac3[_0x3cc9bb(0xb5)](_0x8e6511,_0x3cc9bb(0xae)),[_0xddcfb,_0x1fd093]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x2bc317=_0xddcfb||FALLBACK_MIN_SDK_VERSION;if(!a188_0x22d023['existsSync'](_0xa103d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};try{const _0x456614=JSON[_0x3cc9bb(0xba)](a188_0x22d023['readFileSync'](_0xa103d3,_0x3cc9bb(0xb2))),_0x3eebf9=_0x456614[_0x3cc9bb(0xb6)]||{},_0x5f441c=_0x456614[_0x3cc9bb(0xb9)]||{},_0x5075ea=_0x3eebf9[_0x1fd093]||_0x5f441c[_0x1fd093];if(!_0x5075ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};let _0x44631e=getInstalledVersion(_0x8e6511,_0x1fd093);!_0x44631e&&(_0x44631e=_0x5075ea);if(isNonNumericVersion(_0x5075ea))return{'installed':!![],'version':_0x44631e,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};const _0x3d2bb5=a188_0x23c995[_0x3cc9bb(0xa8)](_0x44631e),_0x30f2d9=a188_0x23c995[_0x3cc9bb(0xa8)](_0x2bc317),_0x507948=_0x3d2bb5&&_0x30f2d9?a188_0x23c995['lt'](_0x3d2bb5,_0x30f2d9):![];return{'installed':!![],'version':_0x44631e,'needsUpgrade':_0x507948,'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};}}export function checkSdkVersionSync(_0x3bfd51){const _0xd0edcf=a188_0x10a2ed,_0x1475db=a188_0xf11ac3['join'](_0x3bfd51,_0xd0edcf(0xae)),_0x1f939f='@lovrabet/sdk';if(!a188_0x22d023[_0xd0edcf(0xc7)](_0x1475db))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};try{const _0x7004a=JSON[_0xd0edcf(0xba)](a188_0x22d023[_0xd0edcf(0xc3)](_0x1475db,'utf8')),_0x457466=_0x7004a[_0xd0edcf(0xb6)]||{},_0x51e49e=_0x7004a[_0xd0edcf(0xb9)]||{},_0x1e8130=_0x457466[_0x1f939f]||_0x51e49e[_0x1f939f];if(!_0x1e8130)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};let _0xa4c220=getInstalledVersion(_0x3bfd51,_0x1f939f);!_0xa4c220&&(_0xa4c220=_0x1e8130);if(isNonNumericVersion(_0x1e8130))return{'installed':!![],'version':_0xa4c220,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};const _0x286493=a188_0x23c995[_0xd0edcf(0xa8)](_0xa4c220),_0x56def2=_0x286493?a188_0x23c995['lt'](_0x286493,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xa4c220,'needsUpgrade':_0x56def2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};}}function a188_0x2804(_0x580b30,_0x42bf06){_0x580b30=_0x580b30-0xa5;const _0x4ef40f=a188_0x4ef4();let _0x280486=_0x4ef40f[_0x580b30];return _0x280486;}export function printSdkUpgradeWarning(_0x5a2ccb){const _0x400a30=a188_0x10a2ed;if(!_0x5a2ccb['needsUpgrade'])return;const _0x1feaad=_0x400a30(0xac),_0x458b4f='\x1b[0m',_0x2ff612=_0x400a30(0xa9),_0x26de97=_0x5a2ccb[_0x400a30(0xab)]||_0x400a30(0xbf),_0x7cf881=_0x5a2ccb[_0x400a30(0xc4)]||_0x5a2ccb['minVersion'],_0x2f776f=_0x400a30(0xbe)+_0x26de97+'@'+(_0x7cf881||'latest');console[_0x400a30(0xc6)](),console[_0x400a30(0xc6)](''+_0x1feaad+_0x2ff612+_0x400a30(0xa7)+_0x458b4f),console['log'](_0x1feaad+_0x400a30(0xb0)+_0x26de97+'@'+_0x5a2ccb['version']+_0x458b4f),console[_0x400a30(0xc6)](_0x1feaad+_0x400a30(0xb1)+_0x7cf881+_0x458b4f),console['log'](_0x1feaad+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2f776f+_0x458b4f),console[_0x400a30(0xc6)]();}
1
+ const a188_0x3d9834=a188_0x21d5;(function(_0x391159,_0x1a1bc4){const _0x4ca2a9=a188_0x21d5,_0x1eb0b6=_0x391159();while(!![]){try{const _0x3179bf=parseInt(_0x4ca2a9(0x16f))/0x1*(parseInt(_0x4ca2a9(0x17b))/0x2)+parseInt(_0x4ca2a9(0x179))/0x3+-parseInt(_0x4ca2a9(0x17d))/0x4*(-parseInt(_0x4ca2a9(0x17e))/0x5)+parseInt(_0x4ca2a9(0x178))/0x6*(-parseInt(_0x4ca2a9(0x189))/0x7)+-parseInt(_0x4ca2a9(0x172))/0x8*(-parseInt(_0x4ca2a9(0x18e))/0x9)+parseInt(_0x4ca2a9(0x18d))/0xa*(-parseInt(_0x4ca2a9(0x190))/0xb)+-parseInt(_0x4ca2a9(0x182))/0xc*(parseInt(_0x4ca2a9(0x185))/0xd);if(_0x3179bf===_0x1a1bc4)break;else _0x1eb0b6['push'](_0x1eb0b6['shift']());}catch(_0x5c2f57){_0x1eb0b6['push'](_0x1eb0b6['shift']());}}}(a188_0x5641,0x3217f));import a188_0x3ba592 from'node:fs';import a188_0x2e4a9a from'node:path';import a188_0x5d25f6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x3d9834(0x18f);function isNonNumericVersion(_0x3a47b6){const _0x211004=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x211004['some'](_0x2c20f7=>_0x2c20f7['test'](_0x3a47b6));}function getInstalledVersion(_0x4d11d,_0x485148){const _0x237ab1=a188_0x3d9834;try{const _0x404291=a188_0x2e4a9a['join'](_0x4d11d,'node_modules',_0x485148,_0x237ab1(0x17c));if(a188_0x3ba592[_0x237ab1(0x174)](_0x404291)){const _0x448b09=JSON[_0x237ab1(0x186)](a188_0x3ba592[_0x237ab1(0x184)](_0x404291,_0x237ab1(0x177)));return _0x448b09[_0x237ab1(0x176)]||null;}}catch{}return null;}function a188_0x5641(){const _0x388912=['636845VpkdWa','\x1b[33m','minVersion','@lovrabet/sdk','415716sRDFhV','devDependencies','readFileSync','91AESSYD','parse','\x1b[0m','latest','84qQfLZJ','utf8','all','stableVersion','9280ZxksLB','45ztbLjr','1.2.0','3091NtnvOY','\x20\x20\x20Upgrade\x20command:\x20','join','needsUpgrade','sdk','4ObRKjt','packageName','npm\x20install\x20','147472cglsLb','coerce','existsSync','dependencies','version','utf-8','25770hLIfvd','109800EdqcZP','log','188242OUbPrp','package.json','8vtGupS'];a188_0x5641=function(){return _0x388912;};return a188_0x5641();}async function getSdkStableVersion(){const _0x62b0f6=a188_0x3d9834;try{const _0x1e5b90=await getCdnConfig();return _0x1e5b90?.['sdk']?.['node']?.[_0x62b0f6(0x18c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x594d0b=a188_0x3d9834;try{const _0x5233fa=await getCdnConfig();return _0x5233fa?.[_0x594d0b(0x16e)]?.['node']?.[_0x594d0b(0x170)]||_0x594d0b(0x181);}catch{return _0x594d0b(0x181);}}function a188_0x21d5(_0x1d76cf,_0x3e8c5c){_0x1d76cf=_0x1d76cf-0x16e;const _0x564160=a188_0x5641();let _0x21d583=_0x564160[_0x1d76cf];return _0x21d583;}export async function checkSdkVersion(_0x1299a3){const _0x47310f=a188_0x3d9834,_0x5098ca=a188_0x2e4a9a[_0x47310f(0x192)](_0x1299a3,'package.json'),[_0x1cc9d6,_0x56fa59]=await Promise[_0x47310f(0x18b)]([getSdkStableVersion(),getSdkPackageName()]),_0x27fd19=_0x1cc9d6||FALLBACK_MIN_SDK_VERSION;if(!a188_0x3ba592[_0x47310f(0x174)](_0x5098ca))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};try{const _0x5263fd=JSON['parse'](a188_0x3ba592[_0x47310f(0x184)](_0x5098ca,_0x47310f(0x18a))),_0x20274e=_0x5263fd[_0x47310f(0x175)]||{},_0x4659a9=_0x5263fd[_0x47310f(0x183)]||{},_0x81673=_0x20274e[_0x56fa59]||_0x4659a9[_0x56fa59];if(!_0x81673)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};let _0x4419ff=getInstalledVersion(_0x1299a3,_0x56fa59);!_0x4419ff&&(_0x4419ff=_0x81673);if(isNonNumericVersion(_0x81673))return{'installed':!![],'version':_0x4419ff,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};const _0x127f82=a188_0x5d25f6['coerce'](_0x4419ff),_0x697588=a188_0x5d25f6[_0x47310f(0x173)](_0x27fd19),_0x432a42=_0x127f82&&_0x697588?a188_0x5d25f6['lt'](_0x127f82,_0x697588):![];return{'installed':!![],'version':_0x4419ff,'needsUpgrade':_0x432a42,'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x27fd19,'packageName':_0x56fa59,'stableVersion':_0x1cc9d6};}}export function checkSdkVersionSync(_0x10c983){const _0x4d9467=a188_0x3d9834,_0x23cd77=a188_0x2e4a9a[_0x4d9467(0x192)](_0x10c983,'package.json'),_0x343d63=_0x4d9467(0x181);if(!a188_0x3ba592[_0x4d9467(0x174)](_0x23cd77))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};try{const _0x309f8b=JSON['parse'](a188_0x3ba592['readFileSync'](_0x23cd77,_0x4d9467(0x18a))),_0x51d55e=_0x309f8b[_0x4d9467(0x175)]||{},_0x196042=_0x309f8b['devDependencies']||{},_0x2ec742=_0x51d55e[_0x343d63]||_0x196042[_0x343d63];if(!_0x2ec742)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};let _0x53d6dd=getInstalledVersion(_0x10c983,_0x343d63);!_0x53d6dd&&(_0x53d6dd=_0x2ec742);if(isNonNumericVersion(_0x2ec742))return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};const _0xf67656=a188_0x5d25f6[_0x4d9467(0x173)](_0x53d6dd),_0xa5ce6f=_0xf67656?a188_0x5d25f6['lt'](_0xf67656,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x53d6dd,'needsUpgrade':_0xa5ce6f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x343d63,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1e4fca){const _0x35a352=a188_0x3d9834;if(!_0x1e4fca[_0x35a352(0x193)])return;const _0x48519d=_0x35a352(0x17f),_0x40e2fb=_0x35a352(0x187),_0x160a52='\x1b[1m',_0x5d47d3=_0x1e4fca[_0x35a352(0x170)]||'@lovrabet/sdk',_0x19c397=_0x1e4fca[_0x35a352(0x18c)]||_0x1e4fca[_0x35a352(0x180)],_0x550d9b=_0x35a352(0x171)+_0x5d47d3+'@'+(_0x19c397||_0x35a352(0x188));console[_0x35a352(0x17a)](),console[_0x35a352(0x17a)](''+_0x48519d+_0x160a52+'↪\x20SDK\x20update\x20available'+_0x40e2fb),console['log'](_0x48519d+'\x20\x20\x20Current\x20version:\x20'+_0x5d47d3+'@'+_0x1e4fca['version']+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+'\x20\x20\x20Stable\x20version:\x20'+_0x19c397+_0x40e2fb),console[_0x35a352(0x17a)](_0x48519d+_0x35a352(0x191)+_0x550d9b+_0x40e2fb),console['log']();}
@@ -1 +1 @@
1
- (function(_0x401190,_0x521432){const _0x4d66dd=a189_0x4904,_0x3b4774=_0x401190();while(!![]){try{const _0x4de74a=-parseInt(_0x4d66dd(0xff))/0x1*(-parseInt(_0x4d66dd(0x113))/0x2)+-parseInt(_0x4d66dd(0x10a))/0x3*(-parseInt(_0x4d66dd(0xf0))/0x4)+-parseInt(_0x4d66dd(0x114))/0x5*(-parseInt(_0x4d66dd(0xf1))/0x6)+parseInt(_0x4d66dd(0xf7))/0x7+parseInt(_0x4d66dd(0x106))/0x8*(-parseInt(_0x4d66dd(0xed))/0x9)+parseInt(_0x4d66dd(0x103))/0xa+-parseInt(_0x4d66dd(0xe8))/0xb;if(_0x4de74a===_0x521432)break;else _0x3b4774['push'](_0x3b4774['shift']());}catch(_0x318d7b){_0x3b4774['push'](_0x3b4774['shift']());}}}(a189_0x1f92,0x5ec99));function a189_0x4904(_0x2098a0,_0x461c73){_0x2098a0=_0x2098a0-0xe8;const _0x1f92ea=a189_0x1f92();let _0x4904b6=_0x1f92ea[_0x2098a0];return _0x4904b6;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x40ccae from'semver';function a189_0x1f92(){const _0x4046d6=['package.json','version','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','1ATuuFM','filter','\x20\x20\x20Minimum\x20required:\x20','parse','4052690CdWpZW','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersion','14216nmPUZa','needsUpgrade','currentVersion','join','558456ojdJmJ','\x1b[33m','coerce','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','../..','\x20\x20\x20Recommended\x20stable:\x20','belowMinimum','1164658wXcAbZ','775eAjwRZ','27105606VzPVNz','\x1b[1m','latest','log','Minimum\x20required:\x20','27stoCnx','npm\x20install\x20-g\x20','minimumVersionMessage','12VDTArn','22782EOaUcz','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x1b[31m','validation','5061959VzZWMt','Upgrade\x20command:\x20','\x20\x20\x20','stableVersion'];a189_0x1f92=function(){return _0x4046d6;};return a189_0x1f92();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x39dc2b){const _0x50a727=a189_0x4904,_0x43bbd1=_0x39dc2b[_0x50a727(0xfa)]||_0x50a727(0xea);return _0x50a727(0xee)+NPM_PACKAGE_NAME+'@'+_0x43bbd1;}function getCurrentCliVersion(){const _0x2f5866=a189_0x4904;try{const _0x4d7d9d=fileURLToPath(import.meta.url),_0x239f50=resolve(dirname(_0x4d7d9d),_0x2f5866(0x110)),_0x2d9959=resolve(_0x239f50,_0x2f5866(0xfb)),_0x45dee4=JSON[_0x2f5866(0x102)](readFileSync(_0x2d9959,'utf-8'));return _0x45dee4[_0x2f5866(0xfc)]||_0x2f5866(0xf4);}catch{return _0x2f5866(0xf4);}}export async function checkCliVersion(){const _0x564332=a189_0x4904,_0x36b08e=getCurrentCliVersion(),_0x5c7e06=await getCliVersionPolicy(),_0x7f2a19=_0x5c7e06?.['stableVersion']||null,_0x1db926=_0x5c7e06?.[_0x564332(0x105)]||null;let _0x5957a7=![],_0xc3c180=![];const _0x3de502=a189_0x40ccae['coerce'](_0x36b08e);if(_0x3de502&&_0x7f2a19)try{const _0x7686e3=a189_0x40ccae[_0x564332(0x10c)](_0x7f2a19);if(_0x7686e3)_0x5957a7=a189_0x40ccae['lt'](_0x3de502,_0x7686e3);}catch{}if(_0x3de502&&_0x1db926)try{const _0x257b42=a189_0x40ccae[_0x564332(0x10c)](_0x1db926);if(_0x257b42)_0xc3c180=a189_0x40ccae['lt'](_0x3de502,_0x257b42);}catch{}return _0xc3c180&&(_0x5957a7=!![]),{'currentVersion':_0x36b08e,'stableVersion':_0x7f2a19,'minimumVersion':_0x1db926,'needsUpgrade':_0x5957a7,'belowMinimum':_0xc3c180,'isPreRelease':![],'upgradeMessage':_0x5c7e06?.[_0x564332(0xfe)],'minimumVersionMessage':_0x5c7e06?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x44baab){const _0xb69fc3=a189_0x4904;if(!_0x44baab[_0xb69fc3(0x107)]&&!_0x44baab[_0xb69fc3(0x112)])return;const _0x577e97=_0xb69fc3(0xf5),_0x4f099c=_0xb69fc3(0x10b),_0x20609e=_0xb69fc3(0x10f),_0x13d365=_0xb69fc3(0xe9),_0x2d865a=getCliUpgradeCommand(_0x44baab);console[_0xb69fc3(0xeb)](),_0x44baab[_0xb69fc3(0x112)]?(console[_0xb69fc3(0xeb)](''+_0x577e97+_0x13d365+_0xb69fc3(0x104)+_0x20609e),console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0xfd)+_0x44baab[_0xb69fc3(0x108)]+_0x20609e),_0x44baab[_0xb69fc3(0x105)]&&console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0x101)+_0x44baab[_0xb69fc3(0x105)]+_0x20609e),_0x44baab['stableVersion']&&_0x44baab['stableVersion']!==_0x44baab[_0xb69fc3(0x105)]&&console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0x111)+_0x44baab[_0xb69fc3(0xfa)]+_0x20609e),_0x44baab[_0xb69fc3(0xef)]&&console[_0xb69fc3(0xeb)](_0x577e97+'\x20\x20\x20'+_0x44baab['minimumVersionMessage']+_0x20609e),console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0xf3)+_0x2d865a+_0x20609e)):(console['log'](''+_0x4f099c+_0x13d365+_0xb69fc3(0x10d)+_0x20609e),console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0xfd)+_0x44baab['currentVersion']+_0x20609e),console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0x10e)+_0x44baab['stableVersion']+_0x20609e),_0x44baab[_0xb69fc3(0xfe)]&&console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0xf9)+_0x44baab[_0xb69fc3(0xfe)]+_0x20609e),console['log'](_0x4f099c+_0xb69fc3(0xf3)+_0x2d865a+_0x20609e)),console[_0xb69fc3(0xeb)]();}export function assertCliVersionSupported(_0x2d4c01){const _0x56f2e2=a189_0x4904;if(!_0x2d4c01[_0x56f2e2(0x112)])return;const _0x2f1ab8=[_0x2d4c01['minimumVersionMessage'],'Current\x20version:\x20'+_0x2d4c01[_0x56f2e2(0x108)],_0x2d4c01[_0x56f2e2(0x105)]?_0x56f2e2(0xec)+_0x2d4c01['minimumVersion']:null,_0x56f2e2(0xf8)+getCliUpgradeCommand(_0x2d4c01)][_0x56f2e2(0x100)](Boolean)[_0x56f2e2(0x109)]('\x0a');throw CliErrors[_0x56f2e2(0xf6)](_0x56f2e2(0xf2),_0x2f1ab8);}
1
+ (function(_0xccffc8,_0x3cc942){const _0x5787e4=a189_0x4528,_0x1e160d=_0xccffc8();while(!![]){try{const _0xcef6e6=-parseInt(_0x5787e4(0xa5))/0x1+parseInt(_0x5787e4(0xb6))/0x2+parseInt(_0x5787e4(0xad))/0x3+parseInt(_0x5787e4(0x9d))/0x4*(-parseInt(_0x5787e4(0x98))/0x5)+-parseInt(_0x5787e4(0xbb))/0x6*(-parseInt(_0x5787e4(0xac))/0x7)+parseInt(_0x5787e4(0xae))/0x8*(parseInt(_0x5787e4(0x97))/0x9)+-parseInt(_0x5787e4(0xa0))/0xa;if(_0xcef6e6===_0x3cc942)break;else _0x1e160d['push'](_0x1e160d['shift']());}catch(_0x4dc1d9){_0x1e160d['push'](_0x1e160d['shift']());}}}(a189_0x1e27,0x24638));import{readFileSync}from'node:fs';function a189_0x1e27(){const _0x21d2c1=['\x20\x20\x20Minimum\x20required:\x20','276684MKIJIW','Current\x20version:\x20','join','1655430lJnVHd','1.0.0','belowMinimum','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','64806YBSjVm','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Stable\x20version:\x20','coerce','upgradeMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20','7CCCrPl','744189TcIRbP','16PylSRT','minimumVersionMessage','currentVersion','version','parse','minimumVersion','log','Minimum\x20required:\x20','315872EXaaqa','↪\x20New\x20version\x20available','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','package.json','112824ZmxoHF','utf-8','\x1b[33m','418212xlKKZK','10zSvuGc','\x1b[0m','filter','stableVersion'];a189_0x1e27=function(){return _0x21d2c1;};return a189_0x1e27();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x5002de from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x50cc75){const _0x31dee7=a189_0x4528,_0x50b5fe=_0x50cc75['stableVersion']||'latest';return _0x31dee7(0xb9)+NPM_PACKAGE_NAME+'@'+_0x50b5fe;}function getCurrentCliVersion(){const _0x578226=a189_0x4528;try{const _0xaed991=fileURLToPath(import.meta.url),_0x340b46=resolve(dirname(_0xaed991),'../..'),_0x315775=resolve(_0x340b46,_0x578226(0xba)),_0x521c8e=JSON[_0x578226(0xb2)](readFileSync(_0x315775,_0x578226(0xbc)));return _0x521c8e[_0x578226(0xb1)]||_0x578226(0xa1);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5a6cfd=a189_0x4528,_0x34fa7b=getCurrentCliVersion(),_0x3e31d2=await getCliVersionPolicy(),_0x5056fb=_0x3e31d2?.[_0x5a6cfd(0x9b)]||null,_0x335437=_0x3e31d2?.['minimumVersion']||null;let _0x104db8=![],_0x3c042d=![];const _0x29c737=a189_0x5002de[_0x5a6cfd(0xa8)](_0x34fa7b);if(_0x29c737&&_0x5056fb)try{const _0x33a9ea=a189_0x5002de[_0x5a6cfd(0xa8)](_0x5056fb);if(_0x33a9ea)_0x104db8=a189_0x5002de['lt'](_0x29c737,_0x33a9ea);}catch{}if(_0x29c737&&_0x335437)try{const _0x5bee60=a189_0x5002de[_0x5a6cfd(0xa8)](_0x335437);if(_0x5bee60)_0x3c042d=a189_0x5002de['lt'](_0x29c737,_0x5bee60);}catch{}return _0x3c042d&&(_0x104db8=!![]),{'currentVersion':_0x34fa7b,'stableVersion':_0x5056fb,'minimumVersion':_0x335437,'needsUpgrade':_0x104db8,'belowMinimum':_0x3c042d,'isPreRelease':![],'upgradeMessage':_0x3e31d2?.[_0x5a6cfd(0xa9)],'minimumVersionMessage':_0x3e31d2?.[_0x5a6cfd(0xaf)]};}function a189_0x4528(_0x25dc90,_0x599b4e){_0x25dc90=_0x25dc90-0x96;const _0x1e2794=a189_0x1e27();let _0x4528ac=_0x1e2794[_0x25dc90];return _0x4528ac;}export function printCliUpgradeWarning(_0x298ee2){const _0x53b4ac=a189_0x4528;if(!_0x298ee2[_0x53b4ac(0xa3)]&&!_0x298ee2[_0x53b4ac(0xa2)])return;const _0x38168e='\x1b[31m',_0x37d09a=_0x53b4ac(0x96),_0x3b32b6=_0x53b4ac(0x99),_0x4ab29e='\x1b[1m',_0x148667=getCliUpgradeCommand(_0x298ee2);console['log'](),_0x298ee2[_0x53b4ac(0xa2)]?(console[_0x53b4ac(0xb4)](''+_0x38168e+_0x4ab29e+_0x53b4ac(0xaa)+_0x3b32b6),console['log'](_0x38168e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2[_0x53b4ac(0xb0)]+_0x3b32b6),_0x298ee2['minimumVersion']&&console[_0x53b4ac(0xb4)](_0x38168e+_0x53b4ac(0x9c)+_0x298ee2[_0x53b4ac(0xb3)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0x9b)]&&_0x298ee2[_0x53b4ac(0x9b)]!==_0x298ee2[_0x53b4ac(0xb3)]&&console['log'](_0x38168e+_0x53b4ac(0xb8)+_0x298ee2[_0x53b4ac(0x9b)]+_0x3b32b6),_0x298ee2[_0x53b4ac(0xaf)]&&console['log'](_0x38168e+'\x20\x20\x20'+_0x298ee2[_0x53b4ac(0xaf)]+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x38168e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x148667+_0x3b32b6)):(console[_0x53b4ac(0xb4)](''+_0x37d09a+_0x4ab29e+_0x53b4ac(0xb7)+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x298ee2['currentVersion']+_0x3b32b6),console[_0x53b4ac(0xb4)](_0x37d09a+_0x53b4ac(0xa7)+_0x298ee2['stableVersion']+_0x3b32b6),_0x298ee2[_0x53b4ac(0xa9)]&&console['log'](_0x37d09a+_0x53b4ac(0xab)+_0x298ee2[_0x53b4ac(0xa9)]+_0x3b32b6),console['log'](_0x37d09a+_0x53b4ac(0xa4)+_0x148667+_0x3b32b6)),console[_0x53b4ac(0xb4)]();}export function assertCliVersionSupported(_0x3a3d7d){const _0x14cd94=a189_0x4528;if(!_0x3a3d7d[_0x14cd94(0xa2)])return;const _0x5b577b=[_0x3a3d7d['minimumVersionMessage'],_0x14cd94(0x9e)+_0x3a3d7d['currentVersion'],_0x3a3d7d['minimumVersion']?_0x14cd94(0xb5)+_0x3a3d7d[_0x14cd94(0xb3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x3a3d7d)][_0x14cd94(0x9a)](Boolean)[_0x14cd94(0x9f)]('\x0a');throw CliErrors['validation'](_0x14cd94(0xa6),_0x5b577b);}
@@ -1 +1 @@
1
- function a190_0x2700(){const _0x41700=['398387xxqWQa','minimumVersionMessage','signal','6430ZmHYwU','3753jaNWDh','minimumVersion','recommendedVersion','abort','439172ZAyOkW','121824srJbcq','93846HYMMlj','96tOHzlW','application/json','3SbZqtC','json','upgradeMessage','15472pKsDAu','155ZjyvCg','2998980BJSewl','329vDAfNM','now','object','trim','cli'];a190_0x2700=function(){return _0x41700;};return a190_0x2700();}(function(_0x434ac1,_0x5459a9){const _0x2fc6bf=a190_0x259f,_0x152ff8=_0x434ac1();while(!![]){try{const _0x23987e=parseInt(_0x2fc6bf(0xc8))/0x1+-parseInt(_0x2fc6bf(0xc7))/0x2*(-parseInt(_0x2fc6bf(0xb4))/0x3)+parseInt(_0x2fc6bf(0xb9))/0x4+parseInt(_0x2fc6bf(0xb8))/0x5*(-parseInt(_0x2fc6bf(0xc9))/0x6)+parseInt(_0x2fc6bf(0xba))/0x7*(-parseInt(_0x2fc6bf(0xb7))/0x8)+-parseInt(_0x2fc6bf(0xc3))/0x9*(parseInt(_0x2fc6bf(0xc2))/0xa)+parseInt(_0x2fc6bf(0xbf))/0xb*(parseInt(_0x2fc6bf(0xca))/0xc);if(_0x23987e===_0x5459a9)break;else _0x152ff8['push'](_0x152ff8['shift']());}catch(_0x4f2b31){_0x152ff8['push'](_0x152ff8['shift']());}}}(a190_0x2700,0x8319f));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 a190_0x259f(_0x1c96b8,_0x3bc56c){_0x1c96b8=_0x1c96b8-0xb3;const _0x27006f=a190_0x2700();let _0x259f78=_0x27006f[_0x1c96b8];return _0x259f78;}function pickString(_0x1b3838){const _0x113e52=a190_0x259f;return typeof _0x1b3838==='string'&&_0x1b3838[_0x113e52(0xbd)]()['length']>0x0?_0x1b3838[_0x113e52(0xbd)]():null;}function normalizeCliVersionPolicy(_0x5306b7){const _0x360780=a190_0x259f;if(!_0x5306b7||typeof _0x5306b7!==_0x360780(0xbc))return null;const _0x2631e8=_0x5306b7,_0x34c0f7=_0x2631e8['cli']&&typeof _0x2631e8[_0x360780(0xbe)]==='object'?_0x2631e8[_0x360780(0xbe)]:_0x2631e8,_0x408315=pickString(_0x34c0f7['stableVersion'])||pickString(_0x34c0f7['latestVersion'])||pickString(_0x34c0f7[_0x360780(0xc5)]),_0x5f5bde=pickString(_0x34c0f7[_0x360780(0xc4)])||pickString(_0x34c0f7['minVersion']);if(!_0x408315&&!_0x5f5bde)return null;return{'stableVersion':_0x408315,'minimumVersion':_0x5f5bde,'upgradeMessage':pickString(_0x34c0f7[_0x360780(0xb6)])||undefined,'minimumVersionMessage':pickString(_0x34c0f7[_0x360780(0xc0)])||undefined};}export async function fetchCliVersionPolicy(){const _0x373ccf=a190_0x259f,_0x19e89c=new AbortController(),_0x1abcb2=setTimeout(()=>_0x19e89c[_0x373ccf(0xc6)](),FETCH_TIMEOUT_MS);try{const _0xf973e9=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x373ccf(0xb3)},'signal':_0x19e89c[_0x373ccf(0xc1)]});if(!_0xf973e9['ok'])return null;const _0x226de4=await _0xf973e9[_0x373ccf(0xb5)]();return normalizeCliVersionPolicy(_0x226de4);}catch{return null;}finally{clearTimeout(_0x1abcb2);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3c6858=a190_0x259f,_0x5e36d3=Date[_0x3c6858(0xbb)]();if(hasCachedPolicy){const _0x47588c=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5e36d3-cacheTime<_0x47588c)return cachedPolicy;}const _0x1c8fb7=await fetchCliVersionPolicy();return cachedPolicy=_0x1c8fb7,cacheTime=_0x5e36d3,hasCachedPolicy=!![],_0x1c8fb7;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1f7797,_0x40c993){const _0x492492=a190_0x2469,_0x3b7a3a=_0x1f7797();while(!![]){try{const _0x47de87=-parseInt(_0x492492(0x94))/0x1+parseInt(_0x492492(0xa1))/0x2*(-parseInt(_0x492492(0xa0))/0x3)+-parseInt(_0x492492(0xa2))/0x4+parseInt(_0x492492(0x9a))/0x5+-parseInt(_0x492492(0x9e))/0x6+-parseInt(_0x492492(0x92))/0x7+parseInt(_0x492492(0x91))/0x8*(parseInt(_0x492492(0x98))/0x9);if(_0x47de87===_0x40c993)break;else _0x3b7a3a['push'](_0x3b7a3a['shift']());}catch(_0x4e7d4b){_0x3b7a3a['push'](_0x3b7a3a['shift']());}}}(a190_0x4ee0,0x3ad2b));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(_0x1def90){const _0x10c827=a190_0x2469;return typeof _0x1def90===_0x10c827(0x93)&&_0x1def90[_0x10c827(0x9d)]()[_0x10c827(0x9c)]>0x0?_0x1def90[_0x10c827(0x9d)]():null;}function a190_0x4ee0(){const _0x38a4b0=['9393606rSAkIS','upgradeMessage','1408900yCXdOP','cli','length','trim','1068696UvlVyC','object','12jBJPrs','82372TAmGBk','1410496VkARTK','stableVersion','latestVersion','now','application/json','8cYoNBD','85925MdOQyi','string','376816MZjhhQ','signal','minimumVersionMessage','recommendedVersion'];a190_0x4ee0=function(){return _0x38a4b0;};return a190_0x4ee0();}function normalizeCliVersionPolicy(_0x6682f){const _0xa23137=a190_0x2469;if(!_0x6682f||typeof _0x6682f!==_0xa23137(0x9f))return null;const _0x24b73a=_0x6682f,_0xa9d2d1=_0x24b73a[_0xa23137(0x9b)]&&typeof _0x24b73a[_0xa23137(0x9b)]===_0xa23137(0x9f)?_0x24b73a['cli']:_0x24b73a,_0x5d7a26=pickString(_0xa9d2d1[_0xa23137(0x8d)])||pickString(_0xa9d2d1[_0xa23137(0x8e)])||pickString(_0xa9d2d1[_0xa23137(0x97)]),_0x23531b=pickString(_0xa9d2d1['minimumVersion'])||pickString(_0xa9d2d1['minVersion']);if(!_0x5d7a26&&!_0x23531b)return null;return{'stableVersion':_0x5d7a26,'minimumVersion':_0x23531b,'upgradeMessage':pickString(_0xa9d2d1[_0xa23137(0x99)])||undefined,'minimumVersionMessage':pickString(_0xa9d2d1[_0xa23137(0x96)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3a34da=a190_0x2469,_0x56b89a=new AbortController(),_0x2d9dd5=setTimeout(()=>_0x56b89a['abort'](),FETCH_TIMEOUT_MS);try{const _0x57bc63=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3a34da(0x90)},'signal':_0x56b89a[_0x3a34da(0x95)]});if(!_0x57bc63['ok'])return null;const _0x48c8bd=await _0x57bc63['json']();return normalizeCliVersionPolicy(_0x48c8bd);}catch{return null;}finally{clearTimeout(_0x2d9dd5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a190_0x2469(_0x4e1e7a,_0x15c284){_0x4e1e7a=_0x4e1e7a-0x8d;const _0x4ee059=a190_0x4ee0();let _0x246959=_0x4ee059[_0x4e1e7a];return _0x246959;}export async function getCliVersionPolicy(){const _0x3a6d7b=a190_0x2469,_0xf22333=Date[_0x3a6d7b(0x8f)]();if(hasCachedPolicy){const _0x2126b3=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf22333-cacheTime<_0x2126b3)return cachedPolicy;}const _0x953edb=await fetchCliVersionPolicy();return cachedPolicy=_0x953edb,cacheTime=_0xf22333,hasCachedPolicy=!![],_0x953edb;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a191_0xd9794d=a191_0x141d;(function(_0x3799be,_0xfc6dbf){const _0x586735=a191_0x141d,_0x45351d=_0x3799be();while(!![]){try{const _0x2e7bed=-parseInt(_0x586735(0x161))/0x1*(-parseInt(_0x586735(0x163))/0x2)+-parseInt(_0x586735(0x169))/0x3+-parseInt(_0x586735(0x15d))/0x4+parseInt(_0x586735(0x167))/0x5*(parseInt(_0x586735(0x15f))/0x6)+-parseInt(_0x586735(0x162))/0x7+-parseInt(_0x586735(0x160))/0x8*(-parseInt(_0x586735(0x168))/0x9)+parseInt(_0x586735(0x164))/0xa;if(_0x2e7bed===_0xfc6dbf)break;else _0x45351d['push'](_0x45351d['shift']());}catch(_0x38057b){_0x45351d['push'](_0x45351d['shift']());}}}(a191_0x575b,0xbdbb1));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x4836d7,getMultiAppConfigs as a191_0x4c9997,getTemplateBaseUrl as a191_0x5b4a5b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a191_0x575b(){const _0x3fcd93=['8128tbnIni','10673KhrFYO','10315956etoINI','82BdrWRN','16696320xEPpqb','string','project','15ZtzAky','6417DvpHIY','3914085bWuntz','2316368WzsjOO','env','2605998clHIrO'];a191_0x575b=function(){return _0x3fcd93;};return a191_0x575b();}function a191_0x141d(_0x5ba063,_0x505982){_0x5ba063=_0x5ba063-0x15d;const _0x575bd0=a191_0x575b();let _0x141de0=_0x575bd0[_0x5ba063];return _0x141de0;}export{isInProject}from'../context.js';export function readConfig(_0x46a2d3){const _0x410c17=a191_0x141d,_0x2bb4a7=readRawConfig(_0x46a2d3);return _0x2bb4a7[_0x410c17(0x15e)]&&typeof _0x2bb4a7[_0x410c17(0x15e)]===_0x410c17(0x165)&&initEnv(_0x2bb4a7[_0x410c17(0x15e)]),_0x2bb4a7;}export function getConfigAppCode(){return a191_0x4836d7();}export function getMultiAppConfigs(_0x1bc272=a191_0xd9794d(0x166)){return a191_0x4c9997(_0x1bc272);}export function getTemplateBaseUrl(){return a191_0x5b4a5b();}
1
+ (function(_0xab2b3f,_0x523768){const _0x1c733a=a191_0x1167,_0x2865d8=_0xab2b3f();while(!![]){try{const _0x315fdb=-parseInt(_0x1c733a(0x1a5))/0x1+-parseInt(_0x1c733a(0x1ad))/0x2*(-parseInt(_0x1c733a(0x1ac))/0x3)+parseInt(_0x1c733a(0x1a8))/0x4*(parseInt(_0x1c733a(0x1a3))/0x5)+-parseInt(_0x1c733a(0x1ab))/0x6+parseInt(_0x1c733a(0x1a7))/0x7+-parseInt(_0x1c733a(0x1a4))/0x8*(parseInt(_0x1c733a(0x1a6))/0x9)+parseInt(_0x1c733a(0x1aa))/0xa;if(_0x315fdb===_0x523768)break;else _0x2865d8['push'](_0x2865d8['shift']());}catch(_0x2b0e94){_0x2865d8['push'](_0x2865d8['shift']());}}}(a191_0x2b12,0x75e73));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x5d3585,getMultiAppConfigs as a191_0x46d2d5,getTemplateBaseUrl as a191_0x264257}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a191_0x2b12(){const _0x49b9f3=['40962cgYzDm','string','75VIckvf','7454728cxOPOw','554606sSmnnP','9yOJZzJ','2169601ViwyEW','144004Ozpqsp','env','11864580IlmKii','4949010NPmZbh','111klfwcK'];a191_0x2b12=function(){return _0x49b9f3;};return a191_0x2b12();}function a191_0x1167(_0x10a0fd,_0x3703e2){_0x10a0fd=_0x10a0fd-0x1a2;const _0x2b12ba=a191_0x2b12();let _0x11674c=_0x2b12ba[_0x10a0fd];return _0x11674c;}export{isInProject}from'../context.js';export function readConfig(_0x4a95d0){const _0xfeea98=a191_0x1167,_0x20ef64=readRawConfig(_0x4a95d0);return _0x20ef64[_0xfeea98(0x1a9)]&&typeof _0x20ef64['env']===_0xfeea98(0x1a2)&&initEnv(_0x20ef64[_0xfeea98(0x1a9)]),_0x20ef64;}export function getConfigAppCode(){return a191_0x5d3585();}export function getMultiAppConfigs(_0x36cf1f='project'){return a191_0x46d2d5(_0x36cf1f);}export function getTemplateBaseUrl(){return a191_0x264257();}
@@ -1 +1 @@
1
- (function(_0x4f5445,_0x1377cd){const _0x59b5d9=a192_0xfbe4,_0x5417c8=_0x4f5445();while(!![]){try{const _0x477b07=-parseInt(_0x59b5d9(0x1e3))/0x1+-parseInt(_0x59b5d9(0x1ed))/0x2*(parseInt(_0x59b5d9(0x1e9))/0x3)+parseInt(_0x59b5d9(0x1ea))/0x4*(-parseInt(_0x59b5d9(0x1ec))/0x5)+-parseInt(_0x59b5d9(0x1e6))/0x6*(parseInt(_0x59b5d9(0x1f0))/0x7)+parseInt(_0x59b5d9(0x1f1))/0x8*(parseInt(_0x59b5d9(0x1e8))/0x9)+-parseInt(_0x59b5d9(0x1e4))/0xa*(-parseInt(_0x59b5d9(0x1f4))/0xb)+parseInt(_0x59b5d9(0x1ef))/0xc;if(_0x477b07===_0x1377cd)break;else _0x5417c8['push'](_0x5417c8['shift']());}catch(_0x3231b3){_0x5417c8['push'](_0x5417c8['shift']());}}}(a192_0x3c4d,0x5da9b));function a192_0x3c4d(){const _0x1c0c15=['135348oCKsaJ','join','5LEqufA','399214kSfbyK','name','9084516dOdpEb','7eGIBem','16nbmBeG','isDirectory','copyFileSync','33EXgiSl','54933REPvle','311970zLJmXG','复制目录时出错:','266178pbWJra','error','294102hdEYRi','6XmsJUR'];a192_0x3c4d=function(){return _0x1c0c15;};return a192_0x3c4d();}import a192_0x562f78 from'node:path';function a192_0xfbe4(_0x22d532,_0x3b4e3e){_0x22d532=_0x22d532-0x1e3;const _0x3c4d59=a192_0x3c4d();let _0xfbe4b7=_0x3c4d59[_0x22d532];return _0xfbe4b7;}import a192_0x442d93 from'node:fs';export async function copyDirectory(_0x482c3a,_0x3ea0c1){const _0x2879f8=a192_0xfbe4;try{const _0x3e2c30=a192_0x442d93['readdirSync'](_0x482c3a,{'withFileTypes':!![]});a192_0x442d93['mkdirSync'](_0x3ea0c1,{'recursive':!![]});for(const _0x17b806 of _0x3e2c30){const _0x58fbf7=a192_0x562f78[_0x2879f8(0x1eb)](_0x482c3a,_0x17b806[_0x2879f8(0x1ee)]),_0x285b54=a192_0x562f78[_0x2879f8(0x1eb)](_0x3ea0c1,_0x17b806[_0x2879f8(0x1ee)]);_0x17b806[_0x2879f8(0x1f2)]()?await copyDirectory(_0x58fbf7,_0x285b54):a192_0x442d93[_0x2879f8(0x1f3)](_0x58fbf7,_0x285b54);}}catch(_0x2c93b7){console[_0x2879f8(0x1e7)](_0x2879f8(0x1e5),_0x2c93b7);}}
1
+ (function(_0x535e93,_0x31a39f){const _0x5c6c91=a192_0x3eac,_0x2aef65=_0x535e93();while(!![]){try{const _0x21e840=-parseInt(_0x5c6c91(0xd0))/0x1*(-parseInt(_0x5c6c91(0xcb))/0x2)+parseInt(_0x5c6c91(0xc4))/0x3*(-parseInt(_0x5c6c91(0xc3))/0x4)+parseInt(_0x5c6c91(0xcf))/0x5+-parseInt(_0x5c6c91(0xcd))/0x6+-parseInt(_0x5c6c91(0xc9))/0x7*(parseInt(_0x5c6c91(0xce))/0x8)+parseInt(_0x5c6c91(0xd2))/0x9*(-parseInt(_0x5c6c91(0xc5))/0xa)+parseInt(_0x5c6c91(0xcc))/0xb;if(_0x21e840===_0x31a39f)break;else _0x2aef65['push'](_0x2aef65['shift']());}catch(_0x1c5eb7){_0x2aef65['push'](_0x2aef65['shift']());}}}(a192_0x474e,0x1d842));import a192_0x29c0e9 from'node:path';import a192_0x3d5c4f from'node:fs';export async function copyDirectory(_0x5b4753,_0x347496){const _0x504cbb=a192_0x3eac;try{const _0x3a0313=a192_0x3d5c4f[_0x504cbb(0xc6)](_0x5b4753,{'withFileTypes':!![]});a192_0x3d5c4f[_0x504cbb(0xca)](_0x347496,{'recursive':!![]});for(const _0x4c4c66 of _0x3a0313){const _0x18d53d=a192_0x29c0e9[_0x504cbb(0xd1)](_0x5b4753,_0x4c4c66['name']),_0x59c0b3=a192_0x29c0e9[_0x504cbb(0xd1)](_0x347496,_0x4c4c66[_0x504cbb(0xc7)]);_0x4c4c66[_0x504cbb(0xd4)]()?await copyDirectory(_0x18d53d,_0x59c0b3):a192_0x3d5c4f[_0x504cbb(0xc8)](_0x18d53d,_0x59c0b3);}}catch(_0x4280c8){console['error'](_0x504cbb(0xd3),_0x4280c8);}}function a192_0x3eac(_0x4ab16e,_0x39496b){_0x4ab16e=_0x4ab16e-0xc3;const _0x474ef5=a192_0x474e();let _0x3eacc1=_0x474ef5[_0x4ab16e];return _0x3eacc1;}function a192_0x474e(){const _0x7ad3f5=['16KnvTGq','join','522QVdlPg','复制目录时出错:','isDirectory','12kTPUoX','86331mrrxnO','7880QJeXPk','readdirSync','name','copyFileSync','2163DELbAP','mkdirSync','25858buASui','2154240OkPZyr','989628oOcYRD','3768DDmPrJ','803530sAfxGo'];a192_0x474e=function(){return _0x7ad3f5;};return a192_0x474e();}
@@ -1 +1 @@
1
- (function(_0x2935e8,_0x1dd042){const _0x5894af=a193_0x1646,_0x5abeab=_0x2935e8();while(!![]){try{const _0x5340ed=-parseInt(_0x5894af(0x8d))/0x1*(-parseInt(_0x5894af(0x8e))/0x2)+parseInt(_0x5894af(0x86))/0x3+-parseInt(_0x5894af(0x88))/0x4*(parseInt(_0x5894af(0x87))/0x5)+-parseInt(_0x5894af(0x8c))/0x6+parseInt(_0x5894af(0x82))/0x7+parseInt(_0x5894af(0x84))/0x8+-parseInt(_0x5894af(0x89))/0x9;if(_0x5340ed===_0x1dd042)break;else _0x5abeab['push'](_0x5abeab['shift']());}catch(_0x1993b5){_0x5abeab['push'](_0x5abeab['shift']());}}}(a193_0xa9f3,0xa4247));function toFiniteNumber(_0x2d691d){const _0x3189e6=a193_0x1646;if(typeof _0x2d691d===_0x3189e6(0x8a)&&Number[_0x3189e6(0x8b)](_0x2d691d))return _0x2d691d;if(typeof _0x2d691d===_0x3189e6(0x83)){const _0x3a5587=_0x2d691d[_0x3189e6(0x85)]();if(!_0x3a5587)return undefined;const _0x5e3dc0=Number(_0x3a5587);if(Number[_0x3189e6(0x8b)](_0x5e3dc0))return _0x5e3dc0;}return undefined;}export function normalizeEntityWithIdResponse(_0x531e11){const _0x555f69=a193_0x1646,_0x3b8d8a=toFiniteNumber(_0x531e11);if(_0x3b8d8a!==undefined)return{'id':_0x3b8d8a,'entity':{'id':_0x3b8d8a}};if(!_0x531e11||typeof _0x531e11!==_0x555f69(0x8f))return{'id':undefined,'entity':{}};const _0x1b319d={..._0x531e11},_0x4919ae=toFiniteNumber(_0x1b319d['id']);return _0x4919ae!==undefined&&(_0x1b319d['id']=_0x4919ae),{'id':_0x4919ae,'entity':_0x1b319d};}function a193_0x1646(_0x2fefcd,_0x59ee0b){_0x2fefcd=_0x2fefcd-0x82;const _0xa9f3e1=a193_0xa9f3();let _0x1646be=_0xa9f3e1[_0x2fefcd];return _0x1646be;}function a193_0xa9f3(){const _0x3954fe=['string','2168304KQRZok','trim','2367615CkfaGl','748780zdfERX','12GowrVp','10909566frRdkW','number','isFinite','1070982KLwOhn','1250668qGEwQu','2SZFIIf','object','1409485emUPYV'];a193_0xa9f3=function(){return _0x3954fe;};return a193_0xa9f3();}
1
+ function a193_0x1dd8(_0x490b62,_0xf1aef2){_0x490b62=_0x490b62-0x190;const _0x421527=a193_0x4215();let _0x1dd87a=_0x421527[_0x490b62];return _0x1dd87a;}(function(_0x13c0d,_0x2f18a2){const _0x2e3329=a193_0x1dd8,_0x393485=_0x13c0d();while(!![]){try{const _0x5365a4=-parseInt(_0x2e3329(0x197))/0x1*(-parseInt(_0x2e3329(0x19b))/0x2)+parseInt(_0x2e3329(0x190))/0x3*(-parseInt(_0x2e3329(0x193))/0x4)+parseInt(_0x2e3329(0x194))/0x5+parseInt(_0x2e3329(0x192))/0x6*(-parseInt(_0x2e3329(0x19c))/0x7)+parseInt(_0x2e3329(0x19a))/0x8+-parseInt(_0x2e3329(0x19d))/0x9*(-parseInt(_0x2e3329(0x195))/0xa)+-parseInt(_0x2e3329(0x199))/0xb;if(_0x5365a4===_0x2f18a2)break;else _0x393485['push'](_0x393485['shift']());}catch(_0x3cdd97){_0x393485['push'](_0x393485['shift']());}}}(a193_0x4215,0x5e7b8));function a193_0x4215(){const _0x478dcf=['34kcVaho','7XYIhcZ','505737JdCRBU','1446UEYMwK','object','3307272PvmbMK','64fsTCOs','3530510gvsVlN','90WjegmP','trim','41179zPqHyO','number','19095219IDmCBX','6159768bBYhhz'];a193_0x4215=function(){return _0x478dcf;};return a193_0x4215();}function toFiniteNumber(_0x5d1c62){const _0x3026ae=a193_0x1dd8;if(typeof _0x5d1c62===_0x3026ae(0x198)&&Number['isFinite'](_0x5d1c62))return _0x5d1c62;if(typeof _0x5d1c62==='string'){const _0x331b21=_0x5d1c62[_0x3026ae(0x196)]();if(!_0x331b21)return undefined;const _0x32c63c=Number(_0x331b21);if(Number['isFinite'](_0x32c63c))return _0x32c63c;}return undefined;}export function normalizeEntityWithIdResponse(_0x5ec051){const _0x1126e3=a193_0x1dd8,_0x11bd8e=toFiniteNumber(_0x5ec051);if(_0x11bd8e!==undefined)return{'id':_0x11bd8e,'entity':{'id':_0x11bd8e}};if(!_0x5ec051||typeof _0x5ec051!==_0x1126e3(0x191))return{'id':undefined,'entity':{}};const _0x5e7aa6={..._0x5ec051},_0x4b68e6=toFiniteNumber(_0x5e7aa6['id']);return _0x4b68e6!==undefined&&(_0x5e7aa6['id']=_0x4b68e6),{'id':_0x4b68e6,'entity':_0x5e7aa6};}
@@ -1 +1 @@
1
- (function(_0x1fbe82,_0x138b7b){const _0x3cb36f=a194_0x1af7,_0x4d2650=_0x1fbe82();while(!![]){try{const _0x5d9fea=parseInt(_0x3cb36f(0x15e))/0x1+parseInt(_0x3cb36f(0x15c))/0x2*(-parseInt(_0x3cb36f(0x15b))/0x3)+parseInt(_0x3cb36f(0x160))/0x4+parseInt(_0x3cb36f(0x162))/0x5+-parseInt(_0x3cb36f(0x15f))/0x6*(parseInt(_0x3cb36f(0x163))/0x7)+-parseInt(_0x3cb36f(0x161))/0x8+parseInt(_0x3cb36f(0x15d))/0x9;if(_0x5d9fea===_0x138b7b)break;else _0x4d2650['push'](_0x4d2650['shift']());}catch(_0xb28908){_0x4d2650['push'](_0x4d2650['shift']());}}}(a194_0x5dcb,0x9a536));function a194_0x1af7(_0x76658f,_0x2266f7){_0x76658f=_0x76658f-0x15b;const _0x5dcb31=a194_0x5dcb();let _0x1af7ba=_0x5dcb31[_0x76658f];return _0x1af7ba;}function a194_0x5dcb(){const _0x523afc=['6uxvutp','2184512nYmgGE','7330904yErNvo','4739890PakZTL','1081220MwEiKe','2792007vrIeAb','2ORpTuU','1884681BFssLl','930095xgqPPf'];a194_0x5dcb=function(){return _0x523afc;};return a194_0x5dcb();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x23cc4e,_0x4ec4eb){const _0x212714=statSync(_0x23cc4e);if(_0x212714['isDirectory']()){!existsSync(_0x4ec4eb)&&mkdirSync(_0x4ec4eb,{'recursive':!![]});const _0x4ba104=readdirSync(_0x23cc4e);for(const _0x5b6115 of _0x4ba104){await copyDir(join(_0x23cc4e,_0x5b6115),join(_0x4ec4eb,_0x5b6115));}}else copyFileSync(_0x23cc4e,_0x4ec4eb);}export function ensureDir(_0x5999c9){!existsSync(_0x5999c9)&&mkdirSync(_0x5999c9,{'recursive':!![]});}export function pathExists(_0x35f670){return existsSync(_0x35f670);}
1
+ (function(_0x520e9a,_0x3450da){const _0x2df7d3=a194_0x1d3d,_0x4f01d5=_0x520e9a();while(!![]){try{const _0x46758a=-parseInt(_0x2df7d3(0x7b))/0x1+parseInt(_0x2df7d3(0x83))/0x2*(parseInt(_0x2df7d3(0x7a))/0x3)+-parseInt(_0x2df7d3(0x84))/0x4+parseInt(_0x2df7d3(0x81))/0x5+-parseInt(_0x2df7d3(0x80))/0x6*(parseInt(_0x2df7d3(0x7c))/0x7)+-parseInt(_0x2df7d3(0x7f))/0x8+-parseInt(_0x2df7d3(0x82))/0x9*(-parseInt(_0x2df7d3(0x7d))/0xa);if(_0x46758a===_0x3450da)break;else _0x4f01d5['push'](_0x4f01d5['shift']());}catch(_0x31a686){_0x4f01d5['push'](_0x4f01d5['shift']());}}}(a194_0x2a4f,0x47b3c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a194_0x2a4f(){const _0xc4a708=['292288ayhUSw','6xbSzec','503290IgEdQU','9alJKpO','13582nEOswp','888092ChDMyY','84omnwSK','311126MzJXiG','1202943YsLMGD','7444200MpzIry','isDirectory'];a194_0x2a4f=function(){return _0xc4a708;};return a194_0x2a4f();}import{join}from'node:path';export async function copyDir(_0x14ec4c,_0x1f8122){const _0x472d6b=a194_0x1d3d,_0x20f169=statSync(_0x14ec4c);if(_0x20f169[_0x472d6b(0x7e)]()){!existsSync(_0x1f8122)&&mkdirSync(_0x1f8122,{'recursive':!![]});const _0x5d73da=readdirSync(_0x14ec4c);for(const _0x187682 of _0x5d73da){await copyDir(join(_0x14ec4c,_0x187682),join(_0x1f8122,_0x187682));}}else copyFileSync(_0x14ec4c,_0x1f8122);}function a194_0x1d3d(_0x1299f9,_0x1ce54c){_0x1299f9=_0x1299f9-0x7a;const _0x2a4fcc=a194_0x2a4f();let _0x1d3d67=_0x2a4fcc[_0x1299f9];return _0x1d3d67;}export function ensureDir(_0x454b65){!existsSync(_0x454b65)&&mkdirSync(_0x454b65,{'recursive':!![]});}export function pathExists(_0x88350b){return existsSync(_0x88350b);}
@@ -1 +1 @@
1
- const a195_0x21d70c=a195_0xc7dc;(function(_0x1e058e,_0x23985c){const _0x4dfd55=a195_0xc7dc,_0x5d9df0=_0x1e058e();while(!![]){try{const _0x94bdb0=parseInt(_0x4dfd55(0xf7))/0x1*(parseInt(_0x4dfd55(0xf9))/0x2)+-parseInt(_0x4dfd55(0x115))/0x3*(-parseInt(_0x4dfd55(0x10f))/0x4)+parseInt(_0x4dfd55(0x113))/0x5+-parseInt(_0x4dfd55(0x107))/0x6*(-parseInt(_0x4dfd55(0x108))/0x7)+parseInt(_0x4dfd55(0x112))/0x8+parseInt(_0x4dfd55(0x103))/0x9+-parseInt(_0x4dfd55(0x10c))/0xa;if(_0x94bdb0===_0x23985c)break;else _0x5d9df0['push'](_0x5d9df0['shift']());}catch(_0x1f23a5){_0x5d9df0['push'](_0x5d9df0['shift']());}}}(a195_0x9b4d,0x4ff2b));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a195_0x9b4d(){const _0x46d03e=['3UxJeYL','lastUpdated','application/json','.lovrabet/skill/guides','path','cache','8mvrQgI','push','92148tItCco','\x0a\x0a>更新时间:','CDN\x20返回数据格式错误','content','extendContent','status','replace','trimEnd','keys','CDN\x20数据中缺少\x20skillTemplate','4437414SWuZTu','length','statusText','entries','414EWytMy','17689buepOW','guides','title','utf-8','17323960nNXGak','skillTemplate','CDN\x20请求失败:\x20','2255124HJOMCM','map','/skills/guides.json','2724936pnBBjv','597320FCxXdN','.md'];a195_0x9b4d=function(){return _0x46d03e;};return a195_0x9b4d();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4ef512=a195_0xc7dc,_0x4e9a00=getTemplateBaseUrl();return _0x4e9a00+_0x4ef512(0x111);}const CACHE_DIR=join(homedir(),'.lovrabet',a195_0x21d70c(0xf6));export async function fetchGuidesFromCDN(){const _0x49fb45=a195_0x21d70c,_0x155f31=getGuidesCdnUrl(),_0x54703a=await fetch(_0x155f31,{'headers':{'Accept':_0x49fb45(0xf3)}});if(!_0x54703a['ok'])throw new Error(_0x49fb45(0x10e)+_0x54703a[_0x49fb45(0xfe)]+'\x20'+_0x54703a[_0x49fb45(0x105)]);const _0x5a1dac=await _0x54703a['json']();if(!_0x5a1dac[_0x49fb45(0x109)]||typeof _0x5a1dac[_0x49fb45(0x109)]!=='object')throw new Error(_0x49fb45(0xfb));return _0x5a1dac;}export function writeGuidesToProject(_0x27b37d,_0x30ac4d,_0x432715=a195_0x21d70c(0xf4),_0x257592){const _0x5131fe=a195_0x21d70c,_0x1ee874=join(_0x30ac4d,_0x432715);mkdirSync(_0x1ee874,{'recursive':!![]});for(const [_0x43966c,_0x55f918]of Object[_0x5131fe(0x106)](_0x27b37d[_0x5131fe(0x109)])){let _0x4d290=_0x55f918[_0x5131fe(0xfc)];_0x55f918['lastUpdated']&&(_0x4d290=appendUpdateTime(_0x4d290,_0x55f918['lastUpdated'])),writeFileSync(join(_0x1ee874,_0x43966c+_0x5131fe(0x114)),_0x4d290,'utf-8');}}function a195_0xc7dc(_0x23b192,_0x4ad650){_0x23b192=_0x23b192-0xf2;const _0x9b4d9=a195_0x9b4d();let _0xc7dcc9=_0x9b4d9[_0x23b192];return _0xc7dcc9;}export function appendUpdateTime(_0xfb25c6,_0x4d4787){const _0x1279fd=a195_0x21d70c;return _0xfb25c6=_0xfb25c6[_0x1279fd(0xff)](/\n*>更新时间:.*$/m,''),_0xfb25c6[_0x1279fd(0x100)]()+(_0x1279fd(0xfa)+_0x4d4787);}export function getSkillTemplate(_0x109b36){const _0x53d75b=a195_0x21d70c;return _0x109b36[_0x53d75b(0x10d)]?.[_0x53d75b(0xfc)]||'';}export function appendExtendContents(_0x561213,_0x516909,_0x228d74){const _0x2eb964=a195_0x21d70c,_0x3c1e01=[];for(const [,_0x39024f]of Object['entries'](_0x516909['guides'])){_0x39024f['extendContent']&&_0x3c1e01[_0x2eb964(0xf8)](_0x39024f[_0x2eb964(0xfd)][_0x2eb964(0x100)]());}if(_0x3c1e01[_0x2eb964(0x104)]===0x0)return _0x561213;return _0x561213['trimEnd']()+'\x0a\x0a'+_0x3c1e01['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x13b346,_0x101fbb,_0x306588){const _0x5d2d70=a195_0x21d70c,_0x345ddb=getSkillTemplate(_0x13b346);if(!_0x345ddb)throw new Error(_0x5d2d70(0x102));const _0x58526a=dirname(_0x101fbb);mkdirSync(_0x58526a,{'recursive':!![]});let _0x67c1e7=_0x345ddb[_0x5d2d70(0xff)](/\{\{IDE_NAME\}\}/g,_0x306588);_0x67c1e7=appendExtendContents(_0x67c1e7,_0x13b346),_0x13b346[_0x5d2d70(0x10d)][_0x5d2d70(0xf2)]&&(_0x67c1e7=appendUpdateTime(_0x67c1e7,_0x13b346['skillTemplate']['lastUpdated'])),writeFileSync(_0x101fbb,_0x67c1e7,_0x5d2d70(0x10b));}export async function installGuides(_0x23ba1a){const _0x2c04c4=a195_0x21d70c,_0x3c679a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3c679a,_0x23ba1a),Object[_0x2c04c4(0x101)](_0x3c679a[_0x2c04c4(0x109)])[_0x2c04c4(0x104)];}export function getGuidesSummary(_0x45d8be){const _0x5b32d6=a195_0x21d70c;return Object[_0x5b32d6(0x106)](_0x45d8be[_0x5b32d6(0x109)])[_0x5b32d6(0x110)](([_0x2aca32,_0xb109c6])=>({'key':_0x2aca32,'title':_0xb109c6[_0x5b32d6(0x10a)],'path':_0xb109c6[_0x5b32d6(0xf5)]}));}
1
+ const a195_0x997251=a195_0x40bd;function a195_0x40bd(_0x41912f,_0x19bb81){_0x41912f=_0x41912f-0xce;const _0x1165c1=a195_0x1165();let _0x40bd5a=_0x1165c1[_0x41912f];return _0x40bd5a;}(function(_0x45f6a4,_0x38aadf){const _0x23210c=a195_0x40bd,_0x13eb76=_0x45f6a4();while(!![]){try{const _0x1cdec1=parseInt(_0x23210c(0xdb))/0x1*(parseInt(_0x23210c(0xeb))/0x2)+-parseInt(_0x23210c(0xea))/0x3*(parseInt(_0x23210c(0xe1))/0x4)+parseInt(_0x23210c(0xe9))/0x5*(-parseInt(_0x23210c(0xd5))/0x6)+parseInt(_0x23210c(0xda))/0x7+-parseInt(_0x23210c(0xed))/0x8*(parseInt(_0x23210c(0xde))/0x9)+-parseInt(_0x23210c(0xd1))/0xa*(-parseInt(_0x23210c(0xe3))/0xb)+parseInt(_0x23210c(0xd8))/0xc;if(_0x1cdec1===_0x38aadf)break;else _0x13eb76['push'](_0x13eb76['shift']());}catch(_0x3ea226){_0x13eb76['push'](_0x13eb76['shift']());}}}(a195_0x1165,0xdf127));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x53b980=getTemplateBaseUrl();return _0x53b980+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a195_0x997251(0xdf),'cache');export async function fetchGuidesFromCDN(){const _0x37950f=a195_0x997251,_0x43050b=getGuidesCdnUrl(),_0x40dec5=await fetch(_0x43050b,{'headers':{'Accept':_0x37950f(0xd4)}});if(!_0x40dec5['ok'])throw new Error(_0x37950f(0xe2)+_0x40dec5['status']+'\x20'+_0x40dec5[_0x37950f(0xe5)]);const _0x278615=await _0x40dec5['json']();if(!_0x278615['guides']||typeof _0x278615[_0x37950f(0xe6)]!=='object')throw new Error(_0x37950f(0xd3));return _0x278615;}export function writeGuidesToProject(_0x188a63,_0xc905ed,_0x3da21c=a195_0x997251(0xdc),_0x525647){const _0x1c138c=a195_0x997251,_0xa5a4ee=join(_0xc905ed,_0x3da21c);mkdirSync(_0xa5a4ee,{'recursive':!![]});for(const [_0x4cbd64,_0x6efa51]of Object[_0x1c138c(0xcf)](_0x188a63[_0x1c138c(0xe6)])){let _0x2f1057=_0x6efa51[_0x1c138c(0xd2)];_0x6efa51['lastUpdated']&&(_0x2f1057=appendUpdateTime(_0x2f1057,_0x6efa51[_0x1c138c(0xd9)])),writeFileSync(join(_0xa5a4ee,_0x4cbd64+_0x1c138c(0xd7)),_0x2f1057,_0x1c138c(0xdd));}}function a195_0x1165(){const _0x350295=['replace','4735bgMnNb','9ZmBZed','316154HJqrAS','trimEnd','120bISccl','skillTemplate','entries','\x0a\x0a>更新时间:','78370TnZVEt','content','CDN\x20返回数据格式错误','application/json','7230XPWoDQ','CDN\x20数据中缺少\x20skillTemplate','.md','14090112KOStLo','lastUpdated','10256092uOKAHu','1JaKXbt','.lovrabet/skill/guides','utf-8','562446NTbqdk','.lovrabet','extendContent','816496LthXkf','CDN\x20请求失败:\x20','1133JKkyMW','push','statusText','guides','length'];a195_0x1165=function(){return _0x350295;};return a195_0x1165();}export function appendUpdateTime(_0x1da1a7,_0x479d04){const _0x26d98b=a195_0x997251;return _0x1da1a7=_0x1da1a7[_0x26d98b(0xe8)](/\n*>更新时间:.*$/m,''),_0x1da1a7[_0x26d98b(0xec)]()+(_0x26d98b(0xd0)+_0x479d04);}export function getSkillTemplate(_0x362ff9){const _0x41497c=a195_0x997251;return _0x362ff9[_0x41497c(0xce)]?.['content']||'';}export function appendExtendContents(_0x5b906e,_0x2a3f66,_0x125e76){const _0x139d9c=a195_0x997251,_0x42803f=[];for(const [,_0x2bc011]of Object[_0x139d9c(0xcf)](_0x2a3f66['guides'])){_0x2bc011[_0x139d9c(0xe0)]&&_0x42803f[_0x139d9c(0xe4)](_0x2bc011['extendContent'][_0x139d9c(0xec)]());}if(_0x42803f[_0x139d9c(0xe7)]===0x0)return _0x5b906e;return _0x5b906e[_0x139d9c(0xec)]()+'\x0a\x0a'+_0x42803f['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2ba22e,_0x22de5c,_0x5f5c79){const _0x17f011=a195_0x997251,_0x159679=getSkillTemplate(_0x2ba22e);if(!_0x159679)throw new Error(_0x17f011(0xd6));const _0x39788a=dirname(_0x22de5c);mkdirSync(_0x39788a,{'recursive':!![]});let _0x346c65=_0x159679[_0x17f011(0xe8)](/\{\{IDE_NAME\}\}/g,_0x5f5c79);_0x346c65=appendExtendContents(_0x346c65,_0x2ba22e),_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)]&&(_0x346c65=appendUpdateTime(_0x346c65,_0x2ba22e[_0x17f011(0xce)][_0x17f011(0xd9)])),writeFileSync(_0x22de5c,_0x346c65,_0x17f011(0xdd));}export async function installGuides(_0x222458){const _0x4cd8bf=a195_0x997251,_0x3022cf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3022cf,_0x222458),Object['keys'](_0x3022cf[_0x4cd8bf(0xe6)])[_0x4cd8bf(0xe7)];}export function getGuidesSummary(_0x14f805){return Object['entries'](_0x14f805['guides'])['map'](([_0x39fc90,_0x3d06d0])=>({'key':_0x39fc90,'title':_0x3d06d0['title'],'path':_0x3d06d0['path']}));}
@@ -1 +1 @@
1
- (function(_0x478f44,_0x1e033a){const _0x42207e=a196_0x21a6,_0x2dbfb8=_0x478f44();while(!![]){try{const _0x53d327=-parseInt(_0x42207e(0x207))/0x1*(-parseInt(_0x42207e(0x209))/0x2)+parseInt(_0x42207e(0x206))/0x3+parseInt(_0x42207e(0x1f0))/0x4+parseInt(_0x42207e(0x1f8))/0x5*(parseInt(_0x42207e(0x1fa))/0x6)+parseInt(_0x42207e(0x208))/0x7*(parseInt(_0x42207e(0x1f4))/0x8)+-parseInt(_0x42207e(0x1f9))/0x9+-parseInt(_0x42207e(0x1fb))/0xa;if(_0x53d327===_0x1e033a)break;else _0x2dbfb8['push'](_0x2dbfb8['shift']());}catch(_0x4ac04b){_0x2dbfb8['push'](_0x2dbfb8['shift']());}}}(a196_0x69eb,0xf290e));export async function httpRequest(_0x339e79,_0xfacdb6={}){const _0x4e8c36=a196_0x21a6,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xfacdb6;let _0x1d26bd=null;for(let _0x2ac28c=0x0;_0x2ac28c<=retries;_0x2ac28c++){try{const _0x1828b9=new AbortController(),_0x461125=setTimeout(()=>_0x1828b9[_0x4e8c36(0x201)](),timeout),_0x37af35=await fetch(_0x339e79,{'headers':headers,'signal':_0x1828b9[_0x4e8c36(0x20a)]});clearTimeout(_0x461125);let _0x3086ea;const _0x4ddda0=_0x37af35[_0x4e8c36(0x1f2)][_0x4e8c36(0x1f1)](_0x4e8c36(0x1f6));return _0x4ddda0?.[_0x4e8c36(0x200)](_0x4e8c36(0x1fd))?_0x3086ea=await _0x37af35[_0x4e8c36(0x1f3)]():_0x3086ea=await _0x37af35[_0x4e8c36(0x1f5)](),{'ok':_0x37af35['ok'],'status':_0x37af35[_0x4e8c36(0x204)],'statusText':_0x37af35[_0x4e8c36(0x205)],'data':_0x3086ea,'headers':_0x37af35[_0x4e8c36(0x1f2)],'url':_0x37af35[_0x4e8c36(0x203)],'text':()=>_0x37af35[_0x4e8c36(0x1f5)]()};}catch(_0x2d6dda){_0x1d26bd=_0x2d6dda instanceof Error?_0x2d6dda:new Error(String(_0x2d6dda));if(_0x2ac28c===retries)break;if(shouldRetry(_0x2d6dda)){console[_0x4e8c36(0x1ef)](_0x4e8c36(0x1fe)+retryDelay+_0x4e8c36(0x202)+(_0x2ac28c+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1d26bd||new Error('Request\x20failed');}function a196_0x69eb(){const _0x50e0e7=['statusText','5763915aJoDUp','11287UJKeBV','259fDZxpD','14uMXVGO','signal','ECONNRESET','log','196776aqariv','get','headers','json','34800bQBZuk','text','content-type','AbortError','10965zysNRl','12073032TgrrVv','1770WuACpR','5223950NOOZgC','message','application/json','*\x20请求失败,','fetch','includes','abort','ms\x20后进行第\x20','url','status'];a196_0x69eb=function(){return _0x50e0e7;};return a196_0x69eb();}function shouldRetry(_0x4768ac){const _0x18e202=a196_0x21a6;if(_0x4768ac instanceof Error){if(_0x4768ac['name']===_0x18e202(0x1f7))return![];if(_0x4768ac['name']==='TypeError'&&_0x4768ac[_0x18e202(0x1fc)][_0x18e202(0x200)](_0x18e202(0x1ff)))return!![];if(_0x4768ac[_0x18e202(0x1fc)][_0x18e202(0x200)](_0x18e202(0x20b)))return!![];if(_0x4768ac['message'][_0x18e202(0x200)]('ENOTFOUND'))return![];}return![];}function sleep(_0x174438){return new Promise(_0x2b2a87=>setTimeout(_0x2b2a87,_0x174438));}function a196_0x21a6(_0x5e4e16,_0xd5704c){_0x5e4e16=_0x5e4e16-0x1ef;const _0x69eb94=a196_0x69eb();let _0x21a6f7=_0x69eb94[_0x5e4e16];return _0x21a6f7;}export function validateUrl(_0x58913b){try{return new URL(_0x58913b),!![];}catch{return![];}}
1
+ function a196_0x5759(){const _0x11f90f=['content-type','abort','headers','489980TBEzlM','5179376WFGnJn','includes','4iroFMV','225vzSHlG','statusText','name','648710yDxNkD','17066280foprRg','1636ZsTaWY','TypeError','Request\x20failed','ECONNRESET','status','json','14APmuKM','\x20次重试...','fetch','1642DBnlwP','ms\x20后进行第\x20','1214562kHGuNA','42oXfnXx','message','get','log','signal','15270132PuJfxI','url','application/json','26EGRZuj','text'];a196_0x5759=function(){return _0x11f90f;};return a196_0x5759();}(function(_0x1bd0bb,_0x162401){const _0x179394=a196_0x109c,_0x25a920=_0x1bd0bb();while(!![]){try{const _0x528fa7=parseInt(_0x179394(0x94))/0x1*(-parseInt(_0x179394(0x9d))/0x2)+parseInt(_0x179394(0x9f))/0x3*(-parseInt(_0x179394(0x8e))/0x4)+-parseInt(_0x179394(0x8b))/0x5*(-parseInt(_0x179394(0xa0))/0x6)+-parseInt(_0x179394(0x9a))/0x7*(-parseInt(_0x179394(0x8c))/0x8)+-parseInt(_0x179394(0x8f))/0x9*(-parseInt(_0x179394(0x92))/0xa)+parseInt(_0x179394(0x93))/0xb+-parseInt(_0x179394(0xa5))/0xc*(parseInt(_0x179394(0xa8))/0xd);if(_0x528fa7===_0x162401)break;else _0x25a920['push'](_0x25a920['shift']());}catch(_0x162c15){_0x25a920['push'](_0x25a920['shift']());}}}(a196_0x5759,0xd236f));export async function httpRequest(_0x270848,_0x2f27c1={}){const _0x35195f=a196_0x109c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2f27c1;let _0x43c897=null;for(let _0x3ca261=0x0;_0x3ca261<=retries;_0x3ca261++){try{const _0x498083=new AbortController(),_0x2d50c1=setTimeout(()=>_0x498083[_0x35195f(0x89)](),timeout),_0x56008b=await fetch(_0x270848,{'headers':headers,'signal':_0x498083[_0x35195f(0xa4)]});clearTimeout(_0x2d50c1);let _0x5097d7;const _0x3194d1=_0x56008b[_0x35195f(0x8a)][_0x35195f(0xa2)](_0x35195f(0x88));return _0x3194d1?.[_0x35195f(0x8d)](_0x35195f(0xa7))?_0x5097d7=await _0x56008b[_0x35195f(0x99)]():_0x5097d7=await _0x56008b[_0x35195f(0x87)](),{'ok':_0x56008b['ok'],'status':_0x56008b[_0x35195f(0x98)],'statusText':_0x56008b[_0x35195f(0x90)],'data':_0x5097d7,'headers':_0x56008b['headers'],'url':_0x56008b[_0x35195f(0xa6)],'text':()=>_0x56008b[_0x35195f(0x87)]()};}catch(_0x5d4331){_0x43c897=_0x5d4331 instanceof Error?_0x5d4331:new Error(String(_0x5d4331));if(_0x3ca261===retries)break;if(shouldRetry(_0x5d4331)){console[_0x35195f(0xa3)]('*\x20请求失败,'+retryDelay+_0x35195f(0x9e)+(_0x3ca261+0x1)+_0x35195f(0x9b)),await sleep(retryDelay);continue;}else break;}}throw _0x43c897||new Error(_0x35195f(0x96));}function shouldRetry(_0x4979ae){const _0x5dc142=a196_0x109c;if(_0x4979ae instanceof Error){if(_0x4979ae[_0x5dc142(0x91)]==='AbortError')return![];if(_0x4979ae['name']===_0x5dc142(0x95)&&_0x4979ae['message'][_0x5dc142(0x8d)](_0x5dc142(0x9c)))return!![];if(_0x4979ae['message'][_0x5dc142(0x8d)](_0x5dc142(0x97)))return!![];if(_0x4979ae[_0x5dc142(0xa1)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x276489){return new Promise(_0x27c9d2=>setTimeout(_0x27c9d2,_0x276489));}function a196_0x109c(_0x2702f8,_0x4091a5){_0x2702f8=_0x2702f8-0x87;const _0x575960=a196_0x5759();let _0x109c3f=_0x575960[_0x2702f8];return _0x109c3f;}export function validateUrl(_0x3594a7){try{return new URL(_0x3594a7),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a197_0x4391(){const _0x5d2bbf=['2TkQJtm','true','stdout','setRawMode','isTTY','nonInteractive','348vFJJJK','410YmAVil','stdin','2247ebggIA','39YCDgdB','97702kKjPfP','350gJeZne','117057gfCCcu','295026rtBDhX','31912ZgMQps','1372pLljUt','2646238gdMeBE','55737vbWjod','20ECixYJ','isRaw'];a197_0x4391=function(){return _0x5d2bbf;};return a197_0x4391();}function a197_0x15ac(_0x36e355,_0x3c9fe6){_0x36e355=_0x36e355-0x17d;const _0x439171=a197_0x4391();let _0x15ac5b=_0x439171[_0x36e355];return _0x15ac5b;}(function(_0xc98c71,_0x58c513){const _0x5f01a3=a197_0x15ac,_0x4af458=_0xc98c71();while(!![]){try{const _0x52200a=parseInt(_0x5f01a3(0x187))/0x1*(parseInt(_0x5f01a3(0x18f))/0x2)+-parseInt(_0x5f01a3(0x183))/0x3*(parseInt(_0x5f01a3(0x18a))/0x4)+parseInt(_0x5f01a3(0x18d))/0x5*(parseInt(_0x5f01a3(0x188))/0x6)+-parseInt(_0x5f01a3(0x186))/0x7*(-parseInt(_0x5f01a3(0x189))/0x8)+parseInt(_0x5f01a3(0x18c))/0x9*(parseInt(_0x5f01a3(0x181))/0xa)+-parseInt(_0x5f01a3(0x185))/0xb*(-parseInt(_0x5f01a3(0x180))/0xc)+parseInt(_0x5f01a3(0x184))/0xd*(-parseInt(_0x5f01a3(0x18b))/0xe);if(_0x52200a===_0x58c513)break;else _0x4af458['push'](_0x4af458['shift']());}catch(_0x17ed0d){_0x4af458['push'](_0x4af458['shift']());}}}(a197_0x4391,0x31014));function env(_0x170532){return process.env[`RABETBASE_${_0x170532}`]||process.env[`LOVRABET_${_0x170532}`]||undefined;}export function isNonInteractive(_0x394327){const _0x4cca23=a197_0x15ac;return!!(_0x394327[_0x4cca23(0x17f)]||_0x394327['ci']||env('CI')===_0x4cca23(0x190)||process.env.CI===_0x4cca23(0x190)||!process[_0x4cca23(0x191)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e0379=a197_0x15ac;if(!process[_0x5e0379(0x182)][_0x5e0379(0x17e)])return![];try{const _0x4f4c17=process[_0x5e0379(0x182)][_0x5e0379(0x18e)];return process[_0x5e0379(0x182)][_0x5e0379(0x17d)](!![]),process[_0x5e0379(0x182)][_0x5e0379(0x17d)](_0x4f4c17??![]),!![];}catch{return![];}}
1
+ function a197_0x1e94(_0x3caa8f,_0x208cf4){_0x3caa8f=_0x3caa8f-0xd5;const _0x1b6a77=a197_0x1b6a();let _0x1e9421=_0x1b6a77[_0x3caa8f];return _0x1e9421;}(function(_0x4fcf76,_0x3c2f90){const _0x312d2f=a197_0x1e94,_0x3170d2=_0x4fcf76();while(!![]){try{const _0x57b303=-parseInt(_0x312d2f(0xd8))/0x1+parseInt(_0x312d2f(0xe2))/0x2+-parseInt(_0x312d2f(0xe3))/0x3+-parseInt(_0x312d2f(0xe1))/0x4+parseInt(_0x312d2f(0xdf))/0x5*(-parseInt(_0x312d2f(0xd5))/0x6)+parseInt(_0x312d2f(0xdb))/0x7+parseInt(_0x312d2f(0xe0))/0x8*(parseInt(_0x312d2f(0xdc))/0x9);if(_0x57b303===_0x3c2f90)break;else _0x3170d2['push'](_0x3170d2['shift']());}catch(_0x5d2e5e){_0x3170d2['push'](_0x3170d2['shift']());}}}(a197_0x1b6a,0x1edcb));function env(_0x29c0f6){return process.env[`RABETBASE_${_0x29c0f6}`]||process.env[`LOVRABET_${_0x29c0f6}`]||undefined;}export function isNonInteractive(_0x23ddbf){const _0x3194c7=a197_0x1e94;return!!(_0x23ddbf['nonInteractive']||_0x23ddbf['ci']||env('CI')==='true'||process.env.CI===_0x3194c7(0xda)||!process[_0x3194c7(0xd6)][_0x3194c7(0xde)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4db890=a197_0x1e94;if(!process['stdin']['isTTY'])return![];try{const _0x38c37d=process[_0x4db890(0xd9)][_0x4db890(0xd7)];return process[_0x4db890(0xd9)][_0x4db890(0xdd)](!![]),process[_0x4db890(0xd9)][_0x4db890(0xdd)](_0x38c37d??![]),!![];}catch{return![];}}function a197_0x1b6a(){const _0x25af9a=['stdin','true','1403710QBzTUF','3177jzONGM','setRawMode','isTTY','395bggrpM','6896PONLAY','67024PRRvdV','78024VHZNij','363225LhFGnA','3270bWSSgR','stdout','isRaw','236531BpjTjE'];a197_0x1b6a=function(){return _0x25af9a;};return a197_0x1b6a();}
@@ -1 +1 @@
1
- const a198_0x534b6c=a198_0x593f;(function(_0x2e5b71,_0x256659){const _0x52e4a0=a198_0x593f,_0x3f4865=_0x2e5b71();while(!![]){try{const _0x11cf46=parseInt(_0x52e4a0(0x107))/0x1*(parseInt(_0x52e4a0(0x11a))/0x2)+parseInt(_0x52e4a0(0x11c))/0x3+-parseInt(_0x52e4a0(0x106))/0x4*(parseInt(_0x52e4a0(0x114))/0x5)+-parseInt(_0x52e4a0(0x102))/0x6+-parseInt(_0x52e4a0(0x126))/0x7+parseInt(_0x52e4a0(0xf9))/0x8*(parseInt(_0x52e4a0(0x103))/0x9)+-parseInt(_0x52e4a0(0x121))/0xa;if(_0x11cf46===_0x256659)break;else _0x3f4865['push'](_0x3f4865['shift']());}catch(_0x4eaeb0){_0x3f4865['push'](_0x3f4865['shift']());}}}(a198_0x3115,0xd860c));import a198_0x3e102d from'winston';import a198_0x3ef549 from'node:fs';import a198_0x4c2d40 from'node:path';class Logger{[a198_0x534b6c(0x125)];[a198_0x534b6c(0x104)];[a198_0x534b6c(0x100)]='';constructor(){const _0x543d65=a198_0x534b6c;this[_0x543d65(0x104)]='';}['setRawCommand'](_0x421a58){this['currentRawCommand']=_0x421a58;}[a198_0x534b6c(0x11b)](){const _0x587be6=a198_0x534b6c,_0x4b8b96=a198_0x4c2d40['dirname'](this[_0x587be6(0x104)]);!a198_0x3ef549[_0x587be6(0x101)](_0x4b8b96)&&a198_0x3ef549[_0x587be6(0x12e)](_0x4b8b96,{'recursive':!![]});const _0x2b0e31=a198_0x3e102d[_0x587be6(0x119)]['combine'](a198_0x3e102d['format'][_0x587be6(0x12f)](),a198_0x3e102d['format'][_0x587be6(0x112)]({'stack':!![]}),a198_0x3e102d[_0x587be6(0x119)][_0x587be6(0x10e)](_0x3237d1=>{const _0x4913e8=_0x587be6,_0x1ce78e={'timestamp':_0x3237d1[_0x4913e8(0x12f)]||new Date()['toISOString'](),'level':_0x3237d1['level']||_0x4913e8(0xfe),'command':_0x3237d1[_0x4913e8(0x123)]||_0x4913e8(0x10b),'rawCommand':_0x3237d1['rawCommand']||this[_0x4913e8(0x100)]||undefined,'message':_0x3237d1[_0x4913e8(0x10a)]||'','duration':_0x3237d1[_0x4913e8(0x128)]||undefined,'details':_0x3237d1[_0x4913e8(0x108)]||undefined};return JSON[_0x4913e8(0x113)](_0x1ce78e);}));this[_0x587be6(0x125)]=a198_0x3e102d[_0x587be6(0x117)]({'level':_0x587be6(0xfe),'format':_0x2b0e31,'transports':[new a198_0x3e102d[(_0x587be6(0x120))][(_0x587be6(0xfa))]({'filename':this[_0x587be6(0x104)],'level':'info'})],'silent':![]}),a198_0x3e102d[_0x587be6(0x115)]({'success':_0x587be6(0x10f),'error':_0x587be6(0x116),'warn':_0x587be6(0x109),'info':'blue'});}[a198_0x534b6c(0x12c)](_0xfb722){const _0x27d110=a198_0x534b6c;this[_0x27d110(0x104)]=a198_0x4c2d40[_0x27d110(0x127)](_0xfb722,'.lovrabet.log'),this[_0x27d110(0x125)]&&this[_0x27d110(0x125)][_0x27d110(0xfb)](),this['initWinstonLogger']();}[a198_0x534b6c(0xfe)](_0x1621fe,_0x5d3c98,_0x358cbc){const _0x3611f0=a198_0x534b6c;if(!this[_0x3611f0(0x104)]||!this[_0x3611f0(0x125)])return;this[_0x3611f0(0x125)][_0x3611f0(0xfe)](_0x5d3c98,{'command':_0x1621fe,'details':_0x358cbc});}['success'](_0x2146d1,_0x345082,_0x1dc096,_0x56f03e){const _0x36063e=a198_0x534b6c;if(!this[_0x36063e(0x104)]||!this['winstonLogger'])return;this[_0x36063e(0x125)]['log'](_0x36063e(0xfe),_0x345082,{'level':_0x36063e(0x122),'command':_0x2146d1,'duration':_0x1dc096,'details':_0x56f03e});}[a198_0x534b6c(0x12a)](_0x477cd8,_0x19a1de,_0x97d0e){const _0x136148=a198_0x534b6c;if(!this[_0x136148(0x104)]||!this[_0x136148(0x125)])return;this[_0x136148(0x125)][_0x136148(0x12a)](_0x19a1de,{'command':_0x477cd8,'details':_0x97d0e});}['warn'](_0x5d0aee,_0x4b9d24,_0x36b699){const _0x239296=a198_0x534b6c;if(!this[_0x239296(0x104)]||!this[_0x239296(0x125)])return;this[_0x239296(0x125)][_0x239296(0x105)](_0x4b9d24,{'command':_0x5d0aee,'details':_0x36b699});}async['logTask'](_0x33546e,_0x13aa2d,_0x31a197){const _0x269823=a198_0x534b6c,_0x2709ca=Date[_0x269823(0x12d)]();this[_0x269823(0xfe)](_0x33546e,'开始执行:\x20'+_0x13aa2d);try{const _0x34d175=await _0x31a197(),_0x271e87=Date[_0x269823(0x12d)]()-_0x2709ca;return this[_0x269823(0x122)](_0x33546e,'完成:\x20'+_0x13aa2d,_0x271e87),_0x34d175;}catch(_0x1659fd){const _0x1ec5e9=Date['now']()-_0x2709ca;this['error'](_0x33546e,_0x269823(0x129)+_0x13aa2d,{'error':_0x1659fd instanceof Error?_0x1659fd[_0x269823(0x10a)]:String(_0x1659fd),'duration':_0x1ec5e9});throw _0x1659fd;}}[a198_0x534b6c(0x11d)](){const _0x54ffea=a198_0x534b6c;try{if(!a198_0x3ef549[_0x54ffea(0x101)](this['logFilePath']))return[];const _0x37d1a8=a198_0x3ef549[_0x54ffea(0x124)](this[_0x54ffea(0x104)],_0x54ffea(0x111));return _0x37d1a8[_0x54ffea(0x12b)]('\x0a')[_0x54ffea(0xfd)](_0x5989cf=>_0x5989cf[_0x54ffea(0x11f)]())[_0x54ffea(0x10d)](_0x3efe42=>JSON[_0x54ffea(0x118)](_0x3efe42));}catch(_0x18be35){return console['warn'](_0x54ffea(0x11e),_0x18be35),[];}}[a198_0x534b6c(0xff)](){const _0x2c3500=a198_0x534b6c;try{a198_0x3ef549[_0x2c3500(0x101)](this['logFilePath'])&&a198_0x3ef549[_0x2c3500(0xfc)](this['logFilePath'],'','utf8');}catch(_0x3c21c0){console['warn'](_0x2c3500(0x10c),_0x3c21c0);}}[a198_0x534b6c(0x110)](){const _0x4d7121=a198_0x534b6c;return this[_0x4d7121(0x125)];}}function a198_0x593f(_0x3216e4,_0x4dd3ee){_0x3216e4=_0x3216e4-0xf9;const _0x311557=a198_0x3115();let _0x593f5c=_0x311557[_0x3216e4];return _0x593f5c;}export const logger=new Logger();function a198_0x3115(){const _0x3664d4=['getWinstonInstance','utf8','errors','stringify','207275XPtxgt','addColors','red','createLogger','parse','format','186458yYbQQa','initWinstonLogger','4858263CPTMRf','readLogs','Failed\x20to\x20read\x20logs:','trim','transports','12515970knVbUx','success','command','readFileSync','winstonLogger','6920165HDJbhX','join','duration','失败:\x20','error','split','setLogPath','now','mkdirSync','timestamp','129240ZPxVoX','File','clear','writeFileSync','filter','info','clearLogs','currentRawCommand','existsSync','2748306dDOawI','945hKDsLn','logFilePath','warn','100IGHUzO','14qzhitD','details','yellow','message','unknown','Failed\x20to\x20clear\x20logs:','map','printf','green'];a198_0x3115=function(){return _0x3664d4;};return a198_0x3115();}
1
+ const a198_0x5cff09=a198_0x1365;(function(_0x5a4b92,_0x1e801d){const _0x484b08=a198_0x1365,_0x196b26=_0x5a4b92();while(!![]){try{const _0xdc8be8=parseInt(_0x484b08(0x89))/0x1+-parseInt(_0x484b08(0xb6))/0x2+-parseInt(_0x484b08(0xa4))/0x3*(-parseInt(_0x484b08(0x99))/0x4)+-parseInt(_0x484b08(0x84))/0x5+-parseInt(_0x484b08(0xbd))/0x6*(parseInt(_0x484b08(0x9f))/0x7)+-parseInt(_0x484b08(0xa6))/0x8*(parseInt(_0x484b08(0x85))/0x9)+parseInt(_0x484b08(0x87))/0xa*(parseInt(_0x484b08(0x8d))/0xb);if(_0xdc8be8===_0x1e801d)break;else _0x196b26['push'](_0x196b26['shift']());}catch(_0xbf4fe0){_0x196b26['push'](_0x196b26['shift']());}}}(a198_0x4a4a,0x45f91));import a198_0x650db9 from'winston';import a198_0x175335 from'node:fs';function a198_0x1365(_0x20fe64,_0x5e63c5){_0x20fe64=_0x20fe64-0x84;const _0x4a4ab9=a198_0x4a4a();let _0x136597=_0x4a4ab9[_0x20fe64];return _0x136597;}import a198_0xc9d404 from'node:path';class Logger{[a198_0x5cff09(0x98)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x4f4b0a){const _0x20f24a=a198_0x5cff09;this[_0x20f24a(0xa7)]=_0x4f4b0a;}[a198_0x5cff09(0xb1)](){const _0x45adfd=a198_0x5cff09,_0x57c90a=a198_0xc9d404[_0x45adfd(0xbe)](this['logFilePath']);!a198_0x175335['existsSync'](_0x57c90a)&&a198_0x175335[_0x45adfd(0xb9)](_0x57c90a,{'recursive':!![]});const _0xda758c=a198_0x650db9[_0x45adfd(0x95)]['combine'](a198_0x650db9['format'][_0x45adfd(0xab)](),a198_0x650db9[_0x45adfd(0x95)][_0x45adfd(0xb7)]({'stack':!![]}),a198_0x650db9['format'][_0x45adfd(0x8f)](_0x2f9c78=>{const _0xdb4f3b=_0x45adfd,_0x1d4b90={'timestamp':_0x2f9c78[_0xdb4f3b(0xab)]||new Date()[_0xdb4f3b(0xa9)](),'level':_0x2f9c78['level']||_0xdb4f3b(0xbb),'command':_0x2f9c78[_0xdb4f3b(0x8a)]||_0xdb4f3b(0xaf),'rawCommand':_0x2f9c78[_0xdb4f3b(0x9c)]||this[_0xdb4f3b(0xa7)]||undefined,'message':_0x2f9c78[_0xdb4f3b(0x92)]||'','duration':_0x2f9c78[_0xdb4f3b(0xa2)]||undefined,'details':_0x2f9c78[_0xdb4f3b(0x94)]||undefined};return JSON[_0xdb4f3b(0x8c)](_0x1d4b90);}));this[_0x45adfd(0x98)]=a198_0x650db9[_0x45adfd(0xa0)]({'level':_0x45adfd(0xbb),'format':_0xda758c,'transports':[new a198_0x650db9['transports'][(_0x45adfd(0xb3))]({'filename':this[_0x45adfd(0xbc)],'level':'info'})],'silent':![]}),a198_0x650db9[_0x45adfd(0xa5)]({'success':_0x45adfd(0xbf),'error':_0x45adfd(0xb4),'warn':_0x45adfd(0xb5),'info':_0x45adfd(0x91)});}[a198_0x5cff09(0x97)](_0x313711){const _0x2e314c=a198_0x5cff09;this[_0x2e314c(0xbc)]=a198_0xc9d404[_0x2e314c(0xb8)](_0x313711,_0x2e314c(0x9e)),this[_0x2e314c(0x98)]&&this[_0x2e314c(0x98)][_0x2e314c(0x9a)](),this['initWinstonLogger']();}[a198_0x5cff09(0xbb)](_0x8f14b1,_0x5a385e,_0x37c100){const _0x3a55ac=a198_0x5cff09;if(!this[_0x3a55ac(0xbc)]||!this[_0x3a55ac(0x98)])return;this[_0x3a55ac(0x98)]['info'](_0x5a385e,{'command':_0x8f14b1,'details':_0x37c100});}[a198_0x5cff09(0x9d)](_0x50478a,_0x1ab172,_0xe0e50a,_0x9de8fd){const _0x310a82=a198_0x5cff09;if(!this[_0x310a82(0xbc)]||!this[_0x310a82(0x98)])return;this[_0x310a82(0x98)][_0x310a82(0x90)](_0x310a82(0xbb),_0x1ab172,{'level':_0x310a82(0x9d),'command':_0x50478a,'duration':_0xe0e50a,'details':_0x9de8fd});}[a198_0x5cff09(0x88)](_0x18b51f,_0x452078,_0x51c6b9){const _0x1a1042=a198_0x5cff09;if(!this[_0x1a1042(0xbc)]||!this[_0x1a1042(0x98)])return;this[_0x1a1042(0x98)][_0x1a1042(0x88)](_0x452078,{'command':_0x18b51f,'details':_0x51c6b9});}['warn'](_0x527fd8,_0x3a364a,_0x323d3e){const _0x2797e1=a198_0x5cff09;if(!this[_0x2797e1(0xbc)]||!this['winstonLogger'])return;this[_0x2797e1(0x98)][_0x2797e1(0x8e)](_0x3a364a,{'command':_0x527fd8,'details':_0x323d3e});}async[a198_0x5cff09(0x8b)](_0x181d5c,_0x34748a,_0x31119c){const _0x40654c=a198_0x5cff09,_0x44c3a5=Date['now']();this[_0x40654c(0xbb)](_0x181d5c,_0x40654c(0x93)+_0x34748a);try{const _0x48a337=await _0x31119c(),_0x1ce76d=Date[_0x40654c(0xb2)]()-_0x44c3a5;return this[_0x40654c(0x9d)](_0x181d5c,_0x40654c(0x9b)+_0x34748a,_0x1ce76d),_0x48a337;}catch(_0x2bf1ee){const _0x38cfd5=Date['now']()-_0x44c3a5;this['error'](_0x181d5c,_0x40654c(0xac)+_0x34748a,{'error':_0x2bf1ee instanceof Error?_0x2bf1ee[_0x40654c(0x92)]:String(_0x2bf1ee),'duration':_0x38cfd5});throw _0x2bf1ee;}}['readLogs'](){const _0x5a93c9=a198_0x5cff09;try{if(!a198_0x175335[_0x5a93c9(0xa3)](this[_0x5a93c9(0xbc)]))return[];const _0x534c4d=a198_0x175335['readFileSync'](this[_0x5a93c9(0xbc)],_0x5a93c9(0xa1));return _0x534c4d[_0x5a93c9(0x86)]('\x0a')[_0x5a93c9(0x96)](_0x497813=>_0x497813[_0x5a93c9(0xae)]())[_0x5a93c9(0xad)](_0x549a5b=>JSON['parse'](_0x549a5b));}catch(_0x59564c){return console[_0x5a93c9(0x8e)](_0x5a93c9(0xa8),_0x59564c),[];}}['clearLogs'](){const _0x37ab33=a198_0x5cff09;try{a198_0x175335[_0x37ab33(0xa3)](this[_0x37ab33(0xbc)])&&a198_0x175335[_0x37ab33(0xb0)](this[_0x37ab33(0xbc)],'',_0x37ab33(0xa1));}catch(_0x2fe980){console[_0x37ab33(0x8e)](_0x37ab33(0xaa),_0x2fe980);}}[a198_0x5cff09(0xba)](){return this['winstonLogger'];}}function a198_0x4a4a(){const _0x579437=['6yUkHIL','addColors','526664XYQMgi','currentRawCommand','Failed\x20to\x20read\x20logs:','toISOString','Failed\x20to\x20clear\x20logs:','timestamp','失败:\x20','map','trim','unknown','writeFileSync','initWinstonLogger','now','File','red','yellow','870326PpErQM','errors','join','mkdirSync','getWinstonInstance','info','logFilePath','6LMNadw','dirname','green','2381425yVNKfV','72olcmQj','split','12897430FaoxTi','error','301035FkzCeK','command','logTask','stringify','11kbuEKZ','warn','printf','log','blue','message','开始执行:\x20','details','format','filter','setLogPath','winstonLogger','430276sobwCn','clear','完成:\x20','rawCommand','success','.lovrabet.log','568365riZkfT','createLogger','utf8','duration','existsSync'];a198_0x4a4a=function(){return _0x579437;};return a198_0x4a4a();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x27812a,_0x2d1fac){const _0xb3aaf2=a199_0x517a,_0x549868=_0x27812a();while(!![]){try{const _0x438383=parseInt(_0xb3aaf2(0xe0))/0x1*(-parseInt(_0xb3aaf2(0xe6))/0x2)+-parseInt(_0xb3aaf2(0xe4))/0x3*(parseInt(_0xb3aaf2(0xdb))/0x4)+parseInt(_0xb3aaf2(0xda))/0x5*(-parseInt(_0xb3aaf2(0xdf))/0x6)+-parseInt(_0xb3aaf2(0xe7))/0x7+parseInt(_0xb3aaf2(0xe1))/0x8+-parseInt(_0xb3aaf2(0xdd))/0x9*(parseInt(_0xb3aaf2(0xd8))/0xa)+parseInt(_0xb3aaf2(0xd6))/0xb*(parseInt(_0xb3aaf2(0xe5))/0xc);if(_0x438383===_0x2d1fac)break;else _0x549868['push'](_0x549868['shift']());}catch(_0x186365){_0x549868['push'](_0x549868['shift']());}}}(a199_0x5ca2,0x9722d));import{CliErrors}from'../errors.js';function a199_0x517a(_0x2328eb,_0x5b4aec){_0x2328eb=_0x2328eb-0xd6;const _0x5ca294=a199_0x5ca2();let _0x517a7f=_0x5ca294[_0x2328eb];return _0x517a7f;}function a199_0x5ca2(){const _0x1c9c82=['validation','isArray','481989RtsHTS','22345596ANrTda','3508RnEyJF','1360632KJKtNv','11alrVnY','object','16190nFKAgN','parse','640320ObxudL','8bCtcAo','Invalid\x20JSON\x20for\x20--params:\x20','657rvDlzb','--params\x20must\x20be\x20a\x20JSON\x20object','36RDRLtQ','452qigjMi','7616008rtHZYy'];a199_0x5ca2=function(){return _0x1c9c82;};return a199_0x5ca2();}export function parseJsonParams(_0x93762a){const _0x2235b7=a199_0x517a;if(!_0x93762a)return undefined;let _0x895b5a;try{_0x895b5a=JSON[_0x2235b7(0xd9)](_0x93762a);}catch{throw CliErrors[_0x2235b7(0xe2)](_0x2235b7(0xdc)+_0x93762a);}if(!_0x895b5a||typeof _0x895b5a!==_0x2235b7(0xd7)||Array[_0x2235b7(0xe3)](_0x895b5a))throw CliErrors[_0x2235b7(0xe2)](_0x2235b7(0xde),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x895b5a;}
1
+ (function(_0x2414be,_0x1c88ab){const _0x1f284e=a199_0x2604,_0x49e8f2=_0x2414be();while(!![]){try{const _0x5ae8fc=parseInt(_0x1f284e(0x13e))/0x1*(-parseInt(_0x1f284e(0x12e))/0x2)+-parseInt(_0x1f284e(0x132))/0x3+-parseInt(_0x1f284e(0x12f))/0x4+-parseInt(_0x1f284e(0x13a))/0x5*(parseInt(_0x1f284e(0x12d))/0x6)+-parseInt(_0x1f284e(0x130))/0x7+-parseInt(_0x1f284e(0x13c))/0x8*(-parseInt(_0x1f284e(0x137))/0x9)+-parseInt(_0x1f284e(0x131))/0xa*(-parseInt(_0x1f284e(0x138))/0xb);if(_0x5ae8fc===_0x1c88ab)break;else _0x49e8f2['push'](_0x49e8f2['shift']());}catch(_0x503357){_0x49e8f2['push'](_0x49e8f2['shift']());}}}(a199_0x34fc,0x453b5));function a199_0x2604(_0x160c20,_0x52dcf6){_0x160c20=_0x160c20-0x12d;const _0x34fc17=a199_0x34fc();let _0x2604ab=_0x34fc17[_0x160c20];return _0x2604ab;}import{CliErrors}from'../errors.js';function a199_0x34fc(){const _0x14d8f4=['2wzXKum','623244MAYZVe','527415eYSLpX','310sgLGoX','1380963ihfloh','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','parse','validation','171pmRzAh','245872zPrrPR','isArray','125ePQPnX','--params\x20must\x20be\x20a\x20JSON\x20object','189320XSYcZd','Invalid\x20JSON\x20for\x20--params:\x20','97047vPgTNH','16908viCmzC'];a199_0x34fc=function(){return _0x14d8f4;};return a199_0x34fc();}export function parseJsonParams(_0x20aac1){const _0xa03792=a199_0x2604;if(!_0x20aac1)return undefined;let _0x14eeec;try{_0x14eeec=JSON[_0xa03792(0x135)](_0x20aac1);}catch{throw CliErrors[_0xa03792(0x136)](_0xa03792(0x13d)+_0x20aac1);}if(!_0x14eeec||typeof _0x14eeec!==_0xa03792(0x134)||Array[_0xa03792(0x139)](_0x14eeec))throw CliErrors[_0xa03792(0x136)](_0xa03792(0x13b),_0xa03792(0x133));return _0x14eeec;}
@@ -1 +1 @@
1
- function a200_0x5984(_0x32dd8a,_0x39b432){_0x32dd8a=_0x32dd8a-0x78;const _0x48e120=a200_0x48e1();let _0x598474=_0x48e120[_0x32dd8a];return _0x598474;}const a200_0x1d4488=a200_0x5984;(function(_0x5aa624,_0x26f56a){const _0x179561=a200_0x5984,_0x37c3e9=_0x5aa624();while(!![]){try{const _0x50b869=parseInt(_0x179561(0x7f))/0x1+parseInt(_0x179561(0x78))/0x2*(parseInt(_0x179561(0x83))/0x3)+parseInt(_0x179561(0x79))/0x4*(-parseInt(_0x179561(0x85))/0x5)+parseInt(_0x179561(0x7b))/0x6+parseInt(_0x179561(0x82))/0x7+-parseInt(_0x179561(0x7c))/0x8*(parseInt(_0x179561(0x7e))/0x9)+parseInt(_0x179561(0x7a))/0xa*(-parseInt(_0x179561(0x84))/0xb);if(_0x50b869===_0x26f56a)break;else _0x37c3e9['push'](_0x37c3e9['shift']());}catch(_0x3cb275){_0x37c3e9['push'](_0x37c3e9['shift']());}}}(a200_0x48e1,0x23126));function a200_0x48e1(){const _0x2f55d2=['42376ssnDqw','win32','477tqcuzm','263450xZIHfI','.cmd','platform','1554749vOLZVj','3ZnFPRi','637450uaxETc','2035CMRPjW','151058iwlbIv','68fhfLlt','40haSJKJ','612168rFncOH'];a200_0x48e1=function(){return _0x2f55d2;};return a200_0x48e1();}export const isWindows=process[a200_0x1d4488(0x81)]===a200_0x1d4488(0x7d);export function resolveNpmBin(_0x33d557){const _0x507a6b=a200_0x1d4488;return isWindows?_0x33d557+_0x507a6b(0x80):_0x33d557;}
1
+ (function(_0x3ac7a5,_0x55d4fa){const _0x3dfbd2=a200_0x3f3f,_0x15a55e=_0x3ac7a5();while(!![]){try{const _0x344524=-parseInt(_0x3dfbd2(0xcf))/0x1+parseInt(_0x3dfbd2(0xcd))/0x2+-parseInt(_0x3dfbd2(0xd0))/0x3+-parseInt(_0x3dfbd2(0xca))/0x4*(parseInt(_0x3dfbd2(0xcb))/0x5)+parseInt(_0x3dfbd2(0xd1))/0x6+-parseInt(_0x3dfbd2(0xc8))/0x7*(-parseInt(_0x3dfbd2(0xc9))/0x8)+parseInt(_0x3dfbd2(0xce))/0x9;if(_0x344524===_0x55d4fa)break;else _0x15a55e['push'](_0x15a55e['shift']());}catch(_0x40e7b7){_0x15a55e['push'](_0x15a55e['shift']());}}}(a200_0x14f6,0xab6cc));export const isWindows=process['platform']==='win32';function a200_0x3f3f(_0x152340,_0x227e7a){_0x152340=_0x152340-0xc8;const _0x14f6a9=a200_0x14f6();let _0x3f3f57=_0x14f6a9[_0x152340];return _0x3f3f57;}export function resolveNpmBin(_0x335064){const _0xa83af7=a200_0x3f3f;return isWindows?_0x335064+_0xa83af7(0xcc):_0x335064;}function a200_0x14f6(){const _0x5824c1=['73952ACpLrS','12pUJNRG','2264865DjLPkN','.cmd','2503968aEyhyD','12603393faAaRk','176508byazsl','3319668KVLjkK','1211076ntFmgG','371XmVxIn'];a200_0x14f6=function(){return _0x5824c1;};return a200_0x14f6();}
@@ -1 +1 @@
1
- (function(_0x11c879,_0x49ff71){const _0x10694d=a201_0x35e0,_0x20f0cc=_0x11c879();while(!![]){try{const _0x18b081=parseInt(_0x10694d(0x113))/0x1*(-parseInt(_0x10694d(0x115))/0x2)+-parseInt(_0x10694d(0x11a))/0x3+parseInt(_0x10694d(0x11c))/0x4+parseInt(_0x10694d(0x10a))/0x5*(parseInt(_0x10694d(0x10f))/0x6)+parseInt(_0x10694d(0x10c))/0x7*(parseInt(_0x10694d(0x108))/0x8)+-parseInt(_0x10694d(0x104))/0x9*(parseInt(_0x10694d(0x111))/0xa)+-parseInt(_0x10694d(0x114))/0xb;if(_0x18b081===_0x49ff71)break;else _0x20f0cc['push'](_0x20f0cc['shift']());}catch(_0x351eaf){_0x20f0cc['push'](_0x20f0cc['shift']());}}}(a201_0x21e2,0x86722));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';function a201_0x21e2(){const _0x184f2e=['45575JutETE','application/json','9814bUqIJz','/rules/rules.json','lastUpdated','318abENrJ','lovrabet_rules.mdc','226810OhxjuH','catch','39cImqXX','632324BmIuAy','32884YjqwoX','content','status','json','string','537384ZShfXe','CDN\x20返回数据格式错误','3119256CyedFj','297VSQmgW','utf-8','agents.md','.cursor/rules','5216rGHioX','statusText'];a201_0x21e2=function(){return _0x184f2e;};return a201_0x21e2();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5d68e2=a201_0x35e0,_0x3a94c6=getTemplateBaseUrl();return _0x3a94c6+_0x5d68e2(0x10d);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x40406b=a201_0x35e0,_0x143016=getRulesCdnUrl(),_0x4d7e6b=await fetch(_0x143016,{'headers':{'Accept':_0x40406b(0x10b)}});if(!_0x4d7e6b['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4d7e6b[_0x40406b(0x117)]+'\x20'+_0x4d7e6b[_0x40406b(0x109)]);const _0x20b1f2=await _0x4d7e6b[_0x40406b(0x118)]();if(!_0x20b1f2[_0x40406b(0x116)]||typeof _0x20b1f2[_0x40406b(0x116)]!==_0x40406b(0x119))throw new Error(_0x40406b(0x11b));return _0x20b1f2;}export async function getRulesContent(){try{const _0x5e8a45=await fetchRulesFromCDN();return _0x5e8a45['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4b3eb3){const _0x289c82=a201_0x35e0,_0x5c3900=await fetchRulesFromCDN()[_0x289c82(0x112)](()=>null);let _0x57932b;_0x5c3900?(_0x57932b=_0x5c3900[_0x289c82(0x116)],_0x5c3900[_0x289c82(0x10e)]&&(_0x57932b=appendUpdateTime(_0x57932b,_0x5c3900['lastUpdated']))):_0x57932b=readLocalTemplate();const _0x2c150b=dirname(_0x4b3eb3);!existsSync(_0x2c150b)&&mkdirSync(_0x2c150b,{'recursive':!![]}),writeFileSync(_0x4b3eb3,_0x57932b,_0x289c82(0x105));}function a201_0x35e0(_0x24981a,_0x4035e1){_0x24981a=_0x24981a-0x104;const _0x21e283=a201_0x21e2();let _0x35e0dc=_0x21e283[_0x24981a];return _0x35e0dc;}export async function copyRulesToCursor(_0x19c65a){const _0x3574ca=a201_0x35e0,_0x3d7fc7=join(_0x19c65a,_0x3574ca(0x107)),_0x57ffa5=join(_0x3d7fc7,_0x3574ca(0x110));if(existsSync(_0x57ffa5))return![];return await writeRulesFile(_0x57ffa5),!![];}export async function copyRulesToAgentsMd(_0x25e06c){const _0x287d63=a201_0x35e0,_0x355cea=join(_0x25e06c,_0x287d63(0x106));if(existsSync(_0x355cea))return![];return await writeRulesFile(_0x355cea),!![];}
1
+ (function(_0x353426,_0x2d46c3){const _0x282d68=a201_0x4d10,_0x2f0178=_0x353426();while(!![]){try{const _0x12c181=-parseInt(_0x282d68(0x1de))/0x1+-parseInt(_0x282d68(0x1df))/0x2+-parseInt(_0x282d68(0x1d0))/0x3+parseInt(_0x282d68(0x1d8))/0x4*(parseInt(_0x282d68(0x1d1))/0x5)+parseInt(_0x282d68(0x1d3))/0x6+parseInt(_0x282d68(0x1da))/0x7+parseInt(_0x282d68(0x1d2))/0x8;if(_0x12c181===_0x2d46c3)break;else _0x2f0178['push'](_0x2f0178['shift']());}catch(_0x52672a){_0x2f0178['push'](_0x2f0178['shift']());}}}(a201_0x450a,0xbe982));function a201_0x4d10(_0x369681,_0x27c68c){_0x369681=_0x369681-0x1cb;const _0x450ac8=a201_0x450a();let _0x4d10ad=_0x450ac8[_0x369681];return _0x4d10ad;}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 _0x5da913=a201_0x4d10,_0x4cd4a8=getTemplateBaseUrl();return _0x4cd4a8+_0x5da913(0x1cb);}function a201_0x450a(){const _0x187bab=['/rules/rules.json','lastUpdated','status','CDN\x20请求失败:\x20','content','1385163sHlVnq','5MWEiax','1060520CfVZbQ','5878104hZKhPJ','.cursor/rules','json','catch','lovrabet_rules.mdc','4306852wIEYtT','application/json','2548448eNNNNf','string','statusText','本地模板文件不存在:\x20','841899gGyivU','937464QqkiUD','utf-8','agents.md','CDN\x20返回数据格式错误'];a201_0x450a=function(){return _0x187bab;};return a201_0x450a();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2407f9=a201_0x4d10,_0x4829df=getRulesCdnUrl(),_0xbfe90b=await fetch(_0x4829df,{'headers':{'Accept':_0x2407f9(0x1d9)}});if(!_0xbfe90b['ok'])throw new Error(_0x2407f9(0x1ce)+_0xbfe90b[_0x2407f9(0x1cd)]+'\x20'+_0xbfe90b[_0x2407f9(0x1dc)]);const _0x1b0bb7=await _0xbfe90b[_0x2407f9(0x1d5)]();if(!_0x1b0bb7[_0x2407f9(0x1cf)]||typeof _0x1b0bb7[_0x2407f9(0x1cf)]!==_0x2407f9(0x1db))throw new Error(_0x2407f9(0x1e2));return _0x1b0bb7;}export async function getRulesContent(){const _0x49a01a=a201_0x4d10;try{const _0x42fff1=await fetchRulesFromCDN();return _0x42fff1[_0x49a01a(0x1cf)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2fd8ce=a201_0x4d10;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2fd8ce(0x1e0));throw new Error(_0x2fd8ce(0x1dd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x492954){const _0x2ac99=a201_0x4d10,_0x9c489d=await fetchRulesFromCDN()[_0x2ac99(0x1d6)](()=>null);let _0x1531c4;_0x9c489d?(_0x1531c4=_0x9c489d[_0x2ac99(0x1cf)],_0x9c489d[_0x2ac99(0x1cc)]&&(_0x1531c4=appendUpdateTime(_0x1531c4,_0x9c489d[_0x2ac99(0x1cc)]))):_0x1531c4=readLocalTemplate();const _0x1a3a9a=dirname(_0x492954);!existsSync(_0x1a3a9a)&&mkdirSync(_0x1a3a9a,{'recursive':!![]}),writeFileSync(_0x492954,_0x1531c4,_0x2ac99(0x1e0));}export async function copyRulesToCursor(_0x34b38d){const _0x27cd07=a201_0x4d10,_0xf73ee2=join(_0x34b38d,_0x27cd07(0x1d4)),_0x279478=join(_0xf73ee2,_0x27cd07(0x1d7));if(existsSync(_0x279478))return![];return await writeRulesFile(_0x279478),!![];}export async function copyRulesToAgentsMd(_0x334459){const _0x3d06c0=a201_0x4d10,_0x410ab6=join(_0x334459,_0x3d06c0(0x1e1));if(existsSync(_0x410ab6))return![];return await writeRulesFile(_0x410ab6),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2b2adb){return new Promise(_0x383970=>setTimeout(_0x383970,_0x2b2adb));}
1
+ export function sleep(_0x4c0b15){return new Promise(_0x5525bb=>setTimeout(_0x5525bb,_0x4c0b15));}
@@ -1 +1 @@
1
- const a203_0x272495=a203_0x11bf;(function(_0x250d15,_0x43c8f3){const _0x1eb2d0=a203_0x11bf,_0x10181d=_0x250d15();while(!![]){try{const _0x463cb3=parseInt(_0x1eb2d0(0x14a))/0x1*(parseInt(_0x1eb2d0(0x163))/0x2)+parseInt(_0x1eb2d0(0x164))/0x3+-parseInt(_0x1eb2d0(0x171))/0x4+-parseInt(_0x1eb2d0(0x166))/0x5*(parseInt(_0x1eb2d0(0x18a))/0x6)+parseInt(_0x1eb2d0(0x14c))/0x7+-parseInt(_0x1eb2d0(0x14f))/0x8+-parseInt(_0x1eb2d0(0x15a))/0x9;if(_0x463cb3===_0x43c8f3)break;else _0x10181d['push'](_0x10181d['shift']());}catch(_0x15bdb1){_0x10181d['push'](_0x10181d['shift']());}}}(a203_0x30a6,0x7ca04));import a203_0x534896 from'node:fs';import a203_0x568bc0 from'node:path';function a203_0x30a6(){const _0x32632e=['formatLocalTimestamp','\x0a\x20\x20\x20\x20{\x20','模板内容替换完成','.tsx','processDirectory','LOVRABET','replaceApiContent','endsWith','toUpperCase','2022IRfHgz','.tpl','template','1443rnarhy','getFullYear','3768653kiyKnR','getMonth','promises','1923208MwoYho','charAt','getDate','.md','readdir','开始处理模板内容替换','模板内容替换失败','info','name:\x20\x22','includes','extname','6378435sMDkRc','copyFile','error','utf8','map','.ts','slice','.css','.jsx','686LkCjRp','2422719TuFxdN','isDirectory','875UVlXOb','now','name','YourModel','toComponentName','processTemplate','split','push','api','writeFile','toDisplayTitle','1289368ljvwkK','.js','alias','\x20},','toISOString','replace','pad','datasetCode:\x20\x22','processFile','replaceContent','readFile','mkdir','getSeconds','tableName:\x20\x22','success','join'];a203_0x30a6=function(){return _0x32632e;};return a203_0x30a6();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a203_0x11bf(_0x2bd653,_0x22a478){_0x2bd653=_0x2bd653-0x14a;const _0x30a6e5=a203_0x30a6();let _0x11bf1f=_0x30a6e5[_0x2bd653];return _0x11bf1f;}export class TemplateReplacer{static[a203_0x272495(0x177)](_0x1312d9){return String(_0x1312d9)['padStart'](0x2,'0');}static[a203_0x272495(0x181)](_0x598d59){const _0x1c4bd4=a203_0x272495,_0x2f4623=_0x598d59[_0x1c4bd4(0x14b)](),_0x29b222=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x14d)]()+0x1),_0x5ad24b=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x151)]()),_0x16a01d=this['pad'](_0x598d59['getHours']()),_0x125cce=this[_0x1c4bd4(0x177)](_0x598d59['getMinutes']()),_0x5d405d=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x17d)]());return{'createdAt':_0x2f4623+'-'+_0x29b222+'-'+_0x5ad24b+'\x20'+_0x16a01d+':'+_0x125cce+':'+_0x5d405d,'createdDate':_0x2f4623+'-'+_0x29b222+'-'+_0x5ad24b,'createdTime':_0x16a01d+':'+_0x125cce+':'+_0x5d405d};}static['toComponentName'](_0x501157){const _0x3973b1=a203_0x272495,_0x21e8e7=_0x501157['split']('/')['pop']()||_0x501157;return _0x21e8e7[_0x3973b1(0x16c)]('-')[_0x3973b1(0x15e)](_0x31e0a2=>_0x31e0a2[_0x3973b1(0x150)](0x0)[_0x3973b1(0x189)]()+_0x31e0a2[_0x3973b1(0x160)](0x1)['toLowerCase']())[_0x3973b1(0x180)]('');}static[a203_0x272495(0x170)](_0x91f6ac){const _0x667478=a203_0x272495,_0x5bc2f2=_0x91f6ac[_0x667478(0x16c)]('/')['pop']()||_0x91f6ac;return _0x5bc2f2[_0x667478(0x16c)]('-')['map'](_0x1e9478=>_0x1e9478[_0x667478(0x150)](0x0)[_0x667478(0x189)]()+_0x1e9478[_0x667478(0x160)](0x1)['toLowerCase']())[_0x667478(0x180)]('\x20');}static[a203_0x272495(0x17a)](_0x389559,_0x3b28e2,_0x20541b){const _0x259a23=a203_0x272495,_0x852678=this[_0x259a23(0x16a)](_0x3b28e2),_0x498238=this[_0x259a23(0x170)](_0x3b28e2),{createdAt:_0x1799fb,createdDate:_0x264b58,createdTime:_0x2e12e9}=this[_0x259a23(0x181)](new Date());let _0x4c78fc=_0x389559['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x259a23(0x176)](/\{ComponentName\}/g,_0x852678)['replace'](/\{DisplayTitle\}/g,_0x498238)[_0x259a23(0x176)](/\{PageName\}/g,_0x3b28e2)[_0x259a23(0x176)](/\{TemplateName\}/g,_0x20541b)[_0x259a23(0x176)](/\{CreatedAt\}/g,_0x1799fb)[_0x259a23(0x176)](/\{CreatedDate\}/g,_0x264b58)['replace'](/\{CreatedTime\}/g,_0x2e12e9);return _0x4c78fc;}static[a203_0x272495(0x187)](_0x2824df,_0xe75d33,_0x15ec59,_0x5f05b1,_0x4bb47f,_0x1aef63,_0x590e7f,_0x5942b7){const _0x4cb574=a203_0x272495,_0x554a9f=new Date(),_0x1969f1=_0x554a9f[_0x4cb574(0x175)](),_0x38c6c7=_0x15ec59['map'](_0x3b4ef4=>{const _0x4ac0d1=_0x4cb574,_0x35598e=[_0x4ac0d1(0x178)+_0x3b4ef4['datasetCode']+'\x22',_0x4ac0d1(0x17e)+_0x3b4ef4['tableName']+'\x22',_0x4ac0d1(0x157)+_0x3b4ef4[_0x4ac0d1(0x168)]+'\x22'];return _0x3b4ef4[_0x4ac0d1(0x173)]&&_0x35598e[_0x4ac0d1(0x16d)]('alias:\x20\x22'+_0x3b4ef4[_0x4ac0d1(0x173)]+'\x22'),_0x4ac0d1(0x182)+_0x35598e[_0x4ac0d1(0x180)](',\x20')+_0x4ac0d1(0x174);})[_0x4cb574(0x180)](''),_0x14e8b3=_0x5f05b1||_0x15ec59[0x0]?.[_0x4cb574(0x173)]||_0x4cb574(0x169);let _0x4943e7=_0x2824df[_0x4cb574(0x176)](/\{AppCode\}/g,_0xe75d33)[_0x4cb574(0x176)](/\{ModelConfigs\}/g,_0x38c6c7)[_0x4cb574(0x176)](/\{ExampleModelName\}/g,_0x14e8b3)[_0x4cb574(0x176)](/\{ApiFileName\}/g,_0x4bb47f||_0x4cb574(0x16e))[_0x4cb574(0x176)](/\{ConfigName\}/g,_0x1aef63||'default')[_0x4cb574(0x176)](/\{ClientConfigParam\}/g,_0x590e7f||'')['replace'](/\{VarPrefix\}/g,_0x5942b7||_0x4cb574(0x186))['replace'](/\{CreatedAt\}/g,_0x1969f1);return _0x4943e7;}static async[a203_0x272495(0x16b)](_0x3b7220,_0x5180d9,_0x21c515,_0xc4e5af,_0x327bd8=!![]){const _0x446cbb=a203_0x272495,_0x10e174=Date['now']();try{_0x327bd8&&logger[_0x446cbb(0x156)](_0x446cbb(0x18c),_0x446cbb(0x154),{'templatePath':_0x3b7220,'targetPath':_0x5180d9,'pageName':_0x21c515,'templateName':_0xc4e5af});await a203_0x534896['promises'][_0x446cbb(0x17c)](_0x5180d9,{'recursive':!![]}),await this['processDirectory'](_0x3b7220,_0x5180d9,_0x21c515,_0xc4e5af);if(_0x327bd8){const _0x5b07ac=Date[_0x446cbb(0x167)]()-_0x10e174;logger[_0x446cbb(0x17f)]('template',_0x446cbb(0x183),_0x5b07ac,{'pageName':_0x21c515,'templateName':_0xc4e5af});}}catch(_0x558382){if(_0x327bd8){const _0xdd7bc5=Date[_0x446cbb(0x167)]()-_0x10e174;logger[_0x446cbb(0x15c)]('template',_0x446cbb(0x155),{'templatePath':_0x3b7220,'targetPath':_0x5180d9,'pageName':_0x21c515,'templateName':_0xc4e5af,'error':_0x558382 instanceof Error?_0x558382['message']:String(_0x558382),'duration':_0xdd7bc5});}throw _0x558382;}}static async[a203_0x272495(0x185)](_0x31bb2f,_0x4e6791,_0x5b1c74,_0x1fdfc3){const _0x10b83c=a203_0x272495,_0x13d90d=await a203_0x534896[_0x10b83c(0x14e)][_0x10b83c(0x153)](_0x31bb2f,{'withFileTypes':!![]});for(const _0x325229 of _0x13d90d){const _0x116558=a203_0x568bc0[_0x10b83c(0x180)](_0x31bb2f,_0x325229[_0x10b83c(0x168)]);let _0x228a3e=a203_0x568bc0['join'](_0x4e6791,_0x325229['name']);_0x325229[_0x10b83c(0x168)]['endsWith'](_0x10b83c(0x18b))&&(_0x228a3e=a203_0x568bc0[_0x10b83c(0x180)](_0x4e6791,_0x325229[_0x10b83c(0x168)]['replace'](/\.tpl$/,'')));if(_0x325229[_0x10b83c(0x165)]())await a203_0x534896[_0x10b83c(0x14e)]['mkdir'](_0x228a3e,{'recursive':!![]}),await this['processDirectory'](_0x116558,_0x228a3e,_0x5b1c74,_0x1fdfc3);else _0x325229['isFile']()&&await this[_0x10b83c(0x179)](_0x116558,_0x228a3e,_0x5b1c74,_0x1fdfc3);}}static async['processFile'](_0x30039a,_0x76d8d9,_0x571945,_0x5d3070){const _0x490385=a203_0x272495,_0x5d73f2=a203_0x568bc0[_0x490385(0x159)](_0x30039a)['toLowerCase']();_0x30039a['endsWith'](_0x490385(0x18b))&&(_0x76d8d9=_0x76d8d9['replace'](/\.tpl$/,''));const _0x2701b2=[_0x490385(0x184),_0x490385(0x15f),_0x490385(0x162),_0x490385(0x172),'.json',_0x490385(0x152),_0x490385(0x161),'.scss',_0x490385(0x18b)];if(_0x2701b2[_0x490385(0x158)](_0x5d73f2)||_0x30039a[_0x490385(0x188)](_0x490385(0x18b))){const _0x3c64f5=await a203_0x534896[_0x490385(0x14e)][_0x490385(0x17b)](_0x30039a,_0x490385(0x15d)),_0x1b2189=this[_0x490385(0x17a)](_0x3c64f5,_0x571945,_0x5d3070);await a203_0x534896['promises'][_0x490385(0x16f)](_0x76d8d9,_0x1b2189,'utf8');}else await a203_0x534896[_0x490385(0x14e)][_0x490385(0x15b)](_0x30039a,_0x76d8d9);}}
1
+ const a203_0x20116d=a203_0xf967;(function(_0x49016f,_0x40f3c4){const _0x47983b=a203_0xf967,_0x32d895=_0x49016f();while(!![]){try{const _0x4fabdc=-parseInt(_0x47983b(0x150))/0x1*(parseInt(_0x47983b(0x145))/0x2)+parseInt(_0x47983b(0x13c))/0x3*(-parseInt(_0x47983b(0x12f))/0x4)+parseInt(_0x47983b(0x175))/0x5+parseInt(_0x47983b(0x15b))/0x6+parseInt(_0x47983b(0x15f))/0x7*(-parseInt(_0x47983b(0x157))/0x8)+-parseInt(_0x47983b(0x130))/0x9+-parseInt(_0x47983b(0x13b))/0xa*(-parseInt(_0x47983b(0x142))/0xb);if(_0x4fabdc===_0x40f3c4)break;else _0x32d895['push'](_0x32d895['shift']());}catch(_0x4c15e2){_0x32d895['push'](_0x32d895['shift']());}}}(a203_0x28df,0x86eb7));import a203_0x88d94e from'node:fs';import a203_0x4f65bb from'node:path';import{logger}from'../utils/logger.js';function a203_0xf967(_0x535939,_0x4ec7b2){_0x535939=_0x535939-0x12f;const _0x28dff4=a203_0x28df();let _0xf967c0=_0x28dff4[_0x535939];return _0xf967c0;}import{getCliVersion}from'../utils/version.js';function a203_0x28df(){const _0x43c744=['isDirectory','getHours','slice','.ts','join','processFile','padStart','replace','extname','map','toLowerCase','.json','.css','copyFile','196475wApCOa','endsWith','YourModel','4gOPxmC','5156910rXhlts','模板内容替换完成','tableName','datasetCode','split','success','includes','pop','info','name:\x20\x22','LOVRABET','10Ujqdzo','859527ySNpir','datasetCode:\x20\x22','error','toComponentName','api','toUpperCase','22866173pFXdHK','processDirectory','template','6SHfwTc','name','getFullYear','getMonth','.js','tableName:\x20\x22','utf8','mkdir','alias:\x20\x22','push','charAt','140636NfsIUm','default','getSeconds','toISOString','.tsx','formatLocalTimestamp','.jsx','7476576UbCSuE','processTemplate','replaceContent','模板内容替换失败','3903432jPlvGj','promises','alias','now','7mYLZeA','message','\x20},','.tpl','.scss','isFile','pad','toDisplayTitle'];a203_0x28df=function(){return _0x43c744;};return a203_0x28df();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a203_0x20116d(0x165)](_0x2d8d22){const _0x201fa0=a203_0x20116d;return String(_0x2d8d22)[_0x201fa0(0x16d)](0x2,'0');}static[a203_0x20116d(0x155)](_0x10cded){const _0x3c4253=a203_0x20116d,_0x25e289=_0x10cded[_0x3c4253(0x147)](),_0x24eb50=this[_0x3c4253(0x165)](_0x10cded[_0x3c4253(0x148)]()+0x1),_0x56cbea=this['pad'](_0x10cded['getDate']()),_0x33c12b=this['pad'](_0x10cded[_0x3c4253(0x168)]()),_0x284b17=this[_0x3c4253(0x165)](_0x10cded['getMinutes']()),_0x22c019=this[_0x3c4253(0x165)](_0x10cded[_0x3c4253(0x152)]());return{'createdAt':_0x25e289+'-'+_0x24eb50+'-'+_0x56cbea+'\x20'+_0x33c12b+':'+_0x284b17+':'+_0x22c019,'createdDate':_0x25e289+'-'+_0x24eb50+'-'+_0x56cbea,'createdTime':_0x33c12b+':'+_0x284b17+':'+_0x22c019};}static['toComponentName'](_0x5d951f){const _0x2be7dc=a203_0x20116d,_0x58428e=_0x5d951f[_0x2be7dc(0x134)]('/')['pop']()||_0x5d951f;return _0x58428e[_0x2be7dc(0x134)]('-')[_0x2be7dc(0x170)](_0x18fb08=>_0x18fb08['charAt'](0x0)['toUpperCase']()+_0x18fb08[_0x2be7dc(0x169)](0x1)['toLowerCase']())['join']('');}static[a203_0x20116d(0x166)](_0x5e697d){const _0x477806=a203_0x20116d,_0x2efec3=_0x5e697d[_0x477806(0x134)]('/')[_0x477806(0x137)]()||_0x5e697d;return _0x2efec3[_0x477806(0x134)]('-')[_0x477806(0x170)](_0x105d00=>_0x105d00[_0x477806(0x14f)](0x0)[_0x477806(0x141)]()+_0x105d00[_0x477806(0x169)](0x1)[_0x477806(0x171)]())['join']('\x20');}static[a203_0x20116d(0x159)](_0x17011f,_0x583651,_0x42a038){const _0x55da63=a203_0x20116d,_0x14579e=this[_0x55da63(0x13f)](_0x583651),_0x225148=this[_0x55da63(0x166)](_0x583651),{createdAt:_0x233925,createdDate:_0x43483a,createdTime:_0x1c62a8}=this['formatLocalTimestamp'](new Date());let _0x6fbac4=_0x17011f[_0x55da63(0x16e)](/\{CliVersion\}/g,CLI_VERSION)[_0x55da63(0x16e)](/\{ComponentName\}/g,_0x14579e)[_0x55da63(0x16e)](/\{DisplayTitle\}/g,_0x225148)[_0x55da63(0x16e)](/\{PageName\}/g,_0x583651)[_0x55da63(0x16e)](/\{TemplateName\}/g,_0x42a038)[_0x55da63(0x16e)](/\{CreatedAt\}/g,_0x233925)[_0x55da63(0x16e)](/\{CreatedDate\}/g,_0x43483a)[_0x55da63(0x16e)](/\{CreatedTime\}/g,_0x1c62a8);return _0x6fbac4;}static['replaceApiContent'](_0x3f024b,_0xc8ec47,_0x59bafa,_0x500b40,_0x4992a8,_0x1c2d57,_0x4be028,_0x3c69f5){const _0x5be470=a203_0x20116d,_0x159dcb=new Date(),_0x1bacf3=_0x159dcb[_0x5be470(0x153)](),_0x2dc0e0=_0x59bafa[_0x5be470(0x170)](_0x8280c9=>{const _0x5022e0=_0x5be470,_0x3089af=[_0x5022e0(0x13d)+_0x8280c9[_0x5022e0(0x133)]+'\x22',_0x5022e0(0x14a)+_0x8280c9[_0x5022e0(0x132)]+'\x22',_0x5022e0(0x139)+_0x8280c9[_0x5022e0(0x146)]+'\x22'];return _0x8280c9[_0x5022e0(0x15d)]&&_0x3089af[_0x5022e0(0x14e)](_0x5022e0(0x14d)+_0x8280c9[_0x5022e0(0x15d)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3089af['join'](',\x20')+_0x5022e0(0x161);})[_0x5be470(0x16b)](''),_0x38fa5f=_0x500b40||_0x59bafa[0x0]?.[_0x5be470(0x15d)]||_0x5be470(0x177);let _0x2aa3db=_0x3f024b[_0x5be470(0x16e)](/\{AppCode\}/g,_0xc8ec47)[_0x5be470(0x16e)](/\{ModelConfigs\}/g,_0x2dc0e0)[_0x5be470(0x16e)](/\{ExampleModelName\}/g,_0x38fa5f)[_0x5be470(0x16e)](/\{ApiFileName\}/g,_0x4992a8||_0x5be470(0x140))[_0x5be470(0x16e)](/\{ConfigName\}/g,_0x1c2d57||_0x5be470(0x151))[_0x5be470(0x16e)](/\{ClientConfigParam\}/g,_0x4be028||'')[_0x5be470(0x16e)](/\{VarPrefix\}/g,_0x3c69f5||_0x5be470(0x13a))[_0x5be470(0x16e)](/\{CreatedAt\}/g,_0x1bacf3);return _0x2aa3db;}static async[a203_0x20116d(0x158)](_0xc243fe,_0x14518f,_0x1f8203,_0x2ced3e,_0x4dee1f=!![]){const _0x4be6f6=a203_0x20116d,_0x39b31a=Date[_0x4be6f6(0x15e)]();try{_0x4dee1f&&logger[_0x4be6f6(0x138)](_0x4be6f6(0x144),'开始处理模板内容替换',{'templatePath':_0xc243fe,'targetPath':_0x14518f,'pageName':_0x1f8203,'templateName':_0x2ced3e});await a203_0x88d94e['promises'][_0x4be6f6(0x14c)](_0x14518f,{'recursive':!![]}),await this[_0x4be6f6(0x143)](_0xc243fe,_0x14518f,_0x1f8203,_0x2ced3e);if(_0x4dee1f){const _0x3effb0=Date[_0x4be6f6(0x15e)]()-_0x39b31a;logger[_0x4be6f6(0x135)](_0x4be6f6(0x144),_0x4be6f6(0x131),_0x3effb0,{'pageName':_0x1f8203,'templateName':_0x2ced3e});}}catch(_0x3c5421){if(_0x4dee1f){const _0x5ee912=Date[_0x4be6f6(0x15e)]()-_0x39b31a;logger[_0x4be6f6(0x13e)](_0x4be6f6(0x144),_0x4be6f6(0x15a),{'templatePath':_0xc243fe,'targetPath':_0x14518f,'pageName':_0x1f8203,'templateName':_0x2ced3e,'error':_0x3c5421 instanceof Error?_0x3c5421[_0x4be6f6(0x160)]:String(_0x3c5421),'duration':_0x5ee912});}throw _0x3c5421;}}static async[a203_0x20116d(0x143)](_0x411b68,_0x342f8b,_0x269b17,_0x32a8e1){const _0x2712bd=a203_0x20116d,_0x2babff=await a203_0x88d94e[_0x2712bd(0x15c)]['readdir'](_0x411b68,{'withFileTypes':!![]});for(const _0x2e972d of _0x2babff){const _0x3a8ccd=a203_0x4f65bb[_0x2712bd(0x16b)](_0x411b68,_0x2e972d[_0x2712bd(0x146)]);let _0x5866ee=a203_0x4f65bb['join'](_0x342f8b,_0x2e972d[_0x2712bd(0x146)]);_0x2e972d[_0x2712bd(0x146)]['endsWith']('.tpl')&&(_0x5866ee=a203_0x4f65bb[_0x2712bd(0x16b)](_0x342f8b,_0x2e972d[_0x2712bd(0x146)][_0x2712bd(0x16e)](/\.tpl$/,'')));if(_0x2e972d[_0x2712bd(0x167)]())await a203_0x88d94e[_0x2712bd(0x15c)][_0x2712bd(0x14c)](_0x5866ee,{'recursive':!![]}),await this[_0x2712bd(0x143)](_0x3a8ccd,_0x5866ee,_0x269b17,_0x32a8e1);else _0x2e972d[_0x2712bd(0x164)]()&&await this[_0x2712bd(0x16c)](_0x3a8ccd,_0x5866ee,_0x269b17,_0x32a8e1);}}static async[a203_0x20116d(0x16c)](_0x481dc0,_0x4d6124,_0x81628b,_0x5ebeff){const _0x571dcc=a203_0x20116d,_0x399325=a203_0x4f65bb[_0x571dcc(0x16f)](_0x481dc0)[_0x571dcc(0x171)]();_0x481dc0[_0x571dcc(0x176)]('.tpl')&&(_0x4d6124=_0x4d6124[_0x571dcc(0x16e)](/\.tpl$/,''));const _0x33ce70=[_0x571dcc(0x154),_0x571dcc(0x16a),_0x571dcc(0x156),_0x571dcc(0x149),_0x571dcc(0x172),'.md',_0x571dcc(0x173),_0x571dcc(0x163),_0x571dcc(0x162)];if(_0x33ce70[_0x571dcc(0x136)](_0x399325)||_0x481dc0[_0x571dcc(0x176)](_0x571dcc(0x162))){const _0x4c6de4=await a203_0x88d94e['promises']['readFile'](_0x481dc0,_0x571dcc(0x14b)),_0x51da84=this[_0x571dcc(0x159)](_0x4c6de4,_0x81628b,_0x5ebeff);await a203_0x88d94e[_0x571dcc(0x15c)]['writeFile'](_0x4d6124,_0x51da84,'utf8');}else await a203_0x88d94e[_0x571dcc(0x15c)][_0x571dcc(0x174)](_0x481dc0,_0x4d6124);}}