@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4

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 (135) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app/add.js +1 -1
  18. package/lib/commands/app/index.js +1 -1
  19. package/lib/commands/app/list.js +1 -1
  20. package/lib/commands/app/remote.js +1 -1
  21. package/lib/commands/app/remove.js +1 -1
  22. package/lib/commands/app/shared.js +1 -1
  23. package/lib/commands/app/use.js +1 -1
  24. package/lib/commands/auth.js +1 -1
  25. package/lib/commands/bff/delete.js +1 -1
  26. package/lib/commands/bff/detail.js +1 -1
  27. package/lib/commands/bff/index.js +1 -1
  28. package/lib/commands/bff/list.js +1 -1
  29. package/lib/commands/bff/new.js +1 -1
  30. package/lib/commands/bff/pull.js +1 -1
  31. package/lib/commands/bff/push.js +1 -1
  32. package/lib/commands/bff/status.js +1 -1
  33. package/lib/commands/build.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/create.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/doctor.js +1 -1
  53. package/lib/commands/init.js +1 -1
  54. package/lib/commands/logout.js +1 -1
  55. package/lib/commands/logs.js +1 -1
  56. package/lib/commands/menu/index.js +1 -1
  57. package/lib/commands/menu/shared/compare-table.js +1 -1
  58. package/lib/commands/menu/shared/index.js +1 -1
  59. package/lib/commands/menu/shared/inquirer.js +1 -1
  60. package/lib/commands/menu/shared/local-pages.js +1 -1
  61. package/lib/commands/menu/shared/logic.js +1 -1
  62. package/lib/commands/menu/shared/service.js +1 -1
  63. package/lib/commands/menu/shared/sync-core.js +1 -1
  64. package/lib/commands/menu/shared/update-core.js +1 -1
  65. package/lib/commands/menu/shared/valid-url.js +1 -1
  66. package/lib/commands/menu/sync.js +1 -1
  67. package/lib/commands/menu/update.js +1 -1
  68. package/lib/commands/preview.js +1 -1
  69. package/lib/commands/project-upgrade.js +1 -1
  70. package/lib/commands/registry.js +1 -1
  71. package/lib/commands/run.js +1 -1
  72. package/lib/commands/skill.js +1 -1
  73. package/lib/commands/smart-init.js +1 -1
  74. package/lib/commands/sql/detail.js +1 -1
  75. package/lib/commands/sql/exec.js +1 -1
  76. package/lib/commands/sql/index.js +1 -1
  77. package/lib/commands/sql/list.js +1 -1
  78. package/lib/commands/sql/save.js +1 -1
  79. package/lib/commands/sql/validate.js +1 -1
  80. package/lib/commands/start.js +1 -1
  81. package/lib/constant/cli.js +1 -1
  82. package/lib/constant/domain.js +1 -1
  83. package/lib/constant/env.js +1 -1
  84. package/lib/context.js +1 -1
  85. package/lib/core/alias-resolver.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/bff/config.js +1 -1
  88. package/lib/core/bff/file-system.js +1 -1
  89. package/lib/core/bff/hash.js +1 -1
  90. package/lib/core/bff/lock.js +1 -1
  91. package/lib/core/bff/utils.js +1 -1
  92. package/lib/core/db-resolver.js +1 -1
  93. package/lib/core/sql-validator.js +1 -1
  94. package/lib/create-app/enhanced-guided-create.js +1 -1
  95. package/lib/create-app/format-elapsed.js +1 -1
  96. package/lib/create-app/main.js +1 -1
  97. package/lib/create-app/non-interactive.js +1 -1
  98. package/lib/create-app/use-copy-project-template.js +1 -1
  99. package/lib/create-app/use-format-code.js +1 -1
  100. package/lib/create-app/use-install-dependencies.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/types.js +1 -1
  109. package/lib/generated/build-info.js +1 -1
  110. package/lib/help.js +1 -1
  111. package/lib/init/main.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/ensure-cli-otel-config.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/telemetry/send-cli-trace-log.js +1 -1
  118. package/lib/utils/ai_config.js +1 -1
  119. package/lib/utils/cdn-config.js +1 -1
  120. package/lib/utils/check-sdk-version.js +1 -1
  121. package/lib/utils/cli-version-check.js +1 -1
  122. package/lib/utils/config.js +1 -1
  123. package/lib/utils/copy-directory.js +1 -1
  124. package/lib/utils/file-utils.js +1 -1
  125. package/lib/utils/guides-cdn.js +1 -1
  126. package/lib/utils/http-client.js +1 -1
  127. package/lib/utils/is-non-interactive.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/rules-cdn.js +1 -1
  131. package/lib/utils/sleep.js +1 -1
  132. package/lib/utils/template-replacer.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/with-active-cookie.js +1 -1
  135. package/package.json +3 -3
