@lovrabet/rabetbase-cli 2.0.2-beta.8 → 2.0.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +4 -0
  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/app/add.js +1 -0
  19. package/lib/commands/app/index.js +1 -0
  20. package/lib/commands/app/list.js +1 -0
  21. package/lib/commands/app/remote.js +1 -0
  22. package/lib/commands/app/remove.js +1 -0
  23. package/lib/commands/app/shared.js +1 -0
  24. package/lib/commands/app/use.js +1 -0
  25. package/lib/commands/auth.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/build.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 -0
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -0
  42. package/lib/commands/config/get.js +1 -0
  43. package/lib/commands/config/index.js +1 -0
  44. package/lib/commands/config/list.js +1 -0
  45. package/lib/commands/config/set.js +1 -0
  46. package/lib/commands/config/shared.js +1 -0
  47. package/lib/commands/create.js +1 -1
  48. package/lib/commands/dataset/detail.js +1 -1
  49. package/lib/commands/dataset/index.js +1 -1
  50. package/lib/commands/dataset/links.js +1 -1
  51. package/lib/commands/dataset/list.js +1 -1
  52. package/lib/commands/dataset/operations.js +1 -1
  53. package/lib/commands/doctor.js +1 -1
  54. package/lib/commands/init.js +1 -1
  55. package/lib/commands/logout.js +1 -1
  56. package/lib/commands/logs.js +1 -1
  57. package/lib/commands/menu/index.js +1 -1
  58. package/lib/commands/menu/shared/compare-table.js +1 -1
  59. package/lib/commands/menu/shared/index.js +1 -1
  60. package/lib/commands/menu/shared/inquirer.js +1 -1
  61. package/lib/commands/menu/shared/local-pages.js +1 -1
  62. package/lib/commands/menu/shared/logic.js +1 -1
  63. package/lib/commands/menu/shared/service.js +1 -1
  64. package/lib/commands/menu/shared/sync-core.js +1 -1
  65. package/lib/commands/menu/shared/update-core.js +1 -1
  66. package/lib/commands/menu/shared/valid-url.js +1 -1
  67. package/lib/commands/menu/sync.js +1 -1
  68. package/lib/commands/menu/update.js +1 -1
  69. package/lib/commands/preview.js +1 -1
  70. package/lib/commands/project-upgrade.js +1 -1
  71. package/lib/commands/registry.js +1 -1
  72. package/lib/commands/run.js +1 -1
  73. package/lib/commands/skill.js +1 -1
  74. package/lib/commands/smart-init.js +1 -0
  75. package/lib/commands/sql/detail.js +1 -1
  76. package/lib/commands/sql/exec.js +1 -1
  77. package/lib/commands/sql/index.js +1 -1
  78. package/lib/commands/sql/list.js +1 -1
  79. package/lib/commands/sql/save.js +1 -1
  80. package/lib/commands/sql/validate.js +1 -1
  81. package/lib/commands/start.js +1 -1
  82. package/lib/constant/cli.js +1 -1
  83. package/lib/constant/domain.js +1 -1
  84. package/lib/constant/env.js +1 -1
  85. package/lib/context.js +1 -1
  86. package/lib/core/alias-resolver.js +1 -1
  87. package/lib/core/api-client.js +1 -1
  88. package/lib/core/bff/config.js +1 -1
  89. package/lib/core/bff/file-system.js +1 -1
  90. package/lib/core/bff/hash.js +1 -1
  91. package/lib/core/bff/lock.js +1 -1
  92. package/lib/core/bff/utils.js +1 -1
  93. package/lib/core/db-resolver.js +1 -1
  94. package/lib/core/sql-validator.js +1 -1
  95. package/lib/create-app/enhanced-guided-create.js +1 -1
  96. package/lib/create-app/format-elapsed.js +1 -1
  97. package/lib/create-app/main.js +1 -1
  98. package/lib/create-app/non-interactive.js +1 -1
  99. package/lib/create-app/use-copy-project-template.js +1 -1
  100. package/lib/create-app/use-format-code.js +1 -1
  101. package/lib/create-app/use-install-dependencies.js +1 -1
  102. package/lib/errors.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.js +1 -1
  112. package/lib/init/main.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -0
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -0
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/cdn-config.js +1 -1
  121. package/lib/utils/check-sdk-version.js +1 -1
  122. package/lib/utils/cli-version-check.js +1 -1
  123. package/lib/utils/config.js +1 -1
  124. package/lib/utils/copy-directory.js +1 -1
  125. package/lib/utils/file-utils.js +1 -1
  126. package/lib/utils/guides-cdn.js +1 -1
  127. package/lib/utils/http-client.js +1 -1
  128. package/lib/utils/is-non-interactive.js +1 -0
  129. package/lib/utils/logger.js +1 -1
  130. package/lib/utils/platform.js +1 -0
  131. package/lib/utils/rules-cdn.js +1 -1
  132. package/lib/utils/sleep.js +1 -1
  133. package/lib/utils/template-replacer.js +1 -1
  134. package/lib/utils/version.js +1 -0
  135. package/lib/utils/with-active-cookie.js +1 -0
  136. package/package.json +7 -11
  137. package/lib/ai-setup/config.js +0 -1
  138. package/lib/commands/app.js +0 -1
  139. package/lib/commands/config.js +0 -1
  140. package/lib/commands/mcp.js +0 -1
  141. package/lib/config/config-help.js +0 -1
  142. package/lib/config/main.js +0 -1
  143. package/lib/create-app/task-finished.js +0 -1
  144. package/lib/create-app/task-loading.js +0 -1
  145. package/lib/create-app/task-running.js +0 -1
  146. package/lib/create-app/task-time.js +0 -1
  147. package/lib/mcp/McpInstallUI.js +0 -1
  148. package/lib/mcp/claude.js +0 -1
  149. package/lib/mcp/cursor.js +0 -1
  150. package/lib/mcp/main.js +0 -1
  151. package/lib/mcp/mcp-install-non-interactive.js +0 -1
  152. package/lib/mcp/mcp-installer.js +0 -1
  153. package/lib/telemetry/otel-logger-version.js +0 -1
  154. package/lib/ui/IDESelector.js +0 -1
  155. package/lib/ui/useIDESelection.js +0 -1
