@lovrabet/rabetbase-cli 2.0.2-beta.7 → 2.0.2-beta.8

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 (132) hide show
  1. package/lib/ai-setup/config.js +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/doc.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/app.js +1 -1
  19. package/lib/commands/auth.js +1 -1
  20. package/lib/commands/bff/delete.js +1 -1
  21. package/lib/commands/bff/detail.js +1 -1
  22. package/lib/commands/bff/index.js +1 -1
  23. package/lib/commands/bff/list.js +1 -1
  24. package/lib/commands/bff/new.js +1 -1
  25. package/lib/commands/bff/pull.js +1 -1
  26. package/lib/commands/bff/push.js +1 -1
  27. package/lib/commands/bff/status.js +1 -1
  28. package/lib/commands/build.js +1 -1
  29. package/lib/commands/cli-update.js +1 -1
  30. package/lib/commands/codegen/index.js +1 -1
  31. package/lib/commands/codegen/sdk.js +1 -1
  32. package/lib/commands/codegen/sql.js +1 -1
  33. package/lib/commands/common/flags.js +1 -1
  34. package/lib/commands/config.js +1 -1
  35. package/lib/commands/create.js +1 -1
  36. package/lib/commands/dataset/detail.js +1 -1
  37. package/lib/commands/dataset/index.js +1 -1
  38. package/lib/commands/dataset/links.js +1 -1
  39. package/lib/commands/dataset/list.js +1 -1
  40. package/lib/commands/dataset/operations.js +1 -1
  41. package/lib/commands/doctor.js +1 -1
  42. package/lib/commands/init.js +1 -1
  43. package/lib/commands/logout.js +1 -1
  44. package/lib/commands/logs.js +1 -1
  45. package/lib/commands/mcp.js +1 -1
  46. package/lib/commands/menu/index.js +1 -1
  47. package/lib/commands/menu/shared/compare-table.js +1 -1
  48. package/lib/commands/menu/shared/index.js +1 -1
  49. package/lib/commands/menu/shared/inquirer.js +1 -1
  50. package/lib/commands/menu/shared/local-pages.js +1 -1
  51. package/lib/commands/menu/shared/logic.js +1 -1
  52. package/lib/commands/menu/shared/service.js +1 -1
  53. package/lib/commands/menu/shared/sync-core.js +1 -1
  54. package/lib/commands/menu/shared/update-core.js +1 -1
  55. package/lib/commands/menu/shared/valid-url.js +1 -1
  56. package/lib/commands/menu/sync.js +1 -1
  57. package/lib/commands/menu/update.js +1 -1
  58. package/lib/commands/preview.js +1 -1
  59. package/lib/commands/project-upgrade.js +1 -1
  60. package/lib/commands/registry.js +1 -1
  61. package/lib/commands/run.js +1 -1
  62. package/lib/commands/skill.js +1 -1
  63. package/lib/commands/sql/detail.js +1 -1
  64. package/lib/commands/sql/exec.js +1 -1
  65. package/lib/commands/sql/index.js +1 -1
  66. package/lib/commands/sql/list.js +1 -1
  67. package/lib/commands/sql/save.js +1 -1
  68. package/lib/commands/sql/validate.js +1 -1
  69. package/lib/commands/start.js +1 -1
  70. package/lib/config/config-help.js +1 -1
  71. package/lib/config/main.js +1 -1
  72. package/lib/constant/cli.js +1 -1
  73. package/lib/constant/domain.js +1 -1
  74. package/lib/constant/env.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/alias-resolver.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/bff/config.js +1 -1
  79. package/lib/core/bff/file-system.js +1 -1
  80. package/lib/core/bff/hash.js +1 -1
  81. package/lib/core/bff/lock.js +1 -1
  82. package/lib/core/bff/utils.js +1 -1
  83. package/lib/core/db-resolver.js +1 -1
  84. package/lib/core/sql-validator.js +1 -1
  85. package/lib/create-app/enhanced-guided-create.js +1 -1
  86. package/lib/create-app/format-elapsed.js +1 -1
  87. package/lib/create-app/main.js +1 -1
  88. package/lib/create-app/non-interactive.js +1 -1
  89. package/lib/create-app/task-finished.js +1 -1
  90. package/lib/create-app/task-loading.js +1 -1
  91. package/lib/create-app/task-running.js +1 -1
  92. package/lib/create-app/task-time.js +1 -1
  93. package/lib/create-app/use-copy-project-template.js +1 -1
  94. package/lib/create-app/use-format-code.js +1 -1
  95. package/lib/create-app/use-install-dependencies.js +1 -1
  96. package/lib/errors.js +1 -1
  97. package/lib/framework/flags.js +1 -1
  98. package/lib/framework/help.js +1 -1
  99. package/lib/framework/index.js +1 -1
  100. package/lib/framework/output.js +1 -1
  101. package/lib/framework/response.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/generated/build-info.js +1 -1
  104. package/lib/help.js +1 -1
  105. package/lib/init/main.js +1 -1
  106. package/lib/mcp/McpInstallUI.js +1 -1
  107. package/lib/mcp/claude.js +1 -1
  108. package/lib/mcp/cursor.js +1 -1
  109. package/lib/mcp/main.js +1 -1
  110. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  111. package/lib/mcp/mcp-installer.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/otel-logger-version.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/ui/IDESelector.js +1 -1
  118. package/lib/ui/useIDESelection.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/cdn-config.js +1 -1
  121. package/lib/utils/check-sdk-version.js +1 -1
  122. package/lib/utils/cli-version-check.js +1 -1
  123. package/lib/utils/config.js +1 -1
  124. package/lib/utils/copy-directory.js +1 -1
  125. package/lib/utils/file-utils.js +1 -1
  126. package/lib/utils/guides-cdn.js +1 -1
  127. package/lib/utils/http-client.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/rules-cdn.js +1 -1
  130. package/lib/utils/sleep.js +1 -1
  131. package/lib/utils/template-replacer.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5de9d4,_0x54f17d){var _0x24c4cb=a93_0x174a,_0xb38ee5=_0x5de9d4();while(!![]){try{var _0x1f1cbc=parseInt(_0x24c4cb(0xe5))/0x1+-parseInt(_0x24c4cb(0xe8))/0x2*(parseInt(_0x24c4cb(0xe1))/0x3)+parseInt(_0x24c4cb(0xe0))/0x4+-parseInt(_0x24c4cb(0xe2))/0x5+parseInt(_0x24c4cb(0xe6))/0x6+parseInt(_0x24c4cb(0xe7))/0x7+parseInt(_0x24c4cb(0xe3))/0x8*(-parseInt(_0x24c4cb(0xea))/0x9);if(_0x1f1cbc===_0x54f17d)break;else _0xb38ee5['push'](_0xb38ee5['shift']());}catch(_0x2ce599){_0xb38ee5['push'](_0xb38ee5['shift']());}}}(a93_0x3882,0x8e8a2));import{jsx as a93_0x2cf645,Fragment as a93_0x1ad947,jsxs as a93_0x4730e3}from'react/jsx-runtime';function a93_0x174a(_0x236ea3,_0x505ad9){_0x236ea3=_0x236ea3-0xe0;var _0x3882c6=a93_0x3882();var _0x174ae2=_0x3882c6[_0x236ea3];return _0x174ae2;}function a93_0x3882(){var _0x3ca768=['2063530RYtQDm','654344AsvVir','gray','640537GAYNJW','670638LEVuIm','2559396qsCxiI','16430sNoCXq','elapsed','9WvfdAF','2174672ecNufG','213bIBpXz'];a93_0x3882=function(){return _0x3ca768;};return a93_0x3882();}import{Text}from'ink';export function TaskTime(_0x103bb2){var _0x50ca61=a93_0x174a;if(_0x103bb2[_0x50ca61(0xe9)])return a93_0x4730e3(a93_0x1ad947,{'children':[a93_0x2cf645(Text,{'color':_0x50ca61(0xe4),'children':'\x20['}),a93_0x2cf645(Text,{'color':_0x50ca61(0xe4),'bold':!![],'children':_0x103bb2[_0x50ca61(0xe9)]}),a93_0x2cf645(Text,{'color':'gray','children':']'})]});return null;}
