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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/lib/ai-setup/config.js +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -0
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/doc.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/app.js +1 -1
  19. package/lib/commands/auth.js +1 -1
  20. package/lib/commands/bff/delete.js +1 -1
  21. package/lib/commands/bff/detail.js +1 -1
  22. package/lib/commands/bff/index.js +1 -1
  23. package/lib/commands/bff/list.js +1 -1
  24. package/lib/commands/bff/new.js +1 -1
  25. package/lib/commands/bff/pull.js +1 -1
  26. package/lib/commands/bff/push.js +1 -1
  27. package/lib/commands/bff/status.js +1 -1
  28. package/lib/commands/build.js +1 -1
  29. package/lib/commands/cli-update.js +1 -1
  30. package/lib/commands/codegen/index.js +1 -1
  31. package/lib/commands/codegen/sdk.js +1 -1
  32. package/lib/commands/codegen/sql.js +1 -1
  33. package/lib/commands/common/flags.js +1 -1
  34. package/lib/commands/config.js +1 -1
  35. package/lib/commands/create.js +1 -1
  36. package/lib/commands/dataset/detail.js +1 -1
  37. package/lib/commands/dataset/index.js +1 -1
  38. package/lib/commands/dataset/links.js +1 -1
  39. package/lib/commands/dataset/list.js +1 -1
  40. package/lib/commands/dataset/operations.js +1 -1
  41. package/lib/commands/doctor.js +1 -1
  42. package/lib/commands/init.js +1 -1
  43. package/lib/commands/logout.js +1 -1
  44. package/lib/commands/logs.js +1 -1
  45. package/lib/commands/mcp.js +1 -1
  46. package/lib/commands/menu/index.js +1 -1
  47. package/lib/commands/menu/shared/compare-table.js +1 -1
  48. package/lib/commands/menu/shared/index.js +1 -1
  49. package/lib/commands/menu/shared/inquirer.js +1 -1
  50. package/lib/commands/menu/shared/local-pages.js +1 -1
  51. package/lib/commands/menu/shared/logic.js +1 -1
  52. package/lib/commands/menu/shared/service.js +1 -1
  53. package/lib/commands/menu/shared/sync-core.js +1 -1
  54. package/lib/commands/menu/shared/update-core.js +1 -1
  55. package/lib/commands/menu/shared/valid-url.js +1 -1
  56. package/lib/commands/menu/sync.js +1 -1
  57. package/lib/commands/menu/update.js +1 -1
  58. package/lib/commands/preview.js +1 -1
  59. package/lib/commands/project-upgrade.js +1 -1
  60. package/lib/commands/registry.js +1 -1
  61. package/lib/commands/run.js +1 -1
  62. package/lib/commands/skill.js +1 -1
  63. package/lib/commands/sql/detail.js +1 -1
  64. package/lib/commands/sql/exec.js +1 -1
  65. package/lib/commands/sql/index.js +1 -1
  66. package/lib/commands/sql/list.js +1 -1
  67. package/lib/commands/sql/save.js +1 -1
  68. package/lib/commands/sql/validate.js +1 -1
  69. package/lib/commands/start.js +1 -1
  70. package/lib/config/config-help.js +1 -1
  71. package/lib/config/main.js +1 -1
  72. package/lib/constant/cli.js +1 -1
  73. package/lib/constant/domain.js +1 -1
  74. package/lib/constant/env.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/alias-resolver.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/bff/config.js +1 -1
  79. package/lib/core/bff/file-system.js +1 -1
  80. package/lib/core/bff/hash.js +1 -1
  81. package/lib/core/bff/lock.js +1 -1
  82. package/lib/core/bff/utils.js +1 -1
  83. package/lib/core/db-resolver.js +1 -1
  84. package/lib/core/sql-validator.js +1 -1
  85. package/lib/create-app/enhanced-guided-create.js +1 -1
  86. package/lib/create-app/format-elapsed.js +1 -1
  87. package/lib/create-app/main.js +1 -1
  88. package/lib/create-app/non-interactive.js +1 -1
  89. package/lib/create-app/task-finished.js +1 -1
  90. package/lib/create-app/task-loading.js +1 -1
  91. package/lib/create-app/task-running.js +1 -1
  92. package/lib/create-app/task-time.js +1 -1
  93. package/lib/create-app/use-copy-project-template.js +1 -1
  94. package/lib/create-app/use-format-code.js +1 -1
  95. package/lib/create-app/use-install-dependencies.js +1 -1
  96. package/lib/errors.js +1 -1
  97. package/lib/framework/flags.js +1 -1
  98. package/lib/framework/help.js +1 -1
  99. package/lib/framework/index.js +1 -1
  100. package/lib/framework/output.js +1 -1
  101. package/lib/framework/response.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/generated/build-info.js +1 -1
  104. package/lib/help.js +1 -1
  105. package/lib/init/main.js +1 -1
  106. package/lib/mcp/McpInstallUI.js +1 -1
  107. package/lib/mcp/claude.js +1 -1
  108. package/lib/mcp/cursor.js +1 -1
  109. package/lib/mcp/main.js +1 -1
  110. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  111. package/lib/mcp/mcp-installer.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -0
  115. package/lib/telemetry/otel-logger-version.js +1 -0
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -0
  117. package/lib/ui/IDESelector.js +1 -1
  118. package/lib/ui/useIDESelection.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/cdn-config.js +1 -1
  121. package/lib/utils/check-sdk-version.js +1 -1
  122. package/lib/utils/cli-version-check.js +1 -1
  123. package/lib/utils/config.js +1 -1
  124. package/lib/utils/copy-directory.js +1 -1
  125. package/lib/utils/file-utils.js +1 -1
  126. package/lib/utils/guides-cdn.js +1 -1
  127. package/lib/utils/http-client.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/rules-cdn.js +1 -1
  130. package/lib/utils/sleep.js +1 -1
  131. package/lib/utils/template-replacer.js +1 -1
  132. package/package.json +2 -1
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a96_0x15125f=a96_0x4d1a;(function(_0x5e1d62,_0x563a78){const _0x4585b3=a96_0x4d1a,_0x26e762=_0x5e1d62();while(!![]){try{const _0x5719c1=parseInt(_0x4585b3(0xc0))/0x1*(parseInt(_0x4585b3(0xc8))/0x2)+parseInt(_0x4585b3(0xc4))/0x3+parseInt(_0x4585b3(0xba))/0x4*(parseInt(_0x4585b3(0xc9))/0x5)+-parseInt(_0x4585b3(0xb9))/0x6*(-parseInt(_0x4585b3(0xc7))/0x7)+-parseInt(_0x4585b3(0xb0))/0x8+-parseInt(_0x4585b3(0xaa))/0x9*(parseInt(_0x4585b3(0xbf))/0xa)+parseInt(_0x4585b3(0xb7))/0xb*(-parseInt(_0x4585b3(0xb2))/0xc);if(_0x5719c1===_0x563a78)break;else _0x26e762['push'](_0x26e762['shift']());}catch(_0x1f1c3d){_0x26e762['push'](_0x26e762['shift']());}}}(a96_0x1b47,0x580a3));function a96_0x1b47(){const _0x2bbcac=['50006viyBuD','not_in_project','373638HyAHXy','400uBEFvt','cancelled','config_missing','validation_error','Missing\x20required\x20flag:\x20--','2260OJNsbU','1ChrKWi','flag_missing','Unknown\x20command:\x20','Not\x20in\x20a\x20','1390020rjgaKl','\x20auth`\x20to\x20login\x20first.','api_error','63ldjaTd','1215050PaPhuS','23605sgTLSI','Configuration\x20file\x20not\x20found','21996emDBAs','name','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','hint','Operation\x20cancelled.','\x20init`\x20to\x20create\x20a\x20config\x20file.','5632360SsMmMz','Network\x20error:\x20','1284BxDIxF','Run\x20`','\x20--help`\x20to\x20see\x20available\x20commands.','code','exitCode'];a96_0x1b47=function(){return _0x2bbcac;};return a96_0x1b47();}import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a96_0x15125f(0xb5)];[a96_0x15125f(0xb6)];[a96_0x15125f(0xad)];constructor(_0x214539,_0x4d2eee,_0x2e9e3b,_0x351b78){const _0x3c2438=a96_0x15125f;super(_0x2e9e3b),this[_0x3c2438(0xab)]='CliError',this['code']=_0x214539,this[_0x3c2438(0xb6)]=_0x4d2eee,this[_0x3c2438(0xad)]=_0x351b78;}}function a96_0x4d1a(_0x80fcb7,_0x5312a4){_0x80fcb7=_0x80fcb7-0xa9;const _0x1b47fa=a96_0x1b47();let _0x4d1aa8=_0x1b47fa[_0x80fcb7];return _0x4d1aa8;}export const CliErrors={'authRequired':_0x425323=>new CliError('auth_required',0x1,'Authentication\x20required',_0x425323??'Run\x20`'+CLI_BIN_NAME+a96_0x15125f(0xc5)),'configMissing':_0x36b0fc=>new CliError(a96_0x15125f(0xbc),0x1,a96_0x15125f(0xa9),_0x36b0fc??a96_0x15125f(0xb3)+CLI_BIN_NAME+a96_0x15125f(0xaf)),'notInProject':()=>new CliError(a96_0x15125f(0xb8),0x1,a96_0x15125f(0xc3)+CLI_BIN_NAME+'\x20project\x20directory',a96_0x15125f(0xac)),'apiError':(_0x408d37,_0x462e66)=>new CliError(a96_0x15125f(0xc6),0x2,_0x408d37,_0x462e66),'networkError':_0x3a721c=>new CliError('network_error',0x2,a96_0x15125f(0xb1)+_0x3a721c,'Check\x20your\x20internet\x20connection\x20and\x20try\x20again.'),'unknownCommand':_0x1e1e2f=>new CliError('unknown_command',0x1,a96_0x15125f(0xc2)+_0x1e1e2f,a96_0x15125f(0xb3)+CLI_BIN_NAME+a96_0x15125f(0xb4)),'flagMissing':(_0x2af9ad,_0x4b4250)=>new CliError(a96_0x15125f(0xc1),0x1,a96_0x15125f(0xbe)+_0x2af9ad,_0x4b4250),'validation':(_0x505e35,_0x2c1bc4)=>new CliError(a96_0x15125f(0xbd),0x1,_0x505e35,_0x2c1bc4),'cancelled':_0xa32287=>new CliError(a96_0x15125f(0xbb),0x0,_0xa32287??a96_0x15125f(0xae),undefined)};
1
+ function a97_0x2566(_0x105b38,_0x4ab910){_0x105b38=_0x105b38-0x124;const _0x292117=a97_0x2921();let _0x25669a=_0x292117[_0x105b38];return _0x25669a;}const a97_0x22e578=a97_0x2566;(function(_0x3f1907,_0x361c1d){const _0x5f190c=a97_0x2566,_0x2a14dd=_0x3f1907();while(!![]){try{const _0x24c285=-parseInt(_0x5f190c(0x133))/0x1+-parseInt(_0x5f190c(0x128))/0x2+-parseInt(_0x5f190c(0x137))/0x3*(-parseInt(_0x5f190c(0x12c))/0x4)+parseInt(_0x5f190c(0x126))/0x5*(-parseInt(_0x5f190c(0x12d))/0x6)+-parseInt(_0x5f190c(0x12e))/0x7+-parseInt(_0x5f190c(0x13a))/0x8*(parseInt(_0x5f190c(0x132))/0x9)+parseInt(_0x5f190c(0x135))/0xa;if(_0x24c285===_0x361c1d)break;else _0x2a14dd['push'](_0x2a14dd['shift']());}catch(_0x22d79c){_0x2a14dd['push'](_0x2a14dd['shift']());}}}(a97_0x2921,0xddcc8));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a97_0x22e578(0x13e)];['exitCode'];[a97_0x22e578(0x13f)];constructor(_0x1254ae,_0x37d939,_0x24b289,_0x18db78){const _0x27fa22=a97_0x22e578;super(_0x24b289),this[_0x27fa22(0x138)]='CliError',this['code']=_0x1254ae,this['exitCode']=_0x37d939,this[_0x27fa22(0x13f)]=_0x18db78;}}function a97_0x2921(){const _0x3acc81=['api_error','1859856alCBgy','validation_error','Run\x20`','config_missing','1100wkiGcP','6lDsgbV','8002757IAQYWj','cancelled','Not\x20in\x20a\x20','\x20project\x20directory','2521377LNtJEl','1766440CFuKVu','Missing\x20required\x20flag:\x20--','50508210dOnqRd','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','3828bbBqAd','name','auth_required','8JUUSri','Configuration\x20file\x20not\x20found','Unknown\x20command:\x20','Operation\x20cancelled.','code','hint','Network\x20error:\x20','unknown_command','flag_missing','1867305pCnkrF'];a97_0x2921=function(){return _0x3acc81;};return a97_0x2921();}export const CliErrors={'authRequired':_0x522950=>new CliError(a97_0x22e578(0x139),0x1,'Authentication\x20required',_0x522950??a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.'),'configMissing':_0x122f62=>new CliError(a97_0x22e578(0x12b),0x1,a97_0x22e578(0x13b),_0x122f62??'Run\x20`'+CLI_BIN_NAME+'\x20init`\x20to\x20create\x20a\x20config\x20file.'),'notInProject':()=>new CliError('not_in_project',0x1,a97_0x22e578(0x130)+CLI_BIN_NAME+a97_0x22e578(0x131),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'),'apiError':(_0x1e4900,_0x4c4518)=>new CliError(a97_0x22e578(0x127),0x2,_0x1e4900,_0x4c4518),'networkError':_0x4f37ee=>new CliError('network_error',0x2,a97_0x22e578(0x140)+_0x4f37ee,a97_0x22e578(0x136)),'unknownCommand':_0x37d41a=>new CliError(a97_0x22e578(0x124),0x1,a97_0x22e578(0x13c)+_0x37d41a,a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.'),'flagMissing':(_0x52a5fd,_0x5e69ca)=>new CliError(a97_0x22e578(0x125),0x1,a97_0x22e578(0x134)+_0x52a5fd,_0x5e69ca),'validation':(_0x3f5556,_0x1dd4bc)=>new CliError(a97_0x22e578(0x129),0x1,_0x3f5556,_0x1dd4bc),'cancelled':_0x115823=>new CliError(a97_0x22e578(0x12f),0x0,_0x115823??a97_0x22e578(0x13d),undefined)};
@@ -1 +1 @@
1
- (function(_0x3aec9d,_0xd7914e){const _0x1399e2=a97_0x45b9,_0x293c1f=_0x3aec9d();while(!![]){try{const _0x5efe35=-parseInt(_0x1399e2(0x1ee))/0x1*(parseInt(_0x1399e2(0x1f7))/0x2)+parseInt(_0x1399e2(0x1db))/0x3*(-parseInt(_0x1399e2(0x1f1))/0x4)+parseInt(_0x1399e2(0x1e1))/0x5+-parseInt(_0x1399e2(0x1e7))/0x6+parseInt(_0x1399e2(0x1ed))/0x7+-parseInt(_0x1399e2(0x1e3))/0x8*(-parseInt(_0x1399e2(0x1f5))/0x9)+parseInt(_0x1399e2(0x1d6))/0xa;if(_0x5efe35===_0xd7914e)break;else _0x293c1f['push'](_0x293c1f['shift']());}catch(_0x430701){_0x293c1f['push'](_0x293c1f['shift']());}}}(a97_0x51b7,0x6c3a4));function a97_0x51b7(){const _0x2e40b4=['dryRun','number','11661BkApJo','test','enum','type','flagMissing','.\x20Allowed:\x20','1267685cPRgca','regex','16FehrzI','Invalid\x20value\x20\x22','\x22\x20for\x20--','default','4525398OokMlM',',\x20got\x20\x22','dry-run','true','replace','required','5393808RBgFcb','170903BLogml','toUpperCase','name','8pKnZtl','\x20expects\x20a\x20number,\x20got\x20\x22',':\x20expected\x20','join','1096101YkjTMP','pattern','8vgUEBD','boolean','format','validation','6212600MmcQxv','yes','Invalid\x20--'];a97_0x51b7=function(){return _0x2e40b4;};return a97_0x51b7();}import{CliErrors}from'../errors.js';export function parseFlags(_0x50c66f,_0x526f9a){const _0x1ebf8c=a97_0x45b9,_0x4c1eab={};for(const _0x22589c of _0x50c66f){const _0x5175db=_0x526f9a[_0x22589c['name']]??_0x526f9a[toCamelCase(_0x22589c[_0x1ebf8c(0x1f0)])];if(_0x5175db===undefined||_0x5175db===null){_0x22589c[_0x1ebf8c(0x1e6)]!==undefined&&(_0x4c1eab[_0x22589c['name']]=_0x22589c[_0x1ebf8c(0x1e6)]);continue;}_0x4c1eab[_0x22589c[_0x1ebf8c(0x1f0)]]=coerce(_0x22589c,_0x5175db);}for(const _0x8d5607 of[_0x1ebf8c(0x1e9),_0x1ebf8c(0x1d9),_0x1ebf8c(0x1d7),_0x1ebf8c(0x1f9)]){const _0x4e2136=_0x526f9a[_0x8d5607];if(_0x4e2136!==undefined){const _0x1621fa=_0x8d5607==='dryRun'?_0x1ebf8c(0x1e9):_0x8d5607;_0x4c1eab[_0x1621fa]=_0x4e2136;}}return _0x4c1eab;}export function validateFlags(_0xfb4007,_0x1208bd,_0x5a11a5){const _0x4c7484=a97_0x45b9;for(const _0x4ae9ce of _0xfb4007){const _0x389aad=_0x1208bd[_0x4ae9ce[_0x4c7484(0x1f0)]];if(_0x4ae9ce[_0x4c7484(0x1ec)]&&(_0x389aad===undefined||_0x389aad===''))throw CliErrors[_0x4c7484(0x1df)](_0x4ae9ce[_0x4c7484(0x1f0)],'--'+_0x4ae9ce[_0x4c7484(0x1f0)]+'\x20is\x20required\x20for\x20`'+_0x5a11a5+'`.');if(_0x4ae9ce[_0x4c7484(0x1dd)]&&_0x4ae9ce[_0x4c7484(0x1dd)]['length']>0x0&&_0x389aad!==undefined&&_0x389aad!==''){if(!_0x4ae9ce[_0x4c7484(0x1dd)]['includes'](String(_0x389aad)))throw CliErrors[_0x4c7484(0x1fa)](_0x4c7484(0x1e4)+_0x389aad+_0x4c7484(0x1e5)+_0x4ae9ce['name']+_0x4c7484(0x1e0)+_0x4ae9ce[_0x4c7484(0x1dd)][_0x4c7484(0x1f4)](',\x20'));}if(_0x4ae9ce[_0x4c7484(0x1f6)]&&_0x389aad!==undefined&&_0x389aad!==''){if(!_0x4ae9ce[_0x4c7484(0x1f6)][_0x4c7484(0x1e2)][_0x4c7484(0x1dc)](String(_0x389aad)))throw CliErrors[_0x4c7484(0x1fa)](_0x4c7484(0x1d8)+_0x4ae9ce[_0x4c7484(0x1f0)]+_0x4c7484(0x1f3)+_0x4ae9ce[_0x4c7484(0x1f6)]['description']+_0x4c7484(0x1e8)+_0x389aad+'\x22.');}}}function a97_0x45b9(_0x5dda24,_0x3a6aaa){_0x5dda24=_0x5dda24-0x1d6;const _0x51b706=a97_0x51b7();let _0x45b94c=_0x51b706[_0x5dda24];return _0x45b94c;}function coerce(_0x323599,_0x346841){const _0x1ebd77=a97_0x45b9;switch(_0x323599[_0x1ebd77(0x1de)]){case _0x1ebd77(0x1f8):return _0x346841===!![]||_0x346841===_0x1ebd77(0x1ea);case _0x1ebd77(0x1da):{const _0x2a63ee=Number(_0x346841);if(isNaN(_0x2a63ee))throw CliErrors['validation']('--'+_0x323599[_0x1ebd77(0x1f0)]+_0x1ebd77(0x1f2)+_0x346841+'\x22');return _0x2a63ee;}default:return String(_0x346841);}}function toCamelCase(_0x2dfbfd){const _0xbfdc08=a97_0x45b9;return _0x2dfbfd[_0xbfdc08(0x1eb)](/-([a-z])/g,(_0x357655,_0x5b800c)=>_0x5b800c[_0xbfdc08(0x1ef)]());}
1
+ (function(_0x37fe4f,_0x1d2ea3){const _0x1b452e=a98_0x1db3,_0x4de641=_0x37fe4f();while(!![]){try{const _0x52f720=-parseInt(_0x1b452e(0x16d))/0x1*(parseInt(_0x1b452e(0x153))/0x2)+parseInt(_0x1b452e(0x16a))/0x3*(-parseInt(_0x1b452e(0x150))/0x4)+parseInt(_0x1b452e(0x16c))/0x5+parseInt(_0x1b452e(0x166))/0x6+-parseInt(_0x1b452e(0x171))/0x7*(parseInt(_0x1b452e(0x158))/0x8)+parseInt(_0x1b452e(0x163))/0x9+parseInt(_0x1b452e(0x159))/0xa*(parseInt(_0x1b452e(0x157))/0xb);if(_0x52f720===_0x1d2ea3)break;else _0x4de641['push'](_0x4de641['shift']());}catch(_0x4f47e4){_0x4de641['push'](_0x4de641['shift']());}}}(a98_0x34be,0xa9aaa));function a98_0x34be(){const _0x40c36b=['enum','validation','\x20is\x20required\x20for\x20`','7TOCQxN','format','length','648684KMCuCs','boolean','dry-run','214gdmqim','test','pattern','type','11RgVGmF','10682872JVducA','15566710KgtWGf','number','toUpperCase','Invalid\x20value\x20\x22','yes','replace','join','name','regex','\x20expects\x20a\x20number,\x20got\x20\x22','10697517NBQEmB','default','Invalid\x20--','3812604aZUPPi','dryRun','\x22\x20for\x20--','includes','21VRmmJW','description','189770HvzdKp','2366QaPjGI'];a98_0x34be=function(){return _0x40c36b;};return a98_0x34be();}import{CliErrors}from'../errors.js';export function parseFlags(_0x4446ec,_0xc6943e){const _0x5d620c=a98_0x1db3,_0x161cfd={};for(const _0x3b4332 of _0x4446ec){const _0x8ea0d9=_0xc6943e[_0x3b4332[_0x5d620c(0x160)]]??_0xc6943e[toCamelCase(_0x3b4332[_0x5d620c(0x160)])];if(_0x8ea0d9===undefined||_0x8ea0d9===null){_0x3b4332['default']!==undefined&&(_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=_0x3b4332[_0x5d620c(0x164)]);continue;}_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=coerce(_0x3b4332,_0x8ea0d9);}for(const _0x4ec5e1 of[_0x5d620c(0x152),_0x5d620c(0x167),_0x5d620c(0x15d),_0x5d620c(0x172)]){const _0x27656f=_0xc6943e[_0x4ec5e1];if(_0x27656f!==undefined){const _0x56a20c=_0x4ec5e1==='dryRun'?_0x5d620c(0x152):_0x4ec5e1;_0x161cfd[_0x56a20c]=_0x27656f;}}return _0x161cfd;}function a98_0x1db3(_0xd8f4,_0xb666c3){_0xd8f4=_0xd8f4-0x14f;const _0x34be55=a98_0x34be();let _0x1db31a=_0x34be55[_0xd8f4];return _0x1db31a;}export function validateFlags(_0x299322,_0x21c811,_0x5b90f7){const _0x4c0ea1=a98_0x1db3;for(const _0x5d49a3 of _0x299322){const _0x1eb65e=_0x21c811[_0x5d49a3[_0x4c0ea1(0x160)]];if(_0x5d49a3['required']&&(_0x1eb65e===undefined||_0x1eb65e===''))throw CliErrors['flagMissing'](_0x5d49a3[_0x4c0ea1(0x160)],'--'+_0x5d49a3[_0x4c0ea1(0x160)]+_0x4c0ea1(0x170)+_0x5b90f7+'`.');if(_0x5d49a3[_0x4c0ea1(0x16e)]&&_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x14f)]>0x0&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x169)](String(_0x1eb65e)))throw CliErrors[_0x4c0ea1(0x16f)](_0x4c0ea1(0x15c)+_0x1eb65e+_0x4c0ea1(0x168)+_0x5d49a3[_0x4c0ea1(0x160)]+'.\x20Allowed:\x20'+_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x15f)](',\x20'));}if(_0x5d49a3[_0x4c0ea1(0x155)]&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x161)][_0x4c0ea1(0x154)](String(_0x1eb65e)))throw CliErrors['validation'](_0x4c0ea1(0x165)+_0x5d49a3[_0x4c0ea1(0x160)]+':\x20expected\x20'+_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x16b)]+',\x20got\x20\x22'+_0x1eb65e+'\x22.');}}}function coerce(_0x5e7265,_0x640071){const _0x52bfbb=a98_0x1db3;switch(_0x5e7265[_0x52bfbb(0x156)]){case _0x52bfbb(0x151):return _0x640071===!![]||_0x640071==='true';case _0x52bfbb(0x15a):{const _0x41413c=Number(_0x640071);if(isNaN(_0x41413c))throw CliErrors[_0x52bfbb(0x16f)]('--'+_0x5e7265['name']+_0x52bfbb(0x162)+_0x640071+'\x22');return _0x41413c;}default:return String(_0x640071);}}function toCamelCase(_0x3c8346){const _0x4e808b=a98_0x1db3;return _0x3c8346[_0x4e808b(0x15e)](/-([a-z])/g,(_0x5361bb,_0x1447df)=>_0x1447df[_0x4e808b(0x15b)]());}
@@ -1 +1 @@
1
- const a98_0x458d2f=a98_0x2963;(function(_0x1ce945,_0x5db101){const _0x39661c=a98_0x2963,_0x3e4b3d=_0x1ce945();while(!![]){try{const _0x4c5b42=-parseInt(_0x39661c(0xdf))/0x1*(parseInt(_0x39661c(0xd6))/0x2)+parseInt(_0x39661c(0xc8))/0x3+parseInt(_0x39661c(0xf9))/0x4*(parseInt(_0x39661c(0xc9))/0x5)+parseInt(_0x39661c(0xd7))/0x6+parseInt(_0x39661c(0xe1))/0x7+parseInt(_0x39661c(0xec))/0x8+-parseInt(_0x39661c(0xd8))/0x9;if(_0x4c5b42===_0x5db101)break;else _0x3e4b3d['push'](_0x3e4b3d['shift']());}catch(_0x2cb161){_0x3e4b3d['push'](_0x3e4b3d['shift']());}}}(a98_0x875c,0x7bc6c));import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a98_0x458d2f(0xbd),'high-risk-write':a98_0x458d2f(0xee)};export function generateCommandHelp(_0x505535){const _0x40e0c8=a98_0x458d2f,_0x235fef=[],_0x3a3486=CLI_BIN_NAME+'\x20'+_0x505535[_0x40e0c8(0xd2)]+'\x20'+_0x505535[_0x40e0c8(0xd5)];_0x235fef[_0x40e0c8(0xed)](''),_0x235fef['push']('\x20\x20'+_0x505535[_0x40e0c8(0xc1)]),_0x235fef['push'](''),_0x235fef[_0x40e0c8(0xed)](_0x40e0c8(0xe7)),_0x235fef['push'](_0x40e0c8(0xf0)+_0x3a3486+'\x20[flags]'),_0x235fef[_0x40e0c8(0xed)](''),_0x235fef[_0x40e0c8(0xed)]('\x20\x20RISK:\x20'+_0x505535[_0x40e0c8(0xb6)]);_0x505535[_0x40e0c8(0xb6)]===_0x40e0c8(0xd0)&&_0x235fef['push'](_0x40e0c8(0xfa));_0x235fef['push']('');if(_0x505535[_0x40e0c8(0xcc)]['length']>0x0||_0x505535[_0x40e0c8(0xeb)]||_0x505535['hasFormat']!==![]){_0x235fef['push']('\x20\x20FLAGS');const _0x1c3074=buildAllFlags(_0x505535),_0xbabd9e=Math[_0x40e0c8(0xef)](..._0x1c3074[_0x40e0c8(0xf6)](_0x3fdef5=>formatFlagName(_0x3fdef5)[_0x40e0c8(0xbc)]));for(const _0x521da4 of _0x1c3074){const _0x13990c=formatFlagName(_0x521da4)['padEnd'](_0xbabd9e+0x2);let _0x4c89e5=_0x521da4[_0x40e0c8(0xc1)];_0x521da4[_0x40e0c8(0xe2)]&&_0x521da4[_0x40e0c8(0xe2)]['length']>0x0&&(_0x4c89e5+='\x20('+_0x521da4[_0x40e0c8(0xe2)]['join'](_0x40e0c8(0xea))+')'),_0x521da4[_0x40e0c8(0xde)]!==undefined&&_0x521da4[_0x40e0c8(0xde)]!==''&&(_0x4c89e5+=_0x40e0c8(0xb8)+_0x521da4[_0x40e0c8(0xde)]+']'),_0x521da4[_0x40e0c8(0xbb)]&&(_0x4c89e5+=_0x40e0c8(0xf5)),_0x235fef[_0x40e0c8(0xed)](_0x40e0c8(0xf0)+_0x13990c+_0x4c89e5);}_0x235fef[_0x40e0c8(0xed)]('');}const _0x1bf8d4=[];_0x505535[_0x40e0c8(0xc5)]!==![]&&_0x1bf8d4[_0x40e0c8(0xed)](_0x40e0c8(0xe0)+CLI_BIN_NAME+_0x40e0c8(0xdd));_0x505535['requiresAppCode']!==![]&&_0x1bf8d4[_0x40e0c8(0xed)](_0x40e0c8(0xe9)+CLI_BIN_NAME+_0x40e0c8(0xe3));if(_0x1bf8d4[_0x40e0c8(0xbc)]>0x0){_0x235fef['push']('\x20\x20PREREQUISITES');for(const _0x358376 of _0x1bf8d4){_0x235fef[_0x40e0c8(0xed)](_0x40e0c8(0xdb)+_0x358376);}_0x235fef[_0x40e0c8(0xed)]('');}return _0x235fef[_0x40e0c8(0xc0)]('\x0a');}function a98_0x875c(){const _0x6d77da=['label','4mcicuy','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','tag','risk','dry-run','\x20[default:\x20','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','number','required','length','\x20\x20[write]','string','Preview\x20the\x20operation\x20without\x20executing','join','description','\x20\x20Run\x20`','padEnd','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','requiresAuth','Output\x20format','table','447720apkFZi','4278390nLgAGE','name','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','flags','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table','boolean','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','high-risk-write','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','service','\x20\x20GLOBAL\x20OPTIONS','\x20<command>\x20--help`\x20for\x20flag\x20details.','command','2902adBBrQ','4526082UIrwnN','7774551hXPFrZ','\x20\x20Rabetbase\x20CLI','pretty','\x20\x20\x20\x20•\x20','\x20[global-options]\x20<service>\x20<command>\x20[flags]','\x20auth`\x20first).','default','681mWWsLU','Requires\x20authentication\x20(run\x20`','2852423igurqk','enum','\x20project\x20init`\x20or\x20--appcode).','format','commands','\x20\x20COMMANDS','\x20\x20USAGE','\x20\x20Unknown\x20service:\x20','Requires\x20appcode\x20(set\x20via\x20`','\x20|\x20','dryRun','1537632IUfBrt','push','\x20\x20[high-risk-write]','max','\x20\x20\x20\x20','type','yes','\x20<n>','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20(required)','map','Skip\x20confirmation\x20prompt'];a98_0x875c=function(){return _0x6d77da;};return a98_0x875c();}function a98_0x2963(_0x6a51f2,_0x26feee){_0x6a51f2=_0x6a51f2-0xb6;const _0x875cb=a98_0x875c();let _0x29638e=_0x875cb[_0x6a51f2];return _0x29638e;}export function generateServiceHelp(_0x3b3023){const _0x3b8630=a98_0x458d2f,_0x24a9f5=getServiceEntry(_0x3b3023);if(!_0x24a9f5)return _0x3b8630(0xe8)+_0x3b3023+'\x0a';const _0x39366a=[];_0x39366a['push'](''),_0x39366a[_0x3b8630(0xed)]('\x20\x20'+_0x24a9f5['label']),_0x39366a[_0x3b8630(0xed)](''),_0x39366a[_0x3b8630(0xed)](_0x3b8630(0xe7)),_0x39366a[_0x3b8630(0xed)](_0x3b8630(0xf0)+CLI_BIN_NAME+'\x20'+_0x3b3023+'\x20<command>\x20[flags]'),_0x39366a[_0x3b8630(0xed)](''),_0x39366a[_0x3b8630(0xed)](_0x3b8630(0xe6));const _0x3c2c9e=Math[_0x3b8630(0xef)](..._0x24a9f5[_0x3b8630(0xe5)]['map'](_0x376bd6=>_0x376bd6[_0x3b8630(0xd5)][_0x3b8630(0xbc)]));for(const _0x593ca8 of _0x24a9f5[_0x3b8630(0xe5)]){const _0x2e6046=_0x593ca8[_0x3b8630(0xfb)]??'';_0x39366a[_0x3b8630(0xed)]('\x20\x20\x20\x20'+_0x593ca8[_0x3b8630(0xd5)][_0x3b8630(0xc3)](_0x3c2c9e+0x2)+_0x593ca8['description']+_0x2e6046);}return _0x39366a[_0x3b8630(0xed)](''),_0x39366a[_0x3b8630(0xed)]('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3b3023+_0x3b8630(0xd4)),_0x39366a[_0x3b8630(0xed)](''),_0x39366a[_0x3b8630(0xc0)]('\x0a');}export function generateFullHelp(){const _0x2290e6=a98_0x458d2f,_0x1d55a0=[];_0x1d55a0[_0x2290e6(0xed)](''),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xd9)),_0x1d55a0['push'](''),_0x1d55a0[_0x2290e6(0xed)]('\x20\x20USAGE'),_0x1d55a0['push']('\x20\x20\x20\x20$\x20'+CLI_BIN_NAME+_0x2290e6(0xdc)),_0x1d55a0[_0x2290e6(0xed)](''),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xd3)),_0x1d55a0['push']('\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode'),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xc4)),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xcd)),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xcf)),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xf4)),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xb9)),_0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xcb)),_0x1d55a0[_0x2290e6(0xed)]('\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version'),_0x1d55a0['push'](''),_0x1d55a0['push'](_0x2290e6(0xe6)),_0x1d55a0[_0x2290e6(0xed)]('');for(const _0x34b35b of serviceRegistry){_0x1d55a0[_0x2290e6(0xed)]('\x20\x20'+_0x34b35b[_0x2290e6(0xf8)]);const _0x5a905d=_0x34b35b[_0x2290e6(0xe5)][_0x2290e6(0xf6)](_0x272371=>_0x34b35b[_0x2290e6(0xd2)]+'\x20'+_0x272371['command']),_0x3d32f9=Math[_0x2290e6(0xef)](..._0x5a905d[_0x2290e6(0xf6)](_0x52a2dc=>_0x52a2dc[_0x2290e6(0xbc)]));for(let _0x4e286a=0x0;_0x4e286a<_0x34b35b['commands'][_0x2290e6(0xbc)];_0x4e286a++){const _0x322316=_0x34b35b['commands'][_0x4e286a],_0x3d878b=_0x322316['tag']??'';_0x1d55a0[_0x2290e6(0xed)]('\x20\x20\x20\x20'+_0x5a905d[_0x4e286a]['padEnd'](_0x3d32f9+0x2)+_0x322316[_0x2290e6(0xc1)]+_0x3d878b);}_0x1d55a0[_0x2290e6(0xed)]('');}return _0x1d55a0[_0x2290e6(0xed)](_0x2290e6(0xc2)+CLI_BIN_NAME+_0x2290e6(0xd1)),_0x1d55a0[_0x2290e6(0xed)](''),_0x1d55a0[_0x2290e6(0xc0)]('\x0a');}function buildAllFlags(_0x2d4b6c){const _0x4af837=a98_0x458d2f,_0x555245=[..._0x2d4b6c[_0x4af837(0xcc)]];return _0x2d4b6c[_0x4af837(0xeb)]&&_0x555245[_0x4af837(0xed)]({'name':_0x4af837(0xb7),'type':_0x4af837(0xce),'description':_0x4af837(0xbf)}),_0x2d4b6c['hasFormat']!==![]&&_0x555245[_0x4af837(0xed)]({'name':_0x4af837(0xe4),'type':_0x4af837(0xbe),'default':'pretty','enum':['json',_0x4af837(0xda),_0x4af837(0xc7)],'description':_0x4af837(0xc6)}),_0x2d4b6c[_0x4af837(0xb6)]===_0x4af837(0xd0)&&_0x555245[_0x4af837(0xed)]({'name':_0x4af837(0xf2),'type':_0x4af837(0xce),'description':_0x4af837(0xf7)}),_0x555245;}function formatFlagName(_0x436c53){const _0x7ff0df=a98_0x458d2f,_0xf85d72=_0x436c53[_0x7ff0df(0xf1)]===_0x7ff0df(0xce)?'':_0x436c53['type']===_0x7ff0df(0xba)?_0x7ff0df(0xf3):'\x20<value>';return'--'+_0x436c53[_0x7ff0df(0xca)]+_0xf85d72;}
1
+ const a99_0x586525=a99_0x4d5b;(function(_0x2dc296,_0x33306a){const _0x1ed797=a99_0x4d5b,_0x21497d=_0x2dc296();while(!![]){try{const _0x329a97=-parseInt(_0x1ed797(0x1b1))/0x1*(-parseInt(_0x1ed797(0x1df))/0x2)+-parseInt(_0x1ed797(0x1b0))/0x3*(parseInt(_0x1ed797(0x1ba))/0x4)+-parseInt(_0x1ed797(0x1ca))/0x5+parseInt(_0x1ed797(0x1e3))/0x6+-parseInt(_0x1ed797(0x1c7))/0x7+-parseInt(_0x1ed797(0x1cd))/0x8+parseInt(_0x1ed797(0x1d8))/0x9;if(_0x329a97===_0x33306a)break;else _0x21497d['push'](_0x21497d['shift']());}catch(_0xa41c0e){_0x21497d['push'](_0x21497d['shift']());}}}(a99_0x5659,0x292e5));function a99_0x4d5b(_0x40f43b,_0x4e22f2){_0x40f43b=_0x40f43b-0x1a4;const _0x5659b3=a99_0x5659();let _0x4d5b38=_0x5659b3[_0x40f43b];return _0x4d5b38;}import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a99_0x586525(0x1e4),'high-risk-write':a99_0x586525(0x1aa)};function a99_0x5659(){const _0x1718bc=['type','join','flags','\x20<value>','\x20(required)','\x20\x20\x20\x20','\x20<command>\x20--help`\x20for\x20flag\x20details.','high-risk-write','\x20\x20[high-risk-write]','\x20project\x20init`\x20or\x20--appcode).','pretty','service','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20Run\x20`','12FGcDnu','48275MLTMtC','Requires\x20authentication\x20(run\x20`','\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','\x20<command>\x20[flags]','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','\x20auth`\x20first).','label','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','203080kNoAeL','\x20\x20GLOBAL\x20OPTIONS','tag','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20\x20\x20\x20•\x20','format','\x20|\x20','dryRun','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','Output\x20format','push','Skip\x20confirmation\x20prompt','map','223580VwLZEc','table','yes','239535TnKDGq','commands','default','795560PJFfWE','enum','\x20\x20\x20\x20$\x20','risk','command','requiresAppCode','\x20\x20USAGE','description','requiresAuth','hasFormat','\x20\x20COMMANDS','164412lSWpoL','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','\x20\x20Unknown\x20service:\x20','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','number','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','\x20[default:\x20','10lmbvvA','\x20\x20RISK:\x20','max','padEnd','1748436zczLax','\x20\x20[write]','length','boolean','json'];a99_0x5659=function(){return _0x1718bc;};return a99_0x5659();}export function generateCommandHelp(_0x473c88){const _0x51c246=a99_0x586525,_0x4f3ef3=[],_0x378794=CLI_BIN_NAME+'\x20'+_0x473c88[_0x51c246(0x1ad)]+'\x20'+_0x473c88[_0x51c246(0x1d1)];_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20'+_0x473c88[_0x51c246(0x1d4)]),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3['push']('\x20\x20USAGE'),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1a7)+_0x378794+_0x51c246(0x1b3)),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1e0)+_0x473c88[_0x51c246(0x1d0)]);_0x473c88['risk']===_0x51c246(0x1a9)&&_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1ae));_0x4f3ef3[_0x51c246(0x1c4)]('');if(_0x473c88['flags'][_0x51c246(0x1e5)]>0x0||_0x473c88[_0x51c246(0x1c1)]||_0x473c88[_0x51c246(0x1d6)]!==![]){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20FLAGS');const _0x19bcb4=buildAllFlags(_0x473c88),_0x1caeba=Math[_0x51c246(0x1e1)](..._0x19bcb4[_0x51c246(0x1c6)](_0x42e263=>formatFlagName(_0x42e263)[_0x51c246(0x1e5)]));for(const _0x4a2288 of _0x19bcb4){const _0x4260c0=formatFlagName(_0x4a2288)[_0x51c246(0x1e2)](_0x1caeba+0x2);let _0x27433e=_0x4a2288['description'];_0x4a2288[_0x51c246(0x1ce)]&&_0x4a2288['enum'][_0x51c246(0x1e5)]>0x0&&(_0x27433e+='\x20('+_0x4a2288[_0x51c246(0x1ce)][_0x51c246(0x1e9)](_0x51c246(0x1c0))+')'),_0x4a2288[_0x51c246(0x1cc)]!==undefined&&_0x4a2288['default']!==''&&(_0x27433e+=_0x51c246(0x1de)+_0x4a2288['default']+']'),_0x4a2288['required']&&(_0x27433e+=_0x51c246(0x1a6)),_0x4f3ef3['push'](_0x51c246(0x1a7)+_0x4260c0+_0x27433e);}_0x4f3ef3['push']('');}const _0x5698bd=[];_0x473c88[_0x51c246(0x1d5)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b2)+CLI_BIN_NAME+_0x51c246(0x1b7));_0x473c88[_0x51c246(0x1d2)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b4)+CLI_BIN_NAME+_0x51c246(0x1ab));if(_0x5698bd[_0x51c246(0x1e5)]>0x0){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20PREREQUISITES');for(const _0x3f6293 of _0x5698bd){_0x4f3ef3['push'](_0x51c246(0x1be)+_0x3f6293);}_0x4f3ef3['push']('');}return _0x4f3ef3[_0x51c246(0x1e9)]('\x0a');}export function generateServiceHelp(_0x5d22a7){const _0x456c59=a99_0x586525,_0x50c423=getServiceEntry(_0x5d22a7);if(!_0x50c423)return _0x456c59(0x1da)+_0x5d22a7+'\x0a';const _0x14083a=[];_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)]('\x20\x20'+_0x50c423[_0x456c59(0x1b8)]),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d3)),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1b5)),_0x14083a['push'](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d7));const _0x283666=Math['max'](..._0x50c423[_0x456c59(0x1cb)][_0x456c59(0x1c6)](_0x111254=>_0x111254[_0x456c59(0x1d1)][_0x456c59(0x1e5)]));for(const _0xa16547 of _0x50c423['commands']){const _0x4ad3d2=_0xa16547[_0x456c59(0x1bc)]??'';_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+_0xa16547[_0x456c59(0x1d1)]['padEnd'](_0x283666+0x2)+_0xa16547['description']+_0x4ad3d2);}return _0x14083a[_0x456c59(0x1c4)](''),_0x14083a['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1a8)),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1e9)]('\x0a');}export function generateFullHelp(){const _0x49816a=a99_0x586525,_0x19ac82=[];_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20Rabetbase\x20CLI'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d3)),_0x19ac82['push'](_0x49816a(0x1cf)+CLI_BIN_NAME+'\x20[global-options]\x20<service>\x20<command>\x20[flags]'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bb)),_0x19ac82['push'](_0x49816a(0x1b9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1c2)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table'),_0x19ac82['push'](_0x49816a(0x1b6)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bd)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1dd)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version'),_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d7)),_0x19ac82[_0x49816a(0x1c4)]('');for(const _0x2cbab1 of serviceRegistry){_0x19ac82[_0x49816a(0x1c4)]('\x20\x20'+_0x2cbab1[_0x49816a(0x1b8)]);const _0x54c012=_0x2cbab1['commands'][_0x49816a(0x1c6)](_0x27508d=>_0x2cbab1[_0x49816a(0x1ad)]+'\x20'+_0x27508d[_0x49816a(0x1d1)]),_0x2c5fcd=Math[_0x49816a(0x1e1)](..._0x54c012[_0x49816a(0x1c6)](_0x4cf203=>_0x4cf203[_0x49816a(0x1e5)]));for(let _0x2f1725=0x0;_0x2f1725<_0x2cbab1[_0x49816a(0x1cb)][_0x49816a(0x1e5)];_0x2f1725++){const _0x299454=_0x2cbab1[_0x49816a(0x1cb)][_0x2f1725],_0x333590=_0x299454[_0x49816a(0x1bc)]??'';_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1a7)+_0x54c012[_0x2f1725][_0x49816a(0x1e2)](_0x2c5fcd+0x2)+_0x299454[_0x49816a(0x1d4)]+_0x333590);}_0x19ac82[_0x49816a(0x1c4)]('');}return _0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1af)+CLI_BIN_NAME+_0x49816a(0x1db)),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1e9)]('\x0a');}function buildAllFlags(_0x39738f){const _0x57766a=a99_0x586525,_0x5c35dd=[..._0x39738f[_0x57766a(0x1a4)]];return _0x39738f['dryRun']&&_0x5c35dd[_0x57766a(0x1c4)]({'name':'dry-run','type':'boolean','description':'Preview\x20the\x20operation\x20without\x20executing'}),_0x39738f[_0x57766a(0x1d6)]!==![]&&_0x5c35dd[_0x57766a(0x1c4)]({'name':_0x57766a(0x1bf),'type':'string','default':'pretty','enum':[_0x57766a(0x1e7),_0x57766a(0x1ac),_0x57766a(0x1c8)],'description':_0x57766a(0x1c3)}),_0x39738f['risk']===_0x57766a(0x1a9)&&_0x5c35dd['push']({'name':_0x57766a(0x1c9),'type':_0x57766a(0x1e6),'description':_0x57766a(0x1c5)}),_0x5c35dd;}function formatFlagName(_0x26ce30){const _0x523d2c=a99_0x586525,_0x5dc73a=_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1e6)?'':_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1dc)?'\x20<n>':_0x523d2c(0x1a5);return'--'+_0x26ce30['name']+_0x5dc73a;}
@@ -1 +1 @@
1
- (function(_0x24ce8d,_0xd98add){var _0x4dc167=a99_0x2281,_0x1b2b6d=_0x24ce8d();while(!![]){try{var _0x2d83b3=-parseInt(_0x4dc167(0x181))/0x1*(-parseInt(_0x4dc167(0x17a))/0x2)+parseInt(_0x4dc167(0x17e))/0x3*(-parseInt(_0x4dc167(0x17b))/0x4)+parseInt(_0x4dc167(0x183))/0x5*(parseInt(_0x4dc167(0x182))/0x6)+parseInt(_0x4dc167(0x17d))/0x7*(parseInt(_0x4dc167(0x180))/0x8)+-parseInt(_0x4dc167(0x179))/0x9+parseInt(_0x4dc167(0x17c))/0xa+-parseInt(_0x4dc167(0x184))/0xb*(parseInt(_0x4dc167(0x17f))/0xc);if(_0x2d83b3===_0xd98add)break;else _0x1b2b6d['push'](_0x1b2b6d['shift']());}catch(_0x3c57d9){_0x1b2b6d['push'](_0x1b2b6d['shift']());}}}(a99_0x352d,0xef061));export{runCommand}from'./runner.js';function a99_0x2281(_0x2e7f00,_0x2ce8bc){_0x2e7f00=_0x2e7f00-0x179;var _0x352da8=a99_0x352d();var _0x22819e=_0x352da8[_0x2e7f00];return _0x22819e;}export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';function a99_0x352d(){var _0x4d391e=['296HSdiiU','13gFoCqF','12cIwIMN','4094915zwFXyD','3035142iYtRKa','10725363yidsMC','178502eesENV','71804NUQqjj','237200oSzatL','185353PaXldm','42fCxWLb','60aAoQao'];a99_0x352d=function(){return _0x4d391e;};return a99_0x352d();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';
1
+ (function(_0x20b3b7,_0x107dce){var _0x2e8d17=a100_0x45c8,_0x569fc4=_0x20b3b7();while(!![]){try{var _0x28a2ad=-parseInt(_0x2e8d17(0xec))/0x1+-parseInt(_0x2e8d17(0xf2))/0x2+parseInt(_0x2e8d17(0xf5))/0x3+-parseInt(_0x2e8d17(0xf0))/0x4*(parseInt(_0x2e8d17(0xef))/0x5)+-parseInt(_0x2e8d17(0xf3))/0x6+-parseInt(_0x2e8d17(0xed))/0x7*(parseInt(_0x2e8d17(0xee))/0x8)+parseInt(_0x2e8d17(0xf4))/0x9*(parseInt(_0x2e8d17(0xf1))/0xa);if(_0x28a2ad===_0x107dce)break;else _0x569fc4['push'](_0x569fc4['shift']());}catch(_0x5d91c1){_0x569fc4['push'](_0x569fc4['shift']());}}}(a100_0x5f5a,0x7c78d));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';function a100_0x45c8(_0x2076a8,_0x5bd5d8){_0x2076a8=_0x2076a8-0xec;var _0x5f5a84=a100_0x5f5a();var _0x45c81c=_0x5f5a84[_0x2076a8];return _0x45c81c;}export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';function a100_0x5f5a(){var _0x288621=['1828468nbRpTh','1030zjgpYo','651888pVwOjb','2840910kTiCdj','165195OPxhdF','2508678cxfVrE','608831qQvbPX','144767zvgSql','136rEvQgV','5znhcxB'];a100_0x5f5a=function(){return _0x288621;};return a100_0x5f5a();}
@@ -1 +1 @@
1
- function a100_0xa551(){const _0x535a6f=['join','repeat','Error:\x20','length','119482sqwvtS','139280jaPucU','command','3139092OBHdcz','table','10PJZFfj','risk','entries','Found\x20','pretty','675534VqMAHc','object','command_error','[dry-run]\x20Would\x20execute:','stringify','9tWgYgT','message','Unknown\x20error','763068VdCWsE','error','log','7oVmZmP','(empty)','keys','3272968fiudLf','data','write','map','7bYBcCT','max','136768bqhFvc','json','dryRun','\x20items:\x0a','padEnd','isArray'];a100_0xa551=function(){return _0x535a6f;};return a100_0xa551();}(function(_0x16d2fc,_0x103d7a){const _0x1a3834=a100_0x198e,_0x47b419=_0x16d2fc();while(!![]){try{const _0x20df09=-parseInt(_0x1a3834(0x114))/0x1*(parseInt(_0x1a3834(0xf8))/0x2)+-parseInt(_0x1a3834(0x10a))/0x3+-parseInt(_0x1a3834(0x116))/0x4+parseInt(_0x1a3834(0xfd))/0x5*(parseInt(_0x1a3834(0x102))/0x6)+-parseInt(_0x1a3834(0x10d))/0x7*(-parseInt(_0x1a3834(0x110))/0x8)+parseInt(_0x1a3834(0x107))/0x9*(parseInt(_0x1a3834(0xf9))/0xa)+parseInt(_0x1a3834(0xfb))/0xb;if(_0x20df09===_0x103d7a)break;else _0x47b419['push'](_0x47b419['shift']());}catch(_0xfa5132){_0x47b419['push'](_0x47b419['shift']());}}}(a100_0xa551,0x37630));export function formatOutput(_0x2d2116,_0x1fa80d){const _0x28bc18=a100_0x198e,{format:_0x12a11b}=_0x1fa80d;switch(_0x12a11b){case _0x28bc18(0x117):printJson(_0x2d2116,_0x1fa80d);break;case _0x28bc18(0xfc):printTable(_0x2d2116,_0x1fa80d);break;case _0x28bc18(0x101):default:printPretty(_0x2d2116,_0x1fa80d);break;}}function printJson(_0x5d8fde,_0x2a5555){const _0x50ee5e=a100_0x198e,_0x3c2d6e={'ok':_0x5d8fde['ok'],'command':_0x2a5555[_0x50ee5e(0xfa)],'risk':_0x2a5555[_0x50ee5e(0xfe)]};if(_0x2a5555[_0x50ee5e(0x118)])_0x3c2d6e[_0x50ee5e(0x118)]=!![];if(_0x5d8fde[_0x50ee5e(0x111)]!==undefined)_0x3c2d6e[_0x50ee5e(0x111)]=_0x5d8fde['data'];!_0x5d8fde['ok']&&_0x5d8fde[_0x50ee5e(0x108)]&&(_0x3c2d6e[_0x50ee5e(0x10b)]={'code':_0x50ee5e(0x104),'message':_0x5d8fde[_0x50ee5e(0x108)]}),process['stdout'][_0x50ee5e(0x112)](JSON['stringify'](_0x3c2d6e,null,0x2)+'\x0a');}function printPretty(_0x279fde,_0x5a553b){const _0x1df2c9=a100_0x198e;if(_0x5a553b[_0x1df2c9(0x118)]){console['log'](_0x1df2c9(0x105)),console[_0x1df2c9(0x10c)](JSON[_0x1df2c9(0x106)](_0x279fde[_0x1df2c9(0x111)],null,0x2));return;}if(!_0x279fde['ok']){console[_0x1df2c9(0x10b)](_0x1df2c9(0xf6)+(_0x279fde[_0x1df2c9(0x108)]??_0x1df2c9(0x109)));return;}const _0x49d14c=_0x279fde[_0x1df2c9(0x111)];if(_0x49d14c===undefined||_0x49d14c===null){if(_0x279fde[_0x1df2c9(0x108)])console[_0x1df2c9(0x10c)](_0x279fde[_0x1df2c9(0x108)]);return;}if(Array['isArray'](_0x49d14c)){printArrayPretty(_0x49d14c);return;}if(typeof _0x49d14c==='object'){printObjectPretty(_0x49d14c);return;}console['log'](String(_0x49d14c));}function printObjectPretty(_0xd1caaa){const _0x238377=a100_0x198e,_0x30a1a8=Math[_0x238377(0x115)](...Object[_0x238377(0x10f)](_0xd1caaa)['map'](_0x47c411=>_0x47c411[_0x238377(0xf7)]),0x0);for(const [_0xb80f2f,_0x116436]of Object[_0x238377(0xff)](_0xd1caaa)){if(_0x116436===undefined||_0x116436===null)continue;const _0x59c67d=_0xb80f2f[_0x238377(0xf2)](_0x30a1a8);typeof _0x116436===_0x238377(0x103)?console[_0x238377(0x10c)](_0x59c67d+'\x20\x20'+JSON[_0x238377(0x106)](_0x116436)):console['log'](_0x59c67d+'\x20\x20'+_0x116436);}}function printArrayPretty(_0x387b41){const _0x462df2=a100_0x198e;if(_0x387b41[_0x462df2(0xf7)]===0x0){console[_0x462df2(0x10c)](_0x462df2(0x10e));return;}console['log'](_0x462df2(0x100)+_0x387b41[_0x462df2(0xf7)]+_0x462df2(0xf1));for(const _0x4a0ec6 of _0x387b41){if(typeof _0x4a0ec6===_0x462df2(0x103)&&_0x4a0ec6!==null){const _0x103b75=Object['values'](_0x4a0ec6)['slice'](0x0,0x4)[_0x462df2(0xf4)]('\x20\x20');console[_0x462df2(0x10c)]('\x20\x20'+_0x103b75);}else console[_0x462df2(0x10c)]('\x20\x20'+_0x4a0ec6);}}function a100_0x198e(_0x7beaeb,_0x3ddf50){_0x7beaeb=_0x7beaeb-0xf1;const _0xa55157=a100_0xa551();let _0x198e8d=_0xa55157[_0x7beaeb];return _0x198e8d;}function printTable(_0x36940f,_0x52187f){const _0x2056b6=a100_0x198e,_0x38a73a=_0x36940f['data'];if(!_0x36940f['ok']){console['error'](_0x2056b6(0xf6)+(_0x36940f[_0x2056b6(0x108)]??_0x2056b6(0x109)));return;}const _0x339a39=Array[_0x2056b6(0xf3)](_0x38a73a)?_0x38a73a:_0x38a73a?[_0x38a73a]:[];if(_0x339a39[_0x2056b6(0xf7)]===0x0){console[_0x2056b6(0x10c)](_0x2056b6(0x10e));return;}const _0x1cd62b=Object[_0x2056b6(0x10f)](_0x339a39[0x0]),_0x39fc99=_0x1cd62b[_0x2056b6(0x113)](_0x460822=>Math[_0x2056b6(0x115)](_0x460822[_0x2056b6(0xf7)],..._0x339a39[_0x2056b6(0x113)](_0x41666b=>String(_0x41666b[_0x460822]??'')[_0x2056b6(0xf7)]))),_0x1e88cc=_0x1cd62b['map']((_0xfdc85f,_0x249ba2)=>_0xfdc85f[_0x2056b6(0xf2)](_0x39fc99[_0x249ba2]))[_0x2056b6(0xf4)]('\x20\x20'),_0x256895=_0x39fc99['map'](_0x4a6aa1=>'-'[_0x2056b6(0xf5)](_0x4a6aa1))[_0x2056b6(0xf4)]('\x20\x20');console[_0x2056b6(0x10c)](_0x1e88cc),console[_0x2056b6(0x10c)](_0x256895);for(const _0xaf75c7 of _0x339a39){const _0x1045b6=_0x1cd62b['map']((_0x57e9cc,_0x42f1a9)=>String(_0xaf75c7[_0x57e9cc]??'')[_0x2056b6(0xf2)](_0x39fc99[_0x42f1a9]))[_0x2056b6(0xf4)]('\x20\x20');console[_0x2056b6(0x10c)](_0x1045b6);}}
1
+ function a101_0x5279(){const _0x39c803=['padEnd','26471Bypcux','28385410LVrdFt','8500184xnjneL','error','write','96MuTcYL','values','message','keys','140109uJLIbf','log','536328tHauHK','Unknown\x20error','risk','stringify','Error:\x20','join','isArray','command_error','9awbdVF','pretty','[dry-run]\x20Would\x20execute:','slice','dryRun','\x20items:\x0a','entries','4933796iRlUBt','data','(empty)','max','object','map','length','repeat','5080230ySkWkq','6BHdmxf'];a101_0x5279=function(){return _0x39c803;};return a101_0x5279();}(function(_0x20009c,_0x49e931){const _0x59ffef=a101_0x3503,_0x40446b=_0x20009c();while(!![]){try{const _0x35e2ad=-parseInt(_0x59ffef(0x1ba))/0x1+parseInt(_0x59ffef(0x1c5))/0x2+-parseInt(_0x59ffef(0x1c3))/0x3*(parseInt(_0x59ffef(0x1bf))/0x4)+-parseInt(_0x59ffef(0x1b7))/0x5*(parseInt(_0x59ffef(0x1b8))/0x6)+parseInt(_0x59ffef(0x1af))/0x7+parseInt(_0x59ffef(0x1bc))/0x8*(-parseInt(_0x59ffef(0x1a8))/0x9)+parseInt(_0x59ffef(0x1bb))/0xa;if(_0x35e2ad===_0x49e931)break;else _0x40446b['push'](_0x40446b['shift']());}catch(_0x29d822){_0x40446b['push'](_0x40446b['shift']());}}}(a101_0x5279,0x8ef95));export function formatOutput(_0x4c02c7,_0x3d4e37){const _0x423d88=a101_0x3503,{format:_0x34ab02}=_0x3d4e37;switch(_0x34ab02){case'json':printJson(_0x4c02c7,_0x3d4e37);break;case'table':printTable(_0x4c02c7,_0x3d4e37);break;case _0x423d88(0x1a9):default:printPretty(_0x4c02c7,_0x3d4e37);break;}}function printJson(_0x2319c2,_0x439e8b){const _0x38786b=a101_0x3503,_0xa3f55d={'ok':_0x2319c2['ok'],'command':_0x439e8b['command'],'risk':_0x439e8b[_0x38786b(0x1c7)]};if(_0x439e8b[_0x38786b(0x1ac)])_0xa3f55d['dryRun']=!![];if(_0x2319c2['data']!==undefined)_0xa3f55d['data']=_0x2319c2[_0x38786b(0x1b0)];!_0x2319c2['ok']&&_0x2319c2[_0x38786b(0x1c1)]&&(_0xa3f55d['error']={'code':_0x38786b(0x1a7),'message':_0x2319c2[_0x38786b(0x1c1)]}),process['stdout'][_0x38786b(0x1be)](JSON[_0x38786b(0x1a3)](_0xa3f55d,null,0x2)+'\x0a');}function printPretty(_0x88ccd5,_0x2c90a1){const _0xbfd07a=a101_0x3503;if(_0x2c90a1['dryRun']){console[_0xbfd07a(0x1c4)](_0xbfd07a(0x1aa)),console[_0xbfd07a(0x1c4)](JSON[_0xbfd07a(0x1a3)](_0x88ccd5['data'],null,0x2));return;}if(!_0x88ccd5['ok']){console[_0xbfd07a(0x1bd)]('Error:\x20'+(_0x88ccd5[_0xbfd07a(0x1c1)]??_0xbfd07a(0x1c6)));return;}const _0x1006c6=_0x88ccd5[_0xbfd07a(0x1b0)];if(_0x1006c6===undefined||_0x1006c6===null){if(_0x88ccd5[_0xbfd07a(0x1c1)])console['log'](_0x88ccd5[_0xbfd07a(0x1c1)]);return;}if(Array[_0xbfd07a(0x1a6)](_0x1006c6)){printArrayPretty(_0x1006c6);return;}if(typeof _0x1006c6===_0xbfd07a(0x1b3)){printObjectPretty(_0x1006c6);return;}console[_0xbfd07a(0x1c4)](String(_0x1006c6));}function a101_0x3503(_0x23c09e,_0x5cee14){_0x23c09e=_0x23c09e-0x1a3;const _0x5279ac=a101_0x5279();let _0x35033f=_0x5279ac[_0x23c09e];return _0x35033f;}function printObjectPretty(_0x1ec0f4){const _0x2135da=a101_0x3503,_0xca1dc7=Math[_0x2135da(0x1b2)](...Object[_0x2135da(0x1c2)](_0x1ec0f4)[_0x2135da(0x1b4)](_0x4501f8=>_0x4501f8[_0x2135da(0x1b5)]),0x0);for(const [_0x345989,_0x3fa732]of Object[_0x2135da(0x1ae)](_0x1ec0f4)){if(_0x3fa732===undefined||_0x3fa732===null)continue;const _0x37c099=_0x345989[_0x2135da(0x1b9)](_0xca1dc7);typeof _0x3fa732==='object'?console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+JSON[_0x2135da(0x1a3)](_0x3fa732)):console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+_0x3fa732);}}function printArrayPretty(_0x11628c){const _0x22d7ad=a101_0x3503;if(_0x11628c[_0x22d7ad(0x1b5)]===0x0){console['log'](_0x22d7ad(0x1b1));return;}console[_0x22d7ad(0x1c4)]('Found\x20'+_0x11628c[_0x22d7ad(0x1b5)]+_0x22d7ad(0x1ad));for(const _0x15320e of _0x11628c){if(typeof _0x15320e===_0x22d7ad(0x1b3)&&_0x15320e!==null){const _0x4e891b=Object[_0x22d7ad(0x1c0)](_0x15320e)[_0x22d7ad(0x1ab)](0x0,0x4)[_0x22d7ad(0x1a5)]('\x20\x20');console['log']('\x20\x20'+_0x4e891b);}else console[_0x22d7ad(0x1c4)]('\x20\x20'+_0x15320e);}}function printTable(_0x189726,_0x353beb){const _0x184534=a101_0x3503,_0x214484=_0x189726[_0x184534(0x1b0)];if(!_0x189726['ok']){console['error'](_0x184534(0x1a4)+(_0x189726[_0x184534(0x1c1)]??'Unknown\x20error'));return;}const _0x3a06d0=Array[_0x184534(0x1a6)](_0x214484)?_0x214484:_0x214484?[_0x214484]:[];if(_0x3a06d0[_0x184534(0x1b5)]===0x0){console['log'](_0x184534(0x1b1));return;}const _0x48f71a=Object['keys'](_0x3a06d0[0x0]),_0x54123b=_0x48f71a['map'](_0x195896=>Math[_0x184534(0x1b2)](_0x195896[_0x184534(0x1b5)],..._0x3a06d0[_0x184534(0x1b4)](_0x68321f=>String(_0x68321f[_0x195896]??'')['length']))),_0x36e766=_0x48f71a['map']((_0x4327d4,_0x5315bd)=>_0x4327d4[_0x184534(0x1b9)](_0x54123b[_0x5315bd]))[_0x184534(0x1a5)]('\x20\x20'),_0x27df45=_0x54123b[_0x184534(0x1b4)](_0x272f75=>'-'[_0x184534(0x1b6)](_0x272f75))[_0x184534(0x1a5)]('\x20\x20');console[_0x184534(0x1c4)](_0x36e766),console[_0x184534(0x1c4)](_0x27df45);for(const _0x2b8424 of _0x3a06d0){const _0x25d320=_0x48f71a['map']((_0x4f192c,_0x262b4e)=>String(_0x2b8424[_0x4f192c]??'')[_0x184534(0x1b9)](_0x54123b[_0x262b4e]))['join']('\x20\x20');console['log'](_0x25d320);}}
@@ -1 +1 @@
1
- (function(_0x528ae8,_0x38245c){var _0x1e7753=a101_0x435c,_0x462ff2=_0x528ae8();while(!![]){try{var _0x31bbba=parseInt(_0x1e7753(0x74))/0x1*(-parseInt(_0x1e7753(0x73))/0x2)+-parseInt(_0x1e7753(0x7d))/0x3*(-parseInt(_0x1e7753(0x81))/0x4)+parseInt(_0x1e7753(0x7c))/0x5*(parseInt(_0x1e7753(0x78))/0x6)+parseInt(_0x1e7753(0x79))/0x7+parseInt(_0x1e7753(0x80))/0x8*(-parseInt(_0x1e7753(0x7a))/0x9)+parseInt(_0x1e7753(0x76))/0xa*(-parseInt(_0x1e7753(0x75))/0xb)+parseInt(_0x1e7753(0x7e))/0xc*(parseInt(_0x1e7753(0x77))/0xd);if(_0x31bbba===_0x38245c)break;else _0x462ff2['push'](_0x462ff2['shift']());}catch(_0x4e5d9d){_0x462ff2['push'](_0x462ff2['shift']());}}}(a101_0x58d0,0x6abcf));function a101_0x435c(_0x428d20,_0xf137f){_0x428d20=_0x428d20-0x73;var _0x58d0cb=a101_0x58d0();var _0x435cfe=_0x58d0cb[_0x428d20];return _0x435cfe;}function a101_0x58d0(){var _0x101e9b=['509825TkAodb','44TGLLsU','1936070RKWyEo','2587KghyVU','2526ZsxLmc','787584rAeVfE','5797953xyRqqi','isArray','5115WJReTN','27JWirhe','59628SIqkhY','object','8eTLfTS','370508sSPIGD','2FJARhJ'];a101_0x58d0=function(){return _0x101e9b;};return a101_0x58d0();}export function extractList(_0x177257){var _0x309e6a=a101_0x435c;if(Array[_0x309e6a(0x7b)](_0x177257))return _0x177257;if(_0x177257&&typeof _0x177257==='object')return _0x177257['tableData']??[];return[];}export function extractPaging(_0x17009e){var _0x4d664d=a101_0x435c;if(_0x17009e&&typeof _0x17009e===_0x4d664d(0x7f)&&!Array[_0x4d664d(0x7b)](_0x17009e))return _0x17009e['paging'];return undefined;}
1
+ (function(_0x36f3d1,_0x4c4b6e){var _0x32cd80=a102_0x3634,_0x26c2cc=_0x36f3d1();while(!![]){try{var _0x32834c=parseInt(_0x32cd80(0x9e))/0x1*(-parseInt(_0x32cd80(0x9d))/0x2)+parseInt(_0x32cd80(0x9b))/0x3*(parseInt(_0x32cd80(0xa0))/0x4)+parseInt(_0x32cd80(0x98))/0x5*(-parseInt(_0x32cd80(0x99))/0x6)+parseInt(_0x32cd80(0xa1))/0x7+parseInt(_0x32cd80(0x9f))/0x8+-parseInt(_0x32cd80(0xa3))/0x9*(-parseInt(_0x32cd80(0xa2))/0xa)+-parseInt(_0x32cd80(0x9c))/0xb*(-parseInt(_0x32cd80(0xa5))/0xc);if(_0x32834c===_0x4c4b6e)break;else _0x26c2cc['push'](_0x26c2cc['shift']());}catch(_0x359127){_0x26c2cc['push'](_0x26c2cc['shift']());}}}(a102_0x238d,0xd8a4b));export function extractList(_0x48d4fd){var _0x3c3cc1=a102_0x3634;if(Array[_0x3c3cc1(0x9a)](_0x48d4fd))return _0x48d4fd;if(_0x48d4fd&&typeof _0x48d4fd===_0x3c3cc1(0x97))return _0x48d4fd[_0x3c3cc1(0xa4)]??[];return[];}function a102_0x3634(_0x4b95c8,_0x3e5fe7){_0x4b95c8=_0x4b95c8-0x97;var _0x238d11=a102_0x238d();var _0x363491=_0x238d11[_0x4b95c8];return _0x363491;}export function extractPaging(_0x150606){var _0x4df71d=a102_0x3634;if(_0x150606&&typeof _0x150606==='object'&&!Array[_0x4df71d(0x9a)](_0x150606))return _0x150606['paging'];return undefined;}function a102_0x238d(){var _0x19baf2=['312763YTnrsH','4461944DHDmLk','30536XGYvwP','6158691fgXSCb','67090KVfDeF','414DcjAbY','tableData','213564ZvWpSb','object','75BVuGrC','445242pVUNRM','isArray','48muPcVR','275cWAzqS','2lRifZp'];a102_0x238d=function(){return _0x19baf2;};return a102_0x238d();}
@@ -1 +1 @@
1
- (function(_0xbbd66f,_0x599b62){const _0x1c7a8c=a102_0x36d0,_0x2c9b9b=_0xbbd66f();while(!![]){try{const _0x37b215=parseInt(_0x1c7a8c(0xea))/0x1*(-parseInt(_0x1c7a8c(0xba))/0x2)+parseInt(_0x1c7a8c(0xcc))/0x3+parseInt(_0x1c7a8c(0xdd))/0x4*(parseInt(_0x1c7a8c(0xe7))/0x5)+-parseInt(_0x1c7a8c(0xa9))/0x6+-parseInt(_0x1c7a8c(0xec))/0x7*(parseInt(_0x1c7a8c(0xd4))/0x8)+parseInt(_0x1c7a8c(0xf3))/0x9*(parseInt(_0x1c7a8c(0xf4))/0xa)+parseInt(_0x1c7a8c(0xbc))/0xb;if(_0x37b215===_0x599b62)break;else _0x2c9b9b['push'](_0x2c9b9b['shift']());}catch(_0x1b09f3){_0x2c9b9b['push'](_0x2c9b9b['shift']());}}}(a102_0x26a1,0x29b4d));function a102_0x36d0(_0x4c0c2f,_0x58609a){_0x4c0c2f=_0x4c0c2f-0xa9;const _0x26a161=a102_0x26a1();let _0x36d095=_0x26a161[_0x4c0c2f];return _0x36d095;}import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';function a102_0x26a1(){const _0x335fb3=['`\x20has\x20risk\x20level\x20\x22','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','toLowerCase','cookie','format','alias','table','apiDomain','code','node:readline','757137FoYvOC','dry-run','cancelled','risk','question','Command\x20`','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','isNonInteractive','18536abFCcJ','command','defaultVerbose','\x22.\x20','Set\x20appcode\x20via\x20`','dryRun','appCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','createInterface','1268hiuayn','../core/api-client.js','configMissing','requiresAuth','high-risk-write','resolveCookie','defaultFormat','apiDir','verbose','hasFormat','3415AyxGXE','riskLevel','yes','70tbqFgR','rawFlags','413Lonkss','string','json','.\x20Run\x20`','stderr','Operation\x20cancelled\x20by\x20user.','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','3609KZmySQ','4190Scfmqn','\x22.\x0a','1005510NQIdMX','--dry-run\x20is\x20not\x20supported\x20for\x20`','Unknown\x20alias\x20\x22','type','requiresAppCode','nonInteractive','join','selectedAppName','Available\x20aliases:\x20','name','resolveApiDomain','pretty','defaultPageSize','stdin','authRequired','map','pagesize','5046HlqyFI','flags','162998dNfruW','validate','./src/api','validation','number'];a102_0x26a1=function(){return _0x335fb3;};return a102_0x26a1();}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(_0x24b02c,_0x268610){const _0x553859=a102_0x36d0,_0x22e861=CLI_BIN_NAME+'\x20'+_0x24b02c['service']+'\x20'+_0x24b02c[_0x553859(0xd5)],_0x284e68=parseFlags(_0x24b02c[_0x553859(0xbb)],_0x268610[_0x553859(0xeb)]);validateFlags(_0x24b02c[_0x553859(0xbb)],_0x284e68,_0x22e861);if(!_0x284e68[_0x553859(0xcd)]&&_0x268610[_0x553859(0xe8)]&&riskLevelOrder(_0x24b02c['risk'])>riskLevelOrder(_0x268610['riskLevel']))throw CliErrors['validation'](_0x553859(0xd1)+_0x22e861+_0x553859(0xc1)+_0x24b02c[_0x553859(0xcf)]+_0x553859(0xf2)+_0x268610[_0x553859(0xe8)]+_0x553859(0xf5)+_0x553859(0xd2));const _0x565182=_0x268610[_0x553859(0xe4)]||_0x553859(0xbe);resolveAliasToCode(_0x24b02c,_0x284e68,_0x565182,_0x22e861);let _0x2b28c0='';if(_0x24b02c[_0x553859(0xe0)]!==![]){_0x2b28c0=_0x268610[_0x553859(0xe2)]();if(!_0x2b28c0)throw CliErrors[_0x553859(0xb7)]();const {setActiveCookie:_0x3742b5}=await import(_0x553859(0xde));_0x3742b5(_0x2b28c0);}let _0x978c92='';if(_0x24b02c[_0x553859(0xad)]!==![]){_0x978c92=_0x268610['resolveAppCode']()??'';if(!_0x978c92)throw CliErrors[_0x553859(0xdf)](_0x553859(0xd8)+CLI_BIN_NAME+_0x553859(0xdb));}const _0x495657=resolveFormat(_0x284e68,_0x24b02c,_0x268610[_0x553859(0xe3)]),_0x6682c0=buildRuntimeContext({'appCode':_0x978c92,'cookie':_0x2b28c0,'apiDomain':_0x268610[_0x553859(0xb3)](),'format':_0x495657,'flags':_0x284e68,'def':_0x24b02c,'nonInteractive':_0x268610[_0x553859(0xd3)],'defaultPageSize':_0x268610['defaultPageSize'],'defaultVerbose':_0x268610[_0x553859(0xd6)],'apiDir':_0x565182,'selectedAppName':_0x268610['selectedAppName']});_0x24b02c[_0x553859(0xbd)]&&await _0x24b02c[_0x553859(0xbd)](_0x6682c0);if(_0x284e68[_0x553859(0xcd)]){if(!_0x24b02c[_0x553859(0xd9)])throw CliErrors[_0x553859(0xbf)](_0x553859(0xaa)+_0x22e861+'`.');const _0xb06765=await _0x24b02c['dryRun'](_0x6682c0);formatOutput({'ok':!![],'data':_0xb06765},{'command':_0x22e861,'risk':_0x24b02c[_0x553859(0xcf)],'format':_0x495657,'dryRun':!![]});return;}if(_0x24b02c[_0x553859(0xcf)]===_0x553859(0xe1)&&!_0x284e68[_0x553859(0xe9)]){if(_0x268610['isNonInteractive'])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x22e861+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x22e861);}const _0x27c633=await _0x24b02c['execute'](_0x6682c0);formatOutput(_0x27c633,{'command':_0x22e861,'risk':_0x24b02c[_0x553859(0xcf)],'format':_0x495657});}function buildRuntimeContext(_0x2ae8ab){const _0x43f8a8=a102_0x36d0,{flags:_0x16201e,def:_0x217dce}=_0x2ae8ab,_0x3b3ab6=CLI_BIN_NAME+'\x20'+_0x217dce['service']+'\x20'+_0x217dce[_0x43f8a8(0xd5)];return{'appCode':_0x2ae8ab[_0x43f8a8(0xda)],'cookie':_0x2ae8ab[_0x43f8a8(0xc5)],'apiDomain':_0x2ae8ab[_0x43f8a8(0xc9)],'format':_0x2ae8ab[_0x43f8a8(0xc6)],'nonInteractive':_0x2ae8ab[_0x43f8a8(0xae)],'apiDir':_0x2ae8ab[_0x43f8a8(0xe4)],'selectedAppName':_0x2ae8ab[_0x43f8a8(0xb0)],'str'(_0x12602b){return String(_0x16201e[_0x12602b]??'');},'bool'(_0x3747ee){const _0x53eae8=_0x43f8a8;if(_0x16201e[_0x3747ee]===!![])return!![];if(_0x3747ee===_0x53eae8(0xe5)&&_0x2ae8ab[_0x53eae8(0xd6)])return!![];return![];},'num'(_0x2cebc8,_0x3f9384){const _0x2d9577=_0x43f8a8,_0xe74a1d=_0x16201e[_0x2cebc8];if(typeof _0xe74a1d===_0x2d9577(0xc0))return _0xe74a1d;if(_0x2cebc8===_0x2d9577(0xb9)&&_0x2ae8ab[_0x2d9577(0xb5)]!=null)return _0x2ae8ab[_0x2d9577(0xb5)];return _0x3f9384??0x0;},'flag'(_0x19aa44){return _0x16201e[_0x19aa44];},'output'(_0x9b3937){const _0x3202bd=_0x43f8a8;formatOutput(_0x9b3937,{'command':_0x3b3ab6,'risk':_0x217dce[_0x3202bd(0xcf)],'format':_0x2ae8ab[_0x3202bd(0xc6)]});}};}function resolveFormat(_0x153db0,_0x58dacb,_0x564b48){const _0x48dcfe=a102_0x36d0;if(_0x58dacb[_0x48dcfe(0xe6)]===![])return'pretty';const _0x17d110=_0x153db0[_0x48dcfe(0xc6)];if(_0x17d110===_0x48dcfe(0xee)||_0x17d110===_0x48dcfe(0xb4)||_0x17d110===_0x48dcfe(0xc8))return _0x17d110;if(_0x564b48)return _0x564b48;return _0x48dcfe(0xb4);}async function requireConfirmation(_0xa4e138){const _0x527e4d=a102_0x36d0,_0x30eb1b=await import(_0x527e4d(0xcb)),_0x12d50b=_0x30eb1b[_0x527e4d(0xdc)]({'input':process[_0x527e4d(0xb6)],'output':process[_0x527e4d(0xf0)]});return new Promise((_0x49b537,_0x421e67)=>{const _0x1f173b=_0x527e4d;_0x12d50b[_0x1f173b(0xd0)]('⚠\x20\x20High-risk\x20operation:\x20'+_0xa4e138+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x3d8c1a=>{const _0x21c8be=_0x1f173b;_0x12d50b['close'](),_0x3d8c1a[_0x21c8be(0xc4)]()==='y'||_0x3d8c1a[_0x21c8be(0xc4)]()===_0x21c8be(0xe9)?_0x49b537():_0x421e67(CliErrors[_0x21c8be(0xce)](_0x21c8be(0xf1)));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x36170a){return RISK_ORDER[_0x36170a??'read']??0x0;}function resolveAliasToCode(_0x51c695,_0x4fbedf,_0x19a8ba,_0x1f83c0){const _0x179f75=a102_0x36d0,_0x4c0732=_0x51c695[_0x179f75(0xbb)][_0x179f75(0xc2)](_0xf07bf8=>_0xf07bf8['name']===_0x179f75(0xca)&&_0xf07bf8[_0x179f75(0xac)]===_0x179f75(0xed)),_0x530b97=_0x51c695[_0x179f75(0xbb)][_0x179f75(0xc2)](_0x2daf5b=>_0x2daf5b[_0x179f75(0xb2)]===_0x179f75(0xc7)&&_0x2daf5b[_0x179f75(0xac)]==='string');if(!_0x4c0732||!_0x530b97)return;const _0x2285e0=_0x4fbedf[_0x179f75(0xca)]?String(_0x4fbedf[_0x179f75(0xca)]):'',_0x3417b1=_0x4fbedf[_0x179f75(0xc7)]?String(_0x4fbedf['alias']):'';if(!_0x2285e0&&!_0x3417b1)throw CliErrors[_0x179f75(0xbf)]('`'+_0x1f83c0+_0x179f75(0xc3));if(_0x3417b1&&!_0x2285e0){const _0x46fcf4=resolveAlias(_0x19a8ba,_0x3417b1);if(!_0x46fcf4){const _0x1cd89c=listAliases(_0x19a8ba)[_0x179f75(0xb8)](_0x7bec3a=>_0x7bec3a[_0x179f75(0xc7)]),_0x1d3443=_0x1cd89c['length']?_0x179f75(0xb1)+_0x1cd89c[_0x179f75(0xaf)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x19a8ba+_0x179f75(0xef)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x179f75(0xbf)](_0x179f75(0xab)+_0x3417b1+_0x179f75(0xd7)+_0x1d3443);}_0x4fbedf['code']=_0x46fcf4;}}
1
+ (function(_0x1889ab,_0x1bee83){const _0x5d8e89=a103_0xbd54,_0x1f01b9=_0x1889ab();while(!![]){try{const _0x426d03=parseInt(_0x5d8e89(0x1eb))/0x1*(parseInt(_0x5d8e89(0x1d3))/0x2)+-parseInt(_0x5d8e89(0x1b8))/0x3*(parseInt(_0x5d8e89(0x1da))/0x4)+parseInt(_0x5d8e89(0x1e9))/0x5+-parseInt(_0x5d8e89(0x1ec))/0x6+-parseInt(_0x5d8e89(0x1ef))/0x7+-parseInt(_0x5d8e89(0x1dd))/0x8*(-parseInt(_0x5d8e89(0x1e1))/0x9)+parseInt(_0x5d8e89(0x1c1))/0xa*(parseInt(_0x5d8e89(0x1c8))/0xb);if(_0x426d03===_0x1bee83)break;else _0x1f01b9['push'](_0x1f01b9['shift']());}catch(_0x296e03){_0x1f01b9['push'](_0x1f01b9['shift']());}}}(a103_0x218b,0x9f30f));import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';function a103_0x218b(){const _0x371f28=['name','yes','some','json','Set\x20appcode\x20via\x20`','resolveApiDomain','\x20api\x20pull`\x20first.','validation','string','144717iTJeiz','selectedAppName','flags','high-risk-write','apiDir','authRequired','--dry-run\x20is\x20not\x20supported\x20for\x20`','.\x20Run\x20`','⚠\x20\x20High-risk\x20operation:\x20','70VLMfxG','rawFlags','`\x20has\x20risk\x20level\x20\x22','requiresAuth','configMissing','validate','service','4026264BMbiXm','createInterface','format','appCode','command','Command\x20`','cookie','defaultPageSize','Operation\x20cancelled\x20by\x20user.','isNonInteractive','verbose','2CIkBEf','risk','map','code','`\x20requires\x20either\x20--code\x20or\x20--alias.','node:readline','resolveCookie','76VxtfCB','resolveAppCode','\x22.\x0a','3833528XtLYKB','type','defaultVerbose','pretty','9Mnuwii','Unknown\x20alias\x20\x22','./src/api','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','../core/api-client.js','table','length','278785IYjsSJ','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','281291arQoVf','6562332InBUIc','toLowerCase','riskLevel','5012679Rfmtja','apiDomain','execute','cancelled','Available\x20aliases:\x20','nonInteractive','question','dryRun','stdin','defaultFormat','alias','dry-run'];a103_0x218b=function(){return _0x371f28;};return a103_0x218b();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x2f55e9,_0x39da02){const _0x32c1bc=a103_0xbd54,_0x405235=CLI_BIN_NAME+'\x20'+_0x2f55e9[_0x32c1bc(0x1c7)]+'\x20'+_0x2f55e9[_0x32c1bc(0x1cc)],_0x23d4a1=parseFlags(_0x2f55e9['flags'],_0x39da02[_0x32c1bc(0x1c2)]);validateFlags(_0x2f55e9[_0x32c1bc(0x1ba)],_0x23d4a1,_0x405235);if(!_0x23d4a1[_0x32c1bc(0x1ae)]&&_0x39da02[_0x32c1bc(0x1ee)]&&riskLevelOrder(_0x2f55e9['risk'])>riskLevelOrder(_0x39da02[_0x32c1bc(0x1ee)]))throw CliErrors['validation'](_0x32c1bc(0x1cd)+_0x405235+_0x32c1bc(0x1c3)+_0x2f55e9[_0x32c1bc(0x1d4)]+_0x32c1bc(0x1e5)+_0x39da02[_0x32c1bc(0x1ee)]+_0x32c1bc(0x1dc)+_0x32c1bc(0x1ea));const _0x2460c8=_0x39da02[_0x32c1bc(0x1bc)]||_0x32c1bc(0x1e3);resolveAliasToCode(_0x2f55e9,_0x23d4a1,_0x2460c8,_0x405235);let _0x3c4d47='';if(_0x2f55e9[_0x32c1bc(0x1c4)]!==![]){_0x3c4d47=_0x39da02[_0x32c1bc(0x1d9)]();if(!_0x3c4d47)throw CliErrors[_0x32c1bc(0x1bd)]();const {setActiveCookie:_0x4b1b05}=await import(_0x32c1bc(0x1e6));_0x4b1b05(_0x3c4d47);}let _0x166575='';if(_0x2f55e9['requiresAppCode']!==![]){_0x166575=_0x39da02[_0x32c1bc(0x1db)]()??'';if(!_0x166575)throw CliErrors[_0x32c1bc(0x1c5)](_0x32c1bc(0x1b3)+CLI_BIN_NAME+_0x32c1bc(0x1e4));}const _0x21d44f=resolveFormat(_0x23d4a1,_0x2f55e9,_0x39da02[_0x32c1bc(0x1ac)]),_0x44abb6=buildRuntimeContext({'appCode':_0x166575,'cookie':_0x3c4d47,'apiDomain':_0x39da02[_0x32c1bc(0x1b4)](),'format':_0x21d44f,'flags':_0x23d4a1,'def':_0x2f55e9,'nonInteractive':_0x39da02[_0x32c1bc(0x1d1)],'defaultPageSize':_0x39da02[_0x32c1bc(0x1cf)],'defaultVerbose':_0x39da02[_0x32c1bc(0x1df)],'apiDir':_0x2460c8,'selectedAppName':_0x39da02['selectedAppName']});_0x2f55e9['validate']&&await _0x2f55e9[_0x32c1bc(0x1c6)](_0x44abb6);if(_0x23d4a1['dry-run']){if(!_0x2f55e9[_0x32c1bc(0x1f6)])throw CliErrors['validation'](_0x32c1bc(0x1be)+_0x405235+'`.');const _0x3cc8c7=await _0x2f55e9[_0x32c1bc(0x1f6)](_0x44abb6);formatOutput({'ok':!![],'data':_0x3cc8c7},{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f,'dryRun':!![]});return;}if(_0x2f55e9[_0x32c1bc(0x1d4)]===_0x32c1bc(0x1bb)&&!_0x23d4a1[_0x32c1bc(0x1b0)]){if(_0x39da02['isNonInteractive'])throw CliErrors[_0x32c1bc(0x1b6)]('High-risk\x20operation\x20`'+_0x405235+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x405235);}const _0x2554c0=await _0x2f55e9[_0x32c1bc(0x1f1)](_0x44abb6);formatOutput(_0x2554c0,{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f});}function buildRuntimeContext(_0x5e4139){const _0xb036ce=a103_0xbd54,{flags:_0x56c40d,def:_0x334b62}=_0x5e4139,_0x3b6950=CLI_BIN_NAME+'\x20'+_0x334b62['service']+'\x20'+_0x334b62['command'];return{'appCode':_0x5e4139[_0xb036ce(0x1cb)],'cookie':_0x5e4139[_0xb036ce(0x1ce)],'apiDomain':_0x5e4139[_0xb036ce(0x1f0)],'format':_0x5e4139[_0xb036ce(0x1ca)],'nonInteractive':_0x5e4139[_0xb036ce(0x1f4)],'apiDir':_0x5e4139[_0xb036ce(0x1bc)],'selectedAppName':_0x5e4139[_0xb036ce(0x1b9)],'str'(_0x3eca55){return String(_0x56c40d[_0x3eca55]??'');},'bool'(_0x48425e){const _0x38f102=_0xb036ce;if(_0x56c40d[_0x48425e]===!![])return!![];if(_0x48425e===_0x38f102(0x1d2)&&_0x5e4139['defaultVerbose'])return!![];return![];},'num'(_0x19fc5f,_0x62f137){const _0x59c6cb=_0xb036ce,_0x24ab61=_0x56c40d[_0x19fc5f];if(typeof _0x24ab61==='number')return _0x24ab61;if(_0x19fc5f==='pagesize'&&_0x5e4139['defaultPageSize']!=null)return _0x5e4139[_0x59c6cb(0x1cf)];return _0x62f137??0x0;},'flag'(_0x2eb17e){return _0x56c40d[_0x2eb17e];},'output'(_0x4b1e){const _0x282026=_0xb036ce;formatOutput(_0x4b1e,{'command':_0x3b6950,'risk':_0x334b62[_0x282026(0x1d4)],'format':_0x5e4139[_0x282026(0x1ca)]});}};}function a103_0xbd54(_0x2dd9b0,_0x39ca08){_0x2dd9b0=_0x2dd9b0-0x1ac;const _0x218b43=a103_0x218b();let _0xbd548b=_0x218b43[_0x2dd9b0];return _0xbd548b;}function resolveFormat(_0x3532a8,_0x24549e,_0x4430a8){const _0x258f32=a103_0xbd54;if(_0x24549e['hasFormat']===![])return _0x258f32(0x1e0);const _0x164699=_0x3532a8['format'];if(_0x164699===_0x258f32(0x1b2)||_0x164699==='pretty'||_0x164699===_0x258f32(0x1e7))return _0x164699;if(_0x4430a8)return _0x4430a8;return _0x258f32(0x1e0);}async function requireConfirmation(_0x34b871){const _0x1c60b3=a103_0xbd54,_0x10448b=await import(_0x1c60b3(0x1d8)),_0xe310ae=_0x10448b[_0x1c60b3(0x1c9)]({'input':process[_0x1c60b3(0x1f7)],'output':process['stderr']});return new Promise((_0x4b5819,_0x2b04ea)=>{const _0x5e7975=_0x1c60b3;_0xe310ae[_0x5e7975(0x1f5)](_0x5e7975(0x1c0)+_0x34b871+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x1f971f=>{const _0x2d4c03=_0x5e7975;_0xe310ae['close'](),_0x1f971f[_0x2d4c03(0x1ed)]()==='y'||_0x1f971f[_0x2d4c03(0x1ed)]()===_0x2d4c03(0x1b0)?_0x4b5819():_0x2b04ea(CliErrors[_0x2d4c03(0x1f2)](_0x2d4c03(0x1d0)));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x37e503){return RISK_ORDER[_0x37e503??'read']??0x0;}function resolveAliasToCode(_0x4acad8,_0x554ada,_0x4f514f,_0x519f3b){const _0xf766bc=a103_0xbd54,_0x3eba88=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x3991f2=>_0x3991f2['name']==='code'&&_0x3991f2[_0xf766bc(0x1de)]===_0xf766bc(0x1b7)),_0x5506e4=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x543756=>_0x543756[_0xf766bc(0x1af)]==='alias'&&_0x543756[_0xf766bc(0x1de)]===_0xf766bc(0x1b7));if(!_0x3eba88||!_0x5506e4)return;const _0x30d9b5=_0x554ada[_0xf766bc(0x1d6)]?String(_0x554ada['code']):'',_0x5448fc=_0x554ada['alias']?String(_0x554ada['alias']):'';if(!_0x30d9b5&&!_0x5448fc)throw CliErrors['validation']('`'+_0x519f3b+_0xf766bc(0x1d7));if(_0x5448fc&&!_0x30d9b5){const _0x3b0aea=resolveAlias(_0x4f514f,_0x5448fc);if(!_0x3b0aea){const _0x55ae44=listAliases(_0x4f514f)[_0xf766bc(0x1d5)](_0x43603a=>_0x43603a[_0xf766bc(0x1ad)]),_0x575756=_0x55ae44[_0xf766bc(0x1e8)]?_0xf766bc(0x1f3)+_0x55ae44['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4f514f+_0xf766bc(0x1bf)+CLI_BIN_NAME+_0xf766bc(0x1b5);throw CliErrors['validation'](_0xf766bc(0x1e2)+_0x5448fc+'\x22.\x20'+_0x575756);}_0x554ada[_0xf766bc(0x1d6)]=_0x3b0aea;}}
@@ -1 +1 @@
1
- export const BUILD_NUMBER=0x34;
1
+ export const BUILD_NUMBER=0x35;
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x59c04d,_0x1d992a){var _0x181a90=a105_0x38c2,_0x58a2f2=_0x59c04d();while(!![]){try{var _0x1156f2=-parseInt(_0x181a90(0x151))/0x1+parseInt(_0x181a90(0x14f))/0x2+parseInt(_0x181a90(0x150))/0x3+parseInt(_0x181a90(0x153))/0x4+parseInt(_0x181a90(0x154))/0x5*(parseInt(_0x181a90(0x15b))/0x6)+-parseInt(_0x181a90(0x156))/0x7*(parseInt(_0x181a90(0x152))/0x8)+-parseInt(_0x181a90(0x159))/0x9*(parseInt(_0x181a90(0x15a))/0xa);if(_0x1156f2===_0x1d992a)break;else _0x58a2f2['push'](_0x58a2f2['shift']());}catch(_0x5992fd){_0x58a2f2['push'](_0x58a2f2['shift']());}}}(a105_0x3ad5,0x5f1a9));function a105_0x38c2(_0x187e0d,_0x182a8f){_0x187e0d=_0x187e0d-0x14f;var _0x3ad5f5=a105_0x3ad5();var _0x38c27d=_0x3ad5f5[_0x187e0d];return _0x38c27d;}import{jsx as a105_0x4ff50b,jsxs as a105_0x2786fa}from'react/jsx-runtime';function a105_0x3ad5(){var _0x5a9695=['1291704PAygTJ','588393HCKkVp','400410AOVPII','464SWCPwk','2303512DTTvUh','755OXKBUU','\x20\x20Rabetbase\x20CLI','43057zaYsNi','\x20--help','\x20\x20Use\x20','63BmYlAT','538570FBDfRg','4206WAbVXt','green'];a105_0x3ad5=function(){return _0x5a9695;};return a105_0x3ad5();}import{Box,Text}from'ink';import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x55c591=a105_0x38c2;return a105_0x2786fa(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a105_0x4ff50b(Box,{'children':a105_0x4ff50b(Text,{'bold':!![],'color':_0x55c591(0x15c),'children':_0x55c591(0x155)})}),a105_0x2786fa(Box,{'marginTop':0x1,'children':[a105_0x4ff50b(Text,{'dimColor':!![],'children':_0x55c591(0x158)}),a105_0x4ff50b(Text,{'bold':!![],'color':_0x55c591(0x15c),'children':CLI_BIN_NAME+_0x55c591(0x157)}),a105_0x4ff50b(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x38cec5,_0x154f33){var _0x437800=a106_0x5353,_0x4d3f92=_0x38cec5();while(!![]){try{var _0x562131=-parseInt(_0x437800(0xb3))/0x1+parseInt(_0x437800(0xac))/0x2+parseInt(_0x437800(0xb0))/0x3*(parseInt(_0x437800(0xb5))/0x4)+parseInt(_0x437800(0xad))/0x5+parseInt(_0x437800(0xb4))/0x6+-parseInt(_0x437800(0xa9))/0x7+parseInt(_0x437800(0xaf))/0x8*(-parseInt(_0x437800(0xb1))/0x9);if(_0x562131===_0x154f33)break;else _0x4d3f92['push'](_0x4d3f92['shift']());}catch(_0x2e5700){_0x4d3f92['push'](_0x4d3f92['shift']());}}}(a106_0x4926,0x2f4f5));function a106_0x5353(_0x3acba8,_0x4b59f9){_0x3acba8=_0x3acba8-0xa9;var _0x49261b=a106_0x4926();var _0x535303=_0x49261b[_0x3acba8];return _0x535303;}import{jsx as a106_0x4541c5,jsxs as a106_0x5cf18a}from'react/jsx-runtime';import{Box,Text}from'ink';function a106_0x4926(){var _0x4de9ea=['343366gBWyzv','1904720mJtyQs','\x20to\x20view\x20available\x20commands.','16NGwyHV','9ffZDgO','491823cisdjT','\x20--help','374949gyDJvX','698496NGwHlk','415464eHLVXn','2118319yrqEOI','green','\x20\x20Use\x20'];a106_0x4926=function(){return _0x4de9ea;};return a106_0x4926();}import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x331fe7=a106_0x5353;return a106_0x5cf18a(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a106_0x4541c5(Box,{'children':a106_0x4541c5(Text,{'bold':!![],'color':_0x331fe7(0xaa),'children':'\x20\x20Rabetbase\x20CLI'})}),a106_0x5cf18a(Box,{'marginTop':0x1,'children':[a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xab)}),a106_0x4541c5(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x331fe7(0xb2)}),a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xae)})]})]});}
package/lib/init/main.js CHANGED
@@ -1 +1 @@
1
- const a106_0x51a78b=a106_0x56ee;(function(_0x134ac2,_0x146c55){const _0x3dfaec=a106_0x56ee,_0x83e53e=_0x134ac2();while(!![]){try{const _0x48b826=parseInt(_0x3dfaec(0x15c))/0x1+parseInt(_0x3dfaec(0x157))/0x2*(parseInt(_0x3dfaec(0x132))/0x3)+parseInt(_0x3dfaec(0x15a))/0x4*(-parseInt(_0x3dfaec(0x15f))/0x5)+-parseInt(_0x3dfaec(0x13f))/0x6*(parseInt(_0x3dfaec(0x153))/0x7)+parseInt(_0x3dfaec(0x148))/0x8*(-parseInt(_0x3dfaec(0x123))/0x9)+parseInt(_0x3dfaec(0x147))/0xa*(parseInt(_0x3dfaec(0x166))/0xb)+-parseInt(_0x3dfaec(0x15e))/0xc*(-parseInt(_0x3dfaec(0x134))/0xd);if(_0x48b826===_0x146c55)break;else _0x83e53e['push'](_0x83e53e['shift']());}catch(_0x3f3b4a){_0x83e53e['push'](_0x83e53e['shift']());}}}(a106_0x380c,0xbd60d));function a106_0x56ee(_0x3f0616,_0x178c1e){_0x3f0616=_0x3f0616-0x11e;const _0x380cb6=a106_0x380c();let _0x56ee99=_0x380cb6[_0x3f0616];return _0x56ee99;}import{jsxs as a106_0x187a2b,jsx as a106_0x2981e5}from'react/jsx-runtime';import{useState,useEffect}from'react';function a106_0x380c(){const _0x10b38e=['utf8','cyan','gray','.lovrabet.json','legacy\x20config','yellow','checking','version','App\x20Code\x20cannot\x20be\x20empty','escape','error','return','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','20565MEoMeE','appcode','2405LhkiZG','exit','\x20→\x20.rabetbase.json','app','migrating-input','\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak','string','Invalid\x20App\x20Code','创建配置文件失败','parse','1.0.0','30dZOrut','Error:\x20','split','success','production','slice','pop','message','2060hCaCwq','1464mGyqyp','AppCode','.bak','[Y/n]','初始化项目配置文件成功','cwd','Upgrade\x20it\x20to\x20','../..','red','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','package.json','641795tzFidN','init','Initializing\x20configuration\x20file...','setLogPath','90QVHnUz','log','Old\x20file\x20backed\x20up\x20as\x20','3731132OeKQyr','migrating','328260ayElAP','delete','149484JMnHVL','5WIaKay','length','createdAt','green','trim','column','keys','8789RVpvuo','.lovrabetrc','init-input','✓\x20Upgraded\x20','.rabetbase.json','env','升级配置文件失败','\x20←\x20','46179hhKRQq','info'];a106_0x380c=function(){return _0x10b38e;};return a106_0x380c();}import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a106_0x51a78b(0x128),a106_0x51a78b(0x167)];export function Init({appcode:_0x33c740,env:_0x400e60,autoYes:_0x100aa9}){const _0x3934cb=a106_0x51a78b,[_0x2645f2,_0x1f6e3a]=useState(_0x3934cb(0x12b)),[_0x27c2db,_0x83a497]=useState(null),[_0x3f9564,_0x35f99f]=useState(![]),[_0x3e55e4,_0x5b0c2a]=useState(!_0x33c740),[_0x5086a3,_0x2de824]=useState(''),[_0x3cca8b,_0xac74ee]=useState(''),[_0x45c5cd,_0x1f58c5]=useState(_0x33c740||''),[_0x37365b]=useState(_0x400e60),[_0x1b1cb0,_0xa61409]=useState(),[_0x13ad49,_0x236607]=useState({});function _0x2b251f(_0x1a9121){const _0x5af1b9=_0x3934cb;if(_0x1a9121[_0x5af1b9(0x160)]===0x0)return{'valid':![],'message':''};if(_0x1a9121[_0x5af1b9(0x160)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};const _0x24ecb9=/^[A-Za-z0-9_-]+$/;if(!_0x24ecb9['test'](_0x1a9121))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x67d844,_0x4ff4fe)=>{const _0x19f57d=_0x3934cb;if(_0x2645f2===_0x19f57d(0x138)){if(_0x4ff4fe[_0x19f57d(0x130)]||_0x67d844==='y'||_0x67d844==='Y')_0x1f6e3a(_0x19f57d(0x15b));else{if(_0x67d844==='n'||_0x67d844==='N'||_0x4ff4fe[_0x19f57d(0x12e)])console[_0x19f57d(0x158)]('\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.'),process['exit'](0x0);else _0x4ff4fe['ctrl']&&_0x67d844==='c'&&process['exit'](0x0);}return;}if(!_0x3e55e4)return;if(_0x4ff4fe[_0x19f57d(0x130)]){if(_0x3cca8b||!_0x5086a3[_0x19f57d(0x163)]()){_0xac74ee(_0x19f57d(0x12d));return;}const _0x2df6da=_0x5086a3[_0x19f57d(0x163)](),{valid:_0x1867c4,message:_0x4c0510}=_0x2b251f(_0x2df6da);if(!_0x1867c4){_0xac74ee(_0x4c0510||_0x19f57d(0x13b));return;}_0x1f58c5(_0x2df6da),_0x5b0c2a(![]);}else{if(_0x4ff4fe['backspace']||_0x4ff4fe[_0x19f57d(0x15d)])_0x2de824(_0x3ea0d1=>{const _0x1d2079=_0x19f57d,_0x83cc55=_0x3ea0d1[_0x1d2079(0x144)](0x0,-0x1);return _0xac74ee(_0x83cc55[_0x1d2079(0x160)]===0x0?'':_0x2b251f(_0x83cc55)['message']||''),_0x83cc55;});else _0x4ff4fe['ctrl']&&_0x67d844==='c'?process[_0x19f57d(0x135)](0x0):_0x2de824(_0x362ddb=>{const _0x377338=_0x19f57d,_0x41bed3=_0x362ddb+_0x67d844;return _0xac74ee(_0x2b251f(_0x41bed3)[_0x377338(0x146)]||''),_0x41bed3;});}},{'isActive':_0x2645f2===_0x3934cb(0x138)||_0x2645f2===_0x3934cb(0x168)}),useEffect(()=>{const _0x312422=_0x3934cb;if(_0x2645f2!==_0x312422(0x12b))return;const _0x32bcf4=process['cwd']();if(getProjectConfigPath()){_0x83a497('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.'),_0x1f6e3a(_0x312422(0x12f)),setTimeout(()=>process[_0x312422(0x135)](0x1),0x64);return;}let _0x105c64;for(const _0x50d3c2 of LEGACY_CONFIG_NAMES){const _0x5c045c=resolve(_0x32bcf4,_0x50d3c2);if(existsSync(_0x5c045c)){_0x105c64=_0x5c045c;break;}}if(_0x105c64){_0xa61409(_0x105c64);try{const _0x3c6cfc=readFileSync(_0x105c64,_0x312422(0x125));_0x236607(JSON[_0x312422(0x13d)](_0x3c6cfc));}catch{_0x236607({});}_0x100aa9?_0x1f6e3a(_0x312422(0x15b)):_0x1f6e3a(_0x312422(0x138));return;}_0x1f6e3a('init-input'),!_0x33c740?_0x5b0c2a(!![]):_0x5b0c2a(![]);},[_0x2645f2,_0x100aa9,_0x33c740]),useEffect(()=>{const _0x4c83f3=_0x3934cb;if(_0x2645f2!==_0x4c83f3(0x15b))return;const _0x366e85=process[_0x4c83f3(0x14d)](),_0x1d406f=resolve(_0x366e85,NEW_CONFIG_NAME);try{const _0x10e160=fileURLToPath(import.meta.url),_0x27cd0e=resolve(dirname(_0x10e160),'../..'),_0x1b7503=join(_0x27cd0e,_0x4c83f3(0x152));let _0xa5a570=_0x4c83f3(0x13e);try{const _0x302964=JSON[_0x4c83f3(0x13d)](readFileSync(_0x1b7503,_0x4c83f3(0x125)));_0xa5a570=_0x302964[_0x4c83f3(0x12c)]||_0x4c83f3(0x13e);}catch{}const _0x1e243a=readRawConfig(),_0x43d987={..._0x1e243a,..._0x13ad49,'version':_0xa5a570,'migratedAt':new Date()['toLocaleString'](),'migratedFrom':_0x1b1cb0};if(!_0x43d987[_0x4c83f3(0x133)]&&!_0x43d987[_0x4c83f3(0x137)]){if(!_0x33c740){_0x236607(_0x43d987),_0x1f6e3a(_0x4c83f3(0x168)),_0x5b0c2a(!![]);return;}_0x43d987[_0x4c83f3(0x133)]=_0x33c740;}if(_0x43d987[_0x4c83f3(0x120)]&&typeof _0x43d987['env']!==_0x4c83f3(0x13a))delete _0x43d987[_0x4c83f3(0x120)];else!_0x43d987[_0x4c83f3(0x120)]&&(_0x43d987[_0x4c83f3(0x120)]=_0x1e243a[_0x4c83f3(0x120)]||'production');writeConfigFile(_0x1d406f,_0x43d987);if(_0x1b1cb0){const _0x45d055=_0x1b1cb0+_0x4c83f3(0x14a);renameSync(_0x1b1cb0,_0x45d055);}logger[_0x4c83f3(0x156)](_0x366e85),logger[_0x4c83f3(0x124)](_0x4c83f3(0x154),'从旧配置文件升级成功',{'from':_0x1b1cb0,'to':_0x1d406f,'appcode':_0x43d987[_0x4c83f3(0x133)]||_0x43d987['app'],'env':_0x43d987[_0x4c83f3(0x120)]}),_0x35f99f(!![]),_0x1f6e3a(_0x4c83f3(0x142)),setTimeout(()=>process['exit'](0x0),0x64);}catch(_0x15e29d){logger[_0x4c83f3(0x12f)](_0x4c83f3(0x154),_0x4c83f3(0x121),{'error':_0x15e29d instanceof Error?_0x15e29d['message']:String(_0x15e29d)}),_0x83a497(_0x4c83f3(0x140)+(_0x15e29d instanceof Error?_0x15e29d[_0x4c83f3(0x146)]:String(_0x15e29d))),_0x1f6e3a(_0x4c83f3(0x12f)),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x2645f2]),useEffect(()=>{const _0x56906e=_0x3934cb;if(_0x2645f2!==_0x56906e(0x154))return;const _0x322b1d=process[_0x56906e(0x14d)](),_0x4e073=resolve(_0x322b1d,NEW_CONFIG_NAME);try{const _0x4379a8=fileURLToPath(import.meta.url),_0x5ca69f=resolve(dirname(_0x4379a8),_0x56906e(0x14f)),_0x5dc4bb=join(_0x5ca69f,_0x56906e(0x152));let _0x232fdb=_0x56906e(0x13e);try{const _0x58106e=JSON['parse'](readFileSync(_0x5dc4bb,_0x56906e(0x125)));_0x232fdb=_0x58106e[_0x56906e(0x12c)]||'1.0.0';}catch{}const _0x1aa231=readRawConfig(),_0x155f41=typeof _0x1aa231[_0x56906e(0x120)]===_0x56906e(0x13a)?_0x1aa231['env']:undefined,_0x41cbd7={};_0x13ad49&&Object[_0x56906e(0x165)](_0x13ad49)[_0x56906e(0x160)]>0x0&&Object['assign'](_0x41cbd7,_0x13ad49),!_0x41cbd7[_0x56906e(0x12c)]&&(_0x41cbd7['version']=_0x232fdb),!_0x41cbd7[_0x56906e(0x161)]&&(_0x41cbd7[_0x56906e(0x161)]=new Date()['toLocaleString']()),!_0x41cbd7[_0x56906e(0x133)]&&!_0x41cbd7[_0x56906e(0x137)]&&(_0x41cbd7[_0x56906e(0x133)]=_0x45c5cd),!_0x41cbd7['env']&&(_0x41cbd7[_0x56906e(0x120)]=_0x37365b||_0x155f41||_0x56906e(0x143)),writeConfigFile(_0x4e073,_0x41cbd7),logger['setLogPath'](_0x322b1d),logger[_0x56906e(0x124)](_0x56906e(0x154),_0x56906e(0x14c),{'appcode':_0x41cbd7[_0x56906e(0x133)]||_0x41cbd7['app'],'env':_0x41cbd7[_0x56906e(0x120)],'version':_0x41cbd7[_0x56906e(0x12c)],'configPath':_0x4e073}),_0x35f99f(!![]),_0x1f6e3a(_0x56906e(0x142)),setTimeout(()=>process[_0x56906e(0x135)](0x0),0x64);}catch(_0x12f9b5){logger[_0x56906e(0x12f)](_0x56906e(0x154),_0x56906e(0x13c),{'error':_0x12f9b5 instanceof Error?_0x12f9b5[_0x56906e(0x146)]:String(_0x12f9b5)}),_0x83a497(_0x56906e(0x140)+(_0x12f9b5 instanceof Error?_0x12f9b5[_0x56906e(0x146)]:String(_0x12f9b5))),_0x1f6e3a('error'),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x2645f2,_0x45c5cd,_0x37365b]),useEffect(()=>{const _0x497e7a=_0x3934cb;_0x2645f2===_0x497e7a(0x168)&&!_0x3e55e4&&(_0x45c5cd||_0x13ad49&&Object['keys'](_0x13ad49)[_0x497e7a(0x160)]>0x0)&&_0x1f6e3a(_0x497e7a(0x154));},[_0x2645f2,_0x3e55e4,_0x45c5cd]);if(_0x27c2db)return a106_0x2981e5(Box,{'flexDirection':'column','children':a106_0x187a2b(Text,{'color':_0x3934cb(0x150),'children':['✗\x20',_0x27c2db]})});if(_0x2645f2===_0x3934cb(0x138)){const _0xd38695=_0x1b1cb0?_0x1b1cb0['split']('/')[_0x3934cb(0x145)]():_0x3934cb(0x129),_0x15414b=_0x13ad49?.['appcode']||_0x13ad49?.[_0x3934cb(0x137)];return a106_0x187a2b(Box,{'flexDirection':'column','children':[a106_0x187a2b(Text,{'color':_0x3934cb(0x12a),'children':[_0x3934cb(0x131),a106_0x2981e5(Text,{'bold':!![],'children':_0xd38695})]}),_0x15414b&&a106_0x187a2b(Text,{'color':_0x3934cb(0x126),'children':['\x20\x20appcode:\x20',_0x15414b]}),a106_0x187a2b(Text,{'children':['\x0a',_0x3934cb(0x14e),a106_0x2981e5(Text,{'bold':!![],'children':_0x3934cb(0x11f)}),'?','\x20',a106_0x2981e5(Text,{'color':_0x3934cb(0x162),'children':_0x3934cb(0x14b)})]}),a106_0x2981e5(Text,{'color':_0x3934cb(0x127),'children':_0x3934cb(0x139)})]});}if(_0x2645f2==='init-input'&&_0x3e55e4)return a106_0x187a2b(Box,{'flexDirection':_0x3934cb(0x164),'children':[a106_0x187a2b(Box,{'children':[a106_0x187a2b(Text,{'color':_0x3934cb(0x126),'children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x5086a3?a106_0x2981e5(Text,{'color':_0x3934cb(0x162),'children':_0x5086a3}):a106_0x2981e5(Text,{'color':'gray','children':'_'}),_0x3cca8b&&a106_0x187a2b(Text,{'color':_0x3934cb(0x150),'children':[_0x3934cb(0x122),_0x3cca8b]})]}),!_0x3cca8b&&!_0x5086a3&&a106_0x2981e5(Box,{'children':a106_0x2981e5(Text,{'color':_0x3934cb(0x127),'children':'App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'})})]});if(_0x2645f2===_0x3934cb(0x15b))return a106_0x2981e5(Box,{'children':a106_0x2981e5(Text,{'children':'Migrating\x20legacy\x20config...'})});if(_0x2645f2===_0x3934cb(0x154))return a106_0x2981e5(Box,{'children':a106_0x2981e5(Text,{'children':_0x3934cb(0x155)})});if(_0x3f9564||_0x2645f2==='success'){const _0x183780=_0x1b1cb0?_0x1b1cb0[_0x3934cb(0x141)]('/')['pop']():undefined;if(_0x183780)return a106_0x187a2b(Box,{'flexDirection':_0x3934cb(0x164),'children':[a106_0x187a2b(Text,{'color':_0x3934cb(0x162),'children':[_0x3934cb(0x11e),_0x183780,_0x3934cb(0x136)]}),a106_0x187a2b(Text,{'color':_0x3934cb(0x126),'children':[_0x3934cb(0x149),':\x20',_0x13ad49?.['appcode']||_0x13ad49?.[_0x3934cb(0x137)]]}),a106_0x187a2b(Text,{'color':_0x3934cb(0x127),'children':[_0x3934cb(0x159),_0x183780,_0x3934cb(0x14a)]})]});return a106_0x187a2b(Box,{'flexDirection':_0x3934cb(0x164),'children':[a106_0x187a2b(Text,{'color':_0x3934cb(0x162),'children':['✓\x20','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory']}),a106_0x187a2b(Text,{'color':_0x3934cb(0x126),'children':[_0x3934cb(0x149),':\x20',_0x45c5cd]}),a106_0x2981e5(Text,{'children':_0x3934cb(0x151)})]});}return a106_0x2981e5(Box,{'children':a106_0x2981e5(Text,{'children':'Checking\x20existing\x20configuration...'})});}
1
+ const a107_0x398561=a107_0x429d;(function(_0x20cd3f,_0x58077f){const _0x1f339a=a107_0x429d,_0xbaf0a9=_0x20cd3f();while(!![]){try{const _0x245a14=-parseInt(_0x1f339a(0x1fe))/0x1+parseInt(_0x1f339a(0x1ce))/0x2+-parseInt(_0x1f339a(0x203))/0x3*(-parseInt(_0x1f339a(0x204))/0x4)+-parseInt(_0x1f339a(0x1e3))/0x5*(parseInt(_0x1f339a(0x200))/0x6)+-parseInt(_0x1f339a(0x20b))/0x7+parseInt(_0x1f339a(0x1f3))/0x8*(-parseInt(_0x1f339a(0x1ef))/0x9)+parseInt(_0x1f339a(0x1e5))/0xa*(parseInt(_0x1f339a(0x205))/0xb);if(_0x245a14===_0x58077f)break;else _0xbaf0a9['push'](_0xbaf0a9['shift']());}catch(_0x40cb80){_0xbaf0a9['push'](_0xbaf0a9['shift']());}}}(a107_0x5db5,0x55a44));import{jsxs as a107_0x1eda89,jsx as a107_0x394fba}from'react/jsx-runtime';import{useState,useEffect}from'react';function a107_0x5db5(){const _0x40f15d=['cyan','slice','error','assign','toLocaleString','red','appcode','keys','parse','\x20←\x20','Old\x20file\x20backed\x20up\x20as\x20','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','7500DeExTR','Checking\x20existing\x20configuration...','5037490QmCXML','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','创建配置文件失败','init','Initializing\x20configuration\x20file...','migrating-input','初始化项目配置文件成功','info','version','column','4437081vqobUI','Migrating\x20legacy\x20config...','../..','string','8hmzrZM','split','message','test','App\x20Code\x20cannot\x20exceed\x20100\x20characters','升级配置文件失败','pop','checking','production','env','init-input','537675XqrrcC','return','1716KZyyvZ','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','1.0.0','3TbhCuq','1303484DybaET','33oCMHPv','legacy\x20config','escape','Upgrade\x20it\x20to\x20','.lovrabetrc','yellow','1926771NZXvCL','Invalid\x20App\x20Code','.lovrabet.json','delete','cwd','App\x20Code\x20cannot\x20be\x20empty','从旧配置文件升级成功','success','.bak','trim','ctrl','gray','app','green','migrating','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','package.json','utf8','Error:\x20','497214pojDaa','length','setLogPath','✓\x20Upgraded\x20','createdAt','[Y/n]','AppCode','exit'];a107_0x5db5=function(){return _0x40f15d;};return a107_0x5db5();}import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';function a107_0x429d(_0x37fe21,_0x160731){_0x37fe21=_0x37fe21-0x1c7;const _0x5db52d=a107_0x5db5();let _0x429d5f=_0x5db52d[_0x37fe21];return _0x429d5f;}import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a107_0x398561(0x20d),a107_0x398561(0x209)];export function Init({appcode:_0x2de8a8,env:_0x34cc44,autoYes:_0x41f57c}){const _0x6ee34c=a107_0x398561,[_0x1db42b,_0x4f1f3c]=useState(_0x6ee34c(0x1fa)),[_0xe7ce63,_0x314fa7]=useState(null),[_0x2da685,_0x4145d6]=useState(![]),[_0x533a97,_0x2badbb]=useState(!_0x2de8a8),[_0x12ee8c,_0x1b018f]=useState(''),[_0x568daf,_0xed345d]=useState(''),[_0x43b5ea,_0x53ebc3]=useState(_0x2de8a8||''),[_0x10c3e6]=useState(_0x34cc44),[_0x298385,_0x1e8b24]=useState(),[_0x4cd2d9,_0x1b8360]=useState({});function _0x186f4a(_0x48dd13){const _0x248801=_0x6ee34c;if(_0x48dd13[_0x248801(0x1cf)]===0x0)return{'valid':![],'message':''};if(_0x48dd13[_0x248801(0x1cf)]>0x64)return{'valid':![],'message':_0x248801(0x1f7)};const _0xe1ff37=/^[A-Za-z0-9_-]+$/;if(!_0xe1ff37[_0x248801(0x1f6)](_0x48dd13))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x320077,_0x298ae3)=>{const _0xac5ad6=_0x6ee34c;if(_0x1db42b===_0xac5ad6(0x1ea)){if(_0x298ae3[_0xac5ad6(0x1ff)]||_0x320077==='y'||_0x320077==='Y')_0x4f1f3c(_0xac5ad6(0x1c9));else{if(_0x320077==='n'||_0x320077==='N'||_0x298ae3[_0xac5ad6(0x207)])console['log'](_0xac5ad6(0x1e1)),process[_0xac5ad6(0x1d5)](0x0);else _0x298ae3[_0xac5ad6(0x215)]&&_0x320077==='c'&&process['exit'](0x0);}return;}if(!_0x533a97)return;if(_0x298ae3[_0xac5ad6(0x1ff)]){if(_0x568daf||!_0x12ee8c[_0xac5ad6(0x214)]()){_0xed345d(_0xac5ad6(0x210));return;}const _0x2d0a5f=_0x12ee8c[_0xac5ad6(0x214)](),{valid:_0x34905a,message:_0x129494}=_0x186f4a(_0x2d0a5f);if(!_0x34905a){_0xed345d(_0x129494||_0xac5ad6(0x20c));return;}_0x53ebc3(_0x2d0a5f),_0x2badbb(![]);}else{if(_0x298ae3['backspace']||_0x298ae3[_0xac5ad6(0x20e)])_0x1b018f(_0x3218fa=>{const _0x24d5fb=_0xac5ad6,_0xc311fb=_0x3218fa[_0x24d5fb(0x1d7)](0x0,-0x1);return _0xed345d(_0xc311fb['length']===0x0?'':_0x186f4a(_0xc311fb)['message']||''),_0xc311fb;});else _0x298ae3['ctrl']&&_0x320077==='c'?process['exit'](0x0):_0x1b018f(_0x41ae31=>{const _0x47f2e3=_0xac5ad6,_0xb37106=_0x41ae31+_0x320077;return _0xed345d(_0x186f4a(_0xb37106)[_0x47f2e3(0x1f5)]||''),_0xb37106;});}},{'isActive':_0x1db42b===_0x6ee34c(0x1ea)||_0x1db42b===_0x6ee34c(0x1fd)}),useEffect(()=>{const _0x3214bf=_0x6ee34c;if(_0x1db42b!==_0x3214bf(0x1fa))return;const _0x5a1f49=process[_0x3214bf(0x20f)]();if(getProjectConfigPath()){_0x314fa7(_0x3214bf(0x1e6)),_0x4f1f3c(_0x3214bf(0x1d8)),setTimeout(()=>process[_0x3214bf(0x1d5)](0x1),0x64);return;}let _0x4dfcfe;for(const _0x5e191e of LEGACY_CONFIG_NAMES){const _0x2a7c7a=resolve(_0x5a1f49,_0x5e191e);if(existsSync(_0x2a7c7a)){_0x4dfcfe=_0x2a7c7a;break;}}if(_0x4dfcfe){_0x1e8b24(_0x4dfcfe);try{const _0x15815e=readFileSync(_0x4dfcfe,_0x3214bf(0x1cc));_0x1b8360(JSON[_0x3214bf(0x1de)](_0x15815e));}catch{_0x1b8360({});}_0x41f57c?_0x4f1f3c(_0x3214bf(0x1c9)):_0x4f1f3c(_0x3214bf(0x1ea));return;}_0x4f1f3c(_0x3214bf(0x1fd)),!_0x2de8a8?_0x2badbb(!![]):_0x2badbb(![]);},[_0x1db42b,_0x41f57c,_0x2de8a8]),useEffect(()=>{const _0xf7409c=_0x6ee34c;if(_0x1db42b!==_0xf7409c(0x1c9))return;const _0xd8b8b3=process[_0xf7409c(0x20f)](),_0x635821=resolve(_0xd8b8b3,NEW_CONFIG_NAME);try{const _0x417f6d=fileURLToPath(import.meta.url),_0x30cc14=resolve(dirname(_0x417f6d),_0xf7409c(0x1f1)),_0x2fa968=join(_0x30cc14,_0xf7409c(0x1cb));let _0x18ba22=_0xf7409c(0x202);try{const _0x220f6b=JSON[_0xf7409c(0x1de)](readFileSync(_0x2fa968,_0xf7409c(0x1cc)));_0x18ba22=_0x220f6b[_0xf7409c(0x1ed)]||_0xf7409c(0x202);}catch{}const _0x27332e=readRawConfig(),_0x590818={..._0x27332e,..._0x4cd2d9,'version':_0x18ba22,'migratedAt':new Date()[_0xf7409c(0x1da)](),'migratedFrom':_0x298385};if(!_0x590818[_0xf7409c(0x1dc)]&&!_0x590818['app']){if(!_0x2de8a8){_0x1b8360(_0x590818),_0x4f1f3c(_0xf7409c(0x1fd)),_0x2badbb(!![]);return;}_0x590818[_0xf7409c(0x1dc)]=_0x2de8a8;}if(_0x590818['env']&&typeof _0x590818[_0xf7409c(0x1fc)]!=='string')delete _0x590818[_0xf7409c(0x1fc)];else!_0x590818[_0xf7409c(0x1fc)]&&(_0x590818['env']=_0x27332e[_0xf7409c(0x1fc)]||_0xf7409c(0x1fb));writeConfigFile(_0x635821,_0x590818);if(_0x298385){const _0x4d49a9=_0x298385+_0xf7409c(0x213);renameSync(_0x298385,_0x4d49a9);}logger[_0xf7409c(0x1d0)](_0xd8b8b3),logger[_0xf7409c(0x1ec)](_0xf7409c(0x1e8),_0xf7409c(0x211),{'from':_0x298385,'to':_0x635821,'appcode':_0x590818['appcode']||_0x590818[_0xf7409c(0x1c7)],'env':_0x590818[_0xf7409c(0x1fc)]}),_0x4145d6(!![]),_0x4f1f3c(_0xf7409c(0x212)),setTimeout(()=>process['exit'](0x0),0x64);}catch(_0x1bea42){logger[_0xf7409c(0x1d8)]('init',_0xf7409c(0x1f8),{'error':_0x1bea42 instanceof Error?_0x1bea42['message']:String(_0x1bea42)}),_0x314fa7(_0xf7409c(0x1cd)+(_0x1bea42 instanceof Error?_0x1bea42[_0xf7409c(0x1f5)]:String(_0x1bea42))),_0x4f1f3c(_0xf7409c(0x1d8)),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x1db42b]),useEffect(()=>{const _0x5bee5d=_0x6ee34c;if(_0x1db42b!==_0x5bee5d(0x1e8))return;const _0x2c80e6=process['cwd'](),_0x427435=resolve(_0x2c80e6,NEW_CONFIG_NAME);try{const _0x27ef0d=fileURLToPath(import.meta.url),_0x2f8bd2=resolve(dirname(_0x27ef0d),_0x5bee5d(0x1f1)),_0x4aeddc=join(_0x2f8bd2,_0x5bee5d(0x1cb));let _0x2697ec=_0x5bee5d(0x202);try{const _0x3ccad4=JSON['parse'](readFileSync(_0x4aeddc,_0x5bee5d(0x1cc)));_0x2697ec=_0x3ccad4[_0x5bee5d(0x1ed)]||_0x5bee5d(0x202);}catch{}const _0x20abf7=readRawConfig(),_0x2cb44b=typeof _0x20abf7[_0x5bee5d(0x1fc)]===_0x5bee5d(0x1f2)?_0x20abf7['env']:undefined,_0x4e8825={};_0x4cd2d9&&Object[_0x5bee5d(0x1dd)](_0x4cd2d9)[_0x5bee5d(0x1cf)]>0x0&&Object[_0x5bee5d(0x1d9)](_0x4e8825,_0x4cd2d9),!_0x4e8825['version']&&(_0x4e8825[_0x5bee5d(0x1ed)]=_0x2697ec),!_0x4e8825[_0x5bee5d(0x1d2)]&&(_0x4e8825[_0x5bee5d(0x1d2)]=new Date()[_0x5bee5d(0x1da)]()),!_0x4e8825[_0x5bee5d(0x1dc)]&&!_0x4e8825[_0x5bee5d(0x1c7)]&&(_0x4e8825['appcode']=_0x43b5ea),!_0x4e8825[_0x5bee5d(0x1fc)]&&(_0x4e8825[_0x5bee5d(0x1fc)]=_0x10c3e6||_0x2cb44b||_0x5bee5d(0x1fb)),writeConfigFile(_0x427435,_0x4e8825),logger['setLogPath'](_0x2c80e6),logger[_0x5bee5d(0x1ec)](_0x5bee5d(0x1e8),_0x5bee5d(0x1eb),{'appcode':_0x4e8825[_0x5bee5d(0x1dc)]||_0x4e8825[_0x5bee5d(0x1c7)],'env':_0x4e8825[_0x5bee5d(0x1fc)],'version':_0x4e8825[_0x5bee5d(0x1ed)],'configPath':_0x427435}),_0x4145d6(!![]),_0x4f1f3c('success'),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x0),0x64);}catch(_0x2ac01b){logger['error'](_0x5bee5d(0x1e8),_0x5bee5d(0x1e7),{'error':_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b)}),_0x314fa7(_0x5bee5d(0x1cd)+(_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b))),_0x4f1f3c(_0x5bee5d(0x1d8)),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x1),0x64);}},[_0x1db42b,_0x43b5ea,_0x10c3e6]),useEffect(()=>{const _0x4aeac1=_0x6ee34c;_0x1db42b==='init-input'&&!_0x533a97&&(_0x43b5ea||_0x4cd2d9&&Object[_0x4aeac1(0x1dd)](_0x4cd2d9)[_0x4aeac1(0x1cf)]>0x0)&&_0x4f1f3c(_0x4aeac1(0x1e8));},[_0x1db42b,_0x533a97,_0x43b5ea]);if(_0xe7ce63)return a107_0x394fba(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':['✗\x20',_0xe7ce63]})});if(_0x1db42b==='migrating-input'){const _0x3835c9=_0x298385?_0x298385['split']('/')[_0x6ee34c(0x1f9)]():_0x6ee34c(0x206),_0x2f27f3=_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.['app'];return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x20a),'children':['⚠\x20Found\x20legacy\x20configuration\x20file:\x20',a107_0x394fba(Text,{'bold':!![],'children':_0x3835c9})]}),_0x2f27f3&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['\x20\x20appcode:\x20',_0x2f27f3]}),a107_0x1eda89(Text,{'children':['\x0a',_0x6ee34c(0x208),a107_0x394fba(Text,{'bold':!![],'children':'.rabetbase.json'}),'?','\x20',a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x6ee34c(0x1d3)})]}),a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':'\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak'})]});}if(_0x1db42b===_0x6ee34c(0x1fd)&&_0x533a97)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Box,{'children':[a107_0x1eda89(Text,{'color':'cyan','children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x12ee8c?a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x12ee8c}):a107_0x394fba(Text,{'color':'gray','children':'_'}),_0x568daf&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':[_0x6ee34c(0x1df),_0x568daf]})]}),!_0x568daf&&!_0x12ee8c&&a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':_0x6ee34c(0x201)})})]});if(_0x1db42b==='migrating')return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1f0)})});if(_0x1db42b===_0x6ee34c(0x1e8))return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e9)})});if(_0x2da685||_0x1db42b===_0x6ee34c(0x212)){const _0x2e36cb=_0x298385?_0x298385[_0x6ee34c(0x1f4)]('/')['pop']():undefined;if(_0x2e36cb)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':[_0x6ee34c(0x1d1),_0x2e36cb,'\x20→\x20.rabetbase.json']}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':[_0x6ee34c(0x1d4),':\x20',_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.[_0x6ee34c(0x1c7)]]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x216),'children':[_0x6ee34c(0x1e0),_0x2e36cb,'.bak']})]});return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':['✓\x20',_0x6ee34c(0x1e2)]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['AppCode',':\x20',_0x43b5ea]}),a107_0x394fba(Text,{'children':_0x6ee34c(0x1ca)})]});}return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e4)})});}
@@ -1 +1 @@
1
- function a107_0xfaf6(_0x14087b,_0x372a33){_0x14087b=_0x14087b-0x1b4;const _0x58a93a=a107_0x58a9();let _0xfaf6ca=_0x58a93a[_0x14087b];return _0xfaf6ca;}(function(_0x110480,_0x1e4d73){const _0x2d7981=a107_0xfaf6,_0x98b31d=_0x110480();while(!![]){try{const _0x50dee1=-parseInt(_0x2d7981(0x1cd))/0x1*(-parseInt(_0x2d7981(0x1d9))/0x2)+parseInt(_0x2d7981(0x1d6))/0x3+-parseInt(_0x2d7981(0x1db))/0x4+-parseInt(_0x2d7981(0x1cf))/0x5+-parseInt(_0x2d7981(0x1b5))/0x6*(parseInt(_0x2d7981(0x1d1))/0x7)+-parseInt(_0x2d7981(0x1ca))/0x8*(parseInt(_0x2d7981(0x1bc))/0x9)+parseInt(_0x2d7981(0x1d7))/0xa;if(_0x50dee1===_0x1e4d73)break;else _0x98b31d['push'](_0x98b31d['shift']());}catch(_0x4d36b7){_0x98b31d['push'](_0x98b31d['shift']());}}}(a107_0x58a9,0xa4250));import{jsx as a107_0x164c7b,jsxs as a107_0x4279e5,Fragment as a107_0x426012}from'react/jsx-runtime';import{useState,useEffect,useMemo}from'react';import{Text,Box,useInput,useApp}from'ink';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';import{IDESelector,useIDESelection}from'../ui/IDESelector.js';import{installMcp}from'./mcp-installer.js';export function McpInstallUI({preselectedIDEs:preselectedIDEs=[],enableBffSave:_0x5618ae}){const _0x1d03c7=a107_0xfaf6,{exit:_0x3d38d8}=useApp(),[_0x220ffc,_0x62be77]=useState('selecting'),[_0x1d3d8c,_0x40ad87]=useState([]),[_0x1ffc1d,_0x3d56df]=useState([]),_0x1c0536=useMemo(()=>[...Array[_0x1d03c7(0x1d8)](MCP_IDES)[_0x1d03c7(0x1e5)](_0x26f0de=>({'key':_0x26f0de,'name':IDE_CONFIGS[_0x26f0de][_0x1d03c7(0x1e2)],'description':IDE_CONFIGS[_0x26f0de][_0x1d03c7(0x1b6)]})),{'key':_0x1d03c7(0x1b4),'name':_0x1d03c7(0x1d4),'description':'Other\x20IDE\x20configuration\x20guide'}],[]),_0x338acd=useIDESelection({'ideList':_0x1c0536,'preselectedIDEs':preselectedIDEs,'multiSelect':!![]});useEffect(()=>{const _0x795dfc=_0x1d03c7;preselectedIDEs[_0x795dfc(0x1e7)]>0x0&&_0x338acd['selectedIndexes'][_0x795dfc(0x1d2)]>0x0&&_0x1bb368();},[]),useInput((_0x2ac00f,_0x47ca94)=>{const _0xb29dd2=_0x1d03c7;if(_0x220ffc==='selecting'){if(_0x2ac00f==='q'||_0x2ac00f==='Q'){_0x3d38d8();return;}if(_0x47ca94['return']){if(_0x338acd['selectedIndexes'][_0xb29dd2(0x1d2)]===0x0){_0x338acd[_0xb29dd2(0x1b8)](_0xb29dd2(0x1d5));return;}_0x1bb368();return;}_0x338acd[_0xb29dd2(0x1c1)](_0x2ac00f,_0x47ca94);}_0x220ffc===_0xb29dd2(0x1e0)&&_0x3d38d8();});async function _0x1bb368(){const _0x370ca4=_0x1d03c7,_0x44be1a=_0x338acd[_0x370ca4(0x1bf)]();_0x40ad87([{'label':_0x370ca4(0x1b7),'value':''+_0x338acd[_0x370ca4(0x1d3)][_0x370ca4(0x1d2)]}]),_0x62be77(_0x370ca4(0x1e8));const _0x119e4c=await installMcp(_0x44be1a,_0x5618ae),_0x45a856=_0x119e4c[_0x370ca4(0x1e5)](_0x5d4e38=>({'ide':_0x1c0536[_0x370ca4(0x1da)](_0x5d010e=>_0x5d010e[_0x370ca4(0x1e1)]===_0x5d4e38[_0x370ca4(0x1be)])?.['name']||_0x5d4e38[_0x370ca4(0x1be)],'status':_0x5d4e38[_0x370ca4(0x1cb)]?_0x370ca4(0x1ba):_0x5d4e38[_0x370ca4(0x1ce)]?'success':_0x370ca4(0x1df),'message':_0x5d4e38[_0x370ca4(0x1e6)]}));_0x3d56df(_0x45a856),_0x62be77(_0x370ca4(0x1e0)),setTimeout(()=>{_0x3d38d8();},0x1388);}return a107_0x4279e5(Box,{'flexDirection':_0x1d03c7(0x1c4),'marginTop':0x1,'children':[_0x220ffc===_0x1d03c7(0x1c6)&&a107_0x164c7b(IDESelector,{'ideList':_0x1c0536,'title':_0x1d03c7(0x1bd),'selection':_0x338acd}),_0x220ffc===_0x1d03c7(0x1e8)&&a107_0x4279e5(a107_0x426012,{'children':[_0x1d3d8c[_0x1d03c7(0x1e5)]((_0x28c9c4,_0x2b1188)=>a107_0x4279e5(Box,{'children':[a107_0x4279e5(Text,{'color':_0x1d03c7(0x1b9),'children':['√\x20',_0x28c9c4[_0x1d03c7(0x1de)],':\x20']}),a107_0x164c7b(Text,{'color':_0x1d03c7(0x1e4),'children':_0x28c9c4[_0x1d03c7(0x1c9)]})]},_0x2b1188)),a107_0x164c7b(Box,{'marginTop':0x1,'children':a107_0x164c7b(Text,{'children':_0x1d03c7(0x1c8)})})]}),_0x220ffc==='done'&&a107_0x164c7b(DoneStep,{'configResults':_0x1ffc1d})]});}function a107_0x58a9(){const _0x121363=['find','4257664AxYqVR','⚠️\x20Some\x20configurations\x20require\x20manual\x20steps','some','label','error','done','key','name','⚠️\x20','cyan','map','message','length','configuring','other','239700sxosDl','description','Selected\x20IDEs','setErrorMsg','green','manual','status','45vccHlz','Configure\x20Lovrabet\x20MCP\x20Server','ide','getSelectedIDEs','yellow','handleKeyDown','every','Press\x20any\x20key\x20to\x20exit...','column','✗\x20Configuration\x20failed','selecting','✓\x20MCP\x20configuration\x20completed!','Configuring\x20MCP\x20server...','value','1294232izorTj','needsManualAction','gray','1TKOqhw','success','3511840WLSvYZ','red','175AYazdP','size','selectedIndexes','Other\x20IDE','Please\x20select\x20at\x20least\x20one\x20IDE','715581DySmJm','29121030VtPBbJ','from','2192270anofWc'];a107_0x58a9=function(){return _0x121363;};return a107_0x58a9();}function DoneStep({configResults:_0x59b748}){const _0x1aa7b4=a107_0xfaf6,_0x339cee=_0x59b748[_0x1aa7b4(0x1c2)](_0x3593b2=>_0x3593b2['status']===_0x1aa7b4(0x1ce)),_0x83082=_0x59b748[_0x1aa7b4(0x1dd)](_0x434510=>_0x434510[_0x1aa7b4(0x1bb)]==='manual'),_0x27f5ae=_0x59b748[_0x1aa7b4(0x1dd)](_0x29343a=>_0x29343a['status']===_0x1aa7b4(0x1df));return a107_0x4279e5(Box,{'flexDirection':_0x1aa7b4(0x1c4),'children':[a107_0x164c7b(Box,{'marginTop':0x1,'marginBottom':0x1,'children':_0x339cee?a107_0x164c7b(Text,{'color':_0x1aa7b4(0x1b9),'bold':!![],'children':_0x1aa7b4(0x1c7)}):_0x83082?a107_0x164c7b(Text,{'color':'yellow','bold':!![],'children':_0x1aa7b4(0x1dc)}):_0x27f5ae?a107_0x164c7b(Text,{'color':_0x1aa7b4(0x1d0),'bold':!![],'children':_0x1aa7b4(0x1c5)}):a107_0x164c7b(Text,{'color':_0x1aa7b4(0x1c0),'bold':!![],'children':'⚠️\x20Configuration\x20requires\x20manual\x20steps'})}),_0x59b748[_0x1aa7b4(0x1e5)]((_0x58d778,_0x44adba)=>{const _0x34d621=_0x1aa7b4,_0x399bc3=_0x58d778[_0x34d621(0x1bb)]===_0x34d621(0x1ce),_0x2bd6ce=_0x58d778[_0x34d621(0x1bb)]===_0x34d621(0x1ba);return a107_0x4279e5(Box,{'flexDirection':_0x34d621(0x1c4),'marginBottom':0x1,'children':[a107_0x164c7b(Box,{'children':a107_0x4279e5(Text,{'bold':!![],'color':_0x399bc3?'green':_0x2bd6ce?_0x34d621(0x1c0):_0x34d621(0x1d0),'children':[_0x399bc3?'✓\x20':_0x2bd6ce?_0x34d621(0x1e3):'✗\x20',_0x58d778[_0x34d621(0x1be)],':']})}),a107_0x164c7b(Box,{'paddingLeft':0x3,'flexDirection':_0x34d621(0x1c4),'children':a107_0x164c7b(Text,{'color':'white','children':_0x58d778[_0x34d621(0x1e6)]})})]},_0x44adba);}),a107_0x164c7b(Box,{'marginTop':0x1,'children':a107_0x164c7b(Text,{'color':_0x1aa7b4(0x1cc),'children':_0x1aa7b4(0x1c3)})})]});}
1
+ function a108_0x8117(_0x5771e1,_0x377a3e){_0x5771e1=_0x5771e1-0xc3;const _0x104f32=a108_0x104f();let _0x8117ad=_0x104f32[_0x5771e1];return _0x8117ad;}(function(_0x27cd47,_0x251c55){const _0x3fba8d=a108_0x8117,_0x4331a1=_0x27cd47();while(!![]){try{const _0x5dcf43=-parseInt(_0x3fba8d(0xec))/0x1+parseInt(_0x3fba8d(0xe1))/0x2+parseInt(_0x3fba8d(0xe5))/0x3*(-parseInt(_0x3fba8d(0xeb))/0x4)+parseInt(_0x3fba8d(0xd0))/0x5*(parseInt(_0x3fba8d(0xc5))/0x6)+-parseInt(_0x3fba8d(0xd5))/0x7+parseInt(_0x3fba8d(0xc8))/0x8+parseInt(_0x3fba8d(0xcb))/0x9;if(_0x5dcf43===_0x251c55)break;else _0x4331a1['push'](_0x4331a1['shift']());}catch(_0x1fca7c){_0x4331a1['push'](_0x4331a1['shift']());}}}(a108_0x104f,0x8e9e1));function a108_0x104f(){const _0x5ef8c0=['length','every','⚠️\x20','manual','column','size','name','status','return','242046TcFwYu','configuring','other','setErrorMsg','3JLGsZw','success','from','cyan','ide','error','1313588uVSMvH','389710xZkmDq','some','Other\x20IDE','done','description','Please\x20select\x20at\x20least\x20one\x20IDE','selectedIndexes','⚠️\x20Configuration\x20requires\x20manual\x20steps','18tvTEmT','yellow','selecting','2358840mLGTNY','handleKeyDown','green','11410353NXqtJX','label','getSelectedIDEs','value','✗\x20Configuration\x20failed','246630dkKiMw','Selected\x20IDEs','gray','message','map','3705835YxpCbE','Configuring\x20MCP\x20server...','red'];a108_0x104f=function(){return _0x5ef8c0;};return a108_0x104f();}import{jsx as a108_0x3c9f68,jsxs as a108_0x4df85f,Fragment as a108_0x5c3570}from'react/jsx-runtime';import{useState,useEffect,useMemo}from'react';import{Text,Box,useInput,useApp}from'ink';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';import{IDESelector,useIDESelection}from'../ui/IDESelector.js';import{installMcp}from'./mcp-installer.js';export function McpInstallUI({preselectedIDEs:preselectedIDEs=[],enableBffSave:_0x3fab82}){const _0x4b2a4a=a108_0x8117,{exit:_0x140394}=useApp(),[_0x20a236,_0x1563e5]=useState(_0x4b2a4a(0xc7)),[_0xb0d2a7,_0x27d872]=useState([]),[_0x3a8714,_0x1fdeb1]=useState([]),_0x536e2b=useMemo(()=>[...Array[_0x4b2a4a(0xe7)](MCP_IDES)[_0x4b2a4a(0xd4)](_0x1381d7=>({'key':_0x1381d7,'name':IDE_CONFIGS[_0x1381d7][_0x4b2a4a(0xde)],'description':IDE_CONFIGS[_0x1381d7][_0x4b2a4a(0xf0)]})),{'key':_0x4b2a4a(0xe3),'name':_0x4b2a4a(0xee),'description':'Other\x20IDE\x20configuration\x20guide'}],[]),_0x32ec60=useIDESelection({'ideList':_0x536e2b,'preselectedIDEs':preselectedIDEs,'multiSelect':!![]});useEffect(()=>{const _0x5ea2d7=_0x4b2a4a;preselectedIDEs[_0x5ea2d7(0xd8)]>0x0&&_0x32ec60[_0x5ea2d7(0xc3)]['size']>0x0&&_0x55ace6();},[]),useInput((_0x2aebc1,_0xcefe4a)=>{const _0x28cac5=_0x4b2a4a;if(_0x20a236===_0x28cac5(0xc7)){if(_0x2aebc1==='q'||_0x2aebc1==='Q'){_0x140394();return;}if(_0xcefe4a[_0x28cac5(0xe0)]){if(_0x32ec60[_0x28cac5(0xc3)][_0x28cac5(0xdd)]===0x0){_0x32ec60[_0x28cac5(0xe4)](_0x28cac5(0xf1));return;}_0x55ace6();return;}_0x32ec60[_0x28cac5(0xc9)](_0x2aebc1,_0xcefe4a);}_0x20a236===_0x28cac5(0xef)&&_0x140394();});async function _0x55ace6(){const _0x562f88=_0x4b2a4a,_0x2e69c5=_0x32ec60[_0x562f88(0xcd)]();_0x27d872([{'label':_0x562f88(0xd1),'value':''+_0x32ec60['selectedIndexes'][_0x562f88(0xdd)]}]),_0x1563e5(_0x562f88(0xe2));const _0x387594=await installMcp(_0x2e69c5,_0x3fab82),_0x2d2993=_0x387594[_0x562f88(0xd4)](_0xbbce82=>({'ide':_0x536e2b['find'](_0x2a1e98=>_0x2a1e98['key']===_0xbbce82[_0x562f88(0xe9)])?.['name']||_0xbbce82[_0x562f88(0xe9)],'status':_0xbbce82['needsManualAction']?'manual':_0xbbce82['success']?'success':_0x562f88(0xea),'message':_0xbbce82[_0x562f88(0xd3)]}));_0x1fdeb1(_0x2d2993),_0x1563e5(_0x562f88(0xef)),setTimeout(()=>{_0x140394();},0x1388);}return a108_0x4df85f(Box,{'flexDirection':_0x4b2a4a(0xdc),'marginTop':0x1,'children':[_0x20a236==='selecting'&&a108_0x3c9f68(IDESelector,{'ideList':_0x536e2b,'title':'Configure\x20Lovrabet\x20MCP\x20Server','selection':_0x32ec60}),_0x20a236===_0x4b2a4a(0xe2)&&a108_0x4df85f(a108_0x5c3570,{'children':[_0xb0d2a7[_0x4b2a4a(0xd4)]((_0x59b6e4,_0x5c07b0)=>a108_0x4df85f(Box,{'children':[a108_0x4df85f(Text,{'color':'green','children':['√\x20',_0x59b6e4[_0x4b2a4a(0xcc)],':\x20']}),a108_0x3c9f68(Text,{'color':_0x4b2a4a(0xe8),'children':_0x59b6e4[_0x4b2a4a(0xce)]})]},_0x5c07b0)),a108_0x3c9f68(Box,{'marginTop':0x1,'children':a108_0x3c9f68(Text,{'children':_0x4b2a4a(0xd6)})})]}),_0x20a236==='done'&&a108_0x3c9f68(DoneStep,{'configResults':_0x3a8714})]});}function DoneStep({configResults:_0x14b650}){const _0x2a2511=a108_0x8117,_0x4149d3=_0x14b650[_0x2a2511(0xd9)](_0x3b9ae5=>_0x3b9ae5[_0x2a2511(0xdf)]===_0x2a2511(0xe6)),_0x3b17de=_0x14b650[_0x2a2511(0xed)](_0x74c185=>_0x74c185[_0x2a2511(0xdf)]===_0x2a2511(0xdb)),_0x3d75b6=_0x14b650[_0x2a2511(0xed)](_0x3a4188=>_0x3a4188[_0x2a2511(0xdf)]===_0x2a2511(0xea));return a108_0x4df85f(Box,{'flexDirection':'column','children':[a108_0x3c9f68(Box,{'marginTop':0x1,'marginBottom':0x1,'children':_0x4149d3?a108_0x3c9f68(Text,{'color':_0x2a2511(0xca),'bold':!![],'children':'✓\x20MCP\x20configuration\x20completed!'}):_0x3b17de?a108_0x3c9f68(Text,{'color':_0x2a2511(0xc6),'bold':!![],'children':'⚠️\x20Some\x20configurations\x20require\x20manual\x20steps'}):_0x3d75b6?a108_0x3c9f68(Text,{'color':_0x2a2511(0xd7),'bold':!![],'children':_0x2a2511(0xcf)}):a108_0x3c9f68(Text,{'color':'yellow','bold':!![],'children':_0x2a2511(0xc4)})}),_0x14b650[_0x2a2511(0xd4)]((_0xa55f96,_0x379d15)=>{const _0x933e05=_0x2a2511,_0x3b506e=_0xa55f96[_0x933e05(0xdf)]===_0x933e05(0xe6),_0x135b47=_0xa55f96[_0x933e05(0xdf)]===_0x933e05(0xdb);return a108_0x4df85f(Box,{'flexDirection':'column','marginBottom':0x1,'children':[a108_0x3c9f68(Box,{'children':a108_0x4df85f(Text,{'bold':!![],'color':_0x3b506e?_0x933e05(0xca):_0x135b47?_0x933e05(0xc6):_0x933e05(0xd7),'children':[_0x3b506e?'✓\x20':_0x135b47?_0x933e05(0xda):'✗\x20',_0xa55f96['ide'],':']})}),a108_0x3c9f68(Box,{'paddingLeft':0x3,'flexDirection':'column','children':a108_0x3c9f68(Text,{'color':'white','children':_0xa55f96['message']})})]},_0x379d15);}),a108_0x3c9f68(Box,{'marginTop':0x1,'children':a108_0x3c9f68(Text,{'color':_0x2a2511(0xd2),'children':'Press\x20any\x20key\x20to\x20exit...'})})]});}
package/lib/mcp/claude.js CHANGED
@@ -1 +1 @@
1
- function a108_0x53ac(){const _0x45040f=['1177xjrcEx','cwd','267561Fuatar','log','1447675DtuxSP','282504uUBUyU','message','2667ULzlrs','\x0aError:\x20Configuration\x20failed\x20-\x20','168kiQMaV','32CrwSZi','7503EQaVrS','31070QCouKb','382968xsAMpM','\x0a📋\x20','1284mgziEP'];a108_0x53ac=function(){return _0x45040f;};return a108_0x53ac();}(function(_0x5e4558,_0x471239){const _0x5504a3=a108_0x1222,_0x563862=_0x5e4558();while(!![]){try{const _0x4095db=parseInt(_0x5504a3(0x1c6))/0x1+-parseInt(_0x5504a3(0x1be))/0x2+parseInt(_0x5504a3(0x1bc))/0x3*(parseInt(_0x5504a3(0x1ba))/0x4)+-parseInt(_0x5504a3(0x1c5))/0x5+-parseInt(_0x5504a3(0x1c0))/0x6*(parseInt(_0x5504a3(0x1b8))/0x7)+-parseInt(_0x5504a3(0x1bb))/0x8*(-parseInt(_0x5504a3(0x1c3))/0x9)+-parseInt(_0x5504a3(0x1bd))/0xa*(-parseInt(_0x5504a3(0x1c1))/0xb);if(_0x4095db===_0x471239)break;else _0x563862['push'](_0x563862['shift']());}catch(_0x544667){_0x563862['push'](_0x563862['shift']());}}}(a108_0x53ac,0x43786));import{configureClaudeMcp as a108_0x42badb}from'./mcp-installer.js';function a108_0x1222(_0x1ae699,_0x437d59){_0x1ae699=_0x1ae699-0x1b7;const _0x53ac26=a108_0x53ac();let _0x122269=_0x53ac26[_0x1ae699];return _0x122269;}export async function configureClaudeMcp(){const _0x3b4d62=a108_0x1222,_0xdcb2cc=process[_0x3b4d62(0x1c2)](),_0x439ad2=a108_0x42badb(_0xdcb2cc);_0x439ad2['success']?(console[_0x3b4d62(0x1c4)](_0x3b4d62(0x1bf)+_0x439ad2[_0x3b4d62(0x1b7)]+'\x0a'),process['exit'](0x0)):(console['error'](_0x3b4d62(0x1b9)+_0x439ad2[_0x3b4d62(0x1b7)]+'\x0a'),process['exit'](0x1));}
1
+ function a109_0x4e3a(_0x5a3dc0,_0x2b0cdd){_0x5a3dc0=_0x5a3dc0-0x120;const _0x427665=a109_0x4276();let _0x4e3aed=_0x427665[_0x5a3dc0];return _0x4e3aed;}(function(_0x2e9f96,_0x585d55){const _0x2eb62d=a109_0x4e3a,_0x41318c=_0x2e9f96();while(!![]){try{const _0x31abb4=parseInt(_0x2eb62d(0x12c))/0x1+-parseInt(_0x2eb62d(0x123))/0x2+parseInt(_0x2eb62d(0x128))/0x3+parseInt(_0x2eb62d(0x120))/0x4+parseInt(_0x2eb62d(0x125))/0x5*(-parseInt(_0x2eb62d(0x126))/0x6)+-parseInt(_0x2eb62d(0x12a))/0x7*(-parseInt(_0x2eb62d(0x12e))/0x8)+parseInt(_0x2eb62d(0x129))/0x9*(parseInt(_0x2eb62d(0x12d))/0xa);if(_0x31abb4===_0x585d55)break;else _0x41318c['push'](_0x41318c['shift']());}catch(_0x15a888){_0x41318c['push'](_0x41318c['shift']());}}}(a109_0x4276,0x7763c));import{configureClaudeMcp as a109_0x107867}from'./mcp-installer.js';function a109_0x4276(){const _0x296040=['370XhkoaC','8CeCNdq','3352828MPrZDw','exit','error','1378854HPepLU','success','10055tdnHiQ','1830ngllus','\x0a📋\x20','468834oHszrj','17037vmvxhb','3557442NwFiaR','cwd','219070QLulxR'];a109_0x4276=function(){return _0x296040;};return a109_0x4276();}export async function configureClaudeMcp(){const _0x38c629=a109_0x4e3a,_0x41b574=process[_0x38c629(0x12b)](),_0x56bbe2=a109_0x107867(_0x41b574);_0x56bbe2[_0x38c629(0x124)]?(console['log'](_0x38c629(0x127)+_0x56bbe2['message']+'\x0a'),process['exit'](0x0)):(console[_0x38c629(0x122)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0x56bbe2['message']+'\x0a'),process[_0x38c629(0x121)](0x1));}
package/lib/mcp/cursor.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2f6900,_0x5d7a07){const _0x469167=a109_0x3465,_0x3709b1=_0x2f6900();while(!![]){try{const _0x2392c5=parseInt(_0x469167(0x187))/0x1*(-parseInt(_0x469167(0x180))/0x2)+-parseInt(_0x469167(0x181))/0x3*(-parseInt(_0x469167(0x18b))/0x4)+-parseInt(_0x469167(0x186))/0x5+parseInt(_0x469167(0x17f))/0x6*(-parseInt(_0x469167(0x179))/0x7)+-parseInt(_0x469167(0x185))/0x8+parseInt(_0x469167(0x182))/0x9*(parseInt(_0x469167(0x18a))/0xa)+parseInt(_0x469167(0x189))/0xb;if(_0x2392c5===_0x5d7a07)break;else _0x3709b1['push'](_0x3709b1['shift']());}catch(_0x19bbfd){_0x3709b1['push'](_0x3709b1['shift']());}}}(a109_0x10c5,0x58e93));function a109_0x3465(_0x452a8d,_0x2dd311){_0x452a8d=_0x452a8d-0x179;const _0x10c57a=a109_0x10c5();let _0x346584=_0x10c57a[_0x452a8d];return _0x346584;}import{configureCursorMcp as a109_0x3dbc7a}from'./mcp-installer.js';export async function configureCursorMcp(){const _0x40ffd0=a109_0x3465,_0x4bde72=process[_0x40ffd0(0x17c)](),_0x1b0816=await a109_0x3dbc7a(_0x4bde72);_0x1b0816['success']?(console[_0x40ffd0(0x184)]('\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a'),console[_0x40ffd0(0x184)](_0x40ffd0(0x188)),console[_0x40ffd0(0x184)]('\x20\x20'+_0x1b0816['message']+'\x0a'),console['log'](_0x40ffd0(0x17a)),console[_0x40ffd0(0x184)](_0x40ffd0(0x17b)),process[_0x40ffd0(0x183)](0x0)):(console['error'](_0x40ffd0(0x17e)+_0x1b0816[_0x40ffd0(0x17d)]+'\x0a'),process[_0x40ffd0(0x183)](0x1));}function a109_0x10c5(){const _0x43c785=['Configuration:','21954592PTZqsv','12530aMIzff','164onSnWy','1499414lbrYAO','You\x20can\x20now\x20use\x20Lovrabet\x20dataset\x20MCP\x20tools\x20in\x20Cursor.','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','cwd','message','\x0aError:\x20Configuration\x20failed\x20-\x20','18umpfuo','10kZaLlH','9267IqztRH','657VEirNO','exit','log','5053400KcwGqv','1167825vbvvvE','68393qgxocR'];a109_0x10c5=function(){return _0x43c785;};return a109_0x10c5();}
1
+ function a110_0x5798(_0x288f0a,_0x3ab01a){_0x288f0a=_0x288f0a-0x197;const _0x552c00=a110_0x552c();let _0x5798c1=_0x552c00[_0x288f0a];return _0x5798c1;}(function(_0x1b2cbe,_0x3978f4){const _0x411268=a110_0x5798,_0x4e2048=_0x1b2cbe();while(!![]){try{const _0x2c65b2=parseInt(_0x411268(0x198))/0x1+parseInt(_0x411268(0x1a3))/0x2*(parseInt(_0x411268(0x1a9))/0x3)+parseInt(_0x411268(0x19d))/0x4*(parseInt(_0x411268(0x1a6))/0x5)+-parseInt(_0x411268(0x1a7))/0x6+parseInt(_0x411268(0x1a0))/0x7*(parseInt(_0x411268(0x19a))/0x8)+-parseInt(_0x411268(0x1a8))/0x9+parseInt(_0x411268(0x199))/0xa;if(_0x2c65b2===_0x3978f4)break;else _0x4e2048['push'](_0x4e2048['shift']());}catch(_0x29a12b){_0x4e2048['push'](_0x4e2048['shift']());}}}(a110_0x552c,0x2eed2));import{configureCursorMcp as a110_0x17aab5}from'./mcp-installer.js';function a110_0x552c(){const _0x4bd6e6=['40jRMqHb','2203074xXRwxH','1383336jodveC','429VDyPMX','You\x20can\x20now\x20use\x20Lovrabet\x20dataset\x20MCP\x20tools\x20in\x20Cursor.','369717cYkuqo','1400340oPFPRN','24hppSOU','error','Please\x20restart\x20Cursor\x20to\x20load\x20the\x20new\x20MCP\x20config.','13904uYIyvD','Configuration:','log','119623fNHxYb','cwd','message','1738EkFupp','success','exit'];a110_0x552c=function(){return _0x4bd6e6;};return a110_0x552c();}export async function configureCursorMcp(){const _0xc052f5=a110_0x5798,_0x56c518=process[_0xc052f5(0x1a1)](),_0xf8be2e=await a110_0x17aab5(_0x56c518);_0xf8be2e[_0xc052f5(0x1a4)]?(console[_0xc052f5(0x19f)]('\x0a✓\x20Cursor\x20MCP\x20configured\x20successfully!\x0a'),console[_0xc052f5(0x19f)](_0xc052f5(0x19e)),console[_0xc052f5(0x19f)]('\x20\x20'+_0xf8be2e[_0xc052f5(0x1a2)]+'\x0a'),console[_0xc052f5(0x19f)](_0xc052f5(0x197)),console['log'](_0xc052f5(0x19c)),process[_0xc052f5(0x1a5)](0x0)):(console[_0xc052f5(0x19b)]('\x0aError:\x20Configuration\x20failed\x20-\x20'+_0xf8be2e[_0xc052f5(0x1a2)]+'\x0a'),process['exit'](0x1));}
package/lib/mcp/main.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3d6253,_0x33e140){const _0xa9995c=a110_0x585b,_0x55c7a5=_0x3d6253();while(!![]){try{const _0x172986=parseInt(_0xa9995c(0xce))/0x1+parseInt(_0xa9995c(0xca))/0x2+-parseInt(_0xa9995c(0xc4))/0x3+-parseInt(_0xa9995c(0xd8))/0x4*(parseInt(_0xa9995c(0xc9))/0x5)+-parseInt(_0xa9995c(0xc6))/0x6*(-parseInt(_0xa9995c(0xd6))/0x7)+-parseInt(_0xa9995c(0xc7))/0x8*(-parseInt(_0xa9995c(0xb8))/0x9)+-parseInt(_0xa9995c(0xbf))/0xa*(-parseInt(_0xa9995c(0xba))/0xb);if(_0x172986===_0x33e140)break;else _0x55c7a5['push'](_0x55c7a5['shift']());}catch(_0x1dada6){_0x55c7a5['push'](_0x55c7a5['shift']());}}}(a110_0x13d8,0xe55ab));function a110_0x13d8(){const _0x395cb2=['cwd','message','410291ejszex','description','112mxtvme','enableBffSave','exit','\x20-\x20','9CEqRBH','\x0aLovrabet\x20MCP\x20-\x20MCP\x20Server\x20Configuration\x20Tool\x0a\x0a\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help\x0a\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20MCP\x20configuration\x0a\x20\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x20\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20Configure\x20Claude\x20Code\x20MCP\x20directly\x0a\x0aConfiguration\x20methods:\x0a\x20\x20\x20Interactive\x20selection\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20IDE\x20list\x20for\x20selection\x0a\x20\x20\x20\x20→\x20Enter\x20number\x20to\x20select\x20IDE\x0a\x20\x20Direct\x20IDE\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Use\x20--ide\x20flags\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Cursor\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Claude\x20Code\x0a\x0aSupported\x20IDEs:\x0a','231WSsgHu','\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','cursor','ide','toLowerCase','66620yushVY','log','success','split','claude','1559895JIFKir','setLogPath','42fIPJjc','1093640oyHlTk','join','218360iNhZVV','2074256Dmlmmd','map','mcpCursor','has','958190DXChSl','error','\x0aAvailable\x20commands:','--help','name','help'];a110_0x13d8=function(){return _0x395cb2;};return a110_0x13d8();}import{installMcp}from'./mcp-installer.js';import{logger}from'../utils/logger.js';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';export async function mcpCommand(_0x1c19e5,_0x3b9ff0,_0x4a54c5){const _0x2f7c36=a110_0x585b;logger[_0x2f7c36(0xc5)](process[_0x2f7c36(0xd4)]());if(_0x4a54c5?.[_0x2f7c36(0xd3)]||_0x1c19e5===_0x2f7c36(0xd1)){showHelp();return;}_0x1c19e5!=='install'&&(console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x1c19e5||'-')),console[_0x2f7c36(0xc0)](_0x2f7c36(0xd0)),console[_0x2f7c36(0xc0)]('\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20MCP\x20configuration'),console['log'](_0x2f7c36(0xbb)),logger[_0x2f7c36(0xcf)]('mcp','Error:\x20Unsupported\x20command:\x20'+(_0x1c19e5||'-')),process[_0x2f7c36(0xb6)](0x1));let _0x2c9361;if(_0x4a54c5?.[_0x2f7c36(0xcc)])_0x2c9361=_0x2f7c36(0xbc);else{if(_0x4a54c5?.['mcpClaude'])_0x2c9361=_0x2f7c36(0xc3);else{if(_0x3b9ff0?.[0x0]){const _0x185c47=_0x3b9ff0[0x0][_0x2f7c36(0xbe)]();MCP_IDES[_0x2f7c36(0xcd)](_0x185c47)&&(_0x2c9361=_0x185c47);}}}const _0x14f628=_0x2c9361?[_0x2c9361]:[],_0x38fb68=await installMcp(_0x14f628,_0x4a54c5?.[_0x2f7c36(0xd9)]);for(const _0x2b91d5 of _0x38fb68){const _0x2c56bf=IDE_CONFIGS[_0x2b91d5[_0x2f7c36(0xbd)]]?.[_0x2f7c36(0xd2)]||_0x2b91d5[_0x2f7c36(0xbd)],_0x46668c=_0x2b91d5['needsManualAction']?'⚠️':_0x2b91d5[_0x2f7c36(0xc1)]?'✓':'✗',_0x32e9fe=_0x2b91d5['success']?console[_0x2f7c36(0xc0)]:console[_0x2f7c36(0xcf)];_0x32e9fe(_0x46668c+'\x20'+_0x2c56bf+':');const _0x180453=_0x2b91d5[_0x2f7c36(0xd5)][_0x2f7c36(0xc2)]('\x0a');for(const _0xd8266b of _0x180453){_0x32e9fe('\x20\x20'+_0xd8266b);}console[_0x2f7c36(0xc0)]('');}}function a110_0x585b(_0x5b17a8,_0x53427b){_0x5b17a8=_0x5b17a8-0xb6;const _0x13d8de=a110_0x13d8();let _0x585b5c=_0x13d8de[_0x5b17a8];return _0x585b5c;}function showHelp(){const _0x1cd9ff=a110_0x585b;console['log'](_0x1cd9ff(0xb9)+Array['from'](MCP_IDES)[_0x1cd9ff(0xcb)]((_0x23dc10,_0x4262e7)=>'\x20\x20'+(_0x4262e7+0x1)+'.\x20'+IDE_CONFIGS[_0x23dc10][_0x1cd9ff(0xd2)]+_0x1cd9ff(0xb7)+IDE_CONFIGS[_0x23dc10][_0x1cd9ff(0xd7)])[_0x1cd9ff(0xc8)]('\x0a')+'\x0a\x0aExamples:\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x0a\x20\x20\x20\x20→\x20Interactive\x20IDE\x20selection\x0a\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x0a\x20\x20\x20\x20→\x20Configure\x20Cursor\x20MCP\x20(writes\x20.cursor/mcp.json)\x0a\x0aConfiguration\x20guide:\x0a\x20\x20https://open.lovrabet.com/en/docs/mcp/config-guide\x0a');}
1
+ function a111_0x2ac8(){const _0xe8be59=['14VwoAfj','2139568UMDkOY','join','--help','10PqCPrI','366JvfsjP','\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','map','3605319ALctXx','name','message','install','\x0a\x0aExamples:\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x0a\x20\x20\x20\x20→\x20Interactive\x20IDE\x20selection\x0a\x0a\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x0a\x20\x20\x20\x20→\x20Configure\x20Cursor\x20MCP\x20(writes\x20.cursor/mcp.json)\x0a\x0aConfiguration\x20guide:\x0a\x20\x20https://open.lovrabet.com/en/docs/mcp/config-guide\x0a','log','cwd','mcpClaude','3469nfHGjE','\x0aAvailable\x20commands:','31765AOJIQl','2033273YBwtbj','setLogPath','success','Error:\x20Unsupported\x20command:\x20','enableBffSave','error','ide','154ZwWaKx','970588UjUBDK','toLowerCase','from','mcpCursor','needsManualAction','1188237TkdZBk','\x20-\x20','mcp','\x0aLovrabet\x20MCP\x20-\x20MCP\x20Server\x20Configuration\x20Tool\x0a\x0a\x20\x20rabetbase\x20mcp\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help\x0a\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Interactive\x20MCP\x20configuration\x0a\x20\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20Configure\x20Cursor\x20MCP\x20directly\x0a\x20\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20Configure\x20Claude\x20Code\x20MCP\x20directly\x0a\x0aConfiguration\x20methods:\x0a\x20\x20\x20Interactive\x20selection\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20IDE\x20list\x20for\x20selection\x0a\x20\x20\x20\x20→\x20Enter\x20number\x20to\x20select\x20IDE\x0a\x20\x20Direct\x20IDE\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Use\x20--ide\x20flags\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Cursor\x0a\x20\x20\x20\x20$\x20rabetbase\x20mcp\x20install\x20--claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Configure\x20Claude\x20Code\x0a\x0aSupported\x20IDEs:\x0a','\x20\x20rabetbase\x20mcp\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20MCP\x20configuration'];a111_0x2ac8=function(){return _0xe8be59;};return a111_0x2ac8();}(function(_0x48dc51,_0x1b5abb){const _0x452440=a111_0x59d3,_0x66d23c=_0x48dc51();while(!![]){try{const _0x7c5859=-parseInt(_0x452440(0x17a))/0x1*(parseInt(_0x452440(0x184))/0x2)+parseInt(_0x452440(0x18a))/0x3+parseInt(_0x452440(0x185))/0x4+-parseInt(_0x452440(0x17c))/0x5*(parseInt(_0x452440(0x194))/0x6)+parseInt(_0x452440(0x18f))/0x7*(parseInt(_0x452440(0x190))/0x8)+-parseInt(_0x452440(0x197))/0x9*(parseInt(_0x452440(0x193))/0xa)+parseInt(_0x452440(0x17d))/0xb;if(_0x7c5859===_0x1b5abb)break;else _0x66d23c['push'](_0x66d23c['shift']());}catch(_0x1d4dcf){_0x66d23c['push'](_0x66d23c['shift']());}}}(a111_0x2ac8,0x4a078));import{installMcp}from'./mcp-installer.js';import{logger}from'../utils/logger.js';import{MCP_IDES,IDE_CONFIGS}from'../utils/ai_config.js';function a111_0x59d3(_0x462cd2,_0x45afb9){_0x462cd2=_0x462cd2-0x178;const _0x2ac8c4=a111_0x2ac8();let _0x59d31c=_0x2ac8c4[_0x462cd2];return _0x59d31c;}export async function mcpCommand(_0x173640,_0x2565b6,_0x3c7fad){const _0x3a6c81=a111_0x59d3;logger[_0x3a6c81(0x17e)](process[_0x3a6c81(0x178)]());if(_0x3c7fad?.['help']||_0x173640===_0x3a6c81(0x192)){showHelp();return;}_0x173640!==_0x3a6c81(0x19a)&&(console[_0x3a6c81(0x182)](_0x3a6c81(0x180)+(_0x173640||'-')),console[_0x3a6c81(0x19c)](_0x3a6c81(0x17b)),console[_0x3a6c81(0x19c)](_0x3a6c81(0x18e)),console[_0x3a6c81(0x19c)](_0x3a6c81(0x195)),logger[_0x3a6c81(0x182)](_0x3a6c81(0x18c),'Error:\x20Unsupported\x20command:\x20'+(_0x173640||'-')),process['exit'](0x1));let _0x2ce891;if(_0x3c7fad?.[_0x3a6c81(0x188)])_0x2ce891='cursor';else{if(_0x3c7fad?.[_0x3a6c81(0x179)])_0x2ce891='claude';else{if(_0x2565b6?.[0x0]){const _0x11617e=_0x2565b6[0x0][_0x3a6c81(0x186)]();MCP_IDES['has'](_0x11617e)&&(_0x2ce891=_0x11617e);}}}const _0x5babe9=_0x2ce891?[_0x2ce891]:[],_0x114dc9=await installMcp(_0x5babe9,_0x3c7fad?.[_0x3a6c81(0x181)]);for(const _0x45476f of _0x114dc9){const _0x2e967=IDE_CONFIGS[_0x45476f[_0x3a6c81(0x183)]]?.[_0x3a6c81(0x198)]||_0x45476f[_0x3a6c81(0x183)],_0x247f07=_0x45476f[_0x3a6c81(0x189)]?'⚠️':_0x45476f[_0x3a6c81(0x17f)]?'✓':'✗',_0x4802bf=_0x45476f[_0x3a6c81(0x17f)]?console[_0x3a6c81(0x19c)]:console[_0x3a6c81(0x182)];_0x4802bf(_0x247f07+'\x20'+_0x2e967+':');const _0x1966b4=_0x45476f[_0x3a6c81(0x199)]['split']('\x0a');for(const _0x2cbd07 of _0x1966b4){_0x4802bf('\x20\x20'+_0x2cbd07);}console[_0x3a6c81(0x19c)]('');}}function showHelp(){const _0x1ce763=a111_0x59d3;console[_0x1ce763(0x19c)](_0x1ce763(0x18d)+Array[_0x1ce763(0x187)](MCP_IDES)[_0x1ce763(0x196)]((_0x11cec9,_0x203210)=>'\x20\x20'+(_0x203210+0x1)+'.\x20'+IDE_CONFIGS[_0x11cec9][_0x1ce763(0x198)]+_0x1ce763(0x18b)+IDE_CONFIGS[_0x11cec9]['description'])[_0x1ce763(0x191)]('\x0a')+_0x1ce763(0x19b));}
@@ -1 +1 @@
1
- (function(_0x3507fb,_0x151823){const _0x3e47d1=a111_0x34da,_0x200c47=_0x3507fb();while(!![]){try{const _0x2a0528=-parseInt(_0x3e47d1(0x144))/0x1+-parseInt(_0x3e47d1(0x147))/0x2*(parseInt(_0x3e47d1(0x14f))/0x3)+parseInt(_0x3e47d1(0x13a))/0x4+parseInt(_0x3e47d1(0x13d))/0x5*(parseInt(_0x3e47d1(0x13f))/0x6)+parseInt(_0x3e47d1(0x142))/0x7+-parseInt(_0x3e47d1(0x150))/0x8+parseInt(_0x3e47d1(0x153))/0x9;if(_0x2a0528===_0x151823)break;else _0x200c47['push'](_0x200c47['shift']());}catch(_0x3a0f55){_0x200c47['push'](_0x200c47['shift']());}}}(a111_0x42fe,0x77c85));import{installMcp}from'./mcp-installer.js';function a111_0x34da(_0x227951,_0x594279){_0x227951=_0x227951-0x139;const _0x42fed0=a111_0x42fe();let _0x34daac=_0x42fed0[_0x227951];return _0x34daac;}import{logger}from'../utils/logger.js';function a111_0x42fe(){const _0x379679=['4345936tfEsbt','success','954782xDTzTK','setLogPath','claude','608466skFOOZ','Other\x20IDE','length','Start\x20configuring\x20MCP','info','error','log','needsManualAction','3EHjjSE','3862904glkOEN','filter','Cursor','3466233PnDIsz','split','1553508NVZIjA','some','⚠️\x20\x20Note:\x20Some\x20configurations\x20require\x20manual\x20commands,\x20please\x20follow\x20the\x20instructions\x20above','25jOegjg','\x20succeeded)','1005774ymRTUp','cursor','ide'];a111_0x42fe=function(){return _0x379679;};return a111_0x42fe();}export async function installMcpNonInteractive(_0x245f04,_0x5f4766,_0x17a951=process['cwd']()){const _0x2ce5fb=a111_0x34da;logger[_0x2ce5fb(0x145)](_0x17a951),logger[_0x2ce5fb(0x14b)]('mcp-install-non-interactive',_0x2ce5fb(0x14a),{'ides':_0x245f04,'enableBffSave':_0x5f4766});const _0x2bcad5=await installMcp(_0x245f04,_0x5f4766,_0x17a951);for(const _0x13b555 of _0x2bcad5){const _0x300ad8=_0x13b555[_0x2ce5fb(0x141)]===_0x2ce5fb(0x140)?_0x2ce5fb(0x152):_0x13b555[_0x2ce5fb(0x141)]===_0x2ce5fb(0x146)?'Claude\x20Code':_0x2ce5fb(0x148),_0x592201=_0x13b555[_0x2ce5fb(0x14e)]?'⚠️':_0x13b555[_0x2ce5fb(0x143)]?'✓':'✗',_0x9f1dfe=_0x13b555[_0x2ce5fb(0x143)]?console[_0x2ce5fb(0x14d)]:console[_0x2ce5fb(0x14c)];_0x9f1dfe(_0x592201+'\x20'+_0x300ad8+':');const _0x1324a1=_0x13b555['message'][_0x2ce5fb(0x139)]('\x0a');for(const _0x3419b1 of _0x1324a1){_0x9f1dfe('\x20\x20'+_0x3419b1);}console['log']('');}const _0x5c8d95=_0x2bcad5[_0x2ce5fb(0x151)](_0x3ab17a=>_0x3ab17a[_0x2ce5fb(0x143)])[_0x2ce5fb(0x149)];console['log']('\x0a✓\x20MCP\x20configuration\x20completed\x20('+_0x5c8d95+'/'+_0x2bcad5[_0x2ce5fb(0x149)]+_0x2ce5fb(0x13e)),_0x2bcad5[_0x2ce5fb(0x13b)](_0x337b95=>_0x337b95[_0x2ce5fb(0x14e)])?(console[_0x2ce5fb(0x14d)](''),console[_0x2ce5fb(0x14d)](_0x2ce5fb(0x13c))):console['log']('');}
1
+ (function(_0x20de44,_0x47622c){const _0x4dfcf9=a112_0x5b54,_0xdcf4e4=_0x20de44();while(!![]){try{const _0x6c01af=parseInt(_0x4dfcf9(0x1e6))/0x1*(-parseInt(_0x4dfcf9(0x1e5))/0x2)+parseInt(_0x4dfcf9(0x1f2))/0x3+parseInt(_0x4dfcf9(0x1e2))/0x4*(-parseInt(_0x4dfcf9(0x1f5))/0x5)+-parseInt(_0x4dfcf9(0x1f1))/0x6+parseInt(_0x4dfcf9(0x1e8))/0x7*(parseInt(_0x4dfcf9(0x1ec))/0x8)+-parseInt(_0x4dfcf9(0x1ee))/0x9+-parseInt(_0x4dfcf9(0x1f7))/0xa*(parseInt(_0x4dfcf9(0x1f0))/0xb);if(_0x6c01af===_0x47622c)break;else _0xdcf4e4['push'](_0xdcf4e4['shift']());}catch(_0x87a132){_0xdcf4e4['push'](_0xdcf4e4['shift']());}}}(a112_0x3ff1,0xe17fe));function a112_0x5b54(_0x2c7f33,_0x29a097){_0x2c7f33=_0x2c7f33-0x1df;const _0x3ff128=a112_0x3ff1();let _0x5b541b=_0x3ff128[_0x2c7f33];return _0x5b541b;}import{installMcp}from'./mcp-installer.js';import{logger}from'../utils/logger.js';function a112_0x3ff1(){const _0x389b79=['21KQwfIV','info','Claude\x20Code','Other\x20IDE','4595608ENZsGY','setLogPath','7297704ORsCtq','log','52404HxIOmy','1614954bnCiFN','4870602yzyhoH','⚠️\x20\x20Note:\x20Some\x20configurations\x20require\x20manual\x20commands,\x20please\x20follow\x20the\x20instructions\x20above','filter','5CJwfNE','mcp-install-non-interactive','170qTZTSW','needsManualAction','some','cursor','success','2412860xtXRWJ','length','ide','2DOVLvm','659023LRykFY','\x0a✓\x20MCP\x20configuration\x20completed\x20('];a112_0x3ff1=function(){return _0x389b79;};return a112_0x3ff1();}export async function installMcpNonInteractive(_0x337a37,_0x473a9a,_0x4817e2=process['cwd']()){const _0x289d73=a112_0x5b54;logger[_0x289d73(0x1ed)](_0x4817e2),logger[_0x289d73(0x1e9)](_0x289d73(0x1f6),'Start\x20configuring\x20MCP',{'ides':_0x337a37,'enableBffSave':_0x473a9a});const _0x4f6962=await installMcp(_0x337a37,_0x473a9a,_0x4817e2);for(const _0x1a5ee of _0x4f6962){const _0x326a7f=_0x1a5ee[_0x289d73(0x1e4)]===_0x289d73(0x1e0)?'Cursor':_0x1a5ee[_0x289d73(0x1e4)]==='claude'?_0x289d73(0x1ea):_0x289d73(0x1eb),_0x5d025e=_0x1a5ee[_0x289d73(0x1f8)]?'⚠️':_0x1a5ee[_0x289d73(0x1e1)]?'✓':'✗',_0x10b1ea=_0x1a5ee[_0x289d73(0x1e1)]?console['log']:console['error'];_0x10b1ea(_0x5d025e+'\x20'+_0x326a7f+':');const _0x7ac8a2=_0x1a5ee['message']['split']('\x0a');for(const _0x4e0cd4 of _0x7ac8a2){_0x10b1ea('\x20\x20'+_0x4e0cd4);}console[_0x289d73(0x1ef)]('');}const _0xfd7d83=_0x4f6962[_0x289d73(0x1f4)](_0x5e6937=>_0x5e6937[_0x289d73(0x1e1)])['length'];console[_0x289d73(0x1ef)](_0x289d73(0x1e7)+_0xfd7d83+'/'+_0x4f6962[_0x289d73(0x1e3)]+'\x20succeeded)'),_0x4f6962[_0x289d73(0x1df)](_0x286bf3=>_0x286bf3[_0x289d73(0x1f8)])?(console[_0x289d73(0x1ef)](''),console[_0x289d73(0x1ef)](_0x289d73(0x1f3))):console[_0x289d73(0x1ef)]('');}