@lovrabet/cli 1.1.26-beta.9 → 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(_0x504879,_0x5f244e){const _0x309aad=a30_0x1857,_0x185937=_0x504879();while(!![]){try{const _0x1d0443=-parseInt(_0x309aad(0x188))/0x1*(parseInt(_0x309aad(0x18c))/0x2)+parseInt(_0x309aad(0x189))/0x3+-parseInt(_0x309aad(0x19a))/0x4*(-parseInt(_0x309aad(0x187))/0x5)+-parseInt(_0x309aad(0x180))/0x6*(parseInt(_0x309aad(0x197))/0x7)+-parseInt(_0x309aad(0x194))/0x8*(-parseInt(_0x309aad(0x182))/0x9)+parseInt(_0x309aad(0x190))/0xa*(-parseInt(_0x309aad(0x18e))/0xb)+-parseInt(_0x309aad(0x195))/0xc*(-parseInt(_0x309aad(0x184))/0xd);if(_0x1d0443===_0x5f244e)break;else _0x185937['push'](_0x185937['shift']());}catch(_0x3dd0e7){_0x185937['push'](_0x185937['shift']());}}}(a30_0x2475,0x814bd));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a30_0x2475(){const _0x196da8=['12782RROAAG','npm\x20run\x20build\x20exited\x20with\x20code\x20','6130vUGXQA','success','pipe','npm\x20run\x20build','3634328livSSi','12blcXTX','message','651fqdyUA','stderr','项目构建出错','4ROQmtw','PATH','build','node_modules','now','toString','trim','59442fnOuFO','开始构建项目','9dkVoES','data','6244277rMOmLh','cwd','error','1923425QkMDil','5471atQxCw','2564673wIaTRj','项目构建成功','npm','4zXvAhn','.bin'];a30_0x2475=function(){return _0x196da8;};return a30_0x2475();}function a30_0x1857(_0x5cea3f,_0x3ab9e0){const _0x2475b2=a30_0x2475();return a30_0x1857=function(_0x185709,_0x63e75e){_0x185709=_0x185709-0x17f;let _0x856f8a=_0x2475b2[_0x185709];return _0x856f8a;},a30_0x1857(_0x5cea3f,_0x3ab9e0);}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x63835b,_0x3044fa)=>{const _0x5293a0=a30_0x1857,_0x247766=Date[_0x5293a0(0x19e)]();logger['info'](_0x5293a0(0x19c),_0x5293a0(0x181),{'command':_0x5293a0(0x193)});let _0x4f06c9='';const _0x4959bf=spawn(_0x5293a0(0x18b),['run',_0x5293a0(0x19c)],{'stdio':['inherit','inherit',_0x5293a0(0x192)],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x5293a0(0x185)](),_0x5293a0(0x19d),_0x5293a0(0x18d))+delimiter+process['env'][_0x5293a0(0x19b)]}});_0x4959bf[_0x5293a0(0x198)]?.['on'](_0x5293a0(0x183),_0x102e44=>{const _0x18f39b=_0x5293a0;_0x4f06c9+=_0x102e44[_0x18f39b(0x19f)]();}),_0x4959bf['on']('close',_0x266911=>{const _0x3f88ed=_0x5293a0,_0x4366c7=Date['now']()-_0x247766;if(_0x266911===0x0||_0x266911===null)logger[_0x3f88ed(0x191)]('build',_0x3f88ed(0x18a),_0x4366c7),_0x63835b();else{const _0x1201be={'exitCode':_0x266911,'duration':_0x4366c7,'command':_0x3f88ed(0x193),'cwd':process['cwd']()};_0x4f06c9[_0x3f88ed(0x17f)]()&&(_0x1201be[_0x3f88ed(0x198)]=_0x4f06c9[_0x3f88ed(0x17f)]()),logger[_0x3f88ed(0x186)](_0x3f88ed(0x19c),'项目构建失败',_0x1201be),_0x3044fa(new Error(_0x3f88ed(0x18f)+_0x266911));}}),_0x4959bf['on']('error',_0x99121e=>{const _0x1f6044=_0x5293a0,_0x83cabd=Date[_0x1f6044(0x19e)]()-_0x247766;logger[_0x1f6044(0x186)](_0x1f6044(0x19c),_0x1f6044(0x199),{'error':_0x99121e[_0x1f6044(0x196)],'duration':_0x83cabd,'stderr':_0x4f06c9[_0x1f6044(0x17f)]()||undefined}),_0x3044fa(_0x99121e);});});}
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(_0x3e31b6,_0x529e6f){const _0x43722c=a31_0x12bb,_0x313e60=_0x3e31b6();while(!![]){try{const _0x4ce37f=-parseInt(_0x43722c(0xa3))/0x1*(parseInt(_0x43722c(0xa0))/0x2)+-parseInt(_0x43722c(0xa9))/0x3+parseInt(_0x43722c(0x9e))/0x4*(parseInt(_0x43722c(0xb8))/0x5)+parseInt(_0x43722c(0xa7))/0x6+-parseInt(_0x43722c(0xa4))/0x7*(parseInt(_0x43722c(0xbb))/0x8)+-parseInt(_0x43722c(0x9c))/0x9+parseInt(_0x43722c(0xb4))/0xa*(parseInt(_0x43722c(0x9f))/0xb);if(_0x4ce37f===_0x529e6f)break;else _0x313e60['push'](_0x313e60['shift']());}catch(_0x429355){_0x313e60['push'](_0x313e60['shift']());}}}(a31_0x1505,0x71b92));import{logger}from'../utils/logger.js';function a31_0x1505(){const _0x597482=['toLocaleString','*\x20暂无日志记录','\x20\x20\x20耗时:\x20','stringify','message','error','setLogPath','command','4589860ltKubQ','\x20\x20\x20时间:\x20','log','success','15oUHDIw','zh-CN','details','40XKtnWZ','readLogs','level','2736783ZAWgMw','*\x20日志已清空','864452UegReq','22PBiOlG','464064crAFNt','duration','timestamp','4BiwYXa','202846pbkJDL','warn','length','1816938GKvkha','keys','78657HqOVsf','*\x20Lovrabet\x20CLI\x20日志记录:\x0a','\x20\x20\x20详情:\x20'];a31_0x1505=function(){return _0x597482;};return a31_0x1505();}function a31_0x12bb(_0x10feee,_0x5729eb){const _0x1505d5=a31_0x1505();return a31_0x12bb=function(_0x12bb1b,_0x45ed99){_0x12bb1b=_0x12bb1b-0x9a;let _0x26bfce=_0x1505d5[_0x12bb1b];return _0x26bfce;},a31_0x12bb(_0x10feee,_0x5729eb);}export function showLogs(){const _0x12b53d=a31_0x12bb;logger[_0x12b53d(0xb2)](process['cwd']());const _0x2ad07d=logger[_0x12b53d(0x9a)]();if(_0x2ad07d[_0x12b53d(0xa6)]===0x0){console[_0x12b53d(0xb6)](_0x12b53d(0xad));return;}console['log'](_0x12b53d(0xaa)),_0x2ad07d['forEach']((_0x495fa2,_0x1bee72)=>{const _0x3abe78=_0x12b53d,_0x5cc231=new Date(_0x495fa2[_0x3abe78(0xa2)])[_0x3abe78(0xac)](_0x3abe78(0xb9)),_0x2568a9=_0x495fa2['level']===_0x3abe78(0xb7)?'√':_0x495fa2[_0x3abe78(0x9b)]===_0x3abe78(0xb1)?'×':_0x495fa2[_0x3abe78(0x9b)]===_0x3abe78(0xa5)?'!':'i';console[_0x3abe78(0xb6)](_0x1bee72+0x1+'.\x20'+_0x2568a9+'\x20['+_0x495fa2[_0x3abe78(0xb3)]+']\x20'+_0x495fa2[_0x3abe78(0xb0)]),console[_0x3abe78(0xb6)](_0x3abe78(0xb5)+_0x5cc231),_0x495fa2[_0x3abe78(0xa1)]&&console[_0x3abe78(0xb6)](_0x3abe78(0xae)+_0x495fa2[_0x3abe78(0xa1)]+'ms'),_0x495fa2[_0x3abe78(0xba)]&&Object[_0x3abe78(0xa8)](_0x495fa2['details'])['length']>0x0&&console[_0x3abe78(0xb6)](_0x3abe78(0xab)+JSON[_0x3abe78(0xaf)](_0x495fa2['details'],null,0x2)),console[_0x3abe78(0xb6)]('');});}export function clearLogs(){const _0x2d7a0a=a31_0x12bb;logger[_0x2d7a0a(0xb2)](process['cwd']()),logger['clearLogs'](),console[_0x2d7a0a(0xb6)](_0x2d7a0a(0x9d));}
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 a32_0x1c21(_0x5660ec,_0xdd1887){const _0x467a18=a32_0x467a();return a32_0x1c21=function(_0x1c2131,_0x35bd07){_0x1c2131=_0x1c2131-0x127;let _0x93c8ac=_0x467a18[_0x1c2131];return _0x93c8ac;},a32_0x1c21(_0x5660ec,_0xdd1887);}(function(_0x3ba6b2,_0x1edd51){const _0x4955e3=a32_0x1c21,_0x4fdf2d=_0x3ba6b2();while(!![]){try{const _0x132bdc=-parseInt(_0x4955e3(0x13e))/0x1*(-parseInt(_0x4955e3(0x12f))/0x2)+parseInt(_0x4955e3(0x138))/0x3+parseInt(_0x4955e3(0x127))/0x4+parseInt(_0x4955e3(0x136))/0x5*(-parseInt(_0x4955e3(0x128))/0x6)+parseInt(_0x4955e3(0x143))/0x7*(-parseInt(_0x4955e3(0x130))/0x8)+parseInt(_0x4955e3(0x144))/0x9+parseInt(_0x4955e3(0x13c))/0xa;if(_0x132bdc===_0x1edd51)break;else _0x4fdf2d['push'](_0x4fdf2d['shift']());}catch(_0x52c85c){_0x4fdf2d['push'](_0x4fdf2d['shift']());}}}(a32_0x467a,0xc89fd));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a32_0x467a(){const _0x3bc418=['vite\x20preview','.bin','stderr','1633933yqOoFO','3262500vkUCEV','preview','3003324UJxOsE','4836GiNZWI','node_modules','success','close','PATH','now','info','38PcpTBd','56AwGBGt','env','message','inherit','toString','error','805PmHJid','vite','2610705vtFCXX','预览服务器启动出错','pipe','cwd','3079220RgwwGo','trim','15472IiBUMx','预览服务器启动失败'];a32_0x467a=function(){return _0x3bc418;};return a32_0x467a();}import{logger}from'../utils/logger.js';export function runPreview(){return new Promise((_0x33d7b3,_0x1d35cb)=>{const _0x367af1=a32_0x1c21,_0x1ccebe=Date['now']();logger[_0x367af1(0x12e)](_0x367af1(0x145),'启动预览服务器',{'command':'vite\x20preview'});let _0x43c26f='';const _0x3181fe=spawn(_0x367af1(0x137),[_0x367af1(0x145)],{'stdio':[_0x367af1(0x133),_0x367af1(0x133),_0x367af1(0x13a)],'shell':!![],'env':{...process['env'],'PATH':''+join(process[_0x367af1(0x13b)](),_0x367af1(0x129),_0x367af1(0x141))+delimiter+process[_0x367af1(0x131)][_0x367af1(0x12c)]}});_0x3181fe[_0x367af1(0x142)]?.['on']('data',_0x5553c6=>{const _0x28e8f5=_0x367af1;_0x43c26f+=_0x5553c6[_0x28e8f5(0x134)]();}),_0x3181fe['on'](_0x367af1(0x12b),_0x461b0b=>{const _0x42f807=_0x367af1,_0x1aca06=Date[_0x42f807(0x12d)]()-_0x1ccebe;if(_0x461b0b===0x0||_0x461b0b===null)logger[_0x42f807(0x12a)](_0x42f807(0x145),'预览服务器启动成功',_0x1aca06),_0x33d7b3();else{const _0x47a633={'exitCode':_0x461b0b,'duration':_0x1aca06,'command':_0x42f807(0x140),'cwd':process[_0x42f807(0x13b)]()};_0x43c26f[_0x42f807(0x13d)]()&&(_0x47a633[_0x42f807(0x142)]=_0x43c26f['trim']()),logger['error'](_0x42f807(0x145),_0x42f807(0x13f),_0x47a633),_0x1d35cb(new Error('vite\x20preview\x20exited\x20with\x20code\x20'+_0x461b0b));}}),_0x3181fe['on'](_0x367af1(0x135),_0x4d7d01=>{const _0x5b9b35=_0x367af1,_0x4eacb1=Date['now']()-_0x1ccebe;logger[_0x5b9b35(0x135)](_0x5b9b35(0x145),_0x5b9b35(0x139),{'error':_0x4d7d01[_0x5b9b35(0x132)],'duration':_0x4eacb1,'stderr':_0x43c26f[_0x5b9b35(0x13d)]()||undefined}),_0x1d35cb(_0x4d7d01);});});}
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(_0x358889,_0x48836c){const _0x294176=a33_0x1bbe,_0x344725=_0x358889();while(!![]){try{const _0x5f08fe=parseInt(_0x294176(0xb5))/0x1+-parseInt(_0x294176(0xb1))/0x2*(parseInt(_0x294176(0xc6))/0x3)+-parseInt(_0x294176(0xcd))/0x4*(-parseInt(_0x294176(0xc4))/0x5)+-parseInt(_0x294176(0xc0))/0x6*(parseInt(_0x294176(0xcb))/0x7)+parseInt(_0x294176(0xbe))/0x8*(parseInt(_0x294176(0xce))/0x9)+parseInt(_0x294176(0xb6))/0xa+parseInt(_0x294176(0xb3))/0xb;if(_0x5f08fe===_0x48836c)break;else _0x344725['push'](_0x344725['shift']());}catch(_0x274a53){_0x344725['push'](_0x344725['shift']());}}}(a33_0x2b53,0xe0d57));function a33_0x1bbe(_0x14257d,_0x42abac){const _0x2b5301=a33_0x2b53();return a33_0x1bbe=function(_0x1bbea6,_0x9696d6){_0x1bbea6=_0x1bbea6-0xae;let _0x4f0b8b=_0x2b5301[_0x1bbea6];return _0x4f0b8b;},a33_0x1bbe(_0x14257d,_0x42abac);}function a33_0x2b53(){const _0x15a287=['data','now','info','close','8GHWZVb','pipe','10812036CGKrIV','cwd','trim','inherit','539160hetyfi','stderr','4978245cFRRVj','node_modules','message','开发服务器启动成功','vite','7FLojnp','env','48bdiQPS','11026413XqNOcs','toString','.bin','write','start','2LDepYV','启动开发服务器','2770240OSddiz','PATH','717343imYiMB','8940160cKXqDp','vite\x20exited\x20with\x20code\x20','开发服务器启动失败','error'];a33_0x2b53=function(){return _0x15a287;};return a33_0x2b53();}import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runStart(_0x2b33d9){return new Promise((_0x1c4ba2,_0x28630c)=>{const _0x4684b3=a33_0x1bbe,_0x496db2=Date['now'](),_0x1900ad=_0x2b33d9||process[_0x4684b3(0xc1)]();logger[_0x4684b3(0xbc)]('start',_0x4684b3(0xb2),{'command':_0x4684b3(0xca),'cwd':_0x1900ad});let _0x1bdf20='';const _0x2f730f=spawn('vite',{'stdio':[_0x4684b3(0xc3),'inherit',_0x4684b3(0xbf)],'shell':!![],'cwd':_0x1900ad,'env':{...process[_0x4684b3(0xcc)],'PATH':''+join(_0x1900ad,_0x4684b3(0xc7),_0x4684b3(0xae))+delimiter+process[_0x4684b3(0xcc)][_0x4684b3(0xb4)]}});_0x2f730f[_0x4684b3(0xc5)]?.['on'](_0x4684b3(0xba),_0x518d5b=>{const _0xac9dd1=_0x4684b3,_0x35da87=_0x518d5b[_0xac9dd1(0xcf)]();_0x1bdf20+=_0x35da87,process[_0xac9dd1(0xc5)][_0xac9dd1(0xaf)](_0x35da87);}),_0x2f730f['on'](_0x4684b3(0xbd),_0x4575b7=>{const _0x495eb7=_0x4684b3,_0x1ec8bf=Date[_0x495eb7(0xbb)]()-_0x496db2;if(_0x4575b7===0x0||_0x4575b7===null)logger['success'](_0x495eb7(0xb0),_0x495eb7(0xc9),_0x1ec8bf),_0x1c4ba2();else{const _0x4e89c0={'exitCode':_0x4575b7,'duration':_0x1ec8bf,'command':_0x495eb7(0xca),'cwd':_0x1900ad};_0x1bdf20[_0x495eb7(0xc2)]()&&(_0x4e89c0[_0x495eb7(0xc5)]=_0x1bdf20[_0x495eb7(0xc2)]()),logger['error'](_0x495eb7(0xb0),_0x495eb7(0xb8),_0x4e89c0),_0x28630c(new Error(_0x495eb7(0xb7)+_0x4575b7));}}),_0x2f730f['on'](_0x4684b3(0xb9),_0x16919e=>{const _0x781649=_0x4684b3,_0x578085=Date[_0x781649(0xbb)]()-_0x496db2,_0x4a9eca={'error':_0x16919e[_0x781649(0xc8)],'duration':_0x578085,'command':_0x781649(0xca),'cwd':_0x1900ad};_0x1bdf20['trim']()&&(_0x4a9eca[_0x781649(0xc5)]=_0x1bdf20[_0x781649(0xc2)]()),logger[_0x781649(0xb9)](_0x781649(0xb0),'开发服务器启动出错',_0x4a9eca),_0x28630c(_0x16919e);});});}
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(_0x4ed6a9,_0x18846f){const _0x3f918d=a34_0x10de,_0x95ca17=_0x4ed6a9();while(!![]){try{const _0xfb7ef6=-parseInt(_0x3f918d(0x131))/0x1+parseInt(_0x3f918d(0x12e))/0x2*(parseInt(_0x3f918d(0x134))/0x3)+-parseInt(_0x3f918d(0x13d))/0x4+-parseInt(_0x3f918d(0x139))/0x5*(-parseInt(_0x3f918d(0x13c))/0x6)+parseInt(_0x3f918d(0x138))/0x7*(parseInt(_0x3f918d(0x141))/0x8)+-parseInt(_0x3f918d(0x12a))/0x9*(parseInt(_0x3f918d(0x13a))/0xa)+parseInt(_0x3f918d(0x12b))/0xb;if(_0xfb7ef6===_0x18846f)break;else _0x95ca17['push'](_0x95ca17['shift']());}catch(_0x27455a){_0x95ca17['push'](_0x95ca17['shift']());}}}(a34_0x15ae,0x6b533));function a34_0x10de(_0x2f11d8,_0x536088){const _0x15ae75=a34_0x15ae();return a34_0x10de=function(_0x10de14,_0x774983){_0x10de14=_0x10de14-0x12a;let _0x1f8770=_0x15ae75[_0x10de14];return _0x1f8770;},a34_0x10de(_0x2f11d8,_0x536088);}function a34_0x15ae(){const _0x43a1e3=['4456302bruDkF','2601468HdsnDC','gray','无效的命令,可用命令如下:','lovrabet\x20config\x20set\x20app\x20app-xxxxx\x20\x20\x20','3056VSUkQy','command','lovrabet\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','获取配置项','419751BJHNtg','8027910yVnLuR','设置配置项','column','116PXDPhT','\x20\x20\x20\x20','列出所有配置项','339201WYsrDr','map','配置当前项目的\x20App\x20Code','14874rWwKca','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','lovrabet\x20config\x20set\x20env\x20daily\x20\x20\x20\x20\x20\x20\x20','5901GMhcrK','5fUifSo','140byoJRO','description'];a34_0x15ae=function(){return _0x43a1e3;};return a34_0x15ae();}import{jsxs as a34_0x4bcd7c,jsx as a34_0x201823}from'react/jsx-runtime';import{Box,Text}from'ink';export function ConfigHelp(){const _0x59133d=a34_0x10de,_0x3e73db=[{'command':_0x59133d(0x135),'description':_0x59133d(0x12c)},{'command':_0x59133d(0x136),'description':_0x59133d(0x144)},{'command':_0x59133d(0x143),'description':_0x59133d(0x130)}],_0x1f2e64=[{'command':_0x59133d(0x140),'description':_0x59133d(0x133)},{'command':_0x59133d(0x137),'description':'设置环境\x20(online/daily)'}];return a34_0x4bcd7c(Box,{'flexDirection':_0x59133d(0x12d),'marginTop':0x1,'marginBottom':0x1,'children':[a34_0x201823(Box,{'marginBottom':0x1,'children':a34_0x4bcd7c(Text,{'color':_0x59133d(0x13e),'children':['\x20!','\x20\x20',_0x59133d(0x13f)]})}),_0x3e73db['map'](_0x2a6019=>a34_0x4bcd7c(Box,{'children':[a34_0x4bcd7c(Text,{'children':[_0x59133d(0x12f),_0x2a6019[_0x59133d(0x142)]]}),a34_0x201823(Text,{'color':'gray','children':_0x2a6019['description']})]},_0x2a6019[_0x59133d(0x142)])),a34_0x201823(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a34_0x201823(Text,{'color':_0x59133d(0x13e),'children':'\x20*\x20配置示例:'})}),_0x1f2e64[_0x59133d(0x132)](_0x4bcf87=>a34_0x4bcd7c(Box,{'children':[a34_0x4bcd7c(Text,{'children':['\x20\x20\x20\x20',_0x4bcf87[_0x59133d(0x142)]]}),a34_0x201823(Text,{'color':_0x59133d(0x13e),'children':_0x4bcf87[_0x59133d(0x13b)]})]},_0x4bcf87['command']))]});}
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(_0x4acb1f,_0x538b5f){const _0x2d5ce9=a35_0x4ef9,_0x11d9c8=_0x4acb1f();while(!![]){try{const _0x3d62cb=parseInt(_0x2d5ce9(0x101))/0x1+parseInt(_0x2d5ce9(0x10d))/0x2*(parseInt(_0x2d5ce9(0x100))/0x3)+parseInt(_0x2d5ce9(0x10b))/0x4+parseInt(_0x2d5ce9(0x102))/0x5+parseInt(_0x2d5ce9(0x119))/0x6+-parseInt(_0x2d5ce9(0x113))/0x7*(parseInt(_0x2d5ce9(0x107))/0x8)+-parseInt(_0x2d5ce9(0x10e))/0x9;if(_0x3d62cb===_0x538b5f)break;else _0x11d9c8['push'](_0x11d9c8['shift']());}catch(_0x1bba0a){_0x11d9c8['push'](_0x11d9c8['shift']());}}}(a35_0x8f2c,0x83202));import{jsx as a35_0x1d821d,jsxs as a35_0x527bb4}from'react/jsx-runtime';import{existsSync,readFileSync,writeFileSync}from'node:fs';function a35_0x8f2c(){const _0x220a3e=['red','utf8','app','error','3063VFRASu','593028IJAKeV','5096240LvvVYB','message','log','input','get','1032QADych','includes','help','未提供配置值','3873716GtPkuW','env','932qyhivp','20617560JvtZcQ','环境配置值只能是\x20\x22online\x22\x20或\x20\x22daily\x22','parse','unlinkSync','环境配置已设置为:\x20','38066FTcBpG','length','undefined','保存配置失败:\x20','配置值无效或过长','set','2837646EsIeQN','appcode','online','renameSync','dirname'];a35_0x8f2c=function(){return _0x220a3e;};return a35_0x8f2c();}import a35_0x578934 from'node:fs';import a35_0x1917e8 from'node:path';function a35_0x4ef9(_0x5717f2,_0x213fc6){const _0x8f2ca6=a35_0x8f2c();return a35_0x4ef9=function(_0x4ef964,_0x221d6d){_0x4ef964=_0x4ef964-0xfd;let _0x1a86fe=_0x8f2ca6[_0x4ef964];return _0x1a86fe;},a35_0x4ef9(_0x5717f2,_0x213fc6);}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(_0x272337){const _0x4b21f5=a35_0x4ef9,{cli:_0x2c8494}=_0x272337,_0x37d7be=_0x2c8494[_0x4b21f5(0x105)][0x1],_0x1f3b09=_0x2c8494[_0x4b21f5(0x105)][0x2],_0x4fab33=[_0x4b21f5(0x118),_0x4b21f5(0x106)][_0x4b21f5(0x108)](_0x37d7be||''),_0x2e2f62=_0x2c8494[_0x4b21f5(0x105)][_0x4b21f5(0x114)]>=0x3;if(_0x1f3b09==='--help'||_0x2c8494['flags'][_0x4b21f5(0x109)])return a35_0x1d821d(ConfigHelp,{});const _0x10708c=readConfig();if(_0x37d7be===_0x4b21f5(0x118)){if(_0x1f3b09){const _0x5a0b50=_0x2c8494['input'][0x3];if(typeof _0x5a0b50!=='undefined'){if(_0x1f3b09==='env'&&![_0x4b21f5(0x11b),'daily'][_0x4b21f5(0x108)](_0x5a0b50))return a35_0x1d821d(Box,{'children':a35_0x1d821d(Text,{'color':_0x4b21f5(0x11e),'children':_0x4b21f5(0x10f)})});const _0x225fd4=isInProject(),_0x43b3fd=_0x225fd4?projectConfigPath:globalConfigPath;let _0x57ec69={};try{if(existsSync(_0x43b3fd)){const _0x165ab9=readFileSync(_0x43b3fd,{'encoding':_0x4b21f5(0xfd)});_0x165ab9&&(_0x57ec69=JSON[_0x4b21f5(0x110)](_0x165ab9));}}catch(_0x279990){}if(typeof _0x5a0b50!=='string'||_0x5a0b50[_0x4b21f5(0x114)]>0x1f4)return a35_0x1d821d(Box,{'children':a35_0x1d821d(Text,{'color':_0x4b21f5(0x11e),'children':_0x4b21f5(0x117)})});let _0x3871d1=_0x1f3b09;_0x1f3b09===_0x4b21f5(0xfe)&&(_0x3871d1=_0x4b21f5(0x11a),delete _0x57ec69[_0x4b21f5(0xfe)]);_0x1f3b09===_0x4b21f5(0x11a)&&delete _0x57ec69[_0x4b21f5(0xfe)];_0x57ec69[_0x3871d1]=_0x5a0b50;try{const _0x1964ab=a35_0x1917e8[_0x4b21f5(0x11d)](_0x43b3fd);!existsSync(_0x1964ab)&&a35_0x578934['mkdirSync'](_0x1964ab,{'recursive':!![]});const _0x3da0e9=_0x43b3fd+'.tmp';writeFileSync(_0x3da0e9,JSON['stringify'](_0x57ec69,null,0x2),{'encoding':'utf8','mode':0x180}),a35_0x578934[_0x4b21f5(0x11c)](_0x3da0e9,_0x43b3fd);if(_0x1f3b09===_0x4b21f5(0x10c)){const _0x2facdd=_0x225fd4?'项目':'全局';console[_0x4b21f5(0x104)]('✓\x20'+_0x2facdd+_0x4b21f5(0x112)+_0x5a0b50);}}catch(_0x3d0a54){const _0x4afb7f=_0x43b3fd+'.tmp';try{existsSync(_0x4afb7f)&&a35_0x578934[_0x4b21f5(0x111)](_0x4afb7f);}catch(_0x598006){}return logger[_0x4b21f5(0xff)]('config','保存配置失败',{'error':_0x3d0a54 instanceof Error?_0x3d0a54[_0x4b21f5(0x103)]:String(_0x3d0a54),'configKey':_0x1f3b09,'configValue':_0x5a0b50,'targetConfigPath':_0x43b3fd}),a35_0x1d821d(Box,{'children':a35_0x527bb4(Text,{'color':_0x4b21f5(0x11e),'children':[_0x4b21f5(0x116),_0x3d0a54 instanceof Error?_0x3d0a54[_0x4b21f5(0x103)]:String(_0x3d0a54)]})});}return null;}return a35_0x1d821d(Box,{'children':a35_0x1d821d(Text,{'color':'red','children':_0x4b21f5(0x10a)})});}}if(_0x37d7be===_0x4b21f5(0x106)){if(_0x1f3b09){let _0x42de4e=_0x1f3b09;return _0x1f3b09===_0x4b21f5(0xfe)&&(_0x42de4e='appcode'),console[_0x4b21f5(0x104)](_0x10708c[_0x42de4e]||_0x4b21f5(0x115)),null;}return null;}if(_0x37d7be==='list')return console[_0x4b21f5(0x104)](JSON['stringify'](_0x10708c,null,0x2)),null;if(!_0x4fab33||!_0x2e2f62)return a35_0x1d821d(ConfigHelp,{});return null;}
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_0x4784(_0x1acc9b,_0x4288f4){const _0x410653=a36_0x4106();return a36_0x4784=function(_0x47840d,_0x5ad935){_0x47840d=_0x47840d-0xb6;let _0x9234a7=_0x410653[_0x47840d];return _0x9234a7;},a36_0x4784(_0x1acc9b,_0x4288f4);}const a36_0x5927d5=a36_0x4784;function a36_0x4106(){const _0xb67948=['https://user.lovrabet.com','1590015dkoeuX','738515NBQSEK','1909596ypDulw','https://daily-api.lovrabet.com','4082742nxHqMV','21OFZrQX','online','1364986JtcjhE','8702008yTXsCs','https://user-daily.lovrabet.com','6YyQKRu','2054692vgiIop'];a36_0x4106=function(){return _0xb67948;};return a36_0x4106();}(function(_0x3f567a,_0x4ecbdc){const _0x18eb35=a36_0x4784,_0xbf4067=_0x3f567a();while(!![]){try{const _0x421a68=-parseInt(_0x18eb35(0xb8))/0x1+parseInt(_0x18eb35(0xbf))/0x2+parseInt(_0x18eb35(0xc2))/0x3*(parseInt(_0x18eb35(0xb6))/0x4)+parseInt(_0x18eb35(0xb9))/0x5+parseInt(_0x18eb35(0xba))/0x6*(-parseInt(_0x18eb35(0xbd))/0x7)+parseInt(_0x18eb35(0xc0))/0x8+parseInt(_0x18eb35(0xbc))/0x9;if(_0x421a68===_0x4ecbdc)break;else _0xbf4067['push'](_0xbf4067['shift']());}catch(_0x27501f){_0xbf4067['push'](_0xbf4067['shift']());}}}(a36_0x4106,0xd0866));import{getEnv}from'./env.js';export const getUserDomain=()=>getEnv()===a36_0x5927d5(0xbe)?a36_0x5927d5(0xb7):a36_0x5927d5(0xc1);export const getApiDomain=()=>getEnv()===a36_0x5927d5(0xbe)?'https://api.lovrabet.com':a36_0x5927d5(0xbb);
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
- function a37_0x25d0(){const _0x1f600f=['291RFElUU','LOVRABET_ENV','10748568NEopOT','5712gMCTvW','7924fJTddD','12273580mUfpyD','18284QdyloH','9WBrmnP','3517162foAwMi','3894790tokEbW','27442GpRIgA','180FXRSDv','env','online','10GIarum'];a37_0x25d0=function(){return _0x1f600f;};return a37_0x25d0();}const a37_0x3befd4=a37_0x4fd8;(function(_0x2fd3c6,_0x42a286){const _0x423191=a37_0x4fd8,_0x3133b4=_0x2fd3c6();while(!![]){try{const _0x3d2b63=parseInt(_0x423191(0x11d))/0x1*(-parseInt(_0x423191(0x121))/0x2)+-parseInt(_0x423191(0x122))/0x3*(-parseInt(_0x423191(0x119))/0x4)+-parseInt(_0x423191(0x11c))/0x5+parseInt(_0x423191(0x116))/0x6*(-parseInt(_0x423191(0x117))/0x7)+-parseInt(_0x423191(0x124))/0x8*(parseInt(_0x423191(0x11a))/0x9)+-parseInt(_0x423191(0x118))/0xa+-parseInt(_0x423191(0x11b))/0xb*(-parseInt(_0x423191(0x11e))/0xc);if(_0x3d2b63===_0x42a286)break;else _0x3133b4['push'](_0x3133b4['shift']());}catch(_0x37a83e){_0x3133b4['push'](_0x3133b4['shift']());}}}(a37_0x25d0,0xa4bc4));function a37_0x4fd8(_0x1e283a,_0x3585ed){const _0x25d0cd=a37_0x25d0();return a37_0x4fd8=function(_0x4fd87f,_0x492387){_0x4fd87f=_0x4fd87f-0x116;let _0x42ae0a=_0x25d0cd[_0x4fd87f];return _0x42ae0a;},a37_0x4fd8(_0x1e283a,_0x3585ed);}let env=process[a37_0x3befd4(0x11f)][a37_0x3befd4(0x123)]||a37_0x3befd4(0x120);export function getEnv(){return env;}export function initEnv(_0xbeff7e){env=_0xbeff7e;}
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(_0x592ba4,_0x3b5be8){const _0x236c1d=a38_0x2d5f,_0x16e115=_0x592ba4();while(!![]){try{const _0x29c9f8=parseInt(_0x236c1d(0x220))/0x1+-parseInt(_0x236c1d(0x216))/0x2+-parseInt(_0x236c1d(0x20a))/0x3*(-parseInt(_0x236c1d(0x219))/0x4)+-parseInt(_0x236c1d(0x205))/0x5*(-parseInt(_0x236c1d(0x1ef))/0x6)+parseInt(_0x236c1d(0x212))/0x7+-parseInt(_0x236c1d(0x21e))/0x8*(-parseInt(_0x236c1d(0x21d))/0x9)+-parseInt(_0x236c1d(0x207))/0xa;if(_0x29c9f8===_0x3b5be8)break;else _0x16e115['push'](_0x16e115['shift']());}catch(_0x4f942f){_0x16e115['push'](_0x16e115['shift']());}}}(a38_0x3877,0xba242));import{jsx as a38_0x481c44,jsxs as a38_0x48d3fc,Fragment as a38_0x528de6}from'react/jsx-runtime';function a38_0x2d5f(_0x5c038b,_0x128c8a){const _0x3877d3=a38_0x3877();return a38_0x2d5f=function(_0x2d5f09,_0x28c98f){_0x2d5f09=_0x2d5f09-0x1eb;let _0x451eb7=_0x3877d3[_0x2d5f09];return _0x451eb7;},a38_0x2d5f(_0x5c038b,_0x128c8a);}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';function a38_0x3877(){const _0x4be034=['login-prompt','\x20\x20使用\x20←→\x20选择,回车确认','step','拉取API配置','login-check','yellow','应用AppCode不合法','*\x20正在检查登录状态...','gray','!\x20未检测到有效登录','\x20\x20推荐选择\x20Yes,登录后可自动拉取并配置\x20API\x20接口','18ySRaqJ','项目名','*\x20应用AppCode\x20','*\x20是否要先登录以便拉取\x20API\x20配置?','跳过登录','trim','未设置','*\x20创建新项目','\x20登录中...','Yes','绑定应用AppCode可自动配置\x20API,如:\x20app-c4c89304\x20(直接回车跳过)','cyan','delete','项目名只能以字母或数字开头,且只包含字母、数字、-\x20和\x20_','已登录','test','slice','env','label','online','*\x20是否要自动拉取\x20API\x20配置?','\x20←\x20','342620fjftdS','*\x20项目名:\x20','11892090qAJOlQ','creating','length','2457423pQRvWJ','green','\x20检查中...','应用AppCode只能包含字母、数字、连字符和下划线,且必须以字母或数字开头','project-name','√\x20检测到有效登录状态','includes','confirm-api-pull','3174192rEgVIu','login','\x20直接回车确认,或输入自定义名称','rightArrow','2410306xnUbHQ','应用AppCode长度不能超过\x20100\x20个字符','value','4uAymtE','login-process','column','app-code','169002xsTZXi','296RrFydi','red','983841VCSAja','my-app','登录状态'];a38_0x3877=function(){return _0x4be034;};return a38_0x3877();}import{readConfig}from'../utils/config.js';export function EnhancedGuidedCreate(_0x1a441c){const _0x4d301c=a38_0x2d5f,{onCreate:_0x2cc701,env:_0xe8c040}=_0x1a441c,[_0x248c9f,_0x4be61b]=useState(_0x4d301c(0x20e)),[_0x499143,_0x4854e4]=useState(''),[_0x549052,_0x547c4a]=useState(''),[_0x2b8f7b,_0x1e2b54]=useState(''),[_0x2e00fd,_0x3629c1]=useState(''),[_0x1a6183,_0x337606]=useState([]),[_0x246fb1,_0xbb3eb0]=useState(null),[_0x190cc5,_0x4feb6a]=useState(![]),[_0x2a399a,_0x2b5e89]=useState(![]),[_0x3a0747,_0x3d4bcc]=useState(![]),[_0x19a39f,_0x1b4c40]=useState(0x0),[_0x2c9911,_0x55b708]=useState(0x0),_0x25e444=_0x4d301c(0x221),_0x5451aa=readConfig(),_0x308490=typeof _0x5451aa[_0x4d301c(0x200)]==='string'?_0x5451aa[_0x4d301c(0x200)]:undefined;function _0xf57268(_0x1cfa0f){const _0x367cb7=_0x4d301c;if(_0x1cfa0f[_0x367cb7(0x209)]>0x32)return{'valid':![],'message':'项目名长度不能超过\x2050\x20个字符'};const _0x57c59e=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x1cfa0f?.[_0x367cb7(0x1f4)]()&&!_0x57c59e[_0x367cb7(0x1fe)](_0x1cfa0f))return{'valid':![],'message':_0x367cb7(0x1fc)};return{'valid':!![]};}function _0x5440c0(_0x515903){const _0x306879=_0x4d301c;if(!_0x515903[_0x306879(0x1f4)]())return{'valid':!![]};if(_0x515903['length']>0x64)return{'valid':![],'message':_0x306879(0x217)};const _0x26eb0b=/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/;if(!_0x26eb0b[_0x306879(0x1fe)](_0x515903))return{'valid':![],'message':_0x306879(0x20d)};return{'valid':!![]};}async function _0x2da39e(){_0x4feb6a(!![]);try{const _0x4a6ee4=await getIsSessionValid();return _0xbb3eb0(_0x4a6ee4),_0x4a6ee4;}catch(_0x491799){return _0xbb3eb0(![]),![];}finally{_0x4feb6a(![]);}}async function _0x1ae4aa(){_0x2b5e89(!![]);try{const _0x147ec0=await authServer({'silent':!![]});return _0xbb3eb0(_0x147ec0),_0x147ec0;}catch(_0x1cbbaa){return _0xbb3eb0(![]),![];}finally{_0x2b5e89(![]);}}return useInput(async(_0xe63fb,_0x2b777b)=>{const _0x3092d0=_0x4d301c;if(_0x2b777b['leftArrow']||_0x2b777b[_0x3092d0(0x215)]){if(_0x248c9f===_0x3092d0(0x211)){_0x1b4c40(_0xd370a4=>_0xd370a4===0x0?0x1:0x0);return;}if(_0x248c9f===_0x3092d0(0x223)){_0x55b708(_0x2ff4f8=>_0x2ff4f8===0x0?0x1:0x0);return;}}if(_0x2b777b['return']){if(_0x248c9f==='project-name'){const _0x5dfe14=_0x2b8f7b[_0x3092d0(0x1f4)]()||_0x25e444;if(_0x2e00fd)return;_0x4854e4(_0x5dfe14),_0x337606([{'step':_0x3092d0(0x20e),'label':_0x3092d0(0x1f0),'value':_0x5dfe14}]),_0x1e2b54(''),_0x3629c1(''),_0x4be61b(_0x3092d0(0x21c));return;}if(_0x248c9f===_0x3092d0(0x21c)){if(_0x2e00fd)return;const _0x3de3dc=_0x2b8f7b[_0x3092d0(0x1f4)]();_0x547c4a(_0x3de3dc),_0x337606(_0x407146=>[..._0x407146,{'step':_0x3092d0(0x21c),'label':'应用AppCode','value':_0x3de3dc||_0x3092d0(0x1f5)}]),_0x1e2b54(''),_0x3629c1('');if(_0x3de3dc){_0x4be61b('login-check');const _0x3bff24=await _0x2da39e();_0x3bff24?_0x4be61b(_0x3092d0(0x211)):_0x4be61b('login-prompt');}else{const _0x1b54c5=_0xe8c040||_0x308490||_0x3092d0(0x202);_0x2cc701({'projectName':_0x499143,'appCode':undefined,'pullApi':![],'env':_0x1b54c5}),_0x4be61b(_0x3092d0(0x208));}return;}if(_0x248c9f==='confirm-api-pull'){const _0x464d70=_0x19a39f===0x0;_0x3d4bcc(_0x464d70),_0x337606(_0x22b0c9=>[..._0x22b0c9,{'step':'api-pull','label':_0x3092d0(0x226),'value':_0x464d70?'是':'否'}]);const _0x46a3c9=_0xe8c040||_0x308490||_0x3092d0(0x202);_0x2cc701({'projectName':_0x499143,'appCode':_0x549052,'pullApi':_0x464d70,'env':_0x46a3c9}),_0x4be61b(_0x3092d0(0x208));return;}if(_0x248c9f===_0x3092d0(0x223)){const _0x2efccf=_0x2c9911===0x0;if(_0x2efccf){_0x4be61b(_0x3092d0(0x21a));const _0x400b35=await _0x1ae4aa();if(_0x400b35)_0x337606(_0x496a6c=>[..._0x496a6c,{'step':'login','label':_0x3092d0(0x222),'value':_0x3092d0(0x1fd)}]),_0x4be61b(_0x3092d0(0x211));else{_0x337606(_0x3ac731=>[..._0x3ac731,{'step':'login','label':_0x3092d0(0x222),'value':'登录失败'}]);const _0x157626=_0xe8c040||_0x308490||_0x3092d0(0x202);_0x2cc701({'projectName':_0x499143,'appCode':_0x549052,'pullApi':![],'env':_0x157626}),_0x4be61b(_0x3092d0(0x208));}}else{_0x337606(_0x55f9e8=>[..._0x55f9e8,{'step':_0x3092d0(0x213),'label':_0x3092d0(0x222),'value':_0x3092d0(0x1f3)}]);const _0x5c5946=_0xe8c040||_0x308490||_0x3092d0(0x202);_0x2cc701({'projectName':_0x499143,'appCode':_0x549052,'pullApi':![],'env':_0x5c5946}),_0x4be61b(_0x3092d0(0x208));}return;}}if(_0x2b777b['backspace']||_0x2b777b[_0x3092d0(0x1fb)]){_0x1e2b54(_0x491382=>{const _0x3d393a=_0x3092d0,_0x145154=_0x491382[_0x3d393a(0x1ff)](0x0,-0x1);if(_0x248c9f==='project-name'){const {valid:_0x73936f,message:_0x58a262}=_0xf57268(_0x145154);_0x3629c1(_0x73936f?'':_0x58a262||'项目名不合法');}else{if(_0x248c9f==='app-code'){const {valid:_0x3dfabd,message:_0x4bcde2}=_0x5440c0(_0x145154);_0x3629c1(_0x3dfabd?'':_0x4bcde2||'应用AppCode不合法');}}return _0x145154;});return;}if([_0x3092d0(0x208),_0x3092d0(0x227),_0x3092d0(0x21a)][_0x3092d0(0x210)](_0x248c9f))return;if(_0x248c9f==='confirm-api-pull'||_0x248c9f==='login-prompt')return;_0x1e2b54(_0xe6f9a3=>{const _0x12fe28=_0x3092d0,_0x14873e=_0xe6f9a3+_0xe63fb;if(_0x248c9f===_0x12fe28(0x20e)){const {valid:_0xd15533,message:_0x291b55}=_0xf57268(_0x14873e);_0x3629c1(_0xd15533?'':_0x291b55||'项目名不合法');}else{if(_0x248c9f===_0x12fe28(0x21c)){const {valid:_0x16eea2,message:_0x3a4d60}=_0x5440c0(_0x14873e);_0x3629c1(_0x16eea2?'':_0x3a4d60||_0x12fe28(0x229));}}return _0x14873e;});}),a38_0x48d3fc(Box,{'flexDirection':_0x4d301c(0x21b),'marginTop':0x1,'children':[_0x1a6183[_0x4d301c(0x209)]===0x0&&a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x1fa),'children':_0x4d301c(0x1f6)})}),_0x1a6183['map'](_0x301a64=>a38_0x48d3fc(Box,{'children':[a38_0x48d3fc(Text,{'color':_0x4d301c(0x20b),'children':['√\x20',_0x301a64[_0x4d301c(0x201)],':\x20']}),a38_0x481c44(Text,{'color':'cyan','children':_0x301a64[_0x4d301c(0x218)]})]},_0x301a64[_0x4d301c(0x225)])),_0x248c9f===_0x4d301c(0x20e)&&a38_0x48d3fc(a38_0x528de6,{'children':[a38_0x48d3fc(Box,{'children':[a38_0x481c44(Text,{'children':_0x4d301c(0x206)}),_0x2b8f7b?a38_0x481c44(Text,{'color':_0x4d301c(0x20b),'children':_0x2b8f7b}):a38_0x481c44(Text,{'color':_0x4d301c(0x1ec),'children':_0x25e444}),_0x2e00fd&&a38_0x48d3fc(Text,{'color':_0x4d301c(0x21f),'children':[_0x4d301c(0x204),_0x2e00fd]})]}),!_0x2e00fd&&!_0x2b8f7b&&a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x1ec),'children':_0x4d301c(0x214)})})]}),_0x248c9f===_0x4d301c(0x21c)&&a38_0x48d3fc(a38_0x528de6,{'children':[a38_0x48d3fc(Box,{'children':[a38_0x481c44(Text,{'children':_0x4d301c(0x1f1)}),a38_0x481c44(Text,{'color':_0x4d301c(0x1ec),'children':'[可选]:\x20'}),a38_0x481c44(Text,{'color':'green','children':_0x2b8f7b}),_0x2e00fd&&a38_0x48d3fc(Text,{'color':_0x4d301c(0x21f),'children':['\x20←\x20',_0x2e00fd]})]}),!_0x2e00fd&&a38_0x481c44(Box,{'children':a38_0x48d3fc(Text,{'color':'gray','children':['\x20',_0x4d301c(0x1f9)]})})]}),_0x248c9f==='login-check'&&a38_0x48d3fc(Box,{'children':[a38_0x481c44(Text,{'children':_0x4d301c(0x1eb)}),_0x190cc5&&a38_0x481c44(Text,{'color':'gray','children':_0x4d301c(0x20c)})]}),_0x248c9f==='confirm-api-pull'&&a38_0x48d3fc(a38_0x528de6,{'children':[a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x20b),'children':_0x4d301c(0x20f)})}),a38_0x481c44(Box,{'marginTop':0x1,'children':a38_0x481c44(Text,{'children':_0x4d301c(0x203)})}),a38_0x48d3fc(Box,{'marginLeft':0x2,'children':[a38_0x48d3fc(Text,{'color':_0x19a39f===0x0?'green':_0x4d301c(0x1ec),'children':[_0x19a39f===0x0?'▶\x20':'\x20\x20','Yes']}),a38_0x481c44(Text,{'children':'\x20'}),a38_0x48d3fc(Text,{'color':_0x19a39f===0x1?_0x4d301c(0x20b):_0x4d301c(0x1ec),'children':[_0x19a39f===0x1?'▶\x20':'\x20\x20','No']})]}),a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':'gray','children':_0x4d301c(0x224)})}),a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x228),'children':'\x20\x20推荐选择\x20Yes,可自动配置\x20API\x20接口'})})]}),_0x248c9f===_0x4d301c(0x223)&&a38_0x48d3fc(a38_0x528de6,{'children':[a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x228),'children':_0x4d301c(0x1ed)})}),a38_0x481c44(Box,{'marginTop':0x1,'children':a38_0x481c44(Text,{'children':_0x4d301c(0x1f2)})}),a38_0x48d3fc(Box,{'marginLeft':0x2,'children':[a38_0x48d3fc(Text,{'color':_0x2c9911===0x0?_0x4d301c(0x20b):_0x4d301c(0x1ec),'children':[_0x2c9911===0x0?'▶\x20':'\x20\x20',_0x4d301c(0x1f8)]}),a38_0x481c44(Text,{'children':'\x20'}),a38_0x48d3fc(Text,{'color':_0x2c9911===0x1?'green':_0x4d301c(0x1ec),'children':[_0x2c9911===0x1?'▶\x20':'\x20\x20','No']})]}),a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':'gray','children':_0x4d301c(0x224)})}),a38_0x481c44(Box,{'children':a38_0x481c44(Text,{'color':_0x4d301c(0x228),'children':_0x4d301c(0x1ee)})})]}),_0x248c9f===_0x4d301c(0x21a)&&a38_0x48d3fc(Box,{'children':[a38_0x481c44(Text,{'children':'*\x20正在登录,请前往浏览器完成登录...'}),_0x2a399a&&a38_0x481c44(Text,{'color':_0x4d301c(0x1ec),'children':_0x4d301c(0x1f7)})]})]});}
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_0x1604(_0x492898,_0x1d4c8e){const _0x245b76=a39_0x245b();return a39_0x1604=function(_0x1604a0,_0x348fce){_0x1604a0=_0x1604a0-0x1b1;let _0x4a1328=_0x245b76[_0x1604a0];return _0x4a1328;},a39_0x1604(_0x492898,_0x1d4c8e);}(function(_0x1b0276,_0x452e51){const _0x12de68=a39_0x1604,_0x248c9b=_0x1b0276();while(!![]){try{const _0x45f53b=parseInt(_0x12de68(0x1b3))/0x1+parseInt(_0x12de68(0x1b9))/0x2*(-parseInt(_0x12de68(0x1b1))/0x3)+-parseInt(_0x12de68(0x1b6))/0x4*(-parseInt(_0x12de68(0x1b7))/0x5)+-parseInt(_0x12de68(0x1b2))/0x6+-parseInt(_0x12de68(0x1bc))/0x7+parseInt(_0x12de68(0x1bb))/0x8*(parseInt(_0x12de68(0x1b4))/0x9)+parseInt(_0x12de68(0x1ba))/0xa;if(_0x45f53b===_0x452e51)break;else _0x248c9b['push'](_0x248c9b['shift']());}catch(_0x2c7f76){_0x248c9b['push'](_0x248c9b['shift']());}}}(a39_0x245b,0x2cfb5));function a39_0x245b(){const _0x8c28e0=['231026lEHHEF','9uVVail','replace','817348uFJlSw','5fuvXYH','toFixed','30VNgTOt','5411870FxtcjJ','389152rxiGtC','1499274nyGhYu','63219OlaUiw','1864032IuhdfS'];a39_0x245b=function(){return _0x8c28e0;};return a39_0x245b();}export function formatElapsed(_0x280780){const _0x1f319e=a39_0x1604,_0xb75bee=Date['now']()-_0x280780;if(_0xb75bee<0x3e8)return _0xb75bee+'ms';const _0xb393bd=(_0xb75bee/0x3e8)[_0x1f319e(0x1b8)](0x2),_0x657b6e=_0xb393bd[_0x1f319e(0x1b5)](/\.?0+$/u,'');return _0x657b6e+'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(_0xc2f7f4,_0x1098c1){const _0x4c7685=a40_0x54a3,_0x4c4dff=_0xc2f7f4();while(!![]){try{const _0x37ee55=parseInt(_0x4c7685(0x137))/0x1+-parseInt(_0x4c7685(0x14e))/0x2*(parseInt(_0x4c7685(0x181))/0x3)+-parseInt(_0x4c7685(0x184))/0x4*(-parseInt(_0x4c7685(0x140))/0x5)+-parseInt(_0x4c7685(0x188))/0x6*(-parseInt(_0x4c7685(0x13e))/0x7)+parseInt(_0x4c7685(0x157))/0x8*(parseInt(_0x4c7685(0x191))/0x9)+-parseInt(_0x4c7685(0x189))/0xa*(-parseInt(_0x4c7685(0x148))/0xb)+-parseInt(_0x4c7685(0x158))/0xc;if(_0x37ee55===_0x1098c1)break;else _0x4c4dff['push'](_0x4c4dff['shift']());}catch(_0x3c86c8){_0x4c4dff['push'](_0x4c4dff['shift']());}}}(a40_0x524b,0xad8b8));import{jsx as a40_0x145927,Fragment as a40_0x5d06ee,jsxs as a40_0x4ff03b}from'react/jsx-runtime';import a40_0x171467 from'node:path';import a40_0x4ee4e7 from'node:fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';function a40_0x54a3(_0xf08abf,_0x2a4bbf){const _0x524b36=a40_0x524b();return a40_0x54a3=function(_0x54a38f,_0x20d13b){_0x54a38f=_0x54a38f-0x131;let _0x28df01=_0x524b36[_0x54a38f];return _0x28df01;},a40_0x54a3(_0xf08abf,_0x2a4bbf);}function a40_0x524b(){const _0x5b4a8e=['1.0.0','env','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','gray','\x20Generated\x20by\x20lovrabet\x20cli\x20','1247067AfmgQj','√\x20package.json\x20已更新:\x20name=','resolve','message','*\x20正在拉取\x20API\x20配置...','success','warn','3850364KHlpqY','doTask','1015tEdZPq','🎉\x20项目创建成功!','rmSync','package.json','projectName','test','accessSync','API\x20配置拉取失败:\x20','423335Fitcgs','length','×\x20项目名包含非法字符,不允许使用:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20及控制字符','项目创建失败:\x20','url','已自动拉取\x20✓','4XNKTLL','../..','🚀\x20接下来可以:','setLogPath','log','更新\x20package.json\x20失败:\x20','readFileSync','parse','拉取API配置:\x20','163336dhGhux','30835008SFAjPL','√\x20配置文件已创建,可稍后使用\x20\x27lovrabet\x20config\x20set\x20appcode\x20<app-code>\x27\x20配置','description','toLocaleString','W_OK','*\x20清理失败的项目目录:\x20','writeFileSync','配置应用AppCode:\x20','启动项目:\x20','white','dirname','*\x20正在为项目\x20','\x20&&\x20lovrabet\x20start','green','string','version','1.\x20','\x20|\x20应用AppCode:\x20','name','API\x20配置拉取异常:\x20','cyan','online','error','constants','未配置','yellow','appCode','info','📁\x20项目名称:\x20','*\x20正在更新\x20package.json\x20的\x20name\x20和\x20description\x20字段','API\x20配置拉取成功:\x20','.lovrabetrc','projectCode','×\x20项目名过长,最多支持\x20100\x20个字符','×\x20项目目录\x20','trim','清理项目目录失败:\x20','更新\x20package.json\x20name\x20和\x20description\x20字段','×\x20无法在当前目录创建项目,请检查目录权限','项目创建完成:\x20','utf8','1078689FgXrXZ','!\x20API\x20配置拉取异常,项目已创建,可稍后手动执行:\x20lovrabet\x20api\x20pull','2.\x20','26044LApcDx','cwd','repeat','×\x20项目创建失败:\x20','12MiFyZI','70KOnArb','\x20√\x20','\x20已存在,请使用其他项目名','\x20创建配置文件','create','🔗\x20应用AppCode:\x20','需手动拉取','项目名称:\x20','27kxURRE','pullApi','column','existsSync','配置应用AppCode失败:\x20','join'];a40_0x524b=function(){return _0x5b4a8e;};return a40_0x524b();}import{useEffect,useState}from'react';import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';import{pullApiSilent}from'../api/pull-silent.js';import{readConfig}from'../utils/config.js';import{useCopyProjectTemplate}from'./use-copy-project-template.js';import{useInstallDependencies}from'./use-install-dependencies.js';import{useFormatCode}from'./use-format-code.js';import{TaskFinished}from'./task-finished.js';import{TaskRunning}from'./task-running.js';import{logger}from'../utils/logger.js';export function CreateApp(_0x1d97b2){const _0xfbac6c=a40_0x54a3,[_0x565baf,_0x3887b7]=useState(![]),[_0x4a0469,_0x38b77f]=useState(![]),[_0x4056c1,_0x3b6138]=useState(null),_0xaab65c=useCopyProjectTemplate(),_0x5e6f35=useInstallDependencies(),_0x2a16b9=useFormatCode(),_0x441f78=async _0x2bd15f=>{const _0x5d2cb7=a40_0x54a3;if(!_0x2bd15f['projectName']||_0x2bd15f[_0x5d2cb7(0x144)][_0x5d2cb7(0x17b)]()===''){console['error']('×\x20项目名不能为空');return;}const _0x28278e=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x28278e[_0x5d2cb7(0x145)](_0x2bd15f[_0x5d2cb7(0x144)])){console[_0x5d2cb7(0x16e)](_0x5d2cb7(0x14a));return;}if(_0x2bd15f[_0x5d2cb7(0x144)][_0x5d2cb7(0x149)]>0x64){console[_0x5d2cb7(0x16e)](_0x5d2cb7(0x179));return;}const _0x4eb246=a40_0x171467['resolve'](process[_0x5d2cb7(0x185)](),_0x2bd15f[_0x5d2cb7(0x144)]);if(a40_0x4ee4e7[_0x5d2cb7(0x194)](_0x4eb246)){console[_0x5d2cb7(0x16e)](_0x5d2cb7(0x17a)+_0x2bd15f[_0x5d2cb7(0x144)]+_0x5d2cb7(0x18b));return;}try{const _0x133453=a40_0x171467['dirname'](_0x4eb246);a40_0x4ee4e7[_0x5d2cb7(0x146)](_0x133453,a40_0x4ee4e7[_0x5d2cb7(0x16f)][_0x5d2cb7(0x15c)]);}catch(_0x21efd8){console['error'](_0x5d2cb7(0x17e));return;}_0x3b6138(_0x2bd15f),_0x3887b7(!![]),logger[_0x5d2cb7(0x151)](_0x4eb246),logger[_0x5d2cb7(0x173)]('create','开始创建项目:\x20'+_0x2bd15f[_0x5d2cb7(0x144)],{'projectDir':_0x4eb246,'appCode':_0x2bd15f[_0x5d2cb7(0x172)]});try{await _0xaab65c[_0x5d2cb7(0x13f)](_0x2bd15f[_0x5d2cb7(0x144)]),await _0x5e7111(_0x2bd15f[_0x5d2cb7(0x144)]),await _0x5e6f35['doTask'](_0x2bd15f[_0x5d2cb7(0x144)]),await _0x2a16b9[_0x5d2cb7(0x13f)](_0x2bd15f[_0x5d2cb7(0x144)]),await _0x48528d(_0x2bd15f['projectName'],_0x2bd15f[_0x5d2cb7(0x172)]||'',_0x2bd15f['env']);if(_0x2bd15f[_0x5d2cb7(0x192)]&&_0x2bd15f[_0x5d2cb7(0x172)]){console['log'](_0x5d2cb7(0x13b));try{const _0x247516=await pullApiSilent(_0x2bd15f[_0x5d2cb7(0x172)],undefined,_0x4eb246,_0x2bd15f[_0x5d2cb7(0x133)]);_0x247516?(console[_0x5d2cb7(0x152)]('√\x20API\x20配置拉取完成'),logger[_0x5d2cb7(0x173)](_0x5d2cb7(0x18d),_0x5d2cb7(0x176)+_0x2bd15f[_0x5d2cb7(0x172)],{'projectDir':_0x4eb246,'appCode':_0x2bd15f['appCode'],'env':_0x2bd15f[_0x5d2cb7(0x133)]})):(console[_0x5d2cb7(0x152)]('!\x20API\x20配置拉取失败,可稍后手动执行:\x20lovrabet\x20api\x20pull'),logger[_0x5d2cb7(0x13d)](_0x5d2cb7(0x18d),_0x5d2cb7(0x147)+_0x2bd15f['appCode'],{'projectDir':_0x4eb246,'appCode':_0x2bd15f[_0x5d2cb7(0x172)],'env':_0x2bd15f[_0x5d2cb7(0x133)]}));}catch(_0x254bc0){console[_0x5d2cb7(0x152)](_0x5d2cb7(0x182)),logger[_0x5d2cb7(0x13d)](_0x5d2cb7(0x18d),_0x5d2cb7(0x16b)+_0x2bd15f['appCode'],{'projectDir':_0x4eb246,'appCode':_0x2bd15f[_0x5d2cb7(0x172)],'env':_0x2bd15f['env'],'error':_0x254bc0 instanceof Error?_0x254bc0[_0x5d2cb7(0x13a)]:String(_0x254bc0)});}}logger[_0x5d2cb7(0x13c)]('create',_0x5d2cb7(0x17f)+_0x2bd15f[_0x5d2cb7(0x144)]),_0x38b77f(!![]),_0x3887b7(![]);}catch(_0x1e0d06){logger[_0x5d2cb7(0x16e)](_0x5d2cb7(0x18d),_0x5d2cb7(0x14b)+_0x2bd15f[_0x5d2cb7(0x144)],{'error':_0x1e0d06 instanceof Error?_0x1e0d06[_0x5d2cb7(0x13a)]:String(_0x1e0d06)});try{a40_0x4ee4e7['existsSync'](_0x4eb246)&&(console['log'](_0x5d2cb7(0x15d)+_0x4eb246),a40_0x4ee4e7[_0x5d2cb7(0x142)](_0x4eb246,{'recursive':!![],'force':!![]}));}catch(_0x40d09e){logger[_0x5d2cb7(0x13d)]('create',_0x5d2cb7(0x17c)+_0x4eb246,{'error':_0x40d09e instanceof Error?_0x40d09e[_0x5d2cb7(0x13a)]:String(_0x40d09e)});}_0x3887b7(![]),console[_0x5d2cb7(0x16e)](_0x5d2cb7(0x187)+(_0x1e0d06 instanceof Error?_0x1e0d06[_0x5d2cb7(0x13a)]:String(_0x1e0d06)));}},_0x4fea42=async _0x11b7e9=>{const _0x4c16e4=a40_0x54a3;await _0x441f78({'projectName':_0x11b7e9,'env':_0x1d97b2[_0x4c16e4(0x133)]});},_0x5e7111=async _0x288cd4=>{const _0x3c85a1=a40_0x54a3,_0x5d2981=a40_0x171467[_0x3c85a1(0x139)](process[_0x3c85a1(0x185)](),_0x288cd4),_0x3bd69a=a40_0x171467['join'](_0x5d2981,'package.json');try{console[_0x3c85a1(0x152)](_0x3c85a1(0x175));const _0x487f8c=fileURLToPath(import.meta['url']),_0x5a1714=a40_0x171467[_0x3c85a1(0x139)](a40_0x171467[_0x3c85a1(0x162)](_0x487f8c),_0x3c85a1(0x14f)),_0x20fece=a40_0x171467[_0x3c85a1(0x131)](_0x5a1714,'package.json');let _0x1ff976='1.0.0';try{const _0x1f90e5=JSON['parse'](a40_0x4ee4e7[_0x3c85a1(0x154)](_0x20fece,'utf8'));_0x1ff976=_0x1f90e5[_0x3c85a1(0x167)]||'1.0.0';}catch(_0xac2413){}const _0x4379c8=a40_0x4ee4e7[_0x3c85a1(0x154)](_0x3bd69a,'utf8'),_0x4a389c=JSON['parse'](_0x4379c8);_0x4a389c[_0x3c85a1(0x16a)]=_0x288cd4,_0x4a389c[_0x3c85a1(0x15a)]=_0x288cd4+_0x3c85a1(0x136)+_0x1ff976,a40_0x4ee4e7['writeFileSync'](_0x3bd69a,JSON['stringify'](_0x4a389c,null,0x2)+'\x0a',_0x3c85a1(0x180)),console[_0x3c85a1(0x152)](_0x3c85a1(0x138)+_0x288cd4+',\x20description='+_0x4a389c[_0x3c85a1(0x15a)]),logger[_0x3c85a1(0x173)](_0x3c85a1(0x18d),_0x3c85a1(0x17d),{'projectName':_0x288cd4,'description':_0x4a389c['description'],'cliVersion':_0x1ff976,'packageJsonPath':_0x3c85a1(0x143)});}catch(_0x4d9a41){logger[_0x3c85a1(0x16e)](_0x3c85a1(0x18d),_0x3c85a1(0x153)+_0x288cd4,{'projectName':_0x288cd4,'error':_0x4d9a41 instanceof Error?_0x4d9a41[_0x3c85a1(0x13a)]:String(_0x4d9a41)});throw _0x4d9a41;}},_0x48528d=async(_0x307bdf,_0x32ff54,_0x544014)=>{const _0x3ac47e=a40_0x54a3,_0x8b13fd=a40_0x171467[_0x3ac47e(0x139)](process['cwd'](),_0x307bdf),_0x190846=a40_0x171467[_0x3ac47e(0x131)](_0x8b13fd,_0x3ac47e(0x177));try{_0x32ff54?console[_0x3ac47e(0x152)](_0x3ac47e(0x163)+_0x307bdf+'\x20配置应用AppCode:\x20'+_0x32ff54):console['log'](_0x3ac47e(0x163)+_0x307bdf+_0x3ac47e(0x18c));console[_0x3ac47e(0x152)]('*\x20配置文件路径:\x20'+_0x190846);const _0x53021b=fileURLToPath(import.meta[_0x3ac47e(0x14c)]),_0x32c9fb=a40_0x171467['resolve'](a40_0x171467[_0x3ac47e(0x162)](_0x53021b),'../..'),_0x4fab5d=a40_0x171467[_0x3ac47e(0x131)](_0x32c9fb,'package.json');let _0x350135=_0x3ac47e(0x132);try{const _0x34db4b=JSON[_0x3ac47e(0x155)](a40_0x4ee4e7[_0x3ac47e(0x154)](_0x4fab5d,_0x3ac47e(0x180)));_0x350135=_0x34db4b[_0x3ac47e(0x167)]||_0x3ac47e(0x132);}catch(_0xebd454){}const _0x24d0cf=readConfig(),_0xef94f9=typeof _0x24d0cf[_0x3ac47e(0x133)]===_0x3ac47e(0x166)?_0x24d0cf['env']:undefined,{app:_0x2abe5f,appcode:_0x24219a,..._0x5d1f00}=_0x24d0cf,_0x6a0f37={..._0x5d1f00,'appcode':_0x32ff54||'','env':_0x544014||_0xef94f9||_0x3ac47e(0x16d),'createdAt':new Date()[_0x3ac47e(0x15b)](),'version':_0x350135};a40_0x4ee4e7[_0x3ac47e(0x15e)](_0x190846,JSON['stringify'](_0x6a0f37,null,0x2),_0x3ac47e(0x180)),_0x32ff54?console['log']('√\x20配置文件已创建,应用AppCode:\x20'+_0x32ff54):console[_0x3ac47e(0x152)](_0x3ac47e(0x159)),logger[_0x3ac47e(0x173)](_0x3ac47e(0x18d),_0x3ac47e(0x15f)+_0x32ff54,{'projectName':_0x307bdf,'configFile':_0x3ac47e(0x177)});}catch(_0x4a56ba){logger[_0x3ac47e(0x16e)]('create',_0x3ac47e(0x195)+_0x32ff54,{'projectName':_0x307bdf,'error':_0x4a56ba instanceof Error?_0x4a56ba['message']:String(_0x4a56ba)});}};useEffect(()=>{const _0x189c84=a40_0x54a3;_0x1d97b2[_0x189c84(0x178)]&&_0x4fea42(_0x1d97b2[_0x189c84(0x178)]);},[_0x1d97b2[_0xfbac6c(0x178)]]);if(!_0x565baf&&!_0x4a0469&&!_0x1d97b2[_0xfbac6c(0x178)])return a40_0x145927(EnhancedGuidedCreate,{'onCreate':_0x441f78,'env':_0x1d97b2[_0xfbac6c(0x133)]});if(_0x565baf)return a40_0x4ff03b(a40_0x5d06ee,{'children':[a40_0x4ff03b(Box,{'marginTop':0x1,'children':[a40_0x145927(Box,{'width':'1'}),a40_0x145927(Text,{'color':'green','children':_0xfbac6c(0x18a)}),a40_0x145927(Text,{'children':'项目名称:\x20'}),a40_0x145927(Text,{'color':_0xfbac6c(0x165),'children':_0x4056c1?.[_0xfbac6c(0x144)]}),_0x4056c1?.[_0xfbac6c(0x172)]&&a40_0x4ff03b(a40_0x5d06ee,{'children':[a40_0x145927(Text,{'children':_0xfbac6c(0x169)}),a40_0x145927(Text,{'color':'cyan','children':_0x4056c1[_0xfbac6c(0x172)]})]})]}),a40_0x145927(TaskRunning,{..._0xaab65c}),a40_0x145927(TaskRunning,{..._0x5e6f35}),a40_0x145927(TaskRunning,{..._0x2a16b9})]});if(_0x4a0469)return a40_0x4ff03b(a40_0x5d06ee,{'children':[a40_0x4ff03b(Box,{'marginTop':0x1,'children':[a40_0x145927(Box,{'width':'1'}),a40_0x145927(Text,{'color':_0xfbac6c(0x165),'children':_0xfbac6c(0x18a)}),a40_0x145927(Text,{'children':_0xfbac6c(0x190)}),a40_0x145927(Text,{'color':'green','children':_0x4056c1?.[_0xfbac6c(0x144)]}),_0x4056c1?.[_0xfbac6c(0x172)]&&a40_0x4ff03b(a40_0x5d06ee,{'children':[a40_0x145927(Text,{'children':'\x20|\x20应用AppCode:\x20'}),a40_0x145927(Text,{'color':'cyan','children':_0x4056c1[_0xfbac6c(0x172)]})]})]}),a40_0x145927(TaskFinished,{..._0xaab65c}),a40_0x145927(TaskFinished,{..._0x5e6f35}),a40_0x145927(TaskFinished,{..._0x2a16b9}),a40_0x145927(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a40_0x145927(Text,{'color':_0xfbac6c(0x165),'children':'─'[_0xfbac6c(0x186)](0x3c)})}),a40_0x145927(Box,{'children':a40_0x145927(Text,{'color':'green','bold':!![],'children':_0xfbac6c(0x141)})}),a40_0x4ff03b(Box,{'marginTop':0x1,'flexDirection':_0xfbac6c(0x193),'children':[a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'children':_0xfbac6c(0x174)}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'bold':!![],'children':_0x4056c1?.[_0xfbac6c(0x144)]})]}),_0x4056c1?.[_0xfbac6c(0x172)]&&a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'children':_0xfbac6c(0x18e)}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'bold':!![],'children':_0x4056c1['appCode']})]}),a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'children':'📦\x20API配置:\x20'}),_0x4056c1?.['pullApi']?a40_0x145927(Text,{'color':_0xfbac6c(0x165),'bold':!![],'children':_0xfbac6c(0x14d)}):_0x4056c1?.[_0xfbac6c(0x172)]?a40_0x145927(Text,{'color':_0xfbac6c(0x171),'bold':!![],'children':_0xfbac6c(0x18f)}):a40_0x145927(Text,{'color':_0xfbac6c(0x135),'bold':!![],'children':_0xfbac6c(0x170)})]})]}),a40_0x145927(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'bold':!![],'children':_0xfbac6c(0x150)})}),a40_0x4ff03b(Box,{'marginLeft':0x2,'flexDirection':_0xfbac6c(0x193),'children':[a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':'green','children':_0xfbac6c(0x168)}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'children':_0xfbac6c(0x160)}),a40_0x145927(Text,{'color':'cyan','bold':!![],'children':'cd\x20'+_0x4056c1?.[_0xfbac6c(0x144)]+_0xfbac6c(0x164)})]}),_0x4056c1?.[_0xfbac6c(0x172)]&&!_0x4056c1?.[_0xfbac6c(0x192)]&&a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':'yellow','children':_0xfbac6c(0x183)}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'children':'拉取API配置:\x20'}),a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'bold':!![],'children':'lovrabet\x20api\x20pull'})]}),!_0x4056c1?.[_0xfbac6c(0x172)]&&a40_0x4ff03b(a40_0x5d06ee,{'children':[a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':_0xfbac6c(0x135),'children':_0xfbac6c(0x183)}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'children':'配置AppCode:\x20'}),a40_0x145927(Text,{'color':_0xfbac6c(0x16c),'bold':!![],'children':'lovrabet\x20config\x20set\x20appcode\x20[app-code]'})]}),a40_0x4ff03b(Box,{'children':[a40_0x145927(Text,{'color':_0xfbac6c(0x135),'children':'3.\x20'}),a40_0x145927(Text,{'color':_0xfbac6c(0x161),'children':_0xfbac6c(0x156)}),a40_0x145927(Text,{'color':'cyan','bold':!![],'children':_0xfbac6c(0x134)})]})]})]}),a40_0x145927(Box,{'marginTop':0x1,'children':a40_0x145927(Text,{'color':'green','children':'─'[_0xfbac6c(0x186)](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 a41_0x378e(){var _0x459e45=['4771568dFFCru','63620fHiJHj','63tlGBlN','7379645cXuDrC','4701927cjTEkM','84PhiNNM','elapsed','491368MpXlaY','39874abaLRU','22BNOcyE','\x20√\x20','660rEXIxP','33306TCYDof'];a41_0x378e=function(){return _0x459e45;};return a41_0x378e();}(function(_0x52eba4,_0x327173){var _0xfbf33=a41_0x4f89,_0x14ee37=_0x52eba4();while(!![]){try{var _0x36df20=parseInt(_0xfbf33(0x67))/0x1*(parseInt(_0xfbf33(0x73))/0x2)+-parseInt(_0xfbf33(0x6f))/0x3+parseInt(_0xfbf33(0x6b))/0x4+parseInt(_0xfbf33(0x6e))/0x5+parseInt(_0xfbf33(0x6a))/0x6*(parseInt(_0xfbf33(0x70))/0x7)+parseInt(_0xfbf33(0x72))/0x8*(-parseInt(_0xfbf33(0x6d))/0x9)+parseInt(_0xfbf33(0x6c))/0xa*(-parseInt(_0xfbf33(0x69))/0xb);if(_0x36df20===_0x327173)break;else _0x14ee37['push'](_0x14ee37['shift']());}catch(_0x779ea0){_0x14ee37['push'](_0x14ee37['shift']());}}}(a41_0x378e,0xc21bf));import{jsx as a41_0x2d3536,jsxs as a41_0x19318a}from'react/jsx-runtime';import{Box,Text}from'ink';function a41_0x4f89(_0x434ea0,_0x390f5e){var _0x378e16=a41_0x378e();return a41_0x4f89=function(_0x4f89ba,_0x1ab42e){_0x4f89ba=_0x4f89ba-0x67;var _0x478e80=_0x378e16[_0x4f89ba];return _0x478e80;},a41_0x4f89(_0x434ea0,_0x390f5e);}import{TaskTime}from'./task-time.js';export function TaskFinished(_0x49cc03){var _0x5b8dc5=a41_0x4f89;return a41_0x19318a(Box,{'children':[a41_0x2d3536(Box,{'width':'1'}),a41_0x2d3536(Text,{'color':'green','children':_0x5b8dc5(0x68)}),a41_0x2d3536(Text,{'children':_0x49cc03['taskName']}),a41_0x2d3536(TaskTime,{'elapsed':_0x49cc03[_0x5b8dc5(0x71)]})]});}
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(_0x47b4d8,_0x20de70){var _0x5e7990=a42_0x5efe,_0x51d3cd=_0x47b4d8();while(!![]){try{var _0x22b493=-parseInt(_0x5e7990(0x1bb))/0x1*(parseInt(_0x5e7990(0x1af))/0x2)+parseInt(_0x5e7990(0x1b7))/0x3*(parseInt(_0x5e7990(0x1b2))/0x4)+-parseInt(_0x5e7990(0x1ae))/0x5+parseInt(_0x5e7990(0x1b8))/0x6*(parseInt(_0x5e7990(0x1b1))/0x7)+parseInt(_0x5e7990(0x1b4))/0x8+parseInt(_0x5e7990(0x1b9))/0x9+parseInt(_0x5e7990(0x1ba))/0xa*(-parseInt(_0x5e7990(0x1b6))/0xb);if(_0x22b493===_0x20de70)break;else _0x51d3cd['push'](_0x51d3cd['shift']());}catch(_0x17742a){_0x51d3cd['push'](_0x51d3cd['shift']());}}}(a42_0x93aa,0xd0290));function a42_0x93aa(){var _0x4c5204=['48llKzoi','11307834lltDCx','10AaPkTf','1457upPKiH','loading','\x20\x20\x20','7091460nHmVzC','1774VeNpBv','\x20√\x20','961926sdzHjF','8rWDOaS','finished','10809072WzRFIb','dots','8427837DiFwNo','933807ymwfWK'];a42_0x93aa=function(){return _0x4c5204;};return a42_0x93aa();}function a42_0x5efe(_0x25d065,_0x341a9c){var _0x93aa70=a42_0x93aa();return a42_0x5efe=function(_0x5efec6,_0x311ef9){_0x5efec6=_0x5efec6-0x1ac;var _0x17304f=_0x93aa70[_0x5efec6];return _0x17304f;},a42_0x5efe(_0x25d065,_0x341a9c);}import{jsx as a42_0xf98c74,jsxs as a42_0x314a25}from'react/jsx-runtime';import{Text}from'ink';import a42_0x572084 from'ink-spinner';export function TaskLoading(_0x1131a4){var _0x550396=a42_0x5efe;if(_0x1131a4[_0x550396(0x1b3)])return a42_0xf98c74(Text,{'color':'green','children':_0x550396(0x1b0)});if(_0x1131a4[_0x550396(0x1ac)])return a42_0x314a25(Text,{'color':'green','children':['\x20',a42_0xf98c74(a42_0x572084,{'type':_0x550396(0x1b5)}),'\x20']});return a42_0xf98c74(Text,{'children':_0x550396(0x1ad)});}
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(_0x3a4ca4,_0x28ac0e){var _0x2e2475=a43_0x5cad,_0x35aaf6=_0x3a4ca4();while(!![]){try{var _0x4ddfc5=-parseInt(_0x2e2475(0x1c0))/0x1*(-parseInt(_0x2e2475(0x1c9))/0x2)+parseInt(_0x2e2475(0x1c8))/0x3+parseInt(_0x2e2475(0x1c7))/0x4+-parseInt(_0x2e2475(0x1c1))/0x5+-parseInt(_0x2e2475(0x1c5))/0x6*(parseInt(_0x2e2475(0x1c3))/0x7)+-parseInt(_0x2e2475(0x1bf))/0x8+parseInt(_0x2e2475(0x1c2))/0x9*(parseInt(_0x2e2475(0x1c6))/0xa);if(_0x4ddfc5===_0x28ac0e)break;else _0x35aaf6['push'](_0x35aaf6['shift']());}catch(_0xa613e4){_0x35aaf6['push'](_0x35aaf6['shift']());}}}(a43_0x5c07,0xa7fd9));import{jsx as a43_0x4bd517,jsxs as a43_0x14fa6c}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x3a9f5b){var _0x3a3852=a43_0x5cad;return a43_0x14fa6c(Box,{'children':[a43_0x4bd517(Box,{'width':'1'}),a43_0x4bd517(TaskLoading,{..._0x3a9f5b}),a43_0x4bd517(Text,{'children':_0x3a9f5b['taskName']}),a43_0x4bd517(TaskTime,{'elapsed':_0x3a9f5b[_0x3a3852(0x1c4)]})]});}function a43_0x5cad(_0x500515,_0x18d4ec){var _0x5c070d=a43_0x5c07();return a43_0x5cad=function(_0x5cad50,_0x1a4735){_0x5cad50=_0x5cad50-0x1bf;var _0x3f6e51=_0x5c070d[_0x5cad50];return _0x3f6e51;},a43_0x5cad(_0x500515,_0x18d4ec);}function a43_0x5c07(){var _0x250663=['116478jISSil','847zRzPJf','elapsed','9222sXYLgE','340EzsUEU','564384yPCPBr','1969080JYmZyr','26010HVIHiV','9539376BbqDZn','66ixeEvI','146630EmVGcY'];a43_0x5c07=function(){return _0x250663;};return a43_0x5c07();}
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 a44_0x28d7(){var _0x564c86=['188PiweWC','elapsed','22751597vnemwn','48nlikwt','611578waiSfA','gray','1785889aOTHjk','5830830djqXID','4489191CIWHUO','2urjCBU','4585935JNsfSz','103245hHOZRD','10ebnwcW'];a44_0x28d7=function(){return _0x564c86;};return a44_0x28d7();}(function(_0xea0bcb,_0x19c134){var _0x45a256=a44_0x2a9e,_0x49ff86=_0xea0bcb();while(!![]){try{var _0x14d420=-parseInt(_0x45a256(0x85))/0x1+-parseInt(_0x45a256(0x7d))/0x2*(parseInt(_0x45a256(0x7e))/0x3)+-parseInt(_0x45a256(0x81))/0x4*(-parseInt(_0x45a256(0x7f))/0x5)+-parseInt(_0x45a256(0x7b))/0x6+parseInt(_0x45a256(0x7a))/0x7*(parseInt(_0x45a256(0x84))/0x8)+-parseInt(_0x45a256(0x7c))/0x9*(parseInt(_0x45a256(0x80))/0xa)+parseInt(_0x45a256(0x83))/0xb;if(_0x14d420===_0x19c134)break;else _0x49ff86['push'](_0x49ff86['shift']());}catch(_0x4c21a1){_0x49ff86['push'](_0x49ff86['shift']());}}}(a44_0x28d7,0xea12d));import{jsx as a44_0x39084c,Fragment as a44_0x5749c0,jsxs as a44_0x472fcd}from'react/jsx-runtime';function a44_0x2a9e(_0x1a023e,_0x3a1cdb){var _0x28d779=a44_0x28d7();return a44_0x2a9e=function(_0x2a9edc,_0x17393d){_0x2a9edc=_0x2a9edc-0x7a;var _0x1af5b2=_0x28d779[_0x2a9edc];return _0x1af5b2;},a44_0x2a9e(_0x1a023e,_0x3a1cdb);}import{Text}from'ink';export function TaskTime(_0x2b3b52){var _0x2ff877=a44_0x2a9e;if(_0x2b3b52[_0x2ff877(0x82)])return a44_0x472fcd(a44_0x5749c0,{'children':[a44_0x39084c(Text,{'color':_0x2ff877(0x86),'children':'\x20['}),a44_0x39084c(Text,{'color':_0x2ff877(0x86),'bold':!![],'children':_0x2b3b52[_0x2ff877(0x82)]}),a44_0x39084c(Text,{'color':_0x2ff877(0x86),'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_0x367e84=a45_0x26d2;(function(_0x597ee3,_0x161c47){const _0x425fa3=a45_0x26d2,_0x243a4d=_0x597ee3();while(!![]){try{const _0x1b272b=-parseInt(_0x425fa3(0xac))/0x1+parseInt(_0x425fa3(0x9c))/0x2+parseInt(_0x425fa3(0x9d))/0x3+parseInt(_0x425fa3(0x99))/0x4+parseInt(_0x425fa3(0xa4))/0x5+parseInt(_0x425fa3(0xa0))/0x6+-parseInt(_0x425fa3(0xa2))/0x7*(parseInt(_0x425fa3(0xa5))/0x8);if(_0x1b272b===_0x161c47)break;else _0x243a4d['push'](_0x243a4d['shift']());}catch(_0x5212b6){_0x243a4d['push'](_0x243a4d['shift']());}}}(a45_0x51ae,0x6c085));function a45_0x51ae(){const _0x18e615=['8xDhUYG','copy','info','项目模板复制完成','项目模板复制失败','success','../../templates/projects/sub-app-react-demo','381774IwGkpC','dirname','1052484WNwJDf','复制项目文件','now','530208GAhGVt','1310967tWJsHS','开始复制项目模板','cwd','2564778PntRTm','resolve','9953678OAcdae','message','4267760UgEOIQ'];a45_0x51ae=function(){return _0x18e615;};return a45_0x51ae();}import a45_0x5ab8e6 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_0x26d2(_0x2fc7f4,_0x4b9a7f){const _0x51ae2d=a45_0x51ae();return a45_0x26d2=function(_0x26d20b,_0x167e1b){_0x26d20b=_0x26d20b-0x98;let _0x1bec98=_0x51ae2d[_0x26d20b];return _0x1bec98;},a45_0x26d2(_0x2fc7f4,_0x4b9a7f);}const __dirname=a45_0x5ab8e6[a45_0x367e84(0x98)](fileURLToPath(import.meta['url'])),templateDir=a45_0x5ab8e6[a45_0x367e84(0xa1)](__dirname,a45_0x367e84(0xab));export function useCopyProjectTemplate(){const _0x1ca885=a45_0x367e84,[_0x4869d9,_0x26057f]=useState(![]),[_0x29851d,_0x52f7c5]=useState(![]),[_0x2b633d,_0x272e3d]=useState(''),_0x5826d7=useCallback(async _0x53640b=>{const _0x1e44ed=a45_0x26d2,_0x1a6fe8=Date[_0x1e44ed(0x9b)](),_0x3d6970=a45_0x5ab8e6[_0x1e44ed(0xa1)](process[_0x1e44ed(0x9f)](),_0x53640b);_0x26057f(!![]);try{logger[_0x1e44ed(0xa7)]('copy',_0x1e44ed(0x9e),{'projectCode':_0x53640b,'templateDir':templateDir}),await copyDirectory(templateDir,_0x3d6970);const _0x490d48=Date[_0x1e44ed(0x9b)]()-_0x1a6fe8;logger[_0x1e44ed(0xaa)](_0x1e44ed(0xa6),_0x1e44ed(0xa8),_0x490d48,{'projectCode':_0x53640b});}catch(_0x3d1c95){const _0x169eb1=Date[_0x1e44ed(0x9b)]()-_0x1a6fe8;logger['error'](_0x1e44ed(0xa6),_0x1e44ed(0xa9),{'projectCode':_0x53640b,'error':_0x3d1c95 instanceof Error?_0x3d1c95[_0x1e44ed(0xa3)]:String(_0x3d1c95),'duration':_0x169eb1});throw _0x3d1c95;}finally{_0x26057f(![]),_0x52f7c5(!![]),_0x272e3d(formatElapsed(_0x1a6fe8));}},[]);return{'taskName':_0x1ca885(0x9a),'finished':_0x29851d,'loading':_0x4869d9,'elapsed':_0x2b633d,'doTask':_0x5826d7};}
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(_0x226d2e,_0x5dd906){const _0x4ba3bf=a46_0x1c8d,_0x536d7e=_0x226d2e();while(!![]){try{const _0x8d2fb8=-parseInt(_0x4ba3bf(0x174))/0x1+-parseInt(_0x4ba3bf(0x16b))/0x2+-parseInt(_0x4ba3bf(0x177))/0x3*(-parseInt(_0x4ba3bf(0x16f))/0x4)+parseInt(_0x4ba3bf(0x178))/0x5+parseInt(_0x4ba3bf(0x170))/0x6*(-parseInt(_0x4ba3bf(0x16a))/0x7)+-parseInt(_0x4ba3bf(0x173))/0x8*(parseInt(_0x4ba3bf(0x169))/0x9)+parseInt(_0x4ba3bf(0x171))/0xa;if(_0x8d2fb8===_0x5dd906)break;else _0x536d7e['push'](_0x536d7e['shift']());}catch(_0x3d6051){_0x536d7e['push'](_0x536d7e['shift']());}}}(a46_0x31a8,0xb0be3));import a46_0x553ba5 from'node:path';function a46_0x1c8d(_0x2f119d,_0x1c4cb1){const _0x31a8de=a46_0x31a8();return a46_0x1c8d=function(_0x1c8d46,_0x4a98ac){_0x1c8d46=_0x1c8d46-0x163;let _0x2136b0=_0x31a8de[_0x1c8d46];return _0x2136b0;},a46_0x1c8d(_0x2f119d,_0x1c4cb1);}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 _0x47a6bb=a46_0x1c8d,[_0x1a2138,_0x381b84]=useState(![]),[_0x45d6f3,_0x50b813]=useState(![]),[_0x1f0d6b,_0x1be79b]=useState(''),_0x130d99=useCallback(async _0x105e8f=>{const _0x306f90=a46_0x1c8d,_0x34a219=Date[_0x306f90(0x172)](),_0x5a7f4f=a46_0x553ba5[_0x306f90(0x164)](process[_0x306f90(0x165)](),_0x105e8f);_0x381b84(!![]);try{logger[_0x306f90(0x17a)](_0x306f90(0x16c),_0x306f90(0x167),{'projectCode':_0x105e8f}),await execa(_0x306f90(0x179),[_0x306f90(0x166),_0x306f90(0x163),'.'],{'cwd':_0x5a7f4f});const _0x2952de=Date[_0x306f90(0x172)]()-_0x34a219;logger['success'](_0x306f90(0x16c),_0x306f90(0x175),_0x2952de,{'projectCode':_0x105e8f});}catch(_0x1bac92){const _0x2bf217=Date[_0x306f90(0x172)]()-_0x34a219;logger[_0x306f90(0x16e)](_0x306f90(0x16c),_0x306f90(0x16d),{'projectCode':_0x105e8f,'error':_0x1bac92 instanceof Error?_0x1bac92[_0x306f90(0x176)]:String(_0x1bac92),'duration':_0x2bf217});throw _0x1bac92;}finally{_0x381b84(![]),_0x50b813(!![]),_0x1be79b(formatElapsed(_0x34a219));}},[]);return{'taskName':_0x47a6bb(0x168),'finished':_0x45d6f3,'loading':_0x1a2138,'elapsed':_0x1f0d6b,'doTask':_0x130d99};}function a46_0x31a8(){const _0x18430d=['4978135mqVDEa','npx','info','--write','resolve','cwd','prettier','开始格式化代码','格式化代码','13320kYKlBJ','5711363uBpUxE','2014102JkEiag','format','代码格式化失败','error','40icdAwo','6vasxOI','20852810XwtYJH','now','2920RVYlDx','1440099AMJXkH','代码格式化完成','message','433887CGGYQK'];a46_0x31a8=function(){return _0x18430d;};return a46_0x31a8();}
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(_0x28ebb6,_0x196cc7){const _0x524377=a47_0x3dce,_0x1b5cb1=_0x28ebb6();while(!![]){try{const _0xae0cd4=-parseInt(_0x524377(0x130))/0x1+-parseInt(_0x524377(0x12d))/0x2*(parseInt(_0x524377(0x128))/0x3)+-parseInt(_0x524377(0x12a))/0x4+parseInt(_0x524377(0x126))/0x5*(parseInt(_0x524377(0x129))/0x6)+parseInt(_0x524377(0x121))/0x7*(parseInt(_0x524377(0x131))/0x8)+-parseInt(_0x524377(0x12e))/0x9+parseInt(_0x524377(0x124))/0xa;if(_0xae0cd4===_0x196cc7)break;else _0x1b5cb1['push'](_0x1b5cb1['shift']());}catch(_0x1f4e4c){_0x1b5cb1['push'](_0x1b5cb1['shift']());}}}(a47_0x1632,0x99cdc));import a47_0x1c6405 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';function a47_0x3dce(_0x5b6f02,_0x372c73){const _0x163239=a47_0x1632();return a47_0x3dce=function(_0x3dce2c,_0x4fe8a6){_0x3dce2c=_0x3dce2c-0x11c;let _0x164a70=_0x163239[_0x3dce2c];return _0x164a70;},a47_0x3dce(_0x5b6f02,_0x372c73);}import{formatElapsed}from'./format-elapsed.js';function a47_0x1632(){const _0x41eada=['10jKcqBr','message','1668003yUeOHs','3251154ILJvGf','2418788aLfSRz','npm','安装依赖','4xJIZwJ','4000338OgeQhi','install','1073084jQOgDn','48jruuMT','now','开始安装依赖','cwd','依赖安装完成','resolve','1403304hgiDIq','依赖安装失败','https://registry.npmmirror.com','15776950qHTlYW','info'];a47_0x1632=function(){return _0x41eada;};return a47_0x1632();}import{logger}from'../utils/logger.js';export function useInstallDependencies(){const _0x5e17df=a47_0x3dce,[_0x35fa19,_0x49c312]=useState(![]),[_0x279e7c,_0x5cd0d3]=useState(![]),[_0x3815b8,_0x4a2734]=useState(''),_0x195b11=useCallback(async _0x57489e=>{const _0x394fbb=a47_0x3dce,_0x48d36e=Date['now'](),_0xe65ff0=a47_0x1c6405[_0x394fbb(0x120)](process[_0x394fbb(0x11e)](),_0x57489e);_0x49c312(!![]),_0x5cd0d3(![]);const _0x131687=async(_0x121be3,_0x1df91f)=>{await execa(_0x121be3,_0x1df91f,{'cwd':_0xe65ff0});};try{logger[_0x394fbb(0x125)]('install',_0x394fbb(0x11d),{'projectCode':_0x57489e,'registry':'https://registry.npmmirror.com'}),await _0x131687(_0x394fbb(0x12b),[_0x394fbb(0x12f),'--registry',_0x394fbb(0x123)]);const _0x2bd5e5=Date[_0x394fbb(0x11c)]()-_0x48d36e;logger['success']('install',_0x394fbb(0x11f),_0x2bd5e5,{'projectCode':_0x57489e});}catch(_0x487ef8){const _0x2f2257=Date[_0x394fbb(0x11c)]()-_0x48d36e;logger['error'](_0x394fbb(0x12f),_0x394fbb(0x122),{'projectCode':_0x57489e,'error':_0x487ef8 instanceof Error?_0x487ef8[_0x394fbb(0x127)]:String(_0x487ef8),'duration':_0x2f2257});throw _0x487ef8;}finally{_0x49c312(![]),_0x5cd0d3(!![]),_0x4a2734(formatElapsed(_0x48d36e));}},[]);return{'taskName':_0x5e17df(0x12c),'finished':_0x279e7c,'loading':_0x35fa19,'elapsed':_0x3815b8,'doTask':_0x195b11};}
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 a48_0x4032(){var _0x3cb8ba=['!\x20请指定一个有效的命令。','12050048CVnfqL','3442820heWXEM','column','2732136XEIffn','310LCAEas','13800zPqezr','918368GZDaqM','285081AppPCf','lovrabet\x20--help','green','6827394PiLKfh'];a48_0x4032=function(){return _0x3cb8ba;};return a48_0x4032();}(function(_0x39f138,_0x15743c){var _0x51fd8f=a48_0x15d0,_0x33bfa0=_0x39f138();while(!![]){try{var _0x3c4b42=parseInt(_0x51fd8f(0x137))/0x1+-parseInt(_0x51fd8f(0x136))/0x2+parseInt(_0x51fd8f(0x133))/0x3+-parseInt(_0x51fd8f(0x131))/0x4+-parseInt(_0x51fd8f(0x134))/0x5*(-parseInt(_0x51fd8f(0x135))/0x6)+-parseInt(_0x51fd8f(0x13a))/0x7+parseInt(_0x51fd8f(0x130))/0x8;if(_0x3c4b42===_0x15743c)break;else _0x33bfa0['push'](_0x33bfa0['shift']());}catch(_0x16cf01){_0x33bfa0['push'](_0x33bfa0['shift']());}}}(a48_0x4032,0x8622a));function a48_0x15d0(_0x3b3dde,_0x331feb){var _0x403231=a48_0x4032();return a48_0x15d0=function(_0x15d04b,_0x5127c8){_0x15d04b=_0x15d04b-0x130;var _0x4859e6=_0x403231[_0x15d04b];return _0x4859e6;},a48_0x15d0(_0x3b3dde,_0x331feb);}import{jsx as a48_0x33de45,jsxs as a48_0xd57e78}from'react/jsx-runtime';import{Box,Text}from'ink';export function Help(){var _0x21b4fd=a48_0x15d0;return a48_0xd57e78(Box,{'flexDirection':_0x21b4fd(0x132),'marginTop':0x1,'marginBottom':0x1,'children':[a48_0xd57e78(Box,{'children':[a48_0x33de45(Box,{'width':'1'}),a48_0x33de45(Text,{'children':_0x21b4fd(0x13b)})]}),a48_0xd57e78(Box,{'marginTop':0x1,'children':[a48_0x33de45(Box,{'width':'1'}),a48_0xd57e78(Text,{'children':['\x20\x20','使用']}),a48_0xd57e78(Text,{'bold':!![],'color':_0x21b4fd(0x139),'children':['\x20',_0x21b4fd(0x138),'\x20']}),a48_0x33de45(Text,{'children':'查看可用命令。'})]})]});}
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();}