@lovrabet/cli 1.3.4-beta.2 → 1.3.4

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 (82) hide show
  1. package/lib/ai-setup/AISetupUI.js +1 -1
  2. package/lib/ai-setup/config.js +1 -1
  3. package/lib/api/api-doc-ui.js +1 -1
  4. package/lib/api/api-doc.js +1 -1
  5. package/lib/api/api-pull-ui.js +1 -1
  6. package/lib/api/fetch-model-list.js +1 -1
  7. package/lib/api/generate-api-file.js +1 -1
  8. package/lib/api/main.js +1 -1
  9. package/lib/api/pull-silent.js +1 -1
  10. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  11. package/lib/app-menu/create-menu.js +1 -1
  12. package/lib/app-menu/get-local-pages.js +1 -1
  13. package/lib/app-menu/get-online-menu-list.js +1 -1
  14. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  15. package/lib/app-menu/utils.js +1 -1
  16. package/lib/app-menu/valid-url.js +1 -1
  17. package/lib/app-menu-update-cdn/current-content.js +1 -1
  18. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  19. package/lib/app-menu-update-cdn/main.js +1 -1
  20. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  21. package/lib/auth/auth-server-ui.js +1 -1
  22. package/lib/auth/auth-server.js +1 -1
  23. package/lib/auth/constant.js +1 -1
  24. package/lib/auth/get-cookie.js +1 -1
  25. package/lib/auth/is-session-valid.js +1 -1
  26. package/lib/auth/logout.js +1 -1
  27. package/lib/cli-flags.js +1 -1
  28. package/lib/cli.js +1 -1
  29. package/lib/cmd/build-watch.js +1 -1
  30. package/lib/cmd/build.js +1 -1
  31. package/lib/cmd/logs.js +1 -1
  32. package/lib/cmd/preview.js +1 -1
  33. package/lib/cmd/start-execa.js +1 -1
  34. package/lib/cmd/start.js +1 -1
  35. package/lib/config/config-help.js +1 -1
  36. package/lib/config/main.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/create-app/enhanced-guided-create.js +1 -1
  40. package/lib/create-app/format-elapsed.js +1 -1
  41. package/lib/create-app/main.js +1 -1
  42. package/lib/create-app/non-interactive.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/i18n/I18nProvider.js +1 -1
  52. package/lib/i18n/hooks.js +1 -1
  53. package/lib/i18n/index.js +1 -1
  54. package/lib/i18n/locales/en-US.js +1 -1
  55. package/lib/i18n/locales/zh-CN.js +1 -1
  56. package/lib/init/main.js +1 -1
  57. package/lib/mcp/McpInstallUI.js +1 -1
  58. package/lib/mcp/claude.js +1 -1
  59. package/lib/mcp/cursor.js +1 -1
  60. package/lib/mcp/main.js +1 -1
  61. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  62. package/lib/mcp/mcp-installer.js +1 -1
  63. package/lib/skills/SkillInstallUI.js +1 -1
  64. package/lib/skills/main.js +1 -1
  65. package/lib/skills/skill-install-non-interactive.js +1 -1
  66. package/lib/skills/skill-installer.js +1 -1
  67. package/lib/ui/IDESelector.js +1 -1
  68. package/lib/ui/useIDESelection.js +1 -1
  69. package/lib/utils/ai_config.js +1 -1
  70. package/lib/utils/cdn-config.js +1 -1
  71. package/lib/utils/check-sdk-version.js +1 -1
  72. package/lib/utils/cli-version-check.js +1 -1
  73. package/lib/utils/config.js +1 -1
  74. package/lib/utils/copy-directory.js +1 -1
  75. package/lib/utils/file-utils.js +1 -1
  76. package/lib/utils/guides-cdn.js +1 -1
  77. package/lib/utils/http-client.js +1 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/rules-cdn.js +1 -1
  80. package/lib/utils/sleep.js +1 -1
  81. package/lib/utils/template-replacer.js +1 -1
  82. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a29_0x2f9d(_0x37d8e4,_0x5c9a5d){_0x37d8e4=_0x37d8e4-0xb6;const _0x21da6d=a29_0x21da();let _0x2f9d47=_0x21da6d[_0x37d8e4];return _0x2f9d47;}const a29_0x4d4c22=a29_0x2f9d;(function(_0x1c69f6,_0x472f77){const _0x364a11=a29_0x2f9d,_0x4ca171=_0x1c69f6();while(!![]){try{const _0x37b55a=-parseInt(_0x364a11(0xb8))/0x1+-parseInt(_0x364a11(0xba))/0x2+-parseInt(_0x364a11(0xe0))/0x3+-parseInt(_0x364a11(0x10a))/0x4*(parseInt(_0x364a11(0xcd))/0x5)+-parseInt(_0x364a11(0x103))/0x6*(-parseInt(_0x364a11(0xfa))/0x7)+parseInt(_0x364a11(0xdb))/0x8*(-parseInt(_0x364a11(0xf7))/0x9)+parseInt(_0x364a11(0xe7))/0xa*(parseInt(_0x364a11(0xc3))/0xb);if(_0x37b55a===_0x472f77)break;else _0x4ca171['push'](_0x4ca171['shift']());}catch(_0x4ba479){_0x4ca171['push'](_0x4ca171['shift']());}}}(a29_0x21da,0xb029f));import{jsx as a29_0x438a10}from'react/jsx-runtime';import a29_0x2941c6 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/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';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';import{I18nProvider}from'./i18n/I18nProvider.js';import{detectSystemLanguage,getLanguageFromFlags}from'./i18n/index.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a29_0x4d4c22(0xe3)))[a29_0x4d4c22(0xf1)];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a29_0x4d4c22(0xde),'en-US':a29_0x4d4c22(0xd9)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x177603=a29_0x4d4c22;if(!process[_0x177603(0xeb)][_0x177603(0x102)])return![];try{const _0x289dd2=process[_0x177603(0xeb)]['isRaw'];return process[_0x177603(0xeb)][_0x177603(0xf5)](!![]),process['stdin'][_0x177603(0xf5)](_0x289dd2??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x2ecaab){const _0x1a4abb=a29_0x4d4c22;return!!(_0x2ecaab['nonInteractive']||_0x2ecaab['ci']||process['env']['LOVRABET_CI']===_0x1a4abb(0xfe)||process[_0x1a4abb(0xfc)]['CI']===_0x1a4abb(0xfe)||!process['stdout'][_0x1a4abb(0x102)]||!isStdinRawModeSupported());}function getLanguage(_0x121b87){const _0x2e05d1=getLanguageFromFlags(_0x121b87);return _0x2e05d1||undefined;}function renderWithI18n(_0x1e1231,_0x55fe1d){const _0x579dde=a29_0x4d4c22;return!isStdinRawModeSupported()&&(console['error'](_0x55fe1d?.[_0x579dde(0xb6)]('zh')?_0x579dde(0xcb):'×\x20Interactive\x20mode\x20is\x20not\x20supported\x20in\x20this\x20terminal\x20(stdin\x20raw\x20mode\x20unavailable).\x0a\x20\x20Please\x20use\x20a\x20terminal\x20that\x20supports\x20interactive\x20input\x20(e.g.\x20Windows\x20Terminal,\x20PowerShell),\x0a\x20\x20or\x20use\x20non-interactive\x20mode:\x20lovrabet\x20<command>\x20--ci'),process[_0x579dde(0xcc)](0x1)),render(a29_0x438a10(I18nProvider,{'language':_0x55fe1d,'children':_0x1e1231}));}const cli=a29_0x2941c6(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x4d4c22(0xc0)},'clear':{'type':a29_0x4d4c22(0xda)},'env':{'type':a29_0x4d4c22(0xc0)},'watch':{'type':a29_0x4d4c22(0xda)},'help':{'type':a29_0x4d4c22(0xda)},'appcode':{'type':a29_0x4d4c22(0xc0)},'output':{'type':'string'},'params':{'type':a29_0x4d4c22(0xc0)},'datasetcode':{'type':'string'},'mcpCursor':{'type':a29_0x4d4c22(0xda)},'mcpClaude':{'type':a29_0x4d4c22(0xda)},'mcpOther':{'type':a29_0x4d4c22(0xda)},'cursor':{'type':a29_0x4d4c22(0xda)},'windsurf':{'type':'boolean'},'claude':{'type':'boolean'},'cline':{'type':a29_0x4d4c22(0xda)},'codex':{'type':a29_0x4d4c22(0xda)},'opencode':{'type':'boolean'},'qoder':{'type':'boolean'},'codebuddy':{'type':a29_0x4d4c22(0xda)},'trae':{'type':a29_0x4d4c22(0xda)},'agent':{'type':a29_0x4d4c22(0xda)},'antigravity':{'type':a29_0x4d4c22(0xda)},'all':{'type':a29_0x4d4c22(0xda)},'nonInteractive':{'type':'boolean'},'ci':{'type':a29_0x4d4c22(0xda)},'lang':{'type':'string'},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x4a7126=a29_0x4d4c22,_0x4e28e0=cli[_0x4a7126(0x100)][0x0],_0xb443ae=cli['input'][0x1],_0x2808b9=cli[_0x4a7126(0x100)][0x2],_0x2b2b0e=getLanguage(cli[_0x4a7126(0xfd)]),_0x3f78b4=('lovrabet\x20'+process[_0x4a7126(0xf6)]['slice'](0x2)[_0x4a7126(0xc9)]('\x20'))['trim']();logger[_0x4a7126(0xe9)](_0x3f78b4);switch(_0x4e28e0){case _0x4a7126(0xcf):{const _0x158ae9=cli[_0x4a7126(0xfd)]['appcode'],_0x51037e=cli[_0x4a7126(0xfd)][_0x4a7126(0xfc)];logger[_0x4a7126(0xfb)](process['cwd']()),logger[_0x4a7126(0x107)](_0x4a7126(0xcf),_0x4a7126(0xe6)),renderWithI18n(a29_0x438a10(Init,{'appcode':_0x158ae9,'env':_0x51037e}),_0x2b2b0e);break;}case _0x4a7126(0xf4):{const _0x544510=cli['input'][0x1]?.[_0x4a7126(0xef)](),_0x513092=cli[_0x4a7126(0xfd)][_0x4a7126(0xfc)],_0x46ce3c=isNonInteractiveMode(cli[_0x4a7126(0xfd)]);if(_0x46ce3c&&_0x544510){logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)](_0x4a7126(0xf4),_0x4a7126(0xc6)+_0x544510);const {createProjectNonInteractive:_0x385ba2}=await import('./create-app/non-interactive.js');await _0x385ba2(_0x544510,_0x513092);}else _0x46ce3c&&!_0x544510?(console[_0x4a7126(0xe5)](_0x2b2b0e?.['startsWith']('zh')?_0x4a7126(0xf3):'×\x20Interactive\x20mode\x20is\x20not\x20supported.\x20Please\x20specify\x20a\x20project\x20name:\x0a\x20\x20lovrabet\x20create\x20<project-name>\x0a\x20\x20lovrabet\x20create\x20<project-name>\x20--ci'),process[_0x4a7126(0xcc)](0x1)):renderWithI18n(a29_0x438a10(CreateApp,{'projectCode':_0x544510,'env':_0x513092}),_0x2b2b0e);break;}case _0x4a7126(0xd8):{try{logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('start',_0x4a7126(0xdf)),await runStart();}catch(_0x5a18f8){console[_0x4a7126(0xe5)](_0x5a18f8),process[_0x4a7126(0xcc)](0x1);}break;}case _0x4a7126(0xd0):{try{logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)](_0x4a7126(0xd0),_0x4a7126(0xbc)),await runBuild();}catch(_0x243230){console[_0x4a7126(0xe5)](_0x243230),process[_0x4a7126(0xcc)](0x1);}break;}case _0x4a7126(0xf8):{const _0x1e6b12=cli[_0x4a7126(0xfd)]['watch'];logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('preview',_0x4a7126(0xf0)+(_0x1e6b12?_0x4a7126(0xce):''));if(_0x1e6b12)try{await Promise[_0x4a7126(0xdc)]([runBuildWatch(),runPreview()]);}catch(_0x5728c6){console[_0x4a7126(0xe5)](_0x5728c6),process[_0x4a7126(0xcc)](0x1);}else try{await runPreview();}catch(_0x8011d3){console[_0x4a7126(0xe5)](_0x8011d3),process['exit'](0x1);}break;}case _0x4a7126(0xed):{renderWithI18n(a29_0x438a10(Config,{'cli':cli}),_0x2b2b0e);break;}case _0x4a7126(0xbe):{await apiCli(cli);break;}case _0x4a7126(0x101):{renderWithI18n(a29_0x438a10(AuthServer,{}),_0x2b2b0e);break;}case _0x4a7126(0xc8):{if(_0xb443ae===_0x4a7126(0xc4)){logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger['info'](_0x4a7126(0xc2),_0x4a7126(0xd2)),renderWithI18n(a29_0x438a10(AppMenuUpdateCdn,{}),_0x2b2b0e);break;}else logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('menu-sync',_0x4a7126(0xd4)),renderWithI18n(a29_0x438a10(AppMenuSyncUI,{}),_0x2b2b0e);break;}case'logout':{logout();break;}case _0x4a7126(0xbf):{const _0x329930=cli[_0x4a7126(0x100)][0x1];logger['setLogPath'](process[_0x4a7126(0xd5)]());if(_0x329930==='install'){const _0x56853e=[];if(cli[_0x4a7126(0xfd)]['mcpCursor']||cli[_0x4a7126(0xfd)][_0x4a7126(0xb9)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xb9));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xf2)]||cli[_0x4a7126(0xfd)][_0x4a7126(0xe1)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xe1));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xd6)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xff));logger['info'](_0x4a7126(0xd3),_0x4a7126(0xe8),{'preselected':_0x56853e});if(isNonInteractiveMode(cli[_0x4a7126(0xfd)])&&_0x56853e[_0x4a7126(0xc5)]>0x0){const {installMcpNonInteractive:_0x3eab62}=await import('./mcp/mcp-install-non-interactive.js');await _0x3eab62(_0x56853e);}else renderWithI18n(a29_0x438a10(McpInstallUI,{'preselectedIDEs':_0x56853e}),_0x2b2b0e);}else _0x329930===_0x4a7126(0xb7)||cli[_0x4a7126(0xfd)][_0x4a7126(0xd1)]?await mcpCommand(_0x329930,[],{'help':!![]}):await mcpCommand(_0x329930,[],cli[_0x4a7126(0xfd)]);break;}case _0x4a7126(0xe2):{const _0x305016=cli[_0x4a7126(0x100)][0x1];logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]());if(_0x305016===_0x4a7126(0xdd)){const _0x107bae=[];if(cli[_0x4a7126(0xfd)][_0x4a7126(0xdc)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xb9),_0x4a7126(0x108),_0x4a7126(0xe1),'cline',_0x4a7126(0x105),_0x4a7126(0xd7),_0x4a7126(0xca),_0x4a7126(0xea),_0x4a7126(0xee),_0x4a7126(0xc1),_0x4a7126(0xc7));else{if(cli['flags'][_0x4a7126(0xb9)])_0x107bae['push']('cursor');if(cli[_0x4a7126(0xfd)]['windsurf'])_0x107bae['push']('windsurf');if(cli['flags'][_0x4a7126(0xe1)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xe1));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xbb)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xbb));if(cli[_0x4a7126(0xfd)][_0x4a7126(0x105)])_0x107bae['push'](_0x4a7126(0x105));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xd7)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xd7));if(cli['flags']['qoder'])_0x107bae['push'](_0x4a7126(0xca));if(cli['flags'][_0x4a7126(0xea)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xea));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xee)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xee));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xc1)])_0x107bae['push'](_0x4a7126(0xc1));if(cli[_0x4a7126(0xfd)]['antigravity'])_0x107bae[_0x4a7126(0xec)]('antigravity');}const {getAllProvidedFlags:_0x319a1d}=await import(_0x4a7126(0x104)),_0x24bb29=_0x319a1d(cli['flags']);logger[_0x4a7126(0x107)](_0x4a7126(0x109),_0x4a7126(0xf9),{'preselected':_0x107bae,'providedFlags':_0x24bb29});if(isNonInteractiveMode(cli[_0x4a7126(0xfd)])&&_0x107bae[_0x4a7126(0xc5)]>0x0){const {installSkillsNonInteractive:_0x3d5a3e}=await import(_0x4a7126(0xe4));await _0x3d5a3e(_0x107bae,_0x24bb29);}else renderWithI18n(a29_0x438a10(SkillInstallUI,{'preselectedIDEs':_0x107bae,'providedFlags':_0x24bb29}),_0x2b2b0e);}else _0x305016===_0x4a7126(0xb7)||cli[_0x4a7126(0xfd)][_0x4a7126(0xd1)]?await skillsCommand(_0x305016,[],{'help':!![]}):await skillsCommand(_0x305016,[],cli[_0x4a7126(0xfd)]);break;}case _0x4a7126(0x106):{cli['flags'][_0x4a7126(0xbd)]?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x438a10(Help,{}),_0x2b2b0e);break;}}function a29_0x21da(){const _0x48e48=['build','help','执行更新菜单\x20CDN\x20资源命令','mcp-install','同步菜单命令','cwd','mcpOther','opencode','start','\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//\x20Authentication\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//\x20Logout\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//\x20Initialize\x20.lovrabetrc\x20config\x20in\x20existing\x20project\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20with\x20specified\x20appcode\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//\x20Create\x20a\x20new\x20project\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//\x20Start\x20project\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//\x20Build\x20project\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//\x20Sync\x20menu\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//\x20Update\x20menu\x20CDN\x20resources\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//\x20Preview\x20project\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Watch\x20mode\x20for\x20preview\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//\x20Project\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Pull\x20and\x20generate\x20API\x20config\x20(see:\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//\x20Generate\x20API\x20documentation\x20(see:\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//\x20Interactive\x20MCP\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Configure\x20Cursor\x20MCP\x20directly\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//\x20Interactive\x20skill\x20installation\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20Cursor\x20skill\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20Install\x20multiple\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20all\x20skills\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//\x20View\x20logs\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//\x20Clear\x20logs\x0a','boolean','19736DSabOQ','all','install','\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\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','执行启动命令','2756583gzPwGk','claude','skill','./cli-flags.js','./skills/skill-install-non-interactive.js','error','执行初始化配置命令','30940670hTmrOu','执行配置\x20MCP\x20命令','setRawCommand','codebuddy','stdin','push','config','trae','trim','执行预览命令','dynamicCliFlags','mcpClaude','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','create','setRawMode','argv','4644bGVOCz','preview','执行安装技能包命令','70sjrYEG','setLogPath','env','flags','true','other','input','auth','isTTY','476670oSSqvj','./skills/main.js','codex','logs','info','windsurf','skill-install','994796tdWdMx','startsWith','--help','111507woUGKn','cursor','1229822zvibSr','cline','执行构建命令','clear','api','mcp','string','agent','menu-update-cdn','11BGycci','update','length','非交互模式创建项目:\x20','antigravity','menu','join','qoder','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci','exit','5RPXeuW','\x20(监听模式)','init'];a29_0x21da=function(){return _0x48e48;};return a29_0x21da();}
