@lovrabet/rabetbase-cli 2.0.9 → 2.0.10

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 (138) 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/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/constant/paths.js +1 -0
  91. package/lib/context.js +1 -1
  92. package/lib/core/alias-resolver.js +1 -1
  93. package/lib/core/api-client.js +1 -1
  94. package/lib/core/bff/config.js +1 -1
  95. package/lib/core/bff/file-system.js +1 -1
  96. package/lib/core/bff/hash.js +1 -1
  97. package/lib/core/bff/lock.js +1 -1
  98. package/lib/core/bff/utils.js +1 -1
  99. package/lib/core/db-resolver.js +1 -1
  100. package/lib/core/sql-validator.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/build-all-flags.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/schema-export.js +1 -1
  110. package/lib/framework/types.js +1 -1
  111. package/lib/generated/build-info.js +1 -1
  112. package/lib/help.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-command-trace.js +1 -1
  116. package/lib/telemetry/cli-help-trace.js +1 -1
  117. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  118. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  119. package/lib/telemetry/send-cli-trace-log.js +1 -1
  120. package/lib/utils/ai_config.js +1 -1
  121. package/lib/utils/apply-jq-filter.js +1 -1
  122. package/lib/utils/cdn-config.js +1 -1
  123. package/lib/utils/check-sdk-version.js +1 -1
  124. package/lib/utils/cli-version-check.js +1 -1
  125. package/lib/utils/config.js +1 -1
  126. package/lib/utils/copy-directory.js +1 -1
  127. package/lib/utils/file-utils.js +1 -1
  128. package/lib/utils/guides-cdn.js +1 -1
  129. package/lib/utils/http-client.js +1 -1
  130. package/lib/utils/is-non-interactive.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/rules-cdn.js +1 -1
  134. package/lib/utils/sleep.js +1 -1
  135. package/lib/utils/template-replacer.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/with-active-cookie.js +1 -1
  138. package/package.json +2 -2
