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

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 (133) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app.js +1 -1
  18. package/lib/commands/auth.js +1 -1
  19. package/lib/commands/bff/delete.js +1 -1
  20. package/lib/commands/bff/detail.js +1 -1
  21. package/lib/commands/bff/index.js +1 -1
  22. package/lib/commands/bff/list.js +1 -1
  23. package/lib/commands/bff/new.js +1 -1
  24. package/lib/commands/bff/pull.js +1 -1
  25. package/lib/commands/bff/push.js +1 -1
  26. package/lib/commands/bff/status.js +1 -1
  27. package/lib/commands/build.js +1 -1
  28. package/lib/commands/cli-update.js +1 -1
  29. package/lib/commands/codegen/index.js +1 -1
  30. package/lib/commands/codegen/sdk.js +1 -1
  31. package/lib/commands/codegen/sql.js +1 -1
  32. package/lib/commands/common/flags.js +1 -1
  33. package/lib/commands/config.js +1 -1
  34. package/lib/commands/create.js +1 -1
  35. package/lib/commands/dataset/detail.js +1 -1
  36. package/lib/commands/dataset/index.js +1 -1
  37. package/lib/commands/dataset/links.js +1 -1
  38. package/lib/commands/dataset/list.js +1 -1
  39. package/lib/commands/dataset/operations.js +1 -1
  40. package/lib/commands/doctor.js +1 -1
  41. package/lib/commands/init.js +1 -1
  42. package/lib/commands/logout.js +1 -1
  43. package/lib/commands/logs.js +1 -1
  44. package/lib/commands/menu/index.js +1 -1
  45. package/lib/commands/menu/shared/compare-table.js +1 -1
  46. package/lib/commands/menu/shared/index.js +1 -1
  47. package/lib/commands/menu/shared/inquirer.js +1 -1
  48. package/lib/commands/menu/shared/local-pages.js +1 -1
  49. package/lib/commands/menu/shared/logic.js +1 -1
  50. package/lib/commands/menu/shared/service.js +1 -1
  51. package/lib/commands/menu/shared/sync-core.js +1 -1
  52. package/lib/commands/menu/shared/update-core.js +1 -1
  53. package/lib/commands/menu/shared/valid-url.js +1 -1
  54. package/lib/commands/menu/sync.js +1 -1
  55. package/lib/commands/menu/update.js +1 -1
  56. package/lib/commands/preview.js +1 -1
  57. package/lib/commands/project-upgrade.js +1 -1
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/run.js +1 -1
  60. package/lib/commands/skill.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/sql/list.js +1 -1
  65. package/lib/commands/sql/save.js +1 -1
  66. package/lib/commands/sql/validate.js +1 -1
  67. package/lib/commands/start.js +1 -1
  68. package/lib/config/config-help.js +1 -1
  69. package/lib/config/main.js +1 -1
  70. package/lib/constant/cli.js +1 -1
  71. package/lib/constant/domain.js +1 -1
  72. package/lib/constant/env.js +1 -1
  73. package/lib/context.js +1 -1
  74. package/lib/core/alias-resolver.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/bff/config.js +1 -1
  77. package/lib/core/bff/file-system.js +1 -1
  78. package/lib/core/bff/hash.js +1 -1
  79. package/lib/core/bff/lock.js +1 -1
  80. package/lib/core/bff/utils.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sql-validator.js +1 -1
  83. package/lib/create-app/enhanced-guided-create.js +1 -1
  84. package/lib/create-app/format-elapsed.js +1 -1
  85. package/lib/create-app/main.js +1 -1
  86. package/lib/create-app/non-interactive.js +1 -1
  87. package/lib/create-app/task-finished.js +1 -1
  88. package/lib/create-app/task-loading.js +1 -1
  89. package/lib/create-app/task-running.js +1 -1
  90. package/lib/create-app/task-time.js +1 -1
  91. package/lib/create-app/use-copy-project-template.js +1 -1
  92. package/lib/create-app/use-format-code.js +1 -1
  93. package/lib/create-app/use-install-dependencies.js +1 -1
  94. package/lib/errors.js +1 -1
  95. package/lib/framework/flags.js +1 -1
  96. package/lib/framework/help.js +1 -1
  97. package/lib/framework/index.js +1 -1
  98. package/lib/framework/output.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner.js +1 -1
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/init/main.js +1 -1
  104. package/lib/skills/main.js +1 -1
  105. package/lib/skills/npx-skills-add.js +1 -1
  106. package/lib/telemetry/cli-help-trace.js +1 -1
  107. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  108. package/lib/utils/ai_config.js +1 -1
  109. package/lib/utils/cdn-config.js +1 -1
  110. package/lib/utils/check-sdk-version.js +1 -1
  111. package/lib/utils/cli-version-check.js +1 -1
  112. package/lib/utils/config.js +1 -1
  113. package/lib/utils/copy-directory.js +1 -1
  114. package/lib/utils/file-utils.js +1 -1
  115. package/lib/utils/guides-cdn.js +1 -1
  116. package/lib/utils/http-client.js +1 -1
  117. package/lib/utils/logger.js +1 -1
  118. package/lib/utils/platform.js +1 -0
  119. package/lib/utils/rules-cdn.js +1 -1
  120. package/lib/utils/sleep.js +1 -1
  121. package/lib/utils/template-replacer.js +1 -1
  122. package/package.json +2 -2
  123. package/lib/ai-setup/config.js +0 -1
  124. package/lib/commands/mcp.js +0 -1
  125. package/lib/mcp/McpInstallUI.js +0 -1
  126. package/lib/mcp/claude.js +0 -1
  127. package/lib/mcp/cursor.js +0 -1
  128. package/lib/mcp/main.js +0 -1
  129. package/lib/mcp/mcp-install-non-interactive.js +0 -1
  130. package/lib/mcp/mcp-installer.js +0 -1
  131. package/lib/telemetry/otel-logger-version.js +0 -1
  132. package/lib/ui/IDESelector.js +0 -1
  133. package/lib/ui/useIDESelection.js +0 -1
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a97_0x2566(_0x105b38,_0x4ab910){_0x105b38=_0x105b38-0x124;const _0x292117=a97_0x2921();let _0x25669a=_0x292117[_0x105b38];return _0x25669a;}const a97_0x22e578=a97_0x2566;(function(_0x3f1907,_0x361c1d){const _0x5f190c=a97_0x2566,_0x2a14dd=_0x3f1907();while(!![]){try{const _0x24c285=-parseInt(_0x5f190c(0x133))/0x1+-parseInt(_0x5f190c(0x128))/0x2+-parseInt(_0x5f190c(0x137))/0x3*(-parseInt(_0x5f190c(0x12c))/0x4)+parseInt(_0x5f190c(0x126))/0x5*(-parseInt(_0x5f190c(0x12d))/0x6)+-parseInt(_0x5f190c(0x12e))/0x7+-parseInt(_0x5f190c(0x13a))/0x8*(parseInt(_0x5f190c(0x132))/0x9)+parseInt(_0x5f190c(0x135))/0xa;if(_0x24c285===_0x361c1d)break;else _0x2a14dd['push'](_0x2a14dd['shift']());}catch(_0x22d79c){_0x2a14dd['push'](_0x2a14dd['shift']());}}}(a97_0x2921,0xddcc8));import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{[a97_0x22e578(0x13e)];['exitCode'];[a97_0x22e578(0x13f)];constructor(_0x1254ae,_0x37d939,_0x24b289,_0x18db78){const _0x27fa22=a97_0x22e578;super(_0x24b289),this[_0x27fa22(0x138)]='CliError',this['code']=_0x1254ae,this['exitCode']=_0x37d939,this[_0x27fa22(0x13f)]=_0x18db78;}}function a97_0x2921(){const _0x3acc81=['api_error','1859856alCBgy','validation_error','Run\x20`','config_missing','1100wkiGcP','6lDsgbV','8002757IAQYWj','cancelled','Not\x20in\x20a\x20','\x20project\x20directory','2521377LNtJEl','1766440CFuKVu','Missing\x20required\x20flag:\x20--','50508210dOnqRd','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','3828bbBqAd','name','auth_required','8JUUSri','Configuration\x20file\x20not\x20found','Unknown\x20command:\x20','Operation\x20cancelled.','code','hint','Network\x20error:\x20','unknown_command','flag_missing','1867305pCnkrF'];a97_0x2921=function(){return _0x3acc81;};return a97_0x2921();}export const CliErrors={'authRequired':_0x522950=>new CliError(a97_0x22e578(0x139),0x1,'Authentication\x20required',_0x522950??a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.'),'configMissing':_0x122f62=>new CliError(a97_0x22e578(0x12b),0x1,a97_0x22e578(0x13b),_0x122f62??'Run\x20`'+CLI_BIN_NAME+'\x20init`\x20to\x20create\x20a\x20config\x20file.'),'notInProject':()=>new CliError('not_in_project',0x1,a97_0x22e578(0x130)+CLI_BIN_NAME+a97_0x22e578(0x131),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'),'apiError':(_0x1e4900,_0x4c4518)=>new CliError(a97_0x22e578(0x127),0x2,_0x1e4900,_0x4c4518),'networkError':_0x4f37ee=>new CliError('network_error',0x2,a97_0x22e578(0x140)+_0x4f37ee,a97_0x22e578(0x136)),'unknownCommand':_0x37d41a=>new CliError(a97_0x22e578(0x124),0x1,a97_0x22e578(0x13c)+_0x37d41a,a97_0x22e578(0x12a)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.'),'flagMissing':(_0x52a5fd,_0x5e69ca)=>new CliError(a97_0x22e578(0x125),0x1,a97_0x22e578(0x134)+_0x52a5fd,_0x5e69ca),'validation':(_0x3f5556,_0x1dd4bc)=>new CliError(a97_0x22e578(0x129),0x1,_0x3f5556,_0x1dd4bc),'cancelled':_0x115823=>new CliError(a97_0x22e578(0x12f),0x0,_0x115823??a97_0x22e578(0x13d),undefined)};
1
+ const a95_0x1e86f2=a95_0x9373;(function(_0x413921,_0x2bd8f7){const _0x361bcb=a95_0x9373,_0x4b3d5e=_0x413921();while(!![]){try{const _0x230cf6=-parseInt(_0x361bcb(0x15a))/0x1*(parseInt(_0x361bcb(0x154))/0x2)+parseInt(_0x361bcb(0x14a))/0x3+-parseInt(_0x361bcb(0x14e))/0x4+parseInt(_0x361bcb(0x156))/0x5+-parseInt(_0x361bcb(0x150))/0x6+-parseInt(_0x361bcb(0x152))/0x7*(parseInt(_0x361bcb(0x155))/0x8)+-parseInt(_0x361bcb(0x151))/0x9*(-parseInt(_0x361bcb(0x153))/0xa);if(_0x230cf6===_0x2bd8f7)break;else _0x4b3d5e['push'](_0x4b3d5e['shift']());}catch(_0x3442){_0x4b3d5e['push'](_0x4b3d5e['shift']());}}}(a95_0x255d,0xb736a));import{CLI_BIN_NAME}from'./constant/cli.js';function a95_0x9373(_0x5915d8,_0x1b2bdf){_0x5915d8=_0x5915d8-0x147;const _0x255d60=a95_0x255d();let _0x93739f=_0x255d60[_0x5915d8];return _0x93739f;}function a95_0x255d(){const _0x454ed2=['flag_missing','Network\x20error:\x20','\x20project\x20directory','2621Wmaala','not_in_project','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','code','name','network_error','Not\x20in\x20a\x20','hint','Run\x20`','cancelled','\x20init`\x20to\x20create\x20a\x20config\x20file.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','\x20auth`\x20to\x20login\x20first.','Configuration\x20file\x20not\x20found','\x20--help`\x20to\x20see\x20available\x20commands.','3681939ZFmtbE','api_error','Unknown\x20command:\x20','validation_error','4894052bdOvci','exitCode','4923696bZPYGH','9zzJRmJ','742ocmKVe','23794110FOpeiY','930CZSSjv','61400hNxbAS','6100810loTEEX'];a95_0x255d=function(){return _0x454ed2;};return a95_0x255d();}export class CliError extends Error{[a95_0x1e86f2(0x15d)];[a95_0x1e86f2(0x14f)];['hint'];constructor(_0x154e54,_0x4b264f,_0x34cda7,_0x4f87f0){const _0x21f444=a95_0x1e86f2;super(_0x34cda7),this[_0x21f444(0x15e)]='CliError',this[_0x21f444(0x15d)]=_0x154e54,this[_0x21f444(0x14f)]=_0x4b264f,this[_0x21f444(0x161)]=_0x4f87f0;}}export const CliErrors={'authRequired':_0x1b866f=>new CliError('auth_required',0x1,'Authentication\x20required',_0x1b866f??a95_0x1e86f2(0x162)+CLI_BIN_NAME+a95_0x1e86f2(0x147)),'configMissing':_0x5105b6=>new CliError('config_missing',0x1,a95_0x1e86f2(0x148),_0x5105b6??a95_0x1e86f2(0x162)+CLI_BIN_NAME+a95_0x1e86f2(0x164)),'notInProject':()=>new CliError(a95_0x1e86f2(0x15b),0x1,a95_0x1e86f2(0x160)+CLI_BIN_NAME+a95_0x1e86f2(0x159),a95_0x1e86f2(0x15c)),'apiError':(_0x5cb844,_0x23e7c7)=>new CliError(a95_0x1e86f2(0x14b),0x2,_0x5cb844,_0x23e7c7),'networkError':_0x4c566f=>new CliError(a95_0x1e86f2(0x15f),0x2,a95_0x1e86f2(0x158)+_0x4c566f,a95_0x1e86f2(0x165)),'unknownCommand':_0x20c9eb=>new CliError('unknown_command',0x1,a95_0x1e86f2(0x14c)+_0x20c9eb,'Run\x20`'+CLI_BIN_NAME+a95_0x1e86f2(0x149)),'flagMissing':(_0x528e5b,_0x1177d0)=>new CliError(a95_0x1e86f2(0x157),0x1,'Missing\x20required\x20flag:\x20--'+_0x528e5b,_0x1177d0),'validation':(_0x1832fc,_0x55fc2d)=>new CliError(a95_0x1e86f2(0x14d),0x1,_0x1832fc,_0x55fc2d),'cancelled':_0x143583=>new CliError(a95_0x1e86f2(0x163),0x0,_0x143583??'Operation\x20cancelled.',undefined)};
@@ -1 +1 @@
1
- (function(_0x37fe4f,_0x1d2ea3){const _0x1b452e=a98_0x1db3,_0x4de641=_0x37fe4f();while(!![]){try{const _0x52f720=-parseInt(_0x1b452e(0x16d))/0x1*(parseInt(_0x1b452e(0x153))/0x2)+parseInt(_0x1b452e(0x16a))/0x3*(-parseInt(_0x1b452e(0x150))/0x4)+parseInt(_0x1b452e(0x16c))/0x5+parseInt(_0x1b452e(0x166))/0x6+-parseInt(_0x1b452e(0x171))/0x7*(parseInt(_0x1b452e(0x158))/0x8)+parseInt(_0x1b452e(0x163))/0x9+parseInt(_0x1b452e(0x159))/0xa*(parseInt(_0x1b452e(0x157))/0xb);if(_0x52f720===_0x1d2ea3)break;else _0x4de641['push'](_0x4de641['shift']());}catch(_0x4f47e4){_0x4de641['push'](_0x4de641['shift']());}}}(a98_0x34be,0xa9aaa));function a98_0x34be(){const _0x40c36b=['enum','validation','\x20is\x20required\x20for\x20`','7TOCQxN','format','length','648684KMCuCs','boolean','dry-run','214gdmqim','test','pattern','type','11RgVGmF','10682872JVducA','15566710KgtWGf','number','toUpperCase','Invalid\x20value\x20\x22','yes','replace','join','name','regex','\x20expects\x20a\x20number,\x20got\x20\x22','10697517NBQEmB','default','Invalid\x20--','3812604aZUPPi','dryRun','\x22\x20for\x20--','includes','21VRmmJW','description','189770HvzdKp','2366QaPjGI'];a98_0x34be=function(){return _0x40c36b;};return a98_0x34be();}import{CliErrors}from'../errors.js';export function parseFlags(_0x4446ec,_0xc6943e){const _0x5d620c=a98_0x1db3,_0x161cfd={};for(const _0x3b4332 of _0x4446ec){const _0x8ea0d9=_0xc6943e[_0x3b4332[_0x5d620c(0x160)]]??_0xc6943e[toCamelCase(_0x3b4332[_0x5d620c(0x160)])];if(_0x8ea0d9===undefined||_0x8ea0d9===null){_0x3b4332['default']!==undefined&&(_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=_0x3b4332[_0x5d620c(0x164)]);continue;}_0x161cfd[_0x3b4332[_0x5d620c(0x160)]]=coerce(_0x3b4332,_0x8ea0d9);}for(const _0x4ec5e1 of[_0x5d620c(0x152),_0x5d620c(0x167),_0x5d620c(0x15d),_0x5d620c(0x172)]){const _0x27656f=_0xc6943e[_0x4ec5e1];if(_0x27656f!==undefined){const _0x56a20c=_0x4ec5e1==='dryRun'?_0x5d620c(0x152):_0x4ec5e1;_0x161cfd[_0x56a20c]=_0x27656f;}}return _0x161cfd;}function a98_0x1db3(_0xd8f4,_0xb666c3){_0xd8f4=_0xd8f4-0x14f;const _0x34be55=a98_0x34be();let _0x1db31a=_0x34be55[_0xd8f4];return _0x1db31a;}export function validateFlags(_0x299322,_0x21c811,_0x5b90f7){const _0x4c0ea1=a98_0x1db3;for(const _0x5d49a3 of _0x299322){const _0x1eb65e=_0x21c811[_0x5d49a3[_0x4c0ea1(0x160)]];if(_0x5d49a3['required']&&(_0x1eb65e===undefined||_0x1eb65e===''))throw CliErrors['flagMissing'](_0x5d49a3[_0x4c0ea1(0x160)],'--'+_0x5d49a3[_0x4c0ea1(0x160)]+_0x4c0ea1(0x170)+_0x5b90f7+'`.');if(_0x5d49a3[_0x4c0ea1(0x16e)]&&_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x14f)]>0x0&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x169)](String(_0x1eb65e)))throw CliErrors[_0x4c0ea1(0x16f)](_0x4c0ea1(0x15c)+_0x1eb65e+_0x4c0ea1(0x168)+_0x5d49a3[_0x4c0ea1(0x160)]+'.\x20Allowed:\x20'+_0x5d49a3[_0x4c0ea1(0x16e)][_0x4c0ea1(0x15f)](',\x20'));}if(_0x5d49a3[_0x4c0ea1(0x155)]&&_0x1eb65e!==undefined&&_0x1eb65e!==''){if(!_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x161)][_0x4c0ea1(0x154)](String(_0x1eb65e)))throw CliErrors['validation'](_0x4c0ea1(0x165)+_0x5d49a3[_0x4c0ea1(0x160)]+':\x20expected\x20'+_0x5d49a3[_0x4c0ea1(0x155)][_0x4c0ea1(0x16b)]+',\x20got\x20\x22'+_0x1eb65e+'\x22.');}}}function coerce(_0x5e7265,_0x640071){const _0x52bfbb=a98_0x1db3;switch(_0x5e7265[_0x52bfbb(0x156)]){case _0x52bfbb(0x151):return _0x640071===!![]||_0x640071==='true';case _0x52bfbb(0x15a):{const _0x41413c=Number(_0x640071);if(isNaN(_0x41413c))throw CliErrors[_0x52bfbb(0x16f)]('--'+_0x5e7265['name']+_0x52bfbb(0x162)+_0x640071+'\x22');return _0x41413c;}default:return String(_0x640071);}}function toCamelCase(_0x3c8346){const _0x4e808b=a98_0x1db3;return _0x3c8346[_0x4e808b(0x15e)](/-([a-z])/g,(_0x5361bb,_0x1447df)=>_0x1447df[_0x4e808b(0x15b)]());}
1
+ (function(_0x9a4127,_0x3bcf88){const _0x4150cd=a96_0x3d6e,_0x58e51e=_0x9a4127();while(!![]){try{const _0x3b7950=-parseInt(_0x4150cd(0x8a))/0x1*(-parseInt(_0x4150cd(0x85))/0x2)+-parseInt(_0x4150cd(0x89))/0x3+-parseInt(_0x4150cd(0x99))/0x4+-parseInt(_0x4150cd(0xa6))/0x5+-parseInt(_0x4150cd(0xa5))/0x6+-parseInt(_0x4150cd(0x96))/0x7*(parseInt(_0x4150cd(0x9b))/0x8)+-parseInt(_0x4150cd(0x9e))/0x9*(-parseInt(_0x4150cd(0xa2))/0xa);if(_0x3b7950===_0x3bcf88)break;else _0x58e51e['push'](_0x58e51e['shift']());}catch(_0xa132b4){_0x58e51e['push'](_0x58e51e['shift']());}}}(a96_0x26fe,0xc28f9));function a96_0x26fe(){const _0xbea3ae=['required','name','Invalid\x20--','flagMissing','pattern','.\x20Allowed:\x20','dryRun','88718kHfsWN','enum','dry-run','1967628nepiVi','validation','912LXLZYI','default',',\x20got\x20\x22','9qPByla','boolean','toUpperCase',':\x20expected\x20','40240400AMWPoj','yes','number','2068668Ealuha','1501910MLxbYw','82PCRtis','length','type','description','3298980dcSDSG','11084VCKzed','true','\x20is\x20required\x20for\x20`','join','test'];a96_0x26fe=function(){return _0xbea3ae;};return a96_0x26fe();}import{CliErrors}from'../errors.js';export function parseFlags(_0x163a7b,_0x4b2d37){const _0x346a1f=a96_0x3d6e,_0x5ec86f={};for(const _0x5dce46 of _0x163a7b){const _0x499c21=_0x4b2d37[_0x5dce46[_0x346a1f(0x90)]]??_0x4b2d37[toCamelCase(_0x5dce46['name'])];if(_0x499c21===undefined||_0x499c21===null){_0x5dce46[_0x346a1f(0x9c)]!==undefined&&(_0x5ec86f[_0x5dce46[_0x346a1f(0x90)]]=_0x5dce46[_0x346a1f(0x9c)]);continue;}_0x5ec86f[_0x5dce46[_0x346a1f(0x90)]]=coerce(_0x5dce46,_0x499c21);}for(const _0x35fe9f of[_0x346a1f(0x98),_0x346a1f(0x95),_0x346a1f(0xa3),'format']){const _0x4f53fc=_0x4b2d37[_0x35fe9f];if(_0x4f53fc!==undefined){const _0x4aba25=_0x35fe9f===_0x346a1f(0x95)?_0x346a1f(0x98):_0x35fe9f;_0x5ec86f[_0x4aba25]=_0x4f53fc;}}return _0x5ec86f;}export function validateFlags(_0x5a8b96,_0x2d0bf2,_0x4cfe3d){const _0x4fd535=a96_0x3d6e;for(const _0x5e2fd2 of _0x5a8b96){const _0x4fe742=_0x2d0bf2[_0x5e2fd2[_0x4fd535(0x90)]];if(_0x5e2fd2[_0x4fd535(0x8f)]&&(_0x4fe742===undefined||_0x4fe742===''))throw CliErrors[_0x4fd535(0x92)](_0x5e2fd2[_0x4fd535(0x90)],'--'+_0x5e2fd2[_0x4fd535(0x90)]+_0x4fd535(0x8c)+_0x4cfe3d+'`.');if(_0x5e2fd2['enum']&&_0x5e2fd2['enum'][_0x4fd535(0x86)]>0x0&&_0x4fe742!==undefined&&_0x4fe742!==''){if(!_0x5e2fd2['enum']['includes'](String(_0x4fe742)))throw CliErrors[_0x4fd535(0x9a)]('Invalid\x20value\x20\x22'+_0x4fe742+'\x22\x20for\x20--'+_0x5e2fd2[_0x4fd535(0x90)]+_0x4fd535(0x94)+_0x5e2fd2[_0x4fd535(0x97)][_0x4fd535(0x8d)](',\x20'));}if(_0x5e2fd2[_0x4fd535(0x93)]&&_0x4fe742!==undefined&&_0x4fe742!==''){if(!_0x5e2fd2[_0x4fd535(0x93)]['regex'][_0x4fd535(0x8e)](String(_0x4fe742)))throw CliErrors[_0x4fd535(0x9a)](_0x4fd535(0x91)+_0x5e2fd2[_0x4fd535(0x90)]+_0x4fd535(0xa1)+_0x5e2fd2[_0x4fd535(0x93)][_0x4fd535(0x88)]+_0x4fd535(0x9d)+_0x4fe742+'\x22.');}}}function coerce(_0x28e5f7,_0xd06bab){const _0x128203=a96_0x3d6e;switch(_0x28e5f7[_0x128203(0x87)]){case _0x128203(0x9f):return _0xd06bab===!![]||_0xd06bab===_0x128203(0x8b);case _0x128203(0xa4):{const _0x2daf60=Number(_0xd06bab);if(isNaN(_0x2daf60))throw CliErrors[_0x128203(0x9a)]('--'+_0x28e5f7[_0x128203(0x90)]+'\x20expects\x20a\x20number,\x20got\x20\x22'+_0xd06bab+'\x22');return _0x2daf60;}default:return String(_0xd06bab);}}function a96_0x3d6e(_0x3e069e,_0x5a2cbd){_0x3e069e=_0x3e069e-0x85;const _0x26feae=a96_0x26fe();let _0x3d6e4d=_0x26feae[_0x3e069e];return _0x3d6e4d;}function toCamelCase(_0x1a0e44){const _0x19404b=a96_0x3d6e;return _0x1a0e44['replace'](/-([a-z])/g,(_0x12db83,_0x595970)=>_0x595970[_0x19404b(0xa0)]());}
@@ -1 +1 @@
1
- const a99_0x586525=a99_0x4d5b;(function(_0x2dc296,_0x33306a){const _0x1ed797=a99_0x4d5b,_0x21497d=_0x2dc296();while(!![]){try{const _0x329a97=-parseInt(_0x1ed797(0x1b1))/0x1*(-parseInt(_0x1ed797(0x1df))/0x2)+-parseInt(_0x1ed797(0x1b0))/0x3*(parseInt(_0x1ed797(0x1ba))/0x4)+-parseInt(_0x1ed797(0x1ca))/0x5+parseInt(_0x1ed797(0x1e3))/0x6+-parseInt(_0x1ed797(0x1c7))/0x7+-parseInt(_0x1ed797(0x1cd))/0x8+parseInt(_0x1ed797(0x1d8))/0x9;if(_0x329a97===_0x33306a)break;else _0x21497d['push'](_0x21497d['shift']());}catch(_0xa41c0e){_0x21497d['push'](_0x21497d['shift']());}}}(a99_0x5659,0x292e5));function a99_0x4d5b(_0x40f43b,_0x4e22f2){_0x40f43b=_0x40f43b-0x1a4;const _0x5659b3=a99_0x5659();let _0x4d5b38=_0x5659b3[_0x40f43b];return _0x4d5b38;}import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a99_0x586525(0x1e4),'high-risk-write':a99_0x586525(0x1aa)};function a99_0x5659(){const _0x1718bc=['type','join','flags','\x20<value>','\x20(required)','\x20\x20\x20\x20','\x20<command>\x20--help`\x20for\x20flag\x20details.','high-risk-write','\x20\x20[high-risk-write]','\x20project\x20init`\x20or\x20--appcode).','pretty','service','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20Run\x20`','12FGcDnu','48275MLTMtC','Requires\x20authentication\x20(run\x20`','\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','\x20<command>\x20[flags]','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','\x20auth`\x20first).','label','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','203080kNoAeL','\x20\x20GLOBAL\x20OPTIONS','tag','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20\x20\x20\x20•\x20','format','\x20|\x20','dryRun','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','Output\x20format','push','Skip\x20confirmation\x20prompt','map','223580VwLZEc','table','yes','239535TnKDGq','commands','default','795560PJFfWE','enum','\x20\x20\x20\x20$\x20','risk','command','requiresAppCode','\x20\x20USAGE','description','requiresAuth','hasFormat','\x20\x20COMMANDS','164412lSWpoL','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','\x20\x20Unknown\x20service:\x20','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','number','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','\x20[default:\x20','10lmbvvA','\x20\x20RISK:\x20','max','padEnd','1748436zczLax','\x20\x20[write]','length','boolean','json'];a99_0x5659=function(){return _0x1718bc;};return a99_0x5659();}export function generateCommandHelp(_0x473c88){const _0x51c246=a99_0x586525,_0x4f3ef3=[],_0x378794=CLI_BIN_NAME+'\x20'+_0x473c88[_0x51c246(0x1ad)]+'\x20'+_0x473c88[_0x51c246(0x1d1)];_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20'+_0x473c88[_0x51c246(0x1d4)]),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3['push']('\x20\x20USAGE'),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1a7)+_0x378794+_0x51c246(0x1b3)),_0x4f3ef3[_0x51c246(0x1c4)](''),_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1e0)+_0x473c88[_0x51c246(0x1d0)]);_0x473c88['risk']===_0x51c246(0x1a9)&&_0x4f3ef3[_0x51c246(0x1c4)](_0x51c246(0x1ae));_0x4f3ef3[_0x51c246(0x1c4)]('');if(_0x473c88['flags'][_0x51c246(0x1e5)]>0x0||_0x473c88[_0x51c246(0x1c1)]||_0x473c88[_0x51c246(0x1d6)]!==![]){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20FLAGS');const _0x19bcb4=buildAllFlags(_0x473c88),_0x1caeba=Math[_0x51c246(0x1e1)](..._0x19bcb4[_0x51c246(0x1c6)](_0x42e263=>formatFlagName(_0x42e263)[_0x51c246(0x1e5)]));for(const _0x4a2288 of _0x19bcb4){const _0x4260c0=formatFlagName(_0x4a2288)[_0x51c246(0x1e2)](_0x1caeba+0x2);let _0x27433e=_0x4a2288['description'];_0x4a2288[_0x51c246(0x1ce)]&&_0x4a2288['enum'][_0x51c246(0x1e5)]>0x0&&(_0x27433e+='\x20('+_0x4a2288[_0x51c246(0x1ce)][_0x51c246(0x1e9)](_0x51c246(0x1c0))+')'),_0x4a2288[_0x51c246(0x1cc)]!==undefined&&_0x4a2288['default']!==''&&(_0x27433e+=_0x51c246(0x1de)+_0x4a2288['default']+']'),_0x4a2288['required']&&(_0x27433e+=_0x51c246(0x1a6)),_0x4f3ef3['push'](_0x51c246(0x1a7)+_0x4260c0+_0x27433e);}_0x4f3ef3['push']('');}const _0x5698bd=[];_0x473c88[_0x51c246(0x1d5)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b2)+CLI_BIN_NAME+_0x51c246(0x1b7));_0x473c88[_0x51c246(0x1d2)]!==![]&&_0x5698bd[_0x51c246(0x1c4)](_0x51c246(0x1b4)+CLI_BIN_NAME+_0x51c246(0x1ab));if(_0x5698bd[_0x51c246(0x1e5)]>0x0){_0x4f3ef3[_0x51c246(0x1c4)]('\x20\x20PREREQUISITES');for(const _0x3f6293 of _0x5698bd){_0x4f3ef3['push'](_0x51c246(0x1be)+_0x3f6293);}_0x4f3ef3['push']('');}return _0x4f3ef3[_0x51c246(0x1e9)]('\x0a');}export function generateServiceHelp(_0x5d22a7){const _0x456c59=a99_0x586525,_0x50c423=getServiceEntry(_0x5d22a7);if(!_0x50c423)return _0x456c59(0x1da)+_0x5d22a7+'\x0a';const _0x14083a=[];_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)]('\x20\x20'+_0x50c423[_0x456c59(0x1b8)]),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d3)),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1b5)),_0x14083a['push'](''),_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1d7));const _0x283666=Math['max'](..._0x50c423[_0x456c59(0x1cb)][_0x456c59(0x1c6)](_0x111254=>_0x111254[_0x456c59(0x1d1)][_0x456c59(0x1e5)]));for(const _0xa16547 of _0x50c423['commands']){const _0x4ad3d2=_0xa16547[_0x456c59(0x1bc)]??'';_0x14083a[_0x456c59(0x1c4)](_0x456c59(0x1a7)+_0xa16547[_0x456c59(0x1d1)]['padEnd'](_0x283666+0x2)+_0xa16547['description']+_0x4ad3d2);}return _0x14083a[_0x456c59(0x1c4)](''),_0x14083a['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20'+_0x5d22a7+_0x456c59(0x1a8)),_0x14083a[_0x456c59(0x1c4)](''),_0x14083a[_0x456c59(0x1e9)]('\x0a');}export function generateFullHelp(){const _0x49816a=a99_0x586525,_0x19ac82=[];_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20Rabetbase\x20CLI'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d3)),_0x19ac82['push'](_0x49816a(0x1cf)+CLI_BIN_NAME+'\x20[global-options]\x20<service>\x20<command>\x20[flags]'),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bb)),_0x19ac82['push'](_0x49816a(0x1b9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1c2)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table'),_0x19ac82['push'](_0x49816a(0x1b6)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1bd)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d9)),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1dd)),_0x19ac82[_0x49816a(0x1c4)]('\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version'),_0x19ac82['push'](''),_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1d7)),_0x19ac82[_0x49816a(0x1c4)]('');for(const _0x2cbab1 of serviceRegistry){_0x19ac82[_0x49816a(0x1c4)]('\x20\x20'+_0x2cbab1[_0x49816a(0x1b8)]);const _0x54c012=_0x2cbab1['commands'][_0x49816a(0x1c6)](_0x27508d=>_0x2cbab1[_0x49816a(0x1ad)]+'\x20'+_0x27508d[_0x49816a(0x1d1)]),_0x2c5fcd=Math[_0x49816a(0x1e1)](..._0x54c012[_0x49816a(0x1c6)](_0x4cf203=>_0x4cf203[_0x49816a(0x1e5)]));for(let _0x2f1725=0x0;_0x2f1725<_0x2cbab1[_0x49816a(0x1cb)][_0x49816a(0x1e5)];_0x2f1725++){const _0x299454=_0x2cbab1[_0x49816a(0x1cb)][_0x2f1725],_0x333590=_0x299454[_0x49816a(0x1bc)]??'';_0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1a7)+_0x54c012[_0x2f1725][_0x49816a(0x1e2)](_0x2c5fcd+0x2)+_0x299454[_0x49816a(0x1d4)]+_0x333590);}_0x19ac82[_0x49816a(0x1c4)]('');}return _0x19ac82[_0x49816a(0x1c4)](_0x49816a(0x1af)+CLI_BIN_NAME+_0x49816a(0x1db)),_0x19ac82[_0x49816a(0x1c4)](''),_0x19ac82[_0x49816a(0x1e9)]('\x0a');}function buildAllFlags(_0x39738f){const _0x57766a=a99_0x586525,_0x5c35dd=[..._0x39738f[_0x57766a(0x1a4)]];return _0x39738f['dryRun']&&_0x5c35dd[_0x57766a(0x1c4)]({'name':'dry-run','type':'boolean','description':'Preview\x20the\x20operation\x20without\x20executing'}),_0x39738f[_0x57766a(0x1d6)]!==![]&&_0x5c35dd[_0x57766a(0x1c4)]({'name':_0x57766a(0x1bf),'type':'string','default':'pretty','enum':[_0x57766a(0x1e7),_0x57766a(0x1ac),_0x57766a(0x1c8)],'description':_0x57766a(0x1c3)}),_0x39738f['risk']===_0x57766a(0x1a9)&&_0x5c35dd['push']({'name':_0x57766a(0x1c9),'type':_0x57766a(0x1e6),'description':_0x57766a(0x1c5)}),_0x5c35dd;}function formatFlagName(_0x26ce30){const _0x523d2c=a99_0x586525,_0x5dc73a=_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1e6)?'':_0x26ce30[_0x523d2c(0x1e8)]===_0x523d2c(0x1dc)?'\x20<n>':_0x523d2c(0x1a5);return'--'+_0x26ce30['name']+_0x5dc73a;}
1
+ const a97_0x2c6054=a97_0x1908;(function(_0x5437e9,_0x2752eb){const _0x3eb866=a97_0x1908,_0x3bca81=_0x5437e9();while(!![]){try{const _0x4e2666=parseInt(_0x3eb866(0x9d))/0x1*(-parseInt(_0x3eb866(0x89))/0x2)+-parseInt(_0x3eb866(0xba))/0x3+parseInt(_0x3eb866(0x93))/0x4*(-parseInt(_0x3eb866(0x8b))/0x5)+-parseInt(_0x3eb866(0xbf))/0x6*(-parseInt(_0x3eb866(0xca))/0x7)+-parseInt(_0x3eb866(0xcb))/0x8+parseInt(_0x3eb866(0x8e))/0x9*(parseInt(_0x3eb866(0xb7))/0xa)+parseInt(_0x3eb866(0xb4))/0xb;if(_0x4e2666===_0x2752eb)break;else _0x3bca81['push'](_0x3bca81['shift']());}catch(_0x2f6251){_0x3bca81['push'](_0x3bca81['shift']());}}}(a97_0x5440,0x874f6));import{serviceRegistry,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a97_0x1908(_0x2187d0,_0x522613){_0x2187d0=_0x2187d0-0x89;const _0x54407b=a97_0x5440();let _0x1908b2=_0x54407b[_0x2187d0];return _0x1908b2;}function a97_0x5440(){const _0x576909=['max','table','7dRqGLB','5605264voJutR','label','dryRun','required','push','Output\x20format','Requires\x20appcode\x20(set\x20via\x20`','string','\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.','2FnaWAP','\x20\x20\x20\x20•\x20','2280NUqVcT','length','\x20\x20Run\x20`','4395717DGDvyK','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','\x20[global-options]\x20<service>\x20<command>\x20[flags]','enum','high-risk-write','1040VQqsCg','\x20auth`\x20first).','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','yes','\x20(required)','requiresAuth','\x20\x20USAGE','\x20|\x20','\x20<command>\x20--help`\x20for\x20flag\x20details.','\x20\x20RISK:\x20','1062664kQKPyr','risk','\x20project\x20init`\x20or\x20--appcode).','\x20[default:\x20','map','hasFormat','\x20\x20\x20\x20$\x20','\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','format','pretty','\x20\x20Rabetbase\x20CLI','\x20\x20[write]','\x20\x20GLOBAL\x20OPTIONS','requiresAppCode','Preview\x20the\x20operation\x20without\x20executing','\x20<command>\x20[flags]','type','command','\x20\x20\x20\x20','join','Skip\x20confirmation\x20prompt','flags','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','15598792rDiumC','\x20\x20[high-risk-write]','padEnd','10NmGAkV','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','name','1444224WzjQpG','\x20\x20FLAGS','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','dry-run','service','6066210ArgFou','commands','default','boolean','description','tag','\x20\x20COMMANDS','Requires\x20authentication\x20(run\x20`','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table'];a97_0x5440=function(){return _0x576909;};return a97_0x5440();}const RISK_LABELS={'read':'','write':a97_0x2c6054(0xa8),'high-risk-write':a97_0x2c6054(0xb5)};export function generateCommandHelp(_0x1469f2){const _0x877ed9=a97_0x2c6054,_0x5ebde0=[],_0x2489fa=CLI_BIN_NAME+'\x20'+_0x1469f2[_0x877ed9(0xbe)]+'\x20'+_0x1469f2['command'];_0x5ebde0['push'](''),_0x5ebde0[_0x877ed9(0xcf)]('\x20\x20'+_0x1469f2[_0x877ed9(0xc3)]),_0x5ebde0[_0x877ed9(0xcf)](''),_0x5ebde0[_0x877ed9(0xcf)](_0x877ed9(0x99)),_0x5ebde0['push'](_0x877ed9(0xaf)+_0x2489fa+'\x20[flags]'),_0x5ebde0['push'](''),_0x5ebde0[_0x877ed9(0xcf)](_0x877ed9(0x9c)+_0x1469f2['risk']);_0x1469f2['risk']===_0x877ed9(0x92)&&_0x5ebde0[_0x877ed9(0xcf)](_0x877ed9(0xbc));_0x5ebde0[_0x877ed9(0xcf)]('');if(_0x1469f2[_0x877ed9(0xb2)][_0x877ed9(0x8c)]>0x0||_0x1469f2[_0x877ed9(0xcd)]||_0x1469f2[_0x877ed9(0xa2)]!==![]){_0x5ebde0[_0x877ed9(0xcf)](_0x877ed9(0xbb));const _0x2c2cdc=buildAllFlags(_0x1469f2),_0x4fe2ab=Math[_0x877ed9(0xc8)](..._0x2c2cdc[_0x877ed9(0xa1)](_0x3bd46a=>formatFlagName(_0x3bd46a)[_0x877ed9(0x8c)]));for(const _0x4e0c91 of _0x2c2cdc){const _0xa210da=formatFlagName(_0x4e0c91)[_0x877ed9(0xb6)](_0x4fe2ab+0x2);let _0x349dc1=_0x4e0c91[_0x877ed9(0xc3)];_0x4e0c91[_0x877ed9(0x91)]&&_0x4e0c91['enum']['length']>0x0&&(_0x349dc1+='\x20('+_0x4e0c91[_0x877ed9(0x91)][_0x877ed9(0xb0)](_0x877ed9(0x9a))+')'),_0x4e0c91['default']!==undefined&&_0x4e0c91[_0x877ed9(0xc1)]!==''&&(_0x349dc1+=_0x877ed9(0xa0)+_0x4e0c91['default']+']'),_0x4e0c91[_0x877ed9(0xce)]&&(_0x349dc1+=_0x877ed9(0x97)),_0x5ebde0[_0x877ed9(0xcf)](_0x877ed9(0xaf)+_0xa210da+_0x349dc1);}_0x5ebde0[_0x877ed9(0xcf)]('');}const _0x5d4382=[];_0x1469f2[_0x877ed9(0x98)]!==![]&&_0x5d4382[_0x877ed9(0xcf)](_0x877ed9(0xc6)+CLI_BIN_NAME+_0x877ed9(0x94));_0x1469f2[_0x877ed9(0xaa)]!==![]&&_0x5d4382[_0x877ed9(0xcf)](_0x877ed9(0xd1)+CLI_BIN_NAME+_0x877ed9(0x9f));if(_0x5d4382['length']>0x0){_0x5ebde0[_0x877ed9(0xcf)]('\x20\x20PREREQUISITES');for(const _0x52f6fb of _0x5d4382){_0x5ebde0['push'](_0x877ed9(0x8a)+_0x52f6fb);}_0x5ebde0[_0x877ed9(0xcf)]('');}return _0x5ebde0[_0x877ed9(0xb0)]('\x0a');}export function generateServiceHelp(_0x4c740c){const _0x1cc2ae=a97_0x2c6054,_0x3846a4=getServiceEntry(_0x4c740c);if(!_0x3846a4)return'\x20\x20Unknown\x20service:\x20'+_0x4c740c+'\x0a';const _0x40e5c3=[];_0x40e5c3[_0x1cc2ae(0xcf)](''),_0x40e5c3[_0x1cc2ae(0xcf)]('\x20\x20'+_0x3846a4[_0x1cc2ae(0xcc)]),_0x40e5c3[_0x1cc2ae(0xcf)](''),_0x40e5c3[_0x1cc2ae(0xcf)](_0x1cc2ae(0x99)),_0x40e5c3[_0x1cc2ae(0xcf)](_0x1cc2ae(0xaf)+CLI_BIN_NAME+'\x20'+_0x4c740c+_0x1cc2ae(0xac)),_0x40e5c3[_0x1cc2ae(0xcf)](''),_0x40e5c3[_0x1cc2ae(0xcf)](_0x1cc2ae(0xc5));const _0x2ec84e=Math['max'](..._0x3846a4[_0x1cc2ae(0xc0)][_0x1cc2ae(0xa1)](_0x41a859=>_0x41a859[_0x1cc2ae(0xae)][_0x1cc2ae(0x8c)]));for(const _0x3300bb of _0x3846a4['commands']){const _0x581254=_0x3300bb[_0x1cc2ae(0xc4)]??'';_0x40e5c3['push'](_0x1cc2ae(0xaf)+_0x3300bb['command'][_0x1cc2ae(0xb6)](_0x2ec84e+0x2)+_0x3300bb[_0x1cc2ae(0xc3)]+_0x581254);}return _0x40e5c3[_0x1cc2ae(0xcf)](''),_0x40e5c3[_0x1cc2ae(0xcf)](_0x1cc2ae(0x8d)+CLI_BIN_NAME+'\x20'+_0x4c740c+_0x1cc2ae(0x9b)),_0x40e5c3['push'](''),_0x40e5c3['join']('\x0a');}export function generateFullHelp(){const _0x2398cb=a97_0x2c6054,_0x176ec1=[];_0x176ec1[_0x2398cb(0xcf)](''),_0x176ec1['push'](_0x2398cb(0xa7)),_0x176ec1[_0x2398cb(0xcf)](''),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0x99)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xa3)+CLI_BIN_NAME+_0x2398cb(0x90)),_0x176ec1[_0x2398cb(0xcf)](''),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xa9)),_0x176ec1['push']('\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode'),_0x176ec1['push'](_0x2398cb(0xb8)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xc7)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xb3)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xa4)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0x8f)),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0x95)),_0x176ec1[_0x2398cb(0xcf)]('\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version'),_0x176ec1['push'](''),_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xc5)),_0x176ec1[_0x2398cb(0xcf)]('');for(const _0x2d6025 of serviceRegistry){_0x176ec1['push']('\x20\x20'+_0x2d6025[_0x2398cb(0xcc)]);const _0x4034b3=_0x2d6025[_0x2398cb(0xc0)][_0x2398cb(0xa1)](_0x53d2a6=>_0x2d6025[_0x2398cb(0xbe)]+'\x20'+_0x53d2a6['command']),_0x4d9ac7=Math['max'](..._0x4034b3[_0x2398cb(0xa1)](_0x33fae7=>_0x33fae7[_0x2398cb(0x8c)]));for(let _0x1bea2d=0x0;_0x1bea2d<_0x2d6025[_0x2398cb(0xc0)]['length'];_0x1bea2d++){const _0x5ce363=_0x2d6025[_0x2398cb(0xc0)][_0x1bea2d],_0x32ff55=_0x5ce363['tag']??'';_0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0xaf)+_0x4034b3[_0x1bea2d][_0x2398cb(0xb6)](_0x4d9ac7+0x2)+_0x5ce363['description']+_0x32ff55);}_0x176ec1[_0x2398cb(0xcf)]('');}return _0x176ec1[_0x2398cb(0xcf)](_0x2398cb(0x8d)+CLI_BIN_NAME+_0x2398cb(0xd3)),_0x176ec1[_0x2398cb(0xcf)](''),_0x176ec1[_0x2398cb(0xb0)]('\x0a');}function buildAllFlags(_0xb5fab1){const _0x57f53f=a97_0x2c6054,_0x13d118=[..._0xb5fab1[_0x57f53f(0xb2)]];return _0xb5fab1[_0x57f53f(0xcd)]&&_0x13d118[_0x57f53f(0xcf)]({'name':_0x57f53f(0xbd),'type':_0x57f53f(0xc2),'description':_0x57f53f(0xab)}),_0xb5fab1[_0x57f53f(0xa2)]!==![]&&_0x13d118[_0x57f53f(0xcf)]({'name':_0x57f53f(0xa5),'type':_0x57f53f(0xd2),'default':'pretty','enum':['json',_0x57f53f(0xa6),_0x57f53f(0xc9)],'description':_0x57f53f(0xd0)}),_0xb5fab1[_0x57f53f(0x9e)]==='high-risk-write'&&_0x13d118['push']({'name':_0x57f53f(0x96),'type':_0x57f53f(0xc2),'description':_0x57f53f(0xb1)}),_0x13d118;}function formatFlagName(_0x25bfb6){const _0x42901a=a97_0x2c6054,_0x12edc8=_0x25bfb6['type']==='boolean'?'':_0x25bfb6[_0x42901a(0xad)]==='number'?'\x20<n>':'\x20<value>';return'--'+_0x25bfb6[_0x42901a(0xb9)]+_0x12edc8;}
@@ -1 +1 @@
1
- (function(_0x20b3b7,_0x107dce){var _0x2e8d17=a100_0x45c8,_0x569fc4=_0x20b3b7();while(!![]){try{var _0x28a2ad=-parseInt(_0x2e8d17(0xec))/0x1+-parseInt(_0x2e8d17(0xf2))/0x2+parseInt(_0x2e8d17(0xf5))/0x3+-parseInt(_0x2e8d17(0xf0))/0x4*(parseInt(_0x2e8d17(0xef))/0x5)+-parseInt(_0x2e8d17(0xf3))/0x6+-parseInt(_0x2e8d17(0xed))/0x7*(parseInt(_0x2e8d17(0xee))/0x8)+parseInt(_0x2e8d17(0xf4))/0x9*(parseInt(_0x2e8d17(0xf1))/0xa);if(_0x28a2ad===_0x107dce)break;else _0x569fc4['push'](_0x569fc4['shift']());}catch(_0x5d91c1){_0x569fc4['push'](_0x569fc4['shift']());}}}(a100_0x5f5a,0x7c78d));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';function a100_0x45c8(_0x2076a8,_0x5bd5d8){_0x2076a8=_0x2076a8-0xec;var _0x5f5a84=a100_0x5f5a();var _0x45c81c=_0x5f5a84[_0x2076a8];return _0x45c81c;}export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';function a100_0x5f5a(){var _0x288621=['1828468nbRpTh','1030zjgpYo','651888pVwOjb','2840910kTiCdj','165195OPxhdF','2508678cxfVrE','608831qQvbPX','144767zvgSql','136rEvQgV','5znhcxB'];a100_0x5f5a=function(){return _0x288621;};return a100_0x5f5a();}
1
+ (function(_0x37b314,_0x1ea9f9){var _0x31c338=a98_0x2f18,_0xc4fee2=_0x37b314();while(!![]){try{var _0x1cbb76=-parseInt(_0x31c338(0x19a))/0x1*(-parseInt(_0x31c338(0x19b))/0x2)+parseInt(_0x31c338(0x19f))/0x3*(-parseInt(_0x31c338(0x199))/0x4)+parseInt(_0x31c338(0x197))/0x5*(parseInt(_0x31c338(0x19e))/0x6)+-parseInt(_0x31c338(0x198))/0x7+-parseInt(_0x31c338(0x19c))/0x8*(-parseInt(_0x31c338(0x1a1))/0x9)+-parseInt(_0x31c338(0x19d))/0xa+parseInt(_0x31c338(0x1a0))/0xb;if(_0x1cbb76===_0x1ea9f9)break;else _0xc4fee2['push'](_0xc4fee2['shift']());}catch(_0x7406c7){_0xc4fee2['push'](_0xc4fee2['shift']());}}}(a98_0x45ca,0x9162b));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';function a98_0x45ca(){var _0x4c9c9b=['4389728emKXFn','2304312PXNvuW','11252bWiGWZ','62SwhpNE','8FjmJOo','3270380iKnDrI','6yzgATR','3LTIJGU','5805151UZIQGJ','3238605UOCCFN','4446605yiBxhh'];a98_0x45ca=function(){return _0x4c9c9b;};return a98_0x45ca();}function a98_0x2f18(_0x2045f8,_0x35c72d){_0x2045f8=_0x2045f8-0x197;var _0x45ca78=a98_0x45ca();var _0x2f18c0=_0x45ca78[_0x2045f8];return _0x2f18c0;}export{extractList,extractPaging}from'./response.js';
@@ -1 +1 @@
1
- function a101_0x5279(){const _0x39c803=['padEnd','26471Bypcux','28385410LVrdFt','8500184xnjneL','error','write','96MuTcYL','values','message','keys','140109uJLIbf','log','536328tHauHK','Unknown\x20error','risk','stringify','Error:\x20','join','isArray','command_error','9awbdVF','pretty','[dry-run]\x20Would\x20execute:','slice','dryRun','\x20items:\x0a','entries','4933796iRlUBt','data','(empty)','max','object','map','length','repeat','5080230ySkWkq','6BHdmxf'];a101_0x5279=function(){return _0x39c803;};return a101_0x5279();}(function(_0x20009c,_0x49e931){const _0x59ffef=a101_0x3503,_0x40446b=_0x20009c();while(!![]){try{const _0x35e2ad=-parseInt(_0x59ffef(0x1ba))/0x1+parseInt(_0x59ffef(0x1c5))/0x2+-parseInt(_0x59ffef(0x1c3))/0x3*(parseInt(_0x59ffef(0x1bf))/0x4)+-parseInt(_0x59ffef(0x1b7))/0x5*(parseInt(_0x59ffef(0x1b8))/0x6)+parseInt(_0x59ffef(0x1af))/0x7+parseInt(_0x59ffef(0x1bc))/0x8*(-parseInt(_0x59ffef(0x1a8))/0x9)+parseInt(_0x59ffef(0x1bb))/0xa;if(_0x35e2ad===_0x49e931)break;else _0x40446b['push'](_0x40446b['shift']());}catch(_0x29d822){_0x40446b['push'](_0x40446b['shift']());}}}(a101_0x5279,0x8ef95));export function formatOutput(_0x4c02c7,_0x3d4e37){const _0x423d88=a101_0x3503,{format:_0x34ab02}=_0x3d4e37;switch(_0x34ab02){case'json':printJson(_0x4c02c7,_0x3d4e37);break;case'table':printTable(_0x4c02c7,_0x3d4e37);break;case _0x423d88(0x1a9):default:printPretty(_0x4c02c7,_0x3d4e37);break;}}function printJson(_0x2319c2,_0x439e8b){const _0x38786b=a101_0x3503,_0xa3f55d={'ok':_0x2319c2['ok'],'command':_0x439e8b['command'],'risk':_0x439e8b[_0x38786b(0x1c7)]};if(_0x439e8b[_0x38786b(0x1ac)])_0xa3f55d['dryRun']=!![];if(_0x2319c2['data']!==undefined)_0xa3f55d['data']=_0x2319c2[_0x38786b(0x1b0)];!_0x2319c2['ok']&&_0x2319c2[_0x38786b(0x1c1)]&&(_0xa3f55d['error']={'code':_0x38786b(0x1a7),'message':_0x2319c2[_0x38786b(0x1c1)]}),process['stdout'][_0x38786b(0x1be)](JSON[_0x38786b(0x1a3)](_0xa3f55d,null,0x2)+'\x0a');}function printPretty(_0x88ccd5,_0x2c90a1){const _0xbfd07a=a101_0x3503;if(_0x2c90a1['dryRun']){console[_0xbfd07a(0x1c4)](_0xbfd07a(0x1aa)),console[_0xbfd07a(0x1c4)](JSON[_0xbfd07a(0x1a3)](_0x88ccd5['data'],null,0x2));return;}if(!_0x88ccd5['ok']){console[_0xbfd07a(0x1bd)]('Error:\x20'+(_0x88ccd5[_0xbfd07a(0x1c1)]??_0xbfd07a(0x1c6)));return;}const _0x1006c6=_0x88ccd5[_0xbfd07a(0x1b0)];if(_0x1006c6===undefined||_0x1006c6===null){if(_0x88ccd5[_0xbfd07a(0x1c1)])console['log'](_0x88ccd5[_0xbfd07a(0x1c1)]);return;}if(Array[_0xbfd07a(0x1a6)](_0x1006c6)){printArrayPretty(_0x1006c6);return;}if(typeof _0x1006c6===_0xbfd07a(0x1b3)){printObjectPretty(_0x1006c6);return;}console[_0xbfd07a(0x1c4)](String(_0x1006c6));}function a101_0x3503(_0x23c09e,_0x5cee14){_0x23c09e=_0x23c09e-0x1a3;const _0x5279ac=a101_0x5279();let _0x35033f=_0x5279ac[_0x23c09e];return _0x35033f;}function printObjectPretty(_0x1ec0f4){const _0x2135da=a101_0x3503,_0xca1dc7=Math[_0x2135da(0x1b2)](...Object[_0x2135da(0x1c2)](_0x1ec0f4)[_0x2135da(0x1b4)](_0x4501f8=>_0x4501f8[_0x2135da(0x1b5)]),0x0);for(const [_0x345989,_0x3fa732]of Object[_0x2135da(0x1ae)](_0x1ec0f4)){if(_0x3fa732===undefined||_0x3fa732===null)continue;const _0x37c099=_0x345989[_0x2135da(0x1b9)](_0xca1dc7);typeof _0x3fa732==='object'?console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+JSON[_0x2135da(0x1a3)](_0x3fa732)):console[_0x2135da(0x1c4)](_0x37c099+'\x20\x20'+_0x3fa732);}}function printArrayPretty(_0x11628c){const _0x22d7ad=a101_0x3503;if(_0x11628c[_0x22d7ad(0x1b5)]===0x0){console['log'](_0x22d7ad(0x1b1));return;}console[_0x22d7ad(0x1c4)]('Found\x20'+_0x11628c[_0x22d7ad(0x1b5)]+_0x22d7ad(0x1ad));for(const _0x15320e of _0x11628c){if(typeof _0x15320e===_0x22d7ad(0x1b3)&&_0x15320e!==null){const _0x4e891b=Object[_0x22d7ad(0x1c0)](_0x15320e)[_0x22d7ad(0x1ab)](0x0,0x4)[_0x22d7ad(0x1a5)]('\x20\x20');console['log']('\x20\x20'+_0x4e891b);}else console[_0x22d7ad(0x1c4)]('\x20\x20'+_0x15320e);}}function printTable(_0x189726,_0x353beb){const _0x184534=a101_0x3503,_0x214484=_0x189726[_0x184534(0x1b0)];if(!_0x189726['ok']){console['error'](_0x184534(0x1a4)+(_0x189726[_0x184534(0x1c1)]??'Unknown\x20error'));return;}const _0x3a06d0=Array[_0x184534(0x1a6)](_0x214484)?_0x214484:_0x214484?[_0x214484]:[];if(_0x3a06d0[_0x184534(0x1b5)]===0x0){console['log'](_0x184534(0x1b1));return;}const _0x48f71a=Object['keys'](_0x3a06d0[0x0]),_0x54123b=_0x48f71a['map'](_0x195896=>Math[_0x184534(0x1b2)](_0x195896[_0x184534(0x1b5)],..._0x3a06d0[_0x184534(0x1b4)](_0x68321f=>String(_0x68321f[_0x195896]??'')['length']))),_0x36e766=_0x48f71a['map']((_0x4327d4,_0x5315bd)=>_0x4327d4[_0x184534(0x1b9)](_0x54123b[_0x5315bd]))[_0x184534(0x1a5)]('\x20\x20'),_0x27df45=_0x54123b[_0x184534(0x1b4)](_0x272f75=>'-'[_0x184534(0x1b6)](_0x272f75))[_0x184534(0x1a5)]('\x20\x20');console[_0x184534(0x1c4)](_0x36e766),console[_0x184534(0x1c4)](_0x27df45);for(const _0x2b8424 of _0x3a06d0){const _0x25d320=_0x48f71a['map']((_0x4f192c,_0x262b4e)=>String(_0x2b8424[_0x4f192c]??'')[_0x184534(0x1b9)](_0x54123b[_0x262b4e]))['join']('\x20\x20');console['log'](_0x25d320);}}
1
+ function a99_0x2395(){const _0x13043d=['3tHaIah','data','max','stringify','1717335BUGfhb','16286150HBEkRT','log','2862204QQxgmu','dryRun','7CuCedt','18ckZvCX','slice','383042cUWPGE','2527632zjfWzu','isArray','map','Error:\x20','length','message','5651240CEZqcY','padEnd','object','error','join','[dry-run]\x20Would\x20execute:','command_error','pretty','\x20items:\x0a','keys','(empty)','8382087mGruKs','stdout','Unknown\x20error'];a99_0x2395=function(){return _0x13043d;};return a99_0x2395();}(function(_0x9e98f3,_0x3a5d37){const _0x4b0559=a99_0x4b3d,_0x49676b=_0x9e98f3();while(!![]){try{const _0x2108f7=-parseInt(_0x4b0559(0xc2))/0x1+parseInt(_0x4b0559(0xc3))/0x2+parseInt(_0x4b0559(0xd7))/0x3*(parseInt(_0x4b0559(0xde))/0x4)+parseInt(_0x4b0559(0xdb))/0x5*(parseInt(_0x4b0559(0xc0))/0x6)+-parseInt(_0x4b0559(0xbf))/0x7*(-parseInt(_0x4b0559(0xc9))/0x8)+-parseInt(_0x4b0559(0xd4))/0x9+-parseInt(_0x4b0559(0xdc))/0xa;if(_0x2108f7===_0x3a5d37)break;else _0x49676b['push'](_0x49676b['shift']());}catch(_0x451d55){_0x49676b['push'](_0x49676b['shift']());}}}(a99_0x2395,0xbcc35));export function formatOutput(_0x36d7ad,_0x6aa0b7){const _0x5a6116=a99_0x4b3d,{format:_0x3e9fcb}=_0x6aa0b7;switch(_0x3e9fcb){case'json':printJson(_0x36d7ad,_0x6aa0b7);break;case'table':printTable(_0x36d7ad,_0x6aa0b7);break;case _0x5a6116(0xd0):default:printPretty(_0x36d7ad,_0x6aa0b7);break;}}function printJson(_0x8b9222,_0x2882ec){const _0x18a108=a99_0x4b3d,_0x13c065={'ok':_0x8b9222['ok'],'command':_0x2882ec['command'],'risk':_0x2882ec['risk']};if(_0x2882ec[_0x18a108(0xdf)])_0x13c065[_0x18a108(0xdf)]=!![];if(_0x8b9222[_0x18a108(0xd8)]!==undefined)_0x13c065[_0x18a108(0xd8)]=_0x8b9222[_0x18a108(0xd8)];!_0x8b9222['ok']&&_0x8b9222[_0x18a108(0xc8)]&&(_0x13c065['error']={'code':_0x18a108(0xcf),'message':_0x8b9222['message']}),process[_0x18a108(0xd5)]['write'](JSON[_0x18a108(0xda)](_0x13c065,null,0x2)+'\x0a');}function a99_0x4b3d(_0x34d2d5,_0x48f172){_0x34d2d5=_0x34d2d5-0xbf;const _0x239599=a99_0x2395();let _0x4b3d57=_0x239599[_0x34d2d5];return _0x4b3d57;}function printPretty(_0x3fec95,_0x144675){const _0x153733=a99_0x4b3d;if(_0x144675[_0x153733(0xdf)]){console[_0x153733(0xdd)](_0x153733(0xce)),console[_0x153733(0xdd)](JSON[_0x153733(0xda)](_0x3fec95[_0x153733(0xd8)],null,0x2));return;}if(!_0x3fec95['ok']){console[_0x153733(0xcc)](_0x153733(0xc6)+(_0x3fec95['message']??_0x153733(0xd6)));return;}const _0x480cea=_0x3fec95[_0x153733(0xd8)];if(_0x480cea===undefined||_0x480cea===null){if(_0x3fec95[_0x153733(0xc8)])console['log'](_0x3fec95[_0x153733(0xc8)]);return;}if(Array[_0x153733(0xc4)](_0x480cea)){printArrayPretty(_0x480cea);return;}if(typeof _0x480cea===_0x153733(0xcb)){printObjectPretty(_0x480cea);return;}console[_0x153733(0xdd)](String(_0x480cea));}function printObjectPretty(_0x112397){const _0x22d8cc=a99_0x4b3d,_0x10c3d3=Math[_0x22d8cc(0xd9)](...Object[_0x22d8cc(0xd2)](_0x112397)[_0x22d8cc(0xc5)](_0x33dc63=>_0x33dc63[_0x22d8cc(0xc7)]),0x0);for(const [_0xa8fa6e,_0x3fa54d]of Object['entries'](_0x112397)){if(_0x3fa54d===undefined||_0x3fa54d===null)continue;const _0x3dd1d0=_0xa8fa6e[_0x22d8cc(0xca)](_0x10c3d3);typeof _0x3fa54d==='object'?console[_0x22d8cc(0xdd)](_0x3dd1d0+'\x20\x20'+JSON[_0x22d8cc(0xda)](_0x3fa54d)):console[_0x22d8cc(0xdd)](_0x3dd1d0+'\x20\x20'+_0x3fa54d);}}function printArrayPretty(_0x2cd74c){const _0x21ec45=a99_0x4b3d;if(_0x2cd74c['length']===0x0){console['log'](_0x21ec45(0xd3));return;}console[_0x21ec45(0xdd)]('Found\x20'+_0x2cd74c[_0x21ec45(0xc7)]+_0x21ec45(0xd1));for(const _0x3758cd of _0x2cd74c){if(typeof _0x3758cd===_0x21ec45(0xcb)&&_0x3758cd!==null){const _0x5b1b18=Object['values'](_0x3758cd)[_0x21ec45(0xc1)](0x0,0x4)[_0x21ec45(0xcd)]('\x20\x20');console[_0x21ec45(0xdd)]('\x20\x20'+_0x5b1b18);}else console[_0x21ec45(0xdd)]('\x20\x20'+_0x3758cd);}}function printTable(_0x522686,_0x16af1c){const _0x484b00=a99_0x4b3d,_0x513c8c=_0x522686[_0x484b00(0xd8)];if(!_0x522686['ok']){console[_0x484b00(0xcc)](_0x484b00(0xc6)+(_0x522686[_0x484b00(0xc8)]??_0x484b00(0xd6)));return;}const _0x2b82c3=Array[_0x484b00(0xc4)](_0x513c8c)?_0x513c8c:_0x513c8c?[_0x513c8c]:[];if(_0x2b82c3['length']===0x0){console[_0x484b00(0xdd)](_0x484b00(0xd3));return;}const _0x239be9=Object[_0x484b00(0xd2)](_0x2b82c3[0x0]),_0x11d1ed=_0x239be9[_0x484b00(0xc5)](_0x197619=>Math[_0x484b00(0xd9)](_0x197619['length'],..._0x2b82c3[_0x484b00(0xc5)](_0x1af1b2=>String(_0x1af1b2[_0x197619]??'')[_0x484b00(0xc7)]))),_0x40f052=_0x239be9[_0x484b00(0xc5)]((_0x2ff039,_0x429465)=>_0x2ff039[_0x484b00(0xca)](_0x11d1ed[_0x429465]))['join']('\x20\x20'),_0x4f02b1=_0x11d1ed[_0x484b00(0xc5)](_0x475668=>'-'['repeat'](_0x475668))[_0x484b00(0xcd)]('\x20\x20');console[_0x484b00(0xdd)](_0x40f052),console['log'](_0x4f02b1);for(const _0x460192 of _0x2b82c3){const _0x21355c=_0x239be9[_0x484b00(0xc5)]((_0x56a116,_0x204766)=>String(_0x460192[_0x56a116]??'')[_0x484b00(0xca)](_0x11d1ed[_0x204766]))['join']('\x20\x20');console[_0x484b00(0xdd)](_0x21355c);}}
@@ -1 +1 @@
1
- (function(_0x36f3d1,_0x4c4b6e){var _0x32cd80=a102_0x3634,_0x26c2cc=_0x36f3d1();while(!![]){try{var _0x32834c=parseInt(_0x32cd80(0x9e))/0x1*(-parseInt(_0x32cd80(0x9d))/0x2)+parseInt(_0x32cd80(0x9b))/0x3*(parseInt(_0x32cd80(0xa0))/0x4)+parseInt(_0x32cd80(0x98))/0x5*(-parseInt(_0x32cd80(0x99))/0x6)+parseInt(_0x32cd80(0xa1))/0x7+parseInt(_0x32cd80(0x9f))/0x8+-parseInt(_0x32cd80(0xa3))/0x9*(-parseInt(_0x32cd80(0xa2))/0xa)+-parseInt(_0x32cd80(0x9c))/0xb*(-parseInt(_0x32cd80(0xa5))/0xc);if(_0x32834c===_0x4c4b6e)break;else _0x26c2cc['push'](_0x26c2cc['shift']());}catch(_0x359127){_0x26c2cc['push'](_0x26c2cc['shift']());}}}(a102_0x238d,0xd8a4b));export function extractList(_0x48d4fd){var _0x3c3cc1=a102_0x3634;if(Array[_0x3c3cc1(0x9a)](_0x48d4fd))return _0x48d4fd;if(_0x48d4fd&&typeof _0x48d4fd===_0x3c3cc1(0x97))return _0x48d4fd[_0x3c3cc1(0xa4)]??[];return[];}function a102_0x3634(_0x4b95c8,_0x3e5fe7){_0x4b95c8=_0x4b95c8-0x97;var _0x238d11=a102_0x238d();var _0x363491=_0x238d11[_0x4b95c8];return _0x363491;}export function extractPaging(_0x150606){var _0x4df71d=a102_0x3634;if(_0x150606&&typeof _0x150606==='object'&&!Array[_0x4df71d(0x9a)](_0x150606))return _0x150606['paging'];return undefined;}function a102_0x238d(){var _0x19baf2=['312763YTnrsH','4461944DHDmLk','30536XGYvwP','6158691fgXSCb','67090KVfDeF','414DcjAbY','tableData','213564ZvWpSb','object','75BVuGrC','445242pVUNRM','isArray','48muPcVR','275cWAzqS','2lRifZp'];a102_0x238d=function(){return _0x19baf2;};return a102_0x238d();}
1
+ (function(_0x52d214,_0x3870ae){var _0x5b2aee=a100_0x37c6,_0x49abf3=_0x52d214();while(!![]){try{var _0x231f73=parseInt(_0x5b2aee(0x1ef))/0x1*(-parseInt(_0x5b2aee(0x1ee))/0x2)+-parseInt(_0x5b2aee(0x1f2))/0x3+-parseInt(_0x5b2aee(0x1eb))/0x4+parseInt(_0x5b2aee(0x1f6))/0x5*(parseInt(_0x5b2aee(0x1f4))/0x6)+-parseInt(_0x5b2aee(0x1f5))/0x7*(parseInt(_0x5b2aee(0x1ed))/0x8)+parseInt(_0x5b2aee(0x1e9))/0x9+-parseInt(_0x5b2aee(0x1f0))/0xa*(-parseInt(_0x5b2aee(0x1f1))/0xb);if(_0x231f73===_0x3870ae)break;else _0x49abf3['push'](_0x49abf3['shift']());}catch(_0x2b2d69){_0x49abf3['push'](_0x49abf3['shift']());}}}(a100_0x460b,0xb6d2a));export function extractList(_0x2d12f5){var _0x5a6d12=a100_0x37c6;if(Array['isArray'](_0x2d12f5))return _0x2d12f5;if(_0x2d12f5&&typeof _0x2d12f5===_0x5a6d12(0x1f3))return _0x2d12f5[_0x5a6d12(0x1ea)]??[];return[];}export function extractPaging(_0xadf6ed){var _0x376626=a100_0x37c6;if(_0xadf6ed&&typeof _0xadf6ed===_0x376626(0x1f3)&&!Array['isArray'](_0xadf6ed))return _0xadf6ed[_0x376626(0x1ec)];return undefined;}function a100_0x37c6(_0x5a7eb1,_0x293994){_0x5a7eb1=_0x5a7eb1-0x1e9;var _0x460b8b=a100_0x460b();var _0x37c60f=_0x460b8b[_0x5a7eb1];return _0x37c60f;}function a100_0x460b(){var _0x307092=['766yKvGXk','679XLEIDG','28500980gXXfzb','11gkQHbp','3489210HtSCay','object','126fmdRJu','105FswRtf','225905IPerss','5001147IdtXDx','tableData','2904392EaPxUY','paging','776808YcaxyK'];a100_0x460b=function(){return _0x307092;};return a100_0x460b();}
@@ -1 +1 @@
1
- (function(_0x1889ab,_0x1bee83){const _0x5d8e89=a103_0xbd54,_0x1f01b9=_0x1889ab();while(!![]){try{const _0x426d03=parseInt(_0x5d8e89(0x1eb))/0x1*(parseInt(_0x5d8e89(0x1d3))/0x2)+-parseInt(_0x5d8e89(0x1b8))/0x3*(parseInt(_0x5d8e89(0x1da))/0x4)+parseInt(_0x5d8e89(0x1e9))/0x5+-parseInt(_0x5d8e89(0x1ec))/0x6+-parseInt(_0x5d8e89(0x1ef))/0x7+-parseInt(_0x5d8e89(0x1dd))/0x8*(-parseInt(_0x5d8e89(0x1e1))/0x9)+parseInt(_0x5d8e89(0x1c1))/0xa*(parseInt(_0x5d8e89(0x1c8))/0xb);if(_0x426d03===_0x1bee83)break;else _0x1f01b9['push'](_0x1f01b9['shift']());}catch(_0x296e03){_0x1f01b9['push'](_0x1f01b9['shift']());}}}(a103_0x218b,0x9f30f));import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';function a103_0x218b(){const _0x371f28=['name','yes','some','json','Set\x20appcode\x20via\x20`','resolveApiDomain','\x20api\x20pull`\x20first.','validation','string','144717iTJeiz','selectedAppName','flags','high-risk-write','apiDir','authRequired','--dry-run\x20is\x20not\x20supported\x20for\x20`','.\x20Run\x20`','⚠\x20\x20High-risk\x20operation:\x20','70VLMfxG','rawFlags','`\x20has\x20risk\x20level\x20\x22','requiresAuth','configMissing','validate','service','4026264BMbiXm','createInterface','format','appCode','command','Command\x20`','cookie','defaultPageSize','Operation\x20cancelled\x20by\x20user.','isNonInteractive','verbose','2CIkBEf','risk','map','code','`\x20requires\x20either\x20--code\x20or\x20--alias.','node:readline','resolveCookie','76VxtfCB','resolveAppCode','\x22.\x0a','3833528XtLYKB','type','defaultVerbose','pretty','9Mnuwii','Unknown\x20alias\x20\x22','./src/api','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','../core/api-client.js','table','length','278785IYjsSJ','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','281291arQoVf','6562332InBUIc','toLowerCase','riskLevel','5012679Rfmtja','apiDomain','execute','cancelled','Available\x20aliases:\x20','nonInteractive','question','dryRun','stdin','defaultFormat','alias','dry-run'];a103_0x218b=function(){return _0x371f28;};return a103_0x218b();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x2f55e9,_0x39da02){const _0x32c1bc=a103_0xbd54,_0x405235=CLI_BIN_NAME+'\x20'+_0x2f55e9[_0x32c1bc(0x1c7)]+'\x20'+_0x2f55e9[_0x32c1bc(0x1cc)],_0x23d4a1=parseFlags(_0x2f55e9['flags'],_0x39da02[_0x32c1bc(0x1c2)]);validateFlags(_0x2f55e9[_0x32c1bc(0x1ba)],_0x23d4a1,_0x405235);if(!_0x23d4a1[_0x32c1bc(0x1ae)]&&_0x39da02[_0x32c1bc(0x1ee)]&&riskLevelOrder(_0x2f55e9['risk'])>riskLevelOrder(_0x39da02[_0x32c1bc(0x1ee)]))throw CliErrors['validation'](_0x32c1bc(0x1cd)+_0x405235+_0x32c1bc(0x1c3)+_0x2f55e9[_0x32c1bc(0x1d4)]+_0x32c1bc(0x1e5)+_0x39da02[_0x32c1bc(0x1ee)]+_0x32c1bc(0x1dc)+_0x32c1bc(0x1ea));const _0x2460c8=_0x39da02[_0x32c1bc(0x1bc)]||_0x32c1bc(0x1e3);resolveAliasToCode(_0x2f55e9,_0x23d4a1,_0x2460c8,_0x405235);let _0x3c4d47='';if(_0x2f55e9[_0x32c1bc(0x1c4)]!==![]){_0x3c4d47=_0x39da02[_0x32c1bc(0x1d9)]();if(!_0x3c4d47)throw CliErrors[_0x32c1bc(0x1bd)]();const {setActiveCookie:_0x4b1b05}=await import(_0x32c1bc(0x1e6));_0x4b1b05(_0x3c4d47);}let _0x166575='';if(_0x2f55e9['requiresAppCode']!==![]){_0x166575=_0x39da02[_0x32c1bc(0x1db)]()??'';if(!_0x166575)throw CliErrors[_0x32c1bc(0x1c5)](_0x32c1bc(0x1b3)+CLI_BIN_NAME+_0x32c1bc(0x1e4));}const _0x21d44f=resolveFormat(_0x23d4a1,_0x2f55e9,_0x39da02[_0x32c1bc(0x1ac)]),_0x44abb6=buildRuntimeContext({'appCode':_0x166575,'cookie':_0x3c4d47,'apiDomain':_0x39da02[_0x32c1bc(0x1b4)](),'format':_0x21d44f,'flags':_0x23d4a1,'def':_0x2f55e9,'nonInteractive':_0x39da02[_0x32c1bc(0x1d1)],'defaultPageSize':_0x39da02[_0x32c1bc(0x1cf)],'defaultVerbose':_0x39da02[_0x32c1bc(0x1df)],'apiDir':_0x2460c8,'selectedAppName':_0x39da02['selectedAppName']});_0x2f55e9['validate']&&await _0x2f55e9[_0x32c1bc(0x1c6)](_0x44abb6);if(_0x23d4a1['dry-run']){if(!_0x2f55e9[_0x32c1bc(0x1f6)])throw CliErrors['validation'](_0x32c1bc(0x1be)+_0x405235+'`.');const _0x3cc8c7=await _0x2f55e9[_0x32c1bc(0x1f6)](_0x44abb6);formatOutput({'ok':!![],'data':_0x3cc8c7},{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f,'dryRun':!![]});return;}if(_0x2f55e9[_0x32c1bc(0x1d4)]===_0x32c1bc(0x1bb)&&!_0x23d4a1[_0x32c1bc(0x1b0)]){if(_0x39da02['isNonInteractive'])throw CliErrors[_0x32c1bc(0x1b6)]('High-risk\x20operation\x20`'+_0x405235+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x405235);}const _0x2554c0=await _0x2f55e9[_0x32c1bc(0x1f1)](_0x44abb6);formatOutput(_0x2554c0,{'command':_0x405235,'risk':_0x2f55e9[_0x32c1bc(0x1d4)],'format':_0x21d44f});}function buildRuntimeContext(_0x5e4139){const _0xb036ce=a103_0xbd54,{flags:_0x56c40d,def:_0x334b62}=_0x5e4139,_0x3b6950=CLI_BIN_NAME+'\x20'+_0x334b62['service']+'\x20'+_0x334b62['command'];return{'appCode':_0x5e4139[_0xb036ce(0x1cb)],'cookie':_0x5e4139[_0xb036ce(0x1ce)],'apiDomain':_0x5e4139[_0xb036ce(0x1f0)],'format':_0x5e4139[_0xb036ce(0x1ca)],'nonInteractive':_0x5e4139[_0xb036ce(0x1f4)],'apiDir':_0x5e4139[_0xb036ce(0x1bc)],'selectedAppName':_0x5e4139[_0xb036ce(0x1b9)],'str'(_0x3eca55){return String(_0x56c40d[_0x3eca55]??'');},'bool'(_0x48425e){const _0x38f102=_0xb036ce;if(_0x56c40d[_0x48425e]===!![])return!![];if(_0x48425e===_0x38f102(0x1d2)&&_0x5e4139['defaultVerbose'])return!![];return![];},'num'(_0x19fc5f,_0x62f137){const _0x59c6cb=_0xb036ce,_0x24ab61=_0x56c40d[_0x19fc5f];if(typeof _0x24ab61==='number')return _0x24ab61;if(_0x19fc5f==='pagesize'&&_0x5e4139['defaultPageSize']!=null)return _0x5e4139[_0x59c6cb(0x1cf)];return _0x62f137??0x0;},'flag'(_0x2eb17e){return _0x56c40d[_0x2eb17e];},'output'(_0x4b1e){const _0x282026=_0xb036ce;formatOutput(_0x4b1e,{'command':_0x3b6950,'risk':_0x334b62[_0x282026(0x1d4)],'format':_0x5e4139[_0x282026(0x1ca)]});}};}function a103_0xbd54(_0x2dd9b0,_0x39ca08){_0x2dd9b0=_0x2dd9b0-0x1ac;const _0x218b43=a103_0x218b();let _0xbd548b=_0x218b43[_0x2dd9b0];return _0xbd548b;}function resolveFormat(_0x3532a8,_0x24549e,_0x4430a8){const _0x258f32=a103_0xbd54;if(_0x24549e['hasFormat']===![])return _0x258f32(0x1e0);const _0x164699=_0x3532a8['format'];if(_0x164699===_0x258f32(0x1b2)||_0x164699==='pretty'||_0x164699===_0x258f32(0x1e7))return _0x164699;if(_0x4430a8)return _0x4430a8;return _0x258f32(0x1e0);}async function requireConfirmation(_0x34b871){const _0x1c60b3=a103_0xbd54,_0x10448b=await import(_0x1c60b3(0x1d8)),_0xe310ae=_0x10448b[_0x1c60b3(0x1c9)]({'input':process[_0x1c60b3(0x1f7)],'output':process['stderr']});return new Promise((_0x4b5819,_0x2b04ea)=>{const _0x5e7975=_0x1c60b3;_0xe310ae[_0x5e7975(0x1f5)](_0x5e7975(0x1c0)+_0x34b871+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x1f971f=>{const _0x2d4c03=_0x5e7975;_0xe310ae['close'](),_0x1f971f[_0x2d4c03(0x1ed)]()==='y'||_0x1f971f[_0x2d4c03(0x1ed)]()===_0x2d4c03(0x1b0)?_0x4b5819():_0x2b04ea(CliErrors[_0x2d4c03(0x1f2)](_0x2d4c03(0x1d0)));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x37e503){return RISK_ORDER[_0x37e503??'read']??0x0;}function resolveAliasToCode(_0x4acad8,_0x554ada,_0x4f514f,_0x519f3b){const _0xf766bc=a103_0xbd54,_0x3eba88=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x3991f2=>_0x3991f2['name']==='code'&&_0x3991f2[_0xf766bc(0x1de)]===_0xf766bc(0x1b7)),_0x5506e4=_0x4acad8[_0xf766bc(0x1ba)][_0xf766bc(0x1b1)](_0x543756=>_0x543756[_0xf766bc(0x1af)]==='alias'&&_0x543756[_0xf766bc(0x1de)]===_0xf766bc(0x1b7));if(!_0x3eba88||!_0x5506e4)return;const _0x30d9b5=_0x554ada[_0xf766bc(0x1d6)]?String(_0x554ada['code']):'',_0x5448fc=_0x554ada['alias']?String(_0x554ada['alias']):'';if(!_0x30d9b5&&!_0x5448fc)throw CliErrors['validation']('`'+_0x519f3b+_0xf766bc(0x1d7));if(_0x5448fc&&!_0x30d9b5){const _0x3b0aea=resolveAlias(_0x4f514f,_0x5448fc);if(!_0x3b0aea){const _0x55ae44=listAliases(_0x4f514f)[_0xf766bc(0x1d5)](_0x43603a=>_0x43603a[_0xf766bc(0x1ad)]),_0x575756=_0x55ae44[_0xf766bc(0x1e8)]?_0xf766bc(0x1f3)+_0x55ae44['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4f514f+_0xf766bc(0x1bf)+CLI_BIN_NAME+_0xf766bc(0x1b5);throw CliErrors['validation'](_0xf766bc(0x1e2)+_0x5448fc+'\x22.\x20'+_0x575756);}_0x554ada[_0xf766bc(0x1d6)]=_0x3b0aea;}}
1
+ (function(_0xacef01,_0x3e65d2){const _0x3d9741=a101_0x2e28,_0x182323=_0xacef01();while(!![]){try{const _0x365660=-parseInt(_0x3d9741(0xd4))/0x1*(parseInt(_0x3d9741(0x107))/0x2)+parseInt(_0x3d9741(0xe8))/0x3*(parseInt(_0x3d9741(0x118))/0x4)+-parseInt(_0x3d9741(0xf7))/0x5+parseInt(_0x3d9741(0x102))/0x6+parseInt(_0x3d9741(0xf4))/0x7*(-parseInt(_0x3d9741(0xe2))/0x8)+parseInt(_0x3d9741(0x106))/0x9+parseInt(_0x3d9741(0xee))/0xa*(parseInt(_0x3d9741(0xd1))/0xb);if(_0x365660===_0x3e65d2)break;else _0x182323['push'](_0x182323['shift']());}catch(_0x1a7ada){_0x182323['push'](_0x182323['shift']());}}}(a101_0x409f,0x5549f));import{parseFlags,validateFlags}from'./flags.js';function a101_0x2e28(_0x3c0caa,_0x1f9554){_0x3c0caa=_0x3c0caa-0xd1;const _0x409f1c=a101_0x409f();let _0x2e28a8=_0x409f1c[_0x3c0caa];return _0x2e28a8;}import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';function a101_0x409f(){const _0x3b25b4=['format','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','3581892AjYkLV','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','json','defaultPageSize','2435049VbwkmL','589654RgZPWf','code','stdin','node:readline','Available\x20aliases:\x20','service','toLowerCase','string','command','dry-run','nonInteractive','validate','`\x20has\x20risk\x20level\x20\x22','isNonInteractive','execute','defaultVerbose','risk','8aVdbPo','rawFlags','read','121dopqdl','--dry-run\x20is\x20not\x20supported\x20for\x20`','../core/api-client.js','1knOrTp','Unknown\x20alias\x20\x22','hasFormat','validation','appCode','authRequired','close','`\x20requires\x20either\x20--code\x20or\x20--alias.','some','dryRun','\x22.\x20','map','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','question','1448616AYYXGA','flags','alias','configMissing','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','length','234054CaKhaP','verbose','pretty','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','apiDir','riskLevel','454210ygoZhY','resolveAppCode','yes','Operation\x20cancelled\x20by\x20user.','requiresAuth','\x20api\x20pull`\x20first.','14nchVjG','type','./src/api','2584430OuEGYv','Command\x20`','defaultFormat','join','name','Set\x20appcode\x20via\x20`','⚠\x20\x20High-risk\x20operation:\x20','apiDomain','selectedAppName'];a101_0x409f=function(){return _0x3b25b4;};return a101_0x409f();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0xd8a345,_0x146fb8){const _0x105632=a101_0x2e28,_0x96717b=CLI_BIN_NAME+'\x20'+_0xd8a345[_0x105632(0x10c)]+'\x20'+_0xd8a345[_0x105632(0x10f)],_0x32e0f2=parseFlags(_0xd8a345['flags'],_0x146fb8[_0x105632(0x119)]);validateFlags(_0xd8a345[_0x105632(0xe3)],_0x32e0f2,_0x96717b);if(!_0x32e0f2[_0x105632(0x110)]&&_0x146fb8[_0x105632(0xed)]&&riskLevelOrder(_0xd8a345['risk'])>riskLevelOrder(_0x146fb8['riskLevel']))throw CliErrors[_0x105632(0xd7)](_0x105632(0xf8)+_0x96717b+_0x105632(0x113)+_0xd8a345[_0x105632(0x117)]+_0x105632(0xe6)+_0x146fb8[_0x105632(0xed)]+'\x22.\x0a'+_0x105632(0x101));const _0x6f9b22=_0x146fb8[_0x105632(0xec)]||_0x105632(0xf6);resolveAliasToCode(_0xd8a345,_0x32e0f2,_0x6f9b22,_0x96717b);let _0x59e46f='';if(_0xd8a345[_0x105632(0xf2)]!==![]){_0x59e46f=_0x146fb8['resolveCookie']();if(!_0x59e46f)throw CliErrors[_0x105632(0xd9)]();const {setActiveCookie:_0x3f15d2}=await import(_0x105632(0xd3));_0x3f15d2(_0x59e46f);}let _0x1bd880='';if(_0xd8a345['requiresAppCode']!==![]){_0x1bd880=_0x146fb8[_0x105632(0xef)]()??'';if(!_0x1bd880)throw CliErrors[_0x105632(0xe5)](_0x105632(0xfc)+CLI_BIN_NAME+_0x105632(0xe0));}const _0x99ff20=resolveFormat(_0x32e0f2,_0xd8a345,_0x146fb8[_0x105632(0xf9)]),_0x4acdd4=buildRuntimeContext({'appCode':_0x1bd880,'cookie':_0x59e46f,'apiDomain':_0x146fb8['resolveApiDomain'](),'format':_0x99ff20,'flags':_0x32e0f2,'def':_0xd8a345,'nonInteractive':_0x146fb8['isNonInteractive'],'defaultPageSize':_0x146fb8[_0x105632(0x105)],'defaultVerbose':_0x146fb8[_0x105632(0x116)],'apiDir':_0x6f9b22,'selectedAppName':_0x146fb8[_0x105632(0xff)]});_0xd8a345[_0x105632(0x112)]&&await _0xd8a345[_0x105632(0x112)](_0x4acdd4);if(_0x32e0f2[_0x105632(0x110)]){if(!_0xd8a345[_0x105632(0xdd)])throw CliErrors[_0x105632(0xd7)](_0x105632(0xd2)+_0x96717b+'`.');const _0x2d7c0a=await _0xd8a345[_0x105632(0xdd)](_0x4acdd4);formatOutput({'ok':!![],'data':_0x2d7c0a},{'command':_0x96717b,'risk':_0xd8a345['risk'],'format':_0x99ff20,'dryRun':!![]});return;}if(_0xd8a345[_0x105632(0x117)]==='high-risk-write'&&!_0x32e0f2['yes']){if(_0x146fb8[_0x105632(0x114)])throw CliErrors[_0x105632(0xd7)]('High-risk\x20operation\x20`'+_0x96717b+_0x105632(0xeb));await requireConfirmation(_0x96717b);}const _0x56c11b=await _0xd8a345[_0x105632(0x115)](_0x4acdd4);formatOutput(_0x56c11b,{'command':_0x96717b,'risk':_0xd8a345['risk'],'format':_0x99ff20});}function buildRuntimeContext(_0x358a8b){const _0xd09f6f=a101_0x2e28,{flags:_0xd7c623,def:_0xa0c41b}=_0x358a8b,_0x474e8f=CLI_BIN_NAME+'\x20'+_0xa0c41b[_0xd09f6f(0x10c)]+'\x20'+_0xa0c41b[_0xd09f6f(0x10f)];return{'appCode':_0x358a8b[_0xd09f6f(0xd8)],'cookie':_0x358a8b['cookie'],'apiDomain':_0x358a8b[_0xd09f6f(0xfe)],'format':_0x358a8b[_0xd09f6f(0x100)],'nonInteractive':_0x358a8b[_0xd09f6f(0x111)],'apiDir':_0x358a8b[_0xd09f6f(0xec)],'selectedAppName':_0x358a8b[_0xd09f6f(0xff)],'str'(_0x2738ed){return String(_0xd7c623[_0x2738ed]??'');},'bool'(_0x467cb4){const _0x10f6ae=_0xd09f6f;if(_0xd7c623[_0x467cb4]===!![])return!![];if(_0x467cb4===_0x10f6ae(0xe9)&&_0x358a8b[_0x10f6ae(0x116)])return!![];return![];},'num'(_0x3446be,_0x2c8c7d){const _0x1e5d75=_0xd09f6f,_0x5bb6e0=_0xd7c623[_0x3446be];if(typeof _0x5bb6e0==='number')return _0x5bb6e0;if(_0x3446be==='pagesize'&&_0x358a8b[_0x1e5d75(0x105)]!=null)return _0x358a8b['defaultPageSize'];return _0x2c8c7d??0x0;},'flag'(_0x28023c){return _0xd7c623[_0x28023c];},'output'(_0x362f64){const _0x3a0845=_0xd09f6f;formatOutput(_0x362f64,{'command':_0x474e8f,'risk':_0xa0c41b[_0x3a0845(0x117)],'format':_0x358a8b[_0x3a0845(0x100)]});}};}function resolveFormat(_0x2789a4,_0x594c22,_0x11a93f){const _0xc81472=a101_0x2e28;if(_0x594c22[_0xc81472(0xd6)]===![])return _0xc81472(0xea);const _0x502438=_0x2789a4[_0xc81472(0x100)];if(_0x502438===_0xc81472(0x104)||_0x502438==='pretty'||_0x502438==='table')return _0x502438;if(_0x11a93f)return _0x11a93f;return'pretty';}async function requireConfirmation(_0x4364b0){const _0x35e290=a101_0x2e28,_0x5a2546=await import(_0x35e290(0x10a)),_0x2f2b17=_0x5a2546['createInterface']({'input':process[_0x35e290(0x109)],'output':process['stderr']});return new Promise((_0x4f35c1,_0x463599)=>{const _0x47da23=_0x35e290;_0x2f2b17[_0x47da23(0xe1)](_0x47da23(0xfd)+_0x4364b0+_0x47da23(0x103),_0x4a39ec=>{const _0x1dea46=_0x47da23;_0x2f2b17[_0x1dea46(0xda)](),_0x4a39ec['toLowerCase']()==='y'||_0x4a39ec[_0x1dea46(0x10d)]()===_0x1dea46(0xf0)?_0x4f35c1():_0x463599(CliErrors['cancelled'](_0x1dea46(0xf1)));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x1a2f9f){const _0x5e6e10=a101_0x2e28;return RISK_ORDER[_0x1a2f9f??_0x5e6e10(0x11a)]??0x0;}function resolveAliasToCode(_0x196b84,_0x2066fb,_0x3c8297,_0x46f1c8){const _0x3f4996=a101_0x2e28,_0x4b2fcc=_0x196b84['flags'][_0x3f4996(0xdc)](_0x3585bd=>_0x3585bd[_0x3f4996(0xfb)]===_0x3f4996(0x108)&&_0x3585bd[_0x3f4996(0xf5)]===_0x3f4996(0x10e)),_0x4c0d65=_0x196b84['flags'][_0x3f4996(0xdc)](_0x3dfc63=>_0x3dfc63[_0x3f4996(0xfb)]===_0x3f4996(0xe4)&&_0x3dfc63[_0x3f4996(0xf5)]===_0x3f4996(0x10e));if(!_0x4b2fcc||!_0x4c0d65)return;const _0x252510=_0x2066fb[_0x3f4996(0x108)]?String(_0x2066fb[_0x3f4996(0x108)]):'',_0x13606=_0x2066fb[_0x3f4996(0xe4)]?String(_0x2066fb['alias']):'';if(!_0x252510&&!_0x13606)throw CliErrors[_0x3f4996(0xd7)]('`'+_0x46f1c8+_0x3f4996(0xdb));if(_0x13606&&!_0x252510){const _0x5d89a4=resolveAlias(_0x3c8297,_0x13606);if(!_0x5d89a4){const _0x2f8ebf=listAliases(_0x3c8297)[_0x3f4996(0xdf)](_0x45276b=>_0x45276b[_0x3f4996(0xe4)]),_0x52ddfa=_0x2f8ebf[_0x3f4996(0xe7)]?_0x3f4996(0x10b)+_0x2f8ebf[_0x3f4996(0xfa)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3c8297+'.\x20Run\x20`'+CLI_BIN_NAME+_0x3f4996(0xf3);throw CliErrors[_0x3f4996(0xd7)](_0x3f4996(0xd5)+_0x13606+_0x3f4996(0xde)+_0x52ddfa);}_0x2066fb['code']=_0x5d89a4;}}
@@ -1 +1 @@
1
- export const BUILD_NUMBER=0x35;
1
+ export const BUILD_NUMBER=0x38;
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x38cec5,_0x154f33){var _0x437800=a106_0x5353,_0x4d3f92=_0x38cec5();while(!![]){try{var _0x562131=-parseInt(_0x437800(0xb3))/0x1+parseInt(_0x437800(0xac))/0x2+parseInt(_0x437800(0xb0))/0x3*(parseInt(_0x437800(0xb5))/0x4)+parseInt(_0x437800(0xad))/0x5+parseInt(_0x437800(0xb4))/0x6+-parseInt(_0x437800(0xa9))/0x7+parseInt(_0x437800(0xaf))/0x8*(-parseInt(_0x437800(0xb1))/0x9);if(_0x562131===_0x154f33)break;else _0x4d3f92['push'](_0x4d3f92['shift']());}catch(_0x2e5700){_0x4d3f92['push'](_0x4d3f92['shift']());}}}(a106_0x4926,0x2f4f5));function a106_0x5353(_0x3acba8,_0x4b59f9){_0x3acba8=_0x3acba8-0xa9;var _0x49261b=a106_0x4926();var _0x535303=_0x49261b[_0x3acba8];return _0x535303;}import{jsx as a106_0x4541c5,jsxs as a106_0x5cf18a}from'react/jsx-runtime';import{Box,Text}from'ink';function a106_0x4926(){var _0x4de9ea=['343366gBWyzv','1904720mJtyQs','\x20to\x20view\x20available\x20commands.','16NGwyHV','9ffZDgO','491823cisdjT','\x20--help','374949gyDJvX','698496NGwHlk','415464eHLVXn','2118319yrqEOI','green','\x20\x20Use\x20'];a106_0x4926=function(){return _0x4de9ea;};return a106_0x4926();}import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x331fe7=a106_0x5353;return a106_0x5cf18a(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a106_0x4541c5(Box,{'children':a106_0x4541c5(Text,{'bold':!![],'color':_0x331fe7(0xaa),'children':'\x20\x20Rabetbase\x20CLI'})}),a106_0x5cf18a(Box,{'marginTop':0x1,'children':[a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xab)}),a106_0x4541c5(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x331fe7(0xb2)}),a106_0x4541c5(Text,{'dimColor':!![],'children':_0x331fe7(0xae)})]})]});}
1
+ function a104_0x4191(_0xc180f3,_0x253c06){_0xc180f3=_0xc180f3-0x19c;var _0x510da8=a104_0x510d();var _0x41911d=_0x510da8[_0xc180f3];return _0x41911d;}(function(_0x1aa0d2,_0x5aa0c4){var _0x45e4a2=a104_0x4191,_0x17717f=_0x1aa0d2();while(!![]){try{var _0x340cc5=parseInt(_0x45e4a2(0x19e))/0x1*(-parseInt(_0x45e4a2(0x1a6))/0x2)+parseInt(_0x45e4a2(0x1a2))/0x3+-parseInt(_0x45e4a2(0x1a8))/0x4+-parseInt(_0x45e4a2(0x19d))/0x5+parseInt(_0x45e4a2(0x19f))/0x6+-parseInt(_0x45e4a2(0x19c))/0x7+parseInt(_0x45e4a2(0x1a4))/0x8;if(_0x340cc5===_0x5aa0c4)break;else _0x17717f['push'](_0x17717f['shift']());}catch(_0x140b5a){_0x17717f['push'](_0x17717f['shift']());}}}(a104_0x510d,0xdacec));function a104_0x510d(){var _0x20bf06=['column','16nFXQVN','\x20\x20Rabetbase\x20CLI','5116000TRANNH','7942858NNjIwg','3892150GbzrTe','106872Khhulo','9835956MzbqFm','green','\x20--help','2083353hcWreP','\x20\x20Use\x20','20876472NWBAPe'];a104_0x510d=function(){return _0x20bf06;};return a104_0x510d();}import{jsx as a104_0x529193,jsxs as a104_0x4fdbf5}from'react/jsx-runtime';import{Box,Text}from'ink';import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x288bac=a104_0x4191;return a104_0x4fdbf5(Box,{'flexDirection':_0x288bac(0x1a5),'marginTop':0x1,'marginBottom':0x1,'children':[a104_0x529193(Box,{'children':a104_0x529193(Text,{'bold':!![],'color':_0x288bac(0x1a0),'children':_0x288bac(0x1a7)})}),a104_0x4fdbf5(Box,{'marginTop':0x1,'children':[a104_0x529193(Text,{'dimColor':!![],'children':_0x288bac(0x1a3)}),a104_0x529193(Text,{'bold':!![],'color':_0x288bac(0x1a0),'children':CLI_BIN_NAME+_0x288bac(0x1a1)}),a104_0x529193(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
package/lib/init/main.js CHANGED
@@ -1 +1 @@
1
- const a107_0x398561=a107_0x429d;(function(_0x20cd3f,_0x58077f){const _0x1f339a=a107_0x429d,_0xbaf0a9=_0x20cd3f();while(!![]){try{const _0x245a14=-parseInt(_0x1f339a(0x1fe))/0x1+parseInt(_0x1f339a(0x1ce))/0x2+-parseInt(_0x1f339a(0x203))/0x3*(-parseInt(_0x1f339a(0x204))/0x4)+-parseInt(_0x1f339a(0x1e3))/0x5*(parseInt(_0x1f339a(0x200))/0x6)+-parseInt(_0x1f339a(0x20b))/0x7+parseInt(_0x1f339a(0x1f3))/0x8*(-parseInt(_0x1f339a(0x1ef))/0x9)+parseInt(_0x1f339a(0x1e5))/0xa*(parseInt(_0x1f339a(0x205))/0xb);if(_0x245a14===_0x58077f)break;else _0xbaf0a9['push'](_0xbaf0a9['shift']());}catch(_0x40cb80){_0xbaf0a9['push'](_0xbaf0a9['shift']());}}}(a107_0x5db5,0x55a44));import{jsxs as a107_0x1eda89,jsx as a107_0x394fba}from'react/jsx-runtime';import{useState,useEffect}from'react';function a107_0x5db5(){const _0x40f15d=['cyan','slice','error','assign','toLocaleString','red','appcode','keys','parse','\x20←\x20','Old\x20file\x20backed\x20up\x20as\x20','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','7500DeExTR','Checking\x20existing\x20configuration...','5037490QmCXML','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','创建配置文件失败','init','Initializing\x20configuration\x20file...','migrating-input','初始化项目配置文件成功','info','version','column','4437081vqobUI','Migrating\x20legacy\x20config...','../..','string','8hmzrZM','split','message','test','App\x20Code\x20cannot\x20exceed\x20100\x20characters','升级配置文件失败','pop','checking','production','env','init-input','537675XqrrcC','return','1716KZyyvZ','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','1.0.0','3TbhCuq','1303484DybaET','33oCMHPv','legacy\x20config','escape','Upgrade\x20it\x20to\x20','.lovrabetrc','yellow','1926771NZXvCL','Invalid\x20App\x20Code','.lovrabet.json','delete','cwd','App\x20Code\x20cannot\x20be\x20empty','从旧配置文件升级成功','success','.bak','trim','ctrl','gray','app','green','migrating','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','package.json','utf8','Error:\x20','497214pojDaa','length','setLogPath','✓\x20Upgraded\x20','createdAt','[Y/n]','AppCode','exit'];a107_0x5db5=function(){return _0x40f15d;};return a107_0x5db5();}import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';function a107_0x429d(_0x37fe21,_0x160731){_0x37fe21=_0x37fe21-0x1c7;const _0x5db52d=a107_0x5db5();let _0x429d5f=_0x5db52d[_0x37fe21];return _0x429d5f;}import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a107_0x398561(0x20d),a107_0x398561(0x209)];export function Init({appcode:_0x2de8a8,env:_0x34cc44,autoYes:_0x41f57c}){const _0x6ee34c=a107_0x398561,[_0x1db42b,_0x4f1f3c]=useState(_0x6ee34c(0x1fa)),[_0xe7ce63,_0x314fa7]=useState(null),[_0x2da685,_0x4145d6]=useState(![]),[_0x533a97,_0x2badbb]=useState(!_0x2de8a8),[_0x12ee8c,_0x1b018f]=useState(''),[_0x568daf,_0xed345d]=useState(''),[_0x43b5ea,_0x53ebc3]=useState(_0x2de8a8||''),[_0x10c3e6]=useState(_0x34cc44),[_0x298385,_0x1e8b24]=useState(),[_0x4cd2d9,_0x1b8360]=useState({});function _0x186f4a(_0x48dd13){const _0x248801=_0x6ee34c;if(_0x48dd13[_0x248801(0x1cf)]===0x0)return{'valid':![],'message':''};if(_0x48dd13[_0x248801(0x1cf)]>0x64)return{'valid':![],'message':_0x248801(0x1f7)};const _0xe1ff37=/^[A-Za-z0-9_-]+$/;if(!_0xe1ff37[_0x248801(0x1f6)](_0x48dd13))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x320077,_0x298ae3)=>{const _0xac5ad6=_0x6ee34c;if(_0x1db42b===_0xac5ad6(0x1ea)){if(_0x298ae3[_0xac5ad6(0x1ff)]||_0x320077==='y'||_0x320077==='Y')_0x4f1f3c(_0xac5ad6(0x1c9));else{if(_0x320077==='n'||_0x320077==='N'||_0x298ae3[_0xac5ad6(0x207)])console['log'](_0xac5ad6(0x1e1)),process[_0xac5ad6(0x1d5)](0x0);else _0x298ae3[_0xac5ad6(0x215)]&&_0x320077==='c'&&process['exit'](0x0);}return;}if(!_0x533a97)return;if(_0x298ae3[_0xac5ad6(0x1ff)]){if(_0x568daf||!_0x12ee8c[_0xac5ad6(0x214)]()){_0xed345d(_0xac5ad6(0x210));return;}const _0x2d0a5f=_0x12ee8c[_0xac5ad6(0x214)](),{valid:_0x34905a,message:_0x129494}=_0x186f4a(_0x2d0a5f);if(!_0x34905a){_0xed345d(_0x129494||_0xac5ad6(0x20c));return;}_0x53ebc3(_0x2d0a5f),_0x2badbb(![]);}else{if(_0x298ae3['backspace']||_0x298ae3[_0xac5ad6(0x20e)])_0x1b018f(_0x3218fa=>{const _0x24d5fb=_0xac5ad6,_0xc311fb=_0x3218fa[_0x24d5fb(0x1d7)](0x0,-0x1);return _0xed345d(_0xc311fb['length']===0x0?'':_0x186f4a(_0xc311fb)['message']||''),_0xc311fb;});else _0x298ae3['ctrl']&&_0x320077==='c'?process['exit'](0x0):_0x1b018f(_0x41ae31=>{const _0x47f2e3=_0xac5ad6,_0xb37106=_0x41ae31+_0x320077;return _0xed345d(_0x186f4a(_0xb37106)[_0x47f2e3(0x1f5)]||''),_0xb37106;});}},{'isActive':_0x1db42b===_0x6ee34c(0x1ea)||_0x1db42b===_0x6ee34c(0x1fd)}),useEffect(()=>{const _0x3214bf=_0x6ee34c;if(_0x1db42b!==_0x3214bf(0x1fa))return;const _0x5a1f49=process[_0x3214bf(0x20f)]();if(getProjectConfigPath()){_0x314fa7(_0x3214bf(0x1e6)),_0x4f1f3c(_0x3214bf(0x1d8)),setTimeout(()=>process[_0x3214bf(0x1d5)](0x1),0x64);return;}let _0x4dfcfe;for(const _0x5e191e of LEGACY_CONFIG_NAMES){const _0x2a7c7a=resolve(_0x5a1f49,_0x5e191e);if(existsSync(_0x2a7c7a)){_0x4dfcfe=_0x2a7c7a;break;}}if(_0x4dfcfe){_0x1e8b24(_0x4dfcfe);try{const _0x15815e=readFileSync(_0x4dfcfe,_0x3214bf(0x1cc));_0x1b8360(JSON[_0x3214bf(0x1de)](_0x15815e));}catch{_0x1b8360({});}_0x41f57c?_0x4f1f3c(_0x3214bf(0x1c9)):_0x4f1f3c(_0x3214bf(0x1ea));return;}_0x4f1f3c(_0x3214bf(0x1fd)),!_0x2de8a8?_0x2badbb(!![]):_0x2badbb(![]);},[_0x1db42b,_0x41f57c,_0x2de8a8]),useEffect(()=>{const _0xf7409c=_0x6ee34c;if(_0x1db42b!==_0xf7409c(0x1c9))return;const _0xd8b8b3=process[_0xf7409c(0x20f)](),_0x635821=resolve(_0xd8b8b3,NEW_CONFIG_NAME);try{const _0x417f6d=fileURLToPath(import.meta.url),_0x30cc14=resolve(dirname(_0x417f6d),_0xf7409c(0x1f1)),_0x2fa968=join(_0x30cc14,_0xf7409c(0x1cb));let _0x18ba22=_0xf7409c(0x202);try{const _0x220f6b=JSON[_0xf7409c(0x1de)](readFileSync(_0x2fa968,_0xf7409c(0x1cc)));_0x18ba22=_0x220f6b[_0xf7409c(0x1ed)]||_0xf7409c(0x202);}catch{}const _0x27332e=readRawConfig(),_0x590818={..._0x27332e,..._0x4cd2d9,'version':_0x18ba22,'migratedAt':new Date()[_0xf7409c(0x1da)](),'migratedFrom':_0x298385};if(!_0x590818[_0xf7409c(0x1dc)]&&!_0x590818['app']){if(!_0x2de8a8){_0x1b8360(_0x590818),_0x4f1f3c(_0xf7409c(0x1fd)),_0x2badbb(!![]);return;}_0x590818[_0xf7409c(0x1dc)]=_0x2de8a8;}if(_0x590818['env']&&typeof _0x590818[_0xf7409c(0x1fc)]!=='string')delete _0x590818[_0xf7409c(0x1fc)];else!_0x590818[_0xf7409c(0x1fc)]&&(_0x590818['env']=_0x27332e[_0xf7409c(0x1fc)]||_0xf7409c(0x1fb));writeConfigFile(_0x635821,_0x590818);if(_0x298385){const _0x4d49a9=_0x298385+_0xf7409c(0x213);renameSync(_0x298385,_0x4d49a9);}logger[_0xf7409c(0x1d0)](_0xd8b8b3),logger[_0xf7409c(0x1ec)](_0xf7409c(0x1e8),_0xf7409c(0x211),{'from':_0x298385,'to':_0x635821,'appcode':_0x590818['appcode']||_0x590818[_0xf7409c(0x1c7)],'env':_0x590818[_0xf7409c(0x1fc)]}),_0x4145d6(!![]),_0x4f1f3c(_0xf7409c(0x212)),setTimeout(()=>process['exit'](0x0),0x64);}catch(_0x1bea42){logger[_0xf7409c(0x1d8)]('init',_0xf7409c(0x1f8),{'error':_0x1bea42 instanceof Error?_0x1bea42['message']:String(_0x1bea42)}),_0x314fa7(_0xf7409c(0x1cd)+(_0x1bea42 instanceof Error?_0x1bea42[_0xf7409c(0x1f5)]:String(_0x1bea42))),_0x4f1f3c(_0xf7409c(0x1d8)),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x1db42b]),useEffect(()=>{const _0x5bee5d=_0x6ee34c;if(_0x1db42b!==_0x5bee5d(0x1e8))return;const _0x2c80e6=process['cwd'](),_0x427435=resolve(_0x2c80e6,NEW_CONFIG_NAME);try{const _0x27ef0d=fileURLToPath(import.meta.url),_0x2f8bd2=resolve(dirname(_0x27ef0d),_0x5bee5d(0x1f1)),_0x4aeddc=join(_0x2f8bd2,_0x5bee5d(0x1cb));let _0x2697ec=_0x5bee5d(0x202);try{const _0x3ccad4=JSON['parse'](readFileSync(_0x4aeddc,_0x5bee5d(0x1cc)));_0x2697ec=_0x3ccad4[_0x5bee5d(0x1ed)]||_0x5bee5d(0x202);}catch{}const _0x20abf7=readRawConfig(),_0x2cb44b=typeof _0x20abf7[_0x5bee5d(0x1fc)]===_0x5bee5d(0x1f2)?_0x20abf7['env']:undefined,_0x4e8825={};_0x4cd2d9&&Object[_0x5bee5d(0x1dd)](_0x4cd2d9)[_0x5bee5d(0x1cf)]>0x0&&Object[_0x5bee5d(0x1d9)](_0x4e8825,_0x4cd2d9),!_0x4e8825['version']&&(_0x4e8825[_0x5bee5d(0x1ed)]=_0x2697ec),!_0x4e8825[_0x5bee5d(0x1d2)]&&(_0x4e8825[_0x5bee5d(0x1d2)]=new Date()[_0x5bee5d(0x1da)]()),!_0x4e8825[_0x5bee5d(0x1dc)]&&!_0x4e8825[_0x5bee5d(0x1c7)]&&(_0x4e8825['appcode']=_0x43b5ea),!_0x4e8825[_0x5bee5d(0x1fc)]&&(_0x4e8825[_0x5bee5d(0x1fc)]=_0x10c3e6||_0x2cb44b||_0x5bee5d(0x1fb)),writeConfigFile(_0x427435,_0x4e8825),logger['setLogPath'](_0x2c80e6),logger[_0x5bee5d(0x1ec)](_0x5bee5d(0x1e8),_0x5bee5d(0x1eb),{'appcode':_0x4e8825[_0x5bee5d(0x1dc)]||_0x4e8825[_0x5bee5d(0x1c7)],'env':_0x4e8825[_0x5bee5d(0x1fc)],'version':_0x4e8825[_0x5bee5d(0x1ed)],'configPath':_0x427435}),_0x4145d6(!![]),_0x4f1f3c('success'),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x0),0x64);}catch(_0x2ac01b){logger['error'](_0x5bee5d(0x1e8),_0x5bee5d(0x1e7),{'error':_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b)}),_0x314fa7(_0x5bee5d(0x1cd)+(_0x2ac01b instanceof Error?_0x2ac01b[_0x5bee5d(0x1f5)]:String(_0x2ac01b))),_0x4f1f3c(_0x5bee5d(0x1d8)),setTimeout(()=>process[_0x5bee5d(0x1d5)](0x1),0x64);}},[_0x1db42b,_0x43b5ea,_0x10c3e6]),useEffect(()=>{const _0x4aeac1=_0x6ee34c;_0x1db42b==='init-input'&&!_0x533a97&&(_0x43b5ea||_0x4cd2d9&&Object[_0x4aeac1(0x1dd)](_0x4cd2d9)[_0x4aeac1(0x1cf)]>0x0)&&_0x4f1f3c(_0x4aeac1(0x1e8));},[_0x1db42b,_0x533a97,_0x43b5ea]);if(_0xe7ce63)return a107_0x394fba(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':['✗\x20',_0xe7ce63]})});if(_0x1db42b==='migrating-input'){const _0x3835c9=_0x298385?_0x298385['split']('/')[_0x6ee34c(0x1f9)]():_0x6ee34c(0x206),_0x2f27f3=_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.['app'];return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x20a),'children':['⚠\x20Found\x20legacy\x20configuration\x20file:\x20',a107_0x394fba(Text,{'bold':!![],'children':_0x3835c9})]}),_0x2f27f3&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['\x20\x20appcode:\x20',_0x2f27f3]}),a107_0x1eda89(Text,{'children':['\x0a',_0x6ee34c(0x208),a107_0x394fba(Text,{'bold':!![],'children':'.rabetbase.json'}),'?','\x20',a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x6ee34c(0x1d3)})]}),a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':'\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak'})]});}if(_0x1db42b===_0x6ee34c(0x1fd)&&_0x533a97)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Box,{'children':[a107_0x1eda89(Text,{'color':'cyan','children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x12ee8c?a107_0x394fba(Text,{'color':_0x6ee34c(0x1c8),'children':_0x12ee8c}):a107_0x394fba(Text,{'color':'gray','children':'_'}),_0x568daf&&a107_0x1eda89(Text,{'color':_0x6ee34c(0x1db),'children':[_0x6ee34c(0x1df),_0x568daf]})]}),!_0x568daf&&!_0x12ee8c&&a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'color':_0x6ee34c(0x216),'children':_0x6ee34c(0x201)})})]});if(_0x1db42b==='migrating')return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1f0)})});if(_0x1db42b===_0x6ee34c(0x1e8))return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e9)})});if(_0x2da685||_0x1db42b===_0x6ee34c(0x212)){const _0x2e36cb=_0x298385?_0x298385[_0x6ee34c(0x1f4)]('/')['pop']():undefined;if(_0x2e36cb)return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':[_0x6ee34c(0x1d1),_0x2e36cb,'\x20→\x20.rabetbase.json']}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':[_0x6ee34c(0x1d4),':\x20',_0x4cd2d9?.[_0x6ee34c(0x1dc)]||_0x4cd2d9?.[_0x6ee34c(0x1c7)]]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x216),'children':[_0x6ee34c(0x1e0),_0x2e36cb,'.bak']})]});return a107_0x1eda89(Box,{'flexDirection':_0x6ee34c(0x1ee),'children':[a107_0x1eda89(Text,{'color':_0x6ee34c(0x1c8),'children':['✓\x20',_0x6ee34c(0x1e2)]}),a107_0x1eda89(Text,{'color':_0x6ee34c(0x1d6),'children':['AppCode',':\x20',_0x43b5ea]}),a107_0x394fba(Text,{'children':_0x6ee34c(0x1ca)})]});}return a107_0x394fba(Box,{'children':a107_0x394fba(Text,{'children':_0x6ee34c(0x1e4)})});}
1
+ const a105_0x2dd424=a105_0x12fa;function a105_0xf1ed(){const _0x3bc1d7=['Migrating\x20legacy\x20config...','AppCode','4385508gLFxpL','trim','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','Error:\x20','../..','init-input','delete','从旧配置文件升级成功','error','log','20hTIdNp','success','appcode','8552PVPIQs','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','.lovrabetrc','toLocaleString','env','return','slice','migrating-input','app','checking','length','1.0.0','1729dPNYOh','\x20→\x20.rabetbase.json','parse','cyan','keys','info','escape','升级配置文件失败','814838GCOBgh','136zjpYXm','ctrl','✓\x20Upgraded\x20','init','gray','message','exit','column','backspace','package.json','Checking\x20existing\x20configuration...','\x20\x20appcode:\x20','yellow','Initializing\x20configuration\x20file...','83555dqyNbn','migrating','App\x20Code\x20cannot\x20be\x20empty','assign','createdAt','1135471bkcCrW','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20exceed\x20100\x20characters','green','.rabetbase.json','string','17499321mnEFjk','production','legacy\x20config','test','version','Please\x20enter\x20App\x20Code:','cwd','utf8','创建配置文件失败','1687029jArrGD','red','\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak','Upgrade\x20it\x20to\x20'];a105_0xf1ed=function(){return _0x3bc1d7;};return a105_0xf1ed();}(function(_0x479186,_0x130931){const _0x29b448=a105_0x12fa,_0x44a628=_0x479186();while(!![]){try{const _0x52f882=-parseInt(_0x29b448(0x1c6))/0x1+-parseInt(_0x29b448(0x1ff))/0x2+-parseInt(_0x29b448(0x1d5))/0x3+parseInt(_0x29b448(0x200))/0x4*(-parseInt(_0x29b448(0x20e))/0x5)+-parseInt(_0x29b448(0x1db))/0x6+parseInt(_0x29b448(0x1f7))/0x7*(parseInt(_0x29b448(0x1e8))/0x8)+parseInt(_0x29b448(0x1cc))/0x9*(parseInt(_0x29b448(0x1e5))/0xa);if(_0x52f882===_0x130931)break;else _0x44a628['push'](_0x44a628['shift']());}catch(_0x3d887){_0x44a628['push'](_0x44a628['shift']());}}}(a105_0xf1ed,0xb6ba8));import{jsxs as a105_0x221515,jsx as a105_0x14a9b6}from'react/jsx-runtime';import{useState,useEffect}from'react';import{Box,Text,useInput}from'ink';function a105_0x12fa(_0xb51618,_0x1d5a0a){_0xb51618=_0xb51618-0x1c3;const _0xf1ed50=a105_0xf1ed();let _0x12fa25=_0xf1ed50[_0xb51618];return _0x12fa25;}import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname,basename}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=['.lovrabet.json',a105_0x2dd424(0x1ed)];export function Init({appcode:_0x415119,env:_0x2376bf,autoYes:_0x51aceb}){const _0x55ff9e=a105_0x2dd424,[_0x3bbfce,_0x1260cb]=useState(_0x55ff9e(0x1f4)),[_0x172c8b,_0x268b40]=useState(null),[_0x4546d3,_0x12c2f2]=useState(![]),[_0xd6a833,_0x3c09e2]=useState(!_0x415119),[_0x2c2901,_0x411755]=useState(''),[_0x7b3798,_0x14fe51]=useState(''),[_0x258afd,_0x138bde]=useState(_0x415119||''),[_0x407217]=useState(_0x2376bf),[_0x437568,_0x1e0bcf]=useState(),[_0xafb6,_0x2a7bb3]=useState({});function _0x400458(_0x3c7469){const _0x25f503=_0x55ff9e;if(_0x3c7469[_0x25f503(0x1f5)]===0x0)return{'valid':![],'message':''};if(_0x3c7469['length']>0x64)return{'valid':![],'message':_0x25f503(0x1c8)};const _0x3ae7d7=/^[A-Za-z0-9_-]+$/;if(!_0x3ae7d7[_0x25f503(0x1cf)](_0x3c7469))return{'valid':![],'message':_0x25f503(0x1eb)};return{'valid':!![]};}useInput((_0x1b6e1c,_0x14285c)=>{const _0xa2078e=_0x55ff9e;if(_0x3bbfce===_0xa2078e(0x1f2)){if(_0x14285c[_0xa2078e(0x1f0)]||_0x1b6e1c==='y'||_0x1b6e1c==='Y')_0x1260cb(_0xa2078e(0x20f));else{if(_0x1b6e1c==='n'||_0x1b6e1c==='N'||_0x14285c[_0xa2078e(0x1fd)])console[_0xa2078e(0x1e4)](_0xa2078e(0x1ec)),process[_0xa2078e(0x206)](0x0);else _0x14285c[_0xa2078e(0x201)]&&_0x1b6e1c==='c'&&process[_0xa2078e(0x206)](0x0);}return;}if(!_0xd6a833)return;if(_0x14285c[_0xa2078e(0x1f0)]){if(_0x7b3798||!_0x2c2901[_0xa2078e(0x1dc)]()){_0x14fe51(_0xa2078e(0x1c3));return;}const _0x492caa=_0x2c2901['trim'](),{valid:_0x6dd0f2,message:_0xb638b9}=_0x400458(_0x492caa);if(!_0x6dd0f2){_0x14fe51(_0xb638b9||'Invalid\x20App\x20Code');return;}_0x138bde(_0x492caa),_0x3c09e2(![]);}else{if(_0x14285c[_0xa2078e(0x208)]||_0x14285c[_0xa2078e(0x1e1)])_0x411755(_0x523792=>{const _0x17d2eb=_0xa2078e,_0x472fbd=_0x523792[_0x17d2eb(0x1f1)](0x0,-0x1);return _0x14fe51(_0x472fbd[_0x17d2eb(0x1f5)]===0x0?'':_0x400458(_0x472fbd)[_0x17d2eb(0x205)]||''),_0x472fbd;});else _0x14285c[_0xa2078e(0x201)]&&_0x1b6e1c==='c'?process[_0xa2078e(0x206)](0x0):_0x411755(_0x1228d3=>{const _0x411e5d=_0x1228d3+_0x1b6e1c;return _0x14fe51(_0x400458(_0x411e5d)['message']||''),_0x411e5d;});}},{'isActive':_0x3bbfce===_0x55ff9e(0x1f2)||_0x3bbfce===_0x55ff9e(0x1e0)}),useEffect(()=>{const _0x57c904=_0x55ff9e;if(_0x3bbfce!==_0x57c904(0x1f4))return;const _0x5eeec5=process['cwd']();if(getProjectConfigPath()){_0x268b40(_0x57c904(0x1e9)),_0x1260cb(_0x57c904(0x1e3)),setTimeout(()=>process[_0x57c904(0x206)](0x1),0x64);return;}let _0x1b6ea3;for(const _0x3dbc0f of LEGACY_CONFIG_NAMES){const _0x1fd0bb=resolve(_0x5eeec5,_0x3dbc0f);if(existsSync(_0x1fd0bb)){_0x1b6ea3=_0x1fd0bb;break;}}if(_0x1b6ea3){_0x1e0bcf(_0x1b6ea3);try{const _0x3abd93=readFileSync(_0x1b6ea3,_0x57c904(0x1d3));_0x2a7bb3(JSON[_0x57c904(0x1f9)](_0x3abd93));}catch{_0x2a7bb3({});}_0x51aceb?_0x1260cb(_0x57c904(0x20f)):_0x1260cb('migrating-input');return;}_0x1260cb(_0x57c904(0x1e0)),!_0x415119?_0x3c09e2(!![]):_0x3c09e2(![]);},[_0x3bbfce,_0x51aceb,_0x415119]),useEffect(()=>{const _0x571a01=_0x55ff9e;if(_0x3bbfce!==_0x571a01(0x20f))return;const _0x3e9aaa=process[_0x571a01(0x1d2)](),_0xc7cff1=resolve(_0x3e9aaa,NEW_CONFIG_NAME);try{const _0x1013c7=fileURLToPath(import.meta.url),_0x3d6f23=resolve(dirname(_0x1013c7),_0x571a01(0x1df)),_0x595061=join(_0x3d6f23,_0x571a01(0x209));let _0x52f3d5=_0x571a01(0x1f6);try{const _0x5000f3=JSON[_0x571a01(0x1f9)](readFileSync(_0x595061,_0x571a01(0x1d3)));_0x52f3d5=_0x5000f3[_0x571a01(0x1d0)]||_0x571a01(0x1f6);}catch{}const _0x35da63=readRawConfig(),_0x124196={..._0x35da63,..._0xafb6,'version':_0x52f3d5,'migratedAt':new Date()[_0x571a01(0x1ee)](),'migratedFrom':_0x437568};if(!_0x124196[_0x571a01(0x1e7)]&&!_0x124196[_0x571a01(0x1f3)]){if(!_0x415119){_0x2a7bb3(_0x124196),_0x1260cb(_0x571a01(0x1e0)),_0x3c09e2(!![]);return;}_0x124196[_0x571a01(0x1e7)]=_0x415119;}if(_0x124196[_0x571a01(0x1ef)]&&typeof _0x124196[_0x571a01(0x1ef)]!==_0x571a01(0x1cb))delete _0x124196['env'];else!_0x124196[_0x571a01(0x1ef)]&&(_0x124196[_0x571a01(0x1ef)]=_0x35da63[_0x571a01(0x1ef)]||_0x571a01(0x1cd));writeConfigFile(_0xc7cff1,_0x124196);if(_0x437568){const _0xdf613d=_0x437568+'.bak';renameSync(_0x437568,_0xdf613d);}logger['setLogPath'](_0x3e9aaa),logger[_0x571a01(0x1fc)](_0x571a01(0x203),_0x571a01(0x1e2),{'from':_0x437568,'to':_0xc7cff1,'appcode':_0x124196['appcode']||_0x124196['app'],'env':_0x124196[_0x571a01(0x1ef)]}),_0x12c2f2(!![]),_0x1260cb(_0x571a01(0x1e6)),setTimeout(()=>process[_0x571a01(0x206)](0x0),0x64);}catch(_0x241b52){logger[_0x571a01(0x1e3)]('init',_0x571a01(0x1fe),{'error':_0x241b52 instanceof Error?_0x241b52[_0x571a01(0x205)]:String(_0x241b52)}),_0x268b40(_0x571a01(0x1de)+(_0x241b52 instanceof Error?_0x241b52['message']:String(_0x241b52))),_0x1260cb('error'),setTimeout(()=>process['exit'](0x1),0x64);}},[_0x3bbfce]),useEffect(()=>{const _0x485508=_0x55ff9e;if(_0x3bbfce!==_0x485508(0x203))return;const _0x324cf9=process['cwd'](),_0x21d592=resolve(_0x324cf9,NEW_CONFIG_NAME);try{const _0x240920=fileURLToPath(import.meta.url),_0x57d4bd=resolve(dirname(_0x240920),_0x485508(0x1df)),_0x78dce=join(_0x57d4bd,'package.json');let _0xdf9fd9=_0x485508(0x1f6);try{const _0xcf2fae=JSON['parse'](readFileSync(_0x78dce,_0x485508(0x1d3)));_0xdf9fd9=_0xcf2fae['version']||_0x485508(0x1f6);}catch{}const _0x1c61e4=readRawConfig(),_0x108df4=typeof _0x1c61e4[_0x485508(0x1ef)]===_0x485508(0x1cb)?_0x1c61e4['env']:undefined,_0x584a72={};_0xafb6&&Object[_0x485508(0x1fb)](_0xafb6)[_0x485508(0x1f5)]>0x0&&Object[_0x485508(0x1c4)](_0x584a72,_0xafb6),!_0x584a72[_0x485508(0x1d0)]&&(_0x584a72['version']=_0xdf9fd9),!_0x584a72['createdAt']&&(_0x584a72[_0x485508(0x1c5)]=new Date()[_0x485508(0x1ee)]()),!_0x584a72[_0x485508(0x1e7)]&&!_0x584a72[_0x485508(0x1f3)]&&(_0x584a72[_0x485508(0x1e7)]=_0x258afd),!_0x584a72[_0x485508(0x1ef)]&&(_0x584a72[_0x485508(0x1ef)]=_0x407217||_0x108df4||_0x485508(0x1cd)),writeConfigFile(_0x21d592,_0x584a72),logger['setLogPath'](_0x324cf9),logger[_0x485508(0x1fc)](_0x485508(0x203),'初始化项目配置文件成功',{'appcode':_0x584a72['appcode']||_0x584a72['app'],'env':_0x584a72[_0x485508(0x1ef)],'version':_0x584a72[_0x485508(0x1d0)],'configPath':_0x21d592}),_0x12c2f2(!![]),_0x1260cb(_0x485508(0x1e6)),setTimeout(()=>process[_0x485508(0x206)](0x0),0x64);}catch(_0x30c538){logger['error'](_0x485508(0x203),_0x485508(0x1d4),{'error':_0x30c538 instanceof Error?_0x30c538[_0x485508(0x205)]:String(_0x30c538)}),_0x268b40(_0x485508(0x1de)+(_0x30c538 instanceof Error?_0x30c538[_0x485508(0x205)]:String(_0x30c538))),_0x1260cb(_0x485508(0x1e3)),setTimeout(()=>process[_0x485508(0x206)](0x1),0x64);}},[_0x3bbfce,_0x258afd,_0x407217]),useEffect(()=>{const _0x1e0a4a=_0x55ff9e;_0x3bbfce==='init-input'&&!_0xd6a833&&(_0x258afd||_0xafb6&&Object[_0x1e0a4a(0x1fb)](_0xafb6)[_0x1e0a4a(0x1f5)]>0x0)&&_0x1260cb('init');},[_0x3bbfce,_0xd6a833,_0x258afd]);if(_0x172c8b)return a105_0x14a9b6(Box,{'flexDirection':_0x55ff9e(0x207),'children':a105_0x221515(Text,{'color':_0x55ff9e(0x1d6),'children':['✗\x20',_0x172c8b]})});if(_0x3bbfce==='migrating-input'){const _0x21b7ab=_0x437568?basename(_0x437568):_0x55ff9e(0x1ce),_0x3ee33e=_0xafb6?.[_0x55ff9e(0x1e7)]||_0xafb6?.[_0x55ff9e(0x1f3)];return a105_0x221515(Box,{'flexDirection':_0x55ff9e(0x207),'children':[a105_0x221515(Text,{'color':_0x55ff9e(0x20c),'children':['⚠\x20Found\x20legacy\x20configuration\x20file:\x20',a105_0x14a9b6(Text,{'bold':!![],'children':_0x21b7ab})]}),_0x3ee33e&&a105_0x221515(Text,{'color':'cyan','children':[_0x55ff9e(0x20b),_0x3ee33e]}),a105_0x221515(Text,{'children':['\x0a',_0x55ff9e(0x1d8),a105_0x14a9b6(Text,{'bold':!![],'children':_0x55ff9e(0x1ca)}),'?','\x20',a105_0x14a9b6(Text,{'color':'green','children':'[Y/n]'})]}),a105_0x14a9b6(Text,{'color':_0x55ff9e(0x204),'children':_0x55ff9e(0x1d7)})]});}if(_0x3bbfce===_0x55ff9e(0x1e0)&&_0xd6a833)return a105_0x221515(Box,{'flexDirection':'column','children':[a105_0x221515(Box,{'children':[a105_0x221515(Text,{'color':_0x55ff9e(0x1fa),'children':[_0x55ff9e(0x1d1),'\x20']}),_0x2c2901?a105_0x14a9b6(Text,{'color':'green','children':_0x2c2901}):a105_0x14a9b6(Text,{'color':_0x55ff9e(0x204),'children':'_'}),_0x7b3798&&a105_0x221515(Text,{'color':'red','children':['\x20←\x20',_0x7b3798]})]}),!_0x7b3798&&!_0x2c2901&&a105_0x14a9b6(Box,{'children':a105_0x14a9b6(Text,{'color':'gray','children':_0x55ff9e(0x1c7)})})]});if(_0x3bbfce===_0x55ff9e(0x20f))return a105_0x14a9b6(Box,{'children':a105_0x14a9b6(Text,{'children':_0x55ff9e(0x1d9)})});if(_0x3bbfce===_0x55ff9e(0x203))return a105_0x14a9b6(Box,{'children':a105_0x14a9b6(Text,{'children':_0x55ff9e(0x20d)})});if(_0x4546d3||_0x3bbfce===_0x55ff9e(0x1e6)){const _0x43a390=_0x437568?basename(_0x437568):undefined;if(_0x43a390)return a105_0x221515(Box,{'flexDirection':_0x55ff9e(0x207),'children':[a105_0x221515(Text,{'color':_0x55ff9e(0x1c9),'children':[_0x55ff9e(0x202),_0x43a390,_0x55ff9e(0x1f8)]}),a105_0x221515(Text,{'color':_0x55ff9e(0x1fa),'children':[_0x55ff9e(0x1da),':\x20',_0xafb6?.[_0x55ff9e(0x1e7)]||_0xafb6?.['app']]}),a105_0x221515(Text,{'color':_0x55ff9e(0x204),'children':['Old\x20file\x20backed\x20up\x20as\x20',_0x43a390,'.bak']})]});return a105_0x221515(Box,{'flexDirection':_0x55ff9e(0x207),'children':[a105_0x221515(Text,{'color':'green','children':['✓\x20',_0x55ff9e(0x1ea)]}),a105_0x221515(Text,{'color':_0x55ff9e(0x1fa),'children':[_0x55ff9e(0x1da),':\x20',_0x258afd]}),a105_0x14a9b6(Text,{'children':_0x55ff9e(0x1dd)})]});}return a105_0x14a9b6(Box,{'children':a105_0x14a9b6(Text,{'children':_0x55ff9e(0x20a)})});}
@@ -1 +1 @@
1
- const a114_0x437e66=a114_0x1f73;(function(_0x17f3d5,_0x27858f){const _0x10cac4=a114_0x1f73,_0x4ec3f1=_0x17f3d5();while(!![]){try{const _0x7c1d3c=-parseInt(_0x10cac4(0xc3))/0x1+parseInt(_0x10cac4(0xc6))/0x2*(parseInt(_0x10cac4(0xac))/0x3)+parseInt(_0x10cac4(0xbf))/0x4+parseInt(_0x10cac4(0xb5))/0x5*(-parseInt(_0x10cac4(0xbc))/0x6)+parseInt(_0x10cac4(0xc5))/0x7+parseInt(_0x10cac4(0xb1))/0x8+-parseInt(_0x10cac4(0xb4))/0x9;if(_0x7c1d3c===_0x27858f)break;else _0x4ec3f1['push'](_0x4ec3f1['shift']());}catch(_0x2db7e4){_0x4ec3f1['push'](_0x4ec3f1['shift']());}}}(a114_0x5bb5,0xa9cfd));function a114_0x5bb5(){const _0x4c93ef=['\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20rabetbase\x20skill\x20--help\x0a\x20\x20rabetbase\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','replace','cwd','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','exit','Error:\x20Unsupported\x20command:\x20','2408700hFGjjo','length','error','1436108sKFuYc','setLogPath','argv','skill','718356fdEaln','help','573377OcjwOo','2ypxSvO','push','--help','(empty)','\x20\x20rabetbase\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','log','2966727NqPYVu','startsWith','includes','add','Equivalent\x20command:\x20','9552016nzPYRA','toLowerCase','from','50346jKXxaR','15iVWfpj'];a114_0x5bb5=function(){return _0x4c93ef;};return a114_0x5bb5();}import{logger}from'../utils/logger.js';export function camelCaseFlagsToKebab(_0x227b40){const _0x4e3202=a114_0x1f73,_0x16066b=[];for(const [_0x9311a6,_0x1d7fa6]of Object['entries'](_0x227b40)){if(_0x1d7fa6===!![]){const _0x33fc53=_0x9311a6[_0x4e3202(0xb7)](/([A-Z])/g,'-$1')[_0x4e3202(0xb2)]();_0x16066b['push'](_0x33fc53);}}return _0x16066b;}export function parseDynamicFlags(){const _0x15d2b0=a114_0x1f73,_0x10a4ce=[];for(let _0x3550fd=0x3;_0x3550fd<process[_0x15d2b0(0xc1)][_0x15d2b0(0xbd)];_0x3550fd++){const _0x2085d4=process[_0x15d2b0(0xc1)][_0x3550fd];if(_0x2085d4&&_0x2085d4[_0x15d2b0(0xad)]('--')){const _0x18bca5=_0x2085d4['slice'](0x2);_0x18bca5&&!_0x18bca5[_0x15d2b0(0xae)]('=')&&_0x10a4ce[_0x15d2b0(0xc7)](_0x18bca5);}}return _0x10a4ce;}export function getAllProvidedFlags(_0x19de53){const _0x5ba646=a114_0x1f73,_0x11b228=camelCaseFlagsToKebab(_0x19de53),_0x5f10c2=parseDynamicFlags(),_0x52727d=new Set([..._0x11b228,..._0x5f10c2]);return Array[_0x5ba646(0xb3)](_0x52727d);}function a114_0x1f73(_0x459e68,_0x27d038){_0x459e68=_0x459e68-0xa9;const _0x5bb5ca=a114_0x5bb5();let _0x1f7377=_0x5bb5ca[_0x459e68];return _0x1f7377;}export function normalizeLegacyBffSaveFlags(_0x29b238){const _0x267911=a114_0x1f73,_0x59f54c=new Set(_0x29b238);return _0x59f54c['has']('dangerously-bff-save')&&_0x59f54c[_0x267911(0xaf)]('enable-bff-save'),Array['from'](_0x59f54c);}const SKILLS_INSTALL_COMMAND_LINE=a114_0x437e66(0xaa);export async function skillsCommand(_0x1dec0d,_0x21f158,_0x232c0f){const _0x3aed54=a114_0x437e66;logger[_0x3aed54(0xc0)](process[_0x3aed54(0xb8)]());if(_0x232c0f?.[_0x3aed54(0xc4)]||_0x1dec0d===_0x3aed54(0xc8)){showHelp();return;}console['error'](_0x3aed54(0xbb)+(_0x1dec0d||_0x3aed54(0xc9))),console['log']('\x0aAvailable\x20commands:'),console[_0x3aed54(0xab)]('\x20\x20rabetbase\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x3aed54(0xab)](_0x3aed54(0xa9)),console[_0x3aed54(0xab)](''),console['log'](_0x3aed54(0xb0)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3aed54(0xbe)](_0x3aed54(0xc2),'不支持的命令:\x20'+_0x1dec0d),process[_0x3aed54(0xba)](0x1);}function showHelp(){const _0x39d2df=a114_0x437e66;console[_0x39d2df(0xab)](_0x39d2df(0xb6)+SKILLS_INSTALL_COMMAND_LINE+_0x39d2df(0xb9));}
1
+ (function(_0x279ef2,_0x2fd353){const _0x3a8176=a106_0x2dff,_0x4834ce=_0x279ef2();while(!![]){try{const _0x13b45c=parseInt(_0x3a8176(0x11f))/0x1*(-parseInt(_0x3a8176(0x123))/0x2)+-parseInt(_0x3a8176(0x124))/0x3*(parseInt(_0x3a8176(0x12e))/0x4)+-parseInt(_0x3a8176(0x11d))/0x5*(parseInt(_0x3a8176(0x136))/0x6)+-parseInt(_0x3a8176(0x113))/0x7+parseInt(_0x3a8176(0x112))/0x8+parseInt(_0x3a8176(0x132))/0x9*(-parseInt(_0x3a8176(0x128))/0xa)+-parseInt(_0x3a8176(0x12d))/0xb*(-parseInt(_0x3a8176(0x122))/0xc);if(_0x13b45c===_0x2fd353)break;else _0x4834ce['push'](_0x4834ce['shift']());}catch(_0x1c4a8c){_0x4834ce['push'](_0x4834ce['shift']());}}}(a106_0xc73a,0x6fc79));import{logger}from'../utils/logger.js';export function camelCaseFlagsToKebab(_0x22828){const _0x46b98d=a106_0x2dff,_0x186a86=[];for(const [_0x115982,_0x3cb9df]of Object[_0x46b98d(0x111)](_0x22828)){if(_0x3cb9df===!![]){const _0x5283d7=_0x115982['replace'](/([A-Z])/g,_0x46b98d(0x12f))[_0x46b98d(0x130)]();_0x186a86['push'](_0x5283d7);}}return _0x186a86;}export function parseDynamicFlags(){const _0x3d0cce=a106_0x2dff,_0x1e03d4=[];for(let _0x39709a=0x3;_0x39709a<process[_0x3d0cce(0x11e)][_0x3d0cce(0x118)];_0x39709a++){const _0x4573ad=process['argv'][_0x39709a];if(_0x4573ad&&_0x4573ad[_0x3d0cce(0x127)]('--')){const _0x4d354=_0x4573ad[_0x3d0cce(0x129)](0x2);_0x4d354&&!_0x4d354[_0x3d0cce(0x137)]('=')&&_0x1e03d4[_0x3d0cce(0x119)](_0x4d354);}}return _0x1e03d4;}export function getAllProvidedFlags(_0xc1a3f5){const _0x2ead69=a106_0x2dff,_0x409a29=camelCaseFlagsToKebab(_0xc1a3f5),_0xd01799=parseDynamicFlags(),_0xcbed78=new Set([..._0x409a29,..._0xd01799]);return Array[_0x2ead69(0x120)](_0xcbed78);}function a106_0x2dff(_0x519243,_0x4d8c46){_0x519243=_0x519243-0x111;const _0xc73a0a=a106_0xc73a();let _0x2dffc9=_0xc73a0a[_0x519243];return _0x2dffc9;}export function normalizeLegacyBffSaveFlags(_0xf2f21){const _0x35c962=a106_0x2dff,_0x4f66c4=new Set(_0xf2f21);return _0x4f66c4['has'](_0x35c962(0x126))&&_0x4f66c4[_0x35c962(0x115)](_0x35c962(0x12c)),Array[_0x35c962(0x120)](_0x4f66c4);}function a106_0xc73a(){const _0x504ccc=['5uqguCH','argv','590383ypLcFw','from','Error:\x20Unsupported\x20command:\x20','180cYtWFF','2OznTpo','51XVqVyF','\x20\x20rabetbase\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','dangerously-bff-save','startsWith','324820LhOqST','slice','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20rabetbase\x20skill\x20--help\x0a\x20\x20rabetbase\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','help','enable-bff-save','2065162aupePd','186596ZaaHnb','-$1','toLowerCase','\x20\x20rabetbase\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','45AgyFxg','error','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','setLogPath','3581478eNDjME','includes','entries','4734632NtaZrr','5651597hxfOje','skill','add','不支持的命令:\x20','log','length','push','Equivalent\x20command:\x20','exit','cwd'];a106_0xc73a=function(){return _0x504ccc;};return a106_0xc73a();}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0xf62be5,_0x197c45,_0x353782){const _0x2d64a9=a106_0x2dff;logger[_0x2d64a9(0x135)](process[_0x2d64a9(0x11c)]());if(_0x353782?.[_0x2d64a9(0x12b)]||_0xf62be5==='--help'){showHelp();return;}console[_0x2d64a9(0x133)](_0x2d64a9(0x121)+(_0xf62be5||'(empty)')),console[_0x2d64a9(0x117)]('\x0aAvailable\x20commands:'),console[_0x2d64a9(0x117)](_0x2d64a9(0x131)),console['log'](_0x2d64a9(0x125)),console[_0x2d64a9(0x117)](''),console['log'](_0x2d64a9(0x11a)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2d64a9(0x133)](_0x2d64a9(0x114),_0x2d64a9(0x116)+_0xf62be5),process[_0x2d64a9(0x11b)](0x1);}function showHelp(){const _0x2da58b=a106_0x2dff;console['log'](_0x2da58b(0x12a)+SKILLS_INSTALL_COMMAND_LINE+_0x2da58b(0x134));}
@@ -1 +1 @@
1
- const a115_0x251021=a115_0x31ca;(function(_0x4f4c50,_0x3a9b72){const _0x3f38e2=a115_0x31ca,_0x499a22=_0x4f4c50();while(!![]){try{const _0x214839=parseInt(_0x3f38e2(0x196))/0x1*(-parseInt(_0x3f38e2(0x1a0))/0x2)+parseInt(_0x3f38e2(0x1ae))/0x3*(parseInt(_0x3f38e2(0x1b1))/0x4)+parseInt(_0x3f38e2(0x193))/0x5*(-parseInt(_0x3f38e2(0x1af))/0x6)+parseInt(_0x3f38e2(0x1a1))/0x7+-parseInt(_0x3f38e2(0x19d))/0x8*(parseInt(_0x3f38e2(0x198))/0x9)+parseInt(_0x3f38e2(0x194))/0xa*(-parseInt(_0x3f38e2(0x19f))/0xb)+-parseInt(_0x3f38e2(0x1a6))/0xc*(-parseInt(_0x3f38e2(0x19c))/0xd);if(_0x214839===_0x3a9b72)break;else _0x499a22['push'](_0x499a22['shift']());}catch(_0xb175e3){_0x499a22['push'](_0x499a22['shift']());}}}(a115_0x1cc7,0x508cf));import{spawnSync}from'node:child_process';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a115_0x251021(0x1ab);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';function a115_0x1cc7(){const _0x9f36a0=['1703uvaChw','72NjpMMf','stdio','1387111XVTDLC','28774GJEuBw','3552199bUQcay','Lovrabet','env','stderr','pipe','96312uOumdm','win32','npx.cmd','join','trim','skills','status','exit\x20','3AQEOCP','2405814iPcnmO','platform','160568asrnYn','inherit','log','stdout','5RZwVns','30ZEHvzo','toString','9ufksgr','skill','360315hgqeev','npx','unknown','RABETBASE_SKIP_NPX_SKILLS'];a115_0x1cc7=function(){return _0x9f36a0;};return a115_0x1cc7();}export const RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';function a115_0x31ca(_0xff5081,_0x5b6ce8){_0xff5081=_0xff5081-0x193;const _0x1cc7c1=a115_0x1cc7();let _0x31ca35=_0x1cc7c1[_0xff5081];return _0x31ca35;}export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x251021(0x1a2);export function buildNpxSkillsAddArgv(_0x301184=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x301184];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x251021(0x199),...buildNpxSkillsAddArgv()][a115_0x251021(0x1a9)]('\x20');export function shouldSkipNpxSkillsAdd(){const _0x58359f=a115_0x251021;return process[_0x58359f(0x1a3)][_0x58359f(0x19b)]==='1';}export function runNpxSkillsAdd(_0x53d0eb,_0x405912){const _0x12236c=a115_0x251021;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x157aec=_0x405912?.[_0x12236c(0x19e)]??_0x12236c(0x1b2),_0x267679=process[_0x12236c(0x1b0)]===_0x12236c(0x1a7)?_0x12236c(0x1a8):_0x12236c(0x199),_0x29027c=buildNpxSkillsAddArgv(_0x405912?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x37d72b=[_0x267679,..._0x29027c][_0x12236c(0x1a9)]('\x20');console[_0x12236c(0x1b3)]('*\x20'+_0x37d72b);const _0x151f86=spawnSync(_0x267679,_0x29027c,{'cwd':_0x53d0eb,'stdio':_0x157aec,'env':process['env'],'shell':![]}),_0x247c07=_0x151f86[_0x12236c(0x1ac)];if(_0x247c07===0x0)return{'ok':!![],'status':0x0};let _0x775c5c=_0x12236c(0x1ad)+(_0x247c07??_0x12236c(0x19a));if(_0x157aec===_0x12236c(0x1a5)){const _0x168430=_0x151f86[_0x12236c(0x1a4)]?_0x151f86['stderr'][_0x12236c(0x195)]()[_0x12236c(0x1aa)]():'',_0x5693f1=_0x151f86[_0x12236c(0x1b4)]?_0x151f86[_0x12236c(0x1b4)][_0x12236c(0x195)]()[_0x12236c(0x1aa)]():'';if(_0x168430)_0x775c5c=_0x168430;else{if(_0x5693f1)_0x775c5c=_0x5693f1;}}return{'ok':![],'status':_0x247c07??null,'error':_0x775c5c};}export function runNpxSkillsRemove(_0x430343,_0x59ace7){const _0x201f64=a115_0x251021,_0x5cfccd=_0x59ace7?.['stdio']??'inherit',_0x5cb040=process[_0x201f64(0x1b0)]===_0x201f64(0x1a7)?'npx.cmd':_0x201f64(0x199),_0x5dc71e=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x59ace7?.[_0x201f64(0x197)]??DEFAULT_RABETBASE_SKILL_NAME],_0x48ea95=[_0x5cb040,..._0x5dc71e][_0x201f64(0x1a9)]('\x20');console['log']('*\x20'+_0x48ea95);const _0x50bab1=spawnSync(_0x5cb040,_0x5dc71e,{'cwd':_0x430343,'stdio':_0x5cfccd,'env':process[_0x201f64(0x1a3)],'shell':![]}),_0x42ec8d=_0x50bab1['status'];if(_0x42ec8d===0x0)return{'ok':!![],'status':0x0};let _0x31ad56=_0x201f64(0x1ad)+(_0x42ec8d??_0x201f64(0x19a));if(_0x5cfccd===_0x201f64(0x1a5)){const _0x40da64=_0x50bab1[_0x201f64(0x1a4)]?_0x50bab1[_0x201f64(0x1a4)]['toString']()[_0x201f64(0x1aa)]():'',_0x46e130=_0x50bab1['stdout']?_0x50bab1[_0x201f64(0x1b4)][_0x201f64(0x195)]()[_0x201f64(0x1aa)]():'';if(_0x40da64)_0x31ad56=_0x40da64;else{if(_0x46e130)_0x31ad56=_0x46e130;}}return{'ok':![],'status':_0x42ec8d??null,'error':_0x31ad56};}export function runNpxSkillsAddGlobal(_0x439d83,_0x54c5c0,_0x2ea6d6){const _0x2e244d=a115_0x251021,_0x95438b=_0x2ea6d6?.[_0x2e244d(0x19e)]??_0x2e244d(0x1b2),_0x350664=process['platform']===_0x2e244d(0x1a7)?'npx.cmd':'npx',_0x384cf3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x54c5c0,'--global'],_0x4418f0=[_0x350664,..._0x384cf3]['join']('\x20');console[_0x2e244d(0x1b3)]('*\x20'+_0x4418f0);const _0x3bfa32=spawnSync(_0x350664,_0x384cf3,{'cwd':_0x439d83,'stdio':_0x95438b,'env':process[_0x2e244d(0x1a3)],'shell':![]}),_0x3fee0e=_0x3bfa32[_0x2e244d(0x1ac)];if(_0x3fee0e===0x0)return{'ok':!![],'status':0x0};let _0x1bfcd0=_0x2e244d(0x1ad)+(_0x3fee0e??'unknown');if(_0x95438b===_0x2e244d(0x1a5)){const _0x48f742=_0x3bfa32[_0x2e244d(0x1a4)]?_0x3bfa32[_0x2e244d(0x1a4)]['toString']()[_0x2e244d(0x1aa)]():'',_0x49b991=_0x3bfa32[_0x2e244d(0x1b4)]?_0x3bfa32[_0x2e244d(0x1b4)][_0x2e244d(0x195)]()['trim']():'';if(_0x48f742)_0x1bfcd0=_0x48f742;else{if(_0x49b991)_0x1bfcd0=_0x49b991;}}return{'ok':![],'status':_0x3fee0e??null,'error':_0x1bfcd0};}
1
+ const a107_0x40d06d=a107_0x2f5d;(function(_0x24ba7a,_0x5cfd66){const _0x17d5e2=a107_0x2f5d,_0x1a5b65=_0x24ba7a();while(!![]){try{const _0x38f916=parseInt(_0x17d5e2(0xe6))/0x1+-parseInt(_0x17d5e2(0xe2))/0x2*(parseInt(_0x17d5e2(0xdb))/0x3)+parseInt(_0x17d5e2(0xe1))/0x4*(-parseInt(_0x17d5e2(0xd5))/0x5)+parseInt(_0x17d5e2(0xcf))/0x6*(-parseInt(_0x17d5e2(0xdc))/0x7)+-parseInt(_0x17d5e2(0xe7))/0x8+parseInt(_0x17d5e2(0xdf))/0x9+-parseInt(_0x17d5e2(0xec))/0xa*(-parseInt(_0x17d5e2(0xce))/0xb);if(_0x38f916===_0x5cfd66)break;else _0x1a5b65['push'](_0x1a5b65['shift']());}catch(_0x27c320){_0x1a5b65['push'](_0x1a5b65['shift']());}}}(a107_0x574e,0x5fd41));import{spawnSync}from'node:child_process';function a107_0x2f5d(_0x524233,_0x5cd811){_0x524233=_0x524233-0xcd;const _0x574e8=a107_0x574e();let _0x2f5d2d=_0x574e8[_0x524233];return _0x2f5d2d;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a107_0x40d06d(0xcd);export const NPX_SKILLS_SUBCOMMAND_ADD=a107_0x40d06d(0xd0);function a107_0x574e(){const _0x56f747=['toString','575065UecuVw','env','npx','status','pipe','--global','3TbMxEv','7FebXgE','join','--skill','5287221xmlyzV','exit\x20','4EXWTAP','804378HBmlcB','unknown','lovrabet/lovrabet-skill','stdout','336610NUjriE','557968knxVIo','log','trim','RABETBASE_SKIP_NPX_SKILLS','inherit','120jNaOdy','skills','275165UVuVSB','1468788sagSxg','add','stdio','stderr','skill'];a107_0x574e=function(){return _0x56f747;};return a107_0x574e();}export const NPX_SKILLS_FLAG_SKILL=a107_0x40d06d(0xde);export const RABETBASE_SKILL_SOURCE=a107_0x40d06d(0xe4);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x52b3a8=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x52b3a8];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a107_0x40d06d(0xd7),...buildNpxSkillsAddArgv()][a107_0x40d06d(0xdd)]('\x20');export function shouldSkipNpxSkillsAdd(){const _0x2a30cd=a107_0x40d06d;return process[_0x2a30cd(0xd6)][_0x2a30cd(0xea)]==='1';}export function runNpxSkillsAdd(_0x57e37d,_0x5663e4){const _0x542389=a107_0x40d06d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e6a9c=_0x5663e4?.[_0x542389(0xd1)]??'inherit',_0x22b5ad=resolveNpmBin(_0x542389(0xd7)),_0x359bb6=buildNpxSkillsAddArgv(_0x5663e4?.[_0x542389(0xd3)]??DEFAULT_RABETBASE_SKILL_NAME),_0x20781a=[_0x22b5ad,..._0x359bb6][_0x542389(0xdd)]('\x20');console[_0x542389(0xe8)]('*\x20'+_0x20781a);const _0x1cdd84=spawnSync(_0x22b5ad,_0x359bb6,{'cwd':_0x57e37d,'stdio':_0x5e6a9c,'env':process[_0x542389(0xd6)],'shell':![]}),_0x5788d0=_0x1cdd84[_0x542389(0xd8)];if(_0x5788d0===0x0)return{'ok':!![],'status':0x0};let _0x20c0fd='exit\x20'+(_0x5788d0??_0x542389(0xe3));if(_0x5e6a9c===_0x542389(0xd9)){const _0xea114e=_0x1cdd84['stderr']?_0x1cdd84[_0x542389(0xd2)][_0x542389(0xd4)]()[_0x542389(0xe9)]():'',_0x248a5d=_0x1cdd84[_0x542389(0xe5)]?_0x1cdd84[_0x542389(0xe5)][_0x542389(0xd4)]()['trim']():'';if(_0xea114e)_0x20c0fd=_0xea114e;else{if(_0x248a5d)_0x20c0fd=_0x248a5d;}}return{'ok':![],'status':_0x5788d0??null,'error':_0x20c0fd};}export function runNpxSkillsRemove(_0x1aa56d,_0x5afccb){const _0x53b690=a107_0x40d06d,_0x4146b6=_0x5afccb?.[_0x53b690(0xd1)]??_0x53b690(0xeb),_0x1bad99=resolveNpmBin(_0x53b690(0xd7)),_0x593164=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x5afccb?.[_0x53b690(0xd3)]??DEFAULT_RABETBASE_SKILL_NAME],_0x15354a=[_0x1bad99,..._0x593164]['join']('\x20');console[_0x53b690(0xe8)]('*\x20'+_0x15354a);const _0x14ef3c=spawnSync(_0x1bad99,_0x593164,{'cwd':_0x1aa56d,'stdio':_0x4146b6,'env':process['env'],'shell':![]}),_0x37ce91=_0x14ef3c['status'];if(_0x37ce91===0x0)return{'ok':!![],'status':0x0};let _0x321828=_0x53b690(0xe0)+(_0x37ce91??_0x53b690(0xe3));if(_0x4146b6==='pipe'){const _0x486082=_0x14ef3c[_0x53b690(0xd2)]?_0x14ef3c[_0x53b690(0xd2)][_0x53b690(0xd4)]()['trim']():'',_0x5f49ca=_0x14ef3c['stdout']?_0x14ef3c[_0x53b690(0xe5)][_0x53b690(0xd4)]()['trim']():'';if(_0x486082)_0x321828=_0x486082;else{if(_0x5f49ca)_0x321828=_0x5f49ca;}}return{'ok':![],'status':_0x37ce91??null,'error':_0x321828};}export function runNpxSkillsAddGlobal(_0x186ed8,_0x15d281,_0x33f017){const _0xab10a0=a107_0x40d06d,_0x1a263d=_0x33f017?.['stdio']??_0xab10a0(0xeb),_0x559494=resolveNpmBin(_0xab10a0(0xd7)),_0xcc541a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x15d281,_0xab10a0(0xda)],_0x514a14=[_0x559494,..._0xcc541a][_0xab10a0(0xdd)]('\x20');console[_0xab10a0(0xe8)]('*\x20'+_0x514a14);const _0x273b31=spawnSync(_0x559494,_0xcc541a,{'cwd':_0x186ed8,'stdio':_0x1a263d,'env':process[_0xab10a0(0xd6)],'shell':![]}),_0x180768=_0x273b31[_0xab10a0(0xd8)];if(_0x180768===0x0)return{'ok':!![],'status':0x0};let _0x259a29=_0xab10a0(0xe0)+(_0x180768??'unknown');if(_0x1a263d===_0xab10a0(0xd9)){const _0x4bcd77=_0x273b31['stderr']?_0x273b31['stderr'][_0xab10a0(0xd4)]()[_0xab10a0(0xe9)]():'',_0xbd2853=_0x273b31[_0xab10a0(0xe5)]?_0x273b31['stdout'][_0xab10a0(0xd4)]()['trim']():'';if(_0x4bcd77)_0x259a29=_0x4bcd77;else{if(_0xbd2853)_0x259a29=_0xbd2853;}}return{'ok':![],'status':_0x180768??null,'error':_0x259a29};}
@@ -1 +1 @@
1
- (function(_0x1b11d2,_0x462d96){const _0x1f4844=a116_0x5359,_0x4a568d=_0x1b11d2();while(!![]){try{const _0x116cae=parseInt(_0x1f4844(0x6f))/0x1*(-parseInt(_0x1f4844(0x7b))/0x2)+parseInt(_0x1f4844(0x80))/0x3*(parseInt(_0x1f4844(0x75))/0x4)+parseInt(_0x1f4844(0x82))/0x5*(parseInt(_0x1f4844(0x76))/0x6)+parseInt(_0x1f4844(0x7f))/0x7+-parseInt(_0x1f4844(0x70))/0x8+-parseInt(_0x1f4844(0x6e))/0x9+parseInt(_0x1f4844(0x72))/0xa;if(_0x116cae===_0x462d96)break;else _0x4a568d['push'](_0x4a568d['shift']());}catch(_0x12b196){_0x4a568d['push'](_0x4a568d['shift']());}}}(a116_0x3b38,0xe1555));function a116_0x3b38(){const _0x19a1a7=['cli.help','1702610kSUDDC','version','username','env','535255IVYKSU','3GPNrlt','user','41510GAaSXI','manual','16157988ZgjtPH','1DbqDVj','13072800inbKge','@yuntoo/otel-logger/node','17585120tADWhe','rabetbase-cli','RABETBASE_ENV','6634052iFJwkR','1236ANmYmn','service','name','RABETBASE_E2E_DAILY'];a116_0x3b38=function(){return _0x19a1a7;};return a116_0x3b38();}import{createRequire}from'node:module';import a116_0xff72c from'node:os';import{BUILD_NUMBER}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{getOtelLoggerPackageVersion}from'./otel-logger-version.js';const require=createRequire(import.meta.url),pkg=require('../../package.json');function a116_0x5359(_0x1351cd,_0x3530b3){_0x1351cd=_0x1351cd-0x6e;const _0x3b38e2=a116_0x3b38();let _0x5359ab=_0x3b38e2[_0x1351cd];return _0x5359ab;}export async function reportCliHelpTrace(_0x559e17,_0x1c99c1){const _0x33623f=a116_0x5359;try{const {setTraceConfig:_0x54b6bf,sendNodeTraceLog:_0x1e77c7}=await import(_0x33623f(0x71)),_0x1774f7=getOtelLoggerPackageVersion(),_0x5a7428=await getSessionUserInfo(),_0x224e1=_0x5a7428?.[_0x33623f(0x81)];_0x54b6bf({'otelLoggerVersion':_0x1774f7,'serviceName':pkg[_0x33623f(0x78)],'serviceVersion':BUILD_NUMBER?pkg[_0x33623f(0x7c)]+'+build.'+BUILD_NUMBER:pkg[_0x33623f(0x7c)],'serviceEnv':process['env'][_0x33623f(0x74)]??(process[_0x33623f(0x7e)][_0x33623f(0x79)]==='1'?'daily':'production'),'username':_0x224e1?.[_0x33623f(0x7d)]??a116_0xff72c['userInfo']()[_0x33623f(0x7d)]??'rabetbase-cli',..._0x224e1&&{'nickname':_0x224e1['nickname']},..._0x224e1?.['id']!=null&&_0x224e1['id']!==''&&{'userId':String(_0x224e1['id'])}}),_0x1e77c7({'traceName':_0x33623f(0x73),'version':pkg['version'],'spanName':_0x33623f(0x7a),'eventType':_0x33623f(0x83),'logData':{'rabetbase.help.kind':_0x559e17,..._0x1c99c1?.[_0x33623f(0x77)]&&{'rabetbase.help.service':_0x1c99c1['service']}}});}catch{}}
1
+ const a108_0x80115d=a108_0x3d4b;function a108_0x3d4b(_0x317cf1,_0x242562){_0x317cf1=_0x317cf1-0xe9;const _0x5a8c7e=a108_0x5a8c();let _0x3d4bdc=_0x5a8c7e[_0x317cf1];return _0x3d4bdc;}(function(_0x16d545,_0x2f51c6){const _0x55a9e2=a108_0x3d4b,_0x2e0011=_0x16d545();while(!![]){try{const _0xb811=-parseInt(_0x55a9e2(0xea))/0x1*(parseInt(_0x55a9e2(0xf4))/0x2)+-parseInt(_0x55a9e2(0xec))/0x3*(parseInt(_0x55a9e2(0x102))/0x4)+parseInt(_0x55a9e2(0x100))/0x5+parseInt(_0x55a9e2(0xf8))/0x6+-parseInt(_0x55a9e2(0xfd))/0x7*(-parseInt(_0x55a9e2(0x103))/0x8)+parseInt(_0x55a9e2(0xfa))/0x9+-parseInt(_0x55a9e2(0xf2))/0xa*(parseInt(_0x55a9e2(0x101))/0xb);if(_0xb811===_0x2f51c6)break;else _0x2e0011['push'](_0x2e0011['shift']());}catch(_0xacf914){_0x2e0011['push'](_0x2e0011['shift']());}}}(a108_0x5a8c,0x18c54));import{createRequire}from'node:module';import a108_0x158a06 from'node:os';import{BUILD_NUMBER}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,sendTraceLog,getOtelLoggerVersion}from'@lovrabet/otel-logger';const require=createRequire(import.meta.url),pkg=require(a108_0x80115d(0xf9));function a108_0x5a8c(){const _0x17401a=['35042NDLdnY','version','env','519545efxHMk','22LjfOMQ','408124dtxvFc','216iaRDaF','username','471qtaYnJ','Failed\x20to\x20report\x20CLI\x20help\x20trace:','3krHcOT','nickname','cli.help','manual','daily','error','359630ymuHhk','RABETBASE_E2E_DAILY','750bwFRze','+build.','RABETBASE_ENV','rabetbase-cli','1171986ZIVWfr','../../package.json','158760PgCpYG','service','name'];a108_0x5a8c=function(){return _0x17401a;};return a108_0x5a8c();}export async function reportCliHelpTrace(_0x765bc5,_0x2cf580){const _0x52c9e6=a108_0x80115d;try{const _0x47d0ba=getOtelLoggerVersion(),_0x37bff7=await getSessionUserInfo(),_0x2c7dc2=_0x37bff7?.['user'];setTraceConfig({'otelLoggerVersion':_0x47d0ba,'serviceName':pkg[_0x52c9e6(0xfc)],'serviceVersion':BUILD_NUMBER?pkg[_0x52c9e6(0xfe)]+_0x52c9e6(0xf5)+BUILD_NUMBER:pkg[_0x52c9e6(0xfe)],'serviceEnv':process['env'][_0x52c9e6(0xf6)]??(process[_0x52c9e6(0xff)][_0x52c9e6(0xf3)]==='1'?_0x52c9e6(0xf0):'production'),'username':_0x2c7dc2?.[_0x52c9e6(0xe9)]??a108_0x158a06['userInfo']()['username']??_0x52c9e6(0xf7),..._0x2c7dc2&&{'nickname':_0x2c7dc2[_0x52c9e6(0xed)]}}),sendTraceLog({'traceName':'rabetbase-cli','version':pkg[_0x52c9e6(0xfe)],'spanName':_0x52c9e6(0xee),'eventType':_0x52c9e6(0xef),'logData':{'rabetbase.help.kind':_0x765bc5,..._0x2cf580?.[_0x52c9e6(0xfb)]&&{'rabetbase.help.service':_0x2cf580[_0x52c9e6(0xfb)]},..._0x2c7dc2?.['id']!=null&&_0x2c7dc2['id']!==''&&{'userid':String(_0x2c7dc2['id'])}}});}catch(_0x1f3e36){console[_0x52c9e6(0xf1)](_0x52c9e6(0xeb),_0x1f3e36);}}
@@ -1 +1 @@
1
- (function(_0x1fe9e5,_0x59fbaa){const _0x26863f=a118_0x59ce,_0x5544a9=_0x1fe9e5();while(!![]){try{const _0x27b23f=-parseInt(_0x26863f(0x13b))/0x1+-parseInt(_0x26863f(0x13f))/0x2*(parseInt(_0x26863f(0x140))/0x3)+parseInt(_0x26863f(0x13c))/0x4+parseInt(_0x26863f(0x139))/0x5*(-parseInt(_0x26863f(0x136))/0x6)+parseInt(_0x26863f(0x143))/0x7+parseInt(_0x26863f(0x146))/0x8*(parseInt(_0x26863f(0x137))/0x9)+-parseInt(_0x26863f(0x145))/0xa*(-parseInt(_0x26863f(0x138))/0xb);if(_0x27b23f===_0x59fbaa)break;else _0x5544a9['push'](_0x5544a9['shift']());}catch(_0x2fd289){_0x5544a9['push'](_0x5544a9['shift']());}}}(a118_0x15c2,0x94818));function a118_0x59ce(_0x5a9fc6,_0x3b2a35){_0x5a9fc6=_0x5a9fc6-0x135;const _0x15c2d5=a118_0x15c2();let _0x59ce38=_0x15c2d5[_0x5a9fc6];return _0x59ce38;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{const _0x67d6db=a118_0x59ce;try{const {shutdownNodeTraces:_0x405f3e}=await import(_0x67d6db(0x13a));await _0x405f3e();}catch{}})()),shutdownPromise;}function a118_0x15c2(){const _0x2d5e73=['10KbWxZK','@yuntoo/otel-logger/node','115285crHYwJ','1283460YlCjRD','then','SIGINT','18swMses','265512vXjUZE','once','beforeExit','2595117MfXlAZ','exit','2630zfuYwO','72vJymRW','SIGTERM','2071026nuuvSU','259866Kjucbf','52657AEsDnT'];a118_0x15c2=function(){return _0x2d5e73;};return a118_0x15c2();}export function registerOtelShutdownOnExit(){const _0x4dd225=a118_0x59ce;process[_0x4dd225(0x141)](_0x4dd225(0x142),()=>{void flushOtelNodeIfUsed();});const _0x56a8c0=()=>{const _0x43e29e=_0x4dd225;void flushOtelNodeIfUsed()[_0x43e29e(0x13d)](()=>process[_0x43e29e(0x144)](0x0));};process[_0x4dd225(0x141)](_0x4dd225(0x13e),_0x56a8c0),process[_0x4dd225(0x141)](_0x4dd225(0x135),_0x56a8c0);}export async function exitWithOtelShutdown(_0x3c1d85){const _0x39d60a=a118_0x59ce;await flushOtelNodeIfUsed(),process[_0x39d60a(0x144)](_0x3c1d85);}
1
+ function a109_0x54eb(_0x7c1cd7,_0x244c93){_0x7c1cd7=_0x7c1cd7-0xee;const _0x5916f9=a109_0x5916();let _0x54ebc7=_0x5916f9[_0x7c1cd7];return _0x54ebc7;}(function(_0x469332,_0x4f62da){const _0x5e7214=a109_0x54eb,_0x174734=_0x469332();while(!![]){try{const _0x31be4a=parseInt(_0x5e7214(0xfe))/0x1*(-parseInt(_0x5e7214(0xee))/0x2)+-parseInt(_0x5e7214(0xfb))/0x3*(-parseInt(_0x5e7214(0xfd))/0x4)+parseInt(_0x5e7214(0xef))/0x5*(parseInt(_0x5e7214(0xf0))/0x6)+parseInt(_0x5e7214(0xf9))/0x7*(parseInt(_0x5e7214(0xf1))/0x8)+parseInt(_0x5e7214(0xfc))/0x9+parseInt(_0x5e7214(0xf7))/0xa*(parseInt(_0x5e7214(0xf5))/0xb)+-parseInt(_0x5e7214(0xf3))/0xc*(parseInt(_0x5e7214(0xf6))/0xd);if(_0x31be4a===_0x4f62da)break;else _0x174734['push'](_0x174734['shift']());}catch(_0x53f601){_0x174734['push'](_0x174734['shift']());}}}(a109_0x5916,0x9ec69));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a109_0x5916(){const _0xf129e1=['SIGTERM','12YJALat','once','142021pjIkQx','49563787JeZclp','940pvRLzI','exit','28kgHxlY','beforeExit','498xrZYYP','6350238yPOdxM','19944MRNoLC','425492QvGtSj','2xcApot','31180lMjsaR','1146smELcn','1900936lsoPBu'];a109_0x5916=function(){return _0xf129e1;};return a109_0x5916();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4153ae=a109_0x54eb;process['once'](_0x4153ae(0xfa),()=>{void flushOtelNodeIfUsed();});const _0x4dc12a=()=>{const _0x1de41f=_0x4153ae;void flushOtelNodeIfUsed()['then'](()=>process[_0x1de41f(0xf8)](0x0));};process[_0x4153ae(0xf4)]('SIGINT',_0x4dc12a),process['once'](_0x4153ae(0xf2),_0x4dc12a);}export async function exitWithOtelShutdown(_0x10d2c9){await flushOtelNodeIfUsed(),process['exit'](_0x10d2c9);}
@@ -1 +1 @@
1
- const a122_0x3671a3=a122_0x33d4;(function(_0x4aef99,_0xb7b4d2){const _0x5384ee=a122_0x33d4,_0xfa9869=_0x4aef99();while(!![]){try{const _0x1b8136=parseInt(_0x5384ee(0xfd))/0x1*(parseInt(_0x5384ee(0x117))/0x2)+-parseInt(_0x5384ee(0x119))/0x3*(parseInt(_0x5384ee(0xea))/0x4)+parseInt(_0x5384ee(0x101))/0x5+parseInt(_0x5384ee(0x108))/0x6+-parseInt(_0x5384ee(0xec))/0x7+-parseInt(_0x5384ee(0x10c))/0x8+parseInt(_0x5384ee(0x10f))/0x9*(parseInt(_0x5384ee(0x10b))/0xa);if(_0x1b8136===_0xb7b4d2)break;else _0xfa9869['push'](_0xfa9869['shift']());}catch(_0x431aa5){_0xfa9869['push'](_0xfa9869['shift']());}}}(a122_0x1c06,0xb65d8));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x3671a3(0x111),'description':a122_0x3671a3(0x11a),'folders':[a122_0x3671a3(0x11d),a122_0x3671a3(0x110)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a122_0x3671a3(0x10e)}]},'windsurf':{'name':a122_0x3671a3(0xef),'description':a122_0x3671a3(0xeb),'folders':[a122_0x3671a3(0xff)],'files':[{'type':a122_0x3671a3(0xf5),'path':a122_0x3671a3(0x107),'template':a122_0x3671a3(0x10e)}]},'claude':{'name':a122_0x3671a3(0x105),'description':a122_0x3671a3(0x105),'folders':[a122_0x3671a3(0xfc)],'files':[{'type':a122_0x3671a3(0xf5),'path':'.claude/skills/lovrabet/SKILL.md','template':a122_0x3671a3(0x10e)}]},'cline':{'name':a122_0x3671a3(0x10d),'description':a122_0x3671a3(0x11b),'folders':['.cline'],'files':[{'type':a122_0x3671a3(0xf5),'path':'.cline/skills/lovrabet/SKILL.md','template':a122_0x3671a3(0x10e)}]},'codex':{'name':a122_0x3671a3(0x103),'description':a122_0x3671a3(0x11c),'folders':['.codex'],'files':[{'type':'file','path':a122_0x3671a3(0x118),'template':a122_0x3671a3(0x10e)}]},'opencode':{'name':a122_0x3671a3(0xf4),'description':a122_0x3671a3(0xfe),'folders':[a122_0x3671a3(0xf9)],'files':[{'type':a122_0x3671a3(0xf5),'path':a122_0x3671a3(0xf0),'template':a122_0x3671a3(0x10e)}]},'qoder':{'name':a122_0x3671a3(0xe9),'description':'Qoder\x20IDE','folders':[a122_0x3671a3(0xf6)],'files':[{'type':a122_0x3671a3(0xf5),'path':'.qoder/rules/rabetbase.md','template':a122_0x3671a3(0x10e)},{'type':a122_0x3671a3(0xf5),'path':'.qoder/skills/lovrabet/SKILL.md','template':a122_0x3671a3(0x10e)}]},'codebuddy':{'name':a122_0x3671a3(0xf1),'description':a122_0x3671a3(0x113),'folders':[a122_0x3671a3(0xe8)],'files':[{'type':a122_0x3671a3(0xf5),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':'Trae','description':a122_0x3671a3(0xee),'folders':[a122_0x3671a3(0xe7)],'files':[{'type':a122_0x3671a3(0xf5),'path':a122_0x3671a3(0x109),'template':a122_0x3671a3(0x10e)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x3671a3(0xfa),'description':'通用模板\x20-\x20兜底方案','folders':[a122_0x3671a3(0x112)],'files':[{'type':a122_0x3671a3(0xf5),'path':a122_0x3671a3(0xf7),'template':a122_0x3671a3(0x10e)}]},'antigravity':{'name':a122_0x3671a3(0xf8),'description':a122_0x3671a3(0x114),'folders':[a122_0x3671a3(0x112)],'files':[{'type':a122_0x3671a3(0xf5),'path':'.agent/skills/lovrabet/SKILL.md','template':a122_0x3671a3(0x10e)}]}};export const CORE_IDE_LIST=[a122_0x3671a3(0x10a),a122_0x3671a3(0xed),a122_0x3671a3(0x100),a122_0x3671a3(0x116),a122_0x3671a3(0xf2),'opencode','qoder',a122_0x3671a3(0x102),a122_0x3671a3(0xf3)];function a122_0x33d4(_0x3c900f,_0x465e64){_0x3c900f=_0x3c900f-0xe7;const _0x1c063f=a122_0x1c06();let _0x33d4b7=_0x1c063f[_0x3c900f];return _0x33d4b7;}function a122_0x1c06(){const _0x1ef37f=['.agent','CodeBuddy\x20IDE','Antigravity\x20IDE','qoder','codex','122700vGWdtT','.codex/skills/lovrabet/SKILL.md','925782opwokR','Cursor\x20IDE','Cline\x20IDE','Codex\x20IDE','.cursorrules','.trae','.codebuddy','Qoder','8XFeyBN','Windsurf\x20IDE','7088788OoPojw','cline','Trae\x20IDE','Windsurf','.opencode/skills/lovrabet/SKILL.md','CodeBuddy','cursor','windsurf','OpenCode','file','.qoder','.agent/skills/lovrabet/SKILL.md','Antigravity','.opencode','其他\x20(通用模板)','antigravity','.claude','7OnZxKd','OpenCode\x20IDE','.windsurf','codebuddy','5730800SGoAlJ','trae','Codex','opencode','Claude\x20Code','agent','.windsurf/workflows/rabetbase.md','2700030IheMXC','.trae/skills/lovrabet/SKILL.md','claude','670kBtGSl','7898944EaUOSC','Cline','SKILL.md.tpl','179811gAstrK','.cursor','Cursor'];a122_0x1c06=function(){return _0x1ef37f;};return a122_0x1c06();}export const IDE_LIST=[a122_0x3671a3(0xfb),a122_0x3671a3(0x10a),a122_0x3671a3(0xed),a122_0x3671a3(0x100),a122_0x3671a3(0x116),a122_0x3671a3(0xf2),a122_0x3671a3(0x104),a122_0x3671a3(0x115),a122_0x3671a3(0x102),a122_0x3671a3(0xf3),a122_0x3671a3(0x106)];export const ALL_CORE_IDES=['cursor',a122_0x3671a3(0xf3),a122_0x3671a3(0x10a),a122_0x3671a3(0xed),a122_0x3671a3(0x116),a122_0x3671a3(0x104),a122_0x3671a3(0x115),a122_0x3671a3(0x100),a122_0x3671a3(0x102)];export const MCP_IDES=new Set([a122_0x3671a3(0xf2),a122_0x3671a3(0x10a)]);
1
+ const a111_0xc08c8e=a111_0x14a3;(function(_0x315bc7,_0x316d97){const _0x59890b=a111_0x14a3,_0x34908a=_0x315bc7();while(!![]){try{const _0x259194=-parseInt(_0x59890b(0x16e))/0x1*(parseInt(_0x59890b(0x18e))/0x2)+-parseInt(_0x59890b(0x19a))/0x3+-parseInt(_0x59890b(0x17a))/0x4*(-parseInt(_0x59890b(0x1a2))/0x5)+parseInt(_0x59890b(0x190))/0x6*(-parseInt(_0x59890b(0x1a3))/0x7)+-parseInt(_0x59890b(0x180))/0x8+-parseInt(_0x59890b(0x19f))/0x9*(-parseInt(_0x59890b(0x1a4))/0xa)+parseInt(_0x59890b(0x191))/0xb*(parseInt(_0x59890b(0x186))/0xc);if(_0x259194===_0x316d97)break;else _0x34908a['push'](_0x34908a['shift']());}catch(_0x4455d4){_0x34908a['push'](_0x34908a['shift']());}}}(a111_0x5f19,0x65cc7));export const CORE_IDE_CONFIGS={'cursor':{'name':a111_0xc08c8e(0x176),'description':a111_0xc08c8e(0x182),'folders':['.cursorrules','.cursor'],'files':[{'type':a111_0xc08c8e(0x17f),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a111_0xc08c8e(0x19b),'description':a111_0xc08c8e(0x197),'folders':[a111_0xc08c8e(0x171)],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x184),'template':a111_0xc08c8e(0x17d)}]},'claude':{'name':a111_0xc08c8e(0x19c),'description':a111_0xc08c8e(0x19c),'folders':[a111_0xc08c8e(0x196)],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x194),'template':a111_0xc08c8e(0x17d)}]},'cline':{'name':a111_0xc08c8e(0x17c),'description':a111_0xc08c8e(0x183),'folders':[a111_0xc08c8e(0x19e)],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x16f),'template':'SKILL.md.tpl'}]},'codex':{'name':a111_0xc08c8e(0x17e),'description':'Codex\x20IDE','folders':[a111_0xc08c8e(0x1a5)],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x177),'template':a111_0xc08c8e(0x17d)}]},'opencode':{'name':'OpenCode','description':a111_0xc08c8e(0x192),'folders':[a111_0xc08c8e(0x18f)],'files':[{'type':a111_0xc08c8e(0x17f),'path':'.opencode/skills/lovrabet/SKILL.md','template':a111_0xc08c8e(0x17d)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a111_0xc08c8e(0x1a1)],'files':[{'type':'file','path':a111_0xc08c8e(0x179),'template':a111_0xc08c8e(0x17d)},{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x175),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a111_0xc08c8e(0x185),'description':a111_0xc08c8e(0x173),'folders':[a111_0xc08c8e(0x187)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a111_0xc08c8e(0x17d)}]},'trae':{'name':a111_0xc08c8e(0x172),'description':a111_0xc08c8e(0x189),'folders':[a111_0xc08c8e(0x170)],'files':[{'type':a111_0xc08c8e(0x17f),'path':'.trae/skills/lovrabet/SKILL.md','template':a111_0xc08c8e(0x17d)}]}};function a111_0x5f19(){const _0xca69d1=['.codebuddy','Antigravity\x20IDE','Trae\x20IDE','windsurf','qoder','cline','codex','60uHzdVl','.opencode','6WcKrrh','121KdMBDO','OpenCode\x20IDE','antigravity','.claude/skills/lovrabet/SKILL.md','其他\x20(通用模板)','.claude','Windsurf\x20IDE','claude','opencode','1817481JjGKPr','Windsurf','Claude\x20Code','trae','.cline','45dyETdu','codebuddy','.qoder','5rSIOBW','5452195YCrzlT','717110FMDJNo','.codex','5118NESIbT','.cline/skills/lovrabet/SKILL.md','.trae','.windsurf','Trae','CodeBuddy\x20IDE','.agent','.qoder/skills/lovrabet/SKILL.md','Cursor','.codex/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','2156416YiiQbS','通用模板\x20-\x20兜底方案','Cline','SKILL.md.tpl','Codex','file','3754184UDVAwW','cursor','Cursor\x20IDE','Cline\x20IDE','.windsurf/workflows/rabetbase.md','CodeBuddy','1665636XGbFia'];a111_0x5f19=function(){return _0xca69d1;};return a111_0x5f19();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a111_0xc08c8e(0x195),'description':a111_0xc08c8e(0x17b),'folders':[a111_0xc08c8e(0x174)],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x178),'template':a111_0xc08c8e(0x17d)}]},'antigravity':{'name':'Antigravity','description':a111_0xc08c8e(0x188),'folders':['.agent'],'files':[{'type':a111_0xc08c8e(0x17f),'path':a111_0xc08c8e(0x178),'template':a111_0xc08c8e(0x17d)}]}};function a111_0x14a3(_0x3d02fd,_0x2f4fa8){_0x3d02fd=_0x3d02fd-0x16e;const _0x5f19a5=a111_0x5f19();let _0x14a38d=_0x5f19a5[_0x3d02fd];return _0x14a38d;}export const CORE_IDE_LIST=[a111_0xc08c8e(0x198),a111_0xc08c8e(0x18c),a111_0xc08c8e(0x1a0),'codex',a111_0xc08c8e(0x181),a111_0xc08c8e(0x199),a111_0xc08c8e(0x18b),a111_0xc08c8e(0x19d),a111_0xc08c8e(0x18a)];export const IDE_LIST=[a111_0xc08c8e(0x193),a111_0xc08c8e(0x198),a111_0xc08c8e(0x18c),a111_0xc08c8e(0x1a0),'codex',a111_0xc08c8e(0x181),a111_0xc08c8e(0x199),a111_0xc08c8e(0x18b),a111_0xc08c8e(0x19d),a111_0xc08c8e(0x18a),'agent'];export const ALL_CORE_IDES=[a111_0xc08c8e(0x181),a111_0xc08c8e(0x18a),a111_0xc08c8e(0x198),'cline',a111_0xc08c8e(0x18d),'opencode',a111_0xc08c8e(0x18b),a111_0xc08c8e(0x1a0),a111_0xc08c8e(0x19d)];
@@ -1 +1 @@
1
- (function(_0x2b7748,_0x1f9512){const _0x542b3f=a123_0x5dcf,_0x464773=_0x2b7748();while(!![]){try{const _0x53aa1c=-parseInt(_0x542b3f(0xec))/0x1+parseInt(_0x542b3f(0xeb))/0x2*(parseInt(_0x542b3f(0xea))/0x3)+-parseInt(_0x542b3f(0xf0))/0x4+-parseInt(_0x542b3f(0xee))/0x5+parseInt(_0x542b3f(0xf4))/0x6*(parseInt(_0x542b3f(0xe9))/0x7)+-parseInt(_0x542b3f(0xf3))/0x8+parseInt(_0x542b3f(0xf2))/0x9*(parseInt(_0x542b3f(0xf1))/0xa);if(_0x53aa1c===_0x1f9512)break;else _0x464773['push'](_0x464773['shift']());}catch(_0x213b5b){_0x464773['push'](_0x464773['shift']());}}}(a123_0x5e89,0x1c9c9));import{getTemplateBaseUrl}from'./config.js';function a123_0x5e89(){const _0x2dde1c=['347100usjAZa','sdk','637536OZXJdz','1940iaNjKy','27549akoMQM','1280168GNkVBZ','24JWYgEK','now','json','/config.json','node','117341hxfNgp','3eTWmWA','71322svzXbt','190529iIVRvZ','stableVersion'];a123_0x5e89=function(){return _0x2dde1c;};return a123_0x5e89();}export async function fetchCdnConfig(){const _0x1f68a4=a123_0x5dcf;try{const _0x129b80=getTemplateBaseUrl(),_0x301a8b=_0x129b80+_0x1f68a4(0xe7),_0x44c676=await fetch(_0x301a8b,{'headers':{'Accept':'application/json'}});if(!_0x44c676['ok'])return null;const _0x537088=await _0x44c676[_0x1f68a4(0xe6)]();if(!_0x537088['cli']?.['stableVersion']||!_0x537088[_0x1f68a4(0xef)]?.[_0x1f68a4(0xe8)]?.[_0x1f68a4(0xed)])return null;return _0x537088;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a123_0x5dcf(_0x3d6aa9,_0x5ee53f){_0x3d6aa9=_0x3d6aa9-0xe5;const _0x5e8946=a123_0x5e89();let _0x5dcf58=_0x5e8946[_0x3d6aa9];return _0x5dcf58;}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x30fa49=a123_0x5dcf,_0x3c3a37=Date[_0x30fa49(0xe5)]();if(cachedConfig&&_0x3c3a37-cacheTime<CACHE_TTL)return cachedConfig;const _0x23f50c=await fetchCdnConfig();return _0x23f50c&&(cachedConfig=_0x23f50c,cacheTime=_0x3c3a37),_0x23f50c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x5f1d7b,_0x281b18){const _0x37f4c6=a112_0x52c8,_0x12b11c=_0x5f1d7b();while(!![]){try{const _0x40e5d1=-parseInt(_0x37f4c6(0xa0))/0x1+parseInt(_0x37f4c6(0x9c))/0x2*(parseInt(_0x37f4c6(0xa6))/0x3)+-parseInt(_0x37f4c6(0x9f))/0x4*(parseInt(_0x37f4c6(0xa4))/0x5)+parseInt(_0x37f4c6(0x9e))/0x6*(parseInt(_0x37f4c6(0xa8))/0x7)+parseInt(_0x37f4c6(0x9a))/0x8*(parseInt(_0x37f4c6(0xa7))/0x9)+-parseInt(_0x37f4c6(0xa5))/0xa*(parseInt(_0x37f4c6(0x99))/0xb)+-parseInt(_0x37f4c6(0xa3))/0xc;if(_0x40e5d1===_0x281b18)break;else _0x12b11c['push'](_0x12b11c['shift']());}catch(_0x2cca4c){_0x12b11c['push'](_0x12b11c['shift']());}}}(a112_0x172c,0xafce4));import{getTemplateBaseUrl}from'./config.js';function a112_0x52c8(_0x412cb9,_0x3f76c0){_0x412cb9=_0x412cb9-0x98;const _0x172cf=a112_0x172c();let _0x52c8cb=_0x172cf[_0x412cb9];return _0x52c8cb;}export async function fetchCdnConfig(){const _0x143188=a112_0x52c8;try{const _0x15b14e=getTemplateBaseUrl(),_0x2780a4=_0x15b14e+'/config.json',_0x23d152=await fetch(_0x2780a4,{'headers':{'Accept':'application/json'}});if(!_0x23d152['ok'])return null;const _0x9620f7=await _0x23d152[_0x143188(0xa1)]();if(!_0x9620f7['cli']?.['stableVersion']||!_0x9620f7[_0x143188(0x9d)]?.[_0x143188(0x9b)]?.[_0x143188(0x98)])return null;return _0x9620f7;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x2c2880=a112_0x52c8,_0x210407=Date[_0x2c2880(0xa2)]();if(cachedConfig&&_0x210407-cacheTime<CACHE_TTL)return cachedConfig;const _0x5e6cd5=await fetchCdnConfig();return _0x5e6cd5&&(cachedConfig=_0x5e6cd5,cacheTime=_0x210407),_0x5e6cd5;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a112_0x172c(){const _0x2e0c8e=['node','12FRxTku','sdk','2620218InkmfF','4GrqYni','848939PtMlHD','json','now','536256nRIUTN','456835wbyICk','5524090pKQlBW','557310hkiizs','9ZwmLiG','21IPgndZ','stableVersion','22hqbznC','3081464CAdLWM'];a112_0x172c=function(){return _0x2e0c8e;};return a112_0x172c();}