@lovrabet/cli 1.1.26-beta.8 → 1.1.26

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 (61) 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/api/api-doc-ui.js +1 -1
  5. package/lib/api/api-doc.js +1 -1
  6. package/lib/api/api-pull-ui.js +1 -1
  7. package/lib/api/fetch-model-list.js +1 -1
  8. package/lib/api/generate-api-file.js +1 -1
  9. package/lib/api/main.js +1 -1
  10. package/lib/api/pull-silent.js +1 -1
  11. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  12. package/lib/app-menu/create-menu.js +1 -1
  13. package/lib/app-menu/get-local-pages.js +1 -1
  14. package/lib/app-menu/get-online-menu-list.js +1 -1
  15. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  16. package/lib/app-menu/utils.js +1 -1
  17. package/lib/app-menu/valid-url.js +1 -1
  18. package/lib/app-menu-cdn-version/app-menu-sync-cdn-version-ui.js +1 -1
  19. package/lib/app-menu-cdn-version/cdn-url-compare-table.js +1 -1
  20. package/lib/app-menu-cdn-version/update-menu-cdn-url.js +1 -1
  21. package/lib/app-menu-update-cdn/current-content.js +1 -0
  22. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -0
  23. package/lib/app-menu-update-cdn/main.js +1 -0
  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/cursor.js +1 -1
  53. package/lib/mcp/main.js +1 -1
  54. package/lib/utils/config.js +1 -1
  55. package/lib/utils/copy-directory.js +1 -1
  56. package/lib/utils/http-client.js +1 -1
  57. package/lib/utils/logger.js +1 -1
  58. package/lib/utils/router-updater.js +1 -1
  59. package/lib/utils/sleep.js +1 -1
  60. package/lib/utils/template-replacer.js +1 -1
  61. package/package.json +1 -1
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- function a30_0x5101(_0x5a07db,_0x1b2c8e){const _0x6f0efa=a30_0x6f0e();return a30_0x5101=function(_0x5101fd,_0x5baf64){_0x5101fd=_0x5101fd-0x1d7;let _0x59ba22=_0x6f0efa[_0x5101fd];return _0x59ba22;},a30_0x5101(_0x5a07db,_0x1b2c8e);}(function(_0x29e8cf,_0x50af30){const _0x35e50c=a30_0x5101,_0x971371=_0x29e8cf();while(!![]){try{const _0xfb4bb5=parseInt(_0x35e50c(0x1df))/0x1+-parseInt(_0x35e50c(0x1f7))/0x2*(-parseInt(_0x35e50c(0x1d9))/0x3)+-parseInt(_0x35e50c(0x1dc))/0x4*(-parseInt(_0x35e50c(0x1e4))/0x5)+-parseInt(_0x35e50c(0x1f6))/0x6*(parseInt(_0x35e50c(0x1f3))/0x7)+-parseInt(_0x35e50c(0x1ee))/0x8+-parseInt(_0x35e50c(0x1da))/0x9*(parseInt(_0x35e50c(0x1e2))/0xa)+parseInt(_0x35e50c(0x1f5))/0xb;if(_0xfb4bb5===_0x50af30)break;else _0x971371['push'](_0x971371['shift']());}catch(_0x1d8df1){_0x971371['push'](_0x971371['shift']());}}}(a30_0x6f0e,0xf1a94));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x22bae3,_0x5cdf33)=>{const _0x4f4020=a30_0x5101,_0x364754=Date['now']();logger[_0x4f4020(0x1f4)](_0x4f4020(0x1d7),_0x4f4020(0x1dd),{'command':_0x4f4020(0x1e7)});let _0x129b03='';const _0x254998=spawn('npm',[_0x4f4020(0x1ec),'build'],{'stdio':[_0x4f4020(0x1f2),'inherit','pipe'],'shell':!![],'env':{...process[_0x4f4020(0x1ed)],'PATH':''+join(process[_0x4f4020(0x1f1)](),'node_modules',_0x4f4020(0x1f0))+delimiter+process[_0x4f4020(0x1ed)][_0x4f4020(0x1db)]}});_0x254998[_0x4f4020(0x1e8)]?.['on'](_0x4f4020(0x1e3),_0x4f17ae=>{_0x129b03+=_0x4f17ae['toString']();}),_0x254998['on'](_0x4f4020(0x1e6),_0x1124d5=>{const _0x108fd4=_0x4f4020,_0x3639c1=Date[_0x108fd4(0x1e1)]()-_0x364754;if(_0x1124d5===0x0||_0x1124d5===null)logger[_0x108fd4(0x1e0)](_0x108fd4(0x1d7),_0x108fd4(0x1d8),_0x3639c1),_0x22bae3();else{const _0x2d1763={'exitCode':_0x1124d5,'duration':_0x3639c1,'command':_0x108fd4(0x1e7),'cwd':process[_0x108fd4(0x1f1)]()};_0x129b03[_0x108fd4(0x1e9)]()&&(_0x2d1763[_0x108fd4(0x1e8)]=_0x129b03['trim']()),logger[_0x108fd4(0x1e5)]('build',_0x108fd4(0x1ea),_0x2d1763),_0x5cdf33(new Error(_0x108fd4(0x1ef)+_0x1124d5));}}),_0x254998['on'](_0x4f4020(0x1e5),_0x3aa6fe=>{const _0x50a835=_0x4f4020,_0x44dc4c=Date[_0x50a835(0x1e1)]()-_0x364754;logger[_0x50a835(0x1e5)](_0x50a835(0x1d7),_0x50a835(0x1eb),{'error':_0x3aa6fe[_0x50a835(0x1de)],'duration':_0x44dc4c,'stderr':_0x129b03[_0x50a835(0x1e9)]()||undefined}),_0x5cdf33(_0x3aa6fe);});});}function a30_0x6f0e(){const _0x3f0eee=['env','7026648evFeiR','npm\x20run\x20build\x20exited\x20with\x20code\x20','.bin','cwd','inherit','1656291phiUVR','info','19294836hIjWft','12egchpd','619546yzatPh','build','项目构建成功','3JlmnFy','16454574jCYuOZ','PATH','732cldbMt','开始构建项目','message','1858971LavOKD','success','now','10HnNXKd','data','6745lihSkC','error','close','npm\x20run\x20build','stderr','trim','项目构建失败','项目构建出错','run'];a30_0x6f0e=function(){return _0x3f0eee;};return a30_0x6f0e();}
1
+ (function(_0x243a4e,_0x4f0881){const _0x196e8b=a33_0x150a,_0x54522c=_0x243a4e();while(!![]){try{const _0x4a828c=parseInt(_0x196e8b(0x199))/0x1+parseInt(_0x196e8b(0x1ae))/0x2*(parseInt(_0x196e8b(0x198))/0x3)+-parseInt(_0x196e8b(0x1a4))/0x4*(-parseInt(_0x196e8b(0x19a))/0x5)+parseInt(_0x196e8b(0x195))/0x6*(-parseInt(_0x196e8b(0x19f))/0x7)+parseInt(_0x196e8b(0x1af))/0x8*(-parseInt(_0x196e8b(0x1b1))/0x9)+-parseInt(_0x196e8b(0x19e))/0xa*(-parseInt(_0x196e8b(0x1b0))/0xb)+-parseInt(_0x196e8b(0x1b2))/0xc;if(_0x4a828c===_0x4f0881)break;else _0x54522c['push'](_0x54522c['shift']());}catch(_0x5e5d38){_0x54522c['push'](_0x54522c['shift']());}}}(a33_0x3683,0x4c34f));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a33_0x150a(_0x1f07c4,_0x21e045){_0x1f07c4=_0x1f07c4-0x192;const _0x36837d=a33_0x3683();let _0x150a34=_0x36837d[_0x1f07c4];return _0x150a34;}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x56b7f2,_0x2b8dd7)=>{const _0x3519d0=a33_0x150a,_0x2470fd=Date[_0x3519d0(0x1ad)]();logger[_0x3519d0(0x194)](_0x3519d0(0x1a8),_0x3519d0(0x1a5),{'command':_0x3519d0(0x192)});let _0x27afff='';const _0x2e1342=spawn(_0x3519d0(0x197),[_0x3519d0(0x1aa),_0x3519d0(0x1a8)],{'stdio':['inherit',_0x3519d0(0x1a9),_0x3519d0(0x1a2)],'shell':!![],'env':{...process[_0x3519d0(0x193)],'PATH':''+join(process[_0x3519d0(0x1a3)](),_0x3519d0(0x19d),'.bin')+delimiter+process[_0x3519d0(0x193)][_0x3519d0(0x1a6)]}});_0x2e1342['stderr']?.['on'](_0x3519d0(0x19c),_0x5e249a=>{const _0x2e14d7=_0x3519d0;_0x27afff+=_0x5e249a[_0x2e14d7(0x1a1)]();}),_0x2e1342['on'](_0x3519d0(0x19b),_0x376c00=>{const _0x589e60=_0x3519d0,_0x2824ac=Date['now']()-_0x2470fd;if(_0x376c00===0x0||_0x376c00===null)logger[_0x589e60(0x1ac)](_0x589e60(0x1a8),_0x589e60(0x1a7),_0x2824ac),_0x56b7f2();else{const _0x4103ed={'exitCode':_0x376c00,'duration':_0x2824ac,'command':'npm\x20run\x20build','cwd':process[_0x589e60(0x1a3)]()};_0x27afff[_0x589e60(0x1ab)]()&&(_0x4103ed['stderr']=_0x27afff[_0x589e60(0x1ab)]()),logger[_0x589e60(0x196)](_0x589e60(0x1a8),_0x589e60(0x1a0),_0x4103ed),_0x2b8dd7(new Error(_0x589e60(0x1b3)+_0x376c00));}}),_0x2e1342['on']('error',_0x6e216f=>{const _0x4bad44=_0x3519d0,_0x2fb9fa=Date['now']()-_0x2470fd;logger[_0x4bad44(0x196)](_0x4bad44(0x1a8),'项目构建出错',{'error':_0x6e216f['message'],'duration':_0x2fb9fa,'stderr':_0x27afff[_0x4bad44(0x1ab)]()||undefined}),_0x2b8dd7(_0x6e216f);});});}function a33_0x3683(){const _0x48d8bc=['inherit','run','trim','success','now','921306LwvjDK','808cJbaNj','11nJdDaM','42345hMUGjp','5294556OQqrFA','npm\x20run\x20build\x20exited\x20with\x20code\x20','npm\x20run\x20build','env','info','91158nheUZn','error','npm','3BYDJcK','379104UWxJDb','5kVwOcD','close','data','node_modules','1991930KvqPiP','98KIdwhH','项目构建失败','toString','pipe','cwd','1609252ofzpcz','开始构建项目','PATH','项目构建成功','build'];a33_0x3683=function(){return _0x48d8bc;};return a33_0x3683();}
package/lib/cmd/logs.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2a661c,_0x259018){const _0x472fba=a31_0x12d1,_0x2f1088=_0x2a661c();while(!![]){try{const _0x168e09=-parseInt(_0x472fba(0x1c0))/0x1*(-parseInt(_0x472fba(0x1cd))/0x2)+parseInt(_0x472fba(0x1c5))/0x3*(parseInt(_0x472fba(0x1d1))/0x4)+-parseInt(_0x472fba(0x1c6))/0x5*(-parseInt(_0x472fba(0x1df))/0x6)+-parseInt(_0x472fba(0x1d6))/0x7+parseInt(_0x472fba(0x1d4))/0x8*(-parseInt(_0x472fba(0x1c1))/0x9)+-parseInt(_0x472fba(0x1c2))/0xa*(parseInt(_0x472fba(0x1c3))/0xb)+parseInt(_0x472fba(0x1d9))/0xc;if(_0x168e09===_0x259018)break;else _0x2f1088['push'](_0x2f1088['shift']());}catch(_0x4caeb9){_0x2f1088['push'](_0x2f1088['shift']());}}}(a31_0x11ab,0xc0023));function a31_0x11ab(){const _0x3dd11e=['length','log','12551448AXtMAj','level','command','warn','error','toLocaleString','6344034bUxlFD','setLogPath','*\x20日志已清空','5KqUjjC','5508927JXsYCH','154610QrfdxN','671HwHthd','clearLogs','525sXXUYp','5cvVmkl','\x20\x20\x20详情:\x20','keys','stringify','message','cwd','timestamp','95330fGwiMt','details','\x20\x20\x20耗时:\x20','duration','5708txGebd','*\x20Lovrabet\x20CLI\x20日志记录:\x0a','zh-CN','8rlodlN','\x20\x20\x20时间:\x20','1747564oxrnWG'];a31_0x11ab=function(){return _0x3dd11e;};return a31_0x11ab();}import{logger}from'../utils/logger.js';export function showLogs(){const _0x431bca=a31_0x12d1;logger[_0x431bca(0x1be)](process[_0x431bca(0x1cb)]());const _0x2a0c14=logger['readLogs']();if(_0x2a0c14[_0x431bca(0x1d7)]===0x0){console[_0x431bca(0x1d8)]('*\x20暂无日志记录');return;}console[_0x431bca(0x1d8)](_0x431bca(0x1d2)),_0x2a0c14['forEach']((_0x4918d7,_0x406678)=>{const _0xa52c72=_0x431bca,_0xc44423=new Date(_0x4918d7[_0xa52c72(0x1cc)])[_0xa52c72(0x1de)](_0xa52c72(0x1d3)),_0xefea4f=_0x4918d7[_0xa52c72(0x1da)]==='success'?'√':_0x4918d7[_0xa52c72(0x1da)]===_0xa52c72(0x1dd)?'×':_0x4918d7[_0xa52c72(0x1da)]===_0xa52c72(0x1dc)?'!':'i';console[_0xa52c72(0x1d8)](_0x406678+0x1+'.\x20'+_0xefea4f+'\x20['+_0x4918d7[_0xa52c72(0x1db)]+']\x20'+_0x4918d7[_0xa52c72(0x1ca)]),console[_0xa52c72(0x1d8)](_0xa52c72(0x1d5)+_0xc44423),_0x4918d7[_0xa52c72(0x1d0)]&&console[_0xa52c72(0x1d8)](_0xa52c72(0x1cf)+_0x4918d7['duration']+'ms'),_0x4918d7['details']&&Object[_0xa52c72(0x1c8)](_0x4918d7[_0xa52c72(0x1ce)])['length']>0x0&&console[_0xa52c72(0x1d8)](_0xa52c72(0x1c7)+JSON[_0xa52c72(0x1c9)](_0x4918d7[_0xa52c72(0x1ce)],null,0x2)),console[_0xa52c72(0x1d8)]('');});}function a31_0x12d1(_0x36943d,_0x6d92d){const _0x11ab27=a31_0x11ab();return a31_0x12d1=function(_0x12d1fe,_0x1bfd1d){_0x12d1fe=_0x12d1fe-0x1be;let _0x45a24b=_0x11ab27[_0x12d1fe];return _0x45a24b;},a31_0x12d1(_0x36943d,_0x6d92d);}export function clearLogs(){const _0x17969d=a31_0x12d1;logger['setLogPath'](process[_0x17969d(0x1cb)]()),logger[_0x17969d(0x1c4)](),console[_0x17969d(0x1d8)](_0x17969d(0x1bf));}
1
+ (function(_0x285b41,_0x178b63){const _0x131aed=a34_0x1a5b,_0xd768ad=_0x285b41();while(!![]){try{const _0x115f4e=-parseInt(_0x131aed(0xd8))/0x1+-parseInt(_0x131aed(0xe4))/0x2*(-parseInt(_0x131aed(0xf0))/0x3)+-parseInt(_0x131aed(0xda))/0x4*(parseInt(_0x131aed(0xdc))/0x5)+-parseInt(_0x131aed(0xe0))/0x6*(parseInt(_0x131aed(0xe3))/0x7)+parseInt(_0x131aed(0xeb))/0x8+parseInt(_0x131aed(0xe2))/0x9*(-parseInt(_0x131aed(0xe1))/0xa)+parseInt(_0x131aed(0xd9))/0xb*(parseInt(_0x131aed(0xd6))/0xc);if(_0x115f4e===_0x178b63)break;else _0xd768ad['push'](_0xd768ad['shift']());}catch(_0xc9cb3){_0xd768ad['push'](_0xd768ad['shift']());}}}(a34_0x2162,0x47d5a));import{logger}from'../utils/logger.js';export function showLogs(){const _0x258181=a34_0x1a5b;logger[_0x258181(0xd1)](process[_0x258181(0xd2)]());const _0x54ef16=logger[_0x258181(0xdf)]();if(_0x54ef16[_0x258181(0xe5)]===0x0){console[_0x258181(0xd5)](_0x258181(0xd7));return;}console[_0x258181(0xd5)](_0x258181(0xdb)),_0x54ef16[_0x258181(0xed)]((_0x328599,_0x544abc)=>{const _0x530a88=_0x258181,_0x1a7d7d=new Date(_0x328599['timestamp'])['toLocaleString'](_0x530a88(0xee)),_0x55bdf2=_0x328599[_0x530a88(0xd4)]===_0x530a88(0xea)?'√':_0x328599['level']===_0x530a88(0xe7)?'×':_0x328599[_0x530a88(0xd4)]===_0x530a88(0xdd)?'!':'i';console[_0x530a88(0xd5)](_0x544abc+0x1+'.\x20'+_0x55bdf2+'\x20['+_0x328599['command']+']\x20'+_0x328599['message']),console[_0x530a88(0xd5)](_0x530a88(0xd3)+_0x1a7d7d),_0x328599['duration']&&console[_0x530a88(0xd5)]('\x20\x20\x20耗时:\x20'+_0x328599[_0x530a88(0xef)]+'ms'),_0x328599[_0x530a88(0xe9)]&&Object[_0x530a88(0xec)](_0x328599[_0x530a88(0xe9)])[_0x530a88(0xe5)]>0x0&&console[_0x530a88(0xd5)]('\x20\x20\x20详情:\x20'+JSON[_0x530a88(0xde)](_0x328599['details'],null,0x2)),console[_0x530a88(0xd5)]('');});}export function clearLogs(){const _0x659b5a=a34_0x1a5b;logger[_0x659b5a(0xd1)](process[_0x659b5a(0xd2)]()),logger[_0x659b5a(0xe6)](),console[_0x659b5a(0xd5)](_0x659b5a(0xe8));}function a34_0x1a5b(_0x170c85,_0x18b777){_0x170c85=_0x170c85-0xd1;const _0x2162a8=a34_0x2162();let _0x1a5b93=_0x2162a8[_0x170c85];return _0x1a5b93;}function a34_0x2162(){const _0x2a7753=['keys','forEach','zh-CN','duration','159771ArLNYK','setLogPath','cwd','\x20\x20\x20时间:\x20','level','log','109104YNhEeM','*\x20暂无日志记录','412094GaPKFV','319fJJNBq','2205540oGCXgo','*\x20Lovrabet\x20CLI\x20日志记录:\x0a','5gFOyfP','warn','stringify','readLogs','70392WGeDSG','20iXTBVK','17109KWwKAx','14vJybcP','22mpUVMD','length','clearLogs','error','*\x20日志已清空','details','success','3483872IAEXgt'];a34_0x2162=function(){return _0x2a7753;};return a34_0x2162();}
@@ -1 +1 @@
1
- (function(_0x4fb6b4,_0x52568d){const _0x2d1299=a32_0xd7de,_0x4e0aa6=_0x4fb6b4();while(!![]){try{const _0x5ec82e=-parseInt(_0x2d1299(0x1da))/0x1*(-parseInt(_0x2d1299(0x1e1))/0x2)+-parseInt(_0x2d1299(0x1e6))/0x3*(parseInt(_0x2d1299(0x1e8))/0x4)+parseInt(_0x2d1299(0x1f1))/0x5+-parseInt(_0x2d1299(0x1d7))/0x6+parseInt(_0x2d1299(0x1e5))/0x7+-parseInt(_0x2d1299(0x1de))/0x8*(parseInt(_0x2d1299(0x1ee))/0x9)+parseInt(_0x2d1299(0x1ef))/0xa;if(_0x5ec82e===_0x52568d)break;else _0x4e0aa6['push'](_0x4e0aa6['shift']());}catch(_0x349019){_0x4e0aa6['push'](_0x4e0aa6['shift']());}}}(a32_0x2574,0x861e0));import{delimiter,join}from'node:path';function a32_0xd7de(_0x1b3d3c,_0x4af713){const _0x25748e=a32_0x2574();return a32_0xd7de=function(_0xd7de9e,_0x4739e2){_0xd7de9e=_0xd7de9e-0x1d7;let _0xe87903=_0x25748e[_0xd7de9e];return _0xe87903;},a32_0xd7de(_0x1b3d3c,_0x4af713);}import{spawn}from'node:child_process';function a32_0x2574(){const _0x3875db=['env','3423553EtZzQw','507453EKPgrI','pipe','24yOXHZj','stderr','PATH','info','preview','预览服务器启动出错','880794oLckaz','15894180YBjHUl','.bin','2113445QobcLL','close','error','node_modules','5260662kHLpzw','toString','trim','12569fOQSFZ','success','vite\x20preview','预览服务器启动成功','8kqSeGq','cwd','vite\x20preview\x20exited\x20with\x20code\x20','6GOgqtr','now','inherit'];a32_0x2574=function(){return _0x3875db;};return a32_0x2574();}import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x38aaef,_0x33ffe8)=>{const _0x1935cd=a32_0xd7de,_0x54c001=Date[_0x1935cd(0x1e2)]();logger[_0x1935cd(0x1eb)](_0x1935cd(0x1ec),'启动预览服务器',{'command':_0x1935cd(0x1dc)});let _0x2ba14a='';const _0x157953=spawn('vite',['preview'],{'stdio':[_0x1935cd(0x1e3),_0x1935cd(0x1e3),_0x1935cd(0x1e7)],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x1935cd(0x1df)](),_0x1935cd(0x1f4),_0x1935cd(0x1f0))+delimiter+process[_0x1935cd(0x1e4)][_0x1935cd(0x1ea)]}});_0x157953[_0x1935cd(0x1e9)]?.['on']('data',_0xfa98b8=>{const _0x6eb89b=_0x1935cd;_0x2ba14a+=_0xfa98b8[_0x6eb89b(0x1d8)]();}),_0x157953['on'](_0x1935cd(0x1f2),_0x38e53a=>{const _0x4db757=_0x1935cd,_0xa6bd80=Date[_0x4db757(0x1e2)]()-_0x54c001;if(_0x38e53a===0x0||_0x38e53a===null)logger[_0x4db757(0x1db)]('preview',_0x4db757(0x1dd),_0xa6bd80),_0x38aaef();else{const _0x554096={'exitCode':_0x38e53a,'duration':_0xa6bd80,'command':'vite\x20preview','cwd':process[_0x4db757(0x1df)]()};_0x2ba14a[_0x4db757(0x1d9)]()&&(_0x554096[_0x4db757(0x1e9)]=_0x2ba14a['trim']()),logger['error']('preview','预览服务器启动失败',_0x554096),_0x33ffe8(new Error(_0x4db757(0x1e0)+_0x38e53a));}}),_0x157953['on'](_0x1935cd(0x1f3),_0x3e3636=>{const _0x268f94=_0x1935cd,_0x13b911=Date['now']()-_0x54c001;logger[_0x268f94(0x1f3)](_0x268f94(0x1ec),_0x268f94(0x1ed),{'error':_0x3e3636['message'],'duration':_0x13b911,'stderr':_0x2ba14a[_0x268f94(0x1d9)]()||undefined}),_0x33ffe8(_0x3e3636);});});}
1
+ (function(_0x3b5c72,_0xefe7c5){const _0x585aeb=a35_0x2fa9,_0x461dbe=_0x3b5c72();while(!![]){try{const _0x491a1d=parseInt(_0x585aeb(0x1a1))/0x1+parseInt(_0x585aeb(0x19e))/0x2*(parseInt(_0x585aeb(0x1a6))/0x3)+parseInt(_0x585aeb(0x195))/0x4*(-parseInt(_0x585aeb(0x1a2))/0x5)+parseInt(_0x585aeb(0x1b1))/0x6*(parseInt(_0x585aeb(0x194))/0x7)+-parseInt(_0x585aeb(0x193))/0x8+-parseInt(_0x585aeb(0x1aa))/0x9+parseInt(_0x585aeb(0x196))/0xa*(parseInt(_0x585aeb(0x198))/0xb);if(_0x491a1d===_0xefe7c5)break;else _0x461dbe['push'](_0x461dbe['shift']());}catch(_0x2012e7){_0x461dbe['push'](_0x461dbe['shift']());}}}(a35_0x2bb9,0x5a8cd));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a35_0x2fa9(_0x24d18d,_0xf0758){_0x24d18d=_0x24d18d-0x192;const _0x2bb906=a35_0x2bb9();let _0x2fa919=_0x2bb906[_0x24d18d];return _0x2fa919;}function a35_0x2bb9(){const _0x43bc0a=['toString','trim','292141zgdZRH','1555wPVVvA','close','vite','预览服务器启动成功','49479hWPGvg','now','vite\x20preview','vite\x20preview\x20exited\x20with\x20code\x20','3411945XMMqgg','env','cwd','error','info','inherit','node_modules','858414gTcJyU','预览服务器启动失败','preview','2769184BQouMc','7niGwop','5352OeQQWC','830mqgDdY','data','131813nlrwJc','message','stderr','PATH','pipe','启动预览服务器','10CowJUk'];a35_0x2bb9=function(){return _0x43bc0a;};return a35_0x2bb9();}export function runPreview(){return new Promise((_0x4fa9fb,_0x11be31)=>{const _0x2e00bd=a35_0x2fa9,_0x4ea3ac=Date[_0x2e00bd(0x1a7)]();logger[_0x2e00bd(0x1ae)]('preview',_0x2e00bd(0x19d),{'command':'vite\x20preview'});let _0x526081='';const _0x3411b8=spawn(_0x2e00bd(0x1a4),[_0x2e00bd(0x192)],{'stdio':[_0x2e00bd(0x1af),_0x2e00bd(0x1af),_0x2e00bd(0x19c)],'shell':!![],'env':{...process[_0x2e00bd(0x1ab)],'PATH':''+join(process[_0x2e00bd(0x1ac)](),_0x2e00bd(0x1b0),'.bin')+delimiter+process['env'][_0x2e00bd(0x19b)]}});_0x3411b8[_0x2e00bd(0x19a)]?.['on'](_0x2e00bd(0x197),_0x23e583=>{const _0x1f7008=_0x2e00bd;_0x526081+=_0x23e583[_0x1f7008(0x19f)]();}),_0x3411b8['on'](_0x2e00bd(0x1a3),_0xff1915=>{const _0x1523a3=_0x2e00bd,_0x754926=Date[_0x1523a3(0x1a7)]()-_0x4ea3ac;if(_0xff1915===0x0||_0xff1915===null)logger['success']('preview',_0x1523a3(0x1a5),_0x754926),_0x4fa9fb();else{const _0x30616d={'exitCode':_0xff1915,'duration':_0x754926,'command':_0x1523a3(0x1a8),'cwd':process[_0x1523a3(0x1ac)]()};_0x526081[_0x1523a3(0x1a0)]()&&(_0x30616d[_0x1523a3(0x19a)]=_0x526081[_0x1523a3(0x1a0)]()),logger['error']('preview',_0x1523a3(0x1b2),_0x30616d),_0x11be31(new Error(_0x1523a3(0x1a9)+_0xff1915));}}),_0x3411b8['on'](_0x2e00bd(0x1ad),_0x11e95d=>{const _0x8b2fa9=_0x2e00bd,_0x34518d=Date[_0x8b2fa9(0x1a7)]()-_0x4ea3ac;logger[_0x8b2fa9(0x1ad)](_0x8b2fa9(0x192),'预览服务器启动出错',{'error':_0x11e95d[_0x8b2fa9(0x199)],'duration':_0x34518d,'stderr':_0x526081[_0x8b2fa9(0x1a0)]()||undefined}),_0x11be31(_0x11e95d);});});}
package/lib/cmd/start.js CHANGED
@@ -1 +1 @@
1
- (function(_0x11b4bb,_0x16b3aa){const _0xaa100e=a33_0xf406,_0x5e73e2=_0x11b4bb();while(!![]){try{const _0x4cba81=parseInt(_0xaa100e(0x1fd))/0x1+-parseInt(_0xaa100e(0x1fb))/0x2+-parseInt(_0xaa100e(0x1fe))/0x3+-parseInt(_0xaa100e(0x1fa))/0x4+-parseInt(_0xaa100e(0x201))/0x5*(parseInt(_0xaa100e(0x1ec))/0x6)+parseInt(_0xaa100e(0x1f1))/0x7*(-parseInt(_0xaa100e(0x1f7))/0x8)+parseInt(_0xaa100e(0x1e7))/0x9;if(_0x4cba81===_0x16b3aa)break;else _0x5e73e2['push'](_0x5e73e2['shift']());}catch(_0x3340ab){_0x5e73e2['push'](_0x5e73e2['shift']());}}}(a33_0x543d,0x3dc18));import{delimiter,join}from'node:path';function a33_0xf406(_0x5a06ac,_0x2cf393){const _0x543dcb=a33_0x543d();return a33_0xf406=function(_0xf40689,_0xc7c601){_0xf40689=_0xf40689-0x1e5;let _0x26d733=_0x543dcb[_0xf40689];return _0x26d733;},a33_0xf406(_0x5a06ac,_0x2cf393);}import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';function a33_0x543d(){const _0x54f6d4=['error','164815VhoKNW','close','cwd','17300970LupoEG','node_modules','vite\x20exited\x20with\x20code\x20','vite','.bin','24GxPwQE','toString','now','开发服务器启动失败','trim','7FIIAPy','success','inherit','stderr','PATH','env','3880808NTRMSx','write','message','1483956jXbuSQ','1010864knvNsf','start','2680xLtNwx','536052fZIfMA','pipe'];a33_0x543d=function(){return _0x54f6d4;};return a33_0x543d();}export function runStart(_0x3a208a){return new Promise((_0x5083ed,_0x5e0209)=>{const _0x4632f0=a33_0xf406,_0x1fac85=Date[_0x4632f0(0x1ee)](),_0x142afc=_0x3a208a||process[_0x4632f0(0x1e6)]();logger['info'](_0x4632f0(0x1fc),'启动开发服务器',{'command':_0x4632f0(0x1ea),'cwd':_0x142afc});let _0x51dac6='';const _0x21491a=spawn(_0x4632f0(0x1ea),{'stdio':[_0x4632f0(0x1f3),_0x4632f0(0x1f3),_0x4632f0(0x1ff)],'shell':!![],'cwd':_0x142afc,'env':{...process[_0x4632f0(0x1f6)],'PATH':''+join(_0x142afc,_0x4632f0(0x1e8),_0x4632f0(0x1eb))+delimiter+process[_0x4632f0(0x1f6)][_0x4632f0(0x1f5)]}});_0x21491a[_0x4632f0(0x1f4)]?.['on']('data',_0x2be0fb=>{const _0x41add9=_0x4632f0,_0x3184a1=_0x2be0fb[_0x41add9(0x1ed)]();_0x51dac6+=_0x3184a1,process['stderr'][_0x41add9(0x1f8)](_0x3184a1);}),_0x21491a['on'](_0x4632f0(0x1e5),_0x315cf5=>{const _0x424285=_0x4632f0,_0x24196f=Date['now']()-_0x1fac85;if(_0x315cf5===0x0||_0x315cf5===null)logger[_0x424285(0x1f2)](_0x424285(0x1fc),'开发服务器启动成功',_0x24196f),_0x5083ed();else{const _0x1e261a={'exitCode':_0x315cf5,'duration':_0x24196f,'command':_0x424285(0x1ea),'cwd':_0x142afc};_0x51dac6[_0x424285(0x1f0)]()&&(_0x1e261a[_0x424285(0x1f4)]=_0x51dac6['trim']()),logger['error']('start',_0x424285(0x1ef),_0x1e261a),_0x5e0209(new Error(_0x424285(0x1e9)+_0x315cf5));}}),_0x21491a['on'](_0x4632f0(0x200),_0x129899=>{const _0x21638c=_0x4632f0,_0x1552b5=Date[_0x21638c(0x1ee)]()-_0x1fac85,_0x8efabd={'error':_0x129899[_0x21638c(0x1f9)],'duration':_0x1552b5,'command':'vite','cwd':_0x142afc};_0x51dac6['trim']()&&(_0x8efabd[_0x21638c(0x1f4)]=_0x51dac6[_0x21638c(0x1f0)]()),logger[_0x21638c(0x200)](_0x21638c(0x1fc),'开发服务器启动出错',_0x8efabd),_0x5e0209(_0x129899);});});}
1
+ (function(_0x2376aa,_0x4d999b){const _0xb0e26b=a36_0x328b,_0x549e50=_0x2376aa();while(!![]){try{const _0x3c8403=-parseInt(_0xb0e26b(0x12b))/0x1+parseInt(_0xb0e26b(0x139))/0x2*(-parseInt(_0xb0e26b(0x131))/0x3)+parseInt(_0xb0e26b(0x128))/0x4+-parseInt(_0xb0e26b(0x12e))/0x5*(-parseInt(_0xb0e26b(0x13c))/0x6)+parseInt(_0xb0e26b(0x13e))/0x7*(-parseInt(_0xb0e26b(0x12d))/0x8)+-parseInt(_0xb0e26b(0x13d))/0x9+parseInt(_0xb0e26b(0x129))/0xa*(parseInt(_0xb0e26b(0x12a))/0xb);if(_0x3c8403===_0x4d999b)break;else _0x549e50['push'](_0x549e50['shift']());}catch(_0x221750){_0x549e50['push'](_0x549e50['shift']());}}}(a36_0x4186,0x8223b));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runStart(_0x177801){return new Promise((_0x49225b,_0x38bd2b)=>{const _0x250f8d=a36_0x328b,_0x459ee2=Date['now'](),_0x53b3f0=_0x177801||process[_0x250f8d(0x132)]();logger[_0x250f8d(0x143)](_0x250f8d(0x137),_0x250f8d(0x138),{'command':_0x250f8d(0x140),'cwd':_0x53b3f0});let _0x54c208='';const _0x1da965=spawn(_0x250f8d(0x140),{'stdio':[_0x250f8d(0x145),'inherit','pipe'],'shell':!![],'cwd':_0x53b3f0,'env':{...process[_0x250f8d(0x141)],'PATH':''+join(_0x53b3f0,_0x250f8d(0x133),'.bin')+delimiter+process[_0x250f8d(0x141)][_0x250f8d(0x142)]}});_0x1da965[_0x250f8d(0x130)]?.['on'](_0x250f8d(0x12c),_0x50d626=>{const _0x10b1ad=_0x250f8d,_0x3cc78b=_0x50d626[_0x10b1ad(0x146)]();_0x54c208+=_0x3cc78b,process[_0x10b1ad(0x130)]['write'](_0x3cc78b);}),_0x1da965['on'](_0x250f8d(0x13a),_0x6b5fcc=>{const _0x3345bf=_0x250f8d,_0x513fe0=Date[_0x3345bf(0x136)]()-_0x459ee2;if(_0x6b5fcc===0x0||_0x6b5fcc===null)logger[_0x3345bf(0x134)](_0x3345bf(0x137),_0x3345bf(0x148),_0x513fe0),_0x49225b();else{const _0x33c87b={'exitCode':_0x6b5fcc,'duration':_0x513fe0,'command':_0x3345bf(0x140),'cwd':_0x53b3f0};_0x54c208[_0x3345bf(0x147)]()&&(_0x33c87b[_0x3345bf(0x130)]=_0x54c208[_0x3345bf(0x147)]()),logger[_0x3345bf(0x144)](_0x3345bf(0x137),_0x3345bf(0x13f),_0x33c87b),_0x38bd2b(new Error(_0x3345bf(0x13b)+_0x6b5fcc));}}),_0x1da965['on'](_0x250f8d(0x144),_0x193e48=>{const _0x3d66e8=_0x250f8d,_0x293d94=Date[_0x3d66e8(0x136)]()-_0x459ee2,_0x109a92={'error':_0x193e48[_0x3d66e8(0x12f)],'duration':_0x293d94,'command':_0x3d66e8(0x140),'cwd':_0x53b3f0};_0x54c208[_0x3d66e8(0x147)]()&&(_0x109a92[_0x3d66e8(0x130)]=_0x54c208[_0x3d66e8(0x147)]()),logger[_0x3d66e8(0x144)](_0x3d66e8(0x137),_0x3d66e8(0x135),_0x109a92),_0x38bd2b(_0x193e48);});});}function a36_0x328b(_0xe1ff4,_0xe36fc0){_0xe1ff4=_0xe1ff4-0x128;const _0x418686=a36_0x4186();let _0x328bee=_0x418686[_0xe1ff4];return _0x328bee;}function a36_0x4186(){const _0x40bf97=['6IfKmpr','8131023SfbVOi','203nbpBEj','开发服务器启动失败','vite','env','PATH','info','error','inherit','toString','trim','开发服务器启动成功','642000xtBZxw','20zFAehy','9005887AuQNzr','202048ZDbBFe','data','1848OxgeLi','3077895ykbgpV','message','stderr','12ozCDnD','cwd','node_modules','success','开发服务器启动出错','now','start','启动开发服务器','384134DqRmKN','close','vite\x20exited\x20with\x20code\x20'];a36_0x4186=function(){return _0x40bf97;};return a36_0x4186();}
@@ -1 +1 @@
1
- function a34_0xf8aa(){const _0x28661f=['4844068yThTTL','1322527gPcTWl','lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2493310VrStYw','获取配置项','3494538VFZWZh','\x20*\x20配置示例:','\x20\x20\x20\x20','5sMRIIT','3909102OayqDK','description','33903ywpnBx','14VkxsOo','map','gray','4250292yvFqZB','配置当前项目的\x20App\x20Code','2336iYcRUP','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','column','设置配置项','command','设置环境\x20(online/daily)'];a34_0xf8aa=function(){return _0x28661f;};return a34_0xf8aa();}function a34_0x2c22(_0x59283a,_0x37e7c6){const _0xf8aa10=a34_0xf8aa();return a34_0x2c22=function(_0x2c226c,_0x1c53a4){_0x2c226c=_0x2c226c-0x1cb;let _0x513936=_0xf8aa10[_0x2c226c];return _0x513936;},a34_0x2c22(_0x59283a,_0x37e7c6);}(function(_0x13056b,_0x455b2a){const _0x3f588b=a34_0x2c22,_0x4507fb=_0x13056b();while(!![]){try{const _0x5c8743=parseInt(_0x3f588b(0x1de))/0x1+parseInt(_0x3f588b(0x1cb))/0x2+parseInt(_0x3f588b(0x1cf))/0x3+parseInt(_0x3f588b(0x1dd))/0x4*(-parseInt(_0x3f588b(0x1ce))/0x5)+parseInt(_0x3f588b(0x1d5))/0x6*(-parseInt(_0x3f588b(0x1d2))/0x7)+parseInt(_0x3f588b(0x1d7))/0x8*(-parseInt(_0x3f588b(0x1d1))/0x9)+parseInt(_0x3f588b(0x1e1))/0xa;if(_0x5c8743===_0x455b2a)break;else _0x4507fb['push'](_0x4507fb['shift']());}catch(_0x397a46){_0x4507fb['push'](_0x4507fb['shift']());}}}(a34_0xf8aa,0xda5d0));import{jsxs as a34_0xeaecf4,jsx as a34_0x440974}from'react/jsx-runtime';import{Box,Text}from'ink';export function ConfigHelp(){const _0x2025c8=a34_0x2c22,_0x178bc2=[{'command':_0x2025c8(0x1df),'description':_0x2025c8(0x1da)},{'command':_0x2025c8(0x1e0),'description':_0x2025c8(0x1e2)},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':'列出所有配置项'}],_0x5f08bc=[{'command':_0x2025c8(0x1d8),'description':_0x2025c8(0x1d6)},{'command':'lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','description':_0x2025c8(0x1dc)}];return a34_0xeaecf4(Box,{'flexDirection':_0x2025c8(0x1d9),'marginTop':0x1,'marginBottom':0x1,'children':[a34_0x440974(Box,{'marginBottom':0x1,'children':a34_0xeaecf4(Text,{'color':_0x2025c8(0x1d4),'children':['\x20!','\x20\x20','无效的命令,可用命令如下:']})}),_0x178bc2[_0x2025c8(0x1d3)](_0x1b9afc=>a34_0xeaecf4(Box,{'children':[a34_0xeaecf4(Text,{'children':[_0x2025c8(0x1cd),_0x1b9afc[_0x2025c8(0x1db)]]}),a34_0x440974(Text,{'color':_0x2025c8(0x1d4),'children':_0x1b9afc[_0x2025c8(0x1d0)]})]},_0x1b9afc[_0x2025c8(0x1db)])),a34_0x440974(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a34_0x440974(Text,{'color':_0x2025c8(0x1d4),'children':_0x2025c8(0x1cc)})}),_0x5f08bc[_0x2025c8(0x1d3)](_0x340e3c=>a34_0xeaecf4(Box,{'children':[a34_0xeaecf4(Text,{'children':[_0x2025c8(0x1cd),_0x340e3c[_0x2025c8(0x1db)]]}),a34_0x440974(Text,{'color':_0x2025c8(0x1d4),'children':_0x340e3c['description']})]},_0x340e3c[_0x2025c8(0x1db)]))]});}
1
+ function a37_0x1575(){const _0x2d5af3=['2852840nwnKNB','获取配置项','184SzXNGI','1388055muIzbm','无效的命令,可用命令如下:','command','35358zkwklG','99JFvtNR','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','1572WftEra','设置环境\x20(online/daily)','map','lovrabet\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','设置配置项','gray','81927JwugSM','\x20\x20\x20\x20','294Wbknzc','column','635bnFnDO','902rHXKed','description','配置当前项目的\x20App\x20Code','789yHVKYY','\x20*\x20配置示例:','列出所有配置项','1384800BclhrB'];a37_0x1575=function(){return _0x2d5af3;};return a37_0x1575();}(function(_0x375c57,_0xd8ad37){const _0x5bda5d=a37_0x5610,_0x4aed14=_0x375c57();while(!![]){try{const _0x2395a5=parseInt(_0x5bda5d(0x1bf))/0x1*(parseInt(_0x5bda5d(0x1c0))/0x2)+parseInt(_0x5bda5d(0x1c3))/0x3*(-parseInt(_0x5bda5d(0x1b5))/0x4)+parseInt(_0x5bda5d(0x1af))/0x5+parseInt(_0x5bda5d(0x1b2))/0x6*(parseInt(_0x5bda5d(0x1bd))/0x7)+parseInt(_0x5bda5d(0x1ae))/0x8*(parseInt(_0x5bda5d(0x1bb))/0x9)+parseInt(_0x5bda5d(0x1c7))/0xa+-parseInt(_0x5bda5d(0x1b3))/0xb*(parseInt(_0x5bda5d(0x1c6))/0xc);if(_0x2395a5===_0xd8ad37)break;else _0x4aed14['push'](_0x4aed14['shift']());}catch(_0xd32aeb){_0x4aed14['push'](_0x4aed14['shift']());}}}(a37_0x1575,0x28164));import{jsxs as a37_0x35fe4f,jsx as a37_0x1168eb}from'react/jsx-runtime';function a37_0x5610(_0x2d27e9,_0x14e834){_0x2d27e9=_0x2d27e9-0x1ad;const _0x15751c=a37_0x1575();let _0x56109e=_0x15751c[_0x2d27e9];return _0x56109e;}import{Box,Text}from'ink';export function ConfigHelp(){const _0x19d62e=a37_0x5610,_0x55c3ee=[{'command':'lovrabet\x20config\x20set\x20<key>\x20<value>\x20\x20\x20','description':_0x19d62e(0x1b9)},{'command':_0x19d62e(0x1b8),'description':_0x19d62e(0x1ad)},{'command':'lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','description':_0x19d62e(0x1c5)}],_0x30688d=[{'command':'lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','description':_0x19d62e(0x1c2)},{'command':_0x19d62e(0x1b4),'description':_0x19d62e(0x1b6)}];return a37_0x35fe4f(Box,{'flexDirection':_0x19d62e(0x1be),'marginTop':0x1,'marginBottom':0x1,'children':[a37_0x1168eb(Box,{'marginBottom':0x1,'children':a37_0x35fe4f(Text,{'color':_0x19d62e(0x1ba),'children':['\x20!','\x20\x20',_0x19d62e(0x1b0)]})}),_0x55c3ee['map'](_0x389881=>a37_0x35fe4f(Box,{'children':[a37_0x35fe4f(Text,{'children':[_0x19d62e(0x1bc),_0x389881[_0x19d62e(0x1b1)]]}),a37_0x1168eb(Text,{'color':_0x19d62e(0x1ba),'children':_0x389881[_0x19d62e(0x1c1)]})]},_0x389881[_0x19d62e(0x1b1)])),a37_0x1168eb(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a37_0x1168eb(Text,{'color':_0x19d62e(0x1ba),'children':_0x19d62e(0x1c4)})}),_0x30688d[_0x19d62e(0x1b7)](_0x2a65da=>a37_0x35fe4f(Box,{'children':[a37_0x35fe4f(Text,{'children':['\x20\x20\x20\x20',_0x2a65da['command']]}),a37_0x1168eb(Text,{'color':_0x19d62e(0x1ba),'children':_0x2a65da[_0x19d62e(0x1c1)]})]},_0x2a65da[_0x19d62e(0x1b1)]))]});}
@@ -1 +1 @@
1
- (function(_0x143c36,_0x5991a0){const _0x9536df=a35_0x543b,_0x3a52a8=_0x143c36();while(!![]){try{const _0x3dd580=parseInt(_0x9536df(0x1d4))/0x1*(parseInt(_0x9536df(0x1cf))/0x2)+-parseInt(_0x9536df(0x1e7))/0x3*(parseInt(_0x9536df(0x1e0))/0x4)+parseInt(_0x9536df(0x1c9))/0x5+parseInt(_0x9536df(0x1c7))/0x6+-parseInt(_0x9536df(0x1d6))/0x7*(parseInt(_0x9536df(0x1d9))/0x8)+-parseInt(_0x9536df(0x1d1))/0x9+-parseInt(_0x9536df(0x1db))/0xa*(parseInt(_0x9536df(0x1cc))/0xb);if(_0x3dd580===_0x5991a0)break;else _0x3a52a8['push'](_0x3a52a8['shift']());}catch(_0x1a1daa){_0x3a52a8['push'](_0x3a52a8['shift']());}}}(a35_0x312e,0xd6e34));function a35_0x543b(_0x423cbc,_0x17e2a0){const _0x312e18=a35_0x312e();return a35_0x543b=function(_0x543b01,_0x34f861){_0x543b01=_0x543b01-0x1bf;let _0x173b92=_0x312e18[_0x543b01];return _0x173b92;},a35_0x543b(_0x423cbc,_0x17e2a0);}import{jsx as a35_0x35f836,jsxs as a35_0x29a960}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a35_0x50b376 from'node:fs';import a35_0x51b107 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(_0x314e86){const _0x1feb8a=a35_0x543b,{cli:_0x15c8cd}=_0x314e86,_0x21ea41=_0x15c8cd[_0x1feb8a(0x1c4)][0x1],_0x587b10=_0x15c8cd[_0x1feb8a(0x1c4)][0x2],_0x2b97a2=['set',_0x1feb8a(0x1da)]['includes'](_0x21ea41||''),_0x507f8c=_0x15c8cd[_0x1feb8a(0x1c4)][_0x1feb8a(0x1c2)]>=0x3;if(_0x587b10===_0x1feb8a(0x1e4)||_0x15c8cd[_0x1feb8a(0x1c6)]['help'])return a35_0x35f836(ConfigHelp,{});const _0x3f6870=readConfig();if(_0x21ea41===_0x1feb8a(0x1e5)){if(_0x587b10){const _0x474765=_0x15c8cd[_0x1feb8a(0x1c4)][0x3];if(typeof _0x474765!==_0x1feb8a(0x1cb)){if(_0x587b10===_0x1feb8a(0x1d5)&&![_0x1feb8a(0x1e3),'daily']['includes'](_0x474765))return a35_0x35f836(Box,{'children':a35_0x35f836(Text,{'color':_0x1feb8a(0x1cd),'children':_0x1feb8a(0x1dd)})});const _0x5d0c78=isInProject(),_0x263317=_0x5d0c78?projectConfigPath:globalConfigPath;let _0x12df32={};try{if(existsSync(_0x263317)){const _0x365a33=readFileSync(_0x263317,{'encoding':_0x1feb8a(0x1d7)});_0x365a33&&(_0x12df32=JSON[_0x1feb8a(0x1d2)](_0x365a33));}}catch(_0x43e192){}if(typeof _0x474765!==_0x1feb8a(0x1c3)||_0x474765[_0x1feb8a(0x1c2)]>0x1f4)return a35_0x35f836(Box,{'children':a35_0x35f836(Text,{'color':'red','children':_0x1feb8a(0x1e1)})});let _0x56b6b0=_0x587b10;_0x587b10===_0x1feb8a(0x1e2)&&(_0x56b6b0=_0x1feb8a(0x1c0),delete _0x12df32[_0x1feb8a(0x1e2)]);_0x587b10===_0x1feb8a(0x1c0)&&delete _0x12df32[_0x1feb8a(0x1e2)];_0x12df32[_0x56b6b0]=_0x474765;try{const _0x38759d=a35_0x51b107[_0x1feb8a(0x1dc)](_0x263317);!existsSync(_0x38759d)&&a35_0x50b376[_0x1feb8a(0x1d8)](_0x38759d,{'recursive':!![]});const _0x4a67e5=_0x263317+_0x1feb8a(0x1c1);writeFileSync(_0x4a67e5,JSON[_0x1feb8a(0x1ca)](_0x12df32,null,0x2),{'encoding':_0x1feb8a(0x1d7),'mode':0x180}),a35_0x50b376['renameSync'](_0x4a67e5,_0x263317);if(_0x587b10===_0x1feb8a(0x1d5)){const _0x122b5a=_0x5d0c78?'项目':'全局';console[_0x1feb8a(0x1df)]('✓\x20'+_0x122b5a+_0x1feb8a(0x1c8)+_0x474765);}}catch(_0x5b71b4){const _0x4257fa=_0x263317+_0x1feb8a(0x1c1);try{existsSync(_0x4257fa)&&a35_0x50b376[_0x1feb8a(0x1d3)](_0x4257fa);}catch(_0x1f272c){}return logger['error'](_0x1feb8a(0x1de),_0x1feb8a(0x1bf),{'error':_0x5b71b4 instanceof Error?_0x5b71b4[_0x1feb8a(0x1c5)]:String(_0x5b71b4),'configKey':_0x587b10,'configValue':_0x474765,'targetConfigPath':_0x263317}),a35_0x35f836(Box,{'children':a35_0x29a960(Text,{'color':_0x1feb8a(0x1cd),'children':[_0x1feb8a(0x1e6),_0x5b71b4 instanceof Error?_0x5b71b4['message']:String(_0x5b71b4)]})});}return null;}return a35_0x35f836(Box,{'children':a35_0x35f836(Text,{'color':_0x1feb8a(0x1cd),'children':_0x1feb8a(0x1ce)})});}}if(_0x21ea41===_0x1feb8a(0x1da)){if(_0x587b10){let _0x432d3f=_0x587b10;return _0x587b10==='app'&&(_0x432d3f='appcode'),console[_0x1feb8a(0x1df)](_0x3f6870[_0x432d3f]||'undefined'),null;}return null;}if(_0x21ea41===_0x1feb8a(0x1d0))return console[_0x1feb8a(0x1df)](JSON[_0x1feb8a(0x1ca)](_0x3f6870,null,0x2)),null;if(!_0x2b97a2||!_0x507f8c)return a35_0x35f836(ConfigHelp,{});return null;}function a35_0x312e(){const _0x4ac25f=['message','flags','10559544jxwRxa','环境配置已设置为:\x20','4996440sBqecg','stringify','undefined','154iSwnuC','red','未提供配置值','352962cOiDqB','list','2357118iLPpRC','parse','unlinkSync','9AFFcyq','env','256109ofbpBq','utf8','mkdirSync','112qIVonl','get','1461920YTFVXR','dirname','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','config','log','2586212LAyLaL','配置值无效或过长','app','online','--help','set','保存配置失败:\x20','3dnEbab','保存配置失败','appcode','.tmp','length','string','input'];a35_0x312e=function(){return _0x4ac25f;};return a35_0x312e();}
1
+ (function(_0x394b32,_0x332396){const _0x3a6e91=a38_0x2ea4,_0x38306a=_0x394b32();while(!![]){try{const _0x4a3503=parseInt(_0x3a6e91(0x179))/0x1+parseInt(_0x3a6e91(0x16f))/0x2+parseInt(_0x3a6e91(0x18e))/0x3*(-parseInt(_0x3a6e91(0x16d))/0x4)+-parseInt(_0x3a6e91(0x17e))/0x5+parseInt(_0x3a6e91(0x180))/0x6*(-parseInt(_0x3a6e91(0x17c))/0x7)+parseInt(_0x3a6e91(0x177))/0x8+parseInt(_0x3a6e91(0x174))/0x9;if(_0x4a3503===_0x332396)break;else _0x38306a['push'](_0x38306a['shift']());}catch(_0x45edb7){_0x38306a['push'](_0x38306a['shift']());}}}(a38_0x1bcc,0x3feb0));import{jsx as a38_0x5d2dcc,jsxs as a38_0x48964a}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';import a38_0x3cb2c6 from'node:fs';import a38_0x2ed993 from'node:path';import{ConfigHelp}from'./config-help.js';import{Box,Text}from'ink';import{readConfig,isInProject,projectConfigPath,globalConfigPath}from'../utils/config.js';function a38_0x2ea4(_0x1d0d9a,_0x4c0514){_0x1d0d9a=_0x1d0d9a-0x16c;const _0x1bcc25=a38_0x1bcc();let _0x2ea469=_0x1bcc25[_0x1d0d9a];return _0x2ea469;}import{logger}from'../utils/logger.js';export function Config(_0x1b83da){const _0x4660d8=a38_0x2ea4,{cli:_0x3f35e5}=_0x1b83da,_0x3ff8be=_0x3f35e5[_0x4660d8(0x170)][0x1],_0x1690ae=_0x3f35e5['input'][0x2],_0x1a5587=[_0x4660d8(0x184),_0x4660d8(0x173)][_0x4660d8(0x17b)](_0x3ff8be||''),_0x2657fa=_0x3f35e5[_0x4660d8(0x170)]['length']>=0x3;if(_0x1690ae===_0x4660d8(0x186)||_0x3f35e5[_0x4660d8(0x189)]['help'])return a38_0x5d2dcc(ConfigHelp,{});const _0x5dc67e=readConfig();if(_0x3ff8be==='set'){if(_0x1690ae){const _0x4aa25c=_0x3f35e5[_0x4660d8(0x170)][0x3];if(typeof _0x4aa25c!==_0x4660d8(0x18f)){if(_0x1690ae==='env'&&!['online',_0x4660d8(0x16e)][_0x4660d8(0x17b)](_0x4aa25c))return a38_0x5d2dcc(Box,{'children':a38_0x5d2dcc(Text,{'color':_0x4660d8(0x18a),'children':_0x4660d8(0x18c)})});const _0x1885a4=isInProject(),_0x1d6ee1=_0x1885a4?projectConfigPath:globalConfigPath;let _0x13824b={};try{if(existsSync(_0x1d6ee1)){const _0x3161a0=readFileSync(_0x1d6ee1,{'encoding':_0x4660d8(0x175)});_0x3161a0&&(_0x13824b=JSON[_0x4660d8(0x17a)](_0x3161a0));}}catch(_0x44756c){}if(typeof _0x4aa25c!==_0x4660d8(0x17f)||_0x4aa25c[_0x4660d8(0x190)]>0x1f4)return a38_0x5d2dcc(Box,{'children':a38_0x5d2dcc(Text,{'color':_0x4660d8(0x18a),'children':_0x4660d8(0x191)})});let _0x40665c=_0x1690ae;_0x1690ae===_0x4660d8(0x187)&&(_0x40665c=_0x4660d8(0x176),delete _0x13824b['app']);_0x1690ae===_0x4660d8(0x176)&&delete _0x13824b['app'];_0x13824b[_0x40665c]=_0x4aa25c;try{const _0x136883=a38_0x2ed993[_0x4660d8(0x185)](_0x1d6ee1);!existsSync(_0x136883)&&a38_0x3cb2c6['mkdirSync'](_0x136883,{'recursive':!![]});const _0x2cfacc=_0x1d6ee1+'.tmp';writeFileSync(_0x2cfacc,JSON['stringify'](_0x13824b,null,0x2),{'encoding':_0x4660d8(0x175),'mode':0x180}),a38_0x3cb2c6['renameSync'](_0x2cfacc,_0x1d6ee1);if(_0x1690ae===_0x4660d8(0x178)){const _0x5f2dbd=_0x1885a4?'项目':'全局';console[_0x4660d8(0x17d)]('✓\x20'+_0x5f2dbd+_0x4660d8(0x18d)+_0x4aa25c);}}catch(_0x1e4649){const _0x4c9959=_0x1d6ee1+_0x4660d8(0x183);try{existsSync(_0x4c9959)&&a38_0x3cb2c6[_0x4660d8(0x172)](_0x4c9959);}catch(_0xef7b49){}return logger[_0x4660d8(0x181)](_0x4660d8(0x188),_0x4660d8(0x18b),{'error':_0x1e4649 instanceof Error?_0x1e4649[_0x4660d8(0x192)]:String(_0x1e4649),'configKey':_0x1690ae,'configValue':_0x4aa25c,'targetConfigPath':_0x1d6ee1}),a38_0x5d2dcc(Box,{'children':a38_0x48964a(Text,{'color':_0x4660d8(0x18a),'children':[_0x4660d8(0x16c),_0x1e4649 instanceof Error?_0x1e4649[_0x4660d8(0x192)]:String(_0x1e4649)]})});}return null;}return a38_0x5d2dcc(Box,{'children':a38_0x5d2dcc(Text,{'color':_0x4660d8(0x18a),'children':'未提供配置值'})});}}if(_0x3ff8be==='get'){if(_0x1690ae){let _0x496069=_0x1690ae;return _0x1690ae===_0x4660d8(0x187)&&(_0x496069='appcode'),console[_0x4660d8(0x17d)](_0x5dc67e[_0x496069]||'undefined'),null;}return null;}if(_0x3ff8be===_0x4660d8(0x171))return console[_0x4660d8(0x17d)](JSON[_0x4660d8(0x182)](_0x5dc67e,null,0x2)),null;if(!_0x1a5587||!_0x2657fa)return a38_0x5d2dcc(ConfigHelp,{});return null;}function a38_0x1bcc(){const _0x5b78e0=['utf8','appcode','4164096RHtczj','env','202672JFiPXM','parse','includes','16877nBJDzs','log','1165515vOwLeY','string','924zyLpcD','error','stringify','.tmp','set','dirname','--help','app','config','flags','red','保存配置失败','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','环境配置已设置为:\x20','31608PXyPrN','undefined','length','配置值无效或过长','message','保存配置失败:\x20','28zSbwXR','daily','424684lpgXQr','input','list','unlinkSync','get','39879hPHXVA'];a38_0x1bcc=function(){return _0x5b78e0;};return a38_0x1bcc();}
@@ -1 +1 @@
1
- function a36_0x4f02(_0x51936c,_0x1e293b){const _0x544ef5=a36_0x544e();return a36_0x4f02=function(_0x4f020d,_0x36c24d){_0x4f020d=_0x4f020d-0x67;let _0x170d58=_0x544ef5[_0x4f020d];return _0x170d58;},a36_0x4f02(_0x51936c,_0x1e293b);}const a36_0x545c07=a36_0x4f02;(function(_0x48f12e,_0x29dda4){const _0x2e36ac=a36_0x4f02,_0x336c7f=_0x48f12e();while(!![]){try{const _0x178a66=-parseInt(_0x2e36ac(0x6c))/0x1+-parseInt(_0x2e36ac(0x70))/0x2*(parseInt(_0x2e36ac(0x68))/0x3)+parseInt(_0x2e36ac(0x6d))/0x4+-parseInt(_0x2e36ac(0x72))/0x5+-parseInt(_0x2e36ac(0x71))/0x6+parseInt(_0x2e36ac(0x6e))/0x7+parseInt(_0x2e36ac(0x69))/0x8*(parseInt(_0x2e36ac(0x74))/0x9);if(_0x178a66===_0x29dda4)break;else _0x336c7f['push'](_0x336c7f['shift']());}catch(_0x56d3b9){_0x336c7f['push'](_0x336c7f['shift']());}}}(a36_0x544e,0x4a8fd));function a36_0x544e(){const _0x36106b=['https://daily-api.lovrabet.com','586953kARNnM','683276LztMUT','4059153vjorBR','https://api.lovrabet.com','46juIiZq','113730WuPDuq','1522510NoNgdB','https://user.lovrabet.com','4572bBXNBp','https://user-daily.lovrabet.com','77619FyMgVR','16696iXAfMM','online'];a36_0x544e=function(){return _0x36106b;};return a36_0x544e();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a36_0x545c07(0x6a)?a36_0x545c07(0x73):a36_0x545c07(0x67);export const getApiDomain=()=>getEnv()==='online'?a36_0x545c07(0x6f):a36_0x545c07(0x6b);
1
+ const a39_0x4b59b6=a39_0x4905;function a39_0x4905(_0x3c3a49,_0x245c7d){_0x3c3a49=_0x3c3a49-0xc5;const _0x5dc437=a39_0x5dc4();let _0x4905b1=_0x5dc437[_0x3c3a49];return _0x4905b1;}(function(_0x115ff7,_0x48c9e5){const _0x3aa7bc=a39_0x4905,_0x3381d1=_0x115ff7();while(!![]){try{const _0x4c531d=-parseInt(_0x3aa7bc(0xc5))/0x1+-parseInt(_0x3aa7bc(0xcb))/0x2*(parseInt(_0x3aa7bc(0xce))/0x3)+-parseInt(_0x3aa7bc(0xcd))/0x4*(-parseInt(_0x3aa7bc(0xca))/0x5)+-parseInt(_0x3aa7bc(0xcc))/0x6*(-parseInt(_0x3aa7bc(0xd0))/0x7)+-parseInt(_0x3aa7bc(0xc8))/0x8*(-parseInt(_0x3aa7bc(0xd1))/0x9)+parseInt(_0x3aa7bc(0xd3))/0xa+-parseInt(_0x3aa7bc(0xc9))/0xb*(parseInt(_0x3aa7bc(0xc7))/0xc);if(_0x4c531d===_0x48c9e5)break;else _0x3381d1['push'](_0x3381d1['shift']());}catch(_0x4c4cde){_0x3381d1['push'](_0x3381d1['shift']());}}}(a39_0x5dc4,0xa170d));function a39_0x5dc4(){const _0x4d973a=['1251gdXiOq','online','7560440CLLqZU','1108532WBLEcz','https://user.lovrabet.com','99276WyFCCQ','74888DDlSUe','1826AGrVTG','40SNVJUI','571686qBdANn','1278906SAmGCi','152988deoczz','3QyvGoP','https://daily-api.lovrabet.com','35WhXdfA'];a39_0x5dc4=function(){return _0x4d973a;};return a39_0x5dc4();}import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a39_0x4b59b6(0xd2)?a39_0x4b59b6(0xc6):'https://user-daily.lovrabet.com';export const getApiDomain=()=>getEnv()===a39_0x4b59b6(0xd2)?'https://api.lovrabet.com':a39_0x4b59b6(0xcf);
@@ -1 +1 @@
1
- const a37_0x505f6f=a37_0x166c;(function(_0x2afd4e,_0x399461){const _0x51ab62=a37_0x166c,_0x19365d=_0x2afd4e();while(!![]){try{const _0x6ba199=parseInt(_0x51ab62(0x148))/0x1+parseInt(_0x51ab62(0x14d))/0x2*(-parseInt(_0x51ab62(0x14e))/0x3)+parseInt(_0x51ab62(0x151))/0x4*(parseInt(_0x51ab62(0x14c))/0x5)+-parseInt(_0x51ab62(0x153))/0x6*(parseInt(_0x51ab62(0x150))/0x7)+parseInt(_0x51ab62(0x14f))/0x8*(parseInt(_0x51ab62(0x14a))/0x9)+parseInt(_0x51ab62(0x149))/0xa*(-parseInt(_0x51ab62(0x14b))/0xb)+-parseInt(_0x51ab62(0x147))/0xc*(-parseInt(_0x51ab62(0x152))/0xd);if(_0x6ba199===_0x399461)break;else _0x19365d['push'](_0x19365d['shift']());}catch(_0x2780f3){_0x19365d['push'](_0x19365d['shift']());}}}(a37_0xe25e,0x3e229));let env=process[a37_0x505f6f(0x155)][a37_0x505f6f(0x154)]||'online';function a37_0x166c(_0x27d1de,_0x1b69cb){const _0xe25e19=a37_0xe25e();return a37_0x166c=function(_0x166cb1,_0x5f43c7){_0x166cb1=_0x166cb1-0x147;let _0x191d79=_0xe25e19[_0x166cb1];return _0x191d79;},a37_0x166c(_0x27d1de,_0x1b69cb);}export function getEnv(){return env;}function a37_0xe25e(){const _0x278bdb=['12bpaeNE','89773AHJZSG','30DwklyO','1818hcEIXe','422147cCNTDz','245SpFxkC','2ZWllZz','712995HhTjKT','3704UieISu','707VPAgRH','34644kzwoif','742066SOquci','3414vajCBu','LOVRABET_ENV','env'];a37_0xe25e=function(){return _0x278bdb;};return a37_0xe25e();}export function initEnv(_0x2f67b1){env=_0x2f67b1;}
1
+ const a40_0x537fba=a40_0xa385;(function(_0x51ae73,_0x2aae9c){const _0x55da3e=a40_0xa385,_0x368c94=_0x51ae73();while(!![]){try{const _0x3d7aae=-parseInt(_0x55da3e(0xb3))/0x1+-parseInt(_0x55da3e(0xc0))/0x2+-parseInt(_0x55da3e(0xbb))/0x3*(-parseInt(_0x55da3e(0xbc))/0x4)+-parseInt(_0x55da3e(0xbd))/0x5*(parseInt(_0x55da3e(0xb8))/0x6)+-parseInt(_0x55da3e(0xbe))/0x7*(parseInt(_0x55da3e(0xb4))/0x8)+parseInt(_0x55da3e(0xb9))/0x9*(-parseInt(_0x55da3e(0xbf))/0xa)+parseInt(_0x55da3e(0xba))/0xb;if(_0x3d7aae===_0x2aae9c)break;else _0x368c94['push'](_0x368c94['shift']());}catch(_0x5cab62){_0x368c94['push'](_0x368c94['shift']());}}}(a40_0xff77,0xdb2d2));function a40_0xa385(_0x50a0e5,_0x6c70e5){_0x50a0e5=_0x50a0e5-0xb3;const _0xff7723=a40_0xff77();let _0xa38503=_0xff7723[_0x50a0e5];return _0xa38503;}let env=process[a40_0x537fba(0xb7)][a40_0x537fba(0xb6)]||a40_0x537fba(0xb5);export function getEnv(){return env;}function a40_0xff77(){const _0xb3b8ac=['env','96snKZiU','9725238JEJwkl','41136183RTWQwu','5130462FyhhMV','4LAtzyn','360465cMevIp','11785879HxpwLC','10NVyPdq','732916tJsARl','267836HdiOUJ','8WRZBPc','online','LOVRABET_ENV'];a40_0xff77=function(){return _0xb3b8ac;};return a40_0xff77();}export function initEnv(_0x326d58){env=_0x326d58;}
@@ -1 +1 @@
1
- (function(_0x5af969,_0x2ad281){const _0x134089=a38_0x2f13,_0x163133=_0x5af969();while(!![]){try{const _0x2076ff=parseInt(_0x134089(0x77))/0x1+-parseInt(_0x134089(0x93))/0x2*(-parseInt(_0x134089(0x96))/0x3)+-parseInt(_0x134089(0xb4))/0x4*(parseInt(_0x134089(0x9f))/0x5)+-parseInt(_0x134089(0x99))/0x6*(-parseInt(_0x134089(0x9e))/0x7)+parseInt(_0x134089(0x95))/0x8+parseInt(_0x134089(0x9d))/0x9+-parseInt(_0x134089(0xb1))/0xa*(parseInt(_0x134089(0xa5))/0xb);if(_0x2076ff===_0x2ad281)break;else _0x163133['push'](_0x163133['shift']());}catch(_0x387ef3){_0x163133['push'](_0x163133['shift']());}}}(a38_0x4213,0xa4203));import{jsx as a38_0xeb10be,jsxs as a38_0x220895,Fragment as a38_0x17a304}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 a38_0x2f13(_0x22f305,_0x25ce94){const _0x4213d2=a38_0x4213();return a38_0x2f13=function(_0x2f1353,_0x4ba19c){_0x2f1353=_0x2f1353-0x77;let _0x490b12=_0x4213d2[_0x2f1353];return _0x490b12;},a38_0x2f13(_0x22f305,_0x25ce94);}export function EnhancedGuidedCreate(_0x348036){const _0x20e787=a38_0x2f13,{onCreate:_0x1e418d,env:_0x28f42f}=_0x348036,[_0xd9daf,_0x5e0757]=useState(_0x20e787(0x90)),[_0x2b72e5,_0xbfb1b6]=useState(''),[_0x27e6a3,_0x343eeb]=useState(''),[_0x2980cd,_0x4d7989]=useState(''),[_0x7a1c1e,_0x551e03]=useState(''),[_0xd1772b,_0x8d58c0]=useState([]),[_0x20eef6,_0x40c854]=useState(null),[_0x1ab71d,_0x1d71ab]=useState(![]),[_0x244d1d,_0x45942f]=useState(![]),[_0x17d07c,_0x1c88e2]=useState(![]),[_0x59139a,_0x5d3c74]=useState(0x0),[_0x57b872,_0x26efb4]=useState(0x0),_0x31a2c3='my-app',_0x3207bc=readConfig(),_0x131d3e=typeof _0x3207bc['env']===_0x20e787(0xab)?_0x3207bc[_0x20e787(0x8b)]:undefined;function _0x426ce6(_0x243867){const _0x82d14f=_0x20e787;if(_0x243867[_0x82d14f(0x89)]>0x32)return{'valid':![],'message':_0x82d14f(0xad)};const _0x4f62c5=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x243867?.[_0x82d14f(0xb6)]()&&!_0x4f62c5[_0x82d14f(0xa1)](_0x243867))return{'valid':![],'message':_0x82d14f(0x92)};return{'valid':!![]};}function _0x599030(_0x36f95c){const _0x30de98=_0x20e787;if(!_0x36f95c['trim']())return{'valid':!![]};if(_0x36f95c[_0x30de98(0x89)]>0x64)return{'valid':![],'message':'应用AppCode长度不能超过\x20100\x20个字符'};const _0x1dc477=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x1dc477[_0x30de98(0xa1)](_0x36f95c))return{'valid':![],'message':_0x30de98(0x85)};return{'valid':!![]};}async function _0x29f897(){_0x1d71ab(!![]);try{const _0x40f62c=await getIsSessionValid();return _0x40c854(_0x40f62c),_0x40f62c;}catch(_0x515823){return _0x40c854(![]),![];}finally{_0x1d71ab(![]);}}async function _0x231d19(){_0x45942f(!![]);try{const _0x513ff2=await authServer({'silent':!![]});return _0x40c854(_0x513ff2),_0x513ff2;}catch(_0x3596dc){return _0x40c854(![]),![];}finally{_0x45942f(![]);}}return useInput(async(_0x458735,_0x3684b5)=>{const _0x34662a=_0x20e787;if(_0x3684b5[_0x34662a(0x81)]||_0x3684b5['rightArrow']){if(_0xd9daf===_0x34662a(0xac)){_0x5d3c74(_0x442f72=>_0x442f72===0x0?0x1:0x0);return;}if(_0xd9daf===_0x34662a(0xa0)){_0x26efb4(_0x4b1545=>_0x4b1545===0x0?0x1:0x0);return;}}if(_0x3684b5['return']){if(_0xd9daf==='project-name'){const _0x1fd8bf=_0x2980cd[_0x34662a(0xb6)]()||_0x31a2c3;if(_0x7a1c1e)return;_0xbfb1b6(_0x1fd8bf),_0x8d58c0([{'step':_0x34662a(0x90),'label':_0x34662a(0x98),'value':_0x1fd8bf}]),_0x4d7989(''),_0x551e03(''),_0x5e0757(_0x34662a(0x80));return;}if(_0xd9daf===_0x34662a(0x80)){if(_0x7a1c1e)return;const _0x308b30=_0x2980cd[_0x34662a(0xb6)]();_0x343eeb(_0x308b30),_0x8d58c0(_0x476264=>[..._0x476264,{'step':_0x34662a(0x80),'label':_0x34662a(0x7d),'value':_0x308b30||_0x34662a(0x7f)}]),_0x4d7989(''),_0x551e03('');if(_0x308b30){_0x5e0757(_0x34662a(0x8d));const _0x2d49fe=await _0x29f897();_0x2d49fe?_0x5e0757('confirm-api-pull'):_0x5e0757(_0x34662a(0xa0));}else{const _0x5e014d=_0x28f42f||_0x131d3e||_0x34662a(0x86);_0x1e418d({'projectName':_0x2b72e5,'appCode':undefined,'pullApi':![],'env':_0x5e014d}),_0x5e0757(_0x34662a(0xb7));}return;}if(_0xd9daf==='confirm-api-pull'){const _0x5dd81d=_0x59139a===0x0;_0x1c88e2(_0x5dd81d),_0x8d58c0(_0x39b557=>[..._0x39b557,{'step':_0x34662a(0xa7),'label':_0x34662a(0xb3),'value':_0x5dd81d?'是':'否'}]);const _0x3e33eb=_0x28f42f||_0x131d3e||_0x34662a(0x86);_0x1e418d({'projectName':_0x2b72e5,'appCode':_0x27e6a3,'pullApi':_0x5dd81d,'env':_0x3e33eb}),_0x5e0757(_0x34662a(0xb7));return;}if(_0xd9daf===_0x34662a(0xa0)){const _0xba76bb=_0x57b872===0x0;if(_0xba76bb){_0x5e0757('login-process');const _0x4e30bc=await _0x231d19();if(_0x4e30bc)_0x8d58c0(_0x4ec68a=>[..._0x4ec68a,{'step':_0x34662a(0x83),'label':'登录状态','value':_0x34662a(0x7a)}]),_0x5e0757('confirm-api-pull');else{_0x8d58c0(_0x5754df=>[..._0x5754df,{'step':_0x34662a(0x83),'label':_0x34662a(0xa4),'value':_0x34662a(0xa6)}]);const _0x44421e=_0x28f42f||_0x131d3e||_0x34662a(0x86);_0x1e418d({'projectName':_0x2b72e5,'appCode':_0x27e6a3,'pullApi':![],'env':_0x44421e}),_0x5e0757(_0x34662a(0xb7));}}else{_0x8d58c0(_0xb6a6de=>[..._0xb6a6de,{'step':_0x34662a(0x83),'label':_0x34662a(0xa4),'value':_0x34662a(0xaa)}]);const _0x539746=_0x28f42f||_0x131d3e||'online';_0x1e418d({'projectName':_0x2b72e5,'appCode':_0x27e6a3,'pullApi':![],'env':_0x539746}),_0x5e0757('creating');}return;}}if(_0x3684b5[_0x34662a(0x8a)]||_0x3684b5[_0x34662a(0x79)]){_0x4d7989(_0x3f4d06=>{const _0x1cb512=_0x34662a,_0x59b579=_0x3f4d06[_0x1cb512(0xae)](0x0,-0x1);if(_0xd9daf===_0x1cb512(0x90)){const {valid:_0x3e098c,message:_0x494eee}=_0x426ce6(_0x59b579);_0x551e03(_0x3e098c?'':_0x494eee||_0x1cb512(0xa2));}else{if(_0xd9daf===_0x1cb512(0x80)){const {valid:_0x1641f9,message:_0x41f34d}=_0x599030(_0x59b579);_0x551e03(_0x1641f9?'':_0x41f34d||_0x1cb512(0x8e));}}return _0x59b579;});return;}if(['creating','login-check',_0x34662a(0x8f)]['includes'](_0xd9daf))return;if(_0xd9daf===_0x34662a(0xac)||_0xd9daf===_0x34662a(0xa0))return;_0x4d7989(_0x55d2da=>{const _0x47b445=_0x34662a,_0x4086bc=_0x55d2da+_0x458735;if(_0xd9daf===_0x47b445(0x90)){const {valid:_0x391a5f,message:_0x493409}=_0x426ce6(_0x4086bc);_0x551e03(_0x391a5f?'':_0x493409||_0x47b445(0xa2));}else{if(_0xd9daf===_0x47b445(0x80)){const {valid:_0x12947c,message:_0x436567}=_0x599030(_0x4086bc);_0x551e03(_0x12947c?'':_0x436567||_0x47b445(0x8e));}}return _0x4086bc;});}),a38_0x220895(Box,{'flexDirection':_0x20e787(0xb8),'marginTop':0x1,'children':[_0xd1772b['length']===0x0&&a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':'cyan','children':_0x20e787(0x7e)})}),_0xd1772b[_0x20e787(0xb0)](_0x502dab=>a38_0x220895(Box,{'children':[a38_0x220895(Text,{'color':_0x20e787(0x82),'children':['√\x20',_0x502dab[_0x20e787(0x88)],':\x20']}),a38_0xeb10be(Text,{'color':'cyan','children':_0x502dab[_0x20e787(0x78)]})]},_0x502dab['step'])),_0xd9daf==='project-name'&&a38_0x220895(a38_0x17a304,{'children':[a38_0x220895(Box,{'children':[a38_0xeb10be(Text,{'children':_0x20e787(0x97)}),_0x2980cd?a38_0xeb10be(Text,{'color':_0x20e787(0x82),'children':_0x2980cd}):a38_0xeb10be(Text,{'color':_0x20e787(0x8c),'children':_0x31a2c3}),_0x7a1c1e&&a38_0x220895(Text,{'color':_0x20e787(0xa9),'children':[_0x20e787(0x94),_0x7a1c1e]})]}),!_0x7a1c1e&&!_0x2980cd&&a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':'gray','children':_0x20e787(0xaf)})})]}),_0xd9daf===_0x20e787(0x80)&&a38_0x220895(a38_0x17a304,{'children':[a38_0x220895(Box,{'children':[a38_0xeb10be(Text,{'children':_0x20e787(0xa3)}),a38_0xeb10be(Text,{'color':_0x20e787(0x8c),'children':'[可选]:\x20'}),a38_0xeb10be(Text,{'color':'green','children':_0x2980cd}),_0x7a1c1e&&a38_0x220895(Text,{'color':_0x20e787(0xa9),'children':['\x20←\x20',_0x7a1c1e]})]}),!_0x7a1c1e&&a38_0xeb10be(Box,{'children':a38_0x220895(Text,{'color':_0x20e787(0x8c),'children':['\x20',_0x20e787(0x9a)]})})]}),_0xd9daf===_0x20e787(0x8d)&&a38_0x220895(Box,{'children':[a38_0xeb10be(Text,{'children':_0x20e787(0x91)}),_0x1ab71d&&a38_0xeb10be(Text,{'color':_0x20e787(0x8c),'children':_0x20e787(0x87)})]}),_0xd9daf===_0x20e787(0xac)&&a38_0x220895(a38_0x17a304,{'children':[a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':_0x20e787(0x82),'children':'√\x20检测到有效登录状态'})}),a38_0xeb10be(Box,{'marginTop':0x1,'children':a38_0xeb10be(Text,{'children':_0x20e787(0x9b)})}),a38_0x220895(Box,{'marginLeft':0x2,'children':[a38_0x220895(Text,{'color':_0x59139a===0x0?_0x20e787(0x82):_0x20e787(0x8c),'children':[_0x59139a===0x0?'▶\x20':'\x20\x20',_0x20e787(0xa8)]}),a38_0xeb10be(Text,{'children':'\x20'}),a38_0x220895(Text,{'color':_0x59139a===0x1?_0x20e787(0x82):_0x20e787(0x8c),'children':[_0x59139a===0x1?'▶\x20':'\x20\x20','No']})]}),a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':_0x20e787(0x8c),'children':_0x20e787(0xb9)})}),a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':_0x20e787(0x9c),'children':_0x20e787(0xb2)})})]}),_0xd9daf==='login-prompt'&&a38_0x220895(a38_0x17a304,{'children':[a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':'yellow','children':_0x20e787(0x7c)})}),a38_0xeb10be(Box,{'marginTop':0x1,'children':a38_0xeb10be(Text,{'children':_0x20e787(0x7b)})}),a38_0x220895(Box,{'marginLeft':0x2,'children':[a38_0x220895(Text,{'color':_0x57b872===0x0?'green':'gray','children':[_0x57b872===0x0?'▶\x20':'\x20\x20',_0x20e787(0xa8)]}),a38_0xeb10be(Text,{'children':'\x20'}),a38_0x220895(Text,{'color':_0x57b872===0x1?'green':'gray','children':[_0x57b872===0x1?'▶\x20':'\x20\x20','No']})]}),a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':_0x20e787(0x8c),'children':_0x20e787(0xb9)})}),a38_0xeb10be(Box,{'children':a38_0xeb10be(Text,{'color':_0x20e787(0x9c),'children':_0x20e787(0xb5)})})]}),_0xd9daf==='login-process'&&a38_0x220895(Box,{'children':[a38_0xeb10be(Text,{'children':_0x20e787(0x84)}),_0x244d1d&&a38_0xeb10be(Text,{'color':'gray','children':'\x20登录中...'})]})]});}function a38_0x4213(){const _0xc2896e=['181108iIfvxd','\x20\x20推荐选择\x20Yes,登录后可自动拉取并配置\x20API\x20接口','trim','creating','column','\x20\x20使用\x20←→\x20选择,回车确认','1323503NuIDTn','value','delete','已登录','*\x20是否要先登录以便拉取\x20API\x20配置?','!\x20未检测到有效登录','应用AppCode','*\x20创建新项目','未设置','app-code','leftArrow','green','login','*\x20正在登录,请前往浏览器完成登录...','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','online','\x20检查中...','label','length','backspace','env','gray','login-check','应用AppCode不合法','login-process','project-name','*\x20正在检查登录状态...','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','417986SgaKyW','\x20←\x20','2251128cTCmIP','3ZBuxot','*\x20项目名:\x20','项目名','203688bcScfQ','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)','*\x20是否要自动拉取\x20API\x20配置?','yellow','9758844nNfrrV','154QPVkvB','110INuOsQ','login-prompt','test','项目名不合法','*\x20应用AppCode\x20','登录状态','3623961LsySOX','登录失败','api-pull','Yes','red','跳过登录','string','confirm-api-pull','项目名长度不能超过\x2050\x20个字符','slice','\x20直接回车确认,或输入自定义名称','map','60IERFjC','\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口','拉取API配置'];a38_0x4213=function(){return _0xc2896e;};return a38_0x4213();}
1
+ (function(_0x4053af,_0x591560){const _0x7d3534=a41_0x2be4,_0x42f87d=_0x4053af();while(!![]){try{const _0x168f14=parseInt(_0x7d3534(0x188))/0x1*(parseInt(_0x7d3534(0x177))/0x2)+-parseInt(_0x7d3534(0x180))/0x3*(-parseInt(_0x7d3534(0x1a5))/0x4)+parseInt(_0x7d3534(0x1ac))/0x5+parseInt(_0x7d3534(0x19b))/0x6+-parseInt(_0x7d3534(0x1a0))/0x7*(-parseInt(_0x7d3534(0x19f))/0x8)+parseInt(_0x7d3534(0x172))/0x9*(-parseInt(_0x7d3534(0x19a))/0xa)+-parseInt(_0x7d3534(0x18f))/0xb;if(_0x168f14===_0x591560)break;else _0x42f87d['push'](_0x42f87d['shift']());}catch(_0x3b4c61){_0x42f87d['push'](_0x42f87d['shift']());}}}(a41_0x1835,0x27073));import{jsx as a41_0x264e77,jsxs as a41_0x7f3309,Fragment as a41_0xaffb98}from'react/jsx-runtime';function a41_0x2be4(_0x2aaad0,_0x25f9eb){_0x2aaad0=_0x2aaad0-0x169;const _0x18358d=a41_0x1835();let _0x2be42d=_0x18358d[_0x2aaad0];return _0x2be42d;}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';export function EnhancedGuidedCreate(_0x56f7ee){const _0x3581e0=a41_0x2be4,{onCreate:_0x52d0cb,env:_0x40231b}=_0x56f7ee,[_0x37f45b,_0x48936b]=useState('project-name'),[_0x31e5d4,_0x33b989]=useState(''),[_0x5aa71c,_0xad81c4]=useState(''),[_0x123cf0,_0x2d0442]=useState(''),[_0x3924df,_0x2d8954]=useState(''),[_0x4c78d0,_0x3a074a]=useState([]),[_0x207218,_0x222011]=useState(null),[_0x59a069,_0x4ba640]=useState(![]),[_0x1735e2,_0x4f36fd]=useState(![]),[_0x375626,_0x2d9bea]=useState(![]),[_0x752721,_0x2bf96a]=useState(0x0),[_0x4456fb,_0x196850]=useState(0x0),_0x592730=_0x3581e0(0x187),_0x1349db=readConfig(),_0x5dff25=typeof _0x1349db[_0x3581e0(0x1aa)]==='string'?_0x1349db[_0x3581e0(0x1aa)]:undefined;function _0x30c9de(_0x4c3d96){const _0x13df4e=_0x3581e0;if(_0x4c3d96['length']>0x32)return{'valid':![],'message':'项目名长度不能超过\x2050\x20个字符'};const _0x190cfc=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x4c3d96?.[_0x13df4e(0x173)]()&&!_0x190cfc[_0x13df4e(0x16d)](_0x4c3d96))return{'valid':![],'message':_0x13df4e(0x17e)};return{'valid':!![]};}function _0x3aef77(_0x5c5ec7){const _0x1bc9b1=_0x3581e0;if(!_0x5c5ec7[_0x1bc9b1(0x173)]())return{'valid':!![]};if(_0x5c5ec7[_0x1bc9b1(0x190)]>0x64)return{'valid':![],'message':_0x1bc9b1(0x18b)};const _0x84ac8=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x84ac8[_0x1bc9b1(0x16d)](_0x5c5ec7))return{'valid':![],'message':_0x1bc9b1(0x19d)};return{'valid':!![]};}async function _0x572f95(){_0x4ba640(!![]);try{const _0x5cffdb=await getIsSessionValid();return _0x222011(_0x5cffdb),_0x5cffdb;}catch(_0x37843f){return _0x222011(![]),![];}finally{_0x4ba640(![]);}}async function _0x2d4c4e(){_0x4f36fd(!![]);try{const _0x2259a4=await authServer({'silent':!![]});return _0x222011(_0x2259a4),_0x2259a4;}catch(_0x2a7295){return _0x222011(![]),![];}finally{_0x4f36fd(![]);}}return useInput(async(_0x3504df,_0x4a3d14)=>{const _0x3b5db2=_0x3581e0;if(_0x4a3d14[_0x3b5db2(0x178)]||_0x4a3d14['rightArrow']){if(_0x37f45b===_0x3b5db2(0x1a2)){_0x2bf96a(_0x4847f2=>_0x4847f2===0x0?0x1:0x0);return;}if(_0x37f45b===_0x3b5db2(0x192)){_0x196850(_0x5b63d8=>_0x5b63d8===0x0?0x1:0x0);return;}}if(_0x4a3d14['return']){if(_0x37f45b===_0x3b5db2(0x19c)){const _0x35e836=_0x123cf0[_0x3b5db2(0x173)]()||_0x592730;if(_0x3924df)return;_0x33b989(_0x35e836),_0x3a074a([{'step':_0x3b5db2(0x19c),'label':_0x3b5db2(0x16a),'value':_0x35e836}]),_0x2d0442(''),_0x2d8954(''),_0x48936b(_0x3b5db2(0x179));return;}if(_0x37f45b==='app-code'){if(_0x3924df)return;const _0x586c58=_0x123cf0[_0x3b5db2(0x173)]();_0xad81c4(_0x586c58),_0x3a074a(_0x5a52a8=>[..._0x5a52a8,{'step':_0x3b5db2(0x179),'label':_0x3b5db2(0x1a6),'value':_0x586c58||_0x3b5db2(0x1a1)}]),_0x2d0442(''),_0x2d8954('');if(_0x586c58){_0x48936b(_0x3b5db2(0x174));const _0x3343df=await _0x572f95();_0x3343df?_0x48936b(_0x3b5db2(0x1a2)):_0x48936b(_0x3b5db2(0x192));}else{const _0x2c44f0=_0x40231b||_0x5dff25||_0x3b5db2(0x17a);_0x52d0cb({'projectName':_0x31e5d4,'appCode':undefined,'pullApi':![],'env':_0x2c44f0}),_0x48936b(_0x3b5db2(0x16c));}return;}if(_0x37f45b===_0x3b5db2(0x1a2)){const _0x318c42=_0x752721===0x0;_0x2d9bea(_0x318c42),_0x3a074a(_0x56a455=>[..._0x56a455,{'step':'api-pull','label':_0x3b5db2(0x175),'value':_0x318c42?'是':'否'}]);const _0x2779e2=_0x40231b||_0x5dff25||_0x3b5db2(0x17a);_0x52d0cb({'projectName':_0x31e5d4,'appCode':_0x5aa71c,'pullApi':_0x318c42,'env':_0x2779e2}),_0x48936b(_0x3b5db2(0x16c));return;}if(_0x37f45b==='login-prompt'){const _0x10a38b=_0x4456fb===0x0;if(_0x10a38b){_0x48936b(_0x3b5db2(0x16b));const _0x3b421f=await _0x2d4c4e();if(_0x3b421f)_0x3a074a(_0x2c3d7f=>[..._0x2c3d7f,{'step':_0x3b5db2(0x181),'label':_0x3b5db2(0x191),'value':'已登录'}]),_0x48936b(_0x3b5db2(0x1a2));else{_0x3a074a(_0x308f19=>[..._0x308f19,{'step':_0x3b5db2(0x181),'label':_0x3b5db2(0x191),'value':_0x3b5db2(0x197)}]);const _0x56a05c=_0x40231b||_0x5dff25||'online';_0x52d0cb({'projectName':_0x31e5d4,'appCode':_0x5aa71c,'pullApi':![],'env':_0x56a05c}),_0x48936b(_0x3b5db2(0x16c));}}else{_0x3a074a(_0x49e04f=>[..._0x49e04f,{'step':_0x3b5db2(0x181),'label':'登录状态','value':_0x3b5db2(0x185)}]);const _0xe7c88d=_0x40231b||_0x5dff25||_0x3b5db2(0x17a);_0x52d0cb({'projectName':_0x31e5d4,'appCode':_0x5aa71c,'pullApi':![],'env':_0xe7c88d}),_0x48936b(_0x3b5db2(0x16c));}return;}}if(_0x4a3d14[_0x3b5db2(0x193)]||_0x4a3d14[_0x3b5db2(0x169)]){_0x2d0442(_0x1809c3=>{const _0x21df60=_0x3b5db2,_0x203c3c=_0x1809c3[_0x21df60(0x186)](0x0,-0x1);if(_0x37f45b==='project-name'){const {valid:_0x3f15dd,message:_0x34f29a}=_0x30c9de(_0x203c3c);_0x2d8954(_0x3f15dd?'':_0x34f29a||_0x21df60(0x194));}else{if(_0x37f45b===_0x21df60(0x179)){const {valid:_0x2cb071,message:_0x5d4d28}=_0x3aef77(_0x203c3c);_0x2d8954(_0x2cb071?'':_0x5d4d28||_0x21df60(0x17c));}}return _0x203c3c;});return;}if([_0x3b5db2(0x16c),_0x3b5db2(0x174),'login-process'][_0x3b5db2(0x195)](_0x37f45b))return;if(_0x37f45b==='confirm-api-pull'||_0x37f45b===_0x3b5db2(0x192))return;_0x2d0442(_0x333308=>{const _0x4bd8f6=_0x3b5db2,_0x64a89=_0x333308+_0x3504df;if(_0x37f45b===_0x4bd8f6(0x19c)){const {valid:_0x4c3b1e,message:_0x151af1}=_0x30c9de(_0x64a89);_0x2d8954(_0x4c3b1e?'':_0x151af1||_0x4bd8f6(0x194));}else{if(_0x37f45b===_0x4bd8f6(0x179)){const {valid:_0x588dcc,message:_0x4c9f6b}=_0x3aef77(_0x64a89);_0x2d8954(_0x588dcc?'':_0x4c9f6b||'应用AppCode不合法');}}return _0x64a89;});}),a41_0x7f3309(Box,{'flexDirection':_0x3581e0(0x1a4),'marginTop':0x1,'children':[_0x4c78d0[_0x3581e0(0x190)]===0x0&&a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x16e),'children':_0x3581e0(0x170)})}),_0x4c78d0[_0x3581e0(0x184)](_0x57f16f=>a41_0x7f3309(Box,{'children':[a41_0x7f3309(Text,{'color':'green','children':['√\x20',_0x57f16f[_0x3581e0(0x17b)],':\x20']}),a41_0x264e77(Text,{'color':'cyan','children':_0x57f16f[_0x3581e0(0x189)]})]},_0x57f16f[_0x3581e0(0x176)])),_0x37f45b===_0x3581e0(0x19c)&&a41_0x7f3309(a41_0xaffb98,{'children':[a41_0x7f3309(Box,{'children':[a41_0x264e77(Text,{'children':_0x3581e0(0x1a7)}),_0x123cf0?a41_0x264e77(Text,{'color':'green','children':_0x123cf0}):a41_0x264e77(Text,{'color':_0x3581e0(0x1a8),'children':_0x592730}),_0x3924df&&a41_0x7f3309(Text,{'color':'red','children':[_0x3581e0(0x198),_0x3924df]})]}),!_0x3924df&&!_0x123cf0&&a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':'gray','children':_0x3581e0(0x17d)})})]}),_0x37f45b===_0x3581e0(0x179)&&a41_0x7f3309(a41_0xaffb98,{'children':[a41_0x7f3309(Box,{'children':[a41_0x264e77(Text,{'children':_0x3581e0(0x1a3)}),a41_0x264e77(Text,{'color':_0x3581e0(0x1a8),'children':_0x3581e0(0x1a9)}),a41_0x264e77(Text,{'color':_0x3581e0(0x171),'children':_0x123cf0}),_0x3924df&&a41_0x7f3309(Text,{'color':_0x3581e0(0x183),'children':['\x20←\x20',_0x3924df]})]}),!_0x3924df&&a41_0x264e77(Box,{'children':a41_0x7f3309(Text,{'color':_0x3581e0(0x1a8),'children':['\x20',_0x3581e0(0x18c)]})})]}),_0x37f45b===_0x3581e0(0x174)&&a41_0x7f3309(Box,{'children':[a41_0x264e77(Text,{'children':_0x3581e0(0x18e)}),_0x59a069&&a41_0x264e77(Text,{'color':_0x3581e0(0x1a8),'children':_0x3581e0(0x18a)})]}),_0x37f45b==='confirm-api-pull'&&a41_0x7f3309(a41_0xaffb98,{'children':[a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x171),'children':_0x3581e0(0x17f)})}),a41_0x264e77(Box,{'marginTop':0x1,'children':a41_0x264e77(Text,{'children':'*\x20是否要自动拉取\x20API\x20配置?'})}),a41_0x7f3309(Box,{'marginLeft':0x2,'children':[a41_0x7f3309(Text,{'color':_0x752721===0x0?_0x3581e0(0x171):_0x3581e0(0x1a8),'children':[_0x752721===0x0?'▶\x20':'\x20\x20',_0x3581e0(0x16f)]}),a41_0x264e77(Text,{'children':'\x20'}),a41_0x7f3309(Text,{'color':_0x752721===0x1?'green':'gray','children':[_0x752721===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x1a8),'children':'\x20\x20使用\x20←→\x20选择,回车确认'})}),a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x199),'children':_0x3581e0(0x182)})})]}),_0x37f45b==='login-prompt'&&a41_0x7f3309(a41_0xaffb98,{'children':[a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x199),'children':_0x3581e0(0x1ab)})}),a41_0x264e77(Box,{'marginTop':0x1,'children':a41_0x264e77(Text,{'children':_0x3581e0(0x19e)})}),a41_0x7f3309(Box,{'marginLeft':0x2,'children':[a41_0x7f3309(Text,{'color':_0x4456fb===0x0?'green':_0x3581e0(0x1a8),'children':[_0x4456fb===0x0?'▶\x20':'\x20\x20',_0x3581e0(0x16f)]}),a41_0x264e77(Text,{'children':'\x20'}),a41_0x7f3309(Text,{'color':_0x4456fb===0x1?_0x3581e0(0x171):_0x3581e0(0x1a8),'children':[_0x4456fb===0x1?'▶\x20':'\x20\x20','No']})]}),a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x1a8),'children':_0x3581e0(0x196)})}),a41_0x264e77(Box,{'children':a41_0x264e77(Text,{'color':_0x3581e0(0x199),'children':'\x20\x20推荐选择\x20Yes,登录后可自动拉取并配置\x20API\x20接口'})})]}),_0x37f45b===_0x3581e0(0x16b)&&a41_0x7f3309(Box,{'children':[a41_0x264e77(Text,{'children':_0x3581e0(0x18d)}),_0x1735e2&&a41_0x264e77(Text,{'color':'gray','children':'\x20登录中...'})]})]});}function a41_0x1835(){const _0x21eca5=['绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)','*\x20正在登录,请前往浏览器完成登录...','*\x20正在检查登录状态...','5797088czPpih','length','登录状态','login-prompt','backspace','项目名不合法','includes','\x20\x20使用\x20←→\x20选择,回车确认','登录失败','\x20←\x20','yellow','1867990gYImhZ','969702yNgzqC','project-name','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','*\x20是否要先登录以便拉取\x20API\x20配置?','8eyDzkc','2134559akjPIs','未设置','confirm-api-pull','*\x20应用AppCode\x20','column','76CQROLG','应用AppCode','*\x20项目名:\x20','gray','[可选]:\x20','env','!\x20未检测到有效登录','743010bFvUcC','delete','项目名','login-process','creating','test','cyan','Yes','*\x20创建新项目','green','9pkwuHc','trim','login-check','拉取API配置','step','1934QMhAva','leftArrow','app-code','online','label','应用AppCode不合法','\x20直接回车确认,或输入自定义名称','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','√\x20检测到有效登录状态','26007ZmuMwx','login','\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口','red','map','跳过登录','slice','my-app','97ruymar','value','\x20检查中...','应用AppCode长度不能超过\x20100\x20个字符'];a41_0x1835=function(){return _0x21eca5;};return a41_0x1835();}
@@ -1 +1 @@
1
- function a39_0x612d(_0x2d471e,_0x108325){const _0xb788e9=a39_0xb788();return a39_0x612d=function(_0x612d3f,_0xcdb202){_0x612d3f=_0x612d3f-0x11a;let _0x8f7f30=_0xb788e9[_0x612d3f];return _0x8f7f30;},a39_0x612d(_0x2d471e,_0x108325);}(function(_0x3e50d1,_0x5e5987){const _0x41d409=a39_0x612d,_0x941475=_0x3e50d1();while(!![]){try{const _0xfd4604=-parseInt(_0x41d409(0x122))/0x1*(-parseInt(_0x41d409(0x11b))/0x2)+-parseInt(_0x41d409(0x11c))/0x3*(-parseInt(_0x41d409(0x11a))/0x4)+parseInt(_0x41d409(0x125))/0x5+parseInt(_0x41d409(0x120))/0x6*(parseInt(_0x41d409(0x11e))/0x7)+-parseInt(_0x41d409(0x124))/0x8*(parseInt(_0x41d409(0x126))/0x9)+parseInt(_0x41d409(0x123))/0xa*(parseInt(_0x41d409(0x128))/0xb)+parseInt(_0x41d409(0x127))/0xc*(-parseInt(_0x41d409(0x121))/0xd);if(_0xfd4604===_0x5e5987)break;else _0x941475['push'](_0x941475['shift']());}catch(_0x49b254){_0x941475['push'](_0x941475['shift']());}}}(a39_0xb788,0xd50de));function a39_0xb788(){const _0x27d3b6=['3765723nNsCkL','toFixed','182rqUqil','now','355896gJijpv','13NbuueX','9pBUSPN','60910qGPoCX','16LWJttv','5397350QVikUS','2418201UlwMMJ','43478004aPEXkB','1562waqMPy','4FcgOMc','64748XlszBt'];a39_0xb788=function(){return _0x27d3b6;};return a39_0xb788();}export function formatElapsed(_0x15e41f){const _0x528ff9=a39_0x612d,_0x5dae64=Date[_0x528ff9(0x11f)]()-_0x15e41f;if(_0x5dae64<0x3e8)return _0x5dae64+'ms';const _0x48faef=(_0x5dae64/0x3e8)[_0x528ff9(0x11d)](0x2),_0x3303db=_0x48faef['replace'](/\.?0+$/u,'');return _0x3303db+'s';}
1
+ function a42_0x36a9(_0x406cc8,_0x217eb6){_0x406cc8=_0x406cc8-0x14b;const _0x899da9=a42_0x899d();let _0x36a9ea=_0x899da9[_0x406cc8];return _0x36a9ea;}(function(_0x5132d0,_0x999468){const _0xaf26c3=a42_0x36a9,_0x2b6d51=_0x5132d0();while(!![]){try{const _0x309401=parseInt(_0xaf26c3(0x14c))/0x1+parseInt(_0xaf26c3(0x152))/0x2+-parseInt(_0xaf26c3(0x151))/0x3+parseInt(_0xaf26c3(0x153))/0x4*(-parseInt(_0xaf26c3(0x14b))/0x5)+parseInt(_0xaf26c3(0x14d))/0x6+parseInt(_0xaf26c3(0x155))/0x7*(-parseInt(_0xaf26c3(0x150))/0x8)+parseInt(_0xaf26c3(0x14e))/0x9;if(_0x309401===_0x999468)break;else _0x2b6d51['push'](_0x2b6d51['shift']());}catch(_0x156887){_0x2b6d51['push'](_0x2b6d51['shift']());}}}(a42_0x899d,0xf3eff));function a42_0x899d(){const _0x1aa152=['replace','79288uMkulq','1812291tUmmze','1976766idasTF','2503804RjIeKH','toFixed','364tmmpBy','15mBnceQ','488660YvhAdo','6669282jOtVlq','12671091bTFiRg'];a42_0x899d=function(){return _0x1aa152;};return a42_0x899d();}export function formatElapsed(_0x5e0a55){const _0x40f211=a42_0x36a9,_0x353354=Date['now']()-_0x5e0a55;if(_0x353354<0x3e8)return _0x353354+'ms';const _0x46f603=(_0x353354/0x3e8)[_0x40f211(0x154)](0x2),_0x243443=_0x46f603[_0x40f211(0x14f)](/\.?0+$/u,'');return _0x243443+'s';}
@@ -1 +1 @@
1
- (function(_0x3917bb,_0x4671bf){const _0x49684c=a40_0x54c1,_0x321e14=_0x3917bb();while(!![]){try{const _0x2833aa=parseInt(_0x49684c(0x103))/0x1+-parseInt(_0x49684c(0x11f))/0x2+-parseInt(_0x49684c(0x12d))/0x3+parseInt(_0x49684c(0x106))/0x4*(-parseInt(_0x49684c(0x124))/0x5)+parseInt(_0x49684c(0xe9))/0x6*(-parseInt(_0x49684c(0x135))/0x7)+-parseInt(_0x49684c(0x107))/0x8+parseInt(_0x49684c(0x12b))/0x9;if(_0x2833aa===_0x4671bf)break;else _0x321e14['push'](_0x321e14['shift']());}catch(_0x4aefae){_0x321e14['push'](_0x321e14['shift']());}}}(a40_0x368b,0x60f9b));import{jsx as a40_0x55bcbb,Fragment as a40_0x297e11,jsxs as a40_0x4ce7ca}from'react/jsx-runtime';import a40_0x42ac69 from'node:path';import a40_0x106d13 from'node:fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';function a40_0x54c1(_0x208028,_0x55ed0a){const _0x368b34=a40_0x368b();return a40_0x54c1=function(_0x54c1a0,_0x402ceb){_0x54c1a0=_0x54c1a0-0xd7;let _0x3cca19=_0x368b34[_0x54c1a0];return _0x3cca19;},a40_0x54c1(_0x208028,_0x55ed0a);}import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';function a40_0x368b(){const _0x1885d7=['1109536AbkpKm','\x20配置应用AppCode:\x20','utf8','更新\x20package.json\x20name\x20和\x20description\x20字段','*\x20正在拉取\x20API\x20配置...','815hHOjBA','error','stringify','W_OK','API\x20配置拉取异常:\x20','清理项目目录失败:\x20','../..','25943994qbgRqH','column','664236vJasSJ','projectCode','×\x20项目名过长,最多支持\x20100\x20个字符','\x20√\x20','🎉\x20项目创建成功!','setLogPath','1.\x20','version','321741ZFGPzH','×\x20无法在当前目录创建项目,请检查目录权限','📁\x20项目名称:\x20','\x20|\x20应用AppCode:\x20','warn','📦\x20API配置:\x20','success','🚀\x20接下来可以:','\x20创建配置文件','cyan','*\x20正在更新\x20package.json\x20的\x20name\x20和\x20description\x20字段','cwd','resolve','trim','已自动拉取\x20✓','API\x20配置拉取成功:\x20','3.\x20','join','API\x20配置拉取失败:\x20','项目创建失败:\x20','message','description','需手动拉取','gray','accessSync','66mmxqsL','create','package.json','parse','×\x20项目目录\x20','2.\x20',',\x20description=','√\x20配置文件已创建,可稍后使用\x20\x27lovrabet\x20config\x20set\x20appcode\x20<app-code>\x27\x20配置','repeat','green','*\x20正在为项目\x20','项目创建完成:\x20','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','√\x20配置文件已创建,应用AppCode:\x20','√\x20API\x20配置拉取完成','dirname','env','\x20&&\x20lovrabet\x20start','string','!\x20API\x20配置拉取异常,项目已创建,可稍后手动执行:\x20lovrabet\x20api\x20pull','配置应用AppCode:\x20','name','test','log','writeFileSync','.lovrabetrc','102804geObqK','info','项目名称:\x20','13444yMltML','6069144ZmOOkV','appCode','toLocaleString','existsSync','projectName','online','*\x20配置文件路径:\x20','\x20Generated\x20by\x20lovrabet\x20cli\x20','url','readFileSync','white','开始创建项目:\x20','doTask','rmSync','length','lovrabet\x20api\x20pull','配置AppCode:\x20','配置应用AppCode失败:\x20','🔗\x20应用AppCode:\x20','pullApi','1.0.0','*\x20清理失败的项目目录:\x20','×\x20项目创建失败:\x20','拉取API配置:\x20'];a40_0x368b=function(){return _0x1885d7;};return a40_0x368b();}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';export function CreateApp(_0x2857b3){const _0x589360=a40_0x54c1,[_0x22a3fa,_0x1b40c9]=useState(![]),[_0x563a9e,_0x3eba3c]=useState(![]),[_0x2b8943,_0x1ed3ab]=useState(null),_0x27479b=useCopyProjectTemplate(),_0x234172=useInstallDependencies(),_0x5c9950=useFormatCode(),_0x14555a=async _0x8c96f4=>{const _0x17685b=a40_0x54c1;if(!_0x8c96f4[_0x17685b(0x10b)]||_0x8c96f4['projectName'][_0x17685b(0xdd)]()===''){console['error']('×\x20项目名不能为空');return;}const _0x12ae7d=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x12ae7d[_0x17685b(0xff)](_0x8c96f4['projectName'])){console[_0x17685b(0x125)]('×\x20项目名包含非法字符,不允许使用:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20及控制字符');return;}if(_0x8c96f4[_0x17685b(0x10b)][_0x17685b(0x115)]>0x64){console[_0x17685b(0x125)](_0x17685b(0x12f));return;}const _0x25d85b=a40_0x42ac69[_0x17685b(0xdc)](process['cwd'](),_0x8c96f4['projectName']);if(a40_0x106d13['existsSync'](_0x25d85b)){console[_0x17685b(0x125)](_0x17685b(0xed)+_0x8c96f4[_0x17685b(0x10b)]+'\x20已存在,请使用其他项目名');return;}try{const _0x222ede=a40_0x42ac69[_0x17685b(0xf8)](_0x25d85b);a40_0x106d13[_0x17685b(0xe8)](_0x222ede,a40_0x106d13['constants'][_0x17685b(0x127)]);}catch(_0x5db849){console[_0x17685b(0x125)](_0x17685b(0x136));return;}_0x1ed3ab(_0x8c96f4),_0x1b40c9(!![]),logger[_0x17685b(0x132)](_0x25d85b),logger['info'](_0x17685b(0xea),_0x17685b(0x112)+_0x8c96f4[_0x17685b(0x10b)],{'projectDir':_0x25d85b,'appCode':_0x8c96f4[_0x17685b(0x108)]});try{await _0x27479b[_0x17685b(0x113)](_0x8c96f4['projectName']),await _0x9c8841(_0x8c96f4[_0x17685b(0x10b)]),await _0x234172[_0x17685b(0x113)](_0x8c96f4[_0x17685b(0x10b)]),await _0x5c9950[_0x17685b(0x113)](_0x8c96f4[_0x17685b(0x10b)]),await _0x5ba009(_0x8c96f4[_0x17685b(0x10b)],_0x8c96f4[_0x17685b(0x108)]||'',_0x8c96f4['env']);if(_0x8c96f4[_0x17685b(0x11a)]&&_0x8c96f4[_0x17685b(0x108)]){console[_0x17685b(0x100)](_0x17685b(0x123));try{const _0x1da9c0=await pullApiSilent(_0x8c96f4[_0x17685b(0x108)],undefined,_0x25d85b,_0x8c96f4[_0x17685b(0xf9)]);_0x1da9c0?(console[_0x17685b(0x100)](_0x17685b(0xf7)),logger['info'](_0x17685b(0xea),_0x17685b(0xdf)+_0x8c96f4[_0x17685b(0x108)],{'projectDir':_0x25d85b,'appCode':_0x8c96f4[_0x17685b(0x108)],'env':_0x8c96f4[_0x17685b(0xf9)]})):(console[_0x17685b(0x100)]('!\x20API\x20配置拉取失败,可稍后手动执行:\x20lovrabet\x20api\x20pull'),logger[_0x17685b(0x139)](_0x17685b(0xea),_0x17685b(0xe2)+_0x8c96f4['appCode'],{'projectDir':_0x25d85b,'appCode':_0x8c96f4[_0x17685b(0x108)],'env':_0x8c96f4[_0x17685b(0xf9)]}));}catch(_0x572a6e){console['log'](_0x17685b(0xfc)),logger[_0x17685b(0x139)](_0x17685b(0xea),_0x17685b(0x128)+_0x8c96f4['appCode'],{'projectDir':_0x25d85b,'appCode':_0x8c96f4[_0x17685b(0x108)],'env':_0x8c96f4[_0x17685b(0xf9)],'error':_0x572a6e instanceof Error?_0x572a6e[_0x17685b(0xe4)]:String(_0x572a6e)});}}logger[_0x17685b(0x13b)](_0x17685b(0xea),_0x17685b(0xf4)+_0x8c96f4['projectName']),_0x3eba3c(!![]),_0x1b40c9(![]);}catch(_0xbcf793){logger[_0x17685b(0x125)](_0x17685b(0xea),_0x17685b(0xe3)+_0x8c96f4[_0x17685b(0x10b)],{'error':_0xbcf793 instanceof Error?_0xbcf793['message']:String(_0xbcf793)});try{a40_0x106d13[_0x17685b(0x10a)](_0x25d85b)&&(console[_0x17685b(0x100)](_0x17685b(0x11c)+_0x25d85b),a40_0x106d13[_0x17685b(0x114)](_0x25d85b,{'recursive':!![],'force':!![]}));}catch(_0x50686b){logger[_0x17685b(0x139)](_0x17685b(0xea),_0x17685b(0x129)+_0x25d85b,{'error':_0x50686b instanceof Error?_0x50686b[_0x17685b(0xe4)]:String(_0x50686b)});}_0x1b40c9(![]),console['error'](_0x17685b(0x11d)+(_0xbcf793 instanceof Error?_0xbcf793[_0x17685b(0xe4)]:String(_0xbcf793)));}},_0x666286=async _0x4a880c=>{const _0x4a23ed=a40_0x54c1;await _0x14555a({'projectName':_0x4a880c,'env':_0x2857b3[_0x4a23ed(0xf9)]});},_0x9c8841=async _0x42a005=>{const _0x47aaf7=a40_0x54c1,_0x2394a4=a40_0x42ac69[_0x47aaf7(0xdc)](process[_0x47aaf7(0xdb)](),_0x42a005),_0x23dd27=a40_0x42ac69['join'](_0x2394a4,'package.json');try{console[_0x47aaf7(0x100)](_0x47aaf7(0xda));const _0x3e2396=fileURLToPath(import.meta['url']),_0x1d6fc8=a40_0x42ac69[_0x47aaf7(0xdc)](a40_0x42ac69[_0x47aaf7(0xf8)](_0x3e2396),'../..'),_0xd48775=a40_0x42ac69[_0x47aaf7(0xe1)](_0x1d6fc8,_0x47aaf7(0xeb));let _0x301722=_0x47aaf7(0x11b);try{const _0x58c773=JSON['parse'](a40_0x106d13['readFileSync'](_0xd48775,'utf8'));_0x301722=_0x58c773[_0x47aaf7(0x134)]||_0x47aaf7(0x11b);}catch(_0x221614){}const _0x2067b5=a40_0x106d13[_0x47aaf7(0x110)](_0x23dd27,_0x47aaf7(0x121)),_0x1b2caf=JSON[_0x47aaf7(0xec)](_0x2067b5);_0x1b2caf[_0x47aaf7(0xfe)]=_0x42a005,_0x1b2caf['description']=_0x42a005+_0x47aaf7(0x10e)+_0x301722,a40_0x106d13[_0x47aaf7(0x101)](_0x23dd27,JSON[_0x47aaf7(0x126)](_0x1b2caf,null,0x2)+'\x0a',_0x47aaf7(0x121)),console[_0x47aaf7(0x100)]('√\x20package.json\x20已更新:\x20name='+_0x42a005+_0x47aaf7(0xef)+_0x1b2caf['description']),logger[_0x47aaf7(0x104)](_0x47aaf7(0xea),_0x47aaf7(0x122),{'projectName':_0x42a005,'description':_0x1b2caf[_0x47aaf7(0xe5)],'cliVersion':_0x301722,'packageJsonPath':_0x47aaf7(0xeb)});}catch(_0x15224c){logger['error'](_0x47aaf7(0xea),'更新\x20package.json\x20失败:\x20'+_0x42a005,{'projectName':_0x42a005,'error':_0x15224c instanceof Error?_0x15224c[_0x47aaf7(0xe4)]:String(_0x15224c)});throw _0x15224c;}},_0x5ba009=async(_0x4ca4a7,_0x218270,_0x195d72)=>{const _0x2078ab=a40_0x54c1,_0x2e8e5a=a40_0x42ac69['resolve'](process[_0x2078ab(0xdb)](),_0x4ca4a7),_0x10b1ca=a40_0x42ac69[_0x2078ab(0xe1)](_0x2e8e5a,_0x2078ab(0x102));try{_0x218270?console[_0x2078ab(0x100)](_0x2078ab(0xf3)+_0x4ca4a7+_0x2078ab(0x120)+_0x218270):console['log'](_0x2078ab(0xf3)+_0x4ca4a7+_0x2078ab(0xd8));console[_0x2078ab(0x100)](_0x2078ab(0x10d)+_0x10b1ca);const _0x387aea=fileURLToPath(import.meta[_0x2078ab(0x10f)]),_0x4d20cc=a40_0x42ac69['resolve'](a40_0x42ac69['dirname'](_0x387aea),_0x2078ab(0x12a)),_0xcb6232=a40_0x42ac69[_0x2078ab(0xe1)](_0x4d20cc,'package.json');let _0x419780=_0x2078ab(0x11b);try{const _0x2fb2f9=JSON[_0x2078ab(0xec)](a40_0x106d13['readFileSync'](_0xcb6232,_0x2078ab(0x121)));_0x419780=_0x2fb2f9[_0x2078ab(0x134)]||_0x2078ab(0x11b);}catch(_0x320286){}const _0x9bfcd2=readConfig(),_0x779c84=typeof _0x9bfcd2[_0x2078ab(0xf9)]===_0x2078ab(0xfb)?_0x9bfcd2[_0x2078ab(0xf9)]:undefined,{app:_0x1c62a5,appcode:_0x16a719,..._0x64462}=_0x9bfcd2,_0x44e412={..._0x64462,'appcode':_0x218270||'','env':_0x195d72||_0x779c84||_0x2078ab(0x10c),'createdAt':new Date()[_0x2078ab(0x109)](),'version':_0x419780};a40_0x106d13['writeFileSync'](_0x10b1ca,JSON[_0x2078ab(0x126)](_0x44e412,null,0x2),_0x2078ab(0x121)),_0x218270?console[_0x2078ab(0x100)](_0x2078ab(0xf6)+_0x218270):console[_0x2078ab(0x100)](_0x2078ab(0xf0)),logger[_0x2078ab(0x104)]('create',_0x2078ab(0xfd)+_0x218270,{'projectName':_0x4ca4a7,'configFile':_0x2078ab(0x102)});}catch(_0x8e82d6){logger[_0x2078ab(0x125)]('create',_0x2078ab(0x118)+_0x218270,{'projectName':_0x4ca4a7,'error':_0x8e82d6 instanceof Error?_0x8e82d6['message']:String(_0x8e82d6)});}};useEffect(()=>{const _0x36c746=a40_0x54c1;_0x2857b3[_0x36c746(0x12e)]&&_0x666286(_0x2857b3[_0x36c746(0x12e)]);},[_0x2857b3[_0x589360(0x12e)]]);if(!_0x22a3fa&&!_0x563a9e&&!_0x2857b3[_0x589360(0x12e)])return a40_0x55bcbb(EnhancedGuidedCreate,{'onCreate':_0x14555a,'env':_0x2857b3['env']});if(_0x22a3fa)return a40_0x4ce7ca(a40_0x297e11,{'children':[a40_0x4ce7ca(Box,{'marginTop':0x1,'children':[a40_0x55bcbb(Box,{'width':'1'}),a40_0x55bcbb(Text,{'color':'green','children':_0x589360(0x130)}),a40_0x55bcbb(Text,{'children':_0x589360(0x105)}),a40_0x55bcbb(Text,{'color':'green','children':_0x2b8943?.[_0x589360(0x10b)]}),_0x2b8943?.[_0x589360(0x108)]&&a40_0x4ce7ca(a40_0x297e11,{'children':[a40_0x55bcbb(Text,{'children':_0x589360(0x138)}),a40_0x55bcbb(Text,{'color':_0x589360(0xd9),'children':_0x2b8943[_0x589360(0x108)]})]})]}),a40_0x55bcbb(TaskRunning,{..._0x27479b}),a40_0x55bcbb(TaskRunning,{..._0x234172}),a40_0x55bcbb(TaskRunning,{..._0x5c9950})]});if(_0x563a9e)return a40_0x4ce7ca(a40_0x297e11,{'children':[a40_0x4ce7ca(Box,{'marginTop':0x1,'children':[a40_0x55bcbb(Box,{'width':'1'}),a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'children':_0x589360(0x130)}),a40_0x55bcbb(Text,{'children':_0x589360(0x105)}),a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'children':_0x2b8943?.[_0x589360(0x10b)]}),_0x2b8943?.[_0x589360(0x108)]&&a40_0x4ce7ca(a40_0x297e11,{'children':[a40_0x55bcbb(Text,{'children':_0x589360(0x138)}),a40_0x55bcbb(Text,{'color':_0x589360(0xd9),'children':_0x2b8943[_0x589360(0x108)]})]})]}),a40_0x55bcbb(TaskFinished,{..._0x27479b}),a40_0x55bcbb(TaskFinished,{..._0x234172}),a40_0x55bcbb(TaskFinished,{..._0x5c9950}),a40_0x55bcbb(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'children':'─'[_0x589360(0xf1)](0x3c)})}),a40_0x55bcbb(Box,{'children':a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'bold':!![],'children':_0x589360(0x131)})}),a40_0x4ce7ca(Box,{'marginTop':0x1,'flexDirection':'column','children':[a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':'cyan','children':_0x589360(0x137)}),a40_0x55bcbb(Text,{'color':_0x589360(0x111),'bold':!![],'children':_0x2b8943?.[_0x589360(0x10b)]})]}),_0x2b8943?.[_0x589360(0x108)]&&a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':'cyan','children':_0x589360(0x119)}),a40_0x55bcbb(Text,{'color':'white','bold':!![],'children':_0x2b8943[_0x589360(0x108)]})]}),a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':'cyan','children':_0x589360(0x13a)}),_0x2b8943?.[_0x589360(0x11a)]?a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'bold':!![],'children':_0x589360(0xde)}):_0x2b8943?.[_0x589360(0x108)]?a40_0x55bcbb(Text,{'color':'yellow','bold':!![],'children':_0x589360(0xe6)}):a40_0x55bcbb(Text,{'color':'gray','bold':!![],'children':'未配置'})]})]}),a40_0x55bcbb(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a40_0x55bcbb(Text,{'color':'cyan','bold':!![],'children':_0x589360(0xd7)})}),a40_0x4ce7ca(Box,{'marginLeft':0x2,'flexDirection':_0x589360(0x12c),'children':[a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'children':_0x589360(0x133)}),a40_0x55bcbb(Text,{'color':_0x589360(0x111),'children':'启动项目:\x20'}),a40_0x55bcbb(Text,{'color':'cyan','bold':!![],'children':'cd\x20'+_0x2b8943?.[_0x589360(0x10b)]+_0x589360(0xfa)})]}),_0x2b8943?.[_0x589360(0x108)]&&!_0x2b8943?.[_0x589360(0x11a)]&&a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':'yellow','children':_0x589360(0xee)}),a40_0x55bcbb(Text,{'color':'white','children':_0x589360(0x11e)}),a40_0x55bcbb(Text,{'color':_0x589360(0xd9),'bold':!![],'children':_0x589360(0x116)})]}),!_0x2b8943?.[_0x589360(0x108)]&&a40_0x4ce7ca(a40_0x297e11,{'children':[a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':_0x589360(0xe7),'children':'2.\x20'}),a40_0x55bcbb(Text,{'color':_0x589360(0x111),'children':_0x589360(0x117)}),a40_0x55bcbb(Text,{'color':_0x589360(0xd9),'bold':!![],'children':'lovrabet\x20config\x20set\x20appcode\x20[app-code]'})]}),a40_0x4ce7ca(Box,{'children':[a40_0x55bcbb(Text,{'color':'gray','children':_0x589360(0xe0)}),a40_0x55bcbb(Text,{'color':_0x589360(0x111),'children':'拉取API配置:\x20'}),a40_0x55bcbb(Text,{'color':'cyan','bold':!![],'children':_0x589360(0xf5)})]})]})]}),a40_0x55bcbb(Box,{'marginTop':0x1,'children':a40_0x55bcbb(Text,{'color':_0x589360(0xf2),'children':'─'['repeat'](0x3c)})})]});return null;}
1
+ (function(_0x187b1e,_0x410917){const _0x108b76=a43_0x4b61,_0x370c70=_0x187b1e();while(!![]){try{const _0x5cdcbe=parseInt(_0x108b76(0xe4))/0x1+parseInt(_0x108b76(0xd3))/0x2+parseInt(_0x108b76(0xe3))/0x3*(-parseInt(_0x108b76(0xda))/0x4)+parseInt(_0x108b76(0xb2))/0x5*(-parseInt(_0x108b76(0xbb))/0x6)+-parseInt(_0x108b76(0x9c))/0x7*(-parseInt(_0x108b76(0xd9))/0x8)+-parseInt(_0x108b76(0xbc))/0x9*(-parseInt(_0x108b76(0xa1))/0xa)+-parseInt(_0x108b76(0xa6))/0xb;if(_0x5cdcbe===_0x410917)break;else _0x370c70['push'](_0x370c70['shift']());}catch(_0x4bdac0){_0x370c70['push'](_0x370c70['shift']());}}}(a43_0x10f6,0x43f91));import{jsx as a43_0x32eb99,Fragment as a43_0x4cc24c,jsxs as a43_0x2ba9da}from'react/jsx-runtime';import a43_0x596acd from'node:path';import a43_0x1a8784 from'node:fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';function a43_0x4b61(_0x1ecc31,_0x5124ca){_0x1ecc31=_0x1ecc31-0x8b;const _0x10f609=a43_0x10f6();let _0x4b61b8=_0x10f609[_0x1ecc31];return _0x4b61b8;}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';function a43_0x10f6(){const _0x460626=['更新\x20package.json\x20name\x20和\x20description\x20字段','existsSync','readFileSync','online','pullApi','配置AppCode:\x20','utf8','length','23508kgRaNF','135oVmhiH','error','create','repeat','!\x20API\x20配置拉取异常,项目已创建,可稍后手动执行:\x20lovrabet\x20api\x20pull','×\x20项目目录\x20','.lovrabetrc','column','📦\x20API配置:\x20','🎉\x20项目创建成功!','gray','!\x20API\x20配置拉取失败,可稍后手动执行:\x20lovrabet\x20api\x20pull','yellow','version','\x20√\x20','*\x20正在为项目\x20','doTask','项目创建失败:\x20','success','更新\x20package.json\x20失败:\x20','×\x20项目名包含非法字符,不允许使用:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20及控制字符','拉取API配置:\x20','parse','103022IIchXp','warn','配置应用AppCode失败:\x20','1.0.0','开始创建项目:\x20','accessSync','16ZUwTxc','4BslEVU','writeFileSync','√\x20配置文件已创建,应用AppCode:\x20','lovrabet\x20api\x20pull','message','stringify','cwd','white','🔗\x20应用AppCode:\x20','1073238skLUpS','209718CglNYk','join','test','已自动拉取\x20✓','description','清理项目目录失败:\x20','未配置','info','dirname','🚀\x20接下来可以:','cd\x20','projectCode','env','projectName','cyan','../..','\x20创建配置文件','×\x20无法在当前目录创建项目,请检查目录权限','API\x20配置拉取失败:\x20','\x20&&\x20lovrabet\x20start','*\x20正在拉取\x20API\x20配置...','2.\x20','📁\x20项目名称:\x20','465766jnzeXj','*\x20配置文件路径:\x20','√\x20package.json\x20已更新:\x20name=','toLocaleString','\x20|\x20应用AppCode:\x20','268980vTwPgH','×\x20项目名不能为空','需手动拉取','string','3.\x20','355498GgwFFh','appCode','setLogPath',',\x20description=','resolve','green','项目名称:\x20','log','package.json','√\x20配置文件已创建,可稍后使用\x20\x27lovrabet\x20config\x20set\x20appcode\x20<app-code>\x27\x20配置','×\x20项目创建失败:\x20','rmSync','165oTOUFY'];a43_0x10f6=function(){return _0x460626;};return a43_0x10f6();}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';export function CreateApp(_0x2f58ba){const _0x434095=a43_0x4b61,[_0x1d5947,_0x16604f]=useState(![]),[_0x137868,_0x124059]=useState(![]),[_0x560629,_0x297c88]=useState(null),_0x49f1b6=useCopyProjectTemplate(),_0x521fe6=useInstallDependencies(),_0x2d78ff=useFormatCode(),_0x469b55=async _0x528cba=>{const _0x5bc2e3=a43_0x4b61;if(!_0x528cba['projectName']||_0x528cba[_0x5bc2e3(0x92)]['trim']()===''){console[_0x5bc2e3(0xbd)](_0x5bc2e3(0xa2));return;}const _0x4fc2ec=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x4fc2ec[_0x5bc2e3(0xe6)](_0x528cba[_0x5bc2e3(0x92)])){console['error'](_0x5bc2e3(0xd0));return;}if(_0x528cba[_0x5bc2e3(0x92)][_0x5bc2e3(0xba)]>0x64){console['error']('×\x20项目名过长,最多支持\x20100\x20个字符');return;}const _0xeeec8d=a43_0x596acd[_0x5bc2e3(0xaa)](process[_0x5bc2e3(0xe0)](),_0x528cba['projectName']);if(a43_0x1a8784[_0x5bc2e3(0xb4)](_0xeeec8d)){console[_0x5bc2e3(0xbd)](_0x5bc2e3(0xc1)+_0x528cba['projectName']+'\x20已存在,请使用其他项目名');return;}try{const _0x3017cd=a43_0x596acd['dirname'](_0xeeec8d);a43_0x1a8784[_0x5bc2e3(0xd8)](_0x3017cd,a43_0x1a8784['constants']['W_OK']);}catch(_0x25910b){console[_0x5bc2e3(0xbd)](_0x5bc2e3(0x96));return;}_0x297c88(_0x528cba),_0x16604f(!![]),logger[_0x5bc2e3(0xa8)](_0xeeec8d),logger[_0x5bc2e3(0x8c)](_0x5bc2e3(0xbe),_0x5bc2e3(0xd7)+_0x528cba[_0x5bc2e3(0x92)],{'projectDir':_0xeeec8d,'appCode':_0x528cba[_0x5bc2e3(0xa7)]});try{await _0x49f1b6[_0x5bc2e3(0xcc)](_0x528cba[_0x5bc2e3(0x92)]),await _0x2ad07c(_0x528cba['projectName']),await _0x521fe6[_0x5bc2e3(0xcc)](_0x528cba['projectName']),await _0x2d78ff['doTask'](_0x528cba[_0x5bc2e3(0x92)]),await _0x49eda3(_0x528cba[_0x5bc2e3(0x92)],_0x528cba['appCode']||'',_0x528cba[_0x5bc2e3(0x91)]);if(_0x528cba[_0x5bc2e3(0xb7)]&&_0x528cba[_0x5bc2e3(0xa7)]){console[_0x5bc2e3(0xad)](_0x5bc2e3(0x99));try{const _0x35f3f4=await pullApiSilent(_0x528cba['appCode'],undefined,_0xeeec8d,_0x528cba[_0x5bc2e3(0x91)]);_0x35f3f4?(console[_0x5bc2e3(0xad)]('√\x20API\x20配置拉取完成'),logger['info']('create','API\x20配置拉取成功:\x20'+_0x528cba[_0x5bc2e3(0xa7)],{'projectDir':_0xeeec8d,'appCode':_0x528cba[_0x5bc2e3(0xa7)],'env':_0x528cba[_0x5bc2e3(0x91)]})):(console['log'](_0x5bc2e3(0xc7)),logger[_0x5bc2e3(0xd4)]('create',_0x5bc2e3(0x97)+_0x528cba[_0x5bc2e3(0xa7)],{'projectDir':_0xeeec8d,'appCode':_0x528cba[_0x5bc2e3(0xa7)],'env':_0x528cba[_0x5bc2e3(0x91)]}));}catch(_0x4261f4){console[_0x5bc2e3(0xad)](_0x5bc2e3(0xc0)),logger[_0x5bc2e3(0xd4)](_0x5bc2e3(0xbe),'API\x20配置拉取异常:\x20'+_0x528cba[_0x5bc2e3(0xa7)],{'projectDir':_0xeeec8d,'appCode':_0x528cba[_0x5bc2e3(0xa7)],'env':_0x528cba['env'],'error':_0x4261f4 instanceof Error?_0x4261f4[_0x5bc2e3(0xde)]:String(_0x4261f4)});}}logger[_0x5bc2e3(0xce)](_0x5bc2e3(0xbe),'项目创建完成:\x20'+_0x528cba[_0x5bc2e3(0x92)]),_0x124059(!![]),_0x16604f(![]);}catch(_0x378bfa){logger['error'](_0x5bc2e3(0xbe),_0x5bc2e3(0xcd)+_0x528cba[_0x5bc2e3(0x92)],{'error':_0x378bfa instanceof Error?_0x378bfa['message']:String(_0x378bfa)});try{a43_0x1a8784[_0x5bc2e3(0xb4)](_0xeeec8d)&&(console[_0x5bc2e3(0xad)]('*\x20清理失败的项目目录:\x20'+_0xeeec8d),a43_0x1a8784[_0x5bc2e3(0xb1)](_0xeeec8d,{'recursive':!![],'force':!![]}));}catch(_0x5933a5){logger[_0x5bc2e3(0xd4)](_0x5bc2e3(0xbe),_0x5bc2e3(0xe9)+_0xeeec8d,{'error':_0x5933a5 instanceof Error?_0x5933a5[_0x5bc2e3(0xde)]:String(_0x5933a5)});}_0x16604f(![]),console[_0x5bc2e3(0xbd)](_0x5bc2e3(0xb0)+(_0x378bfa instanceof Error?_0x378bfa['message']:String(_0x378bfa)));}},_0x569b4d=async _0x3cfe40=>{await _0x469b55({'projectName':_0x3cfe40,'env':_0x2f58ba['env']});},_0x2ad07c=async _0x3f0ff8=>{const _0x3f556c=a43_0x4b61,_0x5de38d=a43_0x596acd[_0x3f556c(0xaa)](process[_0x3f556c(0xe0)](),_0x3f0ff8),_0x6ad52a=a43_0x596acd['join'](_0x5de38d,_0x3f556c(0xae));try{console[_0x3f556c(0xad)]('*\x20正在更新\x20package.json\x20的\x20name\x20和\x20description\x20字段');const _0x88ebe9=fileURLToPath(import.meta.url),_0x20f339=a43_0x596acd[_0x3f556c(0xaa)](a43_0x596acd[_0x3f556c(0x8d)](_0x88ebe9),_0x3f556c(0x94)),_0x345bef=a43_0x596acd[_0x3f556c(0xe5)](_0x20f339,'package.json');let _0x870c08=_0x3f556c(0xd6);try{const _0x101638=JSON[_0x3f556c(0xd2)](a43_0x1a8784[_0x3f556c(0xb5)](_0x345bef,_0x3f556c(0xb9)));_0x870c08=_0x101638[_0x3f556c(0xc9)]||_0x3f556c(0xd6);}catch(_0x42e885){}const _0x3a9133=a43_0x1a8784['readFileSync'](_0x6ad52a,_0x3f556c(0xb9)),_0x434da7=JSON[_0x3f556c(0xd2)](_0x3a9133);_0x434da7['name']=_0x3f0ff8,_0x434da7['description']=_0x3f0ff8+'\x20Generated\x20by\x20lovrabet\x20cli\x20'+_0x870c08,a43_0x1a8784[_0x3f556c(0xdb)](_0x6ad52a,JSON[_0x3f556c(0xdf)](_0x434da7,null,0x2)+'\x0a',_0x3f556c(0xb9)),console['log'](_0x3f556c(0x9e)+_0x3f0ff8+_0x3f556c(0xa9)+_0x434da7[_0x3f556c(0xe8)]),logger['info']('create',_0x3f556c(0xb3),{'projectName':_0x3f0ff8,'description':_0x434da7[_0x3f556c(0xe8)],'cliVersion':_0x870c08,'packageJsonPath':_0x3f556c(0xae)});}catch(_0x3e6c4c){logger[_0x3f556c(0xbd)]('create',_0x3f556c(0xcf)+_0x3f0ff8,{'projectName':_0x3f0ff8,'error':_0x3e6c4c instanceof Error?_0x3e6c4c['message']:String(_0x3e6c4c)});throw _0x3e6c4c;}},_0x49eda3=async(_0x24827d,_0x240911,_0x2addb5)=>{const _0x12010f=a43_0x4b61,_0x1000b5=a43_0x596acd[_0x12010f(0xaa)](process[_0x12010f(0xe0)](),_0x24827d),_0xea4fbf=a43_0x596acd[_0x12010f(0xe5)](_0x1000b5,_0x12010f(0xc2));try{_0x240911?console[_0x12010f(0xad)](_0x12010f(0xcb)+_0x24827d+'\x20配置应用AppCode:\x20'+_0x240911):console[_0x12010f(0xad)](_0x12010f(0xcb)+_0x24827d+_0x12010f(0x95));console['log'](_0x12010f(0x9d)+_0xea4fbf);const _0x11ffa9=fileURLToPath(import.meta.url),_0x50f092=a43_0x596acd[_0x12010f(0xaa)](a43_0x596acd[_0x12010f(0x8d)](_0x11ffa9),'../..'),_0x304655=a43_0x596acd['join'](_0x50f092,_0x12010f(0xae));let _0x1ffcef=_0x12010f(0xd6);try{const _0x24ab2c=JSON[_0x12010f(0xd2)](a43_0x1a8784[_0x12010f(0xb5)](_0x304655,'utf8'));_0x1ffcef=_0x24ab2c['version']||_0x12010f(0xd6);}catch(_0x42cbd4){}const _0x282284=readConfig(),_0x5b9932=typeof _0x282284[_0x12010f(0x91)]===_0x12010f(0xa4)?_0x282284[_0x12010f(0x91)]:undefined,{app:_0x378458,appcode:_0x3e26b5,..._0x35c634}=_0x282284,_0x1e84d1={..._0x35c634,'appcode':_0x240911||'','env':_0x2addb5||_0x5b9932||_0x12010f(0xb6),'createdAt':new Date()[_0x12010f(0x9f)](),'version':_0x1ffcef};a43_0x1a8784['writeFileSync'](_0xea4fbf,JSON['stringify'](_0x1e84d1,null,0x2),_0x12010f(0xb9)),_0x240911?console[_0x12010f(0xad)](_0x12010f(0xdc)+_0x240911):console[_0x12010f(0xad)](_0x12010f(0xaf)),logger[_0x12010f(0x8c)](_0x12010f(0xbe),'配置应用AppCode:\x20'+_0x240911,{'projectName':_0x24827d,'configFile':_0x12010f(0xc2)});}catch(_0x1e2fb5){logger[_0x12010f(0xbd)](_0x12010f(0xbe),_0x12010f(0xd5)+_0x240911,{'projectName':_0x24827d,'error':_0x1e2fb5 instanceof Error?_0x1e2fb5[_0x12010f(0xde)]:String(_0x1e2fb5)});}};useEffect(()=>{const _0xa4025d=a43_0x4b61;_0x2f58ba[_0xa4025d(0x90)]&&_0x569b4d(_0x2f58ba[_0xa4025d(0x90)]);},[_0x2f58ba[_0x434095(0x90)]]);if(!_0x1d5947&&!_0x137868&&!_0x2f58ba[_0x434095(0x90)])return a43_0x32eb99(EnhancedGuidedCreate,{'onCreate':_0x469b55,'env':_0x2f58ba[_0x434095(0x91)]});if(_0x1d5947)return a43_0x2ba9da(a43_0x4cc24c,{'children':[a43_0x2ba9da(Box,{'marginTop':0x1,'children':[a43_0x32eb99(Box,{'width':'1'}),a43_0x32eb99(Text,{'color':'green','children':_0x434095(0xca)}),a43_0x32eb99(Text,{'children':_0x434095(0xac)}),a43_0x32eb99(Text,{'color':_0x434095(0xab),'children':_0x560629?.[_0x434095(0x92)]}),_0x560629?.['appCode']&&a43_0x2ba9da(a43_0x4cc24c,{'children':[a43_0x32eb99(Text,{'children':_0x434095(0xa0)}),a43_0x32eb99(Text,{'color':_0x434095(0x93),'children':_0x560629[_0x434095(0xa7)]})]})]}),a43_0x32eb99(TaskRunning,{..._0x49f1b6}),a43_0x32eb99(TaskRunning,{..._0x521fe6}),a43_0x32eb99(TaskRunning,{..._0x2d78ff})]});if(_0x137868)return a43_0x2ba9da(a43_0x4cc24c,{'children':[a43_0x2ba9da(Box,{'marginTop':0x1,'children':[a43_0x32eb99(Box,{'width':'1'}),a43_0x32eb99(Text,{'color':_0x434095(0xab),'children':_0x434095(0xca)}),a43_0x32eb99(Text,{'children':'项目名称:\x20'}),a43_0x32eb99(Text,{'color':_0x434095(0xab),'children':_0x560629?.[_0x434095(0x92)]}),_0x560629?.['appCode']&&a43_0x2ba9da(a43_0x4cc24c,{'children':[a43_0x32eb99(Text,{'children':_0x434095(0xa0)}),a43_0x32eb99(Text,{'color':_0x434095(0x93),'children':_0x560629['appCode']})]})]}),a43_0x32eb99(TaskFinished,{..._0x49f1b6}),a43_0x32eb99(TaskFinished,{..._0x521fe6}),a43_0x32eb99(TaskFinished,{..._0x2d78ff}),a43_0x32eb99(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a43_0x32eb99(Text,{'color':_0x434095(0xab),'children':'─'[_0x434095(0xbf)](0x3c)})}),a43_0x32eb99(Box,{'children':a43_0x32eb99(Text,{'color':'green','bold':!![],'children':_0x434095(0xc5)})}),a43_0x2ba9da(Box,{'marginTop':0x1,'flexDirection':_0x434095(0xc3),'children':[a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':_0x434095(0x93),'children':_0x434095(0x9b)}),a43_0x32eb99(Text,{'color':_0x434095(0xe1),'bold':!![],'children':_0x560629?.[_0x434095(0x92)]})]}),_0x560629?.[_0x434095(0xa7)]&&a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':'cyan','children':_0x434095(0xe2)}),a43_0x32eb99(Text,{'color':_0x434095(0xe1),'bold':!![],'children':_0x560629[_0x434095(0xa7)]})]}),a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':_0x434095(0x93),'children':_0x434095(0xc4)}),_0x560629?.['pullApi']?a43_0x32eb99(Text,{'color':_0x434095(0xab),'bold':!![],'children':_0x434095(0xe7)}):_0x560629?.[_0x434095(0xa7)]?a43_0x32eb99(Text,{'color':_0x434095(0xc8),'bold':!![],'children':_0x434095(0xa3)}):a43_0x32eb99(Text,{'color':_0x434095(0xc6),'bold':!![],'children':_0x434095(0x8b)})]})]}),a43_0x32eb99(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a43_0x32eb99(Text,{'color':'cyan','bold':!![],'children':_0x434095(0x8e)})}),a43_0x2ba9da(Box,{'marginLeft':0x2,'flexDirection':'column','children':[a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':'green','children':'1.\x20'}),a43_0x32eb99(Text,{'color':_0x434095(0xe1),'children':'启动项目:\x20'}),a43_0x32eb99(Text,{'color':_0x434095(0x93),'bold':!![],'children':_0x434095(0x8f)+_0x560629?.[_0x434095(0x92)]+_0x434095(0x98)})]}),_0x560629?.[_0x434095(0xa7)]&&!_0x560629?.[_0x434095(0xb7)]&&a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':'yellow','children':_0x434095(0x9a)}),a43_0x32eb99(Text,{'color':_0x434095(0xe1),'children':_0x434095(0xd1)}),a43_0x32eb99(Text,{'color':_0x434095(0x93),'bold':!![],'children':_0x434095(0xdd)})]}),!_0x560629?.[_0x434095(0xa7)]&&a43_0x2ba9da(a43_0x4cc24c,{'children':[a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':_0x434095(0xc6),'children':'2.\x20'}),a43_0x32eb99(Text,{'color':'white','children':_0x434095(0xb8)}),a43_0x32eb99(Text,{'color':'cyan','bold':!![],'children':'lovrabet\x20config\x20set\x20appcode\x20[app-code]'})]}),a43_0x2ba9da(Box,{'children':[a43_0x32eb99(Text,{'color':'gray','children':_0x434095(0xa5)}),a43_0x32eb99(Text,{'color':'white','children':_0x434095(0xd1)}),a43_0x32eb99(Text,{'color':_0x434095(0x93),'bold':!![],'children':'lovrabet\x20api\x20pull\x20--appcode\x20[app-code]'})]})]})]}),a43_0x32eb99(Box,{'marginTop':0x1,'children':a43_0x32eb99(Text,{'color':_0x434095(0xab),'children':'─'[_0x434095(0xbf)](0x3c)})})]});return null;}
@@ -1 +1 @@
1
- (function(_0xe5c611,_0x178e01){var _0x194d26=a41_0x4706,_0x3de1d6=_0xe5c611();while(!![]){try{var _0x313901=-parseInt(_0x194d26(0xc5))/0x1+-parseInt(_0x194d26(0xc8))/0x2+-parseInt(_0x194d26(0xcc))/0x3+parseInt(_0x194d26(0xce))/0x4+-parseInt(_0x194d26(0xc4))/0x5+parseInt(_0x194d26(0xc6))/0x6+parseInt(_0x194d26(0xc7))/0x7*(parseInt(_0x194d26(0xcb))/0x8);if(_0x313901===_0x178e01)break;else _0x3de1d6['push'](_0x3de1d6['shift']());}catch(_0x183ee6){_0x3de1d6['push'](_0x3de1d6['shift']());}}}(a41_0x13f0,0x87226));import{jsx as a41_0x4b8041,jsxs as a41_0x518305}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';export function TaskFinished(_0x527b86){var _0x35aeae=a41_0x4706;return a41_0x518305(Box,{'children':[a41_0x4b8041(Box,{'width':'1'}),a41_0x4b8041(Text,{'color':_0x35aeae(0xca),'children':_0x35aeae(0xc9)}),a41_0x4b8041(Text,{'children':_0x527b86[_0x35aeae(0xcd)]}),a41_0x4b8041(TaskTime,{'elapsed':_0x527b86[_0x35aeae(0xc3)]})]});}function a41_0x4706(_0x34bc0f,_0x511847){var _0x13f030=a41_0x13f0();return a41_0x4706=function(_0x470605,_0x34b233){_0x470605=_0x470605-0xc3;var _0x44f565=_0x13f030[_0x470605];return _0x44f565;},a41_0x4706(_0x34bc0f,_0x511847);}function a41_0x13f0(){var _0x4f9097=['\x20√\x20','green','8cervyQ','1710975lHPDRR','taskName','3428348QEnDXp','elapsed','4127540BQoXfE','959210gpbGjx','4411344CExxEI','14490721XQVdXd','1507722CrUNAR'];a41_0x13f0=function(){return _0x4f9097;};return a41_0x13f0();}
1
+ function a44_0x5585(_0x1cd21a,_0x253510){_0x1cd21a=_0x1cd21a-0x11f;var _0x24d1c4=a44_0x24d1();var _0x5585f2=_0x24d1c4[_0x1cd21a];return _0x5585f2;}(function(_0x2a725d,_0x528842){var _0x5f59c5=a44_0x5585,_0x4b33eb=_0x2a725d();while(!![]){try{var _0x11c931=-parseInt(_0x5f59c5(0x128))/0x1+-parseInt(_0x5f59c5(0x12a))/0x2*(parseInt(_0x5f59c5(0x122))/0x3)+-parseInt(_0x5f59c5(0x124))/0x4*(parseInt(_0x5f59c5(0x126))/0x5)+-parseInt(_0x5f59c5(0x120))/0x6+-parseInt(_0x5f59c5(0x129))/0x7+-parseInt(_0x5f59c5(0x123))/0x8+parseInt(_0x5f59c5(0x121))/0x9;if(_0x11c931===_0x528842)break;else _0x4b33eb['push'](_0x4b33eb['shift']());}catch(_0x34cd1c){_0x4b33eb['push'](_0x4b33eb['shift']());}}}(a44_0x24d1,0x4a97d));import{jsx as a44_0x421d8d,jsxs as a44_0x39121c}from'react/jsx-runtime';function a44_0x24d1(){var _0x4c987f=['20IpskEW','green','98105VJPCFw','1382801PaVQbP','23262wDbbSM','elapsed','\x20√\x20','1440474JLPZaE','16632873KFtjQb','99LycNYB','1790128fugMGr','399248HDfEeN','taskName'];a44_0x24d1=function(){return _0x4c987f;};return a44_0x24d1();}import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';export function TaskFinished(_0xb05515){var _0xf3fc56=a44_0x5585;return a44_0x39121c(Box,{'children':[a44_0x421d8d(Box,{'width':'1'}),a44_0x421d8d(Text,{'color':_0xf3fc56(0x127),'children':_0xf3fc56(0x11f)}),a44_0x421d8d(Text,{'children':_0xb05515[_0xf3fc56(0x125)]}),a44_0x421d8d(TaskTime,{'elapsed':_0xb05515[_0xf3fc56(0x12b)]})]});}
@@ -1 +1 @@
1
- (function(_0x546d18,_0x9e7a11){var _0x5e155c=a42_0xb940,_0x1bcbe2=_0x546d18();while(!![]){try{var _0x546ccb=-parseInt(_0x5e155c(0x9e))/0x1+parseInt(_0x5e155c(0x9b))/0x2*(parseInt(_0x5e155c(0xa1))/0x3)+-parseInt(_0x5e155c(0x9c))/0x4+parseInt(_0x5e155c(0xa2))/0x5*(parseInt(_0x5e155c(0x98))/0x6)+parseInt(_0x5e155c(0x9d))/0x7+-parseInt(_0x5e155c(0x9a))/0x8+parseInt(_0x5e155c(0xa3))/0x9;if(_0x546ccb===_0x9e7a11)break;else _0x1bcbe2['push'](_0x1bcbe2['shift']());}catch(_0x7281a4){_0x1bcbe2['push'](_0x1bcbe2['shift']());}}}(a42_0x15f4,0x8e2bb));import{jsx as a42_0x73efd7,jsxs as a42_0x2ce9e6}from'react/jsx-runtime';function a42_0x15f4(){var _0x26486c=['loading','658113VaxCIe','1374990mwNKsW','8852958CcAsIU','12pIlMfm','green','5685624LpcKNg','2pZxgOX','1699324qfgcoc','6289269lzUebQ','933631FbIscE','\x20\x20\x20'];a42_0x15f4=function(){return _0x26486c;};return a42_0x15f4();}import{Text}from'ink';function a42_0xb940(_0x8ba31e,_0x3524ce){var _0x15f4c0=a42_0x15f4();return a42_0xb940=function(_0xb940bb,_0x43d4a4){_0xb940bb=_0xb940bb-0x98;var _0x1f5405=_0x15f4c0[_0xb940bb];return _0x1f5405;},a42_0xb940(_0x8ba31e,_0x3524ce);}import a42_0x5d8b17 from'ink-spinner';export function TaskLoading(_0x1a5dd2){var _0x37cc62=a42_0xb940;if(_0x1a5dd2['finished'])return a42_0x73efd7(Text,{'color':_0x37cc62(0x99),'children':'\x20√\x20'});if(_0x1a5dd2[_0x37cc62(0xa0)])return a42_0x2ce9e6(Text,{'color':_0x37cc62(0x99),'children':['\x20',a42_0x73efd7(a42_0x5d8b17,{'type':'dots'}),'\x20']});return a42_0x73efd7(Text,{'children':_0x37cc62(0x9f)});}
1
+ (function(_0x27daba,_0x12fbe3){var _0x39c3c8=a45_0x5294,_0x1f1aa9=_0x27daba();while(!![]){try{var _0x38184f=parseInt(_0x39c3c8(0x7f))/0x1+parseInt(_0x39c3c8(0x83))/0x2*(parseInt(_0x39c3c8(0x82))/0x3)+-parseInt(_0x39c3c8(0x87))/0x4*(parseInt(_0x39c3c8(0x84))/0x5)+-parseInt(_0x39c3c8(0x85))/0x6*(parseInt(_0x39c3c8(0x7d))/0x7)+parseInt(_0x39c3c8(0x7c))/0x8*(parseInt(_0x39c3c8(0x88))/0x9)+-parseInt(_0x39c3c8(0x89))/0xa+parseInt(_0x39c3c8(0x80))/0xb;if(_0x38184f===_0x12fbe3)break;else _0x1f1aa9['push'](_0x1f1aa9['shift']());}catch(_0x1d1398){_0x1f1aa9['push'](_0x1f1aa9['shift']());}}}(a45_0x4ce4,0x42a96));function a45_0x4ce4(){var _0xdcb1c3=['11034243cAQjME','\x20√\x20','592278CYfLLb','4CYyMrF','1255qGclPz','3342XTLZUW','dots','5592bRVvim','1020753tTTHpn','3813620nFxqyk','\x20\x20\x20','loading','8YzTvIz','6447dFzJml','green','6921AyFSrK'];a45_0x4ce4=function(){return _0xdcb1c3;};return a45_0x4ce4();}function a45_0x5294(_0x25c583,_0x55912f){_0x25c583=_0x25c583-0x7b;var _0x4ce485=a45_0x4ce4();var _0x529403=_0x4ce485[_0x25c583];return _0x529403;}import{jsx as a45_0x5500a3,jsxs as a45_0x5a78ca}from'react/jsx-runtime';import{Text}from'ink';import a45_0x1d9490 from'ink-spinner';export function TaskLoading(_0x5f7005){var _0x2fca21=a45_0x5294;if(_0x5f7005['finished'])return a45_0x5500a3(Text,{'color':'green','children':_0x2fca21(0x81)});if(_0x5f7005[_0x2fca21(0x7b)])return a45_0x5a78ca(Text,{'color':_0x2fca21(0x7e),'children':['\x20',a45_0x5500a3(a45_0x1d9490,{'type':_0x2fca21(0x86)}),'\x20']});return a45_0x5500a3(Text,{'children':_0x2fca21(0x8a)});}
@@ -1 +1 @@
1
- (function(_0x23d6ee,_0x43ec93){var _0x270896=a43_0x441f,_0x49c471=_0x23d6ee();while(!![]){try{var _0x180c42=-parseInt(_0x270896(0x1e0))/0x1*(parseInt(_0x270896(0x1da))/0x2)+-parseInt(_0x270896(0x1de))/0x3*(parseInt(_0x270896(0x1d7))/0x4)+parseInt(_0x270896(0x1dc))/0x5*(parseInt(_0x270896(0x1d5))/0x6)+parseInt(_0x270896(0x1d6))/0x7+-parseInt(_0x270896(0x1d8))/0x8+parseInt(_0x270896(0x1db))/0x9*(-parseInt(_0x270896(0x1d9))/0xa)+parseInt(_0x270896(0x1dd))/0xb;if(_0x180c42===_0x43ec93)break;else _0x49c471['push'](_0x49c471['shift']());}catch(_0xe3dbe9){_0x49c471['push'](_0x49c471['shift']());}}}(a43_0xff9e,0x599ec));import{jsx as a43_0xdc0ad7,jsxs as a43_0x4a6e10}from'react/jsx-runtime';import{Box,Text}from'ink';function a43_0xff9e(){var _0x36a08c=['3SJJfYx','taskName','8249bGyVSE','12qRFZLg','3170195kNyEJz','1277140qlupUx','538648ddWOdY','11590rPtbyg','20Xjyvbg','5418gFnUTV','875945qsSCBW','8037095EsZUsi'];a43_0xff9e=function(){return _0x36a08c;};return a43_0xff9e();}function a43_0x441f(_0x556cec,_0xc693cf){var _0xff9e32=a43_0xff9e();return a43_0x441f=function(_0x441f3c,_0x2d6aee){_0x441f3c=_0x441f3c-0x1d5;var _0x5d7047=_0xff9e32[_0x441f3c];return _0x5d7047;},a43_0x441f(_0x556cec,_0xc693cf);}import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x3acfed){var _0x43e1fa=a43_0x441f;return a43_0x4a6e10(Box,{'children':[a43_0xdc0ad7(Box,{'width':'1'}),a43_0xdc0ad7(TaskLoading,{..._0x3acfed}),a43_0xdc0ad7(Text,{'children':_0x3acfed[_0x43e1fa(0x1df)]}),a43_0xdc0ad7(TaskTime,{'elapsed':_0x3acfed['elapsed']})]});}
1
+ (function(_0xb7e08e,_0x461c6f){var _0x5ea80a=a46_0x2bfb,_0x193a1f=_0xb7e08e();while(!![]){try{var _0x264646=-parseInt(_0x5ea80a(0x1a2))/0x1*(parseInt(_0x5ea80a(0x1a8))/0x2)+parseInt(_0x5ea80a(0x1a6))/0x3+-parseInt(_0x5ea80a(0x1a9))/0x4+-parseInt(_0x5ea80a(0x1a7))/0x5+-parseInt(_0x5ea80a(0x1ab))/0x6*(parseInt(_0x5ea80a(0x1aa))/0x7)+-parseInt(_0x5ea80a(0x1a4))/0x8+parseInt(_0x5ea80a(0x1a3))/0x9;if(_0x264646===_0x461c6f)break;else _0x193a1f['push'](_0x193a1f['shift']());}catch(_0x1b8405){_0x193a1f['push'](_0x193a1f['shift']());}}}(a46_0x29f1,0xec9c1));function a46_0x2bfb(_0x4de4cc,_0x51ede1){_0x4de4cc=_0x4de4cc-0x1a2;var _0x29f19e=a46_0x29f1();var _0x2bfba1=_0x29f19e[_0x4de4cc];return _0x2bfba1;}import{jsx as a46_0x384f86,jsxs as a46_0xfa8bb2}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskLoading}from'./task-loading.js';function a46_0x29f1(){var _0x39d7f7=['494726WiCpgO','7133460hONJgO','558194EirPDp','6mirmOt','2luRcgy','36113571AHWPhj','6340512wgsrUr','elapsed','5797020iYWOtf','9127045MgnYcF'];a46_0x29f1=function(){return _0x39d7f7;};return a46_0x29f1();}import{TaskTime}from'./task-time.js';export function TaskRunning(_0x623afa){var _0x4620fb=a46_0x2bfb;return a46_0xfa8bb2(Box,{'children':[a46_0x384f86(Box,{'width':'1'}),a46_0x384f86(TaskLoading,{..._0x623afa}),a46_0x384f86(Text,{'children':_0x623afa['taskName']}),a46_0x384f86(TaskTime,{'elapsed':_0x623afa[_0x4620fb(0x1a5)]})]});}
@@ -1 +1 @@
1
- (function(_0x329875,_0xe4bb0f){var _0x24fe9c=a44_0x5630,_0x5537d0=_0x329875();while(!![]){try{var _0x5d923a=parseInt(_0x24fe9c(0x1dd))/0x1+-parseInt(_0x24fe9c(0x1dc))/0x2*(-parseInt(_0x24fe9c(0x1df))/0x3)+parseInt(_0x24fe9c(0x1e4))/0x4*(parseInt(_0x24fe9c(0x1e2))/0x5)+-parseInt(_0x24fe9c(0x1db))/0x6+-parseInt(_0x24fe9c(0x1e3))/0x7*(-parseInt(_0x24fe9c(0x1e0))/0x8)+-parseInt(_0x24fe9c(0x1e5))/0x9+parseInt(_0x24fe9c(0x1e1))/0xa;if(_0x5d923a===_0xe4bb0f)break;else _0x5537d0['push'](_0x5537d0['shift']());}catch(_0x5df0b3){_0x5537d0['push'](_0x5537d0['shift']());}}}(a44_0x2d33,0x8f4a7));function a44_0x5630(_0x12a3d3,_0x2a2a18){var _0x2d3379=a44_0x2d33();return a44_0x5630=function(_0x5630fd,_0x5645db){_0x5630fd=_0x5630fd-0x1db;var _0x2861f4=_0x2d3379[_0x5630fd];return _0x2861f4;},a44_0x5630(_0x12a3d3,_0x2a2a18);}function a44_0x2d33(){var _0x1871f1=['elapsed','3oMDAGr','4776GKQTjf','5902770pKduYV','145LqodSq','301XXMCvi','78852bRehTr','9394434CtLfEK','gray','3338052QFlZgX','244680QNvoAM','877122sqQZdh'];a44_0x2d33=function(){return _0x1871f1;};return a44_0x2d33();}import{jsx as a44_0x308813,Fragment as a44_0x55c0e9,jsxs as a44_0x3cb4ad}from'react/jsx-runtime';import{Text}from'ink';export function TaskTime(_0x1a0ed5){var _0x399d42=a44_0x5630;if(_0x1a0ed5[_0x399d42(0x1de)])return a44_0x3cb4ad(a44_0x55c0e9,{'children':[a44_0x308813(Text,{'color':'gray','children':'\x20['}),a44_0x308813(Text,{'color':_0x399d42(0x1e6),'bold':!![],'children':_0x1a0ed5[_0x399d42(0x1de)]}),a44_0x308813(Text,{'color':'gray','children':']'})]});return null;}
1
+ (function(_0x4e8730,_0x72d777){var _0x28e7fe=a47_0x12eb,_0x3c0996=_0x4e8730();while(!![]){try{var _0x8e3bf0=-parseInt(_0x28e7fe(0x16a))/0x1+-parseInt(_0x28e7fe(0x170))/0x2+parseInt(_0x28e7fe(0x16d))/0x3*(parseInt(_0x28e7fe(0x173))/0x4)+-parseInt(_0x28e7fe(0x16f))/0x5*(parseInt(_0x28e7fe(0x16e))/0x6)+parseInt(_0x28e7fe(0x16b))/0x7+-parseInt(_0x28e7fe(0x169))/0x8*(-parseInt(_0x28e7fe(0x16c))/0x9)+-parseInt(_0x28e7fe(0x174))/0xa;if(_0x8e3bf0===_0x72d777)break;else _0x3c0996['push'](_0x3c0996['shift']());}catch(_0xf9659a){_0x3c0996['push'](_0x3c0996['shift']());}}}(a47_0x41f3,0x5cbd0));import{jsx as a47_0x4ea6c7,Fragment as a47_0x3e0bb9,jsxs as a47_0x2106c9}from'react/jsx-runtime';function a47_0x41f3(){var _0x1da2f3=['elapsed','gray','1140684XYcRGI','1359110fKXRzb','375640xaXCGT','512023iUnZil','3846927MrTNGv','63koABeP','6CjDvnM','36GiDINN','183870DjYeMq','400308fcejFb'];a47_0x41f3=function(){return _0x1da2f3;};return a47_0x41f3();}import{Text}from'ink';function a47_0x12eb(_0xca8913,_0x50ea97){_0xca8913=_0xca8913-0x169;var _0x41f30e=a47_0x41f3();var _0x12ebf8=_0x41f30e[_0xca8913];return _0x12ebf8;}export function TaskTime(_0x43b136){var _0xccd6d8=a47_0x12eb;if(_0x43b136[_0xccd6d8(0x171)])return a47_0x2106c9(a47_0x3e0bb9,{'children':[a47_0x4ea6c7(Text,{'color':_0xccd6d8(0x172),'children':'\x20['}),a47_0x4ea6c7(Text,{'color':'gray','bold':!![],'children':_0x43b136[_0xccd6d8(0x171)]}),a47_0x4ea6c7(Text,{'color':_0xccd6d8(0x172),'children':']'})]});return null;}
@@ -1 +1 @@
1
- const a45_0x2c7252=a45_0x20be;(function(_0x1feee5,_0x497d82){const _0x5296af=a45_0x20be,_0x1832c3=_0x1feee5();while(!![]){try{const _0x44c960=-parseInt(_0x5296af(0xe5))/0x1+parseInt(_0x5296af(0xe0))/0x2*(parseInt(_0x5296af(0xdd))/0x3)+-parseInt(_0x5296af(0xdc))/0x4*(-parseInt(_0x5296af(0xe3))/0x5)+-parseInt(_0x5296af(0xe4))/0x6+parseInt(_0x5296af(0xd4))/0x7+parseInt(_0x5296af(0xe1))/0x8*(parseInt(_0x5296af(0xdb))/0x9)+parseInt(_0x5296af(0xde))/0xa*(-parseInt(_0x5296af(0xd2))/0xb);if(_0x44c960===_0x497d82)break;else _0x1832c3['push'](_0x1832c3['shift']());}catch(_0x3190fd){_0x1832c3['push'](_0x1832c3['shift']());}}}(a45_0x3d8e,0x621e9));import a45_0x15ae31 from'node:path';import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a45_0x3d8e(){const _0x4390e4=['message','开始复制项目模板','info','url','error','resolve','315ilVwIU','116968FZkNxD','37494vRDthN','20DcVeuu','copy','2tsBrlE','170192lAdryO','../../templates/projects/sub-app-react-demo','25eWOGpa','1126794gczhYV','783384qOGwDz','项目模板复制完成','复制项目文件','now','dirname','cwd','1322497iBkgpj','success','4971652DfxkMV'];a45_0x3d8e=function(){return _0x4390e4;};return a45_0x3d8e();}const __dirname=a45_0x15ae31[a45_0x2c7252(0xd0)](fileURLToPath(import.meta[a45_0x2c7252(0xd8)])),templateDir=a45_0x15ae31[a45_0x2c7252(0xda)](__dirname,a45_0x2c7252(0xe2));function a45_0x20be(_0x3fd372,_0x276b10){const _0x3d8e12=a45_0x3d8e();return a45_0x20be=function(_0x20bebc,_0x3f65b5){_0x20bebc=_0x20bebc-0xcf;let _0x2181ed=_0x3d8e12[_0x20bebc];return _0x2181ed;},a45_0x20be(_0x3fd372,_0x276b10);}export function useCopyProjectTemplate(){const _0x32e303=a45_0x2c7252,[_0x16768f,_0x29cec8]=useState(![]),[_0x3c4793,_0x39a61c]=useState(![]),[_0xd001da,_0x635ab2]=useState(''),_0x2b9213=useCallback(async _0x413ec0=>{const _0xb14e1=a45_0x20be,_0x5be3e0=Date[_0xb14e1(0xcf)](),_0x4d8e42=a45_0x15ae31[_0xb14e1(0xda)](process[_0xb14e1(0xd1)](),_0x413ec0);_0x29cec8(!![]);try{logger[_0xb14e1(0xd7)](_0xb14e1(0xdf),_0xb14e1(0xd6),{'projectCode':_0x413ec0,'templateDir':templateDir}),await copyDirectory(templateDir,_0x4d8e42);const _0x5ea4e6=Date[_0xb14e1(0xcf)]()-_0x5be3e0;logger[_0xb14e1(0xd3)](_0xb14e1(0xdf),_0xb14e1(0xe6),_0x5ea4e6,{'projectCode':_0x413ec0});}catch(_0x52e8c5){const _0x3b64af=Date[_0xb14e1(0xcf)]()-_0x5be3e0;logger[_0xb14e1(0xd9)](_0xb14e1(0xdf),'项目模板复制失败',{'projectCode':_0x413ec0,'error':_0x52e8c5 instanceof Error?_0x52e8c5[_0xb14e1(0xd5)]:String(_0x52e8c5),'duration':_0x3b64af});throw _0x52e8c5;}finally{_0x29cec8(![]),_0x39a61c(!![]),_0x635ab2(formatElapsed(_0x5be3e0));}},[]);return{'taskName':_0x32e303(0xe7),'finished':_0x3c4793,'loading':_0x16768f,'elapsed':_0xd001da,'doTask':_0x2b9213};}
1
+ const a48_0x397d08=a48_0x521f;(function(_0x394a88,_0x5caccd){const _0x3d1d95=a48_0x521f,_0x32e374=_0x394a88();while(!![]){try{const _0x38ec47=parseInt(_0x3d1d95(0xf7))/0x1+-parseInt(_0x3d1d95(0xff))/0x2*(parseInt(_0x3d1d95(0x106))/0x3)+parseInt(_0x3d1d95(0xfd))/0x4*(-parseInt(_0x3d1d95(0xf8))/0x5)+parseInt(_0x3d1d95(0xfe))/0x6*(parseInt(_0x3d1d95(0x107))/0x7)+parseInt(_0x3d1d95(0xfc))/0x8+parseInt(_0x3d1d95(0x108))/0x9*(-parseInt(_0x3d1d95(0x10d))/0xa)+parseInt(_0x3d1d95(0x105))/0xb;if(_0x38ec47===_0x5caccd)break;else _0x32e374['push'](_0x32e374['shift']());}catch(_0x31243c){_0x32e374['push'](_0x32e374['shift']());}}}(a48_0xc986,0xd1087));import a48_0x47251c from'node:path';import{fileURLToPath}from'node:url';function a48_0x521f(_0x900a27,_0xac2f9){_0x900a27=_0x900a27-0xf7;const _0xc986af=a48_0xc986();let _0x521f1f=_0xc986af[_0x900a27];return _0x521f1f;}import{useCallback,useState}from'react';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a48_0xc986(){const _0x5bca9a=['1540nVYcLT','dirname','1003765OEXRVm','590uWzlVZ','message','success','../../templates/projects/sub-app-react-demo','258240IOjGau','51340RiRmbd','1365690Lklmmn','277286czlpvV','项目模板复制完成','resolve','cwd','copy','now','40913917FhdMpN','27WeLLFp','14GYJDbz','93051xBeLEO','复制项目文件','error','项目模板复制失败','info'];a48_0xc986=function(){return _0x5bca9a;};return a48_0xc986();}const __dirname=a48_0x47251c[a48_0x397d08(0x10e)](fileURLToPath(import.meta.url)),templateDir=a48_0x47251c[a48_0x397d08(0x101)](__dirname,a48_0x397d08(0xfb));export function useCopyProjectTemplate(){const _0x494923=a48_0x397d08,[_0x533125,_0x28f066]=useState(![]),[_0x41eb18,_0x3f3464]=useState(![]),[_0x1dfd43,_0x22c604]=useState(''),_0x1bd2a0=useCallback(async _0x548467=>{const _0x194737=a48_0x521f,_0xc7bdc1=Date[_0x194737(0x104)](),_0x537956=a48_0x47251c[_0x194737(0x101)](process[_0x194737(0x102)](),_0x548467);_0x28f066(!![]);try{logger[_0x194737(0x10c)](_0x194737(0x103),'开始复制项目模板',{'projectCode':_0x548467,'templateDir':templateDir}),await copyDirectory(templateDir,_0x537956);const _0x254cfb=Date[_0x194737(0x104)]()-_0xc7bdc1;logger[_0x194737(0xfa)](_0x194737(0x103),_0x194737(0x100),_0x254cfb,{'projectCode':_0x548467});}catch(_0x522609){const _0x3a15c9=Date[_0x194737(0x104)]()-_0xc7bdc1;logger[_0x194737(0x10a)](_0x194737(0x103),_0x194737(0x10b),{'projectCode':_0x548467,'error':_0x522609 instanceof Error?_0x522609[_0x194737(0xf9)]:String(_0x522609),'duration':_0x3a15c9});throw _0x522609;}finally{_0x28f066(![]),_0x3f3464(!![]),_0x22c604(formatElapsed(_0xc7bdc1));}},[]);return{'taskName':_0x494923(0x109),'finished':_0x41eb18,'loading':_0x533125,'elapsed':_0x1dfd43,'doTask':_0x1bd2a0};}
@@ -1 +1 @@
1
- function a46_0x5efe(){const _0x19e7c9=['38549VElbdD','5958FzHgDE','npx','35sgTpIT','prettier','746360OKrHHs','15657BNUUpz','cwd','format','--write','216612kiKfmL','格式化代码','now','代码格式化失败','error','info','2021004pJbxaW','224ndImsv','代码格式化完成','resolve','440776dGioEd'];a46_0x5efe=function(){return _0x19e7c9;};return a46_0x5efe();}function a46_0x70bc(_0x32e6a0,_0x165515){const _0x5efed2=a46_0x5efe();return a46_0x70bc=function(_0x70bca7,_0x2cd544){_0x70bca7=_0x70bca7-0x10c;let _0x37b587=_0x5efed2[_0x70bca7];return _0x37b587;},a46_0x70bc(_0x32e6a0,_0x165515);}(function(_0x2561c9,_0x1df20a){const _0x3c2418=a46_0x70bc,_0x32ae61=_0x2561c9();while(!![]){try{const _0x42b09e=-parseInt(_0x3c2418(0x113))/0x1+-parseInt(_0x3c2418(0x11d))/0x2+-parseInt(_0x3c2418(0x10f))/0x3+parseInt(_0x3c2418(0x10e))/0x4+-parseInt(_0x3c2418(0x10c))/0x5*(-parseInt(_0x3c2418(0x11f))/0x6)+parseInt(_0x3c2418(0x11e))/0x7*(parseInt(_0x3c2418(0x11a))/0x8)+parseInt(_0x3c2418(0x119))/0x9;if(_0x42b09e===_0x1df20a)break;else _0x32ae61['push'](_0x32ae61['shift']());}catch(_0x3c6e53){_0x32ae61['push'](_0x32ae61['shift']());}}}(a46_0x5efe,0x1fc1a));import a46_0x4b73e3 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useFormatCode(){const _0x1b628a=a46_0x70bc,[_0x1dd849,_0x51bf16]=useState(![]),[_0xf9eb7,_0x59a089]=useState(![]),[_0x458455,_0x59ae32]=useState(''),_0x17fbb5=useCallback(async _0xabdf71=>{const _0x3bc3c8=a46_0x70bc,_0x207458=Date[_0x3bc3c8(0x115)](),_0x3b097c=a46_0x4b73e3[_0x3bc3c8(0x11c)](process[_0x3bc3c8(0x110)](),_0xabdf71);_0x51bf16(!![]);try{logger[_0x3bc3c8(0x118)](_0x3bc3c8(0x111),'开始格式化代码',{'projectCode':_0xabdf71}),await execa(_0x3bc3c8(0x120),[_0x3bc3c8(0x10d),_0x3bc3c8(0x112),'.'],{'cwd':_0x3b097c});const _0x126d3f=Date['now']()-_0x207458;logger['success']('format',_0x3bc3c8(0x11b),_0x126d3f,{'projectCode':_0xabdf71});}catch(_0x19ccbc){const _0x4a4b37=Date[_0x3bc3c8(0x115)]()-_0x207458;logger[_0x3bc3c8(0x117)]('format',_0x3bc3c8(0x116),{'projectCode':_0xabdf71,'error':_0x19ccbc instanceof Error?_0x19ccbc['message']:String(_0x19ccbc),'duration':_0x4a4b37});throw _0x19ccbc;}finally{_0x51bf16(![]),_0x59a089(!![]),_0x59ae32(formatElapsed(_0x207458));}},[]);return{'taskName':_0x1b628a(0x114),'finished':_0xf9eb7,'loading':_0x1dd849,'elapsed':_0x458455,'doTask':_0x17fbb5};}
1
+ (function(_0x32b06c,_0x5a28e2){const _0x37b99f=a49_0x3e85,_0xd80e6f=_0x32b06c();while(!![]){try{const _0x1dc49f=parseInt(_0x37b99f(0xf4))/0x1+parseInt(_0x37b99f(0xec))/0x2*(-parseInt(_0x37b99f(0xe8))/0x3)+-parseInt(_0x37b99f(0xf3))/0x4+parseInt(_0x37b99f(0xf2))/0x5+parseInt(_0x37b99f(0xf8))/0x6+-parseInt(_0x37b99f(0xef))/0x7+parseInt(_0x37b99f(0xee))/0x8;if(_0x1dc49f===_0x5a28e2)break;else _0xd80e6f['push'](_0xd80e6f['shift']());}catch(_0x5b9fe7){_0xd80e6f['push'](_0xd80e6f['shift']());}}}(a49_0x3b0d,0xdb92a));import a49_0x27873c from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';function a49_0x3b0d(){const _0x8f06cf=['153039wlnzaK','代码格式化完成','代码格式化失败','npx','1987404YtyNRJ','格式化代码','开始格式化代码','resolve','cwd','6TKBMLj','error','now','message','658562KYpjqs','info','24227136nPodhV','12175793etqnpK','format','--write','4838865jRMFDw','4732428JQjKlq'];a49_0x3b0d=function(){return _0x8f06cf;};return a49_0x3b0d();}function a49_0x3e85(_0x2c9dd7,_0x56601e){_0x2c9dd7=_0x2c9dd7-0xe5;const _0x3b0d6d=a49_0x3b0d();let _0x3e8517=_0x3b0d6d[_0x2c9dd7];return _0x3e8517;}import{logger}from'../utils/logger.js';export function useFormatCode(){const _0x56eadb=a49_0x3e85,[_0x4217d3,_0x459912]=useState(![]),[_0x3b0ff4,_0xa06e23]=useState(![]),[_0x3ea471,_0x4a4213]=useState(''),_0x1073c0=useCallback(async _0x5a8d63=>{const _0x28f9a8=a49_0x3e85,_0x473062=Date[_0x28f9a8(0xea)](),_0x5b9ab0=a49_0x27873c[_0x28f9a8(0xe6)](process[_0x28f9a8(0xe7)](),_0x5a8d63);_0x459912(!![]);try{logger[_0x28f9a8(0xed)](_0x28f9a8(0xf0),_0x28f9a8(0xe5),{'projectCode':_0x5a8d63}),await execa(_0x28f9a8(0xf7),['prettier',_0x28f9a8(0xf1),'.'],{'cwd':_0x5b9ab0});const _0x562f04=Date[_0x28f9a8(0xea)]()-_0x473062;logger['success'](_0x28f9a8(0xf0),_0x28f9a8(0xf5),_0x562f04,{'projectCode':_0x5a8d63});}catch(_0x38b28f){const _0x19df54=Date[_0x28f9a8(0xea)]()-_0x473062;logger[_0x28f9a8(0xe9)](_0x28f9a8(0xf0),_0x28f9a8(0xf6),{'projectCode':_0x5a8d63,'error':_0x38b28f instanceof Error?_0x38b28f[_0x28f9a8(0xeb)]:String(_0x38b28f),'duration':_0x19df54});throw _0x38b28f;}finally{_0x459912(![]),_0xa06e23(!![]),_0x4a4213(formatElapsed(_0x473062));}},[]);return{'taskName':_0x56eadb(0xf9),'finished':_0x3b0ff4,'loading':_0x4217d3,'elapsed':_0x3ea471,'doTask':_0x1073c0};}
@@ -1 +1 @@
1
- (function(_0x517ce8,_0x2fe8bd){const _0x22e9d8=a47_0x229c,_0x43c5a6=_0x517ce8();while(!![]){try{const _0x3772b1=-parseInt(_0x22e9d8(0x1f0))/0x1+-parseInt(_0x22e9d8(0x1f5))/0x2+parseInt(_0x22e9d8(0x1f2))/0x3+-parseInt(_0x22e9d8(0x1ef))/0x4+-parseInt(_0x22e9d8(0x1fc))/0x5*(parseInt(_0x22e9d8(0x1e9))/0x6)+parseInt(_0x22e9d8(0x1ed))/0x7*(parseInt(_0x22e9d8(0x1e8))/0x8)+parseInt(_0x22e9d8(0x1eb))/0x9;if(_0x3772b1===_0x2fe8bd)break;else _0x43c5a6['push'](_0x43c5a6['shift']());}catch(_0xcd72d4){_0x43c5a6['push'](_0x43c5a6['shift']());}}}(a47_0x1d3c,0xda798));import a47_0x5362bf from'node:path';function a47_0x229c(_0x4a3078,_0x1b8661){const _0x1d3c32=a47_0x1d3c();return a47_0x229c=function(_0x229c9b,_0x2b80d0){_0x229c9b=_0x229c9b-0x1e8;let _0x45f189=_0x1d3c32[_0x229c9b];return _0x45f189;},a47_0x229c(_0x4a3078,_0x1b8661);}import{useCallback,useState}from'react';function a47_0x1d3c(){const _0x48ba85=['install','安装依赖','message','7815670zuonOL','1561736zBnumn','6hRxpGs','https://registry.npmmirror.com','53397594PlznxO','now','14EzzPNn','info','6476388oIBVgp','1581439jcQmHh','cwd','2114223nGNyfR','依赖安装失败','依赖安装完成','2739398XVwLke','resolve','npm','--registry'];a47_0x1d3c=function(){return _0x48ba85;};return a47_0x1d3c();}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useInstallDependencies(){const _0x42e415=a47_0x229c,[_0x48a4f9,_0x5d8880]=useState(![]),[_0x50fba4,_0x2c4a87]=useState(![]),[_0x3e8a41,_0x74be71]=useState(''),_0x4de64c=useCallback(async _0x8fc8ad=>{const _0x27357a=a47_0x229c,_0x11684a=Date[_0x27357a(0x1ec)](),_0xa8a264=a47_0x5362bf[_0x27357a(0x1f6)](process[_0x27357a(0x1f1)](),_0x8fc8ad);_0x5d8880(!![]),_0x2c4a87(![]);const _0xcfa1ea=async(_0x28acae,_0x3fdb27)=>{await execa(_0x28acae,_0x3fdb27,{'cwd':_0xa8a264});};try{logger[_0x27357a(0x1ee)](_0x27357a(0x1f9),'开始安装依赖',{'projectCode':_0x8fc8ad,'registry':_0x27357a(0x1ea)}),await _0xcfa1ea(_0x27357a(0x1f7),[_0x27357a(0x1f9),_0x27357a(0x1f8),'https://registry.npmmirror.com']);const _0x21a0f6=Date[_0x27357a(0x1ec)]()-_0x11684a;logger['success'](_0x27357a(0x1f9),_0x27357a(0x1f4),_0x21a0f6,{'projectCode':_0x8fc8ad});}catch(_0x35f545){const _0x320bda=Date[_0x27357a(0x1ec)]()-_0x11684a;logger['error'](_0x27357a(0x1f9),_0x27357a(0x1f3),{'projectCode':_0x8fc8ad,'error':_0x35f545 instanceof Error?_0x35f545[_0x27357a(0x1fb)]:String(_0x35f545),'duration':_0x320bda});throw _0x35f545;}finally{_0x5d8880(![]),_0x2c4a87(!![]),_0x74be71(formatElapsed(_0x11684a));}},[]);return{'taskName':_0x42e415(0x1fa),'finished':_0x50fba4,'loading':_0x48a4f9,'elapsed':_0x3e8a41,'doTask':_0x4de64c};}
1
+ function a50_0xbb3d(_0x196900,_0x3d97d3){_0x196900=_0x196900-0x1d1;const _0x1b22c1=a50_0x1b22();let _0xbb3d65=_0x1b22c1[_0x196900];return _0xbb3d65;}function a50_0x1b22(){const _0x4628fc=['148350WTpHXQ','resolve','4Yixjua','install','npm','--registry','开始安装依赖','2zZScQY','info','894121YnioIR','7GidjYp','21120210GqhUCh','1059156WfilbC','8383866LdHqny','依赖安装完成','6920355qpgJBP','cwd','8081048cRTfaH','now','error','https://registry.npmmirror.com'];a50_0x1b22=function(){return _0x4628fc;};return a50_0x1b22();}(function(_0x11b188,_0x300522){const _0x40b0b6=a50_0xbb3d,_0x5c4206=_0x11b188();while(!![]){try{const _0x583648=parseInt(_0x40b0b6(0x1dd))/0x1*(-parseInt(_0x40b0b6(0x1db))/0x2)+parseInt(_0x40b0b6(0x1d4))/0x3*(parseInt(_0x40b0b6(0x1d6))/0x4)+parseInt(_0x40b0b6(0x1e3))/0x5+-parseInt(_0x40b0b6(0x1e1))/0x6*(-parseInt(_0x40b0b6(0x1de))/0x7)+parseInt(_0x40b0b6(0x1e5))/0x8+-parseInt(_0x40b0b6(0x1e0))/0x9+-parseInt(_0x40b0b6(0x1df))/0xa;if(_0x583648===_0x300522)break;else _0x5c4206['push'](_0x5c4206['shift']());}catch(_0x2b7885){_0x5c4206['push'](_0x5c4206['shift']());}}}(a50_0x1b22,0xaf151));import a50_0x3c3bff from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useInstallDependencies(){const [_0x5b3e12,_0x25dd61]=useState(![]),[_0x159eaa,_0xfe112e]=useState(![]),[_0x53fb40,_0x57c533]=useState(''),_0x3bd656=useCallback(async _0x5837aa=>{const _0x5ef00d=a50_0xbb3d,_0x1c0b36=Date[_0x5ef00d(0x1d1)](),_0x1d8d37=a50_0x3c3bff[_0x5ef00d(0x1d5)](process[_0x5ef00d(0x1e4)](),_0x5837aa);_0x25dd61(!![]),_0xfe112e(![]);const _0x35d649=async(_0x3b313d,_0x44d98c)=>{await execa(_0x3b313d,_0x44d98c,{'cwd':_0x1d8d37});};try{logger[_0x5ef00d(0x1dc)](_0x5ef00d(0x1d7),_0x5ef00d(0x1da),{'projectCode':_0x5837aa,'registry':_0x5ef00d(0x1d3)}),await _0x35d649(_0x5ef00d(0x1d8),[_0x5ef00d(0x1d7),_0x5ef00d(0x1d9),_0x5ef00d(0x1d3)]);const _0x1c3ed3=Date[_0x5ef00d(0x1d1)]()-_0x1c0b36;logger['success'](_0x5ef00d(0x1d7),_0x5ef00d(0x1e2),_0x1c3ed3,{'projectCode':_0x5837aa});}catch(_0x294be7){const _0x426aac=Date[_0x5ef00d(0x1d1)]()-_0x1c0b36;logger[_0x5ef00d(0x1d2)](_0x5ef00d(0x1d7),'依赖安装失败',{'projectCode':_0x5837aa,'error':_0x294be7 instanceof Error?_0x294be7['message']:String(_0x294be7),'duration':_0x426aac});throw _0x294be7;}finally{_0x25dd61(![]),_0xfe112e(!![]),_0x57c533(formatElapsed(_0x1c0b36));}},[]);return{'taskName':'安装依赖','finished':_0x159eaa,'loading':_0x5b3e12,'elapsed':_0x53fb40,'doTask':_0x3bd656};}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x36d7e4,_0x3818e6){var _0x11a10d=a48_0xb0f8,_0x16f10d=_0x36d7e4();while(!![]){try{var _0x260a9d=-parseInt(_0x11a10d(0x109))/0x1+parseInt(_0x11a10d(0x108))/0x2*(parseInt(_0x11a10d(0x102))/0x3)+-parseInt(_0x11a10d(0x10b))/0x4+parseInt(_0x11a10d(0x107))/0x5+parseInt(_0x11a10d(0x103))/0x6+-parseInt(_0x11a10d(0x101))/0x7+-parseInt(_0x11a10d(0x105))/0x8*(-parseInt(_0x11a10d(0x106))/0x9);if(_0x260a9d===_0x3818e6)break;else _0x16f10d['push'](_0x16f10d['shift']());}catch(_0x10565a){_0x16f10d['push'](_0x16f10d['shift']());}}}(a48_0xca4a,0x33626));function a48_0xb0f8(_0x38fab5,_0x445058){var _0xca4a1f=a48_0xca4a();return a48_0xb0f8=function(_0xb0f8ed,_0x5f23f0){_0xb0f8ed=_0xb0f8ed-0x100;var _0x570edf=_0xca4a1f[_0xb0f8ed];return _0x570edf;},a48_0xb0f8(_0x38fab5,_0x445058);}import{jsx as a48_0x2aa99e,jsxs as a48_0x23c785}from'react/jsx-runtime';function a48_0xca4a(){var _0x22c54d=['36426HiIjyt','823464XaIpTp','查看可用命令。','104dxlBsM','104175nvomOF','896530nPnSAX','24OvKDAU','395692FJhXeM','green','13068gpKgrq','column','lovrabet\x20--help','23100qtYVVy'];a48_0xca4a=function(){return _0x22c54d;};return a48_0xca4a();}import{Box,Text}from'ink';export function Help(){var _0x5d3495=a48_0xb0f8;return a48_0x23c785(Box,{'flexDirection':_0x5d3495(0x10c),'marginTop':0x1,'marginBottom':0x1,'children':[a48_0x23c785(Box,{'children':[a48_0x2aa99e(Box,{'width':'1'}),a48_0x2aa99e(Text,{'children':'!\x20请指定一个有效的命令。'})]}),a48_0x23c785(Box,{'marginTop':0x1,'children':[a48_0x2aa99e(Box,{'width':'1'}),a48_0x23c785(Text,{'children':['\x20\x20','使用']}),a48_0x23c785(Text,{'bold':!![],'color':_0x5d3495(0x10a),'children':['\x20',_0x5d3495(0x100),'\x20']}),a48_0x2aa99e(Text,{'children':_0x5d3495(0x104)})]})]});}
1
+ function a51_0x2728(_0x2769d4,_0x555dc3){_0x2769d4=_0x2769d4-0xa5;var _0x5d21c6=a51_0x5d21();var _0x2728c6=_0x5d21c6[_0x2769d4];return _0x2728c6;}(function(_0x159194,_0x2ef33a){var _0x35bd36=a51_0x2728,_0x9f0685=_0x159194();while(!![]){try{var _0xa7be44=parseInt(_0x35bd36(0xb1))/0x1*(parseInt(_0x35bd36(0xb0))/0x2)+parseInt(_0x35bd36(0xa9))/0x3*(parseInt(_0x35bd36(0xab))/0x4)+parseInt(_0x35bd36(0xa7))/0x5+-parseInt(_0x35bd36(0xb3))/0x6*(parseInt(_0x35bd36(0xaa))/0x7)+-parseInt(_0x35bd36(0xac))/0x8+-parseInt(_0x35bd36(0xa5))/0x9+-parseInt(_0x35bd36(0xb2))/0xa;if(_0xa7be44===_0x2ef33a)break;else _0x9f0685['push'](_0x9f0685['shift']());}catch(_0x12af04){_0x9f0685['push'](_0x9f0685['shift']());}}}(a51_0x5d21,0x1cd74));import{jsx as a51_0x1e8244,jsxs as a51_0x208fab}from'react/jsx-runtime';import{Box,Text}from'ink';export function Help(){var _0x179964=a51_0x2728;return a51_0x208fab(Box,{'flexDirection':_0x179964(0xad),'marginTop':0x1,'marginBottom':0x1,'children':[a51_0x208fab(Box,{'children':[a51_0x1e8244(Box,{'width':'1'}),a51_0x1e8244(Text,{'children':_0x179964(0xa8)})]}),a51_0x208fab(Box,{'marginTop':0x1,'children':[a51_0x1e8244(Box,{'width':'1'}),a51_0x208fab(Text,{'children':['\x20\x20','使用']}),a51_0x208fab(Text,{'bold':!![],'color':_0x179964(0xae),'children':['\x20',_0x179964(0xaf),'\x20']}),a51_0x1e8244(Text,{'children':_0x179964(0xa6)})]})]});}function a51_0x5d21(){var _0x49e2b1=['1049967luGPnC','查看可用命令。','955550pRlJef','!\x20请指定一个有效的命令。','3ymPQQi','7ohptVH','434956UWbsAZ','105656oNrnIW','column','green','lovrabet\x20--help','2odJBFQ','229697UfgWgb','2323150gyNvnf','295374MhxBHA'];a51_0x5d21=function(){return _0x49e2b1;};return a51_0x5d21();}