@lovrabet/rabetbase-cli 2.0.2-beta.8 → 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
@@ -1 +1 @@
1
- function a99_0x195c(_0x3e0506,_0x5ce494){_0x3e0506=_0x3e0506-0x109;const _0x562e07=a99_0x562e();let _0x195c10=_0x562e07[_0x3e0506];return _0x195c10;}const a99_0x48000d=a99_0x195c;(function(_0x1c8f11,_0x43cdb5){const _0x486a9f=a99_0x195c,_0x4d20cd=_0x1c8f11();while(!![]){try{const _0x46b3c3=parseInt(_0x486a9f(0x144))/0x1+-parseInt(_0x486a9f(0x136))/0x2*(parseInt(_0x486a9f(0x14d))/0x3)+parseInt(_0x486a9f(0x13c))/0x4*(-parseInt(_0x486a9f(0x114))/0x5)+-parseInt(_0x486a9f(0x143))/0x6*(parseInt(_0x486a9f(0x134))/0x7)+-parseInt(_0x486a9f(0x118))/0x8*(-parseInt(_0x486a9f(0x11b))/0x9)+parseInt(_0x486a9f(0x13b))/0xa*(parseInt(_0x486a9f(0x150))/0xb)+parseInt(_0x486a9f(0x124))/0xc*(parseInt(_0x486a9f(0x147))/0xd);if(_0x46b3c3===_0x43cdb5)break;else _0x4d20cd['push'](_0x4d20cd['shift']());}catch(_0x4767c2){_0x4d20cd['push'](_0x4d20cd['shift']());}}}(a99_0x562e,0x30562));import{serviceRegistry,getServiceEntry}from'../commands/registry.js';function a99_0x562e(){const _0x4353fc=['\x20\x20\x20\x20$\x20','string','9kcowmK','\x20\x20\x20\x20--yes\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20confirmation\x20for\x20high-risk\x20writes','\x20[flags]','join','\x20\x20Run\x20`','flags','\x20\x20\x20\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version','length','number','1697940BdjUPT','\x20\x20Rabetbase\x20CLI','description','\x20<command>\x20--help`\x20for\x20flag\x20details.','\x20\x20\x20\x20--format\x20<fmt>\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20format:\x20json\x20|\x20pretty\x20|\x20table','max','requiresAuth','\x20\x20\x20\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Preview\x20operation\x20without\x20executing','boolean','\x20\x20\x20\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20Override\x20appcode','type','\x20\x20Unknown\x20service:\x20','\x20\x20[high-risk-write]','push','padEnd','name','7otCGdh','service','32960fKfqBi','command','label','\x20[global-options]\x20<service>\x20<command>\x20[flags]','pretty','2225210auWMfI','111652PVzDKG','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','Preview\x20the\x20operation\x20without\x20executing','Requires\x20appcode\x20(set\x20via\x20`','Output\x20format','hasFormat','\x20\x20\x20\x20','2228718sZQcWc','124747BdmTvb','\x20\x20\x20\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20help','\x20\x20\x20\x20--non-interactive\x20\x20\x20\x20\x20\x20Force\x20non-interactive\x20mode\x20(CI)','13ZYTGnZ','commands','Requires\x20authentication\x20(run\x20`','table','\x20project\x20init`\x20or\x20--appcode).','\x20auth`\x20first).','12doEQBp','format','\x20\x20COMMANDS','11dghCUQ','required','\x20\x20\x20\x20--env\x20<env>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Environment:\x20production\x20|\x20daily','\x20\x20[write]','json','\x20\x20FLAGS','default','\x20<value>','requiresAppCode','enum','dryRun','tag','\x20\x20PREREQUISITES','map','5udlIlI','\x20|\x20','\x20\x20USAGE','risk','1396072XzAvQD'];a99_0x562e=function(){return _0x4353fc;};return a99_0x562e();}import{CLI_BIN_NAME}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a99_0x48000d(0x109),'high-risk-write':a99_0x48000d(0x130)};export function generateCommandHelp(_0x6d3ff8){const _0x507d74=a99_0x48000d,_0x4652a2=[],_0x403021=CLI_BIN_NAME+'\x20'+_0x6d3ff8[_0x507d74(0x135)]+'\x20'+_0x6d3ff8[_0x507d74(0x137)];_0x4652a2['push'](''),_0x4652a2['push']('\x20\x20'+_0x6d3ff8[_0x507d74(0x126)]),_0x4652a2['push'](''),_0x4652a2[_0x507d74(0x131)](_0x507d74(0x116)),_0x4652a2['push']('\x20\x20\x20\x20'+_0x403021+_0x507d74(0x11d)),_0x4652a2['push'](''),_0x4652a2[_0x507d74(0x131)]('\x20\x20RISK:\x20'+_0x6d3ff8['risk']);_0x6d3ff8[_0x507d74(0x117)]==='high-risk-write'&&_0x4652a2[_0x507d74(0x131)](_0x507d74(0x13d));_0x4652a2[_0x507d74(0x131)]('');if(_0x6d3ff8[_0x507d74(0x120)][_0x507d74(0x122)]>0x0||_0x6d3ff8[_0x507d74(0x110)]||_0x6d3ff8[_0x507d74(0x141)]!==![]){_0x4652a2[_0x507d74(0x131)](_0x507d74(0x10b));const _0x33ff43=buildAllFlags(_0x6d3ff8),_0x3e73c2=Math['max'](..._0x33ff43[_0x507d74(0x113)](_0x42a26e=>formatFlagName(_0x42a26e)[_0x507d74(0x122)]));for(const _0x2e219a of _0x33ff43){const _0xec2e4c=formatFlagName(_0x2e219a)[_0x507d74(0x132)](_0x3e73c2+0x2);let _0x196cfa=_0x2e219a[_0x507d74(0x126)];_0x2e219a[_0x507d74(0x10f)]&&_0x2e219a[_0x507d74(0x10f)]['length']>0x0&&(_0x196cfa+='\x20('+_0x2e219a[_0x507d74(0x10f)][_0x507d74(0x11e)](_0x507d74(0x115))+')'),_0x2e219a['default']!==undefined&&_0x2e219a[_0x507d74(0x10c)]!==''&&(_0x196cfa+='\x20[default:\x20'+_0x2e219a[_0x507d74(0x10c)]+']'),_0x2e219a[_0x507d74(0x151)]&&(_0x196cfa+='\x20(required)'),_0x4652a2[_0x507d74(0x131)](_0x507d74(0x142)+_0xec2e4c+_0x196cfa);}_0x4652a2['push']('');}const _0x1a756b=[];_0x6d3ff8[_0x507d74(0x12a)]!==![]&&_0x1a756b[_0x507d74(0x131)](_0x507d74(0x149)+CLI_BIN_NAME+_0x507d74(0x14c));_0x6d3ff8[_0x507d74(0x10e)]!==![]&&_0x1a756b[_0x507d74(0x131)](_0x507d74(0x13f)+CLI_BIN_NAME+_0x507d74(0x14b));if(_0x1a756b['length']>0x0){_0x4652a2[_0x507d74(0x131)](_0x507d74(0x112));for(const _0x1c1bcd of _0x1a756b){_0x4652a2['push']('\x20\x20\x20\x20•\x20'+_0x1c1bcd);}_0x4652a2[_0x507d74(0x131)]('');}return _0x4652a2[_0x507d74(0x11e)]('\x0a');}export function generateServiceHelp(_0x3693e3){const _0x4630f9=a99_0x48000d,_0x98dbc4=getServiceEntry(_0x3693e3);if(!_0x98dbc4)return _0x4630f9(0x12f)+_0x3693e3+'\x0a';const _0x815038=[];_0x815038['push'](''),_0x815038[_0x4630f9(0x131)]('\x20\x20'+_0x98dbc4[_0x4630f9(0x138)]),_0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)]('\x20\x20USAGE'),_0x815038['push']('\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20'+_0x3693e3+'\x20<command>\x20[flags]'),_0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)](_0x4630f9(0x14f));const _0x9eb87=Math['max'](..._0x98dbc4['commands']['map'](_0x5320c1=>_0x5320c1[_0x4630f9(0x137)][_0x4630f9(0x122)]));for(const _0x762bf6 of _0x98dbc4[_0x4630f9(0x148)]){const _0x1af845=_0x762bf6[_0x4630f9(0x111)]??'';_0x815038[_0x4630f9(0x131)](_0x4630f9(0x142)+_0x762bf6[_0x4630f9(0x137)][_0x4630f9(0x132)](_0x9eb87+0x2)+_0x762bf6[_0x4630f9(0x126)]+_0x1af845);}return _0x815038[_0x4630f9(0x131)](''),_0x815038[_0x4630f9(0x131)](_0x4630f9(0x11f)+CLI_BIN_NAME+'\x20'+_0x3693e3+_0x4630f9(0x127)),_0x815038[_0x4630f9(0x131)](''),_0x815038['join']('\x0a');}export function generateFullHelp(){const _0x542ef3=a99_0x48000d,_0x272b2c=[];_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x125)),_0x272b2c['push'](''),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x116)),_0x272b2c['push'](_0x542ef3(0x119)+CLI_BIN_NAME+_0x542ef3(0x139)),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x131)]('\x20\x20GLOBAL\x20OPTIONS'),_0x272b2c['push'](_0x542ef3(0x12d)),_0x272b2c['push'](_0x542ef3(0x152)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x128)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x12b)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x11c)),_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x146)),_0x272b2c['push'](_0x542ef3(0x145)),_0x272b2c['push'](_0x542ef3(0x121)),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c['push']('\x20\x20COMMANDS'),_0x272b2c[_0x542ef3(0x131)]('');for(const _0x772706 of serviceRegistry){_0x272b2c[_0x542ef3(0x131)]('\x20\x20'+_0x772706[_0x542ef3(0x138)]);const _0x3ef22d=_0x772706[_0x542ef3(0x148)][_0x542ef3(0x113)](_0x3e5091=>_0x772706['service']+'\x20'+_0x3e5091[_0x542ef3(0x137)]),_0x573bc3=Math[_0x542ef3(0x129)](..._0x3ef22d[_0x542ef3(0x113)](_0x3ed321=>_0x3ed321[_0x542ef3(0x122)]));for(let _0x32553a=0x0;_0x32553a<_0x772706[_0x542ef3(0x148)][_0x542ef3(0x122)];_0x32553a++){const _0x3d41bc=_0x772706[_0x542ef3(0x148)][_0x32553a],_0x29a958=_0x3d41bc['tag']??'';_0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x142)+_0x3ef22d[_0x32553a][_0x542ef3(0x132)](_0x573bc3+0x2)+_0x3d41bc[_0x542ef3(0x126)]+_0x29a958);}_0x272b2c['push']('');}return _0x272b2c[_0x542ef3(0x131)](_0x542ef3(0x11f)+CLI_BIN_NAME+'\x20<service>\x20<command>\x20--help`\x20for\x20command-level\x20flags.'),_0x272b2c[_0x542ef3(0x131)](''),_0x272b2c[_0x542ef3(0x11e)]('\x0a');}function buildAllFlags(_0x1fa3f2){const _0x34f7c8=a99_0x48000d,_0x4af937=[..._0x1fa3f2[_0x34f7c8(0x120)]];return _0x1fa3f2[_0x34f7c8(0x110)]&&_0x4af937['push']({'name':'dry-run','type':_0x34f7c8(0x12c),'description':_0x34f7c8(0x13e)}),_0x1fa3f2[_0x34f7c8(0x141)]!==![]&&_0x4af937[_0x34f7c8(0x131)]({'name':_0x34f7c8(0x14e),'type':_0x34f7c8(0x11a),'default':'pretty','enum':[_0x34f7c8(0x10a),_0x34f7c8(0x13a),_0x34f7c8(0x14a)],'description':_0x34f7c8(0x140)}),_0x1fa3f2[_0x34f7c8(0x117)]==='high-risk-write'&&_0x4af937[_0x34f7c8(0x131)]({'name':'yes','type':_0x34f7c8(0x12c),'description':'Skip\x20confirmation\x20prompt'}),_0x4af937;}function formatFlagName(_0x4c1243){const _0xd9896d=a99_0x48000d,_0x2ffc11=_0x4c1243['type']==='boolean'?'':_0x4c1243[_0xd9896d(0x12e)]===_0xd9896d(0x123)?'\x20<n>':_0xd9896d(0x10d);return'--'+_0x4c1243[_0xd9896d(0x133)]+_0x2ffc11;}
1
+ 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(_0x6d67ef,_0x2774cd){var _0x55578b=a100_0x39cf,_0x137934=_0x6d67ef();while(!![]){try{var _0x339e0e=parseInt(_0x55578b(0x6d))/0x1+-parseInt(_0x55578b(0x68))/0x2+-parseInt(_0x55578b(0x6b))/0x3*(parseInt(_0x55578b(0x6e))/0x4)+-parseInt(_0x55578b(0x6a))/0x5+-parseInt(_0x55578b(0x67))/0x6*(-parseInt(_0x55578b(0x69))/0x7)+-parseInt(_0x55578b(0x66))/0x8+parseInt(_0x55578b(0x6c))/0x9*(parseInt(_0x55578b(0x6f))/0xa);if(_0x339e0e===_0x2774cd)break;else _0x137934['push'](_0x137934['shift']());}catch(_0x49509b){_0x137934['push'](_0x137934['shift']());}}}(a100_0x2990,0x96c98));export{runCommand}from'./runner.js';export{parseFlags,validateFlags}from'./flags.js';export{formatOutput}from'./output.js';function a100_0x2990(){var _0x2780aa=['1634752bnEyYN','623oJMzPb','411030EuWazy','3483615kXaFuv','9Iyrqjb','117409USDMBb','4vlFhpp','28213480hSpKjJ','9568024jewQFq','63078itijnF'];a100_0x2990=function(){return _0x2780aa;};return a100_0x2990();}function a100_0x39cf(_0x1b5dff,_0x419d68){_0x1b5dff=_0x1b5dff-0x66;var _0x299032=a100_0x2990();var _0x39cff7=_0x299032[_0x1b5dff];return _0x39cff7;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./help.js';export{extractList,extractPaging}from'./response.js';
1
+ (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(_0x286b0c,_0x1695a5){const _0x362341=a101_0x5262,_0x1000ea=_0x286b0c();while(!![]){try{const _0x1b5a97=-parseInt(_0x362341(0x1c0))/0x1+parseInt(_0x362341(0x1c1))/0x2*(-parseInt(_0x362341(0x1bd))/0x3)+-parseInt(_0x362341(0x1c3))/0x4+parseInt(_0x362341(0x1d2))/0x5+-parseInt(_0x362341(0x1dd))/0x6*(parseInt(_0x362341(0x1bf))/0x7)+parseInt(_0x362341(0x1df))/0x8*(-parseInt(_0x362341(0x1ca))/0x9)+-parseInt(_0x362341(0x1c2))/0xa*(-parseInt(_0x362341(0x1d3))/0xb);if(_0x1b5a97===_0x1695a5)break;else _0x1000ea['push'](_0x1000ea['shift']());}catch(_0xe4b84e){_0x1000ea['push'](_0x1000ea['shift']());}}}(a101_0x7ed9,0x38a51));export function formatOutput(_0xc21cdb,_0x5a8b4c){const _0x1f282d=a101_0x5262,{format:_0x1a3d93}=_0x5a8b4c;switch(_0x1a3d93){case _0x1f282d(0x1d9):printJson(_0xc21cdb,_0x5a8b4c);break;case _0x1f282d(0x1da):printTable(_0xc21cdb,_0x5a8b4c);break;case _0x1f282d(0x1d5):default:printPretty(_0xc21cdb,_0x5a8b4c);break;}}function printJson(_0x554977,_0x2748d2){const _0x44be7d=a101_0x5262,_0x4a4a7a={'ok':_0x554977['ok'],'command':_0x2748d2[_0x44be7d(0x1d6)],'risk':_0x2748d2[_0x44be7d(0x1cd)]};if(_0x2748d2[_0x44be7d(0x1c7)])_0x4a4a7a[_0x44be7d(0x1c7)]=!![];if(_0x554977[_0x44be7d(0x1d7)]!==undefined)_0x4a4a7a[_0x44be7d(0x1d7)]=_0x554977[_0x44be7d(0x1d7)];!_0x554977['ok']&&_0x554977[_0x44be7d(0x1bb)]&&(_0x4a4a7a['error']={'code':_0x44be7d(0x1e1),'message':_0x554977[_0x44be7d(0x1bb)]}),process[_0x44be7d(0x1bc)][_0x44be7d(0x1d8)](JSON[_0x44be7d(0x1be)](_0x4a4a7a,null,0x2)+'\x0a');}function a101_0x7ed9(){const _0x59adb9=['command','data','write','json','table','log','Found\x20','12SZBicp','object','24CwNUsT','Unknown\x20error','command_error','keys','message','stdout','1284cGYVAe','stringify','720167DiVvWd','12622oYrNER','138SspJTf','1670zfWqru','452552lVUQCu','map','max','isArray','dryRun','values','error','270198McnDjF','repeat','join','risk','length','[dry-run]\x20Would\x20execute:','slice','(empty)','324515rqxzVE','40722xDrDdu','entries','pretty'];a101_0x7ed9=function(){return _0x59adb9;};return a101_0x7ed9();}function printPretty(_0x4304ef,_0x4c66c1){const _0x2639e1=a101_0x5262;if(_0x4c66c1[_0x2639e1(0x1c7)]){console[_0x2639e1(0x1db)](_0x2639e1(0x1cf)),console[_0x2639e1(0x1db)](JSON[_0x2639e1(0x1be)](_0x4304ef[_0x2639e1(0x1d7)],null,0x2));return;}if(!_0x4304ef['ok']){console[_0x2639e1(0x1c9)]('Error:\x20'+(_0x4304ef['message']??_0x2639e1(0x1e0)));return;}const _0x4d27f3=_0x4304ef[_0x2639e1(0x1d7)];if(_0x4d27f3===undefined||_0x4d27f3===null){if(_0x4304ef[_0x2639e1(0x1bb)])console[_0x2639e1(0x1db)](_0x4304ef[_0x2639e1(0x1bb)]);return;}if(Array[_0x2639e1(0x1c6)](_0x4d27f3)){printArrayPretty(_0x4d27f3);return;}if(typeof _0x4d27f3===_0x2639e1(0x1de)){printObjectPretty(_0x4d27f3);return;}console['log'](String(_0x4d27f3));}function a101_0x5262(_0x27a5b8,_0x335e88){_0x27a5b8=_0x27a5b8-0x1bb;const _0x7ed9e8=a101_0x7ed9();let _0x526252=_0x7ed9e8[_0x27a5b8];return _0x526252;}function printObjectPretty(_0x1a64b8){const _0x50a583=a101_0x5262,_0x4e6f1a=Math[_0x50a583(0x1c5)](...Object['keys'](_0x1a64b8)[_0x50a583(0x1c4)](_0x3752d3=>_0x3752d3[_0x50a583(0x1ce)]),0x0);for(const [_0x1a9cf7,_0x1e32b9]of Object[_0x50a583(0x1d4)](_0x1a64b8)){if(_0x1e32b9===undefined||_0x1e32b9===null)continue;const _0x3bd3a7=_0x1a9cf7['padEnd'](_0x4e6f1a);typeof _0x1e32b9==='object'?console[_0x50a583(0x1db)](_0x3bd3a7+'\x20\x20'+JSON[_0x50a583(0x1be)](_0x1e32b9)):console[_0x50a583(0x1db)](_0x3bd3a7+'\x20\x20'+_0x1e32b9);}}function printArrayPretty(_0x1fdaf6){const _0x25ae69=a101_0x5262;if(_0x1fdaf6['length']===0x0){console[_0x25ae69(0x1db)](_0x25ae69(0x1d1));return;}console['log'](_0x25ae69(0x1dc)+_0x1fdaf6[_0x25ae69(0x1ce)]+'\x20items:\x0a');for(const _0x2d8eba of _0x1fdaf6){if(typeof _0x2d8eba===_0x25ae69(0x1de)&&_0x2d8eba!==null){const _0x2e1216=Object[_0x25ae69(0x1c8)](_0x2d8eba)[_0x25ae69(0x1d0)](0x0,0x4)[_0x25ae69(0x1cc)]('\x20\x20');console[_0x25ae69(0x1db)]('\x20\x20'+_0x2e1216);}else console[_0x25ae69(0x1db)]('\x20\x20'+_0x2d8eba);}}function printTable(_0x4987b1,_0x4d5ea6){const _0x3d99f4=a101_0x5262,_0x7b41a5=_0x4987b1[_0x3d99f4(0x1d7)];if(!_0x4987b1['ok']){console[_0x3d99f4(0x1c9)]('Error:\x20'+(_0x4987b1[_0x3d99f4(0x1bb)]??_0x3d99f4(0x1e0)));return;}const _0x198b8e=Array[_0x3d99f4(0x1c6)](_0x7b41a5)?_0x7b41a5:_0x7b41a5?[_0x7b41a5]:[];if(_0x198b8e[_0x3d99f4(0x1ce)]===0x0){console[_0x3d99f4(0x1db)](_0x3d99f4(0x1d1));return;}const _0x10f7c7=Object[_0x3d99f4(0x1e2)](_0x198b8e[0x0]),_0x998671=_0x10f7c7['map'](_0x37a934=>Math[_0x3d99f4(0x1c5)](_0x37a934[_0x3d99f4(0x1ce)],..._0x198b8e[_0x3d99f4(0x1c4)](_0x4384f6=>String(_0x4384f6[_0x37a934]??'')[_0x3d99f4(0x1ce)]))),_0x19ecc5=_0x10f7c7[_0x3d99f4(0x1c4)]((_0x55c1d7,_0x28dd7c)=>_0x55c1d7['padEnd'](_0x998671[_0x28dd7c]))[_0x3d99f4(0x1cc)]('\x20\x20'),_0x3d07f6=_0x998671[_0x3d99f4(0x1c4)](_0x1f1e85=>'-'[_0x3d99f4(0x1cb)](_0x1f1e85))[_0x3d99f4(0x1cc)]('\x20\x20');console[_0x3d99f4(0x1db)](_0x19ecc5),console['log'](_0x3d07f6);for(const _0x252993 of _0x198b8e){const _0xe8e3e=_0x10f7c7[_0x3d99f4(0x1c4)]((_0x4a27e2,_0x4f6515)=>String(_0x252993[_0x4a27e2]??'')['padEnd'](_0x998671[_0x4f6515]))[_0x3d99f4(0x1cc)]('\x20\x20');console['log'](_0xe8e3e);}}
1
+ 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(_0x747de,_0x2e3e41){var _0x50349b=a102_0x5423,_0x3b268d=_0x747de();while(!![]){try{var _0x456741=parseInt(_0x50349b(0x1e6))/0x1*(-parseInt(_0x50349b(0x1f1))/0x2)+-parseInt(_0x50349b(0x1e8))/0x3*(-parseInt(_0x50349b(0x1ed))/0x4)+-parseInt(_0x50349b(0x1ee))/0x5*(-parseInt(_0x50349b(0x1ea))/0x6)+parseInt(_0x50349b(0x1ec))/0x7+parseInt(_0x50349b(0x1e5))/0x8*(-parseInt(_0x50349b(0x1e1))/0x9)+parseInt(_0x50349b(0x1e3))/0xa*(-parseInt(_0x50349b(0x1e9))/0xb)+-parseInt(_0x50349b(0x1e2))/0xc*(-parseInt(_0x50349b(0x1e4))/0xd);if(_0x456741===_0x2e3e41)break;else _0x3b268d['push'](_0x3b268d['shift']());}catch(_0x7ce13c){_0x3b268d['push'](_0x3b268d['shift']());}}}(a102_0x3061,0x33475));function a102_0x3061(){var _0x40268e=['1702645WZctlp','8coxbnf','5AmjpZX','isArray','tableData','88VHToTS','34641qhaDzB','24jactWx','3250FrcPRZ','2505373sEDTpK','848vbmTEz','7223itCARF','object','194658dLcvTC','132iOyjpE','1087764tZzGHQ','paging'];a102_0x3061=function(){return _0x40268e;};return a102_0x3061();}function a102_0x5423(_0x19cddd,_0xe8100f){_0x19cddd=_0x19cddd-0x1e1;var _0x3061d5=a102_0x3061();var _0x542372=_0x3061d5[_0x19cddd];return _0x542372;}export function extractList(_0x18c5ef){var _0x579dde=a102_0x5423;if(Array[_0x579dde(0x1ef)](_0x18c5ef))return _0x18c5ef;if(_0x18c5ef&&typeof _0x18c5ef===_0x579dde(0x1e7))return _0x18c5ef[_0x579dde(0x1f0)]??[];return[];}export function extractPaging(_0x3af4a9){var _0x43cf9d=a102_0x5423;if(_0x3af4a9&&typeof _0x3af4a9===_0x43cf9d(0x1e7)&&!Array[_0x43cf9d(0x1ef)](_0x3af4a9))return _0x3af4a9[_0x43cf9d(0x1eb)];return undefined;}
1
+ (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(_0x2ad9f2,_0x284420){const _0x5e4950=a103_0x24a6,_0x1719e6=_0x2ad9f2();while(!![]){try{const _0x24cefe=parseInt(_0x5e4950(0x1cd))/0x1+parseInt(_0x5e4950(0x1fa))/0x2+-parseInt(_0x5e4950(0x1ee))/0x3+-parseInt(_0x5e4950(0x1e2))/0x4+parseInt(_0x5e4950(0x1fb))/0x5*(-parseInt(_0x5e4950(0x1d6))/0x6)+-parseInt(_0x5e4950(0x1f6))/0x7+-parseInt(_0x5e4950(0x1c6))/0x8*(-parseInt(_0x5e4950(0x1f7))/0x9);if(_0x24cefe===_0x284420)break;else _0x1719e6['push'](_0x1719e6['shift']());}catch(_0x704152){_0x1719e6['push'](_0x1719e6['shift']());}}}(a103_0x3135,0xbdf4a));import{parseFlags,validateFlags}from'./flags.js';function a103_0x24a6(_0x58ecb7,_0x486a52){_0x58ecb7=_0x58ecb7-0x1b7;const _0x31359c=a103_0x3135();let _0x24a6cb=_0x31359c[_0x58ecb7];return _0x24a6cb;}import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';function a103_0x3135(){const _0x145561=['map','defaultVerbose','cookie','command','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','rawFlags','length','question','14344496YiPxDj','format','node:readline','`\x20has\x20risk\x20level\x20\x22','defaultPageSize','yes','apiDir','570809aZsiQu','cancelled','number','defaultFormat','name','read','authRequired','alias','risk','234ThegXt','resolveAppCode','nonInteractive','selectedAppName','No\x20api.ts\x20found\x20in\x20','code','dry-run','requiresAppCode','pretty','\x20\x20Set\x20riskLevel\x20in\x20.rabetbase.json\x20or\x20RABETBASE_RISK_LEVEL\x20to\x20allow\x20this\x20operation.','some','--dry-run\x20is\x20not\x20supported\x20for\x20`','370228eIPiuY','⚠\x20\x20High-risk\x20operation:\x20','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','requiresAuth','stderr','configMissing','dryRun','flags','isNonInteractive','toLowerCase','hasFormat','type','869250qHPsoO','riskLevel','createInterface','Command\x20`','service','execute','Unknown\x20alias\x20\x22','resolveApiDomain','8897714zZjCkW','9IDwzJr','table','resolveCookie','754044FUaQrB','39670qvvfyN','pagesize','string','json','validation','\x22.\x20','apiDomain','\x20api\x20pull`\x20first.','validate'];a103_0x3135=function(){return _0x145561;};return a103_0x3135();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x233aa7,_0x239c80){const _0x50029e=a103_0x24a6,_0x5977f4=CLI_BIN_NAME+'\x20'+_0x233aa7[_0x50029e(0x1f2)]+'\x20'+_0x233aa7[_0x50029e(0x1c0)],_0x23cfbe=parseFlags(_0x233aa7['flags'],_0x239c80[_0x50029e(0x1c3)]);validateFlags(_0x233aa7['flags'],_0x23cfbe,_0x5977f4);if(!_0x23cfbe[_0x50029e(0x1dc)]&&_0x239c80['riskLevel']&&riskLevelOrder(_0x233aa7[_0x50029e(0x1d5)])>riskLevelOrder(_0x239c80['riskLevel']))throw CliErrors[_0x50029e(0x1b8)](_0x50029e(0x1f1)+_0x5977f4+_0x50029e(0x1c9)+_0x233aa7[_0x50029e(0x1d5)]+_0x50029e(0x1e4)+_0x239c80[_0x50029e(0x1ef)]+'\x22.\x0a'+_0x50029e(0x1df));const _0x1e73e3=_0x239c80['apiDir']||'./src/api';resolveAliasToCode(_0x233aa7,_0x23cfbe,_0x1e73e3,_0x5977f4);let _0x359d5b='';if(_0x233aa7[_0x50029e(0x1e5)]!==![]){_0x359d5b=_0x239c80[_0x50029e(0x1f9)]();if(!_0x359d5b)throw CliErrors[_0x50029e(0x1d3)]();const {setActiveCookie:_0x22e30d}=await import('../core/api-client.js');_0x22e30d(_0x359d5b);}let _0x210db8='';if(_0x233aa7[_0x50029e(0x1dd)]!==![]){_0x210db8=_0x239c80[_0x50029e(0x1d7)]()??'';if(!_0x210db8)throw CliErrors[_0x50029e(0x1e7)](_0x50029e(0x1c2)+CLI_BIN_NAME+_0x50029e(0x1c1));}const _0x3ed302=resolveFormat(_0x23cfbe,_0x233aa7,_0x239c80[_0x50029e(0x1d0)]),_0x1b14fc=buildRuntimeContext({'appCode':_0x210db8,'cookie':_0x359d5b,'apiDomain':_0x239c80[_0x50029e(0x1f5)](),'format':_0x3ed302,'flags':_0x23cfbe,'def':_0x233aa7,'nonInteractive':_0x239c80['isNonInteractive'],'defaultPageSize':_0x239c80[_0x50029e(0x1ca)],'defaultVerbose':_0x239c80[_0x50029e(0x1be)],'apiDir':_0x1e73e3,'selectedAppName':_0x239c80['selectedAppName']});_0x233aa7[_0x50029e(0x1bc)]&&await _0x233aa7[_0x50029e(0x1bc)](_0x1b14fc);if(_0x23cfbe[_0x50029e(0x1dc)]){if(!_0x233aa7['dryRun'])throw CliErrors[_0x50029e(0x1b8)](_0x50029e(0x1e1)+_0x5977f4+'`.');const _0x701607=await _0x233aa7[_0x50029e(0x1e8)](_0x1b14fc);formatOutput({'ok':!![],'data':_0x701607},{'command':_0x5977f4,'risk':_0x233aa7['risk'],'format':_0x3ed302,'dryRun':!![]});return;}if(_0x233aa7['risk']==='high-risk-write'&&!_0x23cfbe['yes']){if(_0x239c80[_0x50029e(0x1ea)])throw CliErrors[_0x50029e(0x1b8)]('High-risk\x20operation\x20`'+_0x5977f4+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0x5977f4);}const _0x510407=await _0x233aa7[_0x50029e(0x1f3)](_0x1b14fc);formatOutput(_0x510407,{'command':_0x5977f4,'risk':_0x233aa7[_0x50029e(0x1d5)],'format':_0x3ed302});}function buildRuntimeContext(_0x2fe6d2){const _0x4c0d87=a103_0x24a6,{flags:_0x19d3d8,def:_0x20586b}=_0x2fe6d2,_0x1824db=CLI_BIN_NAME+'\x20'+_0x20586b[_0x4c0d87(0x1f2)]+'\x20'+_0x20586b[_0x4c0d87(0x1c0)];return{'appCode':_0x2fe6d2['appCode'],'cookie':_0x2fe6d2[_0x4c0d87(0x1bf)],'apiDomain':_0x2fe6d2[_0x4c0d87(0x1ba)],'format':_0x2fe6d2[_0x4c0d87(0x1c7)],'nonInteractive':_0x2fe6d2[_0x4c0d87(0x1d8)],'apiDir':_0x2fe6d2[_0x4c0d87(0x1cc)],'selectedAppName':_0x2fe6d2[_0x4c0d87(0x1d9)],'str'(_0x5d7ec3){return String(_0x19d3d8[_0x5d7ec3]??'');},'bool'(_0x566dd8){const _0xde4e31=_0x4c0d87;if(_0x19d3d8[_0x566dd8]===!![])return!![];if(_0x566dd8==='verbose'&&_0x2fe6d2[_0xde4e31(0x1be)])return!![];return![];},'num'(_0x4ad959,_0x2bae7e){const _0x403c98=_0x4c0d87,_0xb069fc=_0x19d3d8[_0x4ad959];if(typeof _0xb069fc===_0x403c98(0x1cf))return _0xb069fc;if(_0x4ad959===_0x403c98(0x1fc)&&_0x2fe6d2[_0x403c98(0x1ca)]!=null)return _0x2fe6d2[_0x403c98(0x1ca)];return _0x2bae7e??0x0;},'flag'(_0x21e1a5){return _0x19d3d8[_0x21e1a5];},'output'(_0x20f0d4){const _0x328ff8=_0x4c0d87;formatOutput(_0x20f0d4,{'command':_0x1824db,'risk':_0x20586b[_0x328ff8(0x1d5)],'format':_0x2fe6d2['format']});}};}function resolveFormat(_0x479b88,_0x2b67f3,_0x4ef4f7){const _0x33f0aa=a103_0x24a6;if(_0x2b67f3[_0x33f0aa(0x1ec)]===![])return _0x33f0aa(0x1de);const _0x343a5c=_0x479b88[_0x33f0aa(0x1c7)];if(_0x343a5c===_0x33f0aa(0x1b7)||_0x343a5c===_0x33f0aa(0x1de)||_0x343a5c===_0x33f0aa(0x1f8))return _0x343a5c;if(_0x4ef4f7)return _0x4ef4f7;return _0x33f0aa(0x1de);}async function requireConfirmation(_0x3a94fb){const _0x750987=a103_0x24a6,_0x148902=await import(_0x750987(0x1c8)),_0x2ed4e3=_0x148902[_0x750987(0x1f0)]({'input':process['stdin'],'output':process[_0x750987(0x1e6)]});return new Promise((_0x3c5f67,_0x5f1e07)=>{const _0xbfdfdd=_0x750987;_0x2ed4e3[_0xbfdfdd(0x1c5)](_0xbfdfdd(0x1e3)+_0x3a94fb+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x15033a=>{const _0x3528ff=_0xbfdfdd;_0x2ed4e3['close'](),_0x15033a[_0x3528ff(0x1eb)]()==='y'||_0x15033a[_0x3528ff(0x1eb)]()===_0x3528ff(0x1cb)?_0x3c5f67():_0x5f1e07(CliErrors[_0x3528ff(0x1ce)]('Operation\x20cancelled\x20by\x20user.'));});});}const RISK_ORDER={'read':0x0,'write':0x1,'high-risk-write':0x2};function riskLevelOrder(_0x1df2ae){const _0x2f2953=a103_0x24a6;return RISK_ORDER[_0x1df2ae??_0x2f2953(0x1d2)]??0x0;}function resolveAliasToCode(_0x180c12,_0x2e3756,_0x235361,_0xe3ea85){const _0x68c078=a103_0x24a6,_0x2dfc99=_0x180c12['flags'][_0x68c078(0x1e0)](_0x30b6b0=>_0x30b6b0[_0x68c078(0x1d1)]==='code'&&_0x30b6b0[_0x68c078(0x1ed)]===_0x68c078(0x1fd)),_0x220ebc=_0x180c12[_0x68c078(0x1e9)]['some'](_0x492c3b=>_0x492c3b['name']==='alias'&&_0x492c3b[_0x68c078(0x1ed)]==='string');if(!_0x2dfc99||!_0x220ebc)return;const _0x474aed=_0x2e3756['code']?String(_0x2e3756['code']):'',_0x3017cf=_0x2e3756[_0x68c078(0x1d4)]?String(_0x2e3756[_0x68c078(0x1d4)]):'';if(!_0x474aed&&!_0x3017cf)throw CliErrors['validation']('`'+_0xe3ea85+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x3017cf&&!_0x474aed){const _0x3e6fa6=resolveAlias(_0x235361,_0x3017cf);if(!_0x3e6fa6){const _0x227f8e=listAliases(_0x235361)[_0x68c078(0x1bd)](_0x22bf4b=>_0x22bf4b[_0x68c078(0x1d4)]),_0x1cd7f4=_0x227f8e[_0x68c078(0x1c4)]?'Available\x20aliases:\x20'+_0x227f8e['join'](',\x20'):_0x68c078(0x1da)+_0x235361+'.\x20Run\x20`'+CLI_BIN_NAME+_0x68c078(0x1bb);throw CliErrors['validation'](_0x68c078(0x1f4)+_0x3017cf+_0x68c078(0x1b9)+_0x1cd7f4);}_0x2e3756[_0x68c078(0x1db)]=_0x3e6fa6;}}
1
+ (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=0x36;
1
+ export const BUILD_NUMBER=0x38;
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2080c6,_0xd51ee){var _0x898e6c=a106_0x4485,_0x10945d=_0x2080c6();while(!![]){try{var _0x32f51f=-parseInt(_0x898e6c(0x87))/0x1+-parseInt(_0x898e6c(0x91))/0x2*(-parseInt(_0x898e6c(0x88))/0x3)+parseInt(_0x898e6c(0x8f))/0x4+parseInt(_0x898e6c(0x93))/0x5*(-parseInt(_0x898e6c(0x90))/0x6)+parseInt(_0x898e6c(0x8a))/0x7*(-parseInt(_0x898e6c(0x8d))/0x8)+parseInt(_0x898e6c(0x8c))/0x9*(parseInt(_0x898e6c(0x86))/0xa)+parseInt(_0x898e6c(0x92))/0xb*(parseInt(_0x898e6c(0x89))/0xc);if(_0x32f51f===_0xd51ee)break;else _0x10945d['push'](_0x10945d['shift']());}catch(_0x4aad1d){_0x10945d['push'](_0x10945d['shift']());}}}(a106_0x5d12,0x4dd59));function a106_0x4485(_0x3c7c7b,_0x447433){_0x3c7c7b=_0x3c7c7b-0x86;var _0x5d1284=a106_0x5d12();var _0x44852c=_0x5d1284[_0x3c7c7b];return _0x44852c;}function a106_0x5d12(){var _0x328e43=['138352NPXLbY','18DxUwfD','552472MyRdyM','11143GhBajy','754340EYfZro','green','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','470MGSdee','111324gKefRh','3SSvJxg','8496KgchLS','84MHZTLB','\x20--help','69723EfQbTO','339600slDtLr','\x20\x20Rabetbase\x20CLI'];a106_0x5d12=function(){return _0x328e43;};return a106_0x5d12();}import{jsx as a106_0x679fe0,jsxs as a106_0x1f0dc4}from'react/jsx-runtime';import{Box,Text}from'ink';import{CLI_BIN_NAME}from'./constant/cli.js';export function Help(){var _0x54e763=a106_0x4485;return a106_0x1f0dc4(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a106_0x679fe0(Box,{'children':a106_0x679fe0(Text,{'bold':!![],'color':_0x54e763(0x94),'children':_0x54e763(0x8e)})}),a106_0x1f0dc4(Box,{'marginTop':0x1,'children':[a106_0x679fe0(Text,{'dimColor':!![],'children':_0x54e763(0x95)}),a106_0x679fe0(Text,{'bold':!![],'color':_0x54e763(0x94),'children':CLI_BIN_NAME+_0x54e763(0x8b)}),a106_0x679fe0(Text,{'dimColor':!![],'children':_0x54e763(0x96)})]})]});}
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
- function a107_0x47b2(_0x568695,_0x591548){_0x568695=_0x568695-0x1c3;const _0x3655b0=a107_0x3655();let _0x47b26c=_0x3655b0[_0x568695];return _0x47b26c;}const a107_0x4952c7=a107_0x47b2;(function(_0x474133,_0x96e12e){const _0x485ea6=a107_0x47b2,_0x22c6a3=_0x474133();while(!![]){try{const _0x25a08e=parseInt(_0x485ea6(0x206))/0x1+-parseInt(_0x485ea6(0x1c8))/0x2+-parseInt(_0x485ea6(0x1d9))/0x3+-parseInt(_0x485ea6(0x1fd))/0x4*(parseInt(_0x485ea6(0x1e7))/0x5)+parseInt(_0x485ea6(0x1db))/0x6*(parseInt(_0x485ea6(0x201))/0x7)+-parseInt(_0x485ea6(0x1cb))/0x8+-parseInt(_0x485ea6(0x1e9))/0x9*(-parseInt(_0x485ea6(0x1e8))/0xa);if(_0x25a08e===_0x96e12e)break;else _0x22c6a3['push'](_0x22c6a3['shift']());}catch(_0x3ed124){_0x22c6a3['push'](_0x22c6a3['shift']());}}}(a107_0x3655,0x30ce3));import{jsxs as a107_0x148b10,jsx as a107_0x526d39}from'react/jsx-runtime';import{useState,useEffect}from'react';import{Box,Text,useInput}from'ink';import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,join,dirname}from'node:path';import{fileURLToPath}from'node:url';import{logger}from'../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME}from'../context.js';const LEGACY_CONFIG_NAMES=[a107_0x4952c7(0x1e0),a107_0x4952c7(0x1c9)];function a107_0x3655(){const _0x231edf=['Initializing\x20configuration\x20file...','\x0aMigration\x20cancelled.\x20Run\x20`rabetbase\x20project\x20init`\x20to\x20start\x20fresh.','production','155060ZLDLTW','backspace','env','trim','91NfQBDU','keys','升级配置文件失败','gray','Migrating\x20legacy\x20config...','200624mKmWbJ','You\x20can\x20now\x20use\x20commands\x20like\x20\x27rabetbase\x20api\x20doc\x27\x20and\x20\x27rabetbase\x20api\x20pull\x27','version','\x20←\x20','utf8','Old\x20file\x20backed\x20up\x20as\x20','Invalid\x20App\x20Code','createdAt','green','App\x20Code\x20identifies\x20your\x20project.\x20Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','746648qCOvKF','.lovrabetrc','column','2651240SZRRgE','success','Upgrade\x20it\x20to\x20','✓\x20Upgraded\x20','checking','return','migrating','App\x20Code\x20cannot\x20be\x20empty','从旧配置文件升级成功','init-input','escape','error','migrating-input','init','509685UsOAjn','Error:\x20','137988Xkljgp','app','log','初始化项目配置文件成功','ctrl','.lovrabet.json','toLocaleString','appcode','string','.rabetbase.json','length','message','10WKfHli','10trtyax','5872167yBZnQa','创建配置文件失败','.bak','\x20\x20The\x20old\x20file\x20will\x20be\x20renamed\x20to\x20*.bak','split','exit','info','parse','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','package.json','yellow','cyan','setLogPath','cwd','../..','1.0.0','\x20\x20appcode:\x20'];a107_0x3655=function(){return _0x231edf;};return a107_0x3655();}export function Init({appcode:_0x1b528f,env:_0x1709e0,autoYes:_0x3d6b08}){const _0x11232e=a107_0x4952c7,[_0x10cfa2,_0x2be6f9]=useState(_0x11232e(0x1cf)),[_0x19eb85,_0x4453ba]=useState(null),[_0x4096dc,_0x299661]=useState(![]),[_0x9ec03c,_0x28127e]=useState(!_0x1b528f),[_0x3a57f3,_0x5a3b5c]=useState(''),[_0x47326d,_0x2f2d49]=useState(''),[_0x335991,_0x130b11]=useState(_0x1b528f||''),[_0x47df8e]=useState(_0x1709e0),[_0x16b513,_0x5c6a68]=useState(),[_0x201d28,_0x554519]=useState({});function _0x46fc1c(_0x40a350){const _0x1371a4=_0x11232e;if(_0x40a350[_0x1371a4(0x1e5)]===0x0)return{'valid':![],'message':''};if(_0x40a350[_0x1371a4(0x1e5)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};const _0x2b53d7=/^[A-Za-z0-9_-]+$/;if(!_0x2b53d7['test'](_0x40a350))return{'valid':![],'message':'App\x20Code\x20can\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_'};return{'valid':!![]};}useInput((_0x18f817,_0x5921ac)=>{const _0x416fe4=_0x11232e;if(_0x10cfa2===_0x416fe4(0x1d7)){if(_0x5921ac['return']||_0x18f817==='y'||_0x18f817==='Y')_0x2be6f9(_0x416fe4(0x1d1));else{if(_0x18f817==='n'||_0x18f817==='N'||_0x5921ac[_0x416fe4(0x1d5)])console[_0x416fe4(0x1dd)](_0x416fe4(0x1fb)),process[_0x416fe4(0x1ee)](0x0);else _0x5921ac['ctrl']&&_0x18f817==='c'&&process['exit'](0x0);}return;}if(!_0x9ec03c)return;if(_0x5921ac[_0x416fe4(0x1d0)]){if(_0x47326d||!_0x3a57f3[_0x416fe4(0x200)]()){_0x2f2d49(_0x416fe4(0x1d2));return;}const _0x2de475=_0x3a57f3[_0x416fe4(0x200)](),{valid:_0x1f5e68,message:_0x425985}=_0x46fc1c(_0x2de475);if(!_0x1f5e68){_0x2f2d49(_0x425985||_0x416fe4(0x1c4));return;}_0x130b11(_0x2de475),_0x28127e(![]);}else{if(_0x5921ac[_0x416fe4(0x1fe)]||_0x5921ac['delete'])_0x5a3b5c(_0x1a554e=>{const _0xc47e7f=_0x416fe4,_0x13b8e9=_0x1a554e['slice'](0x0,-0x1);return _0x2f2d49(_0x13b8e9[_0xc47e7f(0x1e5)]===0x0?'':_0x46fc1c(_0x13b8e9)[_0xc47e7f(0x1e6)]||''),_0x13b8e9;});else _0x5921ac[_0x416fe4(0x1df)]&&_0x18f817==='c'?process[_0x416fe4(0x1ee)](0x0):_0x5a3b5c(_0x3690c2=>{const _0x32b768=_0x416fe4,_0x49fcf3=_0x3690c2+_0x18f817;return _0x2f2d49(_0x46fc1c(_0x49fcf3)[_0x32b768(0x1e6)]||''),_0x49fcf3;});}},{'isActive':_0x10cfa2===_0x11232e(0x1d7)||_0x10cfa2==='init-input'}),useEffect(()=>{const _0x26a0c8=_0x11232e;if(_0x10cfa2!==_0x26a0c8(0x1cf))return;const _0x151560=process[_0x26a0c8(0x1f6)]();if(getProjectConfigPath()){_0x4453ba('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.'),_0x2be6f9(_0x26a0c8(0x1d6)),setTimeout(()=>process[_0x26a0c8(0x1ee)](0x1),0x64);return;}let _0x314944;for(const _0x3c7d4f of LEGACY_CONFIG_NAMES){const _0x4bb102=resolve(_0x151560,_0x3c7d4f);if(existsSync(_0x4bb102)){_0x314944=_0x4bb102;break;}}if(_0x314944){_0x5c6a68(_0x314944);try{const _0x362240=readFileSync(_0x314944,_0x26a0c8(0x20a));_0x554519(JSON[_0x26a0c8(0x1f0)](_0x362240));}catch{_0x554519({});}_0x3d6b08?_0x2be6f9(_0x26a0c8(0x1d1)):_0x2be6f9(_0x26a0c8(0x1d7));return;}_0x2be6f9(_0x26a0c8(0x1d4)),!_0x1b528f?_0x28127e(!![]):_0x28127e(![]);},[_0x10cfa2,_0x3d6b08,_0x1b528f]),useEffect(()=>{const _0x55a525=_0x11232e;if(_0x10cfa2!==_0x55a525(0x1d1))return;const _0x1aeeed=process[_0x55a525(0x1f6)](),_0x44835c=resolve(_0x1aeeed,NEW_CONFIG_NAME);try{const _0x4f2956=fileURLToPath(import.meta.url),_0x1046b4=resolve(dirname(_0x4f2956),'../..'),_0x37580a=join(_0x1046b4,'package.json');let _0x33d874=_0x55a525(0x1f8);try{const _0x45139c=JSON[_0x55a525(0x1f0)](readFileSync(_0x37580a,_0x55a525(0x20a)));_0x33d874=_0x45139c[_0x55a525(0x208)]||_0x55a525(0x1f8);}catch{}const _0x3e1cdd=readRawConfig(),_0x4f2ee3={..._0x3e1cdd,..._0x201d28,'version':_0x33d874,'migratedAt':new Date()[_0x55a525(0x1e1)](),'migratedFrom':_0x16b513};if(!_0x4f2ee3[_0x55a525(0x1e2)]&&!_0x4f2ee3['app']){if(!_0x1b528f){_0x554519(_0x4f2ee3),_0x2be6f9('init-input'),_0x28127e(!![]);return;}_0x4f2ee3['appcode']=_0x1b528f;}if(_0x4f2ee3[_0x55a525(0x1ff)]&&typeof _0x4f2ee3[_0x55a525(0x1ff)]!==_0x55a525(0x1e3))delete _0x4f2ee3[_0x55a525(0x1ff)];else!_0x4f2ee3[_0x55a525(0x1ff)]&&(_0x4f2ee3['env']=_0x3e1cdd['env']||'production');writeConfigFile(_0x44835c,_0x4f2ee3);if(_0x16b513){const _0x54f245=_0x16b513+_0x55a525(0x1eb);renameSync(_0x16b513,_0x54f245);}logger['setLogPath'](_0x1aeeed),logger[_0x55a525(0x1ef)]('init',_0x55a525(0x1d3),{'from':_0x16b513,'to':_0x44835c,'appcode':_0x4f2ee3[_0x55a525(0x1e2)]||_0x4f2ee3['app'],'env':_0x4f2ee3[_0x55a525(0x1ff)]}),_0x299661(!![]),_0x2be6f9(_0x55a525(0x1cc)),setTimeout(()=>process[_0x55a525(0x1ee)](0x0),0x64);}catch(_0x5d7658){logger[_0x55a525(0x1d6)](_0x55a525(0x1d8),_0x55a525(0x203),{'error':_0x5d7658 instanceof Error?_0x5d7658[_0x55a525(0x1e6)]:String(_0x5d7658)}),_0x4453ba(_0x55a525(0x1da)+(_0x5d7658 instanceof Error?_0x5d7658['message']:String(_0x5d7658))),_0x2be6f9(_0x55a525(0x1d6)),setTimeout(()=>process[_0x55a525(0x1ee)](0x1),0x64);}},[_0x10cfa2]),useEffect(()=>{const _0x362516=_0x11232e;if(_0x10cfa2!==_0x362516(0x1d8))return;const _0x5ae5d7=process[_0x362516(0x1f6)](),_0x596a95=resolve(_0x5ae5d7,NEW_CONFIG_NAME);try{const _0x2ec9ed=fileURLToPath(import.meta.url),_0x4bc122=resolve(dirname(_0x2ec9ed),_0x362516(0x1f7)),_0x876518=join(_0x4bc122,_0x362516(0x1f2));let _0x4e1520='1.0.0';try{const _0x20fa39=JSON[_0x362516(0x1f0)](readFileSync(_0x876518,_0x362516(0x20a)));_0x4e1520=_0x20fa39['version']||'1.0.0';}catch{}const _0x4ac65e=readRawConfig(),_0x357539=typeof _0x4ac65e[_0x362516(0x1ff)]===_0x362516(0x1e3)?_0x4ac65e[_0x362516(0x1ff)]:undefined,_0x49cd80={};_0x201d28&&Object[_0x362516(0x202)](_0x201d28)['length']>0x0&&Object['assign'](_0x49cd80,_0x201d28),!_0x49cd80['version']&&(_0x49cd80[_0x362516(0x208)]=_0x4e1520),!_0x49cd80['createdAt']&&(_0x49cd80[_0x362516(0x1c5)]=new Date()[_0x362516(0x1e1)]()),!_0x49cd80[_0x362516(0x1e2)]&&!_0x49cd80[_0x362516(0x1dc)]&&(_0x49cd80['appcode']=_0x335991),!_0x49cd80['env']&&(_0x49cd80[_0x362516(0x1ff)]=_0x47df8e||_0x357539||_0x362516(0x1fc)),writeConfigFile(_0x596a95,_0x49cd80),logger[_0x362516(0x1f5)](_0x5ae5d7),logger[_0x362516(0x1ef)]('init',_0x362516(0x1de),{'appcode':_0x49cd80[_0x362516(0x1e2)]||_0x49cd80[_0x362516(0x1dc)],'env':_0x49cd80[_0x362516(0x1ff)],'version':_0x49cd80[_0x362516(0x208)],'configPath':_0x596a95}),_0x299661(!![]),_0x2be6f9(_0x362516(0x1cc)),setTimeout(()=>process[_0x362516(0x1ee)](0x0),0x64);}catch(_0x1ccd03){logger['error'](_0x362516(0x1d8),_0x362516(0x1ea),{'error':_0x1ccd03 instanceof Error?_0x1ccd03['message']:String(_0x1ccd03)}),_0x4453ba(_0x362516(0x1da)+(_0x1ccd03 instanceof Error?_0x1ccd03[_0x362516(0x1e6)]:String(_0x1ccd03))),_0x2be6f9(_0x362516(0x1d6)),setTimeout(()=>process[_0x362516(0x1ee)](0x1),0x64);}},[_0x10cfa2,_0x335991,_0x47df8e]),useEffect(()=>{const _0x27e38a=_0x11232e;_0x10cfa2==='init-input'&&!_0x9ec03c&&(_0x335991||_0x201d28&&Object[_0x27e38a(0x202)](_0x201d28)[_0x27e38a(0x1e5)]>0x0)&&_0x2be6f9(_0x27e38a(0x1d8));},[_0x10cfa2,_0x9ec03c,_0x335991]);if(_0x19eb85)return a107_0x526d39(Box,{'flexDirection':_0x11232e(0x1ca),'children':a107_0x148b10(Text,{'color':'red','children':['✗\x20',_0x19eb85]})});if(_0x10cfa2===_0x11232e(0x1d7)){const _0x32048c=_0x16b513?_0x16b513[_0x11232e(0x1ed)]('/')['pop']():'legacy\x20config',_0x25aa96=_0x201d28?.[_0x11232e(0x1e2)]||_0x201d28?.[_0x11232e(0x1dc)];return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1f3),'children':[_0x11232e(0x1f1),a107_0x526d39(Text,{'bold':!![],'children':_0x32048c})]}),_0x25aa96&&a107_0x148b10(Text,{'color':'cyan','children':[_0x11232e(0x1f9),_0x25aa96]}),a107_0x148b10(Text,{'children':['\x0a',_0x11232e(0x1cd),a107_0x526d39(Text,{'bold':!![],'children':_0x11232e(0x1e4)}),'?','\x20',a107_0x526d39(Text,{'color':'green','children':'[Y/n]'})]}),a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':_0x11232e(0x1ec)})]});}if(_0x10cfa2===_0x11232e(0x1d4)&&_0x9ec03c)return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Box,{'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['Please\x20enter\x20App\x20Code:','\x20']}),_0x3a57f3?a107_0x526d39(Text,{'color':_0x11232e(0x1c6),'children':_0x3a57f3}):a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':'_'}),_0x47326d&&a107_0x148b10(Text,{'color':'red','children':[_0x11232e(0x209),_0x47326d]})]}),!_0x47326d&&!_0x3a57f3&&a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'color':_0x11232e(0x204),'children':_0x11232e(0x1c7)})})]});if(_0x10cfa2===_0x11232e(0x1d1))return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':_0x11232e(0x205)})});if(_0x10cfa2===_0x11232e(0x1d8))return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':_0x11232e(0x1fa)})});if(_0x4096dc||_0x10cfa2===_0x11232e(0x1cc)){const _0x3c81f0=_0x16b513?_0x16b513['split']('/')['pop']():undefined;if(_0x3c81f0)return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1c6),'children':[_0x11232e(0x1ce),_0x3c81f0,'\x20→\x20.rabetbase.json']}),a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['AppCode',':\x20',_0x201d28?.['appcode']||_0x201d28?.['app']]}),a107_0x148b10(Text,{'color':_0x11232e(0x204),'children':[_0x11232e(0x1c3),_0x3c81f0,'.bak']})]});return a107_0x148b10(Box,{'flexDirection':_0x11232e(0x1ca),'children':[a107_0x148b10(Text,{'color':_0x11232e(0x1c6),'children':['✓\x20','Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory']}),a107_0x148b10(Text,{'color':_0x11232e(0x1f4),'children':['AppCode',':\x20',_0x335991]}),a107_0x526d39(Text,{'children':_0x11232e(0x207)})]});}return a107_0x526d39(Box,{'children':a107_0x526d39(Text,{'children':'Checking\x20existing\x20configuration...'})});}
1
+ 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_0x20504e=a114_0x15c5;(function(_0x491ff3,_0x4a6971){const _0x43e50d=a114_0x15c5,_0x299897=_0x491ff3();while(!![]){try{const _0x59f5d2=-parseInt(_0x43e50d(0x1f0))/0x1+-parseInt(_0x43e50d(0x1f2))/0x2+-parseInt(_0x43e50d(0x1e2))/0x3*(-parseInt(_0x43e50d(0x1eb))/0x4)+parseInt(_0x43e50d(0x1f8))/0x5+parseInt(_0x43e50d(0x1ec))/0x6+parseInt(_0x43e50d(0x1e7))/0x7+-parseInt(_0x43e50d(0x1dd))/0x8;if(_0x59f5d2===_0x4a6971)break;else _0x299897['push'](_0x299897['shift']());}catch(_0x119bab){_0x299897['push'](_0x299897['shift']());}}}(a114_0x53a3,0x38516));import{logger}from'../utils/logger.js';export function camelCaseFlagsToKebab(_0x4c82b8){const _0x1d5790=a114_0x15c5,_0x7ea520=[];for(const [_0x401234,_0x19f6b5]of Object[_0x1d5790(0x1e4)](_0x4c82b8)){if(_0x19f6b5===!![]){const _0x421788=_0x401234[_0x1d5790(0x1e6)](/([A-Z])/g,_0x1d5790(0x1ef))[_0x1d5790(0x1f7)]();_0x7ea520[_0x1d5790(0x1e1)](_0x421788);}}return _0x7ea520;}function a114_0x15c5(_0x5f0441,_0x219cc6){_0x5f0441=_0x5f0441-0x1d8;const _0x53a30b=a114_0x53a3();let _0x15c58e=_0x53a30b[_0x5f0441];return _0x15c58e;}export function parseDynamicFlags(){const _0x669e2f=a114_0x15c5,_0x4118b0=[];for(let _0xabf6ee=0x3;_0xabf6ee<process[_0x669e2f(0x1f1)]['length'];_0xabf6ee++){const _0x282cda=process['argv'][_0xabf6ee];if(_0x282cda&&_0x282cda['startsWith']('--')){const _0x3c1109=_0x282cda[_0x669e2f(0x1f4)](0x2);_0x3c1109&&!_0x3c1109[_0x669e2f(0x1dc)]('=')&&_0x4118b0[_0x669e2f(0x1e1)](_0x3c1109);}}return _0x4118b0;}export function getAllProvidedFlags(_0x5a6c02){const _0xa36da=a114_0x15c5,_0x2b4cf8=camelCaseFlagsToKebab(_0x5a6c02),_0x32ac26=parseDynamicFlags(),_0x39a0a3=new Set([..._0x2b4cf8,..._0x32ac26]);return Array[_0xa36da(0x1d9)](_0x39a0a3);}export function normalizeLegacyBffSaveFlags(_0x32910e){const _0x981877=a114_0x15c5,_0x14bacf=new Set(_0x32910e);return _0x14bacf['has'](_0x981877(0x1e3))&&_0x14bacf['add'](_0x981877(0x1e0)),Array['from'](_0x14bacf);}const SKILLS_INSTALL_COMMAND_LINE=a114_0x20504e(0x1db);function a114_0x53a3(){const _0x13822e=['-$1','386920IWEQbG','argv','660256IOqdMe','\x20\x20rabetbase\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','slice','Equivalent\x20command:\x20','cwd','toLowerCase','1124250EbbJZJ','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20rabetbase\x20skill\x20--help\x0a\x20\x20rabetbase\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','setLogPath','from','Error:\x20Unsupported\x20command:\x20','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','includes','354512hZFBJd','不支持的命令:\x20','error','enable-bff-save','push','396921oUXwAC','dangerously-bff-save','entries','\x20\x20rabetbase\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','replace','2480394LfBFRT','--help','help','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','12GhGAWo','95562AjJNvx','log','(empty)'];a114_0x53a3=function(){return _0x13822e;};return a114_0x53a3();}export async function skillsCommand(_0x563653,_0x59ed02,_0x5ceff8){const _0x229e3e=a114_0x20504e;logger[_0x229e3e(0x1d8)](process[_0x229e3e(0x1f6)]());if(_0x5ceff8?.[_0x229e3e(0x1e9)]||_0x563653===_0x229e3e(0x1e8)){showHelp();return;}console[_0x229e3e(0x1df)](_0x229e3e(0x1da)+(_0x563653||_0x229e3e(0x1ee))),console['log']('\x0aAvailable\x20commands:'),console['log'](_0x229e3e(0x1e5)),console[_0x229e3e(0x1ed)](_0x229e3e(0x1f3)),console[_0x229e3e(0x1ed)](''),console[_0x229e3e(0x1ed)](_0x229e3e(0x1f5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x229e3e(0x1df)]('skill',_0x229e3e(0x1de)+_0x563653),process['exit'](0x1);}function showHelp(){const _0x4ca96b=a114_0x20504e;console[_0x4ca96b(0x1ed)](_0x4ca96b(0x1f9)+SKILLS_INSTALL_COMMAND_LINE+_0x4ca96b(0x1ea));}
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_0x1dad5a=a115_0x474a;(function(_0x14e3cf,_0xab2739){const _0x43f2f7=a115_0x474a,_0x163f31=_0x14e3cf();while(!![]){try{const _0x1f7429=parseInt(_0x43f2f7(0x80))/0x1*(parseInt(_0x43f2f7(0x69))/0x2)+parseInt(_0x43f2f7(0x7f))/0x3*(parseInt(_0x43f2f7(0x7e))/0x4)+parseInt(_0x43f2f7(0x66))/0x5+-parseInt(_0x43f2f7(0x65))/0x6*(-parseInt(_0x43f2f7(0x7b))/0x7)+parseInt(_0x43f2f7(0x83))/0x8*(parseInt(_0x43f2f7(0x77))/0x9)+-parseInt(_0x43f2f7(0x6a))/0xa+-parseInt(_0x43f2f7(0x75))/0xb;if(_0x1f7429===_0xab2739)break;else _0x163f31['push'](_0x163f31['shift']());}catch(_0x54e0af){_0x163f31['push'](_0x163f31['shift']());}}}(a115_0x5542,0xa3ba1));import{spawnSync}from'node:child_process';export const NPX_FLAG_YES='-y';function a115_0x474a(_0x578e5d,_0x1a079c){_0x578e5d=_0x578e5d-0x65;const _0x554295=a115_0x5542();let _0x474a6a=_0x554295[_0x578e5d];return _0x474a6a;}export const NPX_SKILLS_CLI=a115_0x1dad5a(0x6e);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';function a115_0x5542(){const _0x586cef=['platform','join','178HdylIu','4049110qZhnJq','inherit','log','remove','skills','win32','env','unknown','exit\x20','stderr','RABETBASE_SKIP_NPX_SKILLS','31403515wELQjB','Lovrabet','9LdfKGo','stdio','pipe','--global','12026EhqoCI','toString','npx','4omWnGj','2867445vAJpQE','11503NOcDnn','npx.cmd','skill','2803624ikgcqr','status','trim','stdout','4206WCsxiR','1980240IAjYno'];a115_0x5542=function(){return _0x586cef;};return a115_0x5542();}export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x1dad5a(0x76);export function buildNpxSkillsAddArgv(_0x406dcf=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x406dcf];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x1dad5a(0x7d),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){const _0x499ffd=a115_0x1dad5a;return process[_0x499ffd(0x70)][_0x499ffd(0x74)]==='1';}export function runNpxSkillsAdd(_0x36d04b,_0x438505){const _0x4ea366=a115_0x1dad5a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xf83c1c=_0x438505?.[_0x4ea366(0x78)]??_0x4ea366(0x6b),_0x11b4a3=process['platform']===_0x4ea366(0x6f)?_0x4ea366(0x81):'npx',_0x1284eb=buildNpxSkillsAddArgv(_0x438505?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x3cb8b5=[_0x11b4a3,..._0x1284eb]['join']('\x20');console['log']('*\x20'+_0x3cb8b5);const _0xa3922a=spawnSync(_0x11b4a3,_0x1284eb,{'cwd':_0x36d04b,'stdio':_0xf83c1c,'env':process[_0x4ea366(0x70)],'shell':![]}),_0x1c165a=_0xa3922a[_0x4ea366(0x84)];if(_0x1c165a===0x0)return{'ok':!![],'status':0x0};let _0x42243e=_0x4ea366(0x72)+(_0x1c165a??'unknown');if(_0xf83c1c===_0x4ea366(0x79)){const _0x38dc56=_0xa3922a[_0x4ea366(0x73)]?_0xa3922a['stderr'][_0x4ea366(0x7c)]()[_0x4ea366(0x85)]():'',_0x2dc371=_0xa3922a[_0x4ea366(0x86)]?_0xa3922a[_0x4ea366(0x86)]['toString']()['trim']():'';if(_0x38dc56)_0x42243e=_0x38dc56;else{if(_0x2dc371)_0x42243e=_0x2dc371;}}return{'ok':![],'status':_0x1c165a??null,'error':_0x42243e};}export function runNpxSkillsRemove(_0x23df6c,_0x218baf){const _0xf17ec7=a115_0x1dad5a,_0x5be00f=_0x218baf?.[_0xf17ec7(0x78)]??_0xf17ec7(0x6b),_0x524ce4=process[_0xf17ec7(0x67)]===_0xf17ec7(0x6f)?'npx.cmd':_0xf17ec7(0x7d),_0xf968e9=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xf17ec7(0x6d),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x218baf?.[_0xf17ec7(0x82)]??DEFAULT_RABETBASE_SKILL_NAME],_0x12b0e3=[_0x524ce4,..._0xf968e9][_0xf17ec7(0x68)]('\x20');console['log']('*\x20'+_0x12b0e3);const _0x174659=spawnSync(_0x524ce4,_0xf968e9,{'cwd':_0x23df6c,'stdio':_0x5be00f,'env':process['env'],'shell':![]}),_0x4638c1=_0x174659[_0xf17ec7(0x84)];if(_0x4638c1===0x0)return{'ok':!![],'status':0x0};let _0xd7d440=_0xf17ec7(0x72)+(_0x4638c1??_0xf17ec7(0x71));if(_0x5be00f==='pipe'){const _0x27c9c6=_0x174659[_0xf17ec7(0x73)]?_0x174659['stderr'][_0xf17ec7(0x7c)]()[_0xf17ec7(0x85)]():'',_0x31ddc3=_0x174659[_0xf17ec7(0x86)]?_0x174659['stdout'][_0xf17ec7(0x7c)]()[_0xf17ec7(0x85)]():'';if(_0x27c9c6)_0xd7d440=_0x27c9c6;else{if(_0x31ddc3)_0xd7d440=_0x31ddc3;}}return{'ok':![],'status':_0x4638c1??null,'error':_0xd7d440};}export function runNpxSkillsAddGlobal(_0xa59143,_0x14f5f5,_0x5e9f66){const _0x5226ab=a115_0x1dad5a,_0x1df570=_0x5e9f66?.[_0x5226ab(0x78)]??'inherit',_0x172cb4=process['platform']===_0x5226ab(0x6f)?_0x5226ab(0x81):_0x5226ab(0x7d),_0x2cf2b7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x14f5f5,_0x5226ab(0x7a)],_0x3a914e=[_0x172cb4,..._0x2cf2b7][_0x5226ab(0x68)]('\x20');console[_0x5226ab(0x6c)]('*\x20'+_0x3a914e);const _0x5c5624=spawnSync(_0x172cb4,_0x2cf2b7,{'cwd':_0xa59143,'stdio':_0x1df570,'env':process[_0x5226ab(0x70)],'shell':![]}),_0x318835=_0x5c5624[_0x5226ab(0x84)];if(_0x318835===0x0)return{'ok':!![],'status':0x0};let _0x57bbc8='exit\x20'+(_0x318835??_0x5226ab(0x71));if(_0x1df570===_0x5226ab(0x79)){const _0x52dbc3=_0x5c5624['stderr']?_0x5c5624[_0x5226ab(0x73)][_0x5226ab(0x7c)]()['trim']():'',_0x42947e=_0x5c5624['stdout']?_0x5c5624[_0x5226ab(0x86)]['toString']()[_0x5226ab(0x85)]():'';if(_0x52dbc3)_0x57bbc8=_0x52dbc3;else{if(_0x42947e)_0x57bbc8=_0x42947e;}}return{'ok':![],'status':_0x318835??null,'error':_0x57bbc8};}
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(_0x246ba5,_0x21167f){const _0x5361d2=a116_0x4698,_0xacffb3=_0x246ba5();while(!![]){try{const _0x398f65=parseInt(_0x5361d2(0x13a))/0x1+parseInt(_0x5361d2(0x129))/0x2+-parseInt(_0x5361d2(0x11f))/0x3*(parseInt(_0x5361d2(0x124))/0x4)+parseInt(_0x5361d2(0x127))/0x5*(parseInt(_0x5361d2(0x121))/0x6)+-parseInt(_0x5361d2(0x130))/0x7*(parseInt(_0x5361d2(0x134))/0x8)+-parseInt(_0x5361d2(0x135))/0x9+parseInt(_0x5361d2(0x12d))/0xa;if(_0x398f65===_0x21167f)break;else _0xacffb3['push'](_0xacffb3['shift']());}catch(_0x496f34){_0xacffb3['push'](_0xacffb3['shift']());}}}(a116_0x4af3,0x40161));import{createRequire}from'node:module';import a116_0x3ccb2f from'node:os';function a116_0x4698(_0x989c1c,_0x5b5323){_0x989c1c=_0x989c1c-0x11f;const _0x4af3e4=a116_0x4af3();let _0x4698a7=_0x4af3e4[_0x989c1c];return _0x4698a7;}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');export async function reportCliHelpTrace(_0xbeaf4d,_0x43838a){const _0x4046f8=a116_0x4698;try{const {setTraceConfig:_0x36644c,sendNodeTraceLog:_0x28b467}=await import(_0x4046f8(0x123)),_0xbb7f08=getOtelLoggerPackageVersion(),_0x170595=await getSessionUserInfo(),_0x9e7199=_0x170595?.[_0x4046f8(0x12e)];_0x36644c({'otelLoggerVersion':_0xbb7f08,'serviceName':pkg[_0x4046f8(0x126)],'serviceVersion':BUILD_NUMBER?pkg[_0x4046f8(0x125)]+_0x4046f8(0x138)+BUILD_NUMBER:pkg[_0x4046f8(0x125)],'serviceEnv':process[_0x4046f8(0x12c)][_0x4046f8(0x133)]??(process[_0x4046f8(0x12c)][_0x4046f8(0x137)]==='1'?_0x4046f8(0x120):_0x4046f8(0x132)),'username':_0x9e7199?.[_0x4046f8(0x131)]??a116_0x3ccb2f[_0x4046f8(0x128)]()[_0x4046f8(0x131)]??'rabetbase-cli',..._0x9e7199&&{'nickname':_0x9e7199[_0x4046f8(0x139)]},..._0x9e7199?.['id']!=null&&_0x9e7199['id']!==''&&{'userId':String(_0x9e7199['id'])}}),_0x28b467({'traceName':'rabetbase-cli','version':pkg[_0x4046f8(0x125)],'spanName':_0x4046f8(0x136),'eventType':_0x4046f8(0x12f),'logData':{'rabetbase.help.kind':_0xbeaf4d,..._0x43838a?.[_0x4046f8(0x12a)]&&{'rabetbase.help.service':_0x43838a[_0x4046f8(0x12a)]}}});}catch(_0xf4fe0d){console[_0x4046f8(0x12b)](_0x4046f8(0x122),_0xf4fe0d);}}function a116_0x4af3(){const _0x1a7f4c=['4560380lJhlNK','user','manual','7Izirog','username','production','RABETBASE_ENV','3203848ltKsdt','2402199GLXUmq','cli.help','RABETBASE_E2E_DAILY','+build.','nickname','160177AYGBRO','1296111JFvdmo','daily','6MTBmBT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','@yuntoo/otel-logger/node','4qCwdcS','version','name','2198705PsjENQ','userInfo','611940CraseR','service','error','env'];a116_0x4af3=function(){return _0x1a7f4c;};return a116_0x4af3();}
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(_0x2a8fc7,_0x42ff5a){const _0x1c26ee=a118_0x4feb,_0xb834e3=_0x2a8fc7();while(!![]){try{const _0x2c279f=-parseInt(_0x1c26ee(0x1de))/0x1+-parseInt(_0x1c26ee(0x1d7))/0x2*(parseInt(_0x1c26ee(0x1dc))/0x3)+parseInt(_0x1c26ee(0x1d5))/0x4+-parseInt(_0x1c26ee(0x1e2))/0x5*(-parseInt(_0x1c26ee(0x1d6))/0x6)+-parseInt(_0x1c26ee(0x1d4))/0x7*(-parseInt(_0x1c26ee(0x1d3))/0x8)+-parseInt(_0x1c26ee(0x1e1))/0x9*(parseInt(_0x1c26ee(0x1e0))/0xa)+parseInt(_0x1c26ee(0x1dd))/0xb;if(_0x2c279f===_0x42ff5a)break;else _0xb834e3['push'](_0xb834e3['shift']());}catch(_0x2bb079){_0xb834e3['push'](_0xb834e3['shift']());}}}(a118_0x371c,0x21e0f));let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{const _0x5c285a=a118_0x4feb;try{const {shutdownNodeTraces:_0x28c88f}=await import(_0x5c285a(0x1df));await _0x28c88f();}catch{}})()),shutdownPromise;}function a118_0x4feb(_0x3fbcdf,_0x5dcd4c){_0x3fbcdf=_0x3fbcdf-0x1d2;const _0x371c1b=a118_0x371c();let _0x4feb11=_0x371c1b[_0x3fbcdf];return _0x4feb11;}function a118_0x371c(){const _0x1672e5=['215cbvkvJ','SIGINT','64YUacCw','150108RQJYvB','741836CGIoyA','28554UwRLYV','14918PCohnx','once','then','SIGTERM','exit','57pmHOtT','1267288JXUPXI','248458qyGIQQ','@yuntoo/otel-logger/node','42260DLfRYB','315OcVzzZ'];a118_0x371c=function(){return _0x1672e5;};return a118_0x371c();}export function registerOtelShutdownOnExit(){const _0x22a959=a118_0x4feb;process[_0x22a959(0x1d8)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5617f8=()=>{const _0xb713ac=_0x22a959;void flushOtelNodeIfUsed()[_0xb713ac(0x1d9)](()=>process[_0xb713ac(0x1db)](0x0));};process[_0x22a959(0x1d8)](_0x22a959(0x1d2),_0x5617f8),process[_0x22a959(0x1d8)](_0x22a959(0x1da),_0x5617f8);}export async function exitWithOtelShutdown(_0x53acc3){const _0xd56ff2=a118_0x4feb;await flushOtelNodeIfUsed(),process[_0xd56ff2(0x1db)](_0x53acc3);}
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_0x13ee0f=a122_0x2e28;(function(_0x2fb530,_0x883885){const _0xb7c462=a122_0x2e28,_0xd40f55=_0x2fb530();while(!![]){try{const _0x181314=-parseInt(_0xb7c462(0x1ea))/0x1*(parseInt(_0xb7c462(0x1e3))/0x2)+parseInt(_0xb7c462(0x1d2))/0x3+parseInt(_0xb7c462(0x1e7))/0x4*(-parseInt(_0xb7c462(0x1c1))/0x5)+-parseInt(_0xb7c462(0x1c6))/0x6+parseInt(_0xb7c462(0x1c0))/0x7*(parseInt(_0xb7c462(0x1e4))/0x8)+-parseInt(_0xb7c462(0x1f2))/0x9*(-parseInt(_0xb7c462(0x1eb))/0xa)+parseInt(_0xb7c462(0x1d1))/0xb;if(_0x181314===_0x883885)break;else _0xd40f55['push'](_0xd40f55['shift']());}catch(_0x5b5a98){_0xd40f55['push'](_0xd40f55['shift']());}}}(a122_0x39a2,0xbb8de));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x13ee0f(0x1c8),'description':a122_0x13ee0f(0x1dd),'folders':[a122_0x13ee0f(0x1e9),'.cursor'],'files':[{'type':a122_0x13ee0f(0x1ce),'path':'.cursor/skills/rabetbase.md','template':a122_0x13ee0f(0x1c4)}]},'windsurf':{'name':a122_0x13ee0f(0x1d4),'description':'Windsurf\x20IDE','folders':[a122_0x13ee0f(0x1c5)],'files':[{'type':'file','path':a122_0x13ee0f(0x1ca),'template':a122_0x13ee0f(0x1c4)}]},'claude':{'name':a122_0x13ee0f(0x1de),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a122_0x13ee0f(0x1ce),'path':a122_0x13ee0f(0x1cb),'template':'SKILL.md.tpl'}]},'cline':{'name':a122_0x13ee0f(0x1d8),'description':a122_0x13ee0f(0x1dc),'folders':[a122_0x13ee0f(0x1ec)],'files':[{'type':a122_0x13ee0f(0x1ce),'path':'.cline/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codex':{'name':a122_0x13ee0f(0x1ee),'description':a122_0x13ee0f(0x1e2),'folders':[a122_0x13ee0f(0x1e0)],'files':[{'type':'file','path':a122_0x13ee0f(0x1e6),'template':a122_0x13ee0f(0x1c4)}]},'opencode':{'name':a122_0x13ee0f(0x1f5),'description':'OpenCode\x20IDE','folders':[a122_0x13ee0f(0x1d0)],'files':[{'type':'file','path':a122_0x13ee0f(0x1c2),'template':a122_0x13ee0f(0x1c4)}]},'qoder':{'name':a122_0x13ee0f(0x1c9),'description':a122_0x13ee0f(0x1f1),'folders':['.qoder'],'files':[{'type':'file','path':a122_0x13ee0f(0x1e1),'template':a122_0x13ee0f(0x1c4)},{'type':a122_0x13ee0f(0x1ce),'path':'.qoder/skills/lovrabet/SKILL.md','template':a122_0x13ee0f(0x1c4)}]},'codebuddy':{'name':'CodeBuddy','description':a122_0x13ee0f(0x1df),'folders':['.codebuddy'],'files':[{'type':a122_0x13ee0f(0x1ce),'path':a122_0x13ee0f(0x1bf),'template':a122_0x13ee0f(0x1c4)}]},'trae':{'name':a122_0x13ee0f(0x1d6),'description':a122_0x13ee0f(0x1d9),'folders':[a122_0x13ee0f(0x1cd)],'files':[{'type':a122_0x13ee0f(0x1ce),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a122_0x39a2(){const _0x5ecbe3=['CodeBuddy\x20IDE','.codex','.qoder/rules/rabetbase.md','Codex\x20IDE','1526GQQDbz','8mFzLOv','.agent','.codex/skills/lovrabet/SKILL.md','1688FszMAM','cursor','.cursorrules','280fLNipC','50PLFltr','.cline','.agent/skills/lovrabet/SKILL.md','Codex','windsurf','codebuddy','Qoder\x20IDE','2372355JUUYer','claude','cline','OpenCode','.codebuddy/skills/lovrabet/SKILL.md','1202369SLjAZV','16420cGckKO','.opencode/skills/lovrabet/SKILL.md','codex','SKILL.md.tpl','.windsurf','2126250IcsvBk','Antigravity','Cursor','Qoder','.windsurf/workflows/rabetbase.md','.claude/skills/lovrabet/SKILL.md','agent','.trae','file','trae','.opencode','5955136MVTzFp','2072901tQGkOk','antigravity','Windsurf','opencode','Trae','qoder','Cline','Trae\x20IDE','其他\x20(通用模板)','Antigravity\x20IDE','Cline\x20IDE','Cursor\x20IDE','Claude\x20Code'];a122_0x39a2=function(){return _0x5ecbe3;};return a122_0x39a2();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x13ee0f(0x1da),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':a122_0x13ee0f(0x1ce),'path':a122_0x13ee0f(0x1ed),'template':a122_0x13ee0f(0x1c4)}]},'antigravity':{'name':a122_0x13ee0f(0x1c7),'description':a122_0x13ee0f(0x1db),'folders':[a122_0x13ee0f(0x1e5)],'files':[{'type':a122_0x13ee0f(0x1ce),'path':'.agent/skills/lovrabet/SKILL.md','template':a122_0x13ee0f(0x1c4)}]}};export const CORE_IDE_LIST=[a122_0x13ee0f(0x1f3),'cline',a122_0x13ee0f(0x1f0),a122_0x13ee0f(0x1c3),'cursor','opencode',a122_0x13ee0f(0x1d7),'trae',a122_0x13ee0f(0x1ef)];export const IDE_LIST=[a122_0x13ee0f(0x1d3),a122_0x13ee0f(0x1f3),a122_0x13ee0f(0x1f4),a122_0x13ee0f(0x1f0),a122_0x13ee0f(0x1c3),'cursor',a122_0x13ee0f(0x1d5),a122_0x13ee0f(0x1d7),a122_0x13ee0f(0x1cf),a122_0x13ee0f(0x1ef),a122_0x13ee0f(0x1cc)];function a122_0x2e28(_0x562200,_0x576c7e){_0x562200=_0x562200-0x1bf;const _0x39a2c3=a122_0x39a2();let _0x2e2820=_0x39a2c3[_0x562200];return _0x2e2820;}export const ALL_CORE_IDES=['cursor',a122_0x13ee0f(0x1ef),a122_0x13ee0f(0x1f3),'cline',a122_0x13ee0f(0x1c3),a122_0x13ee0f(0x1d5),a122_0x13ee0f(0x1d7),'codebuddy',a122_0x13ee0f(0x1cf)];export const MCP_IDES=new Set([a122_0x13ee0f(0x1e8),a122_0x13ee0f(0x1f3)]);
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(_0x40ccbd,_0x3aa8f5){const _0x1b8803=a123_0x467f,_0x1fc4a5=_0x40ccbd();while(!![]){try{const _0x37c4b7=-parseInt(_0x1b8803(0xa0))/0x1+-parseInt(_0x1b8803(0x9d))/0x2+-parseInt(_0x1b8803(0x97))/0x3+-parseInt(_0x1b8803(0x94))/0x4+parseInt(_0x1b8803(0xa1))/0x5*(-parseInt(_0x1b8803(0x9f))/0x6)+-parseInt(_0x1b8803(0x95))/0x7*(-parseInt(_0x1b8803(0x99))/0x8)+parseInt(_0x1b8803(0x9b))/0x9;if(_0x37c4b7===_0x3aa8f5)break;else _0x1fc4a5['push'](_0x1fc4a5['shift']());}catch(_0x6f2042){_0x1fc4a5['push'](_0x1fc4a5['shift']());}}}(a123_0x3ff8,0xddddc));import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x2e1263=a123_0x467f;try{const _0x2a857d=getTemplateBaseUrl(),_0x3cc475=_0x2a857d+'/config.json',_0x3d1fd4=await fetch(_0x3cc475,{'headers':{'Accept':'application/json'}});if(!_0x3d1fd4['ok'])return null;const _0x3bcf2d=await _0x3d1fd4[_0x2e1263(0x9e)]();if(!_0x3bcf2d[_0x2e1263(0x96)]?.['stableVersion']||!_0x3bcf2d['sdk']?.[_0x2e1263(0x9c)]?.[_0x2e1263(0x9a)])return null;return _0x3bcf2d;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a123_0x467f(_0x1da21a,_0x36d371){_0x1da21a=_0x1da21a-0x94;const _0x3ff8c7=a123_0x3ff8();let _0x467f27=_0x3ff8c7[_0x1da21a];return _0x467f27;}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x5c96a9=a123_0x467f,_0x2ca9b8=Date[_0x5c96a9(0x98)]();if(cachedConfig&&_0x2ca9b8-cacheTime<CACHE_TTL)return cachedConfig;const _0x386db0=await fetchCdnConfig();return _0x386db0&&(cachedConfig=_0x386db0,cacheTime=_0x2ca9b8),_0x386db0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a123_0x3ff8(){const _0x5209ae=['27149724DsKrKo','node','1631710jRgROx','json','7826022GCIHHS','5722FcwmYv','5hoNBhe','1381144jabYLT','21grkZod','cli','3934743XkOnsq','now','4466424KBWFsS','stableVersion'];a123_0x3ff8=function(){return _0x5209ae;};return a123_0x3ff8();}
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();}
@@ -1 +1 @@
1
- const a124_0x2b468d=a124_0x5d7c;(function(_0x13f9d9,_0x51938b){const _0x5bc95f=a124_0x5d7c,_0x331626=_0x13f9d9();while(!![]){try{const _0x2a47df=-parseInt(_0x5bc95f(0xb2))/0x1*(parseInt(_0x5bc95f(0xc7))/0x2)+parseInt(_0x5bc95f(0xc2))/0x3+parseInt(_0x5bc95f(0xae))/0x4+-parseInt(_0x5bc95f(0xb1))/0x5+parseInt(_0x5bc95f(0xb3))/0x6+parseInt(_0x5bc95f(0xbf))/0x7*(-parseInt(_0x5bc95f(0xb0))/0x8)+parseInt(_0x5bc95f(0xa9))/0x9*(parseInt(_0x5bc95f(0xa7))/0xa);if(_0x2a47df===_0x51938b)break;else _0x331626['push'](_0x331626['shift']());}catch(_0x2dc79a){_0x331626['push'](_0x331626['shift']());}}}(a124_0x3086,0xea9ce));import a124_0x29ce16 from'node:fs';import a124_0x4572fb from'node:path';import a124_0x32ced0 from'semver';import{getCdnConfig}from'./cdn-config.js';function a124_0x3086(){const _0x1248c5=['stableVersion','2653809uQcXGV','package.json','1.2.0','packageName','\x20\x20\x20Upgrade\x20command:\x20','3204858NvVkrr','@lovrabet/sdk','dependencies','utf8','\x20\x20\x20Stable\x20version:\x20','existsSync','version','\x1b[1m','log','14707430xFuVQv','minVersion','9gVCMMS','node','all','node_modules','utf-8','7488180kkkpHh','readFileSync','2711320budIFH','8829180gRRcrq','1kqOWhv','2644578mrTzfB','needsUpgrade','\x1b[33m','coerce','some','sdk','join','\x1b[0m','parse','latest','↪\x20SDK\x20update\x20available','test','7rvEyZH','npm\x20install\x20'];a124_0x3086=function(){return _0x1248c5;};return a124_0x3086();}const FALLBACK_MIN_SDK_VERSION=a124_0x2b468d(0xc4);function a124_0x5d7c(_0x5687bb,_0x479f4c){_0x5687bb=_0x5687bb-0xa2;const _0x308646=a124_0x3086();let _0x5d7c32=_0x308646[_0x5687bb];return _0x5d7c32;}function isNonNumericVersion(_0x4523f8){const _0x16feda=a124_0x2b468d,_0x519712=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x519712[_0x16feda(0xb7)](_0x1bb5e1=>_0x1bb5e1[_0x16feda(0xbe)](_0x4523f8));}function getInstalledVersion(_0xeadd20,_0x29b7d9){const _0x5ad3e3=a124_0x2b468d;try{const _0x1defeb=a124_0x4572fb[_0x5ad3e3(0xb9)](_0xeadd20,_0x5ad3e3(0xac),_0x29b7d9,_0x5ad3e3(0xc3));if(a124_0x29ce16[_0x5ad3e3(0xa3)](_0x1defeb)){const _0x24ea4a=JSON[_0x5ad3e3(0xbb)](a124_0x29ce16[_0x5ad3e3(0xaf)](_0x1defeb,_0x5ad3e3(0xad)));return _0x24ea4a['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5acc84=a124_0x2b468d;try{const _0x266e1a=await getCdnConfig();return _0x266e1a?.['sdk']?.[_0x5acc84(0xaa)]?.[_0x5acc84(0xc1)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x305864=a124_0x2b468d;try{const _0x1e159c=await getCdnConfig();return _0x1e159c?.[_0x305864(0xb8)]?.[_0x305864(0xaa)]?.['packageName']||_0x305864(0xc8);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x15d2cf){const _0x83fe14=a124_0x2b468d,_0x101d72=a124_0x4572fb['join'](_0x15d2cf,_0x83fe14(0xc3)),[_0x271345,_0x548320]=await Promise[_0x83fe14(0xab)]([getSdkStableVersion(),getSdkPackageName()]),_0x5c4c47=_0x271345||FALLBACK_MIN_SDK_VERSION;if(!a124_0x29ce16[_0x83fe14(0xa3)](_0x101d72))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c4c47,'packageName':_0x548320,'stableVersion':_0x271345};try{const _0x5283ba=JSON[_0x83fe14(0xbb)](a124_0x29ce16[_0x83fe14(0xaf)](_0x101d72,'utf8')),_0x23649e=_0x5283ba[_0x83fe14(0xc9)]||{},_0x196d3c=_0x5283ba['devDependencies']||{},_0x5aee66=_0x23649e[_0x548320]||_0x196d3c[_0x548320];if(!_0x5aee66)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c4c47,'packageName':_0x548320,'stableVersion':_0x271345};let _0xefbef4=getInstalledVersion(_0x15d2cf,_0x548320);!_0xefbef4&&(_0xefbef4=_0x5aee66);if(isNonNumericVersion(_0x5aee66))return{'installed':!![],'version':_0xefbef4,'needsUpgrade':![],'minVersion':_0x5c4c47,'packageName':_0x548320,'stableVersion':_0x271345};const _0x19b3ab=a124_0x32ced0[_0x83fe14(0xb6)](_0xefbef4),_0x49a3e2=a124_0x32ced0[_0x83fe14(0xb6)](_0x5c4c47),_0x195146=_0x19b3ab&&_0x49a3e2?a124_0x32ced0['lt'](_0x19b3ab,_0x49a3e2):![];return{'installed':!![],'version':_0xefbef4,'needsUpgrade':_0x195146,'minVersion':_0x5c4c47,'packageName':_0x548320,'stableVersion':_0x271345};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c4c47,'packageName':_0x548320,'stableVersion':_0x271345};}}export function checkSdkVersionSync(_0x109c5b){const _0x220836=a124_0x2b468d,_0x3b218e=a124_0x4572fb['join'](_0x109c5b,_0x220836(0xc3)),_0x4642d5=_0x220836(0xc8);if(!a124_0x29ce16['existsSync'](_0x3b218e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4642d5,'stableVersion':null};try{const _0x24d3bf=JSON[_0x220836(0xbb)](a124_0x29ce16[_0x220836(0xaf)](_0x3b218e,_0x220836(0xca))),_0x460d96=_0x24d3bf[_0x220836(0xc9)]||{},_0x360bda=_0x24d3bf['devDependencies']||{},_0x10d47a=_0x460d96[_0x4642d5]||_0x360bda[_0x4642d5];if(!_0x10d47a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4642d5,'stableVersion':null};let _0x3edfcc=getInstalledVersion(_0x109c5b,_0x4642d5);!_0x3edfcc&&(_0x3edfcc=_0x10d47a);if(isNonNumericVersion(_0x10d47a))return{'installed':!![],'version':_0x3edfcc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4642d5,'stableVersion':null};const _0x2ecd55=a124_0x32ced0[_0x220836(0xb6)](_0x3edfcc),_0x5c1c73=_0x2ecd55?a124_0x32ced0['lt'](_0x2ecd55,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3edfcc,'needsUpgrade':_0x5c1c73,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4642d5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4642d5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5e9a72){const _0x3211c5=a124_0x2b468d;if(!_0x5e9a72[_0x3211c5(0xb4)])return;const _0x13d776=_0x3211c5(0xb5),_0x977de1=_0x3211c5(0xba),_0x43820f=_0x3211c5(0xa5),_0x5b2097=_0x5e9a72[_0x3211c5(0xc5)]||_0x3211c5(0xc8),_0x3fd1fc=_0x5e9a72['stableVersion']||_0x5e9a72[_0x3211c5(0xa8)],_0x14fe04=_0x3211c5(0xc0)+_0x5b2097+'@'+(_0x3fd1fc||_0x3211c5(0xbc));console['log'](),console['log'](''+_0x13d776+_0x43820f+_0x3211c5(0xbd)+_0x977de1),console[_0x3211c5(0xa6)](_0x13d776+'\x20\x20\x20Current\x20version:\x20'+_0x5b2097+'@'+_0x5e9a72[_0x3211c5(0xa4)]+_0x977de1),console[_0x3211c5(0xa6)](_0x13d776+_0x3211c5(0xa2)+_0x3fd1fc+_0x977de1),console[_0x3211c5(0xa6)](_0x13d776+_0x3211c5(0xc6)+_0x14fe04+_0x977de1),console[_0x3211c5(0xa6)]();}
1
+ const a113_0x1b3674=a113_0x4d0b;(function(_0x3c355e,_0x33c7d7){const _0x11bd3f=a113_0x4d0b,_0x5809fc=_0x3c355e();while(!![]){try{const _0x1f504b=-parseInt(_0x11bd3f(0x97))/0x1+parseInt(_0x11bd3f(0xb2))/0x2*(-parseInt(_0x11bd3f(0x99))/0x3)+-parseInt(_0x11bd3f(0x90))/0x4+-parseInt(_0x11bd3f(0xa2))/0x5*(parseInt(_0x11bd3f(0xa6))/0x6)+parseInt(_0x11bd3f(0xa7))/0x7+-parseInt(_0x11bd3f(0x9b))/0x8+parseInt(_0x11bd3f(0xb1))/0x9;if(_0x1f504b===_0x33c7d7)break;else _0x5809fc['push'](_0x5809fc['shift']());}catch(_0x8ffd33){_0x5809fc['push'](_0x5809fc['shift']());}}}(a113_0x56f2,0xde944));import a113_0x4d47af from'node:fs';import a113_0x5e3595 from'node:path';import a113_0x14691e from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a113_0x1b3674(0xaa);function isNonNumericVersion(_0x5b901c){const _0x1dbe82=a113_0x1b3674,_0x5093cf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5093cf[_0x1dbe82(0x91)](_0x1479a6=>_0x1479a6[_0x1dbe82(0xa8)](_0x5b901c));}function getInstalledVersion(_0x42e816,_0x30ec2a){const _0x16b158=a113_0x1b3674;try{const _0xccd2f5=a113_0x5e3595[_0x16b158(0x9d)](_0x42e816,_0x16b158(0xa4),_0x30ec2a,_0x16b158(0xaf));if(a113_0x4d47af[_0x16b158(0xac)](_0xccd2f5)){const _0x9b9b80=JSON['parse'](a113_0x4d47af['readFileSync'](_0xccd2f5,_0x16b158(0x98)));return _0x9b9b80[_0x16b158(0xa0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3fb7cc=a113_0x1b3674;try{const _0x4b52a2=await getCdnConfig();return _0x4b52a2?.[_0x3fb7cc(0xa1)]?.[_0x3fb7cc(0x93)]?.[_0x3fb7cc(0xae)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x50cd5a=a113_0x1b3674;try{const _0x149e70=await getCdnConfig();return _0x149e70?.[_0x50cd5a(0xa1)]?.[_0x50cd5a(0x93)]?.[_0x50cd5a(0x9f)]||_0x50cd5a(0x9c);}catch{return _0x50cd5a(0x9c);}}export async function checkSdkVersion(_0x227012){const _0x11249e=a113_0x1b3674,_0x43ddde=a113_0x5e3595[_0x11249e(0x9d)](_0x227012,_0x11249e(0xaf)),[_0x13f6d2,_0x27655b]=await Promise[_0x11249e(0xab)]([getSdkStableVersion(),getSdkPackageName()]),_0x218baa=_0x13f6d2||FALLBACK_MIN_SDK_VERSION;if(!a113_0x4d47af[_0x11249e(0xac)](_0x43ddde))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218baa,'packageName':_0x27655b,'stableVersion':_0x13f6d2};try{const _0x2d14b4=JSON[_0x11249e(0x96)](a113_0x4d47af[_0x11249e(0xa5)](_0x43ddde,_0x11249e(0x95))),_0x22ac9e=_0x2d14b4['dependencies']||{},_0x29d748=_0x2d14b4[_0x11249e(0xa9)]||{},_0x43b1b3=_0x22ac9e[_0x27655b]||_0x29d748[_0x27655b];if(!_0x43b1b3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218baa,'packageName':_0x27655b,'stableVersion':_0x13f6d2};let _0x2f14ac=getInstalledVersion(_0x227012,_0x27655b);!_0x2f14ac&&(_0x2f14ac=_0x43b1b3);if(isNonNumericVersion(_0x43b1b3))return{'installed':!![],'version':_0x2f14ac,'needsUpgrade':![],'minVersion':_0x218baa,'packageName':_0x27655b,'stableVersion':_0x13f6d2};const _0x431dde=a113_0x14691e['coerce'](_0x2f14ac),_0x9f14ed=a113_0x14691e[_0x11249e(0x92)](_0x218baa),_0x1e912a=_0x431dde&&_0x9f14ed?a113_0x14691e['lt'](_0x431dde,_0x9f14ed):![];return{'installed':!![],'version':_0x2f14ac,'needsUpgrade':_0x1e912a,'minVersion':_0x218baa,'packageName':_0x27655b,'stableVersion':_0x13f6d2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x218baa,'packageName':_0x27655b,'stableVersion':_0x13f6d2};}}function a113_0x56f2(){const _0x1d057b=['existsSync','↪\x20SDK\x20update\x20available','stableVersion','package.json','\x1b[33m','38264202obfITa','2410SGypAi','npm\x20install\x20','minVersion','\x1b[1m','needsUpgrade','dependencies','latest','3578468pklkvB','some','coerce','node','\x20\x20\x20Current\x20version:\x20','utf8','parse','1181641ZwKgxV','utf-8','1977WdQlKB','\x20\x20\x20Upgrade\x20command:\x20','5235280CowBRo','@lovrabet/sdk','join','log','packageName','version','sdk','5SCkkFp','\x1b[0m','node_modules','readFileSync','2984430TtKBCU','4775918YokzNv','test','devDependencies','1.2.0','all'];a113_0x56f2=function(){return _0x1d057b;};return a113_0x56f2();}export function checkSdkVersionSync(_0xa5475f){const _0x3cd1e9=a113_0x1b3674,_0x38290e=a113_0x5e3595[_0x3cd1e9(0x9d)](_0xa5475f,_0x3cd1e9(0xaf)),_0x52663e=_0x3cd1e9(0x9c);if(!a113_0x4d47af['existsSync'](_0x38290e))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52663e,'stableVersion':null};try{const _0x3e02d4=JSON[_0x3cd1e9(0x96)](a113_0x4d47af[_0x3cd1e9(0xa5)](_0x38290e,_0x3cd1e9(0x95))),_0x4ee214=_0x3e02d4[_0x3cd1e9(0x8e)]||{},_0x59b3b5=_0x3e02d4[_0x3cd1e9(0xa9)]||{},_0x32b6e4=_0x4ee214[_0x52663e]||_0x59b3b5[_0x52663e];if(!_0x32b6e4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52663e,'stableVersion':null};let _0xd28898=getInstalledVersion(_0xa5475f,_0x52663e);!_0xd28898&&(_0xd28898=_0x32b6e4);if(isNonNumericVersion(_0x32b6e4))return{'installed':!![],'version':_0xd28898,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52663e,'stableVersion':null};const _0x1a0855=a113_0x14691e[_0x3cd1e9(0x92)](_0xd28898),_0x137a3e=_0x1a0855?a113_0x14691e['lt'](_0x1a0855,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xd28898,'needsUpgrade':_0x137a3e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52663e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x52663e,'stableVersion':null};}}function a113_0x4d0b(_0xbc5244,_0x1f4311){_0xbc5244=_0xbc5244-0x8a;const _0x56f23b=a113_0x56f2();let _0x4d0bd8=_0x56f23b[_0xbc5244];return _0x4d0bd8;}export function printSdkUpgradeWarning(_0x19c89a){const _0x51ed95=a113_0x1b3674;if(!_0x19c89a[_0x51ed95(0x8d)])return;const _0xdf906e=_0x51ed95(0xb0),_0x3d4ea2=_0x51ed95(0xa3),_0x288cbc=_0x51ed95(0x8c),_0x1cf68b=_0x19c89a[_0x51ed95(0x9f)]||'@lovrabet/sdk',_0x54a012=_0x19c89a[_0x51ed95(0xae)]||_0x19c89a[_0x51ed95(0x8b)],_0x231999=_0x51ed95(0x8a)+_0x1cf68b+'@'+(_0x54a012||_0x51ed95(0x8f));console['log'](),console[_0x51ed95(0x9e)](''+_0xdf906e+_0x288cbc+_0x51ed95(0xad)+_0x3d4ea2),console['log'](_0xdf906e+_0x51ed95(0x94)+_0x1cf68b+'@'+_0x19c89a['version']+_0x3d4ea2),console[_0x51ed95(0x9e)](_0xdf906e+'\x20\x20\x20Stable\x20version:\x20'+_0x54a012+_0x3d4ea2),console[_0x51ed95(0x9e)](_0xdf906e+_0x51ed95(0x9a)+_0x231999+_0x3d4ea2),console['log']();}