@@ -1 +1 @@
1
- const a129_0x59d705=a129_0x2946;(function(_0x22ecb6,_0x25dfd0){const _0x769d0e=a129_0x2946,_0x254fb0=_0x22ecb6();while(!![]){try{const _0x8a736=-parseInt(_0x769d0e(0x163))/0x1*(-parseInt(_0x769d0e(0x173))/0x2)+-parseInt(_0x769d0e(0x16a))/0x3*(parseInt(_0x769d0e(0x151))/0x4)+-parseInt(_0x769d0e(0x171))/0x5+parseInt(_0x769d0e(0x156))/0x6+parseInt(_0x769d0e(0x15f))/0x7+parseInt(_0x769d0e(0x160))/0x8+parseInt(_0x769d0e(0x165))/0x9;if(_0x8a736===_0x25dfd0)break;else _0x254fb0['push'](_0x254fb0['shift']());}catch(_0x10c77d){_0x254fb0['push'](_0x254fb0['shift']());}}}(a129_0x1790,0xecbad));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0xf91b49=a129_0x2946,_0x3f1f98=getTemplateBaseUrl();return _0x3f1f98+_0xf91b49(0x15c);}const CACHE_DIR=join(process[a129_0x59d705(0x16c)][a129_0x59d705(0x154)]||process[a129_0x59d705(0x16c)][a129_0x59d705(0x16e)]||'',a129_0x59d705(0x169),'cache');export async function fetchGuidesFromCDN(){const _0x2297cc=a129_0x59d705,_0x2ac692=getGuidesCdnUrl(),_0xac1d2c=await fetch(_0x2ac692,{'headers':{'Accept':_0x2297cc(0x164)}});if(!_0xac1d2c['ok'])throw new Error('CDN\x20请求失败:\x20'+_0xac1d2c[_0x2297cc(0x15d)]+'\x20'+_0xac1d2c[_0x2297cc(0x170)]);const _0x2b0fea=await _0xac1d2c[_0x2297cc(0x162)]();if(!_0x2b0fea['guides']||typeof _0x2b0fea[_0x2297cc(0x158)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x2b0fea;}export function writeGuidesToProject(_0x4134b5,_0x5e730b,_0x586487=a129_0x59d705(0x14f),_0x4d6b01){const _0x475c36=a129_0x59d705,_0x1fa2b8=join(_0x5e730b,_0x586487);mkdirSync(_0x1fa2b8,{'recursive':!![]});for(const [_0x3efdb6,_0x2e7a3e]of Object[_0x475c36(0x153)](_0x4134b5[_0x475c36(0x158)])){let _0x6bc81a=_0x2e7a3e[_0x475c36(0x159)];_0x2e7a3e[_0x475c36(0x150)]&&(_0x6bc81a=appendUpdateTime(_0x6bc81a,_0x2e7a3e['lastUpdated'])),writeFileSync(join(_0x1fa2b8,_0x3efdb6+_0x475c36(0x15a)),_0x6bc81a,'utf-8');}}function a129_0x2946(_0x566847,_0x2f7680){_0x566847=_0x566847-0x14f;const _0x1790d0=a129_0x1790();let _0x294615=_0x1790d0[_0x566847];return _0x294615;}export function appendUpdateTime(_0x34226e,_0x2294f0){const _0x4dce9c=a129_0x59d705;return _0x34226e=_0x34226e['replace'](/\n*>更新时间:.*$/m,''),_0x34226e[_0x4dce9c(0x155)]()+(_0x4dce9c(0x161)+_0x2294f0);}export function getSkillTemplate(_0x4721c4){const _0x1535e7=a129_0x59d705;return _0x4721c4[_0x1535e7(0x157)]?.[_0x1535e7(0x159)]||'';}export function appendExtendContents(_0x460d67,_0x3cd4f0,_0x89d80d){const _0x3f1ba5=a129_0x59d705,_0x5688e3=[];for(const [,_0x20e913]of Object['entries'](_0x3cd4f0[_0x3f1ba5(0x158)])){_0x20e913['extendContent']&&_0x5688e3['push'](_0x20e913[_0x3f1ba5(0x16d)]['trimEnd']());}if(_0x5688e3[_0x3f1ba5(0x16f)]===0x0)return _0x460d67;return _0x460d67[_0x3f1ba5(0x155)]()+'\x0a\x0a'+_0x5688e3[_0x3f1ba5(0x15b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3d07f1,_0x1bf837,_0x1c2743){const _0x8dc232=a129_0x59d705,_0x4d4adf=getSkillTemplate(_0x3d07f1);if(!_0x4d4adf)throw new Error(_0x8dc232(0x16b));const _0xbb13de=dirname(_0x1bf837);mkdirSync(_0xbb13de,{'recursive':!![]});let _0x421549=_0x4d4adf[_0x8dc232(0x15e)](/\{\{IDE_NAME\}\}/g,_0x1c2743);_0x421549=appendExtendContents(_0x421549,_0x3d07f1),_0x3d07f1['skillTemplate'][_0x8dc232(0x150)]&&(_0x421549=appendUpdateTime(_0x421549,_0x3d07f1[_0x8dc232(0x157)][_0x8dc232(0x150)])),writeFileSync(_0x1bf837,_0x421549,_0x8dc232(0x152));}export async function installGuides(_0x2c1a20){const _0x42d016=a129_0x59d705,_0x1faa63=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1faa63,_0x2c1a20),Object[_0x42d016(0x168)](_0x1faa63['guides'])[_0x42d016(0x16f)];}export function getGuidesSummary(_0x95515d){const _0x3c07e6=a129_0x59d705;return Object[_0x3c07e6(0x153)](_0x95515d[_0x3c07e6(0x158)])[_0x3c07e6(0x166)](([_0x3153a2,_0x5dd88b])=>({'key':_0x3153a2,'title':_0x5dd88b[_0x3c07e6(0x172)],'path':_0x5dd88b[_0x3c07e6(0x167)]}));}function a129_0x1790(){const _0x590113=['skillTemplate','guides','content','.md','join','/skills/guides.json','status','replace','974785YNYPHL','3999000hDvXZz','\x0a\x0a>更新时间:','json','1ZSmXjB','application/json','15599313TtKGKy','map','path','keys','.lovrabet','18XEfXck','CDN\x20数据中缺少\x20skillTemplate','env','extendContent','USERPROFILE','length','statusText','6989030iBJXHf','title','1366658fyDQgK','.lovrabet/skill/guides','lastUpdated','554668vRgYCS','utf-8','entries','HOME','trimEnd','862422XKWUqp'];a129_0x1790=function(){return _0x590113;};return a129_0x1790();}
1
+ const a127_0x6300ae=a127_0x4172;function a127_0x4172(_0x8dca31,_0x286ab4){_0x8dca31=_0x8dca31-0x1e7;const _0x57be56=a127_0x57be();let _0x417251=_0x57be56[_0x8dca31];return _0x417251;}(function(_0x1a57ae,_0x1b88b7){const _0x5cdd0c=a127_0x4172,_0x488425=_0x1a57ae();while(!![]){try{const _0xcb0acf=-parseInt(_0x5cdd0c(0x1ec))/0x1*(-parseInt(_0x5cdd0c(0x1ef))/0x2)+-parseInt(_0x5cdd0c(0x1f0))/0x3*(parseInt(_0x5cdd0c(0x1f4))/0x4)+parseInt(_0x5cdd0c(0x1ff))/0x5*(-parseInt(_0x5cdd0c(0x1f8))/0x6)+parseInt(_0x5cdd0c(0x1fe))/0x7*(-parseInt(_0x5cdd0c(0x209))/0x8)+parseInt(_0x5cdd0c(0x200))/0x9+-parseInt(_0x5cdd0c(0x202))/0xa+parseInt(_0x5cdd0c(0x1e7))/0xb;if(_0xcb0acf===_0x1b88b7)break;else _0x488425['push'](_0x488425['shift']());}catch(_0x1dae9b){_0x488425['push'](_0x488425['shift']());}}}(a127_0x57be,0x6f3e0));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a127_0x57be(){const _0x3ac9c9=['5uubyFZ','2767410eDwser','content','3027390iMNStT','utf-8','skillTemplate','path','object','CDN\x20返回数据格式错误','/skills/guides.json','8iEAypI','17496578JfJkQu','\x0a\x0a>更新时间:','trimEnd','length','lastUpdated','22877ySRprY','cache','join','4mOWsWB','306NeGilP','extendContent','title','entries','836tWmBEP','.md','guides','.lovrabet','3991836btcAEL','.lovrabet/skill/guides','CDN\x20请求失败:\x20','push','CDN\x20数据中缺少\x20skillTemplate','statusText','3491817hKtLRy'];a127_0x57be=function(){return _0x3ac9c9;};return a127_0x57be();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x450aed=a127_0x4172,_0x576d9f=getTemplateBaseUrl();return _0x576d9f+_0x450aed(0x208);}const CACHE_DIR=join(homedir(),a127_0x6300ae(0x1f7),a127_0x6300ae(0x1ed));export async function fetchGuidesFromCDN(){const _0x4d7e5d=a127_0x6300ae,_0x4d97f3=getGuidesCdnUrl(),_0xf3caab=await fetch(_0x4d97f3,{'headers':{'Accept':'application/json'}});if(!_0xf3caab['ok'])throw new Error(_0x4d7e5d(0x1fa)+_0xf3caab['status']+'\x20'+_0xf3caab[_0x4d7e5d(0x1fd)]);const _0x443678=await _0xf3caab['json']();if(!_0x443678[_0x4d7e5d(0x1f6)]||typeof _0x443678[_0x4d7e5d(0x1f6)]!==_0x4d7e5d(0x206))throw new Error(_0x4d7e5d(0x207));return _0x443678;}export function writeGuidesToProject(_0x574101,_0x4d590f,_0x55d454=a127_0x6300ae(0x1f9),_0x3493e5){const _0x1ca040=a127_0x6300ae,_0xdeb377=join(_0x4d590f,_0x55d454);mkdirSync(_0xdeb377,{'recursive':!![]});for(const [_0x4e01ea,_0x231742]of Object['entries'](_0x574101[_0x1ca040(0x1f6)])){let _0x526931=_0x231742['content'];_0x231742[_0x1ca040(0x1eb)]&&(_0x526931=appendUpdateTime(_0x526931,_0x231742[_0x1ca040(0x1eb)])),writeFileSync(join(_0xdeb377,_0x4e01ea+_0x1ca040(0x1f5)),_0x526931,_0x1ca040(0x203));}}export function appendUpdateTime(_0x4a3e52,_0x3c4db2){const _0x21bdab=a127_0x6300ae;return _0x4a3e52=_0x4a3e52['replace'](/\n*>更新时间:.*$/m,''),_0x4a3e52['trimEnd']()+(_0x21bdab(0x1e8)+_0x3c4db2);}export function getSkillTemplate(_0x4dc415){const _0x339efe=a127_0x6300ae;return _0x4dc415[_0x339efe(0x204)]?.[_0x339efe(0x201)]||'';}export function appendExtendContents(_0x511668,_0x27f4a9,_0x2adf14){const _0x1134ca=a127_0x6300ae,_0x3dc0c9=[];for(const [,_0x2212c9]of Object['entries'](_0x27f4a9[_0x1134ca(0x1f6)])){_0x2212c9[_0x1134ca(0x1f1)]&&_0x3dc0c9[_0x1134ca(0x1fb)](_0x2212c9[_0x1134ca(0x1f1)][_0x1134ca(0x1e9)]());}if(_0x3dc0c9[_0x1134ca(0x1ea)]===0x0)return _0x511668;return _0x511668[_0x1134ca(0x1e9)]()+'\x0a\x0a'+_0x3dc0c9[_0x1134ca(0x1ee)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xd18c24,_0x15c114,_0xd5d118){const _0x49c1df=a127_0x6300ae,_0x296063=getSkillTemplate(_0xd18c24);if(!_0x296063)throw new Error(_0x49c1df(0x1fc));const _0x13ecd8=dirname(_0x15c114);mkdirSync(_0x13ecd8,{'recursive':!![]});let _0xbdbfdb=_0x296063['replace'](/\{\{IDE_NAME\}\}/g,_0xd5d118);_0xbdbfdb=appendExtendContents(_0xbdbfdb,_0xd18c24),_0xd18c24[_0x49c1df(0x204)][_0x49c1df(0x1eb)]&&(_0xbdbfdb=appendUpdateTime(_0xbdbfdb,_0xd18c24['skillTemplate']['lastUpdated'])),writeFileSync(_0x15c114,_0xbdbfdb,_0x49c1df(0x203));}export async function installGuides(_0x307024){const _0x1e82f7=a127_0x6300ae,_0x224c8b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x224c8b,_0x307024),Object['keys'](_0x224c8b[_0x1e82f7(0x1f6)])[_0x1e82f7(0x1ea)];}export function getGuidesSummary(_0x86d0a2){const _0x34f92f=a127_0x6300ae;return Object[_0x34f92f(0x1f3)](_0x86d0a2[_0x34f92f(0x1f6)])['map'](([_0x1a4dad,_0x42d77d])=>({'key':_0x1a4dad,'title':_0x42d77d[_0x34f92f(0x1f2)],'path':_0x42d77d[_0x34f92f(0x205)]}));}
@@ -1 +1 @@
1
- function a130_0x3c49(_0x391439,_0x48dfca){_0x391439=_0x391439-0x13a;const _0x513f1f=a130_0x513f();let _0x3c4978=_0x513f1f[_0x391439];return _0x3c4978;}(function(_0x46cedd,_0x486d07){const _0x3a223f=a130_0x3c49,_0x83ba77=_0x46cedd();while(!![]){try{const _0x363ccf=-parseInt(_0x3a223f(0x14d))/0x1+-parseInt(_0x3a223f(0x154))/0x2*(-parseInt(_0x3a223f(0x14e))/0x3)+-parseInt(_0x3a223f(0x150))/0x4*(-parseInt(_0x3a223f(0x13b))/0x5)+parseInt(_0x3a223f(0x13f))/0x6*(parseInt(_0x3a223f(0x144))/0x7)+parseInt(_0x3a223f(0x152))/0x8*(parseInt(_0x3a223f(0x13e))/0x9)+-parseInt(_0x3a223f(0x153))/0xa+parseInt(_0x3a223f(0x14b))/0xb;if(_0x363ccf===_0x486d07)break;else _0x83ba77['push'](_0x83ba77['shift']());}catch(_0x575d12){_0x83ba77['push'](_0x83ba77['shift']());}}}(a130_0x513f,0x97414));export async function httpRequest(_0x41415f,_0x441db5={}){const _0x3da6fa=a130_0x3c49,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x441db5;let _0x1401c8=null;for(let _0x2922b6=0x0;_0x2922b6<=retries;_0x2922b6++){try{const _0x2859e4=new AbortController(),_0x24f507=setTimeout(()=>_0x2859e4[_0x3da6fa(0x157)](),timeout),_0xb7438f=await fetch(_0x41415f,{'headers':headers,'signal':_0x2859e4[_0x3da6fa(0x13a)]});clearTimeout(_0x24f507);let _0x3a33f9;const _0x3ee99d=_0xb7438f[_0x3da6fa(0x145)][_0x3da6fa(0x14c)](_0x3da6fa(0x151));return _0x3ee99d?.[_0x3da6fa(0x146)](_0x3da6fa(0x147))?_0x3a33f9=await _0xb7438f['json']():_0x3a33f9=await _0xb7438f['text'](),{'ok':_0xb7438f['ok'],'status':_0xb7438f['status'],'statusText':_0xb7438f[_0x3da6fa(0x13d)],'data':_0x3a33f9,'headers':_0xb7438f[_0x3da6fa(0x145)],'url':_0xb7438f[_0x3da6fa(0x155)],'text':()=>_0xb7438f['text']()};}catch(_0x2a3596){_0x1401c8=_0x2a3596 instanceof Error?_0x2a3596:new Error(String(_0x2a3596));if(_0x2922b6===retries)break;if(shouldRetry(_0x2a3596)){console[_0x3da6fa(0x141)]('*\x20请求失败,'+retryDelay+_0x3da6fa(0x156)+(_0x2922b6+0x1)+_0x3da6fa(0x148)),await sleep(retryDelay);continue;}else break;}}throw _0x1401c8||new Error('Request\x20failed');}function shouldRetry(_0x11bad9){const _0x2c2479=a130_0x3c49;if(_0x11bad9 instanceof Error){if(_0x11bad9[_0x2c2479(0x143)]===_0x2c2479(0x13c))return![];if(_0x11bad9[_0x2c2479(0x143)]===_0x2c2479(0x149)&&_0x11bad9[_0x2c2479(0x142)]['includes'](_0x2c2479(0x140)))return!![];if(_0x11bad9[_0x2c2479(0x142)][_0x2c2479(0x146)](_0x2c2479(0x14f)))return!![];if(_0x11bad9[_0x2c2479(0x142)][_0x2c2479(0x146)](_0x2c2479(0x14a)))return![];}return![];}function sleep(_0x2855b3){return new Promise(_0x2120c0=>setTimeout(_0x2120c0,_0x2855b3));}export function validateUrl(_0x583209){try{return new URL(_0x583209),!![];}catch{return![];}}function a130_0x513f(){const _0x3e1f2f=['9287880mrVjsE','2wOdNOq','url','ms\x20后进行第\x20','abort','signal','4252890yKzoPZ','AbortError','statusText','9niriVG','110622MaDYya','fetch','log','message','name','259bcnPof','headers','includes','application/json','\x20次重试...','TypeError','ENOTFOUND','738870yPfGvp','get','612587QxIlTW','1406661ecgFXY','ECONNRESET','4ZPRelU','content-type','736888yJItWF'];a130_0x513f=function(){return _0x3e1f2f;};return a130_0x513f();}
1
+ (function(_0x505570,_0x9c45f4){const _0x2bbd8d=a128_0x52ea,_0x4da9ec=_0x505570();while(!![]){try{const _0x186326=-parseInt(_0x2bbd8d(0x1cc))/0x1+-parseInt(_0x2bbd8d(0x1cf))/0x2*(parseInt(_0x2bbd8d(0x1ba))/0x3)+-parseInt(_0x2bbd8d(0x1bf))/0x4+-parseInt(_0x2bbd8d(0x1cd))/0x5*(parseInt(_0x2bbd8d(0x1c7))/0x6)+parseInt(_0x2bbd8d(0x1d0))/0x7*(-parseInt(_0x2bbd8d(0x1b5))/0x8)+-parseInt(_0x2bbd8d(0x1b8))/0x9*(-parseInt(_0x2bbd8d(0x1b6))/0xa)+parseInt(_0x2bbd8d(0x1bd))/0xb;if(_0x186326===_0x9c45f4)break;else _0x4da9ec['push'](_0x4da9ec['shift']());}catch(_0x4c9015){_0x4da9ec['push'](_0x4da9ec['shift']());}}}(a128_0x5833,0x911c1));function a128_0x52ea(_0x132142,_0x4c6ccc){_0x132142=_0x132142-0x1b4;const _0x5833df=a128_0x5833();let _0x52ea0f=_0x5833df[_0x132142];return _0x52ea0f;}export async function httpRequest(_0x1009ce,_0x51828f={}){const _0x6b7ee4=a128_0x52ea,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x51828f;let _0x56bbc6=null;for(let _0x4702a3=0x0;_0x4702a3<=retries;_0x4702a3++){try{const _0x3f5cf4=new AbortController(),_0x1fae55=setTimeout(()=>_0x3f5cf4[_0x6b7ee4(0x1c5)](),timeout),_0x5636e0=await fetch(_0x1009ce,{'headers':headers,'signal':_0x3f5cf4['signal']});clearTimeout(_0x1fae55);let _0x100a25;const _0x1242cd=_0x5636e0[_0x6b7ee4(0x1c3)][_0x6b7ee4(0x1b4)](_0x6b7ee4(0x1b7));return _0x1242cd?.[_0x6b7ee4(0x1c6)]('application/json')?_0x100a25=await _0x5636e0[_0x6b7ee4(0x1cb)]():_0x100a25=await _0x5636e0[_0x6b7ee4(0x1bc)](),{'ok':_0x5636e0['ok'],'status':_0x5636e0[_0x6b7ee4(0x1b9)],'statusText':_0x5636e0[_0x6b7ee4(0x1c2)],'data':_0x100a25,'headers':_0x5636e0[_0x6b7ee4(0x1c3)],'url':_0x5636e0['url'],'text':()=>_0x5636e0['text']()};}catch(_0x45e1e5){_0x56bbc6=_0x45e1e5 instanceof Error?_0x45e1e5:new Error(String(_0x45e1e5));if(_0x4702a3===retries)break;if(shouldRetry(_0x45e1e5)){console[_0x6b7ee4(0x1ca)](_0x6b7ee4(0x1bb)+retryDelay+_0x6b7ee4(0x1d1)+(_0x4702a3+0x1)+_0x6b7ee4(0x1be)),await sleep(retryDelay);continue;}else break;}}throw _0x56bbc6||new Error(_0x6b7ee4(0x1c1));}function shouldRetry(_0x4675d0){const _0x3f5ce7=a128_0x52ea;if(_0x4675d0 instanceof Error){if(_0x4675d0[_0x3f5ce7(0x1c4)]===_0x3f5ce7(0x1ce))return![];if(_0x4675d0[_0x3f5ce7(0x1c4)]===_0x3f5ce7(0x1c0)&&_0x4675d0[_0x3f5ce7(0x1c9)]['includes'](_0x3f5ce7(0x1d2)))return!![];if(_0x4675d0[_0x3f5ce7(0x1c9)][_0x3f5ce7(0x1c6)](_0x3f5ce7(0x1c8)))return!![];if(_0x4675d0[_0x3f5ce7(0x1c9)][_0x3f5ce7(0x1c6)]('ENOTFOUND'))return![];}return![];}function sleep(_0x1d4b9e){return new Promise(_0x3eca2f=>setTimeout(_0x3eca2f,_0x1d4b9e));}export function validateUrl(_0x2772ef){try{return new URL(_0x2772ef),!![];}catch{return![];}}function a128_0x5833(){const _0x2855d8=['name','abort','includes','5915928lXBeQf','ECONNRESET','message','log','json','680134nIztRR','5gWqOsO','AbortError','2xAASNQ','7BcsMge','ms\x20后进行第\x20','fetch','get','235784uPdtsD','8000560OdkYYc','content-type','9jVrAGT','status','2262099FtdcjB','*\x20请求失败,','text','35994849oJGymx','\x20次重试...','4113272uNaryo','TypeError','Request\x20failed','statusText','headers'];a128_0x5833=function(){return _0x2855d8;};return a128_0x5833();}
@@ -0,0 +1 @@
1
+ function a129_0xf187(_0x5809e3,_0x4d9abe){_0x5809e3=_0x5809e3-0xcd;const _0x4e7ad2=a129_0x4e7a();let _0xf18792=_0x4e7ad2[_0x5809e3];return _0xf18792;}(function(_0x429acb,_0x5c6fa5){const _0x215cf9=a129_0xf187,_0x226a65=_0x429acb();while(!![]){try{const _0x52dc2b=parseInt(_0x215cf9(0xdb))/0x1*(parseInt(_0x215cf9(0xde))/0x2)+-parseInt(_0x215cf9(0xd4))/0x3*(parseInt(_0x215cf9(0xd3))/0x4)+-parseInt(_0x215cf9(0xdf))/0x5*(-parseInt(_0x215cf9(0xd7))/0x6)+-parseInt(_0x215cf9(0xd2))/0x7*(parseInt(_0x215cf9(0xce))/0x8)+parseInt(_0x215cf9(0xdd))/0x9+-parseInt(_0x215cf9(0xd6))/0xa*(-parseInt(_0x215cf9(0xd9))/0xb)+parseInt(_0x215cf9(0xd1))/0xc*(parseInt(_0x215cf9(0xcf))/0xd);if(_0x52dc2b===_0x5c6fa5)break;else _0x226a65['push'](_0x226a65['shift']());}catch(_0x190ff1){_0x226a65['push'](_0x226a65['shift']());}}}(a129_0x4e7a,0xe3546));function a129_0x4e7a(){const _0x23f320=['583857tgjQoQ','2789254EmXpTF','25pRqwEl','stdin','3376RKfDgT','4901KOqzKu','isRaw','1332hudifN','22526twsLDQ','516NxfCEp','3228OgQCAG','isTTY','1341530PDJAsJ','306996GiFvuo','nonInteractive','55SnQRzl','true','1HRQayq','stdout'];a129_0x4e7a=function(){return _0x23f320;};return a129_0x4e7a();}function env(_0x1c338a){return process.env[`RABETBASE_${_0x1c338a}`]||process.env[`LOVRABET_${_0x1c338a}`]||undefined;}export function isNonInteractive(_0x4f9670){const _0x5c7d70=a129_0xf187;return!!(_0x4f9670[_0x5c7d70(0xd8)]||_0x4f9670['ci']||env('CI')===_0x5c7d70(0xda)||process.env.CI===_0x5c7d70(0xda)||!process[_0x5c7d70(0xdc)][_0x5c7d70(0xd5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x60710c=a129_0xf187;if(!process[_0x60710c(0xcd)][_0x60710c(0xd5)])return![];try{const _0x545c94=process[_0x60710c(0xcd)][_0x60710c(0xd0)];return process[_0x60710c(0xcd)]['setRawMode'](!![]),process['stdin']['setRawMode'](_0x545c94??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a131_0x5420fa=a131_0x1db8;(function(_0x243456,_0x3ceecf){const _0x211977=a131_0x1db8,_0x34b669=_0x243456();while(!![]){try{const _0x50e792=parseInt(_0x211977(0x170))/0x1+parseInt(_0x211977(0x185))/0x2+parseInt(_0x211977(0x179))/0x3+-parseInt(_0x211977(0x187))/0x4*(parseInt(_0x211977(0x16d))/0x5)+-parseInt(_0x211977(0x16f))/0x6+-parseInt(_0x211977(0x161))/0x7*(parseInt(_0x211977(0x177))/0x8)+parseInt(_0x211977(0x190))/0x9;if(_0x50e792===_0x3ceecf)break;else _0x34b669['push'](_0x34b669['shift']());}catch(_0x1707ea){_0x34b669['push'](_0x34b669['shift']());}}}(a131_0x4ea2,0xea91a));function a131_0x4ea2(){const _0x51a157=['yellow','blue','开始执行:\x20','1057036UAtlqy','readLogs','24EoxROT','clearLogs','getWinstonInstance','setRawCommand','filter','winstonLogger','readFileSync','log','parse','8716968AkjAum','info','utf8','error','success','green','existsSync','5026ZlRGPn','join','logTask','timestamp','createLogger','clear','duration','toISOString','split','details','stringify','red','441050cDiBby','printf','1653354CXbNaH','492974hZHoSV','logFilePath','完成:\x20','.lovrabet.log','errors','format','warn','11080TAXqBB','level','2309997pDQwKE','File','mkdirSync','setLogPath','currentRawCommand','now','dirname','unknown','失败:\x20'];a131_0x4ea2=function(){return _0x51a157;};return a131_0x4ea2();}import a131_0x19001b from'winston';import a131_0x19658a from'node:fs';import a131_0x40c0e1 from'node:path';function a131_0x1db8(_0x6234f2,_0x429fe9){_0x6234f2=_0x6234f2-0x160;const _0x4ea23f=a131_0x4ea2();let _0x1db8b0=_0x4ea23f[_0x6234f2];return _0x1db8b0;}class Logger{['winstonLogger'];[a131_0x5420fa(0x171)];[a131_0x5420fa(0x17d)]='';constructor(){const _0x53149c=a131_0x5420fa;this[_0x53149c(0x171)]='';}[a131_0x5420fa(0x18a)](_0x592789){const _0x2d6fe1=a131_0x5420fa;this[_0x2d6fe1(0x17d)]=_0x592789;}['initWinstonLogger'](){const _0x1cbc09=a131_0x5420fa,_0x77127=a131_0x40c0e1[_0x1cbc09(0x17f)](this[_0x1cbc09(0x171)]);!a131_0x19658a[_0x1cbc09(0x160)](_0x77127)&&a131_0x19658a[_0x1cbc09(0x17b)](_0x77127,{'recursive':!![]});const _0x5c1327=a131_0x19001b[_0x1cbc09(0x175)]['combine'](a131_0x19001b[_0x1cbc09(0x175)][_0x1cbc09(0x164)](),a131_0x19001b[_0x1cbc09(0x175)][_0x1cbc09(0x174)]({'stack':!![]}),a131_0x19001b[_0x1cbc09(0x175)][_0x1cbc09(0x16e)](_0x7fa8f6=>{const _0x45f959=_0x1cbc09,_0x2dfc08={'timestamp':_0x7fa8f6[_0x45f959(0x164)]||new Date()[_0x45f959(0x168)](),'level':_0x7fa8f6[_0x45f959(0x178)]||_0x45f959(0x191),'command':_0x7fa8f6['command']||_0x45f959(0x180),'rawCommand':_0x7fa8f6['rawCommand']||this[_0x45f959(0x17d)]||undefined,'message':_0x7fa8f6['message']||'','duration':_0x7fa8f6[_0x45f959(0x167)]||undefined,'details':_0x7fa8f6[_0x45f959(0x16a)]||undefined};return JSON[_0x45f959(0x16b)](_0x2dfc08);}));this[_0x1cbc09(0x18c)]=a131_0x19001b[_0x1cbc09(0x165)]({'level':_0x1cbc09(0x191),'format':_0x5c1327,'transports':[new a131_0x19001b['transports'][(_0x1cbc09(0x17a))]({'filename':this[_0x1cbc09(0x171)],'level':_0x1cbc09(0x191)})],'silent':![]}),a131_0x19001b['addColors']({'success':_0x1cbc09(0x195),'error':_0x1cbc09(0x16c),'warn':_0x1cbc09(0x182),'info':_0x1cbc09(0x183)});}[a131_0x5420fa(0x17c)](_0x4ffcb2){const _0x2bc803=a131_0x5420fa;this['logFilePath']=a131_0x40c0e1[_0x2bc803(0x162)](_0x4ffcb2,_0x2bc803(0x173)),this[_0x2bc803(0x18c)]&&this[_0x2bc803(0x18c)][_0x2bc803(0x166)](),this['initWinstonLogger']();}['info'](_0x38aaa8,_0x4a12f4,_0x154105){const _0x37f871=a131_0x5420fa;if(!this[_0x37f871(0x171)]||!this[_0x37f871(0x18c)])return;this[_0x37f871(0x18c)][_0x37f871(0x191)](_0x4a12f4,{'command':_0x38aaa8,'details':_0x154105});}['success'](_0x7bb77f,_0x3a1294,_0x8af136,_0x29114b){const _0x4bc724=a131_0x5420fa;if(!this[_0x4bc724(0x171)]||!this[_0x4bc724(0x18c)])return;this['winstonLogger'][_0x4bc724(0x18e)](_0x4bc724(0x191),_0x3a1294,{'level':'success','command':_0x7bb77f,'duration':_0x8af136,'details':_0x29114b});}[a131_0x5420fa(0x193)](_0x4f899f,_0x5f1a30,_0x441fbb){const _0x2f431a=a131_0x5420fa;if(!this[_0x2f431a(0x171)]||!this[_0x2f431a(0x18c)])return;this[_0x2f431a(0x18c)][_0x2f431a(0x193)](_0x5f1a30,{'command':_0x4f899f,'details':_0x441fbb});}['warn'](_0x500a3b,_0x3debd9,_0x307cb2){const _0x1e7ef8=a131_0x5420fa;if(!this[_0x1e7ef8(0x171)]||!this['winstonLogger'])return;this[_0x1e7ef8(0x18c)][_0x1e7ef8(0x176)](_0x3debd9,{'command':_0x500a3b,'details':_0x307cb2});}async[a131_0x5420fa(0x163)](_0x738c95,_0x576c25,_0x1f25e4){const _0x1f3345=a131_0x5420fa,_0x25da88=Date[_0x1f3345(0x17e)]();this[_0x1f3345(0x191)](_0x738c95,_0x1f3345(0x184)+_0x576c25);try{const _0x227b46=await _0x1f25e4(),_0x29ffbe=Date[_0x1f3345(0x17e)]()-_0x25da88;return this[_0x1f3345(0x194)](_0x738c95,_0x1f3345(0x172)+_0x576c25,_0x29ffbe),_0x227b46;}catch(_0x1aa97f){const _0xd01817=Date['now']()-_0x25da88;this[_0x1f3345(0x193)](_0x738c95,_0x1f3345(0x181)+_0x576c25,{'error':_0x1aa97f instanceof Error?_0x1aa97f['message']:String(_0x1aa97f),'duration':_0xd01817});throw _0x1aa97f;}}[a131_0x5420fa(0x186)](){const _0x21ffbd=a131_0x5420fa;try{if(!a131_0x19658a[_0x21ffbd(0x160)](this[_0x21ffbd(0x171)]))return[];const _0xe7d9d2=a131_0x19658a[_0x21ffbd(0x18d)](this[_0x21ffbd(0x171)],'utf8');return _0xe7d9d2[_0x21ffbd(0x169)]('\x0a')[_0x21ffbd(0x18b)](_0xd5cffc=>_0xd5cffc['trim']())['map'](_0x3685c6=>JSON[_0x21ffbd(0x18f)](_0x3685c6));}catch(_0x3af377){return console[_0x21ffbd(0x176)]('Failed\x20to\x20read\x20logs:',_0x3af377),[];}}[a131_0x5420fa(0x188)](){const _0x3faf16=a131_0x5420fa;try{a131_0x19658a['existsSync'](this['logFilePath'])&&a131_0x19658a['writeFileSync'](this[_0x3faf16(0x171)],'',_0x3faf16(0x192));}catch(_0x14acb2){console['warn']('Failed\x20to\x20clear\x20logs:',_0x14acb2);}}[a131_0x5420fa(0x189)](){const _0x4bed1f=a131_0x5420fa;return this[_0x4bed1f(0x18c)];}}export const logger=new Logger();
1
+ const a130_0x328069=a130_0x3c11;function a130_0x5a24(){const _0x3a2573=['green','setLogPath','timestamp','失败:\x20','filter','printf','3459870pDPoBj','map','blue','readFileSync','error','1493674rCwSKE','message','now','command','Failed\x20to\x20read\x20logs:','createLogger','writeFileSync','logTask','combine','297870HROneT','完成:\x20','success','setRawCommand','mkdirSync','duration','winstonLogger','utf8','details','4Bvgsab','readLogs','info','dirname','existsSync','logFilePath','addColors','clear','currentRawCommand','initWinstonLogger','开始执行:\x20','19523jBPpkw','5578695UwPcKA','level','Failed\x20to\x20clear\x20logs:','split','641028wneuxV','rawCommand','46dtvWcH','stringify','File','toISOString','join','5DoMKlQ','3083824UbVbbE','clearLogs','format','warn'];a130_0x5a24=function(){return _0x3a2573;};return a130_0x5a24();}function a130_0x3c11(_0x1df81e,_0x15bef6){_0x1df81e=_0x1df81e-0x99;const _0x5a24d9=a130_0x5a24();let _0x3c11af=_0x5a24d9[_0x1df81e];return _0x3c11af;}(function(_0x1b1c8d,_0x509503){const _0x2ed218=a130_0x3c11,_0x27c725=_0x1b1c8d();while(!![]){try{const _0x545f2f=-parseInt(_0x2ed218(0xd0))/0x1*(-parseInt(_0x2ed218(0x9e))/0x2)+parseInt(_0x2ed218(0xbc))/0x3*(parseInt(_0x2ed218(0xc5))/0x4)+-parseInt(_0x2ed218(0xa3))/0x5*(-parseInt(_0x2ed218(0x9c))/0x6)+-parseInt(_0x2ed218(0xb3))/0x7+-parseInt(_0x2ed218(0xa4))/0x8+parseInt(_0x2ed218(0xd1))/0x9+-parseInt(_0x2ed218(0xae))/0xa;if(_0x545f2f===_0x509503)break;else _0x27c725['push'](_0x27c725['shift']());}catch(_0x560afc){_0x27c725['push'](_0x27c725['shift']());}}}(a130_0x5a24,0x509b5));import a130_0x3d9b57 from'winston';import a130_0x42280b from'node:fs';import a130_0x12f18e from'node:path';class Logger{['winstonLogger'];[a130_0x328069(0xca)];[a130_0x328069(0xcd)]='';constructor(){this['logFilePath']='';}[a130_0x328069(0xbf)](_0x366685){const _0xcaf641=a130_0x328069;this[_0xcaf641(0xcd)]=_0x366685;}[a130_0x328069(0xce)](){const _0x5d0baa=a130_0x328069,_0x179b97=a130_0x12f18e[_0x5d0baa(0xc8)](this[_0x5d0baa(0xca)]);!a130_0x42280b['existsSync'](_0x179b97)&&a130_0x42280b[_0x5d0baa(0xc0)](_0x179b97,{'recursive':!![]});const _0x133e5d=a130_0x3d9b57[_0x5d0baa(0xa6)][_0x5d0baa(0xbb)](a130_0x3d9b57['format'][_0x5d0baa(0xaa)](),a130_0x3d9b57[_0x5d0baa(0xa6)]['errors']({'stack':!![]}),a130_0x3d9b57[_0x5d0baa(0xa6)][_0x5d0baa(0xad)](_0x143e78=>{const _0x2d4bbe=_0x5d0baa,_0x1aae2f={'timestamp':_0x143e78[_0x2d4bbe(0xaa)]||new Date()[_0x2d4bbe(0xa1)](),'level':_0x143e78[_0x2d4bbe(0x99)]||'info','command':_0x143e78[_0x2d4bbe(0xb6)]||'unknown','rawCommand':_0x143e78[_0x2d4bbe(0x9d)]||this[_0x2d4bbe(0xcd)]||undefined,'message':_0x143e78['message']||'','duration':_0x143e78[_0x2d4bbe(0xc1)]||undefined,'details':_0x143e78[_0x2d4bbe(0xc4)]||undefined};return JSON[_0x2d4bbe(0x9f)](_0x1aae2f);}));this[_0x5d0baa(0xc2)]=a130_0x3d9b57[_0x5d0baa(0xb8)]({'level':_0x5d0baa(0xc7),'format':_0x133e5d,'transports':[new a130_0x3d9b57['transports'][(_0x5d0baa(0xa0))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a130_0x3d9b57[_0x5d0baa(0xcb)]({'success':_0x5d0baa(0xa8),'error':'red','warn':'yellow','info':_0x5d0baa(0xb0)});}[a130_0x328069(0xa9)](_0x65e7bc){const _0x246bdc=a130_0x328069;this[_0x246bdc(0xca)]=a130_0x12f18e[_0x246bdc(0xa2)](_0x65e7bc,'.lovrabet.log'),this[_0x246bdc(0xc2)]&&this[_0x246bdc(0xc2)][_0x246bdc(0xcc)](),this['initWinstonLogger']();}[a130_0x328069(0xc7)](_0x499d6c,_0x1e0edf,_0x51a6d2){const _0x39e0c1=a130_0x328069;if(!this[_0x39e0c1(0xca)]||!this[_0x39e0c1(0xc2)])return;this[_0x39e0c1(0xc2)]['info'](_0x1e0edf,{'command':_0x499d6c,'details':_0x51a6d2});}[a130_0x328069(0xbe)](_0x4b6709,_0x10c9aa,_0x1f68a5,_0x3b04c2){const _0x32adf7=a130_0x328069;if(!this[_0x32adf7(0xca)]||!this[_0x32adf7(0xc2)])return;this[_0x32adf7(0xc2)]['log'](_0x32adf7(0xc7),_0x10c9aa,{'level':_0x32adf7(0xbe),'command':_0x4b6709,'duration':_0x1f68a5,'details':_0x3b04c2});}[a130_0x328069(0xb2)](_0x561d02,_0x5085e7,_0x1dd734){const _0x8fd21=a130_0x328069;if(!this[_0x8fd21(0xca)]||!this[_0x8fd21(0xc2)])return;this['winstonLogger'][_0x8fd21(0xb2)](_0x5085e7,{'command':_0x561d02,'details':_0x1dd734});}[a130_0x328069(0xa7)](_0x433dfd,_0x44fde3,_0x520b88){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['warn'](_0x44fde3,{'command':_0x433dfd,'details':_0x520b88});}async[a130_0x328069(0xba)](_0x307a42,_0x1a5c5a,_0x5eca58){const _0x29e800=a130_0x328069,_0x5458bf=Date[_0x29e800(0xb5)]();this[_0x29e800(0xc7)](_0x307a42,_0x29e800(0xcf)+_0x1a5c5a);try{const _0x56ac44=await _0x5eca58(),_0xb13829=Date[_0x29e800(0xb5)]()-_0x5458bf;return this['success'](_0x307a42,_0x29e800(0xbd)+_0x1a5c5a,_0xb13829),_0x56ac44;}catch(_0x508137){const _0x16dde9=Date[_0x29e800(0xb5)]()-_0x5458bf;this[_0x29e800(0xb2)](_0x307a42,_0x29e800(0xab)+_0x1a5c5a,{'error':_0x508137 instanceof Error?_0x508137[_0x29e800(0xb4)]:String(_0x508137),'duration':_0x16dde9});throw _0x508137;}}[a130_0x328069(0xc6)](){const _0x1f584b=a130_0x328069;try{if(!a130_0x42280b[_0x1f584b(0xc9)](this[_0x1f584b(0xca)]))return[];const _0x3684cf=a130_0x42280b[_0x1f584b(0xb1)](this[_0x1f584b(0xca)],_0x1f584b(0xc3));return _0x3684cf[_0x1f584b(0x9b)]('\x0a')[_0x1f584b(0xac)](_0x1354d7=>_0x1354d7['trim']())[_0x1f584b(0xaf)](_0x39ae66=>JSON['parse'](_0x39ae66));}catch(_0x36ff75){return console[_0x1f584b(0xa7)](_0x1f584b(0xb7),_0x36ff75),[];}}[a130_0x328069(0xa5)](){const _0x3110d2=a130_0x328069;try{a130_0x42280b[_0x3110d2(0xc9)](this[_0x3110d2(0xca)])&&a130_0x42280b[_0x3110d2(0xb9)](this[_0x3110d2(0xca)],'','utf8');}catch(_0xe0b9ae){console['warn'](_0x3110d2(0x9a),_0xe0b9ae);}}['getWinstonInstance'](){const _0x491668=a130_0x328069;return this[_0x491668(0xc2)];}}export const logger=new Logger();
@@ -0,0 +1 @@
1
+ const a131_0x27d309=a131_0x2723;function a131_0x2723(_0x253516,_0xf9c99a){_0x253516=_0x253516-0x151;const _0x56e30e=a131_0x56e3();let _0x2723fe=_0x56e30e[_0x253516];return _0x2723fe;}(function(_0xfde759,_0x30bda7){const _0xa5deb3=a131_0x2723,_0x2cb2ad=_0xfde759();while(!![]){try{const _0x320b23=-parseInt(_0xa5deb3(0x157))/0x1*(-parseInt(_0xa5deb3(0x153))/0x2)+-parseInt(_0xa5deb3(0x155))/0x3*(-parseInt(_0xa5deb3(0x15e))/0x4)+parseInt(_0xa5deb3(0x159))/0x5*(parseInt(_0xa5deb3(0x15d))/0x6)+-parseInt(_0xa5deb3(0x151))/0x7+parseInt(_0xa5deb3(0x154))/0x8+-parseInt(_0xa5deb3(0x156))/0x9*(parseInt(_0xa5deb3(0x15b))/0xa)+-parseInt(_0xa5deb3(0x15a))/0xb;if(_0x320b23===_0x30bda7)break;else _0x2cb2ad['push'](_0x2cb2ad['shift']());}catch(_0x1fa95b){_0x2cb2ad['push'](_0x2cb2ad['shift']());}}}(a131_0x56e3,0x61619));export const isWindows=process[a131_0x27d309(0x152)]===a131_0x27d309(0x15c);function a131_0x56e3(){const _0x174819=['2270DVnTkj','win32','58944TDpnio','4IMPHIy','3619364EJbWGE','platform','138bWfmeh','3720368QRPuqi','300039UeBqTJ','12087zTkGCX','493ROiPnA','.cmd','330XbBThO','293414WSOTyI'];a131_0x56e3=function(){return _0x174819;};return a131_0x56e3();}export function resolveNpmBin(_0x426969){const _0x1f0612=a131_0x27d309;return isWindows?_0x426969+_0x1f0612(0x158):_0x426969;}
@@ -1 +1 @@
1
- const a132_0x85b328=a132_0x4e0c;(function(_0xca8eba,_0x1442e3){const _0x10b847=a132_0x4e0c,_0x3f53c6=_0xca8eba();while(!![]){try{const _0xc88189=-parseInt(_0x10b847(0xe1))/0x1+-parseInt(_0x10b847(0xeb))/0x2*(parseInt(_0x10b847(0xe5))/0x3)+-parseInt(_0x10b847(0xdf))/0x4*(parseInt(_0x10b847(0xec))/0x5)+parseInt(_0x10b847(0xe4))/0x6*(-parseInt(_0x10b847(0xd8))/0x7)+parseInt(_0x10b847(0xdd))/0x8+-parseInt(_0x10b847(0xda))/0x9+parseInt(_0x10b847(0xed))/0xa;if(_0xc88189===_0x1442e3)break;else _0x3f53c6['push'](_0x3f53c6['shift']());}catch(_0x374a8a){_0x3f53c6['push'](_0x3f53c6['shift']());}}}(a132_0x1ec6,0x381bd));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';function a132_0x1ec6(){const _0x2091f2=['status','5082UcTcjP','12TRyNBP','lovrabet_rules.mdc','CDN\x20请求失败:\x20','content','catch','本地模板文件不存在:\x20','179674RUwApQ','49960rfxuWa','12039200iiUxyA','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','651xwoQLn','json','1473291ISWgSU','statusText','application/json','939960fcIwXw','lastUpdated','76XkCKAV','utf-8','299928tZTZXz','agents.md'];a132_0x1ec6=function(){return _0x2091f2;};return a132_0x1ec6();}import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x34a4cb=getTemplateBaseUrl();return _0x34a4cb+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x85b328(0xd7));function a132_0x4e0c(_0x36ce53,_0x5b6cc1){_0x36ce53=_0x36ce53-0xd7;const _0x1ec62d=a132_0x1ec6();let _0x4e0c53=_0x1ec62d[_0x36ce53];return _0x4e0c53;}export async function fetchRulesFromCDN(){const _0x4c37bc=a132_0x85b328,_0x41dc2a=getRulesCdnUrl(),_0x24f0be=await fetch(_0x41dc2a,{'headers':{'Accept':_0x4c37bc(0xdc)}});if(!_0x24f0be['ok'])throw new Error(_0x4c37bc(0xe7)+_0x24f0be[_0x4c37bc(0xe3)]+'\x20'+_0x24f0be[_0x4c37bc(0xdb)]);const _0x5d73fd=await _0x24f0be[_0x4c37bc(0xd9)]();if(!_0x5d73fd[_0x4c37bc(0xe8)]||typeof _0x5d73fd[_0x4c37bc(0xe8)]!=='string')throw new Error(_0x4c37bc(0xee));return _0x5d73fd;}export async function getRulesContent(){const _0x47887d=a132_0x85b328;try{const _0x43a0d0=await fetchRulesFromCDN();return _0x43a0d0[_0x47887d(0xe8)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3970ee=a132_0x85b328;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x3970ee(0xea)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xd84cea){const _0x4991cb=a132_0x85b328,_0x14bbbf=await fetchRulesFromCDN()[_0x4991cb(0xe9)](()=>null);let _0x2f9d00;_0x14bbbf?(_0x2f9d00=_0x14bbbf[_0x4991cb(0xe8)],_0x14bbbf['lastUpdated']&&(_0x2f9d00=appendUpdateTime(_0x2f9d00,_0x14bbbf[_0x4991cb(0xde)]))):_0x2f9d00=readLocalTemplate();const _0x3b2dc4=dirname(_0xd84cea);!existsSync(_0x3b2dc4)&&mkdirSync(_0x3b2dc4,{'recursive':!![]}),writeFileSync(_0xd84cea,_0x2f9d00,_0x4991cb(0xe0));}export async function copyRulesToCursor(_0x3c616f){const _0x587a87=a132_0x85b328,_0x292b2f=join(_0x3c616f,'.cursor/rules'),_0x1e7a7f=join(_0x292b2f,_0x587a87(0xe6));if(existsSync(_0x1e7a7f))return![];return await writeRulesFile(_0x1e7a7f),!![];}export async function copyRulesToAgentsMd(_0x135898){const _0x546e7d=a132_0x85b328,_0x1240d3=join(_0x135898,_0x546e7d(0xe2));if(existsSync(_0x1240d3))return![];return await writeRulesFile(_0x1240d3),!![];}
1
+ const a132_0x29572a=a132_0xbc94;(function(_0x5f4d78,_0x15933b){const _0x59314a=a132_0xbc94,_0xa16406=_0x5f4d78();while(!![]){try{const _0x389ea7=-parseInt(_0x59314a(0x1d7))/0x1+parseInt(_0x59314a(0x1db))/0x2+-parseInt(_0x59314a(0x1d1))/0x3+parseInt(_0x59314a(0x1ce))/0x4*(parseInt(_0x59314a(0x1e2))/0x5)+-parseInt(_0x59314a(0x1d3))/0x6*(parseInt(_0x59314a(0x1e0))/0x7)+parseInt(_0x59314a(0x1d6))/0x8*(-parseInt(_0x59314a(0x1cf))/0x9)+-parseInt(_0x59314a(0x1d2))/0xa*(-parseInt(_0x59314a(0x1d9))/0xb);if(_0x389ea7===_0x15933b)break;else _0xa16406['push'](_0xa16406['shift']());}catch(_0x21c319){_0xa16406['push'](_0xa16406['shift']());}}}(a132_0x3709,0x37189));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a132_0xbc94(_0x1e0133,_0xd801ac){_0x1e0133=_0x1e0133-0x1cb;const _0x3709f3=a132_0x3709();let _0xbc94d=_0x3709f3[_0x1e0133];return _0xbc94d;}function getRulesCdnUrl(){const _0x582708=a132_0xbc94,_0x34584a=getTemplateBaseUrl();return _0x34584a+_0x582708(0x1d5);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x29572a(0x1df));export async function fetchRulesFromCDN(){const _0x3d3027=a132_0x29572a,_0x7522a6=getRulesCdnUrl(),_0x1b28b9=await fetch(_0x7522a6,{'headers':{'Accept':_0x3d3027(0x1d8)}});if(!_0x1b28b9['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1b28b9['status']+'\x20'+_0x1b28b9['statusText']);const _0x39ac78=await _0x1b28b9['json']();if(!_0x39ac78[_0x3d3027(0x1cb)]||typeof _0x39ac78[_0x3d3027(0x1cb)]!==_0x3d3027(0x1d0))throw new Error(_0x3d3027(0x1cc));return _0x39ac78;}export async function getRulesContent(){const _0x2a3ac3=a132_0x29572a;try{const _0x120d0e=await fetchRulesFromCDN();return _0x120d0e[_0x2a3ac3(0x1cb)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x22aac3=a132_0x29572a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x22aac3(0x1de));throw new Error(_0x22aac3(0x1dd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1b3405){const _0x1d2425=a132_0x29572a,_0x56ab1a=await fetchRulesFromCDN()[_0x1d2425(0x1da)](()=>null);let _0x56729e;_0x56ab1a?(_0x56729e=_0x56ab1a[_0x1d2425(0x1cb)],_0x56ab1a[_0x1d2425(0x1cd)]&&(_0x56729e=appendUpdateTime(_0x56729e,_0x56ab1a[_0x1d2425(0x1cd)]))):_0x56729e=readLocalTemplate();const _0x1f15ca=dirname(_0x1b3405);!existsSync(_0x1f15ca)&&mkdirSync(_0x1f15ca,{'recursive':!![]}),writeFileSync(_0x1b3405,_0x56729e,_0x1d2425(0x1de));}export async function copyRulesToCursor(_0x59367b){const _0x1a676d=a132_0x29572a,_0x49887e=join(_0x59367b,_0x1a676d(0x1e1)),_0x10733f=join(_0x49887e,_0x1a676d(0x1d4));if(existsSync(_0x10733f))return![];return await writeRulesFile(_0x10733f),!![];}export async function copyRulesToAgentsMd(_0x53f4aa){const _0x4b2868=a132_0x29572a,_0x4ef284=join(_0x53f4aa,_0x4b2868(0x1dc));if(existsSync(_0x4ef284))return![];return await writeRulesFile(_0x4ef284),!![];}function a132_0x3709(){const _0x436d68=['49007cNNhpl','.cursor/rules','2820XucUbv','content','CDN\x20返回数据格式错误','lastUpdated','620fMoIUc','9mkuQen','string','51249vIyZpz','8916790zeZqRh','258aQHvMR','lovrabet_rules.mdc','/rules/rules.json','2466680GbLBCy','286558wjpIPg','application/json','11MfSfgj','catch','319186ZqkUym','agents.md','本地模板文件不存在:\x20','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl'];a132_0x3709=function(){return _0x436d68;};return a132_0x3709();}
@@ -1 +1 @@
1
- export function sleep(_0x564db3){return new Promise(_0x4118ce=>setTimeout(_0x4118ce,_0x564db3));}
1
+ export function sleep(_0x1ef420){return new Promise(_0x51a8a9=>setTimeout(_0x51a8a9,_0x1ef420));}
@@ -1 +1 @@
1
- const a134_0x2af0ef=a134_0x3942;(function(_0xc80f8e,_0x279e5e){const _0x566c38=a134_0x3942,_0x231ac6=_0xc80f8e();while(!![]){try{const _0x4588da=parseInt(_0x566c38(0x1c1))/0x1*(-parseInt(_0x566c38(0x1a5))/0x2)+parseInt(_0x566c38(0x1ba))/0x3+parseInt(_0x566c38(0x1b5))/0x4*(-parseInt(_0x566c38(0x1c8))/0x5)+parseInt(_0x566c38(0x1aa))/0x6+-parseInt(_0x566c38(0x1b6))/0x7+parseInt(_0x566c38(0x1b0))/0x8+-parseInt(_0x566c38(0x1b1))/0x9;if(_0x4588da===_0x279e5e)break;else _0x231ac6['push'](_0x231ac6['shift']());}catch(_0x5b7c5f){_0x231ac6['push'](_0x231ac6['shift']());}}}(a134_0x45db,0xa0a3c));import a134_0x341def from'node:fs';import a134_0x143284 from'node:path';import{createRequire}from'node:module';import{logger}from'./logger.js';function a134_0x3942(_0x16f13b,_0x1d8af7){_0x16f13b=_0x16f13b-0x18d;const _0x45dbb8=a134_0x45db();let _0x394289=_0x45dbb8[_0x16f13b];return _0x394289;}function a134_0x45db(){const _0x49801c=['.json','extname','mkdir','datasetCode','map','.css','241nqRUhf','toLowerCase','\x20},','alias:\x20\x22','slice','toLocaleDateString','.md','5BZTvLL','join','name','2-digit','now','tableName:\x20\x22','message','push','processDirectory','toDisplayTitle','template','.tpl','toComponentName','.jsx','processFile','.tsx','includes','replace','split','toLocaleTimeString','toISOString','toUpperCase','replaceContent','pop','LOVRABET','charAt','.scss','模板内容替换失败','utf8','version','3384vkiGvz','name:\x20\x22','isDirectory','api','success','6880800lfJISX','alias','../../package.json','开始处理模板内容替换','writeFile','numeric','4228216LEYoDe','667827hrKOfw','replaceApiContent','.ts','promises','2831476vTwRZE','6271216AavXKc','readdir','tableName','endsWith','3205155CZRFuF'];a134_0x45db=function(){return _0x49801c;};return a134_0x45db();}const require=createRequire(import.meta.url),CLI_VERSION=require(a134_0x2af0ef(0x1ac))[a134_0x2af0ef(0x1a4)];export class TemplateReplacer{static[a134_0x2af0ef(0x193)](_0x45e8cb){const _0x328b87=a134_0x2af0ef,_0x5c1776=_0x45e8cb[_0x328b87(0x199)]('/')['pop']()||_0x45e8cb;return _0x5c1776[_0x328b87(0x199)]('-')[_0x328b87(0x1bf)](_0x255ac5=>_0x255ac5['charAt'](0x0)[_0x328b87(0x19c)]()+_0x255ac5[_0x328b87(0x1c5)](0x1)[_0x328b87(0x1c2)]())[_0x328b87(0x1c9)]('');}static[a134_0x2af0ef(0x190)](_0x122919){const _0x5d1d48=a134_0x2af0ef,_0x155b7d=_0x122919['split']('/')[_0x5d1d48(0x19e)]()||_0x122919;return _0x155b7d[_0x5d1d48(0x199)]('-')[_0x5d1d48(0x1bf)](_0x345061=>_0x345061[_0x5d1d48(0x1a0)](0x0)[_0x5d1d48(0x19c)]()+_0x345061['slice'](0x1)[_0x5d1d48(0x1c2)]())['join']('\x20');}static['replaceContent'](_0x403f8f,_0x18a32e,_0x24c667){const _0xcfda30=a134_0x2af0ef,_0x48dded=this['toComponentName'](_0x18a32e),_0x190d52=this[_0xcfda30(0x190)](_0x18a32e),_0x7e2152=new Date(),_0x43c6f3=_0x7e2152['toLocaleString'](undefined,{'year':'numeric','month':'2-digit','day':_0xcfda30(0x1cb),'hour':_0xcfda30(0x1cb),'minute':_0xcfda30(0x1cb),'second':'2-digit','hour12':![]})['replace'](/\//g,'-'),_0x4e6859=_0x7e2152[_0xcfda30(0x1c6)](undefined,{'year':_0xcfda30(0x1af),'month':_0xcfda30(0x1cb),'day':'2-digit'})[_0xcfda30(0x198)](/\//g,'-'),_0x1c53c0=_0x7e2152[_0xcfda30(0x19a)](undefined,{'hour12':![]});let _0x321f9d=_0x403f8f[_0xcfda30(0x198)](/\{CliVersion\}/g,CLI_VERSION)[_0xcfda30(0x198)](/\{ComponentName\}/g,_0x48dded)[_0xcfda30(0x198)](/\{DisplayTitle\}/g,_0x190d52)['replace'](/\{PageName\}/g,_0x18a32e)[_0xcfda30(0x198)](/\{TemplateName\}/g,_0x24c667)[_0xcfda30(0x198)](/\{CreatedAt\}/g,_0x43c6f3)['replace'](/\{CreatedDate\}/g,_0x4e6859)[_0xcfda30(0x198)](/\{CreatedTime\}/g,_0x1c53c0);return _0x321f9d;}static[a134_0x2af0ef(0x1b2)](_0x417d91,_0x3a8ef3,_0x1eb457,_0x336cf2,_0x5ebca3,_0x18d7c1,_0x49740b,_0x9a1d7e){const _0x57ea58=a134_0x2af0ef,_0x3fe830=new Date(),_0x53e888=_0x3fe830[_0x57ea58(0x19b)](),_0x5f4328=_0x1eb457[_0x57ea58(0x1bf)](_0x51757b=>{const _0x473a3c=_0x57ea58,_0x3b9a46=['datasetCode:\x20\x22'+_0x51757b[_0x473a3c(0x1be)]+'\x22',_0x473a3c(0x1cd)+_0x51757b[_0x473a3c(0x1b8)]+'\x22',_0x473a3c(0x1a6)+_0x51757b[_0x473a3c(0x1ca)]+'\x22'];return _0x51757b[_0x473a3c(0x1ab)]&&_0x3b9a46[_0x473a3c(0x18e)](_0x473a3c(0x1c4)+_0x51757b['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3b9a46[_0x473a3c(0x1c9)](',\x20')+_0x473a3c(0x1c3);})[_0x57ea58(0x1c9)](''),_0x16163=_0x336cf2||_0x1eb457[0x0]?.['alias']||'YourModel';let _0x19bb23=_0x417d91[_0x57ea58(0x198)](/\{AppCode\}/g,_0x3a8ef3)['replace'](/\{ModelConfigs\}/g,_0x5f4328)[_0x57ea58(0x198)](/\{ExampleModelName\}/g,_0x16163)[_0x57ea58(0x198)](/\{ApiFileName\}/g,_0x5ebca3||_0x57ea58(0x1a8))[_0x57ea58(0x198)](/\{ConfigName\}/g,_0x18d7c1||'default')[_0x57ea58(0x198)](/\{ClientConfigParam\}/g,_0x49740b||'')['replace'](/\{VarPrefix\}/g,_0x9a1d7e||_0x57ea58(0x19f))[_0x57ea58(0x198)](/\{CreatedAt\}/g,_0x53e888);return _0x19bb23;}static async['processTemplate'](_0x8161db,_0x156f3b,_0x35000f,_0x136a72,_0x2eb02c=!![]){const _0x28f224=a134_0x2af0ef,_0x5baa67=Date['now']();try{_0x2eb02c&&logger['info'](_0x28f224(0x191),_0x28f224(0x1ad),{'templatePath':_0x8161db,'targetPath':_0x156f3b,'pageName':_0x35000f,'templateName':_0x136a72});await a134_0x341def[_0x28f224(0x1b4)][_0x28f224(0x1bd)](_0x156f3b,{'recursive':!![]}),await this[_0x28f224(0x18f)](_0x8161db,_0x156f3b,_0x35000f,_0x136a72);if(_0x2eb02c){const _0x1a0484=Date[_0x28f224(0x1cc)]()-_0x5baa67;logger[_0x28f224(0x1a9)](_0x28f224(0x191),'模板内容替换完成',_0x1a0484,{'pageName':_0x35000f,'templateName':_0x136a72});}}catch(_0x2c4003){if(_0x2eb02c){const _0x1c514c=Date[_0x28f224(0x1cc)]()-_0x5baa67;logger['error'](_0x28f224(0x191),_0x28f224(0x1a2),{'templatePath':_0x8161db,'targetPath':_0x156f3b,'pageName':_0x35000f,'templateName':_0x136a72,'error':_0x2c4003 instanceof Error?_0x2c4003[_0x28f224(0x18d)]:String(_0x2c4003),'duration':_0x1c514c});}throw _0x2c4003;}}static async[a134_0x2af0ef(0x18f)](_0x428de2,_0x527234,_0x1a9c99,_0x1e410e){const _0x14af64=a134_0x2af0ef,_0x1f44b7=await a134_0x341def[_0x14af64(0x1b4)][_0x14af64(0x1b7)](_0x428de2,{'withFileTypes':!![]});for(const _0x490c9c of _0x1f44b7){const _0x53bf35=a134_0x143284[_0x14af64(0x1c9)](_0x428de2,_0x490c9c['name']);let _0x1c3868=a134_0x143284[_0x14af64(0x1c9)](_0x527234,_0x490c9c[_0x14af64(0x1ca)]);_0x490c9c['name'][_0x14af64(0x1b9)](_0x14af64(0x192))&&(_0x1c3868=a134_0x143284[_0x14af64(0x1c9)](_0x527234,_0x490c9c[_0x14af64(0x1ca)][_0x14af64(0x198)](/\.tpl$/,'')));if(_0x490c9c[_0x14af64(0x1a7)]())await a134_0x341def['promises']['mkdir'](_0x1c3868,{'recursive':!![]}),await this[_0x14af64(0x18f)](_0x53bf35,_0x1c3868,_0x1a9c99,_0x1e410e);else _0x490c9c['isFile']()&&await this[_0x14af64(0x195)](_0x53bf35,_0x1c3868,_0x1a9c99,_0x1e410e);}}static async['processFile'](_0xd9f4aa,_0x5738b4,_0x20d56f,_0x44ae99){const _0xa1a0a7=a134_0x2af0ef,_0x4e574c=a134_0x143284[_0xa1a0a7(0x1bc)](_0xd9f4aa)['toLowerCase']();_0xd9f4aa['endsWith'](_0xa1a0a7(0x192))&&(_0x5738b4=_0x5738b4[_0xa1a0a7(0x198)](/\.tpl$/,''));const _0x5e15cb=[_0xa1a0a7(0x196),_0xa1a0a7(0x1b3),_0xa1a0a7(0x194),'.js',_0xa1a0a7(0x1bb),_0xa1a0a7(0x1c7),_0xa1a0a7(0x1c0),_0xa1a0a7(0x1a1),_0xa1a0a7(0x192)];if(_0x5e15cb[_0xa1a0a7(0x197)](_0x4e574c)||_0xd9f4aa[_0xa1a0a7(0x1b9)](_0xa1a0a7(0x192))){const _0x3d688b=await a134_0x341def[_0xa1a0a7(0x1b4)]['readFile'](_0xd9f4aa,_0xa1a0a7(0x1a3)),_0x530322=this[_0xa1a0a7(0x19d)](_0x3d688b,_0x20d56f,_0x44ae99);await a134_0x341def[_0xa1a0a7(0x1b4)][_0xa1a0a7(0x1ae)](_0x5738b4,_0x530322,_0xa1a0a7(0x1a3));}else await a134_0x341def[_0xa1a0a7(0x1b4)]['copyFile'](_0xd9f4aa,_0x5738b4);}}
1
+ const a134_0x8d1683=a134_0x3cb4;(function(_0x23fd51,_0x3aa3c3){const _0xbc07b1=a134_0x3cb4,_0x58cbce=_0x23fd51();while(!![]){try{const _0x19df5f=-parseInt(_0xbc07b1(0x14a))/0x1*(-parseInt(_0xbc07b1(0x15b))/0x2)+parseInt(_0xbc07b1(0x153))/0x3+-parseInt(_0xbc07b1(0x145))/0x4+-parseInt(_0xbc07b1(0x164))/0x5*(-parseInt(_0xbc07b1(0x147))/0x6)+-parseInt(_0xbc07b1(0x17f))/0x7+parseInt(_0xbc07b1(0x15d))/0x8*(-parseInt(_0xbc07b1(0x177))/0x9)+-parseInt(_0xbc07b1(0x167))/0xa;if(_0x19df5f===_0x3aa3c3)break;else _0x58cbce['push'](_0x58cbce['shift']());}catch(_0x1f97e9){_0x58cbce['push'](_0x58cbce['shift']());}}}(a134_0x1ff6,0x1a25d));import a134_0x5726da from'node:fs';function a134_0x3cb4(_0x131120,_0x413847){_0x131120=_0x131120-0x13e;const _0x1ff65c=a134_0x1ff6();let _0x3cb41a=_0x1ff65c[_0x131120];return _0x3cb41a;}import a134_0x23d065 from'node:path';import{createRequire}from'node:module';function a134_0x1ff6(){const _0x2b8873=['utf8','258tYDrkv','join','alias','9vqHjBY','pop','模板内容替换失败','datasetCode:\x20\x22','toDisplayTitle','.tpl','name','toLocaleDateString','mkdir','520710iMvIsj','toUpperCase','charAt','.md','extname','map','2-digit','alias:\x20\x22','34598ztytTl','split','1048mQzifY','processDirectory','name:\x20\x22','isFile','tableName','\x20},','tableName:\x20\x22','15835ZkpHzQ','toLocaleTimeString','replace','883730OYYedq','LOVRABET','YourModel','.js','api','replaceApiContent','readFile','isDirectory','\x0a\x20\x20\x20\x20{\x20','error','includes','now','toLowerCase','promises','copyFile','开始处理模板内容替换','711wgTXJN','default','.json','processFile','replaceContent','toComponentName','readdir','.ts','1021209ygjddt','slice','template','endsWith','.tsx','模板内容替换完成','../../package.json','numeric','454928sXOpjs'];a134_0x1ff6=function(){return _0x2b8873;};return a134_0x1ff6();}import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a134_0x8d1683(0x143))['version'];export class TemplateReplacer{static[a134_0x8d1683(0x17c)](_0x4b80c8){const _0x4bef17=a134_0x8d1683,_0x54e941=_0x4b80c8[_0x4bef17(0x15c)]('/')[_0x4bef17(0x14b)]()||_0x4b80c8;return _0x54e941[_0x4bef17(0x15c)]('-')['map'](_0x5d8edc=>_0x5d8edc[_0x4bef17(0x155)](0x0)[_0x4bef17(0x154)]()+_0x5d8edc[_0x4bef17(0x13e)](0x1)[_0x4bef17(0x173)]())[_0x4bef17(0x148)]('');}static[a134_0x8d1683(0x14e)](_0x38c9f2){const _0x232c93=a134_0x8d1683,_0x369562=_0x38c9f2['split']('/')[_0x232c93(0x14b)]()||_0x38c9f2;return _0x369562[_0x232c93(0x15c)]('-')['map'](_0x33628d=>_0x33628d[_0x232c93(0x155)](0x0)['toUpperCase']()+_0x33628d['slice'](0x1)['toLowerCase']())[_0x232c93(0x148)]('\x20');}static[a134_0x8d1683(0x17b)](_0x2421e4,_0xb2c478,_0x44f0a9){const _0x2104d7=a134_0x8d1683,_0x2804eb=this[_0x2104d7(0x17c)](_0xb2c478),_0x10a340=this['toDisplayTitle'](_0xb2c478),_0x33f69e=new Date(),_0x695271=_0x33f69e['toLocaleString'](undefined,{'year':_0x2104d7(0x144),'month':_0x2104d7(0x159),'day':'2-digit','hour':_0x2104d7(0x159),'minute':_0x2104d7(0x159),'second':_0x2104d7(0x159),'hour12':![]})[_0x2104d7(0x166)](/\//g,'-'),_0x55bb0d=_0x33f69e[_0x2104d7(0x151)](undefined,{'year':_0x2104d7(0x144),'month':_0x2104d7(0x159),'day':'2-digit'})['replace'](/\//g,'-'),_0x530502=_0x33f69e[_0x2104d7(0x165)](undefined,{'hour12':![]});let _0x5c4ffe=_0x2421e4[_0x2104d7(0x166)](/\{CliVersion\}/g,CLI_VERSION)[_0x2104d7(0x166)](/\{ComponentName\}/g,_0x2804eb)[_0x2104d7(0x166)](/\{DisplayTitle\}/g,_0x10a340)[_0x2104d7(0x166)](/\{PageName\}/g,_0xb2c478)[_0x2104d7(0x166)](/\{TemplateName\}/g,_0x44f0a9)[_0x2104d7(0x166)](/\{CreatedAt\}/g,_0x695271)[_0x2104d7(0x166)](/\{CreatedDate\}/g,_0x55bb0d)['replace'](/\{CreatedTime\}/g,_0x530502);return _0x5c4ffe;}static[a134_0x8d1683(0x16c)](_0x1aaf68,_0x25799e,_0x1629e9,_0x3b45a1,_0xe85948,_0x413418,_0x1cdc45,_0x54cb68){const _0x3fa2ba=a134_0x8d1683,_0x4054b4=new Date(),_0x4f6c1d=_0x4054b4['toISOString'](),_0x390766=_0x1629e9[_0x3fa2ba(0x158)](_0x5f440f=>{const _0x4d4059=_0x3fa2ba,_0xcd9a2f=[_0x4d4059(0x14d)+_0x5f440f['datasetCode']+'\x22',_0x4d4059(0x163)+_0x5f440f[_0x4d4059(0x161)]+'\x22',_0x4d4059(0x15f)+_0x5f440f[_0x4d4059(0x150)]+'\x22'];return _0x5f440f[_0x4d4059(0x149)]&&_0xcd9a2f['push'](_0x4d4059(0x15a)+_0x5f440f[_0x4d4059(0x149)]+'\x22'),_0x4d4059(0x16f)+_0xcd9a2f[_0x4d4059(0x148)](',\x20')+_0x4d4059(0x162);})[_0x3fa2ba(0x148)](''),_0xbaf629=_0x3b45a1||_0x1629e9[0x0]?.[_0x3fa2ba(0x149)]||_0x3fa2ba(0x169);let _0x54b9df=_0x1aaf68[_0x3fa2ba(0x166)](/\{AppCode\}/g,_0x25799e)[_0x3fa2ba(0x166)](/\{ModelConfigs\}/g,_0x390766)[_0x3fa2ba(0x166)](/\{ExampleModelName\}/g,_0xbaf629)[_0x3fa2ba(0x166)](/\{ApiFileName\}/g,_0xe85948||_0x3fa2ba(0x16b))['replace'](/\{ConfigName\}/g,_0x413418||_0x3fa2ba(0x178))[_0x3fa2ba(0x166)](/\{ClientConfigParam\}/g,_0x1cdc45||'')[_0x3fa2ba(0x166)](/\{VarPrefix\}/g,_0x54cb68||_0x3fa2ba(0x168))[_0x3fa2ba(0x166)](/\{CreatedAt\}/g,_0x4f6c1d);return _0x54b9df;}static async['processTemplate'](_0x1728c6,_0xf1b72e,_0x5e00cc,_0x10c30c,_0x21ddf2=!![]){const _0x476957=a134_0x8d1683,_0x5e2be3=Date['now']();try{_0x21ddf2&&logger['info'](_0x476957(0x13f),_0x476957(0x176),{'templatePath':_0x1728c6,'targetPath':_0xf1b72e,'pageName':_0x5e00cc,'templateName':_0x10c30c});await a134_0x5726da[_0x476957(0x174)]['mkdir'](_0xf1b72e,{'recursive':!![]}),await this[_0x476957(0x15e)](_0x1728c6,_0xf1b72e,_0x5e00cc,_0x10c30c);if(_0x21ddf2){const _0xfeb9c6=Date[_0x476957(0x172)]()-_0x5e2be3;logger['success'](_0x476957(0x13f),_0x476957(0x142),_0xfeb9c6,{'pageName':_0x5e00cc,'templateName':_0x10c30c});}}catch(_0x2c1901){if(_0x21ddf2){const _0x46b767=Date['now']()-_0x5e2be3;logger[_0x476957(0x170)](_0x476957(0x13f),_0x476957(0x14c),{'templatePath':_0x1728c6,'targetPath':_0xf1b72e,'pageName':_0x5e00cc,'templateName':_0x10c30c,'error':_0x2c1901 instanceof Error?_0x2c1901['message']:String(_0x2c1901),'duration':_0x46b767});}throw _0x2c1901;}}static async[a134_0x8d1683(0x15e)](_0x3779a4,_0x5c825c,_0x49c329,_0x117ed2){const _0x40ed02=a134_0x8d1683,_0x1414f1=await a134_0x5726da[_0x40ed02(0x174)][_0x40ed02(0x17d)](_0x3779a4,{'withFileTypes':!![]});for(const _0x1b7e52 of _0x1414f1){const _0x72c4e6=a134_0x23d065['join'](_0x3779a4,_0x1b7e52[_0x40ed02(0x150)]);let _0x9d5083=a134_0x23d065[_0x40ed02(0x148)](_0x5c825c,_0x1b7e52[_0x40ed02(0x150)]);_0x1b7e52[_0x40ed02(0x150)][_0x40ed02(0x140)]('.tpl')&&(_0x9d5083=a134_0x23d065[_0x40ed02(0x148)](_0x5c825c,_0x1b7e52[_0x40ed02(0x150)]['replace'](/\.tpl$/,'')));if(_0x1b7e52[_0x40ed02(0x16e)]())await a134_0x5726da['promises'][_0x40ed02(0x152)](_0x9d5083,{'recursive':!![]}),await this[_0x40ed02(0x15e)](_0x72c4e6,_0x9d5083,_0x49c329,_0x117ed2);else _0x1b7e52[_0x40ed02(0x160)]()&&await this[_0x40ed02(0x17a)](_0x72c4e6,_0x9d5083,_0x49c329,_0x117ed2);}}static async[a134_0x8d1683(0x17a)](_0xc6c721,_0x4205a4,_0x35a0ad,_0x266d73){const _0xf6a097=a134_0x8d1683,_0x89db96=a134_0x23d065[_0xf6a097(0x157)](_0xc6c721)[_0xf6a097(0x173)]();_0xc6c721[_0xf6a097(0x140)](_0xf6a097(0x14f))&&(_0x4205a4=_0x4205a4[_0xf6a097(0x166)](/\.tpl$/,''));const _0x560815=[_0xf6a097(0x141),_0xf6a097(0x17e),'.jsx',_0xf6a097(0x16a),_0xf6a097(0x179),_0xf6a097(0x156),'.css','.scss',_0xf6a097(0x14f)];if(_0x560815[_0xf6a097(0x171)](_0x89db96)||_0xc6c721[_0xf6a097(0x140)](_0xf6a097(0x14f))){const _0x208708=await a134_0x5726da[_0xf6a097(0x174)][_0xf6a097(0x16d)](_0xc6c721,_0xf6a097(0x146)),_0x2e079f=this[_0xf6a097(0x17b)](_0x208708,_0x35a0ad,_0x266d73);await a134_0x5726da[_0xf6a097(0x174)]['writeFile'](_0x4205a4,_0x2e079f,_0xf6a097(0x146));}else await a134_0x5726da['promises'][_0xf6a097(0x175)](_0xc6c721,_0x4205a4);}}
@@ -0,0 +1 @@
1
+ (function(_0x265202,_0x55278b){const _0x1cc762=a135_0x55f1,_0x34347d=_0x265202();while(!![]){try{const _0x227b30=parseInt(_0x1cc762(0x1cc))/0x1*(-parseInt(_0x1cc762(0x1d1))/0x2)+parseInt(_0x1cc762(0x1c6))/0x3*(parseInt(_0x1cc762(0x1d2))/0x4)+-parseInt(_0x1cc762(0x1d4))/0x5*(-parseInt(_0x1cc762(0x1cf))/0x6)+parseInt(_0x1cc762(0x1cd))/0x7*(parseInt(_0x1cc762(0x1c9))/0x8)+-parseInt(_0x1cc762(0x1c7))/0x9+parseInt(_0x1cc762(0x1c8))/0xa*(parseInt(_0x1cc762(0x1cb))/0xb)+-parseInt(_0x1cc762(0x1ca))/0xc;if(_0x227b30===_0x55278b)break;else _0x34347d['push'](_0x34347d['shift']());}catch(_0xcd863b){_0x34347d['push'](_0x34347d['shift']());}}}(a135_0x1b51,0x94db0));import{readFileSync}from'node:fs';function a135_0x55f1(_0x56ae96,_0x322328){_0x56ae96=_0x56ae96-0x1c6;const _0x1b5127=a135_0x1b51();let _0x55f18e=_0x1b5127[_0x56ae96];return _0x55f18e;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';let _cached='';export function getCliVersion(){const _0x5bf582=a135_0x55f1;if(_cached)return _cached;try{const _0x373f0f=fileURLToPath(import.meta.url),_0x12b659=resolve(dirname(_0x373f0f),'../..'),_0x5d5235=JSON[_0x5bf582(0x1d0)](readFileSync(resolve(_0x12b659,'package.json'),_0x5bf582(0x1d5)));_cached=_0x5d5235[_0x5bf582(0x1ce)]||'0.0.0';}catch{_cached=_0x5bf582(0x1d3);}return _cached;}function a135_0x1b51(){const _0xd515c9=['455230ObizyH','32hsplPc','3741408dCAxbU','121UvEmGq','1aQSXoU','2012199ttiQrq','version','9042gJmMJJ','parse','1506066CRDEXf','669492GaGzhM','0.0.0','265JeYwcF','utf8','3ltOeRt','2009664NGoABJ'];a135_0x1b51=function(){return _0xd515c9;};return a135_0x1b51();}
@@ -0,0 +1 @@
1
+ function a136_0x1241(_0x2c6baf,_0x4b2724){_0x2c6baf=_0x2c6baf-0x108;var _0x189451=a136_0x1894();var _0x1241ea=_0x189451[_0x2c6baf];return _0x1241ea;}function a136_0x1894(){var _0x220690=['239352xgcIwW','70dcBbqE','506421eOFGvH','292XAuqEh','17898sCYeaP','1034VWggqD','78tIgKGO','426DsohHg','8275848bLmYGM','319767geuUHz','59655UViYiG','1401665pRIuoI'];a136_0x1894=function(){return _0x220690;};return a136_0x1894();}(function(_0x43e315,_0x4d39f7){var _0x35a25c=a136_0x1241,_0x435434=_0x43e315();while(!![]){try{var _0x25dfad=parseInt(_0x35a25c(0x111))/0x1+parseInt(_0x35a25c(0x10a))/0x2*(parseInt(_0x35a25c(0x10d))/0x3)+parseInt(_0x35a25c(0x109))/0x4*(parseInt(_0x35a25c(0x110))/0x5)+parseInt(_0x35a25c(0x10c))/0x6*(parseInt(_0x35a25c(0x10f))/0x7)+-parseInt(_0x35a25c(0x10e))/0x8+parseInt(_0x35a25c(0x108))/0x9*(-parseInt(_0x35a25c(0x113))/0xa)+-parseInt(_0x35a25c(0x10b))/0xb*(parseInt(_0x35a25c(0x112))/0xc);if(_0x25dfad===_0x4d39f7)break;else _0x435434['push'](_0x435434['shift']());}catch(_0x357653){_0x435434['push'](_0x435434['shift']());}}}(a136_0x1894,0xcb99f));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4bfa02,_0x1175e1){setActiveCookie(_0x4bfa02);try{return await _0x1175e1();}finally{clearActiveCookie();}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.0.2-beta.8",
3
+ "version": "2.0.4-beta.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,14 +16,14 @@
16
16
  "node": ">=20"
17
17
  },
18
18
  "scripts": {
19
- "prebuild": "node scripts/bump-build.js",
19
+ "prebuild": "node scripts/generate-build-info.js",
20
20
  "build": "rm -rf lib && tsc && javascript-obfuscator lib --output lib",
21
- "prebuild:dev": "node scripts/bump-build.js",
21
+ "prebuild:dev": "node scripts/generate-build-info.js",
22
22
  "build:dev": "rm -rf lib && tsc",
23
23
  "start": "tsc --watch",
24
24
  "sync-template": "node scripts/sync-template.js",
25
- "beta-release": "bun run build && git add .build-number src/generated/build-info.ts && git commit -m 'chore: bump build number' && sh scripts/update-beta-version.sh && git push && git push origin --tag && bun publish --tag beta",
26
- "release": "bun run build && git add .build-number src/generated/build-info.ts && git commit -m 'chore: bump build number' && sh scripts/update-latest-version.sh && git push && git push origin --tag && bun publish",
25
+ "beta-release": "bun run build && sh scripts/update-beta-version.sh && git push && git push origin --tag && bun publish --tag beta",
26
+ "release": "bun run build && sh scripts/update-latest-version.sh && git push && git push origin --tag && bun publish",
27
27
  "test": "vitest run",
28
28
  "test:run": "vitest run",
29
29
  "test:coverage": "vitest run --coverage",
@@ -51,29 +51,25 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "@inquirer/prompts": "^8.3.2",
54
+ "@lovrabet/otel-logger": "1.0.1-beta.2",
54
55
  "@types/winston": "^2.4.4",
55
- "@yuntoo/otel-logger": "1.0.27",
56
56
  "chalk": "^5.6.2",
57
57
  "execa": "^9.6.0",
58
- "ink": "^6.2.3",
59
- "ink-spinner": "^5.0.0",
60
- "javascript-obfuscator": "^4.1.1",
61
58
  "listr": "^0.14.3",
62
59
  "meow": "^13.2.0",
63
60
  "ora": "^9.3.0",
64
61
  "prettier": "^3.6.2",
65
- "react": "^19.2.0",
66
62
  "semver": "^7.7.3",
67
63
  "winston": "^3.17.0"
68
64
  },
69
65
  "devDependencies": {
70
66
  "@types/listr": "^0.14.9",
71
67
  "@types/node": "^24.5.2",
72
- "@types/react": "^19.2.0",
73
68
  "@types/semver": "^7.7.1",
74
69
  "@vitest/coverage-v8": "^3.2.4",
75
70
  "@vitest/ui": "^3.2.4",
76
71
  "c8": "^10.1.3",
72
+ "javascript-obfuscator": "^5.4.1",
77
73
  "typescript": "latest",
78
74
  "vitest": "^3.2.4"
79
75
  }
@@ -1 +0,0 @@
1
- function a0_0x1de0(){const _0x41e093=['lovrabet-dataset','Configuration:','info','2724wjMnpq','parse','36266725LWrZBB','error','message','utf-8','Please\x20run:\x20','\x0a📋\x20Other\x20IDE\x20MCP\x20configuration:\x0a','log','Other','env','Unsupported\x20MCP\x20IDE:\x20','@lovrabet/dataset-mcp-server@latest','RABETBASE_ENV','production','44274jxGoWR','Cursor\x20MCP\x20configuration\x20failed','Cursor\x20MCP\x20configured\x20successfully','claude\x20mcp\x20add\x20','Written\x20.cursor/mcp.json','\x20\x20\x20\x20\x22','npx','\x20\x20\x20\x20\x20\x20\x20\x20\x22RABETBASE_APP_CODE\x22:\x20\x22','cursor','Claude\x20Code','461853xObiDF','manual','92TuyeEr','mcpServers','appcode','40yzTQBW','claude','cwd','app','\x20\x20Restart\x20Claude\x20Code\x20to\x20take\x20effect\x0a','Cursor','Configuration\x20guide\x20displayed','\x20\x20\x20\x20\x20\x20\x20\x20\x22RABETBASE_ENV\x22:\x20\x22','Claude\x20Code\x20MCP\x20command\x20generated','\x20\x20AppCode:\x20','\x20\x20\x20\x20\x20\x20\x22args\x22:\x20[','mcp-install','Appcode\x20must\x20be\x20configured\x20first','.cursor','\x20-e\x20RABETBASE_ENV=','success','\x20\x20\x20\x20\x20\x20\x22command\x22:\x20\x22','join','9471lTrpkr','mcp.json','102440GhCHPI','\x20\x20}','stringify','73941czHGWL','\x0a📋\x20Run\x20the\x20following\x20command\x20to\x20configure\x20Claude\x20Code\x20MCP:\x0a','\x20\x20\x20\x20\x20\x20}','\x20\x20Environment:\x20','4711760jsBgJL','39qJTwyM'];a0_0x1de0=function(){return _0x41e093;};return a0_0x1de0();}const a0_0x3d791f=a0_0x4318;(function(_0x1fe1d7,_0x5e91a6){const _0x2cc95a=a0_0x4318,_0x3be439=_0x1fe1d7();while(!![]){try{const _0x11fc89=-parseInt(_0x2cc95a(0xfe))/0x1*(parseInt(_0x2cc95a(0xd3))/0x2)+parseInt(_0x2cc95a(0xf9))/0x3*(-parseInt(_0x2cc95a(0xdf))/0x4)+parseInt(_0x2cc95a(0xf6))/0x5+-parseInt(_0x2cc95a(0xc4))/0x6*(parseInt(_0x2cc95a(0xf4))/0x7)+-parseInt(_0x2cc95a(0xfd))/0x8+parseInt(_0x2cc95a(0xdd))/0x9*(parseInt(_0x2cc95a(0xe2))/0xa)+parseInt(_0x2cc95a(0xc6))/0xb;if(_0x11fc89===_0x5e91a6)break;else _0x3be439['push'](_0x3be439['shift']());}catch(_0x1f8679){_0x3be439['push'](_0x3be439['shift']());}}}(a0_0x1de0,0xd91bb));import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import{join}from'node:path';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';function a0_0x4318(_0x30447b,_0x2744fa){_0x30447b=_0x30447b-0xc4;const _0x1de027=a0_0x1de0();let _0x43189d=_0x1de027[_0x30447b];return _0x43189d;}import{copyRulesToAgentsMd,copyRulesToCursor}from'../utils/rules-cdn.js';import{normalizeEnv}from'../constant/env.js';const MCP_SERVER_NAME=a0_0x3d791f(0xff),MCP_COMMAND=a0_0x3d791f(0xd9),MCP_ARGS=[a0_0x3d791f(0xd0)];export function buildEnvConfig(_0xc816d9,_0x33d2f2){const _0x200cdf=a0_0x3d791f,_0x55859d={'RABETBASE_APP_CODE':String(_0xc816d9)};return _0x33d2f2!=='production'&&(_0x55859d[_0x200cdf(0xd1)]=String(_0x33d2f2)),_0x55859d;}export async function configureCursorMcp(_0x8f6cb){const _0x58ef85=a0_0x3d791f,_0x2db061=_0x8f6cb||process[_0x58ef85(0xe4)](),_0x2168b0=readConfig(_0x2db061),_0x747a91=_0x2168b0[_0x58ef85(0xe1)]||_0x2168b0[_0x58ef85(0xe5)],_0x52349c=normalizeEnv(_0x2168b0[_0x58ef85(0xce)]||_0x58ef85(0xd2));if(!_0x747a91)return{'ide':_0x58ef85(0xe7),'status':_0x58ef85(0xc7),'message':_0x58ef85(0xee)};const _0x30827c=buildEnvConfig(_0x747a91,_0x52349c),_0x16d982={'command':MCP_COMMAND,'args':MCP_ARGS,'env':_0x30827c},_0x263846=join(_0x2db061,_0x58ef85(0xef),_0x58ef85(0xf5)),_0x45dda1=join(_0x2db061,'.cursor');try{!existsSync(_0x45dda1)&&mkdirSync(_0x45dda1,{'recursive':!![]});let _0x5d6210={'mcpServers':{}};if(existsSync(_0x263846)){const _0x5e84af=readFileSync(_0x263846,_0x58ef85(0xc9));_0x5d6210=JSON[_0x58ef85(0xc5)](_0x5e84af);}return(!_0x5d6210[_0x58ef85(0xe0)]||typeof _0x5d6210['mcpServers']!=='object')&&(_0x5d6210[_0x58ef85(0xe0)]={}),_0x5d6210[_0x58ef85(0xe0)][MCP_SERVER_NAME]=_0x16d982,writeFileSync(_0x263846,JSON[_0x58ef85(0xf8)](_0x5d6210,null,0x2),_0x58ef85(0xc9)),logger[_0x58ef85(0x101)](_0x58ef85(0xed),_0x58ef85(0xd5),{'appcode':_0x747a91,'env':_0x52349c,'path':_0x263846}),await copyRulesToCursor(_0x2db061),{'ide':_0x58ef85(0xe7),'status':_0x58ef85(0xf1),'message':_0x58ef85(0xd7)};}catch(_0x5e2432){return logger[_0x58ef85(0xc7)](_0x58ef85(0xed),_0x58ef85(0xd4),{'error':_0x5e2432 instanceof Error?_0x5e2432[_0x58ef85(0xc8)]:String(_0x5e2432)}),{'ide':_0x58ef85(0xe7),'status':_0x58ef85(0xc7),'message':_0x5e2432 instanceof Error?_0x5e2432[_0x58ef85(0xc8)]:String(_0x5e2432)};}}export async function configureClaudeMcp(_0x3475e5){const _0x45804d=a0_0x3d791f,_0x10a412=_0x3475e5||process[_0x45804d(0xe4)](),_0x340a52=readConfig(_0x10a412),_0xf328f7=_0x340a52[_0x45804d(0xe1)]||_0x340a52['app'],_0x22f98d=normalizeEnv(_0x340a52[_0x45804d(0xce)]||'production');if(!_0xf328f7)return{'ide':_0x45804d(0xdc),'status':_0x45804d(0xc7),'message':_0x45804d(0xee)};let _0x317955=_0x45804d(0xd6)+MCP_SERVER_NAME+'\x20'+MCP_COMMAND+'\x20'+MCP_ARGS[_0x45804d(0xf3)]('\x20')+'\x20-e\x20RABETBASE_APP_CODE='+_0xf328f7;return _0x22f98d!==_0x45804d(0xd2)&&(_0x317955+=_0x45804d(0xf0)+_0x22f98d),await copyRulesToAgentsMd(_0x10a412),logger[_0x45804d(0x101)](_0x45804d(0xed),_0x45804d(0xea),{'command':_0x317955,'appcode':_0xf328f7,'env':_0x22f98d}),console[_0x45804d(0xcc)](_0x45804d(0xfa)),console[_0x45804d(0xcc)]('\x20\x20'+_0x317955+'\x0a'),console[_0x45804d(0xcc)](_0x45804d(0x100)),console['log'](_0x45804d(0xeb)+_0xf328f7),_0x22f98d!==_0x45804d(0xd2)&&console[_0x45804d(0xcc)](_0x45804d(0xfc)+_0x22f98d),console['log'](_0x45804d(0xe6)),{'ide':_0x45804d(0xdc),'status':_0x45804d(0xde),'message':_0x45804d(0xca)+_0x317955};}export async function showOtherGuide(_0x3cad30){const _0x4c3b14=a0_0x3d791f,_0x46c0bb=_0x3cad30||process[_0x4c3b14(0xe4)](),_0x5463bc=readConfig(_0x46c0bb),_0x3ca509=_0x5463bc[_0x4c3b14(0xe1)]||_0x5463bc['app'],_0x712b8e=normalizeEnv(_0x5463bc[_0x4c3b14(0xce)]||_0x4c3b14(0xd2));if(!_0x3ca509)return{'ide':_0x4c3b14(0xcd),'status':_0x4c3b14(0xc7),'message':_0x4c3b14(0xee)};return console['log'](_0x4c3b14(0xcb)),console['log']('{'),console[_0x4c3b14(0xcc)]('\x20\x20\x22mcpServers\x22:\x20{'),console['log'](_0x4c3b14(0xd8)+MCP_SERVER_NAME+'\x22:\x20{'),console['log'](_0x4c3b14(0xf2)+MCP_COMMAND+'\x22,'),console[_0x4c3b14(0xcc)](_0x4c3b14(0xec)+MCP_ARGS['map'](_0x25a7a=>'\x22'+_0x25a7a+'\x22')[_0x4c3b14(0xf3)](',\x20')+'],'),console[_0x4c3b14(0xcc)]('\x20\x20\x20\x20\x20\x20\x22env\x22:\x20{'),console['log'](_0x4c3b14(0xda)+_0x3ca509+'\x22,'),_0x712b8e!=='production'&&console[_0x4c3b14(0xcc)](_0x4c3b14(0xe9)+_0x712b8e+'\x22,'),console[_0x4c3b14(0xcc)](_0x4c3b14(0xfb)),console[_0x4c3b14(0xcc)]('\x20\x20\x20\x20}'),console[_0x4c3b14(0xcc)](_0x4c3b14(0xf7)),console['log']('}\x0a'),logger['info'](_0x4c3b14(0xed),_0x4c3b14(0xe8),{'appcode':_0x3ca509,'env':_0x712b8e}),{'ide':'Other','status':_0x4c3b14(0xde),'message':'Configuration\x20guide\x20displayed'};}export async function configureMcp(_0x10bf44,_0x13dca0){const _0x5f1290=a0_0x3d791f;switch(_0x10bf44){case _0x5f1290(0xdb):return await configureCursorMcp(_0x13dca0);case _0x5f1290(0xe3):return await configureClaudeMcp(_0x13dca0);default:throw new Error(_0x5f1290(0xcf)+_0x10bf44);}}
@@ -1 +0,0 @@
1
- const a17_0x1811de=a17_0x35d5;(function(_0x19aa1f,_0x2d5ee6){const _0x3f5d64=a17_0x35d5,_0x1b6086=_0x19aa1f();while(!![]){try{const _0x219622=parseInt(_0x3f5d64(0x15e))/0x1+-parseInt(_0x3f5d64(0x130))/0x2+parseInt(_0x3f5d64(0x15c))/0x3+-parseInt(_0x3f5d64(0x15a))/0x4*(-parseInt(_0x3f5d64(0x13d))/0x5)+-parseInt(_0x3f5d64(0x148))/0x6+parseInt(_0x3f5d64(0x154))/0x7*(-parseInt(_0x3f5d64(0x163))/0x8)+parseInt(_0x3f5d64(0x15f))/0x9;if(_0x219622===_0x2d5ee6)break;else _0x1b6086['push'](_0x1b6086['shift']());}catch(_0x512e83){_0x1b6086['push'](_0x1b6086['shift']());}}}(a17_0x4e84,0x8a66e));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';function getConfigPath(_0x337d16={}){const _0x23c405=a17_0x35d5,_0x3fada3=_0x337d16[_0x23c405(0x156)]?_0x23c405(0x156):_0x23c405(0x127);return resolveWriteConfigPath(_0x3fada3);}function readConfig(_0xfbd855={}){return readConfigFile(getConfigPath(_0xfbd855));}function a17_0x35d5(_0x38a919,_0xd359df){_0x38a919=_0x38a919-0x124;const _0x4e845f=a17_0x4e84();let _0x35d561=_0x4e845f[_0x38a919];return _0x35d561;}function writeConfig(_0x3bc900,_0x11717f={}){writeConfigFile(getConfigPath(_0x11717f),_0x3bc900);}function listApps(_0x73dfe6){const _0x2eb09c=a17_0x35d5,{apps:_0x501c19,defaultApp:_0x25f315,currentApp:_0x178242}=_0x73dfe6['config'],_0x1284d0=Object[_0x2eb09c(0x147)](_0x501c19);if(_0x1284d0[_0x2eb09c(0x12f)]===0x0){const _0x13c087=_0x73dfe6[_0x2eb09c(0x135)]['appCode'];_0x13c087?(console[_0x2eb09c(0x13a)](_0x2eb09c(0x12a)),console[_0x2eb09c(0x13a)](_0x2eb09c(0x139)+_0x13c087+'\x20\x20env:\x20'+_0x73dfe6[_0x2eb09c(0x135)][_0x2eb09c(0x129)]),console[_0x2eb09c(0x13a)](_0x2eb09c(0x162))):console[_0x2eb09c(0x13a)]('No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.');return;}console[_0x2eb09c(0x13a)](_0x2eb09c(0x159));for(const [_0x30db2d,_0x21aab2]of _0x1284d0){const _0x5c8e05=_0x30db2d===_0x25f315,_0xe5621e=_0x30db2d===_0x178242,_0x4b7dd0=_0xe5621e?'\x20*':_0x5c8e05?'\x20(default)':'';console[_0x2eb09c(0x13a)]('\x20\x20'+_0x30db2d+_0x4b7dd0),console[_0x2eb09c(0x13a)](_0x2eb09c(0x133)+_0x21aab2['appcode']);if(_0x21aab2['env'])console['log'](_0x2eb09c(0x13e)+_0x21aab2[_0x2eb09c(0x129)]);if(_0x21aab2[_0x2eb09c(0x14e)])console[_0x2eb09c(0x13a)](_0x2eb09c(0x152)+_0x21aab2['apiDir']);if(_0x21aab2[_0x2eb09c(0x137)])console[_0x2eb09c(0x13a)](_0x2eb09c(0x146));if(_0x21aab2[_0x2eb09c(0x149)])console['log'](_0x2eb09c(0x14c));if(_0x21aab2[_0x2eb09c(0x158)])console[_0x2eb09c(0x13a)](_0x2eb09c(0x15b)+_0x21aab2[_0x2eb09c(0x158)]);if(_0x21aab2[_0x2eb09c(0x14b)])console[_0x2eb09c(0x13a)]('\x20\x20\x20\x20pageSize:\x20\x20'+_0x21aab2[_0x2eb09c(0x14b)]);if(_0x21aab2[_0x2eb09c(0x160)])console[_0x2eb09c(0x13a)](_0x2eb09c(0x164)+_0x21aab2[_0x2eb09c(0x160)]);if(_0x21aab2[_0x2eb09c(0x161)])console['log']('\x20\x20\x20\x20locale:\x20\x20\x20\x20'+_0x21aab2[_0x2eb09c(0x161)]);console['log']('');}_0x25f315?console[_0x2eb09c(0x13a)](_0x2eb09c(0x132)+_0x25f315):console['log']('No\x20default\x20app\x20set.\x20Use\x20`rabetbase\x20app\x20use\x20<name>`\x20to\x20set\x20one.');}function useApp(_0x2cadb7,_0x2afdcc,_0x1bc910){const _0x4f6636=a17_0x35d5,_0x50d7a0=_0x2afdcc[0x0];!_0x50d7a0&&(console['error'](_0x4f6636(0x140)),process[_0x4f6636(0x13c)](0x1));const _0x35dcda=readConfig(_0x1bc910),_0x4a840c=_0x35dcda[_0x4f6636(0x13f)]||{};if(!_0x4a840c[_0x50d7a0]){const _0xc17521=Object[_0x4f6636(0x155)](_0x4a840c);_0xc17521['length']===0x0?console['error']('No\x20apps\x20configured.\x20Use\x20`rabetbase\x20app\x20add\x20'+_0x50d7a0+_0x4f6636(0x131)):console['error'](_0x4f6636(0x14f)+_0x50d7a0+_0x4f6636(0x138)+_0xc17521['join'](',\x20')),process[_0x4f6636(0x13c)](0x1);}_0x35dcda['defaultApp']=_0x50d7a0,writeConfig(_0x35dcda,_0x1bc910);const _0x439d8c=_0x1bc910[_0x4f6636(0x156)]?_0x4f6636(0x12e):'';console['log'](_0x4f6636(0x12b)+_0x50d7a0+_0x4f6636(0x145)+_0x4a840c[_0x50d7a0][_0x4f6636(0x136)]+')'+_0x439d8c);}function migrateLegacySingleApp(_0x91965f,_0x157549){const _0x454460=a17_0x35d5,_0xbca0fb=_0x91965f[_0x454460(0x136)]||_0x91965f['app'];if(!_0xbca0fb)return;const _0x107745=String(_0xbca0fb);if(_0x107745===_0x157549)return;const _0x34b86d={'appcode':_0xbca0fb};if(_0x91965f[_0x454460(0x129)])_0x34b86d['env']=_0x91965f[_0x454460(0x129)];if(_0x91965f['apiDir'])_0x34b86d['apiDir']=_0x91965f[_0x454460(0x14e)];if(_0x91965f[_0x454460(0x137)])_0x34b86d[_0x454460(0x137)]=_0x91965f[_0x454460(0x137)];if(_0x91965f[_0x454460(0x149)])_0x34b86d[_0x454460(0x149)]=_0x91965f[_0x454460(0x149)];if(_0x91965f[_0x454460(0x158)])_0x34b86d['format']=_0x91965f['format'];if(_0x91965f[_0x454460(0x14b)])_0x34b86d[_0x454460(0x14b)]=_0x91965f[_0x454460(0x14b)];if(_0x91965f['riskLevel'])_0x34b86d[_0x454460(0x160)]=_0x91965f[_0x454460(0x160)];if(_0x91965f[_0x454460(0x161)])_0x34b86d[_0x454460(0x161)]=_0x91965f[_0x454460(0x161)];_0x91965f['apps'][_0x107745]=_0x34b86d,_0x91965f[_0x454460(0x144)]=_0x107745,delete _0x91965f[_0x454460(0x136)],delete _0x91965f[_0x454460(0x126)],console[_0x454460(0x13a)](_0x454460(0x153)+_0x107745+_0x454460(0x142));}function addApp(_0x511d34,_0x4450b3,_0x1c707d){const _0x519f47=a17_0x35d5,_0x9ade5d=_0x4450b3[0x0];!_0x9ade5d&&(console[_0x519f47(0x125)]('Usage:\x20rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--apiDir\x20<dir>]\x20[--global]'),process[_0x519f47(0x13c)](0x1));const _0xf55ede=_0x1c707d[_0x519f47(0x136)];!_0xf55ede&&(console[_0x519f47(0x125)](_0x519f47(0x143)),process[_0x519f47(0x13c)](0x1));const _0x5cb5cd=readConfig(_0x1c707d);if(!_0x5cb5cd[_0x519f47(0x13f)])_0x5cb5cd[_0x519f47(0x13f)]={};Object['keys'](_0x5cb5cd[_0x519f47(0x13f)])[_0x519f47(0x12f)]===0x0&&migrateLegacySingleApp(_0x5cb5cd,_0x9ade5d);const _0x5d560a={'appcode':_0xf55ede};if(_0x1c707d['env'])_0x5d560a[_0x519f47(0x129)]=_0x1c707d['env'];if(_0x1c707d[_0x519f47(0x14e)]||_0x1c707d[_0x519f47(0x14a)])_0x5d560a[_0x519f47(0x14e)]=_0x1c707d[_0x519f47(0x14e)]||_0x1c707d['apidir'];if(_0x1c707d[_0x519f47(0x137)])_0x5d560a[_0x519f47(0x137)]=_0x1c707d[_0x519f47(0x137)];if(_0x1c707d[_0x519f47(0x149)]||_0x1c707d[_0x519f47(0x165)])_0x5d560a[_0x519f47(0x149)]=_0x1c707d[_0x519f47(0x149)]||_0x1c707d['accesskey'];if(_0x1c707d['format'])_0x5d560a['format']=_0x1c707d[_0x519f47(0x158)];if(_0x1c707d[_0x519f47(0x14b)]||_0x1c707d[_0x519f47(0x150)])_0x5d560a['pageSize']=Number(_0x1c707d['pageSize']||_0x1c707d[_0x519f47(0x150)]);if(_0x1c707d[_0x519f47(0x160)]||_0x1c707d[_0x519f47(0x14d)])_0x5d560a['riskLevel']=_0x1c707d[_0x519f47(0x160)]||_0x1c707d['risklevel'];if(_0x1c707d[_0x519f47(0x161)])_0x5d560a[_0x519f47(0x161)]=_0x1c707d['locale'];const _0x444395=!!_0x5cb5cd['apps'][_0x9ade5d];_0x5cb5cd[_0x519f47(0x13f)][_0x9ade5d]=_0x5d560a;!_0x5cb5cd[_0x519f47(0x144)]&&(_0x5cb5cd['defaultApp']=_0x9ade5d);writeConfig(_0x5cb5cd,_0x1c707d);const _0xdf495e=_0x1c707d['global']?_0x519f47(0x12e):'';console['log']((_0x444395?_0x519f47(0x141):_0x519f47(0x12c))+_0x519f47(0x157)+_0x9ade5d+_0x519f47(0x145)+_0xf55ede+')'+_0xdf495e),_0x5cb5cd['defaultApp']===_0x9ade5d&&!_0x444395&&console[_0x519f47(0x13a)](_0x519f47(0x134));}function removeApp(_0x1851ec,_0x267849,_0x1542a5){const _0x3fbf0e=a17_0x35d5,_0x5ac3ed=_0x267849[0x0];!_0x5ac3ed&&(console[_0x3fbf0e(0x125)]('Usage:\x20rabetbase\x20app\x20remove\x20<name>\x20[--global]'),process[_0x3fbf0e(0x13c)](0x1));const _0x283692=readConfig(_0x1542a5);(!_0x283692['apps']||!_0x283692[_0x3fbf0e(0x13f)][_0x5ac3ed])&&(console['error']('App\x20\x22'+_0x5ac3ed+_0x3fbf0e(0x12d)),process['exit'](0x1));delete _0x283692['apps'][_0x5ac3ed];if(_0x283692['defaultApp']===_0x5ac3ed){const _0x1642bd=Object[_0x3fbf0e(0x155)](_0x283692[_0x3fbf0e(0x13f)]);_0x283692[_0x3fbf0e(0x144)]=_0x1642bd[_0x3fbf0e(0x12f)]>0x0?_0x1642bd[0x0]:undefined,_0x283692[_0x3fbf0e(0x144)]?console[_0x3fbf0e(0x13a)]('Default\x20app\x20changed\x20to\x20\x22'+_0x283692[_0x3fbf0e(0x144)]+'\x22.'):delete _0x283692['defaultApp'];}Object[_0x3fbf0e(0x155)](_0x283692[_0x3fbf0e(0x13f)])[_0x3fbf0e(0x12f)]===0x0&&(delete _0x283692[_0x3fbf0e(0x13f)],delete _0x283692[_0x3fbf0e(0x144)]),writeConfig(_0x283692,_0x1542a5),console['log'](_0x3fbf0e(0x128)+_0x5ac3ed+'\x22.');}export const appCommand={'name':a17_0x1811de(0x126),'description':'Manage\x20multiple\x20apps\x20in\x20one\x20workspace',async 'run'(_0x561fb4,_0xc71a1c,_0x350b49){const _0x3bfc09=a17_0x1811de,_0x34fe2e=_0xc71a1c[0x0],_0x4e8769=_0xc71a1c[_0x3bfc09(0x124)](0x1);switch(_0x34fe2e){case _0x3bfc09(0x151):listApps(_0x561fb4);break;case'use':useApp(_0x561fb4,_0x4e8769,_0x350b49);break;case _0x3bfc09(0x13b):addApp(_0x561fb4,_0x4e8769,_0x350b49);break;case _0x3bfc09(0x15d):removeApp(_0x561fb4,_0x4e8769,_0x350b49);break;default:listApps(_0x561fb4);break;}}};function a17_0x4e84(){const _0x3a07b8=['Added','\x22\x20not\x20found.','\x20(global)','length','1325848chSajG','\x20--appcode\x20<code>`\x20first.','Default:\x20','\x20\x20\x20\x20appcode:\x20','Set\x20as\x20default\x20app.','config','appcode','cookie','\x22\x20not\x20found.\x20Available:\x20','\x20\x20appcode:\x20','log','add','exit','15GdklbM','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20','apps','Usage:\x20rabetbase\x20app\x20use\x20<name>\x20[--global]','Updated','\x22\x20to\x20multi-app\x20config\x20(set\x20as\x20default).','--appcode\x20is\x20required\x20when\x20adding\x20an\x20app.','defaultApp','\x22\x20(appcode:\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20(set)','entries','5830002CuFoca','accessKey','apidir','pageSize','\x20\x20\x20\x20accessKey:\x20(set)','risklevel','apiDir','App\x20\x22','pagesize','list','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20','Migrated\x20existing\x20app\x20\x22','112vsSxwH','keys','global','\x20app\x20\x22','format','Configured\x20apps:\x0a','593716ifLkAD','\x20\x20\x20\x20format:\x20\x20\x20\x20','1905078pIzVWe','remove','334242CItiEc','14262498qmOHUR','riskLevel','locale','\x0aUse\x20`rabetbase\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20enable\x20multi-app\x20mode.','398896FhCXtK','\x20\x20\x20\x20riskLevel:\x20','accesskey','slice','error','app','project','Removed\x20app\x20\x22','env','Single-app\x20mode:','Default\x20app\x20set\x20to\x20\x22'];a17_0x4e84=function(){return _0x3a07b8;};return a17_0x4e84();}
@@ -1 +0,0 @@
1
- const a33_0x55efc0=a33_0x2760;(function(_0x299af9,_0x3d3bef){const _0x13d70a=a33_0x2760,_0x12c001=_0x299af9();while(!![]){try{const _0x26fa3e=-parseInt(_0x13d70a(0x19b))/0x1+-parseInt(_0x13d70a(0x1a3))/0x2*(-parseInt(_0x13d70a(0x19e))/0x3)+-parseInt(_0x13d70a(0x1a2))/0x4+parseInt(_0x13d70a(0x19a))/0x5+parseInt(_0x13d70a(0x19c))/0x6+parseInt(_0x13d70a(0x19d))/0x7+-parseInt(_0x13d70a(0x1a0))/0x8;if(_0x26fa3e===_0x3d3bef)break;else _0x12c001['push'](_0x12c001['shift']());}catch(_0x4392d9){_0x12c001['push'](_0x12c001['shift']());}}}(a33_0x1c0f,0x3c01b));import{jsx as a33_0x33887f}from'react/jsx-runtime';import{render}from'ink';function a33_0x1c0f(){const _0x2aaede=['6045792bsXafu','Manage\x20project\x20configuration','687524qLxslq','186094rapvlB','752770FmThZI','331463eYNsjc','2553552QPiRxk','3244318TwYOQy','15LxsNVc','config'];a33_0x1c0f=function(){return _0x2aaede;};return a33_0x1c0f();}import{Config}from'../config/main.js';function a33_0x2760(_0x19dd74,_0x2be23b){_0x19dd74=_0x19dd74-0x19a;const _0x1c0f24=a33_0x1c0f();let _0x276073=_0x1c0f24[_0x19dd74];return _0x276073;}export const configCommand={'name':'config','description':a33_0x55efc0(0x1a1),async 'run'(_0x46388b,_0x1ac60f,_0x3ab5b2){const _0x1e9d6c=a33_0x55efc0,_0x1ecf07={'input':[_0x1e9d6c(0x19f),..._0x1ac60f],'flags':_0x3ab5b2,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a33_0x33887f(Config,{'cli':_0x1ecf07}));}};
@@ -1 +0,0 @@
1
- const a44_0x340122=a44_0x5e70;(function(_0x170173,_0x3dd94e){const _0x2aebc9=a44_0x5e70,_0x347f65=_0x170173();while(!![]){try{const _0x506363=parseInt(_0x2aebc9(0x10b))/0x1+-parseInt(_0x2aebc9(0x104))/0x2*(-parseInt(_0x2aebc9(0x103))/0x3)+parseInt(_0x2aebc9(0x108))/0x4*(-parseInt(_0x2aebc9(0x106))/0x5)+parseInt(_0x2aebc9(0x10d))/0x6*(parseInt(_0x2aebc9(0xfe))/0x7)+parseInt(_0x2aebc9(0x107))/0x8*(-parseInt(_0x2aebc9(0x110))/0x9)+parseInt(_0x2aebc9(0xfc))/0xa+-parseInt(_0x2aebc9(0x100))/0xb;if(_0x506363===_0x3dd94e)break;else _0x347f65['push'](_0x347f65['shift']());}catch(_0x8d6372){_0x347f65['push'](_0x347f65['shift']());}}}(a44_0x33a8,0xc3b81));import{jsx as a44_0x4eb5fe}from'react/jsx-runtime';import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a44_0x5165b5}from'../mcp/main.js';function a44_0x5e70(_0x5a3fa0,_0x6e0b2e){_0x5a3fa0=_0x5a3fa0-0xfa;const _0x33a8f4=a44_0x33a8();let _0x5e70b4=_0x33a8f4[_0x5a3fa0];return _0x5e70b4;}function a44_0x33a8(){const _0x1cff57=['push','other','9mqWBae','info','nonInteractive','enableBffSave','logger','337980DuIkss','mcp-install','878745HtgNuc','cursor','1789051iJznxE','install','claude','27717hgoyfl','290XaovrB','mcpCursor','5NzOgRr','979312OeQThQ','5952364VQYAxC','length','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','1075823tSyhgs','mcp','6SxZlWD'];a44_0x33a8=function(){return _0x1cff57;};return a44_0x33a8();}export const mcpCommand={'name':a44_0x340122(0x10c),'description':a44_0x340122(0x10a),async 'run'(_0x233c75,_0x55db62,_0x514676){const _0xc73455=a44_0x340122,_0x4fe046=_0x55db62[0x0];if(_0x4fe046===_0xc73455(0x101)){const _0x34c832=[];if(_0x514676[_0xc73455(0x105)]||_0x514676[_0xc73455(0xff)])_0x34c832[_0xc73455(0x10e)](_0xc73455(0xff));if(_0x514676['mcpClaude']||_0x514676[_0xc73455(0x102)])_0x34c832[_0xc73455(0x10e)]('claude');if(_0x514676['mcpOther'])_0x34c832[_0xc73455(0x10e)](_0xc73455(0x10f));_0x233c75[_0xc73455(0xfb)][_0xc73455(0x111)](_0xc73455(0xfd),'执行配置\x20MCP\x20命令',{'preselected':_0x34c832});if(_0x233c75[_0xc73455(0x112)]&&_0x34c832[_0xc73455(0x109)]>0x0){const {installMcpNonInteractive:_0x27d94c}=await import('../mcp/mcp-install-non-interactive.js');await _0x27d94c(_0x34c832,_0x514676[_0xc73455(0xfa)]);}else render(a44_0x4eb5fe(McpInstallUI,{'preselectedIDEs':_0x34c832,'enableBffSave':_0x514676[_0xc73455(0xfa)]}));}else await a44_0x5165b5(_0x4fe046,[],_0x514676);}};
@@ -1 +0,0 @@
1
- (function(_0xb79ad9,_0x3c445f){const _0x491607=a70_0x196b,_0x440e7e=_0xb79ad9();while(!![]){try{const _0xa2b149=-parseInt(_0x491607(0x169))/0x1+-parseInt(_0x491607(0x15c))/0x2*(-parseInt(_0x491607(0x158))/0x3)+-parseInt(_0x491607(0x163))/0x4*(-parseInt(_0x491607(0x156))/0x5)+parseInt(_0x491607(0x160))/0x6+-parseInt(_0x491607(0x155))/0x7*(-parseInt(_0x491607(0x164))/0x8)+-parseInt(_0x491607(0x168))/0x9+-parseInt(_0x491607(0x167))/0xa*(parseInt(_0x491607(0x151))/0xb);if(_0xa2b149===_0x3c445f)break;else _0x440e7e['push'](_0x440e7e['shift']());}catch(_0x21d625){_0x440e7e['push'](_0x440e7e['shift']());}}}(a70_0x490f,0x3f5c7));import{jsxs as a70_0x3844e1,jsx as a70_0x51b41d}from'react/jsx-runtime';import{Box,Text}from'ink';function a70_0x490f(){const _0x19972d=['column','5370500wtWVUF','275742Uytien','186730kPGxTj','Get\x20a\x20config\x20value','11SjxccI','\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20*\x20','\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','133mzxjyC','6045mfPBIl','description','3AUkDzC','map','command','\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','403292QBqTSg','\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','List\x20all\x20config\x20values','Examples:','1539084nbQKTU','\x20\x20\x20\x20','gray','892TOrFAO','120496tjrODg','Set\x20App\x20Code\x20for\x20current\x20project'];a70_0x490f=function(){return _0x19972d;};return a70_0x490f();}function a70_0x196b(_0x3d2581,_0x27c689){_0x3d2581=_0x3d2581-0x151;const _0x490f19=a70_0x490f();let _0x196bba=_0x490f19[_0x3d2581];return _0x196bba;}import{CLI_BIN_NAME}from'../constant/cli.js';export function ConfigHelp(){const _0x4097e1=a70_0x196b,_0x290995=[{'command':CLI_BIN_NAME+_0x4097e1(0x15b),'description':'Set\x20a\x20config\x20value'},{'command':CLI_BIN_NAME+'\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x4097e1(0x16a)},{'command':CLI_BIN_NAME+_0x4097e1(0x152),'description':_0x4097e1(0x15e)}],_0x41bc07=[{'command':CLI_BIN_NAME+'\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description':_0x4097e1(0x165)},{'command':CLI_BIN_NAME+_0x4097e1(0x154),'description':'Set\x20environment\x20(production/daily)'},{'command':CLI_BIN_NAME+_0x4097e1(0x15d),'description':'Set\x20display\x20language\x20(zh/en)'}];return a70_0x3844e1(Box,{'flexDirection':_0x4097e1(0x166),'marginTop':0x1,'marginBottom':0x1,'children':[a70_0x51b41d(Box,{'marginBottom':0x1,'children':a70_0x3844e1(Text,{'color':'gray','children':['\x20','!','\x20\x20','Invalid\x20command.\x20Available\x20commands:']})}),_0x290995[_0x4097e1(0x159)](_0x11cad7=>a70_0x3844e1(Box,{'children':[a70_0x3844e1(Text,{'children':['\x20\x20\x20\x20',_0x11cad7[_0x4097e1(0x15a)]]}),a70_0x51b41d(Text,{'color':_0x4097e1(0x162),'children':_0x11cad7['description']})]},_0x11cad7['command'])),a70_0x51b41d(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a70_0x3844e1(Text,{'color':'gray','children':[_0x4097e1(0x153),_0x4097e1(0x15f)]})}),_0x41bc07[_0x4097e1(0x159)](_0xfa4550=>a70_0x3844e1(Box,{'children':[a70_0x3844e1(Text,{'children':[_0x4097e1(0x161),_0xfa4550[_0x4097e1(0x15a)]]}),a70_0x51b41d(Text,{'color':_0x4097e1(0x162),'children':_0xfa4550[_0x4097e1(0x157)]})]},_0xfa4550[_0x4097e1(0x15a)]))]});}
@@ -1 +0,0 @@
1
- const a71_0x10bf29=a71_0x26b4;(function(_0x4a8aee,_0x4851f1){const _0x1827fe=a71_0x26b4,_0x54957a=_0x4a8aee();while(!![]){try{const _0x56b5f8=-parseInt(_0x1827fe(0x1c2))/0x1*(-parseInt(_0x1827fe(0x1b1))/0x2)+parseInt(_0x1827fe(0x1ae))/0x3*(-parseInt(_0x1827fe(0x1d5))/0x4)+parseInt(_0x1827fe(0x1d9))/0x5+-parseInt(_0x1827fe(0x1c8))/0x6*(-parseInt(_0x1827fe(0x1b3))/0x7)+parseInt(_0x1827fe(0x1d2))/0x8+-parseInt(_0x1827fe(0x1bc))/0x9*(parseInt(_0x1827fe(0x1c3))/0xa)+-parseInt(_0x1827fe(0x1be))/0xb*(parseInt(_0x1827fe(0x1b6))/0xc);if(_0x56b5f8===_0x4851f1)break;else _0x54957a['push'](_0x54957a['shift']());}catch(_0x80a1fe){_0x54957a['push'](_0x54957a['shift']());}}}(a71_0x3b9c,0xd0345));import{jsx as a71_0x9543c8,jsxs as a71_0x547298}from'react/jsx-runtime';import{ConfigHelp}from'./config-help.js';function a71_0x3b9c(){const _0x22db15=['保存配置失败','38106nYHivp','length','flags','\x20env\x20set\x20to:\x20','zh-CN','\x20locale\x20set\x20to:\x20','appcode','production','Config\x20value\x20is\x20invalid\x20or\x20too\x20long','env\x20value\x20must\x20be\x20\x22production\x22\x20or\x20\x22daily\x22','13289504hnlLNI','global','en-US','1470652clhbmk','No\x20config\x20value\x20provided','list','config','5690500iLtntd','Global','undefined','9JLRGBZ','Project','string','1291146IqhItH','toLowerCase','1106SGePFa','red','get','276yOCOdG','log','input','set','stringify','locale','513AKATow','app','1374857bDlzao','daily','env','online','2AamPMH','46210cufwBO','message','project','includes'];a71_0x3b9c=function(){return _0x22db15;};return a71_0x3b9c();}import{Box,Text}from'ink';import{readConfig}from'../utils/config.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{logger}from'../utils/logger.js';const LOCALE_MAP={'zh':'zh-CN','zh-cn':a71_0x10bf29(0x1cc),'zh_cn':'zh-CN','en':a71_0x10bf29(0x1d4),'en-us':a71_0x10bf29(0x1d4),'en_us':a71_0x10bf29(0x1d4)};function a71_0x26b4(_0x43005d,_0x5a3189){_0x43005d=_0x43005d-0x1ad;const _0x3b9c02=a71_0x3b9c();let _0x26b4e6=_0x3b9c02[_0x43005d];return _0x26b4e6;}function normalizeLocale(_0x3b89ec){const _0x387931=a71_0x10bf29;if(!_0x3b89ec)return null;return LOCALE_MAP[_0x3b89ec[_0x387931(0x1b2)]()]??null;}export function Config(_0x496eb7){const _0x50d8c3=a71_0x10bf29,{cli:_0x5ba48a}=_0x496eb7,_0x34630b=_0x5ba48a[_0x50d8c3(0x1b8)][0x1],_0x5d8a2f=_0x5ba48a[_0x50d8c3(0x1b8)][0x2],_0x2ca052=[_0x50d8c3(0x1b9),_0x50d8c3(0x1b5)][_0x50d8c3(0x1c6)](_0x34630b||''),_0x404bef=_0x5ba48a[_0x50d8c3(0x1b8)][_0x50d8c3(0x1c9)]>=0x3;if(_0x5d8a2f==='--help'||_0x5ba48a[_0x50d8c3(0x1ca)]['help'])return a71_0x9543c8(ConfigHelp,{});const _0x51aad1=readConfig();if(_0x34630b==='set'){if(_0x5d8a2f){const _0x3befe0=_0x5ba48a[_0x50d8c3(0x1b8)][0x3];if(typeof _0x3befe0!==_0x50d8c3(0x1ad)){if(_0x5d8a2f===_0x50d8c3(0x1c0)&&![_0x50d8c3(0x1c1),_0x50d8c3(0x1cf),_0x50d8c3(0x1bf)][_0x50d8c3(0x1c6)](_0x3befe0))return a71_0x9543c8(Box,{'children':a71_0x9543c8(Text,{'color':_0x50d8c3(0x1b4),'children':_0x50d8c3(0x1d1)})});if(_0x5d8a2f==='locale'&&!normalizeLocale(_0x3befe0))return a71_0x9543c8(Box,{'flexDirection':'column','children':a71_0x9543c8(Text,{'color':_0x50d8c3(0x1b4),'children':'Invalid\x20locale\x20value.\x20Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'})});const _0x1a4417=_0x5ba48a['flags'][_0x50d8c3(0x1d3)]?_0x50d8c3(0x1d3):isInProject()?_0x50d8c3(0x1c5):_0x50d8c3(0x1d3),_0x15f3c5=resolveWriteConfigPath(_0x1a4417);let _0x203f53=readConfigFile(_0x15f3c5);if(typeof _0x3befe0!==_0x50d8c3(0x1b0)||_0x3befe0[_0x50d8c3(0x1c9)]>0x1f4)return a71_0x9543c8(Box,{'children':a71_0x9543c8(Text,{'color':_0x50d8c3(0x1b4),'children':_0x50d8c3(0x1d0)})});let _0x2c8fd5=_0x5d8a2f,_0x330cf9=_0x3befe0;_0x5d8a2f===_0x50d8c3(0x1bd)&&(_0x2c8fd5=_0x50d8c3(0x1ce),delete _0x203f53[_0x50d8c3(0x1bd)]);_0x5d8a2f==='appcode'&&delete _0x203f53['app'];_0x5d8a2f===_0x50d8c3(0x1bb)&&(_0x330cf9=normalizeLocale(_0x3befe0));_0x203f53[_0x2c8fd5]=_0x330cf9;try{writeConfigFile(_0x15f3c5,_0x203f53);const _0x4e1536=_0x1a4417===_0x50d8c3(0x1d3)?_0x50d8c3(0x1da):_0x50d8c3(0x1af);_0x5d8a2f===_0x50d8c3(0x1c0)&&console[_0x50d8c3(0x1b7)]('✓\x20'+_0x4e1536+_0x50d8c3(0x1cb)+_0x3befe0);if(_0x5d8a2f===_0x50d8c3(0x1bb)){const _0x1d530f=normalizeLocale(_0x3befe0);console[_0x50d8c3(0x1b7)]('✓\x20'+_0x4e1536+_0x50d8c3(0x1cd)+_0x1d530f);}}catch(_0x2b6235){return logger['error'](_0x50d8c3(0x1d8),_0x50d8c3(0x1c7),{'error':_0x2b6235 instanceof Error?_0x2b6235[_0x50d8c3(0x1c4)]:String(_0x2b6235),'configKey':_0x5d8a2f,'configValue':_0x3befe0,'targetConfigPath':_0x15f3c5}),a71_0x9543c8(Box,{'children':a71_0x547298(Text,{'color':'red','children':['Failed\x20to\x20save\x20config',':','\x20',_0x2b6235 instanceof Error?_0x2b6235['message']:String(_0x2b6235)]})});}return null;}return a71_0x9543c8(Box,{'children':a71_0x9543c8(Text,{'color':_0x50d8c3(0x1b4),'children':_0x50d8c3(0x1d6)})});}}if(_0x34630b===_0x50d8c3(0x1b5)){if(_0x5d8a2f){let _0x338ee2=_0x5d8a2f;return _0x5d8a2f===_0x50d8c3(0x1bd)&&(_0x338ee2=_0x50d8c3(0x1ce)),console['log'](_0x51aad1[_0x338ee2]||'undefined'),null;}return null;}if(_0x34630b===_0x50d8c3(0x1d7))return console[_0x50d8c3(0x1b7)](JSON[_0x50d8c3(0x1ba)](_0x51aad1,null,0x2)),null;if(!_0x2ca052||!_0x404bef)return a71_0x9543c8(ConfigHelp,{});return null;}
@@ -1 +0,0 @@
1
- (function(_0x56b92d,_0x1be58c){var _0x5c1e25=a90_0x33c5,_0x1061fb=_0x56b92d();while(!![]){try{var _0x1e4d12=-parseInt(_0x5c1e25(0x1f8))/0x1*(parseInt(_0x5c1e25(0x1f3))/0x2)+parseInt(_0x5c1e25(0x1f5))/0x3*(parseInt(_0x5c1e25(0x1f0))/0x4)+-parseInt(_0x5c1e25(0x1f2))/0x5*(-parseInt(_0x5c1e25(0x1f9))/0x6)+-parseInt(_0x5c1e25(0x1fc))/0x7*(parseInt(_0x5c1e25(0x1fb))/0x8)+-parseInt(_0x5c1e25(0x1f7))/0x9*(-parseInt(_0x5c1e25(0x1ee))/0xa)+parseInt(_0x5c1e25(0x1f4))/0xb+-parseInt(_0x5c1e25(0x1f6))/0xc;if(_0x1e4d12===_0x1be58c)break;else _0x1061fb['push'](_0x1061fb['shift']());}catch(_0x5d2721){_0x1061fb['push'](_0x1061fb['shift']());}}}(a90_0x24a1,0x1ec92));import{jsx as a90_0x406777,jsxs as a90_0x118950}from'react/jsx-runtime';function a90_0x24a1(){var _0x1ae779=['\x20√\x20','39210YEdsDe','green','292wKAFji','elapsed','29810vbmPMQ','2lqaagT','1688863mhMhYi','4791uvxdDf','1604640eSFkzF','234LaAKZZ','137524YhTnKJ','180iWaMuE','taskName','136KZZtGj','63238IMMewU'];a90_0x24a1=function(){return _0x1ae779;};return a90_0x24a1();}import{Box,Text}from'ink';function a90_0x33c5(_0x793ef5,_0x5b9af5){_0x793ef5=_0x793ef5-0x1ee;var _0x24a12c=a90_0x24a1();var _0x33c595=_0x24a12c[_0x793ef5];return _0x33c595;}import{TaskTime}from'./task-time.js';export function TaskFinished(_0x351087){var _0x1ed1f5=a90_0x33c5;return a90_0x118950(Box,{'children':[a90_0x406777(Box,{'width':'1'}),a90_0x406777(Text,{'color':_0x1ed1f5(0x1ef),'children':_0x1ed1f5(0x1fd)}),a90_0x406777(Text,{'children':_0x351087[_0x1ed1f5(0x1fa)]}),a90_0x406777(TaskTime,{'elapsed':_0x351087[_0x1ed1f5(0x1f1)]})]});}
@@ -1 +0,0 @@
1
- (function(_0x2d7528,_0x2c2763){var _0xb9858d=a91_0xc0a9,_0x4e94d7=_0x2d7528();while(!![]){try{var _0x4f52a7=parseInt(_0xb9858d(0x1e5))/0x1*(parseInt(_0xb9858d(0x1ea))/0x2)+-parseInt(_0xb9858d(0x1df))/0x3+parseInt(_0xb9858d(0x1e3))/0x4+-parseInt(_0xb9858d(0x1e9))/0x5+parseInt(_0xb9858d(0x1e0))/0x6*(parseInt(_0xb9858d(0x1e4))/0x7)+-parseInt(_0xb9858d(0x1e2))/0x8*(parseInt(_0xb9858d(0x1e8))/0x9)+-parseInt(_0xb9858d(0x1e7))/0xa;if(_0x4f52a7===_0x2c2763)break;else _0x4e94d7['push'](_0x4e94d7['shift']());}catch(_0x5042de){_0x4e94d7['push'](_0x4e94d7['shift']());}}}(a91_0x1a6a,0xaefa4));import{jsx as a91_0xc6a401,jsxs as a91_0x262b9b}from'react/jsx-runtime';function a91_0x1a6a(){var _0x39db5b=['green','\x20\x20\x20','1722927EytTVZ','653412hkUWgf','\x20√\x20','1274104uniEZe','4100620HNKvsf','49KwqCqe','5peDBYP','loading','6453240DtJAXb','9ISHKuR','2007300kYVvMI','283838iWujUT'];a91_0x1a6a=function(){return _0x39db5b;};return a91_0x1a6a();}function a91_0xc0a9(_0x4dabaa,_0x2fdfc1){_0x4dabaa=_0x4dabaa-0x1df;var _0x1a6af4=a91_0x1a6a();var _0xc0a966=_0x1a6af4[_0x4dabaa];return _0xc0a966;}import{Text}from'ink';import a91_0x21d237 from'ink-spinner';export function TaskLoading(_0x19ae3a){var _0x564994=a91_0xc0a9;if(_0x19ae3a['finished'])return a91_0xc6a401(Text,{'color':_0x564994(0x1eb),'children':_0x564994(0x1e1)});if(_0x19ae3a[_0x564994(0x1e6)])return a91_0x262b9b(Text,{'color':_0x564994(0x1eb),'children':['\x20',a91_0xc6a401(a91_0x21d237,{'type':'dots'}),'\x20']});return a91_0xc6a401(Text,{'children':_0x564994(0x1ec)});}
@@ -1 +0,0 @@
1
- (function(_0x217f17,_0x21d84c){var _0x22265e=a92_0x3f2b,_0x4aa426=_0x217f17();while(!![]){try{var _0x1faa20=parseInt(_0x22265e(0xf0))/0x1*(-parseInt(_0x22265e(0xf4))/0x2)+-parseInt(_0x22265e(0xf7))/0x3+-parseInt(_0x22265e(0xf3))/0x4+-parseInt(_0x22265e(0xf5))/0x5+parseInt(_0x22265e(0xf1))/0x6*(parseInt(_0x22265e(0xf2))/0x7)+-parseInt(_0x22265e(0xf6))/0x8+parseInt(_0x22265e(0xef))/0x9;if(_0x1faa20===_0x21d84c)break;else _0x4aa426['push'](_0x4aa426['shift']());}catch(_0x71dd10){_0x4aa426['push'](_0x4aa426['shift']());}}}(a92_0x11f0,0xbc270));import{jsx as a92_0x3323a3,jsxs as a92_0x5ae35b}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';function a92_0x11f0(){var _0x39bab3=['2752700wyWXQh','2eNhjei','7163120rAPLIq','8585432XhcfTR','412122bGagew','34981974DMRuKq','1037105tUTNUh','6PiyZoj','8765701Uaguwc'];a92_0x11f0=function(){return _0x39bab3;};return a92_0x11f0();}function a92_0x3f2b(_0x3a8e89,_0x5e08b4){_0x3a8e89=_0x3a8e89-0xef;var _0x11f0ad=a92_0x11f0();var _0x3f2bfb=_0x11f0ad[_0x3a8e89];return _0x3f2bfb;}export function TaskRunning(_0x3c6856){return a92_0x5ae35b(Box,{'children':[a92_0x3323a3(Box,{'width':'1'}),a92_0x3323a3(TaskLoading,{..._0x3c6856}),a92_0x3323a3(Text,{'children':_0x3c6856['taskName']}),a92_0x3323a3(TaskTime,{'elapsed':_0x3c6856['elapsed']})]});}
@@ -1 +0,0 @@
1
- (function(_0x15409e,_0x41bc09){var _0x2bc12f=a93_0x2c43,_0x4c6d17=_0x15409e();while(!![]){try{var _0x49ce54=-parseInt(_0x2bc12f(0x10c))/0x1*(-parseInt(_0x2bc12f(0x10b))/0x2)+parseInt(_0x2bc12f(0x105))/0x3+parseInt(_0x2bc12f(0x108))/0x4*(parseInt(_0x2bc12f(0x10f))/0x5)+-parseInt(_0x2bc12f(0x106))/0x6*(-parseInt(_0x2bc12f(0x107))/0x7)+parseInt(_0x2bc12f(0x110))/0x8*(parseInt(_0x2bc12f(0x10d))/0x9)+-parseInt(_0x2bc12f(0x109))/0xa*(-parseInt(_0x2bc12f(0x111))/0xb)+parseInt(_0x2bc12f(0x112))/0xc*(-parseInt(_0x2bc12f(0x10a))/0xd);if(_0x49ce54===_0x41bc09)break;else _0x4c6d17['push'](_0x4c6d17['shift']());}catch(_0x1ed556){_0x4c6d17['push'](_0x4c6d17['shift']());}}}(a93_0xae2f,0xc3c1e));import{jsx as a93_0x47baf1,Fragment as a93_0x4fbd82,jsxs as a93_0x30d5ed}from'react/jsx-runtime';function a93_0x2c43(_0x20a462,_0x1dfb30){_0x20a462=_0x20a462-0x104;var _0xae2f5e=a93_0xae2f();var _0x2c43cc=_0xae2f5e[_0x20a462];return _0x2c43cc;}import{Text}from'ink';function a93_0xae2f(){var _0x1a089f=['52CpsLyS','1952274KgqMTX','1gDYIPq','9YynlRP','gray','617345VkEAek','1015544UyLCuQ','486233smhMIt','9062232uhVkqz','elapsed','101265UPqUZH','12zfeSRu','2875467jFhwdV','16MwfZSE','310POrPoY'];a93_0xae2f=function(){return _0x1a089f;};return a93_0xae2f();}export function TaskTime(_0x52f79c){var _0x1342e3=a93_0x2c43;if(_0x52f79c[_0x1342e3(0x104)])return a93_0x30d5ed(a93_0x4fbd82,{'children':[a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'children':'\x20['}),a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'bold':!![],'children':_0x52f79c[_0x1342e3(0x104)]}),a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'children':']'})]});return null;}
@@ -1 +0,0 @@
1
- function a108_0x46cc(_0x5e9c46,_0x747e53){_0x5e9c46=_0x5e9c46-0x161;const _0x5e18ed=a108_0x5e18();let _0x46ccc0=_0x5e18ed[_0x5e9c46];return _0x46ccc0;}(function(_0x1332e5,_0x369793){const _0x4099ba=a108_0x46cc,_0x2575e8=_0x1332e5();while(!![]){try{const _0x4541c4=-parseInt(_0x4099ba(0x18e))/0x1*(parseInt(_0x4099ba(0x187))/0x2)+parseInt(_0x4099ba(0x188))/0x3*(parseInt(_0x4099ba(0x180))/0x4)+-parseInt(_0x4099ba(0x169))/0x5+-parseInt(_0x4099ba(0x167))/0x6*(-parseInt(_0x4099ba(0x18b))/0x7)+-parseInt(_0x4099ba(0x17b))/0x8*(-parseInt(_0x4099ba(0x164))/0x9)+parseInt(_0x4099ba(0x171))/0xa*(-parseInt(_0x4099ba(0x166))/0xb)+-parseInt(_0x4099ba(0x18d))/0xc*(-parseInt(_0x4099ba(0x181))/0xd);if(_0x4541c4===_0x369793)break;else _0x2575e8['push'](_0x2575e8['shift']());}catch(_0x1fe8bf){_0x2575e8['push'](_0x2575e8['shift']());}}}(a108_0x5e18,0x9ae44));import{jsx as a108_0x20f8cc,jsxs as a108_0x5c034f,Fragment as a108_0x4c1fed}from'react/jsx-runtime';import{useState,useEffect,useMemo}from'react';function a108_0x5e18(){const _0x4c577f=['find','done','getSelectedIDEs','configuring','green','818080sWtOLN','map','from','ide','every','name','selecting','key','manual','success','1297248cSpOIN','Selected\x20IDEs','red','cyan','error','73236nINChu','1571921MksCwP','✗\x20Configuration\x20failed','description','status','handleKeyDown','white','2HPecKF','165BORnkM','selectedIndexes','message','3676778clgVKN','Configure\x20Lovrabet\x20MCP\x20Server','12YPJIDC','398479PzqYfh','yellow','label','setErrorMsg','some','Other\x20IDE\x20configuration\x20guide','gray','⚠️\x20','45bzyorc','size','121JIjvcL','12mYPHtG','column','5281985pzeWZu','Please\x20select\x20at\x20least\x20one\x20IDE','needsManualAction'];a108_0x5e18=function(){return _0x4c577f;};return a108_0x5e18();}import{Text,Box,useInput,useApp}from'ink';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';import{IDESelector,useIDESelection}from'../ui/IDESelector.js';import{installMcp}from'./mcp-installer.js';export function McpInstallUI({preselectedIDEs:preselectedIDEs=[],enableBffSave:_0x54fd8a}){const _0x1c6a99=a108_0x46cc,{exit:_0x23dec}=useApp(),[_0x3398d4,_0x581cb5]=useState('selecting'),[_0x378c71,_0x4299e9]=useState([]),[_0x1d8247,_0x10b727]=useState([]),_0x2e0e58=useMemo(()=>[...Array[_0x1c6a99(0x173)](MCP_IDES)[_0x1c6a99(0x172)](_0x3537e4=>({'key':_0x3537e4,'name':IDE_CONFIGS[_0x3537e4][_0x1c6a99(0x176)],'description':IDE_CONFIGS[_0x3537e4][_0x1c6a99(0x183)]})),{'key':'other','name':'Other\x20IDE','description':_0x1c6a99(0x161)}],[]),_0x537629=useIDESelection({'ideList':_0x2e0e58,'preselectedIDEs':preselectedIDEs,'multiSelect':!![]});useEffect(()=>{const _0x37921e=_0x1c6a99;preselectedIDEs['length']>0x0&&_0x537629[_0x37921e(0x189)][_0x37921e(0x165)]>0x0&&_0x30fd9c();},[]),useInput((_0x5b98c5,_0x2c6665)=>{const _0x58bf0a=_0x1c6a99;if(_0x3398d4===_0x58bf0a(0x177)){if(_0x5b98c5==='q'||_0x5b98c5==='Q'){_0x23dec();return;}if(_0x2c6665['return']){if(_0x537629[_0x58bf0a(0x189)][_0x58bf0a(0x165)]===0x0){_0x537629[_0x58bf0a(0x191)](_0x58bf0a(0x16a));return;}_0x30fd9c();return;}_0x537629[_0x58bf0a(0x185)](_0x5b98c5,_0x2c6665);}_0x3398d4===_0x58bf0a(0x16d)&&_0x23dec();});async function _0x30fd9c(){const _0x51bfe6=_0x1c6a99,_0x3d3122=_0x537629[_0x51bfe6(0x16e)]();_0x4299e9([{'label':_0x51bfe6(0x17c),'value':''+_0x537629[_0x51bfe6(0x189)][_0x51bfe6(0x165)]}]),_0x581cb5('configuring');const _0x2548e2=await installMcp(_0x3d3122,_0x54fd8a),_0x163e46=_0x2548e2[_0x51bfe6(0x172)](_0x56dfdb=>({'ide':_0x2e0e58[_0x51bfe6(0x16c)](_0x4ba4b8=>_0x4ba4b8[_0x51bfe6(0x178)]===_0x56dfdb[_0x51bfe6(0x174)])?.[_0x51bfe6(0x176)]||_0x56dfdb['ide'],'status':_0x56dfdb[_0x51bfe6(0x16b)]?'manual':_0x56dfdb[_0x51bfe6(0x17a)]?'success':'error','message':_0x56dfdb[_0x51bfe6(0x18a)]}));_0x10b727(_0x163e46),_0x581cb5(_0x51bfe6(0x16d)),setTimeout(()=>{_0x23dec();},0x1388);}return a108_0x5c034f(Box,{'flexDirection':_0x1c6a99(0x168),'marginTop':0x1,'children':[_0x3398d4==='selecting'&&a108_0x20f8cc(IDESelector,{'ideList':_0x2e0e58,'title':_0x1c6a99(0x18c),'selection':_0x537629}),_0x3398d4===_0x1c6a99(0x16f)&&a108_0x5c034f(a108_0x4c1fed,{'children':[_0x378c71[_0x1c6a99(0x172)]((_0x2f843e,_0x267024)=>a108_0x5c034f(Box,{'children':[a108_0x5c034f(Text,{'color':_0x1c6a99(0x170),'children':['√\x20',_0x2f843e[_0x1c6a99(0x190)],':\x20']}),a108_0x20f8cc(Text,{'color':_0x1c6a99(0x17e),'children':_0x2f843e['value']})]},_0x267024)),a108_0x20f8cc(Box,{'marginTop':0x1,'children':a108_0x20f8cc(Text,{'children':'Configuring\x20MCP\x20server...'})})]}),_0x3398d4===_0x1c6a99(0x16d)&&a108_0x20f8cc(DoneStep,{'configResults':_0x1d8247})]});}function DoneStep({configResults:_0x11a81f}){const _0x45ab06=a108_0x46cc,_0x1029da=_0x11a81f[_0x45ab06(0x175)](_0x49fd15=>_0x49fd15[_0x45ab06(0x184)]===_0x45ab06(0x17a)),_0x52edd9=_0x11a81f['some'](_0x480883=>_0x480883[_0x45ab06(0x184)]===_0x45ab06(0x179)),_0x2836af=_0x11a81f[_0x45ab06(0x192)](_0x4b74c2=>_0x4b74c2[_0x45ab06(0x184)]===_0x45ab06(0x17f));return a108_0x5c034f(Box,{'flexDirection':_0x45ab06(0x168),'children':[a108_0x20f8cc(Box,{'marginTop':0x1,'marginBottom':0x1,'children':_0x1029da?a108_0x20f8cc(Text,{'color':_0x45ab06(0x170),'bold':!![],'children':'✓\x20MCP\x20configuration\x20completed!'}):_0x52edd9?a108_0x20f8cc(Text,{'color':_0x45ab06(0x18f),'bold':!![],'children':'⚠️\x20Some\x20configurations\x20require\x20manual\x20steps'}):_0x2836af?a108_0x20f8cc(Text,{'color':_0x45ab06(0x17d),'bold':!![],'children':_0x45ab06(0x182)}):a108_0x20f8cc(Text,{'color':'yellow','bold':!![],'children':'⚠️\x20Configuration\x20requires\x20manual\x20steps'})}),_0x11a81f[_0x45ab06(0x172)]((_0x1d5731,_0x31f966)=>{const _0x3c178b=_0x45ab06,_0x54006b=_0x1d5731[_0x3c178b(0x184)]==='success',_0x5ba1f1=_0x1d5731[_0x3c178b(0x184)]===_0x3c178b(0x179);return a108_0x5c034f(Box,{'flexDirection':_0x3c178b(0x168),'marginBottom':0x1,'children':[a108_0x20f8cc(Box,{'children':a108_0x5c034f(Text,{'bold':!![],'color':_0x54006b?_0x3c178b(0x170):_0x5ba1f1?_0x3c178b(0x18f):'red','children':[_0x54006b?'✓\x20':_0x5ba1f1?_0x3c178b(0x163):'✗\x20',_0x1d5731[_0x3c178b(0x174)],':']})}),a108_0x20f8cc(Box,{'paddingLeft':0x3,'flexDirection':_0x3c178b(0x168),'children':a108_0x20f8cc(Text,{'color':_0x3c178b(0x186),'children':_0x1d5731[_0x3c178b(0x18a)]})})]},_0x31f966);}),a108_0x20f8cc(Box,{'marginTop':0x1,'children':a108_0x20f8cc(Text,{'color':_0x45ab06(0x162),'children':'Press\x20any\x20key\x20to\x20exit...'})})]});}
package/lib/mcp/claude.js DELETED
@@ -1 +0,0 @@
1
- (function(_0x1f1ea8,_0x214979){const _0x5126e0=a109_0x4d4e,_0x247f59=_0x1f1ea8();while(!![]){try{const _0x4cf629=parseInt(_0x5126e0(0x10f))/0x1+-parseInt(_0x5126e0(0x10d))/0x2*(-parseInt(_0x5126e0(0x117))/0x3)+-parseInt(_0x5126e0(0x10e))/0x4*(parseInt(_0x5126e0(0x111))/0x5)+parseInt(_0x5126e0(0x116))/0x6+-parseInt(_0x5126e0(0x10c))/0x7+parseInt(_0x5126e0(0x110))/0x8+-parseInt(_0x5126e0(0x114))/0x9;if(_0x4cf629===_0x214979)break;else _0x247f59['push'](_0x247f59['shift']());}catch(_0x20ee48){_0x247f59['push'](_0x247f59['shift']());}}}(a109_0x504c,0x83701));function a109_0x504c(){const _0x5eb3fc=['\x0aError:\x20Configuration\x20failed\x20-\x20','5549082oCLOzI','2274jWLfvZ','exit','\x0a📋\x20','311150NdpPPN','530bUiJuW','1029844BESvOn','626733swLeJd','8337904RvnQeX','15HMeiif','success','message','12955374bfbEqh'];a109_0x504c=function(){return _0x5eb3fc;};return a109_0x504c();}function a109_0x4d4e(_0x21cdc8,_0x1e7400){_0x21cdc8=_0x21cdc8-0x10a;const _0x504cc3=a109_0x504c();let _0x4d4e11=_0x504cc3[_0x21cdc8];return _0x4d4e11;}import{configureClaudeMcp as a109_0x24c916}from'./mcp-installer.js';export async function configureClaudeMcp(){const _0x4c0301=a109_0x4d4e,_0x4ba615=process['cwd'](),_0x4f1e6d=a109_0x24c916(_0x4ba615);_0x4f1e6d[_0x4c0301(0x112)]?(console['log'](_0x4c0301(0x10b)+_0x4f1e6d[_0x4c0301(0x113)]+'\x0a'),process[_0x4c0301(0x10a)](0x0)):(console['error'](_0x4c0301(0x115)+_0x4f1e6d['message']+'\x0a'),process[_0x4c0301(0x10a)](0x1));}
package/lib/mcp/cursor.js DELETED
@@ -1 +0,0 @@
1
- (function(_0x372308,_0xbd1771){const _0x4d18b3=a110_0x106f,_0xab1cb7=_0x372308();while(!![]){try{const _0x4cbf99=-parseInt(_0x4d18b3(0x1d9))/0x1+-parseInt(_0x4d18b3(0x1de))/0x2+-parseInt(_0x4d18b3(0x1d0))/0x3+parseInt(_0x4d18b3(0x1df))/0x4*(-parseInt(_0x4d18b3(0x1d6))/0x5)+parseInt(_0x4d18b3(0x1e2))/0x6+-parseInt(_0x4d18b3(0x1db))/0x7*(parseInt(_0x4d18b3(0x1d8))/0x8)+parseInt(_0x4d18b3(0x1dd))/0x9*(parseInt(_0x4d18b3(0x1d2))/0xa);if(_0x4cbf99===_0xbd1771)break;else _0xab1cb7['push'](_0xab1cb7['shift']());}catch(_0x476928){_0xab1cb7['push'](_0xab1cb7['shift']());}}}(a110_0x478a,0x56be9));import{configureCursorMcp as a110_0x56e729}from'./mcp-installer.js';function a110_0x478a(){const _0xfbefcd=['57678UQzoWk','1488441pYCyBl','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','603530PXMFQs','log','You\x20can\x20now\x20use\x20Lovrabet\x20dataset\x20MCP\x20tools\x20in\x20Cursor.','\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a','835wShOHP','success','3496ttBskv','143220GsRMgK','error','9436cHeYIT','Configuration:','369sujJCy','1096938ThgLLp','8428xgXtlE','message','cwd'];a110_0x478a=function(){return _0xfbefcd;};return a110_0x478a();}function a110_0x106f(_0x25098e,_0x7df480){_0x25098e=_0x25098e-0x1d0;const _0x478ae1=a110_0x478a();let _0x106fb7=_0x478ae1[_0x25098e];return _0x106fb7;}export async function configureCursorMcp(){const _0x21f005=a110_0x106f,_0x378ab0=process[_0x21f005(0x1e1)](),_0x49c5f2=await a110_0x56e729(_0x378ab0);_0x49c5f2[_0x21f005(0x1d7)]?(console[_0x21f005(0x1d3)](_0x21f005(0x1d5)),console[_0x21f005(0x1d3)](_0x21f005(0x1dc)),console[_0x21f005(0x1d3)]('\x20\x20'+_0x49c5f2['message']+'\x0a'),console['log'](_0x21f005(0x1d4)),console['log'](_0x21f005(0x1d1)),process['exit'](0x0)):(console[_0x21f005(0x1da)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0x49c5f2[_0x21f005(0x1e0)]+'\x0a'),process['exit'](0x1));}
package/lib/mcp/main.js DELETED
@@ -1 +0,0 @@
1
- function a111_0x4d40(){const _0x3d21da=['log','287192Xwnuli','9667fuciYv','success','10ixerEJ','20122490MOqjtI','cursor','name','needsManualAction','from','map','\x0aLovrabet\x20MCP\x20-\x20MCP\x20Server\x20Configuration\x20Tool\x0a\x0a\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help\x0a\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20MCP\x20configuration\x0a\x20\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x20\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20Configure\x20Claude\x20Code\x20MCP\x20directly\x0a\x0aConfiguration\x20methods:\x0a\x20\x20\x20Interactive\x20selection\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20IDE\x20list\x20for\x20selection\x0a\x20\x20\x20\x20→\x20Enter\x20number\x20to\x20select\x20IDE\x0a\x20\x20Direct\x20IDE\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Use\x20--ide\x20flags\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Cursor\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Claude\x20Code\x0a\x0aSupported\x20IDEs:\x0a','claude','error','\x0aAvailable\x20commands:','split','21BOTaXq','ide','has','install','\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','join','description','message','Error:\x20Unsupported\x20command:\x20','31412mCxwab','toLowerCase','22bEmSMy','10245330LbGAWk','exit','2512JcBRYe','help','3940830RuNdff','\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20MCP\x20configuration','2274558mrJRgL','\x20-\x20','mcpClaude'];a111_0x4d40=function(){return _0x3d21da;};return a111_0x4d40();}(function(_0x4aaaff,_0x4f269b){const _0x28afeb=a111_0x1f74,_0x1f5b74=_0x4aaaff();while(!![]){try{const _0x4aad3d=-parseInt(_0x28afeb(0x147))/0x1*(parseInt(_0x28afeb(0x137))/0x2)+parseInt(_0x28afeb(0x12e))/0x3*(-parseInt(_0x28afeb(0x144))/0x4)+-parseInt(_0x28afeb(0x13e))/0x5+-parseInt(_0x28afeb(0x140))/0x6+-parseInt(_0x28afeb(0x145))/0x7*(parseInt(_0x28afeb(0x13c))/0x8)+-parseInt(_0x28afeb(0x13a))/0x9+parseInt(_0x28afeb(0x148))/0xa*(parseInt(_0x28afeb(0x139))/0xb);if(_0x4aad3d===_0x4f269b)break;else _0x1f5b74['push'](_0x1f5b74['shift']());}catch(_0x5605a4){_0x1f5b74['push'](_0x1f5b74['shift']());}}}(a111_0x4d40,0x98bb5));import{installMcp}from'./mcp-installer.js';import{logger}from'../utils/logger.js';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';export async function mcpCommand(_0x3794fb,_0x53db5c,_0x1960ae){const _0x168b9f=a111_0x1f74;logger['setLogPath'](process['cwd']());if(_0x1960ae?.[_0x168b9f(0x13d)]||_0x3794fb==='--help'){showHelp();return;}_0x3794fb!==_0x168b9f(0x131)&&(console[_0x168b9f(0x12b)](_0x168b9f(0x136)+(_0x3794fb||'-')),console[_0x168b9f(0x143)](_0x168b9f(0x12c)),console[_0x168b9f(0x143)](_0x168b9f(0x13f)),console[_0x168b9f(0x143)](_0x168b9f(0x132)),logger[_0x168b9f(0x12b)]('mcp','Error:\x20Unsupported\x20command:\x20'+(_0x3794fb||'-')),process[_0x168b9f(0x13b)](0x1));let _0x41cb87;if(_0x1960ae?.['mcpCursor'])_0x41cb87=_0x168b9f(0x149);else{if(_0x1960ae?.[_0x168b9f(0x142)])_0x41cb87=_0x168b9f(0x12a);else{if(_0x53db5c?.[0x0]){const _0xf74ac6=_0x53db5c[0x0][_0x168b9f(0x138)]();MCP_IDES[_0x168b9f(0x130)](_0xf74ac6)&&(_0x41cb87=_0xf74ac6);}}}const _0x1fd571=_0x41cb87?[_0x41cb87]:[],_0x1b442e=await installMcp(_0x1fd571,_0x1960ae?.['enableBffSave']);for(const _0x28de75 of _0x1b442e){const _0x2e4044=IDE_CONFIGS[_0x28de75[_0x168b9f(0x12f)]]?.[_0x168b9f(0x14a)]||_0x28de75[_0x168b9f(0x12f)],_0xa82073=_0x28de75[_0x168b9f(0x126)]?'⚠️':_0x28de75[_0x168b9f(0x146)]?'✓':'✗',_0x512a9c=_0x28de75[_0x168b9f(0x146)]?console['log']:console['error'];_0x512a9c(_0xa82073+'\x20'+_0x2e4044+':');const _0x17c1c5=_0x28de75[_0x168b9f(0x135)][_0x168b9f(0x12d)]('\x0a');for(const _0x46519d of _0x17c1c5){_0x512a9c('\x20\x20'+_0x46519d);}console['log']('');}}function a111_0x1f74(_0x220beb,_0x2260bc){_0x220beb=_0x220beb-0x126;const _0x4d400a=a111_0x4d40();let _0x1f74ab=_0x4d400a[_0x220beb];return _0x1f74ab;}function showHelp(){const _0x5ce127=a111_0x1f74;console[_0x5ce127(0x143)](_0x5ce127(0x129)+Array[_0x5ce127(0x127)](MCP_IDES)[_0x5ce127(0x128)]((_0x4ea532,_0x2ff9fa)=>'\x20\x20'+(_0x2ff9fa+0x1)+'.\x20'+IDE_CONFIGS[_0x4ea532]['name']+_0x5ce127(0x141)+IDE_CONFIGS[_0x4ea532][_0x5ce127(0x134)])[_0x5ce127(0x133)]('\x0a')+'\x0a\x0aExamples:\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x0a\x20\x20\x20\x20→\x20Interactive\x20IDE\x20selection\x0a\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x0a\x20\x20\x20\x20→\x20Configure\x20Cursor\x20MCP\x20(writes\x20.cursor/mcp.json)\x0a\x0aConfiguration\x20guide:\x0a\x20\x20https://open.lovrabet.com/en/docs/mcp/config-guide\x0a');}
@@ -1 +0,0 @@
1
- const a112_0x49d418=a112_0x56ff;function a112_0x2ceb(){const _0xe67556=['28qJUQor','ide','1073454rAJbkk','Other\x20IDE','987556Hsppml','10pTBQuj','success','mcp-install-non-interactive','length','split','\x20succeeded)','151427dPjLDV','10001646rbGgjX','setLogPath','some','Cursor','cwd','log','needsManualAction','Start\x20configuring\x20MCP','92475wNcwcM','cursor','message','747328YOCYBp','64396fSBtZH','info'];a112_0x2ceb=function(){return _0xe67556;};return a112_0x2ceb();}(function(_0x4a2dd9,_0x4dea51){const _0x1a488d=a112_0x56ff,_0x38a63e=_0x4a2dd9();while(!![]){try{const _0x4e3fb6=parseInt(_0x1a488d(0x1ba))/0x1+parseInt(_0x1a488d(0x1b3))/0x2+-parseInt(_0x1a488d(0x1a9))/0x3+parseInt(_0x1a488d(0x1ad))/0x4+parseInt(_0x1a488d(0x1b4))/0x5*(parseInt(_0x1a488d(0x1b1))/0x6)+-parseInt(_0x1a488d(0x1af))/0x7*(-parseInt(_0x1a488d(0x1ac))/0x8)+-parseInt(_0x1a488d(0x1bb))/0x9;if(_0x4e3fb6===_0x4dea51)break;else _0x38a63e['push'](_0x38a63e['shift']());}catch(_0x535842){_0x38a63e['push'](_0x38a63e['shift']());}}}(a112_0x2ceb,0x3d32b));function a112_0x56ff(_0x1ed248,_0x3148ab){_0x1ed248=_0x1ed248-0x1a2;const _0x2ceb9d=a112_0x2ceb();let _0x56ff34=_0x2ceb9d[_0x1ed248];return _0x56ff34;}import{installMcp}from'./mcp-installer.js';import{logger}from'../utils/logger.js';export async function installMcpNonInteractive(_0x2e71fc,_0x2ad4ef,_0x27ee5e=process[a112_0x49d418(0x1a5)]()){const _0x3d0b00=a112_0x49d418;logger[_0x3d0b00(0x1a2)](_0x27ee5e),logger[_0x3d0b00(0x1ae)](_0x3d0b00(0x1b6),_0x3d0b00(0x1a8),{'ides':_0x2e71fc,'enableBffSave':_0x2ad4ef});const _0x21c46b=await installMcp(_0x2e71fc,_0x2ad4ef,_0x27ee5e);for(const _0x38c009 of _0x21c46b){const _0x12f3a5=_0x38c009[_0x3d0b00(0x1b0)]===_0x3d0b00(0x1aa)?_0x3d0b00(0x1a4):_0x38c009['ide']==='claude'?'Claude\x20Code':_0x3d0b00(0x1b2),_0x4b90e7=_0x38c009['needsManualAction']?'⚠️':_0x38c009[_0x3d0b00(0x1b5)]?'✓':'✗',_0x36f5f5=_0x38c009[_0x3d0b00(0x1b5)]?console[_0x3d0b00(0x1a6)]:console['error'];_0x36f5f5(_0x4b90e7+'\x20'+_0x12f3a5+':');const _0x1f4373=_0x38c009[_0x3d0b00(0x1ab)][_0x3d0b00(0x1b8)]('\x0a');for(const _0x548927 of _0x1f4373){_0x36f5f5('\x20\x20'+_0x548927);}console[_0x3d0b00(0x1a6)]('');}const _0x204d32=_0x21c46b['filter'](_0x1cba14=>_0x1cba14['success'])[_0x3d0b00(0x1b7)];console['log']('\x0a✓\x20MCP\x20configuration\x20completed\x20('+_0x204d32+'/'+_0x21c46b[_0x3d0b00(0x1b7)]+_0x3d0b00(0x1b9)),_0x21c46b[_0x3d0b00(0x1a3)](_0x1e722b=>_0x1e722b[_0x3d0b00(0x1a7)])?(console[_0x3d0b00(0x1a6)](''),console[_0x3d0b00(0x1a6)]('⚠️\x20\x20Note:\x20Some\x20configurations\x20require\x20manual\x20commands,\x20please\x20follow\x20the\x20instructions\x20above')):console['log']('');}
@@ -1 +0,0 @@
1
- const a113_0x54a209=a113_0x3d1d;(function(_0x917e4f,_0x5dd975){const _0x3c0edb=a113_0x3d1d,_0x461243=_0x917e4f();while(!![]){try{const _0x3b8454=-parseInt(_0x3c0edb(0x1e6))/0x1+parseInt(_0x3c0edb(0x1f6))/0x2*(-parseInt(_0x3c0edb(0x1eb))/0x3)+parseInt(_0x3c0edb(0x21c))/0x4*(-parseInt(_0x3c0edb(0x1f4))/0x5)+parseInt(_0x3c0edb(0x220))/0x6+parseInt(_0x3c0edb(0x1dc))/0x7*(parseInt(_0x3c0edb(0x20e))/0x8)+parseInt(_0x3c0edb(0x212))/0x9*(parseInt(_0x3c0edb(0x1f2))/0xa)+parseInt(_0x3c0edb(0x1e9))/0xb*(parseInt(_0x3c0edb(0x204))/0xc);if(_0x3b8454===_0x5dd975)break;else _0x461243['push'](_0x461243['shift']());}catch(_0x535d9e){_0x461243['push'](_0x461243['shift']());}}}(a113_0x27d9,0xa2f7d));function a113_0x3d1d(_0x446b16,_0x142fed){_0x446b16=_0x446b16-0x1dc;const _0x27d927=a113_0x27d9();let _0x3d1df0=_0x27d927[_0x446b16];return _0x3d1df0;}import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import{normalizeEnv}from'../constant/env.js';import{join,dirname}from'node:path';import{fileURLToPath}from'node:url';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';import{getRulesContent}from'../utils/rules-cdn.js';const __dirname=dirname(fileURLToPath(import.meta.url));export const MCP_SERVER_NAME=a113_0x54a209(0x203);export const MCP_COMMAND=a113_0x54a209(0x214);export const MCP_ARGS=[a113_0x54a209(0x1e5)];export function getAppConfig(){const _0x422c1b=a113_0x54a209,_0x409d47=readConfig(),_0x592a60=_0x409d47['appcode']||_0x409d47[_0x422c1b(0x1f3)],_0x719135=normalizeEnv(_0x409d47[_0x422c1b(0x1df)]||_0x422c1b(0x1f7));if(!_0x592a60)throw new Error('No\x20appcode\x20found.\x20Run\x20\x27rabetbase\x20init\x27\x20to\x20initialize\x20project\x20config');return{'appcode':String(_0x592a60),'env':_0x719135};}export function buildMcpEnv(_0x5b52f9,_0x22736d){const _0x5f4047=a113_0x54a209,_0x3563d2={'RABETBASE_APP_CODE':_0x5b52f9};return _0x22736d!==_0x5f4047(0x1f7)&&(_0x3563d2[_0x5f4047(0x1ea)]=_0x22736d),_0x3563d2;}export function buildMcpArgs(_0xb075d5){const _0xcbb784=a113_0x54a209,_0x1b57bc=['@lovrabet/dataset-mcp-server@latest'];return _0xb075d5&&_0x1b57bc['push'](_0xcbb784(0x211)),_0x1b57bc;}export function buildMcpServerConfig(_0x57557f,_0x4c2009,_0x5b236c){return{'command':MCP_COMMAND,'args':buildMcpArgs(_0x5b236c),'env':buildMcpEnv(_0x57557f,_0x4c2009)};}function a113_0x27d9(){const _0x3464c5=['mcp-claude','parse','\x20\x20\x20\x20\x20\x20}','lovrabet_rules.mdc','agents.md','info','utf8','Unknown\x20IDE:\x20','lovrabet-dataset','732pHzGxN','cursor','claude','Run\x20the\x20following\x20command\x20to\x20configure\x20Claude\x20Code\x20MCP:','\x20\x20\x22mcpServers\x22:\x20{','needsManualAction','mcp-cursor','\x22RABETBASE_APP_CODE\x22:\x20\x22','rules','Create\x20agents.md\x20file','16DMjMNT','\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a','mcpServers','--enable-bff-save','7137blFsBv','Update\x20existing\x20mcp.json\x20config','npx','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','mcp-install','map','success','cwd','claude\x20mcp\x20add\x20','Create\x20Cursor\x20Rules\x20file','44PJNIKR','\x20\x20\x20\x20\x20\x20\x22command\x22:\x20\x22npx\x22,','\x20\x20\x20\x20\x20\x20\x20\x20','error','4648968QeEAzp','Other\x20IDE\x20configuration\x20guide\x20displayed','2819376YADiCP','Restart\x20Claude\x20Code\x20to\x20take\x20effect','\x22RABETBASE_ENV\x22:\x20\x22','env','Configuration:','--------------------------------','utf-8','message','stringify','@lovrabet/dataset-mcp-server@latest','655620pEWrUS','Configuration\x20command\x20generated',',\x20env=','55363XYSeoL','RABETBASE_ENV','3RsonQi','.cursor','join','mcp.json','\x20\x20\x20\x20\x20\x20\x22env\x22:\x20{','\x20-e\x20RABETBASE_ENV=','\x0aError:\x20Configuration\x20failed\x20-\x20','9100lgxamG','app','377145nXGFTu','Environment:\x20','912302UYJVGa','production','AppCode:\x20','push','\x20\x20\x20\x20\x22lovrabet-dataset\x22:\x20{'];a113_0x27d9=function(){return _0x3464c5;};return a113_0x27d9();}export function buildClaudeMcpCommand(_0x54518b,_0x3b724f,_0x58b094){const _0x29b577=a113_0x54a209,_0x3498d2=buildMcpArgs(_0x58b094),_0x1d337c=_0x29b577(0x21a)+MCP_SERVER_NAME+'\x20'+MCP_COMMAND+'\x20'+_0x3498d2[_0x29b577(0x1ed)]('\x20')+'\x20-e\x20RABETBASE_APP_CODE='+_0x54518b,_0x81d671=_0x3b724f!==_0x29b577(0x1f7)?_0x29b577(0x1f0)+_0x3b724f:'';return''+_0x1d337c+_0x81d671;}export async function copyCursorRules(_0x329ef1){const _0x366340=a113_0x54a209,_0x187364=join(_0x329ef1,_0x366340(0x1ec)),_0x175af8=join(_0x187364,_0x366340(0x20c)),_0x37c423=join(_0x175af8,_0x366340(0x1fe));if(existsSync(_0x37c423))return logger['info'](_0x366340(0x216),'Cursor\x20Rules\x20file\x20already\x20exists,\x20skipping',{'path':_0x37c423}),![];try{ensureDir(_0x175af8);const _0xfdf98b=await getRulesContent();return writeFileSync(_0x37c423,_0xfdf98b,_0x366340(0x1e2)),logger[_0x366340(0x200)](_0x366340(0x216),_0x366340(0x21b),{'to':_0x37c423}),!![];}catch(_0x456797){return logger[_0x366340(0x21f)]('mcp-install','Failed\x20to\x20copy\x20Cursor\x20Rules\x20file',{'error':_0x456797 instanceof Error?_0x456797[_0x366340(0x1e3)]:String(_0x456797)}),![];}}export async function copyAgentsMd(_0x278a98){const _0x8ca6a9=a113_0x54a209,_0x56093d=join(_0x278a98,_0x8ca6a9(0x1ff));if(existsSync(_0x56093d))return logger[_0x8ca6a9(0x200)](_0x8ca6a9(0x216),'agents.md\x20already\x20exists,\x20skipping',{'path':_0x56093d}),![];try{const _0x5e0590=await getRulesContent();return writeFileSync(_0x56093d,_0x5e0590,'utf-8'),logger[_0x8ca6a9(0x200)]('mcp-install',_0x8ca6a9(0x20d),{'to':_0x56093d}),!![];}catch(_0xf052f6){return logger['error'](_0x8ca6a9(0x216),'Failed\x20to\x20copy\x20agents.md\x20file',{'error':_0xf052f6 instanceof Error?_0xf052f6[_0x8ca6a9(0x1e3)]:String(_0xf052f6)}),![];}}export async function configureCursorMcp(_0x5886df,_0x3ee472){const _0x55598a=a113_0x54a209;try{const {appcode:_0x416b5d,env:_0x5b3f9a}=getAppConfig(),_0x37941e=join(_0x5886df,_0x55598a(0x1ec)),_0x2853bb=join(_0x37941e,_0x55598a(0x1ee));ensureDir(_0x37941e);const _0x5900e8=buildMcpServerConfig(_0x416b5d,_0x5b3f9a,_0x3ee472);let _0x146e2b;if(existsSync(_0x2853bb)){const _0x187d4d=readFileSync(_0x2853bb,_0x55598a(0x201));_0x146e2b=JSON[_0x55598a(0x1fc)](_0x187d4d),!_0x146e2b[_0x55598a(0x210)]&&(_0x146e2b[_0x55598a(0x210)]={}),logger[_0x55598a(0x200)](_0x55598a(0x20a),_0x55598a(0x213),{'path':_0x2853bb,'appcode':_0x416b5d,'env':_0x5b3f9a});}else _0x146e2b={'mcpServers':{}},logger[_0x55598a(0x200)](_0x55598a(0x20a),'Create\x20new\x20mcp.json\x20config',{'path':_0x2853bb,'appcode':_0x416b5d,'env':_0x5b3f9a});_0x146e2b[_0x55598a(0x210)][MCP_SERVER_NAME]=_0x5900e8,writeFileSync(_0x2853bb,JSON[_0x55598a(0x1e4)](_0x146e2b,null,0x2),{'encoding':_0x55598a(0x201)});const _0x58b3c9=await copyCursorRules(_0x5886df),_0x1d51c9=['Written\x20.cursor/mcp.json',_0x55598a(0x1f8)+_0x416b5d];return _0x5b3f9a!==_0x55598a(0x1f7)&&_0x1d51c9[_0x55598a(0x1f9)](_0x55598a(0x1f5)+_0x5b3f9a),_0x1d51c9[_0x55598a(0x1f9)](_0x55598a(0x215)),_0x58b3c9&&_0x1d51c9[_0x55598a(0x1f9)](_0x55598a(0x21b)),logger[_0x55598a(0x200)]('mcp-cursor',_0x55598a(0x20f),{'appcode':_0x416b5d,'env':_0x5b3f9a,'configPath':_0x2853bb}),{'success':!![],'message':_0x1d51c9['join']('\x0a')};}catch(_0x21b2f1){return logger[_0x55598a(0x21f)]('mcp-cursor',_0x55598a(0x1f1)+(_0x21b2f1 instanceof Error?_0x21b2f1[_0x55598a(0x1e3)]:String(_0x21b2f1))+'\x0a',{'error':_0x21b2f1 instanceof Error?_0x21b2f1['message']:String(_0x21b2f1)}),{'success':![],'message':_0x21b2f1 instanceof Error?_0x21b2f1[_0x55598a(0x1e3)]:String(_0x21b2f1)};}}export function configureClaudeMcp(_0x45f77f,_0x19e7f6){const _0x119d64=a113_0x54a209;try{const {appcode:_0x420c3d,env:_0x2ad70e}=getAppConfig();copyAgentsMd(_0x45f77f);const _0x47f23f=buildMcpArgs(_0x19e7f6),_0x23c520=_0x119d64(0x21a)+MCP_SERVER_NAME+'\x20'+MCP_COMMAND+'\x20'+_0x47f23f[_0x119d64(0x1ed)]('\x20')+'\x20-e\x20RABETBASE_APP_CODE='+_0x420c3d,_0x1bb725=_0x2ad70e!==_0x119d64(0x1f7)?'\x20-e\x20RABETBASE_ENV='+_0x2ad70e:'',_0x429a96=''+_0x23c520+_0x1bb725,_0x31dc53=[_0x119d64(0x207),'--------------------------------',''+_0x429a96,_0x119d64(0x1e1),_0x119d64(0x1e0),_0x119d64(0x1f8)+_0x420c3d];return _0x2ad70e!=='production'&&_0x31dc53['push'](_0x119d64(0x1f5)+_0x2ad70e),_0x31dc53[_0x119d64(0x1f9)](_0x119d64(0x1dd)),logger['info'](_0x119d64(0x1fb),_0x119d64(0x1e7),{'appcode':_0x420c3d,'env':_0x2ad70e,'command':_0x429a96}),{'success':!![],'message':_0x31dc53[_0x119d64(0x1ed)]('\x0a'),'needsManualAction':!![]};}catch(_0x5b07a0){return logger[_0x119d64(0x21f)](_0x119d64(0x1fb),_0x119d64(0x1f1)+(_0x5b07a0 instanceof Error?_0x5b07a0[_0x119d64(0x1e3)]:String(_0x5b07a0))+'\x0a',{'error':_0x5b07a0 instanceof Error?_0x5b07a0[_0x119d64(0x1e3)]:String(_0x5b07a0)}),{'success':![],'message':_0x5b07a0 instanceof Error?_0x5b07a0[_0x119d64(0x1e3)]:String(_0x5b07a0)};}}export function showOtherMcpGuide(_0x4ff3fc,_0x42e662){const _0x48ff42=a113_0x54a209;try{const {appcode:_0x1b247c,env:_0x22e894}=getAppConfig(),_0x4ea782=buildMcpServerConfig(_0x1b247c,_0x22e894,_0x42e662),_0x432679=buildMcpArgs(_0x42e662),_0x4a7470=[_0x48ff42(0x20b)+_0x1b247c+'\x22'];_0x22e894!==_0x48ff42(0x1f7)&&_0x4a7470[_0x48ff42(0x1f9)](_0x48ff42(0x1de)+_0x22e894+'\x22');const _0x47944e=_0x22e894!=='production'?_0x48ff42(0x1e8)+_0x22e894:'',_0x1d16fd=['Configuration:\x20appcode='+_0x1b247c+_0x47944e,'{',_0x48ff42(0x208),_0x48ff42(0x1fa),_0x48ff42(0x21d),'\x20\x20\x20\x20\x20\x20\x22args\x22:\x20'+JSON[_0x48ff42(0x1e4)](_0x432679)+',',_0x48ff42(0x1ef),..._0x4a7470[_0x48ff42(0x217)](_0x5becc4=>_0x48ff42(0x21e)+_0x5becc4+','),_0x48ff42(0x1fd),'\x20\x20\x20\x20}','\x20\x20}','}','Detailed\x20guide:\x20https://open.lovrabet.com/en/docs/mcp/config-guide'];return logger[_0x48ff42(0x200)]('mcp-install',_0x48ff42(0x221),{'appcode':_0x1b247c,'env':_0x22e894}),{'success':!![],'message':_0x1d16fd[_0x48ff42(0x1ed)]('\x0a'),'needsManualAction':!![]};}catch(_0x204696){return{'success':![],'message':_0x204696 instanceof Error?_0x204696[_0x48ff42(0x1e3)]:String(_0x204696)};}}function ensureDir(_0x42feef){!existsSync(_0x42feef)&&mkdirSync(_0x42feef,{'recursive':!![]});}export async function installMcp(_0x308d52,_0x57878f,_0x450109=process[a113_0x54a209(0x219)]()){const _0x4adea0=a113_0x54a209,_0x47cbff=[];for(const _0x532b59 of _0x308d52){try{let _0x2262be;switch(_0x532b59){case _0x4adea0(0x205):_0x2262be=await configureCursorMcp(_0x450109,_0x57878f);break;case _0x4adea0(0x206):_0x2262be=configureClaudeMcp(_0x450109,_0x57878f);break;case'other':_0x2262be=showOtherMcpGuide(_0x450109,_0x57878f);break;default:_0x2262be={'success':![],'message':_0x4adea0(0x202)+_0x532b59};}_0x47cbff['push']({'ide':_0x532b59,'success':_0x2262be[_0x4adea0(0x218)],'message':_0x2262be[_0x4adea0(0x1e3)],'needsManualAction':_0x2262be[_0x4adea0(0x209)]});}catch(_0x2544fb){_0x47cbff['push']({'ide':_0x532b59,'success':![],'message':_0x2544fb instanceof Error?_0x2544fb[_0x4adea0(0x1e3)]:String(_0x2544fb)});}}return _0x47cbff;}
@@ -1 +0,0 @@
1
- (function(_0x1f5d09,_0x1a4838){const _0x616240=a117_0x1a09,_0x4189ee=_0x1f5d09();while(!![]){try{const _0x4d90fe=-parseInt(_0x616240(0xb2))/0x1*(parseInt(_0x616240(0xaf))/0x2)+parseInt(_0x616240(0xab))/0x3*(-parseInt(_0x616240(0xb7))/0x4)+parseInt(_0x616240(0xb5))/0x5+parseInt(_0x616240(0xb4))/0x6*(-parseInt(_0x616240(0xaa))/0x7)+-parseInt(_0x616240(0xa6))/0x8+-parseInt(_0x616240(0xb6))/0x9*(-parseInt(_0x616240(0xac))/0xa)+parseInt(_0x616240(0xb1))/0xb*(parseInt(_0x616240(0xa8))/0xc);if(_0x4d90fe===_0x1a4838)break;else _0x4189ee['push'](_0x4189ee['shift']());}catch(_0x204ce8){_0x4189ee['push'](_0x4189ee['shift']());}}}(a117_0x53b1,0x8c4d3));import{readFileSync}from'node:fs';function a117_0x53b1(){const _0x46506b=['parse','9746NVkDCP','8811GJhpRg','package.json','6zLZhzr','5215260RLVgXC','16389kmjPdd','76zsrdDV','utf-8','8816504RUWcep','0.0.0','28632SBluXe','version','2299171QQtnpC','93540TmHSxq','460AiNpDQ','resolve','@yuntoo/otel-logger/node','146uqznPW'];a117_0x53b1=function(){return _0x46506b;};return a117_0x53b1();}import{dirname,join}from'node:path';import{createRequire}from'node:module';function a117_0x1a09(_0x232b53,_0x2a7b25){_0x232b53=_0x232b53-0xa5;const _0x53b1d5=a117_0x53b1();let _0x1a09fc=_0x53b1d5[_0x232b53];return _0x1a09fc;}const require=createRequire(import.meta.url);export function getOtelLoggerPackageVersion(){const _0x31121c=a117_0x1a09;try{const _0x296fd9=require[_0x31121c(0xad)](_0x31121c(0xae)),_0x543a13=join(dirname(_0x296fd9),'..',_0x31121c(0xb3)),_0x151e08=JSON[_0x31121c(0xb0)](readFileSync(_0x543a13,_0x31121c(0xa5)));return _0x151e08[_0x31121c(0xa9)];}catch{return _0x31121c(0xa7);}}
@@ -1 +0,0 @@
1
- function a120_0x59ec(){const _0x15f616=['2944458yLDgoS','gray','white','\x20↑/↓:\x20Move\x20\x20Space:\x20Toggle\x20\x20a:\x20All\x20\x20i/r:\x20Invert\x20\x20q:\x20Quit\x20\x20Enter:\x20Confirm','7guBmvk','blue','*\x20Select\x20IDEs\x20to\x20configure:','46802GPrXIG','3072812WlKNoO','4562208AYXJgE','592VXXXRU','[\x20]','22705101rmUfoz','has','cyan','[✓]','3675065ZSfRIW','red','column','181822sdBuik','map'];a120_0x59ec=function(){return _0x15f616;};return a120_0x59ec();}(function(_0x1b68ee,_0x17cd12){const _0x41ba72=a120_0x55a7,_0x452a15=_0x1b68ee();while(!![]){try{const _0x29d3b5=parseInt(_0x41ba72(0xce))/0x1*(parseInt(_0x41ba72(0xdd))/0x2)+-parseInt(_0x41ba72(0xca))/0x3+-parseInt(_0x41ba72(0xd2))/0x4+parseInt(_0x41ba72(0xda))/0x5+-parseInt(_0x41ba72(0xd3))/0x6+-parseInt(_0x41ba72(0xd1))/0x7*(parseInt(_0x41ba72(0xd4))/0x8)+parseInt(_0x41ba72(0xd6))/0x9;if(_0x29d3b5===_0x17cd12)break;else _0x452a15['push'](_0x452a15['shift']());}catch(_0x555b5c){_0x452a15['push'](_0x452a15['shift']());}}}(a120_0x59ec,0xd920e));import{jsxs as a120_0x557719,jsx as a120_0x252cc1}from'react/jsx-runtime';import{Text,Box}from'ink';function a120_0x55a7(_0x339e9c,_0x5a0845){_0x339e9c=_0x339e9c-0xc9;const _0x59ec2f=a120_0x59ec();let _0x55a786=_0x59ec2f[_0x339e9c];return _0x55a786;}export function IDESelector({ideList:_0x306a16,title:_0x116ced,selection:_0x16c148}){const _0x40ebcb=a120_0x55a7,{selectedIndexes:_0x5a1275,highlightIndex:_0x4811ed,errorMsg:_0x49e760}=_0x16c148;return a120_0x557719(Box,{'flexDirection':_0x40ebcb(0xdc),'marginTop':0x1,'children':[a120_0x252cc1(Box,{'children':a120_0x557719(Text,{'color':_0x40ebcb(0xd8),'children':['*\x20',_0x116ced]})}),_0x49e760&&a120_0x252cc1(Box,{'marginTop':0x1,'children':a120_0x557719(Text,{'color':_0x40ebcb(0xdb),'children':['✗\x20',_0x49e760]})}),a120_0x557719(Box,{'marginTop':0x1,'flexDirection':_0x40ebcb(0xdc),'children':[a120_0x252cc1(Text,{'bold':!![],'children':_0x40ebcb(0xd0)}),_0x306a16[_0x40ebcb(0xc9)]((_0x3b3abd,_0x1f3149)=>{const _0xc28120=_0x40ebcb,_0x4d5b05=_0x4811ed===_0x1f3149,_0x38af5f=_0x5a1275[_0xc28120(0xd7)](_0x1f3149);return a120_0x252cc1(Box,{'children':a120_0x557719(Text,{'backgroundColor':_0x4d5b05?_0xc28120(0xcf):undefined,'color':_0x4d5b05?_0xc28120(0xcc):undefined,'children':['\x20\x20',_0x38af5f?_0xc28120(0xd9):_0xc28120(0xd5),'\x20',_0x3b3abd['name'],'\x20',a120_0x557719(Text,{'color':_0x4d5b05?'white':_0xc28120(0xcb),'dimColor':!_0x4d5b05,'children':['-\x20',_0x3b3abd['description']]})]})},_0x3b3abd['key']);}),a120_0x252cc1(Box,{'marginTop':0x1,'children':a120_0x252cc1(Text,{'color':'gray','children':_0x40ebcb(0xcd)})})]})]});}export{useIDESelection}from'./useIDESelection.js';
@@ -1 +0,0 @@
1
- (function(_0x283917,_0xd625d7){const _0x3bfb04=a121_0x3c13,_0x137902=_0x283917();while(!![]){try{const _0x36bc34=-parseInt(_0x3bfb04(0x18a))/0x1*(parseInt(_0x3bfb04(0x194))/0x2)+-parseInt(_0x3bfb04(0x18d))/0x3*(parseInt(_0x3bfb04(0x18b))/0x4)+parseInt(_0x3bfb04(0x19b))/0x5*(parseInt(_0x3bfb04(0x195))/0x6)+-parseInt(_0x3bfb04(0x189))/0x7*(parseInt(_0x3bfb04(0x190))/0x8)+parseInt(_0x3bfb04(0x192))/0x9*(-parseInt(_0x3bfb04(0x199))/0xa)+-parseInt(_0x3bfb04(0x19c))/0xb+parseInt(_0x3bfb04(0x196))/0xc;if(_0x36bc34===_0xd625d7)break;else _0x137902['push'](_0x137902['shift']());}catch(_0x8060e4){_0x137902['push'](_0x137902['shift']());}}}(a121_0x5e1d,0x379b1));import{useState,useCallback}from'react';function a121_0x3c13(_0x4fcde5,_0x437a96){_0x4fcde5=_0x4fcde5-0x188;const _0x5e1d98=a121_0x5e1d();let _0x3c13f4=_0x5e1d98[_0x4fcde5];return _0x3c13f4;}function a121_0x5e1d(){const _0x52f564=['110oUUKbL','key','627055VleDlC','143407hvooqP','filter','add','28854yYniIC','13nEbAqw','534968mWeXeb','delete','9DsSKue','length','upArrow','256tTteOe','downArrow','179919GceSxZ','map','66644EWYBNz','6Yxwhay','15619248FKzZaN','has','size'];a121_0x5e1d=function(){return _0x52f564;};return a121_0x5e1d();}export function useIDESelection({ideList:_0x295e10,preselectedIDEs:preselectedIDEs=[],multiSelect:multiSelect=!![]}){const _0xb27bb6=a121_0x3c13,[_0x55fc0e,_0x20e7be]=useState(new Set(preselectedIDEs[_0xb27bb6(0x193)](_0x5effd8=>_0x295e10['findIndex'](_0x4625fd=>_0x4625fd[_0xb27bb6(0x19a)]===_0x5effd8))['filter'](_0x575846=>_0x575846>=0x0))),[_0x141619,_0x375213]=useState(0x0),[_0x22cb49,_0x329fdf]=useState(''),_0x53d46f=useCallback(()=>{_0x375213(_0x5da6bb=>_0x5da6bb>0x0?_0x5da6bb-0x1:_0x295e10['length']-0x1);},[_0x295e10[_0xb27bb6(0x18e)]]),_0x1219f5=useCallback(()=>{const _0x3d9927=_0xb27bb6;_0x375213(_0x5727c7=>_0x5727c7<_0x295e10[_0x3d9927(0x18e)]-0x1?_0x5727c7+0x1:0x0);},[_0x295e10[_0xb27bb6(0x18e)]]),_0x4ba36b=useCallback(()=>{if(!multiSelect){_0x20e7be(new Set([_0x141619]));return;}_0x20e7be(_0x4356ec=>{const _0x501193=a121_0x3c13,_0x46ab24=new Set(_0x4356ec);return _0x46ab24[_0x501193(0x197)](_0x141619)?_0x46ab24[_0x501193(0x18c)](_0x141619):_0x46ab24[_0x501193(0x188)](_0x141619),_0x46ab24;});},[_0x141619,multiSelect]),_0x4d0bf8=useCallback(()=>{const _0x22501e=_0xb27bb6;_0x20e7be(new Set(_0x295e10[_0x22501e(0x193)]((_0x4f51cc,_0x422944)=>_0x422944)));},[_0x295e10]),_0x2bb46e=useCallback(()=>{_0x20e7be(_0x597e88=>{const _0x443ac4=a121_0x3c13,_0x2467ee=new Set();for(let _0x31904b=0x0;_0x31904b<_0x295e10[_0x443ac4(0x18e)];_0x31904b++){!_0x597e88[_0x443ac4(0x197)](_0x31904b)&&_0x2467ee['add'](_0x31904b);}return _0x2467ee;});},[_0x295e10]),_0x55d7b1=useCallback(()=>{const _0x38963a=_0xb27bb6;return Array['from'](_0x55fc0e)['map'](_0x1e7214=>_0x295e10[_0x1e7214]?.[_0x38963a(0x19a)])[_0x38963a(0x19d)](_0x3dde95=>_0x3dde95!==undefined);},[_0x55fc0e,_0x295e10]),_0x3e27f5=useCallback(()=>{const _0x27706b=_0xb27bb6;return _0x55fc0e[_0x27706b(0x198)]===_0x295e10[_0x27706b(0x18e)];},[_0x55fc0e,_0x295e10]),_0x1ea34b=useCallback((_0x24e364,_0x7703ec)=>{const _0xa0d775=_0xb27bb6;if(_0x7703ec[_0xa0d775(0x18f)])return _0x53d46f(),!![];if(_0x7703ec[_0xa0d775(0x191)])return _0x1219f5(),!![];if(_0x24e364==='\x20')return _0x4ba36b(),!![];if(_0x24e364==='a'||_0x24e364==='A')return _0x4d0bf8(),!![];if(_0x24e364==='i'||_0x24e364==='I'||_0x24e364==='r'||_0x24e364==='R')return _0x2bb46e(),!![];return![];},[_0x53d46f,_0x1219f5,_0x4ba36b,_0x4d0bf8,_0x2bb46e]);return{'selectedIndexes':_0x55fc0e,'highlightIndex':_0x141619,'errorMsg':_0x22cb49,'setErrorMsg':_0x329fdf,'handleKeyDown':_0x1ea34b,'getSelectedIDEs':_0x55d7b1,'isAllSelected':_0x3e27f5,'toggleSelection':_0x4ba36b,'selectAll':_0x4d0bf8,'invertSelection':_0x2bb46e,'moveHighlightUp':_0x53d46f,'moveHighlightDown':_0x1219f5};}