@lovrabet/cli 1.3.3 → 1.3.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x7977e1=a29_0x4803;(function(_0x462423,_0x47cfa7){const _0xecf652=a29_0x4803,_0x5b515d=_0x462423();while(!![]){try{const _0x589e62=parseInt(_0xecf652(0xc9))/0x1+parseInt(_0xecf652(0xd7))/0x2+parseInt(_0xecf652(0xe4))/0x3*(parseInt(_0xecf652(0xed))/0x4)+-parseInt(_0xecf652(0xca))/0x5+parseInt(_0xecf652(0xc3))/0x6+parseInt(_0xecf652(0xc2))/0x7*(parseInt(_0xecf652(0xab))/0x8)+parseInt(_0xecf652(0xb7))/0x9*(-parseInt(_0xecf652(0xc8))/0xa);if(_0x589e62===_0x47cfa7)break;else _0x5b515d['push'](_0x5b515d['shift']());}catch(_0x1dd1aa){_0x5b515d['push'](_0x5b515d['shift']());}}}(a29_0x276c,0xcc9f1));import{jsx as a29_0x25be93}from'react/jsx-runtime';import a29_0x7461ac from'meow';import{render}from'ink';function a29_0x4803(_0x5369c6,_0x2a4910){_0x5369c6=_0x5369c6-0xa8;const _0x276cdb=a29_0x276c();let _0x48036d=_0x276cdb[_0x5369c6];return _0x48036d;}import{CreateApp}from'./create-app/main.js';function a29_0x276c(){const _0x254951=['other','\x20(监听模式)','api','skill-install','logout','antigravity','826HZNwgl','3757500NEIRGT','appcode','./create-app/non-interactive.js','mcp-install','init','10SYEgsx','1278237jPpXaO','7317325CtcodQ','setLogPath','stdin','qoder','help','cline','env','同步菜单命令','error','watch','opencode','mcp','windsurf','2045616FrwsXo','lovrabet\x20','isTTY','cursor','input','\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','setRawMode','×\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','trae','--help','push','exit','cwd','3RQavWQ','flags','trim','install','×\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','\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','boolean','LOVRABET_CI','执行初始化配置命令','6584128ricBYi','isRaw','create','clear','all','mcpCursor','setRawCommand','preview','build','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','auth','info','true','menu-update-cdn','./mcp/mcp-install-non-interactive.js','50632epYBDo','startsWith','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci','./skills/main.js','slice','执行预览命令','nonInteractive','codebuddy','执行更新菜单\x20CDN\x20资源命令','mcpClaude','menu','string','27166995LEcFVe','codex','claude','join','执行安装技能包命令'];a29_0x276c=function(){return _0x254951;};return a29_0x276c();}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('./cli-flags.js'))['dynamicCliFlags'];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a29_0x7977e1(0xe9),'en-US':a29_0x7977e1(0xdc)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x2b42d0=a29_0x7977e1;if(!process[_0x2b42d0(0xcc)][_0x2b42d0(0xd9)])return![];try{const _0x1af864=process[_0x2b42d0(0xcc)][_0x2b42d0(0xee)];return process[_0x2b42d0(0xcc)]['setRawMode'](!![]),process[_0x2b42d0(0xcc)][_0x2b42d0(0xdd)](_0x1af864??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x18ab63){const _0x12dcf3=a29_0x7977e1;return!!(_0x18ab63[_0x12dcf3(0xb1)]||_0x18ab63['ci']||process['env'][_0x12dcf3(0xeb)]===_0x12dcf3(0xa8)||process[_0x12dcf3(0xd0)]['CI']===_0x12dcf3(0xa8)||!process['stdout'][_0x12dcf3(0xd9)]||!isStdinRawModeSupported());}function getLanguage(_0x6a9603){const _0x2c586e=getLanguageFromFlags(_0x6a9603);return _0x2c586e||undefined;}function renderWithI18n(_0x4d588c,_0x434d61){const _0xc6e73c=a29_0x7977e1;return!isStdinRawModeSupported()&&(console['error'](_0x434d61?.[_0xc6e73c(0xac)]('zh')?_0xc6e73c(0xad):_0xc6e73c(0xe8)),process[_0xc6e73c(0xe2)](0x1)),render(a29_0x25be93(I18nProvider,{'language':_0x434d61,'children':_0x4d588c}));}const cli=a29_0x7461ac(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':'string'},'clear':{'type':a29_0x7977e1(0xea)},'env':{'type':'string'},'watch':{'type':a29_0x7977e1(0xea)},'help':{'type':a29_0x7977e1(0xea)},'appcode':{'type':'string'},'output':{'type':a29_0x7977e1(0xb6)},'params':{'type':a29_0x7977e1(0xb6)},'datasetcode':{'type':a29_0x7977e1(0xb6)},'mcpCursor':{'type':a29_0x7977e1(0xea)},'mcpClaude':{'type':a29_0x7977e1(0xea)},'mcpOther':{'type':a29_0x7977e1(0xea)},'cursor':{'type':'boolean'},'windsurf':{'type':a29_0x7977e1(0xea)},'claude':{'type':a29_0x7977e1(0xea)},'cline':{'type':a29_0x7977e1(0xea)},'codex':{'type':'boolean'},'opencode':{'type':a29_0x7977e1(0xea)},'qoder':{'type':a29_0x7977e1(0xea)},'codebuddy':{'type':a29_0x7977e1(0xea)},'trae':{'type':a29_0x7977e1(0xea)},'agent':{'type':a29_0x7977e1(0xea)},'antigravity':{'type':a29_0x7977e1(0xea)},'all':{'type':'boolean'},'nonInteractive':{'type':'boolean'},'ci':{'type':a29_0x7977e1(0xea)},'lang':{'type':a29_0x7977e1(0xb6)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x3e0a3c=a29_0x7977e1,_0x2b7ecd=cli[_0x3e0a3c(0xdb)][0x0],_0x2e5100=cli[_0x3e0a3c(0xdb)][0x1],_0xabefb6=cli[_0x3e0a3c(0xdb)][0x2],_0x453d5b=getLanguage(cli[_0x3e0a3c(0xe5)]),_0x368dd6=(_0x3e0a3c(0xd8)+process['argv'][_0x3e0a3c(0xaf)](0x2)[_0x3e0a3c(0xba)]('\x20'))[_0x3e0a3c(0xe6)]();logger[_0x3e0a3c(0xf3)](_0x368dd6);switch(_0x2b7ecd){case _0x3e0a3c(0xc7):{const _0x6ef8e9=cli['flags'][_0x3e0a3c(0xc4)],_0x2f569d=cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xd0)];logger['setLogPath'](process[_0x3e0a3c(0xe3)]()),logger[_0x3e0a3c(0xf8)](_0x3e0a3c(0xc7),_0x3e0a3c(0xec)),renderWithI18n(a29_0x25be93(Init,{'appcode':_0x6ef8e9,'env':_0x2f569d}),_0x453d5b);break;}case _0x3e0a3c(0xef):{const _0x551b82=cli[_0x3e0a3c(0xdb)][0x1]?.[_0x3e0a3c(0xe6)](),_0x11acbc=cli[_0x3e0a3c(0xe5)]['env'],_0x2a4d3e=isNonInteractiveMode(cli[_0x3e0a3c(0xe5)]);if(_0x2a4d3e&&_0x551b82){logger['setLogPath'](process[_0x3e0a3c(0xe3)]()),logger[_0x3e0a3c(0xf8)](_0x3e0a3c(0xef),'非交互模式创建项目:\x20'+_0x551b82);const {createProjectNonInteractive:_0x42c5f8}=await import(_0x3e0a3c(0xc5));await _0x42c5f8(_0x551b82,_0x11acbc);}else _0x2a4d3e&&!_0x551b82?(console[_0x3e0a3c(0xd2)](_0x453d5b?.['startsWith']('zh')?_0x3e0a3c(0xf6):_0x3e0a3c(0xde)),process[_0x3e0a3c(0xe2)](0x1)):renderWithI18n(a29_0x25be93(CreateApp,{'projectCode':_0x551b82,'env':_0x11acbc}),_0x453d5b);break;}case'start':{try{logger['setLogPath'](process['cwd']()),logger[_0x3e0a3c(0xf8)]('start','执行启动命令'),await runStart();}catch(_0x5cdaa4){console[_0x3e0a3c(0xd2)](_0x5cdaa4),process[_0x3e0a3c(0xe2)](0x1);}break;}case'build':{try{logger[_0x3e0a3c(0xcb)](process['cwd']()),logger['info'](_0x3e0a3c(0xf5),'执行构建命令'),await runBuild();}catch(_0x5d4ebc){console[_0x3e0a3c(0xd2)](_0x5d4ebc),process[_0x3e0a3c(0xe2)](0x1);}break;}case _0x3e0a3c(0xf4):{const _0x155724=cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xd3)];logger[_0x3e0a3c(0xcb)](process['cwd']()),logger[_0x3e0a3c(0xf8)](_0x3e0a3c(0xf4),_0x3e0a3c(0xb0)+(_0x155724?_0x3e0a3c(0xbd):''));if(_0x155724)try{await Promise['all']([runBuildWatch(),runPreview()]);}catch(_0x1f3d39){console[_0x3e0a3c(0xd2)](_0x1f3d39),process[_0x3e0a3c(0xe2)](0x1);}else try{await runPreview();}catch(_0x2a725d){console['error'](_0x2a725d),process['exit'](0x1);}break;}case'config':{renderWithI18n(a29_0x25be93(Config,{'cli':cli}),_0x453d5b);break;}case _0x3e0a3c(0xbe):{await apiCli(cli);break;}case _0x3e0a3c(0xf7):{renderWithI18n(a29_0x25be93(AuthServer,{}),_0x453d5b);break;}case _0x3e0a3c(0xb5):{if(_0x2e5100==='update'){logger[_0x3e0a3c(0xcb)](process[_0x3e0a3c(0xe3)]()),logger[_0x3e0a3c(0xf8)](_0x3e0a3c(0xa9),_0x3e0a3c(0xb3)),renderWithI18n(a29_0x25be93(AppMenuUpdateCdn,{}),_0x453d5b);break;}else logger[_0x3e0a3c(0xcb)](process['cwd']()),logger[_0x3e0a3c(0xf8)]('menu-sync',_0x3e0a3c(0xd1)),renderWithI18n(a29_0x25be93(AppMenuSyncUI,{}),_0x453d5b);break;}case _0x3e0a3c(0xc0):{logout();break;}case _0x3e0a3c(0xd5):{const _0xe8ba88=cli[_0x3e0a3c(0xdb)][0x1];logger['setLogPath'](process[_0x3e0a3c(0xe3)]());if(_0xe8ba88==='install'){const _0x469998=[];if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xf2)]||cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xda)])_0x469998[_0x3e0a3c(0xe1)]('cursor');if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xb4)]||cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xb9)])_0x469998[_0x3e0a3c(0xe1)]('claude');if(cli[_0x3e0a3c(0xe5)]['mcpOther'])_0x469998[_0x3e0a3c(0xe1)](_0x3e0a3c(0xbc));logger['info'](_0x3e0a3c(0xc6),'执行配置\x20MCP\x20命令',{'preselected':_0x469998});if(isNonInteractiveMode(cli[_0x3e0a3c(0xe5)])&&_0x469998['length']>0x0){const {installMcpNonInteractive:_0x301b87}=await import(_0x3e0a3c(0xaa));await _0x301b87(_0x469998);}else renderWithI18n(a29_0x25be93(McpInstallUI,{'preselectedIDEs':_0x469998}),_0x453d5b);}else _0xe8ba88===_0x3e0a3c(0xe0)||cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xce)]?await mcpCommand(_0xe8ba88,[],{'help':!![]}):await mcpCommand(_0xe8ba88,[],cli[_0x3e0a3c(0xe5)]);break;}case'skill':{const _0x54c973=cli[_0x3e0a3c(0xdb)][0x1];logger[_0x3e0a3c(0xcb)](process[_0x3e0a3c(0xe3)]());if(_0x54c973===_0x3e0a3c(0xe7)){const _0x41d9fe=[];if(cli['flags'][_0x3e0a3c(0xf1)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xda),'windsurf','claude','cline',_0x3e0a3c(0xb8),_0x3e0a3c(0xd4),_0x3e0a3c(0xcd),'codebuddy',_0x3e0a3c(0xdf),'agent',_0x3e0a3c(0xc1));else{if(cli['flags'][_0x3e0a3c(0xda)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xda));if(cli['flags'][_0x3e0a3c(0xd6)])_0x41d9fe[_0x3e0a3c(0xe1)]('windsurf');if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xb9)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xb9));if(cli['flags']['cline'])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xcf));if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xb8)])_0x41d9fe['push']('codex');if(cli['flags']['opencode'])_0x41d9fe['push'](_0x3e0a3c(0xd4));if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xcd)])_0x41d9fe['push']('qoder');if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xb2)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xb2));if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xdf)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xdf));if(cli['flags']['agent'])_0x41d9fe[_0x3e0a3c(0xe1)]('agent');if(cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xc1)])_0x41d9fe[_0x3e0a3c(0xe1)](_0x3e0a3c(0xc1));}const {getAllProvidedFlags:_0x33745a}=await import(_0x3e0a3c(0xae)),_0x33d7e5=_0x33745a(cli[_0x3e0a3c(0xe5)]);logger[_0x3e0a3c(0xf8)](_0x3e0a3c(0xbf),_0x3e0a3c(0xbb),{'preselected':_0x41d9fe,'providedFlags':_0x33d7e5});if(isNonInteractiveMode(cli[_0x3e0a3c(0xe5)])&&_0x41d9fe['length']>0x0){const {installSkillsNonInteractive:_0x47cbb9}=await import('./skills/skill-install-non-interactive.js');await _0x47cbb9(_0x41d9fe,_0x33d7e5);}else renderWithI18n(a29_0x25be93(SkillInstallUI,{'preselectedIDEs':_0x41d9fe,'providedFlags':_0x33d7e5}),_0x453d5b);}else _0x54c973===_0x3e0a3c(0xe0)||cli[_0x3e0a3c(0xe5)][_0x3e0a3c(0xce)]?await skillsCommand(_0x54c973,[],{'help':!![]}):await skillsCommand(_0x54c973,[],cli[_0x3e0a3c(0xe5)]);break;}case'logs':{cli['flags'][_0x3e0a3c(0xf0)]?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x25be93(Help,{}),_0x453d5b);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(_0x3dab1e,_0x5a1009){const _0x36666c=a30_0x180a,_0x386147=_0x3dab1e();while(!![]){try{const _0x422cbb=-parseInt(_0x36666c(0x167))/0x1+parseInt(_0x36666c(0x162))/0x2*(parseInt(_0x36666c(0x16a))/0x3)+-parseInt(_0x36666c(0x164))/0x4+-parseInt(_0x36666c(0x165))/0x5*(-parseInt(_0x36666c(0x166))/0x6)+-parseInt(_0x36666c(0x16c))/0x7+-parseInt(_0x36666c(0x161))/0x8+-parseInt(_0x36666c(0x170))/0x9*(-parseInt(_0x36666c(0x16f))/0xa);if(_0x422cbb===_0x5a1009)break;else _0x386147['push'](_0x386147['shift']());}catch(_0x5194bc){_0x386147['push'](_0x386147['shift']());}}}(a30_0x55e4,0xf1ba3));import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x1ab38a,_0x38e7c7)=>{const _0x4cfc60=a30_0x180a,_0x5b5967=spawn('vite',[_0x4cfc60(0x169),_0x4cfc60(0x16d)],{'stdio':_0x4cfc60(0x172),'shell':!![],'env':{...process['env'],'PATH':''+join(process['cwd'](),_0x4cfc60(0x16e),_0x4cfc60(0x171))+delimiter+process[_0x4cfc60(0x168)][_0x4cfc60(0x16b)]}});_0x5b5967['on'](_0x4cfc60(0x160),_0x3e034d=>{if(_0x3e034d===0x0||_0x3e034d===null)_0x1ab38a();else _0x38e7c7(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x3e034d));}),_0x5b5967['on'](_0x4cfc60(0x163),_0x38e7c7);});}function a30_0x180a(_0x4b6d6b,_0x38f87b){_0x4b6d6b=_0x4b6d6b-0x160;const _0x55e4cf=a30_0x55e4();let _0x180a3f=_0x55e4cf[_0x4b6d6b];return _0x180a3f;}function a30_0x55e4(){const _0x43c539=['node_modules','8585550SjifvD','18BmUNvy','.bin','inherit','close','426984TXejCm','54olwlKo','error','3647076GFQqLi','315niMPHH','164388pRCGuA','1633923iZIOwl','env','build','23466sWuBiU','PATH','456386QhKNpK','--watch'];a30_0x55e4=function(){return _0x43c539;};return a30_0x55e4();}
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 a31_0x494c(){const _0xe1054c=['开始构建项目','success','toString','node_modules','npm\x20run\x20build\x20exited\x20with\x20code\x20','99464hTPDxt','8042YGuTgk','error','message','data','756YLCsqT','cwd','trim','now','info','inherit','.bin','stderr','npm','5109888UkyBbJ','close','126192SZBkva','build','项目构建出错','env','2224248UzyUmj','3741504psueIu','9mGCqdu','4506670tVoBgp'];a31_0x494c=function(){return _0xe1054c;};return a31_0x494c();}function a31_0xf09d(_0x4784eb,_0x44810e){_0x4784eb=_0x4784eb-0xcb;const _0x494ca5=a31_0x494c();let _0xf09d11=_0x494ca5[_0x4784eb];return _0xf09d11;}(function(_0x777765,_0x2b9249){const _0x50e5e4=a31_0xf09d,_0x3bf73b=_0x777765();while(!![]){try{const _0x223450=-parseInt(_0x50e5e4(0xe0))/0x1+parseInt(_0x50e5e4(0xd1))/0x2*(-parseInt(_0x50e5e4(0xe6))/0x3)+-parseInt(_0x50e5e4(0xe4))/0x4+parseInt(_0x50e5e4(0xe7))/0x5+parseInt(_0x50e5e4(0xe5))/0x6+parseInt(_0x50e5e4(0xde))/0x7+parseInt(_0x50e5e4(0xd0))/0x8*(-parseInt(_0x50e5e4(0xd5))/0x9);if(_0x223450===_0x2b9249)break;else _0x3bf73b['push'](_0x3bf73b['shift']());}catch(_0x595eb7){_0x3bf73b['push'](_0x3bf73b['shift']());}}}(a31_0x494c,0x7e075));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x484a44,_0x4e5337)=>{const _0x4f17dc=a31_0xf09d,_0x1b4af0=Date[_0x4f17dc(0xd8)]();logger[_0x4f17dc(0xd9)](_0x4f17dc(0xe1),_0x4f17dc(0xcb),{'command':'npm\x20run\x20build'});let _0xe685ba='';const _0x2cfb49=spawn(_0x4f17dc(0xdd),['run',_0x4f17dc(0xe1)],{'stdio':[_0x4f17dc(0xda),_0x4f17dc(0xda),'pipe'],'shell':!![],'env':{...process[_0x4f17dc(0xe3)],'PATH':''+join(process[_0x4f17dc(0xd6)](),_0x4f17dc(0xce),_0x4f17dc(0xdb))+delimiter+process[_0x4f17dc(0xe3)]['PATH']}});_0x2cfb49[_0x4f17dc(0xdc)]?.['on'](_0x4f17dc(0xd4),_0x2520d0=>{const _0x43a53f=_0x4f17dc;_0xe685ba+=_0x2520d0[_0x43a53f(0xcd)]();}),_0x2cfb49['on'](_0x4f17dc(0xdf),_0x30932a=>{const _0x30aca1=_0x4f17dc,_0x18e64f=Date[_0x30aca1(0xd8)]()-_0x1b4af0;if(_0x30932a===0x0||_0x30932a===null)logger[_0x30aca1(0xcc)](_0x30aca1(0xe1),'项目构建成功',_0x18e64f),_0x484a44();else{const _0x4a1e6d={'exitCode':_0x30932a,'duration':_0x18e64f,'command':'npm\x20run\x20build','cwd':process[_0x30aca1(0xd6)]()};_0xe685ba['trim']()&&(_0x4a1e6d[_0x30aca1(0xdc)]=_0xe685ba['trim']()),logger['error'](_0x30aca1(0xe1),'项目构建失败',_0x4a1e6d),_0x4e5337(new Error(_0x30aca1(0xcf)+_0x30932a));}}),_0x2cfb49['on'](_0x4f17dc(0xd2),_0x49099a=>{const _0x103cf2=_0x4f17dc,_0x443779=Date[_0x103cf2(0xd8)]()-_0x1b4af0;logger['error'](_0x103cf2(0xe1),_0x103cf2(0xe2),{'error':_0x49099a[_0x103cf2(0xd3)],'duration':_0x443779,'stderr':_0xe685ba[_0x103cf2(0xd7)]()||undefined}),_0x4e5337(_0x49099a);});});}
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
+ const a32_0x1152fc=a32_0x31a3;function a32_0x4480(){const _0x4ce54c=['level','440572NmnFJX','38YPWMHa','keys','327421vYRVnA','logs.cleared','6080PAAgxY','timestamp','bind','language','logs.time','8EjnWmI','zh-CN','cwd','success','length','duration','logs.noLogs','8659510ORgpYs','127519ERctiY','870eIGtPP','log','error','warn','153ttylgO','logs.header','details','11jTpPgv','command','logs.details','setLogPath','11439xpwphf','forEach','message','readLogs','toLocaleString','stringify','logs.duration'];a32_0x4480=function(){return _0x4ce54c;};return a32_0x4480();}(function(_0x56c7ee,_0x417687){const _0x1d58a3=a32_0x31a3,_0x302382=_0x56c7ee();while(!![]){try{const _0x1dfd87=-parseInt(_0x1d58a3(0xc4))/0x1+-parseInt(_0x1d58a3(0xc2))/0x2*(-parseInt(_0x1d58a3(0xb2))/0x3)+-parseInt(_0x1d58a3(0xc1))/0x4+parseInt(_0x1d58a3(0xc6))/0x5*(-parseInt(_0x1d58a3(0xd4))/0x6)+parseInt(_0x1d58a3(0xd3))/0x7*(-parseInt(_0x1d58a3(0xcb))/0x8)+-parseInt(_0x1d58a3(0xb9))/0x9+parseInt(_0x1d58a3(0xd2))/0xa*(parseInt(_0x1d58a3(0xb5))/0xb);if(_0x1dfd87===_0x417687)break;else _0x302382['push'](_0x302382['shift']());}catch(_0x551cc2){_0x302382['push'](_0x302382['shift']());}}}(a32_0x4480,0x3904c));import{logger}from'../utils/logger.js';import a32_0x4f7ab8 from'../i18n/index.js';const t=a32_0x4f7ab8['t'][a32_0x1152fc(0xc8)](a32_0x4f7ab8);export function showLogs(){const _0x36b8ae=a32_0x1152fc;logger[_0x36b8ae(0xb8)](process['cwd']());const _0x15c266=logger[_0x36b8ae(0xbc)]();if(_0x15c266[_0x36b8ae(0xcf)]===0x0){console[_0x36b8ae(0xd5)](t(_0x36b8ae(0xd1)));return;}console[_0x36b8ae(0xd5)](t(_0x36b8ae(0xb3))),_0x15c266[_0x36b8ae(0xba)]((_0x89a5f2,_0x409b6a)=>{const _0x2f925e=_0x36b8ae,_0x2d563c=a32_0x4f7ab8[_0x2f925e(0xc9)]===_0x2f925e(0xcc)?'zh-CN':'en-US',_0x2d16c1=new Date(_0x89a5f2[_0x2f925e(0xc7)])[_0x2f925e(0xbd)](_0x2d563c),_0x493e4f=_0x89a5f2[_0x2f925e(0xc0)]===_0x2f925e(0xce)?'√':_0x89a5f2[_0x2f925e(0xc0)]===_0x2f925e(0xd6)?'×':_0x89a5f2[_0x2f925e(0xc0)]===_0x2f925e(0xd7)?'!':'i';console[_0x2f925e(0xd5)](_0x409b6a+0x1+'.\x20'+_0x493e4f+'\x20['+_0x89a5f2[_0x2f925e(0xb6)]+']\x20'+_0x89a5f2[_0x2f925e(0xbb)]),console[_0x2f925e(0xd5)](t(_0x2f925e(0xca),{'time':_0x2d16c1})),_0x89a5f2[_0x2f925e(0xd0)]&&console['log'](t(_0x2f925e(0xbf),{'duration':_0x89a5f2[_0x2f925e(0xd0)]})),_0x89a5f2['details']&&Object[_0x2f925e(0xc3)](_0x89a5f2[_0x2f925e(0xb4)])['length']>0x0&&console[_0x2f925e(0xd5)](t(_0x2f925e(0xb7),{'details':JSON[_0x2f925e(0xbe)](_0x89a5f2['details'],null,0x2)})),console[_0x2f925e(0xd5)]('');});}function a32_0x31a3(_0x44d66c,_0x401b4a){_0x44d66c=_0x44d66c-0xb2;const _0x448022=a32_0x4480();let _0x31a39e=_0x448022[_0x44d66c];return _0x31a39e;}export function clearLogs(){const _0xc006da=a32_0x1152fc;logger[_0xc006da(0xb8)](process[_0xc006da(0xcd)]()),logger['clearLogs'](),console[_0xc006da(0xd5)](t(_0xc006da(0xc5)));}
@@ -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 a33_0x12db(_0xba1d27,_0x3349a1){_0xba1d27=_0xba1d27-0x1c9;const _0x46b2a7=a33_0x46b2();let _0x12db5b=_0x46b2a7[_0xba1d27];return _0x12db5b;}(function(_0x45ec78,_0x26dfd5){const _0x5f2629=a33_0x12db,_0x3e9f49=_0x45ec78();while(!![]){try{const _0x5d45a4=parseInt(_0x5f2629(0x1e3))/0x1+parseInt(_0x5f2629(0x1e5))/0x2*(parseInt(_0x5f2629(0x1cb))/0x3)+parseInt(_0x5f2629(0x1c9))/0x4+-parseInt(_0x5f2629(0x1e2))/0x5+-parseInt(_0x5f2629(0x1db))/0x6*(-parseInt(_0x5f2629(0x1d7))/0x7)+-parseInt(_0x5f2629(0x1e0))/0x8*(parseInt(_0x5f2629(0x1d9))/0x9)+-parseInt(_0x5f2629(0x1cd))/0xa*(parseInt(_0x5f2629(0x1de))/0xb);if(_0x5d45a4===_0x26dfd5)break;else _0x3e9f49['push'](_0x3e9f49['shift']());}catch(_0x486ca2){_0x3e9f49['push'](_0x3e9f49['shift']());}}}(a33_0x46b2,0xbd02e));function a33_0x46b2(){const _0x41d27a=['20304lhorOi','vite\x20preview','5892690GeBoPF','809452BCCenu','.bin','5808aDQouu','4846216oUjSqK','close','546JugPKb','预览服务器启动成功','423350yuMVUs','预览服务器启动出错','预览服务器启动失败','trim','preview','vite','inherit','PATH','success','now','168hJpcnX','node_modules','4374oHbFcf','info','307338oXerhF','error','env','154IdvRvG','cwd'];a33_0x46b2=function(){return _0x41d27a;};return a33_0x46b2();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x324532,_0x4c29f2)=>{const _0x38da9b=a33_0x12db,_0x1c14a5=Date['now']();logger[_0x38da9b(0x1da)]('preview','启动预览服务器',{'command':_0x38da9b(0x1e1)});let _0x5a34ca='';const _0x44bdde=spawn(_0x38da9b(0x1d2),['preview'],{'stdio':[_0x38da9b(0x1d3),_0x38da9b(0x1d3),'pipe'],'shell':!![],'env':{...process[_0x38da9b(0x1dd)],'PATH':''+join(process[_0x38da9b(0x1df)](),_0x38da9b(0x1d8),_0x38da9b(0x1e4))+delimiter+process[_0x38da9b(0x1dd)][_0x38da9b(0x1d4)]}});_0x44bdde['stderr']?.['on']('data',_0x5b864e=>{_0x5a34ca+=_0x5b864e['toString']();}),_0x44bdde['on'](_0x38da9b(0x1ca),_0xb17db8=>{const _0x1dfb24=_0x38da9b,_0x30ce03=Date[_0x1dfb24(0x1d6)]()-_0x1c14a5;if(_0xb17db8===0x0||_0xb17db8===null)logger[_0x1dfb24(0x1d5)](_0x1dfb24(0x1d1),_0x1dfb24(0x1cc),_0x30ce03),_0x324532();else{const _0x744ab4={'exitCode':_0xb17db8,'duration':_0x30ce03,'command':_0x1dfb24(0x1e1),'cwd':process[_0x1dfb24(0x1df)]()};_0x5a34ca[_0x1dfb24(0x1d0)]()&&(_0x744ab4['stderr']=_0x5a34ca[_0x1dfb24(0x1d0)]()),logger[_0x1dfb24(0x1dc)](_0x1dfb24(0x1d1),_0x1dfb24(0x1cf),_0x744ab4),_0x4c29f2(new Error('vite\x20preview\x20exited\x20with\x20code\x20'+_0xb17db8));}}),_0x44bdde['on'](_0x38da9b(0x1dc),_0x38b7ad=>{const _0x3bca9c=_0x38da9b,_0x307d92=Date[_0x3bca9c(0x1d6)]()-_0x1c14a5;logger[_0x3bca9c(0x1dc)](_0x3bca9c(0x1d1),_0x3bca9c(0x1ce),{'error':_0x38b7ad['message'],'duration':_0x307d92,'stderr':_0x5a34ca[_0x3bca9c(0x1d0)]()||undefined}),_0x4c29f2(_0x38b7ad);});});}
@@ -0,0 +1 @@
1
+ (function(_0x20b3bb,_0x368796){const _0x2c00c0=a34_0x524b,_0x3e03b5=_0x20b3bb();while(!![]){try{const _0x59dcb2=-parseInt(_0x2c00c0(0x1d3))/0x1+-parseInt(_0x2c00c0(0x1c4))/0x2+-parseInt(_0x2c00c0(0x1dd))/0x3*(-parseInt(_0x2c00c0(0x1cf))/0x4)+-parseInt(_0x2c00c0(0x1ce))/0x5*(-parseInt(_0x2c00c0(0x1cd))/0x6)+-parseInt(_0x2c00c0(0x1c7))/0x7+parseInt(_0x2c00c0(0x1d0))/0x8*(parseInt(_0x2c00c0(0x1d2))/0x9)+parseInt(_0x2c00c0(0x1c1))/0xa;if(_0x59dcb2===_0x368796)break;else _0x3e03b5['push'](_0x3e03b5['shift']());}catch(_0x43c54a){_0x3e03b5['push'](_0x3e03b5['shift']());}}}(a34_0x11e3,0xf3392));import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';function a34_0x11e3(){const _0x9f2f85=['version','timedOut','object','1103247Kanypo','env','开发服务器启动失败','now','22420680MOcKJT','needsUpgrade','inherit','3001598ndZQsm','stderr','CLI\x20版本有更新','7970718PvrrSU','message','exitCode','cwd','vite','stableVersion','24GeZEmW','528545zMiKvB','16TcAkpM','94104aCcYEa','error','1017CiBsDq','1829404NBAuCK','warn','start','success','currentVersion','开发服务器启动成功','timeout'];a34_0x11e3=function(){return _0x9f2f85;};return a34_0x11e3();}function a34_0x524b(_0x1e4761,_0x163c82){_0x1e4761=_0x1e4761-0x1c0;const _0x11e341=a34_0x11e3();let _0x524b8e=_0x11e341[_0x1e4761];return _0x524b8e;}export async function runStart(_0x5daf25){const _0x4dee1a=a34_0x524b,_0xfe930d=Date[_0x4dee1a(0x1c0)](),_0x31bafa=_0x5daf25||process[_0x4dee1a(0x1ca)](),_0x5eb958=await checkCliVersion();_0x5eb958[_0x4dee1a(0x1c2)]&&(printCliUpgradeWarning(_0x5eb958),logger[_0x4dee1a(0x1d4)]('start',_0x4dee1a(0x1c6),{'currentVersion':_0x5eb958[_0x4dee1a(0x1d7)],'stableVersion':_0x5eb958[_0x4dee1a(0x1cc)]}));const _0x23486f=await checkSdkVersion(_0x31bafa);_0x23486f['needsUpgrade']&&(printSdkUpgradeWarning(_0x23486f),logger[_0x4dee1a(0x1d4)](_0x4dee1a(0x1d5),'SDK\x20版本有更新',{'currentVersion':_0x23486f[_0x4dee1a(0x1da)],'stableVersion':_0x23486f['stableVersion']}));logger['info']('start','启动开发服务器',{'command':_0x4dee1a(0x1cb),'cwd':_0x31bafa});try{await execa(_0x4dee1a(0x1cb),[],{'cwd':_0x31bafa,'stdio':_0x4dee1a(0x1c3),'preferLocal':!![],'localDir':_0x31bafa,'env':{...process[_0x4dee1a(0x1de)]}});const _0x54b802=Date[_0x4dee1a(0x1c0)]()-_0xfe930d;logger[_0x4dee1a(0x1d6)](_0x4dee1a(0x1d5),_0x4dee1a(0x1d8),_0x54b802);}catch(_0x344b57){const _0x3e3190=Date[_0x4dee1a(0x1c0)]()-_0xfe930d,_0xd17458={'duration':_0x3e3190,'command':_0x4dee1a(0x1cb),'cwd':_0x31bafa};if(_0x344b57&&typeof _0x344b57===_0x4dee1a(0x1dc)){const _0x1f074d=_0x344b57;_0x1f074d[_0x4dee1a(0x1c9)]!==undefined&&(_0xd17458[_0x4dee1a(0x1c9)]=_0x1f074d[_0x4dee1a(0x1c9)]),_0x1f074d[_0x4dee1a(0x1c5)]&&(_0xd17458[_0x4dee1a(0x1c5)]=_0x1f074d['stderr']),_0x1f074d[_0x4dee1a(0x1db)]&&(_0xd17458[_0x4dee1a(0x1d9)]=!![]),_0x1f074d[_0x4dee1a(0x1c8)]&&(_0xd17458[_0x4dee1a(0x1d1)]=_0x1f074d[_0x4dee1a(0x1c8)]);}logger[_0x4dee1a(0x1d1)](_0x4dee1a(0x1d5),_0x4dee1a(0x1df),_0xd17458);throw _0x344b57;}}
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(_0x579ca5,_0x511803){const _0x2e4ea5=a35_0x3a3d,_0x36404f=_0x579ca5();while(!![]){try{const _0x184ea0=-parseInt(_0x2e4ea5(0xa2))/0x1+-parseInt(_0x2e4ea5(0x8d))/0x2+parseInt(_0x2e4ea5(0x91))/0x3+parseInt(_0x2e4ea5(0x9e))/0x4+-parseInt(_0x2e4ea5(0x8a))/0x5*(parseInt(_0x2e4ea5(0x92))/0x6)+parseInt(_0x2e4ea5(0x96))/0x7+-parseInt(_0x2e4ea5(0x8e))/0x8*(-parseInt(_0x2e4ea5(0x99))/0x9);if(_0x184ea0===_0x511803)break;else _0x36404f['push'](_0x36404f['shift']());}catch(_0x26ba77){_0x36404f['push'](_0x36404f['shift']());}}}(a35_0x22a9,0xf3f93));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 a35_0x22a9(){const _0x22421c=['16kvcNTj','开发服务器启动成功','stderr','2543253RMyPyA','12OdKCSM','version','currentVersion','stableVersion','13343827qXfeiu','timeout','warn','1702926PVtkZs','start','message','vite','needsUpgrade','4356124puHPhe','info','now','CLI\x20版本有更新','367542beXMDe','success','env','exitCode','object','timedOut','开发服务器启动失败','error','4134635ScvCeI','inherit','启动开发服务器','2401520SSGFdP'];a35_0x22a9=function(){return _0x22421c;};return a35_0x22a9();}import{execa}from'execa';function a35_0x3a3d(_0x8880e4,_0x54db36){_0x8880e4=_0x8880e4-0x88;const _0x22a98f=a35_0x22a9();let _0x3a3d6f=_0x22a98f[_0x8880e4];return _0x3a3d6f;}export async function runStart(_0x4efed2){const _0x83d77=a35_0x3a3d,_0x538bd1=Date[_0x83d77(0xa0)](),_0x325ba1=_0x4efed2||process['cwd'](),_0x4a2da9=await checkCliVersion();_0x4a2da9[_0x83d77(0x9d)]&&(printCliUpgradeWarning(_0x4a2da9),logger[_0x83d77(0x98)](_0x83d77(0x9a),_0x83d77(0xa1),{'currentVersion':_0x4a2da9[_0x83d77(0x94)],'stableVersion':_0x4a2da9[_0x83d77(0x95)]}));const _0x122932=await checkSdkVersion(_0x325ba1);_0x122932[_0x83d77(0x9d)]&&(printSdkUpgradeWarning(_0x122932),logger[_0x83d77(0x98)]('start','SDK\x20版本有更新',{'currentVersion':_0x122932[_0x83d77(0x93)],'stableVersion':_0x122932[_0x83d77(0x95)]}));logger[_0x83d77(0x9f)](_0x83d77(0x9a),_0x83d77(0x8c),{'command':_0x83d77(0x9c),'cwd':_0x325ba1});try{await execa('vite',[],{'cwd':_0x325ba1,'stdio':_0x83d77(0x8b),'preferLocal':!![],'localDir':_0x325ba1,'env':{...process[_0x83d77(0xa4)]}});const _0x4a5a75=Date[_0x83d77(0xa0)]()-_0x538bd1;logger[_0x83d77(0xa3)](_0x83d77(0x9a),_0x83d77(0x8f),_0x4a5a75);}catch(_0x330a1c){const _0x2dd47f=Date[_0x83d77(0xa0)]()-_0x538bd1,_0xbe4892={'duration':_0x2dd47f,'command':_0x83d77(0x9c),'cwd':_0x325ba1};if(_0x330a1c&&typeof _0x330a1c===_0x83d77(0xa6)){const _0x5c75c0=_0x330a1c;_0x5c75c0[_0x83d77(0xa5)]!==undefined&&(_0xbe4892[_0x83d77(0xa5)]=_0x5c75c0[_0x83d77(0xa5)]),_0x5c75c0[_0x83d77(0x90)]&&(_0xbe4892[_0x83d77(0x90)]=_0x5c75c0[_0x83d77(0x90)]),_0x5c75c0[_0x83d77(0xa7)]&&(_0xbe4892[_0x83d77(0x97)]=!![]),_0x5c75c0[_0x83d77(0x9b)]&&(_0xbe4892['error']=_0x5c75c0['message']);}logger[_0x83d77(0x89)]('start',_0x83d77(0x88),_0xbe4892);throw _0x330a1c;}}
@@ -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(_0xae5d40,_0x1a3bdb){const _0x36b0f0=a36_0x168f,_0x53b66a=_0xae5d40();while(!![]){try{const _0x5a52db=parseInt(_0x36b0f0(0xae))/0x1+parseInt(_0x36b0f0(0xb2))/0x2+parseInt(_0x36b0f0(0xb1))/0x3+parseInt(_0x36b0f0(0xa9))/0x4+-parseInt(_0x36b0f0(0xb0))/0x5+-parseInt(_0x36b0f0(0xa8))/0x6+-parseInt(_0x36b0f0(0xb6))/0x7;if(_0x5a52db===_0x1a3bdb)break;else _0x53b66a['push'](_0x53b66a['shift']());}catch(_0x4adc4d){_0x53b66a['push'](_0x53b66a['shift']());}}}(a36_0x42fe,0x68ecc));import{jsxs as a36_0x50130f,jsx as a36_0x32ca4a}from'react/jsx-runtime';function a36_0x42fe(){const _0x4175a0=['config.help.examples','config.help.exampleLocale','177001GYTnAN','map','1621650xrRTmE','1800189DPOqoM','1221560kKHJUf','config.help.set','command','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','1696548lxaZLn','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','config.help.get','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','gray','\x20\x20\x20\x20','column','3629658OYnmvV','854260amQWdC','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description'];a36_0x42fe=function(){return _0x4175a0;};return a36_0x42fe();}function a36_0x168f(_0x3e1724,_0x5babbf){_0x3e1724=_0x3e1724-0xa8;const _0x42fe80=a36_0x42fe();let _0x168f2c=_0x42fe80[_0x3e1724];return _0x168f2c;}import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';export function ConfigHelp(){const _0x150c56=a36_0x168f,{t:_0x521b96}=useI18n(),_0x2f9071=[{'command':_0x150c56(0xb9),'description':_0x521b96(_0x150c56(0xb3))},{'command':'lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x521b96(_0x150c56(0xb8))},{'command':_0x150c56(0xb7),'description':_0x521b96('config.help.list')}],_0x544dd7=[{'command':_0x150c56(0xaa),'description':_0x521b96('config.help.exampleApp')},{'command':'lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','description':_0x521b96('config.help.exampleEnv')},{'command':_0x150c56(0xb5),'description':_0x521b96(_0x150c56(0xad))}];return a36_0x50130f(Box,{'flexDirection':_0x150c56(0xbc),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0x32ca4a(Box,{'marginBottom':0x1,'children':a36_0x50130f(Text,{'color':_0x150c56(0xba),'children':['\x20','!','\x20\x20',_0x521b96('config.help.invalidCommand')]})}),_0x2f9071[_0x150c56(0xaf)](_0x502b17=>a36_0x50130f(Box,{'children':[a36_0x50130f(Text,{'children':[_0x150c56(0xbb),_0x502b17['command']]}),a36_0x32ca4a(Text,{'color':'gray','children':_0x502b17[_0x150c56(0xab)]})]},_0x502b17[_0x150c56(0xb4)])),a36_0x32ca4a(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0x50130f(Text,{'color':_0x150c56(0xba),'children':['\x20*\x20',_0x521b96(_0x150c56(0xac))]})}),_0x544dd7['map'](_0x56fb96=>a36_0x50130f(Box,{'children':[a36_0x50130f(Text,{'children':[_0x150c56(0xbb),_0x56fb96['command']]}),a36_0x32ca4a(Text,{'color':'gray','children':_0x56fb96['description']})]},_0x56fb96[_0x150c56(0xb4)]))]});}
@@ -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(_0x316bcf,_0x23327c){const _0x191e5e=a37_0x2252,_0x4c24c4=_0x316bcf();while(!![]){try{const _0xa5111a=-parseInt(_0x191e5e(0x86))/0x1+-parseInt(_0x191e5e(0x8b))/0x2+-parseInt(_0x191e5e(0x75))/0x3*(-parseInt(_0x191e5e(0x81))/0x4)+-parseInt(_0x191e5e(0x66))/0x5+-parseInt(_0x191e5e(0x7b))/0x6+parseInt(_0x191e5e(0x74))/0x7*(-parseInt(_0x191e5e(0x80))/0x8)+-parseInt(_0x191e5e(0x6c))/0x9*(-parseInt(_0x191e5e(0x64))/0xa);if(_0xa5111a===_0x23327c)break;else _0x4c24c4['push'](_0x4c24c4['shift']());}catch(_0x3a6f87){_0x4c24c4['push'](_0x4c24c4['shift']());}}}(a37_0x33f7,0x4abd9));import{jsx as a37_0x5c9af5,jsxs as a37_0x3c02fc}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x211728 from'node:fs';import a37_0x271f1a 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';function a37_0x33f7(){const _0x11768a=['set','app','config.scope.project','1750254DomBkn','get','config.scope.global','includes','red','37736jaAMYN','67296mMWdnG','locale','log','help','.tmp','572968gelTrl','list','appcode','config.success.localeSet','online','914638QJGjXU','config.validation.valueInvalid','flags','config','daily','unlinkSync','10hwyBrm','length','1836120aObyTV','env','error','config.validation.localeInvalid','parse','config.validation.envInvalid','14743098miNHjn','stringify','保存配置失败','undefined','config.success.envSet','input','utf8','message','119dSivat','78aluyeJ','config.validation.saveFailed','mkdirSync'];a37_0x33f7=function(){return _0x11768a;};return a37_0x33f7();}import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';function a37_0x2252(_0x40ee61,_0x508091){_0x40ee61=_0x40ee61-0x64;const _0x33f7d6=a37_0x33f7();let _0x225288=_0x33f7d6[_0x40ee61];return _0x225288;}export function Config(_0x20ba9){const _0x2cd33c=a37_0x2252,{cli:_0x3a50f4}=_0x20ba9,{t:_0x1fdfb5}=useI18n(),_0x5942ed=_0x3a50f4[_0x2cd33c(0x71)][0x1],_0x3d8ac9=_0x3a50f4[_0x2cd33c(0x71)][0x2],_0x1a5c3b=[_0x2cd33c(0x78),_0x2cd33c(0x7c)]['includes'](_0x5942ed||''),_0x40f78d=_0x3a50f4['input'][_0x2cd33c(0x65)]>=0x3;if(_0x3d8ac9==='--help'||_0x3a50f4[_0x2cd33c(0x8d)][_0x2cd33c(0x84)])return a37_0x5c9af5(ConfigHelp,{});const _0x268155=readConfig();if(_0x5942ed===_0x2cd33c(0x78)){if(_0x3d8ac9){const _0x5cb23a=_0x3a50f4[_0x2cd33c(0x71)][0x3];if(typeof _0x5cb23a!==_0x2cd33c(0x6f)){if(_0x3d8ac9===_0x2cd33c(0x67)&&![_0x2cd33c(0x8a),_0x2cd33c(0x8f)][_0x2cd33c(0x7e)](_0x5cb23a))return a37_0x5c9af5(Box,{'children':a37_0x5c9af5(Text,{'color':'red','children':_0x1fdfb5(_0x2cd33c(0x6b))})});if(_0x3d8ac9===_0x2cd33c(0x82)&&!normalizeLocale(_0x5cb23a))return a37_0x5c9af5(Box,{'flexDirection':'column','children':a37_0x5c9af5(Text,{'color':_0x2cd33c(0x7f),'children':_0x1fdfb5(_0x2cd33c(0x69))})});const _0x5afe4a=isInProject(),_0x47b2ef=_0x5afe4a?projectConfigPath:globalConfigPath;let _0x7c32e={};try{if(existsSync(_0x47b2ef)){const _0x2b95ca=readFileSync(_0x47b2ef,{'encoding':_0x2cd33c(0x72)});_0x2b95ca&&(_0x7c32e=JSON[_0x2cd33c(0x6a)](_0x2b95ca));}}catch(_0x2af890){}if(typeof _0x5cb23a!=='string'||_0x5cb23a['length']>0x1f4)return a37_0x5c9af5(Box,{'children':a37_0x5c9af5(Text,{'color':'red','children':_0x1fdfb5(_0x2cd33c(0x8c))})});let _0x5a2f57=_0x3d8ac9,_0x332656=_0x5cb23a;_0x3d8ac9==='app'&&(_0x5a2f57=_0x2cd33c(0x88),delete _0x7c32e[_0x2cd33c(0x79)]);_0x3d8ac9===_0x2cd33c(0x88)&&delete _0x7c32e[_0x2cd33c(0x79)];_0x3d8ac9===_0x2cd33c(0x82)&&(_0x332656=normalizeLocale(_0x5cb23a));_0x7c32e[_0x5a2f57]=_0x332656;try{const _0x4c079d=a37_0x271f1a['dirname'](_0x47b2ef);!existsSync(_0x4c079d)&&a37_0x211728[_0x2cd33c(0x77)](_0x4c079d,{'recursive':!![]});const _0x3c9c32=_0x47b2ef+_0x2cd33c(0x85);writeFileSync(_0x3c9c32,JSON[_0x2cd33c(0x6d)](_0x7c32e,null,0x2),{'encoding':_0x2cd33c(0x72),'mode':0x180}),a37_0x211728['renameSync'](_0x3c9c32,_0x47b2ef);const _0x392fea=_0x1fdfb5(_0x5afe4a?_0x2cd33c(0x7a):_0x2cd33c(0x7d));_0x3d8ac9==='env'&&console[_0x2cd33c(0x83)](_0x1fdfb5(_0x2cd33c(0x70),{'scope':_0x392fea,'value':_0x5cb23a}));if(_0x3d8ac9===_0x2cd33c(0x82)){const _0x248b5b=normalizeLocale(_0x5cb23a);console[_0x2cd33c(0x83)](_0x1fdfb5(_0x2cd33c(0x89),{'scope':_0x392fea,'value':_0x248b5b}));}}catch(_0x3e87f0){const _0xdd981e=_0x47b2ef+'.tmp';try{existsSync(_0xdd981e)&&a37_0x211728[_0x2cd33c(0x90)](_0xdd981e);}catch(_0x5005be){}return logger[_0x2cd33c(0x68)](_0x2cd33c(0x8e),_0x2cd33c(0x6e),{'error':_0x3e87f0 instanceof Error?_0x3e87f0[_0x2cd33c(0x73)]:String(_0x3e87f0),'configKey':_0x3d8ac9,'configValue':_0x5cb23a,'targetConfigPath':_0x47b2ef}),a37_0x5c9af5(Box,{'children':a37_0x3c02fc(Text,{'color':'red','children':[_0x1fdfb5(_0x2cd33c(0x76)),':','\x20',_0x3e87f0 instanceof Error?_0x3e87f0[_0x2cd33c(0x73)]:String(_0x3e87f0)]})});}return null;}return a37_0x5c9af5(Box,{'children':a37_0x5c9af5(Text,{'color':_0x2cd33c(0x7f),'children':_0x1fdfb5('config.validation.noValue')})});}}if(_0x5942ed==='get'){if(_0x3d8ac9){let _0x2f04a3=_0x3d8ac9;return _0x3d8ac9===_0x2cd33c(0x79)&&(_0x2f04a3='appcode'),console[_0x2cd33c(0x83)](_0x268155[_0x2f04a3]||_0x2cd33c(0x6f)),null;}return null;}if(_0x5942ed===_0x2cd33c(0x87))return console['log'](JSON[_0x2cd33c(0x6d)](_0x268155,null,0x2)),null;if(!_0x1a5c3b||!_0x40f78d)return a37_0x5c9af5(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
+ const a38_0x144ece=a38_0x3a5a;function a38_0x3a5a(_0x420812,_0x3a299f){_0x420812=_0x420812-0xf8;const _0x319c34=a38_0x319c();let _0x3a5a0a=_0x319c34[_0x420812];return _0x3a5a0a;}(function(_0x105a4e,_0x1f20c9){const _0x5851e4=a38_0x3a5a,_0x828ea3=_0x105a4e();while(!![]){try{const _0x4cf0fd=parseInt(_0x5851e4(0xfd))/0x1+-parseInt(_0x5851e4(0xf9))/0x2*(parseInt(_0x5851e4(0xfc))/0x3)+-parseInt(_0x5851e4(0xff))/0x4+-parseInt(_0x5851e4(0x102))/0x5+-parseInt(_0x5851e4(0x103))/0x6*(-parseInt(_0x5851e4(0xfb))/0x7)+-parseInt(_0x5851e4(0x100))/0x8+parseInt(_0x5851e4(0xfa))/0x9;if(_0x4cf0fd===_0x1f20c9)break;else _0x828ea3['push'](_0x828ea3['shift']());}catch(_0xf499b6){_0x828ea3['push'](_0x828ea3['shift']());}}}(a38_0x319c,0xe5c0a));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x144ece(0x101)?a38_0x144ece(0xfe):a38_0x144ece(0x104);export const getApiDomain=()=>getEnv()==='online'?a38_0x144ece(0xf8):'https://daily-api.lovrabet.com';function a38_0x319c(){const _0x5d4976=['https://api.lovrabet.com','8598rFtqTY','10684134VNcirB','85414vBUJPz','687RRFwMk','1510907gNTyyS','https://user.lovrabet.com','4584332mcHjpX','10975424IqvoEW','online','240895sMCjRe','882yuzrwk','https://user-daily.lovrabet.com'];a38_0x319c=function(){return _0x5d4976;};return a38_0x319c();}
@@ -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_0xa08c0f=a39_0x351d;function a39_0x23f3(){const _0x10541e=['13316256zUBKwe','5pUvzAF','56532qvsxQJ','54651jbcPAb','10DERphK','18YoeAxB','969038mAkkEg','LOVRABET_ENV','2319796FZCXth','env','5898954OlzhRm','6821568oGsvHI'];a39_0x23f3=function(){return _0x10541e;};return a39_0x23f3();}(function(_0x58362f,_0x25e35f){const _0x37049b=a39_0x351d,_0x27ef41=_0x58362f();while(!![]){try{const _0x37d53b=parseInt(_0x37049b(0x171))/0x1+-parseInt(_0x37049b(0x174))/0x2*(parseInt(_0x37049b(0x172))/0x3)+-parseInt(_0x37049b(0x177))/0x4+parseInt(_0x37049b(0x170))/0x5*(-parseInt(_0x37049b(0x16d))/0x6)+-parseInt(_0x37049b(0x175))/0x7+parseInt(_0x37049b(0x16e))/0x8+parseInt(_0x37049b(0x16f))/0x9*(parseInt(_0x37049b(0x173))/0xa);if(_0x37d53b===_0x25e35f)break;else _0x27ef41['push'](_0x27ef41['shift']());}catch(_0x2e85b6){_0x27ef41['push'](_0x27ef41['shift']());}}}(a39_0x23f3,0x7fc35));let env=process[a39_0xa08c0f(0x178)][a39_0xa08c0f(0x176)]||'online';function a39_0x351d(_0x2a040c,_0x3bee93){_0x2a040c=_0x2a040c-0x16d;const _0x23f328=a39_0x23f3();let _0x351d0d=_0x23f328[_0x2a040c];return _0x351d0d;}export function getEnv(){return env;}export function initEnv(_0x340925){env=_0x340925;}
@@ -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_0x3b9849=a40_0x35ea;(function(_0x299491,_0x3c9099){const _0x41bbf7=a40_0x35ea,_0x4ac2d5=_0x299491();while(!![]){try{const _0xc5aeb7=parseInt(_0x41bbf7(0x202))/0x1+parseInt(_0x41bbf7(0x1f0))/0x2+parseInt(_0x41bbf7(0x207))/0x3+parseInt(_0x41bbf7(0x1cf))/0x4*(parseInt(_0x41bbf7(0x1d8))/0x5)+parseInt(_0x41bbf7(0x208))/0x6*(parseInt(_0x41bbf7(0x213))/0x7)+-parseInt(_0x41bbf7(0x1d3))/0x8+-parseInt(_0x41bbf7(0x1d2))/0x9;if(_0xc5aeb7===_0x3c9099)break;else _0x4ac2d5['push'](_0x4ac2d5['shift']());}catch(_0xd34edc){_0x4ac2d5['push'](_0x4ac2d5['shift']());}}}(a40_0x5697,0x97e98));function a40_0x5697(){const _0x41f167=['create.steps.login.failed','description','17049555KNcvTb','6035656EIlVMR','create.validation.projectName.dirExistsShort','env','\x20←\x20','create.steps.appCode.label','685BktJEM','trim','login-process','online','column','green','create.steps.login.loggedIn','create.validation.appCode.invalid','length','create.validation.ide.required','create.lovrabetSetup.keyboardShortcuts','create.common.selectHint','create.steps.apiPull.label','create.login.valid','create.validation.projectName.tooLong','create.validation.projectName.invalidFormat','create.steps.lovrabetSetup.label','string','create.input.projectName.hint','create.steps.appCode.notSet','qoder','map','white','step','1515738aEoDaG','create.login.inProgress','resolve','lovrabet-setup','rightArrow','from','label','create.input.appCode.optional','leftArrow','create.input.appCode.label','create.lovrabetSetup.selectIdeTitle','create.input.projectName.label','login','[✓]','codebuddy','create.steps.login.label','create.creating','lovrabet-setup-selection','671460dSOEer','create.steps.lovrabetSetup.ideCount','cline','project-name','confirm-api-pull','1728492dTSKVn','1452yNwCHh','create.apiPull.recommendation','login-prompt','add','[\x20]','return','name','test','includes','agent','cwd','19453sQlARp','creating','Yes','opencode','downArrow','has','create.validation.projectName.dirExists','size','login-check','gray','yellow','create.lovrabetSetup.selectIdeHint','filter','value','create.login.inProgressStatus','cyan','app-code','create.common.yes','create.completedStep','codex','red','create.login.notDetected','antigravity','delete','upArrow','create.lovrabetSetup.confirm','blue','create.validation.projectName.invalid','create.apiPull.confirm','create.common.no','17316qIMryJ'];a40_0x5697=function(){return _0x41f167;};return a40_0x5697();}import{jsx as a40_0x49df4c,jsxs as a40_0x5b897b,Fragment as a40_0x33cf3a}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';import a40_0x561718 from'node:path';function a40_0x35ea(_0x1f1ba7,_0x11dae1){_0x1f1ba7=_0x1f1ba7-0x1cc;const _0x5697df=a40_0x5697();let _0x35ea0a=_0x5697df[_0x1f1ba7];return _0x35ea0a;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=[a40_0x3b9849(0x229),'claude',a40_0x3b9849(0x204),a40_0x3b9849(0x1fe),a40_0x3b9849(0x226),'cursor',a40_0x3b9849(0x216),a40_0x3b9849(0x1ec),'trae','windsurf',a40_0x3b9849(0x211)],UI_MCP_IDES=new Set(Array[a40_0x3b9849(0x1f5)](MCP_IDES));export function EnhancedGuidedCreate(_0x571161){const _0x33502d=a40_0x3b9849,{onCreate:_0x4a05b3,env:_0x17e97f}=_0x571161,{t:_0x54e27c}=useI18n(),[_0x2026c5,_0x34b838]=useState(_0x33502d(0x205)),[_0x36a1e9,_0x1127df]=useState(''),[_0x373e90,_0x2639e7]=useState(''),[_0x1babf2,_0xdf3492]=useState(''),[_0x3000e8,_0x4b2902]=useState(''),[_0x1fc4c0,_0x5b234e]=useState([]),[_0x1e83d3,_0x157fa9]=useState(null),[_0x1c81f4,_0x5c2ded]=useState(![]),[_0x96a14,_0xf8f73c]=useState(![]),[_0x372ed9,_0x162a3c]=useState(![]),[_0x111d2c,_0x2cc160]=useState(0x0),[_0x5d4273,_0x5f1a7c]=useState(0x0),[_0x492990,_0x5ed692]=useState(0x0),[_0x51a74c,_0x4a9c09]=useState(![]),[_0x2c2258,_0x27edbf]=useState(new Set()),[_0xfbc290,_0x154e4b]=useState(0x0),[_0x5865a6,_0xa6b8d5]=useState(''),_0x59aca9='my-app',_0x592923=readConfig(),_0x2ac146=typeof _0x592923[_0x33502d(0x1d5)]===_0x33502d(0x1e9)?_0x592923[_0x33502d(0x1d5)]:undefined;function _0x39b892(_0x3e2d0e){const _0x434d09=_0x33502d,_0x537876=_0x3e2d0e||_0x59aca9,_0x2025ae=a40_0x561718[_0x434d09(0x1f2)](process[_0x434d09(0x212)](),_0x537876);return existsSync(_0x2025ae);}function _0x50ca12(_0x2b0b02){const _0x42bdf7=_0x33502d;if(_0x2b0b02[_0x42bdf7(0x1e0)]>0x32)return{'valid':![],'message':_0x54e27c(_0x42bdf7(0x1e6))};const _0x4d14f2=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x2b0b02?.[_0x42bdf7(0x1d9)]()&&!_0x4d14f2[_0x42bdf7(0x20f)](_0x2b0b02))return{'valid':![],'message':_0x54e27c(_0x42bdf7(0x1e7))};return{'valid':!![]};}function _0x310414(_0x29d3ec){const _0x1fe35c=_0x33502d;if(!_0x29d3ec[_0x1fe35c(0x1d9)]())return{'valid':!![]};if(_0x29d3ec['length']>0x64)return{'valid':![],'message':_0x54e27c('create.validation.appCode.tooLong')};const _0x5b408b=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x5b408b['test'](_0x29d3ec))return{'valid':![],'message':_0x54e27c('create.validation.appCode.invalidFormat')};return{'valid':!![]};}async function _0x46abcd(){_0x5c2ded(!![]);try{const _0x3c0d2f=await getIsSessionValid();return _0x157fa9(_0x3c0d2f),_0x3c0d2f;}catch(_0x51b92b){return _0x157fa9(![]),![];}finally{_0x5c2ded(![]);}}async function _0x356083(){_0xf8f73c(!![]);try{const _0x4e9bc3=await authServer({'silent':!![]});return _0x157fa9(_0x4e9bc3),_0x4e9bc3;}catch(_0x26fad5){return _0x157fa9(![]),![];}finally{_0xf8f73c(![]);}}return useInput(async(_0x34b89e,_0x1c37e1)=>{const _0x428ae3=_0x33502d;if(_0x1c37e1[_0x428ae3(0x1f8)]||_0x1c37e1[_0x428ae3(0x1f4)]){if(_0x2026c5===_0x428ae3(0x206)){_0x2cc160(_0x2274fe=>_0x2274fe===0x0?0x1:0x0);return;}if(_0x2026c5===_0x428ae3(0x201)){if(!_0x51a74c){_0x5ed692(_0x3db158=>_0x3db158===0x0?0x1:0x0);return;}_0x4a9c09(![]);return;}if(_0x2026c5===_0x428ae3(0x20a)){_0x5f1a7c(_0x28f6ed=>_0x28f6ed===0x0?0x1:0x0);return;}}if(_0x2026c5==='lovrabet-setup-selection'&&_0x51a74c&&_0x492990===0x0){if(_0x1c37e1[_0x428ae3(0x22b)]){_0x154e4b(_0x52caa0=>_0x52caa0>0x0?_0x52caa0-0x1:UI_IDE_LIST[_0x428ae3(0x1e0)]-0x1);return;}if(_0x1c37e1[_0x428ae3(0x217)]){_0x154e4b(_0x5c30ce=>_0x5c30ce<UI_IDE_LIST[_0x428ae3(0x1e0)]-0x1?_0x5c30ce+0x1:0x0);return;}}if(_0x34b89e==='\x20'&&_0x2026c5===_0x428ae3(0x201)&&_0x51a74c&&_0x492990===0x0){_0x27edbf(_0x5ba147=>{const _0xaa055=new Set(_0x5ba147);return _0xaa055['has'](_0xfbc290)?_0xaa055['delete'](_0xfbc290):_0xaa055['add'](_0xfbc290),_0xaa055;}),_0x4b2902('');return;}if((_0x34b89e==='a'||_0x34b89e==='A')&&_0x2026c5===_0x428ae3(0x201)&&_0x51a74c&&_0x492990===0x0){_0x27edbf(new Set(UI_IDE_LIST[_0x428ae3(0x1ed)]((_0x5c212f,_0x59971a)=>_0x59971a))),_0x4b2902('');return;}if((_0x34b89e==='i'||_0x34b89e==='I'||_0x34b89e==='r'||_0x34b89e==='R')&&_0x2026c5===_0x428ae3(0x201)&&_0x51a74c&&_0x492990===0x0){_0x27edbf(_0x4d5bf6=>{const _0x12fa8b=_0x428ae3,_0x1da73d=new Set();for(let _0x520532=0x0;_0x520532<UI_IDE_LIST[_0x12fa8b(0x1e0)];_0x520532++){!_0x4d5bf6['has'](_0x520532)&&_0x1da73d[_0x12fa8b(0x20b)](_0x520532);}return _0x1da73d;});return;}if(_0x1c37e1[_0x428ae3(0x20d)]){if(_0x2026c5==='project-name'){const _0x30171e=_0x1babf2['trim']()||_0x59aca9;if(_0x3000e8)return;if(_0x39b892(_0x30171e)){_0xa6b8d5(_0x54e27c(_0x428ae3(0x219),{'name':_0x30171e}));return;}_0x1127df(_0x30171e),_0x5b234e([{'step':_0x428ae3(0x205),'label':_0x54e27c('create.steps.projectName.label'),'value':_0x30171e}]),_0xdf3492(''),_0x4b2902(''),_0xa6b8d5(''),_0x34b838('app-code');return;}if(_0x2026c5===_0x428ae3(0x223)){if(_0x3000e8)return;const _0x51eede=_0x1babf2[_0x428ae3(0x1d9)]();_0x2639e7(_0x51eede),_0x5b234e(_0x3a8b35=>[..._0x3a8b35,{'step':_0x428ae3(0x223),'label':_0x54e27c(_0x428ae3(0x1d7)),'value':_0x51eede||_0x54e27c(_0x428ae3(0x1eb))}]),_0xdf3492(''),_0x4b2902('');if(_0x51eede){_0x34b838(_0x428ae3(0x21b));const _0x1f1661=await _0x46abcd();_0x1f1661?_0x34b838(_0x428ae3(0x206)):_0x34b838(_0x428ae3(0x20a));}else{const _0x510b0b=_0x17e97f||_0x2ac146||_0x428ae3(0x1db);_0x4a05b3({'projectName':_0x36a1e9,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x510b0b}),_0x34b838(_0x428ae3(0x214));}return;}if(_0x2026c5===_0x428ae3(0x206)){const _0x1b6cf0=_0x111d2c===0x0;_0x162a3c(_0x1b6cf0),_0x5b234e(_0x48611a=>[..._0x48611a,{'step':'api-pull','label':_0x54e27c(_0x428ae3(0x1e4)),'value':_0x1b6cf0?_0x54e27c(_0x428ae3(0x224)):_0x54e27c(_0x428ae3(0x1ce))}]),_0x34b838(_0x428ae3(0x201));return;}if(_0x2026c5==='lovrabet-setup-selection'){if(!_0x51a74c){_0x4a9c09(!![]);if(_0x492990===0x1){_0x5b234e(_0xbe4e5=>[..._0xbe4e5,{'step':_0x428ae3(0x1f3),'label':_0x54e27c(_0x428ae3(0x1e8)),'value':_0x54e27c('create.common.no')}]);const _0x5a9ca1=_0x17e97f||_0x2ac146||_0x428ae3(0x1db);_0x4a05b3({'projectName':_0x36a1e9,'appCode':_0x373e90,'pullApi':_0x372ed9,'aiSetup':![],'selectedIDEs':[],'env':_0x5a9ca1}),_0x34b838(_0x428ae3(0x214));}return;}if(_0x2c2258[_0x428ae3(0x21a)]===0x0){_0x4b2902(_0x54e27c(_0x428ae3(0x1e1)));return;}const _0x1fe798=Array[_0x428ae3(0x1f5)](_0x2c2258)[_0x428ae3(0x1ed)](_0x52ffd5=>UI_IDE_LIST[_0x52ffd5])[_0x428ae3(0x21f)](_0x24c1ce=>_0x24c1ce!==undefined);_0x5b234e(_0x4804c5=>[..._0x4804c5,{'step':_0x428ae3(0x1f3),'label':_0x54e27c('create.steps.lovrabetSetup.label'),'value':_0x54e27c(_0x428ae3(0x203),{'count':_0x1fe798[_0x428ae3(0x1e0)]})}]);const _0x17d603=_0x17e97f||_0x2ac146||_0x428ae3(0x1db);_0x4a05b3({'projectName':_0x36a1e9,'appCode':_0x373e90,'pullApi':_0x372ed9,'aiSetup':!![],'selectedIDEs':_0x1fe798,'env':_0x17d603}),_0x34b838(_0x428ae3(0x214));return;}if(_0x2026c5===_0x428ae3(0x20a)){const _0x3b8ced=_0x5d4273===0x0;if(_0x3b8ced){_0x34b838(_0x428ae3(0x1da));const _0x484395=await _0x356083();_0x484395?(_0x5b234e(_0x1165df=>[..._0x1165df,{'step':_0x428ae3(0x1fc),'label':_0x54e27c(_0x428ae3(0x1ff)),'value':_0x54e27c(_0x428ae3(0x1de))}]),_0x34b838('confirm-api-pull')):(_0x5b234e(_0x4b8691=>[..._0x4b8691,{'step':_0x428ae3(0x1fc),'label':_0x54e27c('create.steps.login.label'),'value':_0x54e27c(_0x428ae3(0x1d0))}]),_0x34b838(_0x428ae3(0x201)));}else _0x5b234e(_0x2cbc75=>[..._0x2cbc75,{'step':'login','label':_0x54e27c(_0x428ae3(0x1ff)),'value':_0x54e27c('create.steps.login.skipped')}]),_0x34b838('lovrabet-setup-selection');return;}}if(_0x1c37e1['backspace']||_0x1c37e1[_0x428ae3(0x22a)]){_0xdf3492(_0x424430=>{const _0x801896=_0x428ae3,_0x48380e=_0x424430['slice'](0x0,-0x1);if(_0x2026c5===_0x801896(0x205)){const {valid:_0x8a8b62,message:_0xfc8041}=_0x50ca12(_0x48380e);_0x4b2902(_0x8a8b62?'':_0xfc8041||_0x54e27c(_0x801896(0x1cc)));if(_0x8a8b62&&!_0x3000e8){const _0x3d9808=_0x48380e||_0x59aca9;_0x39b892(_0x3d9808)?_0xa6b8d5(_0x54e27c(_0x801896(0x1d4),{'name':_0x3d9808})):_0xa6b8d5('');}}else{if(_0x2026c5==='app-code'){const {valid:_0x411e7f,message:_0x41b46d}=_0x310414(_0x48380e);_0x4b2902(_0x411e7f?'':_0x41b46d||_0x54e27c(_0x801896(0x1df)));}}return _0x48380e;});return;}if([_0x428ae3(0x214),_0x428ae3(0x21b),_0x428ae3(0x1da)][_0x428ae3(0x210)](_0x2026c5))return;if(_0x2026c5===_0x428ae3(0x206)||_0x2026c5===_0x428ae3(0x20a)||_0x2026c5===_0x428ae3(0x201))return;_0xdf3492(_0x20e384=>{const _0x4f875c=_0x428ae3,_0x2de2be=_0x20e384+_0x34b89e;if(_0x2026c5===_0x4f875c(0x205)){const {valid:_0x1f5b1f,message:_0x58d7f6}=_0x50ca12(_0x2de2be);_0x4b2902(_0x1f5b1f?'':_0x58d7f6||_0x54e27c(_0x4f875c(0x1cc)));if(_0x1f5b1f&&!_0x3000e8){const _0x5a44e5=_0x2de2be||_0x59aca9;_0x39b892(_0x5a44e5)?_0xa6b8d5(_0x54e27c(_0x4f875c(0x1d4),{'name':_0x5a44e5})):_0xa6b8d5('');}}else{if(_0x2026c5===_0x4f875c(0x223)){const {valid:_0x13eaba,message:_0x37b613}=_0x310414(_0x2de2be);_0x4b2902(_0x13eaba?'':_0x37b613||_0x54e27c(_0x4f875c(0x1df)));}}return _0x2de2be;});}),a40_0x5b897b(Box,{'flexDirection':'column','marginTop':0x1,'children':[_0x1fc4c0[_0x33502d(0x1e0)]===0x0&&a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x222),'children':_0x54e27c('create.title')})}),_0x1fc4c0[_0x33502d(0x1ed)](_0x50cacc=>a40_0x5b897b(Box,{'children':[a40_0x49df4c(Text,{'color':_0x33502d(0x1dd),'children':_0x54e27c(_0x33502d(0x225),{'label':_0x50cacc[_0x33502d(0x1f6)]})}),a40_0x49df4c(Text,{'color':_0x33502d(0x222),'children':_0x50cacc[_0x33502d(0x220)]})]},_0x50cacc[_0x33502d(0x1ef)])),_0x2026c5===_0x33502d(0x205)&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x5b897b(Box,{'children':[a40_0x49df4c(Text,{'children':_0x54e27c(_0x33502d(0x1fb))}),_0x1babf2?a40_0x49df4c(Text,{'color':_0x33502d(0x1dd),'children':_0x1babf2}):a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x59aca9}),_0x3000e8&&a40_0x5b897b(Text,{'color':_0x33502d(0x227),'children':[_0x33502d(0x1d6),_0x3000e8]}),_0x5865a6&&a40_0x5b897b(Text,{'color':_0x33502d(0x227),'children':[_0x33502d(0x1d6),_0x5865a6]})]}),!_0x3000e8&&!_0x5865a6&&!_0x1babf2&&a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1ea))})})]}),_0x2026c5===_0x33502d(0x223)&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x5b897b(Box,{'children':[a40_0x49df4c(Text,{'children':_0x54e27c(_0x33502d(0x1f9))}),a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1f7))}),a40_0x49df4c(Text,{'color':'green','children':_0x1babf2}),_0x3000e8&&a40_0x5b897b(Text,{'color':'red','children':[_0x33502d(0x1d6),_0x3000e8]})]}),!_0x3000e8&&a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':'gray','children':_0x54e27c('create.input.appCode.hint')})})]}),_0x2026c5===_0x33502d(0x21b)&&a40_0x5b897b(Box,{'children':[a40_0x49df4c(Text,{'children':_0x54e27c('create.login.checking')}),_0x1c81f4&&a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c('create.login.checkingStatus')})]}),_0x2026c5===_0x33502d(0x206)&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x1dd),'children':_0x54e27c(_0x33502d(0x1e5))})}),a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'children':_0x54e27c(_0x33502d(0x1cd))})}),a40_0x5b897b(Box,{'marginLeft':0x2,'children':[a40_0x5b897b(Text,{'color':_0x111d2c===0x0?'green':_0x33502d(0x21c),'children':[_0x111d2c===0x0?'▶\x20':'\x20\x20',_0x33502d(0x215)]}),a40_0x49df4c(Text,{'children':'\x20'}),a40_0x5b897b(Text,{'color':_0x111d2c===0x1?'green':'gray','children':[_0x111d2c===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1e3))})}),a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':'yellow','children':_0x54e27c(_0x33502d(0x209))})})]}),_0x2026c5===_0x33502d(0x201)&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x1dd),'children':'√'})}),a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'children':_0x54e27c(_0x33502d(0x22c))})}),a40_0x5b897b(Box,{'marginLeft':0x2,'children':[a40_0x5b897b(Text,{'color':_0x492990===0x0?_0x33502d(0x1dd):_0x33502d(0x21c),'children':[_0x492990===0x0?'▶\x20':'\x20\x20',_0x33502d(0x215)]}),a40_0x49df4c(Text,{'children':'\x20'}),a40_0x5b897b(Text,{'color':_0x492990===0x1?_0x33502d(0x1dd):_0x33502d(0x21c),'children':[_0x492990===0x1?'▶\x20':'\x20\x20','No']})]}),_0x51a74c&&_0x492990===0x0&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x21e))})}),a40_0x5b897b(Box,{'marginTop':0x1,'flexDirection':_0x33502d(0x1dc),'children':[a40_0x49df4c(Text,{'bold':!![],'color':_0x33502d(0x21d),'children':_0x54e27c(_0x33502d(0x1fa))}),UI_IDE_LIST[_0x33502d(0x1ed)]((_0x489dfa,_0x509fbf)=>{const _0x3b3edb=_0x33502d,_0x3087e7=_0xfbc290===_0x509fbf,_0x3a2f82=_0x2c2258[_0x3b3edb(0x218)](_0x509fbf),_0x3c84ca=UI_MCP_IDES[_0x3b3edb(0x218)](_0x489dfa);return a40_0x49df4c(Box,{'children':a40_0x5b897b(Text,{'backgroundColor':_0x3087e7?_0x3b3edb(0x22d):undefined,'color':_0x3087e7?'white':undefined,'children':['\x20\x20',_0x3a2f82?_0x3b3edb(0x1fd):_0x3b3edb(0x20c),'\x20',UI_IDE_CONFIGS[_0x489dfa][_0x3b3edb(0x20e)],_0x3c84ca&&a40_0x49df4c(Text,{'color':_0x3087e7?_0x3b3edb(0x1ee):_0x3b3edb(0x222),'children':'\x20+MCP'}),'\x20',a40_0x5b897b(Text,{'color':_0x3087e7?_0x3b3edb(0x1ee):_0x3b3edb(0x21c),'dimColor':!_0x3087e7,'children':['-\x20',UI_IDE_CONFIGS[_0x489dfa][_0x3b3edb(0x1d1)]]})]})},_0x489dfa);}),a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1e2))})})]})]}),!_0x51a74c&&a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1e3))})}),_0x3000e8&&a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x5b897b(Text,{'color':_0x33502d(0x227),'children':['✗\x20',_0x3000e8]})})]}),_0x2026c5===_0x33502d(0x20a)&&a40_0x5b897b(a40_0x33cf3a,{'children':[a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21d),'children':_0x54e27c(_0x33502d(0x228))})}),a40_0x49df4c(Box,{'marginTop':0x1,'children':a40_0x49df4c(Text,{'children':_0x54e27c('create.login.prompt')})}),a40_0x5b897b(Box,{'marginLeft':0x2,'children':[a40_0x5b897b(Text,{'color':_0x5d4273===0x0?_0x33502d(0x1dd):_0x33502d(0x21c),'children':[_0x5d4273===0x0?'▶\x20':'\x20\x20',_0x33502d(0x215)]}),a40_0x49df4c(Text,{'children':'\x20'}),a40_0x5b897b(Text,{'color':_0x5d4273===0x1?_0x33502d(0x1dd):_0x33502d(0x21c),'children':[_0x5d4273===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x1e3))})})]}),_0x2026c5===_0x33502d(0x1da)&&a40_0x5b897b(Box,{'children':[a40_0x49df4c(Text,{'children':_0x54e27c(_0x33502d(0x1f1))}),_0x96a14&&a40_0x49df4c(Text,{'color':_0x33502d(0x21c),'children':_0x54e27c(_0x33502d(0x221))})]}),_0x2026c5===_0x33502d(0x214)&&a40_0x49df4c(Box,{'children':a40_0x49df4c(Text,{'color':_0x33502d(0x1dd),'children':_0x54e27c(_0x33502d(0x200))})})]});}
@@ -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(_0x3400b1,_0x4edd8b){const _0x12e179=a41_0xf161,_0x4324c2=_0x3400b1();while(!![]){try{const _0x25a84b=parseInt(_0x12e179(0x1c7))/0x1+-parseInt(_0x12e179(0x1cb))/0x2+parseInt(_0x12e179(0x1c9))/0x3+parseInt(_0x12e179(0x1c8))/0x4+parseInt(_0x12e179(0x1cc))/0x5+-parseInt(_0x12e179(0x1c5))/0x6+-parseInt(_0x12e179(0x1c6))/0x7;if(_0x25a84b===_0x4edd8b)break;else _0x4324c2['push'](_0x4324c2['shift']());}catch(_0xf4af29){_0x4324c2['push'](_0x4324c2['shift']());}}}(a41_0x120d,0x3bc40));export function formatElapsed(_0x6515bf){const _0x22a56d=a41_0xf161,_0x223257=Date[_0x22a56d(0x1c4)]()-_0x6515bf;if(_0x223257<0x3e8)return _0x223257+'ms';const _0x2346cf=(_0x223257/0x3e8)[_0x22a56d(0x1ca)](0x2),_0x558443=_0x2346cf[_0x22a56d(0x1cd)](/\.?0+$/u,'');return _0x558443+'s';}function a41_0xf161(_0x5c4659,_0x4b42d){_0x5c4659=_0x5c4659-0x1c4;const _0x120d2a=a41_0x120d();let _0xf1615=_0x120d2a[_0x5c4659];return _0xf1615;}function a41_0x120d(){const _0x57ebd7=['1601095ztTHWY','replace','now','524580NCxfPd','6130250PJkXwj','263028AkYsGo','1853512BLhTzp','1354554ZSbtgY','toFixed','580326dlDLek'];a41_0x120d=function(){return _0x57ebd7;};return a41_0x120d();}