@lovrabet/cli 1.3.4-beta.1 → 1.3.4-beta.2

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 (84) hide show
  1. package/lib/ai-setup/AISetupUI.js +1 -1
  2. package/lib/ai-setup/config.js +1 -1
  3. package/lib/api/api-doc-ui.js +1 -1
  4. package/lib/api/api-doc.js +1 -1
  5. package/lib/api/api-pull-ui.js +1 -1
  6. package/lib/api/fetch-model-list.js +1 -1
  7. package/lib/api/generate-api-file.js +1 -1
  8. package/lib/api/main.js +1 -1
  9. package/lib/api/pull-silent.js +1 -1
  10. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  11. package/lib/app-menu/create-menu.js +1 -1
  12. package/lib/app-menu/get-local-pages.js +1 -1
  13. package/lib/app-menu/get-online-menu-list.js +1 -1
  14. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  15. package/lib/app-menu/utils.js +1 -1
  16. package/lib/app-menu/valid-url.js +1 -1
  17. package/lib/app-menu-update-cdn/current-content.js +1 -1
  18. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  19. package/lib/app-menu-update-cdn/main.js +1 -1
  20. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  21. package/lib/auth/auth-server-ui.js +1 -1
  22. package/lib/auth/auth-server.js +1 -1
  23. package/lib/auth/constant.js +1 -1
  24. package/lib/auth/get-cookie.js +1 -1
  25. package/lib/auth/is-session-valid.js +1 -1
  26. package/lib/auth/logout.js +1 -1
  27. package/lib/cli-flags.js +1 -1
  28. package/lib/cli.js +1 -1
  29. package/lib/cmd/build-watch.js +1 -1
  30. package/lib/cmd/build.js +1 -1
  31. package/lib/cmd/logs.js +1 -1
  32. package/lib/cmd/preview.js +1 -1
  33. package/lib/cmd/start-execa.js +1 -1
  34. package/lib/cmd/start.js +1 -1
  35. package/lib/config/config-help.js +1 -1
  36. package/lib/config/main.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/create-app/enhanced-guided-create.js +1 -1
  40. package/lib/create-app/format-elapsed.js +1 -1
  41. package/lib/create-app/main.js +1 -1
  42. package/lib/create-app/non-interactive.js +1 -1
  43. package/lib/create-app/task-finished.js +1 -1
  44. package/lib/create-app/task-loading.js +1 -1
  45. package/lib/create-app/task-running.js +1 -1
  46. package/lib/create-app/task-time.js +1 -1
  47. package/lib/create-app/use-copy-project-template.js +1 -1
  48. package/lib/create-app/use-format-code.js +1 -1
  49. package/lib/create-app/use-install-dependencies.js +1 -1
  50. package/lib/help.js +1 -1
  51. package/lib/i18n/I18nProvider.js +1 -1
  52. package/lib/i18n/hooks.js +1 -1
  53. package/lib/i18n/index.js +1 -1
  54. package/lib/i18n/locales/en-US.js +1 -1
  55. package/lib/i18n/locales/zh-CN.js +1 -1
  56. package/lib/init/main.js +1 -1
  57. package/lib/mcp/McpInstallUI.js +1 -1
  58. package/lib/mcp/claude.js +1 -1
  59. package/lib/mcp/cursor.js +1 -1
  60. package/lib/mcp/main.js +1 -1
  61. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  62. package/lib/mcp/mcp-installer.js +1 -1
  63. package/lib/skills/SkillInstallUI.js +1 -1
  64. package/lib/skills/main.js +1 -1
  65. package/lib/skills/skill-install-non-interactive.js +1 -1
  66. package/lib/skills/skill-installer.js +1 -1
  67. package/lib/ui/IDESelector.js +1 -1
  68. package/lib/ui/useIDESelection.js +1 -1
  69. package/lib/utils/ai_config.js +1 -1
  70. package/lib/utils/cdn-config.js +1 -1
  71. package/lib/utils/check-sdk-version.js +1 -1
  72. package/lib/utils/cli-version-check.js +1 -1
  73. package/lib/utils/config.js +1 -1
  74. package/lib/utils/copy-directory.js +1 -1
  75. package/lib/utils/file-utils.js +1 -1
  76. package/lib/utils/guides-cdn.js +1 -1
  77. package/lib/utils/http-client.js +1 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/rules-cdn.js +1 -1
  80. package/lib/utils/sleep.js +1 -1
  81. package/lib/utils/template-replacer.js +1 -1
  82. package/package.json +1 -1
  83. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +29 -6
  84. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +3 -3
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a29_0x2d60eb=a29_0x5919;(function(_0xe89959,_0xb2efbf){const _0x418e73=a29_0x5919,_0x120a2d=_0xe89959();while(!![]){try{const _0x43c8f1=parseInt(_0x418e73(0x211))/0x1+parseInt(_0x418e73(0x20a))/0x2+-parseInt(_0x418e73(0x1e6))/0x3*(parseInt(_0x418e73(0x223))/0x4)+parseInt(_0x418e73(0x1eb))/0x5+parseInt(_0x418e73(0x1e1))/0x6*(-parseInt(_0x418e73(0x20f))/0x7)+parseInt(_0x418e73(0x1ff))/0x8+-parseInt(_0x418e73(0x1f0))/0x9;if(_0x43c8f1===_0xb2efbf)break;else _0x120a2d['push'](_0x120a2d['shift']());}catch(_0x467d06){_0x120a2d['push'](_0x120a2d['shift']());}}}(a29_0x51df,0x60325));import{jsx as a29_0x409683}from'react/jsx-runtime';import a29_0x2a94f2 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';function a29_0x51df(){const _0x30fe8e=['--help','执行配置\x20MCP\x20命令','stdin','1224578QTLFVG','help','isRaw','cursor','nonInteractive','7rlGCxl','argv','538414nHdxSM','api','flags','claude','build','执行安装技能包命令','codebuddy','opencode','update','logout','./skills/main.js','skill','join','antigravity','lovrabet\x20','error','./mcp/mcp-install-non-interactive.js','trae','552676pCsHss','install','agent','cwd','windsurf','menu-update-cdn','isTTY','stdout','setRawCommand','cline','start','info','./cli-flags.js','boolean','执行预览命令','push','同步菜单命令','dynamicCliFlags','非交互模式创建项目:\x20','./create-app/non-interactive.js','length','true','893850YOkjBv','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Authentication\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Logout\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20.lovrabetrc\x20config\x20in\x20existing\x20project\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20with\x20specified\x20appcode\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Create\x20a\x20new\x20project\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Start\x20project\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Build\x20project\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Sync\x20menu\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Update\x20menu\x20CDN\x20resources\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Preview\x20project\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Watch\x20mode\x20for\x20preview\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Project\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Pull\x20and\x20generate\x20API\x20config\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Generate\x20API\x20documentation\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20MCP\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20skill\x20installation\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20Cursor\x20skill\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20Install\x20multiple\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20all\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20View\x20logs\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Clear\x20logs\x0a','mcpClaude','./skills/skill-install-non-interactive.js','LOVRABET_CI','15zfKHNZ','\x20(监听模式)','exit','input','all','772940YwDbka','string','trim','×\x20Interactive\x20mode\x20is\x20not\x20supported\x20in\x20this\x20terminal\x20(stdin\x20raw\x20mode\x20unavailable).\x0a\x20\x20Please\x20use\x20a\x20terminal\x20that\x20supports\x20interactive\x20input\x20(e.g.\x20Windows\x20Terminal,\x20PowerShell),\x0a\x20\x20or\x20use\x20non-interactive\x20mode:\x20lovrabet\x20<command>\x20--ci','执行构建命令','3662262iguutm','执行启动命令','auth','env','slice','×\x20Interactive\x20mode\x20is\x20not\x20supported.\x20Please\x20specify\x20a\x20project\x20name:\x0a\x20\x20lovrabet\x20create\x20<project-name>\x0a\x20\x20lovrabet\x20create\x20<project-name>\x20--ci','logs','setLogPath','menu-sync','appcode','menu','mcpCursor','setRawMode','watch','codex','2683744DyPFio','preview','create','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','qoder','init','mcpOther','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci'];a29_0x51df=function(){return _0x30fe8e;};return a29_0x51df();}import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';function a29_0x5919(_0x100969,_0xab423d){_0x100969=_0x100969-0x1d0;const _0x51df8d=a29_0x51df();let _0x5919ad=_0x51df8d[_0x100969];return _0x5919ad;}import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';import{I18nProvider}from'./i18n/I18nProvider.js';import{detectSystemLanguage,getLanguageFromFlags}from'./i18n/index.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a29_0x2d60eb(0x1d7)))[a29_0x2d60eb(0x1dc)];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':'\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a','en-US':a29_0x2d60eb(0x1e2)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x43879b=a29_0x2d60eb;if(!process[_0x43879b(0x209)][_0x43879b(0x1d1)])return![];try{const _0x5ad6bd=process[_0x43879b(0x209)][_0x43879b(0x20c)];return process['stdin'][_0x43879b(0x1fc)](!![]),process[_0x43879b(0x209)][_0x43879b(0x1fc)](_0x5ad6bd??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x2636a8){const _0x3d27c2=a29_0x2d60eb;return!!(_0x2636a8[_0x3d27c2(0x20e)]||_0x2636a8['ci']||process[_0x3d27c2(0x1f3)][_0x3d27c2(0x1e5)]===_0x3d27c2(0x1e0)||process['env']['CI']===_0x3d27c2(0x1e0)||!process[_0x3d27c2(0x1d2)][_0x3d27c2(0x1d1)]||!isStdinRawModeSupported());}function getLanguage(_0x369007){const _0x4e333e=getLanguageFromFlags(_0x369007);return _0x4e333e||undefined;}function renderWithI18n(_0x423116,_0x2a6fc2){const _0x4946f7=a29_0x2d60eb;return!isStdinRawModeSupported()&&(console['error'](_0x2a6fc2?.['startsWith']('zh')?_0x4946f7(0x206):_0x4946f7(0x1ee)),process[_0x4946f7(0x1e8)](0x1)),render(a29_0x409683(I18nProvider,{'language':_0x2a6fc2,'children':_0x423116}));}const cli=a29_0x2a94f2(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x2d60eb(0x1ec)},'clear':{'type':a29_0x2d60eb(0x1d8)},'env':{'type':a29_0x2d60eb(0x1ec)},'watch':{'type':a29_0x2d60eb(0x1d8)},'help':{'type':a29_0x2d60eb(0x1d8)},'appcode':{'type':a29_0x2d60eb(0x1ec)},'output':{'type':'string'},'params':{'type':a29_0x2d60eb(0x1ec)},'datasetcode':{'type':'string'},'mcpCursor':{'type':a29_0x2d60eb(0x1d8)},'mcpClaude':{'type':a29_0x2d60eb(0x1d8)},'mcpOther':{'type':a29_0x2d60eb(0x1d8)},'cursor':{'type':a29_0x2d60eb(0x1d8)},'windsurf':{'type':a29_0x2d60eb(0x1d8)},'claude':{'type':a29_0x2d60eb(0x1d8)},'cline':{'type':a29_0x2d60eb(0x1d8)},'codex':{'type':a29_0x2d60eb(0x1d8)},'opencode':{'type':a29_0x2d60eb(0x1d8)},'qoder':{'type':'boolean'},'codebuddy':{'type':'boolean'},'trae':{'type':'boolean'},'agent':{'type':a29_0x2d60eb(0x1d8)},'antigravity':{'type':a29_0x2d60eb(0x1d8)},'all':{'type':a29_0x2d60eb(0x1d8)},'nonInteractive':{'type':'boolean'},'ci':{'type':a29_0x2d60eb(0x1d8)},'lang':{'type':a29_0x2d60eb(0x1ec)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x25e8e0=a29_0x2d60eb,_0x1d6085=cli[_0x25e8e0(0x1e9)][0x0],_0x37fddd=cli['input'][0x1],_0x17dc3b=cli[_0x25e8e0(0x1e9)][0x2],_0x1a50f8=getLanguage(cli[_0x25e8e0(0x213)]),_0xeb97b6=(_0x25e8e0(0x21f)+process[_0x25e8e0(0x210)][_0x25e8e0(0x1f4)](0x2)[_0x25e8e0(0x21d)]('\x20'))[_0x25e8e0(0x1ed)]();logger[_0x25e8e0(0x1d3)](_0xeb97b6);switch(_0x1d6085){case _0x25e8e0(0x204):{const _0x8d20c3=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1f9)],_0xce3549=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1f3)];logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)]('init','执行初始化配置命令'),renderWithI18n(a29_0x409683(Init,{'appcode':_0x8d20c3,'env':_0xce3549}),_0x1a50f8);break;}case _0x25e8e0(0x201):{const _0x1d6e26=cli['input'][0x1]?.[_0x25e8e0(0x1ed)](),_0x5398c0=cli['flags']['env'],_0x5ef65c=isNonInteractiveMode(cli[_0x25e8e0(0x213)]);if(_0x5ef65c&&_0x1d6e26){logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x201),_0x25e8e0(0x1dd)+_0x1d6e26);const {createProjectNonInteractive:_0x3725fd}=await import(_0x25e8e0(0x1de));await _0x3725fd(_0x1d6e26,_0x5398c0);}else _0x5ef65c&&!_0x1d6e26?(console[_0x25e8e0(0x220)](_0x1a50f8?.['startsWith']('zh')?_0x25e8e0(0x202):_0x25e8e0(0x1f5)),process[_0x25e8e0(0x1e8)](0x1)):renderWithI18n(a29_0x409683(CreateApp,{'projectCode':_0x1d6e26,'env':_0x5398c0}),_0x1a50f8);break;}case _0x25e8e0(0x1d5):{try{logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1d5),_0x25e8e0(0x1f1)),await runStart();}catch(_0x479cf1){console[_0x25e8e0(0x220)](_0x479cf1),process['exit'](0x1);}break;}case'build':{try{logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger['info'](_0x25e8e0(0x215),_0x25e8e0(0x1ef)),await runBuild();}catch(_0x55b994){console[_0x25e8e0(0x220)](_0x55b994),process[_0x25e8e0(0x1e8)](0x1);}break;}case _0x25e8e0(0x200):{const _0x872d7c=cli[_0x25e8e0(0x213)][_0x25e8e0(0x1fd)];logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)]('preview',_0x25e8e0(0x1d9)+(_0x872d7c?_0x25e8e0(0x1e7):''));if(_0x872d7c)try{await Promise['all']([runBuildWatch(),runPreview()]);}catch(_0x127cbd){console[_0x25e8e0(0x220)](_0x127cbd),process['exit'](0x1);}else try{await runPreview();}catch(_0x4db62f){console['error'](_0x4db62f),process[_0x25e8e0(0x1e8)](0x1);}break;}case'config':{renderWithI18n(a29_0x409683(Config,{'cli':cli}),_0x1a50f8);break;}case _0x25e8e0(0x212):{await apiCli(cli);break;}case _0x25e8e0(0x1f2):{renderWithI18n(a29_0x409683(AuthServer,{}),_0x1a50f8);break;}case _0x25e8e0(0x1fa):{if(_0x37fddd===_0x25e8e0(0x219)){logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1d0),'执行更新菜单\x20CDN\x20资源命令'),renderWithI18n(a29_0x409683(AppMenuUpdateCdn,{}),_0x1a50f8);break;}else logger[_0x25e8e0(0x1f7)](process['cwd']()),logger[_0x25e8e0(0x1d6)](_0x25e8e0(0x1f8),_0x25e8e0(0x1db)),renderWithI18n(a29_0x409683(AppMenuSyncUI,{}),_0x1a50f8);break;}case _0x25e8e0(0x21a):{logout();break;}case'mcp':{const _0x4ba419=cli[_0x25e8e0(0x1e9)][0x1];logger[_0x25e8e0(0x1f7)](process['cwd']());if(_0x4ba419===_0x25e8e0(0x224)){const _0x51022c=[];if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1fb)]||cli['flags'][_0x25e8e0(0x20d)])_0x51022c[_0x25e8e0(0x1da)]('cursor');if(cli['flags'][_0x25e8e0(0x1e3)]||cli[_0x25e8e0(0x213)]['claude'])_0x51022c[_0x25e8e0(0x1da)]('claude');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x205)])_0x51022c[_0x25e8e0(0x1da)]('other');logger[_0x25e8e0(0x1d6)]('mcp-install',_0x25e8e0(0x208),{'preselected':_0x51022c});if(isNonInteractiveMode(cli['flags'])&&_0x51022c['length']>0x0){const {installMcpNonInteractive:_0x36920c}=await import(_0x25e8e0(0x221));await _0x36920c(_0x51022c);}else renderWithI18n(a29_0x409683(McpInstallUI,{'preselectedIDEs':_0x51022c}),_0x1a50f8);}else _0x4ba419==='--help'||cli[_0x25e8e0(0x213)][_0x25e8e0(0x20b)]?await mcpCommand(_0x4ba419,[],{'help':!![]}):await mcpCommand(_0x4ba419,[],cli['flags']);break;}case _0x25e8e0(0x21c):{const _0x40726c=cli[_0x25e8e0(0x1e9)][0x1];logger[_0x25e8e0(0x1f7)](process[_0x25e8e0(0x226)]());if(_0x40726c==='install'){const _0x506811=[];if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1ea)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x20d),_0x25e8e0(0x227),_0x25e8e0(0x214),_0x25e8e0(0x1d4),_0x25e8e0(0x1fe),'opencode',_0x25e8e0(0x203),_0x25e8e0(0x217),'trae','agent',_0x25e8e0(0x21e));else{if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x20d)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x20d));if(cli['flags'][_0x25e8e0(0x227)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x227));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x214)])_0x506811['push']('claude');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x1d4)])_0x506811['push'](_0x25e8e0(0x1d4));if(cli['flags'][_0x25e8e0(0x1fe)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x1fe));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x218)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x218));if(cli['flags']['qoder'])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x203));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x217)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x217));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x222)])_0x506811[_0x25e8e0(0x1da)]('trae');if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x225)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x225));if(cli[_0x25e8e0(0x213)][_0x25e8e0(0x21e)])_0x506811[_0x25e8e0(0x1da)](_0x25e8e0(0x21e));}const {getAllProvidedFlags:_0x4a313b}=await import(_0x25e8e0(0x21b)),_0x479444=_0x4a313b(cli[_0x25e8e0(0x213)]);logger[_0x25e8e0(0x1d6)]('skill-install',_0x25e8e0(0x216),{'preselected':_0x506811,'providedFlags':_0x479444});if(isNonInteractiveMode(cli[_0x25e8e0(0x213)])&&_0x506811[_0x25e8e0(0x1df)]>0x0){const {installSkillsNonInteractive:_0x6e3e25}=await import(_0x25e8e0(0x1e4));await _0x6e3e25(_0x506811,_0x479444);}else renderWithI18n(a29_0x409683(SkillInstallUI,{'preselectedIDEs':_0x506811,'providedFlags':_0x479444}),_0x1a50f8);}else _0x40726c===_0x25e8e0(0x207)||cli[_0x25e8e0(0x213)][_0x25e8e0(0x20b)]?await skillsCommand(_0x40726c,[],{'help':!![]}):await skillsCommand(_0x40726c,[],cli['flags']);break;}case _0x25e8e0(0x1f6):{cli[_0x25e8e0(0x213)]['clear']?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x409683(Help,{}),_0x1a50f8);break;}}
2
+ function a29_0x2f9d(_0x37d8e4,_0x5c9a5d){_0x37d8e4=_0x37d8e4-0xb6;const _0x21da6d=a29_0x21da();let _0x2f9d47=_0x21da6d[_0x37d8e4];return _0x2f9d47;}const a29_0x4d4c22=a29_0x2f9d;(function(_0x1c69f6,_0x472f77){const _0x364a11=a29_0x2f9d,_0x4ca171=_0x1c69f6();while(!![]){try{const _0x37b55a=-parseInt(_0x364a11(0xb8))/0x1+-parseInt(_0x364a11(0xba))/0x2+-parseInt(_0x364a11(0xe0))/0x3+-parseInt(_0x364a11(0x10a))/0x4*(parseInt(_0x364a11(0xcd))/0x5)+-parseInt(_0x364a11(0x103))/0x6*(-parseInt(_0x364a11(0xfa))/0x7)+parseInt(_0x364a11(0xdb))/0x8*(-parseInt(_0x364a11(0xf7))/0x9)+parseInt(_0x364a11(0xe7))/0xa*(parseInt(_0x364a11(0xc3))/0xb);if(_0x37b55a===_0x472f77)break;else _0x4ca171['push'](_0x4ca171['shift']());}catch(_0x4ba479){_0x4ca171['push'](_0x4ca171['shift']());}}}(a29_0x21da,0xb029f));import{jsx as a29_0x438a10}from'react/jsx-runtime';import a29_0x2941c6 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';import{I18nProvider}from'./i18n/I18nProvider.js';import{detectSystemLanguage,getLanguageFromFlags}from'./i18n/index.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a29_0x4d4c22(0xe3)))[a29_0x4d4c22(0xf1)];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a29_0x4d4c22(0xde),'en-US':a29_0x4d4c22(0xd9)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x177603=a29_0x4d4c22;if(!process[_0x177603(0xeb)][_0x177603(0x102)])return![];try{const _0x289dd2=process[_0x177603(0xeb)]['isRaw'];return process[_0x177603(0xeb)][_0x177603(0xf5)](!![]),process['stdin'][_0x177603(0xf5)](_0x289dd2??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x2ecaab){const _0x1a4abb=a29_0x4d4c22;return!!(_0x2ecaab['nonInteractive']||_0x2ecaab['ci']||process['env']['LOVRABET_CI']===_0x1a4abb(0xfe)||process[_0x1a4abb(0xfc)]['CI']===_0x1a4abb(0xfe)||!process['stdout'][_0x1a4abb(0x102)]||!isStdinRawModeSupported());}function getLanguage(_0x121b87){const _0x2e05d1=getLanguageFromFlags(_0x121b87);return _0x2e05d1||undefined;}function renderWithI18n(_0x1e1231,_0x55fe1d){const _0x579dde=a29_0x4d4c22;return!isStdinRawModeSupported()&&(console['error'](_0x55fe1d?.[_0x579dde(0xb6)]('zh')?_0x579dde(0xcb):'×\x20Interactive\x20mode\x20is\x20not\x20supported\x20in\x20this\x20terminal\x20(stdin\x20raw\x20mode\x20unavailable).\x0a\x20\x20Please\x20use\x20a\x20terminal\x20that\x20supports\x20interactive\x20input\x20(e.g.\x20Windows\x20Terminal,\x20PowerShell),\x0a\x20\x20or\x20use\x20non-interactive\x20mode:\x20lovrabet\x20<command>\x20--ci'),process[_0x579dde(0xcc)](0x1)),render(a29_0x438a10(I18nProvider,{'language':_0x55fe1d,'children':_0x1e1231}));}const cli=a29_0x2941c6(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x4d4c22(0xc0)},'clear':{'type':a29_0x4d4c22(0xda)},'env':{'type':a29_0x4d4c22(0xc0)},'watch':{'type':a29_0x4d4c22(0xda)},'help':{'type':a29_0x4d4c22(0xda)},'appcode':{'type':a29_0x4d4c22(0xc0)},'output':{'type':'string'},'params':{'type':a29_0x4d4c22(0xc0)},'datasetcode':{'type':'string'},'mcpCursor':{'type':a29_0x4d4c22(0xda)},'mcpClaude':{'type':a29_0x4d4c22(0xda)},'mcpOther':{'type':a29_0x4d4c22(0xda)},'cursor':{'type':a29_0x4d4c22(0xda)},'windsurf':{'type':'boolean'},'claude':{'type':'boolean'},'cline':{'type':a29_0x4d4c22(0xda)},'codex':{'type':a29_0x4d4c22(0xda)},'opencode':{'type':'boolean'},'qoder':{'type':'boolean'},'codebuddy':{'type':a29_0x4d4c22(0xda)},'trae':{'type':a29_0x4d4c22(0xda)},'agent':{'type':a29_0x4d4c22(0xda)},'antigravity':{'type':a29_0x4d4c22(0xda)},'all':{'type':a29_0x4d4c22(0xda)},'nonInteractive':{'type':'boolean'},'ci':{'type':a29_0x4d4c22(0xda)},'lang':{'type':'string'},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x4a7126=a29_0x4d4c22,_0x4e28e0=cli[_0x4a7126(0x100)][0x0],_0xb443ae=cli['input'][0x1],_0x2808b9=cli[_0x4a7126(0x100)][0x2],_0x2b2b0e=getLanguage(cli[_0x4a7126(0xfd)]),_0x3f78b4=('lovrabet\x20'+process[_0x4a7126(0xf6)]['slice'](0x2)[_0x4a7126(0xc9)]('\x20'))['trim']();logger[_0x4a7126(0xe9)](_0x3f78b4);switch(_0x4e28e0){case _0x4a7126(0xcf):{const _0x158ae9=cli[_0x4a7126(0xfd)]['appcode'],_0x51037e=cli[_0x4a7126(0xfd)][_0x4a7126(0xfc)];logger[_0x4a7126(0xfb)](process['cwd']()),logger[_0x4a7126(0x107)](_0x4a7126(0xcf),_0x4a7126(0xe6)),renderWithI18n(a29_0x438a10(Init,{'appcode':_0x158ae9,'env':_0x51037e}),_0x2b2b0e);break;}case _0x4a7126(0xf4):{const _0x544510=cli['input'][0x1]?.[_0x4a7126(0xef)](),_0x513092=cli[_0x4a7126(0xfd)][_0x4a7126(0xfc)],_0x46ce3c=isNonInteractiveMode(cli[_0x4a7126(0xfd)]);if(_0x46ce3c&&_0x544510){logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)](_0x4a7126(0xf4),_0x4a7126(0xc6)+_0x544510);const {createProjectNonInteractive:_0x385ba2}=await import('./create-app/non-interactive.js');await _0x385ba2(_0x544510,_0x513092);}else _0x46ce3c&&!_0x544510?(console[_0x4a7126(0xe5)](_0x2b2b0e?.['startsWith']('zh')?_0x4a7126(0xf3):'×\x20Interactive\x20mode\x20is\x20not\x20supported.\x20Please\x20specify\x20a\x20project\x20name:\x0a\x20\x20lovrabet\x20create\x20<project-name>\x0a\x20\x20lovrabet\x20create\x20<project-name>\x20--ci'),process[_0x4a7126(0xcc)](0x1)):renderWithI18n(a29_0x438a10(CreateApp,{'projectCode':_0x544510,'env':_0x513092}),_0x2b2b0e);break;}case _0x4a7126(0xd8):{try{logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('start',_0x4a7126(0xdf)),await runStart();}catch(_0x5a18f8){console[_0x4a7126(0xe5)](_0x5a18f8),process[_0x4a7126(0xcc)](0x1);}break;}case _0x4a7126(0xd0):{try{logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)](_0x4a7126(0xd0),_0x4a7126(0xbc)),await runBuild();}catch(_0x243230){console[_0x4a7126(0xe5)](_0x243230),process[_0x4a7126(0xcc)](0x1);}break;}case _0x4a7126(0xf8):{const _0x1e6b12=cli[_0x4a7126(0xfd)]['watch'];logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('preview',_0x4a7126(0xf0)+(_0x1e6b12?_0x4a7126(0xce):''));if(_0x1e6b12)try{await Promise[_0x4a7126(0xdc)]([runBuildWatch(),runPreview()]);}catch(_0x5728c6){console[_0x4a7126(0xe5)](_0x5728c6),process[_0x4a7126(0xcc)](0x1);}else try{await runPreview();}catch(_0x8011d3){console[_0x4a7126(0xe5)](_0x8011d3),process['exit'](0x1);}break;}case _0x4a7126(0xed):{renderWithI18n(a29_0x438a10(Config,{'cli':cli}),_0x2b2b0e);break;}case _0x4a7126(0xbe):{await apiCli(cli);break;}case _0x4a7126(0x101):{renderWithI18n(a29_0x438a10(AuthServer,{}),_0x2b2b0e);break;}case _0x4a7126(0xc8):{if(_0xb443ae===_0x4a7126(0xc4)){logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger['info'](_0x4a7126(0xc2),_0x4a7126(0xd2)),renderWithI18n(a29_0x438a10(AppMenuUpdateCdn,{}),_0x2b2b0e);break;}else logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]()),logger[_0x4a7126(0x107)]('menu-sync',_0x4a7126(0xd4)),renderWithI18n(a29_0x438a10(AppMenuSyncUI,{}),_0x2b2b0e);break;}case'logout':{logout();break;}case _0x4a7126(0xbf):{const _0x329930=cli[_0x4a7126(0x100)][0x1];logger['setLogPath'](process[_0x4a7126(0xd5)]());if(_0x329930==='install'){const _0x56853e=[];if(cli[_0x4a7126(0xfd)]['mcpCursor']||cli[_0x4a7126(0xfd)][_0x4a7126(0xb9)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xb9));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xf2)]||cli[_0x4a7126(0xfd)][_0x4a7126(0xe1)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xe1));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xd6)])_0x56853e[_0x4a7126(0xec)](_0x4a7126(0xff));logger['info'](_0x4a7126(0xd3),_0x4a7126(0xe8),{'preselected':_0x56853e});if(isNonInteractiveMode(cli[_0x4a7126(0xfd)])&&_0x56853e[_0x4a7126(0xc5)]>0x0){const {installMcpNonInteractive:_0x3eab62}=await import('./mcp/mcp-install-non-interactive.js');await _0x3eab62(_0x56853e);}else renderWithI18n(a29_0x438a10(McpInstallUI,{'preselectedIDEs':_0x56853e}),_0x2b2b0e);}else _0x329930===_0x4a7126(0xb7)||cli[_0x4a7126(0xfd)][_0x4a7126(0xd1)]?await mcpCommand(_0x329930,[],{'help':!![]}):await mcpCommand(_0x329930,[],cli[_0x4a7126(0xfd)]);break;}case _0x4a7126(0xe2):{const _0x305016=cli[_0x4a7126(0x100)][0x1];logger[_0x4a7126(0xfb)](process[_0x4a7126(0xd5)]());if(_0x305016===_0x4a7126(0xdd)){const _0x107bae=[];if(cli[_0x4a7126(0xfd)][_0x4a7126(0xdc)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xb9),_0x4a7126(0x108),_0x4a7126(0xe1),'cline',_0x4a7126(0x105),_0x4a7126(0xd7),_0x4a7126(0xca),_0x4a7126(0xea),_0x4a7126(0xee),_0x4a7126(0xc1),_0x4a7126(0xc7));else{if(cli['flags'][_0x4a7126(0xb9)])_0x107bae['push']('cursor');if(cli[_0x4a7126(0xfd)]['windsurf'])_0x107bae['push']('windsurf');if(cli['flags'][_0x4a7126(0xe1)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xe1));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xbb)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xbb));if(cli[_0x4a7126(0xfd)][_0x4a7126(0x105)])_0x107bae['push'](_0x4a7126(0x105));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xd7)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xd7));if(cli['flags']['qoder'])_0x107bae['push'](_0x4a7126(0xca));if(cli['flags'][_0x4a7126(0xea)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xea));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xee)])_0x107bae[_0x4a7126(0xec)](_0x4a7126(0xee));if(cli[_0x4a7126(0xfd)][_0x4a7126(0xc1)])_0x107bae['push'](_0x4a7126(0xc1));if(cli[_0x4a7126(0xfd)]['antigravity'])_0x107bae[_0x4a7126(0xec)]('antigravity');}const {getAllProvidedFlags:_0x319a1d}=await import(_0x4a7126(0x104)),_0x24bb29=_0x319a1d(cli['flags']);logger[_0x4a7126(0x107)](_0x4a7126(0x109),_0x4a7126(0xf9),{'preselected':_0x107bae,'providedFlags':_0x24bb29});if(isNonInteractiveMode(cli[_0x4a7126(0xfd)])&&_0x107bae[_0x4a7126(0xc5)]>0x0){const {installSkillsNonInteractive:_0x3d5a3e}=await import(_0x4a7126(0xe4));await _0x3d5a3e(_0x107bae,_0x24bb29);}else renderWithI18n(a29_0x438a10(SkillInstallUI,{'preselectedIDEs':_0x107bae,'providedFlags':_0x24bb29}),_0x2b2b0e);}else _0x305016===_0x4a7126(0xb7)||cli[_0x4a7126(0xfd)][_0x4a7126(0xd1)]?await skillsCommand(_0x305016,[],{'help':!![]}):await skillsCommand(_0x305016,[],cli[_0x4a7126(0xfd)]);break;}case _0x4a7126(0x106):{cli['flags'][_0x4a7126(0xbd)]?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x438a10(Help,{}),_0x2b2b0e);break;}}function a29_0x21da(){const _0x48e48=['build','help','执行更新菜单\x20CDN\x20资源命令','mcp-install','同步菜单命令','cwd','mcpOther','opencode','start','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Authentication\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Logout\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20.lovrabetrc\x20config\x20in\x20existing\x20project\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20with\x20specified\x20appcode\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Create\x20a\x20new\x20project\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Start\x20project\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Build\x20project\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Sync\x20menu\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Update\x20menu\x20CDN\x20resources\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Preview\x20project\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Watch\x20mode\x20for\x20preview\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Project\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Pull\x20and\x20generate\x20API\x20config\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Generate\x20API\x20documentation\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20MCP\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20skill\x20installation\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20Cursor\x20skill\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20Install\x20multiple\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20all\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20View\x20logs\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Clear\x20logs\x0a','boolean','19736DSabOQ','all','install','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a','执行启动命令','2756583gzPwGk','claude','skill','./cli-flags.js','./skills/skill-install-non-interactive.js','error','执行初始化配置命令','30940670hTmrOu','执行配置\x20MCP\x20命令','setRawCommand','codebuddy','stdin','push','config','trae','trim','执行预览命令','dynamicCliFlags','mcpClaude','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','create','setRawMode','argv','4644bGVOCz','preview','执行安装技能包命令','70sjrYEG','setLogPath','env','flags','true','other','input','auth','isTTY','476670oSSqvj','./skills/main.js','codex','logs','info','windsurf','skill-install','994796tdWdMx','startsWith','--help','111507woUGKn','cursor','1229822zvibSr','cline','执行构建命令','clear','api','mcp','string','agent','menu-update-cdn','11BGycci','update','length','非交互模式创建项目:\x20','antigravity','menu','join','qoder','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci','exit','5RPXeuW','\x20(监听模式)','init'];a29_0x21da=function(){return _0x48e48;};return a29_0x21da();}
@@ -1 +1 @@
1
- function a30_0x12f5(_0x4f683b,_0x285075){_0x4f683b=_0x4f683b-0x6a;const _0x8e30b3=a30_0x8e30();let _0x12f589=_0x8e30b3[_0x4f683b];return _0x12f589;}(function(_0x4f4d31,_0xd7b768){const _0x3f47b0=a30_0x12f5,_0x1ff47a=_0x4f4d31();while(!![]){try{const _0x2677a3=-parseInt(_0x3f47b0(0x7c))/0x1*(parseInt(_0x3f47b0(0x75))/0x2)+parseInt(_0x3f47b0(0x7b))/0x3+parseInt(_0x3f47b0(0x7a))/0x4*(parseInt(_0x3f47b0(0x70))/0x5)+parseInt(_0x3f47b0(0x73))/0x6+parseInt(_0x3f47b0(0x6a))/0x7+-parseInt(_0x3f47b0(0x6b))/0x8*(-parseInt(_0x3f47b0(0x6c))/0x9)+parseInt(_0x3f47b0(0x74))/0xa*(-parseInt(_0x3f47b0(0x72))/0xb);if(_0x2677a3===_0xd7b768)break;else _0x1ff47a['push'](_0x1ff47a['shift']());}catch(_0xea8b35){_0x1ff47a['push'](_0x1ff47a['shift']());}}}(a30_0x8e30,0x8fbf6));function a30_0x8e30(){const _0x22ed62=['33pFaccM','1672740iCbZNU','1936540jQaXkj','32sGCOME','error','env','vite','.bin','4jOXJip','2681694EwshCu','47806trOpvV','2641254ndpKBx','1113656DeEuii','9CPpEjj','PATH','--watch','inherit','1227155zrjdGO','node_modules'];a30_0x8e30=function(){return _0x22ed62;};return a30_0x8e30();}import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x372285,_0x476a76)=>{const _0x21d280=a30_0x12f5,_0x28b52d=spawn(_0x21d280(0x78),['build',_0x21d280(0x6e)],{'stdio':_0x21d280(0x6f),'shell':!![],'env':{...process[_0x21d280(0x77)],'PATH':''+join(process['cwd'](),_0x21d280(0x71),_0x21d280(0x79))+delimiter+process[_0x21d280(0x77)][_0x21d280(0x6d)]}});_0x28b52d['on']('close',_0x3e8e77=>{if(_0x3e8e77===0x0||_0x3e8e77===null)_0x372285();else _0x476a76(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x3e8e77));}),_0x28b52d['on'](_0x21d280(0x76),_0x476a76);});}
1
+ (function(_0x90d620,_0x5e2e24){const _0x30d812=a30_0x423c,_0x8acbf2=_0x90d620();while(!![]){try{const _0x564262=-parseInt(_0x30d812(0x1bb))/0x1*(-parseInt(_0x30d812(0x1b9))/0x2)+parseInt(_0x30d812(0x1bd))/0x3*(parseInt(_0x30d812(0x1b3))/0x4)+-parseInt(_0x30d812(0x1b2))/0x5+parseInt(_0x30d812(0x1b6))/0x6+parseInt(_0x30d812(0x1bf))/0x7+parseInt(_0x30d812(0x1be))/0x8+parseInt(_0x30d812(0x1ba))/0x9*(-parseInt(_0x30d812(0x1b8))/0xa);if(_0x564262===_0x5e2e24)break;else _0x8acbf2['push'](_0x8acbf2['shift']());}catch(_0x4a0cf0){_0x8acbf2['push'](_0x8acbf2['shift']());}}}(a30_0x284c,0x20d95));function a30_0x284c(){const _0x46a26d=['3evJDPC','656848oBoGBV','1425340PjBQos','cwd','201990nDtFoy','652228dvXFli','PATH','.bin','228498IUbyJx','error','1466250opvWjE','42652GwdbwM','27qNYjcZ','6iPXdTB','env'];a30_0x284c=function(){return _0x46a26d;};return a30_0x284c();}function a30_0x423c(_0x3d40c8,_0x4e43fc){_0x3d40c8=_0x3d40c8-0x1b1;const _0x284c2a=a30_0x284c();let _0x423cda=_0x284c2a[_0x3d40c8];return _0x423cda;}import{spawn}from'node:child_process';import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x11be87,_0xf4fa7f)=>{const _0x5b47db=a30_0x423c,_0x3e7bf2=spawn('vite',['build','--watch'],{'stdio':'inherit','shell':!![],'env':{...process[_0x5b47db(0x1bc)],'PATH':''+join(process[_0x5b47db(0x1b1)](),'node_modules',_0x5b47db(0x1b5))+delimiter+process[_0x5b47db(0x1bc)][_0x5b47db(0x1b4)]}});_0x3e7bf2['on']('close',_0x140478=>{if(_0x140478===0x0||_0x140478===null)_0x11be87();else _0xf4fa7f(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x140478));}),_0x3e7bf2['on'](_0x5b47db(0x1b7),_0xf4fa7f);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- (function(_0x42d1fa,_0x418ee4){const _0x4ef52=a31_0xd5c4,_0x4d55d4=_0x42d1fa();while(!![]){try{const _0x72a077=parseInt(_0x4ef52(0xbd))/0x1*(parseInt(_0x4ef52(0xc9))/0x2)+-parseInt(_0x4ef52(0xd8))/0x3+-parseInt(_0x4ef52(0xd1))/0x4*(parseInt(_0x4ef52(0xb9))/0x5)+parseInt(_0x4ef52(0xbe))/0x6*(-parseInt(_0x4ef52(0xcc))/0x7)+parseInt(_0x4ef52(0xbb))/0x8+-parseInt(_0x4ef52(0xc5))/0x9*(parseInt(_0x4ef52(0xd7))/0xa)+-parseInt(_0x4ef52(0xc7))/0xb*(-parseInt(_0x4ef52(0xc4))/0xc);if(_0x72a077===_0x418ee4)break;else _0x4d55d4['push'](_0x4d55d4['shift']());}catch(_0x4eea66){_0x4d55d4['push'](_0x4d55d4['shift']());}}}(a31_0x29ae,0xeb822));function a31_0xd5c4(_0x3e68ce,_0x1adbc3){_0x3e68ce=_0x3e68ce-0xb8;const _0x29ae84=a31_0x29ae();let _0xd5c46c=_0x29ae84[_0x3e68ce];return _0xd5c46c;}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a31_0x29ae(){const _0x16069e=['run','10IlnWLQ','3840858QgcuUP','项目构建成功','35qPgWlU','PATH','13896608DEjZWQ','success','1gyRAoG','52698nzCLBF','项目构建失败','inherit','node_modules','now','info','348dlIJaN','15927840ABHxtI','npm\x20run\x20build','1992089CTyjGp','trim','85302iBUiOk','message','error','1491JJGWvO','.bin','cwd','build','pipe','654932Xtyuca','npm\x20run\x20build\x20exited\x20with\x20code\x20','stderr','npm','env'];a31_0x29ae=function(){return _0x16069e;};return a31_0x29ae();}export function runBuild(){return new Promise((_0x2176ec,_0x1e6cf8)=>{const _0x4ecc70=a31_0xd5c4,_0x5ca15e=Date['now']();logger[_0x4ecc70(0xc3)](_0x4ecc70(0xcf),'开始构建项目',{'command':_0x4ecc70(0xc6)});let _0x535046='';const _0x14446b=spawn(_0x4ecc70(0xd4),[_0x4ecc70(0xd6),_0x4ecc70(0xcf)],{'stdio':['inherit',_0x4ecc70(0xc0),_0x4ecc70(0xd0)],'shell':!![],'env':{...process[_0x4ecc70(0xd5)],'PATH':''+join(process['cwd'](),_0x4ecc70(0xc1),_0x4ecc70(0xcd))+delimiter+process[_0x4ecc70(0xd5)][_0x4ecc70(0xba)]}});_0x14446b[_0x4ecc70(0xd3)]?.['on']('data',_0x1744c1=>{_0x535046+=_0x1744c1['toString']();}),_0x14446b['on']('close',_0x5c79c2=>{const _0x204463=_0x4ecc70,_0x5e492b=Date[_0x204463(0xc2)]()-_0x5ca15e;if(_0x5c79c2===0x0||_0x5c79c2===null)logger[_0x204463(0xbc)](_0x204463(0xcf),_0x204463(0xb8),_0x5e492b),_0x2176ec();else{const _0x5a0335={'exitCode':_0x5c79c2,'duration':_0x5e492b,'command':_0x204463(0xc6),'cwd':process[_0x204463(0xce)]()};_0x535046[_0x204463(0xc8)]()&&(_0x5a0335['stderr']=_0x535046['trim']()),logger[_0x204463(0xcb)]('build',_0x204463(0xbf),_0x5a0335),_0x1e6cf8(new Error(_0x204463(0xd2)+_0x5c79c2));}}),_0x14446b['on']('error',_0x5a7663=>{const _0xc10305=_0x4ecc70,_0x57c4ca=Date[_0xc10305(0xc2)]()-_0x5ca15e;logger[_0xc10305(0xcb)]('build','项目构建出错',{'error':_0x5a7663[_0xc10305(0xca)],'duration':_0x57c4ca,'stderr':_0x535046['trim']()||undefined}),_0x1e6cf8(_0x5a7663);});});}
1
+ (function(_0x1ce7dc,_0x427578){const _0x15b314=a31_0x4664,_0x2d80fe=_0x1ce7dc();while(!![]){try{const _0x2a9242=-parseInt(_0x15b314(0x1e2))/0x1+parseInt(_0x15b314(0x1f9))/0x2+-parseInt(_0x15b314(0x1f7))/0x3*(-parseInt(_0x15b314(0x1ef))/0x4)+parseInt(_0x15b314(0x1fa))/0x5*(-parseInt(_0x15b314(0x1f2))/0x6)+-parseInt(_0x15b314(0x1ea))/0x7+parseInt(_0x15b314(0x1e5))/0x8*(-parseInt(_0x15b314(0x1f0))/0x9)+parseInt(_0x15b314(0x1e3))/0xa;if(_0x2a9242===_0x427578)break;else _0x2d80fe['push'](_0x2d80fe['shift']());}catch(_0x4f5742){_0x2d80fe['push'](_0x2d80fe['shift']());}}}(a31_0x3b72,0xb713a));function a31_0x3b72(){const _0x1195d3=['754648owGWbI','1387600FfrMuH','run','error','trim','npm\x20run\x20build','969324YkASXI','19672240nLBHoP','toString','8BbuFUx','npm','data','.bin','pipe','5761203bdWKRV','npm\x20run\x20build\x20exited\x20with\x20code\x20','inherit','env','build','328868LuZpCG','7562385ehTFSf','now','6VjgxeC','stderr','项目构建成功','info','cwd','48rMcbrz','node_modules'];a31_0x3b72=function(){return _0x1195d3;};return a31_0x3b72();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a31_0x4664(_0x44a49f,_0x2af2cc){_0x44a49f=_0x44a49f-0x1e0;const _0x3b724a=a31_0x3b72();let _0x4664a=_0x3b724a[_0x44a49f];return _0x4664a;}export function runBuild(){return new Promise((_0x1a630d,_0x4cea07)=>{const _0x51b04f=a31_0x4664,_0x4ddf14=Date[_0x51b04f(0x1f1)]();logger[_0x51b04f(0x1f5)](_0x51b04f(0x1ee),'开始构建项目',{'command':'npm\x20run\x20build'});let _0xf0ce08='';const _0x15c89b=spawn(_0x51b04f(0x1e6),[_0x51b04f(0x1fb),_0x51b04f(0x1ee)],{'stdio':[_0x51b04f(0x1ec),_0x51b04f(0x1ec),_0x51b04f(0x1e9)],'shell':!![],'env':{...process[_0x51b04f(0x1ed)],'PATH':''+join(process[_0x51b04f(0x1f6)](),_0x51b04f(0x1f8),_0x51b04f(0x1e8))+delimiter+process[_0x51b04f(0x1ed)]['PATH']}});_0x15c89b[_0x51b04f(0x1f3)]?.['on'](_0x51b04f(0x1e7),_0x28df3a=>{const _0x5c5748=_0x51b04f;_0xf0ce08+=_0x28df3a[_0x5c5748(0x1e4)]();}),_0x15c89b['on']('close',_0x52aec2=>{const _0x46b152=_0x51b04f,_0x1237e0=Date[_0x46b152(0x1f1)]()-_0x4ddf14;if(_0x52aec2===0x0||_0x52aec2===null)logger['success'](_0x46b152(0x1ee),_0x46b152(0x1f4),_0x1237e0),_0x1a630d();else{const _0x17e64a={'exitCode':_0x52aec2,'duration':_0x1237e0,'command':_0x46b152(0x1e1),'cwd':process[_0x46b152(0x1f6)]()};_0xf0ce08[_0x46b152(0x1e0)]()&&(_0x17e64a[_0x46b152(0x1f3)]=_0xf0ce08[_0x46b152(0x1e0)]()),logger[_0x46b152(0x1fc)](_0x46b152(0x1ee),'项目构建失败',_0x17e64a),_0x4cea07(new Error(_0x46b152(0x1eb)+_0x52aec2));}}),_0x15c89b['on']('error',_0x4de408=>{const _0x287443=_0x51b04f,_0x5927b6=Date[_0x287443(0x1f1)]()-_0x4ddf14;logger[_0x287443(0x1fc)]('build','项目构建出错',{'error':_0x4de408['message'],'duration':_0x5927b6,'stderr':_0xf0ce08[_0x287443(0x1e0)]()||undefined}),_0x4cea07(_0x4de408);});});}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- (function(_0x20451b,_0xe11f5c){const _0x307ab3=a32_0xc4c0,_0x406d9b=_0x20451b();while(!![]){try{const _0x53fffa=-parseInt(_0x307ab3(0x1eb))/0x1+parseInt(_0x307ab3(0x1fa))/0x2*(parseInt(_0x307ab3(0x1fb))/0x3)+-parseInt(_0x307ab3(0x1e0))/0x4*(parseInt(_0x307ab3(0x1e2))/0x5)+parseInt(_0x307ab3(0x1e5))/0x6+parseInt(_0x307ab3(0x1fd))/0x7+-parseInt(_0x307ab3(0x1f9))/0x8+-parseInt(_0x307ab3(0x1e1))/0x9*(-parseInt(_0x307ab3(0x1de))/0xa);if(_0x53fffa===_0xe11f5c)break;else _0x406d9b['push'](_0x406d9b['shift']());}catch(_0xdc7370){_0x406d9b['push'](_0x406d9b['shift']());}}}(a32_0x2c01,0x78c1e));import{logger}from'../utils/logger.js';function a32_0x2c01(){const _0x2a0bcf=['command','logs.details','7130144XrxNxR','210976gUbovP','15TkrXSy','log','3856321cbQSML','clearLogs','setLogPath','en-US','80eSjyVL','language','6292KuXjDC','708912mVAmmq','1265hpvcRs','level','logs.cleared','4186680PRrbxU','toLocaleString','success','forEach','stringify','warn','622408ogHTdC','zh-CN','logs.header','length','timestamp','details','logs.time','logs.duration','cwd','duration','logs.noLogs','readLogs'];a32_0x2c01=function(){return _0x2a0bcf;};return a32_0x2c01();}function a32_0xc4c0(_0x8653eb,_0x19697a){_0x8653eb=_0x8653eb-0x1db;const _0x2c01c9=a32_0x2c01();let _0xc4c02a=_0x2c01c9[_0x8653eb];return _0xc4c02a;}import a32_0x524dea from'../i18n/index.js';const t=a32_0x524dea['t']['bind'](a32_0x524dea);export function showLogs(){const _0x203823=a32_0xc4c0;logger[_0x203823(0x1dc)](process[_0x203823(0x1f3)]());const _0x1e5a9a=logger[_0x203823(0x1f6)]();if(_0x1e5a9a['length']===0x0){console['log'](t(_0x203823(0x1f5)));return;}console[_0x203823(0x1fc)](t(_0x203823(0x1ed))),_0x1e5a9a[_0x203823(0x1e8)]((_0x43bf58,_0x25a462)=>{const _0x253405=_0x203823,_0x1398a0=a32_0x524dea[_0x253405(0x1df)]===_0x253405(0x1ec)?_0x253405(0x1ec):_0x253405(0x1dd),_0x192f57=new Date(_0x43bf58[_0x253405(0x1ef)])[_0x253405(0x1e6)](_0x1398a0),_0x48715d=_0x43bf58['level']===_0x253405(0x1e7)?'√':_0x43bf58[_0x253405(0x1e3)]==='error'?'×':_0x43bf58[_0x253405(0x1e3)]===_0x253405(0x1ea)?'!':'i';console['log'](_0x25a462+0x1+'.\x20'+_0x48715d+'\x20['+_0x43bf58[_0x253405(0x1f7)]+']\x20'+_0x43bf58['message']),console['log'](t(_0x253405(0x1f1),{'time':_0x192f57})),_0x43bf58[_0x253405(0x1f4)]&&console['log'](t(_0x253405(0x1f2),{'duration':_0x43bf58[_0x253405(0x1f4)]})),_0x43bf58[_0x253405(0x1f0)]&&Object['keys'](_0x43bf58['details'])[_0x253405(0x1ee)]>0x0&&console[_0x253405(0x1fc)](t(_0x253405(0x1f8),{'details':JSON[_0x253405(0x1e9)](_0x43bf58[_0x253405(0x1f0)],null,0x2)})),console[_0x253405(0x1fc)]('');});}export function clearLogs(){const _0x4fb3fb=a32_0xc4c0;logger[_0x4fb3fb(0x1dc)](process[_0x4fb3fb(0x1f3)]()),logger[_0x4fb3fb(0x1db)](),console[_0x4fb3fb(0x1fc)](t(_0x4fb3fb(0x1e4)));}
1
+ const a32_0x189048=a32_0x1ab3;function a32_0x59f8(){const _0x52ca6c=['294WAeJKO','warn','details','36jUhSen','53930dEQakp','logs.details','logs.header','774btwLFH','setLogPath','742806RDczwF','logs.noLogs','bind','toLocaleString','zh-CN','stringify','success','message','127384GTrMbc','268885kZKSrd','3558500ZZyUZK','length','en-US','logs.duration','logs.cleared','cwd','clearLogs','2313868ecluGk','duration','259201LgCtkq','level','readLogs','3owEBcQ','timestamp','keys','log'];a32_0x59f8=function(){return _0x52ca6c;};return a32_0x59f8();}(function(_0x22ae7f,_0x43d31f){const _0xeebca0=a32_0x1ab3,_0x327249=_0x22ae7f();while(!![]){try{const _0x3c7900=-parseInt(_0xeebca0(0x10c))/0x1+-parseInt(_0xeebca0(0xf9))/0x2+parseInt(_0xeebca0(0x10f))/0x3*(parseInt(_0xeebca0(0x10a))/0x4)+parseInt(_0xeebca0(0x102))/0x5*(parseInt(_0xeebca0(0x116))/0x6)+parseInt(_0xeebca0(0x113))/0x7*(-parseInt(_0xeebca0(0x101))/0x8)+-parseInt(_0xeebca0(0xf7))/0x9*(-parseInt(_0xeebca0(0x117))/0xa)+parseInt(_0xeebca0(0x103))/0xb;if(_0x3c7900===_0x43d31f)break;else _0x327249['push'](_0x327249['shift']());}catch(_0x4f1f89){_0x327249['push'](_0x327249['shift']());}}}(a32_0x59f8,0x5efc1));import{logger}from'../utils/logger.js';import a32_0x3c55ef from'../i18n/index.js';function a32_0x1ab3(_0x379606,_0x1b821c){_0x379606=_0x379606-0xf5;const _0x59f83a=a32_0x59f8();let _0x1ab3bf=_0x59f83a[_0x379606];return _0x1ab3bf;}const t=a32_0x3c55ef['t'][a32_0x189048(0xfb)](a32_0x3c55ef);export function showLogs(){const _0x12b5f0=a32_0x189048;logger[_0x12b5f0(0xf8)](process[_0x12b5f0(0x108)]());const _0x3114f8=logger[_0x12b5f0(0x10e)]();if(_0x3114f8[_0x12b5f0(0x104)]===0x0){console[_0x12b5f0(0x112)](t(_0x12b5f0(0xfa)));return;}console[_0x12b5f0(0x112)](t(_0x12b5f0(0xf6))),_0x3114f8['forEach']((_0xbade64,_0x792617)=>{const _0x3c1bcc=_0x12b5f0,_0x4bc4b5=a32_0x3c55ef['language']===_0x3c1bcc(0xfd)?_0x3c1bcc(0xfd):_0x3c1bcc(0x105),_0x56364f=new Date(_0xbade64[_0x3c1bcc(0x110)])[_0x3c1bcc(0xfc)](_0x4bc4b5),_0x49054b=_0xbade64[_0x3c1bcc(0x10d)]===_0x3c1bcc(0xff)?'√':_0xbade64[_0x3c1bcc(0x10d)]==='error'?'×':_0xbade64[_0x3c1bcc(0x10d)]===_0x3c1bcc(0x114)?'!':'i';console[_0x3c1bcc(0x112)](_0x792617+0x1+'.\x20'+_0x49054b+'\x20['+_0xbade64['command']+']\x20'+_0xbade64[_0x3c1bcc(0x100)]),console[_0x3c1bcc(0x112)](t('logs.time',{'time':_0x56364f})),_0xbade64[_0x3c1bcc(0x10b)]&&console[_0x3c1bcc(0x112)](t(_0x3c1bcc(0x106),{'duration':_0xbade64['duration']})),_0xbade64[_0x3c1bcc(0x115)]&&Object[_0x3c1bcc(0x111)](_0xbade64[_0x3c1bcc(0x115)])[_0x3c1bcc(0x104)]>0x0&&console[_0x3c1bcc(0x112)](t(_0x3c1bcc(0xf5),{'details':JSON[_0x3c1bcc(0xfe)](_0xbade64['details'],null,0x2)})),console['log']('');});}export function clearLogs(){const _0x31419d=a32_0x189048;logger[_0x31419d(0xf8)](process[_0x31419d(0x108)]()),logger[_0x31419d(0x109)](),console[_0x31419d(0x112)](t(_0x31419d(0x107)));}
@@ -1 +1 @@
1
- (function(_0x499b77,_0x1ab8bd){const _0x1ccaea=a33_0xdce1,_0x24eb2d=_0x499b77();while(!![]){try{const _0x265631=parseInt(_0x1ccaea(0x115))/0x1*(-parseInt(_0x1ccaea(0x127))/0x2)+-parseInt(_0x1ccaea(0x125))/0x3*(-parseInt(_0x1ccaea(0x12c))/0x4)+-parseInt(_0x1ccaea(0x110))/0x5+-parseInt(_0x1ccaea(0x121))/0x6+-parseInt(_0x1ccaea(0x10d))/0x7*(-parseInt(_0x1ccaea(0x124))/0x8)+-parseInt(_0x1ccaea(0x11d))/0x9*(parseInt(_0x1ccaea(0x12b))/0xa)+parseInt(_0x1ccaea(0x11e))/0xb;if(_0x265631===_0x1ab8bd)break;else _0x24eb2d['push'](_0x24eb2d['shift']());}catch(_0x4ef8af){_0x24eb2d['push'](_0x24eb2d['shift']());}}}(a33_0x5af7,0x2f188));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a33_0x5af7(){const _0x660273=['470315VTBFqc','预览服务器启动成功','启动预览服务器','info','预览服务器启动出错','55681XHkqDa','preview','success','message','cwd','toString','error','vite\x20preview\x20exited\x20with\x20code\x20','9GScMjo','6864363uvTJyG','stderr','trim','2209350uOeqBw','vite','close','11360Toevlv','341697IOZfzm','预览服务器启动失败','10ISBbkZ','data','node_modules','inherit','204740tAfrfk','8qiGvxM','.bin','env','504nhMMQt','now','vite\x20preview'];a33_0x5af7=function(){return _0x660273;};return a33_0x5af7();}function a33_0xdce1(_0x3e63db,_0x538713){_0x3e63db=_0x3e63db-0x10c;const _0x5af722=a33_0x5af7();let _0xdce153=_0x5af722[_0x3e63db];return _0xdce153;}export function runPreview(){return new Promise((_0x2dbe8d,_0x1d9548)=>{const _0x250b61=a33_0xdce1,_0x19dc11=Date[_0x250b61(0x10e)]();logger[_0x250b61(0x113)](_0x250b61(0x116),_0x250b61(0x112),{'command':_0x250b61(0x10f)});let _0x590e77='';const _0x2bd96c=spawn(_0x250b61(0x122),['preview'],{'stdio':[_0x250b61(0x12a),_0x250b61(0x12a),'pipe'],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x250b61(0x119)](),_0x250b61(0x129),_0x250b61(0x12d))+delimiter+process[_0x250b61(0x10c)]['PATH']}});_0x2bd96c[_0x250b61(0x11f)]?.['on'](_0x250b61(0x128),_0x53db93=>{const _0x24a527=_0x250b61;_0x590e77+=_0x53db93[_0x24a527(0x11a)]();}),_0x2bd96c['on'](_0x250b61(0x123),_0x3c83d3=>{const _0x53e61f=_0x250b61,_0x125427=Date[_0x53e61f(0x10e)]()-_0x19dc11;if(_0x3c83d3===0x0||_0x3c83d3===null)logger[_0x53e61f(0x117)](_0x53e61f(0x116),_0x53e61f(0x111),_0x125427),_0x2dbe8d();else{const _0x2fa897={'exitCode':_0x3c83d3,'duration':_0x125427,'command':'vite\x20preview','cwd':process[_0x53e61f(0x119)]()};_0x590e77[_0x53e61f(0x120)]()&&(_0x2fa897[_0x53e61f(0x11f)]=_0x590e77['trim']()),logger[_0x53e61f(0x11b)]('preview',_0x53e61f(0x126),_0x2fa897),_0x1d9548(new Error(_0x53e61f(0x11c)+_0x3c83d3));}}),_0x2bd96c['on']('error',_0x5942be=>{const _0x5acbb2=_0x250b61,_0x205cea=Date[_0x5acbb2(0x10e)]()-_0x19dc11;logger[_0x5acbb2(0x11b)](_0x5acbb2(0x116),_0x5acbb2(0x114),{'error':_0x5942be[_0x5acbb2(0x118)],'duration':_0x205cea,'stderr':_0x590e77['trim']()||undefined}),_0x1d9548(_0x5942be);});});}
1
+ function a33_0x57cb(_0x4d7cc8,_0x1361e4){_0x4d7cc8=_0x4d7cc8-0x1e4;const _0x6abf37=a33_0x6abf();let _0x57cb9e=_0x6abf37[_0x4d7cc8];return _0x57cb9e;}(function(_0x2b4410,_0x28ef26){const _0x11c4fa=a33_0x57cb,_0x37ff6e=_0x2b4410();while(!![]){try{const _0x345009=-parseInt(_0x11c4fa(0x1e9))/0x1*(-parseInt(_0x11c4fa(0x1f8))/0x2)+parseInt(_0x11c4fa(0x1f6))/0x3*(parseInt(_0x11c4fa(0x1e6))/0x4)+parseInt(_0x11c4fa(0x1ea))/0x5*(parseInt(_0x11c4fa(0x206))/0x6)+parseInt(_0x11c4fa(0x1e5))/0x7*(-parseInt(_0x11c4fa(0x207))/0x8)+-parseInt(_0x11c4fa(0x1fd))/0x9*(-parseInt(_0x11c4fa(0x1f1))/0xa)+-parseInt(_0x11c4fa(0x1e8))/0xb*(-parseInt(_0x11c4fa(0x1f0))/0xc)+parseInt(_0x11c4fa(0x1ff))/0xd*(-parseInt(_0x11c4fa(0x1f9))/0xe);if(_0x345009===_0x28ef26)break;else _0x37ff6e['push'](_0x37ff6e['shift']());}catch(_0x50f000){_0x37ff6e['push'](_0x37ff6e['shift']());}}}(a33_0x6abf,0x819bc));function a33_0x6abf(){const _0x3934a7=['toString','info','env','81VYUMEA','vite\x20preview\x20exited\x20with\x20code\x20','650yArElc','now','.bin','PATH','success','预览服务器启动出错','vite\x20preview','60kTOAlW','688axMiIA','cwd','14588soSQLs','384428xrCVwM','error','11adXDBv','345343jnLEPq','383055yPyOzr','node_modules','inherit','pipe','预览服务器启动失败','close','1075560LTBVJq','461710IpJich','trim','启动预览服务器','preview','data','12qMCZsc','vite','2RJtWzp','361466RzmbwA'];a33_0x6abf=function(){return _0x3934a7;};return a33_0x6abf();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x4c2281,_0x392af0)=>{const _0x233794=a33_0x57cb,_0x2ed3ef=Date[_0x233794(0x200)]();logger[_0x233794(0x1fb)](_0x233794(0x1f4),_0x233794(0x1f3),{'command':_0x233794(0x205)});let _0x4dabdf='';const _0xb369da=spawn(_0x233794(0x1f7),[_0x233794(0x1f4)],{'stdio':[_0x233794(0x1ec),_0x233794(0x1ec),_0x233794(0x1ed)],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x233794(0x1e4)](),_0x233794(0x1eb),_0x233794(0x201))+delimiter+process[_0x233794(0x1fc)][_0x233794(0x202)]}});_0xb369da['stderr']?.['on'](_0x233794(0x1f5),_0x11a1ea=>{const _0x165fa9=_0x233794;_0x4dabdf+=_0x11a1ea[_0x165fa9(0x1fa)]();}),_0xb369da['on'](_0x233794(0x1ef),_0x27ab4b=>{const _0x4a2036=_0x233794,_0x2ea1b9=Date[_0x4a2036(0x200)]()-_0x2ed3ef;if(_0x27ab4b===0x0||_0x27ab4b===null)logger[_0x4a2036(0x203)](_0x4a2036(0x1f4),'预览服务器启动成功',_0x2ea1b9),_0x4c2281();else{const _0x29a5c4={'exitCode':_0x27ab4b,'duration':_0x2ea1b9,'command':_0x4a2036(0x205),'cwd':process[_0x4a2036(0x1e4)]()};_0x4dabdf['trim']()&&(_0x29a5c4['stderr']=_0x4dabdf[_0x4a2036(0x1f2)]()),logger[_0x4a2036(0x1e7)](_0x4a2036(0x1f4),_0x4a2036(0x1ee),_0x29a5c4),_0x392af0(new Error(_0x4a2036(0x1fe)+_0x27ab4b));}}),_0xb369da['on'](_0x233794(0x1e7),_0x2d0b8e=>{const _0xacb1e7=_0x233794,_0x1c5023=Date['now']()-_0x2ed3ef;logger['error'](_0xacb1e7(0x1f4),_0xacb1e7(0x204),{'error':_0x2d0b8e['message'],'duration':_0x1c5023,'stderr':_0x4dabdf[_0xacb1e7(0x1f2)]()||undefined}),_0x392af0(_0x2d0b8e);});});}
@@ -1 +1 @@
1
- (function(_0x62781a,_0x50a046){const _0x2f322c=a34_0x270f,_0x39835d=_0x62781a();while(!![]){try{const _0x18e3d4=parseInt(_0x2f322c(0x18c))/0x1*(-parseInt(_0x2f322c(0x1a3))/0x2)+-parseInt(_0x2f322c(0x19b))/0x3+parseInt(_0x2f322c(0x195))/0x4+parseInt(_0x2f322c(0x19d))/0x5*(parseInt(_0x2f322c(0x198))/0x6)+parseInt(_0x2f322c(0x189))/0x7+-parseInt(_0x2f322c(0x1a1))/0x8*(parseInt(_0x2f322c(0x196))/0x9)+parseInt(_0x2f322c(0x1a2))/0xa*(parseInt(_0x2f322c(0x187))/0xb);if(_0x18e3d4===_0x50a046)break;else _0x39835d['push'](_0x39835d['shift']());}catch(_0x36ae68){_0x39835d['push'](_0x39835d['shift']());}}}(a34_0xf7cc,0x90d13));import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';function a34_0x270f(_0x5e5126,_0x381d96){_0x5e5126=_0x5e5126-0x186;const _0xf7cc49=a34_0xf7cc();let _0x270fbb=_0xf7cc49[_0x5e5126];return _0x270fbb;}import{execa}from'execa';export async function runStart(_0xacb4bf){const _0x302903=a34_0x270f,_0x5b64ec=Date['now'](),_0x5edd91=_0xacb4bf||process[_0x302903(0x18a)](),_0x5599ed=await checkCliVersion();_0x5599ed[_0x302903(0x190)]&&(printCliUpgradeWarning(_0x5599ed),logger[_0x302903(0x199)](_0x302903(0x1a5),_0x302903(0x1a6),{'currentVersion':_0x5599ed[_0x302903(0x188)],'stableVersion':_0x5599ed['stableVersion']}));const _0x2fbe14=await checkSdkVersion(_0x5edd91);_0x2fbe14[_0x302903(0x190)]&&(printSdkUpgradeWarning(_0x2fbe14),logger[_0x302903(0x199)](_0x302903(0x1a5),_0x302903(0x193),{'currentVersion':_0x2fbe14[_0x302903(0x1a0)],'stableVersion':_0x2fbe14[_0x302903(0x19a)]}));logger[_0x302903(0x1a7)](_0x302903(0x1a5),'启动开发服务器',{'command':_0x302903(0x1a4),'cwd':_0x5edd91});try{await execa(_0x302903(0x1a4),[],{'cwd':_0x5edd91,'stdio':_0x302903(0x18f),'preferLocal':!![],'localDir':_0x5edd91,'env':{...process[_0x302903(0x19f)]}});const _0x3fc18f=Date[_0x302903(0x197)]()-_0x5b64ec;logger[_0x302903(0x186)](_0x302903(0x1a5),_0x302903(0x192),_0x3fc18f);}catch(_0x56405e){const _0x3d1aa6=Date[_0x302903(0x197)]()-_0x5b64ec,_0x56b426={'duration':_0x3d1aa6,'command':'vite','cwd':_0x5edd91};if(_0x56405e&&typeof _0x56405e===_0x302903(0x191)){const _0x34e97b=_0x56405e;_0x34e97b[_0x302903(0x194)]!==undefined&&(_0x56b426[_0x302903(0x194)]=_0x34e97b[_0x302903(0x194)]),_0x34e97b[_0x302903(0x18b)]&&(_0x56b426[_0x302903(0x18b)]=_0x34e97b[_0x302903(0x18b)]),_0x34e97b[_0x302903(0x19c)]&&(_0x56b426[_0x302903(0x18d)]=!![]),_0x34e97b[_0x302903(0x19e)]&&(_0x56b426[_0x302903(0x18e)]=_0x34e97b['message']);}logger[_0x302903(0x18e)](_0x302903(0x1a5),'开发服务器启动失败',_0x56b426);throw _0x56405e;}}function a34_0xf7cc(){const _0x3180e7=['278368QpLSFy','vite','start','CLI\x20版本有更新','info','success','2274349EszSmA','currentVersion','3800769dhtDDd','cwd','stderr','3mquTts','timeout','error','inherit','needsUpgrade','object','开发服务器启动成功','SDK\x20版本有更新','exitCode','391020GGUULr','5286816NmSKHK','now','1614xzYOUz','warn','stableVersion','731781HCkcJI','timedOut','10190OLJHhU','message','env','version','16ZbRiOB','60ATlxAm'];a34_0xf7cc=function(){return _0x3180e7;};return a34_0xf7cc();}
1
+ (function(_0x5f10c0,_0x34e5d4){const _0x275df4=a34_0x9766,_0x278164=_0x5f10c0();while(!![]){try{const _0x212ad7=parseInt(_0x275df4(0x1e9))/0x1*(-parseInt(_0x275df4(0x1d9))/0x2)+parseInt(_0x275df4(0x1f1))/0x3*(parseInt(_0x275df4(0x1eb))/0x4)+parseInt(_0x275df4(0x1de))/0x5*(-parseInt(_0x275df4(0x1e3))/0x6)+-parseInt(_0x275df4(0x1dc))/0x7+parseInt(_0x275df4(0x1db))/0x8*(parseInt(_0x275df4(0x1e6))/0x9)+-parseInt(_0x275df4(0x1ee))/0xa+-parseInt(_0x275df4(0x1f4))/0xb*(-parseInt(_0x275df4(0x1f5))/0xc);if(_0x212ad7===_0x34e5d4)break;else _0x278164['push'](_0x278164['shift']());}catch(_0x1267a0){_0x278164['push'](_0x278164['shift']());}}}(a34_0x42bf,0xe338b));import{logger}from'../utils/logger.js';function a34_0x42bf(){const _0x4ef637=['开发服务器启动成功','stderr','328273dCTZWc','1464NHfXup','exitCode','info','223232JpGxti','needsUpgrade','26584JnkRUT','1356509JjFBqJ','start','72505rIVLAT','warn','env','object','inherit','708OmQxVT','启动开发服务器','开发服务器启动失败','1503TWtLym','message','now','6zbZJhY','vite','8urqDRh','cwd','stableVersion','17254590MfUeJX','currentVersion','error','1552458oqbGnf'];a34_0x42bf=function(){return _0x4ef637;};return a34_0x42bf();}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';function a34_0x9766(_0x24e17c,_0x62359d){_0x24e17c=_0x24e17c-0x1d9;const _0x42bf9d=a34_0x42bf();let _0x976686=_0x42bf9d[_0x24e17c];return _0x976686;}import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';export async function runStart(_0x1bf968){const _0x2d5f30=a34_0x9766,_0x2635c0=Date[_0x2d5f30(0x1e8)](),_0x5c2e33=_0x1bf968||process[_0x2d5f30(0x1ec)](),_0x28e389=await checkCliVersion();_0x28e389[_0x2d5f30(0x1da)]&&(printCliUpgradeWarning(_0x28e389),logger[_0x2d5f30(0x1df)](_0x2d5f30(0x1dd),'CLI\x20版本有更新',{'currentVersion':_0x28e389[_0x2d5f30(0x1ef)],'stableVersion':_0x28e389[_0x2d5f30(0x1ed)]}));const _0x56acf2=await checkSdkVersion(_0x5c2e33);_0x56acf2['needsUpgrade']&&(printSdkUpgradeWarning(_0x56acf2),logger[_0x2d5f30(0x1df)](_0x2d5f30(0x1dd),'SDK\x20版本有更新',{'currentVersion':_0x56acf2['version'],'stableVersion':_0x56acf2[_0x2d5f30(0x1ed)]}));logger[_0x2d5f30(0x1f7)](_0x2d5f30(0x1dd),_0x2d5f30(0x1e4),{'command':_0x2d5f30(0x1ea),'cwd':_0x5c2e33});try{await execa(_0x2d5f30(0x1ea),[],{'cwd':_0x5c2e33,'stdio':_0x2d5f30(0x1e2),'preferLocal':!![],'localDir':_0x5c2e33,'env':{...process[_0x2d5f30(0x1e0)]}});const _0x5c9791=Date[_0x2d5f30(0x1e8)]()-_0x2635c0;logger['success'](_0x2d5f30(0x1dd),_0x2d5f30(0x1f2),_0x5c9791);}catch(_0x160822){const _0x249da8=Date[_0x2d5f30(0x1e8)]()-_0x2635c0,_0x55241c={'duration':_0x249da8,'command':_0x2d5f30(0x1ea),'cwd':_0x5c2e33};if(_0x160822&&typeof _0x160822===_0x2d5f30(0x1e1)){const _0x506f53=_0x160822;_0x506f53[_0x2d5f30(0x1f6)]!==undefined&&(_0x55241c['exitCode']=_0x506f53['exitCode']),_0x506f53[_0x2d5f30(0x1f3)]&&(_0x55241c[_0x2d5f30(0x1f3)]=_0x506f53[_0x2d5f30(0x1f3)]),_0x506f53['timedOut']&&(_0x55241c['timeout']=!![]),_0x506f53[_0x2d5f30(0x1e7)]&&(_0x55241c[_0x2d5f30(0x1f0)]=_0x506f53[_0x2d5f30(0x1e7)]);}logger[_0x2d5f30(0x1f0)](_0x2d5f30(0x1dd),_0x2d5f30(0x1e5),_0x55241c);throw _0x160822;}}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5c1273,_0x28c793){const _0x8a8eac=a35_0x5140,_0x4182ad=_0x5c1273();while(!![]){try{const _0x49a99d=-parseInt(_0x8a8eac(0x80))/0x1+parseInt(_0x8a8eac(0x77))/0x2*(-parseInt(_0x8a8eac(0x78))/0x3)+-parseInt(_0x8a8eac(0x7a))/0x4*(-parseInt(_0x8a8eac(0x84))/0x5)+parseInt(_0x8a8eac(0x74))/0x6+parseInt(_0x8a8eac(0x89))/0x7+parseInt(_0x8a8eac(0x86))/0x8*(-parseInt(_0x8a8eac(0x8c))/0x9)+parseInt(_0x8a8eac(0x75))/0xa*(-parseInt(_0x8a8eac(0x8d))/0xb);if(_0x49a99d===_0x28c793)break;else _0x4182ad['push'](_0x4182ad['shift']());}catch(_0x35b013){_0x4182ad['push'](_0x4182ad['shift']());}}}(a35_0x3ab9,0x8f7a2));function a35_0x3ab9(){const _0x24e9af=['667791MMxGMB','359282DRfCML','warn','cwd','启动开发服务器','inherit','now','currentVersion','4686288wFFrKZ','230EPaLvY','message','428zGeDFa','4965WpUJEw','env','4583428oBeIAO','needsUpgrade','timeout','error','开发服务器启动失败','start','608604yVmHTi','exitCode','vite','object','5sgpcjq','info','16RgYCDj','timedOut','stableVersion','3662225IyXlWi','stderr','SDK\x20版本有更新'];a35_0x3ab9=function(){return _0x24e9af;};return a35_0x3ab9();}import{logger}from'../utils/logger.js';function a35_0x5140(_0x30935d,_0xf5d6d7){_0x30935d=_0x30935d-0x70;const _0x3ab9e4=a35_0x3ab9();let _0x514005=_0x3ab9e4[_0x30935d];return _0x514005;}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';export async function runStart(_0x14fb73){const _0x24d363=a35_0x5140,_0x14c461=Date[_0x24d363(0x72)](),_0x420127=_0x14fb73||process[_0x24d363(0x8f)](),_0x4e4799=await checkCliVersion();_0x4e4799[_0x24d363(0x7b)]&&(printCliUpgradeWarning(_0x4e4799),logger[_0x24d363(0x8e)](_0x24d363(0x7f),'CLI\x20版本有更新',{'currentVersion':_0x4e4799[_0x24d363(0x73)],'stableVersion':_0x4e4799['stableVersion']}));const _0x163386=await checkSdkVersion(_0x420127);_0x163386[_0x24d363(0x7b)]&&(printSdkUpgradeWarning(_0x163386),logger[_0x24d363(0x8e)]('start',_0x24d363(0x8b),{'currentVersion':_0x163386['version'],'stableVersion':_0x163386[_0x24d363(0x88)]}));logger[_0x24d363(0x85)](_0x24d363(0x7f),_0x24d363(0x70),{'command':'vite','cwd':_0x420127});try{await execa(_0x24d363(0x82),[],{'cwd':_0x420127,'stdio':_0x24d363(0x71),'preferLocal':!![],'localDir':_0x420127,'env':{...process[_0x24d363(0x79)]}});const _0x266f8b=Date[_0x24d363(0x72)]()-_0x14c461;logger['success']('start','开发服务器启动成功',_0x266f8b);}catch(_0x2e41f4){const _0x178986=Date[_0x24d363(0x72)]()-_0x14c461,_0x250489={'duration':_0x178986,'command':_0x24d363(0x82),'cwd':_0x420127};if(_0x2e41f4&&typeof _0x2e41f4===_0x24d363(0x83)){const _0x2b386c=_0x2e41f4;_0x2b386c[_0x24d363(0x81)]!==undefined&&(_0x250489[_0x24d363(0x81)]=_0x2b386c[_0x24d363(0x81)]),_0x2b386c[_0x24d363(0x8a)]&&(_0x250489[_0x24d363(0x8a)]=_0x2b386c[_0x24d363(0x8a)]),_0x2b386c[_0x24d363(0x87)]&&(_0x250489[_0x24d363(0x7c)]=!![]),_0x2b386c['message']&&(_0x250489[_0x24d363(0x7d)]=_0x2b386c[_0x24d363(0x76)]);}logger[_0x24d363(0x7d)]('start',_0x24d363(0x7e),_0x250489);throw _0x2e41f4;}}
1
+ function a35_0x4cd1(){const _0x34ff5e=['2571EuzUQR','CLI\x20版本有更新','success','now','3389690DsoPfM','99MJtaIJ','exitCode','start','version','info','开发服务器启动失败','needsUpgrade','stderr','119128WEwbDj','1546875iCAHuV','1696cggIsF','36mBUDPb','2XyYGFa','timeout','543543BnaZXV','stableVersion','267692JSrhVW','cwd','warn','启动开发服务器','object','inherit','currentVersion','196285YOqpfW','error','SDK\x20版本有更新','env','message','timedOut','vite'];a35_0x4cd1=function(){return _0x34ff5e;};return a35_0x4cd1();}(function(_0x4085d0,_0x515490){const _0x27aa98=a35_0xa1f1,_0x3c248d=_0x4085d0();while(!![]){try{const _0x53fcb2=-parseInt(_0x27aa98(0x1d4))/0x1*(-parseInt(_0x27aa98(0x1f3))/0x2)+-parseInt(_0x27aa98(0x1e2))/0x3*(-parseInt(_0x27aa98(0x1f1))/0x4)+parseInt(_0x27aa98(0x1db))/0x5*(-parseInt(_0x27aa98(0x1f2))/0x6)+-parseInt(_0x27aa98(0x1d2))/0x7+parseInt(_0x27aa98(0x1ef))/0x8*(parseInt(_0x27aa98(0x1e7))/0x9)+-parseInt(_0x27aa98(0x1e6))/0xa+parseInt(_0x27aa98(0x1f0))/0xb;if(_0x53fcb2===_0x515490)break;else _0x3c248d['push'](_0x3c248d['shift']());}catch(_0x45431e){_0x3c248d['push'](_0x3c248d['shift']());}}}(a35_0x4cd1,0x452be));import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';function a35_0xa1f1(_0x4ed006,_0x19ae67){_0x4ed006=_0x4ed006-0x1d1;const _0x4cd149=a35_0x4cd1();let _0xa1f1b9=_0x4cd149[_0x4ed006];return _0xa1f1b9;}export async function runStart(_0x10c198){const _0x1d4edd=a35_0xa1f1,_0x1cb65e=Date['now'](),_0x10d682=_0x10c198||process[_0x1d4edd(0x1d5)](),_0x6efb7=await checkCliVersion();_0x6efb7['needsUpgrade']&&(printCliUpgradeWarning(_0x6efb7),logger[_0x1d4edd(0x1d6)](_0x1d4edd(0x1e9),_0x1d4edd(0x1e3),{'currentVersion':_0x6efb7[_0x1d4edd(0x1da)],'stableVersion':_0x6efb7[_0x1d4edd(0x1d3)]}));const _0x269e2e=await checkSdkVersion(_0x10d682);_0x269e2e[_0x1d4edd(0x1ed)]&&(printSdkUpgradeWarning(_0x269e2e),logger[_0x1d4edd(0x1d6)](_0x1d4edd(0x1e9),_0x1d4edd(0x1dd),{'currentVersion':_0x269e2e[_0x1d4edd(0x1ea)],'stableVersion':_0x269e2e[_0x1d4edd(0x1d3)]}));logger[_0x1d4edd(0x1eb)](_0x1d4edd(0x1e9),_0x1d4edd(0x1d7),{'command':_0x1d4edd(0x1e1),'cwd':_0x10d682});try{await execa(_0x1d4edd(0x1e1),[],{'cwd':_0x10d682,'stdio':_0x1d4edd(0x1d9),'preferLocal':!![],'localDir':_0x10d682,'env':{...process[_0x1d4edd(0x1de)]}});const _0x5d8a2a=Date[_0x1d4edd(0x1e5)]()-_0x1cb65e;logger[_0x1d4edd(0x1e4)](_0x1d4edd(0x1e9),'开发服务器启动成功',_0x5d8a2a);}catch(_0x32ab73){const _0x23b926=Date[_0x1d4edd(0x1e5)]()-_0x1cb65e,_0x314787={'duration':_0x23b926,'command':'vite','cwd':_0x10d682};if(_0x32ab73&&typeof _0x32ab73===_0x1d4edd(0x1d8)){const _0x5ddb4c=_0x32ab73;_0x5ddb4c['exitCode']!==undefined&&(_0x314787[_0x1d4edd(0x1e8)]=_0x5ddb4c['exitCode']),_0x5ddb4c['stderr']&&(_0x314787[_0x1d4edd(0x1ee)]=_0x5ddb4c[_0x1d4edd(0x1ee)]),_0x5ddb4c[_0x1d4edd(0x1e0)]&&(_0x314787[_0x1d4edd(0x1d1)]=!![]),_0x5ddb4c['message']&&(_0x314787[_0x1d4edd(0x1dc)]=_0x5ddb4c[_0x1d4edd(0x1df)]);}logger['error'](_0x1d4edd(0x1e9),_0x1d4edd(0x1ec),_0x314787);throw _0x32ab73;}}
@@ -1 +1 @@
1
- (function(_0xc5d48b,_0x5595a2){const _0x5b57d6=a36_0x2f5d,_0x254320=_0xc5d48b();while(!![]){try{const _0x3417dd=parseInt(_0x5b57d6(0x1b8))/0x1*(parseInt(_0x5b57d6(0x1ae))/0x2)+parseInt(_0x5b57d6(0x1be))/0x3+parseInt(_0x5b57d6(0x1b5))/0x4*(-parseInt(_0x5b57d6(0x1b1))/0x5)+-parseInt(_0x5b57d6(0x1c6))/0x6+-parseInt(_0x5b57d6(0x1c3))/0x7+-parseInt(_0x5b57d6(0x1bf))/0x8*(parseInt(_0x5b57d6(0x1bd))/0x9)+parseInt(_0x5b57d6(0x1b6))/0xa;if(_0x3417dd===_0x5595a2)break;else _0x254320['push'](_0x254320['shift']());}catch(_0x562d61){_0x254320['push'](_0x254320['shift']());}}}(a36_0x2daf,0x7f921));import{jsxs as a36_0xbf8451,jsx as a36_0x5adf71}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';function a36_0x2f5d(_0x444343,_0x3d7aba){_0x444343=_0x444343-0x1ad;const _0x2daf4e=a36_0x2daf();let _0x2f5d7a=_0x2daf4e[_0x444343];return _0x2f5d7a;}export function ConfigHelp(){const _0x3a465c=a36_0x2f5d,{t:_0x1086e4}=useI18n(),_0x2ccf71=[{'command':_0x3a465c(0x1b7),'description':_0x1086e4('config.help.set')},{'command':'lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1c2))},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1c1))}],_0x5cab80=[{'command':'lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description':_0x1086e4(_0x3a465c(0x1b3))},{'command':_0x3a465c(0x1c5),'description':_0x1086e4(_0x3a465c(0x1ad))},{'command':_0x3a465c(0x1b2),'description':_0x1086e4(_0x3a465c(0x1c4))}];return a36_0xbf8451(Box,{'flexDirection':_0x3a465c(0x1b4),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0x5adf71(Box,{'marginBottom':0x1,'children':a36_0xbf8451(Text,{'color':_0x3a465c(0x1b9),'children':['\x20','!','\x20\x20',_0x1086e4('config.help.invalidCommand')]})}),_0x2ccf71[_0x3a465c(0x1c0)](_0x563d43=>a36_0xbf8451(Box,{'children':[a36_0xbf8451(Text,{'children':[_0x3a465c(0x1bc),_0x563d43[_0x3a465c(0x1b0)]]}),a36_0x5adf71(Text,{'color':_0x3a465c(0x1b9),'children':_0x563d43[_0x3a465c(0x1af)]})]},_0x563d43['command'])),a36_0x5adf71(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0xbf8451(Text,{'color':'gray','children':[_0x3a465c(0x1ba),_0x1086e4(_0x3a465c(0x1bb))]})}),_0x5cab80[_0x3a465c(0x1c0)](_0x21eff4=>a36_0xbf8451(Box,{'children':[a36_0xbf8451(Text,{'children':[_0x3a465c(0x1bc),_0x21eff4[_0x3a465c(0x1b0)]]}),a36_0x5adf71(Text,{'color':'gray','children':_0x21eff4[_0x3a465c(0x1af)]})]},_0x21eff4[_0x3a465c(0x1b0)]))]});}function a36_0x2daf(){const _0x455f9e=['526950VzYuOF','description','command','80725WAvLkn','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','config.help.exampleApp','column','156BnQgAe','17857860jrGGec','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','2DhMPEF','gray','\x20*\x20','config.help.examples','\x20\x20\x20\x20','3564HkAgNw','1786041jCbmsY','12832DnoxTZ','map','config.help.list','config.help.get','6159608PGgLoD','config.help.exampleLocale','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','1444626zDkntI','config.help.exampleEnv'];a36_0x2daf=function(){return _0x455f9e;};return a36_0x2daf();}
1
+ (function(_0x1b2abb,_0x256cb9){const _0x1554a4=a36_0x333f,_0x6a68a4=_0x1b2abb();while(!![]){try{const _0x365072=parseInt(_0x1554a4(0x1a8))/0x1*(parseInt(_0x1554a4(0x1a2))/0x2)+parseInt(_0x1554a4(0x1ab))/0x3*(-parseInt(_0x1554a4(0x1a7))/0x4)+-parseInt(_0x1554a4(0x197))/0x5+-parseInt(_0x1554a4(0x192))/0x6*(-parseInt(_0x1554a4(0x199))/0x7)+-parseInt(_0x1554a4(0x190))/0x8+-parseInt(_0x1554a4(0x1aa))/0x9+parseInt(_0x1554a4(0x19f))/0xa*(parseInt(_0x1554a4(0x196))/0xb);if(_0x365072===_0x256cb9)break;else _0x6a68a4['push'](_0x6a68a4['shift']());}catch(_0x4b2950){_0x6a68a4['push'](_0x6a68a4['shift']());}}}(a36_0x17f4,0x2deaa));function a36_0x17f4(){const _0xb007c8=['lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','2695WtyRmG','config.help.invalidCommand','config.help.exampleEnv','config.help.list','\x20*\x20','command','70lSKLew','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','config.help.set','652514xrxVqg','description','column','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','config.help.examples','492wwQuaY','1aXmxPj','\x20\x20\x20\x20','328914fcHtcs','3531uOxoOP','1711544oAYFDh','config.help.exampleLocale','2334MLVtDT','map','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','518936ZoUczh','1114600UhsMFG'];a36_0x17f4=function(){return _0xb007c8;};return a36_0x17f4();}function a36_0x333f(_0xf46bba,_0x5acd96){_0xf46bba=_0xf46bba-0x190;const _0x17f4f0=a36_0x17f4();let _0x333fdc=_0x17f4f0[_0xf46bba];return _0x333fdc;}import{jsxs as a36_0x1a9595,jsx as a36_0x69edda}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'../i18n/hooks.js';export function ConfigHelp(){const _0x3c2947=a36_0x333f,{t:_0x56b5e0}=useI18n(),_0x752215=[{'command':_0x3c2947(0x1a0),'description':_0x56b5e0(_0x3c2947(0x1a1))},{'command':_0x3c2947(0x194),'description':_0x56b5e0('config.help.get')},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x56b5e0(_0x3c2947(0x19c))}],_0x146466=[{'command':_0x3c2947(0x1a5),'description':_0x56b5e0('config.help.exampleApp')},{'command':_0x3c2947(0x198),'description':_0x56b5e0(_0x3c2947(0x19b))},{'command':'lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','description':_0x56b5e0(_0x3c2947(0x191))}];return a36_0x1a9595(Box,{'flexDirection':_0x3c2947(0x1a4),'marginTop':0x1,'marginBottom':0x1,'children':[a36_0x69edda(Box,{'marginBottom':0x1,'children':a36_0x1a9595(Text,{'color':'gray','children':['\x20','!','\x20\x20',_0x56b5e0(_0x3c2947(0x19a))]})}),_0x752215[_0x3c2947(0x193)](_0x502436=>a36_0x1a9595(Box,{'children':[a36_0x1a9595(Text,{'children':['\x20\x20\x20\x20',_0x502436['command']]}),a36_0x69edda(Text,{'color':_0x3c2947(0x195),'children':_0x502436[_0x3c2947(0x1a3)]})]},_0x502436[_0x3c2947(0x19e)])),a36_0x69edda(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0x1a9595(Text,{'color':_0x3c2947(0x195),'children':[_0x3c2947(0x19d),_0x56b5e0(_0x3c2947(0x1a6))]})}),_0x146466[_0x3c2947(0x193)](_0x596e7f=>a36_0x1a9595(Box,{'children':[a36_0x1a9595(Text,{'children':[_0x3c2947(0x1a9),_0x596e7f[_0x3c2947(0x19e)]]}),a36_0x69edda(Text,{'color':_0x3c2947(0x195),'children':_0x596e7f[_0x3c2947(0x1a3)]})]},_0x596e7f['command']))]});}
@@ -1 +1 @@
1
- (function(_0x3d8618,_0x69d207){const _0x103edd=a37_0x2cfd,_0x1ba967=_0x3d8618();while(!![]){try{const _0x5858db=parseInt(_0x103edd(0x111))/0x1+parseInt(_0x103edd(0x100))/0x2+-parseInt(_0x103edd(0x11a))/0x3*(-parseInt(_0x103edd(0x10a))/0x4)+parseInt(_0x103edd(0x118))/0x5*(-parseInt(_0x103edd(0x10b))/0x6)+-parseInt(_0x103edd(0x108))/0x7+-parseInt(_0x103edd(0x11b))/0x8*(-parseInt(_0x103edd(0xf6))/0x9)+-parseInt(_0x103edd(0x103))/0xa;if(_0x5858db===_0x69d207)break;else _0x1ba967['push'](_0x1ba967['shift']());}catch(_0x6771fe){_0x1ba967['push'](_0x1ba967['shift']());}}}(a37_0x466f,0x3c9d4));import{jsx as a37_0x39b58d,jsxs as a37_0x295d95}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x18c6c6 from'node:fs';import a37_0xd2e764 from'node:path';function a37_0x2cfd(_0x5a6839,_0x5683e2){_0x5a6839=_0x5a6839-0xf2;const _0x466f7d=a37_0x466f();let _0x2cfd3b=_0x466f7d[_0x5a6839];return _0x2cfd3b;}import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';function a37_0x466f(){const _0x5c0556=['config.validation.valueInvalid','renameSync','message','364842UfjqbN','config.success.localeSet','undefined','577990UzbiRO','includes','length','保存配置失败','get','2389660TyXfwx','daily','8476TixTJy','12ZKxquI','mkdirSync','appcode','string','stringify','set','98254slgFzm','help','env','config.validation.localeInvalid','config.validation.envInvalid','column','flags','303660ymfDuS','config.validation.noValue','687ZqCjYk','8XuLYmD','log','parse','input','config.scope.global','app','online','26937CZeDjD','unlinkSync','.tmp','dirname','locale','red','config.scope.project'];a37_0x466f=function(){return _0x5c0556;};return a37_0x466f();}export function Config(_0x5838c8){const _0x73d1d=a37_0x2cfd,{cli:_0x15182b}=_0x5838c8,{t:_0x3e3812}=useI18n(),_0x1c1efe=_0x15182b['input'][0x1],_0x518599=_0x15182b['input'][0x2],_0x49f5c4=[_0x73d1d(0x110),_0x73d1d(0x107)][_0x73d1d(0x104)](_0x1c1efe||''),_0xd3b8e8=_0x15182b[_0x73d1d(0xf2)]['length']>=0x3;if(_0x518599==='--help'||_0x15182b[_0x73d1d(0x117)][_0x73d1d(0x112)])return a37_0x39b58d(ConfigHelp,{});const _0x5ae89f=readConfig();if(_0x1c1efe===_0x73d1d(0x110)){if(_0x518599){const _0x26509a=_0x15182b['input'][0x3];if(typeof _0x26509a!==_0x73d1d(0x102)){if(_0x518599===_0x73d1d(0x113)&&![_0x73d1d(0xf5),_0x73d1d(0x109)][_0x73d1d(0x104)](_0x26509a))return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x115))})});if(_0x518599==='locale'&&!normalizeLocale(_0x26509a))return a37_0x39b58d(Box,{'flexDirection':_0x73d1d(0x116),'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x114))})});const _0x2f2277=isInProject(),_0x4bf374=_0x2f2277?projectConfigPath:globalConfigPath;let _0x3b8686={};try{if(existsSync(_0x4bf374)){const _0x14e87d=readFileSync(_0x4bf374,{'encoding':'utf8'});_0x14e87d&&(_0x3b8686=JSON[_0x73d1d(0x11d)](_0x14e87d));}}catch(_0x524c55){}if(typeof _0x26509a!==_0x73d1d(0x10e)||_0x26509a[_0x73d1d(0x105)]>0x1f4)return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0xfd))})});let _0x2bd70a=_0x518599,_0x6f6c32=_0x26509a;_0x518599==='app'&&(_0x2bd70a=_0x73d1d(0x10d),delete _0x3b8686[_0x73d1d(0xf4)]);_0x518599===_0x73d1d(0x10d)&&delete _0x3b8686['app'];_0x518599===_0x73d1d(0xfa)&&(_0x6f6c32=normalizeLocale(_0x26509a));_0x3b8686[_0x2bd70a]=_0x6f6c32;try{const _0x275f78=a37_0xd2e764[_0x73d1d(0xf9)](_0x4bf374);!existsSync(_0x275f78)&&a37_0x18c6c6[_0x73d1d(0x10c)](_0x275f78,{'recursive':!![]});const _0x2a8887=_0x4bf374+'.tmp';writeFileSync(_0x2a8887,JSON[_0x73d1d(0x10f)](_0x3b8686,null,0x2),{'encoding':'utf8','mode':0x180}),a37_0x18c6c6[_0x73d1d(0xfe)](_0x2a8887,_0x4bf374);const _0x499f0c=_0x3e3812(_0x2f2277?_0x73d1d(0xfc):_0x73d1d(0xf3));_0x518599===_0x73d1d(0x113)&&console[_0x73d1d(0x11c)](_0x3e3812('config.success.envSet',{'scope':_0x499f0c,'value':_0x26509a}));if(_0x518599===_0x73d1d(0xfa)){const _0x48059c=normalizeLocale(_0x26509a);console[_0x73d1d(0x11c)](_0x3e3812(_0x73d1d(0x101),{'scope':_0x499f0c,'value':_0x48059c}));}}catch(_0x4e7f55){const _0x2ed0d5=_0x4bf374+_0x73d1d(0xf8);try{existsSync(_0x2ed0d5)&&a37_0x18c6c6[_0x73d1d(0xf7)](_0x2ed0d5);}catch(_0x410a62){}return logger['error']('config',_0x73d1d(0x106),{'error':_0x4e7f55 instanceof Error?_0x4e7f55[_0x73d1d(0xff)]:String(_0x4e7f55),'configKey':_0x518599,'configValue':_0x26509a,'targetConfigPath':_0x4bf374}),a37_0x39b58d(Box,{'children':a37_0x295d95(Text,{'color':_0x73d1d(0xfb),'children':[_0x3e3812('config.validation.saveFailed'),':','\x20',_0x4e7f55 instanceof Error?_0x4e7f55[_0x73d1d(0xff)]:String(_0x4e7f55)]})});}return null;}return a37_0x39b58d(Box,{'children':a37_0x39b58d(Text,{'color':_0x73d1d(0xfb),'children':_0x3e3812(_0x73d1d(0x119))})});}}if(_0x1c1efe===_0x73d1d(0x107)){if(_0x518599){let _0x3ec91d=_0x518599;return _0x518599===_0x73d1d(0xf4)&&(_0x3ec91d=_0x73d1d(0x10d)),console[_0x73d1d(0x11c)](_0x5ae89f[_0x3ec91d]||'undefined'),null;}return null;}if(_0x1c1efe==='list')return console[_0x73d1d(0x11c)](JSON[_0x73d1d(0x10f)](_0x5ae89f,null,0x2)),null;if(!_0x49f5c4||!_0xd3b8e8)return a37_0x39b58d(ConfigHelp,{});return null;}
1
+ (function(_0x524715,_0x28e7bb){const _0x4f575a=a37_0x3678,_0x57c76a=_0x524715();while(!![]){try{const _0x497650=parseInt(_0x4f575a(0x138))/0x1+parseInt(_0x4f575a(0x116))/0x2*(-parseInt(_0x4f575a(0x121))/0x3)+parseInt(_0x4f575a(0x139))/0x4+parseInt(_0x4f575a(0x141))/0x5+parseInt(_0x4f575a(0x13d))/0x6+-parseInt(_0x4f575a(0x12d))/0x7*(-parseInt(_0x4f575a(0x125))/0x8)+parseInt(_0x4f575a(0x13e))/0x9*(-parseInt(_0x4f575a(0x11f))/0xa);if(_0x497650===_0x28e7bb)break;else _0x57c76a['push'](_0x57c76a['shift']());}catch(_0x1852c8){_0x57c76a['push'](_0x57c76a['shift']());}}}(a37_0x2fc5,0xab20a));import{jsx as a37_0x507143,jsxs as a37_0x3d12ca}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x5e7b5b from'node:fs';import a37_0x5628a6 from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';function a37_0x3678(_0x42fd36,_0x4a4f8d){_0x42fd36=_0x42fd36-0x114;const _0x2fc54a=a37_0x2fc5();let _0x367896=_0x2fc54a[_0x42fd36];return _0x367896;}import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';export function Config(_0x350b28){const _0x2dc860=a37_0x3678,{cli:_0x219534}=_0x350b28,{t:_0x5aedfa}=useI18n(),_0x2147e9=_0x219534[_0x2dc860(0x12b)][0x1],_0x28dc3f=_0x219534[_0x2dc860(0x12b)][0x2],_0x526f24=[_0x2dc860(0x114),_0x2dc860(0x12a)]['includes'](_0x2147e9||''),_0x472736=_0x219534[_0x2dc860(0x12b)][_0x2dc860(0x134)]>=0x3;if(_0x28dc3f===_0x2dc860(0x126)||_0x219534[_0x2dc860(0x132)][_0x2dc860(0x11a)])return a37_0x507143(ConfigHelp,{});const _0x30b96d=readConfig();if(_0x2147e9===_0x2dc860(0x114)){if(_0x28dc3f){const _0x419cb6=_0x219534[_0x2dc860(0x12b)][0x3];if(typeof _0x419cb6!==_0x2dc860(0x12c)){if(_0x28dc3f===_0x2dc860(0x140)&&![_0x2dc860(0x127),'daily'][_0x2dc860(0x117)](_0x419cb6))return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':'red','children':_0x5aedfa(_0x2dc860(0x13f))})});if(_0x28dc3f==='locale'&&!normalizeLocale(_0x419cb6))return a37_0x507143(Box,{'flexDirection':_0x2dc860(0x137),'children':a37_0x507143(Text,{'color':_0x2dc860(0x135),'children':_0x5aedfa('config.validation.localeInvalid')})});const _0x3b7880=isInProject(),_0x483a9b=_0x3b7880?projectConfigPath:globalConfigPath;let _0x414d69={};try{if(existsSync(_0x483a9b)){const _0x31614f=readFileSync(_0x483a9b,{'encoding':_0x2dc860(0x128)});_0x31614f&&(_0x414d69=JSON['parse'](_0x31614f));}}catch(_0x6c242c){}if(typeof _0x419cb6!==_0x2dc860(0x13a)||_0x419cb6['length']>0x1f4)return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':'red','children':_0x5aedfa(_0x2dc860(0x129))})});let _0x4a4098=_0x28dc3f,_0x2edb16=_0x419cb6;_0x28dc3f===_0x2dc860(0x11e)&&(_0x4a4098=_0x2dc860(0x131),delete _0x414d69[_0x2dc860(0x11e)]);_0x28dc3f===_0x2dc860(0x131)&&delete _0x414d69[_0x2dc860(0x11e)];_0x28dc3f===_0x2dc860(0x123)&&(_0x2edb16=normalizeLocale(_0x419cb6));_0x414d69[_0x4a4098]=_0x2edb16;try{const _0x20569c=a37_0x5628a6[_0x2dc860(0x118)](_0x483a9b);!existsSync(_0x20569c)&&a37_0x5e7b5b[_0x2dc860(0x120)](_0x20569c,{'recursive':!![]});const _0x2d725e=_0x483a9b+_0x2dc860(0x136);writeFileSync(_0x2d725e,JSON['stringify'](_0x414d69,null,0x2),{'encoding':'utf8','mode':0x180}),a37_0x5e7b5b[_0x2dc860(0x115)](_0x2d725e,_0x483a9b);const _0xaf54f9=_0x5aedfa(_0x3b7880?_0x2dc860(0x11b):_0x2dc860(0x11d));_0x28dc3f===_0x2dc860(0x140)&&console[_0x2dc860(0x133)](_0x5aedfa(_0x2dc860(0x124),{'scope':_0xaf54f9,'value':_0x419cb6}));if(_0x28dc3f===_0x2dc860(0x123)){const _0xc68a54=normalizeLocale(_0x419cb6);console[_0x2dc860(0x133)](_0x5aedfa('config.success.localeSet',{'scope':_0xaf54f9,'value':_0xc68a54}));}}catch(_0x4b3710){const _0x5507ef=_0x483a9b+'.tmp';try{existsSync(_0x5507ef)&&a37_0x5e7b5b[_0x2dc860(0x11c)](_0x5507ef);}catch(_0x304356){}return logger[_0x2dc860(0x12f)](_0x2dc860(0x13c),'保存配置失败',{'error':_0x4b3710 instanceof Error?_0x4b3710[_0x2dc860(0x122)]:String(_0x4b3710),'configKey':_0x28dc3f,'configValue':_0x419cb6,'targetConfigPath':_0x483a9b}),a37_0x507143(Box,{'children':a37_0x3d12ca(Text,{'color':_0x2dc860(0x135),'children':[_0x5aedfa(_0x2dc860(0x13b)),':','\x20',_0x4b3710 instanceof Error?_0x4b3710[_0x2dc860(0x122)]:String(_0x4b3710)]})});}return null;}return a37_0x507143(Box,{'children':a37_0x507143(Text,{'color':_0x2dc860(0x135),'children':_0x5aedfa(_0x2dc860(0x130))})});}}if(_0x2147e9===_0x2dc860(0x12a)){if(_0x28dc3f){let _0x4c17f1=_0x28dc3f;return _0x28dc3f===_0x2dc860(0x11e)&&(_0x4c17f1=_0x2dc860(0x131)),console['log'](_0x30b96d[_0x4c17f1]||_0x2dc860(0x12c)),null;}return null;}if(_0x2147e9===_0x2dc860(0x12e))return console[_0x2dc860(0x133)](JSON[_0x2dc860(0x119)](_0x30b96d,null,0x2)),null;if(!_0x526f24||!_0x472736)return a37_0x507143(ConfigHelp,{});return null;}function a37_0x2fc5(){const _0x451f6=['appcode','flags','log','length','red','.tmp','column','664898LCzLlj','1066312KncPlu','string','config.validation.saveFailed','config','7634352joAlbk','1872054HavEYN','config.validation.envInvalid','env','5392550xDOHBc','set','renameSync','108vUVqNa','includes','dirname','stringify','help','config.scope.project','unlinkSync','config.scope.global','app','170YhIZvo','mkdirSync','13380MrppbZ','message','locale','config.success.envSet','176OOLkRb','--help','online','utf8','config.validation.valueInvalid','get','input','undefined','380387TNpJeo','list','error','config.validation.noValue'];a37_0x2fc5=function(){return _0x451f6;};return a37_0x2fc5();}
@@ -1 +1 @@
1
- function a38_0x2344(_0x2b1ba2,_0x412e21){_0x2b1ba2=_0x2b1ba2-0x1e7;const _0x107943=a38_0x1079();let _0x2344a4=_0x107943[_0x2b1ba2];return _0x2344a4;}const a38_0x30d37a=a38_0x2344;function a38_0x1079(){const _0x3ce6dd=['https://user.lovrabet.com','3055654fuKSdH','https://daily-api.lovrabet.com','123248HrSSig','33bLWUNj','910ZVTpYQ','9011952LaCxiO','2773765BqDhdz','254414PNBBau','6TYEvKN','342FnkLcR','online','96943QHkUFW','60753LcDXDI','4GXiOsJ','https://user-daily.lovrabet.com'];a38_0x1079=function(){return _0x3ce6dd;};return a38_0x1079();}(function(_0x311942,_0x1a7517){const _0x8e5f4a=a38_0x2344,_0x1f48d9=_0x311942();while(!![]){try{const _0x141618=-parseInt(_0x8e5f4a(0x1ee))/0x1+-parseInt(_0x8e5f4a(0x1ea))/0x2*(-parseInt(_0x8e5f4a(0x1f6))/0x3)+parseInt(_0x8e5f4a(0x1f0))/0x4*(parseInt(_0x8e5f4a(0x1e9))/0x5)+-parseInt(_0x8e5f4a(0x1eb))/0x6*(parseInt(_0x8e5f4a(0x1f3))/0x7)+-parseInt(_0x8e5f4a(0x1f5))/0x8*(-parseInt(_0x8e5f4a(0x1ec))/0x9)+-parseInt(_0x8e5f4a(0x1e7))/0xa*(parseInt(_0x8e5f4a(0x1ef))/0xb)+-parseInt(_0x8e5f4a(0x1e8))/0xc;if(_0x141618===_0x1a7517)break;else _0x1f48d9['push'](_0x1f48d9['shift']());}catch(_0x41c6b5){_0x1f48d9['push'](_0x1f48d9['shift']());}}}(a38_0x1079,0xb7b14));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x30d37a(0x1ed)?a38_0x30d37a(0x1f2):a38_0x30d37a(0x1f1);export const getApiDomain=()=>getEnv()===a38_0x30d37a(0x1ed)?'https://api.lovrabet.com':a38_0x30d37a(0x1f4);
1
+ const a38_0x303669=a38_0x36c3;(function(_0x59bfb5,_0x38783c){const _0x47b067=a38_0x36c3,_0x25281f=_0x59bfb5();while(!![]){try{const _0x4f5ec4=parseInt(_0x47b067(0x168))/0x1*(parseInt(_0x47b067(0x163))/0x2)+-parseInt(_0x47b067(0x165))/0x3*(parseInt(_0x47b067(0x161))/0x4)+parseInt(_0x47b067(0x167))/0x5+parseInt(_0x47b067(0x15f))/0x6*(parseInt(_0x47b067(0x166))/0x7)+parseInt(_0x47b067(0x169))/0x8+parseInt(_0x47b067(0x162))/0x9+-parseInt(_0x47b067(0x164))/0xa;if(_0x4f5ec4===_0x38783c)break;else _0x25281f['push'](_0x25281f['shift']());}catch(_0x2db75c){_0x25281f['push'](_0x25281f['shift']());}}}(a38_0x3532,0xd111c));function a38_0x3532(){const _0x2db4dc=['12772510qpNgUR','627vDGeZy','4277bCcjIq','5364360DpfPtM','2NhRBZE','8483128feSaMR','online','https://daily-api.lovrabet.com','1590HcLERB','https://api.lovrabet.com','28076ZfBlyX','5061960umRZZj','742952uPQzfe'];a38_0x3532=function(){return _0x2db4dc;};return a38_0x3532();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x303669(0x16a)?'https://user.lovrabet.com':'https://user-daily.lovrabet.com';function a38_0x36c3(_0x260d09,_0x89de51){_0x260d09=_0x260d09-0x15f;const _0x353269=a38_0x3532();let _0x36c32a=_0x353269[_0x260d09];return _0x36c32a;}export const getApiDomain=()=>getEnv()===a38_0x303669(0x16a)?a38_0x303669(0x160):a38_0x303669(0x16b);
@@ -1 +1 @@
1
- const a39_0x5d4fe5=a39_0x41c2;(function(_0x53d36a,_0x520ff0){const _0x3c10f2=a39_0x41c2,_0x6b301d=_0x53d36a();while(!![]){try{const _0x2198bb=-parseInt(_0x3c10f2(0x1e6))/0x1*(-parseInt(_0x3c10f2(0x1df))/0x2)+parseInt(_0x3c10f2(0x1dc))/0x3+parseInt(_0x3c10f2(0x1e9))/0x4*(-parseInt(_0x3c10f2(0x1e0))/0x5)+-parseInt(_0x3c10f2(0x1ea))/0x6*(-parseInt(_0x3c10f2(0x1de))/0x7)+-parseInt(_0x3c10f2(0x1e7))/0x8*(-parseInt(_0x3c10f2(0x1dd))/0x9)+-parseInt(_0x3c10f2(0x1e1))/0xa*(parseInt(_0x3c10f2(0x1e5))/0xb)+-parseInt(_0x3c10f2(0x1e3))/0xc*(parseInt(_0x3c10f2(0x1e8))/0xd);if(_0x2198bb===_0x520ff0)break;else _0x6b301d['push'](_0x6b301d['shift']());}catch(_0x57b376){_0x6b301d['push'](_0x6b301d['shift']());}}}(a39_0xdd39,0x854d9));let env=process[a39_0x5d4fe5(0x1db)][a39_0x5d4fe5(0x1e4)]||a39_0x5d4fe5(0x1e2);export function getEnv(){return env;}function a39_0x41c2(_0x4dd80c,_0x637959){_0x4dd80c=_0x4dd80c-0x1db;const _0xdd3920=a39_0xdd39();let _0x41c230=_0xdd3920[_0x4dd80c];return _0x41c230;}export function initEnv(_0x5b274b){env=_0x5b274b;}function a39_0xdd39(){const _0xe8189c=['56afqqCc','454998zaOcat','1303955WvOkFj','9439670HDowaL','online','2412RiMsMM','LOVRABET_ENV','11LDSVRU','1rmKglr','96eZoaLJ','76882JJkASw','4wGyhui','450162jWjatU','env','3076074lHCgYO','814806rWOrDy'];a39_0xdd39=function(){return _0xe8189c;};return a39_0xdd39();}
1
+ const a39_0x100eb1=a39_0x1265;(function(_0x308a84,_0x500ef3){const _0x1ee099=a39_0x1265,_0x1d810a=_0x308a84();while(!![]){try{const _0x2f5f15=parseInt(_0x1ee099(0xd2))/0x1+parseInt(_0x1ee099(0xdc))/0x2*(-parseInt(_0x1ee099(0xd5))/0x3)+parseInt(_0x1ee099(0xd8))/0x4+parseInt(_0x1ee099(0xde))/0x5*(parseInt(_0x1ee099(0xdb))/0x6)+parseInt(_0x1ee099(0xdf))/0x7*(-parseInt(_0x1ee099(0xd7))/0x8)+-parseInt(_0x1ee099(0xe0))/0x9*(parseInt(_0x1ee099(0xd4))/0xa)+-parseInt(_0x1ee099(0xd3))/0xb*(-parseInt(_0x1ee099(0xdd))/0xc);if(_0x2f5f15===_0x500ef3)break;else _0x1d810a['push'](_0x1d810a['shift']());}catch(_0x163b88){_0x1d810a['push'](_0x1d810a['shift']());}}}(a39_0x2413,0xd9e5a));let env=process[a39_0x100eb1(0xd6)][a39_0x100eb1(0xd9)]||a39_0x100eb1(0xda);export function getEnv(){return env;}function a39_0x1265(_0xdb6de3,_0x2807d1){_0xdb6de3=_0xdb6de3-0xd2;const _0x24138c=a39_0x2413();let _0x126540=_0x24138c[_0xdb6de3];return _0x126540;}function a39_0x2413(){const _0x47bca9=['env','688mGBevC','491500wAczwM','LOVRABET_ENV','online','188274CpULgd','358wqhQuf','156CiCfPa','15SeHXdg','106351OtJwxb','4679253EOvBRD','1578173dalzVx','1789381oAVebz','10hZkGvO','19959SZKyOL'];a39_0x2413=function(){return _0x47bca9;};return a39_0x2413();}export function initEnv(_0x580947){env=_0x580947;}
@@ -1 +1 @@
1
- const a40_0x2c7be8=a40_0x28fa;(function(_0x16ce7c,_0x5a564f){const _0x19f167=a40_0x28fa,_0x512f48=_0x16ce7c();while(!![]){try{const _0x2ddcdc=-parseInt(_0x19f167(0x20d))/0x1+-parseInt(_0x19f167(0x1f1))/0x2+parseInt(_0x19f167(0x20e))/0x3+parseInt(_0x19f167(0x214))/0x4+-parseInt(_0x19f167(0x1dc))/0x5+-parseInt(_0x19f167(0x1fb))/0x6+parseInt(_0x19f167(0x1da))/0x7;if(_0x2ddcdc===_0x5a564f)break;else _0x512f48['push'](_0x512f48['shift']());}catch(_0x487e32){_0x512f48['push'](_0x512f48['shift']());}}}(a40_0x5ee5,0x1a200));import{jsx as a40_0x2007f2,jsxs as a40_0x2d4312,Fragment as a40_0x561f6e}from'react/jsx-runtime';import{useState}from'react';function a40_0x5ee5(){const _0x54cd9a=['create.login.prompt','return','has','create.lovrabetSetup.confirm','add','leftArrow','green','create.validation.projectName.invalid','create.lovrabetSetup.keyboardShortcuts','yellow','app-code','slice','99237xOXpGY','470466bEdypB','online','create.steps.projectName.label','create.common.no','lovrabet-setup-selection','create.common.selectHint','590588fsjACL','create.login.notDetected','confirm-api-pull','creating','create.completedStep','string','create.validation.appCode.invalidFormat','length','white','Yes','gray','create.validation.projectName.tooLong','codebuddy','create.validation.projectName.invalidFormat','delete','upArrow','claude','create.steps.login.failed','create.validation.appCode.invalid','red','cwd','create.input.appCode.label','opencode','backspace','trim','name','create.common.yes','my-app','cyan','create.steps.appCode.notSet','create.login.checking','rightArrow','create.apiPull.confirm','[✓]','create.creating','lovrabet-setup','create.input.appCode.optional','create.lovrabetSetup.selectIdeHint','create.steps.login.label','create.steps.appCode.label','login','1037421UyPwqU','create.login.inProgressStatus','639925XsHbHa','login-process','create.steps.lovrabetSetup.label','create.steps.login.loggedIn','create.input.projectName.label','cursor','qoder','label','create.lovrabetSetup.selectIdeTitle','create.login.valid','downArrow','\x20+MCP','api-pull','column','create.validation.ide.required','includes','step','env','project-name','value','create.validation.projectName.dirExistsShort','53974zeRIAh','from','login-prompt','create.validation.projectName.dirExists','create.input.appCode.hint','filter','create.validation.appCode.tooLong','login-check','blue','[\x20]','548730LuLCmB','map','cline','codex','create.steps.apiPull.label','\x20←\x20'];a40_0x5ee5=function(){return _0x54cd9a;};return a40_0x5ee5();}import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';function a40_0x28fa(_0xe69621,_0x1e30f9){_0xe69621=_0xe69621-0x1bb;const _0x5ee5fa=a40_0x5ee5();let _0x28fae2=_0x5ee5fa[_0xe69621];return _0x28fae2;}import a40_0x5e7006 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=['antigravity',a40_0x2c7be8(0x1c1),a40_0x2c7be8(0x1fd),a40_0x2c7be8(0x1bd),a40_0x2c7be8(0x1fe),a40_0x2c7be8(0x1e1),a40_0x2c7be8(0x1c7),a40_0x2c7be8(0x1e2),'trae','windsurf','agent'],UI_MCP_IDES=new Set(Array[a40_0x2c7be8(0x1f2)](MCP_IDES));export function EnhancedGuidedCreate(_0xb40784){const _0x3ccc14=a40_0x2c7be8,{onCreate:_0x14f621,env:_0x3fa52f}=_0xb40784,{t:_0x1bec36}=useI18n(),[_0xc1b45c,_0x378bf0]=useState(_0x3ccc14(0x1ee)),[_0x4a1cbc,_0x5e849b]=useState(''),[_0x27e9f0,_0x294437]=useState(''),[_0x435e54,_0x74a9fa]=useState(''),[_0x21d321,_0x1c37a7]=useState(''),[_0xab59d,_0x4f47df]=useState([]),[_0x5ca9f7,_0x306b11]=useState(null),[_0x19adc1,_0x2c0c19]=useState(![]),[_0x4c0955,_0x29e4e3]=useState(![]),[_0x21ef37,_0x3c3ca9]=useState(![]),[_0x390289,_0x2b1351]=useState(0x0),[_0x1c5378,_0x193033]=useState(0x0),[_0x1b2e2a,_0x331bb8]=useState(0x0),[_0x2949c4,_0x524d50]=useState(![]),[_0x6322fb,_0x112739]=useState(new Set()),[_0x487556,_0x307606]=useState(0x0),[_0x41373b,_0x7616ce]=useState(''),_0x532743=_0x3ccc14(0x1cc),_0x541475=readConfig(),_0x1ff122=typeof _0x541475[_0x3ccc14(0x1ed)]===_0x3ccc14(0x219)?_0x541475[_0x3ccc14(0x1ed)]:undefined;function _0x3e6361(_0x5c3e49){const _0x1763f3=_0x3ccc14,_0x5eb3a9=_0x5c3e49||_0x532743,_0x42ca16=a40_0x5e7006['resolve'](process[_0x1763f3(0x1c5)](),_0x5eb3a9);return existsSync(_0x42ca16);}function _0x4379c2(_0x3111b2){const _0x37ce63=_0x3ccc14;if(_0x3111b2[_0x37ce63(0x21b)]>0x32)return{'valid':![],'message':_0x1bec36(_0x37ce63(0x1bc))};const _0x596c8d=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x3111b2?.[_0x37ce63(0x1c9)]()&&!_0x596c8d['test'](_0x3111b2))return{'valid':![],'message':_0x1bec36(_0x37ce63(0x1be))};return{'valid':!![]};}function _0x189da9(_0x214071){const _0x1abd09=_0x3ccc14;if(!_0x214071[_0x1abd09(0x1c9)]())return{'valid':!![]};if(_0x214071['length']>0x64)return{'valid':![],'message':_0x1bec36(_0x1abd09(0x1f7))};const _0x129167=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x129167['test'](_0x214071))return{'valid':![],'message':_0x1bec36(_0x1abd09(0x21a))};return{'valid':!![]};}async function _0x3bf496(){_0x2c0c19(!![]);try{const _0x2f34f3=await getIsSessionValid();return _0x306b11(_0x2f34f3),_0x2f34f3;}catch(_0x4313ec){return _0x306b11(![]),![];}finally{_0x2c0c19(![]);}}async function _0x29b728(){_0x29e4e3(!![]);try{const _0x6f1bd=await authServer({'silent':!![]});return _0x306b11(_0x6f1bd),_0x6f1bd;}catch(_0x27b93e){return _0x306b11(![]),![];}finally{_0x29e4e3(![]);}}return useInput(async(_0x48be2b,_0x47ff8d)=>{const _0xc91062=_0x3ccc14;if(_0x47ff8d[_0xc91062(0x206)]||_0x47ff8d[_0xc91062(0x1d0)]){if(_0xc1b45c===_0xc91062(0x216)){_0x2b1351(_0x3900e2=>_0x3900e2===0x0?0x1:0x0);return;}if(_0xc1b45c==='lovrabet-setup-selection'){if(!_0x2949c4){_0x331bb8(_0xfbd028=>_0xfbd028===0x0?0x1:0x0);return;}_0x524d50(![]);return;}if(_0xc1b45c===_0xc91062(0x1f3)){_0x193033(_0x4f6cbf=>_0x4f6cbf===0x0?0x1:0x0);return;}}if(_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){if(_0x47ff8d[_0xc91062(0x1c0)]){_0x307606(_0x4f5078=>_0x4f5078>0x0?_0x4f5078-0x1:UI_IDE_LIST['length']-0x1);return;}if(_0x47ff8d[_0xc91062(0x1e6)]){_0x307606(_0x59fcba=>_0x59fcba<UI_IDE_LIST[_0xc91062(0x21b)]-0x1?_0x59fcba+0x1:0x0);return;}}if(_0x48be2b==='\x20'&&_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(_0x29309f=>{const _0x4dbe48=_0xc91062,_0x5ab95f=new Set(_0x29309f);return _0x5ab95f['has'](_0x487556)?_0x5ab95f[_0x4dbe48(0x1bf)](_0x487556):_0x5ab95f[_0x4dbe48(0x205)](_0x487556),_0x5ab95f;}),_0x1c37a7('');return;}if((_0x48be2b==='a'||_0x48be2b==='A')&&_0xc1b45c==='lovrabet-setup-selection'&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(new Set(UI_IDE_LIST[_0xc91062(0x1fc)]((_0x4c35d9,_0x2f2087)=>_0x2f2087))),_0x1c37a7('');return;}if((_0x48be2b==='i'||_0x48be2b==='I'||_0x48be2b==='r'||_0x48be2b==='R')&&_0xc1b45c===_0xc91062(0x212)&&_0x2949c4&&_0x1b2e2a===0x0){_0x112739(_0x1b60dc=>{const _0x25224a=_0xc91062,_0x408b93=new Set();for(let _0x59b871=0x0;_0x59b871<UI_IDE_LIST[_0x25224a(0x21b)];_0x59b871++){!_0x1b60dc['has'](_0x59b871)&&_0x408b93[_0x25224a(0x205)](_0x59b871);}return _0x408b93;});return;}if(_0x47ff8d[_0xc91062(0x202)]){if(_0xc1b45c===_0xc91062(0x1ee)){const _0x19fbc8=_0x435e54[_0xc91062(0x1c9)]()||_0x532743;if(_0x21d321)return;if(_0x3e6361(_0x19fbc8)){_0x7616ce(_0x1bec36(_0xc91062(0x1f4),{'name':_0x19fbc8}));return;}_0x5e849b(_0x19fbc8),_0x4f47df([{'step':_0xc91062(0x1ee),'label':_0x1bec36(_0xc91062(0x210)),'value':_0x19fbc8}]),_0x74a9fa(''),_0x1c37a7(''),_0x7616ce(''),_0x378bf0(_0xc91062(0x20b));return;}if(_0xc1b45c==='app-code'){if(_0x21d321)return;const _0x72e955=_0x435e54[_0xc91062(0x1c9)]();_0x294437(_0x72e955),_0x4f47df(_0x3c7e02=>[..._0x3c7e02,{'step':_0xc91062(0x20b),'label':_0x1bec36(_0xc91062(0x1d8)),'value':_0x72e955||_0x1bec36(_0xc91062(0x1ce))}]),_0x74a9fa(''),_0x1c37a7('');if(_0x72e955){_0x378bf0(_0xc91062(0x1f8));const _0x5d0777=await _0x3bf496();_0x5d0777?_0x378bf0(_0xc91062(0x216)):_0x378bf0('login-prompt');}else{const _0x4fb314=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x4fb314}),_0x378bf0(_0xc91062(0x217));}return;}if(_0xc1b45c==='confirm-api-pull'){const _0x22851b=_0x390289===0x0;_0x3c3ca9(_0x22851b),_0x4f47df(_0x54effc=>[..._0x54effc,{'step':_0xc91062(0x1e8),'label':_0x1bec36(_0xc91062(0x1ff)),'value':_0x22851b?_0x1bec36(_0xc91062(0x1cb)):_0x1bec36(_0xc91062(0x211))}]),_0x378bf0('lovrabet-setup-selection');return;}if(_0xc1b45c===_0xc91062(0x212)){if(!_0x2949c4){_0x524d50(!![]);if(_0x1b2e2a===0x1){_0x4f47df(_0x1c593a=>[..._0x1c593a,{'step':_0xc91062(0x1d4),'label':_0x1bec36(_0xc91062(0x1de)),'value':_0x1bec36(_0xc91062(0x211))}]);const _0x5bafcd=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':_0x27e9f0,'pullApi':_0x21ef37,'aiSetup':![],'selectedIDEs':[],'env':_0x5bafcd}),_0x378bf0(_0xc91062(0x217));}return;}if(_0x6322fb['size']===0x0){_0x1c37a7(_0x1bec36(_0xc91062(0x1ea)));return;}const _0x33d1f5=Array[_0xc91062(0x1f2)](_0x6322fb)['map'](_0x1dbd3c=>UI_IDE_LIST[_0x1dbd3c])[_0xc91062(0x1f6)](_0x5c89fb=>_0x5c89fb!==undefined);_0x4f47df(_0xc14060=>[..._0xc14060,{'step':'lovrabet-setup','label':_0x1bec36(_0xc91062(0x1de)),'value':_0x1bec36('create.steps.lovrabetSetup.ideCount',{'count':_0x33d1f5[_0xc91062(0x21b)]})}]);const _0x266672=_0x3fa52f||_0x1ff122||_0xc91062(0x20f);_0x14f621({'projectName':_0x4a1cbc,'appCode':_0x27e9f0,'pullApi':_0x21ef37,'aiSetup':!![],'selectedIDEs':_0x33d1f5,'env':_0x266672}),_0x378bf0(_0xc91062(0x217));return;}if(_0xc1b45c===_0xc91062(0x1f3)){const _0x6e69e3=_0x1c5378===0x0;if(_0x6e69e3){_0x378bf0(_0xc91062(0x1dd));const _0x42c92f=await _0x29b728();_0x42c92f?(_0x4f47df(_0x35ecb5=>[..._0x35ecb5,{'step':_0xc91062(0x1d9),'label':_0x1bec36('create.steps.login.label'),'value':_0x1bec36(_0xc91062(0x1df))}]),_0x378bf0(_0xc91062(0x216))):(_0x4f47df(_0x5db59c=>[..._0x5db59c,{'step':'login','label':_0x1bec36(_0xc91062(0x1d7)),'value':_0x1bec36(_0xc91062(0x1c2))}]),_0x378bf0(_0xc91062(0x212)));}else _0x4f47df(_0x5e8be2=>[..._0x5e8be2,{'step':_0xc91062(0x1d9),'label':_0x1bec36(_0xc91062(0x1d7)),'value':_0x1bec36('create.steps.login.skipped')}]),_0x378bf0(_0xc91062(0x212));return;}}if(_0x47ff8d[_0xc91062(0x1c8)]||_0x47ff8d[_0xc91062(0x1bf)]){_0x74a9fa(_0x44439d=>{const _0x417d74=_0xc91062,_0x2c72a2=_0x44439d[_0x417d74(0x20c)](0x0,-0x1);if(_0xc1b45c===_0x417d74(0x1ee)){const {valid:_0x1c5a6d,message:_0x2fd6d7}=_0x4379c2(_0x2c72a2);_0x1c37a7(_0x1c5a6d?'':_0x2fd6d7||_0x1bec36('create.validation.projectName.invalid'));if(_0x1c5a6d&&!_0x21d321){const _0x30cf8a=_0x2c72a2||_0x532743;_0x3e6361(_0x30cf8a)?_0x7616ce(_0x1bec36(_0x417d74(0x1f0),{'name':_0x30cf8a})):_0x7616ce('');}}else{if(_0xc1b45c===_0x417d74(0x20b)){const {valid:_0x4aa301,message:_0x2cf1dc}=_0x189da9(_0x2c72a2);_0x1c37a7(_0x4aa301?'':_0x2cf1dc||_0x1bec36(_0x417d74(0x1c3)));}}return _0x2c72a2;});return;}if([_0xc91062(0x217),_0xc91062(0x1f8),'login-process'][_0xc91062(0x1eb)](_0xc1b45c))return;if(_0xc1b45c===_0xc91062(0x216)||_0xc1b45c==='login-prompt'||_0xc1b45c===_0xc91062(0x212))return;_0x74a9fa(_0x447797=>{const _0x1fd8f3=_0xc91062,_0x49883f=_0x447797+_0x48be2b;if(_0xc1b45c==='project-name'){const {valid:_0x590f82,message:_0x2d9e1d}=_0x4379c2(_0x49883f);_0x1c37a7(_0x590f82?'':_0x2d9e1d||_0x1bec36(_0x1fd8f3(0x208)));if(_0x590f82&&!_0x21d321){const _0x19bb86=_0x49883f||_0x532743;_0x3e6361(_0x19bb86)?_0x7616ce(_0x1bec36('create.validation.projectName.dirExistsShort',{'name':_0x19bb86})):_0x7616ce('');}}else{if(_0xc1b45c===_0x1fd8f3(0x20b)){const {valid:_0x4a6d23,message:_0x49e464}=_0x189da9(_0x49883f);_0x1c37a7(_0x4a6d23?'':_0x49e464||_0x1bec36(_0x1fd8f3(0x1c3)));}}return _0x49883f;});}),a40_0x2d4312(Box,{'flexDirection':_0x3ccc14(0x1e9),'marginTop':0x1,'children':[_0xab59d[_0x3ccc14(0x21b)]===0x0&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1cd),'children':_0x1bec36('create.title')})}),_0xab59d[_0x3ccc14(0x1fc)](_0x3c7b94=>a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x1bec36(_0x3ccc14(0x218),{'label':_0x3c7b94[_0x3ccc14(0x1e3)]})}),a40_0x2007f2(Text,{'color':'cyan','children':_0x3c7b94[_0x3ccc14(0x1ef)]})]},_0x3c7b94[_0x3ccc14(0x1ec)])),_0xc1b45c===_0x3ccc14(0x1ee)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1e0))}),_0x435e54?a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x435e54}):a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x532743}),_0x21d321&&a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':['\x20←\x20',_0x21d321]}),_0x41373b&&a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':[_0x3ccc14(0x200),_0x41373b]})]}),!_0x21d321&&!_0x41373b&&!_0x435e54&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36('create.input.projectName.hint')})})]}),_0xc1b45c===_0x3ccc14(0x20b)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1c6))}),a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1d5))}),a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x435e54}),_0x21d321&&a40_0x2d4312(Text,{'color':'red','children':[_0x3ccc14(0x200),_0x21d321]})]}),!_0x21d321&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1f5))})})]}),_0xc1b45c==='login-check'&&a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1cf))}),_0x19adc1&&a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36('create.login.checkingStatus')})]}),_0xc1b45c==='confirm-api-pull'&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':_0x1bec36(_0x3ccc14(0x1e5))})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x1d1))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x390289===0x0?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x390289===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x390289===0x1?_0x3ccc14(0x207):'gray','children':[_0x390289===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'yellow','children':_0x1bec36('create.apiPull.recommendation')})})]}),_0xc1b45c===_0x3ccc14(0x212)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x207),'children':'√'})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x204))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x1b2e2a===0x0?_0x3ccc14(0x207):'gray','children':[_0x1b2e2a===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x1b2e2a===0x1?'green':_0x3ccc14(0x1bb),'children':[_0x1b2e2a===0x1?'▶\x20':'\x20\x20','No']})]}),_0x2949c4&&_0x1b2e2a===0x0&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x1d6))})}),a40_0x2d4312(Box,{'marginTop':0x1,'flexDirection':_0x3ccc14(0x1e9),'children':[a40_0x2007f2(Text,{'bold':!![],'color':'yellow','children':_0x1bec36(_0x3ccc14(0x1e4))}),UI_IDE_LIST[_0x3ccc14(0x1fc)]((_0x430341,_0x49d932)=>{const _0x1dd6ba=_0x3ccc14,_0x4290e5=_0x487556===_0x49d932,_0xf60b56=_0x6322fb[_0x1dd6ba(0x203)](_0x49d932),_0x4be5a3=UI_MCP_IDES['has'](_0x430341);return a40_0x2007f2(Box,{'children':a40_0x2d4312(Text,{'backgroundColor':_0x4290e5?_0x1dd6ba(0x1f9):undefined,'color':_0x4290e5?_0x1dd6ba(0x21c):undefined,'children':['\x20\x20',_0xf60b56?_0x1dd6ba(0x1d2):_0x1dd6ba(0x1fa),'\x20',UI_IDE_CONFIGS[_0x430341][_0x1dd6ba(0x1ca)],_0x4be5a3&&a40_0x2007f2(Text,{'color':_0x4290e5?'white':_0x1dd6ba(0x1cd),'children':_0x1dd6ba(0x1e7)}),'\x20',a40_0x2d4312(Text,{'color':_0x4290e5?_0x1dd6ba(0x21c):_0x1dd6ba(0x1bb),'dimColor':!_0x4290e5,'children':['-\x20',UI_IDE_CONFIGS[_0x430341]['description']]})]})},_0x430341);}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36(_0x3ccc14(0x209))})})]})]}),!_0x2949c4&&a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})}),_0x21d321&&a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2d4312(Text,{'color':_0x3ccc14(0x1c4),'children':['✗\x20',_0x21d321]})})]}),_0xc1b45c===_0x3ccc14(0x1f3)&&a40_0x2d4312(a40_0x561f6e,{'children':[a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x20a),'children':_0x1bec36(_0x3ccc14(0x215))})}),a40_0x2007f2(Box,{'marginTop':0x1,'children':a40_0x2007f2(Text,{'children':_0x1bec36(_0x3ccc14(0x201))})}),a40_0x2d4312(Box,{'marginLeft':0x2,'children':[a40_0x2d4312(Text,{'color':_0x1c5378===0x0?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x1c5378===0x0?'▶\x20':'\x20\x20',_0x3ccc14(0x21d)]}),a40_0x2007f2(Text,{'children':'\x20'}),a40_0x2d4312(Text,{'color':_0x1c5378===0x1?_0x3ccc14(0x207):_0x3ccc14(0x1bb),'children':[_0x1c5378===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':_0x3ccc14(0x1bb),'children':_0x1bec36(_0x3ccc14(0x213))})})]}),_0xc1b45c==='login-process'&&a40_0x2d4312(Box,{'children':[a40_0x2007f2(Text,{'children':_0x1bec36('create.login.inProgress')}),_0x4c0955&&a40_0x2007f2(Text,{'color':'gray','children':_0x1bec36(_0x3ccc14(0x1db))})]}),_0xc1b45c===_0x3ccc14(0x217)&&a40_0x2007f2(Box,{'children':a40_0x2007f2(Text,{'color':'green','children':_0x1bec36(_0x3ccc14(0x1d3))})})]});}
1
+ const a40_0x549915=a40_0x1910;(function(_0x318825,_0x959672){const _0xd8ac3d=a40_0x1910,_0x5f4180=_0x318825();while(!![]){try{const _0x54715e=-parseInt(_0xd8ac3d(0xca))/0x1*(parseInt(_0xd8ac3d(0x9c))/0x2)+-parseInt(_0xd8ac3d(0xe0))/0x3+parseInt(_0xd8ac3d(0xc8))/0x4+parseInt(_0xd8ac3d(0x99))/0x5*(parseInt(_0xd8ac3d(0xb8))/0x6)+-parseInt(_0xd8ac3d(0x8d))/0x7+parseInt(_0xd8ac3d(0xd5))/0x8*(parseInt(_0xd8ac3d(0xb3))/0x9)+-parseInt(_0xd8ac3d(0xd8))/0xa*(-parseInt(_0xd8ac3d(0xb9))/0xb);if(_0x54715e===_0x959672)break;else _0x5f4180['push'](_0x5f4180['shift']());}catch(_0x5374a1){_0x5f4180['push'](_0x5f4180['shift']());}}}(a40_0x101d,0x903bd));import{jsx as a40_0xb68a7c,jsxs as a40_0x22762c,Fragment as a40_0x7d675a}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';function a40_0x1910(_0x42ec60,_0x4ec0ef){_0x42ec60=_0x42ec60-0x87;const _0x101d4a=a40_0x101d();let _0x1910b2=_0x101d4a[_0x42ec60];return _0x1910b2;}import{existsSync}from'node:fs';import a40_0xcc49c1 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';function a40_0x101d(){const _0x3edf9d=['return','create.login.inProgress','[✓]','slice','opencode','create.input.projectName.label','login-prompt','create.common.selectHint','red','create.steps.appCode.label','login-check','leftArrow','\x20←\x20','delete','column','create.lovrabetSetup.selectIdeHint','create.login.notDetected','step','5172246YkxziD','create.validation.projectName.invalid','create.steps.login.loggedIn','api-pull','create.validation.appCode.tooLong','304926lgBfTj','13310PhHmcK','test','green','env','create.steps.login.failed','windsurf','cyan','codebuddy','create.title','cline','create.steps.appCode.notSet','create.completedStep','login-process','downArrow','create.lovrabetSetup.keyboardShortcuts','3482064ZMEWVL','project-name','125382hCTKKi','includes','cursor','description','lovrabet-setup','create.login.inProgressStatus','create.validation.appCode.invalid','map','create.steps.login.label','has','length','8KMFEvc','claude','create.login.checking','11110rIqrkA','online','confirm-api-pull','upArrow','[\x20]','create.steps.login.skipped','gray','add','3196398aAICrg','create.common.no','yellow','antigravity','cwd','my-app','Yes','creating','create.validation.projectName.dirExists','create.login.prompt','create.steps.apiPull.label','from','lovrabet-setup-selection','create.input.projectName.hint','string','389592jnUYOK','create.apiPull.recommendation','value','create.login.valid','white','create.steps.lovrabetSetup.label','create.lovrabetSetup.selectIdeTitle','rightArrow','label','app-code','create.creating','backspace','5vwlywl','create.input.appCode.label','create.validation.projectName.dirExistsShort','18MQatlV','agent','trae','login','trim'];a40_0x101d=function(){return _0x3edf9d;};return a40_0x101d();}import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=[a40_0x549915(0xe3),a40_0x549915(0xd6),a40_0x549915(0xc2),a40_0x549915(0xc0),'codex',a40_0x549915(0xcc),a40_0x549915(0xa5),'qoder',a40_0x549915(0x9e),a40_0x549915(0xbe),a40_0x549915(0x9d)],UI_MCP_IDES=new Set(Array[a40_0x549915(0x89)](MCP_IDES));export function EnhancedGuidedCreate(_0x4ea4cf){const _0x41a2dc=a40_0x549915,{onCreate:_0xa91d41,env:_0x2807e5}=_0x4ea4cf,{t:_0x177495}=useI18n(),[_0x4bc429,_0x521be5]=useState(_0x41a2dc(0xc9)),[_0x128649,_0x4c4c8c]=useState(''),[_0x148d74,_0x260128]=useState(''),[_0x1a7d2b,_0x535ea3]=useState(''),[_0x56274c,_0x264f70]=useState(''),[_0x341baf,_0x2bea19]=useState([]),[_0x48501e,_0x2b5bcc]=useState(null),[_0x477952,_0x5cb4ee]=useState(![]),[_0x750e3e,_0x252624]=useState(![]),[_0x20ba42,_0x1f3c27]=useState(![]),[_0x45ba3e,_0x589dd2]=useState(0x0),[_0x311d37,_0x49bb61]=useState(0x0),[_0x337e5a,_0xce54c0]=useState(0x0),[_0x40041f,_0x162cfc]=useState(![]),[_0x5a6beb,_0x2f436b]=useState(new Set()),[_0x5b999c,_0x1a978d]=useState(0x0),[_0x9a9c91,_0x556d86]=useState(''),_0x2a86e9=_0x41a2dc(0xe5),_0x50860a=readConfig(),_0x497dfb=typeof _0x50860a[_0x41a2dc(0xbc)]===_0x41a2dc(0x8c)?_0x50860a['env']:undefined;function _0x453fdf(_0x11cffe){const _0x1d85d9=_0x41a2dc,_0x185999=_0x11cffe||_0x2a86e9,_0x1a4ffc=a40_0xcc49c1['resolve'](process[_0x1d85d9(0xe4)](),_0x185999);return existsSync(_0x1a4ffc);}function _0x5be8b0(_0x3c3ad7){const _0x370682=_0x41a2dc;if(_0x3c3ad7[_0x370682(0xd4)]>0x32)return{'valid':![],'message':_0x177495('create.validation.projectName.tooLong')};const _0x360cc4=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x3c3ad7?.[_0x370682(0xa0)]()&&!_0x360cc4[_0x370682(0xba)](_0x3c3ad7))return{'valid':![],'message':_0x177495('create.validation.projectName.invalidFormat')};return{'valid':!![]};}function _0xb7472e(_0xc8d9b1){const _0x52d89e=_0x41a2dc;if(!_0xc8d9b1[_0x52d89e(0xa0)]())return{'valid':!![]};if(_0xc8d9b1['length']>0x64)return{'valid':![],'message':_0x177495(_0x52d89e(0xb7))};const _0xd43c99=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0xd43c99[_0x52d89e(0xba)](_0xc8d9b1))return{'valid':![],'message':_0x177495('create.validation.appCode.invalidFormat')};return{'valid':!![]};}async function _0x51091c(){_0x5cb4ee(!![]);try{const _0x10fa3a=await getIsSessionValid();return _0x2b5bcc(_0x10fa3a),_0x10fa3a;}catch(_0x32935e){return _0x2b5bcc(![]),![];}finally{_0x5cb4ee(![]);}}async function _0x3c911d(){_0x252624(!![]);try{const _0x48bb2b=await authServer({'silent':!![]});return _0x2b5bcc(_0x48bb2b),_0x48bb2b;}catch(_0x223cf2){return _0x2b5bcc(![]),![];}finally{_0x252624(![]);}}return useInput(async(_0x2fd1d1,_0x2c1212)=>{const _0x58c5a5=_0x41a2dc;if(_0x2c1212[_0x58c5a5(0xac)]||_0x2c1212[_0x58c5a5(0x94)]){if(_0x4bc429===_0x58c5a5(0xda)){_0x589dd2(_0x1dafe5=>_0x1dafe5===0x0?0x1:0x0);return;}if(_0x4bc429===_0x58c5a5(0x8a)){if(!_0x40041f){_0xce54c0(_0xd1d178=>_0xd1d178===0x0?0x1:0x0);return;}_0x162cfc(![]);return;}if(_0x4bc429===_0x58c5a5(0xa7)){_0x49bb61(_0x19d4f0=>_0x19d4f0===0x0?0x1:0x0);return;}}if(_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){if(_0x2c1212[_0x58c5a5(0xdb)]){_0x1a978d(_0x15c398=>_0x15c398>0x0?_0x15c398-0x1:UI_IDE_LIST[_0x58c5a5(0xd4)]-0x1);return;}if(_0x2c1212[_0x58c5a5(0xc6)]){_0x1a978d(_0x513b02=>_0x513b02<UI_IDE_LIST[_0x58c5a5(0xd4)]-0x1?_0x513b02+0x1:0x0);return;}}if(_0x2fd1d1==='\x20'&&_0x4bc429==='lovrabet-setup-selection'&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(_0x102afc=>{const _0x15b98e=_0x58c5a5,_0x4f6e8c=new Set(_0x102afc);return _0x4f6e8c[_0x15b98e(0xd3)](_0x5b999c)?_0x4f6e8c[_0x15b98e(0xae)](_0x5b999c):_0x4f6e8c[_0x15b98e(0xdf)](_0x5b999c),_0x4f6e8c;}),_0x264f70('');return;}if((_0x2fd1d1==='a'||_0x2fd1d1==='A')&&_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(new Set(UI_IDE_LIST[_0x58c5a5(0xd1)]((_0x3dcb87,_0x5e3ba9)=>_0x5e3ba9))),_0x264f70('');return;}if((_0x2fd1d1==='i'||_0x2fd1d1==='I'||_0x2fd1d1==='r'||_0x2fd1d1==='R')&&_0x4bc429===_0x58c5a5(0x8a)&&_0x40041f&&_0x337e5a===0x0){_0x2f436b(_0xd4e802=>{const _0x52e381=_0x58c5a5,_0x331720=new Set();for(let _0x2f14c4=0x0;_0x2f14c4<UI_IDE_LIST[_0x52e381(0xd4)];_0x2f14c4++){!_0xd4e802[_0x52e381(0xd3)](_0x2f14c4)&&_0x331720[_0x52e381(0xdf)](_0x2f14c4);}return _0x331720;});return;}if(_0x2c1212[_0x58c5a5(0xa1)]){if(_0x4bc429==='project-name'){const _0x4d2886=_0x1a7d2b[_0x58c5a5(0xa0)]()||_0x2a86e9;if(_0x56274c)return;if(_0x453fdf(_0x4d2886)){_0x556d86(_0x177495(_0x58c5a5(0xe8),{'name':_0x4d2886}));return;}_0x4c4c8c(_0x4d2886),_0x2bea19([{'step':_0x58c5a5(0xc9),'label':_0x177495('create.steps.projectName.label'),'value':_0x4d2886}]),_0x535ea3(''),_0x264f70(''),_0x556d86(''),_0x521be5(_0x58c5a5(0x96));return;}if(_0x4bc429===_0x58c5a5(0x96)){if(_0x56274c)return;const _0x2e8788=_0x1a7d2b[_0x58c5a5(0xa0)]();_0x260128(_0x2e8788),_0x2bea19(_0x194762=>[..._0x194762,{'step':'app-code','label':_0x177495(_0x58c5a5(0xaa)),'value':_0x2e8788||_0x177495(_0x58c5a5(0xc3))}]),_0x535ea3(''),_0x264f70('');if(_0x2e8788){_0x521be5(_0x58c5a5(0xab));const _0x491d2e=await _0x51091c();_0x491d2e?_0x521be5(_0x58c5a5(0xda)):_0x521be5('login-prompt');}else{const _0x29633b=_0x2807e5||_0x497dfb||'online';_0xa91d41({'projectName':_0x128649,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x29633b}),_0x521be5(_0x58c5a5(0xe7));}return;}if(_0x4bc429===_0x58c5a5(0xda)){const _0x456159=_0x45ba3e===0x0;_0x1f3c27(_0x456159),_0x2bea19(_0x31fe42=>[..._0x31fe42,{'step':_0x58c5a5(0xb6),'label':_0x177495(_0x58c5a5(0x88)),'value':_0x456159?_0x177495('create.common.yes'):_0x177495(_0x58c5a5(0xe1))}]),_0x521be5('lovrabet-setup-selection');return;}if(_0x4bc429===_0x58c5a5(0x8a)){if(!_0x40041f){_0x162cfc(!![]);if(_0x337e5a===0x1){_0x2bea19(_0x1d4855=>[..._0x1d4855,{'step':_0x58c5a5(0xce),'label':_0x177495('create.steps.lovrabetSetup.label'),'value':_0x177495(_0x58c5a5(0xe1))}]);const _0x2cd7d0=_0x2807e5||_0x497dfb||'online';_0xa91d41({'projectName':_0x128649,'appCode':_0x148d74,'pullApi':_0x20ba42,'aiSetup':![],'selectedIDEs':[],'env':_0x2cd7d0}),_0x521be5(_0x58c5a5(0xe7));}return;}if(_0x5a6beb['size']===0x0){_0x264f70(_0x177495('create.validation.ide.required'));return;}const _0x18b5fe=Array[_0x58c5a5(0x89)](_0x5a6beb)['map'](_0x46c57c=>UI_IDE_LIST[_0x46c57c])['filter'](_0x28b0f2=>_0x28b0f2!==undefined);_0x2bea19(_0x34793c=>[..._0x34793c,{'step':'lovrabet-setup','label':_0x177495(_0x58c5a5(0x92)),'value':_0x177495('create.steps.lovrabetSetup.ideCount',{'count':_0x18b5fe[_0x58c5a5(0xd4)]})}]);const _0x3d930b=_0x2807e5||_0x497dfb||_0x58c5a5(0xd9);_0xa91d41({'projectName':_0x128649,'appCode':_0x148d74,'pullApi':_0x20ba42,'aiSetup':!![],'selectedIDEs':_0x18b5fe,'env':_0x3d930b}),_0x521be5(_0x58c5a5(0xe7));return;}if(_0x4bc429===_0x58c5a5(0xa7)){const _0x348678=_0x311d37===0x0;if(_0x348678){_0x521be5(_0x58c5a5(0xc5));const _0x9393f0=await _0x3c911d();_0x9393f0?(_0x2bea19(_0x17f2d7=>[..._0x17f2d7,{'step':_0x58c5a5(0x9f),'label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xb5))}]),_0x521be5(_0x58c5a5(0xda))):(_0x2bea19(_0x5e84d8=>[..._0x5e84d8,{'step':_0x58c5a5(0x9f),'label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xbd))}]),_0x521be5('lovrabet-setup-selection'));}else _0x2bea19(_0x3dfa64=>[..._0x3dfa64,{'step':'login','label':_0x177495(_0x58c5a5(0xd2)),'value':_0x177495(_0x58c5a5(0xdd))}]),_0x521be5('lovrabet-setup-selection');return;}}if(_0x2c1212[_0x58c5a5(0x98)]||_0x2c1212[_0x58c5a5(0xae)]){_0x535ea3(_0x5516c4=>{const _0x5d34b0=_0x58c5a5,_0x44e8c6=_0x5516c4[_0x5d34b0(0xa4)](0x0,-0x1);if(_0x4bc429===_0x5d34b0(0xc9)){const {valid:_0x36936d,message:_0x317b6c}=_0x5be8b0(_0x44e8c6);_0x264f70(_0x36936d?'':_0x317b6c||_0x177495(_0x5d34b0(0xb4)));if(_0x36936d&&!_0x56274c){const _0xfa1503=_0x44e8c6||_0x2a86e9;_0x453fdf(_0xfa1503)?_0x556d86(_0x177495(_0x5d34b0(0x9b),{'name':_0xfa1503})):_0x556d86('');}}else{if(_0x4bc429===_0x5d34b0(0x96)){const {valid:_0x2ea3a5,message:_0x4e10f2}=_0xb7472e(_0x44e8c6);_0x264f70(_0x2ea3a5?'':_0x4e10f2||_0x177495(_0x5d34b0(0xd0)));}}return _0x44e8c6;});return;}if(['creating',_0x58c5a5(0xab),_0x58c5a5(0xc5)][_0x58c5a5(0xcb)](_0x4bc429))return;if(_0x4bc429===_0x58c5a5(0xda)||_0x4bc429===_0x58c5a5(0xa7)||_0x4bc429===_0x58c5a5(0x8a))return;_0x535ea3(_0x2624c4=>{const _0x546608=_0x58c5a5,_0x206d5b=_0x2624c4+_0x2fd1d1;if(_0x4bc429===_0x546608(0xc9)){const {valid:_0x19543b,message:_0x25a9a8}=_0x5be8b0(_0x206d5b);_0x264f70(_0x19543b?'':_0x25a9a8||_0x177495(_0x546608(0xb4)));if(_0x19543b&&!_0x56274c){const _0x4db204=_0x206d5b||_0x2a86e9;_0x453fdf(_0x4db204)?_0x556d86(_0x177495(_0x546608(0x9b),{'name':_0x4db204})):_0x556d86('');}}else{if(_0x4bc429===_0x546608(0x96)){const {valid:_0x6d41dc,message:_0x157bf5}=_0xb7472e(_0x206d5b);_0x264f70(_0x6d41dc?'':_0x157bf5||_0x177495(_0x546608(0xd0)));}}return _0x206d5b;});}),a40_0x22762c(Box,{'flexDirection':'column','marginTop':0x1,'children':[_0x341baf[_0x41a2dc(0xd4)]===0x0&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbf),'children':_0x177495(_0x41a2dc(0xc1))})}),_0x341baf[_0x41a2dc(0xd1)](_0x134514=>a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0xc4),{'label':_0x134514[_0x41a2dc(0x95)]})}),a40_0xb68a7c(Text,{'color':'cyan','children':_0x134514[_0x41a2dc(0x8f)]})]},_0x134514[_0x41a2dc(0xb2)])),_0x4bc429==='project-name'&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xa6))}),_0x1a7d2b?a40_0xb68a7c(Text,{'color':'green','children':_0x1a7d2b}):a40_0xb68a7c(Text,{'color':'gray','children':_0x2a86e9}),_0x56274c&&a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':[_0x41a2dc(0xad),_0x56274c]}),_0x9a9c91&&a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':[_0x41a2dc(0xad),_0x9a9c91]})]}),!_0x56274c&&!_0x9a9c91&&!_0x1a7d2b&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0x8b))})})]}),_0x4bc429==='app-code'&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0x9a))}),a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495('create.input.appCode.optional')}),a40_0xb68a7c(Text,{'color':'green','children':_0x1a7d2b}),_0x56274c&&a40_0x22762c(Text,{'color':'red','children':[_0x41a2dc(0xad),_0x56274c]})]}),!_0x56274c&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495('create.input.appCode.hint')})})]}),_0x4bc429===_0x41a2dc(0xab)&&a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xd7))}),_0x477952&&a40_0xb68a7c(Text,{'color':'gray','children':_0x177495('create.login.checkingStatus')})]}),_0x4bc429===_0x41a2dc(0xda)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0x90))})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495('create.apiPull.confirm')})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x45ba3e===0x0?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x45ba3e===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x45ba3e===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x45ba3e===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0x8e))})})]}),_0x4bc429===_0x41a2dc(0x8a)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':'green','children':'√'})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495('create.lovrabetSetup.confirm')})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x337e5a===0x0?_0x41a2dc(0xbb):'gray','children':[_0x337e5a===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x337e5a===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x337e5a===0x1?'▶\x20':'\x20\x20','No']})]}),_0x40041f&&_0x337e5a===0x0&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':'gray','children':_0x177495(_0x41a2dc(0xb0))})}),a40_0x22762c(Box,{'marginTop':0x1,'flexDirection':_0x41a2dc(0xaf),'children':[a40_0xb68a7c(Text,{'bold':!![],'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0x93))}),UI_IDE_LIST['map']((_0x4d8372,_0x3d3c7f)=>{const _0x229bbe=_0x41a2dc,_0x460c43=_0x5b999c===_0x3d3c7f,_0x14898d=_0x5a6beb['has'](_0x3d3c7f),_0x660283=UI_MCP_IDES[_0x229bbe(0xd3)](_0x4d8372);return a40_0xb68a7c(Box,{'children':a40_0x22762c(Text,{'backgroundColor':_0x460c43?'blue':undefined,'color':_0x460c43?_0x229bbe(0x91):undefined,'children':['\x20\x20',_0x14898d?_0x229bbe(0xa3):_0x229bbe(0xdc),'\x20',UI_IDE_CONFIGS[_0x4d8372]['name'],_0x660283&&a40_0xb68a7c(Text,{'color':_0x460c43?_0x229bbe(0x91):_0x229bbe(0xbf),'children':'\x20+MCP'}),'\x20',a40_0x22762c(Text,{'color':_0x460c43?_0x229bbe(0x91):_0x229bbe(0xde),'dimColor':!_0x460c43,'children':['-\x20',UI_IDE_CONFIGS[_0x4d8372][_0x229bbe(0xcd)]]})]})},_0x4d8372);}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':'gray','children':_0x177495(_0x41a2dc(0xc7))})})]})]}),!_0x40041f&&a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})}),_0x56274c&&a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0x22762c(Text,{'color':_0x41a2dc(0xa9),'children':['✗\x20',_0x56274c]})})]}),_0x4bc429===_0x41a2dc(0xa7)&&a40_0x22762c(a40_0x7d675a,{'children':[a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xe2),'children':_0x177495(_0x41a2dc(0xb1))})}),a40_0xb68a7c(Box,{'marginTop':0x1,'children':a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0x87))})}),a40_0x22762c(Box,{'marginLeft':0x2,'children':[a40_0x22762c(Text,{'color':_0x311d37===0x0?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x311d37===0x0?'▶\x20':'\x20\x20',_0x41a2dc(0xe6)]}),a40_0xb68a7c(Text,{'children':'\x20'}),a40_0x22762c(Text,{'color':_0x311d37===0x1?_0x41a2dc(0xbb):_0x41a2dc(0xde),'children':[_0x311d37===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xa8))})})]}),_0x4bc429===_0x41a2dc(0xc5)&&a40_0x22762c(Box,{'children':[a40_0xb68a7c(Text,{'children':_0x177495(_0x41a2dc(0xa2))}),_0x750e3e&&a40_0xb68a7c(Text,{'color':_0x41a2dc(0xde),'children':_0x177495(_0x41a2dc(0xcf))})]}),_0x4bc429===_0x41a2dc(0xe7)&&a40_0xb68a7c(Box,{'children':a40_0xb68a7c(Text,{'color':_0x41a2dc(0xbb),'children':_0x177495(_0x41a2dc(0x97))})})]});}
@@ -1 +1 @@
1
- (function(_0x52b45c,_0x13ba8b){const _0x5e4682=a41_0x1849,_0xf50264=_0x52b45c();while(!![]){try{const _0x17d603=parseInt(_0x5e4682(0x168))/0x1*(-parseInt(_0x5e4682(0x16e))/0x2)+-parseInt(_0x5e4682(0x171))/0x3+-parseInt(_0x5e4682(0x16c))/0x4+-parseInt(_0x5e4682(0x172))/0x5+-parseInt(_0x5e4682(0x16a))/0x6*(-parseInt(_0x5e4682(0x173))/0x7)+-parseInt(_0x5e4682(0x16b))/0x8*(-parseInt(_0x5e4682(0x170))/0x9)+-parseInt(_0x5e4682(0x16f))/0xa*(-parseInt(_0x5e4682(0x174))/0xb);if(_0x17d603===_0x13ba8b)break;else _0xf50264['push'](_0xf50264['shift']());}catch(_0x5f5408){_0xf50264['push'](_0xf50264['shift']());}}}(a41_0x20cd,0x4c1de));function a41_0x20cd(){const _0x1bb14d=['replace','586538ZPTkyX','14803240nRnuac','626355AzLjCE','959877DXkniV','2749540Ybwckg','723779bjdGvg','11pjPOff','2RXVgiE','now','12qszCtI','32Emergx','789276ZrBeNb'];a41_0x20cd=function(){return _0x1bb14d;};return a41_0x20cd();}function a41_0x1849(_0x3db0d7,_0x2933ef){_0x3db0d7=_0x3db0d7-0x168;const _0x20cdcb=a41_0x20cd();let _0x1849f9=_0x20cdcb[_0x3db0d7];return _0x1849f9;}export function formatElapsed(_0x45bb72){const _0x13e4bc=a41_0x1849,_0x1bfebc=Date[_0x13e4bc(0x169)]()-_0x45bb72;if(_0x1bfebc<0x3e8)return _0x1bfebc+'ms';const _0x53d335=(_0x1bfebc/0x3e8)['toFixed'](0x2),_0x3b6ee6=_0x53d335[_0x13e4bc(0x16d)](/\.?0+$/u,'');return _0x3b6ee6+'s';}
1
+ (function(_0x32026c,_0x59d782){const _0x4b8e68=a41_0x2187,_0x191eb7=_0x32026c();while(!![]){try{const _0x201a6c=parseInt(_0x4b8e68(0x90))/0x1*(parseInt(_0x4b8e68(0x8b))/0x2)+parseInt(_0x4b8e68(0x93))/0x3+parseInt(_0x4b8e68(0x95))/0x4*(-parseInt(_0x4b8e68(0x8f))/0x5)+-parseInt(_0x4b8e68(0x8e))/0x6+parseInt(_0x4b8e68(0x8d))/0x7+parseInt(_0x4b8e68(0x92))/0x8+parseInt(_0x4b8e68(0x8a))/0x9*(-parseInt(_0x4b8e68(0x91))/0xa);if(_0x201a6c===_0x59d782)break;else _0x191eb7['push'](_0x191eb7['shift']());}catch(_0x9423c){_0x191eb7['push'](_0x191eb7['shift']());}}}(a41_0xec98,0x60d2a));function a41_0xec98(){const _0x3e03db=['703101dNirPN','1669068yIkNDK','15huxMHX','236499sSEiMW','4125860GWReYI','5854480KhxyaB','66297WrEoIR','now','635332WsspUH','9OjNreZ','6qXLruv','toFixed'];a41_0xec98=function(){return _0x3e03db;};return a41_0xec98();}function a41_0x2187(_0x19fc79,_0x53cfed){_0x19fc79=_0x19fc79-0x8a;const _0xec982b=a41_0xec98();let _0x218763=_0xec982b[_0x19fc79];return _0x218763;}export function formatElapsed(_0x12ed1a){const _0x1aa853=a41_0x2187,_0x33db66=Date[_0x1aa853(0x94)]()-_0x12ed1a;if(_0x33db66<0x3e8)return _0x33db66+'ms';const _0x34df77=(_0x33db66/0x3e8)[_0x1aa853(0x8c)](0x2),_0x43ad9e=_0x34df77['replace'](/\.?0+$/u,'');return _0x43ad9e+'s';}