@lovrabet/cli 1.3.2-beta.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/add-page/input-page-router.js +1 -1
  2. package/lib/add-page/main.js +1 -1
  3. package/lib/add-page/select-page-template.js +1 -1
  4. package/lib/ai-setup/AISetupUI.js +1 -1
  5. package/lib/ai-setup/config.js +1 -1
  6. package/lib/api/api-doc-ui.js +1 -1
  7. package/lib/api/api-doc.js +1 -1
  8. package/lib/api/api-pull-ui.js +1 -1
  9. package/lib/api/fetch-model-list.js +1 -1
  10. package/lib/api/generate-api-file.js +1 -1
  11. package/lib/api/main.js +1 -1
  12. package/lib/api/pull-silent.js +1 -1
  13. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  14. package/lib/app-menu/create-menu.js +1 -1
  15. package/lib/app-menu/get-local-pages.js +1 -1
  16. package/lib/app-menu/get-online-menu-list.js +1 -1
  17. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  18. package/lib/app-menu/utils.js +1 -1
  19. package/lib/app-menu/valid-url.js +1 -1
  20. package/lib/app-menu-update-cdn/current-content.js +1 -1
  21. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  22. package/lib/app-menu-update-cdn/main.js +1 -1
  23. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  24. package/lib/auth/auth-server-ui.js +1 -1
  25. package/lib/auth/auth-server.js +1 -1
  26. package/lib/auth/constant.js +1 -1
  27. package/lib/auth/get-cookie.js +1 -1
  28. package/lib/auth/is-session-valid.js +1 -1
  29. package/lib/auth/logout.js +1 -1
  30. package/lib/cli-flags.js +1 -1
  31. package/lib/cli.js +1 -1
  32. package/lib/cmd/build-watch.js +1 -1
  33. package/lib/cmd/build.js +1 -1
  34. package/lib/cmd/logs.js +1 -1
  35. package/lib/cmd/preview.js +1 -1
  36. package/lib/cmd/start.js +1 -1
  37. package/lib/config/config-help.js +1 -1
  38. package/lib/config/main.js +1 -1
  39. package/lib/constant/domain.js +1 -1
  40. package/lib/constant/env.js +1 -1
  41. package/lib/create-app/enhanced-guided-create.js +1 -1
  42. package/lib/create-app/format-elapsed.js +1 -1
  43. package/lib/create-app/main.js +1 -1
  44. package/lib/create-app/non-interactive.js +1 -1
  45. package/lib/create-app/task-finished.js +1 -1
  46. package/lib/create-app/task-loading.js +1 -1
  47. package/lib/create-app/task-running.js +1 -1
  48. package/lib/create-app/task-time.js +1 -1
  49. package/lib/create-app/use-copy-project-template.js +1 -1
  50. package/lib/create-app/use-format-code.js +1 -1
  51. package/lib/create-app/use-install-dependencies.js +1 -1
  52. package/lib/help.js +1 -1
  53. package/lib/i18n/I18nProvider.js +1 -0
  54. package/lib/i18n/hooks.js +1 -0
  55. package/lib/i18n/index.js +1 -0
  56. package/lib/i18n/locales/en-US.js +1 -0
  57. package/lib/i18n/locales/zh-CN.js +1 -0
  58. package/lib/init/main.js +1 -1
  59. package/lib/mcp/McpInstallUI.js +1 -1
  60. package/lib/mcp/claude.js +1 -1
  61. package/lib/mcp/cursor.js +1 -1
  62. package/lib/mcp/main.js +1 -1
  63. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  64. package/lib/mcp/mcp-installer.js +1 -1
  65. package/lib/skills/SkillInstallUI.js +1 -1
  66. package/lib/skills/main.js +1 -1
  67. package/lib/skills/skill-install-non-interactive.js +1 -1
  68. package/lib/skills/skill-installer.js +1 -1
  69. package/lib/ui/IDESelector.js +1 -1
  70. package/lib/ui/useIDESelection.js +1 -1
  71. package/lib/utils/ai_config.js +1 -1
  72. package/lib/utils/cdn-config.js +1 -1
  73. package/lib/utils/check-sdk-version.js +1 -1
  74. package/lib/utils/cli-version-check.js +1 -1
  75. package/lib/utils/config.js +1 -1
  76. package/lib/utils/copy-directory.js +1 -1
  77. package/lib/utils/file-utils.js +1 -1
  78. package/lib/utils/guides-cdn.js +1 -1
  79. package/lib/utils/http-client.js +1 -1
  80. package/lib/utils/logger.js +1 -1
  81. package/lib/utils/router-updater.js +1 -1
  82. package/lib/utils/rules-cdn.js +1 -1
  83. package/lib/utils/sleep.js +1 -1
  84. package/lib/utils/template-replacer.js +1 -1
  85. package/package.json +3 -1
