@lovrabet/rabetbase-cli 2.0.13 → 2.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +2 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.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/doc.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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote.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 -0
  53. package/lib/commands/db/analyze-start.js +1 -0
  54. package/lib/commands/db/analyze-status.js +1 -0
  55. package/lib/commands/db/create.js +1 -0
  56. package/lib/commands/db/delete.js +1 -0
  57. package/lib/commands/db/detail.js +1 -0
  58. package/lib/commands/db/diff.js +1 -0
  59. package/lib/commands/db/index.js +1 -0
  60. package/lib/commands/db/list.js +1 -0
  61. package/lib/commands/db/shared.js +1 -0
  62. package/lib/commands/db/tables.js +1 -0
  63. package/lib/commands/db/test.js +1 -0
  64. package/lib/commands/db/update.js +1 -0
  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/constant/cli.js +1 -1
  104. package/lib/constant/domain.js +1 -1
  105. package/lib/constant/env.js +1 -1
  106. package/lib/constant/paths.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/alias-resolver.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/bff/config.js +1 -1
  111. package/lib/core/bff/file-system.js +1 -1
  112. package/lib/core/bff/hash.js +1 -1
  113. package/lib/core/bff/lock.js +1 -1
  114. package/lib/core/bff/utils.js +1 -1
  115. package/lib/core/db-resolver.js +1 -1
  116. package/lib/core/sql-validator.js +1 -1
  117. package/lib/errors.js +1 -1
  118. package/lib/framework/build-all-flags.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/response.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/types.js +1 -1
  127. package/lib/generated/build-info.js +1 -1
  128. package/lib/help.js +1 -1
  129. package/lib/skills/main.js +1 -1
  130. package/lib/skills/npx-skills-add.js +1 -1
  131. package/lib/telemetry/cli-command-trace.js +1 -1
  132. package/lib/telemetry/cli-help-trace.js +1 -1
  133. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  134. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  135. package/lib/telemetry/send-cli-trace-log.js +1 -1
  136. package/lib/utils/ai_config.js +1 -1
  137. package/lib/utils/apply-jq-filter.js +1 -1
  138. package/lib/utils/cdn-config.js +1 -1
  139. package/lib/utils/check-sdk-version.js +1 -1
  140. package/lib/utils/cli-version-check.js +1 -1
  141. package/lib/utils/config.js +1 -1
  142. package/lib/utils/copy-directory.js +1 -1
  143. package/lib/utils/file-utils.js +1 -1
  144. package/lib/utils/guides-cdn.js +1 -1
  145. package/lib/utils/http-client.js +1 -1
  146. package/lib/utils/is-non-interactive.js +1 -1
  147. package/lib/utils/logger.js +1 -1
  148. package/lib/utils/platform.js +1 -1
  149. package/lib/utils/rules-cdn.js +1 -1
  150. package/lib/utils/sleep.js +1 -1
  151. package/lib/utils/template-replacer.js +1 -1
  152. package/lib/utils/version.js +1 -1
  153. package/lib/utils/with-active-cookie.js +1 -1
  154. package/lib/utils/write-cli-side-channel.js +1 -0
  155. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x398237,_0x436eb8){const _0x31dc89=a128_0x5a45,_0x59787d=_0x398237();while(!![]){try{const _0x53c3e9=-parseInt(_0x31dc89(0x16b))/0x1+parseInt(_0x31dc89(0x16c))/0x2*(parseInt(_0x31dc89(0x17c))/0x3)+-parseInt(_0x31dc89(0x168))/0x4+parseInt(_0x31dc89(0x171))/0x5*(parseInt(_0x31dc89(0x164))/0x6)+parseInt(_0x31dc89(0x17b))/0x7+-parseInt(_0x31dc89(0x172))/0x8+parseInt(_0x31dc89(0x169))/0x9*(parseInt(_0x31dc89(0x170))/0xa);if(_0x53c3e9===_0x436eb8)break;else _0x59787d['push'](_0x59787d['shift']());}catch(_0x55693d){_0x59787d['push'](_0x59787d['shift']());}}}(a128_0x229f,0x75619));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a128_0x2d1248 from'semver';function a128_0x229f(){const _0x1ea71=['log','coerce','1.0.0','387856bZjiQu','10353aIIpEk','@latest','needsUpgrade','\x1b[0m','6LPHpwu','\x20\x20\x20Current\x20CLI\x20version:\x20','↪\x20New\x20version\x20available','version','3421376JkoCNd','1814625cHhCPK','npm\x20install\x20-g\x20','953449cfdUPB','404XAJmZU','utf-8','\x1b[1m','parse','100pXonUW','764465UEnifV','5056536jVXEPk','\x1b[33m','stableVersion','package.json','\x20\x20\x20Upgrade\x20command:\x20','some'];a128_0x229f=function(){return _0x1ea71;};return a128_0x229f();}import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a128_0x5a45(_0x2d96cd,_0x2297ad){_0x2d96cd=_0x2d96cd-0x164;const _0x229f3f=a128_0x229f();let _0x5a4597=_0x229f3f[_0x2d96cd];return _0x5a4597;}function getCurrentCliVersion(){const _0x566508=a128_0x5a45;try{const _0x43d776=fileURLToPath(import.meta.url),_0x528481=resolve(dirname(_0x43d776),'../..'),_0x1c0a6e=resolve(_0x528481,_0x566508(0x175)),_0x196323=JSON[_0x566508(0x16f)](readFileSync(_0x1c0a6e,_0x566508(0x16d)));return _0x196323[_0x566508(0x167)]||_0x566508(0x17a);}catch{return _0x566508(0x17a);}}function isNonNumericVersion(_0x172cdf){const _0x338317=a128_0x5a45,_0x45cb0b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x45cb0b[_0x338317(0x177)](_0x125d9c=>_0x125d9c['test'](_0x172cdf));}export async function checkCliVersion(){const _0x23d065=a128_0x5a45,_0x563e35=getCurrentCliVersion(),_0x201a51=await getCdnConfig(),_0x47878a=_0x201a51?.['cli']?.[_0x23d065(0x174)]||null;let _0x3a8fdf=![];if(_0x47878a)try{const _0x2c492e=a128_0x2d1248[_0x23d065(0x179)](_0x563e35),_0x5baa9e=a128_0x2d1248[_0x23d065(0x179)](_0x47878a);_0x2c492e&&_0x5baa9e&&(_0x3a8fdf=a128_0x2d1248['lt'](_0x2c492e,_0x5baa9e));}catch{_0x3a8fdf=![];}return{'currentVersion':_0x563e35,'stableVersion':_0x47878a,'needsUpgrade':_0x3a8fdf,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x5cdd44){const _0x3207e3=a128_0x5a45;if(!_0x5cdd44[_0x3207e3(0x17e)])return;const _0x49b4f2=_0x3207e3(0x173),_0x5e596f=_0x3207e3(0x17f),_0x448fcc=_0x3207e3(0x16e),_0x4724b7=_0x3207e3(0x16a)+NPM_PACKAGE_NAME+_0x3207e3(0x17d);console['log'](),console[_0x3207e3(0x178)](''+_0x49b4f2+_0x448fcc+_0x3207e3(0x166)+_0x5e596f),console[_0x3207e3(0x178)](_0x49b4f2+_0x3207e3(0x165)+_0x5cdd44['currentVersion']+_0x5e596f),console['log'](_0x49b4f2+'\x20\x20\x20Stable\x20version:\x20'+_0x5cdd44[_0x3207e3(0x174)]+_0x5e596f),console[_0x3207e3(0x178)](_0x49b4f2+_0x3207e3(0x176)+_0x4724b7+_0x5e596f),console[_0x3207e3(0x178)]();}
1
+ (function(_0x1cfb8a,_0x465c28){const _0x15d65a=a141_0x143c,_0xd7c8e=_0x1cfb8a();while(!![]){try{const _0x4c8e61=-parseInt(_0x15d65a(0x13b))/0x1+-parseInt(_0x15d65a(0x141))/0x2+-parseInt(_0x15d65a(0x13f))/0x3*(-parseInt(_0x15d65a(0x144))/0x4)+parseInt(_0x15d65a(0x132))/0x5*(parseInt(_0x15d65a(0x138))/0x6)+-parseInt(_0x15d65a(0x131))/0x7+-parseInt(_0x15d65a(0x12d))/0x8*(parseInt(_0x15d65a(0x130))/0x9)+parseInt(_0x15d65a(0x143))/0xa;if(_0x4c8e61===_0x465c28)break;else _0xd7c8e['push'](_0xd7c8e['shift']());}catch(_0x2db747){_0xd7c8e['push'](_0xd7c8e['shift']());}}}(a141_0x46bc,0x19445));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a141_0x143c(_0x27ea62,_0x1bbb7d){_0x27ea62=_0x27ea62-0x12a;const _0x46bcdc=a141_0x46bc();let _0x143c53=_0x46bcdc[_0x27ea62];return _0x143c53;}import{fileURLToPath}from'node:url';import a141_0x427eab from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x4ddefe=a141_0x143c;try{const _0x3a7380=fileURLToPath(import.meta.url),_0x6d590a=resolve(dirname(_0x3a7380),_0x4ddefe(0x137)),_0x56e160=resolve(_0x6d590a,_0x4ddefe(0x13c)),_0x51a46e=JSON[_0x4ddefe(0x135)](readFileSync(_0x56e160,'utf-8'));return _0x51a46e['version']||_0x4ddefe(0x13a);}catch{return _0x4ddefe(0x13a);}}function isNonNumericVersion(_0x59f29a){const _0xec47f5=a141_0x143c,_0x28921c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x28921c['some'](_0x4cefeb=>_0x4cefeb[_0xec47f5(0x140)](_0x59f29a));}export async function checkCliVersion(){const _0x18973e=a141_0x143c,_0x4f2cb3=getCurrentCliVersion(),_0x3a672a=await getCdnConfig(),_0x4e8755=_0x3a672a?.[_0x18973e(0x134)]?.['stableVersion']||null;let _0x122e6b=![];if(_0x4e8755)try{const _0x39199c=a141_0x427eab['coerce'](_0x4f2cb3),_0x4c7541=a141_0x427eab[_0x18973e(0x12e)](_0x4e8755);_0x39199c&&_0x4c7541&&(_0x122e6b=a141_0x427eab['lt'](_0x39199c,_0x4c7541));}catch{_0x122e6b=![];}return{'currentVersion':_0x4f2cb3,'stableVersion':_0x4e8755,'needsUpgrade':_0x122e6b,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x3e3752){const _0x289a45=a141_0x143c;if(!_0x3e3752[_0x289a45(0x13d)])return;const _0x4205a9=_0x289a45(0x12c),_0x3909f6=_0x289a45(0x133),_0xf7e90b=_0x289a45(0x146),_0x4c3796=_0x289a45(0x12f)+NPM_PACKAGE_NAME+_0x289a45(0x12b);console[_0x289a45(0x13e)](),console['log'](''+_0x4205a9+_0xf7e90b+_0x289a45(0x136)+_0x3909f6),console[_0x289a45(0x13e)](_0x4205a9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3e3752[_0x289a45(0x145)]+_0x3909f6),console['log'](_0x4205a9+_0x289a45(0x12a)+_0x3e3752[_0x289a45(0x139)]+_0x3909f6),console[_0x289a45(0x13e)](_0x4205a9+_0x289a45(0x142)+_0x4c3796+_0x3909f6),console[_0x289a45(0x13e)]();}function a141_0x46bc(){const _0x47fa9e=['coerce','npm\x20install\x20-g\x20','860040VBrLXi','484981nuwcFc','26805rHMGCc','\x1b[0m','cli','parse','↪\x20New\x20version\x20available','../..','66FjjTlH','stableVersion','1.0.0','78162IKTwfw','package.json','needsUpgrade','log','30ZqldQK','test','349380PvEGQd','\x20\x20\x20Upgrade\x20command:\x20','4167470HDKLSA','18188ZsUBkr','currentVersion','\x1b[1m','\x20\x20\x20Stable\x20version:\x20','@latest','\x1b[33m','8IFKIOB'];a141_0x46bc=function(){return _0x47fa9e;};return a141_0x46bc();}
@@ -1 +1 @@
1
- const a129_0x2f63f9=a129_0xe00b;function a129_0xe00b(_0x562bfb,_0x1cdf80){_0x562bfb=_0x562bfb-0xca;const _0x45f0fb=a129_0x45f0();let _0xe00b06=_0x45f0fb[_0x562bfb];return _0xe00b06;}(function(_0x1bd28a,_0x33c5ac){const _0x4ea7b8=a129_0xe00b,_0x5b0def=_0x1bd28a();while(!![]){try{const _0x1b3b7e=parseInt(_0x4ea7b8(0xda))/0x1*(parseInt(_0x4ea7b8(0xcf))/0x2)+-parseInt(_0x4ea7b8(0xce))/0x3+-parseInt(_0x4ea7b8(0xcb))/0x4+-parseInt(_0x4ea7b8(0xd2))/0x5+parseInt(_0x4ea7b8(0xd7))/0x6+parseInt(_0x4ea7b8(0xcc))/0x7+parseInt(_0x4ea7b8(0xdb))/0x8*(-parseInt(_0x4ea7b8(0xe0))/0x9);if(_0x1b3b7e===_0x33c5ac)break;else _0x5b0def['push'](_0x5b0def['shift']());}catch(_0x4cd1e7){_0x5b0def['push'](_0x5b0def['shift']());}}}(a129_0x45f0,0x8efee));import{initEnv}from'../constant/env.js';import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5f00d3){const _0x1505c7=a129_0xe00b,_0x3a34af=readRawConfig(_0x5f00d3);return _0x3a34af['env']&&typeof _0x3a34af['env']===_0x1505c7(0xe3)&&initEnv(_0x3a34af[_0x1505c7(0xde)]),_0x3a34af;}export function getConfigAppCode(){const _0x1f7128=a129_0xe00b,_0x16a7cb=readRawConfig();if(_0x16a7cb[_0x1f7128(0xe1)]&&typeof _0x16a7cb[_0x1f7128(0xe1)]===_0x1f7128(0xd6)){const _0x2df1b6=_0x16a7cb[_0x1f7128(0xd4)];if(_0x2df1b6&&_0x16a7cb[_0x1f7128(0xe1)][_0x2df1b6]?.[_0x1f7128(0xd5)])return String(_0x16a7cb['apps'][_0x2df1b6][_0x1f7128(0xd5)])[_0x1f7128(0xd1)]();const _0x48e33e=Object[_0x1f7128(0xca)](_0x16a7cb['apps'])[0x0];if(_0x48e33e?.[_0x1f7128(0xd5)])return String(_0x48e33e['appcode'])['trim']();}const _0x1f96d3=_0x16a7cb[_0x1f7128(0xd5)]||_0x16a7cb[_0x1f7128(0xd0)];if(typeof _0x1f96d3!==_0x1f7128(0xe3)||_0x1f96d3['trim']()==='')return undefined;return _0x1f96d3[_0x1f7128(0xd1)]();}export function getMultiAppConfigs(_0x2c076d=a129_0x2f63f9(0xdd)){const _0x309de7=a129_0x2f63f9,_0x56d994=_0x2c076d==='merged'?readRawConfig():loadRawConfigLayers()[_0x309de7(0xd3)],_0x4e1b73=_0x56d994['apps'];if(!_0x4e1b73||typeof _0x4e1b73!==_0x309de7(0xd6)||Object[_0x309de7(0xdc)](_0x4e1b73)[_0x309de7(0xcd)]===0x0)return null;const _0x502e00=_0x56d994['defaultApp'];return Object['entries'](_0x4e1b73)['map'](([_0x56e6c7,_0x286442])=>({'name':_0x56e6c7,'appcode':_0x286442?.[_0x309de7(0xd5)]||'','isDefault':_0x56e6c7===_0x502e00,'env':_0x286442?.['env'],'apiDir':_0x286442?.[_0x309de7(0xd8)],'cookie':_0x286442?.[_0x309de7(0xe2)]||undefined}))[_0x309de7(0xd9)](_0x989720=>_0x989720[_0x309de7(0xd5)]);}function a129_0x45f0(){const _0x395561=['projectConfig','defaultApp','appcode','object','3658866wRnPWX','apiDir','filter','905189NVKueX','136BQtJBr','keys','project','env','template_base_url','23643zKTErg','apps','cookie','string','values','1825688ZOnedF','4701935fkzIXs','length','623787arGyyW','2xYsXMz','app','trim','4459925IKfzQZ'];a129_0x45f0=function(){return _0x395561;};return a129_0x45f0();}export function getTemplateBaseUrl(){const _0x5ab5d4=a129_0x2f63f9,_0x36abe2=readRawConfig();if(_0x36abe2[_0x5ab5d4(0xdf)]&&typeof _0x36abe2[_0x5ab5d4(0xdf)]===_0x5ab5d4(0xe3))return _0x36abe2[_0x5ab5d4(0xdf)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}
1
+ const a142_0x4c88d1=a142_0x2e9e;(function(_0x318e8e,_0x498a0d){const _0x48b25f=a142_0x2e9e,_0x39e9ba=_0x318e8e();while(!![]){try{const _0x26b92f=parseInt(_0x48b25f(0x102))/0x1+parseInt(_0x48b25f(0x104))/0x2+parseInt(_0x48b25f(0x106))/0x3*(parseInt(_0x48b25f(0xf9))/0x4)+-parseInt(_0x48b25f(0xed))/0x5*(parseInt(_0x48b25f(0x101))/0x6)+parseInt(_0x48b25f(0xf8))/0x7*(parseInt(_0x48b25f(0xf7))/0x8)+-parseInt(_0x48b25f(0xfc))/0x9+-parseInt(_0x48b25f(0xf6))/0xa*(-parseInt(_0x48b25f(0xfd))/0xb);if(_0x26b92f===_0x498a0d)break;else _0x39e9ba['push'](_0x39e9ba['shift']());}catch(_0x51fa5b){_0x39e9ba['push'](_0x39e9ba['shift']());}}}(a142_0x1d51,0xa1242));import{initEnv}from'../constant/env.js';import{readRawConfig,loadRawConfigLayers}from'../context.js';function a142_0x2e9e(_0xc135d9,_0x1c03d2){_0xc135d9=_0xc135d9-0xec;const _0x1d51fd=a142_0x1d51();let _0x2e9efb=_0x1d51fd[_0xc135d9];return _0x2e9efb;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x54d4f1){const _0x230d61=a142_0x2e9e,_0x6add69=readRawConfig(_0x54d4f1);return _0x6add69[_0x230d61(0xef)]&&typeof _0x6add69[_0x230d61(0xef)]===_0x230d61(0x105)&&initEnv(_0x6add69[_0x230d61(0xef)]),_0x6add69;}export function getConfigAppCode(){const _0x38b0ff=a142_0x2e9e,_0x12ff5a=readRawConfig();if(_0x12ff5a[_0x38b0ff(0xf4)]&&typeof _0x12ff5a['apps']==='object'){const _0x4772db=_0x12ff5a[_0x38b0ff(0xec)];if(_0x4772db&&_0x12ff5a[_0x38b0ff(0xf4)][_0x4772db]?.[_0x38b0ff(0x103)])return String(_0x12ff5a[_0x38b0ff(0xf4)][_0x4772db][_0x38b0ff(0x103)])[_0x38b0ff(0xfb)]();const _0x4687d3=Object[_0x38b0ff(0xfa)](_0x12ff5a[_0x38b0ff(0xf4)])[0x0];if(_0x4687d3?.['appcode'])return String(_0x4687d3['appcode'])['trim']();}const _0x21de24=_0x12ff5a[_0x38b0ff(0x103)]||_0x12ff5a[_0x38b0ff(0x107)];if(typeof _0x21de24!=='string'||_0x21de24[_0x38b0ff(0xfb)]()==='')return undefined;return _0x21de24[_0x38b0ff(0xfb)]();}function a142_0x1d51(){const _0x5734a8=['7139044GwOzOY','https://g.lovrabet.com/dist/lovrabet-skill','length','merged','564ORNvoT','530598JZfBDI','appcode','407608IjascY','string','3BTNKIV','app','defaultApp','54685KeVJQU','filter','env','template_base_url','project','object','entries','apps','keys','10CCNhKw','16brEghK','1561609lriccm','2854676qMKjXR','values','trim','7696233NESpow'];a142_0x1d51=function(){return _0x5734a8;};return a142_0x1d51();}export function getMultiAppConfigs(_0x32e524=a142_0x4c88d1(0xf1)){const _0x3b302d=a142_0x4c88d1,_0x3b7d30=_0x32e524===_0x3b302d(0x100)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x33b9fa=_0x3b7d30[_0x3b302d(0xf4)];if(!_0x33b9fa||typeof _0x33b9fa!==_0x3b302d(0xf2)||Object[_0x3b302d(0xf5)](_0x33b9fa)[_0x3b302d(0xff)]===0x0)return null;const _0x2cb38b=_0x3b7d30[_0x3b302d(0xec)];return Object[_0x3b302d(0xf3)](_0x33b9fa)['map'](([_0x23b192,_0x99ed80])=>({'name':_0x23b192,'appcode':_0x99ed80?.['appcode']||'','isDefault':_0x23b192===_0x2cb38b,'env':_0x99ed80?.[_0x3b302d(0xef)],'apiDir':_0x99ed80?.['apiDir'],'cookie':_0x99ed80?.['cookie']||undefined}))[_0x3b302d(0xee)](_0x3029ec=>_0x3029ec[_0x3b302d(0x103)]);}export function getTemplateBaseUrl(){const _0xfef140=a142_0x4c88d1,_0x3a235c=readRawConfig();if(_0x3a235c[_0xfef140(0xf0)]&&typeof _0x3a235c['template_base_url']===_0xfef140(0x105))return _0x3a235c[_0xfef140(0xf0)]['replace'](/\/$/,'');return _0xfef140(0xfe);}
@@ -1 +1 @@
1
- (function(_0xeddd30,_0x10460e){const _0x4748d9=a130_0x1c3a,_0x494d3b=_0xeddd30();while(!![]){try{const _0x50b5e8=-parseInt(_0x4748d9(0x156))/0x1*(-parseInt(_0x4748d9(0x14a))/0x2)+-parseInt(_0x4748d9(0x159))/0x3+-parseInt(_0x4748d9(0x154))/0x4+parseInt(_0x4748d9(0x14c))/0x5*(-parseInt(_0x4748d9(0x152))/0x6)+parseInt(_0x4748d9(0x14f))/0x7*(parseInt(_0x4748d9(0x14e))/0x8)+-parseInt(_0x4748d9(0x14d))/0x9+parseInt(_0x4748d9(0x157))/0xa;if(_0x50b5e8===_0x10460e)break;else _0x494d3b['push'](_0x494d3b['shift']());}catch(_0x4ae4c6){_0x494d3b['push'](_0x494d3b['shift']());}}}(a130_0x3441,0x32a4a));function a130_0x3441(){const _0xc19f96=['1672KXfjAK','2471dkQmkd','copyFileSync','isDirectory','2274LpDzWp','复制目录时出错:','1449904daeZNL','join','2TeBImY','7964330XHKaCi','readdirSync','2043HIozsX','name','230636mJoSTH','mkdirSync','3145ZncXVq','2626776WSVJve'];a130_0x3441=function(){return _0xc19f96;};return a130_0x3441();}import a130_0x3f3fff from'node:path';import a130_0x37f6fd from'node:fs';function a130_0x1c3a(_0x31061d,_0x4e1ea5){_0x31061d=_0x31061d-0x149;const _0x344121=a130_0x3441();let _0x1c3a37=_0x344121[_0x31061d];return _0x1c3a37;}export async function copyDirectory(_0x6b89a8,_0x1b5892){const _0x4bbdf9=a130_0x1c3a;try{const _0x28bba5=a130_0x37f6fd[_0x4bbdf9(0x158)](_0x6b89a8,{'withFileTypes':!![]});a130_0x37f6fd[_0x4bbdf9(0x14b)](_0x1b5892,{'recursive':!![]});for(const _0x2055e0 of _0x28bba5){const _0x41ee98=a130_0x3f3fff[_0x4bbdf9(0x155)](_0x6b89a8,_0x2055e0['name']),_0x294ce1=a130_0x3f3fff[_0x4bbdf9(0x155)](_0x1b5892,_0x2055e0[_0x4bbdf9(0x149)]);_0x2055e0[_0x4bbdf9(0x151)]()?await copyDirectory(_0x41ee98,_0x294ce1):a130_0x37f6fd[_0x4bbdf9(0x150)](_0x41ee98,_0x294ce1);}}catch(_0x1a0af3){console['error'](_0x4bbdf9(0x153),_0x1a0af3);}}
1
+ function a143_0x321f(){const _0x1412ef=['readdirSync','mkdirSync','isDirectory','13212csvvDc','150ucYsbi','name','426aasLxs','5985588uMsGdF','1091841GLrZwx','8LosKqI','1367089ThUPCY','8984qyfpal','error','3163106bCQhXI','join','1937969VIfZPh','copyFileSync','19985iUYyYh'];a143_0x321f=function(){return _0x1412ef;};return a143_0x321f();}(function(_0x5a0ed6,_0x6e7da1){const _0x12f0d4=a143_0x219e,_0x284f7c=_0x5a0ed6();while(!![]){try{const _0x41476d=-parseInt(_0x12f0d4(0x1d7))/0x1+-parseInt(_0x12f0d4(0x1c8))/0x2+-parseInt(_0x12f0d4(0x1d5))/0x3*(-parseInt(_0x12f0d4(0x1d6))/0x4)+parseInt(_0x12f0d4(0x1cc))/0x5*(-parseInt(_0x12f0d4(0x1d3))/0x6)+-parseInt(_0x12f0d4(0x1d4))/0x7+parseInt(_0x12f0d4(0x1c6))/0x8*(parseInt(_0x12f0d4(0x1d0))/0x9)+parseInt(_0x12f0d4(0x1d1))/0xa*(parseInt(_0x12f0d4(0x1ca))/0xb);if(_0x41476d===_0x6e7da1)break;else _0x284f7c['push'](_0x284f7c['shift']());}catch(_0x362197){_0x284f7c['push'](_0x284f7c['shift']());}}}(a143_0x321f,0xe372e));function a143_0x219e(_0xb212b3,_0x140f1f){_0xb212b3=_0xb212b3-0x1c6;const _0x321fd8=a143_0x321f();let _0x219e15=_0x321fd8[_0xb212b3];return _0x219e15;}import a143_0x2032ac from'node:path';import a143_0x77d60c from'node:fs';export async function copyDirectory(_0x4590d7,_0x469cc8){const _0x39fc73=a143_0x219e;try{const _0x5d6131=a143_0x77d60c[_0x39fc73(0x1cd)](_0x4590d7,{'withFileTypes':!![]});a143_0x77d60c[_0x39fc73(0x1ce)](_0x469cc8,{'recursive':!![]});for(const _0x1eafe7 of _0x5d6131){const _0x3be72d=a143_0x2032ac[_0x39fc73(0x1c9)](_0x4590d7,_0x1eafe7[_0x39fc73(0x1d2)]),_0xdb86e9=a143_0x2032ac[_0x39fc73(0x1c9)](_0x469cc8,_0x1eafe7['name']);_0x1eafe7[_0x39fc73(0x1cf)]()?await copyDirectory(_0x3be72d,_0xdb86e9):a143_0x77d60c[_0x39fc73(0x1cb)](_0x3be72d,_0xdb86e9);}}catch(_0x2c7993){console[_0x39fc73(0x1c7)]('复制目录时出错:',_0x2c7993);}}
@@ -1 +1 @@
1
- (function(_0x5b6cdf,_0x54f4f9){const _0x2f76db=a131_0x59b1,_0x18258c=_0x5b6cdf();while(!![]){try{const _0x1077dd=-parseInt(_0x2f76db(0x116))/0x1+-parseInt(_0x2f76db(0x115))/0x2+parseInt(_0x2f76db(0x112))/0x3*(-parseInt(_0x2f76db(0x117))/0x4)+-parseInt(_0x2f76db(0x110))/0x5+parseInt(_0x2f76db(0x118))/0x6+parseInt(_0x2f76db(0x111))/0x7*(-parseInt(_0x2f76db(0x113))/0x8)+-parseInt(_0x2f76db(0x10f))/0x9*(-parseInt(_0x2f76db(0x114))/0xa);if(_0x1077dd===_0x54f4f9)break;else _0x18258c['push'](_0x18258c['shift']());}catch(_0xda7392){_0x18258c['push'](_0x18258c['shift']());}}}(a131_0x13b5,0xd1e5c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a131_0x13b5(){const _0xe21e7f=['isDirectory','16212942uHuiqw','8173795fnSahQ','21lKubYL','813861ZIQjVK','104336IFpMtp','10ArpGKE','293990GMYWRl','188627gESDTc','8fRGKkf','9662298NNUrxu'];a131_0x13b5=function(){return _0xe21e7f;};return a131_0x13b5();}export async function copyDir(_0xc60788,_0x40bbb3){const _0x509168=a131_0x59b1,_0x5cd6ab=statSync(_0xc60788);if(_0x5cd6ab[_0x509168(0x10e)]()){!existsSync(_0x40bbb3)&&mkdirSync(_0x40bbb3,{'recursive':!![]});const _0x524f18=readdirSync(_0xc60788);for(const _0x1fa56c of _0x524f18){await copyDir(join(_0xc60788,_0x1fa56c),join(_0x40bbb3,_0x1fa56c));}}else copyFileSync(_0xc60788,_0x40bbb3);}export function ensureDir(_0x46f98c){!existsSync(_0x46f98c)&&mkdirSync(_0x46f98c,{'recursive':!![]});}function a131_0x59b1(_0x13a2a9,_0x29b0a1){_0x13a2a9=_0x13a2a9-0x10e;const _0x13b505=a131_0x13b5();let _0x59b113=_0x13b505[_0x13a2a9];return _0x59b113;}export function pathExists(_0x480437){return existsSync(_0x480437);}
1
+ (function(_0x59bc27,_0x5cbf01){const _0x51f8e0=a144_0x4354,_0x1b348d=_0x59bc27();while(!![]){try{const _0x5835de=parseInt(_0x51f8e0(0x1a5))/0x1+parseInt(_0x51f8e0(0x1a1))/0x2+-parseInt(_0x51f8e0(0x19e))/0x3*(parseInt(_0x51f8e0(0x19f))/0x4)+-parseInt(_0x51f8e0(0x19d))/0x5+-parseInt(_0x51f8e0(0x1a0))/0x6+parseInt(_0x51f8e0(0x1a4))/0x7+parseInt(_0x51f8e0(0x1a3))/0x8*(parseInt(_0x51f8e0(0x1a2))/0x9);if(_0x5835de===_0x5cbf01)break;else _0x1b348d['push'](_0x1b348d['shift']());}catch(_0x1a5b4a){_0x1b348d['push'](_0x1b348d['shift']());}}}(a144_0x47d6,0xeb97c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a144_0x47d6(){const _0x2030eb=['isDirectory','8628285nMnlzC','162585ajRXJe','112TFfCJo','2639862jHeWjU','3519286nkBlqB','909XkYDlS','51808ZjtWOb','4897844tJctdO','1534671BWEGpV'];a144_0x47d6=function(){return _0x2030eb;};return a144_0x47d6();}import{join}from'node:path';export async function copyDir(_0x440eba,_0x942ae3){const _0x507fee=a144_0x4354,_0x182b14=statSync(_0x440eba);if(_0x182b14[_0x507fee(0x19c)]()){!existsSync(_0x942ae3)&&mkdirSync(_0x942ae3,{'recursive':!![]});const _0x21cde8=readdirSync(_0x440eba);for(const _0x4b0d40 of _0x21cde8){await copyDir(join(_0x440eba,_0x4b0d40),join(_0x942ae3,_0x4b0d40));}}else copyFileSync(_0x440eba,_0x942ae3);}export function ensureDir(_0x30d8a6){!existsSync(_0x30d8a6)&&mkdirSync(_0x30d8a6,{'recursive':!![]});}function a144_0x4354(_0x37a510,_0x307fd6){_0x37a510=_0x37a510-0x19c;const _0x47d632=a144_0x47d6();let _0x43542f=_0x47d632[_0x37a510];return _0x43542f;}export function pathExists(_0x4bdffd){return existsSync(_0x4bdffd);}
@@ -1 +1 @@
1
- const a132_0x136d0d=a132_0x2811;(function(_0x11a981,_0xb4c57c){const _0x5c3fdd=a132_0x2811,_0x7a13a3=_0x11a981();while(!![]){try{const _0x49191a=parseInt(_0x5c3fdd(0x1e2))/0x1*(parseInt(_0x5c3fdd(0x1ce))/0x2)+-parseInt(_0x5c3fdd(0x1ca))/0x3*(-parseInt(_0x5c3fdd(0x1cd))/0x4)+-parseInt(_0x5c3fdd(0x1d5))/0x5*(parseInt(_0x5c3fdd(0x1db))/0x6)+parseInt(_0x5c3fdd(0x1d1))/0x7+-parseInt(_0x5c3fdd(0x1d7))/0x8*(parseInt(_0x5c3fdd(0x1c3))/0x9)+-parseInt(_0x5c3fdd(0x1e6))/0xa*(parseInt(_0x5c3fdd(0x1e5))/0xb)+parseInt(_0x5c3fdd(0x1d6))/0xc;if(_0x49191a===_0xb4c57c)break;else _0x7a13a3['push'](_0x7a13a3['shift']());}catch(_0x275f84){_0x7a13a3['push'](_0x7a13a3['shift']());}}}(a132_0x5ecc,0x4572a));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 _0x2e7202=a132_0x2811,_0x3e7bfe=getTemplateBaseUrl();return _0x3e7bfe+_0x2e7202(0x1cf);}const CACHE_DIR=join(homedir(),a132_0x136d0d(0x1d2),a132_0x136d0d(0x1d9));export async function fetchGuidesFromCDN(){const _0x43168c=a132_0x136d0d,_0x26741f=getGuidesCdnUrl(),_0x168729=await fetch(_0x26741f,{'headers':{'Accept':_0x43168c(0x1d3)}});if(!_0x168729['ok'])throw new Error(_0x43168c(0x1cc)+_0x168729[_0x43168c(0x1c5)]+'\x20'+_0x168729[_0x43168c(0x1e0)]);const _0x2a72af=await _0x168729['json']();if(!_0x2a72af[_0x43168c(0x1c7)]||typeof _0x2a72af[_0x43168c(0x1c7)]!==_0x43168c(0x1d4))throw new Error('CDN\x20返回数据格式错误');return _0x2a72af;}function a132_0x2811(_0x53c3d6,_0x2d780a){_0x53c3d6=_0x53c3d6-0x1c3;const _0x5ecc4c=a132_0x5ecc();let _0x281186=_0x5ecc4c[_0x53c3d6];return _0x281186;}export function writeGuidesToProject(_0x31fe63,_0x4adf9e,_0x55b9ab=a132_0x136d0d(0x1c4),_0x366d78){const _0xba8948=a132_0x136d0d,_0x196557=join(_0x4adf9e,_0x55b9ab);mkdirSync(_0x196557,{'recursive':!![]});for(const [_0x2a4cb5,_0xd9d638]of Object[_0xba8948(0x1da)](_0x31fe63[_0xba8948(0x1c7)])){let _0x2deb2a=_0xd9d638[_0xba8948(0x1df)];_0xd9d638[_0xba8948(0x1cb)]&&(_0x2deb2a=appendUpdateTime(_0x2deb2a,_0xd9d638[_0xba8948(0x1cb)])),writeFileSync(join(_0x196557,_0x2a4cb5+_0xba8948(0x1c6)),_0x2deb2a,_0xba8948(0x1dd));}}function a132_0x5ecc(){const _0x338c63=['keys','map','134523zGKOoj','.lovrabet/skill/guides','status','.md','guides','trimEnd','extendContent','3978yXZCFY','lastUpdated','CDN\x20请求失败:\x20','832HvXyzM','14058ZlTEbF','/skills/guides.json','skillTemplate','1609160UtpCST','.lovrabet','application/json','object','35hJOvpW','6627744sQlGnP','56GPOXOC','replace','cache','entries','413532upvVNj','length','utf-8','CDN\x20数据中缺少\x20skillTemplate','content','statusText','path','2SCUJBQ','title','push','2937teYmZO','7510tWwasc'];a132_0x5ecc=function(){return _0x338c63;};return a132_0x5ecc();}export function appendUpdateTime(_0x19a68f,_0x2bfa9c){const _0x11c3f5=a132_0x136d0d;return _0x19a68f=_0x19a68f[_0x11c3f5(0x1d8)](/\n*>更新时间:.*$/m,''),_0x19a68f[_0x11c3f5(0x1c8)]()+('\x0a\x0a>更新时间:'+_0x2bfa9c);}export function getSkillTemplate(_0x25ec7b){const _0x2d18cb=a132_0x136d0d;return _0x25ec7b[_0x2d18cb(0x1d0)]?.[_0x2d18cb(0x1df)]||'';}export function appendExtendContents(_0x4979e7,_0x5cf949,_0x56ca16){const _0x548307=a132_0x136d0d,_0x295806=[];for(const [,_0x524f3c]of Object[_0x548307(0x1da)](_0x5cf949[_0x548307(0x1c7)])){_0x524f3c['extendContent']&&_0x295806[_0x548307(0x1e4)](_0x524f3c[_0x548307(0x1c9)][_0x548307(0x1c8)]());}if(_0x295806[_0x548307(0x1dc)]===0x0)return _0x4979e7;return _0x4979e7[_0x548307(0x1c8)]()+'\x0a\x0a'+_0x295806['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37c218,_0x3c680e,_0x53748d){const _0x9d47e0=a132_0x136d0d,_0x3323fd=getSkillTemplate(_0x37c218);if(!_0x3323fd)throw new Error(_0x9d47e0(0x1de));const _0x367a06=dirname(_0x3c680e);mkdirSync(_0x367a06,{'recursive':!![]});let _0x502571=_0x3323fd['replace'](/\{\{IDE_NAME\}\}/g,_0x53748d);_0x502571=appendExtendContents(_0x502571,_0x37c218),_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated']&&(_0x502571=appendUpdateTime(_0x502571,_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated'])),writeFileSync(_0x3c680e,_0x502571,'utf-8');}export async function installGuides(_0x148398){const _0x5333c9=a132_0x136d0d,_0x57109d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x57109d,_0x148398),Object[_0x5333c9(0x1e7)](_0x57109d[_0x5333c9(0x1c7)])[_0x5333c9(0x1dc)];}export function getGuidesSummary(_0x31341e){const _0x554805=a132_0x136d0d;return Object[_0x554805(0x1da)](_0x31341e[_0x554805(0x1c7)])[_0x554805(0x1e8)](([_0x57e057,_0x259b17])=>({'key':_0x57e057,'title':_0x259b17[_0x554805(0x1e3)],'path':_0x259b17[_0x554805(0x1e1)]}));}
1
+ const a145_0x213e8e=a145_0x1634;(function(_0x137233,_0x469bba){const _0x115714=a145_0x1634,_0x4c5862=_0x137233();while(!![]){try{const _0x59cb10=parseInt(_0x115714(0x154))/0x1+-parseInt(_0x115714(0x16c))/0x2*(parseInt(_0x115714(0x163))/0x3)+-parseInt(_0x115714(0x168))/0x4+-parseInt(_0x115714(0x158))/0x5+-parseInt(_0x115714(0x157))/0x6*(parseInt(_0x115714(0x15b))/0x7)+-parseInt(_0x115714(0x16b))/0x8+parseInt(_0x115714(0x16f))/0x9*(parseInt(_0x115714(0x151))/0xa);if(_0x59cb10===_0x469bba)break;else _0x4c5862['push'](_0x4c5862['shift']());}catch(_0x42e5e2){_0x4c5862['push'](_0x4c5862['shift']());}}}(a145_0x4c40,0x63d29));function a145_0x1634(_0x4416e4,_0x385db0){_0x4416e4=_0x4416e4-0x14f;const _0x4c403b=a145_0x4c40();let _0x16347d=_0x4c403b[_0x4416e4];return _0x16347d;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a145_0x4c40(){const _0x2193a2=['application/json','/skills/guides.json','2862800JqlacE','content','lastUpdated','78944rdDkSe','42530BWAQaq','push','.md','27voAwOK','path','guides','map','8753620tyGWXn','\x0a\x0a>更新时间:','CDN\x20返回数据格式错误','96173tBEaNR','status','CDN\x20数据中缺少\x20skillTemplate','2467266YJqFGf','2799610nlGuBR','skillTemplate','length','7jvgtPU','utf-8','entries','.lovrabet/skill/guides','join','keys','json','replace','87xwzAEl','CDN\x20请求失败:\x20','trimEnd'];a145_0x4c40=function(){return _0x2193a2;};return a145_0x4c40();}function getGuidesCdnUrl(){const _0x36c5f7=a145_0x1634,_0x499b81=getTemplateBaseUrl();return _0x499b81+_0x36c5f7(0x167);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x334790=a145_0x1634,_0x3e1074=getGuidesCdnUrl(),_0x2492f3=await fetch(_0x3e1074,{'headers':{'Accept':_0x334790(0x166)}});if(!_0x2492f3['ok'])throw new Error(_0x334790(0x164)+_0x2492f3[_0x334790(0x155)]+'\x20'+_0x2492f3['statusText']);const _0x1727a8=await _0x2492f3[_0x334790(0x161)]();if(!_0x1727a8[_0x334790(0x14f)]||typeof _0x1727a8[_0x334790(0x14f)]!=='object')throw new Error(_0x334790(0x153));return _0x1727a8;}export function writeGuidesToProject(_0x2d6427,_0x45b721,_0x406590=a145_0x213e8e(0x15e),_0x583e7f){const _0x192766=a145_0x213e8e,_0xbb44=join(_0x45b721,_0x406590);mkdirSync(_0xbb44,{'recursive':!![]});for(const [_0x2e5b85,_0x2e9d8e]of Object[_0x192766(0x15d)](_0x2d6427[_0x192766(0x14f)])){let _0x5bee8a=_0x2e9d8e[_0x192766(0x169)];_0x2e9d8e[_0x192766(0x16a)]&&(_0x5bee8a=appendUpdateTime(_0x5bee8a,_0x2e9d8e[_0x192766(0x16a)])),writeFileSync(join(_0xbb44,_0x2e5b85+_0x192766(0x16e)),_0x5bee8a,_0x192766(0x15c));}}export function appendUpdateTime(_0x11b9b9,_0x5a01be){const _0x502218=a145_0x213e8e;return _0x11b9b9=_0x11b9b9[_0x502218(0x162)](/\n*>更新时间:.*$/m,''),_0x11b9b9[_0x502218(0x165)]()+(_0x502218(0x152)+_0x5a01be);}export function getSkillTemplate(_0x56d967){const _0x4bc8ff=a145_0x213e8e;return _0x56d967[_0x4bc8ff(0x159)]?.[_0x4bc8ff(0x169)]||'';}export function appendExtendContents(_0x3b3b7f,_0x45d189,_0x5a421f){const _0x3c3afd=a145_0x213e8e,_0x5642f6=[];for(const [,_0x3f8b42]of Object['entries'](_0x45d189[_0x3c3afd(0x14f)])){_0x3f8b42['extendContent']&&_0x5642f6[_0x3c3afd(0x16d)](_0x3f8b42['extendContent'][_0x3c3afd(0x165)]());}if(_0x5642f6[_0x3c3afd(0x15a)]===0x0)return _0x3b3b7f;return _0x3b3b7f[_0x3c3afd(0x165)]()+'\x0a\x0a'+_0x5642f6[_0x3c3afd(0x15f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3fa751,_0x1205db,_0x31d369){const _0x32d409=a145_0x213e8e,_0x17ae27=getSkillTemplate(_0x3fa751);if(!_0x17ae27)throw new Error(_0x32d409(0x156));const _0x3cf6c8=dirname(_0x1205db);mkdirSync(_0x3cf6c8,{'recursive':!![]});let _0x2dcdcc=_0x17ae27['replace'](/\{\{IDE_NAME\}\}/g,_0x31d369);_0x2dcdcc=appendExtendContents(_0x2dcdcc,_0x3fa751),_0x3fa751[_0x32d409(0x159)][_0x32d409(0x16a)]&&(_0x2dcdcc=appendUpdateTime(_0x2dcdcc,_0x3fa751[_0x32d409(0x159)]['lastUpdated'])),writeFileSync(_0x1205db,_0x2dcdcc,'utf-8');}export async function installGuides(_0x2044d3){const _0x41e291=a145_0x213e8e,_0x402f83=await fetchGuidesFromCDN();return writeGuidesToProject(_0x402f83,_0x2044d3),Object[_0x41e291(0x160)](_0x402f83[_0x41e291(0x14f)])[_0x41e291(0x15a)];}export function getGuidesSummary(_0x245f7d){const _0x189811=a145_0x213e8e;return Object[_0x189811(0x15d)](_0x245f7d['guides'])[_0x189811(0x150)](([_0x2bc1e7,_0x3552c7])=>({'key':_0x2bc1e7,'title':_0x3552c7['title'],'path':_0x3552c7[_0x189811(0x170)]}));}
@@ -1 +1 @@
1
- function a133_0x3725(){const _0x451669=['85420NTJSio','get','name','37310kEjAZu','text','message','269311ctXwOC','application/json','content-type','6rSnnXa','*\x20请求失败,','status','275fgUgsu','48fVstvS','AbortError','headers','includes','ECONNRESET','ENOTFOUND','ms\x20后进行第\x20','35CqZvGQ','256068VXpRSN','1344648mqyBQa','47131cMgbSr','139866pOmhJT','TypeError','statusText'];a133_0x3725=function(){return _0x451669;};return a133_0x3725();}(function(_0x45e8ec,_0x2ef38f){const _0x549e6a=a133_0x1d97,_0x5c254a=_0x45e8ec();while(!![]){try{const _0x45965c=parseInt(_0x549e6a(0x15f))/0x1+-parseInt(_0x549e6a(0x16c))/0x2*(-parseInt(_0x549e6a(0x160))/0x3)+parseInt(_0x549e6a(0x163))/0x4*(-parseInt(_0x549e6a(0x15c))/0x5)+-parseInt(_0x549e6a(0x15e))/0x6+parseInt(_0x549e6a(0x169))/0x7+parseInt(_0x549e6a(0x170))/0x8*(parseInt(_0x549e6a(0x15d))/0x9)+-parseInt(_0x549e6a(0x166))/0xa*(-parseInt(_0x549e6a(0x16f))/0xb);if(_0x45965c===_0x2ef38f)break;else _0x5c254a['push'](_0x5c254a['shift']());}catch(_0x57efd2){_0x5c254a['push'](_0x5c254a['shift']());}}}(a133_0x3725,0x1c498));export async function httpRequest(_0x436d48,_0x15810e={}){const _0x1fa025=a133_0x1d97,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x15810e;let _0x21e4f6=null;for(let _0x53a985=0x0;_0x53a985<=retries;_0x53a985++){try{const _0x5bf785=new AbortController(),_0x2b707e=setTimeout(()=>_0x5bf785['abort'](),timeout),_0x5dc12a=await fetch(_0x436d48,{'headers':headers,'signal':_0x5bf785['signal']});clearTimeout(_0x2b707e);let _0x5f32a0;const _0x1ec339=_0x5dc12a['headers'][_0x1fa025(0x164)](_0x1fa025(0x16b));return _0x1ec339?.[_0x1fa025(0x158)](_0x1fa025(0x16a))?_0x5f32a0=await _0x5dc12a['json']():_0x5f32a0=await _0x5dc12a['text'](),{'ok':_0x5dc12a['ok'],'status':_0x5dc12a[_0x1fa025(0x16e)],'statusText':_0x5dc12a[_0x1fa025(0x162)],'data':_0x5f32a0,'headers':_0x5dc12a[_0x1fa025(0x157)],'url':_0x5dc12a['url'],'text':()=>_0x5dc12a[_0x1fa025(0x167)]()};}catch(_0x606b72){_0x21e4f6=_0x606b72 instanceof Error?_0x606b72:new Error(String(_0x606b72));if(_0x53a985===retries)break;if(shouldRetry(_0x606b72)){console['log'](_0x1fa025(0x16d)+retryDelay+_0x1fa025(0x15b)+(_0x53a985+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x21e4f6||new Error('Request\x20failed');}function a133_0x1d97(_0x2d362a,_0x27396c){_0x2d362a=_0x2d362a-0x156;const _0x3725aa=a133_0x3725();let _0x1d9752=_0x3725aa[_0x2d362a];return _0x1d9752;}function shouldRetry(_0x57281c){const _0x17537a=a133_0x1d97;if(_0x57281c instanceof Error){if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x156))return![];if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x161)&&_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)]('fetch'))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x159)))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x15a)))return![];}return![];}function sleep(_0x2451c0){return new Promise(_0x5a5d3c=>setTimeout(_0x5a5d3c,_0x2451c0));}export function validateUrl(_0x2e2a93){try{return new URL(_0x2e2a93),!![];}catch{return![];}}
1
+ (function(_0x37c7f5,_0x3e181a){const _0x29c593=a146_0x4a0b,_0x4fa031=_0x37c7f5();while(!![]){try{const _0x59d378=parseInt(_0x29c593(0x163))/0x1+parseInt(_0x29c593(0x161))/0x2+-parseInt(_0x29c593(0x169))/0x3*(parseInt(_0x29c593(0x15f))/0x4)+-parseInt(_0x29c593(0x166))/0x5+-parseInt(_0x29c593(0x16e))/0x6+-parseInt(_0x29c593(0x176))/0x7*(-parseInt(_0x29c593(0x173))/0x8)+parseInt(_0x29c593(0x15d))/0x9;if(_0x59d378===_0x3e181a)break;else _0x4fa031['push'](_0x4fa031['shift']());}catch(_0x41ec){_0x4fa031['push'](_0x4fa031['shift']());}}}(a146_0x4767,0x581f6));export async function httpRequest(_0x1fb5bf,_0xdce41a={}){const _0x39eee7=a146_0x4a0b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xdce41a;let _0x114b05=null;for(let _0x3f2f71=0x0;_0x3f2f71<=retries;_0x3f2f71++){try{const _0x169765=new AbortController(),_0x36e23a=setTimeout(()=>_0x169765[_0x39eee7(0x175)](),timeout),_0x141269=await fetch(_0x1fb5bf,{'headers':headers,'signal':_0x169765['signal']});clearTimeout(_0x36e23a);let _0x2689ef;const _0x2fc54c=_0x141269['headers']['get'](_0x39eee7(0x16b));return _0x2fc54c?.[_0x39eee7(0x16d)](_0x39eee7(0x172))?_0x2689ef=await _0x141269[_0x39eee7(0x15e)]():_0x2689ef=await _0x141269[_0x39eee7(0x160)](),{'ok':_0x141269['ok'],'status':_0x141269[_0x39eee7(0x170)],'statusText':_0x141269[_0x39eee7(0x171)],'data':_0x2689ef,'headers':_0x141269[_0x39eee7(0x16a)],'url':_0x141269[_0x39eee7(0x168)],'text':()=>_0x141269[_0x39eee7(0x160)]()};}catch(_0x5bf9ba){_0x114b05=_0x5bf9ba instanceof Error?_0x5bf9ba:new Error(String(_0x5bf9ba));if(_0x3f2f71===retries)break;if(shouldRetry(_0x5bf9ba)){console['log'](_0x39eee7(0x167)+retryDelay+_0x39eee7(0x16f)+(_0x3f2f71+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x114b05||new Error(_0x39eee7(0x174));}function shouldRetry(_0x552c4f){const _0x300990=a146_0x4a0b;if(_0x552c4f instanceof Error){if(_0x552c4f[_0x300990(0x162)]==='AbortError')return![];if(_0x552c4f[_0x300990(0x162)]===_0x300990(0x16c)&&_0x552c4f['message'][_0x300990(0x16d)](_0x300990(0x165)))return!![];if(_0x552c4f[_0x300990(0x164)][_0x300990(0x16d)]('ECONNRESET'))return!![];if(_0x552c4f[_0x300990(0x164)]['includes']('ENOTFOUND'))return![];}return![];}function a146_0x4767(){const _0x31d181=['includes','570228AikTbX','ms\x20后进行第\x20','status','statusText','application/json','24rkiMyh','Request\x20failed','abort','712173sLxHXJ','2011509sMVyiZ','json','100VfrGgB','text','354802fSyAtl','name','424353UHZXMU','message','fetch','586045zWMIEo','*\x20请求失败,','url','66873DHFyqq','headers','content-type','TypeError'];a146_0x4767=function(){return _0x31d181;};return a146_0x4767();}function sleep(_0x3b02c0){return new Promise(_0x212ec7=>setTimeout(_0x212ec7,_0x3b02c0));}function a146_0x4a0b(_0x2792e8,_0x1241c0){_0x2792e8=_0x2792e8-0x15d;const _0x4767a1=a146_0x4767();let _0x4a0b4c=_0x4767a1[_0x2792e8];return _0x4a0b4c;}export function validateUrl(_0x4d1df4){try{return new URL(_0x4d1df4),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a134_0x4ecf(){const _0x372ddd=['93514ToIwwE','1111959CGdFhP','setRawMode','true','139783VbluVs','604518hOYefP','stdout','nonInteractive','3923585nmVtWA','3508952CYiBHu','isTTY','stdin','4TcdyEZ','1153016nDZbTH','isRaw'];a134_0x4ecf=function(){return _0x372ddd;};return a134_0x4ecf();}(function(_0xe60a5c,_0x5f3829){const _0x564469=a134_0x8d56,_0x35af2f=_0xe60a5c();while(!![]){try{const _0x4619dc=-parseInt(_0x564469(0x172))/0x1+parseInt(_0x564469(0x170))/0x2+-parseInt(_0x564469(0x173))/0x3+parseInt(_0x564469(0x16f))/0x4*(parseInt(_0x564469(0x16b))/0x5)+parseInt(_0x564469(0x168))/0x6+parseInt(_0x564469(0x167))/0x7+-parseInt(_0x564469(0x16c))/0x8;if(_0x4619dc===_0x5f3829)break;else _0x35af2f['push'](_0x35af2f['shift']());}catch(_0x403616){_0x35af2f['push'](_0x35af2f['shift']());}}}(a134_0x4ecf,0x8d659));function env(_0x16bc85){return process.env[`RABETBASE_${_0x16bc85}`]||process.env[`LOVRABET_${_0x16bc85}`]||undefined;}function a134_0x8d56(_0x1b635e,_0x4fe528){_0x1b635e=_0x1b635e-0x165;const _0x4ecf55=a134_0x4ecf();let _0x8d561f=_0x4ecf55[_0x1b635e];return _0x8d561f;}export function isNonInteractive(_0x1efa25){const _0x428575=a134_0x8d56;return!!(_0x1efa25[_0x428575(0x16a)]||_0x1efa25['ci']||env('CI')===_0x428575(0x166)||process.env.CI==='true'||!process[_0x428575(0x169)][_0x428575(0x16d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4815f9=a134_0x8d56;if(!process['stdin'][_0x4815f9(0x16d)])return![];try{const _0x3c26ff=process[_0x4815f9(0x16e)][_0x4815f9(0x171)];return process[_0x4815f9(0x16e)][_0x4815f9(0x165)](!![]),process[_0x4815f9(0x16e)][_0x4815f9(0x165)](_0x3c26ff??![]),!![];}catch{return![];}}
1
+ function a147_0x2807(_0x525506,_0x29d80b){_0x525506=_0x525506-0x1d6;const _0xa0ede8=a147_0xa0ed();let _0x2807bd=_0xa0ede8[_0x525506];return _0x2807bd;}(function(_0xa7669f,_0x16cc14){const _0x512f00=a147_0x2807,_0x14994d=_0xa7669f();while(!![]){try{const _0x1fd85e=-parseInt(_0x512f00(0x1dd))/0x1*(parseInt(_0x512f00(0x1db))/0x2)+parseInt(_0x512f00(0x1dc))/0x3+-parseInt(_0x512f00(0x1df))/0x4+parseInt(_0x512f00(0x1d6))/0x5*(-parseInt(_0x512f00(0x1e2))/0x6)+-parseInt(_0x512f00(0x1e0))/0x7+-parseInt(_0x512f00(0x1d8))/0x8*(parseInt(_0x512f00(0x1e1))/0x9)+parseInt(_0x512f00(0x1de))/0xa;if(_0x1fd85e===_0x16cc14)break;else _0x14994d['push'](_0x14994d['shift']());}catch(_0x5e526b){_0x14994d['push'](_0x14994d['shift']());}}}(a147_0xa0ed,0x8e2ee));function a147_0xa0ed(){const _0xeca022=['8DqVqhK','setRawMode','stdout','2kQbTrG','3273606KSvTOg','363661sJUXcN','22700970mWeyQh','2138804KlXPOF','1846432tCmPPj','9961443Mnypyh','72SjtFJs','isRaw','nonInteractive','true','isTTY','212480dUVPPr','stdin'];a147_0xa0ed=function(){return _0xeca022;};return a147_0xa0ed();}function env(_0x447d58){return process.env[`RABETBASE_${_0x447d58}`]||process.env[`LOVRABET_${_0x447d58}`]||undefined;}export function isNonInteractive(_0x5658f4){const _0x309059=a147_0x2807;return!!(_0x5658f4[_0x309059(0x1e4)]||_0x5658f4['ci']||env('CI')==='true'||process.env.CI===_0x309059(0x1e5)||!process[_0x309059(0x1da)][_0x309059(0x1e6)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e3d4e=a147_0x2807;if(!process['stdin'][_0x4e3d4e(0x1e6)])return![];try{const _0x3ac365=process[_0x4e3d4e(0x1d7)][_0x4e3d4e(0x1e3)];return process['stdin']['setRawMode'](!![]),process[_0x4e3d4e(0x1d7)][_0x4e3d4e(0x1d9)](_0x3ac365??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a135_0x419486=a135_0x4632;function a135_0x1715(){const _0x316e10=['4394136tjHxnE','format','red','完成:\x20','initWinstonLogger','split','yellow','info','green','File','失败:\x20','addColors','level','Failed\x20to\x20read\x20logs:','combine','4MUgiju','now','clearLogs','rawCommand','error','utf8','Failed\x20to\x20clear\x20logs:','currentRawCommand','1794944DEFLCl','blue','errors','logFilePath','log','toISOString','4764570dLouMa','timestamp','winstonLogger','dirname','9135UAFxDo','logTask','existsSync','message','开始执行:\x20','528100gTqClk','transports','stringify','clear','unknown','setRawCommand','getWinstonInstance','printf','map','writeFileSync','warn','3993381wzcOHd','success','349833JLRUKv','command','readFileSync','join','trim'];a135_0x1715=function(){return _0x316e10;};return a135_0x1715();}(function(_0x2c60ff,_0x21223a){const _0x425144=a135_0x4632,_0x38de69=_0x2c60ff();while(!![]){try{const _0x2a1f9a=parseInt(_0x425144(0x13a))/0x1+-parseInt(_0x425144(0x12b))/0x2+-parseInt(_0x425144(0x147))/0x3*(-parseInt(_0x425144(0x15b))/0x4)+-parseInt(_0x425144(0x135))/0x5+parseInt(_0x425144(0x131))/0x6+-parseInt(_0x425144(0x145))/0x7+parseInt(_0x425144(0x14c))/0x8;if(_0x2a1f9a===_0x21223a)break;else _0x38de69['push'](_0x38de69['shift']());}catch(_0xb6069d){_0x38de69['push'](_0x38de69['shift']());}}}(a135_0x1715,0x7e893));import a135_0x23f9d0 from'winston';function a135_0x4632(_0x2d9fac,_0x1e10a4){_0x2d9fac=_0x2d9fac-0x125;const _0x1715a4=a135_0x1715();let _0x4632ce=_0x1715a4[_0x2d9fac];return _0x4632ce;}import a135_0x19037d from'node:fs';import a135_0x112cde from'node:path';class Logger{['winstonLogger'];[a135_0x419486(0x12e)];[a135_0x419486(0x12a)]='';constructor(){const _0x280bfc=a135_0x419486;this[_0x280bfc(0x12e)]='';}[a135_0x419486(0x13f)](_0x4d6a4f){this['currentRawCommand']=_0x4d6a4f;}[a135_0x419486(0x150)](){const _0x5237b2=a135_0x419486,_0x2c087d=a135_0x112cde[_0x5237b2(0x134)](this[_0x5237b2(0x12e)]);!a135_0x19037d[_0x5237b2(0x137)](_0x2c087d)&&a135_0x19037d['mkdirSync'](_0x2c087d,{'recursive':!![]});const _0x25e09c=a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x15a)](a135_0x23f9d0['format'][_0x5237b2(0x132)](),a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x12d)]({'stack':!![]}),a135_0x23f9d0[_0x5237b2(0x14d)][_0x5237b2(0x141)](_0x18e08b=>{const _0x183a5d=_0x5237b2,_0x29be20={'timestamp':_0x18e08b[_0x183a5d(0x132)]||new Date()[_0x183a5d(0x130)](),'level':_0x18e08b[_0x183a5d(0x158)]||_0x183a5d(0x153),'command':_0x18e08b[_0x183a5d(0x148)]||_0x183a5d(0x13e),'rawCommand':_0x18e08b[_0x183a5d(0x126)]||this[_0x183a5d(0x12a)]||undefined,'message':_0x18e08b[_0x183a5d(0x138)]||'','duration':_0x18e08b['duration']||undefined,'details':_0x18e08b['details']||undefined};return JSON[_0x183a5d(0x13c)](_0x29be20);}));this[_0x5237b2(0x133)]=a135_0x23f9d0['createLogger']({'level':'info','format':_0x25e09c,'transports':[new a135_0x23f9d0[(_0x5237b2(0x13b))][(_0x5237b2(0x155))]({'filename':this[_0x5237b2(0x12e)],'level':_0x5237b2(0x153)})],'silent':![]}),a135_0x23f9d0[_0x5237b2(0x157)]({'success':_0x5237b2(0x154),'error':_0x5237b2(0x14e),'warn':_0x5237b2(0x152),'info':_0x5237b2(0x12c)});}['setLogPath'](_0x155db3){const _0x45a0c1=a135_0x419486;this[_0x45a0c1(0x12e)]=a135_0x112cde[_0x45a0c1(0x14a)](_0x155db3,'.lovrabet.log'),this[_0x45a0c1(0x133)]&&this['winstonLogger'][_0x45a0c1(0x13d)](),this[_0x45a0c1(0x150)]();}['info'](_0xb73530,_0x4311bf,_0x1037b7){const _0x17d2f7=a135_0x419486;if(!this[_0x17d2f7(0x12e)]||!this[_0x17d2f7(0x133)])return;this[_0x17d2f7(0x133)][_0x17d2f7(0x153)](_0x4311bf,{'command':_0xb73530,'details':_0x1037b7});}[a135_0x419486(0x146)](_0x432385,_0x3c9f1a,_0x327add,_0x4fbb84){const _0x1d7180=a135_0x419486;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x1d7180(0x12f)](_0x1d7180(0x153),_0x3c9f1a,{'level':'success','command':_0x432385,'duration':_0x327add,'details':_0x4fbb84});}[a135_0x419486(0x127)](_0x52d9d5,_0x55dbd6,_0x1396b6){const _0x67500b=a135_0x419486;if(!this[_0x67500b(0x12e)]||!this[_0x67500b(0x133)])return;this[_0x67500b(0x133)]['error'](_0x55dbd6,{'command':_0x52d9d5,'details':_0x1396b6});}[a135_0x419486(0x144)](_0xda2dc3,_0x55d0cb,_0x353c30){const _0x236bdc=a135_0x419486;if(!this[_0x236bdc(0x12e)]||!this['winstonLogger'])return;this['winstonLogger'][_0x236bdc(0x144)](_0x55d0cb,{'command':_0xda2dc3,'details':_0x353c30});}async[a135_0x419486(0x136)](_0x5735c5,_0x1ca70c,_0x202477){const _0x4c489a=a135_0x419486,_0x5f5dd5=Date[_0x4c489a(0x15c)]();this['info'](_0x5735c5,_0x4c489a(0x139)+_0x1ca70c);try{const _0x1fb6fd=await _0x202477(),_0x36cb03=Date[_0x4c489a(0x15c)]()-_0x5f5dd5;return this[_0x4c489a(0x146)](_0x5735c5,_0x4c489a(0x14f)+_0x1ca70c,_0x36cb03),_0x1fb6fd;}catch(_0x30f66e){const _0x2c38a8=Date[_0x4c489a(0x15c)]()-_0x5f5dd5;this[_0x4c489a(0x127)](_0x5735c5,_0x4c489a(0x156)+_0x1ca70c,{'error':_0x30f66e instanceof Error?_0x30f66e[_0x4c489a(0x138)]:String(_0x30f66e),'duration':_0x2c38a8});throw _0x30f66e;}}['readLogs'](){const _0x5dfa41=a135_0x419486;try{if(!a135_0x19037d[_0x5dfa41(0x137)](this[_0x5dfa41(0x12e)]))return[];const _0x30c0c5=a135_0x19037d[_0x5dfa41(0x149)](this[_0x5dfa41(0x12e)],_0x5dfa41(0x128));return _0x30c0c5[_0x5dfa41(0x151)]('\x0a')['filter'](_0x50f53e=>_0x50f53e[_0x5dfa41(0x14b)]())[_0x5dfa41(0x142)](_0xc30c14=>JSON['parse'](_0xc30c14));}catch(_0x10eaef){return console[_0x5dfa41(0x144)](_0x5dfa41(0x159),_0x10eaef),[];}}[a135_0x419486(0x125)](){const _0x1fe6d1=a135_0x419486;try{a135_0x19037d['existsSync'](this[_0x1fe6d1(0x12e)])&&a135_0x19037d[_0x1fe6d1(0x143)](this[_0x1fe6d1(0x12e)],'','utf8');}catch(_0x26ff4e){console[_0x1fe6d1(0x144)](_0x1fe6d1(0x129),_0x26ff4e);}}[a135_0x419486(0x140)](){const _0x3114d5=a135_0x419486;return this[_0x3114d5(0x133)];}}export const logger=new Logger();
1
+ const a148_0x3620c8=a148_0x49c3;(function(_0x441d74,_0x573f70){const _0x1f7da3=a148_0x49c3,_0x27d101=_0x441d74();while(!![]){try{const _0x504685=-parseInt(_0x1f7da3(0xa3))/0x1+parseInt(_0x1f7da3(0xd5))/0x2+parseInt(_0x1f7da3(0xad))/0x3*(-parseInt(_0x1f7da3(0xb7))/0x4)+-parseInt(_0x1f7da3(0xb1))/0x5+-parseInt(_0x1f7da3(0xc5))/0x6*(-parseInt(_0x1f7da3(0xb5))/0x7)+parseInt(_0x1f7da3(0xab))/0x8*(-parseInt(_0x1f7da3(0xc4))/0x9)+parseInt(_0x1f7da3(0xa7))/0xa;if(_0x504685===_0x573f70)break;else _0x27d101['push'](_0x27d101['shift']());}catch(_0x4532b9){_0x27d101['push'](_0x27d101['shift']());}}}(a148_0x23cf,0x1d377));function a148_0x23cf(){const _0x1d3077=['format','661625BbYmVN','dirname','完成:\x20','addColors','70Gwdxlz','setLogPath','190952lsnFGL','success','失败:\x20','initWinstonLogger','logTask','开始执行:\x20','errors','setRawCommand','info','existsSync','unknown','green','yellow','459tzyMub','139014jmUfUS','trim','toISOString','File','warn','stringify','readFileSync','parse','Failed\x20to\x20clear\x20logs:','winstonLogger','createLogger','message','join','level','logFilePath','readLogs','321886hmpDDR','combine','error','split','currentRawCommand','now','duration','clear','blue','158401MfeAHk','utf8','command','mkdirSync','1372100OxHacS','transports','getWinstonInstance','filter','3760JpcSqF','timestamp','6qhJOBR','details','clearLogs'];a148_0x23cf=function(){return _0x1d3077;};return a148_0x23cf();}import a148_0x49a287 from'winston';import a148_0x3369ea from'node:fs';import a148_0x30d907 from'node:path';class Logger{['winstonLogger'];[a148_0x3620c8(0xd3)];[a148_0x3620c8(0xd9)]='';constructor(){this['logFilePath']='';}[a148_0x3620c8(0xbe)](_0x2a09c1){const _0x404c6a=a148_0x3620c8;this[_0x404c6a(0xd9)]=_0x2a09c1;}[a148_0x3620c8(0xba)](){const _0x453d4b=a148_0x3620c8,_0x5c47fc=a148_0x30d907[_0x453d4b(0xb2)](this[_0x453d4b(0xd3)]);!a148_0x3369ea['existsSync'](_0x5c47fc)&&a148_0x3369ea[_0x453d4b(0xa6)](_0x5c47fc,{'recursive':!![]});const _0x5057f9=a148_0x49a287[_0x453d4b(0xb0)][_0x453d4b(0xd6)](a148_0x49a287[_0x453d4b(0xb0)]['timestamp'](),a148_0x49a287[_0x453d4b(0xb0)][_0x453d4b(0xbd)]({'stack':!![]}),a148_0x49a287[_0x453d4b(0xb0)]['printf'](_0x1381a3=>{const _0x23fa62=_0x453d4b,_0x217c7f={'timestamp':_0x1381a3[_0x23fa62(0xac)]||new Date()[_0x23fa62(0xc7)](),'level':_0x1381a3[_0x23fa62(0xd2)]||'info','command':_0x1381a3[_0x23fa62(0xa5)]||_0x23fa62(0xc1),'rawCommand':_0x1381a3['rawCommand']||this[_0x23fa62(0xd9)]||undefined,'message':_0x1381a3[_0x23fa62(0xd0)]||'','duration':_0x1381a3[_0x23fa62(0xdb)]||undefined,'details':_0x1381a3[_0x23fa62(0xae)]||undefined};return JSON[_0x23fa62(0xca)](_0x217c7f);}));this[_0x453d4b(0xce)]=a148_0x49a287[_0x453d4b(0xcf)]({'level':'info','format':_0x5057f9,'transports':[new a148_0x49a287[(_0x453d4b(0xa8))][(_0x453d4b(0xc8))]({'filename':this['logFilePath'],'level':_0x453d4b(0xbf)})],'silent':![]}),a148_0x49a287[_0x453d4b(0xb4)]({'success':_0x453d4b(0xc2),'error':'red','warn':_0x453d4b(0xc3),'info':_0x453d4b(0xdd)});}[a148_0x3620c8(0xb6)](_0x457b73){const _0xf6fb23=a148_0x3620c8;this['logFilePath']=a148_0x30d907[_0xf6fb23(0xd1)](_0x457b73,'.lovrabet.log'),this[_0xf6fb23(0xce)]&&this[_0xf6fb23(0xce)][_0xf6fb23(0xdc)](),this[_0xf6fb23(0xba)]();}[a148_0x3620c8(0xbf)](_0x36a55b,_0x329ca2,_0x4cdda7){const _0x3c359d=a148_0x3620c8;if(!this[_0x3c359d(0xd3)]||!this[_0x3c359d(0xce)])return;this[_0x3c359d(0xce)][_0x3c359d(0xbf)](_0x329ca2,{'command':_0x36a55b,'details':_0x4cdda7});}[a148_0x3620c8(0xb8)](_0x2e72a6,_0x1316f8,_0x41880a,_0x59c888){const _0x14ecad=a148_0x3620c8;if(!this[_0x14ecad(0xd3)]||!this['winstonLogger'])return;this[_0x14ecad(0xce)]['log'](_0x14ecad(0xbf),_0x1316f8,{'level':_0x14ecad(0xb8),'command':_0x2e72a6,'duration':_0x41880a,'details':_0x59c888});}[a148_0x3620c8(0xd7)](_0x33112e,_0x4fe759,_0x48eaf8){const _0x3087d3=a148_0x3620c8;if(!this[_0x3087d3(0xd3)]||!this[_0x3087d3(0xce)])return;this[_0x3087d3(0xce)]['error'](_0x4fe759,{'command':_0x33112e,'details':_0x48eaf8});}['warn'](_0x5a4fe5,_0x11cd79,_0x49afd4){const _0x1dd704=a148_0x3620c8;if(!this[_0x1dd704(0xd3)]||!this[_0x1dd704(0xce)])return;this[_0x1dd704(0xce)]['warn'](_0x11cd79,{'command':_0x5a4fe5,'details':_0x49afd4});}async[a148_0x3620c8(0xbb)](_0x5ba920,_0x1a3ad8,_0x22659b){const _0x141da1=a148_0x3620c8,_0x5b9394=Date[_0x141da1(0xda)]();this[_0x141da1(0xbf)](_0x5ba920,_0x141da1(0xbc)+_0x1a3ad8);try{const _0x1fa7e9=await _0x22659b(),_0x356032=Date[_0x141da1(0xda)]()-_0x5b9394;return this[_0x141da1(0xb8)](_0x5ba920,_0x141da1(0xb3)+_0x1a3ad8,_0x356032),_0x1fa7e9;}catch(_0x1a3aa9){const _0x2ae356=Date[_0x141da1(0xda)]()-_0x5b9394;this['error'](_0x5ba920,_0x141da1(0xb9)+_0x1a3ad8,{'error':_0x1a3aa9 instanceof Error?_0x1a3aa9[_0x141da1(0xd0)]:String(_0x1a3aa9),'duration':_0x2ae356});throw _0x1a3aa9;}}[a148_0x3620c8(0xd4)](){const _0x4867cb=a148_0x3620c8;try{if(!a148_0x3369ea['existsSync'](this[_0x4867cb(0xd3)]))return[];const _0x13b1aa=a148_0x3369ea[_0x4867cb(0xcb)](this[_0x4867cb(0xd3)],_0x4867cb(0xa4));return _0x13b1aa[_0x4867cb(0xd8)]('\x0a')[_0x4867cb(0xaa)](_0x47ff09=>_0x47ff09[_0x4867cb(0xc6)]())['map'](_0x372c91=>JSON[_0x4867cb(0xcc)](_0x372c91));}catch(_0x1fc1e4){return console[_0x4867cb(0xc9)]('Failed\x20to\x20read\x20logs:',_0x1fc1e4),[];}}[a148_0x3620c8(0xaf)](){const _0xc28ce0=a148_0x3620c8;try{a148_0x3369ea[_0xc28ce0(0xc0)](this['logFilePath'])&&a148_0x3369ea['writeFileSync'](this['logFilePath'],'',_0xc28ce0(0xa4));}catch(_0x331eb6){console[_0xc28ce0(0xc9)](_0xc28ce0(0xcd),_0x331eb6);}}[a148_0x3620c8(0xa9)](){return this['winstonLogger'];}}function a148_0x49c3(_0x50fe11,_0x3e406b){_0x50fe11=_0x50fe11-0xa3;const _0x23cfe0=a148_0x23cf();let _0x49c340=_0x23cfe0[_0x50fe11];return _0x49c340;}export const logger=new Logger();
@@ -1 +1 @@
1
- function a136_0x18fb(_0x14f83d,_0xbf2f5b){_0x14f83d=_0x14f83d-0x1c5;const _0x4236b1=a136_0x4236();let _0x18fbce=_0x4236b1[_0x14f83d];return _0x18fbce;}function a136_0x4236(){const _0x405335=['48TBRvff','4MXQyVU','255889Jhwaoe','10950570dRrAFs','3504882aCjQDs','4kOiVgr','277195NFnUZg','8tidUTc','7244973mpELOj','12059399qCHLHK','win32','535878KieCTK'];a136_0x4236=function(){return _0x405335;};return a136_0x4236();}const a136_0x2c5e6c=a136_0x18fb;(function(_0x2b03bf,_0x43ee09){const _0x4548bc=a136_0x18fb,_0x34de1c=_0x2b03bf();while(!![]){try{const _0x254a39=parseInt(_0x4548bc(0x1c6))/0x1*(parseInt(_0x4548bc(0x1c9))/0x2)+parseInt(_0x4548bc(0x1c8))/0x3*(-parseInt(_0x4548bc(0x1c5))/0x4)+parseInt(_0x4548bc(0x1ca))/0x5*(parseInt(_0x4548bc(0x1d0))/0x6)+parseInt(_0x4548bc(0x1cf))/0x7+parseInt(_0x4548bc(0x1cb))/0x8*(parseInt(_0x4548bc(0x1cc))/0x9)+parseInt(_0x4548bc(0x1c7))/0xa+-parseInt(_0x4548bc(0x1cd))/0xb;if(_0x254a39===_0x43ee09)break;else _0x34de1c['push'](_0x34de1c['shift']());}catch(_0x27751a){_0x34de1c['push'](_0x34de1c['shift']());}}}(a136_0x4236,0xa2e9f));export const isWindows=process['platform']===a136_0x2c5e6c(0x1ce);export function resolveNpmBin(_0x237aad){return isWindows?_0x237aad+'.cmd':_0x237aad;}
1
+ const a149_0x46e0d1=a149_0x596f;function a149_0xd5b2(){const _0x41e8dc=['platform','win32','14RmLVZK','4146880cfWmZo','1452573ASlaYk','24ygmmxQ','386355BPoAzu','102498HfkPZi','421047WAkicd','3488216TmcOhE','45929xpoGyI','4UliFdy'];a149_0xd5b2=function(){return _0x41e8dc;};return a149_0xd5b2();}function a149_0x596f(_0x4e88c4,_0xdc23af){_0x4e88c4=_0x4e88c4-0xc7;const _0xd5b2de=a149_0xd5b2();let _0x596f46=_0xd5b2de[_0x4e88c4];return _0x596f46;}(function(_0x242a4a,_0xe55f){const _0x1ad1cf=a149_0x596f,_0x4b21ff=_0x242a4a();while(!![]){try{const _0x58a797=parseInt(_0x1ad1cf(0xcc))/0x1*(parseInt(_0x1ad1cf(0xcd))/0x2)+-parseInt(_0x1ad1cf(0xca))/0x3+-parseInt(_0x1ad1cf(0xc7))/0x4*(-parseInt(_0x1ad1cf(0xc8))/0x5)+-parseInt(_0x1ad1cf(0xc9))/0x6*(parseInt(_0x1ad1cf(0xd0))/0x7)+parseInt(_0x1ad1cf(0xcb))/0x8+-parseInt(_0x1ad1cf(0xd2))/0x9+-parseInt(_0x1ad1cf(0xd1))/0xa;if(_0x58a797===_0xe55f)break;else _0x4b21ff['push'](_0x4b21ff['shift']());}catch(_0x44ea64){_0x4b21ff['push'](_0x4b21ff['shift']());}}}(a149_0xd5b2,0x3ad0f));export const isWindows=process[a149_0x46e0d1(0xce)]===a149_0x46e0d1(0xcf);export function resolveNpmBin(_0x57a0a0){return isWindows?_0x57a0a0+'.cmd':_0x57a0a0;}
@@ -1 +1 @@
1
- const a137_0x55e6a2=a137_0x3533;function a137_0x3533(_0x2667c9,_0x1ada51){_0x2667c9=_0x2667c9-0x6a;const _0x9fbe80=a137_0x9fbe();let _0x353311=_0x9fbe80[_0x2667c9];return _0x353311;}(function(_0x18cfed,_0x2c1f85){const _0x1bc496=a137_0x3533,_0x411ee5=_0x18cfed();while(!![]){try{const _0x217e31=-parseInt(_0x1bc496(0x81))/0x1+parseInt(_0x1bc496(0x7a))/0x2*(-parseInt(_0x1bc496(0x76))/0x3)+-parseInt(_0x1bc496(0x7d))/0x4*(-parseInt(_0x1bc496(0x75))/0x5)+parseInt(_0x1bc496(0x71))/0x6+-parseInt(_0x1bc496(0x6a))/0x7*(parseInt(_0x1bc496(0x80))/0x8)+-parseInt(_0x1bc496(0x72))/0x9+parseInt(_0x1bc496(0x7c))/0xa;if(_0x217e31===_0x2c1f85)break;else _0x411ee5['push'](_0x411ee5['shift']());}catch(_0x3ec99){_0x411ee5['push'](_0x411ee5['shift']());}}}(a137_0x9fbe,0xa0d14));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 _0x2b74b1=a137_0x3533,_0x351614=getTemplateBaseUrl();return _0x351614+_0x2b74b1(0x74);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a137_0x55e6a2(0x78));export async function fetchRulesFromCDN(){const _0x1bd930=a137_0x55e6a2,_0x4b8e78=getRulesCdnUrl(),_0x4a2cd3=await fetch(_0x4b8e78,{'headers':{'Accept':'application/json'}});if(!_0x4a2cd3['ok'])throw new Error(_0x1bd930(0x6c)+_0x4a2cd3['status']+'\x20'+_0x4a2cd3[_0x1bd930(0x6b)]);const _0x4d6ba3=await _0x4a2cd3[_0x1bd930(0x6d)]();if(!_0x4d6ba3['content']||typeof _0x4d6ba3[_0x1bd930(0x7e)]!=='string')throw new Error(_0x1bd930(0x6e));return _0x4d6ba3;}export async function getRulesContent(){const _0x2f1d36=a137_0x55e6a2;try{const _0xb17b76=await fetchRulesFromCDN();return _0xb17b76[_0x2f1d36(0x7e)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x229b88=a137_0x55e6a2;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x229b88(0x70));throw new Error(_0x229b88(0x7b)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3bd999){const _0x278785=a137_0x55e6a2,_0xe4b9b7=await fetchRulesFromCDN()[_0x278785(0x6f)](()=>null);let _0x2d14ca;_0xe4b9b7?(_0x2d14ca=_0xe4b9b7[_0x278785(0x7e)],_0xe4b9b7[_0x278785(0x79)]&&(_0x2d14ca=appendUpdateTime(_0x2d14ca,_0xe4b9b7[_0x278785(0x79)]))):_0x2d14ca=readLocalTemplate();const _0x3decb5=dirname(_0x3bd999);!existsSync(_0x3decb5)&&mkdirSync(_0x3decb5,{'recursive':!![]}),writeFileSync(_0x3bd999,_0x2d14ca,_0x278785(0x70));}export async function copyRulesToCursor(_0x81b2d4){const _0x186fc1=a137_0x55e6a2,_0x4e45bb=join(_0x81b2d4,_0x186fc1(0x7f)),_0x54ba46=join(_0x4e45bb,_0x186fc1(0x73));if(existsSync(_0x54ba46))return![];return await writeRulesFile(_0x54ba46),!![];}function a137_0x9fbe(){const _0x30bf58=['2625380JQfOyj','content','.cursor/rules','8ZoeAOz','509981bjEeJc','6344436tfVRXs','statusText','CDN\x20请求失败:\x20','json','CDN\x20返回数据格式错误','catch','utf-8','5558484fOHNAA','4964373SuXzQG','lovrabet_rules.mdc','/rules/rules.json','10dUUYZC','87726WvjKyj','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','4yIZJQm','本地模板文件不存在:\x20','4460140FwyOzl'];a137_0x9fbe=function(){return _0x30bf58;};return a137_0x9fbe();}export async function copyRulesToAgentsMd(_0x5b6b0c){const _0xa5c8ff=a137_0x55e6a2,_0x3f64e3=join(_0x5b6b0c,_0xa5c8ff(0x77));if(existsSync(_0x3f64e3))return![];return await writeRulesFile(_0x3f64e3),!![];}
1
+ const a150_0x29a634=a150_0xb645;(function(_0x5d88eb,_0x318407){const _0x34317c=a150_0xb645,_0x2d4650=_0x5d88eb();while(!![]){try{const _0x20e83d=parseInt(_0x34317c(0xfd))/0x1*(parseInt(_0x34317c(0x10b))/0x2)+parseInt(_0x34317c(0x10a))/0x3+parseInt(_0x34317c(0x105))/0x4*(parseInt(_0x34317c(0x106))/0x5)+-parseInt(_0x34317c(0x104))/0x6*(parseInt(_0x34317c(0x108))/0x7)+-parseInt(_0x34317c(0x113))/0x8+-parseInt(_0x34317c(0xff))/0x9+-parseInt(_0x34317c(0xfc))/0xa;if(_0x20e83d===_0x318407)break;else _0x2d4650['push'](_0x2d4650['shift']());}catch(_0x48fcde){_0x2d4650['push'](_0x2d4650['shift']());}}}(a150_0x34f0,0x34e27));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a150_0xb645(_0x43a177,_0x382da9){_0x43a177=_0x43a177-0xfc;const _0x34f06a=a150_0x34f0();let _0xb645d0=_0x34f06a[_0x43a177];return _0xb645d0;}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 _0x9ca047=a150_0xb645,_0x38b14b=getTemplateBaseUrl();return _0x38b14b+_0x9ca047(0x111);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a150_0x29a634(0x114));export async function fetchRulesFromCDN(){const _0x2b9c26=a150_0x29a634,_0x3d9a5d=getRulesCdnUrl(),_0x1bbceb=await fetch(_0x3d9a5d,{'headers':{'Accept':'application/json'}});if(!_0x1bbceb['ok'])throw new Error(_0x2b9c26(0xfe)+_0x1bbceb['status']+'\x20'+_0x1bbceb[_0x2b9c26(0x110)]);const _0xb9146d=await _0x1bbceb[_0x2b9c26(0x10f)]();if(!_0xb9146d['content']||typeof _0xb9146d[_0x2b9c26(0x102)]!==_0x2b9c26(0x109))throw new Error(_0x2b9c26(0x103));return _0xb9146d;}export async function getRulesContent(){const _0x56fe60=a150_0x29a634;try{const _0x545017=await fetchRulesFromCDN();return _0x545017[_0x56fe60(0x102)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x326a3c=a150_0x29a634;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x326a3c(0x10e));throw new Error(_0x326a3c(0x10d)+LOCAL_TEMPLATE_PATH);}function a150_0x34f0(){const _0x1ac43f=['4nkjKlr','1353225UuigpM','lastUpdated','7ZhbknC','string','1238355lZoSrN','255566YiWevN','agents.md','本地模板文件不存在:\x20','utf-8','json','statusText','/rules/rules.json','catch','1465560hWJwbH','../../templates/rules/lovrabet_rules.mdc.tpl','3663890ZElrHR','2rKaCJK','CDN\x20请求失败:\x20','694062hBuJQu','lovrabet_rules.mdc','.cursor/rules','content','CDN\x20返回数据格式错误','574074qEcsqJ'];a150_0x34f0=function(){return _0x1ac43f;};return a150_0x34f0();}export async function writeRulesFile(_0x3966fd){const _0xbefadc=a150_0x29a634,_0xb4ba4=await fetchRulesFromCDN()[_0xbefadc(0x112)](()=>null);let _0x13e074;_0xb4ba4?(_0x13e074=_0xb4ba4[_0xbefadc(0x102)],_0xb4ba4[_0xbefadc(0x107)]&&(_0x13e074=appendUpdateTime(_0x13e074,_0xb4ba4[_0xbefadc(0x107)]))):_0x13e074=readLocalTemplate();const _0x581477=dirname(_0x3966fd);!existsSync(_0x581477)&&mkdirSync(_0x581477,{'recursive':!![]}),writeFileSync(_0x3966fd,_0x13e074,'utf-8');}export async function copyRulesToCursor(_0x4e7de1){const _0x17921d=a150_0x29a634,_0x4b0f37=join(_0x4e7de1,_0x17921d(0x101)),_0x3660b8=join(_0x4b0f37,_0x17921d(0x100));if(existsSync(_0x3660b8))return![];return await writeRulesFile(_0x3660b8),!![];}export async function copyRulesToAgentsMd(_0x3e4e30){const _0x30cb8a=a150_0x29a634,_0x3b63c3=join(_0x3e4e30,_0x30cb8a(0x10c));if(existsSync(_0x3b63c3))return![];return await writeRulesFile(_0x3b63c3),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x29dc16){return new Promise(_0x15e472=>setTimeout(_0x15e472,_0x29dc16));}
1
+ export function sleep(_0x14c942){return new Promise(_0x2bc5e0=>setTimeout(_0x2bc5e0,_0x14c942));}
@@ -1 +1 @@
1
- const a139_0x47f043=a139_0x4f9a;(function(_0x8a811f,_0x3cf65a){const _0x51f519=a139_0x4f9a,_0x1cfa97=_0x8a811f();while(!![]){try{const _0x49d5c1=parseInt(_0x51f519(0x104))/0x1+parseInt(_0x51f519(0xf7))/0x2*(-parseInt(_0x51f519(0x107))/0x3)+-parseInt(_0x51f519(0x111))/0x4*(-parseInt(_0x51f519(0x114))/0x5)+-parseInt(_0x51f519(0xe3))/0x6+-parseInt(_0x51f519(0xde))/0x7+-parseInt(_0x51f519(0xfb))/0x8+parseInt(_0x51f519(0xe2))/0x9;if(_0x49d5c1===_0x3cf65a)break;else _0x1cfa97['push'](_0x1cfa97['shift']());}catch(_0x2f568b){_0x1cfa97['push'](_0x1cfa97['shift']());}}}(a139_0x5b8d,0x80e64));import a139_0x480867 from'node:fs';import a139_0x32574a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a139_0x4f9a(_0x54bd43,_0x1b29ec){_0x54bd43=_0x54bd43-0xdd;const _0x5b8dd0=a139_0x5b8d();let _0x4f9a54=_0x5b8dd0[_0x54bd43];return _0x4f9a54;}const CLI_VERSION=getCliVersion();function a139_0x5b8d(){const _0x61006d=['error','readdir','22820724uCtHvW','5471328WYsdOo','now','name','开始处理模板内容替换','template','charAt','toUpperCase','.scss','slice','tableName:\x20\x22','.css','name:\x20\x22','api','.tpl','success','toLocaleTimeString','.jsx','模板内容替换完成','numeric','.js','1992634redgHi','.json','2-digit','readFile','1023424CCXGnA','datasetCode','info','toComponentName','pop','join','promises','processFile','isDirectory','590145EbZVeF','tableName','replace','3JzxGXQ','alias','replaceContent','copyFile','endsWith','map','push','mkdir','toLowerCase','writeFile','20mGnfHp','utf8','toDisplayTitle','148355RENWVs','processDirectory','\x20},','split','alias:\x20\x22','toLocaleString','message','\x0a\x20\x20\x20\x20{\x20','extname','4970217niTrVk','processTemplate'];a139_0x5b8d=function(){return _0x61006d;};return a139_0x5b8d();}export class TemplateReplacer{static[a139_0x47f043(0xfe)](_0xdf7625){const _0x2f7c6c=a139_0x47f043,_0x165b89=_0xdf7625[_0x2f7c6c(0x117)]('/')[_0x2f7c6c(0xff)]()||_0xdf7625;return _0x165b89[_0x2f7c6c(0x117)]('-')[_0x2f7c6c(0x10c)](_0x1f2bbc=>_0x1f2bbc[_0x2f7c6c(0xe8)](0x0)[_0x2f7c6c(0xe9)]()+_0x1f2bbc[_0x2f7c6c(0xeb)](0x1)[_0x2f7c6c(0x10f)]())[_0x2f7c6c(0x100)]('');}static[a139_0x47f043(0x113)](_0x441a35){const _0x5827e4=a139_0x47f043,_0x4feb62=_0x441a35['split']('/')['pop']()||_0x441a35;return _0x4feb62[_0x5827e4(0x117)]('-')[_0x5827e4(0x10c)](_0x511cf8=>_0x511cf8[_0x5827e4(0xe8)](0x0)[_0x5827e4(0xe9)]()+_0x511cf8[_0x5827e4(0xeb)](0x1)[_0x5827e4(0x10f)]())[_0x5827e4(0x100)]('\x20');}static[a139_0x47f043(0x109)](_0x352922,_0x36433b,_0x5b8c8d){const _0x1eac10=a139_0x47f043,_0x75f10e=this[_0x1eac10(0xfe)](_0x36433b),_0x11e49d=this[_0x1eac10(0x113)](_0x36433b),_0x28f233=new Date(),_0x366996=_0x28f233[_0x1eac10(0x119)](undefined,{'year':_0x1eac10(0xf5),'month':_0x1eac10(0xf9),'day':_0x1eac10(0xf9),'hour':_0x1eac10(0xf9),'minute':_0x1eac10(0xf9),'second':_0x1eac10(0xf9),'hour12':![]})['replace'](/\//g,'-'),_0x343c76=_0x28f233['toLocaleDateString'](undefined,{'year':_0x1eac10(0xf5),'month':_0x1eac10(0xf9),'day':_0x1eac10(0xf9)})[_0x1eac10(0x106)](/\//g,'-'),_0x4a29f9=_0x28f233[_0x1eac10(0xf2)](undefined,{'hour12':![]});let _0x8fdf57=_0x352922['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x1eac10(0x106)](/\{ComponentName\}/g,_0x75f10e)[_0x1eac10(0x106)](/\{DisplayTitle\}/g,_0x11e49d)[_0x1eac10(0x106)](/\{PageName\}/g,_0x36433b)['replace'](/\{TemplateName\}/g,_0x5b8c8d)[_0x1eac10(0x106)](/\{CreatedAt\}/g,_0x366996)[_0x1eac10(0x106)](/\{CreatedDate\}/g,_0x343c76)['replace'](/\{CreatedTime\}/g,_0x4a29f9);return _0x8fdf57;}static['replaceApiContent'](_0x1423e4,_0xfea0e8,_0x34ec70,_0x56de23,_0x1c22ab,_0x24257e,_0x3e4b49,_0x4554b6){const _0x2e24a8=a139_0x47f043,_0x3f7ace=new Date(),_0x43c625=_0x3f7ace['toISOString'](),_0x28e166=_0x34ec70[_0x2e24a8(0x10c)](_0x34eabe=>{const _0x51b078=_0x2e24a8,_0x1164fe=['datasetCode:\x20\x22'+_0x34eabe[_0x51b078(0xfc)]+'\x22',_0x51b078(0xec)+_0x34eabe[_0x51b078(0x105)]+'\x22',_0x51b078(0xee)+_0x34eabe['name']+'\x22'];return _0x34eabe[_0x51b078(0x108)]&&_0x1164fe[_0x51b078(0x10d)](_0x51b078(0x118)+_0x34eabe[_0x51b078(0x108)]+'\x22'),_0x51b078(0x11b)+_0x1164fe[_0x51b078(0x100)](',\x20')+_0x51b078(0x116);})[_0x2e24a8(0x100)](''),_0x38a967=_0x56de23||_0x34ec70[0x0]?.[_0x2e24a8(0x108)]||'YourModel';let _0x9783c6=_0x1423e4[_0x2e24a8(0x106)](/\{AppCode\}/g,_0xfea0e8)[_0x2e24a8(0x106)](/\{ModelConfigs\}/g,_0x28e166)[_0x2e24a8(0x106)](/\{ExampleModelName\}/g,_0x38a967)[_0x2e24a8(0x106)](/\{ApiFileName\}/g,_0x1c22ab||_0x2e24a8(0xef))[_0x2e24a8(0x106)](/\{ConfigName\}/g,_0x24257e||'default')['replace'](/\{ClientConfigParam\}/g,_0x3e4b49||'')[_0x2e24a8(0x106)](/\{VarPrefix\}/g,_0x4554b6||'LOVRABET')[_0x2e24a8(0x106)](/\{CreatedAt\}/g,_0x43c625);return _0x9783c6;}static async[a139_0x47f043(0xdf)](_0x5d565c,_0x112205,_0x1f83a8,_0x11fb08,_0x289385=!![]){const _0x5500f1=a139_0x47f043,_0x40fb3f=Date[_0x5500f1(0xe4)]();try{_0x289385&&logger[_0x5500f1(0xfd)](_0x5500f1(0xe7),_0x5500f1(0xe6),{'templatePath':_0x5d565c,'targetPath':_0x112205,'pageName':_0x1f83a8,'templateName':_0x11fb08});await a139_0x480867['promises'][_0x5500f1(0x10e)](_0x112205,{'recursive':!![]}),await this[_0x5500f1(0x115)](_0x5d565c,_0x112205,_0x1f83a8,_0x11fb08);if(_0x289385){const _0x86553f=Date[_0x5500f1(0xe4)]()-_0x40fb3f;logger[_0x5500f1(0xf1)](_0x5500f1(0xe7),_0x5500f1(0xf4),_0x86553f,{'pageName':_0x1f83a8,'templateName':_0x11fb08});}}catch(_0x3dc197){if(_0x289385){const _0x4bde41=Date[_0x5500f1(0xe4)]()-_0x40fb3f;logger[_0x5500f1(0xe0)]('template','模板内容替换失败',{'templatePath':_0x5d565c,'targetPath':_0x112205,'pageName':_0x1f83a8,'templateName':_0x11fb08,'error':_0x3dc197 instanceof Error?_0x3dc197[_0x5500f1(0x11a)]:String(_0x3dc197),'duration':_0x4bde41});}throw _0x3dc197;}}static async[a139_0x47f043(0x115)](_0x23f89a,_0x1ed49e,_0x49dacc,_0x502d68){const _0x115ca7=a139_0x47f043,_0x13ba94=await a139_0x480867['promises'][_0x115ca7(0xe1)](_0x23f89a,{'withFileTypes':!![]});for(const _0x3f0684 of _0x13ba94){const _0x46d60d=a139_0x32574a[_0x115ca7(0x100)](_0x23f89a,_0x3f0684[_0x115ca7(0xe5)]);let _0x2465f2=a139_0x32574a['join'](_0x1ed49e,_0x3f0684[_0x115ca7(0xe5)]);_0x3f0684[_0x115ca7(0xe5)][_0x115ca7(0x10b)](_0x115ca7(0xf0))&&(_0x2465f2=a139_0x32574a[_0x115ca7(0x100)](_0x1ed49e,_0x3f0684[_0x115ca7(0xe5)]['replace'](/\.tpl$/,'')));if(_0x3f0684[_0x115ca7(0x103)]())await a139_0x480867[_0x115ca7(0x101)]['mkdir'](_0x2465f2,{'recursive':!![]}),await this[_0x115ca7(0x115)](_0x46d60d,_0x2465f2,_0x49dacc,_0x502d68);else _0x3f0684['isFile']()&&await this[_0x115ca7(0x102)](_0x46d60d,_0x2465f2,_0x49dacc,_0x502d68);}}static async[a139_0x47f043(0x102)](_0x8d006e,_0x470fe7,_0x19a797,_0x279ba8){const _0x489966=a139_0x47f043,_0x262630=a139_0x32574a[_0x489966(0xdd)](_0x8d006e)[_0x489966(0x10f)]();_0x8d006e[_0x489966(0x10b)](_0x489966(0xf0))&&(_0x470fe7=_0x470fe7['replace'](/\.tpl$/,''));const _0x361c64=['.tsx','.ts',_0x489966(0xf3),_0x489966(0xf6),_0x489966(0xf8),'.md',_0x489966(0xed),_0x489966(0xea),'.tpl'];if(_0x361c64['includes'](_0x262630)||_0x8d006e[_0x489966(0x10b)](_0x489966(0xf0))){const _0x3fabf9=await a139_0x480867[_0x489966(0x101)][_0x489966(0xfa)](_0x8d006e,'utf8'),_0x42fa56=this[_0x489966(0x109)](_0x3fabf9,_0x19a797,_0x279ba8);await a139_0x480867['promises'][_0x489966(0x110)](_0x470fe7,_0x42fa56,_0x489966(0x112));}else await a139_0x480867[_0x489966(0x101)][_0x489966(0x10a)](_0x8d006e,_0x470fe7);}}
1
+ const a152_0x492ff0=a152_0x2f08;(function(_0x28e851,_0x41c7fc){const _0x5b6ec8=a152_0x2f08,_0x3e2274=_0x28e851();while(!![]){try{const _0x45e431=-parseInt(_0x5b6ec8(0x1a3))/0x1*(-parseInt(_0x5b6ec8(0x190))/0x2)+parseInt(_0x5b6ec8(0x1a2))/0x3*(-parseInt(_0x5b6ec8(0x1b1))/0x4)+-parseInt(_0x5b6ec8(0x177))/0x5*(parseInt(_0x5b6ec8(0x1a9))/0x6)+-parseInt(_0x5b6ec8(0x178))/0x7+-parseInt(_0x5b6ec8(0x194))/0x8*(parseInt(_0x5b6ec8(0x181))/0x9)+parseInt(_0x5b6ec8(0x1a8))/0xa+parseInt(_0x5b6ec8(0x17b))/0xb;if(_0x45e431===_0x41c7fc)break;else _0x3e2274['push'](_0x3e2274['shift']());}catch(_0x2d5d8a){_0x3e2274['push'](_0x3e2274['shift']());}}}(a152_0x945e,0x4f954));import a152_0x3370bc from'node:fs';import a152_0x796d0c from'node:path';function a152_0x945e(){const _0x3252d7=['.js','toComponentName','alias','alias:\x20\x22','split','template','pop','.css','2-digit','3985ShVOmB','4339790YimhDC','.scss','name:\x20\x22','16030707MzVcXQ','copyFile','join','\x20},','readFile','name','54jCnAhZ','info','replaceApiContent','replace','readdir','utf8','processFile','numeric','promises','slice','.ts','toLowerCase','extname','isFile','.tpl','5326aviNJZ','push','message','datasetCode:\x20\x22','796856UECEcr','error','mkdir','toLocaleDateString','.md','tableName:\x20\x22','tableName','LOVRABET','YourModel','map','开始处理模板内容替换','\x0a\x20\x20\x20\x20{\x20','toDisplayTitle','replaceContent','6irIhJM','161KzwEDY','isDirectory','charAt','processDirectory','toLocaleString','1742630hWZbWG','246sWitHN','toUpperCase','default','now','endsWith','success','includes','.json','968164Ohvnba'];a152_0x945e=function(){return _0x3252d7;};return a152_0x945e();}function a152_0x2f08(_0x398b88,_0x37530b){_0x398b88=_0x398b88-0x174;const _0x945e66=a152_0x945e();let _0x2f088c=_0x945e66[_0x398b88];return _0x2f088c;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a152_0x492ff0(0x1b3)](_0x59303e){const _0x53ee35=a152_0x492ff0,_0x122416=_0x59303e[_0x53ee35(0x1b6)]('/')[_0x53ee35(0x174)]()||_0x59303e;return _0x122416[_0x53ee35(0x1b6)]('-')['map'](_0xc849a3=>_0xc849a3[_0x53ee35(0x1a5)](0x0)[_0x53ee35(0x1aa)]()+_0xc849a3[_0x53ee35(0x18a)](0x1)['toLowerCase']())['join']('');}static[a152_0x492ff0(0x1a0)](_0x3c6485){const _0x4cfac3=a152_0x492ff0,_0x397e0d=_0x3c6485['split']('/')[_0x4cfac3(0x174)]()||_0x3c6485;return _0x397e0d['split']('-')[_0x4cfac3(0x19d)](_0x3fa5e9=>_0x3fa5e9[_0x4cfac3(0x1a5)](0x0)['toUpperCase']()+_0x3fa5e9[_0x4cfac3(0x18a)](0x1)[_0x4cfac3(0x18c)]())[_0x4cfac3(0x17d)]('\x20');}static[a152_0x492ff0(0x1a1)](_0x53ce09,_0xcff166,_0x56caff){const _0x3b5fa1=a152_0x492ff0,_0x1bd701=this['toComponentName'](_0xcff166),_0x25312=this[_0x3b5fa1(0x1a0)](_0xcff166),_0xa4b408=new Date(),_0x1cf90c=_0xa4b408[_0x3b5fa1(0x1a7)](undefined,{'year':_0x3b5fa1(0x188),'month':_0x3b5fa1(0x176),'day':_0x3b5fa1(0x176),'hour':'2-digit','minute':'2-digit','second':_0x3b5fa1(0x176),'hour12':![]})['replace'](/\//g,'-'),_0x18059e=_0xa4b408[_0x3b5fa1(0x197)](undefined,{'year':'numeric','month':'2-digit','day':'2-digit'})[_0x3b5fa1(0x184)](/\//g,'-'),_0x28d54a=_0xa4b408['toLocaleTimeString'](undefined,{'hour12':![]});let _0x105168=_0x53ce09['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x3b5fa1(0x184)](/\{ComponentName\}/g,_0x1bd701)[_0x3b5fa1(0x184)](/\{DisplayTitle\}/g,_0x25312)[_0x3b5fa1(0x184)](/\{PageName\}/g,_0xcff166)[_0x3b5fa1(0x184)](/\{TemplateName\}/g,_0x56caff)[_0x3b5fa1(0x184)](/\{CreatedAt\}/g,_0x1cf90c)['replace'](/\{CreatedDate\}/g,_0x18059e)[_0x3b5fa1(0x184)](/\{CreatedTime\}/g,_0x28d54a);return _0x105168;}static[a152_0x492ff0(0x183)](_0x33872a,_0x30e723,_0xb0625d,_0xc6cf3d,_0x4a7c31,_0x2c92b8,_0x5f2a64,_0x17db67){const _0x1c5829=a152_0x492ff0,_0x5cb05e=new Date(),_0x1b0e9c=_0x5cb05e['toISOString'](),_0x51fa5e=_0xb0625d['map'](_0x37753e=>{const _0x57733d=a152_0x2f08,_0x3e28b6=[_0x57733d(0x193)+_0x37753e['datasetCode']+'\x22',_0x57733d(0x199)+_0x37753e[_0x57733d(0x19a)]+'\x22',_0x57733d(0x17a)+_0x37753e[_0x57733d(0x180)]+'\x22'];return _0x37753e['alias']&&_0x3e28b6[_0x57733d(0x191)](_0x57733d(0x1b5)+_0x37753e[_0x57733d(0x1b4)]+'\x22'),_0x57733d(0x19f)+_0x3e28b6[_0x57733d(0x17d)](',\x20')+_0x57733d(0x17e);})[_0x1c5829(0x17d)](''),_0x5ae0b0=_0xc6cf3d||_0xb0625d[0x0]?.['alias']||_0x1c5829(0x19c);let _0x37c57f=_0x33872a['replace'](/\{AppCode\}/g,_0x30e723)[_0x1c5829(0x184)](/\{ModelConfigs\}/g,_0x51fa5e)[_0x1c5829(0x184)](/\{ExampleModelName\}/g,_0x5ae0b0)['replace'](/\{ApiFileName\}/g,_0x4a7c31||'api')[_0x1c5829(0x184)](/\{ConfigName\}/g,_0x2c92b8||_0x1c5829(0x1ab))[_0x1c5829(0x184)](/\{ClientConfigParam\}/g,_0x5f2a64||'')[_0x1c5829(0x184)](/\{VarPrefix\}/g,_0x17db67||_0x1c5829(0x19b))['replace'](/\{CreatedAt\}/g,_0x1b0e9c);return _0x37c57f;}static async['processTemplate'](_0x2c67b1,_0x25c393,_0x3a0c86,_0x385f39,_0x38248e=!![]){const _0x7fd0a4=a152_0x492ff0,_0x466092=Date[_0x7fd0a4(0x1ac)]();try{_0x38248e&&logger[_0x7fd0a4(0x182)]('template',_0x7fd0a4(0x19e),{'templatePath':_0x2c67b1,'targetPath':_0x25c393,'pageName':_0x3a0c86,'templateName':_0x385f39});await a152_0x3370bc[_0x7fd0a4(0x189)][_0x7fd0a4(0x196)](_0x25c393,{'recursive':!![]}),await this[_0x7fd0a4(0x1a6)](_0x2c67b1,_0x25c393,_0x3a0c86,_0x385f39);if(_0x38248e){const _0x4a8c45=Date[_0x7fd0a4(0x1ac)]()-_0x466092;logger[_0x7fd0a4(0x1ae)](_0x7fd0a4(0x1b7),'模板内容替换完成',_0x4a8c45,{'pageName':_0x3a0c86,'templateName':_0x385f39});}}catch(_0xf9893c){if(_0x38248e){const _0x452c5b=Date[_0x7fd0a4(0x1ac)]()-_0x466092;logger[_0x7fd0a4(0x195)](_0x7fd0a4(0x1b7),'模板内容替换失败',{'templatePath':_0x2c67b1,'targetPath':_0x25c393,'pageName':_0x3a0c86,'templateName':_0x385f39,'error':_0xf9893c instanceof Error?_0xf9893c[_0x7fd0a4(0x192)]:String(_0xf9893c),'duration':_0x452c5b});}throw _0xf9893c;}}static async['processDirectory'](_0x20d5f7,_0x1ef783,_0x5eea6d,_0x59f919){const _0x59c2ab=a152_0x492ff0,_0x3808db=await a152_0x3370bc['promises'][_0x59c2ab(0x185)](_0x20d5f7,{'withFileTypes':!![]});for(const _0xf361dd of _0x3808db){const _0x3d6970=a152_0x796d0c[_0x59c2ab(0x17d)](_0x20d5f7,_0xf361dd[_0x59c2ab(0x180)]);let _0x48c19c=a152_0x796d0c[_0x59c2ab(0x17d)](_0x1ef783,_0xf361dd[_0x59c2ab(0x180)]);_0xf361dd[_0x59c2ab(0x180)][_0x59c2ab(0x1ad)](_0x59c2ab(0x18f))&&(_0x48c19c=a152_0x796d0c[_0x59c2ab(0x17d)](_0x1ef783,_0xf361dd[_0x59c2ab(0x180)][_0x59c2ab(0x184)](/\.tpl$/,'')));if(_0xf361dd[_0x59c2ab(0x1a4)]())await a152_0x3370bc[_0x59c2ab(0x189)][_0x59c2ab(0x196)](_0x48c19c,{'recursive':!![]}),await this['processDirectory'](_0x3d6970,_0x48c19c,_0x5eea6d,_0x59f919);else _0xf361dd[_0x59c2ab(0x18e)]()&&await this[_0x59c2ab(0x187)](_0x3d6970,_0x48c19c,_0x5eea6d,_0x59f919);}}static async[a152_0x492ff0(0x187)](_0x1823c4,_0x12bf24,_0x141b97,_0x48a948){const _0x514f6d=a152_0x492ff0,_0x25ff34=a152_0x796d0c[_0x514f6d(0x18d)](_0x1823c4)['toLowerCase']();_0x1823c4[_0x514f6d(0x1ad)](_0x514f6d(0x18f))&&(_0x12bf24=_0x12bf24[_0x514f6d(0x184)](/\.tpl$/,''));const _0x1d05ce=['.tsx',_0x514f6d(0x18b),'.jsx',_0x514f6d(0x1b2),_0x514f6d(0x1b0),_0x514f6d(0x198),_0x514f6d(0x175),_0x514f6d(0x179),'.tpl'];if(_0x1d05ce[_0x514f6d(0x1af)](_0x25ff34)||_0x1823c4[_0x514f6d(0x1ad)](_0x514f6d(0x18f))){const _0x39fbbd=await a152_0x3370bc['promises'][_0x514f6d(0x17f)](_0x1823c4,'utf8'),_0x512cdf=this[_0x514f6d(0x1a1)](_0x39fbbd,_0x141b97,_0x48a948);await a152_0x3370bc['promises']['writeFile'](_0x12bf24,_0x512cdf,_0x514f6d(0x186));}else await a152_0x3370bc['promises'][_0x514f6d(0x17c)](_0x1823c4,_0x12bf24);}}
@@ -1 +1 @@
1
- function a140_0x440f(_0x17d349,_0x16474b){_0x17d349=_0x17d349-0x118;var _0x73cb12=a140_0x73cb();var _0x440f8f=_0x73cb12[_0x17d349];return _0x440f8f;}(function(_0x1c423b,_0x3f143d){var _0x1d78cb=a140_0x440f,_0x49d334=_0x1c423b();while(!![]){try{var _0x2dbe60=parseInt(_0x1d78cb(0x120))/0x1*(parseInt(_0x1d78cb(0x121))/0x2)+parseInt(_0x1d78cb(0x119))/0x3+-parseInt(_0x1d78cb(0x11c))/0x4*(-parseInt(_0x1d78cb(0x11e))/0x5)+-parseInt(_0x1d78cb(0x118))/0x6+-parseInt(_0x1d78cb(0x11b))/0x7+parseInt(_0x1d78cb(0x11f))/0x8*(-parseInt(_0x1d78cb(0x11d))/0x9)+parseInt(_0x1d78cb(0x11a))/0xa;if(_0x2dbe60===_0x3f143d)break;else _0x49d334['push'](_0x49d334['shift']());}catch(_0x342f32){_0x49d334['push'](_0x49d334['shift']());}}}(a140_0x73cb,0xd8b40));import{VERSION}from'../generated/build-info.js';function a140_0x73cb(){var _0x20fa77=['369hdFFIl','5WolkOz','91912Rfquul','307fZEGvH','3062MgArvm','6791442pVdGjk','2031915eveMnZ','18776200mzQdRs','7818069YsrPYO','2329988WLZeat'];a140_0x73cb=function(){return _0x20fa77;};return a140_0x73cb();}export function getCliVersion(){return VERSION;}
1
+ function a153_0xea74(_0x403f30,_0x54cc68){_0x403f30=_0x403f30-0xa4;var _0x34ba52=a153_0x34ba();var _0xea7429=_0x34ba52[_0x403f30];return _0xea7429;}(function(_0x33ed67,_0x4d1653){var _0x13e0d2=a153_0xea74,_0x245f71=_0x33ed67();while(!![]){try{var _0x37af95=-parseInt(_0x13e0d2(0xa6))/0x1+parseInt(_0x13e0d2(0xa5))/0x2*(-parseInt(_0x13e0d2(0xa9))/0x3)+parseInt(_0x13e0d2(0xa8))/0x4+-parseInt(_0x13e0d2(0xab))/0x5+parseInt(_0x13e0d2(0xad))/0x6*(-parseInt(_0x13e0d2(0xa7))/0x7)+parseInt(_0x13e0d2(0xaa))/0x8+-parseInt(_0x13e0d2(0xac))/0x9*(-parseInt(_0x13e0d2(0xa4))/0xa);if(_0x37af95===_0x4d1653)break;else _0x245f71['push'](_0x245f71['shift']());}catch(_0x31a448){_0x245f71['push'](_0x245f71['shift']());}}}(a153_0x34ba,0xd3d27));function a153_0x34ba(){var _0x3f5e60=['746999bBPcZR','1791951XQPdly','3123164TzrmqK','13521pfoWwv','2283712PkMOPc','4203200YsOClT','58617XlvDXo','6AJacxZ','5010HQqWNL','718WucWvO'];a153_0x34ba=function(){return _0x3f5e60;};return a153_0x34ba();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3f32af,_0x53f155){var _0x55e428=a141_0x3fbd,_0x5e096f=_0x3f32af();while(!![]){try{var _0x454591=parseInt(_0x55e428(0xa8))/0x1*(-parseInt(_0x55e428(0xac))/0x2)+parseInt(_0x55e428(0xb2))/0x3*(-parseInt(_0x55e428(0xb3))/0x4)+-parseInt(_0x55e428(0xaf))/0x5*(-parseInt(_0x55e428(0xae))/0x6)+parseInt(_0x55e428(0xb1))/0x7*(-parseInt(_0x55e428(0xb0))/0x8)+parseInt(_0x55e428(0xaa))/0x9*(-parseInt(_0x55e428(0xab))/0xa)+parseInt(_0x55e428(0xad))/0xb*(parseInt(_0x55e428(0xa9))/0xc)+-parseInt(_0x55e428(0xa6))/0xd*(-parseInt(_0x55e428(0xa7))/0xe);if(_0x454591===_0x53f155)break;else _0x5e096f['push'](_0x5e096f['shift']());}catch(_0x516442){_0x5e096f['push'](_0x5e096f['shift']());}}}(a141_0x2273,0xde0fb));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a141_0x3fbd(_0x2527da,_0x1adcf3){_0x2527da=_0x2527da-0xa6;var _0x2273c9=a141_0x2273();var _0x3fbd7b=_0x2273c9[_0x2527da];return _0x3fbd7b;}function a141_0x2273(){var _0x4383fe=['380HHSCSz','32kJQumf','7178468oHOIJr','12LeyMYb','1065225pRnZoi','24DbrxOc','1552796HhZpti','3hWoBkW','1427948zVzERA','52PKTENx','10420508CTdoMN','46918NawEzj','12ogNpIm','325242ADIfhO'];a141_0x2273=function(){return _0x4383fe;};return a141_0x2273();}export async function withActiveCookie(_0x1ec495,_0x44f179){setActiveCookie(_0x1ec495);try{return await _0x44f179();}finally{clearActiveCookie();}}
1
+ function a154_0x5e03(_0x309887,_0x4e78aa){_0x309887=_0x309887-0x83;var _0x441960=a154_0x4419();var _0x5e031d=_0x441960[_0x309887];return _0x5e031d;}(function(_0x306537,_0x63446f){var _0x523095=a154_0x5e03,_0x57ce76=_0x306537();while(!![]){try{var _0x3949a3=parseInt(_0x523095(0x8b))/0x1*(-parseInt(_0x523095(0x89))/0x2)+-parseInt(_0x523095(0x86))/0x3*(-parseInt(_0x523095(0x84))/0x4)+parseInt(_0x523095(0x8c))/0x5+-parseInt(_0x523095(0x85))/0x6*(-parseInt(_0x523095(0x8e))/0x7)+parseInt(_0x523095(0x8d))/0x8*(parseInt(_0x523095(0x87))/0x9)+-parseInt(_0x523095(0x88))/0xa*(-parseInt(_0x523095(0x83))/0xb)+-parseInt(_0x523095(0x8a))/0xc;if(_0x3949a3===_0x63446f)break;else _0x57ce76['push'](_0x57ce76['shift']());}catch(_0x156bc4){_0x57ce76['push'](_0x57ce76['shift']());}}}(a154_0x4419,0xd1d2f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0xd50218,_0x3020cb){setActiveCookie(_0xd50218);try{return await _0x3020cb();}finally{clearActiveCookie();}}function a154_0x4419(){var _0x30675a=['847cVmijJ','1035881ABSbJE','496ZpUvwb','4656OrLTsh','8562wmCshJ','18dtsOcg','10BjxnvR','6OKCuvo','2241324gmVEID','303697WWxfmN','3333550gDtXJu','2994536WxqWNR'];a154_0x4419=function(){return _0x30675a;};return a154_0x4419();}
@@ -0,0 +1 @@
1
+ (function(_0x10ed07,_0x519410){var _0x2dd553=a155_0x381e,_0x117ed0=_0x10ed07();while(!![]){try{var _0x4f3e2e=parseInt(_0x2dd553(0xb5))/0x1*(parseInt(_0x2dd553(0xb6))/0x2)+parseInt(_0x2dd553(0xbf))/0x3+-parseInt(_0x2dd553(0xb9))/0x4*(-parseInt(_0x2dd553(0xb8))/0x5)+parseInt(_0x2dd553(0xbd))/0x6+-parseInt(_0x2dd553(0xbe))/0x7+parseInt(_0x2dd553(0xc0))/0x8*(parseInt(_0x2dd553(0xb7))/0x9)+-parseInt(_0x2dd553(0xbc))/0xa*(parseInt(_0x2dd553(0xb4))/0xb);if(_0x4f3e2e===_0x519410)break;else _0x117ed0['push'](_0x117ed0['shift']());}catch(_0x2e5700){_0x117ed0['push'](_0x117ed0['shift']());}}}(a155_0x1df1,0x3491a));export function writeCliSideChannelLine(_0x8accff){var _0x55184d=a155_0x381e;process[_0x55184d(0xba)][_0x55184d(0xbb)](_0x8accff+'\x0a');}function a155_0x381e(_0x145811,_0x4dd0af){_0x145811=_0x145811-0xb4;var _0x1df1cc=a155_0x1df1();var _0x381e17=_0x1df1cc[_0x145811];return _0x381e17;}function a155_0x1df1(){var _0x41c9e6=['stderr','write','4940ZcPNEO','671562KQIApg','2543905ZyOxkO','1005198WKoPep','16648szoRge','9394nTwhgx','1AWaeDG','194646tQFHSL','279XrYRbW','1958930orcgAT','4hEwpAY'];a155_0x1df1=function(){return _0x41c9e6;};return a155_0x1df1();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.0.13",
3
+ "version": "2.1.1-beta.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",