2
+ const a29_0x5e1142=a29_0x5288;(function(_0x54114a,_0x52a9dc){const _0x4a5230=a29_0x5288,_0x499c37=_0x54114a();while(!![]){try{const _0xa11c46=-parseInt(_0x4a5230(0x1e6))/0x1*(-parseInt(_0x4a5230(0x210))/0x2)+-parseInt(_0x4a5230(0x1cb))/0x3+-parseInt(_0x4a5230(0x1e8))/0x4*(parseInt(_0x4a5230(0x1c4))/0x5)+-parseInt(_0x4a5230(0x1d5))/0x6+-parseInt(_0x4a5230(0x1e1))/0x7*(-parseInt(_0x4a5230(0x1d3))/0x8)+-parseInt(_0x4a5230(0x1f7))/0x9*(-parseInt(_0x4a5230(0x207))/0xa)+-parseInt(_0x4a5230(0x1d8))/0xb;if(_0xa11c46===_0x52a9dc)break;else _0x499c37['push'](_0x499c37['shift']());}catch(_0x3f57d0){_0x499c37['push'](_0x499c37['shift']());}}}(a29_0x5ce1,0xf1ed1));import{jsx as a29_0x267aa3}from'react/jsx-runtime';import a29_0x159f91 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/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';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';function a29_0x5ce1(){const _0x4f1da9=['mcp','error','create','skill-install','./cli-flags.js','menu-sync','start','logs','9758lpUNvq','执行更新菜单\x20CDN\x20资源命令','×\x20Interactive\x20mode\x20is\x20not\x20supported.\x20Please\x20specify\x20a\x20project\x20name:\x0a\x20\x20lovrabet\x20create\x20<project-name>\x0a\x20\x20lovrabet\x20create\x20<project-name>\x20--ci','setRawCommand','argv','37405gtlcOr','update','1948EOjQRM','join','help','env','startsWith','init','./create-app/non-interactive.js','logout','\x20(监听模式)','mcpCursor','skill','true','watch','isTTY','执行配置\x20MCP\x20命令','639FGYlHX','./mcp/mcp-install-non-interactive.js','\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\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','执行构建命令','isRaw','mcpClaude','stdout','mcpOther','codebuddy','cursor','flags','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','antigravity','length','setRawMode','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci','266710MKyWeY','stdin','opencode','./skills/skill-install-non-interactive.js','boolean','\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//\x20Authentication\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//\x20Logout\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//\x20Initialize\x20.lovrabetrc\x20config\x20in\x20existing\x20project\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20with\x20specified\x20appcode\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//\x20Create\x20a\x20new\x20project\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//\x20Start\x20project\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//\x20Build\x20project\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//\x20Sync\x20menu\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//\x20Update\x20menu\x20CDN\x20resources\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//\x20Preview\x20project\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Watch\x20mode\x20for\x20preview\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//\x20Project\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Pull\x20and\x20generate\x20API\x20config\x20(see:\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//\x20Generate\x20API\x20documentation\x20(see:\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//\x20Interactive\x20MCP\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Configure\x20Cursor\x20MCP\x20directly\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//\x20Interactive\x20skill\x20installation\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20Cursor\x20skill\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20Install\x20multiple\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20all\x20skills\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//\x20View\x20logs\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//\x20Clear\x20logs\x0a','cline','qoder','setLogPath','82wEjrzB','windsurf','×\x20Interactive\x20mode\x20is\x20not\x20supported\x20in\x20this\x20terminal\x20(stdin\x20raw\x20mode\x20unavailable).\x0a\x20\x20Please\x20use\x20a\x20terminal\x20that\x20supports\x20interactive\x20input\x20(e.g.\x20Windows\x20Terminal,\x20PowerShell),\x0a\x20\x20or\x20use\x20non-interactive\x20mode:\x20lovrabet\x20<command>\x20--ci','cwd','exit','trim','执行初始化配置命令','执行安装技能包命令','./skills/main.js','执行启动命令','slice','7915aePZOd','push','string','mcp-install','appcode','agent','build','4485987ZQUngg','claude','input','info','menu-update-cdn','codex','执行预览命令','preview','11064bhYbuN','all','8968134wQIpsn','other','--help','6636080HCMXFU'];a29_0x5ce1=function(){return _0x4f1da9;};return a29_0x5ce1();}import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';function a29_0x5288(_0x1f7692,_0x5d27d4){_0x1f7692=_0x1f7692-0x1c1;const _0x5ce11b=a29_0x5ce1();let _0x528876=_0x5ce11b[_0x1f7692];return _0x528876;}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';import{I18nProvider}from'./i18n/I18nProvider.js';import{detectSystemLanguage,getLanguageFromFlags}from'./i18n/index.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a29_0x5e1142(0x1dd)))['dynamicCliFlags'];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a29_0x5e1142(0x1f9),'en-US':a29_0x5e1142(0x20c)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x9a1a56=a29_0x5e1142;if(!process['stdin']['isTTY'])return![];try{const _0x5cd25d=process[_0x9a1a56(0x208)][_0x9a1a56(0x1fb)];return process[_0x9a1a56(0x208)][_0x9a1a56(0x205)](!![]),process['stdin'][_0x9a1a56(0x205)](_0x5cd25d??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x356a1f){const _0x545770=a29_0x5e1142;return!!(_0x356a1f['nonInteractive']||_0x356a1f['ci']||process[_0x545770(0x1eb)]['LOVRABET_CI']===_0x545770(0x1f3)||process[_0x545770(0x1eb)]['CI']==='true'||!process[_0x545770(0x1fd)][_0x545770(0x1f5)]||!isStdinRawModeSupported());}function getLanguage(_0x30056f){const _0x49861b=getLanguageFromFlags(_0x30056f);return _0x49861b||undefined;}function renderWithI18n(_0x445eef,_0x143de6){const _0x4e399b=a29_0x5e1142;return!isStdinRawModeSupported()&&(console[_0x4e399b(0x1da)](_0x143de6?.[_0x4e399b(0x1ec)]('zh')?_0x4e399b(0x206):_0x4e399b(0x212)),process['exit'](0x1)),render(a29_0x267aa3(I18nProvider,{'language':_0x143de6,'children':_0x445eef}));}const cli=a29_0x159f91(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x5e1142(0x1c6)},'clear':{'type':a29_0x5e1142(0x20b)},'env':{'type':a29_0x5e1142(0x1c6)},'watch':{'type':a29_0x5e1142(0x20b)},'help':{'type':'boolean'},'appcode':{'type':a29_0x5e1142(0x1c6)},'output':{'type':a29_0x5e1142(0x1c6)},'params':{'type':a29_0x5e1142(0x1c6)},'datasetcode':{'type':a29_0x5e1142(0x1c6)},'mcpCursor':{'type':'boolean'},'mcpClaude':{'type':a29_0x5e1142(0x20b)},'mcpOther':{'type':a29_0x5e1142(0x20b)},'cursor':{'type':'boolean'},'windsurf':{'type':'boolean'},'claude':{'type':a29_0x5e1142(0x20b)},'cline':{'type':a29_0x5e1142(0x20b)},'codex':{'type':'boolean'},'opencode':{'type':a29_0x5e1142(0x20b)},'qoder':{'type':'boolean'},'codebuddy':{'type':a29_0x5e1142(0x20b)},'trae':{'type':a29_0x5e1142(0x20b)},'agent':{'type':a29_0x5e1142(0x20b)},'antigravity':{'type':a29_0x5e1142(0x20b)},'all':{'type':a29_0x5e1142(0x20b)},'nonInteractive':{'type':a29_0x5e1142(0x20b)},'ci':{'type':a29_0x5e1142(0x20b)},'lang':{'type':a29_0x5e1142(0x1c6)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x1df44c=a29_0x5e1142,_0x1c01ff=cli[_0x1df44c(0x1cd)][0x0],_0x59e500=cli[_0x1df44c(0x1cd)][0x1],_0x30af5e=cli['input'][0x2],_0x14754a=getLanguage(cli[_0x1df44c(0x201)]),_0x4490f7=('lovrabet\x20'+process[_0x1df44c(0x1e5)][_0x1df44c(0x1c3)](0x2)[_0x1df44c(0x1e9)]('\x20'))[_0x1df44c(0x215)]();logger[_0x1df44c(0x1e4)](_0x4490f7);switch(_0x1c01ff){case _0x1df44c(0x1ed):{const _0x5ba717=cli['flags'][_0x1df44c(0x1c8)],_0x2fd8a0=cli[_0x1df44c(0x201)][_0x1df44c(0x1eb)];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)]('init',_0x1df44c(0x216)),renderWithI18n(a29_0x267aa3(Init,{'appcode':_0x5ba717,'env':_0x2fd8a0}),_0x14754a);break;}case'create':{const _0x343594=cli[_0x1df44c(0x1cd)][0x1]?.[_0x1df44c(0x215)](),_0xc5675c=cli['flags'][_0x1df44c(0x1eb)],_0x2a2ebd=isNonInteractiveMode(cli[_0x1df44c(0x201)]);if(_0x2a2ebd&&_0x343594){logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1db),'非交互模式创建项目:\x20'+_0x343594);const {createProjectNonInteractive:_0x48a1e4}=await import(_0x1df44c(0x1ee));await _0x48a1e4(_0x343594,_0xc5675c);}else _0x2a2ebd&&!_0x343594?(console[_0x1df44c(0x1da)](_0x14754a?.[_0x1df44c(0x1ec)]('zh')?_0x1df44c(0x202):_0x1df44c(0x1e3)),process[_0x1df44c(0x214)](0x1)):renderWithI18n(a29_0x267aa3(CreateApp,{'projectCode':_0x343594,'env':_0xc5675c}),_0x14754a);break;}case _0x1df44c(0x1df):{try{logger[_0x1df44c(0x20f)](process['cwd']()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1df),_0x1df44c(0x1c2)),await runStart();}catch(_0x2408c3){console[_0x1df44c(0x1da)](_0x2408c3),process[_0x1df44c(0x214)](0x1);}break;}case _0x1df44c(0x1ca):{try{logger['setLogPath'](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1ca),_0x1df44c(0x1fa)),await runBuild();}catch(_0x22cd42){console['error'](_0x22cd42),process[_0x1df44c(0x214)](0x1);}break;}case _0x1df44c(0x1d2):{const _0x582c9c=cli[_0x1df44c(0x201)][_0x1df44c(0x1f4)];logger[_0x1df44c(0x20f)](process['cwd']()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1d2),_0x1df44c(0x1d1)+(_0x582c9c?_0x1df44c(0x1f0):''));if(_0x582c9c)try{await Promise[_0x1df44c(0x1d4)]([runBuildWatch(),runPreview()]);}catch(_0x423617){console[_0x1df44c(0x1da)](_0x423617),process['exit'](0x1);}else try{await runPreview();}catch(_0x4747ee){console[_0x1df44c(0x1da)](_0x4747ee),process[_0x1df44c(0x214)](0x1);}break;}case'config':{renderWithI18n(a29_0x267aa3(Config,{'cli':cli}),_0x14754a);break;}case'api':{await apiCli(cli);break;}case'auth':{renderWithI18n(a29_0x267aa3(AuthServer,{}),_0x14754a);break;}case'menu':{if(_0x59e500===_0x1df44c(0x1e7)){logger['setLogPath'](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1cf),_0x1df44c(0x1e2)),renderWithI18n(a29_0x267aa3(AppMenuUpdateCdn,{}),_0x14754a);break;}else logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger['info'](_0x1df44c(0x1de),'同步菜单命令'),renderWithI18n(a29_0x267aa3(AppMenuSyncUI,{}),_0x14754a);break;}case _0x1df44c(0x1ef):{logout();break;}case _0x1df44c(0x1d9):{const _0x1ed886=cli[_0x1df44c(0x1cd)][0x1];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]());if(_0x1ed886==='install'){const _0x31ccab=[];if(cli['flags'][_0x1df44c(0x1f1)]||cli[_0x1df44c(0x201)][_0x1df44c(0x200)])_0x31ccab[_0x1df44c(0x1c5)]('cursor');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1fc)]||cli[_0x1df44c(0x201)][_0x1df44c(0x1cc)])_0x31ccab[_0x1df44c(0x1c5)](_0x1df44c(0x1cc));if(cli['flags'][_0x1df44c(0x1fe)])_0x31ccab[_0x1df44c(0x1c5)](_0x1df44c(0x1d6));logger[_0x1df44c(0x1ce)](_0x1df44c(0x1c7),_0x1df44c(0x1f6),{'preselected':_0x31ccab});if(isNonInteractiveMode(cli[_0x1df44c(0x201)])&&_0x31ccab[_0x1df44c(0x204)]>0x0){const {installMcpNonInteractive:_0x3c6314}=await import(_0x1df44c(0x1f8));await _0x3c6314(_0x31ccab);}else renderWithI18n(a29_0x267aa3(McpInstallUI,{'preselectedIDEs':_0x31ccab}),_0x14754a);}else _0x1ed886===_0x1df44c(0x1d7)||cli[_0x1df44c(0x201)][_0x1df44c(0x1ea)]?await mcpCommand(_0x1ed886,[],{'help':!![]}):await mcpCommand(_0x1ed886,[],cli[_0x1df44c(0x201)]);break;}case _0x1df44c(0x1f2):{const _0x2e125a=cli[_0x1df44c(0x1cd)][0x1];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]());if(_0x2e125a==='install'){const _0x3cfb50=[];if(cli[_0x1df44c(0x201)][_0x1df44c(0x1d4)])_0x3cfb50['push'](_0x1df44c(0x200),_0x1df44c(0x211),_0x1df44c(0x1cc),_0x1df44c(0x20d),_0x1df44c(0x1d0),_0x1df44c(0x209),_0x1df44c(0x20e),_0x1df44c(0x1ff),'trae',_0x1df44c(0x1c9),_0x1df44c(0x203));else{if(cli[_0x1df44c(0x201)][_0x1df44c(0x200)])_0x3cfb50[_0x1df44c(0x1c5)](_0x1df44c(0x200));if(cli['flags'][_0x1df44c(0x211)])_0x3cfb50['push'](_0x1df44c(0x211));if(cli[_0x1df44c(0x201)][_0x1df44c(0x1cc)])_0x3cfb50['push'](_0x1df44c(0x1cc));if(cli[_0x1df44c(0x201)][_0x1df44c(0x20d)])_0x3cfb50[_0x1df44c(0x1c5)]('cline');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1d0)])_0x3cfb50[_0x1df44c(0x1c5)](_0x1df44c(0x1d0));if(cli['flags'][_0x1df44c(0x209)])_0x3cfb50[_0x1df44c(0x1c5)]('opencode');if(cli[_0x1df44c(0x201)][_0x1df44c(0x20e)])_0x3cfb50[_0x1df44c(0x1c5)]('qoder');if(cli[_0x1df44c(0x201)]['codebuddy'])_0x3cfb50[_0x1df44c(0x1c5)]('codebuddy');if(cli[_0x1df44c(0x201)]['trae'])_0x3cfb50['push']('trae');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1c9)])_0x3cfb50['push'](_0x1df44c(0x1c9));if(cli[_0x1df44c(0x201)]['antigravity'])_0x3cfb50[_0x1df44c(0x1c5)]('antigravity');}const {getAllProvidedFlags:_0x18cddf}=await import(_0x1df44c(0x1c1)),_0x408746=_0x18cddf(cli[_0x1df44c(0x201)]);logger[_0x1df44c(0x1ce)](_0x1df44c(0x1dc),_0x1df44c(0x217),{'preselected':_0x3cfb50,'providedFlags':_0x408746});if(isNonInteractiveMode(cli[_0x1df44c(0x201)])&&_0x3cfb50['length']>0x0){const {installSkillsNonInteractive:_0x25e772}=await import(_0x1df44c(0x20a));await _0x25e772(_0x3cfb50,_0x408746);}else renderWithI18n(a29_0x267aa3(SkillInstallUI,{'preselectedIDEs':_0x3cfb50,'providedFlags':_0x408746}),_0x14754a);}else _0x2e125a===_0x1df44c(0x1d7)||cli[_0x1df44c(0x201)][_0x1df44c(0x1ea)]?await skillsCommand(_0x2e125a,[],{'help':!![]}):await skillsCommand(_0x2e125a,[],cli[_0x1df44c(0x201)]);break;}case _0x1df44c(0x1e0):{cli[_0x1df44c(0x201)]['clear']?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x267aa3(Help,{}),_0x14754a);break;}}
@@ -1 +1 @@
1
- (function(_0x90d620,_0x5e2e24){const _0x30d812=a30_0x423c,_0x8acbf2=_0x90d620();while(!![]){try{const _0x564262=-parseInt(_0x30d812(0x1bb))/0x1*(-parseInt(_0x30d812(0x1b9))/0x2)+parseInt(_0x30d812(0x1bd))/0x3*(parseInt(_0x30d812(0x1b3))/0x4)+-parseInt(_0x30d812(0x1b2))/0x5+parseInt(_0x30d812(0x1b6))/0x6+parseInt(_0x30d812(0x1bf))/0x7+parseInt(_0x30d812(0x1be))/0x8+parseInt(_0x30d812(0x1ba))/0x9*(-parseInt(_0x30d812(0x1b8))/0xa);if(_0x564262===_0x5e2e24)break;else _0x8acbf2['push'](_0x8acbf2['shift']());}catch(_0x4a0cf0){_0x8acbf2['push'](_0x8acbf2['shift']());}}}(a30_0x284c,0x20d95));function a30_0x284c(){const _0x46a26d=['3evJDPC','656848oBoGBV','1425340PjBQos','cwd','201990nDtFoy','652228dvXFli','PATH','.bin','228498IUbyJx','error','1466250opvWjE','42652GwdbwM','27qNYjcZ','6iPXdTB','env'];a30_0x284c=function(){return _0x46a26d;};return a30_0x284c();}function a30_0x423c(_0x3d40c8,_0x4e43fc){_0x3d40c8=_0x3d40c8-0x1b1;const _0x284c2a=a30_0x284c();let _0x423cda=_0x284c2a[_0x3d40c8];return _0x423cda;}import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x11be87,_0xf4fa7f)=>{const _0x5b47db=a30_0x423c,_0x3e7bf2=spawn('vite',['build','--watch'],{'stdio':'inherit','shell':!![],'env':{...process[_0x5b47db(0x1bc)],'PATH':''+join(process[_0x5b47db(0x1b1)](),'node_modules',_0x5b47db(0x1b5))+delimiter+process[_0x5b47db(0x1bc)][_0x5b47db(0x1b4)]}});_0x3e7bf2['on']('close',_0x140478=>{if(_0x140478===0x0||_0x140478===null)_0x11be87();else _0xf4fa7f(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x140478));}),_0x3e7bf2['on'](_0x5b47db(0x1b7),_0xf4fa7f);});}
1
+ (function(_0x4b2cfa,_0x547036){const _0x3b650f=a30_0x548c,_0x10fbf6=_0x4b2cfa();while(!![]){try{const _0x1ca1da=-parseInt(_0x3b650f(0x10f))/0x1+parseInt(_0x3b650f(0x11a))/0x2+-parseInt(_0x3b650f(0x112))/0x3+parseInt(_0x3b650f(0x114))/0x4+-parseInt(_0x3b650f(0x116))/0x5+-parseInt(_0x3b650f(0x10d))/0x6+parseInt(_0x3b650f(0x119))/0x7;if(_0x1ca1da===_0x547036)break;else _0x10fbf6['push'](_0x10fbf6['shift']());}catch(_0x154d32){_0x10fbf6['push'](_0x10fbf6['shift']());}}}(a30_0x5b1c,0x37c06));import{spawn}from'node:child_process';function a30_0x5b1c(){const _0xfa9c1f=['inherit','2887906oTueqY','341796ZdDLUg','PATH','close','35082FiCbaW','node_modules','327637sjZCSu','npm\x20run\x20build\x20exited\x20with\x20code\x20','env','679275NIMVuG','build','1554556kkyHlU','vite','919140JLWcRD','--watch'];a30_0x5b1c=function(){return _0xfa9c1f;};return a30_0x5b1c();}function a30_0x548c(_0x316a8a,_0x521b04){_0x316a8a=_0x316a8a-0x10c;const _0x5b1c95=a30_0x5b1c();let _0x548cda=_0x5b1c95[_0x316a8a];return _0x548cda;}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x581768,_0x56ceee)=>{const _0x42802b=a30_0x548c,_0x41004c=spawn(_0x42802b(0x115),[_0x42802b(0x113),_0x42802b(0x117)],{'stdio':_0x42802b(0x118),'shell':!![],'env':{...process[_0x42802b(0x111)],'PATH':''+join(process['cwd'](),_0x42802b(0x10e),'.bin')+delimiter+process[_0x42802b(0x111)][_0x42802b(0x11b)]}});_0x41004c['on'](_0x42802b(0x10c),_0x4f1ee4=>{const _0x41a0cf=_0x42802b;if(_0x4f1ee4===0x0||_0x4f1ee4===null)_0x581768();else _0x56ceee(new Error(_0x41a0cf(0x110)+_0x4f1ee4));}),_0x41004c['on']('error',_0x56ceee);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1ce7dc,_0x427578){const _0x15b314=a31_0x4664,_0x2d80fe=_0x1ce7dc();while(!![]){try{const _0x2a9242=-parseInt(_0x15b314(0x1e2))/0x1+parseInt(_0x15b314(0x1f9))/0x2+-parseInt(_0x15b314(0x1f7))/0x3*(-parseInt(_0x15b314(0x1ef))/0x4)+parseInt(_0x15b314(0x1fa))/0x5*(-parseInt(_0x15b314(0x1f2))/0x6)+-parseInt(_0x15b314(0x1ea))/0x7+parseInt(_0x15b314(0x1e5))/0x8*(-parseInt(_0x15b314(0x1f0))/0x9)+parseInt(_0x15b314(0x1e3))/0xa;if(_0x2a9242===_0x427578)break;else _0x2d80fe['push'](_0x2d80fe['shift']());}catch(_0x4f5742){_0x2d80fe['push'](_0x2d80fe['shift']());}}}(a31_0x3b72,0xb713a));function a31_0x3b72(){const _0x1195d3=['754648owGWbI','1387600FfrMuH','run','error','trim','npm\x20run\x20build','969324YkASXI','19672240nLBHoP','toString','8BbuFUx','npm','data','.bin','pipe','5761203bdWKRV','npm\x20run\x20build\x20exited\x20with\x20code\x20','inherit','env','build','328868LuZpCG','7562385ehTFSf','now','6VjgxeC','stderr','项目构建成功','info','cwd','48rMcbrz','node_modules'];a31_0x3b72=function(){return _0x1195d3;};return a31_0x3b72();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a31_0x4664(_0x44a49f,_0x2af2cc){_0x44a49f=_0x44a49f-0x1e0;const _0x3b724a=a31_0x3b72();let _0x4664a=_0x3b724a[_0x44a49f];return _0x4664a;}export function runBuild(){return new Promise((_0x1a630d,_0x4cea07)=>{const _0x51b04f=a31_0x4664,_0x4ddf14=Date[_0x51b04f(0x1f1)]();logger[_0x51b04f(0x1f5)](_0x51b04f(0x1ee),'开始构建项目',{'command':'npm\x20run\x20build'});let _0xf0ce08='';const _0x15c89b=spawn(_0x51b04f(0x1e6),[_0x51b04f(0x1fb),_0x51b04f(0x1ee)],{'stdio':[_0x51b04f(0x1ec),_0x51b04f(0x1ec),_0x51b04f(0x1e9)],'shell':!![],'env':{...process[_0x51b04f(0x1ed)],'PATH':''+join(process[_0x51b04f(0x1f6)](),_0x51b04f(0x1f8),_0x51b04f(0x1e8))+delimiter+process[_0x51b04f(0x1ed)]['PATH']}});_0x15c89b[_0x51b04f(0x1f3)]?.['on'](_0x51b04f(0x1e7),_0x28df3a=>{const _0x5c5748=_0x51b04f;_0xf0ce08+=_0x28df3a[_0x5c5748(0x1e4)]();}),_0x15c89b['on']('close',_0x52aec2=>{const _0x46b152=_0x51b04f,_0x1237e0=Date[_0x46b152(0x1f1)]()-_0x4ddf14;if(_0x52aec2===0x0||_0x52aec2===null)logger['success'](_0x46b152(0x1ee),_0x46b152(0x1f4),_0x1237e0),_0x1a630d();else{const _0x17e64a={'exitCode':_0x52aec2,'duration':_0x1237e0,'command':_0x46b152(0x1e1),'cwd':process[_0x46b152(0x1f6)]()};_0xf0ce08[_0x46b152(0x1e0)]()&&(_0x17e64a[_0x46b152(0x1f3)]=_0xf0ce08[_0x46b152(0x1e0)]()),logger[_0x46b152(0x1fc)](_0x46b152(0x1ee),'项目构建失败',_0x17e64a),_0x4cea07(new Error(_0x46b152(0x1eb)+_0x52aec2));}}),_0x15c89b['on']('error',_0x4de408=>{const _0x287443=_0x51b04f,_0x5927b6=Date[_0x287443(0x1f1)]()-_0x4ddf14;logger[_0x287443(0x1fc)]('build','项目构建出错',{'error':_0x4de408['message'],'duration':_0x5927b6,'stderr':_0xf0ce08[_0x287443(0x1e0)]()||undefined}),_0x4cea07(_0x4de408);});});}
1
+ (function(_0xc9f2c1,_0x30de49){const _0x5c5e9f=a31_0x47d1,_0x69f310=_0xc9f2c1();while(!![]){try{const _0x1e1421=parseInt(_0x5c5e9f(0xcd))/0x1+-parseInt(_0x5c5e9f(0xdc))/0x2+-parseInt(_0x5c5e9f(0xe2))/0x3*(-parseInt(_0x5c5e9f(0xdd))/0x4)+-parseInt(_0x5c5e9f(0xd2))/0x5*(parseInt(_0x5c5e9f(0xd5))/0x6)+parseInt(_0x5c5e9f(0xd4))/0x7+parseInt(_0x5c5e9f(0xdb))/0x8+parseInt(_0x5c5e9f(0xed))/0x9*(-parseInt(_0x5c5e9f(0xd6))/0xa);if(_0x1e1421===_0x30de49)break;else _0x69f310['push'](_0x69f310['shift']());}catch(_0x5a7bf0){_0x69f310['push'](_0x69f310['shift']());}}}(a31_0x6459,0x3bf22));function a31_0x6459(){const _0x13a47a=['npm\x20run\x20build','env','trim','.bin','run','close','build','45IqowXm','success','inherit','489880LtzhXW','pipe','message','cwd','stderr','415kCToqM','info','1795325SrvpBj','9798GzFEHc','247620qkFWdY','npm\x20run\x20build\x20exited\x20with\x20code\x20','toString','开始构建项目','data','152176uggiLf','617888YtYOmB','4jhvDrz','项目构建成功','error','项目构建出错','node_modules','145362AMqScO','npm','now','项目构建失败'];a31_0x6459=function(){return _0x13a47a;};return a31_0x6459();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a31_0x47d1(_0x347de9,_0x273cae){_0x347de9=_0x347de9-0xcc;const _0x64593a=a31_0x6459();let _0x47d19c=_0x64593a[_0x347de9];return _0x47d19c;}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x424bbd,_0x1e94d8)=>{const _0x4e93cd=a31_0x47d1,_0x236245=Date[_0x4e93cd(0xe4)]();logger[_0x4e93cd(0xd3)](_0x4e93cd(0xec),_0x4e93cd(0xd9),{'command':_0x4e93cd(0xe6)});let _0x3ab0c8='';const _0xcfb601=spawn(_0x4e93cd(0xe3),[_0x4e93cd(0xea),'build'],{'stdio':[_0x4e93cd(0xcc),'inherit',_0x4e93cd(0xce)],'shell':!![],'env':{...process[_0x4e93cd(0xe7)],'PATH':''+join(process[_0x4e93cd(0xd0)](),_0x4e93cd(0xe1),_0x4e93cd(0xe9))+delimiter+process[_0x4e93cd(0xe7)]['PATH']}});_0xcfb601[_0x4e93cd(0xd1)]?.['on'](_0x4e93cd(0xda),_0x5e716f=>{const _0x5a02c5=_0x4e93cd;_0x3ab0c8+=_0x5e716f[_0x5a02c5(0xd8)]();}),_0xcfb601['on'](_0x4e93cd(0xeb),_0x3c00ed=>{const _0x5e97f5=_0x4e93cd,_0x3864f4=Date[_0x5e97f5(0xe4)]()-_0x236245;if(_0x3c00ed===0x0||_0x3c00ed===null)logger[_0x5e97f5(0xee)](_0x5e97f5(0xec),_0x5e97f5(0xde),_0x3864f4),_0x424bbd();else{const _0x31dbab={'exitCode':_0x3c00ed,'duration':_0x3864f4,'command':_0x5e97f5(0xe6),'cwd':process[_0x5e97f5(0xd0)]()};_0x3ab0c8[_0x5e97f5(0xe8)]()&&(_0x31dbab[_0x5e97f5(0xd1)]=_0x3ab0c8[_0x5e97f5(0xe8)]()),logger[_0x5e97f5(0xdf)](_0x5e97f5(0xec),_0x5e97f5(0xe5),_0x31dbab),_0x1e94d8(new Error(_0x5e97f5(0xd7)+_0x3c00ed));}}),_0xcfb601['on'](_0x4e93cd(0xdf),_0x5129c8=>{const _0x4a47f7=_0x4e93cd,_0x16b7c2=Date[_0x4a47f7(0xe4)]()-_0x236245;logger[_0x4a47f7(0xdf)](_0x4a47f7(0xec),_0x4a47f7(0xe0),{'error':_0x5129c8[_0x4a47f7(0xcf)],'duration':_0x16b7c2,'stderr':_0x3ab0c8[_0x4a47f7(0xe8)]()||undefined}),_0x1e94d8(_0x5129c8);});});}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- const a32_0x189048=a32_0x1ab3;function a32_0x59f8(){const _0x52ca6c=['294WAeJKO','warn','details','36jUhSen','53930dEQakp','logs.details','logs.header','774btwLFH','setLogPath','742806RDczwF','logs.noLogs','bind','toLocaleString','zh-CN','stringify','success','message','127384GTrMbc','268885kZKSrd','3558500ZZyUZK','length','en-US','logs.duration','logs.cleared','cwd','clearLogs','2313868ecluGk','duration','259201LgCtkq','level','readLogs','3owEBcQ','timestamp','keys','log'];a32_0x59f8=function(){return _0x52ca6c;};return a32_0x59f8();}(function(_0x22ae7f,_0x43d31f){const _0xeebca0=a32_0x1ab3,_0x327249=_0x22ae7f();while(!![]){try{const _0x3c7900=-parseInt(_0xeebca0(0x10c))/0x1+-parseInt(_0xeebca0(0xf9))/0x2+parseInt(_0xeebca0(0x10f))/0x3*(parseInt(_0xeebca0(0x10a))/0x4)+parseInt(_0xeebca0(0x102))/0x5*(parseInt(_0xeebca0(0x116))/0x6)+parseInt(_0xeebca0(0x113))/0x7*(-parseInt(_0xeebca0(0x101))/0x8)+-parseInt(_0xeebca0(0xf7))/0x9*(-parseInt(_0xeebca0(0x117))/0xa)+parseInt(_0xeebca0(0x103))/0xb;if(_0x3c7900===_0x43d31f)break;else _0x327249['push'](_0x327249['shift']());}catch(_0x4f1f89){_0x327249['push'](_0x327249['shift']());}}}(a32_0x59f8,0x5efc1));import{logger}from'../utils/logger.js';import a32_0x3c55ef from'../i18n/index.js';function a32_0x1ab3(_0x379606,_0x1b821c){_0x379606=_0x379606-0xf5;const _0x59f83a=a32_0x59f8();let _0x1ab3bf=_0x59f83a[_0x379606];return _0x1ab3bf;}const t=a32_0x3c55ef['t'][a32_0x189048(0xfb)](a32_0x3c55ef);export function showLogs(){const _0x12b5f0=a32_0x189048;logger[_0x12b5f0(0xf8)](process[_0x12b5f0(0x108)]());const _0x3114f8=logger[_0x12b5f0(0x10e)]();if(_0x3114f8[_0x12b5f0(0x104)]===0x0){console[_0x12b5f0(0x112)](t(_0x12b5f0(0xfa)));return;}console[_0x12b5f0(0x112)](t(_0x12b5f0(0xf6))),_0x3114f8['forEach']((_0xbade64,_0x792617)=>{const _0x3c1bcc=_0x12b5f0,_0x4bc4b5=a32_0x3c55ef['language']===_0x3c1bcc(0xfd)?_0x3c1bcc(0xfd):_0x3c1bcc(0x105),_0x56364f=new Date(_0xbade64[_0x3c1bcc(0x110)])[_0x3c1bcc(0xfc)](_0x4bc4b5),_0x49054b=_0xbade64[_0x3c1bcc(0x10d)]===_0x3c1bcc(0xff)?'√':_0xbade64[_0x3c1bcc(0x10d)]==='error'?'×':_0xbade64[_0x3c1bcc(0x10d)]===_0x3c1bcc(0x114)?'!':'i';console[_0x3c1bcc(0x112)](_0x792617+0x1+'.\x20'+_0x49054b+'\x20['+_0xbade64['command']+']\x20'+_0xbade64[_0x3c1bcc(0x100)]),console[_0x3c1bcc(0x112)](t('logs.time',{'time':_0x56364f})),_0xbade64[_0x3c1bcc(0x10b)]&&console[_0x3c1bcc(0x112)](t(_0x3c1bcc(0x106),{'duration':_0xbade64['duration']})),_0xbade64[_0x3c1bcc(0x115)]&&Object[_0x3c1bcc(0x111)](_0xbade64[_0x3c1bcc(0x115)])[_0x3c1bcc(0x104)]>0x0&&console[_0x3c1bcc(0x112)](t(_0x3c1bcc(0xf5),{'details':JSON[_0x3c1bcc(0xfe)](_0xbade64['details'],null,0x2)})),console['log']('');});}export function clearLogs(){const _0x31419d=a32_0x189048;logger[_0x31419d(0xf8)](process[_0x31419d(0x108)]()),logger[_0x31419d(0x109)](),console[_0x31419d(0x112)](t(_0x31419d(0x107)));}
1
+ const a32_0x11aa3d=a32_0x3885;(function(_0x51f656,_0x40c248){const _0x2ace5f=a32_0x3885,_0x347a72=_0x51f656();while(!![]){try{const _0x5a4522=-parseInt(_0x2ace5f(0x161))/0x1*(parseInt(_0x2ace5f(0x16f))/0x2)+-parseInt(_0x2ace5f(0x171))/0x3*(parseInt(_0x2ace5f(0x162))/0x4)+parseInt(_0x2ace5f(0x172))/0x5+-parseInt(_0x2ace5f(0x159))/0x6*(parseInt(_0x2ace5f(0x15a))/0x7)+-parseInt(_0x2ace5f(0x166))/0x8*(-parseInt(_0x2ace5f(0x16c))/0x9)+-parseInt(_0x2ace5f(0x167))/0xa*(-parseInt(_0x2ace5f(0x165))/0xb)+parseInt(_0x2ace5f(0x15c))/0xc;if(_0x5a4522===_0x40c248)break;else _0x347a72['push'](_0x347a72['shift']());}catch(_0x332db8){_0x347a72['push'](_0x347a72['shift']());}}}(a32_0x1f2c,0xbdc93));import{logger}from'../utils/logger.js';function a32_0x1f2c(){const _0x53d126=['2287110QAHxkd','logs.noLogs','length','message','log','warn','logs.time','cwd','details','error','logs.cleared','setLogPath','stringify','6zbPHhg','9665558ffhtQd','logs.header','15345792tlNrPg','clearLogs','forEach','en-US','success','139694sylEOz','1187424hMVEYw','logs.details','logs.duration','44gjtgCZ','7560rQmnmo','779230NwpCco','keys','level','language','toLocaleString','13689PpoTdy','bind','duration','2CZHxUe','zh-CN','12zHVpOD'];a32_0x1f2c=function(){return _0x53d126;};return a32_0x1f2c();}function a32_0x3885(_0x2f9b17,_0x1dcd10){_0x2f9b17=_0x2f9b17-0x14f;const _0x1f2cb7=a32_0x1f2c();let _0x38857b=_0x1f2cb7[_0x2f9b17];return _0x38857b;}import a32_0x38a9cb from'../i18n/index.js';const t=a32_0x38a9cb['t'][a32_0x11aa3d(0x16d)](a32_0x38a9cb);export function showLogs(){const _0x59030e=a32_0x11aa3d;logger[_0x59030e(0x157)](process[_0x59030e(0x153)]());const _0x53a479=logger['readLogs']();if(_0x53a479[_0x59030e(0x174)]===0x0){console['log'](t(_0x59030e(0x173)));return;}console['log'](t(_0x59030e(0x15b))),_0x53a479[_0x59030e(0x15e)]((_0x32a548,_0x12059d)=>{const _0x139c60=_0x59030e,_0x5e2d3d=a32_0x38a9cb[_0x139c60(0x16a)]===_0x139c60(0x170)?_0x139c60(0x170):_0x139c60(0x15f),_0x48d3d4=new Date(_0x32a548['timestamp'])[_0x139c60(0x16b)](_0x5e2d3d),_0x13e8f5=_0x32a548[_0x139c60(0x169)]===_0x139c60(0x160)?'√':_0x32a548[_0x139c60(0x169)]===_0x139c60(0x155)?'×':_0x32a548['level']===_0x139c60(0x151)?'!':'i';console[_0x139c60(0x150)](_0x12059d+0x1+'.\x20'+_0x13e8f5+'\x20['+_0x32a548['command']+']\x20'+_0x32a548[_0x139c60(0x14f)]),console[_0x139c60(0x150)](t(_0x139c60(0x152),{'time':_0x48d3d4})),_0x32a548['duration']&&console['log'](t(_0x139c60(0x164),{'duration':_0x32a548[_0x139c60(0x16e)]})),_0x32a548[_0x139c60(0x154)]&&Object[_0x139c60(0x168)](_0x32a548['details'])[_0x139c60(0x174)]>0x0&&console[_0x139c60(0x150)](t(_0x139c60(0x163),{'details':JSON[_0x139c60(0x158)](_0x32a548[_0x139c60(0x154)],null,0x2)})),console[_0x139c60(0x150)]('');});}export function clearLogs(){const _0x974695=a32_0x11aa3d;logger[_0x974695(0x157)](process[_0x974695(0x153)]()),logger[_0x974695(0x15d)](),console[_0x974695(0x150)](t(_0x974695(0x156)));}
@@ -1 +1 @@
1
- function a33_0x57cb(_0x4d7cc8,_0x1361e4){_0x4d7cc8=_0x4d7cc8-0x1e4;const _0x6abf37=a33_0x6abf();let _0x57cb9e=_0x6abf37[_0x4d7cc8];return _0x57cb9e;}(function(_0x2b4410,_0x28ef26){const _0x11c4fa=a33_0x57cb,_0x37ff6e=_0x2b4410();while(!![]){try{const _0x345009=-parseInt(_0x11c4fa(0x1e9))/0x1*(-parseInt(_0x11c4fa(0x1f8))/0x2)+parseInt(_0x11c4fa(0x1f6))/0x3*(parseInt(_0x11c4fa(0x1e6))/0x4)+parseInt(_0x11c4fa(0x1ea))/0x5*(parseInt(_0x11c4fa(0x206))/0x6)+parseInt(_0x11c4fa(0x1e5))/0x7*(-parseInt(_0x11c4fa(0x207))/0x8)+-parseInt(_0x11c4fa(0x1fd))/0x9*(-parseInt(_0x11c4fa(0x1f1))/0xa)+-parseInt(_0x11c4fa(0x1e8))/0xb*(-parseInt(_0x11c4fa(0x1f0))/0xc)+parseInt(_0x11c4fa(0x1ff))/0xd*(-parseInt(_0x11c4fa(0x1f9))/0xe);if(_0x345009===_0x28ef26)break;else _0x37ff6e['push'](_0x37ff6e['shift']());}catch(_0x50f000){_0x37ff6e['push'](_0x37ff6e['shift']());}}}(a33_0x6abf,0x819bc));function a33_0x6abf(){const _0x3934a7=['toString','info','env','81VYUMEA','vite\x20preview\x20exited\x20with\x20code\x20','650yArElc','now','.bin','PATH','success','预览服务器启动出错','vite\x20preview','60kTOAlW','688axMiIA','cwd','14588soSQLs','384428xrCVwM','error','11adXDBv','345343jnLEPq','383055yPyOzr','node_modules','inherit','pipe','预览服务器启动失败','close','1075560LTBVJq','461710IpJich','trim','启动预览服务器','preview','data','12qMCZsc','vite','2RJtWzp','361466RzmbwA'];a33_0x6abf=function(){return _0x3934a7;};return a33_0x6abf();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x4c2281,_0x392af0)=>{const _0x233794=a33_0x57cb,_0x2ed3ef=Date[_0x233794(0x200)]();logger[_0x233794(0x1fb)](_0x233794(0x1f4),_0x233794(0x1f3),{'command':_0x233794(0x205)});let _0x4dabdf='';const _0xb369da=spawn(_0x233794(0x1f7),[_0x233794(0x1f4)],{'stdio':[_0x233794(0x1ec),_0x233794(0x1ec),_0x233794(0x1ed)],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x233794(0x1e4)](),_0x233794(0x1eb),_0x233794(0x201))+delimiter+process[_0x233794(0x1fc)][_0x233794(0x202)]}});_0xb369da['stderr']?.['on'](_0x233794(0x1f5),_0x11a1ea=>{const _0x165fa9=_0x233794;_0x4dabdf+=_0x11a1ea[_0x165fa9(0x1fa)]();}),_0xb369da['on'](_0x233794(0x1ef),_0x27ab4b=>{const _0x4a2036=_0x233794,_0x2ea1b9=Date[_0x4a2036(0x200)]()-_0x2ed3ef;if(_0x27ab4b===0x0||_0x27ab4b===null)logger[_0x4a2036(0x203)](_0x4a2036(0x1f4),'预览服务器启动成功',_0x2ea1b9),_0x4c2281();else{const _0x29a5c4={'exitCode':_0x27ab4b,'duration':_0x2ea1b9,'command':_0x4a2036(0x205),'cwd':process[_0x4a2036(0x1e4)]()};_0x4dabdf['trim']()&&(_0x29a5c4['stderr']=_0x4dabdf[_0x4a2036(0x1f2)]()),logger[_0x4a2036(0x1e7)](_0x4a2036(0x1f4),_0x4a2036(0x1ee),_0x29a5c4),_0x392af0(new Error(_0x4a2036(0x1fe)+_0x27ab4b));}}),_0xb369da['on'](_0x233794(0x1e7),_0x2d0b8e=>{const _0xacb1e7=_0x233794,_0x1c5023=Date['now']()-_0x2ed3ef;logger['error'](_0xacb1e7(0x1f4),_0xacb1e7(0x204),{'error':_0x2d0b8e['message'],'duration':_0x1c5023,'stderr':_0x4dabdf[_0xacb1e7(0x1f2)]()||undefined}),_0x392af0(_0x2d0b8e);});});}
1
+ function a33_0x1de1(){const _0x25c473=['inherit','PATH','1563570IRgqSb','vite\x20preview\x20exited\x20with\x20code\x20','4031620RITxXd','5VzqJAi','info','预览服务器启动失败','464988oZHXFy','trim','18623935XFqOgX','1074389YVZngc','.bin','1192137PbPDNQ','2NrhAfR','预览服务器启动出错','vite\x20preview','preview','toString','265528DqcQTY','now','336eOaKEh','stderr','close','12twVqnS','error','cwd','node_modules','env','success'];a33_0x1de1=function(){return _0x25c473;};return a33_0x1de1();}(function(_0x3920d7,_0x1a18e0){const _0x5a535f=a33_0x3db1,_0x5536ae=_0x3920d7();while(!![]){try{const _0x36200a=-parseInt(_0x5a535f(0x8f))/0x1*(parseInt(_0x5a535f(0x92))/0x2)+parseInt(_0x5a535f(0x91))/0x3*(-parseInt(_0x5a535f(0x9c))/0x4)+-parseInt(_0x5a535f(0x89))/0x5*(-parseInt(_0x5a535f(0x8c))/0x6)+parseInt(_0x5a535f(0x99))/0x7*(parseInt(_0x5a535f(0x97))/0x8)+parseInt(_0x5a535f(0xa4))/0x9+-parseInt(_0x5a535f(0x88))/0xa+parseInt(_0x5a535f(0x8e))/0xb;if(_0x36200a===_0x1a18e0)break;else _0x5536ae['push'](_0x5536ae['shift']());}catch(_0x214a86){_0x5536ae['push'](_0x5536ae['shift']());}}}(a33_0x1de1,0xd3dd1));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a33_0x3db1(_0x5ba877,_0x46b2de){_0x5ba877=_0x5ba877-0x87;const _0x1de1a0=a33_0x1de1();let _0x3db1ea=_0x1de1a0[_0x5ba877];return _0x3db1ea;}import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x11f187,_0x554a04)=>{const _0x5801f1=a33_0x3db1,_0x20620c=Date[_0x5801f1(0x98)]();logger[_0x5801f1(0x8a)](_0x5801f1(0x95),'启动预览服务器',{'command':'vite\x20preview'});let _0x53d47f='';const _0x1c812f=spawn('vite',[_0x5801f1(0x95)],{'stdio':[_0x5801f1(0xa2),'inherit','pipe'],'shell':!![],'env':{...process[_0x5801f1(0xa0)],'PATH':''+join(process[_0x5801f1(0x9e)](),_0x5801f1(0x9f),_0x5801f1(0x90))+delimiter+process[_0x5801f1(0xa0)][_0x5801f1(0xa3)]}});_0x1c812f[_0x5801f1(0x9a)]?.['on']('data',_0x107fdc=>{const _0x1d1dc9=_0x5801f1;_0x53d47f+=_0x107fdc[_0x1d1dc9(0x96)]();}),_0x1c812f['on'](_0x5801f1(0x9b),_0x4ee164=>{const _0x42852e=_0x5801f1,_0x187a01=Date['now']()-_0x20620c;if(_0x4ee164===0x0||_0x4ee164===null)logger[_0x42852e(0xa1)]('preview','预览服务器启动成功',_0x187a01),_0x11f187();else{const _0x4ffe53={'exitCode':_0x4ee164,'duration':_0x187a01,'command':_0x42852e(0x94),'cwd':process[_0x42852e(0x9e)]()};_0x53d47f[_0x42852e(0x8d)]()&&(_0x4ffe53['stderr']=_0x53d47f['trim']()),logger[_0x42852e(0x9d)](_0x42852e(0x95),_0x42852e(0x8b),_0x4ffe53),_0x554a04(new Error(_0x42852e(0x87)+_0x4ee164));}}),_0x1c812f['on']('error',_0x9ff5bb=>{const _0x39d66d=_0x5801f1,_0x1c79b6=Date['now']()-_0x20620c;logger['error']('preview',_0x39d66d(0x93),{'error':_0x9ff5bb['message'],'duration':_0x1c79b6,'stderr':_0x53d47f[_0x39d66d(0x8d)]()||undefined}),_0x554a04(_0x9ff5bb);});});}
@@ -1 +1 @@
1
- (function(_0x5f10c0,_0x34e5d4){const _0x275df4=a34_0x9766,_0x278164=_0x5f10c0();while(!![]){try{const _0x212ad7=parseInt(_0x275df4(0x1e9))/0x1*(-parseInt(_0x275df4(0x1d9))/0x2)+parseInt(_0x275df4(0x1f1))/0x3*(parseInt(_0x275df4(0x1eb))/0x4)+parseInt(_0x275df4(0x1de))/0x5*(-parseInt(_0x275df4(0x1e3))/0x6)+-parseInt(_0x275df4(0x1dc))/0x7+parseInt(_0x275df4(0x1db))/0x8*(parseInt(_0x275df4(0x1e6))/0x9)+-parseInt(_0x275df4(0x1ee))/0xa+-parseInt(_0x275df4(0x1f4))/0xb*(-parseInt(_0x275df4(0x1f5))/0xc);if(_0x212ad7===_0x34e5d4)break;else _0x278164['push'](_0x278164['shift']());}catch(_0x1267a0){_0x278164['push'](_0x278164['shift']());}}}(a34_0x42bf,0xe338b));import{logger}from'../utils/logger.js';function a34_0x42bf(){const _0x4ef637=['开发服务器启动成功','stderr','328273dCTZWc','1464NHfXup','exitCode','info','223232JpGxti','needsUpgrade','26584JnkRUT','1356509JjFBqJ','start','72505rIVLAT','warn','env','object','inherit','708OmQxVT','启动开发服务器','开发服务器启动失败','1503TWtLym','message','now','6zbZJhY','vite','8urqDRh','cwd','stableVersion','17254590MfUeJX','currentVersion','error','1552458oqbGnf'];a34_0x42bf=function(){return _0x4ef637;};return a34_0x42bf();}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';function a34_0x9766(_0x24e17c,_0x62359d){_0x24e17c=_0x24e17c-0x1d9;const _0x42bf9d=a34_0x42bf();let _0x976686=_0x42bf9d[_0x24e17c];return _0x976686;}import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';export async function runStart(_0x1bf968){const _0x2d5f30=a34_0x9766,_0x2635c0=Date[_0x2d5f30(0x1e8)](),_0x5c2e33=_0x1bf968||process[_0x2d5f30(0x1ec)](),_0x28e389=await checkCliVersion();_0x28e389[_0x2d5f30(0x1da)]&&(printCliUpgradeWarning(_0x28e389),logger[_0x2d5f30(0x1df)](_0x2d5f30(0x1dd),'CLI\x20版本有更新',{'currentVersion':_0x28e389[_0x2d5f30(0x1ef)],'stableVersion':_0x28e389[_0x2d5f30(0x1ed)]}));const _0x56acf2=await checkSdkVersion(_0x5c2e33);_0x56acf2['needsUpgrade']&&(printSdkUpgradeWarning(_0x56acf2),logger[_0x2d5f30(0x1df)](_0x2d5f30(0x1dd),'SDK\x20版本有更新',{'currentVersion':_0x56acf2['version'],'stableVersion':_0x56acf2[_0x2d5f30(0x1ed)]}));logger[_0x2d5f30(0x1f7)](_0x2d5f30(0x1dd),_0x2d5f30(0x1e4),{'command':_0x2d5f30(0x1ea),'cwd':_0x5c2e33});try{await execa(_0x2d5f30(0x1ea),[],{'cwd':_0x5c2e33,'stdio':_0x2d5f30(0x1e2),'preferLocal':!![],'localDir':_0x5c2e33,'env':{...process[_0x2d5f30(0x1e0)]}});const _0x5c9791=Date[_0x2d5f30(0x1e8)]()-_0x2635c0;logger['success'](_0x2d5f30(0x1dd),_0x2d5f30(0x1f2),_0x5c9791);}catch(_0x160822){const _0x249da8=Date[_0x2d5f30(0x1e8)]()-_0x2635c0,_0x55241c={'duration':_0x249da8,'command':_0x2d5f30(0x1ea),'cwd':_0x5c2e33};if(_0x160822&&typeof _0x160822===_0x2d5f30(0x1e1)){const _0x506f53=_0x160822;_0x506f53[_0x2d5f30(0x1f6)]!==undefined&&(_0x55241c['exitCode']=_0x506f53['exitCode']),_0x506f53[_0x2d5f30(0x1f3)]&&(_0x55241c[_0x2d5f30(0x1f3)]=_0x506f53[_0x2d5f30(0x1f3)]),_0x506f53['timedOut']&&(_0x55241c['timeout']=!![]),_0x506f53[_0x2d5f30(0x1e7)]&&(_0x55241c[_0x2d5f30(0x1f0)]=_0x506f53[_0x2d5f30(0x1e7)]);}logger[_0x2d5f30(0x1f0)](_0x2d5f30(0x1dd),_0x2d5f30(0x1e5),_0x55241c);throw _0x160822;}}
1
+ (function(_0xc3429,_0x1f200a){const _0x527b67=a34_0x2876,_0x5c2aa2=_0xc3429();while(!![]){try{const _0x370d5c=parseInt(_0x527b67(0x127))/0x1+-parseInt(_0x527b67(0x122))/0x2+-parseInt(_0x527b67(0x115))/0x3*(parseInt(_0x527b67(0x126))/0x4)+parseInt(_0x527b67(0x114))/0x5+-parseInt(_0x527b67(0x129))/0x6+-parseInt(_0x527b67(0x10f))/0x7+parseInt(_0x527b67(0x124))/0x8*(parseInt(_0x527b67(0x11f))/0x9);if(_0x370d5c===_0x1f200a)break;else _0x5c2aa2['push'](_0x5c2aa2['shift']());}catch(_0x1ce114){_0x5c2aa2['push'](_0x5c2aa2['shift']());}}}(a34_0x1479,0xb5e2a));function a34_0x2876(_0x5b0ef6,_0x3956e9){_0x5b0ef6=_0x5b0ef6-0x10d;const _0x14792e=a34_0x1479();let _0x287634=_0x14792e[_0x5b0ef6];return _0x287634;}import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';function a34_0x1479(){const _0x30197f=['exitCode','stableVersion','CLI\x20版本有更新','warn','135nkecCT','开发服务器启动成功','object','1057288ULtaAw','now','1762056Ceefwl','needsUpgrade','5031668MipJIy','750241vpoXax','error','5722104fcNMUT','vite','inherit','timedOut','8738919zXxdNN','SDK\x20版本有更新','currentVersion','version','开发服务器启动失败','3397840bbhQof','3ejvzrI','success','message','info','start','stderr'];a34_0x1479=function(){return _0x30197f;};return a34_0x1479();}import{execa}from'execa';export async function runStart(_0x146cc2){const _0x4b35e8=a34_0x2876,_0x3b96a8=Date[_0x4b35e8(0x123)](),_0x3930a4=_0x146cc2||process['cwd'](),_0x4c7967=await checkCliVersion();_0x4c7967[_0x4b35e8(0x125)]&&(printCliUpgradeWarning(_0x4c7967),logger[_0x4b35e8(0x11e)]('start',_0x4b35e8(0x11d),{'currentVersion':_0x4c7967[_0x4b35e8(0x111)],'stableVersion':_0x4c7967[_0x4b35e8(0x11c)]}));const _0x597cf1=await checkSdkVersion(_0x3930a4);_0x597cf1[_0x4b35e8(0x125)]&&(printSdkUpgradeWarning(_0x597cf1),logger[_0x4b35e8(0x11e)]('start',_0x4b35e8(0x110),{'currentVersion':_0x597cf1[_0x4b35e8(0x112)],'stableVersion':_0x597cf1[_0x4b35e8(0x11c)]}));logger[_0x4b35e8(0x118)]('start','启动开发服务器',{'command':_0x4b35e8(0x12a),'cwd':_0x3930a4});try{await execa(_0x4b35e8(0x12a),[],{'cwd':_0x3930a4,'stdio':_0x4b35e8(0x10d),'preferLocal':!![],'localDir':_0x3930a4,'env':{...process['env']}});const _0x5329db=Date[_0x4b35e8(0x123)]()-_0x3b96a8;logger[_0x4b35e8(0x116)](_0x4b35e8(0x119),_0x4b35e8(0x120),_0x5329db);}catch(_0x23ec48){const _0x9ff339=Date[_0x4b35e8(0x123)]()-_0x3b96a8,_0x1b7a08={'duration':_0x9ff339,'command':_0x4b35e8(0x12a),'cwd':_0x3930a4};if(_0x23ec48&&typeof _0x23ec48===_0x4b35e8(0x121)){const _0x1aa6c3=_0x23ec48;_0x1aa6c3[_0x4b35e8(0x11b)]!==undefined&&(_0x1b7a08['exitCode']=_0x1aa6c3[_0x4b35e8(0x11b)]),_0x1aa6c3[_0x4b35e8(0x11a)]&&(_0x1b7a08['stderr']=_0x1aa6c3[_0x4b35e8(0x11a)]),_0x1aa6c3[_0x4b35e8(0x10e)]&&(_0x1b7a08['timeout']=!![]),_0x1aa6c3[_0x4b35e8(0x117)]&&(_0x1b7a08[_0x4b35e8(0x128)]=_0x1aa6c3[_0x4b35e8(0x117)]);}logger[_0x4b35e8(0x128)]('start',_0x4b35e8(0x113),_0x1b7a08);throw _0x23ec48;}}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- function a35_0x4cd1(){const _0x34ff5e=['2571EuzUQR','CLI\x20版本有更新','success','now','3389690DsoPfM','99MJtaIJ','exitCode','start','version','info','开发服务器启动失败','needsUpgrade','stderr','119128WEwbDj','1546875iCAHuV','1696cggIsF','36mBUDPb','2XyYGFa','timeout','543543BnaZXV','stableVersion','267692JSrhVW','cwd','warn','启动开发服务器','object','inherit','currentVersion','196285YOqpfW','error','SDK\x20版本有更新','env','message','timedOut','vite'];a35_0x4cd1=function(){return _0x34ff5e;};return a35_0x4cd1();}(function(_0x4085d0,_0x515490){const _0x27aa98=a35_0xa1f1,_0x3c248d=_0x4085d0();while(!![]){try{const _0x53fcb2=-parseInt(_0x27aa98(0x1d4))/0x1*(-parseInt(_0x27aa98(0x1f3))/0x2)+-parseInt(_0x27aa98(0x1e2))/0x3*(-parseInt(_0x27aa98(0x1f1))/0x4)+parseInt(_0x27aa98(0x1db))/0x5*(-parseInt(_0x27aa98(0x1f2))/0x6)+-parseInt(_0x27aa98(0x1d2))/0x7+parseInt(_0x27aa98(0x1ef))/0x8*(parseInt(_0x27aa98(0x1e7))/0x9)+-parseInt(_0x27aa98(0x1e6))/0xa+parseInt(_0x27aa98(0x1f0))/0xb;if(_0x53fcb2===_0x515490)break;else _0x3c248d['push'](_0x3c248d['shift']());}catch(_0x45431e){_0x3c248d['push'](_0x3c248d['shift']());}}}(a35_0x4cd1,0x452be));import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';function a35_0xa1f1(_0x4ed006,_0x19ae67){_0x4ed006=_0x4ed006-0x1d1;const _0x4cd149=a35_0x4cd1();let _0xa1f1b9=_0x4cd149[_0x4ed006];return _0xa1f1b9;}export async function runStart(_0x10c198){const _0x1d4edd=a35_0xa1f1,_0x1cb65e=Date['now'](),_0x10d682=_0x10c198||process[_0x1d4edd(0x1d5)](),_0x6efb7=await checkCliVersion();_0x6efb7['needsUpgrade']&&(printCliUpgradeWarning(_0x6efb7),logger[_0x1d4edd(0x1d6)](_0x1d4edd(0x1e9),_0x1d4edd(0x1e3),{'currentVersion':_0x6efb7[_0x1d4edd(0x1da)],'stableVersion':_0x6efb7[_0x1d4edd(0x1d3)]}));const _0x269e2e=await checkSdkVersion(_0x10d682);_0x269e2e[_0x1d4edd(0x1ed)]&&(printSdkUpgradeWarning(_0x269e2e),logger[_0x1d4edd(0x1d6)](_0x1d4edd(0x1e9),_0x1d4edd(0x1dd),{'currentVersion':_0x269e2e[_0x1d4edd(0x1ea)],'stableVersion':_0x269e2e[_0x1d4edd(0x1d3)]}));logger[_0x1d4edd(0x1eb)](_0x1d4edd(0x1e9),_0x1d4edd(0x1d7),{'command':_0x1d4edd(0x1e1),'cwd':_0x10d682});try{await execa(_0x1d4edd(0x1e1),[],{'cwd':_0x10d682,'stdio':_0x1d4edd(0x1d9),'preferLocal':!![],'localDir':_0x10d682,'env':{...process[_0x1d4edd(0x1de)]}});const _0x5d8a2a=Date[_0x1d4edd(0x1e5)]()-_0x1cb65e;logger[_0x1d4edd(0x1e4)](_0x1d4edd(0x1e9),'开发服务器启动成功',_0x5d8a2a);}catch(_0x32ab73){const _0x23b926=Date[_0x1d4edd(0x1e5)]()-_0x1cb65e,_0x314787={'duration':_0x23b926,'command':'vite','cwd':_0x10d682};if(_0x32ab73&&typeof _0x32ab73===_0x1d4edd(0x1d8)){const _0x5ddb4c=_0x32ab73;_0x5ddb4c['exitCode']!==undefined&&(_0x314787[_0x1d4edd(0x1e8)]=_0x5ddb4c['exitCode']),_0x5ddb4c['stderr']&&(_0x314787[_0x1d4edd(0x1ee)]=_0x5ddb4c[_0x1d4edd(0x1ee)]),_0x5ddb4c[_0x1d4edd(0x1e0)]&&(_0x314787[_0x1d4edd(0x1d1)]=!![]),_0x5ddb4c['message']&&(_0x314787[_0x1d4edd(0x1dc)]=_0x5ddb4c[_0x1d4edd(0x1df)]);}logger['error'](_0x1d4edd(0x1e9),_0x1d4edd(0x1ec),_0x314787);throw _0x32ab73;}}
1
+ (function(_0x5428a5,_0x26f603){const _0x82eda8=a35_0x1dc9,_0x5776dd=_0x5428a5();while(!![]){try{const _0x97898e=-parseInt(_0x82eda8(0x13c))/0x1*(parseInt(_0x82eda8(0x133))/0x2)+-parseInt(_0x82eda8(0x13d))/0x3+parseInt(_0x82eda8(0x138))/0x4+parseInt(_0x82eda8(0x14d))/0x5+-parseInt(_0x82eda8(0x140))/0x6*(-parseInt(_0x82eda8(0x150))/0x7)+parseInt(_0x82eda8(0x147))/0x8*(-parseInt(_0x82eda8(0x134))/0x9)+parseInt(_0x82eda8(0x146))/0xa;if(_0x97898e===_0x26f603)break;else _0x5776dd['push'](_0x5776dd['shift']());}catch(_0x1cc051){_0x5776dd['push'](_0x5776dd['shift']());}}}(a35_0x23fe,0x6378b));import{logger}from'../utils/logger.js';function a35_0x1dc9(_0x3212a1,_0x2587df){_0x3212a1=_0x3212a1-0x130;const _0x23fe00=a35_0x23fe();let _0x1dc92a=_0x23fe00[_0x3212a1];return _0x1dc92a;}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';export async function runStart(_0x4a0660){const _0x2b8045=a35_0x1dc9,_0x11923f=Date[_0x2b8045(0x14c)](),_0x5b8026=_0x4a0660||process['cwd'](),_0x9e049a=await checkCliVersion();_0x9e049a[_0x2b8045(0x136)]&&(printCliUpgradeWarning(_0x9e049a),logger[_0x2b8045(0x135)](_0x2b8045(0x144),_0x2b8045(0x148),{'currentVersion':_0x9e049a[_0x2b8045(0x142)],'stableVersion':_0x9e049a[_0x2b8045(0x13f)]}));const _0x353915=await checkSdkVersion(_0x5b8026);_0x353915['needsUpgrade']&&(printSdkUpgradeWarning(_0x353915),logger['warn'](_0x2b8045(0x144),_0x2b8045(0x14f),{'currentVersion':_0x353915[_0x2b8045(0x14b)],'stableVersion':_0x353915[_0x2b8045(0x13f)]}));logger[_0x2b8045(0x132)](_0x2b8045(0x144),_0x2b8045(0x14a),{'command':'vite','cwd':_0x5b8026});try{await execa(_0x2b8045(0x13b),[],{'cwd':_0x5b8026,'stdio':_0x2b8045(0x141),'preferLocal':!![],'localDir':_0x5b8026,'env':{...process[_0x2b8045(0x131)]}});const _0x3c8c36=Date[_0x2b8045(0x14c)]()-_0x11923f;logger[_0x2b8045(0x130)](_0x2b8045(0x144),_0x2b8045(0x13a),_0x3c8c36);}catch(_0x57a720){const _0x1c7c8a=Date[_0x2b8045(0x14c)]()-_0x11923f,_0x1ed709={'duration':_0x1c7c8a,'command':_0x2b8045(0x13b),'cwd':_0x5b8026};if(_0x57a720&&typeof _0x57a720===_0x2b8045(0x149)){const _0x1c5d06=_0x57a720;_0x1c5d06['exitCode']!==undefined&&(_0x1ed709[_0x2b8045(0x145)]=_0x1c5d06[_0x2b8045(0x145)]),_0x1c5d06[_0x2b8045(0x139)]&&(_0x1ed709[_0x2b8045(0x139)]=_0x1c5d06['stderr']),_0x1c5d06[_0x2b8045(0x143)]&&(_0x1ed709[_0x2b8045(0x137)]=!![]),_0x1c5d06[_0x2b8045(0x14e)]&&(_0x1ed709[_0x2b8045(0x13e)]=_0x1c5d06['message']);}logger[_0x2b8045(0x13e)](_0x2b8045(0x144),'开发服务器启动失败',_0x1ed709);throw _0x57a720;}}function a35_0x23fe(){const _0x1f2bc6=['message','SDK\x20版本有更新','4293989cFopso','success','env','info','719830mYxvrL','441JtuVRt','warn','needsUpgrade','timeout','1879208MriGUN','stderr','开发服务器启动成功','vite','1dXhuYD','1814688eGOnFP','error','stableVersion','6wTObzX','inherit','currentVersion','timedOut','start','exitCode','7247550hXgvEl','126976qiNHBe','CLI\x20版本有更新','object','启动开发服务器','version','now','1709950XtdUqj'];a35_0x23fe=function(){return _0x1f2bc6;};return a35_0x23fe();}
@@ -1 +1 @@
1
- (function(_0x1b2abb,_0x256cb9){const _0x1554a4=a36_0x333f,_0x6a68a4=_0x1b2abb();while(!![]){try{const _0x365072=parseInt(_0x1554a4(0x1a8))/0x1*(parseInt(_0x1554a4(0x1a2))/0x2)+parseInt(_0x1554a4(0x1ab))/0x3*(-parseInt(_0x1554a4(0x1a7))/0x4)+-parseInt(_0x1554a4(0x197))/0x5+-parseInt(_0x1554a4(0x192))/0x6*(-parseInt(_0x1554a4(0x199))/0x7)+-parseInt(_0x1554a4(0x190))/0x8+-parseInt(_0x1554a4(0x1aa))/0x9+parseInt(_0x1554a4(0x19f))/0xa*(parseInt(_0x1554a4(0x196))/0xb);if(_0x365072===_0x256cb9)break;else _0x6a68a4['push'](_0x6a68a4['shift']());}catch(_0x4b2950){_0x6a68a4['push'](_0x6a68a4['shift']());}}}(a36_0x17f4,0x2deaa));function a36_0x17f4(){const _0xb007c8=['lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','2695WtyRmG','config.help.invalidCommand','config.help.exampleEnv','config.help.list','\x20*\x20','command','70lSKLew','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','config.help.set','652514xrxVqg','description','column','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','config.help.examples','492wwQuaY','1aXmxPj','\x20\x20\x20\x20','328914fcHtcs','3531uOxoOP','1711544oAYFDh','config.help.exampleLocale','2334MLVtDT','map','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','518936ZoUczh','1114600UhsMFG'];a36_0x17f4=function(){return _0xb007c8;};return a36_0x17f4();}function a36_0x333f(_0xf46bba,_0x5acd96){_0xf46bba=_0xf46bba-0x190;const _0x17f4f0=a36_0x17f4();let _0x333fdc=_0x17f4f0[_0xf46bba];return _0x333fdc;}import{jsxs as a36_0x1a9595,jsx as a36_0x69edda}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';export function ConfigHelp(){const _0x3c2947=a36_0x333f,{t:_0x56b5e0}=useI18n(),_0x752215=[{'command':_0x3c2947(0x1a0),'description':_0x56b5e0(_0x3c2947(0x1a1))},{'command':_0x3c2947(0x194),'description':_0x56b5e0('config.help.get')},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x56b5e0(_0x3c2947(0x19c))}],_0x146466=[{'command':_0x3c2947(0x1a5),'description':_0x56b5e0('config.help.exampleApp')},{'command':_0x3c2947(0x198),'description':_0x56b5e0(_0x3c2947(0x19b))},{'command':'lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','description':_0x56b5e0(_0x3c2947(0x191))}];return a36_0x1a9595(Box,{'flexDirection':_0x3c2947(0x1a4),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0x69edda(Box,{'marginBottom':0x1,'children':a36_0x1a9595(Text,{'color':'gray','children':['\x20','!','\x20\x20',_0x56b5e0(_0x3c2947(0x19a))]})}),_0x752215[_0x3c2947(0x193)](_0x502436=>a36_0x1a9595(Box,{'children':[a36_0x1a9595(Text,{'children':['\x20\x20\x20\x20',_0x502436['command']]}),a36_0x69edda(Text,{'color':_0x3c2947(0x195),'children':_0x502436[_0x3c2947(0x1a3)]})]},_0x502436[_0x3c2947(0x19e)])),a36_0x69edda(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0x1a9595(Text,{'color':_0x3c2947(0x195),'children':[_0x3c2947(0x19d),_0x56b5e0(_0x3c2947(0x1a6))]})}),_0x146466[_0x3c2947(0x193)](_0x596e7f=>a36_0x1a9595(Box,{'children':[a36_0x1a9595(Text,{'children':[_0x3c2947(0x1a9),_0x596e7f[_0x3c2947(0x19e)]]}),a36_0x69edda(Text,{'color':_0x3c2947(0x195),'children':_0x596e7f[_0x3c2947(0x1a3)]})]},_0x596e7f['command']))]});}
1
+ (function(_0x214a3a,_0x1444aa){const _0x4860e3=a36_0x173e,_0x42b717=_0x214a3a();while(!![]){try{const _0x523d9e=-parseInt(_0x4860e3(0x1e1))/0x1+parseInt(_0x4860e3(0x1f2))/0x2*(-parseInt(_0x4860e3(0x1fa))/0x3)+parseInt(_0x4860e3(0x1f4))/0x4+-parseInt(_0x4860e3(0x1e9))/0x5*(-parseInt(_0x4860e3(0x1ef))/0x6)+parseInt(_0x4860e3(0x1f7))/0x7+-parseInt(_0x4860e3(0x1e7))/0x8*(-parseInt(_0x4860e3(0x1fb))/0x9)+-parseInt(_0x4860e3(0x1e5))/0xa;if(_0x523d9e===_0x1444aa)break;else _0x42b717['push'](_0x42b717['shift']());}catch(_0x496a64){_0x42b717['push'](_0x42b717['shift']());}}}(a36_0x4be8,0x2a3b0));import{jsxs as a36_0x2da8eb,jsx as a36_0x400b43}from'react/jsx-runtime';import{Box,Text}from'ink';function a36_0x4be8(){const _0x35aef6=['134794UATQto','config.help.list','301872qZXpVF','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','config.help.exampleEnv','977718FfHqac','config.help.get','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','3stBiGj','27SQLCTe','config.help.set','108031MpIGUu','command','config.help.exampleApp','\x20*\x20','2385730wtbQRY','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','158760vPoOfh','config.help.invalidCommand','4500wPPoAN','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','\x20\x20\x20\x20','description','gray','2082LhSLOQ','map','config.help.examples'];a36_0x4be8=function(){return _0x35aef6;};return a36_0x4be8();}import{useI18n}from'../i18n/hooks.js';function a36_0x173e(_0xd65336,_0x125395){_0xd65336=_0xd65336-0x1e0;const _0x4be8ad=a36_0x4be8();let _0x173ea3=_0x4be8ad[_0xd65336];return _0x173ea3;}export function ConfigHelp(){const _0x46fc2d=a36_0x173e,{t:_0x49c0de}=useI18n(),_0x11772d=[{'command':_0x46fc2d(0x1eb),'description':_0x49c0de(_0x46fc2d(0x1e0))},{'command':_0x46fc2d(0x1e6),'description':_0x49c0de(_0x46fc2d(0x1f8))},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x49c0de(_0x46fc2d(0x1f3))}],_0x4d4aa3=[{'command':_0x46fc2d(0x1ea),'description':_0x49c0de(_0x46fc2d(0x1e3))},{'command':_0x46fc2d(0x1f9),'description':_0x49c0de(_0x46fc2d(0x1f6))},{'command':_0x46fc2d(0x1f5),'description':_0x49c0de('config.help.exampleLocale')}];return a36_0x2da8eb(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a36_0x400b43(Box,{'marginBottom':0x1,'children':a36_0x2da8eb(Text,{'color':_0x46fc2d(0x1ee),'children':['\x20','!','\x20\x20',_0x49c0de(_0x46fc2d(0x1e8))]})}),_0x11772d[_0x46fc2d(0x1f0)](_0x32066a=>a36_0x2da8eb(Box,{'children':[a36_0x2da8eb(Text,{'children':[_0x46fc2d(0x1ec),_0x32066a['command']]}),a36_0x400b43(Text,{'color':_0x46fc2d(0x1ee),'children':_0x32066a['description']})]},_0x32066a[_0x46fc2d(0x1e2)])),a36_0x400b43(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0x2da8eb(Text,{'color':'gray','children':[_0x46fc2d(0x1e4),_0x49c0de(_0x46fc2d(0x1f1))]})}),_0x4d4aa3['map'](_0x2c0d41=>a36_0x2da8eb(Box,{'children':[a36_0x2da8eb(Text,{'children':[_0x46fc2d(0x1ec),_0x2c0d41[_0x46fc2d(0x1e2)]]}),a36_0x400b43(Text,{'color':_0x46fc2d(0x1ee),'children':_0x2c0d41[_0x46fc2d(0x1ed)]})]},_0x2c0d41[_0x46fc2d(0x1e2)]))]});}
@@ -1 +1 @@
1
- (function(_0x524715,_0x28e7bb){const _0x4f575a=a37_0x3678,_0x57c76a=_0x524715();while(!![]){try{const _0x497650=parseInt(_0x4f575a(0x138))/0x1+parseInt(_0x4f575a(0x116))/0x2*(-parseInt(_0x4f575a(0x121))/0x3)+parseInt(_0x4f575a(0x139))/0x4+parseInt(_0x4f575a(0x141))/0x5+parseInt(_0x4f575a(0x13d))/0x6+-parseInt(_0x4f575a(0x12d))/0x7*(-parseInt(_0x4f575a(0x125))/0x8)+parseInt(_0x4f575a(0x13e))/0x9*(-parseInt(_0x4f575a(0x11f))/0xa);if(_0x497650===_0x28e7bb)break;else _0x57c76a['push'](_0x57c76a['shift']());}catch(_0x1852c8){_0x57c76a['push'](_0x57c76a['shift']());}}}(a37_0x2fc5,0xab20a));import{jsx as a37_0x507143,jsxs as a37_0x3d12ca}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x5e7b5b from'node:fs';import a37_0x5628a6 from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';function a37_0x3678(_0x42fd36,_0x4a4f8d){_0x42fd36=_0x42fd36-0x114;const _0x2fc54a=a37_0x2fc5();let _0x367896=_0x2fc54a[_0x42fd36];return _0x367896;}import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';export function Config(_0x350b28){const _0x2dc860=a37_0x3678,{cli:_0x219534}=_0x350b28,{t:_0x5aedfa}=useI18n(),_0x2147e9=_0x219534[_0x2dc860(0x12b)][0x1],_0x28dc3f=_0x219534[_0x2dc860(0x12b)][0x2],_0x526f24=[_0x2dc860(0x114),_0x2dc860(0x12a)]['includes'](_0x2147e9||''),_0x472736=_0x219534[_0x2dc860(0x12b)][_0x2dc860(0x134)]>=0x3;if(_0x28dc3f===_0x2dc860(0x126)||_0x219534[_0x2dc860(0x132)][_0x2dc860(0x11a)])return a37_0x507143(ConfigHelp,{});const _0x30b96d=readConfig();if(_0x2147e9===_0x2dc860(0x114)){if(_0x28dc3f){const _0x419cb6=_0x219534[_0x2dc860(0x12b)][0x3];if(typeof _0x419cb6!==_0x2dc860(0x12c)){if(_0x28dc3f===_0x2dc860(0x140)&&![_0x2dc860(0x127),'daily'][_0x2dc860(0x117)](_0x419cb6))return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':'red','children':_0x5aedfa(_0x2dc860(0x13f))})});if(_0x28dc3f==='locale'&&!normalizeLocale(_0x419cb6))return a37_0x507143(Box,{'flexDirection':_0x2dc860(0x137),'children':a37_0x507143(Text,{'color':_0x2dc860(0x135),'children':_0x5aedfa('config.validation.localeInvalid')})});const _0x3b7880=isInProject(),_0x483a9b=_0x3b7880?projectConfigPath:globalConfigPath;let _0x414d69={};try{if(existsSync(_0x483a9b)){const _0x31614f=readFileSync(_0x483a9b,{'encoding':_0x2dc860(0x128)});_0x31614f&&(_0x414d69=JSON['parse'](_0x31614f));}}catch(_0x6c242c){}if(typeof _0x419cb6!==_0x2dc860(0x13a)||_0x419cb6['length']>0x1f4)return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':'red','children':_0x5aedfa(_0x2dc860(0x129))})});let _0x4a4098=_0x28dc3f,_0x2edb16=_0x419cb6;_0x28dc3f===_0x2dc860(0x11e)&&(_0x4a4098=_0x2dc860(0x131),delete _0x414d69[_0x2dc860(0x11e)]);_0x28dc3f===_0x2dc860(0x131)&&delete _0x414d69[_0x2dc860(0x11e)];_0x28dc3f===_0x2dc860(0x123)&&(_0x2edb16=normalizeLocale(_0x419cb6));_0x414d69[_0x4a4098]=_0x2edb16;try{const _0x20569c=a37_0x5628a6[_0x2dc860(0x118)](_0x483a9b);!existsSync(_0x20569c)&&a37_0x5e7b5b[_0x2dc860(0x120)](_0x20569c,{'recursive':!![]});const _0x2d725e=_0x483a9b+_0x2dc860(0x136);writeFileSync(_0x2d725e,JSON['stringify'](_0x414d69,null,0x2),{'encoding':'utf8','mode':0x180}),a37_0x5e7b5b[_0x2dc860(0x115)](_0x2d725e,_0x483a9b);const _0xaf54f9=_0x5aedfa(_0x3b7880?_0x2dc860(0x11b):_0x2dc860(0x11d));_0x28dc3f===_0x2dc860(0x140)&&console[_0x2dc860(0x133)](_0x5aedfa(_0x2dc860(0x124),{'scope':_0xaf54f9,'value':_0x419cb6}));if(_0x28dc3f===_0x2dc860(0x123)){const _0xc68a54=normalizeLocale(_0x419cb6);console[_0x2dc860(0x133)](_0x5aedfa('config.success.localeSet',{'scope':_0xaf54f9,'value':_0xc68a54}));}}catch(_0x4b3710){const _0x5507ef=_0x483a9b+'.tmp';try{existsSync(_0x5507ef)&&a37_0x5e7b5b[_0x2dc860(0x11c)](_0x5507ef);}catch(_0x304356){}return logger[_0x2dc860(0x12f)](_0x2dc860(0x13c),'保存配置失败',{'error':_0x4b3710 instanceof Error?_0x4b3710[_0x2dc860(0x122)]:String(_0x4b3710),'configKey':_0x28dc3f,'configValue':_0x419cb6,'targetConfigPath':_0x483a9b}),a37_0x507143(Box,{'children':a37_0x3d12ca(Text,{'color':_0x2dc860(0x135),'children':[_0x5aedfa(_0x2dc860(0x13b)),':','\x20',_0x4b3710 instanceof Error?_0x4b3710[_0x2dc860(0x122)]:String(_0x4b3710)]})});}return null;}return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':_0x2dc860(0x135),'children':_0x5aedfa(_0x2dc860(0x130))})});}}if(_0x2147e9===_0x2dc860(0x12a)){if(_0x28dc3f){let _0x4c17f1=_0x28dc3f;return _0x28dc3f===_0x2dc860(0x11e)&&(_0x4c17f1=_0x2dc860(0x131)),console['log'](_0x30b96d[_0x4c17f1]||_0x2dc860(0x12c)),null;}return null;}if(_0x2147e9===_0x2dc860(0x12e))return console[_0x2dc860(0x133)](JSON[_0x2dc860(0x119)](_0x30b96d,null,0x2)),null;if(!_0x526f24||!_0x472736)return a37_0x507143(ConfigHelp,{});return null;}function a37_0x2fc5(){const _0x451f6=['appcode','flags','log','length','red','.tmp','column','664898LCzLlj','1066312KncPlu','string','config.validation.saveFailed','config','7634352joAlbk','1872054HavEYN','config.validation.envInvalid','env','5392550xDOHBc','set','renameSync','108vUVqNa','includes','dirname','stringify','help','config.scope.project','unlinkSync','config.scope.global','app','170YhIZvo','mkdirSync','13380MrppbZ','message','locale','config.success.envSet','176OOLkRb','--help','online','utf8','config.validation.valueInvalid','get','input','undefined','380387TNpJeo','list','error','config.validation.noValue'];a37_0x2fc5=function(){return _0x451f6;};return a37_0x2fc5();}
1
+ (function(_0x50def6,_0x2c56c2){const _0x4c1ab9=a37_0x4e58,_0x28d3bc=_0x50def6();while(!![]){try{const _0x3babff=-parseInt(_0x4c1ab9(0x18f))/0x1+-parseInt(_0x4c1ab9(0x19a))/0x2*(parseInt(_0x4c1ab9(0x1a3))/0x3)+-parseInt(_0x4c1ab9(0x1ad))/0x4+parseInt(_0x4c1ab9(0x194))/0x5*(parseInt(_0x4c1ab9(0x1a8))/0x6)+parseInt(_0x4c1ab9(0x19f))/0x7+-parseInt(_0x4c1ab9(0x1a5))/0x8+parseInt(_0x4c1ab9(0x1b2))/0x9*(parseInt(_0x4c1ab9(0x1a7))/0xa);if(_0x3babff===_0x2c56c2)break;else _0x28d3bc['push'](_0x28d3bc['shift']());}catch(_0x4f5bff){_0x28d3bc['push'](_0x28d3bc['shift']());}}}(a37_0x16c5,0xe829f));import{jsx as a37_0x172aed,jsxs as a37_0x529a61}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x3b7f65 from'node:fs';import a37_0x410997 from'node:path';import{ConfigHelp}from'./config-help.js';function a37_0x16c5(){const _0x28d698=['30FuMluo','保存配置失败','locale','column','message','1834092ImUuna','list','config.scope.project','set','daily','7641Uuplqe','--help','config.scope.global','config.success.localeSet','error','input','config.success.envSet','red','includes','env','unlinkSync','334179ltZUfo','length','utf8','config.validation.localeInvalid','parse','556735EAKDTq','string','config.validation.saveFailed','dirname','stringify','undefined','54342fjMeID','appcode','help','get','app','1087058DMosfb','log','flags','mkdirSync','174qAkEqn','config.validation.envInvalid','10539144huVhSI','.tmp','46230aAnsDD'];a37_0x16c5=function(){return _0x28d698;};return a37_0x16c5();}import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';function a37_0x4e58(_0x44facd,_0x5c4828){_0x44facd=_0x44facd-0x186;const _0x16c547=a37_0x16c5();let _0x4e5812=_0x16c547[_0x44facd];return _0x4e5812;}export function Config(_0x1ed338){const _0x1d00a2=a37_0x4e58,{cli:_0x326da6}=_0x1ed338,{t:_0x3d997e}=useI18n(),_0x142c47=_0x326da6[_0x1d00a2(0x189)][0x1],_0x466c8c=_0x326da6['input'][0x2],_0x174405=[_0x1d00a2(0x1b0),_0x1d00a2(0x19d)][_0x1d00a2(0x18c)](_0x142c47||''),_0x1b8c70=_0x326da6[_0x1d00a2(0x189)][_0x1d00a2(0x190)]>=0x3;if(_0x466c8c===_0x1d00a2(0x1b3)||_0x326da6[_0x1d00a2(0x1a1)][_0x1d00a2(0x19c)])return a37_0x172aed(ConfigHelp,{});const _0x4041a8=readConfig();if(_0x142c47===_0x1d00a2(0x1b0)){if(_0x466c8c){const _0x12fa6d=_0x326da6['input'][0x3];if(typeof _0x12fa6d!==_0x1d00a2(0x199)){if(_0x466c8c===_0x1d00a2(0x18d)&&!['online',_0x1d00a2(0x1b1)]['includes'](_0x12fa6d))return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e(_0x1d00a2(0x1a4))})});if(_0x466c8c===_0x1d00a2(0x1aa)&&!normalizeLocale(_0x12fa6d))return a37_0x172aed(Box,{'flexDirection':_0x1d00a2(0x1ab),'children':a37_0x172aed(Text,{'color':'red','children':_0x3d997e(_0x1d00a2(0x192))})});const _0x46b6f9=isInProject(),_0x469f3b=_0x46b6f9?projectConfigPath:globalConfigPath;let _0xf9bdc8={};try{if(existsSync(_0x469f3b)){const _0x4d2d89=readFileSync(_0x469f3b,{'encoding':_0x1d00a2(0x191)});_0x4d2d89&&(_0xf9bdc8=JSON[_0x1d00a2(0x193)](_0x4d2d89));}}catch(_0x491708){}if(typeof _0x12fa6d!==_0x1d00a2(0x195)||_0x12fa6d[_0x1d00a2(0x190)]>0x1f4)return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e('config.validation.valueInvalid')})});let _0x53a649=_0x466c8c,_0x10e319=_0x12fa6d;_0x466c8c==='app'&&(_0x53a649='appcode',delete _0xf9bdc8[_0x1d00a2(0x19e)]);_0x466c8c==='appcode'&&delete _0xf9bdc8[_0x1d00a2(0x19e)];_0x466c8c===_0x1d00a2(0x1aa)&&(_0x10e319=normalizeLocale(_0x12fa6d));_0xf9bdc8[_0x53a649]=_0x10e319;try{const _0x584010=a37_0x410997[_0x1d00a2(0x197)](_0x469f3b);!existsSync(_0x584010)&&a37_0x3b7f65[_0x1d00a2(0x1a2)](_0x584010,{'recursive':!![]});const _0x5117a=_0x469f3b+_0x1d00a2(0x1a6);writeFileSync(_0x5117a,JSON[_0x1d00a2(0x198)](_0xf9bdc8,null,0x2),{'encoding':_0x1d00a2(0x191),'mode':0x180}),a37_0x3b7f65['renameSync'](_0x5117a,_0x469f3b);const _0x513262=_0x3d997e(_0x46b6f9?_0x1d00a2(0x1af):_0x1d00a2(0x186));_0x466c8c===_0x1d00a2(0x18d)&&console[_0x1d00a2(0x1a0)](_0x3d997e(_0x1d00a2(0x18a),{'scope':_0x513262,'value':_0x12fa6d}));if(_0x466c8c==='locale'){const _0x8e1c77=normalizeLocale(_0x12fa6d);console[_0x1d00a2(0x1a0)](_0x3d997e(_0x1d00a2(0x187),{'scope':_0x513262,'value':_0x8e1c77}));}}catch(_0x521d6c){const _0x1e0cdc=_0x469f3b+'.tmp';try{existsSync(_0x1e0cdc)&&a37_0x3b7f65[_0x1d00a2(0x18e)](_0x1e0cdc);}catch(_0xab9e74){}return logger[_0x1d00a2(0x188)]('config',_0x1d00a2(0x1a9),{'error':_0x521d6c instanceof Error?_0x521d6c[_0x1d00a2(0x1ac)]:String(_0x521d6c),'configKey':_0x466c8c,'configValue':_0x12fa6d,'targetConfigPath':_0x469f3b}),a37_0x172aed(Box,{'children':a37_0x529a61(Text,{'color':_0x1d00a2(0x18b),'children':[_0x3d997e(_0x1d00a2(0x196)),':','\x20',_0x521d6c instanceof Error?_0x521d6c[_0x1d00a2(0x1ac)]:String(_0x521d6c)]})});}return null;}return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e('config.validation.noValue')})});}}if(_0x142c47==='get'){if(_0x466c8c){let _0x25ec5c=_0x466c8c;return _0x466c8c==='app'&&(_0x25ec5c=_0x1d00a2(0x19b)),console['log'](_0x4041a8[_0x25ec5c]||'undefined'),null;}return null;}if(_0x142c47===_0x1d00a2(0x1ae))return console['log'](JSON['stringify'](_0x4041a8,null,0x2)),null;if(!_0x174405||!_0x1b8c70)return a37_0x172aed(ConfigHelp,{});return null;}
@@ -1 +1 @@
1
- const a38_0x303669=a38_0x36c3;(function(_0x59bfb5,_0x38783c){const _0x47b067=a38_0x36c3,_0x25281f=_0x59bfb5();while(!![]){try{const _0x4f5ec4=parseInt(_0x47b067(0x168))/0x1*(parseInt(_0x47b067(0x163))/0x2)+-parseInt(_0x47b067(0x165))/0x3*(parseInt(_0x47b067(0x161))/0x4)+parseInt(_0x47b067(0x167))/0x5+parseInt(_0x47b067(0x15f))/0x6*(parseInt(_0x47b067(0x166))/0x7)+parseInt(_0x47b067(0x169))/0x8+parseInt(_0x47b067(0x162))/0x9+-parseInt(_0x47b067(0x164))/0xa;if(_0x4f5ec4===_0x38783c)break;else _0x25281f['push'](_0x25281f['shift']());}catch(_0x2db75c){_0x25281f['push'](_0x25281f['shift']());}}}(a38_0x3532,0xd111c));function a38_0x3532(){const _0x2db4dc=['12772510qpNgUR','627vDGeZy','4277bCcjIq','5364360DpfPtM','2NhRBZE','8483128feSaMR','online','https://daily-api.lovrabet.com','1590HcLERB','https://api.lovrabet.com','28076ZfBlyX','5061960umRZZj','742952uPQzfe'];a38_0x3532=function(){return _0x2db4dc;};return a38_0x3532();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x303669(0x16a)?'https://user.lovrabet.com':'https://user-daily.lovrabet.com';function a38_0x36c3(_0x260d09,_0x89de51){_0x260d09=_0x260d09-0x15f;const _0x353269=a38_0x3532();let _0x36c32a=_0x353269[_0x260d09];return _0x36c32a;}export const getApiDomain=()=>getEnv()===a38_0x303669(0x16a)?a38_0x303669(0x160):a38_0x303669(0x16b);
1
+ const a38_0x255613=a38_0xe4fd;(function(_0x348d61,_0x56382d){const _0x2b39bc=a38_0xe4fd,_0x43cff8=_0x348d61();while(!![]){try{const _0x416ebc=parseInt(_0x2b39bc(0x103))/0x1+-parseInt(_0x2b39bc(0x107))/0x2*(parseInt(_0x2b39bc(0x10b))/0x3)+parseInt(_0x2b39bc(0x109))/0x4*(parseInt(_0x2b39bc(0x10a))/0x5)+-parseInt(_0x2b39bc(0x105))/0x6*(parseInt(_0x2b39bc(0x102))/0x7)+-parseInt(_0x2b39bc(0xfe))/0x8+-parseInt(_0x2b39bc(0x101))/0x9*(parseInt(_0x2b39bc(0x108))/0xa)+parseInt(_0x2b39bc(0x104))/0xb;if(_0x416ebc===_0x56382d)break;else _0x43cff8['push'](_0x43cff8['shift']());}catch(_0x420f65){_0x43cff8['push'](_0x43cff8['shift']());}}}(a38_0xca15,0x5054f));function a38_0xe4fd(_0x1ede8b,_0x4c7513){_0x1ede8b=_0x1ede8b-0xfe;const _0xca153a=a38_0xca15();let _0xe4fd4f=_0xca153a[_0x1ede8b];return _0xe4fd4f;}function a38_0xca15(){const _0x547fac=['96GRZzHa','3259472IwPdUA','https://user.lovrabet.com','online','6444dQTuXZ','8092HHUrZf','64136WEZjmK','9776877twgagU','2598aHqhWP','https://api.lovrabet.com','21306knBTQE','220rfZauo','116RjmwzF','110470GQZiPc'];a38_0xca15=function(){return _0x547fac;};return a38_0xca15();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x255613(0x100)?a38_0x255613(0xff):'https://user-daily.lovrabet.com';export const getApiDomain=()=>getEnv()==='online'?a38_0x255613(0x106):'https://daily-api.lovrabet.com';
@@ -1 +1 @@
1
- const a39_0x100eb1=a39_0x1265;(function(_0x308a84,_0x500ef3){const _0x1ee099=a39_0x1265,_0x1d810a=_0x308a84();while(!![]){try{const _0x2f5f15=parseInt(_0x1ee099(0xd2))/0x1+parseInt(_0x1ee099(0xdc))/0x2*(-parseInt(_0x1ee099(0xd5))/0x3)+parseInt(_0x1ee099(0xd8))/0x4+parseInt(_0x1ee099(0xde))/0x5*(parseInt(_0x1ee099(0xdb))/0x6)+parseInt(_0x1ee099(0xdf))/0x7*(-parseInt(_0x1ee099(0xd7))/0x8)+-parseInt(_0x1ee099(0xe0))/0x9*(parseInt(_0x1ee099(0xd4))/0xa)+-parseInt(_0x1ee099(0xd3))/0xb*(-parseInt(_0x1ee099(0xdd))/0xc);if(_0x2f5f15===_0x500ef3)break;else _0x1d810a['push'](_0x1d810a['shift']());}catch(_0x163b88){_0x1d810a['push'](_0x1d810a['shift']());}}}(a39_0x2413,0xd9e5a));let env=process[a39_0x100eb1(0xd6)][a39_0x100eb1(0xd9)]||a39_0x100eb1(0xda);export function getEnv(){return env;}function a39_0x1265(_0xdb6de3,_0x2807d1){_0xdb6de3=_0xdb6de3-0xd2;const _0x24138c=a39_0x2413();let _0x126540=_0x24138c[_0xdb6de3];return _0x126540;}function a39_0x2413(){const _0x47bca9=['env','688mGBevC','491500wAczwM','LOVRABET_ENV','online','188274CpULgd','358wqhQuf','156CiCfPa','15SeHXdg','106351OtJwxb','4679253EOvBRD','1578173dalzVx','1789381oAVebz','10hZkGvO','19959SZKyOL'];a39_0x2413=function(){return _0x47bca9;};return a39_0x2413();}export function initEnv(_0x580947){env=_0x580947;}
1
+ const a39_0xb640af=a39_0x4b1f;(function(_0x345954,_0x4f9d63){const _0x39cdb1=a39_0x4b1f,_0x3086e1=_0x345954();while(!![]){try{const _0x4f286e=-parseInt(_0x39cdb1(0x1e2))/0x1*(-parseInt(_0x39cdb1(0x1e7))/0x2)+-parseInt(_0x39cdb1(0x1de))/0x3+parseInt(_0x39cdb1(0x1e0))/0x4*(parseInt(_0x39cdb1(0x1e4))/0x5)+parseInt(_0x39cdb1(0x1e1))/0x6+parseInt(_0x39cdb1(0x1e9))/0x7*(parseInt(_0x39cdb1(0x1df))/0x8)+-parseInt(_0x39cdb1(0x1dd))/0x9+-parseInt(_0x39cdb1(0x1e6))/0xa;if(_0x4f286e===_0x4f9d63)break;else _0x3086e1['push'](_0x3086e1['shift']());}catch(_0xc86c1){_0x3086e1['push'](_0x3086e1['shift']());}}}(a39_0x4890,0x6c390));function a39_0x4890(){const _0x364ebb=['5285ncegBt','554895boHfAl','735948fyVdJx','2672NOoPvo','8bxWAFK','289836gYRUtB','1wqkyAQ','env','898645FqlcHn','online','784860OpNekb','337606OMLRht','LOVRABET_ENV'];a39_0x4890=function(){return _0x364ebb;};return a39_0x4890();}let env=process[a39_0xb640af(0x1e3)][a39_0xb640af(0x1e8)]||a39_0xb640af(0x1e5);function a39_0x4b1f(_0x353b39,_0x467e51){_0x353b39=_0x353b39-0x1dd;const _0x4890e7=a39_0x4890();let _0x4b1f9f=_0x4890e7[_0x353b39];return _0x4b1f9f;}export function getEnv(){return env;}export function initEnv(_0x40f77c){env=_0x40f77c;}
@@ -1 +1 @@
1
- const a40_0x549915=a40_0x1910;(function(_0x318825,_0x959672){const _0xd8ac3d=a40_0x1910,_0x5f4180=_0x318825();while(!![]){try{const _0x54715e=-parseInt(_0xd8ac3d(0xca))/0x1*(parseInt(_0xd8ac3d(0x9c))/0x2)+-parseInt(_0xd8ac3d(0xe0))/0x3+parseInt(_0xd8ac3d(0xc8))/0x4+parseInt(_0xd8ac3d(0x99))/0x5*(parseInt(_0xd8ac3d(0xb8))/0x6)+-parseInt(_0xd8ac3d(0x8d))/0x7+parseInt(_0xd8ac3d(0xd5))/0x8*(parseInt(_0xd8ac3d(0xb3))/0x9)+-parseInt(_0xd8ac3d(0xd8))/0xa*(-parseInt(_0xd8ac3d(0xb9))/0xb);if(_0x54715e===_0x959672)break;else _0x5f4180['push'](_0x5f4180['shift']());}catch(_0x5374a1){_0x5f4180['push'](_0x5f4180['shift']());}}}(a40_0x101d,0x903bd));import{jsx as a40_0xb68a7c,jsxs as a40_0x22762c,Fragment as a40_0x7d675a}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';function a40_0x1910(_0x42ec60,_0x4ec0ef){_0x42ec60=_0x42ec60-0x87;const _0x101d4a=a40_0x101d();let _0x1910b2=_0x101d4a[_0x42ec60];return _0x1910b2;}import{existsSync}from'node:fs';import a40_0xcc49c1 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';function a40_0x101d(){const _0x3edf9d=['return','create.login.inProgress','[✓]','slice','opencode','create.input.projectName.label','login-prompt','create.common.selectHint','red','create.steps.appCode.label','login-check','leftArrow','\x20←\x20','delete','column','create.lovrabetSetup.selectIdeHint','create.login.notDetected','step','5172246YkxziD','create.validation.projectName.invalid','create.steps.login.loggedIn','api-pull','create.validation.appCode.tooLong','304926lgBfTj','13310PhHmcK','test','green','env','create.steps.login.failed','windsurf','cyan','codebuddy','create.title','cline','create.steps.appCode.notSet','create.completedStep','login-process','downArrow','create.lovrabetSetup.keyboardShortcuts','3482064ZMEWVL','project-name','125382hCTKKi','includes','cursor','description','lovrabet-setup','create.login.inProgressStatus','create.validation.appCode.invalid','map','create.steps.login.label','has','length','8KMFEvc','claude','create.login.checking','11110rIqrkA','online','confirm-api-pull','upArrow','[\x20]','create.steps.login.skipped','gray','add','3196398aAICrg','create.common.no','yellow','antigravity','cwd','my-app','Yes','creating','create.validation.projectName.dirExists','create.login.prompt','create.steps.apiPull.label','from','lovrabet-setup-selection','create.input.projectName.hint','string','389592jnUYOK','create.apiPull.recommendation','value','create.login.valid','white','create.steps.lovrabetSetup.label','create.lovrabetSetup.selectIdeTitle','rightArrow','label','app-code','create.creating','backspace','5vwlywl','create.input.appCode.label','create.validation.projectName.dirExistsShort','18MQatlV','agent','trae','login','trim'];a40_0x101d=function(){return _0x3edf9d;};return a40_0x101d();}import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=[a40_0x549915(0xe3),a40_0x549915(0xd6),a40_0x549915(0xc2),a40_0x549915(0xc0),'codex',a40_0x549915(0xcc),a40_0x549915(0xa5),'qoder',a40_0x549915(0x9e),a40_0x549915(0xbe),a40_0x549915(0x9d)],UI_MCP_IDES=new Set(Array[a40_0x549915(0x89)](MCP_IDES));export function EnhancedGuidedCreate(_0x4ea4cf){const _0x41a2dc=a40_0x549915,{onCreate:_0xa91d41,env:_0x2807e5}=_0x4ea4cf,{t:_0x177495}=useI18n(),[_0x4bc429,_0x521be5]=useState(_0x41a2dc(0xc9)),[_0x128649,_0x4c4c8c]=useState(''),[_0x148d74,_0x260128]=useState(''),[_0x1a7d2b,_0x535ea3]=useState(''),[_0x56274c,_0x264f70]=useState(''),[_0x341baf,_0x2bea19]=useState([]),[_0x48501e,_0x2b5bcc]=useState(null),[_0x477952,_0x5cb4ee]=useState(![]),[_0x750e3e,_0x252624]=useState(![]),[_0x20ba42,_0x1f3c27]=useState(![]),[_0x45ba3e,_0x589dd2]=useState(0x0),[_0x311d37,_0x49bb61]=useState(0x0),[_0x337e5a,_0xce54c0]=useState(0x0),[_0x40041f,_0x162cfc]=useState(![]),[_0x5a6beb,_0x2f436b]=useState(new Set()),[_0x5b999c,_0x1a978d]=useState(0x0),[_0x9a9c91,_0x556d86]=useState(''),_0x2a86e9=_0x41a2dc(0xe5),_0x50860a=readConfig(),_0x497dfb=typeof _0x50860a[_0x41a2dc(0xbc)]===_0x41a2dc(0x8c)?_0x50860a['env']:undefined;function _0x453fdf(_0x11cffe){const _0x1d85d9=_0x41a2dc,_0x185999=_0x11cffe||_0x2a86e9,_0x1a4ffc=a40_0xcc49c1['resolve'](process[_0x1d85d9(0xe4)](),_0x185999);return existsSync(_0x1a4ffc);}function _0x5be8b0(_0x3c3ad7){const _0x370682=_0x41a2dc;if(_0x3c3ad7[_0x370682(0xd4)]>0x32)return{'valid':![],'message':_0x177495('create.validation.projectName.tooLong')};const _0x360cc4=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x3c3ad7?.[_0x370682(0xa0)]()&&!_0x360cc4[_0x370682(0xba)](_0x3c3ad7))return{'valid':![],'message':_0x177495('create.validation.projectName.invalidFormat')};return{'valid':!![]};}function _0xb7472e(_0xc8d9b1){const _0x52d89e=_0x41a2dc;if(!_0xc8d9b1[_0x52d89e(0xa0)]())return{'valid':!![]};if(_0xc8d9b1['length']>0x64)return{'valid':![],'message':_0x177495(_0x52d89e(0xb7))};const _0xd43c99=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0xd43c99[_0x52d89e(0xba)](_0xc8d9b1))return{'valid':![],'message':_0x177495('create.validation.appCode.invalidFormat')};return{'valid':!![]};}async function _0x51091c(){_0x5cb4ee(!![]);try{const _0x10fa3a=await getIsSessionValid();return _0x2b5bcc(_0x10fa3a),_0x10fa3a;}catch(_0x32935e){return _0x2b5bcc(![]),![];}finally{_0x5cb4ee(![]);}}async function _0x3c911d(){_0x252624(!![]);try{const _0x48bb2b=await authServer({'silent':!![]});return _0x2b5bcc(_0x48bb2b),_0x48bb2b;}catch(_0x223cf2){return _0x2b5bcc(![]),![];}finally{_0x252624(![]);}}return useInput(async(_0x2fd1d1,_0x2c1212)=>{const _0x58c5a5=_0x41a2dc;if(_0x2c1212[_0x58c5a5(0xac)]||_0x2c1212[_0x58c5a5(0x94)]){if(_0x4bc429===_0x58c5a5(0xda)){_0x589dd2(_0x1dafe5=>_0x1dafe5===0x0?0x1:0x0);return;}if(_0x4bc429===_0x58c5a5(0x8a)){if(!_0x40041f){_0xce54c0(_0xd1d178=>_0xd1d178===0x0?0x1:0x0);return;}_0x162cfc(![]);return;}if(_0x4bc429===_0x58c5a5(0xa7)){_0x49bb61(_0x19d4f0=>_0x19d4f0===0x0?0x1:0x0);return;}}if(_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){if(_0x2c1212[_0x58c5a5(0xdb)]){_0x1a978d(_0x15c398=>_0x15c398>0x0?_0x15c398-0x1:UI_IDE_LIST[_0x58c5a5(0xd4)]-0x1);return;}if(_0x2c1212[_0x58c5a5(0xc6)]){_0x1a978d(_0x513b02=>_0x513b02<UI_IDE_LIST[_0x58c5a5(0xd4)]-0x1?_0x513b02+0x1:0x0);return;}}if(_0x2fd1d1==='\x20'&&_0x4bc429==='lovrabet-setup-selection'&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(_0x102afc=>{const _0x15b98e=_0x58c5a5,_0x4f6e8c=new Set(_0x102afc);return _0x4f6e8c[_0x15b98e(0xd3)](_0x5b999c)?_0x4f6e8c[_0x15b98e(0xae)](_0x5b999c):_0x4f6e8c[_0x15b98e(0xdf)](_0x5b999c),_0x4f6e8c;}),_0x264f70('');return;}if((_0x2fd1d1==='a'||_0x2fd1d1==='A')&&_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(new Set(UI_IDE_LIST[_0x58c5a5(0xd1)]((_0x3dcb87,_0x5e3ba9)=>_0x5e3ba9))),_0x264f70('');return;}if((_0x2fd1d1==='i'||_0x2fd1d1==='I'||_0x2fd1d1==='r'||_0x2fd1d1==='R')&&_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(_0xd4e802=>{const _0x52e381=_0x58c5a5,_0x331720=new Set();for(let _0x2f14c4=0x0;_0x2f14c4<UI_IDE_LIST[_0x52e381(0xd4)];_0x2f14c4++){!_0xd4e802[_0x52e381(0xd3)](_0x2f14c4)&&_0x331720[_0x52e381(0xdf)](_0x2f14c4);}return _0x331720;});return;}if(_0x2c1212[_0x58c5a5(0xa1)]){if(_0x4bc429==='project-name'){const _0x4d2886=_0x1a7d2b[_0x58c5a5(0xa0)]()||_0x2a86e9;if(_0x56274c)return;if(_0x453fdf(_0x4d2886)){_0x556d86(_0x177495(_0x58c5a5(0xe8),{'name':_0x4d2886}));return;}_0x4c4c8c(_0x4d2886),_0x2bea19([{'step':_0x58c5a5(0xc9),'label':_0x177495('create.steps.projectName.label'),'value':_0x4d2886}]),_0x535ea3(''),_0x264f70(''),_0x556d86(''),_0x521be5(_0x58c5a5(0x96));return;}if(_0x4bc429===_0x58c5a5(0x96)){if(_0x56274c)return;const _0x2e8788=_0x1a7d2b[_0x58c5a5(0xa0)]();_0x260128(_0x2e8788),_0x2bea19(_0x194762=>[..._0x194762,{'step':'app-code','label':_0x177495(_0x58c5a5(0xaa)),'value':_0x2e8788||_0x177495(_0x58c5a5(0xc3))}]),_0x535ea3(''),_0x264f70('');if(_0x2e8788){_0x521be5(_0x58c5a5(0xab));const _0x491d2e=await _0x51091c();_0x491d2e?_0x521be5(_0x58c5a5(0xda)):_0x521be5('login-prompt');}else{const _0x29633b=_0x2807e5||_0x497dfb||'online';_0xa91d41({'projectName':_0x128649,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x29633b}),_0x521be5(_0x58c5a5(0xe7));}return;}if(_0x4bc429===_0x58c5a5(0xda)){const _0x456159=_0x45ba3e===0x0;_0x1f3c27(_0x456159),_0x2bea19(_0x31fe42=>[..._0x31fe42,{'step':_0x58c5a5(0xb6),'label':_0x177495(_0x58c5a5(0x88)),'value':_0x456159?_0x177495('create.common.yes'):_0x177495(_0x58c5a5(0xe1))}]),_0x521be5('lovrabet-setup-selection');return;}if(_0x4bc429===_0x58c5a5(0x8a)){if(!_0x40041f){_0x162cfc(!![]);if(_0x337e5a===0x1){_0x2bea19(_0x1d4855=>[..._0x1d4855,{'step':_0x58c5a5(0xce),'label':_0x177495('create.steps.lovrabetSetup.label'),'value':_0x177495(_0x58c5a5(0xe1))}]);const _0x2cd7d0=_0x2807e5||_0x497dfb||'online';_0xa91d41({'projectName':_0x128649,'appCode':_0x148d74,'pullApi':_0x20ba42,'aiSetup':![],'selectedIDEs':[],'env':_0x2cd7d0}),_0x521be5(_0x58c5a5(0xe7));}return;}if(_0x5a6beb['size']===0x0){_0x264f70(_0x177495('create.validation.ide.required'));return;}const _0x18b5fe=Array[_0x58c5a5(0x89)](_0x5a6beb)['map'](_0x46c57c=>UI_IDE_LIST[_0x46c57c])['filter'](_0x28b0f2=>_0x28b0f2!==undefined);_0x2bea19(_0x34793c=>[..._0x34793c,{'step':'lovrabet-setup','label':_0x177495(_0x58c5a5(0x92)),'value':_0x177495('create.steps.lovrabetSetup.ideCount',{'count':_0x18b5fe[_0x58c5a5(0xd4)]})}]);const _0x3d930b=_0x2807e5||_0x497dfb||_0x58c5a5(0xd9);_0xa91d41({'projectName':_0x128649,'appCode':_0x148d74,'pullApi':_0x20ba42,'aiSetup':!![],'selectedIDEs':_0x18b5fe,'env':_0x3d930b}),_0x521be5(_0x58c5a5(0xe7));return;}if(_0x4bc429===_0x58c5a5(0xa7)){const _0x348678=_0x311d37===0x0;if(_0x348678){_0x521be5(_0x58c5a5(0xc5));const _0x9393f0=await _0x3c911d();_0x9393f0?(_0x2bea19(_0x17f2d7=>[..._0x17f2d7,{'step':_0x58c5a5(0x9f),'label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xb5))}]),_0x521be5(_0x58c5a5(0xda))):(_0x2bea19(_0x5e84d8=>[..._0x5e84d8,{'step':_0x58c5a5(0x9f),'label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xbd))}]),_0x521be5('lovrabet-setup-selection'));}else _0x2bea19(_0x3dfa64=>[..._0x3dfa64,{'step':'login','label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xdd))}]),_0x521be5('lovrabet-setup-selection');return;}}if(_0x2c1212[_0x58c5a5(0x98)]||_0x2c1212[_0x58c5a5(0xae)]){_0x535ea3(_0x5516c4=>{const _0x5d34b0=_0x58c5a5,_0x44e8c6=_0x5516c4[_0x5d34b0(0xa4)](0x0,-0x1);if(_0x4bc429===_0x5d34b0(0xc9)){const {valid:_0x36936d,message:_0x317b6c}=_0x5be8b0(_0x44e8c6);_0x264f70(_0x36936d?'':_0x317b6c||_0x177495(_0x5d34b0(0xb4)));if(_0x36936d&&!_0x56274c){const _0xfa1503=_0x44e8c6||_0x2a86e9;_0x453fdf(_0xfa1503)?_0x556d86(_0x177495(_0x5d34b0(0x9b),{'name':_0xfa1503})):_0x556d86('');}}else{if(_0x4bc429===_0x5d34b0(0x96)){const {valid:_0x2ea3a5,message:_0x4e10f2}=_0xb7472e(_0x44e8c6);_0x264f70(_0x2ea3a5?'':_0x4e10f2||_0x177495(_0x5d34b0(0xd0)));}}return _0x44e8c6;});return;}if(['creating',_0x58c5a5(0xab),_0x58c5a5(0xc5)][_0x58c5a5(0xcb)](_0x4bc429))return;if(_0x4bc429===_0x58c5a5(0xda)||_0x4bc429===_0x58c5a5(0xa7)||_0x4bc429===_0x58c5a5(0x8a))return;_0x535ea3(_0x2624c4=>{const _0x546608=_0x58c5a5,_0x206d5b=_0x2624c4+_0x2fd1d1;if(_0x4bc429===_0x546608(0xc9)){const {valid:_0x19543b,message:_0x25a9a8}=_0x5be8b0(_0x206d5b);_0x264f70(_0x19543b?'':_0x25a9a8||_0x177495(_0x546608(0xb4)));if(_0x19543b&&!_0x56274c){const _0x4db204=_0x206d5b||_0x2a86e9;_0x453fdf(_0x4db204)?_0x556d86(_0x177495(_0x546608(0x9b),{'name':_0x4db204})):_0x556d86('');}}else{if(_0x4bc429===_0x546608(0x96)){const {valid:_0x6d41dc,message:_0x157bf5}=_0xb7472e(_0x206d5b);_0x264f70(_0x6d41dc?'':_0x157bf5||_0x177495(_0x546608(0xd0)));}}return _0x206d5b;});}),a40_0x22762c(Box,{'flexDirection':'column','marginTop':0x1,'children':[_0x341baf[_0x41a2dc(0xd4)]===0x0&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbf),'children':_0x177495(_0x41a2dc(0xc1))})}),_0x341baf[_0x41a2dc(0xd1)](_0x134514=>a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0xc4),{'label':_0x134514[_0x41a2dc(0x95)]})}),a40_0xb68a7c(Text,{'color':'cyan','children':_0x134514[_0x41a2dc(0x8f)]})]},_0x134514[_0x41a2dc(0xb2)])),_0x4bc429==='project-name'&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xa6))}),_0x1a7d2b?a40_0xb68a7c(Text,{'color':'green','children':_0x1a7d2b}):a40_0xb68a7c(Text,{'color':'gray','children':_0x2a86e9}),_0x56274c&&a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':[_0x41a2dc(0xad),_0x56274c]}),_0x9a9c91&&a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':[_0x41a2dc(0xad),_0x9a9c91]})]}),!_0x56274c&&!_0x9a9c91&&!_0x1a7d2b&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0x8b))})})]}),_0x4bc429==='app-code'&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0x9a))}),a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495('create.input.appCode.optional')}),a40_0xb68a7c(Text,{'color':'green','children':_0x1a7d2b}),_0x56274c&&a40_0x22762c(Text,{'color':'red','children':[_0x41a2dc(0xad),_0x56274c]})]}),!_0x56274c&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495('create.input.appCode.hint')})})]}),_0x4bc429===_0x41a2dc(0xab)&&a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xd7))}),_0x477952&&a40_0xb68a7c(Text,{'color':'gray','children':_0x177495('create.login.checkingStatus')})]}),_0x4bc429===_0x41a2dc(0xda)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0x90))})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495('create.apiPull.confirm')})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x45ba3e===0x0?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x45ba3e===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x45ba3e===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x45ba3e===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0x8e))})})]}),_0x4bc429===_0x41a2dc(0x8a)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':'green','children':'√'})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495('create.lovrabetSetup.confirm')})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x337e5a===0x0?_0x41a2dc(0xbb):'gray','children':[_0x337e5a===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x337e5a===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x337e5a===0x1?'▶\x20':'\x20\x20','No']})]}),_0x40041f&&_0x337e5a===0x0&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':'gray','children':_0x177495(_0x41a2dc(0xb0))})}),a40_0x22762c(Box,{'marginTop':0x1,'flexDirection':_0x41a2dc(0xaf),'children':[a40_0xb68a7c(Text,{'bold':!![],'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0x93))}),UI_IDE_LIST['map']((_0x4d8372,_0x3d3c7f)=>{const _0x229bbe=_0x41a2dc,_0x460c43=_0x5b999c===_0x3d3c7f,_0x14898d=_0x5a6beb['has'](_0x3d3c7f),_0x660283=UI_MCP_IDES[_0x229bbe(0xd3)](_0x4d8372);return a40_0xb68a7c(Box,{'children':a40_0x22762c(Text,{'backgroundColor':_0x460c43?'blue':undefined,'color':_0x460c43?_0x229bbe(0x91):undefined,'children':['\x20\x20',_0x14898d?_0x229bbe(0xa3):_0x229bbe(0xdc),'\x20',UI_IDE_CONFIGS[_0x4d8372]['name'],_0x660283&&a40_0xb68a7c(Text,{'color':_0x460c43?_0x229bbe(0x91):_0x229bbe(0xbf),'children':'\x20+MCP'}),'\x20',a40_0x22762c(Text,{'color':_0x460c43?_0x229bbe(0x91):_0x229bbe(0xde),'dimColor':!_0x460c43,'children':['-\x20',UI_IDE_CONFIGS[_0x4d8372][_0x229bbe(0xcd)]]})]})},_0x4d8372);}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':'gray','children':_0x177495(_0x41a2dc(0xc7))})})]})]}),!_0x40041f&&a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})}),_0x56274c&&a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':['✗\x20',_0x56274c]})})]}),_0x4bc429===_0x41a2dc(0xa7)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0xb1))})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0x87))})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x311d37===0x0?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x311d37===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x311d37===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x311d37===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})})]}),_0x4bc429===_0x41a2dc(0xc5)&&a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xa2))}),_0x750e3e&&a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xcf))})]}),_0x4bc429===_0x41a2dc(0xe7)&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0x97))})})]});}
1
+ const a40_0x177195=a40_0x1b30;function a40_0x1b30(_0xd22d62,_0x2dcea2){_0xd22d62=_0xd22d62-0x1af;const _0x115d33=a40_0x115d();let _0x1b30bf=_0x115d33[_0xd22d62];return _0x1b30bf;}(function(_0x57a1c5,_0x496642){const _0x7c44ec=a40_0x1b30,_0x20c7c6=_0x57a1c5();while(!![]){try{const _0x3b7b32=parseInt(_0x7c44ec(0x1ec))/0x1+-parseInt(_0x7c44ec(0x20a))/0x2+parseInt(_0x7c44ec(0x208))/0x3+-parseInt(_0x7c44ec(0x1d6))/0x4*(parseInt(_0x7c44ec(0x1c2))/0x5)+-parseInt(_0x7c44ec(0x1cb))/0x6+parseInt(_0x7c44ec(0x211))/0x7+-parseInt(_0x7c44ec(0x20d))/0x8*(parseInt(_0x7c44ec(0x1c5))/0x9);if(_0x3b7b32===_0x496642)break;else _0x20c7c6['push'](_0x20c7c6['shift']());}catch(_0x57d419){_0x20c7c6['push'](_0x20c7c6['shift']());}}}(a40_0x115d,0x7cb72));import{jsx as a40_0x3bd58b,jsxs as a40_0xc18d13,Fragment as a40_0x186fa2}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';import a40_0x18d249 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=[a40_0x177195(0x1f5),a40_0x177195(0x1b7),a40_0x177195(0x1af),a40_0x177195(0x1ef),a40_0x177195(0x1c6),a40_0x177195(0x20e),a40_0x177195(0x1ce),a40_0x177195(0x1d4),a40_0x177195(0x1ee),a40_0x177195(0x1cf),a40_0x177195(0x1f4)],UI_MCP_IDES=new Set(Array[a40_0x177195(0x1b0)](MCP_IDES));function a40_0x115d(){const _0x51cb4b=['env','login-process','downArrow','create.lovrabetSetup.selectIdeTitle','claude','create.input.appCode.label','create.input.appCode.hint','label','return','create.validation.appCode.invalid','create.login.notDetected','create.creating','app-code','create.validation.projectName.invalid','create.steps.projectName.label','17795NvZjYK','create.common.yes','project-name','954fQbeCJ','codex','create.login.checkingStatus','has','create.steps.login.loggedIn','lovrabet-setup-selection','2435730uMTWMn','create.apiPull.confirm','includes','opencode','windsurf','step','create.apiPull.recommendation','login-check','leftArrow','qoder','length','204HUNXHx','create.common.no','\x20←\x20','green','Yes','name','create.validation.projectName.dirExistsShort','confirm-api-pull','create.login.valid','create.login.inProgress','upArrow','string','resolve','create.validation.projectName.dirExists','delete','white','map','create.steps.login.skipped','cyan','create.login.inProgressStatus','create.title','create.steps.apiPull.label','469910BObvpf','red','trae','codebuddy','api-pull','create.steps.login.label','filter','gray','agent','antigravity','lovrabet-setup','create.login.prompt','create.lovrabetSetup.selectIdeHint','add','test','my-app','online','yellow','backspace','create.steps.lovrabetSetup.label','create.validation.projectName.tooLong','login-prompt','create.validation.appCode.invalidFormat','create.validation.ide.required','creating','create.steps.login.failed','blue','create.common.selectHint','443652rBlWXp','create.login.checking','734204IUGdJz','column','create.input.projectName.label','9136ZCsXIe','cursor','rightArrow','login','6780606FlrWFu','create.validation.appCode.tooLong','cline','from','slice','trim'];a40_0x115d=function(){return _0x51cb4b;};return a40_0x115d();}export function EnhancedGuidedCreate(_0x22087a){const _0x2ec0b3=a40_0x177195,{onCreate:_0x21c016,env:_0x2dc363}=_0x22087a,{t:_0x70d347}=useI18n(),[_0xa632eb,_0x13c30f]=useState(_0x2ec0b3(0x1c4)),[_0xee178a,_0x26a1aa]=useState(''),[_0x482e4c,_0x1c1e04]=useState(''),[_0x2275fa,_0x53301f]=useState(''),[_0xbfc5de,_0x494f94]=useState(''),[_0x89885a,_0x152f54]=useState([]),[_0x5aa23a,_0xb5e4e1]=useState(null),[_0x12f148,_0x27b468]=useState(![]),[_0x5ba53f,_0x558ab]=useState(![]),[_0x32759c,_0x14aca1]=useState(![]),[_0x32374a,_0x32e199]=useState(0x0),[_0x471344,_0x4bcb3e]=useState(0x0),[_0x50f011,_0x428837]=useState(0x0),[_0x316639,_0xcc1b67]=useState(![]),[_0x2c8c43,_0x3a6a2b]=useState(new Set()),[_0x3c35b1,_0x4f1f58]=useState(0x0),[_0x423934,_0x46d616]=useState(''),_0x33cd4a=_0x2ec0b3(0x1fb),_0x536c8b=readConfig(),_0x4b12e1=typeof _0x536c8b[_0x2ec0b3(0x1b3)]===_0x2ec0b3(0x1e1)?_0x536c8b[_0x2ec0b3(0x1b3)]:undefined;function _0x33d070(_0x2a79fc){const _0x1fe87a=_0x2ec0b3,_0x5d37ce=_0x2a79fc||_0x33cd4a,_0xb0a8a5=a40_0x18d249[_0x1fe87a(0x1e2)](process['cwd'](),_0x5d37ce);return existsSync(_0xb0a8a5);}function _0x32a923(_0x308545){const _0x37728a=_0x2ec0b3;if(_0x308545['length']>0x32)return{'valid':![],'message':_0x70d347(_0x37728a(0x200))};const _0x131663=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x308545?.[_0x37728a(0x1b2)]()&&!_0x131663[_0x37728a(0x1fa)](_0x308545))return{'valid':![],'message':_0x70d347('create.validation.projectName.invalidFormat')};return{'valid':!![]};}function _0x3ac5a2(_0x3a1633){const _0x560424=_0x2ec0b3;if(!_0x3a1633[_0x560424(0x1b2)]())return{'valid':!![]};if(_0x3a1633[_0x560424(0x1d5)]>0x64)return{'valid':![],'message':_0x70d347(_0x560424(0x212))};const _0x48eeff=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x48eeff['test'](_0x3a1633))return{'valid':![],'message':_0x70d347(_0x560424(0x202))};return{'valid':!![]};}async function _0x39d517(){_0x27b468(!![]);try{const _0x2c8702=await getIsSessionValid();return _0xb5e4e1(_0x2c8702),_0x2c8702;}catch(_0x31095d){return _0xb5e4e1(![]),![];}finally{_0x27b468(![]);}}async function _0x11e014(){_0x558ab(!![]);try{const _0x297f26=await authServer({'silent':!![]});return _0xb5e4e1(_0x297f26),_0x297f26;}catch(_0x93e5c4){return _0xb5e4e1(![]),![];}finally{_0x558ab(![]);}}return useInput(async(_0x46fc3d,_0x4ec806)=>{const _0x1adb9b=_0x2ec0b3;if(_0x4ec806[_0x1adb9b(0x1d3)]||_0x4ec806[_0x1adb9b(0x20f)]){if(_0xa632eb==='confirm-api-pull'){_0x32e199(_0x4578e9=>_0x4578e9===0x0?0x1:0x0);return;}if(_0xa632eb===_0x1adb9b(0x1ca)){if(!_0x316639){_0x428837(_0x3d4526=>_0x3d4526===0x0?0x1:0x0);return;}_0xcc1b67(![]);return;}if(_0xa632eb===_0x1adb9b(0x201)){_0x4bcb3e(_0x240bfb=>_0x240bfb===0x0?0x1:0x0);return;}}if(_0xa632eb==='lovrabet-setup-selection'&&_0x316639&&_0x50f011===0x0){if(_0x4ec806[_0x1adb9b(0x1e0)]){_0x4f1f58(_0x43c6a4=>_0x43c6a4>0x0?_0x43c6a4-0x1:UI_IDE_LIST[_0x1adb9b(0x1d5)]-0x1);return;}if(_0x4ec806[_0x1adb9b(0x1b5)]){_0x4f1f58(_0x106d3e=>_0x106d3e<UI_IDE_LIST[_0x1adb9b(0x1d5)]-0x1?_0x106d3e+0x1:0x0);return;}}if(_0x46fc3d==='\x20'&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(_0x37031f=>{const _0x39476d=_0x1adb9b,_0x204dd7=new Set(_0x37031f);return _0x204dd7[_0x39476d(0x1c8)](_0x3c35b1)?_0x204dd7['delete'](_0x3c35b1):_0x204dd7[_0x39476d(0x1f9)](_0x3c35b1),_0x204dd7;}),_0x494f94('');return;}if((_0x46fc3d==='a'||_0x46fc3d==='A')&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(new Set(UI_IDE_LIST[_0x1adb9b(0x1e6)]((_0x3fd9dd,_0xaf9913)=>_0xaf9913))),_0x494f94('');return;}if((_0x46fc3d==='i'||_0x46fc3d==='I'||_0x46fc3d==='r'||_0x46fc3d==='R')&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(_0x4565b4=>{const _0x3bf2d3=_0x1adb9b,_0x5eedae=new Set();for(let _0x2f45a6=0x0;_0x2f45a6<UI_IDE_LIST[_0x3bf2d3(0x1d5)];_0x2f45a6++){!_0x4565b4[_0x3bf2d3(0x1c8)](_0x2f45a6)&&_0x5eedae[_0x3bf2d3(0x1f9)](_0x2f45a6);}return _0x5eedae;});return;}if(_0x4ec806[_0x1adb9b(0x1bb)]){if(_0xa632eb===_0x1adb9b(0x1c4)){const _0x64dac3=_0x2275fa[_0x1adb9b(0x1b2)]()||_0x33cd4a;if(_0xbfc5de)return;if(_0x33d070(_0x64dac3)){_0x46d616(_0x70d347(_0x1adb9b(0x1e3),{'name':_0x64dac3}));return;}_0x26a1aa(_0x64dac3),_0x152f54([{'step':_0x1adb9b(0x1c4),'label':_0x70d347(_0x1adb9b(0x1c1)),'value':_0x64dac3}]),_0x53301f(''),_0x494f94(''),_0x46d616(''),_0x13c30f('app-code');return;}if(_0xa632eb===_0x1adb9b(0x1bf)){if(_0xbfc5de)return;const _0x5ba286=_0x2275fa[_0x1adb9b(0x1b2)]();_0x1c1e04(_0x5ba286),_0x152f54(_0x39fd0b=>[..._0x39fd0b,{'step':_0x1adb9b(0x1bf),'label':_0x70d347('create.steps.appCode.label'),'value':_0x5ba286||_0x70d347('create.steps.appCode.notSet')}]),_0x53301f(''),_0x494f94('');if(_0x5ba286){_0x13c30f('login-check');const _0x1a980c=await _0x39d517();_0x1a980c?_0x13c30f(_0x1adb9b(0x1dd)):_0x13c30f('login-prompt');}else{const _0x42dde7=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x42dde7}),_0x13c30f(_0x1adb9b(0x204));}return;}if(_0xa632eb==='confirm-api-pull'){const _0x128d51=_0x32374a===0x0;_0x14aca1(_0x128d51),_0x152f54(_0x347f4c=>[..._0x347f4c,{'step':_0x1adb9b(0x1f0),'label':_0x70d347(_0x1adb9b(0x1eb)),'value':_0x128d51?_0x70d347(_0x1adb9b(0x1c3)):_0x70d347('create.common.no')}]),_0x13c30f('lovrabet-setup-selection');return;}if(_0xa632eb===_0x1adb9b(0x1ca)){if(!_0x316639){_0xcc1b67(!![]);if(_0x50f011===0x1){_0x152f54(_0x29f530=>[..._0x29f530,{'step':_0x1adb9b(0x1f6),'label':_0x70d347(_0x1adb9b(0x1ff)),'value':_0x70d347(_0x1adb9b(0x1d7))}]);const _0x2f1673=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':_0x482e4c,'pullApi':_0x32759c,'aiSetup':![],'selectedIDEs':[],'env':_0x2f1673}),_0x13c30f(_0x1adb9b(0x204));}return;}if(_0x2c8c43['size']===0x0){_0x494f94(_0x70d347(_0x1adb9b(0x203)));return;}const _0x483da7=Array[_0x1adb9b(0x1b0)](_0x2c8c43)[_0x1adb9b(0x1e6)](_0x2ced38=>UI_IDE_LIST[_0x2ced38])[_0x1adb9b(0x1f2)](_0x300b2b=>_0x300b2b!==undefined);_0x152f54(_0x1d4df0=>[..._0x1d4df0,{'step':'lovrabet-setup','label':_0x70d347(_0x1adb9b(0x1ff)),'value':_0x70d347('create.steps.lovrabetSetup.ideCount',{'count':_0x483da7['length']})}]);const _0x3094ee=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':_0x482e4c,'pullApi':_0x32759c,'aiSetup':!![],'selectedIDEs':_0x483da7,'env':_0x3094ee}),_0x13c30f(_0x1adb9b(0x204));return;}if(_0xa632eb===_0x1adb9b(0x201)){const _0x4b7548=_0x471344===0x0;if(_0x4b7548){_0x13c30f(_0x1adb9b(0x1b4));const _0x5ae4dd=await _0x11e014();_0x5ae4dd?(_0x152f54(_0x5441ac=>[..._0x5441ac,{'step':_0x1adb9b(0x210),'label':_0x70d347(_0x1adb9b(0x1f1)),'value':_0x70d347(_0x1adb9b(0x1c9))}]),_0x13c30f(_0x1adb9b(0x1dd))):(_0x152f54(_0x30bc92=>[..._0x30bc92,{'step':_0x1adb9b(0x210),'label':_0x70d347('create.steps.login.label'),'value':_0x70d347(_0x1adb9b(0x205))}]),_0x13c30f(_0x1adb9b(0x1ca)));}else _0x152f54(_0x372548=>[..._0x372548,{'step':_0x1adb9b(0x210),'label':_0x70d347(_0x1adb9b(0x1f1)),'value':_0x70d347(_0x1adb9b(0x1e7))}]),_0x13c30f(_0x1adb9b(0x1ca));return;}}if(_0x4ec806[_0x1adb9b(0x1fe)]||_0x4ec806[_0x1adb9b(0x1e4)]){_0x53301f(_0x5eec48=>{const _0x5ed4f2=_0x1adb9b,_0x19065c=_0x5eec48[_0x5ed4f2(0x1b1)](0x0,-0x1);if(_0xa632eb===_0x5ed4f2(0x1c4)){const {valid:_0x3182b2,message:_0xc6193c}=_0x32a923(_0x19065c);_0x494f94(_0x3182b2?'':_0xc6193c||_0x70d347(_0x5ed4f2(0x1c0)));if(_0x3182b2&&!_0xbfc5de){const _0x421461=_0x19065c||_0x33cd4a;_0x33d070(_0x421461)?_0x46d616(_0x70d347(_0x5ed4f2(0x1dc),{'name':_0x421461})):_0x46d616('');}}else{if(_0xa632eb===_0x5ed4f2(0x1bf)){const {valid:_0x1e1ad8,message:_0x3dc0e3}=_0x3ac5a2(_0x19065c);_0x494f94(_0x1e1ad8?'':_0x3dc0e3||_0x70d347(_0x5ed4f2(0x1bc)));}}return _0x19065c;});return;}if([_0x1adb9b(0x204),_0x1adb9b(0x1d2),'login-process'][_0x1adb9b(0x1cd)](_0xa632eb))return;if(_0xa632eb===_0x1adb9b(0x1dd)||_0xa632eb==='login-prompt'||_0xa632eb===_0x1adb9b(0x1ca))return;_0x53301f(_0x1e3928=>{const _0x7884e8=_0x1adb9b,_0x44dcd1=_0x1e3928+_0x46fc3d;if(_0xa632eb==='project-name'){const {valid:_0x2837a3,message:_0x38ba8c}=_0x32a923(_0x44dcd1);_0x494f94(_0x2837a3?'':_0x38ba8c||_0x70d347(_0x7884e8(0x1c0)));if(_0x2837a3&&!_0xbfc5de){const _0x2a3db5=_0x44dcd1||_0x33cd4a;_0x33d070(_0x2a3db5)?_0x46d616(_0x70d347(_0x7884e8(0x1dc),{'name':_0x2a3db5})):_0x46d616('');}}else{if(_0xa632eb===_0x7884e8(0x1bf)){const {valid:_0x3ab962,message:_0x3101bf}=_0x3ac5a2(_0x44dcd1);_0x494f94(_0x3ab962?'':_0x3101bf||_0x70d347(_0x7884e8(0x1bc)));}}return _0x44dcd1;});}),a40_0xc18d13(Box,{'flexDirection':_0x2ec0b3(0x20b),'marginTop':0x1,'children':[_0x89885a['length']===0x0&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'cyan','children':_0x70d347(_0x2ec0b3(0x1ea))})}),_0x89885a[_0x2ec0b3(0x1e6)](_0x2be57d=>a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347('create.completedStep',{'label':_0x2be57d[_0x2ec0b3(0x1ba)]})}),a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1e8),'children':_0x2be57d['value']})]},_0x2be57d[_0x2ec0b3(0x1d0)])),_0xa632eb==='project-name'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x20c))}),_0x2275fa?a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x2275fa}):a40_0x3bd58b(Text,{'color':'gray','children':_0x33cd4a}),_0xbfc5de&&a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':[_0x2ec0b3(0x1d8),_0xbfc5de]}),_0x423934&&a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':[_0x2ec0b3(0x1d8),_0x423934]})]}),!_0xbfc5de&&!_0x423934&&!_0x2275fa&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.input.projectName.hint')})})]}),_0xa632eb===_0x2ec0b3(0x1bf)&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1b8))}),a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.input.appCode.optional')}),a40_0x3bd58b(Text,{'color':'green','children':_0x2275fa}),_0xbfc5de&&a40_0xc18d13(Text,{'color':'red','children':[_0x2ec0b3(0x1d8),_0xbfc5de]})]}),!_0xbfc5de&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x1b9))})})]}),_0xa632eb===_0x2ec0b3(0x1d2)&&a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x209))}),_0x12f148&&a40_0x3bd58b(Text,{'color':'gray','children':_0x70d347(_0x2ec0b3(0x1c7))})]}),_0xa632eb==='confirm-api-pull'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347(_0x2ec0b3(0x1de))})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1cc))})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x32374a===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x32374a===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x32374a===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x32374a===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1fd),'children':_0x70d347(_0x2ec0b3(0x1d1))})})]}),_0xa632eb===_0x2ec0b3(0x1ca)&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'green','children':'√'})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347('create.lovrabetSetup.confirm')})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x50f011===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x50f011===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x50f011===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x50f011===0x1?'▶\x20':'\x20\x20','No']})]}),_0x316639&&_0x50f011===0x0&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x1f8))})}),a40_0xc18d13(Box,{'marginTop':0x1,'flexDirection':_0x2ec0b3(0x20b),'children':[a40_0x3bd58b(Text,{'bold':!![],'color':'yellow','children':_0x70d347(_0x2ec0b3(0x1b6))}),UI_IDE_LIST[_0x2ec0b3(0x1e6)]((_0x142df8,_0x3c6de5)=>{const _0x35a251=_0x2ec0b3,_0x121088=_0x3c35b1===_0x3c6de5,_0x116fca=_0x2c8c43['has'](_0x3c6de5),_0x263332=UI_MCP_IDES[_0x35a251(0x1c8)](_0x142df8);return a40_0x3bd58b(Box,{'children':a40_0xc18d13(Text,{'backgroundColor':_0x121088?_0x35a251(0x206):undefined,'color':_0x121088?_0x35a251(0x1e5):undefined,'children':['\x20\x20',_0x116fca?'[✓]':'[\x20]','\x20',UI_IDE_CONFIGS[_0x142df8][_0x35a251(0x1db)],_0x263332&&a40_0x3bd58b(Text,{'color':_0x121088?'white':_0x35a251(0x1e8),'children':'\x20+MCP'}),'\x20',a40_0xc18d13(Text,{'color':_0x121088?'white':_0x35a251(0x1f3),'dimColor':!_0x121088,'children':['-\x20',UI_IDE_CONFIGS[_0x142df8]['description']]})]})},_0x142df8);}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.lovrabetSetup.keyboardShortcuts')})})]})]}),!_0x316639&&a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})}),_0xbfc5de&&a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':['✗\x20',_0xbfc5de]})})]}),_0xa632eb==='login-prompt'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'yellow','children':_0x70d347(_0x2ec0b3(0x1bd))})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1f7))})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x471344===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x471344===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x471344===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x471344===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})})]}),_0xa632eb==='login-process'&&a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1df))}),_0x5ba53f&&a40_0x3bd58b(Text,{'color':'gray','children':_0x70d347(_0x2ec0b3(0x1e9))})]}),_0xa632eb===_0x2ec0b3(0x204)&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347(_0x2ec0b3(0x1be))})})]});}
@@ -1 +1 @@
1
- (function(_0x32026c,_0x59d782){const _0x4b8e68=a41_0x2187,_0x191eb7=_0x32026c();while(!![]){try{const _0x201a6c=parseInt(_0x4b8e68(0x90))/0x1*(parseInt(_0x4b8e68(0x8b))/0x2)+parseInt(_0x4b8e68(0x93))/0x3+parseInt(_0x4b8e68(0x95))/0x4*(-parseInt(_0x4b8e68(0x8f))/0x5)+-parseInt(_0x4b8e68(0x8e))/0x6+parseInt(_0x4b8e68(0x8d))/0x7+parseInt(_0x4b8e68(0x92))/0x8+parseInt(_0x4b8e68(0x8a))/0x9*(-parseInt(_0x4b8e68(0x91))/0xa);if(_0x201a6c===_0x59d782)break;else _0x191eb7['push'](_0x191eb7['shift']());}catch(_0x9423c){_0x191eb7['push'](_0x191eb7['shift']());}}}(a41_0xec98,0x60d2a));function a41_0xec98(){const _0x3e03db=['703101dNirPN','1669068yIkNDK','15huxMHX','236499sSEiMW','4125860GWReYI','5854480KhxyaB','66297WrEoIR','now','635332WsspUH','9OjNreZ','6qXLruv','toFixed'];a41_0xec98=function(){return _0x3e03db;};return a41_0xec98();}function a41_0x2187(_0x19fc79,_0x53cfed){_0x19fc79=_0x19fc79-0x8a;const _0xec982b=a41_0xec98();let _0x218763=_0xec982b[_0x19fc79];return _0x218763;}export function formatElapsed(_0x12ed1a){const _0x1aa853=a41_0x2187,_0x33db66=Date[_0x1aa853(0x94)]()-_0x12ed1a;if(_0x33db66<0x3e8)return _0x33db66+'ms';const _0x34df77=(_0x33db66/0x3e8)[_0x1aa853(0x8c)](0x2),_0x43ad9e=_0x34df77['replace'](/\.?0+$/u,'');return _0x43ad9e+'s';}
1
+ (function(_0x3c6e9e,_0x192ee6){const _0x191f79=a41_0x206c,_0x404e10=_0x3c6e9e();while(!![]){try{const _0x2f6e76=parseInt(_0x191f79(0xf6))/0x1*(parseInt(_0x191f79(0xf4))/0x2)+parseInt(_0x191f79(0xf8))/0x3+parseInt(_0x191f79(0xf9))/0x4*(-parseInt(_0x191f79(0xf2))/0x5)+parseInt(_0x191f79(0xf3))/0x6*(parseInt(_0x191f79(0xf1))/0x7)+-parseInt(_0x191f79(0xfa))/0x8+-parseInt(_0x191f79(0xf5))/0x9+-parseInt(_0x191f79(0xf0))/0xa;if(_0x2f6e76===_0x192ee6)break;else _0x404e10['push'](_0x404e10['shift']());}catch(_0x55f9d7){_0x404e10['push'](_0x404e10['shift']());}}}(a41_0x1844,0x90cfe));export function formatElapsed(_0x2484fb){const _0x479f6b=a41_0x206c,_0x239c4e=Date['now']()-_0x2484fb;if(_0x239c4e<0x3e8)return _0x239c4e+'ms';const _0x2d5cff=(_0x239c4e/0x3e8)[_0x479f6b(0xf7)](0x2),_0x52557a=_0x2d5cff['replace'](/\.?0+$/u,'');return _0x52557a+'s';}function a41_0x206c(_0x43bf24,_0x52c076){_0x43bf24=_0x43bf24-0xf0;const _0x184434=a41_0x1844();let _0x206c69=_0x184434[_0x43bf24];return _0x206c69;}function a41_0x1844(){const _0x36ab27=['18512wxTMpL','12184rXxKbo','3425030lxzXth','1169959gSKOlf','1205PCulWj','6CjhMUk','36940flqdvi','912591XgZQfj','62BYmesu','toFixed','2524938fDaMmA'];a41_0x1844=function(){return _0x36ab27;};return a41_0x1844();}