@lovrabet/cli 1.3.3 → 1.3.4-beta.1

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 (89) 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 -0
  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 +4 -1
  83. package/templates/README.md +10 -55
  84. package/lib/add-page/input-page-router.js +0 -1
  85. package/lib/add-page/main.js +0 -1
  86. package/lib/add-page/select-page-template.js +0 -1
  87. package/lib/utils/router-updater.js +0 -1
  88. package/templates/pages/blank/index.tsx.tpl +0 -13
  89. package/templates/pages/sdk-fetch/index.tsx.tpl +0 -80
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a32_0x4f3452=a32_0x2c4c;(function(_0x5c319b,_0x51d6a8){const _0x69d995=a32_0x2c4c,_0x3ab8ee=_0x5c319b();while(!![]){try{const _0x48a4ac=-parseInt(_0x69d995(0x118))/0x1*(parseInt(_0x69d995(0x135))/0x2)+parseInt(_0x69d995(0xef))/0x3*(parseInt(_0x69d995(0xee))/0x4)+parseInt(_0x69d995(0x105))/0x5*(-parseInt(_0x69d995(0x12f))/0x6)+parseInt(_0x69d995(0x106))/0x7+parseInt(_0x69d995(0xe8))/0x8*(-parseInt(_0x69d995(0xf5))/0x9)+-parseInt(_0x69d995(0x11d))/0xa*(parseInt(_0x69d995(0x107))/0xb)+parseInt(_0x69d995(0x11b))/0xc;if(_0x48a4ac===_0x51d6a8)break;else _0x3ab8ee['push'](_0x3ab8ee['shift']());}catch(_0x3e8b43){_0x3ab8ee['push'](_0x3ab8ee['shift']());}}}(a32_0x58b1,0x3dc02));import{jsx as a32_0x48a560}from'react/jsx-runtime';import a32_0xed234f from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';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(a32_0x4f3452(0x10e)))['dynamicCliFlags'];}catch{}function a32_0x58b1(){const _0x1e0ce9=['\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\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Create\x20project\x20with\x20specified\x20environment\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Add\x20a\x20page\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\x20skill\x20install\x20--dangerously-bff-save\x20//\x20Include\x20Backend\x20Function\x20sync\x20workflow\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','168486lcyXYr','slice','auth','env','cursor','stdout','10wykkow','nonInteractive','./skills/skill-install-non-interactive.js','./create-app/non-interactive.js','opencode','mcp','install','trae','2136PeCVBu','mcpClaude','update','setLogPath','other','执行初始化配置命令','1845100PLVKug','3lRuJjE','string','true','./skills/main.js','start','join','14193ZzoSKP','argv','执行构建命令','cwd','error','logs','logout','menu-update-cdn','watch','qoder','trim','agent','cline','mcpOther','flags','input','65mDEPID','1582140MkFIPx','2039873pLDXuk','exit','create','codebuddy','menu','add-page','api','./cli-flags.js','--help','./mcp/mcp-install-non-interactive.js','clear','info','antigravity','skill','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--dangerously-bff-save\x20//\x20包含\x20Backend\x20Function\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','windsurf','codex','53231ibPApS','skill-install','执行安装技能包命令','11865456KCCGdo','lovrabet\x20','20yDwHre','help','all','执行预览命令','preview','setRawCommand','isTTY','执行添加页面命令','appcode','menu-sync','page','claude','boolean','LOVRABET_CI','build','push','非交互模式创建项目:\x20'];a32_0x58b1=function(){return _0x1e0ce9;};return a32_0x58b1();}function a32_0x2c4c(_0x4f500a,_0x313057){_0x4f500a=_0x4f500a-0xe6;const _0x58b13c=a32_0x58b1();let _0x2c4cb8=_0x58b13c[_0x4f500a];return _0x2c4cb8;}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a32_0x4f3452(0x115),'en-US':a32_0x4f3452(0x12e)},systemLanguage=detectSystemLanguage();function isNonInteractiveMode(_0x2483b4){const _0x375808=a32_0x4f3452;return!!(_0x2483b4[_0x375808(0x136)]||_0x2483b4['ci']||process['env'][_0x375808(0x12a)]===_0x375808(0xf1)||process['env']['CI']===_0x375808(0xf1)||!process[_0x375808(0x134)][_0x375808(0x123)]);}function getLanguage(_0x22c9ad){const _0x2cb8b2=getLanguageFromFlags(_0x22c9ad);return _0x2cb8b2||undefined;}function renderWithI18n(_0x397956,_0x26f2a3){return render(a32_0x48a560(I18nProvider,{'language':_0x26f2a3,'children':_0x397956}));}const cli=a32_0xed234f(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a32_0x4f3452(0xf0)},'clear':{'type':a32_0x4f3452(0x129)},'env':{'type':a32_0x4f3452(0xf0)},'watch':{'type':a32_0x4f3452(0x129)},'help':{'type':a32_0x4f3452(0x129)},'appcode':{'type':a32_0x4f3452(0xf0)},'output':{'type':a32_0x4f3452(0xf0)},'params':{'type':'string'},'datasetcode':{'type':a32_0x4f3452(0xf0)},'mcpCursor':{'type':a32_0x4f3452(0x129)},'mcpClaude':{'type':a32_0x4f3452(0x129)},'mcpOther':{'type':a32_0x4f3452(0x129)},'cursor':{'type':a32_0x4f3452(0x129)},'windsurf':{'type':a32_0x4f3452(0x129)},'claude':{'type':a32_0x4f3452(0x129)},'cline':{'type':a32_0x4f3452(0x129)},'codex':{'type':a32_0x4f3452(0x129)},'opencode':{'type':'boolean'},'qoder':{'type':a32_0x4f3452(0x129)},'codebuddy':{'type':a32_0x4f3452(0x129)},'trae':{'type':a32_0x4f3452(0x129)},'agent':{'type':a32_0x4f3452(0x129)},'antigravity':{'type':a32_0x4f3452(0x129)},'all':{'type':'boolean'},'nonInteractive':{'type':a32_0x4f3452(0x129)},'ci':{'type':a32_0x4f3452(0x129)},'lang':{'type':a32_0x4f3452(0xf0)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x94bdd5=a32_0x4f3452,_0x594b38=cli[_0x94bdd5(0x104)][0x0],_0x438452=cli[_0x94bdd5(0x104)][0x1],_0x54c3ad=cli['input'][0x2],_0x595360=getLanguage(cli[_0x94bdd5(0x103)]),_0x5ba6c5=(_0x94bdd5(0x11c)+process[_0x94bdd5(0xf6)][_0x94bdd5(0x130)](0x2)[_0x94bdd5(0xf4)]('\x20'))[_0x94bdd5(0xff)]();logger[_0x94bdd5(0x122)](_0x5ba6c5);switch(_0x594b38){case'init':{const _0x4e2906=cli[_0x94bdd5(0x103)][_0x94bdd5(0x125)],_0x42fed5=cli['flags'][_0x94bdd5(0x132)];logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger[_0x94bdd5(0x112)]('init',_0x94bdd5(0xed)),renderWithI18n(a32_0x48a560(Init,{'appcode':_0x4e2906,'env':_0x42fed5}),_0x595360);break;}case _0x94bdd5(0x109):{const _0x458985=cli[_0x94bdd5(0x104)][0x1]?.[_0x94bdd5(0xff)](),_0x21c837=cli['flags'][_0x94bdd5(0x132)],_0x1ddb28=isNonInteractiveMode(cli[_0x94bdd5(0x103)]);if(_0x1ddb28&&_0x458985){logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger[_0x94bdd5(0x112)](_0x94bdd5(0x109),_0x94bdd5(0x12d)+_0x458985);const {createProjectNonInteractive:_0x4d736d}=await import(_0x94bdd5(0x138));await _0x4d736d(_0x458985,_0x21c837);}else renderWithI18n(a32_0x48a560(CreateApp,{'projectCode':_0x458985,'env':_0x21c837}),_0x595360);break;}case'add':{cli[_0x94bdd5(0x104)][0x1]===_0x94bdd5(0x127)&&(logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger[_0x94bdd5(0x112)](_0x94bdd5(0x10c),_0x94bdd5(0x124)),renderWithI18n(a32_0x48a560(AddPage,{}),_0x595360));break;}case _0x94bdd5(0xf3):{try{logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger[_0x94bdd5(0x112)](_0x94bdd5(0xf3),'执行启动命令'),await runStart();}catch(_0x5d9525){console['error'](_0x5d9525),process[_0x94bdd5(0x108)](0x1);}break;}case _0x94bdd5(0x12b):{try{logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger[_0x94bdd5(0x112)]('build',_0x94bdd5(0xf7)),await runBuild();}catch(_0x822065){console[_0x94bdd5(0xf9)](_0x822065),process[_0x94bdd5(0x108)](0x1);}break;}case _0x94bdd5(0x121):{const _0x5925c6=cli[_0x94bdd5(0x103)][_0x94bdd5(0xfd)];logger['setLogPath'](process['cwd']()),logger['info'](_0x94bdd5(0x121),_0x94bdd5(0x120)+(_0x5925c6?'\x20(监听模式)':''));if(_0x5925c6)try{await Promise[_0x94bdd5(0x11f)]([runBuildWatch(),runPreview()]);}catch(_0x38b22b){console['error'](_0x38b22b),process[_0x94bdd5(0x108)](0x1);}else try{await runPreview();}catch(_0x1dbfb8){console[_0x94bdd5(0xf9)](_0x1dbfb8),process[_0x94bdd5(0x108)](0x1);}break;}case'config':{renderWithI18n(a32_0x48a560(Config,{'cli':cli}),_0x595360);break;}case _0x94bdd5(0x10d):{await apiCli(cli);break;}case _0x94bdd5(0x131):{renderWithI18n(a32_0x48a560(AuthServer,{}),_0x595360);break;}case _0x94bdd5(0x10b):{if(_0x438452===_0x94bdd5(0xea)){logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]()),logger['info'](_0x94bdd5(0xfc),'执行更新菜单\x20CDN\x20资源命令'),renderWithI18n(a32_0x48a560(AppMenuUpdateCdn,{}),_0x595360);break;}else logger['setLogPath'](process['cwd']()),logger[_0x94bdd5(0x112)](_0x94bdd5(0x126),'同步菜单命令'),renderWithI18n(a32_0x48a560(AppMenuSyncUI,{}),_0x595360);break;}case _0x94bdd5(0xfb):{logout();break;}case _0x94bdd5(0x13a):{const _0x171dbe=cli[_0x94bdd5(0x104)][0x1];logger[_0x94bdd5(0xeb)](process[_0x94bdd5(0xf8)]());if(_0x171dbe===_0x94bdd5(0xe6)){const _0x3ea5e2=[];if(cli['flags']['mcpCursor']||cli[_0x94bdd5(0x103)][_0x94bdd5(0x133)])_0x3ea5e2[_0x94bdd5(0x12c)](_0x94bdd5(0x133));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0xe9)]||cli['flags'][_0x94bdd5(0x128)])_0x3ea5e2[_0x94bdd5(0x12c)](_0x94bdd5(0x128));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x102)])_0x3ea5e2[_0x94bdd5(0x12c)](_0x94bdd5(0xec));logger['info']('mcp-install','执行配置\x20MCP\x20命令',{'preselected':_0x3ea5e2});if(isNonInteractiveMode(cli[_0x94bdd5(0x103)])&&_0x3ea5e2['length']>0x0){const {installMcpNonInteractive:_0xc99884}=await import(_0x94bdd5(0x110));await _0xc99884(_0x3ea5e2);}else renderWithI18n(a32_0x48a560(McpInstallUI,{'preselectedIDEs':_0x3ea5e2}),_0x595360);}else _0x171dbe===_0x94bdd5(0x10f)||cli[_0x94bdd5(0x103)][_0x94bdd5(0x11e)]?await mcpCommand(_0x171dbe,[],{'help':!![]}):await mcpCommand(_0x171dbe,[],cli[_0x94bdd5(0x103)]);break;}case _0x94bdd5(0x114):{const _0x144346=cli[_0x94bdd5(0x104)][0x1];logger[_0x94bdd5(0xeb)](process['cwd']());if(_0x144346===_0x94bdd5(0xe6)){const _0x31073b=[];if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x11f)])_0x31073b[_0x94bdd5(0x12c)]('cursor','windsurf',_0x94bdd5(0x128),_0x94bdd5(0x101),_0x94bdd5(0x117),_0x94bdd5(0x139),_0x94bdd5(0xfe),_0x94bdd5(0x10a),_0x94bdd5(0xe7),_0x94bdd5(0x100),_0x94bdd5(0x113));else{if(cli['flags'][_0x94bdd5(0x133)])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0x133));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x116)])_0x31073b['push'](_0x94bdd5(0x116));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x128)])_0x31073b['push'](_0x94bdd5(0x128));if(cli['flags']['cline'])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0x101));if(cli['flags']['codex'])_0x31073b[_0x94bdd5(0x12c)]('codex');if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x139)])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0x139));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0xfe)])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0xfe));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x10a)])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0x10a));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0xe7)])_0x31073b['push'](_0x94bdd5(0xe7));if(cli[_0x94bdd5(0x103)][_0x94bdd5(0x100)])_0x31073b[_0x94bdd5(0x12c)](_0x94bdd5(0x100));if(cli['flags'][_0x94bdd5(0x113)])_0x31073b['push']('antigravity');}const {getAllProvidedFlags:_0x1021c1}=await import(_0x94bdd5(0xf2)),_0xd3a4b7=_0x1021c1(cli[_0x94bdd5(0x103)]);logger[_0x94bdd5(0x112)](_0x94bdd5(0x119),_0x94bdd5(0x11a),{'preselected':_0x31073b,'providedFlags':_0xd3a4b7});if(isNonInteractiveMode(cli[_0x94bdd5(0x103)])&&_0x31073b['length']>0x0){const {installSkillsNonInteractive:_0x556676}=await import(_0x94bdd5(0x137));await _0x556676(_0x31073b,_0xd3a4b7);}else renderWithI18n(a32_0x48a560(SkillInstallUI,{'preselectedIDEs':_0x31073b,'providedFlags':_0xd3a4b7}),_0x595360);}else _0x144346===_0x94bdd5(0x10f)||cli[_0x94bdd5(0x103)][_0x94bdd5(0x11e)]?await skillsCommand(_0x144346,[],{'help':!![]}):await skillsCommand(_0x144346,[],cli['flags']);break;}case _0x94bdd5(0xfa):{cli[_0x94bdd5(0x103)][_0x94bdd5(0x111)]?clearLogs():showLogs();break;}default:renderWithI18n(a32_0x48a560(Help,{}),_0x595360);break;}}
2
+ const a29_0x2d60eb=a29_0x5919;(function(_0xe89959,_0xb2efbf){const _0x418e73=a29_0x5919,_0x120a2d=_0xe89959();while(!![]){try{const _0x43c8f1=parseInt(_0x418e73(0x211))/0x1+parseInt(_0x418e73(0x20a))/0x2+-parseInt(_0x418e73(0x1e6))/0x3*(parseInt(_0x418e73(0x223))/0x4)+parseInt(_0x418e73(0x1eb))/0x5+parseInt(_0x418e73(0x1e1))/0x6*(-parseInt(_0x418e73(0x20f))/0x7)+parseInt(_0x418e73(0x1ff))/0x8+-parseInt(_0x418e73(0x1f0))/0x9;if(_0x43c8f1===_0xb2efbf)break;else _0x120a2d['push'](_0x120a2d['shift']());}catch(_0x467d06){_0x120a2d['push'](_0x120a2d['shift']());}}}(a29_0x51df,0x60325));import{jsx as a29_0x409683}from'react/jsx-runtime';import a29_0x2a94f2 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';function a29_0x51df(){const _0x30fe8e=['--help','执行配置\x20MCP\x20命令','stdin','1224578QTLFVG','help','isRaw','cursor','nonInteractive','7rlGCxl','argv','538414nHdxSM','api','flags','claude','build','执行安装技能包命令','codebuddy','opencode','update','logout','./skills/main.js','skill','join','antigravity','lovrabet\x20','error','./mcp/mcp-install-non-interactive.js','trae','552676pCsHss','install','agent','cwd','windsurf','menu-update-cdn','isTTY','stdout','setRawCommand','cline','start','info','./cli-flags.js','boolean','执行预览命令','push','同步菜单命令','dynamicCliFlags','非交互模式创建项目:\x20','./create-app/non-interactive.js','length','true','893850YOkjBv','\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','mcpClaude','./skills/skill-install-non-interactive.js','LOVRABET_CI','15zfKHNZ','\x20(监听模式)','exit','input','all','772940YwDbka','string','trim','×\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','执行构建命令','3662262iguutm','执行启动命令','auth','env','slice','×\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','logs','setLogPath','menu-sync','appcode','menu','mcpCursor','setRawMode','watch','codex','2683744DyPFio','preview','create','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','qoder','init','mcpOther','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci'];a29_0x51df=function(){return _0x30fe8e;};return a29_0x51df();}import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';function a29_0x5919(_0x100969,_0xab423d){_0x100969=_0x100969-0x1d0;const _0x51df8d=a29_0x51df();let _0x5919ad=_0x51df8d[_0x100969];return _0x5919ad;}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_0x2d60eb(0x1d7)))[a29_0x2d60eb(0x1dc)];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':'\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','en-US':a29_0x2d60eb(0x1e2)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x43879b=a29_0x2d60eb;if(!process[_0x43879b(0x209)][_0x43879b(0x1d1)])return![];try{const _0x5ad6bd=process[_0x43879b(0x209)][_0x43879b(0x20c)];return process['stdin'][_0x43879b(0x1fc)](!![]),process[_0x43879b(0x209)][_0x43879b(0x1fc)](_0x5ad6bd??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x2636a8){const _0x3d27c2=a29_0x2d60eb;return!!(_0x2636a8[_0x3d27c2(0x20e)]||_0x2636a8['ci']||process[_0x3d27c2(0x1f3)][_0x3d27c2(0x1e5)]===_0x3d27c2(0x1e0)||process['env']['CI']===_0x3d27c2(0x1e0)||!process[_0x3d27c2(0x1d2)][_0x3d27c2(0x1d1)]||!isStdinRawModeSupported());}function getLanguage(_0x369007){const _0x4e333e=getLanguageFromFlags(_0x369007);return _0x4e333e||undefined;}function renderWithI18n(_0x423116,_0x2a6fc2){const _0x4946f7=a29_0x2d60eb;return!isStdinRawModeSupported()&&(console['error'](_0x2a6fc2?.['startsWith']('zh')?_0x4946f7(0x206):_0x4946f7(0x1ee)),process[_0x4946f7(0x1e8)](0x1)),render(a29_0x409683(I18nProvider,{'language':_0x2a6fc2,'children':_0x423116}));}const cli=a29_0x2a94f2(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x2d60eb(0x1ec)},'clear':{'type':a29_0x2d60eb(0x1d8)},'env':{'type':a29_0x2d60eb(0x1ec)},'watch':{'type':a29_0x2d60eb(0x1d8)},'help':{'type':a29_0x2d60eb(0x1d8)},'appcode':{'type':a29_0x2d60eb(0x1ec)},'output':{'type':'string'},'params':{'type':a29_0x2d60eb(0x1ec)},'datasetcode':{'type':'string'},'mcpCursor':{'type':a29_0x2d60eb(0x1d8)},'mcpClaude':{'type':a29_0x2d60eb(0x1d8)},'mcpOther':{'type':a29_0x2d60eb(0x1d8)},'cursor':{'type':a29_0x2d60eb(0x1d8)},'windsurf':{'type':a29_0x2d60eb(0x1d8)},'claude':{'type':a29_0x2d60eb(0x1d8)},'cline':{'type':a29_0x2d60eb(0x1d8)},'codex':{'type':a29_0x2d60eb(0x1d8)},'opencode':{'type':a29_0x2d60eb(0x1d8)},'qoder':{'type':'boolean'},'codebuddy':{'type':'boolean'},'trae':{'type':'boolean'},'agent':{'type':a29_0x2d60eb(0x1d8)},'antigravity':{'type':a29_0x2d60eb(0x1d8)},'all':{'type':a29_0x2d60eb(0x1d8)},'nonInteractive':{'type':'boolean'},'ci':{'type':a29_0x2d60eb(0x1d8)},'lang':{'type':a29_0x2d60eb(0x1ec)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x25e8e0=a29_0x2d60eb,_0x1d6085=cli[_0x25e8e0(0x1e9)][0x0],_0x37fddd=cli['input'][0x1],_0x17dc3b=cli[_0x25e8e0(0x1e9)][0x2],_0x1a50f8=getLanguage(cli[_0x25e8e0(0x213)]),_0xeb97b6=(_0x25e8e0(0x21f)+process[_0x25e8e0(0x210)][_0x25e8e0(0x1f4)](0x2)[_0x25e8e0(0x21d)]('\x20'))[_0x25e8e0(0x1ed)]();logger[_0x25e8e0(0x1d3)](_0xeb97b6);switch(_0x1d6085){case _0x25e8e0(0x204):{const _0x8d20c3=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1f9)],_0xce3549=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1f3)];logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)]('init','执行初始化配置命令'),renderWithI18n(a29_0x409683(Init,{'appcode':_0x8d20c3,'env':_0xce3549}),_0x1a50f8);break;}case _0x25e8e0(0x201):{const _0x1d6e26=cli['input'][0x1]?.[_0x25e8e0(0x1ed)](),_0x5398c0=cli['flags']['env'],_0x5ef65c=isNonInteractiveMode(cli[_0x25e8e0(0x213)]);if(_0x5ef65c&&_0x1d6e26){logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x201),_0x25e8e0(0x1dd)+_0x1d6e26);const {createProjectNonInteractive:_0x3725fd}=await import(_0x25e8e0(0x1de));await _0x3725fd(_0x1d6e26,_0x5398c0);}else _0x5ef65c&&!_0x1d6e26?(console[_0x25e8e0(0x220)](_0x1a50f8?.['startsWith']('zh')?_0x25e8e0(0x202):_0x25e8e0(0x1f5)),process[_0x25e8e0(0x1e8)](0x1)):renderWithI18n(a29_0x409683(CreateApp,{'projectCode':_0x1d6e26,'env':_0x5398c0}),_0x1a50f8);break;}case _0x25e8e0(0x1d5):{try{logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1d5),_0x25e8e0(0x1f1)),await runStart();}catch(_0x479cf1){console[_0x25e8e0(0x220)](_0x479cf1),process['exit'](0x1);}break;}case'build':{try{logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger['info'](_0x25e8e0(0x215),_0x25e8e0(0x1ef)),await runBuild();}catch(_0x55b994){console[_0x25e8e0(0x220)](_0x55b994),process[_0x25e8e0(0x1e8)](0x1);}break;}case _0x25e8e0(0x200):{const _0x872d7c=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1fd)];logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)]('preview',_0x25e8e0(0x1d9)+(_0x872d7c?_0x25e8e0(0x1e7):''));if(_0x872d7c)try{await Promise['all']([runBuildWatch(),runPreview()]);}catch(_0x127cbd){console[_0x25e8e0(0x220)](_0x127cbd),process['exit'](0x1);}else try{await runPreview();}catch(_0x4db62f){console['error'](_0x4db62f),process[_0x25e8e0(0x1e8)](0x1);}break;}case'config':{renderWithI18n(a29_0x409683(Config,{'cli':cli}),_0x1a50f8);break;}case _0x25e8e0(0x212):{await apiCli(cli);break;}case _0x25e8e0(0x1f2):{renderWithI18n(a29_0x409683(AuthServer,{}),_0x1a50f8);break;}case _0x25e8e0(0x1fa):{if(_0x37fddd===_0x25e8e0(0x219)){logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1d0),'执行更新菜单\x20CDN\x20资源命令'),renderWithI18n(a29_0x409683(AppMenuUpdateCdn,{}),_0x1a50f8);break;}else logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1f8),_0x25e8e0(0x1db)),renderWithI18n(a29_0x409683(AppMenuSyncUI,{}),_0x1a50f8);break;}case _0x25e8e0(0x21a):{logout();break;}case'mcp':{const _0x4ba419=cli[_0x25e8e0(0x1e9)][0x1];logger[_0x25e8e0(0x1f7)](process['cwd']());if(_0x4ba419===_0x25e8e0(0x224)){const _0x51022c=[];if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1fb)]||cli['flags'][_0x25e8e0(0x20d)])_0x51022c[_0x25e8e0(0x1da)]('cursor');if(cli['flags'][_0x25e8e0(0x1e3)]||cli[_0x25e8e0(0x213)]['claude'])_0x51022c[_0x25e8e0(0x1da)]('claude');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x205)])_0x51022c[_0x25e8e0(0x1da)]('other');logger[_0x25e8e0(0x1d6)]('mcp-install',_0x25e8e0(0x208),{'preselected':_0x51022c});if(isNonInteractiveMode(cli['flags'])&&_0x51022c['length']>0x0){const {installMcpNonInteractive:_0x36920c}=await import(_0x25e8e0(0x221));await _0x36920c(_0x51022c);}else renderWithI18n(a29_0x409683(McpInstallUI,{'preselectedIDEs':_0x51022c}),_0x1a50f8);}else _0x4ba419==='--help'||cli[_0x25e8e0(0x213)][_0x25e8e0(0x20b)]?await mcpCommand(_0x4ba419,[],{'help':!![]}):await mcpCommand(_0x4ba419,[],cli['flags']);break;}case _0x25e8e0(0x21c):{const _0x40726c=cli[_0x25e8e0(0x1e9)][0x1];logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]());if(_0x40726c==='install'){const _0x506811=[];if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1ea)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x20d),_0x25e8e0(0x227),_0x25e8e0(0x214),_0x25e8e0(0x1d4),_0x25e8e0(0x1fe),'opencode',_0x25e8e0(0x203),_0x25e8e0(0x217),'trae','agent',_0x25e8e0(0x21e));else{if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x20d)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x20d));if(cli['flags'][_0x25e8e0(0x227)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x227));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x214)])_0x506811['push']('claude');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1d4)])_0x506811['push'](_0x25e8e0(0x1d4));if(cli['flags'][_0x25e8e0(0x1fe)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x1fe));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x218)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x218));if(cli['flags']['qoder'])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x203));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x217)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x217));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x222)])_0x506811[_0x25e8e0(0x1da)]('trae');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x225)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x225));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x21e)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x21e));}const {getAllProvidedFlags:_0x4a313b}=await import(_0x25e8e0(0x21b)),_0x479444=_0x4a313b(cli[_0x25e8e0(0x213)]);logger[_0x25e8e0(0x1d6)]('skill-install',_0x25e8e0(0x216),{'preselected':_0x506811,'providedFlags':_0x479444});if(isNonInteractiveMode(cli[_0x25e8e0(0x213)])&&_0x506811[_0x25e8e0(0x1df)]>0x0){const {installSkillsNonInteractive:_0x6e3e25}=await import(_0x25e8e0(0x1e4));await _0x6e3e25(_0x506811,_0x479444);}else renderWithI18n(a29_0x409683(SkillInstallUI,{'preselectedIDEs':_0x506811,'providedFlags':_0x479444}),_0x1a50f8);}else _0x40726c===_0x25e8e0(0x207)||cli[_0x25e8e0(0x213)][_0x25e8e0(0x20b)]?await skillsCommand(_0x40726c,[],{'help':!![]}):await skillsCommand(_0x40726c,[],cli['flags']);break;}case _0x25e8e0(0x1f6):{cli[_0x25e8e0(0x213)]['clear']?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x409683(Help,{}),_0x1a50f8);break;}}
@@ -1 +1 @@
1
- (function(_0x41de4f,_0x322fd1){const _0x129812=a33_0x1884,_0x1dc016=_0x41de4f();while(!![]){try{const _0x4f85b0=-parseInt(_0x129812(0x170))/0x1+parseInt(_0x129812(0x180))/0x2*(-parseInt(_0x129812(0x17f))/0x3)+parseInt(_0x129812(0x179))/0x4+parseInt(_0x129812(0x182))/0x5*(-parseInt(_0x129812(0x173))/0x6)+parseInt(_0x129812(0x17d))/0x7*(-parseInt(_0x129812(0x17b))/0x8)+-parseInt(_0x129812(0x17e))/0x9*(-parseInt(_0x129812(0x176))/0xa)+parseInt(_0x129812(0x17a))/0xb;if(_0x4f85b0===_0x322fd1)break;else _0x1dc016['push'](_0x1dc016['shift']());}catch(_0x4a5831){_0x1dc016['push'](_0x1dc016['shift']());}}}(a33_0x3324,0xae084));function a33_0x1884(_0x2ce2f0,_0x2a0d7a){_0x2ce2f0=_0x2ce2f0-0x170;const _0x332486=a33_0x3324();let _0x188468=_0x332486[_0x2ce2f0];return _0x188468;}import{spawn}from'node:child_process';function a33_0x3324(){const _0x6ab250=['9rRvBil','813422BDZaCd','--watch','1364255hXxfEt','vite','node_modules','1412408rKpFzg','close','cwd','6gTHHkD','build','env','11740YSfwLS','.bin','inherit','282984GtOLWk','41820130GKmODn','432bKUXkC','PATH','80605FdAAec','2817STHsVD'];a33_0x3324=function(){return _0x6ab250;};return a33_0x3324();}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x4b21aa,_0x1ccf11)=>{const _0xa83aa9=a33_0x1884,_0xf7520a=spawn(_0xa83aa9(0x183),[_0xa83aa9(0x174),_0xa83aa9(0x181)],{'stdio':_0xa83aa9(0x178),'shell':!![],'env':{...process[_0xa83aa9(0x175)],'PATH':''+join(process[_0xa83aa9(0x172)](),_0xa83aa9(0x184),_0xa83aa9(0x177))+delimiter+process[_0xa83aa9(0x175)][_0xa83aa9(0x17c)]}});_0xf7520a['on'](_0xa83aa9(0x171),_0x5d31ce=>{if(_0x5d31ce===0x0||_0x5d31ce===null)_0x4b21aa();else _0x1ccf11(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x5d31ce));}),_0xf7520a['on']('error',_0x1ccf11);});}
1
+ function a30_0x12f5(_0x4f683b,_0x285075){_0x4f683b=_0x4f683b-0x6a;const _0x8e30b3=a30_0x8e30();let _0x12f589=_0x8e30b3[_0x4f683b];return _0x12f589;}(function(_0x4f4d31,_0xd7b768){const _0x3f47b0=a30_0x12f5,_0x1ff47a=_0x4f4d31();while(!![]){try{const _0x2677a3=-parseInt(_0x3f47b0(0x7c))/0x1*(parseInt(_0x3f47b0(0x75))/0x2)+parseInt(_0x3f47b0(0x7b))/0x3+parseInt(_0x3f47b0(0x7a))/0x4*(parseInt(_0x3f47b0(0x70))/0x5)+parseInt(_0x3f47b0(0x73))/0x6+parseInt(_0x3f47b0(0x6a))/0x7+-parseInt(_0x3f47b0(0x6b))/0x8*(-parseInt(_0x3f47b0(0x6c))/0x9)+parseInt(_0x3f47b0(0x74))/0xa*(-parseInt(_0x3f47b0(0x72))/0xb);if(_0x2677a3===_0xd7b768)break;else _0x1ff47a['push'](_0x1ff47a['shift']());}catch(_0xea8b35){_0x1ff47a['push'](_0x1ff47a['shift']());}}}(a30_0x8e30,0x8fbf6));function a30_0x8e30(){const _0x22ed62=['33pFaccM','1672740iCbZNU','1936540jQaXkj','32sGCOME','error','env','vite','.bin','4jOXJip','2681694EwshCu','47806trOpvV','2641254ndpKBx','1113656DeEuii','9CPpEjj','PATH','--watch','inherit','1227155zrjdGO','node_modules'];a30_0x8e30=function(){return _0x22ed62;};return a30_0x8e30();}import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x372285,_0x476a76)=>{const _0x21d280=a30_0x12f5,_0x28b52d=spawn(_0x21d280(0x78),['build',_0x21d280(0x6e)],{'stdio':_0x21d280(0x6f),'shell':!![],'env':{...process[_0x21d280(0x77)],'PATH':''+join(process['cwd'](),_0x21d280(0x71),_0x21d280(0x79))+delimiter+process[_0x21d280(0x77)][_0x21d280(0x6d)]}});_0x28b52d['on']('close',_0x3e8e77=>{if(_0x3e8e77===0x0||_0x3e8e77===null)_0x372285();else _0x476a76(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x3e8e77));}),_0x28b52d['on'](_0x21d280(0x76),_0x476a76);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- function a34_0x1245(_0x3ea2e5,_0x6bc1b4){_0x3ea2e5=_0x3ea2e5-0x1ce;const _0xfa5f27=a34_0xfa5f();let _0x124571=_0xfa5f27[_0x3ea2e5];return _0x124571;}(function(_0x4eafcd,_0x2b43c7){const _0x1899e0=a34_0x1245,_0x22ea1c=_0x4eafcd();while(!![]){try{const _0x45205f=parseInt(_0x1899e0(0x1de))/0x1+-parseInt(_0x1899e0(0x1e7))/0x2*(-parseInt(_0x1899e0(0x1ea))/0x3)+parseInt(_0x1899e0(0x1d4))/0x4*(-parseInt(_0x1899e0(0x1e9))/0x5)+parseInt(_0x1899e0(0x1cf))/0x6+-parseInt(_0x1899e0(0x1e5))/0x7+parseInt(_0x1899e0(0x1dd))/0x8*(parseInt(_0x1899e0(0x1e4))/0x9)+-parseInt(_0x1899e0(0x1d5))/0xa*(parseInt(_0x1899e0(0x1e3))/0xb);if(_0x45205f===_0x2b43c7)break;else _0x22ea1c['push'](_0x22ea1c['shift']());}catch(_0x374fbf){_0x22ea1c['push'](_0x22ea1c['shift']());}}}(a34_0xfa5f,0x51bb5));import{delimiter,join}from'node:path';function a34_0xfa5f(){const _0x31d02a=['success','255215xyrvZA','9UFiYoe','项目构建出错','node_modules','info','error','224448txWELT','npm','npm\x20run\x20build\x20exited\x20with\x20code\x20','.bin','data','8WhRbHV','970KuOWYQ','PATH','message','now','close','toString','npm\x20run\x20build','trim','1104wUhDTR','388437sDDRTi','cwd','inherit','项目构建失败','build','30877EoryJZ','13077LDDquS','989940ogMgfZ','stderr','149466xQNhRh'];a34_0xfa5f=function(){return _0x31d02a;};return a34_0xfa5f();}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x5f2e22,_0x38413a)=>{const _0x46bd49=a34_0x1245,_0x66c877=Date[_0x46bd49(0x1d8)]();logger[_0x46bd49(0x1ed)]('build','开始构建项目',{'command':_0x46bd49(0x1db)});let _0x2cda67='';const _0x24f56c=spawn(_0x46bd49(0x1d0),['run',_0x46bd49(0x1e2)],{'stdio':[_0x46bd49(0x1e0),_0x46bd49(0x1e0),'pipe'],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x46bd49(0x1df)](),_0x46bd49(0x1ec),_0x46bd49(0x1d2))+delimiter+process['env'][_0x46bd49(0x1d6)]}});_0x24f56c[_0x46bd49(0x1e6)]?.['on'](_0x46bd49(0x1d3),_0x20e8d1=>{const _0x3ab565=_0x46bd49;_0x2cda67+=_0x20e8d1[_0x3ab565(0x1da)]();}),_0x24f56c['on'](_0x46bd49(0x1d9),_0x3cb222=>{const _0xdaae2=_0x46bd49,_0x6d3844=Date[_0xdaae2(0x1d8)]()-_0x66c877;if(_0x3cb222===0x0||_0x3cb222===null)logger[_0xdaae2(0x1e8)](_0xdaae2(0x1e2),'项目构建成功',_0x6d3844),_0x5f2e22();else{const _0x13ec6f={'exitCode':_0x3cb222,'duration':_0x6d3844,'command':_0xdaae2(0x1db),'cwd':process[_0xdaae2(0x1df)]()};_0x2cda67['trim']()&&(_0x13ec6f['stderr']=_0x2cda67['trim']()),logger[_0xdaae2(0x1ce)](_0xdaae2(0x1e2),_0xdaae2(0x1e1),_0x13ec6f),_0x38413a(new Error(_0xdaae2(0x1d1)+_0x3cb222));}}),_0x24f56c['on'](_0x46bd49(0x1ce),_0x442907=>{const _0x5744cc=_0x46bd49,_0x41ed9e=Date[_0x5744cc(0x1d8)]()-_0x66c877;logger[_0x5744cc(0x1ce)](_0x5744cc(0x1e2),_0x5744cc(0x1eb),{'error':_0x442907[_0x5744cc(0x1d7)],'duration':_0x41ed9e,'stderr':_0x2cda67[_0x5744cc(0x1dc)]()||undefined}),_0x38413a(_0x442907);});});}
1
+ (function(_0x42d1fa,_0x418ee4){const _0x4ef52=a31_0xd5c4,_0x4d55d4=_0x42d1fa();while(!![]){try{const _0x72a077=parseInt(_0x4ef52(0xbd))/0x1*(parseInt(_0x4ef52(0xc9))/0x2)+-parseInt(_0x4ef52(0xd8))/0x3+-parseInt(_0x4ef52(0xd1))/0x4*(parseInt(_0x4ef52(0xb9))/0x5)+parseInt(_0x4ef52(0xbe))/0x6*(-parseInt(_0x4ef52(0xcc))/0x7)+parseInt(_0x4ef52(0xbb))/0x8+-parseInt(_0x4ef52(0xc5))/0x9*(parseInt(_0x4ef52(0xd7))/0xa)+-parseInt(_0x4ef52(0xc7))/0xb*(-parseInt(_0x4ef52(0xc4))/0xc);if(_0x72a077===_0x418ee4)break;else _0x4d55d4['push'](_0x4d55d4['shift']());}catch(_0x4eea66){_0x4d55d4['push'](_0x4d55d4['shift']());}}}(a31_0x29ae,0xeb822));function a31_0xd5c4(_0x3e68ce,_0x1adbc3){_0x3e68ce=_0x3e68ce-0xb8;const _0x29ae84=a31_0x29ae();let _0xd5c46c=_0x29ae84[_0x3e68ce];return _0xd5c46c;}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a31_0x29ae(){const _0x16069e=['run','10IlnWLQ','3840858QgcuUP','项目构建成功','35qPgWlU','PATH','13896608DEjZWQ','success','1gyRAoG','52698nzCLBF','项目构建失败','inherit','node_modules','now','info','348dlIJaN','15927840ABHxtI','npm\x20run\x20build','1992089CTyjGp','trim','85302iBUiOk','message','error','1491JJGWvO','.bin','cwd','build','pipe','654932Xtyuca','npm\x20run\x20build\x20exited\x20with\x20code\x20','stderr','npm','env'];a31_0x29ae=function(){return _0x16069e;};return a31_0x29ae();}export function runBuild(){return new Promise((_0x2176ec,_0x1e6cf8)=>{const _0x4ecc70=a31_0xd5c4,_0x5ca15e=Date['now']();logger[_0x4ecc70(0xc3)](_0x4ecc70(0xcf),'开始构建项目',{'command':_0x4ecc70(0xc6)});let _0x535046='';const _0x14446b=spawn(_0x4ecc70(0xd4),[_0x4ecc70(0xd6),_0x4ecc70(0xcf)],{'stdio':['inherit',_0x4ecc70(0xc0),_0x4ecc70(0xd0)],'shell':!![],'env':{...process[_0x4ecc70(0xd5)],'PATH':''+join(process['cwd'](),_0x4ecc70(0xc1),_0x4ecc70(0xcd))+delimiter+process[_0x4ecc70(0xd5)][_0x4ecc70(0xba)]}});_0x14446b[_0x4ecc70(0xd3)]?.['on']('data',_0x1744c1=>{_0x535046+=_0x1744c1['toString']();}),_0x14446b['on']('close',_0x5c79c2=>{const _0x204463=_0x4ecc70,_0x5e492b=Date[_0x204463(0xc2)]()-_0x5ca15e;if(_0x5c79c2===0x0||_0x5c79c2===null)logger[_0x204463(0xbc)](_0x204463(0xcf),_0x204463(0xb8),_0x5e492b),_0x2176ec();else{const _0x5a0335={'exitCode':_0x5c79c2,'duration':_0x5e492b,'command':_0x204463(0xc6),'cwd':process[_0x204463(0xce)]()};_0x535046[_0x204463(0xc8)]()&&(_0x5a0335['stderr']=_0x535046['trim']()),logger[_0x204463(0xcb)]('build',_0x204463(0xbf),_0x5a0335),_0x1e6cf8(new Error(_0x204463(0xd2)+_0x5c79c2));}}),_0x14446b['on']('error',_0x5a7663=>{const _0xc10305=_0x4ecc70,_0x57c4ca=Date[_0xc10305(0xc2)]()-_0x5ca15e;logger[_0xc10305(0xcb)]('build','项目构建出错',{'error':_0x5a7663[_0xc10305(0xca)],'duration':_0x57c4ca,'stderr':_0x535046['trim']()||undefined}),_0x1e6cf8(_0x5a7663);});});}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- const a35_0x4d70eb=a35_0x5e3e;(function(_0xbf727,_0x5bb96e){const _0x1f8af8=a35_0x5e3e,_0x142707=_0xbf727();while(!![]){try{const _0x5c968e=parseInt(_0x1f8af8(0x197))/0x1+-parseInt(_0x1f8af8(0x1a1))/0x2*(parseInt(_0x1f8af8(0x18a))/0x3)+parseInt(_0x1f8af8(0x191))/0x4+parseInt(_0x1f8af8(0x19c))/0x5+parseInt(_0x1f8af8(0x19e))/0x6+parseInt(_0x1f8af8(0x196))/0x7*(parseInt(_0x1f8af8(0x1a5))/0x8)+-parseInt(_0x1f8af8(0x18c))/0x9*(parseInt(_0x1f8af8(0x194))/0xa);if(_0x5c968e===_0x5bb96e)break;else _0x142707['push'](_0x142707['shift']());}catch(_0x78d3f){_0x142707['push'](_0x142707['shift']());}}}(a35_0x1d18,0xf3270));import{logger}from'../utils/logger.js';import a35_0x23b4a1 from'../i18n/index.js';const t=a35_0x23b4a1['t'][a35_0x4d70eb(0x18d)](a35_0x23b4a1);function a35_0x5e3e(_0x49bb5a,_0x24adc8){_0x49bb5a=_0x49bb5a-0x189;const _0x1d1859=a35_0x1d18();let _0x5e3ec3=_0x1d1859[_0x49bb5a];return _0x5e3ec3;}export function showLogs(){const _0x3d92ab=a35_0x4d70eb;logger['setLogPath'](process['cwd']());const _0x1f66e2=logger[_0x3d92ab(0x1a6)]();if(_0x1f66e2[_0x3d92ab(0x198)]===0x0){console[_0x3d92ab(0x192)](t('logs.noLogs'));return;}console[_0x3d92ab(0x192)](t('logs.header')),_0x1f66e2[_0x3d92ab(0x1a7)]((_0x4f6917,_0x116fc2)=>{const _0x34e9ac=_0x3d92ab,_0x5103d8=a35_0x23b4a1['language']===_0x34e9ac(0x18b)?_0x34e9ac(0x18b):_0x34e9ac(0x1a4),_0x566cb5=new Date(_0x4f6917[_0x34e9ac(0x1a2)])['toLocaleString'](_0x5103d8),_0x16c893=_0x4f6917[_0x34e9ac(0x19f)]===_0x34e9ac(0x19a)?'√':_0x4f6917[_0x34e9ac(0x19f)]===_0x34e9ac(0x18f)?'×':_0x4f6917[_0x34e9ac(0x19f)]==='warn'?'!':'i';console['log'](_0x116fc2+0x1+'.\x20'+_0x16c893+'\x20['+_0x4f6917[_0x34e9ac(0x190)]+']\x20'+_0x4f6917[_0x34e9ac(0x193)]),console[_0x34e9ac(0x192)](t('logs.time',{'time':_0x566cb5})),_0x4f6917[_0x34e9ac(0x1a3)]&&console[_0x34e9ac(0x192)](t(_0x34e9ac(0x189),{'duration':_0x4f6917['duration']})),_0x4f6917[_0x34e9ac(0x195)]&&Object[_0x34e9ac(0x19b)](_0x4f6917['details'])[_0x34e9ac(0x198)]>0x0&&console[_0x34e9ac(0x192)](t(_0x34e9ac(0x1a0),{'details':JSON['stringify'](_0x4f6917[_0x34e9ac(0x195)],null,0x2)})),console[_0x34e9ac(0x192)]('');});}function a35_0x1d18(){const _0x6e6e04=['length','setLogPath','success','keys','379505EdReXT','clearLogs','11302872uTRUfI','level','logs.details','106koTQwN','timestamp','duration','en-US','56VupDAv','readLogs','forEach','cwd','logs.duration','71349TNKCDh','zh-CN','7656561jojDps','bind','logs.cleared','error','command','1890328eymTkK','log','message','20jiasyQ','details','960652hciwgi','564962BgExrQ'];a35_0x1d18=function(){return _0x6e6e04;};return a35_0x1d18();}export function clearLogs(){const _0x2ac695=a35_0x4d70eb;logger[_0x2ac695(0x199)](process[_0x2ac695(0x1a8)]()),logger[_0x2ac695(0x19d)](),console[_0x2ac695(0x192)](t(_0x2ac695(0x18e)));}
1
+ (function(_0x20451b,_0xe11f5c){const _0x307ab3=a32_0xc4c0,_0x406d9b=_0x20451b();while(!![]){try{const _0x53fffa=-parseInt(_0x307ab3(0x1eb))/0x1+parseInt(_0x307ab3(0x1fa))/0x2*(parseInt(_0x307ab3(0x1fb))/0x3)+-parseInt(_0x307ab3(0x1e0))/0x4*(parseInt(_0x307ab3(0x1e2))/0x5)+parseInt(_0x307ab3(0x1e5))/0x6+parseInt(_0x307ab3(0x1fd))/0x7+-parseInt(_0x307ab3(0x1f9))/0x8+-parseInt(_0x307ab3(0x1e1))/0x9*(-parseInt(_0x307ab3(0x1de))/0xa);if(_0x53fffa===_0xe11f5c)break;else _0x406d9b['push'](_0x406d9b['shift']());}catch(_0xdc7370){_0x406d9b['push'](_0x406d9b['shift']());}}}(a32_0x2c01,0x78c1e));import{logger}from'../utils/logger.js';function a32_0x2c01(){const _0x2a0bcf=['command','logs.details','7130144XrxNxR','210976gUbovP','15TkrXSy','log','3856321cbQSML','clearLogs','setLogPath','en-US','80eSjyVL','language','6292KuXjDC','708912mVAmmq','1265hpvcRs','level','logs.cleared','4186680PRrbxU','toLocaleString','success','forEach','stringify','warn','622408ogHTdC','zh-CN','logs.header','length','timestamp','details','logs.time','logs.duration','cwd','duration','logs.noLogs','readLogs'];a32_0x2c01=function(){return _0x2a0bcf;};return a32_0x2c01();}function a32_0xc4c0(_0x8653eb,_0x19697a){_0x8653eb=_0x8653eb-0x1db;const _0x2c01c9=a32_0x2c01();let _0xc4c02a=_0x2c01c9[_0x8653eb];return _0xc4c02a;}import a32_0x524dea from'../i18n/index.js';const t=a32_0x524dea['t']['bind'](a32_0x524dea);export function showLogs(){const _0x203823=a32_0xc4c0;logger[_0x203823(0x1dc)](process[_0x203823(0x1f3)]());const _0x1e5a9a=logger[_0x203823(0x1f6)]();if(_0x1e5a9a['length']===0x0){console['log'](t(_0x203823(0x1f5)));return;}console[_0x203823(0x1fc)](t(_0x203823(0x1ed))),_0x1e5a9a[_0x203823(0x1e8)]((_0x43bf58,_0x25a462)=>{const _0x253405=_0x203823,_0x1398a0=a32_0x524dea[_0x253405(0x1df)]===_0x253405(0x1ec)?_0x253405(0x1ec):_0x253405(0x1dd),_0x192f57=new Date(_0x43bf58[_0x253405(0x1ef)])[_0x253405(0x1e6)](_0x1398a0),_0x48715d=_0x43bf58['level']===_0x253405(0x1e7)?'√':_0x43bf58[_0x253405(0x1e3)]==='error'?'×':_0x43bf58[_0x253405(0x1e3)]===_0x253405(0x1ea)?'!':'i';console['log'](_0x25a462+0x1+'.\x20'+_0x48715d+'\x20['+_0x43bf58[_0x253405(0x1f7)]+']\x20'+_0x43bf58['message']),console['log'](t(_0x253405(0x1f1),{'time':_0x192f57})),_0x43bf58[_0x253405(0x1f4)]&&console['log'](t(_0x253405(0x1f2),{'duration':_0x43bf58[_0x253405(0x1f4)]})),_0x43bf58[_0x253405(0x1f0)]&&Object['keys'](_0x43bf58['details'])[_0x253405(0x1ee)]>0x0&&console[_0x253405(0x1fc)](t(_0x253405(0x1f8),{'details':JSON[_0x253405(0x1e9)](_0x43bf58[_0x253405(0x1f0)],null,0x2)})),console[_0x253405(0x1fc)]('');});}export function clearLogs(){const _0x4fb3fb=a32_0xc4c0;logger[_0x4fb3fb(0x1dc)](process[_0x4fb3fb(0x1f3)]()),logger[_0x4fb3fb(0x1db)](),console[_0x4fb3fb(0x1fc)](t(_0x4fb3fb(0x1e4)));}
@@ -1 +1 @@
1
- function a36_0x4252(_0x101a8a,_0x13dd94){_0x101a8a=_0x101a8a-0x1d7;const _0x29e263=a36_0x29e2();let _0x4252e0=_0x29e263[_0x101a8a];return _0x4252e0;}(function(_0x2e16ba,_0x4d2694){const _0x344793=a36_0x4252,_0xae5366=_0x2e16ba();while(!![]){try{const _0x2913c7=parseInt(_0x344793(0x1d9))/0x1+-parseInt(_0x344793(0x1dd))/0x2+parseInt(_0x344793(0x1eb))/0x3+-parseInt(_0x344793(0x1ed))/0x4+-parseInt(_0x344793(0x1f6))/0x5*(-parseInt(_0x344793(0x1f0))/0x6)+-parseInt(_0x344793(0x1db))/0x7*(-parseInt(_0x344793(0x1ef))/0x8)+parseInt(_0x344793(0x1e8))/0x9*(parseInt(_0x344793(0x1e9))/0xa);if(_0x2913c7===_0x4d2694)break;else _0xae5366['push'](_0xae5366['shift']());}catch(_0x387176){_0xae5366['push'](_0xae5366['shift']());}}}(a36_0x29e2,0x723d8));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a36_0x29e2(){const _0x1d6eff=['启动预览服务器','message','close','287897UPSqGt','pipe','31451ffcXpn','cwd','953342dgqXJQ','stderr','vite','env','vite\x20preview','PATH','now','预览服务器启动成功','预览服务器启动出错','toString','trim','18mGYNOm','1005990NsHgCO','node_modules','807729hIppWJ','data','3064436uZmDJE','success','376rDGwei','11202ibMTan','preview','vite\x20preview\x20exited\x20with\x20code\x20','.bin','inherit','info','1985EeqNCd'];a36_0x29e2=function(){return _0x1d6eff;};return a36_0x29e2();}export function runPreview(){return new Promise((_0x3a38dc,_0x50428b)=>{const _0x49e0fe=a36_0x4252,_0x571f8a=Date[_0x49e0fe(0x1e3)]();logger[_0x49e0fe(0x1f5)]('preview',_0x49e0fe(0x1f7),{'command':_0x49e0fe(0x1e1)});let _0x273cd4='';const _0x49a79d=spawn(_0x49e0fe(0x1df),[_0x49e0fe(0x1f1)],{'stdio':['inherit',_0x49e0fe(0x1f4),_0x49e0fe(0x1da)],'shell':!![],'env':{...process[_0x49e0fe(0x1e0)],'PATH':''+join(process[_0x49e0fe(0x1dc)](),_0x49e0fe(0x1ea),_0x49e0fe(0x1f3))+delimiter+process[_0x49e0fe(0x1e0)][_0x49e0fe(0x1e2)]}});_0x49a79d[_0x49e0fe(0x1de)]?.['on'](_0x49e0fe(0x1ec),_0x2299cf=>{const _0x64e6e0=_0x49e0fe;_0x273cd4+=_0x2299cf[_0x64e6e0(0x1e6)]();}),_0x49a79d['on'](_0x49e0fe(0x1d8),_0x212717=>{const _0x2a33e9=_0x49e0fe,_0x45a9d4=Date[_0x2a33e9(0x1e3)]()-_0x571f8a;if(_0x212717===0x0||_0x212717===null)logger[_0x2a33e9(0x1ee)](_0x2a33e9(0x1f1),_0x2a33e9(0x1e4),_0x45a9d4),_0x3a38dc();else{const _0xd82e10={'exitCode':_0x212717,'duration':_0x45a9d4,'command':'vite\x20preview','cwd':process[_0x2a33e9(0x1dc)]()};_0x273cd4['trim']()&&(_0xd82e10[_0x2a33e9(0x1de)]=_0x273cd4[_0x2a33e9(0x1e7)]()),logger['error'](_0x2a33e9(0x1f1),'预览服务器启动失败',_0xd82e10),_0x50428b(new Error(_0x2a33e9(0x1f2)+_0x212717));}}),_0x49a79d['on']('error',_0x25df70=>{const _0x340246=_0x49e0fe,_0x19571f=Date[_0x340246(0x1e3)]()-_0x571f8a;logger['error'](_0x340246(0x1f1),_0x340246(0x1e5),{'error':_0x25df70[_0x340246(0x1d7)],'duration':_0x19571f,'stderr':_0x273cd4[_0x340246(0x1e7)]()||undefined}),_0x50428b(_0x25df70);});});}
1
+ (function(_0x499b77,_0x1ab8bd){const _0x1ccaea=a33_0xdce1,_0x24eb2d=_0x499b77();while(!![]){try{const _0x265631=parseInt(_0x1ccaea(0x115))/0x1*(-parseInt(_0x1ccaea(0x127))/0x2)+-parseInt(_0x1ccaea(0x125))/0x3*(-parseInt(_0x1ccaea(0x12c))/0x4)+-parseInt(_0x1ccaea(0x110))/0x5+-parseInt(_0x1ccaea(0x121))/0x6+-parseInt(_0x1ccaea(0x10d))/0x7*(-parseInt(_0x1ccaea(0x124))/0x8)+-parseInt(_0x1ccaea(0x11d))/0x9*(parseInt(_0x1ccaea(0x12b))/0xa)+parseInt(_0x1ccaea(0x11e))/0xb;if(_0x265631===_0x1ab8bd)break;else _0x24eb2d['push'](_0x24eb2d['shift']());}catch(_0x4ef8af){_0x24eb2d['push'](_0x24eb2d['shift']());}}}(a33_0x5af7,0x2f188));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a33_0x5af7(){const _0x660273=['470315VTBFqc','预览服务器启动成功','启动预览服务器','info','预览服务器启动出错','55681XHkqDa','preview','success','message','cwd','toString','error','vite\x20preview\x20exited\x20with\x20code\x20','9GScMjo','6864363uvTJyG','stderr','trim','2209350uOeqBw','vite','close','11360Toevlv','341697IOZfzm','预览服务器启动失败','10ISBbkZ','data','node_modules','inherit','204740tAfrfk','8qiGvxM','.bin','env','504nhMMQt','now','vite\x20preview'];a33_0x5af7=function(){return _0x660273;};return a33_0x5af7();}function a33_0xdce1(_0x3e63db,_0x538713){_0x3e63db=_0x3e63db-0x10c;const _0x5af722=a33_0x5af7();let _0xdce153=_0x5af722[_0x3e63db];return _0xdce153;}export function runPreview(){return new Promise((_0x2dbe8d,_0x1d9548)=>{const _0x250b61=a33_0xdce1,_0x19dc11=Date[_0x250b61(0x10e)]();logger[_0x250b61(0x113)](_0x250b61(0x116),_0x250b61(0x112),{'command':_0x250b61(0x10f)});let _0x590e77='';const _0x2bd96c=spawn(_0x250b61(0x122),['preview'],{'stdio':[_0x250b61(0x12a),_0x250b61(0x12a),'pipe'],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x250b61(0x119)](),_0x250b61(0x129),_0x250b61(0x12d))+delimiter+process[_0x250b61(0x10c)]['PATH']}});_0x2bd96c[_0x250b61(0x11f)]?.['on'](_0x250b61(0x128),_0x53db93=>{const _0x24a527=_0x250b61;_0x590e77+=_0x53db93[_0x24a527(0x11a)]();}),_0x2bd96c['on'](_0x250b61(0x123),_0x3c83d3=>{const _0x53e61f=_0x250b61,_0x125427=Date[_0x53e61f(0x10e)]()-_0x19dc11;if(_0x3c83d3===0x0||_0x3c83d3===null)logger[_0x53e61f(0x117)](_0x53e61f(0x116),_0x53e61f(0x111),_0x125427),_0x2dbe8d();else{const _0x2fa897={'exitCode':_0x3c83d3,'duration':_0x125427,'command':'vite\x20preview','cwd':process[_0x53e61f(0x119)]()};_0x590e77[_0x53e61f(0x120)]()&&(_0x2fa897[_0x53e61f(0x11f)]=_0x590e77['trim']()),logger[_0x53e61f(0x11b)]('preview',_0x53e61f(0x126),_0x2fa897),_0x1d9548(new Error(_0x53e61f(0x11c)+_0x3c83d3));}}),_0x2bd96c['on']('error',_0x5942be=>{const _0x5acbb2=_0x250b61,_0x205cea=Date[_0x5acbb2(0x10e)]()-_0x19dc11;logger[_0x5acbb2(0x11b)](_0x5acbb2(0x116),_0x5acbb2(0x114),{'error':_0x5942be[_0x5acbb2(0x118)],'duration':_0x205cea,'stderr':_0x590e77['trim']()||undefined}),_0x1d9548(_0x5942be);});});}
@@ -0,0 +1 @@
1
+ (function(_0x62781a,_0x50a046){const _0x2f322c=a34_0x270f,_0x39835d=_0x62781a();while(!![]){try{const _0x18e3d4=parseInt(_0x2f322c(0x18c))/0x1*(-parseInt(_0x2f322c(0x1a3))/0x2)+-parseInt(_0x2f322c(0x19b))/0x3+parseInt(_0x2f322c(0x195))/0x4+parseInt(_0x2f322c(0x19d))/0x5*(parseInt(_0x2f322c(0x198))/0x6)+parseInt(_0x2f322c(0x189))/0x7+-parseInt(_0x2f322c(0x1a1))/0x8*(parseInt(_0x2f322c(0x196))/0x9)+parseInt(_0x2f322c(0x1a2))/0xa*(parseInt(_0x2f322c(0x187))/0xb);if(_0x18e3d4===_0x50a046)break;else _0x39835d['push'](_0x39835d['shift']());}catch(_0x36ae68){_0x39835d['push'](_0x39835d['shift']());}}}(a34_0xf7cc,0x90d13));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_0x270f(_0x5e5126,_0x381d96){_0x5e5126=_0x5e5126-0x186;const _0xf7cc49=a34_0xf7cc();let _0x270fbb=_0xf7cc49[_0x5e5126];return _0x270fbb;}import{execa}from'execa';export async function runStart(_0xacb4bf){const _0x302903=a34_0x270f,_0x5b64ec=Date['now'](),_0x5edd91=_0xacb4bf||process[_0x302903(0x18a)](),_0x5599ed=await checkCliVersion();_0x5599ed[_0x302903(0x190)]&&(printCliUpgradeWarning(_0x5599ed),logger[_0x302903(0x199)](_0x302903(0x1a5),_0x302903(0x1a6),{'currentVersion':_0x5599ed[_0x302903(0x188)],'stableVersion':_0x5599ed['stableVersion']}));const _0x2fbe14=await checkSdkVersion(_0x5edd91);_0x2fbe14[_0x302903(0x190)]&&(printSdkUpgradeWarning(_0x2fbe14),logger[_0x302903(0x199)](_0x302903(0x1a5),_0x302903(0x193),{'currentVersion':_0x2fbe14[_0x302903(0x1a0)],'stableVersion':_0x2fbe14[_0x302903(0x19a)]}));logger[_0x302903(0x1a7)](_0x302903(0x1a5),'启动开发服务器',{'command':_0x302903(0x1a4),'cwd':_0x5edd91});try{await execa(_0x302903(0x1a4),[],{'cwd':_0x5edd91,'stdio':_0x302903(0x18f),'preferLocal':!![],'localDir':_0x5edd91,'env':{...process[_0x302903(0x19f)]}});const _0x3fc18f=Date[_0x302903(0x197)]()-_0x5b64ec;logger[_0x302903(0x186)](_0x302903(0x1a5),_0x302903(0x192),_0x3fc18f);}catch(_0x56405e){const _0x3d1aa6=Date[_0x302903(0x197)]()-_0x5b64ec,_0x56b426={'duration':_0x3d1aa6,'command':'vite','cwd':_0x5edd91};if(_0x56405e&&typeof _0x56405e===_0x302903(0x191)){const _0x34e97b=_0x56405e;_0x34e97b[_0x302903(0x194)]!==undefined&&(_0x56b426[_0x302903(0x194)]=_0x34e97b[_0x302903(0x194)]),_0x34e97b[_0x302903(0x18b)]&&(_0x56b426[_0x302903(0x18b)]=_0x34e97b[_0x302903(0x18b)]),_0x34e97b[_0x302903(0x19c)]&&(_0x56b426[_0x302903(0x18d)]=!![]),_0x34e97b[_0x302903(0x19e)]&&(_0x56b426[_0x302903(0x18e)]=_0x34e97b['message']);}logger[_0x302903(0x18e)](_0x302903(0x1a5),'开发服务器启动失败',_0x56b426);throw _0x56405e;}}function a34_0xf7cc(){const _0x3180e7=['278368QpLSFy','vite','start','CLI\x20版本有更新','info','success','2274349EszSmA','currentVersion','3800769dhtDDd','cwd','stderr','3mquTts','timeout','error','inherit','needsUpgrade','object','开发服务器启动成功','SDK\x20版本有更新','exitCode','391020GGUULr','5286816NmSKHK','now','1614xzYOUz','warn','stableVersion','731781HCkcJI','timedOut','10190OLJHhU','message','env','version','16ZbRiOB','60ATlxAm'];a34_0xf7cc=function(){return _0x3180e7;};return a34_0xf7cc();}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- (function(_0x43c070,_0x476179){const _0x5d1d69=a37_0x565b,_0x46568=_0x43c070();while(!![]){try{const _0xe4a632=parseInt(_0x5d1d69(0x1c4))/0x1*(parseInt(_0x5d1d69(0x1b2))/0x2)+parseInt(_0x5d1d69(0x1c2))/0x3*(-parseInt(_0x5d1d69(0x1bb))/0x4)+-parseInt(_0x5d1d69(0x1c6))/0x5+-parseInt(_0x5d1d69(0x1bf))/0x6+-parseInt(_0x5d1d69(0x1c5))/0x7+parseInt(_0x5d1d69(0x1d5))/0x8*(-parseInt(_0x5d1d69(0x1c9))/0x9)+parseInt(_0x5d1d69(0x1b5))/0xa;if(_0xe4a632===_0x476179)break;else _0x46568['push'](_0x46568['shift']());}catch(_0x3f18f5){_0x46568['push'](_0x46568['shift']());}}}(a37_0x8da7,0xa3e85));import{delimiter,join}from'node:path';function a37_0x565b(_0x501995,_0x5d2ed8){_0x501995=_0x501995-0x1b2;const _0x8da7ba=a37_0x8da7();let _0x565b2d=_0x8da7ba[_0x501995];return _0x565b2d;}function a37_0x8da7(){const _0x2851eb=['stderr','23416jvvJOr','1155392OvkuhK','3617735uqTscx','write','开发服务器启动出错','1129977WMPHYt','close','data','warn','vite','SDK\x20版本有更新','CLI\x20版本有更新','开发服务器启动成功','node_modules','currentVersion','trim','env','48XgFXfe','start','18FkfXaz','toString','now','38170140paSXXW','cwd','开发服务器启动失败','启动开发服务器','needsUpgrade','vite\x20exited\x20with\x20code\x20','728AyxSSc','error','success','stableVersion','6730188kTbcjq','inherit','pipe','9771reRUgr'];a37_0x8da7=function(){return _0x2851eb;};return a37_0x8da7();}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';export async function runStart(_0x7da7f7){const _0x23904d=a37_0x565b,_0xfcdeca=Date[_0x23904d(0x1b4)](),_0x1b1854=_0x7da7f7||process[_0x23904d(0x1b6)](),_0xda0af2=await checkCliVersion();_0xda0af2['needsUpgrade']&&(printCliUpgradeWarning(_0xda0af2),logger[_0x23904d(0x1cc)](_0x23904d(0x1d6),_0x23904d(0x1cf),{'currentVersion':_0xda0af2[_0x23904d(0x1d2)],'stableVersion':_0xda0af2[_0x23904d(0x1be)]}));const _0x54f71b=await checkSdkVersion(_0x1b1854);_0x54f71b[_0x23904d(0x1b9)]&&(printSdkUpgradeWarning(_0x54f71b),logger[_0x23904d(0x1cc)]('start',_0x23904d(0x1ce),{'currentVersion':_0x54f71b['version'],'stableVersion':_0x54f71b['stableVersion']}));logger['info'](_0x23904d(0x1d6),_0x23904d(0x1b8),{'command':'vite','cwd':_0x1b1854});let _0x2919d3='';const _0x4adee6=spawn(_0x23904d(0x1cd),{'stdio':['inherit',_0x23904d(0x1c0),_0x23904d(0x1c1)],'shell':!![],'cwd':_0x1b1854,'env':{...process[_0x23904d(0x1d4)],'PATH':''+join(_0x1b1854,_0x23904d(0x1d1),'.bin')+delimiter+process['env']['PATH']}});return _0x4adee6[_0x23904d(0x1c3)]?.['on'](_0x23904d(0x1cb),_0x16b0a6=>{const _0x5ba3f1=_0x23904d,_0x8e5526=_0x16b0a6[_0x5ba3f1(0x1b3)]();_0x2919d3+=_0x8e5526,process[_0x5ba3f1(0x1c3)][_0x5ba3f1(0x1c7)](_0x8e5526);}),new Promise((_0x53b147,_0x10da78)=>{const _0x3029fe=_0x23904d;_0x4adee6['on'](_0x3029fe(0x1ca),_0x12560f=>{const _0x3138b2=_0x3029fe,_0x1fd606=Date[_0x3138b2(0x1b4)]()-_0xfcdeca;if(_0x12560f===0x0||_0x12560f===null)logger[_0x3138b2(0x1bd)](_0x3138b2(0x1d6),_0x3138b2(0x1d0),_0x1fd606),_0x53b147();else{const _0x4eebc4={'exitCode':_0x12560f,'duration':_0x1fd606,'command':_0x3138b2(0x1cd),'cwd':_0x1b1854};_0x2919d3[_0x3138b2(0x1d3)]()&&(_0x4eebc4[_0x3138b2(0x1c3)]=_0x2919d3[_0x3138b2(0x1d3)]()),logger[_0x3138b2(0x1bc)](_0x3138b2(0x1d6),_0x3138b2(0x1b7),_0x4eebc4),_0x10da78(new Error(_0x3138b2(0x1ba)+_0x12560f));}}),_0x4adee6['on']('error',_0x15e21f=>{const _0x3fe824=_0x3029fe,_0x2ad0f2=Date[_0x3fe824(0x1b4)]()-_0xfcdeca,_0x538865={'error':_0x15e21f['message'],'duration':_0x2ad0f2,'command':_0x3fe824(0x1cd),'cwd':_0x1b1854};_0x2919d3[_0x3fe824(0x1d3)]()&&(_0x538865[_0x3fe824(0x1c3)]=_0x2919d3[_0x3fe824(0x1d3)]()),logger['error'](_0x3fe824(0x1d6),_0x3fe824(0x1c8),_0x538865),_0x10da78(_0x15e21f);});});}
1
+ (function(_0x5c1273,_0x28c793){const _0x8a8eac=a35_0x5140,_0x4182ad=_0x5c1273();while(!![]){try{const _0x49a99d=-parseInt(_0x8a8eac(0x80))/0x1+parseInt(_0x8a8eac(0x77))/0x2*(-parseInt(_0x8a8eac(0x78))/0x3)+-parseInt(_0x8a8eac(0x7a))/0x4*(-parseInt(_0x8a8eac(0x84))/0x5)+parseInt(_0x8a8eac(0x74))/0x6+parseInt(_0x8a8eac(0x89))/0x7+parseInt(_0x8a8eac(0x86))/0x8*(-parseInt(_0x8a8eac(0x8c))/0x9)+parseInt(_0x8a8eac(0x75))/0xa*(-parseInt(_0x8a8eac(0x8d))/0xb);if(_0x49a99d===_0x28c793)break;else _0x4182ad['push'](_0x4182ad['shift']());}catch(_0x35b013){_0x4182ad['push'](_0x4182ad['shift']());}}}(a35_0x3ab9,0x8f7a2));function a35_0x3ab9(){const _0x24e9af=['667791MMxGMB','359282DRfCML','warn','cwd','启动开发服务器','inherit','now','currentVersion','4686288wFFrKZ','230EPaLvY','message','428zGeDFa','4965WpUJEw','env','4583428oBeIAO','needsUpgrade','timeout','error','开发服务器启动失败','start','608604yVmHTi','exitCode','vite','object','5sgpcjq','info','16RgYCDj','timedOut','stableVersion','3662225IyXlWi','stderr','SDK\x20版本有更新'];a35_0x3ab9=function(){return _0x24e9af;};return a35_0x3ab9();}import{logger}from'../utils/logger.js';function a35_0x5140(_0x30935d,_0xf5d6d7){_0x30935d=_0x30935d-0x70;const _0x3ab9e4=a35_0x3ab9();let _0x514005=_0x3ab9e4[_0x30935d];return _0x514005;}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(_0x14fb73){const _0x24d363=a35_0x5140,_0x14c461=Date[_0x24d363(0x72)](),_0x420127=_0x14fb73||process[_0x24d363(0x8f)](),_0x4e4799=await checkCliVersion();_0x4e4799[_0x24d363(0x7b)]&&(printCliUpgradeWarning(_0x4e4799),logger[_0x24d363(0x8e)](_0x24d363(0x7f),'CLI\x20版本有更新',{'currentVersion':_0x4e4799[_0x24d363(0x73)],'stableVersion':_0x4e4799['stableVersion']}));const _0x163386=await checkSdkVersion(_0x420127);_0x163386[_0x24d363(0x7b)]&&(printSdkUpgradeWarning(_0x163386),logger[_0x24d363(0x8e)]('start',_0x24d363(0x8b),{'currentVersion':_0x163386['version'],'stableVersion':_0x163386[_0x24d363(0x88)]}));logger[_0x24d363(0x85)](_0x24d363(0x7f),_0x24d363(0x70),{'command':'vite','cwd':_0x420127});try{await execa(_0x24d363(0x82),[],{'cwd':_0x420127,'stdio':_0x24d363(0x71),'preferLocal':!![],'localDir':_0x420127,'env':{...process[_0x24d363(0x79)]}});const _0x266f8b=Date[_0x24d363(0x72)]()-_0x14c461;logger['success']('start','开发服务器启动成功',_0x266f8b);}catch(_0x2e41f4){const _0x178986=Date[_0x24d363(0x72)]()-_0x14c461,_0x250489={'duration':_0x178986,'command':_0x24d363(0x82),'cwd':_0x420127};if(_0x2e41f4&&typeof _0x2e41f4===_0x24d363(0x83)){const _0x2b386c=_0x2e41f4;_0x2b386c[_0x24d363(0x81)]!==undefined&&(_0x250489[_0x24d363(0x81)]=_0x2b386c[_0x24d363(0x81)]),_0x2b386c[_0x24d363(0x8a)]&&(_0x250489[_0x24d363(0x8a)]=_0x2b386c[_0x24d363(0x8a)]),_0x2b386c[_0x24d363(0x87)]&&(_0x250489[_0x24d363(0x7c)]=!![]),_0x2b386c['message']&&(_0x250489[_0x24d363(0x7d)]=_0x2b386c[_0x24d363(0x76)]);}logger[_0x24d363(0x7d)]('start',_0x24d363(0x7e),_0x250489);throw _0x2e41f4;}}
@@ -1 +1 @@
1
- function a38_0x1a8c(_0x31bdf8,_0xf2c6b6){_0x31bdf8=_0x31bdf8-0x1ec;const _0x49ba6f=a38_0x49ba();let _0x1a8c17=_0x49ba6f[_0x31bdf8];return _0x1a8c17;}function a38_0x49ba(){const _0x54114e=['lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','7liajiU','390yGNgjZ','651460XJTlJy','\x20\x20\x20\x20','config.help.examples','383696ZkKFGE','config.help.list','1098366tvQTBH','config.help.set','map','config.help.exampleApp','74XZylfV','column','21908IkXXZk','config.help.exampleEnv','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','372955yOyEml','config.help.invalidCommand','3837524ZSnnpf','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','config.help.get','command','config.help.exampleLocale','gray','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','description','7314486xkSMgo','36jIgNsu'];a38_0x49ba=function(){return _0x54114e;};return a38_0x49ba();}(function(_0xd79b37,_0x3e4119){const _0xa2fbe6=a38_0x1a8c,_0x410175=_0xd79b37();while(!![]){try{const _0x1931c4=parseInt(_0xa2fbe6(0x1f1))/0x1*(parseInt(_0xa2fbe6(0x1ef))/0x2)+parseInt(_0xa2fbe6(0x209))/0x3+-parseInt(_0xa2fbe6(0x1f6))/0x4+parseInt(_0xa2fbe6(0x204))/0x5+parseInt(_0xa2fbe6(0x1fe))/0x6*(-parseInt(_0xa2fbe6(0x202))/0x7)+parseInt(_0xa2fbe6(0x207))/0x8*(parseInt(_0xa2fbe6(0x1ff))/0x9)+parseInt(_0xa2fbe6(0x203))/0xa*(parseInt(_0xa2fbe6(0x1f4))/0xb);if(_0x1931c4===_0x3e4119)break;else _0x410175['push'](_0x410175['shift']());}catch(_0x493ae8){_0x410175['push'](_0x410175['shift']());}}}(a38_0x49ba,0x9ce83));import{jsxs as a38_0x3f9c6c,jsx as a38_0x3ec85f}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';export function ConfigHelp(){const _0x4460b2=a38_0x1a8c,{t:_0x5e6f6d}=useI18n(),_0x38e6bd=[{'command':_0x4460b2(0x1f3),'description':_0x5e6f6d(_0x4460b2(0x1ec))},{'command':'lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x5e6f6d(_0x4460b2(0x1f8))},{'command':_0x4460b2(0x1f7),'description':_0x5e6f6d(_0x4460b2(0x208))}],_0x2d49ae=[{'command':_0x4460b2(0x201),'description':_0x5e6f6d(_0x4460b2(0x1ee))},{'command':_0x4460b2(0x200),'description':_0x5e6f6d(_0x4460b2(0x1f2))},{'command':_0x4460b2(0x1fc),'description':_0x5e6f6d(_0x4460b2(0x1fa))}];return a38_0x3f9c6c(Box,{'flexDirection':_0x4460b2(0x1f0),'marginTop':0x1,'marginBottom':0x1,'children':[a38_0x3ec85f(Box,{'marginBottom':0x1,'children':a38_0x3f9c6c(Text,{'color':_0x4460b2(0x1fb),'children':['\x20','!','\x20\x20',_0x5e6f6d(_0x4460b2(0x1f5))]})}),_0x38e6bd[_0x4460b2(0x1ed)](_0x2c8e98=>a38_0x3f9c6c(Box,{'children':[a38_0x3f9c6c(Text,{'children':[_0x4460b2(0x205),_0x2c8e98['command']]}),a38_0x3ec85f(Text,{'color':'gray','children':_0x2c8e98[_0x4460b2(0x1fd)]})]},_0x2c8e98['command'])),a38_0x3ec85f(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a38_0x3f9c6c(Text,{'color':_0x4460b2(0x1fb),'children':['\x20*\x20',_0x5e6f6d(_0x4460b2(0x206))]})}),_0x2d49ae[_0x4460b2(0x1ed)](_0x341031=>a38_0x3f9c6c(Box,{'children':[a38_0x3f9c6c(Text,{'children':[_0x4460b2(0x205),_0x341031[_0x4460b2(0x1f9)]]}),a38_0x3ec85f(Text,{'color':_0x4460b2(0x1fb),'children':_0x341031[_0x4460b2(0x1fd)]})]},_0x341031[_0x4460b2(0x1f9)]))]});}
1
+ (function(_0xc5d48b,_0x5595a2){const _0x5b57d6=a36_0x2f5d,_0x254320=_0xc5d48b();while(!![]){try{const _0x3417dd=parseInt(_0x5b57d6(0x1b8))/0x1*(parseInt(_0x5b57d6(0x1ae))/0x2)+parseInt(_0x5b57d6(0x1be))/0x3+parseInt(_0x5b57d6(0x1b5))/0x4*(-parseInt(_0x5b57d6(0x1b1))/0x5)+-parseInt(_0x5b57d6(0x1c6))/0x6+-parseInt(_0x5b57d6(0x1c3))/0x7+-parseInt(_0x5b57d6(0x1bf))/0x8*(parseInt(_0x5b57d6(0x1bd))/0x9)+parseInt(_0x5b57d6(0x1b6))/0xa;if(_0x3417dd===_0x5595a2)break;else _0x254320['push'](_0x254320['shift']());}catch(_0x562d61){_0x254320['push'](_0x254320['shift']());}}}(a36_0x2daf,0x7f921));import{jsxs as a36_0xbf8451,jsx as a36_0x5adf71}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';function a36_0x2f5d(_0x444343,_0x3d7aba){_0x444343=_0x444343-0x1ad;const _0x2daf4e=a36_0x2daf();let _0x2f5d7a=_0x2daf4e[_0x444343];return _0x2f5d7a;}export function ConfigHelp(){const _0x3a465c=a36_0x2f5d,{t:_0x1086e4}=useI18n(),_0x2ccf71=[{'command':_0x3a465c(0x1b7),'description':_0x1086e4('config.help.set')},{'command':'lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1c2))},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1c1))}],_0x5cab80=[{'command':'lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1b3))},{'command':_0x3a465c(0x1c5),'description':_0x1086e4(_0x3a465c(0x1ad))},{'command':_0x3a465c(0x1b2),'description':_0x1086e4(_0x3a465c(0x1c4))}];return a36_0xbf8451(Box,{'flexDirection':_0x3a465c(0x1b4),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0x5adf71(Box,{'marginBottom':0x1,'children':a36_0xbf8451(Text,{'color':_0x3a465c(0x1b9),'children':['\x20','!','\x20\x20',_0x1086e4('config.help.invalidCommand')]})}),_0x2ccf71[_0x3a465c(0x1c0)](_0x563d43=>a36_0xbf8451(Box,{'children':[a36_0xbf8451(Text,{'children':[_0x3a465c(0x1bc),_0x563d43[_0x3a465c(0x1b0)]]}),a36_0x5adf71(Text,{'color':_0x3a465c(0x1b9),'children':_0x563d43[_0x3a465c(0x1af)]})]},_0x563d43['command'])),a36_0x5adf71(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0xbf8451(Text,{'color':'gray','children':[_0x3a465c(0x1ba),_0x1086e4(_0x3a465c(0x1bb))]})}),_0x5cab80[_0x3a465c(0x1c0)](_0x21eff4=>a36_0xbf8451(Box,{'children':[a36_0xbf8451(Text,{'children':[_0x3a465c(0x1bc),_0x21eff4[_0x3a465c(0x1b0)]]}),a36_0x5adf71(Text,{'color':'gray','children':_0x21eff4[_0x3a465c(0x1af)]})]},_0x21eff4[_0x3a465c(0x1b0)]))]});}function a36_0x2daf(){const _0x455f9e=['526950VzYuOF','description','command','80725WAvLkn','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','config.help.exampleApp','column','156BnQgAe','17857860jrGGec','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','2DhMPEF','gray','\x20*\x20','config.help.examples','\x20\x20\x20\x20','3564HkAgNw','1786041jCbmsY','12832DnoxTZ','map','config.help.list','config.help.get','6159608PGgLoD','config.help.exampleLocale','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','1444626zDkntI','config.help.exampleEnv'];a36_0x2daf=function(){return _0x455f9e;};return a36_0x2daf();}
@@ -1 +1 @@
1
- (function(_0x3cde50,_0x48027e){const _0x1a507c=a39_0x1ad6,_0x21f595=_0x3cde50();while(!![]){try{const _0x53111e=parseInt(_0x1a507c(0xc0))/0x1*(-parseInt(_0x1a507c(0xc6))/0x2)+parseInt(_0x1a507c(0xb9))/0x3+-parseInt(_0x1a507c(0xbc))/0x4*(parseInt(_0x1a507c(0xc5))/0x5)+-parseInt(_0x1a507c(0x9d))/0x6*(parseInt(_0x1a507c(0x9e))/0x7)+parseInt(_0x1a507c(0xa0))/0x8+parseInt(_0x1a507c(0xc7))/0x9+parseInt(_0x1a507c(0xa7))/0xa*(parseInt(_0x1a507c(0xb8))/0xb);if(_0x53111e===_0x48027e)break;else _0x21f595['push'](_0x21f595['shift']());}catch(_0x1b552c){_0x21f595['push'](_0x21f595['shift']());}}}(a39_0x1c12,0xb486e));function a39_0x1ad6(_0x4aa63c,_0x3451a9){_0x4aa63c=_0x4aa63c-0x9d;const _0x1c12a6=a39_0x1c12();let _0x1ad6e9=_0x1c12a6[_0x4aa63c];return _0x1ad6e9;}import{jsx as a39_0x3c82de,jsxs as a39_0x3e1eba}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a39_0x56b935 from'node:fs';function a39_0x1c12(){const _0x530fbf=['set','--help','247436wyndkB','保存配置失败','red','stringify','641474lgZCJB','config.validation.localeInvalid','config.success.localeSet','help','includes','45mzIyNv','4gyMTfV','11725047YPKYnR','log','18048EEGeHb','2072JwibOK','parse','3544592mADyHN','message','get','locale','input','config.validation.envInvalid','app','2770RDHYlI','column','undefined','mkdirSync','string','appcode','unlinkSync','config.scope.project','flags','config.scope.global','length','config.validation.saveFailed','config.success.envSet','list','utf8','env','config','38401HbNjey','2269863stCXyz'];a39_0x1c12=function(){return _0x530fbf;};return a39_0x1c12();}import a39_0x45105b from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';export function Config(_0x14e9f7){const _0x356897=a39_0x1ad6,{cli:_0x1fc535}=_0x14e9f7,{t:_0xbc38ae}=useI18n(),_0x17d59b=_0x1fc535[_0x356897(0xa4)][0x1],_0x2d74ea=_0x1fc535[_0x356897(0xa4)][0x2],_0x448314=[_0x356897(0xba),_0x356897(0xa2)]['includes'](_0x17d59b||''),_0x3e26d8=_0x1fc535[_0x356897(0xa4)]['length']>=0x3;if(_0x2d74ea===_0x356897(0xbb)||_0x1fc535[_0x356897(0xaf)][_0x356897(0xc3)])return a39_0x3c82de(ConfigHelp,{});const _0x29591d=readConfig();if(_0x17d59b===_0x356897(0xba)){if(_0x2d74ea){const _0x596a3c=_0x1fc535[_0x356897(0xa4)][0x3];if(typeof _0x596a3c!==_0x356897(0xa9)){if(_0x2d74ea===_0x356897(0xb6)&&!['online','daily'][_0x356897(0xc4)](_0x596a3c))return a39_0x3c82de(Box,{'children':a39_0x3c82de(Text,{'color':'red','children':_0xbc38ae(_0x356897(0xa5))})});if(_0x2d74ea===_0x356897(0xa3)&&!normalizeLocale(_0x596a3c))return a39_0x3c82de(Box,{'flexDirection':_0x356897(0xa8),'children':a39_0x3c82de(Text,{'color':_0x356897(0xbe),'children':_0xbc38ae(_0x356897(0xc1))})});const _0x164c06=isInProject(),_0x1f9d9f=_0x164c06?projectConfigPath:globalConfigPath;let _0x38dcae={};try{if(existsSync(_0x1f9d9f)){const _0x43fe0e=readFileSync(_0x1f9d9f,{'encoding':'utf8'});_0x43fe0e&&(_0x38dcae=JSON[_0x356897(0x9f)](_0x43fe0e));}}catch(_0x882f22){}if(typeof _0x596a3c!==_0x356897(0xab)||_0x596a3c[_0x356897(0xb1)]>0x1f4)return a39_0x3c82de(Box,{'children':a39_0x3c82de(Text,{'color':'red','children':_0xbc38ae('config.validation.valueInvalid')})});let _0x4fa3a3=_0x2d74ea,_0x4c4775=_0x596a3c;_0x2d74ea===_0x356897(0xa6)&&(_0x4fa3a3=_0x356897(0xac),delete _0x38dcae['app']);_0x2d74ea==='appcode'&&delete _0x38dcae[_0x356897(0xa6)];_0x2d74ea===_0x356897(0xa3)&&(_0x4c4775=normalizeLocale(_0x596a3c));_0x38dcae[_0x4fa3a3]=_0x4c4775;try{const _0x1a2a06=a39_0x45105b['dirname'](_0x1f9d9f);!existsSync(_0x1a2a06)&&a39_0x56b935[_0x356897(0xaa)](_0x1a2a06,{'recursive':!![]});const _0x5c9d45=_0x1f9d9f+'.tmp';writeFileSync(_0x5c9d45,JSON['stringify'](_0x38dcae,null,0x2),{'encoding':_0x356897(0xb5),'mode':0x180}),a39_0x56b935['renameSync'](_0x5c9d45,_0x1f9d9f);const _0x360b67=_0xbc38ae(_0x164c06?_0x356897(0xae):_0x356897(0xb0));_0x2d74ea===_0x356897(0xb6)&&console[_0x356897(0xc8)](_0xbc38ae(_0x356897(0xb3),{'scope':_0x360b67,'value':_0x596a3c}));if(_0x2d74ea==='locale'){const _0x4f5d8b=normalizeLocale(_0x596a3c);console[_0x356897(0xc8)](_0xbc38ae(_0x356897(0xc2),{'scope':_0x360b67,'value':_0x4f5d8b}));}}catch(_0x93dcae){const _0x141590=_0x1f9d9f+'.tmp';try{existsSync(_0x141590)&&a39_0x56b935[_0x356897(0xad)](_0x141590);}catch(_0x30917a){}return logger['error'](_0x356897(0xb7),_0x356897(0xbd),{'error':_0x93dcae instanceof Error?_0x93dcae[_0x356897(0xa1)]:String(_0x93dcae),'configKey':_0x2d74ea,'configValue':_0x596a3c,'targetConfigPath':_0x1f9d9f}),a39_0x3c82de(Box,{'children':a39_0x3e1eba(Text,{'color':_0x356897(0xbe),'children':[_0xbc38ae(_0x356897(0xb2)),':','\x20',_0x93dcae instanceof Error?_0x93dcae[_0x356897(0xa1)]:String(_0x93dcae)]})});}return null;}return a39_0x3c82de(Box,{'children':a39_0x3c82de(Text,{'color':_0x356897(0xbe),'children':_0xbc38ae('config.validation.noValue')})});}}if(_0x17d59b==='get'){if(_0x2d74ea){let _0x233411=_0x2d74ea;return _0x2d74ea===_0x356897(0xa6)&&(_0x233411='appcode'),console[_0x356897(0xc8)](_0x29591d[_0x233411]||_0x356897(0xa9)),null;}return null;}if(_0x17d59b===_0x356897(0xb4))return console[_0x356897(0xc8)](JSON[_0x356897(0xbf)](_0x29591d,null,0x2)),null;if(!_0x448314||!_0x3e26d8)return a39_0x3c82de(ConfigHelp,{});return null;}
1
+ (function(_0x3d8618,_0x69d207){const _0x103edd=a37_0x2cfd,_0x1ba967=_0x3d8618();while(!![]){try{const _0x5858db=parseInt(_0x103edd(0x111))/0x1+parseInt(_0x103edd(0x100))/0x2+-parseInt(_0x103edd(0x11a))/0x3*(-parseInt(_0x103edd(0x10a))/0x4)+parseInt(_0x103edd(0x118))/0x5*(-parseInt(_0x103edd(0x10b))/0x6)+-parseInt(_0x103edd(0x108))/0x7+-parseInt(_0x103edd(0x11b))/0x8*(-parseInt(_0x103edd(0xf6))/0x9)+-parseInt(_0x103edd(0x103))/0xa;if(_0x5858db===_0x69d207)break;else _0x1ba967['push'](_0x1ba967['shift']());}catch(_0x6771fe){_0x1ba967['push'](_0x1ba967['shift']());}}}(a37_0x466f,0x3c9d4));import{jsx as a37_0x39b58d,jsxs as a37_0x295d95}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x18c6c6 from'node:fs';import a37_0xd2e764 from'node:path';function a37_0x2cfd(_0x5a6839,_0x5683e2){_0x5a6839=_0x5a6839-0xf2;const _0x466f7d=a37_0x466f();let _0x2cfd3b=_0x466f7d[_0x5a6839];return _0x2cfd3b;}import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';function a37_0x466f(){const _0x5c0556=['config.validation.valueInvalid','renameSync','message','364842UfjqbN','config.success.localeSet','undefined','577990UzbiRO','includes','length','保存配置失败','get','2389660TyXfwx','daily','8476TixTJy','12ZKxquI','mkdirSync','appcode','string','stringify','set','98254slgFzm','help','env','config.validation.localeInvalid','config.validation.envInvalid','column','flags','303660ymfDuS','config.validation.noValue','687ZqCjYk','8XuLYmD','log','parse','input','config.scope.global','app','online','26937CZeDjD','unlinkSync','.tmp','dirname','locale','red','config.scope.project'];a37_0x466f=function(){return _0x5c0556;};return a37_0x466f();}export function Config(_0x5838c8){const _0x73d1d=a37_0x2cfd,{cli:_0x15182b}=_0x5838c8,{t:_0x3e3812}=useI18n(),_0x1c1efe=_0x15182b['input'][0x1],_0x518599=_0x15182b['input'][0x2],_0x49f5c4=[_0x73d1d(0x110),_0x73d1d(0x107)][_0x73d1d(0x104)](_0x1c1efe||''),_0xd3b8e8=_0x15182b[_0x73d1d(0xf2)]['length']>=0x3;if(_0x518599==='--help'||_0x15182b[_0x73d1d(0x117)][_0x73d1d(0x112)])return a37_0x39b58d(ConfigHelp,{});const _0x5ae89f=readConfig();if(_0x1c1efe===_0x73d1d(0x110)){if(_0x518599){const _0x26509a=_0x15182b['input'][0x3];if(typeof _0x26509a!==_0x73d1d(0x102)){if(_0x518599===_0x73d1d(0x113)&&![_0x73d1d(0xf5),_0x73d1d(0x109)][_0x73d1d(0x104)](_0x26509a))return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x115))})});if(_0x518599==='locale'&&!normalizeLocale(_0x26509a))return a37_0x39b58d(Box,{'flexDirection':_0x73d1d(0x116),'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x114))})});const _0x2f2277=isInProject(),_0x4bf374=_0x2f2277?projectConfigPath:globalConfigPath;let _0x3b8686={};try{if(existsSync(_0x4bf374)){const _0x14e87d=readFileSync(_0x4bf374,{'encoding':'utf8'});_0x14e87d&&(_0x3b8686=JSON[_0x73d1d(0x11d)](_0x14e87d));}}catch(_0x524c55){}if(typeof _0x26509a!==_0x73d1d(0x10e)||_0x26509a[_0x73d1d(0x105)]>0x1f4)return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0xfd))})});let _0x2bd70a=_0x518599,_0x6f6c32=_0x26509a;_0x518599==='app'&&(_0x2bd70a=_0x73d1d(0x10d),delete _0x3b8686[_0x73d1d(0xf4)]);_0x518599===_0x73d1d(0x10d)&&delete _0x3b8686['app'];_0x518599===_0x73d1d(0xfa)&&(_0x6f6c32=normalizeLocale(_0x26509a));_0x3b8686[_0x2bd70a]=_0x6f6c32;try{const _0x275f78=a37_0xd2e764[_0x73d1d(0xf9)](_0x4bf374);!existsSync(_0x275f78)&&a37_0x18c6c6[_0x73d1d(0x10c)](_0x275f78,{'recursive':!![]});const _0x2a8887=_0x4bf374+'.tmp';writeFileSync(_0x2a8887,JSON[_0x73d1d(0x10f)](_0x3b8686,null,0x2),{'encoding':'utf8','mode':0x180}),a37_0x18c6c6[_0x73d1d(0xfe)](_0x2a8887,_0x4bf374);const _0x499f0c=_0x3e3812(_0x2f2277?_0x73d1d(0xfc):_0x73d1d(0xf3));_0x518599===_0x73d1d(0x113)&&console[_0x73d1d(0x11c)](_0x3e3812('config.success.envSet',{'scope':_0x499f0c,'value':_0x26509a}));if(_0x518599===_0x73d1d(0xfa)){const _0x48059c=normalizeLocale(_0x26509a);console[_0x73d1d(0x11c)](_0x3e3812(_0x73d1d(0x101),{'scope':_0x499f0c,'value':_0x48059c}));}}catch(_0x4e7f55){const _0x2ed0d5=_0x4bf374+_0x73d1d(0xf8);try{existsSync(_0x2ed0d5)&&a37_0x18c6c6[_0x73d1d(0xf7)](_0x2ed0d5);}catch(_0x410a62){}return logger['error']('config',_0x73d1d(0x106),{'error':_0x4e7f55 instanceof Error?_0x4e7f55[_0x73d1d(0xff)]:String(_0x4e7f55),'configKey':_0x518599,'configValue':_0x26509a,'targetConfigPath':_0x4bf374}),a37_0x39b58d(Box,{'children':a37_0x295d95(Text,{'color':_0x73d1d(0xfb),'children':[_0x3e3812('config.validation.saveFailed'),':','\x20',_0x4e7f55 instanceof Error?_0x4e7f55[_0x73d1d(0xff)]:String(_0x4e7f55)]})});}return null;}return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x119))})});}}if(_0x1c1efe===_0x73d1d(0x107)){if(_0x518599){let _0x3ec91d=_0x518599;return _0x518599===_0x73d1d(0xf4)&&(_0x3ec91d=_0x73d1d(0x10d)),console[_0x73d1d(0x11c)](_0x5ae89f[_0x3ec91d]||'undefined'),null;}return null;}if(_0x1c1efe==='list')return console[_0x73d1d(0x11c)](JSON[_0x73d1d(0x10f)](_0x5ae89f,null,0x2)),null;if(!_0x49f5c4||!_0xd3b8e8)return a37_0x39b58d(ConfigHelp,{});return null;}
@@ -1 +1 @@
1
- const a40_0x343b88=a40_0x407d;(function(_0x4272f5,_0x182817){const _0x4b7de8=a40_0x407d,_0x3124ae=_0x4272f5();while(!![]){try{const _0x38515e=-parseInt(_0x4b7de8(0xe2))/0x1+parseInt(_0x4b7de8(0xe5))/0x2+-parseInt(_0x4b7de8(0xe7))/0x3*(parseInt(_0x4b7de8(0xe0))/0x4)+parseInt(_0x4b7de8(0xdf))/0x5+-parseInt(_0x4b7de8(0xe3))/0x6+-parseInt(_0x4b7de8(0xe4))/0x7+parseInt(_0x4b7de8(0xe6))/0x8;if(_0x38515e===_0x182817)break;else _0x3124ae['push'](_0x3124ae['shift']());}catch(_0x4bcae1){_0x3124ae['push'](_0x3124ae['shift']());}}}(a40_0x25db,0x9198c));function a40_0x407d(_0x130d47,_0x50bde6){_0x130d47=_0x130d47-0xdf;const _0x25db0b=a40_0x25db();let _0x407d3b=_0x25db0b[_0x130d47];return _0x407d3b;}import{getEnv}from'./env.js';function a40_0x25db(){const _0x468d52=['3725799qkMsFc','2103816fTuzdx','7184320ijFHdi','3273432wYpOtF','https://daily-api.lovrabet.com','https://api.lovrabet.com','3597940KyvbaX','4rKehCq','online','5603kjfDvz','2665008MICHtp'];a40_0x25db=function(){return _0x468d52;};return a40_0x25db();}export const getUserDomain=()=>getEnv()==='online'?'https://user.lovrabet.com':'https://user-daily.lovrabet.com';export const getApiDomain=()=>getEnv()===a40_0x343b88(0xe1)?a40_0x343b88(0xe9):a40_0x343b88(0xe8);
1
+ function a38_0x2344(_0x2b1ba2,_0x412e21){_0x2b1ba2=_0x2b1ba2-0x1e7;const _0x107943=a38_0x1079();let _0x2344a4=_0x107943[_0x2b1ba2];return _0x2344a4;}const a38_0x30d37a=a38_0x2344;function a38_0x1079(){const _0x3ce6dd=['https://user.lovrabet.com','3055654fuKSdH','https://daily-api.lovrabet.com','123248HrSSig','33bLWUNj','910ZVTpYQ','9011952LaCxiO','2773765BqDhdz','254414PNBBau','6TYEvKN','342FnkLcR','online','96943QHkUFW','60753LcDXDI','4GXiOsJ','https://user-daily.lovrabet.com'];a38_0x1079=function(){return _0x3ce6dd;};return a38_0x1079();}(function(_0x311942,_0x1a7517){const _0x8e5f4a=a38_0x2344,_0x1f48d9=_0x311942();while(!![]){try{const _0x141618=-parseInt(_0x8e5f4a(0x1ee))/0x1+-parseInt(_0x8e5f4a(0x1ea))/0x2*(-parseInt(_0x8e5f4a(0x1f6))/0x3)+parseInt(_0x8e5f4a(0x1f0))/0x4*(parseInt(_0x8e5f4a(0x1e9))/0x5)+-parseInt(_0x8e5f4a(0x1eb))/0x6*(parseInt(_0x8e5f4a(0x1f3))/0x7)+-parseInt(_0x8e5f4a(0x1f5))/0x8*(-parseInt(_0x8e5f4a(0x1ec))/0x9)+-parseInt(_0x8e5f4a(0x1e7))/0xa*(parseInt(_0x8e5f4a(0x1ef))/0xb)+-parseInt(_0x8e5f4a(0x1e8))/0xc;if(_0x141618===_0x1a7517)break;else _0x1f48d9['push'](_0x1f48d9['shift']());}catch(_0x41c6b5){_0x1f48d9['push'](_0x1f48d9['shift']());}}}(a38_0x1079,0xb7b14));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x30d37a(0x1ed)?a38_0x30d37a(0x1f2):a38_0x30d37a(0x1f1);export const getApiDomain=()=>getEnv()===a38_0x30d37a(0x1ed)?'https://api.lovrabet.com':a38_0x30d37a(0x1f4);
@@ -1 +1 @@
1
- const a41_0x1ef6b8=a41_0x81ec;(function(_0x40c703,_0x32efd2){const _0x1cf281=a41_0x81ec,_0x4e47b3=_0x40c703();while(!![]){try{const _0x25bd5a=-parseInt(_0x1cf281(0x69))/0x1+-parseInt(_0x1cf281(0x74))/0x2*(-parseInt(_0x1cf281(0x6c))/0x3)+parseInt(_0x1cf281(0x6f))/0x4*(-parseInt(_0x1cf281(0x6d))/0x5)+-parseInt(_0x1cf281(0x75))/0x6*(parseInt(_0x1cf281(0x6a))/0x7)+parseInt(_0x1cf281(0x72))/0x8+-parseInt(_0x1cf281(0x71))/0x9*(-parseInt(_0x1cf281(0x70))/0xa)+parseInt(_0x1cf281(0x73))/0xb;if(_0x25bd5a===_0x32efd2)break;else _0x4e47b3['push'](_0x4e47b3['shift']());}catch(_0x22e2cf){_0x4e47b3['push'](_0x4e47b3['shift']());}}}(a41_0x1638,0xb4535));let env=process['env'][a41_0x1ef6b8(0x6e)]||a41_0x1ef6b8(0x6b);export function getEnv(){return env;}function a41_0x81ec(_0x4b4c0d,_0x15ed2b){_0x4b4c0d=_0x4b4c0d-0x69;const _0x163813=a41_0x1638();let _0x81ec99=_0x163813[_0x4b4c0d];return _0x81ec99;}function a41_0x1638(){const _0x4f6dd2=['2155915kzSplL','LOVRABET_ENV','8fwuTio','410WZGEDv','183537zlOHWm','1513624MQdvNm','7689264jONghh','8254UFiDVr','444WbTPzf','420086ZEmNSJ','69139nNlrBT','online','747YNwmgT'];a41_0x1638=function(){return _0x4f6dd2;};return a41_0x1638();}export function initEnv(_0x3cedab){env=_0x3cedab;}
1
+ const a39_0x5d4fe5=a39_0x41c2;(function(_0x53d36a,_0x520ff0){const _0x3c10f2=a39_0x41c2,_0x6b301d=_0x53d36a();while(!![]){try{const _0x2198bb=-parseInt(_0x3c10f2(0x1e6))/0x1*(-parseInt(_0x3c10f2(0x1df))/0x2)+parseInt(_0x3c10f2(0x1dc))/0x3+parseInt(_0x3c10f2(0x1e9))/0x4*(-parseInt(_0x3c10f2(0x1e0))/0x5)+-parseInt(_0x3c10f2(0x1ea))/0x6*(-parseInt(_0x3c10f2(0x1de))/0x7)+-parseInt(_0x3c10f2(0x1e7))/0x8*(-parseInt(_0x3c10f2(0x1dd))/0x9)+-parseInt(_0x3c10f2(0x1e1))/0xa*(parseInt(_0x3c10f2(0x1e5))/0xb)+-parseInt(_0x3c10f2(0x1e3))/0xc*(parseInt(_0x3c10f2(0x1e8))/0xd);if(_0x2198bb===_0x520ff0)break;else _0x6b301d['push'](_0x6b301d['shift']());}catch(_0x57b376){_0x6b301d['push'](_0x6b301d['shift']());}}}(a39_0xdd39,0x854d9));let env=process[a39_0x5d4fe5(0x1db)][a39_0x5d4fe5(0x1e4)]||a39_0x5d4fe5(0x1e2);export function getEnv(){return env;}function a39_0x41c2(_0x4dd80c,_0x637959){_0x4dd80c=_0x4dd80c-0x1db;const _0xdd3920=a39_0xdd39();let _0x41c230=_0xdd3920[_0x4dd80c];return _0x41c230;}export function initEnv(_0x5b274b){env=_0x5b274b;}function a39_0xdd39(){const _0xe8189c=['56afqqCc','454998zaOcat','1303955WvOkFj','9439670HDowaL','online','2412RiMsMM','LOVRABET_ENV','11LDSVRU','1rmKglr','96eZoaLJ','76882JJkASw','4wGyhui','450162jWjatU','env','3076074lHCgYO','814806rWOrDy'];a39_0xdd39=function(){return _0xe8189c;};return a39_0xdd39();}
@@ -1 +1 @@
1
- const a42_0x259d2c=a42_0x16d5;(function(_0xd36e09,_0x1b74eb){const _0x5b5946=a42_0x16d5,_0x25e0f3=_0xd36e09();while(!![]){try{const _0x256b01=parseInt(_0x5b5946(0x190))/0x1*(-parseInt(_0x5b5946(0x182))/0x2)+parseInt(_0x5b5946(0x178))/0x3+parseInt(_0x5b5946(0x137))/0x4*(parseInt(_0x5b5946(0x18b))/0x5)+parseInt(_0x5b5946(0x14f))/0x6+-parseInt(_0x5b5946(0x14b))/0x7*(parseInt(_0x5b5946(0x187))/0x8)+-parseInt(_0x5b5946(0x13f))/0x9+-parseInt(_0x5b5946(0x174))/0xa*(parseInt(_0x5b5946(0x161))/0xb);if(_0x256b01===_0x1b74eb)break;else _0x25e0f3['push'](_0x25e0f3['shift']());}catch(_0x403545){_0x25e0f3['push'](_0x25e0f3['shift']());}}}(a42_0x565f,0xcacce));import{jsx as a42_0x5ab88,jsxs as a42_0x4b3ffc,Fragment as a42_0x3b3cdd}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';function a42_0x16d5(_0x413a02,_0x5d9782){_0x413a02=_0x413a02-0x132;const _0x565f6f=a42_0x565f();let _0x16d5a8=_0x565f6f[_0x413a02];return _0x16d5a8;}import a42_0x1af1cc from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';function a42_0x565f(){const _0x339d6c=['label','length','rightArrow','create.validation.projectName.invalid','upArrow','downArrow','create.validation.appCode.invalidFormat','size','13118vrglKt','from','value','gray','9828126aqKfRB','create.common.no','filter','antigravity','create.steps.login.label','\x20+MCP','backspace','create.validation.ide.required','create.validation.projectName.dirExistsShort','claude','create.lovrabetSetup.keyboardShortcuts','cursor','white','create.steps.lovrabetSetup.label','green','create.validation.projectName.invalidFormat','create.validation.appCode.tooLong','trim','55SKixVt','app-code','online','codex','resolve','create.login.inProgressStatus','create.login.inProgress','creating','slice','create.title','create.steps.appCode.label','create.input.appCode.hint','string','create.steps.projectName.label','cyan','create.common.selectHint','qoder','column','delete','1866190sTYTVv','test','create.login.prompt','Yes','3316236curLVN','create.input.projectName.label','windsurf','create.validation.projectName.dirExists','env','confirm-api-pull','login-check','red','create.creating','login','240062uIQmXW','trae','agent','has','create.lovrabetSetup.confirm','3872JLczIn','project-name','name','create.input.appCode.label','5BtKQby','my-app','map','cline','create.input.appCode.optional','3mVsfNm','create.steps.lovrabetSetup.ideCount','codebuddy','login-process','login-prompt','create.login.checking','[✓]','description','create.common.yes','return','create.apiPull.recommendation','includes','create.login.valid','lovrabet-setup-selection','\x20←\x20','add','4518628wpEdhN','lovrabet-setup','create.login.checkingStatus','create.lovrabetSetup.selectIdeTitle','create.validation.projectName.tooLong','create.steps.apiPull.label','create.input.projectName.hint','create.validation.appCode.invalid','7579944wgowEh','create.completedStep','create.lovrabetSetup.selectIdeHint','yellow'];a42_0x565f=function(){return _0x339d6c;};return a42_0x565f();}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=[a42_0x259d2c(0x152),a42_0x259d2c(0x158),a42_0x259d2c(0x18e),a42_0x259d2c(0x192),a42_0x259d2c(0x164),a42_0x259d2c(0x15a),'opencode',a42_0x259d2c(0x171),a42_0x259d2c(0x183),a42_0x259d2c(0x17a),a42_0x259d2c(0x184)],UI_MCP_IDES=new Set(Array[a42_0x259d2c(0x14c)](MCP_IDES));export function EnhancedGuidedCreate(_0x70cd71){const _0x2ef734=a42_0x259d2c,{onCreate:_0x3a12ed,env:_0xdc74d8}=_0x70cd71,{t:_0x2f7881}=useI18n(),[_0x20a567,_0x34a3f5]=useState(_0x2ef734(0x188)),[_0x58da93,_0x1b80f5]=useState(''),[_0x20df90,_0x2d6f8a]=useState(''),[_0x6c026,_0x2c0346]=useState(''),[_0x25e1a8,_0x423984]=useState(''),[_0x4a3c12,_0x314fa2]=useState([]),[_0x394ecd,_0x254ba1]=useState(null),[_0xee3e26,_0x5802fe]=useState(![]),[_0x497fae,_0x41d967]=useState(![]),[_0x427196,_0x3529cd]=useState(![]),[_0x3f18e6,_0xc2d7fa]=useState(0x0),[_0xf1b665,_0x10b36e]=useState(0x0),[_0x1866f4,_0xa01743]=useState(0x0),[_0x30725e,_0x54c0e2]=useState(![]),[_0x1f0d40,_0x1afae9]=useState(new Set()),[_0x36f468,_0x19c4bf]=useState(0x0),[_0x581383,_0x10e7d1]=useState(''),_0x45fffe=_0x2ef734(0x18c),_0x1e1604=readConfig(),_0x17c287=typeof _0x1e1604[_0x2ef734(0x17c)]===_0x2ef734(0x16d)?_0x1e1604['env']:undefined;function _0x12ad2f(_0x4373e6){const _0x3eebea=_0x2ef734,_0x231cd4=_0x4373e6||_0x45fffe,_0x41fcd7=a42_0x1af1cc[_0x3eebea(0x165)](process['cwd'](),_0x231cd4);return existsSync(_0x41fcd7);}function _0x12aee5(_0x19970e){const _0xc94ad6=_0x2ef734;if(_0x19970e['length']>0x32)return{'valid':![],'message':_0x2f7881(_0xc94ad6(0x13b))};const _0x38760f=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x19970e?.[_0xc94ad6(0x160)]()&&!_0x38760f[_0xc94ad6(0x175)](_0x19970e))return{'valid':![],'message':_0x2f7881(_0xc94ad6(0x15e))};return{'valid':!![]};}function _0x56e438(_0x2b8402){const _0x2a5b58=_0x2ef734;if(!_0x2b8402[_0x2a5b58(0x160)]())return{'valid':!![]};if(_0x2b8402[_0x2a5b58(0x144)]>0x64)return{'valid':![],'message':_0x2f7881(_0x2a5b58(0x15f))};const _0x1f6c0a=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x1f6c0a[_0x2a5b58(0x175)](_0x2b8402))return{'valid':![],'message':_0x2f7881(_0x2a5b58(0x149))};return{'valid':!![]};}async function _0x373dad(){_0x5802fe(!![]);try{const _0x27df1f=await getIsSessionValid();return _0x254ba1(_0x27df1f),_0x27df1f;}catch(_0x1f8a44){return _0x254ba1(![]),![];}finally{_0x5802fe(![]);}}async function _0x204d36(){_0x41d967(!![]);try{const _0x46f38b=await authServer({'silent':!![]});return _0x254ba1(_0x46f38b),_0x46f38b;}catch(_0x1a3d1f){return _0x254ba1(![]),![];}finally{_0x41d967(![]);}}return useInput(async(_0x3d3ac8,_0x4b7a1c)=>{const _0x3dcb42=_0x2ef734;if(_0x4b7a1c['leftArrow']||_0x4b7a1c[_0x3dcb42(0x145)]){if(_0x20a567===_0x3dcb42(0x17d)){_0xc2d7fa(_0x977900=>_0x977900===0x0?0x1:0x0);return;}if(_0x20a567==='lovrabet-setup-selection'){if(!_0x30725e){_0xa01743(_0x3f93fa=>_0x3f93fa===0x0?0x1:0x0);return;}_0x54c0e2(![]);return;}if(_0x20a567===_0x3dcb42(0x194)){_0x10b36e(_0x3c4f21=>_0x3c4f21===0x0?0x1:0x0);return;}}if(_0x20a567===_0x3dcb42(0x134)&&_0x30725e&&_0x1866f4===0x0){if(_0x4b7a1c[_0x3dcb42(0x147)]){_0x19c4bf(_0x2df00f=>_0x2df00f>0x0?_0x2df00f-0x1:UI_IDE_LIST['length']-0x1);return;}if(_0x4b7a1c[_0x3dcb42(0x148)]){_0x19c4bf(_0x4460f4=>_0x4460f4<UI_IDE_LIST[_0x3dcb42(0x144)]-0x1?_0x4460f4+0x1:0x0);return;}}if(_0x3d3ac8==='\x20'&&_0x20a567==='lovrabet-setup-selection'&&_0x30725e&&_0x1866f4===0x0){_0x1afae9(_0x9708d2=>{const _0x1e95d3=_0x3dcb42,_0x5f5dec=new Set(_0x9708d2);return _0x5f5dec[_0x1e95d3(0x185)](_0x36f468)?_0x5f5dec[_0x1e95d3(0x173)](_0x36f468):_0x5f5dec[_0x1e95d3(0x136)](_0x36f468),_0x5f5dec;}),_0x423984('');return;}if((_0x3d3ac8==='a'||_0x3d3ac8==='A')&&_0x20a567===_0x3dcb42(0x134)&&_0x30725e&&_0x1866f4===0x0){_0x1afae9(new Set(UI_IDE_LIST['map']((_0xa7a274,_0x176c74)=>_0x176c74))),_0x423984('');return;}if((_0x3d3ac8==='i'||_0x3d3ac8==='I'||_0x3d3ac8==='r'||_0x3d3ac8==='R')&&_0x20a567==='lovrabet-setup-selection'&&_0x30725e&&_0x1866f4===0x0){_0x1afae9(_0x42cf1a=>{const _0x102418=_0x3dcb42,_0x477cf6=new Set();for(let _0x169c54=0x0;_0x169c54<UI_IDE_LIST[_0x102418(0x144)];_0x169c54++){!_0x42cf1a[_0x102418(0x185)](_0x169c54)&&_0x477cf6['add'](_0x169c54);}return _0x477cf6;});return;}if(_0x4b7a1c[_0x3dcb42(0x199)]){if(_0x20a567===_0x3dcb42(0x188)){const _0x2324bd=_0x6c026[_0x3dcb42(0x160)]()||_0x45fffe;if(_0x25e1a8)return;if(_0x12ad2f(_0x2324bd)){_0x10e7d1(_0x2f7881(_0x3dcb42(0x17b),{'name':_0x2324bd}));return;}_0x1b80f5(_0x2324bd),_0x314fa2([{'step':_0x3dcb42(0x188),'label':_0x2f7881(_0x3dcb42(0x16e)),'value':_0x2324bd}]),_0x2c0346(''),_0x423984(''),_0x10e7d1(''),_0x34a3f5('app-code');return;}if(_0x20a567==='app-code'){if(_0x25e1a8)return;const _0x40fc78=_0x6c026[_0x3dcb42(0x160)]();_0x2d6f8a(_0x40fc78),_0x314fa2(_0x427acd=>[..._0x427acd,{'step':_0x3dcb42(0x162),'label':_0x2f7881(_0x3dcb42(0x16b)),'value':_0x40fc78||_0x2f7881('create.steps.appCode.notSet')}]),_0x2c0346(''),_0x423984('');if(_0x40fc78){_0x34a3f5('login-check');const _0x3b4a20=await _0x373dad();_0x3b4a20?_0x34a3f5(_0x3dcb42(0x17d)):_0x34a3f5(_0x3dcb42(0x194));}else{const _0x124603=_0xdc74d8||_0x17c287||_0x3dcb42(0x163);_0x3a12ed({'projectName':_0x58da93,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x124603}),_0x34a3f5(_0x3dcb42(0x168));}return;}if(_0x20a567===_0x3dcb42(0x17d)){const _0x5a7887=_0x3f18e6===0x0;_0x3529cd(_0x5a7887),_0x314fa2(_0x8c1feb=>[..._0x8c1feb,{'step':'api-pull','label':_0x2f7881(_0x3dcb42(0x13c)),'value':_0x5a7887?_0x2f7881(_0x3dcb42(0x198)):_0x2f7881(_0x3dcb42(0x150))}]),_0x34a3f5('lovrabet-setup-selection');return;}if(_0x20a567==='lovrabet-setup-selection'){if(!_0x30725e){_0x54c0e2(!![]);if(_0x1866f4===0x1){_0x314fa2(_0x24e0bd=>[..._0x24e0bd,{'step':_0x3dcb42(0x138),'label':_0x2f7881(_0x3dcb42(0x15c)),'value':_0x2f7881(_0x3dcb42(0x150))}]);const _0x1f1e23=_0xdc74d8||_0x17c287||_0x3dcb42(0x163);_0x3a12ed({'projectName':_0x58da93,'appCode':_0x20df90,'pullApi':_0x427196,'aiSetup':![],'selectedIDEs':[],'env':_0x1f1e23}),_0x34a3f5(_0x3dcb42(0x168));}return;}if(_0x1f0d40[_0x3dcb42(0x14a)]===0x0){_0x423984(_0x2f7881(_0x3dcb42(0x156)));return;}const _0x124cd1=Array[_0x3dcb42(0x14c)](_0x1f0d40)[_0x3dcb42(0x18d)](_0x182db8=>UI_IDE_LIST[_0x182db8])[_0x3dcb42(0x151)](_0x342adb=>_0x342adb!==undefined);_0x314fa2(_0x22cdb4=>[..._0x22cdb4,{'step':_0x3dcb42(0x138),'label':_0x2f7881(_0x3dcb42(0x15c)),'value':_0x2f7881(_0x3dcb42(0x191),{'count':_0x124cd1[_0x3dcb42(0x144)]})}]);const _0x5c4508=_0xdc74d8||_0x17c287||_0x3dcb42(0x163);_0x3a12ed({'projectName':_0x58da93,'appCode':_0x20df90,'pullApi':_0x427196,'aiSetup':!![],'selectedIDEs':_0x124cd1,'env':_0x5c4508}),_0x34a3f5(_0x3dcb42(0x168));return;}if(_0x20a567===_0x3dcb42(0x194)){const _0xa225ef=_0xf1b665===0x0;if(_0xa225ef){_0x34a3f5(_0x3dcb42(0x193));const _0x255bcc=await _0x204d36();_0x255bcc?(_0x314fa2(_0x17e2aa=>[..._0x17e2aa,{'step':_0x3dcb42(0x181),'label':_0x2f7881(_0x3dcb42(0x153)),'value':_0x2f7881('create.steps.login.loggedIn')}]),_0x34a3f5(_0x3dcb42(0x17d))):(_0x314fa2(_0x1fedb1=>[..._0x1fedb1,{'step':_0x3dcb42(0x181),'label':_0x2f7881(_0x3dcb42(0x153)),'value':_0x2f7881('create.steps.login.failed')}]),_0x34a3f5(_0x3dcb42(0x134)));}else _0x314fa2(_0xfc3a37=>[..._0xfc3a37,{'step':_0x3dcb42(0x181),'label':_0x2f7881('create.steps.login.label'),'value':_0x2f7881('create.steps.login.skipped')}]),_0x34a3f5(_0x3dcb42(0x134));return;}}if(_0x4b7a1c[_0x3dcb42(0x155)]||_0x4b7a1c['delete']){_0x2c0346(_0x18ec38=>{const _0xc81ad7=_0x3dcb42,_0x28de8a=_0x18ec38[_0xc81ad7(0x169)](0x0,-0x1);if(_0x20a567==='project-name'){const {valid:_0x139906,message:_0x57802b}=_0x12aee5(_0x28de8a);_0x423984(_0x139906?'':_0x57802b||_0x2f7881(_0xc81ad7(0x146)));if(_0x139906&&!_0x25e1a8){const _0xc1de74=_0x28de8a||_0x45fffe;_0x12ad2f(_0xc1de74)?_0x10e7d1(_0x2f7881(_0xc81ad7(0x157),{'name':_0xc1de74})):_0x10e7d1('');}}else{if(_0x20a567===_0xc81ad7(0x162)){const {valid:_0x11e5e9,message:_0x44b48a}=_0x56e438(_0x28de8a);_0x423984(_0x11e5e9?'':_0x44b48a||_0x2f7881('create.validation.appCode.invalid'));}}return _0x28de8a;});return;}if(['creating',_0x3dcb42(0x17e),_0x3dcb42(0x193)][_0x3dcb42(0x132)](_0x20a567))return;if(_0x20a567===_0x3dcb42(0x17d)||_0x20a567===_0x3dcb42(0x194)||_0x20a567===_0x3dcb42(0x134))return;_0x2c0346(_0x572aea=>{const _0x28dbfa=_0x3dcb42,_0x1be54f=_0x572aea+_0x3d3ac8;if(_0x20a567==='project-name'){const {valid:_0x26718e,message:_0x4f201d}=_0x12aee5(_0x1be54f);_0x423984(_0x26718e?'':_0x4f201d||_0x2f7881('create.validation.projectName.invalid'));if(_0x26718e&&!_0x25e1a8){const _0x21f660=_0x1be54f||_0x45fffe;_0x12ad2f(_0x21f660)?_0x10e7d1(_0x2f7881(_0x28dbfa(0x157),{'name':_0x21f660})):_0x10e7d1('');}}else{if(_0x20a567===_0x28dbfa(0x162)){const {valid:_0x29f82d,message:_0x4c022d}=_0x56e438(_0x1be54f);_0x423984(_0x29f82d?'':_0x4c022d||_0x2f7881(_0x28dbfa(0x13e)));}}return _0x1be54f;});}),a42_0x4b3ffc(Box,{'flexDirection':_0x2ef734(0x172),'marginTop':0x1,'children':[_0x4a3c12[_0x2ef734(0x144)]===0x0&&a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x16f),'children':_0x2f7881(_0x2ef734(0x16a))})}),_0x4a3c12[_0x2ef734(0x18d)](_0x5cfd8a=>a42_0x4b3ffc(Box,{'children':[a42_0x5ab88(Text,{'color':_0x2ef734(0x15d),'children':_0x2f7881(_0x2ef734(0x140),{'label':_0x5cfd8a[_0x2ef734(0x143)]})}),a42_0x5ab88(Text,{'color':_0x2ef734(0x16f),'children':_0x5cfd8a[_0x2ef734(0x14d)]})]},_0x5cfd8a['step'])),_0x20a567===_0x2ef734(0x188)&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x4b3ffc(Box,{'children':[a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x179))}),_0x6c026?a42_0x5ab88(Text,{'color':_0x2ef734(0x15d),'children':_0x6c026}):a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x45fffe}),_0x25e1a8&&a42_0x4b3ffc(Text,{'color':'red','children':['\x20←\x20',_0x25e1a8]}),_0x581383&&a42_0x4b3ffc(Text,{'color':_0x2ef734(0x17f),'children':['\x20←\x20',_0x581383]})]}),!_0x25e1a8&&!_0x581383&&!_0x6c026&&a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x13d))})})]}),_0x20a567==='app-code'&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x4b3ffc(Box,{'children':[a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x18a))}),a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x18f))}),a42_0x5ab88(Text,{'color':_0x2ef734(0x15d),'children':_0x6c026}),_0x25e1a8&&a42_0x4b3ffc(Text,{'color':'red','children':[_0x2ef734(0x135),_0x25e1a8]})]}),!_0x25e1a8&&a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x16c))})})]}),_0x20a567===_0x2ef734(0x17e)&&a42_0x4b3ffc(Box,{'children':[a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x195))}),_0xee3e26&&a42_0x5ab88(Text,{'color':'gray','children':_0x2f7881(_0x2ef734(0x139))})]}),_0x20a567===_0x2ef734(0x17d)&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x15d),'children':_0x2f7881(_0x2ef734(0x133))})}),a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'children':_0x2f7881('create.apiPull.confirm')})}),a42_0x4b3ffc(Box,{'marginLeft':0x2,'children':[a42_0x4b3ffc(Text,{'color':_0x3f18e6===0x0?_0x2ef734(0x15d):_0x2ef734(0x14e),'children':[_0x3f18e6===0x0?'▶\x20':'\x20\x20',_0x2ef734(0x177)]}),a42_0x5ab88(Text,{'children':'\x20'}),a42_0x4b3ffc(Text,{'color':_0x3f18e6===0x1?'green':_0x2ef734(0x14e),'children':[_0x3f18e6===0x1?'▶\x20':'\x20\x20','No']})]}),a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x170))})}),a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x142),'children':_0x2f7881(_0x2ef734(0x19a))})})]}),_0x20a567===_0x2ef734(0x134)&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x15d),'children':'√'})}),a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x186))})}),a42_0x4b3ffc(Box,{'marginLeft':0x2,'children':[a42_0x4b3ffc(Text,{'color':_0x1866f4===0x0?_0x2ef734(0x15d):_0x2ef734(0x14e),'children':[_0x1866f4===0x0?'▶\x20':'\x20\x20',_0x2ef734(0x177)]}),a42_0x5ab88(Text,{'children':'\x20'}),a42_0x4b3ffc(Text,{'color':_0x1866f4===0x1?_0x2ef734(0x15d):_0x2ef734(0x14e),'children':[_0x1866f4===0x1?'▶\x20':'\x20\x20','No']})]}),_0x30725e&&_0x1866f4===0x0&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x141))})}),a42_0x4b3ffc(Box,{'marginTop':0x1,'flexDirection':_0x2ef734(0x172),'children':[a42_0x5ab88(Text,{'bold':!![],'color':_0x2ef734(0x142),'children':_0x2f7881(_0x2ef734(0x13a))}),UI_IDE_LIST[_0x2ef734(0x18d)]((_0x3e6186,_0x3b9e20)=>{const _0x32423c=_0x2ef734,_0x3add15=_0x36f468===_0x3b9e20,_0x51b63b=_0x1f0d40[_0x32423c(0x185)](_0x3b9e20),_0x49d9cc=UI_MCP_IDES[_0x32423c(0x185)](_0x3e6186);return a42_0x5ab88(Box,{'children':a42_0x4b3ffc(Text,{'backgroundColor':_0x3add15?'blue':undefined,'color':_0x3add15?_0x32423c(0x15b):undefined,'children':['\x20\x20',_0x51b63b?_0x32423c(0x196):'[\x20]','\x20',UI_IDE_CONFIGS[_0x3e6186][_0x32423c(0x189)],_0x49d9cc&&a42_0x5ab88(Text,{'color':_0x3add15?_0x32423c(0x15b):_0x32423c(0x16f),'children':_0x32423c(0x154)}),'\x20',a42_0x4b3ffc(Text,{'color':_0x3add15?'white':_0x32423c(0x14e),'dimColor':!_0x3add15,'children':['-\x20',UI_IDE_CONFIGS[_0x3e6186][_0x32423c(0x197)]]})]})},_0x3e6186);}),a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x159))})})]})]}),!_0x30725e&&a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'color':'gray','children':_0x2f7881('create.common.selectHint')})}),_0x25e1a8&&a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x4b3ffc(Text,{'color':_0x2ef734(0x17f),'children':['✗\x20',_0x25e1a8]})})]}),_0x20a567===_0x2ef734(0x194)&&a42_0x4b3ffc(a42_0x3b3cdd,{'children':[a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x142),'children':_0x2f7881('create.login.notDetected')})}),a42_0x5ab88(Box,{'marginTop':0x1,'children':a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x176))})}),a42_0x4b3ffc(Box,{'marginLeft':0x2,'children':[a42_0x4b3ffc(Text,{'color':_0xf1b665===0x0?_0x2ef734(0x15d):_0x2ef734(0x14e),'children':[_0xf1b665===0x0?'▶\x20':'\x20\x20',_0x2ef734(0x177)]}),a42_0x5ab88(Text,{'children':'\x20'}),a42_0x4b3ffc(Text,{'color':_0xf1b665===0x1?_0x2ef734(0x15d):_0x2ef734(0x14e),'children':[_0xf1b665===0x1?'▶\x20':'\x20\x20','No']})]}),a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x170))})})]}),_0x20a567==='login-process'&&a42_0x4b3ffc(Box,{'children':[a42_0x5ab88(Text,{'children':_0x2f7881(_0x2ef734(0x167))}),_0x497fae&&a42_0x5ab88(Text,{'color':_0x2ef734(0x14e),'children':_0x2f7881(_0x2ef734(0x166))})]}),_0x20a567===_0x2ef734(0x168)&&a42_0x5ab88(Box,{'children':a42_0x5ab88(Text,{'color':'green','children':_0x2f7881(_0x2ef734(0x180))})})]});}
1
+ const a40_0x2c7be8=a40_0x28fa;(function(_0x16ce7c,_0x5a564f){const _0x19f167=a40_0x28fa,_0x512f48=_0x16ce7c();while(!![]){try{const _0x2ddcdc=-parseInt(_0x19f167(0x20d))/0x1+-parseInt(_0x19f167(0x1f1))/0x2+parseInt(_0x19f167(0x20e))/0x3+parseInt(_0x19f167(0x214))/0x4+-parseInt(_0x19f167(0x1dc))/0x5+-parseInt(_0x19f167(0x1fb))/0x6+parseInt(_0x19f167(0x1da))/0x7;if(_0x2ddcdc===_0x5a564f)break;else _0x512f48['push'](_0x512f48['shift']());}catch(_0x487e32){_0x512f48['push'](_0x512f48['shift']());}}}(a40_0x5ee5,0x1a200));import{jsx as a40_0x2007f2,jsxs as a40_0x2d4312,Fragment as a40_0x561f6e}from'react/jsx-runtime';import{useState}from'react';function a40_0x5ee5(){const _0x54cd9a=['create.login.prompt','return','has','create.lovrabetSetup.confirm','add','leftArrow','green','create.validation.projectName.invalid','create.lovrabetSetup.keyboardShortcuts','yellow','app-code','slice','99237xOXpGY','470466bEdypB','online','create.steps.projectName.label','create.common.no','lovrabet-setup-selection','create.common.selectHint','590588fsjACL','create.login.notDetected','confirm-api-pull','creating','create.completedStep','string','create.validation.appCode.invalidFormat','length','white','Yes','gray','create.validation.projectName.tooLong','codebuddy','create.validation.projectName.invalidFormat','delete','upArrow','claude','create.steps.login.failed','create.validation.appCode.invalid','red','cwd','create.input.appCode.label','opencode','backspace','trim','name','create.common.yes','my-app','cyan','create.steps.appCode.notSet','create.login.checking','rightArrow','create.apiPull.confirm','[✓]','create.creating','lovrabet-setup','create.input.appCode.optional','create.lovrabetSetup.selectIdeHint','create.steps.login.label','create.steps.appCode.label','login','1037421UyPwqU','create.login.inProgressStatus','639925XsHbHa','login-process','create.steps.lovrabetSetup.label','create.steps.login.loggedIn','create.input.projectName.label','cursor','qoder','label','create.lovrabetSetup.selectIdeTitle','create.login.valid','downArrow','\x20+MCP','api-pull','column','create.validation.ide.required','includes','step','env','project-name','value','create.validation.projectName.dirExistsShort','53974zeRIAh','from','login-prompt','create.validation.projectName.dirExists','create.input.appCode.hint','filter','create.validation.appCode.tooLong','login-check','blue','[\x20]','548730LuLCmB','map','cline','codex','create.steps.apiPull.label','\x20←\x20'];a40_0x5ee5=function(){return _0x54cd9a;};return a40_0x5ee5();}import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';function a40_0x28fa(_0xe69621,_0x1e30f9){_0xe69621=_0xe69621-0x1bb;const _0x5ee5fa=a40_0x5ee5();let _0x28fae2=_0x5ee5fa[_0xe69621];return _0x28fae2;}import a40_0x5e7006 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=['antigravity',a40_0x2c7be8(0x1c1),a40_0x2c7be8(0x1fd),a40_0x2c7be8(0x1bd),a40_0x2c7be8(0x1fe),a40_0x2c7be8(0x1e1),a40_0x2c7be8(0x1c7),a40_0x2c7be8(0x1e2),'trae','windsurf','agent'],UI_MCP_IDES=new Set(Array[a40_0x2c7be8(0x1f2)](MCP_IDES));export function EnhancedGuidedCreate(_0xb40784){const _0x3ccc14=a40_0x2c7be8,{onCreate:_0x14f621,env:_0x3fa52f}=_0xb40784,{t:_0x1bec36}=useI18n(),[_0xc1b45c,_0x378bf0]=useState(_0x3ccc14(0x1ee)),[_0x4a1cbc,_0x5e849b]=useState(''),[_0x27e9f0,_0x294437]=useState(''),[_0x435e54,_0x74a9fa]=useState(''),[_0x21d321,_0x1c37a7]=useState(''),[_0xab59d,_0x4f47df]=useState([]),[_0x5ca9f7,_0x306b11]=useState(null),[_0x19adc1,_0x2c0c19]=useState(![]),[_0x4c0955,_0x29e4e3]=useState(![]),[_0x21ef37,_0x3c3ca9]=useState(![]),[_0x390289,_0x2b1351]=useState(0x0),[_0x1c5378,_0x193033]=useState(0x0),[_0x1b2e2a,_0x331bb8]=useState(0x0),[_0x2949c4,_0x524d50]=useState(![]),[_0x6322fb,_0x112739]=useState(new Set()),[_0x487556,_0x307606]=useState(0x0),[_0x41373b,_0x7616ce]=useState(''),_0x532743=_0x3ccc14(0x1cc),_0x541475=readConfig(),_0x1ff122=typeof _0x541475[_0x3ccc14(0x1ed)]===_0x3ccc14(0x219)?_0x541475[_0x3ccc14(0x1ed)]:undefined;function _0x3e6361(_0x5c3e49){const _0x1763f3=_0x3ccc14,_0x5eb3a9=_0x5c3e49||_0x532743,_0x42ca16=a40_0x5e7006['resolve'](process[_0x1763f3(0x1c5)](),_0x5eb3a9);return existsSync(_0x42ca16);}function _0x4379c2(_0x3111b2){const _0x37ce63=_0x3ccc14;if(_0x3111b2[_0x37ce63(0x21b)]>0x32)return{'valid':![],'message':_0x1bec36(_0x37ce63(0x1bc))};const _0x596c8d=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x3111b2?.[_0x37ce63(0x1c9)]()&&!_0x596c8d['test'](_0x3111b2))return{'valid':![],'message':_0x1bec36(_0x37ce63(0x1be))};return{'valid':!![]};}function _0x189da9(_0x214071){const _0x1abd09=_0x3ccc14;if(!_0x214071[_0x1abd09(0x1c9)]())return{'valid':!![]};if(_0x214071['length']>0x64)return{'valid':![],'message':_0x1bec36(_0x1abd09(0x1f7))};const _0x129167=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x129167['test'](_0x214071))return{'valid':![],'message':_0x1bec36(_0x1abd09(0x21a))};return{'valid':!![]};}async function _0x3bf496(){_0x2c0c19(!![]);try{const _0x2f34f3=await getIsSessionValid();return _0x306b11(_0x2f34f3),_0x2f34f3;}catch(_0x4313ec){return _0x306b11(![]),![];}finally{_0x2c0c19(![]);}}async function _0x29b728(){_0x29e4e3(!![]);try{const _0x6f1bd=await authServer({'silent':!![]});return _0x306b11(_0x6f1bd),_0x6f1bd;}catch(_0x27b93e){return _0x306b11(![]),![];}finally{_0x29e4e3(![]);}}return useInput(async(_0x48be2b,_0x47ff8d)=>{const _0xc91062=_0x3ccc14;if(_0x47ff8d[_0xc91062(0x206)]||_0x47ff8d[_0xc91062(0x1d0)]){if(_0xc1b45c===_0xc91062(0x216)){_0x2b1351(_0x3900e2=>_0x3900e2===0x0?0x1:0x0);return;}if(_0xc1b45c==='lovrabet-setup-selection'){if(!_0x2949c4){_0x331bb8(_0xfbd028=>_0xfbd028===0x0?0x1:0x0);return;}_0x524d50(![]);return;}if(_0xc1b45c===_0xc91062(0x1f3)){_0x193033(_0x4f6cbf=>_0x4f6cbf===0x0?0x1:0x0);return;}}if(_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){if(_0x47ff8d[_0xc91062(0x1c0)]){_0x307606(_0x4f5078=>_0x4f5078>0x0?_0x4f5078-0x1:UI_IDE_LIST['length']-0x1);return;}if(_0x47ff8d[_0xc91062(0x1e6)]){_0x307606(_0x59fcba=>_0x59fcba<UI_IDE_LIST[_0xc91062(0x21b)]-0x1?_0x59fcba+0x1:0x0);return;}}if(_0x48be2b==='\x20'&&_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(_0x29309f=>{const _0x4dbe48=_0xc91062,_0x5ab95f=new Set(_0x29309f);return _0x5ab95f['has'](_0x487556)?_0x5ab95f[_0x4dbe48(0x1bf)](_0x487556):_0x5ab95f[_0x4dbe48(0x205)](_0x487556),_0x5ab95f;}),_0x1c37a7('');return;}if((_0x48be2b==='a'||_0x48be2b==='A')&&_0xc1b45c==='lovrabet-setup-selection'&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(new Set(UI_IDE_LIST[_0xc91062(0x1fc)]((_0x4c35d9,_0x2f2087)=>_0x2f2087))),_0x1c37a7('');return;}if((_0x48be2b==='i'||_0x48be2b==='I'||_0x48be2b==='r'||_0x48be2b==='R')&&_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(_0x1b60dc=>{const _0x25224a=_0xc91062,_0x408b93=new Set();for(let _0x59b871=0x0;_0x59b871<UI_IDE_LIST[_0x25224a(0x21b)];_0x59b871++){!_0x1b60dc['has'](_0x59b871)&&_0x408b93[_0x25224a(0x205)](_0x59b871);}return _0x408b93;});return;}if(_0x47ff8d[_0xc91062(0x202)]){if(_0xc1b45c===_0xc91062(0x1ee)){const _0x19fbc8=_0x435e54[_0xc91062(0x1c9)]()||_0x532743;if(_0x21d321)return;if(_0x3e6361(_0x19fbc8)){_0x7616ce(_0x1bec36(_0xc91062(0x1f4),{'name':_0x19fbc8}));return;}_0x5e849b(_0x19fbc8),_0x4f47df([{'step':_0xc91062(0x1ee),'label':_0x1bec36(_0xc91062(0x210)),'value':_0x19fbc8}]),_0x74a9fa(''),_0x1c37a7(''),_0x7616ce(''),_0x378bf0(_0xc91062(0x20b));return;}if(_0xc1b45c==='app-code'){if(_0x21d321)return;const _0x72e955=_0x435e54[_0xc91062(0x1c9)]();_0x294437(_0x72e955),_0x4f47df(_0x3c7e02=>[..._0x3c7e02,{'step':_0xc91062(0x20b),'label':_0x1bec36(_0xc91062(0x1d8)),'value':_0x72e955||_0x1bec36(_0xc91062(0x1ce))}]),_0x74a9fa(''),_0x1c37a7('');if(_0x72e955){_0x378bf0(_0xc91062(0x1f8));const _0x5d0777=await _0x3bf496();_0x5d0777?_0x378bf0(_0xc91062(0x216)):_0x378bf0('login-prompt');}else{const _0x4fb314=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x4fb314}),_0x378bf0(_0xc91062(0x217));}return;}if(_0xc1b45c==='confirm-api-pull'){const _0x22851b=_0x390289===0x0;_0x3c3ca9(_0x22851b),_0x4f47df(_0x54effc=>[..._0x54effc,{'step':_0xc91062(0x1e8),'label':_0x1bec36(_0xc91062(0x1ff)),'value':_0x22851b?_0x1bec36(_0xc91062(0x1cb)):_0x1bec36(_0xc91062(0x211))}]),_0x378bf0('lovrabet-setup-selection');return;}if(_0xc1b45c===_0xc91062(0x212)){if(!_0x2949c4){_0x524d50(!![]);if(_0x1b2e2a===0x1){_0x4f47df(_0x1c593a=>[..._0x1c593a,{'step':_0xc91062(0x1d4),'label':_0x1bec36(_0xc91062(0x1de)),'value':_0x1bec36(_0xc91062(0x211))}]);const _0x5bafcd=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':_0x27e9f0,'pullApi':_0x21ef37,'aiSetup':![],'selectedIDEs':[],'env':_0x5bafcd}),_0x378bf0(_0xc91062(0x217));}return;}if(_0x6322fb['size']===0x0){_0x1c37a7(_0x1bec36(_0xc91062(0x1ea)));return;}const _0x33d1f5=Array[_0xc91062(0x1f2)](_0x6322fb)['map'](_0x1dbd3c=>UI_IDE_LIST[_0x1dbd3c])[_0xc91062(0x1f6)](_0x5c89fb=>_0x5c89fb!==undefined);_0x4f47df(_0xc14060=>[..._0xc14060,{'step':'lovrabet-setup','label':_0x1bec36(_0xc91062(0x1de)),'value':_0x1bec36('create.steps.lovrabetSetup.ideCount',{'count':_0x33d1f5[_0xc91062(0x21b)]})}]);const _0x266672=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':_0x27e9f0,'pullApi':_0x21ef37,'aiSetup':!![],'selectedIDEs':_0x33d1f5,'env':_0x266672}),_0x378bf0(_0xc91062(0x217));return;}if(_0xc1b45c===_0xc91062(0x1f3)){const _0x6e69e3=_0x1c5378===0x0;if(_0x6e69e3){_0x378bf0(_0xc91062(0x1dd));const _0x42c92f=await _0x29b728();_0x42c92f?(_0x4f47df(_0x35ecb5=>[..._0x35ecb5,{'step':_0xc91062(0x1d9),'label':_0x1bec36('create.steps.login.label'),'value':_0x1bec36(_0xc91062(0x1df))}]),_0x378bf0(_0xc91062(0x216))):(_0x4f47df(_0x5db59c=>[..._0x5db59c,{'step':'login','label':_0x1bec36(_0xc91062(0x1d7)),'value':_0x1bec36(_0xc91062(0x1c2))}]),_0x378bf0(_0xc91062(0x212)));}else _0x4f47df(_0x5e8be2=>[..._0x5e8be2,{'step':_0xc91062(0x1d9),'label':_0x1bec36(_0xc91062(0x1d7)),'value':_0x1bec36('create.steps.login.skipped')}]),_0x378bf0(_0xc91062(0x212));return;}}if(_0x47ff8d[_0xc91062(0x1c8)]||_0x47ff8d[_0xc91062(0x1bf)]){_0x74a9fa(_0x44439d=>{const _0x417d74=_0xc91062,_0x2c72a2=_0x44439d[_0x417d74(0x20c)](0x0,-0x1);if(_0xc1b45c===_0x417d74(0x1ee)){const {valid:_0x1c5a6d,message:_0x2fd6d7}=_0x4379c2(_0x2c72a2);_0x1c37a7(_0x1c5a6d?'':_0x2fd6d7||_0x1bec36('create.validation.projectName.invalid'));if(_0x1c5a6d&&!_0x21d321){const _0x30cf8a=_0x2c72a2||_0x532743;_0x3e6361(_0x30cf8a)?_0x7616ce(_0x1bec36(_0x417d74(0x1f0),{'name':_0x30cf8a})):_0x7616ce('');}}else{if(_0xc1b45c===_0x417d74(0x20b)){const {valid:_0x4aa301,message:_0x2cf1dc}=_0x189da9(_0x2c72a2);_0x1c37a7(_0x4aa301?'':_0x2cf1dc||_0x1bec36(_0x417d74(0x1c3)));}}return _0x2c72a2;});return;}if([_0xc91062(0x217),_0xc91062(0x1f8),'login-process'][_0xc91062(0x1eb)](_0xc1b45c))return;if(_0xc1b45c===_0xc91062(0x216)||_0xc1b45c==='login-prompt'||_0xc1b45c===_0xc91062(0x212))return;_0x74a9fa(_0x447797=>{const _0x1fd8f3=_0xc91062,_0x49883f=_0x447797+_0x48be2b;if(_0xc1b45c==='project-name'){const {valid:_0x590f82,message:_0x2d9e1d}=_0x4379c2(_0x49883f);_0x1c37a7(_0x590f82?'':_0x2d9e1d||_0x1bec36(_0x1fd8f3(0x208)));if(_0x590f82&&!_0x21d321){const _0x19bb86=_0x49883f||_0x532743;_0x3e6361(_0x19bb86)?_0x7616ce(_0x1bec36('create.validation.projectName.dirExistsShort',{'name':_0x19bb86})):_0x7616ce('');}}else{if(_0xc1b45c===_0x1fd8f3(0x20b)){const {valid:_0x4a6d23,message:_0x49e464}=_0x189da9(_0x49883f);_0x1c37a7(_0x4a6d23?'':_0x49e464||_0x1bec36(_0x1fd8f3(0x1c3)));}}return _0x49883f;});}),a40_0x2d4312(Box,{'flexDirection':_0x3ccc14(0x1e9),'marginTop':0x1,'children':[_0xab59d[_0x3ccc14(0x21b)]===0x0&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1cd),'children':_0x1bec36('create.title')})}),_0xab59d[_0x3ccc14(0x1fc)](_0x3c7b94=>a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x1bec36(_0x3ccc14(0x218),{'label':_0x3c7b94[_0x3ccc14(0x1e3)]})}),a40_0x2007f2(Text,{'color':'cyan','children':_0x3c7b94[_0x3ccc14(0x1ef)]})]},_0x3c7b94[_0x3ccc14(0x1ec)])),_0xc1b45c===_0x3ccc14(0x1ee)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1e0))}),_0x435e54?a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x435e54}):a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x532743}),_0x21d321&&a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':['\x20←\x20',_0x21d321]}),_0x41373b&&a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':[_0x3ccc14(0x200),_0x41373b]})]}),!_0x21d321&&!_0x41373b&&!_0x435e54&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36('create.input.projectName.hint')})})]}),_0xc1b45c===_0x3ccc14(0x20b)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1c6))}),a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1d5))}),a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x435e54}),_0x21d321&&a40_0x2d4312(Text,{'color':'red','children':[_0x3ccc14(0x200),_0x21d321]})]}),!_0x21d321&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1f5))})})]}),_0xc1b45c==='login-check'&&a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1cf))}),_0x19adc1&&a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36('create.login.checkingStatus')})]}),_0xc1b45c==='confirm-api-pull'&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x1bec36(_0x3ccc14(0x1e5))})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1d1))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x390289===0x0?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x390289===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x390289===0x1?_0x3ccc14(0x207):'gray','children':[_0x390289===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'yellow','children':_0x1bec36('create.apiPull.recommendation')})})]}),_0xc1b45c===_0x3ccc14(0x212)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':'√'})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x204))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x1b2e2a===0x0?_0x3ccc14(0x207):'gray','children':[_0x1b2e2a===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x1b2e2a===0x1?'green':_0x3ccc14(0x1bb),'children':[_0x1b2e2a===0x1?'▶\x20':'\x20\x20','No']})]}),_0x2949c4&&_0x1b2e2a===0x0&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1d6))})}),a40_0x2d4312(Box,{'marginTop':0x1,'flexDirection':_0x3ccc14(0x1e9),'children':[a40_0x2007f2(Text,{'bold':!![],'color':'yellow','children':_0x1bec36(_0x3ccc14(0x1e4))}),UI_IDE_LIST[_0x3ccc14(0x1fc)]((_0x430341,_0x49d932)=>{const _0x1dd6ba=_0x3ccc14,_0x4290e5=_0x487556===_0x49d932,_0xf60b56=_0x6322fb[_0x1dd6ba(0x203)](_0x49d932),_0x4be5a3=UI_MCP_IDES['has'](_0x430341);return a40_0x2007f2(Box,{'children':a40_0x2d4312(Text,{'backgroundColor':_0x4290e5?_0x1dd6ba(0x1f9):undefined,'color':_0x4290e5?_0x1dd6ba(0x21c):undefined,'children':['\x20\x20',_0xf60b56?_0x1dd6ba(0x1d2):_0x1dd6ba(0x1fa),'\x20',UI_IDE_CONFIGS[_0x430341][_0x1dd6ba(0x1ca)],_0x4be5a3&&a40_0x2007f2(Text,{'color':_0x4290e5?'white':_0x1dd6ba(0x1cd),'children':_0x1dd6ba(0x1e7)}),'\x20',a40_0x2d4312(Text,{'color':_0x4290e5?_0x1dd6ba(0x21c):_0x1dd6ba(0x1bb),'dimColor':!_0x4290e5,'children':['-\x20',UI_IDE_CONFIGS[_0x430341]['description']]})]})},_0x430341);}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36(_0x3ccc14(0x209))})})]})]}),!_0x2949c4&&a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})}),_0x21d321&&a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':['✗\x20',_0x21d321]})})]}),_0xc1b45c===_0x3ccc14(0x1f3)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x20a),'children':_0x1bec36(_0x3ccc14(0x215))})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x201))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x1c5378===0x0?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x1c5378===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x1c5378===0x1?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x1c5378===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})})]}),_0xc1b45c==='login-process'&&a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36('create.login.inProgress')}),_0x4c0955&&a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36(_0x3ccc14(0x1db))})]}),_0xc1b45c===_0x3ccc14(0x217)&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'green','children':_0x1bec36(_0x3ccc14(0x1d3))})})]});}
@@ -1 +1 @@
1
- (function(_0x2b6079,_0x157e60){const _0x4729d8=a43_0x5a4f,_0x1e8752=_0x2b6079();while(!![]){try{const _0x590a0f=parseInt(_0x4729d8(0x1b3))/0x1*(parseInt(_0x4729d8(0x1ae))/0x2)+parseInt(_0x4729d8(0x1ab))/0x3*(-parseInt(_0x4729d8(0x1b4))/0x4)+-parseInt(_0x4729d8(0x1ad))/0x5+-parseInt(_0x4729d8(0x1b0))/0x6+-parseInt(_0x4729d8(0x1a8))/0x7*(-parseInt(_0x4729d8(0x1b1))/0x8)+parseInt(_0x4729d8(0x1af))/0x9*(-parseInt(_0x4729d8(0x1aa))/0xa)+parseInt(_0x4729d8(0x1b2))/0xb*(parseInt(_0x4729d8(0x1b5))/0xc);if(_0x590a0f===_0x157e60)break;else _0x1e8752['push'](_0x1e8752['shift']());}catch(_0x223121){_0x1e8752['push'](_0x1e8752['shift']());}}}(a43_0x3e98,0x83c18));function a43_0x5a4f(_0x49c600,_0x3fac3c){_0x49c600=_0x49c600-0x1a8;const _0x3e98ac=a43_0x3e98();let _0x5a4fce=_0x3e98ac[_0x49c600];return _0x5a4fce;}function a43_0x3e98(){const _0x4a584d=['replace','1115125BLmtfz','34498GTIPvp','27QjBNwk','3667584JMiMac','365712CwqoKD','1463594AdYctk','8QMREij','12OsUchq','132twetTS','91WpdkrH','now','361880eVWwgu','713343lZKuWU'];a43_0x3e98=function(){return _0x4a584d;};return a43_0x3e98();}export function formatElapsed(_0x34c294){const _0x1632e4=a43_0x5a4f,_0x3df949=Date[_0x1632e4(0x1a9)]()-_0x34c294;if(_0x3df949<0x3e8)return _0x3df949+'ms';const _0x1dbaef=(_0x3df949/0x3e8)['toFixed'](0x2),_0x431bcc=_0x1dbaef[_0x1632e4(0x1ac)](/\.?0+$/u,'');return _0x431bcc+'s';}
1
+ (function(_0x52b45c,_0x13ba8b){const _0x5e4682=a41_0x1849,_0xf50264=_0x52b45c();while(!![]){try{const _0x17d603=parseInt(_0x5e4682(0x168))/0x1*(-parseInt(_0x5e4682(0x16e))/0x2)+-parseInt(_0x5e4682(0x171))/0x3+-parseInt(_0x5e4682(0x16c))/0x4+-parseInt(_0x5e4682(0x172))/0x5+-parseInt(_0x5e4682(0x16a))/0x6*(-parseInt(_0x5e4682(0x173))/0x7)+-parseInt(_0x5e4682(0x16b))/0x8*(-parseInt(_0x5e4682(0x170))/0x9)+-parseInt(_0x5e4682(0x16f))/0xa*(-parseInt(_0x5e4682(0x174))/0xb);if(_0x17d603===_0x13ba8b)break;else _0xf50264['push'](_0xf50264['shift']());}catch(_0x5f5408){_0xf50264['push'](_0xf50264['shift']());}}}(a41_0x20cd,0x4c1de));function a41_0x20cd(){const _0x1bb14d=['replace','586538ZPTkyX','14803240nRnuac','626355AzLjCE','959877DXkniV','2749540Ybwckg','723779bjdGvg','11pjPOff','2RXVgiE','now','12qszCtI','32Emergx','789276ZrBeNb'];a41_0x20cd=function(){return _0x1bb14d;};return a41_0x20cd();}function a41_0x1849(_0x3db0d7,_0x2933ef){_0x3db0d7=_0x3db0d7-0x168;const _0x20cdcb=a41_0x20cd();let _0x1849f9=_0x20cdcb[_0x3db0d7];return _0x1849f9;}export function formatElapsed(_0x45bb72){const _0x13e4bc=a41_0x1849,_0x1bfebc=Date[_0x13e4bc(0x169)]()-_0x45bb72;if(_0x1bfebc<0x3e8)return _0x1bfebc+'ms';const _0x53d335=(_0x1bfebc/0x3e8)['toFixed'](0x2),_0x3b6ee6=_0x53d335[_0x13e4bc(0x16d)](/\.?0+$/u,'');return _0x3b6ee6+'s';}