@lovrabet/cli 1.3.4-beta.1 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ai-setup/AISetupUI.js +1 -1
- package/lib/ai-setup/config.js +1 -1
- package/lib/api/api-doc-ui.js +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-pull-ui.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/main.js +1 -1
- package/lib/api/pull-silent.js +1 -1
- package/lib/app-menu/app-menu-sync-ui.js +1 -1
- package/lib/app-menu/create-menu.js +1 -1
- package/lib/app-menu/get-local-pages.js +1 -1
- package/lib/app-menu/get-online-menu-list.js +1 -1
- package/lib/app-menu/use-get-online-menu-list.js +1 -1
- package/lib/app-menu/utils.js +1 -1
- package/lib/app-menu/valid-url.js +1 -1
- package/lib/app-menu-update-cdn/current-content.js +1 -1
- package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
- package/lib/app-menu-update-cdn/main.js +1 -1
- package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/cmd/build-watch.js +1 -1
- package/lib/cmd/build.js +1 -1
- package/lib/cmd/logs.js +1 -1
- package/lib/cmd/preview.js +1 -1
- package/lib/cmd/start-execa.js +1 -1
- package/lib/cmd/start.js +1 -1
- package/lib/config/config-help.js +1 -1
- package/lib/config/main.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/create-app/enhanced-guided-create.js +1 -1
- package/lib/create-app/format-elapsed.js +1 -1
- package/lib/create-app/main.js +1 -1
- package/lib/create-app/non-interactive.js +1 -1
- package/lib/create-app/task-finished.js +1 -1
- package/lib/create-app/task-loading.js +1 -1
- package/lib/create-app/task-running.js +1 -1
- package/lib/create-app/task-time.js +1 -1
- package/lib/create-app/use-copy-project-template.js +1 -1
- package/lib/create-app/use-format-code.js +1 -1
- package/lib/create-app/use-install-dependencies.js +1 -1
- package/lib/help.js +1 -1
- package/lib/i18n/I18nProvider.js +1 -1
- package/lib/i18n/hooks.js +1 -1
- package/lib/i18n/index.js +1 -1
- package/lib/i18n/locales/en-US.js +1 -1
- package/lib/i18n/locales/zh-CN.js +1 -1
- package/lib/init/main.js +1 -1
- package/lib/mcp/McpInstallUI.js +1 -1
- package/lib/mcp/claude.js +1 -1
- package/lib/mcp/cursor.js +1 -1
- package/lib/mcp/main.js +1 -1
- package/lib/mcp/mcp-install-non-interactive.js +1 -1
- package/lib/mcp/mcp-installer.js +1 -1
- package/lib/skills/SkillInstallUI.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/skill-install-non-interactive.js +1 -1
- package/lib/skills/skill-installer.js +1 -1
- package/lib/ui/IDESelector.js +1 -1
- package/lib/ui/useIDESelection.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/package.json +1 -1
- package/templates/projects/sub-app-react-demo/src/pages/index.tsx +29 -6
- 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
|
+
const a29_0x5e1142=a29_0x5288;(function(_0x54114a,_0x52a9dc){const _0x4a5230=a29_0x5288,_0x499c37=_0x54114a();while(!![]){try{const _0xa11c46=-parseInt(_0x4a5230(0x1e6))/0x1*(-parseInt(_0x4a5230(0x210))/0x2)+-parseInt(_0x4a5230(0x1cb))/0x3+-parseInt(_0x4a5230(0x1e8))/0x4*(parseInt(_0x4a5230(0x1c4))/0x5)+-parseInt(_0x4a5230(0x1d5))/0x6+-parseInt(_0x4a5230(0x1e1))/0x7*(-parseInt(_0x4a5230(0x1d3))/0x8)+-parseInt(_0x4a5230(0x1f7))/0x9*(-parseInt(_0x4a5230(0x207))/0xa)+-parseInt(_0x4a5230(0x1d8))/0xb;if(_0xa11c46===_0x52a9dc)break;else _0x499c37['push'](_0x499c37['shift']());}catch(_0x3f57d0){_0x499c37['push'](_0x499c37['shift']());}}}(a29_0x5ce1,0xf1ed1));import{jsx as a29_0x267aa3}from'react/jsx-runtime';import a29_0x159f91 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';function a29_0x5ce1(){const _0x4f1da9=['mcp','error','create','skill-install','./cli-flags.js','menu-sync','start','logs','9758lpUNvq','执行更新菜单\x20CDN\x20资源命令','×\x20Interactive\x20mode\x20is\x20not\x20supported.\x20Please\x20specify\x20a\x20project\x20name:\x0a\x20\x20lovrabet\x20create\x20<project-name>\x0a\x20\x20lovrabet\x20create\x20<project-name>\x20--ci','setRawCommand','argv','37405gtlcOr','update','1948EOjQRM','join','help','env','startsWith','init','./create-app/non-interactive.js','logout','\x20(监听模式)','mcpCursor','skill','true','watch','isTTY','执行配置\x20MCP\x20命令','639FGYlHX','./mcp/mcp-install-non-interactive.js','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a','执行构建命令','isRaw','mcpClaude','stdout','mcpOther','codebuddy','cursor','flags','×\x20当前终端不支持交互模式,请指定项目名创建:\x0a\x20\x20lovrabet\x20create\x20<项目名>\x0a\x20\x20lovrabet\x20create\x20<项目名>\x20--ci','antigravity','length','setRawMode','×\x20当前终端不支持交互模式(stdin\x20raw\x20mode\x20不可用)。\x0a\x20\x20请使用支持交互的终端(如\x20Windows\x20Terminal、PowerShell),\x0a\x20\x20或使用非交互模式:lovrabet\x20<command>\x20--ci','266710MKyWeY','stdin','opencode','./skills/skill-install-non-interactive.js','boolean','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Authentication\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Logout\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20.lovrabetrc\x20config\x20in\x20existing\x20project\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Initialize\x20with\x20specified\x20appcode\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Create\x20a\x20new\x20project\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Start\x20project\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Build\x20project\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Sync\x20menu\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Update\x20menu\x20CDN\x20resources\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Preview\x20project\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Watch\x20mode\x20for\x20preview\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Project\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Pull\x20and\x20generate\x20API\x20config\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Generate\x20API\x20documentation\x20(see:\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20MCP\x20configuration\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Interactive\x20skill\x20installation\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20Cursor\x20skill\x20directly\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20Install\x20multiple\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Install\x20all\x20skills\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20View\x20logs\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20Clear\x20logs\x0a','cline','qoder','setLogPath','82wEjrzB','windsurf','×\x20Interactive\x20mode\x20is\x20not\x20supported\x20in\x20this\x20terminal\x20(stdin\x20raw\x20mode\x20unavailable).\x0a\x20\x20Please\x20use\x20a\x20terminal\x20that\x20supports\x20interactive\x20input\x20(e.g.\x20Windows\x20Terminal,\x20PowerShell),\x0a\x20\x20or\x20use\x20non-interactive\x20mode:\x20lovrabet\x20<command>\x20--ci','cwd','exit','trim','执行初始化配置命令','执行安装技能包命令','./skills/main.js','执行启动命令','slice','7915aePZOd','push','string','mcp-install','appcode','agent','build','4485987ZQUngg','claude','input','info','menu-update-cdn','codex','执行预览命令','preview','11064bhYbuN','all','8968134wQIpsn','other','--help','6636080HCMXFU'];a29_0x5ce1=function(){return _0x4f1da9;};return a29_0x5ce1();}import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';function a29_0x5288(_0x1f7692,_0x5d27d4){_0x1f7692=_0x1f7692-0x1c1;const _0x5ce11b=a29_0x5ce1();let _0x528876=_0x5ce11b[_0x1f7692];return _0x528876;}import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';import{I18nProvider}from'./i18n/I18nProvider.js';import{detectSystemLanguage,getLanguageFromFlags}from'./i18n/index.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a29_0x5e1142(0x1dd)))['dynamicCliFlags'];}catch{}const mergedFlags={...dynamicCliFlags||{}},helpTexts={'zh-CN':a29_0x5e1142(0x1f9),'en-US':a29_0x5e1142(0x20c)},systemLanguage=detectSystemLanguage();function isStdinRawModeSupported(){const _0x9a1a56=a29_0x5e1142;if(!process['stdin']['isTTY'])return![];try{const _0x5cd25d=process[_0x9a1a56(0x208)][_0x9a1a56(0x1fb)];return process[_0x9a1a56(0x208)][_0x9a1a56(0x205)](!![]),process['stdin'][_0x9a1a56(0x205)](_0x5cd25d??![]),!![];}catch{return![];}}function isNonInteractiveMode(_0x356a1f){const _0x545770=a29_0x5e1142;return!!(_0x356a1f['nonInteractive']||_0x356a1f['ci']||process[_0x545770(0x1eb)]['LOVRABET_CI']===_0x545770(0x1f3)||process[_0x545770(0x1eb)]['CI']==='true'||!process[_0x545770(0x1fd)][_0x545770(0x1f5)]||!isStdinRawModeSupported());}function getLanguage(_0x30056f){const _0x49861b=getLanguageFromFlags(_0x30056f);return _0x49861b||undefined;}function renderWithI18n(_0x445eef,_0x143de6){const _0x4e399b=a29_0x5e1142;return!isStdinRawModeSupported()&&(console[_0x4e399b(0x1da)](_0x143de6?.[_0x4e399b(0x1ec)]('zh')?_0x4e399b(0x206):_0x4e399b(0x212)),process['exit'](0x1)),render(a29_0x267aa3(I18nProvider,{'language':_0x143de6,'children':_0x445eef}));}const cli=a29_0x159f91(helpTexts[systemLanguage],{'importMeta':import.meta,'flags':{'name':{'type':a29_0x5e1142(0x1c6)},'clear':{'type':a29_0x5e1142(0x20b)},'env':{'type':a29_0x5e1142(0x1c6)},'watch':{'type':a29_0x5e1142(0x20b)},'help':{'type':'boolean'},'appcode':{'type':a29_0x5e1142(0x1c6)},'output':{'type':a29_0x5e1142(0x1c6)},'params':{'type':a29_0x5e1142(0x1c6)},'datasetcode':{'type':a29_0x5e1142(0x1c6)},'mcpCursor':{'type':'boolean'},'mcpClaude':{'type':a29_0x5e1142(0x20b)},'mcpOther':{'type':a29_0x5e1142(0x20b)},'cursor':{'type':'boolean'},'windsurf':{'type':'boolean'},'claude':{'type':a29_0x5e1142(0x20b)},'cline':{'type':a29_0x5e1142(0x20b)},'codex':{'type':'boolean'},'opencode':{'type':a29_0x5e1142(0x20b)},'qoder':{'type':'boolean'},'codebuddy':{'type':a29_0x5e1142(0x20b)},'trae':{'type':a29_0x5e1142(0x20b)},'agent':{'type':a29_0x5e1142(0x20b)},'antigravity':{'type':a29_0x5e1142(0x20b)},'all':{'type':a29_0x5e1142(0x20b)},'nonInteractive':{'type':a29_0x5e1142(0x20b)},'ci':{'type':a29_0x5e1142(0x20b)},'lang':{'type':a29_0x5e1142(0x1c6)},...mergedFlags},'autoVersion':!![]});await run();async function run(){const _0x1df44c=a29_0x5e1142,_0x1c01ff=cli[_0x1df44c(0x1cd)][0x0],_0x59e500=cli[_0x1df44c(0x1cd)][0x1],_0x30af5e=cli['input'][0x2],_0x14754a=getLanguage(cli[_0x1df44c(0x201)]),_0x4490f7=('lovrabet\x20'+process[_0x1df44c(0x1e5)][_0x1df44c(0x1c3)](0x2)[_0x1df44c(0x1e9)]('\x20'))[_0x1df44c(0x215)]();logger[_0x1df44c(0x1e4)](_0x4490f7);switch(_0x1c01ff){case _0x1df44c(0x1ed):{const _0x5ba717=cli['flags'][_0x1df44c(0x1c8)],_0x2fd8a0=cli[_0x1df44c(0x201)][_0x1df44c(0x1eb)];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)]('init',_0x1df44c(0x216)),renderWithI18n(a29_0x267aa3(Init,{'appcode':_0x5ba717,'env':_0x2fd8a0}),_0x14754a);break;}case'create':{const _0x343594=cli[_0x1df44c(0x1cd)][0x1]?.[_0x1df44c(0x215)](),_0xc5675c=cli['flags'][_0x1df44c(0x1eb)],_0x2a2ebd=isNonInteractiveMode(cli[_0x1df44c(0x201)]);if(_0x2a2ebd&&_0x343594){logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1db),'非交互模式创建项目:\x20'+_0x343594);const {createProjectNonInteractive:_0x48a1e4}=await import(_0x1df44c(0x1ee));await _0x48a1e4(_0x343594,_0xc5675c);}else _0x2a2ebd&&!_0x343594?(console[_0x1df44c(0x1da)](_0x14754a?.[_0x1df44c(0x1ec)]('zh')?_0x1df44c(0x202):_0x1df44c(0x1e3)),process[_0x1df44c(0x214)](0x1)):renderWithI18n(a29_0x267aa3(CreateApp,{'projectCode':_0x343594,'env':_0xc5675c}),_0x14754a);break;}case _0x1df44c(0x1df):{try{logger[_0x1df44c(0x20f)](process['cwd']()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1df),_0x1df44c(0x1c2)),await runStart();}catch(_0x2408c3){console[_0x1df44c(0x1da)](_0x2408c3),process[_0x1df44c(0x214)](0x1);}break;}case _0x1df44c(0x1ca):{try{logger['setLogPath'](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1ca),_0x1df44c(0x1fa)),await runBuild();}catch(_0x22cd42){console['error'](_0x22cd42),process[_0x1df44c(0x214)](0x1);}break;}case _0x1df44c(0x1d2):{const _0x582c9c=cli[_0x1df44c(0x201)][_0x1df44c(0x1f4)];logger[_0x1df44c(0x20f)](process['cwd']()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1d2),_0x1df44c(0x1d1)+(_0x582c9c?_0x1df44c(0x1f0):''));if(_0x582c9c)try{await Promise[_0x1df44c(0x1d4)]([runBuildWatch(),runPreview()]);}catch(_0x423617){console[_0x1df44c(0x1da)](_0x423617),process['exit'](0x1);}else try{await runPreview();}catch(_0x4747ee){console[_0x1df44c(0x1da)](_0x4747ee),process[_0x1df44c(0x214)](0x1);}break;}case'config':{renderWithI18n(a29_0x267aa3(Config,{'cli':cli}),_0x14754a);break;}case'api':{await apiCli(cli);break;}case'auth':{renderWithI18n(a29_0x267aa3(AuthServer,{}),_0x14754a);break;}case'menu':{if(_0x59e500===_0x1df44c(0x1e7)){logger['setLogPath'](process[_0x1df44c(0x213)]()),logger[_0x1df44c(0x1ce)](_0x1df44c(0x1cf),_0x1df44c(0x1e2)),renderWithI18n(a29_0x267aa3(AppMenuUpdateCdn,{}),_0x14754a);break;}else logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]()),logger['info'](_0x1df44c(0x1de),'同步菜单命令'),renderWithI18n(a29_0x267aa3(AppMenuSyncUI,{}),_0x14754a);break;}case _0x1df44c(0x1ef):{logout();break;}case _0x1df44c(0x1d9):{const _0x1ed886=cli[_0x1df44c(0x1cd)][0x1];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]());if(_0x1ed886==='install'){const _0x31ccab=[];if(cli['flags'][_0x1df44c(0x1f1)]||cli[_0x1df44c(0x201)][_0x1df44c(0x200)])_0x31ccab[_0x1df44c(0x1c5)]('cursor');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1fc)]||cli[_0x1df44c(0x201)][_0x1df44c(0x1cc)])_0x31ccab[_0x1df44c(0x1c5)](_0x1df44c(0x1cc));if(cli['flags'][_0x1df44c(0x1fe)])_0x31ccab[_0x1df44c(0x1c5)](_0x1df44c(0x1d6));logger[_0x1df44c(0x1ce)](_0x1df44c(0x1c7),_0x1df44c(0x1f6),{'preselected':_0x31ccab});if(isNonInteractiveMode(cli[_0x1df44c(0x201)])&&_0x31ccab[_0x1df44c(0x204)]>0x0){const {installMcpNonInteractive:_0x3c6314}=await import(_0x1df44c(0x1f8));await _0x3c6314(_0x31ccab);}else renderWithI18n(a29_0x267aa3(McpInstallUI,{'preselectedIDEs':_0x31ccab}),_0x14754a);}else _0x1ed886===_0x1df44c(0x1d7)||cli[_0x1df44c(0x201)][_0x1df44c(0x1ea)]?await mcpCommand(_0x1ed886,[],{'help':!![]}):await mcpCommand(_0x1ed886,[],cli[_0x1df44c(0x201)]);break;}case _0x1df44c(0x1f2):{const _0x2e125a=cli[_0x1df44c(0x1cd)][0x1];logger[_0x1df44c(0x20f)](process[_0x1df44c(0x213)]());if(_0x2e125a==='install'){const _0x3cfb50=[];if(cli[_0x1df44c(0x201)][_0x1df44c(0x1d4)])_0x3cfb50['push'](_0x1df44c(0x200),_0x1df44c(0x211),_0x1df44c(0x1cc),_0x1df44c(0x20d),_0x1df44c(0x1d0),_0x1df44c(0x209),_0x1df44c(0x20e),_0x1df44c(0x1ff),'trae',_0x1df44c(0x1c9),_0x1df44c(0x203));else{if(cli[_0x1df44c(0x201)][_0x1df44c(0x200)])_0x3cfb50[_0x1df44c(0x1c5)](_0x1df44c(0x200));if(cli['flags'][_0x1df44c(0x211)])_0x3cfb50['push'](_0x1df44c(0x211));if(cli[_0x1df44c(0x201)][_0x1df44c(0x1cc)])_0x3cfb50['push'](_0x1df44c(0x1cc));if(cli[_0x1df44c(0x201)][_0x1df44c(0x20d)])_0x3cfb50[_0x1df44c(0x1c5)]('cline');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1d0)])_0x3cfb50[_0x1df44c(0x1c5)](_0x1df44c(0x1d0));if(cli['flags'][_0x1df44c(0x209)])_0x3cfb50[_0x1df44c(0x1c5)]('opencode');if(cli[_0x1df44c(0x201)][_0x1df44c(0x20e)])_0x3cfb50[_0x1df44c(0x1c5)]('qoder');if(cli[_0x1df44c(0x201)]['codebuddy'])_0x3cfb50[_0x1df44c(0x1c5)]('codebuddy');if(cli[_0x1df44c(0x201)]['trae'])_0x3cfb50['push']('trae');if(cli[_0x1df44c(0x201)][_0x1df44c(0x1c9)])_0x3cfb50['push'](_0x1df44c(0x1c9));if(cli[_0x1df44c(0x201)]['antigravity'])_0x3cfb50[_0x1df44c(0x1c5)]('antigravity');}const {getAllProvidedFlags:_0x18cddf}=await import(_0x1df44c(0x1c1)),_0x408746=_0x18cddf(cli[_0x1df44c(0x201)]);logger[_0x1df44c(0x1ce)](_0x1df44c(0x1dc),_0x1df44c(0x217),{'preselected':_0x3cfb50,'providedFlags':_0x408746});if(isNonInteractiveMode(cli[_0x1df44c(0x201)])&&_0x3cfb50['length']>0x0){const {installSkillsNonInteractive:_0x25e772}=await import(_0x1df44c(0x20a));await _0x25e772(_0x3cfb50,_0x408746);}else renderWithI18n(a29_0x267aa3(SkillInstallUI,{'preselectedIDEs':_0x3cfb50,'providedFlags':_0x408746}),_0x14754a);}else _0x2e125a===_0x1df44c(0x1d7)||cli[_0x1df44c(0x201)][_0x1df44c(0x1ea)]?await skillsCommand(_0x2e125a,[],{'help':!![]}):await skillsCommand(_0x2e125a,[],cli[_0x1df44c(0x201)]);break;}case _0x1df44c(0x1e0):{cli[_0x1df44c(0x201)]['clear']?clearLogs():showLogs();break;}default:renderWithI18n(a29_0x267aa3(Help,{}),_0x14754a);break;}}
|
package/lib/cmd/build-watch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b2cfa,_0x547036){const _0x3b650f=a30_0x548c,_0x10fbf6=_0x4b2cfa();while(!![]){try{const _0x1ca1da=-parseInt(_0x3b650f(0x10f))/0x1+parseInt(_0x3b650f(0x11a))/0x2+-parseInt(_0x3b650f(0x112))/0x3+parseInt(_0x3b650f(0x114))/0x4+-parseInt(_0x3b650f(0x116))/0x5+-parseInt(_0x3b650f(0x10d))/0x6+parseInt(_0x3b650f(0x119))/0x7;if(_0x1ca1da===_0x547036)break;else _0x10fbf6['push'](_0x10fbf6['shift']());}catch(_0x154d32){_0x10fbf6['push'](_0x10fbf6['shift']());}}}(a30_0x5b1c,0x37c06));import{spawn}from'node:child_process';function a30_0x5b1c(){const _0xfa9c1f=['inherit','2887906oTueqY','341796ZdDLUg','PATH','close','35082FiCbaW','node_modules','327637sjZCSu','npm\x20run\x20build\x20exited\x20with\x20code\x20','env','679275NIMVuG','build','1554556kkyHlU','vite','919140JLWcRD','--watch'];a30_0x5b1c=function(){return _0xfa9c1f;};return a30_0x5b1c();}function a30_0x548c(_0x316a8a,_0x521b04){_0x316a8a=_0x316a8a-0x10c;const _0x5b1c95=a30_0x5b1c();let _0x548cda=_0x5b1c95[_0x316a8a];return _0x548cda;}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x581768,_0x56ceee)=>{const _0x42802b=a30_0x548c,_0x41004c=spawn(_0x42802b(0x115),[_0x42802b(0x113),_0x42802b(0x117)],{'stdio':_0x42802b(0x118),'shell':!![],'env':{...process[_0x42802b(0x111)],'PATH':''+join(process['cwd'](),_0x42802b(0x10e),'.bin')+delimiter+process[_0x42802b(0x111)][_0x42802b(0x11b)]}});_0x41004c['on'](_0x42802b(0x10c),_0x4f1ee4=>{const _0x41a0cf=_0x42802b;if(_0x4f1ee4===0x0||_0x4f1ee4===null)_0x581768();else _0x56ceee(new Error(_0x41a0cf(0x110)+_0x4f1ee4));}),_0x41004c['on']('error',_0x56ceee);});}
|
package/lib/cmd/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc9f2c1,_0x30de49){const _0x5c5e9f=a31_0x47d1,_0x69f310=_0xc9f2c1();while(!![]){try{const _0x1e1421=parseInt(_0x5c5e9f(0xcd))/0x1+-parseInt(_0x5c5e9f(0xdc))/0x2+-parseInt(_0x5c5e9f(0xe2))/0x3*(-parseInt(_0x5c5e9f(0xdd))/0x4)+-parseInt(_0x5c5e9f(0xd2))/0x5*(parseInt(_0x5c5e9f(0xd5))/0x6)+parseInt(_0x5c5e9f(0xd4))/0x7+parseInt(_0x5c5e9f(0xdb))/0x8+parseInt(_0x5c5e9f(0xed))/0x9*(-parseInt(_0x5c5e9f(0xd6))/0xa);if(_0x1e1421===_0x30de49)break;else _0x69f310['push'](_0x69f310['shift']());}catch(_0x5a7bf0){_0x69f310['push'](_0x69f310['shift']());}}}(a31_0x6459,0x3bf22));function a31_0x6459(){const _0x13a47a=['npm\x20run\x20build','env','trim','.bin','run','close','build','45IqowXm','success','inherit','489880LtzhXW','pipe','message','cwd','stderr','415kCToqM','info','1795325SrvpBj','9798GzFEHc','247620qkFWdY','npm\x20run\x20build\x20exited\x20with\x20code\x20','toString','开始构建项目','data','152176uggiLf','617888YtYOmB','4jhvDrz','项目构建成功','error','项目构建出错','node_modules','145362AMqScO','npm','now','项目构建失败'];a31_0x6459=function(){return _0x13a47a;};return a31_0x6459();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a31_0x47d1(_0x347de9,_0x273cae){_0x347de9=_0x347de9-0xcc;const _0x64593a=a31_0x6459();let _0x47d19c=_0x64593a[_0x347de9];return _0x47d19c;}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x424bbd,_0x1e94d8)=>{const _0x4e93cd=a31_0x47d1,_0x236245=Date[_0x4e93cd(0xe4)]();logger[_0x4e93cd(0xd3)](_0x4e93cd(0xec),_0x4e93cd(0xd9),{'command':_0x4e93cd(0xe6)});let _0x3ab0c8='';const _0xcfb601=spawn(_0x4e93cd(0xe3),[_0x4e93cd(0xea),'build'],{'stdio':[_0x4e93cd(0xcc),'inherit',_0x4e93cd(0xce)],'shell':!![],'env':{...process[_0x4e93cd(0xe7)],'PATH':''+join(process[_0x4e93cd(0xd0)](),_0x4e93cd(0xe1),_0x4e93cd(0xe9))+delimiter+process[_0x4e93cd(0xe7)]['PATH']}});_0xcfb601[_0x4e93cd(0xd1)]?.['on'](_0x4e93cd(0xda),_0x5e716f=>{const _0x5a02c5=_0x4e93cd;_0x3ab0c8+=_0x5e716f[_0x5a02c5(0xd8)]();}),_0xcfb601['on'](_0x4e93cd(0xeb),_0x3c00ed=>{const _0x5e97f5=_0x4e93cd,_0x3864f4=Date[_0x5e97f5(0xe4)]()-_0x236245;if(_0x3c00ed===0x0||_0x3c00ed===null)logger[_0x5e97f5(0xee)](_0x5e97f5(0xec),_0x5e97f5(0xde),_0x3864f4),_0x424bbd();else{const _0x31dbab={'exitCode':_0x3c00ed,'duration':_0x3864f4,'command':_0x5e97f5(0xe6),'cwd':process[_0x5e97f5(0xd0)]()};_0x3ab0c8[_0x5e97f5(0xe8)]()&&(_0x31dbab[_0x5e97f5(0xd1)]=_0x3ab0c8[_0x5e97f5(0xe8)]()),logger[_0x5e97f5(0xdf)](_0x5e97f5(0xec),_0x5e97f5(0xe5),_0x31dbab),_0x1e94d8(new Error(_0x5e97f5(0xd7)+_0x3c00ed));}}),_0xcfb601['on'](_0x4e93cd(0xdf),_0x5129c8=>{const _0x4a47f7=_0x4e93cd,_0x16b7c2=Date[_0x4a47f7(0xe4)]()-_0x236245;logger[_0x4a47f7(0xdf)](_0x4a47f7(0xec),_0x4a47f7(0xe0),{'error':_0x5129c8[_0x4a47f7(0xcf)],'duration':_0x16b7c2,'stderr':_0x3ab0c8[_0x4a47f7(0xe8)]()||undefined}),_0x1e94d8(_0x5129c8);});});}
|
package/lib/cmd/logs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a32_0x11aa3d=a32_0x3885;(function(_0x51f656,_0x40c248){const _0x2ace5f=a32_0x3885,_0x347a72=_0x51f656();while(!![]){try{const _0x5a4522=-parseInt(_0x2ace5f(0x161))/0x1*(parseInt(_0x2ace5f(0x16f))/0x2)+-parseInt(_0x2ace5f(0x171))/0x3*(parseInt(_0x2ace5f(0x162))/0x4)+parseInt(_0x2ace5f(0x172))/0x5+-parseInt(_0x2ace5f(0x159))/0x6*(parseInt(_0x2ace5f(0x15a))/0x7)+-parseInt(_0x2ace5f(0x166))/0x8*(-parseInt(_0x2ace5f(0x16c))/0x9)+-parseInt(_0x2ace5f(0x167))/0xa*(-parseInt(_0x2ace5f(0x165))/0xb)+parseInt(_0x2ace5f(0x15c))/0xc;if(_0x5a4522===_0x40c248)break;else _0x347a72['push'](_0x347a72['shift']());}catch(_0x332db8){_0x347a72['push'](_0x347a72['shift']());}}}(a32_0x1f2c,0xbdc93));import{logger}from'../utils/logger.js';function a32_0x1f2c(){const _0x53d126=['2287110QAHxkd','logs.noLogs','length','message','log','warn','logs.time','cwd','details','error','logs.cleared','setLogPath','stringify','6zbPHhg','9665558ffhtQd','logs.header','15345792tlNrPg','clearLogs','forEach','en-US','success','139694sylEOz','1187424hMVEYw','logs.details','logs.duration','44gjtgCZ','7560rQmnmo','779230NwpCco','keys','level','language','toLocaleString','13689PpoTdy','bind','duration','2CZHxUe','zh-CN','12zHVpOD'];a32_0x1f2c=function(){return _0x53d126;};return a32_0x1f2c();}function a32_0x3885(_0x2f9b17,_0x1dcd10){_0x2f9b17=_0x2f9b17-0x14f;const _0x1f2cb7=a32_0x1f2c();let _0x38857b=_0x1f2cb7[_0x2f9b17];return _0x38857b;}import a32_0x38a9cb from'../i18n/index.js';const t=a32_0x38a9cb['t'][a32_0x11aa3d(0x16d)](a32_0x38a9cb);export function showLogs(){const _0x59030e=a32_0x11aa3d;logger[_0x59030e(0x157)](process[_0x59030e(0x153)]());const _0x53a479=logger['readLogs']();if(_0x53a479[_0x59030e(0x174)]===0x0){console['log'](t(_0x59030e(0x173)));return;}console['log'](t(_0x59030e(0x15b))),_0x53a479[_0x59030e(0x15e)]((_0x32a548,_0x12059d)=>{const _0x139c60=_0x59030e,_0x5e2d3d=a32_0x38a9cb[_0x139c60(0x16a)]===_0x139c60(0x170)?_0x139c60(0x170):_0x139c60(0x15f),_0x48d3d4=new Date(_0x32a548['timestamp'])[_0x139c60(0x16b)](_0x5e2d3d),_0x13e8f5=_0x32a548[_0x139c60(0x169)]===_0x139c60(0x160)?'√':_0x32a548[_0x139c60(0x169)]===_0x139c60(0x155)?'×':_0x32a548['level']===_0x139c60(0x151)?'!':'i';console[_0x139c60(0x150)](_0x12059d+0x1+'.\x20'+_0x13e8f5+'\x20['+_0x32a548['command']+']\x20'+_0x32a548[_0x139c60(0x14f)]),console[_0x139c60(0x150)](t(_0x139c60(0x152),{'time':_0x48d3d4})),_0x32a548['duration']&&console['log'](t(_0x139c60(0x164),{'duration':_0x32a548[_0x139c60(0x16e)]})),_0x32a548[_0x139c60(0x154)]&&Object[_0x139c60(0x168)](_0x32a548['details'])[_0x139c60(0x174)]>0x0&&console[_0x139c60(0x150)](t(_0x139c60(0x163),{'details':JSON[_0x139c60(0x158)](_0x32a548[_0x139c60(0x154)],null,0x2)})),console[_0x139c60(0x150)]('');});}export function clearLogs(){const _0x974695=a32_0x11aa3d;logger[_0x974695(0x157)](process[_0x974695(0x153)]()),logger[_0x974695(0x15d)](),console[_0x974695(0x150)](t(_0x974695(0x156)));}
|
package/lib/cmd/preview.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a33_0x1de1(){const _0x25c473=['inherit','PATH','1563570IRgqSb','vite\x20preview\x20exited\x20with\x20code\x20','4031620RITxXd','5VzqJAi','info','预览服务器启动失败','464988oZHXFy','trim','18623935XFqOgX','1074389YVZngc','.bin','1192137PbPDNQ','2NrhAfR','预览服务器启动出错','vite\x20preview','preview','toString','265528DqcQTY','now','336eOaKEh','stderr','close','12twVqnS','error','cwd','node_modules','env','success'];a33_0x1de1=function(){return _0x25c473;};return a33_0x1de1();}(function(_0x3920d7,_0x1a18e0){const _0x5a535f=a33_0x3db1,_0x5536ae=_0x3920d7();while(!![]){try{const _0x36200a=-parseInt(_0x5a535f(0x8f))/0x1*(parseInt(_0x5a535f(0x92))/0x2)+parseInt(_0x5a535f(0x91))/0x3*(-parseInt(_0x5a535f(0x9c))/0x4)+-parseInt(_0x5a535f(0x89))/0x5*(-parseInt(_0x5a535f(0x8c))/0x6)+parseInt(_0x5a535f(0x99))/0x7*(parseInt(_0x5a535f(0x97))/0x8)+parseInt(_0x5a535f(0xa4))/0x9+-parseInt(_0x5a535f(0x88))/0xa+parseInt(_0x5a535f(0x8e))/0xb;if(_0x36200a===_0x1a18e0)break;else _0x5536ae['push'](_0x5536ae['shift']());}catch(_0x214a86){_0x5536ae['push'](_0x5536ae['shift']());}}}(a33_0x1de1,0xd3dd1));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a33_0x3db1(_0x5ba877,_0x46b2de){_0x5ba877=_0x5ba877-0x87;const _0x1de1a0=a33_0x1de1();let _0x3db1ea=_0x1de1a0[_0x5ba877];return _0x3db1ea;}import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x11f187,_0x554a04)=>{const _0x5801f1=a33_0x3db1,_0x20620c=Date[_0x5801f1(0x98)]();logger[_0x5801f1(0x8a)](_0x5801f1(0x95),'启动预览服务器',{'command':'vite\x20preview'});let _0x53d47f='';const _0x1c812f=spawn('vite',[_0x5801f1(0x95)],{'stdio':[_0x5801f1(0xa2),'inherit','pipe'],'shell':!![],'env':{...process[_0x5801f1(0xa0)],'PATH':''+join(process[_0x5801f1(0x9e)](),_0x5801f1(0x9f),_0x5801f1(0x90))+delimiter+process[_0x5801f1(0xa0)][_0x5801f1(0xa3)]}});_0x1c812f[_0x5801f1(0x9a)]?.['on']('data',_0x107fdc=>{const _0x1d1dc9=_0x5801f1;_0x53d47f+=_0x107fdc[_0x1d1dc9(0x96)]();}),_0x1c812f['on'](_0x5801f1(0x9b),_0x4ee164=>{const _0x42852e=_0x5801f1,_0x187a01=Date['now']()-_0x20620c;if(_0x4ee164===0x0||_0x4ee164===null)logger[_0x42852e(0xa1)]('preview','预览服务器启动成功',_0x187a01),_0x11f187();else{const _0x4ffe53={'exitCode':_0x4ee164,'duration':_0x187a01,'command':_0x42852e(0x94),'cwd':process[_0x42852e(0x9e)]()};_0x53d47f[_0x42852e(0x8d)]()&&(_0x4ffe53['stderr']=_0x53d47f['trim']()),logger[_0x42852e(0x9d)](_0x42852e(0x95),_0x42852e(0x8b),_0x4ffe53),_0x554a04(new Error(_0x42852e(0x87)+_0x4ee164));}}),_0x1c812f['on']('error',_0x9ff5bb=>{const _0x39d66d=_0x5801f1,_0x1c79b6=Date['now']()-_0x20620c;logger['error']('preview',_0x39d66d(0x93),{'error':_0x9ff5bb['message'],'duration':_0x1c79b6,'stderr':_0x53d47f[_0x39d66d(0x8d)]()||undefined}),_0x554a04(_0x9ff5bb);});});}
|
package/lib/cmd/start-execa.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc3429,_0x1f200a){const _0x527b67=a34_0x2876,_0x5c2aa2=_0xc3429();while(!![]){try{const _0x370d5c=parseInt(_0x527b67(0x127))/0x1+-parseInt(_0x527b67(0x122))/0x2+-parseInt(_0x527b67(0x115))/0x3*(parseInt(_0x527b67(0x126))/0x4)+parseInt(_0x527b67(0x114))/0x5+-parseInt(_0x527b67(0x129))/0x6+-parseInt(_0x527b67(0x10f))/0x7+parseInt(_0x527b67(0x124))/0x8*(parseInt(_0x527b67(0x11f))/0x9);if(_0x370d5c===_0x1f200a)break;else _0x5c2aa2['push'](_0x5c2aa2['shift']());}catch(_0x1ce114){_0x5c2aa2['push'](_0x5c2aa2['shift']());}}}(a34_0x1479,0xb5e2a));function a34_0x2876(_0x5b0ef6,_0x3956e9){_0x5b0ef6=_0x5b0ef6-0x10d;const _0x14792e=a34_0x1479();let _0x287634=_0x14792e[_0x5b0ef6];return _0x287634;}import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';function a34_0x1479(){const _0x30197f=['exitCode','stableVersion','CLI\x20版本有更新','warn','135nkecCT','开发服务器启动成功','object','1057288ULtaAw','now','1762056Ceefwl','needsUpgrade','5031668MipJIy','750241vpoXax','error','5722104fcNMUT','vite','inherit','timedOut','8738919zXxdNN','SDK\x20版本有更新','currentVersion','version','开发服务器启动失败','3397840bbhQof','3ejvzrI','success','message','info','start','stderr'];a34_0x1479=function(){return _0x30197f;};return a34_0x1479();}import{execa}from'execa';export async function runStart(_0x146cc2){const _0x4b35e8=a34_0x2876,_0x3b96a8=Date[_0x4b35e8(0x123)](),_0x3930a4=_0x146cc2||process['cwd'](),_0x4c7967=await checkCliVersion();_0x4c7967[_0x4b35e8(0x125)]&&(printCliUpgradeWarning(_0x4c7967),logger[_0x4b35e8(0x11e)]('start',_0x4b35e8(0x11d),{'currentVersion':_0x4c7967[_0x4b35e8(0x111)],'stableVersion':_0x4c7967[_0x4b35e8(0x11c)]}));const _0x597cf1=await checkSdkVersion(_0x3930a4);_0x597cf1[_0x4b35e8(0x125)]&&(printSdkUpgradeWarning(_0x597cf1),logger[_0x4b35e8(0x11e)]('start',_0x4b35e8(0x110),{'currentVersion':_0x597cf1[_0x4b35e8(0x112)],'stableVersion':_0x597cf1[_0x4b35e8(0x11c)]}));logger[_0x4b35e8(0x118)]('start','启动开发服务器',{'command':_0x4b35e8(0x12a),'cwd':_0x3930a4});try{await execa(_0x4b35e8(0x12a),[],{'cwd':_0x3930a4,'stdio':_0x4b35e8(0x10d),'preferLocal':!![],'localDir':_0x3930a4,'env':{...process['env']}});const _0x5329db=Date[_0x4b35e8(0x123)]()-_0x3b96a8;logger[_0x4b35e8(0x116)](_0x4b35e8(0x119),_0x4b35e8(0x120),_0x5329db);}catch(_0x23ec48){const _0x9ff339=Date[_0x4b35e8(0x123)]()-_0x3b96a8,_0x1b7a08={'duration':_0x9ff339,'command':_0x4b35e8(0x12a),'cwd':_0x3930a4};if(_0x23ec48&&typeof _0x23ec48===_0x4b35e8(0x121)){const _0x1aa6c3=_0x23ec48;_0x1aa6c3[_0x4b35e8(0x11b)]!==undefined&&(_0x1b7a08['exitCode']=_0x1aa6c3[_0x4b35e8(0x11b)]),_0x1aa6c3[_0x4b35e8(0x11a)]&&(_0x1b7a08['stderr']=_0x1aa6c3[_0x4b35e8(0x11a)]),_0x1aa6c3[_0x4b35e8(0x10e)]&&(_0x1b7a08['timeout']=!![]),_0x1aa6c3[_0x4b35e8(0x117)]&&(_0x1b7a08[_0x4b35e8(0x128)]=_0x1aa6c3[_0x4b35e8(0x117)]);}logger[_0x4b35e8(0x128)]('start',_0x4b35e8(0x113),_0x1b7a08);throw _0x23ec48;}}
|
package/lib/cmd/start.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5428a5,_0x26f603){const _0x82eda8=a35_0x1dc9,_0x5776dd=_0x5428a5();while(!![]){try{const _0x97898e=-parseInt(_0x82eda8(0x13c))/0x1*(parseInt(_0x82eda8(0x133))/0x2)+-parseInt(_0x82eda8(0x13d))/0x3+parseInt(_0x82eda8(0x138))/0x4+parseInt(_0x82eda8(0x14d))/0x5+-parseInt(_0x82eda8(0x140))/0x6*(-parseInt(_0x82eda8(0x150))/0x7)+parseInt(_0x82eda8(0x147))/0x8*(-parseInt(_0x82eda8(0x134))/0x9)+parseInt(_0x82eda8(0x146))/0xa;if(_0x97898e===_0x26f603)break;else _0x5776dd['push'](_0x5776dd['shift']());}catch(_0x1cc051){_0x5776dd['push'](_0x5776dd['shift']());}}}(a35_0x23fe,0x6378b));import{logger}from'../utils/logger.js';function a35_0x1dc9(_0x3212a1,_0x2587df){_0x3212a1=_0x3212a1-0x130;const _0x23fe00=a35_0x23fe();let _0x1dc92a=_0x23fe00[_0x3212a1];return _0x1dc92a;}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{execa}from'execa';export async function runStart(_0x4a0660){const _0x2b8045=a35_0x1dc9,_0x11923f=Date[_0x2b8045(0x14c)](),_0x5b8026=_0x4a0660||process['cwd'](),_0x9e049a=await checkCliVersion();_0x9e049a[_0x2b8045(0x136)]&&(printCliUpgradeWarning(_0x9e049a),logger[_0x2b8045(0x135)](_0x2b8045(0x144),_0x2b8045(0x148),{'currentVersion':_0x9e049a[_0x2b8045(0x142)],'stableVersion':_0x9e049a[_0x2b8045(0x13f)]}));const _0x353915=await checkSdkVersion(_0x5b8026);_0x353915['needsUpgrade']&&(printSdkUpgradeWarning(_0x353915),logger['warn'](_0x2b8045(0x144),_0x2b8045(0x14f),{'currentVersion':_0x353915[_0x2b8045(0x14b)],'stableVersion':_0x353915[_0x2b8045(0x13f)]}));logger[_0x2b8045(0x132)](_0x2b8045(0x144),_0x2b8045(0x14a),{'command':'vite','cwd':_0x5b8026});try{await execa(_0x2b8045(0x13b),[],{'cwd':_0x5b8026,'stdio':_0x2b8045(0x141),'preferLocal':!![],'localDir':_0x5b8026,'env':{...process[_0x2b8045(0x131)]}});const _0x3c8c36=Date[_0x2b8045(0x14c)]()-_0x11923f;logger[_0x2b8045(0x130)](_0x2b8045(0x144),_0x2b8045(0x13a),_0x3c8c36);}catch(_0x57a720){const _0x1c7c8a=Date[_0x2b8045(0x14c)]()-_0x11923f,_0x1ed709={'duration':_0x1c7c8a,'command':_0x2b8045(0x13b),'cwd':_0x5b8026};if(_0x57a720&&typeof _0x57a720===_0x2b8045(0x149)){const _0x1c5d06=_0x57a720;_0x1c5d06['exitCode']!==undefined&&(_0x1ed709[_0x2b8045(0x145)]=_0x1c5d06[_0x2b8045(0x145)]),_0x1c5d06[_0x2b8045(0x139)]&&(_0x1ed709[_0x2b8045(0x139)]=_0x1c5d06['stderr']),_0x1c5d06[_0x2b8045(0x143)]&&(_0x1ed709[_0x2b8045(0x137)]=!![]),_0x1c5d06[_0x2b8045(0x14e)]&&(_0x1ed709[_0x2b8045(0x13e)]=_0x1c5d06['message']);}logger[_0x2b8045(0x13e)](_0x2b8045(0x144),'开发服务器启动失败',_0x1ed709);throw _0x57a720;}}function a35_0x23fe(){const _0x1f2bc6=['message','SDK\x20版本有更新','4293989cFopso','success','env','info','719830mYxvrL','441JtuVRt','warn','needsUpgrade','timeout','1879208MriGUN','stderr','开发服务器启动成功','vite','1dXhuYD','1814688eGOnFP','error','stableVersion','6wTObzX','inherit','currentVersion','timedOut','start','exitCode','7247550hXgvEl','126976qiNHBe','CLI\x20版本有更新','object','启动开发服务器','version','now','1709950XtdUqj'];a35_0x23fe=function(){return _0x1f2bc6;};return a35_0x23fe();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x214a3a,_0x1444aa){const _0x4860e3=a36_0x173e,_0x42b717=_0x214a3a();while(!![]){try{const _0x523d9e=-parseInt(_0x4860e3(0x1e1))/0x1+parseInt(_0x4860e3(0x1f2))/0x2*(-parseInt(_0x4860e3(0x1fa))/0x3)+parseInt(_0x4860e3(0x1f4))/0x4+-parseInt(_0x4860e3(0x1e9))/0x5*(-parseInt(_0x4860e3(0x1ef))/0x6)+parseInt(_0x4860e3(0x1f7))/0x7+-parseInt(_0x4860e3(0x1e7))/0x8*(-parseInt(_0x4860e3(0x1fb))/0x9)+-parseInt(_0x4860e3(0x1e5))/0xa;if(_0x523d9e===_0x1444aa)break;else _0x42b717['push'](_0x42b717['shift']());}catch(_0x496a64){_0x42b717['push'](_0x42b717['shift']());}}}(a36_0x4be8,0x2a3b0));import{jsxs as a36_0x2da8eb,jsx as a36_0x400b43}from'react/jsx-runtime';import{Box,Text}from'ink';function a36_0x4be8(){const _0x35aef6=['134794UATQto','config.help.list','301872qZXpVF','lovrabet\x20config\x20set\x20locale\x20en\x20\x20\x20\x20\x20\x20\x20','config.help.exampleEnv','977718FfHqac','config.help.get','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','3stBiGj','27SQLCTe','config.help.set','108031MpIGUu','command','config.help.exampleApp','\x20*\x20','2385730wtbQRY','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','158760vPoOfh','config.help.invalidCommand','4500wPPoAN','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','\x20\x20\x20\x20','description','gray','2082LhSLOQ','map','config.help.examples'];a36_0x4be8=function(){return _0x35aef6;};return a36_0x4be8();}import{useI18n}from'../i18n/hooks.js';function a36_0x173e(_0xd65336,_0x125395){_0xd65336=_0xd65336-0x1e0;const _0x4be8ad=a36_0x4be8();let _0x173ea3=_0x4be8ad[_0xd65336];return _0x173ea3;}export function ConfigHelp(){const _0x46fc2d=a36_0x173e,{t:_0x49c0de}=useI18n(),_0x11772d=[{'command':_0x46fc2d(0x1eb),'description':_0x49c0de(_0x46fc2d(0x1e0))},{'command':_0x46fc2d(0x1e6),'description':_0x49c0de(_0x46fc2d(0x1f8))},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x49c0de(_0x46fc2d(0x1f3))}],_0x4d4aa3=[{'command':_0x46fc2d(0x1ea),'description':_0x49c0de(_0x46fc2d(0x1e3))},{'command':_0x46fc2d(0x1f9),'description':_0x49c0de(_0x46fc2d(0x1f6))},{'command':_0x46fc2d(0x1f5),'description':_0x49c0de('config.help.exampleLocale')}];return a36_0x2da8eb(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a36_0x400b43(Box,{'marginBottom':0x1,'children':a36_0x2da8eb(Text,{'color':_0x46fc2d(0x1ee),'children':['\x20','!','\x20\x20',_0x49c0de(_0x46fc2d(0x1e8))]})}),_0x11772d[_0x46fc2d(0x1f0)](_0x32066a=>a36_0x2da8eb(Box,{'children':[a36_0x2da8eb(Text,{'children':[_0x46fc2d(0x1ec),_0x32066a['command']]}),a36_0x400b43(Text,{'color':_0x46fc2d(0x1ee),'children':_0x32066a['description']})]},_0x32066a[_0x46fc2d(0x1e2)])),a36_0x400b43(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a36_0x2da8eb(Text,{'color':'gray','children':[_0x46fc2d(0x1e4),_0x49c0de(_0x46fc2d(0x1f1))]})}),_0x4d4aa3['map'](_0x2c0d41=>a36_0x2da8eb(Box,{'children':[a36_0x2da8eb(Text,{'children':[_0x46fc2d(0x1ec),_0x2c0d41[_0x46fc2d(0x1e2)]]}),a36_0x400b43(Text,{'color':_0x46fc2d(0x1ee),'children':_0x2c0d41[_0x46fc2d(0x1ed)]})]},_0x2c0d41[_0x46fc2d(0x1e2)]))]});}
|
package/lib/config/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50def6,_0x2c56c2){const _0x4c1ab9=a37_0x4e58,_0x28d3bc=_0x50def6();while(!![]){try{const _0x3babff=-parseInt(_0x4c1ab9(0x18f))/0x1+-parseInt(_0x4c1ab9(0x19a))/0x2*(parseInt(_0x4c1ab9(0x1a3))/0x3)+-parseInt(_0x4c1ab9(0x1ad))/0x4+parseInt(_0x4c1ab9(0x194))/0x5*(parseInt(_0x4c1ab9(0x1a8))/0x6)+parseInt(_0x4c1ab9(0x19f))/0x7+-parseInt(_0x4c1ab9(0x1a5))/0x8+parseInt(_0x4c1ab9(0x1b2))/0x9*(parseInt(_0x4c1ab9(0x1a7))/0xa);if(_0x3babff===_0x2c56c2)break;else _0x28d3bc['push'](_0x28d3bc['shift']());}catch(_0x4f5bff){_0x28d3bc['push'](_0x28d3bc['shift']());}}}(a37_0x16c5,0xe829f));import{jsx as a37_0x172aed,jsxs as a37_0x529a61}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a37_0x3b7f65 from'node:fs';import a37_0x410997 from'node:path';import{ConfigHelp}from'./config-help.js';function a37_0x16c5(){const _0x28d698=['30FuMluo','保存配置失败','locale','column','message','1834092ImUuna','list','config.scope.project','set','daily','7641Uuplqe','--help','config.scope.global','config.success.localeSet','error','input','config.success.envSet','red','includes','env','unlinkSync','334179ltZUfo','length','utf8','config.validation.localeInvalid','parse','556735EAKDTq','string','config.validation.saveFailed','dirname','stringify','undefined','54342fjMeID','appcode','help','get','app','1087058DMosfb','log','flags','mkdirSync','174qAkEqn','config.validation.envInvalid','10539144huVhSI','.tmp','46230aAnsDD'];a37_0x16c5=function(){return _0x28d698;};return a37_0x16c5();}import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';import{normalizeLocale}from'../i18n/index.js';import{useI18n}from'../i18n/hooks.js';function a37_0x4e58(_0x44facd,_0x5c4828){_0x44facd=_0x44facd-0x186;const _0x16c547=a37_0x16c5();let _0x4e5812=_0x16c547[_0x44facd];return _0x4e5812;}export function Config(_0x1ed338){const _0x1d00a2=a37_0x4e58,{cli:_0x326da6}=_0x1ed338,{t:_0x3d997e}=useI18n(),_0x142c47=_0x326da6[_0x1d00a2(0x189)][0x1],_0x466c8c=_0x326da6['input'][0x2],_0x174405=[_0x1d00a2(0x1b0),_0x1d00a2(0x19d)][_0x1d00a2(0x18c)](_0x142c47||''),_0x1b8c70=_0x326da6[_0x1d00a2(0x189)][_0x1d00a2(0x190)]>=0x3;if(_0x466c8c===_0x1d00a2(0x1b3)||_0x326da6[_0x1d00a2(0x1a1)][_0x1d00a2(0x19c)])return a37_0x172aed(ConfigHelp,{});const _0x4041a8=readConfig();if(_0x142c47===_0x1d00a2(0x1b0)){if(_0x466c8c){const _0x12fa6d=_0x326da6['input'][0x3];if(typeof _0x12fa6d!==_0x1d00a2(0x199)){if(_0x466c8c===_0x1d00a2(0x18d)&&!['online',_0x1d00a2(0x1b1)]['includes'](_0x12fa6d))return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e(_0x1d00a2(0x1a4))})});if(_0x466c8c===_0x1d00a2(0x1aa)&&!normalizeLocale(_0x12fa6d))return a37_0x172aed(Box,{'flexDirection':_0x1d00a2(0x1ab),'children':a37_0x172aed(Text,{'color':'red','children':_0x3d997e(_0x1d00a2(0x192))})});const _0x46b6f9=isInProject(),_0x469f3b=_0x46b6f9?projectConfigPath:globalConfigPath;let _0xf9bdc8={};try{if(existsSync(_0x469f3b)){const _0x4d2d89=readFileSync(_0x469f3b,{'encoding':_0x1d00a2(0x191)});_0x4d2d89&&(_0xf9bdc8=JSON[_0x1d00a2(0x193)](_0x4d2d89));}}catch(_0x491708){}if(typeof _0x12fa6d!==_0x1d00a2(0x195)||_0x12fa6d[_0x1d00a2(0x190)]>0x1f4)return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e('config.validation.valueInvalid')})});let _0x53a649=_0x466c8c,_0x10e319=_0x12fa6d;_0x466c8c==='app'&&(_0x53a649='appcode',delete _0xf9bdc8[_0x1d00a2(0x19e)]);_0x466c8c==='appcode'&&delete _0xf9bdc8[_0x1d00a2(0x19e)];_0x466c8c===_0x1d00a2(0x1aa)&&(_0x10e319=normalizeLocale(_0x12fa6d));_0xf9bdc8[_0x53a649]=_0x10e319;try{const _0x584010=a37_0x410997[_0x1d00a2(0x197)](_0x469f3b);!existsSync(_0x584010)&&a37_0x3b7f65[_0x1d00a2(0x1a2)](_0x584010,{'recursive':!![]});const _0x5117a=_0x469f3b+_0x1d00a2(0x1a6);writeFileSync(_0x5117a,JSON[_0x1d00a2(0x198)](_0xf9bdc8,null,0x2),{'encoding':_0x1d00a2(0x191),'mode':0x180}),a37_0x3b7f65['renameSync'](_0x5117a,_0x469f3b);const _0x513262=_0x3d997e(_0x46b6f9?_0x1d00a2(0x1af):_0x1d00a2(0x186));_0x466c8c===_0x1d00a2(0x18d)&&console[_0x1d00a2(0x1a0)](_0x3d997e(_0x1d00a2(0x18a),{'scope':_0x513262,'value':_0x12fa6d}));if(_0x466c8c==='locale'){const _0x8e1c77=normalizeLocale(_0x12fa6d);console[_0x1d00a2(0x1a0)](_0x3d997e(_0x1d00a2(0x187),{'scope':_0x513262,'value':_0x8e1c77}));}}catch(_0x521d6c){const _0x1e0cdc=_0x469f3b+'.tmp';try{existsSync(_0x1e0cdc)&&a37_0x3b7f65[_0x1d00a2(0x18e)](_0x1e0cdc);}catch(_0xab9e74){}return logger[_0x1d00a2(0x188)]('config',_0x1d00a2(0x1a9),{'error':_0x521d6c instanceof Error?_0x521d6c[_0x1d00a2(0x1ac)]:String(_0x521d6c),'configKey':_0x466c8c,'configValue':_0x12fa6d,'targetConfigPath':_0x469f3b}),a37_0x172aed(Box,{'children':a37_0x529a61(Text,{'color':_0x1d00a2(0x18b),'children':[_0x3d997e(_0x1d00a2(0x196)),':','\x20',_0x521d6c instanceof Error?_0x521d6c[_0x1d00a2(0x1ac)]:String(_0x521d6c)]})});}return null;}return a37_0x172aed(Box,{'children':a37_0x172aed(Text,{'color':_0x1d00a2(0x18b),'children':_0x3d997e('config.validation.noValue')})});}}if(_0x142c47==='get'){if(_0x466c8c){let _0x25ec5c=_0x466c8c;return _0x466c8c==='app'&&(_0x25ec5c=_0x1d00a2(0x19b)),console['log'](_0x4041a8[_0x25ec5c]||'undefined'),null;}return null;}if(_0x142c47===_0x1d00a2(0x1ae))return console['log'](JSON['stringify'](_0x4041a8,null,0x2)),null;if(!_0x174405||!_0x1b8c70)return a37_0x172aed(ConfigHelp,{});return null;}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a38_0x255613=a38_0xe4fd;(function(_0x348d61,_0x56382d){const _0x2b39bc=a38_0xe4fd,_0x43cff8=_0x348d61();while(!![]){try{const _0x416ebc=parseInt(_0x2b39bc(0x103))/0x1+-parseInt(_0x2b39bc(0x107))/0x2*(parseInt(_0x2b39bc(0x10b))/0x3)+parseInt(_0x2b39bc(0x109))/0x4*(parseInt(_0x2b39bc(0x10a))/0x5)+-parseInt(_0x2b39bc(0x105))/0x6*(parseInt(_0x2b39bc(0x102))/0x7)+-parseInt(_0x2b39bc(0xfe))/0x8+-parseInt(_0x2b39bc(0x101))/0x9*(parseInt(_0x2b39bc(0x108))/0xa)+parseInt(_0x2b39bc(0x104))/0xb;if(_0x416ebc===_0x56382d)break;else _0x43cff8['push'](_0x43cff8['shift']());}catch(_0x420f65){_0x43cff8['push'](_0x43cff8['shift']());}}}(a38_0xca15,0x5054f));function a38_0xe4fd(_0x1ede8b,_0x4c7513){_0x1ede8b=_0x1ede8b-0xfe;const _0xca153a=a38_0xca15();let _0xe4fd4f=_0xca153a[_0x1ede8b];return _0xe4fd4f;}function a38_0xca15(){const _0x547fac=['96GRZzHa','3259472IwPdUA','https://user.lovrabet.com','online','6444dQTuXZ','8092HHUrZf','64136WEZjmK','9776877twgagU','2598aHqhWP','https://api.lovrabet.com','21306knBTQE','220rfZauo','116RjmwzF','110470GQZiPc'];a38_0xca15=function(){return _0x547fac;};return a38_0xca15();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a38_0x255613(0x100)?a38_0x255613(0xff):'https://user-daily.lovrabet.com';export const getApiDomain=()=>getEnv()==='online'?a38_0x255613(0x106):'https://daily-api.lovrabet.com';
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0xb640af=a39_0x4b1f;(function(_0x345954,_0x4f9d63){const _0x39cdb1=a39_0x4b1f,_0x3086e1=_0x345954();while(!![]){try{const _0x4f286e=-parseInt(_0x39cdb1(0x1e2))/0x1*(-parseInt(_0x39cdb1(0x1e7))/0x2)+-parseInt(_0x39cdb1(0x1de))/0x3+parseInt(_0x39cdb1(0x1e0))/0x4*(parseInt(_0x39cdb1(0x1e4))/0x5)+parseInt(_0x39cdb1(0x1e1))/0x6+parseInt(_0x39cdb1(0x1e9))/0x7*(parseInt(_0x39cdb1(0x1df))/0x8)+-parseInt(_0x39cdb1(0x1dd))/0x9+-parseInt(_0x39cdb1(0x1e6))/0xa;if(_0x4f286e===_0x4f9d63)break;else _0x3086e1['push'](_0x3086e1['shift']());}catch(_0xc86c1){_0x3086e1['push'](_0x3086e1['shift']());}}}(a39_0x4890,0x6c390));function a39_0x4890(){const _0x364ebb=['5285ncegBt','554895boHfAl','735948fyVdJx','2672NOoPvo','8bxWAFK','289836gYRUtB','1wqkyAQ','env','898645FqlcHn','online','784860OpNekb','337606OMLRht','LOVRABET_ENV'];a39_0x4890=function(){return _0x364ebb;};return a39_0x4890();}let env=process[a39_0xb640af(0x1e3)][a39_0xb640af(0x1e8)]||a39_0xb640af(0x1e5);function a39_0x4b1f(_0x353b39,_0x467e51){_0x353b39=_0x353b39-0x1dd;const _0x4890e7=a39_0x4890();let _0x4b1f9f=_0x4890e7[_0x353b39];return _0x4b1f9f;}export function getEnv(){return env;}export function initEnv(_0x40f77c){env=_0x40f77c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40_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_0x177195=a40_0x1b30;function a40_0x1b30(_0xd22d62,_0x2dcea2){_0xd22d62=_0xd22d62-0x1af;const _0x115d33=a40_0x115d();let _0x1b30bf=_0x115d33[_0xd22d62];return _0x1b30bf;}(function(_0x57a1c5,_0x496642){const _0x7c44ec=a40_0x1b30,_0x20c7c6=_0x57a1c5();while(!![]){try{const _0x3b7b32=parseInt(_0x7c44ec(0x1ec))/0x1+-parseInt(_0x7c44ec(0x20a))/0x2+parseInt(_0x7c44ec(0x208))/0x3+-parseInt(_0x7c44ec(0x1d6))/0x4*(parseInt(_0x7c44ec(0x1c2))/0x5)+-parseInt(_0x7c44ec(0x1cb))/0x6+parseInt(_0x7c44ec(0x211))/0x7+-parseInt(_0x7c44ec(0x20d))/0x8*(parseInt(_0x7c44ec(0x1c5))/0x9);if(_0x3b7b32===_0x496642)break;else _0x20c7c6['push'](_0x20c7c6['shift']());}catch(_0x57d419){_0x20c7c6['push'](_0x20c7c6['shift']());}}}(a40_0x115d,0x7cb72));import{jsx as a40_0x3bd58b,jsxs as a40_0xc18d13,Fragment as a40_0x186fa2}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';import a40_0x18d249 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';import{useI18n}from'../i18n/hooks.js';import{IDE_CONFIGS,MCP_IDES}from'../utils/ai_config.js';const UI_IDE_CONFIGS=IDE_CONFIGS,UI_IDE_LIST=[a40_0x177195(0x1f5),a40_0x177195(0x1b7),a40_0x177195(0x1af),a40_0x177195(0x1ef),a40_0x177195(0x1c6),a40_0x177195(0x20e),a40_0x177195(0x1ce),a40_0x177195(0x1d4),a40_0x177195(0x1ee),a40_0x177195(0x1cf),a40_0x177195(0x1f4)],UI_MCP_IDES=new Set(Array[a40_0x177195(0x1b0)](MCP_IDES));function a40_0x115d(){const _0x51cb4b=['env','login-process','downArrow','create.lovrabetSetup.selectIdeTitle','claude','create.input.appCode.label','create.input.appCode.hint','label','return','create.validation.appCode.invalid','create.login.notDetected','create.creating','app-code','create.validation.projectName.invalid','create.steps.projectName.label','17795NvZjYK','create.common.yes','project-name','954fQbeCJ','codex','create.login.checkingStatus','has','create.steps.login.loggedIn','lovrabet-setup-selection','2435730uMTWMn','create.apiPull.confirm','includes','opencode','windsurf','step','create.apiPull.recommendation','login-check','leftArrow','qoder','length','204HUNXHx','create.common.no','\x20←\x20','green','Yes','name','create.validation.projectName.dirExistsShort','confirm-api-pull','create.login.valid','create.login.inProgress','upArrow','string','resolve','create.validation.projectName.dirExists','delete','white','map','create.steps.login.skipped','cyan','create.login.inProgressStatus','create.title','create.steps.apiPull.label','469910BObvpf','red','trae','codebuddy','api-pull','create.steps.login.label','filter','gray','agent','antigravity','lovrabet-setup','create.login.prompt','create.lovrabetSetup.selectIdeHint','add','test','my-app','online','yellow','backspace','create.steps.lovrabetSetup.label','create.validation.projectName.tooLong','login-prompt','create.validation.appCode.invalidFormat','create.validation.ide.required','creating','create.steps.login.failed','blue','create.common.selectHint','443652rBlWXp','create.login.checking','734204IUGdJz','column','create.input.projectName.label','9136ZCsXIe','cursor','rightArrow','login','6780606FlrWFu','create.validation.appCode.tooLong','cline','from','slice','trim'];a40_0x115d=function(){return _0x51cb4b;};return a40_0x115d();}export function EnhancedGuidedCreate(_0x22087a){const _0x2ec0b3=a40_0x177195,{onCreate:_0x21c016,env:_0x2dc363}=_0x22087a,{t:_0x70d347}=useI18n(),[_0xa632eb,_0x13c30f]=useState(_0x2ec0b3(0x1c4)),[_0xee178a,_0x26a1aa]=useState(''),[_0x482e4c,_0x1c1e04]=useState(''),[_0x2275fa,_0x53301f]=useState(''),[_0xbfc5de,_0x494f94]=useState(''),[_0x89885a,_0x152f54]=useState([]),[_0x5aa23a,_0xb5e4e1]=useState(null),[_0x12f148,_0x27b468]=useState(![]),[_0x5ba53f,_0x558ab]=useState(![]),[_0x32759c,_0x14aca1]=useState(![]),[_0x32374a,_0x32e199]=useState(0x0),[_0x471344,_0x4bcb3e]=useState(0x0),[_0x50f011,_0x428837]=useState(0x0),[_0x316639,_0xcc1b67]=useState(![]),[_0x2c8c43,_0x3a6a2b]=useState(new Set()),[_0x3c35b1,_0x4f1f58]=useState(0x0),[_0x423934,_0x46d616]=useState(''),_0x33cd4a=_0x2ec0b3(0x1fb),_0x536c8b=readConfig(),_0x4b12e1=typeof _0x536c8b[_0x2ec0b3(0x1b3)]===_0x2ec0b3(0x1e1)?_0x536c8b[_0x2ec0b3(0x1b3)]:undefined;function _0x33d070(_0x2a79fc){const _0x1fe87a=_0x2ec0b3,_0x5d37ce=_0x2a79fc||_0x33cd4a,_0xb0a8a5=a40_0x18d249[_0x1fe87a(0x1e2)](process['cwd'](),_0x5d37ce);return existsSync(_0xb0a8a5);}function _0x32a923(_0x308545){const _0x37728a=_0x2ec0b3;if(_0x308545['length']>0x32)return{'valid':![],'message':_0x70d347(_0x37728a(0x200))};const _0x131663=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x308545?.[_0x37728a(0x1b2)]()&&!_0x131663[_0x37728a(0x1fa)](_0x308545))return{'valid':![],'message':_0x70d347('create.validation.projectName.invalidFormat')};return{'valid':!![]};}function _0x3ac5a2(_0x3a1633){const _0x560424=_0x2ec0b3;if(!_0x3a1633[_0x560424(0x1b2)]())return{'valid':!![]};if(_0x3a1633[_0x560424(0x1d5)]>0x64)return{'valid':![],'message':_0x70d347(_0x560424(0x212))};const _0x48eeff=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x48eeff['test'](_0x3a1633))return{'valid':![],'message':_0x70d347(_0x560424(0x202))};return{'valid':!![]};}async function _0x39d517(){_0x27b468(!![]);try{const _0x2c8702=await getIsSessionValid();return _0xb5e4e1(_0x2c8702),_0x2c8702;}catch(_0x31095d){return _0xb5e4e1(![]),![];}finally{_0x27b468(![]);}}async function _0x11e014(){_0x558ab(!![]);try{const _0x297f26=await authServer({'silent':!![]});return _0xb5e4e1(_0x297f26),_0x297f26;}catch(_0x93e5c4){return _0xb5e4e1(![]),![];}finally{_0x558ab(![]);}}return useInput(async(_0x46fc3d,_0x4ec806)=>{const _0x1adb9b=_0x2ec0b3;if(_0x4ec806[_0x1adb9b(0x1d3)]||_0x4ec806[_0x1adb9b(0x20f)]){if(_0xa632eb==='confirm-api-pull'){_0x32e199(_0x4578e9=>_0x4578e9===0x0?0x1:0x0);return;}if(_0xa632eb===_0x1adb9b(0x1ca)){if(!_0x316639){_0x428837(_0x3d4526=>_0x3d4526===0x0?0x1:0x0);return;}_0xcc1b67(![]);return;}if(_0xa632eb===_0x1adb9b(0x201)){_0x4bcb3e(_0x240bfb=>_0x240bfb===0x0?0x1:0x0);return;}}if(_0xa632eb==='lovrabet-setup-selection'&&_0x316639&&_0x50f011===0x0){if(_0x4ec806[_0x1adb9b(0x1e0)]){_0x4f1f58(_0x43c6a4=>_0x43c6a4>0x0?_0x43c6a4-0x1:UI_IDE_LIST[_0x1adb9b(0x1d5)]-0x1);return;}if(_0x4ec806[_0x1adb9b(0x1b5)]){_0x4f1f58(_0x106d3e=>_0x106d3e<UI_IDE_LIST[_0x1adb9b(0x1d5)]-0x1?_0x106d3e+0x1:0x0);return;}}if(_0x46fc3d==='\x20'&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(_0x37031f=>{const _0x39476d=_0x1adb9b,_0x204dd7=new Set(_0x37031f);return _0x204dd7[_0x39476d(0x1c8)](_0x3c35b1)?_0x204dd7['delete'](_0x3c35b1):_0x204dd7[_0x39476d(0x1f9)](_0x3c35b1),_0x204dd7;}),_0x494f94('');return;}if((_0x46fc3d==='a'||_0x46fc3d==='A')&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(new Set(UI_IDE_LIST[_0x1adb9b(0x1e6)]((_0x3fd9dd,_0xaf9913)=>_0xaf9913))),_0x494f94('');return;}if((_0x46fc3d==='i'||_0x46fc3d==='I'||_0x46fc3d==='r'||_0x46fc3d==='R')&&_0xa632eb===_0x1adb9b(0x1ca)&&_0x316639&&_0x50f011===0x0){_0x3a6a2b(_0x4565b4=>{const _0x3bf2d3=_0x1adb9b,_0x5eedae=new Set();for(let _0x2f45a6=0x0;_0x2f45a6<UI_IDE_LIST[_0x3bf2d3(0x1d5)];_0x2f45a6++){!_0x4565b4[_0x3bf2d3(0x1c8)](_0x2f45a6)&&_0x5eedae[_0x3bf2d3(0x1f9)](_0x2f45a6);}return _0x5eedae;});return;}if(_0x4ec806[_0x1adb9b(0x1bb)]){if(_0xa632eb===_0x1adb9b(0x1c4)){const _0x64dac3=_0x2275fa[_0x1adb9b(0x1b2)]()||_0x33cd4a;if(_0xbfc5de)return;if(_0x33d070(_0x64dac3)){_0x46d616(_0x70d347(_0x1adb9b(0x1e3),{'name':_0x64dac3}));return;}_0x26a1aa(_0x64dac3),_0x152f54([{'step':_0x1adb9b(0x1c4),'label':_0x70d347(_0x1adb9b(0x1c1)),'value':_0x64dac3}]),_0x53301f(''),_0x494f94(''),_0x46d616(''),_0x13c30f('app-code');return;}if(_0xa632eb===_0x1adb9b(0x1bf)){if(_0xbfc5de)return;const _0x5ba286=_0x2275fa[_0x1adb9b(0x1b2)]();_0x1c1e04(_0x5ba286),_0x152f54(_0x39fd0b=>[..._0x39fd0b,{'step':_0x1adb9b(0x1bf),'label':_0x70d347('create.steps.appCode.label'),'value':_0x5ba286||_0x70d347('create.steps.appCode.notSet')}]),_0x53301f(''),_0x494f94('');if(_0x5ba286){_0x13c30f('login-check');const _0x1a980c=await _0x39d517();_0x1a980c?_0x13c30f(_0x1adb9b(0x1dd)):_0x13c30f('login-prompt');}else{const _0x42dde7=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x42dde7}),_0x13c30f(_0x1adb9b(0x204));}return;}if(_0xa632eb==='confirm-api-pull'){const _0x128d51=_0x32374a===0x0;_0x14aca1(_0x128d51),_0x152f54(_0x347f4c=>[..._0x347f4c,{'step':_0x1adb9b(0x1f0),'label':_0x70d347(_0x1adb9b(0x1eb)),'value':_0x128d51?_0x70d347(_0x1adb9b(0x1c3)):_0x70d347('create.common.no')}]),_0x13c30f('lovrabet-setup-selection');return;}if(_0xa632eb===_0x1adb9b(0x1ca)){if(!_0x316639){_0xcc1b67(!![]);if(_0x50f011===0x1){_0x152f54(_0x29f530=>[..._0x29f530,{'step':_0x1adb9b(0x1f6),'label':_0x70d347(_0x1adb9b(0x1ff)),'value':_0x70d347(_0x1adb9b(0x1d7))}]);const _0x2f1673=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':_0x482e4c,'pullApi':_0x32759c,'aiSetup':![],'selectedIDEs':[],'env':_0x2f1673}),_0x13c30f(_0x1adb9b(0x204));}return;}if(_0x2c8c43['size']===0x0){_0x494f94(_0x70d347(_0x1adb9b(0x203)));return;}const _0x483da7=Array[_0x1adb9b(0x1b0)](_0x2c8c43)[_0x1adb9b(0x1e6)](_0x2ced38=>UI_IDE_LIST[_0x2ced38])[_0x1adb9b(0x1f2)](_0x300b2b=>_0x300b2b!==undefined);_0x152f54(_0x1d4df0=>[..._0x1d4df0,{'step':'lovrabet-setup','label':_0x70d347(_0x1adb9b(0x1ff)),'value':_0x70d347('create.steps.lovrabetSetup.ideCount',{'count':_0x483da7['length']})}]);const _0x3094ee=_0x2dc363||_0x4b12e1||_0x1adb9b(0x1fc);_0x21c016({'projectName':_0xee178a,'appCode':_0x482e4c,'pullApi':_0x32759c,'aiSetup':!![],'selectedIDEs':_0x483da7,'env':_0x3094ee}),_0x13c30f(_0x1adb9b(0x204));return;}if(_0xa632eb===_0x1adb9b(0x201)){const _0x4b7548=_0x471344===0x0;if(_0x4b7548){_0x13c30f(_0x1adb9b(0x1b4));const _0x5ae4dd=await _0x11e014();_0x5ae4dd?(_0x152f54(_0x5441ac=>[..._0x5441ac,{'step':_0x1adb9b(0x210),'label':_0x70d347(_0x1adb9b(0x1f1)),'value':_0x70d347(_0x1adb9b(0x1c9))}]),_0x13c30f(_0x1adb9b(0x1dd))):(_0x152f54(_0x30bc92=>[..._0x30bc92,{'step':_0x1adb9b(0x210),'label':_0x70d347('create.steps.login.label'),'value':_0x70d347(_0x1adb9b(0x205))}]),_0x13c30f(_0x1adb9b(0x1ca)));}else _0x152f54(_0x372548=>[..._0x372548,{'step':_0x1adb9b(0x210),'label':_0x70d347(_0x1adb9b(0x1f1)),'value':_0x70d347(_0x1adb9b(0x1e7))}]),_0x13c30f(_0x1adb9b(0x1ca));return;}}if(_0x4ec806[_0x1adb9b(0x1fe)]||_0x4ec806[_0x1adb9b(0x1e4)]){_0x53301f(_0x5eec48=>{const _0x5ed4f2=_0x1adb9b,_0x19065c=_0x5eec48[_0x5ed4f2(0x1b1)](0x0,-0x1);if(_0xa632eb===_0x5ed4f2(0x1c4)){const {valid:_0x3182b2,message:_0xc6193c}=_0x32a923(_0x19065c);_0x494f94(_0x3182b2?'':_0xc6193c||_0x70d347(_0x5ed4f2(0x1c0)));if(_0x3182b2&&!_0xbfc5de){const _0x421461=_0x19065c||_0x33cd4a;_0x33d070(_0x421461)?_0x46d616(_0x70d347(_0x5ed4f2(0x1dc),{'name':_0x421461})):_0x46d616('');}}else{if(_0xa632eb===_0x5ed4f2(0x1bf)){const {valid:_0x1e1ad8,message:_0x3dc0e3}=_0x3ac5a2(_0x19065c);_0x494f94(_0x1e1ad8?'':_0x3dc0e3||_0x70d347(_0x5ed4f2(0x1bc)));}}return _0x19065c;});return;}if([_0x1adb9b(0x204),_0x1adb9b(0x1d2),'login-process'][_0x1adb9b(0x1cd)](_0xa632eb))return;if(_0xa632eb===_0x1adb9b(0x1dd)||_0xa632eb==='login-prompt'||_0xa632eb===_0x1adb9b(0x1ca))return;_0x53301f(_0x1e3928=>{const _0x7884e8=_0x1adb9b,_0x44dcd1=_0x1e3928+_0x46fc3d;if(_0xa632eb==='project-name'){const {valid:_0x2837a3,message:_0x38ba8c}=_0x32a923(_0x44dcd1);_0x494f94(_0x2837a3?'':_0x38ba8c||_0x70d347(_0x7884e8(0x1c0)));if(_0x2837a3&&!_0xbfc5de){const _0x2a3db5=_0x44dcd1||_0x33cd4a;_0x33d070(_0x2a3db5)?_0x46d616(_0x70d347(_0x7884e8(0x1dc),{'name':_0x2a3db5})):_0x46d616('');}}else{if(_0xa632eb===_0x7884e8(0x1bf)){const {valid:_0x3ab962,message:_0x3101bf}=_0x3ac5a2(_0x44dcd1);_0x494f94(_0x3ab962?'':_0x3101bf||_0x70d347(_0x7884e8(0x1bc)));}}return _0x44dcd1;});}),a40_0xc18d13(Box,{'flexDirection':_0x2ec0b3(0x20b),'marginTop':0x1,'children':[_0x89885a['length']===0x0&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'cyan','children':_0x70d347(_0x2ec0b3(0x1ea))})}),_0x89885a[_0x2ec0b3(0x1e6)](_0x2be57d=>a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347('create.completedStep',{'label':_0x2be57d[_0x2ec0b3(0x1ba)]})}),a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1e8),'children':_0x2be57d['value']})]},_0x2be57d[_0x2ec0b3(0x1d0)])),_0xa632eb==='project-name'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x20c))}),_0x2275fa?a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x2275fa}):a40_0x3bd58b(Text,{'color':'gray','children':_0x33cd4a}),_0xbfc5de&&a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':[_0x2ec0b3(0x1d8),_0xbfc5de]}),_0x423934&&a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':[_0x2ec0b3(0x1d8),_0x423934]})]}),!_0xbfc5de&&!_0x423934&&!_0x2275fa&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.input.projectName.hint')})})]}),_0xa632eb===_0x2ec0b3(0x1bf)&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1b8))}),a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.input.appCode.optional')}),a40_0x3bd58b(Text,{'color':'green','children':_0x2275fa}),_0xbfc5de&&a40_0xc18d13(Text,{'color':'red','children':[_0x2ec0b3(0x1d8),_0xbfc5de]})]}),!_0xbfc5de&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x1b9))})})]}),_0xa632eb===_0x2ec0b3(0x1d2)&&a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x209))}),_0x12f148&&a40_0x3bd58b(Text,{'color':'gray','children':_0x70d347(_0x2ec0b3(0x1c7))})]}),_0xa632eb==='confirm-api-pull'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347(_0x2ec0b3(0x1de))})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1cc))})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x32374a===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x32374a===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x32374a===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x32374a===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1fd),'children':_0x70d347(_0x2ec0b3(0x1d1))})})]}),_0xa632eb===_0x2ec0b3(0x1ca)&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'green','children':'√'})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347('create.lovrabetSetup.confirm')})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x50f011===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x50f011===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x50f011===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x50f011===0x1?'▶\x20':'\x20\x20','No']})]}),_0x316639&&_0x50f011===0x0&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x1f8))})}),a40_0xc18d13(Box,{'marginTop':0x1,'flexDirection':_0x2ec0b3(0x20b),'children':[a40_0x3bd58b(Text,{'bold':!![],'color':'yellow','children':_0x70d347(_0x2ec0b3(0x1b6))}),UI_IDE_LIST[_0x2ec0b3(0x1e6)]((_0x142df8,_0x3c6de5)=>{const _0x35a251=_0x2ec0b3,_0x121088=_0x3c35b1===_0x3c6de5,_0x116fca=_0x2c8c43['has'](_0x3c6de5),_0x263332=UI_MCP_IDES[_0x35a251(0x1c8)](_0x142df8);return a40_0x3bd58b(Box,{'children':a40_0xc18d13(Text,{'backgroundColor':_0x121088?_0x35a251(0x206):undefined,'color':_0x121088?_0x35a251(0x1e5):undefined,'children':['\x20\x20',_0x116fca?'[✓]':'[\x20]','\x20',UI_IDE_CONFIGS[_0x142df8][_0x35a251(0x1db)],_0x263332&&a40_0x3bd58b(Text,{'color':_0x121088?'white':_0x35a251(0x1e8),'children':'\x20+MCP'}),'\x20',a40_0xc18d13(Text,{'color':_0x121088?'white':_0x35a251(0x1f3),'dimColor':!_0x121088,'children':['-\x20',UI_IDE_CONFIGS[_0x142df8]['description']]})]})},_0x142df8);}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347('create.lovrabetSetup.keyboardShortcuts')})})]})]}),!_0x316639&&a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})}),_0xbfc5de&&a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0xc18d13(Text,{'color':_0x2ec0b3(0x1ed),'children':['✗\x20',_0xbfc5de]})})]}),_0xa632eb==='login-prompt'&&a40_0xc18d13(a40_0x186fa2,{'children':[a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':'yellow','children':_0x70d347(_0x2ec0b3(0x1bd))})}),a40_0x3bd58b(Box,{'marginTop':0x1,'children':a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1f7))})}),a40_0xc18d13(Box,{'marginLeft':0x2,'children':[a40_0xc18d13(Text,{'color':_0x471344===0x0?_0x2ec0b3(0x1d9):'gray','children':[_0x471344===0x0?'▶\x20':'\x20\x20',_0x2ec0b3(0x1da)]}),a40_0x3bd58b(Text,{'children':'\x20'}),a40_0xc18d13(Text,{'color':_0x471344===0x1?_0x2ec0b3(0x1d9):_0x2ec0b3(0x1f3),'children':[_0x471344===0x1?'▶\x20':'\x20\x20','No']})]}),a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1f3),'children':_0x70d347(_0x2ec0b3(0x207))})})]}),_0xa632eb==='login-process'&&a40_0xc18d13(Box,{'children':[a40_0x3bd58b(Text,{'children':_0x70d347(_0x2ec0b3(0x1df))}),_0x5ba53f&&a40_0x3bd58b(Text,{'color':'gray','children':_0x70d347(_0x2ec0b3(0x1e9))})]}),_0xa632eb===_0x2ec0b3(0x204)&&a40_0x3bd58b(Box,{'children':a40_0x3bd58b(Text,{'color':_0x2ec0b3(0x1d9),'children':_0x70d347(_0x2ec0b3(0x1be))})})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c6e9e,_0x192ee6){const _0x191f79=a41_0x206c,_0x404e10=_0x3c6e9e();while(!![]){try{const _0x2f6e76=parseInt(_0x191f79(0xf6))/0x1*(parseInt(_0x191f79(0xf4))/0x2)+parseInt(_0x191f79(0xf8))/0x3+parseInt(_0x191f79(0xf9))/0x4*(-parseInt(_0x191f79(0xf2))/0x5)+parseInt(_0x191f79(0xf3))/0x6*(parseInt(_0x191f79(0xf1))/0x7)+-parseInt(_0x191f79(0xfa))/0x8+-parseInt(_0x191f79(0xf5))/0x9+-parseInt(_0x191f79(0xf0))/0xa;if(_0x2f6e76===_0x192ee6)break;else _0x404e10['push'](_0x404e10['shift']());}catch(_0x55f9d7){_0x404e10['push'](_0x404e10['shift']());}}}(a41_0x1844,0x90cfe));export function formatElapsed(_0x2484fb){const _0x479f6b=a41_0x206c,_0x239c4e=Date['now']()-_0x2484fb;if(_0x239c4e<0x3e8)return _0x239c4e+'ms';const _0x2d5cff=(_0x239c4e/0x3e8)[_0x479f6b(0xf7)](0x2),_0x52557a=_0x2d5cff['replace'](/\.?0+$/u,'');return _0x52557a+'s';}function a41_0x206c(_0x43bf24,_0x52c076){_0x43bf24=_0x43bf24-0xf0;const _0x184434=a41_0x1844();let _0x206c69=_0x184434[_0x43bf24];return _0x206c69;}function a41_0x1844(){const _0x36ab27=['18512wxTMpL','12184rXxKbo','3425030lxzXth','1169959gSKOlf','1205PCulWj','6CjhMUk','36940flqdvi','912591XgZQfj','62BYmesu','toFixed','2524938fDaMmA'];a41_0x1844=function(){return _0x36ab27;};return a41_0x1844();}
|