@lovrabet/cli 1.2.5-beta.4 → 1.2.5-beta.5

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 (66) hide show
  1. package/lib/add-page/input-page-router.js +1 -1
  2. package/lib/add-page/main.js +1 -1
  3. package/lib/add-page/select-page-template.js +1 -1
  4. package/lib/ai-setup/AISetupUI.js +1 -1
  5. package/lib/ai-setup/config.js +1 -1
  6. package/lib/api/api-doc-ui.js +1 -1
  7. package/lib/api/api-doc.js +1 -1
  8. package/lib/api/api-pull-ui.js +1 -1
  9. package/lib/api/fetch-model-list.js +1 -1
  10. package/lib/api/generate-api-file.js +1 -1
  11. package/lib/api/main.js +1 -1
  12. package/lib/api/pull-silent.js +1 -1
  13. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  14. package/lib/app-menu/create-menu.js +1 -1
  15. package/lib/app-menu/get-local-pages.js +1 -1
  16. package/lib/app-menu/get-online-menu-list.js +1 -1
  17. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  18. package/lib/app-menu/utils.js +1 -1
  19. package/lib/app-menu/valid-url.js +1 -1
  20. package/lib/app-menu-update-cdn/current-content.js +1 -1
  21. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  22. package/lib/app-menu-update-cdn/main.js +1 -1
  23. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  24. package/lib/auth/auth-server-ui.js +1 -1
  25. package/lib/auth/auth-server.js +1 -1
  26. package/lib/auth/constant.js +1 -1
  27. package/lib/auth/get-cookie.js +1 -1
  28. package/lib/auth/is-session-valid.js +1 -1
  29. package/lib/auth/logout.js +1 -1
  30. package/lib/cli.js +1 -1
  31. package/lib/cmd/build-watch.js +1 -1
  32. package/lib/cmd/build.js +1 -1
  33. package/lib/cmd/logs.js +1 -1
  34. package/lib/cmd/preview.js +1 -1
  35. package/lib/cmd/start.js +1 -1
  36. package/lib/config/config-help.js +1 -1
  37. package/lib/config/main.js +1 -1
  38. package/lib/constant/domain.js +1 -1
  39. package/lib/constant/env.js +1 -1
  40. package/lib/create-app/enhanced-guided-create.js +1 -1
  41. package/lib/create-app/format-elapsed.js +1 -1
  42. package/lib/create-app/main.js +1 -1
  43. package/lib/create-app/task-finished.js +1 -1
  44. package/lib/create-app/task-loading.js +1 -1
  45. package/lib/create-app/task-running.js +1 -1
  46. package/lib/create-app/task-time.js +1 -1
  47. package/lib/create-app/use-copy-project-template.js +1 -1
  48. package/lib/create-app/use-format-code.js +1 -1
  49. package/lib/create-app/use-install-dependencies.js +1 -1
  50. package/lib/help.js +1 -1
  51. package/lib/init/main.js +1 -1
  52. package/lib/mcp/McpInstallUI.js +1 -1
  53. package/lib/mcp/claude.js +1 -1
  54. package/lib/mcp/cursor.js +1 -1
  55. package/lib/mcp/main.js +1 -1
  56. package/lib/skills/SkillInstallUI.js +1 -1
  57. package/lib/skills/main.js +1 -1
  58. package/lib/utils/check-sdk-version.js +1 -1
  59. package/lib/utils/config.js +1 -1
  60. package/lib/utils/copy-directory.js +1 -1
  61. package/lib/utils/http-client.js +1 -1
  62. package/lib/utils/logger.js +1 -1
  63. package/lib/utils/router-updater.js +1 -1
  64. package/lib/utils/sleep.js +1 -1
  65. package/lib/utils/template-replacer.js +1 -1
  66. package/package.json +1 -1
