@lovrabet/rabetbase-cli 2.0.11 → 2.0.13

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 (140) 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/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/pull.js +1 -0
  86. package/lib/commands/sql/save.js +1 -1
  87. package/lib/commands/sql/shared.js +1 -0
  88. package/lib/commands/sql/validate.js +1 -1
  89. package/lib/constant/cli.js +1 -1
  90. package/lib/constant/domain.js +1 -1
  91. package/lib/constant/env.js +1 -1
  92. package/lib/constant/paths.js +1 -1
  93. package/lib/context.js +1 -1
  94. package/lib/core/alias-resolver.js +1 -1
  95. package/lib/core/api-client.js +1 -1
  96. package/lib/core/bff/config.js +1 -1
  97. package/lib/core/bff/file-system.js +1 -1
  98. package/lib/core/bff/hash.js +1 -1
  99. package/lib/core/bff/lock.js +1 -1
  100. package/lib/core/bff/utils.js +1 -1
  101. package/lib/core/db-resolver.js +1 -1
  102. package/lib/core/sql-validator.js +1 -1
  103. package/lib/errors.js +1 -1
  104. package/lib/framework/build-all-flags.js +1 -1
  105. package/lib/framework/flags.js +1 -1
  106. package/lib/framework/help.js +1 -1
  107. package/lib/framework/index.js +1 -1
  108. package/lib/framework/output.js +1 -1
  109. package/lib/framework/response.js +1 -1
  110. package/lib/framework/runner.js +1 -1
  111. package/lib/framework/schema-export.js +1 -1
  112. package/lib/framework/types.js +1 -1
  113. package/lib/generated/build-info.js +1 -1
  114. package/lib/help.js +1 -1
  115. package/lib/skills/main.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/telemetry/cli-command-trace.js +1 -1
  118. package/lib/telemetry/cli-help-trace.js +1 -1
  119. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  120. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  121. package/lib/telemetry/send-cli-trace-log.js +1 -1
  122. package/lib/utils/ai_config.js +1 -1
  123. package/lib/utils/apply-jq-filter.js +1 -1
  124. package/lib/utils/cdn-config.js +1 -1
  125. package/lib/utils/check-sdk-version.js +1 -1
  126. package/lib/utils/cli-version-check.js +1 -1
  127. package/lib/utils/config.js +1 -1
  128. package/lib/utils/copy-directory.js +1 -1
  129. package/lib/utils/file-utils.js +1 -1
  130. package/lib/utils/guides-cdn.js +1 -1
  131. package/lib/utils/http-client.js +1 -1
  132. package/lib/utils/is-non-interactive.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/rules-cdn.js +1 -1
  136. package/lib/utils/sleep.js +1 -1
  137. package/lib/utils/template-replacer.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/with-active-cookie.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4312bb,_0x58790b){const _0x4053e9=a111_0x4eae,_0x5e74f9=_0x4312bb();while(!![]){try{const _0x9ec494=-parseInt(_0x4053e9(0xc7))/0x1+-parseInt(_0x4053e9(0xc2))/0x2*(parseInt(_0x4053e9(0xc4))/0x3)+parseInt(_0x4053e9(0xc3))/0x4+parseInt(_0x4053e9(0xca))/0x5+-parseInt(_0x4053e9(0xcc))/0x6*(parseInt(_0x4053e9(0xc1))/0x7)+parseInt(_0x4053e9(0xc6))/0x8*(parseInt(_0x4053e9(0xc5))/0x9)+parseInt(_0x4053e9(0xbf))/0xa;if(_0x9ec494===_0x58790b)break;else _0x5e74f9['push'](_0x5e74f9['shift']());}catch(_0x1b6c66){_0x5e74f9['push'](_0x5e74f9['shift']());}}}(a111_0x5a59,0x3945d));function a111_0x4eae(_0x5787be,_0x327d68){_0x5787be=_0x5787be-0xbf;const _0x5a59e7=a111_0x5a59();let _0x4eaeb6=_0x5a59e7[_0x5787be];return _0x4eaeb6;}export function riskLevelOrder(_0x35ef39){const _0x1445fa=a111_0x4eae,_0x1efed1={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x1efed1[_0x35ef39??_0x1445fa(0xc0)]??0x0;}export function isValidFormat(_0x3438e2){const _0x2929b7=a111_0x4eae;return _0x3438e2==='json'||_0x3438e2===_0x2929b7(0xc8)||_0x3438e2===_0x2929b7(0xc9);}function a111_0x5a59(){const _0x29a221=['read','23723etxbBQ','2pmPgjN','1632064dUgrET','1042293ckHogu','3399705vlibWe','8lblKjv','53017hdfUrf','pretty','compress','608385xyILVI','table','798WHzmFy','1783360IyCSzX'];a111_0x5a59=function(){return _0x29a221;};return a111_0x5a59();}export function normalizeLegacyOutputFormat(_0x1a8794){const _0x1005fe=a111_0x4eae;if(_0x1a8794===_0x1005fe(0xcb))return _0x1005fe(0xc8);if(isValidFormat(_0x1a8794))return _0x1a8794;return undefined;}
1
+ (function(_0x3d643b,_0x512a41){const _0x3cb87c=a113_0x20ff,_0x392d1a=_0x3d643b();while(!![]){try{const _0x229eff=-parseInt(_0x3cb87c(0xb1))/0x1+parseInt(_0x3cb87c(0xad))/0x2+parseInt(_0x3cb87c(0xab))/0x3+parseInt(_0x3cb87c(0xb0))/0x4+parseInt(_0x3cb87c(0xb4))/0x5+-parseInt(_0x3cb87c(0xb2))/0x6+-parseInt(_0x3cb87c(0xae))/0x7;if(_0x229eff===_0x512a41)break;else _0x392d1a['push'](_0x392d1a['shift']());}catch(_0x5f2b1e){_0x392d1a['push'](_0x392d1a['shift']());}}}(a113_0x4be5,0x24bad));function a113_0x4be5(){const _0x2b7711=['table','272415QoohpT','869367NfUeYT','json','255284vbHtIn','2836120aTKDDT','pretty','1012976WfJQxf','17752iOCJpc','910806TlNvzr'];a113_0x4be5=function(){return _0x2b7711;};return a113_0x4be5();}export function riskLevelOrder(_0x259acc){const _0x5a7601={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x5a7601[_0x259acc??'read']??0x0;}export function isValidFormat(_0x235855){const _0x32d7a5=a113_0x20ff;return _0x235855===_0x32d7a5(0xac)||_0x235855===_0x32d7a5(0xaf)||_0x235855==='compress';}function a113_0x20ff(_0x4557cb,_0x3fbcfc){_0x4557cb=_0x4557cb-0xab;const _0x4be505=a113_0x4be5();let _0x20ffe6=_0x4be505[_0x4557cb];return _0x20ffe6;}export function normalizeLegacyOutputFormat(_0x5a0f51){const _0x44b641=a113_0x20ff;if(_0x5a0f51===_0x44b641(0xb3))return _0x44b641(0xaf);if(isValidFormat(_0x5a0f51))return _0x5a0f51;return undefined;}
@@ -1 +1 @@
1
- const a112_0x524620=a112_0x3a8e;function a112_0x3d87(){const _0x4a1ad8=['3773136CwgxEk','46dhCHXc','43005srzUAB','75783SYnteV','40NVOBoZ','332pONtNG','360959YFOEnp','6aa2634','1285696toqybW','3538701pCgXTS','2.0.11','2530430sJHGwg'];a112_0x3d87=function(){return _0x4a1ad8;};return a112_0x3d87();}(function(_0x546e2a,_0x2d58a6){const _0x3aba84=a112_0x3a8e,_0x2ab967=_0x546e2a();while(!![]){try{const _0x2f93a2=parseInt(_0x3aba84(0x103))/0x1+-parseInt(_0x3aba84(0x10a))/0x2*(parseInt(_0x3aba84(0x10c))/0x3)+parseInt(_0x3aba84(0x102))/0x4*(-parseInt(_0x3aba84(0x10b))/0x5)+-parseInt(_0x3aba84(0x109))/0x6+parseInt(_0x3aba84(0x108))/0x7+parseInt(_0x3aba84(0x105))/0x8+parseInt(_0x3aba84(0x106))/0x9*(parseInt(_0x3aba84(0x101))/0xa);if(_0x2f93a2===_0x2d58a6)break;else _0x2ab967['push'](_0x2ab967['shift']());}catch(_0x376ebd){_0x2ab967['push'](_0x2ab967['shift']());}}}(a112_0x3d87,0x81ecf));export const VERSION=a112_0x524620(0x107);export const GIT_TAG='v2.0.11';export const GIT_COMMIT=a112_0x524620(0x104);function a112_0x3a8e(_0x1aca07,_0x34adb3){_0x1aca07=_0x1aca07-0x101;const _0x3d87e4=a112_0x3d87();let _0x3a8eee=_0x3d87e4[_0x1aca07];return _0x3a8eee;}export const BUILD_TIME='2026-04-06T02:53:01.077Z';
1
+ const a114_0x498ace=a114_0x3267;function a114_0x3267(_0x394601,_0xb4279c){_0x394601=_0x394601-0x7a;const _0xbcc792=a114_0xbcc7();let _0x3267f4=_0xbcc792[_0x394601];return _0x3267f4;}(function(_0x5b1fb4,_0x2be7be){const _0x3ffb39=a114_0x3267,_0xffbcbe=_0x5b1fb4();while(!![]){try{const _0x39edd8=-parseInt(_0x3ffb39(0x80))/0x1+-parseInt(_0x3ffb39(0x81))/0x2*(-parseInt(_0x3ffb39(0x7f))/0x3)+-parseInt(_0x3ffb39(0x83))/0x4+-parseInt(_0x3ffb39(0x7b))/0x5+parseInt(_0x3ffb39(0x85))/0x6+-parseInt(_0x3ffb39(0x7d))/0x7+parseInt(_0x3ffb39(0x7a))/0x8*(parseInt(_0x3ffb39(0x7c))/0x9);if(_0x39edd8===_0x2be7be)break;else _0xffbcbe['push'](_0xffbcbe['shift']());}catch(_0x2ff60a){_0xffbcbe['push'](_0xffbcbe['shift']());}}}(a114_0xbcc7,0xd9e36));function a114_0xbcc7(){const _0xd221d5=['1341wHJfTD','6254836BiRbPj','2026-04-06T15:47:55.152Z','19914yDJUid','718149DMgtqv','90xJDxru','e8301dd','5118400Jccjof','2.0.13','3775764QqBeIS','v2.0.13','164352vnrZdb','1026465QobQsn'];a114_0xbcc7=function(){return _0xd221d5;};return a114_0xbcc7();}export const VERSION=a114_0x498ace(0x84);export const GIT_TAG=a114_0x498ace(0x86);export const GIT_COMMIT=a114_0x498ace(0x82);export const BUILD_TIME=a114_0x498ace(0x7e);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x288229,_0x29233a){var _0x5e4cf7=a113_0x36be,_0x1e1f28=_0x288229();while(!![]){try{var _0x5c5e3d=-parseInt(_0x5e4cf7(0xd7))/0x1+-parseInt(_0x5e4cf7(0xe7))/0x2*(-parseInt(_0x5e4cf7(0xdb))/0x3)+parseInt(_0x5e4cf7(0xdf))/0x4+-parseInt(_0x5e4cf7(0xe0))/0x5*(parseInt(_0x5e4cf7(0xd8))/0x6)+-parseInt(_0x5e4cf7(0xe3))/0x7*(-parseInt(_0x5e4cf7(0xda))/0x8)+-parseInt(_0x5e4cf7(0xde))/0x9*(-parseInt(_0x5e4cf7(0xe2))/0xa)+-parseInt(_0x5e4cf7(0xd6))/0xb*(parseInt(_0x5e4cf7(0xe5))/0xc);if(_0x5c5e3d===_0x29233a)break;else _0x1e1f28['push'](_0x1e1f28['shift']());}catch(_0x11b7c3){_0x1e1f28['push'](_0x1e1f28['shift']());}}}(a113_0x3bed,0x8a111));import a113_0x15a18c from'chalk';function a113_0x36be(_0x4b1632,_0x415c17){_0x4b1632=_0x4b1632-0xd6;var _0x3bed6b=a113_0x3bed();var _0x36be26=_0x3bed6b[_0x4b1632];return _0x36be26;}function a113_0x3bed(){var _0x336bdb=['93348IVoxWq','green','2HVcsPA','704YmwIeD','530819SoivAv','2720406yzzIZY','\x20to\x20view\x20available\x20commands.','262232XsWGYi','2830797Cxkjqm','log','\x20\x20Use\x20','6154641SxWYqF','238320AvQlJp','5rXqUzt','bold','10gCfGra','77SUPxfn','\x20--help'];a113_0x3bed=function(){return _0x336bdb;};return a113_0x3bed();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4ae51a=a113_0x36be;console[_0x4ae51a(0xdc)](),console[_0x4ae51a(0xdc)](a113_0x15a18c[_0x4ae51a(0xe6)][_0x4ae51a(0xe1)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x4ae51a(0xdd)+a113_0x15a18c['green'][_0x4ae51a(0xe1)](CLI_BIN_NAME+_0x4ae51a(0xe4))+_0x4ae51a(0xd9)),console[_0x4ae51a(0xdc)]();}
1
+ function a115_0x4c83(_0x180030,_0x35c207){_0x180030=_0x180030-0x177;var _0x461925=a115_0x4619();var _0x4c8311=_0x461925[_0x180030];return _0x4c8311;}(function(_0x529dc3,_0x31bfb3){var _0x34444=a115_0x4c83,_0x5430af=_0x529dc3();while(!![]){try{var _0x209c8e=parseInt(_0x34444(0x183))/0x1+parseInt(_0x34444(0x185))/0x2+-parseInt(_0x34444(0x179))/0x3+-parseInt(_0x34444(0x180))/0x4*(-parseInt(_0x34444(0x17b))/0x5)+-parseInt(_0x34444(0x17f))/0x6+-parseInt(_0x34444(0x17d))/0x7*(-parseInt(_0x34444(0x186))/0x8)+parseInt(_0x34444(0x178))/0x9*(-parseInt(_0x34444(0x182))/0xa);if(_0x209c8e===_0x31bfb3)break;else _0x5430af['push'](_0x5430af['shift']());}catch(_0x53349c){_0x5430af['push'](_0x5430af['shift']());}}}(a115_0x4619,0xcddbc));import a115_0x39cf73 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x568888=a115_0x4c83;console[_0x568888(0x17e)](),console[_0x568888(0x17e)](a115_0x39cf73[_0x568888(0x17a)][_0x568888(0x184)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x568888(0x17e)](_0x568888(0x177)+a115_0x39cf73[_0x568888(0x17a)][_0x568888(0x184)](CLI_BIN_NAME+_0x568888(0x181))+_0x568888(0x17c)),console[_0x568888(0x17e)]();}function a115_0x4619(){var _0x47c420=['2986512bnBrCg','green','2363135EgcumR','\x20to\x20view\x20available\x20commands.','884842vazYfP','log','5411994IlINXV','8XpZLNc','\x20--help','10JNZGPb','377273SWfiqh','bold','2532458hCrykq','40KoMuNa','\x20\x20Use\x20','4320783mFlnGS'];a115_0x4619=function(){return _0x47c420;};return a115_0x4619();}
@@ -1 +1 @@
1
- const a114_0x441970=a114_0x70ef;(function(_0x8d71f3,_0x577ee7){const _0x5c4d5f=a114_0x70ef,_0x51fe80=_0x8d71f3();while(!![]){try{const _0x15f52e=-parseInt(_0x5c4d5f(0x1b3))/0x1+-parseInt(_0x5c4d5f(0x197))/0x2*(parseInt(_0x5c4d5f(0x1b1))/0x3)+-parseInt(_0x5c4d5f(0x192))/0x4+parseInt(_0x5c4d5f(0x194))/0x5+-parseInt(_0x5c4d5f(0x1b2))/0x6+-parseInt(_0x5c4d5f(0x193))/0x7+parseInt(_0x5c4d5f(0x198))/0x8;if(_0x15f52e===_0x577ee7)break;else _0x51fe80['push'](_0x51fe80['shift']());}catch(_0x395710){_0x51fe80['push'](_0x51fe80['shift']());}}}(a114_0x1ceb,0x3d922));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x1a1996){const _0x38941c=a114_0x70ef,_0x5bd76e=[];for(const [_0x536173,_0xb92231]of Object[_0x38941c(0x19e)](_0x1a1996)){if(_0xb92231===!![]){const _0x3a7c26=_0x536173['replace'](/([A-Z])/g,_0x38941c(0x19b))[_0x38941c(0x1a6)]();_0x5bd76e[_0x38941c(0x1af)](_0x3a7c26);}}return _0x5bd76e;}export function parseDynamicFlags(){const _0x17574b=a114_0x70ef,_0x3e4d07=[];for(let _0x117e6f=0x3;_0x117e6f<process[_0x17574b(0x1b0)][_0x17574b(0x1ab)];_0x117e6f++){const _0x7c7722=process['argv'][_0x117e6f];if(_0x7c7722&&_0x7c7722[_0x17574b(0x1b5)]('--')){const _0x49568d=_0x7c7722[_0x17574b(0x196)](0x2);_0x49568d&&!_0x49568d[_0x17574b(0x1b4)]('=')&&_0x3e4d07[_0x17574b(0x1af)](_0x49568d);}}return _0x3e4d07;}export function getAllProvidedFlags(_0x3e8130){const _0x47e2c9=a114_0x70ef,_0x186518=camelCaseFlagsToKebab(_0x3e8130),_0x57a70a=parseDynamicFlags(),_0x5df453=new Set([..._0x186518,..._0x57a70a]);return Array[_0x47e2c9(0x1a1)](_0x5df453);}function a114_0x1ceb(){const _0x43ff08=['238497pbOQqT','651470UEtdVI','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','slice','2EKRHUo','9984424dsQDhL','skill','cwd','-$1','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','entries','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','enable-bff-save','from','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0aAvailable\x20commands:','不支持的命令:\x20','toLowerCase','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','add','--help','error','length','has','Equivalent\x20command:\x20','log','push','argv','174357DuVPYg','1437438eambjk','478986eRJbDg','includes','startsWith','\x20skill\x20--help\x0a\x20\x20','1261616hjMxzA'];a114_0x1ceb=function(){return _0x43ff08;};return a114_0x1ceb();}export function normalizeLegacyBffSaveFlags(_0x156eee){const _0x187366=a114_0x70ef,_0x2253db=new Set(_0x156eee);return _0x2253db[_0x187366(0x1ac)]('dangerously-bff-save')&&_0x2253db[_0x187366(0x1a8)](_0x187366(0x1a0)),Array['from'](_0x2253db);}function a114_0x70ef(_0x55c2d4,_0x231eba){_0x55c2d4=_0x55c2d4-0x191;const _0x1ceb76=a114_0x1ceb();let _0x70efc6=_0x1ceb76[_0x55c2d4];return _0x70efc6;}const SKILLS_INSTALL_COMMAND_LINE=a114_0x441970(0x19f);export async function skillsCommand(_0x4ef0f9,_0x42c747,_0x3c24f7){const _0x3fc9b4=a114_0x441970;logger[_0x3fc9b4(0x1a2)](process[_0x3fc9b4(0x19a)]());if(_0x3c24f7?.['help']||_0x4ef0f9===_0x3fc9b4(0x1a9)){showHelp();return;}console[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x19d)+(_0x4ef0f9||'(empty)')),console[_0x3fc9b4(0x1ae)](_0x3fc9b4(0x1a4)),console[_0x3fc9b4(0x1ae)]('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a7)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a3)),console[_0x3fc9b4(0x1ae)](''),console['log'](_0x3fc9b4(0x1ad)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x199),_0x3fc9b4(0x1a5)+_0x4ef0f9),process['exit'](0x1);}function showHelp(){const _0x2d780e=a114_0x441970;console[_0x2d780e(0x1ae)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x2d780e(0x191)+CLI_BIN_NAME+_0x2d780e(0x19c)+SKILLS_INSTALL_COMMAND_LINE+_0x2d780e(0x195));}
1
+ function a116_0x2dde(){const _0x2a8679=['754478evsOHj','3299840ENyKfi','dangerously-bff-save','help','add','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','24icQPkz','-$1','toLowerCase','log','from','4074nmJtwQ','enable-bff-save','Equivalent\x20command:\x20','1494670GPGpRO','length','2183082Klmaay','2382135fuxKJz','exit','\x20skill\x20--help\x0a\x20\x20','replace','cwd','909zdyYJO','--help','error','9ACwdHq','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','slice','不支持的命令:\x20','includes','1042636DMIzVB','push','Error:\x20Unsupported\x20command:\x20','argv'];a116_0x2dde=function(){return _0x2a8679;};return a116_0x2dde();}(function(_0x4bae23,_0x966ba3){const _0xf415=a116_0x276f,_0x3b7fee=_0x4bae23();while(!![]){try{const _0x59d310=parseInt(_0xf415(0xee))/0x1+parseInt(_0xf415(0xd7))/0x2*(-parseInt(_0xf415(0xe2))/0x3)+parseInt(_0xf415(0xef))/0x4+-parseInt(_0xf415(0xdd))/0x5+-parseInt(_0xf415(0xdc))/0x6+-parseInt(_0xf415(0xea))/0x7*(-parseInt(_0xf415(0xf4))/0x8)+parseInt(_0xf415(0xe5))/0x9*(-parseInt(_0xf415(0xda))/0xa);if(_0x59d310===_0x966ba3)break;else _0x3b7fee['push'](_0x3b7fee['shift']());}catch(_0x311f0d){_0x3b7fee['push'](_0x3b7fee['shift']());}}}(a116_0x2dde,0x66602));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x10ecd1){const _0x308bd3=a116_0x276f,_0x57c156=[];for(const [_0x50db4d,_0x92060d]of Object['entries'](_0x10ecd1)){if(_0x92060d===!![]){const _0x1a08c4=_0x50db4d[_0x308bd3(0xe0)](/([A-Z])/g,_0x308bd3(0xd3))[_0x308bd3(0xd4)]();_0x57c156[_0x308bd3(0xeb)](_0x1a08c4);}}return _0x57c156;}export function parseDynamicFlags(){const _0xf5066b=a116_0x276f,_0x21f6a1=[];for(let _0x3be648=0x3;_0x3be648<process[_0xf5066b(0xed)][_0xf5066b(0xdb)];_0x3be648++){const _0x2571c4=process[_0xf5066b(0xed)][_0x3be648];if(_0x2571c4&&_0x2571c4['startsWith']('--')){const _0x28ea49=_0x2571c4[_0xf5066b(0xe7)](0x2);_0x28ea49&&!_0x28ea49[_0xf5066b(0xe9)]('=')&&_0x21f6a1[_0xf5066b(0xeb)](_0x28ea49);}}return _0x21f6a1;}export function getAllProvidedFlags(_0x3162a3){const _0x330862=a116_0x276f,_0x420847=camelCaseFlagsToKebab(_0x3162a3),_0x17773c=parseDynamicFlags(),_0x3aee34=new Set([..._0x420847,..._0x17773c]);return Array[_0x330862(0xd6)](_0x3aee34);}export function normalizeLegacyBffSaveFlags(_0x5d9857){const _0x410a98=a116_0x276f,_0x584e40=new Set(_0x5d9857);return _0x584e40['has'](_0x410a98(0xf0))&&_0x584e40[_0x410a98(0xf2)](_0x410a98(0xd8)),Array[_0x410a98(0xd6)](_0x584e40);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x142aba,_0x62ff9d,_0x146aba){const _0x570555=a116_0x276f;logger['setLogPath'](process[_0x570555(0xe1)]());if(_0x146aba?.[_0x570555(0xf1)]||_0x142aba===_0x570555(0xe3)){showHelp();return;}console[_0x570555(0xe4)](_0x570555(0xec)+(_0x142aba||'(empty)')),console[_0x570555(0xd5)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x570555(0xd5)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x570555(0xd5)](''),console[_0x570555(0xd5)](_0x570555(0xd9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x570555(0xe4)]('skill',_0x570555(0xe8)+_0x142aba),process[_0x570555(0xde)](0x1);}function a116_0x276f(_0x23e187,_0x1d8cbc){_0x23e187=_0x23e187-0xd3;const _0x2ddedb=a116_0x2dde();let _0x276fdf=_0x2ddedb[_0x23e187];return _0x276fdf;}function showHelp(){const _0x429e01=a116_0x276f;console['log']('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x429e01(0xdf)+CLI_BIN_NAME+_0x429e01(0xe6)+SKILLS_INSTALL_COMMAND_LINE+_0x429e01(0xf3));}
@@ -1 +1 @@
1
- const a115_0x536a10=a115_0x1ce2;function a115_0x1ce2(_0x239248,_0x5d13bb){_0x239248=_0x239248-0x1c4;const _0x500225=a115_0x5002();let _0x1ce213=_0x500225[_0x239248];return _0x1ce213;}(function(_0x43caf5,_0x244173){const _0x28e2c3=a115_0x1ce2,_0x41995d=_0x43caf5();while(!![]){try{const _0x4a62ad=parseInt(_0x28e2c3(0x1db))/0x1*(parseInt(_0x28e2c3(0x1d9))/0x2)+-parseInt(_0x28e2c3(0x1e3))/0x3+parseInt(_0x28e2c3(0x1cf))/0x4*(parseInt(_0x28e2c3(0x1e0))/0x5)+parseInt(_0x28e2c3(0x1c5))/0x6*(-parseInt(_0x28e2c3(0x1e1))/0x7)+-parseInt(_0x28e2c3(0x1cc))/0x8+parseInt(_0x28e2c3(0x1df))/0x9*(parseInt(_0x28e2c3(0x1dc))/0xa)+-parseInt(_0x28e2c3(0x1c7))/0xb*(-parseInt(_0x28e2c3(0x1cd))/0xc);if(_0x4a62ad===_0x244173)break;else _0x41995d['push'](_0x41995d['shift']());}catch(_0x5a1be7){_0x41995d['push'](_0x41995d['shift']());}}}(a115_0x5002,0x2e2fe));import{spawnSync}from'node:child_process';function a115_0x5002(){const _0x1b324a=['517jokUFm','yes','skills','trim','exit\x20','1377240DMuwuH','102852vHUKiy','unknown','4MebZPM','join','inherit','toString','stdio','skill','lovrabet/lovrabet-skill','--global','npx','pipe','82334mLyghR','--skill','5vfZQFk','840UAtsYG','status','stderr','324PlRuFX','1559015iXdkaU','21721NgGEkT','remove','969693swzGyr','add','stdout','Lovrabet','462bwtbvv','log'];a115_0x5002=function(){return _0x1b324a;};return a115_0x5002();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a115_0x536a10(0x1c9);export const NPX_SKILLS_SUBCOMMAND_ADD=a115_0x536a10(0x1e4);export const NPX_SKILLS_FLAG_SKILL=a115_0x536a10(0x1da);export const RABETBASE_SKILL_SOURCE=a115_0x536a10(0x1d5);export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x536a10(0x1c4);export function buildNpxSkillsAddArgv(_0x427500=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x427500];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x536a10(0x1d7),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1d1eae,_0xf6389e){const _0x106e10=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a6a8=_0xf6389e?.[_0x106e10(0x1d3)]??_0x106e10(0x1d1),_0x5e9391=resolveNpmBin('npx'),_0x48892e=buildNpxSkillsAddArgv(_0xf6389e?.[_0x106e10(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME),_0x33d3d5=[_0x5e9391,..._0x48892e][_0x106e10(0x1d0)]('\x20');console[_0x106e10(0x1c6)]('*\x20'+_0x33d3d5);const _0x3abf7b=spawnSync(_0x5e9391,_0x48892e,{'cwd':_0x1d1eae,'stdio':_0x57a6a8,'env':process.env,'shell':![]}),_0x560ffe=_0x3abf7b[_0x106e10(0x1dd)];if(_0x560ffe===0x0)return{'ok':!![],'status':0x0};let _0x55695e=_0x106e10(0x1cb)+(_0x560ffe??_0x106e10(0x1ce));if(_0x57a6a8===_0x106e10(0x1d8)){const _0xfc28eb=_0x3abf7b['stderr']?_0x3abf7b[_0x106e10(0x1de)][_0x106e10(0x1d2)]()['trim']():'',_0x5621a3=_0x3abf7b[_0x106e10(0x1e5)]?_0x3abf7b[_0x106e10(0x1e5)]['toString']()[_0x106e10(0x1ca)]():'';if(_0xfc28eb)_0x55695e=_0xfc28eb;else{if(_0x5621a3)_0x55695e=_0x5621a3;}}return{'ok':![],'status':_0x560ffe??null,'error':_0x55695e};}export function runNpxSkillsRemove(_0x1e9179,_0x289f92){const _0x413889=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x157d19=_0x289f92?.[_0x413889(0x1d3)]??_0x413889(0x1d1),_0x51740c=resolveNpmBin(_0x413889(0x1d7)),_0x3a6c47=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x413889(0x1e2),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x289f92?.[_0x413889(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x289f92?.[_0x413889(0x1c8)]?['-y']:[]],_0x369f43=[_0x51740c,..._0x3a6c47][_0x413889(0x1d0)]('\x20');console[_0x413889(0x1c6)]('*\x20'+_0x369f43);const _0x42941d=spawnSync(_0x51740c,_0x3a6c47,{'cwd':_0x1e9179,'stdio':_0x157d19,'env':process.env,'shell':![]}),_0x207288=_0x42941d[_0x413889(0x1dd)];if(_0x207288===0x0)return{'ok':!![],'status':0x0};let _0x21f91b=_0x413889(0x1cb)+(_0x207288??_0x413889(0x1ce));if(_0x157d19===_0x413889(0x1d8)){const _0x4b0507=_0x42941d[_0x413889(0x1de)]?_0x42941d[_0x413889(0x1de)][_0x413889(0x1d2)]()[_0x413889(0x1ca)]():'',_0x5c945d=_0x42941d['stdout']?_0x42941d[_0x413889(0x1e5)][_0x413889(0x1d2)]()['trim']():'';if(_0x4b0507)_0x21f91b=_0x4b0507;else{if(_0x5c945d)_0x21f91b=_0x5c945d;}}return{'ok':![],'status':_0x207288??null,'error':_0x21f91b};}export function runNpxSkillsAddGlobal(_0x287539,_0x509399,_0x33d4a6){const _0x430759=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a8a0=_0x33d4a6?.[_0x430759(0x1d3)]??'inherit',_0x239209=resolveNpmBin(_0x430759(0x1d7)),_0x24e441=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x509399,_0x430759(0x1d6),..._0x33d4a6?.['yes']?['-y']:[]],_0x115b12=[_0x239209,..._0x24e441][_0x430759(0x1d0)]('\x20');console['log']('*\x20'+_0x115b12);const _0x1421ea=spawnSync(_0x239209,_0x24e441,{'cwd':_0x287539,'stdio':_0x57a8a0,'env':process.env,'shell':![]}),_0x4d5568=_0x1421ea[_0x430759(0x1dd)];if(_0x4d5568===0x0)return{'ok':!![],'status':0x0};let _0x1d009b=_0x430759(0x1cb)+(_0x4d5568??'unknown');if(_0x57a8a0==='pipe'){const _0x48214e=_0x1421ea['stderr']?_0x1421ea['stderr']['toString']()[_0x430759(0x1ca)]():'',_0x2e4c1c=_0x1421ea['stdout']?_0x1421ea['stdout']['toString']()[_0x430759(0x1ca)]():'';if(_0x48214e)_0x1d009b=_0x48214e;else{if(_0x2e4c1c)_0x1d009b=_0x2e4c1c;}}return{'ok':![],'status':_0x4d5568??null,'error':_0x1d009b};}
1
+ const a117_0x512d29=a117_0x4728;(function(_0x5d1b07,_0x5a4272){const _0x3b0a2e=a117_0x4728,_0x51a0d5=_0x5d1b07();while(!![]){try{const _0x4a0fe7=parseInt(_0x3b0a2e(0x10b))/0x1+parseInt(_0x3b0a2e(0x105))/0x2*(parseInt(_0x3b0a2e(0x11d))/0x3)+-parseInt(_0x3b0a2e(0x109))/0x4+-parseInt(_0x3b0a2e(0x101))/0x5+-parseInt(_0x3b0a2e(0x119))/0x6*(-parseInt(_0x3b0a2e(0x117))/0x7)+-parseInt(_0x3b0a2e(0x110))/0x8+parseInt(_0x3b0a2e(0x112))/0x9;if(_0x4a0fe7===_0x5a4272)break;else _0x51a0d5['push'](_0x51a0d5['shift']());}catch(_0x17a40b){_0x51a0d5['push'](_0x51a0d5['shift']());}}}(a117_0x15f5,0x7cbb3));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a117_0x15f5(){const _0x21eea5=['1094900teFqsC','--skill','status','npx','15018RWEqbZ','log','stdio','stderr','3925908esXqua','pipe','184271wqbSpR','add','skill','inherit','skills','496040GEEfGK','unknown','9530910nBoFpD','yes','exit\x20','stdout','join','42fiqBKg','--global','334866XEhjeG','remove','lovrabet/lovrabet-skill','toString','78hvwZCB','trim'];a117_0x15f5=function(){return _0x21eea5;};return a117_0x15f5();}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a117_0x512d29(0x10f);export const NPX_SKILLS_SUBCOMMAND_ADD=a117_0x512d29(0x10c);export const NPX_SKILLS_FLAG_SKILL=a117_0x512d29(0x102);export const RABETBASE_SKILL_SOURCE=a117_0x512d29(0x11b);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x26749c=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x26749c];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a117_0x512d29(0x104),...buildNpxSkillsAddArgv()][a117_0x512d29(0x116)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a117_0x4728(_0x595472,_0x7cab1e){_0x595472=_0x595472-0x100;const _0x15f511=a117_0x15f5();let _0x4728c5=_0x15f511[_0x595472];return _0x4728c5;}export function runNpxSkillsAdd(_0x3f3038,_0x21f630){const _0x2f18e0=a117_0x512d29;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5048ee=_0x21f630?.[_0x2f18e0(0x107)]??_0x2f18e0(0x10e),_0xb21f4f=resolveNpmBin(_0x2f18e0(0x104)),_0x2d5b19=buildNpxSkillsAddArgv(_0x21f630?.[_0x2f18e0(0x10d)]??DEFAULT_RABETBASE_SKILL_NAME),_0x38ff6d=[_0xb21f4f,..._0x2d5b19][_0x2f18e0(0x116)]('\x20');console[_0x2f18e0(0x106)]('*\x20'+_0x38ff6d);const _0x515100=spawnSync(_0xb21f4f,_0x2d5b19,{'cwd':_0x3f3038,'stdio':_0x5048ee,'env':process.env,'shell':![]}),_0x39f60b=_0x515100[_0x2f18e0(0x103)];if(_0x39f60b===0x0)return{'ok':!![],'status':0x0};let _0x42e586='exit\x20'+(_0x39f60b??_0x2f18e0(0x111));if(_0x5048ee===_0x2f18e0(0x10a)){const _0x29f88f=_0x515100[_0x2f18e0(0x108)]?_0x515100[_0x2f18e0(0x108)][_0x2f18e0(0x11c)]()[_0x2f18e0(0x100)]():'',_0x53deda=_0x515100[_0x2f18e0(0x115)]?_0x515100[_0x2f18e0(0x115)]['toString']()[_0x2f18e0(0x100)]():'';if(_0x29f88f)_0x42e586=_0x29f88f;else{if(_0x53deda)_0x42e586=_0x53deda;}}return{'ok':![],'status':_0x39f60b??null,'error':_0x42e586};}export function runNpxSkillsRemove(_0x2d3240,_0x28a54f){const _0x24a9c5=a117_0x512d29;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d4f0a=_0x28a54f?.[_0x24a9c5(0x107)]??'inherit',_0x4bea5b=resolveNpmBin(_0x24a9c5(0x104)),_0x47b2d3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x24a9c5(0x11a),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x28a54f?.[_0x24a9c5(0x10d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x28a54f?.[_0x24a9c5(0x113)]?['-y']:[]],_0x15ba82=[_0x4bea5b,..._0x47b2d3][_0x24a9c5(0x116)]('\x20');console[_0x24a9c5(0x106)]('*\x20'+_0x15ba82);const _0x4dd372=spawnSync(_0x4bea5b,_0x47b2d3,{'cwd':_0x2d3240,'stdio':_0x5d4f0a,'env':process.env,'shell':![]}),_0x5e7d41=_0x4dd372[_0x24a9c5(0x103)];if(_0x5e7d41===0x0)return{'ok':!![],'status':0x0};let _0x1dadc0=_0x24a9c5(0x114)+(_0x5e7d41??_0x24a9c5(0x111));if(_0x5d4f0a===_0x24a9c5(0x10a)){const _0x2a4ce0=_0x4dd372[_0x24a9c5(0x108)]?_0x4dd372['stderr'][_0x24a9c5(0x11c)]()[_0x24a9c5(0x100)]():'',_0x4b54c6=_0x4dd372[_0x24a9c5(0x115)]?_0x4dd372[_0x24a9c5(0x115)][_0x24a9c5(0x11c)]()[_0x24a9c5(0x100)]():'';if(_0x2a4ce0)_0x1dadc0=_0x2a4ce0;else{if(_0x4b54c6)_0x1dadc0=_0x4b54c6;}}return{'ok':![],'status':_0x5e7d41??null,'error':_0x1dadc0};}export function runNpxSkillsAddGlobal(_0x3f7d9d,_0x8162fe,_0x385c4d){const _0x5a2334=a117_0x512d29;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2befe9=_0x385c4d?.[_0x5a2334(0x107)]??_0x5a2334(0x10e),_0x2735ba=resolveNpmBin(_0x5a2334(0x104)),_0x409fde=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x8162fe,_0x5a2334(0x118),..._0x385c4d?.[_0x5a2334(0x113)]?['-y']:[]],_0x42526d=[_0x2735ba,..._0x409fde][_0x5a2334(0x116)]('\x20');console[_0x5a2334(0x106)]('*\x20'+_0x42526d);const _0x5e10a8=spawnSync(_0x2735ba,_0x409fde,{'cwd':_0x3f7d9d,'stdio':_0x2befe9,'env':process.env,'shell':![]}),_0x3b37a8=_0x5e10a8[_0x5a2334(0x103)];if(_0x3b37a8===0x0)return{'ok':!![],'status':0x0};let _0x36b2cf=_0x5a2334(0x114)+(_0x3b37a8??_0x5a2334(0x111));if(_0x2befe9===_0x5a2334(0x10a)){const _0x348db7=_0x5e10a8[_0x5a2334(0x108)]?_0x5e10a8[_0x5a2334(0x108)][_0x5a2334(0x11c)]()[_0x5a2334(0x100)]():'',_0x2b752e=_0x5e10a8[_0x5a2334(0x115)]?_0x5e10a8[_0x5a2334(0x115)][_0x5a2334(0x11c)]()[_0x5a2334(0x100)]():'';if(_0x348db7)_0x36b2cf=_0x348db7;else{if(_0x2b752e)_0x36b2cf=_0x2b752e;}}return{'ok':![],'status':_0x3b37a8??null,'error':_0x36b2cf};}
@@ -1 +1 @@
1
- (function(_0x27eea1,_0x3143a0){const _0x20e8cb=a116_0x2b15,_0x51a521=_0x27eea1();while(!![]){try{const _0x4ff8af=-parseInt(_0x20e8cb(0x198))/0x1+parseInt(_0x20e8cb(0x192))/0x2*(-parseInt(_0x20e8cb(0x199))/0x3)+parseInt(_0x20e8cb(0x19e))/0x4+-parseInt(_0x20e8cb(0x19f))/0x5+parseInt(_0x20e8cb(0x18d))/0x6*(parseInt(_0x20e8cb(0x194))/0x7)+parseInt(_0x20e8cb(0x18c))/0x8*(-parseInt(_0x20e8cb(0x193))/0x9)+parseInt(_0x20e8cb(0x19b))/0xa*(parseInt(_0x20e8cb(0x197))/0xb);if(_0x4ff8af===_0x3143a0)break;else _0x51a521['push'](_0x51a521['shift']());}catch(_0x21eea6){_0x51a521['push'](_0x51a521['shift']());}}}(a116_0x21ea,0x4f11f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a116_0x2b15(_0x223d5f,_0x19d61c){_0x223d5f=_0x223d5f-0x18c;const _0x21ea58=a116_0x21ea();let _0x2b15ca=_0x21ea58[_0x223d5f];return _0x2b15ca;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x791c83){const _0x174a5c=a116_0x2b15;return SENSITIVE_PATTERNS[_0x174a5c(0x191)](_0x19572f=>_0x19572f['test'](_0x791c83));}function sanitizeFlags(_0x12c5ff){const _0x797518=a116_0x2b15,_0x141e0c={};for(const [_0x35e6d5,_0xb69b11]of Object['entries'](_0x12c5ff)){isSensitiveKey(_0x35e6d5)?_0x141e0c[_0x35e6d5]=_0xb69b11!=null&&_0xb69b11!==''?_0x797518(0x196):_0xb69b11:_0x141e0c[_0x35e6d5]=_0xb69b11;}return _0x141e0c;}function a116_0x21ea(){const _0x3ab9d2=['message','[REDACTED]','6498151FmJkXU','58572nwYVFU','6543HFqkJg','rabetbase.command','10mfSBvP','error','command','309016eziOuX','451505DGDDfc','8VSizdD','5634XrYYuw','durationMs','flags','stringify','some','166MQxqjO','5815575UdSOsY','4711DjjVrE'];a116_0x21ea=function(){return _0x3ab9d2;};return a116_0x21ea();}export async function reportCommandTrace(_0x4106e3){const _0x1902bc=a116_0x2b15;try{const _0xd25b1d=sanitizeFlags(_0x4106e3[_0x1902bc(0x18f)]);await sendCliTraceLog({'spanName':_0x1902bc(0x19a),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4106e3['service'],'command.name':_0x4106e3[_0x1902bc(0x19d)],'command.flags':JSON[_0x1902bc(0x190)](_0xd25b1d),..._0x4106e3['durationMs']!=null?{'command.duration_ms':_0x4106e3[_0x1902bc(0x18e)]}:{},..._0x4106e3['error']?{'command.error':_0x4106e3[_0x1902bc(0x19c)]instanceof Error?_0x4106e3['error'][_0x1902bc(0x195)]:String(_0x4106e3[_0x1902bc(0x19c)])}:{}}});}catch{}}
1
+ function a118_0x2d12(_0x3282f8,_0x1179c7){_0x3282f8=_0x3282f8-0x116;const _0x57b511=a118_0x57b5();let _0x2d129e=_0x57b511[_0x3282f8];return _0x2d129e;}(function(_0x30a8c9,_0x59254d){const _0x581422=a118_0x2d12,_0x1add05=_0x30a8c9();while(!![]){try{const _0x1a8fbc=-parseInt(_0x581422(0x120))/0x1*(parseInt(_0x581422(0x118))/0x2)+parseInt(_0x581422(0x129))/0x3+-parseInt(_0x581422(0x119))/0x4+-parseInt(_0x581422(0x127))/0x5*(-parseInt(_0x581422(0x125))/0x6)+parseInt(_0x581422(0x11f))/0x7+-parseInt(_0x581422(0x123))/0x8*(-parseInt(_0x581422(0x117))/0x9)+-parseInt(_0x581422(0x116))/0xa*(parseInt(_0x581422(0x126))/0xb);if(_0x1a8fbc===_0x59254d)break;else _0x1add05['push'](_0x1add05['shift']());}catch(_0x556715){_0x1add05['push'](_0x1add05['shift']());}}}(a118_0x57b5,0x3f742));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a118_0x57b5(){const _0x103f20=['1495qSwaMt','stringify','1014696PQvJQj','20lqqWqM','1089RmUmKR','47676jEpPfD','426588ZFoHLc','durationMs','service','entries','some','rabetbase.command','949095UTLZmc','3dSGnFV','command','error','22104uMAaTh','[REDACTED]','6054tSsasW','3694702lfKPdh'];a118_0x57b5=function(){return _0x103f20;};return a118_0x57b5();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x2c3a2a){const _0x2b662a=a118_0x2d12;return SENSITIVE_PATTERNS[_0x2b662a(0x11d)](_0x54e76d=>_0x54e76d['test'](_0x2c3a2a));}function sanitizeFlags(_0x51974e){const _0x31c8fe=a118_0x2d12,_0x53fd64={};for(const [_0x5c15c3,_0x574f65]of Object[_0x31c8fe(0x11c)](_0x51974e)){isSensitiveKey(_0x5c15c3)?_0x53fd64[_0x5c15c3]=_0x574f65!=null&&_0x574f65!==''?_0x31c8fe(0x124):_0x574f65:_0x53fd64[_0x5c15c3]=_0x574f65;}return _0x53fd64;}export async function reportCommandTrace(_0x5017cc){const _0x1b8be9=a118_0x2d12;try{const _0x54b89d=sanitizeFlags(_0x5017cc['flags']);await sendCliTraceLog({'spanName':_0x1b8be9(0x11e),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5017cc[_0x1b8be9(0x11b)],'command.name':_0x5017cc[_0x1b8be9(0x121)],'command.flags':JSON[_0x1b8be9(0x128)](_0x54b89d),..._0x5017cc[_0x1b8be9(0x11a)]!=null?{'command.duration_ms':_0x5017cc['durationMs']}:{},..._0x5017cc['error']?{'command.error':_0x5017cc['error']instanceof Error?_0x5017cc['error']['message']:String(_0x5017cc[_0x1b8be9(0x122)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x47fa3a,_0x3a0b7d){var _0x37e7cb=a117_0x4bf1,_0x4e85c6=_0x47fa3a();while(!![]){try{var _0x6fd2f8=parseInt(_0x37e7cb(0x193))/0x1*(parseInt(_0x37e7cb(0x18d))/0x2)+parseInt(_0x37e7cb(0x18a))/0x3*(-parseInt(_0x37e7cb(0x190))/0x4)+parseInt(_0x37e7cb(0x198))/0x5*(parseInt(_0x37e7cb(0x199))/0x6)+-parseInt(_0x37e7cb(0x196))/0x7*(parseInt(_0x37e7cb(0x197))/0x8)+-parseInt(_0x37e7cb(0x18f))/0x9*(-parseInt(_0x37e7cb(0x192))/0xa)+parseInt(_0x37e7cb(0x18c))/0xb*(parseInt(_0x37e7cb(0x191))/0xc)+-parseInt(_0x37e7cb(0x18b))/0xd;if(_0x6fd2f8===_0x3a0b7d)break;else _0x4e85c6['push'](_0x4e85c6['shift']());}catch(_0x149637){_0x4e85c6['push'](_0x4e85c6['shift']());}}}(a117_0x5a84,0x292c3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a117_0x4bf1(_0x401f90,_0x3d1f5c){_0x401f90=_0x401f90-0x18a;var _0x5a8410=a117_0x5a84();var _0x4bf154=_0x5a8410[_0x401f90];return _0x4bf154;}export async function reportCliHelpTrace(_0xcc8762,_0x2d0ca0){var _0x24485b=a117_0x4bf1;try{await sendCliTraceLog({'spanName':_0x24485b(0x18e),'logData':{'rabetbase.help.kind':_0xcc8762,..._0x2d0ca0?.[_0x24485b(0x195)]&&{'rabetbase.help.service':_0x2d0ca0['service']}}});}catch(_0x3fc7bf){console[_0x24485b(0x194)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3fc7bf);}}function a117_0x5a84(){var _0xa8b007=['3243880jTAScf','9949vrDBJJ','error','service','1267RQguZt','6952whRaWG','5ZUitTG','885534PqCXLT','33ljRXvK','2713074NZQLHO','121kDaOTp','34MswQeW','cli.help','9eOYORa','111064TNsvnq','217032atQsnX'];a117_0x5a84=function(){return _0xa8b007;};return a117_0x5a84();}
1
+ (function(_0x43ea00,_0x39e3db){var _0x5831f2=a119_0x450b,_0x59556d=_0x43ea00();while(!![]){try{var _0x7da3a8=parseInt(_0x5831f2(0x9a))/0x1+-parseInt(_0x5831f2(0x99))/0x2+-parseInt(_0x5831f2(0x98))/0x3*(-parseInt(_0x5831f2(0x9c))/0x4)+parseInt(_0x5831f2(0x95))/0x5+-parseInt(_0x5831f2(0x9d))/0x6*(-parseInt(_0x5831f2(0x9e))/0x7)+-parseInt(_0x5831f2(0x9b))/0x8*(-parseInt(_0x5831f2(0xa0))/0x9)+-parseInt(_0x5831f2(0x96))/0xa;if(_0x7da3a8===_0x39e3db)break;else _0x59556d['push'](_0x59556d['shift']());}catch(_0x55233d){_0x59556d['push'](_0x59556d['shift']());}}}(a119_0x3f81,0x82cdd));function a119_0x3f81(){var _0x5e034d=['cli.help','error','3437095iAJQWN','4421380OzhYXJ','Failed\x20to\x20report\x20CLI\x20help\x20trace:','14163xMNToX','1784154sJWeUE','805480xgiObP','32bZgGUy','164VLjOXu','24aRCCIB','210329grwQty','service','142515INzBrK'];a119_0x3f81=function(){return _0x5e034d;};return a119_0x3f81();}function a119_0x450b(_0x7833c2,_0x1763ed){_0x7833c2=_0x7833c2-0x94;var _0x3f8134=a119_0x3f81();var _0x450ba9=_0x3f8134[_0x7833c2];return _0x450ba9;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4a9446,_0x5bd2f0){var _0x355b37=a119_0x450b;try{await sendCliTraceLog({'spanName':_0x355b37(0xa1),'logData':{'rabetbase.help.kind':_0x4a9446,..._0x5bd2f0?.[_0x355b37(0x9f)]&&{'rabetbase.help.service':_0x5bd2f0[_0x355b37(0x9f)]}}});}catch(_0x5cb2fb){console[_0x355b37(0x94)](_0x355b37(0x97),_0x5cb2fb);}}
@@ -1 +1 @@
1
- (function(_0x108b5e,_0xfb02b1){const _0x78b2d8=a118_0x2b5c,_0x26b7a1=_0x108b5e();while(!![]){try{const _0x137812=parseInt(_0x78b2d8(0xcb))/0x1*(-parseInt(_0x78b2d8(0xc8))/0x2)+-parseInt(_0x78b2d8(0xcd))/0x3+parseInt(_0x78b2d8(0xd7))/0x4*(-parseInt(_0x78b2d8(0xcf))/0x5)+parseInt(_0x78b2d8(0xd4))/0x6*(parseInt(_0x78b2d8(0xc7))/0x7)+-parseInt(_0x78b2d8(0xd2))/0x8+parseInt(_0x78b2d8(0xca))/0x9*(parseInt(_0x78b2d8(0xd5))/0xa)+parseInt(_0x78b2d8(0xce))/0xb*(parseInt(_0x78b2d8(0xd0))/0xc);if(_0x137812===_0xfb02b1)break;else _0x26b7a1['push'](_0x26b7a1['shift']());}catch(_0x2064ba){_0x26b7a1['push'](_0x26b7a1['shift']());}}}(a118_0x3028,0x269d4));function a118_0x2b5c(_0x532973,_0x39cb2b){_0x532973=_0x532973-0xc7;const _0x30287e=a118_0x3028();let _0x2b5cdf=_0x30287e[_0x532973];return _0x2b5cdf;}import a118_0x3ff0ee from'node:os';function a118_0x3028(){const _0x1864d1=['112362IvtIKb','702427zofpul','385gUJuID','120kOCPlh','nickname','2031160hBeDyV','daily','191340PgtEzB','10VVvmnd','unknown','16148QZzNtv','7DOYCUg','7634rZNqFZ','rabetbase-cli','1599237jwNJDz','23lDoRdf','username'];a118_0x3028=function(){return _0x1864d1;};return a118_0x3028();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1b0b47=a118_0x2b5c,_0x394208=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x474198=_0x394208?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1b0b47(0xd6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1b0b47(0xd3):'production'),'username':_0x474198?.[_0x1b0b47(0xcc)]??a118_0x3ff0ee['userInfo']()['username']??_0x1b0b47(0xc9),..._0x474198&&{'nickname':_0x474198[_0x1b0b47(0xd1)]}}),cliOtelTraceInitialized=!![];}return _0x394208;}
1
+ (function(_0x358d08,_0x50923f){const _0x3b4753=a120_0x3a71,_0x312833=_0x358d08();while(!![]){try{const _0x3833b7=parseInt(_0x3b4753(0x15f))/0x1*(-parseInt(_0x3b4753(0x159))/0x2)+parseInt(_0x3b4753(0x160))/0x3+parseInt(_0x3b4753(0x162))/0x4+-parseInt(_0x3b4753(0x157))/0x5+parseInt(_0x3b4753(0x15a))/0x6+-parseInt(_0x3b4753(0x15b))/0x7+-parseInt(_0x3b4753(0x163))/0x8;if(_0x3833b7===_0x50923f)break;else _0x312833['push'](_0x312833['shift']());}catch(_0xa49de6){_0x312833['push'](_0x312833['shift']());}}}(a120_0x351e,0x6d261));import a120_0x260340 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xfd906f=a120_0x3a71,_0x14f77d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5dfb1c=_0x14f77d?.[_0xfd906f(0x15e)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xfd906f(0x164)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xfd906f(0x15c):'production'),'username':_0x5dfb1c?.[_0xfd906f(0x15d)]??a120_0x260340[_0xfd906f(0x161)]()[_0xfd906f(0x15d)]??_0xfd906f(0x158),..._0x5dfb1c&&{'nickname':_0x5dfb1c[_0xfd906f(0x165)]}}),cliOtelTraceInitialized=!![];}return _0x14f77d;}function a120_0x3a71(_0x439e1a,_0xd8fa5e){_0x439e1a=_0x439e1a-0x157;const _0x351ec7=a120_0x351e();let _0x3a71ce=_0x351ec7[_0x439e1a];return _0x3a71ce;}function a120_0x351e(){const _0x54e992=['rabetbase-cli','2NKvcFU','1690530qeXhIe','1865962JomHqQ','daily','username','user','103601MwLgKw','2657820DIdpVt','userInfo','2824836Tsqebw','1893280lttsfP','unknown','nickname','4100020jkzubB'];a120_0x351e=function(){return _0x54e992;};return a120_0x351e();}
@@ -1 +1 @@
1
- (function(_0x52829c,_0x325fb0){const _0x5b8a30=a119_0x1365,_0x3ad3b7=_0x52829c();while(!![]){try{const _0x439750=-parseInt(_0x5b8a30(0x129))/0x1*(-parseInt(_0x5b8a30(0x130))/0x2)+-parseInt(_0x5b8a30(0x126))/0x3*(-parseInt(_0x5b8a30(0x128))/0x4)+parseInt(_0x5b8a30(0x12b))/0x5*(parseInt(_0x5b8a30(0x12e))/0x6)+parseInt(_0x5b8a30(0x134))/0x7*(-parseInt(_0x5b8a30(0x131))/0x8)+parseInt(_0x5b8a30(0x132))/0x9+parseInt(_0x5b8a30(0x12c))/0xa+parseInt(_0x5b8a30(0x133))/0xb*(-parseInt(_0x5b8a30(0x135))/0xc);if(_0x439750===_0x325fb0)break;else _0x3ad3b7['push'](_0x3ad3b7['shift']());}catch(_0x6a79df){_0x3ad3b7['push'](_0x3ad3b7['shift']());}}}(a119_0x6727,0xbad53));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a119_0x1365(_0x341497,_0x164fce){_0x341497=_0x341497-0x126;const _0x672767=a119_0x6727();let _0x136521=_0x672767[_0x341497];return _0x136521;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xd78b4e=a119_0x1365;process[_0xd78b4e(0x12d)](_0xd78b4e(0x12a),()=>{void flushOtelNodeIfUsed();});const _0x50dc0c=()=>{const _0x3afecb=_0xd78b4e;void flushOtelNodeIfUsed()[_0x3afecb(0x12f)](()=>process[_0x3afecb(0x136)](0x0));};process[_0xd78b4e(0x12d)](_0xd78b4e(0x127),_0x50dc0c),process[_0xd78b4e(0x12d)]('SIGTERM',_0x50dc0c);}function a119_0x6727(){const _0x23b9e7=['1372HfAQuF','beforeExit','5676005KdyJkx','6215960eBwLHe','once','6LFMUlY','then','554RHHjai','8JXWola','8285139DaOUKu','59543lNiNep','1074346hwMUHp','6396RHICwy','exit','1119693BwMLBy','SIGINT','8hNcbnF'];a119_0x6727=function(){return _0x23b9e7;};return a119_0x6727();}export async function exitWithOtelShutdown(_0x4de384){const _0x169c26=a119_0x1365;await flushOtelNodeIfUsed(),process[_0x169c26(0x136)](_0x4de384);}
1
+ function a121_0x28bd(_0x30373b,_0x1fef00){_0x30373b=_0x30373b-0xca;const _0x5bfc84=a121_0x5bfc();let _0x28bd73=_0x5bfc84[_0x30373b];return _0x28bd73;}(function(_0x9d5f8,_0x333857){const _0x433cfd=a121_0x28bd,_0x3ffa65=_0x9d5f8();while(!![]){try{const _0x568831=parseInt(_0x433cfd(0xd1))/0x1+parseInt(_0x433cfd(0xd7))/0x2*(parseInt(_0x433cfd(0xd4))/0x3)+parseInt(_0x433cfd(0xd5))/0x4*(-parseInt(_0x433cfd(0xd6))/0x5)+-parseInt(_0x433cfd(0xd3))/0x6*(-parseInt(_0x433cfd(0xcd))/0x7)+parseInt(_0x433cfd(0xcc))/0x8*(parseInt(_0x433cfd(0xce))/0x9)+parseInt(_0x433cfd(0xd9))/0xa+-parseInt(_0x433cfd(0xcb))/0xb;if(_0x568831===_0x333857)break;else _0x3ffa65['push'](_0x3ffa65['shift']());}catch(_0x4bc7f1){_0x3ffa65['push'](_0x3ffa65['shift']());}}}(a121_0x5bfc,0xbd901));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x29862f=a121_0x28bd;process['once'](_0x29862f(0xca),()=>{void flushOtelNodeIfUsed();});const _0x1383dc=()=>{const _0x2dc600=_0x29862f;void flushOtelNodeIfUsed()[_0x2dc600(0xd0)](()=>process[_0x2dc600(0xd8)](0x0));};process[_0x29862f(0xd2)]('SIGINT',_0x1383dc),process[_0x29862f(0xd2)](_0x29862f(0xcf),_0x1383dc);}function a121_0x5bfc(){const _0x1d9595=['2mrFccO','exit','5732550ICPVtl','beforeExit','39908429wHvMSq','3664xsjbVd','35OXjclc','26379jARbvw','SIGTERM','then','889296mFASxj','once','1419930tFQSHg','1461501paKwCz','4OFLGuR','354515LQsjmL'];a121_0x5bfc=function(){return _0x1d9595;};return a121_0x5bfc();}export async function exitWithOtelShutdown(_0x195224){const _0x24946b=a121_0x28bd;await flushOtelNodeIfUsed(),process[_0x24946b(0xd8)](_0x195224);}
@@ -1 +1 @@
1
- const a120_0x56b5ea=a120_0x1795;function a120_0x1795(_0x18179f,_0x24c401){_0x18179f=_0x18179f-0x1ee;const _0x341fe5=a120_0x341f();let _0x17953d=_0x341fe5[_0x18179f];return _0x17953d;}(function(_0x5ea313,_0x1d6704){const _0x571db4=a120_0x1795,_0x16431a=_0x5ea313();while(!![]){try{const _0x243144=parseInt(_0x571db4(0x1ef))/0x1+-parseInt(_0x571db4(0x1f9))/0x2+parseInt(_0x571db4(0x1f1))/0x3+parseInt(_0x571db4(0x1f7))/0x4*(parseInt(_0x571db4(0x1fa))/0x5)+-parseInt(_0x571db4(0x1f2))/0x6+-parseInt(_0x571db4(0x1f4))/0x7*(-parseInt(_0x571db4(0x1f8))/0x8)+-parseInt(_0x571db4(0x1fb))/0x9*(parseInt(_0x571db4(0x1f5))/0xa);if(_0x243144===_0x1d6704)break;else _0x16431a['push'](_0x16431a['shift']());}catch(_0x3ff0d2){_0x16431a['push'](_0x16431a['shift']());}}}(a120_0x341f,0x99366));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a120_0x56b5ea(0x1f0);export async function sendCliTraceLog(_0x5059fc){const _0x2df7a9=a120_0x56b5ea;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5059fc['traceName']??DEFAULT_TRACE_NAME,'version':_0x5059fc[_0x2df7a9(0x1f6)]??getCliVersion(),'spanName':_0x5059fc[_0x2df7a9(0x1ee)],'eventType':_0x2df7a9(0x1f3),'logData':_0x5059fc['logData'],..._0x5059fc[_0x2df7a9(0x1fc)]&&{'traceparent':_0x5059fc[_0x2df7a9(0x1fc)]}});}function a120_0x341f(){const _0x41df5a=['version','200PjKmzZ','60864bdzNeG','295264gMQGsy','13025UcRUfE','1726398JTArLc','traceparent','spanName','244602VPgRcA','rabetbase-cli','3242004LAXGLd','4163544MjRjYo','manual','189tVcMVK','10JjJSYI'];a120_0x341f=function(){return _0x41df5a;};return a120_0x341f();}
1
+ const a122_0x7ea34b=a122_0x49b1;(function(_0xfca245,_0xd4470e){const _0x50442d=a122_0x49b1,_0x3c3daa=_0xfca245();while(!![]){try{const _0x55d433=parseInt(_0x50442d(0x130))/0x1*(parseInt(_0x50442d(0x12a))/0x2)+parseInt(_0x50442d(0x12c))/0x3*(parseInt(_0x50442d(0x138))/0x4)+parseInt(_0x50442d(0x132))/0x5+parseInt(_0x50442d(0x131))/0x6+parseInt(_0x50442d(0x12e))/0x7+parseInt(_0x50442d(0x133))/0x8+-parseInt(_0x50442d(0x12d))/0x9;if(_0x55d433===_0xd4470e)break;else _0x3c3daa['push'](_0x3c3daa['shift']());}catch(_0x50f7ed){_0x3c3daa['push'](_0x3c3daa['shift']());}}}(a122_0x507a,0x7efba));function a122_0x507a(){const _0x5fbbcd=['logData','15460KkyYAV','traceName','34kMZGVD','traceparent','591QQBRrX','20675682SHpjEy','1100995QkMMCq','manual','4603PwtPRL','4032462ifPFmK','3436950YqKuHX','3688096TnhsNi','version','rabetbase-cli','spanName'];a122_0x507a=function(){return _0x5fbbcd;};return a122_0x507a();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a122_0x49b1(_0x4c5124,_0x2aafae){_0x4c5124=_0x4c5124-0x12a;const _0x507afb=a122_0x507a();let _0x49b143=_0x507afb[_0x4c5124];return _0x49b143;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a122_0x7ea34b(0x135);export async function sendCliTraceLog(_0x5d442e){const _0x455ae2=a122_0x7ea34b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5d442e[_0x455ae2(0x139)]??DEFAULT_TRACE_NAME,'version':_0x5d442e[_0x455ae2(0x134)]??getCliVersion(),'spanName':_0x5d442e[_0x455ae2(0x136)],'eventType':_0x455ae2(0x12f),'logData':_0x5d442e[_0x455ae2(0x137)],..._0x5d442e[_0x455ae2(0x12b)]&&{'traceparent':_0x5d442e['traceparent']}});}
@@ -1 +1 @@
1
- function a122_0x20bb(_0x59c5ff,_0x2af72a){_0x59c5ff=_0x59c5ff-0xf3;const _0x402272=a122_0x4022();let _0x20bbd9=_0x402272[_0x59c5ff];return _0x20bbd9;}const a122_0x41a35e=a122_0x20bb;(function(_0x5a32e4,_0x367f64){const _0x2ee406=a122_0x20bb,_0x4d831a=_0x5a32e4();while(!![]){try{const _0x40f434=parseInt(_0x2ee406(0x119))/0x1*(parseInt(_0x2ee406(0x10e))/0x2)+-parseInt(_0x2ee406(0x10c))/0x3+parseInt(_0x2ee406(0x101))/0x4+parseInt(_0x2ee406(0xfc))/0x5*(parseInt(_0x2ee406(0xf4))/0x6)+-parseInt(_0x2ee406(0x12a))/0x7*(parseInt(_0x2ee406(0x11c))/0x8)+parseInt(_0x2ee406(0x118))/0x9+-parseInt(_0x2ee406(0xf5))/0xa;if(_0x40f434===_0x367f64)break;else _0x4d831a['push'](_0x4d831a['shift']());}catch(_0x26e252){_0x4d831a['push'](_0x4d831a['shift']());}}}(a122_0x4022,0xa4515));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x41a35e(0x112),'description':'Cursor\x20IDE','folders':[a122_0x41a35e(0x12b),a122_0x41a35e(0x10b)],'files':[{'type':'file','path':a122_0x41a35e(0xf3),'template':a122_0x41a35e(0x109)}]},'windsurf':{'name':a122_0x41a35e(0x124),'description':a122_0x41a35e(0x128),'folders':[a122_0x41a35e(0xfd)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xfa),'template':a122_0x41a35e(0x109)}]},'claude':{'name':a122_0x41a35e(0x103),'description':a122_0x41a35e(0x103),'folders':[a122_0x41a35e(0x104)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x11e),'template':a122_0x41a35e(0x109)}]},'cline':{'name':a122_0x41a35e(0xf6),'description':a122_0x41a35e(0x108),'folders':['.cline'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x12c),'template':a122_0x41a35e(0x109)}]},'codex':{'name':a122_0x41a35e(0x107),'description':a122_0x41a35e(0x10a),'folders':[a122_0x41a35e(0x10d)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x125),'template':a122_0x41a35e(0x109)}]},'opencode':{'name':'OpenCode','description':a122_0x41a35e(0x116),'folders':[a122_0x41a35e(0x11f)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x121),'template':a122_0x41a35e(0x109)}]},'qoder':{'name':a122_0x41a35e(0x105),'description':a122_0x41a35e(0x106),'folders':[a122_0x41a35e(0x11b)],'files':[{'type':a122_0x41a35e(0xff),'path':'.qoder/rules/rabetbase.md','template':a122_0x41a35e(0x109)},{'type':'file','path':a122_0x41a35e(0x120),'template':a122_0x41a35e(0x109)}]},'codebuddy':{'name':a122_0x41a35e(0x10f),'description':a122_0x41a35e(0x12e),'folders':[a122_0x41a35e(0x117)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x111),'template':a122_0x41a35e(0x109)}]},'trae':{'name':a122_0x41a35e(0x12d),'description':a122_0x41a35e(0x12f),'folders':['.trae'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xf9),'template':a122_0x41a35e(0x109)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x41a35e(0xf7),'description':a122_0x41a35e(0x126),'folders':[a122_0x41a35e(0x115)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x114),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a122_0x41a35e(0x113),'description':a122_0x41a35e(0x110),'folders':['.agent'],'files':[{'type':a122_0x41a35e(0xff),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),'codebuddy',a122_0x41a35e(0x129),a122_0x41a35e(0xfb),'opencode',a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127)];export const IDE_LIST=[a122_0x41a35e(0x11a),a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),a122_0x41a35e(0x11d),a122_0x41a35e(0x129),a122_0x41a35e(0xfb),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127),a122_0x41a35e(0x100)];export const ALL_CORE_IDES=[a122_0x41a35e(0xfb),'windsurf','claude','cline',a122_0x41a35e(0x129),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x11d),a122_0x41a35e(0x123)];function a122_0x4022(){const _0x248d1b=['antigravity','.qoder','152ZYHSYj','codebuddy','.claude/skills/lovrabet/SKILL.md','.opencode','.qoder/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','opencode','trae','Windsurf','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','windsurf','Windsurf\x20IDE','codex','436919jZElnY','.cursorrules','.cline/skills/lovrabet/SKILL.md','Trae','CodeBuddy\x20IDE','Trae\x20IDE','.cursor/skills/rabetbase.md','4608390DdVJvQ','5661100JUyCLU','Cline','其他\x20(通用模板)','cline','.trae/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','cursor','5twTFss','.windsurf','claude','file','agent','2966052XUNaoI','qoder','Claude\x20Code','.claude','Qoder','Qoder\x20IDE','Codex','Cline\x20IDE','SKILL.md.tpl','Codex\x20IDE','.cursor','2620572XOqcFd','.codex','298QuNhqs','CodeBuddy','Antigravity\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Cursor','Antigravity','.agent/skills/lovrabet/SKILL.md','.agent','OpenCode\x20IDE','.codebuddy','11751012eFiUeF','3244GQWbZd'];a122_0x4022=function(){return _0x248d1b;};return a122_0x4022();}
1
+ const a124_0x3845b7=a124_0x5384;(function(_0x5cec44,_0x1fe398){const _0x34f161=a124_0x5384,_0x4cfb23=_0x5cec44();while(!![]){try{const _0x4bdf79=parseInt(_0x34f161(0x14a))/0x1*(-parseInt(_0x34f161(0x14c))/0x2)+parseInt(_0x34f161(0x16f))/0x3+parseInt(_0x34f161(0x166))/0x4+-parseInt(_0x34f161(0x16e))/0x5*(-parseInt(_0x34f161(0x147))/0x6)+parseInt(_0x34f161(0x16b))/0x7*(-parseInt(_0x34f161(0x15e))/0x8)+parseInt(_0x34f161(0x154))/0x9*(parseInt(_0x34f161(0x170))/0xa)+parseInt(_0x34f161(0x14b))/0xb;if(_0x4bdf79===_0x1fe398)break;else _0x4cfb23['push'](_0x4cfb23['shift']());}catch(_0x2ca274){_0x4cfb23['push'](_0x4cfb23['shift']());}}}(a124_0x3701,0x8e448));function a124_0x3701(){const _0x209837=['SKILL.md.tpl','.cursor','windsurf','.codebuddy','Windsurf\x20IDE','.cline','Cline','codebuddy','1001418OKUGnE','.windsurf','.claude','537qWwUOn','1713426TnkMuz','2606HqLEUz','Cursor\x20IDE','.opencode/skills/lovrabet/SKILL.md','trae','Codex','.claude/skills/lovrabet/SKILL.md','codex','CodeBuddy','9ZpbiOo','cline','.agent/skills/lovrabet/SKILL.md','agent','Cursor','.qoder/rules/rabetbase.md','Trae','cursor','.windsurf/workflows/rabetbase.md','其他\x20(通用模板)','32NMqOKl','Antigravity\x20IDE','opencode','通用模板\x20-\x20兜底方案','.codex/skills/lovrabet/SKILL.md','claude','Antigravity','Cline\x20IDE','2782404PucJQE','qoder','OpenCode\x20IDE','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','1337819JxEyKe','.agent','file','10TWscGR','1097580UupkXg','4958740VDfUCz','Claude\x20Code','.cursor/skills/rabetbase.md','.trae','.cline/skills/lovrabet/SKILL.md'];a124_0x3701=function(){return _0x209837;};return a124_0x3701();}export const CORE_IDE_CONFIGS={'cursor':{'name':a124_0x3845b7(0x158),'description':a124_0x3845b7(0x14d),'folders':['.cursorrules',a124_0x3845b7(0x140)],'files':[{'type':'file','path':a124_0x3845b7(0x13c),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a124_0x3845b7(0x143),'folders':[a124_0x3845b7(0x148)],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x15c),'template':a124_0x3845b7(0x13f)}]},'claude':{'name':'Claude\x20Code','description':a124_0x3845b7(0x13b),'folders':[a124_0x3845b7(0x149)],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x151),'template':a124_0x3845b7(0x13f)}]},'cline':{'name':a124_0x3845b7(0x145),'description':a124_0x3845b7(0x165),'folders':[a124_0x3845b7(0x144)],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x13e),'template':'SKILL.md.tpl'}]},'codex':{'name':a124_0x3845b7(0x150),'description':a124_0x3845b7(0x16a),'folders':['.codex'],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x162),'template':a124_0x3845b7(0x13f)}]},'opencode':{'name':'OpenCode','description':a124_0x3845b7(0x168),'folders':['.opencode'],'files':[{'type':'file','path':a124_0x3845b7(0x14e),'template':a124_0x3845b7(0x13f)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x159),'template':a124_0x3845b7(0x13f)},{'type':a124_0x3845b7(0x16d),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a124_0x3845b7(0x153),'description':'CodeBuddy\x20IDE','folders':[a124_0x3845b7(0x142)],'files':[{'type':a124_0x3845b7(0x16d),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a124_0x3845b7(0x15a),'description':'Trae\x20IDE','folders':[a124_0x3845b7(0x13d)],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x169),'template':a124_0x3845b7(0x13f)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a124_0x3845b7(0x15d),'description':a124_0x3845b7(0x161),'folders':[a124_0x3845b7(0x16c)],'files':[{'type':a124_0x3845b7(0x16d),'path':a124_0x3845b7(0x156),'template':a124_0x3845b7(0x13f)}]},'antigravity':{'name':a124_0x3845b7(0x164),'description':a124_0x3845b7(0x15f),'folders':[a124_0x3845b7(0x16c)],'files':[{'type':a124_0x3845b7(0x16d),'path':'.agent/skills/lovrabet/SKILL.md','template':a124_0x3845b7(0x13f)}]}};export const CORE_IDE_LIST=[a124_0x3845b7(0x163),a124_0x3845b7(0x155),a124_0x3845b7(0x146),a124_0x3845b7(0x152),a124_0x3845b7(0x15b),a124_0x3845b7(0x160),a124_0x3845b7(0x167),a124_0x3845b7(0x14f),a124_0x3845b7(0x141)];export const IDE_LIST=['antigravity',a124_0x3845b7(0x163),a124_0x3845b7(0x155),a124_0x3845b7(0x146),a124_0x3845b7(0x152),a124_0x3845b7(0x15b),a124_0x3845b7(0x160),'qoder',a124_0x3845b7(0x14f),'windsurf',a124_0x3845b7(0x157)];function a124_0x5384(_0x360495,_0x48791d){_0x360495=_0x360495-0x13b;const _0x3701e5=a124_0x3701();let _0x53846b=_0x3701e5[_0x360495];return _0x53846b;}export const ALL_CORE_IDES=['cursor',a124_0x3845b7(0x141),a124_0x3845b7(0x163),'cline',a124_0x3845b7(0x152),a124_0x3845b7(0x160),'qoder',a124_0x3845b7(0x146),a124_0x3845b7(0x14f)];
@@ -1 +1 @@
1
- (function(_0x3030d3,_0x4d8887){const _0x2a4925=a123_0x7910,_0x354da6=_0x3030d3();while(!![]){try{const _0x52958d=-parseInt(_0x2a4925(0xe7))/0x1+parseInt(_0x2a4925(0xd5))/0x2+parseInt(_0x2a4925(0xd6))/0x3+-parseInt(_0x2a4925(0xe5))/0x4+parseInt(_0x2a4925(0xe3))/0x5*(-parseInt(_0x2a4925(0xeb))/0x6)+-parseInt(_0x2a4925(0xe8))/0x7*(-parseInt(_0x2a4925(0xda))/0x8)+-parseInt(_0x2a4925(0xd8))/0x9*(-parseInt(_0x2a4925(0xd3))/0xa);if(_0x52958d===_0x4d8887)break;else _0x354da6['push'](_0x354da6['shift']());}catch(_0x10e9cc){_0x354da6['push'](_0x354da6['shift']());}}}(a123_0x50d8,0x89d9a));function a123_0x7910(_0x30ebf9,_0x13c8da){_0x30ebf9=_0x30ebf9-0xd3;const _0x50d820=a123_0x50d8();let _0x7910d2=_0x50d820[_0x30ebf9];return _0x7910d2;}import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';function a123_0x50d8(){const _0x368f82=['node-jq/package.json','722981rmcSBN','567hqiNYK','pipe','dirname','4831122pUWdtM','146210NpTBuT','test','1544222TVLBkE','1505667GrnVhy','toString','423XSewEe','trim','23928trURuF','jq.exe','platform','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','win32','code','utf8','stderr','5RRkDZO','validation','442624HLYKcy'];a123_0x50d8=function(){return _0x368f82;};return a123_0x50d8();}import{createRequire}from'node:module';import a123_0x2dee79 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x405f5e=a123_0x7910;try{const _0x33e2a4=createRequire(import.meta.url),_0x12933b=a123_0x2dee79[_0x405f5e(0xea)](_0x33e2a4['resolve'](_0x405f5e(0xe6))),_0x4f8e5d=a123_0x2dee79['join'](_0x12933b,'bin'),_0x6d78f4=process[_0x405f5e(0xdc)]===_0x405f5e(0xdf)?_0x405f5e(0xdb):'jq',_0x26fb85=a123_0x2dee79['join'](_0x4f8e5d,_0x6d78f4);if(existsSync(_0x26fb85))return _0x26fb85;}catch{}return'jq';}export function applyJqFilter(_0x76ede0,_0x2dbe1a){const _0x565992=a123_0x7910,_0x1fd467=resolveJqBinary();try{return execFileSync(_0x1fd467,[_0x2dbe1a],{'input':_0x76ede0,'encoding':_0x565992(0xe1),'maxBuffer':MAX_BUFFER,'stdio':[_0x565992(0xe9),_0x565992(0xe9),'pipe']});}catch(_0x5185af){const _0x204476=_0x5185af;if(_0x204476[_0x565992(0xe0)]==='ENOENT')throw CliErrors[_0x565992(0xe4)](_0x565992(0xdd),_0x565992(0xde));const _0x3fa999=_0x204476[_0x565992(0xe2)]?.[_0x565992(0xd7)]?.()[_0x565992(0xd9)]()??'',_0x59750f=(_0x204476['message']??String(_0x5185af))[_0x565992(0xd9)](),_0x3a2efb=_0x3fa999||_0x59750f,_0x11b771=/^\s*jq:/i[_0x565992(0xd4)](_0x3a2efb)?_0x3a2efb:'jq:\x20'+_0x3a2efb;throw CliErrors[_0x565992(0xe4)](_0x11b771);}}
1
+ (function(_0x46773d,_0x4df769){const _0x377b67=a125_0x3cfa,_0x261bc1=_0x46773d();while(!![]){try{const _0x4b1598=parseInt(_0x377b67(0xa3))/0x1+parseInt(_0x377b67(0x9d))/0x2*(-parseInt(_0x377b67(0xa9))/0x3)+parseInt(_0x377b67(0x9f))/0x4*(-parseInt(_0x377b67(0xaf))/0x5)+parseInt(_0x377b67(0xab))/0x6+parseInt(_0x377b67(0xae))/0x7+-parseInt(_0x377b67(0xac))/0x8+parseInt(_0x377b67(0x9e))/0x9;if(_0x4b1598===_0x4df769)break;else _0x261bc1['push'](_0x261bc1['shift']());}catch(_0x5341bd){_0x261bc1['push'](_0x261bc1['shift']());}}}(a125_0x3aee,0xe70e3));import{execFileSync}from'node:child_process';function a125_0x3aee(){const _0x88bcc0=['dirname','jq.exe','1014122YmBONS','261036BZkXif','12SgsKoH','message','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','join','1439611xQcokD','trim','jq:\x20','test','pipe','win32','3dBpLie','bin','5132238UzPSgs','777992HbKxQn','stderr','3410414NipFrO','2100795kwNqEQ','ENOENT','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','toString','node-jq/package.json','resolve'];a125_0x3aee=function(){return _0x88bcc0;};return a125_0x3aee();}import{existsSync}from'node:fs';import{createRequire}from'node:module';import a125_0x2279b9 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x14f9d9=a125_0x3cfa;try{const _0x181058=createRequire(import.meta.url),_0x4c379c=a125_0x2279b9[_0x14f9d9(0x9b)](_0x181058[_0x14f9d9(0x9a)](_0x14f9d9(0x99))),_0x53a733=a125_0x2279b9[_0x14f9d9(0xa2)](_0x4c379c,_0x14f9d9(0xaa)),_0x5b84a3=process['platform']===_0x14f9d9(0xa8)?_0x14f9d9(0x9c):'jq',_0x3fbf68=a125_0x2279b9[_0x14f9d9(0xa2)](_0x53a733,_0x5b84a3);if(existsSync(_0x3fbf68))return _0x3fbf68;}catch{}return'jq';}function a125_0x3cfa(_0x5e3a8b,_0x471e81){_0x5e3a8b=_0x5e3a8b-0x99;const _0x3aeee5=a125_0x3aee();let _0x3cfa0a=_0x3aeee5[_0x5e3a8b];return _0x3cfa0a;}export function applyJqFilter(_0x90edbb,_0x432e05){const _0x3ef19b=a125_0x3cfa,_0x4961bf=resolveJqBinary();try{return execFileSync(_0x4961bf,[_0x432e05],{'input':_0x90edbb,'encoding':'utf8','maxBuffer':MAX_BUFFER,'stdio':[_0x3ef19b(0xa7),_0x3ef19b(0xa7),_0x3ef19b(0xa7)]});}catch(_0xee2822){const _0x5778de=_0xee2822;if(_0x5778de['code']===_0x3ef19b(0xb0))throw CliErrors['validation'](_0x3ef19b(0xa1),_0x3ef19b(0xb1));const _0x1bf9db=_0x5778de[_0x3ef19b(0xad)]?.[_0x3ef19b(0xb2)]?.()['trim']()??'',_0x463078=(_0x5778de[_0x3ef19b(0xa0)]??String(_0xee2822))[_0x3ef19b(0xa4)](),_0x3d75fe=_0x1bf9db||_0x463078,_0x35d8a2=/^\s*jq:/i[_0x3ef19b(0xa6)](_0x3d75fe)?_0x3d75fe:_0x3ef19b(0xa5)+_0x3d75fe;throw CliErrors['validation'](_0x35d8a2);}}
@@ -1 +1 @@
1
- (function(_0x1b0851,_0x829d3b){const _0x3895b3=a124_0x54d2,_0xbcb778=_0x1b0851();while(!![]){try{const _0x4c3beb=parseInt(_0x3895b3(0x103))/0x1+parseInt(_0x3895b3(0xff))/0x2+parseInt(_0x3895b3(0x102))/0x3+parseInt(_0x3895b3(0x105))/0x4*(parseInt(_0x3895b3(0x104))/0x5)+parseInt(_0x3895b3(0xfe))/0x6+-parseInt(_0x3895b3(0x106))/0x7+-parseInt(_0x3895b3(0x109))/0x8;if(_0x4c3beb===_0x829d3b)break;else _0xbcb778['push'](_0xbcb778['shift']());}catch(_0x311dcc){_0xbcb778['push'](_0xbcb778['shift']());}}}(a124_0x1f24,0x2302c));import{getTemplateBaseUrl}from'../utils/config.js';function a124_0x1f24(){const _0x1fabca=['449012BjhIls','stableVersion','json','380769CHJsyl','113578teaLvT','370XsGFXK','2668ZVnRWP','1928675OPLuGT','now','/config.json','1628360PnUsbs','cli','648654rsmoiX'];a124_0x1f24=function(){return _0x1fabca;};return a124_0x1f24();}function a124_0x54d2(_0x4cf893,_0x590304){_0x4cf893=_0x4cf893-0xfe;const _0x1f2422=a124_0x1f24();let _0x54d22d=_0x1f2422[_0x4cf893];return _0x54d22d;}export async function fetchCdnConfig(){const _0x4665fb=a124_0x54d2;try{const _0x5e6f10=getTemplateBaseUrl(),_0x59763a=_0x5e6f10+_0x4665fb(0x108),_0x3b39d5=await fetch(_0x59763a,{'headers':{'Accept':'application/json'}});if(!_0x3b39d5['ok'])return null;const _0x4b5cbd=await _0x3b39d5[_0x4665fb(0x101)]();if(!_0x4b5cbd[_0x4665fb(0x10a)]?.[_0x4665fb(0x100)]||!_0x4b5cbd['sdk']?.['node']?.[_0x4665fb(0x100)])return null;return _0x4b5cbd;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x5b52bb=a124_0x54d2,_0x51234e=Date[_0x5b52bb(0x107)]();if(cachedConfig&&_0x51234e-cacheTime<CACHE_TTL)return cachedConfig;const _0x4a9b26=await fetchCdnConfig();return _0x4a9b26&&(cachedConfig=_0x4a9b26,cacheTime=_0x51234e),_0x4a9b26;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0xa86c1c,_0x8c3689){const _0x4c4cbc=a126_0x34ed,_0x265090=_0xa86c1c();while(!![]){try{const _0x2ee4ac=parseInt(_0x4c4cbc(0x1cb))/0x1*(parseInt(_0x4c4cbc(0x1ca))/0x2)+-parseInt(_0x4c4cbc(0x1c1))/0x3*(parseInt(_0x4c4cbc(0x1c9))/0x4)+parseInt(_0x4c4cbc(0x1c5))/0x5+parseInt(_0x4c4cbc(0x1c8))/0x6*(-parseInt(_0x4c4cbc(0x1cd))/0x7)+parseInt(_0x4c4cbc(0x1c6))/0x8+parseInt(_0x4c4cbc(0x1bf))/0x9+-parseInt(_0x4c4cbc(0x1c0))/0xa;if(_0x2ee4ac===_0x8c3689)break;else _0x265090['push'](_0x265090['shift']());}catch(_0x20beff){_0x265090['push'](_0x265090['shift']());}}}(a126_0x5d08,0x76cd1));function a126_0x34ed(_0x123b96,_0x559b7f){_0x123b96=_0x123b96-0x1be;const _0x5d08a4=a126_0x5d08();let _0x34ed9c=_0x5d08a4[_0x123b96];return _0x34ed9c;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0xaaf1e5=a126_0x34ed;try{const _0xa67a71=getTemplateBaseUrl(),_0x229c05=_0xa67a71+'/config.json',_0x47b89b=await fetch(_0x229c05,{'headers':{'Accept':'application/json'}});if(!_0x47b89b['ok'])return null;const _0xc86d67=await _0x47b89b[_0xaaf1e5(0x1c7)]();if(!_0xc86d67[_0xaaf1e5(0x1c3)]?.[_0xaaf1e5(0x1c2)]||!_0xc86d67[_0xaaf1e5(0x1c4)]?.[_0xaaf1e5(0x1cc)]?.[_0xaaf1e5(0x1c2)])return null;return _0xc86d67;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;function a126_0x5d08(){const _0x12316c=['1899BVZNmx','stableVersion','cli','sdk','1547175qwCmdL','6560536FZUFrF','json','2188122DAMcWV','1864crMYPV','1240574uuRpoh','1YuZskK','node','14kFuowv','now','7236225NQCzJw','10428530nKmSQe'];a126_0x5d08=function(){return _0x12316c;};return a126_0x5d08();}export async function getCdnConfig(){const _0x251224=a126_0x34ed,_0x40cbeb=Date[_0x251224(0x1be)]();if(cachedConfig&&_0x40cbeb-cacheTime<CACHE_TTL)return cachedConfig;const _0x3a90ea=await fetchCdnConfig();return _0x3a90ea&&(cachedConfig=_0x3a90ea,cacheTime=_0x40cbeb),_0x3a90ea;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a125_0x526cb1=a125_0x2e4a;(function(_0xd9257b,_0x9b4a5e){const _0x4dce39=a125_0x2e4a,_0x40a4c8=_0xd9257b();while(!![]){try{const _0x5efa1f=parseInt(_0x4dce39(0x141))/0x1*(-parseInt(_0x4dce39(0x14f))/0x2)+parseInt(_0x4dce39(0x12e))/0x3*(parseInt(_0x4dce39(0x138))/0x4)+-parseInt(_0x4dce39(0x12f))/0x5+parseInt(_0x4dce39(0x153))/0x6*(-parseInt(_0x4dce39(0x13f))/0x7)+parseInt(_0x4dce39(0x145))/0x8+parseInt(_0x4dce39(0x147))/0x9*(-parseInt(_0x4dce39(0x130))/0xa)+parseInt(_0x4dce39(0x13e))/0xb*(parseInt(_0x4dce39(0x140))/0xc);if(_0x5efa1f===_0x9b4a5e)break;else _0x40a4c8['push'](_0x40a4c8['shift']());}catch(_0x244be6){_0x40a4c8['push'](_0x40a4c8['shift']());}}}(a125_0x4ab9,0x664fa));import a125_0x4e4cfc from'node:fs';function a125_0x2e4a(_0x4a8437,_0xc3ca86){_0x4a8437=_0x4a8437-0x12c;const _0x4ab99f=a125_0x4ab9();let _0x2e4a13=_0x4ab99f[_0x4a8437];return _0x2e4a13;}import a125_0x5d03e5 from'node:path';import a125_0x572a02 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a125_0x526cb1(0x143);function a125_0x4ab9(){const _0x2f8078=['stableVersion','test','all','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','version','8ksRcQv','packageName','readFileSync','existsSync','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','862422rhEFof','16023NIgTNA','144XLLMAZ','23473ahKIlZ','@lovrabet/sdk','1.2.0','dependencies','3779536jrarcs','minVersion','1948113hkgaqS','utf8','latest','parse','npm\x20install\x20','node','utf-8','join','24UFccyr','package.json','coerce','log','450pXuDzP','some','needsUpgrade','sdk','node_modules','576141DcAezn','2460145tZZpHL','20miLDoH','\x1b[1m'];a125_0x4ab9=function(){return _0x2f8078;};return a125_0x4ab9();}function isNonNumericVersion(_0x444f17){const _0xa8f515=a125_0x526cb1,_0x33cea4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x33cea4[_0xa8f515(0x154)](_0x460ec5=>_0x460ec5[_0xa8f515(0x133)](_0x444f17));}function getInstalledVersion(_0x3ef340,_0xf229e4){const _0x1b8235=a125_0x526cb1;try{const _0x207b66=a125_0x5d03e5[_0x1b8235(0x14e)](_0x3ef340,_0x1b8235(0x12d),_0xf229e4,'package.json');if(a125_0x4e4cfc['existsSync'](_0x207b66)){const _0x4252e0=JSON[_0x1b8235(0x14a)](a125_0x4e4cfc[_0x1b8235(0x13a)](_0x207b66,_0x1b8235(0x14d)));return _0x4252e0[_0x1b8235(0x137)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3b8b03=a125_0x526cb1;try{const _0x590766=await getCdnConfig();return _0x590766?.[_0x3b8b03(0x12c)]?.[_0x3b8b03(0x14c)]?.[_0x3b8b03(0x132)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x55d8dd=a125_0x526cb1;try{const _0x1f294b=await getCdnConfig();return _0x1f294b?.[_0x55d8dd(0x12c)]?.['node']?.[_0x55d8dd(0x139)]||_0x55d8dd(0x142);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3a69f5){const _0x359015=a125_0x526cb1,_0x4cfd2a=a125_0x5d03e5[_0x359015(0x14e)](_0x3a69f5,_0x359015(0x150)),[_0x258fb2,_0x1fe836]=await Promise[_0x359015(0x134)]([getSdkStableVersion(),getSdkPackageName()]),_0x2343d5=_0x258fb2||FALLBACK_MIN_SDK_VERSION;if(!a125_0x4e4cfc[_0x359015(0x13b)](_0x4cfd2a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};try{const _0xbbbe32=JSON[_0x359015(0x14a)](a125_0x4e4cfc[_0x359015(0x13a)](_0x4cfd2a,_0x359015(0x148))),_0x134b06=_0xbbbe32[_0x359015(0x144)]||{},_0x46ea29=_0xbbbe32['devDependencies']||{},_0x3e0124=_0x134b06[_0x1fe836]||_0x46ea29[_0x1fe836];if(!_0x3e0124)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};let _0x45a6b6=getInstalledVersion(_0x3a69f5,_0x1fe836);!_0x45a6b6&&(_0x45a6b6=_0x3e0124);if(isNonNumericVersion(_0x3e0124))return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};const _0xbfbe95=a125_0x572a02['coerce'](_0x45a6b6),_0xa15d8b=a125_0x572a02[_0x359015(0x151)](_0x2343d5),_0x3705bb=_0xbfbe95&&_0xa15d8b?a125_0x572a02['lt'](_0xbfbe95,_0xa15d8b):![];return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':_0x3705bb,'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}}export function checkSdkVersionSync(_0x1c31d5){const _0x1a4ee7=a125_0x526cb1,_0xbea49d=a125_0x5d03e5[_0x1a4ee7(0x14e)](_0x1c31d5,'package.json'),_0x42967c='@lovrabet/sdk';if(!a125_0x4e4cfc[_0x1a4ee7(0x13b)](_0xbea49d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};try{const _0x2009a3=JSON[_0x1a4ee7(0x14a)](a125_0x4e4cfc[_0x1a4ee7(0x13a)](_0xbea49d,'utf8')),_0x13a3b9=_0x2009a3[_0x1a4ee7(0x144)]||{},_0x5b6a42=_0x2009a3['devDependencies']||{},_0x20e261=_0x13a3b9[_0x42967c]||_0x5b6a42[_0x42967c];if(!_0x20e261)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};let _0x2f9e16=getInstalledVersion(_0x1c31d5,_0x42967c);!_0x2f9e16&&(_0x2f9e16=_0x20e261);if(isNonNumericVersion(_0x20e261))return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};const _0x16575d=a125_0x572a02['coerce'](_0x2f9e16),_0x28d257=_0x16575d?a125_0x572a02['lt'](_0x16575d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':_0x28d257,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ae251){const _0x209271=a125_0x526cb1;if(!_0x2ae251[_0x209271(0x155)])return;const _0x193105=_0x209271(0x13c),_0xe36ffa=_0x209271(0x135),_0x264e31=_0x209271(0x131),_0x5095c2=_0x2ae251['packageName']||_0x209271(0x142),_0x22e129=_0x2ae251[_0x209271(0x132)]||_0x2ae251[_0x209271(0x146)],_0x57f540=_0x209271(0x14b)+_0x5095c2+'@'+(_0x22e129||_0x209271(0x149));console['log'](),console[_0x209271(0x152)](''+_0x193105+_0x264e31+'↪\x20SDK\x20update\x20available'+_0xe36ffa),console[_0x209271(0x152)](_0x193105+'\x20\x20\x20Current\x20version:\x20'+_0x5095c2+'@'+_0x2ae251[_0x209271(0x137)]+_0xe36ffa),console[_0x209271(0x152)](_0x193105+_0x209271(0x13d)+_0x22e129+_0xe36ffa),console['log'](_0x193105+_0x209271(0x136)+_0x57f540+_0xe36ffa),console['log']();}
1
+ function a127_0x16e5(){const _0x52a220=['log','\x20\x20\x20Upgrade\x20command:\x20','utf8','join','\x20\x20\x20Current\x20version:\x20','@lovrabet/sdk','\x20\x20\x20Stable\x20version:\x20','sdk','node_modules','929276GEzmkn','49fOoDhS','1823528garpGP','packageName','139974XALEIi','npm\x20install\x20','3754345fYjsZa','readFileSync','coerce','stableVersion','940981MOIQIM','latest','\x1b[1m','node','parse','↪\x20SDK\x20update\x20available','package.json','dependencies','370030yDVRlh','existsSync','15OfSmsk','version','devDependencies','needsUpgrade','some','567fmxeXZ','552434KsJXVa'];a127_0x16e5=function(){return _0x52a220;};return a127_0x16e5();}(function(_0x367cdc,_0x946344){const _0x4b64c5=a127_0x4ef4,_0x11107b=_0x367cdc();while(!![]){try{const _0x394350=parseInt(_0x4b64c5(0x1fa))/0x1+-parseInt(_0x4b64c5(0x1e6))/0x2+-parseInt(_0x4b64c5(0x1e0))/0x3*(parseInt(_0x4b64c5(0x1f0))/0x4)+-parseInt(_0x4b64c5(0x1f6))/0x5+parseInt(_0x4b64c5(0x1f4))/0x6*(-parseInt(_0x4b64c5(0x1f1))/0x7)+-parseInt(_0x4b64c5(0x1f2))/0x8+-parseInt(_0x4b64c5(0x1e5))/0x9*(-parseInt(_0x4b64c5(0x1de))/0xa);if(_0x394350===_0x946344)break;else _0x11107b['push'](_0x11107b['shift']());}catch(_0x400744){_0x11107b['push'](_0x11107b['shift']());}}}(a127_0x16e5,0xa9015));import a127_0x46aa81 from'node:fs';import a127_0x58711a from'node:path';import a127_0x436481 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x39a8f6){const _0x14f458=a127_0x4ef4,_0x377009=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x377009[_0x14f458(0x1e4)](_0x71eae0=>_0x71eae0['test'](_0x39a8f6));}function a127_0x4ef4(_0xdb48a5,_0x5601e4){_0xdb48a5=_0xdb48a5-0x1d8;const _0x16e5ef=a127_0x16e5();let _0x4ef401=_0x16e5ef[_0xdb48a5];return _0x4ef401;}function getInstalledVersion(_0x5999bb,_0x395f96){const _0x2c88f2=a127_0x4ef4;try{const _0x1f1b5a=a127_0x58711a[_0x2c88f2(0x1ea)](_0x5999bb,_0x2c88f2(0x1ef),_0x395f96,_0x2c88f2(0x1dc));if(a127_0x46aa81[_0x2c88f2(0x1df)](_0x1f1b5a)){const _0x26a128=JSON['parse'](a127_0x46aa81[_0x2c88f2(0x1f7)](_0x1f1b5a,'utf-8'));return _0x26a128[_0x2c88f2(0x1e1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2a741a=a127_0x4ef4;try{const _0x5e56d0=await getCdnConfig();return _0x5e56d0?.[_0x2a741a(0x1ee)]?.[_0x2a741a(0x1d9)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x2bfcd4=a127_0x4ef4;try{const _0x3e3f7f=await getCdnConfig();return _0x3e3f7f?.[_0x2bfcd4(0x1ee)]?.[_0x2bfcd4(0x1d9)]?.[_0x2bfcd4(0x1f3)]||'@lovrabet/sdk';}catch{return _0x2bfcd4(0x1ec);}}export async function checkSdkVersion(_0x2f9598){const _0x3ad9eb=a127_0x4ef4,_0x1423d0=a127_0x58711a[_0x3ad9eb(0x1ea)](_0x2f9598,_0x3ad9eb(0x1dc)),[_0x330a08,_0x48b8e7]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x14ad12=_0x330a08||FALLBACK_MIN_SDK_VERSION;if(!a127_0x46aa81['existsSync'](_0x1423d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14ad12,'packageName':_0x48b8e7,'stableVersion':_0x330a08};try{const _0xd62536=JSON['parse'](a127_0x46aa81[_0x3ad9eb(0x1f7)](_0x1423d0,_0x3ad9eb(0x1e9))),_0x987fe6=_0xd62536['dependencies']||{},_0x50cf28=_0xd62536[_0x3ad9eb(0x1e2)]||{},_0x4e8d9a=_0x987fe6[_0x48b8e7]||_0x50cf28[_0x48b8e7];if(!_0x4e8d9a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14ad12,'packageName':_0x48b8e7,'stableVersion':_0x330a08};let _0x8f82e5=getInstalledVersion(_0x2f9598,_0x48b8e7);!_0x8f82e5&&(_0x8f82e5=_0x4e8d9a);if(isNonNumericVersion(_0x4e8d9a))return{'installed':!![],'version':_0x8f82e5,'needsUpgrade':![],'minVersion':_0x14ad12,'packageName':_0x48b8e7,'stableVersion':_0x330a08};const _0x3fbdb8=a127_0x436481['coerce'](_0x8f82e5),_0x3e451f=a127_0x436481['coerce'](_0x14ad12),_0x19515d=_0x3fbdb8&&_0x3e451f?a127_0x436481['lt'](_0x3fbdb8,_0x3e451f):![];return{'installed':!![],'version':_0x8f82e5,'needsUpgrade':_0x19515d,'minVersion':_0x14ad12,'packageName':_0x48b8e7,'stableVersion':_0x330a08};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14ad12,'packageName':_0x48b8e7,'stableVersion':_0x330a08};}}export function checkSdkVersionSync(_0x4695b1){const _0x7e8cce=a127_0x4ef4,_0x2aa39d=a127_0x58711a[_0x7e8cce(0x1ea)](_0x4695b1,_0x7e8cce(0x1dc)),_0x16b39f='@lovrabet/sdk';if(!a127_0x46aa81['existsSync'](_0x2aa39d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x16b39f,'stableVersion':null};try{const _0x38608e=JSON[_0x7e8cce(0x1da)](a127_0x46aa81[_0x7e8cce(0x1f7)](_0x2aa39d,'utf8')),_0x17c294=_0x38608e[_0x7e8cce(0x1dd)]||{},_0x2ea196=_0x38608e[_0x7e8cce(0x1e2)]||{},_0x4020e5=_0x17c294[_0x16b39f]||_0x2ea196[_0x16b39f];if(!_0x4020e5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x16b39f,'stableVersion':null};let _0x1ceab2=getInstalledVersion(_0x4695b1,_0x16b39f);!_0x1ceab2&&(_0x1ceab2=_0x4020e5);if(isNonNumericVersion(_0x4020e5))return{'installed':!![],'version':_0x1ceab2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x16b39f,'stableVersion':null};const _0x1e722b=a127_0x436481[_0x7e8cce(0x1f8)](_0x1ceab2),_0x50430c=_0x1e722b?a127_0x436481['lt'](_0x1e722b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1ceab2,'needsUpgrade':_0x50430c,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x16b39f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x16b39f,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x470254){const _0xfb4c45=a127_0x4ef4;if(!_0x470254[_0xfb4c45(0x1e3)])return;const _0x50d655='\x1b[33m',_0x25a803='\x1b[0m',_0x58cc87=_0xfb4c45(0x1d8),_0x4086c7=_0x470254['packageName']||_0xfb4c45(0x1ec),_0x339595=_0x470254[_0xfb4c45(0x1f9)]||_0x470254['minVersion'],_0x29fb14=_0xfb4c45(0x1f5)+_0x4086c7+'@'+(_0x339595||_0xfb4c45(0x1fb));console[_0xfb4c45(0x1e7)](),console[_0xfb4c45(0x1e7)](''+_0x50d655+_0x58cc87+_0xfb4c45(0x1db)+_0x25a803),console[_0xfb4c45(0x1e7)](_0x50d655+_0xfb4c45(0x1eb)+_0x4086c7+'@'+_0x470254['version']+_0x25a803),console[_0xfb4c45(0x1e7)](_0x50d655+_0xfb4c45(0x1ed)+_0x339595+_0x25a803),console[_0xfb4c45(0x1e7)](_0x50d655+_0xfb4c45(0x1e8)+_0x29fb14+_0x25a803),console[_0xfb4c45(0x1e7)]();}
@@ -1 +1 @@
1
- (function(_0x322cda,_0x48d62e){const _0xb6a9f9=a126_0x50b9,_0x10c7f7=_0x322cda();while(!![]){try{const _0x1d5832=parseInt(_0xb6a9f9(0x200))/0x1+-parseInt(_0xb6a9f9(0x1f6))/0x2*(parseInt(_0xb6a9f9(0x1fa))/0x3)+parseInt(_0xb6a9f9(0x1fd))/0x4*(-parseInt(_0xb6a9f9(0x1fe))/0x5)+parseInt(_0xb6a9f9(0x1f8))/0x6+-parseInt(_0xb6a9f9(0x1f7))/0x7+-parseInt(_0xb6a9f9(0x1e8))/0x8*(-parseInt(_0xb6a9f9(0x1eb))/0x9)+-parseInt(_0xb6a9f9(0x1f0))/0xa*(-parseInt(_0xb6a9f9(0x1f1))/0xb);if(_0x1d5832===_0x48d62e)break;else _0x10c7f7['push'](_0x10c7f7['shift']());}catch(_0x18d668){_0x10c7f7['push'](_0x10c7f7['shift']());}}}(a126_0x2f2f,0x3cc21));import{readFileSync}from'node:fs';function a126_0x50b9(_0x9c9c4,_0x571467){_0x9c9c4=_0x9c9c4-0x1e6;const _0x2f2fc3=a126_0x2f2f();let _0x50b966=_0x2f2fc3[_0x9c9c4];return _0x50b966;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a126_0x1491af from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a126_0x2f2f(){const _0x3de7c2=['currentVersion','cli','390yWogqa','66077nAUQbZ','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','utf-8','coerce','18tgLpNr','2356277akTvMc','2864268qJcjpA','parse','78108gRUhkq','\x20\x20\x20Upgrade\x20command:\x20','log','1828GNapfx','3530WTCZCR','../..','82064wuWiur','stableVersion','\x1b[1m','2789816ZqJidR','\x1b[33m','test','9NgYvpn','1.0.0','@latest'];a126_0x2f2f=function(){return _0x3de7c2;};return a126_0x2f2f();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x2e97e7=a126_0x50b9;try{const _0x4f2974=fileURLToPath(import.meta.url),_0x12d7db=resolve(dirname(_0x4f2974),_0x2e97e7(0x1ff)),_0x1f9ba7=resolve(_0x12d7db,'package.json'),_0x50fb6a=JSON[_0x2e97e7(0x1f9)](readFileSync(_0x1f9ba7,_0x2e97e7(0x1f4)));return _0x50fb6a['version']||_0x2e97e7(0x1ec);}catch{return _0x2e97e7(0x1ec);}}function isNonNumericVersion(_0x54fc0e){const _0x30da5a=a126_0x50b9,_0x1a2d74=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x1a2d74['some'](_0x178c89=>_0x178c89[_0x30da5a(0x1ea)](_0x54fc0e));}export async function checkCliVersion(){const _0x53cc04=a126_0x50b9,_0x52991f=getCurrentCliVersion(),_0x681b1f=await getCdnConfig(),_0xb37338=_0x681b1f?.[_0x53cc04(0x1ef)]?.[_0x53cc04(0x1e6)]||null;let _0x577c96=![];if(_0xb37338)try{const _0x552f67=a126_0x1491af[_0x53cc04(0x1f5)](_0x52991f),_0x33dd65=a126_0x1491af[_0x53cc04(0x1f5)](_0xb37338);_0x552f67&&_0x33dd65&&(_0x577c96=a126_0x1491af['lt'](_0x552f67,_0x33dd65));}catch{_0x577c96=![];}return{'currentVersion':_0x52991f,'stableVersion':_0xb37338,'needsUpgrade':_0x577c96,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42aac5){const _0x2a51b3=a126_0x50b9;if(!_0x42aac5['needsUpgrade'])return;const _0x561368=_0x2a51b3(0x1e9),_0x3f19ee='\x1b[0m',_0x5f49a5=_0x2a51b3(0x1e7),_0x483c75='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x2a51b3(0x1ed);console['log'](),console['log'](''+_0x561368+_0x5f49a5+_0x2a51b3(0x1f2)+_0x3f19ee),console['log'](_0x561368+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x42aac5[_0x2a51b3(0x1ee)]+_0x3f19ee),console[_0x2a51b3(0x1fc)](_0x561368+_0x2a51b3(0x1f3)+_0x42aac5['stableVersion']+_0x3f19ee),console['log'](_0x561368+_0x2a51b3(0x1fb)+_0x483c75+_0x3f19ee),console[_0x2a51b3(0x1fc)]();}
1
+ (function(_0x398237,_0x436eb8){const _0x31dc89=a128_0x5a45,_0x59787d=_0x398237();while(!![]){try{const _0x53c3e9=-parseInt(_0x31dc89(0x16b))/0x1+parseInt(_0x31dc89(0x16c))/0x2*(parseInt(_0x31dc89(0x17c))/0x3)+-parseInt(_0x31dc89(0x168))/0x4+parseInt(_0x31dc89(0x171))/0x5*(parseInt(_0x31dc89(0x164))/0x6)+parseInt(_0x31dc89(0x17b))/0x7+-parseInt(_0x31dc89(0x172))/0x8+parseInt(_0x31dc89(0x169))/0x9*(parseInt(_0x31dc89(0x170))/0xa);if(_0x53c3e9===_0x436eb8)break;else _0x59787d['push'](_0x59787d['shift']());}catch(_0x55693d){_0x59787d['push'](_0x59787d['shift']());}}}(a128_0x229f,0x75619));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a128_0x2d1248 from'semver';function a128_0x229f(){const _0x1ea71=['log','coerce','1.0.0','387856bZjiQu','10353aIIpEk','@latest','needsUpgrade','\x1b[0m','6LPHpwu','\x20\x20\x20Current\x20CLI\x20version:\x20','↪\x20New\x20version\x20available','version','3421376JkoCNd','1814625cHhCPK','npm\x20install\x20-g\x20','953449cfdUPB','404XAJmZU','utf-8','\x1b[1m','parse','100pXonUW','764465UEnifV','5056536jVXEPk','\x1b[33m','stableVersion','package.json','\x20\x20\x20Upgrade\x20command:\x20','some'];a128_0x229f=function(){return _0x1ea71;};return a128_0x229f();}import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a128_0x5a45(_0x2d96cd,_0x2297ad){_0x2d96cd=_0x2d96cd-0x164;const _0x229f3f=a128_0x229f();let _0x5a4597=_0x229f3f[_0x2d96cd];return _0x5a4597;}function getCurrentCliVersion(){const _0x566508=a128_0x5a45;try{const _0x43d776=fileURLToPath(import.meta.url),_0x528481=resolve(dirname(_0x43d776),'../..'),_0x1c0a6e=resolve(_0x528481,_0x566508(0x175)),_0x196323=JSON[_0x566508(0x16f)](readFileSync(_0x1c0a6e,_0x566508(0x16d)));return _0x196323[_0x566508(0x167)]||_0x566508(0x17a);}catch{return _0x566508(0x17a);}}function isNonNumericVersion(_0x172cdf){const _0x338317=a128_0x5a45,_0x45cb0b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x45cb0b[_0x338317(0x177)](_0x125d9c=>_0x125d9c['test'](_0x172cdf));}export async function checkCliVersion(){const _0x23d065=a128_0x5a45,_0x563e35=getCurrentCliVersion(),_0x201a51=await getCdnConfig(),_0x47878a=_0x201a51?.['cli']?.[_0x23d065(0x174)]||null;let _0x3a8fdf=![];if(_0x47878a)try{const _0x2c492e=a128_0x2d1248[_0x23d065(0x179)](_0x563e35),_0x5baa9e=a128_0x2d1248[_0x23d065(0x179)](_0x47878a);_0x2c492e&&_0x5baa9e&&(_0x3a8fdf=a128_0x2d1248['lt'](_0x2c492e,_0x5baa9e));}catch{_0x3a8fdf=![];}return{'currentVersion':_0x563e35,'stableVersion':_0x47878a,'needsUpgrade':_0x3a8fdf,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x5cdd44){const _0x3207e3=a128_0x5a45;if(!_0x5cdd44[_0x3207e3(0x17e)])return;const _0x49b4f2=_0x3207e3(0x173),_0x5e596f=_0x3207e3(0x17f),_0x448fcc=_0x3207e3(0x16e),_0x4724b7=_0x3207e3(0x16a)+NPM_PACKAGE_NAME+_0x3207e3(0x17d);console['log'](),console[_0x3207e3(0x178)](''+_0x49b4f2+_0x448fcc+_0x3207e3(0x166)+_0x5e596f),console[_0x3207e3(0x178)](_0x49b4f2+_0x3207e3(0x165)+_0x5cdd44['currentVersion']+_0x5e596f),console['log'](_0x49b4f2+'\x20\x20\x20Stable\x20version:\x20'+_0x5cdd44[_0x3207e3(0x174)]+_0x5e596f),console[_0x3207e3(0x178)](_0x49b4f2+_0x3207e3(0x176)+_0x4724b7+_0x5e596f),console[_0x3207e3(0x178)]();}
@@ -1 +1 @@
1
- function a127_0x13d5(){const _0x56a62c=['apiDir','project','205zeyfLU','string','object','12iEtTPT','49256aqihDK','filter','map','merged','612mPKuFz','keys','77ICjBZT','apps','env','1660869dZgezW','defaultApp','values','template_base_url','168724ZATBVU','trim','894310jxboEn','length','appcode','entries','148584JMtwTF','396097KYrkHh','https://g.lovrabet.com/dist/lovrabet-skill','app','65370aoWglJ'];a127_0x13d5=function(){return _0x56a62c;};return a127_0x13d5();}const a127_0x20cc2b=a127_0x4fa6;(function(_0x5fca22,_0x43ece9){const _0x58c71c=a127_0x4fa6,_0x25c855=_0x5fca22();while(!![]){try{const _0x281c69=-parseInt(_0x58c71c(0x1bf))/0x1+parseInt(_0x58c71c(0x1aa))/0x2*(-parseInt(_0x58c71c(0x1be))/0x3)+parseInt(_0x58c71c(0x1b8))/0x4+-parseInt(_0x58c71c(0x1a7))/0x5*(-parseInt(_0x58c71c(0x1c2))/0x6)+parseInt(_0x58c71c(0x1b4))/0x7+-parseInt(_0x58c71c(0x1ab))/0x8*(parseInt(_0x58c71c(0x1af))/0x9)+-parseInt(_0x58c71c(0x1ba))/0xa*(-parseInt(_0x58c71c(0x1b1))/0xb);if(_0x281c69===_0x43ece9)break;else _0x25c855['push'](_0x25c855['shift']());}catch(_0x3597d5){_0x25c855['push'](_0x25c855['shift']());}}}(a127_0x13d5,0x3aa5b));import{initEnv}from'../constant/env.js';function a127_0x4fa6(_0x3b0d95,_0x1f3fde){_0x3b0d95=_0x3b0d95-0x1a5;const _0x13d597=a127_0x13d5();let _0x4fa6ae=_0x13d597[_0x3b0d95];return _0x4fa6ae;}import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x918a0){const _0x2d216b=a127_0x4fa6,_0x51d6b3=readRawConfig(_0x918a0);return _0x51d6b3[_0x2d216b(0x1b3)]&&typeof _0x51d6b3['env']===_0x2d216b(0x1a8)&&initEnv(_0x51d6b3[_0x2d216b(0x1b3)]),_0x51d6b3;}export function getConfigAppCode(){const _0x17b2a1=a127_0x4fa6,_0x1490c4=readRawConfig();if(_0x1490c4[_0x17b2a1(0x1b2)]&&typeof _0x1490c4[_0x17b2a1(0x1b2)]===_0x17b2a1(0x1a9)){const _0x2c5a6d=_0x1490c4[_0x17b2a1(0x1b5)];if(_0x2c5a6d&&_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d]?.[_0x17b2a1(0x1bc)])return String(_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d][_0x17b2a1(0x1bc)])[_0x17b2a1(0x1b9)]();const _0x421210=Object[_0x17b2a1(0x1b6)](_0x1490c4[_0x17b2a1(0x1b2)])[0x0];if(_0x421210?.[_0x17b2a1(0x1bc)])return String(_0x421210[_0x17b2a1(0x1bc)])['trim']();}const _0x3e93db=_0x1490c4[_0x17b2a1(0x1bc)]||_0x1490c4[_0x17b2a1(0x1c1)];if(typeof _0x3e93db!==_0x17b2a1(0x1a8)||_0x3e93db[_0x17b2a1(0x1b9)]()==='')return undefined;return _0x3e93db[_0x17b2a1(0x1b9)]();}export function getMultiAppConfigs(_0x15b842=a127_0x20cc2b(0x1a6)){const _0x5ef69c=a127_0x20cc2b,_0x120d5a=_0x15b842===_0x5ef69c(0x1ae)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x245ab1=_0x120d5a[_0x5ef69c(0x1b2)];if(!_0x245ab1||typeof _0x245ab1!==_0x5ef69c(0x1a9)||Object[_0x5ef69c(0x1b0)](_0x245ab1)[_0x5ef69c(0x1bb)]===0x0)return null;const _0x18eaf=_0x120d5a['defaultApp'];return Object[_0x5ef69c(0x1bd)](_0x245ab1)[_0x5ef69c(0x1ad)](([_0x154bbc,_0x35aeeb])=>({'name':_0x154bbc,'appcode':_0x35aeeb?.[_0x5ef69c(0x1bc)]||'','isDefault':_0x154bbc===_0x18eaf,'env':_0x35aeeb?.[_0x5ef69c(0x1b3)],'apiDir':_0x35aeeb?.[_0x5ef69c(0x1a5)],'cookie':_0x35aeeb?.['cookie']||undefined}))[_0x5ef69c(0x1ac)](_0x2faa9f=>_0x2faa9f['appcode']);}export function getTemplateBaseUrl(){const _0x286937=a127_0x20cc2b,_0x1d1c2a=readRawConfig();if(_0x1d1c2a['template_base_url']&&typeof _0x1d1c2a[_0x286937(0x1b7)]===_0x286937(0x1a8))return _0x1d1c2a[_0x286937(0x1b7)]['replace'](/\/$/,'');return _0x286937(0x1c0);}
1
+ const a129_0x2f63f9=a129_0xe00b;function a129_0xe00b(_0x562bfb,_0x1cdf80){_0x562bfb=_0x562bfb-0xca;const _0x45f0fb=a129_0x45f0();let _0xe00b06=_0x45f0fb[_0x562bfb];return _0xe00b06;}(function(_0x1bd28a,_0x33c5ac){const _0x4ea7b8=a129_0xe00b,_0x5b0def=_0x1bd28a();while(!![]){try{const _0x1b3b7e=parseInt(_0x4ea7b8(0xda))/0x1*(parseInt(_0x4ea7b8(0xcf))/0x2)+-parseInt(_0x4ea7b8(0xce))/0x3+-parseInt(_0x4ea7b8(0xcb))/0x4+-parseInt(_0x4ea7b8(0xd2))/0x5+parseInt(_0x4ea7b8(0xd7))/0x6+parseInt(_0x4ea7b8(0xcc))/0x7+parseInt(_0x4ea7b8(0xdb))/0x8*(-parseInt(_0x4ea7b8(0xe0))/0x9);if(_0x1b3b7e===_0x33c5ac)break;else _0x5b0def['push'](_0x5b0def['shift']());}catch(_0x4cd1e7){_0x5b0def['push'](_0x5b0def['shift']());}}}(a129_0x45f0,0x8efee));import{initEnv}from'../constant/env.js';import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5f00d3){const _0x1505c7=a129_0xe00b,_0x3a34af=readRawConfig(_0x5f00d3);return _0x3a34af['env']&&typeof _0x3a34af['env']===_0x1505c7(0xe3)&&initEnv(_0x3a34af[_0x1505c7(0xde)]),_0x3a34af;}export function getConfigAppCode(){const _0x1f7128=a129_0xe00b,_0x16a7cb=readRawConfig();if(_0x16a7cb[_0x1f7128(0xe1)]&&typeof _0x16a7cb[_0x1f7128(0xe1)]===_0x1f7128(0xd6)){const _0x2df1b6=_0x16a7cb[_0x1f7128(0xd4)];if(_0x2df1b6&&_0x16a7cb[_0x1f7128(0xe1)][_0x2df1b6]?.[_0x1f7128(0xd5)])return String(_0x16a7cb['apps'][_0x2df1b6][_0x1f7128(0xd5)])[_0x1f7128(0xd1)]();const _0x48e33e=Object[_0x1f7128(0xca)](_0x16a7cb['apps'])[0x0];if(_0x48e33e?.[_0x1f7128(0xd5)])return String(_0x48e33e['appcode'])['trim']();}const _0x1f96d3=_0x16a7cb[_0x1f7128(0xd5)]||_0x16a7cb[_0x1f7128(0xd0)];if(typeof _0x1f96d3!==_0x1f7128(0xe3)||_0x1f96d3['trim']()==='')return undefined;return _0x1f96d3[_0x1f7128(0xd1)]();}export function getMultiAppConfigs(_0x2c076d=a129_0x2f63f9(0xdd)){const _0x309de7=a129_0x2f63f9,_0x56d994=_0x2c076d==='merged'?readRawConfig():loadRawConfigLayers()[_0x309de7(0xd3)],_0x4e1b73=_0x56d994['apps'];if(!_0x4e1b73||typeof _0x4e1b73!==_0x309de7(0xd6)||Object[_0x309de7(0xdc)](_0x4e1b73)[_0x309de7(0xcd)]===0x0)return null;const _0x502e00=_0x56d994['defaultApp'];return Object['entries'](_0x4e1b73)['map'](([_0x56e6c7,_0x286442])=>({'name':_0x56e6c7,'appcode':_0x286442?.[_0x309de7(0xd5)]||'','isDefault':_0x56e6c7===_0x502e00,'env':_0x286442?.['env'],'apiDir':_0x286442?.[_0x309de7(0xd8)],'cookie':_0x286442?.[_0x309de7(0xe2)]||undefined}))[_0x309de7(0xd9)](_0x989720=>_0x989720[_0x309de7(0xd5)]);}function a129_0x45f0(){const _0x395561=['projectConfig','defaultApp','appcode','object','3658866wRnPWX','apiDir','filter','905189NVKueX','136BQtJBr','keys','project','env','template_base_url','23643zKTErg','apps','cookie','string','values','1825688ZOnedF','4701935fkzIXs','length','623787arGyyW','2xYsXMz','app','trim','4459925IKfzQZ'];a129_0x45f0=function(){return _0x395561;};return a129_0x45f0();}export function getTemplateBaseUrl(){const _0x5ab5d4=a129_0x2f63f9,_0x36abe2=readRawConfig();if(_0x36abe2[_0x5ab5d4(0xdf)]&&typeof _0x36abe2[_0x5ab5d4(0xdf)]===_0x5ab5d4(0xe3))return _0x36abe2[_0x5ab5d4(0xdf)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}
@@ -1 +1 @@
1
- (function(_0x4ba708,_0x148400){const _0x738a6f=a128_0x372c,_0x30921c=_0x4ba708();while(!![]){try{const _0x1e53b2=-parseInt(_0x738a6f(0x119))/0x1*(parseInt(_0x738a6f(0x10d))/0x2)+-parseInt(_0x738a6f(0x10e))/0x3+-parseInt(_0x738a6f(0x112))/0x4+-parseInt(_0x738a6f(0x117))/0x5*(parseInt(_0x738a6f(0x116))/0x6)+parseInt(_0x738a6f(0x10f))/0x7*(-parseInt(_0x738a6f(0x111))/0x8)+-parseInt(_0x738a6f(0x114))/0x9*(-parseInt(_0x738a6f(0x11b))/0xa)+parseInt(_0x738a6f(0x11a))/0xb;if(_0x1e53b2===_0x148400)break;else _0x30921c['push'](_0x30921c['shift']());}catch(_0x111536){_0x30921c['push'](_0x30921c['shift']());}}}(a128_0x1eca,0x27bf9));import a128_0x19bff8 from'node:path';import a128_0x4882f5 from'node:fs';function a128_0x372c(_0x11bc17,_0xe32f0f){_0x11bc17=_0x11bc17-0x109;const _0x1eca23=a128_0x1eca();let _0x372c8b=_0x1eca23[_0x11bc17];return _0x372c8b;}export async function copyDirectory(_0x1f4a5e,_0x5464b2){const _0x48e906=a128_0x372c;try{const _0x3d2ccf=a128_0x4882f5[_0x48e906(0x110)](_0x1f4a5e,{'withFileTypes':!![]});a128_0x4882f5[_0x48e906(0x10b)](_0x5464b2,{'recursive':!![]});for(const _0x42e452 of _0x3d2ccf){const _0x39ca2f=a128_0x19bff8[_0x48e906(0x118)](_0x1f4a5e,_0x42e452['name']),_0x51180e=a128_0x19bff8['join'](_0x5464b2,_0x42e452[_0x48e906(0x10c)]);_0x42e452[_0x48e906(0x113)]()?await copyDirectory(_0x39ca2f,_0x51180e):a128_0x4882f5[_0x48e906(0x10a)](_0x39ca2f,_0x51180e);}}catch(_0x298434){console[_0x48e906(0x115)](_0x48e906(0x109),_0x298434);}}function a128_0x1eca(){const _0x32dad5=['18uHNZMF','error','1377246xRCZbn','5rgpFfJ','join','8517xCZQlc','8045444jfCpUC','1371100llciKp','复制目录时出错:','copyFileSync','mkdirSync','name','54bTVmKz','458268TVnQoL','1600431VaGlco','readdirSync','8EUOrbZ','7704qCtJWC','isDirectory'];a128_0x1eca=function(){return _0x32dad5;};return a128_0x1eca();}
1
+ (function(_0xeddd30,_0x10460e){const _0x4748d9=a130_0x1c3a,_0x494d3b=_0xeddd30();while(!![]){try{const _0x50b5e8=-parseInt(_0x4748d9(0x156))/0x1*(-parseInt(_0x4748d9(0x14a))/0x2)+-parseInt(_0x4748d9(0x159))/0x3+-parseInt(_0x4748d9(0x154))/0x4+parseInt(_0x4748d9(0x14c))/0x5*(-parseInt(_0x4748d9(0x152))/0x6)+parseInt(_0x4748d9(0x14f))/0x7*(parseInt(_0x4748d9(0x14e))/0x8)+-parseInt(_0x4748d9(0x14d))/0x9+parseInt(_0x4748d9(0x157))/0xa;if(_0x50b5e8===_0x10460e)break;else _0x494d3b['push'](_0x494d3b['shift']());}catch(_0x4ae4c6){_0x494d3b['push'](_0x494d3b['shift']());}}}(a130_0x3441,0x32a4a));function a130_0x3441(){const _0xc19f96=['1672KXfjAK','2471dkQmkd','copyFileSync','isDirectory','2274LpDzWp','复制目录时出错:','1449904daeZNL','join','2TeBImY','7964330XHKaCi','readdirSync','2043HIozsX','name','230636mJoSTH','mkdirSync','3145ZncXVq','2626776WSVJve'];a130_0x3441=function(){return _0xc19f96;};return a130_0x3441();}import a130_0x3f3fff from'node:path';import a130_0x37f6fd from'node:fs';function a130_0x1c3a(_0x31061d,_0x4e1ea5){_0x31061d=_0x31061d-0x149;const _0x344121=a130_0x3441();let _0x1c3a37=_0x344121[_0x31061d];return _0x1c3a37;}export async function copyDirectory(_0x6b89a8,_0x1b5892){const _0x4bbdf9=a130_0x1c3a;try{const _0x28bba5=a130_0x37f6fd[_0x4bbdf9(0x158)](_0x6b89a8,{'withFileTypes':!![]});a130_0x37f6fd[_0x4bbdf9(0x14b)](_0x1b5892,{'recursive':!![]});for(const _0x2055e0 of _0x28bba5){const _0x41ee98=a130_0x3f3fff[_0x4bbdf9(0x155)](_0x6b89a8,_0x2055e0['name']),_0x294ce1=a130_0x3f3fff[_0x4bbdf9(0x155)](_0x1b5892,_0x2055e0[_0x4bbdf9(0x149)]);_0x2055e0[_0x4bbdf9(0x151)]()?await copyDirectory(_0x41ee98,_0x294ce1):a130_0x37f6fd[_0x4bbdf9(0x150)](_0x41ee98,_0x294ce1);}}catch(_0x1a0af3){console['error'](_0x4bbdf9(0x153),_0x1a0af3);}}
@@ -1 +1 @@
1
- (function(_0x36d548,_0x215c5b){const _0x457264=a129_0x4531,_0x1ac43d=_0x36d548();while(!![]){try{const _0xd6bf94=-parseInt(_0x457264(0x133))/0x1+-parseInt(_0x457264(0x136))/0x2+parseInt(_0x457264(0x130))/0x3+parseInt(_0x457264(0x137))/0x4+-parseInt(_0x457264(0x135))/0x5*(parseInt(_0x457264(0x131))/0x6)+-parseInt(_0x457264(0x132))/0x7*(-parseInt(_0x457264(0x12f))/0x8)+parseInt(_0x457264(0x134))/0x9;if(_0xd6bf94===_0x215c5b)break;else _0x1ac43d['push'](_0x1ac43d['shift']());}catch(_0x130998){_0x1ac43d['push'](_0x1ac43d['shift']());}}}(a129_0x55b4,0x319de));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a129_0x4531(_0x468e12,_0x4f6afd){_0x468e12=_0x468e12-0x12f;const _0x55b4a0=a129_0x55b4();let _0x4531b5=_0x55b4a0[_0x468e12];return _0x4531b5;}export async function copyDir(_0x20f6b7,_0x260cce){const _0x2f96ad=statSync(_0x20f6b7);if(_0x2f96ad['isDirectory']()){!existsSync(_0x260cce)&&mkdirSync(_0x260cce,{'recursive':!![]});const _0x1a9d1d=readdirSync(_0x20f6b7);for(const _0x3b2d7e of _0x1a9d1d){await copyDir(join(_0x20f6b7,_0x3b2d7e),join(_0x260cce,_0x3b2d7e));}}else copyFileSync(_0x20f6b7,_0x260cce);}function a129_0x55b4(){const _0x2debfa=['1708416WEwIsk','15qmphKT','535788XQYbgG','1596292MymIeV','5944BrYyIF','167955dAozXf','31266CFLXLj','1484myQVSe','315641OipKeL'];a129_0x55b4=function(){return _0x2debfa;};return a129_0x55b4();}export function ensureDir(_0x4ddf77){!existsSync(_0x4ddf77)&&mkdirSync(_0x4ddf77,{'recursive':!![]});}export function pathExists(_0x5ab459){return existsSync(_0x5ab459);}
1
+ (function(_0x5b6cdf,_0x54f4f9){const _0x2f76db=a131_0x59b1,_0x18258c=_0x5b6cdf();while(!![]){try{const _0x1077dd=-parseInt(_0x2f76db(0x116))/0x1+-parseInt(_0x2f76db(0x115))/0x2+parseInt(_0x2f76db(0x112))/0x3*(-parseInt(_0x2f76db(0x117))/0x4)+-parseInt(_0x2f76db(0x110))/0x5+parseInt(_0x2f76db(0x118))/0x6+parseInt(_0x2f76db(0x111))/0x7*(-parseInt(_0x2f76db(0x113))/0x8)+-parseInt(_0x2f76db(0x10f))/0x9*(-parseInt(_0x2f76db(0x114))/0xa);if(_0x1077dd===_0x54f4f9)break;else _0x18258c['push'](_0x18258c['shift']());}catch(_0xda7392){_0x18258c['push'](_0x18258c['shift']());}}}(a131_0x13b5,0xd1e5c));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a131_0x13b5(){const _0xe21e7f=['isDirectory','16212942uHuiqw','8173795fnSahQ','21lKubYL','813861ZIQjVK','104336IFpMtp','10ArpGKE','293990GMYWRl','188627gESDTc','8fRGKkf','9662298NNUrxu'];a131_0x13b5=function(){return _0xe21e7f;};return a131_0x13b5();}export async function copyDir(_0xc60788,_0x40bbb3){const _0x509168=a131_0x59b1,_0x5cd6ab=statSync(_0xc60788);if(_0x5cd6ab[_0x509168(0x10e)]()){!existsSync(_0x40bbb3)&&mkdirSync(_0x40bbb3,{'recursive':!![]});const _0x524f18=readdirSync(_0xc60788);for(const _0x1fa56c of _0x524f18){await copyDir(join(_0xc60788,_0x1fa56c),join(_0x40bbb3,_0x1fa56c));}}else copyFileSync(_0xc60788,_0x40bbb3);}export function ensureDir(_0x46f98c){!existsSync(_0x46f98c)&&mkdirSync(_0x46f98c,{'recursive':!![]});}function a131_0x59b1(_0x13a2a9,_0x29b0a1){_0x13a2a9=_0x13a2a9-0x10e;const _0x13b505=a131_0x13b5();let _0x59b113=_0x13b505[_0x13a2a9];return _0x59b113;}export function pathExists(_0x480437){return existsSync(_0x480437);}
@@ -1 +1 @@
1
- const a130_0x33f606=a130_0x5c00;(function(_0x490898,_0xd5dec0){const _0x4cbfbd=a130_0x5c00,_0x57a43e=_0x490898();while(!![]){try{const _0x4fe23e=parseInt(_0x4cbfbd(0x110))/0x1+parseInt(_0x4cbfbd(0xf7))/0x2*(parseInt(_0x4cbfbd(0x10b))/0x3)+parseInt(_0x4cbfbd(0xfc))/0x4*(-parseInt(_0x4cbfbd(0x105))/0x5)+parseInt(_0x4cbfbd(0x10f))/0x6*(-parseInt(_0x4cbfbd(0x103))/0x7)+parseInt(_0x4cbfbd(0x111))/0x8*(parseInt(_0x4cbfbd(0x112))/0x9)+parseInt(_0x4cbfbd(0x10c))/0xa+-parseInt(_0x4cbfbd(0xfa))/0xb;if(_0x4fe23e===_0xd5dec0)break;else _0x57a43e['push'](_0x57a43e['shift']());}catch(_0xbf48be){_0x57a43e['push'](_0x57a43e['shift']());}}}(a130_0x3daf,0xd43a5));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a130_0x3daf(){const _0x4c4592=['206200zYZziC','333AbHWYs','replace','map','application/json','guides','.lovrabet','content','CDN\x20请求失败:\x20','.md','utf-8','620038fBxvAN','CDN\x20返回数据格式错误','json','8542424tttEKE','length','4mxFwSa','/skills/guides.json','skillTemplate','title','status','join','push','21wcQupT','CDN\x20数据中缺少\x20skillTemplate','7372965isBHaG','extendContent','entries','cache','lastUpdated','\x0a\x0a>更新时间:','3okmAke','10171290jOfupN','trimEnd','.lovrabet/skill/guides','219894OqhGvO','949586ejQvwB'];a130_0x3daf=function(){return _0x4c4592;};return a130_0x3daf();}function getGuidesCdnUrl(){const _0x20977e=a130_0x5c00,_0x2075eb=getTemplateBaseUrl();return _0x2075eb+_0x20977e(0xfd);}const CACHE_DIR=join(homedir(),a130_0x33f606(0xf2),a130_0x33f606(0x108));export async function fetchGuidesFromCDN(){const _0x268371=a130_0x33f606,_0x12418c=getGuidesCdnUrl(),_0x657d6a=await fetch(_0x12418c,{'headers':{'Accept':_0x268371(0xf0)}});if(!_0x657d6a['ok'])throw new Error(_0x268371(0xf4)+_0x657d6a[_0x268371(0x100)]+'\x20'+_0x657d6a['statusText']);const _0x28bdb3=await _0x657d6a[_0x268371(0xf9)]();if(!_0x28bdb3[_0x268371(0xf1)]||typeof _0x28bdb3['guides']!=='object')throw new Error(_0x268371(0xf8));return _0x28bdb3;}export function writeGuidesToProject(_0x300033,_0x12feca,_0x4898e8=a130_0x33f606(0x10e),_0x49c22c){const _0x37ac37=a130_0x33f606,_0x4090ba=join(_0x12feca,_0x4898e8);mkdirSync(_0x4090ba,{'recursive':!![]});for(const [_0x31b709,_0x2cb0e4]of Object[_0x37ac37(0x107)](_0x300033[_0x37ac37(0xf1)])){let _0x1899e3=_0x2cb0e4[_0x37ac37(0xf3)];_0x2cb0e4[_0x37ac37(0x109)]&&(_0x1899e3=appendUpdateTime(_0x1899e3,_0x2cb0e4[_0x37ac37(0x109)])),writeFileSync(join(_0x4090ba,_0x31b709+_0x37ac37(0xf5)),_0x1899e3,_0x37ac37(0xf6));}}function a130_0x5c00(_0x832a6d,_0x1c2ef9){_0x832a6d=_0x832a6d-0xf0;const _0x3daf0b=a130_0x3daf();let _0x5c00f6=_0x3daf0b[_0x832a6d];return _0x5c00f6;}export function appendUpdateTime(_0x5e17b3,_0x1cb3f2){const _0x3e2aba=a130_0x33f606;return _0x5e17b3=_0x5e17b3['replace'](/\n*>更新时间:.*$/m,''),_0x5e17b3['trimEnd']()+(_0x3e2aba(0x10a)+_0x1cb3f2);}export function getSkillTemplate(_0x4c688e){const _0x1e7e10=a130_0x33f606;return _0x4c688e[_0x1e7e10(0xfe)]?.[_0x1e7e10(0xf3)]||'';}export function appendExtendContents(_0x21fcfc,_0x21bb13,_0xfb55dc){const _0x5d0421=a130_0x33f606,_0x2ec679=[];for(const [,_0x525dec]of Object['entries'](_0x21bb13[_0x5d0421(0xf1)])){_0x525dec[_0x5d0421(0x106)]&&_0x2ec679[_0x5d0421(0x102)](_0x525dec['extendContent'][_0x5d0421(0x10d)]());}if(_0x2ec679[_0x5d0421(0xfb)]===0x0)return _0x21fcfc;return _0x21fcfc['trimEnd']()+'\x0a\x0a'+_0x2ec679[_0x5d0421(0x101)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49c68d,_0x3a1be9,_0x200c76){const _0x1d5185=a130_0x33f606,_0x2b923f=getSkillTemplate(_0x49c68d);if(!_0x2b923f)throw new Error(_0x1d5185(0x104));const _0x3331b8=dirname(_0x3a1be9);mkdirSync(_0x3331b8,{'recursive':!![]});let _0x48f34a=_0x2b923f[_0x1d5185(0x113)](/\{\{IDE_NAME\}\}/g,_0x200c76);_0x48f34a=appendExtendContents(_0x48f34a,_0x49c68d),_0x49c68d[_0x1d5185(0xfe)][_0x1d5185(0x109)]&&(_0x48f34a=appendUpdateTime(_0x48f34a,_0x49c68d['skillTemplate'][_0x1d5185(0x109)])),writeFileSync(_0x3a1be9,_0x48f34a,_0x1d5185(0xf6));}export async function installGuides(_0x2d3b68){const _0x10d4b6=a130_0x33f606,_0x538688=await fetchGuidesFromCDN();return writeGuidesToProject(_0x538688,_0x2d3b68),Object['keys'](_0x538688['guides'])[_0x10d4b6(0xfb)];}export function getGuidesSummary(_0x2fc53b){const _0x27bf05=a130_0x33f606;return Object[_0x27bf05(0x107)](_0x2fc53b[_0x27bf05(0xf1)])[_0x27bf05(0x114)](([_0x4a1aa0,_0x658a04])=>({'key':_0x4a1aa0,'title':_0x658a04[_0x27bf05(0xff)],'path':_0x658a04['path']}));}
1
+ const a132_0x136d0d=a132_0x2811;(function(_0x11a981,_0xb4c57c){const _0x5c3fdd=a132_0x2811,_0x7a13a3=_0x11a981();while(!![]){try{const _0x49191a=parseInt(_0x5c3fdd(0x1e2))/0x1*(parseInt(_0x5c3fdd(0x1ce))/0x2)+-parseInt(_0x5c3fdd(0x1ca))/0x3*(-parseInt(_0x5c3fdd(0x1cd))/0x4)+-parseInt(_0x5c3fdd(0x1d5))/0x5*(parseInt(_0x5c3fdd(0x1db))/0x6)+parseInt(_0x5c3fdd(0x1d1))/0x7+-parseInt(_0x5c3fdd(0x1d7))/0x8*(parseInt(_0x5c3fdd(0x1c3))/0x9)+-parseInt(_0x5c3fdd(0x1e6))/0xa*(parseInt(_0x5c3fdd(0x1e5))/0xb)+parseInt(_0x5c3fdd(0x1d6))/0xc;if(_0x49191a===_0xb4c57c)break;else _0x7a13a3['push'](_0x7a13a3['shift']());}catch(_0x275f84){_0x7a13a3['push'](_0x7a13a3['shift']());}}}(a132_0x5ecc,0x4572a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2e7202=a132_0x2811,_0x3e7bfe=getTemplateBaseUrl();return _0x3e7bfe+_0x2e7202(0x1cf);}const CACHE_DIR=join(homedir(),a132_0x136d0d(0x1d2),a132_0x136d0d(0x1d9));export async function fetchGuidesFromCDN(){const _0x43168c=a132_0x136d0d,_0x26741f=getGuidesCdnUrl(),_0x168729=await fetch(_0x26741f,{'headers':{'Accept':_0x43168c(0x1d3)}});if(!_0x168729['ok'])throw new Error(_0x43168c(0x1cc)+_0x168729[_0x43168c(0x1c5)]+'\x20'+_0x168729[_0x43168c(0x1e0)]);const _0x2a72af=await _0x168729['json']();if(!_0x2a72af[_0x43168c(0x1c7)]||typeof _0x2a72af[_0x43168c(0x1c7)]!==_0x43168c(0x1d4))throw new Error('CDN\x20返回数据格式错误');return _0x2a72af;}function a132_0x2811(_0x53c3d6,_0x2d780a){_0x53c3d6=_0x53c3d6-0x1c3;const _0x5ecc4c=a132_0x5ecc();let _0x281186=_0x5ecc4c[_0x53c3d6];return _0x281186;}export function writeGuidesToProject(_0x31fe63,_0x4adf9e,_0x55b9ab=a132_0x136d0d(0x1c4),_0x366d78){const _0xba8948=a132_0x136d0d,_0x196557=join(_0x4adf9e,_0x55b9ab);mkdirSync(_0x196557,{'recursive':!![]});for(const [_0x2a4cb5,_0xd9d638]of Object[_0xba8948(0x1da)](_0x31fe63[_0xba8948(0x1c7)])){let _0x2deb2a=_0xd9d638[_0xba8948(0x1df)];_0xd9d638[_0xba8948(0x1cb)]&&(_0x2deb2a=appendUpdateTime(_0x2deb2a,_0xd9d638[_0xba8948(0x1cb)])),writeFileSync(join(_0x196557,_0x2a4cb5+_0xba8948(0x1c6)),_0x2deb2a,_0xba8948(0x1dd));}}function a132_0x5ecc(){const _0x338c63=['keys','map','134523zGKOoj','.lovrabet/skill/guides','status','.md','guides','trimEnd','extendContent','3978yXZCFY','lastUpdated','CDN\x20请求失败:\x20','832HvXyzM','14058ZlTEbF','/skills/guides.json','skillTemplate','1609160UtpCST','.lovrabet','application/json','object','35hJOvpW','6627744sQlGnP','56GPOXOC','replace','cache','entries','413532upvVNj','length','utf-8','CDN\x20数据中缺少\x20skillTemplate','content','statusText','path','2SCUJBQ','title','push','2937teYmZO','7510tWwasc'];a132_0x5ecc=function(){return _0x338c63;};return a132_0x5ecc();}export function appendUpdateTime(_0x19a68f,_0x2bfa9c){const _0x11c3f5=a132_0x136d0d;return _0x19a68f=_0x19a68f[_0x11c3f5(0x1d8)](/\n*>更新时间:.*$/m,''),_0x19a68f[_0x11c3f5(0x1c8)]()+('\x0a\x0a>更新时间:'+_0x2bfa9c);}export function getSkillTemplate(_0x25ec7b){const _0x2d18cb=a132_0x136d0d;return _0x25ec7b[_0x2d18cb(0x1d0)]?.[_0x2d18cb(0x1df)]||'';}export function appendExtendContents(_0x4979e7,_0x5cf949,_0x56ca16){const _0x548307=a132_0x136d0d,_0x295806=[];for(const [,_0x524f3c]of Object[_0x548307(0x1da)](_0x5cf949[_0x548307(0x1c7)])){_0x524f3c['extendContent']&&_0x295806[_0x548307(0x1e4)](_0x524f3c[_0x548307(0x1c9)][_0x548307(0x1c8)]());}if(_0x295806[_0x548307(0x1dc)]===0x0)return _0x4979e7;return _0x4979e7[_0x548307(0x1c8)]()+'\x0a\x0a'+_0x295806['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x37c218,_0x3c680e,_0x53748d){const _0x9d47e0=a132_0x136d0d,_0x3323fd=getSkillTemplate(_0x37c218);if(!_0x3323fd)throw new Error(_0x9d47e0(0x1de));const _0x367a06=dirname(_0x3c680e);mkdirSync(_0x367a06,{'recursive':!![]});let _0x502571=_0x3323fd['replace'](/\{\{IDE_NAME\}\}/g,_0x53748d);_0x502571=appendExtendContents(_0x502571,_0x37c218),_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated']&&(_0x502571=appendUpdateTime(_0x502571,_0x37c218[_0x9d47e0(0x1d0)]['lastUpdated'])),writeFileSync(_0x3c680e,_0x502571,'utf-8');}export async function installGuides(_0x148398){const _0x5333c9=a132_0x136d0d,_0x57109d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x57109d,_0x148398),Object[_0x5333c9(0x1e7)](_0x57109d[_0x5333c9(0x1c7)])[_0x5333c9(0x1dc)];}export function getGuidesSummary(_0x31341e){const _0x554805=a132_0x136d0d;return Object[_0x554805(0x1da)](_0x31341e[_0x554805(0x1c7)])[_0x554805(0x1e8)](([_0x57e057,_0x259b17])=>({'key':_0x57e057,'title':_0x259b17[_0x554805(0x1e3)],'path':_0x259b17[_0x554805(0x1e1)]}));}
@@ -1 +1 @@
1
- function a131_0x4412(){const _0xfd550c=['ms\x20后进行第\x20','fetch','application/json','840wJtoiF','8oCLliL','abort','\x20次重试...','2840544MnsLZG','Request\x20failed','headers','77135gleEln','json','statusText','529670zrlcNH','includes','6209nHEfvJ','status','ECONNRESET','*\x20请求失败,','message','120846LJOxZI','1461825Hwfbqc','text','5562963ePvRbJ','name','12pMMDKU','TypeError','get','3642vzVCie'];a131_0x4412=function(){return _0xfd550c;};return a131_0x4412();}(function(_0x27d815,_0x2131e2){const _0x3778e5=a131_0x10bf,_0x5a9383=_0x27d815();while(!![]){try{const _0xf1a2e5=parseInt(_0x3778e5(0x81))/0x1*(-parseInt(_0x3778e5(0x90))/0x2)+parseInt(_0x3778e5(0x8c))/0x3+-parseInt(_0x3778e5(0x98))/0x4*(-parseInt(_0x3778e5(0x84))/0x5)+-parseInt(_0x3778e5(0x93))/0x6*(parseInt(_0x3778e5(0x86))/0x7)+parseInt(_0x3778e5(0x9b))/0x8+-parseInt(_0x3778e5(0x8e))/0x9+parseInt(_0x3778e5(0x97))/0xa*(parseInt(_0x3778e5(0x8b))/0xb);if(_0xf1a2e5===_0x2131e2)break;else _0x5a9383['push'](_0x5a9383['shift']());}catch(_0x40d26e){_0x5a9383['push'](_0x5a9383['shift']());}}}(a131_0x4412,0x5754d));export async function httpRequest(_0x4f1df7,_0x4283d7={}){const _0x5018fe=a131_0x10bf,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4283d7;let _0x10b010=null;for(let _0x17c935=0x0;_0x17c935<=retries;_0x17c935++){try{const _0xb9f20e=new AbortController(),_0xba7c2b=setTimeout(()=>_0xb9f20e[_0x5018fe(0x99)](),timeout),_0x315daa=await fetch(_0x4f1df7,{'headers':headers,'signal':_0xb9f20e['signal']});clearTimeout(_0xba7c2b);let _0x4f5644;const _0x5b06db=_0x315daa[_0x5018fe(0x80)][_0x5018fe(0x92)]('content-type');return _0x5b06db?.[_0x5018fe(0x85)](_0x5018fe(0x96))?_0x4f5644=await _0x315daa[_0x5018fe(0x82)]():_0x4f5644=await _0x315daa[_0x5018fe(0x8d)](),{'ok':_0x315daa['ok'],'status':_0x315daa[_0x5018fe(0x87)],'statusText':_0x315daa[_0x5018fe(0x83)],'data':_0x4f5644,'headers':_0x315daa[_0x5018fe(0x80)],'url':_0x315daa['url'],'text':()=>_0x315daa[_0x5018fe(0x8d)]()};}catch(_0x21baa8){_0x10b010=_0x21baa8 instanceof Error?_0x21baa8:new Error(String(_0x21baa8));if(_0x17c935===retries)break;if(shouldRetry(_0x21baa8)){console['log'](_0x5018fe(0x89)+retryDelay+_0x5018fe(0x94)+(_0x17c935+0x1)+_0x5018fe(0x9a)),await sleep(retryDelay);continue;}else break;}}throw _0x10b010||new Error(_0x5018fe(0x7f));}function shouldRetry(_0x3e0104){const _0x1cc80f=a131_0x10bf;if(_0x3e0104 instanceof Error){if(_0x3e0104['name']==='AbortError')return![];if(_0x3e0104[_0x1cc80f(0x8f)]===_0x1cc80f(0x91)&&_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)](_0x1cc80f(0x95)))return!![];if(_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)](_0x1cc80f(0x88)))return!![];if(_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)]('ENOTFOUND'))return![];}return![];}function a131_0x10bf(_0x3184fc,_0x1c8a94){_0x3184fc=_0x3184fc-0x7f;const _0x4412da=a131_0x4412();let _0x10bf13=_0x4412da[_0x3184fc];return _0x10bf13;}function sleep(_0x2fcf4d){return new Promise(_0x1b0c50=>setTimeout(_0x1b0c50,_0x2fcf4d));}export function validateUrl(_0x5a800c){try{return new URL(_0x5a800c),!![];}catch{return![];}}
1
+ function a133_0x3725(){const _0x451669=['85420NTJSio','get','name','37310kEjAZu','text','message','269311ctXwOC','application/json','content-type','6rSnnXa','*\x20请求失败,','status','275fgUgsu','48fVstvS','AbortError','headers','includes','ECONNRESET','ENOTFOUND','ms\x20后进行第\x20','35CqZvGQ','256068VXpRSN','1344648mqyBQa','47131cMgbSr','139866pOmhJT','TypeError','statusText'];a133_0x3725=function(){return _0x451669;};return a133_0x3725();}(function(_0x45e8ec,_0x2ef38f){const _0x549e6a=a133_0x1d97,_0x5c254a=_0x45e8ec();while(!![]){try{const _0x45965c=parseInt(_0x549e6a(0x15f))/0x1+-parseInt(_0x549e6a(0x16c))/0x2*(-parseInt(_0x549e6a(0x160))/0x3)+parseInt(_0x549e6a(0x163))/0x4*(-parseInt(_0x549e6a(0x15c))/0x5)+-parseInt(_0x549e6a(0x15e))/0x6+parseInt(_0x549e6a(0x169))/0x7+parseInt(_0x549e6a(0x170))/0x8*(parseInt(_0x549e6a(0x15d))/0x9)+-parseInt(_0x549e6a(0x166))/0xa*(-parseInt(_0x549e6a(0x16f))/0xb);if(_0x45965c===_0x2ef38f)break;else _0x5c254a['push'](_0x5c254a['shift']());}catch(_0x57efd2){_0x5c254a['push'](_0x5c254a['shift']());}}}(a133_0x3725,0x1c498));export async function httpRequest(_0x436d48,_0x15810e={}){const _0x1fa025=a133_0x1d97,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x15810e;let _0x21e4f6=null;for(let _0x53a985=0x0;_0x53a985<=retries;_0x53a985++){try{const _0x5bf785=new AbortController(),_0x2b707e=setTimeout(()=>_0x5bf785['abort'](),timeout),_0x5dc12a=await fetch(_0x436d48,{'headers':headers,'signal':_0x5bf785['signal']});clearTimeout(_0x2b707e);let _0x5f32a0;const _0x1ec339=_0x5dc12a['headers'][_0x1fa025(0x164)](_0x1fa025(0x16b));return _0x1ec339?.[_0x1fa025(0x158)](_0x1fa025(0x16a))?_0x5f32a0=await _0x5dc12a['json']():_0x5f32a0=await _0x5dc12a['text'](),{'ok':_0x5dc12a['ok'],'status':_0x5dc12a[_0x1fa025(0x16e)],'statusText':_0x5dc12a[_0x1fa025(0x162)],'data':_0x5f32a0,'headers':_0x5dc12a[_0x1fa025(0x157)],'url':_0x5dc12a['url'],'text':()=>_0x5dc12a[_0x1fa025(0x167)]()};}catch(_0x606b72){_0x21e4f6=_0x606b72 instanceof Error?_0x606b72:new Error(String(_0x606b72));if(_0x53a985===retries)break;if(shouldRetry(_0x606b72)){console['log'](_0x1fa025(0x16d)+retryDelay+_0x1fa025(0x15b)+(_0x53a985+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x21e4f6||new Error('Request\x20failed');}function a133_0x1d97(_0x2d362a,_0x27396c){_0x2d362a=_0x2d362a-0x156;const _0x3725aa=a133_0x3725();let _0x1d9752=_0x3725aa[_0x2d362a];return _0x1d9752;}function shouldRetry(_0x57281c){const _0x17537a=a133_0x1d97;if(_0x57281c instanceof Error){if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x156))return![];if(_0x57281c[_0x17537a(0x165)]===_0x17537a(0x161)&&_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)]('fetch'))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x159)))return!![];if(_0x57281c[_0x17537a(0x168)][_0x17537a(0x158)](_0x17537a(0x15a)))return![];}return![];}function sleep(_0x2451c0){return new Promise(_0x5a5d3c=>setTimeout(_0x5a5d3c,_0x2451c0));}export function validateUrl(_0x2e2a93){try{return new URL(_0x2e2a93),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xd67785,_0x102776){const _0x13e082=a132_0x57fa,_0x5a177e=_0xd67785();while(!![]){try{const _0x8f9968=-parseInt(_0x13e082(0x1df))/0x1+parseInt(_0x13e082(0x1db))/0x2*(parseInt(_0x13e082(0x1e3))/0x3)+parseInt(_0x13e082(0x1e7))/0x4*(-parseInt(_0x13e082(0x1dc))/0x5)+parseInt(_0x13e082(0x1dd))/0x6*(parseInt(_0x13e082(0x1e0))/0x7)+-parseInt(_0x13e082(0x1de))/0x8*(parseInt(_0x13e082(0x1e9))/0x9)+parseInt(_0x13e082(0x1e8))/0xa+parseInt(_0x13e082(0x1e1))/0xb;if(_0x8f9968===_0x102776)break;else _0x5a177e['push'](_0x5a177e['shift']());}catch(_0x88623b){_0x5a177e['push'](_0x5a177e['shift']());}}}(a132_0x3bf4,0xb1390));function env(_0x4b6697){return process.env[`RABETBASE_${_0x4b6697}`]||process.env[`LOVRABET_${_0x4b6697}`]||undefined;}function a132_0x3bf4(){const _0x3d37f2=['747728lgQNlz','235108yxIdJz','63PgTXux','3182674wxBLEW','stdout','19866fcHzlS','true','isTTY','setRawMode','9136YwStTr','9041870AkkKAm','117yhIHSf','stdin','292lsVuGS','1340NszaqF','418566yNrmYh'];a132_0x3bf4=function(){return _0x3d37f2;};return a132_0x3bf4();}function a132_0x57fa(_0xf6e715,_0x21550c){_0xf6e715=_0xf6e715-0x1da;const _0x3bf47f=a132_0x3bf4();let _0x57fad8=_0x3bf47f[_0xf6e715];return _0x57fad8;}export function isNonInteractive(_0x5984da){const _0x3a93da=a132_0x57fa;return!!(_0x5984da['nonInteractive']||_0x5984da['ci']||env('CI')===_0x3a93da(0x1e4)||process.env.CI===_0x3a93da(0x1e4)||!process[_0x3a93da(0x1e2)][_0x3a93da(0x1e5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x531ecb=a132_0x57fa;if(!process[_0x531ecb(0x1da)][_0x531ecb(0x1e5)])return![];try{const _0x23faa6=process[_0x531ecb(0x1da)]['isRaw'];return process['stdin'][_0x531ecb(0x1e6)](!![]),process[_0x531ecb(0x1da)][_0x531ecb(0x1e6)](_0x23faa6??![]),!![];}catch{return![];}}
1
+ function a134_0x4ecf(){const _0x372ddd=['93514ToIwwE','1111959CGdFhP','setRawMode','true','139783VbluVs','604518hOYefP','stdout','nonInteractive','3923585nmVtWA','3508952CYiBHu','isTTY','stdin','4TcdyEZ','1153016nDZbTH','isRaw'];a134_0x4ecf=function(){return _0x372ddd;};return a134_0x4ecf();}(function(_0xe60a5c,_0x5f3829){const _0x564469=a134_0x8d56,_0x35af2f=_0xe60a5c();while(!![]){try{const _0x4619dc=-parseInt(_0x564469(0x172))/0x1+parseInt(_0x564469(0x170))/0x2+-parseInt(_0x564469(0x173))/0x3+parseInt(_0x564469(0x16f))/0x4*(parseInt(_0x564469(0x16b))/0x5)+parseInt(_0x564469(0x168))/0x6+parseInt(_0x564469(0x167))/0x7+-parseInt(_0x564469(0x16c))/0x8;if(_0x4619dc===_0x5f3829)break;else _0x35af2f['push'](_0x35af2f['shift']());}catch(_0x403616){_0x35af2f['push'](_0x35af2f['shift']());}}}(a134_0x4ecf,0x8d659));function env(_0x16bc85){return process.env[`RABETBASE_${_0x16bc85}`]||process.env[`LOVRABET_${_0x16bc85}`]||undefined;}function a134_0x8d56(_0x1b635e,_0x4fe528){_0x1b635e=_0x1b635e-0x165;const _0x4ecf55=a134_0x4ecf();let _0x8d561f=_0x4ecf55[_0x1b635e];return _0x8d561f;}export function isNonInteractive(_0x1efa25){const _0x428575=a134_0x8d56;return!!(_0x1efa25[_0x428575(0x16a)]||_0x1efa25['ci']||env('CI')===_0x428575(0x166)||process.env.CI==='true'||!process[_0x428575(0x169)][_0x428575(0x16d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4815f9=a134_0x8d56;if(!process['stdin'][_0x4815f9(0x16d)])return![];try{const _0x3c26ff=process[_0x4815f9(0x16e)][_0x4815f9(0x171)];return process[_0x4815f9(0x16e)][_0x4815f9(0x165)](!![]),process[_0x4815f9(0x16e)][_0x4815f9(0x165)](_0x3c26ff??![]),!![];}catch{return![];}}