@@ -1 +1 @@
1
- function a110_0x3b21(){const _0x16618d=['3CrdTck','pretty','591966fxgsee','1680280moALNX','10452072HjJFDC','json','190mUMsrt','6581984fWhuIK','table','3172974ZpMhtE','11351370opozGr','3427106nmcwhF','1WjZqRG','compress'];a110_0x3b21=function(){return _0x16618d;};return a110_0x3b21();}function a110_0x28da(_0x18baef,_0x3bc4ae){_0x18baef=_0x18baef-0xbb;const _0x3b216d=a110_0x3b21();let _0x28daf8=_0x3b216d[_0x18baef];return _0x28daf8;}(function(_0x19e9aa,_0x33e3c6){const _0x182db5=a110_0x28da,_0x42010f=_0x19e9aa();while(!![]){try{const _0x46c224=parseInt(_0x182db5(0xc0))/0x1*(-parseInt(_0x182db5(0xbf))/0x2)+parseInt(_0x182db5(0xc2))/0x3*(parseInt(_0x182db5(0xbb))/0x4)+-parseInt(_0x182db5(0xc5))/0x5+parseInt(_0x182db5(0xbe))/0x6+-parseInt(_0x182db5(0xbd))/0x7+-parseInt(_0x182db5(0xc6))/0x8+-parseInt(_0x182db5(0xc4))/0x9*(-parseInt(_0x182db5(0xc8))/0xa);if(_0x46c224===_0x33e3c6)break;else _0x42010f['push'](_0x42010f['shift']());}catch(_0x3648c0){_0x42010f['push'](_0x42010f['shift']());}}}(a110_0x3b21,0xeeb21));export function riskLevelOrder(_0x4f0ef8){const _0x3743be={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x3743be[_0x4f0ef8??'read']??0x0;}export function isValidFormat(_0x247aed){const _0xf7dcd6=a110_0x28da;return _0x247aed===_0xf7dcd6(0xc7)||_0x247aed===_0xf7dcd6(0xc3)||_0x247aed===_0xf7dcd6(0xc1);}export function normalizeLegacyOutputFormat(_0x3bc89e){const _0x482c77=a110_0x28da;if(_0x3bc89e===_0x482c77(0xbc))return _0x482c77(0xc3);if(isValidFormat(_0x3bc89e))return _0x3bc89e;return undefined;}
1
+ function a111_0x5b08(){const _0x1f59a7=['2bMoZjT','12910vAVeyj','8658304LJPSoN','928LzBDcT','compress','table','7448607EendDu','720591fKrlkY','428057MomRAB','2738547dpBcqy','read','pretty','31471VgfLsi','36UfqZmP','10620rgtaum','json'];a111_0x5b08=function(){return _0x1f59a7;};return a111_0x5b08();}(function(_0x462617,_0x40fe30){const _0x1dcc8a=a111_0x2d4f,_0x31c642=_0x462617();while(!![]){try{const _0x2229f2=-parseInt(_0x1dcc8a(0xe6))/0x1*(-parseInt(_0x1dcc8a(0xef))/0x2)+parseInt(_0x1dcc8a(0xe8))/0x3+parseInt(_0x1dcc8a(0xe2))/0x4*(parseInt(_0x1dcc8a(0xe0))/0x5)+parseInt(_0x1dcc8a(0xec))/0x6*(-parseInt(_0x1dcc8a(0xe7))/0x7)+parseInt(_0x1dcc8a(0xe1))/0x8+parseInt(_0x1dcc8a(0xe5))/0x9+-parseInt(_0x1dcc8a(0xed))/0xa*(parseInt(_0x1dcc8a(0xeb))/0xb);if(_0x2229f2===_0x40fe30)break;else _0x31c642['push'](_0x31c642['shift']());}catch(_0x1e4f01){_0x31c642['push'](_0x31c642['shift']());}}}(a111_0x5b08,0xb3f3f));export function riskLevelOrder(_0x4a7c30){const _0x5a87ff=a111_0x2d4f,_0x10ac70={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x10ac70[_0x4a7c30??_0x5a87ff(0xe9)]??0x0;}export function isValidFormat(_0x597278){const _0x3637ff=a111_0x2d4f;return _0x597278===_0x3637ff(0xee)||_0x597278===_0x3637ff(0xea)||_0x597278===_0x3637ff(0xe3);}function a111_0x2d4f(_0x30ed67,_0xf26447){_0x30ed67=_0x30ed67-0xe0;const _0x5b0871=a111_0x5b08();let _0x2d4fa0=_0x5b0871[_0x30ed67];return _0x2d4fa0;}export function normalizeLegacyOutputFormat(_0x2e114a){const _0x43a00d=a111_0x2d4f;if(_0x2e114a===_0x43a00d(0xe4))return _0x43a00d(0xea);if(isValidFormat(_0x2e114a))return _0x2e114a;return undefined;}
@@ -1 +1 @@
1
- const a111_0x16b40a=a111_0x7eb3;(function(_0x485ce3,_0x1d130b){const _0x5b0796=a111_0x7eb3,_0x18a94e=_0x485ce3();while(!![]){try{const _0x4b8508=-parseInt(_0x5b0796(0xdb))/0x1*(-parseInt(_0x5b0796(0xda))/0x2)+-parseInt(_0x5b0796(0xd0))/0x3*(-parseInt(_0x5b0796(0xde))/0x4)+parseInt(_0x5b0796(0xd3))/0x5+parseInt(_0x5b0796(0xd1))/0x6*(-parseInt(_0x5b0796(0xd2))/0x7)+parseInt(_0x5b0796(0xd7))/0x8*(-parseInt(_0x5b0796(0xd8))/0x9)+-parseInt(_0x5b0796(0xd4))/0xa*(parseInt(_0x5b0796(0xd9))/0xb)+-parseInt(_0x5b0796(0xdc))/0xc*(-parseInt(_0x5b0796(0xd5))/0xd);if(_0x4b8508===_0x1d130b)break;else _0x18a94e['push'](_0x18a94e['shift']());}catch(_0x353f19){_0x18a94e['push'](_0x18a94e['shift']());}}}(a111_0x4f09,0x5a0b5));function a111_0x4f09(){const _0x416450=['4027980mWXOYq','2026-04-04T16:01:08.958Z','548AwnIhC','2.0.9','v2.0.9','15591ZJwLoU','42WiXQKK','248731dGQWzR','2205870psWgZL','60080EwSeeo','13UtMDQr','99cfbd7','8mUwHsH','4794165PGmXDT','1221QeVzbt','466BsaLNp','1409Faxwjd'];a111_0x4f09=function(){return _0x416450;};return a111_0x4f09();}export const VERSION=a111_0x16b40a(0xdf);export const GIT_TAG=a111_0x16b40a(0xcf);export const GIT_COMMIT=a111_0x16b40a(0xd6);function a111_0x7eb3(_0x4e6111,_0x4e68b0){_0x4e6111=_0x4e6111-0xcf;const _0x4f092a=a111_0x4f09();let _0x7eb3da=_0x4f092a[_0x4e6111];return _0x7eb3da;}export const BUILD_TIME=a111_0x16b40a(0xdd);
1
+ const a112_0x3bd6e7=a112_0x1d35;function a112_0x2826(){const _0x2cbf48=['9REryMi','467830fWkdYZ','2026-04-05T14:49:52.888Z','677260wqcNfV','2RZaDJT','5166329tOCHsZ','165GvxJYa','6eOtTDx','7604jgrYfx','12672276YuJKZD','v2.0.10','2.0.10','3945976AYWWVB','390d642','13smeiAi','1610185MmlyMT','1164BAFOFn'];a112_0x2826=function(){return _0x2cbf48;};return a112_0x2826();}function a112_0x1d35(_0x1c08c7,_0x4549e7){_0x1c08c7=_0x1c08c7-0x84;const _0x2826b7=a112_0x2826();let _0x1d3513=_0x2826b7[_0x1c08c7];return _0x1d3513;}(function(_0x29fc76,_0x252233){const _0x2f40a7=a112_0x1d35,_0x2b77fb=_0x29fc76();while(!![]){try{const _0x55099d=parseInt(_0x2f40a7(0x8a))/0x1*(parseInt(_0x2f40a7(0x89))/0x2)+parseInt(_0x2f40a7(0x85))/0x3*(-parseInt(_0x2f40a7(0x8e))/0x4)+-parseInt(_0x2f40a7(0x84))/0x5+parseInt(_0x2f40a7(0x8d))/0x6*(parseInt(_0x2f40a7(0x8b))/0x7)+-parseInt(_0x2f40a7(0x92))/0x8*(-parseInt(_0x2f40a7(0x86))/0x9)+-parseInt(_0x2f40a7(0x87))/0xa*(-parseInt(_0x2f40a7(0x8c))/0xb)+parseInt(_0x2f40a7(0x8f))/0xc*(-parseInt(_0x2f40a7(0x94))/0xd);if(_0x55099d===_0x252233)break;else _0x2b77fb['push'](_0x2b77fb['shift']());}catch(_0x2e925e){_0x2b77fb['push'](_0x2b77fb['shift']());}}}(a112_0x2826,0x78c3b));export const VERSION=a112_0x3bd6e7(0x91);export const GIT_TAG=a112_0x3bd6e7(0x90);export const GIT_COMMIT=a112_0x3bd6e7(0x93);export const BUILD_TIME=a112_0x3bd6e7(0x88);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2d7228,_0x1293bf){var _0x2e4277=a112_0x41c8,_0x21f387=_0x2d7228();while(!![]){try{var _0x2303a8=parseInt(_0x2e4277(0xf0))/0x1*(-parseInt(_0x2e4277(0xfd))/0x2)+parseInt(_0x2e4277(0xf2))/0x3+parseInt(_0x2e4277(0xef))/0x4+-parseInt(_0x2e4277(0xf9))/0x5*(parseInt(_0x2e4277(0xfa))/0x6)+-parseInt(_0x2e4277(0xf6))/0x7*(parseInt(_0x2e4277(0xf8))/0x8)+parseInt(_0x2e4277(0xfc))/0x9+parseInt(_0x2e4277(0xf5))/0xa;if(_0x2303a8===_0x1293bf)break;else _0x21f387['push'](_0x21f387['shift']());}catch(_0xb22dd9){_0x21f387['push'](_0x21f387['shift']());}}}(a112_0x1015,0xbd4dc));import a112_0x32f825 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a112_0x1015(){var _0x299dee=['3047571odSNmL','log','\x20\x20Use\x20','20522710qtZfIT','14ZvbcZh','green','3525240HBJAml','22045WVeYgx','822tvircx','\x20--help','2719098LPBHWd','2PtbFro','877560GCGKWr','1328909eHxdyC','bold'];a112_0x1015=function(){return _0x299dee;};return a112_0x1015();}function a112_0x41c8(_0x11759e,_0x2b9a59){_0x11759e=_0x11759e-0xef;var _0x10153a=a112_0x1015();var _0x41c8ef=_0x10153a[_0x11759e];return _0x41c8ef;}export function showHelp(){var _0x41aef7=a112_0x41c8;console[_0x41aef7(0xf3)](),console[_0x41aef7(0xf3)](a112_0x32f825[_0x41aef7(0xf7)][_0x41aef7(0xf1)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x41aef7(0xf4)+a112_0x32f825[_0x41aef7(0xf7)]['bold'](CLI_BIN_NAME+_0x41aef7(0xfb))+'\x20to\x20view\x20available\x20commands.'),console[_0x41aef7(0xf3)]();}
1
+ (function(_0x55a648,_0x3b1afd){var _0x520d3a=a113_0x8abc,_0x2b3c81=_0x55a648();while(!![]){try{var _0x527c5b=-parseInt(_0x520d3a(0xf4))/0x1+-parseInt(_0x520d3a(0xf6))/0x2*(parseInt(_0x520d3a(0xf0))/0x3)+-parseInt(_0x520d3a(0xf5))/0x4*(-parseInt(_0x520d3a(0xec))/0x5)+-parseInt(_0x520d3a(0xee))/0x6+parseInt(_0x520d3a(0xf9))/0x7*(parseInt(_0x520d3a(0xeb))/0x8)+-parseInt(_0x520d3a(0xf3))/0x9+-parseInt(_0x520d3a(0xf8))/0xa*(-parseInt(_0x520d3a(0xfa))/0xb);if(_0x527c5b===_0x3b1afd)break;else _0x2b3c81['push'](_0x2b3c81['shift']());}catch(_0x4128e0){_0x2b3c81['push'](_0x2b3c81['shift']());}}}(a113_0x30ff,0xb982c));import a113_0x12e5cc from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a113_0x8abc(_0x3f56fe,_0x5b4f34){_0x3f56fe=_0x3f56fe-0xea;var _0x30ff25=a113_0x30ff();var _0x8abcc=_0x30ff25[_0x3f56fe];return _0x8abcc;}function a113_0x30ff(){var _0x3ebebd=['4327708irjDfX','\x20to\x20view\x20available\x20commands.','184Nstbei','2070lUwIHc','bold','225672cFCalz','\x20\x20Use\x20','103497RKtafi','\x20--help','log','5709933rVsZpi','1322621ksuyEc','1180urtMSN','20ZXlsOa','green','60BagEJc','187726dHeTZP'];a113_0x30ff=function(){return _0x3ebebd;};return a113_0x30ff();}export function showHelp(){var _0x5c893c=a113_0x8abc;console[_0x5c893c(0xf2)](),console[_0x5c893c(0xf2)](a113_0x12e5cc['green'][_0x5c893c(0xed)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x5c893c(0xf2)](_0x5c893c(0xef)+a113_0x12e5cc[_0x5c893c(0xf7)][_0x5c893c(0xed)](CLI_BIN_NAME+_0x5c893c(0xf1))+_0x5c893c(0xea)),console[_0x5c893c(0xf2)]();}
@@ -1 +1 @@
1
- (function(_0x37465b,_0x282995){const _0x563c30=a113_0x570c,_0x384dd0=_0x37465b();while(!![]){try{const _0x4970c4=parseInt(_0x563c30(0x1b6))/0x1+-parseInt(_0x563c30(0x1c6))/0x2*(parseInt(_0x563c30(0x1c7))/0x3)+-parseInt(_0x563c30(0x1c8))/0x4*(-parseInt(_0x563c30(0x1b1))/0x5)+parseInt(_0x563c30(0x1a8))/0x6*(-parseInt(_0x563c30(0x1c4))/0x7)+parseInt(_0x563c30(0x1b5))/0x8*(-parseInt(_0x563c30(0x1a7))/0x9)+parseInt(_0x563c30(0x1a6))/0xa*(-parseInt(_0x563c30(0x1bd))/0xb)+parseInt(_0x563c30(0x1c0))/0xc;if(_0x4970c4===_0x282995)break;else _0x384dd0['push'](_0x384dd0['shift']());}catch(_0x52a224){_0x384dd0['push'](_0x384dd0['shift']());}}}(a113_0x2420,0x5354f));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a113_0x2420(){const _0x2d5837=['\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','replace','exit','\x0aAvailable\x20commands:','add','push','不支持的命令:\x20','5sXrHde','length','Error:\x20Unsupported\x20command:\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','8VjQDtQ','100300jkArSA','cwd','slice','Equivalent\x20command:\x20','log','\x20skill\x20--help\x0a\x20\x20','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','220wEJomL','skill','(empty)','7505628yOzKUZ','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','argv','-$1','7vNimsI','dangerously-bff-save','242SOibme','12957fMsEjB','2545164AghwzH','entries','toLowerCase','help','setLogPath','from','9830dZYjHV','4105359MwTBlO','133938cHKeWz','startsWith'];a113_0x2420=function(){return _0x2d5837;};return a113_0x2420();}export function camelCaseFlagsToKebab(_0x628910){const _0x13a72b=a113_0x570c,_0x38d6d9=[];for(const [_0x141308,_0x13e784]of Object[_0x13a72b(0x1c9)](_0x628910)){if(_0x13e784===!![]){const _0x425a56=_0x141308[_0x13a72b(0x1ab)](/([A-Z])/g,_0x13a72b(0x1c3))[_0x13a72b(0x1a2)]();_0x38d6d9[_0x13a72b(0x1af)](_0x425a56);}}return _0x38d6d9;}function a113_0x570c(_0x41c334,_0x1747ca){_0x41c334=_0x41c334-0x1a2;const _0x24200c=a113_0x2420();let _0x570c9c=_0x24200c[_0x41c334];return _0x570c9c;}export function parseDynamicFlags(){const _0x4a8c6a=a113_0x570c,_0x8ebd5f=[];for(let _0x4b191e=0x3;_0x4b191e<process[_0x4a8c6a(0x1c2)][_0x4a8c6a(0x1b2)];_0x4b191e++){const _0x3d796c=process[_0x4a8c6a(0x1c2)][_0x4b191e];if(_0x3d796c&&_0x3d796c[_0x4a8c6a(0x1a9)]('--')){const _0x55c4de=_0x3d796c[_0x4a8c6a(0x1b8)](0x2);_0x55c4de&&!_0x55c4de['includes']('=')&&_0x8ebd5f[_0x4a8c6a(0x1af)](_0x55c4de);}}return _0x8ebd5f;}export function getAllProvidedFlags(_0x38de69){const _0x1606f4=a113_0x570c,_0x4629e8=camelCaseFlagsToKebab(_0x38de69),_0x1b89d3=parseDynamicFlags(),_0x3e63c7=new Set([..._0x4629e8,..._0x1b89d3]);return Array[_0x1606f4(0x1a5)](_0x3e63c7);}export function normalizeLegacyBffSaveFlags(_0x394190){const _0x412007=a113_0x570c,_0x37ebe3=new Set(_0x394190);return _0x37ebe3['has'](_0x412007(0x1c5))&&_0x37ebe3[_0x412007(0x1ae)]('enable-bff-save'),Array[_0x412007(0x1a5)](_0x37ebe3);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x491982,_0x47e18f,_0x4243a7){const _0x41cf96=a113_0x570c;logger[_0x41cf96(0x1a4)](process[_0x41cf96(0x1b7)]());if(_0x4243a7?.[_0x41cf96(0x1a3)]||_0x491982==='--help'){showHelp();return;}console['error'](_0x41cf96(0x1b3)+(_0x491982||_0x41cf96(0x1bf))),console[_0x41cf96(0x1ba)](_0x41cf96(0x1ad)),console[_0x41cf96(0x1ba)]('\x20\x20'+CLI_BIN_NAME+_0x41cf96(0x1bc)),console[_0x41cf96(0x1ba)]('\x20\x20'+CLI_BIN_NAME+_0x41cf96(0x1aa)),console[_0x41cf96(0x1ba)](''),console['log'](_0x41cf96(0x1b9)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x41cf96(0x1be),_0x41cf96(0x1b0)+_0x491982),process[_0x41cf96(0x1ac)](0x1);}function showHelp(){const _0x1a92e6=a113_0x570c;console[_0x1a92e6(0x1ba)](_0x1a92e6(0x1b4)+CLI_BIN_NAME+_0x1a92e6(0x1bb)+CLI_BIN_NAME+_0x1a92e6(0x1c1)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ const a114_0x1ef119=a114_0x1e2c;(function(_0x550c8d,_0x4fe392){const _0x1791d2=a114_0x1e2c,_0x431f9e=_0x550c8d();while(!![]){try{const _0x5f3151=-parseInt(_0x1791d2(0xc7))/0x1+-parseInt(_0x1791d2(0xd8))/0x2+-parseInt(_0x1791d2(0xdc))/0x3*(parseInt(_0x1791d2(0xde))/0x4)+-parseInt(_0x1791d2(0xd2))/0x5*(-parseInt(_0x1791d2(0xcb))/0x6)+-parseInt(_0x1791d2(0xdf))/0x7*(-parseInt(_0x1791d2(0xca))/0x8)+-parseInt(_0x1791d2(0xc2))/0x9*(parseInt(_0x1791d2(0xc6))/0xa)+parseInt(_0x1791d2(0xc5))/0xb;if(_0x5f3151===_0x4fe392)break;else _0x431f9e['push'](_0x431f9e['shift']());}catch(_0x78ce66){_0x431f9e['push'](_0x431f9e['shift']());}}}(a114_0x55bc,0xe5a97));import{logger}from'../utils/logger.js';function a114_0x55bc(){const _0xf68630=['6444656vpdhzP','2737hGpRgD','has','replace','dangerously-bff-save','argv','log','enable-bff-save','Error:\x20Unsupported\x20command:\x20','push','\x0aAvailable\x20commands:','19575xJnoDy','includes','exit','31341640jTPfmW','420bhjHBT','1665995mGfVzV','startsWith','-$1','3464iHIYZx','371754IvtuyE','help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','skill','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','slice','110zYtrJI','cwd','--help','from','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','\x20skill\x20--help\x0a\x20\x20','144874YmIppA','add','不支持的命令:\x20','length','3FbQgBY','error'];a114_0x55bc=function(){return _0xf68630;};return a114_0x55bc();}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x48ab44){const _0x212778=a114_0x1e2c,_0x54aaf1=[];for(const [_0x267041,_0x59f07f]of Object['entries'](_0x48ab44)){if(_0x59f07f===!![]){const _0x2e2740=_0x267041[_0x212778(0xe1)](/([A-Z])/g,_0x212778(0xc9))['toLowerCase']();_0x54aaf1['push'](_0x2e2740);}}return _0x54aaf1;}export function parseDynamicFlags(){const _0x38486b=a114_0x1e2c,_0x3a5641=[];for(let _0x2b573d=0x3;_0x2b573d<process[_0x38486b(0xe3)][_0x38486b(0xdb)];_0x2b573d++){const _0x29fe62=process['argv'][_0x2b573d];if(_0x29fe62&&_0x29fe62[_0x38486b(0xc8)]('--')){const _0x67e4ee=_0x29fe62[_0x38486b(0xd1)](0x2);_0x67e4ee&&!_0x67e4ee[_0x38486b(0xc3)]('=')&&_0x3a5641[_0x38486b(0xc0)](_0x67e4ee);}}return _0x3a5641;}export function getAllProvidedFlags(_0x5485aa){const _0x29eebb=a114_0x1e2c,_0x3bbcc9=camelCaseFlagsToKebab(_0x5485aa),_0x2da784=parseDynamicFlags(),_0xf20145=new Set([..._0x3bbcc9,..._0x2da784]);return Array[_0x29eebb(0xd5)](_0xf20145);}export function normalizeLegacyBffSaveFlags(_0x2cc495){const _0x3bb2aa=a114_0x1e2c,_0x20892a=new Set(_0x2cc495);return _0x20892a[_0x3bb2aa(0xe0)](_0x3bb2aa(0xe2))&&_0x20892a[_0x3bb2aa(0xd9)](_0x3bb2aa(0xe5)),Array['from'](_0x20892a);}const SKILLS_INSTALL_COMMAND_LINE=a114_0x1ef119(0xcf);function a114_0x1e2c(_0x2c3d3b,_0x8a6068){_0x2c3d3b=_0x2c3d3b-0xc0;const _0x55bc10=a114_0x55bc();let _0x1e2c31=_0x55bc10[_0x2c3d3b];return _0x1e2c31;}export async function skillsCommand(_0x312b28,_0x4908c5,_0x4b219a){const _0x27416b=a114_0x1ef119;logger['setLogPath'](process[_0x27416b(0xd3)]());if(_0x4b219a?.[_0x27416b(0xcc)]||_0x312b28===_0x27416b(0xd4)){showHelp();return;}console['error'](_0x27416b(0xe6)+(_0x312b28||'(empty)')),console[_0x27416b(0xe4)](_0x27416b(0xc1)),console[_0x27416b(0xe4)]('\x20\x20'+CLI_BIN_NAME+_0x27416b(0xcd)),console[_0x27416b(0xe4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x27416b(0xe4)](''),console[_0x27416b(0xe4)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x27416b(0xdd)](_0x27416b(0xce),_0x27416b(0xda)+_0x312b28),process[_0x27416b(0xc4)](0x1);}function showHelp(){const _0x11be36=a114_0x1ef119;console[_0x11be36(0xe4)](_0x11be36(0xd0)+CLI_BIN_NAME+_0x11be36(0xd7)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x11be36(0xd6));}
@@ -1 +1 @@
1
- const a114_0x8630f7=a114_0x1302;(function(_0x2af658,_0x16fe62){const _0x5e57ce=a114_0x1302,_0x144f44=_0x2af658();while(!![]){try{const _0x5eba2a=parseInt(_0x5e57ce(0x188))/0x1*(parseInt(_0x5e57ce(0x197))/0x2)+-parseInt(_0x5e57ce(0x187))/0x3+-parseInt(_0x5e57ce(0x19f))/0x4*(-parseInt(_0x5e57ce(0x196))/0x5)+-parseInt(_0x5e57ce(0x18d))/0x6*(parseInt(_0x5e57ce(0x19a))/0x7)+parseInt(_0x5e57ce(0x189))/0x8*(-parseInt(_0x5e57ce(0x1a1))/0x9)+-parseInt(_0x5e57ce(0x185))/0xa*(parseInt(_0x5e57ce(0x19c))/0xb)+parseInt(_0x5e57ce(0x1a0))/0xc;if(_0x5eba2a===_0x16fe62)break;else _0x144f44['push'](_0x144f44['shift']());}catch(_0x10a1a2){_0x144f44['push'](_0x144f44['shift']());}}}(a114_0x606b,0xe9b4d));function a114_0x1302(_0x4b4874,_0x300b7f){_0x4b4874=_0x4b4874-0x184;const _0x606bc9=a114_0x606b();let _0x130294=_0x606bc9[_0x4b4874];return _0x130294;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a114_0x8630f7(0x1a2);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a114_0x8630f7(0x194);export const RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a114_0x8630f7(0x18c);export function buildNpxSkillsAddArgv(_0x288f60=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x288f60];}function a114_0x606b(){const _0x367d3e=['stderr','--skill','join','25qKaPZe','91066wrNaSo','trim','--global','7294xgxnqz','log','561uImPlC','stdio','npx','919732PIFOjy','60740028cvFbGp','819rNbHKh','skills','exit\x20','333670bbyrHJ','pipe','4638537smTlyt','10wuKuMB','136792XhglSb','skill','inherit','Lovrabet','5214izVUPJ','stdout','remove','toString','status','unknown'];a114_0x606b=function(){return _0x367d3e;};return a114_0x606b();}export const NPX_SKILLS_ADD_COMMAND_LINE=[a114_0x8630f7(0x19e),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x20d625,_0x1c455a){const _0x3271e3=a114_0x8630f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5cdde2=_0x1c455a?.['stdio']??_0x3271e3(0x18b),_0x3fcbe6=resolveNpmBin(_0x3271e3(0x19e)),_0x10fbcb=buildNpxSkillsAddArgv(_0x1c455a?.[_0x3271e3(0x18a)]??DEFAULT_RABETBASE_SKILL_NAME),_0x4f4649=[_0x3fcbe6,..._0x10fbcb][_0x3271e3(0x195)]('\x20');console['log']('*\x20'+_0x4f4649);const _0x3db115=spawnSync(_0x3fcbe6,_0x10fbcb,{'cwd':_0x20d625,'stdio':_0x5cdde2,'env':process.env,'shell':![]}),_0x19b887=_0x3db115[_0x3271e3(0x191)];if(_0x19b887===0x0)return{'ok':!![],'status':0x0};let _0x6cb4ca='exit\x20'+(_0x19b887??_0x3271e3(0x192));if(_0x5cdde2===_0x3271e3(0x186)){const _0x40828b=_0x3db115[_0x3271e3(0x193)]?_0x3db115[_0x3271e3(0x193)]['toString']()['trim']():'',_0x3bcef8=_0x3db115['stdout']?_0x3db115['stdout'][_0x3271e3(0x190)]()[_0x3271e3(0x198)]():'';if(_0x40828b)_0x6cb4ca=_0x40828b;else{if(_0x3bcef8)_0x6cb4ca=_0x3bcef8;}}return{'ok':![],'status':_0x19b887??null,'error':_0x6cb4ca};}export function runNpxSkillsRemove(_0x3bf1ef,_0x14329c){const _0x3d0ca0=a114_0x8630f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2f61ec=_0x14329c?.[_0x3d0ca0(0x19d)]??_0x3d0ca0(0x18b),_0x1ca701=resolveNpmBin(_0x3d0ca0(0x19e)),_0x4a5180=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3d0ca0(0x18f),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x14329c?.['skill']??DEFAULT_RABETBASE_SKILL_NAME],_0x1732b8=[_0x1ca701,..._0x4a5180][_0x3d0ca0(0x195)]('\x20');console['log']('*\x20'+_0x1732b8);const _0xcf1b90=spawnSync(_0x1ca701,_0x4a5180,{'cwd':_0x3bf1ef,'stdio':_0x2f61ec,'env':process.env,'shell':![]}),_0x2605d7=_0xcf1b90['status'];if(_0x2605d7===0x0)return{'ok':!![],'status':0x0};let _0x3d950b=_0x3d0ca0(0x184)+(_0x2605d7??_0x3d0ca0(0x192));if(_0x2f61ec===_0x3d0ca0(0x186)){const _0x50e18a=_0xcf1b90[_0x3d0ca0(0x193)]?_0xcf1b90[_0x3d0ca0(0x193)]['toString']()[_0x3d0ca0(0x198)]():'',_0x5f2778=_0xcf1b90['stdout']?_0xcf1b90[_0x3d0ca0(0x18e)][_0x3d0ca0(0x190)]()[_0x3d0ca0(0x198)]():'';if(_0x50e18a)_0x3d950b=_0x50e18a;else{if(_0x5f2778)_0x3d950b=_0x5f2778;}}return{'ok':![],'status':_0x2605d7??null,'error':_0x3d950b};}export function runNpxSkillsAddGlobal(_0xca78e7,_0x44fb7e,_0x151f9e){const _0x4a4a7c=a114_0x8630f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3e8ed3=_0x151f9e?.[_0x4a4a7c(0x19d)]??'inherit',_0x4740a3=resolveNpmBin(_0x4a4a7c(0x19e)),_0x21e817=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x44fb7e,_0x4a4a7c(0x199)],_0x27cc6a=[_0x4740a3,..._0x21e817][_0x4a4a7c(0x195)]('\x20');console[_0x4a4a7c(0x19b)]('*\x20'+_0x27cc6a);const _0x108979=spawnSync(_0x4740a3,_0x21e817,{'cwd':_0xca78e7,'stdio':_0x3e8ed3,'env':process.env,'shell':![]}),_0x1d8d81=_0x108979[_0x4a4a7c(0x191)];if(_0x1d8d81===0x0)return{'ok':!![],'status':0x0};let _0x5e9b88=_0x4a4a7c(0x184)+(_0x1d8d81??_0x4a4a7c(0x192));if(_0x3e8ed3===_0x4a4a7c(0x186)){const _0x398b3d=_0x108979[_0x4a4a7c(0x193)]?_0x108979['stderr'][_0x4a4a7c(0x190)]()['trim']():'',_0x3aa3df=_0x108979[_0x4a4a7c(0x18e)]?_0x108979[_0x4a4a7c(0x18e)][_0x4a4a7c(0x190)]()['trim']():'';if(_0x398b3d)_0x5e9b88=_0x398b3d;else{if(_0x3aa3df)_0x5e9b88=_0x3aa3df;}}return{'ok':![],'status':_0x1d8d81??null,'error':_0x5e9b88};}
1
+ function a115_0x432e(_0x75431d,_0x17a5c9){_0x75431d=_0x75431d-0x135;const _0x418768=a115_0x4187();let _0x432e4f=_0x418768[_0x75431d];return _0x432e4f;}function a115_0x4187(){const _0x309ed8=['remove','exit\x20','toString','status','3LOpOve','1293080KBdfda','stdout','6932826mqvSpJ','unknown','inherit','lovrabet/lovrabet-skill','5661105MoXOYa','42GCeIjT','--global','stdio','add','308781MyGNlR','skill','join','stderr','Lovrabet','npx','--skill','280yFKJvH','log','178672mtUnVn','trim','78130HpWbEG','pipe','1704130MbSVuf'];a115_0x4187=function(){return _0x309ed8;};return a115_0x4187();}const a115_0x16b65b=a115_0x432e;(function(_0x1c8f98,_0x3bd32e){const _0xa89bef=a115_0x432e,_0x7a69a4=_0x1c8f98();while(!![]){try{const _0x507ebf=-parseInt(_0xa89bef(0x137))/0x1+parseInt(_0xa89bef(0x139))/0x2*(parseInt(_0xa89bef(0x13e))/0x3)+parseInt(_0xa89bef(0x135))/0x4+parseInt(_0xa89bef(0x145))/0x5+-parseInt(_0xa89bef(0x141))/0x6+-parseInt(_0xa89bef(0x146))/0x7*(parseInt(_0xa89bef(0x13f))/0x8)+-parseInt(_0xa89bef(0x14a))/0x9*(-parseInt(_0xa89bef(0x151))/0xa);if(_0x507ebf===_0x3bd32e)break;else _0x7a69a4['push'](_0x7a69a4['shift']());}catch(_0x19d792){_0x7a69a4['push'](_0x7a69a4['shift']());}}}(a115_0x4187,0xbff13));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a115_0x16b65b(0x149);export const NPX_SKILLS_FLAG_SKILL=a115_0x16b65b(0x150);export const RABETBASE_SKILL_SOURCE=a115_0x16b65b(0x144);export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x16b65b(0x14e);export function buildNpxSkillsAddArgv(_0x235d6f=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x235d6f];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x16b65b(0x14f),...buildNpxSkillsAddArgv()][a115_0x16b65b(0x14c)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2171e3,_0x3b08ac){const _0x4e3e66=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41095e=_0x3b08ac?.[_0x4e3e66(0x148)]??'inherit',_0x19ced0=resolveNpmBin(_0x4e3e66(0x14f)),_0x55850e=buildNpxSkillsAddArgv(_0x3b08ac?.[_0x4e3e66(0x14b)]??DEFAULT_RABETBASE_SKILL_NAME),_0x4a4aba=[_0x19ced0,..._0x55850e][_0x4e3e66(0x14c)]('\x20');console[_0x4e3e66(0x152)]('*\x20'+_0x4a4aba);const _0x21becc=spawnSync(_0x19ced0,_0x55850e,{'cwd':_0x2171e3,'stdio':_0x41095e,'env':process.env,'shell':![]}),_0x57ec88=_0x21becc[_0x4e3e66(0x13d)];if(_0x57ec88===0x0)return{'ok':!![],'status':0x0};let _0x432764=_0x4e3e66(0x13b)+(_0x57ec88??_0x4e3e66(0x142));if(_0x41095e==='pipe'){const _0x1fff83=_0x21becc[_0x4e3e66(0x14d)]?_0x21becc['stderr'][_0x4e3e66(0x13c)]()[_0x4e3e66(0x136)]():'',_0x5ee6eb=_0x21becc[_0x4e3e66(0x140)]?_0x21becc['stdout'][_0x4e3e66(0x13c)]()['trim']():'';if(_0x1fff83)_0x432764=_0x1fff83;else{if(_0x5ee6eb)_0x432764=_0x5ee6eb;}}return{'ok':![],'status':_0x57ec88??null,'error':_0x432764};}export function runNpxSkillsRemove(_0x5de9b5,_0x2f8f9e){const _0x127797=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23350b=_0x2f8f9e?.[_0x127797(0x148)]??_0x127797(0x143),_0x5cbdc9=resolveNpmBin(_0x127797(0x14f)),_0xbd6e5e=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x127797(0x13a),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2f8f9e?.[_0x127797(0x14b)]??DEFAULT_RABETBASE_SKILL_NAME],_0x137937=[_0x5cbdc9,..._0xbd6e5e][_0x127797(0x14c)]('\x20');console[_0x127797(0x152)]('*\x20'+_0x137937);const _0x3bc337=spawnSync(_0x5cbdc9,_0xbd6e5e,{'cwd':_0x5de9b5,'stdio':_0x23350b,'env':process.env,'shell':![]}),_0x58e8e2=_0x3bc337[_0x127797(0x13d)];if(_0x58e8e2===0x0)return{'ok':!![],'status':0x0};let _0x53cc24='exit\x20'+(_0x58e8e2??_0x127797(0x142));if(_0x23350b===_0x127797(0x138)){const _0x46730c=_0x3bc337[_0x127797(0x14d)]?_0x3bc337['stderr']['toString']()[_0x127797(0x136)]():'',_0x38f580=_0x3bc337['stdout']?_0x3bc337[_0x127797(0x140)][_0x127797(0x13c)]()[_0x127797(0x136)]():'';if(_0x46730c)_0x53cc24=_0x46730c;else{if(_0x38f580)_0x53cc24=_0x38f580;}}return{'ok':![],'status':_0x58e8e2??null,'error':_0x53cc24};}export function runNpxSkillsAddGlobal(_0x240ac7,_0x452b1d,_0x27971f){const _0x30eb0c=a115_0x16b65b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e6079=_0x27971f?.[_0x30eb0c(0x148)]??_0x30eb0c(0x143),_0x29d4c8=resolveNpmBin('npx'),_0x27416f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x452b1d,_0x30eb0c(0x147)],_0x1116ff=[_0x29d4c8,..._0x27416f][_0x30eb0c(0x14c)]('\x20');console[_0x30eb0c(0x152)]('*\x20'+_0x1116ff);const _0x5e34fc=spawnSync(_0x29d4c8,_0x27416f,{'cwd':_0x240ac7,'stdio':_0x2e6079,'env':process.env,'shell':![]}),_0x25243f=_0x5e34fc[_0x30eb0c(0x13d)];if(_0x25243f===0x0)return{'ok':!![],'status':0x0};let _0x497c72=_0x30eb0c(0x13b)+(_0x25243f??_0x30eb0c(0x142));if(_0x2e6079===_0x30eb0c(0x138)){const _0x55de8c=_0x5e34fc[_0x30eb0c(0x14d)]?_0x5e34fc[_0x30eb0c(0x14d)][_0x30eb0c(0x13c)]()[_0x30eb0c(0x136)]():'',_0x484698=_0x5e34fc[_0x30eb0c(0x140)]?_0x5e34fc[_0x30eb0c(0x140)][_0x30eb0c(0x13c)]()[_0x30eb0c(0x136)]():'';if(_0x55de8c)_0x497c72=_0x55de8c;else{if(_0x484698)_0x497c72=_0x484698;}}return{'ok':![],'status':_0x25243f??null,'error':_0x497c72};}
@@ -1 +1 @@
1
- (function(_0x2e5229,_0x342b4b){const _0x4354e2=a115_0x4516,_0x1edf99=_0x2e5229();while(!![]){try{const _0x54975a=-parseInt(_0x4354e2(0xaf))/0x1+parseInt(_0x4354e2(0xbd))/0x2+parseInt(_0x4354e2(0xb8))/0x3*(parseInt(_0x4354e2(0xbf))/0x4)+parseInt(_0x4354e2(0xbc))/0x5*(parseInt(_0x4354e2(0xb1))/0x6)+-parseInt(_0x4354e2(0xb0))/0x7+parseInt(_0x4354e2(0xb5))/0x8+parseInt(_0x4354e2(0xb7))/0x9*(-parseInt(_0x4354e2(0xbe))/0xa);if(_0x54975a===_0x342b4b)break;else _0x1edf99['push'](_0x1edf99['shift']());}catch(_0x5b5b29){_0x1edf99['push'](_0x1edf99['shift']());}}}(a115_0x8773,0x1941c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a115_0x8773(){const _0x264e9a=['25718DIOgcZ','981726TFyhGg','error','some','entries','855304wmiwRz','durationMs','1566sxSjbD','1359IMKfuT','test','message','flags','5ZkVvuJ','353274pisokh','22130rllRDg','1092RhOUaL','rabetbase.command','78652jQEkxb'];a115_0x8773=function(){return _0x264e9a;};return a115_0x8773();}function isSensitiveKey(_0x3dc878){const _0xafbc63=a115_0x4516;return SENSITIVE_PATTERNS[_0xafbc63(0xb3)](_0x95a4a7=>_0x95a4a7[_0xafbc63(0xb9)](_0x3dc878));}function a115_0x4516(_0x5bd6db,_0x43b70b){_0x5bd6db=_0x5bd6db-0xae;const _0x877394=a115_0x8773();let _0x45164e=_0x877394[_0x5bd6db];return _0x45164e;}function sanitizeFlags(_0x170478){const _0x5b7403=a115_0x4516,_0x3b668b={};for(const [_0x41dff4,_0x54cba0]of Object[_0x5b7403(0xb4)](_0x170478)){isSensitiveKey(_0x41dff4)?_0x3b668b[_0x41dff4]=_0x54cba0!=null&&_0x54cba0!==''?'[REDACTED]':_0x54cba0:_0x3b668b[_0x41dff4]=_0x54cba0;}return _0x3b668b;}export async function reportCommandTrace(_0x52ee6e){const _0x338451=a115_0x4516;try{const _0x5f06a4=sanitizeFlags(_0x52ee6e[_0x338451(0xbb)]);await sendCliTraceLog({'spanName':_0x338451(0xae),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x52ee6e['service'],'command.name':_0x52ee6e['command'],'command.flags':JSON['stringify'](_0x5f06a4),..._0x52ee6e[_0x338451(0xb6)]!=null?{'command.duration_ms':_0x52ee6e[_0x338451(0xb6)]}:{},..._0x52ee6e[_0x338451(0xb2)]?{'command.error':_0x52ee6e[_0x338451(0xb2)]instanceof Error?_0x52ee6e[_0x338451(0xb2)][_0x338451(0xba)]:String(_0x52ee6e[_0x338451(0xb2)])}:{}}});}catch{}}
1
+ function a116_0x4dc1(){const _0x553e97=['190648KGmwWg','8FhgqVo','7287345MlhHqk','durationMs','12583696XBbPok','3418667eEYVsw','22WeKhqj','[REDACTED]','19806970ixXyfO','flags','295910IlxsOO','rabetbase.command','28mefmIz','342231Zpfdap','command','service','error','6AwTBzN','some'];a116_0x4dc1=function(){return _0x553e97;};return a116_0x4dc1();}(function(_0x508261,_0x188aa4){const _0x1abc70=a116_0x3f75,_0x126afa=_0x508261();while(!![]){try{const _0x1f74d9=-parseInt(_0x1abc70(0x1a4))/0x1+-parseInt(_0x1abc70(0x1a5))/0x2*(parseInt(_0x1abc70(0x19e))/0x3)+parseInt(_0x1abc70(0x19d))/0x4*(parseInt(_0x1abc70(0x19b))/0x5)+-parseInt(_0x1abc70(0x1a2))/0x6*(parseInt(_0x1abc70(0x196))/0x7)+-parseInt(_0x1abc70(0x195))/0x8+-parseInt(_0x1abc70(0x193))/0x9+-parseInt(_0x1abc70(0x199))/0xa*(-parseInt(_0x1abc70(0x197))/0xb);if(_0x1f74d9===_0x188aa4)break;else _0x126afa['push'](_0x126afa['shift']());}catch(_0x26c915){_0x126afa['push'](_0x126afa['shift']());}}}(a116_0x4dc1,0xd1640));function a116_0x3f75(_0x2232d6,_0x440888){_0x2232d6=_0x2232d6-0x193;const _0x4dc17d=a116_0x4dc1();let _0x3f7511=_0x4dc17d[_0x2232d6];return _0x3f7511;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0xd422c1){const _0x4956e8=a116_0x3f75;return SENSITIVE_PATTERNS[_0x4956e8(0x1a3)](_0x526539=>_0x526539['test'](_0xd422c1));}function sanitizeFlags(_0x547818){const _0x49158f=a116_0x3f75,_0x5b1098={};for(const [_0x4523b5,_0x50cf77]of Object['entries'](_0x547818)){isSensitiveKey(_0x4523b5)?_0x5b1098[_0x4523b5]=_0x50cf77!=null&&_0x50cf77!==''?_0x49158f(0x198):_0x50cf77:_0x5b1098[_0x4523b5]=_0x50cf77;}return _0x5b1098;}export async function reportCommandTrace(_0x356a97){const _0xe2d817=a116_0x3f75;try{const _0x1c40c1=sanitizeFlags(_0x356a97[_0xe2d817(0x19a)]);await sendCliTraceLog({'spanName':_0xe2d817(0x19c),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x356a97[_0xe2d817(0x1a0)],'command.name':_0x356a97[_0xe2d817(0x19f)],'command.flags':JSON['stringify'](_0x1c40c1),..._0x356a97[_0xe2d817(0x194)]!=null?{'command.duration_ms':_0x356a97[_0xe2d817(0x194)]}:{},..._0x356a97[_0xe2d817(0x1a1)]?{'command.error':_0x356a97['error']instanceof Error?_0x356a97[_0xe2d817(0x1a1)]['message']:String(_0x356a97['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a116_0x2d98(_0x1b2154,_0x21bb18){_0x1b2154=_0x1b2154-0x77;var _0x15ebc3=a116_0x15eb();var _0x2d98b4=_0x15ebc3[_0x1b2154];return _0x2d98b4;}(function(_0x17cf93,_0x4d7c8f){var _0x1cc412=a116_0x2d98,_0x347609=_0x17cf93();while(!![]){try{var _0x2556e0=-parseInt(_0x1cc412(0x7f))/0x1+parseInt(_0x1cc412(0x82))/0x2*(parseInt(_0x1cc412(0x7c))/0x3)+-parseInt(_0x1cc412(0x84))/0x4*(parseInt(_0x1cc412(0x77))/0x5)+-parseInt(_0x1cc412(0x83))/0x6+-parseInt(_0x1cc412(0x7b))/0x7+-parseInt(_0x1cc412(0x7a))/0x8+parseInt(_0x1cc412(0x78))/0x9*(parseInt(_0x1cc412(0x81))/0xa);if(_0x2556e0===_0x4d7c8f)break;else _0x347609['push'](_0x347609['shift']());}catch(_0x3a87c4){_0x347609['push'](_0x347609['shift']());}}}(a116_0x15eb,0x55a1f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a116_0x15eb(){var _0x304471=['58570qGwXIT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','90ngPsxa','902bGVShe','4060284FluZzR','212iSdGxr','30295NjeGMI','1754901oMPViM','service','5134216oCAYVK','2573053UulyuY','4401WZSbOU','cli.help','error'];a116_0x15eb=function(){return _0x304471;};return a116_0x15eb();}export async function reportCliHelpTrace(_0x3a63db,_0x59795c){var _0x1d7c68=a116_0x2d98;try{await sendCliTraceLog({'spanName':_0x1d7c68(0x7d),'logData':{'rabetbase.help.kind':_0x3a63db,..._0x59795c?.[_0x1d7c68(0x79)]&&{'rabetbase.help.service':_0x59795c[_0x1d7c68(0x79)]}}});}catch(_0x8760){console[_0x1d7c68(0x7e)](_0x1d7c68(0x80),_0x8760);}}
1
+ (function(_0x11cfe7,_0x1dbd30){var _0x3e61a0=a117_0x5e5f,_0x1a0493=_0x11cfe7();while(!![]){try{var _0x3b2207=parseInt(_0x3e61a0(0x15c))/0x1*(parseInt(_0x3e61a0(0x157))/0x2)+parseInt(_0x3e61a0(0x15a))/0x3+-parseInt(_0x3e61a0(0x15e))/0x4+parseInt(_0x3e61a0(0x159))/0x5+-parseInt(_0x3e61a0(0x158))/0x6+-parseInt(_0x3e61a0(0x162))/0x7*(-parseInt(_0x3e61a0(0x161))/0x8)+-parseInt(_0x3e61a0(0x160))/0x9;if(_0x3b2207===_0x1dbd30)break;else _0x1a0493['push'](_0x1a0493['shift']());}catch(_0x3eb0c9){_0x1a0493['push'](_0x1a0493['shift']());}}}(a117_0x22cd,0x37aee));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a117_0x22cd(){var _0x563af3=['1918lHrriv','2dlaiLK','2707020mnaFml','418405JcRyHN','1255617gGkjFN','Failed\x20to\x20report\x20CLI\x20help\x20trace:','356827QrUUeT','error','87648wvrdPu','service','4809267rfaHRU','10992KjnLYo'];a117_0x22cd=function(){return _0x563af3;};return a117_0x22cd();}function a117_0x5e5f(_0x322e8b,_0x46af48){_0x322e8b=_0x322e8b-0x157;var _0x22cd11=a117_0x22cd();var _0x5e5f0b=_0x22cd11[_0x322e8b];return _0x5e5f0b;}export async function reportCliHelpTrace(_0x409a2d,_0x32cb91){var _0x4f42f6=a117_0x5e5f;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x409a2d,..._0x32cb91?.[_0x4f42f6(0x15f)]&&{'rabetbase.help.service':_0x32cb91[_0x4f42f6(0x15f)]}}});}catch(_0x970af){console[_0x4f42f6(0x15d)](_0x4f42f6(0x15b),_0x970af);}}
@@ -1 +1 @@
1
- function a117_0x5c52(){const _0x3f10b4=['rabetbase-cli','daily','352LhtSRV','username','2327260fpiTIV','502090PKWmLq','2002861WpKipv','9vdrPal','6riZJWD','904okMkBO','1815774rTkUqI','nickname','369ixNlqf','258380fcDOBe','426828OgqZHc'];a117_0x5c52=function(){return _0x3f10b4;};return a117_0x5c52();}(function(_0x2eee8d,_0x3a12f2){const _0x2d72c6=a117_0x35a1,_0x4a100a=_0x2eee8d();while(!![]){try{const _0x170eaf=parseInt(_0x2d72c6(0x84))/0x1+-parseInt(_0x2d72c6(0x81))/0x2+-parseInt(_0x2d72c6(0x7e))/0x3*(parseInt(_0x2d72c6(0x85))/0x4)+-parseInt(_0x2d72c6(0x7b))/0x5+-parseInt(_0x2d72c6(0x7f))/0x6*(-parseInt(_0x2d72c6(0x7d))/0x7)+-parseInt(_0x2d72c6(0x80))/0x8*(-parseInt(_0x2d72c6(0x83))/0x9)+parseInt(_0x2d72c6(0x7c))/0xa*(parseInt(_0x2d72c6(0x79))/0xb);if(_0x170eaf===_0x3a12f2)break;else _0x4a100a['push'](_0x4a100a['shift']());}catch(_0x29cb0b){_0x4a100a['push'](_0x4a100a['shift']());}}}(a117_0x5c52,0x70e1c));function a117_0x35a1(_0x6b6f0d,_0x1a73e9){_0x6b6f0d=_0x6b6f0d-0x79;const _0x5c5262=a117_0x5c52();let _0x35a168=_0x5c5262[_0x6b6f0d];return _0x35a168;}import a117_0x26a18f 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 _0x15a627=a117_0x35a1,_0x23e84b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x505afe=_0x23e84b?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x15a627(0x87):'production'),'username':_0x505afe?.['username']??a117_0x26a18f['userInfo']()[_0x15a627(0x7a)]??_0x15a627(0x86),..._0x505afe&&{'nickname':_0x505afe[_0x15a627(0x82)]}}),cliOtelTraceInitialized=!![];}return _0x23e84b;}
1
+ function a118_0x3a31(){const _0x27c2a1=['364oPRqZh','10613656tIfXBM','unknown','production','161718qWSGNF','3249NHZCpA','daily','rabetbase-cli','720HQQASI','2109420cmTaNl','username','1eqBqJk','nickname','user','1648522IdZcUk','11RTjGqi','3671110NmayZk','userInfo','3224830eAOZml'];a118_0x3a31=function(){return _0x27c2a1;};return a118_0x3a31();}(function(_0x5c4d7c,_0x25af7e){const _0x54d624=a118_0x1633,_0x3b7fb5=_0x5c4d7c();while(!![]){try{const _0x5a10fd=parseInt(_0x54d624(0x1e3))/0x1*(-parseInt(_0x54d624(0x1e6))/0x2)+-parseInt(_0x54d624(0x1dd))/0x3*(parseInt(_0x54d624(0x1e0))/0x4)+-parseInt(_0x54d624(0x1d7))/0x5+parseInt(_0x54d624(0x1dc))/0x6*(parseInt(_0x54d624(0x1d8))/0x7)+parseInt(_0x54d624(0x1d9))/0x8+parseInt(_0x54d624(0x1e1))/0x9+-parseInt(_0x54d624(0x1d5))/0xa*(parseInt(_0x54d624(0x1e7))/0xb);if(_0x5a10fd===_0x25af7e)break;else _0x3b7fb5['push'](_0x3b7fb5['shift']());}catch(_0x553fec){_0x3b7fb5['push'](_0x3b7fb5['shift']());}}}(a118_0x3a31,0xe3625));import a118_0x5967d3 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a118_0x1633(_0x48dceb,_0x4edfc5){_0x48dceb=_0x48dceb-0x1d5;const _0x3a31a1=a118_0x3a31();let _0x1633cd=_0x3a31a1[_0x48dceb];return _0x1633cd;}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x481ff9=a118_0x1633,_0x3a04cc=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x15591a=_0x3a04cc?.[_0x481ff9(0x1e5)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x481ff9(0x1da)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x481ff9(0x1de):_0x481ff9(0x1db)),'username':_0x15591a?.[_0x481ff9(0x1e2)]??a118_0x5967d3[_0x481ff9(0x1d6)]()['username']??_0x481ff9(0x1df),..._0x15591a&&{'nickname':_0x15591a[_0x481ff9(0x1e4)]}}),cliOtelTraceInitialized=!![];}return _0x3a04cc;}
@@ -1 +1 @@
1
- (function(_0x3fb63c,_0x29451a){const _0x5e100a=a118_0x3618,_0x4c40e5=_0x3fb63c();while(!![]){try{const _0x48cfe5=-parseInt(_0x5e100a(0xf2))/0x1*(-parseInt(_0x5e100a(0xf5))/0x2)+-parseInt(_0x5e100a(0xe9))/0x3+parseInt(_0x5e100a(0xe6))/0x4*(-parseInt(_0x5e100a(0xf4))/0x5)+-parseInt(_0x5e100a(0xf1))/0x6+parseInt(_0x5e100a(0xee))/0x7*(-parseInt(_0x5e100a(0xec))/0x8)+parseInt(_0x5e100a(0xf0))/0x9+parseInt(_0x5e100a(0xe8))/0xa*(parseInt(_0x5e100a(0xed))/0xb);if(_0x48cfe5===_0x29451a)break;else _0x4c40e5['push'](_0x4c40e5['shift']());}catch(_0x53ef06){_0x4c40e5['push'](_0x4c40e5['shift']());}}}(a118_0xe806,0xc2e64));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a118_0x3618(_0x32daca,_0x50f6f1){_0x32daca=_0x32daca-0xe6;const _0xe8064c=a118_0xe806();let _0x3618d2=_0xe8064c[_0x32daca];return _0x3618d2;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x56933e=a118_0x3618;process[_0x56933e(0xef)](_0x56933e(0xeb),()=>{void flushOtelNodeIfUsed();});const _0x13860e=()=>{const _0x8a813e=_0x56933e;void flushOtelNodeIfUsed()[_0x8a813e(0xf3)](()=>process[_0x8a813e(0xe7)](0x0));};process[_0x56933e(0xef)](_0x56933e(0xea),_0x13860e),process['once']('SIGTERM',_0x13860e);}function a118_0xe806(){const _0x1caa51=['12RZzezj','exit','925820qkwRDM','3987828SJtXEl','SIGINT','beforeExit','56OoxiXB','385UTQvaj','1121533GfZXuL','once','12994758tkYKVV','8343240CtbjkV','1FMDxor','then','2568470OmBIMV','2993014cgWYLO'];a118_0xe806=function(){return _0x1caa51;};return a118_0xe806();}export async function exitWithOtelShutdown(_0x509fb2){await flushOtelNodeIfUsed(),process['exit'](_0x509fb2);}
1
+ (function(_0x5294,_0x435b40){const _0x13f7e7=a119_0x21e7,_0x359233=_0x5294();while(!![]){try{const _0x244313=-parseInt(_0x13f7e7(0xa1))/0x1*(-parseInt(_0x13f7e7(0xa0))/0x2)+parseInt(_0x13f7e7(0x94))/0x3*(-parseInt(_0x13f7e7(0x93))/0x4)+-parseInt(_0x13f7e7(0x98))/0x5*(parseInt(_0x13f7e7(0xa3))/0x6)+parseInt(_0x13f7e7(0x9d))/0x7*(parseInt(_0x13f7e7(0x97))/0x8)+parseInt(_0x13f7e7(0x9a))/0x9+parseInt(_0x13f7e7(0x99))/0xa*(parseInt(_0x13f7e7(0x9b))/0xb)+-parseInt(_0x13f7e7(0x9f))/0xc*(-parseInt(_0x13f7e7(0xa4))/0xd);if(_0x244313===_0x435b40)break;else _0x359233['push'](_0x359233['shift']());}catch(_0x12e878){_0x359233['push'](_0x359233['shift']());}}}(a119_0x3ea8,0x97f8d));import{shutdownTraces}from'@lovrabet/otel-logger';function a119_0x3ea8(){const _0x249edc=['then','1721712jXcJmT','10gYCHxo','10tNbXTD','3100662bPxdOk','5940517RFqSUN','once','7rFTiWt','SIGTERM','723228cazzQr','2EwwyXJ','1010170shnDkL','exit','2504244BPZqEw','39Eaxtqb','62908htAlUu','159MAyyQV','beforeExit'];a119_0x3ea8=function(){return _0x249edc;};return a119_0x3ea8();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a119_0x21e7(_0x3ae3c1,_0x18cf96){_0x3ae3c1=_0x3ae3c1-0x93;const _0x3ea829=a119_0x3ea8();let _0x21e7b5=_0x3ea829[_0x3ae3c1];return _0x21e7b5;}export function registerOtelShutdownOnExit(){const _0x682845=a119_0x21e7;process[_0x682845(0x9c)](_0x682845(0x95),()=>{void flushOtelNodeIfUsed();});const _0x57f8cb=()=>{const _0x5a5498=_0x682845;void flushOtelNodeIfUsed()[_0x5a5498(0x96)](()=>process[_0x5a5498(0xa2)](0x0));};process['once']('SIGINT',_0x57f8cb),process[_0x682845(0x9c)](_0x682845(0x9e),_0x57f8cb);}export async function exitWithOtelShutdown(_0x5d954a){const _0x14c461=a119_0x21e7;await flushOtelNodeIfUsed(),process[_0x14c461(0xa2)](_0x5d954a);}
@@ -1 +1 @@
1
- (function(_0x288cd5,_0x529381){const _0x52f5a4=a119_0x1646,_0x17f21a=_0x288cd5();while(!![]){try{const _0x232b2f=parseInt(_0x52f5a4(0xbc))/0x1*(-parseInt(_0x52f5a4(0xb7))/0x2)+parseInt(_0x52f5a4(0xb5))/0x3+-parseInt(_0x52f5a4(0xb6))/0x4*(parseInt(_0x52f5a4(0xbd))/0x5)+parseInt(_0x52f5a4(0xb8))/0x6*(parseInt(_0x52f5a4(0xba))/0x7)+parseInt(_0x52f5a4(0xb4))/0x8*(-parseInt(_0x52f5a4(0xb2))/0x9)+-parseInt(_0x52f5a4(0xb1))/0xa+parseInt(_0x52f5a4(0xb3))/0xb;if(_0x232b2f===_0x529381)break;else _0x17f21a['push'](_0x17f21a['shift']());}catch(_0xb0276c){_0x17f21a['push'](_0x17f21a['shift']());}}}(a119_0x389f,0x8fec3));function a119_0x1646(_0x83d64c,_0xe3710f){_0x83d64c=_0x83d64c-0xb1;const _0x389ffa=a119_0x389f();let _0x16461e=_0x389ffa[_0x83d64c];return _0x16461e;}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='rabetbase-cli';function a119_0x389f(){const _0x4df22b=['10pBbcIm','manual','1264970LGKVIY','231507KqxOou','21775424jbctfI','232ZSMBLN','2111331ioLEfF','1972552XCEGPa','2287524OOUEjD','48qLAYrg','traceparent','795067ZdzxKJ','spanName','1OGDmKD'];a119_0x389f=function(){return _0x4df22b;};return a119_0x389f();}export async function sendCliTraceLog(_0x2e111c){const _0x1a1a44=a119_0x1646;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2e111c['traceName']??DEFAULT_TRACE_NAME,'version':_0x2e111c['version']??getCliVersion(),'spanName':_0x2e111c[_0x1a1a44(0xbb)],'eventType':_0x1a1a44(0xbe),'logData':_0x2e111c['logData'],..._0x2e111c[_0x1a1a44(0xb9)]&&{'traceparent':_0x2e111c[_0x1a1a44(0xb9)]}});}
1
+ const a120_0x1d7474=a120_0x27f5;(function(_0x4f0eba,_0x145113){const _0x6ef4c6=a120_0x27f5,_0x304752=_0x4f0eba();while(!![]){try{const _0x2d0c92=-parseInt(_0x6ef4c6(0x1f5))/0x1+-parseInt(_0x6ef4c6(0x1fa))/0x2*(-parseInt(_0x6ef4c6(0x1f4))/0x3)+-parseInt(_0x6ef4c6(0x1f9))/0x4+parseInt(_0x6ef4c6(0x1f6))/0x5+-parseInt(_0x6ef4c6(0x1f2))/0x6*(parseInt(_0x6ef4c6(0x1f3))/0x7)+parseInt(_0x6ef4c6(0x1fc))/0x8+parseInt(_0x6ef4c6(0x1f8))/0x9;if(_0x2d0c92===_0x145113)break;else _0x304752['push'](_0x304752['shift']());}catch(_0x43fc93){_0x304752['push'](_0x304752['shift']());}}}(a120_0x1e93,0x54c9d));function a120_0x27f5(_0x3d9046,_0x597409){_0x3d9046=_0x3d9046-0x1f0;const _0x1e938a=a120_0x1e93();let _0x27f5dd=_0x1e938a[_0x3d9046];return _0x27f5dd;}import{sendTraceLog}from'@lovrabet/otel-logger';function a120_0x1e93(){const _0x4a9f87=['traceparent','version','traceName','spanName','26472NbTeKD','28BeDYIs','3slwKcc','535668LuRjhu','1742295UZlGGr','logData','5574168KGaMPf','2473584hUzUpa','660102PbLFbJ','rabetbase-cli','1769144GuMjbe'];a120_0x1e93=function(){return _0x4a9f87;};return a120_0x1e93();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a120_0x1d7474(0x1fb);export async function sendCliTraceLog(_0x5def53){const _0x1452de=a120_0x1d7474;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5def53[_0x1452de(0x1f0)]??DEFAULT_TRACE_NAME,'version':_0x5def53[_0x1452de(0x1fe)]??getCliVersion(),'spanName':_0x5def53[_0x1452de(0x1f1)],'eventType':'manual','logData':_0x5def53[_0x1452de(0x1f7)],..._0x5def53['traceparent']&&{'traceparent':_0x5def53[_0x1452de(0x1fd)]}});}
@@ -1 +1 @@
1
- function a121_0x2177(){const _0x4674b1=['qoder','Antigravity\x20IDE','trae','windsurf','3010AQtqUJ','.qoder','.codebuddy','OpenCode\x20IDE','cursor','.opencode/skills/lovrabet/SKILL.md','.cursor','3160701YFFGMI','.claude','5931784wIrDWA','.claude/skills/lovrabet/SKILL.md','claude','.codex','322BbRBJl','209RXaJFN','Cursor','SKILL.md.tpl','5376105CHxobR','CodeBuddy','Qoder\x20IDE','.qoder/rules/rabetbase.md','5030iNLRXs','Cline\x20IDE','Claude\x20Code','Trae','93774YVgIFv','13682xJzWLH','.trae/skills/lovrabet/SKILL.md','codex','.codebuddy/skills/lovrabet/SKILL.md','agent','.windsurf','.cursor/skills/rabetbase.md','.cline/skills/lovrabet/SKILL.md','Cursor\x20IDE','cline','Codex','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','codebuddy','antigravity','其他\x20(通用模板)','opencode','.cline','Antigravity','1004chfhGe','OpenCode','Qoder','file','.opencode','Trae\x20IDE','87cODJJa','通用模板\x20-\x20兜底方案','Codex\x20IDE','.agent','.windsurf/workflows/rabetbase.md'];a121_0x2177=function(){return _0x4674b1;};return a121_0x2177();}const a121_0x298dfa=a121_0x597a;function a121_0x597a(_0x3460e1,_0xc58da5){_0x3460e1=_0x3460e1-0x187;const _0x217752=a121_0x2177();let _0x597a93=_0x217752[_0x3460e1];return _0x597a93;}(function(_0x42563f,_0x3f32d0){const _0x279c46=a121_0x597a,_0x10c993=_0x42563f();while(!![]){try{const _0x9560e2=-parseInt(_0x279c46(0x1ba))/0x1*(-parseInt(_0x279c46(0x1a1))/0x2)+-parseInt(_0x279c46(0x18e))/0x3+parseInt(_0x279c46(0x1b4))/0x4*(parseInt(_0x279c46(0x187))/0x5)+parseInt(_0x279c46(0x1a0))/0x6*(parseInt(_0x279c46(0x194))/0x7)+parseInt(_0x279c46(0x190))/0x8+-parseInt(_0x279c46(0x198))/0x9+parseInt(_0x279c46(0x19c))/0xa*(parseInt(_0x279c46(0x195))/0xb);if(_0x9560e2===_0x3f32d0)break;else _0x10c993['push'](_0x10c993['shift']());}catch(_0x50e389){_0x10c993['push'](_0x10c993['shift']());}}}(a121_0x2177,0x8a049));export const CORE_IDE_CONFIGS={'cursor':{'name':a121_0x298dfa(0x196),'description':a121_0x298dfa(0x1a9),'folders':['.cursorrules',a121_0x298dfa(0x18d)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x1a7),'template':a121_0x298dfa(0x197)}]},'windsurf':{'name':'Windsurf','description':a121_0x298dfa(0x1ad),'folders':[a121_0x298dfa(0x1a6)],'files':[{'type':'file','path':a121_0x298dfa(0x1be),'template':a121_0x298dfa(0x197)}]},'claude':{'name':a121_0x298dfa(0x19e),'description':'Claude\x20Code','folders':[a121_0x298dfa(0x18f)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x191),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a121_0x298dfa(0x19d),'folders':[a121_0x298dfa(0x1b2)],'files':[{'type':'file','path':a121_0x298dfa(0x1a8),'template':'SKILL.md.tpl'}]},'codex':{'name':a121_0x298dfa(0x1ab),'description':a121_0x298dfa(0x1bc),'folders':[a121_0x298dfa(0x193)],'files':[{'type':a121_0x298dfa(0x1b7),'path':'.codex/skills/lovrabet/SKILL.md','template':a121_0x298dfa(0x197)}]},'opencode':{'name':a121_0x298dfa(0x1b5),'description':a121_0x298dfa(0x18a),'folders':[a121_0x298dfa(0x1b8)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x18c),'template':a121_0x298dfa(0x197)}]},'qoder':{'name':a121_0x298dfa(0x1b6),'description':a121_0x298dfa(0x19a),'folders':[a121_0x298dfa(0x188)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x19b),'template':a121_0x298dfa(0x197)},{'type':a121_0x298dfa(0x1b7),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a121_0x298dfa(0x199),'description':'CodeBuddy\x20IDE','folders':[a121_0x298dfa(0x189)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x1a4),'template':a121_0x298dfa(0x197)}]},'trae':{'name':a121_0x298dfa(0x19f),'description':a121_0x298dfa(0x1b9),'folders':['.trae'],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x1a2),'template':a121_0x298dfa(0x197)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a121_0x298dfa(0x1b0),'description':a121_0x298dfa(0x1bb),'folders':[a121_0x298dfa(0x1bd)],'files':[{'type':a121_0x298dfa(0x1b7),'path':a121_0x298dfa(0x1ac),'template':a121_0x298dfa(0x197)}]},'antigravity':{'name':a121_0x298dfa(0x1b3),'description':a121_0x298dfa(0x1c0),'folders':[a121_0x298dfa(0x1bd)],'files':[{'type':a121_0x298dfa(0x1b7),'path':'.agent/skills/lovrabet/SKILL.md','template':a121_0x298dfa(0x197)}]}};export const CORE_IDE_LIST=['claude','cline',a121_0x298dfa(0x1ae),'codex',a121_0x298dfa(0x18b),'opencode',a121_0x298dfa(0x1bf),a121_0x298dfa(0x1c1),'windsurf'];export const IDE_LIST=[a121_0x298dfa(0x1af),a121_0x298dfa(0x192),a121_0x298dfa(0x1aa),a121_0x298dfa(0x1ae),a121_0x298dfa(0x1a3),a121_0x298dfa(0x18b),'opencode',a121_0x298dfa(0x1bf),a121_0x298dfa(0x1c1),a121_0x298dfa(0x1c2),a121_0x298dfa(0x1a5)];export const ALL_CORE_IDES=[a121_0x298dfa(0x18b),a121_0x298dfa(0x1c2),a121_0x298dfa(0x192),a121_0x298dfa(0x1aa),a121_0x298dfa(0x1a3),a121_0x298dfa(0x1b1),'qoder',a121_0x298dfa(0x1ae),'trae'];
1
+ function a122_0x42bb(){const _0x497301=['11161dxAGxT','48656UEemhq','Codex\x20IDE','610cdkrmb','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','Windsurf\x20IDE','.codex','通用模板\x20-\x20兜底方案','qoder','.claude','.codex/skills/lovrabet/SKILL.md','Trae','Trae\x20IDE','.codebuddy','Claude\x20Code','1700405MxjiTl','.agent/skills/lovrabet/SKILL.md','333UXQShw','Windsurf','.opencode/skills/lovrabet/SKILL.md','opencode','codebuddy','.qoder/skills/lovrabet/SKILL.md','.cursorrules','.trae/skills/lovrabet/SKILL.md','.qoder','2657590zpWrxm','4JBwADh','.cline','cline','Cline\x20IDE','trae','file','antigravity','11WhvGxY','.agent','Codex','.opencode','9668DAbsAF','agent','1513383PygeHw','windsurf','codex','cursor','其他\x20(通用模板)','.cursor/skills/rabetbase.md','1905000JpWQzd','Cline','Cursor\x20IDE','.cline/skills/lovrabet/SKILL.md','OpenCode','Cursor','SKILL.md.tpl','CodeBuddy\x20IDE','claude','Antigravity','.codebuddy/skills/lovrabet/SKILL.md','Qoder'];a122_0x42bb=function(){return _0x497301;};return a122_0x42bb();}const a122_0x13cb10=a122_0x2ef7;(function(_0x5ca117,_0x1a18aa){const _0x41a6a4=a122_0x2ef7,_0x2083d9=_0x5ca117();while(!![]){try{const _0x379c4d=-parseInt(_0x41a6a4(0x121))/0x1*(parseInt(_0x41a6a4(0x102))/0x2)+parseInt(_0x41a6a4(0x10f))/0x3+-parseInt(_0x41a6a4(0x10d))/0x4*(-parseInt(_0x41a6a4(0x124))/0x5)+-parseInt(_0x41a6a4(0x115))/0x6+-parseInt(_0x41a6a4(0xf6))/0x7+-parseInt(_0x41a6a4(0x122))/0x8*(parseInt(_0x41a6a4(0xf8))/0x9)+-parseInt(_0x41a6a4(0x101))/0xa*(-parseInt(_0x41a6a4(0x109))/0xb);if(_0x379c4d===_0x1a18aa)break;else _0x2083d9['push'](_0x2083d9['shift']());}catch(_0x2a8058){_0x2083d9['push'](_0x2083d9['shift']());}}}(a122_0x42bb,0x3ed2b));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x13cb10(0x11a),'description':a122_0x13cb10(0x117),'folders':[a122_0x13cb10(0xfe),'.cursor'],'files':[{'type':'file','path':a122_0x13cb10(0x114),'template':a122_0x13cb10(0x11b)}]},'windsurf':{'name':a122_0x13cb10(0xf9),'description':a122_0x13cb10(0x127),'folders':['.windsurf'],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x125),'template':a122_0x13cb10(0x11b)}]},'claude':{'name':'Claude\x20Code','description':a122_0x13cb10(0xf5),'folders':[a122_0x13cb10(0x12b)],'files':[{'type':a122_0x13cb10(0x107),'path':'.claude/skills/lovrabet/SKILL.md','template':a122_0x13cb10(0x11b)}]},'cline':{'name':a122_0x13cb10(0x116),'description':a122_0x13cb10(0x105),'folders':[a122_0x13cb10(0x103)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x118),'template':a122_0x13cb10(0x11b)}]},'codex':{'name':a122_0x13cb10(0x10b),'description':a122_0x13cb10(0x123),'folders':[a122_0x13cb10(0x128)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x12c),'template':a122_0x13cb10(0x11b)}]},'opencode':{'name':a122_0x13cb10(0x119),'description':'OpenCode\x20IDE','folders':[a122_0x13cb10(0x10c)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xfa),'template':a122_0x13cb10(0x11b)}]},'qoder':{'name':a122_0x13cb10(0x120),'description':'Qoder\x20IDE','folders':[a122_0x13cb10(0x100)],'files':[{'type':a122_0x13cb10(0x107),'path':'.qoder/rules/rabetbase.md','template':a122_0x13cb10(0x11b)},{'type':'file','path':a122_0x13cb10(0xfd),'template':a122_0x13cb10(0x11b)}]},'codebuddy':{'name':'CodeBuddy','description':a122_0x13cb10(0x11c),'folders':[a122_0x13cb10(0x12f)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0x11f),'template':'SKILL.md.tpl'}]},'trae':{'name':a122_0x13cb10(0x12d),'description':a122_0x13cb10(0x12e),'folders':['.trae'],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xff),'template':a122_0x13cb10(0x11b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x13cb10(0x113),'description':a122_0x13cb10(0x129),'folders':[a122_0x13cb10(0x10a)],'files':[{'type':a122_0x13cb10(0x107),'path':'.agent/skills/lovrabet/SKILL.md','template':a122_0x13cb10(0x11b)}]},'antigravity':{'name':a122_0x13cb10(0x11e),'description':a122_0x13cb10(0x126),'folders':[a122_0x13cb10(0x10a)],'files':[{'type':a122_0x13cb10(0x107),'path':a122_0x13cb10(0xf7),'template':a122_0x13cb10(0x11b)}]}};function a122_0x2ef7(_0xd342c8,_0x7ce42){_0xd342c8=_0xd342c8-0xf5;const _0x42bbed=a122_0x42bb();let _0x2ef740=_0x42bbed[_0xd342c8];return _0x2ef740;}export const CORE_IDE_LIST=[a122_0x13cb10(0x11d),'cline',a122_0x13cb10(0xfc),a122_0x13cb10(0x111),a122_0x13cb10(0x112),'opencode',a122_0x13cb10(0x12a),'trae',a122_0x13cb10(0x110)];export const IDE_LIST=[a122_0x13cb10(0x108),'claude',a122_0x13cb10(0x104),a122_0x13cb10(0xfc),a122_0x13cb10(0x111),a122_0x13cb10(0x112),a122_0x13cb10(0xfb),a122_0x13cb10(0x12a),a122_0x13cb10(0x106),a122_0x13cb10(0x110),a122_0x13cb10(0x10e)];export const ALL_CORE_IDES=['cursor',a122_0x13cb10(0x110),a122_0x13cb10(0x11d),'cline',a122_0x13cb10(0x111),'opencode',a122_0x13cb10(0x12a),a122_0x13cb10(0xfc),'trae'];
@@ -1 +1 @@
1
- function a122_0x3fe6(_0x37d601,_0x4d54dd){_0x37d601=_0x37d601-0x82;const _0x58fbb2=a122_0x58fb();let _0x3fe631=_0x58fbb2[_0x37d601];return _0x3fe631;}(function(_0x3cd59e,_0xce2d48){const _0x3af97f=a122_0x3fe6,_0x473575=_0x3cd59e();while(!![]){try{const _0x27d83f=parseInt(_0x3af97f(0x99))/0x1*(-parseInt(_0x3af97f(0x87))/0x2)+-parseInt(_0x3af97f(0x89))/0x3+parseInt(_0x3af97f(0x86))/0x4+-parseInt(_0x3af97f(0x84))/0x5*(parseInt(_0x3af97f(0x8b))/0x6)+-parseInt(_0x3af97f(0x8f))/0x7+-parseInt(_0x3af97f(0x8c))/0x8+parseInt(_0x3af97f(0x8e))/0x9;if(_0x27d83f===_0xce2d48)break;else _0x473575['push'](_0x473575['shift']());}catch(_0x1c034c){_0x473575['push'](_0x473575['shift']());}}}(a122_0x58fb,0xac5e6));import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';import{createRequire}from'node:module';import a122_0x4d9ca4 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function a122_0x58fb(){const _0x3320e2=['6412640CRzGFO','utf8','29188278LjFnHK','2688567ViPyoN','resolve','jq.exe','stderr','node-jq/package.json','test','toString','trim','validation','pipe','1GZQLvy','platform','jq:\x20','join','win32','dirname','257520qDsIAE','--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/','1775720TOibfN','1325234uVghGZ','code','2934780NcIZMa','ENOENT','18VjztlH'];a122_0x58fb=function(){return _0x3320e2;};return a122_0x58fb();}function resolveJqBinary(){const _0x149234=a122_0x3fe6;try{const _0x95df20=createRequire(import.meta.url),_0x282d97=a122_0x4d9ca4[_0x149234(0x83)](_0x95df20[_0x149234(0x90)](_0x149234(0x93))),_0x4beaf9=a122_0x4d9ca4['join'](_0x282d97,'bin'),_0x1db2d3=process[_0x149234(0x9a)]===_0x149234(0x82)?_0x149234(0x91):'jq',_0x593cd1=a122_0x4d9ca4[_0x149234(0x9c)](_0x4beaf9,_0x1db2d3);if(existsSync(_0x593cd1))return _0x593cd1;}catch{}return'jq';}export function applyJqFilter(_0xe86c5b,_0x563d5d){const _0xf32f6f=a122_0x3fe6,_0x16778b=resolveJqBinary();try{return execFileSync(_0x16778b,[_0x563d5d],{'input':_0xe86c5b,'encoding':_0xf32f6f(0x8d),'maxBuffer':MAX_BUFFER,'stdio':[_0xf32f6f(0x98),_0xf32f6f(0x98),'pipe']});}catch(_0x46f5bc){const _0x1964ef=_0x46f5bc;if(_0x1964ef[_0xf32f6f(0x88)]===_0xf32f6f(0x8a))throw CliErrors[_0xf32f6f(0x97)](_0xf32f6f(0x85),'e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq');const _0x3bae85=_0x1964ef[_0xf32f6f(0x92)]?.[_0xf32f6f(0x95)]?.()[_0xf32f6f(0x96)]()??'',_0xbb777f=(_0x1964ef['message']??String(_0x46f5bc))[_0xf32f6f(0x96)](),_0x1a79f9=_0x3bae85||_0xbb777f,_0x5e3e5b=/^\s*jq:/i[_0xf32f6f(0x94)](_0x1a79f9)?_0x1a79f9:_0xf32f6f(0x9b)+_0x1a79f9;throw CliErrors[_0xf32f6f(0x97)](_0x5e3e5b);}}
1
+ (function(_0x2e7601,_0x5416fc){const _0x5bc0b9=a123_0x16fb,_0x59145e=_0x2e7601();while(!![]){try{const _0x27663a=parseInt(_0x5bc0b9(0xd6))/0x1*(parseInt(_0x5bc0b9(0xd2))/0x2)+parseInt(_0x5bc0b9(0xc4))/0x3*(-parseInt(_0x5bc0b9(0xc2))/0x4)+-parseInt(_0x5bc0b9(0xd3))/0x5+-parseInt(_0x5bc0b9(0xc5))/0x6+-parseInt(_0x5bc0b9(0xc7))/0x7*(-parseInt(_0x5bc0b9(0xd4))/0x8)+parseInt(_0x5bc0b9(0xc8))/0x9+parseInt(_0x5bc0b9(0xcf))/0xa;if(_0x27663a===_0x5416fc)break;else _0x59145e['push'](_0x59145e['shift']());}catch(_0x121e6e){_0x59145e['push'](_0x59145e['shift']());}}}(a123_0x57d7,0x56549));import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';import{createRequire}from'node:module';import a123_0x591f80 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x4ac141=a123_0x16fb;try{const _0x306838=createRequire(import.meta.url),_0x3e8980=a123_0x591f80['dirname'](_0x306838[_0x4ac141(0xbe)](_0x4ac141(0xca))),_0x1c67d1=a123_0x591f80['join'](_0x3e8980,'bin'),_0x4017b3=process['platform']===_0x4ac141(0xc0)?_0x4ac141(0xc9):'jq',_0x379504=a123_0x591f80[_0x4ac141(0xcb)](_0x1c67d1,_0x4017b3);if(existsSync(_0x379504))return _0x379504;}catch{}return'jq';}function a123_0x57d7(){const _0xcedc70=['28WVFYYs','--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/','211521iRZSCG','1828368SqJiVQ','toString','447762XhqyII','5641434EQPrjq','jq.exe','node-jq/package.json','join','validation','trim','test','5112930cqTogO','jq:\x20','ENOENT','16BKMeoQ','3207405ejPcDh','64TdHuCr','message','17940PDWqkn','resolve','code','win32','pipe'];a123_0x57d7=function(){return _0xcedc70;};return a123_0x57d7();}function a123_0x16fb(_0x29ee37,_0xe3d6de){_0x29ee37=_0x29ee37-0xbe;const _0x57d730=a123_0x57d7();let _0x16fb2e=_0x57d730[_0x29ee37];return _0x16fb2e;}export function applyJqFilter(_0x1a101a,_0x1c1215){const _0x311671=a123_0x16fb,_0x5813b0=resolveJqBinary();try{return execFileSync(_0x5813b0,[_0x1c1215],{'input':_0x1a101a,'encoding':'utf8','maxBuffer':MAX_BUFFER,'stdio':[_0x311671(0xc1),_0x311671(0xc1),_0x311671(0xc1)]});}catch(_0x20be08){const _0xf77244=_0x20be08;if(_0xf77244[_0x311671(0xbf)]===_0x311671(0xd1))throw CliErrors[_0x311671(0xcc)](_0x311671(0xc3),'e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq');const _0x472a91=_0xf77244['stderr']?.[_0x311671(0xc6)]?.()[_0x311671(0xcd)]()??'',_0xc72179=(_0xf77244[_0x311671(0xd5)]??String(_0x20be08))['trim'](),_0x31fdec=_0x472a91||_0xc72179,_0x40f51c=/^\s*jq:/i[_0x311671(0xce)](_0x31fdec)?_0x31fdec:_0x311671(0xd0)+_0x31fdec;throw CliErrors[_0x311671(0xcc)](_0x40f51c);}}
@@ -1 +1 @@
1
- (function(_0x429d65,_0x2c5514){const _0x289750=a123_0x5520,_0x37853d=_0x429d65();while(!![]){try{const _0x2fe888=-parseInt(_0x289750(0xc6))/0x1*(-parseInt(_0x289750(0xcf))/0x2)+parseInt(_0x289750(0xc7))/0x3+-parseInt(_0x289750(0xca))/0x4*(-parseInt(_0x289750(0xcc))/0x5)+parseInt(_0x289750(0xce))/0x6+-parseInt(_0x289750(0xc9))/0x7+parseInt(_0x289750(0xcd))/0x8*(parseInt(_0x289750(0xc5))/0x9)+-parseInt(_0x289750(0xd0))/0xa;if(_0x2fe888===_0x2c5514)break;else _0x37853d['push'](_0x37853d['shift']());}catch(_0x49fb1a){_0x37853d['push'](_0x37853d['shift']());}}}(a123_0x3e10,0x749e4));import{getTemplateBaseUrl}from'../utils/config.js';function a123_0x3e10(){const _0x4c3066=['14174ZqiwJu','20831610lqlGMe','/config.json','node','stableVersion','sdk','490545prflQe','61LdLYWJ','711180VHIDvE','now','1197567MlsiBJ','592856IDgQOR','json','20CAZpfL','80cecVsY','5547822XDVtqd'];a123_0x3e10=function(){return _0x4c3066;};return a123_0x3e10();}function a123_0x5520(_0x301fb3,_0x5c9beb){_0x301fb3=_0x301fb3-0xc1;const _0x3e10ac=a123_0x3e10();let _0x55203=_0x3e10ac[_0x301fb3];return _0x55203;}export async function fetchCdnConfig(){const _0x535347=a123_0x5520;try{const _0x57e66e=getTemplateBaseUrl(),_0x3ab046=_0x57e66e+_0x535347(0xc1),_0x200a2b=await fetch(_0x3ab046,{'headers':{'Accept':'application/json'}});if(!_0x200a2b['ok'])return null;const _0x2ee0be=await _0x200a2b[_0x535347(0xcb)]();if(!_0x2ee0be['cli']?.['stableVersion']||!_0x2ee0be[_0x535347(0xc4)]?.[_0x535347(0xc2)]?.[_0x535347(0xc3)])return null;return _0x2ee0be;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x4df73d=a123_0x5520,_0x2209da=Date[_0x4df73d(0xc8)]();if(cachedConfig&&_0x2209da-cacheTime<CACHE_TTL)return cachedConfig;const _0x45e7f8=await fetchCdnConfig();return _0x45e7f8&&(cachedConfig=_0x45e7f8,cacheTime=_0x2209da),_0x45e7f8;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ (function(_0x54fadd,_0x3038b5){const _0x3eb783=a124_0x164b,_0x597a14=_0x54fadd();while(!![]){try{const _0x4a3817=-parseInt(_0x3eb783(0x74))/0x1*(-parseInt(_0x3eb783(0x70))/0x2)+-parseInt(_0x3eb783(0x7d))/0x3+-parseInt(_0x3eb783(0x6f))/0x4+parseInt(_0x3eb783(0x7c))/0x5*(-parseInt(_0x3eb783(0x71))/0x6)+parseInt(_0x3eb783(0x73))/0x7+parseInt(_0x3eb783(0x79))/0x8+parseInt(_0x3eb783(0x7b))/0x9;if(_0x4a3817===_0x3038b5)break;else _0x597a14['push'](_0x597a14['shift']());}catch(_0x4760d4){_0x597a14['push'](_0x597a14['shift']());}}}(a124_0x2a99,0xecf16));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x35a7e4=a124_0x164b;try{const _0xaaf29d=getTemplateBaseUrl(),_0x5699cf=_0xaaf29d+_0x35a7e4(0x78),_0x2fad79=await fetch(_0x5699cf,{'headers':{'Accept':'application/json'}});if(!_0x2fad79['ok'])return null;const _0x3a8f6f=await _0x2fad79[_0x35a7e4(0x76)]();if(!_0x3a8f6f[_0x35a7e4(0x7e)]?.[_0x35a7e4(0x7a)]||!_0x3a8f6f[_0x35a7e4(0x75)]?.[_0x35a7e4(0x77)]?.[_0x35a7e4(0x7a)])return null;return _0x3a8f6f;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a124_0x164b(_0x406d36,_0x51c821){_0x406d36=_0x406d36-0x6f;const _0x2a995e=a124_0x2a99();let _0x164be9=_0x2a995e[_0x406d36];return _0x164be9;}const CACHE_TTL=0x5*0x3c*0x3e8;function a124_0x2a99(){const _0x59b086=['json','node','/config.json','11337448jpjIQp','stableVersion','1737126ymFklo','5gGepMH','2604207ZNZtKm','cli','3403636AWFqpt','6tlLTGx','5887092ERqHAb','now','12385772cycthC','97029pxhBrk','sdk'];a124_0x2a99=function(){return _0x59b086;};return a124_0x2a99();}export async function getCdnConfig(){const _0x40bbb2=a124_0x164b,_0x5c190c=Date[_0x40bbb2(0x72)]();if(cachedConfig&&_0x5c190c-cacheTime<CACHE_TTL)return cachedConfig;const _0x547202=await fetchCdnConfig();return _0x547202&&(cachedConfig=_0x547202,cacheTime=_0x5c190c),_0x547202;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a124_0x2e3c3b=a124_0x2f42;(function(_0x2c089d,_0x52a6c0){const _0x2e96f4=a124_0x2f42,_0xc861ee=_0x2c089d();while(!![]){try{const _0x28f84e=-parseInt(_0x2e96f4(0x1dc))/0x1*(parseInt(_0x2e96f4(0x1d6))/0x2)+parseInt(_0x2e96f4(0x1da))/0x3+-parseInt(_0x2e96f4(0x1ce))/0x4+-parseInt(_0x2e96f4(0x1f0))/0x5*(parseInt(_0x2e96f4(0x1df))/0x6)+-parseInt(_0x2e96f4(0x1db))/0x7+-parseInt(_0x2e96f4(0x1e4))/0x8+parseInt(_0x2e96f4(0x1de))/0x9*(parseInt(_0x2e96f4(0x1e1))/0xa);if(_0x28f84e===_0x52a6c0)break;else _0xc861ee['push'](_0xc861ee['shift']());}catch(_0xc98e57){_0xc861ee['push'](_0xc861ee['shift']());}}}(a124_0x5d3d,0x9970f));import a124_0x5dd442 from'node:fs';import a124_0x2a689c from'node:path';import a124_0x13c573 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a124_0x2e3c3b(0x1d4);function a124_0x2f42(_0xf033f2,_0x41fd86){_0xf033f2=_0xf033f2-0x1ce;const _0x5d3dbc=a124_0x5d3d();let _0x2f42dd=_0x5d3dbc[_0xf033f2];return _0x2f42dd;}function isNonNumericVersion(_0x4cd4c1){const _0xebd032=a124_0x2e3c3b,_0x107d80=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x107d80['some'](_0x30be61=>_0x30be61[_0xebd032(0x1dd)](_0x4cd4c1));}function getInstalledVersion(_0x3eb1d4,_0x1a5d60){const _0x3f24b9=a124_0x2e3c3b;try{const _0x121c13=a124_0x2a689c[_0x3f24b9(0x1d7)](_0x3eb1d4,'node_modules',_0x1a5d60,'package.json');if(a124_0x5dd442[_0x3f24b9(0x1eb)](_0x121c13)){const _0x8c09a8=JSON[_0x3f24b9(0x1e8)](a124_0x5dd442[_0x3f24b9(0x1d1)](_0x121c13,'utf-8'));return _0x8c09a8['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3b82fb=a124_0x2e3c3b;try{const _0x555fc0=await getCdnConfig();return _0x555fc0?.[_0x3b82fb(0x1d5)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x30dcab=a124_0x2e3c3b;try{const _0x339e03=await getCdnConfig();return _0x339e03?.[_0x30dcab(0x1d5)]?.[_0x30dcab(0x1e6)]?.[_0x30dcab(0x1d9)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x49b459){const _0xab517c=a124_0x2e3c3b,_0x4481b8=a124_0x2a689c[_0xab517c(0x1d7)](_0x49b459,'package.json'),[_0x5c8ca9,_0x216f8b]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x5d0a94=_0x5c8ca9||FALLBACK_MIN_SDK_VERSION;if(!a124_0x5dd442[_0xab517c(0x1eb)](_0x4481b8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d0a94,'packageName':_0x216f8b,'stableVersion':_0x5c8ca9};try{const _0x3a32f9=JSON[_0xab517c(0x1e8)](a124_0x5dd442[_0xab517c(0x1d1)](_0x4481b8,'utf8')),_0x17fb97=_0x3a32f9[_0xab517c(0x1e9)]||{},_0xa7bacb=_0x3a32f9['devDependencies']||{},_0x2267ce=_0x17fb97[_0x216f8b]||_0xa7bacb[_0x216f8b];if(!_0x2267ce)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d0a94,'packageName':_0x216f8b,'stableVersion':_0x5c8ca9};let _0xca99d2=getInstalledVersion(_0x49b459,_0x216f8b);!_0xca99d2&&(_0xca99d2=_0x2267ce);if(isNonNumericVersion(_0x2267ce))return{'installed':!![],'version':_0xca99d2,'needsUpgrade':![],'minVersion':_0x5d0a94,'packageName':_0x216f8b,'stableVersion':_0x5c8ca9};const _0x7b540b=a124_0x13c573[_0xab517c(0x1d0)](_0xca99d2),_0x29680d=a124_0x13c573['coerce'](_0x5d0a94),_0x228d2a=_0x7b540b&&_0x29680d?a124_0x13c573['lt'](_0x7b540b,_0x29680d):![];return{'installed':!![],'version':_0xca99d2,'needsUpgrade':_0x228d2a,'minVersion':_0x5d0a94,'packageName':_0x216f8b,'stableVersion':_0x5c8ca9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5d0a94,'packageName':_0x216f8b,'stableVersion':_0x5c8ca9};}}export function checkSdkVersionSync(_0x4f6588){const _0x345517=a124_0x2e3c3b,_0x2818e9=a124_0x2a689c[_0x345517(0x1d7)](_0x4f6588,_0x345517(0x1cf)),_0x4dccd0=_0x345517(0x1ed);if(!a124_0x5dd442[_0x345517(0x1eb)](_0x2818e9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4dccd0,'stableVersion':null};try{const _0x25bef0=JSON[_0x345517(0x1e8)](a124_0x5dd442['readFileSync'](_0x2818e9,_0x345517(0x1d8))),_0x346f5e=_0x25bef0[_0x345517(0x1e9)]||{},_0x26d026=_0x25bef0[_0x345517(0x1d2)]||{},_0x284adb=_0x346f5e[_0x4dccd0]||_0x26d026[_0x4dccd0];if(!_0x284adb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4dccd0,'stableVersion':null};let _0x28231c=getInstalledVersion(_0x4f6588,_0x4dccd0);!_0x28231c&&(_0x28231c=_0x284adb);if(isNonNumericVersion(_0x284adb))return{'installed':!![],'version':_0x28231c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4dccd0,'stableVersion':null};const _0x598b9a=a124_0x13c573[_0x345517(0x1d0)](_0x28231c),_0x1b5d25=_0x598b9a?a124_0x13c573['lt'](_0x598b9a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x28231c,'needsUpgrade':_0x1b5d25,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4dccd0,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4dccd0,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x447552){const _0x1c9891=a124_0x2e3c3b;if(!_0x447552['needsUpgrade'])return;const _0x5a9d94=_0x1c9891(0x1d3),_0x17c333=_0x1c9891(0x1ee),_0xcddc27=_0x1c9891(0x1e3),_0x558b44=_0x447552[_0x1c9891(0x1d9)]||'@lovrabet/sdk',_0x10c7f9=_0x447552[_0x1c9891(0x1ea)]||_0x447552[_0x1c9891(0x1e7)],_0xf9dac4=_0x1c9891(0x1ef)+_0x558b44+'@'+(_0x10c7f9||'latest');console['log'](),console[_0x1c9891(0x1e2)](''+_0x5a9d94+_0xcddc27+_0x1c9891(0x1ec)+_0x17c333),console[_0x1c9891(0x1e2)](_0x5a9d94+'\x20\x20\x20Current\x20version:\x20'+_0x558b44+'@'+_0x447552['version']+_0x17c333),console[_0x1c9891(0x1e2)](_0x5a9d94+_0x1c9891(0x1e0)+_0x10c7f9+_0x17c333),console['log'](_0x5a9d94+_0x1c9891(0x1e5)+_0xf9dac4+_0x17c333),console['log']();}function a124_0x5d3d(){const _0x3a5b78=['\x1b[1m','4641288UZXkVT','\x20\x20\x20Upgrade\x20command:\x20','node','minVersion','parse','dependencies','stableVersion','existsSync','↪\x20SDK\x20update\x20available','@lovrabet/sdk','\x1b[0m','npm\x20install\x20','10pnoYze','1693432nASxBX','package.json','coerce','readFileSync','devDependencies','\x1b[33m','1.2.0','sdk','10888jMBlNm','join','utf8','packageName','37932TBphOE','7331737ErBvdD','187BjyvLn','test','9jXlrpk','1259214ZBYyrt','\x20\x20\x20Stable\x20version:\x20','41045270yhcFOK','log'];a124_0x5d3d=function(){return _0x3a5b78;};return a124_0x5d3d();}
1
+ const a125_0x1d05e3=a125_0x185f;(function(_0x467a34,_0x268c4f){const _0x5632db=a125_0x185f,_0xff389a=_0x467a34();while(!![]){try{const _0x251110=parseInt(_0x5632db(0x122))/0x1+-parseInt(_0x5632db(0x133))/0x2+-parseInt(_0x5632db(0x138))/0x3+parseInt(_0x5632db(0x12e))/0x4*(parseInt(_0x5632db(0x141))/0x5)+parseInt(_0x5632db(0x13d))/0x6+parseInt(_0x5632db(0x13b))/0x7+-parseInt(_0x5632db(0x12c))/0x8;if(_0x251110===_0x268c4f)break;else _0xff389a['push'](_0xff389a['shift']());}catch(_0x432fe9){_0xff389a['push'](_0xff389a['shift']());}}}(a125_0xb6c7,0x5ca8c));import a125_0x2087de from'node:fs';import a125_0x5c20c5 from'node:path';import a125_0x90c97a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a125_0xb6c7(){const _0x75800c=['package.json','\x1b[0m','1.2.0','dependencies','test','\x1b[1m','6544880RMnNZj','@lovrabet/sdk','444172lXmlex','needsUpgrade','sdk','utf-8','minVersion','605154SKzhcT','\x1b[33m','node','log','\x20\x20\x20Upgrade\x20command:\x20','1314654QMNUTf','\x20\x20\x20Stable\x20version:\x20','latest','4824512Dspeom','packageName','1684650IkUZVH','coerce','↪\x20SDK\x20update\x20available','stableVersion','10wUGeGd','version','readFileSync','devDependencies','parse','746360ibaEdz','existsSync','some','join'];a125_0xb6c7=function(){return _0x75800c;};return a125_0xb6c7();}const FALLBACK_MIN_SDK_VERSION=a125_0x1d05e3(0x128);function isNonNumericVersion(_0x33a2f6){const _0x5a4869=a125_0x1d05e3,_0x185f97=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x185f97[_0x5a4869(0x124)](_0x10cb94=>_0x10cb94[_0x5a4869(0x12a)](_0x33a2f6));}function getInstalledVersion(_0x229cf7,_0x59ca71){const _0x13d013=a125_0x1d05e3;try{const _0x453e27=a125_0x5c20c5[_0x13d013(0x125)](_0x229cf7,'node_modules',_0x59ca71,_0x13d013(0x126));if(a125_0x2087de[_0x13d013(0x123)](_0x453e27)){const _0x137549=JSON[_0x13d013(0x145)](a125_0x2087de[_0x13d013(0x143)](_0x453e27,_0x13d013(0x131)));return _0x137549[_0x13d013(0x142)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x82e85b=a125_0x1d05e3;try{const _0x412d41=await getCdnConfig();return _0x412d41?.[_0x82e85b(0x130)]?.['node']?.[_0x82e85b(0x140)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x269fb6=a125_0x1d05e3;try{const _0x5e3c6a=await getCdnConfig();return _0x5e3c6a?.[_0x269fb6(0x130)]?.[_0x269fb6(0x135)]?.[_0x269fb6(0x13c)]||'@lovrabet/sdk';}catch{return _0x269fb6(0x12d);}}export async function checkSdkVersion(_0x160dbc){const _0x5b3f6e=a125_0x1d05e3,_0x175d54=a125_0x5c20c5[_0x5b3f6e(0x125)](_0x160dbc,_0x5b3f6e(0x126)),[_0x58ae19,_0x2a5c83]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x1f3709=_0x58ae19||FALLBACK_MIN_SDK_VERSION;if(!a125_0x2087de[_0x5b3f6e(0x123)](_0x175d54))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};try{const _0x58c197=JSON[_0x5b3f6e(0x145)](a125_0x2087de[_0x5b3f6e(0x143)](_0x175d54,'utf8')),_0x451ca2=_0x58c197['dependencies']||{},_0x3b8540=_0x58c197[_0x5b3f6e(0x144)]||{},_0x3507f9=_0x451ca2[_0x2a5c83]||_0x3b8540[_0x2a5c83];if(!_0x3507f9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};let _0x567093=getInstalledVersion(_0x160dbc,_0x2a5c83);!_0x567093&&(_0x567093=_0x3507f9);if(isNonNumericVersion(_0x3507f9))return{'installed':!![],'version':_0x567093,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};const _0x24591c=a125_0x90c97a[_0x5b3f6e(0x13e)](_0x567093),_0x570af8=a125_0x90c97a[_0x5b3f6e(0x13e)](_0x1f3709),_0x421ce8=_0x24591c&&_0x570af8?a125_0x90c97a['lt'](_0x24591c,_0x570af8):![];return{'installed':!![],'version':_0x567093,'needsUpgrade':_0x421ce8,'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1f3709,'packageName':_0x2a5c83,'stableVersion':_0x58ae19};}}export function checkSdkVersionSync(_0xc8a393){const _0x36fabd=a125_0x1d05e3,_0x14943c=a125_0x5c20c5[_0x36fabd(0x125)](_0xc8a393,'package.json'),_0x3707c7='@lovrabet/sdk';if(!a125_0x2087de['existsSync'](_0x14943c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};try{const _0x34d4bc=JSON['parse'](a125_0x2087de['readFileSync'](_0x14943c,'utf8')),_0x111a51=_0x34d4bc[_0x36fabd(0x129)]||{},_0x1e50e1=_0x34d4bc['devDependencies']||{},_0x5d2aee=_0x111a51[_0x3707c7]||_0x1e50e1[_0x3707c7];if(!_0x5d2aee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};let _0x4a4143=getInstalledVersion(_0xc8a393,_0x3707c7);!_0x4a4143&&(_0x4a4143=_0x5d2aee);if(isNonNumericVersion(_0x5d2aee))return{'installed':!![],'version':_0x4a4143,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};const _0x3c8a9e=a125_0x90c97a[_0x36fabd(0x13e)](_0x4a4143),_0x560645=_0x3c8a9e?a125_0x90c97a['lt'](_0x3c8a9e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4a4143,'needsUpgrade':_0x560645,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3707c7,'stableVersion':null};}}function a125_0x185f(_0x340573,_0x11025d){_0x340573=_0x340573-0x122;const _0xb6c7b0=a125_0xb6c7();let _0x185fcb=_0xb6c7b0[_0x340573];return _0x185fcb;}export function printSdkUpgradeWarning(_0x320520){const _0x337591=a125_0x1d05e3;if(!_0x320520[_0x337591(0x12f)])return;const _0x560c94=_0x337591(0x134),_0x3856c7=_0x337591(0x127),_0x4a1e5b=_0x337591(0x12b),_0x55207c=_0x320520[_0x337591(0x13c)]||_0x337591(0x12d),_0x49ff11=_0x320520['stableVersion']||_0x320520[_0x337591(0x132)],_0x58dc28='npm\x20install\x20'+_0x55207c+'@'+(_0x49ff11||_0x337591(0x13a));console[_0x337591(0x136)](),console['log'](''+_0x560c94+_0x4a1e5b+_0x337591(0x13f)+_0x3856c7),console[_0x337591(0x136)](_0x560c94+'\x20\x20\x20Current\x20version:\x20'+_0x55207c+'@'+_0x320520['version']+_0x3856c7),console[_0x337591(0x136)](_0x560c94+_0x337591(0x139)+_0x49ff11+_0x3856c7),console[_0x337591(0x136)](_0x560c94+_0x337591(0x137)+_0x58dc28+_0x3856c7),console[_0x337591(0x136)]();}
@@ -1 +1 @@
1
- (function(_0x5ca064,_0x58c15e){const _0x3ec4fd=a125_0x42ea,_0x25e5dc=_0x5ca064();while(!![]){try{const _0x5b959f=-parseInt(_0x3ec4fd(0x208))/0x1*(parseInt(_0x3ec4fd(0x1ff))/0x2)+-parseInt(_0x3ec4fd(0x206))/0x3+-parseInt(_0x3ec4fd(0x1f6))/0x4*(-parseInt(_0x3ec4fd(0x201))/0x5)+parseInt(_0x3ec4fd(0x207))/0x6*(parseInt(_0x3ec4fd(0x1f2))/0x7)+-parseInt(_0x3ec4fd(0x1f8))/0x8+-parseInt(_0x3ec4fd(0x1fb))/0x9+-parseInt(_0x3ec4fd(0x209))/0xa*(-parseInt(_0x3ec4fd(0x203))/0xb);if(_0x5b959f===_0x58c15e)break;else _0x25e5dc['push'](_0x25e5dc['shift']());}catch(_0x37a3e8){_0x25e5dc['push'](_0x25e5dc['shift']());}}}(a125_0x2875,0x5c203));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a125_0x42ea(_0x239942,_0x28ecc3){_0x239942=_0x239942-0x1f1;const _0x287535=a125_0x2875();let _0x42eaab=_0x287535[_0x239942];return _0x42eaab;}function a125_0x2875(){const _0x1dca42=['1.0.0','285859jKqdTZ','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','some','4tztNua','utf-8','4622088YgQbUe','\x20\x20\x20Stable\x20version:\x20','package.json','6051591URExqi','stableVersion','@latest','../..','12458oYeyRQ','currentVersion','1799915kCkCsF','log','2339942JWiSbE','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','1528500IWnOsK','30fXkSke','89XzePIc','100CzIZCm','\x1b[1m','needsUpgrade'];a125_0x2875=function(){return _0x1dca42;};return a125_0x2875();}import a125_0x5a4fcf from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x3ba446=a125_0x42ea;try{const _0x21bc25=fileURLToPath(import.meta.url),_0x18f0a4=resolve(dirname(_0x21bc25),_0x3ba446(0x1fe)),_0x34c12e=resolve(_0x18f0a4,_0x3ba446(0x1fa)),_0x3b2996=JSON['parse'](readFileSync(_0x34c12e,_0x3ba446(0x1f7)));return _0x3b2996['version']||'1.0.0';}catch{return _0x3ba446(0x1f1);}}function isNonNumericVersion(_0x49c0bf){const _0x64e786=a125_0x42ea,_0xd6ca93=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0xd6ca93[_0x64e786(0x1f5)](_0x1008fb=>_0x1008fb['test'](_0x49c0bf));}export async function checkCliVersion(){const _0x4943df=a125_0x42ea,_0x23e211=getCurrentCliVersion(),_0xc0e07a=await getCdnConfig(),_0x8c7b5f=_0xc0e07a?.['cli']?.[_0x4943df(0x1fc)]||null;let _0xf80d50=![];if(_0x8c7b5f)try{const _0x3a4d02=a125_0x5a4fcf[_0x4943df(0x1f4)](_0x23e211),_0x3a28cb=a125_0x5a4fcf[_0x4943df(0x1f4)](_0x8c7b5f);_0x3a4d02&&_0x3a28cb&&(_0xf80d50=a125_0x5a4fcf['lt'](_0x3a4d02,_0x3a28cb));}catch{_0xf80d50=![];}return{'currentVersion':_0x23e211,'stableVersion':_0x8c7b5f,'needsUpgrade':_0xf80d50,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x35d789){const _0x3c5151=a125_0x42ea;if(!_0x35d789[_0x3c5151(0x20b)])return;const _0x12dc04=_0x3c5151(0x205),_0x5c837d='\x1b[0m',_0x2001c6=_0x3c5151(0x20a),_0x84d8f7='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x3c5151(0x1fd);console[_0x3c5151(0x202)](),console['log'](''+_0x12dc04+_0x2001c6+'↪\x20New\x20version\x20available'+_0x5c837d),console[_0x3c5151(0x202)](_0x12dc04+_0x3c5151(0x1f3)+_0x35d789[_0x3c5151(0x200)]+_0x5c837d),console[_0x3c5151(0x202)](_0x12dc04+_0x3c5151(0x1f9)+_0x35d789[_0x3c5151(0x1fc)]+_0x5c837d),console[_0x3c5151(0x202)](_0x12dc04+_0x3c5151(0x204)+_0x84d8f7+_0x5c837d),console[_0x3c5151(0x202)]();}
1
+ (function(_0x2686a8,_0x1237dd){const _0xe7c735=a126_0x338c,_0x5be3a0=_0x2686a8();while(!![]){try{const _0x51a0b4=parseInt(_0xe7c735(0x1d7))/0x1+-parseInt(_0xe7c735(0x1d0))/0x2+-parseInt(_0xe7c735(0x1dc))/0x3+-parseInt(_0xe7c735(0x1e2))/0x4*(parseInt(_0xe7c735(0x1dd))/0x5)+-parseInt(_0xe7c735(0x1db))/0x6+-parseInt(_0xe7c735(0x1de))/0x7+parseInt(_0xe7c735(0x1d9))/0x8;if(_0x51a0b4===_0x1237dd)break;else _0x5be3a0['push'](_0x5be3a0['shift']());}catch(_0x91ad92){_0x5be3a0['push'](_0x5be3a0['shift']());}}}(a126_0xbadf,0x30785));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a126_0x2bae0c from'semver';function a126_0x338c(_0x59866f,_0x16e230){_0x59866f=_0x59866f-0x1cb;const _0xbadf2e=a126_0xbadf();let _0x338cca=_0xbadf2e[_0x59866f];return _0x338cca;}function a126_0xbadf(){const _0x3438d0=['../..','\x1b[1m','594344gxYlru','\x20\x20\x20Upgrade\x20command:\x20','coerce','↪\x20New\x20version\x20available','log','stableVersion','\x1b[0m','193088ikoyjQ','needsUpgrade','10117824tWXDHF','\x20\x20\x20Stable\x20version:\x20','2184162VDbfjd','448305aPaoDI','435hABogJ','1351301WzbmLP','\x1b[33m','cli','test','11752KBLgWX','package.json','version','1.0.0'];a126_0xbadf=function(){return _0x3438d0;};return a126_0xbadf();}import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x50535f=a126_0x338c;try{const _0x40566e=fileURLToPath(import.meta.url),_0x1a1527=resolve(dirname(_0x40566e),_0x50535f(0x1ce)),_0x7d71a0=resolve(_0x1a1527,_0x50535f(0x1cb)),_0x38b61b=JSON['parse'](readFileSync(_0x7d71a0,'utf-8'));return _0x38b61b[_0x50535f(0x1cc)]||_0x50535f(0x1cd);}catch{return'1.0.0';}}function isNonNumericVersion(_0xa4135a){const _0x21286b=a126_0x338c,_0x2ef3e3=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x2ef3e3['some'](_0x435ecf=>_0x435ecf[_0x21286b(0x1e1)](_0xa4135a));}export async function checkCliVersion(){const _0x20f930=a126_0x338c,_0x12e01f=getCurrentCliVersion(),_0x437343=await getCdnConfig(),_0x4e9c00=_0x437343?.[_0x20f930(0x1e0)]?.[_0x20f930(0x1d5)]||null;let _0x27b5ee=![];if(_0x4e9c00)try{const _0x6e1666=a126_0x2bae0c[_0x20f930(0x1d2)](_0x12e01f),_0x3eda3c=a126_0x2bae0c[_0x20f930(0x1d2)](_0x4e9c00);_0x6e1666&&_0x3eda3c&&(_0x27b5ee=a126_0x2bae0c['lt'](_0x6e1666,_0x3eda3c));}catch{_0x27b5ee=![];}return{'currentVersion':_0x12e01f,'stableVersion':_0x4e9c00,'needsUpgrade':_0x27b5ee,'isPreRelease':![]};}export function printCliUpgradeWarning(_0xb76afd){const _0x25e047=a126_0x338c;if(!_0xb76afd[_0x25e047(0x1d8)])return;const _0x524c54=_0x25e047(0x1df),_0x23e04e=_0x25e047(0x1d6),_0x3a2d34=_0x25e047(0x1cf),_0x2195b2='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest';console['log'](),console['log'](''+_0x524c54+_0x3a2d34+_0x25e047(0x1d3)+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xb76afd['currentVersion']+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+_0x25e047(0x1da)+_0xb76afd[_0x25e047(0x1d5)]+_0x23e04e),console[_0x25e047(0x1d4)](_0x524c54+_0x25e047(0x1d1)+_0x2195b2+_0x23e04e),console[_0x25e047(0x1d4)]();}
@@ -1 +1 @@
1
- (function(_0x50c549,_0x173ce0){const _0x1a5974=a126_0x4f47,_0x1f43c1=_0x50c549();while(!![]){try{const _0x14fa74=-parseInt(_0x1a5974(0x80))/0x1*(-parseInt(_0x1a5974(0x8e))/0x2)+parseInt(_0x1a5974(0x83))/0x3*(parseInt(_0x1a5974(0x88))/0x4)+parseInt(_0x1a5974(0x82))/0x5+parseInt(_0x1a5974(0x7b))/0x6+parseInt(_0x1a5974(0x7e))/0x7+parseInt(_0x1a5974(0x7f))/0x8*(-parseInt(_0x1a5974(0x79))/0x9)+-parseInt(_0x1a5974(0x86))/0xa*(parseInt(_0x1a5974(0x8b))/0xb);if(_0x14fa74===_0x173ce0)break;else _0x1f43c1['push'](_0x1f43c1['shift']());}catch(_0x1e18a6){_0x1f43c1['push'](_0x1f43c1['shift']());}}}(a126_0x2e6c,0x28bdb));import{initEnv}from'../constant/env.js';function a126_0x4f47(_0x35ae3a,_0x1a28bd){_0x35ae3a=_0x35ae3a-0x74;const _0x2e6cd3=a126_0x2e6c();let _0x4f47f9=_0x2e6cd3[_0x35ae3a];return _0x4f47f9;}function a126_0x2e6c(){const _0x5a5bee=['cookie','72TmWhAm','object','1178406XwtsWD','app','length','561113YtwBTD','195544RmZlRp','84496ZElmpq','apiDir','591400HNBYOR','57LpsFgK','entries','defaultApp','761760oKwlmJ','values','7460XXYXrn','appcode','keys','22wNQtja','filter','string','2zABiFw','trim','template_base_url','https://g.lovrabet.com/dist/lovrabet-skill','apps','env','replace'];a126_0x2e6c=function(){return _0x5a5bee;};return a126_0x2e6c();}import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x2c1ac5){const _0x1b0a98=a126_0x4f47,_0x2395a4=readRawConfig(_0x2c1ac5);return _0x2395a4[_0x1b0a98(0x76)]&&typeof _0x2395a4[_0x1b0a98(0x76)]===_0x1b0a98(0x8d)&&initEnv(_0x2395a4[_0x1b0a98(0x76)]),_0x2395a4;}export function getConfigAppCode(){const _0x267e62=a126_0x4f47,_0x2dac4a=readRawConfig();if(_0x2dac4a[_0x267e62(0x75)]&&typeof _0x2dac4a['apps']===_0x267e62(0x7a)){const _0x81e231=_0x2dac4a[_0x267e62(0x85)];if(_0x81e231&&_0x2dac4a[_0x267e62(0x75)][_0x81e231]?.['appcode'])return String(_0x2dac4a[_0x267e62(0x75)][_0x81e231][_0x267e62(0x89)])[_0x267e62(0x8f)]();const _0x488f99=Object[_0x267e62(0x87)](_0x2dac4a['apps'])[0x0];if(_0x488f99?.[_0x267e62(0x89)])return String(_0x488f99[_0x267e62(0x89)])[_0x267e62(0x8f)]();}const _0x8c79fb=_0x2dac4a[_0x267e62(0x89)]||_0x2dac4a[_0x267e62(0x7c)];if(typeof _0x8c79fb!==_0x267e62(0x8d)||_0x8c79fb['trim']()==='')return undefined;return _0x8c79fb['trim']();}export function getMultiAppConfigs(){const _0x479968=a126_0x4f47,_0x3762ea=readRawConfig(),_0x3d34d2=_0x3762ea['apps'];if(!_0x3d34d2||typeof _0x3d34d2!==_0x479968(0x7a)||Object[_0x479968(0x8a)](_0x3d34d2)[_0x479968(0x7d)]===0x0)return null;const _0x380fcc=_0x3762ea['defaultApp'];return Object[_0x479968(0x84)](_0x3d34d2)['map'](([_0x579771,_0x3d8d46])=>({'name':_0x579771,'appcode':_0x3d8d46?.[_0x479968(0x89)]||'','isDefault':_0x579771===_0x380fcc,'env':_0x3d8d46?.[_0x479968(0x76)],'apiDir':_0x3d8d46?.[_0x479968(0x81)],'cookie':_0x3d8d46?.[_0x479968(0x78)]||undefined}))[_0x479968(0x8c)](_0x24ba73=>_0x24ba73[_0x479968(0x89)]);}export function getTemplateBaseUrl(){const _0x371a77=a126_0x4f47,_0x5f3a58=readRawConfig();if(_0x5f3a58[_0x371a77(0x90)]&&typeof _0x5f3a58['template_base_url']==='string')return _0x5f3a58[_0x371a77(0x90)][_0x371a77(0x77)](/\/$/,'');return _0x371a77(0x74);}
1
+ const a127_0x3fd960=a127_0x74fb;(function(_0x4fa30f,_0x48e6a8){const _0xe0ba84=a127_0x74fb,_0x5a5400=_0x4fa30f();while(!![]){try{const _0x33ca32=parseInt(_0xe0ba84(0x1d9))/0x1+parseInt(_0xe0ba84(0x1cb))/0x2*(-parseInt(_0xe0ba84(0x1de))/0x3)+parseInt(_0xe0ba84(0x1d3))/0x4+-parseInt(_0xe0ba84(0x1ca))/0x5+-parseInt(_0xe0ba84(0x1c9))/0x6+-parseInt(_0xe0ba84(0x1c5))/0x7*(-parseInt(_0xe0ba84(0x1db))/0x8)+parseInt(_0xe0ba84(0x1dc))/0x9;if(_0x33ca32===_0x48e6a8)break;else _0x5a5400['push'](_0x5a5400['shift']());}catch(_0x1192dd){_0x5a5400['push'](_0x5a5400['shift']());}}}(a127_0x1312,0x95b56));function a127_0x1312(){const _0x378f58=['object','entries','replace','3234512ydqikJ','trim','template_base_url','cookie','appcode','apps','874417JylcAV','length','96FXnuNY','1820016hJikOD','app','105177qUxLAN','project','merged','359310XMJeBi','env','string','map','5798676gGgcyC','2329050EYmuWn','26BuAIvM','https://g.lovrabet.com/dist/lovrabet-skill','defaultApp','projectConfig','values'];a127_0x1312=function(){return _0x378f58;};return a127_0x1312();}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(_0xd9d950){const _0x4225c1=a127_0x74fb,_0x63f6f0=readRawConfig(_0xd9d950);return _0x63f6f0[_0x4225c1(0x1c6)]&&typeof _0x63f6f0['env']===_0x4225c1(0x1c7)&&initEnv(_0x63f6f0[_0x4225c1(0x1c6)]),_0x63f6f0;}export function getConfigAppCode(){const _0x29ae69=a127_0x74fb,_0x363b7c=readRawConfig();if(_0x363b7c['apps']&&typeof _0x363b7c[_0x29ae69(0x1d8)]===_0x29ae69(0x1d0)){const _0x17dea2=_0x363b7c['defaultApp'];if(_0x17dea2&&_0x363b7c[_0x29ae69(0x1d8)][_0x17dea2]?.[_0x29ae69(0x1d7)])return String(_0x363b7c['apps'][_0x17dea2][_0x29ae69(0x1d7)])[_0x29ae69(0x1d4)]();const _0x48db34=Object[_0x29ae69(0x1cf)](_0x363b7c[_0x29ae69(0x1d8)])[0x0];if(_0x48db34?.[_0x29ae69(0x1d7)])return String(_0x48db34[_0x29ae69(0x1d7)])[_0x29ae69(0x1d4)]();}const _0x49cff6=_0x363b7c['appcode']||_0x363b7c[_0x29ae69(0x1dd)];if(typeof _0x49cff6!==_0x29ae69(0x1c7)||_0x49cff6[_0x29ae69(0x1d4)]()==='')return undefined;return _0x49cff6['trim']();}function a127_0x74fb(_0x112b37,_0x142ca0){_0x112b37=_0x112b37-0x1c5;const _0x1312be=a127_0x1312();let _0x74fbea=_0x1312be[_0x112b37];return _0x74fbea;}export function getMultiAppConfigs(_0x5f17e0=a127_0x3fd960(0x1df)){const _0x2062c4=a127_0x3fd960,_0x48e5b2=_0x5f17e0===_0x2062c4(0x1e0)?readRawConfig():loadRawConfigLayers()[_0x2062c4(0x1ce)],_0x3fa5a0=_0x48e5b2[_0x2062c4(0x1d8)];if(!_0x3fa5a0||typeof _0x3fa5a0!==_0x2062c4(0x1d0)||Object['keys'](_0x3fa5a0)[_0x2062c4(0x1da)]===0x0)return null;const _0x27d159=_0x48e5b2[_0x2062c4(0x1cd)];return Object[_0x2062c4(0x1d1)](_0x3fa5a0)[_0x2062c4(0x1c8)](([_0x156296,_0x30cde9])=>({'name':_0x156296,'appcode':_0x30cde9?.[_0x2062c4(0x1d7)]||'','isDefault':_0x156296===_0x27d159,'env':_0x30cde9?.['env'],'apiDir':_0x30cde9?.['apiDir'],'cookie':_0x30cde9?.[_0x2062c4(0x1d6)]||undefined}))['filter'](_0x39f1b1=>_0x39f1b1[_0x2062c4(0x1d7)]);}export function getTemplateBaseUrl(){const _0x1c3819=a127_0x3fd960,_0x255d3f=readRawConfig();if(_0x255d3f[_0x1c3819(0x1d5)]&&typeof _0x255d3f[_0x1c3819(0x1d5)]==='string')return _0x255d3f[_0x1c3819(0x1d5)][_0x1c3819(0x1d2)](/\/$/,'');return _0x1c3819(0x1cc);}
@@ -1 +1 @@
1
- (function(_0xfcd789,_0x1a023d){const _0xcc3ca7=a127_0x4f33,_0xda3cc2=_0xfcd789();while(!![]){try{const _0x55301d=parseInt(_0xcc3ca7(0x8e))/0x1*(-parseInt(_0xcc3ca7(0x95))/0x2)+-parseInt(_0xcc3ca7(0x92))/0x3+-parseInt(_0xcc3ca7(0x99))/0x4+parseInt(_0xcc3ca7(0x93))/0x5*(-parseInt(_0xcc3ca7(0x8d))/0x6)+-parseInt(_0xcc3ca7(0x97))/0x7*(parseInt(_0xcc3ca7(0x8b))/0x8)+parseInt(_0xcc3ca7(0x8c))/0x9*(-parseInt(_0xcc3ca7(0x96))/0xa)+parseInt(_0xcc3ca7(0x98))/0xb;if(_0x55301d===_0x1a023d)break;else _0xda3cc2['push'](_0xda3cc2['shift']());}catch(_0x24a0b7){_0xda3cc2['push'](_0xda3cc2['shift']());}}}(a127_0x1c4f,0xdfc3d));import a127_0x1f8056 from'node:path';function a127_0x1c4f(){const _0x1307d9=['344560uWsMsm','copyFileSync','4kdBKBR','7224800kbbnNX','225645iSriOF','74304659sPFNXD','4385876gTMWmt','name','isDirectory','296NbdWyR','18zFWDlo','24APgrkY','515133GjdMOi','readdirSync','join','复制目录时出错:','2395170qFieyX'];a127_0x1c4f=function(){return _0x1307d9;};return a127_0x1c4f();}import a127_0x2487c3 from'node:fs';function a127_0x4f33(_0xe5713f,_0xdcb6cc){_0xe5713f=_0xe5713f-0x8b;const _0x1c4f76=a127_0x1c4f();let _0x4f3366=_0x1c4f76[_0xe5713f];return _0x4f3366;}export async function copyDirectory(_0x2b480e,_0x1e112d){const _0x3d09a6=a127_0x4f33;try{const _0xbc0db6=a127_0x2487c3[_0x3d09a6(0x8f)](_0x2b480e,{'withFileTypes':!![]});a127_0x2487c3['mkdirSync'](_0x1e112d,{'recursive':!![]});for(const _0xeae5ef of _0xbc0db6){const _0x2d4e6a=a127_0x1f8056[_0x3d09a6(0x90)](_0x2b480e,_0xeae5ef['name']),_0x2fabe3=a127_0x1f8056[_0x3d09a6(0x90)](_0x1e112d,_0xeae5ef[_0x3d09a6(0x9a)]);_0xeae5ef[_0x3d09a6(0x9b)]()?await copyDirectory(_0x2d4e6a,_0x2fabe3):a127_0x2487c3[_0x3d09a6(0x94)](_0x2d4e6a,_0x2fabe3);}}catch(_0x897770){console['error'](_0x3d09a6(0x91),_0x897770);}}
1
+ (function(_0x34891a,_0x1dea50){const _0xea7c23=a128_0x3b94,_0x276ca1=_0x34891a();while(!![]){try{const _0xa4089f=parseInt(_0xea7c23(0xd1))/0x1+parseInt(_0xea7c23(0xd3))/0x2*(-parseInt(_0xea7c23(0xd4))/0x3)+parseInt(_0xea7c23(0xcd))/0x4*(parseInt(_0xea7c23(0xd2))/0x5)+parseInt(_0xea7c23(0xd5))/0x6*(parseInt(_0xea7c23(0xd7))/0x7)+parseInt(_0xea7c23(0xd9))/0x8+-parseInt(_0xea7c23(0xd0))/0x9+-parseInt(_0xea7c23(0xce))/0xa*(parseInt(_0xea7c23(0xdb))/0xb);if(_0xa4089f===_0x1dea50)break;else _0x276ca1['push'](_0x276ca1['shift']());}catch(_0x3b1510){_0x276ca1['push'](_0x276ca1['shift']());}}}(a128_0x25ce,0x80975));import a128_0x21552b from'node:path';function a128_0x25ce(){const _0x461058=['4569chyMRz','42JkAjVn','name','148386TOlFrg','isDirectory','8094472UJXnHm','复制目录时出错:','11pkvHgJ','copyFileSync','readdirSync','4SEOcld','14082370cHANSq','join','765108qEYaSu','776889MNSBXW','589515oPHRyj','46DAxWTs'];a128_0x25ce=function(){return _0x461058;};return a128_0x25ce();}import a128_0x4d4ea2 from'node:fs';function a128_0x3b94(_0x16c941,_0xa404cd){_0x16c941=_0x16c941-0xcb;const _0x25ce84=a128_0x25ce();let _0x3b943f=_0x25ce84[_0x16c941];return _0x3b943f;}export async function copyDirectory(_0x3c823e,_0x4fee4e){const _0x5256c7=a128_0x3b94;try{const _0x2d039d=a128_0x4d4ea2[_0x5256c7(0xcc)](_0x3c823e,{'withFileTypes':!![]});a128_0x4d4ea2['mkdirSync'](_0x4fee4e,{'recursive':!![]});for(const _0x294979 of _0x2d039d){const _0x4e7052=a128_0x21552b[_0x5256c7(0xcf)](_0x3c823e,_0x294979[_0x5256c7(0xd6)]),_0x1f3531=a128_0x21552b[_0x5256c7(0xcf)](_0x4fee4e,_0x294979['name']);_0x294979[_0x5256c7(0xd8)]()?await copyDirectory(_0x4e7052,_0x1f3531):a128_0x4d4ea2[_0x5256c7(0xcb)](_0x4e7052,_0x1f3531);}}catch(_0x3bb6c1){console['error'](_0x5256c7(0xda),_0x3bb6c1);}}
@@ -1 +1 @@
1
- (function(_0xffa258,_0x4b1850){const _0x16a6e8=a128_0x3a36,_0x3909cd=_0xffa258();while(!![]){try{const _0x36f30b=parseInt(_0x16a6e8(0x178))/0x1+-parseInt(_0x16a6e8(0x179))/0x2*(parseInt(_0x16a6e8(0x174))/0x3)+parseInt(_0x16a6e8(0x173))/0x4*(-parseInt(_0x16a6e8(0x170))/0x5)+parseInt(_0x16a6e8(0x171))/0x6+parseInt(_0x16a6e8(0x176))/0x7*(-parseInt(_0x16a6e8(0x172))/0x8)+-parseInt(_0x16a6e8(0x177))/0x9+parseInt(_0x16a6e8(0x175))/0xa;if(_0x36f30b===_0x4b1850)break;else _0x3909cd['push'](_0x3909cd['shift']());}catch(_0x4bb667){_0x3909cd['push'](_0x3909cd['shift']());}}}(a128_0x2fa1,0x1cc02));function a128_0x3a36(_0x555632,_0x304d80){_0x555632=_0x555632-0x16f;const _0x2fa167=a128_0x2fa1();let _0x3a367a=_0x2fa167[_0x555632];return _0x3a367a;}function a128_0x2fa1(){const _0x3d5bb1=['2960eEVInl','539496vLIMMt','408376idQqUb','1584AoFOLS','6OPfodl','4124020AmhaeE','7yAOPWp','1564677zyfEoI','209330RytswZ','134554zlMmpF','isDirectory'];a128_0x2fa1=function(){return _0x3d5bb1;};return a128_0x2fa1();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x177c49,_0x4f86af){const _0x4c71f4=a128_0x3a36,_0x26735b=statSync(_0x177c49);if(_0x26735b[_0x4c71f4(0x16f)]()){!existsSync(_0x4f86af)&&mkdirSync(_0x4f86af,{'recursive':!![]});const _0x117d60=readdirSync(_0x177c49);for(const _0x3f5ed3 of _0x117d60){await copyDir(join(_0x177c49,_0x3f5ed3),join(_0x4f86af,_0x3f5ed3));}}else copyFileSync(_0x177c49,_0x4f86af);}export function ensureDir(_0x25b5f2){!existsSync(_0x25b5f2)&&mkdirSync(_0x25b5f2,{'recursive':!![]});}export function pathExists(_0x752782){return existsSync(_0x752782);}
1
+ (function(_0xff76fb,_0x377a64){const _0x38206c=a129_0x7704,_0x2e3f3d=_0xff76fb();while(!![]){try{const _0x4289ad=parseInt(_0x38206c(0x70))/0x1*(parseInt(_0x38206c(0x76))/0x2)+parseInt(_0x38206c(0x72))/0x3+-parseInt(_0x38206c(0x6b))/0x4+-parseInt(_0x38206c(0x73))/0x5*(-parseInt(_0x38206c(0x6e))/0x6)+-parseInt(_0x38206c(0x75))/0x7*(parseInt(_0x38206c(0x6d))/0x8)+parseInt(_0x38206c(0x6c))/0x9+-parseInt(_0x38206c(0x74))/0xa*(parseInt(_0x38206c(0x71))/0xb);if(_0x4289ad===_0x377a64)break;else _0x2e3f3d['push'](_0x2e3f3d['shift']());}catch(_0xf56df7){_0x2e3f3d['push'](_0x2e3f3d['shift']());}}}(a129_0x2760,0x99c76));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a129_0x7704(_0x4aea40,_0x2e3cc7){_0x4aea40=_0x4aea40-0x6b;const _0x27602a=a129_0x2760();let _0x770412=_0x27602a[_0x4aea40];return _0x770412;}import{join}from'node:path';export async function copyDir(_0x402105,_0x4d8c6e){const _0x106db7=a129_0x7704,_0x789be3=statSync(_0x402105);if(_0x789be3[_0x106db7(0x6f)]()){!existsSync(_0x4d8c6e)&&mkdirSync(_0x4d8c6e,{'recursive':!![]});const _0x32aca3=readdirSync(_0x402105);for(const _0x1a7020 of _0x32aca3){await copyDir(join(_0x402105,_0x1a7020),join(_0x4d8c6e,_0x1a7020));}}else copyFileSync(_0x402105,_0x4d8c6e);}export function ensureDir(_0x5356b3){!existsSync(_0x5356b3)&&mkdirSync(_0x5356b3,{'recursive':!![]});}function a129_0x2760(){const _0x345ecc=['isDirectory','43hxFmas','902EwiBYo','2532405PYyWQo','5ksSxXt','176630mDQqDN','63pCjxnN','26758ygUgaY','1140776BdTJHn','7720884gmYvYp','845336KKxmfu','6222798egGcfh'];a129_0x2760=function(){return _0x345ecc;};return a129_0x2760();}export function pathExists(_0x31bbf7){return existsSync(_0x31bbf7);}
@@ -1 +1 @@
1
- const a129_0x1bfd6a=a129_0x2e6f;(function(_0x309624,_0x17be81){const _0x335a4a=a129_0x2e6f,_0x28736c=_0x309624();while(!![]){try{const _0x3e09e9=-parseInt(_0x335a4a(0x1a7))/0x1+-parseInt(_0x335a4a(0x19f))/0x2*(-parseInt(_0x335a4a(0x1a6))/0x3)+parseInt(_0x335a4a(0x197))/0x4+-parseInt(_0x335a4a(0x1ad))/0x5*(-parseInt(_0x335a4a(0x1a2))/0x6)+parseInt(_0x335a4a(0x19b))/0x7+-parseInt(_0x335a4a(0x1aa))/0x8*(parseInt(_0x335a4a(0x1a1))/0x9)+parseInt(_0x335a4a(0x1a9))/0xa;if(_0x3e09e9===_0x17be81)break;else _0x28736c['push'](_0x28736c['shift']());}catch(_0x4f76b4){_0x28736c['push'](_0x28736c['shift']());}}}(a129_0x5b9b,0x9835c));import{mkdirSync,writeFileSync}from'node:fs';function a129_0x2e6f(_0x49d767,_0xfe2bbe){_0x49d767=_0x49d767-0x193;const _0x5b9b86=a129_0x5b9b();let _0x2e6f5d=_0x5b9b86[_0x49d767];return _0x2e6f5d;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x138886=a129_0x2e6f,_0x5a8be6=getTemplateBaseUrl();return _0x5a8be6+_0x138886(0x1a0);}const CACHE_DIR=join(homedir(),a129_0x1bfd6a(0x19e),a129_0x1bfd6a(0x1b1));export async function fetchGuidesFromCDN(){const _0x1c4f70=a129_0x1bfd6a,_0x127853=getGuidesCdnUrl(),_0x5e7ee7=await fetch(_0x127853,{'headers':{'Accept':_0x1c4f70(0x196)}});if(!_0x5e7ee7['ok'])throw new Error(_0x1c4f70(0x1a8)+_0x5e7ee7['status']+'\x20'+_0x5e7ee7['statusText']);const _0x40798e=await _0x5e7ee7['json']();if(!_0x40798e[_0x1c4f70(0x1af)]||typeof _0x40798e[_0x1c4f70(0x1af)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x40798e;}export function writeGuidesToProject(_0x1fd16,_0x3d702d,_0x986ef0=a129_0x1bfd6a(0x195),_0x169d22){const _0x22b16c=a129_0x1bfd6a,_0x108554=join(_0x3d702d,_0x986ef0);mkdirSync(_0x108554,{'recursive':!![]});for(const [_0x3d3d36,_0x342a83]of Object['entries'](_0x1fd16[_0x22b16c(0x1af)])){let _0x50f2da=_0x342a83['content'];_0x342a83[_0x22b16c(0x1ae)]&&(_0x50f2da=appendUpdateTime(_0x50f2da,_0x342a83['lastUpdated'])),writeFileSync(join(_0x108554,_0x3d3d36+_0x22b16c(0x199)),_0x50f2da,_0x22b16c(0x1a4));}}export function appendUpdateTime(_0x26ab17,_0x380034){const _0x44f03d=a129_0x1bfd6a;return _0x26ab17=_0x26ab17[_0x44f03d(0x1ac)](/\n*>更新时间:.*$/m,''),_0x26ab17[_0x44f03d(0x19c)]()+(_0x44f03d(0x1b0)+_0x380034);}export function getSkillTemplate(_0x431b68){const _0x57ac87=a129_0x1bfd6a;return _0x431b68[_0x57ac87(0x1a5)]?.['content']||'';}export function appendExtendContents(_0x1b525b,_0x463ebc,_0x3737e5){const _0x2a5053=a129_0x1bfd6a,_0x289df8=[];for(const [,_0x36ce24]of Object['entries'](_0x463ebc[_0x2a5053(0x1af)])){_0x36ce24[_0x2a5053(0x198)]&&_0x289df8[_0x2a5053(0x1ab)](_0x36ce24[_0x2a5053(0x198)]['trimEnd']());}if(_0x289df8[_0x2a5053(0x19d)]===0x0)return _0x1b525b;return _0x1b525b[_0x2a5053(0x19c)]()+'\x0a\x0a'+_0x289df8['join']('\x0a\x0a')+'\x0a';}function a129_0x5b9b(){const _0x59897a=['replace','4080UjYZTF','lastUpdated','guides','\x0a\x0a>更新时间:','cache','title','path','entries','.lovrabet/skill/guides','application/json','1456900AFSiwu','extendContent','.md','map','3716748iJeYLQ','trimEnd','length','.lovrabet','144062mgyhZX','/skills/guides.json','237159KgQzBC','66pBjZtE','CDN\x20数据中缺少\x20skillTemplate','utf-8','skillTemplate','3AilklW','1090080rBKoSc','CDN\x20请求失败:\x20','11326010XZzhwL','120PqRwvz','push'];a129_0x5b9b=function(){return _0x59897a;};return a129_0x5b9b();}export function writeSkillFile(_0x4fb256,_0x5bc9fc,_0x48e637){const _0x37ca71=a129_0x1bfd6a,_0xcf9a16=getSkillTemplate(_0x4fb256);if(!_0xcf9a16)throw new Error(_0x37ca71(0x1a3));const _0x46d8bf=dirname(_0x5bc9fc);mkdirSync(_0x46d8bf,{'recursive':!![]});let _0x2c59c6=_0xcf9a16[_0x37ca71(0x1ac)](/\{\{IDE_NAME\}\}/g,_0x48e637);_0x2c59c6=appendExtendContents(_0x2c59c6,_0x4fb256),_0x4fb256['skillTemplate']['lastUpdated']&&(_0x2c59c6=appendUpdateTime(_0x2c59c6,_0x4fb256[_0x37ca71(0x1a5)]['lastUpdated'])),writeFileSync(_0x5bc9fc,_0x2c59c6,'utf-8');}export async function installGuides(_0x5a3f1b){const _0x336f03=a129_0x1bfd6a,_0x2104da=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2104da,_0x5a3f1b),Object['keys'](_0x2104da[_0x336f03(0x1af)])['length'];}export function getGuidesSummary(_0x5d67ad){const _0x2c15fa=a129_0x1bfd6a;return Object[_0x2c15fa(0x194)](_0x5d67ad[_0x2c15fa(0x1af)])[_0x2c15fa(0x19a)](([_0x185202,_0x387814])=>({'key':_0x185202,'title':_0x387814[_0x2c15fa(0x1b2)],'path':_0x387814[_0x2c15fa(0x193)]}));}
1
+ function a130_0x2d89(){const _0x1a3515=['lastUpdated','cache','utf-8','statusText','CDN\x20返回数据格式错误','223811axLdhm','3797lxIKQO','path','json','58655JwBDSh','object','map','title','CDN\x20数据中缺少\x20skillTemplate','.lovrabet','push','.md','replace','11665560kTSemg','extendContent','keys','776301KiGjtY','guides','length','status','skillTemplate','180OuKPWS','entries','trimEnd','.lovrabet/skill/guides','application/json','7336998EZcIia','CDN\x20请求失败:\x20','content','14290530GsMtyM','128cMlFKt','174OxPAQc'];a130_0x2d89=function(){return _0x1a3515;};return a130_0x2d89();}const a130_0x4e0b21=a130_0x540d;(function(_0x369bc4,_0x472c20){const _0x13a5d0=a130_0x540d,_0x1bb1ea=_0x369bc4();while(!![]){try{const _0x21b4d5=-parseInt(_0x13a5d0(0x1e2))/0x1*(-parseInt(_0x13a5d0(0x1f6))/0x2)+parseInt(_0x13a5d0(0x1f1))/0x3+parseInt(_0x13a5d0(0x1ff))/0x4*(parseInt(_0x13a5d0(0x1e5))/0x5)+-parseInt(_0x13a5d0(0x200))/0x6*(parseInt(_0x13a5d0(0x1e1))/0x7)+-parseInt(_0x13a5d0(0x1ee))/0x8+parseInt(_0x13a5d0(0x1fb))/0x9+parseInt(_0x13a5d0(0x1fe))/0xa;if(_0x21b4d5===_0x472c20)break;else _0x1bb1ea['push'](_0x1bb1ea['shift']());}catch(_0x5bf76b){_0x1bb1ea['push'](_0x1bb1ea['shift']());}}}(a130_0x2d89,0xcbcc0));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 _0x3ce04e=getTemplateBaseUrl();return _0x3ce04e+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a130_0x4e0b21(0x1ea),a130_0x4e0b21(0x1dd));export async function fetchGuidesFromCDN(){const _0x38adde=a130_0x4e0b21,_0x5df95f=getGuidesCdnUrl(),_0x11d974=await fetch(_0x5df95f,{'headers':{'Accept':_0x38adde(0x1fa)}});if(!_0x11d974['ok'])throw new Error(_0x38adde(0x1fc)+_0x11d974[_0x38adde(0x1f4)]+'\x20'+_0x11d974[_0x38adde(0x1df)]);const _0x5d8023=await _0x11d974[_0x38adde(0x1e4)]();if(!_0x5d8023[_0x38adde(0x1f2)]||typeof _0x5d8023[_0x38adde(0x1f2)]!==_0x38adde(0x1e6))throw new Error(_0x38adde(0x1e0));return _0x5d8023;}export function writeGuidesToProject(_0x1c0787,_0x530c94,_0x163f7b=a130_0x4e0b21(0x1f9),_0x70cb8b){const _0x5588ff=a130_0x4e0b21,_0x127ed8=join(_0x530c94,_0x163f7b);mkdirSync(_0x127ed8,{'recursive':!![]});for(const [_0xedc588,_0x1fbb8d]of Object[_0x5588ff(0x1f7)](_0x1c0787[_0x5588ff(0x1f2)])){let _0x5a5169=_0x1fbb8d['content'];_0x1fbb8d['lastUpdated']&&(_0x5a5169=appendUpdateTime(_0x5a5169,_0x1fbb8d[_0x5588ff(0x201)])),writeFileSync(join(_0x127ed8,_0xedc588+_0x5588ff(0x1ec)),_0x5a5169,'utf-8');}}export function appendUpdateTime(_0x2bac72,_0x312a21){const _0x124274=a130_0x4e0b21;return _0x2bac72=_0x2bac72[_0x124274(0x1ed)](/\n*>更新时间:.*$/m,''),_0x2bac72['trimEnd']()+('\x0a\x0a>更新时间:'+_0x312a21);}export function getSkillTemplate(_0x38c351){const _0x14fd39=a130_0x4e0b21;return _0x38c351[_0x14fd39(0x1f5)]?.[_0x14fd39(0x1fd)]||'';}export function appendExtendContents(_0x2e7dd8,_0x5ccda4,_0x391b2e){const _0x410287=a130_0x4e0b21,_0x52514d=[];for(const [,_0x12d3ce]of Object['entries'](_0x5ccda4[_0x410287(0x1f2)])){_0x12d3ce[_0x410287(0x1ef)]&&_0x52514d[_0x410287(0x1eb)](_0x12d3ce[_0x410287(0x1ef)]['trimEnd']());}if(_0x52514d['length']===0x0)return _0x2e7dd8;return _0x2e7dd8[_0x410287(0x1f8)]()+'\x0a\x0a'+_0x52514d['join']('\x0a\x0a')+'\x0a';}function a130_0x540d(_0x32c0a7,_0x5c40cd){_0x32c0a7=_0x32c0a7-0x1dd;const _0x2d896f=a130_0x2d89();let _0x540dd9=_0x2d896f[_0x32c0a7];return _0x540dd9;}export function writeSkillFile(_0x533743,_0x2810d1,_0x54a251){const _0x41d0da=a130_0x4e0b21,_0x13fd2f=getSkillTemplate(_0x533743);if(!_0x13fd2f)throw new Error(_0x41d0da(0x1e9));const _0x4fc798=dirname(_0x2810d1);mkdirSync(_0x4fc798,{'recursive':!![]});let _0x2740af=_0x13fd2f[_0x41d0da(0x1ed)](/\{\{IDE_NAME\}\}/g,_0x54a251);_0x2740af=appendExtendContents(_0x2740af,_0x533743),_0x533743[_0x41d0da(0x1f5)][_0x41d0da(0x201)]&&(_0x2740af=appendUpdateTime(_0x2740af,_0x533743['skillTemplate'][_0x41d0da(0x201)])),writeFileSync(_0x2810d1,_0x2740af,_0x41d0da(0x1de));}export async function installGuides(_0x4bc52a){const _0x38b36a=a130_0x4e0b21,_0x510443=await fetchGuidesFromCDN();return writeGuidesToProject(_0x510443,_0x4bc52a),Object[_0x38b36a(0x1f0)](_0x510443['guides'])[_0x38b36a(0x1f3)];}export function getGuidesSummary(_0x38e5f0){const _0x349f87=a130_0x4e0b21;return Object[_0x349f87(0x1f7)](_0x38e5f0['guides'])[_0x349f87(0x1e7)](([_0x5572e5,_0x48f837])=>({'key':_0x5572e5,'title':_0x48f837[_0x349f87(0x1e8)],'path':_0x48f837[_0x349f87(0x1e3)]}));}
@@ -1 +1 @@
1
- function a130_0x2f03(_0x564787,_0x174852){_0x564787=_0x564787-0xfb;const _0x27a6c1=a130_0x27a6();let _0x2f03dd=_0x27a6c1[_0x564787];return _0x2f03dd;}function a130_0x27a6(){const _0xa29663=['url','text','*\x20请求失败,','message','7802118cjTvla','9fbOJSR','1067965RrUpDb','includes','ms\x20后进行第\x20','name','ECONNRESET','945249bUbMwA','log','get','application/json','2649570rIyQKz','33415420yeEgcy','10073032uIqUdo','898GhBstF','Request\x20failed','json','AbortError','abort','6063Rvgeak','headers','4EYpLYg','fetch','ENOTFOUND','\x20次重试...'];a130_0x27a6=function(){return _0xa29663;};return a130_0x27a6();}(function(_0x3dd149,_0x2b078a){const _0x290604=a130_0x2f03,_0x194471=_0x3dd149();while(!![]){try{const _0x8a431a=parseInt(_0x290604(0x103))/0x1+-parseInt(_0x290604(0x10a))/0x2*(parseInt(_0x290604(0x10f))/0x3)+-parseInt(_0x290604(0x111))/0x4*(-parseInt(_0x290604(0xfe))/0x5)+-parseInt(_0x290604(0xfc))/0x6+-parseInt(_0x290604(0x107))/0x7+parseInt(_0x290604(0x109))/0x8*(-parseInt(_0x290604(0xfd))/0x9)+parseInt(_0x290604(0x108))/0xa;if(_0x8a431a===_0x2b078a)break;else _0x194471['push'](_0x194471['shift']());}catch(_0x5aa03d){_0x194471['push'](_0x194471['shift']());}}}(a130_0x27a6,0x9fe73));export async function httpRequest(_0x41c095,_0x286a46={}){const _0x123324=a130_0x2f03,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x286a46;let _0x4a2709=null;for(let _0x833a57=0x0;_0x833a57<=retries;_0x833a57++){try{const _0x37d6ea=new AbortController(),_0x6b71b2=setTimeout(()=>_0x37d6ea[_0x123324(0x10e)](),timeout),_0x4412a1=await fetch(_0x41c095,{'headers':headers,'signal':_0x37d6ea['signal']});clearTimeout(_0x6b71b2);let _0x4523ec;const _0x179f0f=_0x4412a1['headers'][_0x123324(0x105)]('content-type');return _0x179f0f?.['includes'](_0x123324(0x106))?_0x4523ec=await _0x4412a1[_0x123324(0x10c)]():_0x4523ec=await _0x4412a1['text'](),{'ok':_0x4412a1['ok'],'status':_0x4412a1['status'],'statusText':_0x4412a1['statusText'],'data':_0x4523ec,'headers':_0x4412a1[_0x123324(0x110)],'url':_0x4412a1[_0x123324(0x115)],'text':()=>_0x4412a1[_0x123324(0x116)]()};}catch(_0x37afb8){_0x4a2709=_0x37afb8 instanceof Error?_0x37afb8:new Error(String(_0x37afb8));if(_0x833a57===retries)break;if(shouldRetry(_0x37afb8)){console[_0x123324(0x104)](_0x123324(0x117)+retryDelay+_0x123324(0x100)+(_0x833a57+0x1)+_0x123324(0x114)),await sleep(retryDelay);continue;}else break;}}throw _0x4a2709||new Error(_0x123324(0x10b));}function shouldRetry(_0x5e84f6){const _0x430f45=a130_0x2f03;if(_0x5e84f6 instanceof Error){if(_0x5e84f6[_0x430f45(0x101)]===_0x430f45(0x10d))return![];if(_0x5e84f6[_0x430f45(0x101)]==='TypeError'&&_0x5e84f6[_0x430f45(0xfb)][_0x430f45(0xff)](_0x430f45(0x112)))return!![];if(_0x5e84f6['message'][_0x430f45(0xff)](_0x430f45(0x102)))return!![];if(_0x5e84f6[_0x430f45(0xfb)]['includes'](_0x430f45(0x113)))return![];}return![];}function sleep(_0x3f19b4){return new Promise(_0x192f64=>setTimeout(_0x192f64,_0x3f19b4));}export function validateUrl(_0x21b8b8){try{return new URL(_0x21b8b8),!![];}catch{return![];}}
1
+ (function(_0x1d0f43,_0x216af5){const _0x3b0a46=a131_0x117f,_0x552a13=_0x1d0f43();while(!![]){try{const _0xea63c0=-parseInt(_0x3b0a46(0x201))/0x1+parseInt(_0x3b0a46(0x1fb))/0x2+-parseInt(_0x3b0a46(0x1fc))/0x3*(parseInt(_0x3b0a46(0x200))/0x4)+-parseInt(_0x3b0a46(0x207))/0x5+-parseInt(_0x3b0a46(0x1fe))/0x6*(-parseInt(_0x3b0a46(0x20d))/0x7)+-parseInt(_0x3b0a46(0x20b))/0x8+parseInt(_0x3b0a46(0x206))/0x9;if(_0xea63c0===_0x216af5)break;else _0x552a13['push'](_0x552a13['shift']());}catch(_0x7801e9){_0x552a13['push'](_0x552a13['shift']());}}}(a131_0x2842,0x97e84));export async function httpRequest(_0x42de51,_0x18c595={}){const _0x51845e=a131_0x117f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x18c595;let _0x2c8265=null;for(let _0x1225c8=0x0;_0x1225c8<=retries;_0x1225c8++){try{const _0x1ac71e=new AbortController(),_0x2ca154=setTimeout(()=>_0x1ac71e[_0x51845e(0x1f3)](),timeout),_0x2300ec=await fetch(_0x42de51,{'headers':headers,'signal':_0x1ac71e[_0x51845e(0x208)]});clearTimeout(_0x2ca154);let _0x42d24b;const _0x28c793=_0x2300ec[_0x51845e(0x1f6)][_0x51845e(0x1f8)]('content-type');return _0x28c793?.[_0x51845e(0x1f9)]('application/json')?_0x42d24b=await _0x2300ec[_0x51845e(0x1fa)]():_0x42d24b=await _0x2300ec[_0x51845e(0x203)](),{'ok':_0x2300ec['ok'],'status':_0x2300ec[_0x51845e(0x204)],'statusText':_0x2300ec[_0x51845e(0x1f4)],'data':_0x42d24b,'headers':_0x2300ec[_0x51845e(0x1f6)],'url':_0x2300ec[_0x51845e(0x1fd)],'text':()=>_0x2300ec[_0x51845e(0x203)]()};}catch(_0x45a09f){_0x2c8265=_0x45a09f instanceof Error?_0x45a09f:new Error(String(_0x45a09f));if(_0x1225c8===retries)break;if(shouldRetry(_0x45a09f)){console[_0x51845e(0x20c)](_0x51845e(0x1f7)+retryDelay+_0x51845e(0x20a)+(_0x1225c8+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x2c8265||new Error(_0x51845e(0x202));}function shouldRetry(_0x36ef5a){const _0x28c4ae=a131_0x117f;if(_0x36ef5a instanceof Error){if(_0x36ef5a[_0x28c4ae(0x1f5)]===_0x28c4ae(0x1ff))return![];if(_0x36ef5a[_0x28c4ae(0x1f5)]==='TypeError'&&_0x36ef5a[_0x28c4ae(0x209)][_0x28c4ae(0x1f9)]('fetch'))return!![];if(_0x36ef5a['message'][_0x28c4ae(0x1f9)](_0x28c4ae(0x205)))return!![];if(_0x36ef5a['message'][_0x28c4ae(0x1f9)]('ENOTFOUND'))return![];}return![];}function a131_0x2842(){const _0x43a059=['20UDFjdF','24686JvwqYa','Request\x20failed','text','status','ECONNRESET','1245177bwpvRP','2402415YjfmbU','signal','message','ms\x20后进行第\x20','1174552BBzVFo','log','321643HPqObv','abort','statusText','name','headers','*\x20请求失败,','get','includes','json','791368LyOqia','162429dHePvF','url','132psJYRK','AbortError'];a131_0x2842=function(){return _0x43a059;};return a131_0x2842();}function sleep(_0x42a37a){return new Promise(_0x4c2ade=>setTimeout(_0x4c2ade,_0x42a37a));}function a131_0x117f(_0x2c7b52,_0x49a29e){_0x2c7b52=_0x2c7b52-0x1f3;const _0x284279=a131_0x2842();let _0x117fea=_0x284279[_0x2c7b52];return _0x117fea;}export function validateUrl(_0x5aec20){try{return new URL(_0x5aec20),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xa1aed7,_0x4f3777){const _0x575f07=a131_0x9aa4,_0x3b144d=_0xa1aed7();while(!![]){try{const _0x1e8489=parseInt(_0x575f07(0xb4))/0x1*(parseInt(_0x575f07(0xab))/0x2)+parseInt(_0x575f07(0xa7))/0x3*(parseInt(_0x575f07(0xa5))/0x4)+parseInt(_0x575f07(0xb6))/0x5*(-parseInt(_0x575f07(0xb0))/0x6)+parseInt(_0x575f07(0xb7))/0x7*(-parseInt(_0x575f07(0xb5))/0x8)+-parseInt(_0x575f07(0xac))/0x9+-parseInt(_0x575f07(0xae))/0xa+parseInt(_0x575f07(0xa8))/0xb*(parseInt(_0x575f07(0xaf))/0xc);if(_0x1e8489===_0x4f3777)break;else _0x3b144d['push'](_0x3b144d['shift']());}catch(_0x1ba46c){_0x3b144d['push'](_0x3b144d['shift']());}}}(a131_0x1ab9,0x70ba1));function env(_0x2e744b){return process.env[`RABETBASE_${_0x2e744b}`]||process.env[`LOVRABET_${_0x2e744b}`]||undefined;}function a131_0x9aa4(_0x257a54,_0x5566d5){_0x257a54=_0x257a54-0xa5;const _0x1ab938=a131_0x1ab9();let _0x9aa45a=_0x1ab938[_0x257a54];return _0x9aa45a;}function a131_0x1ab9(){const _0x1eb520=['1878030AQrUMl','2895361jqnjJc','176YzCzgJ','nonInteractive','10506qJbKra','37213hDezWH','setRawMode','stdin','10zJplyG','161784eabMpC','stdout','4204620oYdICS','5736yEWFGl','12aPhmsv','isTTY','isRaw','true','58768WTAspW','8ewnwJD'];a131_0x1ab9=function(){return _0x1eb520;};return a131_0x1ab9();}export function isNonInteractive(_0x1a4fb9){const _0x55920a=a131_0x9aa4;return!!(_0x1a4fb9[_0x55920a(0xa6)]||_0x1a4fb9['ci']||env('CI')===_0x55920a(0xb3)||process.env.CI==='true'||!process[_0x55920a(0xad)][_0x55920a(0xb1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x53d843=a131_0x9aa4;if(!process['stdin'][_0x53d843(0xb1)])return![];try{const _0x126190=process[_0x53d843(0xaa)][_0x53d843(0xb2)];return process[_0x53d843(0xaa)]['setRawMode'](!![]),process[_0x53d843(0xaa)][_0x53d843(0xa9)](_0x126190??![]),!![];}catch{return![];}}
1
+ (function(_0x581f15,_0x1fb1f9){const _0x11ff08=a132_0x1db1,_0x28ba09=_0x581f15();while(!![]){try{const _0x1da5fe=parseInt(_0x11ff08(0x152))/0x1*(-parseInt(_0x11ff08(0x150))/0x2)+parseInt(_0x11ff08(0x159))/0x3*(-parseInt(_0x11ff08(0x154))/0x4)+parseInt(_0x11ff08(0x151))/0x5+parseInt(_0x11ff08(0x15b))/0x6*(-parseInt(_0x11ff08(0x155))/0x7)+-parseInt(_0x11ff08(0x157))/0x8+-parseInt(_0x11ff08(0x156))/0x9+parseInt(_0x11ff08(0x158))/0xa;if(_0x1da5fe===_0x1fb1f9)break;else _0x28ba09['push'](_0x28ba09['shift']());}catch(_0x40d347){_0x28ba09['push'](_0x28ba09['shift']());}}}(a132_0x2bc1,0x66480));function env(_0x36da4){return process.env[`RABETBASE_${_0x36da4}`]||process.env[`LOVRABET_${_0x36da4}`]||undefined;}export function isNonInteractive(_0x1a494d){const _0xf8894e=a132_0x1db1;return!!(_0x1a494d[_0xf8894e(0x153)]||_0x1a494d['ci']||env('CI')===_0xf8894e(0x14f)||process.env.CI===_0xf8894e(0x14f)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2bba84=a132_0x1db1;if(!process[_0x2bba84(0x15c)]['isTTY'])return![];try{const _0x5ece45=process[_0x2bba84(0x15c)]['isRaw'];return process[_0x2bba84(0x15c)][_0x2bba84(0x15a)](!![]),process[_0x2bba84(0x15c)][_0x2bba84(0x15a)](_0x5ece45??![]),!![];}catch{return![];}}function a132_0x1db1(_0x2279f9,_0x3061e5){_0x2279f9=_0x2279f9-0x14f;const _0x2bc1c8=a132_0x2bc1();let _0x1db1ed=_0x2bc1c8[_0x2279f9];return _0x1db1ed;}function a132_0x2bc1(){const _0x4c0221=['18855kLVREC','893784rrFbgC','8479440TISVnY','186HprwoZ','setRawMode','674448UilLnV','stdin','true','21342XhTVJQ','4057930zlQKYB','58KtcVgy','nonInteractive','3756OSjMCw','28GebIZe'];a132_0x2bc1=function(){return _0x4c0221;};return a132_0x2bc1();}