@@ -1 +1 @@
1
- const a27_0x51ff2e=a27_0x293a;(function(_0x36d9d1,_0x270f52){const _0x3b8fbf=a27_0x293a,_0x59eab5=_0x36d9d1();while(!![]){try{const _0x3733f5=parseInt(_0x3b8fbf(0x16d))/0x1*(-parseInt(_0x3b8fbf(0x171))/0x2)+parseInt(_0x3b8fbf(0x16b))/0x3+-parseInt(_0x3b8fbf(0x16f))/0x4+parseInt(_0x3b8fbf(0x16c))/0x5*(-parseInt(_0x3b8fbf(0x170))/0x6)+parseInt(_0x3b8fbf(0x173))/0x7*(-parseInt(_0x3b8fbf(0x175))/0x8)+-parseInt(_0x3b8fbf(0x16e))/0x9*(parseInt(_0x3b8fbf(0x176))/0xa)+parseInt(_0x3b8fbf(0x16a))/0xb;if(_0x3733f5===_0x270f52)break;else _0x59eab5['push'](_0x59eab5['shift']());}catch(_0x3f6b36){_0x59eab5['push'](_0x59eab5['shift']());}}}(a27_0x2438,0x8ca71));import{mkdirSync}from'node:fs';import{homedir}from'node:os';export const configDir=homedir()+a27_0x51ff2e(0x172);export const cookieFile=configDir+a27_0x51ff2e(0x174);function a27_0x293a(_0x1fcd04,_0x4553ee){_0x1fcd04=_0x1fcd04-0x16a;const _0x243860=a27_0x2438();let _0x293a8d=_0x243860[_0x1fcd04];return _0x293a8d;}mkdirSync(configDir,{'recursive':!![]});function a27_0x2438(){const _0x7862f5=['7VumZhX','/cookie','55592vySSsS','40Zhqiqk','16463964jdSZkT','3038868MDSgOx','15305dKbvaL','2AAqABA','151596hKITyh','4083084JnFszu','402Ptmovn','633384CJBKnC','/.lovrabet'];a27_0x2438=function(){return _0x7862f5;};return a27_0x2438();}
1
+ function a27_0x4480(_0x58ca82,_0xabe056){_0x58ca82=_0x58ca82-0x119;const _0x3d23ef=a27_0x3d23();let _0x44805e=_0x3d23ef[_0x58ca82];return _0x44805e;}const a27_0x282237=a27_0x4480;(function(_0x4be016,_0x22cdd1){const _0x3c613b=a27_0x4480,_0x10dc8b=_0x4be016();while(!![]){try{const _0x3a6c49=parseInt(_0x3c613b(0x11b))/0x1+-parseInt(_0x3c613b(0x11e))/0x2*(parseInt(_0x3c613b(0x11c))/0x3)+parseInt(_0x3c613b(0x119))/0x4+-parseInt(_0x3c613b(0x11a))/0x5*(-parseInt(_0x3c613b(0x121))/0x6)+-parseInt(_0x3c613b(0x11f))/0x7+parseInt(_0x3c613b(0x11d))/0x8+parseInt(_0x3c613b(0x120))/0x9;if(_0x3a6c49===_0x22cdd1)break;else _0x10dc8b['push'](_0x10dc8b['shift']());}catch(_0x64ade0){_0x10dc8b['push'](_0x10dc8b['shift']());}}}(a27_0x3d23,0x94cf5));import{mkdirSync}from'node:fs';function a27_0x3d23(){const _0x56951e=['6BIaODd','/cookie','1087948awtxGH','2741590cccizm','68038pOvJAd','21PtFGif','2278376ceciUO','19620ePbRrH','8021132dqKiON','5858379nuMEbD'];a27_0x3d23=function(){return _0x56951e;};return a27_0x3d23();}import{homedir}from'node:os';export const configDir=homedir()+'/.lovrabet';export const cookieFile=configDir+a27_0x282237(0x122);mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x40cf48,_0x1f5a09){var _0x461a63=a28_0x3cd7,_0x1e3c22=_0x40cf48();while(!![]){try{var _0x178bc9=-parseInt(_0x461a63(0x89))/0x1*(parseInt(_0x461a63(0x8d))/0x2)+-parseInt(_0x461a63(0x8f))/0x3*(-parseInt(_0x461a63(0x8b))/0x4)+parseInt(_0x461a63(0x8c))/0x5+-parseInt(_0x461a63(0x8e))/0x6+parseInt(_0x461a63(0x90))/0x7+-parseInt(_0x461a63(0x8a))/0x8+-parseInt(_0x461a63(0x88))/0x9;if(_0x178bc9===_0x1f5a09)break;else _0x1e3c22['push'](_0x1e3c22['shift']());}catch(_0x5d4617){_0x1e3c22['push'](_0x1e3c22['shift']());}}}(a28_0x411f,0xcabe1));function a28_0x3cd7(_0x4ef246,_0x23ee65){_0x4ef246=_0x4ef246-0x87;var _0x411f24=a28_0x411f();var _0x3cd751=_0x411f24[_0x4ef246];return _0x3cd751;}import{readFileSync}from'node:fs';import{cookieFile}from'./constant.js';export function getCookie(){var _0x136e9b=a28_0x3cd7;try{return readFileSync(cookieFile,_0x136e9b(0x87));}catch{}return'';}function a28_0x411f(){var _0x4014cd=['7634390iUesei','1227844OJCOsE','384240SVkSUa','61059klLRDQ','9628927XeWrjf','utf-8','15017067qFPmEq','2AmrFpS','1684968dbSdrQ','216cKtQLq'];a28_0x411f=function(){return _0x4014cd;};return a28_0x411f();}
1
+ (function(_0x1a08bb,_0x468169){var _0x54d942=a28_0x1189,_0x2a367d=_0x1a08bb();while(!![]){try{var _0x778c1b=-parseInt(_0x54d942(0x185))/0x1+-parseInt(_0x54d942(0x183))/0x2+parseInt(_0x54d942(0x187))/0x3+-parseInt(_0x54d942(0x181))/0x4*(-parseInt(_0x54d942(0x180))/0x5)+-parseInt(_0x54d942(0x182))/0x6+-parseInt(_0x54d942(0x17f))/0x7*(parseInt(_0x54d942(0x184))/0x8)+-parseInt(_0x54d942(0x188))/0x9*(-parseInt(_0x54d942(0x17e))/0xa);if(_0x778c1b===_0x468169)break;else _0x2a367d['push'](_0x2a367d['shift']());}catch(_0x3d9ccd){_0x2a367d['push'](_0x2a367d['shift']());}}}(a28_0xf26e,0x9ca12));import{readFileSync}from'node:fs';import{cookieFile}from'./constant.js';function a28_0x1189(_0x676fa1,_0x645f09){_0x676fa1=_0x676fa1-0x17e;var _0xf26e60=a28_0xf26e();var _0x11898b=_0xf26e60[_0x676fa1];return _0x11898b;}function a28_0xf26e(){var _0x904c1e=['4743312akFuzx','203614cjZCjx','1832geAPOr','904631riiZEJ','utf-8','906594OAMZcI','18351558lpjCUo','10vGQzAV','17619IyeaEf','3368385yYxWHD','4kPLIYT'];a28_0xf26e=function(){return _0x904c1e;};return a28_0xf26e();}export function getCookie(){var _0x12b6c2=a28_0x1189;try{return readFileSync(cookieFile,_0x12b6c2(0x186));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0xcbcd9d,_0xe727c6){const _0x58371a=a29_0x1428,_0x576ab4=_0xcbcd9d();while(!![]){try{const _0x19ae0e=parseInt(_0x58371a(0x8d))/0x1*(parseInt(_0x58371a(0x92))/0x2)+-parseInt(_0x58371a(0x89))/0x3+-parseInt(_0x58371a(0x93))/0x4+-parseInt(_0x58371a(0x88))/0x5*(parseInt(_0x58371a(0x90))/0x6)+-parseInt(_0x58371a(0x94))/0x7+-parseInt(_0x58371a(0x8f))/0x8+-parseInt(_0x58371a(0x91))/0x9*(-parseInt(_0x58371a(0x8e))/0xa);if(_0x19ae0e===_0xe727c6)break;else _0x576ab4['push'](_0x576ab4['shift']());}catch(_0x25035c){_0x576ab4['push'](_0x576ab4['shift']());}}}(a29_0x1842,0x68b5e));import{existsSync,readFileSync}from'node:fs';function a29_0x1842(){const _0x1c6059=['user','/api/auth/get-session','utf-8','143QQExDr','10xbHWnV','2450896sNcpsV','579696QfYxBd','20091663pQCdsp','4406SrmJOW','1583148JWGSEH','2651859lqtnGN','15RNBRBl','2243124waOsRJ'];a29_0x1842=function(){return _0x1c6059;};return a29_0x1842();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';function a29_0x1428(_0x57d035,_0x2ed2d4){_0x57d035=_0x57d035-0x88;const _0x184206=a29_0x1842();let _0x142819=_0x184206[_0x57d035];return _0x142819;}export async function getIsSessionValid(){const _0x98fb1d=a29_0x1428;try{if(!existsSync(cookieFile))return![];const _0x26e95b=readFileSync(cookieFile,_0x98fb1d(0x8c)),_0x557506=await fetch(getUserDomain()+_0x98fb1d(0x8b),{'headers':{'cookie':_0x26e95b}})['then'](_0x376adc=>_0x376adc['json']());return _0x557506&&_0x557506['session']&&_0x557506[_0x98fb1d(0x8a)];}catch{}return![];}
1
+ (function(_0x31c164,_0x2702c2){const _0x2b8c54=a29_0x37dd,_0x4dab27=_0x31c164();while(!![]){try{const _0x4b7a3d=parseInt(_0x2b8c54(0x126))/0x1*(-parseInt(_0x2b8c54(0x132))/0x2)+-parseInt(_0x2b8c54(0x130))/0x3*(parseInt(_0x2b8c54(0x128))/0x4)+parseInt(_0x2b8c54(0x12c))/0x5*(parseInt(_0x2b8c54(0x12d))/0x6)+-parseInt(_0x2b8c54(0x127))/0x7+-parseInt(_0x2b8c54(0x12b))/0x8*(-parseInt(_0x2b8c54(0x12f))/0x9)+-parseInt(_0x2b8c54(0x12a))/0xa*(-parseInt(_0x2b8c54(0x133))/0xb)+parseInt(_0x2b8c54(0x124))/0xc;if(_0x4b7a3d===_0x2702c2)break;else _0x4dab27['push'](_0x4dab27['shift']());}catch(_0x3a8555){_0x4dab27['push'](_0x4dab27['shift']());}}}(a29_0x3c0f,0x881e4));import{existsSync,readFileSync}from'node:fs';function a29_0x37dd(_0x333f96,_0x4bfaea){_0x333f96=_0x333f96-0x124;const _0x3c0f2d=a29_0x3c0f();let _0x37dd80=_0x3c0f2d[_0x333f96];return _0x37dd80;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';function a29_0x3c0f(){const _0x34156a=['then','5956641HlECOu','376581JuorDS','utf-8','65710pEiDJF','649VdlnOy','/api/auth/get-session','17355624DXUQAA','session','29ZlWBAx','5840933VmFYyn','8EtnRuA','user','34490queSft','8AUHsAA','5AsRHSm','1704996EOUPGa'];a29_0x3c0f=function(){return _0x34156a;};return a29_0x3c0f();}export async function getIsSessionValid(){const _0x417bb8=a29_0x37dd;try{if(!existsSync(cookieFile))return![];const _0x28cea=readFileSync(cookieFile,_0x417bb8(0x131)),_0x28dde9=await fetch(getUserDomain()+_0x417bb8(0x134),{'headers':{'cookie':_0x28cea}})[_0x417bb8(0x12e)](_0x3e1adb=>_0x3e1adb['json']());return _0x28dde9&&_0x28dde9[_0x417bb8(0x125)]&&_0x28dde9[_0x417bb8(0x129)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x132ed5,_0x5f0192){var _0x57b7f4=a30_0x4a4c,_0x4b7238=_0x132ed5();while(!![]){try{var _0x456bdd=-parseInt(_0x57b7f4(0x6f))/0x1+-parseInt(_0x57b7f4(0x73))/0x2*(parseInt(_0x57b7f4(0x72))/0x3)+-parseInt(_0x57b7f4(0x6e))/0x4+parseInt(_0x57b7f4(0x77))/0x5*(-parseInt(_0x57b7f4(0x78))/0x6)+-parseInt(_0x57b7f4(0x74))/0x7+parseInt(_0x57b7f4(0x79))/0x8*(parseInt(_0x57b7f4(0x70))/0x9)+-parseInt(_0x57b7f4(0x6d))/0xa*(-parseInt(_0x57b7f4(0x75))/0xb);if(_0x456bdd===_0x5f0192)break;else _0x4b7238['push'](_0x4b7238['shift']());}catch(_0x160fee){_0x4b7238['push'](_0x4b7238['shift']());}}}(a30_0x3513,0xbb253));function a30_0x4a4c(_0x2fc29f,_0x4ec8cf){_0x2fc29f=_0x2fc29f-0x6d;var _0x3513fc=a30_0x3513();var _0x4a4c9b=_0x3513fc[_0x2fc29f];return _0x4a4c9b;}function a30_0x3513(){var _0xfb0126=['4026TaEXlm','2186792BOaXKY','31410bpTkEk','4977324IdXowo','64068bKzUAd','45MXUqep','log','552yKXQGl','15976FPMhUZ','10511865arZRan','14421XDwqGI','✓\x20已退出登录','3265NVCRHT'];a30_0x3513=function(){return _0xfb0126;};return a30_0x3513();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'./constant.js';export function logout(){var _0x4d0c5b=a30_0x4a4c;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x4d0c5b(0x71)](_0x4d0c5b(0x76))):console[_0x4d0c5b(0x71)]('!\x20当前未登录');}
1
+ (function(_0x779a86,_0x5a8f55){var _0x43e546=a30_0x531d,_0x436421=_0x779a86();while(!![]){try{var _0x2b9aa3=-parseInt(_0x43e546(0x181))/0x1*(parseInt(_0x43e546(0x189))/0x2)+-parseInt(_0x43e546(0x18d))/0x3*(-parseInt(_0x43e546(0x187))/0x4)+-parseInt(_0x43e546(0x186))/0x5+parseInt(_0x43e546(0x18a))/0x6+-parseInt(_0x43e546(0x185))/0x7+-parseInt(_0x43e546(0x183))/0x8+parseInt(_0x43e546(0x188))/0x9*(parseInt(_0x43e546(0x18b))/0xa);if(_0x2b9aa3===_0x5a8f55)break;else _0x436421['push'](_0x436421['shift']());}catch(_0x2873fe){_0x436421['push'](_0x436421['shift']());}}}(a30_0x5741,0xd8e8f));import{unlinkSync,existsSync}from'node:fs';function a30_0x5741(){var _0x209401=['5350208vfLMMm','log','7269640xPLfEy','4815240glWKEV','6146416mrHiKb','31074066RURJPV','486wTuPTN','337218aTqVpp','10GINSTO','!\x20当前未登录','3dEgDeP','6118bVBkgv','✓\x20已退出登录'];a30_0x5741=function(){return _0x209401;};return a30_0x5741();}import{cookieFile}from'./constant.js';function a30_0x531d(_0x3a93f3,_0x5e7130){_0x3a93f3=_0x3a93f3-0x181;var _0x574152=a30_0x5741();var _0x531db3=_0x574152[_0x3a93f3];return _0x531db3;}export function logout(){var _0x2cfb9b=a30_0x531d;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x2cfb9b(0x184)](_0x2cfb9b(0x182))):console[_0x2cfb9b(0x184)](_0x2cfb9b(0x18c));}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a31_0x534ad3=a31_0xef70;(function(_0x45c7bd,_0x2482f0){const _0x5c5a31=a31_0xef70,_0x41975b=_0x45c7bd();while(!![]){try{const _0x3c0947=-parseInt(_0x5c5a31(0x123))/0x1*(parseInt(_0x5c5a31(0xed))/0x2)+-parseInt(_0x5c5a31(0xfb))/0x3+-parseInt(_0x5c5a31(0x10b))/0x4+-parseInt(_0x5c5a31(0x106))/0x5+parseInt(_0x5c5a31(0xf8))/0x6*(parseInt(_0x5c5a31(0xef))/0x7)+parseInt(_0x5c5a31(0x102))/0x8+parseInt(_0x5c5a31(0xec))/0x9*(parseInt(_0x5c5a31(0xe8))/0xa);if(_0x3c0947===_0x2482f0)break;else _0x41975b['push'](_0x41975b['shift']());}catch(_0x2b673f){_0x41975b['push'](_0x41975b['shift']());}}}(a31_0x15fe,0x8648b));import{jsx as a31_0x3ce456}from'react/jsx-runtime';import a31_0x4de045 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';function a31_0x15fe(){const _0x5b025e=['logout','api','trim','setLogPath','mcpOther','cursor','opencode','boolean','18DEiCyo','env','update','2676420DWYuiO','string','mcpCursor','antigravity','cwd','trae','qoder','4502224XRonFw','push','windsurf','create','5207110udQRjw','skill','page','\x20(监听模式)','add-page','2466600cNoPNJ','lovrabet\x20','input','auth','--help','mcp','error','mcp-install','执行配置\x20MCP\x20命令','info','执行启动命令','slice','init','codebuddy','执行安装技能包命令','clear','all','mcpClaude','start','menu-sync','claude','执行初始化配置命令','执行构建命令','preview','3944GbfAkZ','执行预览命令','flags','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a','exit','install','other','1888010BRbJiJ','join','codex','agent','99fVuYfl','270wZOICX','build','2317210ClIwHC'];a31_0x15fe=function(){return _0x5b025e;};return a31_0x15fe();}import{apiCli}from'./api/main.js';function a31_0xef70(_0x5d739a,_0x526bbe){_0x5d739a=_0x5d739a-0xe7;const _0x15fed4=a31_0x15fe();let _0xef707b=_0x15fed4[_0x5d739a];return _0xef707b;}import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';const cli=a31_0x4de045(a31_0x534ad3(0x126),{'importMeta':import.meta,'flags':{'name':{'type':a31_0x534ad3(0xfc)},'clear':{'type':a31_0x534ad3(0xf7)},'env':{'type':'string'},'watch':{'type':a31_0x534ad3(0xf7)},'help':{'type':a31_0x534ad3(0xf7)},'appcode':{'type':a31_0x534ad3(0xfc)},'output':{'type':a31_0x534ad3(0xfc)},'params':{'type':a31_0x534ad3(0xfc)},'datasetcode':{'type':a31_0x534ad3(0xfc)},'mcpCursor':{'type':a31_0x534ad3(0xf7)},'mcpClaude':{'type':a31_0x534ad3(0xf7)},'mcpOther':{'type':'boolean'},'cursor':{'type':a31_0x534ad3(0xf7)},'windsurf':{'type':a31_0x534ad3(0xf7)},'claude':{'type':a31_0x534ad3(0xf7)},'codex':{'type':a31_0x534ad3(0xf7)},'opencode':{'type':'boolean'},'qoder':{'type':a31_0x534ad3(0xf7)},'codebuddy':{'type':'boolean'},'trae':{'type':a31_0x534ad3(0xf7)},'agent':{'type':'boolean'},'antigravity':{'type':a31_0x534ad3(0xf7)},'all':{'type':a31_0x534ad3(0xf7)}},'autoVersion':!![]});await run();async function run(){const _0x411265=a31_0x534ad3,_0x579d30=cli[_0x411265(0x10d)][0x0],_0x591ef3=cli[_0x411265(0x10d)][0x1],_0x214db1=cli[_0x411265(0x10d)][0x2],_0x569eea=(_0x411265(0x10c)+process['argv'][_0x411265(0x116)](0x2)[_0x411265(0xe9)]('\x20'))[_0x411265(0xf2)]();logger['setRawCommand'](_0x569eea);switch(_0x579d30){case _0x411265(0x117):{const _0x117519=cli[_0x411265(0x125)]['appcode'],_0x275541=cli[_0x411265(0x125)][_0x411265(0xf9)];logger[_0x411265(0xf3)](process['cwd']()),logger[_0x411265(0x114)](_0x411265(0x117),_0x411265(0x120)),render(a31_0x3ce456(Init,{'appcode':_0x117519,'env':_0x275541}));break;}case _0x411265(0x105):{const _0x40e2ee=cli[_0x411265(0x10d)][0x1]?.['trim'](),_0x4563be=cli[_0x411265(0x125)][_0x411265(0xf9)];render(a31_0x3ce456(CreateApp,{'projectCode':_0x40e2ee,'env':_0x4563be}));break;}case'add':{cli[_0x411265(0x10d)][0x1]===_0x411265(0x108)&&(logger[_0x411265(0xf3)](process[_0x411265(0xff)]()),logger[_0x411265(0x114)](_0x411265(0x10a),'执行添加页面命令'),render(a31_0x3ce456(AddPage,{})));break;}case _0x411265(0x11d):{try{logger[_0x411265(0xf3)](process[_0x411265(0xff)]()),logger[_0x411265(0x114)](_0x411265(0x11d),_0x411265(0x115)),await runStart();}catch(_0x4870b5){console[_0x411265(0x111)](_0x4870b5),process[_0x411265(0x127)](0x1);}break;}case _0x411265(0xee):{try{logger['setLogPath'](process[_0x411265(0xff)]()),logger[_0x411265(0x114)](_0x411265(0xee),_0x411265(0x121)),await runBuild();}catch(_0x3b14ad){console[_0x411265(0x111)](_0x3b14ad),process['exit'](0x1);}break;}case'preview':{const _0x1d971c=cli['flags']['watch'];logger[_0x411265(0xf3)](process[_0x411265(0xff)]()),logger['info'](_0x411265(0x122),_0x411265(0x124)+(_0x1d971c?_0x411265(0x109):''));if(_0x1d971c)try{await Promise[_0x411265(0x11b)]([runBuildWatch(),runPreview()]);}catch(_0x28e55d){console[_0x411265(0x111)](_0x28e55d),process[_0x411265(0x127)](0x1);}else try{await runPreview();}catch(_0x12147e){console['error'](_0x12147e),process[_0x411265(0x127)](0x1);}break;}case'config':{render(a31_0x3ce456(Config,{'cli':cli}));break;}case _0x411265(0xf1):{await apiCli(cli);break;}case _0x411265(0x10e):{render(a31_0x3ce456(AuthServer,{}));break;}case'menu':{if(_0x591ef3===_0x411265(0xfa)){logger[_0x411265(0xf3)](process[_0x411265(0xff)]()),logger[_0x411265(0x114)]('menu-update-cdn','执行更新菜单\x20CDN\x20资源命令'),render(a31_0x3ce456(AppMenuUpdateCdn,{}));break;}else logger['setLogPath'](process[_0x411265(0xff)]()),logger['info'](_0x411265(0x11e),'同步菜单命令'),render(a31_0x3ce456(AppMenuSyncUI,{}));break;}case _0x411265(0xf0):{logout();break;}case _0x411265(0x110):{const _0x18bf4e=cli[_0x411265(0x10d)][0x1];logger[_0x411265(0xf3)](process['cwd']());if(_0x18bf4e===_0x411265(0x128)){const _0x49032d=[];if(cli[_0x411265(0x125)][_0x411265(0xfd)])_0x49032d[_0x411265(0x103)](_0x411265(0xf5));if(cli[_0x411265(0x125)][_0x411265(0x11c)])_0x49032d[_0x411265(0x103)](_0x411265(0x11f));if(cli[_0x411265(0x125)][_0x411265(0xf4)])_0x49032d[_0x411265(0x103)](_0x411265(0xe7));logger[_0x411265(0x114)](_0x411265(0x112),_0x411265(0x113),{'preselected':_0x49032d}),render(a31_0x3ce456(McpInstallUI,{'preselectedIDEs':_0x49032d}));}else _0x18bf4e===_0x411265(0x10f)||cli['flags']['help']?await mcpCommand(_0x18bf4e,[],{'help':!![]}):await mcpCommand(_0x18bf4e,[],cli['flags']);break;}case _0x411265(0x107):{const _0x5dee71=cli['input'][0x1];logger['setLogPath'](process[_0x411265(0xff)]());if(_0x5dee71==='install'){const _0x1ce7a8=[];if(cli[_0x411265(0x125)][_0x411265(0x11b)])_0x1ce7a8[_0x411265(0x103)]('cursor',_0x411265(0x104),_0x411265(0x11f),_0x411265(0xea),_0x411265(0xf6),_0x411265(0x101),_0x411265(0x118),_0x411265(0x100),'agent',_0x411265(0xfe));else{if(cli['flags'][_0x411265(0xf5)])_0x1ce7a8[_0x411265(0x103)](_0x411265(0xf5));if(cli[_0x411265(0x125)][_0x411265(0x104)])_0x1ce7a8[_0x411265(0x103)]('windsurf');if(cli[_0x411265(0x125)][_0x411265(0x11f)])_0x1ce7a8['push']('claude');if(cli[_0x411265(0x125)][_0x411265(0xea)])_0x1ce7a8[_0x411265(0x103)](_0x411265(0xea));if(cli[_0x411265(0x125)]['opencode'])_0x1ce7a8[_0x411265(0x103)]('opencode');if(cli[_0x411265(0x125)][_0x411265(0x101)])_0x1ce7a8[_0x411265(0x103)]('qoder');if(cli[_0x411265(0x125)]['codebuddy'])_0x1ce7a8[_0x411265(0x103)]('codebuddy');if(cli[_0x411265(0x125)]['trae'])_0x1ce7a8['push'](_0x411265(0x100));if(cli[_0x411265(0x125)][_0x411265(0xeb)])_0x1ce7a8['push'](_0x411265(0xeb));if(cli['flags'][_0x411265(0xfe)])_0x1ce7a8['push'](_0x411265(0xfe));}logger[_0x411265(0x114)]('skill-install',_0x411265(0x119),{'preselected':_0x1ce7a8}),render(a31_0x3ce456(SkillInstallUI,{'preselectedIDEs':_0x1ce7a8}));}else _0x5dee71===_0x411265(0x10f)||cli[_0x411265(0x125)]['help']?await skillsCommand(_0x5dee71,[],{'help':!![]}):await skillsCommand(_0x5dee71,[],cli[_0x411265(0x125)]);break;}case'logs':{cli[_0x411265(0x125)][_0x411265(0x11a)]?clearLogs():showLogs();break;}default:render(a31_0x3ce456(Help,{}));break;}}
2
+ const a31_0x321d71=a31_0x1234;(function(_0xbec0c0,_0x366268){const _0x6c2b1e=a31_0x1234,_0x53a693=_0xbec0c0();while(!![]){try{const _0x41df83=-parseInt(_0x6c2b1e(0xba))/0x1+-parseInt(_0x6c2b1e(0xb3))/0x2+-parseInt(_0x6c2b1e(0x95))/0x3*(-parseInt(_0x6c2b1e(0xa6))/0x4)+-parseInt(_0x6c2b1e(0x90))/0x5*(parseInt(_0x6c2b1e(0xbe))/0x6)+parseInt(_0x6c2b1e(0xb6))/0x7*(parseInt(_0x6c2b1e(0xc6))/0x8)+parseInt(_0x6c2b1e(0x9a))/0x9*(-parseInt(_0x6c2b1e(0x85))/0xa)+parseInt(_0x6c2b1e(0xa3))/0xb*(-parseInt(_0x6c2b1e(0xb7))/0xc);if(_0x41df83===_0x366268)break;else _0x53a693['push'](_0x53a693['shift']());}catch(_0x212cc8){_0x53a693['push'](_0x53a693['shift']());}}}(a31_0x4456,0x8e393));import{jsx as a31_0x17f143}from'react/jsx-runtime';import a31_0x3da9e3 from'meow';function a31_0x1234(_0x352399,_0x266ddb){_0x352399=_0x352399-0x85;const _0x445620=a31_0x4456();let _0x12341a=_0x445620[_0x352399];return _0x12341a;}import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';function a31_0x4456(){const _0x41cc13=['mcp','api','input','info','执行启动命令','12188nWKDft','opencode','logout','79432jnNnps','claude','install','all','update','env','agent','push','other','执行预览命令','string','执行添加页面命令','init','127326NazbJF','setLogPath','menu','175XLALzS','516xhcfvw','auth','trae','77011aZBPuv','执行构建命令','trim','antigravity','696078HtQmHU','windsurf','cwd','--help','logs','cursor','codex','add','248448GOKiAX','setRawCommand','\x20(监听模式)','skill','qoder','698410WEuSNk','lovrabet\x20','skill-install','argv','boolean','exit','build','menu-update-cdn','mcp-install','help','join','25lGNWHz','start','error','add-page','执行更新菜单\x20CDN\x20资源命令','129DLEYHc','同步菜单命令','preview','执行配置\x20MCP\x20命令','codebuddy','36DDQKxi','mcpOther','menu-sync','flags'];a31_0x4456=function(){return _0x41cc13;};return a31_0x4456();}import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';const cli=a31_0x3da9e3('\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a',{'importMeta':import.meta,'flags':{'name':{'type':a31_0x321d71(0xb0)},'clear':{'type':'boolean'},'env':{'type':a31_0x321d71(0xb0)},'watch':{'type':a31_0x321d71(0x89)},'help':{'type':'boolean'},'appcode':{'type':a31_0x321d71(0xb0)},'output':{'type':a31_0x321d71(0xb0)},'params':{'type':a31_0x321d71(0xb0)},'datasetcode':{'type':a31_0x321d71(0xb0)},'mcpCursor':{'type':a31_0x321d71(0x89)},'mcpClaude':{'type':a31_0x321d71(0x89)},'mcpOther':{'type':a31_0x321d71(0x89)},'cursor':{'type':a31_0x321d71(0x89)},'windsurf':{'type':'boolean'},'claude':{'type':'boolean'},'codex':{'type':a31_0x321d71(0x89)},'opencode':{'type':a31_0x321d71(0x89)},'qoder':{'type':'boolean'},'codebuddy':{'type':a31_0x321d71(0x89)},'trae':{'type':a31_0x321d71(0x89)},'agent':{'type':a31_0x321d71(0x89)},'antigravity':{'type':'boolean'},'all':{'type':a31_0x321d71(0x89)}},'autoVersion':!![]});await run();async function run(){const _0x329f=a31_0x321d71,_0x57bf87=cli[_0x329f(0xa0)][0x0],_0x32e102=cli[_0x329f(0xa0)][0x1],_0x59f4ea=cli[_0x329f(0xa0)][0x2],_0x40b89c=(_0x329f(0x86)+process[_0x329f(0x88)]['slice'](0x2)[_0x329f(0x8f)]('\x20'))['trim']();logger[_0x329f(0xc7)](_0x40b89c);switch(_0x57bf87){case'init':{const _0x20e0d0=cli[_0x329f(0x9d)]['appcode'],_0x3b77d7=cli[_0x329f(0x9d)][_0x329f(0xab)];logger[_0x329f(0xb4)](process[_0x329f(0xc0)]()),logger[_0x329f(0xa1)](_0x329f(0xb2),'执行初始化配置命令'),render(a31_0x17f143(Init,{'appcode':_0x20e0d0,'env':_0x3b77d7}));break;}case'create':{const _0x26c9bd=cli['input'][0x1]?.[_0x329f(0xbc)](),_0x2c8896=cli[_0x329f(0x9d)][_0x329f(0xab)];render(a31_0x17f143(CreateApp,{'projectCode':_0x26c9bd,'env':_0x2c8896}));break;}case _0x329f(0xc5):{cli[_0x329f(0xa0)][0x1]==='page'&&(logger[_0x329f(0xb4)](process[_0x329f(0xc0)]()),logger[_0x329f(0xa1)](_0x329f(0x93),_0x329f(0xb1)),render(a31_0x17f143(AddPage,{})));break;}case _0x329f(0x91):{try{logger[_0x329f(0xb4)](process['cwd']()),logger[_0x329f(0xa1)](_0x329f(0x91),_0x329f(0xa2)),await runStart();}catch(_0xd6370b){console[_0x329f(0x92)](_0xd6370b),process['exit'](0x1);}break;}case _0x329f(0x8b):{try{logger['setLogPath'](process[_0x329f(0xc0)]()),logger[_0x329f(0xa1)]('build',_0x329f(0xbb)),await runBuild();}catch(_0x47003a){console[_0x329f(0x92)](_0x47003a),process['exit'](0x1);}break;}case'preview':{const _0x34a251=cli[_0x329f(0x9d)]['watch'];logger[_0x329f(0xb4)](process['cwd']()),logger[_0x329f(0xa1)](_0x329f(0x97),_0x329f(0xaf)+(_0x34a251?_0x329f(0xc8):''));if(_0x34a251)try{await Promise[_0x329f(0xa9)]([runBuildWatch(),runPreview()]);}catch(_0xe893a5){console[_0x329f(0x92)](_0xe893a5),process[_0x329f(0x8a)](0x1);}else try{await runPreview();}catch(_0x20ad5b){console[_0x329f(0x92)](_0x20ad5b),process[_0x329f(0x8a)](0x1);}break;}case'config':{render(a31_0x17f143(Config,{'cli':cli}));break;}case _0x329f(0x9f):{await apiCli(cli);break;}case _0x329f(0xb8):{render(a31_0x17f143(AuthServer,{}));break;}case _0x329f(0xb5):{if(_0x32e102===_0x329f(0xaa)){logger[_0x329f(0xb4)](process[_0x329f(0xc0)]()),logger[_0x329f(0xa1)](_0x329f(0x8c),_0x329f(0x94)),render(a31_0x17f143(AppMenuUpdateCdn,{}));break;}else logger[_0x329f(0xb4)](process[_0x329f(0xc0)]()),logger[_0x329f(0xa1)](_0x329f(0x9c),_0x329f(0x96)),render(a31_0x17f143(AppMenuSyncUI,{}));break;}case _0x329f(0xa5):{logout();break;}case _0x329f(0x9e):{const _0x26134b=cli[_0x329f(0xa0)][0x1];logger[_0x329f(0xb4)](process[_0x329f(0xc0)]());if(_0x26134b===_0x329f(0xa8)){const _0x44d7bc=[];if(cli[_0x329f(0x9d)]['mcpCursor'])_0x44d7bc[_0x329f(0xad)]('cursor');if(cli[_0x329f(0x9d)]['mcpClaude'])_0x44d7bc[_0x329f(0xad)](_0x329f(0xa7));if(cli[_0x329f(0x9d)][_0x329f(0x9b)])_0x44d7bc[_0x329f(0xad)](_0x329f(0xae));logger['info'](_0x329f(0x8d),_0x329f(0x98),{'preselected':_0x44d7bc}),render(a31_0x17f143(McpInstallUI,{'preselectedIDEs':_0x44d7bc}));}else _0x26134b===_0x329f(0xc1)||cli[_0x329f(0x9d)][_0x329f(0x8e)]?await mcpCommand(_0x26134b,[],{'help':!![]}):await mcpCommand(_0x26134b,[],cli['flags']);break;}case _0x329f(0xc9):{const _0x15593e=cli['input'][0x1];logger[_0x329f(0xb4)](process['cwd']());if(_0x15593e===_0x329f(0xa8)){const _0x5ae421=[];if(cli[_0x329f(0x9d)][_0x329f(0xa9)])_0x5ae421['push'](_0x329f(0xc3),_0x329f(0xbf),_0x329f(0xa7),_0x329f(0xc4),_0x329f(0xa4),_0x329f(0xca),_0x329f(0x99),_0x329f(0xb9),_0x329f(0xac),_0x329f(0xbd));else{if(cli[_0x329f(0x9d)][_0x329f(0xc3)])_0x5ae421['push'](_0x329f(0xc3));if(cli['flags'][_0x329f(0xbf)])_0x5ae421[_0x329f(0xad)](_0x329f(0xbf));if(cli[_0x329f(0x9d)][_0x329f(0xa7)])_0x5ae421[_0x329f(0xad)]('claude');if(cli[_0x329f(0x9d)][_0x329f(0xc4)])_0x5ae421['push']('codex');if(cli['flags'][_0x329f(0xa4)])_0x5ae421[_0x329f(0xad)]('opencode');if(cli[_0x329f(0x9d)][_0x329f(0xca)])_0x5ae421['push']('qoder');if(cli[_0x329f(0x9d)][_0x329f(0x99)])_0x5ae421[_0x329f(0xad)](_0x329f(0x99));if(cli[_0x329f(0x9d)][_0x329f(0xb9)])_0x5ae421['push'](_0x329f(0xb9));if(cli['flags'][_0x329f(0xac)])_0x5ae421['push'](_0x329f(0xac));if(cli['flags'][_0x329f(0xbd)])_0x5ae421[_0x329f(0xad)]('antigravity');}logger[_0x329f(0xa1)](_0x329f(0x87),'执行安装技能包命令',{'preselected':_0x5ae421}),render(a31_0x17f143(SkillInstallUI,{'preselectedIDEs':_0x5ae421}));}else _0x15593e===_0x329f(0xc1)||cli[_0x329f(0x9d)][_0x329f(0x8e)]?await skillsCommand(_0x15593e,[],{'help':!![]}):await skillsCommand(_0x15593e,[],cli[_0x329f(0x9d)]);break;}case _0x329f(0xc2):{cli[_0x329f(0x9d)]['clear']?clearLogs():showLogs();break;}default:render(a31_0x17f143(Help,{}));break;}}
@@ -1 +1 @@
1
- (function(_0x2681f5,_0x14b7ac){const _0x322ca9=a32_0x4045,_0x4fb813=_0x2681f5();while(!![]){try{const _0xe1dc7=parseInt(_0x322ca9(0xc4))/0x1*(-parseInt(_0x322ca9(0xc2))/0x2)+-parseInt(_0x322ca9(0xbd))/0x3*(parseInt(_0x322ca9(0xbf))/0x4)+parseInt(_0x322ca9(0xbc))/0x5+-parseInt(_0x322ca9(0xc6))/0x6+parseInt(_0x322ca9(0xcc))/0x7+parseInt(_0x322ca9(0xc3))/0x8+parseInt(_0x322ca9(0xcd))/0x9*(parseInt(_0x322ca9(0xca))/0xa);if(_0xe1dc7===_0x14b7ac)break;else _0x4fb813['push'](_0x4fb813['shift']());}catch(_0x283939){_0x4fb813['push'](_0x4fb813['shift']());}}}(a32_0x144d,0xcaf21));function a32_0x4045(_0x4cf10e,_0x3c48dc){_0x4cf10e=_0x4cf10e-0xbb;const _0x144d09=a32_0x144d();let _0x4045be=_0x144d09[_0x4cf10e];return _0x4045be;}import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x4f51e7,_0x43b46b)=>{const _0x5bb3ba=a32_0x4045,_0x24d09a=spawn(_0x5bb3ba(0xbe),[_0x5bb3ba(0xc5),'--watch'],{'stdio':_0x5bb3ba(0xcb),'shell':!![],'env':{...process[_0x5bb3ba(0xc1)],'PATH':''+join(process[_0x5bb3ba(0xbb)](),'node_modules',_0x5bb3ba(0xc0))+delimiter+process[_0x5bb3ba(0xc1)][_0x5bb3ba(0xc8)]}});_0x24d09a['on'](_0x5bb3ba(0xc9),_0x3ebd0f=>{const _0x102fc2=_0x5bb3ba;if(_0x3ebd0f===0x0||_0x3ebd0f===null)_0x4f51e7();else _0x43b46b(new Error(_0x102fc2(0xc7)+_0x3ebd0f));}),_0x24d09a['on']('error',_0x43b46b);});}function a32_0x144d(){const _0x10d27f=['env','218dtqCIg','11700888SWgWkb','10373fpJPYu','build','1737252HqSBKT','npm\x20run\x20build\x20exited\x20with\x20code\x20','PATH','close','10reeRAH','inherit','4396273bavioE','3574521hVsJOD','cwd','3177545yFkMLo','84mNRMRq','vite','124552LbpmsH','.bin'];a32_0x144d=function(){return _0x10d27f;};return a32_0x144d();}
1
+ (function(_0x13ff1b,_0x7302be){const _0x953168=a32_0x4b0c,_0xb059f3=_0x13ff1b();while(!![]){try{const _0x167bc8=-parseInt(_0x953168(0x8a))/0x1*(-parseInt(_0x953168(0x90))/0x2)+-parseInt(_0x953168(0x96))/0x3*(-parseInt(_0x953168(0x8d))/0x4)+parseInt(_0x953168(0x9d))/0x5+-parseInt(_0x953168(0x8f))/0x6*(-parseInt(_0x953168(0x94))/0x7)+parseInt(_0x953168(0x86))/0x8*(-parseInt(_0x953168(0x9a))/0x9)+parseInt(_0x953168(0x9c))/0xa*(-parseInt(_0x953168(0x8e))/0xb)+parseInt(_0x953168(0x9b))/0xc*(-parseInt(_0x953168(0x87))/0xd);if(_0x167bc8===_0x7302be)break;else _0xb059f3['push'](_0xb059f3['shift']());}catch(_0x438df7){_0xb059f3['push'](_0xb059f3['shift']());}}}(a32_0x490c,0x61611));function a32_0x490c(){const _0x1bc158=['87006brtTqD','10460NwXvRN','npm\x20run\x20build\x20exited\x20with\x20code\x20','inherit','node_modules','7WbAisS','.bin','18VeHZjG','build','--watch','close','9DUKpDT','11604oYyVgk','70JmmfEw','2913095LuPRyw','1677272QezAHF','18213wJdwSo','error','PATH','136GVpegS','env','vite','527776huAKov','214929tULyxT'];a32_0x490c=function(){return _0x1bc158;};return a32_0x490c();}import{spawn}from'node:child_process';function a32_0x4b0c(_0x37ba4e,_0x5aacc2){_0x37ba4e=_0x37ba4e-0x86;const _0x490cc2=a32_0x490c();let _0x4b0c41=_0x490cc2[_0x37ba4e];return _0x4b0c41;}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x4c197c,_0x5ed287)=>{const _0x6f961a=a32_0x4b0c,_0xb16851=spawn(_0x6f961a(0x8c),[_0x6f961a(0x97),_0x6f961a(0x98)],{'stdio':_0x6f961a(0x92),'shell':!![],'env':{...process[_0x6f961a(0x8b)],'PATH':''+join(process['cwd'](),_0x6f961a(0x93),_0x6f961a(0x95))+delimiter+process['env'][_0x6f961a(0x89)]}});_0xb16851['on'](_0x6f961a(0x99),_0x5032ae=>{const _0x5c4dfb=_0x6f961a;if(_0x5032ae===0x0||_0x5032ae===null)_0x4c197c();else _0x5ed287(new Error(_0x5c4dfb(0x91)+_0x5032ae));}),_0xb16851['on'](_0x6f961a(0x88),_0x5ed287);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- (function(_0x49cf40,_0x42e63a){const _0x3a4d7f=a33_0x177b,_0x33b846=_0x49cf40();while(!![]){try{const _0x35d4fc=-parseInt(_0x3a4d7f(0xd1))/0x1*(-parseInt(_0x3a4d7f(0xb8))/0x2)+-parseInt(_0x3a4d7f(0xb4))/0x3+parseInt(_0x3a4d7f(0xd0))/0x4+-parseInt(_0x3a4d7f(0xc9))/0x5*(-parseInt(_0x3a4d7f(0xb3))/0x6)+-parseInt(_0x3a4d7f(0xb9))/0x7*(-parseInt(_0x3a4d7f(0xbd))/0x8)+parseInt(_0x3a4d7f(0xbe))/0x9+-parseInt(_0x3a4d7f(0xcb))/0xa*(parseInt(_0x3a4d7f(0xb6))/0xb);if(_0x35d4fc===_0x42e63a)break;else _0x33b846['push'](_0x33b846['shift']());}catch(_0x141031){_0x33b846['push'](_0x33b846['shift']());}}}(a33_0x192e,0xdb374));function a33_0x192e(){const _0x5668ed=['stderr','inherit','npm\x20run\x20build\x20exited\x20with\x20code\x20','error','.bin','PATH','env','项目构建失败','33185nZidjY','cwd','10LkZZvD','npm\x20run\x20build','trim','message','项目构建成功','441244nwtVxP','14099sRVFTQ','438TCgMuO','502212KyZPQO','now','21505044iWJbyb','toString','122SIYnNm','4109XVSjGG','node_modules','info','build','13016zLDjnR','5493744BjdmXN','npm','success'];a33_0x192e=function(){return _0x5668ed;};return a33_0x192e();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a33_0x177b(_0x8fe252,_0x4aa902){_0x8fe252=_0x8fe252-0xb3;const _0x192ef9=a33_0x192e();let _0x177b90=_0x192ef9[_0x8fe252];return _0x177b90;}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x105ef7,_0x4b4a39)=>{const _0x3129c3=a33_0x177b,_0x2b0f93=Date[_0x3129c3(0xb5)]();logger[_0x3129c3(0xbb)](_0x3129c3(0xbc),'开始构建项目',{'command':_0x3129c3(0xcc)});let _0x17cd5c='';const _0x3dfaf9=spawn(_0x3129c3(0xbf),['run','build'],{'stdio':['inherit',_0x3129c3(0xc2),'pipe'],'shell':!![],'env':{...process[_0x3129c3(0xc7)],'PATH':''+join(process['cwd'](),_0x3129c3(0xba),_0x3129c3(0xc5))+delimiter+process[_0x3129c3(0xc7)][_0x3129c3(0xc6)]}});_0x3dfaf9[_0x3129c3(0xc1)]?.['on']('data',_0x5d5f3e=>{const _0x5cb31d=_0x3129c3;_0x17cd5c+=_0x5d5f3e[_0x5cb31d(0xb7)]();}),_0x3dfaf9['on']('close',_0x2e4123=>{const _0x2ef7fb=_0x3129c3,_0x2a9e17=Date[_0x2ef7fb(0xb5)]()-_0x2b0f93;if(_0x2e4123===0x0||_0x2e4123===null)logger[_0x2ef7fb(0xc0)]('build',_0x2ef7fb(0xcf),_0x2a9e17),_0x105ef7();else{const _0xb9e8f3={'exitCode':_0x2e4123,'duration':_0x2a9e17,'command':'npm\x20run\x20build','cwd':process[_0x2ef7fb(0xca)]()};_0x17cd5c[_0x2ef7fb(0xcd)]()&&(_0xb9e8f3[_0x2ef7fb(0xc1)]=_0x17cd5c['trim']()),logger['error']('build',_0x2ef7fb(0xc8),_0xb9e8f3),_0x4b4a39(new Error(_0x2ef7fb(0xc3)+_0x2e4123));}}),_0x3dfaf9['on']('error',_0x18eab8=>{const _0x35f6ab=_0x3129c3,_0x2d5bf4=Date[_0x35f6ab(0xb5)]()-_0x2b0f93;logger[_0x35f6ab(0xc4)](_0x35f6ab(0xbc),'项目构建出错',{'error':_0x18eab8[_0x35f6ab(0xce)],'duration':_0x2d5bf4,'stderr':_0x17cd5c['trim']()||undefined}),_0x4b4a39(_0x18eab8);});});}
1
+ (function(_0x22eb2e,_0x212195){const _0x5cef7c=a33_0x1f5c,_0xe6dbda=_0x22eb2e();while(!![]){try{const _0x4392bf=-parseInt(_0x5cef7c(0x123))/0x1+-parseInt(_0x5cef7c(0x11e))/0x2*(-parseInt(_0x5cef7c(0x129))/0x3)+-parseInt(_0x5cef7c(0x12f))/0x4+parseInt(_0x5cef7c(0x11f))/0x5+-parseInt(_0x5cef7c(0x126))/0x6*(parseInt(_0x5cef7c(0x122))/0x7)+-parseInt(_0x5cef7c(0x121))/0x8+parseInt(_0x5cef7c(0x11b))/0x9;if(_0x4392bf===_0x212195)break;else _0xe6dbda['push'](_0xe6dbda['shift']());}catch(_0x153fa7){_0xe6dbda['push'](_0xe6dbda['shift']());}}}(a33_0x1339,0x9526b));function a33_0x1f5c(_0x5c0e2c,_0x3bfa2e){_0x5c0e2c=_0x5c0e2c-0x11a;const _0x1339ea=a33_0x1339();let _0x1f5c6b=_0x1339ea[_0x5c0e2c];return _0x1f5c6b;}import{delimiter,join}from'node:path';function a33_0x1339(){const _0x53ade3=['info','npm','stderr','540696rzxJjr','trim','now','error','close','toString','node_modules','inherit','20657070MMmyoc','cwd','data','2XEFtHv','1482085sxoDqE','build','7456448dJGBac','35psAfNp','693148nZehyT','npm\x20run\x20build','env','279498KhmXtg','PATH','message','37707PnZBMp','.bin','run'];a33_0x1339=function(){return _0x53ade3;};return a33_0x1339();}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0xc525cb,_0x40333d)=>{const _0x30bb0f=a33_0x1f5c,_0x51c957=Date[_0x30bb0f(0x131)]();logger[_0x30bb0f(0x12c)](_0x30bb0f(0x120),'开始构建项目',{'command':_0x30bb0f(0x124)});let _0x4fb075='';const _0x4add62=spawn(_0x30bb0f(0x12d),[_0x30bb0f(0x12b),_0x30bb0f(0x120)],{'stdio':[_0x30bb0f(0x11a),_0x30bb0f(0x11a),'pipe'],'shell':!![],'env':{...process[_0x30bb0f(0x125)],'PATH':''+join(process[_0x30bb0f(0x11c)](),_0x30bb0f(0x135),_0x30bb0f(0x12a))+delimiter+process[_0x30bb0f(0x125)][_0x30bb0f(0x127)]}});_0x4add62[_0x30bb0f(0x12e)]?.['on'](_0x30bb0f(0x11d),_0x367b7f=>{const _0x171c22=_0x30bb0f;_0x4fb075+=_0x367b7f[_0x171c22(0x134)]();}),_0x4add62['on'](_0x30bb0f(0x133),_0x2944a6=>{const _0x111125=_0x30bb0f,_0x3424c4=Date[_0x111125(0x131)]()-_0x51c957;if(_0x2944a6===0x0||_0x2944a6===null)logger['success']('build','项目构建成功',_0x3424c4),_0xc525cb();else{const _0x5a848c={'exitCode':_0x2944a6,'duration':_0x3424c4,'command':'npm\x20run\x20build','cwd':process[_0x111125(0x11c)]()};_0x4fb075[_0x111125(0x130)]()&&(_0x5a848c[_0x111125(0x12e)]=_0x4fb075['trim']()),logger['error'](_0x111125(0x120),'项目构建失败',_0x5a848c),_0x40333d(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x2944a6));}}),_0x4add62['on'](_0x30bb0f(0x132),_0x35498f=>{const _0x1e0207=_0x30bb0f,_0xb8956a=Date['now']()-_0x51c957;logger[_0x1e0207(0x132)]('build','项目构建出错',{'error':_0x35498f[_0x1e0207(0x128)],'duration':_0xb8956a,'stderr':_0x4fb075[_0x1e0207(0x130)]()||undefined}),_0x40333d(_0x35498f);});});}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- (function(_0x87fa9e,_0x9d209a){const _0x48d4ed=a34_0x1b54,_0xa85775=_0x87fa9e();while(!![]){try{const _0x40a171=parseInt(_0x48d4ed(0x121))/0x1+parseInt(_0x48d4ed(0x128))/0x2*(parseInt(_0x48d4ed(0x113))/0x3)+parseInt(_0x48d4ed(0x116))/0x4+-parseInt(_0x48d4ed(0x111))/0x5+-parseInt(_0x48d4ed(0x127))/0x6+parseInt(_0x48d4ed(0x115))/0x7+-parseInt(_0x48d4ed(0x10d))/0x8*(parseInt(_0x48d4ed(0x10e))/0x9);if(_0x40a171===_0x9d209a)break;else _0xa85775['push'](_0xa85775['shift']());}catch(_0x2fc221){_0xa85775['push'](_0xa85775['shift']());}}}(a34_0x4a5e,0xe7d93));import{logger}from'../utils/logger.js';export function showLogs(){const _0x19fe0d=a34_0x1b54;logger[_0x19fe0d(0x110)](process['cwd']());const _0x888667=logger[_0x19fe0d(0x119)]();if(_0x888667['length']===0x0){console['log']('*\x20暂无日志记录');return;}console[_0x19fe0d(0x126)](_0x19fe0d(0x112)),_0x888667[_0x19fe0d(0x120)]((_0x2e96fc,_0x841098)=>{const _0x41cfa3=_0x19fe0d,_0x48f19c=new Date(_0x2e96fc[_0x41cfa3(0x114)])[_0x41cfa3(0x125)](_0x41cfa3(0x123)),_0x154286=_0x2e96fc[_0x41cfa3(0x124)]===_0x41cfa3(0x12a)?'√':_0x2e96fc[_0x41cfa3(0x124)]===_0x41cfa3(0x11a)?'×':_0x2e96fc[_0x41cfa3(0x124)]===_0x41cfa3(0x11e)?'!':'i';console[_0x41cfa3(0x126)](_0x841098+0x1+'.\x20'+_0x154286+'\x20['+_0x2e96fc['command']+']\x20'+_0x2e96fc[_0x41cfa3(0x11d)]),console['log'](_0x41cfa3(0x122)+_0x48f19c),_0x2e96fc[_0x41cfa3(0x10f)]&&console['log']('\x20\x20\x20耗时:\x20'+_0x2e96fc[_0x41cfa3(0x10f)]+'ms'),_0x2e96fc[_0x41cfa3(0x117)]&&Object[_0x41cfa3(0x118)](_0x2e96fc['details'])[_0x41cfa3(0x11f)]>0x0&&console[_0x41cfa3(0x126)]('\x20\x20\x20详情:\x20'+JSON[_0x41cfa3(0x11b)](_0x2e96fc['details'],null,0x2)),console[_0x41cfa3(0x126)]('');});}function a34_0x4a5e(){const _0x206384=['\x20\x20\x20时间:\x20','zh-CN','level','toLocaleString','log','6280260jLCcDQ','619146RErMnu','clearLogs','success','17786504wxSZbQ','9qtGaMG','duration','setLogPath','3672800LAXDbz','*\x20Lovrabet\x20CLI\x20日志记录:\x0a','15raLtRE','timestamp','11005701XZIJUF','541720PHlDum','details','keys','readLogs','error','stringify','*\x20日志已清空','message','warn','length','forEach','1698696BnbOCI'];a34_0x4a5e=function(){return _0x206384;};return a34_0x4a5e();}function a34_0x1b54(_0x1cadae,_0x3d4852){_0x1cadae=_0x1cadae-0x10d;const _0x4a5e77=a34_0x4a5e();let _0x1b54ab=_0x4a5e77[_0x1cadae];return _0x1b54ab;}export function clearLogs(){const _0x4ad863=a34_0x1b54;logger[_0x4ad863(0x110)](process['cwd']()),logger[_0x4ad863(0x129)](),console[_0x4ad863(0x126)](_0x4ad863(0x11c));}
1
+ function a34_0x44ac(){const _0x4673d2=['*\x20Lovrabet\x20CLI\x20日志记录:\x0a','level','20430hRZRYW','839118fSqBFJ','log','1557070wNvrmD','length','command','toLocaleString','6QYimtg','cwd','1410328PaxFtr','2154447ZQcAtq','duration','235723NjptgZ','143116OcBrdl','details','keys','stringify','timestamp','warn','clearLogs','forEach','readLogs','\x20\x20\x20详情:\x20','error','zh-CN','setLogPath','*\x20日志已清空','100ADyrTF'];a34_0x44ac=function(){return _0x4673d2;};return a34_0x44ac();}(function(_0x3d1e28,_0xcdd71d){const _0x48ca12=a34_0x122d,_0x2f1141=_0x3d1e28();while(!![]){try{const _0x2355fa=-parseInt(_0x48ca12(0x1a2))/0x1+parseInt(_0x48ca12(0x1a3))/0x2+parseInt(_0x48ca12(0x1b4))/0x3*(-parseInt(_0x48ca12(0x1b1))/0x4)+-parseInt(_0x48ca12(0x199))/0x5*(-parseInt(_0x48ca12(0x19d))/0x6)+parseInt(_0x48ca12(0x1b5))/0x7+-parseInt(_0x48ca12(0x19f))/0x8+parseInt(_0x48ca12(0x1a0))/0x9;if(_0x2355fa===_0xcdd71d)break;else _0x2f1141['push'](_0x2f1141['shift']());}catch(_0x362c25){_0x2f1141['push'](_0x2f1141['shift']());}}}(a34_0x44ac,0x270dd));import{logger}from'../utils/logger.js';export function showLogs(){const _0x24c5ee=a34_0x122d;logger['setLogPath'](process['cwd']());const _0x201e56=logger[_0x24c5ee(0x1ab)]();if(_0x201e56[_0x24c5ee(0x19a)]===0x0){console[_0x24c5ee(0x1b6)]('*\x20暂无日志记录');return;}console[_0x24c5ee(0x1b6)](_0x24c5ee(0x1b2)),_0x201e56[_0x24c5ee(0x1aa)]((_0x3129e8,_0x2f2e61)=>{const _0x1ff1a5=_0x24c5ee,_0x55555e=new Date(_0x3129e8[_0x1ff1a5(0x1a7)])[_0x1ff1a5(0x19c)](_0x1ff1a5(0x1ae)),_0x5d8793=_0x3129e8[_0x1ff1a5(0x1b3)]==='success'?'√':_0x3129e8[_0x1ff1a5(0x1b3)]===_0x1ff1a5(0x1ad)?'×':_0x3129e8[_0x1ff1a5(0x1b3)]===_0x1ff1a5(0x1a8)?'!':'i';console[_0x1ff1a5(0x1b6)](_0x2f2e61+0x1+'.\x20'+_0x5d8793+'\x20['+_0x3129e8[_0x1ff1a5(0x19b)]+']\x20'+_0x3129e8['message']),console[_0x1ff1a5(0x1b6)]('\x20\x20\x20时间:\x20'+_0x55555e),_0x3129e8[_0x1ff1a5(0x1a1)]&&console[_0x1ff1a5(0x1b6)]('\x20\x20\x20耗时:\x20'+_0x3129e8[_0x1ff1a5(0x1a1)]+'ms'),_0x3129e8['details']&&Object[_0x1ff1a5(0x1a5)](_0x3129e8[_0x1ff1a5(0x1a4)])['length']>0x0&&console['log'](_0x1ff1a5(0x1ac)+JSON[_0x1ff1a5(0x1a6)](_0x3129e8[_0x1ff1a5(0x1a4)],null,0x2)),console['log']('');});}function a34_0x122d(_0x3aded1,_0x7dbd7e){_0x3aded1=_0x3aded1-0x199;const _0x44aca5=a34_0x44ac();let _0x122d3e=_0x44aca5[_0x3aded1];return _0x122d3e;}export function clearLogs(){const _0x3bc1e8=a34_0x122d;logger[_0x3bc1e8(0x1af)](process[_0x3bc1e8(0x19e)]()),logger[_0x3bc1e8(0x1a9)](),console[_0x3bc1e8(0x1b6)](_0x3bc1e8(0x1b0));}
@@ -1 +1 @@
1
- (function(_0x552fde,_0x4b651e){const _0x16e789=a35_0xb597,_0x84ef81=_0x552fde();while(!![]){try{const _0x254994=parseInt(_0x16e789(0x198))/0x1*(parseInt(_0x16e789(0x18e))/0x2)+-parseInt(_0x16e789(0x18a))/0x3+-parseInt(_0x16e789(0x187))/0x4+parseInt(_0x16e789(0x19d))/0x5+-parseInt(_0x16e789(0x1a1))/0x6*(-parseInt(_0x16e789(0x18c))/0x7)+-parseInt(_0x16e789(0x193))/0x8*(parseInt(_0x16e789(0x186))/0x9)+-parseInt(_0x16e789(0x19e))/0xa;if(_0x254994===_0x4b651e)break;else _0x84ef81['push'](_0x84ef81['shift']());}catch(_0x4ba603){_0x84ef81['push'](_0x84ef81['shift']());}}}(a35_0x1c46,0xb49dc));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a35_0xb597(_0x3d661c,_0x1809e0){_0x3d661c=_0x3d661c-0x186;const _0x1c46b9=a35_0x1c46();let _0xb59786=_0x1c46b9[_0x3d661c];return _0xb59786;}function a35_0x1c46(){const _0x22d717=['30720jluONP','stderr','预览服务器启动出错','preview','message','11tQqjxz','预览服务器启动成功','now','env','vite','2347195BplPtt','6017700ehfXIc','vite\x20preview','info','786WAMqvi','666OZhpbl','1396080HOxEuq','vite\x20preview\x20exited\x20with\x20code\x20','inherit','96504VcQAws','error','34636GcTHCo','success','161690Xlxfbn','启动预览服务器','node_modules','trim','pipe'];a35_0x1c46=function(){return _0x22d717;};return a35_0x1c46();}export function runPreview(){return new Promise((_0x366137,_0x542c19)=>{const _0x2f2da5=a35_0xb597,_0x337cc8=Date[_0x2f2da5(0x19a)]();logger[_0x2f2da5(0x1a0)](_0x2f2da5(0x196),_0x2f2da5(0x18f),{'command':_0x2f2da5(0x19f)});let _0x28d7f3='';const _0x2dcc4b=spawn(_0x2f2da5(0x19c),[_0x2f2da5(0x196)],{'stdio':['inherit',_0x2f2da5(0x189),_0x2f2da5(0x192)],'shell':!![],'env':{...process[_0x2f2da5(0x19b)],'PATH':''+join(process['cwd'](),_0x2f2da5(0x190),'.bin')+delimiter+process[_0x2f2da5(0x19b)]['PATH']}});_0x2dcc4b[_0x2f2da5(0x194)]?.['on']('data',_0x566430=>{_0x28d7f3+=_0x566430['toString']();}),_0x2dcc4b['on']('close',_0x2f8850=>{const _0x5cf871=_0x2f2da5,_0x5ed38a=Date['now']()-_0x337cc8;if(_0x2f8850===0x0||_0x2f8850===null)logger[_0x5cf871(0x18d)](_0x5cf871(0x196),_0x5cf871(0x199),_0x5ed38a),_0x366137();else{const _0x2e4ba5={'exitCode':_0x2f8850,'duration':_0x5ed38a,'command':_0x5cf871(0x19f),'cwd':process['cwd']()};_0x28d7f3[_0x5cf871(0x191)]()&&(_0x2e4ba5[_0x5cf871(0x194)]=_0x28d7f3[_0x5cf871(0x191)]()),logger[_0x5cf871(0x18b)](_0x5cf871(0x196),'预览服务器启动失败',_0x2e4ba5),_0x542c19(new Error(_0x5cf871(0x188)+_0x2f8850));}}),_0x2dcc4b['on'](_0x2f2da5(0x18b),_0x29e738=>{const _0x27be55=_0x2f2da5,_0x201179=Date[_0x27be55(0x19a)]()-_0x337cc8;logger[_0x27be55(0x18b)]('preview',_0x27be55(0x195),{'error':_0x29e738[_0x27be55(0x197)],'duration':_0x201179,'stderr':_0x28d7f3[_0x27be55(0x191)]()||undefined}),_0x542c19(_0x29e738);});});}
1
+ (function(_0x4bbeee,_0x4065ae){const _0x2901bf=a35_0xa637,_0x23088b=_0x4bbeee();while(!![]){try{const _0x13105d=parseInt(_0x2901bf(0x1b9))/0x1+-parseInt(_0x2901bf(0x1ae))/0x2*(parseInt(_0x2901bf(0x1b6))/0x3)+-parseInt(_0x2901bf(0x1a7))/0x4*(-parseInt(_0x2901bf(0x1bb))/0x5)+-parseInt(_0x2901bf(0x1c2))/0x6+-parseInt(_0x2901bf(0x1b2))/0x7+parseInt(_0x2901bf(0x1be))/0x8+parseInt(_0x2901bf(0x1bc))/0x9;if(_0x13105d===_0x4065ae)break;else _0x23088b['push'](_0x23088b['shift']());}catch(_0x1ea0bb){_0x23088b['push'](_0x23088b['shift']());}}}(a35_0x5964,0x2ae2b));function a35_0x5964(){const _0x20e4c9=['1418868OaBkjC','env','727564EzfePu','cwd','.bin','error','预览服务器启动失败','vite\x20preview','PATH','250066wjLNCN','preview','now','message','304416PINYCP','vite','stderr','inherit','3pzoMCA','pipe','info','184007CbhjGP','预览服务器启动出错','5ZThmXk','1597905iBsyGX','node_modules','297720zQGkaQ','预览服务器启动成功','vite\x20preview\x20exited\x20with\x20code\x20','trim'];a35_0x5964=function(){return _0x20e4c9;};return a35_0x5964();}import{delimiter,join}from'node:path';function a35_0xa637(_0x353a3d,_0x399456){_0x353a3d=_0x353a3d-0x1a7;const _0x5964eb=a35_0x5964();let _0xa637e3=_0x5964eb[_0x353a3d];return _0xa637e3;}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x4e4157,_0x5d8c4b)=>{const _0x3ba1af=a35_0xa637,_0xc7a9ff=Date[_0x3ba1af(0x1b0)]();logger[_0x3ba1af(0x1b8)](_0x3ba1af(0x1af),'启动预览服务器',{'command':_0x3ba1af(0x1ac)});let _0x41201c='';const _0x259c3a=spawn(_0x3ba1af(0x1b3),['preview'],{'stdio':['inherit',_0x3ba1af(0x1b5),_0x3ba1af(0x1b7)],'shell':!![],'env':{...process[_0x3ba1af(0x1c3)],'PATH':''+join(process[_0x3ba1af(0x1a8)](),_0x3ba1af(0x1bd),_0x3ba1af(0x1a9))+delimiter+process[_0x3ba1af(0x1c3)][_0x3ba1af(0x1ad)]}});_0x259c3a['stderr']?.['on']('data',_0xa12c51=>{_0x41201c+=_0xa12c51['toString']();}),_0x259c3a['on']('close',_0xd0bdba=>{const _0xe2fef5=_0x3ba1af,_0x16ecab=Date['now']()-_0xc7a9ff;if(_0xd0bdba===0x0||_0xd0bdba===null)logger['success'](_0xe2fef5(0x1af),_0xe2fef5(0x1bf),_0x16ecab),_0x4e4157();else{const _0x437cca={'exitCode':_0xd0bdba,'duration':_0x16ecab,'command':_0xe2fef5(0x1ac),'cwd':process[_0xe2fef5(0x1a8)]()};_0x41201c['trim']()&&(_0x437cca[_0xe2fef5(0x1b4)]=_0x41201c[_0xe2fef5(0x1c1)]()),logger[_0xe2fef5(0x1aa)](_0xe2fef5(0x1af),_0xe2fef5(0x1ab),_0x437cca),_0x5d8c4b(new Error(_0xe2fef5(0x1c0)+_0xd0bdba));}}),_0x259c3a['on'](_0x3ba1af(0x1aa),_0x46b1a5=>{const _0x34b844=_0x3ba1af,_0x34d496=Date['now']()-_0xc7a9ff;logger[_0x34b844(0x1aa)](_0x34b844(0x1af),_0x34b844(0x1ba),{'error':_0x46b1a5[_0x34b844(0x1b1)],'duration':_0x34d496,'stderr':_0x41201c[_0x34b844(0x1c1)]()||undefined}),_0x5d8c4b(_0x46b1a5);});});}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- function a36_0xd12a(_0x4f8bdd,_0x15122e){_0x4f8bdd=_0x4f8bdd-0x14f;const _0x4b948f=a36_0x4b94();let _0xd12a61=_0x4b948f[_0x4f8bdd];return _0xd12a61;}(function(_0x53dd64,_0x539eca){const _0x5179a3=a36_0xd12a,_0x4e0b89=_0x53dd64();while(!![]){try{const _0x38163f=-parseInt(_0x5179a3(0x15b))/0x1+-parseInt(_0x5179a3(0x150))/0x2*(parseInt(_0x5179a3(0x16b))/0x3)+-parseInt(_0x5179a3(0x14f))/0x4+parseInt(_0x5179a3(0x165))/0x5*(-parseInt(_0x5179a3(0x153))/0x6)+parseInt(_0x5179a3(0x15a))/0x7+parseInt(_0x5179a3(0x168))/0x8+parseInt(_0x5179a3(0x15f))/0x9;if(_0x38163f===_0x539eca)break;else _0x4e0b89['push'](_0x4e0b89['shift']());}catch(_0x2df672){_0x4e0b89['push'](_0x4e0b89['shift']());}}}(a36_0x4b94,0x93019));import{delimiter,join}from'node:path';function a36_0x4b94(){const _0x162bb2=['70502pVClBN','success','start','642222wUqTbM','inherit','write','toString','now','env','data','6139574apyyHA','449413FMdQUn','trim','stderr','开发服务器启动出错','22796082siTqzp','vite\x20exited\x20with\x20code\x20','minVersion','close','message','vite','45KZTFaZ','开发服务器启动失败','error','5462600MXCMJx','warn','开发服务器启动成功','96ZXbsWO','pipe','cwd','3799560JeIZYv'];a36_0x4b94=function(){return _0x162bb2;};return a36_0x4b94();}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';export function runStart(_0x452171){return new Promise((_0x1f687b,_0xebfb62)=>{const _0x140e5b=a36_0xd12a,_0x54749b=Date['now'](),_0x4c8479=_0x452171||process[_0x140e5b(0x16d)](),_0x42bdb9=checkSdkVersion(_0x4c8479);_0x42bdb9['needsUpgrade']&&(printSdkUpgradeWarning(_0x42bdb9),logger[_0x140e5b(0x169)](_0x140e5b(0x152),'SDK\x20版本低于推荐版本',{'currentVersion':_0x42bdb9['version'],'minVersion':_0x42bdb9[_0x140e5b(0x161)]}));logger['info'](_0x140e5b(0x152),'启动开发服务器',{'command':_0x140e5b(0x164),'cwd':_0x4c8479});let _0x599605='';const _0x533dce=spawn(_0x140e5b(0x164),{'stdio':[_0x140e5b(0x154),_0x140e5b(0x154),_0x140e5b(0x16c)],'shell':!![],'cwd':_0x4c8479,'env':{...process[_0x140e5b(0x158)],'PATH':''+join(_0x4c8479,'node_modules','.bin')+delimiter+process['env']['PATH']}});_0x533dce[_0x140e5b(0x15d)]?.['on'](_0x140e5b(0x159),_0x4d7cfb=>{const _0x215187=_0x140e5b,_0x161aa1=_0x4d7cfb[_0x215187(0x156)]();_0x599605+=_0x161aa1,process[_0x215187(0x15d)][_0x215187(0x155)](_0x161aa1);}),_0x533dce['on'](_0x140e5b(0x162),_0xda695=>{const _0x486fb3=_0x140e5b,_0x17136a=Date['now']()-_0x54749b;if(_0xda695===0x0||_0xda695===null)logger[_0x486fb3(0x151)](_0x486fb3(0x152),_0x486fb3(0x16a),_0x17136a),_0x1f687b();else{const _0x632cb2={'exitCode':_0xda695,'duration':_0x17136a,'command':_0x486fb3(0x164),'cwd':_0x4c8479};_0x599605[_0x486fb3(0x15c)]()&&(_0x632cb2[_0x486fb3(0x15d)]=_0x599605[_0x486fb3(0x15c)]()),logger[_0x486fb3(0x167)](_0x486fb3(0x152),_0x486fb3(0x166),_0x632cb2),_0xebfb62(new Error(_0x486fb3(0x160)+_0xda695));}}),_0x533dce['on'](_0x140e5b(0x167),_0x355dd8=>{const _0x1056d9=_0x140e5b,_0x4b1d59=Date[_0x1056d9(0x157)]()-_0x54749b,_0x4c7e00={'error':_0x355dd8[_0x1056d9(0x163)],'duration':_0x4b1d59,'command':_0x1056d9(0x164),'cwd':_0x4c8479};_0x599605[_0x1056d9(0x15c)]()&&(_0x4c7e00[_0x1056d9(0x15d)]=_0x599605['trim']()),logger[_0x1056d9(0x167)]('start',_0x1056d9(0x15e),_0x4c7e00),_0xebfb62(_0x355dd8);});});}
1
+ function a36_0x4e43(){const _0x1e87bb=['3192faTcjc','info','minVersion','stderr','开发服务器启动出错','555138SMuiiW','needsUpgrade','20EyuSwb','173015BGPJRF','启动开发服务器','4248DxcSBk','187318OTINKb','toString','node_modules','4977138XJxale','trim','data','10cjkIIP','vite\x20exited\x20with\x20code\x20','.bin','env','40cxduTp','warn','pipe','PATH','write','1224245HyQJfi','4933656KZznkQ','cwd','version','error','inherit','vite','start','close'];a36_0x4e43=function(){return _0x1e87bb;};return a36_0x4e43();}(function(_0x2b24b2,_0x10f75a){const _0x1236dd=a36_0x5a36,_0x478825=_0x2b24b2();while(!![]){try{const _0x36bc86=parseInt(_0x1236dd(0x133))/0x1*(-parseInt(_0x1236dd(0x139))/0x2)+-parseInt(_0x1236dd(0x12d))/0x3+-parseInt(_0x1236dd(0x13d))/0x4*(-parseInt(_0x1236dd(0x130))/0x5)+parseInt(_0x1236dd(0x136))/0x6+parseInt(_0x1236dd(0x128))/0x7*(parseInt(_0x1236dd(0x132))/0x8)+parseInt(_0x1236dd(0x143))/0x9+-parseInt(_0x1236dd(0x12f))/0xa*(parseInt(_0x1236dd(0x142))/0xb);if(_0x36bc86===_0x10f75a)break;else _0x478825['push'](_0x478825['shift']());}catch(_0x2332b7){_0x478825['push'](_0x478825['shift']());}}}(a36_0x4e43,0x97c4f));import{delimiter,join}from'node:path';function a36_0x5a36(_0x4c4eb4,_0x904ff8){_0x4c4eb4=_0x4c4eb4-0x127;const _0x4e43e1=a36_0x4e43();let _0x5a361c=_0x4e43e1[_0x4c4eb4];return _0x5a361c;}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';export function runStart(_0x3920cc){return new Promise((_0x2938ca,_0xc0e103)=>{const _0x4ee42f=a36_0x5a36,_0x40c276=Date['now'](),_0x2d1ee4=_0x3920cc||process[_0x4ee42f(0x144)](),_0x222917=checkSdkVersion(_0x2d1ee4);_0x222917[_0x4ee42f(0x12e)]&&(printSdkUpgradeWarning(_0x222917),logger[_0x4ee42f(0x13e)]('start','SDK\x20版本低于推荐版本',{'currentVersion':_0x222917[_0x4ee42f(0x145)],'minVersion':_0x222917[_0x4ee42f(0x12a)]}));logger[_0x4ee42f(0x129)]('start',_0x4ee42f(0x131),{'command':_0x4ee42f(0x148),'cwd':_0x2d1ee4});let _0x3b9511='';const _0x2dcfe9=spawn(_0x4ee42f(0x148),{'stdio':[_0x4ee42f(0x147),'inherit',_0x4ee42f(0x13f)],'shell':!![],'cwd':_0x2d1ee4,'env':{...process[_0x4ee42f(0x13c)],'PATH':''+join(_0x2d1ee4,_0x4ee42f(0x135),_0x4ee42f(0x13b))+delimiter+process[_0x4ee42f(0x13c)][_0x4ee42f(0x140)]}});_0x2dcfe9['stderr']?.['on'](_0x4ee42f(0x138),_0x70280c=>{const _0x207397=_0x4ee42f,_0x379b45=_0x70280c[_0x207397(0x134)]();_0x3b9511+=_0x379b45,process['stderr'][_0x207397(0x141)](_0x379b45);}),_0x2dcfe9['on'](_0x4ee42f(0x127),_0x5baf30=>{const _0x4d01e6=_0x4ee42f,_0x5768e7=Date['now']()-_0x40c276;if(_0x5baf30===0x0||_0x5baf30===null)logger['success'](_0x4d01e6(0x149),'开发服务器启动成功',_0x5768e7),_0x2938ca();else{const _0x5a7afa={'exitCode':_0x5baf30,'duration':_0x5768e7,'command':_0x4d01e6(0x148),'cwd':_0x2d1ee4};_0x3b9511['trim']()&&(_0x5a7afa[_0x4d01e6(0x12b)]=_0x3b9511['trim']()),logger['error'](_0x4d01e6(0x149),'开发服务器启动失败',_0x5a7afa),_0xc0e103(new Error(_0x4d01e6(0x13a)+_0x5baf30));}}),_0x2dcfe9['on'](_0x4ee42f(0x146),_0x19f55d=>{const _0x361244=_0x4ee42f,_0x54f4d2=Date['now']()-_0x40c276,_0x11de4f={'error':_0x19f55d['message'],'duration':_0x54f4d2,'command':_0x361244(0x148),'cwd':_0x2d1ee4};_0x3b9511[_0x361244(0x137)]()&&(_0x11de4f[_0x361244(0x12b)]=_0x3b9511[_0x361244(0x137)]()),logger['error'](_0x361244(0x149),_0x361244(0x12c),_0x11de4f),_0xc0e103(_0x19f55d);});});}
@@ -1 +1 @@
1
- (function(_0x4420d2,_0x3e00fa){const _0x67dd02=a37_0xf903,_0x5e30d3=_0x4420d2();while(!![]){try{const _0x49d7a0=-parseInt(_0x67dd02(0xed))/0x1*(parseInt(_0x67dd02(0xee))/0x2)+-parseInt(_0x67dd02(0xf6))/0x3+parseInt(_0x67dd02(0xf3))/0x4+-parseInt(_0x67dd02(0xf0))/0x5+parseInt(_0x67dd02(0xfd))/0x6*(-parseInt(_0x67dd02(0x100))/0x7)+parseInt(_0x67dd02(0xfb))/0x8*(-parseInt(_0x67dd02(0xec))/0x9)+parseInt(_0x67dd02(0xf2))/0xa;if(_0x49d7a0===_0x3e00fa)break;else _0x5e30d3['push'](_0x5e30d3['shift']());}catch(_0x2cf3f1){_0x5e30d3['push'](_0x5e30d3['shift']());}}}(a37_0x1c65,0x30667));import{jsxs as a37_0xeb22f8,jsx as a37_0x45d373}from'react/jsx-runtime';import{Box,Text}from'ink';function a37_0xf903(_0x10fe2f,_0x47b919){_0x10fe2f=_0x10fe2f-0xec;const _0x1c652a=a37_0x1c65();let _0xf903f7=_0x1c652a[_0x10fe2f];return _0xf903f7;}function a37_0x1c65(){const _0x35b791=['lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','1987839MOGIHd','65445GcbLsp','6jOUrSZ','\x20*\x20配置示例:','17390pnMmqX','command','7728810DsJrYO','424336MkJlkY','无效的命令,可用命令如下:','获取配置项','206592AkMMut','gray','column','\x20\x20\x20\x20','设置环境\x20(online/daily)','8NOpezx','map','6DdIFxm','配置当前项目的\x20App\x20Code','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1338190KRLbPF','description','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a37_0x1c65=function(){return _0x35b791;};return a37_0x1c65();}export function ConfigHelp(){const _0x54be5a=a37_0xf903,_0x113993=[{'command':_0x54be5a(0x103),'description':'设置配置项'},{'command':_0x54be5a(0x102),'description':_0x54be5a(0xf5)},{'command':_0x54be5a(0xff),'description':'列出所有配置项'}],_0x21689b=[{'command':'lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description':_0x54be5a(0xfe)},{'command':'lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','description':_0x54be5a(0xfa)}];return a37_0xeb22f8(Box,{'flexDirection':_0x54be5a(0xf8),'marginTop':0x1,'marginBottom':0x1,'children':[a37_0x45d373(Box,{'marginBottom':0x1,'children':a37_0xeb22f8(Text,{'color':'gray','children':['\x20!','\x20\x20',_0x54be5a(0xf4)]})}),_0x113993['map'](_0x5e2b4f=>a37_0xeb22f8(Box,{'children':[a37_0xeb22f8(Text,{'children':[_0x54be5a(0xf9),_0x5e2b4f[_0x54be5a(0xf1)]]}),a37_0x45d373(Text,{'color':_0x54be5a(0xf7),'children':_0x5e2b4f[_0x54be5a(0x101)]})]},_0x5e2b4f[_0x54be5a(0xf1)])),a37_0x45d373(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a37_0x45d373(Text,{'color':_0x54be5a(0xf7),'children':_0x54be5a(0xef)})}),_0x21689b[_0x54be5a(0xfc)](_0x3cf513=>a37_0xeb22f8(Box,{'children':[a37_0xeb22f8(Text,{'children':[_0x54be5a(0xf9),_0x3cf513[_0x54be5a(0xf1)]]}),a37_0x45d373(Text,{'color':_0x54be5a(0xf7),'children':_0x3cf513[_0x54be5a(0x101)]})]},_0x3cf513[_0x54be5a(0xf1)]))]});}
1
+ (function(_0xc83808,_0x4fca52){const _0x355e86=a37_0x5c8f,_0xf29520=_0xc83808();while(!![]){try{const _0x55f9df=parseInt(_0x355e86(0x1f2))/0x1*(-parseInt(_0x355e86(0x1ee))/0x2)+-parseInt(_0x355e86(0x1f7))/0x3+parseInt(_0x355e86(0x1e8))/0x4+parseInt(_0x355e86(0x1f6))/0x5+parseInt(_0x355e86(0x1e9))/0x6*(-parseInt(_0x355e86(0x1f5))/0x7)+parseInt(_0x355e86(0x1f9))/0x8+parseInt(_0x355e86(0x1f0))/0x9;if(_0x55f9df===_0x4fca52)break;else _0xf29520['push'](_0xf29520['shift']());}catch(_0x10089f){_0xf29520['push'](_0xf29520['shift']());}}}(a37_0x5bc4,0x79bf0));function a37_0x5bc4(){const _0x39de98=['description','\x20\x20\x20\x20','列出所有配置项','获取配置项','gray','2192260aHvCDU','2558118GZHHiN','column','设置环境\x20(online/daily)','无效的命令,可用命令如下:','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','14djaHKQ','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','5054265BjOQyW','\x20*\x20配置示例:','14799SZunRh','map','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','14gVNUIY','3352390qUlbnv','2652033uOtLdt','command','4470832UMyisX','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a37_0x5bc4=function(){return _0x39de98;};return a37_0x5bc4();}function a37_0x5c8f(_0x22719f,_0x3f2fe5){_0x22719f=_0x22719f-0x1e6;const _0x5bc408=a37_0x5bc4();let _0x5c8fcc=_0x5bc408[_0x22719f];return _0x5c8fcc;}import{jsxs as a37_0x5262bd,jsx as a37_0x1530e7}from'react/jsx-runtime';import{Box,Text}from'ink';export function ConfigHelp(){const _0x4b57a5=a37_0x5c8f,_0x156a02=[{'command':'lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','description':'设置配置项'},{'command':_0x4b57a5(0x1fa),'description':_0x4b57a5(0x1e6)},{'command':_0x4b57a5(0x1ef),'description':_0x4b57a5(0x1fd)}],_0x29e392=[{'command':_0x4b57a5(0x1ed),'description':'配置当前项目的\x20App\x20Code'},{'command':_0x4b57a5(0x1f4),'description':_0x4b57a5(0x1eb)}];return a37_0x5262bd(Box,{'flexDirection':_0x4b57a5(0x1ea),'marginTop':0x1,'marginBottom':0x1,'children':[a37_0x1530e7(Box,{'marginBottom':0x1,'children':a37_0x5262bd(Text,{'color':_0x4b57a5(0x1e7),'children':['\x20!','\x20\x20',_0x4b57a5(0x1ec)]})}),_0x156a02[_0x4b57a5(0x1f3)](_0x413875=>a37_0x5262bd(Box,{'children':[a37_0x5262bd(Text,{'children':[_0x4b57a5(0x1fc),_0x413875['command']]}),a37_0x1530e7(Text,{'color':_0x4b57a5(0x1e7),'children':_0x413875[_0x4b57a5(0x1fb)]})]},_0x413875[_0x4b57a5(0x1f8)])),a37_0x1530e7(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a37_0x1530e7(Text,{'color':'gray','children':_0x4b57a5(0x1f1)})}),_0x29e392['map'](_0x161d59=>a37_0x5262bd(Box,{'children':[a37_0x5262bd(Text,{'children':[_0x4b57a5(0x1fc),_0x161d59[_0x4b57a5(0x1f8)]]}),a37_0x1530e7(Text,{'color':_0x4b57a5(0x1e7),'children':_0x161d59[_0x4b57a5(0x1fb)]})]},_0x161d59[_0x4b57a5(0x1f8)]))]});}
@@ -1 +1 @@
1
- (function(_0x4251b9,_0x56ac69){const _0x1faac1=a38_0x112d,_0x4a6f35=_0x4251b9();while(!![]){try{const _0x555577=parseInt(_0x1faac1(0x150))/0x1+parseInt(_0x1faac1(0x159))/0x2+parseInt(_0x1faac1(0x14e))/0x3+parseInt(_0x1faac1(0x148))/0x4+-parseInt(_0x1faac1(0x149))/0x5*(-parseInt(_0x1faac1(0x151))/0x6)+parseInt(_0x1faac1(0x14a))/0x7*(-parseInt(_0x1faac1(0x142))/0x8)+-parseInt(_0x1faac1(0x13c))/0x9*(parseInt(_0x1faac1(0x14b))/0xa);if(_0x555577===_0x56ac69)break;else _0x4a6f35['push'](_0x4a6f35['shift']());}catch(_0x3e6c70){_0x4a6f35['push'](_0x4a6f35['shift']());}}}(a38_0x48e9,0x83073));function a38_0x48e9(){const _0x4d1721=['renameSync','18JsExsb','input','保存配置失败:\x20','未提供配置值','env','string','8EoAvBY','get','list','dirname','includes','set','2941248oCjpME','510ufBLZq','3315242kUjxrE','8944330sfgPjH','stringify','length','2508723Cqlwsl','daily','343721qcoOuj','27264jSepgx','red','appcode','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','环境配置已设置为:\x20','error','utf8','保存配置失败','840802txaiMc','log','app','help','unlinkSync','config','--help','flags','parse','message'];a38_0x48e9=function(){return _0x4d1721;};return a38_0x48e9();}import{jsx as a38_0x5b2fb1,jsxs as a38_0x3749ce}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a38_0x53cf6b from'node:fs';import a38_0x5b3079 from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';function a38_0x112d(_0x5490bb,_0xde2216){_0x5490bb=_0x5490bb-0x138;const _0x48e90b=a38_0x48e9();let _0x112dcf=_0x48e90b[_0x5490bb];return _0x112dcf;}import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';export function Config(_0x50f3c1){const _0x582e00=a38_0x112d,{cli:_0x59652b}=_0x50f3c1,_0x26c4aa=_0x59652b[_0x582e00(0x13d)][0x1],_0x414f08=_0x59652b[_0x582e00(0x13d)][0x2],_0x413b39=[_0x582e00(0x147),_0x582e00(0x143)]['includes'](_0x26c4aa||''),_0x35c325=_0x59652b['input'][_0x582e00(0x14d)]>=0x3;if(_0x414f08===_0x582e00(0x15f)||_0x59652b[_0x582e00(0x138)][_0x582e00(0x15c)])return a38_0x5b2fb1(ConfigHelp,{});const _0x5a7cd1=readConfig();if(_0x26c4aa===_0x582e00(0x147)){if(_0x414f08){const _0x42ca2d=_0x59652b[_0x582e00(0x13d)][0x3];if(typeof _0x42ca2d!=='undefined'){if(_0x414f08===_0x582e00(0x140)&&!['online',_0x582e00(0x14f)][_0x582e00(0x146)](_0x42ca2d))return a38_0x5b2fb1(Box,{'children':a38_0x5b2fb1(Text,{'color':_0x582e00(0x152),'children':_0x582e00(0x154)})});const _0x618561=isInProject(),_0xb68e18=_0x618561?projectConfigPath:globalConfigPath;let _0x59fd49={};try{if(existsSync(_0xb68e18)){const _0x1a38c6=readFileSync(_0xb68e18,{'encoding':_0x582e00(0x157)});_0x1a38c6&&(_0x59fd49=JSON[_0x582e00(0x139)](_0x1a38c6));}}catch(_0x3481a6){}if(typeof _0x42ca2d!==_0x582e00(0x141)||_0x42ca2d[_0x582e00(0x14d)]>0x1f4)return a38_0x5b2fb1(Box,{'children':a38_0x5b2fb1(Text,{'color':'red','children':'配置值无效或过长'})});let _0x526746=_0x414f08;_0x414f08===_0x582e00(0x15b)&&(_0x526746=_0x582e00(0x153),delete _0x59fd49[_0x582e00(0x15b)]);_0x414f08==='appcode'&&delete _0x59fd49['app'];_0x59fd49[_0x526746]=_0x42ca2d;try{const _0x44f154=a38_0x5b3079[_0x582e00(0x145)](_0xb68e18);!existsSync(_0x44f154)&&a38_0x53cf6b['mkdirSync'](_0x44f154,{'recursive':!![]});const _0x3da3d9=_0xb68e18+'.tmp';writeFileSync(_0x3da3d9,JSON[_0x582e00(0x14c)](_0x59fd49,null,0x2),{'encoding':_0x582e00(0x157),'mode':0x180}),a38_0x53cf6b[_0x582e00(0x13b)](_0x3da3d9,_0xb68e18);if(_0x414f08===_0x582e00(0x140)){const _0x155cdc=_0x618561?'项目':'全局';console[_0x582e00(0x15a)]('✓\x20'+_0x155cdc+_0x582e00(0x155)+_0x42ca2d);}}catch(_0x53003e){const _0x2c3e56=_0xb68e18+'.tmp';try{existsSync(_0x2c3e56)&&a38_0x53cf6b[_0x582e00(0x15d)](_0x2c3e56);}catch(_0x39cbc1){}return logger[_0x582e00(0x156)](_0x582e00(0x15e),_0x582e00(0x158),{'error':_0x53003e instanceof Error?_0x53003e['message']:String(_0x53003e),'configKey':_0x414f08,'configValue':_0x42ca2d,'targetConfigPath':_0xb68e18}),a38_0x5b2fb1(Box,{'children':a38_0x3749ce(Text,{'color':_0x582e00(0x152),'children':[_0x582e00(0x13e),_0x53003e instanceof Error?_0x53003e[_0x582e00(0x13a)]:String(_0x53003e)]})});}return null;}return a38_0x5b2fb1(Box,{'children':a38_0x5b2fb1(Text,{'color':'red','children':_0x582e00(0x13f)})});}}if(_0x26c4aa===_0x582e00(0x143)){if(_0x414f08){let _0x2f5751=_0x414f08;return _0x414f08===_0x582e00(0x15b)&&(_0x2f5751=_0x582e00(0x153)),console[_0x582e00(0x15a)](_0x5a7cd1[_0x2f5751]||'undefined'),null;}return null;}if(_0x26c4aa===_0x582e00(0x144))return console[_0x582e00(0x15a)](JSON[_0x582e00(0x14c)](_0x5a7cd1,null,0x2)),null;if(!_0x413b39||!_0x35c325)return a38_0x5b2fb1(ConfigHelp,{});return null;}
1
+ (function(_0x4daa23,_0x102764){const _0x991d70=a38_0x2a14,_0x47c229=_0x4daa23();while(!![]){try{const _0x49a8f4=-parseInt(_0x991d70(0x146))/0x1*(parseInt(_0x991d70(0x145))/0x2)+-parseInt(_0x991d70(0x13b))/0x3*(-parseInt(_0x991d70(0x147))/0x4)+parseInt(_0x991d70(0x135))/0x5+-parseInt(_0x991d70(0x12d))/0x6+-parseInt(_0x991d70(0x12f))/0x7+parseInt(_0x991d70(0x141))/0x8*(-parseInt(_0x991d70(0x140))/0x9)+-parseInt(_0x991d70(0x143))/0xa*(-parseInt(_0x991d70(0x142))/0xb);if(_0x49a8f4===_0x102764)break;else _0x47c229['push'](_0x47c229['shift']());}catch(_0x3e42f5){_0x47c229['push'](_0x47c229['shift']());}}}(a38_0x3ac7,0xa8eaa));import{jsx as a38_0x2a7ecc,jsxs as a38_0x2f7efd}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a38_0x41060d from'node:fs';import a38_0x3f449f from'node:path';function a38_0x2a14(_0x59a57f,_0x3c4caa){_0x59a57f=_0x59a57f-0x128;const _0x3ac7d9=a38_0x3ac7();let _0x2a1467=_0x3ac7d9[_0x59a57f];return _0x2a1467;}import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';function a38_0x3ac7(){const _0x384f31=['log','.tmp','保存配置失败','red','unlinkSync','4310280TDlRVa','app','undefined','utf8','length','保存配置失败:\x20','1137066pkTVzv','env','appcode','flags','stringify','10128609IuniCp','8YJHzaY','446578pDMGpy','760ApcTFW','message','2SubukZ','1293561uyqjJj','4PkUfXT','input','daily','includes','配置值无效或过长','error','1340946qUjUhS','get','6945337cqQcAY'];a38_0x3ac7=function(){return _0x384f31;};return a38_0x3ac7();}export function Config(_0x594fb8){const _0x1c3a13=a38_0x2a14,{cli:_0x4241c6}=_0x594fb8,_0x3a5009=_0x4241c6[_0x1c3a13(0x128)][0x1],_0x4b226f=_0x4241c6[_0x1c3a13(0x128)][0x2],_0x4b27be=['set',_0x1c3a13(0x12e)][_0x1c3a13(0x12a)](_0x3a5009||''),_0x566313=_0x4241c6[_0x1c3a13(0x128)][_0x1c3a13(0x139)]>=0x3;if(_0x4b226f==='--help'||_0x4241c6[_0x1c3a13(0x13e)]['help'])return a38_0x2a7ecc(ConfigHelp,{});const _0x3f1414=readConfig();if(_0x3a5009==='set'){if(_0x4b226f){const _0x4df0ef=_0x4241c6[_0x1c3a13(0x128)][0x3];if(typeof _0x4df0ef!=='undefined'){if(_0x4b226f==='env'&&!['online',_0x1c3a13(0x129)]['includes'](_0x4df0ef))return a38_0x2a7ecc(Box,{'children':a38_0x2a7ecc(Text,{'color':_0x1c3a13(0x133),'children':'环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22'})});const _0x3b33a5=isInProject(),_0x46d182=_0x3b33a5?projectConfigPath:globalConfigPath;let _0x9f0856={};try{if(existsSync(_0x46d182)){const _0x2b3231=readFileSync(_0x46d182,{'encoding':'utf8'});_0x2b3231&&(_0x9f0856=JSON['parse'](_0x2b3231));}}catch(_0x488fed){}if(typeof _0x4df0ef!=='string'||_0x4df0ef[_0x1c3a13(0x139)]>0x1f4)return a38_0x2a7ecc(Box,{'children':a38_0x2a7ecc(Text,{'color':_0x1c3a13(0x133),'children':_0x1c3a13(0x12b)})});let _0x1ce5af=_0x4b226f;_0x4b226f===_0x1c3a13(0x136)&&(_0x1ce5af='appcode',delete _0x9f0856[_0x1c3a13(0x136)]);_0x4b226f==='appcode'&&delete _0x9f0856[_0x1c3a13(0x136)];_0x9f0856[_0x1ce5af]=_0x4df0ef;try{const _0x1a8cd5=a38_0x3f449f['dirname'](_0x46d182);!existsSync(_0x1a8cd5)&&a38_0x41060d['mkdirSync'](_0x1a8cd5,{'recursive':!![]});const _0x3b5ce8=_0x46d182+_0x1c3a13(0x131);writeFileSync(_0x3b5ce8,JSON[_0x1c3a13(0x13f)](_0x9f0856,null,0x2),{'encoding':_0x1c3a13(0x138),'mode':0x180}),a38_0x41060d['renameSync'](_0x3b5ce8,_0x46d182);if(_0x4b226f===_0x1c3a13(0x13c)){const _0x226882=_0x3b33a5?'项目':'全局';console['log']('✓\x20'+_0x226882+'环境配置已设置为:\x20'+_0x4df0ef);}}catch(_0x2f3a1c){const _0x440ae0=_0x46d182+_0x1c3a13(0x131);try{existsSync(_0x440ae0)&&a38_0x41060d[_0x1c3a13(0x134)](_0x440ae0);}catch(_0x303153){}return logger[_0x1c3a13(0x12c)]('config',_0x1c3a13(0x132),{'error':_0x2f3a1c instanceof Error?_0x2f3a1c[_0x1c3a13(0x144)]:String(_0x2f3a1c),'configKey':_0x4b226f,'configValue':_0x4df0ef,'targetConfigPath':_0x46d182}),a38_0x2a7ecc(Box,{'children':a38_0x2f7efd(Text,{'color':'red','children':[_0x1c3a13(0x13a),_0x2f3a1c instanceof Error?_0x2f3a1c[_0x1c3a13(0x144)]:String(_0x2f3a1c)]})});}return null;}return a38_0x2a7ecc(Box,{'children':a38_0x2a7ecc(Text,{'color':_0x1c3a13(0x133),'children':'未提供配置值'})});}}if(_0x3a5009===_0x1c3a13(0x12e)){if(_0x4b226f){let _0x563aa9=_0x4b226f;return _0x4b226f===_0x1c3a13(0x136)&&(_0x563aa9=_0x1c3a13(0x13d)),console[_0x1c3a13(0x130)](_0x3f1414[_0x563aa9]||_0x1c3a13(0x137)),null;}return null;}if(_0x3a5009==='list')return console[_0x1c3a13(0x130)](JSON[_0x1c3a13(0x13f)](_0x3f1414,null,0x2)),null;if(!_0x4b27be||!_0x566313)return a38_0x2a7ecc(ConfigHelp,{});return null;}
@@ -1 +1 @@
1
- function a39_0x3e22(_0x42cc49,_0x582183){_0x42cc49=_0x42cc49-0x115;const _0x1a85f5=a39_0x1a85();let _0x3e226d=_0x1a85f5[_0x42cc49];return _0x3e226d;}function a39_0x1a85(){const _0x225354=['6OtMYWO','15339643ICfMzv','online','1045968wIkSKu','1375034VYIQpZ','9NiiGNI','3688ybzVTN','102636tYLDXx','500IFDrJc','https://api.lovrabet.com','5383255WwaEjq','https://daily-api.lovrabet.com','1576144djtuXx','3241thFULO'];a39_0x1a85=function(){return _0x225354;};return a39_0x1a85();}const a39_0x25223e=a39_0x3e22;(function(_0x27a182,_0x4c7e0f){const _0x36ee01=a39_0x3e22,_0x214b52=_0x27a182();while(!![]){try{const _0x10df43=parseInt(_0x36ee01(0x11f))/0x1+-parseInt(_0x36ee01(0x11e))/0x2+parseInt(_0x36ee01(0x120))/0x3*(-parseInt(_0x36ee01(0x119))/0x4)+parseInt(_0x36ee01(0x117))/0x5*(-parseInt(_0x36ee01(0x11b))/0x6)+parseInt(_0x36ee01(0x11a))/0x7*(parseInt(_0x36ee01(0x121))/0x8)+-parseInt(_0x36ee01(0x122))/0x9*(-parseInt(_0x36ee01(0x115))/0xa)+parseInt(_0x36ee01(0x11c))/0xb;if(_0x10df43===_0x4c7e0f)break;else _0x214b52['push'](_0x214b52['shift']());}catch(_0x46b08e){_0x214b52['push'](_0x214b52['shift']());}}}(a39_0x1a85,0xbc577));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()==='online'?'https://user.lovrabet.com':'https://user-daily.lovrabet.com';export const getApiDomain=()=>getEnv()===a39_0x25223e(0x11d)?a39_0x25223e(0x116):a39_0x25223e(0x118);
1
+ const a39_0x5401fd=a39_0x52dc;(function(_0x21ee92,_0x137c0d){const _0x1dab9d=a39_0x52dc,_0x4f6501=_0x21ee92();while(!![]){try{const _0x363c4e=parseInt(_0x1dab9d(0xb1))/0x1+-parseInt(_0x1dab9d(0xb8))/0x2+parseInt(_0x1dab9d(0xb3))/0x3*(-parseInt(_0x1dab9d(0xb0))/0x4)+-parseInt(_0x1dab9d(0xbb))/0x5+-parseInt(_0x1dab9d(0xb5))/0x6+-parseInt(_0x1dab9d(0xb2))/0x7*(-parseInt(_0x1dab9d(0xb4))/0x8)+parseInt(_0x1dab9d(0xba))/0x9;if(_0x363c4e===_0x137c0d)break;else _0x4f6501['push'](_0x4f6501['shift']());}catch(_0x294588){_0x4f6501['push'](_0x4f6501['shift']());}}}(a39_0x57ef,0x5498c));import{getEnv}from'./env.js';function a39_0x52dc(_0x1e5817,_0x3f619d){_0x1e5817=_0x1e5817-0xb0;const _0x57efe9=a39_0x57ef();let _0x52dcd7=_0x57efe9[_0x1e5817];return _0x52dcd7;}function a39_0x57ef(){const _0xe05d9d=['online','https://user.lovrabet.com','737566KrXcbF','https://daily-api.lovrabet.com','8262999UbyMbV','320910dRNVIL','https://user-daily.lovrabet.com','1379900tKrLQR','614254bUEomA','1068669VMXjtQ','3yzeVnd','8vowgVC','3363504SgDdBn'];a39_0x57ef=function(){return _0xe05d9d;};return a39_0x57ef();}export const getUserDomain=()=>getEnv()===a39_0x5401fd(0xb6)?a39_0x5401fd(0xb7):a39_0x5401fd(0xbc);export const getApiDomain=()=>getEnv()===a39_0x5401fd(0xb6)?'https://api.lovrabet.com':a39_0x5401fd(0xb9);
@@ -1 +1 @@
1
- const a40_0x5b12f6=a40_0x5373;function a40_0x5373(_0x15d505,_0x336006){_0x15d505=_0x15d505-0x1bd;const _0x42cadd=a40_0x42ca();let _0x53737a=_0x42cadd[_0x15d505];return _0x53737a;}function a40_0x42ca(){const _0x4f7194=['10QehKVV','online','204845iXULWl','24qjXsWF','4414069NRjwqd','env','32yBGFVm','24369mvmSYJ','414312ooofoE','3396564gGvQuy','28HOIfSo','985353kWjFic','LOVRABET_ENV','4466493FaNCDh'];a40_0x42ca=function(){return _0x4f7194;};return a40_0x42ca();}(function(_0x5de112,_0x45a3f3){const _0x383a37=a40_0x5373,_0x237084=_0x5de112();while(!![]){try{const _0x50ba27=-parseInt(_0x383a37(0x1c7))/0x1*(-parseInt(_0x383a37(0x1c3))/0x2)+-parseInt(_0x383a37(0x1bd))/0x3+-parseInt(_0x383a37(0x1c6))/0x4*(parseInt(_0x383a37(0x1c2))/0x5)+parseInt(_0x383a37(0x1c9))/0x6+-parseInt(_0x383a37(0x1ca))/0x7*(-parseInt(_0x383a37(0x1c8))/0x8)+parseInt(_0x383a37(0x1bf))/0x9*(parseInt(_0x383a37(0x1c0))/0xa)+-parseInt(_0x383a37(0x1c4))/0xb;if(_0x50ba27===_0x45a3f3)break;else _0x237084['push'](_0x237084['shift']());}catch(_0x2685ca){_0x237084['push'](_0x237084['shift']());}}}(a40_0x42ca,0x7b299));let env=process[a40_0x5b12f6(0x1c5)][a40_0x5b12f6(0x1be)]||a40_0x5b12f6(0x1c1);export function getEnv(){return env;}export function initEnv(_0xb2f466){env=_0xb2f466;}
1
+ function a40_0x4341(_0x4017af,_0x30292f){_0x4017af=_0x4017af-0x1b5;const _0x2c2ae0=a40_0x2c2a();let _0x4341f0=_0x2c2ae0[_0x4017af];return _0x4341f0;}function a40_0x2c2a(){const _0x3d0e4a=['486351bixupB','100Lzdtgj','17924kdnfgy','1504041qDAqfC','21153324TOolVC','LOVRABET_ENV','104dIXeYo','online','336wsGaSy','113309oaIlDR','85uwPEPl','10280jSVEWF','3746150aJzUbX','78VJqOne','env'];a40_0x2c2a=function(){return _0x3d0e4a;};return a40_0x2c2a();}const a40_0x1e5b7d=a40_0x4341;(function(_0x3cf77c,_0x538c3f){const _0x1ba2df=a40_0x4341,_0x4752aa=_0x3cf77c();while(!![]){try{const _0x28a342=-parseInt(_0x1ba2df(0x1bd))/0x1*(parseInt(_0x1ba2df(0x1b5))/0x2)+parseInt(_0x1ba2df(0x1bb))/0x3*(parseInt(_0x1ba2df(0x1be))/0x4)+-parseInt(_0x1ba2df(0x1bf))/0x5+parseInt(_0x1ba2df(0x1c0))/0x6*(-parseInt(_0x1ba2df(0x1bc))/0x7)+parseInt(_0x1ba2df(0x1b9))/0x8*(-parseInt(_0x1ba2df(0x1c2))/0x9)+parseInt(_0x1ba2df(0x1c3))/0xa*(parseInt(_0x1ba2df(0x1b6))/0xb)+parseInt(_0x1ba2df(0x1b7))/0xc;if(_0x28a342===_0x538c3f)break;else _0x4752aa['push'](_0x4752aa['shift']());}catch(_0x10a9f0){_0x4752aa['push'](_0x4752aa['shift']());}}}(a40_0x2c2a,0xf2ac5));let env=process[a40_0x1e5b7d(0x1c1)][a40_0x1e5b7d(0x1b8)]||a40_0x1e5b7d(0x1ba);export function getEnv(){return env;}export function initEnv(_0x37647b){env=_0x37647b;}
@@ -1 +1 @@
1
- const a41_0x970f9c=a41_0x5792;(function(_0x54cb09,_0x5bfa0a){const _0x2c0c58=a41_0x5792,_0x4fa642=_0x54cb09();while(!![]){try{const _0x156063=parseInt(_0x2c0c58(0x1f7))/0x1*(parseInt(_0x2c0c58(0x1e1))/0x2)+parseInt(_0x2c0c58(0x22d))/0x3*(parseInt(_0x2c0c58(0x205))/0x4)+-parseInt(_0x2c0c58(0x1c6))/0x5*(-parseInt(_0x2c0c58(0x1da))/0x6)+-parseInt(_0x2c0c58(0x21f))/0x7*(-parseInt(_0x2c0c58(0x21a))/0x8)+-parseInt(_0x2c0c58(0x1d9))/0x9+-parseInt(_0x2c0c58(0x1ed))/0xa+-parseInt(_0x2c0c58(0x1e9))/0xb;if(_0x156063===_0x5bfa0a)break;else _0x4fa642['push'](_0x4fa642['shift']());}catch(_0x1c9068){_0x4fa642['push'](_0x4fa642['shift']());}}}(a41_0x2f7a,0x5f1dc));function a41_0x5792(_0x1c8e33,_0x4af5dd){_0x1c8e33=_0x1c8e33-0x1c0;const _0x2f7a38=a41_0x2f7a();let _0x5792ef=_0x2f7a38[_0x1c8e33];return _0x5792ef;}import{jsx as a41_0x51266c,jsxs as a41_0x26a188,Fragment as a41_0x10654c}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';import a41_0x52aa9d from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';const IDE_CONFIGS={'cursor':{'name':'Cursor','description':a41_0x970f9c(0x226)},'windsurf':{'name':a41_0x970f9c(0x1cf),'description':a41_0x970f9c(0x1f2)},'claude':{'name':a41_0x970f9c(0x223),'description':a41_0x970f9c(0x212)},'codex':{'name':a41_0x970f9c(0x1e7),'description':a41_0x970f9c(0x227)},'opencode':{'name':a41_0x970f9c(0x1ef),'description':a41_0x970f9c(0x1c4)},'qoder':{'name':a41_0x970f9c(0x210),'description':a41_0x970f9c(0x1cd)},'codebuddy':{'name':a41_0x970f9c(0x1c9),'description':'CodeBuddy\x20IDE\x20(.codebuddy/skills/)'},'trae':{'name':'Trae','description':a41_0x970f9c(0x1ea)},'antigravity':{'name':a41_0x970f9c(0x207),'description':a41_0x970f9c(0x1d3)},'agent':{'name':a41_0x970f9c(0x1ca),'description':a41_0x970f9c(0x21c)}},IDE_LIST=[a41_0x970f9c(0x1ee),a41_0x970f9c(0x225),a41_0x970f9c(0x1e0),a41_0x970f9c(0x1dc),a41_0x970f9c(0x1e4),'opencode',a41_0x970f9c(0x200),a41_0x970f9c(0x1d6),a41_0x970f9c(0x1f3),'agent'],MCP_IDES=new Set([a41_0x970f9c(0x1e4),a41_0x970f9c(0x225)]);export function EnhancedGuidedCreate(_0x76120d){const _0x66eae1=a41_0x970f9c,{onCreate:_0x3f3a01,env:_0x1023a0}=_0x76120d,[_0x29605b,_0x158a70]=useState('project-name'),[_0x55cefb,_0x45b75c]=useState(''),[_0x586bd5,_0x4a525b]=useState(''),[_0x97e78e,_0x1878ad]=useState(''),[_0x46f705,_0x55a882]=useState(''),[_0x4f818e,_0x12edd7]=useState([]),[_0x3180b5,_0x25a628]=useState(null),[_0x4383a1,_0x3b276f]=useState(![]),[_0x2a700e,_0x537e40]=useState(![]),[_0x412590,_0x2c4aca]=useState(![]),[_0x2fc428,_0x3b5df9]=useState(0x0),[_0x1c7dba,_0x15b0e4]=useState(0x0),[_0x3f063f,_0x2c24e5]=useState(0x0),[_0x587465,_0x2f55e0]=useState(![]),[_0x5488c7,_0x211827]=useState(new Set()),[_0x2f22cf,_0x21853b]=useState(0x0),[_0x4932c7,_0x408476]=useState(''),_0x33b476=_0x66eae1(0x1fd),_0x35dfe0=readConfig(),_0x37e43b=typeof _0x35dfe0[_0x66eae1(0x1fa)]==='string'?_0x35dfe0['env']:undefined;function _0x568609(_0x3e8845){const _0x5f5bce=_0x66eae1,_0x190dc0=_0x3e8845||_0x33b476,_0x4d7a40=a41_0x52aa9d['resolve'](process[_0x5f5bce(0x211)](),_0x190dc0);return existsSync(_0x4d7a40);}function _0x5c90da(_0x467eec){const _0x21b039=_0x66eae1;if(_0x467eec['length']>0x32)return{'valid':![],'message':_0x21b039(0x1ec)};const _0x4bf581=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x467eec?.[_0x21b039(0x1c7)]()&&!_0x4bf581[_0x21b039(0x219)](_0x467eec))return{'valid':![],'message':_0x21b039(0x213)};return{'valid':!![]};}function _0x2f07cc(_0x282861){const _0x1cdc52=_0x66eae1;if(!_0x282861[_0x1cdc52(0x1c7)]())return{'valid':!![]};if(_0x282861[_0x1cdc52(0x21e)]>0x64)return{'valid':![],'message':'应用AppCode长度不能超过\x20100\x20个字符'};const _0x283324=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x283324['test'](_0x282861))return{'valid':![],'message':_0x1cdc52(0x203)};return{'valid':!![]};}async function _0x3ec4ea(){_0x3b276f(!![]);try{const _0x3a0cc6=await getIsSessionValid();return _0x25a628(_0x3a0cc6),_0x3a0cc6;}catch(_0x386da0){return _0x25a628(![]),![];}finally{_0x3b276f(![]);}}async function _0x2dd2e1(){_0x537e40(!![]);try{const _0x412c99=await authServer({'silent':!![]});return _0x25a628(_0x412c99),_0x412c99;}catch(_0x56f7a9){return _0x25a628(![]),![];}finally{_0x537e40(![]);}}return useInput(async(_0x9d3fe9,_0x2f7022)=>{const _0x267330=_0x66eae1;if(_0x2f7022[_0x267330(0x1cb)]||_0x2f7022[_0x267330(0x221)]){if(_0x29605b===_0x267330(0x20c)){_0x3b5df9(_0x41663b=>_0x41663b===0x0?0x1:0x0);return;}if(_0x29605b==='lovrabet-setup-selection'){if(!_0x587465){_0x2c24e5(_0x2ae8f1=>_0x2ae8f1===0x0?0x1:0x0);return;}_0x2f55e0(![]);return;}if(_0x29605b===_0x267330(0x21d)){_0x15b0e4(_0x2fe77c=>_0x2fe77c===0x0?0x1:0x0);return;}}if(_0x29605b===_0x267330(0x22b)&&_0x587465&&_0x3f063f===0x0){if(_0x2f7022['upArrow']){_0x21853b(_0x154f57=>_0x154f57>0x0?_0x154f57-0x1:IDE_LIST[_0x267330(0x21e)]-0x1);return;}if(_0x2f7022[_0x267330(0x229)]){_0x21853b(_0x50f8c1=>_0x50f8c1<IDE_LIST[_0x267330(0x21e)]-0x1?_0x50f8c1+0x1:0x0);return;}}if(_0x9d3fe9==='\x20'&&_0x29605b===_0x267330(0x22b)&&_0x587465&&_0x3f063f===0x0){_0x211827(_0x5187d4=>{const _0x1e7ff3=_0x267330,_0x4c5625=new Set(_0x5187d4);return _0x4c5625[_0x1e7ff3(0x1f5)](_0x2f22cf)?_0x4c5625[_0x1e7ff3(0x1de)](_0x2f22cf):_0x4c5625[_0x1e7ff3(0x1c5)](_0x2f22cf),_0x4c5625;}),_0x55a882('');return;}if((_0x9d3fe9==='a'||_0x9d3fe9==='A')&&_0x29605b===_0x267330(0x22b)&&_0x587465&&_0x3f063f===0x0){_0x211827(new Set(IDE_LIST[_0x267330(0x1e8)]((_0x1478ec,_0x4da160)=>_0x4da160))),_0x55a882('');return;}if((_0x9d3fe9==='i'||_0x9d3fe9==='I'||_0x9d3fe9==='r'||_0x9d3fe9==='R')&&_0x29605b==='lovrabet-setup-selection'&&_0x587465&&_0x3f063f===0x0){_0x211827(_0x475a98=>{const _0x5809e4=_0x267330,_0x253ff1=new Set();for(let _0x63a820=0x0;_0x63a820<IDE_LIST[_0x5809e4(0x21e)];_0x63a820++){!_0x475a98['has'](_0x63a820)&&_0x253ff1[_0x5809e4(0x1c5)](_0x63a820);}return _0x253ff1;});return;}if(_0x2f7022[_0x267330(0x1fc)]){if(_0x29605b===_0x267330(0x202)){const _0x28ebf0=_0x97e78e[_0x267330(0x1c7)]()||_0x33b476;if(_0x46f705)return;if(_0x568609(_0x28ebf0)){_0x408476(_0x267330(0x1c3)+_0x28ebf0+'\x22\x20已存在,请使用其他名称');return;}_0x45b75c(_0x28ebf0),_0x12edd7([{'step':_0x267330(0x202),'label':_0x267330(0x20d),'value':_0x28ebf0}]),_0x1878ad(''),_0x55a882(''),_0x408476(''),_0x158a70(_0x267330(0x1d7));return;}if(_0x29605b==='app-code'){if(_0x46f705)return;const _0x1f59c2=_0x97e78e[_0x267330(0x1c7)]();_0x4a525b(_0x1f59c2),_0x12edd7(_0x343ce9=>[..._0x343ce9,{'step':'app-code','label':_0x267330(0x20f),'value':_0x1f59c2||'未设置'}]),_0x1878ad(''),_0x55a882('');if(_0x1f59c2){_0x158a70(_0x267330(0x1d8));const _0x31a6a1=await _0x3ec4ea();_0x31a6a1?_0x158a70(_0x267330(0x20c)):_0x158a70(_0x267330(0x21d));}else{const _0x5a4cea=_0x1023a0||_0x37e43b||_0x267330(0x1c1);_0x3f3a01({'projectName':_0x55cefb,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x5a4cea}),_0x158a70('creating');}return;}if(_0x29605b==='confirm-api-pull'){const _0x19fec9=_0x2fc428===0x0;_0x2c4aca(_0x19fec9),_0x12edd7(_0x277bf1=>[..._0x277bf1,{'step':_0x267330(0x1d4),'label':_0x267330(0x1f9),'value':_0x19fec9?'是':'否'}]),_0x158a70('lovrabet-setup-selection');return;}if(_0x29605b==='lovrabet-setup-selection'){if(!_0x587465){_0x2f55e0(!![]);if(_0x3f063f===0x1){_0x12edd7(_0x2cc008=>[..._0x2cc008,{'step':_0x267330(0x218),'label':_0x267330(0x20b),'value':'否'}]);const _0x1c6b10=_0x1023a0||_0x37e43b||_0x267330(0x1c1);_0x3f3a01({'projectName':_0x55cefb,'appCode':_0x586bd5,'pullApi':_0x412590,'aiSetup':![],'selectedIDEs':[],'env':_0x1c6b10}),_0x158a70(_0x267330(0x201));}return;}const _0x4009db=_0x3f063f===0x0;if(_0x4009db){if(_0x5488c7['size']===0x0){_0x55a882(_0x267330(0x1cc));return;}const _0x364a64=Array['from'](_0x5488c7)[_0x267330(0x1e8)](_0x57b423=>IDE_LIST[_0x57b423])['filter'](_0x4470d4=>_0x4470d4!==undefined);_0x12edd7(_0x4ecef1=>[..._0x4ecef1,{'step':_0x267330(0x218),'label':_0x267330(0x20b),'value':_0x364a64['length']+_0x267330(0x1d0)}]);const _0x2f0198=_0x1023a0||_0x37e43b||_0x267330(0x1c1);_0x3f3a01({'projectName':_0x55cefb,'appCode':_0x586bd5,'pullApi':_0x412590,'aiSetup':!![],'selectedIDEs':_0x364a64,'env':_0x2f0198}),_0x158a70(_0x267330(0x201));}else{_0x12edd7(_0x4cd398=>[..._0x4cd398,{'step':'lovrabet-setup','label':_0x267330(0x20b),'value':'否'}]);const _0x1302dd=_0x1023a0||_0x37e43b||_0x267330(0x1c1);_0x3f3a01({'projectName':_0x55cefb,'appCode':_0x586bd5,'pullApi':_0x412590,'aiSetup':![],'selectedIDEs':[],'env':_0x1302dd}),_0x158a70(_0x267330(0x201));}return;}if(_0x29605b===_0x267330(0x21d)){const _0x2e8051=_0x1c7dba===0x0;if(_0x2e8051){_0x158a70('login-process');const _0x4d5985=await _0x2dd2e1();_0x4d5985?(_0x12edd7(_0x2ea2b3=>[..._0x2ea2b3,{'step':_0x267330(0x1c8),'label':_0x267330(0x214),'value':_0x267330(0x1d2)}]),_0x158a70(_0x267330(0x20c))):(_0x12edd7(_0x9facdf=>[..._0x9facdf,{'step':_0x267330(0x1c8),'label':_0x267330(0x214),'value':'登录失败'}]),_0x158a70('lovrabet-setup-selection'));}else _0x12edd7(_0x29c2ff=>[..._0x29c2ff,{'step':_0x267330(0x1c8),'label':_0x267330(0x214),'value':_0x267330(0x1c2)}]),_0x158a70(_0x267330(0x22b));return;}}if(_0x2f7022[_0x267330(0x217)]||_0x2f7022['delete']){_0x1878ad(_0x5be15d=>{const _0x2288a1=_0x267330,_0x5bd2fb=_0x5be15d['slice'](0x0,-0x1);if(_0x29605b==='project-name'){const {valid:_0xfd5a40,message:_0x15d0e9}=_0x5c90da(_0x5bd2fb);_0x55a882(_0xfd5a40?'':_0x15d0e9||_0x2288a1(0x22e));if(_0xfd5a40&&!_0x46f705){const _0x2555ac=_0x5bd2fb||_0x33b476;_0x568609(_0x2555ac)?_0x408476(_0x2288a1(0x1c3)+_0x2555ac+_0x2288a1(0x1df)):_0x408476('');}}else{if(_0x29605b===_0x2288a1(0x1d7)){const {valid:_0x27e0b5,message:_0xbc13d2}=_0x2f07cc(_0x5bd2fb);_0x55a882(_0x27e0b5?'':_0xbc13d2||_0x2288a1(0x1f8));}}return _0x5bd2fb;});return;}if([_0x267330(0x201),_0x267330(0x1d8),'login-process']['includes'](_0x29605b))return;if(_0x29605b===_0x267330(0x20c)||_0x29605b===_0x267330(0x21d)||_0x29605b==='lovrabet-setup-selection')return;_0x1878ad(_0x1038c2=>{const _0x403392=_0x267330,_0x182aa3=_0x1038c2+_0x9d3fe9;if(_0x29605b===_0x403392(0x202)){const {valid:_0x245c5d,message:_0x2099c2}=_0x5c90da(_0x182aa3);_0x55a882(_0x245c5d?'':_0x2099c2||_0x403392(0x22e));if(_0x245c5d&&!_0x46f705){const _0xb68bb0=_0x182aa3||_0x33b476;_0x568609(_0xb68bb0)?_0x408476(_0x403392(0x1c3)+_0xb68bb0+_0x403392(0x1df)):_0x408476('');}}else{if(_0x29605b===_0x403392(0x1d7)){const {valid:_0x190ca5,message:_0x18c402}=_0x2f07cc(_0x182aa3);_0x55a882(_0x190ca5?'':_0x18c402||'应用AppCode不合法');}}return _0x182aa3;});}),a41_0x26a188(Box,{'flexDirection':_0x66eae1(0x222),'marginTop':0x1,'children':[_0x4f818e['length']===0x0&&a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1eb),'children':_0x66eae1(0x1d1)})}),_0x4f818e[_0x66eae1(0x1e8)](_0x34cfe2=>a41_0x26a188(Box,{'children':[a41_0x26a188(Text,{'color':'green','children':['√\x20',_0x34cfe2[_0x66eae1(0x21b)],':\x20']}),a41_0x51266c(Text,{'color':_0x66eae1(0x1eb),'children':_0x34cfe2['value']})]},_0x34cfe2['step'])),_0x29605b==='project-name'&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x26a188(Box,{'children':[a41_0x51266c(Text,{'children':_0x66eae1(0x1e6)}),_0x97e78e?a41_0x51266c(Text,{'color':_0x66eae1(0x206),'children':_0x97e78e}):a41_0x51266c(Text,{'color':'gray','children':_0x33b476}),_0x46f705&&a41_0x26a188(Text,{'color':_0x66eae1(0x204),'children':[_0x66eae1(0x1f1),_0x46f705]}),_0x4932c7&&a41_0x26a188(Text,{'color':_0x66eae1(0x204),'children':[_0x66eae1(0x1f1),_0x4932c7]})]}),!_0x46f705&&!_0x4932c7&&!_0x97e78e&&a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':_0x66eae1(0x1e3)})})]}),_0x29605b==='app-code'&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x26a188(Box,{'children':[a41_0x51266c(Text,{'children':_0x66eae1(0x20a)}),a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':_0x66eae1(0x22a)}),a41_0x51266c(Text,{'color':_0x66eae1(0x206),'children':_0x97e78e}),_0x46f705&&a41_0x26a188(Text,{'color':'red','children':[_0x66eae1(0x1f1),_0x46f705]})]}),!_0x46f705&&a41_0x51266c(Box,{'children':a41_0x26a188(Text,{'color':'gray','children':['\x20',_0x66eae1(0x224)]})})]}),_0x29605b==='login-check'&&a41_0x26a188(Box,{'children':[a41_0x51266c(Text,{'children':_0x66eae1(0x1fe)}),_0x4383a1&&a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':_0x66eae1(0x1e2)})]}),_0x29605b==='confirm-api-pull'&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':'green','children':_0x66eae1(0x1fb)})}),a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x51266c(Text,{'children':'*\x20是否要自动拉取\x20API\x20配置?'})}),a41_0x26a188(Box,{'marginLeft':0x2,'children':[a41_0x26a188(Text,{'color':_0x2fc428===0x0?_0x66eae1(0x206):_0x66eae1(0x1db),'children':[_0x2fc428===0x0?'▶\x20':'\x20\x20',_0x66eae1(0x1dd)]}),a41_0x51266c(Text,{'children':'\x20'}),a41_0x26a188(Text,{'color':_0x2fc428===0x1?_0x66eae1(0x206):'gray','children':[_0x2fc428===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':_0x66eae1(0x208)})}),a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':'yellow','children':_0x66eae1(0x1f0)})})]}),_0x29605b===_0x66eae1(0x22b)&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x206),'children':'√'})}),a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x51266c(Text,{'children':_0x66eae1(0x209)})}),a41_0x26a188(Box,{'marginLeft':0x2,'children':[a41_0x26a188(Text,{'color':_0x3f063f===0x0?'green':_0x66eae1(0x1db),'children':[_0x3f063f===0x0?'▶\x20':'\x20\x20','Yes']}),a41_0x51266c(Text,{'children':'\x20'}),a41_0x26a188(Text,{'color':_0x3f063f===0x1?_0x66eae1(0x206):_0x66eae1(0x1db),'children':[_0x3f063f===0x1?'▶\x20':'\x20\x20','No']})]}),_0x587465&&_0x3f063f===0x0&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':_0x66eae1(0x215)})}),a41_0x26a188(Box,{'marginTop':0x1,'flexDirection':_0x66eae1(0x222),'children':[a41_0x51266c(Text,{'bold':!![],'color':'yellow','children':_0x66eae1(0x1ff)}),IDE_LIST[_0x66eae1(0x1e8)]((_0x40910f,_0x252584)=>{const _0x4c6d18=_0x66eae1,_0x35640f=_0x2f22cf===_0x252584,_0x2d95f7=_0x5488c7[_0x4c6d18(0x1f5)](_0x252584),_0x505468=MCP_IDES['has'](_0x40910f);return a41_0x51266c(Box,{'children':a41_0x26a188(Text,{'backgroundColor':_0x35640f?'blue':undefined,'color':_0x35640f?'white':undefined,'children':['\x20\x20',_0x2d95f7?'[✓]':_0x4c6d18(0x1f6),'\x20',IDE_CONFIGS[_0x40910f][_0x4c6d18(0x22c)],_0x505468&&a41_0x51266c(Text,{'color':_0x35640f?_0x4c6d18(0x1e5):_0x4c6d18(0x1eb),'children':_0x4c6d18(0x1c0)}),'\x20',a41_0x26a188(Text,{'color':_0x35640f?'white':_0x4c6d18(0x1db),'dimColor':!_0x35640f,'children':['-\x20',IDE_CONFIGS[_0x40910f][_0x4c6d18(0x228)]]})]})},_0x40910f);}),a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x26a188(Text,{'color':'gray','children':['\x20',_0x66eae1(0x1f4)]})})]})]}),!_0x587465&&a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':'\x20\x20使用\x20←→\x20选择,回车确认'})}),_0x46f705&&a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x26a188(Text,{'color':_0x66eae1(0x204),'children':['✗\x20',_0x46f705]})})]}),_0x29605b===_0x66eae1(0x21d)&&a41_0x26a188(a41_0x10654c,{'children':[a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1d5),'children':'!\x20未检测到有效登录'})}),a41_0x51266c(Box,{'marginTop':0x1,'children':a41_0x51266c(Text,{'children':_0x66eae1(0x20e)})}),a41_0x26a188(Box,{'marginLeft':0x2,'children':[a41_0x26a188(Text,{'color':_0x1c7dba===0x0?_0x66eae1(0x206):_0x66eae1(0x1db),'children':[_0x1c7dba===0x0?'▶\x20':'\x20\x20','Yes']}),a41_0x51266c(Text,{'children':'\x20'}),a41_0x26a188(Text,{'color':_0x1c7dba===0x1?_0x66eae1(0x206):_0x66eae1(0x1db),'children':[_0x1c7dba===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':'\x20\x20使用\x20←→\x20选择,回车确认'})})]}),_0x29605b===_0x66eae1(0x1ce)&&a41_0x26a188(Box,{'children':[a41_0x51266c(Text,{'children':_0x66eae1(0x216)}),_0x2a700e&&a41_0x51266c(Text,{'color':_0x66eae1(0x1db),'children':'\x20登录中...'})]}),_0x29605b==='creating'&&a41_0x51266c(Box,{'children':a41_0x51266c(Text,{'color':'green','children':_0x66eae1(0x220)})})]});}function a41_0x2f7a(){const _0x2dc9f0=['2QFKaeL','\x20检查中...','\x20直接回车确认,或输入自定义名称','cursor','white','*\x20项目名:\x20','Codex','map','9267104ASPair','Trae\x20IDE\x20(.trae/skills/)','cyan','项目名长度不能超过\x2050\x20个字符','4531060ioVEwI','antigravity','OpenCode','\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口','\x20←\x20','Windsurf\x20IDE\x20(.windsurf/workflows/)','windsurf','↑/↓:\x20移动\x20空格:\x20切换\x20a:\x20全选\x20i/r:\x20反选\x20Enter:\x20确认','has','[\x20]','274076tfvuDn','应用AppCode不合法','拉取API配置','env','√\x20检测到有效登录状态','return','my-app','*\x20正在检查登录状态...','选择要配置的\x20IDE:','qoder','creating','project-name','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','red','4BJdfpP','green','Antigravity','\x20\x20使用\x20←→\x20选择,回车确认','*\x20是否配置\x20Lovrabet\x20MCP\x20和\x20Skill?','*\x20应用AppCode\x20','MCP\x20和\x20Skill','confirm-api-pull','项目名','*\x20是否要先登录以便拉取\x20API\x20配置?','应用AppCode','Qoder','cwd','Claude\x20Code\x20(.claude/skills/\x20+\x20MCP\x20服务器)','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','登录状态','\x20\x20使用\x20←→\x20返回修改选择,回车确认\x20IDE','*\x20正在登录,请前往浏览器完成登录...','backspace','lovrabet-setup','test','8XamQgv','label','通用模板\x20(.agent/skills/)\x20-\x20兜底方案','login-prompt','length','3939873vRBxGb','*\x20正在创建项目...','rightArrow','column','Claude\x20Code','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)','claude','Cursor\x20IDE\x20(.cursorrules\x20+\x20MCP\x20服务器)','Codex\x20IDE\x20(.codex/skills/)','description','downArrow','[可选]:\x20','lovrabet-setup-selection','name','1014459isCqmZ','项目名不合法','\x20+MCP','online','跳过登录','目录\x20\x22','OpenCode\x20IDE\x20(.opencode/skills/)','add','15cEjtHZ','trim','login','CodeBuddy','其他\x20(通用模板)','leftArrow','请至少选择一个\x20IDE','Qoder\x20IDE\x20(.qoder/rules/\x20+\x20.qoder/skills/)','login-process','Windsurf','\x20个\x20IDE','*\x20创建新项目','已登录','Antigravity\x20IDE\x20(.agent/skills/)','api-pull','yellow','trae','app-code','login-check','1461006QJtqnP','1344864aznwjj','gray','codex','Yes','delete','\x22\x20已存在','codebuddy'];a41_0x2f7a=function(){return _0x2dc9f0;};return a41_0x2f7a();}
1
+ const a41_0xa8c679=a41_0xcc9f;(function(_0x31a6ae,_0x94f980){const _0x241567=a41_0xcc9f,_0x1743a2=_0x31a6ae();while(!![]){try{const _0x2ce7d4=parseInt(_0x241567(0x105))/0x1+parseInt(_0x241567(0x10c))/0x2+-parseInt(_0x241567(0x12b))/0x3+-parseInt(_0x241567(0x110))/0x4*(-parseInt(_0x241567(0x155))/0x5)+parseInt(_0x241567(0x128))/0x6+parseInt(_0x241567(0x13c))/0x7+-parseInt(_0x241567(0x150))/0x8*(parseInt(_0x241567(0x118))/0x9);if(_0x2ce7d4===_0x94f980)break;else _0x1743a2['push'](_0x1743a2['shift']());}catch(_0x1cd942){_0x1743a2['push'](_0x1743a2['shift']());}}}(a41_0x27aa,0x6317a));function a41_0x27aa(){const _0x34f951=['online','lovrabet-setup-selection','Claude\x20Code','delete','Cursor\x20IDE\x20(.cursorrules\x20+\x20MCP\x20服务器)','Trae\x20IDE\x20(.trae/skills/)','length','map','412909TuomaX','my-app','gray','Antigravity\x20IDE\x20(.agent/skills/)','*\x20正在创建项目...','codex','qoder','\x20检查中...','\x20←\x20','green','Windsurf\x20IDE\x20(.windsurf/workflows/)','应用AppCode不合法','Yes','backspace','Codex','Trae','value','filter','size','\x20\x20使用\x20←→\x20选择,回车确认','450744BDXIYN','*\x20创建新项目','trim','登录失败','\x22\x20已存在,请使用其他名称','25KnmZft','\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口','slice','MCP\x20和\x20Skill','blue','应用AppCode','↑/↓:\x20移动\x20空格:\x20切换\x20a:\x20全选\x20i/r:\x20反选\x20Enter:\x20确认','*\x20项目名:\x20','\x20个\x20IDE','leftArrow','login-prompt','codebuddy','api-pull','add','app-code','description','white','cwd','选择要配置的\x20IDE:','return','yellow','cursor','√\x20检测到有效登录状态','*\x20是否配置\x20Lovrabet\x20MCP\x20和\x20Skill?','Qoder','creating','red','name','112673MxQpwD','\x20\x20使用\x20←→\x20返回修改选择,回车确认\x20IDE','login-process','\x22\x20已存在','opencode','label','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','380952HzAKPD','resolve','登录状态','通用模板\x20(.agent/skills/)\x20-\x20兜底方案','85604ldhrvQ','has','windsurf','step','Codex\x20IDE\x20(.codex/skills/)','Qoder\x20IDE\x20(.qoder/rules/\x20+\x20.qoder/skills/)','项目名不合法','project-name','45uytToc','string','\x20直接回车确认,或输入自定义名称','column','trae','*\x20正在登录,请前往浏览器完成登录...','已登录','其他\x20(通用模板)','env','agent','CodeBuddy','login-check','from','confirm-api-pull','*\x20正在检查登录状态...','跳过登录','2729178YiEHRk','cyan','[可选]:\x20','709221Ncyhvn','目录\x20\x22','[✓]','项目名长度不能超过\x2050\x20个字符','Windsurf','claude','项目名','请至少选择一个\x20IDE','test'];a41_0x27aa=function(){return _0x34f951;};return a41_0x27aa();}import{jsx as a41_0x24ebf0,jsxs as a41_0x195452,Fragment as a41_0x2db166}from'react/jsx-runtime';import{useState}from'react';function a41_0xcc9f(_0x34c92e,_0x39d1c7){_0x34c92e=_0x34c92e-0x105;const _0x27aa37=a41_0x27aa();let _0xcc9f6f=_0x27aa37[_0x34c92e];return _0xcc9f6f;}import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';import a41_0x1954c4 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';const IDE_CONFIGS={'cursor':{'name':'Cursor','description':a41_0xa8c679(0x138)},'windsurf':{'name':a41_0xa8c679(0x12f),'description':a41_0xa8c679(0x146)},'claude':{'name':a41_0xa8c679(0x136),'description':'Claude\x20Code\x20(.claude/skills/\x20+\x20MCP\x20服务器)'},'codex':{'name':a41_0xa8c679(0x14a),'description':a41_0xa8c679(0x114)},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE\x20(.opencode/skills/)'},'qoder':{'name':a41_0xa8c679(0x16d),'description':a41_0xa8c679(0x115)},'codebuddy':{'name':a41_0xa8c679(0x122),'description':'CodeBuddy\x20IDE\x20(.codebuddy/skills/)'},'trae':{'name':a41_0xa8c679(0x14b),'description':a41_0xa8c679(0x139)},'antigravity':{'name':'Antigravity','description':a41_0xa8c679(0x13f)},'agent':{'name':a41_0xa8c679(0x11f),'description':a41_0xa8c679(0x10f)}},IDE_LIST=['antigravity',a41_0xa8c679(0x130),a41_0xa8c679(0x160),a41_0xa8c679(0x141),a41_0xa8c679(0x16a),a41_0xa8c679(0x109),a41_0xa8c679(0x142),a41_0xa8c679(0x11c),a41_0xa8c679(0x112),a41_0xa8c679(0x121)],MCP_IDES=new Set([a41_0xa8c679(0x16a),a41_0xa8c679(0x130)]);export function EnhancedGuidedCreate(_0x595a3f){const _0x46f232=a41_0xa8c679,{onCreate:_0x37dab6,env:_0x3a2af2}=_0x595a3f,[_0x5bf782,_0x57b24f]=useState(_0x46f232(0x117)),[_0x3fa191,_0x4adf95]=useState(''),[_0x343409,_0x20a7f2]=useState(''),[_0x7dff1f,_0x211004]=useState(''),[_0x29c0f8,_0xfef970]=useState(''),[_0x40b7a2,_0x4a6c26]=useState([]),[_0x3c34ee,_0x57e399]=useState(null),[_0x2db634,_0x19829d]=useState(![]),[_0x1d4ddd,_0x1a216b]=useState(![]),[_0x2dca3b,_0x5f4844]=useState(![]),[_0x381573,_0x25b248]=useState(0x0),[_0x4ba898,_0x5277c7]=useState(0x0),[_0x2e3607,_0x2659ec]=useState(0x0),[_0x531620,_0x398667]=useState(![]),[_0xbd595e,_0x3c2c1f]=useState(new Set()),[_0x1bcaa5,_0x209a3f]=useState(0x0),[_0x2c7fef,_0x5a5787]=useState(''),_0x1fa5f2=_0x46f232(0x13d),_0x5cf80e=readConfig(),_0xbf0ae9=typeof _0x5cf80e[_0x46f232(0x120)]===_0x46f232(0x119)?_0x5cf80e['env']:undefined;function _0x1f1293(_0x2db7ba){const _0x361f84=_0x46f232,_0x4f6a6b=_0x2db7ba||_0x1fa5f2,_0x1ef293=a41_0x1954c4[_0x361f84(0x10d)](process[_0x361f84(0x166)](),_0x4f6a6b);return existsSync(_0x1ef293);}function _0x32d4b8(_0x481899){const _0x3f0b2a=_0x46f232;if(_0x481899['length']>0x32)return{'valid':![],'message':_0x3f0b2a(0x12e)};const _0x424f99=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x481899?.[_0x3f0b2a(0x152)]()&&!_0x424f99['test'](_0x481899))return{'valid':![],'message':_0x3f0b2a(0x10b)};return{'valid':!![]};}function _0x41b478(_0x586ac4){const _0x2ebf5a=_0x46f232;if(!_0x586ac4[_0x2ebf5a(0x152)]())return{'valid':!![]};if(_0x586ac4['length']>0x64)return{'valid':![],'message':'应用AppCode长度不能超过\x20100\x20个字符'};const _0x183bdc=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x183bdc[_0x2ebf5a(0x133)](_0x586ac4))return{'valid':![],'message':'应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头'};return{'valid':!![]};}async function _0x1cde0f(){_0x19829d(!![]);try{const _0x303f8e=await getIsSessionValid();return _0x57e399(_0x303f8e),_0x303f8e;}catch(_0x141f4c){return _0x57e399(![]),![];}finally{_0x19829d(![]);}}async function _0x18e8ae(){_0x1a216b(!![]);try{const _0x49368f=await authServer({'silent':!![]});return _0x57e399(_0x49368f),_0x49368f;}catch(_0x1fc047){return _0x57e399(![]),![];}finally{_0x1a216b(![]);}}return useInput(async(_0xcdefc2,_0x2dd20b)=>{const _0x12bf80=_0x46f232;if(_0x2dd20b[_0x12bf80(0x15e)]||_0x2dd20b['rightArrow']){if(_0x5bf782===_0x12bf80(0x125)){_0x25b248(_0x3ee7fd=>_0x3ee7fd===0x0?0x1:0x0);return;}if(_0x5bf782==='lovrabet-setup-selection'){if(!_0x531620){_0x2659ec(_0x113f90=>_0x113f90===0x0?0x1:0x0);return;}_0x398667(![]);return;}if(_0x5bf782===_0x12bf80(0x15f)){_0x5277c7(_0x162984=>_0x162984===0x0?0x1:0x0);return;}}if(_0x5bf782===_0x12bf80(0x135)&&_0x531620&&_0x2e3607===0x0){if(_0x2dd20b['upArrow']){_0x209a3f(_0x1ab294=>_0x1ab294>0x0?_0x1ab294-0x1:IDE_LIST[_0x12bf80(0x13a)]-0x1);return;}if(_0x2dd20b['downArrow']){_0x209a3f(_0x338967=>_0x338967<IDE_LIST['length']-0x1?_0x338967+0x1:0x0);return;}}if(_0xcdefc2==='\x20'&&_0x5bf782===_0x12bf80(0x135)&&_0x531620&&_0x2e3607===0x0){_0x3c2c1f(_0x15a1e3=>{const _0x1c635f=_0x12bf80,_0x482bc5=new Set(_0x15a1e3);return _0x482bc5[_0x1c635f(0x111)](_0x1bcaa5)?_0x482bc5[_0x1c635f(0x137)](_0x1bcaa5):_0x482bc5[_0x1c635f(0x162)](_0x1bcaa5),_0x482bc5;}),_0xfef970('');return;}if((_0xcdefc2==='a'||_0xcdefc2==='A')&&_0x5bf782===_0x12bf80(0x135)&&_0x531620&&_0x2e3607===0x0){_0x3c2c1f(new Set(IDE_LIST[_0x12bf80(0x13b)]((_0x585512,_0x29bc53)=>_0x29bc53))),_0xfef970('');return;}if((_0xcdefc2==='i'||_0xcdefc2==='I'||_0xcdefc2==='r'||_0xcdefc2==='R')&&_0x5bf782==='lovrabet-setup-selection'&&_0x531620&&_0x2e3607===0x0){_0x3c2c1f(_0x206aeb=>{const _0x58be2e=_0x12bf80,_0xe7682c=new Set();for(let _0x43e920=0x0;_0x43e920<IDE_LIST[_0x58be2e(0x13a)];_0x43e920++){!_0x206aeb[_0x58be2e(0x111)](_0x43e920)&&_0xe7682c[_0x58be2e(0x162)](_0x43e920);}return _0xe7682c;});return;}if(_0x2dd20b[_0x12bf80(0x168)]){if(_0x5bf782===_0x12bf80(0x117)){const _0x2a1161=_0x7dff1f[_0x12bf80(0x152)]()||_0x1fa5f2;if(_0x29c0f8)return;if(_0x1f1293(_0x2a1161)){_0x5a5787(_0x12bf80(0x12c)+_0x2a1161+_0x12bf80(0x154));return;}_0x4adf95(_0x2a1161),_0x4a6c26([{'step':_0x12bf80(0x117),'label':_0x12bf80(0x131),'value':_0x2a1161}]),_0x211004(''),_0xfef970(''),_0x5a5787(''),_0x57b24f('app-code');return;}if(_0x5bf782===_0x12bf80(0x163)){if(_0x29c0f8)return;const _0x136de3=_0x7dff1f[_0x12bf80(0x152)]();_0x20a7f2(_0x136de3),_0x4a6c26(_0x41605c=>[..._0x41605c,{'step':_0x12bf80(0x163),'label':_0x12bf80(0x15a),'value':_0x136de3||'未设置'}]),_0x211004(''),_0xfef970('');if(_0x136de3){_0x57b24f(_0x12bf80(0x123));const _0x2d1cca=await _0x1cde0f();_0x2d1cca?_0x57b24f(_0x12bf80(0x125)):_0x57b24f(_0x12bf80(0x15f));}else{const _0x309d3f=_0x3a2af2||_0xbf0ae9||'online';_0x37dab6({'projectName':_0x3fa191,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x309d3f}),_0x57b24f(_0x12bf80(0x16e));}return;}if(_0x5bf782===_0x12bf80(0x125)){const _0x1b95db=_0x381573===0x0;_0x5f4844(_0x1b95db),_0x4a6c26(_0x43e9ea=>[..._0x43e9ea,{'step':_0x12bf80(0x161),'label':'拉取API配置','value':_0x1b95db?'是':'否'}]),_0x57b24f(_0x12bf80(0x135));return;}if(_0x5bf782===_0x12bf80(0x135)){if(!_0x531620){_0x398667(!![]);if(_0x2e3607===0x1){_0x4a6c26(_0x1d5e5b=>[..._0x1d5e5b,{'step':'lovrabet-setup','label':'MCP\x20和\x20Skill','value':'否'}]);const _0x98e55=_0x3a2af2||_0xbf0ae9||_0x12bf80(0x134);_0x37dab6({'projectName':_0x3fa191,'appCode':_0x343409,'pullApi':_0x2dca3b,'aiSetup':![],'selectedIDEs':[],'env':_0x98e55}),_0x57b24f('creating');}return;}const _0x372f78=_0x2e3607===0x0;if(_0x372f78){if(_0xbd595e[_0x12bf80(0x14e)]===0x0){_0xfef970(_0x12bf80(0x132));return;}const _0x9f2a74=Array[_0x12bf80(0x124)](_0xbd595e)[_0x12bf80(0x13b)](_0x3e780f=>IDE_LIST[_0x3e780f])[_0x12bf80(0x14d)](_0x141e32=>_0x141e32!==undefined);_0x4a6c26(_0x4464cc=>[..._0x4464cc,{'step':'lovrabet-setup','label':_0x12bf80(0x158),'value':_0x9f2a74[_0x12bf80(0x13a)]+_0x12bf80(0x15d)}]);const _0x113be9=_0x3a2af2||_0xbf0ae9||'online';_0x37dab6({'projectName':_0x3fa191,'appCode':_0x343409,'pullApi':_0x2dca3b,'aiSetup':!![],'selectedIDEs':_0x9f2a74,'env':_0x113be9}),_0x57b24f(_0x12bf80(0x16e));}else{_0x4a6c26(_0x55ffa1=>[..._0x55ffa1,{'step':'lovrabet-setup','label':_0x12bf80(0x158),'value':'否'}]);const _0x53fa9e=_0x3a2af2||_0xbf0ae9||_0x12bf80(0x134);_0x37dab6({'projectName':_0x3fa191,'appCode':_0x343409,'pullApi':_0x2dca3b,'aiSetup':![],'selectedIDEs':[],'env':_0x53fa9e}),_0x57b24f(_0x12bf80(0x16e));}return;}if(_0x5bf782===_0x12bf80(0x15f)){const _0x18fde4=_0x4ba898===0x0;if(_0x18fde4){_0x57b24f(_0x12bf80(0x107));const _0x5a573a=await _0x18e8ae();_0x5a573a?(_0x4a6c26(_0x5ca4a4=>[..._0x5ca4a4,{'step':'login','label':_0x12bf80(0x10e),'value':_0x12bf80(0x11e)}]),_0x57b24f(_0x12bf80(0x125))):(_0x4a6c26(_0x170860=>[..._0x170860,{'step':'login','label':_0x12bf80(0x10e),'value':_0x12bf80(0x153)}]),_0x57b24f('lovrabet-setup-selection'));}else _0x4a6c26(_0x35f2ae=>[..._0x35f2ae,{'step':'login','label':'登录状态','value':_0x12bf80(0x127)}]),_0x57b24f(_0x12bf80(0x135));return;}}if(_0x2dd20b[_0x12bf80(0x149)]||_0x2dd20b['delete']){_0x211004(_0x399b72=>{const _0x2dcd12=_0x12bf80,_0x5ca6cd=_0x399b72[_0x2dcd12(0x157)](0x0,-0x1);if(_0x5bf782===_0x2dcd12(0x117)){const {valid:_0x177702,message:_0x58ec76}=_0x32d4b8(_0x5ca6cd);_0xfef970(_0x177702?'':_0x58ec76||_0x2dcd12(0x116));if(_0x177702&&!_0x29c0f8){const _0x56ef13=_0x5ca6cd||_0x1fa5f2;_0x1f1293(_0x56ef13)?_0x5a5787('目录\x20\x22'+_0x56ef13+_0x2dcd12(0x108)):_0x5a5787('');}}else{if(_0x5bf782===_0x2dcd12(0x163)){const {valid:_0x343f25,message:_0xf3edfd}=_0x41b478(_0x5ca6cd);_0xfef970(_0x343f25?'':_0xf3edfd||_0x2dcd12(0x147));}}return _0x5ca6cd;});return;}if(['creating',_0x12bf80(0x123),_0x12bf80(0x107)]['includes'](_0x5bf782))return;if(_0x5bf782===_0x12bf80(0x125)||_0x5bf782==='login-prompt'||_0x5bf782===_0x12bf80(0x135))return;_0x211004(_0x21cb33=>{const _0x4c741c=_0x12bf80,_0x2aa6e8=_0x21cb33+_0xcdefc2;if(_0x5bf782===_0x4c741c(0x117)){const {valid:_0x4592eb,message:_0x571eaf}=_0x32d4b8(_0x2aa6e8);_0xfef970(_0x4592eb?'':_0x571eaf||_0x4c741c(0x116));if(_0x4592eb&&!_0x29c0f8){const _0x3d81d2=_0x2aa6e8||_0x1fa5f2;_0x1f1293(_0x3d81d2)?_0x5a5787('目录\x20\x22'+_0x3d81d2+_0x4c741c(0x108)):_0x5a5787('');}}else{if(_0x5bf782===_0x4c741c(0x163)){const {valid:_0x358e07,message:_0x4c83d2}=_0x41b478(_0x2aa6e8);_0xfef970(_0x358e07?'':_0x4c83d2||_0x4c741c(0x147));}}return _0x2aa6e8;});}),a41_0x195452(Box,{'flexDirection':_0x46f232(0x11b),'marginTop':0x1,'children':[_0x40b7a2[_0x46f232(0x13a)]===0x0&&a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x129),'children':_0x46f232(0x151)})}),_0x40b7a2[_0x46f232(0x13b)](_0x5a25bf=>a41_0x195452(Box,{'children':[a41_0x195452(Text,{'color':_0x46f232(0x145),'children':['√\x20',_0x5a25bf[_0x46f232(0x10a)],':\x20']}),a41_0x24ebf0(Text,{'color':_0x46f232(0x129),'children':_0x5a25bf[_0x46f232(0x14c)]})]},_0x5a25bf[_0x46f232(0x113)])),_0x5bf782===_0x46f232(0x117)&&a41_0x195452(a41_0x2db166,{'children':[a41_0x195452(Box,{'children':[a41_0x24ebf0(Text,{'children':_0x46f232(0x15c)}),_0x7dff1f?a41_0x24ebf0(Text,{'color':_0x46f232(0x145),'children':_0x7dff1f}):a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x1fa5f2}),_0x29c0f8&&a41_0x195452(Text,{'color':_0x46f232(0x16f),'children':['\x20←\x20',_0x29c0f8]}),_0x2c7fef&&a41_0x195452(Text,{'color':_0x46f232(0x16f),'children':[_0x46f232(0x144),_0x2c7fef]})]}),!_0x29c0f8&&!_0x2c7fef&&!_0x7dff1f&&a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':'gray','children':_0x46f232(0x11a)})})]}),_0x5bf782===_0x46f232(0x163)&&a41_0x195452(a41_0x2db166,{'children':[a41_0x195452(Box,{'children':[a41_0x24ebf0(Text,{'children':'*\x20应用AppCode\x20'}),a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x46f232(0x12a)}),a41_0x24ebf0(Text,{'color':'green','children':_0x7dff1f}),_0x29c0f8&&a41_0x195452(Text,{'color':_0x46f232(0x16f),'children':[_0x46f232(0x144),_0x29c0f8]})]}),!_0x29c0f8&&a41_0x24ebf0(Box,{'children':a41_0x195452(Text,{'color':_0x46f232(0x13e),'children':['\x20','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)']})})]}),_0x5bf782===_0x46f232(0x123)&&a41_0x195452(Box,{'children':[a41_0x24ebf0(Text,{'children':_0x46f232(0x126)}),_0x2db634&&a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x46f232(0x143)})]}),_0x5bf782===_0x46f232(0x125)&&a41_0x195452(a41_0x2db166,{'children':[a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x145),'children':_0x46f232(0x16b)})}),a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x24ebf0(Text,{'children':'*\x20是否要自动拉取\x20API\x20配置?'})}),a41_0x195452(Box,{'marginLeft':0x2,'children':[a41_0x195452(Text,{'color':_0x381573===0x0?_0x46f232(0x145):_0x46f232(0x13e),'children':[_0x381573===0x0?'▶\x20':'\x20\x20',_0x46f232(0x148)]}),a41_0x24ebf0(Text,{'children':'\x20'}),a41_0x195452(Text,{'color':_0x381573===0x1?_0x46f232(0x145):_0x46f232(0x13e),'children':[_0x381573===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x46f232(0x14f)})}),a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x169),'children':_0x46f232(0x156)})})]}),_0x5bf782===_0x46f232(0x135)&&a41_0x195452(a41_0x2db166,{'children':[a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x145),'children':'√'})}),a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x24ebf0(Text,{'children':_0x46f232(0x16c)})}),a41_0x195452(Box,{'marginLeft':0x2,'children':[a41_0x195452(Text,{'color':_0x2e3607===0x0?_0x46f232(0x145):_0x46f232(0x13e),'children':[_0x2e3607===0x0?'▶\x20':'\x20\x20',_0x46f232(0x148)]}),a41_0x24ebf0(Text,{'children':'\x20'}),a41_0x195452(Text,{'color':_0x2e3607===0x1?_0x46f232(0x145):_0x46f232(0x13e),'children':[_0x2e3607===0x1?'▶\x20':'\x20\x20','No']})]}),_0x531620&&_0x2e3607===0x0&&a41_0x195452(a41_0x2db166,{'children':[a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x46f232(0x106)})}),a41_0x195452(Box,{'marginTop':0x1,'flexDirection':'column','children':[a41_0x24ebf0(Text,{'bold':!![],'color':_0x46f232(0x169),'children':_0x46f232(0x167)}),IDE_LIST[_0x46f232(0x13b)]((_0x3becef,_0x68c24b)=>{const _0x49cfd0=_0x46f232,_0x3e0904=_0x1bcaa5===_0x68c24b,_0x30c94f=_0xbd595e[_0x49cfd0(0x111)](_0x68c24b),_0x417aad=MCP_IDES[_0x49cfd0(0x111)](_0x3becef);return a41_0x24ebf0(Box,{'children':a41_0x195452(Text,{'backgroundColor':_0x3e0904?_0x49cfd0(0x159):undefined,'color':_0x3e0904?_0x49cfd0(0x165):undefined,'children':['\x20\x20',_0x30c94f?_0x49cfd0(0x12d):'[\x20]','\x20',IDE_CONFIGS[_0x3becef][_0x49cfd0(0x170)],_0x417aad&&a41_0x24ebf0(Text,{'color':_0x3e0904?_0x49cfd0(0x165):_0x49cfd0(0x129),'children':'\x20+MCP'}),'\x20',a41_0x195452(Text,{'color':_0x3e0904?_0x49cfd0(0x165):_0x49cfd0(0x13e),'dimColor':!_0x3e0904,'children':['-\x20',IDE_CONFIGS[_0x3becef][_0x49cfd0(0x164)]]})]})},_0x3becef);}),a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x195452(Text,{'color':_0x46f232(0x13e),'children':['\x20',_0x46f232(0x15b)]})})]})]}),!_0x531620&&a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x24ebf0(Text,{'color':'gray','children':'\x20\x20使用\x20←→\x20选择,回车确认'})}),_0x29c0f8&&a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x195452(Text,{'color':_0x46f232(0x16f),'children':['✗\x20',_0x29c0f8]})})]}),_0x5bf782===_0x46f232(0x15f)&&a41_0x195452(a41_0x2db166,{'children':[a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x169),'children':'!\x20未检测到有效登录'})}),a41_0x24ebf0(Box,{'marginTop':0x1,'children':a41_0x24ebf0(Text,{'children':'*\x20是否要先登录以便拉取\x20API\x20配置?'})}),a41_0x195452(Box,{'marginLeft':0x2,'children':[a41_0x195452(Text,{'color':_0x4ba898===0x0?'green':'gray','children':[_0x4ba898===0x0?'▶\x20':'\x20\x20',_0x46f232(0x148)]}),a41_0x24ebf0(Text,{'children':'\x20'}),a41_0x195452(Text,{'color':_0x4ba898===0x1?'green':'gray','children':[_0x4ba898===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':_0x46f232(0x14f)})})]}),_0x5bf782==='login-process'&&a41_0x195452(Box,{'children':[a41_0x24ebf0(Text,{'children':_0x46f232(0x11d)}),_0x1d4ddd&&a41_0x24ebf0(Text,{'color':_0x46f232(0x13e),'children':'\x20登录中...'})]}),_0x5bf782===_0x46f232(0x16e)&&a41_0x24ebf0(Box,{'children':a41_0x24ebf0(Text,{'color':'green','children':_0x46f232(0x140)})})]});}
@@ -1 +1 @@
1
- (function(_0xffdeab,_0xedfd9e){const _0x4da06d=a42_0x1df1,_0x56b870=_0xffdeab();while(!![]){try{const _0x4b3024=parseInt(_0x4da06d(0x7f))/0x1+-parseInt(_0x4da06d(0x88))/0x2*(-parseInt(_0x4da06d(0x8c))/0x3)+parseInt(_0x4da06d(0x8a))/0x4*(-parseInt(_0x4da06d(0x84))/0x5)+-parseInt(_0x4da06d(0x85))/0x6*(parseInt(_0x4da06d(0x81))/0x7)+-parseInt(_0x4da06d(0x83))/0x8*(parseInt(_0x4da06d(0x89))/0x9)+-parseInt(_0x4da06d(0x82))/0xa*(-parseInt(_0x4da06d(0x8b))/0xb)+parseInt(_0x4da06d(0x86))/0xc;if(_0x4b3024===_0xedfd9e)break;else _0x56b870['push'](_0x56b870['shift']());}catch(_0x26d87e){_0x56b870['push'](_0x56b870['shift']());}}}(a42_0x3799,0x5bfe0));function a42_0x3799(){const _0x33c71e=['4073148JGOrcY','now','324GphQNX','2637rIEQwV','4BXOEam','297ghYEzv','12219mASrWp','26652ufFcHq','replace','13867ZHCqZd','187010mYMKXw','11536xHTRVc','1349775PXRVjH','1398PtPWsY'];a42_0x3799=function(){return _0x33c71e;};return a42_0x3799();}function a42_0x1df1(_0x2f04bd,_0x41c484){_0x2f04bd=_0x2f04bd-0x7f;const _0x3799b8=a42_0x3799();let _0x1df1ed=_0x3799b8[_0x2f04bd];return _0x1df1ed;}export function formatElapsed(_0x357474){const _0x3568d0=a42_0x1df1,_0x344674=Date[_0x3568d0(0x87)]()-_0x357474;if(_0x344674<0x3e8)return _0x344674+'ms';const _0x2530cf=(_0x344674/0x3e8)['toFixed'](0x2),_0x47330e=_0x2530cf[_0x3568d0(0x80)](/\.?0+$/u,'');return _0x47330e+'s';}
1
+ function a42_0x4f6f(){const _0x56423c=['1650tiZvqJ','4300345KkKpjC','33JnIFKA','92691CIOKpd','8990604wmezbC','32694yYVeZX','56BgIMIq','214945LMzFXC','43737ufnmWS','replace','11192240vBOQew'];a42_0x4f6f=function(){return _0x56423c;};return a42_0x4f6f();}(function(_0x1f1b57,_0x840c2a){const _0x2dbaef=a42_0x32ad,_0x2049eb=_0x1f1b57();while(!![]){try{const _0x3ce4f5=parseInt(_0x2dbaef(0x14d))/0x1*(-parseInt(_0x2dbaef(0x145))/0x2)+-parseInt(_0x2dbaef(0x148))/0x3*(-parseInt(_0x2dbaef(0x146))/0x4)+-parseInt(_0x2dbaef(0x147))/0x5+parseInt(_0x2dbaef(0x144))/0x6+-parseInt(_0x2dbaef(0x14c))/0x7+-parseInt(_0x2dbaef(0x14a))/0x8+parseInt(_0x2dbaef(0x14e))/0x9*(parseInt(_0x2dbaef(0x14b))/0xa);if(_0x3ce4f5===_0x840c2a)break;else _0x2049eb['push'](_0x2049eb['shift']());}catch(_0x10cbc4){_0x2049eb['push'](_0x2049eb['shift']());}}}(a42_0x4f6f,0xc4cb6));function a42_0x32ad(_0x1a7105,_0x4e74e4){_0x1a7105=_0x1a7105-0x144;const _0x4f6fa3=a42_0x4f6f();let _0x32ada0=_0x4f6fa3[_0x1a7105];return _0x32ada0;}export function formatElapsed(_0x23b1bf){const _0x3f8b30=a42_0x32ad,_0x1bdc9b=Date['now']()-_0x23b1bf;if(_0x1bdc9b<0x3e8)return _0x1bdc9b+'ms';const _0x2be98f=(_0x1bdc9b/0x3e8)['toFixed'](0x2),_0xcd8d20=_0x2be98f[_0x3f8b30(0x149)](/\.?0+$/u,'');return _0xcd8d20+'s';}