@lovrabet/cli 1.2.5-beta.2 → 1.2.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/add-page/input-page-router.js +1 -1
  2. package/lib/add-page/main.js +1 -1
  3. package/lib/add-page/select-page-template.js +1 -1
  4. package/lib/ai-setup/AISetupUI.js +1 -0
  5. package/lib/ai-setup/config.js +1 -0
  6. package/lib/api/api-doc-ui.js +1 -1
  7. package/lib/api/api-doc.js +1 -1
  8. package/lib/api/api-pull-ui.js +1 -1
  9. package/lib/api/fetch-model-list.js +1 -1
  10. package/lib/api/generate-api-file.js +1 -1
  11. package/lib/api/main.js +1 -1
  12. package/lib/api/pull-silent.js +1 -1
  13. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  14. package/lib/app-menu/create-menu.js +1 -1
  15. package/lib/app-menu/get-local-pages.js +1 -1
  16. package/lib/app-menu/get-online-menu-list.js +1 -1
  17. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  18. package/lib/app-menu/utils.js +1 -1
  19. package/lib/app-menu/valid-url.js +1 -1
  20. package/lib/app-menu-update-cdn/current-content.js +1 -1
  21. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  22. package/lib/app-menu-update-cdn/main.js +1 -1
  23. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  24. package/lib/auth/auth-server-ui.js +1 -1
  25. package/lib/auth/auth-server.js +1 -1
  26. package/lib/auth/constant.js +1 -1
  27. package/lib/auth/get-cookie.js +1 -1
  28. package/lib/auth/is-session-valid.js +1 -1
  29. package/lib/auth/logout.js +1 -1
  30. package/lib/cli.js +1 -1
  31. package/lib/cmd/build-watch.js +1 -1
  32. package/lib/cmd/build.js +1 -1
  33. package/lib/cmd/logs.js +1 -1
  34. package/lib/cmd/preview.js +1 -1
  35. package/lib/cmd/start.js +1 -1
  36. package/lib/config/config-help.js +1 -1
  37. package/lib/config/main.js +1 -1
  38. package/lib/constant/domain.js +1 -1
  39. package/lib/constant/env.js +1 -1
  40. package/lib/create-app/enhanced-guided-create.js +1 -1
  41. package/lib/create-app/format-elapsed.js +1 -1
  42. package/lib/create-app/main.js +1 -1
  43. package/lib/create-app/task-finished.js +1 -1
  44. package/lib/create-app/task-loading.js +1 -1
  45. package/lib/create-app/task-running.js +1 -1
  46. package/lib/create-app/task-time.js +1 -1
  47. package/lib/create-app/use-copy-project-template.js +1 -1
  48. package/lib/create-app/use-format-code.js +1 -1
  49. package/lib/create-app/use-install-dependencies.js +1 -1
  50. package/lib/help.js +1 -1
  51. package/lib/init/main.js +1 -1
  52. package/lib/mcp/McpInstallUI.js +1 -0
  53. package/lib/mcp/claude.js +1 -1
  54. package/lib/mcp/cursor.js +1 -1
  55. package/lib/mcp/main.js +1 -1
  56. package/lib/skills/SkillInstallUI.js +1 -0
  57. package/lib/skills/main.js +1 -1
  58. package/lib/utils/check-sdk-version.js +1 -1
  59. package/lib/utils/config.js +1 -1
  60. package/lib/utils/copy-directory.js +1 -1
  61. package/lib/utils/http-client.js +1 -1
  62. package/lib/utils/logger.js +1 -1
  63. package/lib/utils/router-updater.js +1 -1
  64. package/lib/utils/sleep.js +1 -1
  65. package/lib/utils/template-replacer.js +1 -1
  66. package/package.json +1 -1
  67. package/templates/pages/blank/index.tsx.tpl +1 -2
  68. package/templates/pages/sdk-fetch/index.tsx.tpl +1 -2
  69. package/templates/rules/lovrabet_rules.mdc.tpl +109 -0
  70. package/templates/skills/.agent/skills/lovrabet/SKILL.md +258 -0
  71. package/templates/skills/.codebuddy/skills/lovrabet/SKILL.md +258 -0
  72. package/templates/skills/.codex/skills/lovrabet/SKILL.md +258 -0
  73. package/templates/skills/.opencode/skills/lovrabet/SKILL.md +258 -0
  74. package/templates/skills/.qoder/rules/lovrabet.md +258 -0
  75. package/templates/skills/.qoder/skills/lovrabet.md +258 -0
  76. package/templates/skills/.shared/guides/03-antd-style/guide.md +42 -0
  77. package/templates/skills/.trae/skills/lovrabet/SKILL.md +258 -0
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a29_0x55b0f0=a29_0x2c91;function a29_0x2c91(_0x33778e,_0x2da8c0){_0x33778e=_0x33778e-0x127;const _0x1e6871=a29_0x1e68();let _0x2c9180=_0x1e6871[_0x33778e];return _0x2c9180;}(function(_0x4c6061,_0x52c522){const _0x55e4bb=a29_0x2c91,_0x272ece=_0x4c6061();while(!![]){try{const _0x1c1045=-parseInt(_0x55e4bb(0x153))/0x1+-parseInt(_0x55e4bb(0x14c))/0x2*(-parseInt(_0x55e4bb(0x148))/0x3)+-parseInt(_0x55e4bb(0x131))/0x4*(-parseInt(_0x55e4bb(0x12d))/0x5)+parseInt(_0x55e4bb(0x137))/0x6*(parseInt(_0x55e4bb(0x14e))/0x7)+-parseInt(_0x55e4bb(0x128))/0x8+parseInt(_0x55e4bb(0x155))/0x9+-parseInt(_0x55e4bb(0x142))/0xa*(parseInt(_0x55e4bb(0x12b))/0xb);if(_0x1c1045===_0x52c522)break;else _0x272ece['push'](_0x272ece['shift']());}catch(_0x4c1353){_0x272ece['push'](_0x272ece['shift']());}}}(a29_0x1e68,0x4081e));import{jsx as a29_0x5062d0}from'react/jsx-runtime';import a29_0xed085d from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';function a29_0x1e68(){const _0x26b073=['\x20(监听模式)','menu-update-cdn','执行添加页面命令','menu','watch','env','exit','433830CZHRdl','boolean','logs','执行预览命令','lovrabet\x20','string','561rPWgkV','error','appcode','build','662tJCTFD','update','210QeMzny','input','cwd','执行更新菜单\x20CDN\x20资源命令','auth','273181FdRXDU','logout','1320507mZMAvZ','add-page','1371424wMbnRi','join','trim','22eNfNrG','info','1833285XZXDGR','config','init','flags','4VXrwoz','api','preview','start','all','setLogPath','44064AwKaNB','page','执行启动命令','slice'];a29_0x1e68=function(){return _0x26b073;};return a29_0x1e68();}import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';const cli=a29_0xed085d('\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20<ide>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装\x20MCP\x20配置\x20(cursor/claude)\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20--help\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<ide>\x20\x20\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',{'importMeta':import.meta,'flags':{'name':{'type':a29_0x55b0f0(0x147)},'clear':{'type':a29_0x55b0f0(0x143)},'env':{'type':a29_0x55b0f0(0x147)},'watch':{'type':a29_0x55b0f0(0x143)},'help':{'type':a29_0x55b0f0(0x143)},'appcode':{'type':a29_0x55b0f0(0x147)},'output':{'type':'string'},'params':{'type':a29_0x55b0f0(0x147)},'datasetcode':{'type':a29_0x55b0f0(0x147)}},'autoVersion':!![]});await run();async function run(){const _0xe8db7d=a29_0x55b0f0,_0x2411ad=cli['input'][0x0],_0x38f04c=cli[_0xe8db7d(0x14f)][0x1],_0x56d074=cli['input'][0x2],_0x39903e=(_0xe8db7d(0x146)+process['argv'][_0xe8db7d(0x13a)](0x2)[_0xe8db7d(0x129)]('\x20'))[_0xe8db7d(0x12a)]();logger['setRawCommand'](_0x39903e);switch(_0x2411ad){case _0xe8db7d(0x12f):{const _0xdd39da=cli[_0xe8db7d(0x130)][_0xe8db7d(0x14a)],_0x52038a=cli['flags'][_0xe8db7d(0x140)];logger['setLogPath'](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)](_0xe8db7d(0x12f),'执行初始化配置命令'),render(a29_0x5062d0(Init,{'appcode':_0xdd39da,'env':_0x52038a}));break;}case'create':{const _0x55bdd2=cli[_0xe8db7d(0x14f)][0x1]?.[_0xe8db7d(0x12a)](),_0x33b4ed=cli[_0xe8db7d(0x130)][_0xe8db7d(0x140)];render(a29_0x5062d0(CreateApp,{'projectCode':_0x55bdd2,'env':_0x33b4ed}));break;}case'add':{cli[_0xe8db7d(0x14f)][0x1]===_0xe8db7d(0x138)&&(logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)](_0xe8db7d(0x127),_0xe8db7d(0x13d)),render(a29_0x5062d0(AddPage,{})));break;}case _0xe8db7d(0x134):{try{logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)]('start',_0xe8db7d(0x139)),await runStart();}catch(_0x424598){console['error'](_0x424598),process[_0xe8db7d(0x141)](0x1);}break;}case _0xe8db7d(0x14b):{try{logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)]('build','执行构建命令'),await runBuild();}catch(_0x2cde03){console[_0xe8db7d(0x149)](_0x2cde03),process['exit'](0x1);}break;}case _0xe8db7d(0x133):{const _0x285961=cli['flags'][_0xe8db7d(0x13f)];logger['setLogPath'](process[_0xe8db7d(0x150)]()),logger['info'](_0xe8db7d(0x133),_0xe8db7d(0x145)+(_0x285961?_0xe8db7d(0x13b):''));if(_0x285961)try{await Promise[_0xe8db7d(0x135)]([runBuildWatch(),runPreview()]);}catch(_0x106fc8){console[_0xe8db7d(0x149)](_0x106fc8),process[_0xe8db7d(0x141)](0x1);}else try{await runPreview();}catch(_0x5c5614){console['error'](_0x5c5614),process[_0xe8db7d(0x141)](0x1);}break;}case _0xe8db7d(0x12e):{render(a29_0x5062d0(Config,{'cli':cli}));break;}case _0xe8db7d(0x132):{await apiCli(cli);break;}case _0xe8db7d(0x152):{render(a29_0x5062d0(AuthServer,{}));break;}case _0xe8db7d(0x13e):{if(_0x38f04c===_0xe8db7d(0x14d)){logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger['info'](_0xe8db7d(0x13c),_0xe8db7d(0x151)),render(a29_0x5062d0(AppMenuUpdateCdn,{}));break;}else render(a29_0x5062d0(AppMenuSyncUI,{}));break;}case _0xe8db7d(0x154):{logout();break;}case'mcp':{const _0x19d504=cli[_0xe8db7d(0x14f)][0x1],_0x2157d6=cli[_0xe8db7d(0x14f)][_0xe8db7d(0x13a)](0x2);await mcpCommand(_0x19d504,_0x2157d6,cli['flags']);break;}case'skill':{const _0x5d0f42=cli[_0xe8db7d(0x14f)][0x1],_0xae2098=cli[_0xe8db7d(0x14f)][_0xe8db7d(0x13a)](0x2);await skillsCommand(_0x5d0f42,_0xae2098,cli['flags']);break;}case _0xe8db7d(0x144):{cli[_0xe8db7d(0x130)]['clear']?clearLogs():showLogs();break;}default:render(a29_0x5062d0(Help,{}));break;}}
2
+ const a31_0xff26ca=a31_0x4b3e;(function(_0x23eaea,_0x47e53b){const _0x23df0b=a31_0x4b3e,_0x132780=_0x23eaea();while(!![]){try{const _0x3b2602=parseInt(_0x23df0b(0x16a))/0x1*(parseInt(_0x23df0b(0x187))/0x2)+parseInt(_0x23df0b(0x16f))/0x3+parseInt(_0x23df0b(0x162))/0x4*(parseInt(_0x23df0b(0x191))/0x5)+parseInt(_0x23df0b(0x177))/0x6+parseInt(_0x23df0b(0x164))/0x7*(-parseInt(_0x23df0b(0x19b))/0x8)+parseInt(_0x23df0b(0x19e))/0x9*(-parseInt(_0x23df0b(0x19c))/0xa)+-parseInt(_0x23df0b(0x1a0))/0xb*(parseInt(_0x23df0b(0x198))/0xc);if(_0x3b2602===_0x47e53b)break;else _0x132780['push'](_0x132780['shift']());}catch(_0x16b63a){_0x132780['push'](_0x132780['shift']());}}}(a31_0xa7bd,0xc87ff));function a31_0x4b3e(_0x5d95d5,_0x428741){_0x5d95d5=_0x5d95d5-0x160;const _0xa7bd82=a31_0xa7bd();let _0x4b3ec9=_0xa7bd82[_0x5d95d5];return _0x4b3ec9;}import{jsx as a31_0x232585}from'react/jsx-runtime';import a31_0x4bb642 from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';function a31_0xa7bd(){const _0x1af084=['slice','windsurf','执行配置\x20MCP\x20命令','env','323542mlIoFC','执行构建命令','exit','setRawCommand','auth','install','执行安装技能包命令','cwd','all','error','355775LlVOyh','flags','info','trae','mcp','cursor','other','108CVkFFF','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并配置\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接配置\x20Cursor\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20交互式选择并安装技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20直接安装\x20Cursor\x20技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--cursor\x20--claude\x20//\x20安装多个技能包\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20--all\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装所有技能包\x0a\x09\x20\x20$\x20lovrabet\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','setLogPath','33224OjrJhH','10tosREr','lovrabet\x20','9756549EDfwJH','create','345972nppiNR','build','init','boolean','input','40zCtigw','执行更新菜单\x20CDN\x20资源命令','518lrFhRw','string','start','trim','codex','page','1sBRLGb','argv','执行启动命令','执行添加页面命令','help','2331864qdkvRq','push','claude','appcode','agent','logout','codebuddy','join','5070534pnnJtl','clear','qoder','opencode','--help','add-page','skill','antigravity','update','add','mcpCursor','mcpOther'];a31_0xa7bd=function(){return _0x1af084;};return a31_0xa7bd();}import{SkillInstallUI}from'./skills/SkillInstallUI.js';import{McpInstallUI}from'./mcp/McpInstallUI.js';const cli=a31_0x4bb642(a31_0xff26ca(0x199),{'importMeta':import.meta,'flags':{'name':{'type':a31_0xff26ca(0x165)},'clear':{'type':a31_0xff26ca(0x160)},'env':{'type':a31_0xff26ca(0x165)},'watch':{'type':a31_0xff26ca(0x160)},'help':{'type':'boolean'},'appcode':{'type':'string'},'output':{'type':a31_0xff26ca(0x165)},'params':{'type':a31_0xff26ca(0x165)},'datasetcode':{'type':'string'},'mcpCursor':{'type':a31_0xff26ca(0x160)},'mcpClaude':{'type':a31_0xff26ca(0x160)},'mcpOther':{'type':a31_0xff26ca(0x160)},'cursor':{'type':a31_0xff26ca(0x160)},'windsurf':{'type':'boolean'},'claude':{'type':a31_0xff26ca(0x160)},'codex':{'type':'boolean'},'opencode':{'type':a31_0xff26ca(0x160)},'qoder':{'type':a31_0xff26ca(0x160)},'codebuddy':{'type':a31_0xff26ca(0x160)},'trae':{'type':a31_0xff26ca(0x160)},'agent':{'type':'boolean'},'antigravity':{'type':a31_0xff26ca(0x160)},'all':{'type':a31_0xff26ca(0x160)}},'autoVersion':!![]});await run();async function run(){const _0x49be42=a31_0xff26ca,_0x51db30=cli[_0x49be42(0x161)][0x0],_0x1ddf35=cli[_0x49be42(0x161)][0x1],_0x1f8b24=cli[_0x49be42(0x161)][0x2],_0x504840=(_0x49be42(0x19d)+process[_0x49be42(0x16b)][_0x49be42(0x183)](0x2)[_0x49be42(0x176)]('\x20'))[_0x49be42(0x167)]();logger[_0x49be42(0x18a)](_0x504840);switch(_0x51db30){case'init':{const _0x3d4083=cli[_0x49be42(0x192)][_0x49be42(0x172)],_0x362d36=cli[_0x49be42(0x192)][_0x49be42(0x186)];logger[_0x49be42(0x19a)](process[_0x49be42(0x18e)]()),logger[_0x49be42(0x193)](_0x49be42(0x1a2),'执行初始化配置命令'),render(a31_0x232585(Init,{'appcode':_0x3d4083,'env':_0x362d36}));break;}case _0x49be42(0x19f):{const _0x2fab7a=cli[_0x49be42(0x161)][0x1]?.[_0x49be42(0x167)](),_0x52f17e=cli[_0x49be42(0x192)]['env'];render(a31_0x232585(CreateApp,{'projectCode':_0x2fab7a,'env':_0x52f17e}));break;}case _0x49be42(0x180):{cli['input'][0x1]===_0x49be42(0x169)&&(logger['setLogPath'](process[_0x49be42(0x18e)]()),logger['info'](_0x49be42(0x17c),_0x49be42(0x16d)),render(a31_0x232585(AddPage,{})));break;}case _0x49be42(0x166):{try{logger[_0x49be42(0x19a)](process[_0x49be42(0x18e)]()),logger[_0x49be42(0x193)](_0x49be42(0x166),_0x49be42(0x16c)),await runStart();}catch(_0x1edb2f){console[_0x49be42(0x190)](_0x1edb2f),process[_0x49be42(0x189)](0x1);}break;}case _0x49be42(0x1a1):{try{logger[_0x49be42(0x19a)](process['cwd']()),logger['info'](_0x49be42(0x1a1),_0x49be42(0x188)),await runBuild();}catch(_0x5204fb){console[_0x49be42(0x190)](_0x5204fb),process[_0x49be42(0x189)](0x1);}break;}case'preview':{const _0x260e72=cli[_0x49be42(0x192)]['watch'];logger[_0x49be42(0x19a)](process[_0x49be42(0x18e)]()),logger[_0x49be42(0x193)]('preview','执行预览命令'+(_0x260e72?'\x20(监听模式)':''));if(_0x260e72)try{await Promise[_0x49be42(0x18f)]([runBuildWatch(),runPreview()]);}catch(_0x116e5f){console[_0x49be42(0x190)](_0x116e5f),process[_0x49be42(0x189)](0x1);}else try{await runPreview();}catch(_0x5e8241){console[_0x49be42(0x190)](_0x5e8241),process['exit'](0x1);}break;}case'config':{render(a31_0x232585(Config,{'cli':cli}));break;}case'api':{await apiCli(cli);break;}case _0x49be42(0x18b):{render(a31_0x232585(AuthServer,{}));break;}case'menu':{if(_0x1ddf35===_0x49be42(0x17f)){logger[_0x49be42(0x19a)](process[_0x49be42(0x18e)]()),logger[_0x49be42(0x193)]('menu-update-cdn',_0x49be42(0x163)),render(a31_0x232585(AppMenuUpdateCdn,{}));break;}else render(a31_0x232585(AppMenuSyncUI,{}));break;}case _0x49be42(0x174):{logout();break;}case _0x49be42(0x195):{const _0x769a8=cli[_0x49be42(0x161)][0x1];logger[_0x49be42(0x19a)](process['cwd']());if(_0x769a8==='install'){const _0x2890d6=[];if(cli['flags'][_0x49be42(0x181)])_0x2890d6['push']('cursor');if(cli[_0x49be42(0x192)]['mcpClaude'])_0x2890d6[_0x49be42(0x170)](_0x49be42(0x171));if(cli[_0x49be42(0x192)][_0x49be42(0x182)])_0x2890d6['push'](_0x49be42(0x197));logger[_0x49be42(0x193)]('mcp-install',_0x49be42(0x185),{'preselected':_0x2890d6}),render(a31_0x232585(McpInstallUI,{'preselectedIDEs':_0x2890d6}));}else _0x769a8===_0x49be42(0x17b)||cli['flags'][_0x49be42(0x16e)]?await mcpCommand(_0x769a8,[],{'help':!![]}):await mcpCommand(_0x769a8,[],cli[_0x49be42(0x192)]);break;}case _0x49be42(0x17d):{const _0x4baf90=cli[_0x49be42(0x161)][0x1];logger[_0x49be42(0x19a)](process[_0x49be42(0x18e)]());if(_0x4baf90===_0x49be42(0x18c)){const _0x1815c3=[];if(cli[_0x49be42(0x192)][_0x49be42(0x18f)])_0x1815c3[_0x49be42(0x170)]('cursor',_0x49be42(0x184),_0x49be42(0x171),_0x49be42(0x168),_0x49be42(0x17a),_0x49be42(0x179),_0x49be42(0x175),'trae',_0x49be42(0x173),'antigravity');else{if(cli[_0x49be42(0x192)][_0x49be42(0x196)])_0x1815c3[_0x49be42(0x170)]('cursor');if(cli['flags'][_0x49be42(0x184)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x184));if(cli[_0x49be42(0x192)][_0x49be42(0x171)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x171));if(cli[_0x49be42(0x192)][_0x49be42(0x168)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x168));if(cli[_0x49be42(0x192)][_0x49be42(0x17a)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x17a));if(cli[_0x49be42(0x192)][_0x49be42(0x179)])_0x1815c3['push']('qoder');if(cli[_0x49be42(0x192)][_0x49be42(0x175)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x175));if(cli[_0x49be42(0x192)][_0x49be42(0x194)])_0x1815c3[_0x49be42(0x170)]('trae');if(cli[_0x49be42(0x192)]['agent'])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x173));if(cli['flags'][_0x49be42(0x17e)])_0x1815c3[_0x49be42(0x170)](_0x49be42(0x17e));}logger[_0x49be42(0x193)]('skill-install',_0x49be42(0x18d),{'preselected':_0x1815c3}),render(a31_0x232585(SkillInstallUI,{'preselectedIDEs':_0x1815c3}));}else _0x4baf90===_0x49be42(0x17b)||cli[_0x49be42(0x192)][_0x49be42(0x16e)]?await skillsCommand(_0x4baf90,[],{'help':!![]}):await skillsCommand(_0x4baf90,[],cli['flags']);break;}case'logs':{cli['flags'][_0x49be42(0x178)]?clearLogs():showLogs();break;}default:render(a31_0x232585(Help,{}));break;}}
@@ -1 +1 @@
1
- function a30_0x3be4(_0x56841f,_0xf060b2){_0x56841f=_0x56841f-0x6a;const _0x386caf=a30_0x386c();let _0x3be404=_0x386caf[_0x56841f];return _0x3be404;}(function(_0x1243f0,_0x16a598){const _0x476da9=a30_0x3be4,_0x2162f0=_0x1243f0();while(!![]){try{const _0x514514=parseInt(_0x476da9(0x6a))/0x1*(parseInt(_0x476da9(0x7e))/0x2)+parseInt(_0x476da9(0x6b))/0x3*(parseInt(_0x476da9(0x7d))/0x4)+-parseInt(_0x476da9(0x76))/0x5+parseInt(_0x476da9(0x73))/0x6*(parseInt(_0x476da9(0x7a))/0x7)+-parseInt(_0x476da9(0x6d))/0x8*(parseInt(_0x476da9(0x77))/0x9)+-parseInt(_0x476da9(0x78))/0xa*(parseInt(_0x476da9(0x79))/0xb)+parseInt(_0x476da9(0x74))/0xc*(-parseInt(_0x476da9(0x6c))/0xd);if(_0x514514===_0x16a598)break;else _0x2162f0['push'](_0x2162f0['shift']());}catch(_0x2e0caa){_0x2162f0['push'](_0x2162f0['shift']());}}}(a30_0x386c,0xd8f3e));import{spawn}from'node:child_process';function a30_0x386c(){const _0x3856e6=['node_modules','5782380UVKAlH','84213JMvkvi','10VDrsEl','10398113PsLDSO','7HGKqlK','inherit','close','4EvghGy','223754ICiWan','env','7cgOQgQ','4625331YyooGw','3928587cbWeKP','24BQcruK','PATH','.bin','error','--watch','cwd','9600894jghpEX','36tmiwTM'];a30_0x386c=function(){return _0x3856e6;};return a30_0x386c();}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x568196,_0x319733)=>{const _0x2f445c=a30_0x3be4,_0x31476c=spawn('vite',['build',_0x2f445c(0x71)],{'stdio':_0x2f445c(0x7b),'shell':!![],'env':{...process[_0x2f445c(0x7f)],'PATH':''+join(process[_0x2f445c(0x72)](),_0x2f445c(0x75),_0x2f445c(0x6f))+delimiter+process[_0x2f445c(0x7f)][_0x2f445c(0x6e)]}});_0x31476c['on'](_0x2f445c(0x7c),_0x31fa74=>{if(_0x31fa74===0x0||_0x31fa74===null)_0x568196();else _0x319733(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x31fa74));}),_0x31476c['on'](_0x2f445c(0x70),_0x319733);});}
1
+ (function(_0x18b1d9,_0x4cbe3a){const _0x334580=a32_0x7e9a,_0x575036=_0x18b1d9();while(!![]){try{const _0x4d38ed=-parseInt(_0x334580(0x19b))/0x1*(-parseInt(_0x334580(0x193))/0x2)+-parseInt(_0x334580(0x197))/0x3+-parseInt(_0x334580(0x1a0))/0x4+-parseInt(_0x334580(0x1a1))/0x5+-parseInt(_0x334580(0x198))/0x6+-parseInt(_0x334580(0x19f))/0x7+parseInt(_0x334580(0x195))/0x8;if(_0x4d38ed===_0x4cbe3a)break;else _0x575036['push'](_0x575036['shift']());}catch(_0x5510c6){_0x575036['push'](_0x575036['shift']());}}}(a32_0x4122,0xe28bf));function a32_0x7e9a(_0x5dcd65,_0x5c6237){_0x5dcd65=_0x5dcd65-0x193;const _0x4122bc=a32_0x4122();let _0x7e9a14=_0x4122bc[_0x5dcd65];return _0x7e9a14;}import{spawn}from'node:child_process';function a32_0x4122(){const _0x4ef17d=['PATH','234943WrOBGX','node_modules','--watch','build','1518321JQYyiz','2013532thUCsk','6495305rJRLLI','npm\x20run\x20build\x20exited\x20with\x20code\x20','4TLyQzo','cwd','44455416jJFGFE','vite','3729990MVyVxz','11017206UCuCHM','error'];a32_0x4122=function(){return _0x4ef17d;};return a32_0x4122();}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x527e4f,_0xdd535c)=>{const _0x31d744=a32_0x7e9a,_0x3ece4d=spawn(_0x31d744(0x196),[_0x31d744(0x19e),_0x31d744(0x19d)],{'stdio':'inherit','shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x31d744(0x194)](),_0x31d744(0x19c),'.bin')+delimiter+process['env'][_0x31d744(0x19a)]}});_0x3ece4d['on']('close',_0x3c36fa=>{const _0x460fbc=_0x31d744;if(_0x3c36fa===0x0||_0x3c36fa===null)_0x527e4f();else _0xdd535c(new Error(_0x460fbc(0x1a2)+_0x3c36fa));}),_0x3ece4d['on'](_0x31d744(0x199),_0xdd535c);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- function a31_0x3533(_0x3fe691,_0x4123d8){_0x3fe691=_0x3fe691-0x14e;const _0x4920a7=a31_0x4920();let _0x3533b1=_0x4920a7[_0x3fe691];return _0x3533b1;}(function(_0x13ad60,_0x30e94b){const _0x21a5f4=a31_0x3533,_0xc16884=_0x13ad60();while(!![]){try{const _0x57033c=-parseInt(_0x21a5f4(0x15b))/0x1*(-parseInt(_0x21a5f4(0x16b))/0x2)+-parseInt(_0x21a5f4(0x156))/0x3+parseInt(_0x21a5f4(0x167))/0x4+parseInt(_0x21a5f4(0x150))/0x5*(-parseInt(_0x21a5f4(0x15e))/0x6)+parseInt(_0x21a5f4(0x159))/0x7+-parseInt(_0x21a5f4(0x164))/0x8+-parseInt(_0x21a5f4(0x163))/0x9;if(_0x57033c===_0x30e94b)break;else _0xc16884['push'](_0xc16884['shift']());}catch(_0x223382){_0xc16884['push'](_0xc16884['shift']());}}}(a31_0x4920,0x96625));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x4a66ed,_0x2b1922)=>{const _0x3b6d5a=a31_0x3533,_0x28a480=Date[_0x3b6d5a(0x161)]();logger[_0x3b6d5a(0x151)]('build',_0x3b6d5a(0x16a),{'command':_0x3b6d5a(0x15a)});let _0x46e57f='';const _0xf9d47d=spawn(_0x3b6d5a(0x15c),[_0x3b6d5a(0x166),_0x3b6d5a(0x168)],{'stdio':[_0x3b6d5a(0x153),_0x3b6d5a(0x153),_0x3b6d5a(0x14e)],'shell':!![],'env':{...process[_0x3b6d5a(0x152)],'PATH':''+join(process[_0x3b6d5a(0x169)](),_0x3b6d5a(0x16d),_0x3b6d5a(0x165))+delimiter+process[_0x3b6d5a(0x152)]['PATH']}});_0xf9d47d['stderr']?.['on'](_0x3b6d5a(0x15d),_0x49aca8=>{_0x46e57f+=_0x49aca8['toString']();}),_0xf9d47d['on'](_0x3b6d5a(0x157),_0x1c34cb=>{const _0x147284=_0x3b6d5a,_0x1b8263=Date['now']()-_0x28a480;if(_0x1c34cb===0x0||_0x1c34cb===null)logger['success'](_0x147284(0x168),_0x147284(0x158),_0x1b8263),_0x4a66ed();else{const _0x5c50e4={'exitCode':_0x1c34cb,'duration':_0x1b8263,'command':_0x147284(0x15a),'cwd':process[_0x147284(0x169)]()};_0x46e57f[_0x147284(0x15f)]()&&(_0x5c50e4[_0x147284(0x162)]=_0x46e57f[_0x147284(0x15f)]()),logger[_0x147284(0x155)](_0x147284(0x168),_0x147284(0x14f),_0x5c50e4),_0x2b1922(new Error(_0x147284(0x160)+_0x1c34cb));}}),_0xf9d47d['on'](_0x3b6d5a(0x155),_0x289cfd=>{const _0x3d9322=_0x3b6d5a,_0x4e2fdb=Date[_0x3d9322(0x161)]()-_0x28a480;logger[_0x3d9322(0x155)]('build',_0x3d9322(0x16c),{'error':_0x289cfd[_0x3d9322(0x154)],'duration':_0x4e2fdb,'stderr':_0x46e57f['trim']()||undefined}),_0x2b1922(_0x289cfd);});});}function a31_0x4920(){const _0x42a198=['.bin','run','3961224VEPuyb','build','cwd','开始构建项目','8oKGLUV','项目构建出错','node_modules','pipe','项目构建失败','26415lOXvpL','info','env','inherit','message','error','171222nzRWSe','close','项目构建成功','6835920plIFdl','npm\x20run\x20build','166585HWdWMq','npm','data','954PYmvpf','trim','npm\x20run\x20build\x20exited\x20with\x20code\x20','now','stderr','8650764KzVFhN','1271728GRRxkO'];a31_0x4920=function(){return _0x42a198;};return a31_0x4920();}
1
+ (function(_0x4600e0,_0x3417ab){const _0x4d5a59=a33_0x4f3b,_0x56780b=_0x4600e0();while(!![]){try{const _0x381faa=-parseInt(_0x4d5a59(0x118))/0x1*(-parseInt(_0x4d5a59(0x117))/0x2)+parseInt(_0x4d5a59(0x124))/0x3+-parseInt(_0x4d5a59(0x10a))/0x4+-parseInt(_0x4d5a59(0x10e))/0x5*(parseInt(_0x4d5a59(0x121))/0x6)+-parseInt(_0x4d5a59(0x122))/0x7+parseInt(_0x4d5a59(0x120))/0x8+parseInt(_0x4d5a59(0x11b))/0x9;if(_0x381faa===_0x3417ab)break;else _0x56780b['push'](_0x56780b['shift']());}catch(_0x94c86e){_0x56780b['push'](_0x56780b['shift']());}}}(a33_0x5598,0x96f9e));function a33_0x4f3b(_0x141202,_0x18acac){_0x141202=_0x141202-0x10a;const _0x559813=a33_0x5598();let _0x4f3b3e=_0x559813[_0x141202];return _0x4f3b3e;}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a33_0x5598(){const _0x596800=['2dJVDRj','518233rISSeq','error','npm','2542410BOvtpu','cwd','开始构建项目','.bin','pipe','6678440RtiiVX','12294HumPPi','2312352bjktHK','stderr','1826433sdBgKW','npm\x20run\x20build','info','now','trim','3723532lIcEHy','node_modules','run','npm\x20run\x20build\x20exited\x20with\x20code\x20','890mZNJZN','PATH','build','env','项目构建出错','data','inherit','message','success'];a33_0x5598=function(){return _0x596800;};return a33_0x5598();}export function runBuild(){return new Promise((_0x3a2f7b,_0x5238e8)=>{const _0x458e54=a33_0x4f3b,_0x17dbbd=Date[_0x458e54(0x127)]();logger[_0x458e54(0x126)](_0x458e54(0x110),_0x458e54(0x11d),{'command':_0x458e54(0x125)});let _0x20b494='';const _0x3a6e4b=spawn(_0x458e54(0x11a),[_0x458e54(0x10c),_0x458e54(0x110)],{'stdio':[_0x458e54(0x114),_0x458e54(0x114),_0x458e54(0x11f)],'shell':!![],'env':{...process[_0x458e54(0x111)],'PATH':''+join(process[_0x458e54(0x11c)](),_0x458e54(0x10b),_0x458e54(0x11e))+delimiter+process[_0x458e54(0x111)][_0x458e54(0x10f)]}});_0x3a6e4b[_0x458e54(0x123)]?.['on'](_0x458e54(0x113),_0x4810b6=>{_0x20b494+=_0x4810b6['toString']();}),_0x3a6e4b['on']('close',_0x243bb7=>{const _0x332b99=_0x458e54,_0x2718d0=Date[_0x332b99(0x127)]()-_0x17dbbd;if(_0x243bb7===0x0||_0x243bb7===null)logger[_0x332b99(0x116)]('build','项目构建成功',_0x2718d0),_0x3a2f7b();else{const _0x5a8572={'exitCode':_0x243bb7,'duration':_0x2718d0,'command':_0x332b99(0x125),'cwd':process[_0x332b99(0x11c)]()};_0x20b494['trim']()&&(_0x5a8572[_0x332b99(0x123)]=_0x20b494[_0x332b99(0x128)]()),logger[_0x332b99(0x119)](_0x332b99(0x110),'项目构建失败',_0x5a8572),_0x5238e8(new Error(_0x332b99(0x10d)+_0x243bb7));}}),_0x3a6e4b['on'](_0x458e54(0x119),_0x202180=>{const _0x17104e=_0x458e54,_0x58ad02=Date[_0x17104e(0x127)]()-_0x17dbbd;logger['error']('build',_0x17104e(0x112),{'error':_0x202180[_0x17104e(0x115)],'duration':_0x58ad02,'stderr':_0x20b494[_0x17104e(0x128)]()||undefined}),_0x5238e8(_0x202180);});});}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- function a32_0x4a60(){const _0x1457bf=['46hOyRzt','2399520ErWpOo','length','4aCjtfW','command','168111MsHyTO','clearLogs','24646qWQaXv','998385DoqILg','\x20\x20\x20耗时:\x20','keys','\x20\x20\x20时间:\x20','level','readLogs','cwd','warn','log','setLogPath','12732WcTtDl','*\x20Lovrabet\x20CLI\x20日志记录:\x0a','56sDrTfN','details','toLocaleString','*\x20日志已清空','error','*\x20暂无日志记录','zh-CN','90412oqynMM','9805301UZojTk','515NjYhNg','\x20\x20\x20详情:\x20','success'];a32_0x4a60=function(){return _0x1457bf;};return a32_0x4a60();}(function(_0x24c59c,_0x4e950c){const _0x27b826=a32_0x184b,_0x37e3fa=_0x24c59c();while(!![]){try{const _0x9b242b=-parseInt(_0x27b826(0x158))/0x1*(parseInt(_0x27b826(0x171))/0x2)+-parseInt(_0x27b826(0x159))/0x3*(parseInt(_0x27b826(0x174))/0x4)+parseInt(_0x27b826(0x16e))/0x5*(parseInt(_0x27b826(0x163))/0x6)+-parseInt(_0x27b826(0x16c))/0x7*(parseInt(_0x27b826(0x165))/0x8)+parseInt(_0x27b826(0x176))/0x9+parseInt(_0x27b826(0x172))/0xa+parseInt(_0x27b826(0x16d))/0xb;if(_0x9b242b===_0x4e950c)break;else _0x37e3fa['push'](_0x37e3fa['shift']());}catch(_0x4624bb){_0x37e3fa['push'](_0x37e3fa['shift']());}}}(a32_0x4a60,0x5c69b));import{logger}from'../utils/logger.js';export function showLogs(){const _0x496bd3=a32_0x184b;logger[_0x496bd3(0x162)](process[_0x496bd3(0x15f)]());const _0x5e7526=logger[_0x496bd3(0x15e)]();if(_0x5e7526[_0x496bd3(0x173)]===0x0){console[_0x496bd3(0x161)](_0x496bd3(0x16a));return;}console[_0x496bd3(0x161)](_0x496bd3(0x164)),_0x5e7526['forEach']((_0x3838b4,_0x595790)=>{const _0x4929fe=_0x496bd3,_0x17f60a=new Date(_0x3838b4['timestamp'])[_0x4929fe(0x167)](_0x4929fe(0x16b)),_0x5307c1=_0x3838b4[_0x4929fe(0x15d)]===_0x4929fe(0x170)?'√':_0x3838b4[_0x4929fe(0x15d)]===_0x4929fe(0x169)?'×':_0x3838b4[_0x4929fe(0x15d)]===_0x4929fe(0x160)?'!':'i';console[_0x4929fe(0x161)](_0x595790+0x1+'.\x20'+_0x5307c1+'\x20['+_0x3838b4[_0x4929fe(0x175)]+']\x20'+_0x3838b4['message']),console[_0x4929fe(0x161)](_0x4929fe(0x15c)+_0x17f60a),_0x3838b4['duration']&&console['log'](_0x4929fe(0x15a)+_0x3838b4['duration']+'ms'),_0x3838b4[_0x4929fe(0x166)]&&Object[_0x4929fe(0x15b)](_0x3838b4['details'])[_0x4929fe(0x173)]>0x0&&console[_0x4929fe(0x161)](_0x4929fe(0x16f)+JSON['stringify'](_0x3838b4['details'],null,0x2)),console[_0x4929fe(0x161)]('');});}function a32_0x184b(_0x132145,_0x2cd027){_0x132145=_0x132145-0x157;const _0x4a600d=a32_0x4a60();let _0x184bfb=_0x4a600d[_0x132145];return _0x184bfb;}export function clearLogs(){const _0xe25eb5=a32_0x184b;logger['setLogPath'](process[_0xe25eb5(0x15f)]()),logger[_0xe25eb5(0x157)](),console['log'](_0xe25eb5(0x168));}
1
+ function a34_0x1450(_0xc32da2,_0x82edf8){_0xc32da2=_0xc32da2-0x70;const _0x5956f2=a34_0x5956();let _0x14500d=_0x5956f2[_0xc32da2];return _0x14500d;}(function(_0x12e7a7,_0x49aaa2){const _0x4b263c=a34_0x1450,_0x4ae245=_0x12e7a7();while(!![]){try{const _0x4a0ccc=-parseInt(_0x4b263c(0x83))/0x1*(-parseInt(_0x4b263c(0x85))/0x2)+parseInt(_0x4b263c(0x7c))/0x3*(parseInt(_0x4b263c(0x86))/0x4)+-parseInt(_0x4b263c(0x77))/0x5+parseInt(_0x4b263c(0x79))/0x6*(-parseInt(_0x4b263c(0x88))/0x7)+-parseInt(_0x4b263c(0x90))/0x8+parseInt(_0x4b263c(0x7a))/0x9*(-parseInt(_0x4b263c(0x8d))/0xa)+-parseInt(_0x4b263c(0x72))/0xb*(-parseInt(_0x4b263c(0x74))/0xc);if(_0x4a0ccc===_0x49aaa2)break;else _0x4ae245['push'](_0x4ae245['shift']());}catch(_0x2cbd23){_0x4ae245['push'](_0x4ae245['shift']());}}}(a34_0x5956,0xe839f));function a34_0x5956(){const _0x498179=['details','forEach','stringify','1177FdnQGO','length','205752cVMOdz','level','clearLogs','5633545lsjoag','log','5991474qXrOJz','459OVPEYB','cwd','207JsqOfz','\x20\x20\x20详情:\x20','duration','*\x20暂无日志记录','keys','readLogs','message','1ycBHGh','error','2279482SIiJyi','74632NeFDad','setLogPath','7mgotwY','timestamp','success','command','\x20\x20\x20耗时:\x20','186470tesNjB','\x20\x20\x20时间:\x20','warn','1874248keNJMy'];a34_0x5956=function(){return _0x498179;};return a34_0x5956();}import{logger}from'../utils/logger.js';export function showLogs(){const _0x307879=a34_0x1450;logger[_0x307879(0x87)](process['cwd']());const _0x62d00c=logger[_0x307879(0x81)]();if(_0x62d00c[_0x307879(0x73)]===0x0){console[_0x307879(0x78)](_0x307879(0x7f));return;}console['log']('*\x20Lovrabet\x20CLI\x20日志记录:\x0a'),_0x62d00c[_0x307879(0x70)]((_0x52da66,_0x25f60c)=>{const _0x2fa9f8=_0x307879,_0x5838b1=new Date(_0x52da66[_0x2fa9f8(0x89)])['toLocaleString']('zh-CN'),_0x314cfd=_0x52da66[_0x2fa9f8(0x75)]===_0x2fa9f8(0x8a)?'√':_0x52da66[_0x2fa9f8(0x75)]===_0x2fa9f8(0x84)?'×':_0x52da66['level']===_0x2fa9f8(0x8f)?'!':'i';console[_0x2fa9f8(0x78)](_0x25f60c+0x1+'.\x20'+_0x314cfd+'\x20['+_0x52da66[_0x2fa9f8(0x8b)]+']\x20'+_0x52da66[_0x2fa9f8(0x82)]),console['log'](_0x2fa9f8(0x8e)+_0x5838b1),_0x52da66[_0x2fa9f8(0x7e)]&&console[_0x2fa9f8(0x78)](_0x2fa9f8(0x8c)+_0x52da66['duration']+'ms'),_0x52da66[_0x2fa9f8(0x91)]&&Object[_0x2fa9f8(0x80)](_0x52da66[_0x2fa9f8(0x91)])['length']>0x0&&console[_0x2fa9f8(0x78)](_0x2fa9f8(0x7d)+JSON[_0x2fa9f8(0x71)](_0x52da66[_0x2fa9f8(0x91)],null,0x2)),console[_0x2fa9f8(0x78)]('');});}export function clearLogs(){const _0x3dc40c=a34_0x1450;logger['setLogPath'](process[_0x3dc40c(0x7b)]()),logger[_0x3dc40c(0x76)](),console['log']('*\x20日志已清空');}
@@ -1 +1 @@
1
- function a33_0x4739(_0xe26e32,_0x2c586b){_0xe26e32=_0xe26e32-0x10e;const _0x79c12f=a33_0x79c1();let _0x473992=_0x79c12f[_0xe26e32];return _0x473992;}function a33_0x79c1(){const _0x48b7ad=['104913ODppFg','data','vite\x20preview','pipe','error','now','421638xviLKC','预览服务器启动成功','stderr','预览服务器启动失败','vite\x20preview\x20exited\x20with\x20code\x20','14HwGyCw','1736600BHXwAR','vite','close','预览服务器启动出错','cwd','node_modules','2336505XMDMRv','preview','399393TzeUbC','180dGtdrW','.bin','env','trim','toString','info','207808MVQWii','4493768PCDIqg','80kzzxYg','inherit'];a33_0x79c1=function(){return _0x48b7ad;};return a33_0x79c1();}(function(_0x1986a2,_0x2587bd){const _0x33ac85=a33_0x4739,_0x45039f=_0x1986a2();while(!![]){try{const _0x54c7f2=parseInt(_0x33ac85(0x121))/0x1+-parseInt(_0x33ac85(0x112))/0x2+-parseInt(_0x33ac85(0x125))/0x3*(-parseInt(_0x33ac85(0x123))/0x4)+parseInt(_0x33ac85(0x118))/0x5+-parseInt(_0x33ac85(0x12b))/0x6*(parseInt(_0x33ac85(0x111))/0x7)+-parseInt(_0x33ac85(0x122))/0x8+parseInt(_0x33ac85(0x11a))/0x9*(parseInt(_0x33ac85(0x11b))/0xa);if(_0x54c7f2===_0x2587bd)break;else _0x45039f['push'](_0x45039f['shift']());}catch(_0x515b33){_0x45039f['push'](_0x45039f['shift']());}}}(a33_0x79c1,0x9327c));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x2e56b3,_0x2af7b8)=>{const _0x16db89=a33_0x4739,_0x17032c=Date['now']();logger[_0x16db89(0x120)](_0x16db89(0x119),'启动预览服务器',{'command':_0x16db89(0x127)});let _0x2e4c91='';const _0x4a19a9=spawn(_0x16db89(0x113),[_0x16db89(0x119)],{'stdio':[_0x16db89(0x124),_0x16db89(0x124),_0x16db89(0x128)],'shell':!![],'env':{...process[_0x16db89(0x11d)],'PATH':''+join(process['cwd'](),_0x16db89(0x117),_0x16db89(0x11c))+delimiter+process[_0x16db89(0x11d)]['PATH']}});_0x4a19a9['stderr']?.['on'](_0x16db89(0x126),_0x4db4a2=>{const _0x2df4c5=_0x16db89;_0x2e4c91+=_0x4db4a2[_0x2df4c5(0x11f)]();}),_0x4a19a9['on'](_0x16db89(0x114),_0x378da6=>{const _0x48683f=_0x16db89,_0x329a2f=Date[_0x48683f(0x12a)]()-_0x17032c;if(_0x378da6===0x0||_0x378da6===null)logger['success'](_0x48683f(0x119),_0x48683f(0x12c),_0x329a2f),_0x2e56b3();else{const _0x5e356b={'exitCode':_0x378da6,'duration':_0x329a2f,'command':_0x48683f(0x127),'cwd':process[_0x48683f(0x116)]()};_0x2e4c91[_0x48683f(0x11e)]()&&(_0x5e356b[_0x48683f(0x10e)]=_0x2e4c91['trim']()),logger[_0x48683f(0x129)](_0x48683f(0x119),_0x48683f(0x10f),_0x5e356b),_0x2af7b8(new Error(_0x48683f(0x110)+_0x378da6));}}),_0x4a19a9['on']('error',_0x412b0c=>{const _0x32d816=_0x16db89,_0x5be057=Date[_0x32d816(0x12a)]()-_0x17032c;logger[_0x32d816(0x129)](_0x32d816(0x119),_0x32d816(0x115),{'error':_0x412b0c['message'],'duration':_0x5be057,'stderr':_0x2e4c91[_0x32d816(0x11e)]()||undefined}),_0x2af7b8(_0x412b0c);});});}
1
+ (function(_0xaf48ed,_0x5b79c1){const _0x513d09=a35_0x562f,_0x1f2114=_0xaf48ed();while(!![]){try{const _0x5cbfcd=-parseInt(_0x513d09(0x9b))/0x1*(parseInt(_0x513d09(0x8a))/0x2)+-parseInt(_0x513d09(0xa6))/0x3*(parseInt(_0x513d09(0x8f))/0x4)+-parseInt(_0x513d09(0x9d))/0x5*(parseInt(_0x513d09(0xa7))/0x6)+parseInt(_0x513d09(0x96))/0x7+parseInt(_0x513d09(0x88))/0x8*(-parseInt(_0x513d09(0x9c))/0x9)+parseInt(_0x513d09(0x94))/0xa+parseInt(_0x513d09(0xa5))/0xb;if(_0x5cbfcd===_0x5b79c1)break;else _0x1f2114['push'](_0x1f2114['shift']());}catch(_0x54cdc4){_0x1f2114['push'](_0x1f2114['shift']());}}}(a35_0x3293,0xec6a2));function a35_0x562f(_0x4a2a67,_0x16c9e2){_0x4a2a67=_0x4a2a67-0x88;const _0x32938e=a35_0x3293();let _0x562f8b=_0x32938e[_0x4a2a67];return _0x562f8b;}function a35_0x3293(){const _0x2fefc9=['vite','vite\x20preview','env','预览服务器启动出错','756AkoeFA','now','message','.bin','stderr','13922380hPTMVn','vite\x20preview\x20exited\x20with\x20code\x20','9512699mfNVmP','data','preview','cwd','close','97vklwWT','9585MsEBWU','265oEOGCY','error','success','预览服务器启动失败','info','启动预览服务器','node_modules','trim','25931422PMJJTP','14001LdFJNi','194730NCYJSk','inherit','7240EbnOdk','预览服务器启动成功','11840kuBXJL'];a35_0x3293=function(){return _0x2fefc9;};return a35_0x3293();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x13cdb0,_0x451c55)=>{const _0x2f810d=a35_0x562f,_0xfd2be3=Date[_0x2f810d(0x90)]();logger[_0x2f810d(0xa1)](_0x2f810d(0x98),_0x2f810d(0xa2),{'command':_0x2f810d(0x8c)});let _0x92607d='';const _0x5317a5=spawn(_0x2f810d(0x8b),[_0x2f810d(0x98)],{'stdio':['inherit',_0x2f810d(0xa8),'pipe'],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x2f810d(0x99)](),_0x2f810d(0xa3),_0x2f810d(0x92))+delimiter+process[_0x2f810d(0x8d)]['PATH']}});_0x5317a5[_0x2f810d(0x93)]?.['on'](_0x2f810d(0x97),_0x300807=>{_0x92607d+=_0x300807['toString']();}),_0x5317a5['on'](_0x2f810d(0x9a),_0x36fc4d=>{const _0x401d47=_0x2f810d,_0xb06249=Date[_0x401d47(0x90)]()-_0xfd2be3;if(_0x36fc4d===0x0||_0x36fc4d===null)logger[_0x401d47(0x9f)]('preview',_0x401d47(0x89),_0xb06249),_0x13cdb0();else{const _0x47cf81={'exitCode':_0x36fc4d,'duration':_0xb06249,'command':'vite\x20preview','cwd':process[_0x401d47(0x99)]()};_0x92607d[_0x401d47(0xa4)]()&&(_0x47cf81['stderr']=_0x92607d[_0x401d47(0xa4)]()),logger[_0x401d47(0x9e)](_0x401d47(0x98),_0x401d47(0xa0),_0x47cf81),_0x451c55(new Error(_0x401d47(0x95)+_0x36fc4d));}}),_0x5317a5['on'](_0x2f810d(0x9e),_0x4bf9ee=>{const _0x328551=_0x2f810d,_0x34bb03=Date[_0x328551(0x90)]()-_0xfd2be3;logger[_0x328551(0x9e)](_0x328551(0x98),_0x328551(0x8e),{'error':_0x4bf9ee[_0x328551(0x91)],'duration':_0x34bb03,'stderr':_0x92607d[_0x328551(0xa4)]()||undefined}),_0x451c55(_0x4bf9ee);});});}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2cb49d,_0x3567bc){const _0x3c4a4d=a34_0x294c,_0x11a551=_0x2cb49d();while(!![]){try{const _0x2534b2=parseInt(_0x3c4a4d(0x170))/0x1+-parseInt(_0x3c4a4d(0x18b))/0x2+parseInt(_0x3c4a4d(0x18e))/0x3+parseInt(_0x3c4a4d(0x18d))/0x4*(-parseInt(_0x3c4a4d(0x18f))/0x5)+-parseInt(_0x3c4a4d(0x17d))/0x6+parseInt(_0x3c4a4d(0x183))/0x7*(parseInt(_0x3c4a4d(0x176))/0x8)+-parseInt(_0x3c4a4d(0x17c))/0x9;if(_0x2534b2===_0x3567bc)break;else _0x11a551['push'](_0x11a551['shift']());}catch(_0x49ba47){_0x11a551['push'](_0x11a551['shift']());}}}(a34_0x58b8,0x1edac));import{delimiter,join}from'node:path';function a34_0x294c(_0x593038,_0x54beb9){_0x593038=_0x593038-0x16d;const _0x58b888=a34_0x58b8();let _0x294c2d=_0x58b888[_0x593038];return _0x294c2d;}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';export function runStart(_0x1a2591){return new Promise((_0x5dc587,_0x131f8c)=>{const _0xe3a5f2=a34_0x294c,_0x4246e8=Date[_0xe3a5f2(0x182)](),_0x1e1ae3=_0x1a2591||process[_0xe3a5f2(0x189)](),_0x5d6b89=checkSdkVersion(_0x1e1ae3);_0x5d6b89['needsUpgrade']&&(printSdkUpgradeWarning(_0x5d6b89),logger[_0xe3a5f2(0x175)]('start',_0xe3a5f2(0x187),{'currentVersion':_0x5d6b89[_0xe3a5f2(0x171)],'minVersion':_0x5d6b89[_0xe3a5f2(0x184)]}));logger[_0xe3a5f2(0x17f)](_0xe3a5f2(0x17b),_0xe3a5f2(0x178),{'command':'vite','cwd':_0x1e1ae3});let _0x1063af='';const _0x59d599=spawn('vite',{'stdio':[_0xe3a5f2(0x186),'inherit',_0xe3a5f2(0x17a)],'shell':!![],'cwd':_0x1e1ae3,'env':{...process[_0xe3a5f2(0x16f)],'PATH':''+join(_0x1e1ae3,'node_modules','.bin')+delimiter+process[_0xe3a5f2(0x16f)][_0xe3a5f2(0x18a)]}});_0x59d599['stderr']?.['on']('data',_0x2852dc=>{const _0xc3dfb0=_0xe3a5f2,_0x2e5271=_0x2852dc[_0xc3dfb0(0x172)]();_0x1063af+=_0x2e5271,process[_0xc3dfb0(0x177)][_0xc3dfb0(0x188)](_0x2e5271);}),_0x59d599['on'](_0xe3a5f2(0x16d),_0x925649=>{const _0x310561=_0xe3a5f2,_0x365c63=Date[_0x310561(0x182)]()-_0x4246e8;if(_0x925649===0x0||_0x925649===null)logger[_0x310561(0x185)](_0x310561(0x17b),_0x310561(0x173),_0x365c63),_0x5dc587();else{const _0x869d20={'exitCode':_0x925649,'duration':_0x365c63,'command':_0x310561(0x17e),'cwd':_0x1e1ae3};_0x1063af[_0x310561(0x18c)]()&&(_0x869d20[_0x310561(0x177)]=_0x1063af[_0x310561(0x18c)]()),logger[_0x310561(0x16e)](_0x310561(0x17b),_0x310561(0x179),_0x869d20),_0x131f8c(new Error(_0x310561(0x181)+_0x925649));}}),_0x59d599['on'](_0xe3a5f2(0x16e),_0x10ad31=>{const _0x4b3d09=_0xe3a5f2,_0x526158=Date[_0x4b3d09(0x182)]()-_0x4246e8,_0xd228b6={'error':_0x10ad31[_0x4b3d09(0x180)],'duration':_0x526158,'command':_0x4b3d09(0x17e),'cwd':_0x1e1ae3};_0x1063af[_0x4b3d09(0x18c)]()&&(_0xd228b6[_0x4b3d09(0x177)]=_0x1063af[_0x4b3d09(0x18c)]()),logger[_0x4b3d09(0x16e)](_0x4b3d09(0x17b),_0x4b3d09(0x174),_0xd228b6),_0x131f8c(_0x10ad31);});});}function a34_0x58b8(){const _0x32e755=['minVersion','success','inherit','SDK\x20版本低于推荐版本','write','cwd','PATH','16052gMQNEa','trim','134340HjOSWR','456204PGSSRc','5rlqIba','close','error','env','219828nTqVVM','version','toString','开发服务器启动成功','开发服务器启动出错','warn','51200lmQGGs','stderr','启动开发服务器','开发服务器启动失败','pipe','start','1776690gTBPxF','1152570BZastx','vite','info','message','vite\x20exited\x20with\x20code\x20','now','203lowdzC'];a34_0x58b8=function(){return _0x32e755;};return a34_0x58b8();}
1
+ (function(_0x35de44,_0x165bed){const _0x31fc0b=a36_0x290d,_0x411e74=_0x35de44();while(!![]){try{const _0x9aac8f=parseInt(_0x31fc0b(0x1ab))/0x1*(parseInt(_0x31fc0b(0x1b6))/0x2)+-parseInt(_0x31fc0b(0x1cd))/0x3+parseInt(_0x31fc0b(0x1ce))/0x4*(parseInt(_0x31fc0b(0x1c4))/0x5)+parseInt(_0x31fc0b(0x1af))/0x6+parseInt(_0x31fc0b(0x1cc))/0x7+-parseInt(_0x31fc0b(0x1b7))/0x8*(-parseInt(_0x31fc0b(0x1c5))/0x9)+parseInt(_0x31fc0b(0x1bc))/0xa*(-parseInt(_0x31fc0b(0x1cf))/0xb);if(_0x9aac8f===_0x165bed)break;else _0x411e74['push'](_0x411e74['shift']());}catch(_0x2369ae){_0x411e74['push'](_0x411e74['shift']());}}}(a36_0x2bc0,0xcdf68));function a36_0x2bc0(){const _0x469c24=['minVersion','trim','message','5hUtyNG','234288BvDKzt','needsUpgrade','data','now','start','开发服务器启动出错','info','216321FZAOdc','3314187ZkKuZM','5034248erjDiH','10187188cVzeeE','422439OcXnea','cwd','vite\x20exited\x20with\x20code\x20','vite','1040046aQiUOP','version','inherit','SDK\x20版本低于推荐版本','.bin','error','success','2DueFJO','304FYLwst','PATH','warn','pipe','stderr','10qwOsRh','close','开发服务器启动成功','write','env'];a36_0x2bc0=function(){return _0x469c24;};return a36_0x2bc0();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a36_0x290d(_0x436c36,_0x58bd54){_0x436c36=_0x436c36-0x1ab;const _0x2bc09b=a36_0x2bc0();let _0x290dcc=_0x2bc09b[_0x436c36];return _0x290dcc;}import{checkSdkVersion,printSdkUpgradeWarning}from'../utils/check-sdk-version.js';export function runStart(_0x348151){return new Promise((_0x588fcf,_0x587175)=>{const _0x587f56=a36_0x290d,_0x527364=Date['now'](),_0x430048=_0x348151||process[_0x587f56(0x1ac)](),_0x2a7064=checkSdkVersion(_0x430048);_0x2a7064[_0x587f56(0x1c6)]&&(printSdkUpgradeWarning(_0x2a7064),logger[_0x587f56(0x1b9)](_0x587f56(0x1c9),_0x587f56(0x1b2),{'currentVersion':_0x2a7064[_0x587f56(0x1b0)],'minVersion':_0x2a7064[_0x587f56(0x1c1)]}));logger[_0x587f56(0x1cb)](_0x587f56(0x1c9),'启动开发服务器',{'command':_0x587f56(0x1ae),'cwd':_0x430048});let _0x2c9b39='';const _0x5b32a8=spawn(_0x587f56(0x1ae),{'stdio':['inherit',_0x587f56(0x1b1),_0x587f56(0x1ba)],'shell':!![],'cwd':_0x430048,'env':{...process['env'],'PATH':''+join(_0x430048,'node_modules',_0x587f56(0x1b3))+delimiter+process[_0x587f56(0x1c0)][_0x587f56(0x1b8)]}});_0x5b32a8[_0x587f56(0x1bb)]?.['on'](_0x587f56(0x1c7),_0x5d9edc=>{const _0x5373f3=_0x587f56,_0x17ba2a=_0x5d9edc['toString']();_0x2c9b39+=_0x17ba2a,process['stderr'][_0x5373f3(0x1bf)](_0x17ba2a);}),_0x5b32a8['on'](_0x587f56(0x1bd),_0x2d1e02=>{const _0x1f28dc=_0x587f56,_0x88a9b5=Date[_0x1f28dc(0x1c8)]()-_0x527364;if(_0x2d1e02===0x0||_0x2d1e02===null)logger[_0x1f28dc(0x1b5)](_0x1f28dc(0x1c9),_0x1f28dc(0x1be),_0x88a9b5),_0x588fcf();else{const _0x16750f={'exitCode':_0x2d1e02,'duration':_0x88a9b5,'command':_0x1f28dc(0x1ae),'cwd':_0x430048};_0x2c9b39[_0x1f28dc(0x1c2)]()&&(_0x16750f[_0x1f28dc(0x1bb)]=_0x2c9b39[_0x1f28dc(0x1c2)]()),logger[_0x1f28dc(0x1b4)]('start','开发服务器启动失败',_0x16750f),_0x587175(new Error(_0x1f28dc(0x1ad)+_0x2d1e02));}}),_0x5b32a8['on'](_0x587f56(0x1b4),_0xaecafe=>{const _0x49e727=_0x587f56,_0x585528=Date['now']()-_0x527364,_0x47b26b={'error':_0xaecafe[_0x49e727(0x1c3)],'duration':_0x585528,'command':_0x49e727(0x1ae),'cwd':_0x430048};_0x2c9b39['trim']()&&(_0x47b26b['stderr']=_0x2c9b39['trim']()),logger[_0x49e727(0x1b4)]('start',_0x49e727(0x1ca),_0x47b26b),_0x587175(_0xaecafe);});});}
@@ -1 +1 @@
1
- (function(_0x57a9fd,_0x301bc8){const _0x1f4e94=a35_0x409b,_0x465d4e=_0x57a9fd();while(!![]){try{const _0x35d63f=parseInt(_0x1f4e94(0xa2))/0x1*(parseInt(_0x1f4e94(0xa5))/0x2)+parseInt(_0x1f4e94(0xa6))/0x3*(-parseInt(_0x1f4e94(0xb5))/0x4)+-parseInt(_0x1f4e94(0xa0))/0x5+-parseInt(_0x1f4e94(0xa9))/0x6+-parseInt(_0x1f4e94(0xb3))/0x7*(parseInt(_0x1f4e94(0xb7))/0x8)+parseInt(_0x1f4e94(0xa7))/0x9*(-parseInt(_0x1f4e94(0xb9))/0xa)+parseInt(_0x1f4e94(0xae))/0xb*(parseInt(_0x1f4e94(0xb8))/0xc);if(_0x35d63f===_0x301bc8)break;else _0x465d4e['push'](_0x465d4e['shift']());}catch(_0x3b303c){_0x465d4e['push'](_0x465d4e['shift']());}}}(a35_0x5154,0x8892c));import{jsxs as a35_0x238309,jsx as a35_0x37a20c}from'react/jsx-runtime';function a35_0x409b(_0x41d7ff,_0x3c3264){_0x41d7ff=_0x41d7ff-0xa0;const _0x5154c6=a35_0x5154();let _0x409bd2=_0x5154c6[_0x41d7ff];return _0x409bd2;}import{Box,Text}from'ink';function a35_0x5154(){const _0x37fae6=['command','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','列出所有配置项','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','133sxkils','gray','1469708VBKAXu','获取配置项','16984chAXFf','4428NEiRZV','2570jlGxeJ','3369895AmhISb','\x20*\x20配置示例:','860290cfgkNv','map','\x20\x20\x20\x20','2kSqLia','9AVTAJb','27315CqNKuv','设置环境\x20(online/daily)','3689796FYApoJ','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','86768ZcDdhr'];a35_0x5154=function(){return _0x37fae6;};return a35_0x5154();}export function ConfigHelp(){const _0x278471=a35_0x409b,_0x493ae1=[{'command':_0x278471(0xad),'description':'设置配置项'},{'command':_0x278471(0xb2),'description':_0x278471(0xb6)},{'command':_0x278471(0xb0),'description':_0x278471(0xb1)}],_0x2b4a41=[{'command':_0x278471(0xab),'description':'配置当前项目的\x20App\x20Code'},{'command':_0x278471(0xaa),'description':_0x278471(0xa8)}];return a35_0x238309(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a35_0x37a20c(Box,{'marginBottom':0x1,'children':a35_0x238309(Text,{'color':_0x278471(0xb4),'children':['\x20!','\x20\x20','无效的命令,可用命令如下:']})}),_0x493ae1[_0x278471(0xa3)](_0x1a52d9=>a35_0x238309(Box,{'children':[a35_0x238309(Text,{'children':[_0x278471(0xa4),_0x1a52d9[_0x278471(0xaf)]]}),a35_0x37a20c(Text,{'color':_0x278471(0xb4),'children':_0x1a52d9['description']})]},_0x1a52d9[_0x278471(0xaf)])),a35_0x37a20c(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a35_0x37a20c(Text,{'color':_0x278471(0xb4),'children':_0x278471(0xa1)})}),_0x2b4a41[_0x278471(0xa3)](_0x1df669=>a35_0x238309(Box,{'children':[a35_0x238309(Text,{'children':['\x20\x20\x20\x20',_0x1df669[_0x278471(0xaf)]]}),a35_0x37a20c(Text,{'color':_0x278471(0xb4),'children':_0x1df669[_0x278471(0xac)]})]},_0x1df669[_0x278471(0xaf)]))]});}
1
+ function a37_0x3c24(_0x36a93a,_0x502de0){_0x36a93a=_0x36a93a-0x1b3;const _0x2570e6=a37_0x2570();let _0x3c2424=_0x2570e6[_0x36a93a];return _0x3c2424;}(function(_0x25614a,_0x318a21){const _0x57fd36=a37_0x3c24,_0x2c545e=_0x25614a();while(!![]){try{const _0x27cc02=parseInt(_0x57fd36(0x1c5))/0x1*(-parseInt(_0x57fd36(0x1c1))/0x2)+-parseInt(_0x57fd36(0x1b6))/0x3*(-parseInt(_0x57fd36(0x1c9))/0x4)+-parseInt(_0x57fd36(0x1c3))/0x5+-parseInt(_0x57fd36(0x1b4))/0x6*(parseInt(_0x57fd36(0x1ca))/0x7)+parseInt(_0x57fd36(0x1b3))/0x8*(-parseInt(_0x57fd36(0x1bc))/0x9)+-parseInt(_0x57fd36(0x1c7))/0xa*(-parseInt(_0x57fd36(0x1cb))/0xb)+parseInt(_0x57fd36(0x1ba))/0xc;if(_0x27cc02===_0x318a21)break;else _0x2c545e['push'](_0x2c545e['shift']());}catch(_0x4b9a27){_0x2c545e['push'](_0x2c545e['shift']());}}}(a37_0x2570,0xd6d48));function a37_0x2570(){const _0x1c8b9b=['lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','3735kyOBWu','description','\x20*\x20配置示例:','gray','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','6YmmfRI','配置当前项目的\x20App\x20Code','4341555HgphjC','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','243781ihyIWY','\x20\x20\x20\x20','54690OChfhq','获取配置项','4EhPOWv','246778sOzEcU','638nCRweU','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','22472lOotau','150WqrsQE','command','3807417SDsXYz','列出所有配置项','column','map','35284104MMfsdU'];a37_0x2570=function(){return _0x1c8b9b;};return a37_0x2570();}import{jsxs as a37_0x3823cc,jsx as a37_0x3099e1}from'react/jsx-runtime';import{Box,Text}from'ink';export function ConfigHelp(){const _0x3d75f1=a37_0x3c24,_0x1ef0e9=[{'command':_0x3d75f1(0x1c4),'description':'设置配置项'},{'command':'lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x3d75f1(0x1c8)},{'command':_0x3d75f1(0x1cc),'description':_0x3d75f1(0x1b7)}],_0xacb1c2=[{'command':_0x3d75f1(0x1bb),'description':_0x3d75f1(0x1c2)},{'command':_0x3d75f1(0x1c0),'description':'设置环境\x20(online/daily)'}];return a37_0x3823cc(Box,{'flexDirection':_0x3d75f1(0x1b8),'marginTop':0x1,'marginBottom':0x1,'children':[a37_0x3099e1(Box,{'marginBottom':0x1,'children':a37_0x3823cc(Text,{'color':_0x3d75f1(0x1bf),'children':['\x20!','\x20\x20','无效的命令,可用命令如下:']})}),_0x1ef0e9[_0x3d75f1(0x1b9)](_0x2eb245=>a37_0x3823cc(Box,{'children':[a37_0x3823cc(Text,{'children':[_0x3d75f1(0x1c6),_0x2eb245[_0x3d75f1(0x1b5)]]}),a37_0x3099e1(Text,{'color':_0x3d75f1(0x1bf),'children':_0x2eb245[_0x3d75f1(0x1bd)]})]},_0x2eb245[_0x3d75f1(0x1b5)])),a37_0x3099e1(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a37_0x3099e1(Text,{'color':_0x3d75f1(0x1bf),'children':_0x3d75f1(0x1be)})}),_0xacb1c2[_0x3d75f1(0x1b9)](_0xef4c59=>a37_0x3823cc(Box,{'children':[a37_0x3823cc(Text,{'children':[_0x3d75f1(0x1c6),_0xef4c59[_0x3d75f1(0x1b5)]]}),a37_0x3099e1(Text,{'color':_0x3d75f1(0x1bf),'children':_0xef4c59[_0x3d75f1(0x1bd)]})]},_0xef4c59[_0x3d75f1(0x1b5)]))]});}
@@ -1 +1 @@
1
- function a36_0x45df(){const _0x29cb04=['parse','stringify','67388AIejbT','red','config','input','length','utf8','message','log','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','dirname','help','unlinkSync','60YotCJM','3575142gOuzLj','mkdirSync','get','133oUELjF','56400pECUqe','undefined','168352zKbtnw','flags','.tmp','includes','183akJdDw','962883dbslpL','app','appcode','online','1837910pMseNV','error','env','未提供配置值','953622yYWJrT','--help'];a36_0x45df=function(){return _0x29cb04;};return a36_0x45df();}function a36_0x2ec2(_0x162d86,_0xffdfde){_0x162d86=_0x162d86-0x76;const _0x45df58=a36_0x45df();let _0x2ec2d7=_0x45df58[_0x162d86];return _0x2ec2d7;}(function(_0x56fe20,_0x4486bb){const _0x2f0bfb=a36_0x2ec2,_0x582e6d=_0x56fe20();while(!![]){try{const _0x170a6a=parseInt(_0x2f0bfb(0x77))/0x1+-parseInt(_0x2f0bfb(0x86))/0x2+parseInt(_0x2f0bfb(0x7d))/0x3*(parseInt(_0x2f0bfb(0x8a))/0x4)+parseInt(_0x2f0bfb(0x82))/0x5+parseInt(_0x2f0bfb(0x97))/0x6+-parseInt(_0x2f0bfb(0x76))/0x7*(parseInt(_0x2f0bfb(0x79))/0x8)+parseInt(_0x2f0bfb(0x7e))/0x9*(-parseInt(_0x2f0bfb(0x96))/0xa);if(_0x170a6a===_0x4486bb)break;else _0x582e6d['push'](_0x582e6d['shift']());}catch(_0x82cc1e){_0x582e6d['push'](_0x582e6d['shift']());}}}(a36_0x45df,0x81229));import{jsx as a36_0x2a5367,jsxs as a36_0x199041}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a36_0x271b3d from'node:fs';import a36_0x42f66a from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';export function Config(_0x26be6e){const _0x5ac656=a36_0x2ec2,{cli:_0x1d8bc7}=_0x26be6e,_0x18ac51=_0x1d8bc7[_0x5ac656(0x8d)][0x1],_0xd86b87=_0x1d8bc7[_0x5ac656(0x8d)][0x2],_0x170815=['set',_0x5ac656(0x99)][_0x5ac656(0x7c)](_0x18ac51||''),_0x5138ac=_0x1d8bc7[_0x5ac656(0x8d)][_0x5ac656(0x8e)]>=0x3;if(_0xd86b87===_0x5ac656(0x87)||_0x1d8bc7[_0x5ac656(0x7a)][_0x5ac656(0x94)])return a36_0x2a5367(ConfigHelp,{});const _0x46ac08=readConfig();if(_0x18ac51==='set'){if(_0xd86b87){const _0x5b28b5=_0x1d8bc7[_0x5ac656(0x8d)][0x3];if(typeof _0x5b28b5!==_0x5ac656(0x78)){if(_0xd86b87==='env'&&![_0x5ac656(0x81),'daily'][_0x5ac656(0x7c)](_0x5b28b5))return a36_0x2a5367(Box,{'children':a36_0x2a5367(Text,{'color':_0x5ac656(0x8b),'children':_0x5ac656(0x92)})});const _0x130235=isInProject(),_0x3a12c0=_0x130235?projectConfigPath:globalConfigPath;let _0x34af44={};try{if(existsSync(_0x3a12c0)){const _0x17db0c=readFileSync(_0x3a12c0,{'encoding':'utf8'});_0x17db0c&&(_0x34af44=JSON[_0x5ac656(0x88)](_0x17db0c));}}catch(_0xd554ca){}if(typeof _0x5b28b5!=='string'||_0x5b28b5[_0x5ac656(0x8e)]>0x1f4)return a36_0x2a5367(Box,{'children':a36_0x2a5367(Text,{'color':_0x5ac656(0x8b),'children':'配置值无效或过长'})});let _0x51d7c6=_0xd86b87;_0xd86b87===_0x5ac656(0x7f)&&(_0x51d7c6=_0x5ac656(0x80),delete _0x34af44['app']);_0xd86b87===_0x5ac656(0x80)&&delete _0x34af44['app'];_0x34af44[_0x51d7c6]=_0x5b28b5;try{const _0x65679=a36_0x42f66a[_0x5ac656(0x93)](_0x3a12c0);!existsSync(_0x65679)&&a36_0x271b3d[_0x5ac656(0x98)](_0x65679,{'recursive':!![]});const _0xc355cc=_0x3a12c0+_0x5ac656(0x7b);writeFileSync(_0xc355cc,JSON[_0x5ac656(0x89)](_0x34af44,null,0x2),{'encoding':_0x5ac656(0x8f),'mode':0x180}),a36_0x271b3d['renameSync'](_0xc355cc,_0x3a12c0);if(_0xd86b87===_0x5ac656(0x84)){const _0x1424c8=_0x130235?'项目':'全局';console['log']('✓\x20'+_0x1424c8+'环境配置已设置为:\x20'+_0x5b28b5);}}catch(_0x5cd04c){const _0x30fb7e=_0x3a12c0+_0x5ac656(0x7b);try{existsSync(_0x30fb7e)&&a36_0x271b3d[_0x5ac656(0x95)](_0x30fb7e);}catch(_0x4ed257){}return logger[_0x5ac656(0x83)](_0x5ac656(0x8c),'保存配置失败',{'error':_0x5cd04c instanceof Error?_0x5cd04c['message']:String(_0x5cd04c),'configKey':_0xd86b87,'configValue':_0x5b28b5,'targetConfigPath':_0x3a12c0}),a36_0x2a5367(Box,{'children':a36_0x199041(Text,{'color':_0x5ac656(0x8b),'children':['保存配置失败:\x20',_0x5cd04c instanceof Error?_0x5cd04c[_0x5ac656(0x90)]:String(_0x5cd04c)]})});}return null;}return a36_0x2a5367(Box,{'children':a36_0x2a5367(Text,{'color':_0x5ac656(0x8b),'children':_0x5ac656(0x85)})});}}if(_0x18ac51===_0x5ac656(0x99)){if(_0xd86b87){let _0x117bf4=_0xd86b87;return _0xd86b87===_0x5ac656(0x7f)&&(_0x117bf4=_0x5ac656(0x80)),console[_0x5ac656(0x91)](_0x46ac08[_0x117bf4]||_0x5ac656(0x78)),null;}return null;}if(_0x18ac51==='list')return console[_0x5ac656(0x91)](JSON['stringify'](_0x46ac08,null,0x2)),null;if(!_0x170815||!_0x5138ac)return a36_0x2a5367(ConfigHelp,{});return null;}
1
+ function a38_0x4e09(){const _0x481422=['3650UDsUOB','appcode','utf8','input','环境配置已设置为:\x20','length','dirname','4347510DQnQgh','1548780iFnctt','70McHFDM','6IXfQQS','3toSGJX','list','get','parse','stringify','undefined','.tmp','39018tRhZyC','1AsoGui','set','8359uVzWjy','保存配置失败','includes','配置值无效或过长','log','flags','renameSync','mkdirSync','red','23705UVrKjr','unlinkSync','396FkUbaD','--help','env','15048sEYrbp','help','保存配置失败:\x20','config','3704188SiHMMs','message','app','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','753224GcHHeo'];a38_0x4e09=function(){return _0x481422;};return a38_0x4e09();}(function(_0x242968,_0x2e1cb7){const _0x2a1717=a38_0x582b,_0x1e29ad=_0x242968();while(!![]){try{const _0x182f0b=parseInt(_0x2a1717(0x90))/0x1*(-parseInt(_0x2a1717(0x85))/0x2)+parseInt(_0x2a1717(0x88))/0x3*(-parseInt(_0x2a1717(0x78))/0x4)+-parseInt(_0x2a1717(0x84))/0x5*(parseInt(_0x2a1717(0x87))/0x6)+parseInt(_0x2a1717(0x86))/0x7*(parseInt(_0x2a1717(0x7c))/0x8)+parseInt(_0x2a1717(0x74))/0x9*(parseInt(_0x2a1717(0x7d))/0xa)+parseInt(_0x2a1717(0x6f))/0xb*(parseInt(_0x2a1717(0x71))/0xc)+parseInt(_0x2a1717(0x92))/0xd*(parseInt(_0x2a1717(0x8f))/0xe);if(_0x182f0b===_0x2e1cb7)break;else _0x1e29ad['push'](_0x1e29ad['shift']());}catch(_0x3fb967){_0x1e29ad['push'](_0x1e29ad['shift']());}}}(a38_0x4e09,0xce4e3));import{jsx as a38_0x43e4a7,jsxs as a38_0x5cccc6}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a38_0x23ed31 from'node:fs';import a38_0xba4440 from'node:path';function a38_0x582b(_0x20dd3c,_0x2b7048){_0x20dd3c=_0x20dd3c-0x68;const _0x4e09b9=a38_0x4e09();let _0x582bf6=_0x4e09b9[_0x20dd3c];return _0x582bf6;}import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';import{logger}from'../utils/logger.js';export function Config(_0xb90611){const _0x5aa29d=a38_0x582b,{cli:_0x59ffba}=_0xb90611,_0x9c7866=_0x59ffba['input'][0x1],_0x28f1e4=_0x59ffba[_0x5aa29d(0x80)][0x2],_0x3585e2=['set',_0x5aa29d(0x8a)][_0x5aa29d(0x68)](_0x9c7866||''),_0x19fc23=_0x59ffba[_0x5aa29d(0x80)]['length']>=0x3;if(_0x28f1e4===_0x5aa29d(0x72)||_0x59ffba[_0x5aa29d(0x6b)][_0x5aa29d(0x75)])return a38_0x43e4a7(ConfigHelp,{});const _0x277678=readConfig();if(_0x9c7866===_0x5aa29d(0x91)){if(_0x28f1e4){const _0x10d782=_0x59ffba['input'][0x3];if(typeof _0x10d782!==_0x5aa29d(0x8d)){if(_0x28f1e4===_0x5aa29d(0x73)&&!['online','daily'][_0x5aa29d(0x68)](_0x10d782))return a38_0x43e4a7(Box,{'children':a38_0x43e4a7(Text,{'color':'red','children':_0x5aa29d(0x7b)})});const _0x3c128c=isInProject(),_0x589330=_0x3c128c?projectConfigPath:globalConfigPath;let _0x3aef79={};try{if(existsSync(_0x589330)){const _0x5d18f7=readFileSync(_0x589330,{'encoding':_0x5aa29d(0x7f)});_0x5d18f7&&(_0x3aef79=JSON[_0x5aa29d(0x8b)](_0x5d18f7));}}catch(_0x36d07b){}if(typeof _0x10d782!=='string'||_0x10d782[_0x5aa29d(0x82)]>0x1f4)return a38_0x43e4a7(Box,{'children':a38_0x43e4a7(Text,{'color':_0x5aa29d(0x6e),'children':_0x5aa29d(0x69)})});let _0x408ad8=_0x28f1e4;_0x28f1e4===_0x5aa29d(0x7a)&&(_0x408ad8=_0x5aa29d(0x7e),delete _0x3aef79[_0x5aa29d(0x7a)]);_0x28f1e4===_0x5aa29d(0x7e)&&delete _0x3aef79[_0x5aa29d(0x7a)];_0x3aef79[_0x408ad8]=_0x10d782;try{const _0x2133ba=a38_0xba4440[_0x5aa29d(0x83)](_0x589330);!existsSync(_0x2133ba)&&a38_0x23ed31[_0x5aa29d(0x6d)](_0x2133ba,{'recursive':!![]});const _0x8cdc48=_0x589330+_0x5aa29d(0x8e);writeFileSync(_0x8cdc48,JSON[_0x5aa29d(0x8c)](_0x3aef79,null,0x2),{'encoding':_0x5aa29d(0x7f),'mode':0x180}),a38_0x23ed31[_0x5aa29d(0x6c)](_0x8cdc48,_0x589330);if(_0x28f1e4===_0x5aa29d(0x73)){const _0x1ae830=_0x3c128c?'项目':'全局';console[_0x5aa29d(0x6a)]('✓\x20'+_0x1ae830+_0x5aa29d(0x81)+_0x10d782);}}catch(_0x5d147e){const _0xfee8f5=_0x589330+_0x5aa29d(0x8e);try{existsSync(_0xfee8f5)&&a38_0x23ed31[_0x5aa29d(0x70)](_0xfee8f5);}catch(_0x15ac68){}return logger['error'](_0x5aa29d(0x77),_0x5aa29d(0x93),{'error':_0x5d147e instanceof Error?_0x5d147e['message']:String(_0x5d147e),'configKey':_0x28f1e4,'configValue':_0x10d782,'targetConfigPath':_0x589330}),a38_0x43e4a7(Box,{'children':a38_0x5cccc6(Text,{'color':_0x5aa29d(0x6e),'children':[_0x5aa29d(0x76),_0x5d147e instanceof Error?_0x5d147e[_0x5aa29d(0x79)]:String(_0x5d147e)]})});}return null;}return a38_0x43e4a7(Box,{'children':a38_0x43e4a7(Text,{'color':_0x5aa29d(0x6e),'children':'未提供配置值'})});}}if(_0x9c7866===_0x5aa29d(0x8a)){if(_0x28f1e4){let _0x4746ba=_0x28f1e4;return _0x28f1e4===_0x5aa29d(0x7a)&&(_0x4746ba=_0x5aa29d(0x7e)),console[_0x5aa29d(0x6a)](_0x277678[_0x4746ba]||_0x5aa29d(0x8d)),null;}return null;}if(_0x9c7866===_0x5aa29d(0x89))return console[_0x5aa29d(0x6a)](JSON[_0x5aa29d(0x8c)](_0x277678,null,0x2)),null;if(!_0x3585e2||!_0x19fc23)return a38_0x43e4a7(ConfigHelp,{});return null;}
@@ -1 +1 @@
1
- const a37_0x301bd4=a37_0x57bc;(function(_0x386ec8,_0x35e2db){const _0x5ed620=a37_0x57bc,_0x468a19=_0x386ec8();while(!![]){try{const _0x326c8e=-parseInt(_0x5ed620(0xdd))/0x1+-parseInt(_0x5ed620(0xd0))/0x2*(-parseInt(_0x5ed620(0xda))/0x3)+-parseInt(_0x5ed620(0xce))/0x4+-parseInt(_0x5ed620(0xd4))/0x5*(-parseInt(_0x5ed620(0xdc))/0x6)+parseInt(_0x5ed620(0xdb))/0x7+parseInt(_0x5ed620(0xd7))/0x8*(parseInt(_0x5ed620(0xd8))/0x9)+parseInt(_0x5ed620(0xcf))/0xa*(-parseInt(_0x5ed620(0xd6))/0xb);if(_0x326c8e===_0x35e2db)break;else _0x468a19['push'](_0x468a19['shift']());}catch(_0x562b21){_0x468a19['push'](_0x468a19['shift']());}}}(a37_0x3055,0xbdd87));import{getEnv}from'./env.js';function a37_0x57bc(_0xa3e13f,_0x13c287){_0xa3e13f=_0xa3e13f-0xce;const _0x30550f=a37_0x3055();let _0x57bc98=_0x30550f[_0xa3e13f];return _0x57bc98;}export const getUserDomain=()=>getEnv()===a37_0x301bd4(0xd1)?a37_0x301bd4(0xd5):a37_0x301bd4(0xd9);export const getApiDomain=()=>getEnv()===a37_0x301bd4(0xd1)?a37_0x301bd4(0xd3):a37_0x301bd4(0xd2);function a37_0x3055(){const _0x246c46=['https://api.lovrabet.com','7349435riGMOp','https://user.lovrabet.com','1727YWkbUf','139784KPtNca','279ZxzgZX','https://user-daily.lovrabet.com','1002417ZpKhwS','6576787sDTxPp','6bspxdI','1441821bWSkrH','2611112bwYAgG','47590EMYGNN','4qaCEYg','online','https://daily-api.lovrabet.com'];a37_0x3055=function(){return _0x246c46;};return a37_0x3055();}
1
+ function a39_0x50f4(_0x2d672f,_0x1c4a04){_0x2d672f=_0x2d672f-0x1a9;const _0x30cf50=a39_0x30cf();let _0x50f424=_0x30cf50[_0x2d672f];return _0x50f424;}const a39_0x37df67=a39_0x50f4;function a39_0x30cf(){const _0x526657=['online','832845meUtqc','682648eTibJK','187dMXtfr','125ODYXYD','https://user-daily.lovrabet.com','469064kaQoLc','https://api.lovrabet.com','21YbiLzJ','4tjakKO','423uJXqcd','364BYhiuZ','788988WbYrCS','34422bJhTpi','https://user.lovrabet.com','15cvbOzB','313970mKWATc','149759GNIBuM'];a39_0x30cf=function(){return _0x526657;};return a39_0x30cf();}(function(_0x2abdd3,_0x54dcbe){const _0xafd509=a39_0x50f4,_0x152176=_0x2abdd3();while(!![]){try{const _0x380298=parseInt(_0xafd509(0x1b8))/0x1*(-parseInt(_0xafd509(0x1b0))/0x2)+-parseInt(_0xafd509(0x1b6))/0x3*(parseInt(_0xafd509(0x1ad))/0x4)+parseInt(_0xafd509(0x1ab))/0x5*(-parseInt(_0xafd509(0x1b4))/0x6)+parseInt(_0xafd509(0x1af))/0x7*(-parseInt(_0xafd509(0x1a9))/0x8)+-parseInt(_0xafd509(0x1b1))/0x9*(-parseInt(_0xafd509(0x1b7))/0xa)+parseInt(_0xafd509(0x1aa))/0xb*(-parseInt(_0xafd509(0x1b3))/0xc)+parseInt(_0xafd509(0x1ba))/0xd*(parseInt(_0xafd509(0x1b2))/0xe);if(_0x380298===_0x54dcbe)break;else _0x152176['push'](_0x152176['shift']());}catch(_0x42156f){_0x152176['push'](_0x152176['shift']());}}}(a39_0x30cf,0xb442e));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a39_0x37df67(0x1b9)?a39_0x37df67(0x1b5):a39_0x37df67(0x1ac);export const getApiDomain=()=>getEnv()===a39_0x37df67(0x1b9)?a39_0x37df67(0x1ae):'https://daily-api.lovrabet.com';
@@ -1 +1 @@
1
- const a38_0x251d50=a38_0x3281;(function(_0x2a4833,_0x39ba9b){const _0x29adc1=a38_0x3281,_0x38599b=_0x2a4833();while(!![]){try{const _0x57ddd2=parseInt(_0x29adc1(0x1fa))/0x1+parseInt(_0x29adc1(0x1ed))/0x2+parseInt(_0x29adc1(0x1f2))/0x3*(parseInt(_0x29adc1(0x1f9))/0x4)+-parseInt(_0x29adc1(0x1f7))/0x5*(-parseInt(_0x29adc1(0x1ef))/0x6)+parseInt(_0x29adc1(0x1f8))/0x7*(-parseInt(_0x29adc1(0x1f4))/0x8)+-parseInt(_0x29adc1(0x1f5))/0x9+-parseInt(_0x29adc1(0x1f6))/0xa*(parseInt(_0x29adc1(0x1f3))/0xb);if(_0x57ddd2===_0x39ba9b)break;else _0x38599b['push'](_0x38599b['shift']());}catch(_0x4d6551){_0x38599b['push'](_0x38599b['shift']());}}}(a38_0x4443,0x197e4));let env=process[a38_0x251d50(0x1f0)][a38_0x251d50(0x1f1)]||a38_0x251d50(0x1ee);export function getEnv(){return env;}function a38_0x3281(_0x246aed,_0x350638){_0x246aed=_0x246aed-0x1ed;const _0x444303=a38_0x4443();let _0x328185=_0x444303[_0x246aed];return _0x328185;}function a38_0x4443(){const _0x42c588=['63GkDQhb','4tmLEDl','37205CiSuEp','273702WusCGh','online','10734BMgiYy','env','LOVRABET_ENV','421251MkzdBg','12518TJZsGq','28232lRhOWI','1801062dJjXmS','720tekAJt','290lXOEfS'];a38_0x4443=function(){return _0x42c588;};return a38_0x4443();}export function initEnv(_0x6d9cc5){env=_0x6d9cc5;}
1
+ const a40_0x4e4606=a40_0x1e2e;function a40_0x1ad6(){const _0x586ebc=['199365cdXSTQ','127443ECbWTz','8675220XlCezp','1906040asHUJz','44QgLymI','207966LcyQaA','161PrDEIw','5331970UdbEWs','2gppdgl','26339784oVgSER','11PeqVSm','9UhJqma','env'];a40_0x1ad6=function(){return _0x586ebc;};return a40_0x1ad6();}(function(_0x45ee39,_0x5cabb2){const _0xb4292e=a40_0x1e2e,_0x32ba12=_0x45ee39();while(!![]){try{const _0x35f41b=-parseInt(_0xb4292e(0xe6))/0x1*(-parseInt(_0xb4292e(0xe0))/0x2)+parseInt(_0xb4292e(0xe5))/0x3*(-parseInt(_0xb4292e(0xe9))/0x4)+-parseInt(_0xb4292e(0xdf))/0x5+parseInt(_0xb4292e(0xdd))/0x6*(-parseInt(_0xb4292e(0xde))/0x7)+-parseInt(_0xb4292e(0xe8))/0x8*(-parseInt(_0xb4292e(0xe3))/0x9)+parseInt(_0xb4292e(0xe7))/0xa+parseInt(_0xb4292e(0xe2))/0xb*(parseInt(_0xb4292e(0xe1))/0xc);if(_0x35f41b===_0x5cabb2)break;else _0x32ba12['push'](_0x32ba12['shift']());}catch(_0x286e32){_0x32ba12['push'](_0x32ba12['shift']());}}}(a40_0x1ad6,0xcb840));let env=process[a40_0x4e4606(0xe4)]['LOVRABET_ENV']||'online';function a40_0x1e2e(_0x253585,_0x5d42e3){_0x253585=_0x253585-0xdd;const _0x1ad608=a40_0x1ad6();let _0x1e2e82=_0x1ad608[_0x253585];return _0x1e2e82;}export function getEnv(){return env;}export function initEnv(_0x32ec3f){env=_0x32ec3f;}
@@ -1 +1 @@
1
- (function(_0x472108,_0x35edbe){const _0x2db40c=a39_0x44d9,_0x4115f1=_0x472108();while(!![]){try{const _0x2f5d50=-parseInt(_0x2db40c(0xb5))/0x1*(parseInt(_0x2db40c(0xd4))/0x2)+parseInt(_0x2db40c(0x9d))/0x3+-parseInt(_0x2db40c(0xa3))/0x4*(parseInt(_0x2db40c(0xc6))/0x5)+-parseInt(_0x2db40c(0xb3))/0x6*(parseInt(_0x2db40c(0xbd))/0x7)+-parseInt(_0x2db40c(0xa2))/0x8*(-parseInt(_0x2db40c(0xca))/0x9)+parseInt(_0x2db40c(0xa4))/0xa*(-parseInt(_0x2db40c(0xac))/0xb)+-parseInt(_0x2db40c(0xaf))/0xc*(-parseInt(_0x2db40c(0xb9))/0xd);if(_0x2f5d50===_0x35edbe)break;else _0x4115f1['push'](_0x4115f1['shift']());}catch(_0x2fb62e){_0x4115f1['push'](_0x4115f1['shift']());}}}(a39_0x5c52,0x8b0e1));import{jsx as a39_0x32d6a5,jsxs as a39_0x496abd,Fragment as a39_0x240090}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{readConfig}from'../utils/config.js';function a39_0x44d9(_0x472c9b,_0x2a22a7){_0x472c9b=_0x472c9b-0x94;const _0x5c5271=a39_0x5c52();let _0x44d93d=_0x5c5271[_0x472c9b];return _0x44d93d;}export function EnhancedGuidedCreate(_0x204e1d){const _0x1bbebd=a39_0x44d9,{onCreate:_0x5ae06b,env:_0x293e96}=_0x204e1d,[_0x5bb9ee,_0x27967c]=useState(_0x1bbebd(0xad)),[_0x3b580e,_0x31bad5]=useState(''),[_0x1ff132,_0x508c7d]=useState(''),[_0x36d0bb,_0x5213e1]=useState(''),[_0x4a521a,_0x56bce5]=useState(''),[_0x45f9ae,_0x167259]=useState([]),[_0x53e8f1,_0x21d57c]=useState(null),[_0x4843e9,_0x9fc1f2]=useState(![]),[_0x5d9e5c,_0x9b8f22]=useState(![]),[_0x5e6ee0,_0x44b827]=useState(![]),[_0x113598,_0x2af0fd]=useState(0x0),[_0x32df56,_0x62190a]=useState(0x0),_0x363360='my-app',_0x4a070b=readConfig(),_0xc43d5f=typeof _0x4a070b['env']===_0x1bbebd(0xa7)?_0x4a070b[_0x1bbebd(0xa6)]:undefined;function _0x558662(_0x17380c){const _0x2a393d=_0x1bbebd;if(_0x17380c['length']>0x32)return{'valid':![],'message':'项目名长度不能超过\x2050\x20个字符'};const _0x4106e1=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x17380c?.['trim']()&&!_0x4106e1[_0x2a393d(0xa9)](_0x17380c))return{'valid':![],'message':'项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_'};return{'valid':!![]};}function _0x4baed5(_0x34e146){const _0x263687=_0x1bbebd;if(!_0x34e146['trim']())return{'valid':!![]};if(_0x34e146[_0x263687(0xab)]>0x64)return{'valid':![],'message':_0x263687(0xae)};const _0x37508f=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x37508f[_0x263687(0xa9)](_0x34e146))return{'valid':![],'message':_0x263687(0x95)};return{'valid':!![]};}async function _0x3fc4f8(){_0x9fc1f2(!![]);try{const _0x58236c=await getIsSessionValid();return _0x21d57c(_0x58236c),_0x58236c;}catch(_0x26c4c0){return _0x21d57c(![]),![];}finally{_0x9fc1f2(![]);}}async function _0x21b1b2(){_0x9b8f22(!![]);try{const _0x3c9039=await authServer({'silent':!![]});return _0x21d57c(_0x3c9039),_0x3c9039;}catch(_0x10797e){return _0x21d57c(![]),![];}finally{_0x9b8f22(![]);}}return useInput(async(_0x3988f7,_0x524e43)=>{const _0x55a815=_0x1bbebd;if(_0x524e43[_0x55a815(0xd1)]||_0x524e43[_0x55a815(0xc3)]){if(_0x5bb9ee===_0x55a815(0xcb)){_0x2af0fd(_0xd1007c=>_0xd1007c===0x0?0x1:0x0);return;}if(_0x5bb9ee===_0x55a815(0xb1)){_0x62190a(_0xf1a298=>_0xf1a298===0x0?0x1:0x0);return;}}if(_0x524e43[_0x55a815(0x96)]){if(_0x5bb9ee===_0x55a815(0xad)){const _0x4c84a4=_0x36d0bb['trim']()||_0x363360;if(_0x4a521a)return;_0x31bad5(_0x4c84a4),_0x167259([{'step':'project-name','label':'项目名','value':_0x4c84a4}]),_0x5213e1(''),_0x56bce5(''),_0x27967c('app-code');return;}if(_0x5bb9ee==='app-code'){if(_0x4a521a)return;const _0x4cf2ef=_0x36d0bb['trim']();_0x508c7d(_0x4cf2ef),_0x167259(_0x1bd9b1=>[..._0x1bd9b1,{'step':_0x55a815(0x97),'label':'应用AppCode','value':_0x4cf2ef||_0x55a815(0xa0)}]),_0x5213e1(''),_0x56bce5('');if(_0x4cf2ef){_0x27967c(_0x55a815(0xbb));const _0xd49ae0=await _0x3fc4f8();_0xd49ae0?_0x27967c(_0x55a815(0xcb)):_0x27967c(_0x55a815(0xb1));}else{const _0x391a09=_0x293e96||_0xc43d5f||'online';_0x5ae06b({'projectName':_0x3b580e,'appCode':undefined,'pullApi':![],'env':_0x391a09}),_0x27967c('creating');}return;}if(_0x5bb9ee===_0x55a815(0xcb)){const _0x59472b=_0x113598===0x0;_0x44b827(_0x59472b),_0x167259(_0x528229=>[..._0x528229,{'step':_0x55a815(0xa8),'label':_0x55a815(0xbf),'value':_0x59472b?'是':'否'}]);const _0x539a45=_0x293e96||_0xc43d5f||_0x55a815(0xc9);_0x5ae06b({'projectName':_0x3b580e,'appCode':_0x1ff132,'pullApi':_0x59472b,'env':_0x539a45}),_0x27967c(_0x55a815(0xc1));return;}if(_0x5bb9ee===_0x55a815(0xb1)){const _0x47da93=_0x32df56===0x0;if(_0x47da93){_0x27967c(_0x55a815(0xd3));const _0x4046a9=await _0x21b1b2();if(_0x4046a9)_0x167259(_0x23167b=>[..._0x23167b,{'step':_0x55a815(0x94),'label':_0x55a815(0xc5),'value':_0x55a815(0xb7)}]),_0x27967c(_0x55a815(0xcb));else{_0x167259(_0x187ac5=>[..._0x187ac5,{'step':_0x55a815(0x94),'label':_0x55a815(0xc5),'value':_0x55a815(0xc7)}]);const _0x1dbf7b=_0x293e96||_0xc43d5f||_0x55a815(0xc9);_0x5ae06b({'projectName':_0x3b580e,'appCode':_0x1ff132,'pullApi':![],'env':_0x1dbf7b}),_0x27967c('creating');}}else{_0x167259(_0x78f8da=>[..._0x78f8da,{'step':'login','label':_0x55a815(0xc5),'value':_0x55a815(0xcc)}]);const _0x290cab=_0x293e96||_0xc43d5f||_0x55a815(0xc9);_0x5ae06b({'projectName':_0x3b580e,'appCode':_0x1ff132,'pullApi':![],'env':_0x290cab}),_0x27967c(_0x55a815(0xc1));}return;}}if(_0x524e43['backspace']||_0x524e43[_0x55a815(0xd0)]){_0x5213e1(_0x1ce194=>{const _0x19d5cb=_0x55a815,_0x41015f=_0x1ce194['slice'](0x0,-0x1);if(_0x5bb9ee===_0x19d5cb(0xad)){const {valid:_0x6381ad,message:_0x50c915}=_0x558662(_0x41015f);_0x56bce5(_0x6381ad?'':_0x50c915||_0x19d5cb(0x9e));}else{if(_0x5bb9ee===_0x19d5cb(0x97)){const {valid:_0x23037b,message:_0x4537e1}=_0x4baed5(_0x41015f);_0x56bce5(_0x23037b?'':_0x4537e1||_0x19d5cb(0xbe));}}return _0x41015f;});return;}if(['creating','login-check','login-process'][_0x55a815(0x98)](_0x5bb9ee))return;if(_0x5bb9ee===_0x55a815(0xcb)||_0x5bb9ee==='login-prompt')return;_0x5213e1(_0x377225=>{const _0x5b5008=_0x55a815,_0x533bc1=_0x377225+_0x3988f7;if(_0x5bb9ee==='project-name'){const {valid:_0x3e4421,message:_0xd50da4}=_0x558662(_0x533bc1);_0x56bce5(_0x3e4421?'':_0xd50da4||_0x5b5008(0x9e));}else{if(_0x5bb9ee===_0x5b5008(0x97)){const {valid:_0x2e3faa,message:_0xb6c8c6}=_0x4baed5(_0x533bc1);_0x56bce5(_0x2e3faa?'':_0xb6c8c6||_0x5b5008(0xbe));}}return _0x533bc1;});}),a39_0x496abd(Box,{'flexDirection':_0x1bbebd(0xce),'marginTop':0x1,'children':[_0x45f9ae['length']===0x0&&a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0x9a),'children':_0x1bbebd(0xb2)})}),_0x45f9ae[_0x1bbebd(0xb6)](_0x47801b=>a39_0x496abd(Box,{'children':[a39_0x496abd(Text,{'color':'green','children':['√\x20',_0x47801b[_0x1bbebd(0xc0)],':\x20']}),a39_0x32d6a5(Text,{'color':_0x1bbebd(0x9a),'children':_0x47801b[_0x1bbebd(0xaa)]})]},_0x47801b['step'])),_0x5bb9ee==='project-name'&&a39_0x496abd(a39_0x240090,{'children':[a39_0x496abd(Box,{'children':[a39_0x32d6a5(Text,{'children':_0x1bbebd(0xb4)}),_0x36d0bb?a39_0x32d6a5(Text,{'color':'green','children':_0x36d0bb}):a39_0x32d6a5(Text,{'color':'gray','children':_0x363360}),_0x4a521a&&a39_0x496abd(Text,{'color':_0x1bbebd(0xbc),'children':[_0x1bbebd(0x9f),_0x4a521a]})]}),!_0x4a521a&&!_0x36d0bb&&a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0xa1),'children':_0x1bbebd(0xb0)})})]}),_0x5bb9ee==='app-code'&&a39_0x496abd(a39_0x240090,{'children':[a39_0x496abd(Box,{'children':[a39_0x32d6a5(Text,{'children':'*\x20应用AppCode\x20'}),a39_0x32d6a5(Text,{'color':'gray','children':'[可选]:\x20'}),a39_0x32d6a5(Text,{'color':_0x1bbebd(0xc4),'children':_0x36d0bb}),_0x4a521a&&a39_0x496abd(Text,{'color':'red','children':['\x20←\x20',_0x4a521a]})]}),!_0x4a521a&&a39_0x32d6a5(Box,{'children':a39_0x496abd(Text,{'color':_0x1bbebd(0xa1),'children':['\x20',_0x1bbebd(0xa5)]})})]}),_0x5bb9ee===_0x1bbebd(0xbb)&&a39_0x496abd(Box,{'children':[a39_0x32d6a5(Text,{'children':'*\x20正在检查登录状态...'}),_0x4843e9&&a39_0x32d6a5(Text,{'color':'gray','children':_0x1bbebd(0xcf)})]}),_0x5bb9ee===_0x1bbebd(0xcb)&&a39_0x496abd(a39_0x240090,{'children':[a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0xc4),'children':'√\x20检测到有效登录状态'})}),a39_0x32d6a5(Box,{'marginTop':0x1,'children':a39_0x32d6a5(Text,{'children':_0x1bbebd(0xd2)})}),a39_0x496abd(Box,{'marginLeft':0x2,'children':[a39_0x496abd(Text,{'color':_0x113598===0x0?'green':_0x1bbebd(0xa1),'children':[_0x113598===0x0?'▶\x20':'\x20\x20',_0x1bbebd(0xba)]}),a39_0x32d6a5(Text,{'children':'\x20'}),a39_0x496abd(Text,{'color':_0x113598===0x1?_0x1bbebd(0xc4):_0x1bbebd(0xa1),'children':[_0x113598===0x1?'▶\x20':'\x20\x20','No']})]}),a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0xa1),'children':_0x1bbebd(0x9b)})}),a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0x9c),'children':_0x1bbebd(0x99)})})]}),_0x5bb9ee==='login-prompt'&&a39_0x496abd(a39_0x240090,{'children':[a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0x9c),'children':_0x1bbebd(0xc8)})}),a39_0x32d6a5(Box,{'marginTop':0x1,'children':a39_0x32d6a5(Text,{'children':'*\x20是否要先登录以便拉取\x20API\x20配置?'})}),a39_0x496abd(Box,{'marginLeft':0x2,'children':[a39_0x496abd(Text,{'color':_0x32df56===0x0?_0x1bbebd(0xc4):_0x1bbebd(0xa1),'children':[_0x32df56===0x0?'▶\x20':'\x20\x20',_0x1bbebd(0xba)]}),a39_0x32d6a5(Text,{'children':'\x20'}),a39_0x496abd(Text,{'color':_0x32df56===0x1?_0x1bbebd(0xc4):_0x1bbebd(0xa1),'children':[_0x32df56===0x1?'▶\x20':'\x20\x20','No']})]}),a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0xa1),'children':_0x1bbebd(0x9b)})}),a39_0x32d6a5(Box,{'children':a39_0x32d6a5(Text,{'color':_0x1bbebd(0x9c),'children':_0x1bbebd(0xb8)})})]}),_0x5bb9ee==='login-process'&&a39_0x496abd(Box,{'children':[a39_0x32d6a5(Text,{'children':_0x1bbebd(0xcd)}),_0x5d9e5c&&a39_0x32d6a5(Text,{'color':'gray','children':_0x1bbebd(0xc2)})]})]});}function a39_0x5c52(){const _0x469005=['cyan','\x20\x20使用\x20←→\x20选择,回车确认','yellow','3198747QSSpox','项目名不合法','\x20←\x20','未设置','gray','1696sWWpzc','4TKmOjQ','20sbTcJX','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)','env','string','api-pull','test','value','length','3855005YkeYGv','project-name','应用AppCode长度不能超过\x20100\x20个字符','305736shZuaV','\x20直接回车确认,或输入自定义名称','login-prompt','*\x20创建新项目','82074hmwbup','*\x20项目名:\x20','79873FbBGgO','map','已登录','\x20\x20推荐选择\x20Yes,登录后可自动拉取并配置\x20API\x20接口','403pMEDGE','Yes','login-check','red','329SxJpPr','应用AppCode不合法','拉取API配置','label','creating','\x20登录中...','rightArrow','green','登录状态','711265OririW','登录失败','!\x20未检测到有效登录','online','42381eUdlyy','confirm-api-pull','跳过登录','*\x20正在登录,请前往浏览器完成登录...','column','\x20检查中...','delete','leftArrow','*\x20是否要自动拉取\x20API\x20配置?','login-process','20IRIROk','login','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','return','app-code','includes','\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口'];a39_0x5c52=function(){return _0x469005;};return a39_0x5c52();}
1
+ const a41_0x15051a=a41_0x295a;(function(_0x2b5161,_0x45bd00){const _0x566a4f=a41_0x295a,_0x437488=_0x2b5161();while(!![]){try{const _0x5c3bb4=-parseInt(_0x566a4f(0x211))/0x1*(parseInt(_0x566a4f(0x1b7))/0x2)+parseInt(_0x566a4f(0x1bb))/0x3*(-parseInt(_0x566a4f(0x1ca))/0x4)+parseInt(_0x566a4f(0x1e8))/0x5*(parseInt(_0x566a4f(0x20c))/0x6)+-parseInt(_0x566a4f(0x1e2))/0x7*(-parseInt(_0x566a4f(0x1d6))/0x8)+-parseInt(_0x566a4f(0x21b))/0x9*(-parseInt(_0x566a4f(0x1e0))/0xa)+parseInt(_0x566a4f(0x1de))/0xb+-parseInt(_0x566a4f(0x1c6))/0xc;if(_0x5c3bb4===_0x45bd00)break;else _0x437488['push'](_0x437488['shift']());}catch(_0x36e9a9){_0x437488['push'](_0x437488['shift']());}}}(a41_0x24b8,0x31807));import{jsx as a41_0x4492c3,jsxs as a41_0x198c89,Fragment as a41_0x3e123d}from'react/jsx-runtime';import{useState}from'react';import{Text,Box,useInput}from'ink';import{existsSync}from'node:fs';function a41_0x24b8(){const _0x3d4aa2=['\x20+MCP','has','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','return','登录失败','from','748AXgVqX','[✓]','项目名长度不能超过\x2050\x20个字符','[\x20]','9qSTtuU','confirm-api-pull','lovrabet-setup','Cursor','description','!\x20未检测到有效登录','请至少选择一个\x20IDE','*\x20正在登录,请前往浏览器完成登录...','length','add','map','1144632HqnfZi','windsurf','test','跳过登录','413360WtWLMk','rightArrow','目录\x20\x22','backspace','项目名不合法','cursor','yellow','name','green','codebuddy','拉取API配置','includes','4264ZgPYGK','qoder','Antigravity\x20IDE\x20(.agent/skills/)','codex','选择要配置的\x20IDE:','*\x20应用AppCode\x20','其他\x20(通用模板)','*\x20正在检查登录状态...','2090869wQaJlO','value','281150NXFpWY','Yes','4291gzNcIh','claude','未设置','\x22\x20已存在','OpenCode','MCP\x20和\x20Skill','8420thzCGa','\x20\x20使用\x20←→\x20选择,回车确认','\x20登录中...','Windsurf\x20IDE\x20(.windsurf/workflows/)','login-prompt','CodeBuddy\x20IDE\x20(.codebuddy/skills/)','*\x20是否配置\x20Lovrabet\x20MCP\x20和\x20Skill?','\x20直接回车确认,或输入自定义名称','slice','string','Claude\x20Code\x20(.claude/skills/\x20+\x20MCP\x20服务器)','lovrabet-setup-selection','red','delete','Codex','login-check','filter','*\x20是否要先登录以便拉取\x20API\x20配置?','login-process','*\x20正在创建项目...','white','column','*\x20项目名:\x20','label','online','通用模板\x20(.agent/skills/)\x20-\x20兜底方案','api-pull','env','leftArrow','creating','login','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','cwd','gray','blue','downArrow','462kkCRFn','step','trim','Qoder','*\x20是否要自动拉取\x20API\x20配置?','779FnNKKU','project-name','my-app','Trae','\x20←\x20','OpenCode\x20IDE\x20(.opencode/skills/)','cyan','登录状态','*\x20创建新项目','trae','81uvFsnb','\x22\x20已存在,请使用其他名称','Codex\x20IDE\x20(.codex/skills/)','\x20个\x20IDE','app-code','应用AppCode不合法'];a41_0x24b8=function(){return _0x3d4aa2;};return a41_0x24b8();}import a41_0x129496 from'node:path';import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a41_0x295a(_0x97a014,_0x2f48ac){_0x97a014=_0x97a014-0x1b2;const _0x24b847=a41_0x24b8();let _0x295a25=_0x24b847[_0x97a014];return _0x295a25;}import{readConfig}from'../utils/config.js';const IDE_CONFIGS={'cursor':{'name':a41_0x15051a(0x1be),'description':'Cursor\x20IDE\x20(.cursorrules\x20+\x20MCP\x20服务器)'},'windsurf':{'name':'Windsurf','description':a41_0x15051a(0x1eb)},'claude':{'name':'Claude\x20Code','description':a41_0x15051a(0x1f2)},'codex':{'name':a41_0x15051a(0x1f6),'description':a41_0x15051a(0x21d)},'opencode':{'name':a41_0x15051a(0x1e6),'description':a41_0x15051a(0x216)},'qoder':{'name':a41_0x15051a(0x20f),'description':'Qoder\x20IDE\x20(.qoder/rules/\x20+\x20.qoder/skills/)'},'codebuddy':{'name':'CodeBuddy','description':a41_0x15051a(0x1ed)},'trae':{'name':a41_0x15051a(0x214),'description':'Trae\x20IDE\x20(.trae/skills/)'},'antigravity':{'name':'Antigravity','description':a41_0x15051a(0x1d8)},'agent':{'name':a41_0x15051a(0x1dc),'description':a41_0x15051a(0x201)}},IDE_LIST=['antigravity',a41_0x15051a(0x1e3),a41_0x15051a(0x1d3),a41_0x15051a(0x1d9),a41_0x15051a(0x1cf),'opencode',a41_0x15051a(0x1d7),a41_0x15051a(0x21a),a41_0x15051a(0x1c7),'agent'],MCP_IDES=new Set(['cursor',a41_0x15051a(0x1e3)]);export function EnhancedGuidedCreate(_0x94c0d7){const _0xcc52e2=a41_0x15051a,{onCreate:_0x3e82ef,env:_0x322346}=_0x94c0d7,[_0x3d9b41,_0x192c42]=useState(_0xcc52e2(0x212)),[_0x5ec152,_0x2abe7f]=useState(''),[_0x20ed40,_0x45e36e]=useState(''),[_0x5b51b5,_0x8bc1ea]=useState(''),[_0x45d882,_0x3702f2]=useState(''),[_0x2d64a2,_0x56db27]=useState([]),[_0x2e7dff,_0x44517c]=useState(null),[_0x57d751,_0x516cb0]=useState(![]),[_0x4ee5ea,_0x142afc]=useState(![]),[_0x158220,_0x267ccb]=useState(![]),[_0x1e1093,_0x25ffe2]=useState(0x0),[_0x5c36fe,_0x4fbaec]=useState(0x0),[_0x3ff843,_0x1f83e1]=useState(0x0),[_0xe081b1,_0x355e12]=useState(![]),[_0x33732e,_0x359b83]=useState(new Set()),[_0x2f157d,_0x436da6]=useState(0x0),[_0x784d0b,_0x2d0c12]=useState(''),_0x21ec2c=_0xcc52e2(0x213),_0x31ff88=readConfig(),_0x51b9a0=typeof _0x31ff88[_0xcc52e2(0x203)]===_0xcc52e2(0x1f1)?_0x31ff88[_0xcc52e2(0x203)]:undefined;function _0xbe5147(_0x5a49d5){const _0x4fca03=_0xcc52e2,_0x24d273=_0x5a49d5||_0x21ec2c,_0x3d6bab=a41_0x129496['resolve'](process[_0x4fca03(0x208)](),_0x24d273);return existsSync(_0x3d6bab);}function _0x17f886(_0x2144dc){const _0x5c8c1b=_0xcc52e2;if(_0x2144dc['length']>0x32)return{'valid':![],'message':_0x5c8c1b(0x1b9)};const _0x462d04=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x2144dc?.[_0x5c8c1b(0x20e)]()&&!_0x462d04['test'](_0x2144dc))return{'valid':![],'message':_0x5c8c1b(0x1b3)};return{'valid':!![]};}function _0x1c9a6e(_0x3d604f){const _0x303687=_0xcc52e2;if(!_0x3d604f[_0x303687(0x20e)]())return{'valid':!![]};if(_0x3d604f['length']>0x64)return{'valid':![],'message':'应用AppCode长度不能超过\x20100\x20个字符'};const _0x30ae6e=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x30ae6e[_0x303687(0x1c8)](_0x3d604f))return{'valid':![],'message':_0x303687(0x207)};return{'valid':!![]};}async function _0x32f44d(){_0x516cb0(!![]);try{const _0x2c712e=await getIsSessionValid();return _0x44517c(_0x2c712e),_0x2c712e;}catch(_0x2bc7e3){return _0x44517c(![]),![];}finally{_0x516cb0(![]);}}async function _0x1ef75f(){_0x142afc(!![]);try{const _0x142ac4=await authServer({'silent':!![]});return _0x44517c(_0x142ac4),_0x142ac4;}catch(_0x509867){return _0x44517c(![]),![];}finally{_0x142afc(![]);}}return useInput(async(_0x2d48d0,_0x5eabb1)=>{const _0x2d41cf=_0xcc52e2;if(_0x5eabb1[_0x2d41cf(0x204)]||_0x5eabb1[_0x2d41cf(0x1cb)]){if(_0x3d9b41===_0x2d41cf(0x1bc)){_0x25ffe2(_0x4f9143=>_0x4f9143===0x0?0x1:0x0);return;}if(_0x3d9b41==='lovrabet-setup-selection'){if(!_0xe081b1){_0x1f83e1(_0x1e390c=>_0x1e390c===0x0?0x1:0x0);return;}_0x355e12(![]);return;}if(_0x3d9b41===_0x2d41cf(0x1ec)){_0x4fbaec(_0x29cbd8=>_0x29cbd8===0x0?0x1:0x0);return;}}if(_0x3d9b41==='lovrabet-setup-selection'&&_0xe081b1&&_0x3ff843===0x0){if(_0x5eabb1['upArrow']){_0x436da6(_0x354205=>_0x354205>0x0?_0x354205-0x1:IDE_LIST[_0x2d41cf(0x1c3)]-0x1);return;}if(_0x5eabb1[_0x2d41cf(0x20b)]){_0x436da6(_0x3c4adb=>_0x3c4adb<IDE_LIST['length']-0x1?_0x3c4adb+0x1:0x0);return;}}if(_0x2d48d0==='\x20'&&_0x3d9b41===_0x2d41cf(0x1f3)&&_0xe081b1&&_0x3ff843===0x0){_0x359b83(_0x3afc94=>{const _0x554f6b=_0x2d41cf,_0x16984a=new Set(_0x3afc94);return _0x16984a[_0x554f6b(0x1b2)](_0x2f157d)?_0x16984a[_0x554f6b(0x1f5)](_0x2f157d):_0x16984a[_0x554f6b(0x1c4)](_0x2f157d),_0x16984a;}),_0x3702f2('');return;}if((_0x2d48d0==='a'||_0x2d48d0==='A')&&_0x3d9b41===_0x2d41cf(0x1f3)&&_0xe081b1&&_0x3ff843===0x0){_0x359b83(new Set(IDE_LIST[_0x2d41cf(0x1c5)]((_0x249353,_0x1ace60)=>_0x1ace60))),_0x3702f2('');return;}if((_0x2d48d0==='i'||_0x2d48d0==='I'||_0x2d48d0==='r'||_0x2d48d0==='R')&&_0x3d9b41===_0x2d41cf(0x1f3)&&_0xe081b1&&_0x3ff843===0x0){_0x359b83(_0x2af1b7=>{const _0x5cd8bf=_0x2d41cf,_0x35f8c4=new Set();for(let _0x30343e=0x0;_0x30343e<IDE_LIST[_0x5cd8bf(0x1c3)];_0x30343e++){!_0x2af1b7[_0x5cd8bf(0x1b2)](_0x30343e)&&_0x35f8c4['add'](_0x30343e);}return _0x35f8c4;});return;}if(_0x5eabb1[_0x2d41cf(0x1b4)]){if(_0x3d9b41===_0x2d41cf(0x212)){const _0x3d9186=_0x5b51b5[_0x2d41cf(0x20e)]()||_0x21ec2c;if(_0x45d882)return;if(_0xbe5147(_0x3d9186)){_0x2d0c12(_0x2d41cf(0x1cc)+_0x3d9186+_0x2d41cf(0x21c));return;}_0x2abe7f(_0x3d9186),_0x56db27([{'step':'project-name','label':'项目名','value':_0x3d9186}]),_0x8bc1ea(''),_0x3702f2(''),_0x2d0c12(''),_0x192c42(_0x2d41cf(0x21f));return;}if(_0x3d9b41===_0x2d41cf(0x21f)){if(_0x45d882)return;const _0x168982=_0x5b51b5[_0x2d41cf(0x20e)]();_0x45e36e(_0x168982),_0x56db27(_0x4109cc=>[..._0x4109cc,{'step':_0x2d41cf(0x21f),'label':'应用AppCode','value':_0x168982||_0x2d41cf(0x1e4)}]),_0x8bc1ea(''),_0x3702f2('');if(_0x168982){_0x192c42(_0x2d41cf(0x1f7));const _0x49b988=await _0x32f44d();_0x49b988?_0x192c42(_0x2d41cf(0x1bc)):_0x192c42(_0x2d41cf(0x1ec));}else{const _0x5242f5=_0x322346||_0x51b9a0||_0x2d41cf(0x200);_0x3e82ef({'projectName':_0x5ec152,'appCode':undefined,'pullApi':![],'aiSetup':![],'selectedIDEs':[],'env':_0x5242f5}),_0x192c42(_0x2d41cf(0x205));}return;}if(_0x3d9b41===_0x2d41cf(0x1bc)){const _0x254b47=_0x1e1093===0x0;_0x267ccb(_0x254b47),_0x56db27(_0x4996da=>[..._0x4996da,{'step':_0x2d41cf(0x202),'label':_0x2d41cf(0x1d4),'value':_0x254b47?'是':'否'}]),_0x192c42(_0x2d41cf(0x1f3));return;}if(_0x3d9b41==='lovrabet-setup-selection'){if(!_0xe081b1){_0x355e12(!![]);if(_0x3ff843===0x1){_0x56db27(_0x4d54bb=>[..._0x4d54bb,{'step':_0x2d41cf(0x1bd),'label':_0x2d41cf(0x1e7),'value':'否'}]);const _0x54a2cb=_0x322346||_0x51b9a0||_0x2d41cf(0x200);_0x3e82ef({'projectName':_0x5ec152,'appCode':_0x20ed40,'pullApi':_0x158220,'aiSetup':![],'selectedIDEs':[],'env':_0x54a2cb}),_0x192c42('creating');}return;}const _0x47d047=_0x3ff843===0x0;if(_0x47d047){if(_0x33732e['size']===0x0){_0x3702f2(_0x2d41cf(0x1c1));return;}const _0x5324ee=Array[_0x2d41cf(0x1b6)](_0x33732e)[_0x2d41cf(0x1c5)](_0x1e30a1=>IDE_LIST[_0x1e30a1])[_0x2d41cf(0x1f8)](_0x96caa4=>_0x96caa4!==undefined);_0x56db27(_0xe4ad0e=>[..._0xe4ad0e,{'step':_0x2d41cf(0x1bd),'label':_0x2d41cf(0x1e7),'value':_0x5324ee[_0x2d41cf(0x1c3)]+_0x2d41cf(0x21e)}]);const _0x2536bf=_0x322346||_0x51b9a0||_0x2d41cf(0x200);_0x3e82ef({'projectName':_0x5ec152,'appCode':_0x20ed40,'pullApi':_0x158220,'aiSetup':!![],'selectedIDEs':_0x5324ee,'env':_0x2536bf}),_0x192c42(_0x2d41cf(0x205));}else{_0x56db27(_0x193776=>[..._0x193776,{'step':_0x2d41cf(0x1bd),'label':_0x2d41cf(0x1e7),'value':'否'}]);const _0x59f5d9=_0x322346||_0x51b9a0||_0x2d41cf(0x200);_0x3e82ef({'projectName':_0x5ec152,'appCode':_0x20ed40,'pullApi':_0x158220,'aiSetup':![],'selectedIDEs':[],'env':_0x59f5d9}),_0x192c42(_0x2d41cf(0x205));}return;}if(_0x3d9b41===_0x2d41cf(0x1ec)){const _0x18bf06=_0x5c36fe===0x0;if(_0x18bf06){_0x192c42(_0x2d41cf(0x1fa));const _0x183970=await _0x1ef75f();_0x183970?(_0x56db27(_0x42cd3c=>[..._0x42cd3c,{'step':_0x2d41cf(0x206),'label':_0x2d41cf(0x218),'value':'已登录'}]),_0x192c42(_0x2d41cf(0x1bc))):(_0x56db27(_0x273652=>[..._0x273652,{'step':'login','label':_0x2d41cf(0x218),'value':_0x2d41cf(0x1b5)}]),_0x192c42('lovrabet-setup-selection'));}else _0x56db27(_0x2d18e8=>[..._0x2d18e8,{'step':_0x2d41cf(0x206),'label':_0x2d41cf(0x218),'value':_0x2d41cf(0x1c9)}]),_0x192c42(_0x2d41cf(0x1f3));return;}}if(_0x5eabb1[_0x2d41cf(0x1cd)]||_0x5eabb1['delete']){_0x8bc1ea(_0x252a8d=>{const _0xeb762=_0x2d41cf,_0x23ac95=_0x252a8d[_0xeb762(0x1f0)](0x0,-0x1);if(_0x3d9b41==='project-name'){const {valid:_0x4f5419,message:_0x3e10c6}=_0x17f886(_0x23ac95);_0x3702f2(_0x4f5419?'':_0x3e10c6||_0xeb762(0x1ce));if(_0x4f5419&&!_0x45d882){const _0x479a04=_0x23ac95||_0x21ec2c;_0xbe5147(_0x479a04)?_0x2d0c12(_0xeb762(0x1cc)+_0x479a04+_0xeb762(0x1e5)):_0x2d0c12('');}}else{if(_0x3d9b41===_0xeb762(0x21f)){const {valid:_0x5ef585,message:_0x50b7e5}=_0x1c9a6e(_0x23ac95);_0x3702f2(_0x5ef585?'':_0x50b7e5||_0xeb762(0x220));}}return _0x23ac95;});return;}if([_0x2d41cf(0x205),_0x2d41cf(0x1f7),_0x2d41cf(0x1fa)][_0x2d41cf(0x1d5)](_0x3d9b41))return;if(_0x3d9b41===_0x2d41cf(0x1bc)||_0x3d9b41==='login-prompt'||_0x3d9b41===_0x2d41cf(0x1f3))return;_0x8bc1ea(_0x23bf57=>{const _0x5d02a2=_0x2d41cf,_0x5b2b99=_0x23bf57+_0x2d48d0;if(_0x3d9b41===_0x5d02a2(0x212)){const {valid:_0x41293c,message:_0x276ed4}=_0x17f886(_0x5b2b99);_0x3702f2(_0x41293c?'':_0x276ed4||_0x5d02a2(0x1ce));if(_0x41293c&&!_0x45d882){const _0x4d0789=_0x5b2b99||_0x21ec2c;_0xbe5147(_0x4d0789)?_0x2d0c12(_0x5d02a2(0x1cc)+_0x4d0789+_0x5d02a2(0x1e5)):_0x2d0c12('');}}else{if(_0x3d9b41==='app-code'){const {valid:_0x2634d0,message:_0x9eb56}=_0x1c9a6e(_0x5b2b99);_0x3702f2(_0x2634d0?'':_0x9eb56||_0x5d02a2(0x220));}}return _0x5b2b99;});}),a41_0x198c89(Box,{'flexDirection':_0xcc52e2(0x1fd),'marginTop':0x1,'children':[_0x2d64a2[_0xcc52e2(0x1c3)]===0x0&&a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x217),'children':_0xcc52e2(0x219)})}),_0x2d64a2['map'](_0xb743b1=>a41_0x198c89(Box,{'children':[a41_0x198c89(Text,{'color':'green','children':['√\x20',_0xb743b1[_0xcc52e2(0x1ff)],':\x20']}),a41_0x4492c3(Text,{'color':_0xcc52e2(0x217),'children':_0xb743b1[_0xcc52e2(0x1df)]})]},_0xb743b1[_0xcc52e2(0x20d)])),_0x3d9b41===_0xcc52e2(0x212)&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x198c89(Box,{'children':[a41_0x4492c3(Text,{'children':_0xcc52e2(0x1fe)}),_0x5b51b5?a41_0x4492c3(Text,{'color':'green','children':_0x5b51b5}):a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0x21ec2c}),_0x45d882&&a41_0x198c89(Text,{'color':'red','children':[_0xcc52e2(0x215),_0x45d882]}),_0x784d0b&&a41_0x198c89(Text,{'color':_0xcc52e2(0x1f4),'children':['\x20←\x20',_0x784d0b]})]}),!_0x45d882&&!_0x784d0b&&!_0x5b51b5&&a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0xcc52e2(0x1ef)})})]}),_0x3d9b41===_0xcc52e2(0x21f)&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x198c89(Box,{'children':[a41_0x4492c3(Text,{'children':_0xcc52e2(0x1db)}),a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':'[可选]:\x20'}),a41_0x4492c3(Text,{'color':'green','children':_0x5b51b5}),_0x45d882&&a41_0x198c89(Text,{'color':'red','children':[_0xcc52e2(0x215),_0x45d882]})]}),!_0x45d882&&a41_0x4492c3(Box,{'children':a41_0x198c89(Text,{'color':_0xcc52e2(0x209),'children':['\x20','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)']})})]}),_0x3d9b41===_0xcc52e2(0x1f7)&&a41_0x198c89(Box,{'children':[a41_0x4492c3(Text,{'children':_0xcc52e2(0x1dd)}),_0x57d751&&a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':'\x20检查中...'})]}),_0x3d9b41==='confirm-api-pull'&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x1d2),'children':'√\x20检测到有效登录状态'})}),a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x4492c3(Text,{'children':_0xcc52e2(0x210)})}),a41_0x198c89(Box,{'marginLeft':0x2,'children':[a41_0x198c89(Text,{'color':_0x1e1093===0x0?_0xcc52e2(0x1d2):'gray','children':[_0x1e1093===0x0?'▶\x20':'\x20\x20',_0xcc52e2(0x1e1)]}),a41_0x4492c3(Text,{'children':'\x20'}),a41_0x198c89(Text,{'color':_0x1e1093===0x1?'green':'gray','children':[_0x1e1093===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0xcc52e2(0x1e9)})}),a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x1d0),'children':'\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口'})})]}),_0x3d9b41===_0xcc52e2(0x1f3)&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x1d2),'children':'√'})}),a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x4492c3(Text,{'children':_0xcc52e2(0x1ee)})}),a41_0x198c89(Box,{'marginLeft':0x2,'children':[a41_0x198c89(Text,{'color':_0x3ff843===0x0?_0xcc52e2(0x1d2):_0xcc52e2(0x209),'children':[_0x3ff843===0x0?'▶\x20':'\x20\x20','Yes']}),a41_0x4492c3(Text,{'children':'\x20'}),a41_0x198c89(Text,{'color':_0x3ff843===0x1?_0xcc52e2(0x1d2):_0xcc52e2(0x209),'children':[_0x3ff843===0x1?'▶\x20':'\x20\x20','No']})]}),_0xe081b1&&_0x3ff843===0x0&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':'\x20\x20使用\x20←→\x20返回修改选择,回车确认\x20IDE'})}),a41_0x198c89(Box,{'marginTop':0x1,'flexDirection':_0xcc52e2(0x1fd),'children':[a41_0x4492c3(Text,{'bold':!![],'color':_0xcc52e2(0x1d0),'children':_0xcc52e2(0x1da)}),IDE_LIST[_0xcc52e2(0x1c5)]((_0x51e6dc,_0xab60c9)=>{const _0x3a9cf4=_0xcc52e2,_0x2654b4=_0x2f157d===_0xab60c9,_0x18c247=_0x33732e[_0x3a9cf4(0x1b2)](_0xab60c9),_0x3968b3=MCP_IDES['has'](_0x51e6dc);return a41_0x4492c3(Box,{'children':a41_0x198c89(Text,{'backgroundColor':_0x2654b4?_0x3a9cf4(0x20a):undefined,'color':_0x2654b4?_0x3a9cf4(0x1fc):undefined,'children':['\x20\x20',_0x18c247?_0x3a9cf4(0x1b8):_0x3a9cf4(0x1ba),'\x20',IDE_CONFIGS[_0x51e6dc][_0x3a9cf4(0x1d1)],_0x3968b3&&a41_0x4492c3(Text,{'color':_0x2654b4?'white':'cyan','children':_0x3a9cf4(0x221)}),'\x20',a41_0x198c89(Text,{'color':_0x2654b4?'white':_0x3a9cf4(0x209),'dimColor':!_0x2654b4,'children':['-\x20',IDE_CONFIGS[_0x51e6dc][_0x3a9cf4(0x1bf)]]})]})},_0x51e6dc);}),a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x198c89(Text,{'color':_0xcc52e2(0x209),'children':['\x20','↑/↓:\x20移动\x20空格:\x20切换\x20a:\x20全选\x20i/r:\x20反选\x20Enter:\x20确认']})})]})]}),!_0xe081b1&&a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0xcc52e2(0x1e9)})}),_0x45d882&&a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x198c89(Text,{'color':_0xcc52e2(0x1f4),'children':['✗\x20',_0x45d882]})})]}),_0x3d9b41===_0xcc52e2(0x1ec)&&a41_0x198c89(a41_0x3e123d,{'children':[a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x1d0),'children':_0xcc52e2(0x1c0)})}),a41_0x4492c3(Box,{'marginTop':0x1,'children':a41_0x4492c3(Text,{'children':_0xcc52e2(0x1f9)})}),a41_0x198c89(Box,{'marginLeft':0x2,'children':[a41_0x198c89(Text,{'color':_0x5c36fe===0x0?_0xcc52e2(0x1d2):_0xcc52e2(0x209),'children':[_0x5c36fe===0x0?'▶\x20':'\x20\x20',_0xcc52e2(0x1e1)]}),a41_0x4492c3(Text,{'children':'\x20'}),a41_0x198c89(Text,{'color':_0x5c36fe===0x1?_0xcc52e2(0x1d2):_0xcc52e2(0x209),'children':[_0x5c36fe===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0xcc52e2(0x1e9)})})]}),_0x3d9b41==='login-process'&&a41_0x198c89(Box,{'children':[a41_0x4492c3(Text,{'children':_0xcc52e2(0x1c2)}),_0x4ee5ea&&a41_0x4492c3(Text,{'color':_0xcc52e2(0x209),'children':_0xcc52e2(0x1ea)})]}),_0x3d9b41===_0xcc52e2(0x205)&&a41_0x4492c3(Box,{'children':a41_0x4492c3(Text,{'color':_0xcc52e2(0x1d2),'children':_0xcc52e2(0x1fb)})})]});}
@@ -1 +1 @@
1
- function a40_0x22e6(){const _0x570121=['417eNAvOh','574dxduiC','85088OmrBeA','1024040qsUJuq','1308vgSmPV','36eGClcv','2635FEQLSH','54PNMucf','replace','894MEsGmy','1342792WJfVSG','793793HhXqrq','now','toFixed'];a40_0x22e6=function(){return _0x570121;};return a40_0x22e6();}(function(_0x5a65f5,_0x415568){const _0x307eed=a40_0x4cc8,_0x1a6ee0=_0x5a65f5();while(!![]){try{const _0x110633=parseInt(_0x307eed(0x127))/0x1*(parseInt(_0x307eed(0x128))/0x2)+-parseInt(_0x307eed(0x120))/0x3*(parseInt(_0x307eed(0x12b))/0x4)+-parseInt(_0x307eed(0x12d))/0x5*(-parseInt(_0x307eed(0x122))/0x6)+parseInt(_0x307eed(0x124))/0x7+parseInt(_0x307eed(0x129))/0x8*(parseInt(_0x307eed(0x12c))/0x9)+-parseInt(_0x307eed(0x12a))/0xa+-parseInt(_0x307eed(0x123))/0xb;if(_0x110633===_0x415568)break;else _0x1a6ee0['push'](_0x1a6ee0['shift']());}catch(_0x132f26){_0x1a6ee0['push'](_0x1a6ee0['shift']());}}}(a40_0x22e6,0x1e387));function a40_0x4cc8(_0x588b7a,_0x2dbdd6){_0x588b7a=_0x588b7a-0x120;const _0x22e627=a40_0x22e6();let _0x4cc895=_0x22e627[_0x588b7a];return _0x4cc895;}export function formatElapsed(_0x1a0ae4){const _0x605624=a40_0x4cc8,_0x495f32=Date[_0x605624(0x125)]()-_0x1a0ae4;if(_0x495f32<0x3e8)return _0x495f32+'ms';const _0x315c1a=(_0x495f32/0x3e8)[_0x605624(0x126)](0x2),_0x4891a4=_0x315c1a[_0x605624(0x121)](/\.?0+$/u,'');return _0x4891a4+'s';}
1
+ (function(_0x5b0803,_0x345992){const _0x463bea=a42_0x317e,_0x4dc10d=_0x5b0803();while(!![]){try{const _0x399efa=-parseInt(_0x463bea(0x1ad))/0x1*(parseInt(_0x463bea(0x1ac))/0x2)+-parseInt(_0x463bea(0x1a4))/0x3+parseInt(_0x463bea(0x1a7))/0x4*(parseInt(_0x463bea(0x1ab))/0x5)+-parseInt(_0x463bea(0x1a5))/0x6+-parseInt(_0x463bea(0x1a3))/0x7*(parseInt(_0x463bea(0x1af))/0x8)+-parseInt(_0x463bea(0x1ae))/0x9+parseInt(_0x463bea(0x1aa))/0xa*(parseInt(_0x463bea(0x1a8))/0xb);if(_0x399efa===_0x345992)break;else _0x4dc10d['push'](_0x4dc10d['shift']());}catch(_0x2d1238){_0x4dc10d['push'](_0x4dc10d['shift']());}}}(a42_0x56bf,0x9c2cf));export function formatElapsed(_0x3f175a){const _0x3167be=a42_0x317e,_0x57bc7f=Date[_0x3167be(0x1a6)]()-_0x3f175a;if(_0x57bc7f<0x3e8)return _0x57bc7f+'ms';const _0x508f08=(_0x57bc7f/0x3e8)['toFixed'](0x2),_0x3d5658=_0x508f08[_0x3167be(0x1a9)](/\.?0+$/u,'');return _0x3d5658+'s';}function a42_0x317e(_0x3c2bdc,_0x3239db){_0x3c2bdc=_0x3c2bdc-0x1a3;const _0x56bf86=a42_0x56bf();let _0x317ee6=_0x56bf86[_0x3c2bdc];return _0x317ee6;}function a42_0x56bf(){const _0x34bb43=['1255190DPZXVK','917170gcKusZ','86XnVDds','17332bmTVic','265149VspmNO','640akPeDe','58303DXxFLD','487191yUyIUp','5716446MDHdSv','now','4zOvWiI','264hglFEJ','replace'];a42_0x56bf=function(){return _0x34bb43;};return a42_0x56bf();}
@@ -1 +1 @@
1
- (function(_0x4c0ece,_0x183c31){const _0x184791=a41_0x2369,_0x235071=_0x4c0ece();while(!![]){try{const _0x3a8583=parseInt(_0x184791(0x1e8))/0x1*(-parseInt(_0x184791(0x1de))/0x2)+parseInt(_0x184791(0x209))/0x3*(parseInt(_0x184791(0x1f6))/0x4)+-parseInt(_0x184791(0x1c1))/0x5+-parseInt(_0x184791(0x1e3))/0x6+-parseInt(_0x184791(0x1f2))/0x7+parseInt(_0x184791(0x211))/0x8*(-parseInt(_0x184791(0x1c9))/0x9)+parseInt(_0x184791(0x202))/0xa;if(_0x3a8583===_0x183c31)break;else _0x235071['push'](_0x235071['shift']());}catch(_0x3578cf){_0x235071['push'](_0x235071['shift']());}}}(a41_0x1785,0x7320b));import{jsx as a41_0x1646a5,Fragment as a41_0x594702,jsxs as a41_0x3c97c0}from'react/jsx-runtime';import a41_0x1cd9d2 from'node:path';import a41_0x22c07f from'node:fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';import{pullApiSilent}from'../api/pull-silent.js';import{readConfig}from'../utils/config.js';import{useCopyProjectTemplate}from'./use-copy-project-template.js';function a41_0x1785(){const _0xd5b08e=['version','toLocaleString','success','error','lovrabet\x20config\x20set\x20appcode\x20[app-code]','trim','accessSync','×\x20项目目录\x20','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','gray','*\x20正在拉取\x20API\x20配置...','×\x20无法在当前目录创建项目,请检查目录权限','.lovrabetrc','existsSync','W_OK','2991630AQdEex','info','\x20已存在,请使用其他项目名','parse','dirname','1.0.0','项目创建完成:\x20','name','180nEGznm','拉取API配置:\x20','rmSync','env','√\x20API\x20配置拉取完成','配置应用AppCode失败:\x20','2.\x20','🎉\x20项目创建成功!','3.\x20','utf8','1.\x20','description','cd\x20','开始创建项目:\x20','white','API\x20配置拉取成功:\x20','\x20&&\x20lovrabet\x20start','writeFileSync','string','\x20|\x20应用AppCode:\x20','resolve','26wKEEkf',',\x20description=','pullApi','appCode','配置AppCode:\x20','4453296BHyotW','create','未配置','已自动拉取\x20✓','readFileSync','27281kSGRtJ','join','repeat','*\x20清理失败的项目目录:\x20','\x20创建配置文件','lovrabet\x20api\x20pull','更新\x20package.json\x20失败:\x20','message','warn','\x20Generated\x20by\x20lovrabet\x20cli\x20','4808258zcflrZ','doTask','stringify','projectName','2228wufyao','cyan','×\x20项目名不能为空','API\x20配置拉取失败:\x20','\x20配置应用AppCode:\x20','../..','projectCode','*\x20配置文件路径:\x20','!\x20API\x20配置拉取失败,可稍后手动执行:\x20lovrabet\x20api\x20pull','√\x20package.json\x20已更新:\x20name=','*\x20正在更新\x20package.json\x20的\x20name\x20和\x20description\x20字段','\x20√\x20','22007670cAxeNt','cwd','column','green','×\x20项目名过长,最多支持\x20100\x20个字符','online','×\x20项目名包含非法字符,不允许使用:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20及控制字符','3555GbgYkL','yellow','constants','🔗\x20应用AppCode:\x20','log','清理项目目录失败:\x20','项目名称:\x20','API\x20配置拉取异常:\x20','2864JwGRml','length','*\x20正在为项目\x20','package.json'];a41_0x1785=function(){return _0xd5b08e;};return a41_0x1785();}import{useInstallDependencies}from'./use-install-dependencies.js';import{useFormatCode}from'./use-format-code.js';function a41_0x2369(_0x374b99,_0x4e4b7d){_0x374b99=_0x374b99-0x1b9;const _0x17850e=a41_0x1785();let _0x236969=_0x17850e[_0x374b99];return _0x236969;}import{TaskFinished}from'./task-finished.js';import{TaskRunning}from'./task-running.js';import{logger}from'../utils/logger.js';export function CreateApp(_0x263e32){const _0x15c5d2=a41_0x2369,[_0x5d0635,_0x2e8ca5]=useState(![]),[_0xe75f4f,_0xddb28c]=useState(![]),[_0x4ddf89,_0x3aeb4a]=useState(null),_0x3e0fd0=useCopyProjectTemplate(),_0xdd00bf=useInstallDependencies(),_0x92a824=useFormatCode(),_0x58aabd=async _0x425222=>{const _0x21095f=a41_0x2369;if(!_0x425222[_0x21095f(0x1f5)]||_0x425222[_0x21095f(0x1f5)][_0x21095f(0x21a)]()===''){console[_0x21095f(0x218)](_0x21095f(0x1f8));return;}const _0x460a07=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x460a07['test'](_0x425222['projectName'])){console[_0x21095f(0x218)](_0x21095f(0x208));return;}if(_0x425222[_0x21095f(0x1f5)][_0x21095f(0x212)]>0x64){console[_0x21095f(0x218)](_0x21095f(0x206));return;}const _0x151dda=a41_0x1cd9d2[_0x21095f(0x1dd)](process[_0x21095f(0x203)](),_0x425222[_0x21095f(0x1f5)]);if(a41_0x22c07f[_0x21095f(0x1bf)](_0x151dda)){console[_0x21095f(0x218)](_0x21095f(0x1b9)+_0x425222['projectName']+_0x21095f(0x1c3));return;}try{const _0x1bf69c=a41_0x1cd9d2[_0x21095f(0x1c5)](_0x151dda);a41_0x22c07f[_0x21095f(0x21b)](_0x1bf69c,a41_0x22c07f[_0x21095f(0x20b)][_0x21095f(0x1c0)]);}catch(_0x29aeb2){console[_0x21095f(0x218)](_0x21095f(0x1bd));return;}_0x3aeb4a(_0x425222),_0x2e8ca5(!![]),logger['setLogPath'](_0x151dda),logger[_0x21095f(0x1c2)](_0x21095f(0x1e4),_0x21095f(0x1d6)+_0x425222[_0x21095f(0x1f5)],{'projectDir':_0x151dda,'appCode':_0x425222[_0x21095f(0x1e1)]});try{await _0x3e0fd0[_0x21095f(0x1f3)](_0x425222[_0x21095f(0x1f5)]),await _0x193aa5(_0x425222['projectName']),await _0xdd00bf[_0x21095f(0x1f3)](_0x425222['projectName']),await _0x92a824['doTask'](_0x425222['projectName']),await _0x5003d8(_0x425222[_0x21095f(0x1f5)],_0x425222['appCode']||'',_0x425222[_0x21095f(0x1cc)]);if(_0x425222[_0x21095f(0x1e0)]&&_0x425222[_0x21095f(0x1e1)]){console[_0x21095f(0x20d)](_0x21095f(0x1bc));try{const _0x36acdc=await pullApiSilent(_0x425222[_0x21095f(0x1e1)],undefined,_0x151dda,_0x425222[_0x21095f(0x1cc)]);_0x36acdc?(console[_0x21095f(0x20d)](_0x21095f(0x1cd)),logger[_0x21095f(0x1c2)](_0x21095f(0x1e4),_0x21095f(0x1d8)+_0x425222['appCode'],{'projectDir':_0x151dda,'appCode':_0x425222[_0x21095f(0x1e1)],'env':_0x425222[_0x21095f(0x1cc)]})):(console[_0x21095f(0x20d)](_0x21095f(0x1fe)),logger[_0x21095f(0x1f0)](_0x21095f(0x1e4),_0x21095f(0x1f9)+_0x425222[_0x21095f(0x1e1)],{'projectDir':_0x151dda,'appCode':_0x425222[_0x21095f(0x1e1)],'env':_0x425222[_0x21095f(0x1cc)]}));}catch(_0x44b8e2){console[_0x21095f(0x20d)]('!\x20API\x20配置拉取异常,项目已创建,可稍后手动执行:\x20lovrabet\x20api\x20pull'),logger['warn'](_0x21095f(0x1e4),_0x21095f(0x210)+_0x425222[_0x21095f(0x1e1)],{'projectDir':_0x151dda,'appCode':_0x425222['appCode'],'env':_0x425222['env'],'error':_0x44b8e2 instanceof Error?_0x44b8e2[_0x21095f(0x1ef)]:String(_0x44b8e2)});}}logger[_0x21095f(0x217)](_0x21095f(0x1e4),_0x21095f(0x1c7)+_0x425222['projectName']),_0xddb28c(!![]),_0x2e8ca5(![]);}catch(_0x4a21d5){logger['error']('create','项目创建失败:\x20'+_0x425222[_0x21095f(0x1f5)],{'error':_0x4a21d5 instanceof Error?_0x4a21d5[_0x21095f(0x1ef)]:String(_0x4a21d5)});try{a41_0x22c07f[_0x21095f(0x1bf)](_0x151dda)&&(console[_0x21095f(0x20d)](_0x21095f(0x1eb)+_0x151dda),a41_0x22c07f[_0x21095f(0x1cb)](_0x151dda,{'recursive':!![],'force':!![]}));}catch(_0x17ceac){logger[_0x21095f(0x1f0)](_0x21095f(0x1e4),_0x21095f(0x20e)+_0x151dda,{'error':_0x17ceac instanceof Error?_0x17ceac[_0x21095f(0x1ef)]:String(_0x17ceac)});}_0x2e8ca5(![]),console['error']('×\x20项目创建失败:\x20'+(_0x4a21d5 instanceof Error?_0x4a21d5[_0x21095f(0x1ef)]:String(_0x4a21d5)));}},_0x390123=async _0x20fbf9=>{const _0x71d8ae=a41_0x2369;await _0x58aabd({'projectName':_0x20fbf9,'env':_0x263e32[_0x71d8ae(0x1cc)]});},_0x193aa5=async _0x4dfb96=>{const _0x78a318=a41_0x2369,_0x41db76=a41_0x1cd9d2[_0x78a318(0x1dd)](process[_0x78a318(0x203)](),_0x4dfb96),_0x5ea98e=a41_0x1cd9d2[_0x78a318(0x1e9)](_0x41db76,_0x78a318(0x214));try{console[_0x78a318(0x20d)](_0x78a318(0x200));const _0x17dec4=fileURLToPath(import.meta.url),_0x3eac31=a41_0x1cd9d2['resolve'](a41_0x1cd9d2['dirname'](_0x17dec4),_0x78a318(0x1fb)),_0x53beca=a41_0x1cd9d2[_0x78a318(0x1e9)](_0x3eac31,_0x78a318(0x214));let _0x3acfe0='1.0.0';try{const _0xfc0546=JSON[_0x78a318(0x1c4)](a41_0x22c07f[_0x78a318(0x1e7)](_0x53beca,'utf8'));_0x3acfe0=_0xfc0546[_0x78a318(0x215)]||_0x78a318(0x1c6);}catch(_0x4ed2b3){}const _0x5a6df9=a41_0x22c07f[_0x78a318(0x1e7)](_0x5ea98e,_0x78a318(0x1d2)),_0x2c64e1=JSON[_0x78a318(0x1c4)](_0x5a6df9);_0x2c64e1[_0x78a318(0x1c8)]=_0x4dfb96,_0x2c64e1[_0x78a318(0x1d4)]=_0x4dfb96+_0x78a318(0x1f1)+_0x3acfe0,a41_0x22c07f[_0x78a318(0x1da)](_0x5ea98e,JSON[_0x78a318(0x1f4)](_0x2c64e1,null,0x2)+'\x0a','utf8'),console[_0x78a318(0x20d)](_0x78a318(0x1ff)+_0x4dfb96+_0x78a318(0x1df)+_0x2c64e1[_0x78a318(0x1d4)]),logger[_0x78a318(0x1c2)](_0x78a318(0x1e4),'更新\x20package.json\x20name\x20和\x20description\x20字段',{'projectName':_0x4dfb96,'description':_0x2c64e1['description'],'cliVersion':_0x3acfe0,'packageJsonPath':_0x78a318(0x214)});}catch(_0x2f3f4a){logger[_0x78a318(0x218)]('create',_0x78a318(0x1ee)+_0x4dfb96,{'projectName':_0x4dfb96,'error':_0x2f3f4a instanceof Error?_0x2f3f4a[_0x78a318(0x1ef)]:String(_0x2f3f4a)});throw _0x2f3f4a;}},_0x5003d8=async(_0x39209c,_0xd63ef5,_0x89f1b0)=>{const _0x319902=a41_0x2369,_0x5612f2=a41_0x1cd9d2['resolve'](process[_0x319902(0x203)](),_0x39209c),_0xf9b607=a41_0x1cd9d2[_0x319902(0x1e9)](_0x5612f2,_0x319902(0x1be));try{_0xd63ef5?console[_0x319902(0x20d)](_0x319902(0x213)+_0x39209c+_0x319902(0x1fa)+_0xd63ef5):console['log'](_0x319902(0x213)+_0x39209c+_0x319902(0x1ec));console['log'](_0x319902(0x1fd)+_0xf9b607);const _0x588850=fileURLToPath(import.meta.url),_0x3d159b=a41_0x1cd9d2[_0x319902(0x1dd)](a41_0x1cd9d2[_0x319902(0x1c5)](_0x588850),_0x319902(0x1fb)),_0xeefeaf=a41_0x1cd9d2['join'](_0x3d159b,_0x319902(0x214));let _0xab71b2='1.0.0';try{const _0xa1df68=JSON[_0x319902(0x1c4)](a41_0x22c07f[_0x319902(0x1e7)](_0xeefeaf,_0x319902(0x1d2)));_0xab71b2=_0xa1df68['version']||'1.0.0';}catch(_0x153553){}const _0x58c374=readConfig(),_0x1f2c56=typeof _0x58c374[_0x319902(0x1cc)]===_0x319902(0x1db)?_0x58c374[_0x319902(0x1cc)]:undefined,{app:_0x804845,appcode:_0x489c6a,..._0x140708}=_0x58c374,_0x538569={..._0x140708,'appcode':_0xd63ef5||'','env':_0x89f1b0||_0x1f2c56||_0x319902(0x207),'createdAt':new Date()[_0x319902(0x216)](),'version':_0xab71b2};a41_0x22c07f['writeFileSync'](_0xf9b607,JSON['stringify'](_0x538569,null,0x2),_0x319902(0x1d2)),_0xd63ef5?console[_0x319902(0x20d)]('√\x20配置文件已创建,应用AppCode:\x20'+_0xd63ef5):console[_0x319902(0x20d)]('√\x20配置文件已创建,可稍后使用\x20\x27lovrabet\x20config\x20set\x20appcode\x20<app-code>\x27\x20配置'),logger[_0x319902(0x1c2)](_0x319902(0x1e4),'配置应用AppCode:\x20'+_0xd63ef5,{'projectName':_0x39209c,'configFile':_0x319902(0x1be)});}catch(_0x2f4d26){logger[_0x319902(0x218)]('create',_0x319902(0x1ce)+_0xd63ef5,{'projectName':_0x39209c,'error':_0x2f4d26 instanceof Error?_0x2f4d26[_0x319902(0x1ef)]:String(_0x2f4d26)});}};useEffect(()=>{const _0x19d0cc=a41_0x2369;_0x263e32[_0x19d0cc(0x1fc)]&&_0x390123(_0x263e32[_0x19d0cc(0x1fc)]);},[_0x263e32['projectCode']]);if(!_0x5d0635&&!_0xe75f4f&&!_0x263e32[_0x15c5d2(0x1fc)])return a41_0x1646a5(EnhancedGuidedCreate,{'onCreate':_0x58aabd,'env':_0x263e32[_0x15c5d2(0x1cc)]});if(_0x5d0635)return a41_0x3c97c0(a41_0x594702,{'children':[a41_0x3c97c0(Box,{'marginTop':0x1,'children':[a41_0x1646a5(Box,{'width':'1'}),a41_0x1646a5(Text,{'color':'green','children':'\x20√\x20'}),a41_0x1646a5(Text,{'children':_0x15c5d2(0x20f)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'children':_0x4ddf89?.[_0x15c5d2(0x1f5)]}),_0x4ddf89?.[_0x15c5d2(0x1e1)]&&a41_0x3c97c0(a41_0x594702,{'children':[a41_0x1646a5(Text,{'children':_0x15c5d2(0x1dc)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'children':_0x4ddf89[_0x15c5d2(0x1e1)]})]})]}),a41_0x1646a5(TaskRunning,{..._0x3e0fd0}),a41_0x1646a5(TaskRunning,{..._0xdd00bf}),a41_0x1646a5(TaskRunning,{..._0x92a824})]});if(_0xe75f4f)return a41_0x3c97c0(a41_0x594702,{'children':[a41_0x3c97c0(Box,{'marginTop':0x1,'children':[a41_0x1646a5(Box,{'width':'1'}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'children':_0x15c5d2(0x201)}),a41_0x1646a5(Text,{'children':_0x15c5d2(0x20f)}),a41_0x1646a5(Text,{'color':'green','children':_0x4ddf89?.[_0x15c5d2(0x1f5)]}),_0x4ddf89?.['appCode']&&a41_0x3c97c0(a41_0x594702,{'children':[a41_0x1646a5(Text,{'children':_0x15c5d2(0x1dc)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'children':_0x4ddf89[_0x15c5d2(0x1e1)]})]})]}),a41_0x1646a5(TaskFinished,{..._0x3e0fd0}),a41_0x1646a5(TaskFinished,{..._0xdd00bf}),a41_0x1646a5(TaskFinished,{..._0x92a824}),a41_0x1646a5(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'children':'─'[_0x15c5d2(0x1ea)](0x3c)})}),a41_0x1646a5(Box,{'children':a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'bold':!![],'children':_0x15c5d2(0x1d0)})}),a41_0x3c97c0(Box,{'marginTop':0x1,'flexDirection':_0x15c5d2(0x204),'children':[a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'children':'📁\x20项目名称:\x20'}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1d7),'bold':!![],'children':_0x4ddf89?.[_0x15c5d2(0x1f5)]})]}),_0x4ddf89?.['appCode']&&a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':'cyan','children':_0x15c5d2(0x20c)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1d7),'bold':!![],'children':_0x4ddf89[_0x15c5d2(0x1e1)]})]}),a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'children':'📦\x20API配置:\x20'}),_0x4ddf89?.[_0x15c5d2(0x1e0)]?a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'bold':!![],'children':_0x15c5d2(0x1e6)}):_0x4ddf89?.[_0x15c5d2(0x1e1)]?a41_0x1646a5(Text,{'color':_0x15c5d2(0x20a),'bold':!![],'children':'需手动拉取'}):a41_0x1646a5(Text,{'color':'gray','bold':!![],'children':_0x15c5d2(0x1e5)})]})]}),a41_0x1646a5(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'bold':!![],'children':'🚀\x20接下来可以:'})}),a41_0x3c97c0(Box,{'marginLeft':0x2,'flexDirection':_0x15c5d2(0x204),'children':[a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'children':_0x15c5d2(0x1d3)}),a41_0x1646a5(Text,{'color':'white','children':'启动项目:\x20'}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'bold':!![],'children':_0x15c5d2(0x1d5)+_0x4ddf89?.[_0x15c5d2(0x1f5)]+_0x15c5d2(0x1d9)})]}),_0x4ddf89?.['appCode']&&!_0x4ddf89?.['pullApi']&&a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x20a),'children':_0x15c5d2(0x1cf)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1d7),'children':_0x15c5d2(0x1ca)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'bold':!![],'children':_0x15c5d2(0x1ed)})]}),!_0x4ddf89?.['appCode']&&a41_0x3c97c0(a41_0x594702,{'children':[a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x1bb),'children':_0x15c5d2(0x1cf)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1d7),'children':_0x15c5d2(0x1e2)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1f7),'bold':!![],'children':_0x15c5d2(0x219)})]}),a41_0x3c97c0(Box,{'children':[a41_0x1646a5(Text,{'color':_0x15c5d2(0x1bb),'children':_0x15c5d2(0x1d1)}),a41_0x1646a5(Text,{'color':_0x15c5d2(0x1d7),'children':_0x15c5d2(0x1ca)}),a41_0x1646a5(Text,{'color':'cyan','bold':!![],'children':_0x15c5d2(0x1ba)})]})]})]}),a41_0x1646a5(Box,{'marginTop':0x1,'children':a41_0x1646a5(Text,{'color':_0x15c5d2(0x205),'children':'─'[_0x15c5d2(0x1ea)](0x3c)})})]});return null;}
1
+ const a43_0x7dd26=a43_0x3696;(function(_0x1ee963,_0x15db06){const _0x326bac=a43_0x3696,_0xb8356a=_0x1ee963();while(!![]){try{const _0x154d56=-parseInt(_0x326bac(0x10e))/0x1+parseInt(_0x326bac(0x109))/0x2+parseInt(_0x326bac(0xfc))/0x3*(parseInt(_0x326bac(0xec))/0x4)+parseInt(_0x326bac(0xe0))/0x5+-parseInt(_0x326bac(0x144))/0x6*(parseInt(_0x326bac(0x127))/0x7)+-parseInt(_0x326bac(0xef))/0x8*(-parseInt(_0x326bac(0xf8))/0x9)+parseInt(_0x326bac(0x13b))/0xa*(-parseInt(_0x326bac(0x105))/0xb);if(_0x154d56===_0x15db06)break;else _0xb8356a['push'](_0xb8356a['shift']());}catch(_0x48355e){_0xb8356a['push'](_0xb8356a['shift']());}}}(a43_0x293a,0x1d957));import{jsx as a43_0x2e7a81,Fragment as a43_0x3d6ea5,jsxs as a43_0x46344a}from'react/jsx-runtime';import a43_0x2ba865 from'path';import a43_0x42c93d from'fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';import{pullApiSilent}from'../api/pull-silent.js';import{readConfig}from'../utils/config.js';import{useCopyProjectTemplate}from'./use-copy-project-template.js';import{useInstallDependencies}from'./use-install-dependencies.js';import{useFormatCode}from'./use-format-code.js';import{TaskFinished}from'./task-finished.js';import{TaskRunning}from'./task-running.js';import{logger}from'../utils/logger.js';import{configureMcp,copySharedSkills,installSkill,createSkillManifest}from'../ai-setup/config.js';function a43_0x3696(_0x274be5,_0x5f09e8){_0x274be5=_0x274be5-0xd5;const _0x293ab1=a43_0x293a();let _0x369664=_0x293ab1[_0x274be5];return _0x369664;}function a43_0x293a(){const _0x315f05=['green','online','lovrabet\x20api\x20pull','*\x20清理失败的项目目录:\x20','1.\x20','env','join','error','writeFileSync','\x20\x20•\x20MCP\x20服务器:\x20','项目创建完成:\x20','resolve','×\x20项目名过长,最多支持\x20100\x20个字符','项目名称:\x20','warn','length','×\x20项目目录\x20','252745VUmOTa','Claude\x20Code','\x20MCP\x20','API\x20配置拉取成功:\x20','\x20Skill\x20','doTask','\x20&&\x20lovrabet\x20start','utf8','log','has','lovrabet\x20config\x20set\x20appcode\x20[app-code]','skill','2048SWPNwl','manual','parse','32qMXjqG','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','accessSync','repeat','status','constants','!\x20API\x20配置拉取失败,可稍后手动执行:\x20lovrabet\x20api\x20pull','package.json','√\x20package.json\x20已更新:\x20name=','176868CjWzUR','√\x20Lovrabet\x20MCP\x20和\x20Skill\x20配置完成','*\x20正在配置\x20Lovrabet\x20MCP\x20和\x20Skill...','配置应用AppCode:\x20','1167NUasJo','.lovrabetrc','\x20\x20✗\x20MCP\x20','red','项目创建失败:\x20','readFileSync','1.\x20配置\x20Lovrabet\x20MCP\x20和\x20Skill','√\x20配置文件已创建,可稍后使用\x20\x27lovrabet\x20config\x20set\x20appcode\x20<app-code>\x27\x20配置','清理项目目录失败:\x20','1507hvtRLD','\x20已存在,请使用其他项目名','gray','启动项目:\x20','71494Awagvd','trim','×\x20项目名包含非法字符,不允许使用:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20及控制字符','mcp','√\x20API\x20配置拉取完成','125096DliFKU','cd\x20','*\x20正在为项目\x20','✓\x20Skill\x20安装完成:','map','\x20|\x20应用AppCode:\x20','Cursor','yellow','push','filter','existsSync','setLogPath','×\x20无法在当前目录创建项目,请检查目录权限','3.\x20','!\x20API\x20配置拉取异常,项目已创建,可稍后手动执行:\x20lovrabet\x20api\x20pull','cwd','pullApi','W_OK','toLocaleString','success','version','projectCode','开始创建项目:\x20','×\x20项目名不能为空','selectedIDEs','7AmwwJX','更新\x20package.json\x20name','appCode','API\x20配置拉取失败:\x20','aiSetup','dirname','拉取API配置:\x20','\x20√\x20','stringify','skill-','../..','cursor','更新\x20package.json\x20失败','message','1.0.0','\x20\x20✗\x20Skill\x20','column','✓\x20MCP\x20服务器配置完成:','ide','\x20创建配置文件','4910hebzvm','\x20配置应用AppCode:\x20','cyan','🚀\x20接下来:','white','2.\x20','description','name','*\x20正在拉取\x20API\x20配置...','303204aBznFP','create','info','projectName','\x20Generated\x20by\x20lovrabet\x20cli\x20','claude','string'];a43_0x293a=function(){return _0x315f05;};return a43_0x293a();}const MCP_IDES=new Set([a43_0x7dd26(0x132),a43_0x7dd26(0x149)]);export function CreateApp(_0x357243){const _0x3cf7f9=a43_0x7dd26,[_0x2a5a31,_0xea32f4]=useState(![]),[_0x84548e,_0xf1c6b0]=useState(![]),[_0x25d940,_0x2e27b4]=useState(null),[_0x3bd517,_0x5addfe]=useState(null),_0x2cfccc=useCopyProjectTemplate(),_0x494093=useInstallDependencies(),_0x39df13=useFormatCode(),_0x328f58=async _0x4c2c5b=>{const _0x5042f4=a43_0x3696;if(!_0x4c2c5b[_0x5042f4(0x147)]||_0x4c2c5b[_0x5042f4(0x147)][_0x5042f4(0x10a)]()===''){console['error'](_0x5042f4(0x125));return;}const _0x26f00e=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x26f00e['test'](_0x4c2c5b['projectName'])){console[_0x5042f4(0xd6)](_0x5042f4(0x10b));return;}if(_0x4c2c5b[_0x5042f4(0x147)][_0x5042f4(0xde)]>0x64){console[_0x5042f4(0xd6)](_0x5042f4(0xdb));return;}const _0x29e262=a43_0x2ba865[_0x5042f4(0xda)](process[_0x5042f4(0x11d)](),_0x4c2c5b[_0x5042f4(0x147)]);if(a43_0x42c93d[_0x5042f4(0x118)](_0x29e262)){console['error'](_0x5042f4(0xdf)+_0x4c2c5b[_0x5042f4(0x147)]+_0x5042f4(0x106));return;}try{const _0x90f31b=a43_0x2ba865[_0x5042f4(0x12c)](_0x29e262);a43_0x42c93d[_0x5042f4(0xf1)](_0x90f31b,a43_0x42c93d[_0x5042f4(0xf4)][_0x5042f4(0x11f)]);}catch(_0xfda1c){console[_0x5042f4(0xd6)](_0x5042f4(0x11a));return;}_0x2e27b4(_0x4c2c5b),_0xea32f4(!![]),logger[_0x5042f4(0x119)](_0x29e262),logger[_0x5042f4(0x146)](_0x5042f4(0x145),_0x5042f4(0x124)+_0x4c2c5b[_0x5042f4(0x147)],{'projectDir':_0x29e262,'appCode':_0x4c2c5b[_0x5042f4(0x129)]});try{await _0x2cfccc[_0x5042f4(0xe5)](_0x4c2c5b[_0x5042f4(0x147)]),await _0x450c29(_0x4c2c5b['projectName']),await _0x494093['doTask'](_0x4c2c5b[_0x5042f4(0x147)]),await _0x39df13[_0x5042f4(0xe5)](_0x4c2c5b[_0x5042f4(0x147)]),await _0x395e5c(_0x4c2c5b[_0x5042f4(0x147)],_0x4c2c5b['appCode']||'',_0x4c2c5b[_0x5042f4(0x150)]);if(_0x4c2c5b[_0x5042f4(0x11e)]&&_0x4c2c5b[_0x5042f4(0x129)]){console['log'](_0x5042f4(0x143));try{const _0x3e5023=await pullApiSilent(_0x4c2c5b[_0x5042f4(0x129)],undefined,_0x29e262,_0x4c2c5b[_0x5042f4(0x150)]);_0x3e5023?(console[_0x5042f4(0xe8)](_0x5042f4(0x10d)),logger[_0x5042f4(0x146)](_0x5042f4(0x145),_0x5042f4(0xe3)+_0x4c2c5b[_0x5042f4(0x129)])):(console[_0x5042f4(0xe8)](_0x5042f4(0xf5)),logger[_0x5042f4(0xdd)](_0x5042f4(0x145),_0x5042f4(0x12a)+_0x4c2c5b[_0x5042f4(0x129)]));}catch(_0x47bf89){console[_0x5042f4(0xe8)](_0x5042f4(0x11c)),logger[_0x5042f4(0xdd)]('create','API\x20配置拉取异常',{'error':_0x47bf89 instanceof Error?_0x47bf89['message']:String(_0x47bf89)});}}if(_0x4c2c5b[_0x5042f4(0x12b)]&&_0x4c2c5b['selectedIDEs']&&_0x4c2c5b[_0x5042f4(0x126)][_0x5042f4(0xde)]>0x0&&_0x4c2c5b[_0x5042f4(0x129)]){console[_0x5042f4(0xe8)](_0x5042f4(0xfa));const _0x6dbbb2=[],_0x5515f8=[],_0x47f1a9=_0x4c2c5b[_0x5042f4(0x126)][_0x5042f4(0x117)](_0xe96a47=>MCP_IDES[_0x5042f4(0xe9)](_0xe96a47)),_0x32c0e2=_0x4c2c5b['selectedIDEs'];for(const _0x4a4e3f of _0x47f1a9){try{const _0x22b7c9=await configureMcp(_0x4a4e3f,_0x29e262);_0x6dbbb2[_0x5042f4(0x116)]({'ide':_0x4a4e3f===_0x5042f4(0x132)?_0x5042f4(0x114):_0x5042f4(0xe1),'status':_0x22b7c9['status'],'message':_0x22b7c9[_0x5042f4(0x134)]}),console[_0x5042f4(0xe8)]('\x20\x20'+(_0x22b7c9[_0x5042f4(0xf3)]==='success'?'✓':_0x22b7c9[_0x5042f4(0xf3)]===_0x5042f4(0xed)?'⚠️':'✗')+_0x5042f4(0xe2)+_0x4a4e3f+':\x20'+_0x22b7c9[_0x5042f4(0x134)]);}catch(_0x2ad094){_0x6dbbb2['push']({'ide':_0x4a4e3f===_0x5042f4(0x132)?_0x5042f4(0x114):'Claude\x20Code','status':_0x5042f4(0xd6),'message':_0x2ad094 instanceof Error?_0x2ad094[_0x5042f4(0x134)]:String(_0x2ad094)}),console[_0x5042f4(0xe8)](_0x5042f4(0xfe)+_0x4a4e3f+':\x20'+(_0x2ad094 instanceof Error?_0x2ad094[_0x5042f4(0x134)]:String(_0x2ad094)));}}await copySharedSkills(_0x29e262);for(const _0x56eed9 of _0x32c0e2){try{const _0x27d096=await installSkill(_0x56eed9,_0x29e262);_0x5515f8['push']({'ide':_0x27d096[_0x5042f4(0x139)],'status':_0x27d096[_0x5042f4(0xf3)],'message':_0x27d096[_0x5042f4(0x134)]}),console[_0x5042f4(0xe8)]('\x20\x20'+(_0x27d096[_0x5042f4(0xf3)]===_0x5042f4(0x121)?'✓':'✗')+_0x5042f4(0xe4)+_0x27d096[_0x5042f4(0x139)]+':\x20'+_0x27d096[_0x5042f4(0x134)]);}catch(_0x57bb41){_0x5515f8['push']({'ide':_0x56eed9,'status':_0x5042f4(0xd6),'message':_0x57bb41 instanceof Error?_0x57bb41['message']:String(_0x57bb41)}),console[_0x5042f4(0xe8)](_0x5042f4(0x136)+_0x56eed9+':\x20'+(_0x57bb41 instanceof Error?_0x57bb41[_0x5042f4(0x134)]:String(_0x57bb41)));}}if(_0x5515f8[_0x5042f4(0xde)]>0x0){const _0x5bb4aa=_0x5515f8[_0x5042f4(0x117)](_0x533a11=>_0x533a11[_0x5042f4(0xf3)]===_0x5042f4(0x121))[_0x5042f4(0x112)](_0x13e556=>_0x13e556[_0x5042f4(0x139)]);_0x5bb4aa[_0x5042f4(0xde)]>0x0&&createSkillManifest(_0x29e262,_0x5bb4aa);}_0x5addfe({'mcp':_0x6dbbb2,'skill':_0x5515f8}),console[_0x5042f4(0xe8)](_0x5042f4(0xf9));}logger[_0x5042f4(0x121)](_0x5042f4(0x145),_0x5042f4(0xd9)+_0x4c2c5b['projectName']),_0xf1c6b0(!![]),_0xea32f4(![]);}catch(_0x41f1d0){logger[_0x5042f4(0xd6)](_0x5042f4(0x145),_0x5042f4(0x100)+_0x4c2c5b['projectName'],{'error':_0x41f1d0 instanceof Error?_0x41f1d0[_0x5042f4(0x134)]:String(_0x41f1d0)});try{a43_0x42c93d[_0x5042f4(0x118)](_0x29e262)&&(console[_0x5042f4(0xe8)](_0x5042f4(0x14e)+_0x29e262),a43_0x42c93d['rmSync'](_0x29e262,{'recursive':!![],'force':!![]}));}catch(_0x57c98d){logger[_0x5042f4(0xdd)]('create',_0x5042f4(0x104)+_0x29e262);}_0xea32f4(![]),console['error']('×\x20项目创建失败:\x20'+(_0x41f1d0 instanceof Error?_0x41f1d0[_0x5042f4(0x134)]:String(_0x41f1d0)));}},_0x1ffc09=async _0x2665a=>{const _0x2f47a0=a43_0x3696;await _0x328f58({'projectName':_0x2665a,'env':_0x357243[_0x2f47a0(0x150)]});},_0x450c29=async _0x11a790=>{const _0x8996d0=a43_0x3696,_0x28f219=a43_0x2ba865[_0x8996d0(0xda)](process[_0x8996d0(0x11d)](),_0x11a790),_0x5e828b=a43_0x2ba865[_0x8996d0(0xd5)](_0x28f219,'package.json');try{console[_0x8996d0(0xe8)]('*\x20正在更新\x20package.json\x20的\x20name\x20和\x20description\x20字段');const _0x10ac16=fileURLToPath(import.meta.url),_0x5b2365=a43_0x2ba865[_0x8996d0(0xda)](a43_0x2ba865[_0x8996d0(0x12c)](_0x10ac16),_0x8996d0(0x131)),_0x17458f=a43_0x2ba865['join'](_0x5b2365,_0x8996d0(0xf6));let _0x3eb904=_0x8996d0(0x135);try{const _0x4900fd=JSON['parse'](a43_0x42c93d['readFileSync'](_0x17458f,'utf8'));_0x3eb904=_0x4900fd[_0x8996d0(0x122)]||_0x8996d0(0x135);}catch(_0x4be237){}const _0x124ca8=a43_0x42c93d[_0x8996d0(0x101)](_0x5e828b,_0x8996d0(0xe7)),_0xddf74c=JSON['parse'](_0x124ca8);_0xddf74c[_0x8996d0(0x142)]=_0x11a790,_0xddf74c[_0x8996d0(0x141)]=_0x11a790+_0x8996d0(0x148)+_0x3eb904,a43_0x42c93d[_0x8996d0(0xd7)](_0x5e828b,JSON[_0x8996d0(0x12f)](_0xddf74c,null,0x2)+'\x0a',_0x8996d0(0xe7)),console['log'](_0x8996d0(0xf7)+_0x11a790),logger[_0x8996d0(0x146)](_0x8996d0(0x145),_0x8996d0(0x128));}catch(_0x13a650){logger[_0x8996d0(0xd6)](_0x8996d0(0x145),_0x8996d0(0x133));throw _0x13a650;}},_0x395e5c=async(_0x3615a6,_0x2dffd0,_0x33d820)=>{const _0x4f5377=a43_0x3696,_0x1410c3=a43_0x2ba865[_0x4f5377(0xda)](process[_0x4f5377(0x11d)](),_0x3615a6),_0x48d743=a43_0x2ba865[_0x4f5377(0xd5)](_0x1410c3,_0x4f5377(0xfd));try{_0x2dffd0?console['log']('*\x20正在为项目\x20'+_0x3615a6+_0x4f5377(0x13c)+_0x2dffd0):console[_0x4f5377(0xe8)](_0x4f5377(0x110)+_0x3615a6+_0x4f5377(0x13a));const _0x38ec05=fileURLToPath(import.meta.url),_0x1cf56e=a43_0x2ba865[_0x4f5377(0xda)](a43_0x2ba865[_0x4f5377(0x12c)](_0x38ec05),_0x4f5377(0x131)),_0x3f0221=a43_0x2ba865[_0x4f5377(0xd5)](_0x1cf56e,_0x4f5377(0xf6));let _0x498398='1.0.0';try{const _0x8a8482=JSON[_0x4f5377(0xee)](a43_0x42c93d['readFileSync'](_0x3f0221,_0x4f5377(0xe7)));_0x498398=_0x8a8482[_0x4f5377(0x122)]||'1.0.0';}catch(_0x34ceb2){}const _0x5d30ae=readConfig(),_0x49dc4f=typeof _0x5d30ae[_0x4f5377(0x150)]===_0x4f5377(0x14a)?_0x5d30ae[_0x4f5377(0x150)]:undefined,{app:_0x4cabe9,appcode:_0x296019,..._0x1bde33}=_0x5d30ae,_0xf7de43={..._0x1bde33,'appcode':_0x2dffd0||'','env':_0x33d820||_0x49dc4f||_0x4f5377(0x14c),'createdAt':new Date()[_0x4f5377(0x120)](),'version':_0x498398};a43_0x42c93d[_0x4f5377(0xd7)](_0x48d743,JSON[_0x4f5377(0x12f)](_0xf7de43,null,0x2),_0x4f5377(0xe7)),_0x2dffd0?console[_0x4f5377(0xe8)]('√\x20配置文件已创建,应用AppCode:\x20'+_0x2dffd0):console[_0x4f5377(0xe8)](_0x4f5377(0x103)),logger[_0x4f5377(0x146)]('create',_0x4f5377(0xfb)+_0x2dffd0);}catch(_0x50dc22){logger[_0x4f5377(0xd6)]('create','配置应用AppCode失败');}};useEffect(()=>{const _0x5bda2c=a43_0x3696;_0x357243[_0x5bda2c(0x123)]&&_0x1ffc09(_0x357243[_0x5bda2c(0x123)]);},[_0x357243[_0x3cf7f9(0x123)]]);if(!_0x2a5a31&&!_0x84548e&&!_0x357243[_0x3cf7f9(0x123)])return a43_0x2e7a81(EnhancedGuidedCreate,{'onCreate':_0x328f58,'env':_0x357243[_0x3cf7f9(0x150)]});if(_0x2a5a31)return a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x46344a(Box,{'marginTop':0x1,'children':[a43_0x2e7a81(Box,{'width':'1'}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x3cf7f9(0x12e)}),a43_0x2e7a81(Text,{'children':_0x3cf7f9(0xdc)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x25d940?.[_0x3cf7f9(0x147)]}),_0x25d940?.[_0x3cf7f9(0x129)]&&a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x2e7a81(Text,{'children':'\x20|\x20应用AppCode:\x20'}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'children':_0x25d940[_0x3cf7f9(0x129)]})]})]}),a43_0x2e7a81(TaskRunning,{..._0x2cfccc}),a43_0x2e7a81(TaskRunning,{..._0x494093}),a43_0x2e7a81(TaskRunning,{..._0x39df13})]});if(_0x84548e){const _0x11e7fb=_0x3bd517&&(_0x3bd517[_0x3cf7f9(0x10c)][_0x3cf7f9(0xde)]>0x0||_0x3bd517[_0x3cf7f9(0xeb)][_0x3cf7f9(0xde)]>0x0);return a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x46344a(Box,{'marginTop':0x1,'children':[a43_0x2e7a81(Box,{'width':'1'}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x3cf7f9(0x12e)}),a43_0x2e7a81(Text,{'children':_0x3cf7f9(0xdc)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x25d940?.['projectName']}),_0x25d940?.[_0x3cf7f9(0x129)]&&a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x2e7a81(Text,{'children':_0x3cf7f9(0x113)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'children':_0x25d940[_0x3cf7f9(0x129)]})]})]}),a43_0x2e7a81(TaskFinished,{..._0x2cfccc}),a43_0x2e7a81(TaskFinished,{..._0x494093}),a43_0x2e7a81(TaskFinished,{..._0x39df13}),a43_0x2e7a81(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':'─'[_0x3cf7f9(0xf2)](0x3c)})}),_0x11e7fb&&a43_0x46344a(a43_0x3d6ea5,{'children':[_0x3bd517[_0x3cf7f9(0x10c)]['length']>0x0&&a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x2e7a81(Box,{'marginTop':0x1,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'bold':!![],'children':_0x3cf7f9(0x138)})}),_0x3bd517[_0x3cf7f9(0x10c)][_0x3cf7f9(0x112)]((_0x1969a8,_0x457ef2)=>a43_0x2e7a81(Box,{'marginLeft':0x2,'children':a43_0x46344a(Text,{'color':_0x1969a8[_0x3cf7f9(0xf3)]==='success'?_0x3cf7f9(0x13f):_0x1969a8[_0x3cf7f9(0xf3)]===_0x3cf7f9(0xed)?_0x3cf7f9(0x115):_0x3cf7f9(0xff),'children':[_0x1969a8[_0x3cf7f9(0x139)],':\x20',_0x1969a8['message']]})},'mcp-'+_0x457ef2))]}),_0x3bd517[_0x3cf7f9(0xeb)][_0x3cf7f9(0xde)]>0x0&&a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x2e7a81(Box,{'marginTop':_0x3bd517[_0x3cf7f9(0x10c)][_0x3cf7f9(0xde)]>0x0?0x1:0x0,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'bold':!![],'children':_0x3cf7f9(0x111)})}),_0x3bd517['skill'][_0x3cf7f9(0x112)]((_0x2250bd,_0x3c4649)=>a43_0x2e7a81(Box,{'marginLeft':0x2,'children':a43_0x46344a(Text,{'color':_0x2250bd[_0x3cf7f9(0xf3)]===_0x3cf7f9(0x121)?_0x3cf7f9(0x13f):_0x3cf7f9(0xff),'children':[_0x2250bd[_0x3cf7f9(0x139)],':\x20',_0x2250bd['message']]})},_0x3cf7f9(0x130)+_0x3c4649))]}),a43_0x2e7a81(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':'─'[_0x3cf7f9(0xf2)](0x3c)})})]}),a43_0x2e7a81(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':_0x3cf7f9(0x13e)})}),a43_0x46344a(Box,{'marginLeft':0x2,'flexDirection':_0x3cf7f9(0x137),'children':[_0x11e7fb?a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x46344a(Box,{'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x3cf7f9(0x14f)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':_0x3cf7f9(0x108)}),a43_0x2e7a81(Text,{'color':'cyan','bold':!![],'children':_0x3cf7f9(0x10f)+_0x25d940?.[_0x3cf7f9(0x147)]+_0x3cf7f9(0xe6)})]}),_0x25d940?.[_0x3cf7f9(0x129)]&&!_0x25d940?.[_0x3cf7f9(0x11e)]&&a43_0x46344a(Box,{'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x115),'children':_0x3cf7f9(0x140)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':_0x3cf7f9(0x12d)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':'lovrabet\x20api\x20pull'})]})]}):a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x2e7a81(Box,{'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x115),'bold':!![],'children':_0x3cf7f9(0x102)})}),a43_0x46344a(Box,{'marginLeft':0x2,'marginTop':0x1,'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':'\x20\x20•\x20Skill:\x20'}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':'lovrabet\x20skill\x20install'})]}),a43_0x46344a(Box,{'marginLeft':0x2,'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':_0x3cf7f9(0xd8)}),a43_0x2e7a81(Text,{'color':'cyan','bold':!![],'children':'lovrabet\x20mcp\x20install'})]}),a43_0x46344a(Box,{'marginTop':0x1,'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':_0x3cf7f9(0x140)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':_0x3cf7f9(0x108)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':_0x3cf7f9(0x10f)+_0x25d940?.[_0x3cf7f9(0x147)]+_0x3cf7f9(0xe6)})]}),_0x25d940?.['appCode']&&!_0x25d940?.[_0x3cf7f9(0x11e)]&&a43_0x46344a(Box,{'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x115),'children':_0x3cf7f9(0x11b)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':_0x3cf7f9(0x12d)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':_0x3cf7f9(0x14d)})]})]}),!_0x25d940?.[_0x3cf7f9(0x129)]&&a43_0x46344a(a43_0x3d6ea5,{'children':[a43_0x46344a(Box,{'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x107),'children':_0x3cf7f9(0x140)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13f),'children':'配置AppCode:\x20'}),a43_0x2e7a81(Text,{'color':'cyan','bold':!![],'children':_0x3cf7f9(0xea)})]}),a43_0x46344a(Box,{'children':[a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x107),'children':'3.\x20'}),a43_0x2e7a81(Text,{'color':'white','children':_0x3cf7f9(0x12d)}),a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x13d),'bold':!![],'children':_0x3cf7f9(0xf0)})]})]})]}),a43_0x2e7a81(Box,{'marginTop':0x1,'children':a43_0x2e7a81(Text,{'color':_0x3cf7f9(0x14b),'children':'─'[_0x3cf7f9(0xf2)](0x3c)})})]});}return null;}
@@ -1 +1 @@
1
- (function(_0x26c5e4,_0x94d591){var _0x294732=a42_0x4bd5,_0x32a236=_0x26c5e4();while(!![]){try{var _0x461971=parseInt(_0x294732(0x1e8))/0x1*(-parseInt(_0x294732(0x1f2))/0x2)+parseInt(_0x294732(0x1ec))/0x3+-parseInt(_0x294732(0x1ed))/0x4*(-parseInt(_0x294732(0x1ee))/0x5)+-parseInt(_0x294732(0x1ea))/0x6*(parseInt(_0x294732(0x1eb))/0x7)+-parseInt(_0x294732(0x1e7))/0x8*(-parseInt(_0x294732(0x1f1))/0x9)+-parseInt(_0x294732(0x1f0))/0xa*(parseInt(_0x294732(0x1e5))/0xb)+parseInt(_0x294732(0x1ef))/0xc*(-parseInt(_0x294732(0x1e9))/0xd);if(_0x461971===_0x94d591)break;else _0x32a236['push'](_0x32a236['shift']());}catch(_0x11b161){_0x32a236['push'](_0x32a236['shift']());}}}(a42_0x3091,0xc12d7));import{jsx as a42_0xc9dd8d,jsxs as a42_0x23dafb}from'react/jsx-runtime';function a42_0x4bd5(_0x3d71a6,_0x4e1311){_0x3d71a6=_0x3d71a6-0x1e5;var _0x309162=a42_0x3091();var _0x4bd58b=_0x309162[_0x3d71a6];return _0x4bd58b;}import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';export function TaskFinished(_0x3252cb){var _0xc477b9=a42_0x4bd5;return a42_0x23dafb(Box,{'children':[a42_0xc9dd8d(Box,{'width':'1'}),a42_0xc9dd8d(Text,{'color':'green','children':'\x20√\x20'}),a42_0xc9dd8d(Text,{'children':_0x3252cb['taskName']}),a42_0xc9dd8d(TaskTime,{'elapsed':_0x3252cb[_0xc477b9(0x1e6)]})]});}function a42_0x3091(){var _0x3f74e4=['6874280azfLfG','12qIuYuk','90140PeIHFo','126wlWQAu','25478sIzRJA','66bGxHdi','elapsed','524416InreOb','43MprsrS','5721885yvPXcH','2072502onEMqp','21iBnbUf','1730784hStgWh','4RLChAi'];a42_0x3091=function(){return _0x3f74e4;};return a42_0x3091();}
1
+ (function(_0x58b94e,_0xe85141){var _0xd834e4=a44_0x15f7,_0x5bb28c=_0x58b94e();while(!![]){try{var _0x28dd27=-parseInt(_0xd834e4(0x104))/0x1*(parseInt(_0xd834e4(0x101))/0x2)+-parseInt(_0xd834e4(0x10b))/0x3*(parseInt(_0xd834e4(0x106))/0x4)+-parseInt(_0xd834e4(0x108))/0x5+parseInt(_0xd834e4(0x109))/0x6*(-parseInt(_0xd834e4(0x105))/0x7)+-parseInt(_0xd834e4(0x10d))/0x8*(-parseInt(_0xd834e4(0x100))/0x9)+parseInt(_0xd834e4(0x107))/0xa*(parseInt(_0xd834e4(0x10a))/0xb)+-parseInt(_0xd834e4(0x102))/0xc*(-parseInt(_0xd834e4(0x10e))/0xd);if(_0x28dd27===_0xe85141)break;else _0x5bb28c['push'](_0x5bb28c['shift']());}catch(_0xdfcbf8){_0x5bb28c['push'](_0x5bb28c['shift']());}}}(a44_0x1565,0x7275d));function a44_0x15f7(_0x865e02,_0x335c8d){_0x865e02=_0x865e02-0xff;var _0x15653a=a44_0x1565();var _0x15f797=_0x15653a[_0x865e02];return _0x15f797;}import{jsx as a44_0xfe6e20,jsxs as a44_0x3178d4}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';function a44_0x1565(){var _0x2027ea=['11drEiOG','5043ZKGKDy','taskName','27672aLXhVn','13tfIyZK','green','\x20√\x20','1161VasRge','180CebIxj','25450644Fuaqco','elapsed','7729oImIhI','252399XopoAY','1224hQwYic','4910830QTglGg','3831935QCVsNP','102IQtkKW'];a44_0x1565=function(){return _0x2027ea;};return a44_0x1565();}export function TaskFinished(_0x182ce1){var _0x52a8e6=a44_0x15f7;return a44_0x3178d4(Box,{'children':[a44_0xfe6e20(Box,{'width':'1'}),a44_0xfe6e20(Text,{'color':_0x52a8e6(0x10f),'children':_0x52a8e6(0xff)}),a44_0xfe6e20(Text,{'children':_0x182ce1[_0x52a8e6(0x10c)]}),a44_0xfe6e20(TaskTime,{'elapsed':_0x182ce1[_0x52a8e6(0x103)]})]});}
@@ -1 +1 @@
1
- function a43_0x46bc(_0x36164f,_0x4cd049){_0x36164f=_0x36164f-0xea;var _0x311ff8=a43_0x311f();var _0x46bcb4=_0x311ff8[_0x36164f];return _0x46bcb4;}(function(_0xb3de1e,_0x459b45){var _0x4e425c=a43_0x46bc,_0x5b79a4=_0xb3de1e();while(!![]){try{var _0x2796b7=parseInt(_0x4e425c(0xf6))/0x1+-parseInt(_0x4e425c(0xea))/0x2+-parseInt(_0x4e425c(0xf7))/0x3*(parseInt(_0x4e425c(0xec))/0x4)+parseInt(_0x4e425c(0xf3))/0x5+-parseInt(_0x4e425c(0xed))/0x6*(-parseInt(_0x4e425c(0xf8))/0x7)+-parseInt(_0x4e425c(0xf5))/0x8*(parseInt(_0x4e425c(0xef))/0x9)+-parseInt(_0x4e425c(0xf2))/0xa*(parseInt(_0x4e425c(0xf1))/0xb);if(_0x2796b7===_0x459b45)break;else _0x5b79a4['push'](_0x5b79a4['shift']());}catch(_0x52b861){_0x5b79a4['push'](_0x5b79a4['shift']());}}}(a43_0x311f,0x2a698));import{jsx as a43_0x3d1c08,jsxs as a43_0x3a9fb5}from'react/jsx-runtime';import{Text}from'ink';function a43_0x311f(){var _0x30af4d=['1229688xHNwEK','323938hUcMPX','2073uEfUMu','91hQqGxO','98368woAYKP','\x20√\x20','600RtxrcX','143562GEECpN','finished','9XgSPfW','green','99kHFHAh','501710alrChu','1484075KokVMA','\x20\x20\x20'];a43_0x311f=function(){return _0x30af4d;};return a43_0x311f();}import a43_0x23707a from'ink-spinner';export function TaskLoading(_0x51f613){var _0x14f4bd=a43_0x46bc;if(_0x51f613[_0x14f4bd(0xee)])return a43_0x3d1c08(Text,{'color':_0x14f4bd(0xf0),'children':_0x14f4bd(0xeb)});if(_0x51f613['loading'])return a43_0x3a9fb5(Text,{'color':_0x14f4bd(0xf0),'children':['\x20',a43_0x3d1c08(a43_0x23707a,{'type':'dots'}),'\x20']});return a43_0x3d1c08(Text,{'children':_0x14f4bd(0xf4)});}
1
+ (function(_0x3c3908,_0x3ffbf0){var _0x3f17ad=a45_0x2f8f,_0x17669c=_0x3c3908();while(!![]){try{var _0x52c606=-parseInt(_0x3f17ad(0x1d1))/0x1*(parseInt(_0x3f17ad(0x1d5))/0x2)+-parseInt(_0x3f17ad(0x1c6))/0x3+-parseInt(_0x3f17ad(0x1c9))/0x4*(-parseInt(_0x3f17ad(0x1d4))/0x5)+parseInt(_0x3f17ad(0x1ca))/0x6+-parseInt(_0x3f17ad(0x1cd))/0x7*(-parseInt(_0x3f17ad(0x1cf))/0x8)+-parseInt(_0x3f17ad(0x1cc))/0x9+parseInt(_0x3f17ad(0x1cb))/0xa*(parseInt(_0x3f17ad(0x1d0))/0xb);if(_0x52c606===_0x3ffbf0)break;else _0x17669c['push'](_0x17669c['shift']());}catch(_0x4f2af6){_0x17669c['push'](_0x17669c['shift']());}}}(a45_0x220b,0x4610c));function a45_0x2f8f(_0x1771ea,_0x7c4caf){_0x1771ea=_0x1771ea-0x1c6;var _0x220bec=a45_0x220b();var _0x2f8f54=_0x220bec[_0x1771ea];return _0x2f8f54;}import{jsx as a45_0x3bb666,jsxs as a45_0x45bafc}from'react/jsx-runtime';import{Text}from'ink';function a45_0x220b(){var _0x15f81a=['\x20√\x20','217468oFSNFB','1245774tdOekK','190lcSkte','3020265AxeElx','7lJyTQm','loading','1157616rQatcR','344597nlhnDJ','179743NbkZOd','finished','green','15Eojiow','2jmzJBC','924987oVlhIe','dots'];a45_0x220b=function(){return _0x15f81a;};return a45_0x220b();}import a45_0x26cd3c from'ink-spinner';export function TaskLoading(_0x1e05ca){var _0x5a0e98=a45_0x2f8f;if(_0x1e05ca[_0x5a0e98(0x1d2)])return a45_0x3bb666(Text,{'color':_0x5a0e98(0x1d3),'children':_0x5a0e98(0x1c8)});if(_0x1e05ca[_0x5a0e98(0x1ce)])return a45_0x45bafc(Text,{'color':_0x5a0e98(0x1d3),'children':['\x20',a45_0x3bb666(a45_0x26cd3c,{'type':_0x5a0e98(0x1c7)}),'\x20']});return a45_0x3bb666(Text,{'children':'\x20\x20\x20'});}
@@ -1 +1 @@
1
- function a44_0x3907(_0x2397e5,_0x3e6706){_0x2397e5=_0x2397e5-0x153;var _0x3db328=a44_0x3db3();var _0x390794=_0x3db328[_0x2397e5];return _0x390794;}(function(_0x30aaee,_0x569ffa){var _0x44c005=a44_0x3907,_0x45ee69=_0x30aaee();while(!![]){try{var _0xa48fc8=parseInt(_0x44c005(0x157))/0x1+parseInt(_0x44c005(0x15a))/0x2+-parseInt(_0x44c005(0x158))/0x3+-parseInt(_0x44c005(0x153))/0x4+-parseInt(_0x44c005(0x156))/0x5+parseInt(_0x44c005(0x154))/0x6*(parseInt(_0x44c005(0x155))/0x7)+parseInt(_0x44c005(0x15b))/0x8;if(_0xa48fc8===_0x569ffa)break;else _0x45ee69['push'](_0x45ee69['shift']());}catch(_0x458af0){_0x45ee69['push'](_0x45ee69['shift']());}}}(a44_0x3db3,0x85fd5));import{jsx as a44_0x455ebd,jsxs as a44_0x5ab15e}from'react/jsx-runtime';import{Box,Text}from'ink';function a44_0x3db3(){var _0x42b118=['5238985glBdTs','362724DuoROJ','1956420PdDlnR','taskName','784834EMEyMI','14510768WHcbZu','3311236lSiBJi','30RUWiAU','710612LfIwsE'];a44_0x3db3=function(){return _0x42b118;};return a44_0x3db3();}import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x241cc1){var _0xb865ea=a44_0x3907;return a44_0x5ab15e(Box,{'children':[a44_0x455ebd(Box,{'width':'1'}),a44_0x455ebd(TaskLoading,{..._0x241cc1}),a44_0x455ebd(Text,{'children':_0x241cc1[_0xb865ea(0x159)]}),a44_0x455ebd(TaskTime,{'elapsed':_0x241cc1['elapsed']})]});}
1
+ (function(_0xd3bbf1,_0x491146){var _0x1fa251=a46_0x5517,_0x4f95e4=_0xd3bbf1();while(!![]){try{var _0x2b3471=-parseInt(_0x1fa251(0x1c5))/0x1*(-parseInt(_0x1fa251(0x1c9))/0x2)+parseInt(_0x1fa251(0x1cf))/0x3*(-parseInt(_0x1fa251(0x1c3))/0x4)+-parseInt(_0x1fa251(0x1ce))/0x5*(parseInt(_0x1fa251(0x1c8))/0x6)+parseInt(_0x1fa251(0x1c4))/0x7*(parseInt(_0x1fa251(0x1cd))/0x8)+parseInt(_0x1fa251(0x1cb))/0x9*(-parseInt(_0x1fa251(0x1c6))/0xa)+parseInt(_0x1fa251(0x1d0))/0xb*(parseInt(_0x1fa251(0x1c7))/0xc)+parseInt(_0x1fa251(0x1ca))/0xd;if(_0x2b3471===_0x491146)break;else _0x4f95e4['push'](_0x4f95e4['shift']());}catch(_0x207cc3){_0x4f95e4['push'](_0x4f95e4['shift']());}}}(a46_0x35fe,0xb1e2f));function a46_0x5517(_0x456148,_0x1ede7a){_0x456148=_0x456148-0x1c3;var _0x35febd=a46_0x35fe();var _0x5517fb=_0x35febd[_0x456148];return _0x5517fb;}import{jsx as a46_0x22afdc,jsxs as a46_0x35e6fe}from'react/jsx-runtime';function a46_0x35fe(){var _0x9dd928=['12541419ZOLzUU','taskName','8WBKVJh','9625caeAPr','298761dzrdcC','1408CIDHzp','elapsed','4EUUpKR','1177799TlqQBq','7KImHCE','10ycGZqE','81132TpFLqB','4254wGNCXS','171910pXVMhp','25365288xkDPMD'];a46_0x35fe=function(){return _0x9dd928;};return a46_0x35fe();}import{Box,Text}from'ink';import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x456f28){var _0x375c53=a46_0x5517;return a46_0x35e6fe(Box,{'children':[a46_0x22afdc(Box,{'width':'1'}),a46_0x22afdc(TaskLoading,{..._0x456f28}),a46_0x22afdc(Text,{'children':_0x456f28[_0x375c53(0x1cc)]}),a46_0x22afdc(TaskTime,{'elapsed':_0x456f28[_0x375c53(0x1d1)]})]});}
@@ -1 +1 @@
1
- function a45_0x1a15(){var _0x2f8f79=['2371890WNytzR','6670596VPWPKK','elapsed','9736MaFFas','1785ihqnDp','3445960TsZwTA','4118968GLvSUu','122824yobbvQ','3MRyYGi','14082309eJWhnE','gray'];a45_0x1a15=function(){return _0x2f8f79;};return a45_0x1a15();}function a45_0x284b(_0x36fcca,_0x54230d){_0x36fcca=_0x36fcca-0xb7;var _0x1a1558=a45_0x1a15();var _0x284ba8=_0x1a1558[_0x36fcca];return _0x284ba8;}(function(_0xcde3ec,_0x41f113){var _0x4483cc=a45_0x284b,_0x230f20=_0xcde3ec();while(!![]){try{var _0x24465b=-parseInt(_0x4483cc(0xc0))/0x1+-parseInt(_0x4483cc(0xb9))/0x2*(-parseInt(_0x4483cc(0xc1))/0x3)+-parseInt(_0x4483cc(0xbc))/0x4*(parseInt(_0x4483cc(0xbd))/0x5)+-parseInt(_0x4483cc(0xba))/0x6+-parseInt(_0x4483cc(0xbe))/0x7+parseInt(_0x4483cc(0xbf))/0x8+parseInt(_0x4483cc(0xb7))/0x9;if(_0x24465b===_0x41f113)break;else _0x230f20['push'](_0x230f20['shift']());}catch(_0x3126e6){_0x230f20['push'](_0x230f20['shift']());}}}(a45_0x1a15,0xa380d));import{jsx as a45_0x5efec1,Fragment as a45_0x5ad3a7,jsxs as a45_0x3f6e6c}from'react/jsx-runtime';import{Text}from'ink';export function TaskTime(_0x1ed666){var _0x229ac7=a45_0x284b;if(_0x1ed666[_0x229ac7(0xbb)])return a45_0x3f6e6c(a45_0x5ad3a7,{'children':[a45_0x5efec1(Text,{'color':_0x229ac7(0xb8),'children':'\x20['}),a45_0x5efec1(Text,{'color':_0x229ac7(0xb8),'bold':!![],'children':_0x1ed666[_0x229ac7(0xbb)]}),a45_0x5efec1(Text,{'color':'gray','children':']'})]});return null;}
1
+ function a47_0x1ec7(_0x26ce4f,_0x3644fc){_0x26ce4f=_0x26ce4f-0x74;var _0x5ac745=a47_0x5ac7();var _0x1ec74b=_0x5ac745[_0x26ce4f];return _0x1ec74b;}function a47_0x5ac7(){var _0x71926b=['222770UHVzKe','604vDdUFT','478733aVpBXB','168ukzOAU','164680xLZLGY','24ZzfGbe','elapsed','2589tJdtGB','459335ILoWFH','177264uTyvXN','231ZjjLOo','165067HpuGJM','gray'];a47_0x5ac7=function(){return _0x71926b;};return a47_0x5ac7();}(function(_0xa587,_0x345931){var _0xc512fb=a47_0x1ec7,_0x6d4da8=_0xa587();while(!![]){try{var _0x4eaa30=parseInt(_0xc512fb(0x74))/0x1+parseInt(_0xc512fb(0x76))/0x2+parseInt(_0xc512fb(0x79))/0x3*(parseInt(_0xc512fb(0x80))/0x4)+-parseInt(_0xc512fb(0x7a))/0x5*(parseInt(_0xc512fb(0x77))/0x6)+-parseInt(_0xc512fb(0x7d))/0x7*(parseInt(_0xc512fb(0x75))/0x8)+-parseInt(_0xc512fb(0x7b))/0x9+-parseInt(_0xc512fb(0x7f))/0xa*(-parseInt(_0xc512fb(0x7c))/0xb);if(_0x4eaa30===_0x345931)break;else _0x6d4da8['push'](_0x6d4da8['shift']());}catch(_0x5620d4){_0x6d4da8['push'](_0x6d4da8['shift']());}}}(a47_0x5ac7,0x43966));import{jsx as a47_0x60f824,Fragment as a47_0x2db969,jsxs as a47_0x524a15}from'react/jsx-runtime';import{Text}from'ink';export function TaskTime(_0x4612f6){var _0x4eefa0=a47_0x1ec7;if(_0x4612f6[_0x4eefa0(0x78)])return a47_0x524a15(a47_0x2db969,{'children':[a47_0x60f824(Text,{'color':_0x4eefa0(0x7e),'children':'\x20['}),a47_0x60f824(Text,{'color':_0x4eefa0(0x7e),'bold':!![],'children':_0x4612f6['elapsed']}),a47_0x60f824(Text,{'color':_0x4eefa0(0x7e),'children':']'})]});return null;}