@@ -1 +1 @@
1
- (function(_0x1f3efd,_0xe38b55){const _0x52cb8f=a98_0x81f0,_0xa0c387=_0x1f3efd();while(!![]){try{const _0xa46848=parseInt(_0x52cb8f(0x157))/0x1+-parseInt(_0x52cb8f(0x137))/0x2*(-parseInt(_0x52cb8f(0x154))/0x3)+-parseInt(_0x52cb8f(0x152))/0x4+-parseInt(_0x52cb8f(0x120))/0x5*(-parseInt(_0x52cb8f(0x12c))/0x6)+parseInt(_0x52cb8f(0x14f))/0x7*(parseInt(_0x52cb8f(0x122))/0x8)+parseInt(_0x52cb8f(0x12b))/0x9*(-parseInt(_0x52cb8f(0x156))/0xa)+-parseInt(_0x52cb8f(0x149))/0xb*(parseInt(_0x52cb8f(0x144))/0xc);if(_0xa46848===_0xe38b55)break;else _0xa0c387['push'](_0xa0c387['shift']());}catch(_0x1e0c05){_0xa0c387['push'](_0xa0c387['shift']());}}}(a98_0x5d08,0x63f6d));import a98_0xadf3ce from'path';import{fileURLToPath}from'url';import a98_0x56743e from'fs/promises';import{existsSync}from'fs';import{exec,execSync}from'child_process';import{copyDirectory}from'../utils/copy-directory.js';import{promisify}from'util';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';function a98_0x81f0(_0x30179b,_0x2013ae){_0x30179b=_0x30179b-0x11f;const _0x5d088f=a98_0x5d08();let _0x81f0ee=_0x5d088f[_0x30179b];return _0x81f0ee;}import{writeConfigFile,NEW_CONFIG_NAME}from'../context.js';import{readConfig}from'../utils/config.js';import{getCliVersion}from'../utils/version.js';import{CliErrors}from'../errors.js';import{fetchModelList}from'../api/fetch-model-list.js';import{generateApiFile}from'../api/generate-api-file.js';import{initEnv}from'../constant/env.js';const execAsync=promisify(exec);function a98_0x5d08(){const _0xdebaf8=['./src/api/','npm','join','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`rabetbase\x20api\x20pull`\x20manually\x20later.','\x20\x20√\x20Code\x20formatted','name','bun','bun\x20run\x20format','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','3021492nQeZpr','chdir','stringify','cwd','\x20\x20√\x20Project\x20template\x20created','44XLZgFy','\x22\x20already\x20exists.','length','\x20model(s)','trim','bun\x20--version','616294lUbKIV','utf-8','toLocaleString','1171184BWPKVW','ignore','61572QSfqgf','resolve','52380zBhFTV','3697vGDxYD','writeFile','*\x20Creating\x20project\x20','450260fSULnD','Project\x20name\x20contains\x20invalid\x20characters.','64mIOgKF','\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)','readFile','\x20\x20rabetbase\x20run\x20start\x0a','...','description','production','modelCount','dirname','342gBskCa','54GTBbNP','\x20created\x20successfully!','\x20\x20Installing\x20dependencies...','package.json','\x20\x20Pulling\x20API\x20configuration...','Project\x20directory\x20\x22','Use\x20a\x20different\x20project\x20name.','string','Cannot\x20create\x20project\x20in\x20current\x20directory.','W_OK','validation','38onrLbN','env','constants','log'];a98_0x5d08=function(){return _0xdebaf8;};return a98_0x5d08();}function getTemplateDir(){const _0x14473f=a98_0x81f0,_0x3f07c0=fileURLToPath(import.meta.url),_0x2a01bf=a98_0xadf3ce[_0x14473f(0x12a)](_0x3f07c0);return a98_0xadf3ce[_0x14473f(0x155)](_0x2a01bf,'../../templates/projects/sub-app-react-demo');}export async function createProjectNonInteractive(_0x59f031,_0x27769b,_0x16cf15,_0x2ceb53){const _0x5100be=a98_0x81f0,_0x2a389e=await checkCliVersion();_0x2a389e['needsUpgrade']&&printCliUpgradeWarning(_0x2a389e);if(!_0x59f031||_0x59f031[_0x5100be(0x14d)]()==='')throw CliErrors[_0x5100be(0x136)]('Project\x20name\x20cannot\x20be\x20empty.');const _0x32e875=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x32e875['test'](_0x59f031))throw CliErrors[_0x5100be(0x136)](_0x5100be(0x121),_0x5100be(0x143));if(_0x59f031[_0x5100be(0x14b)]>0x64)throw CliErrors[_0x5100be(0x136)]('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.');const _0x265a90=a98_0xadf3ce['resolve'](process[_0x5100be(0x147)](),_0x59f031);if(existsSync(_0x265a90))throw CliErrors[_0x5100be(0x136)](_0x5100be(0x131)+_0x59f031+_0x5100be(0x14a),_0x5100be(0x132));try{const _0x4442d0=a98_0xadf3ce[_0x5100be(0x12a)](_0x265a90);await a98_0x56743e['access'](_0x4442d0,a98_0x56743e[_0x5100be(0x139)][_0x5100be(0x135)]);}catch{throw CliErrors[_0x5100be(0x136)](_0x5100be(0x134),'Check\x20directory\x20permissions.');}try{console[_0x5100be(0x13a)](_0x5100be(0x11f)+_0x59f031+_0x5100be(0x126));const _0x882b76=getTemplateDir();await copyDirectory(_0x882b76,_0x265a90),console[_0x5100be(0x13a)](_0x5100be(0x148)),await updatePackageJsonName(_0x59f031),console[_0x5100be(0x13a)]('\x20\x20√\x20package.json\x20updated'),console[_0x5100be(0x13a)](_0x5100be(0x12e)),console[_0x5100be(0x13a)](_0x5100be(0x123)),await formatCode(_0x265a90),console[_0x5100be(0x13a)](_0x5100be(0x13f)),await configureProject(_0x59f031,_0x16cf15,_0x27769b),console['log']('\x20\x20√\x20Configuration\x20file\x20created'),_0x16cf15&&await pullApiConfig(_0x265a90,_0x16cf15,_0x27769b,_0x2ceb53),console[_0x5100be(0x13a)]('\x0a√\x20Project\x20'+_0x59f031+_0x5100be(0x12d)),console[_0x5100be(0x13a)]('\x0a\x20\x20cd\x20'+_0x59f031),console[_0x5100be(0x13a)](_0x5100be(0x125));}catch(_0x3e485d){try{existsSync(_0x265a90)&&await a98_0x56743e['rm'](_0x265a90,{'recursive':!![],'force':!![]});}catch{}throw _0x3e485d;}}async function updatePackageJsonName(_0x35f393){const _0x333eb5=a98_0x81f0,_0x28e5da=a98_0xadf3ce['resolve'](process[_0x333eb5(0x147)](),_0x35f393),_0x3242f6=a98_0xadf3ce['join'](_0x28e5da,_0x333eb5(0x12f)),_0xd6364e=await a98_0x56743e[_0x333eb5(0x124)](_0x3242f6,_0x333eb5(0x150)),_0x3b350b=JSON['parse'](_0xd6364e);_0x3b350b[_0x333eb5(0x140)]=_0x35f393,_0x3b350b[_0x333eb5(0x127)]='A\x20project\x20created\x20with\x20Lovrabet\x20CLI',await a98_0x56743e[_0x333eb5(0x158)](_0x3242f6,JSON[_0x333eb5(0x146)](_0x3b350b,null,0x2)+'\x0a');}function detectPackageManager(){const _0x4759f7=a98_0x81f0;try{return execSync(_0x4759f7(0x14e),{'stdio':_0x4759f7(0x153)}),_0x4759f7(0x141);}catch{return _0x4759f7(0x13c);}}async function formatCode(_0x112cc4){const _0x2bf8e1=a98_0x81f0;try{await execAsync(_0x2bf8e1(0x142),{'cwd':_0x112cc4});}catch{}}async function configureProject(_0x362f41,_0x186eb3,_0x34cb48){const _0x4e6c8b=a98_0x81f0,_0x3e597c=a98_0xadf3ce[_0x4e6c8b(0x155)](process[_0x4e6c8b(0x147)](),_0x362f41),_0x3b0de8=a98_0xadf3ce[_0x4e6c8b(0x13d)](_0x3e597c,NEW_CONFIG_NAME),_0x10a748=readConfig(),_0x30ae84=typeof _0x10a748[_0x4e6c8b(0x138)]===_0x4e6c8b(0x133)?_0x10a748[_0x4e6c8b(0x138)]:undefined,{app:_0xbfa649,appcode:_0x44fb0c,..._0x5a5a26}=_0x10a748,_0x252f15={..._0x5a5a26,'appcode':_0x186eb3||'','env':_0x34cb48||_0x30ae84||_0x4e6c8b(0x128),'createdAt':new Date()[_0x4e6c8b(0x151)](),'version':getCliVersion()};writeConfigFile(_0x3b0de8,_0x252f15);}async function pullApiConfig(_0x52820d,_0x5f27e2,_0x2c6210,_0x3327fd){const _0x4703db=a98_0x81f0,_0x59feba=process[_0x4703db(0x147)]();try{process[_0x4703db(0x145)](_0x52820d);const _0x19543f=_0x2c6210||_0x4703db(0x128);initEnv(_0x19543f),console['log'](_0x4703db(0x130));const {configArray:_0xd49f5e}=await fetchModelList(_0x5f27e2,_0x3327fd||''),_0x4e34fe=await generateApiFile(_0xd49f5e,'',_0x5f27e2,!![],_0x19543f,_0x4703db(0x13b));console[_0x4703db(0x13a)]('\x20\x20√\x20Pulled\x20'+_0xd49f5e[_0x4703db(0x14b)]+'\x20dataset(s),\x20generated\x20'+_0x4e34fe[_0x4703db(0x129)]+_0x4703db(0x14c));}catch(_0x456a68){console['log'](_0x4703db(0x13e));}finally{process['chdir'](_0x59feba);}}
1
+ (function(_0x56282f,_0x3232c8){const _0x364d86=a98_0x2dd1,_0x494de9=_0x56282f();while(!![]){try{const _0x22a36c=parseInt(_0x364d86(0xd5))/0x1+-parseInt(_0x364d86(0xff))/0x2*(-parseInt(_0x364d86(0xce))/0x3)+-parseInt(_0x364d86(0xfa))/0x4*(-parseInt(_0x364d86(0xe6))/0x5)+-parseInt(_0x364d86(0xf4))/0x6+-parseInt(_0x364d86(0xcd))/0x7+parseInt(_0x364d86(0xef))/0x8*(-parseInt(_0x364d86(0xd6))/0x9)+-parseInt(_0x364d86(0xf3))/0xa*(parseInt(_0x364d86(0xfe))/0xb);if(_0x22a36c===_0x3232c8)break;else _0x494de9['push'](_0x494de9['shift']());}catch(_0xb278fb){_0x494de9['push'](_0x494de9['shift']());}}}(a98_0x517f,0xea2ff));import a98_0x20c313 from'path';import{fileURLToPath}from'url';import a98_0x20d6e7 from'fs/promises';import{existsSync}from'fs';import{exec,execSync}from'child_process';function a98_0x2dd1(_0x9cedb6,_0x31d49f){_0x9cedb6=_0x9cedb6-0xca;const _0x517fe4=a98_0x517f();let _0x2dd1a1=_0x517fe4[_0x9cedb6];return _0x2dd1a1;}import{copyDirectory}from'../utils/copy-directory.js';import{promisify}from'util';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';function a98_0x517f(){const _0x40b7cf=['\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)','trim','\x20\x20rabetbase\x20run\x20start\x0a','Project\x20name\x20cannot\x20be\x20empty.','writeFile','\x20\x20Installing\x20dependencies...','needsUpgrade','341605GiBmLt','utf-8','\x20\x20√\x20Configuration\x20file\x20created','parse','\x0a√\x20Project\x20','bun\x20run\x20format','\x20\x20√\x20Project\x20template\x20created','name','chdir','1928JezRVr','join','Check\x20directory\x20permissions.','Project\x20name\x20contains\x20invalid\x20characters.','20ZHInie','7574106xuIiFb','\x20\x20√\x20package.json\x20updated','cwd','dirname','resolve','\x20created\x20successfully!','4unPTCm','./src/api/','validation','\x0a\x20\x20cd\x20','695761jmuJOE','180950PBAJmW','toLocaleString','log','string','access','../../templates/projects/sub-app-react-demo','\x20\x20√\x20Code\x20formatted','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`rabetbase\x20api\x20pull`\x20manually\x20later.','1664299vLsSNx','42bSsGjW','\x20\x20√\x20Pulled\x20','stringify','env','length','package.json','...','1380528JNToag','4842KCvcOG','\x20dataset(s),\x20generated\x20','bun','description','\x20model(s)','\x20\x20Pulling\x20API\x20configuration...','Use\x20a\x20different\x20project\x20name.','bun\x20--version','production'];a98_0x517f=function(){return _0x40b7cf;};return a98_0x517f();}import{writeConfigFile,NEW_CONFIG_NAME}from'../context.js';import{readConfig}from'../utils/config.js';import{getCliVersion}from'../utils/version.js';import{CliErrors}from'../errors.js';import{fetchModelList}from'../api/fetch-model-list.js';import{generateApiFile}from'../api/generate-api-file.js';import{initEnv}from'../constant/env.js';const execAsync=promisify(exec);function getTemplateDir(){const _0x424c8c=a98_0x2dd1,_0x2922bb=fileURLToPath(import.meta.url),_0x1ef818=a98_0x20c313[_0x424c8c(0xf7)](_0x2922bb);return a98_0x20c313[_0x424c8c(0xf8)](_0x1ef818,_0x424c8c(0xca));}export async function createProjectNonInteractive(_0x443fec,_0x5652ef,_0x41c9a9,_0x596143){const _0x1a7593=a98_0x2dd1,_0x3ddfc2=await checkCliVersion();_0x3ddfc2[_0x1a7593(0xe5)]&&printCliUpgradeWarning(_0x3ddfc2);if(!_0x443fec||_0x443fec[_0x1a7593(0xe0)]()==='')throw CliErrors[_0x1a7593(0xfc)](_0x1a7593(0xe2));const _0x24c9c4=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x24c9c4['test'](_0x443fec))throw CliErrors[_0x1a7593(0xfc)](_0x1a7593(0xf2),'Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters');if(_0x443fec[_0x1a7593(0xd2)]>0x64)throw CliErrors['validation']('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.');const _0x1fb2b4=a98_0x20c313[_0x1a7593(0xf8)](process[_0x1a7593(0xf6)](),_0x443fec);if(existsSync(_0x1fb2b4))throw CliErrors[_0x1a7593(0xfc)]('Project\x20directory\x20\x22'+_0x443fec+'\x22\x20already\x20exists.',_0x1a7593(0xdc));try{const _0x3249ea=a98_0x20c313[_0x1a7593(0xf7)](_0x1fb2b4);await a98_0x20d6e7[_0x1a7593(0x103)](_0x3249ea,a98_0x20d6e7['constants']['W_OK']);}catch{throw CliErrors[_0x1a7593(0xfc)]('Cannot\x20create\x20project\x20in\x20current\x20directory.',_0x1a7593(0xf1));}try{console[_0x1a7593(0x101)]('*\x20Creating\x20project\x20'+_0x443fec+_0x1a7593(0xd4));const _0x5ac748=getTemplateDir();await copyDirectory(_0x5ac748,_0x1fb2b4),console[_0x1a7593(0x101)](_0x1a7593(0xec)),await updatePackageJsonName(_0x443fec),console[_0x1a7593(0x101)](_0x1a7593(0xf5)),console[_0x1a7593(0x101)](_0x1a7593(0xe4)),console['log'](_0x1a7593(0xdf)),await formatCode(_0x1fb2b4),console[_0x1a7593(0x101)](_0x1a7593(0xcb)),await configureProject(_0x443fec,_0x41c9a9,_0x5652ef),console['log'](_0x1a7593(0xe8)),_0x41c9a9&&await pullApiConfig(_0x1fb2b4,_0x41c9a9,_0x5652ef,_0x596143),console[_0x1a7593(0x101)](_0x1a7593(0xea)+_0x443fec+_0x1a7593(0xf9)),console[_0x1a7593(0x101)](_0x1a7593(0xfd)+_0x443fec),console['log'](_0x1a7593(0xe1));}catch(_0x24128e){try{existsSync(_0x1fb2b4)&&await a98_0x20d6e7['rm'](_0x1fb2b4,{'recursive':!![],'force':!![]});}catch{}throw _0x24128e;}}async function updatePackageJsonName(_0x153600){const _0x2ecbf4=a98_0x2dd1,_0x5e1648=a98_0x20c313[_0x2ecbf4(0xf8)](process[_0x2ecbf4(0xf6)](),_0x153600),_0x52a407=a98_0x20c313['join'](_0x5e1648,_0x2ecbf4(0xd3)),_0x555db4=await a98_0x20d6e7['readFile'](_0x52a407,_0x2ecbf4(0xe7)),_0x232417=JSON[_0x2ecbf4(0xe9)](_0x555db4);_0x232417[_0x2ecbf4(0xed)]=_0x153600,_0x232417[_0x2ecbf4(0xd9)]='A\x20project\x20created\x20with\x20Lovrabet\x20CLI',await a98_0x20d6e7[_0x2ecbf4(0xe3)](_0x52a407,JSON[_0x2ecbf4(0xd0)](_0x232417,null,0x2)+'\x0a');}function detectPackageManager(){const _0x19f9d0=a98_0x2dd1;try{return execSync(_0x19f9d0(0xdd),{'stdio':'ignore'}),_0x19f9d0(0xd8);}catch{return'npm';}}async function formatCode(_0x30ec61){const _0xfd1d58=a98_0x2dd1;try{await execAsync(_0xfd1d58(0xeb),{'cwd':_0x30ec61});}catch{}}async function configureProject(_0x5e3094,_0x216fae,_0x22cc8b){const _0xc97362=a98_0x2dd1,_0x3c2442=a98_0x20c313[_0xc97362(0xf8)](process['cwd'](),_0x5e3094),_0x2227a1=a98_0x20c313[_0xc97362(0xf0)](_0x3c2442,NEW_CONFIG_NAME),_0x43afdb=readConfig(),_0x1bdf68=typeof _0x43afdb[_0xc97362(0xd1)]===_0xc97362(0x102)?_0x43afdb[_0xc97362(0xd1)]:undefined,{app:_0xa9f692,appcode:_0x26c60c,..._0x49107f}=_0x43afdb,_0x57d20f={..._0x49107f,'appcode':_0x216fae||'','env':_0x22cc8b||_0x1bdf68||_0xc97362(0xde),'createdAt':new Date()[_0xc97362(0x100)](),'version':getCliVersion()};writeConfigFile(_0x2227a1,_0x57d20f);}async function pullApiConfig(_0x1119f9,_0x31b048,_0x428210,_0x6ca852){const _0xaf3baa=a98_0x2dd1,_0x447e28=process[_0xaf3baa(0xf6)]();try{process['chdir'](_0x1119f9);const _0x6ee22e=_0x428210||_0xaf3baa(0xde);initEnv(_0x6ee22e),console[_0xaf3baa(0x101)](_0xaf3baa(0xdb));const {configArray:_0xd32402}=await fetchModelList(_0x31b048,_0x6ca852||''),_0x31c169=await generateApiFile(_0xd32402,'',_0x31b048,!![],_0x6ee22e,_0xaf3baa(0xfb));console[_0xaf3baa(0x101)](_0xaf3baa(0xcf)+_0xd32402[_0xaf3baa(0xd2)]+_0xaf3baa(0xd7)+_0x31c169['modelCount']+_0xaf3baa(0xda));}catch(_0x382497){console['log'](_0xaf3baa(0xcc));}finally{process[_0xaf3baa(0xee)](_0x447e28);}}
@@ -1 +1 @@
1
- function a99_0x1fd3(_0x3a55f8,_0x35d114){_0x3a55f8=_0x3a55f8-0xa1;const _0x18b351=a99_0x18b3();let _0x1fd35b=_0x18b351[_0x3a55f8];return _0x1fd35b;}const a99_0xbd8bd7=a99_0x1fd3;(function(_0x27e94f,_0x3fd7e4){const _0x3fd887=a99_0x1fd3,_0xdfa292=_0x27e94f();while(!![]){try{const _0x1b7900=-parseInt(_0x3fd887(0xad))/0x1*(parseInt(_0x3fd887(0xa1))/0x2)+-parseInt(_0x3fd887(0xa2))/0x3+parseInt(_0x3fd887(0xb4))/0x4+-parseInt(_0x3fd887(0xaf))/0x5+parseInt(_0x3fd887(0xa5))/0x6+-parseInt(_0x3fd887(0xa3))/0x7+parseInt(_0x3fd887(0xa6))/0x8*(parseInt(_0x3fd887(0xae))/0x9);if(_0x1b7900===_0x3fd7e4)break;else _0xdfa292['push'](_0xdfa292['shift']());}catch(_0x2d9884){_0xdfa292['push'](_0xdfa292['shift']());}}}(a99_0x18b3,0xdca32));import a99_0x4e1152 from'node:path';function a99_0x18b3(){const _0x15f34e=['1954851EOUEKd','3259795yTOaiW','now','4420650PjdpgP','9777808TGpKOk','info','../../templates/projects/sub-app-react-demo','项目模板复制失败','resolve','message','开始复制项目模板','1542ofYWmY','18JcJWsq','3808055PcDyya','copy','cwd','success','error','2038616KOWbZh','1178SkBTXb'];a99_0x18b3=function(){return _0x15f34e;};return a99_0x18b3();}import{fileURLToPath}from'node:url';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';const __dirname=a99_0x4e1152['dirname'](fileURLToPath(import.meta.url)),templateDir=a99_0x4e1152[a99_0xbd8bd7(0xaa)](__dirname,a99_0xbd8bd7(0xa8));export async function copyProjectTemplate(_0x38451a){const _0x24b10b=a99_0xbd8bd7,_0x25c43b=Date[_0x24b10b(0xa4)](),_0x1a13da=a99_0x4e1152['resolve'](process[_0x24b10b(0xb1)](),_0x38451a);try{logger[_0x24b10b(0xa7)](_0x24b10b(0xb0),_0x24b10b(0xac),{'projectCode':_0x38451a,'templateDir':templateDir}),await copyDirectory(templateDir,_0x1a13da);const _0x25a6d1=Date[_0x24b10b(0xa4)]()-_0x25c43b;logger[_0x24b10b(0xb2)](_0x24b10b(0xb0),'项目模板复制完成',_0x25a6d1,{'projectCode':_0x38451a});}catch(_0x5fd4ed){const _0x1b3e7e=Date['now']()-_0x25c43b;logger[_0x24b10b(0xb3)](_0x24b10b(0xb0),_0x24b10b(0xa9),{'projectCode':_0x38451a,'error':_0x5fd4ed instanceof Error?_0x5fd4ed[_0x24b10b(0xab)]:String(_0x5fd4ed),'duration':_0x1b3e7e});throw _0x5fd4ed;}return formatElapsed(_0x25c43b);}
1
+ (function(_0x48cef1,_0x1f97dc){const _0x352b05=a99_0x4c72,_0x209bb4=_0x48cef1();while(!![]){try{const _0x10c8a3=parseInt(_0x352b05(0x85))/0x1*(-parseInt(_0x352b05(0x8b))/0x2)+parseInt(_0x352b05(0x8d))/0x3*(parseInt(_0x352b05(0x7a))/0x4)+parseInt(_0x352b05(0x82))/0x5*(parseInt(_0x352b05(0x7d))/0x6)+parseInt(_0x352b05(0x90))/0x7*(-parseInt(_0x352b05(0x86))/0x8)+parseInt(_0x352b05(0x83))/0x9+parseInt(_0x352b05(0x87))/0xa*(parseInt(_0x352b05(0x89))/0xb)+parseInt(_0x352b05(0x84))/0xc*(parseInt(_0x352b05(0x88))/0xd);if(_0x10c8a3===_0x1f97dc)break;else _0x209bb4['push'](_0x209bb4['shift']());}catch(_0x315d56){_0x209bb4['push'](_0x209bb4['shift']());}}}(a99_0x5bbc,0x6618d));import a99_0x36523c from'node:path';import{fileURLToPath}from'node:url';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';const __dirname=a99_0x36523c['dirname'](fileURLToPath(import.meta.url)),templateDir=a99_0x36523c['resolve'](__dirname,'../../templates/projects/sub-app-react-demo');export async function copyProjectTemplate(_0x5574cf){const _0x5bc5c5=a99_0x4c72,_0xf08416=Date[_0x5bc5c5(0x80)](),_0x702ab8=a99_0x36523c[_0x5bc5c5(0x8f)](process[_0x5bc5c5(0x8e)](),_0x5574cf);try{logger[_0x5bc5c5(0x8c)]('copy',_0x5bc5c5(0x7f),{'projectCode':_0x5574cf,'templateDir':templateDir}),await copyDirectory(templateDir,_0x702ab8);const _0x1ca485=Date[_0x5bc5c5(0x80)]()-_0xf08416;logger[_0x5bc5c5(0x8a)](_0x5bc5c5(0x7b),_0x5bc5c5(0x7c),_0x1ca485,{'projectCode':_0x5574cf});}catch(_0x2f7c26){const _0x593d67=Date['now']()-_0xf08416;logger[_0x5bc5c5(0x81)](_0x5bc5c5(0x7b),'项目模板复制失败',{'projectCode':_0x5574cf,'error':_0x2f7c26 instanceof Error?_0x2f7c26[_0x5bc5c5(0x7e)]:String(_0x2f7c26),'duration':_0x593d67});throw _0x2f7c26;}return formatElapsed(_0xf08416);}function a99_0x4c72(_0x38890d,_0x105e4e){_0x38890d=_0x38890d-0x7a;const _0x5bbc0d=a99_0x5bbc();let _0x4c721e=_0x5bbc0d[_0x38890d];return _0x4c721e;}function a99_0x5bbc(){const _0x53f9cd=['344ZuzUQa','1130hfdGhL','2107027DDPZho','23309cSPVGP','success','1590156WkJHdh','info','546YHFBRX','cwd','resolve','107975JbCyeq','14820ZLiJVj','copy','项目模板复制完成','6kgOtTK','message','开始复制项目模板','now','error','1117855cRHvoq','2276793NEJyMs','36vqswfv','1xiyKAM'];a99_0x5bbc=function(){return _0x53f9cd;};return a99_0x5bbc();}
@@ -1 +1 @@
1
- (function(_0xce7b48,_0x6d2506){const _0x1ec2b7=a100_0x56e5,_0xa90d4b=_0xce7b48();while(!![]){try{const _0x418b45=parseInt(_0x1ec2b7(0xf0))/0x1*(parseInt(_0x1ec2b7(0xfd))/0x2)+-parseInt(_0x1ec2b7(0xf4))/0x3*(parseInt(_0x1ec2b7(0xef))/0x4)+-parseInt(_0x1ec2b7(0x103))/0x5+parseInt(_0x1ec2b7(0xf1))/0x6+parseInt(_0x1ec2b7(0xf8))/0x7*(parseInt(_0x1ec2b7(0xfb))/0x8)+parseInt(_0x1ec2b7(0xf6))/0x9*(parseInt(_0x1ec2b7(0x100))/0xa)+-parseInt(_0x1ec2b7(0x102))/0xb*(parseInt(_0x1ec2b7(0xfa))/0xc);if(_0x418b45===_0x6d2506)break;else _0xa90d4b['push'](_0xa90d4b['shift']());}catch(_0x525f95){_0xa90d4b['push'](_0xa90d4b['shift']());}}}(a100_0x1e81,0x2dac9));import a100_0x223383 from'node:path';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a100_0x56e5(_0x8bf311,_0x4de0c6){_0x8bf311=_0x8bf311-0xee;const _0x1e81a2=a100_0x1e81();let _0x56e530=_0x1e81a2[_0x8bf311];return _0x56e530;}function a100_0x1e81(){const _0x14f908=['8CuKNrC','2bVByRG','2122542xDxsZV','prettier','resolve','46929BiujEX','format','608841XgVSrD','now','937433MLmjZc','代码格式化失败','4494264KYNzDR','8CcmUNv','开始格式化代码','166528VOVdZs','success','message','40sEjLJX','--write','11jdQJlM','1659555cUArZb','error'];a100_0x1e81=function(){return _0x14f908;};return a100_0x1e81();}import{resolveNpmBin}from'../utils/platform.js';export async function formatProjectCode(_0xdee605){const _0x37d7b1=a100_0x56e5,_0x495353=Date[_0x37d7b1(0xf7)](),_0x524d73=a100_0x223383[_0x37d7b1(0xf3)](process['cwd'](),_0xdee605);try{logger['info'](_0x37d7b1(0xf5),_0x37d7b1(0xfc),{'projectCode':_0xdee605}),await execa(resolveNpmBin('npx'),[_0x37d7b1(0xf2),_0x37d7b1(0x101),'.'],{'cwd':_0x524d73});const _0x38c910=Date['now']()-_0x495353;logger[_0x37d7b1(0xfe)]('format','代码格式化完成',_0x38c910,{'projectCode':_0xdee605});}catch(_0x321062){const _0xee490f=Date['now']()-_0x495353;logger[_0x37d7b1(0xee)](_0x37d7b1(0xf5),_0x37d7b1(0xf9),{'projectCode':_0xdee605,'error':_0x321062 instanceof Error?_0x321062[_0x37d7b1(0xff)]:String(_0x321062),'duration':_0xee490f});throw _0x321062;}return formatElapsed(_0x495353);}
1
+ (function(_0x574f38,_0x1d6a8d){const _0x1878d7=a100_0x3c35,_0x1e872b=_0x574f38();while(!![]){try{const _0x30f2e3=parseInt(_0x1878d7(0xac))/0x1+-parseInt(_0x1878d7(0xb5))/0x2*(parseInt(_0x1878d7(0xbe))/0x3)+-parseInt(_0x1878d7(0xb0))/0x4+parseInt(_0x1878d7(0xb1))/0x5+-parseInt(_0x1878d7(0xb9))/0x6*(parseInt(_0x1878d7(0xb7))/0x7)+-parseInt(_0x1878d7(0xae))/0x8+-parseInt(_0x1878d7(0xab))/0x9*(-parseInt(_0x1878d7(0xaf))/0xa);if(_0x30f2e3===_0x1d6a8d)break;else _0x1e872b['push'](_0x1e872b['shift']());}catch(_0x2c3d38){_0x1e872b['push'](_0x1e872b['shift']());}}}(a100_0x430d,0xd5ec0));import a100_0x35e921 from'node:path';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';function a100_0x3c35(_0x563d27,_0x5187d1){_0x563d27=_0x563d27-0xab;const _0x430d8=a100_0x430d();let _0x3c35ce=_0x430d8[_0x563d27];return _0x3c35ce;}function a100_0x430d(){const _0x5c76b8=['cwd','resolve','363330WpJXHD','218225FKRqWx','format','2222272ImFmob','230rVEIvE','1864564eUSOfq','4891765iIVlPa','npx','error','info','218840AVJjJh','success','470813ytQrlo','代码格式化完成','6WHcdqi','now','开始格式化代码','--write','prettier','12mCSihV','代码格式化失败'];a100_0x430d=function(){return _0x5c76b8;};return a100_0x430d();}import{logger}from'../utils/logger.js';import{resolveNpmBin}from'../utils/platform.js';export async function formatProjectCode(_0x1a4ad6){const _0x3c6f95=a100_0x3c35,_0xa6a996=Date[_0x3c6f95(0xba)](),_0x213f86=a100_0x35e921[_0x3c6f95(0xc1)](process[_0x3c6f95(0xc0)](),_0x1a4ad6);try{logger[_0x3c6f95(0xb4)](_0x3c6f95(0xad),_0x3c6f95(0xbb),{'projectCode':_0x1a4ad6}),await execa(resolveNpmBin(_0x3c6f95(0xb2)),[_0x3c6f95(0xbd),_0x3c6f95(0xbc),'.'],{'cwd':_0x213f86});const _0x7afce1=Date[_0x3c6f95(0xba)]()-_0xa6a996;logger[_0x3c6f95(0xb6)]('format',_0x3c6f95(0xb8),_0x7afce1,{'projectCode':_0x1a4ad6});}catch(_0x2580c0){const _0x970860=Date[_0x3c6f95(0xba)]()-_0xa6a996;logger[_0x3c6f95(0xb3)](_0x3c6f95(0xad),_0x3c6f95(0xbf),{'projectCode':_0x1a4ad6,'error':_0x2580c0 instanceof Error?_0x2580c0['message']:String(_0x2580c0),'duration':_0x970860});throw _0x2580c0;}return formatElapsed(_0xa6a996);}
@@ -1 +1 @@
1
- (function(_0x2f9906,_0x443f27){const _0x1d746c=a101_0x20dd,_0x25ae32=_0x2f9906();while(!![]){try{const _0x593abd=parseInt(_0x1d746c(0x160))/0x1+parseInt(_0x1d746c(0x16b))/0x2+parseInt(_0x1d746c(0x165))/0x3+parseInt(_0x1d746c(0x161))/0x4+-parseInt(_0x1d746c(0x15d))/0x5+-parseInt(_0x1d746c(0x166))/0x6+-parseInt(_0x1d746c(0x163))/0x7;if(_0x593abd===_0x443f27)break;else _0x25ae32['push'](_0x25ae32['shift']());}catch(_0x12e224){_0x25ae32['push'](_0x25ae32['shift']());}}}(a101_0x434a,0x64e83));import a101_0x435552 from'node:path';function a101_0x434a(){const _0x5ee95e=['3170295CYmiQr','success','--registry','759826eHmXNL','1382548iIoFcY','error','354508TRTirr','依赖安装完成','154842WZzbCP','2322138ktGmTg','info','resolve','cwd','依赖安装失败','655928nYykHf','now','install','npm','https://registry.npmmirror.com'];a101_0x434a=function(){return _0x5ee95e;};return a101_0x434a();}function a101_0x20dd(_0x6446d7,_0xfefc4a){_0x6446d7=_0x6446d7-0x15a;const _0x434aff=a101_0x434a();let _0x20dd22=_0x434aff[_0x6446d7];return _0x20dd22;}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';import{resolveNpmBin}from'../utils/platform.js';export async function installDependencies(_0x50d67e){const _0x3c3cab=a101_0x20dd,_0x14f67f=Date[_0x3c3cab(0x16c)](),_0x48da44=a101_0x435552[_0x3c3cab(0x168)](process[_0x3c3cab(0x169)](),_0x50d67e);try{logger[_0x3c3cab(0x167)]('install','开始安装依赖',{'projectCode':_0x50d67e,'registry':_0x3c3cab(0x15c)}),await execa(resolveNpmBin(_0x3c3cab(0x15b)),[_0x3c3cab(0x15a),_0x3c3cab(0x15f),_0x3c3cab(0x15c)],{'cwd':_0x48da44});const _0x2492db=Date[_0x3c3cab(0x16c)]()-_0x14f67f;logger[_0x3c3cab(0x15e)](_0x3c3cab(0x15a),_0x3c3cab(0x164),_0x2492db,{'projectCode':_0x50d67e});}catch(_0x56b4aa){const _0x27cfc5=Date['now']()-_0x14f67f;logger[_0x3c3cab(0x162)](_0x3c3cab(0x15a),_0x3c3cab(0x16a),{'projectCode':_0x50d67e,'error':_0x56b4aa instanceof Error?_0x56b4aa['message']:String(_0x56b4aa),'duration':_0x27cfc5});throw _0x56b4aa;}return formatElapsed(_0x14f67f);}
1
+ function a101_0x18ff(){const _0x429463=['20986UmooyY','8411klwkvV','install','859470daAJZO','依赖安装失败','11312833rEIChy','1092321rPSFtr','error','info','11NtSeBf','依赖安装完成','7492560rsEdVo','9iRSxrp','https://registry.npmmirror.com','resolve','8HEuEBc','--registry','522812jBBkOE','now','40QMWGHC','890eLxAKX','1gpOMQV','15948HfSSSt','success'];a101_0x18ff=function(){return _0x429463;};return a101_0x18ff();}(function(_0x599f09,_0x39c1cd){const _0x340e6f=a101_0x5178,_0x4bb36d=_0x599f09();while(!![]){try{const _0x67f673=parseInt(_0x340e6f(0x8a))/0x1*(parseInt(_0x340e6f(0x90))/0x2)+-parseInt(_0x340e6f(0x81))/0x3*(parseInt(_0x340e6f(0x86))/0x4)+-parseInt(_0x340e6f(0x89))/0x5*(-parseInt(_0x340e6f(0x8b))/0x6)+-parseInt(_0x340e6f(0x92))/0x7*(parseInt(_0x340e6f(0x84))/0x8)+parseInt(_0x340e6f(0x93))/0x9*(parseInt(_0x340e6f(0x88))/0xa)+-parseInt(_0x340e6f(0x7e))/0xb*(-parseInt(_0x340e6f(0x80))/0xc)+parseInt(_0x340e6f(0x8e))/0xd*(parseInt(_0x340e6f(0x8d))/0xe);if(_0x67f673===_0x39c1cd)break;else _0x4bb36d['push'](_0x4bb36d['shift']());}catch(_0x172990){_0x4bb36d['push'](_0x4bb36d['shift']());}}}(a101_0x18ff,0xede04));import a101_0x5b99de from'node:path';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a101_0x5178(_0xfd328d,_0x4d85d8){_0xfd328d=_0xfd328d-0x7e;const _0x18ff85=a101_0x18ff();let _0x51789c=_0x18ff85[_0xfd328d];return _0x51789c;}import{resolveNpmBin}from'../utils/platform.js';export async function installDependencies(_0x53e2aa){const _0x13ab10=a101_0x5178,_0xd33429=Date['now'](),_0x14655c=a101_0x5b99de[_0x13ab10(0x83)](process['cwd'](),_0x53e2aa);try{logger[_0x13ab10(0x95)](_0x13ab10(0x8f),'开始安装依赖',{'projectCode':_0x53e2aa,'registry':_0x13ab10(0x82)}),await execa(resolveNpmBin('npm'),[_0x13ab10(0x8f),_0x13ab10(0x85),_0x13ab10(0x82)],{'cwd':_0x14655c});const _0x877c34=Date[_0x13ab10(0x87)]()-_0xd33429;logger[_0x13ab10(0x8c)](_0x13ab10(0x8f),_0x13ab10(0x7f),_0x877c34,{'projectCode':_0x53e2aa});}catch(_0x41a15d){const _0x47255e=Date[_0x13ab10(0x87)]()-_0xd33429;logger[_0x13ab10(0x94)](_0x13ab10(0x8f),_0x13ab10(0x91),{'projectCode':_0x53e2aa,'error':_0x41a15d instanceof Error?_0x41a15d['message']:String(_0x41a15d),'duration':_0x47255e});throw _0x41a15d;}return formatElapsed(_0xd33429);}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a102_0x3e857c=a102_0x4a19;function a102_0x4a19(_0x434f60,_0x125420){_0x434f60=_0x434f60-0x147;const _0x5ccb70=a102_0x5ccb();let _0x4a1904=_0x5ccb70[_0x434f60];return _0x4a1904;}(function(_0x27cfdc,_0xbffc46){const _0x1bda07=a102_0x4a19,_0x4e5754=_0x27cfdc();while(!![]){try{const _0x49765a=parseInt(_0x1bda07(0x158))/0x1*(-parseInt(_0x1bda07(0x16d))/0x2)+parseInt(_0x1bda07(0x14c))/0x3*(parseInt(_0x1bda07(0x16b))/0x4)+-parseInt(_0x1bda07(0x169))/0x5+-parseInt(_0x1bda07(0x162))/0x6+-parseInt(_0x1bda07(0x154))/0x7*(-parseInt(_0x1bda07(0x16c))/0x8)+-parseInt(_0x1bda07(0x147))/0x9+parseInt(_0x1bda07(0x14d))/0xa;if(_0x49765a===_0xbffc46)break;else _0x4e5754['push'](_0x4e5754['shift']());}catch(_0xc2baea){_0x4e5754['push'](_0x4e5754['shift']());}}}(a102_0x5ccb,0xe7186));import{CLI_BIN_NAME}from'./constant/cli.js';function a102_0x5ccb(){const _0x55c1aa=['10957272xhKoZN','CliError','unknown_command','\x20project\x20directory','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','code','7822760sFGzKn','\x20--help`\x20to\x20see\x20available\x20commands.','2175172ZPIJUv','16rQERdX','236532qkeeMo','802143DHZYVQ','api_error','network_error','Tip:\x20`','join','9QcEPYC','33764920cuZtiz','Operation\x20cancelled.','Run\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20auth`\x20to\x20login\x20first.','config_missing','flag_missing','2932223LAQYHG','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Missing\x20required\x20flag:\x20--','auth_required','12bNBDGG','exitCode','Unknown\x20command:\x20','name','\x0a\x20\x20\x20\x20\x20\x20\x20','not_in_project','Network\x20error:\x20','cancelled','hint','Configuration\x20file\x20not\x20found'];a102_0x5ccb=function(){return _0x55c1aa;};return a102_0x5ccb();}export class CliError extends Error{[a102_0x3e857c(0x168)];[a102_0x3e857c(0x159)];[a102_0x3e857c(0x160)];constructor(_0x1fc903,_0x47af79,_0x4cb75f,_0x5c7a8f){const _0x1b2df1=a102_0x3e857c;super(_0x4cb75f),this[_0x1b2df1(0x15b)]=_0x1b2df1(0x163),this[_0x1b2df1(0x168)]=_0x1fc903,this[_0x1b2df1(0x159)]=_0x47af79,this[_0x1b2df1(0x160)]=_0x5c7a8f;}}export const CliErrors={'authRequired':_0x3ffb40=>new CliError(a102_0x3e857c(0x157),0x1,'Authentication\x20required',_0x3ffb40??a102_0x3e857c(0x14f)+CLI_BIN_NAME+a102_0x3e857c(0x151)),'configMissing':_0x5171a6=>new CliError(a102_0x3e857c(0x152),0x1,a102_0x3e857c(0x161),_0x5171a6??['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a102_0x3e857c(0x155),a102_0x3e857c(0x14a)+CLI_BIN_NAME+a102_0x3e857c(0x150)][a102_0x3e857c(0x14b)](a102_0x3e857c(0x15c))),'notInProject':()=>new CliError(a102_0x3e857c(0x15d),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+a102_0x3e857c(0x165),a102_0x3e857c(0x166)),'apiError':(_0x48f0b8,_0x1af87a)=>new CliError(a102_0x3e857c(0x148),0x2,_0x48f0b8,_0x1af87a),'networkError':_0x5e44c5=>new CliError(a102_0x3e857c(0x149),0x2,a102_0x3e857c(0x15e)+_0x5e44c5,a102_0x3e857c(0x167)),'unknownCommand':_0x43d65f=>new CliError(a102_0x3e857c(0x164),0x1,a102_0x3e857c(0x15a)+_0x43d65f,a102_0x3e857c(0x14f)+CLI_BIN_NAME+a102_0x3e857c(0x16a)),'flagMissing':(_0x4d548f,_0x5c7b8d)=>new CliError(a102_0x3e857c(0x153),0x1,a102_0x3e857c(0x156)+_0x4d548f,_0x5c7b8d),'validation':(_0x74649d,_0xba4a29)=>new CliError('validation_error',0x1,_0x74649d,_0xba4a29),'cancelled':_0x15e8e9=>new CliError(a102_0x3e857c(0x15f),0x0,_0x15e8e9??a102_0x3e857c(0x14e),undefined)};
1
+ const a102_0x2cbeab=a102_0x4226;(function(_0x293d39,_0x1cc10b){const _0x55c953=a102_0x4226,_0x5a768e=_0x293d39();while(!![]){try{const _0x9744c5=-parseInt(_0x55c953(0xcc))/0x1*(parseInt(_0x55c953(0xdf))/0x2)+parseInt(_0x55c953(0xd0))/0x3+parseInt(_0x55c953(0xc6))/0x4+parseInt(_0x55c953(0xd5))/0x5+parseInt(_0x55c953(0xc5))/0x6*(parseInt(_0x55c953(0xc2))/0x7)+parseInt(_0x55c953(0xd6))/0x8+-parseInt(_0x55c953(0xc3))/0x9;if(_0x9744c5===_0x1cc10b)break;else _0x5a768e['push'](_0x5a768e['shift']());}catch(_0x1c8a9b){_0x5a768e['push'](_0x5a768e['shift']());}}}(a102_0x551b,0xcdad3));function a102_0x4226(_0x4e2695,_0x1d44da){_0x4e2695=_0x4e2695-0xbf;const _0x551bbd=a102_0x551b();let _0x4226ee=_0x551bbd[_0x4e2695];return _0x4226ee;}import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a102_0x2cbeab(0xc9)];[a102_0x2cbeab(0xda)];[a102_0x2cbeab(0xcd)];constructor(_0x13e232,_0x584379,_0x35078a,_0x38c03a){const _0x2ef350=a102_0x2cbeab;super(_0x35078a),this[_0x2ef350(0xc8)]=_0x2ef350(0xce),this[_0x2ef350(0xc9)]=_0x13e232,this[_0x2ef350(0xda)]=_0x584379,this['hint']=_0x38c03a;}}function a102_0x551b(){const _0x3426d9=['23149818hNsueT','\x20auth`\x20to\x20login\x20first.','2536392dlkwnm','2664044nivHev','not_in_project','name','code','api_error','flag_missing','241mIVqLo','hint','CliError','Authentication\x20required','4916583RWlfGn','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20--help`\x20to\x20see\x20available\x20commands.','auth_required','6887275lPSvXn','355224BQBPai','\x20project\x20directory','validation_error','join','exitCode','Set\x20appcode\x20via\x20`','Operation\x20cancelled.','Run\x20`','Configuration\x20file\x20not\x20found','6098eVFJQQ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x0a\x20\x20\x20\x20\x20\x20\x20','config_missing','7cqxxoO'];a102_0x551b=function(){return _0x3426d9;};return a102_0x551b();}export const CliErrors={'authRequired':_0x52e387=>new CliError(a102_0x2cbeab(0xd4),0x1,a102_0x2cbeab(0xcf),_0x52e387??a102_0x2cbeab(0xdd)+CLI_BIN_NAME+a102_0x2cbeab(0xc4)),'configMissing':_0x3385f0=>new CliError(a102_0x2cbeab(0xc1),0x1,a102_0x2cbeab(0xde),_0x3385f0??[a102_0x2cbeab(0xdb)+CLI_BIN_NAME+a102_0x2cbeab(0xd2),a102_0x2cbeab(0xd1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a102_0x2cbeab(0xd9)](a102_0x2cbeab(0xc0))),'notInProject':()=>new CliError(a102_0x2cbeab(0xc7),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+a102_0x2cbeab(0xd7),a102_0x2cbeab(0xbf)),'apiError':(_0x165548,_0x5e5547)=>new CliError(a102_0x2cbeab(0xca),0x2,_0x165548,_0x5e5547),'networkError':_0x38a359=>new CliError('network_error',0x2,'Network\x20error:\x20'+_0x38a359,'Check\x20your\x20internet\x20connection\x20and\x20try\x20again.'),'unknownCommand':_0x2fde63=>new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x2fde63,a102_0x2cbeab(0xdd)+CLI_BIN_NAME+a102_0x2cbeab(0xd3)),'flagMissing':(_0x25c1a3,_0x12ead4)=>new CliError(a102_0x2cbeab(0xcb),0x1,'Missing\x20required\x20flag:\x20--'+_0x25c1a3,_0x12ead4),'validation':(_0x494836,_0x125507)=>new CliError(a102_0x2cbeab(0xd8),0x1,_0x494836,_0x125507),'cancelled':_0x26a2cf=>new CliError('cancelled',0x0,_0x26a2cf??a102_0x2cbeab(0xdc),undefined)};
@@ -1 +1 @@
1
- function a103_0x2320(){const _0x4cef31=['pattern','name','.\x20Allowed:\x20','validation','dry-run','1438502KTlgpd',',\x20got\x20\x22','4804644pOTNOs','19370225sKTWgt','number','boolean','enum','\x20expects\x20a\x20number,\x20got\x20\x22','description','8RVrCAR','dryRun','4029681bmRbjs','329296GSKEiI','9401gZSqzC','includes',':\x20expected\x20','Invalid\x20--','Invalid\x20value\x20\x22','4432855JGkYLw','default','toUpperCase','join','format','length','true','\x20is\x20required\x20for\x20`','yes','type'];a103_0x2320=function(){return _0x4cef31;};return a103_0x2320();}(function(_0x6e277d,_0x5ade72){const _0x41bd7d=a103_0x47bc,_0x42f400=_0x6e277d();while(!![]){try{const _0x3d5250=-parseInt(_0x41bd7d(0xf9))/0x1+-parseInt(_0x41bd7d(0xec))/0x2+-parseInt(_0x41bd7d(0xf7))/0x3+parseInt(_0x41bd7d(0xf8))/0x4+-parseInt(_0x41bd7d(0xdd))/0x5+parseInt(_0x41bd7d(0xee))/0x6+parseInt(_0x41bd7d(0xef))/0x7*(parseInt(_0x41bd7d(0xf5))/0x8);if(_0x3d5250===_0x5ade72)break;else _0x42f400['push'](_0x42f400['shift']());}catch(_0x24aa85){_0x42f400['push'](_0x42f400['shift']());}}}(a103_0x2320,0xa8e6f));import{CliErrors}from'../errors.js';function a103_0x47bc(_0x4e62b7,_0x13d517){_0x4e62b7=_0x4e62b7-0xda;const _0x2320c9=a103_0x2320();let _0x47bc51=_0x2320c9[_0x4e62b7];return _0x47bc51;}export function parseFlags(_0x327b97,_0x52e113){const _0x587008=a103_0x47bc,_0x1bd265={};for(const _0x322a64 of _0x327b97){const _0x7a822=_0x52e113[_0x322a64['name']]??_0x52e113[toCamelCase(_0x322a64['name'])];if(_0x7a822===undefined||_0x7a822===null){_0x322a64[_0x587008(0xde)]!==undefined&&(_0x1bd265[_0x322a64[_0x587008(0xe8)]]=_0x322a64[_0x587008(0xde)]);continue;}_0x1bd265[_0x322a64[_0x587008(0xe8)]]=coerce(_0x322a64,_0x7a822);}for(const _0x163a98 of[_0x587008(0xeb),_0x587008(0xf6),_0x587008(0xe5),_0x587008(0xe1)]){const _0x1c6184=_0x52e113[_0x163a98];if(_0x1c6184!==undefined){const _0x4bf3c9=_0x163a98===_0x587008(0xf6)?_0x587008(0xeb):_0x163a98;_0x1bd265[_0x4bf3c9]=_0x1c6184;}}return _0x1bd265;}export function validateFlags(_0x3d1d50,_0x2b89fd,_0x4218f5){const _0x198091=a103_0x47bc;for(const _0x121ae4 of _0x3d1d50){const _0x11a761=_0x2b89fd[_0x121ae4[_0x198091(0xe8)]];if(_0x121ae4['required']&&(_0x11a761===undefined||_0x11a761===''))throw CliErrors['flagMissing'](_0x121ae4[_0x198091(0xe8)],'--'+_0x121ae4[_0x198091(0xe8)]+_0x198091(0xe4)+_0x4218f5+'`.');if(_0x121ae4[_0x198091(0xf2)]&&_0x121ae4[_0x198091(0xf2)][_0x198091(0xe2)]>0x0&&_0x11a761!==undefined&&_0x11a761!==''){if(!_0x121ae4[_0x198091(0xf2)][_0x198091(0xfa)](String(_0x11a761)))throw CliErrors[_0x198091(0xea)](_0x198091(0xdc)+_0x11a761+'\x22\x20for\x20--'+_0x121ae4[_0x198091(0xe8)]+_0x198091(0xe9)+_0x121ae4[_0x198091(0xf2)][_0x198091(0xe0)](',\x20'));}if(_0x121ae4[_0x198091(0xe7)]&&_0x11a761!==undefined&&_0x11a761!==''){if(!_0x121ae4[_0x198091(0xe7)]['regex']['test'](String(_0x11a761)))throw CliErrors['validation'](_0x198091(0xdb)+_0x121ae4[_0x198091(0xe8)]+_0x198091(0xda)+_0x121ae4['pattern'][_0x198091(0xf4)]+_0x198091(0xed)+_0x11a761+'\x22.');}}}function coerce(_0x545734,_0xa522e0){const _0x2af86a=a103_0x47bc;switch(_0x545734[_0x2af86a(0xe6)]){case _0x2af86a(0xf1):return _0xa522e0===!![]||_0xa522e0===_0x2af86a(0xe3);case _0x2af86a(0xf0):{const _0x4daa05=Number(_0xa522e0);if(isNaN(_0x4daa05))throw CliErrors[_0x2af86a(0xea)]('--'+_0x545734['name']+_0x2af86a(0xf3)+_0xa522e0+'\x22');return _0x4daa05;}default:return String(_0xa522e0);}}function toCamelCase(_0x2e8c20){const _0x3444f4=a103_0x47bc;return _0x2e8c20['replace'](/-([a-z])/g,(_0x8d4440,_0x14c96d)=>_0x14c96d[_0x3444f4(0xdf)]());}
1
+ (function(_0x2e153b,_0x57fbbf){const _0x39ae75=a103_0xd41c,_0x1bbbe3=_0x2e153b();while(!![]){try{const _0x42f005=parseInt(_0x39ae75(0x13b))/0x1+parseInt(_0x39ae75(0x121))/0x2+parseInt(_0x39ae75(0x143))/0x3+-parseInt(_0x39ae75(0x11f))/0x4*(-parseInt(_0x39ae75(0x123))/0x5)+-parseInt(_0x39ae75(0x133))/0x6*(-parseInt(_0x39ae75(0x141))/0x7)+parseInt(_0x39ae75(0x13e))/0x8+-parseInt(_0x39ae75(0x132))/0x9;if(_0x42f005===_0x57fbbf)break;else _0x1bbbe3['push'](_0x1bbbe3['shift']());}catch(_0x4e5b){_0x1bbbe3['push'](_0x1bbbe3['shift']());}}}(a103_0x58c6,0xa2b79));function a103_0xd41c(_0x4b6e54,_0x1b2b9c){_0x4b6e54=_0x4b6e54-0x11f;const _0x58c698=a103_0x58c6();let _0xd41c76=_0x58c698[_0x4b6e54];return _0xd41c76;}import{CliErrors}from'../errors.js';export function parseFlags(_0x31b7ef,_0x2f15b2){const _0x571fae=a103_0xd41c,_0x59aabd={};for(const _0x28c6e7 of _0x31b7ef){const _0x2dbabf=_0x2f15b2[_0x28c6e7[_0x571fae(0x12b)]]??_0x2f15b2[toCamelCase(_0x28c6e7[_0x571fae(0x12b)])];if(_0x2dbabf===undefined||_0x2dbabf===null){_0x28c6e7[_0x571fae(0x120)]!==undefined&&(_0x59aabd[_0x28c6e7[_0x571fae(0x12b)]]=_0x28c6e7[_0x571fae(0x120)]);continue;}_0x59aabd[_0x28c6e7[_0x571fae(0x12b)]]=coerce(_0x28c6e7,_0x2dbabf);}for(const _0x71732d of[_0x571fae(0x12a),_0x571fae(0x138),_0x571fae(0x127),'format']){const _0x16fa1e=_0x2f15b2[_0x71732d];if(_0x16fa1e!==undefined){const _0x3a4171=_0x71732d===_0x571fae(0x138)?_0x571fae(0x12a):_0x71732d;_0x59aabd[_0x3a4171]=_0x16fa1e;}}return _0x59aabd;}export function validateFlags(_0x20ed56,_0x8a2557,_0x479231){const _0x561288=a103_0xd41c;for(const _0xe250d5 of _0x20ed56){const _0x4a34f7=_0x8a2557[_0xe250d5['name']];if(_0xe250d5['required']&&(_0x4a34f7===undefined||_0x4a34f7===''))throw CliErrors[_0x561288(0x139)](_0xe250d5[_0x561288(0x12b)],'--'+_0xe250d5[_0x561288(0x12b)]+_0x561288(0x137)+_0x479231+'`.');if(_0xe250d5[_0x561288(0x12d)]&&_0xe250d5[_0x561288(0x12d)][_0x561288(0x140)]>0x0&&_0x4a34f7!==undefined&&_0x4a34f7!==''){if(!_0xe250d5['enum']['includes'](String(_0x4a34f7)))throw CliErrors[_0x561288(0x122)](_0x561288(0x136)+_0x4a34f7+_0x561288(0x12e)+_0xe250d5[_0x561288(0x12b)]+_0x561288(0x142)+_0xe250d5[_0x561288(0x12d)][_0x561288(0x129)](',\x20'));}if(_0xe250d5[_0x561288(0x134)]&&_0x4a34f7!==undefined&&_0x4a34f7!==''){if(!_0xe250d5['pattern'][_0x561288(0x131)][_0x561288(0x13d)](String(_0x4a34f7)))throw CliErrors[_0x561288(0x122)](_0x561288(0x128)+_0xe250d5[_0x561288(0x12b)]+_0x561288(0x124)+_0xe250d5[_0x561288(0x134)][_0x561288(0x12c)]+_0x561288(0x12f)+_0x4a34f7+'\x22.');}}}function coerce(_0x746820,_0x409bfc){const _0x4111bb=a103_0xd41c;switch(_0x746820[_0x4111bb(0x135)]){case _0x4111bb(0x130):return _0x409bfc===!![]||_0x409bfc===_0x4111bb(0x13f);case _0x4111bb(0x13a):{const _0xf01a31=Number(_0x409bfc);if(isNaN(_0xf01a31))throw CliErrors[_0x4111bb(0x122)]('--'+_0x746820['name']+_0x4111bb(0x126)+_0x409bfc+'\x22');return _0xf01a31;}default:return String(_0x409bfc);}}function a103_0x58c6(){const _0x5d3e11=['regex','26227818QcRzYY','564LqSEVG','pattern','type','Invalid\x20value\x20\x22','\x20is\x20required\x20for\x20`','dryRun','flagMissing','number','1323616FxdpiV','toUpperCase','test','3943464GZRIVP','true','length','70133TCDHMI','.\x20Allowed:\x20','1450224kjHswM','28xWedMm','default','138294xirdnX','validation','192715hXshLt',':\x20expected\x20','replace','\x20expects\x20a\x20number,\x20got\x20\x22','yes','Invalid\x20--','join','dry-run','name','description','enum','\x22\x20for\x20--',',\x20got\x20\x22','boolean'];a103_0x58c6=function(){return _0x5d3e11;};return a103_0x58c6();}function toCamelCase(_0x2cba6f){const _0x49b4ee=a103_0xd41c;return _0x2cba6f[_0x49b4ee(0x125)](/-([a-z])/g,(_0x2c8ece,_0xe9e1d0)=>_0xe9e1d0[_0x49b4ee(0x13c)]());}
@@ -1 +1 @@
1
- const a104_0x225a1c=a104_0x1788;(function(_0x5ebc1e,_0x41d6c7){const _0x46d098=a104_0x1788,_0xeb5f2d=_0x5ebc1e();while(!![]){try{const _0x3aea13=-parseInt(_0x46d098(0x1b7))/0x1*(-parseInt(_0x46d098(0x1cc))/0x2)+-parseInt(_0x46d098(0x1b6))/0x3+-parseInt(_0x46d098(0x1c5))/0x4+-parseInt(_0x46d098(0x1c3))/0x5+parseInt(_0x46d098(0x1d8))/0x6*(-parseInt(_0x46d098(0x1e1))/0x7)+-parseInt(_0x46d098(0x1d5))/0x8*(parseInt(_0x46d098(0x1ec))/0x9)+parseInt(_0x46d098(0x1db))/0xa;if(_0x3aea13===_0x41d6c7)break;else _0xeb5f2d['push'](_0xeb5f2d['shift']());}catch(_0x20c07e){_0xeb5f2d['push'](_0xeb5f2d['shift']());}}}(a104_0x126b,0xda506));import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a104_0x225a1c(0x1ce),'high-risk-write':'\x20\x20[high-risk-write]'};function a104_0x1788(_0x510cfa,_0x29b335){_0x510cfa=_0x510cfa-0x1a8;const _0x126b27=a104_0x126b();let _0x17882f=_0x126b27[_0x510cfa];return _0x17882f;}export function generateCommandHelp(_0x758225){const _0x4fcff7=a104_0x225a1c,_0x324911=[],_0x4872ec=CLI_BIN_NAME+'\x20'+_0x758225['service']+'\x20'+_0x758225['command'];_0x324911[_0x4fcff7(0x1b3)](''),_0x324911[_0x4fcff7(0x1b3)]('\x20\x20'+_0x758225[_0x4fcff7(0x1aa)]),_0x324911[_0x4fcff7(0x1b3)](''),_0x324911[_0x4fcff7(0x1b3)](_0x4fcff7(0x1e0)),_0x324911['push'](_0x4fcff7(0x1c2)+_0x4872ec+'\x20[flags]'),_0x324911[_0x4fcff7(0x1b3)](''),_0x324911[_0x4fcff7(0x1b3)](_0x4fcff7(0x1d4)+_0x758225[_0x4fcff7(0x1e8)]);_0x758225[_0x4fcff7(0x1e8)]===_0x4fcff7(0x1e5)&&_0x324911['push']('\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.');_0x324911[_0x4fcff7(0x1b3)]('');if(_0x758225[_0x4fcff7(0x1b1)][_0x4fcff7(0x1bf)]>0x0||_0x758225['dryRun']||_0x758225[_0x4fcff7(0x1a9)]!==![]){_0x324911[_0x4fcff7(0x1b3)](_0x4fcff7(0x1c0));const _0x2b2abd=buildAllFlags(_0x758225),_0x405793=Math['max'](..._0x2b2abd[_0x4fcff7(0x1e3)](_0x1504f8=>formatFlagName(_0x1504f8)['length']));for(const _0x41931c of _0x2b2abd){const _0x578c5e=formatFlagName(_0x41931c)[_0x4fcff7(0x1d7)](_0x405793+0x2);let _0x410dfc=_0x41931c['description'];_0x41931c[_0x4fcff7(0x1e6)]&&_0x41931c[_0x4fcff7(0x1e6)][_0x4fcff7(0x1bf)]>0x0&&(_0x410dfc+='\x20('+_0x41931c[_0x4fcff7(0x1e6)][_0x4fcff7(0x1ae)](_0x4fcff7(0x1ca))+')'),_0x41931c[_0x4fcff7(0x1be)]!==undefined&&_0x41931c[_0x4fcff7(0x1be)]!==''&&(_0x410dfc+='\x20[default:\x20'+_0x41931c[_0x4fcff7(0x1be)]+']'),_0x41931c[_0x4fcff7(0x1df)]&&(_0x410dfc+=_0x4fcff7(0x1b5)),_0x324911['push'](_0x4fcff7(0x1c2)+_0x578c5e+_0x410dfc);}_0x324911[_0x4fcff7(0x1b3)]('');}const _0x3ad4a2=[];_0x758225[_0x4fcff7(0x1bc)]!==![]&&_0x3ad4a2['push'](_0x4fcff7(0x1b2)+CLI_BIN_NAME+_0x4fcff7(0x1b4));_0x758225[_0x4fcff7(0x1e7)]!==![]&&_0x3ad4a2[_0x4fcff7(0x1b3)]('Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x4fcff7(0x1e4));if(_0x3ad4a2['length']>0x0){_0x324911[_0x4fcff7(0x1b3)](_0x4fcff7(0x1e2));for(const _0x1846b4 of _0x3ad4a2){_0x324911[_0x4fcff7(0x1b3)](_0x4fcff7(0x1cd)+_0x1846b4);}_0x324911[_0x4fcff7(0x1b3)]('');}return _0x324911[_0x4fcff7(0x1ae)]('\x0a');}export function generateServiceHelp(_0x3c8fd6){const _0x413035=a104_0x225a1c,_0x17310f=getServiceEntry(_0x3c8fd6);if(!_0x17310f)return'\x20\x20Unknown\x20service:\x20'+_0x3c8fd6+'\x0a';const _0x14629c=[];_0x14629c[_0x413035(0x1b3)](''),_0x14629c[_0x413035(0x1b3)]('\x20\x20'+_0x17310f[_0x413035(0x1c7)]),_0x14629c['push'](''),_0x14629c[_0x413035(0x1b3)]('\x20\x20USAGE'),_0x14629c['push'](_0x413035(0x1c2)+CLI_BIN_NAME+'\x20'+_0x3c8fd6+_0x413035(0x1d9)),_0x14629c[_0x413035(0x1b3)](''),_0x14629c['push']('\x20\x20COMMANDS');const _0x8d58e8=Math['max'](..._0x17310f['commands'][_0x413035(0x1e3)](_0x3195d4=>_0x3195d4[_0x413035(0x1af)][_0x413035(0x1bf)]));for(const _0x799d3d of _0x17310f[_0x413035(0x1ac)]){const _0x63ebbb=_0x799d3d[_0x413035(0x1eb)]??'';_0x14629c[_0x413035(0x1b3)](_0x413035(0x1c2)+_0x799d3d['command']['padEnd'](_0x8d58e8+0x2)+_0x799d3d[_0x413035(0x1aa)]+_0x63ebbb);}return _0x14629c[_0x413035(0x1b3)](''),_0x14629c[_0x413035(0x1b3)]('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3c8fd6+_0x413035(0x1b0)),_0x14629c[_0x413035(0x1b3)](''),_0x14629c[_0x413035(0x1ae)]('\x0a');}export function generateFullHelp(){const _0x52953a=a104_0x225a1c,_0x5b673e=[];_0x5b673e['push'](''),_0x5b673e[_0x52953a(0x1b3)]('\x20\x20Rabetbase\x20CLI'),_0x5b673e[_0x52953a(0x1b3)](''),_0x5b673e['push'](_0x52953a(0x1e0)),_0x5b673e['push'](_0x52953a(0x1a8)+CLI_BIN_NAME+'\x20[global-options]\x20<service>\x20<command>\x20[flags]'),_0x5b673e[_0x52953a(0x1b3)](''),_0x5b673e['push'](_0x52953a(0x1de)),_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1ea)),_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1d1)),_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1da)),_0x5b673e[_0x52953a(0x1b3)]('\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing'),_0x5b673e['push'](_0x52953a(0x1cf)),_0x5b673e[_0x52953a(0x1b3)]('\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)'),_0x5b673e['push'](_0x52953a(0x1ad)),_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1c1)),_0x5b673e[_0x52953a(0x1b3)](''),_0x5b673e[_0x52953a(0x1b3)]('\x20\x20COMMANDS'),_0x5b673e['push']('');for(const _0x203f57 of serviceRegistry){_0x5b673e[_0x52953a(0x1b3)]('\x20\x20'+_0x203f57['label']);if(_0x203f57[_0x52953a(0x1dd)]){const _0x259d0a=_0x203f57['commands'][0x0],_0x275a38=_0x259d0a[_0x52953a(0x1eb)]??'';_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1c2)+_0x203f57[_0x52953a(0x1d2)][_0x52953a(0x1d7)](0x12)+_0x259d0a[_0x52953a(0x1aa)]+_0x275a38);}else{const _0x210bab=_0x203f57[_0x52953a(0x1ac)][_0x52953a(0x1e3)](_0x32feb1=>_0x203f57['service']+'\x20'+_0x32feb1[_0x52953a(0x1af)]),_0x106a2e=Math['max'](..._0x210bab[_0x52953a(0x1e3)](_0x24ab93=>_0x24ab93[_0x52953a(0x1bf)]));for(let _0x2a6e68=0x0;_0x2a6e68<_0x203f57['commands'][_0x52953a(0x1bf)];_0x2a6e68++){const _0x3a7422=_0x203f57['commands'][_0x2a6e68],_0x340da6=_0x3a7422[_0x52953a(0x1eb)]??'';_0x5b673e[_0x52953a(0x1b3)](_0x52953a(0x1c2)+_0x210bab[_0x2a6e68][_0x52953a(0x1d7)](_0x106a2e+0x2)+_0x3a7422['description']+_0x340da6);}}_0x5b673e[_0x52953a(0x1b3)]('');}return _0x5b673e['push'](_0x52953a(0x1d6)+CLI_BIN_NAME+_0x52953a(0x1b9)),_0x5b673e['push'](''),_0x5b673e['join']('\x0a');}export function generateLegacyCommandHelp(_0x539b6d,_0x1a3e1d,_0x43a00c){const _0x4f2b03=a104_0x225a1c,_0x1979fb=[],_0x4245d8=CLI_BIN_NAME+'\x20'+_0x539b6d+'\x20'+_0x1a3e1d;_0x1979fb[_0x4f2b03(0x1b3)](''),_0x1979fb[_0x4f2b03(0x1b3)]('\x20\x20'+_0x43a00c[_0x4f2b03(0x1aa)]),_0x1979fb[_0x4f2b03(0x1b3)](''),_0x1979fb[_0x4f2b03(0x1b3)](_0x4f2b03(0x1e0)),_0x1979fb['push'](_0x4f2b03(0x1c2)+(_0x43a00c[_0x4f2b03(0x1bd)]??_0x4245d8+'\x20[flags]')),_0x1979fb[_0x4f2b03(0x1b3)]('');if(_0x43a00c[_0x4f2b03(0x1b1)]&&_0x43a00c['flags']['length']>0x0){_0x1979fb[_0x4f2b03(0x1b3)](_0x4f2b03(0x1c0));const _0x2cfbc3=Math[_0x4f2b03(0x1cb)](..._0x43a00c['flags']['map'](_0x16d9b2=>formatFlagName(_0x16d9b2)[_0x4f2b03(0x1bf)]));for(const _0x384d80 of _0x43a00c[_0x4f2b03(0x1b1)]){const _0x212d2e=formatFlagName(_0x384d80)[_0x4f2b03(0x1d7)](_0x2cfbc3+0x2);let _0x2f4dc9=_0x384d80[_0x4f2b03(0x1aa)];_0x384d80[_0x4f2b03(0x1e6)]&&_0x384d80['enum']['length']>0x0&&(_0x2f4dc9+='\x20('+_0x384d80['enum'][_0x4f2b03(0x1ae)](_0x4f2b03(0x1ca))+')'),_0x384d80[_0x4f2b03(0x1be)]!==undefined&&_0x384d80[_0x4f2b03(0x1be)]!==''&&(_0x2f4dc9+=_0x4f2b03(0x1bb)+_0x384d80[_0x4f2b03(0x1be)]+']'),_0x384d80['required']&&(_0x2f4dc9+='\x20(required)'),_0x1979fb[_0x4f2b03(0x1b3)](_0x4f2b03(0x1c2)+_0x212d2e+_0x2f4dc9);}_0x1979fb[_0x4f2b03(0x1b3)]('');}return _0x1979fb[_0x4f2b03(0x1ae)]('\x0a');}function a104_0x126b(){const _0xf9be2e=['number','2084752XFmqvJ','pretty','label','type','dry-run','\x20|\x20','max','1952REfyGP','\x20\x20\x20\x20•\x20','\x20\x20[write]','\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','string','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','service','json','\x20\x20RISK:\x20','3910792ptNJck','\x20\x20Run\x20`','padEnd','24UKfmqU','\x20<command>\x20[flags]','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table','49162700JfoOhJ','name','isSingleCommand','\x20\x20GLOBAL\x20OPTIONS','required','\x20\x20USAGE','1660792nWQQMB','\x20\x20PREREQUISITES','map','\x20project\x20init`\x20or\x20--appcode).','high-risk-write','enum','requiresAppCode','risk','boolean','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','tag','18kvAWqL','format','\x20<n>','yes','\x20\x20\x20\x20$\x20','hasFormat','description','dryRun','commands','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','join','command','\x20<command>\x20--help`\x20for\x20flag\x20details.','flags','Requires\x20authentication\x20(run\x20`','push','\x20auth`\x20first).','\x20(required)','3818250Elfkgu','159INYuVo','Preview\x20the\x20operation\x20without\x20executing','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','table','\x20[default:\x20','requiresAuth','usage','default','length','\x20\x20FLAGS','\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version','\x20\x20\x20\x20','2282900WblOzx'];a104_0x126b=function(){return _0xf9be2e;};return a104_0x126b();}function buildAllFlags(_0x24a3a3){const _0xd0989d=a104_0x225a1c,_0x52820f=[..._0x24a3a3['flags']];return _0x24a3a3[_0xd0989d(0x1ab)]&&_0x52820f['push']({'name':_0xd0989d(0x1c9),'type':_0xd0989d(0x1e9),'description':_0xd0989d(0x1b8)}),_0x24a3a3[_0xd0989d(0x1a9)]!==![]&&_0x52820f[_0xd0989d(0x1b3)]({'name':_0xd0989d(0x1ed),'type':_0xd0989d(0x1d0),'default':_0xd0989d(0x1c6),'enum':[_0xd0989d(0x1d3),_0xd0989d(0x1c6),_0xd0989d(0x1ba)],'description':'Output\x20format'}),_0x24a3a3['risk']==='high-risk-write'&&_0x52820f[_0xd0989d(0x1b3)]({'name':_0xd0989d(0x1ef),'type':_0xd0989d(0x1e9),'description':'Skip\x20confirmation\x20prompt'}),_0x52820f;}function formatFlagName(_0x13f6ff){const _0x30f8ca=a104_0x225a1c,_0x2acd5a=_0x13f6ff[_0x30f8ca(0x1c8)]==='boolean'?'':_0x13f6ff[_0x30f8ca(0x1c8)]===_0x30f8ca(0x1c4)?_0x30f8ca(0x1ee):'\x20<value>';return'--'+_0x13f6ff[_0x30f8ca(0x1dc)]+_0x2acd5a;}
1
+ function a104_0x24c7(_0x1d718b,_0x27ee31){_0x1d718b=_0x1d718b-0xd8;const _0x1ae9dc=a104_0x1ae9();let _0x24c70d=_0x1ae9dc[_0x1d718b];return _0x24c70d;}const a104_0x51137=a104_0x24c7;(function(_0x2af5b2,_0xa90c3d){const _0x562f2f=a104_0x24c7,_0x304afa=_0x2af5b2();while(!![]){try{const _0x45c7a0=parseInt(_0x562f2f(0xde))/0x1*(-parseInt(_0x562f2f(0x116))/0x2)+-parseInt(_0x562f2f(0x112))/0x3+parseInt(_0x562f2f(0xdb))/0x4+parseInt(_0x562f2f(0xf9))/0x5+parseInt(_0x562f2f(0xfd))/0x6*(parseInt(_0x562f2f(0xe2))/0x7)+parseInt(_0x562f2f(0xe8))/0x8+-parseInt(_0x562f2f(0xe9))/0x9;if(_0x45c7a0===_0xa90c3d)break;else _0x304afa['push'](_0x304afa['shift']());}catch(_0x916863){_0x304afa['push'](_0x304afa['shift']());}}}(a104_0x1ae9,0x1ad22));function a104_0x1ae9(){const _0x557206=['Output\x20format','join','\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version','command','Requires\x20authentication\x20(run\x20`','\x20\x20[write]','\x20\x20PREREQUISITES','\x20\x20Rabetbase\x20CLI','type','description','push','38601embqZp','\x20|\x20','\x20\x20\x20\x20•\x20','enum','273272ORcnES','usage','flags','hasFormat','string','map','\x20<n>','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','\x20\x20GLOBAL\x20OPTIONS','dryRun','yes','\x20\x20\x20\x20$\x20','272936riJbnH','\x20[default:\x20','\x20\x20\x20\x20','1pAZUOT','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','default','\x20\x20RISK:\x20','21mBLKtS','\x20\x20USAGE','padEnd','\x20\x20Run\x20`','\x20<value>','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','973752fKKTlN','568476JaDLRe','tag','name','Requires\x20appcode\x20(set\x20via\x20`','pretty','high-risk-write','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','\x20[global-options]\x20<service>\x20<command>\x20[flags]','number','service','length','\x20\x20Unknown\x20service:\x20','requiresAppCode','\x20(required)','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','573910Zvoozc','Skip\x20confirmation\x20prompt','\x20project\x20init`\x20or\x20--appcode).','Preview\x20the\x20operation\x20without\x20executing','35580dTfOif','max','\x20auth`\x20first).','required','\x20\x20FLAGS','requiresAuth','commands','boolean','risk','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode'];a104_0x1ae9=function(){return _0x557206;};return a104_0x1ae9();}import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a104_0x51137(0x10c),'high-risk-write':'\x20\x20[high-risk-write]'};export function generateCommandHelp(_0x5c030c){const _0x5d4e73=a104_0x51137,_0x401a55=[],_0x6e28c3=CLI_BIN_NAME+'\x20'+_0x5c030c[_0x5d4e73(0xf3)]+'\x20'+_0x5c030c['command'];_0x401a55[_0x5d4e73(0x111)](''),_0x401a55[_0x5d4e73(0x111)]('\x20\x20'+_0x5c030c[_0x5d4e73(0x110)]),_0x401a55[_0x5d4e73(0x111)](''),_0x401a55[_0x5d4e73(0x111)]('\x20\x20USAGE'),_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0xdd)+_0x6e28c3+'\x20[flags]'),_0x401a55[_0x5d4e73(0x111)](''),_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0xe1)+_0x5c030c[_0x5d4e73(0x105)]);_0x5c030c[_0x5d4e73(0x105)]===_0x5d4e73(0xee)&&_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0xdf));_0x401a55['push']('');if(_0x5c030c['flags'][_0x5d4e73(0xf4)]>0x0||_0x5c030c[_0x5d4e73(0xd8)]||_0x5c030c[_0x5d4e73(0x119)]!==![]){_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0x101));const _0xc516b2=buildAllFlags(_0x5c030c),_0x1c3e2d=Math[_0x5d4e73(0xfe)](..._0xc516b2['map'](_0x5bc830=>formatFlagName(_0x5bc830)[_0x5d4e73(0xf4)]));for(const _0x4053bd of _0xc516b2){const _0x4bf696=formatFlagName(_0x4053bd)[_0x5d4e73(0xe4)](_0x1c3e2d+0x2);let _0x42b95d=_0x4053bd[_0x5d4e73(0x110)];_0x4053bd['enum']&&_0x4053bd[_0x5d4e73(0x115)]['length']>0x0&&(_0x42b95d+='\x20('+_0x4053bd[_0x5d4e73(0x115)][_0x5d4e73(0x108)]('\x20|\x20')+')'),_0x4053bd['default']!==undefined&&_0x4053bd['default']!==''&&(_0x42b95d+=_0x5d4e73(0xdc)+_0x4053bd['default']+']'),_0x4053bd[_0x5d4e73(0x100)]&&(_0x42b95d+=_0x5d4e73(0xf7)),_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0xdd)+_0x4bf696+_0x42b95d);}_0x401a55[_0x5d4e73(0x111)]('');}const _0x2c0589=[];_0x5c030c[_0x5d4e73(0x102)]!==![]&&_0x2c0589[_0x5d4e73(0x111)](_0x5d4e73(0x10b)+CLI_BIN_NAME+_0x5d4e73(0xff));_0x5c030c[_0x5d4e73(0xf6)]!==![]&&_0x2c0589[_0x5d4e73(0x111)](_0x5d4e73(0xec)+CLI_BIN_NAME+_0x5d4e73(0xfb));if(_0x2c0589[_0x5d4e73(0xf4)]>0x0){_0x401a55['push'](_0x5d4e73(0x10d));for(const _0xcd0ab of _0x2c0589){_0x401a55[_0x5d4e73(0x111)](_0x5d4e73(0x114)+_0xcd0ab);}_0x401a55['push']('');}return _0x401a55[_0x5d4e73(0x108)]('\x0a');}export function generateServiceHelp(_0x4a0b5f){const _0x4b9b6f=a104_0x51137,_0xe14c3d=getServiceEntry(_0x4a0b5f);if(!_0xe14c3d)return _0x4b9b6f(0xf5)+_0x4a0b5f+'\x0a';const _0x3e6949=[];_0x3e6949[_0x4b9b6f(0x111)](''),_0x3e6949['push']('\x20\x20'+_0xe14c3d['label']),_0x3e6949[_0x4b9b6f(0x111)](''),_0x3e6949['push'](_0x4b9b6f(0xe3)),_0x3e6949['push']('\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20'+_0x4a0b5f+'\x20<command>\x20[flags]'),_0x3e6949[_0x4b9b6f(0x111)](''),_0x3e6949[_0x4b9b6f(0x111)]('\x20\x20COMMANDS');const _0x339598=Math[_0x4b9b6f(0xfe)](..._0xe14c3d['commands'][_0x4b9b6f(0x11b)](_0x54d3ec=>_0x54d3ec[_0x4b9b6f(0x10a)][_0x4b9b6f(0xf4)]));for(const _0x4c80b6 of _0xe14c3d[_0x4b9b6f(0x103)]){const _0x5020d2=_0x4c80b6[_0x4b9b6f(0xea)]??'';_0x3e6949[_0x4b9b6f(0x111)](_0x4b9b6f(0xdd)+_0x4c80b6[_0x4b9b6f(0x10a)][_0x4b9b6f(0xe4)](_0x339598+0x2)+_0x4c80b6['description']+_0x5020d2);}return _0x3e6949['push'](''),_0x3e6949[_0x4b9b6f(0x111)](_0x4b9b6f(0xe5)+CLI_BIN_NAME+'\x20'+_0x4a0b5f+'\x20<command>\x20--help`\x20for\x20flag\x20details.'),_0x3e6949[_0x4b9b6f(0x111)](''),_0x3e6949['join']('\x0a');}export function generateFullHelp(){const _0x5762e0=a104_0x51137,_0x246049=[];_0x246049[_0x5762e0(0x111)](''),_0x246049[_0x5762e0(0x111)](_0x5762e0(0x10e)),_0x246049[_0x5762e0(0x111)](''),_0x246049[_0x5762e0(0x111)](_0x5762e0(0xe3)),_0x246049[_0x5762e0(0x111)](_0x5762e0(0xda)+CLI_BIN_NAME+_0x5762e0(0xf1)),_0x246049[_0x5762e0(0x111)](''),_0x246049[_0x5762e0(0x111)](_0x5762e0(0x11e)),_0x246049[_0x5762e0(0x111)](_0x5762e0(0x106)),_0x246049[_0x5762e0(0x111)](_0x5762e0(0x11d)),_0x246049[_0x5762e0(0x111)](_0x5762e0(0xef)),_0x246049[_0x5762e0(0x111)](_0x5762e0(0xf0)),_0x246049[_0x5762e0(0x111)]('\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'),_0x246049['push'](_0x5762e0(0xf8)),_0x246049[_0x5762e0(0x111)]('\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help'),_0x246049[_0x5762e0(0x111)](_0x5762e0(0x109)),_0x246049['push'](''),_0x246049[_0x5762e0(0x111)]('\x20\x20COMMANDS'),_0x246049[_0x5762e0(0x111)]('');for(const _0x2c67a9 of serviceRegistry){_0x246049['push']('\x20\x20'+_0x2c67a9['label']);if(_0x2c67a9['isSingleCommand']){const _0x29b346=_0x2c67a9[_0x5762e0(0x103)][0x0],_0x3631de=_0x29b346[_0x5762e0(0xea)]??'';_0x246049[_0x5762e0(0x111)](_0x5762e0(0xdd)+_0x2c67a9[_0x5762e0(0xf3)][_0x5762e0(0xe4)](0x12)+_0x29b346[_0x5762e0(0x110)]+_0x3631de);}else{const _0x5ce8ac=_0x2c67a9[_0x5762e0(0x103)][_0x5762e0(0x11b)](_0x2c2e03=>_0x2c67a9['service']+'\x20'+_0x2c2e03[_0x5762e0(0x10a)]),_0x1aa710=Math[_0x5762e0(0xfe)](..._0x5ce8ac['map'](_0x465051=>_0x465051['length']));for(let _0xf5b21a=0x0;_0xf5b21a<_0x2c67a9[_0x5762e0(0x103)][_0x5762e0(0xf4)];_0xf5b21a++){const _0x1105f7=_0x2c67a9['commands'][_0xf5b21a],_0x32d5fb=_0x1105f7[_0x5762e0(0xea)]??'';_0x246049[_0x5762e0(0x111)]('\x20\x20\x20\x20'+_0x5ce8ac[_0xf5b21a]['padEnd'](_0x1aa710+0x2)+_0x1105f7[_0x5762e0(0x110)]+_0x32d5fb);}}_0x246049[_0x5762e0(0x111)]('');}return _0x246049[_0x5762e0(0x111)](_0x5762e0(0xe5)+CLI_BIN_NAME+_0x5762e0(0xe7)),_0x246049[_0x5762e0(0x111)](''),_0x246049[_0x5762e0(0x108)]('\x0a');}export function generateLegacyCommandHelp(_0x443c20,_0x5d1094,_0x4f8578){const _0x4cb8ee=a104_0x51137,_0x191d5b=[],_0x526363=CLI_BIN_NAME+'\x20'+_0x443c20+'\x20'+_0x5d1094;_0x191d5b[_0x4cb8ee(0x111)](''),_0x191d5b['push']('\x20\x20'+_0x4f8578[_0x4cb8ee(0x110)]),_0x191d5b['push'](''),_0x191d5b[_0x4cb8ee(0x111)](_0x4cb8ee(0xe3)),_0x191d5b['push'](_0x4cb8ee(0xdd)+(_0x4f8578[_0x4cb8ee(0x117)]??_0x526363+'\x20[flags]')),_0x191d5b[_0x4cb8ee(0x111)]('');if(_0x4f8578[_0x4cb8ee(0x118)]&&_0x4f8578[_0x4cb8ee(0x118)][_0x4cb8ee(0xf4)]>0x0){_0x191d5b['push']('\x20\x20FLAGS');const _0x5c7a76=Math['max'](..._0x4f8578[_0x4cb8ee(0x118)]['map'](_0x394b0c=>formatFlagName(_0x394b0c)['length']));for(const _0x17add5 of _0x4f8578[_0x4cb8ee(0x118)]){const _0x40738c=formatFlagName(_0x17add5)[_0x4cb8ee(0xe4)](_0x5c7a76+0x2);let _0x3cd415=_0x17add5[_0x4cb8ee(0x110)];_0x17add5[_0x4cb8ee(0x115)]&&_0x17add5[_0x4cb8ee(0x115)][_0x4cb8ee(0xf4)]>0x0&&(_0x3cd415+='\x20('+_0x17add5[_0x4cb8ee(0x115)][_0x4cb8ee(0x108)](_0x4cb8ee(0x113))+')'),_0x17add5[_0x4cb8ee(0xe0)]!==undefined&&_0x17add5[_0x4cb8ee(0xe0)]!==''&&(_0x3cd415+=_0x4cb8ee(0xdc)+_0x17add5['default']+']'),_0x17add5[_0x4cb8ee(0x100)]&&(_0x3cd415+=_0x4cb8ee(0xf7)),_0x191d5b['push'](_0x4cb8ee(0xdd)+_0x40738c+_0x3cd415);}_0x191d5b[_0x4cb8ee(0x111)]('');}return _0x191d5b[_0x4cb8ee(0x108)]('\x0a');}function buildAllFlags(_0x356de0){const _0x1f4520=a104_0x51137,_0xab8884=[..._0x356de0[_0x1f4520(0x118)]];return _0x356de0[_0x1f4520(0xd8)]&&_0xab8884[_0x1f4520(0x111)]({'name':'dry-run','type':_0x1f4520(0x104),'description':_0x1f4520(0xfc)}),_0x356de0[_0x1f4520(0x119)]!==![]&&_0xab8884[_0x1f4520(0x111)]({'name':'format','type':_0x1f4520(0x11a),'default':_0x1f4520(0xed),'enum':['json','pretty','table'],'description':_0x1f4520(0x107)}),_0x356de0[_0x1f4520(0x105)]===_0x1f4520(0xee)&&_0xab8884['push']({'name':_0x1f4520(0xd9),'type':_0x1f4520(0x104),'description':_0x1f4520(0xfa)}),_0xab8884;}function formatFlagName(_0x101d7e){const _0x130da8=a104_0x51137,_0xcc4fc4=_0x101d7e[_0x130da8(0x10f)]===_0x130da8(0x104)?'':_0x101d7e[_0x130da8(0x10f)]===_0x130da8(0xf2)?_0x130da8(0x11c):_0x130da8(0xe6);return'--'+_0x101d7e[_0x130da8(0xeb)]+_0xcc4fc4;}
@@ -1 +1 @@
1
- (function(_0x32b344,_0x35d443){var _0x262f16=a105_0xd451,_0x4b9bbd=_0x32b344();while(!![]){try{var _0x2a3665=-parseInt(_0x262f16(0x68))/0x1+-parseInt(_0x262f16(0x6f))/0x2*(parseInt(_0x262f16(0x67))/0x3)+parseInt(_0x262f16(0x6e))/0x4*(-parseInt(_0x262f16(0x70))/0x5)+-parseInt(_0x262f16(0x6b))/0x6*(-parseInt(_0x262f16(0x6d))/0x7)+-parseInt(_0x262f16(0x6a))/0x8+parseInt(_0x262f16(0x69))/0x9+parseInt(_0x262f16(0x6c))/0xa;if(_0x2a3665===_0x35d443)break;else _0x4b9bbd['push'](_0x4b9bbd['shift']());}catch(_0x48a5d9){_0x4b9bbd['push'](_0x4b9bbd['shift']());}}}(a105_0x1737,0xe9858));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';function a105_0x1737(){var _0x5e1fa2=['193435VfotXn','5578254WeSOZt','6624976CbhuhT','48nlZzSX','3649030znGhrN','1628109OQDyMW','12qSvOOA','4lhaiMM','1238750yXfaWx','186141cZbsXC'];a105_0x1737=function(){return _0x5e1fa2;};return a105_0x1737();}export{extractList,extractPaging}from'./response.js';function a105_0xd451(_0x21914e,_0x4a8ac2){_0x21914e=_0x21914e-0x67;var _0x1737e8=a105_0x1737();var _0xd451d=_0x1737e8[_0x21914e];return _0xd451d;}export{riskLevelOrder}from'./types.js';
1
+ (function(_0x4a7a04,_0x11a8b6){var _0x20e150=a105_0x1793,_0x36f222=_0x4a7a04();while(!![]){try{var _0x315b56=parseInt(_0x20e150(0xe0))/0x1*(-parseInt(_0x20e150(0xdf))/0x2)+parseInt(_0x20e150(0xde))/0x3+parseInt(_0x20e150(0xe3))/0x4+-parseInt(_0x20e150(0xdd))/0x5*(-parseInt(_0x20e150(0xe5))/0x6)+parseInt(_0x20e150(0xe1))/0x7*(-parseInt(_0x20e150(0xe2))/0x8)+parseInt(_0x20e150(0xe4))/0x9+parseInt(_0x20e150(0xdc))/0xa;if(_0x315b56===_0x11a8b6)break;else _0x36f222['push'](_0x36f222['shift']());}catch(_0x5cb1f8){_0x36f222['push'](_0x36f222['shift']());}}}(a105_0x1009,0x94f59));export{runCommand}from'./runner.js';function a105_0x1793(_0x5a3cbb,_0x50896c){_0x5a3cbb=_0x5a3cbb-0xdc;var _0x100923=a105_0x1009();var _0x1793dc=_0x100923[_0x5a3cbb];return _0x1793dc;}export{parseFlags,validateFlags}from'./flags.js';function a105_0x1009(){var _0x306bc7=['2659098ohKcKe','40gXhqkY','30047hdXPec','7RUTbAK','5931824TkbeTM','2554852xkPnVQ','1223127sTECEQ','84tPIeDL','1089430MCCUop','65225tXgFaS'];a105_0x1009=function(){return _0x306bc7;};return a105_0x1009();}export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';export{riskLevelOrder}from'./types.js';
@@ -1 +1 @@
1
- (function(_0x3e9c2b,_0x284d0a){const _0x19b38a=a106_0x413b,_0x336035=_0x3e9c2b();while(!![]){try{const _0x278a19=parseInt(_0x19b38a(0x94))/0x1+-parseInt(_0x19b38a(0x99))/0x2+-parseInt(_0x19b38a(0x7f))/0x3*(-parseInt(_0x19b38a(0x9a))/0x4)+parseInt(_0x19b38a(0x97))/0x5*(parseInt(_0x19b38a(0x96))/0x6)+parseInt(_0x19b38a(0x9b))/0x7*(-parseInt(_0x19b38a(0x95))/0x8)+parseInt(_0x19b38a(0x8d))/0x9+-parseInt(_0x19b38a(0x8f))/0xa;if(_0x278a19===_0x284d0a)break;else _0x336035['push'](_0x336035['shift']());}catch(_0x488686){_0x336035['push'](_0x336035['shift']());}}}(a106_0x4c3e,0x2f100));export function formatOutput(_0x4a59b4,_0x274e0b){const _0x1a060d=a106_0x413b,{format:_0x1ceff3}=_0x274e0b;switch(_0x1ceff3){case'json':printJson(_0x4a59b4,_0x274e0b);break;case _0x1a060d(0x7d):printTable(_0x4a59b4,_0x274e0b);break;case _0x1a060d(0x89):default:printPretty(_0x4a59b4,_0x274e0b);break;}}function printJson(_0x2e8078,_0x352d56){const _0x11bb3d=a106_0x413b,_0x12d23b={'ok':_0x2e8078['ok'],'command':_0x352d56[_0x11bb3d(0x80)],'risk':_0x352d56[_0x11bb3d(0x85)]};if(_0x352d56[_0x11bb3d(0x7a)])_0x12d23b[_0x11bb3d(0x7a)]=!![];if(_0x2e8078['data']!==undefined)_0x12d23b['data']=_0x2e8078[_0x11bb3d(0x81)];!_0x2e8078['ok']&&_0x2e8078[_0x11bb3d(0x7e)]&&(_0x12d23b[_0x11bb3d(0x92)]={'code':_0x11bb3d(0x7c),'message':_0x2e8078[_0x11bb3d(0x7e)]}),process[_0x11bb3d(0x87)]['write'](JSON['stringify'](_0x12d23b,null,0x2)+'\x0a');}function printPretty(_0x3de7ce,_0x582520){const _0x390a71=a106_0x413b;if(_0x582520[_0x390a71(0x7a)]){console[_0x390a71(0x90)](_0x390a71(0x84)),console[_0x390a71(0x90)](JSON[_0x390a71(0x91)](_0x3de7ce[_0x390a71(0x81)],null,0x2));return;}if(!_0x3de7ce['ok']){console[_0x390a71(0x92)]('Error:\x20'+(_0x3de7ce[_0x390a71(0x7e)]??_0x390a71(0x77)));return;}const _0x33d32f=_0x3de7ce['data'];if(_0x33d32f===undefined||_0x33d32f===null){if(_0x3de7ce[_0x390a71(0x7e)])console[_0x390a71(0x90)](_0x3de7ce['message']);return;}if(Array[_0x390a71(0x86)](_0x33d32f)){printArrayPretty(_0x33d32f);return;}if(typeof _0x33d32f===_0x390a71(0x8b)){printObjectPretty(_0x33d32f);return;}console[_0x390a71(0x90)](String(_0x33d32f));}function a106_0x413b(_0xd27d55,_0x1351cc){_0xd27d55=_0xd27d55-0x76;const _0x4c3e2e=a106_0x4c3e();let _0x413b3f=_0x4c3e2e[_0xd27d55];return _0x413b3f;}function printObjectPretty(_0x4ce705){const _0x880e9a=a106_0x413b,_0x17b7c3=Math[_0x880e9a(0x8c)](...Object[_0x880e9a(0x78)](_0x4ce705)[_0x880e9a(0x8e)](_0x499865=>_0x499865[_0x880e9a(0x9c)]),0x0);for(const [_0x955b13,_0x349409]of Object[_0x880e9a(0x9d)](_0x4ce705)){if(_0x349409===undefined||_0x349409===null)continue;const _0x3dc8a9=_0x955b13['padEnd'](_0x17b7c3);typeof _0x349409===_0x880e9a(0x8b)?console[_0x880e9a(0x90)](_0x3dc8a9+'\x20\x20'+JSON[_0x880e9a(0x91)](_0x349409)):console[_0x880e9a(0x90)](_0x3dc8a9+'\x20\x20'+_0x349409);}}function printArrayPretty(_0x23affc){const _0xaa0e2a=a106_0x413b;if(_0x23affc['length']===0x0){console[_0xaa0e2a(0x90)](_0xaa0e2a(0x82));return;}console[_0xaa0e2a(0x90)](_0xaa0e2a(0x98)+_0x23affc['length']+_0xaa0e2a(0x88));for(const _0x44c08c of _0x23affc){if(typeof _0x44c08c==='object'&&_0x44c08c!==null){const _0x20ddfb=Object[_0xaa0e2a(0x76)](_0x44c08c)[_0xaa0e2a(0x83)](0x0,0x4)[_0xaa0e2a(0x93)]('\x20\x20');console[_0xaa0e2a(0x90)]('\x20\x20'+_0x20ddfb);}else console[_0xaa0e2a(0x90)]('\x20\x20'+_0x44c08c);}}function printTable(_0xc03d02,_0x4a9141){const _0x5f46bb=a106_0x413b,_0x1c3f6a=_0xc03d02[_0x5f46bb(0x81)];if(!_0xc03d02['ok']){console[_0x5f46bb(0x92)](_0x5f46bb(0x79)+(_0xc03d02['message']??_0x5f46bb(0x77)));return;}const _0x2ff016=Array['isArray'](_0x1c3f6a)?_0x1c3f6a:_0x1c3f6a?[_0x1c3f6a]:[];if(_0x2ff016[_0x5f46bb(0x9c)]===0x0){console[_0x5f46bb(0x90)](_0x5f46bb(0x82));return;}const _0x2906a4=Object[_0x5f46bb(0x78)](_0x2ff016[0x0]),_0x1ed111=_0x2906a4[_0x5f46bb(0x8e)](_0x8f3597=>Math['max'](_0x8f3597['length'],..._0x2ff016['map'](_0x49bc05=>String(_0x49bc05[_0x8f3597]??'')[_0x5f46bb(0x9c)]))),_0x8d5ac4=_0x2906a4[_0x5f46bb(0x8e)]((_0x42f591,_0x1fc129)=>_0x42f591[_0x5f46bb(0x8a)](_0x1ed111[_0x1fc129]))[_0x5f46bb(0x93)]('\x20\x20'),_0x576820=_0x1ed111[_0x5f46bb(0x8e)](_0x683644=>'-'[_0x5f46bb(0x7b)](_0x683644))['join']('\x20\x20');console[_0x5f46bb(0x90)](_0x8d5ac4),console['log'](_0x576820);for(const _0x5eddcb of _0x2ff016){const _0x2fcf51=_0x2906a4['map']((_0x41545b,_0x1bdbc8)=>String(_0x5eddcb[_0x41545b]??'')['padEnd'](_0x1ed111[_0x1bdbc8]))[_0x5f46bb(0x93)]('\x20\x20');console[_0x5f46bb(0x90)](_0x2fcf51);}}function a106_0x4c3e(){const _0x306dc0=['44481uIaALb','command','data','(empty)','slice','[dry-run]\x20Would\x20execute:','risk','isArray','stdout','\x20items:\x0a','pretty','padEnd','object','max','2350575ETTrUc','map','3411670OYksin','log','stringify','error','join','85036UrrSTc','432TvMecK','10230CWypbr','1030xpfVEg','Found\x20','394084wzfdze','56GyOjNk','22561ktSaVk','length','entries','values','Unknown\x20error','keys','Error:\x20','dryRun','repeat','command_error','table','message'];a106_0x4c3e=function(){return _0x306dc0;};return a106_0x4c3e();}
1
+ (function(_0x3a9408,_0x38a9b0){const _0x3e483d=a106_0x1139,_0x264136=_0x3a9408();while(!![]){try{const _0x1fdaf7=-parseInt(_0x3e483d(0xd5))/0x1+parseInt(_0x3e483d(0xd3))/0x2+parseInt(_0x3e483d(0xdd))/0x3+-parseInt(_0x3e483d(0xe5))/0x4*(parseInt(_0x3e483d(0xea))/0x5)+parseInt(_0x3e483d(0xd1))/0x6+parseInt(_0x3e483d(0xcf))/0x7+-parseInt(_0x3e483d(0xd7))/0x8*(parseInt(_0x3e483d(0xcd))/0x9);if(_0x1fdaf7===_0x38a9b0)break;else _0x264136['push'](_0x264136['shift']());}catch(_0x404818){_0x264136['push'](_0x264136['shift']());}}}(a106_0x19dd,0xe04b0));export function formatOutput(_0x558ce7,_0x21e05d){const _0x220b44=a106_0x1139,{format:_0x5cfe60}=_0x21e05d;switch(_0x5cfe60){case _0x220b44(0xdb):printJson(_0x558ce7,_0x21e05d);break;case'table':printTable(_0x558ce7,_0x21e05d);break;case'pretty':default:printPretty(_0x558ce7,_0x21e05d);break;}}function printJson(_0x596761,_0x51895c){const _0x20dd26=a106_0x1139,_0x490eb3={'ok':_0x596761['ok'],'command':_0x51895c[_0x20dd26(0xe8)],'risk':_0x51895c[_0x20dd26(0xd6)]};if(_0x51895c['dryRun'])_0x490eb3['dryRun']=!![];if(_0x596761[_0x20dd26(0xe2)]!==undefined)_0x490eb3[_0x20dd26(0xe2)]=_0x596761[_0x20dd26(0xe2)];!_0x596761['ok']&&_0x596761[_0x20dd26(0xe7)]&&(_0x490eb3[_0x20dd26(0xca)]={'code':'command_error','message':_0x596761['message']}),process['stdout']['write'](JSON[_0x20dd26(0xde)](_0x490eb3,null,0x2)+'\x0a');}function a106_0x1139(_0x5c351e,_0x4a5591){_0x5c351e=_0x5c351e-0xc9;const _0x19dd00=a106_0x19dd();let _0x1139c8=_0x19dd00[_0x5c351e];return _0x1139c8;}function printPretty(_0x5b377f,_0x22024c){const _0x3e2a2d=a106_0x1139;if(_0x22024c[_0x3e2a2d(0xcb)]){console[_0x3e2a2d(0xe4)]('[dry-run]\x20Would\x20execute:'),console[_0x3e2a2d(0xe4)](JSON[_0x3e2a2d(0xde)](_0x5b377f[_0x3e2a2d(0xe2)],null,0x2));return;}if(!_0x5b377f['ok']){console[_0x3e2a2d(0xca)]('Error:\x20'+(_0x5b377f[_0x3e2a2d(0xe7)]??_0x3e2a2d(0xd8)));return;}const _0x36b1c5=_0x5b377f[_0x3e2a2d(0xe2)];if(_0x36b1c5===undefined||_0x36b1c5===null){if(_0x5b377f[_0x3e2a2d(0xe7)])console[_0x3e2a2d(0xe4)](_0x5b377f[_0x3e2a2d(0xe7)]);return;}if(Array[_0x3e2a2d(0xe3)](_0x36b1c5)){printArrayPretty(_0x36b1c5);return;}if(typeof _0x36b1c5===_0x3e2a2d(0xc9)){printObjectPretty(_0x36b1c5);return;}console[_0x3e2a2d(0xe4)](String(_0x36b1c5));}function printObjectPretty(_0x3d88a5){const _0x190957=a106_0x1139,_0x2b95d6=Math['max'](...Object[_0x190957(0xd4)](_0x3d88a5)[_0x190957(0xe9)](_0x506759=>_0x506759[_0x190957(0xd9)]),0x0);for(const [_0x5587d7,_0x6407d7]of Object[_0x190957(0xe0)](_0x3d88a5)){if(_0x6407d7===undefined||_0x6407d7===null)continue;const _0x309902=_0x5587d7[_0x190957(0xcc)](_0x2b95d6);typeof _0x6407d7==='object'?console[_0x190957(0xe4)](_0x309902+'\x20\x20'+JSON[_0x190957(0xde)](_0x6407d7)):console[_0x190957(0xe4)](_0x309902+'\x20\x20'+_0x6407d7);}}function printArrayPretty(_0x3199d6){const _0x4316c2=a106_0x1139;if(_0x3199d6[_0x4316c2(0xd9)]===0x0){console[_0x4316c2(0xe4)](_0x4316c2(0xce));return;}console[_0x4316c2(0xe4)]('Found\x20'+_0x3199d6[_0x4316c2(0xd9)]+_0x4316c2(0xd0));for(const _0x372d52 of _0x3199d6){if(typeof _0x372d52===_0x4316c2(0xc9)&&_0x372d52!==null){const _0x5f54c5=Object[_0x4316c2(0xdc)](_0x372d52)[_0x4316c2(0xe1)](0x0,0x4)[_0x4316c2(0xd2)]('\x20\x20');console['log']('\x20\x20'+_0x5f54c5);}else console[_0x4316c2(0xe4)]('\x20\x20'+_0x372d52);}}function a106_0x19dd(){const _0x3501ac=['12304pphfZE','Unknown\x20error','length','Error:\x20','json','values','3168780VudkHI','stringify','repeat','entries','slice','data','isArray','log','40gYeNGs','max','message','command','map','54305atDudm','object','error','dryRun','padEnd','2835nHXKsW','(empty)','9666566AoApVx','\x20items:\x0a','202686mddJxo','join','728588nosVIb','keys','1323489mRtFam','risk'];a106_0x19dd=function(){return _0x3501ac;};return a106_0x19dd();}function printTable(_0x2bc45f,_0x11877f){const _0x5323b6=a106_0x1139,_0x3f2180=_0x2bc45f[_0x5323b6(0xe2)];if(!_0x2bc45f['ok']){console[_0x5323b6(0xca)](_0x5323b6(0xda)+(_0x2bc45f[_0x5323b6(0xe7)]??'Unknown\x20error'));return;}const _0x1c9139=Array[_0x5323b6(0xe3)](_0x3f2180)?_0x3f2180:_0x3f2180?[_0x3f2180]:[];if(_0x1c9139['length']===0x0){console[_0x5323b6(0xe4)](_0x5323b6(0xce));return;}const _0x5af4a6=Object[_0x5323b6(0xd4)](_0x1c9139[0x0]),_0x2dd3d0=_0x5af4a6['map'](_0x2fe7b0=>Math[_0x5323b6(0xe6)](_0x2fe7b0[_0x5323b6(0xd9)],..._0x1c9139['map'](_0x8423fe=>String(_0x8423fe[_0x2fe7b0]??'')[_0x5323b6(0xd9)]))),_0x1ee283=_0x5af4a6[_0x5323b6(0xe9)]((_0x2dc96f,_0x438532)=>_0x2dc96f[_0x5323b6(0xcc)](_0x2dd3d0[_0x438532]))['join']('\x20\x20'),_0x3b03dd=_0x2dd3d0[_0x5323b6(0xe9)](_0x3c8961=>'-'[_0x5323b6(0xdf)](_0x3c8961))['join']('\x20\x20');console[_0x5323b6(0xe4)](_0x1ee283),console[_0x5323b6(0xe4)](_0x3b03dd);for(const _0x427f1b of _0x1c9139){const _0x2a8c39=_0x5af4a6[_0x5323b6(0xe9)]((_0x21139a,_0x241e0b)=>String(_0x427f1b[_0x21139a]??'')['padEnd'](_0x2dd3d0[_0x241e0b]))[_0x5323b6(0xd2)]('\x20\x20');console['log'](_0x2a8c39);}}
@@ -1 +1 @@
1
- (function(_0x8b41b0,_0x2795f9){var _0x4745a9=a107_0xdf14,_0x54358e=_0x8b41b0();while(!![]){try{var _0x5f1c3d=parseInt(_0x4745a9(0xe4))/0x1*(parseInt(_0x4745a9(0xea))/0x2)+-parseInt(_0x4745a9(0xe5))/0x3*(parseInt(_0x4745a9(0xde))/0x4)+parseInt(_0x4745a9(0xe9))/0x5+parseInt(_0x4745a9(0xe7))/0x6*(-parseInt(_0x4745a9(0xe0))/0x7)+parseInt(_0x4745a9(0xdd))/0x8*(-parseInt(_0x4745a9(0xe8))/0x9)+parseInt(_0x4745a9(0xe1))/0xa+-parseInt(_0x4745a9(0xe6))/0xb;if(_0x5f1c3d===_0x2795f9)break;else _0x54358e['push'](_0x54358e['shift']());}catch(_0x5183b0){_0x54358e['push'](_0x54358e['shift']());}}}(a107_0x5561,0x256ee));export function extractList(_0x2cd115){var _0x4de803=a107_0xdf14;if(Array[_0x4de803(0xe3)](_0x2cd115))return _0x2cd115;if(_0x2cd115&&typeof _0x2cd115===_0x4de803(0xe2))return _0x2cd115[_0x4de803(0xdf)]??[];return[];}function a107_0xdf14(_0x5b3148,_0x297ae2){_0x5b3148=_0x5b3148-0xdd;var _0x55618b=a107_0x5561();var _0xdf1476=_0x55618b[_0x5b3148];return _0xdf1476;}function a107_0x5561(){var _0x1a3941=['isArray','26042NCLSSc','21PbsqjI','680691OwMYff','47154JNlSDM','45BTgPOW','754820xzxsnc','22lwVyaI','paging','75792OscEzJ','45836sXIORS','tableData','126XOVrCZ','468260VfqxqN','object'];a107_0x5561=function(){return _0x1a3941;};return a107_0x5561();}export function extractPaging(_0x179433){var _0x210a9d=a107_0xdf14;if(_0x179433&&typeof _0x179433==='object'&&!Array[_0x210a9d(0xe3)](_0x179433))return _0x179433[_0x210a9d(0xeb)];return undefined;}
1
+ (function(_0x11713f,_0x2ee707){var _0x2b231a=a107_0x3f1b,_0x5384b1=_0x11713f();while(!![]){try{var _0x1e75a9=-parseInt(_0x2b231a(0x1ca))/0x1*(parseInt(_0x2b231a(0x1c4))/0x2)+-parseInt(_0x2b231a(0x1c3))/0x3+parseInt(_0x2b231a(0x1cc))/0x4*(parseInt(_0x2b231a(0x1c6))/0x5)+-parseInt(_0x2b231a(0x1ce))/0x6*(-parseInt(_0x2b231a(0x1c9))/0x7)+parseInt(_0x2b231a(0x1cf))/0x8+-parseInt(_0x2b231a(0x1cb))/0x9+parseInt(_0x2b231a(0x1c8))/0xa;if(_0x1e75a9===_0x2ee707)break;else _0x5384b1['push'](_0x5384b1['shift']());}catch(_0x190862){_0x5384b1['push'](_0x5384b1['shift']());}}}(a107_0x4b3b,0x7153b));function a107_0x4b3b(){var _0xae8ea6=['paging','35QkhqSd','object','4573830jIQWTy','7HWZtiB','35441mxHbxR','1931445oAYzqp','116404CzGYOf','tableData','446226fiNHcs','4596288KlLpSX','isArray','1680969cLVlGV','4arBmEi'];a107_0x4b3b=function(){return _0xae8ea6;};return a107_0x4b3b();}export function extractList(_0x44b71){var _0x288f16=a107_0x3f1b;if(Array[_0x288f16(0x1c2)](_0x44b71))return _0x44b71;if(_0x44b71&&typeof _0x44b71===_0x288f16(0x1c7))return _0x44b71[_0x288f16(0x1cd)]??[];return[];}function a107_0x3f1b(_0x54c2e2,_0x2f9477){_0x54c2e2=_0x54c2e2-0x1c2;var _0x4b3b9d=a107_0x4b3b();var _0x3f1bbf=_0x4b3b9d[_0x54c2e2];return _0x3f1bbf;}export function extractPaging(_0x204af7){var _0x5db76d=a107_0x3f1b;if(_0x204af7&&typeof _0x204af7===_0x5db76d(0x1c7)&&!Array['isArray'](_0x204af7))return _0x204af7[_0x5db76d(0x1c5)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x45fff4,_0x144ef4){const _0x14a324=a108_0x12b1,_0xaed90e=_0x45fff4();while(!![]){try{const _0x3fb7a9=parseInt(_0x14a324(0x17b))/0x1+-parseInt(_0x14a324(0x16c))/0x2+-parseInt(_0x14a324(0x15f))/0x3+-parseInt(_0x14a324(0x17e))/0x4*(parseInt(_0x14a324(0x185))/0x5)+-parseInt(_0x14a324(0x158))/0x6+parseInt(_0x14a324(0x18a))/0x7+parseInt(_0x14a324(0x192))/0x8;if(_0x3fb7a9===_0x144ef4)break;else _0xaed90e['push'](_0xaed90e['shift']());}catch(_0x1cccf4){_0xaed90e['push'](_0xaed90e['shift']());}}}(a108_0x5e2a,0x29034));import{riskLevelOrder}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';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(_0x118277,_0x5b96f4){const _0x37754f=a108_0x12b1,_0x267281=CLI_BIN_NAME+'\x20'+_0x118277['service']+'\x20'+_0x118277[_0x37754f(0x17a)],_0x5cbeab=parseFlags(_0x118277[_0x37754f(0x182)],_0x5b96f4[_0x37754f(0x193)]);validateFlags(_0x118277['flags'],_0x5cbeab,_0x267281);if(!_0x5cbeab[_0x37754f(0x188)]&&_0x5b96f4[_0x37754f(0x197)]&&riskLevelOrder(_0x118277[_0x37754f(0x184)])>riskLevelOrder(_0x5b96f4['riskLevel']))throw CliErrors[_0x37754f(0x18c)]('Command\x20`'+_0x267281+'`\x20has\x20risk\x20level\x20\x22'+_0x118277['risk']+_0x37754f(0x172)+_0x5b96f4['riskLevel']+_0x37754f(0x165)+_0x37754f(0x180));const _0x29b449=_0x5b96f4['apiDir']||_0x37754f(0x15b);resolveAliasToCode(_0x118277,_0x5cbeab,_0x29b449,_0x267281);let _0x316d9f='';if(_0x118277[_0x37754f(0x187)]!==![]){_0x316d9f=_0x5b96f4[_0x37754f(0x16e)]();if(!_0x316d9f)throw CliErrors[_0x37754f(0x15d)]();const {setActiveCookie:_0x48edfb}=await import('../core/api-client.js');_0x48edfb(_0x316d9f);}let _0x1341d8='';if(_0x118277[_0x37754f(0x17c)]!==![]){_0x1341d8=_0x5b96f4[_0x37754f(0x168)]()??'';if(!_0x1341d8)throw CliErrors[_0x37754f(0x186)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}const _0x416357=resolveFormat(_0x5cbeab,_0x118277,_0x5b96f4[_0x37754f(0x164)]),_0x4866c9=buildRuntimeContext({'appCode':_0x1341d8,'cookie':_0x316d9f,'apiDomain':_0x5b96f4[_0x37754f(0x166)](),'format':_0x416357,'flags':_0x5cbeab,'def':_0x118277,'nonInteractive':_0x5b96f4['isNonInteractive'],'defaultPageSize':_0x5b96f4[_0x37754f(0x161)],'defaultVerbose':_0x5b96f4[_0x37754f(0x17d)],'apiDir':_0x29b449,'selectedAppName':_0x5b96f4[_0x37754f(0x160)]});_0x118277['validate']&&await _0x118277[_0x37754f(0x16f)](_0x4866c9);if(_0x5cbeab[_0x37754f(0x188)]){if(!_0x118277[_0x37754f(0x181)])throw CliErrors['validation'](_0x37754f(0x175)+_0x267281+'`.');const _0x5863bf=await _0x118277[_0x37754f(0x181)](_0x4866c9);formatOutput({'ok':!![],'data':_0x5863bf},{'command':_0x267281,'risk':_0x118277[_0x37754f(0x184)],'format':_0x416357,'dryRun':!![]});return;}if(_0x118277[_0x37754f(0x184)]==='high-risk-write'&&!_0x5cbeab[_0x37754f(0x199)]){if(_0x5b96f4[_0x37754f(0x18f)])throw CliErrors[_0x37754f(0x18c)](_0x37754f(0x159)+_0x267281+_0x37754f(0x18b));await requireConfirmation(_0x267281);}const _0x3e0480=await _0x118277['execute'](_0x4866c9);formatOutput(_0x3e0480,{'command':_0x267281,'risk':_0x118277[_0x37754f(0x184)],'format':_0x416357});}function a108_0x5e2a(){const _0x3a650e=['alias','\x22.\x20','riskLevel','string','yes','963768fWkpRe','High-risk\x20operation\x20`','apiDir','./src/api','verbose','authRequired','pretty','809805sERjfl','selectedAppName','defaultPageSize','⚠\x20\x20High-risk\x20operation:\x20','format','defaultFormat','\x22.\x0a','resolveApiDomain','number','resolveAppCode','nonInteractive','pagesize','table','150338YoZJVi','json','resolveCookie','validate','name','service','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','toLowerCase','some','--dry-run\x20is\x20not\x20supported\x20for\x20`','\x20api\x20pull`\x20first.','question','cancelled','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','command','197513vWZGEL','requiresAppCode','defaultVerbose','25964llrcCJ','Operation\x20cancelled\x20by\x20user.','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','dryRun','flags','node:readline','risk','80eJhses','configMissing','requiresAuth','dry-run','createInterface','1552684jkWBVU','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','validation','.\x20Run\x20`','length','isNonInteractive','No\x20api.ts\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','2866008jRAnce','rawFlags','code'];a108_0x5e2a=function(){return _0x3a650e;};return a108_0x5e2a();}function buildRuntimeContext(_0x1e7d3c){const _0x378bb5=a108_0x12b1,{flags:_0x3531e3,def:_0x306427}=_0x1e7d3c,_0x333e5b=CLI_BIN_NAME+'\x20'+_0x306427[_0x378bb5(0x171)]+'\x20'+_0x306427['command'];return{'appCode':_0x1e7d3c['appCode'],'cookie':_0x1e7d3c['cookie'],'apiDomain':_0x1e7d3c['apiDomain'],'format':_0x1e7d3c[_0x378bb5(0x163)],'nonInteractive':_0x1e7d3c[_0x378bb5(0x169)],'apiDir':_0x1e7d3c[_0x378bb5(0x15a)],'selectedAppName':_0x1e7d3c[_0x378bb5(0x160)],'str'(_0x57e914){return String(_0x3531e3[_0x57e914]??'');},'bool'(_0x42ffee){const _0x25ce42=_0x378bb5;if(_0x3531e3[_0x42ffee]===!![])return!![];if(_0x42ffee===_0x25ce42(0x15c)&&_0x1e7d3c[_0x25ce42(0x17d)])return!![];return![];},'num'(_0x3b911e,_0x2142f9){const _0x15e570=_0x378bb5,_0x176917=_0x3531e3[_0x3b911e];if(typeof _0x176917===_0x15e570(0x167))return _0x176917;if(_0x3b911e===_0x15e570(0x16a)&&_0x1e7d3c[_0x15e570(0x161)]!=null)return _0x1e7d3c[_0x15e570(0x161)];return _0x2142f9??0x0;},'flag'(_0x42c149){return _0x3531e3[_0x42c149];},'output'(_0x4c46c1){const _0x87dd32=_0x378bb5;formatOutput(_0x4c46c1,{'command':_0x333e5b,'risk':_0x306427[_0x87dd32(0x184)],'format':_0x1e7d3c['format']});}};}function a108_0x12b1(_0x3ee927,_0x11abec){_0x3ee927=_0x3ee927-0x158;const _0x5e2a4=a108_0x5e2a();let _0x12b159=_0x5e2a4[_0x3ee927];return _0x12b159;}function resolveFormat(_0xe3ed45,_0x3ffae7,_0x4f8801){const _0x2bcd5a=a108_0x12b1;if(_0x3ffae7['hasFormat']===![])return'pretty';const _0x277d29=_0xe3ed45[_0x2bcd5a(0x163)];if(_0x277d29===_0x2bcd5a(0x16d)||_0x277d29==='pretty'||_0x277d29===_0x2bcd5a(0x16b))return _0x277d29;if(_0x4f8801)return _0x4f8801;return _0x2bcd5a(0x15e);}async function requireConfirmation(_0x3c4d44){const _0x4d7a49=a108_0x12b1,_0x411b66=await import(_0x4d7a49(0x183)),_0x204bfc=_0x411b66[_0x4d7a49(0x189)]({'input':process['stdin'],'output':process['stderr']});return new Promise((_0x131a25,_0x4a4076)=>{const _0x3374d3=_0x4d7a49;_0x204bfc[_0x3374d3(0x177)](_0x3374d3(0x162)+_0x3c4d44+_0x3374d3(0x179),_0x447a5a=>{const _0x5b2551=_0x3374d3;_0x204bfc['close'](),_0x447a5a[_0x5b2551(0x173)]()==='y'||_0x447a5a[_0x5b2551(0x173)]()===_0x5b2551(0x199)?_0x131a25():_0x4a4076(CliErrors[_0x5b2551(0x178)](_0x5b2551(0x17f)));});});}function resolveAliasToCode(_0x347a18,_0xed03cf,_0x470831,_0x38b33a){const _0x33bc25=a108_0x12b1,_0x296ba2=_0x347a18[_0x33bc25(0x182)][_0x33bc25(0x174)](_0x3c6338=>_0x3c6338[_0x33bc25(0x170)]==='code'&&_0x3c6338['type']===_0x33bc25(0x198)),_0x5eaaa9=_0x347a18['flags'][_0x33bc25(0x174)](_0x3bb0f1=>_0x3bb0f1[_0x33bc25(0x170)]===_0x33bc25(0x195)&&_0x3bb0f1['type']===_0x33bc25(0x198));if(!_0x296ba2||!_0x5eaaa9)return;const _0x202139=_0xed03cf[_0x33bc25(0x194)]?String(_0xed03cf[_0x33bc25(0x194)]):'',_0x2c47e1=_0xed03cf[_0x33bc25(0x195)]?String(_0xed03cf[_0x33bc25(0x195)]):'';if(!_0x202139&&!_0x2c47e1)throw CliErrors[_0x33bc25(0x18c)]('`'+_0x38b33a+_0x33bc25(0x191));if(_0x2c47e1&&!_0x202139){const _0x4156ef=resolveAlias(_0x470831,_0x2c47e1);if(!_0x4156ef){const _0x510b55=listAliases(_0x470831)['map'](_0x47ca18=>_0x47ca18[_0x33bc25(0x195)]),_0x52f791=_0x510b55[_0x33bc25(0x18e)]?'Available\x20aliases:\x20'+_0x510b55['join'](',\x20'):_0x33bc25(0x190)+_0x470831+_0x33bc25(0x18d)+CLI_BIN_NAME+_0x33bc25(0x176);throw CliErrors[_0x33bc25(0x18c)]('Unknown\x20alias\x20\x22'+_0x2c47e1+_0x33bc25(0x196)+_0x52f791);}_0xed03cf['code']=_0x4156ef;}}
1
+ (function(_0x157fcd,_0x3689a1){const _0x36dcf6=a108_0x5204,_0xae4e50=_0x157fcd();while(!![]){try{const _0xbad260=parseInt(_0x36dcf6(0x21c))/0x1*(parseInt(_0x36dcf6(0x21f))/0x2)+parseInt(_0x36dcf6(0x207))/0x3+parseInt(_0x36dcf6(0x200))/0x4+-parseInt(_0x36dcf6(0x1f9))/0x5+-parseInt(_0x36dcf6(0x20d))/0x6+parseInt(_0x36dcf6(0x1f5))/0x7+-parseInt(_0x36dcf6(0x212))/0x8;if(_0xbad260===_0x3689a1)break;else _0xae4e50['push'](_0xae4e50['shift']());}catch(_0x53c3ea){_0xae4e50['push'](_0xae4e50['shift']());}}}(a108_0x4755,0xc8d29));import{riskLevelOrder}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';function a108_0x4755(){const _0x1ce297=['pagesize','service','isNonInteractive','High-risk\x20operation\x20`','defaultVerbose','name','createInterface','1PIiidT','string','../core/api-client.js','305038aXZxJG','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','Command\x20`','defaultPageSize','requiresAppCode','dry-run','alias','./src/api','apiDomain','format','table','pretty','nonInteractive','No\x20api.ts\x20found\x20in\x20','code','\x22.\x0a','validate','selectedAppName','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','cancelled','risk','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','map','cookie','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','number','rawFlags','toLowerCase','9098544gqPrij','command','node:readline','apiDir','1849425dJzNMp','requiresAuth','join','Unknown\x20alias\x20\x22','json','execute','resolveCookie','4935500rXDYJY','\x22.\x20','stderr','flags','validation','question','authRequired','2023635mqIdnU','type','defaultFormat','riskLevel','length','configMissing','659352pZigBS','resolveApiDomain','yes','dryRun','resolveAppCode','16467080iFnGMz','some','Set\x20appcode\x20via\x20`'];a108_0x4755=function(){return _0x1ce297;};return a108_0x4755();}import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a108_0x5204(_0x1138d8,_0x499c6d){_0x1138d8=_0x1138d8-0x1f1;const _0x47550f=a108_0x4755();let _0x5204f9=_0x47550f[_0x1138d8];return _0x5204f9;}export async function runCommand(_0x494ffc,_0x52e34e){const _0x1b4569=a108_0x5204,_0x23c5dc=CLI_BIN_NAME+'\x20'+_0x494ffc['service']+'\x20'+_0x494ffc[_0x1b4569(0x1f6)],_0x421872=parseFlags(_0x494ffc[_0x1b4569(0x203)],_0x52e34e[_0x1b4569(0x1f3)]);validateFlags(_0x494ffc[_0x1b4569(0x203)],_0x421872,_0x23c5dc);if(!_0x421872[_0x1b4569(0x224)]&&_0x52e34e[_0x1b4569(0x20a)]&&riskLevelOrder(_0x494ffc[_0x1b4569(0x233)])>riskLevelOrder(_0x52e34e['riskLevel']))throw CliErrors[_0x1b4569(0x204)](_0x1b4569(0x221)+_0x23c5dc+'`\x20has\x20risk\x20level\x20\x22'+_0x494ffc[_0x1b4569(0x233)]+_0x1b4569(0x220)+_0x52e34e[_0x1b4569(0x20a)]+_0x1b4569(0x22e)+'\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.');const _0x5d9acb=_0x52e34e[_0x1b4569(0x1f8)]||_0x1b4569(0x226);resolveAliasToCode(_0x494ffc,_0x421872,_0x5d9acb,_0x23c5dc);let _0x3d3f85='';if(_0x494ffc[_0x1b4569(0x1fa)]!==![]){_0x3d3f85=_0x52e34e[_0x1b4569(0x1ff)]();if(!_0x3d3f85)throw CliErrors[_0x1b4569(0x206)]();const {setActiveCookie:_0x5b9233}=await import(_0x1b4569(0x21e));_0x5b9233(_0x3d3f85);}let _0x4c6a98='';if(_0x494ffc[_0x1b4569(0x223)]!==![]){_0x4c6a98=_0x52e34e[_0x1b4569(0x211)]()??'';if(!_0x4c6a98)throw CliErrors[_0x1b4569(0x20c)](_0x1b4569(0x214)+CLI_BIN_NAME+_0x1b4569(0x1f1));}const _0x4ba61b=resolveFormat(_0x421872,_0x494ffc,_0x52e34e[_0x1b4569(0x209)]),_0x5b1b50=buildRuntimeContext({'appCode':_0x4c6a98,'cookie':_0x3d3f85,'apiDomain':_0x52e34e[_0x1b4569(0x20e)](),'format':_0x4ba61b,'flags':_0x421872,'def':_0x494ffc,'nonInteractive':_0x52e34e[_0x1b4569(0x217)],'defaultPageSize':_0x52e34e[_0x1b4569(0x222)],'defaultVerbose':_0x52e34e[_0x1b4569(0x219)],'apiDir':_0x5d9acb,'selectedAppName':_0x52e34e[_0x1b4569(0x230)]});_0x494ffc[_0x1b4569(0x22f)]&&await _0x494ffc[_0x1b4569(0x22f)](_0x5b1b50);if(_0x421872['dry-run']){if(!_0x494ffc[_0x1b4569(0x210)])throw CliErrors[_0x1b4569(0x204)]('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x23c5dc+'`.');const _0x528e87=await _0x494ffc[_0x1b4569(0x210)](_0x5b1b50);formatOutput({'ok':!![],'data':_0x528e87},{'command':_0x23c5dc,'risk':_0x494ffc[_0x1b4569(0x233)],'format':_0x4ba61b,'dryRun':!![]});return;}if(_0x494ffc[_0x1b4569(0x233)]==='high-risk-write'&&!_0x421872[_0x1b4569(0x20f)]){if(_0x52e34e[_0x1b4569(0x217)])throw CliErrors[_0x1b4569(0x204)](_0x1b4569(0x218)+_0x23c5dc+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x23c5dc);}const _0x88fd21=await _0x494ffc[_0x1b4569(0x1fe)](_0x5b1b50);formatOutput(_0x88fd21,{'command':_0x23c5dc,'risk':_0x494ffc[_0x1b4569(0x233)],'format':_0x4ba61b});}function buildRuntimeContext(_0x281902){const _0x27c664=a108_0x5204,{flags:_0x3a8b30,def:_0x4e671d}=_0x281902,_0x1cdcc7=CLI_BIN_NAME+'\x20'+_0x4e671d[_0x27c664(0x216)]+'\x20'+_0x4e671d[_0x27c664(0x1f6)];return{'appCode':_0x281902['appCode'],'cookie':_0x281902[_0x27c664(0x237)],'apiDomain':_0x281902[_0x27c664(0x227)],'format':_0x281902[_0x27c664(0x228)],'nonInteractive':_0x281902[_0x27c664(0x22b)],'apiDir':_0x281902[_0x27c664(0x1f8)],'selectedAppName':_0x281902[_0x27c664(0x230)],'str'(_0x45520c){return String(_0x3a8b30[_0x45520c]??'');},'bool'(_0x5370e0){const _0x105074=_0x27c664;if(_0x3a8b30[_0x5370e0]===!![])return!![];if(_0x5370e0==='verbose'&&_0x281902[_0x105074(0x219)])return!![];return![];},'num'(_0x50379e,_0xe44942){const _0x1365a8=_0x27c664,_0xabe47a=_0x3a8b30[_0x50379e];if(typeof _0xabe47a===_0x1365a8(0x1f2))return _0xabe47a;if(_0x50379e===_0x1365a8(0x215)&&_0x281902['defaultPageSize']!=null)return _0x281902[_0x1365a8(0x222)];return _0xe44942??0x0;},'flag'(_0x3786fd){return _0x3a8b30[_0x3786fd];},'output'(_0x1c7c13){const _0x39dc1c=_0x27c664;formatOutput(_0x1c7c13,{'command':_0x1cdcc7,'risk':_0x4e671d[_0x39dc1c(0x233)],'format':_0x281902['format']});}};}function resolveFormat(_0x4e4904,_0x5c8e74,_0x222c57){const _0xe914bd=a108_0x5204;if(_0x5c8e74['hasFormat']===![])return _0xe914bd(0x22a);const _0x29779f=_0x4e4904[_0xe914bd(0x228)];if(_0x29779f===_0xe914bd(0x1fd)||_0x29779f===_0xe914bd(0x22a)||_0x29779f===_0xe914bd(0x229))return _0x29779f;if(_0x222c57)return _0x222c57;return _0xe914bd(0x22a);}async function requireConfirmation(_0x28d8f3){const _0x2ddde2=a108_0x5204,_0x55d469=await import(_0x2ddde2(0x1f7)),_0x162744=_0x55d469[_0x2ddde2(0x21b)]({'input':process['stdin'],'output':process[_0x2ddde2(0x202)]});return new Promise((_0x40d728,_0x22dfd8)=>{const _0x499b23=_0x2ddde2;_0x162744[_0x499b23(0x205)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x28d8f3+_0x499b23(0x231),_0x526634=>{const _0x46f8fc=_0x499b23;_0x162744['close'](),_0x526634[_0x46f8fc(0x1f4)]()==='y'||_0x526634[_0x46f8fc(0x1f4)]()===_0x46f8fc(0x20f)?_0x40d728():_0x22dfd8(CliErrors[_0x46f8fc(0x232)]('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x259ce4,_0x1b0b20,_0x33e099,_0x5234c3){const _0x412336=a108_0x5204,_0x3c84a0=_0x259ce4[_0x412336(0x203)]['some'](_0x14f3d9=>_0x14f3d9[_0x412336(0x21a)]===_0x412336(0x22d)&&_0x14f3d9[_0x412336(0x208)]===_0x412336(0x21d)),_0x32b7ff=_0x259ce4['flags'][_0x412336(0x213)](_0x1367c1=>_0x1367c1['name']==='alias'&&_0x1367c1['type']===_0x412336(0x21d));if(!_0x3c84a0||!_0x32b7ff)return;const _0xc9d8f7=_0x1b0b20[_0x412336(0x22d)]?String(_0x1b0b20[_0x412336(0x22d)]):'',_0x5f3251=_0x1b0b20[_0x412336(0x225)]?String(_0x1b0b20['alias']):'';if(!_0xc9d8f7&&!_0x5f3251)throw CliErrors[_0x412336(0x204)]('`'+_0x5234c3+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x5f3251&&!_0xc9d8f7){const _0x51ac19=resolveAlias(_0x33e099,_0x5f3251);if(!_0x51ac19){const _0x132935=listAliases(_0x33e099)[_0x412336(0x236)](_0x3fc048=>_0x3fc048['alias']),_0x14e059=_0x132935[_0x412336(0x20b)]?_0x412336(0x235)+_0x132935[_0x412336(0x1fb)](',\x20'):_0x412336(0x22c)+_0x33e099+'.\x20Run\x20`'+CLI_BIN_NAME+_0x412336(0x234);throw CliErrors[_0x412336(0x204)](_0x412336(0x1fc)+_0x5f3251+_0x412336(0x201)+_0x14e059);}_0x1b0b20[_0x412336(0x22d)]=_0x51ac19;}}
@@ -1 +1 @@
1
- function a109_0xa62b(_0x2e6669,_0x501e3a){_0x2e6669=_0x2e6669-0x1f2;const _0x5cee70=a109_0x5cee();let _0xa62b19=_0x5cee70[_0x2e6669];return _0xa62b19;}(function(_0x4e0507,_0x5e087c){const _0x599fe5=a109_0xa62b,_0x53e43b=_0x4e0507();while(!![]){try{const _0x29100f=parseInt(_0x599fe5(0x1f3))/0x1+parseInt(_0x599fe5(0x1fb))/0x2+parseInt(_0x599fe5(0x1f7))/0x3*(-parseInt(_0x599fe5(0x1f8))/0x4)+parseInt(_0x599fe5(0x1f2))/0x5+parseInt(_0x599fe5(0x1f5))/0x6*(-parseInt(_0x599fe5(0x1f6))/0x7)+-parseInt(_0x599fe5(0x1fa))/0x8+-parseInt(_0x599fe5(0x1f4))/0x9;if(_0x29100f===_0x5e087c)break;else _0x53e43b['push'](_0x53e43b['shift']());}catch(_0x267c81){_0x53e43b['push'](_0x53e43b['shift']());}}}(a109_0x5cee,0x5e6fd));function a109_0x5cee(){const _0x3bc37f=['4yFXPvT','read','1914528uqCsjB','999776bdfeiN','1448460ADWGwj','538024lozOfm','1842840NCulZa','6VNmIKE','630973zTMprR','1219728KBWOly'];a109_0x5cee=function(){return _0x3bc37f;};return a109_0x5cee();}export function riskLevelOrder(_0x165e0d){const _0x2d84cc=a109_0xa62b,_0x2d8613={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x2d8613[_0x165e0d??_0x2d84cc(0x1f9)]??0x0;}
1
+ (function(_0x345e09,_0xea075d){const _0x57a985=a109_0x895d,_0x1c3a42=_0x345e09();while(!![]){try{const _0x2545fe=-parseInt(_0x57a985(0x1a5))/0x1*(-parseInt(_0x57a985(0x1a9))/0x2)+-parseInt(_0x57a985(0x1ac))/0x3+-parseInt(_0x57a985(0x1aa))/0x4*(parseInt(_0x57a985(0x1a1))/0x5)+-parseInt(_0x57a985(0x1a8))/0x6+-parseInt(_0x57a985(0x1a2))/0x7*(parseInt(_0x57a985(0x1ab))/0x8)+parseInt(_0x57a985(0x1a3))/0x9+-parseInt(_0x57a985(0x1a4))/0xa*(-parseInt(_0x57a985(0x1a7))/0xb);if(_0x2545fe===_0xea075d)break;else _0x1c3a42['push'](_0x1c3a42['shift']());}catch(_0x555a67){_0x1c3a42['push'](_0x1c3a42['shift']());}}}(a109_0x5185,0xb2b6b));export function riskLevelOrder(_0x31616e){const _0x182790=a109_0x895d,_0x5356a9={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x5356a9[_0x31616e??_0x182790(0x1a6)]??0x0;}function a109_0x895d(_0x24bd11,_0xc52b22){_0x24bd11=_0x24bd11-0x1a1;const _0x518517=a109_0x5185();let _0x895d45=_0x518517[_0x24bd11];return _0x895d45;}function a109_0x5185(){const _0x49a95f=['252412qIFCFj','4IqKVvr','2510632fVBqpZ','1180260EBRMxj','2721965rnwrrg','14EPSbJB','6551640kIHqBU','40tFIvac','8ZuQPmm','read','2602435ngsOeP','2318796yfnQhQ'];a109_0x5185=function(){return _0x49a95f;};return a109_0x5185();}
@@ -1 +1 @@
1
- const a110_0x168538=a110_0x3f5e;(function(_0x2938bb,_0x28917f){const _0x158c87=a110_0x3f5e,_0x199fb1=_0x2938bb();while(!![]){try{const _0x3ea5ea=parseInt(_0x158c87(0xa4))/0x1+parseInt(_0x158c87(0xaa))/0x2*(-parseInt(_0x158c87(0xab))/0x3)+parseInt(_0x158c87(0xa7))/0x4*(parseInt(_0x158c87(0xac))/0x5)+-parseInt(_0x158c87(0xad))/0x6*(-parseInt(_0x158c87(0xaf))/0x7)+-parseInt(_0x158c87(0xae))/0x8+parseInt(_0x158c87(0xa1))/0x9+-parseInt(_0x158c87(0xa2))/0xa*(parseInt(_0x158c87(0xa3))/0xb);if(_0x3ea5ea===_0x28917f)break;else _0x199fb1['push'](_0x199fb1['shift']());}catch(_0x12be15){_0x199fb1['push'](_0x199fb1['shift']());}}}(a110_0x78f4,0x6b52e));export const VERSION=a110_0x168538(0xa8);export const GIT_TAG=a110_0x168538(0xa5);export const GIT_COMMIT=a110_0x168538(0xa9);function a110_0x3f5e(_0x1b6809,_0x198972){_0x1b6809=_0x1b6809-0xa1;const _0x78f486=a110_0x78f4();let _0x3f5e2d=_0x78f486[_0x1b6809];return _0x3f5e2d;}export const BUILD_TIME=a110_0x168538(0xa6);function a110_0x78f4(){const _0x44f6b3=['3890248isCOON','28553jsxeVp','7711776yhmDbv','10078870MuXBAW','11XcvHiI','439255MywveP','v2.0.4-beta.2','2026-04-02T07:30:13.086Z','4MXCvdS','2.0.4-beta.2','82dca0c','422EoiZGa','8046zQvUdf','1816375agvAlX','1236hzYljJ'];a110_0x78f4=function(){return _0x44f6b3;};return a110_0x78f4();}
1
+ const a110_0xba8897=a110_0x3406;(function(_0x579656,_0xc508a){const _0x9a67d0=a110_0x3406,_0x1c1c90=_0x579656();while(!![]){try{const _0x19e0d0=-parseInt(_0x9a67d0(0xc6))/0x1+parseInt(_0x9a67d0(0xbf))/0x2*(-parseInt(_0x9a67d0(0xc3))/0x3)+parseInt(_0x9a67d0(0xc2))/0x4+parseInt(_0x9a67d0(0xc5))/0x5+parseInt(_0x9a67d0(0xc7))/0x6+parseInt(_0x9a67d0(0xc9))/0x7*(parseInt(_0x9a67d0(0xca))/0x8)+-parseInt(_0x9a67d0(0xc8))/0x9;if(_0x19e0d0===_0xc508a)break;else _0x1c1c90['push'](_0x1c1c90['shift']());}catch(_0x31847c){_0x1c1c90['push'](_0x1c1c90['shift']());}}}(a110_0x4db4,0xb6931));export const VERSION=a110_0xba8897(0xc1);export const GIT_TAG='v2.0.4-beta.4';function a110_0x4db4(){const _0xf476e3=['18QYCBcy','2026-04-02T07:44:44.617Z','6028325HqbcsY','172049NuFIgn','5964630ZihJZw','26279568ZSAJwx','16079PNxMLl','3992sTERHF','323588narzQb','2f3989a','2.0.4-beta.4','5858468sUpxfg'];a110_0x4db4=function(){return _0xf476e3;};return a110_0x4db4();}export const GIT_COMMIT=a110_0xba8897(0xc0);function a110_0x3406(_0x2481b5,_0x4aa7b7){_0x2481b5=_0x2481b5-0xbf;const _0x4db434=a110_0x4db4();let _0x340684=_0x4db434[_0x2481b5];return _0x340684;}export const BUILD_TIME=a110_0xba8897(0xc4);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x285c00,_0x19f240){var _0x24421e=a111_0x1c1e,_0x352421=_0x285c00();while(!![]){try{var _0x4030dc=parseInt(_0x24421e(0x196))/0x1*(-parseInt(_0x24421e(0x18f))/0x2)+-parseInt(_0x24421e(0x199))/0x3+parseInt(_0x24421e(0x194))/0x4*(-parseInt(_0x24421e(0x19b))/0x5)+parseInt(_0x24421e(0x198))/0x6*(parseInt(_0x24421e(0x190))/0x7)+parseInt(_0x24421e(0x195))/0x8+parseInt(_0x24421e(0x192))/0x9+parseInt(_0x24421e(0x193))/0xa*(parseInt(_0x24421e(0x19c))/0xb);if(_0x4030dc===_0x19f240)break;else _0x352421['push'](_0x352421['shift']());}catch(_0x36514e){_0x352421['push'](_0x352421['shift']());}}}(a111_0x3c25,0xf1edc));import a111_0xcebbf5 from'chalk';function a111_0x1c1e(_0x11e509,_0x2ecf4d){_0x11e509=_0x11e509-0x18c;var _0x3c2578=a111_0x3c25();var _0x1c1eb7=_0x3c2578[_0x11e509];return _0x1c1eb7;}function a111_0x3c25(){var _0x42f8f4=['\x20\x20Rabetbase\x20CLI','3083454xfrLcT','12960jlYsCU','80924GfFgIj','9987144jMBczi','1683637vTmPic','\x20\x20Use\x20','8838gImlyY','1833432vjQEUR','bold','485uagzcc','25927JmBCMv','log','\x20to\x20view\x20available\x20commands.','\x20--help','2BmMWuC','2863sIyyww'];a111_0x3c25=function(){return _0x42f8f4;};return a111_0x3c25();}import{CLI_BIN_NAME}from'./constant/cli.js';export function showHelp(){var _0x5c068b=a111_0x1c1e;console[_0x5c068b(0x18c)](),console['log'](a111_0xcebbf5['green'][_0x5c068b(0x19a)](_0x5c068b(0x191))),console[_0x5c068b(0x18c)](),console[_0x5c068b(0x18c)](_0x5c068b(0x197)+a111_0xcebbf5['green'][_0x5c068b(0x19a)](CLI_BIN_NAME+_0x5c068b(0x18e))+_0x5c068b(0x18d)),console[_0x5c068b(0x18c)]();}
1
+ (function(_0x5a3ad1,_0x7c4b41){var _0x5d49ad=a111_0x4451,_0x3b6473=_0x5a3ad1();while(!![]){try{var _0x44f3fd=-parseInt(_0x5d49ad(0x118))/0x1*(parseInt(_0x5d49ad(0x11b))/0x2)+-parseInt(_0x5d49ad(0x115))/0x3*(parseInt(_0x5d49ad(0x110))/0x4)+parseInt(_0x5d49ad(0x11e))/0x5*(-parseInt(_0x5d49ad(0x112))/0x6)+parseInt(_0x5d49ad(0x11d))/0x7*(parseInt(_0x5d49ad(0x111))/0x8)+parseInt(_0x5d49ad(0x116))/0x9*(parseInt(_0x5d49ad(0x10c))/0xa)+parseInt(_0x5d49ad(0x113))/0xb*(parseInt(_0x5d49ad(0x119))/0xc)+parseInt(_0x5d49ad(0x11a))/0xd*(parseInt(_0x5d49ad(0x10b))/0xe);if(_0x44f3fd===_0x7c4b41)break;else _0x3b6473['push'](_0x3b6473['shift']());}catch(_0x3a3d44){_0x3b6473['push'](_0x3b6473['shift']());}}}(a111_0x4fd5,0x33a97));import a111_0x50b509 from'chalk';function a111_0x4fd5(){var _0x6686a=['5506iJWlEq','\x20--help','38381bFrSKE','191850hxxgwf','bold','572978rlloZi','130SFFRld','green','\x20\x20Rabetbase\x20CLI','log','207188uzmwYN','40WrNDls','42PsyZzR','11biVlmA','\x20to\x20view\x20available\x20commands.','21zvFXSe','155484RjkpWn','\x20\x20Use\x20','1HvLUqC','1719948FqAzJV','143QWuZKK'];a111_0x4fd5=function(){return _0x6686a;};return a111_0x4fd5();}function a111_0x4451(_0x1ff299,_0x4096f0){_0x1ff299=_0x1ff299-0x10b;var _0x4fd536=a111_0x4fd5();var _0x44518a=_0x4fd536[_0x1ff299];return _0x44518a;}import{CLI_BIN_NAME}from'./constant/cli.js';export function showHelp(){var _0x3a361a=a111_0x4451;console['log'](),console[_0x3a361a(0x10f)](a111_0x50b509[_0x3a361a(0x10d)][_0x3a361a(0x11f)](_0x3a361a(0x10e))),console[_0x3a361a(0x10f)](),console[_0x3a361a(0x10f)](_0x3a361a(0x117)+a111_0x50b509[_0x3a361a(0x10d)]['bold'](CLI_BIN_NAME+_0x3a361a(0x11c))+_0x3a361a(0x114)),console[_0x3a361a(0x10f)]();}
package/lib/init/main.js CHANGED
@@ -1 +1 @@
1
- (function(_0x9fa1d,_0x425e93){const _0x3cab8a=a112_0x5b3a,_0x1ba5a7=_0x9fa1d();while(!![]){try{const _0x381ec5=parseInt(_0x3cab8a(0x10b))/0x1+-parseInt(_0x3cab8a(0xfe))/0x2*(-parseInt(_0x3cab8a(0x10c))/0x3)+-parseInt(_0x3cab8a(0xe6))/0x4*(parseInt(_0x3cab8a(0xff))/0x5)+parseInt(_0x3cab8a(0xe9))/0x6+parseInt(_0x3cab8a(0xee))/0x7*(parseInt(_0x3cab8a(0x102))/0x8)+-parseInt(_0x3cab8a(0xef))/0x9*(parseInt(_0x3cab8a(0x100))/0xa)+parseInt(_0x3cab8a(0xf3))/0xb*(-parseInt(_0x3cab8a(0x107))/0xc);if(_0x381ec5===_0x425e93)break;else _0x1ba5a7['push'](_0x1ba5a7['shift']());}catch(_0x340bc8){_0x1ba5a7['push'](_0x1ba5a7['shift']());}}}(a112_0x2613,0xcc6fe));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';function a112_0x2613(){const _0x1db5ae=['bold','production','77kksZLl','1359pNhAXR','从旧配置文件升级成功','\x20→\x20.rabetbase.json','gray','51062tvwrnQ','app','trim','初始化项目配置文件成功','\x20\x20appcode:\x20','../..','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','string','toLocaleString','log','version','3325282warKSW','25BeUrKE','5290LKbBQk','env','601456nRNSUa','utf8','cyan','.bak','green','11076GKWjcj','appcode','parse','✓\x20Upgraded\x20','1348779ECkCvU','3AwTxyG','info','\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','1.0.0','setLogPath','?\x20(Old\x20file\x20→\x20*.bak)','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','126716BFoewW','init','yellow','9130752SWHwWM','Please\x20enter\x20App\x20Code:','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.'];a112_0x2613=function(){return _0x1db5ae;};return a112_0x2613();}import a112_0x3d21f from'chalk';import{input,confirm}from'@inquirer/prompts';import{logger}from'../utils/logger.js';function a112_0x5b3a(_0x7ec977,_0x43ab29){_0x7ec977=_0x7ec977-0xe2;const _0x26138f=a112_0x2613();let _0x5b3aae=_0x26138f[_0x7ec977];return _0x5b3aae;}import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../context.js';import{validateAppcode}from'../commands/common/validate.js';export async function initConfig(_0x2b510b){const _0x4df367=a112_0x5b3a,{appcode:_0x67befe,env:_0xaec433,autoYes:_0x3520e6}=_0x2b510b,_0x557db7=process['cwd']();if(getProjectConfigPath())throw new Error(_0x4df367(0xeb));let _0x252de3;for(const _0xc41d58 of LEGACY_CONFIG_NAMES){const _0x5e07e5=resolve(_0x557db7,_0xc41d58);if(existsSync(_0x5e07e5)){_0x252de3=_0x5e07e5;break;}}if(_0x252de3){let _0x39645d={};try{_0x39645d=JSON[_0x4df367(0x109)](readFileSync(_0x252de3,_0x4df367(0x103)));}catch{}const _0x52a25b=basename(_0x252de3),_0x172638=_0x39645d?.[_0x4df367(0x108)]||_0x39645d?.[_0x4df367(0xf4)];let _0x52ca8a=_0x3520e6;!_0x3520e6&&(console[_0x4df367(0xfc)](a112_0x3d21f[_0x4df367(0xe8)](_0x4df367(0xe5)+a112_0x3d21f[_0x4df367(0xec)](_0x52a25b))),_0x172638&&console['log'](a112_0x3d21f[_0x4df367(0x104)](_0x4df367(0xf7)+_0x172638)),_0x52ca8a=await confirm({'message':'Upgrade\x20it\x20to\x20'+a112_0x3d21f[_0x4df367(0xec)]('.rabetbase.json')+_0x4df367(0xe4),'default':!![]}));if(!_0x52ca8a){console[_0x4df367(0xfc)]('Migration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.');return;}const _0x3e67a2=resolve(_0x557db7,NEW_CONFIG_NAME),_0x20c990=getCliVersionFromPkg(),_0x178c9c=readRawConfig(),_0x5e7d50={..._0x178c9c,..._0x39645d,'version':_0x20c990,'migratedAt':new Date()['toLocaleString'](),'migratedFrom':_0x252de3};if(!_0x5e7d50[_0x4df367(0x108)]&&!_0x5e7d50['app']){if(!_0x67befe){const _0x11400d=await askAppcode();_0x5e7d50[_0x4df367(0x108)]=_0x11400d;}else _0x5e7d50[_0x4df367(0x108)]=_0x67befe;}if(_0x5e7d50[_0x4df367(0x101)]&&typeof _0x5e7d50[_0x4df367(0x101)]!==_0x4df367(0xfa))delete _0x5e7d50[_0x4df367(0x101)];else!_0x5e7d50['env']&&(_0x5e7d50[_0x4df367(0x101)]=_0x178c9c[_0x4df367(0x101)]||_0x4df367(0xed));writeConfigFile(_0x3e67a2,_0x5e7d50);const _0x10f566=_0x252de3+_0x4df367(0x105);renameSync(_0x252de3,_0x10f566),logger[_0x4df367(0xe3)](_0x557db7),logger[_0x4df367(0x10d)](_0x4df367(0xe7),_0x4df367(0xf0),{'from':_0x252de3,'to':_0x3e67a2,'appcode':_0x5e7d50[_0x4df367(0x108)]||_0x5e7d50[_0x4df367(0xf4)],'env':_0x5e7d50[_0x4df367(0x101)]}),console['log'](a112_0x3d21f[_0x4df367(0x106)](_0x4df367(0x10a)+_0x52a25b+_0x4df367(0xf1))),console[_0x4df367(0xfc)](a112_0x3d21f[_0x4df367(0x104)]('\x20\x20AppCode:\x20'+(_0x5e7d50[_0x4df367(0x108)]||_0x5e7d50[_0x4df367(0xf4)]))),console[_0x4df367(0xfc)](a112_0x3d21f[_0x4df367(0xf2)]('\x20\x20Old\x20file\x20backed\x20up\x20as\x20'+_0x52a25b+_0x4df367(0x105)));return;}const _0x3fa791=_0x67befe||await askAppcode(),_0x303441=resolve(_0x557db7,NEW_CONFIG_NAME),_0x3e0765=getCliVersionFromPkg(),_0x2ce140=readRawConfig(),_0x3510e4=typeof _0x2ce140['env']===_0x4df367(0xfa)?_0x2ce140[_0x4df367(0x101)]:undefined,_0x215d69={'version':_0x3e0765,'createdAt':new Date()[_0x4df367(0xfb)](),'appcode':_0x3fa791,'env':_0xaec433||_0x3510e4||_0x4df367(0xed)};writeConfigFile(_0x303441,_0x215d69),logger[_0x4df367(0xe3)](_0x557db7),logger[_0x4df367(0x10d)](_0x4df367(0xe7),_0x4df367(0xf6),{'appcode':_0x215d69[_0x4df367(0x108)],'env':_0x215d69[_0x4df367(0x101)],'version':_0x215d69[_0x4df367(0xfd)],'configPath':_0x303441}),console[_0x4df367(0xfc)](a112_0x3d21f[_0x4df367(0x106)](_0x4df367(0xf9))),console['log'](a112_0x3d21f[_0x4df367(0x104)]('\x20\x20AppCode:\x20'+_0x3fa791)),console['log'](_0x4df367(0x10e));}function askAppcode(){const _0x532ae3=a112_0x5b3a;return input({'message':_0x532ae3(0xea),'validate':_0x52a434=>{const _0x192649=_0x532ae3;if(!_0x52a434[_0x192649(0xf5)]())return'App\x20Code\x20cannot\x20be\x20empty';const {valid:_0x718936,message:_0x45e05a}=validateAppcode(_0x52a434[_0x192649(0xf5)]());return _0x718936||_0x45e05a||'Invalid\x20App\x20Code';}});}function getCliVersionFromPkg(){const _0x4c6392=a112_0x5b3a;try{const _0xf79dfd=fileURLToPath(import.meta.url),_0x54770d=resolve(dirname(_0xf79dfd),_0x4c6392(0xf8)),_0x1d3598=JSON['parse'](readFileSync(resolve(_0x54770d,'package.json'),_0x4c6392(0x103)));return _0x1d3598[_0x4c6392(0xfd)]||_0x4c6392(0xe2);}catch{return _0x4c6392(0xe2);}}
1
+ (function(_0x588afc,_0x324dd3){const _0x2fcd19=a112_0x3e50,_0xe6236d=_0x588afc();while(!![]){try{const _0x20b798=-parseInt(_0x2fcd19(0xd0))/0x1*(parseInt(_0x2fcd19(0xc8))/0x2)+parseInt(_0x2fcd19(0xd5))/0x3*(-parseInt(_0x2fcd19(0xe1))/0x4)+-parseInt(_0x2fcd19(0xcb))/0x5+parseInt(_0x2fcd19(0xdd))/0x6+parseInt(_0x2fcd19(0xdc))/0x7*(-parseInt(_0x2fcd19(0xe7))/0x8)+-parseInt(_0x2fcd19(0xd7))/0x9*(parseInt(_0x2fcd19(0xd4))/0xa)+parseInt(_0x2fcd19(0xe5))/0xb;if(_0x20b798===_0x324dd3)break;else _0xe6236d['push'](_0xe6236d['shift']());}catch(_0x92cfac){_0xe6236d['push'](_0xe6236d['shift']());}}}(a112_0x3a39,0x5623e));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';import a112_0x5c86f6 from'chalk';import{input,confirm}from'@inquirer/prompts';function a112_0x3e50(_0x48252b,_0x34eec0){_0x48252b=_0x48252b-0xc7;const _0x3a39f1=a112_0x3a39();let _0x3e50ac=_0x3a39f1[_0x48252b];return _0x3e50ac;}import{logger}from'../utils/logger.js';function a112_0x3a39(){const _0x3265e6=['utf8','env','17636BgOHzC','\x20\x20AppCode:\x20','info','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','18473708UQQpNF','parse','8oEGuVe','?\x20(Old\x20file\x20→\x20*.bak)','从旧配置文件升级成功','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','version','App\x20Code\x20cannot\x20be\x20empty','Upgrade\x20it\x20to\x20','string','\x20\x20appcode:\x20','log','.bak','Please\x20enter\x20App\x20Code:','appcode','yellow','cwd','toLocaleString','\x20→\x20.rabetbase.json','✓\x20Upgraded\x20','1086yOChxP','\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','package.json','697455xXnGSr','1.0.0','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','.rabetbase.json','init','818frGOvL','../..','gray','setLogPath','20AihqaX','366RlunIH','green','1858392FNazYN','cyan','bold','Migration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','trim','1604526jTmOfq','2622954qYUeYR','app'];a112_0x3a39=function(){return _0x3265e6;};return a112_0x3a39();}import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../context.js';import{validateAppcode}from'../commands/common/validate.js';export async function initConfig(_0x1bd477){const _0x23d04a=a112_0x3e50,{appcode:_0x505f66,env:_0x4f9cd1,autoYes:_0x4f9545}=_0x1bd477,_0x221013=process[_0x23d04a(0xf5)]();if(getProjectConfigPath())throw new Error(_0x23d04a(0xcd));let _0x31d1ec;for(const _0x25513b of LEGACY_CONFIG_NAMES){const _0x306ddb=resolve(_0x221013,_0x25513b);if(existsSync(_0x306ddb)){_0x31d1ec=_0x306ddb;break;}}if(_0x31d1ec){let _0x42e92a={};try{_0x42e92a=JSON[_0x23d04a(0xe6)](readFileSync(_0x31d1ec,_0x23d04a(0xdf)));}catch{}const _0x4227d8=basename(_0x31d1ec),_0x35a9cf=_0x42e92a?.[_0x23d04a(0xf3)]||_0x42e92a?.[_0x23d04a(0xde)];let _0x4c1dc4=_0x4f9545;!_0x4f9545&&(console[_0x23d04a(0xf0)](a112_0x5c86f6[_0x23d04a(0xf4)](_0x23d04a(0xe4)+a112_0x5c86f6[_0x23d04a(0xd9)](_0x4227d8))),_0x35a9cf&&console[_0x23d04a(0xf0)](a112_0x5c86f6[_0x23d04a(0xd8)](_0x23d04a(0xef)+_0x35a9cf)),_0x4c1dc4=await confirm({'message':_0x23d04a(0xed)+a112_0x5c86f6[_0x23d04a(0xd9)](_0x23d04a(0xce))+_0x23d04a(0xe8),'default':!![]}));if(!_0x4c1dc4){console[_0x23d04a(0xf0)](_0x23d04a(0xda));return;}const _0x160119=resolve(_0x221013,NEW_CONFIG_NAME),_0x53be2b=getCliVersionFromPkg(),_0x352cc1=readRawConfig(),_0x263abe={..._0x352cc1,..._0x42e92a,'version':_0x53be2b,'migratedAt':new Date()['toLocaleString'](),'migratedFrom':_0x31d1ec};if(!_0x263abe[_0x23d04a(0xf3)]&&!_0x263abe[_0x23d04a(0xde)]){if(!_0x505f66){const _0x3d93c5=await askAppcode();_0x263abe[_0x23d04a(0xf3)]=_0x3d93c5;}else _0x263abe[_0x23d04a(0xf3)]=_0x505f66;}if(_0x263abe[_0x23d04a(0xe0)]&&typeof _0x263abe[_0x23d04a(0xe0)]!==_0x23d04a(0xee))delete _0x263abe[_0x23d04a(0xe0)];else!_0x263abe[_0x23d04a(0xe0)]&&(_0x263abe[_0x23d04a(0xe0)]=_0x352cc1[_0x23d04a(0xe0)]||'production');writeConfigFile(_0x160119,_0x263abe);const _0x7e2042=_0x31d1ec+_0x23d04a(0xf1);renameSync(_0x31d1ec,_0x7e2042),logger[_0x23d04a(0xd3)](_0x221013),logger[_0x23d04a(0xe3)](_0x23d04a(0xcf),_0x23d04a(0xe9),{'from':_0x31d1ec,'to':_0x160119,'appcode':_0x263abe['appcode']||_0x263abe[_0x23d04a(0xde)],'env':_0x263abe['env']}),console[_0x23d04a(0xf0)](a112_0x5c86f6[_0x23d04a(0xd6)](_0x23d04a(0xc7)+_0x4227d8+_0x23d04a(0xf7))),console[_0x23d04a(0xf0)](a112_0x5c86f6[_0x23d04a(0xd8)](_0x23d04a(0xe2)+(_0x263abe['appcode']||_0x263abe[_0x23d04a(0xde)]))),console['log'](a112_0x5c86f6[_0x23d04a(0xd2)]('\x20\x20Old\x20file\x20backed\x20up\x20as\x20'+_0x4227d8+'.bak'));return;}const _0xdd8809=_0x505f66||await askAppcode(),_0x325975=resolve(_0x221013,NEW_CONFIG_NAME),_0x266c40=getCliVersionFromPkg(),_0x1d4138=readRawConfig(),_0x29fcee=typeof _0x1d4138[_0x23d04a(0xe0)]===_0x23d04a(0xee)?_0x1d4138[_0x23d04a(0xe0)]:undefined,_0xea1c0f={'version':_0x266c40,'createdAt':new Date()[_0x23d04a(0xf6)](),'appcode':_0xdd8809,'env':_0x4f9cd1||_0x29fcee||'production'};writeConfigFile(_0x325975,_0xea1c0f),logger[_0x23d04a(0xd3)](_0x221013),logger[_0x23d04a(0xe3)](_0x23d04a(0xcf),'初始化项目配置文件成功',{'appcode':_0xea1c0f[_0x23d04a(0xf3)],'env':_0xea1c0f[_0x23d04a(0xe0)],'version':_0xea1c0f[_0x23d04a(0xeb)],'configPath':_0x325975}),console[_0x23d04a(0xf0)](a112_0x5c86f6[_0x23d04a(0xd6)](_0x23d04a(0xea))),console['log'](a112_0x5c86f6[_0x23d04a(0xd8)](_0x23d04a(0xe2)+_0xdd8809)),console[_0x23d04a(0xf0)](_0x23d04a(0xc9));}function askAppcode(){const _0x56b7fb=a112_0x3e50;return input({'message':_0x56b7fb(0xf2),'validate':_0x390e2b=>{const _0x25b067=_0x56b7fb;if(!_0x390e2b[_0x25b067(0xdb)]())return _0x25b067(0xec);const {valid:_0x58ab29,message:_0x19cd91}=validateAppcode(_0x390e2b[_0x25b067(0xdb)]());return _0x58ab29||_0x19cd91||'Invalid\x20App\x20Code';}});}function getCliVersionFromPkg(){const _0xc7f34d=a112_0x3e50;try{const _0x163845=fileURLToPath(import.meta.url),_0x4a2347=resolve(dirname(_0x163845),_0xc7f34d(0xd1)),_0x4bcff4=JSON[_0xc7f34d(0xe6)](readFileSync(resolve(_0x4a2347,_0xc7f34d(0xca)),_0xc7f34d(0xdf)));return _0x4bcff4[_0xc7f34d(0xeb)]||'1.0.0';}catch{return _0xc7f34d(0xcc);}}
@@ -1 +1 @@
1
- const a113_0x11b82b=a113_0x2dfd;(function(_0x3bba9e,_0x310c6f){const _0x23e5ca=a113_0x2dfd,_0xc59f7d=_0x3bba9e();while(!![]){try{const _0x2bc413=parseInt(_0x23e5ca(0xe4))/0x1*(-parseInt(_0x23e5ca(0xd6))/0x2)+-parseInt(_0x23e5ca(0xd3))/0x3+-parseInt(_0x23e5ca(0xdb))/0x4+-parseInt(_0x23e5ca(0xde))/0x5+-parseInt(_0x23e5ca(0xd2))/0x6+parseInt(_0x23e5ca(0xed))/0x7*(parseInt(_0x23e5ca(0xee))/0x8)+parseInt(_0x23e5ca(0xd5))/0x9;if(_0x2bc413===_0x310c6f)break;else _0xc59f7d['push'](_0xc59f7d['shift']());}catch(_0x518eb6){_0xc59f7d['push'](_0xc59f7d['shift']());}}}(a113_0x419f,0x3a0b2));import{logger}from'../utils/logger.js';export function camelCaseFlagsToKebab(_0x3f3c53){const _0x204851=a113_0x2dfd,_0x3a0ec3=[];for(const [_0x2a809c,_0x2c6cc5]of Object[_0x204851(0xe2)](_0x3f3c53)){if(_0x2c6cc5===!![]){const _0x32cc07=_0x2a809c[_0x204851(0xf0)](/([A-Z])/g,'-$1')[_0x204851(0xf2)]();_0x3a0ec3[_0x204851(0xe8)](_0x32cc07);}}return _0x3a0ec3;}export function parseDynamicFlags(){const _0x15f057=a113_0x2dfd,_0x302321=[];for(let _0x1922fa=0x3;_0x1922fa<process[_0x15f057(0xe7)][_0x15f057(0xd4)];_0x1922fa++){const _0x31006f=process['argv'][_0x1922fa];if(_0x31006f&&_0x31006f['startsWith']('--')){const _0x3b3714=_0x31006f[_0x15f057(0xda)](0x2);_0x3b3714&&!_0x3b3714[_0x15f057(0xdd)]('=')&&_0x302321['push'](_0x3b3714);}}return _0x302321;}export function getAllProvidedFlags(_0x57d713){const _0x568dc4=a113_0x2dfd,_0x20f079=camelCaseFlagsToKebab(_0x57d713),_0x5a0b6a=parseDynamicFlags(),_0x1fa1c1=new Set([..._0x20f079,..._0x5a0b6a]);return Array[_0x568dc4(0xf4)](_0x1fa1c1);}function a113_0x2dfd(_0x53810f,_0x1d3019){_0x53810f=_0x53810f-0xd2;const _0x419fe6=a113_0x419f();let _0x2dfd1f=_0x419fe6[_0x53810f];return _0x2dfd1f;}function a113_0x419f(){const _0x407dd3=['1122655YcEmIW','Error:\x20Unsupported\x20command:\x20','has','enable-bff-save','entries','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','348847PvslRf','dangerously-bff-save','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20rabetbase\x20skill\x20--help\x0a\x20\x20rabetbase\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','argv','push','\x20\x20rabetbase\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','--help','Equivalent\x20command:\x20','help','1952111vmxBKv','8wFAcKi','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','replace','log','toLowerCase','(empty)','from','\x20\x20rabetbase\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','322914brjIgQ','1026474bwJPxP','length','9427464YPsjpu','2negZhV','skill','setLogPath','error','slice','477072NJonTw','exit','includes'];a113_0x419f=function(){return _0x407dd3;};return a113_0x419f();}export function normalizeLegacyBffSaveFlags(_0x171c9a){const _0x57f88f=a113_0x2dfd,_0x73ba63=new Set(_0x171c9a);return _0x73ba63[_0x57f88f(0xe0)](_0x57f88f(0xe5))&&_0x73ba63['add'](_0x57f88f(0xe1)),Array[_0x57f88f(0xf4)](_0x73ba63);}const SKILLS_INSTALL_COMMAND_LINE=a113_0x11b82b(0xe3);export async function skillsCommand(_0x233da9,_0x41ffb6,_0xe17ef6){const _0x988117=a113_0x11b82b;logger[_0x988117(0xd8)](process['cwd']());if(_0xe17ef6?.[_0x988117(0xec)]||_0x233da9===_0x988117(0xea)){showHelp();return;}console[_0x988117(0xd9)](_0x988117(0xdf)+(_0x233da9||_0x988117(0xf3))),console[_0x988117(0xf1)]('\x0aAvailable\x20commands:'),console[_0x988117(0xf1)](_0x988117(0xf5)),console['log'](_0x988117(0xe9)),console[_0x988117(0xf1)](''),console[_0x988117(0xf1)](_0x988117(0xeb)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x988117(0xd9)](_0x988117(0xd7),'不支持的命令:\x20'+_0x233da9),process[_0x988117(0xdc)](0x1);}function showHelp(){const _0x2156f6=a113_0x11b82b;console[_0x2156f6(0xf1)](_0x2156f6(0xe6)+SKILLS_INSTALL_COMMAND_LINE+_0x2156f6(0xef));}
1
+ (function(_0x37c53d,_0x28c12a){const _0x4ee683=a113_0x281f,_0x1f1eb9=_0x37c53d();while(!![]){try{const _0x1d4d18=-parseInt(_0x4ee683(0x155))/0x1+parseInt(_0x4ee683(0x150))/0x2*(parseInt(_0x4ee683(0x14f))/0x3)+parseInt(_0x4ee683(0x143))/0x4*(parseInt(_0x4ee683(0x147))/0x5)+parseInt(_0x4ee683(0x158))/0x6*(-parseInt(_0x4ee683(0x159))/0x7)+-parseInt(_0x4ee683(0x15f))/0x8*(parseInt(_0x4ee683(0x15c))/0x9)+-parseInt(_0x4ee683(0x156))/0xa*(parseInt(_0x4ee683(0x145))/0xb)+-parseInt(_0x4ee683(0x153))/0xc*(-parseInt(_0x4ee683(0x14b))/0xd);if(_0x1d4d18===_0x28c12a)break;else _0x1f1eb9['push'](_0x1f1eb9['shift']());}catch(_0x81c746){_0x1f1eb9['push'](_0x1f1eb9['shift']());}}}(a113_0x9673,0x52816));import{logger}from'../utils/logger.js';function a113_0x9673(){const _0x3db5d1=['112rWHeJr','entries','1229789FSmfLI','push','27220bOcdMl','help','error','argv','221zXtRYN','-$1','(empty)','replace','590517LICXgs','2BDlCJB','log','length','448284vPJNmy','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','100040DkykRu','30UNyLTS','startsWith','87684GQgLwd','7pwXEbH','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20rabetbase\x20skill\x20--help\x0a\x20\x20rabetbase\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','enable-bff-save','27sqWEyR','from','dangerously-bff-save','523592RXcGnj','\x20\x20rabetbase\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','skill','--help','Equivalent\x20command:\x20','has','cwd','slice'];a113_0x9673=function(){return _0x3db5d1;};return a113_0x9673();}export function camelCaseFlagsToKebab(_0x181cea){const _0x4941c5=a113_0x281f,_0x2fbd04=[];for(const [_0x2f5280,_0x5cb3df]of Object[_0x4941c5(0x144)](_0x181cea)){if(_0x5cb3df===!![]){const _0xce2046=_0x2f5280[_0x4941c5(0x14e)](/([A-Z])/g,_0x4941c5(0x14c))['toLowerCase']();_0x2fbd04[_0x4941c5(0x146)](_0xce2046);}}return _0x2fbd04;}export function parseDynamicFlags(){const _0x76d4e=a113_0x281f,_0x23513d=[];for(let _0x15ef04=0x3;_0x15ef04<process[_0x76d4e(0x14a)][_0x76d4e(0x152)];_0x15ef04++){const _0x121224=process[_0x76d4e(0x14a)][_0x15ef04];if(_0x121224&&_0x121224[_0x76d4e(0x157)]('--')){const _0x30360e=_0x121224[_0x76d4e(0x142)](0x2);_0x30360e&&!_0x30360e['includes']('=')&&_0x23513d[_0x76d4e(0x146)](_0x30360e);}}return _0x23513d;}export function getAllProvidedFlags(_0x4f3ad4){const _0x36ce4d=a113_0x281f,_0x5c19d1=camelCaseFlagsToKebab(_0x4f3ad4),_0x25826e=parseDynamicFlags(),_0x84fee8=new Set([..._0x5c19d1,..._0x25826e]);return Array[_0x36ce4d(0x15d)](_0x84fee8);}export function normalizeLegacyBffSaveFlags(_0x2e2687){const _0x5ba168=a113_0x281f,_0x43825b=new Set(_0x2e2687);return _0x43825b[_0x5ba168(0x164)](_0x5ba168(0x15e))&&_0x43825b['add'](_0x5ba168(0x15b)),Array[_0x5ba168(0x15d)](_0x43825b);}function a113_0x281f(_0x3fc4fd,_0x3547e8){_0x3fc4fd=_0x3fc4fd-0x141;const _0x967370=a113_0x9673();let _0x281fab=_0x967370[_0x3fc4fd];return _0x281fab;}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x299312,_0x393759,_0xe215c9){const _0x195111=a113_0x281f;logger['setLogPath'](process[_0x195111(0x141)]());if(_0xe215c9?.[_0x195111(0x148)]||_0x299312===_0x195111(0x162)){showHelp();return;}console[_0x195111(0x149)]('Error:\x20Unsupported\x20command:\x20'+(_0x299312||_0x195111(0x14d))),console['log']('\x0aAvailable\x20commands:'),console[_0x195111(0x151)]('\x20\x20rabetbase\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console['log'](_0x195111(0x160)),console[_0x195111(0x151)](''),console[_0x195111(0x151)](_0x195111(0x163)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x195111(0x149)](_0x195111(0x161),'不支持的命令:\x20'+_0x299312),process['exit'](0x1);}function showHelp(){const _0x28c294=a113_0x281f;console[_0x28c294(0x151)](_0x28c294(0x15a)+SKILLS_INSTALL_COMMAND_LINE+_0x28c294(0x154));}
@@ -1 +1 @@
1
- const a114_0x513bbf=a114_0x272e;(function(_0x52cc9c,_0x6f3229){const _0xa240df=a114_0x272e,_0x5adb27=_0x52cc9c();while(!![]){try{const _0x1c8bdc=parseInt(_0xa240df(0x18d))/0x1+-parseInt(_0xa240df(0x18f))/0x2*(-parseInt(_0xa240df(0x18a))/0x3)+parseInt(_0xa240df(0x18c))/0x4*(parseInt(_0xa240df(0x19b))/0x5)+-parseInt(_0xa240df(0x19c))/0x6+parseInt(_0xa240df(0x185))/0x7*(-parseInt(_0xa240df(0x18e))/0x8)+-parseInt(_0xa240df(0x183))/0x9*(parseInt(_0xa240df(0x192))/0xa)+parseInt(_0xa240df(0x190))/0xb;if(_0x1c8bdc===_0x6f3229)break;else _0x5adb27['push'](_0x5adb27['shift']());}catch(_0x47c87c){_0x5adb27['push'](_0x5adb27['shift']());}}}(a114_0x3671,0xb876b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a114_0x272e(_0x2d3349,_0x1a5c60){_0x2d3349=_0x2d3349-0x181;const _0x36713a=a114_0x3671();let _0x272ed1=_0x36713a[_0x2d3349];return _0x272ed1;}function a114_0x3671(){const _0x5a9f0a=['trim','inherit','unknown','--skill','log','status','npx','705RtGJLB','8545668ZVzxCJ','toString','skill','17217pDJUTr','pipe','41797ySLdLI','join','lovrabet/lovrabet-skill','remove','stdio','15ViVQPl','stderr','7076tYthnh','1184887sfBEVe','376qMEhqX','323356xAvQcI','10328703eBPeXO','stdout','3770KwhPSu','exit\x20'];a114_0x3671=function(){return _0x5a9f0a;};return a114_0x3671();}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a114_0x513bbf(0x197);export const RABETBASE_SKILL_SOURCE=a114_0x513bbf(0x187);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x17cd09=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x17cd09];}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a114_0x513bbf(0x186)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x55ed03,_0x59ab23){const _0x36f10e=a114_0x513bbf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x201747=_0x59ab23?.[_0x36f10e(0x189)]??'inherit',_0x18dd93=resolveNpmBin(_0x36f10e(0x19a)),_0x33b2e3=buildNpxSkillsAddArgv(_0x59ab23?.[_0x36f10e(0x182)]??DEFAULT_RABETBASE_SKILL_NAME),_0x3fe48f=[_0x18dd93,..._0x33b2e3][_0x36f10e(0x186)]('\x20');console[_0x36f10e(0x198)]('*\x20'+_0x3fe48f);const _0x11a85f=spawnSync(_0x18dd93,_0x33b2e3,{'cwd':_0x55ed03,'stdio':_0x201747,'env':process.env,'shell':![]}),_0x3ea062=_0x11a85f[_0x36f10e(0x199)];if(_0x3ea062===0x0)return{'ok':!![],'status':0x0};let _0x13cad7=_0x36f10e(0x193)+(_0x3ea062??_0x36f10e(0x196));if(_0x201747===_0x36f10e(0x184)){const _0x4ce281=_0x11a85f[_0x36f10e(0x18b)]?_0x11a85f[_0x36f10e(0x18b)][_0x36f10e(0x181)]()[_0x36f10e(0x194)]():'',_0x4a6e5e=_0x11a85f[_0x36f10e(0x191)]?_0x11a85f[_0x36f10e(0x191)][_0x36f10e(0x181)]()[_0x36f10e(0x194)]():'';if(_0x4ce281)_0x13cad7=_0x4ce281;else{if(_0x4a6e5e)_0x13cad7=_0x4a6e5e;}}return{'ok':![],'status':_0x3ea062??null,'error':_0x13cad7};}export function runNpxSkillsRemove(_0x11c468,_0x52b198){const _0x2146d0=a114_0x513bbf,_0x24866c=_0x52b198?.['stdio']??_0x2146d0(0x195),_0x3a9753=resolveNpmBin(_0x2146d0(0x19a)),_0x4db2f1=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2146d0(0x188),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x52b198?.[_0x2146d0(0x182)]??DEFAULT_RABETBASE_SKILL_NAME],_0x4da9b2=[_0x3a9753,..._0x4db2f1][_0x2146d0(0x186)]('\x20');console['log']('*\x20'+_0x4da9b2);const _0x10d82f=spawnSync(_0x3a9753,_0x4db2f1,{'cwd':_0x11c468,'stdio':_0x24866c,'env':process.env,'shell':![]}),_0xf0f23=_0x10d82f[_0x2146d0(0x199)];if(_0xf0f23===0x0)return{'ok':!![],'status':0x0};let _0x1529a2='exit\x20'+(_0xf0f23??_0x2146d0(0x196));if(_0x24866c==='pipe'){const _0x5ea52a=_0x10d82f[_0x2146d0(0x18b)]?_0x10d82f[_0x2146d0(0x18b)][_0x2146d0(0x181)]()['trim']():'',_0x44fbb6=_0x10d82f[_0x2146d0(0x191)]?_0x10d82f[_0x2146d0(0x191)][_0x2146d0(0x181)]()[_0x2146d0(0x194)]():'';if(_0x5ea52a)_0x1529a2=_0x5ea52a;else{if(_0x44fbb6)_0x1529a2=_0x44fbb6;}}return{'ok':![],'status':_0xf0f23??null,'error':_0x1529a2};}export function runNpxSkillsAddGlobal(_0x497bbc,_0x505fc6,_0xeaa934){const _0x366f8c=a114_0x513bbf,_0x3cdf89=_0xeaa934?.[_0x366f8c(0x189)]??'inherit',_0x5d50fe=resolveNpmBin('npx'),_0x14dac2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x505fc6,'--global'],_0x3fc4cf=[_0x5d50fe,..._0x14dac2][_0x366f8c(0x186)]('\x20');console[_0x366f8c(0x198)]('*\x20'+_0x3fc4cf);const _0x537397=spawnSync(_0x5d50fe,_0x14dac2,{'cwd':_0x497bbc,'stdio':_0x3cdf89,'env':process.env,'shell':![]}),_0xd91cf5=_0x537397['status'];if(_0xd91cf5===0x0)return{'ok':!![],'status':0x0};let _0x2335f4=_0x366f8c(0x193)+(_0xd91cf5??_0x366f8c(0x196));if(_0x3cdf89==='pipe'){const _0xfeb3d1=_0x537397[_0x366f8c(0x18b)]?_0x537397[_0x366f8c(0x18b)][_0x366f8c(0x181)]()[_0x366f8c(0x194)]():'',_0x5bde62=_0x537397[_0x366f8c(0x191)]?_0x537397[_0x366f8c(0x191)][_0x366f8c(0x181)]()[_0x366f8c(0x194)]():'';if(_0xfeb3d1)_0x2335f4=_0xfeb3d1;else{if(_0x5bde62)_0x2335f4=_0x5bde62;}}return{'ok':![],'status':_0xd91cf5??null,'error':_0x2335f4};}
1
+ const a114_0x46bc9e=a114_0x564d;(function(_0x427c7f,_0x4cf5ff){const _0x540d7c=a114_0x564d,_0x2db1da=_0x427c7f();while(!![]){try{const _0x14b3e2=-parseInt(_0x540d7c(0xde))/0x1+parseInt(_0x540d7c(0xc5))/0x2*(-parseInt(_0x540d7c(0xd6))/0x3)+parseInt(_0x540d7c(0xdd))/0x4+parseInt(_0x540d7c(0xc7))/0x5*(-parseInt(_0x540d7c(0xd5))/0x6)+parseInt(_0x540d7c(0xd4))/0x7+parseInt(_0x540d7c(0xc4))/0x8+parseInt(_0x540d7c(0xc6))/0x9;if(_0x14b3e2===_0x4cf5ff)break;else _0x2db1da['push'](_0x2db1da['shift']());}catch(_0x591b62){_0x2db1da['push'](_0x2db1da['shift']());}}}(a114_0x102f,0x5865f));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a114_0x46bc9e(0xce);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a114_0x46bc9e(0xdb);export const RABETBASE_SKILL_SOURCE=a114_0x46bc9e(0xd7);export const DEFAULT_RABETBASE_SKILL_NAME=a114_0x46bc9e(0xcd);export function buildNpxSkillsAddArgv(_0x28ba55=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x28ba55];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a114_0x46bc9e(0xd8),...buildNpxSkillsAddArgv()][a114_0x46bc9e(0xcf)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5bc070,_0x214523){const _0x17a7b7=a114_0x46bc9e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d7be3=_0x214523?.[_0x17a7b7(0xca)]??'inherit',_0x4b8dff=resolveNpmBin('npx'),_0xe73290=buildNpxSkillsAddArgv(_0x214523?.[_0x17a7b7(0xd0)]??DEFAULT_RABETBASE_SKILL_NAME),_0x236ff5=[_0x4b8dff,..._0xe73290][_0x17a7b7(0xcf)]('\x20');console[_0x17a7b7(0xc8)]('*\x20'+_0x236ff5);const _0x15e3d6=spawnSync(_0x4b8dff,_0xe73290,{'cwd':_0x5bc070,'stdio':_0x1d7be3,'env':process.env,'shell':![]}),_0xb739f0=_0x15e3d6[_0x17a7b7(0xcc)];if(_0xb739f0===0x0)return{'ok':!![],'status':0x0};let _0x498fde=_0x17a7b7(0xc9)+(_0xb739f0??_0x17a7b7(0xd9));if(_0x1d7be3===_0x17a7b7(0xdc)){const _0x23ab03=_0x15e3d6[_0x17a7b7(0xd3)]?_0x15e3d6[_0x17a7b7(0xd3)]['toString']()[_0x17a7b7(0xd1)]():'',_0x2ebdac=_0x15e3d6['stdout']?_0x15e3d6[_0x17a7b7(0xda)][_0x17a7b7(0xd2)]()[_0x17a7b7(0xd1)]():'';if(_0x23ab03)_0x498fde=_0x23ab03;else{if(_0x2ebdac)_0x498fde=_0x2ebdac;}}return{'ok':![],'status':_0xb739f0??null,'error':_0x498fde};}function a114_0x102f(){const _0x2bb5d1=['skill','trim','toString','stderr','2400846Sqjaoc','4057554xLitiO','809427PKISbb','lovrabet/lovrabet-skill','npx','unknown','stdout','--skill','pipe','1868592fcWvmI','709417VUfxGE','78568DfNGQR','2mSmuBR','10778553jkNhsr','5OhhKlA','log','exit\x20','stdio','inherit','status','Lovrabet','skills','join'];a114_0x102f=function(){return _0x2bb5d1;};return a114_0x102f();}export function runNpxSkillsRemove(_0xed7dc4,_0xd0a8c3){const _0x216a44=a114_0x46bc9e,_0x1bc789=_0xd0a8c3?.[_0x216a44(0xca)]??'inherit',_0x448ae8=resolveNpmBin('npx'),_0x464c5a=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0xd0a8c3?.[_0x216a44(0xd0)]??DEFAULT_RABETBASE_SKILL_NAME],_0x254628=[_0x448ae8,..._0x464c5a][_0x216a44(0xcf)]('\x20');console[_0x216a44(0xc8)]('*\x20'+_0x254628);const _0x3dfb3c=spawnSync(_0x448ae8,_0x464c5a,{'cwd':_0xed7dc4,'stdio':_0x1bc789,'env':process.env,'shell':![]}),_0x1c473b=_0x3dfb3c[_0x216a44(0xcc)];if(_0x1c473b===0x0)return{'ok':!![],'status':0x0};let _0xc2e633=_0x216a44(0xc9)+(_0x1c473b??_0x216a44(0xd9));if(_0x1bc789===_0x216a44(0xdc)){const _0x3b9898=_0x3dfb3c['stderr']?_0x3dfb3c[_0x216a44(0xd3)]['toString']()[_0x216a44(0xd1)]():'',_0x5bbc7f=_0x3dfb3c[_0x216a44(0xda)]?_0x3dfb3c[_0x216a44(0xda)]['toString']()[_0x216a44(0xd1)]():'';if(_0x3b9898)_0xc2e633=_0x3b9898;else{if(_0x5bbc7f)_0xc2e633=_0x5bbc7f;}}return{'ok':![],'status':_0x1c473b??null,'error':_0xc2e633};}function a114_0x564d(_0x141601,_0xc54300){_0x141601=_0x141601-0xc4;const _0x102f91=a114_0x102f();let _0x564dfa=_0x102f91[_0x141601];return _0x564dfa;}export function runNpxSkillsAddGlobal(_0xb705a7,_0x4a6fc5,_0x2046f1){const _0x136db1=a114_0x46bc9e,_0x51813f=_0x2046f1?.[_0x136db1(0xca)]??_0x136db1(0xcb),_0x3798ff=resolveNpmBin(_0x136db1(0xd8)),_0x8fc410=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4a6fc5,'--global'],_0x520fad=[_0x3798ff,..._0x8fc410][_0x136db1(0xcf)]('\x20');console[_0x136db1(0xc8)]('*\x20'+_0x520fad);const _0x1e1f44=spawnSync(_0x3798ff,_0x8fc410,{'cwd':_0xb705a7,'stdio':_0x51813f,'env':process.env,'shell':![]}),_0x2321c=_0x1e1f44[_0x136db1(0xcc)];if(_0x2321c===0x0)return{'ok':!![],'status':0x0};let _0x147cd2=_0x136db1(0xc9)+(_0x2321c??_0x136db1(0xd9));if(_0x51813f==='pipe'){const _0x2171e1=_0x1e1f44['stderr']?_0x1e1f44[_0x136db1(0xd3)][_0x136db1(0xd2)]()[_0x136db1(0xd1)]():'',_0x1a71ae=_0x1e1f44['stdout']?_0x1e1f44[_0x136db1(0xda)][_0x136db1(0xd2)]()[_0x136db1(0xd1)]():'';if(_0x2171e1)_0x147cd2=_0x2171e1;else{if(_0x1a71ae)_0x147cd2=_0x1a71ae;}}return{'ok':![],'status':_0x2321c??null,'error':_0x147cd2};}