@@ -1 +1 @@
1
- const a81_0x5a92bd=a81_0x58d2;(function(_0x13a964,_0x581a6c){const _0x4c3593=a81_0x58d2,_0x12bda2=_0x13a964();while(!![]){try{const _0x110ca7=parseInt(_0x4c3593(0x152))/0x1*(-parseInt(_0x4c3593(0x170))/0x2)+parseInt(_0x4c3593(0x166))/0x3+-parseInt(_0x4c3593(0x147))/0x4*(parseInt(_0x4c3593(0x153))/0x5)+parseInt(_0x4c3593(0x160))/0x6+-parseInt(_0x4c3593(0x144))/0x7*(parseInt(_0x4c3593(0x14f))/0x8)+-parseInt(_0x4c3593(0x151))/0x9*(-parseInt(_0x4c3593(0x159))/0xa)+parseInt(_0x4c3593(0x16b))/0xb;if(_0x110ca7===_0x581a6c)break;else _0x12bda2['push'](_0x12bda2['shift']());}catch(_0x2b7490){_0x12bda2['push'](_0x12bda2['shift']());}}}(a81_0x10f0,0x284c7));function a81_0x58d2(_0x12bcb5,_0x4e3426){_0x12bcb5=_0x12bcb5-0x144;const _0x10f00c=a81_0x10f0();let _0x58d21b=_0x10f00c[_0x12bcb5];return _0x58d21b;}import a81_0x50e3d5 from'node:fs';import a81_0x5ce98d from'node:path';import{createRequire}from'node:module';function a81_0x10f0(){const _0x1133f0=['toLowerCase','info','pop','name','.jsx','9496LBAhFq','name:\x20\x22','6507UHGAih','47497eqWMjm','25WZpuge','template','YourModel','endsWith','toLocaleDateString','promises','1270AxzzhI','\x0a\x20\x20\x20\x20{\x20','toLocaleTimeString','success','mkdir','.tsx','isDirectory','260826deyPQq','numeric','slice','readFile','now','alias:\x20\x22','707124rZOtZX','模板内容替换完成','processDirectory','push','.tpl','1910205FCJrti','split','.md','toISOString','version','4vZbLRy','map','readdir','charAt','replace','writeFile','../../package.json','includes','default','join','copyFile','\x20},','extname','2-digit','toDisplayTitle','toUpperCase','763OBBupV','.css','replaceContent','124172oKnxLA','alias','模板内容替换失败'];a81_0x10f0=function(){return _0x1133f0;};return a81_0x10f0();}import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a81_0x5a92bd(0x176))[a81_0x5a92bd(0x16f)];export class TemplateReplacer{static['toComponentName'](_0x27463b){const _0x816ac0=a81_0x5a92bd,_0x5cd0c2=_0x27463b[_0x816ac0(0x16c)]('/')[_0x816ac0(0x14c)]()||_0x27463b;return _0x5cd0c2[_0x816ac0(0x16c)]('-')['map'](_0x2ab6b0=>_0x2ab6b0[_0x816ac0(0x173)](0x0)[_0x816ac0(0x17f)]()+_0x2ab6b0['slice'](0x1)[_0x816ac0(0x14a)]())[_0x816ac0(0x179)]('');}static[a81_0x5a92bd(0x17e)](_0x4f895b){const _0x55a16c=a81_0x5a92bd,_0x2570bc=_0x4f895b[_0x55a16c(0x16c)]('/')[_0x55a16c(0x14c)]()||_0x4f895b;return _0x2570bc[_0x55a16c(0x16c)]('-')[_0x55a16c(0x171)](_0x1e5a58=>_0x1e5a58[_0x55a16c(0x173)](0x0)[_0x55a16c(0x17f)]()+_0x1e5a58[_0x55a16c(0x162)](0x1)[_0x55a16c(0x14a)]())[_0x55a16c(0x179)]('\x20');}static[a81_0x5a92bd(0x146)](_0x106136,_0x410d9f,_0x2c760b){const _0x593620=a81_0x5a92bd,_0x1fbe8d=this['toComponentName'](_0x410d9f),_0xeaac17=this[_0x593620(0x17e)](_0x410d9f),_0x180ea2=new Date(),_0x4debc9=_0x180ea2['toLocaleString'](undefined,{'year':_0x593620(0x161),'month':'2-digit','day':_0x593620(0x17d),'hour':_0x593620(0x17d),'minute':_0x593620(0x17d),'second':'2-digit','hour12':![]})[_0x593620(0x174)](/\//g,'-'),_0x3212b5=_0x180ea2[_0x593620(0x157)](undefined,{'year':'numeric','month':_0x593620(0x17d),'day':_0x593620(0x17d)})[_0x593620(0x174)](/\//g,'-'),_0x174162=_0x180ea2[_0x593620(0x15b)](undefined,{'hour12':![]});let _0x1f4531=_0x106136[_0x593620(0x174)](/\{CliVersion\}/g,CLI_VERSION)[_0x593620(0x174)](/\{ComponentName\}/g,_0x1fbe8d)['replace'](/\{DisplayTitle\}/g,_0xeaac17)[_0x593620(0x174)](/\{PageName\}/g,_0x410d9f)[_0x593620(0x174)](/\{TemplateName\}/g,_0x2c760b)[_0x593620(0x174)](/\{CreatedAt\}/g,_0x4debc9)[_0x593620(0x174)](/\{CreatedDate\}/g,_0x3212b5)[_0x593620(0x174)](/\{CreatedTime\}/g,_0x174162);return _0x1f4531;}static['replaceApiContent'](_0x5f4240,_0x177c29,_0x3698d9,_0x2765ed,_0x37d15f,_0x90822e,_0x3d6504){const _0x2daf08=a81_0x5a92bd,_0x57ba2a=new Date(),_0x53934c=_0x57ba2a[_0x2daf08(0x16e)](),_0x2170f2=_0x3698d9[_0x2daf08(0x171)](_0x3659d4=>{const _0x4795d7=_0x2daf08,_0x16ff2c=['datasetCode:\x20\x22'+_0x3659d4['datasetCode']+'\x22','tableName:\x20\x22'+_0x3659d4['tableName']+'\x22',_0x4795d7(0x150)+_0x3659d4[_0x4795d7(0x14d)]+'\x22'];return _0x3659d4[_0x4795d7(0x148)]&&_0x16ff2c[_0x4795d7(0x169)](_0x4795d7(0x165)+_0x3659d4[_0x4795d7(0x148)]+'\x22'),_0x4795d7(0x15a)+_0x16ff2c['join'](',\x20')+_0x4795d7(0x17b);})['join'](''),_0x584c68=_0x2765ed||_0x3698d9[0x0]?.[_0x2daf08(0x148)]||_0x2daf08(0x155);let _0x1a5d3f=_0x5f4240[_0x2daf08(0x174)](/\{AppCode\}/g,_0x177c29)['replace'](/\{ModelConfigs\}/g,_0x2170f2)[_0x2daf08(0x174)](/\{ExampleModelName\}/g,_0x584c68)[_0x2daf08(0x174)](/\{ApiFileName\}/g,_0x37d15f||'api')[_0x2daf08(0x174)](/\{ConfigName\}/g,_0x90822e||_0x2daf08(0x178))['replace'](/\{ClientConfigParam\}/g,_0x3d6504||'')[_0x2daf08(0x174)](/\{CreatedAt\}/g,_0x53934c);return _0x1a5d3f;}static async['processTemplate'](_0xfe3311,_0x13b0f4,_0xb3da6c,_0x19810c,_0x1a01d4=!![]){const _0x42f7e9=a81_0x5a92bd,_0x11b6c9=Date[_0x42f7e9(0x164)]();try{_0x1a01d4&&logger[_0x42f7e9(0x14b)](_0x42f7e9(0x154),'开始处理模板内容替换',{'templatePath':_0xfe3311,'targetPath':_0x13b0f4,'pageName':_0xb3da6c,'templateName':_0x19810c});await a81_0x50e3d5['promises'][_0x42f7e9(0x15d)](_0x13b0f4,{'recursive':!![]}),await this['processDirectory'](_0xfe3311,_0x13b0f4,_0xb3da6c,_0x19810c);if(_0x1a01d4){const _0x2ca4f2=Date[_0x42f7e9(0x164)]()-_0x11b6c9;logger[_0x42f7e9(0x15c)](_0x42f7e9(0x154),_0x42f7e9(0x167),_0x2ca4f2,{'pageName':_0xb3da6c,'templateName':_0x19810c});}}catch(_0x5d8380){if(_0x1a01d4){const _0x1d8b06=Date['now']()-_0x11b6c9;logger['error'](_0x42f7e9(0x154),_0x42f7e9(0x149),{'templatePath':_0xfe3311,'targetPath':_0x13b0f4,'pageName':_0xb3da6c,'templateName':_0x19810c,'error':_0x5d8380 instanceof Error?_0x5d8380['message']:String(_0x5d8380),'duration':_0x1d8b06});}throw _0x5d8380;}}static async[a81_0x5a92bd(0x168)](_0x261914,_0x403692,_0x44b596,_0x1a0198){const _0x43e0f1=a81_0x5a92bd,_0x300714=await a81_0x50e3d5['promises'][_0x43e0f1(0x172)](_0x261914,{'withFileTypes':!![]});for(const _0x252cab of _0x300714){const _0x50eff1=a81_0x5ce98d[_0x43e0f1(0x179)](_0x261914,_0x252cab[_0x43e0f1(0x14d)]);let _0x542c62=a81_0x5ce98d[_0x43e0f1(0x179)](_0x403692,_0x252cab[_0x43e0f1(0x14d)]);_0x252cab[_0x43e0f1(0x14d)]['endsWith'](_0x43e0f1(0x16a))&&(_0x542c62=a81_0x5ce98d['join'](_0x403692,_0x252cab[_0x43e0f1(0x14d)]['replace'](/\.tpl$/,'')));if(_0x252cab[_0x43e0f1(0x15f)]())await a81_0x50e3d5[_0x43e0f1(0x158)][_0x43e0f1(0x15d)](_0x542c62,{'recursive':!![]}),await this[_0x43e0f1(0x168)](_0x50eff1,_0x542c62,_0x44b596,_0x1a0198);else _0x252cab['isFile']()&&await this['processFile'](_0x50eff1,_0x542c62,_0x44b596,_0x1a0198);}}static async['processFile'](_0x2e00e8,_0x23eaae,_0x29367a,_0x2f6a33){const _0x16caec=a81_0x5a92bd,_0x1e9384=a81_0x5ce98d[_0x16caec(0x17c)](_0x2e00e8)[_0x16caec(0x14a)]();_0x2e00e8[_0x16caec(0x156)](_0x16caec(0x16a))&&(_0x23eaae=_0x23eaae[_0x16caec(0x174)](/\.tpl$/,''));const _0x5bcd0c=[_0x16caec(0x15e),'.ts',_0x16caec(0x14e),'.js','.json',_0x16caec(0x16d),_0x16caec(0x145),'.scss',_0x16caec(0x16a)];if(_0x5bcd0c[_0x16caec(0x177)](_0x1e9384)||_0x2e00e8[_0x16caec(0x156)]('.tpl')){const _0x809c1b=await a81_0x50e3d5[_0x16caec(0x158)][_0x16caec(0x163)](_0x2e00e8,'utf8'),_0x35842b=this[_0x16caec(0x146)](_0x809c1b,_0x29367a,_0x2f6a33);await a81_0x50e3d5['promises'][_0x16caec(0x175)](_0x23eaae,_0x35842b,'utf8');}else await a81_0x50e3d5[_0x16caec(0x158)][_0x16caec(0x17a)](_0x2e00e8,_0x23eaae);}}
1
+ const a86_0x107d32=a86_0xed76;(function(_0x32ad48,_0x53fbf2){const _0x25378f=a86_0xed76,_0x517096=_0x32ad48();while(!![]){try{const _0x3bb1e6=parseInt(_0x25378f(0x152))/0x1+-parseInt(_0x25378f(0x150))/0x2*(-parseInt(_0x25378f(0x121))/0x3)+parseInt(_0x25378f(0x13d))/0x4+-parseInt(_0x25378f(0x14f))/0x5+-parseInt(_0x25378f(0x12b))/0x6+-parseInt(_0x25378f(0x155))/0x7+parseInt(_0x25378f(0x122))/0x8;if(_0x3bb1e6===_0x53fbf2)break;else _0x517096['push'](_0x517096['shift']());}catch(_0x23a6c0){_0x517096['push'](_0x517096['shift']());}}}(a86_0x8a6c,0x29e6d));import a86_0x1d10f5 from'node:fs';import a86_0x49f290 from'node:path';import{createRequire}from'node:module';function a86_0xed76(_0x1611d6,_0x54c6e4){_0x1611d6=_0x1611d6-0x11f;const _0x8a6cb6=a86_0x8a6c();let _0xed7605=_0x8a6cb6[_0x1611d6];return _0xed7605;}import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a86_0x107d32(0x12d))[a86_0x107d32(0x15d)];function a86_0x8a6c(){const _0x2a0566=['.jsx','message','version','includes','replace','toDisplayTitle','numeric','15ETSZhV','2100464EjAvgc','.md','map','replaceApiContent','toComponentName','error','datasetCode','mkdir','readFile','770166AhpcKg','processFile','../../package.json','alias','writeFile','split','alias:\x20\x22','readdir','tableName','toLowerCase','isDirectory','default','name','2-digit','\x20},','api','slice','pop','806204yIpMje','\x0a\x20\x20\x20\x20{\x20','toUpperCase','.tpl','push','template','.json','promises','info','.ts','endsWith','.scss','now','datasetCode:\x20\x22','toLocaleDateString','processDirectory','.js','processTemplate','920520oAveHG','29516Igzfbw','toLocaleString','253220Qhaamf','replaceContent','utf8','2149175zZhcZl','charAt','name:\x20\x22','模板内容替换完成','toLocaleTimeString','join'];a86_0x8a6c=function(){return _0x2a0566;};return a86_0x8a6c();}export class TemplateReplacer{static[a86_0x107d32(0x126)](_0x5169e9){const _0x238c2d=a86_0x107d32,_0x573583=_0x5169e9['split']('/')[_0x238c2d(0x13c)]()||_0x5169e9;return _0x573583[_0x238c2d(0x130)]('-')['map'](_0x384e9c=>_0x384e9c[_0x238c2d(0x156)](0x0)[_0x238c2d(0x13f)]()+_0x384e9c[_0x238c2d(0x13b)](0x1)[_0x238c2d(0x134)]())[_0x238c2d(0x15a)]('');}static[a86_0x107d32(0x11f)](_0x2cb35e){const _0x174722=a86_0x107d32,_0xc2ff0a=_0x2cb35e[_0x174722(0x130)]('/')[_0x174722(0x13c)]()||_0x2cb35e;return _0xc2ff0a['split']('-')[_0x174722(0x124)](_0x2c93e2=>_0x2c93e2['charAt'](0x0)['toUpperCase']()+_0x2c93e2[_0x174722(0x13b)](0x1)['toLowerCase']())[_0x174722(0x15a)]('\x20');}static[a86_0x107d32(0x153)](_0x590715,_0x476558,_0x30184a){const _0x5edda1=a86_0x107d32,_0x2f9ab5=this[_0x5edda1(0x126)](_0x476558),_0x58e706=this[_0x5edda1(0x11f)](_0x476558),_0x2443f3=new Date(),_0x4d8a80=_0x2443f3[_0x5edda1(0x151)](undefined,{'year':_0x5edda1(0x120),'month':_0x5edda1(0x138),'day':'2-digit','hour':_0x5edda1(0x138),'minute':_0x5edda1(0x138),'second':_0x5edda1(0x138),'hour12':![]})[_0x5edda1(0x15f)](/\//g,'-'),_0x33bd06=_0x2443f3[_0x5edda1(0x14b)](undefined,{'year':_0x5edda1(0x120),'month':_0x5edda1(0x138),'day':_0x5edda1(0x138)})[_0x5edda1(0x15f)](/\//g,'-'),_0xbbd9b7=_0x2443f3[_0x5edda1(0x159)](undefined,{'hour12':![]});let _0x5cc9be=_0x590715[_0x5edda1(0x15f)](/\{CliVersion\}/g,CLI_VERSION)[_0x5edda1(0x15f)](/\{ComponentName\}/g,_0x2f9ab5)[_0x5edda1(0x15f)](/\{DisplayTitle\}/g,_0x58e706)[_0x5edda1(0x15f)](/\{PageName\}/g,_0x476558)[_0x5edda1(0x15f)](/\{TemplateName\}/g,_0x30184a)[_0x5edda1(0x15f)](/\{CreatedAt\}/g,_0x4d8a80)[_0x5edda1(0x15f)](/\{CreatedDate\}/g,_0x33bd06)[_0x5edda1(0x15f)](/\{CreatedTime\}/g,_0xbbd9b7);return _0x5cc9be;}static[a86_0x107d32(0x125)](_0x472412,_0x1c7001,_0x841595,_0xd3cdc1,_0x4ba35d,_0x153e76,_0x503737){const _0x1384f7=a86_0x107d32,_0x731b1b=new Date(),_0x40d547=_0x731b1b['toISOString'](),_0x33117c=_0x841595[_0x1384f7(0x124)](_0x1a5af7=>{const _0x3754e5=_0x1384f7,_0x13191b=[_0x3754e5(0x14a)+_0x1a5af7[_0x3754e5(0x128)]+'\x22','tableName:\x20\x22'+_0x1a5af7[_0x3754e5(0x133)]+'\x22',_0x3754e5(0x157)+_0x1a5af7[_0x3754e5(0x137)]+'\x22'];return _0x1a5af7[_0x3754e5(0x12e)]&&_0x13191b[_0x3754e5(0x141)](_0x3754e5(0x131)+_0x1a5af7['alias']+'\x22'),_0x3754e5(0x13e)+_0x13191b[_0x3754e5(0x15a)](',\x20')+_0x3754e5(0x139);})['join'](''),_0x58312c=_0xd3cdc1||_0x841595[0x0]?.['alias']||'YourModel';let _0x45a8ca=_0x472412['replace'](/\{AppCode\}/g,_0x1c7001)[_0x1384f7(0x15f)](/\{ModelConfigs\}/g,_0x33117c)[_0x1384f7(0x15f)](/\{ExampleModelName\}/g,_0x58312c)[_0x1384f7(0x15f)](/\{ApiFileName\}/g,_0x4ba35d||_0x1384f7(0x13a))[_0x1384f7(0x15f)](/\{ConfigName\}/g,_0x153e76||_0x1384f7(0x136))[_0x1384f7(0x15f)](/\{ClientConfigParam\}/g,_0x503737||'')[_0x1384f7(0x15f)](/\{CreatedAt\}/g,_0x40d547);return _0x45a8ca;}static async[a86_0x107d32(0x14e)](_0x42d109,_0x386ea5,_0xb0c067,_0xaef707,_0x3f3b1e=!![]){const _0x1dbdb4=a86_0x107d32,_0x1a4270=Date[_0x1dbdb4(0x149)]();try{_0x3f3b1e&&logger[_0x1dbdb4(0x145)](_0x1dbdb4(0x142),'开始处理模板内容替换',{'templatePath':_0x42d109,'targetPath':_0x386ea5,'pageName':_0xb0c067,'templateName':_0xaef707});await a86_0x1d10f5[_0x1dbdb4(0x144)][_0x1dbdb4(0x129)](_0x386ea5,{'recursive':!![]}),await this[_0x1dbdb4(0x14c)](_0x42d109,_0x386ea5,_0xb0c067,_0xaef707);if(_0x3f3b1e){const _0x4a6360=Date[_0x1dbdb4(0x149)]()-_0x1a4270;logger['success']('template',_0x1dbdb4(0x158),_0x4a6360,{'pageName':_0xb0c067,'templateName':_0xaef707});}}catch(_0x3393f9){if(_0x3f3b1e){const _0x5874ef=Date[_0x1dbdb4(0x149)]()-_0x1a4270;logger[_0x1dbdb4(0x127)](_0x1dbdb4(0x142),'模板内容替换失败',{'templatePath':_0x42d109,'targetPath':_0x386ea5,'pageName':_0xb0c067,'templateName':_0xaef707,'error':_0x3393f9 instanceof Error?_0x3393f9[_0x1dbdb4(0x15c)]:String(_0x3393f9),'duration':_0x5874ef});}throw _0x3393f9;}}static async[a86_0x107d32(0x14c)](_0x5ec944,_0x252098,_0x57e117,_0x517d8b){const _0x461890=a86_0x107d32,_0x38eaf4=await a86_0x1d10f5[_0x461890(0x144)][_0x461890(0x132)](_0x5ec944,{'withFileTypes':!![]});for(const _0x36358f of _0x38eaf4){const _0x6338b4=a86_0x49f290[_0x461890(0x15a)](_0x5ec944,_0x36358f[_0x461890(0x137)]);let _0x4518f8=a86_0x49f290['join'](_0x252098,_0x36358f[_0x461890(0x137)]);_0x36358f[_0x461890(0x137)][_0x461890(0x147)](_0x461890(0x140))&&(_0x4518f8=a86_0x49f290[_0x461890(0x15a)](_0x252098,_0x36358f[_0x461890(0x137)][_0x461890(0x15f)](/\.tpl$/,'')));if(_0x36358f[_0x461890(0x135)]())await a86_0x1d10f5[_0x461890(0x144)][_0x461890(0x129)](_0x4518f8,{'recursive':!![]}),await this[_0x461890(0x14c)](_0x6338b4,_0x4518f8,_0x57e117,_0x517d8b);else _0x36358f['isFile']()&&await this['processFile'](_0x6338b4,_0x4518f8,_0x57e117,_0x517d8b);}}static async[a86_0x107d32(0x12c)](_0x46e846,_0xdf234d,_0x1300bc,_0x305213){const _0x2a128b=a86_0x107d32,_0x561bba=a86_0x49f290['extname'](_0x46e846)['toLowerCase']();_0x46e846[_0x2a128b(0x147)](_0x2a128b(0x140))&&(_0xdf234d=_0xdf234d[_0x2a128b(0x15f)](/\.tpl$/,''));const _0x3a586a=['.tsx',_0x2a128b(0x146),_0x2a128b(0x15b),_0x2a128b(0x14d),_0x2a128b(0x143),_0x2a128b(0x123),'.css',_0x2a128b(0x148),_0x2a128b(0x140)];if(_0x3a586a[_0x2a128b(0x15e)](_0x561bba)||_0x46e846[_0x2a128b(0x147)](_0x2a128b(0x140))){const _0x14776f=await a86_0x1d10f5[_0x2a128b(0x144)][_0x2a128b(0x12a)](_0x46e846,_0x2a128b(0x154)),_0x1ac727=this[_0x2a128b(0x153)](_0x14776f,_0x1300bc,_0x305213);await a86_0x1d10f5['promises'][_0x2a128b(0x12f)](_0xdf234d,_0x1ac727,_0x2a128b(0x154));}else await a86_0x1d10f5[_0x2a128b(0x144)]['copyFile'](_0x46e846,_0xdf234d);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/cli",
3
- "version": "1.3.2-beta.1",
3
+ "version": "1.3.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "bin": {
6
6
  "lovrabet": "lib/cli.js"
@@ -38,6 +38,7 @@
38
38
  "dependencies": {
39
39
  "@types/winston": "^2.4.4",
40
40
  "execa": "^9.6.0",
41
+ "i18next": "^25.8.4",
41
42
  "ink": "^6.2.3",
42
43
  "ink-spinner": "^5.0.0",
43
44
  "javascript-obfuscator": "^4.1.1",
@@ -45,6 +46,7 @@
45
46
  "meow": "^13.2.0",
46
47
  "prettier": "^3.6.2",
47
48
  "react": "^19.2.0",
49
+ "react-i18next": "^16.5.4",
48
50
  "semver": "^7.7.3",
49
51
  "winston": "^3.17.0"
50
52
  },