1
+ (function(_0x15409e,_0x41bc09){var _0x2bc12f=a93_0x2c43,_0x4c6d17=_0x15409e();while(!![]){try{var _0x49ce54=-parseInt(_0x2bc12f(0x10c))/0x1*(-parseInt(_0x2bc12f(0x10b))/0x2)+parseInt(_0x2bc12f(0x105))/0x3+parseInt(_0x2bc12f(0x108))/0x4*(parseInt(_0x2bc12f(0x10f))/0x5)+-parseInt(_0x2bc12f(0x106))/0x6*(-parseInt(_0x2bc12f(0x107))/0x7)+parseInt(_0x2bc12f(0x110))/0x8*(parseInt(_0x2bc12f(0x10d))/0x9)+-parseInt(_0x2bc12f(0x109))/0xa*(-parseInt(_0x2bc12f(0x111))/0xb)+parseInt(_0x2bc12f(0x112))/0xc*(-parseInt(_0x2bc12f(0x10a))/0xd);if(_0x49ce54===_0x41bc09)break;else _0x4c6d17['push'](_0x4c6d17['shift']());}catch(_0x1ed556){_0x4c6d17['push'](_0x4c6d17['shift']());}}}(a93_0xae2f,0xc3c1e));import{jsx as a93_0x47baf1,Fragment as a93_0x4fbd82,jsxs as a93_0x30d5ed}from'react/jsx-runtime';function a93_0x2c43(_0x20a462,_0x1dfb30){_0x20a462=_0x20a462-0x104;var _0xae2f5e=a93_0xae2f();var _0x2c43cc=_0xae2f5e[_0x20a462];return _0x2c43cc;}import{Text}from'ink';function a93_0xae2f(){var _0x1a089f=['52CpsLyS','1952274KgqMTX','1gDYIPq','9YynlRP','gray','617345VkEAek','1015544UyLCuQ','486233smhMIt','9062232uhVkqz','elapsed','101265UPqUZH','12zfeSRu','2875467jFhwdV','16MwfZSE','310POrPoY'];a93_0xae2f=function(){return _0x1a089f;};return a93_0xae2f();}export function TaskTime(_0x52f79c){var _0x1342e3=a93_0x2c43;if(_0x52f79c[_0x1342e3(0x104)])return a93_0x30d5ed(a93_0x4fbd82,{'children':[a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'children':'\x20['}),a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'bold':!![],'children':_0x52f79c[_0x1342e3(0x104)]}),a93_0x47baf1(Text,{'color':_0x1342e3(0x10e),'children':']'})]});return null;}
@@ -1 +1 @@
1
- const a94_0x39b2ef=a94_0x5273;(function(_0x2ef3b8,_0x5bf9fd){const _0x579f7a=a94_0x5273,_0x1a1e70=_0x2ef3b8();while(!![]){try{const _0xa37ebb=parseInt(_0x579f7a(0x71))/0x1*(-parseInt(_0x579f7a(0x6f))/0x2)+parseInt(_0x579f7a(0x7f))/0x3+-parseInt(_0x579f7a(0x7b))/0x4+parseInt(_0x579f7a(0x74))/0x5*(parseInt(_0x579f7a(0x72))/0x6)+parseInt(_0x579f7a(0x6b))/0x7*(-parseInt(_0x579f7a(0x7e))/0x8)+parseInt(_0x579f7a(0x79))/0x9*(-parseInt(_0x579f7a(0x80))/0xa)+parseInt(_0x579f7a(0x7a))/0xb*(parseInt(_0x579f7a(0x6e))/0xc);if(_0xa37ebb===_0x5bf9fd)break;else _0x1a1e70['push'](_0x1a1e70['shift']());}catch(_0x2d7239){_0x1a1e70['push'](_0x1a1e70['shift']());}}}(a94_0x54e7,0xb68e9));import a94_0x45d401 from'node:path';import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';function a94_0x5273(_0x1c56a4,_0x5b5168){_0x1c56a4=_0x1c56a4-0x6b;const _0x54e7a7=a94_0x54e7();let _0x52735f=_0x54e7a7[_0x1c56a4];return _0x52735f;}import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';function a94_0x54e7(){const _0x20b1c1=['20qMjhlB','message','info','success','now','27HYWTWq','2607803jDEpGD','5262868cYbTeP','copy','error','8tTVKme','3464964wJWiEN','2785960wvEXUU','dirname','7378763bgLqtU','开始复制项目模板','../../templates/projects/sub-app-react-demo','156HgmFmq','480826ugKcyM','项目模板复制完成','2obQwMg','295884uoPBrF','Copy\x20project\x20files'];a94_0x54e7=function(){return _0x20b1c1;};return a94_0x54e7();}import{logger}from'../utils/logger.js';const __dirname=a94_0x45d401[a94_0x39b2ef(0x81)](fileURLToPath(import.meta.url)),templateDir=a94_0x45d401['resolve'](__dirname,a94_0x39b2ef(0x6d));export function useCopyProjectTemplate(){const _0x740d19=a94_0x39b2ef,[_0x42b75f,_0x4bd29f]=useState(![]),[_0x541326,_0x5c0007]=useState(![]),[_0x847fc8,_0x20cd6]=useState(''),_0x47b3ea=useCallback(async _0x3f73eb=>{const _0x2343df=a94_0x5273,_0x11190c=Date[_0x2343df(0x78)](),_0x14aa34=a94_0x45d401['resolve'](process['cwd'](),_0x3f73eb);_0x4bd29f(!![]);try{logger[_0x2343df(0x76)](_0x2343df(0x7c),_0x2343df(0x6c),{'projectCode':_0x3f73eb,'templateDir':templateDir}),await copyDirectory(templateDir,_0x14aa34);const _0x5c1347=Date['now']()-_0x11190c;logger[_0x2343df(0x77)](_0x2343df(0x7c),_0x2343df(0x70),_0x5c1347,{'projectCode':_0x3f73eb});}catch(_0x24285b){const _0x32a9cc=Date[_0x2343df(0x78)]()-_0x11190c;logger[_0x2343df(0x7d)]('copy','项目模板复制失败',{'projectCode':_0x3f73eb,'error':_0x24285b instanceof Error?_0x24285b[_0x2343df(0x75)]:String(_0x24285b),'duration':_0x32a9cc});throw _0x24285b;}finally{_0x4bd29f(![]),_0x5c0007(!![]),_0x20cd6(formatElapsed(_0x11190c));}},[]);return{'taskName':_0x740d19(0x73),'finished':_0x541326,'loading':_0x42b75f,'elapsed':_0x847fc8,'doTask':_0x47b3ea};}
1
+ const a94_0x56c1da=a94_0x3dd5;(function(_0x31ae1e,_0x1f28d9){const _0x1d35e8=a94_0x3dd5,_0x2a4e30=_0x31ae1e();while(!![]){try{const _0x5af9d0=-parseInt(_0x1d35e8(0xa7))/0x1*(parseInt(_0x1d35e8(0xa8))/0x2)+parseInt(_0x1d35e8(0xad))/0x3*(-parseInt(_0x1d35e8(0xab))/0x4)+parseInt(_0x1d35e8(0xa1))/0x5*(parseInt(_0x1d35e8(0x9a))/0x6)+-parseInt(_0x1d35e8(0xac))/0x7*(-parseInt(_0x1d35e8(0x97))/0x8)+parseInt(_0x1d35e8(0xa9))/0x9*(parseInt(_0x1d35e8(0x96))/0xa)+parseInt(_0x1d35e8(0xaa))/0xb*(parseInt(_0x1d35e8(0xa0))/0xc)+-parseInt(_0x1d35e8(0xa4))/0xd;if(_0x5af9d0===_0x1f28d9)break;else _0x2a4e30['push'](_0x2a4e30['shift']());}catch(_0x16d538){_0x2a4e30['push'](_0x2a4e30['shift']());}}}(a94_0x58a1,0xe60a2));import a94_0x1a20fc 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 a94_0x3dd5(_0x4dd0a5,_0x52ef75){_0x4dd0a5=_0x4dd0a5-0x96;const _0x58a1e6=a94_0x58a1();let _0x3dd573=_0x58a1e6[_0x4dd0a5];return _0x3dd573;}const __dirname=a94_0x1a20fc[a94_0x56c1da(0xa2)](fileURLToPath(import.meta.url)),templateDir=a94_0x1a20fc['resolve'](__dirname,a94_0x56c1da(0x9b));function a94_0x58a1(){const _0x238a82=['dirname','copy','10250877cspOfy','开始复制项目模板','info','1tuEpIK','68602eBpYOv','72MSHTmz','66gZePYM','132264CxraJj','553UIzOdp','132pkWLYt','1321770LcOsuu','38472HzwNuY','error','resolve','23910YOaeKO','../../templates/projects/sub-app-react-demo','now','cwd','项目模板复制完成','success','3461688AvFYTb','65lpiWvT'];a94_0x58a1=function(){return _0x238a82;};return a94_0x58a1();}export function useCopyProjectTemplate(){const [_0x2b2e7f,_0x1948c2]=useState(![]),[_0x12a205,_0x36d4ca]=useState(![]),[_0x3bacf1,_0x2b7c20]=useState(''),_0x7b4d43=useCallback(async _0x679a00=>{const _0x281335=a94_0x3dd5,_0x55d61e=Date['now'](),_0x50cde8=a94_0x1a20fc[_0x281335(0x99)](process[_0x281335(0x9d)](),_0x679a00);_0x1948c2(!![]);try{logger[_0x281335(0xa6)]('copy',_0x281335(0xa5),{'projectCode':_0x679a00,'templateDir':templateDir}),await copyDirectory(templateDir,_0x50cde8);const _0x55bd60=Date[_0x281335(0x9c)]()-_0x55d61e;logger[_0x281335(0x9f)](_0x281335(0xa3),_0x281335(0x9e),_0x55bd60,{'projectCode':_0x679a00});}catch(_0x556f43){const _0x5a09ff=Date[_0x281335(0x9c)]()-_0x55d61e;logger[_0x281335(0x98)]('copy','项目模板复制失败',{'projectCode':_0x679a00,'error':_0x556f43 instanceof Error?_0x556f43['message']:String(_0x556f43),'duration':_0x5a09ff});throw _0x556f43;}finally{_0x1948c2(![]),_0x36d4ca(!![]),_0x2b7c20(formatElapsed(_0x55d61e));}},[]);return{'taskName':'Copy\x20project\x20files','finished':_0x12a205,'loading':_0x2b2e7f,'elapsed':_0x3bacf1,'doTask':_0x7b4d43};}
@@ -1 +1 @@
1
- function a95_0x32aa(_0x21d72d,_0x388b87){_0x21d72d=_0x21d72d-0xba;const _0x114d53=a95_0x114d();let _0x32aa98=_0x114d53[_0x21d72d];return _0x32aa98;}(function(_0x51b416,_0x23fb03){const _0x573b28=a95_0x32aa,_0x404d7b=_0x51b416();while(!![]){try{const _0x32193b=-parseInt(_0x573b28(0xc9))/0x1*(-parseInt(_0x573b28(0xba))/0x2)+-parseInt(_0x573b28(0xbc))/0x3*(parseInt(_0x573b28(0xc8))/0x4)+parseInt(_0x573b28(0xbd))/0x5+-parseInt(_0x573b28(0xbe))/0x6+-parseInt(_0x573b28(0xc6))/0x7+parseInt(_0x573b28(0xbb))/0x8+-parseInt(_0x573b28(0xcd))/0x9;if(_0x32193b===_0x23fb03)break;else _0x404d7b['push'](_0x404d7b['shift']());}catch(_0x60a006){_0x404d7b['push'](_0x404d7b['shift']());}}}(a95_0x114d,0x29f5a));import a95_0x37d900 from'node:path';function a95_0x114d(){const _0x158926=['788daEfwG','993zLIlAS','message','Format\x20code','--write','513441rPRbhl','446SPzhpE','1598552KfvaXk','189Azyccg','1336370TQeVTI','1804182UCkYLV','format','success','开始格式化代码','info','npx','resolve','now','1025563lpiSej','prettier'];a95_0x114d=function(){return _0x158926;};return a95_0x114d();}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 _0x4f90c1=a95_0x32aa,[_0x27432b,_0x196f4b]=useState(![]),[_0x27ddce,_0x5a02b0]=useState(![]),[_0x464de3,_0x29a8ae]=useState(''),_0x2b58be=useCallback(async _0x5920c2=>{const _0x3daba5=a95_0x32aa,_0x3c912f=Date[_0x3daba5(0xc5)](),_0xd31818=a95_0x37d900[_0x3daba5(0xc4)](process['cwd'](),_0x5920c2);_0x196f4b(!![]);try{logger[_0x3daba5(0xc2)]('format',_0x3daba5(0xc1),{'projectCode':_0x5920c2}),await execa(_0x3daba5(0xc3),[_0x3daba5(0xc7),_0x3daba5(0xcc),'.'],{'cwd':_0xd31818});const _0x2d4c18=Date[_0x3daba5(0xc5)]()-_0x3c912f;logger[_0x3daba5(0xc0)](_0x3daba5(0xbf),'代码格式化完成',_0x2d4c18,{'projectCode':_0x5920c2});}catch(_0x8b0ced){const _0x3984e8=Date['now']()-_0x3c912f;logger['error']('format','代码格式化失败',{'projectCode':_0x5920c2,'error':_0x8b0ced instanceof Error?_0x8b0ced[_0x3daba5(0xca)]:String(_0x8b0ced),'duration':_0x3984e8});throw _0x8b0ced;}finally{_0x196f4b(![]),_0x5a02b0(!![]),_0x29a8ae(formatElapsed(_0x3c912f));}},[]);return{'taskName':_0x4f90c1(0xcb),'finished':_0x27ddce,'loading':_0x27432b,'elapsed':_0x464de3,'doTask':_0x2b58be};}
1
+ (function(_0x177f79,_0x5b0792){const _0x56ed8c=a95_0x57a2,_0x4c3efa=_0x177f79();while(!![]){try{const _0x41c67=-parseInt(_0x56ed8c(0x88))/0x1+parseInt(_0x56ed8c(0x8a))/0x2+parseInt(_0x56ed8c(0x9a))/0x3*(-parseInt(_0x56ed8c(0x99))/0x4)+parseInt(_0x56ed8c(0x89))/0x5+-parseInt(_0x56ed8c(0x8c))/0x6*(parseInt(_0x56ed8c(0x94))/0x7)+-parseInt(_0x56ed8c(0x8f))/0x8*(parseInt(_0x56ed8c(0x8e))/0x9)+-parseInt(_0x56ed8c(0x96))/0xa*(-parseInt(_0x56ed8c(0x97))/0xb);if(_0x41c67===_0x5b0792)break;else _0x4c3efa['push'](_0x4c3efa['shift']());}catch(_0x265b1a){_0x4c3efa['push'](_0x4c3efa['shift']());}}}(a95_0xd531,0x2c5a9));import a95_0x31f5f1 from'node:path';import{useCallback,useState}from'react';function a95_0xd531(){const _0x19b5be=['7170zEaeba','format','info','Format\x20code','now','319743bnJmWa','1273225ovNIKz','562314ocpDOI','代码格式化失败','246nuIWmQ','--write','9SaDQRD','907640EzkZvN','cwd','success','开始格式化代码','resolve','27657hpLYtS','prettier','2150OqddZx','20526qIgLDS','代码格式化完成','268ywFOeM'];a95_0xd531=function(){return _0x19b5be;};return a95_0xd531();}function a95_0x57a2(_0x1de4dd,_0x4c65ad){_0x1de4dd=_0x1de4dd-0x85;const _0xd5312f=a95_0xd531();let _0x57a20d=_0xd5312f[_0x1de4dd];return _0x57a20d;}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';export function useFormatCode(){const _0x21b39a=a95_0x57a2,[_0x4bc424,_0x3a9d4e]=useState(![]),[_0x576fa4,_0x39f34c]=useState(![]),[_0x50f4c3,_0x211826]=useState(''),_0x2552d1=useCallback(async _0x5edcea=>{const _0x308bdc=a95_0x57a2,_0x1d562b=Date[_0x308bdc(0x87)](),_0x17d127=a95_0x31f5f1[_0x308bdc(0x93)](process[_0x308bdc(0x90)](),_0x5edcea);_0x3a9d4e(!![]);try{logger[_0x308bdc(0x85)](_0x308bdc(0x9b),_0x308bdc(0x92),{'projectCode':_0x5edcea}),await execa('npx',[_0x308bdc(0x95),_0x308bdc(0x8d),'.'],{'cwd':_0x17d127});const _0x491a86=Date[_0x308bdc(0x87)]()-_0x1d562b;logger[_0x308bdc(0x91)](_0x308bdc(0x9b),_0x308bdc(0x98),_0x491a86,{'projectCode':_0x5edcea});}catch(_0xaa2105){const _0x7f73de=Date[_0x308bdc(0x87)]()-_0x1d562b;logger['error'](_0x308bdc(0x9b),_0x308bdc(0x8b),{'projectCode':_0x5edcea,'error':_0xaa2105 instanceof Error?_0xaa2105['message']:String(_0xaa2105),'duration':_0x7f73de});throw _0xaa2105;}finally{_0x3a9d4e(![]),_0x39f34c(!![]),_0x211826(formatElapsed(_0x1d562b));}},[]);return{'taskName':_0x21b39a(0x86),'finished':_0x576fa4,'loading':_0x4bc424,'elapsed':_0x50f4c3,'doTask':_0x2552d1};}
@@ -1 +1 @@
1
- function a96_0x24bc(_0x4533f3,_0x2e0fe6){_0x4533f3=_0x4533f3-0xea;const _0x519404=a96_0x5194();let _0x24bc0f=_0x519404[_0x4533f3];return _0x24bc0f;}(function(_0x48554e,_0x395aa4){const _0x4774f6=a96_0x24bc,_0x586a17=_0x48554e();while(!![]){try{const _0x4fc778=-parseInt(_0x4774f6(0xef))/0x1*(-parseInt(_0x4774f6(0xf2))/0x2)+-parseInt(_0x4774f6(0xed))/0x3+parseInt(_0x4774f6(0xee))/0x4+parseInt(_0x4774f6(0xfa))/0x5+parseInt(_0x4774f6(0xf3))/0x6*(parseInt(_0x4774f6(0xf7))/0x7)+-parseInt(_0x4774f6(0xea))/0x8*(parseInt(_0x4774f6(0xfd))/0x9)+parseInt(_0x4774f6(0xf4))/0xa;if(_0x4fc778===_0x395aa4)break;else _0x586a17['push'](_0x586a17['shift']());}catch(_0x3fa781){_0x586a17['push'](_0x586a17['shift']());}}}(a96_0x5194,0xcab0b));import a96_0x25b40f from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';function a96_0x5194(){const _0x1c23b3=['https://registry.npmmirror.com','9WAJgBs','cwd','now','依赖安装完成','8182168oNGDkc','npm','info','4108446ivlCdE','4332216DrDWzL','26MAJnYw','Install\x20dependencies','success','71082MIrnuJ','30idCDdQ','4868620pKCOVG','依赖安装失败','message','238133MxSZLr','--registry','install','2791975GHMpZY','error'];a96_0x5194=function(){return _0x1c23b3;};return a96_0x5194();}import{logger}from'../utils/logger.js';export function useInstallDependencies(){const _0x53ebe4=a96_0x24bc,[_0x500794,_0x30552c]=useState(![]),[_0x2d4d42,_0x5b90fa]=useState(![]),[_0x2e19fe,_0x41b2a1]=useState(''),_0x34c0cb=useCallback(async _0x403c1b=>{const _0x27f1b6=a96_0x24bc,_0x28477b=Date[_0x27f1b6(0xff)](),_0x2d2fcd=a96_0x25b40f['resolve'](process[_0x27f1b6(0xfe)](),_0x403c1b);_0x30552c(!![]),_0x5b90fa(![]);const _0x344ad6=async(_0x55c0bf,_0x5431f7)=>{await execa(_0x55c0bf,_0x5431f7,{'cwd':_0x2d2fcd});};try{logger[_0x27f1b6(0xec)](_0x27f1b6(0xf9),'开始安装依赖',{'projectCode':_0x403c1b,'registry':'https://registry.npmmirror.com'}),await _0x344ad6(_0x27f1b6(0xeb),[_0x27f1b6(0xf9),_0x27f1b6(0xf8),_0x27f1b6(0xfc)]);const _0x4de98f=Date[_0x27f1b6(0xff)]()-_0x28477b;logger[_0x27f1b6(0xf1)](_0x27f1b6(0xf9),_0x27f1b6(0x100),_0x4de98f,{'projectCode':_0x403c1b});}catch(_0x4bc878){const _0x5ccf38=Date[_0x27f1b6(0xff)]()-_0x28477b;logger[_0x27f1b6(0xfb)]('install',_0x27f1b6(0xf5),{'projectCode':_0x403c1b,'error':_0x4bc878 instanceof Error?_0x4bc878[_0x27f1b6(0xf6)]:String(_0x4bc878),'duration':_0x5ccf38});throw _0x4bc878;}finally{_0x30552c(![]),_0x5b90fa(!![]),_0x41b2a1(formatElapsed(_0x28477b));}},[]);return{'taskName':_0x53ebe4(0xf0),'finished':_0x2d4d42,'loading':_0x500794,'elapsed':_0x2e19fe,'doTask':_0x34c0cb};}
1
+ (function(_0x262a96,_0x3a56c6){const _0x3caa3f=a96_0x157b,_0x1ff9f7=_0x262a96();while(!![]){try{const _0x296718=parseInt(_0x3caa3f(0x17b))/0x1+-parseInt(_0x3caa3f(0x186))/0x2*(parseInt(_0x3caa3f(0x18e))/0x3)+parseInt(_0x3caa3f(0x18b))/0x4*(parseInt(_0x3caa3f(0x17c))/0x5)+parseInt(_0x3caa3f(0x17f))/0x6*(parseInt(_0x3caa3f(0x18a))/0x7)+parseInt(_0x3caa3f(0x17e))/0x8+-parseInt(_0x3caa3f(0x184))/0x9*(parseInt(_0x3caa3f(0x188))/0xa)+-parseInt(_0x3caa3f(0x18c))/0xb;if(_0x296718===_0x3a56c6)break;else _0x1ff9f7['push'](_0x1ff9f7['shift']());}catch(_0x2b3e0d){_0x1ff9f7['push'](_0x1ff9f7['shift']());}}}(a96_0x29f8,0xc9217));function a96_0x157b(_0x888af5,_0xb0d8){_0x888af5=_0x888af5-0x179;const _0x29f8e5=a96_0x29f8();let _0x157bd9=_0x29f8e5[_0x888af5];return _0x157bd9;}import a96_0x239fd4 from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';function a96_0x29f8(){const _0x4ed486=['954344sOVtCC','6oAXKXv','依赖安装失败','cwd','https://registry.npmmirror.com','--registry','6393843oRpNRx','info','764ujJwtc','Install\x20dependencies','10VnZAzt','error','1476678kOWcwQ','292gPeVDD','9873655kPgeVs','now','5517lCAQPR','开始安装依赖','success','1322506ycZedP','101480yUhkRy','install'];a96_0x29f8=function(){return _0x4ed486;};return a96_0x29f8();}import{logger}from'../utils/logger.js';export function useInstallDependencies(){const _0x40a19b=a96_0x157b,[_0x2c8476,_0x1a4bc9]=useState(![]),[_0x221c5a,_0x38a430]=useState(![]),[_0x2b52a9,_0x22a8e3]=useState(''),_0x4a0bd1=useCallback(async _0x562d18=>{const _0xe8dd3f=a96_0x157b,_0x17a119=Date['now'](),_0x280453=a96_0x239fd4['resolve'](process[_0xe8dd3f(0x181)](),_0x562d18);_0x1a4bc9(!![]),_0x38a430(![]);const _0x4bb218=async(_0x4d5fb6,_0x36c3eb)=>{await execa(_0x4d5fb6,_0x36c3eb,{'cwd':_0x280453});};try{logger[_0xe8dd3f(0x185)](_0xe8dd3f(0x17d),_0xe8dd3f(0x179),{'projectCode':_0x562d18,'registry':_0xe8dd3f(0x182)}),await _0x4bb218('npm',[_0xe8dd3f(0x17d),_0xe8dd3f(0x183),_0xe8dd3f(0x182)]);const _0x3c5b05=Date[_0xe8dd3f(0x18d)]()-_0x17a119;logger[_0xe8dd3f(0x17a)](_0xe8dd3f(0x17d),'依赖安装完成',_0x3c5b05,{'projectCode':_0x562d18});}catch(_0x263475){const _0x594316=Date['now']()-_0x17a119;logger[_0xe8dd3f(0x189)](_0xe8dd3f(0x17d),_0xe8dd3f(0x180),{'projectCode':_0x562d18,'error':_0x263475 instanceof Error?_0x263475['message']:String(_0x263475),'duration':_0x594316});throw _0x263475;}finally{_0x1a4bc9(![]),_0x38a430(!![]),_0x22a8e3(formatElapsed(_0x17a119));}},[]);return{'taskName':_0x40a19b(0x187),'finished':_0x221c5a,'loading':_0x2c8476,'elapsed':_0x2b52a9,'doTask':_0x4a0bd1};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a97_0x2566(_0x105b38,_0x4ab910){_0x105b38=_0x105b38-0x124;const _0x292117=a97_0x2921();let _0x25669a=_0x292117[_0x105b38];return _0x25669a;}const a97_0x22e578=a97_0x2566;(function(_0x3f1907,_0x361c1d){const _0x5f190c=a97_0x2566,_0x2a14dd=_0x3f1907();while(!![]){try{const _0x24c285=-parseInt(_0x5f190c(0x133))/0x1+-parseInt(_0x5f190c(0x128))/0x2+-parseInt(_0x5f190c(0x137))/0x3*(-parseInt(_0x5f190c(0x12c))/0x4)+parseInt(_0x5f190c(0x126))/0x5*(-parseInt(_0x5f190c(0x12d))/0x6)+-parseInt(_0x5f190c(0x12e))/0x7+-parseInt(_0x5f190c(0x13a))/0x8*(parseInt(_0x5f190c(0x132))/0x9)+parseInt(_0x5f190c(0x135))/0xa;if(_0x24c285===_0x361c1d)break;else _0x2a14dd['push'](_0x2a14dd['shift']());}catch(_0x22d79c){_0x2a14dd['push'](_0x2a14dd['shift']());}}}(a97_0x2921,0xddcc8));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a97_0x22e578(0x13e)];['exitCode'];[a97_0x22e578(0x13f)];constructor(_0x1254ae,_0x37d939,_0x24b289,_0x18db78){const _0x27fa22=a97_0x22e578;super(_0x24b289),this[_0x27fa22(0x138)]='CliError',this['code']=_0x1254ae,this['exitCode']=_0x37d939,this[_0x27fa22(0x13f)]=_0x18db78;}}function a97_0x2921(){const _0x3acc81=['api_error','1859856alCBgy','validation_error','Run\x20`','config_missing','1100wkiGcP','6lDsgbV','8002757IAQYWj','cancelled','Not\x20in\x20a\x20','\x20project\x20directory','2521377LNtJEl','1766440CFuKVu','Missing\x20required\x20flag:\x20--','50508210dOnqRd','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','3828bbBqAd','name','auth_required','8JUUSri','Configuration\x20file\x20not\x20found','Unknown\x20command:\x20','Operation\x20cancelled.','code','hint','Network\x20error:\x20','unknown_command','flag_missing','1867305pCnkrF'];a97_0x2921=function(){return _0x3acc81;};return a97_0x2921();}export const CliErrors={'authRequired':_0x522950=>new CliError(a97_0x22e578(0x139),0x1,'Authentication\x20required',_0x522950??a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.'),'configMissing':_0x122f62=>new CliError(a97_0x22e578(0x12b),0x1,a97_0x22e578(0x13b),_0x122f62??'Run\x20`'+CLI_BIN_NAME+'\x20init`\x20to\x20create\x20a\x20config\x20file.'),'notInProject':()=>new CliError('not_in_project',0x1,a97_0x22e578(0x130)+CLI_BIN_NAME+a97_0x22e578(0x131),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'),'apiError':(_0x1e4900,_0x4c4518)=>new CliError(a97_0x22e578(0x127),0x2,_0x1e4900,_0x4c4518),'networkError':_0x4f37ee=>new CliError('network_error',0x2,a97_0x22e578(0x140)+_0x4f37ee,a97_0x22e578(0x136)),'unknownCommand':_0x37d41a=>new CliError(a97_0x22e578(0x124),0x1,a97_0x22e578(0x13c)+_0x37d41a,a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.'),'flagMissing':(_0x52a5fd,_0x5e69ca)=>new CliError(a97_0x22e578(0x125),0x1,a97_0x22e578(0x134)+_0x52a5fd,_0x5e69ca),'validation':(_0x3f5556,_0x1dd4bc)=>new CliError(a97_0x22e578(0x129),0x1,_0x3f5556,_0x1dd4bc),'cancelled':_0x115823=>new CliError(a97_0x22e578(0x12f),0x0,_0x115823??a97_0x22e578(0x13d),undefined)};
1
+ function a97_0x56c2(_0xe4983d,_0x1b1ea0){_0xe4983d=_0xe4983d-0x86;const _0x3a48a1=a97_0x3a48();let _0x56c2ca=_0x3a48a1[_0xe4983d];return _0x56c2ca;}const a97_0xb21fac=a97_0x56c2;(function(_0x4f1deb,_0x15caa4){const _0x1aefd3=a97_0x56c2,_0x115848=_0x4f1deb();while(!![]){try{const _0x45c2cd=parseInt(_0x1aefd3(0xa0))/0x1+-parseInt(_0x1aefd3(0x98))/0x2+-parseInt(_0x1aefd3(0x9c))/0x3+parseInt(_0x1aefd3(0x9d))/0x4*(parseInt(_0x1aefd3(0x8a))/0x5)+-parseInt(_0x1aefd3(0x97))/0x6+-parseInt(_0x1aefd3(0x86))/0x7+parseInt(_0x1aefd3(0x8f))/0x8;if(_0x45c2cd===_0x15caa4)break;else _0x115848['push'](_0x115848['shift']());}catch(_0x4c708e){_0x115848['push'](_0x115848['shift']());}}}(a97_0x3a48,0x8d2fa));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a97_0xb21fac(0x99)];[a97_0xb21fac(0x8e)];[a97_0xb21fac(0x8c)];constructor(_0xd7b486,_0x35f018,_0xa3701a,_0x13aab6){const _0x178a8=a97_0xb21fac;super(_0xa3701a),this[_0x178a8(0x88)]=_0x178a8(0x96),this[_0x178a8(0x99)]=_0xd7b486,this[_0x178a8(0x8e)]=_0x35f018,this['hint']=_0x13aab6;}}export const CliErrors={'authRequired':_0x1a0ea5=>new CliError(a97_0xb21fac(0x89),0x1,'Authentication\x20required',_0x1a0ea5??a97_0xb21fac(0x94)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.'),'configMissing':_0xc471e2=>new CliError(a97_0xb21fac(0x9f),0x1,a97_0xb21fac(0x87),_0xc471e2??a97_0xb21fac(0x94)+CLI_BIN_NAME+a97_0xb21fac(0x92)),'notInProject':()=>new CliError(a97_0xb21fac(0xa1),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+'\x20project\x20directory',a97_0xb21fac(0x93)),'apiError':(_0x4b23fa,_0x50befa)=>new CliError(a97_0xb21fac(0x8d),0x2,_0x4b23fa,_0x50befa),'networkError':_0xe0eab3=>new CliError(a97_0xb21fac(0x90),0x2,'Network\x20error:\x20'+_0xe0eab3,a97_0xb21fac(0x95)),'unknownCommand':_0x70e912=>new CliError(a97_0xb21fac(0x91),0x1,'Unknown\x20command:\x20'+_0x70e912,'Run\x20`'+CLI_BIN_NAME+a97_0xb21fac(0x8b)),'flagMissing':(_0xe8bda,_0x5683a1)=>new CliError(a97_0xb21fac(0x9b),0x1,a97_0xb21fac(0x9e)+_0xe8bda,_0x5683a1),'validation':(_0xfc71f0,_0xce9ea)=>new CliError('validation_error',0x1,_0xfc71f0,_0xce9ea),'cancelled':_0x551d3c=>new CliError(a97_0xb21fac(0x9a),0x0,_0x551d3c??'Operation\x20cancelled.',undefined)};function a97_0x3a48(){const _0x1e0f71=['5327400TXuFcE','1016240UOGmNu','code','cancelled','flag_missing','1526757XKqlDH','1160AqyJGB','Missing\x20required\x20flag:\x20--','config_missing','94482CRKuEt','not_in_project','4742955zQxaLg','Configuration\x20file\x20not\x20found','name','auth_required','13215ASjIoy','\x20--help`\x20to\x20see\x20available\x20commands.','hint','api_error','exitCode','18398800SNYiwS','network_error','unknown_command','\x20init`\x20to\x20create\x20a\x20config\x20file.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','CliError'];a97_0x3a48=function(){return _0x1e0f71;};return a97_0x3a48();}
@@ -1 +1 @@
1
- (function(_0x37fe4f,_0x1d2ea3){const _0x1b452e=a98_0x1db3,_0x4de641=_0x37fe4f();while(!![]){try{const _0x52f720=-parseInt(_0x1b452e(0x16d))/0x1*(parseInt(_0x1b452e(0x153))/0x2)+parseInt(_0x1b452e(0x16a))/0x3*(-parseInt(_0x1b452e(0x150))/0x4)+parseInt(_0x1b452e(0x16c))/0x5+parseInt(_0x1b452e(0x166))/0x6+-parseInt(_0x1b452e(0x171))/0x7*(parseInt(_0x1b452e(0x158))/0x8)+parseInt(_0x1b452e(0x163))/0x9+parseInt(_0x1b452e(0x159))/0xa*(parseInt(_0x1b452e(0x157))/0xb);if(_0x52f720===_0x1d2ea3)break;else _0x4de641['push'](_0x4de641['shift']());}catch(_0x4f47e4){_0x4de641['push'](_0x4de641['shift']());}}}(a98_0x34be,0xa9aaa));function a98_0x34be(){const _0x40c36b=['enum','validation','\x20is\x20required\x20for\x20`','7TOCQxN','format','length','648684KMCuCs','boolean','dry-run','214gdmqim','test','pattern','type','11RgVGmF','10682872JVducA','15566710KgtWGf','number','toUpperCase','Invalid\x20value\x20\x22','yes','replace','join','name','regex','\x20expects\x20a\x20number,\x20got\x20\x22','10697517NBQEmB','default','Invalid\x20--','3812604aZUPPi','dryRun','\x22\x20for\x20--','includes','21VRmmJW','description','189770HvzdKp','2366QaPjGI'];a98_0x34be=function(){return _0x40c36b;};return a98_0x34be();}import{CliErrors}from'../errors.js';export function parseFlags(_0x4446ec,_0xc6943e){const _0x5d620c=a98_0x1db3,_0x161cfd={};for(const _0x3b4332 of _0x4446ec){const _0x8ea0d9=_0xc6943e[_0x3b4332[_0x5d620c(0x160)]]??_0xc6943e[toCamelCase(_0x3b4332[_0x5d620c(0x160)])];if(_0x8ea0d9===undefined||_0x8ea0d9===null){_0x3b4332['default']!==undefined&&(_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=_0x3b4332[_0x5d620c(0x164)]);continue;}_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=coerce(_0x3b4332,_0x8ea0d9);}for(const _0x4ec5e1 of[_0x5d620c(0x152),_0x5d620c(0x167),_0x5d620c(0x15d),_0x5d620c(0x172)]){const _0x27656f=_0xc6943e[_0x4ec5e1];if(_0x27656f!==undefined){const _0x56a20c=_0x4ec5e1==='dryRun'?_0x5d620c(0x152):_0x4ec5e1;_0x161cfd[_0x56a20c]=_0x27656f;}}return _0x161cfd;}function a98_0x1db3(_0xd8f4,_0xb666c3){_0xd8f4=_0xd8f4-0x14f;const _0x34be55=a98_0x34be();let _0x1db31a=_0x34be55[_0xd8f4];return _0x1db31a;}export function validateFlags(_0x299322,_0x21c811,_0x5b90f7){const _0x4c0ea1=a98_0x1db3;for(const _0x5d49a3 of _0x299322){const _0x1eb65e=_0x21c811[_0x5d49a3[_0x4c0ea1(0x160)]];if(_0x5d49a3['required']&&(_0x1eb65e===undefined||_0x1eb65e===''))throw CliErrors['flagMissing'](_0x5d49a3[_0x4c0ea1(0x160)],'--'+_0x5d49a3[_0x4c0ea1(0x160)]+_0x4c0ea1(0x170)+_0x5b90f7+'`.');if(_0x5d49a3[_0x4c0ea1(0x16e)]&&_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x14f)]>0x0&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x169)](String(_0x1eb65e)))throw CliErrors[_0x4c0ea1(0x16f)](_0x4c0ea1(0x15c)+_0x1eb65e+_0x4c0ea1(0x168)+_0x5d49a3[_0x4c0ea1(0x160)]+'.\x20Allowed:\x20'+_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x15f)](',\x20'));}if(_0x5d49a3[_0x4c0ea1(0x155)]&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x161)][_0x4c0ea1(0x154)](String(_0x1eb65e)))throw CliErrors['validation'](_0x4c0ea1(0x165)+_0x5d49a3[_0x4c0ea1(0x160)]+':\x20expected\x20'+_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x16b)]+',\x20got\x20\x22'+_0x1eb65e+'\x22.');}}}function coerce(_0x5e7265,_0x640071){const _0x52bfbb=a98_0x1db3;switch(_0x5e7265[_0x52bfbb(0x156)]){case _0x52bfbb(0x151):return _0x640071===!![]||_0x640071==='true';case _0x52bfbb(0x15a):{const _0x41413c=Number(_0x640071);if(isNaN(_0x41413c))throw CliErrors[_0x52bfbb(0x16f)]('--'+_0x5e7265['name']+_0x52bfbb(0x162)+_0x640071+'\x22');return _0x41413c;}default:return String(_0x640071);}}function toCamelCase(_0x3c8346){const _0x4e808b=a98_0x1db3;return _0x3c8346[_0x4e808b(0x15e)](/-([a-z])/g,(_0x5361bb,_0x1447df)=>_0x1447df[_0x4e808b(0x15b)]());}
1
+ (function(_0x513ff2,_0x30a245){const _0x183224=a98_0x4c37,_0x18c14c=_0x513ff2();while(!![]){try{const _0x31515a=parseInt(_0x183224(0x1f1))/0x1*(parseInt(_0x183224(0x1db))/0x2)+parseInt(_0x183224(0x1e8))/0x3*(parseInt(_0x183224(0x1de))/0x4)+-parseInt(_0x183224(0x1d0))/0x5*(parseInt(_0x183224(0x1e4))/0x6)+parseInt(_0x183224(0x1d2))/0x7+parseInt(_0x183224(0x1d6))/0x8*(parseInt(_0x183224(0x1e7))/0x9)+parseInt(_0x183224(0x1e1))/0xa*(parseInt(_0x183224(0x1ef))/0xb)+-parseInt(_0x183224(0x1dd))/0xc*(parseInt(_0x183224(0x1df))/0xd);if(_0x31515a===_0x30a245)break;else _0x18c14c['push'](_0x18c14c['shift']());}catch(_0x32f9da){_0x18c14c['push'](_0x18c14c['shift']());}}}(a98_0x44e7,0xace3a));function a98_0x4c37(_0x327a56,_0x7345f3){_0x327a56=_0x327a56-0x1ce;const _0x44e79f=a98_0x44e7();let _0x4c374d=_0x44e79f[_0x327a56];return _0x4c374d;}import{CliErrors}from'../errors.js';function a98_0x44e7(){const _0x452438=['220XJPcRC','includes','3927441mDLFUA','toUpperCase','flagMissing','enum','64bXQhwR','test','true','boolean','dry-run','2fyXWiU','\x20is\x20required\x20for\x20`','5832492BBkBFp','25396ZNteWl','26EbYhmU','name','9979610kVLdHn','validation','\x20expects\x20a\x20number,\x20got\x20\x22','22398TFIkal','replace','dryRun','41661shkBWN','33GSOFWu','default','required','number','pattern','type','\x22\x20for\x20--','11GnAfgv','yes','178593icfbxL','Invalid\x20--',',\x20got\x20\x22','format'];a98_0x44e7=function(){return _0x452438;};return a98_0x44e7();}export function parseFlags(_0x255c2a,_0x2957d1){const _0x3ef88d=a98_0x4c37,_0xcb2b26={};for(const _0x1329c8 of _0x255c2a){const _0x13827c=_0x2957d1[_0x1329c8['name']]??_0x2957d1[toCamelCase(_0x1329c8[_0x3ef88d(0x1e0)])];if(_0x13827c===undefined||_0x13827c===null){_0x1329c8['default']!==undefined&&(_0xcb2b26[_0x1329c8[_0x3ef88d(0x1e0)]]=_0x1329c8[_0x3ef88d(0x1e9)]);continue;}_0xcb2b26[_0x1329c8[_0x3ef88d(0x1e0)]]=coerce(_0x1329c8,_0x13827c);}for(const _0x2221a4 of[_0x3ef88d(0x1da),_0x3ef88d(0x1e6),_0x3ef88d(0x1f0),_0x3ef88d(0x1cf)]){const _0x17fac7=_0x2957d1[_0x2221a4];if(_0x17fac7!==undefined){const _0x2b7ffe=_0x2221a4===_0x3ef88d(0x1e6)?_0x3ef88d(0x1da):_0x2221a4;_0xcb2b26[_0x2b7ffe]=_0x17fac7;}}return _0xcb2b26;}export function validateFlags(_0x32d918,_0x44b701,_0x66526c){const _0x23caa8=a98_0x4c37;for(const _0x187e47 of _0x32d918){const _0x498e03=_0x44b701[_0x187e47['name']];if(_0x187e47[_0x23caa8(0x1ea)]&&(_0x498e03===undefined||_0x498e03===''))throw CliErrors[_0x23caa8(0x1d4)](_0x187e47['name'],'--'+_0x187e47[_0x23caa8(0x1e0)]+_0x23caa8(0x1dc)+_0x66526c+'`.');if(_0x187e47[_0x23caa8(0x1d5)]&&_0x187e47[_0x23caa8(0x1d5)]['length']>0x0&&_0x498e03!==undefined&&_0x498e03!==''){if(!_0x187e47[_0x23caa8(0x1d5)][_0x23caa8(0x1d1)](String(_0x498e03)))throw CliErrors['validation']('Invalid\x20value\x20\x22'+_0x498e03+_0x23caa8(0x1ee)+_0x187e47[_0x23caa8(0x1e0)]+'.\x20Allowed:\x20'+_0x187e47[_0x23caa8(0x1d5)]['join'](',\x20'));}if(_0x187e47[_0x23caa8(0x1ec)]&&_0x498e03!==undefined&&_0x498e03!==''){if(!_0x187e47['pattern']['regex'][_0x23caa8(0x1d7)](String(_0x498e03)))throw CliErrors[_0x23caa8(0x1e2)](_0x23caa8(0x1f2)+_0x187e47[_0x23caa8(0x1e0)]+':\x20expected\x20'+_0x187e47['pattern']['description']+_0x23caa8(0x1ce)+_0x498e03+'\x22.');}}}function coerce(_0x5a173e,_0x267449){const _0x7b9513=a98_0x4c37;switch(_0x5a173e[_0x7b9513(0x1ed)]){case _0x7b9513(0x1d9):return _0x267449===!![]||_0x267449===_0x7b9513(0x1d8);case _0x7b9513(0x1eb):{const _0x449f34=Number(_0x267449);if(isNaN(_0x449f34))throw CliErrors['validation']('--'+_0x5a173e[_0x7b9513(0x1e0)]+_0x7b9513(0x1e3)+_0x267449+'\x22');return _0x449f34;}default:return String(_0x267449);}}function toCamelCase(_0x19ba20){const _0x13db70=a98_0x4c37;return _0x19ba20[_0x13db70(0x1e5)](/-([a-z])/g,(_0x51372a,_0x386adf)=>_0x386adf[_0x13db70(0x1d3)]());}
@@ -1 +1 @@
1
- const a99_0x586525=a99_0x4d5b;(function(_0x2dc296,_0x33306a){const _0x1ed797=a99_0x4d5b,_0x21497d=_0x2dc296();while(!![]){try{const _0x329a97=-parseInt(_0x1ed797(0x1b1))/0x1*(-parseInt(_0x1ed797(0x1df))/0x2)+-parseInt(_0x1ed797(0x1b0))/0x3*(parseInt(_0x1ed797(0x1ba))/0x4)+-parseInt(_0x1ed797(0x1ca))/0x5+parseInt(_0x1ed797(0x1e3))/0x6+-parseInt(_0x1ed797(0x1c7))/0x7+-parseInt(_0x1ed797(0x1cd))/0x8+parseInt(_0x1ed797(0x1d8))/0x9;if(_0x329a97===_0x33306a)break;else _0x21497d['push'](_0x21497d['shift']());}catch(_0xa41c0e){_0x21497d['push'](_0x21497d['shift']());}}}(a99_0x5659,0x292e5));function a99_0x4d5b(_0x40f43b,_0x4e22f2){_0x40f43b=_0x40f43b-0x1a4;const _0x5659b3=a99_0x5659();let _0x4d5b38=_0x5659b3[_0x40f43b];return _0x4d5b38;}import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a99_0x586525(0x1e4),'high-risk-write':a99_0x586525(0x1aa)};function a99_0x5659(){const _0x1718bc=['type','join','flags','\x20<value>','\x20(required)','\x20\x20\x20\x20','\x20<command>\x20--help`\x20for\x20flag\x20details.','high-risk-write','\x20\x20[high-risk-write]','\x20project\x20init`\x20or\x20--appcode).','pretty','service','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20Run\x20`','12FGcDnu','48275MLTMtC','Requires\x20authentication\x20(run\x20`','\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','\x20<command>\x20[flags]','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','\x20auth`\x20first).','label','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','203080kNoAeL','\x20\x20GLOBAL\x20OPTIONS','tag','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20\x20\x20\x20•\x20','format','\x20|\x20','dryRun','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','Output\x20format','push','Skip\x20confirmation\x20prompt','map','223580VwLZEc','table','yes','239535TnKDGq','commands','default','795560PJFfWE','enum','\x20\x20\x20\x20$\x20','risk','command','requiresAppCode','\x20\x20USAGE','description','requiresAuth','hasFormat','\x20\x20COMMANDS','164412lSWpoL','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','\x20\x20Unknown\x20service:\x20','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','number','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','\x20[default:\x20','10lmbvvA','\x20\x20RISK:\x20','max','padEnd','1748436zczLax','\x20\x20[write]','length','boolean','json'];a99_0x5659=function(){return _0x1718bc;};return a99_0x5659();}export function generateCommandHelp(_0x473c88){const _0x51c246=a99_0x586525,_0x4f3ef3=[],_0x378794=CLI_BIN_NAME+'\x20'+_0x473c88[_0x51c246(0x1ad)]+'\x20'+_0x473c88[_0x51c246(0x1d1)];_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20'+_0x473c88[_0x51c246(0x1d4)]),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3['push']('\x20\x20USAGE'),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1a7)+_0x378794+_0x51c246(0x1b3)),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1e0)+_0x473c88[_0x51c246(0x1d0)]);_0x473c88['risk']===_0x51c246(0x1a9)&&_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1ae));_0x4f3ef3[_0x51c246(0x1c4)]('');if(_0x473c88['flags'][_0x51c246(0x1e5)]>0x0||_0x473c88[_0x51c246(0x1c1)]||_0x473c88[_0x51c246(0x1d6)]!==![]){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20FLAGS');const _0x19bcb4=buildAllFlags(_0x473c88),_0x1caeba=Math[_0x51c246(0x1e1)](..._0x19bcb4[_0x51c246(0x1c6)](_0x42e263=>formatFlagName(_0x42e263)[_0x51c246(0x1e5)]));for(const _0x4a2288 of _0x19bcb4){const _0x4260c0=formatFlagName(_0x4a2288)[_0x51c246(0x1e2)](_0x1caeba+0x2);let _0x27433e=_0x4a2288['description'];_0x4a2288[_0x51c246(0x1ce)]&&_0x4a2288['enum'][_0x51c246(0x1e5)]>0x0&&(_0x27433e+='\x20('+_0x4a2288[_0x51c246(0x1ce)][_0x51c246(0x1e9)](_0x51c246(0x1c0))+')'),_0x4a2288[_0x51c246(0x1cc)]!==undefined&&_0x4a2288['default']!==''&&(_0x27433e+=_0x51c246(0x1de)+_0x4a2288['default']+']'),_0x4a2288['required']&&(_0x27433e+=_0x51c246(0x1a6)),_0x4f3ef3['push'](_0x51c246(0x1a7)+_0x4260c0+_0x27433e);}_0x4f3ef3['push']('');}const _0x5698bd=[];_0x473c88[_0x51c246(0x1d5)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b2)+CLI_BIN_NAME+_0x51c246(0x1b7));_0x473c88[_0x51c246(0x1d2)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b4)+CLI_BIN_NAME+_0x51c246(0x1ab));if(_0x5698bd[_0x51c246(0x1e5)]>0x0){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20PREREQUISITES');for(const _0x3f6293 of _0x5698bd){_0x4f3ef3['push'](_0x51c246(0x1be)+_0x3f6293);}_0x4f3ef3['push']('');}return _0x4f3ef3[_0x51c246(0x1e9)]('\x0a');}export function generateServiceHelp(_0x5d22a7){const _0x456c59=a99_0x586525,_0x50c423=getServiceEntry(_0x5d22a7);if(!_0x50c423)return _0x456c59(0x1da)+_0x5d22a7+'\x0a';const _0x14083a=[];_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)]('\x20\x20'+_0x50c423[_0x456c59(0x1b8)]),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d3)),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1b5)),_0x14083a['push'](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d7));const _0x283666=Math['max'](..._0x50c423[_0x456c59(0x1cb)][_0x456c59(0x1c6)](_0x111254=>_0x111254[_0x456c59(0x1d1)][_0x456c59(0x1e5)]));for(const _0xa16547 of _0x50c423['commands']){const _0x4ad3d2=_0xa16547[_0x456c59(0x1bc)]??'';_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+_0xa16547[_0x456c59(0x1d1)]['padEnd'](_0x283666+0x2)+_0xa16547['description']+_0x4ad3d2);}return _0x14083a[_0x456c59(0x1c4)](''),_0x14083a['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1a8)),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1e9)]('\x0a');}export function generateFullHelp(){const _0x49816a=a99_0x586525,_0x19ac82=[];_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20Rabetbase\x20CLI'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d3)),_0x19ac82['push'](_0x49816a(0x1cf)+CLI_BIN_NAME+'\x20[global-options]\x20<service>\x20<command>\x20[flags]'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bb)),_0x19ac82['push'](_0x49816a(0x1b9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1c2)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table'),_0x19ac82['push'](_0x49816a(0x1b6)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bd)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1dd)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version'),_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d7)),_0x19ac82[_0x49816a(0x1c4)]('');for(const _0x2cbab1 of serviceRegistry){_0x19ac82[_0x49816a(0x1c4)]('\x20\x20'+_0x2cbab1[_0x49816a(0x1b8)]);const _0x54c012=_0x2cbab1['commands'][_0x49816a(0x1c6)](_0x27508d=>_0x2cbab1[_0x49816a(0x1ad)]+'\x20'+_0x27508d[_0x49816a(0x1d1)]),_0x2c5fcd=Math[_0x49816a(0x1e1)](..._0x54c012[_0x49816a(0x1c6)](_0x4cf203=>_0x4cf203[_0x49816a(0x1e5)]));for(let _0x2f1725=0x0;_0x2f1725<_0x2cbab1[_0x49816a(0x1cb)][_0x49816a(0x1e5)];_0x2f1725++){const _0x299454=_0x2cbab1[_0x49816a(0x1cb)][_0x2f1725],_0x333590=_0x299454[_0x49816a(0x1bc)]??'';_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1a7)+_0x54c012[_0x2f1725][_0x49816a(0x1e2)](_0x2c5fcd+0x2)+_0x299454[_0x49816a(0x1d4)]+_0x333590);}_0x19ac82[_0x49816a(0x1c4)]('');}return _0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1af)+CLI_BIN_NAME+_0x49816a(0x1db)),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1e9)]('\x0a');}function buildAllFlags(_0x39738f){const _0x57766a=a99_0x586525,_0x5c35dd=[..._0x39738f[_0x57766a(0x1a4)]];return _0x39738f['dryRun']&&_0x5c35dd[_0x57766a(0x1c4)]({'name':'dry-run','type':'boolean','description':'Preview\x20the\x20operation\x20without\x20executing'}),_0x39738f[_0x57766a(0x1d6)]!==![]&&_0x5c35dd[_0x57766a(0x1c4)]({'name':_0x57766a(0x1bf),'type':'string','default':'pretty','enum':[_0x57766a(0x1e7),_0x57766a(0x1ac),_0x57766a(0x1c8)],'description':_0x57766a(0x1c3)}),_0x39738f['risk']===_0x57766a(0x1a9)&&_0x5c35dd['push']({'name':_0x57766a(0x1c9),'type':_0x57766a(0x1e6),'description':_0x57766a(0x1c5)}),_0x5c35dd;}function formatFlagName(_0x26ce30){const _0x523d2c=a99_0x586525,_0x5dc73a=_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1e6)?'':_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1dc)?'\x20<n>':_0x523d2c(0x1a5);return'--'+_0x26ce30['name']+_0x5dc73a;}
1
+ function a99_0x195c(_0x3e0506,_0x5ce494){_0x3e0506=_0x3e0506-0x109;const _0x562e07=a99_0x562e();let _0x195c10=_0x562e07[_0x3e0506];return _0x195c10;}const a99_0x48000d=a99_0x195c;(function(_0x1c8f11,_0x43cdb5){const _0x486a9f=a99_0x195c,_0x4d20cd=_0x1c8f11();while(!![]){try{const _0x46b3c3=parseInt(_0x486a9f(0x144))/0x1+-parseInt(_0x486a9f(0x136))/0x2*(parseInt(_0x486a9f(0x14d))/0x3)+parseInt(_0x486a9f(0x13c))/0x4*(-parseInt(_0x486a9f(0x114))/0x5)+-parseInt(_0x486a9f(0x143))/0x6*(parseInt(_0x486a9f(0x134))/0x7)+-parseInt(_0x486a9f(0x118))/0x8*(-parseInt(_0x486a9f(0x11b))/0x9)+parseInt(_0x486a9f(0x13b))/0xa*(parseInt(_0x486a9f(0x150))/0xb)+parseInt(_0x486a9f(0x124))/0xc*(parseInt(_0x486a9f(0x147))/0xd);if(_0x46b3c3===_0x43cdb5)break;else _0x4d20cd['push'](_0x4d20cd['shift']());}catch(_0x4767c2){_0x4d20cd['push'](_0x4d20cd['shift']());}}}(a99_0x562e,0x30562));import{serviceRegistry,getServiceEntry}from'../commands/registry.js';function a99_0x562e(){const _0x4353fc=['\x20\x20\x20\x20$\x20','string','9kcowmK','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20[flags]','join','\x20\x20Run\x20`','flags','\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version','length','number','1697940BdjUPT','\x20\x20Rabetbase\x20CLI','description','\x20<command>\x20--help`\x20for\x20flag\x20details.','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table','max','requiresAuth','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','boolean','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','type','\x20\x20Unknown\x20service:\x20','\x20\x20[high-risk-write]','push','padEnd','name','7otCGdh','service','32960fKfqBi','command','label','\x20[global-options]\x20<service>\x20<command>\x20[flags]','pretty','2225210auWMfI','111652PVzDKG','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','Preview\x20the\x20operation\x20without\x20executing','Requires\x20appcode\x20(set\x20via\x20`','Output\x20format','hasFormat','\x20\x20\x20\x20','2228718sZQcWc','124747BdmTvb','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','13ZYTGnZ','commands','Requires\x20authentication\x20(run\x20`','table','\x20project\x20init`\x20or\x20--appcode).','\x20auth`\x20first).','12doEQBp','format','\x20\x20COMMANDS','11dghCUQ','required','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','\x20\x20[write]','json','\x20\x20FLAGS','default','\x20<value>','requiresAppCode','enum','dryRun','tag','\x20\x20PREREQUISITES','map','5udlIlI','\x20|\x20','\x20\x20USAGE','risk','1396072XzAvQD'];a99_0x562e=function(){return _0x4353fc;};return a99_0x562e();}import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a99_0x48000d(0x109),'high-risk-write':a99_0x48000d(0x130)};export function generateCommandHelp(_0x6d3ff8){const _0x507d74=a99_0x48000d,_0x4652a2=[],_0x403021=CLI_BIN_NAME+'\x20'+_0x6d3ff8[_0x507d74(0x135)]+'\x20'+_0x6d3ff8[_0x507d74(0x137)];_0x4652a2['push'](''),_0x4652a2['push']('\x20\x20'+_0x6d3ff8[_0x507d74(0x126)]),_0x4652a2['push'](''),_0x4652a2[_0x507d74(0x131)](_0x507d74(0x116)),_0x4652a2['push']('\x20\x20\x20\x20'+_0x403021+_0x507d74(0x11d)),_0x4652a2['push'](''),_0x4652a2[_0x507d74(0x131)]('\x20\x20RISK:\x20'+_0x6d3ff8['risk']);_0x6d3ff8[_0x507d74(0x117)]==='high-risk-write'&&_0x4652a2[_0x507d74(0x131)](_0x507d74(0x13d));_0x4652a2[_0x507d74(0x131)]('');if(_0x6d3ff8[_0x507d74(0x120)][_0x507d74(0x122)]>0x0||_0x6d3ff8[_0x507d74(0x110)]||_0x6d3ff8[_0x507d74(0x141)]!==![]){_0x4652a2[_0x507d74(0x131)](_0x507d74(0x10b));const _0x33ff43=buildAllFlags(_0x6d3ff8),_0x3e73c2=Math['max'](..._0x33ff43[_0x507d74(0x113)](_0x42a26e=>formatFlagName(_0x42a26e)[_0x507d74(0x122)]));for(const _0x2e219a of _0x33ff43){const _0xec2e4c=formatFlagName(_0x2e219a)[_0x507d74(0x132)](_0x3e73c2+0x2);let _0x196cfa=_0x2e219a[_0x507d74(0x126)];_0x2e219a[_0x507d74(0x10f)]&&_0x2e219a[_0x507d74(0x10f)]['length']>0x0&&(_0x196cfa+='\x20('+_0x2e219a[_0x507d74(0x10f)][_0x507d74(0x11e)](_0x507d74(0x115))+')'),_0x2e219a['default']!==undefined&&_0x2e219a[_0x507d74(0x10c)]!==''&&(_0x196cfa+='\x20[default:\x20'+_0x2e219a[_0x507d74(0x10c)]+']'),_0x2e219a[_0x507d74(0x151)]&&(_0x196cfa+='\x20(required)'),_0x4652a2[_0x507d74(0x131)](_0x507d74(0x142)+_0xec2e4c+_0x196cfa);}_0x4652a2['push']('');}const _0x1a756b=[];_0x6d3ff8[_0x507d74(0x12a)]!==![]&&_0x1a756b[_0x507d74(0x131)](_0x507d74(0x149)+CLI_BIN_NAME+_0x507d74(0x14c));_0x6d3ff8[_0x507d74(0x10e)]!==![]&&_0x1a756b[_0x507d74(0x131)](_0x507d74(0x13f)+CLI_BIN_NAME+_0x507d74(0x14b));if(_0x1a756b['length']>0x0){_0x4652a2[_0x507d74(0x131)](_0x507d74(0x112));for(const _0x1c1bcd of _0x1a756b){_0x4652a2['push']('\x20\x20\x20\x20•\x20'+_0x1c1bcd);}_0x4652a2[_0x507d74(0x131)]('');}return _0x4652a2[_0x507d74(0x11e)]('\x0a');}export function generateServiceHelp(_0x3693e3){const _0x4630f9=a99_0x48000d,_0x98dbc4=getServiceEntry(_0x3693e3);if(!_0x98dbc4)return _0x4630f9(0x12f)+_0x3693e3+'\x0a';const _0x815038=[];_0x815038['push'](''),_0x815038[_0x4630f9(0x131)]('\x20\x20'+_0x98dbc4[_0x4630f9(0x138)]),_0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)]('\x20\x20USAGE'),_0x815038['push']('\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20'+_0x3693e3+'\x20<command>\x20[flags]'),_0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)](_0x4630f9(0x14f));const _0x9eb87=Math['max'](..._0x98dbc4['commands']['map'](_0x5320c1=>_0x5320c1[_0x4630f9(0x137)][_0x4630f9(0x122)]));for(const _0x762bf6 of _0x98dbc4[_0x4630f9(0x148)]){const _0x1af845=_0x762bf6[_0x4630f9(0x111)]??'';_0x815038[_0x4630f9(0x131)](_0x4630f9(0x142)+_0x762bf6[_0x4630f9(0x137)][_0x4630f9(0x132)](_0x9eb87+0x2)+_0x762bf6[_0x4630f9(0x126)]+_0x1af845);}return _0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)](_0x4630f9(0x11f)+CLI_BIN_NAME+'\x20'+_0x3693e3+_0x4630f9(0x127)),_0x815038[_0x4630f9(0x131)](''),_0x815038['join']('\x0a');}export function generateFullHelp(){const _0x542ef3=a99_0x48000d,_0x272b2c=[];_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x125)),_0x272b2c['push'](''),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x116)),_0x272b2c['push'](_0x542ef3(0x119)+CLI_BIN_NAME+_0x542ef3(0x139)),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x131)]('\x20\x20GLOBAL\x20OPTIONS'),_0x272b2c['push'](_0x542ef3(0x12d)),_0x272b2c['push'](_0x542ef3(0x152)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x128)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x12b)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x11c)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x146)),_0x272b2c['push'](_0x542ef3(0x145)),_0x272b2c['push'](_0x542ef3(0x121)),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c['push']('\x20\x20COMMANDS'),_0x272b2c[_0x542ef3(0x131)]('');for(const _0x772706 of serviceRegistry){_0x272b2c[_0x542ef3(0x131)]('\x20\x20'+_0x772706[_0x542ef3(0x138)]);const _0x3ef22d=_0x772706[_0x542ef3(0x148)][_0x542ef3(0x113)](_0x3e5091=>_0x772706['service']+'\x20'+_0x3e5091[_0x542ef3(0x137)]),_0x573bc3=Math[_0x542ef3(0x129)](..._0x3ef22d[_0x542ef3(0x113)](_0x3ed321=>_0x3ed321[_0x542ef3(0x122)]));for(let _0x32553a=0x0;_0x32553a<_0x772706[_0x542ef3(0x148)][_0x542ef3(0x122)];_0x32553a++){const _0x3d41bc=_0x772706[_0x542ef3(0x148)][_0x32553a],_0x29a958=_0x3d41bc['tag']??'';_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x142)+_0x3ef22d[_0x32553a][_0x542ef3(0x132)](_0x573bc3+0x2)+_0x3d41bc[_0x542ef3(0x126)]+_0x29a958);}_0x272b2c['push']('');}return _0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x11f)+CLI_BIN_NAME+'\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.'),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x11e)]('\x0a');}function buildAllFlags(_0x1fa3f2){const _0x34f7c8=a99_0x48000d,_0x4af937=[..._0x1fa3f2[_0x34f7c8(0x120)]];return _0x1fa3f2[_0x34f7c8(0x110)]&&_0x4af937['push']({'name':'dry-run','type':_0x34f7c8(0x12c),'description':_0x34f7c8(0x13e)}),_0x1fa3f2[_0x34f7c8(0x141)]!==![]&&_0x4af937[_0x34f7c8(0x131)]({'name':_0x34f7c8(0x14e),'type':_0x34f7c8(0x11a),'default':'pretty','enum':[_0x34f7c8(0x10a),_0x34f7c8(0x13a),_0x34f7c8(0x14a)],'description':_0x34f7c8(0x140)}),_0x1fa3f2[_0x34f7c8(0x117)]==='high-risk-write'&&_0x4af937[_0x34f7c8(0x131)]({'name':'yes','type':_0x34f7c8(0x12c),'description':'Skip\x20confirmation\x20prompt'}),_0x4af937;}function formatFlagName(_0x4c1243){const _0xd9896d=a99_0x48000d,_0x2ffc11=_0x4c1243['type']==='boolean'?'':_0x4c1243[_0xd9896d(0x12e)]===_0xd9896d(0x123)?'\x20<n>':_0xd9896d(0x10d);return'--'+_0x4c1243[_0xd9896d(0x133)]+_0x2ffc11;}
@@ -1 +1 @@
1
- (function(_0x20b3b7,_0x107dce){var _0x2e8d17=a100_0x45c8,_0x569fc4=_0x20b3b7();while(!![]){try{var _0x28a2ad=-parseInt(_0x2e8d17(0xec))/0x1+-parseInt(_0x2e8d17(0xf2))/0x2+parseInt(_0x2e8d17(0xf5))/0x3+-parseInt(_0x2e8d17(0xf0))/0x4*(parseInt(_0x2e8d17(0xef))/0x5)+-parseInt(_0x2e8d17(0xf3))/0x6+-parseInt(_0x2e8d17(0xed))/0x7*(parseInt(_0x2e8d17(0xee))/0x8)+parseInt(_0x2e8d17(0xf4))/0x9*(parseInt(_0x2e8d17(0xf1))/0xa);if(_0x28a2ad===_0x107dce)break;else _0x569fc4['push'](_0x569fc4['shift']());}catch(_0x5d91c1){_0x569fc4['push'](_0x569fc4['shift']());}}}(a100_0x5f5a,0x7c78d));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';function a100_0x45c8(_0x2076a8,_0x5bd5d8){_0x2076a8=_0x2076a8-0xec;var _0x5f5a84=a100_0x5f5a();var _0x45c81c=_0x5f5a84[_0x2076a8];return _0x45c81c;}export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';function a100_0x5f5a(){var _0x288621=['1828468nbRpTh','1030zjgpYo','651888pVwOjb','2840910kTiCdj','165195OPxhdF','2508678cxfVrE','608831qQvbPX','144767zvgSql','136rEvQgV','5znhcxB'];a100_0x5f5a=function(){return _0x288621;};return a100_0x5f5a();}
1
+ (function(_0x6d67ef,_0x2774cd){var _0x55578b=a100_0x39cf,_0x137934=_0x6d67ef();while(!![]){try{var _0x339e0e=parseInt(_0x55578b(0x6d))/0x1+-parseInt(_0x55578b(0x68))/0x2+-parseInt(_0x55578b(0x6b))/0x3*(parseInt(_0x55578b(0x6e))/0x4)+-parseInt(_0x55578b(0x6a))/0x5+-parseInt(_0x55578b(0x67))/0x6*(-parseInt(_0x55578b(0x69))/0x7)+-parseInt(_0x55578b(0x66))/0x8+parseInt(_0x55578b(0x6c))/0x9*(parseInt(_0x55578b(0x6f))/0xa);if(_0x339e0e===_0x2774cd)break;else _0x137934['push'](_0x137934['shift']());}catch(_0x49509b){_0x137934['push'](_0x137934['shift']());}}}(a100_0x2990,0x96c98));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';function a100_0x2990(){var _0x2780aa=['1634752bnEyYN','623oJMzPb','411030EuWazy','3483615kXaFuv','9Iyrqjb','117409USDMBb','4vlFhpp','28213480hSpKjJ','9568024jewQFq','63078itijnF'];a100_0x2990=function(){return _0x2780aa;};return a100_0x2990();}function a100_0x39cf(_0x1b5dff,_0x419d68){_0x1b5dff=_0x1b5dff-0x66;var _0x299032=a100_0x2990();var _0x39cff7=_0x299032[_0x1b5dff];return _0x39cff7;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';
@@ -1 +1 @@
1
- function a101_0x5279(){const _0x39c803=['padEnd','26471Bypcux','28385410LVrdFt','8500184xnjneL','error','write','96MuTcYL','values','message','keys','140109uJLIbf','log','536328tHauHK','Unknown\x20error','risk','stringify','Error:\x20','join','isArray','command_error','9awbdVF','pretty','[dry-run]\x20Would\x20execute:','slice','dryRun','\x20items:\x0a','entries','4933796iRlUBt','data','(empty)','max','object','map','length','repeat','5080230ySkWkq','6BHdmxf'];a101_0x5279=function(){return _0x39c803;};return a101_0x5279();}(function(_0x20009c,_0x49e931){const _0x59ffef=a101_0x3503,_0x40446b=_0x20009c();while(!![]){try{const _0x35e2ad=-parseInt(_0x59ffef(0x1ba))/0x1+parseInt(_0x59ffef(0x1c5))/0x2+-parseInt(_0x59ffef(0x1c3))/0x3*(parseInt(_0x59ffef(0x1bf))/0x4)+-parseInt(_0x59ffef(0x1b7))/0x5*(parseInt(_0x59ffef(0x1b8))/0x6)+parseInt(_0x59ffef(0x1af))/0x7+parseInt(_0x59ffef(0x1bc))/0x8*(-parseInt(_0x59ffef(0x1a8))/0x9)+parseInt(_0x59ffef(0x1bb))/0xa;if(_0x35e2ad===_0x49e931)break;else _0x40446b['push'](_0x40446b['shift']());}catch(_0x29d822){_0x40446b['push'](_0x40446b['shift']());}}}(a101_0x5279,0x8ef95));export function formatOutput(_0x4c02c7,_0x3d4e37){const _0x423d88=a101_0x3503,{format:_0x34ab02}=_0x3d4e37;switch(_0x34ab02){case'json':printJson(_0x4c02c7,_0x3d4e37);break;case'table':printTable(_0x4c02c7,_0x3d4e37);break;case _0x423d88(0x1a9):default:printPretty(_0x4c02c7,_0x3d4e37);break;}}function printJson(_0x2319c2,_0x439e8b){const _0x38786b=a101_0x3503,_0xa3f55d={'ok':_0x2319c2['ok'],'command':_0x439e8b['command'],'risk':_0x439e8b[_0x38786b(0x1c7)]};if(_0x439e8b[_0x38786b(0x1ac)])_0xa3f55d['dryRun']=!![];if(_0x2319c2['data']!==undefined)_0xa3f55d['data']=_0x2319c2[_0x38786b(0x1b0)];!_0x2319c2['ok']&&_0x2319c2[_0x38786b(0x1c1)]&&(_0xa3f55d['error']={'code':_0x38786b(0x1a7),'message':_0x2319c2[_0x38786b(0x1c1)]}),process['stdout'][_0x38786b(0x1be)](JSON[_0x38786b(0x1a3)](_0xa3f55d,null,0x2)+'\x0a');}function printPretty(_0x88ccd5,_0x2c90a1){const _0xbfd07a=a101_0x3503;if(_0x2c90a1['dryRun']){console[_0xbfd07a(0x1c4)](_0xbfd07a(0x1aa)),console[_0xbfd07a(0x1c4)](JSON[_0xbfd07a(0x1a3)](_0x88ccd5['data'],null,0x2));return;}if(!_0x88ccd5['ok']){console[_0xbfd07a(0x1bd)]('Error:\x20'+(_0x88ccd5[_0xbfd07a(0x1c1)]??_0xbfd07a(0x1c6)));return;}const _0x1006c6=_0x88ccd5[_0xbfd07a(0x1b0)];if(_0x1006c6===undefined||_0x1006c6===null){if(_0x88ccd5[_0xbfd07a(0x1c1)])console['log'](_0x88ccd5[_0xbfd07a(0x1c1)]);return;}if(Array[_0xbfd07a(0x1a6)](_0x1006c6)){printArrayPretty(_0x1006c6);return;}if(typeof _0x1006c6===_0xbfd07a(0x1b3)){printObjectPretty(_0x1006c6);return;}console[_0xbfd07a(0x1c4)](String(_0x1006c6));}function a101_0x3503(_0x23c09e,_0x5cee14){_0x23c09e=_0x23c09e-0x1a3;const _0x5279ac=a101_0x5279();let _0x35033f=_0x5279ac[_0x23c09e];return _0x35033f;}function printObjectPretty(_0x1ec0f4){const _0x2135da=a101_0x3503,_0xca1dc7=Math[_0x2135da(0x1b2)](...Object[_0x2135da(0x1c2)](_0x1ec0f4)[_0x2135da(0x1b4)](_0x4501f8=>_0x4501f8[_0x2135da(0x1b5)]),0x0);for(const [_0x345989,_0x3fa732]of Object[_0x2135da(0x1ae)](_0x1ec0f4)){if(_0x3fa732===undefined||_0x3fa732===null)continue;const _0x37c099=_0x345989[_0x2135da(0x1b9)](_0xca1dc7);typeof _0x3fa732==='object'?console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+JSON[_0x2135da(0x1a3)](_0x3fa732)):console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+_0x3fa732);}}function printArrayPretty(_0x11628c){const _0x22d7ad=a101_0x3503;if(_0x11628c[_0x22d7ad(0x1b5)]===0x0){console['log'](_0x22d7ad(0x1b1));return;}console[_0x22d7ad(0x1c4)]('Found\x20'+_0x11628c[_0x22d7ad(0x1b5)]+_0x22d7ad(0x1ad));for(const _0x15320e of _0x11628c){if(typeof _0x15320e===_0x22d7ad(0x1b3)&&_0x15320e!==null){const _0x4e891b=Object[_0x22d7ad(0x1c0)](_0x15320e)[_0x22d7ad(0x1ab)](0x0,0x4)[_0x22d7ad(0x1a5)]('\x20\x20');console['log']('\x20\x20'+_0x4e891b);}else console[_0x22d7ad(0x1c4)]('\x20\x20'+_0x15320e);}}function printTable(_0x189726,_0x353beb){const _0x184534=a101_0x3503,_0x214484=_0x189726[_0x184534(0x1b0)];if(!_0x189726['ok']){console['error'](_0x184534(0x1a4)+(_0x189726[_0x184534(0x1c1)]??'Unknown\x20error'));return;}const _0x3a06d0=Array[_0x184534(0x1a6)](_0x214484)?_0x214484:_0x214484?[_0x214484]:[];if(_0x3a06d0[_0x184534(0x1b5)]===0x0){console['log'](_0x184534(0x1b1));return;}const _0x48f71a=Object['keys'](_0x3a06d0[0x0]),_0x54123b=_0x48f71a['map'](_0x195896=>Math[_0x184534(0x1b2)](_0x195896[_0x184534(0x1b5)],..._0x3a06d0[_0x184534(0x1b4)](_0x68321f=>String(_0x68321f[_0x195896]??'')['length']))),_0x36e766=_0x48f71a['map']((_0x4327d4,_0x5315bd)=>_0x4327d4[_0x184534(0x1b9)](_0x54123b[_0x5315bd]))[_0x184534(0x1a5)]('\x20\x20'),_0x27df45=_0x54123b[_0x184534(0x1b4)](_0x272f75=>'-'[_0x184534(0x1b6)](_0x272f75))[_0x184534(0x1a5)]('\x20\x20');console[_0x184534(0x1c4)](_0x36e766),console[_0x184534(0x1c4)](_0x27df45);for(const _0x2b8424 of _0x3a06d0){const _0x25d320=_0x48f71a['map']((_0x4f192c,_0x262b4e)=>String(_0x2b8424[_0x4f192c]??'')[_0x184534(0x1b9)](_0x54123b[_0x262b4e]))['join']('\x20\x20');console['log'](_0x25d320);}}
1
+ (function(_0x286b0c,_0x1695a5){const _0x362341=a101_0x5262,_0x1000ea=_0x286b0c();while(!![]){try{const _0x1b5a97=-parseInt(_0x362341(0x1c0))/0x1+parseInt(_0x362341(0x1c1))/0x2*(-parseInt(_0x362341(0x1bd))/0x3)+-parseInt(_0x362341(0x1c3))/0x4+parseInt(_0x362341(0x1d2))/0x5+-parseInt(_0x362341(0x1dd))/0x6*(parseInt(_0x362341(0x1bf))/0x7)+parseInt(_0x362341(0x1df))/0x8*(-parseInt(_0x362341(0x1ca))/0x9)+-parseInt(_0x362341(0x1c2))/0xa*(-parseInt(_0x362341(0x1d3))/0xb);if(_0x1b5a97===_0x1695a5)break;else _0x1000ea['push'](_0x1000ea['shift']());}catch(_0xe4b84e){_0x1000ea['push'](_0x1000ea['shift']());}}}(a101_0x7ed9,0x38a51));export function formatOutput(_0xc21cdb,_0x5a8b4c){const _0x1f282d=a101_0x5262,{format:_0x1a3d93}=_0x5a8b4c;switch(_0x1a3d93){case _0x1f282d(0x1d9):printJson(_0xc21cdb,_0x5a8b4c);break;case _0x1f282d(0x1da):printTable(_0xc21cdb,_0x5a8b4c);break;case _0x1f282d(0x1d5):default:printPretty(_0xc21cdb,_0x5a8b4c);break;}}function printJson(_0x554977,_0x2748d2){const _0x44be7d=a101_0x5262,_0x4a4a7a={'ok':_0x554977['ok'],'command':_0x2748d2[_0x44be7d(0x1d6)],'risk':_0x2748d2[_0x44be7d(0x1cd)]};if(_0x2748d2[_0x44be7d(0x1c7)])_0x4a4a7a[_0x44be7d(0x1c7)]=!![];if(_0x554977[_0x44be7d(0x1d7)]!==undefined)_0x4a4a7a[_0x44be7d(0x1d7)]=_0x554977[_0x44be7d(0x1d7)];!_0x554977['ok']&&_0x554977[_0x44be7d(0x1bb)]&&(_0x4a4a7a['error']={'code':_0x44be7d(0x1e1),'message':_0x554977[_0x44be7d(0x1bb)]}),process[_0x44be7d(0x1bc)][_0x44be7d(0x1d8)](JSON[_0x44be7d(0x1be)](_0x4a4a7a,null,0x2)+'\x0a');}function a101_0x7ed9(){const _0x59adb9=['command','data','write','json','table','log','Found\x20','12SZBicp','object','24CwNUsT','Unknown\x20error','command_error','keys','message','stdout','1284cGYVAe','stringify','720167DiVvWd','12622oYrNER','138SspJTf','1670zfWqru','452552lVUQCu','map','max','isArray','dryRun','values','error','270198McnDjF','repeat','join','risk','length','[dry-run]\x20Would\x20execute:','slice','(empty)','324515rqxzVE','40722xDrDdu','entries','pretty'];a101_0x7ed9=function(){return _0x59adb9;};return a101_0x7ed9();}function printPretty(_0x4304ef,_0x4c66c1){const _0x2639e1=a101_0x5262;if(_0x4c66c1[_0x2639e1(0x1c7)]){console[_0x2639e1(0x1db)](_0x2639e1(0x1cf)),console[_0x2639e1(0x1db)](JSON[_0x2639e1(0x1be)](_0x4304ef[_0x2639e1(0x1d7)],null,0x2));return;}if(!_0x4304ef['ok']){console[_0x2639e1(0x1c9)]('Error:\x20'+(_0x4304ef['message']??_0x2639e1(0x1e0)));return;}const _0x4d27f3=_0x4304ef[_0x2639e1(0x1d7)];if(_0x4d27f3===undefined||_0x4d27f3===null){if(_0x4304ef[_0x2639e1(0x1bb)])console[_0x2639e1(0x1db)](_0x4304ef[_0x2639e1(0x1bb)]);return;}if(Array[_0x2639e1(0x1c6)](_0x4d27f3)){printArrayPretty(_0x4d27f3);return;}if(typeof _0x4d27f3===_0x2639e1(0x1de)){printObjectPretty(_0x4d27f3);return;}console['log'](String(_0x4d27f3));}function a101_0x5262(_0x27a5b8,_0x335e88){_0x27a5b8=_0x27a5b8-0x1bb;const _0x7ed9e8=a101_0x7ed9();let _0x526252=_0x7ed9e8[_0x27a5b8];return _0x526252;}function printObjectPretty(_0x1a64b8){const _0x50a583=a101_0x5262,_0x4e6f1a=Math[_0x50a583(0x1c5)](...Object['keys'](_0x1a64b8)[_0x50a583(0x1c4)](_0x3752d3=>_0x3752d3[_0x50a583(0x1ce)]),0x0);for(const [_0x1a9cf7,_0x1e32b9]of Object[_0x50a583(0x1d4)](_0x1a64b8)){if(_0x1e32b9===undefined||_0x1e32b9===null)continue;const _0x3bd3a7=_0x1a9cf7['padEnd'](_0x4e6f1a);typeof _0x1e32b9==='object'?console[_0x50a583(0x1db)](_0x3bd3a7+'\x20\x20'+JSON[_0x50a583(0x1be)](_0x1e32b9)):console[_0x50a583(0x1db)](_0x3bd3a7+'\x20\x20'+_0x1e32b9);}}function printArrayPretty(_0x1fdaf6){const _0x25ae69=a101_0x5262;if(_0x1fdaf6['length']===0x0){console[_0x25ae69(0x1db)](_0x25ae69(0x1d1));return;}console['log'](_0x25ae69(0x1dc)+_0x1fdaf6[_0x25ae69(0x1ce)]+'\x20items:\x0a');for(const _0x2d8eba of _0x1fdaf6){if(typeof _0x2d8eba===_0x25ae69(0x1de)&&_0x2d8eba!==null){const _0x2e1216=Object[_0x25ae69(0x1c8)](_0x2d8eba)[_0x25ae69(0x1d0)](0x0,0x4)[_0x25ae69(0x1cc)]('\x20\x20');console[_0x25ae69(0x1db)]('\x20\x20'+_0x2e1216);}else console[_0x25ae69(0x1db)]('\x20\x20'+_0x2d8eba);}}function printTable(_0x4987b1,_0x4d5ea6){const _0x3d99f4=a101_0x5262,_0x7b41a5=_0x4987b1[_0x3d99f4(0x1d7)];if(!_0x4987b1['ok']){console[_0x3d99f4(0x1c9)]('Error:\x20'+(_0x4987b1[_0x3d99f4(0x1bb)]??_0x3d99f4(0x1e0)));return;}const _0x198b8e=Array[_0x3d99f4(0x1c6)](_0x7b41a5)?_0x7b41a5:_0x7b41a5?[_0x7b41a5]:[];if(_0x198b8e[_0x3d99f4(0x1ce)]===0x0){console[_0x3d99f4(0x1db)](_0x3d99f4(0x1d1));return;}const _0x10f7c7=Object[_0x3d99f4(0x1e2)](_0x198b8e[0x0]),_0x998671=_0x10f7c7['map'](_0x37a934=>Math[_0x3d99f4(0x1c5)](_0x37a934[_0x3d99f4(0x1ce)],..._0x198b8e[_0x3d99f4(0x1c4)](_0x4384f6=>String(_0x4384f6[_0x37a934]??'')[_0x3d99f4(0x1ce)]))),_0x19ecc5=_0x10f7c7[_0x3d99f4(0x1c4)]((_0x55c1d7,_0x28dd7c)=>_0x55c1d7['padEnd'](_0x998671[_0x28dd7c]))[_0x3d99f4(0x1cc)]('\x20\x20'),_0x3d07f6=_0x998671[_0x3d99f4(0x1c4)](_0x1f1e85=>'-'[_0x3d99f4(0x1cb)](_0x1f1e85))[_0x3d99f4(0x1cc)]('\x20\x20');console[_0x3d99f4(0x1db)](_0x19ecc5),console['log'](_0x3d07f6);for(const _0x252993 of _0x198b8e){const _0xe8e3e=_0x10f7c7[_0x3d99f4(0x1c4)]((_0x4a27e2,_0x4f6515)=>String(_0x252993[_0x4a27e2]??'')['padEnd'](_0x998671[_0x4f6515]))[_0x3d99f4(0x1cc)]('\x20\x20');console['log'](_0xe8e3e);}}
@@ -1 +1 @@
1
- (function(_0x36f3d1,_0x4c4b6e){var _0x32cd80=a102_0x3634,_0x26c2cc=_0x36f3d1();while(!![]){try{var _0x32834c=parseInt(_0x32cd80(0x9e))/0x1*(-parseInt(_0x32cd80(0x9d))/0x2)+parseInt(_0x32cd80(0x9b))/0x3*(parseInt(_0x32cd80(0xa0))/0x4)+parseInt(_0x32cd80(0x98))/0x5*(-parseInt(_0x32cd80(0x99))/0x6)+parseInt(_0x32cd80(0xa1))/0x7+parseInt(_0x32cd80(0x9f))/0x8+-parseInt(_0x32cd80(0xa3))/0x9*(-parseInt(_0x32cd80(0xa2))/0xa)+-parseInt(_0x32cd80(0x9c))/0xb*(-parseInt(_0x32cd80(0xa5))/0xc);if(_0x32834c===_0x4c4b6e)break;else _0x26c2cc['push'](_0x26c2cc['shift']());}catch(_0x359127){_0x26c2cc['push'](_0x26c2cc['shift']());}}}(a102_0x238d,0xd8a4b));export function extractList(_0x48d4fd){var _0x3c3cc1=a102_0x3634;if(Array[_0x3c3cc1(0x9a)](_0x48d4fd))return _0x48d4fd;if(_0x48d4fd&&typeof _0x48d4fd===_0x3c3cc1(0x97))return _0x48d4fd[_0x3c3cc1(0xa4)]??[];return[];}function a102_0x3634(_0x4b95c8,_0x3e5fe7){_0x4b95c8=_0x4b95c8-0x97;var _0x238d11=a102_0x238d();var _0x363491=_0x238d11[_0x4b95c8];return _0x363491;}export function extractPaging(_0x150606){var _0x4df71d=a102_0x3634;if(_0x150606&&typeof _0x150606==='object'&&!Array[_0x4df71d(0x9a)](_0x150606))return _0x150606['paging'];return undefined;}function a102_0x238d(){var _0x19baf2=['312763YTnrsH','4461944DHDmLk','30536XGYvwP','6158691fgXSCb','67090KVfDeF','414DcjAbY','tableData','213564ZvWpSb','object','75BVuGrC','445242pVUNRM','isArray','48muPcVR','275cWAzqS','2lRifZp'];a102_0x238d=function(){return _0x19baf2;};return a102_0x238d();}
1
+ (function(_0x747de,_0x2e3e41){var _0x50349b=a102_0x5423,_0x3b268d=_0x747de();while(!![]){try{var _0x456741=parseInt(_0x50349b(0x1e6))/0x1*(-parseInt(_0x50349b(0x1f1))/0x2)+-parseInt(_0x50349b(0x1e8))/0x3*(-parseInt(_0x50349b(0x1ed))/0x4)+-parseInt(_0x50349b(0x1ee))/0x5*(-parseInt(_0x50349b(0x1ea))/0x6)+parseInt(_0x50349b(0x1ec))/0x7+parseInt(_0x50349b(0x1e5))/0x8*(-parseInt(_0x50349b(0x1e1))/0x9)+parseInt(_0x50349b(0x1e3))/0xa*(-parseInt(_0x50349b(0x1e9))/0xb)+-parseInt(_0x50349b(0x1e2))/0xc*(-parseInt(_0x50349b(0x1e4))/0xd);if(_0x456741===_0x2e3e41)break;else _0x3b268d['push'](_0x3b268d['shift']());}catch(_0x7ce13c){_0x3b268d['push'](_0x3b268d['shift']());}}}(a102_0x3061,0x33475));function a102_0x3061(){var _0x40268e=['1702645WZctlp','8coxbnf','5AmjpZX','isArray','tableData','88VHToTS','34641qhaDzB','24jactWx','3250FrcPRZ','2505373sEDTpK','848vbmTEz','7223itCARF','object','194658dLcvTC','132iOyjpE','1087764tZzGHQ','paging'];a102_0x3061=function(){return _0x40268e;};return a102_0x3061();}function a102_0x5423(_0x19cddd,_0xe8100f){_0x19cddd=_0x19cddd-0x1e1;var _0x3061d5=a102_0x3061();var _0x542372=_0x3061d5[_0x19cddd];return _0x542372;}export function extractList(_0x18c5ef){var _0x579dde=a102_0x5423;if(Array[_0x579dde(0x1ef)](_0x18c5ef))return _0x18c5ef;if(_0x18c5ef&&typeof _0x18c5ef===_0x579dde(0x1e7))return _0x18c5ef[_0x579dde(0x1f0)]??[];return[];}export function extractPaging(_0x3af4a9){var _0x43cf9d=a102_0x5423;if(_0x3af4a9&&typeof _0x3af4a9===_0x43cf9d(0x1e7)&&!Array[_0x43cf9d(0x1ef)](_0x3af4a9))return _0x3af4a9[_0x43cf9d(0x1eb)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x1889ab,_0x1bee83){const _0x5d8e89=a103_0xbd54,_0x1f01b9=_0x1889ab();while(!![]){try{const _0x426d03=parseInt(_0x5d8e89(0x1eb))/0x1*(parseInt(_0x5d8e89(0x1d3))/0x2)+-parseInt(_0x5d8e89(0x1b8))/0x3*(parseInt(_0x5d8e89(0x1da))/0x4)+parseInt(_0x5d8e89(0x1e9))/0x5+-parseInt(_0x5d8e89(0x1ec))/0x6+-parseInt(_0x5d8e89(0x1ef))/0x7+-parseInt(_0x5d8e89(0x1dd))/0x8*(-parseInt(_0x5d8e89(0x1e1))/0x9)+parseInt(_0x5d8e89(0x1c1))/0xa*(parseInt(_0x5d8e89(0x1c8))/0xb);if(_0x426d03===_0x1bee83)break;else _0x1f01b9['push'](_0x1f01b9['shift']());}catch(_0x296e03){_0x1f01b9['push'](_0x1f01b9['shift']());}}}(a103_0x218b,0x9f30f));import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';function a103_0x218b(){const _0x371f28=['name','yes','some','json','Set\x20appcode\x20via\x20`','resolveApiDomain','\x20api\x20pull`\x20first.','validation','string','144717iTJeiz','selectedAppName','flags','high-risk-write','apiDir','authRequired','--dry-run\x20is\x20not\x20supported\x20for\x20`','.\x20Run\x20`','⚠\x20\x20High-risk\x20operation:\x20','70VLMfxG','rawFlags','`\x20has\x20risk\x20level\x20\x22','requiresAuth','configMissing','validate','service','4026264BMbiXm','createInterface','format','appCode','command','Command\x20`','cookie','defaultPageSize','Operation\x20cancelled\x20by\x20user.','isNonInteractive','verbose','2CIkBEf','risk','map','code','`\x20requires\x20either\x20--code\x20or\x20--alias.','node:readline','resolveCookie','76VxtfCB','resolveAppCode','\x22.\x0a','3833528XtLYKB','type','defaultVerbose','pretty','9Mnuwii','Unknown\x20alias\x20\x22','./src/api','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','../core/api-client.js','table','length','278785IYjsSJ','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','281291arQoVf','6562332InBUIc','toLowerCase','riskLevel','5012679Rfmtja','apiDomain','execute','cancelled','Available\x20aliases:\x20','nonInteractive','question','dryRun','stdin','defaultFormat','alias','dry-run'];a103_0x218b=function(){return _0x371f28;};return a103_0x218b();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x2f55e9,_0x39da02){const _0x32c1bc=a103_0xbd54,_0x405235=CLI_BIN_NAME+'\x20'+_0x2f55e9[_0x32c1bc(0x1c7)]+'\x20'+_0x2f55e9[_0x32c1bc(0x1cc)],_0x23d4a1=parseFlags(_0x2f55e9['flags'],_0x39da02[_0x32c1bc(0x1c2)]);validateFlags(_0x2f55e9[_0x32c1bc(0x1ba)],_0x23d4a1,_0x405235);if(!_0x23d4a1[_0x32c1bc(0x1ae)]&&_0x39da02[_0x32c1bc(0x1ee)]&&riskLevelOrder(_0x2f55e9['risk'])>riskLevelOrder(_0x39da02[_0x32c1bc(0x1ee)]))throw CliErrors['validation'](_0x32c1bc(0x1cd)+_0x405235+_0x32c1bc(0x1c3)+_0x2f55e9[_0x32c1bc(0x1d4)]+_0x32c1bc(0x1e5)+_0x39da02[_0x32c1bc(0x1ee)]+_0x32c1bc(0x1dc)+_0x32c1bc(0x1ea));const _0x2460c8=_0x39da02[_0x32c1bc(0x1bc)]||_0x32c1bc(0x1e3);resolveAliasToCode(_0x2f55e9,_0x23d4a1,_0x2460c8,_0x405235);let _0x3c4d47='';if(_0x2f55e9[_0x32c1bc(0x1c4)]!==![]){_0x3c4d47=_0x39da02[_0x32c1bc(0x1d9)]();if(!_0x3c4d47)throw CliErrors[_0x32c1bc(0x1bd)]();const {setActiveCookie:_0x4b1b05}=await import(_0x32c1bc(0x1e6));_0x4b1b05(_0x3c4d47);}let _0x166575='';if(_0x2f55e9['requiresAppCode']!==![]){_0x166575=_0x39da02[_0x32c1bc(0x1db)]()??'';if(!_0x166575)throw CliErrors[_0x32c1bc(0x1c5)](_0x32c1bc(0x1b3)+CLI_BIN_NAME+_0x32c1bc(0x1e4));}const _0x21d44f=resolveFormat(_0x23d4a1,_0x2f55e9,_0x39da02[_0x32c1bc(0x1ac)]),_0x44abb6=buildRuntimeContext({'appCode':_0x166575,'cookie':_0x3c4d47,'apiDomain':_0x39da02[_0x32c1bc(0x1b4)](),'format':_0x21d44f,'flags':_0x23d4a1,'def':_0x2f55e9,'nonInteractive':_0x39da02[_0x32c1bc(0x1d1)],'defaultPageSize':_0x39da02[_0x32c1bc(0x1cf)],'defaultVerbose':_0x39da02[_0x32c1bc(0x1df)],'apiDir':_0x2460c8,'selectedAppName':_0x39da02['selectedAppName']});_0x2f55e9['validate']&&await _0x2f55e9[_0x32c1bc(0x1c6)](_0x44abb6);if(_0x23d4a1['dry-run']){if(!_0x2f55e9[_0x32c1bc(0x1f6)])throw CliErrors['validation'](_0x32c1bc(0x1be)+_0x405235+'`.');const _0x3cc8c7=await _0x2f55e9[_0x32c1bc(0x1f6)](_0x44abb6);formatOutput({'ok':!![],'data':_0x3cc8c7},{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f,'dryRun':!![]});return;}if(_0x2f55e9[_0x32c1bc(0x1d4)]===_0x32c1bc(0x1bb)&&!_0x23d4a1[_0x32c1bc(0x1b0)]){if(_0x39da02['isNonInteractive'])throw CliErrors[_0x32c1bc(0x1b6)]('High-risk\x20operation\x20`'+_0x405235+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x405235);}const _0x2554c0=await _0x2f55e9[_0x32c1bc(0x1f1)](_0x44abb6);formatOutput(_0x2554c0,{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f});}function buildRuntimeContext(_0x5e4139){const _0xb036ce=a103_0xbd54,{flags:_0x56c40d,def:_0x334b62}=_0x5e4139,_0x3b6950=CLI_BIN_NAME+'\x20'+_0x334b62['service']+'\x20'+_0x334b62['command'];return{'appCode':_0x5e4139[_0xb036ce(0x1cb)],'cookie':_0x5e4139[_0xb036ce(0x1ce)],'apiDomain':_0x5e4139[_0xb036ce(0x1f0)],'format':_0x5e4139[_0xb036ce(0x1ca)],'nonInteractive':_0x5e4139[_0xb036ce(0x1f4)],'apiDir':_0x5e4139[_0xb036ce(0x1bc)],'selectedAppName':_0x5e4139[_0xb036ce(0x1b9)],'str'(_0x3eca55){return String(_0x56c40d[_0x3eca55]??'');},'bool'(_0x48425e){const _0x38f102=_0xb036ce;if(_0x56c40d[_0x48425e]===!![])return!![];if(_0x48425e===_0x38f102(0x1d2)&&_0x5e4139['defaultVerbose'])return!![];return![];},'num'(_0x19fc5f,_0x62f137){const _0x59c6cb=_0xb036ce,_0x24ab61=_0x56c40d[_0x19fc5f];if(typeof _0x24ab61==='number')return _0x24ab61;if(_0x19fc5f==='pagesize'&&_0x5e4139['defaultPageSize']!=null)return _0x5e4139[_0x59c6cb(0x1cf)];return _0x62f137??0x0;},'flag'(_0x2eb17e){return _0x56c40d[_0x2eb17e];},'output'(_0x4b1e){const _0x282026=_0xb036ce;formatOutput(_0x4b1e,{'command':_0x3b6950,'risk':_0x334b62[_0x282026(0x1d4)],'format':_0x5e4139[_0x282026(0x1ca)]});}};}function a103_0xbd54(_0x2dd9b0,_0x39ca08){_0x2dd9b0=_0x2dd9b0-0x1ac;const _0x218b43=a103_0x218b();let _0xbd548b=_0x218b43[_0x2dd9b0];return _0xbd548b;}function resolveFormat(_0x3532a8,_0x24549e,_0x4430a8){const _0x258f32=a103_0xbd54;if(_0x24549e['hasFormat']===![])return _0x258f32(0x1e0);const _0x164699=_0x3532a8['format'];if(_0x164699===_0x258f32(0x1b2)||_0x164699==='pretty'||_0x164699===_0x258f32(0x1e7))return _0x164699;if(_0x4430a8)return _0x4430a8;return _0x258f32(0x1e0);}async function requireConfirmation(_0x34b871){const _0x1c60b3=a103_0xbd54,_0x10448b=await import(_0x1c60b3(0x1d8)),_0xe310ae=_0x10448b[_0x1c60b3(0x1c9)]({'input':process[_0x1c60b3(0x1f7)],'output':process['stderr']});return new Promise((_0x4b5819,_0x2b04ea)=>{const _0x5e7975=_0x1c60b3;_0xe310ae[_0x5e7975(0x1f5)](_0x5e7975(0x1c0)+_0x34b871+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x1f971f=>{const _0x2d4c03=_0x5e7975;_0xe310ae['close'](),_0x1f971f[_0x2d4c03(0x1ed)]()==='y'||_0x1f971f[_0x2d4c03(0x1ed)]()===_0x2d4c03(0x1b0)?_0x4b5819():_0x2b04ea(CliErrors[_0x2d4c03(0x1f2)](_0x2d4c03(0x1d0)));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x37e503){return RISK_ORDER[_0x37e503??'read']??0x0;}function resolveAliasToCode(_0x4acad8,_0x554ada,_0x4f514f,_0x519f3b){const _0xf766bc=a103_0xbd54,_0x3eba88=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x3991f2=>_0x3991f2['name']==='code'&&_0x3991f2[_0xf766bc(0x1de)]===_0xf766bc(0x1b7)),_0x5506e4=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x543756=>_0x543756[_0xf766bc(0x1af)]==='alias'&&_0x543756[_0xf766bc(0x1de)]===_0xf766bc(0x1b7));if(!_0x3eba88||!_0x5506e4)return;const _0x30d9b5=_0x554ada[_0xf766bc(0x1d6)]?String(_0x554ada['code']):'',_0x5448fc=_0x554ada['alias']?String(_0x554ada['alias']):'';if(!_0x30d9b5&&!_0x5448fc)throw CliErrors['validation']('`'+_0x519f3b+_0xf766bc(0x1d7));if(_0x5448fc&&!_0x30d9b5){const _0x3b0aea=resolveAlias(_0x4f514f,_0x5448fc);if(!_0x3b0aea){const _0x55ae44=listAliases(_0x4f514f)[_0xf766bc(0x1d5)](_0x43603a=>_0x43603a[_0xf766bc(0x1ad)]),_0x575756=_0x55ae44[_0xf766bc(0x1e8)]?_0xf766bc(0x1f3)+_0x55ae44['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4f514f+_0xf766bc(0x1bf)+CLI_BIN_NAME+_0xf766bc(0x1b5);throw CliErrors['validation'](_0xf766bc(0x1e2)+_0x5448fc+'\x22.\x20'+_0x575756);}_0x554ada[_0xf766bc(0x1d6)]=_0x3b0aea;}}
1
+ (function(_0x2ad9f2,_0x284420){const _0x5e4950=a103_0x24a6,_0x1719e6=_0x2ad9f2();while(!![]){try{const _0x24cefe=parseInt(_0x5e4950(0x1cd))/0x1+parseInt(_0x5e4950(0x1fa))/0x2+-parseInt(_0x5e4950(0x1ee))/0x3+-parseInt(_0x5e4950(0x1e2))/0x4+parseInt(_0x5e4950(0x1fb))/0x5*(-parseInt(_0x5e4950(0x1d6))/0x6)+-parseInt(_0x5e4950(0x1f6))/0x7+-parseInt(_0x5e4950(0x1c6))/0x8*(-parseInt(_0x5e4950(0x1f7))/0x9);if(_0x24cefe===_0x284420)break;else _0x1719e6['push'](_0x1719e6['shift']());}catch(_0x704152){_0x1719e6['push'](_0x1719e6['shift']());}}}(a103_0x3135,0xbdf4a));import{parseFlags,validateFlags}from'./flags.js';function a103_0x24a6(_0x58ecb7,_0x486a52){_0x58ecb7=_0x58ecb7-0x1b7;const _0x31359c=a103_0x3135();let _0x24a6cb=_0x31359c[_0x58ecb7];return _0x24a6cb;}import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';function a103_0x3135(){const _0x145561=['map','defaultVerbose','cookie','command','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','rawFlags','length','question','14344496YiPxDj','format','node:readline','`\x20has\x20risk\x20level\x20\x22','defaultPageSize','yes','apiDir','570809aZsiQu','cancelled','number','defaultFormat','name','read','authRequired','alias','risk','234ThegXt','resolveAppCode','nonInteractive','selectedAppName','No\x20api.ts\x20found\x20in\x20','code','dry-run','requiresAppCode','pretty','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','some','--dry-run\x20is\x20not\x20supported\x20for\x20`','370228eIPiuY','⚠\x20\x20High-risk\x20operation:\x20','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','requiresAuth','stderr','configMissing','dryRun','flags','isNonInteractive','toLowerCase','hasFormat','type','869250qHPsoO','riskLevel','createInterface','Command\x20`','service','execute','Unknown\x20alias\x20\x22','resolveApiDomain','8897714zZjCkW','9IDwzJr','table','resolveCookie','754044FUaQrB','39670qvvfyN','pagesize','string','json','validation','\x22.\x20','apiDomain','\x20api\x20pull`\x20first.','validate'];a103_0x3135=function(){return _0x145561;};return a103_0x3135();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x233aa7,_0x239c80){const _0x50029e=a103_0x24a6,_0x5977f4=CLI_BIN_NAME+'\x20'+_0x233aa7[_0x50029e(0x1f2)]+'\x20'+_0x233aa7[_0x50029e(0x1c0)],_0x23cfbe=parseFlags(_0x233aa7['flags'],_0x239c80[_0x50029e(0x1c3)]);validateFlags(_0x233aa7['flags'],_0x23cfbe,_0x5977f4);if(!_0x23cfbe[_0x50029e(0x1dc)]&&_0x239c80['riskLevel']&&riskLevelOrder(_0x233aa7[_0x50029e(0x1d5)])>riskLevelOrder(_0x239c80['riskLevel']))throw CliErrors[_0x50029e(0x1b8)](_0x50029e(0x1f1)+_0x5977f4+_0x50029e(0x1c9)+_0x233aa7[_0x50029e(0x1d5)]+_0x50029e(0x1e4)+_0x239c80[_0x50029e(0x1ef)]+'\x22.\x0a'+_0x50029e(0x1df));const _0x1e73e3=_0x239c80['apiDir']||'./src/api';resolveAliasToCode(_0x233aa7,_0x23cfbe,_0x1e73e3,_0x5977f4);let _0x359d5b='';if(_0x233aa7[_0x50029e(0x1e5)]!==![]){_0x359d5b=_0x239c80[_0x50029e(0x1f9)]();if(!_0x359d5b)throw CliErrors[_0x50029e(0x1d3)]();const {setActiveCookie:_0x22e30d}=await import('../core/api-client.js');_0x22e30d(_0x359d5b);}let _0x210db8='';if(_0x233aa7[_0x50029e(0x1dd)]!==![]){_0x210db8=_0x239c80[_0x50029e(0x1d7)]()??'';if(!_0x210db8)throw CliErrors[_0x50029e(0x1e7)](_0x50029e(0x1c2)+CLI_BIN_NAME+_0x50029e(0x1c1));}const _0x3ed302=resolveFormat(_0x23cfbe,_0x233aa7,_0x239c80[_0x50029e(0x1d0)]),_0x1b14fc=buildRuntimeContext({'appCode':_0x210db8,'cookie':_0x359d5b,'apiDomain':_0x239c80[_0x50029e(0x1f5)](),'format':_0x3ed302,'flags':_0x23cfbe,'def':_0x233aa7,'nonInteractive':_0x239c80['isNonInteractive'],'defaultPageSize':_0x239c80[_0x50029e(0x1ca)],'defaultVerbose':_0x239c80[_0x50029e(0x1be)],'apiDir':_0x1e73e3,'selectedAppName':_0x239c80['selectedAppName']});_0x233aa7[_0x50029e(0x1bc)]&&await _0x233aa7[_0x50029e(0x1bc)](_0x1b14fc);if(_0x23cfbe[_0x50029e(0x1dc)]){if(!_0x233aa7['dryRun'])throw CliErrors[_0x50029e(0x1b8)](_0x50029e(0x1e1)+_0x5977f4+'`.');const _0x701607=await _0x233aa7[_0x50029e(0x1e8)](_0x1b14fc);formatOutput({'ok':!![],'data':_0x701607},{'command':_0x5977f4,'risk':_0x233aa7['risk'],'format':_0x3ed302,'dryRun':!![]});return;}if(_0x233aa7['risk']==='high-risk-write'&&!_0x23cfbe['yes']){if(_0x239c80[_0x50029e(0x1ea)])throw CliErrors[_0x50029e(0x1b8)]('High-risk\x20operation\x20`'+_0x5977f4+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x5977f4);}const _0x510407=await _0x233aa7[_0x50029e(0x1f3)](_0x1b14fc);formatOutput(_0x510407,{'command':_0x5977f4,'risk':_0x233aa7[_0x50029e(0x1d5)],'format':_0x3ed302});}function buildRuntimeContext(_0x2fe6d2){const _0x4c0d87=a103_0x24a6,{flags:_0x19d3d8,def:_0x20586b}=_0x2fe6d2,_0x1824db=CLI_BIN_NAME+'\x20'+_0x20586b[_0x4c0d87(0x1f2)]+'\x20'+_0x20586b[_0x4c0d87(0x1c0)];return{'appCode':_0x2fe6d2['appCode'],'cookie':_0x2fe6d2[_0x4c0d87(0x1bf)],'apiDomain':_0x2fe6d2[_0x4c0d87(0x1ba)],'format':_0x2fe6d2[_0x4c0d87(0x1c7)],'nonInteractive':_0x2fe6d2[_0x4c0d87(0x1d8)],'apiDir':_0x2fe6d2[_0x4c0d87(0x1cc)],'selectedAppName':_0x2fe6d2[_0x4c0d87(0x1d9)],'str'(_0x5d7ec3){return String(_0x19d3d8[_0x5d7ec3]??'');},'bool'(_0x566dd8){const _0xde4e31=_0x4c0d87;if(_0x19d3d8[_0x566dd8]===!![])return!![];if(_0x566dd8==='verbose'&&_0x2fe6d2[_0xde4e31(0x1be)])return!![];return![];},'num'(_0x4ad959,_0x2bae7e){const _0x403c98=_0x4c0d87,_0xb069fc=_0x19d3d8[_0x4ad959];if(typeof _0xb069fc===_0x403c98(0x1cf))return _0xb069fc;if(_0x4ad959===_0x403c98(0x1fc)&&_0x2fe6d2[_0x403c98(0x1ca)]!=null)return _0x2fe6d2[_0x403c98(0x1ca)];return _0x2bae7e??0x0;},'flag'(_0x21e1a5){return _0x19d3d8[_0x21e1a5];},'output'(_0x20f0d4){const _0x328ff8=_0x4c0d87;formatOutput(_0x20f0d4,{'command':_0x1824db,'risk':_0x20586b[_0x328ff8(0x1d5)],'format':_0x2fe6d2['format']});}};}function resolveFormat(_0x479b88,_0x2b67f3,_0x4ef4f7){const _0x33f0aa=a103_0x24a6;if(_0x2b67f3[_0x33f0aa(0x1ec)]===![])return _0x33f0aa(0x1de);const _0x343a5c=_0x479b88[_0x33f0aa(0x1c7)];if(_0x343a5c===_0x33f0aa(0x1b7)||_0x343a5c===_0x33f0aa(0x1de)||_0x343a5c===_0x33f0aa(0x1f8))return _0x343a5c;if(_0x4ef4f7)return _0x4ef4f7;return _0x33f0aa(0x1de);}async function requireConfirmation(_0x3a94fb){const _0x750987=a103_0x24a6,_0x148902=await import(_0x750987(0x1c8)),_0x2ed4e3=_0x148902[_0x750987(0x1f0)]({'input':process['stdin'],'output':process[_0x750987(0x1e6)]});return new Promise((_0x3c5f67,_0x5f1e07)=>{const _0xbfdfdd=_0x750987;_0x2ed4e3[_0xbfdfdd(0x1c5)](_0xbfdfdd(0x1e3)+_0x3a94fb+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x15033a=>{const _0x3528ff=_0xbfdfdd;_0x2ed4e3['close'](),_0x15033a[_0x3528ff(0x1eb)]()==='y'||_0x15033a[_0x3528ff(0x1eb)]()===_0x3528ff(0x1cb)?_0x3c5f67():_0x5f1e07(CliErrors[_0x3528ff(0x1ce)]('Operation\x20cancelled\x20by\x20user.'));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x1df2ae){const _0x2f2953=a103_0x24a6;return RISK_ORDER[_0x1df2ae??_0x2f2953(0x1d2)]??0x0;}function resolveAliasToCode(_0x180c12,_0x2e3756,_0x235361,_0xe3ea85){const _0x68c078=a103_0x24a6,_0x2dfc99=_0x180c12['flags'][_0x68c078(0x1e0)](_0x30b6b0=>_0x30b6b0[_0x68c078(0x1d1)]==='code'&&_0x30b6b0[_0x68c078(0x1ed)]===_0x68c078(0x1fd)),_0x220ebc=_0x180c12[_0x68c078(0x1e9)]['some'](_0x492c3b=>_0x492c3b['name']==='alias'&&_0x492c3b[_0x68c078(0x1ed)]==='string');if(!_0x2dfc99||!_0x220ebc)return;const _0x474aed=_0x2e3756['code']?String(_0x2e3756['code']):'',_0x3017cf=_0x2e3756[_0x68c078(0x1d4)]?String(_0x2e3756[_0x68c078(0x1d4)]):'';if(!_0x474aed&&!_0x3017cf)throw CliErrors['validation']('`'+_0xe3ea85+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x3017cf&&!_0x474aed){const _0x3e6fa6=resolveAlias(_0x235361,_0x3017cf);if(!_0x3e6fa6){const _0x227f8e=listAliases(_0x235361)[_0x68c078(0x1bd)](_0x22bf4b=>_0x22bf4b[_0x68c078(0x1d4)]),_0x1cd7f4=_0x227f8e[_0x68c078(0x1c4)]?'Available\x20aliases:\x20'+_0x227f8e['join'](',\x20'):_0x68c078(0x1da)+_0x235361+'.\x20Run\x20`'+CLI_BIN_NAME+_0x68c078(0x1bb);throw CliErrors['validation'](_0x68c078(0x1f4)+_0x3017cf+_0x68c078(0x1b9)+_0x1cd7f4);}_0x2e3756[_0x68c078(0x1db)]=_0x3e6fa6;}}
@@ -1 +1 @@
1
- export const BUILD_NUMBER=0x35;
1
+ export const BUILD_NUMBER=0x36;
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x38cec5,_0x154f33){var _0x437800=a106_0x5353,_0x4d3f92=_0x38cec5();while(!![]){try{var _0x562131=-parseInt(_0x437800(0xb3))/0x1+parseInt(_0x437800(0xac))/0x2+parseInt(_0x437800(0xb0))/0x3*(parseInt(_0x437800(0xb5))/0x4)+parseInt(_0x437800(0xad))/0x5+parseInt(_0x437800(0xb4))/0x6+-parseInt(_0x437800(0xa9))/0x7+parseInt(_0x437800(0xaf))/0x8*(-parseInt(_0x437800(0xb1))/0x9);if(_0x562131===_0x154f33)break;else _0x4d3f92['push'](_0x4d3f92['shift']());}catch(_0x2e5700){_0x4d3f92['push'](_0x4d3f92['shift']());}}}(a106_0x4926,0x2f4f5));function a106_0x5353(_0x3acba8,_0x4b59f9){_0x3acba8=_0x3acba8-0xa9;var _0x49261b=a106_0x4926();var _0x535303=_0x49261b[_0x3acba8];return _0x535303;}import{jsx as a106_0x4541c5,jsxs as a106_0x5cf18a}from'react/jsx-runtime';import{Box,Text}from'ink';function a106_0x4926(){var _0x4de9ea=['343366gBWyzv','1904720mJtyQs','\x20to\x20view\x20available\x20commands.','16NGwyHV','9ffZDgO','491823cisdjT','\x20--help','374949gyDJvX','698496NGwHlk','415464eHLVXn','2118319yrqEOI','green','\x20\x20Use\x20'];a106_0x4926=function(){return _0x4de9ea;};return a106_0x4926();}import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x331fe7=a106_0x5353;return a106_0x5cf18a(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a106_0x4541c5(Box,{'children':a106_0x4541c5(Text,{'bold':!![],'color':_0x331fe7(0xaa),'children':'\x20\x20Rabetbase\x20CLI'})}),a106_0x5cf18a(Box,{'marginTop':0x1,'children':[a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xab)}),a106_0x4541c5(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x331fe7(0xb2)}),a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xae)})]})]});}
1
+ (function(_0x2080c6,_0xd51ee){var _0x898e6c=a106_0x4485,_0x10945d=_0x2080c6();while(!![]){try{var _0x32f51f=-parseInt(_0x898e6c(0x87))/0x1+-parseInt(_0x898e6c(0x91))/0x2*(-parseInt(_0x898e6c(0x88))/0x3)+parseInt(_0x898e6c(0x8f))/0x4+parseInt(_0x898e6c(0x93))/0x5*(-parseInt(_0x898e6c(0x90))/0x6)+parseInt(_0x898e6c(0x8a))/0x7*(-parseInt(_0x898e6c(0x8d))/0x8)+parseInt(_0x898e6c(0x8c))/0x9*(parseInt(_0x898e6c(0x86))/0xa)+parseInt(_0x898e6c(0x92))/0xb*(parseInt(_0x898e6c(0x89))/0xc);if(_0x32f51f===_0xd51ee)break;else _0x10945d['push'](_0x10945d['shift']());}catch(_0x4aad1d){_0x10945d['push'](_0x10945d['shift']());}}}(a106_0x5d12,0x4dd59));function a106_0x4485(_0x3c7c7b,_0x447433){_0x3c7c7b=_0x3c7c7b-0x86;var _0x5d1284=a106_0x5d12();var _0x44852c=_0x5d1284[_0x3c7c7b];return _0x44852c;}function a106_0x5d12(){var _0x328e43=['138352NPXLbY','18DxUwfD','552472MyRdyM','11143GhBajy','754340EYfZro','green','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','470MGSdee','111324gKefRh','3SSvJxg','8496KgchLS','84MHZTLB','\x20--help','69723EfQbTO','339600slDtLr','\x20\x20Rabetbase\x20CLI'];a106_0x5d12=function(){return _0x328e43;};return a106_0x5d12();}import{jsx as a106_0x679fe0,jsxs as a106_0x1f0dc4}from'react/jsx-runtime';import{Box,Text}from'ink';import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x54e763=a106_0x4485;return a106_0x1f0dc4(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a106_0x679fe0(Box,{'children':a106_0x679fe0(Text,{'bold':!![],'color':_0x54e763(0x94),'children':_0x54e763(0x8e)})}),a106_0x1f0dc4(Box,{'marginTop':0x1,'children':[a106_0x679fe0(Text,{'dimColor':!![],'children':_0x54e763(0x95)}),a106_0x679fe0(Text,{'bold':!![],'color':_0x54e763(0x94),'children':CLI_BIN_NAME+_0x54e763(0x8b)}),a106_0x679fe0(Text,{'dimColor':!![],'children':_0x54e763(0x96)})]})]});}
package/lib/init/main.js CHANGED
@@ -1 +1 @@
1
- const a107_0x398561=a107_0x429d;(function(_0x20cd3f,_0x58077f){const _0x1f339a=a107_0x429d,_0xbaf0a9=_0x20cd3f();while(!![]){try{const _0x245a14=-parseInt(_0x1f339a(0x1fe))/0x1+parseInt(_0x1f339a(0x1ce))/0x2+-parseInt(_0x1f339a(0x203))/0x3*(-parseInt(_0x1f339a(0x204))/0x4)+-parseInt(_0x1f339a(0x1e3))/0x5*(parseInt(_0x1f339a(0x200))/0x6)+-parseInt(_0x1f339a(0x20b))/0x7+parseInt(_0x1f339a(0x1f3))/0x8*(-parseInt(_0x1f339a(0x1ef))/0x9)+parseInt(_0x1f339a(0x1e5))/0xa*(parseInt(_0x1f339a(0x205))/0xb);if(_0x245a14===_0x58077f)break;else _0xbaf0a9['push'](_0xbaf0a9['shift']());}catch(_0x40cb80){_0xbaf0a9['push'](_0xbaf0a9['shift']());}}}(a107_0x5db5,0x55a44));import{jsxs as a107_0x1eda89,jsx as a107_0x394fba}from'react/jsx-runtime';import{useState,useEffect}from'react';function a107_0x5db5(){const _0x40f15d=['cyan','slice','error','assign','toLocaleString','red','appcode','keys','parse','\x20←\x20','Old\x20file\x20backed\x20up\x20as\x20','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','7500DeExTR','Checking\x20existing\x20configuration...','5037490QmCXML','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','创建配置文件失败','init','Initializing\x20configuration\x20file...','migrating-input','初始化项目配置文件成功','info','version','column','4437081vqobUI','Migrating\x20legacy\x20config...','../..','string','8hmzrZM','split','message','test','App\x20Code\x20cannot\x20exceed\x20100\x20characters','升级配置文件失败','pop','checking','production','env','init-input','537675XqrrcC','return','1716KZyyvZ','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','1.0.0','3TbhCuq','1303484DybaET','33oCMHPv','legacy\x20config','escape','Upgrade\x20it\x20to\x20','.lovrabetrc','yellow','1926771NZXvCL','Invalid\x20App\x20Code','.lovrabet.json','delete','cwd','App\x20Code\x20cannot\x20be\x20empty','从旧配置文件升级成功','success','.bak','trim','ctrl','gray','app','green','migrating','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','package.json','utf8','Error:\x20','497214pojDaa','length','setLogPath','✓\x20Upgraded\x20','createdAt','[Y/n]','AppCode','exit'];a107_0x5db5=function(){return _0x40f15d;};return a107_0x5db5();}import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';function a107_0x429d(_0x37fe21,_0x160731){_0x37fe21=_0x37fe21-0x1c7;const _0x5db52d=a107_0x5db5();let _0x429d5f=_0x5db52d[_0x37fe21];return _0x429d5f;}import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a107_0x398561(0x20d),a107_0x398561(0x209)];export function Init({appcode:_0x2de8a8,env:_0x34cc44,autoYes:_0x41f57c}){const _0x6ee34c=a107_0x398561,[_0x1db42b,_0x4f1f3c]=useState(_0x6ee34c(0x1fa)),[_0xe7ce63,_0x314fa7]=useState(null),[_0x2da685,_0x4145d6]=useState(![]),[_0x533a97,_0x2badbb]=useState(!_0x2de8a8),[_0x12ee8c,_0x1b018f]=useState(''),[_0x568daf,_0xed345d]=useState(''),[_0x43b5ea,_0x53ebc3]=useState(_0x2de8a8||''),[_0x10c3e6]=useState(_0x34cc44),[_0x298385,_0x1e8b24]=useState(),[_0x4cd2d9,_0x1b8360]=useState({});function _0x186f4a(_0x48dd13){const _0x248801=_0x6ee34c;if(_0x48dd13[_0x248801(0x1cf)]===0x0)return{'valid':![],'message':''};if(_0x48dd13[_0x248801(0x1cf)]>0x64)return{'valid':![],'message':_0x248801(0x1f7)};const _0xe1ff37=/^[A-Za-z0-9_-]+$/;if(!_0xe1ff37[_0x248801(0x1f6)](_0x48dd13))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x320077,_0x298ae3)=>{const _0xac5ad6=_0x6ee34c;if(_0x1db42b===_0xac5ad6(0x1ea)){if(_0x298ae3[_0xac5ad6(0x1ff)]||_0x320077==='y'||_0x320077==='Y')_0x4f1f3c(_0xac5ad6(0x1c9));else{if(_0x320077==='n'||_0x320077==='N'||_0x298ae3[_0xac5ad6(0x207)])console['log'](_0xac5ad6(0x1e1)),process[_0xac5ad6(0x1d5)](0x0);else _0x298ae3[_0xac5ad6(0x215)]&&_0x320077==='c'&&process['exit'](0x0);}return;}if(!_0x533a97)return;if(_0x298ae3[_0xac5ad6(0x1ff)]){if(_0x568daf||!_0x12ee8c[_0xac5ad6(0x214)]()){_0xed345d(_0xac5ad6(0x210));return;}const _0x2d0a5f=_0x12ee8c[_0xac5ad6(0x214)](),{valid:_0x34905a,message:_0x129494}=_0x186f4a(_0x2d0a5f);if(!_0x34905a){_0xed345d(_0x129494||_0xac5ad6(0x20c));return;}_0x53ebc3(_0x2d0a5f),_0x2badbb(![]);}else{if(_0x298ae3['backspace']||_0x298ae3[_0xac5ad6(0x20e)])_0x1b018f(_0x3218fa=>{const _0x24d5fb=_0xac5ad6,_0xc311fb=_0x3218fa[_0x24d5fb(0x1d7)](0x0,-0x1);return _0xed345d(_0xc311fb['length']===0x0?'':_0x186f4a(_0xc311fb)['message']||''),_0xc311fb;});else _0x298ae3['ctrl']&&_0x320077==='c'?process['exit'](0x0):_0x1b018f(_0x41ae31=>{const _0x47f2e3=_0xac5ad6,_0xb37106=_0x41ae31+_0x320077;return _0xed345d(_0x186f4a(_0xb37106)[_0x47f2e3(0x1f5)]||''),_0xb37106;});}},{'isActive':_0x1db42b===_0x6ee34c(0x1ea)||_0x1db42b===_0x6ee34c(0x1fd)}),useEffect(()=>{const _0x3214bf=_0x6ee34c;if(_0x1db42b!==_0x3214bf(0x1fa))return;const _0x5a1f49=process[_0x3214bf(0x20f)]();if(getProjectConfigPath()){_0x314fa7(_0x3214bf(0x1e6)),_0x4f1f3c(_0x3214bf(0x1d8)),setTimeout(()=>process[_0x3214bf(0x1d5)](0x1),0x64);return;}let _0x4dfcfe;for(const _0x5e191e of LEGACY_CONFIG_NAMES){const _0x2a7c7a=resolve(_0x5a1f49,_0x5e191e);if(existsSync(_0x2a7c7a)){_0x4dfcfe=_0x2a7c7a;break;}}if(_0x4dfcfe){_0x1e8b24(_0x4dfcfe);try{const _0x15815e=readFileSync(_0x4dfcfe,_0x3214bf(0x1cc));_0x1b8360(JSON[_0x3214bf(0x1de)](_0x15815e));}catch{_0x1b8360({});}_0x41f57c?_0x4f1f3c(_0x3214bf(0x1c9)):_0x4f1f3c(_0x3214bf(0x1ea));return;}_0x4f1f3c(_0x3214bf(0x1fd)),!_0x2de8a8?_0x2badbb(!![]):_0x2badbb(![]);},[_0x1db42b,_0x41f57c,_0x2de8a8]),useEffect(()=>{const _0xf7409c=_0x6ee34c;if(_0x1db42b!==_0xf7409c(0x1c9))return;const _0xd8b8b3=process[_0xf7409c(0x20f)](),_0x635821=resolve(_0xd8b8b3,NEW_CONFIG_NAME);try{const _0x417f6d=fileURLToPath(import.meta.url),_0x30cc14=resolve(dirname(_0x417f6d),_0xf7409c(0x1f1)),_0x2fa968=join(_0x30cc14,_0xf7409c(0x1cb));let _0x18ba22=_0xf7409c(0x202);try{const _0x220f6b=JSON[_0xf7409c(0x1de)](readFileSync(_0x2fa968,_0xf7409c(0x1cc)));_0x18ba22=_0x220f6b[_0xf7409c(0x1ed)]||_0xf7409c(0x202);}catch{}const _0x27332e=readRawConfig(),_0x590818={..._0x27332e,..._0x4cd2d9,'version':_0x18ba22,'migratedAt':new Date()[_0xf7409c(0x1da)](),'migratedFrom':_0x298385};if(!_0x590818[_0xf7409c(0x1dc)]&&!_0x590818['app']){if(!_0x2de8a8){_0x1b8360(_0x590818),_0x4f1f3c(_0xf7409c(0x1fd)),_0x2badbb(!![]);return;}_0x590818[_0xf7409c(0x1dc)]=_0x2de8a8;}if(_0x590818['env']&&typeof _0x590818[_0xf7409c(0x1fc)]!=='string')delete _0x590818[_0xf7409c(0x1fc)];else!_0x590818[_0xf7409c(0x1fc)]&&(_0x590818['env']=_0x27332e[_0xf7409c(0x1fc)]||_0xf7409c(0x1fb));writeConfigFile(_0x635821,_0x590818);if(_0x298385){const _0x4d49a9=_0x298385+_0xf7409c(0x213);renameSync(_0x298385,_0x4d49a9);}logger[_0xf7409c(0x1d0)](_0xd8b8b3),logger[_0xf7409c(0x1ec)](_0xf7409c(0x1e8),_0xf7409c(0x211),{'from':_0x298385,'to':_0x635821,'appcode':_0x590818['appcode']||_0x590818[_0xf7409c(0x1c7)],'env':_0x590818[_0xf7409c(0x1fc)]}),_0x4145d6(!![]),_0x4f1f3c(_0xf7409c(0x212)),setTimeout(()=>process['exit'](0x0),0x64);}catch(_0x1bea42){logger[_0xf7409c(0x1d8)]('init',_0xf7409c(0x1f8),{'error':_0x1bea42 instanceof Error?_0x1bea42['message']:String(_0x1bea42)}),_0x314fa7(_0xf7409c(0x1cd)+(_0x1bea42 instanceof Error?_0x1bea42[_0xf7409c(0x1f5)]:String(_0x1bea42))),_0x4f1f3c(_0xf7409c(0x1d8)),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x1db42b]),useEffect(()=>{const _0x5bee5d=_0x6ee34c;if(_0x1db42b!==_0x5bee5d(0x1e8))return;const _0x2c80e6=process['cwd'](),_0x427435=resolve(_0x2c80e6,NEW_CONFIG_NAME);try{const _0x27ef0d=fileURLToPath(import.meta.url),_0x2f8bd2=resolve(dirname(_0x27ef0d),_0x5bee5d(0x1f1)),_0x4aeddc=join(_0x2f8bd2,_0x5bee5d(0x1cb));let _0x2697ec=_0x5bee5d(0x202);try{const _0x3ccad4=JSON['parse'](readFileSync(_0x4aeddc,_0x5bee5d(0x1cc)));_0x2697ec=_0x3ccad4[_0x5bee5d(0x1ed)]||_0x5bee5d(0x202);}catch{}const _0x20abf7=readRawConfig(),_0x2cb44b=typeof _0x20abf7[_0x5bee5d(0x1fc)]===_0x5bee5d(0x1f2)?_0x20abf7['env']:undefined,_0x4e8825={};_0x4cd2d9&&Object[_0x5bee5d(0x1dd)](_0x4cd2d9)[_0x5bee5d(0x1cf)]>0x0&&Object[_0x5bee5d(0x1d9)](_0x4e8825,_0x4cd2d9),!_0x4e8825['version']&&(_0x4e8825[_0x5bee5d(0x1ed)]=_0x2697ec),!_0x4e8825[_0x5bee5d(0x1d2)]&&(_0x4e8825[_0x5bee5d(0x1d2)]=new Date()[_0x5bee5d(0x1da)]()),!_0x4e8825[_0x5bee5d(0x1dc)]&&!_0x4e8825[_0x5bee5d(0x1c7)]&&(_0x4e8825['appcode']=_0x43b5ea),!_0x4e8825[_0x5bee5d(0x1fc)]&&(_0x4e8825[_0x5bee5d(0x1fc)]=_0x10c3e6||_0x2cb44b||_0x5bee5d(0x1fb)),writeConfigFile(_0x427435,_0x4e8825),logger['setLogPath'](_0x2c80e6),logger[_0x5bee5d(0x1ec)](_0x5bee5d(0x1e8),_0x5bee5d(0x1eb),{'appcode':_0x4e8825[_0x5bee5d(0x1dc)]||_0x4e8825[_0x5bee5d(0x1c7)],'env':_0x4e8825[_0x5bee5d(0x1fc)],'version':_0x4e8825[_0x5bee5d(0x1ed)],'configPath':_0x427435}),_0x4145d6(!![]),_0x4f1f3c('success'),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x0),0x64);}catch(_0x2ac01b){logger['error'](_0x5bee5d(0x1e8),_0x5bee5d(0x1e7),{'error':_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b)}),_0x314fa7(_0x5bee5d(0x1cd)+(_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b))),_0x4f1f3c(_0x5bee5d(0x1d8)),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x1),0x64);}},[_0x1db42b,_0x43b5ea,_0x10c3e6]),useEffect(()=>{const _0x4aeac1=_0x6ee34c;_0x1db42b==='init-input'&&!_0x533a97&&(_0x43b5ea||_0x4cd2d9&&Object[_0x4aeac1(0x1dd)](_0x4cd2d9)[_0x4aeac1(0x1cf)]>0x0)&&_0x4f1f3c(_0x4aeac1(0x1e8));},[_0x1db42b,_0x533a97,_0x43b5ea]);if(_0xe7ce63)return a107_0x394fba(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':['✗\x20',_0xe7ce63]})});if(_0x1db42b==='migrating-input'){const _0x3835c9=_0x298385?_0x298385['split']('/')[_0x6ee34c(0x1f9)]():_0x6ee34c(0x206),_0x2f27f3=_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.['app'];return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x20a),'children':['⚠\x20Found\x20legacy\x20configuration\x20file:\x20',a107_0x394fba(Text,{'bold':!![],'children':_0x3835c9})]}),_0x2f27f3&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['\x20\x20appcode:\x20',_0x2f27f3]}),a107_0x1eda89(Text,{'children':['\x0a',_0x6ee34c(0x208),a107_0x394fba(Text,{'bold':!![],'children':'.rabetbase.json'}),'?','\x20',a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x6ee34c(0x1d3)})]}),a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':'\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak'})]});}if(_0x1db42b===_0x6ee34c(0x1fd)&&_0x533a97)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Box,{'children':[a107_0x1eda89(Text,{'color':'cyan','children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x12ee8c?a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x12ee8c}):a107_0x394fba(Text,{'color':'gray','children':'_'}),_0x568daf&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':[_0x6ee34c(0x1df),_0x568daf]})]}),!_0x568daf&&!_0x12ee8c&&a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':_0x6ee34c(0x201)})})]});if(_0x1db42b==='migrating')return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1f0)})});if(_0x1db42b===_0x6ee34c(0x1e8))return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e9)})});if(_0x2da685||_0x1db42b===_0x6ee34c(0x212)){const _0x2e36cb=_0x298385?_0x298385[_0x6ee34c(0x1f4)]('/')['pop']():undefined;if(_0x2e36cb)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':[_0x6ee34c(0x1d1),_0x2e36cb,'\x20→\x20.rabetbase.json']}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':[_0x6ee34c(0x1d4),':\x20',_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.[_0x6ee34c(0x1c7)]]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x216),'children':[_0x6ee34c(0x1e0),_0x2e36cb,'.bak']})]});return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':['✓\x20',_0x6ee34c(0x1e2)]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['AppCode',':\x20',_0x43b5ea]}),a107_0x394fba(Text,{'children':_0x6ee34c(0x1ca)})]});}return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e4)})});}
1
+ function a107_0x47b2(_0x568695,_0x591548){_0x568695=_0x568695-0x1c3;const _0x3655b0=a107_0x3655();let _0x47b26c=_0x3655b0[_0x568695];return _0x47b26c;}const a107_0x4952c7=a107_0x47b2;(function(_0x474133,_0x96e12e){const _0x485ea6=a107_0x47b2,_0x22c6a3=_0x474133();while(!![]){try{const _0x25a08e=parseInt(_0x485ea6(0x206))/0x1+-parseInt(_0x485ea6(0x1c8))/0x2+-parseInt(_0x485ea6(0x1d9))/0x3+-parseInt(_0x485ea6(0x1fd))/0x4*(parseInt(_0x485ea6(0x1e7))/0x5)+parseInt(_0x485ea6(0x1db))/0x6*(parseInt(_0x485ea6(0x201))/0x7)+-parseInt(_0x485ea6(0x1cb))/0x8+-parseInt(_0x485ea6(0x1e9))/0x9*(-parseInt(_0x485ea6(0x1e8))/0xa);if(_0x25a08e===_0x96e12e)break;else _0x22c6a3['push'](_0x22c6a3['shift']());}catch(_0x3ed124){_0x22c6a3['push'](_0x22c6a3['shift']());}}}(a107_0x3655,0x30ce3));import{jsxs as a107_0x148b10,jsx as a107_0x526d39}from'react/jsx-runtime';import{useState,useEffect}from'react';import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a107_0x4952c7(0x1e0),a107_0x4952c7(0x1c9)];function a107_0x3655(){const _0x231edf=['Initializing\x20configuration\x20file...','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','production','155060ZLDLTW','backspace','env','trim','91NfQBDU','keys','升级配置文件失败','gray','Migrating\x20legacy\x20config...','200624mKmWbJ','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','version','\x20←\x20','utf8','Old\x20file\x20backed\x20up\x20as\x20','Invalid\x20App\x20Code','createdAt','green','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','746648qCOvKF','.lovrabetrc','column','2651240SZRRgE','success','Upgrade\x20it\x20to\x20','✓\x20Upgraded\x20','checking','return','migrating','App\x20Code\x20cannot\x20be\x20empty','从旧配置文件升级成功','init-input','escape','error','migrating-input','init','509685UsOAjn','Error:\x20','137988Xkljgp','app','log','初始化项目配置文件成功','ctrl','.lovrabet.json','toLocaleString','appcode','string','.rabetbase.json','length','message','10WKfHli','10trtyax','5872167yBZnQa','创建配置文件失败','.bak','\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak','split','exit','info','parse','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','package.json','yellow','cyan','setLogPath','cwd','../..','1.0.0','\x20\x20appcode:\x20'];a107_0x3655=function(){return _0x231edf;};return a107_0x3655();}export function Init({appcode:_0x1b528f,env:_0x1709e0,autoYes:_0x3d6b08}){const _0x11232e=a107_0x4952c7,[_0x10cfa2,_0x2be6f9]=useState(_0x11232e(0x1cf)),[_0x19eb85,_0x4453ba]=useState(null),[_0x4096dc,_0x299661]=useState(![]),[_0x9ec03c,_0x28127e]=useState(!_0x1b528f),[_0x3a57f3,_0x5a3b5c]=useState(''),[_0x47326d,_0x2f2d49]=useState(''),[_0x335991,_0x130b11]=useState(_0x1b528f||''),[_0x47df8e]=useState(_0x1709e0),[_0x16b513,_0x5c6a68]=useState(),[_0x201d28,_0x554519]=useState({});function _0x46fc1c(_0x40a350){const _0x1371a4=_0x11232e;if(_0x40a350[_0x1371a4(0x1e5)]===0x0)return{'valid':![],'message':''};if(_0x40a350[_0x1371a4(0x1e5)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};const _0x2b53d7=/^[A-Za-z0-9_-]+$/;if(!_0x2b53d7['test'](_0x40a350))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x18f817,_0x5921ac)=>{const _0x416fe4=_0x11232e;if(_0x10cfa2===_0x416fe4(0x1d7)){if(_0x5921ac['return']||_0x18f817==='y'||_0x18f817==='Y')_0x2be6f9(_0x416fe4(0x1d1));else{if(_0x18f817==='n'||_0x18f817==='N'||_0x5921ac[_0x416fe4(0x1d5)])console[_0x416fe4(0x1dd)](_0x416fe4(0x1fb)),process[_0x416fe4(0x1ee)](0x0);else _0x5921ac['ctrl']&&_0x18f817==='c'&&process['exit'](0x0);}return;}if(!_0x9ec03c)return;if(_0x5921ac[_0x416fe4(0x1d0)]){if(_0x47326d||!_0x3a57f3[_0x416fe4(0x200)]()){_0x2f2d49(_0x416fe4(0x1d2));return;}const _0x2de475=_0x3a57f3[_0x416fe4(0x200)](),{valid:_0x1f5e68,message:_0x425985}=_0x46fc1c(_0x2de475);if(!_0x1f5e68){_0x2f2d49(_0x425985||_0x416fe4(0x1c4));return;}_0x130b11(_0x2de475),_0x28127e(![]);}else{if(_0x5921ac[_0x416fe4(0x1fe)]||_0x5921ac['delete'])_0x5a3b5c(_0x1a554e=>{const _0xc47e7f=_0x416fe4,_0x13b8e9=_0x1a554e['slice'](0x0,-0x1);return _0x2f2d49(_0x13b8e9[_0xc47e7f(0x1e5)]===0x0?'':_0x46fc1c(_0x13b8e9)[_0xc47e7f(0x1e6)]||''),_0x13b8e9;});else _0x5921ac[_0x416fe4(0x1df)]&&_0x18f817==='c'?process[_0x416fe4(0x1ee)](0x0):_0x5a3b5c(_0x3690c2=>{const _0x32b768=_0x416fe4,_0x49fcf3=_0x3690c2+_0x18f817;return _0x2f2d49(_0x46fc1c(_0x49fcf3)[_0x32b768(0x1e6)]||''),_0x49fcf3;});}},{'isActive':_0x10cfa2===_0x11232e(0x1d7)||_0x10cfa2==='init-input'}),useEffect(()=>{const _0x26a0c8=_0x11232e;if(_0x10cfa2!==_0x26a0c8(0x1cf))return;const _0x151560=process[_0x26a0c8(0x1f6)]();if(getProjectConfigPath()){_0x4453ba('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.'),_0x2be6f9(_0x26a0c8(0x1d6)),setTimeout(()=>process[_0x26a0c8(0x1ee)](0x1),0x64);return;}let _0x314944;for(const _0x3c7d4f of LEGACY_CONFIG_NAMES){const _0x4bb102=resolve(_0x151560,_0x3c7d4f);if(existsSync(_0x4bb102)){_0x314944=_0x4bb102;break;}}if(_0x314944){_0x5c6a68(_0x314944);try{const _0x362240=readFileSync(_0x314944,_0x26a0c8(0x20a));_0x554519(JSON[_0x26a0c8(0x1f0)](_0x362240));}catch{_0x554519({});}_0x3d6b08?_0x2be6f9(_0x26a0c8(0x1d1)):_0x2be6f9(_0x26a0c8(0x1d7));return;}_0x2be6f9(_0x26a0c8(0x1d4)),!_0x1b528f?_0x28127e(!![]):_0x28127e(![]);},[_0x10cfa2,_0x3d6b08,_0x1b528f]),useEffect(()=>{const _0x55a525=_0x11232e;if(_0x10cfa2!==_0x55a525(0x1d1))return;const _0x1aeeed=process[_0x55a525(0x1f6)](),_0x44835c=resolve(_0x1aeeed,NEW_CONFIG_NAME);try{const _0x4f2956=fileURLToPath(import.meta.url),_0x1046b4=resolve(dirname(_0x4f2956),'../..'),_0x37580a=join(_0x1046b4,'package.json');let _0x33d874=_0x55a525(0x1f8);try{const _0x45139c=JSON[_0x55a525(0x1f0)](readFileSync(_0x37580a,_0x55a525(0x20a)));_0x33d874=_0x45139c[_0x55a525(0x208)]||_0x55a525(0x1f8);}catch{}const _0x3e1cdd=readRawConfig(),_0x4f2ee3={..._0x3e1cdd,..._0x201d28,'version':_0x33d874,'migratedAt':new Date()[_0x55a525(0x1e1)](),'migratedFrom':_0x16b513};if(!_0x4f2ee3[_0x55a525(0x1e2)]&&!_0x4f2ee3['app']){if(!_0x1b528f){_0x554519(_0x4f2ee3),_0x2be6f9('init-input'),_0x28127e(!![]);return;}_0x4f2ee3['appcode']=_0x1b528f;}if(_0x4f2ee3[_0x55a525(0x1ff)]&&typeof _0x4f2ee3[_0x55a525(0x1ff)]!==_0x55a525(0x1e3))delete _0x4f2ee3[_0x55a525(0x1ff)];else!_0x4f2ee3[_0x55a525(0x1ff)]&&(_0x4f2ee3['env']=_0x3e1cdd['env']||'production');writeConfigFile(_0x44835c,_0x4f2ee3);if(_0x16b513){const _0x54f245=_0x16b513+_0x55a525(0x1eb);renameSync(_0x16b513,_0x54f245);}logger['setLogPath'](_0x1aeeed),logger[_0x55a525(0x1ef)]('init',_0x55a525(0x1d3),{'from':_0x16b513,'to':_0x44835c,'appcode':_0x4f2ee3[_0x55a525(0x1e2)]||_0x4f2ee3['app'],'env':_0x4f2ee3[_0x55a525(0x1ff)]}),_0x299661(!![]),_0x2be6f9(_0x55a525(0x1cc)),setTimeout(()=>process[_0x55a525(0x1ee)](0x0),0x64);}catch(_0x5d7658){logger[_0x55a525(0x1d6)](_0x55a525(0x1d8),_0x55a525(0x203),{'error':_0x5d7658 instanceof Error?_0x5d7658[_0x55a525(0x1e6)]:String(_0x5d7658)}),_0x4453ba(_0x55a525(0x1da)+(_0x5d7658 instanceof Error?_0x5d7658['message']:String(_0x5d7658))),_0x2be6f9(_0x55a525(0x1d6)),setTimeout(()=>process[_0x55a525(0x1ee)](0x1),0x64);}},[_0x10cfa2]),useEffect(()=>{const _0x362516=_0x11232e;if(_0x10cfa2!==_0x362516(0x1d8))return;const _0x5ae5d7=process[_0x362516(0x1f6)](),_0x596a95=resolve(_0x5ae5d7,NEW_CONFIG_NAME);try{const _0x2ec9ed=fileURLToPath(import.meta.url),_0x4bc122=resolve(dirname(_0x2ec9ed),_0x362516(0x1f7)),_0x876518=join(_0x4bc122,_0x362516(0x1f2));let _0x4e1520='1.0.0';try{const _0x20fa39=JSON[_0x362516(0x1f0)](readFileSync(_0x876518,_0x362516(0x20a)));_0x4e1520=_0x20fa39['version']||'1.0.0';}catch{}const _0x4ac65e=readRawConfig(),_0x357539=typeof _0x4ac65e[_0x362516(0x1ff)]===_0x362516(0x1e3)?_0x4ac65e[_0x362516(0x1ff)]:undefined,_0x49cd80={};_0x201d28&&Object[_0x362516(0x202)](_0x201d28)['length']>0x0&&Object['assign'](_0x49cd80,_0x201d28),!_0x49cd80['version']&&(_0x49cd80[_0x362516(0x208)]=_0x4e1520),!_0x49cd80['createdAt']&&(_0x49cd80[_0x362516(0x1c5)]=new Date()[_0x362516(0x1e1)]()),!_0x49cd80[_0x362516(0x1e2)]&&!_0x49cd80[_0x362516(0x1dc)]&&(_0x49cd80['appcode']=_0x335991),!_0x49cd80['env']&&(_0x49cd80[_0x362516(0x1ff)]=_0x47df8e||_0x357539||_0x362516(0x1fc)),writeConfigFile(_0x596a95,_0x49cd80),logger[_0x362516(0x1f5)](_0x5ae5d7),logger[_0x362516(0x1ef)]('init',_0x362516(0x1de),{'appcode':_0x49cd80[_0x362516(0x1e2)]||_0x49cd80[_0x362516(0x1dc)],'env':_0x49cd80[_0x362516(0x1ff)],'version':_0x49cd80[_0x362516(0x208)],'configPath':_0x596a95}),_0x299661(!![]),_0x2be6f9(_0x362516(0x1cc)),setTimeout(()=>process[_0x362516(0x1ee)](0x0),0x64);}catch(_0x1ccd03){logger['error'](_0x362516(0x1d8),_0x362516(0x1ea),{'error':_0x1ccd03 instanceof Error?_0x1ccd03['message']:String(_0x1ccd03)}),_0x4453ba(_0x362516(0x1da)+(_0x1ccd03 instanceof Error?_0x1ccd03[_0x362516(0x1e6)]:String(_0x1ccd03))),_0x2be6f9(_0x362516(0x1d6)),setTimeout(()=>process[_0x362516(0x1ee)](0x1),0x64);}},[_0x10cfa2,_0x335991,_0x47df8e]),useEffect(()=>{const _0x27e38a=_0x11232e;_0x10cfa2==='init-input'&&!_0x9ec03c&&(_0x335991||_0x201d28&&Object[_0x27e38a(0x202)](_0x201d28)[_0x27e38a(0x1e5)]>0x0)&&_0x2be6f9(_0x27e38a(0x1d8));},[_0x10cfa2,_0x9ec03c,_0x335991]);if(_0x19eb85)return a107_0x526d39(Box,{'flexDirection':_0x11232e(0x1ca),'children':a107_0x148b10(Text,{'color':'red','children':['✗\x20',_0x19eb85]})});if(_0x10cfa2===_0x11232e(0x1d7)){const _0x32048c=_0x16b513?_0x16b513[_0x11232e(0x1ed)]('/')['pop']():'legacy\x20config',_0x25aa96=_0x201d28?.[_0x11232e(0x1e2)]||_0x201d28?.[_0x11232e(0x1dc)];return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1f3),'children':[_0x11232e(0x1f1),a107_0x526d39(Text,{'bold':!![],'children':_0x32048c})]}),_0x25aa96&&a107_0x148b10(Text,{'color':'cyan','children':[_0x11232e(0x1f9),_0x25aa96]}),a107_0x148b10(Text,{'children':['\x0a',_0x11232e(0x1cd),a107_0x526d39(Text,{'bold':!![],'children':_0x11232e(0x1e4)}),'?','\x20',a107_0x526d39(Text,{'color':'green','children':'[Y/n]'})]}),a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':_0x11232e(0x1ec)})]});}if(_0x10cfa2===_0x11232e(0x1d4)&&_0x9ec03c)return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Box,{'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x3a57f3?a107_0x526d39(Text,{'color':_0x11232e(0x1c6),'children':_0x3a57f3}):a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':'_'}),_0x47326d&&a107_0x148b10(Text,{'color':'red','children':[_0x11232e(0x209),_0x47326d]})]}),!_0x47326d&&!_0x3a57f3&&a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':_0x11232e(0x1c7)})})]});if(_0x10cfa2===_0x11232e(0x1d1))return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':_0x11232e(0x205)})});if(_0x10cfa2===_0x11232e(0x1d8))return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':_0x11232e(0x1fa)})});if(_0x4096dc||_0x10cfa2===_0x11232e(0x1cc)){const _0x3c81f0=_0x16b513?_0x16b513['split']('/')['pop']():undefined;if(_0x3c81f0)return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1c6),'children':[_0x11232e(0x1ce),_0x3c81f0,'\x20→\x20.rabetbase.json']}),a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['AppCode',':\x20',_0x201d28?.['appcode']||_0x201d28?.['app']]}),a107_0x148b10(Text,{'color':_0x11232e(0x204),'children':[_0x11232e(0x1c3),_0x3c81f0,'.bak']})]});return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1c6),'children':['✓\x20','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory']}),a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['AppCode',':\x20',_0x335991]}),a107_0x526d39(Text,{'children':_0x11232e(0x207)})]});}return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':'Checking\x20existing\x20configuration...'})});}
@@ -1 +1 @@
1
- function a108_0x8117(_0x5771e1,_0x377a3e){_0x5771e1=_0x5771e1-0xc3;const _0x104f32=a108_0x104f();let _0x8117ad=_0x104f32[_0x5771e1];return _0x8117ad;}(function(_0x27cd47,_0x251c55){const _0x3fba8d=a108_0x8117,_0x4331a1=_0x27cd47();while(!![]){try{const _0x5dcf43=-parseInt(_0x3fba8d(0xec))/0x1+parseInt(_0x3fba8d(0xe1))/0x2+parseInt(_0x3fba8d(0xe5))/0x3*(-parseInt(_0x3fba8d(0xeb))/0x4)+parseInt(_0x3fba8d(0xd0))/0x5*(parseInt(_0x3fba8d(0xc5))/0x6)+-parseInt(_0x3fba8d(0xd5))/0x7+parseInt(_0x3fba8d(0xc8))/0x8+parseInt(_0x3fba8d(0xcb))/0x9;if(_0x5dcf43===_0x251c55)break;else _0x4331a1['push'](_0x4331a1['shift']());}catch(_0x1fca7c){_0x4331a1['push'](_0x4331a1['shift']());}}}(a108_0x104f,0x8e9e1));function a108_0x104f(){const _0x5ef8c0=['length','every','⚠️\x20','manual','column','size','name','status','return','242046TcFwYu','configuring','other','setErrorMsg','3JLGsZw','success','from','cyan','ide','error','1313588uVSMvH','389710xZkmDq','some','Other\x20IDE','done','description','Please\x20select\x20at\x20least\x20one\x20IDE','selectedIndexes','⚠️\x20Configuration\x20requires\x20manual\x20steps','18tvTEmT','yellow','selecting','2358840mLGTNY','handleKeyDown','green','11410353NXqtJX','label','getSelectedIDEs','value','✗\x20Configuration\x20failed','246630dkKiMw','Selected\x20IDEs','gray','message','map','3705835YxpCbE','Configuring\x20MCP\x20server...','red'];a108_0x104f=function(){return _0x5ef8c0;};return a108_0x104f();}import{jsx as a108_0x3c9f68,jsxs as a108_0x4df85f,Fragment as a108_0x5c3570}from'react/jsx-runtime';import{useState,useEffect,useMemo}from'react';import{Text,Box,useInput,useApp}from'ink';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';import{IDESelector,useIDESelection}from'../ui/IDESelector.js';import{installMcp}from'./mcp-installer.js';export function McpInstallUI({preselectedIDEs:preselectedIDEs=[],enableBffSave:_0x3fab82}){const _0x4b2a4a=a108_0x8117,{exit:_0x140394}=useApp(),[_0x20a236,_0x1563e5]=useState(_0x4b2a4a(0xc7)),[_0xb0d2a7,_0x27d872]=useState([]),[_0x3a8714,_0x1fdeb1]=useState([]),_0x536e2b=useMemo(()=>[...Array[_0x4b2a4a(0xe7)](MCP_IDES)[_0x4b2a4a(0xd4)](_0x1381d7=>({'key':_0x1381d7,'name':IDE_CONFIGS[_0x1381d7][_0x4b2a4a(0xde)],'description':IDE_CONFIGS[_0x1381d7][_0x4b2a4a(0xf0)]})),{'key':_0x4b2a4a(0xe3),'name':_0x4b2a4a(0xee),'description':'Other\x20IDE\x20configuration\x20guide'}],[]),_0x32ec60=useIDESelection({'ideList':_0x536e2b,'preselectedIDEs':preselectedIDEs,'multiSelect':!![]});useEffect(()=>{const _0x5ea2d7=_0x4b2a4a;preselectedIDEs[_0x5ea2d7(0xd8)]>0x0&&_0x32ec60[_0x5ea2d7(0xc3)]['size']>0x0&&_0x55ace6();},[]),useInput((_0x2aebc1,_0xcefe4a)=>{const _0x28cac5=_0x4b2a4a;if(_0x20a236===_0x28cac5(0xc7)){if(_0x2aebc1==='q'||_0x2aebc1==='Q'){_0x140394();return;}if(_0xcefe4a[_0x28cac5(0xe0)]){if(_0x32ec60[_0x28cac5(0xc3)][_0x28cac5(0xdd)]===0x0){_0x32ec60[_0x28cac5(0xe4)](_0x28cac5(0xf1));return;}_0x55ace6();return;}_0x32ec60[_0x28cac5(0xc9)](_0x2aebc1,_0xcefe4a);}_0x20a236===_0x28cac5(0xef)&&_0x140394();});async function _0x55ace6(){const _0x562f88=_0x4b2a4a,_0x2e69c5=_0x32ec60[_0x562f88(0xcd)]();_0x27d872([{'label':_0x562f88(0xd1),'value':''+_0x32ec60['selectedIndexes'][_0x562f88(0xdd)]}]),_0x1563e5(_0x562f88(0xe2));const _0x387594=await installMcp(_0x2e69c5,_0x3fab82),_0x2d2993=_0x387594[_0x562f88(0xd4)](_0xbbce82=>({'ide':_0x536e2b['find'](_0x2a1e98=>_0x2a1e98['key']===_0xbbce82[_0x562f88(0xe9)])?.['name']||_0xbbce82[_0x562f88(0xe9)],'status':_0xbbce82['needsManualAction']?'manual':_0xbbce82['success']?'success':_0x562f88(0xea),'message':_0xbbce82[_0x562f88(0xd3)]}));_0x1fdeb1(_0x2d2993),_0x1563e5(_0x562f88(0xef)),setTimeout(()=>{_0x140394();},0x1388);}return a108_0x4df85f(Box,{'flexDirection':_0x4b2a4a(0xdc),'marginTop':0x1,'children':[_0x20a236==='selecting'&&a108_0x3c9f68(IDESelector,{'ideList':_0x536e2b,'title':'Configure\x20Lovrabet\x20MCP\x20Server','selection':_0x32ec60}),_0x20a236===_0x4b2a4a(0xe2)&&a108_0x4df85f(a108_0x5c3570,{'children':[_0xb0d2a7[_0x4b2a4a(0xd4)]((_0x59b6e4,_0x5c07b0)=>a108_0x4df85f(Box,{'children':[a108_0x4df85f(Text,{'color':'green','children':['√\x20',_0x59b6e4[_0x4b2a4a(0xcc)],':\x20']}),a108_0x3c9f68(Text,{'color':_0x4b2a4a(0xe8),'children':_0x59b6e4[_0x4b2a4a(0xce)]})]},_0x5c07b0)),a108_0x3c9f68(Box,{'marginTop':0x1,'children':a108_0x3c9f68(Text,{'children':_0x4b2a4a(0xd6)})})]}),_0x20a236==='done'&&a108_0x3c9f68(DoneStep,{'configResults':_0x3a8714})]});}function DoneStep({configResults:_0x14b650}){const _0x2a2511=a108_0x8117,_0x4149d3=_0x14b650[_0x2a2511(0xd9)](_0x3b9ae5=>_0x3b9ae5[_0x2a2511(0xdf)]===_0x2a2511(0xe6)),_0x3b17de=_0x14b650[_0x2a2511(0xed)](_0x74c185=>_0x74c185[_0x2a2511(0xdf)]===_0x2a2511(0xdb)),_0x3d75b6=_0x14b650[_0x2a2511(0xed)](_0x3a4188=>_0x3a4188[_0x2a2511(0xdf)]===_0x2a2511(0xea));return a108_0x4df85f(Box,{'flexDirection':'column','children':[a108_0x3c9f68(Box,{'marginTop':0x1,'marginBottom':0x1,'children':_0x4149d3?a108_0x3c9f68(Text,{'color':_0x2a2511(0xca),'bold':!![],'children':'✓\x20MCP\x20configuration\x20completed!'}):_0x3b17de?a108_0x3c9f68(Text,{'color':_0x2a2511(0xc6),'bold':!![],'children':'⚠️\x20Some\x20configurations\x20require\x20manual\x20steps'}):_0x3d75b6?a108_0x3c9f68(Text,{'color':_0x2a2511(0xd7),'bold':!![],'children':_0x2a2511(0xcf)}):a108_0x3c9f68(Text,{'color':'yellow','bold':!![],'children':_0x2a2511(0xc4)})}),_0x14b650[_0x2a2511(0xd4)]((_0xa55f96,_0x379d15)=>{const _0x933e05=_0x2a2511,_0x3b506e=_0xa55f96[_0x933e05(0xdf)]===_0x933e05(0xe6),_0x135b47=_0xa55f96[_0x933e05(0xdf)]===_0x933e05(0xdb);return a108_0x4df85f(Box,{'flexDirection':'column','marginBottom':0x1,'children':[a108_0x3c9f68(Box,{'children':a108_0x4df85f(Text,{'bold':!![],'color':_0x3b506e?_0x933e05(0xca):_0x135b47?_0x933e05(0xc6):_0x933e05(0xd7),'children':[_0x3b506e?'✓\x20':_0x135b47?_0x933e05(0xda):'✗\x20',_0xa55f96['ide'],':']})}),a108_0x3c9f68(Box,{'paddingLeft':0x3,'flexDirection':'column','children':a108_0x3c9f68(Text,{'color':'white','children':_0xa55f96['message']})})]},_0x379d15);}),a108_0x3c9f68(Box,{'marginTop':0x1,'children':a108_0x3c9f68(Text,{'color':_0x2a2511(0xd2),'children':'Press\x20any\x20key\x20to\x20exit...'})})]});}
1
+ function a108_0x46cc(_0x5e9c46,_0x747e53){_0x5e9c46=_0x5e9c46-0x161;const _0x5e18ed=a108_0x5e18();let _0x46ccc0=_0x5e18ed[_0x5e9c46];return _0x46ccc0;}(function(_0x1332e5,_0x369793){const _0x4099ba=a108_0x46cc,_0x2575e8=_0x1332e5();while(!![]){try{const _0x4541c4=-parseInt(_0x4099ba(0x18e))/0x1*(parseInt(_0x4099ba(0x187))/0x2)+parseInt(_0x4099ba(0x188))/0x3*(parseInt(_0x4099ba(0x180))/0x4)+-parseInt(_0x4099ba(0x169))/0x5+-parseInt(_0x4099ba(0x167))/0x6*(-parseInt(_0x4099ba(0x18b))/0x7)+-parseInt(_0x4099ba(0x17b))/0x8*(-parseInt(_0x4099ba(0x164))/0x9)+parseInt(_0x4099ba(0x171))/0xa*(-parseInt(_0x4099ba(0x166))/0xb)+-parseInt(_0x4099ba(0x18d))/0xc*(-parseInt(_0x4099ba(0x181))/0xd);if(_0x4541c4===_0x369793)break;else _0x2575e8['push'](_0x2575e8['shift']());}catch(_0x1fe8bf){_0x2575e8['push'](_0x2575e8['shift']());}}}(a108_0x5e18,0x9ae44));import{jsx as a108_0x20f8cc,jsxs as a108_0x5c034f,Fragment as a108_0x4c1fed}from'react/jsx-runtime';import{useState,useEffect,useMemo}from'react';function a108_0x5e18(){const _0x4c577f=['find','done','getSelectedIDEs','configuring','green','818080sWtOLN','map','from','ide','every','name','selecting','key','manual','success','1297248cSpOIN','Selected\x20IDEs','red','cyan','error','73236nINChu','1571921MksCwP','✗\x20Configuration\x20failed','description','status','handleKeyDown','white','2HPecKF','165BORnkM','selectedIndexes','message','3676778clgVKN','Configure\x20Lovrabet\x20MCP\x20Server','12YPJIDC','398479PzqYfh','yellow','label','setErrorMsg','some','Other\x20IDE\x20configuration\x20guide','gray','⚠️\x20','45bzyorc','size','121JIjvcL','12mYPHtG','column','5281985pzeWZu','Please\x20select\x20at\x20least\x20one\x20IDE','needsManualAction'];a108_0x5e18=function(){return _0x4c577f;};return a108_0x5e18();}import{Text,Box,useInput,useApp}from'ink';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';import{IDESelector,useIDESelection}from'../ui/IDESelector.js';import{installMcp}from'./mcp-installer.js';export function McpInstallUI({preselectedIDEs:preselectedIDEs=[],enableBffSave:_0x54fd8a}){const _0x1c6a99=a108_0x46cc,{exit:_0x23dec}=useApp(),[_0x3398d4,_0x581cb5]=useState('selecting'),[_0x378c71,_0x4299e9]=useState([]),[_0x1d8247,_0x10b727]=useState([]),_0x2e0e58=useMemo(()=>[...Array[_0x1c6a99(0x173)](MCP_IDES)[_0x1c6a99(0x172)](_0x3537e4=>({'key':_0x3537e4,'name':IDE_CONFIGS[_0x3537e4][_0x1c6a99(0x176)],'description':IDE_CONFIGS[_0x3537e4][_0x1c6a99(0x183)]})),{'key':'other','name':'Other\x20IDE','description':_0x1c6a99(0x161)}],[]),_0x537629=useIDESelection({'ideList':_0x2e0e58,'preselectedIDEs':preselectedIDEs,'multiSelect':!![]});useEffect(()=>{const _0x37921e=_0x1c6a99;preselectedIDEs['length']>0x0&&_0x537629[_0x37921e(0x189)][_0x37921e(0x165)]>0x0&&_0x30fd9c();},[]),useInput((_0x5b98c5,_0x2c6665)=>{const _0x58bf0a=_0x1c6a99;if(_0x3398d4===_0x58bf0a(0x177)){if(_0x5b98c5==='q'||_0x5b98c5==='Q'){_0x23dec();return;}if(_0x2c6665['return']){if(_0x537629[_0x58bf0a(0x189)][_0x58bf0a(0x165)]===0x0){_0x537629[_0x58bf0a(0x191)](_0x58bf0a(0x16a));return;}_0x30fd9c();return;}_0x537629[_0x58bf0a(0x185)](_0x5b98c5,_0x2c6665);}_0x3398d4===_0x58bf0a(0x16d)&&_0x23dec();});async function _0x30fd9c(){const _0x51bfe6=_0x1c6a99,_0x3d3122=_0x537629[_0x51bfe6(0x16e)]();_0x4299e9([{'label':_0x51bfe6(0x17c),'value':''+_0x537629[_0x51bfe6(0x189)][_0x51bfe6(0x165)]}]),_0x581cb5('configuring');const _0x2548e2=await installMcp(_0x3d3122,_0x54fd8a),_0x163e46=_0x2548e2[_0x51bfe6(0x172)](_0x56dfdb=>({'ide':_0x2e0e58[_0x51bfe6(0x16c)](_0x4ba4b8=>_0x4ba4b8[_0x51bfe6(0x178)]===_0x56dfdb[_0x51bfe6(0x174)])?.[_0x51bfe6(0x176)]||_0x56dfdb['ide'],'status':_0x56dfdb[_0x51bfe6(0x16b)]?'manual':_0x56dfdb[_0x51bfe6(0x17a)]?'success':'error','message':_0x56dfdb[_0x51bfe6(0x18a)]}));_0x10b727(_0x163e46),_0x581cb5(_0x51bfe6(0x16d)),setTimeout(()=>{_0x23dec();},0x1388);}return a108_0x5c034f(Box,{'flexDirection':_0x1c6a99(0x168),'marginTop':0x1,'children':[_0x3398d4==='selecting'&&a108_0x20f8cc(IDESelector,{'ideList':_0x2e0e58,'title':_0x1c6a99(0x18c),'selection':_0x537629}),_0x3398d4===_0x1c6a99(0x16f)&&a108_0x5c034f(a108_0x4c1fed,{'children':[_0x378c71[_0x1c6a99(0x172)]((_0x2f843e,_0x267024)=>a108_0x5c034f(Box,{'children':[a108_0x5c034f(Text,{'color':_0x1c6a99(0x170),'children':['√\x20',_0x2f843e[_0x1c6a99(0x190)],':\x20']}),a108_0x20f8cc(Text,{'color':_0x1c6a99(0x17e),'children':_0x2f843e['value']})]},_0x267024)),a108_0x20f8cc(Box,{'marginTop':0x1,'children':a108_0x20f8cc(Text,{'children':'Configuring\x20MCP\x20server...'})})]}),_0x3398d4===_0x1c6a99(0x16d)&&a108_0x20f8cc(DoneStep,{'configResults':_0x1d8247})]});}function DoneStep({configResults:_0x11a81f}){const _0x45ab06=a108_0x46cc,_0x1029da=_0x11a81f[_0x45ab06(0x175)](_0x49fd15=>_0x49fd15[_0x45ab06(0x184)]===_0x45ab06(0x17a)),_0x52edd9=_0x11a81f['some'](_0x480883=>_0x480883[_0x45ab06(0x184)]===_0x45ab06(0x179)),_0x2836af=_0x11a81f[_0x45ab06(0x192)](_0x4b74c2=>_0x4b74c2[_0x45ab06(0x184)]===_0x45ab06(0x17f));return a108_0x5c034f(Box,{'flexDirection':_0x45ab06(0x168),'children':[a108_0x20f8cc(Box,{'marginTop':0x1,'marginBottom':0x1,'children':_0x1029da?a108_0x20f8cc(Text,{'color':_0x45ab06(0x170),'bold':!![],'children':'✓\x20MCP\x20configuration\x20completed!'}):_0x52edd9?a108_0x20f8cc(Text,{'color':_0x45ab06(0x18f),'bold':!![],'children':'⚠️\x20Some\x20configurations\x20require\x20manual\x20steps'}):_0x2836af?a108_0x20f8cc(Text,{'color':_0x45ab06(0x17d),'bold':!![],'children':_0x45ab06(0x182)}):a108_0x20f8cc(Text,{'color':'yellow','bold':!![],'children':'⚠️\x20Configuration\x20requires\x20manual\x20steps'})}),_0x11a81f[_0x45ab06(0x172)]((_0x1d5731,_0x31f966)=>{const _0x3c178b=_0x45ab06,_0x54006b=_0x1d5731[_0x3c178b(0x184)]==='success',_0x5ba1f1=_0x1d5731[_0x3c178b(0x184)]===_0x3c178b(0x179);return a108_0x5c034f(Box,{'flexDirection':_0x3c178b(0x168),'marginBottom':0x1,'children':[a108_0x20f8cc(Box,{'children':a108_0x5c034f(Text,{'bold':!![],'color':_0x54006b?_0x3c178b(0x170):_0x5ba1f1?_0x3c178b(0x18f):'red','children':[_0x54006b?'✓\x20':_0x5ba1f1?_0x3c178b(0x163):'✗\x20',_0x1d5731[_0x3c178b(0x174)],':']})}),a108_0x20f8cc(Box,{'paddingLeft':0x3,'flexDirection':_0x3c178b(0x168),'children':a108_0x20f8cc(Text,{'color':_0x3c178b(0x186),'children':_0x1d5731[_0x3c178b(0x18a)]})})]},_0x31f966);}),a108_0x20f8cc(Box,{'marginTop':0x1,'children':a108_0x20f8cc(Text,{'color':_0x45ab06(0x162),'children':'Press\x20any\x20key\x20to\x20exit...'})})]});}
package/lib/mcp/claude.js CHANGED
@@ -1 +1 @@
1
- function a109_0x4e3a(_0x5a3dc0,_0x2b0cdd){_0x5a3dc0=_0x5a3dc0-0x120;const _0x427665=a109_0x4276();let _0x4e3aed=_0x427665[_0x5a3dc0];return _0x4e3aed;}(function(_0x2e9f96,_0x585d55){const _0x2eb62d=a109_0x4e3a,_0x41318c=_0x2e9f96();while(!![]){try{const _0x31abb4=parseInt(_0x2eb62d(0x12c))/0x1+-parseInt(_0x2eb62d(0x123))/0x2+parseInt(_0x2eb62d(0x128))/0x3+parseInt(_0x2eb62d(0x120))/0x4+parseInt(_0x2eb62d(0x125))/0x5*(-parseInt(_0x2eb62d(0x126))/0x6)+-parseInt(_0x2eb62d(0x12a))/0x7*(-parseInt(_0x2eb62d(0x12e))/0x8)+parseInt(_0x2eb62d(0x129))/0x9*(parseInt(_0x2eb62d(0x12d))/0xa);if(_0x31abb4===_0x585d55)break;else _0x41318c['push'](_0x41318c['shift']());}catch(_0x15a888){_0x41318c['push'](_0x41318c['shift']());}}}(a109_0x4276,0x7763c));import{configureClaudeMcp as a109_0x107867}from'./mcp-installer.js';function a109_0x4276(){const _0x296040=['370XhkoaC','8CeCNdq','3352828MPrZDw','exit','error','1378854HPepLU','success','10055tdnHiQ','1830ngllus','\x0a📋\x20','468834oHszrj','17037vmvxhb','3557442NwFiaR','cwd','219070QLulxR'];a109_0x4276=function(){return _0x296040;};return a109_0x4276();}export async function configureClaudeMcp(){const _0x38c629=a109_0x4e3a,_0x41b574=process[_0x38c629(0x12b)](),_0x56bbe2=a109_0x107867(_0x41b574);_0x56bbe2[_0x38c629(0x124)]?(console['log'](_0x38c629(0x127)+_0x56bbe2['message']+'\x0a'),process['exit'](0x0)):(console[_0x38c629(0x122)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0x56bbe2['message']+'\x0a'),process[_0x38c629(0x121)](0x1));}
1
+ (function(_0x1f1ea8,_0x214979){const _0x5126e0=a109_0x4d4e,_0x247f59=_0x1f1ea8();while(!![]){try{const _0x4cf629=parseInt(_0x5126e0(0x10f))/0x1+-parseInt(_0x5126e0(0x10d))/0x2*(-parseInt(_0x5126e0(0x117))/0x3)+-parseInt(_0x5126e0(0x10e))/0x4*(parseInt(_0x5126e0(0x111))/0x5)+parseInt(_0x5126e0(0x116))/0x6+-parseInt(_0x5126e0(0x10c))/0x7+parseInt(_0x5126e0(0x110))/0x8+-parseInt(_0x5126e0(0x114))/0x9;if(_0x4cf629===_0x214979)break;else _0x247f59['push'](_0x247f59['shift']());}catch(_0x20ee48){_0x247f59['push'](_0x247f59['shift']());}}}(a109_0x504c,0x83701));function a109_0x504c(){const _0x5eb3fc=['\x0aError:\x20Configuration\x20failed\x20-\x20','5549082oCLOzI','2274jWLfvZ','exit','\x0a📋\x20','311150NdpPPN','530bUiJuW','1029844BESvOn','626733swLeJd','8337904RvnQeX','15HMeiif','success','message','12955374bfbEqh'];a109_0x504c=function(){return _0x5eb3fc;};return a109_0x504c();}function a109_0x4d4e(_0x21cdc8,_0x1e7400){_0x21cdc8=_0x21cdc8-0x10a;const _0x504cc3=a109_0x504c();let _0x4d4e11=_0x504cc3[_0x21cdc8];return _0x4d4e11;}import{configureClaudeMcp as a109_0x24c916}from'./mcp-installer.js';export async function configureClaudeMcp(){const _0x4c0301=a109_0x4d4e,_0x4ba615=process['cwd'](),_0x4f1e6d=a109_0x24c916(_0x4ba615);_0x4f1e6d[_0x4c0301(0x112)]?(console['log'](_0x4c0301(0x10b)+_0x4f1e6d[_0x4c0301(0x113)]+'\x0a'),process[_0x4c0301(0x10a)](0x0)):(console['error'](_0x4c0301(0x115)+_0x4f1e6d['message']+'\x0a'),process[_0x4c0301(0x10a)](0x1));}
package/lib/mcp/cursor.js CHANGED
@@ -1 +1 @@
1
- function a110_0x5798(_0x288f0a,_0x3ab01a){_0x288f0a=_0x288f0a-0x197;const _0x552c00=a110_0x552c();let _0x5798c1=_0x552c00[_0x288f0a];return _0x5798c1;}(function(_0x1b2cbe,_0x3978f4){const _0x411268=a110_0x5798,_0x4e2048=_0x1b2cbe();while(!![]){try{const _0x2c65b2=parseInt(_0x411268(0x198))/0x1+parseInt(_0x411268(0x1a3))/0x2*(parseInt(_0x411268(0x1a9))/0x3)+parseInt(_0x411268(0x19d))/0x4*(parseInt(_0x411268(0x1a6))/0x5)+-parseInt(_0x411268(0x1a7))/0x6+parseInt(_0x411268(0x1a0))/0x7*(parseInt(_0x411268(0x19a))/0x8)+-parseInt(_0x411268(0x1a8))/0x9+parseInt(_0x411268(0x199))/0xa;if(_0x2c65b2===_0x3978f4)break;else _0x4e2048['push'](_0x4e2048['shift']());}catch(_0x29a12b){_0x4e2048['push'](_0x4e2048['shift']());}}}(a110_0x552c,0x2eed2));import{configureCursorMcp as a110_0x17aab5}from'./mcp-installer.js';function a110_0x552c(){const _0x4bd6e6=['40jRMqHb','2203074xXRwxH','1383336jodveC','429VDyPMX','You\x20can\x20now\x20use\x20Lovrabet\x20dataset\x20MCP\x20tools\x20in\x20Cursor.','369717cYkuqo','1400340oPFPRN','24hppSOU','error','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','13904uYIyvD','Configuration:','log','119623fNHxYb','cwd','message','1738EkFupp','success','exit'];a110_0x552c=function(){return _0x4bd6e6;};return a110_0x552c();}export async function configureCursorMcp(){const _0xc052f5=a110_0x5798,_0x56c518=process[_0xc052f5(0x1a1)](),_0xf8be2e=await a110_0x17aab5(_0x56c518);_0xf8be2e[_0xc052f5(0x1a4)]?(console[_0xc052f5(0x19f)]('\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a'),console[_0xc052f5(0x19f)](_0xc052f5(0x19e)),console[_0xc052f5(0x19f)]('\x20\x20'+_0xf8be2e[_0xc052f5(0x1a2)]+'\x0a'),console[_0xc052f5(0x19f)](_0xc052f5(0x197)),console['log'](_0xc052f5(0x19c)),process[_0xc052f5(0x1a5)](0x0)):(console[_0xc052f5(0x19b)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0xf8be2e[_0xc052f5(0x1a2)]+'\x0a'),process['exit'](0x1));}
1
+ (function(_0x372308,_0xbd1771){const _0x4d18b3=a110_0x106f,_0xab1cb7=_0x372308();while(!![]){try{const _0x4cbf99=-parseInt(_0x4d18b3(0x1d9))/0x1+-parseInt(_0x4d18b3(0x1de))/0x2+-parseInt(_0x4d18b3(0x1d0))/0x3+parseInt(_0x4d18b3(0x1df))/0x4*(-parseInt(_0x4d18b3(0x1d6))/0x5)+parseInt(_0x4d18b3(0x1e2))/0x6+-parseInt(_0x4d18b3(0x1db))/0x7*(parseInt(_0x4d18b3(0x1d8))/0x8)+parseInt(_0x4d18b3(0x1dd))/0x9*(parseInt(_0x4d18b3(0x1d2))/0xa);if(_0x4cbf99===_0xbd1771)break;else _0xab1cb7['push'](_0xab1cb7['shift']());}catch(_0x476928){_0xab1cb7['push'](_0xab1cb7['shift']());}}}(a110_0x478a,0x56be9));import{configureCursorMcp as a110_0x56e729}from'./mcp-installer.js';function a110_0x478a(){const _0xfbefcd=['57678UQzoWk','1488441pYCyBl','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','603530PXMFQs','log','You\x20can\x20now\x20use\x20Lovrabet\x20dataset\x20MCP\x20tools\x20in\x20Cursor.','\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a','835wShOHP','success','3496ttBskv','143220GsRMgK','error','9436cHeYIT','Configuration:','369sujJCy','1096938ThgLLp','8428xgXtlE','message','cwd'];a110_0x478a=function(){return _0xfbefcd;};return a110_0x478a();}function a110_0x106f(_0x25098e,_0x7df480){_0x25098e=_0x25098e-0x1d0;const _0x478ae1=a110_0x478a();let _0x106fb7=_0x478ae1[_0x25098e];return _0x106fb7;}export async function configureCursorMcp(){const _0x21f005=a110_0x106f,_0x378ab0=process[_0x21f005(0x1e1)](),_0x49c5f2=await a110_0x56e729(_0x378ab0);_0x49c5f2[_0x21f005(0x1d7)]?(console[_0x21f005(0x1d3)](_0x21f005(0x1d5)),console[_0x21f005(0x1d3)](_0x21f005(0x1dc)),console[_0x21f005(0x1d3)]('\x20\x20'+_0x49c5f2['message']+'\x0a'),console['log'](_0x21f005(0x1d4)),console['log'](_0x21f005(0x1d1)),process['exit'](0x0)):(console[_0x21f005(0x1da)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0x49c5f2[_0x21f005(0x1e0)]+'\x0a'),process['exit'](0x1));}