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

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 (161) 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/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -1
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1657ee,_0x21bd72){var _0x42deee=a138_0x24e6,_0xc2d99f=_0x1657ee();while(!![]){try{var _0x1ce492=-parseInt(_0x42deee(0xe6))/0x1*(parseInt(_0x42deee(0xe2))/0x2)+-parseInt(_0x42deee(0xec))/0x3+parseInt(_0x42deee(0xeb))/0x4+-parseInt(_0x42deee(0xe8))/0x5*(parseInt(_0x42deee(0xe7))/0x6)+-parseInt(_0x42deee(0xed))/0x7+parseInt(_0x42deee(0xe5))/0x8*(-parseInt(_0x42deee(0xea))/0x9)+-parseInt(_0x42deee(0xef))/0xa*(-parseInt(_0x42deee(0xe4))/0xb);if(_0x1ce492===_0x21bd72)break;else _0xc2d99f['push'](_0xc2d99f['shift']());}catch(_0x5d472a){_0xc2d99f['push'](_0xc2d99f['shift']());}}}(a138_0xd5f5,0xd74de));function a138_0xd5f5(){var _0xdeecd8=['5317794IhcIFp','1554420oIEZWD','4155489DlVSCd','441644lpOYGL','service','14370dNkaWf','cli.help','2dCHMeK','error','37939VYhbnl','16PYJiRf','869691EMdYOz','4182gMtzwJ','6910bmcQnq','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a138_0xd5f5=function(){return _0xdeecd8;};return a138_0xd5f5();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x24e6(_0x30149b,_0x365466){_0x30149b=_0x30149b-0xe1;var _0xd5f573=a138_0xd5f5();var _0x24e65c=_0xd5f573[_0x30149b];return _0x24e65c;}export async function reportCliHelpTrace(_0x36c26a,_0x2a58f2){var _0x163dd2=a138_0x24e6;try{await sendCliTraceLog({'spanName':_0x163dd2(0xe1),'logData':{'rabetbase.help.kind':_0x36c26a,..._0x2a58f2?.[_0x163dd2(0xee)]&&{'rabetbase.help.service':_0x2a58f2[_0x163dd2(0xee)]}}});}catch(_0x4e5f48){console[_0x163dd2(0xe3)](_0x163dd2(0xe9),_0x4e5f48);}}
1
+ function a35_0x2699(_0x3b3c1e,_0x2f5729){_0x3b3c1e=_0x3b3c1e-0x1bb;var _0x4a3e8a=a35_0x4a3e();var _0x269954=_0x4a3e8a[_0x3b3c1e];return _0x269954;}(function(_0x339dd9,_0x36431c){var _0x470b1c=a35_0x2699,_0x440412=_0x339dd9();while(!![]){try{var _0x328292=parseInt(_0x470b1c(0x1c6))/0x1*(parseInt(_0x470b1c(0x1bc))/0x2)+-parseInt(_0x470b1c(0x1c1))/0x3*(parseInt(_0x470b1c(0x1bb))/0x4)+parseInt(_0x470b1c(0x1c3))/0x5+parseInt(_0x470b1c(0x1c8))/0x6+-parseInt(_0x470b1c(0x1bf))/0x7*(parseInt(_0x470b1c(0x1c0))/0x8)+-parseInt(_0x470b1c(0x1c2))/0x9*(parseInt(_0x470b1c(0x1c5))/0xa)+parseInt(_0x470b1c(0x1c9))/0xb;if(_0x328292===_0x36431c)break;else _0x440412['push'](_0x440412['shift']());}catch(_0x4a0c25){_0x440412['push'](_0x440412['shift']());}}}(a35_0x4a3e,0x2eff7));function a35_0x4a3e(){var _0x1972bb=['cli.help','1282794rQMluv','4184895qplevW','790204hFISiG','60OVQBNz','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','95333RPIfph','112iFicQU','3cqrbGn','1450476TJJpzb','232870EdkHLr','error','20awErye','8741xmYdom'];a35_0x4a3e=function(){return _0x1972bb;};return a35_0x4a3e();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x454784,_0x14dd89){var _0x4cb9fa=a35_0x2699;try{await sendCliTraceLog({'spanName':_0x4cb9fa(0x1c7),'logData':{'rabetbase.help.kind':_0x454784,..._0x14dd89?.[_0x4cb9fa(0x1bd)]&&{'rabetbase.help.service':_0x14dd89[_0x4cb9fa(0x1bd)]}}});}catch(_0x42f338){console[_0x4cb9fa(0x1c4)](_0x4cb9fa(0x1be),_0x42f338);}}
@@ -1 +1 @@
1
- (function(_0x553c5f,_0x4a4d7b){const _0x2f6b42=a139_0x1238,_0x51c0ef=_0x553c5f();while(!![]){try{const _0x278e27=parseInt(_0x2f6b42(0x1ad))/0x1+parseInt(_0x2f6b42(0x1ab))/0x2+-parseInt(_0x2f6b42(0x1b7))/0x3+-parseInt(_0x2f6b42(0x1ac))/0x4+-parseInt(_0x2f6b42(0x1ae))/0x5+-parseInt(_0x2f6b42(0x1b4))/0x6+parseInt(_0x2f6b42(0x1b0))/0x7;if(_0x278e27===_0x4a4d7b)break;else _0x51c0ef['push'](_0x51c0ef['shift']());}catch(_0x217b25){_0x51c0ef['push'](_0x51c0ef['shift']());}}}(a139_0xb98d,0x7341d));function a139_0x1238(_0x5117de,_0x693d53){_0x5117de=_0x5117de-0x1ab;const _0xb98d83=a139_0xb98d();let _0x123855=_0xb98d83[_0x5117de];return _0x123855;}function a139_0xb98d(){const _0x11c750=['daily','8567965cxPfyK','rabetbase-cli','userInfo','username','2239614edVnZL','production','unknown','405549wfDOJO','248484YAqPsD','3215016cZSxka','922904qwuLQZ','2434210pzBAPb'];a139_0xb98d=function(){return _0x11c750;};return a139_0xb98d();}import a139_0x19a5d7 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x520f27=a139_0x1238,_0x69e599=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xba39d1=_0x69e599?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x520f27(0x1b6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x520f27(0x1af):_0x520f27(0x1b5)),'username':_0xba39d1?.['username']??a139_0x19a5d7[_0x520f27(0x1b2)]()[_0x520f27(0x1b3)]??_0x520f27(0x1b1),..._0xba39d1&&{'nickname':_0xba39d1['nickname']}}),cliOtelTraceInitialized=!![];}return _0x69e599;}
1
+ function a39_0x2818(_0x5eecda,_0x485e84){_0x5eecda=_0x5eecda-0x14e;const _0x5496af=a39_0x5496();let _0x281841=_0x5496af[_0x5eecda];return _0x281841;}(function(_0x1c188b,_0x312ffa){const _0x3b0015=a39_0x2818,_0x295455=_0x1c188b();while(!![]){try{const _0x39359e=-parseInt(_0x3b0015(0x15b))/0x1*(parseInt(_0x3b0015(0x158))/0x2)+-parseInt(_0x3b0015(0x151))/0x3+-parseInt(_0x3b0015(0x156))/0x4+parseInt(_0x3b0015(0x15a))/0x5+-parseInt(_0x3b0015(0x15c))/0x6+parseInt(_0x3b0015(0x159))/0x7*(-parseInt(_0x3b0015(0x152))/0x8)+parseInt(_0x3b0015(0x154))/0x9;if(_0x39359e===_0x312ffa)break;else _0x295455['push'](_0x295455['shift']());}catch(_0x54ee13){_0x295455['push'](_0x295455['shift']());}}}(a39_0x5496,0x6421c));import a39_0x5ecd18 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a39_0x5496(){const _0x4dc1a7=['12XkLARd','1428vrpaLI','561600MRjWhG','69413uPDcKK','1317900zRztsJ','daily','unknown','user','rabetbase-cli','948294LDgoBd','6552XiYRNV','username','15077637qTHxzm','production','1032684IYVceJ','userInfo'];a39_0x5496=function(){return _0x4dc1a7;};return a39_0x5496();}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x47b2cb=a39_0x2818,_0xa1a79d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2909cb=_0xa1a79d?.[_0x47b2cb(0x14f)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x47b2cb(0x14e)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x47b2cb(0x15d):_0x47b2cb(0x155)),'username':_0x2909cb?.[_0x47b2cb(0x153)]??a39_0x5ecd18[_0x47b2cb(0x157)]()[_0x47b2cb(0x153)]??_0x47b2cb(0x150),..._0x2909cb&&{'nickname':_0x2909cb['nickname']}}),cliOtelTraceInitialized=!![];}return _0xa1a79d;}
@@ -1 +1 @@
1
- (function(_0x430090,_0xafe690){const _0x448983=a140_0x9bea,_0x2a1877=_0x430090();while(!![]){try{const _0x290d07=parseInt(_0x448983(0x1f0))/0x1+parseInt(_0x448983(0x1f1))/0x2*(parseInt(_0x448983(0x1f3))/0x3)+parseInt(_0x448983(0x1ed))/0x4+-parseInt(_0x448983(0x1f2))/0x5*(-parseInt(_0x448983(0x1f9))/0x6)+parseInt(_0x448983(0x1f4))/0x7*(parseInt(_0x448983(0x1ec))/0x8)+-parseInt(_0x448983(0x1ee))/0x9+-parseInt(_0x448983(0x1f5))/0xa;if(_0x290d07===_0xafe690)break;else _0x2a1877['push'](_0x2a1877['shift']());}catch(_0x4f60d2){_0x2a1877['push'](_0x2a1877['shift']());}}}(a140_0x450b,0xf17c4));function a140_0x9bea(_0x288864,_0x1bdc2a){_0x288864=_0x288864-0x1eb;const _0x450b76=a140_0x450b();let _0x9bea86=_0x450b76[_0x288864];return _0x9bea86;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x30ef12=a140_0x9bea;process[_0x30ef12(0x1f6)](_0x30ef12(0x1f7),()=>{void flushOtelNodeIfUsed();});const _0x4defc6=()=>{const _0x36bb7e=_0x30ef12;void flushOtelNodeIfUsed()['then'](()=>process[_0x36bb7e(0x1eb)](0x0));};process[_0x30ef12(0x1f6)](_0x30ef12(0x1ef),_0x4defc6),process['once'](_0x30ef12(0x1f8),_0x4defc6);}function a140_0x450b(){const _0x4e60da=['SIGINT','1435271ogcYOe','3788012fzNDVl','5MfUhba','3KnuGUK','4809378dXjVVw','52070710YCXEmP','once','beforeExit','SIGTERM','9170532aKQlyN','exit','8VCdWUe','6593300iCPulh','8971947avxKMl'];a140_0x450b=function(){return _0x4e60da;};return a140_0x450b();}export async function exitWithOtelShutdown(_0x3b7c43){await flushOtelNodeIfUsed(),process['exit'](_0x3b7c43);}
1
+ (function(_0x3be254,_0x354d34){const _0x3f02c7=a36_0x277d,_0x266d42=_0x3be254();while(!![]){try{const _0x22f6c2=-parseInt(_0x3f02c7(0x10d))/0x1*(parseInt(_0x3f02c7(0x10a))/0x2)+-parseInt(_0x3f02c7(0x105))/0x3+parseInt(_0x3f02c7(0x111))/0x4*(-parseInt(_0x3f02c7(0x108))/0x5)+-parseInt(_0x3f02c7(0x109))/0x6*(-parseInt(_0x3f02c7(0x107))/0x7)+-parseInt(_0x3f02c7(0x106))/0x8*(-parseInt(_0x3f02c7(0x10b))/0x9)+parseInt(_0x3f02c7(0x112))/0xa*(parseInt(_0x3f02c7(0x114))/0xb)+parseInt(_0x3f02c7(0x113))/0xc;if(_0x22f6c2===_0x354d34)break;else _0x266d42['push'](_0x266d42['shift']());}catch(_0x549e7c){_0x266d42['push'](_0x266d42['shift']());}}}(a36_0x3c2a,0x92204));function a36_0x277d(_0x26f19f,_0x4329ff){_0x26f19f=_0x26f19f-0x105;const _0x3c2aab=a36_0x3c2a();let _0x277dee=_0x3c2aab[_0x26f19f];return _0x277dee;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5dc82d=a36_0x277d;process[_0x5dc82d(0x10e)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x132c27=()=>{const _0x5c27a3=_0x5dc82d;void flushOtelNodeIfUsed()[_0x5c27a3(0x110)](()=>process[_0x5c27a3(0x10f)](0x0));};process[_0x5dc82d(0x10e)](_0x5dc82d(0x10c),_0x132c27),process[_0x5dc82d(0x10e)](_0x5dc82d(0x115),_0x132c27);}export async function exitWithOtelShutdown(_0x52483b){await flushOtelNodeIfUsed(),process['exit'](_0x52483b);}function a36_0x3c2a(){const _0x38ceed=['SIGINT','155kOWjuS','once','exit','then','444rwejTD','30nzjEyS','8638668mSczaV','3032909FRynFH','SIGTERM','78543aQHfCx','8iQJULM','16163MuOLGX','8715CPJeKI','192hIgYjq','15202uMdgqJ','3378663TdwCCU'];a36_0x3c2a=function(){return _0x38ceed;};return a36_0x3c2a();}
@@ -1 +1 @@
1
- const a141_0x7116bc=a141_0x5b6b;(function(_0x19a542,_0x4272c5){const _0x57511a=a141_0x5b6b,_0x3cda39=_0x19a542();while(!![]){try{const _0x390c70=-parseInt(_0x57511a(0xd2))/0x1*(parseInt(_0x57511a(0xc4))/0x2)+-parseInt(_0x57511a(0xc8))/0x3*(parseInt(_0x57511a(0xca))/0x4)+-parseInt(_0x57511a(0xce))/0x5+-parseInt(_0x57511a(0xc7))/0x6+-parseInt(_0x57511a(0xc3))/0x7*(-parseInt(_0x57511a(0xcb))/0x8)+-parseInt(_0x57511a(0xc9))/0x9*(-parseInt(_0x57511a(0xcf))/0xa)+parseInt(_0x57511a(0xc5))/0xb*(parseInt(_0x57511a(0xd0))/0xc);if(_0x390c70===_0x4272c5)break;else _0x3cda39['push'](_0x3cda39['shift']());}catch(_0x4f1eef){_0x3cda39['push'](_0x3cda39['shift']());}}}(a141_0x4048,0x99d7b));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a141_0x5b6b(_0x5c9c19,_0x2d684f){_0x5c9c19=_0x5c9c19-0xc3;const _0x404855=a141_0x4048();let _0x5b6bcd=_0x404855[_0x5c9c19];return _0x5b6bcd;}const DEFAULT_TRACE_NAME=a141_0x7116bc(0xc6);export async function sendCliTraceLog(_0x476e53){const _0x35d0ab=a141_0x7116bc;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x476e53[_0x35d0ab(0xcc)]??DEFAULT_TRACE_NAME,'version':_0x476e53['version']??getCliVersion(),'spanName':_0x476e53[_0x35d0ab(0xd3)],'eventType':_0x35d0ab(0xd1),'logData':_0x476e53['logData'],..._0x476e53['traceparent']&&{'traceparent':_0x476e53[_0x35d0ab(0xcd)]}});}function a141_0x4048(){const _0x37bcb7=['traceName','traceparent','5864195gMkosh','4901930nnqzdS','12UoYYcf','manual','3LtxLTS','spanName','7Jpmyyv','163712oYhDGv','31448857eOBNqf','rabetbase-cli','3812346sxeyAg','21hSfnyd','9jmDGTL','607364KuxzFA','3181152wzCTJt'];a141_0x4048=function(){return _0x37bcb7;};return a141_0x4048();}
1
+ const a37_0x15be70=a37_0x42f1;(function(_0x3043ec,_0x53ba0f){const _0x2e763b=a37_0x42f1,_0x1128cc=_0x3043ec();while(!![]){try{const _0x4f6086=-parseInt(_0x2e763b(0x103))/0x1+-parseInt(_0x2e763b(0x106))/0x2*(-parseInt(_0x2e763b(0x107))/0x3)+parseInt(_0x2e763b(0x104))/0x4+-parseInt(_0x2e763b(0x110))/0x5*(-parseInt(_0x2e763b(0x10c))/0x6)+-parseInt(_0x2e763b(0x111))/0x7+-parseInt(_0x2e763b(0x10f))/0x8*(parseInt(_0x2e763b(0x10e))/0x9)+parseInt(_0x2e763b(0x109))/0xa*(parseInt(_0x2e763b(0x114))/0xb);if(_0x4f6086===_0x53ba0f)break;else _0x1128cc['push'](_0x1128cc['shift']());}catch(_0xe4bc67){_0x1128cc['push'](_0x1128cc['shift']());}}}(a37_0xf288,0xe889d));function a37_0xf288(){const _0x5f0c85=['9470TFWQyR','traceName','spanName','24fSBSAO','logData','468NuutZi','37744QijBrJ','1840190DlYQRQ','7559454ZrLTts','manual','rabetbase-cli','9768dARIUO','1872826JyodWT','1706220QdoYFH','traceparent','12bWsIix','705459EyLBuJ','version'];a37_0xf288=function(){return _0x5f0c85;};return a37_0xf288();}import{sendTraceLog}from'@lovrabet/otel-logger';function a37_0x42f1(_0xefeaee,_0xf36c4d){_0xefeaee=_0xefeaee-0x103;const _0xf28897=a37_0xf288();let _0x42f113=_0xf28897[_0xefeaee];return _0x42f113;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a37_0x15be70(0x113);export async function sendCliTraceLog(_0x4d7c49){const _0x52d0a2=a37_0x15be70;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4d7c49[_0x52d0a2(0x10a)]??DEFAULT_TRACE_NAME,'version':_0x4d7c49[_0x52d0a2(0x108)]??getCliVersion(),'spanName':_0x4d7c49[_0x52d0a2(0x10b)],'eventType':_0x52d0a2(0x112),'logData':_0x4d7c49[_0x52d0a2(0x10d)],..._0x4d7c49['traceparent']&&{'traceparent':_0x4d7c49[_0x52d0a2(0x105)]}});}
@@ -1 +1 @@
1
- const a143_0x17203b=a143_0x3bfe;(function(_0x233a16,_0x1792f7){const _0x25e13c=a143_0x3bfe,_0x213956=_0x233a16();while(!![]){try{const _0x2252e8=parseInt(_0x25e13c(0x1ff))/0x1+parseInt(_0x25e13c(0x1e9))/0x2+parseInt(_0x25e13c(0x1e7))/0x3+parseInt(_0x25e13c(0x205))/0x4*(-parseInt(_0x25e13c(0x1e3))/0x5)+parseInt(_0x25e13c(0x1f4))/0x6*(parseInt(_0x25e13c(0x202))/0x7)+parseInt(_0x25e13c(0x1e6))/0x8+-parseInt(_0x25e13c(0x207))/0x9*(parseInt(_0x25e13c(0x1fc))/0xa);if(_0x2252e8===_0x1792f7)break;else _0x213956['push'](_0x213956['shift']());}catch(_0x57269a){_0x213956['push'](_0x213956['shift']());}}}(a143_0x5d36,0xe0242));export const CORE_IDE_CONFIGS={'cursor':{'name':a143_0x17203b(0x1ea),'description':a143_0x17203b(0x1df),'folders':['.cursorrules',a143_0x17203b(0x20b)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f6),'template':a143_0x17203b(0x1d8)}]},'windsurf':{'name':a143_0x17203b(0x1f5),'description':'Windsurf\x20IDE','folders':[a143_0x17203b(0x1e5)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1ee),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a143_0x17203b(0x1eb),'folders':[a143_0x17203b(0x1dd)],'files':[{'type':'file','path':a143_0x17203b(0x1f7),'template':a143_0x17203b(0x1d8)}]},'cline':{'name':a143_0x17203b(0x204),'description':a143_0x17203b(0x1e0),'folders':[a143_0x17203b(0x206)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1ed),'template':a143_0x17203b(0x1d8)}]},'codex':{'name':a143_0x17203b(0x1ec),'description':a143_0x17203b(0x1e1),'folders':[a143_0x17203b(0x1fa)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x209),'template':'SKILL.md.tpl'}]},'opencode':{'name':a143_0x17203b(0x1f2),'description':'OpenCode\x20IDE','folders':[a143_0x17203b(0x1fe)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f0),'template':a143_0x17203b(0x1d8)}]},'qoder':{'name':'Qoder','description':a143_0x17203b(0x1e8),'folders':['.qoder'],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1fb),'template':a143_0x17203b(0x1d8)},{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x1f3),'template':a143_0x17203b(0x1d8)}]},'codebuddy':{'name':a143_0x17203b(0x1f8),'description':a143_0x17203b(0x1db),'folders':[a143_0x17203b(0x1e4)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x20f),'template':a143_0x17203b(0x1d8)}]},'trae':{'name':a143_0x17203b(0x1d9),'description':'Trae\x20IDE','folders':[a143_0x17203b(0x203)],'files':[{'type':a143_0x17203b(0x208),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a143_0x17203b(0x20a),'description':'通用模板\x20-\x20兜底方案','folders':[a143_0x17203b(0x1f9)],'files':[{'type':a143_0x17203b(0x208),'path':a143_0x17203b(0x201),'template':a143_0x17203b(0x1d8)}]},'antigravity':{'name':a143_0x17203b(0x1dc),'description':'Antigravity\x20IDE','folders':[a143_0x17203b(0x1f9)],'files':[{'type':'file','path':a143_0x17203b(0x201),'template':'SKILL.md.tpl'}]}};function a143_0x5d36(){const _0x7a906e=['CodeBuddy\x20IDE','Antigravity','.claude','opencode','Cursor\x20IDE','Cline\x20IDE','Codex\x20IDE','antigravity','181435gePOzd','.codebuddy','.windsurf','4573192ajvzeq','3148770OiZOPT','Qoder\x20IDE','252602ERftbW','Cursor','Claude\x20Code','Codex','.cline/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','codex','.opencode/skills/lovrabet/SKILL.md','claude','OpenCode','.qoder/skills/lovrabet/SKILL.md','7552842HbvIuf','Windsurf','.cursor/skills/rabetbase.md','.claude/skills/lovrabet/SKILL.md','CodeBuddy','.agent','.codex','.qoder/rules/rabetbase.md','2270GyFgia','windsurf','.opencode','1701063YFixTX','qoder','.agent/skills/lovrabet/SKILL.md','7FlrYGL','.trae','Cline','108AwKeKv','.cline','111393JTbMtJ','file','.codex/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.cursor','codebuddy','agent','cursor','.codebuddy/skills/lovrabet/SKILL.md','trae','SKILL.md.tpl','Trae','cline'];a143_0x5d36=function(){return _0x7a906e;};return a143_0x5d36();}export const CORE_IDE_LIST=[a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x20c),a143_0x17203b(0x1ef),a143_0x17203b(0x20e),'opencode',a143_0x17203b(0x200),'trae',a143_0x17203b(0x1fd)];export const IDE_LIST=[a143_0x17203b(0x1e2),a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x20c),a143_0x17203b(0x1ef),a143_0x17203b(0x20e),a143_0x17203b(0x1de),a143_0x17203b(0x200),'trae','windsurf',a143_0x17203b(0x20d)];function a143_0x3bfe(_0x1ee5a4,_0x5721f7){_0x1ee5a4=_0x1ee5a4-0x1d7;const _0x5d36c6=a143_0x5d36();let _0x3bfe7a=_0x5d36c6[_0x1ee5a4];return _0x3bfe7a;}export const ALL_CORE_IDES=[a143_0x17203b(0x20e),a143_0x17203b(0x1fd),a143_0x17203b(0x1f1),a143_0x17203b(0x1da),a143_0x17203b(0x1ef),a143_0x17203b(0x1de),a143_0x17203b(0x200),'codebuddy',a143_0x17203b(0x1d7)];
1
+ const a1_0x30d109=a1_0x3a6d;function a1_0x9237(){const _0x116929=['Trae\x20IDE','Windsurf','cline','.trae/skills/lovrabet/SKILL.md','cursor','trae','opencode','5091888pftzMf','7087815EtDXnm','Windsurf\x20IDE','Claude\x20Code','qoder','395994mkeOCO','.agent/skills/lovrabet/SKILL.md','Trae','.windsurf','claude','OpenCode','Codex','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','codex','.opencode/skills/lovrabet/SKILL.md','file','codebuddy','CodeBuddy','Antigravity\x20IDE','.claude/skills/lovrabet/SKILL.md','4339120BsmbKd','5997YdFfTb','.opencode','.codebuddy','.cursor','35dzDgRw','19914QSBXqc','.agent','Antigravity','1028TPULQn','windsurf','.qoder/skills/lovrabet/SKILL.md','1695606BbtyyR','agent','SKILL.md.tpl','.claude','antigravity','Qoder','其他\x20(通用模板)','Codex\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md'];a1_0x9237=function(){return _0x116929;};return a1_0x9237();}(function(_0x49824e,_0x4b173b){const _0x553f32=a1_0x3a6d,_0x3179c0=_0x49824e();while(!![]){try{const _0x31a5ca=-parseInt(_0x553f32(0x96))/0x1+parseInt(_0x553f32(0x80))/0x2+parseInt(_0x553f32(0x75))/0x3*(-parseInt(_0x553f32(0x7d))/0x4)+-parseInt(_0x553f32(0x74))/0x5+parseInt(_0x553f32(0x7a))/0x6*(parseInt(_0x553f32(0x79))/0x7)+parseInt(_0x553f32(0x91))/0x8+parseInt(_0x553f32(0x92))/0x9;if(_0x31a5ca===_0x4b173b)break;else _0x3179c0['push'](_0x3179c0['shift']());}catch(_0x32d87a){_0x3179c0['push'](_0x3179c0['shift']());}}}(a1_0x9237,0x7cb8a));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':['.cursorrules',a1_0x30d109(0x78)],'files':[{'type':a1_0x30d109(0x6f),'path':'.cursor/skills/rabetbase.md','template':a1_0x30d109(0x82)}]},'windsurf':{'name':a1_0x30d109(0x8b),'description':a1_0x30d109(0x93),'folders':[a1_0x30d109(0x99)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x89),'template':a1_0x30d109(0x82)}]},'claude':{'name':a1_0x30d109(0x94),'description':a1_0x30d109(0x94),'folders':[a1_0x30d109(0x83)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x73),'template':a1_0x30d109(0x82)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x9e),'template':a1_0x30d109(0x82)}]},'codex':{'name':a1_0x30d109(0x9c),'description':a1_0x30d109(0x87),'folders':['.codex'],'files':[{'type':'file','path':a1_0x30d109(0x9f),'template':a1_0x30d109(0x82)}]},'opencode':{'name':a1_0x30d109(0x9b),'description':'OpenCode\x20IDE','folders':[a1_0x30d109(0x76)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x6e),'template':a1_0x30d109(0x82)}]},'qoder':{'name':a1_0x30d109(0x85),'description':a1_0x30d109(0x9d),'folders':['.qoder'],'files':[{'type':a1_0x30d109(0x6f),'path':'.qoder/rules/rabetbase.md','template':a1_0x30d109(0x82)},{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x7f),'template':a1_0x30d109(0x82)}]},'codebuddy':{'name':a1_0x30d109(0x71),'description':'CodeBuddy\x20IDE','folders':[a1_0x30d109(0x77)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x88),'template':a1_0x30d109(0x82)}]},'trae':{'name':a1_0x30d109(0x98),'description':a1_0x30d109(0x8a),'folders':['.trae'],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x8d),'template':a1_0x30d109(0x82)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a1_0x30d109(0x86),'description':a1_0x30d109(0x6c),'folders':[a1_0x30d109(0x7b)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x97),'template':a1_0x30d109(0x82)}]},'antigravity':{'name':a1_0x30d109(0x7c),'description':a1_0x30d109(0x72),'folders':[a1_0x30d109(0x7b)],'files':[{'type':a1_0x30d109(0x6f),'path':'.agent/skills/lovrabet/SKILL.md','template':a1_0x30d109(0x82)}]}};export const CORE_IDE_LIST=[a1_0x30d109(0x9a),a1_0x30d109(0x8c),a1_0x30d109(0x70),a1_0x30d109(0x6d),a1_0x30d109(0x8e),'opencode','qoder','trae',a1_0x30d109(0x7e)];function a1_0x3a6d(_0x27e923,_0x42108e){_0x27e923=_0x27e923-0x6c;const _0x92370f=a1_0x9237();let _0x3a6d42=_0x92370f[_0x27e923];return _0x3a6d42;}export const IDE_LIST=[a1_0x30d109(0x84),a1_0x30d109(0x9a),'cline',a1_0x30d109(0x70),a1_0x30d109(0x6d),'cursor','opencode',a1_0x30d109(0x95),a1_0x30d109(0x8f),'windsurf',a1_0x30d109(0x81)];export const ALL_CORE_IDES=[a1_0x30d109(0x8e),'windsurf',a1_0x30d109(0x9a),a1_0x30d109(0x8c),a1_0x30d109(0x6d),a1_0x30d109(0x90),a1_0x30d109(0x95),'codebuddy',a1_0x30d109(0x8f)];
@@ -1 +1 @@
1
- function a144_0x13a0(_0x3a6af6,_0x493ea5){_0x3a6af6=_0x3a6af6-0xa7;const _0x2c5d99=a144_0x2c5d();let _0x13a0be=_0x2c5d99[_0x3a6af6];return _0x13a0be;}(function(_0x3d7a82,_0x3bcdde){const _0x41f72e=a144_0x13a0,_0x18dd64=_0x3d7a82();while(!![]){try{const _0x1cbb00=parseInt(_0x41f72e(0xaa))/0x1+parseInt(_0x41f72e(0xa7))/0x2+-parseInt(_0x41f72e(0xa9))/0x3+-parseInt(_0x41f72e(0xad))/0x4+parseInt(_0x41f72e(0xa8))/0x5+-parseInt(_0x41f72e(0xae))/0x6+parseInt(_0x41f72e(0xac))/0x7*(parseInt(_0x41f72e(0xab))/0x8);if(_0x1cbb00===_0x3bcdde)break;else _0x18dd64['push'](_0x18dd64['shift']());}catch(_0x21fd2e){_0x18dd64['push'](_0x18dd64['shift']());}}}(a144_0x2c5d,0x2bb0a));import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a144_0x2c5d(){const _0x10d17c=['1067164JXAlgG','1700802UJaeiK','366814suXBMD','1478120PgUKkN','993753FNVNFv','216020mSLmqP','79008Bsvyxe','259XAkQju'];a144_0x2c5d=function(){return _0x10d17c;};return a144_0x2c5d();}export const applyJqFilter=createJqFilter(CliErrors);
1
+ (function(_0x350fef,_0x37c81e){const _0x196273=a12_0x255e,_0x5d708a=_0x350fef();while(!![]){try{const _0x52cedf=parseInt(_0x196273(0x116))/0x1*(-parseInt(_0x196273(0x112))/0x2)+-parseInt(_0x196273(0x10f))/0x3+parseInt(_0x196273(0x10e))/0x4+parseInt(_0x196273(0x114))/0x5*(-parseInt(_0x196273(0x115))/0x6)+-parseInt(_0x196273(0x110))/0x7+parseInt(_0x196273(0x111))/0x8+-parseInt(_0x196273(0x113))/0x9*(-parseInt(_0x196273(0x117))/0xa);if(_0x52cedf===_0x37c81e)break;else _0x5d708a['push'](_0x5d708a['shift']());}catch(_0x3992f9){_0x5d708a['push'](_0x5d708a['shift']());}}}(a12_0x5ef3,0x54844));function a12_0x255e(_0x53d8d2,_0x57db0d){_0x53d8d2=_0x53d8d2-0x10e;const _0x5ef386=a12_0x5ef3();let _0x255eb4=_0x5ef386[_0x53d8d2];return _0x255eb4;}import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);function a12_0x5ef3(){const _0x4c0b7d=['45aDAJXJ','5RiWdpS','2284278nYVipx','35cbzten','210770lNaKNj','2301004LgpYPp','315579wNaQNk','1035391MxHEcQ','3699424OdCAfT','9318ZdKIxa'];a12_0x5ef3=function(){return _0x4c0b7d;};return a12_0x5ef3();}
@@ -1 +1 @@
1
- (function(_0x2d55a4,_0x4d5aee){const _0x96e9a1=a145_0x26cb,_0x3aaaaf=_0x2d55a4();while(!![]){try{const _0x44f0d8=parseInt(_0x96e9a1(0x13a))/0x1*(-parseInt(_0x96e9a1(0x131))/0x2)+parseInt(_0x96e9a1(0x137))/0x3*(-parseInt(_0x96e9a1(0x13b))/0x4)+-parseInt(_0x96e9a1(0x135))/0x5+-parseInt(_0x96e9a1(0x132))/0x6*(-parseInt(_0x96e9a1(0x136))/0x7)+parseInt(_0x96e9a1(0x139))/0x8*(-parseInt(_0x96e9a1(0x138))/0x9)+parseInt(_0x96e9a1(0x12e))/0xa*(-parseInt(_0x96e9a1(0x133))/0xb)+parseInt(_0x96e9a1(0x13c))/0xc;if(_0x44f0d8===_0x4d5aee)break;else _0x3aaaaf['push'](_0x3aaaaf['shift']());}catch(_0x32652e){_0x3aaaaf['push'](_0x3aaaaf['shift']());}}}(a145_0x5bf7,0x8a030));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3bc412=a145_0x26cb;try{const _0x5cc891=getTemplateBaseUrl(),_0x9d6577=_0x5cc891+_0x3bc412(0x134),_0x1dc7ec=await fetch(_0x9d6577,{'headers':{'Accept':'application/json'}});if(!_0x1dc7ec['ok'])return null;const _0x1e1edb=await _0x1dc7ec['json']();if(!_0x1e1edb['cli']?.[_0x3bc412(0x12f)]||!_0x1e1edb['sdk']?.[_0x3bc412(0x130)]?.[_0x3bc412(0x12f)])return null;return _0x1e1edb;}catch{return null;}}function a145_0x26cb(_0x201086,_0x46f96f){_0x201086=_0x201086-0x12e;const _0x5bf7b7=a145_0x5bf7();let _0x26cb99=_0x5bf7b7[_0x201086];return _0x26cb99;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x320a7e=Date['now']();if(cachedConfig&&_0x320a7e-cacheTime<CACHE_TTL)return cachedConfig;const _0x1609f3=await fetchCdnConfig();return _0x1609f3&&(cachedConfig=_0x1609f3,cacheTime=_0x320a7e),_0x1609f3;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a145_0x5bf7(){const _0x2cb5e3=['1164606UUypVH','6618fjORRc','5159143SZjmmx','/config.json','4681310CwVovW','3493DzhDiq','2139ylKdUI','549ArwIYD','140816FDfPze','1wqhuic','2284qiCoSO','41799864oWpMfz','10VGKasy','stableVersion','node'];a145_0x5bf7=function(){return _0x2cb5e3;};return a145_0x5bf7();}
1
+ function a13_0x2c3b(_0x5798ba,_0x4c0518){_0x5798ba=_0x5798ba-0x1bb;const _0x17bcc7=a13_0x17bc();let _0x2c3b0f=_0x17bcc7[_0x5798ba];return _0x2c3b0f;}(function(_0x27e78c,_0x132d47){const _0x4ed5c1=a13_0x2c3b,_0x301c47=_0x27e78c();while(!![]){try{const _0x13f17c=-parseInt(_0x4ed5c1(0x1c7))/0x1+-parseInt(_0x4ed5c1(0x1c3))/0x2*(-parseInt(_0x4ed5c1(0x1c6))/0x3)+-parseInt(_0x4ed5c1(0x1c1))/0x4*(parseInt(_0x4ed5c1(0x1c5))/0x5)+-parseInt(_0x4ed5c1(0x1bd))/0x6*(parseInt(_0x4ed5c1(0x1cd))/0x7)+-parseInt(_0x4ed5c1(0x1bb))/0x8*(-parseInt(_0x4ed5c1(0x1c9))/0x9)+parseInt(_0x4ed5c1(0x1bc))/0xa*(-parseInt(_0x4ed5c1(0x1c0))/0xb)+parseInt(_0x4ed5c1(0x1ca))/0xc;if(_0x13f17c===_0x132d47)break;else _0x301c47['push'](_0x301c47['shift']());}catch(_0x500880){_0x301c47['push'](_0x301c47['shift']());}}}(a13_0x17bc,0x60589));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x27a3a9=a13_0x2c3b;try{const _0x2823b1=getTemplateBaseUrl(),_0x51ca1c=_0x2823b1+_0x27a3a9(0x1be),_0x4e2f63=await fetch(_0x51ca1c,{'headers':{'Accept':_0x27a3a9(0x1c4)}});if(!_0x4e2f63['ok'])return null;const _0x4ef203=await _0x4e2f63['json']();if(!_0x4ef203[_0x27a3a9(0x1c2)]?.[_0x27a3a9(0x1cb)]||!_0x4ef203[_0x27a3a9(0x1c8)]?.[_0x27a3a9(0x1bf)]?.[_0x27a3a9(0x1cb)])return null;return _0x4ef203;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a13_0x17bc(){const _0x372d8f=['1167OHprhe','474372PCfqiu','sdk','52011WVjvWG','17174244BBpKVY','stableVersion','now','4907VsLXPm','504plsAMC','20tuzGYj','4278axdtmN','/config.json','node','2348929oGJFGG','4mGWpyo','cli','364jjhqKi','application/json','350830HuvYSp'];a13_0x17bc=function(){return _0x372d8f;};return a13_0x17bc();}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x363df9=a13_0x2c3b,_0x19bee0=Date[_0x363df9(0x1cc)]();if(cachedConfig&&_0x19bee0-cacheTime<CACHE_TTL)return cachedConfig;const _0x1c7a08=await fetchCdnConfig();return _0x1c7a08&&(cachedConfig=_0x1c7a08,cacheTime=_0x19bee0),_0x1c7a08;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a146_0x4486ae=a146_0x44b1;function a146_0x324d(){const _0xdb825e=['1.2.0','test','dependencies','stableVersion','readFileSync','log','50108hhhXgt','\x1b[33m','@lovrabet/sdk','node_modules','latest','version','packageName','npm\x20install\x20','5154115wOfqkx','141634lptBLN','↪\x20SDK\x20update\x20available','node','utf-8','5104022ZJHhDq','\x1b[0m','needsUpgrade','package.json','parse','coerce','devDependencies','141wwkaNM','join','all','\x20\x20\x20Upgrade\x20command:\x20','99124uaSFYC','existsSync','\x20\x20\x20Current\x20version:\x20','sdk','2928780ETuucT','minVersion','\x20\x20\x20Stable\x20version:\x20','2722208EtDPRW'];a146_0x324d=function(){return _0xdb825e;};return a146_0x324d();}(function(_0x7cf88,_0x10a9ed){const _0x5b113c=a146_0x44b1,_0x432af6=_0x7cf88();while(!![]){try{const _0x319814=parseInt(_0x5b113c(0x19a))/0x1+-parseInt(_0x5b113c(0x1a3))/0x2+-parseInt(_0x5b113c(0x1ae))/0x3*(-parseInt(_0x5b113c(0x1b2))/0x4)+parseInt(_0x5b113c(0x1a2))/0x5+-parseInt(_0x5b113c(0x1b6))/0x6+-parseInt(_0x5b113c(0x1a7))/0x7+-parseInt(_0x5b113c(0x1b9))/0x8;if(_0x319814===_0x10a9ed)break;else _0x432af6['push'](_0x432af6['shift']());}catch(_0x287b23){_0x432af6['push'](_0x432af6['shift']());}}}(a146_0x324d,0x96b35));import a146_0x497724 from'node:fs';import a146_0x3e7b64 from'node:path';import a146_0x256f2d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a146_0x44b1(_0x30c30a,_0x4fbdeb){_0x30c30a=_0x30c30a-0x194;const _0x324d5c=a146_0x324d();let _0x44b1a2=_0x324d5c[_0x30c30a];return _0x44b1a2;}const FALLBACK_MIN_SDK_VERSION=a146_0x4486ae(0x194);function isNonNumericVersion(_0x5c9bef){const _0x43ea03=a146_0x4486ae,_0x34cd9f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x34cd9f['some'](_0x403648=>_0x403648[_0x43ea03(0x195)](_0x5c9bef));}function getInstalledVersion(_0x50e323,_0x4f621d){const _0x5d395b=a146_0x4486ae;try{const _0x4d6ddb=a146_0x3e7b64[_0x5d395b(0x1af)](_0x50e323,_0x5d395b(0x19d),_0x4f621d,_0x5d395b(0x1aa));if(a146_0x497724[_0x5d395b(0x1b3)](_0x4d6ddb)){const _0x3940ab=JSON[_0x5d395b(0x1ab)](a146_0x497724[_0x5d395b(0x198)](_0x4d6ddb,_0x5d395b(0x1a6)));return _0x3940ab[_0x5d395b(0x19f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xf93785=a146_0x4486ae;try{const _0x5216e6=await getCdnConfig();return _0x5216e6?.[_0xf93785(0x1b5)]?.['node']?.[_0xf93785(0x197)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x44a35a=a146_0x4486ae;try{const _0x103e2a=await getCdnConfig();return _0x103e2a?.[_0x44a35a(0x1b5)]?.[_0x44a35a(0x1a5)]?.[_0x44a35a(0x1a0)]||_0x44a35a(0x19c);}catch{return _0x44a35a(0x19c);}}export async function checkSdkVersion(_0x265a7d){const _0x16cf14=a146_0x4486ae,_0x48f0a0=a146_0x3e7b64[_0x16cf14(0x1af)](_0x265a7d,_0x16cf14(0x1aa)),[_0x2d9ffe,_0x4b98e9]=await Promise[_0x16cf14(0x1b0)]([getSdkStableVersion(),getSdkPackageName()]),_0x28bd6=_0x2d9ffe||FALLBACK_MIN_SDK_VERSION;if(!a146_0x497724[_0x16cf14(0x1b3)](_0x48f0a0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};try{const _0x4344ef=JSON[_0x16cf14(0x1ab)](a146_0x497724[_0x16cf14(0x198)](_0x48f0a0,'utf8')),_0x57f376=_0x4344ef[_0x16cf14(0x196)]||{},_0x191c08=_0x4344ef[_0x16cf14(0x1ad)]||{},_0x4c89f0=_0x57f376[_0x4b98e9]||_0x191c08[_0x4b98e9];if(!_0x4c89f0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};let _0x43410e=getInstalledVersion(_0x265a7d,_0x4b98e9);!_0x43410e&&(_0x43410e=_0x4c89f0);if(isNonNumericVersion(_0x4c89f0))return{'installed':!![],'version':_0x43410e,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};const _0x3a0a92=a146_0x256f2d[_0x16cf14(0x1ac)](_0x43410e),_0x4adc6f=a146_0x256f2d[_0x16cf14(0x1ac)](_0x28bd6),_0x4fec24=_0x3a0a92&&_0x4adc6f?a146_0x256f2d['lt'](_0x3a0a92,_0x4adc6f):![];return{'installed':!![],'version':_0x43410e,'needsUpgrade':_0x4fec24,'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x28bd6,'packageName':_0x4b98e9,'stableVersion':_0x2d9ffe};}}export function checkSdkVersionSync(_0x3f3e6f){const _0x5e6373=a146_0x4486ae,_0x5a9f43=a146_0x3e7b64[_0x5e6373(0x1af)](_0x3f3e6f,_0x5e6373(0x1aa)),_0x458b87=_0x5e6373(0x19c);if(!a146_0x497724['existsSync'](_0x5a9f43))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};try{const _0x3679f2=JSON['parse'](a146_0x497724[_0x5e6373(0x198)](_0x5a9f43,'utf8')),_0x512fa2=_0x3679f2[_0x5e6373(0x196)]||{},_0x669302=_0x3679f2[_0x5e6373(0x1ad)]||{},_0x3351f8=_0x512fa2[_0x458b87]||_0x669302[_0x458b87];if(!_0x3351f8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};let _0x1046d4=getInstalledVersion(_0x3f3e6f,_0x458b87);!_0x1046d4&&(_0x1046d4=_0x3351f8);if(isNonNumericVersion(_0x3351f8))return{'installed':!![],'version':_0x1046d4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};const _0x575088=a146_0x256f2d[_0x5e6373(0x1ac)](_0x1046d4),_0x24b3ef=_0x575088?a146_0x256f2d['lt'](_0x575088,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1046d4,'needsUpgrade':_0x24b3ef,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x458b87,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x34382e){const _0x31ff66=a146_0x4486ae;if(!_0x34382e[_0x31ff66(0x1a9)])return;const _0x2929d6=_0x31ff66(0x19b),_0x1744e5=_0x31ff66(0x1a8),_0x2e2359='\x1b[1m',_0xb1a512=_0x34382e[_0x31ff66(0x1a0)]||_0x31ff66(0x19c),_0x40fa25=_0x34382e['stableVersion']||_0x34382e[_0x31ff66(0x1b7)],_0x6e9f2a=_0x31ff66(0x1a1)+_0xb1a512+'@'+(_0x40fa25||_0x31ff66(0x19e));console[_0x31ff66(0x199)](),console[_0x31ff66(0x199)](''+_0x2929d6+_0x2e2359+_0x31ff66(0x1a4)+_0x1744e5),console[_0x31ff66(0x199)](_0x2929d6+_0x31ff66(0x1b4)+_0xb1a512+'@'+_0x34382e['version']+_0x1744e5),console[_0x31ff66(0x199)](_0x2929d6+_0x31ff66(0x1b8)+_0x40fa25+_0x1744e5),console['log'](_0x2929d6+_0x31ff66(0x1b1)+_0x6e9f2a+_0x1744e5),console[_0x31ff66(0x199)]();}
1
+ (function(_0x577172,_0x1870c6){const _0x547452=a6_0x4d75,_0x30a92f=_0x577172();while(!![]){try{const _0x23a7d1=parseInt(_0x547452(0x73))/0x1*(-parseInt(_0x547452(0x79))/0x2)+-parseInt(_0x547452(0x72))/0x3*(-parseInt(_0x547452(0x85))/0x4)+-parseInt(_0x547452(0x81))/0x5+-parseInt(_0x547452(0x88))/0x6+parseInt(_0x547452(0x7e))/0x7*(-parseInt(_0x547452(0x8d))/0x8)+parseInt(_0x547452(0x71))/0x9*(-parseInt(_0x547452(0x75))/0xa)+-parseInt(_0x547452(0x7a))/0xb*(-parseInt(_0x547452(0x83))/0xc);if(_0x23a7d1===_0x1870c6)break;else _0x30a92f['push'](_0x30a92f['shift']());}catch(_0x147efd){_0x30a92f['push'](_0x30a92f['shift']());}}}(a6_0x1165,0x43a80));function a6_0x1165(){const _0x4e6f25=['package.json','847930yshUgY','3311lLpREo','readFileSync','utf8','npm\x20install\x20','331247ptAHhY','sdk','version','750730ROYRko','test','58980nOIraQ','some','873164fuglux','node','devDependencies','1881960okpQpC','\x20\x20\x20Upgrade\x20command:\x20','minVersion','log','stableVersion','88UEFLif','parse','latest','existsSync','coerce','@lovrabet/sdk','\x1b[1m','needsUpgrade','18zaoWDp','3dmlVpC','1BbxbjF','all','61420Ccwmhx','join','dependencies'];a6_0x1165=function(){return _0x4e6f25;};return a6_0x1165();}import a6_0x3b9f54 from'node:fs';import a6_0x3fe43e from'node:path';import a6_0x24eb9f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x2bc537){const _0x4a127a=a6_0x4d75,_0x2bf6e1=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2bf6e1[_0x4a127a(0x84)](_0x1322e6=>_0x1322e6[_0x4a127a(0x82)](_0x2bc537));}function getInstalledVersion(_0x5c5751,_0x5c923b){const _0x445533=a6_0x4d75;try{const _0x241a9d=a6_0x3fe43e[_0x445533(0x76)](_0x5c5751,'node_modules',_0x5c923b,_0x445533(0x78));if(a6_0x3b9f54[_0x445533(0x90)](_0x241a9d)){const _0x1f8a6c=JSON['parse'](a6_0x3b9f54['readFileSync'](_0x241a9d,'utf-8'));return _0x1f8a6c[_0x445533(0x80)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5bcd7a=a6_0x4d75;try{const _0xaf1d20=await getCdnConfig();return _0xaf1d20?.[_0x5bcd7a(0x7f)]?.[_0x5bcd7a(0x86)]?.[_0x5bcd7a(0x8c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3c9b65=a6_0x4d75;try{const _0xcdcf21=await getCdnConfig();return _0xcdcf21?.[_0x3c9b65(0x7f)]?.['node']?.['packageName']||_0x3c9b65(0x92);}catch{return _0x3c9b65(0x92);}}export async function checkSdkVersion(_0x5712a8){const _0x2294ff=a6_0x4d75,_0x158763=a6_0x3fe43e[_0x2294ff(0x76)](_0x5712a8,_0x2294ff(0x78)),[_0x10b33f,_0x102862]=await Promise[_0x2294ff(0x74)]([getSdkStableVersion(),getSdkPackageName()]),_0x32d51b=_0x10b33f||FALLBACK_MIN_SDK_VERSION;if(!a6_0x3b9f54['existsSync'](_0x158763))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};try{const _0xa77ac2=JSON['parse'](a6_0x3b9f54['readFileSync'](_0x158763,_0x2294ff(0x7c))),_0x501c59=_0xa77ac2[_0x2294ff(0x77)]||{},_0x323479=_0xa77ac2['devDependencies']||{},_0x250f67=_0x501c59[_0x102862]||_0x323479[_0x102862];if(!_0x250f67)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};let _0x2d6019=getInstalledVersion(_0x5712a8,_0x102862);!_0x2d6019&&(_0x2d6019=_0x250f67);if(isNonNumericVersion(_0x250f67))return{'installed':!![],'version':_0x2d6019,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};const _0x4c862b=a6_0x24eb9f['coerce'](_0x2d6019),_0x4ce67a=a6_0x24eb9f[_0x2294ff(0x91)](_0x32d51b),_0x50a094=_0x4c862b&&_0x4ce67a?a6_0x24eb9f['lt'](_0x4c862b,_0x4ce67a):![];return{'installed':!![],'version':_0x2d6019,'needsUpgrade':_0x50a094,'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};}}function a6_0x4d75(_0x3ab128,_0x133711){_0x3ab128=_0x3ab128-0x70;const _0x11653c=a6_0x1165();let _0x4d7586=_0x11653c[_0x3ab128];return _0x4d7586;}export function checkSdkVersionSync(_0x3e4adc){const _0x2f0008=a6_0x4d75,_0x5616e9=a6_0x3fe43e[_0x2f0008(0x76)](_0x3e4adc,_0x2f0008(0x78)),_0x3b612e=_0x2f0008(0x92);if(!a6_0x3b9f54[_0x2f0008(0x90)](_0x5616e9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};try{const _0x205137=JSON[_0x2f0008(0x8e)](a6_0x3b9f54[_0x2f0008(0x7b)](_0x5616e9,_0x2f0008(0x7c))),_0x43d6b2=_0x205137[_0x2f0008(0x77)]||{},_0x53ac32=_0x205137[_0x2f0008(0x87)]||{},_0x41ecfd=_0x43d6b2[_0x3b612e]||_0x53ac32[_0x3b612e];if(!_0x41ecfd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};let _0x50b5fc=getInstalledVersion(_0x3e4adc,_0x3b612e);!_0x50b5fc&&(_0x50b5fc=_0x41ecfd);if(isNonNumericVersion(_0x41ecfd))return{'installed':!![],'version':_0x50b5fc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};const _0x2f9cd4=a6_0x24eb9f[_0x2f0008(0x91)](_0x50b5fc),_0xbf0a3=_0x2f9cd4?a6_0x24eb9f['lt'](_0x2f9cd4,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x50b5fc,'needsUpgrade':_0xbf0a3,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x11839b){const _0xa6e7af=a6_0x4d75;if(!_0x11839b[_0xa6e7af(0x70)])return;const _0x1edfea='\x1b[33m',_0x1b23d4='\x1b[0m',_0x4bfcf6=_0xa6e7af(0x93),_0x35baa8=_0x11839b['packageName']||_0xa6e7af(0x92),_0x24bc0e=_0x11839b[_0xa6e7af(0x8c)]||_0x11839b[_0xa6e7af(0x8a)],_0x3a691a=_0xa6e7af(0x7d)+_0x35baa8+'@'+(_0x24bc0e||_0xa6e7af(0x8f));console[_0xa6e7af(0x8b)](),console[_0xa6e7af(0x8b)](''+_0x1edfea+_0x4bfcf6+'↪\x20SDK\x20update\x20available'+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+'\x20\x20\x20Current\x20version:\x20'+_0x35baa8+'@'+_0x11839b[_0xa6e7af(0x80)]+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+'\x20\x20\x20Stable\x20version:\x20'+_0x24bc0e+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+_0xa6e7af(0x89)+_0x3a691a+_0x1b23d4),console[_0xa6e7af(0x8b)]();}
@@ -1 +1 @@
1
- (function(_0x10750b,_0xbf0cd){const _0x103906=a147_0x4ff3,_0x19f648=_0x10750b();while(!![]){try{const _0x18950f=parseInt(_0x103906(0xe2))/0x1+parseInt(_0x103906(0xd8))/0x2+parseInt(_0x103906(0xe8))/0x3*(-parseInt(_0x103906(0xd3))/0x4)+parseInt(_0x103906(0xd7))/0x5*(parseInt(_0x103906(0xe1))/0x6)+parseInt(_0x103906(0xe3))/0x7*(-parseInt(_0x103906(0xe6))/0x8)+-parseInt(_0x103906(0xde))/0x9*(-parseInt(_0x103906(0xe5))/0xa)+-parseInt(_0x103906(0xdc))/0xb;if(_0x18950f===_0xbf0cd)break;else _0x19f648['push'](_0x19f648['shift']());}catch(_0x3d948c){_0x19f648['push'](_0x19f648['shift']());}}}(a147_0xb49f,0x29199));function a147_0x4ff3(_0x563e0c,_0x8270e6){_0x563e0c=_0x563e0c-0xd1;const _0xb49f74=a147_0xb49f();let _0x4ff36a=_0xb49f74[_0x563e0c];return _0x4ff36a;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a147_0xb49f(){const _0x493aac=['26056giBSIg','some','6GmVFXf','stableVersion','needsUpgrade','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','../..','\x1b[33m','package.json','506036CxzKhg','currentVersion','log','parse','583820kABtdK','669320oXpxKu','test','version','\x20\x20\x20Stable\x20version:\x20','3036550cZqAhN','\x1b[0m','9wzpqSt','npm\x20install\x20-g\x20','utf-8','12JumqUI','112930LUlwvC','280EMEofz','1.0.0','1465750IhMwrj'];a147_0xb49f=function(){return _0x493aac;};return a147_0xb49f();}import{fileURLToPath}from'node:url';import a147_0x46fd0a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x44361b=a147_0x4ff3;try{const _0x4f5de2=fileURLToPath(import.meta.url),_0x2c8a36=resolve(dirname(_0x4f5de2),_0x44361b(0xed)),_0x370c79=resolve(_0x2c8a36,_0x44361b(0xd2)),_0x1cf01f=JSON[_0x44361b(0xd6)](readFileSync(_0x370c79,_0x44361b(0xe0)));return _0x1cf01f[_0x44361b(0xda)]||_0x44361b(0xe4);}catch{return _0x44361b(0xe4);}}function isNonNumericVersion(_0x34bbc7){const _0x5381ba=a147_0x4ff3,_0x8fc462=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x8fc462[_0x5381ba(0xe7)](_0x16b2f0=>_0x16b2f0[_0x5381ba(0xd9)](_0x34bbc7));}export async function checkCliVersion(){const _0x1b707c=a147_0x4ff3,_0x4d3e82=getCurrentCliVersion(),_0x417e5e=await getCdnConfig(),_0x36a643=_0x417e5e?.['cli']?.['stableVersion']||null;let _0x5f87f9=![];if(_0x36a643)try{const _0x396a6e=a147_0x46fd0a['coerce'](_0x4d3e82),_0xa5905f=a147_0x46fd0a[_0x1b707c(0xeb)](_0x36a643);_0x396a6e&&_0xa5905f&&(_0x5f87f9=a147_0x46fd0a['lt'](_0x396a6e,_0xa5905f));}catch{_0x5f87f9=![];}return{'currentVersion':_0x4d3e82,'stableVersion':_0x36a643,'needsUpgrade':_0x5f87f9,'isPreRelease':![]};}export function printCliUpgradeWarning(_0xb0a599){const _0x220417=a147_0x4ff3;if(!_0xb0a599[_0x220417(0xea)])return;const _0x5848d5=_0x220417(0xd1),_0x1203ac=_0x220417(0xdd),_0x2c9060='\x1b[1m',_0x472d09=_0x220417(0xdf)+NPM_PACKAGE_NAME+'@latest';console[_0x220417(0xd5)](),console[_0x220417(0xd5)](''+_0x5848d5+_0x2c9060+'↪\x20New\x20version\x20available'+_0x1203ac),console[_0x220417(0xd5)](_0x5848d5+_0x220417(0xec)+_0xb0a599[_0x220417(0xd4)]+_0x1203ac),console[_0x220417(0xd5)](_0x5848d5+_0x220417(0xdb)+_0xb0a599[_0x220417(0xe9)]+_0x1203ac),console['log'](_0x5848d5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x472d09+_0x1203ac),console[_0x220417(0xd5)]();}
1
+ function a16_0x4b4d(_0x324289,_0x3a2a00){_0x324289=_0x324289-0xfb;const _0x5ac181=a16_0x5ac1();let _0x4b4d08=_0x5ac181[_0x324289];return _0x4b4d08;}(function(_0x56a8c5,_0xcbc0d0){const _0x51dddf=a16_0x4b4d,_0x159bf8=_0x56a8c5();while(!![]){try{const _0x4f67b6=-parseInt(_0x51dddf(0x108))/0x1+-parseInt(_0x51dddf(0x112))/0x2*(-parseInt(_0x51dddf(0x109))/0x3)+parseInt(_0x51dddf(0x110))/0x4+parseInt(_0x51dddf(0x106))/0x5*(parseInt(_0x51dddf(0x111))/0x6)+-parseInt(_0x51dddf(0xff))/0x7*(parseInt(_0x51dddf(0x10e))/0x8)+parseInt(_0x51dddf(0x104))/0x9+-parseInt(_0x51dddf(0x113))/0xa;if(_0x4f67b6===_0xcbc0d0)break;else _0x159bf8['push'](_0x159bf8['shift']());}catch(_0x39cb7d){_0x159bf8['push'](_0x159bf8['shift']());}}}(a16_0x5ac1,0x820a9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a16_0x3b5b9f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x261e9c=a16_0x4b4d;try{const _0x27fcd3=fileURLToPath(import.meta.url),_0x37a494=resolve(dirname(_0x27fcd3),'../..'),_0x4b3d5e=resolve(_0x37a494,_0x261e9c(0x10c)),_0x157996=JSON[_0x261e9c(0xfe)](readFileSync(_0x4b3d5e,_0x261e9c(0x10d)));return _0x157996[_0x261e9c(0x103)]||_0x261e9c(0x105);}catch{return _0x261e9c(0x105);}}function isNonNumericVersion(_0xc1d463){const _0x2d621b=a16_0x4b4d,_0x117ad1=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x117ad1[_0x2d621b(0xfd)](_0x1619ae=>_0x1619ae[_0x2d621b(0x102)](_0xc1d463));}function a16_0x5ac1(){const _0x5ba846=['110dbSxCv','10665000HnjRim','\x1b[1m','npm\x20install\x20-g\x20','\x1b[0m','currentVersion','\x1b[33m','needsUpgrade','↪\x20New\x20version\x20available','log','some','parse','3668kofyNd','cli','@latest','test','version','7210323gtUwvF','1.0.0','3131515AzbaUS','\x20\x20\x20Stable\x20version:\x20','832234TzMfmK','46080TJLnfS','coerce','stableVersion','package.json','utf-8','4616QyPbfZ','\x20\x20\x20Upgrade\x20command:\x20','1845924yBBJmU','6ElrUFQ'];a16_0x5ac1=function(){return _0x5ba846;};return a16_0x5ac1();}export async function checkCliVersion(){const _0x6bed96=a16_0x4b4d,_0x3fadd8=getCurrentCliVersion(),_0x555e6=await getCdnConfig(),_0x3f7d3b=_0x555e6?.[_0x6bed96(0x100)]?.['stableVersion']||null;let _0x1deffa=![];if(_0x3f7d3b)try{const _0x4d7680=a16_0x3b5b9f[_0x6bed96(0x10a)](_0x3fadd8),_0x4bc693=a16_0x3b5b9f[_0x6bed96(0x10a)](_0x3f7d3b);_0x4d7680&&_0x4bc693&&(_0x1deffa=a16_0x3b5b9f['lt'](_0x4d7680,_0x4bc693));}catch{_0x1deffa=![];}return{'currentVersion':_0x3fadd8,'stableVersion':_0x3f7d3b,'needsUpgrade':_0x1deffa,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x26106e){const _0x313849=a16_0x4b4d;if(!_0x26106e[_0x313849(0x119)])return;const _0x4f38a9=_0x313849(0x118),_0x4d2f17=_0x313849(0x116),_0x5039bc=_0x313849(0x114),_0x27ee5f=_0x313849(0x115)+NPM_PACKAGE_NAME+_0x313849(0x101);console['log'](),console[_0x313849(0xfc)](''+_0x4f38a9+_0x5039bc+_0x313849(0xfb)+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x26106e[_0x313849(0x117)]+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+_0x313849(0x107)+_0x26106e[_0x313849(0x10b)]+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+_0x313849(0x10f)+_0x27ee5f+_0x4d2f17),console[_0x313849(0xfc)]();}
@@ -1 +1 @@
1
- (function(_0x4b8ce4,_0x4dd600){const _0x13f38b=a148_0x5409,_0x462c44=_0x4b8ce4();while(!![]){try{const _0x3e2897=-parseInt(_0x13f38b(0x1a1))/0x1+-parseInt(_0x13f38b(0x1a8))/0x2*(parseInt(_0x13f38b(0x19e))/0x3)+-parseInt(_0x13f38b(0x1a7))/0x4+-parseInt(_0x13f38b(0x1a2))/0x5*(-parseInt(_0x13f38b(0x1a5))/0x6)+parseInt(_0x13f38b(0x1a0))/0x7+parseInt(_0x13f38b(0x1a6))/0x8+-parseInt(_0x13f38b(0x1a4))/0x9;if(_0x3e2897===_0x4dd600)break;else _0x462c44['push'](_0x462c44['shift']());}catch(_0x18bfaa){_0x462c44['push'](_0x462c44['shift']());}}}(a148_0x1c71,0x2e3b1));function a148_0x1c71(){const _0x5484ac=['env','2432773oFdvYV','45396pTEizX','323995FUkCwO','string','2666763AIUpgr','12AUpKkL','2551712ixENll','383004KFCHLc','26yWMIak','39066KQuGia'];a148_0x1c71=function(){return _0x5484ac;};return a148_0x1c71();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a148_0x527cc8,getMultiAppConfigs as a148_0xd950e8,getTemplateBaseUrl as a148_0x12fc6e}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a148_0x5409(_0x26e45a,_0x30d3bd){_0x26e45a=_0x26e45a-0x19e;const _0x1c7193=a148_0x1c71();let _0x54090f=_0x1c7193[_0x26e45a];return _0x54090f;}export{isInProject}from'../context.js';export function readConfig(_0x1cfe9d){const _0x42aa57=a148_0x5409,_0x3a501f=readRawConfig(_0x1cfe9d);return _0x3a501f[_0x42aa57(0x19f)]&&typeof _0x3a501f[_0x42aa57(0x19f)]===_0x42aa57(0x1a3)&&initEnv(_0x3a501f[_0x42aa57(0x19f)]),_0x3a501f;}export function getConfigAppCode(){return a148_0x527cc8();}export function getMultiAppConfigs(_0x433fd9='project'){return a148_0xd950e8(_0x433fd9);}export function getTemplateBaseUrl(){return a148_0x12fc6e();}
1
+ const a8_0x4cf54f=a8_0x3750;function a8_0x4f8d(){const _0x344fcb=['464cmiDcs','1078448FbuJXd','env','2038230gJnOwQ','276862nRDnBj','900614ODYSbK','project','7265184jNJuqJ','5421mZJAJi','252pnZVIW','6614972Uuacku','string'];a8_0x4f8d=function(){return _0x344fcb;};return a8_0x4f8d();}(function(_0x1a2008,_0x678a0a){const _0x216256=a8_0x3750,_0x522b68=_0x1a2008();while(!![]){try{const _0x46db23=-parseInt(_0x216256(0x116))/0x1+parseInt(_0x216256(0x121))/0x2+-parseInt(_0x216256(0x119))/0x3*(-parseInt(_0x216256(0x11d))/0x4)+-parseInt(_0x216256(0x120))/0x5+-parseInt(_0x216256(0x118))/0x6+-parseInt(_0x216256(0x11b))/0x7+-parseInt(_0x216256(0x11e))/0x8*(-parseInt(_0x216256(0x11a))/0x9);if(_0x46db23===_0x678a0a)break;else _0x522b68['push'](_0x522b68['shift']());}catch(_0x361aa9){_0x522b68['push'](_0x522b68['shift']());}}}(a8_0x4f8d,0xa0c3b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a8_0x16e350,getMultiAppConfigs as a8_0x56edaf,getTemplateBaseUrl as a8_0x37a101}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a8_0x3750(_0x5801cb,_0x226a3a){_0x5801cb=_0x5801cb-0x116;const _0x4f8d0b=a8_0x4f8d();let _0x37507e=_0x4f8d0b[_0x5801cb];return _0x37507e;}export function readConfig(_0x36ff7b){const _0x5378d3=a8_0x3750,_0x109246=readRawConfig(_0x36ff7b);return _0x109246['env']&&typeof _0x109246['env']===_0x5378d3(0x11c)&&initEnv(_0x109246[_0x5378d3(0x11f)]),_0x109246;}export function getConfigAppCode(){return a8_0x16e350();}export function getMultiAppConfigs(_0x3ef59a=a8_0x4cf54f(0x117)){return a8_0x56edaf(_0x3ef59a);}export function getTemplateBaseUrl(){return a8_0x37a101();}
@@ -1 +1 @@
1
- function a149_0x2713(_0x94805e,_0x183b38){_0x94805e=_0x94805e-0x89;const _0x1afc3a=a149_0x1afc();let _0x2713a7=_0x1afc3a[_0x94805e];return _0x2713a7;}(function(_0x5de89c,_0xe609e4){const _0x3b1f00=a149_0x2713,_0x19a858=_0x5de89c();while(!![]){try{const _0x1e7e07=-parseInt(_0x3b1f00(0x89))/0x1+-parseInt(_0x3b1f00(0x91))/0x2*(-parseInt(_0x3b1f00(0x90))/0x3)+parseInt(_0x3b1f00(0x8c))/0x4*(-parseInt(_0x3b1f00(0x99))/0x5)+parseInt(_0x3b1f00(0x95))/0x6+-parseInt(_0x3b1f00(0x8d))/0x7*(-parseInt(_0x3b1f00(0x94))/0x8)+-parseInt(_0x3b1f00(0x8b))/0x9*(parseInt(_0x3b1f00(0x92))/0xa)+parseInt(_0x3b1f00(0x8a))/0xb;if(_0x1e7e07===_0xe609e4)break;else _0x19a858['push'](_0x19a858['shift']());}catch(_0x3f43e8){_0x19a858['push'](_0x19a858['shift']());}}}(a149_0x1afc,0x888d6));import a149_0x4282a0 from'node:path';import a149_0x2cd4b0 from'node:fs';export async function copyDirectory(_0x405509,_0x1a98a4){const _0x42f555=a149_0x2713;try{const _0x50fba2=a149_0x2cd4b0[_0x42f555(0x96)](_0x405509,{'withFileTypes':!![]});a149_0x2cd4b0[_0x42f555(0x8e)](_0x1a98a4,{'recursive':!![]});for(const _0x834192 of _0x50fba2){const _0x12300e=a149_0x4282a0[_0x42f555(0x97)](_0x405509,_0x834192[_0x42f555(0x93)]),_0x2bd67b=a149_0x4282a0['join'](_0x1a98a4,_0x834192[_0x42f555(0x93)]);_0x834192[_0x42f555(0x98)]()?await copyDirectory(_0x12300e,_0x2bd67b):a149_0x2cd4b0['copyFileSync'](_0x12300e,_0x2bd67b);}}catch(_0x43efe3){console[_0x42f555(0x8f)]('复制目录时出错:',_0x43efe3);}}function a149_0x1afc(){const _0x58f986=['join','isDirectory','5iiwHSN','17184SonDKE','10794399XmgGvH','9803583DotmqM','3871592qRAiYR','1479177TgKqvy','mkdirSync','error','232266RjJmoZ','6UQGAJf','10wVxzsy','name','40TlJJrp','2181342LMGnFs','readdirSync'];a149_0x1afc=function(){return _0x58f986;};return a149_0x1afc();}
1
+ function a9_0x980c(){const _0x5b9890=['45CyINHj','150VWFZjs','747912NDXAkd','name','2197013qtPNkR','2704312wuaKfh','6zQndUB','3UkFQCW','复制目录时出错:','631707mSqKhu','copyFileSync','join','656360axhAOS','2329280hwvYvT','436028SGdYKS'];a9_0x980c=function(){return _0x5b9890;};return a9_0x980c();}function a9_0xbca0(_0x399f34,_0x42c49d){_0x399f34=_0x399f34-0xd8;const _0x980c06=a9_0x980c();let _0xbca008=_0x980c06[_0x399f34];return _0xbca008;}(function(_0x3167cd,_0x48806e){const _0x1d871a=a9_0xbca0,_0x3490de=_0x3167cd();while(!![]){try{const _0x21a524=-parseInt(_0x1d871a(0xe5))/0x1+parseInt(_0x1d871a(0xdb))/0x2*(parseInt(_0x1d871a(0xe3))/0x3)+parseInt(_0x1d871a(0xe1))/0x4+parseInt(_0x1d871a(0xda))/0x5+-parseInt(_0x1d871a(0xe2))/0x6*(-parseInt(_0x1d871a(0xe0))/0x7)+-parseInt(_0x1d871a(0xd9))/0x8*(-parseInt(_0x1d871a(0xdc))/0x9)+parseInt(_0x1d871a(0xdd))/0xa*(-parseInt(_0x1d871a(0xde))/0xb);if(_0x21a524===_0x48806e)break;else _0x3490de['push'](_0x3490de['shift']());}catch(_0x15fd34){_0x3490de['push'](_0x3490de['shift']());}}}(a9_0x980c,0x6993d));import a9_0x5177ad from'node:path';import a9_0x57b84a from'node:fs';export async function copyDirectory(_0x4514cc,_0x587e8f){const _0x592c20=a9_0xbca0;try{const _0x1fc25b=a9_0x57b84a['readdirSync'](_0x4514cc,{'withFileTypes':!![]});a9_0x57b84a['mkdirSync'](_0x587e8f,{'recursive':!![]});for(const _0x26ae46 of _0x1fc25b){const _0x411513=a9_0x5177ad['join'](_0x4514cc,_0x26ae46['name']),_0x1f2f46=a9_0x5177ad[_0x592c20(0xd8)](_0x587e8f,_0x26ae46[_0x592c20(0xdf)]);_0x26ae46['isDirectory']()?await copyDirectory(_0x411513,_0x1f2f46):a9_0x57b84a[_0x592c20(0xe6)](_0x411513,_0x1f2f46);}}catch(_0x1b4b7d){console['error'](_0x592c20(0xe4),_0x1b4b7d);}}
@@ -1 +1 @@
1
- (function(_0x4d5731,_0x24417b){const _0x427e28=a150_0x1030,_0x183b86=_0x4d5731();while(!![]){try{const _0x39cc39=parseInt(_0x427e28(0xec))/0x1+parseInt(_0x427e28(0xf6))/0x2*(-parseInt(_0x427e28(0xf2))/0x3)+-parseInt(_0x427e28(0xf1))/0x4*(parseInt(_0x427e28(0xf5))/0x5)+-parseInt(_0x427e28(0xf7))/0x6*(parseInt(_0x427e28(0xef))/0x7)+parseInt(_0x427e28(0xe9))/0x8*(-parseInt(_0x427e28(0xee))/0x9)+parseInt(_0x427e28(0xed))/0xa+parseInt(_0x427e28(0xf3))/0xb*(parseInt(_0x427e28(0xf4))/0xc);if(_0x39cc39===_0x24417b)break;else _0x183b86['push'](_0x183b86['shift']());}catch(_0x491baf){_0x183b86['push'](_0x183b86['shift']());}}}(a150_0x81df,0x375e9));function a150_0x1030(_0x2557bf,_0x1738ab){_0x2557bf=_0x2557bf-0xe8;const _0x81df43=a150_0x81df();let _0x103036=_0x81df43[_0x2557bf];return _0x103036;}function a150_0x81df(){const _0x1cc6af=['3414790WoeSgw','13653zvIGzI','7aiPcsD','isFinite','703268vCYOSv','130671uCsTpA','9977LIEiaZ','7764imaZSX','5CPlLJD','2OINhjH','713892tylPLf','number','object','2320cmucRL','string','trim','76771COfATs'];a150_0x81df=function(){return _0x1cc6af;};return a150_0x81df();}function toFiniteNumber(_0x30d99e){const _0x4fc730=a150_0x1030;if(typeof _0x30d99e===_0x4fc730(0xf8)&&Number[_0x4fc730(0xf0)](_0x30d99e))return _0x30d99e;if(typeof _0x30d99e===_0x4fc730(0xea)){const _0x5d6eec=_0x30d99e[_0x4fc730(0xeb)]();if(!_0x5d6eec)return undefined;const _0x175203=Number(_0x5d6eec);if(Number[_0x4fc730(0xf0)](_0x175203))return _0x175203;}return undefined;}export function normalizeEntityWithIdResponse(_0x5d3965){const _0xfdfa11=a150_0x1030,_0x15af20=toFiniteNumber(_0x5d3965);if(_0x15af20!==undefined)return{'id':_0x15af20,'entity':{'id':_0x15af20}};if(!_0x5d3965||typeof _0x5d3965!==_0xfdfa11(0xe8))return{'id':undefined,'entity':{}};const _0x1f0a15={..._0x5d3965},_0x5c06ac=toFiniteNumber(_0x1f0a15['id']);return _0x5c06ac!==undefined&&(_0x1f0a15['id']=_0x5c06ac),{'id':_0x5c06ac,'entity':_0x1f0a15};}
1
+ function a5_0xca04(_0xaf959d,_0x196dce){_0xaf959d=_0xaf959d-0x105;const _0x2f6ee9=a5_0x2f6e();let _0xca04bd=_0x2f6ee9[_0xaf959d];return _0xca04bd;}(function(_0xa35c7f,_0x35d26f){const _0x17f8b6=a5_0xca04,_0x1e35c0=_0xa35c7f();while(!![]){try{const _0x514d60=-parseInt(_0x17f8b6(0x109))/0x1*(parseInt(_0x17f8b6(0x10d))/0x2)+-parseInt(_0x17f8b6(0x10b))/0x3+parseInt(_0x17f8b6(0x10c))/0x4*(-parseInt(_0x17f8b6(0x10e))/0x5)+parseInt(_0x17f8b6(0x110))/0x6+parseInt(_0x17f8b6(0x10a))/0x7+parseInt(_0x17f8b6(0x10f))/0x8+parseInt(_0x17f8b6(0x108))/0x9;if(_0x514d60===_0x35d26f)break;else _0x1e35c0['push'](_0x1e35c0['shift']());}catch(_0x2d2c49){_0x1e35c0['push'](_0x1e35c0['shift']());}}}(a5_0x2f6e,0x7b524));function a5_0x2f6e(){const _0x49ab3c=['12oORjXA','412pdnTwE','833045Osivjs','1808768OMFGil','3886320GsksIc','isFinite','number','trim','8802144iUisfZ','217PgMYBR','723751eDWxxr','2716716FUFbna'];a5_0x2f6e=function(){return _0x49ab3c;};return a5_0x2f6e();}function toFiniteNumber(_0x21621b){const _0x2ab9fa=a5_0xca04;if(typeof _0x21621b===_0x2ab9fa(0x106)&&Number[_0x2ab9fa(0x105)](_0x21621b))return _0x21621b;if(typeof _0x21621b==='string'){const _0x316e11=_0x21621b[_0x2ab9fa(0x107)]();if(!_0x316e11)return undefined;const _0x5c5f6f=Number(_0x316e11);if(Number['isFinite'](_0x5c5f6f))return _0x5c5f6f;}return undefined;}export function normalizeEntityWithIdResponse(_0x5096d5){const _0x7af933=toFiniteNumber(_0x5096d5);if(_0x7af933!==undefined)return{'id':_0x7af933,'entity':{'id':_0x7af933}};if(!_0x5096d5||typeof _0x5096d5!=='object')return{'id':undefined,'entity':{}};const _0x8f589e={..._0x5096d5},_0x48eeaf=toFiniteNumber(_0x8f589e['id']);return _0x48eeaf!==undefined&&(_0x8f589e['id']=_0x48eeaf),{'id':_0x48eeaf,'entity':_0x8f589e};}
@@ -1 +1 @@
1
- function a151_0x252c(){const _0x20f2ed=['6574CqymXS','1360373bHxoqv','isDirectory','11MAXIKG','8777940avhLrs','3783996zHrzxs','735928WsXVNM','13235YCtQKy','6mBKWjo','105qAjTjq','3655608KCgxCS','954gWGmlQ'];a151_0x252c=function(){return _0x20f2ed;};return a151_0x252c();}(function(_0x2b1fd2,_0x4b3c1c){const _0x52b7be=a151_0x2ada,_0x3c81fa=_0x2b1fd2();while(!![]){try{const _0x8cd6e=-parseInt(_0x52b7be(0x95))/0x1*(parseInt(_0x52b7be(0x98))/0x2)+-parseInt(_0x52b7be(0x94))/0x3*(-parseInt(_0x52b7be(0x9e))/0x4)+-parseInt(_0x52b7be(0x9f))/0x5*(-parseInt(_0x52b7be(0x97))/0x6)+-parseInt(_0x52b7be(0x99))/0x7+parseInt(_0x52b7be(0x96))/0x8+parseInt(_0x52b7be(0x9d))/0x9+-parseInt(_0x52b7be(0x9c))/0xa*(parseInt(_0x52b7be(0x9b))/0xb);if(_0x8cd6e===_0x4b3c1c)break;else _0x3c81fa['push'](_0x3c81fa['shift']());}catch(_0x586472){_0x3c81fa['push'](_0x3c81fa['shift']());}}}(a151_0x252c,0x3cc84));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a151_0x2ada(_0x8ecb4e,_0x56cf74){_0x8ecb4e=_0x8ecb4e-0x94;const _0x252c8f=a151_0x252c();let _0x2ada9c=_0x252c8f[_0x8ecb4e];return _0x2ada9c;}import{join}from'node:path';export async function copyDir(_0x3e17eb,_0x2defa1){const _0x4bdfbc=a151_0x2ada,_0x5588ef=statSync(_0x3e17eb);if(_0x5588ef[_0x4bdfbc(0x9a)]()){!existsSync(_0x2defa1)&&mkdirSync(_0x2defa1,{'recursive':!![]});const _0x18b419=readdirSync(_0x3e17eb);for(const _0x25480a of _0x18b419){await copyDir(join(_0x3e17eb,_0x25480a),join(_0x2defa1,_0x25480a));}}else copyFileSync(_0x3e17eb,_0x2defa1);}export function ensureDir(_0x5b2844){!existsSync(_0x5b2844)&&mkdirSync(_0x5b2844,{'recursive':!![]});}export function pathExists(_0x5cf324){return existsSync(_0x5cf324);}
1
+ function a18_0x49b9(){const _0x28ee28=['isDirectory','12VXOycX','115210SEhfsQ','2384851sXnIxA','2920ptgLTC','7434ifyzkr','167397xwSHca','15936oxOdgc','44pbmmSx','4268uGOTZB','6PwvZsH','1701040wmsCnq','2557185qAwpqM'];a18_0x49b9=function(){return _0x28ee28;};return a18_0x49b9();}(function(_0x3a890c,_0x472e36){const _0x1e081f=a18_0x1cb4,_0x24312c=_0x3a890c();while(!![]){try{const _0x4fa6e5=parseInt(_0x1e081f(0x73))/0x1*(parseInt(_0x1e081f(0x78))/0x2)+parseInt(_0x1e081f(0x6f))/0x3*(-parseInt(_0x1e081f(0x71))/0x4)+parseInt(_0x1e081f(0x75))/0x5+-parseInt(_0x1e081f(0x77))/0x6*(-parseInt(_0x1e081f(0x6c))/0x7)+parseInt(_0x1e081f(0x74))/0x8+parseInt(_0x1e081f(0x6e))/0x9*(-parseInt(_0x1e081f(0x6d))/0xa)+parseInt(_0x1e081f(0x72))/0xb*(-parseInt(_0x1e081f(0x70))/0xc);if(_0x4fa6e5===_0x472e36)break;else _0x24312c['push'](_0x24312c['shift']());}catch(_0x1ae797){_0x24312c['push'](_0x24312c['shift']());}}}(a18_0x49b9,0x5cfa6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a18_0x1cb4(_0x582dc2,_0x8cd0d1){_0x582dc2=_0x582dc2-0x6c;const _0x49b959=a18_0x49b9();let _0x1cb429=_0x49b959[_0x582dc2];return _0x1cb429;}import{join}from'node:path';export async function copyDir(_0x38253c,_0x4b2572){const _0x12b31d=a18_0x1cb4,_0x1787ea=statSync(_0x38253c);if(_0x1787ea[_0x12b31d(0x76)]()){!existsSync(_0x4b2572)&&mkdirSync(_0x4b2572,{'recursive':!![]});const _0x5166ef=readdirSync(_0x38253c);for(const _0x5378da of _0x5166ef){await copyDir(join(_0x38253c,_0x5378da),join(_0x4b2572,_0x5378da));}}else copyFileSync(_0x38253c,_0x4b2572);}export function ensureDir(_0x4cf3ae){!existsSync(_0x4cf3ae)&&mkdirSync(_0x4cf3ae,{'recursive':!![]});}export function pathExists(_0x57728f){return existsSync(_0x57728f);}
@@ -1 +1 @@
1
- const a152_0x5cc31c=a152_0x2e47;(function(_0x5e9007,_0x1d98dd){const _0x1cd535=a152_0x2e47,_0xe6c6c=_0x5e9007();while(!![]){try{const _0x164c9b=-parseInt(_0x1cd535(0x177))/0x1+-parseInt(_0x1cd535(0x16c))/0x2+-parseInt(_0x1cd535(0x16f))/0x3+-parseInt(_0x1cd535(0x163))/0x4*(-parseInt(_0x1cd535(0x176))/0x5)+-parseInt(_0x1cd535(0x173))/0x6+parseInt(_0x1cd535(0x179))/0x7*(parseInt(_0x1cd535(0x174))/0x8)+parseInt(_0x1cd535(0x16e))/0x9;if(_0x164c9b===_0x1d98dd)break;else _0xe6c6c['push'](_0xe6c6c['shift']());}catch(_0x42d5e2){_0xe6c6c['push'](_0xe6c6c['shift']());}}}(a152_0x544f,0x38766));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 _0x2b0589=a152_0x2e47,_0x484f20=getTemplateBaseUrl();return _0x484f20+_0x2b0589(0x160);}function a152_0x2e47(_0x21f64b,_0x51122e){_0x21f64b=_0x21f64b-0x15d;const _0x544fed=a152_0x544f();let _0x2e470f=_0x544fed[_0x21f64b];return _0x2e470f;}const CACHE_DIR=join(homedir(),'.lovrabet',a152_0x5cc31c(0x16d));export async function fetchGuidesFromCDN(){const _0x309ec7=a152_0x5cc31c,_0xb17164=getGuidesCdnUrl(),_0x4110b7=await fetch(_0xb17164,{'headers':{'Accept':'application/json'}});if(!_0x4110b7['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4110b7['status']+'\x20'+_0x4110b7[_0x309ec7(0x165)]);const _0x3ce314=await _0x4110b7['json']();if(!_0x3ce314[_0x309ec7(0x15e)]||typeof _0x3ce314[_0x309ec7(0x15e)]!==_0x309ec7(0x166))throw new Error('CDN\x20返回数据格式错误');return _0x3ce314;}export function writeGuidesToProject(_0x3b41e9,_0x5383c3,_0x4b7c29=a152_0x5cc31c(0x16b),_0x4caa7e){const _0xff9a51=a152_0x5cc31c,_0x542e8a=join(_0x5383c3,_0x4b7c29);mkdirSync(_0x542e8a,{'recursive':!![]});for(const [_0x1c84bc,_0x4bc444]of Object[_0xff9a51(0x15d)](_0x3b41e9['guides'])){let _0x5e5d2e=_0x4bc444[_0xff9a51(0x164)];_0x4bc444['lastUpdated']&&(_0x5e5d2e=appendUpdateTime(_0x5e5d2e,_0x4bc444[_0xff9a51(0x169)])),writeFileSync(join(_0x542e8a,_0x1c84bc+_0xff9a51(0x17d)),_0x5e5d2e,_0xff9a51(0x17c));}}export function appendUpdateTime(_0x51a9e6,_0x5af24d){const _0x269fdc=a152_0x5cc31c;return _0x51a9e6=_0x51a9e6[_0x269fdc(0x172)](/\n*>更新时间:.*$/m,''),_0x51a9e6[_0x269fdc(0x171)]()+(_0x269fdc(0x15f)+_0x5af24d);}export function getSkillTemplate(_0x18a8ce){const _0x3595cd=a152_0x5cc31c;return _0x18a8ce['skillTemplate']?.[_0x3595cd(0x164)]||'';}export function appendExtendContents(_0x2bdd7d,_0x29cfe1,_0x2e31a3){const _0x4cf961=a152_0x5cc31c,_0x3db337=[];for(const [,_0x1c2fab]of Object[_0x4cf961(0x15d)](_0x29cfe1[_0x4cf961(0x15e)])){_0x1c2fab[_0x4cf961(0x162)]&&_0x3db337[_0x4cf961(0x17a)](_0x1c2fab[_0x4cf961(0x162)][_0x4cf961(0x171)]());}if(_0x3db337[_0x4cf961(0x170)]===0x0)return _0x2bdd7d;return _0x2bdd7d[_0x4cf961(0x171)]()+'\x0a\x0a'+_0x3db337[_0x4cf961(0x167)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x195a75,_0x3568ee,_0x102d9f){const _0x1d2a5a=a152_0x5cc31c,_0x31515f=getSkillTemplate(_0x195a75);if(!_0x31515f)throw new Error(_0x1d2a5a(0x17b));const _0x308fe7=dirname(_0x3568ee);mkdirSync(_0x308fe7,{'recursive':!![]});let _0x2af2e0=_0x31515f[_0x1d2a5a(0x172)](/\{\{IDE_NAME\}\}/g,_0x102d9f);_0x2af2e0=appendExtendContents(_0x2af2e0,_0x195a75),_0x195a75[_0x1d2a5a(0x161)]['lastUpdated']&&(_0x2af2e0=appendUpdateTime(_0x2af2e0,_0x195a75[_0x1d2a5a(0x161)]['lastUpdated'])),writeFileSync(_0x3568ee,_0x2af2e0,_0x1d2a5a(0x17c));}export async function installGuides(_0x20f280){const _0x28955a=a152_0x5cc31c,_0x275790=await fetchGuidesFromCDN();return writeGuidesToProject(_0x275790,_0x20f280),Object[_0x28955a(0x16a)](_0x275790[_0x28955a(0x15e)])[_0x28955a(0x170)];}function a152_0x544f(){const _0x206b14=['113323pwcJia','push','CDN\x20数据中缺少\x20skillTemplate','utf-8','.md','entries','guides','\x0a\x0a>更新时间:','/skills/guides.json','skillTemplate','extendContent','4AmzEuu','content','statusText','object','join','map','lastUpdated','keys','.lovrabet/skill/guides','762586sScwpO','cache','10091070fgHlxy','837963PGdJhJ','length','trimEnd','replace','2574234umupOH','120QLBpor','path','28540deJWJK','48850ZreSrx','title'];a152_0x544f=function(){return _0x206b14;};return a152_0x544f();}export function getGuidesSummary(_0x2aaf6b){const _0x31c2aa=a152_0x5cc31c;return Object['entries'](_0x2aaf6b[_0x31c2aa(0x15e)])[_0x31c2aa(0x168)](([_0x53a6f4,_0x15a3a7])=>({'key':_0x53a6f4,'title':_0x15a3a7[_0x31c2aa(0x178)],'path':_0x15a3a7[_0x31c2aa(0x175)]}));}
1
+ const a15_0x1afdd4=a15_0x1f14;(function(_0x1eb003,_0x2b8a47){const _0x42b7e7=a15_0x1f14,_0x31edeb=_0x1eb003();while(!![]){try{const _0x4e3c9e=-parseInt(_0x42b7e7(0x183))/0x1+parseInt(_0x42b7e7(0x17a))/0x2*(-parseInt(_0x42b7e7(0x188))/0x3)+-parseInt(_0x42b7e7(0x17d))/0x4+-parseInt(_0x42b7e7(0x178))/0x5*(-parseInt(_0x42b7e7(0x18e))/0x6)+-parseInt(_0x42b7e7(0x185))/0x7+parseInt(_0x42b7e7(0x17e))/0x8*(-parseInt(_0x42b7e7(0x16e))/0x9)+parseInt(_0x42b7e7(0x193))/0xa*(parseInt(_0x42b7e7(0x18f))/0xb);if(_0x4e3c9e===_0x2b8a47)break;else _0x31edeb['push'](_0x31edeb['shift']());}catch(_0x5df62d){_0x31edeb['push'](_0x31edeb['shift']());}}}(a15_0x1ee2,0x457d3));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a15_0x1f14(_0x259594,_0x484595){_0x259594=_0x259594-0x16d;const _0x1ee2d6=a15_0x1ee2();let _0x1f1486=_0x1ee2d6[_0x259594];return _0x1f1486;}function getGuidesCdnUrl(){const _0x17c8e7=a15_0x1f14,_0x576c22=getTemplateBaseUrl();return _0x576c22+_0x17c8e7(0x191);}function a15_0x1ee2(){const _0x176b9f=['174XVJXEe','49863JkTMbv','CDN\x20请求失败:\x20','/skills/guides.json','statusText','2940dOsJwf','keys','27lYLcDc','extendContent','.md','join','.lovrabet/skill/guides','object','json','entries','.lovrabet','utf-8','16655KYbRhv','\x0a\x0a>更新时间:','166484TUvrix','map','guides','976304QoQEGn','574456vJTgMR','title','CDN\x20数据中缺少\x20skillTemplate','lastUpdated','skillTemplate','399811YTBZoD','cache','1414868IbjZOS','trimEnd','application/json','3TrnlZA','length','content','push','CDN\x20返回数据格式错误','replace'];a15_0x1ee2=function(){return _0x176b9f;};return a15_0x1ee2();}const CACHE_DIR=join(homedir(),a15_0x1afdd4(0x176),a15_0x1afdd4(0x184));export async function fetchGuidesFromCDN(){const _0x100d55=a15_0x1afdd4,_0x4fcce9=getGuidesCdnUrl(),_0x1da553=await fetch(_0x4fcce9,{'headers':{'Accept':_0x100d55(0x187)}});if(!_0x1da553['ok'])throw new Error(_0x100d55(0x190)+_0x1da553['status']+'\x20'+_0x1da553[_0x100d55(0x192)]);const _0x31dfa2=await _0x1da553[_0x100d55(0x174)]();if(!_0x31dfa2[_0x100d55(0x17c)]||typeof _0x31dfa2[_0x100d55(0x17c)]!==_0x100d55(0x173))throw new Error(_0x100d55(0x18c));return _0x31dfa2;}export function writeGuidesToProject(_0x4f8091,_0x2e678b,_0x3af184=a15_0x1afdd4(0x172),_0x4b7c0b){const _0x332ec=a15_0x1afdd4,_0x37f937=join(_0x2e678b,_0x3af184);mkdirSync(_0x37f937,{'recursive':!![]});for(const [_0x5324bb,_0x1360b0]of Object[_0x332ec(0x175)](_0x4f8091['guides'])){let _0x4f9fc5=_0x1360b0['content'];_0x1360b0[_0x332ec(0x181)]&&(_0x4f9fc5=appendUpdateTime(_0x4f9fc5,_0x1360b0['lastUpdated'])),writeFileSync(join(_0x37f937,_0x5324bb+_0x332ec(0x170)),_0x4f9fc5,_0x332ec(0x177));}}export function appendUpdateTime(_0x38861d,_0x5acd4a){const _0x3e4953=a15_0x1afdd4;return _0x38861d=_0x38861d['replace'](/\n*>更新时间:.*$/m,''),_0x38861d['trimEnd']()+(_0x3e4953(0x179)+_0x5acd4a);}export function getSkillTemplate(_0x2c8466){const _0x5ef028=a15_0x1afdd4;return _0x2c8466['skillTemplate']?.[_0x5ef028(0x18a)]||'';}export function appendExtendContents(_0x3008b2,_0x194dbc,_0x206114){const _0x52d623=a15_0x1afdd4,_0x313f38=[];for(const [,_0x591108]of Object[_0x52d623(0x175)](_0x194dbc['guides'])){_0x591108['extendContent']&&_0x313f38[_0x52d623(0x18b)](_0x591108[_0x52d623(0x16f)]['trimEnd']());}if(_0x313f38[_0x52d623(0x189)]===0x0)return _0x3008b2;return _0x3008b2[_0x52d623(0x186)]()+'\x0a\x0a'+_0x313f38[_0x52d623(0x171)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x410553,_0x47d952,_0xcf9a76){const _0x5adc68=a15_0x1afdd4,_0x43beda=getSkillTemplate(_0x410553);if(!_0x43beda)throw new Error(_0x5adc68(0x180));const _0x4623db=dirname(_0x47d952);mkdirSync(_0x4623db,{'recursive':!![]});let _0x9d3ee3=_0x43beda[_0x5adc68(0x18d)](/\{\{IDE_NAME\}\}/g,_0xcf9a76);_0x9d3ee3=appendExtendContents(_0x9d3ee3,_0x410553),_0x410553[_0x5adc68(0x182)][_0x5adc68(0x181)]&&(_0x9d3ee3=appendUpdateTime(_0x9d3ee3,_0x410553[_0x5adc68(0x182)][_0x5adc68(0x181)])),writeFileSync(_0x47d952,_0x9d3ee3,'utf-8');}export async function installGuides(_0x97a128){const _0x5a1caa=a15_0x1afdd4,_0x34b303=await fetchGuidesFromCDN();return writeGuidesToProject(_0x34b303,_0x97a128),Object[_0x5a1caa(0x16d)](_0x34b303['guides'])[_0x5a1caa(0x189)];}export function getGuidesSummary(_0x210b91){const _0xbc10cc=a15_0x1afdd4;return Object[_0xbc10cc(0x175)](_0x210b91[_0xbc10cc(0x17c)])[_0xbc10cc(0x17b)](([_0x448277,_0x22e56d])=>({'key':_0x448277,'title':_0x22e56d[_0xbc10cc(0x17f)],'path':_0x22e56d['path']}));}
@@ -1 +1 @@
1
- (function(_0x15544c,_0x4be1e8){const _0x2a2bba=a153_0x4376,_0x4318b9=_0x15544c();while(!![]){try{const _0xe23599=-parseInt(_0x2a2bba(0x1e7))/0x1*(-parseInt(_0x2a2bba(0x1da))/0x2)+parseInt(_0x2a2bba(0x1d9))/0x3+parseInt(_0x2a2bba(0x1e8))/0x4*(parseInt(_0x2a2bba(0x1ec))/0x5)+-parseInt(_0x2a2bba(0x1f0))/0x6*(-parseInt(_0x2a2bba(0x1ea))/0x7)+parseInt(_0x2a2bba(0x1db))/0x8*(parseInt(_0x2a2bba(0x1f1))/0x9)+-parseInt(_0x2a2bba(0x1e9))/0xa*(parseInt(_0x2a2bba(0x1eb))/0xb)+-parseInt(_0x2a2bba(0x1de))/0xc;if(_0xe23599===_0x4be1e8)break;else _0x4318b9['push'](_0x4318b9['shift']());}catch(_0x51ab1d){_0x4318b9['push'](_0x4318b9['shift']());}}}(a153_0x118b,0xaa4f8));export async function httpRequest(_0x1284f8,_0x1119e7={}){const _0x218fbb=a153_0x4376,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1119e7;let _0x21c607=null;for(let _0x4e1325=0x0;_0x4e1325<=retries;_0x4e1325++){try{const _0x5152f2=new AbortController(),_0x5827db=setTimeout(()=>_0x5152f2['abort'](),timeout),_0x3b127b=await fetch(_0x1284f8,{'headers':headers,'signal':_0x5152f2[_0x218fbb(0x1d6)]});clearTimeout(_0x5827db);let _0x565a0a;const _0x33fa85=_0x3b127b['headers'][_0x218fbb(0x1ed)](_0x218fbb(0x1d8));return _0x33fa85?.[_0x218fbb(0x1ef)](_0x218fbb(0x1e0))?_0x565a0a=await _0x3b127b[_0x218fbb(0x1e3)]():_0x565a0a=await _0x3b127b[_0x218fbb(0x1d5)](),{'ok':_0x3b127b['ok'],'status':_0x3b127b[_0x218fbb(0x1e6)],'statusText':_0x3b127b[_0x218fbb(0x1df)],'data':_0x565a0a,'headers':_0x3b127b['headers'],'url':_0x3b127b[_0x218fbb(0x1e1)],'text':()=>_0x3b127b[_0x218fbb(0x1d5)]()};}catch(_0x4ce62e){_0x21c607=_0x4ce62e instanceof Error?_0x4ce62e:new Error(String(_0x4ce62e));if(_0x4e1325===retries)break;if(shouldRetry(_0x4ce62e)){console[_0x218fbb(0x1e5)](_0x218fbb(0x1dd)+retryDelay+_0x218fbb(0x1e2)+(_0x4e1325+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x21c607||new Error(_0x218fbb(0x1e4));}function shouldRetry(_0x4c1a1d){const _0x35c069=a153_0x4376;if(_0x4c1a1d instanceof Error){if(_0x4c1a1d['name']===_0x35c069(0x1ee))return![];if(_0x4c1a1d['name']==='TypeError'&&_0x4c1a1d[_0x35c069(0x1d7)][_0x35c069(0x1ef)]('fetch'))return!![];if(_0x4c1a1d['message'][_0x35c069(0x1ef)]('ECONNRESET'))return!![];if(_0x4c1a1d[_0x35c069(0x1d7)][_0x35c069(0x1ef)](_0x35c069(0x1dc)))return![];}return![];}function sleep(_0x4c9d9f){return new Promise(_0x29c833=>setTimeout(_0x29c833,_0x4c9d9f));}function a153_0x4376(_0xa99d80,_0x1e7248){_0xa99d80=_0xa99d80-0x1d5;const _0x118bee=a153_0x118b();let _0x437624=_0x118bee[_0xa99d80];return _0x437624;}export function validateUrl(_0x4a2fef){try{return new URL(_0x4a2fef),!![];}catch{return![];}}function a153_0x118b(){const _0x49f32d=['application/json','url','ms\x20后进行第\x20','json','Request\x20failed','log','status','139bHVLJn','261576bVcRcz','4346380DfcymV','1001ZaBmxh','22TDdqeK','30irurGZ','get','AbortError','includes','546sEvDEJ','4905OQsdPt','text','signal','message','content-type','3296184yQzsLj','7604HxLdEg','18856zpdnVc','ENOTFOUND','*\x20请求失败,','21003360hESPLt','statusText'];a153_0x118b=function(){return _0x49f32d;};return a153_0x118b();}
1
+ (function(_0x16c3c4,_0x5a4ca5){const _0x439a40=a14_0x147d,_0x3a6817=_0x16c3c4();while(!![]){try{const _0x4454f5=-parseInt(_0x439a40(0x84))/0x1+-parseInt(_0x439a40(0x92))/0x2*(parseInt(_0x439a40(0x8b))/0x3)+-parseInt(_0x439a40(0x85))/0x4*(-parseInt(_0x439a40(0x8e))/0x5)+parseInt(_0x439a40(0x97))/0x6*(parseInt(_0x439a40(0x86))/0x7)+-parseInt(_0x439a40(0x87))/0x8+parseInt(_0x439a40(0x88))/0x9+parseInt(_0x439a40(0x8f))/0xa;if(_0x4454f5===_0x5a4ca5)break;else _0x3a6817['push'](_0x3a6817['shift']());}catch(_0x1e6108){_0x3a6817['push'](_0x3a6817['shift']());}}}(a14_0x4c84,0xbdb52));export async function httpRequest(_0x544815,_0x3e70e4={}){const _0x23fd55=a14_0x147d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3e70e4;let _0x784ebb=null;for(let _0x17d59a=0x0;_0x17d59a<=retries;_0x17d59a++){try{const _0x560109=new AbortController(),_0x5213b0=setTimeout(()=>_0x560109[_0x23fd55(0x9c)](),timeout),_0x58988a=await fetch(_0x544815,{'headers':headers,'signal':_0x560109[_0x23fd55(0x9a)]});clearTimeout(_0x5213b0);let _0x50e8be;const _0xaf1c8b=_0x58988a['headers'][_0x23fd55(0x83)]('content-type');return _0xaf1c8b?.[_0x23fd55(0x90)]('application/json')?_0x50e8be=await _0x58988a[_0x23fd55(0x94)]():_0x50e8be=await _0x58988a[_0x23fd55(0x9d)](),{'ok':_0x58988a['ok'],'status':_0x58988a['status'],'statusText':_0x58988a[_0x23fd55(0x98)],'data':_0x50e8be,'headers':_0x58988a[_0x23fd55(0x8c)],'url':_0x58988a[_0x23fd55(0x91)],'text':()=>_0x58988a[_0x23fd55(0x9d)]()};}catch(_0x123c8b){_0x784ebb=_0x123c8b instanceof Error?_0x123c8b:new Error(String(_0x123c8b));if(_0x17d59a===retries)break;if(shouldRetry(_0x123c8b)){console[_0x23fd55(0x95)]('*\x20请求失败,'+retryDelay+_0x23fd55(0x89)+(_0x17d59a+0x1)+_0x23fd55(0x9b)),await sleep(retryDelay);continue;}else break;}}throw _0x784ebb||new Error('Request\x20failed');}function a14_0x4c84(){const _0x4a9d87=['signal','\x20次重试...','abort','text','get','1085466yOnJVh','36IoJWyQ','1956493kbnSOg','9229072trRgCx','2563506WSVIEK','ms\x20后进行第\x20','name','12HDLPMj','headers','TypeError','788685bAcXDh','7386440wjvyya','includes','url','412232epCyhI','ECONNRESET','json','log','fetch','30zfrhZU','statusText','message'];a14_0x4c84=function(){return _0x4a9d87;};return a14_0x4c84();}function a14_0x147d(_0x39ab7f,_0x5306e0){_0x39ab7f=_0x39ab7f-0x83;const _0x4c849d=a14_0x4c84();let _0x147d01=_0x4c849d[_0x39ab7f];return _0x147d01;}function shouldRetry(_0x140e43){const _0x484d3d=a14_0x147d;if(_0x140e43 instanceof Error){if(_0x140e43[_0x484d3d(0x8a)]==='AbortError')return![];if(_0x140e43[_0x484d3d(0x8a)]===_0x484d3d(0x8d)&&_0x140e43[_0x484d3d(0x99)][_0x484d3d(0x90)](_0x484d3d(0x96)))return!![];if(_0x140e43['message']['includes'](_0x484d3d(0x93)))return!![];if(_0x140e43[_0x484d3d(0x99)][_0x484d3d(0x90)]('ENOTFOUND'))return![];}return![];}function sleep(_0x48c408){return new Promise(_0x13458f=>setTimeout(_0x13458f,_0x48c408));}export function validateUrl(_0x36bd76){try{return new URL(_0x36bd76),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x1d25a5,_0x43b7ba){const _0x52a06e=a154_0x32d3,_0x5695ca=_0x1d25a5();while(!![]){try{const _0x45b53d=parseInt(_0x52a06e(0x1d2))/0x1+-parseInt(_0x52a06e(0x1d7))/0x2*(parseInt(_0x52a06e(0x1d3))/0x3)+-parseInt(_0x52a06e(0x1d8))/0x4+-parseInt(_0x52a06e(0x1d1))/0x5*(parseInt(_0x52a06e(0x1db))/0x6)+-parseInt(_0x52a06e(0x1de))/0x7+-parseInt(_0x52a06e(0x1df))/0x8+parseInt(_0x52a06e(0x1d9))/0x9*(parseInt(_0x52a06e(0x1dd))/0xa);if(_0x45b53d===_0x43b7ba)break;else _0x5695ca['push'](_0x5695ca['shift']());}catch(_0xc8dd2a){_0x5695ca['push'](_0x5695ca['shift']());}}}(a154_0x3e41,0x6291b));function a154_0x32d3(_0x1f1cdc,_0x52ea21){_0x1f1cdc=_0x1f1cdc-0x1cf;const _0x3e411e=a154_0x3e41();let _0x32d3cb=_0x3e411e[_0x1f1cdc];return _0x32d3cb;}function env(_0x1f5c5f){return process.env[`RABETBASE_${_0x1f5c5f}`]||process.env[`LOVRABET_${_0x1f5c5f}`]||undefined;}export function isNonInteractive(_0x12bd52){const _0x4d52e5=a154_0x32d3;return!!(_0x12bd52[_0x4d52e5(0x1d4)]||_0x12bd52['ci']||env('CI')===_0x4d52e5(0x1cf)||process.env.CI===_0x4d52e5(0x1cf)||!process[_0x4d52e5(0x1d5)][_0x4d52e5(0x1d6)]||!isStdinRawModeSupported());}function a154_0x3e41(){const _0x1b896d=['242495Hcvriz','227541FofaDG','nonInteractive','stdout','isTTY','2ynjzlN','318856DcNSZy','81nqgZRp','isRaw','30vPmWcF','stdin','2329280oAdBLl','4643639hbsvKO','2925240GPzPdV','true','setRawMode','750515rqsjdL'];a154_0x3e41=function(){return _0x1b896d;};return a154_0x3e41();}function isStdinRawModeSupported(){const _0x3a99c6=a154_0x32d3;if(!process['stdin'][_0x3a99c6(0x1d6)])return![];try{const _0x413870=process['stdin'][_0x3a99c6(0x1da)];return process[_0x3a99c6(0x1dc)][_0x3a99c6(0x1d0)](!![]),process[_0x3a99c6(0x1dc)][_0x3a99c6(0x1d0)](_0x413870??![]),!![];}catch{return![];}}
1
+ (function(_0x2da442,_0x3d16e3){const _0x10f91d=a3_0x1d53,_0x199b27=_0x2da442();while(!![]){try{const _0x5224fc=parseInt(_0x10f91d(0xea))/0x1*(parseInt(_0x10f91d(0xe5))/0x2)+parseInt(_0x10f91d(0xde))/0x3*(parseInt(_0x10f91d(0xe1))/0x4)+parseInt(_0x10f91d(0xe3))/0x5*(parseInt(_0x10f91d(0xe9))/0x6)+-parseInt(_0x10f91d(0xe6))/0x7*(-parseInt(_0x10f91d(0xe7))/0x8)+-parseInt(_0x10f91d(0xeb))/0x9+-parseInt(_0x10f91d(0xdd))/0xa+-parseInt(_0x10f91d(0xe0))/0xb*(parseInt(_0x10f91d(0xdb))/0xc);if(_0x5224fc===_0x3d16e3)break;else _0x199b27['push'](_0x199b27['shift']());}catch(_0x13c047){_0x199b27['push'](_0x199b27['shift']());}}}(a3_0xee65,0xc6dcf));function a3_0x1d53(_0x5b0aad,_0x4596c4){_0x5b0aad=_0x5b0aad-0xdb;const _0xee6547=a3_0xee65();let _0x1d533b=_0xee6547[_0x5b0aad];return _0x1d533b;}function a3_0xee65(){const _0x3027a5=['4qUGpth','108591fEljjG','8kdAfpy','isRaw','127038bFgLtx','594827zrOkTp','11230425kBvzFP','931128YUUcpR','true','1844900hZGvSC','3mqBJJj','setRawMode','143XtqNBS','4983356bOUySq','stdin','190oOfKiL','stdout'];a3_0xee65=function(){return _0x3027a5;};return a3_0xee65();}function env(_0x23bd54){return process.env[`RABETBASE_${_0x23bd54}`]||process.env[`LOVRABET_${_0x23bd54}`]||undefined;}export function isNonInteractive(_0x1676e7){const _0x111596=a3_0x1d53;return!!(_0x1676e7['nonInteractive']||_0x1676e7['ci']||env('CI')===_0x111596(0xdc)||process.env.CI==='true'||!process[_0x111596(0xe4)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x577e97=a3_0x1d53;if(!process[_0x577e97(0xe2)]['isTTY'])return![];try{const _0x1e91d1=process[_0x577e97(0xe2)][_0x577e97(0xe8)];return process['stdin']['setRawMode'](!![]),process[_0x577e97(0xe2)][_0x577e97(0xdf)](_0x1e91d1??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a155_0x36d9b3=a155_0x5127;(function(_0x4add9d,_0x444733){const _0x355297=a155_0x5127,_0x53d13d=_0x4add9d();while(!![]){try{const _0x2ce2b1=parseInt(_0x355297(0xb4))/0x1*(-parseInt(_0x355297(0xd6))/0x2)+parseInt(_0x355297(0xdc))/0x3*(-parseInt(_0x355297(0xc5))/0x4)+-parseInt(_0x355297(0xdd))/0x5+-parseInt(_0x355297(0xc0))/0x6*(-parseInt(_0x355297(0xb7))/0x7)+parseInt(_0x355297(0xd2))/0x8*(parseInt(_0x355297(0xae))/0x9)+parseInt(_0x355297(0xd8))/0xa+-parseInt(_0x355297(0xc8))/0xb*(-parseInt(_0x355297(0xb6))/0xc);if(_0x2ce2b1===_0x444733)break;else _0x53d13d['push'](_0x53d13d['shift']());}catch(_0x5131b3){_0x53d13d['push'](_0x53d13d['shift']());}}}(a155_0x4dab,0x1bba9));import a155_0x4e6937 from'winston';function a155_0x5127(_0x35c2ae,_0x271618){_0x35c2ae=_0x35c2ae-0xad;const _0x4dab53=a155_0x4dab();let _0x51272e=_0x4dab53[_0x35c2ae];return _0x51272e;}import a155_0x50daeb from'node:fs';import a155_0x2facd8 from'node:path';class Logger{['winstonLogger'];[a155_0x36d9b3(0xe0)];[a155_0x36d9b3(0xbe)]='';constructor(){const _0x411512=a155_0x36d9b3;this[_0x411512(0xe0)]='';}[a155_0x36d9b3(0xb9)](_0x293205){const _0x3a805a=a155_0x36d9b3;this[_0x3a805a(0xbe)]=_0x293205;}['initWinstonLogger'](){const _0x1b14cb=a155_0x36d9b3,_0x441e9a=a155_0x2facd8['dirname'](this[_0x1b14cb(0xe0)]);!a155_0x50daeb[_0x1b14cb(0xe5)](_0x441e9a)&&a155_0x50daeb['mkdirSync'](_0x441e9a,{'recursive':!![]});const _0x5b78e9=a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xca)](a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xbf)](),a155_0x4e6937[_0x1b14cb(0xe1)][_0x1b14cb(0xd3)]({'stack':!![]}),a155_0x4e6937[_0x1b14cb(0xe1)]['printf'](_0x150618=>{const _0x5b9cfc=_0x1b14cb,_0x52896a={'timestamp':_0x150618['timestamp']||new Date()['toISOString'](),'level':_0x150618[_0x5b9cfc(0xad)]||'info','command':_0x150618[_0x5b9cfc(0xb0)]||_0x5b9cfc(0xcd),'rawCommand':_0x150618[_0x5b9cfc(0xcc)]||this['currentRawCommand']||undefined,'message':_0x150618['message']||'','duration':_0x150618[_0x5b9cfc(0xd9)]||undefined,'details':_0x150618[_0x5b9cfc(0xb2)]||undefined};return JSON[_0x5b9cfc(0xd7)](_0x52896a);}));this[_0x1b14cb(0xb5)]=a155_0x4e6937[_0x1b14cb(0xe3)]({'level':_0x1b14cb(0xb1),'format':_0x5b78e9,'transports':[new a155_0x4e6937[(_0x1b14cb(0xb3))][(_0x1b14cb(0xcf))]({'filename':this[_0x1b14cb(0xe0)],'level':_0x1b14cb(0xb1)})],'silent':![]}),a155_0x4e6937['addColors']({'success':_0x1b14cb(0xd4),'error':_0x1b14cb(0xdf),'warn':_0x1b14cb(0xe2),'info':'blue'});}[a155_0x36d9b3(0xbd)](_0x152e02){const _0x4781fd=a155_0x36d9b3;this['logFilePath']=a155_0x2facd8[_0x4781fd(0xc2)](_0x152e02,_0x4781fd(0xda)),this[_0x4781fd(0xb5)]&&this['winstonLogger'][_0x4781fd(0xd5)](),this['initWinstonLogger']();}[a155_0x36d9b3(0xb1)](_0x3fb62f,_0x41db7c,_0x58d6e5){const _0x30dcb9=a155_0x36d9b3;if(!this['logFilePath']||!this[_0x30dcb9(0xb5)])return;this[_0x30dcb9(0xb5)][_0x30dcb9(0xb1)](_0x41db7c,{'command':_0x3fb62f,'details':_0x58d6e5});}[a155_0x36d9b3(0xc1)](_0x5857d7,_0x46cc18,_0x33cabd,_0x43b829){const _0x3793c2=a155_0x36d9b3;if(!this[_0x3793c2(0xe0)]||!this[_0x3793c2(0xb5)])return;this['winstonLogger']['log'](_0x3793c2(0xb1),_0x46cc18,{'level':_0x3793c2(0xc1),'command':_0x5857d7,'duration':_0x33cabd,'details':_0x43b829});}[a155_0x36d9b3(0xd1)](_0x24b74c,_0x36ede4,_0x15bfc7){const _0x2cf2cb=a155_0x36d9b3;if(!this[_0x2cf2cb(0xe0)]||!this['winstonLogger'])return;this[_0x2cf2cb(0xb5)][_0x2cf2cb(0xd1)](_0x36ede4,{'command':_0x24b74c,'details':_0x15bfc7});}[a155_0x36d9b3(0xe4)](_0x416e38,_0x2d146f,_0x5a0a63){const _0x903904=a155_0x36d9b3;if(!this['logFilePath']||!this[_0x903904(0xb5)])return;this[_0x903904(0xb5)][_0x903904(0xe4)](_0x2d146f,{'command':_0x416e38,'details':_0x5a0a63});}async[a155_0x36d9b3(0xdb)](_0x480a95,_0x4fa6b7,_0x1bae67){const _0x4923c4=a155_0x36d9b3,_0x5f59fe=Date['now']();this[_0x4923c4(0xb1)](_0x480a95,_0x4923c4(0xde)+_0x4fa6b7);try{const _0x406891=await _0x1bae67(),_0x52e570=Date[_0x4923c4(0xc7)]()-_0x5f59fe;return this[_0x4923c4(0xc1)](_0x480a95,_0x4923c4(0xbc)+_0x4fa6b7,_0x52e570),_0x406891;}catch(_0x1d4441){const _0x41e692=Date[_0x4923c4(0xc7)]()-_0x5f59fe;this[_0x4923c4(0xd1)](_0x480a95,_0x4923c4(0xd0)+_0x4fa6b7,{'error':_0x1d4441 instanceof Error?_0x1d4441[_0x4923c4(0xc4)]:String(_0x1d4441),'duration':_0x41e692});throw _0x1d4441;}}['readLogs'](){const _0x3cb2f4=a155_0x36d9b3;try{if(!a155_0x50daeb[_0x3cb2f4(0xe5)](this[_0x3cb2f4(0xe0)]))return[];const _0x5a6675=a155_0x50daeb[_0x3cb2f4(0xc3)](this[_0x3cb2f4(0xe0)],'utf8');return _0x5a6675[_0x3cb2f4(0xce)]('\x0a')['filter'](_0x429c8e=>_0x429c8e['trim']())[_0x3cb2f4(0xb8)](_0x2e7bc7=>JSON['parse'](_0x2e7bc7));}catch(_0x548f8b){return console[_0x3cb2f4(0xe4)](_0x3cb2f4(0xba),_0x548f8b),[];}}[a155_0x36d9b3(0xaf)](){const _0x26d66f=a155_0x36d9b3;try{a155_0x50daeb[_0x26d66f(0xe5)](this['logFilePath'])&&a155_0x50daeb[_0x26d66f(0xc9)](this['logFilePath'],'',_0x26d66f(0xc6));}catch(_0x33f288){console[_0x26d66f(0xe4)](_0x26d66f(0xcb),_0x33f288);}}[a155_0x36d9b3(0xbb)](){const _0x454d8e=a155_0x36d9b3;return this[_0x454d8e(0xb5)];}}function a155_0x4dab(){const _0x58fdb7=['map','setRawCommand','Failed\x20to\x20read\x20logs:','getWinstonInstance','完成:\x20','setLogPath','currentRawCommand','timestamp','14322JpFhwV','success','join','readFileSync','message','4FQAhoo','utf8','now','11yEAhoc','writeFileSync','combine','Failed\x20to\x20clear\x20logs:','rawCommand','unknown','split','File','失败:\x20','error','3448VpNEoz','errors','green','clear','2yKsvbr','stringify','1434010Wnuwhc','duration','.lovrabet.log','logTask','418575HSsDhk','817660qRzbKS','开始执行:\x20','red','logFilePath','format','yellow','createLogger','warn','existsSync','level','2853oVcCdL','clearLogs','command','info','details','transports','23887IYdZPT','winstonLogger','1353036NdAVXF','140lMTdAm'];a155_0x4dab=function(){return _0x58fdb7;};return a155_0x4dab();}export const logger=new Logger();
1
+ const a2_0x251168=a2_0x1f8e;function a2_0x1f8e(_0x1a5977,_0x507fcc){_0x1a5977=_0x1a5977-0xcc;const _0x559a5f=a2_0x559a();let _0x1f8e90=_0x559a5f[_0x1a5977];return _0x1f8e90;}function a2_0x559a(){const _0x2e0105=['.lovrabet.log','existsSync','filter','File','clearLogs','readLogs','7038102DJUHIJ','timestamp','level','utf8','combine','6rQtHPi','createLogger','dirname','details','rawCommand','duration','trim','transports','green','winstonLogger','now','errors','format','stringify','message','585456CdiuuH','log','toISOString','1841938bAMRYX','initWinstonLogger','readFileSync','4994355IrAWAo','开始执行:\x20','warn','red','2313584LFEvJC','join','logFilePath','error','失败:\x20','info','command','currentRawCommand','split','yellow','success','Failed\x20to\x20read\x20logs:','setRawCommand','getWinstonInstance','8qmcIof','完成:\x20','blue','192380tOzGUy','writeFileSync','printf','9GdxPec','parse','mkdirSync','3889850rqAoeR'];a2_0x559a=function(){return _0x2e0105;};return a2_0x559a();}(function(_0xa00063,_0x2c2196){const _0x4a14b1=a2_0x1f8e,_0x24da6e=_0xa00063();while(!![]){try{const _0x360690=-parseInt(_0x4a14b1(0xfc))/0x1+parseInt(_0x4a14b1(0xe1))/0x2*(-parseInt(_0x4a14b1(0xd2))/0x3)+parseInt(_0x4a14b1(0xeb))/0x4+-parseInt(_0x4a14b1(0xe7))/0x5+parseInt(_0x4a14b1(0xcd))/0x6+-parseInt(_0x4a14b1(0xe4))/0x7*(-parseInt(_0x4a14b1(0xf9))/0x8)+parseInt(_0x4a14b1(0xff))/0x9*(parseInt(_0x4a14b1(0x102))/0xa);if(_0x360690===_0x2c2196)break;else _0x24da6e['push'](_0x24da6e['shift']());}catch(_0x1caee8){_0x24da6e['push'](_0x24da6e['shift']());}}}(a2_0x559a,0x99089));import a2_0x53e98d from'winston';import a2_0x51c630 from'node:fs';import a2_0x34df1d from'node:path';class Logger{[a2_0x251168(0xdb)];[a2_0x251168(0xed)];[a2_0x251168(0xf2)]='';constructor(){const _0x24da26=a2_0x251168;this[_0x24da26(0xed)]='';}[a2_0x251168(0xf7)](_0x28a78e){const _0x185bbd=a2_0x251168;this[_0x185bbd(0xf2)]=_0x28a78e;}[a2_0x251168(0xe5)](){const _0x53eb9c=a2_0x251168,_0x3fa7c4=a2_0x34df1d[_0x53eb9c(0xd4)](this[_0x53eb9c(0xed)]);!a2_0x51c630[_0x53eb9c(0x104)](_0x3fa7c4)&&a2_0x51c630[_0x53eb9c(0x101)](_0x3fa7c4,{'recursive':!![]});const _0x422909=a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xd1)](a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xce)](),a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xdd)]({'stack':!![]}),a2_0x53e98d['format'][_0x53eb9c(0xfe)](_0x4057e9=>{const _0x518e05=_0x53eb9c,_0x22e200={'timestamp':_0x4057e9[_0x518e05(0xce)]||new Date()[_0x518e05(0xe3)](),'level':_0x4057e9[_0x518e05(0xcf)]||'info','command':_0x4057e9[_0x518e05(0xf1)]||'unknown','rawCommand':_0x4057e9[_0x518e05(0xd6)]||this[_0x518e05(0xf2)]||undefined,'message':_0x4057e9[_0x518e05(0xe0)]||'','duration':_0x4057e9[_0x518e05(0xd7)]||undefined,'details':_0x4057e9[_0x518e05(0xd5)]||undefined};return JSON[_0x518e05(0xdf)](_0x22e200);}));this[_0x53eb9c(0xdb)]=a2_0x53e98d[_0x53eb9c(0xd3)]({'level':'info','format':_0x422909,'transports':[new a2_0x53e98d[(_0x53eb9c(0xd9))][(_0x53eb9c(0x106))]({'filename':this[_0x53eb9c(0xed)],'level':_0x53eb9c(0xf0)})],'silent':![]}),a2_0x53e98d['addColors']({'success':_0x53eb9c(0xda),'error':_0x53eb9c(0xea),'warn':_0x53eb9c(0xf4),'info':_0x53eb9c(0xfb)});}['setLogPath'](_0x113a00){const _0x4de74f=a2_0x251168;this[_0x4de74f(0xed)]=a2_0x34df1d[_0x4de74f(0xec)](_0x113a00,_0x4de74f(0x103)),this[_0x4de74f(0xdb)]&&this[_0x4de74f(0xdb)]['clear'](),this[_0x4de74f(0xe5)]();}[a2_0x251168(0xf0)](_0x4c4003,_0x18b2f2,_0x417f5a){const _0x581d4d=a2_0x251168;if(!this[_0x581d4d(0xed)]||!this['winstonLogger'])return;this[_0x581d4d(0xdb)]['info'](_0x18b2f2,{'command':_0x4c4003,'details':_0x417f5a});}['success'](_0x52ebf5,_0x4e194b,_0x3f18a1,_0xdc8807){const _0x3220e8=a2_0x251168;if(!this[_0x3220e8(0xed)]||!this[_0x3220e8(0xdb)])return;this[_0x3220e8(0xdb)][_0x3220e8(0xe2)]('info',_0x4e194b,{'level':_0x3220e8(0xf5),'command':_0x52ebf5,'duration':_0x3f18a1,'details':_0xdc8807});}[a2_0x251168(0xee)](_0x5c049c,_0x29e370,_0x10c79d){const _0x1878f9=a2_0x251168;if(!this[_0x1878f9(0xed)]||!this[_0x1878f9(0xdb)])return;this['winstonLogger'][_0x1878f9(0xee)](_0x29e370,{'command':_0x5c049c,'details':_0x10c79d});}[a2_0x251168(0xe9)](_0x2202a6,_0x331454,_0x294c53){const _0x45f4bd=a2_0x251168;if(!this[_0x45f4bd(0xed)]||!this['winstonLogger'])return;this['winstonLogger'][_0x45f4bd(0xe9)](_0x331454,{'command':_0x2202a6,'details':_0x294c53});}async['logTask'](_0x158671,_0x18335c,_0x38373b){const _0x2519ce=a2_0x251168,_0x3c1d2d=Date[_0x2519ce(0xdc)]();this[_0x2519ce(0xf0)](_0x158671,_0x2519ce(0xe8)+_0x18335c);try{const _0x25a0b0=await _0x38373b(),_0x3ed534=Date[_0x2519ce(0xdc)]()-_0x3c1d2d;return this[_0x2519ce(0xf5)](_0x158671,_0x2519ce(0xfa)+_0x18335c,_0x3ed534),_0x25a0b0;}catch(_0x28998e){const _0x518b5e=Date[_0x2519ce(0xdc)]()-_0x3c1d2d;this['error'](_0x158671,_0x2519ce(0xef)+_0x18335c,{'error':_0x28998e instanceof Error?_0x28998e[_0x2519ce(0xe0)]:String(_0x28998e),'duration':_0x518b5e});throw _0x28998e;}}[a2_0x251168(0xcc)](){const _0x2c7315=a2_0x251168;try{if(!a2_0x51c630['existsSync'](this[_0x2c7315(0xed)]))return[];const _0x4b3852=a2_0x51c630[_0x2c7315(0xe6)](this[_0x2c7315(0xed)],_0x2c7315(0xd0));return _0x4b3852[_0x2c7315(0xf3)]('\x0a')[_0x2c7315(0x105)](_0xd7b06d=>_0xd7b06d[_0x2c7315(0xd8)]())['map'](_0xc79653=>JSON[_0x2c7315(0x100)](_0xc79653));}catch(_0x40a644){return console[_0x2c7315(0xe9)](_0x2c7315(0xf6),_0x40a644),[];}}[a2_0x251168(0x107)](){const _0x3c5292=a2_0x251168;try{a2_0x51c630[_0x3c5292(0x104)](this[_0x3c5292(0xed)])&&a2_0x51c630[_0x3c5292(0xfd)](this[_0x3c5292(0xed)],'',_0x3c5292(0xd0));}catch(_0x20c021){console['warn']('Failed\x20to\x20clear\x20logs:',_0x20c021);}}[a2_0x251168(0xf8)](){const _0x15e7ac=a2_0x251168;return this[_0x15e7ac(0xdb)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a156_0x2524a4=a156_0x1f5f;(function(_0x3909c0,_0x21696a){const _0x596bca=a156_0x1f5f,_0x2f13ba=_0x3909c0();while(!![]){try{const _0x22c5bd=parseInt(_0x596bca(0x129))/0x1+parseInt(_0x596bca(0x124))/0x2+parseInt(_0x596bca(0x123))/0x3*(-parseInt(_0x596bca(0x127))/0x4)+parseInt(_0x596bca(0x12c))/0x5*(-parseInt(_0x596bca(0x126))/0x6)+-parseInt(_0x596bca(0x130))/0x7*(parseInt(_0x596bca(0x12f))/0x8)+parseInt(_0x596bca(0x128))/0x9*(parseInt(_0x596bca(0x12e))/0xa)+parseInt(_0x596bca(0x12a))/0xb;if(_0x22c5bd===_0x21696a)break;else _0x2f13ba['push'](_0x2f13ba['shift']());}catch(_0x69974e){_0x2f13ba['push'](_0x2f13ba['shift']());}}}(a156_0x2a58,0x5627b));export const isWindows=process[a156_0x2524a4(0x12d)]===a156_0x2524a4(0x12b);export function resolveNpmBin(_0x43b474){const _0x46258b=a156_0x2524a4;return isWindows?_0x43b474+_0x46258b(0x125):_0x43b474;}function a156_0x1f5f(_0x3f6dae,_0x306ea2){_0x3f6dae=_0x3f6dae-0x123;const _0x2a585b=a156_0x2a58();let _0x1f5f0c=_0x2a585b[_0x3f6dae];return _0x1f5f0c;}function a156_0x2a58(){const _0x33a870=['8372430VBiGmI','win32','1029475dsCxjn','platform','40ljDPCx','16KTInrR','1632617kzBlNf','144gEgqkr','559910hsrTIq','.cmd','6zFZaZC','51616fwQtoX','516951IfwQmj','373799DpqlRZ'];a156_0x2a58=function(){return _0x33a870;};return a156_0x2a58();}
1
+ function a17_0x30e7(){const _0xa23a28=['4sluxlp','3276175aCxKMH','875724jIdzDm','10XuZWqy','.cmd','6949646idivzJ','platform','756488PauTRP','6iVwlYL','81924NtahZK','win32','2964159mFyQzm','682900TEGwTe','15txhlgG'];a17_0x30e7=function(){return _0xa23a28;};return a17_0x30e7();}const a17_0x583ac8=a17_0x4124;(function(_0x28637a,_0xbabd9f){const _0x329044=a17_0x4124,_0x117833=_0x28637a();while(!![]){try{const _0x2da024=-parseInt(_0x329044(0x1dc))/0x1*(-parseInt(_0x329044(0x1e1))/0x2)+-parseInt(_0x329044(0x1d5))/0x3+-parseInt(_0x329044(0x1df))/0x4*(-parseInt(_0x329044(0x1e0))/0x5)+parseInt(_0x329044(0x1db))/0x6*(-parseInt(_0x329044(0x1e2))/0x7)+parseInt(_0x329044(0x1da))/0x8+parseInt(_0x329044(0x1de))/0x9*(-parseInt(_0x329044(0x1d6))/0xa)+parseInt(_0x329044(0x1d8))/0xb;if(_0x2da024===_0xbabd9f)break;else _0x117833['push'](_0x117833['shift']());}catch(_0x5069ef){_0x117833['push'](_0x117833['shift']());}}}(a17_0x30e7,0x4c6fe));function a17_0x4124(_0x2a7847,_0xddc59b){_0x2a7847=_0x2a7847-0x1d5;const _0x30e748=a17_0x30e7();let _0x4124e6=_0x30e748[_0x2a7847];return _0x4124e6;}export const isWindows=process[a17_0x583ac8(0x1d9)]===a17_0x583ac8(0x1dd);export function resolveNpmBin(_0x36ddc2){const _0x504619=a17_0x583ac8;return isWindows?_0x36ddc2+_0x504619(0x1d7):_0x36ddc2;}
@@ -1 +1 @@
1
- (function(_0x6a0613,_0x4daaa7){const _0x6b9649=a157_0xebc3,_0x16fdc2=_0x6a0613();while(!![]){try{const _0xaca212=-parseInt(_0x6b9649(0x168))/0x1*(parseInt(_0x6b9649(0x169))/0x2)+-parseInt(_0x6b9649(0x172))/0x3+parseInt(_0x6b9649(0x164))/0x4+parseInt(_0x6b9649(0x16a))/0x5+-parseInt(_0x6b9649(0x166))/0x6+parseInt(_0x6b9649(0x16f))/0x7*(parseInt(_0x6b9649(0x171))/0x8)+parseInt(_0x6b9649(0x170))/0x9*(parseInt(_0x6b9649(0x16c))/0xa);if(_0xaca212===_0x4daaa7)break;else _0x16fdc2['push'](_0x16fdc2['shift']());}catch(_0xb08032){_0x16fdc2['push'](_0x16fdc2['shift']());}}}(a157_0x119a,0x3ab30));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a157_0x119a(){const _0x5f235b=['.cursor/rules','application/json','576009tUlEHE','45rRmWMc','16ArzMAy','958728VTpDqs','statusText','content','catch','utf-8','108448cakHFZ','lastUpdated','1531980HDWmMt','lovrabet_rules.mdc','538YuVNeL','446ExUIsW','2219155MqxEKD','status','599590tIyCTo'];a157_0x119a=function(){return _0x5f235b;};return a157_0x119a();}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 _0x1b746a=getTemplateBaseUrl();return _0x1b746a+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2ebc77=a157_0xebc3,_0x3d3a42=getRulesCdnUrl(),_0xb10919=await fetch(_0x3d3a42,{'headers':{'Accept':_0x2ebc77(0x16e)}});if(!_0xb10919['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xb10919[_0x2ebc77(0x16b)]+'\x20'+_0xb10919[_0x2ebc77(0x173)]);const _0x8c1e9b=await _0xb10919['json']();if(!_0x8c1e9b[_0x2ebc77(0x174)]||typeof _0x8c1e9b[_0x2ebc77(0x174)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x8c1e9b;}function a157_0xebc3(_0xdb8026,_0x2c5531){_0xdb8026=_0xdb8026-0x164;const _0x119afb=a157_0x119a();let _0xebc3d7=_0x119afb[_0xdb8026];return _0xebc3d7;}export async function getRulesContent(){const _0x3de944=a157_0xebc3;try{const _0x214c94=await fetchRulesFromCDN();return _0x214c94[_0x3de944(0x174)];}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(_0x5edbe2){const _0x278845=a157_0xebc3,_0x37e243=await fetchRulesFromCDN()[_0x278845(0x175)](()=>null);let _0x590e40;_0x37e243?(_0x590e40=_0x37e243[_0x278845(0x174)],_0x37e243[_0x278845(0x165)]&&(_0x590e40=appendUpdateTime(_0x590e40,_0x37e243[_0x278845(0x165)]))):_0x590e40=readLocalTemplate();const _0x496c85=dirname(_0x5edbe2);!existsSync(_0x496c85)&&mkdirSync(_0x496c85,{'recursive':!![]}),writeFileSync(_0x5edbe2,_0x590e40,_0x278845(0x176));}export async function copyRulesToCursor(_0xa915b0){const _0x316357=a157_0xebc3,_0x579158=join(_0xa915b0,_0x316357(0x16d)),_0x5a722c=join(_0x579158,_0x316357(0x167));if(existsSync(_0x5a722c))return![];return await writeRulesFile(_0x5a722c),!![];}export async function copyRulesToAgentsMd(_0x57cf1d){const _0x1196fa=join(_0x57cf1d,'agents.md');if(existsSync(_0x1196fa))return![];return await writeRulesFile(_0x1196fa),!![];}
1
+ (function(_0x55fe5f,_0x3ea5b9){const _0x32dd72=a19_0x3d94,_0x22ab94=_0x55fe5f();while(!![]){try{const _0x516249=parseInt(_0x32dd72(0x1e5))/0x1*(-parseInt(_0x32dd72(0x1e6))/0x2)+-parseInt(_0x32dd72(0x1e3))/0x3+parseInt(_0x32dd72(0x1e7))/0x4+parseInt(_0x32dd72(0x1e8))/0x5*(parseInt(_0x32dd72(0x1da))/0x6)+parseInt(_0x32dd72(0x1db))/0x7*(-parseInt(_0x32dd72(0x1dd))/0x8)+-parseInt(_0x32dd72(0x1f0))/0x9*(parseInt(_0x32dd72(0x1ed))/0xa)+parseInt(_0x32dd72(0x1e4))/0xb*(parseInt(_0x32dd72(0x1f1))/0xc);if(_0x516249===_0x3ea5b9)break;else _0x22ab94['push'](_0x22ab94['shift']());}catch(_0x121632){_0x22ab94['push'](_0x22ab94['shift']());}}}(a19_0x3b73,0x18ae1));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 _0x3e9764=a19_0x3d94,_0x4b5de9=getTemplateBaseUrl();return _0x4b5de9+_0x3e9764(0x1de);}function a19_0x3d94(_0x23e7d6,_0x24ee9e){_0x23e7d6=_0x23e7d6-0x1da;const _0x3b7334=a19_0x3b73();let _0x3d9435=_0x3b7334[_0x23e7d6];return _0x3d9435;}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x432442=a19_0x3d94,_0x1c68e3=getRulesCdnUrl(),_0x229ac5=await fetch(_0x1c68e3,{'headers':{'Accept':'application/json'}});if(!_0x229ac5['ok'])throw new Error(_0x432442(0x1dc)+_0x229ac5[_0x432442(0x1eb)]+'\x20'+_0x229ac5[_0x432442(0x1ee)]);const _0xdbfedf=await _0x229ac5['json']();if(!_0xdbfedf[_0x432442(0x1e9)]||typeof _0xdbfedf['content']!=='string')throw new Error(_0x432442(0x1e0));return _0xdbfedf;}function a19_0x3b73(){const _0x56f28c=['773144BhMTZt','/rules/rules.json','catch','CDN\x20返回数据格式错误','lovrabet_rules.mdc','lastUpdated','477117eSMqtP','60467nGDtxU','12527oTAdMT','2vqDtNu','470132TkZOCc','55405yBoKhX','content','utf-8','status','本地模板文件不存在:\x20','80KdMVKs','statusText','agents.md','206289VcvsNB','708EdQCXC','60bRfwtp','7MgzpSX','CDN\x20请求失败:\x20'];a19_0x3b73=function(){return _0x56f28c;};return a19_0x3b73();}export async function getRulesContent(){const _0x4b19ad=a19_0x3d94;try{const _0x2b2305=await fetchRulesFromCDN();return _0x2b2305[_0x4b19ad(0x1e9)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x50cb9f=a19_0x3d94;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x50cb9f(0x1ea));throw new Error(_0x50cb9f(0x1ec)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1ebaed){const _0x449bdc=a19_0x3d94,_0x455c5=await fetchRulesFromCDN()[_0x449bdc(0x1df)](()=>null);let _0x119170;_0x455c5?(_0x119170=_0x455c5[_0x449bdc(0x1e9)],_0x455c5[_0x449bdc(0x1e2)]&&(_0x119170=appendUpdateTime(_0x119170,_0x455c5[_0x449bdc(0x1e2)]))):_0x119170=readLocalTemplate();const _0x300f3d=dirname(_0x1ebaed);!existsSync(_0x300f3d)&&mkdirSync(_0x300f3d,{'recursive':!![]}),writeFileSync(_0x1ebaed,_0x119170,_0x449bdc(0x1ea));}export async function copyRulesToCursor(_0x27279c){const _0xf116f5=a19_0x3d94,_0x4dc37b=join(_0x27279c,'.cursor/rules'),_0x529b86=join(_0x4dc37b,_0xf116f5(0x1e1));if(existsSync(_0x529b86))return![];return await writeRulesFile(_0x529b86),!![];}export async function copyRulesToAgentsMd(_0x995cd7){const _0x10bbbf=a19_0x3d94,_0x1dc519=join(_0x995cd7,_0x10bbbf(0x1ef));if(existsSync(_0x1dc519))return![];return await writeRulesFile(_0x1dc519),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x4c3671){return new Promise(_0x47ef27=>setTimeout(_0x47ef27,_0x4c3671));}
1
+ export function sleep(_0x31456f){return new Promise(_0x1d30cb=>setTimeout(_0x1d30cb,_0x31456f));}
@@ -1 +1 @@
1
- function a159_0x3721(){const _0x2bf31f=['开始处理模板内容替换','toComponentName','replaceContent','getHours','tableName','readFile','push','endsWith','slice','.js','alias','success','161502ovENeQ','alias:\x20\x22','error','charAt','\x20},','processFile','readdir','join','api','formatLocalTimestamp','default','copyFile','.scss','writeFile','135imVifL','toUpperCase','.ts','pop','now','template','name','9546720qwTXTc','.tpl','pad','map','.json','模板内容替换完成','getMonth','mkdir','toLowerCase','226CVGFon','YourModel','6594FixBis','isFile','name:\x20\x22','.jsx','1847TWJsgf','1554XyRnEH','模板内容替换失败','toISOString','padStart','4565080BYSqml','processTemplate','replace','550576RxtmPH','getSeconds','split','processDirectory','promises','.tsx','9KPaKvl','450RMtrfb','68208LHjrUn','utf8'];a159_0x3721=function(){return _0x2bf31f;};return a159_0x3721();}const a159_0x3bbeda=a159_0x58d8;function a159_0x58d8(_0x3d9690,_0x21b048){_0x3d9690=_0x3d9690-0x1e0;const _0x3721cc=a159_0x3721();let _0x58d8f6=_0x3721cc[_0x3d9690];return _0x58d8f6;}(function(_0x1f0077,_0x5922ee){const _0x2f8154=a159_0x58d8,_0x4ea638=_0x1f0077();while(!![]){try{const _0x2ea244=-parseInt(_0x2f8154(0x21a))/0x1*(-parseInt(_0x2f8154(0x214))/0x2)+parseInt(_0x2f8154(0x204))/0x3*(parseInt(_0x2f8154(0x1e8))/0x4)+-parseInt(_0x2f8154(0x21f))/0x5+parseInt(_0x2f8154(0x21b))/0x6*(parseInt(_0x2f8154(0x216))/0x7)+parseInt(_0x2f8154(0x1e0))/0x8*(parseInt(_0x2f8154(0x1e6))/0x9)+parseInt(_0x2f8154(0x1e7))/0xa*(-parseInt(_0x2f8154(0x1f6))/0xb)+parseInt(_0x2f8154(0x20b))/0xc;if(_0x2ea244===_0x5922ee)break;else _0x4ea638['push'](_0x4ea638['shift']());}catch(_0x49613a){_0x4ea638['push'](_0x4ea638['shift']());}}}(a159_0x3721,0x7caf1));import a159_0x9f274 from'node:fs';import a159_0x4dc330 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a159_0x3bbeda(0x20d)](_0x202587){const _0x5d806b=a159_0x3bbeda;return String(_0x202587)[_0x5d806b(0x21e)](0x2,'0');}static[a159_0x3bbeda(0x1ff)](_0x5e4f1e){const _0x1c0b62=a159_0x3bbeda,_0x35d36c=_0x5e4f1e['getFullYear'](),_0xde2ae6=this[_0x1c0b62(0x20d)](_0x5e4f1e[_0x1c0b62(0x211)]()+0x1),_0x213d02=this[_0x1c0b62(0x20d)](_0x5e4f1e['getDate']()),_0x31fc5b=this[_0x1c0b62(0x20d)](_0x5e4f1e[_0x1c0b62(0x1ed)]()),_0x29c37d=this[_0x1c0b62(0x20d)](_0x5e4f1e['getMinutes']()),_0x4fac27=this[_0x1c0b62(0x20d)](_0x5e4f1e[_0x1c0b62(0x1e1)]());return{'createdAt':_0x35d36c+'-'+_0xde2ae6+'-'+_0x213d02+'\x20'+_0x31fc5b+':'+_0x29c37d+':'+_0x4fac27,'createdDate':_0x35d36c+'-'+_0xde2ae6+'-'+_0x213d02,'createdTime':_0x31fc5b+':'+_0x29c37d+':'+_0x4fac27};}static[a159_0x3bbeda(0x1eb)](_0x3cdf45){const _0x58918d=a159_0x3bbeda,_0x454e6e=_0x3cdf45[_0x58918d(0x1e2)]('/')[_0x58918d(0x207)]()||_0x3cdf45;return _0x454e6e['split']('-')[_0x58918d(0x20e)](_0x5a2adf=>_0x5a2adf[_0x58918d(0x1f9)](0x0)[_0x58918d(0x205)]()+_0x5a2adf[_0x58918d(0x1f2)](0x1)[_0x58918d(0x213)]())[_0x58918d(0x1fd)]('');}static['toDisplayTitle'](_0x5814f2){const _0x40c0aa=a159_0x3bbeda,_0x4983ff=_0x5814f2[_0x40c0aa(0x1e2)]('/')[_0x40c0aa(0x207)]()||_0x5814f2;return _0x4983ff[_0x40c0aa(0x1e2)]('-')[_0x40c0aa(0x20e)](_0x19fff3=>_0x19fff3['charAt'](0x0)[_0x40c0aa(0x205)]()+_0x19fff3[_0x40c0aa(0x1f2)](0x1)[_0x40c0aa(0x213)]())['join']('\x20');}static[a159_0x3bbeda(0x1ec)](_0x1a915e,_0x2c8db0,_0x1ed41f){const _0x46089b=a159_0x3bbeda,_0x1a2dcb=this[_0x46089b(0x1eb)](_0x2c8db0),_0x485ab8=this['toDisplayTitle'](_0x2c8db0),{createdAt:_0x36621e,createdDate:_0x1f4502,createdTime:_0x290d0d}=this[_0x46089b(0x1ff)](new Date());let _0x3942ab=_0x1a915e[_0x46089b(0x221)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x1a2dcb)[_0x46089b(0x221)](/\{DisplayTitle\}/g,_0x485ab8)['replace'](/\{PageName\}/g,_0x2c8db0)[_0x46089b(0x221)](/\{TemplateName\}/g,_0x1ed41f)[_0x46089b(0x221)](/\{CreatedAt\}/g,_0x36621e)['replace'](/\{CreatedDate\}/g,_0x1f4502)[_0x46089b(0x221)](/\{CreatedTime\}/g,_0x290d0d);return _0x3942ab;}static['replaceApiContent'](_0x2ec96e,_0x3d370a,_0x5eb374,_0x96bf21,_0x349bbd,_0x1492a9,_0x1a44c6,_0x41159e){const _0x13f443=a159_0x3bbeda,_0x12f703=new Date(),_0x43f7cb=_0x12f703[_0x13f443(0x21d)](),_0x2e0a71=_0x5eb374[_0x13f443(0x20e)](_0x121be4=>{const _0x48fb0a=_0x13f443,_0x4bfc09=['datasetCode:\x20\x22'+_0x121be4['datasetCode']+'\x22','tableName:\x20\x22'+_0x121be4[_0x48fb0a(0x1ee)]+'\x22',_0x48fb0a(0x218)+_0x121be4[_0x48fb0a(0x20a)]+'\x22'];return _0x121be4[_0x48fb0a(0x1f4)]&&_0x4bfc09[_0x48fb0a(0x1f0)](_0x48fb0a(0x1f7)+_0x121be4[_0x48fb0a(0x1f4)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x4bfc09[_0x48fb0a(0x1fd)](',\x20')+_0x48fb0a(0x1fa);})[_0x13f443(0x1fd)](''),_0x29acac=_0x96bf21||_0x5eb374[0x0]?.[_0x13f443(0x1f4)]||_0x13f443(0x215);let _0x3915e8=_0x2ec96e[_0x13f443(0x221)](/\{AppCode\}/g,_0x3d370a)[_0x13f443(0x221)](/\{ModelConfigs\}/g,_0x2e0a71)[_0x13f443(0x221)](/\{ExampleModelName\}/g,_0x29acac)[_0x13f443(0x221)](/\{ApiFileName\}/g,_0x349bbd||_0x13f443(0x1fe))[_0x13f443(0x221)](/\{ConfigName\}/g,_0x1492a9||_0x13f443(0x200))[_0x13f443(0x221)](/\{ClientConfigParam\}/g,_0x1a44c6||'')[_0x13f443(0x221)](/\{VarPrefix\}/g,_0x41159e||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x43f7cb);return _0x3915e8;}static async[a159_0x3bbeda(0x220)](_0x223944,_0x313c34,_0x4da0d8,_0x30eaf5,_0x46c028=!![]){const _0x455787=a159_0x3bbeda,_0x28c79a=Date[_0x455787(0x208)]();try{_0x46c028&&logger['info'](_0x455787(0x209),_0x455787(0x1ea),{'templatePath':_0x223944,'targetPath':_0x313c34,'pageName':_0x4da0d8,'templateName':_0x30eaf5});await a159_0x9f274[_0x455787(0x1e4)][_0x455787(0x212)](_0x313c34,{'recursive':!![]}),await this[_0x455787(0x1e3)](_0x223944,_0x313c34,_0x4da0d8,_0x30eaf5);if(_0x46c028){const _0x2c66c7=Date['now']()-_0x28c79a;logger[_0x455787(0x1f5)]('template',_0x455787(0x210),_0x2c66c7,{'pageName':_0x4da0d8,'templateName':_0x30eaf5});}}catch(_0xdf6faf){if(_0x46c028){const _0x3ff728=Date[_0x455787(0x208)]()-_0x28c79a;logger[_0x455787(0x1f8)](_0x455787(0x209),_0x455787(0x21c),{'templatePath':_0x223944,'targetPath':_0x313c34,'pageName':_0x4da0d8,'templateName':_0x30eaf5,'error':_0xdf6faf instanceof Error?_0xdf6faf['message']:String(_0xdf6faf),'duration':_0x3ff728});}throw _0xdf6faf;}}static async[a159_0x3bbeda(0x1e3)](_0x2f1830,_0x58d896,_0x4526e7,_0x1e3ccd){const _0x162667=a159_0x3bbeda,_0x3c2b1f=await a159_0x9f274[_0x162667(0x1e4)][_0x162667(0x1fc)](_0x2f1830,{'withFileTypes':!![]});for(const _0xc53ee1 of _0x3c2b1f){const _0xbb9ce4=a159_0x4dc330[_0x162667(0x1fd)](_0x2f1830,_0xc53ee1[_0x162667(0x20a)]);let _0x528196=a159_0x4dc330['join'](_0x58d896,_0xc53ee1['name']);_0xc53ee1[_0x162667(0x20a)]['endsWith']('.tpl')&&(_0x528196=a159_0x4dc330[_0x162667(0x1fd)](_0x58d896,_0xc53ee1['name'][_0x162667(0x221)](/\.tpl$/,'')));if(_0xc53ee1['isDirectory']())await a159_0x9f274[_0x162667(0x1e4)]['mkdir'](_0x528196,{'recursive':!![]}),await this[_0x162667(0x1e3)](_0xbb9ce4,_0x528196,_0x4526e7,_0x1e3ccd);else _0xc53ee1[_0x162667(0x217)]()&&await this[_0x162667(0x1fb)](_0xbb9ce4,_0x528196,_0x4526e7,_0x1e3ccd);}}static async[a159_0x3bbeda(0x1fb)](_0x29f52a,_0x30691c,_0x5e7f34,_0x1de8f6){const _0x149f8a=a159_0x3bbeda,_0x5ef2b9=a159_0x4dc330['extname'](_0x29f52a)[_0x149f8a(0x213)]();_0x29f52a['endsWith'](_0x149f8a(0x20c))&&(_0x30691c=_0x30691c[_0x149f8a(0x221)](/\.tpl$/,''));const _0x216e27=[_0x149f8a(0x1e5),_0x149f8a(0x206),_0x149f8a(0x219),_0x149f8a(0x1f3),_0x149f8a(0x20f),'.md','.css',_0x149f8a(0x202),'.tpl'];if(_0x216e27['includes'](_0x5ef2b9)||_0x29f52a[_0x149f8a(0x1f1)]('.tpl')){const _0x2a601f=await a159_0x9f274[_0x149f8a(0x1e4)][_0x149f8a(0x1ef)](_0x29f52a,_0x149f8a(0x1e9)),_0x9dc873=this[_0x149f8a(0x1ec)](_0x2a601f,_0x5e7f34,_0x1de8f6);await a159_0x9f274[_0x149f8a(0x1e4)][_0x149f8a(0x203)](_0x30691c,_0x9dc873,_0x149f8a(0x1e9));}else await a159_0x9f274[_0x149f8a(0x1e4)][_0x149f8a(0x201)](_0x29f52a,_0x30691c);}}
1
+ const a7_0x1b5381=a7_0x5b15;(function(_0x545400,_0x546915){const _0x4638f4=a7_0x5b15,_0x58f89c=_0x545400();while(!![]){try{const _0x5ac94e=parseInt(_0x4638f4(0x1b2))/0x1*(parseInt(_0x4638f4(0x198))/0x2)+parseInt(_0x4638f4(0x1cb))/0x3*(-parseInt(_0x4638f4(0x1ae))/0x4)+parseInt(_0x4638f4(0x1bf))/0x5+-parseInt(_0x4638f4(0x19a))/0x6*(parseInt(_0x4638f4(0x1b5))/0x7)+parseInt(_0x4638f4(0x1c3))/0x8*(parseInt(_0x4638f4(0x1a5))/0x9)+-parseInt(_0x4638f4(0x19d))/0xa*(-parseInt(_0x4638f4(0x1c8))/0xb)+parseInt(_0x4638f4(0x1b0))/0xc;if(_0x5ac94e===_0x546915)break;else _0x58f89c['push'](_0x58f89c['shift']());}catch(_0x490ef0){_0x58f89c['push'](_0x58f89c['shift']());}}}(a7_0x4b5f,0xee8d0));function a7_0x5b15(_0x1a0bae,_0x4e4f85){_0x1a0bae=_0x1a0bae-0x18d;const _0x4b5fed=a7_0x4b5f();let _0x5b1560=_0x4b5fed[_0x1a0bae];return _0x5b1560;}import a7_0x5aa1bc from'node:fs';import a7_0x1af889 from'node:path';function a7_0x4b5f(){const _0x1ba8b2=['toUpperCase','.json','alias','slice','writeFile','pop','readFile','LOVRABET','toLowerCase','api','map','message','template','.tpl','pad','\x0a\x20\x20\x20\x20{\x20','processDirectory','getHours','.jsx','padStart','processFile','datasetCode','1324WOYIpE','extname','12KlrvUa','now','mkdir','2385210GxuFAe','.tsx','includes','info','tableName','name','join','\x20},','139419ImPojG','开始处理模板内容替换','.scss','模板内容替换失败','formatLocalTimestamp','tableName:\x20\x22','alias:\x20\x22','replaceContent','getFullYear','26132uKJbHX','getMonth','1916136MPoWJs','模板内容替换完成','1945vgVKWZ','.css','copyFile','2843869iABBef','YourModel','replaceApiContent','name:\x20\x22','success','.md','toComponentName','promises','error','replace','5084260JNUGFF','endsWith','split','.ts','48Ejagja','utf8','getSeconds','toISOString','toDisplayTitle','33QoUtXp','getDate','isFile','681OxgXde'];a7_0x4b5f=function(){return _0x1ba8b2;};return a7_0x4b5f();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a7_0x1b5381(0x190)](_0x1904aa){const _0x23cad1=a7_0x1b5381;return String(_0x1904aa)[_0x23cad1(0x195)](0x2,'0');}static[a7_0x1b5381(0x1a9)](_0x2faa50){const _0x1ac7d9=a7_0x1b5381,_0x102b4e=_0x2faa50[_0x1ac7d9(0x1ad)](),_0x7bb6f3=this['pad'](_0x2faa50[_0x1ac7d9(0x1af)]()+0x1),_0x1ba677=this[_0x1ac7d9(0x190)](_0x2faa50[_0x1ac7d9(0x1c9)]()),_0x39d33c=this[_0x1ac7d9(0x190)](_0x2faa50[_0x1ac7d9(0x193)]()),_0x1fd73c=this[_0x1ac7d9(0x190)](_0x2faa50['getMinutes']()),_0x299468=this['pad'](_0x2faa50[_0x1ac7d9(0x1c5)]());return{'createdAt':_0x102b4e+'-'+_0x7bb6f3+'-'+_0x1ba677+'\x20'+_0x39d33c+':'+_0x1fd73c+':'+_0x299468,'createdDate':_0x102b4e+'-'+_0x7bb6f3+'-'+_0x1ba677,'createdTime':_0x39d33c+':'+_0x1fd73c+':'+_0x299468};}static[a7_0x1b5381(0x1bb)](_0x40d1f3){const _0xcf29e2=a7_0x1b5381,_0x10f9ff=_0x40d1f3[_0xcf29e2(0x1c1)]('/')[_0xcf29e2(0x1d1)]()||_0x40d1f3;return _0x10f9ff['split']('-')[_0xcf29e2(0x1d6)](_0x2e99ce=>_0x2e99ce['charAt'](0x0)['toUpperCase']()+_0x2e99ce[_0xcf29e2(0x1cf)](0x1)[_0xcf29e2(0x1d4)]())[_0xcf29e2(0x1a3)]('');}static[a7_0x1b5381(0x1c7)](_0x1384b0){const _0x579d09=a7_0x1b5381,_0x1368cb=_0x1384b0['split']('/')[_0x579d09(0x1d1)]()||_0x1384b0;return _0x1368cb['split']('-')[_0x579d09(0x1d6)](_0xd0b4ec=>_0xd0b4ec['charAt'](0x0)[_0x579d09(0x1cc)]()+_0xd0b4ec['slice'](0x1)['toLowerCase']())['join']('\x20');}static[a7_0x1b5381(0x1ac)](_0x85219,_0xd9c0e4,_0x273694){const _0x200143=a7_0x1b5381,_0x2c23f3=this[_0x200143(0x1bb)](_0xd9c0e4),_0x4c3806=this[_0x200143(0x1c7)](_0xd9c0e4),{createdAt:_0x37a2a1,createdDate:_0x46467a,createdTime:_0x5e6b90}=this[_0x200143(0x1a9)](new Date());let _0x3b4279=_0x85219['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x2c23f3)[_0x200143(0x1be)](/\{DisplayTitle\}/g,_0x4c3806)[_0x200143(0x1be)](/\{PageName\}/g,_0xd9c0e4)[_0x200143(0x1be)](/\{TemplateName\}/g,_0x273694)[_0x200143(0x1be)](/\{CreatedAt\}/g,_0x37a2a1)[_0x200143(0x1be)](/\{CreatedDate\}/g,_0x46467a)[_0x200143(0x1be)](/\{CreatedTime\}/g,_0x5e6b90);return _0x3b4279;}static[a7_0x1b5381(0x1b7)](_0x2ed87b,_0x2b8a7a,_0x6bf9b9,_0x58a440,_0x478b33,_0xf04f59,_0x5d6d64,_0x499d49){const _0x576d9a=a7_0x1b5381,_0x110701=new Date(),_0x4806ad=_0x110701[_0x576d9a(0x1c6)](),_0x4b512b=_0x6bf9b9[_0x576d9a(0x1d6)](_0x278cfd=>{const _0x111748=_0x576d9a,_0x4ee3ea=['datasetCode:\x20\x22'+_0x278cfd[_0x111748(0x197)]+'\x22',_0x111748(0x1aa)+_0x278cfd[_0x111748(0x1a1)]+'\x22',_0x111748(0x1b8)+_0x278cfd['name']+'\x22'];return _0x278cfd[_0x111748(0x1ce)]&&_0x4ee3ea['push'](_0x111748(0x1ab)+_0x278cfd[_0x111748(0x1ce)]+'\x22'),_0x111748(0x191)+_0x4ee3ea[_0x111748(0x1a3)](',\x20')+_0x111748(0x1a4);})[_0x576d9a(0x1a3)](''),_0x36c0b5=_0x58a440||_0x6bf9b9[0x0]?.[_0x576d9a(0x1ce)]||_0x576d9a(0x1b6);let _0x108851=_0x2ed87b['replace'](/\{AppCode\}/g,_0x2b8a7a)[_0x576d9a(0x1be)](/\{ModelConfigs\}/g,_0x4b512b)[_0x576d9a(0x1be)](/\{ExampleModelName\}/g,_0x36c0b5)['replace'](/\{ApiFileName\}/g,_0x478b33||_0x576d9a(0x1d5))[_0x576d9a(0x1be)](/\{ConfigName\}/g,_0xf04f59||'default')[_0x576d9a(0x1be)](/\{ClientConfigParam\}/g,_0x5d6d64||'')['replace'](/\{VarPrefix\}/g,_0x499d49||_0x576d9a(0x1d3))[_0x576d9a(0x1be)](/\{CreatedAt\}/g,_0x4806ad);return _0x108851;}static async['processTemplate'](_0x272036,_0x1ffc56,_0x133506,_0x2830cc,_0x176153=!![]){const _0x366350=a7_0x1b5381,_0x158931=Date[_0x366350(0x19b)]();try{_0x176153&&logger[_0x366350(0x1a0)](_0x366350(0x18e),_0x366350(0x1a6),{'templatePath':_0x272036,'targetPath':_0x1ffc56,'pageName':_0x133506,'templateName':_0x2830cc});await a7_0x5aa1bc['promises']['mkdir'](_0x1ffc56,{'recursive':!![]}),await this[_0x366350(0x192)](_0x272036,_0x1ffc56,_0x133506,_0x2830cc);if(_0x176153){const _0x117766=Date[_0x366350(0x19b)]()-_0x158931;logger[_0x366350(0x1b9)](_0x366350(0x18e),_0x366350(0x1b1),_0x117766,{'pageName':_0x133506,'templateName':_0x2830cc});}}catch(_0x59bab6){if(_0x176153){const _0x242a95=Date[_0x366350(0x19b)]()-_0x158931;logger[_0x366350(0x1bd)](_0x366350(0x18e),_0x366350(0x1a8),{'templatePath':_0x272036,'targetPath':_0x1ffc56,'pageName':_0x133506,'templateName':_0x2830cc,'error':_0x59bab6 instanceof Error?_0x59bab6[_0x366350(0x18d)]:String(_0x59bab6),'duration':_0x242a95});}throw _0x59bab6;}}static async['processDirectory'](_0x23c6e2,_0x4188f3,_0xdda36d,_0x189558){const _0x1c0e48=a7_0x1b5381,_0x2c25d9=await a7_0x5aa1bc['promises']['readdir'](_0x23c6e2,{'withFileTypes':!![]});for(const _0xf46474 of _0x2c25d9){const _0x1ac10b=a7_0x1af889[_0x1c0e48(0x1a3)](_0x23c6e2,_0xf46474[_0x1c0e48(0x1a2)]);let _0x56cce8=a7_0x1af889[_0x1c0e48(0x1a3)](_0x4188f3,_0xf46474['name']);_0xf46474[_0x1c0e48(0x1a2)][_0x1c0e48(0x1c0)]('.tpl')&&(_0x56cce8=a7_0x1af889[_0x1c0e48(0x1a3)](_0x4188f3,_0xf46474[_0x1c0e48(0x1a2)][_0x1c0e48(0x1be)](/\.tpl$/,'')));if(_0xf46474['isDirectory']())await a7_0x5aa1bc[_0x1c0e48(0x1bc)][_0x1c0e48(0x19c)](_0x56cce8,{'recursive':!![]}),await this[_0x1c0e48(0x192)](_0x1ac10b,_0x56cce8,_0xdda36d,_0x189558);else _0xf46474[_0x1c0e48(0x1ca)]()&&await this[_0x1c0e48(0x196)](_0x1ac10b,_0x56cce8,_0xdda36d,_0x189558);}}static async[a7_0x1b5381(0x196)](_0x21f041,_0x17cb6b,_0xdabc14,_0x5bd4f4){const _0x590247=a7_0x1b5381,_0x18d1ac=a7_0x1af889[_0x590247(0x199)](_0x21f041)[_0x590247(0x1d4)]();_0x21f041[_0x590247(0x1c0)](_0x590247(0x18f))&&(_0x17cb6b=_0x17cb6b[_0x590247(0x1be)](/\.tpl$/,''));const _0x19e790=[_0x590247(0x19e),_0x590247(0x1c2),_0x590247(0x194),'.js',_0x590247(0x1cd),_0x590247(0x1ba),_0x590247(0x1b3),_0x590247(0x1a7),_0x590247(0x18f)];if(_0x19e790[_0x590247(0x19f)](_0x18d1ac)||_0x21f041[_0x590247(0x1c0)](_0x590247(0x18f))){const _0x13c430=await a7_0x5aa1bc[_0x590247(0x1bc)][_0x590247(0x1d2)](_0x21f041,_0x590247(0x1c4)),_0x53e1fe=this[_0x590247(0x1ac)](_0x13c430,_0xdabc14,_0x5bd4f4);await a7_0x5aa1bc[_0x590247(0x1bc)][_0x590247(0x1d0)](_0x17cb6b,_0x53e1fe,_0x590247(0x1c4));}else await a7_0x5aa1bc[_0x590247(0x1bc)][_0x590247(0x1b4)](_0x21f041,_0x17cb6b);}}
@@ -1 +1 @@
1
- function a160_0x57d9(_0x1db086,_0x534c23){_0x1db086=_0x1db086-0xaa;var _0x229d3f=a160_0x229d();var _0x57d979=_0x229d3f[_0x1db086];return _0x57d979;}(function(_0x4d9134,_0xe4cca0){var _0x377806=a160_0x57d9,_0x4ad9bc=_0x4d9134();while(!![]){try{var _0x37f087=parseInt(_0x377806(0xae))/0x1+parseInt(_0x377806(0xac))/0x2*(-parseInt(_0x377806(0xb2))/0x3)+parseInt(_0x377806(0xaf))/0x4+parseInt(_0x377806(0xab))/0x5+parseInt(_0x377806(0xb0))/0x6*(parseInt(_0x377806(0xad))/0x7)+-parseInt(_0x377806(0xaa))/0x8+-parseInt(_0x377806(0xb1))/0x9;if(_0x37f087===_0xe4cca0)break;else _0x4ad9bc['push'](_0x4ad9bc['shift']());}catch(_0x3ff22f){_0x4ad9bc['push'](_0x4ad9bc['shift']());}}}(a160_0x229d,0x9c4a9));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a160_0x229d(){var _0x2d75be=['1773420TxYJgI','554202LYyDuU','19906731JvmnOf','648678TZwZyt','1763592gcwBJU','3150895HHIKKR','2ytQuiA','91wGQYbY','1014398HIEusO'];a160_0x229d=function(){return _0x2d75be;};return a160_0x229d();}
1
+ (function(_0x45dfe8,_0x29e3e8){var _0x115c76=a11_0x5c6f,_0x3387bc=_0x45dfe8();while(!![]){try{var _0x2e9a8c=parseInt(_0x115c76(0x1f4))/0x1*(parseInt(_0x115c76(0x1f0))/0x2)+-parseInt(_0x115c76(0x1f1))/0x3+-parseInt(_0x115c76(0x1f7))/0x4*(-parseInt(_0x115c76(0x1f3))/0x5)+parseInt(_0x115c76(0x1ef))/0x6+-parseInt(_0x115c76(0x1f2))/0x7+parseInt(_0x115c76(0x1f5))/0x8+-parseInt(_0x115c76(0x1f6))/0x9;if(_0x2e9a8c===_0x29e3e8)break;else _0x3387bc['push'](_0x3387bc['shift']());}catch(_0x234f38){_0x3387bc['push'](_0x3387bc['shift']());}}}(a11_0x17af,0x5af23));function a11_0x5c6f(_0xac09fd,_0x2f4b69){_0xac09fd=_0xac09fd-0x1ef;var _0x17af53=a11_0x17af();var _0x5c6f91=_0x17af53[_0xac09fd];return _0x5c6f91;}function a11_0x17af(){var _0x1ece9b=['4673389odobaW','35275KbgWre','1mTJgRn','2938904EzBIgm','2070963dEuIsA','24PiAqDj','2400180NyLGKl','1171000hXQHdh','374922dbNwzG'];a11_0x17af=function(){return _0x1ece9b;};return a11_0x17af();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}