@lovrabet/rabetbase-cli 2.0.9 → 2.0.11

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(_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_0x441970=a114_0x70ef;(function(_0x8d71f3,_0x577ee7){const _0x5c4d5f=a114_0x70ef,_0x51fe80=_0x8d71f3();while(!![]){try{const _0x15f52e=-parseInt(_0x5c4d5f(0x1b3))/0x1+-parseInt(_0x5c4d5f(0x197))/0x2*(parseInt(_0x5c4d5f(0x1b1))/0x3)+-parseInt(_0x5c4d5f(0x192))/0x4+parseInt(_0x5c4d5f(0x194))/0x5+-parseInt(_0x5c4d5f(0x1b2))/0x6+-parseInt(_0x5c4d5f(0x193))/0x7+parseInt(_0x5c4d5f(0x198))/0x8;if(_0x15f52e===_0x577ee7)break;else _0x51fe80['push'](_0x51fe80['shift']());}catch(_0x395710){_0x51fe80['push'](_0x51fe80['shift']());}}}(a114_0x1ceb,0x3d922));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x1a1996){const _0x38941c=a114_0x70ef,_0x5bd76e=[];for(const [_0x536173,_0xb92231]of Object[_0x38941c(0x19e)](_0x1a1996)){if(_0xb92231===!![]){const _0x3a7c26=_0x536173['replace'](/([A-Z])/g,_0x38941c(0x19b))[_0x38941c(0x1a6)]();_0x5bd76e[_0x38941c(0x1af)](_0x3a7c26);}}return _0x5bd76e;}export function parseDynamicFlags(){const _0x17574b=a114_0x70ef,_0x3e4d07=[];for(let _0x117e6f=0x3;_0x117e6f<process[_0x17574b(0x1b0)][_0x17574b(0x1ab)];_0x117e6f++){const _0x7c7722=process['argv'][_0x117e6f];if(_0x7c7722&&_0x7c7722[_0x17574b(0x1b5)]('--')){const _0x49568d=_0x7c7722[_0x17574b(0x196)](0x2);_0x49568d&&!_0x49568d[_0x17574b(0x1b4)]('=')&&_0x3e4d07[_0x17574b(0x1af)](_0x49568d);}}return _0x3e4d07;}export function getAllProvidedFlags(_0x3e8130){const _0x47e2c9=a114_0x70ef,_0x186518=camelCaseFlagsToKebab(_0x3e8130),_0x57a70a=parseDynamicFlags(),_0x5df453=new Set([..._0x186518,..._0x57a70a]);return Array[_0x47e2c9(0x1a1)](_0x5df453);}function a114_0x1ceb(){const _0x43ff08=['238497pbOQqT','651470UEtdVI','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','slice','2EKRHUo','9984424dsQDhL','skill','cwd','-$1','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','entries','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','enable-bff-save','from','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x0aAvailable\x20commands:','不支持的命令:\x20','toLowerCase','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','add','--help','error','length','has','Equivalent\x20command:\x20','log','push','argv','174357DuVPYg','1437438eambjk','478986eRJbDg','includes','startsWith','\x20skill\x20--help\x0a\x20\x20','1261616hjMxzA'];a114_0x1ceb=function(){return _0x43ff08;};return a114_0x1ceb();}export function normalizeLegacyBffSaveFlags(_0x156eee){const _0x187366=a114_0x70ef,_0x2253db=new Set(_0x156eee);return _0x2253db[_0x187366(0x1ac)]('dangerously-bff-save')&&_0x2253db[_0x187366(0x1a8)](_0x187366(0x1a0)),Array['from'](_0x2253db);}function a114_0x70ef(_0x55c2d4,_0x231eba){_0x55c2d4=_0x55c2d4-0x191;const _0x1ceb76=a114_0x1ceb();let _0x70efc6=_0x1ceb76[_0x55c2d4];return _0x70efc6;}const SKILLS_INSTALL_COMMAND_LINE=a114_0x441970(0x19f);export async function skillsCommand(_0x4ef0f9,_0x42c747,_0x3c24f7){const _0x3fc9b4=a114_0x441970;logger[_0x3fc9b4(0x1a2)](process[_0x3fc9b4(0x19a)]());if(_0x3c24f7?.['help']||_0x4ef0f9===_0x3fc9b4(0x1a9)){showHelp();return;}console[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x19d)+(_0x4ef0f9||'(empty)')),console[_0x3fc9b4(0x1ae)](_0x3fc9b4(0x1a4)),console[_0x3fc9b4(0x1ae)]('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a7)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x3fc9b4(0x1a3)),console[_0x3fc9b4(0x1ae)](''),console['log'](_0x3fc9b4(0x1ad)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3fc9b4(0x1aa)](_0x3fc9b4(0x199),_0x3fc9b4(0x1a5)+_0x4ef0f9),process['exit'](0x1);}function showHelp(){const _0x2d780e=a114_0x441970;console[_0x2d780e(0x1ae)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x2d780e(0x191)+CLI_BIN_NAME+_0x2d780e(0x19c)+SKILLS_INSTALL_COMMAND_LINE+_0x2d780e(0x195));}
@@ -1 +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
+ const a115_0x536a10=a115_0x1ce2;function a115_0x1ce2(_0x239248,_0x5d13bb){_0x239248=_0x239248-0x1c4;const _0x500225=a115_0x5002();let _0x1ce213=_0x500225[_0x239248];return _0x1ce213;}(function(_0x43caf5,_0x244173){const _0x28e2c3=a115_0x1ce2,_0x41995d=_0x43caf5();while(!![]){try{const _0x4a62ad=parseInt(_0x28e2c3(0x1db))/0x1*(parseInt(_0x28e2c3(0x1d9))/0x2)+-parseInt(_0x28e2c3(0x1e3))/0x3+parseInt(_0x28e2c3(0x1cf))/0x4*(parseInt(_0x28e2c3(0x1e0))/0x5)+parseInt(_0x28e2c3(0x1c5))/0x6*(-parseInt(_0x28e2c3(0x1e1))/0x7)+-parseInt(_0x28e2c3(0x1cc))/0x8+parseInt(_0x28e2c3(0x1df))/0x9*(parseInt(_0x28e2c3(0x1dc))/0xa)+-parseInt(_0x28e2c3(0x1c7))/0xb*(-parseInt(_0x28e2c3(0x1cd))/0xc);if(_0x4a62ad===_0x244173)break;else _0x41995d['push'](_0x41995d['shift']());}catch(_0x5a1be7){_0x41995d['push'](_0x41995d['shift']());}}}(a115_0x5002,0x2e2fe));import{spawnSync}from'node:child_process';function a115_0x5002(){const _0x1b324a=['517jokUFm','yes','skills','trim','exit\x20','1377240DMuwuH','102852vHUKiy','unknown','4MebZPM','join','inherit','toString','stdio','skill','lovrabet/lovrabet-skill','--global','npx','pipe','82334mLyghR','--skill','5vfZQFk','840UAtsYG','status','stderr','324PlRuFX','1559015iXdkaU','21721NgGEkT','remove','969693swzGyr','add','stdout','Lovrabet','462bwtbvv','log'];a115_0x5002=function(){return _0x1b324a;};return a115_0x5002();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a115_0x536a10(0x1c9);export const NPX_SKILLS_SUBCOMMAND_ADD=a115_0x536a10(0x1e4);export const NPX_SKILLS_FLAG_SKILL=a115_0x536a10(0x1da);export const RABETBASE_SKILL_SOURCE=a115_0x536a10(0x1d5);export const DEFAULT_RABETBASE_SKILL_NAME=a115_0x536a10(0x1c4);export function buildNpxSkillsAddArgv(_0x427500=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x427500];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a115_0x536a10(0x1d7),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1d1eae,_0xf6389e){const _0x106e10=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a6a8=_0xf6389e?.[_0x106e10(0x1d3)]??_0x106e10(0x1d1),_0x5e9391=resolveNpmBin('npx'),_0x48892e=buildNpxSkillsAddArgv(_0xf6389e?.[_0x106e10(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME),_0x33d3d5=[_0x5e9391,..._0x48892e][_0x106e10(0x1d0)]('\x20');console[_0x106e10(0x1c6)]('*\x20'+_0x33d3d5);const _0x3abf7b=spawnSync(_0x5e9391,_0x48892e,{'cwd':_0x1d1eae,'stdio':_0x57a6a8,'env':process.env,'shell':![]}),_0x560ffe=_0x3abf7b[_0x106e10(0x1dd)];if(_0x560ffe===0x0)return{'ok':!![],'status':0x0};let _0x55695e=_0x106e10(0x1cb)+(_0x560ffe??_0x106e10(0x1ce));if(_0x57a6a8===_0x106e10(0x1d8)){const _0xfc28eb=_0x3abf7b['stderr']?_0x3abf7b[_0x106e10(0x1de)][_0x106e10(0x1d2)]()['trim']():'',_0x5621a3=_0x3abf7b[_0x106e10(0x1e5)]?_0x3abf7b[_0x106e10(0x1e5)]['toString']()[_0x106e10(0x1ca)]():'';if(_0xfc28eb)_0x55695e=_0xfc28eb;else{if(_0x5621a3)_0x55695e=_0x5621a3;}}return{'ok':![],'status':_0x560ffe??null,'error':_0x55695e};}export function runNpxSkillsRemove(_0x1e9179,_0x289f92){const _0x413889=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x157d19=_0x289f92?.[_0x413889(0x1d3)]??_0x413889(0x1d1),_0x51740c=resolveNpmBin(_0x413889(0x1d7)),_0x3a6c47=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x413889(0x1e2),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x289f92?.[_0x413889(0x1d4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x289f92?.[_0x413889(0x1c8)]?['-y']:[]],_0x369f43=[_0x51740c,..._0x3a6c47][_0x413889(0x1d0)]('\x20');console[_0x413889(0x1c6)]('*\x20'+_0x369f43);const _0x42941d=spawnSync(_0x51740c,_0x3a6c47,{'cwd':_0x1e9179,'stdio':_0x157d19,'env':process.env,'shell':![]}),_0x207288=_0x42941d[_0x413889(0x1dd)];if(_0x207288===0x0)return{'ok':!![],'status':0x0};let _0x21f91b=_0x413889(0x1cb)+(_0x207288??_0x413889(0x1ce));if(_0x157d19===_0x413889(0x1d8)){const _0x4b0507=_0x42941d[_0x413889(0x1de)]?_0x42941d[_0x413889(0x1de)][_0x413889(0x1d2)]()[_0x413889(0x1ca)]():'',_0x5c945d=_0x42941d['stdout']?_0x42941d[_0x413889(0x1e5)][_0x413889(0x1d2)]()['trim']():'';if(_0x4b0507)_0x21f91b=_0x4b0507;else{if(_0x5c945d)_0x21f91b=_0x5c945d;}}return{'ok':![],'status':_0x207288??null,'error':_0x21f91b};}export function runNpxSkillsAddGlobal(_0x287539,_0x509399,_0x33d4a6){const _0x430759=a115_0x536a10;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57a8a0=_0x33d4a6?.[_0x430759(0x1d3)]??'inherit',_0x239209=resolveNpmBin(_0x430759(0x1d7)),_0x24e441=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x509399,_0x430759(0x1d6),..._0x33d4a6?.['yes']?['-y']:[]],_0x115b12=[_0x239209,..._0x24e441][_0x430759(0x1d0)]('\x20');console['log']('*\x20'+_0x115b12);const _0x1421ea=spawnSync(_0x239209,_0x24e441,{'cwd':_0x287539,'stdio':_0x57a8a0,'env':process.env,'shell':![]}),_0x4d5568=_0x1421ea[_0x430759(0x1dd)];if(_0x4d5568===0x0)return{'ok':!![],'status':0x0};let _0x1d009b=_0x430759(0x1cb)+(_0x4d5568??'unknown');if(_0x57a8a0==='pipe'){const _0x48214e=_0x1421ea['stderr']?_0x1421ea['stderr']['toString']()[_0x430759(0x1ca)]():'',_0x2e4c1c=_0x1421ea['stdout']?_0x1421ea['stdout']['toString']()[_0x430759(0x1ca)]():'';if(_0x48214e)_0x1d009b=_0x48214e;else{if(_0x2e4c1c)_0x1d009b=_0x2e4c1c;}}return{'ok':![],'status':_0x4d5568??null,'error':_0x1d009b};}
@@ -1 +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(_0x27eea1,_0x3143a0){const _0x20e8cb=a116_0x2b15,_0x51a521=_0x27eea1();while(!![]){try{const _0x4ff8af=-parseInt(_0x20e8cb(0x198))/0x1+parseInt(_0x20e8cb(0x192))/0x2*(-parseInt(_0x20e8cb(0x199))/0x3)+parseInt(_0x20e8cb(0x19e))/0x4+-parseInt(_0x20e8cb(0x19f))/0x5+parseInt(_0x20e8cb(0x18d))/0x6*(parseInt(_0x20e8cb(0x194))/0x7)+parseInt(_0x20e8cb(0x18c))/0x8*(-parseInt(_0x20e8cb(0x193))/0x9)+parseInt(_0x20e8cb(0x19b))/0xa*(parseInt(_0x20e8cb(0x197))/0xb);if(_0x4ff8af===_0x3143a0)break;else _0x51a521['push'](_0x51a521['shift']());}catch(_0x21eea6){_0x51a521['push'](_0x51a521['shift']());}}}(a116_0x21ea,0x4f11f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a116_0x2b15(_0x223d5f,_0x19d61c){_0x223d5f=_0x223d5f-0x18c;const _0x21ea58=a116_0x21ea();let _0x2b15ca=_0x21ea58[_0x223d5f];return _0x2b15ca;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x791c83){const _0x174a5c=a116_0x2b15;return SENSITIVE_PATTERNS[_0x174a5c(0x191)](_0x19572f=>_0x19572f['test'](_0x791c83));}function sanitizeFlags(_0x12c5ff){const _0x797518=a116_0x2b15,_0x141e0c={};for(const [_0x35e6d5,_0xb69b11]of Object['entries'](_0x12c5ff)){isSensitiveKey(_0x35e6d5)?_0x141e0c[_0x35e6d5]=_0xb69b11!=null&&_0xb69b11!==''?_0x797518(0x196):_0xb69b11:_0x141e0c[_0x35e6d5]=_0xb69b11;}return _0x141e0c;}function a116_0x21ea(){const _0x3ab9d2=['message','[REDACTED]','6498151FmJkXU','58572nwYVFU','6543HFqkJg','rabetbase.command','10mfSBvP','error','command','309016eziOuX','451505DGDDfc','8VSizdD','5634XrYYuw','durationMs','flags','stringify','some','166MQxqjO','5815575UdSOsY','4711DjjVrE'];a116_0x21ea=function(){return _0x3ab9d2;};return a116_0x21ea();}export async function reportCommandTrace(_0x4106e3){const _0x1902bc=a116_0x2b15;try{const _0xd25b1d=sanitizeFlags(_0x4106e3[_0x1902bc(0x18f)]);await sendCliTraceLog({'spanName':_0x1902bc(0x19a),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4106e3['service'],'command.name':_0x4106e3[_0x1902bc(0x19d)],'command.flags':JSON[_0x1902bc(0x190)](_0xd25b1d),..._0x4106e3['durationMs']!=null?{'command.duration_ms':_0x4106e3[_0x1902bc(0x18e)]}:{},..._0x4106e3['error']?{'command.error':_0x4106e3[_0x1902bc(0x19c)]instanceof Error?_0x4106e3['error'][_0x1902bc(0x195)]:String(_0x4106e3[_0x1902bc(0x19c)])}:{}}});}catch{}}
@@ -1 +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(_0x47fa3a,_0x3a0b7d){var _0x37e7cb=a117_0x4bf1,_0x4e85c6=_0x47fa3a();while(!![]){try{var _0x6fd2f8=parseInt(_0x37e7cb(0x193))/0x1*(parseInt(_0x37e7cb(0x18d))/0x2)+parseInt(_0x37e7cb(0x18a))/0x3*(-parseInt(_0x37e7cb(0x190))/0x4)+parseInt(_0x37e7cb(0x198))/0x5*(parseInt(_0x37e7cb(0x199))/0x6)+-parseInt(_0x37e7cb(0x196))/0x7*(parseInt(_0x37e7cb(0x197))/0x8)+-parseInt(_0x37e7cb(0x18f))/0x9*(-parseInt(_0x37e7cb(0x192))/0xa)+parseInt(_0x37e7cb(0x18c))/0xb*(parseInt(_0x37e7cb(0x191))/0xc)+-parseInt(_0x37e7cb(0x18b))/0xd;if(_0x6fd2f8===_0x3a0b7d)break;else _0x4e85c6['push'](_0x4e85c6['shift']());}catch(_0x149637){_0x4e85c6['push'](_0x4e85c6['shift']());}}}(a117_0x5a84,0x292c3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a117_0x4bf1(_0x401f90,_0x3d1f5c){_0x401f90=_0x401f90-0x18a;var _0x5a8410=a117_0x5a84();var _0x4bf154=_0x5a8410[_0x401f90];return _0x4bf154;}export async function reportCliHelpTrace(_0xcc8762,_0x2d0ca0){var _0x24485b=a117_0x4bf1;try{await sendCliTraceLog({'spanName':_0x24485b(0x18e),'logData':{'rabetbase.help.kind':_0xcc8762,..._0x2d0ca0?.[_0x24485b(0x195)]&&{'rabetbase.help.service':_0x2d0ca0['service']}}});}catch(_0x3fc7bf){console[_0x24485b(0x194)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3fc7bf);}}function a117_0x5a84(){var _0xa8b007=['3243880jTAScf','9949vrDBJJ','error','service','1267RQguZt','6952whRaWG','5ZUitTG','885534PqCXLT','33ljRXvK','2713074NZQLHO','121kDaOTp','34MswQeW','cli.help','9eOYORa','111064TNsvnq','217032atQsnX'];a117_0x5a84=function(){return _0xa8b007;};return a117_0x5a84();}
@@ -1 +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(_0x108b5e,_0xfb02b1){const _0x78b2d8=a118_0x2b5c,_0x26b7a1=_0x108b5e();while(!![]){try{const _0x137812=parseInt(_0x78b2d8(0xcb))/0x1*(-parseInt(_0x78b2d8(0xc8))/0x2)+-parseInt(_0x78b2d8(0xcd))/0x3+parseInt(_0x78b2d8(0xd7))/0x4*(-parseInt(_0x78b2d8(0xcf))/0x5)+parseInt(_0x78b2d8(0xd4))/0x6*(parseInt(_0x78b2d8(0xc7))/0x7)+-parseInt(_0x78b2d8(0xd2))/0x8+parseInt(_0x78b2d8(0xca))/0x9*(parseInt(_0x78b2d8(0xd5))/0xa)+parseInt(_0x78b2d8(0xce))/0xb*(parseInt(_0x78b2d8(0xd0))/0xc);if(_0x137812===_0xfb02b1)break;else _0x26b7a1['push'](_0x26b7a1['shift']());}catch(_0x2064ba){_0x26b7a1['push'](_0x26b7a1['shift']());}}}(a118_0x3028,0x269d4));function a118_0x2b5c(_0x532973,_0x39cb2b){_0x532973=_0x532973-0xc7;const _0x30287e=a118_0x3028();let _0x2b5cdf=_0x30287e[_0x532973];return _0x2b5cdf;}import a118_0x3ff0ee from'node:os';function a118_0x3028(){const _0x1864d1=['112362IvtIKb','702427zofpul','385gUJuID','120kOCPlh','nickname','2031160hBeDyV','daily','191340PgtEzB','10VVvmnd','unknown','16148QZzNtv','7DOYCUg','7634rZNqFZ','rabetbase-cli','1599237jwNJDz','23lDoRdf','username'];a118_0x3028=function(){return _0x1864d1;};return a118_0x3028();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1b0b47=a118_0x2b5c,_0x394208=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x474198=_0x394208?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1b0b47(0xd6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1b0b47(0xd3):'production'),'username':_0x474198?.[_0x1b0b47(0xcc)]??a118_0x3ff0ee['userInfo']()['username']??_0x1b0b47(0xc9),..._0x474198&&{'nickname':_0x474198[_0x1b0b47(0xd1)]}}),cliOtelTraceInitialized=!![];}return _0x394208;}
@@ -1 +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(_0x52829c,_0x325fb0){const _0x5b8a30=a119_0x1365,_0x3ad3b7=_0x52829c();while(!![]){try{const _0x439750=-parseInt(_0x5b8a30(0x129))/0x1*(-parseInt(_0x5b8a30(0x130))/0x2)+-parseInt(_0x5b8a30(0x126))/0x3*(-parseInt(_0x5b8a30(0x128))/0x4)+parseInt(_0x5b8a30(0x12b))/0x5*(parseInt(_0x5b8a30(0x12e))/0x6)+parseInt(_0x5b8a30(0x134))/0x7*(-parseInt(_0x5b8a30(0x131))/0x8)+parseInt(_0x5b8a30(0x132))/0x9+parseInt(_0x5b8a30(0x12c))/0xa+parseInt(_0x5b8a30(0x133))/0xb*(-parseInt(_0x5b8a30(0x135))/0xc);if(_0x439750===_0x325fb0)break;else _0x3ad3b7['push'](_0x3ad3b7['shift']());}catch(_0x6a79df){_0x3ad3b7['push'](_0x3ad3b7['shift']());}}}(a119_0x6727,0xbad53));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a119_0x1365(_0x341497,_0x164fce){_0x341497=_0x341497-0x126;const _0x672767=a119_0x6727();let _0x136521=_0x672767[_0x341497];return _0x136521;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xd78b4e=a119_0x1365;process[_0xd78b4e(0x12d)](_0xd78b4e(0x12a),()=>{void flushOtelNodeIfUsed();});const _0x50dc0c=()=>{const _0x3afecb=_0xd78b4e;void flushOtelNodeIfUsed()[_0x3afecb(0x12f)](()=>process[_0x3afecb(0x136)](0x0));};process[_0xd78b4e(0x12d)](_0xd78b4e(0x127),_0x50dc0c),process[_0xd78b4e(0x12d)]('SIGTERM',_0x50dc0c);}function a119_0x6727(){const _0x23b9e7=['1372HfAQuF','beforeExit','5676005KdyJkx','6215960eBwLHe','once','6LFMUlY','then','554RHHjai','8JXWola','8285139DaOUKu','59543lNiNep','1074346hwMUHp','6396RHICwy','exit','1119693BwMLBy','SIGINT','8hNcbnF'];a119_0x6727=function(){return _0x23b9e7;};return a119_0x6727();}export async function exitWithOtelShutdown(_0x4de384){const _0x169c26=a119_0x1365;await flushOtelNodeIfUsed(),process[_0x169c26(0x136)](_0x4de384);}
@@ -1 +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_0x56b5ea=a120_0x1795;function a120_0x1795(_0x18179f,_0x24c401){_0x18179f=_0x18179f-0x1ee;const _0x341fe5=a120_0x341f();let _0x17953d=_0x341fe5[_0x18179f];return _0x17953d;}(function(_0x5ea313,_0x1d6704){const _0x571db4=a120_0x1795,_0x16431a=_0x5ea313();while(!![]){try{const _0x243144=parseInt(_0x571db4(0x1ef))/0x1+-parseInt(_0x571db4(0x1f9))/0x2+parseInt(_0x571db4(0x1f1))/0x3+parseInt(_0x571db4(0x1f7))/0x4*(parseInt(_0x571db4(0x1fa))/0x5)+-parseInt(_0x571db4(0x1f2))/0x6+-parseInt(_0x571db4(0x1f4))/0x7*(-parseInt(_0x571db4(0x1f8))/0x8)+-parseInt(_0x571db4(0x1fb))/0x9*(parseInt(_0x571db4(0x1f5))/0xa);if(_0x243144===_0x1d6704)break;else _0x16431a['push'](_0x16431a['shift']());}catch(_0x3ff0d2){_0x16431a['push'](_0x16431a['shift']());}}}(a120_0x341f,0x99366));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a120_0x56b5ea(0x1f0);export async function sendCliTraceLog(_0x5059fc){const _0x2df7a9=a120_0x56b5ea;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5059fc['traceName']??DEFAULT_TRACE_NAME,'version':_0x5059fc[_0x2df7a9(0x1f6)]??getCliVersion(),'spanName':_0x5059fc[_0x2df7a9(0x1ee)],'eventType':_0x2df7a9(0x1f3),'logData':_0x5059fc['logData'],..._0x5059fc[_0x2df7a9(0x1fc)]&&{'traceparent':_0x5059fc[_0x2df7a9(0x1fc)]}});}function a120_0x341f(){const _0x41df5a=['version','200PjKmzZ','60864bdzNeG','295264gMQGsy','13025UcRUfE','1726398JTArLc','traceparent','spanName','244602VPgRcA','rabetbase-cli','3242004LAXGLd','4163544MjRjYo','manual','189tVcMVK','10JjJSYI'];a120_0x341f=function(){return _0x41df5a;};return a120_0x341f();}
@@ -1 +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_0x20bb(_0x59c5ff,_0x2af72a){_0x59c5ff=_0x59c5ff-0xf3;const _0x402272=a122_0x4022();let _0x20bbd9=_0x402272[_0x59c5ff];return _0x20bbd9;}const a122_0x41a35e=a122_0x20bb;(function(_0x5a32e4,_0x367f64){const _0x2ee406=a122_0x20bb,_0x4d831a=_0x5a32e4();while(!![]){try{const _0x40f434=parseInt(_0x2ee406(0x119))/0x1*(parseInt(_0x2ee406(0x10e))/0x2)+-parseInt(_0x2ee406(0x10c))/0x3+parseInt(_0x2ee406(0x101))/0x4+parseInt(_0x2ee406(0xfc))/0x5*(parseInt(_0x2ee406(0xf4))/0x6)+-parseInt(_0x2ee406(0x12a))/0x7*(parseInt(_0x2ee406(0x11c))/0x8)+parseInt(_0x2ee406(0x118))/0x9+-parseInt(_0x2ee406(0xf5))/0xa;if(_0x40f434===_0x367f64)break;else _0x4d831a['push'](_0x4d831a['shift']());}catch(_0x26e252){_0x4d831a['push'](_0x4d831a['shift']());}}}(a122_0x4022,0xa4515));export const CORE_IDE_CONFIGS={'cursor':{'name':a122_0x41a35e(0x112),'description':'Cursor\x20IDE','folders':[a122_0x41a35e(0x12b),a122_0x41a35e(0x10b)],'files':[{'type':'file','path':a122_0x41a35e(0xf3),'template':a122_0x41a35e(0x109)}]},'windsurf':{'name':a122_0x41a35e(0x124),'description':a122_0x41a35e(0x128),'folders':[a122_0x41a35e(0xfd)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xfa),'template':a122_0x41a35e(0x109)}]},'claude':{'name':a122_0x41a35e(0x103),'description':a122_0x41a35e(0x103),'folders':[a122_0x41a35e(0x104)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x11e),'template':a122_0x41a35e(0x109)}]},'cline':{'name':a122_0x41a35e(0xf6),'description':a122_0x41a35e(0x108),'folders':['.cline'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x12c),'template':a122_0x41a35e(0x109)}]},'codex':{'name':a122_0x41a35e(0x107),'description':a122_0x41a35e(0x10a),'folders':[a122_0x41a35e(0x10d)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x125),'template':a122_0x41a35e(0x109)}]},'opencode':{'name':'OpenCode','description':a122_0x41a35e(0x116),'folders':[a122_0x41a35e(0x11f)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x121),'template':a122_0x41a35e(0x109)}]},'qoder':{'name':a122_0x41a35e(0x105),'description':a122_0x41a35e(0x106),'folders':[a122_0x41a35e(0x11b)],'files':[{'type':a122_0x41a35e(0xff),'path':'.qoder/rules/rabetbase.md','template':a122_0x41a35e(0x109)},{'type':'file','path':a122_0x41a35e(0x120),'template':a122_0x41a35e(0x109)}]},'codebuddy':{'name':a122_0x41a35e(0x10f),'description':a122_0x41a35e(0x12e),'folders':[a122_0x41a35e(0x117)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x111),'template':a122_0x41a35e(0x109)}]},'trae':{'name':a122_0x41a35e(0x12d),'description':a122_0x41a35e(0x12f),'folders':['.trae'],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0xf9),'template':a122_0x41a35e(0x109)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a122_0x41a35e(0xf7),'description':a122_0x41a35e(0x126),'folders':[a122_0x41a35e(0x115)],'files':[{'type':a122_0x41a35e(0xff),'path':a122_0x41a35e(0x114),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a122_0x41a35e(0x113),'description':a122_0x41a35e(0x110),'folders':['.agent'],'files':[{'type':a122_0x41a35e(0xff),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),'codebuddy',a122_0x41a35e(0x129),a122_0x41a35e(0xfb),'opencode',a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127)];export const IDE_LIST=[a122_0x41a35e(0x11a),a122_0x41a35e(0xfe),a122_0x41a35e(0xf8),a122_0x41a35e(0x11d),a122_0x41a35e(0x129),a122_0x41a35e(0xfb),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x123),a122_0x41a35e(0x127),a122_0x41a35e(0x100)];export const ALL_CORE_IDES=[a122_0x41a35e(0xfb),'windsurf','claude','cline',a122_0x41a35e(0x129),a122_0x41a35e(0x122),a122_0x41a35e(0x102),a122_0x41a35e(0x11d),a122_0x41a35e(0x123)];function a122_0x4022(){const _0x248d1b=['antigravity','.qoder','152ZYHSYj','codebuddy','.claude/skills/lovrabet/SKILL.md','.opencode','.qoder/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','opencode','trae','Windsurf','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','windsurf','Windsurf\x20IDE','codex','436919jZElnY','.cursorrules','.cline/skills/lovrabet/SKILL.md','Trae','CodeBuddy\x20IDE','Trae\x20IDE','.cursor/skills/rabetbase.md','4608390DdVJvQ','5661100JUyCLU','Cline','其他\x20(通用模板)','cline','.trae/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','cursor','5twTFss','.windsurf','claude','file','agent','2966052XUNaoI','qoder','Claude\x20Code','.claude','Qoder','Qoder\x20IDE','Codex','Cline\x20IDE','SKILL.md.tpl','Codex\x20IDE','.cursor','2620572XOqcFd','.codex','298QuNhqs','CodeBuddy','Antigravity\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Cursor','Antigravity','.agent/skills/lovrabet/SKILL.md','.agent','OpenCode\x20IDE','.codebuddy','11751012eFiUeF','3244GQWbZd'];a122_0x4022=function(){return _0x248d1b;};return a122_0x4022();}
@@ -1 +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(_0x3030d3,_0x4d8887){const _0x2a4925=a123_0x7910,_0x354da6=_0x3030d3();while(!![]){try{const _0x52958d=-parseInt(_0x2a4925(0xe7))/0x1+parseInt(_0x2a4925(0xd5))/0x2+parseInt(_0x2a4925(0xd6))/0x3+-parseInt(_0x2a4925(0xe5))/0x4+parseInt(_0x2a4925(0xe3))/0x5*(-parseInt(_0x2a4925(0xeb))/0x6)+-parseInt(_0x2a4925(0xe8))/0x7*(-parseInt(_0x2a4925(0xda))/0x8)+-parseInt(_0x2a4925(0xd8))/0x9*(-parseInt(_0x2a4925(0xd3))/0xa);if(_0x52958d===_0x4d8887)break;else _0x354da6['push'](_0x354da6['shift']());}catch(_0x10e9cc){_0x354da6['push'](_0x354da6['shift']());}}}(a123_0x50d8,0x89d9a));function a123_0x7910(_0x30ebf9,_0x13c8da){_0x30ebf9=_0x30ebf9-0xd3;const _0x50d820=a123_0x50d8();let _0x7910d2=_0x50d820[_0x30ebf9];return _0x7910d2;}import{execFileSync}from'node:child_process';import{existsSync}from'node:fs';function a123_0x50d8(){const _0x368f82=['node-jq/package.json','722981rmcSBN','567hqiNYK','pipe','dirname','4831122pUWdtM','146210NpTBuT','test','1544222TVLBkE','1505667GrnVhy','toString','423XSewEe','trim','23928trURuF','jq.exe','platform','--jq\x20needs\x20a\x20jq\x20binary.\x20Bundled\x20path\x20(from\x20node-jq)\x20was\x20not\x20found\x20and\x20`jq`\x20is\x20not\x20on\x20PATH.\x20Reinstall\x20dependencies\x20(allow\x20install\x20scripts),\x20set\x20JQ_PATH\x20to\x20a\x20jq\x20executable,\x20or\x20install\x20jq:\x20https://jqlang.org/','e.g.\x20brew\x20install\x20jq\x20—\x20or\x20npm\x20install\x20with\x20scripts\x20enabled\x20so\x20node-jq\x20can\x20download\x20jq','win32','code','utf8','stderr','5RRkDZO','validation','442624HLYKcy'];a123_0x50d8=function(){return _0x368f82;};return a123_0x50d8();}import{createRequire}from'node:module';import a123_0x2dee79 from'node:path';import{CliErrors}from'../errors.js';const MAX_BUFFER=0x32*0x400*0x400;function resolveJqBinary(){const _0x405f5e=a123_0x7910;try{const _0x33e2a4=createRequire(import.meta.url),_0x12933b=a123_0x2dee79[_0x405f5e(0xea)](_0x33e2a4['resolve'](_0x405f5e(0xe6))),_0x4f8e5d=a123_0x2dee79['join'](_0x12933b,'bin'),_0x6d78f4=process[_0x405f5e(0xdc)]===_0x405f5e(0xdf)?_0x405f5e(0xdb):'jq',_0x26fb85=a123_0x2dee79['join'](_0x4f8e5d,_0x6d78f4);if(existsSync(_0x26fb85))return _0x26fb85;}catch{}return'jq';}export function applyJqFilter(_0x76ede0,_0x2dbe1a){const _0x565992=a123_0x7910,_0x1fd467=resolveJqBinary();try{return execFileSync(_0x1fd467,[_0x2dbe1a],{'input':_0x76ede0,'encoding':_0x565992(0xe1),'maxBuffer':MAX_BUFFER,'stdio':[_0x565992(0xe9),_0x565992(0xe9),'pipe']});}catch(_0x5185af){const _0x204476=_0x5185af;if(_0x204476[_0x565992(0xe0)]==='ENOENT')throw CliErrors[_0x565992(0xe4)](_0x565992(0xdd),_0x565992(0xde));const _0x3fa999=_0x204476[_0x565992(0xe2)]?.[_0x565992(0xd7)]?.()[_0x565992(0xd9)]()??'',_0x59750f=(_0x204476['message']??String(_0x5185af))[_0x565992(0xd9)](),_0x3a2efb=_0x3fa999||_0x59750f,_0x11b771=/^\s*jq:/i[_0x565992(0xd4)](_0x3a2efb)?_0x3a2efb:'jq:\x20'+_0x3a2efb;throw CliErrors[_0x565992(0xe4)](_0x11b771);}}
@@ -1 +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(_0x1b0851,_0x829d3b){const _0x3895b3=a124_0x54d2,_0xbcb778=_0x1b0851();while(!![]){try{const _0x4c3beb=parseInt(_0x3895b3(0x103))/0x1+parseInt(_0x3895b3(0xff))/0x2+parseInt(_0x3895b3(0x102))/0x3+parseInt(_0x3895b3(0x105))/0x4*(parseInt(_0x3895b3(0x104))/0x5)+parseInt(_0x3895b3(0xfe))/0x6+-parseInt(_0x3895b3(0x106))/0x7+-parseInt(_0x3895b3(0x109))/0x8;if(_0x4c3beb===_0x829d3b)break;else _0xbcb778['push'](_0xbcb778['shift']());}catch(_0x311dcc){_0xbcb778['push'](_0xbcb778['shift']());}}}(a124_0x1f24,0x2302c));import{getTemplateBaseUrl}from'../utils/config.js';function a124_0x1f24(){const _0x1fabca=['449012BjhIls','stableVersion','json','380769CHJsyl','113578teaLvT','370XsGFXK','2668ZVnRWP','1928675OPLuGT','now','/config.json','1628360PnUsbs','cli','648654rsmoiX'];a124_0x1f24=function(){return _0x1fabca;};return a124_0x1f24();}function a124_0x54d2(_0x4cf893,_0x590304){_0x4cf893=_0x4cf893-0xfe;const _0x1f2422=a124_0x1f24();let _0x54d22d=_0x1f2422[_0x4cf893];return _0x54d22d;}export async function fetchCdnConfig(){const _0x4665fb=a124_0x54d2;try{const _0x5e6f10=getTemplateBaseUrl(),_0x59763a=_0x5e6f10+_0x4665fb(0x108),_0x3b39d5=await fetch(_0x59763a,{'headers':{'Accept':'application/json'}});if(!_0x3b39d5['ok'])return null;const _0x4b5cbd=await _0x3b39d5[_0x4665fb(0x101)]();if(!_0x4b5cbd[_0x4665fb(0x10a)]?.[_0x4665fb(0x100)]||!_0x4b5cbd['sdk']?.['node']?.[_0x4665fb(0x100)])return null;return _0x4b5cbd;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x5b52bb=a124_0x54d2,_0x51234e=Date[_0x5b52bb(0x107)]();if(cachedConfig&&_0x51234e-cacheTime<CACHE_TTL)return cachedConfig;const _0x4a9b26=await fetchCdnConfig();return _0x4a9b26&&(cachedConfig=_0x4a9b26,cacheTime=_0x51234e),_0x4a9b26;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +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_0x526cb1=a125_0x2e4a;(function(_0xd9257b,_0x9b4a5e){const _0x4dce39=a125_0x2e4a,_0x40a4c8=_0xd9257b();while(!![]){try{const _0x5efa1f=parseInt(_0x4dce39(0x141))/0x1*(-parseInt(_0x4dce39(0x14f))/0x2)+parseInt(_0x4dce39(0x12e))/0x3*(parseInt(_0x4dce39(0x138))/0x4)+-parseInt(_0x4dce39(0x12f))/0x5+parseInt(_0x4dce39(0x153))/0x6*(-parseInt(_0x4dce39(0x13f))/0x7)+parseInt(_0x4dce39(0x145))/0x8+parseInt(_0x4dce39(0x147))/0x9*(-parseInt(_0x4dce39(0x130))/0xa)+parseInt(_0x4dce39(0x13e))/0xb*(parseInt(_0x4dce39(0x140))/0xc);if(_0x5efa1f===_0x9b4a5e)break;else _0x40a4c8['push'](_0x40a4c8['shift']());}catch(_0x244be6){_0x40a4c8['push'](_0x40a4c8['shift']());}}}(a125_0x4ab9,0x664fa));import a125_0x4e4cfc from'node:fs';function a125_0x2e4a(_0x4a8437,_0xc3ca86){_0x4a8437=_0x4a8437-0x12c;const _0x4ab99f=a125_0x4ab9();let _0x2e4a13=_0x4ab99f[_0x4a8437];return _0x2e4a13;}import a125_0x5d03e5 from'node:path';import a125_0x572a02 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a125_0x526cb1(0x143);function a125_0x4ab9(){const _0x2f8078=['stableVersion','test','all','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','version','8ksRcQv','packageName','readFileSync','existsSync','\x1b[33m','\x20\x20\x20Stable\x20version:\x20','862422rhEFof','16023NIgTNA','144XLLMAZ','23473ahKIlZ','@lovrabet/sdk','1.2.0','dependencies','3779536jrarcs','minVersion','1948113hkgaqS','utf8','latest','parse','npm\x20install\x20','node','utf-8','join','24UFccyr','package.json','coerce','log','450pXuDzP','some','needsUpgrade','sdk','node_modules','576141DcAezn','2460145tZZpHL','20miLDoH','\x1b[1m'];a125_0x4ab9=function(){return _0x2f8078;};return a125_0x4ab9();}function isNonNumericVersion(_0x444f17){const _0xa8f515=a125_0x526cb1,_0x33cea4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x33cea4[_0xa8f515(0x154)](_0x460ec5=>_0x460ec5[_0xa8f515(0x133)](_0x444f17));}function getInstalledVersion(_0x3ef340,_0xf229e4){const _0x1b8235=a125_0x526cb1;try{const _0x207b66=a125_0x5d03e5[_0x1b8235(0x14e)](_0x3ef340,_0x1b8235(0x12d),_0xf229e4,'package.json');if(a125_0x4e4cfc['existsSync'](_0x207b66)){const _0x4252e0=JSON[_0x1b8235(0x14a)](a125_0x4e4cfc[_0x1b8235(0x13a)](_0x207b66,_0x1b8235(0x14d)));return _0x4252e0[_0x1b8235(0x137)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3b8b03=a125_0x526cb1;try{const _0x590766=await getCdnConfig();return _0x590766?.[_0x3b8b03(0x12c)]?.[_0x3b8b03(0x14c)]?.[_0x3b8b03(0x132)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x55d8dd=a125_0x526cb1;try{const _0x1f294b=await getCdnConfig();return _0x1f294b?.[_0x55d8dd(0x12c)]?.['node']?.[_0x55d8dd(0x139)]||_0x55d8dd(0x142);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3a69f5){const _0x359015=a125_0x526cb1,_0x4cfd2a=a125_0x5d03e5[_0x359015(0x14e)](_0x3a69f5,_0x359015(0x150)),[_0x258fb2,_0x1fe836]=await Promise[_0x359015(0x134)]([getSdkStableVersion(),getSdkPackageName()]),_0x2343d5=_0x258fb2||FALLBACK_MIN_SDK_VERSION;if(!a125_0x4e4cfc[_0x359015(0x13b)](_0x4cfd2a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};try{const _0xbbbe32=JSON[_0x359015(0x14a)](a125_0x4e4cfc[_0x359015(0x13a)](_0x4cfd2a,_0x359015(0x148))),_0x134b06=_0xbbbe32[_0x359015(0x144)]||{},_0x46ea29=_0xbbbe32['devDependencies']||{},_0x3e0124=_0x134b06[_0x1fe836]||_0x46ea29[_0x1fe836];if(!_0x3e0124)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};let _0x45a6b6=getInstalledVersion(_0x3a69f5,_0x1fe836);!_0x45a6b6&&(_0x45a6b6=_0x3e0124);if(isNonNumericVersion(_0x3e0124))return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};const _0xbfbe95=a125_0x572a02['coerce'](_0x45a6b6),_0xa15d8b=a125_0x572a02[_0x359015(0x151)](_0x2343d5),_0x3705bb=_0xbfbe95&&_0xa15d8b?a125_0x572a02['lt'](_0xbfbe95,_0xa15d8b):![];return{'installed':!![],'version':_0x45a6b6,'needsUpgrade':_0x3705bb,'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2343d5,'packageName':_0x1fe836,'stableVersion':_0x258fb2};}}export function checkSdkVersionSync(_0x1c31d5){const _0x1a4ee7=a125_0x526cb1,_0xbea49d=a125_0x5d03e5[_0x1a4ee7(0x14e)](_0x1c31d5,'package.json'),_0x42967c='@lovrabet/sdk';if(!a125_0x4e4cfc[_0x1a4ee7(0x13b)](_0xbea49d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};try{const _0x2009a3=JSON[_0x1a4ee7(0x14a)](a125_0x4e4cfc[_0x1a4ee7(0x13a)](_0xbea49d,'utf8')),_0x13a3b9=_0x2009a3[_0x1a4ee7(0x144)]||{},_0x5b6a42=_0x2009a3['devDependencies']||{},_0x20e261=_0x13a3b9[_0x42967c]||_0x5b6a42[_0x42967c];if(!_0x20e261)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};let _0x2f9e16=getInstalledVersion(_0x1c31d5,_0x42967c);!_0x2f9e16&&(_0x2f9e16=_0x20e261);if(isNonNumericVersion(_0x20e261))return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};const _0x16575d=a125_0x572a02['coerce'](_0x2f9e16),_0x28d257=_0x16575d?a125_0x572a02['lt'](_0x16575d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2f9e16,'needsUpgrade':_0x28d257,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x42967c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ae251){const _0x209271=a125_0x526cb1;if(!_0x2ae251[_0x209271(0x155)])return;const _0x193105=_0x209271(0x13c),_0xe36ffa=_0x209271(0x135),_0x264e31=_0x209271(0x131),_0x5095c2=_0x2ae251['packageName']||_0x209271(0x142),_0x22e129=_0x2ae251[_0x209271(0x132)]||_0x2ae251[_0x209271(0x146)],_0x57f540=_0x209271(0x14b)+_0x5095c2+'@'+(_0x22e129||_0x209271(0x149));console['log'](),console[_0x209271(0x152)](''+_0x193105+_0x264e31+'↪\x20SDK\x20update\x20available'+_0xe36ffa),console[_0x209271(0x152)](_0x193105+'\x20\x20\x20Current\x20version:\x20'+_0x5095c2+'@'+_0x2ae251[_0x209271(0x137)]+_0xe36ffa),console[_0x209271(0x152)](_0x193105+_0x209271(0x13d)+_0x22e129+_0xe36ffa),console['log'](_0x193105+_0x209271(0x136)+_0x57f540+_0xe36ffa),console['log']();}
@@ -1 +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(_0x322cda,_0x48d62e){const _0xb6a9f9=a126_0x50b9,_0x10c7f7=_0x322cda();while(!![]){try{const _0x1d5832=parseInt(_0xb6a9f9(0x200))/0x1+-parseInt(_0xb6a9f9(0x1f6))/0x2*(parseInt(_0xb6a9f9(0x1fa))/0x3)+parseInt(_0xb6a9f9(0x1fd))/0x4*(-parseInt(_0xb6a9f9(0x1fe))/0x5)+parseInt(_0xb6a9f9(0x1f8))/0x6+-parseInt(_0xb6a9f9(0x1f7))/0x7+-parseInt(_0xb6a9f9(0x1e8))/0x8*(-parseInt(_0xb6a9f9(0x1eb))/0x9)+-parseInt(_0xb6a9f9(0x1f0))/0xa*(-parseInt(_0xb6a9f9(0x1f1))/0xb);if(_0x1d5832===_0x48d62e)break;else _0x10c7f7['push'](_0x10c7f7['shift']());}catch(_0x18d668){_0x10c7f7['push'](_0x10c7f7['shift']());}}}(a126_0x2f2f,0x3cc21));import{readFileSync}from'node:fs';function a126_0x50b9(_0x9c9c4,_0x571467){_0x9c9c4=_0x9c9c4-0x1e6;const _0x2f2fc3=a126_0x2f2f();let _0x50b966=_0x2f2fc3[_0x9c9c4];return _0x50b966;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a126_0x1491af from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a126_0x2f2f(){const _0x3de7c2=['currentVersion','cli','390yWogqa','66077nAUQbZ','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','utf-8','coerce','18tgLpNr','2356277akTvMc','2864268qJcjpA','parse','78108gRUhkq','\x20\x20\x20Upgrade\x20command:\x20','log','1828GNapfx','3530WTCZCR','../..','82064wuWiur','stableVersion','\x1b[1m','2789816ZqJidR','\x1b[33m','test','9NgYvpn','1.0.0','@latest'];a126_0x2f2f=function(){return _0x3de7c2;};return a126_0x2f2f();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x2e97e7=a126_0x50b9;try{const _0x4f2974=fileURLToPath(import.meta.url),_0x12d7db=resolve(dirname(_0x4f2974),_0x2e97e7(0x1ff)),_0x1f9ba7=resolve(_0x12d7db,'package.json'),_0x50fb6a=JSON[_0x2e97e7(0x1f9)](readFileSync(_0x1f9ba7,_0x2e97e7(0x1f4)));return _0x50fb6a['version']||_0x2e97e7(0x1ec);}catch{return _0x2e97e7(0x1ec);}}function isNonNumericVersion(_0x54fc0e){const _0x30da5a=a126_0x50b9,_0x1a2d74=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x1a2d74['some'](_0x178c89=>_0x178c89[_0x30da5a(0x1ea)](_0x54fc0e));}export async function checkCliVersion(){const _0x53cc04=a126_0x50b9,_0x52991f=getCurrentCliVersion(),_0x681b1f=await getCdnConfig(),_0xb37338=_0x681b1f?.[_0x53cc04(0x1ef)]?.[_0x53cc04(0x1e6)]||null;let _0x577c96=![];if(_0xb37338)try{const _0x552f67=a126_0x1491af[_0x53cc04(0x1f5)](_0x52991f),_0x33dd65=a126_0x1491af[_0x53cc04(0x1f5)](_0xb37338);_0x552f67&&_0x33dd65&&(_0x577c96=a126_0x1491af['lt'](_0x552f67,_0x33dd65));}catch{_0x577c96=![];}return{'currentVersion':_0x52991f,'stableVersion':_0xb37338,'needsUpgrade':_0x577c96,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42aac5){const _0x2a51b3=a126_0x50b9;if(!_0x42aac5['needsUpgrade'])return;const _0x561368=_0x2a51b3(0x1e9),_0x3f19ee='\x1b[0m',_0x5f49a5=_0x2a51b3(0x1e7),_0x483c75='npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x2a51b3(0x1ed);console['log'](),console['log'](''+_0x561368+_0x5f49a5+_0x2a51b3(0x1f2)+_0x3f19ee),console['log'](_0x561368+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x42aac5[_0x2a51b3(0x1ee)]+_0x3f19ee),console[_0x2a51b3(0x1fc)](_0x561368+_0x2a51b3(0x1f3)+_0x42aac5['stableVersion']+_0x3f19ee),console['log'](_0x561368+_0x2a51b3(0x1fb)+_0x483c75+_0x3f19ee),console[_0x2a51b3(0x1fc)]();}
@@ -1 +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
+ function a127_0x13d5(){const _0x56a62c=['apiDir','project','205zeyfLU','string','object','12iEtTPT','49256aqihDK','filter','map','merged','612mPKuFz','keys','77ICjBZT','apps','env','1660869dZgezW','defaultApp','values','template_base_url','168724ZATBVU','trim','894310jxboEn','length','appcode','entries','148584JMtwTF','396097KYrkHh','https://g.lovrabet.com/dist/lovrabet-skill','app','65370aoWglJ'];a127_0x13d5=function(){return _0x56a62c;};return a127_0x13d5();}const a127_0x20cc2b=a127_0x4fa6;(function(_0x5fca22,_0x43ece9){const _0x58c71c=a127_0x4fa6,_0x25c855=_0x5fca22();while(!![]){try{const _0x281c69=-parseInt(_0x58c71c(0x1bf))/0x1+parseInt(_0x58c71c(0x1aa))/0x2*(-parseInt(_0x58c71c(0x1be))/0x3)+parseInt(_0x58c71c(0x1b8))/0x4+-parseInt(_0x58c71c(0x1a7))/0x5*(-parseInt(_0x58c71c(0x1c2))/0x6)+parseInt(_0x58c71c(0x1b4))/0x7+-parseInt(_0x58c71c(0x1ab))/0x8*(parseInt(_0x58c71c(0x1af))/0x9)+-parseInt(_0x58c71c(0x1ba))/0xa*(-parseInt(_0x58c71c(0x1b1))/0xb);if(_0x281c69===_0x43ece9)break;else _0x25c855['push'](_0x25c855['shift']());}catch(_0x3597d5){_0x25c855['push'](_0x25c855['shift']());}}}(a127_0x13d5,0x3aa5b));import{initEnv}from'../constant/env.js';function a127_0x4fa6(_0x3b0d95,_0x1f3fde){_0x3b0d95=_0x3b0d95-0x1a5;const _0x13d597=a127_0x13d5();let _0x4fa6ae=_0x13d597[_0x3b0d95];return _0x4fa6ae;}import{readRawConfig,loadRawConfigLayers}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x918a0){const _0x2d216b=a127_0x4fa6,_0x51d6b3=readRawConfig(_0x918a0);return _0x51d6b3[_0x2d216b(0x1b3)]&&typeof _0x51d6b3['env']===_0x2d216b(0x1a8)&&initEnv(_0x51d6b3[_0x2d216b(0x1b3)]),_0x51d6b3;}export function getConfigAppCode(){const _0x17b2a1=a127_0x4fa6,_0x1490c4=readRawConfig();if(_0x1490c4[_0x17b2a1(0x1b2)]&&typeof _0x1490c4[_0x17b2a1(0x1b2)]===_0x17b2a1(0x1a9)){const _0x2c5a6d=_0x1490c4[_0x17b2a1(0x1b5)];if(_0x2c5a6d&&_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d]?.[_0x17b2a1(0x1bc)])return String(_0x1490c4[_0x17b2a1(0x1b2)][_0x2c5a6d][_0x17b2a1(0x1bc)])[_0x17b2a1(0x1b9)]();const _0x421210=Object[_0x17b2a1(0x1b6)](_0x1490c4[_0x17b2a1(0x1b2)])[0x0];if(_0x421210?.[_0x17b2a1(0x1bc)])return String(_0x421210[_0x17b2a1(0x1bc)])['trim']();}const _0x3e93db=_0x1490c4[_0x17b2a1(0x1bc)]||_0x1490c4[_0x17b2a1(0x1c1)];if(typeof _0x3e93db!==_0x17b2a1(0x1a8)||_0x3e93db[_0x17b2a1(0x1b9)]()==='')return undefined;return _0x3e93db[_0x17b2a1(0x1b9)]();}export function getMultiAppConfigs(_0x15b842=a127_0x20cc2b(0x1a6)){const _0x5ef69c=a127_0x20cc2b,_0x120d5a=_0x15b842===_0x5ef69c(0x1ae)?readRawConfig():loadRawConfigLayers()['projectConfig'],_0x245ab1=_0x120d5a[_0x5ef69c(0x1b2)];if(!_0x245ab1||typeof _0x245ab1!==_0x5ef69c(0x1a9)||Object[_0x5ef69c(0x1b0)](_0x245ab1)[_0x5ef69c(0x1bb)]===0x0)return null;const _0x18eaf=_0x120d5a['defaultApp'];return Object[_0x5ef69c(0x1bd)](_0x245ab1)[_0x5ef69c(0x1ad)](([_0x154bbc,_0x35aeeb])=>({'name':_0x154bbc,'appcode':_0x35aeeb?.[_0x5ef69c(0x1bc)]||'','isDefault':_0x154bbc===_0x18eaf,'env':_0x35aeeb?.[_0x5ef69c(0x1b3)],'apiDir':_0x35aeeb?.[_0x5ef69c(0x1a5)],'cookie':_0x35aeeb?.['cookie']||undefined}))[_0x5ef69c(0x1ac)](_0x2faa9f=>_0x2faa9f['appcode']);}export function getTemplateBaseUrl(){const _0x286937=a127_0x20cc2b,_0x1d1c2a=readRawConfig();if(_0x1d1c2a['template_base_url']&&typeof _0x1d1c2a[_0x286937(0x1b7)]===_0x286937(0x1a8))return _0x1d1c2a[_0x286937(0x1b7)]['replace'](/\/$/,'');return _0x286937(0x1c0);}
@@ -1 +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(_0x4ba708,_0x148400){const _0x738a6f=a128_0x372c,_0x30921c=_0x4ba708();while(!![]){try{const _0x1e53b2=-parseInt(_0x738a6f(0x119))/0x1*(parseInt(_0x738a6f(0x10d))/0x2)+-parseInt(_0x738a6f(0x10e))/0x3+-parseInt(_0x738a6f(0x112))/0x4+-parseInt(_0x738a6f(0x117))/0x5*(parseInt(_0x738a6f(0x116))/0x6)+parseInt(_0x738a6f(0x10f))/0x7*(-parseInt(_0x738a6f(0x111))/0x8)+-parseInt(_0x738a6f(0x114))/0x9*(-parseInt(_0x738a6f(0x11b))/0xa)+parseInt(_0x738a6f(0x11a))/0xb;if(_0x1e53b2===_0x148400)break;else _0x30921c['push'](_0x30921c['shift']());}catch(_0x111536){_0x30921c['push'](_0x30921c['shift']());}}}(a128_0x1eca,0x27bf9));import a128_0x19bff8 from'node:path';import a128_0x4882f5 from'node:fs';function a128_0x372c(_0x11bc17,_0xe32f0f){_0x11bc17=_0x11bc17-0x109;const _0x1eca23=a128_0x1eca();let _0x372c8b=_0x1eca23[_0x11bc17];return _0x372c8b;}export async function copyDirectory(_0x1f4a5e,_0x5464b2){const _0x48e906=a128_0x372c;try{const _0x3d2ccf=a128_0x4882f5[_0x48e906(0x110)](_0x1f4a5e,{'withFileTypes':!![]});a128_0x4882f5[_0x48e906(0x10b)](_0x5464b2,{'recursive':!![]});for(const _0x42e452 of _0x3d2ccf){const _0x39ca2f=a128_0x19bff8[_0x48e906(0x118)](_0x1f4a5e,_0x42e452['name']),_0x51180e=a128_0x19bff8['join'](_0x5464b2,_0x42e452[_0x48e906(0x10c)]);_0x42e452[_0x48e906(0x113)]()?await copyDirectory(_0x39ca2f,_0x51180e):a128_0x4882f5[_0x48e906(0x10a)](_0x39ca2f,_0x51180e);}}catch(_0x298434){console[_0x48e906(0x115)](_0x48e906(0x109),_0x298434);}}function a128_0x1eca(){const _0x32dad5=['18uHNZMF','error','1377246xRCZbn','5rgpFfJ','join','8517xCZQlc','8045444jfCpUC','1371100llciKp','复制目录时出错:','copyFileSync','mkdirSync','name','54bTVmKz','458268TVnQoL','1600431VaGlco','readdirSync','8EUOrbZ','7704qCtJWC','isDirectory'];a128_0x1eca=function(){return _0x32dad5;};return a128_0x1eca();}
@@ -1 +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(_0x36d548,_0x215c5b){const _0x457264=a129_0x4531,_0x1ac43d=_0x36d548();while(!![]){try{const _0xd6bf94=-parseInt(_0x457264(0x133))/0x1+-parseInt(_0x457264(0x136))/0x2+parseInt(_0x457264(0x130))/0x3+parseInt(_0x457264(0x137))/0x4+-parseInt(_0x457264(0x135))/0x5*(parseInt(_0x457264(0x131))/0x6)+-parseInt(_0x457264(0x132))/0x7*(-parseInt(_0x457264(0x12f))/0x8)+parseInt(_0x457264(0x134))/0x9;if(_0xd6bf94===_0x215c5b)break;else _0x1ac43d['push'](_0x1ac43d['shift']());}catch(_0x130998){_0x1ac43d['push'](_0x1ac43d['shift']());}}}(a129_0x55b4,0x319de));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a129_0x4531(_0x468e12,_0x4f6afd){_0x468e12=_0x468e12-0x12f;const _0x55b4a0=a129_0x55b4();let _0x4531b5=_0x55b4a0[_0x468e12];return _0x4531b5;}export async function copyDir(_0x20f6b7,_0x260cce){const _0x2f96ad=statSync(_0x20f6b7);if(_0x2f96ad['isDirectory']()){!existsSync(_0x260cce)&&mkdirSync(_0x260cce,{'recursive':!![]});const _0x1a9d1d=readdirSync(_0x20f6b7);for(const _0x3b2d7e of _0x1a9d1d){await copyDir(join(_0x20f6b7,_0x3b2d7e),join(_0x260cce,_0x3b2d7e));}}else copyFileSync(_0x20f6b7,_0x260cce);}function a129_0x55b4(){const _0x2debfa=['1708416WEwIsk','15qmphKT','535788XQYbgG','1596292MymIeV','5944BrYyIF','167955dAozXf','31266CFLXLj','1484myQVSe','315641OipKeL'];a129_0x55b4=function(){return _0x2debfa;};return a129_0x55b4();}export function ensureDir(_0x4ddf77){!existsSync(_0x4ddf77)&&mkdirSync(_0x4ddf77,{'recursive':!![]});}export function pathExists(_0x5ab459){return existsSync(_0x5ab459);}
@@ -1 +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
+ const a130_0x33f606=a130_0x5c00;(function(_0x490898,_0xd5dec0){const _0x4cbfbd=a130_0x5c00,_0x57a43e=_0x490898();while(!![]){try{const _0x4fe23e=parseInt(_0x4cbfbd(0x110))/0x1+parseInt(_0x4cbfbd(0xf7))/0x2*(parseInt(_0x4cbfbd(0x10b))/0x3)+parseInt(_0x4cbfbd(0xfc))/0x4*(-parseInt(_0x4cbfbd(0x105))/0x5)+parseInt(_0x4cbfbd(0x10f))/0x6*(-parseInt(_0x4cbfbd(0x103))/0x7)+parseInt(_0x4cbfbd(0x111))/0x8*(parseInt(_0x4cbfbd(0x112))/0x9)+parseInt(_0x4cbfbd(0x10c))/0xa+-parseInt(_0x4cbfbd(0xfa))/0xb;if(_0x4fe23e===_0xd5dec0)break;else _0x57a43e['push'](_0x57a43e['shift']());}catch(_0xbf48be){_0x57a43e['push'](_0x57a43e['shift']());}}}(a130_0x3daf,0xd43a5));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a130_0x3daf(){const _0x4c4592=['206200zYZziC','333AbHWYs','replace','map','application/json','guides','.lovrabet','content','CDN\x20请求失败:\x20','.md','utf-8','620038fBxvAN','CDN\x20返回数据格式错误','json','8542424tttEKE','length','4mxFwSa','/skills/guides.json','skillTemplate','title','status','join','push','21wcQupT','CDN\x20数据中缺少\x20skillTemplate','7372965isBHaG','extendContent','entries','cache','lastUpdated','\x0a\x0a>更新时间:','3okmAke','10171290jOfupN','trimEnd','.lovrabet/skill/guides','219894OqhGvO','949586ejQvwB'];a130_0x3daf=function(){return _0x4c4592;};return a130_0x3daf();}function getGuidesCdnUrl(){const _0x20977e=a130_0x5c00,_0x2075eb=getTemplateBaseUrl();return _0x2075eb+_0x20977e(0xfd);}const CACHE_DIR=join(homedir(),a130_0x33f606(0xf2),a130_0x33f606(0x108));export async function fetchGuidesFromCDN(){const _0x268371=a130_0x33f606,_0x12418c=getGuidesCdnUrl(),_0x657d6a=await fetch(_0x12418c,{'headers':{'Accept':_0x268371(0xf0)}});if(!_0x657d6a['ok'])throw new Error(_0x268371(0xf4)+_0x657d6a[_0x268371(0x100)]+'\x20'+_0x657d6a['statusText']);const _0x28bdb3=await _0x657d6a[_0x268371(0xf9)]();if(!_0x28bdb3[_0x268371(0xf1)]||typeof _0x28bdb3['guides']!=='object')throw new Error(_0x268371(0xf8));return _0x28bdb3;}export function writeGuidesToProject(_0x300033,_0x12feca,_0x4898e8=a130_0x33f606(0x10e),_0x49c22c){const _0x37ac37=a130_0x33f606,_0x4090ba=join(_0x12feca,_0x4898e8);mkdirSync(_0x4090ba,{'recursive':!![]});for(const [_0x31b709,_0x2cb0e4]of Object[_0x37ac37(0x107)](_0x300033[_0x37ac37(0xf1)])){let _0x1899e3=_0x2cb0e4[_0x37ac37(0xf3)];_0x2cb0e4[_0x37ac37(0x109)]&&(_0x1899e3=appendUpdateTime(_0x1899e3,_0x2cb0e4[_0x37ac37(0x109)])),writeFileSync(join(_0x4090ba,_0x31b709+_0x37ac37(0xf5)),_0x1899e3,_0x37ac37(0xf6));}}function a130_0x5c00(_0x832a6d,_0x1c2ef9){_0x832a6d=_0x832a6d-0xf0;const _0x3daf0b=a130_0x3daf();let _0x5c00f6=_0x3daf0b[_0x832a6d];return _0x5c00f6;}export function appendUpdateTime(_0x5e17b3,_0x1cb3f2){const _0x3e2aba=a130_0x33f606;return _0x5e17b3=_0x5e17b3['replace'](/\n*>更新时间:.*$/m,''),_0x5e17b3['trimEnd']()+(_0x3e2aba(0x10a)+_0x1cb3f2);}export function getSkillTemplate(_0x4c688e){const _0x1e7e10=a130_0x33f606;return _0x4c688e[_0x1e7e10(0xfe)]?.[_0x1e7e10(0xf3)]||'';}export function appendExtendContents(_0x21fcfc,_0x21bb13,_0xfb55dc){const _0x5d0421=a130_0x33f606,_0x2ec679=[];for(const [,_0x525dec]of Object['entries'](_0x21bb13[_0x5d0421(0xf1)])){_0x525dec[_0x5d0421(0x106)]&&_0x2ec679[_0x5d0421(0x102)](_0x525dec['extendContent'][_0x5d0421(0x10d)]());}if(_0x2ec679[_0x5d0421(0xfb)]===0x0)return _0x21fcfc;return _0x21fcfc['trimEnd']()+'\x0a\x0a'+_0x2ec679[_0x5d0421(0x101)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49c68d,_0x3a1be9,_0x200c76){const _0x1d5185=a130_0x33f606,_0x2b923f=getSkillTemplate(_0x49c68d);if(!_0x2b923f)throw new Error(_0x1d5185(0x104));const _0x3331b8=dirname(_0x3a1be9);mkdirSync(_0x3331b8,{'recursive':!![]});let _0x48f34a=_0x2b923f[_0x1d5185(0x113)](/\{\{IDE_NAME\}\}/g,_0x200c76);_0x48f34a=appendExtendContents(_0x48f34a,_0x49c68d),_0x49c68d[_0x1d5185(0xfe)][_0x1d5185(0x109)]&&(_0x48f34a=appendUpdateTime(_0x48f34a,_0x49c68d['skillTemplate'][_0x1d5185(0x109)])),writeFileSync(_0x3a1be9,_0x48f34a,_0x1d5185(0xf6));}export async function installGuides(_0x2d3b68){const _0x10d4b6=a130_0x33f606,_0x538688=await fetchGuidesFromCDN();return writeGuidesToProject(_0x538688,_0x2d3b68),Object['keys'](_0x538688['guides'])[_0x10d4b6(0xfb)];}export function getGuidesSummary(_0x2fc53b){const _0x27bf05=a130_0x33f606;return Object[_0x27bf05(0x107)](_0x2fc53b[_0x27bf05(0xf1)])[_0x27bf05(0x114)](([_0x4a1aa0,_0x658a04])=>({'key':_0x4a1aa0,'title':_0x658a04[_0x27bf05(0xff)],'path':_0x658a04['path']}));}
@@ -1 +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 a131_0x4412(){const _0xfd550c=['ms\x20后进行第\x20','fetch','application/json','840wJtoiF','8oCLliL','abort','\x20次重试...','2840544MnsLZG','Request\x20failed','headers','77135gleEln','json','statusText','529670zrlcNH','includes','6209nHEfvJ','status','ECONNRESET','*\x20请求失败,','message','120846LJOxZI','1461825Hwfbqc','text','5562963ePvRbJ','name','12pMMDKU','TypeError','get','3642vzVCie'];a131_0x4412=function(){return _0xfd550c;};return a131_0x4412();}(function(_0x27d815,_0x2131e2){const _0x3778e5=a131_0x10bf,_0x5a9383=_0x27d815();while(!![]){try{const _0xf1a2e5=parseInt(_0x3778e5(0x81))/0x1*(-parseInt(_0x3778e5(0x90))/0x2)+parseInt(_0x3778e5(0x8c))/0x3+-parseInt(_0x3778e5(0x98))/0x4*(-parseInt(_0x3778e5(0x84))/0x5)+-parseInt(_0x3778e5(0x93))/0x6*(parseInt(_0x3778e5(0x86))/0x7)+parseInt(_0x3778e5(0x9b))/0x8+-parseInt(_0x3778e5(0x8e))/0x9+parseInt(_0x3778e5(0x97))/0xa*(parseInt(_0x3778e5(0x8b))/0xb);if(_0xf1a2e5===_0x2131e2)break;else _0x5a9383['push'](_0x5a9383['shift']());}catch(_0x40d26e){_0x5a9383['push'](_0x5a9383['shift']());}}}(a131_0x4412,0x5754d));export async function httpRequest(_0x4f1df7,_0x4283d7={}){const _0x5018fe=a131_0x10bf,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4283d7;let _0x10b010=null;for(let _0x17c935=0x0;_0x17c935<=retries;_0x17c935++){try{const _0xb9f20e=new AbortController(),_0xba7c2b=setTimeout(()=>_0xb9f20e[_0x5018fe(0x99)](),timeout),_0x315daa=await fetch(_0x4f1df7,{'headers':headers,'signal':_0xb9f20e['signal']});clearTimeout(_0xba7c2b);let _0x4f5644;const _0x5b06db=_0x315daa[_0x5018fe(0x80)][_0x5018fe(0x92)]('content-type');return _0x5b06db?.[_0x5018fe(0x85)](_0x5018fe(0x96))?_0x4f5644=await _0x315daa[_0x5018fe(0x82)]():_0x4f5644=await _0x315daa[_0x5018fe(0x8d)](),{'ok':_0x315daa['ok'],'status':_0x315daa[_0x5018fe(0x87)],'statusText':_0x315daa[_0x5018fe(0x83)],'data':_0x4f5644,'headers':_0x315daa[_0x5018fe(0x80)],'url':_0x315daa['url'],'text':()=>_0x315daa[_0x5018fe(0x8d)]()};}catch(_0x21baa8){_0x10b010=_0x21baa8 instanceof Error?_0x21baa8:new Error(String(_0x21baa8));if(_0x17c935===retries)break;if(shouldRetry(_0x21baa8)){console['log'](_0x5018fe(0x89)+retryDelay+_0x5018fe(0x94)+(_0x17c935+0x1)+_0x5018fe(0x9a)),await sleep(retryDelay);continue;}else break;}}throw _0x10b010||new Error(_0x5018fe(0x7f));}function shouldRetry(_0x3e0104){const _0x1cc80f=a131_0x10bf;if(_0x3e0104 instanceof Error){if(_0x3e0104['name']==='AbortError')return![];if(_0x3e0104[_0x1cc80f(0x8f)]===_0x1cc80f(0x91)&&_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)](_0x1cc80f(0x95)))return!![];if(_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)](_0x1cc80f(0x88)))return!![];if(_0x3e0104[_0x1cc80f(0x8a)][_0x1cc80f(0x85)]('ENOTFOUND'))return![];}return![];}function a131_0x10bf(_0x3184fc,_0x1c8a94){_0x3184fc=_0x3184fc-0x7f;const _0x4412da=a131_0x4412();let _0x10bf13=_0x4412da[_0x3184fc];return _0x10bf13;}function sleep(_0x2fcf4d){return new Promise(_0x1b0c50=>setTimeout(_0x1b0c50,_0x2fcf4d));}export function validateUrl(_0x5a800c){try{return new URL(_0x5a800c),!![];}catch{return![];}}
@@ -1 +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(_0xd67785,_0x102776){const _0x13e082=a132_0x57fa,_0x5a177e=_0xd67785();while(!![]){try{const _0x8f9968=-parseInt(_0x13e082(0x1df))/0x1+parseInt(_0x13e082(0x1db))/0x2*(parseInt(_0x13e082(0x1e3))/0x3)+parseInt(_0x13e082(0x1e7))/0x4*(-parseInt(_0x13e082(0x1dc))/0x5)+parseInt(_0x13e082(0x1dd))/0x6*(parseInt(_0x13e082(0x1e0))/0x7)+-parseInt(_0x13e082(0x1de))/0x8*(parseInt(_0x13e082(0x1e9))/0x9)+parseInt(_0x13e082(0x1e8))/0xa+parseInt(_0x13e082(0x1e1))/0xb;if(_0x8f9968===_0x102776)break;else _0x5a177e['push'](_0x5a177e['shift']());}catch(_0x88623b){_0x5a177e['push'](_0x5a177e['shift']());}}}(a132_0x3bf4,0xb1390));function env(_0x4b6697){return process.env[`RABETBASE_${_0x4b6697}`]||process.env[`LOVRABET_${_0x4b6697}`]||undefined;}function a132_0x3bf4(){const _0x3d37f2=['747728lgQNlz','235108yxIdJz','63PgTXux','3182674wxBLEW','stdout','19866fcHzlS','true','isTTY','setRawMode','9136YwStTr','9041870AkkKAm','117yhIHSf','stdin','292lsVuGS','1340NszaqF','418566yNrmYh'];a132_0x3bf4=function(){return _0x3d37f2;};return a132_0x3bf4();}function a132_0x57fa(_0xf6e715,_0x21550c){_0xf6e715=_0xf6e715-0x1da;const _0x3bf47f=a132_0x3bf4();let _0x57fad8=_0x3bf47f[_0xf6e715];return _0x57fad8;}export function isNonInteractive(_0x5984da){const _0x3a93da=a132_0x57fa;return!!(_0x5984da['nonInteractive']||_0x5984da['ci']||env('CI')===_0x3a93da(0x1e4)||process.env.CI===_0x3a93da(0x1e4)||!process[_0x3a93da(0x1e2)][_0x3a93da(0x1e5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x531ecb=a132_0x57fa;if(!process[_0x531ecb(0x1da)][_0x531ecb(0x1e5)])return![];try{const _0x23faa6=process[_0x531ecb(0x1da)]['isRaw'];return process['stdin'][_0x531ecb(0x1e6)](!![]),process[_0x531ecb(0x1da)][_0x531ecb(0x1e6)](_0x23faa6??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a132_0x84c3ba=a132_0x2b76;(function(_0x281b66,_0x3a7f65){const _0x2bc651=a132_0x2b76,_0xfb6854=_0x281b66();while(!![]){try{const _0x7f317a=parseInt(_0x2bc651(0x15c))/0x1+-parseInt(_0x2bc651(0x163))/0x2*(-parseInt(_0x2bc651(0x156))/0x3)+parseInt(_0x2bc651(0x17d))/0x4+-parseInt(_0x2bc651(0x15a))/0x5+parseInt(_0x2bc651(0x160))/0x6+parseInt(_0x2bc651(0x158))/0x7+-parseInt(_0x2bc651(0x17e))/0x8;if(_0x7f317a===_0x3a7f65)break;else _0xfb6854['push'](_0xfb6854['shift']());}catch(_0x232ff1){_0xfb6854['push'](_0xfb6854['shift']());}}}(a132_0x3c9e,0x4c37a));function a132_0x3c9e(){const _0x7a2070=['addColors','writeFileSync','log','command','details','完成:\x20','8628WCOUaf','map','1509599SYVsuf','timestamp','71495GOpQrT','getWinstonInstance','440870MNcUfD','level','setRawCommand','existsSync','1025604QDVTaQ','utf8','parse','106TSXdfl','失败:\x20','mkdirSync','initWinstonLogger','rawCommand','toISOString','error','printf','info','blue','transports','winstonLogger','Failed\x20to\x20clear\x20logs:','clearLogs','errors','.lovrabet.log','format','clear','message','success','stringify','warn','now','readFileSync','red','green','495404EvARzX','6218040enqLnR','logFilePath','Failed\x20to\x20read\x20logs:','currentRawCommand','dirname','logTask','split','combine'];a132_0x3c9e=function(){return _0x7a2070;};return a132_0x3c9e();}import a132_0x2018c2 from'winston';function a132_0x2b76(_0x1b6824,_0x509855){_0x1b6824=_0x1b6824-0x155;const _0x3c9e0d=a132_0x3c9e();let _0x2b76c8=_0x3c9e0d[_0x1b6824];return _0x2b76c8;}import a132_0x5dd394 from'node:fs';import a132_0x3d0ca7 from'node:path';class Logger{[a132_0x84c3ba(0x16e)];[a132_0x84c3ba(0x17f)];['currentRawCommand']='';constructor(){const _0xb97426=a132_0x84c3ba;this[_0xb97426(0x17f)]='';}[a132_0x84c3ba(0x15e)](_0x58f6cc){const _0x630a17=a132_0x84c3ba;this[_0x630a17(0x181)]=_0x58f6cc;}[a132_0x84c3ba(0x166)](){const _0x33c43e=a132_0x84c3ba,_0x3fecfc=a132_0x3d0ca7[_0x33c43e(0x182)](this[_0x33c43e(0x17f)]);!a132_0x5dd394[_0x33c43e(0x15f)](_0x3fecfc)&&a132_0x5dd394[_0x33c43e(0x165)](_0x3fecfc,{'recursive':!![]});const _0x454db0=a132_0x2018c2['format'][_0x33c43e(0x185)](a132_0x2018c2[_0x33c43e(0x173)][_0x33c43e(0x159)](),a132_0x2018c2['format'][_0x33c43e(0x171)]({'stack':!![]}),a132_0x2018c2[_0x33c43e(0x173)][_0x33c43e(0x16a)](_0x4de3c0=>{const _0x4a1080=_0x33c43e,_0x5179e0={'timestamp':_0x4de3c0['timestamp']||new Date()[_0x4a1080(0x168)](),'level':_0x4de3c0[_0x4a1080(0x15d)]||'info','command':_0x4de3c0[_0x4a1080(0x189)]||'unknown','rawCommand':_0x4de3c0[_0x4a1080(0x167)]||this[_0x4a1080(0x181)]||undefined,'message':_0x4de3c0[_0x4a1080(0x175)]||'','duration':_0x4de3c0['duration']||undefined,'details':_0x4de3c0[_0x4a1080(0x18a)]||undefined};return JSON[_0x4a1080(0x177)](_0x5179e0);}));this[_0x33c43e(0x16e)]=a132_0x2018c2['createLogger']({'level':_0x33c43e(0x16b),'format':_0x454db0,'transports':[new a132_0x2018c2[(_0x33c43e(0x16d))]['File']({'filename':this[_0x33c43e(0x17f)],'level':'info'})],'silent':![]}),a132_0x2018c2[_0x33c43e(0x186)]({'success':_0x33c43e(0x17c),'error':_0x33c43e(0x17b),'warn':'yellow','info':_0x33c43e(0x16c)});}['setLogPath'](_0x28296a){const _0x1ef9f7=a132_0x84c3ba;this[_0x1ef9f7(0x17f)]=a132_0x3d0ca7['join'](_0x28296a,_0x1ef9f7(0x172)),this[_0x1ef9f7(0x16e)]&&this[_0x1ef9f7(0x16e)][_0x1ef9f7(0x174)](),this[_0x1ef9f7(0x166)]();}[a132_0x84c3ba(0x16b)](_0x12821a,_0xeb051a,_0x2cce85){const _0x7ee822=a132_0x84c3ba;if(!this[_0x7ee822(0x17f)]||!this['winstonLogger'])return;this[_0x7ee822(0x16e)][_0x7ee822(0x16b)](_0xeb051a,{'command':_0x12821a,'details':_0x2cce85});}['success'](_0xf3f5c4,_0x2e996c,_0x3ad1f5,_0x176f4d){const _0x78dbf0=a132_0x84c3ba;if(!this['logFilePath']||!this[_0x78dbf0(0x16e)])return;this['winstonLogger'][_0x78dbf0(0x188)](_0x78dbf0(0x16b),_0x2e996c,{'level':_0x78dbf0(0x176),'command':_0xf3f5c4,'duration':_0x3ad1f5,'details':_0x176f4d});}['error'](_0x4110cf,_0x11ac4a,_0x4316ed){const _0x27d1ff=a132_0x84c3ba;if(!this[_0x27d1ff(0x17f)]||!this[_0x27d1ff(0x16e)])return;this[_0x27d1ff(0x16e)][_0x27d1ff(0x169)](_0x11ac4a,{'command':_0x4110cf,'details':_0x4316ed});}[a132_0x84c3ba(0x178)](_0x28f65c,_0x2327fc,_0x1c045a){const _0x303fb7=a132_0x84c3ba;if(!this[_0x303fb7(0x17f)]||!this['winstonLogger'])return;this[_0x303fb7(0x16e)]['warn'](_0x2327fc,{'command':_0x28f65c,'details':_0x1c045a});}async[a132_0x84c3ba(0x183)](_0x37255a,_0x471850,_0x256baf){const _0x2ee199=a132_0x84c3ba,_0x9f9b47=Date['now']();this[_0x2ee199(0x16b)](_0x37255a,'开始执行:\x20'+_0x471850);try{const _0x154e99=await _0x256baf(),_0xf01c69=Date[_0x2ee199(0x179)]()-_0x9f9b47;return this[_0x2ee199(0x176)](_0x37255a,_0x2ee199(0x155)+_0x471850,_0xf01c69),_0x154e99;}catch(_0xe3cee8){const _0x58732c=Date['now']()-_0x9f9b47;this[_0x2ee199(0x169)](_0x37255a,_0x2ee199(0x164)+_0x471850,{'error':_0xe3cee8 instanceof Error?_0xe3cee8[_0x2ee199(0x175)]:String(_0xe3cee8),'duration':_0x58732c});throw _0xe3cee8;}}['readLogs'](){const _0x19bf66=a132_0x84c3ba;try{if(!a132_0x5dd394[_0x19bf66(0x15f)](this[_0x19bf66(0x17f)]))return[];const _0x153825=a132_0x5dd394[_0x19bf66(0x17a)](this[_0x19bf66(0x17f)],'utf8');return _0x153825[_0x19bf66(0x184)]('\x0a')['filter'](_0x3b9156=>_0x3b9156['trim']())[_0x19bf66(0x157)](_0x11fe25=>JSON[_0x19bf66(0x162)](_0x11fe25));}catch(_0x5dbaab){return console['warn'](_0x19bf66(0x180),_0x5dbaab),[];}}[a132_0x84c3ba(0x170)](){const _0x1c2a70=a132_0x84c3ba;try{a132_0x5dd394[_0x1c2a70(0x15f)](this[_0x1c2a70(0x17f)])&&a132_0x5dd394[_0x1c2a70(0x187)](this[_0x1c2a70(0x17f)],'',_0x1c2a70(0x161));}catch(_0x13905a){console[_0x1c2a70(0x178)](_0x1c2a70(0x16f),_0x13905a);}}[a132_0x84c3ba(0x15b)](){const _0x3e4b8a=a132_0x84c3ba;return this[_0x3e4b8a(0x16e)];}}export const logger=new Logger();
1
+ const a133_0x158dc6=a133_0x36d9;(function(_0x1224e2,_0x1d9614){const _0x80ed2=a133_0x36d9,_0x28574f=_0x1224e2();while(!![]){try{const _0x4e2aa0=parseInt(_0x80ed2(0x1d7))/0x1*(parseInt(_0x80ed2(0x1c5))/0x2)+-parseInt(_0x80ed2(0x1dd))/0x3+parseInt(_0x80ed2(0x1b3))/0x4+parseInt(_0x80ed2(0x1e3))/0x5*(-parseInt(_0x80ed2(0x1e1))/0x6)+-parseInt(_0x80ed2(0x1b4))/0x7+-parseInt(_0x80ed2(0x1c2))/0x8*(-parseInt(_0x80ed2(0x1b8))/0x9)+parseInt(_0x80ed2(0x1cd))/0xa*(parseInt(_0x80ed2(0x1c4))/0xb);if(_0x4e2aa0===_0x1d9614)break;else _0x28574f['push'](_0x28574f['shift']());}catch(_0x54033e){_0x28574f['push'](_0x28574f['shift']());}}}(a133_0x5051,0xdbba4));import a133_0x1e97b5 from'winston';function a133_0x36d9(_0x2b7f0c,_0x3df114){_0x2b7f0c=_0x2b7f0c-0x1ae;const _0x505183=a133_0x5051();let _0x36d920=_0x505183[_0x2b7f0c];return _0x36d920;}import a133_0x5089dc from'node:fs';import a133_0x1db3bd from'node:path';function a133_0x5051(){const _0x109410=['logFilePath','10016420SfEQEq','mkdirSync','split','join','writeFileSync','format','toISOString','green','info','开始执行:\x20','1895whbLiC','details','blue','printf','stringify','rawCommand','3238353yhOYzw','readFileSync','red','initWinstonLogger','1434006IKPeOX','完成:\x20','5lBrsBD','parse','filter','logTask','message','setLogPath','log','getWinstonInstance','success','3172164zZnjSA','11909373TJWNxq','duration','clearLogs','yellow','81HjxRrc','map','timestamp','existsSync','readLogs','.lovrabet.log','utf8','warn','level','transports','674504pyeFEo','Failed\x20to\x20read\x20logs:','11wipLlb','1442HLwgBU','clear','now','winstonLogger','File','dirname','command'];a133_0x5051=function(){return _0x109410;};return a133_0x5051();}class Logger{[a133_0x158dc6(0x1c8)];['logFilePath'];['currentRawCommand']='';constructor(){const _0x5baf9a=a133_0x158dc6;this[_0x5baf9a(0x1cc)]='';}['setRawCommand'](_0x18247e){this['currentRawCommand']=_0x18247e;}[a133_0x158dc6(0x1e0)](){const _0x371ce7=a133_0x158dc6,_0x2b98d5=a133_0x1db3bd[_0x371ce7(0x1ca)](this[_0x371ce7(0x1cc)]);!a133_0x5089dc['existsSync'](_0x2b98d5)&&a133_0x5089dc[_0x371ce7(0x1ce)](_0x2b98d5,{'recursive':!![]});const _0x3a1ed2=a133_0x1e97b5['format']['combine'](a133_0x1e97b5[_0x371ce7(0x1d2)][_0x371ce7(0x1ba)](),a133_0x1e97b5[_0x371ce7(0x1d2)]['errors']({'stack':!![]}),a133_0x1e97b5['format'][_0x371ce7(0x1da)](_0x130e46=>{const _0x477ac5=_0x371ce7,_0x33e051={'timestamp':_0x130e46[_0x477ac5(0x1ba)]||new Date()[_0x477ac5(0x1d3)](),'level':_0x130e46[_0x477ac5(0x1c0)]||_0x477ac5(0x1d5),'command':_0x130e46[_0x477ac5(0x1cb)]||'unknown','rawCommand':_0x130e46[_0x477ac5(0x1dc)]||this['currentRawCommand']||undefined,'message':_0x130e46['message']||'','duration':_0x130e46[_0x477ac5(0x1b5)]||undefined,'details':_0x130e46[_0x477ac5(0x1d8)]||undefined};return JSON[_0x477ac5(0x1db)](_0x33e051);}));this[_0x371ce7(0x1c8)]=a133_0x1e97b5['createLogger']({'level':_0x371ce7(0x1d5),'format':_0x3a1ed2,'transports':[new a133_0x1e97b5[(_0x371ce7(0x1c1))][(_0x371ce7(0x1c9))]({'filename':this['logFilePath'],'level':_0x371ce7(0x1d5)})],'silent':![]}),a133_0x1e97b5['addColors']({'success':_0x371ce7(0x1d4),'error':_0x371ce7(0x1df),'warn':_0x371ce7(0x1b7),'info':_0x371ce7(0x1d9)});}[a133_0x158dc6(0x1af)](_0x5c3cc4){const _0x3438b0=a133_0x158dc6;this['logFilePath']=a133_0x1db3bd[_0x3438b0(0x1d0)](_0x5c3cc4,_0x3438b0(0x1bd)),this[_0x3438b0(0x1c8)]&&this[_0x3438b0(0x1c8)][_0x3438b0(0x1c6)](),this[_0x3438b0(0x1e0)]();}['info'](_0x5265e6,_0x255cce,_0x56a454){const _0x2c4cb3=a133_0x158dc6;if(!this[_0x2c4cb3(0x1cc)]||!this['winstonLogger'])return;this[_0x2c4cb3(0x1c8)]['info'](_0x255cce,{'command':_0x5265e6,'details':_0x56a454});}[a133_0x158dc6(0x1b2)](_0x3bdae2,_0x62f24e,_0x581ba3,_0x131420){const _0x232641=a133_0x158dc6;if(!this[_0x232641(0x1cc)]||!this[_0x232641(0x1c8)])return;this[_0x232641(0x1c8)][_0x232641(0x1b0)](_0x232641(0x1d5),_0x62f24e,{'level':'success','command':_0x3bdae2,'duration':_0x581ba3,'details':_0x131420});}['error'](_0x2e8ddd,_0x443fe2,_0x195870){const _0x5f55e3=a133_0x158dc6;if(!this[_0x5f55e3(0x1cc)]||!this[_0x5f55e3(0x1c8)])return;this[_0x5f55e3(0x1c8)]['error'](_0x443fe2,{'command':_0x2e8ddd,'details':_0x195870});}['warn'](_0x562e3a,_0x3a2633,_0x5b434e){const _0x6de04c=a133_0x158dc6;if(!this[_0x6de04c(0x1cc)]||!this[_0x6de04c(0x1c8)])return;this[_0x6de04c(0x1c8)][_0x6de04c(0x1bf)](_0x3a2633,{'command':_0x562e3a,'details':_0x5b434e});}async[a133_0x158dc6(0x1e6)](_0x3288f9,_0x5b38d0,_0x2110ee){const _0x20962b=a133_0x158dc6,_0x35ce03=Date[_0x20962b(0x1c7)]();this[_0x20962b(0x1d5)](_0x3288f9,_0x20962b(0x1d6)+_0x5b38d0);try{const _0x588878=await _0x2110ee(),_0x5ab686=Date[_0x20962b(0x1c7)]()-_0x35ce03;return this[_0x20962b(0x1b2)](_0x3288f9,_0x20962b(0x1e2)+_0x5b38d0,_0x5ab686),_0x588878;}catch(_0x220a00){const _0x1c64d7=Date[_0x20962b(0x1c7)]()-_0x35ce03;this['error'](_0x3288f9,'失败:\x20'+_0x5b38d0,{'error':_0x220a00 instanceof Error?_0x220a00[_0x20962b(0x1ae)]:String(_0x220a00),'duration':_0x1c64d7});throw _0x220a00;}}[a133_0x158dc6(0x1bc)](){const _0x6858a2=a133_0x158dc6;try{if(!a133_0x5089dc[_0x6858a2(0x1bb)](this['logFilePath']))return[];const _0x1fb4b5=a133_0x5089dc[_0x6858a2(0x1de)](this[_0x6858a2(0x1cc)],_0x6858a2(0x1be));return _0x1fb4b5[_0x6858a2(0x1cf)]('\x0a')[_0x6858a2(0x1e5)](_0x31b1b4=>_0x31b1b4['trim']())[_0x6858a2(0x1b9)](_0x4162bc=>JSON[_0x6858a2(0x1e4)](_0x4162bc));}catch(_0x414a8e){return console[_0x6858a2(0x1bf)](_0x6858a2(0x1c3),_0x414a8e),[];}}[a133_0x158dc6(0x1b6)](){const _0x162822=a133_0x158dc6;try{a133_0x5089dc[_0x162822(0x1bb)](this['logFilePath'])&&a133_0x5089dc[_0x162822(0x1d1)](this[_0x162822(0x1cc)],'','utf8');}catch(_0x125aba){console[_0x162822(0x1bf)]('Failed\x20to\x20clear\x20logs:',_0x125aba);}}[a133_0x158dc6(0x1b1)](){const _0x48799c=a133_0x158dc6;return this[_0x48799c(0x1c8)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a133_0x210f4d=a133_0x30c4;function a133_0x273d(){const _0x1741c8=['18080BXMaCC','1169340OVnteU','win32','709376CfAGUG','5PdUFjj','15JSjbTW','1040174PVCPen','.cmd','8108408XSCSbi','6350323NnguLW','platform','729cKmBaM','8tBzPek','1633584nJTkvB'];a133_0x273d=function(){return _0x1741c8;};return a133_0x273d();}(function(_0x2eab0a,_0x3bb146){const _0x52bfb7=a133_0x30c4,_0x3765cf=_0x2eab0a();while(!![]){try{const _0x2ff7aa=-parseInt(_0x52bfb7(0xbb))/0x1+parseInt(_0x52bfb7(0xbe))/0x2+parseInt(_0x52bfb7(0xbd))/0x3*(parseInt(_0x52bfb7(0xb9))/0x4)+parseInt(_0x52bfb7(0xbc))/0x5*(-parseInt(_0x52bfb7(0xc5))/0x6)+-parseInt(_0x52bfb7(0xc1))/0x7*(parseInt(_0x52bfb7(0xc4))/0x8)+parseInt(_0x52bfb7(0xc3))/0x9*(parseInt(_0x52bfb7(0xb8))/0xa)+parseInt(_0x52bfb7(0xc0))/0xb;if(_0x2ff7aa===_0x3bb146)break;else _0x3765cf['push'](_0x3765cf['shift']());}catch(_0x4a8815){_0x3765cf['push'](_0x3765cf['shift']());}}}(a133_0x273d,0xee67d));export const isWindows=process[a133_0x210f4d(0xc2)]===a133_0x210f4d(0xba);function a133_0x30c4(_0x3f815b,_0x17e73a){_0x3f815b=_0x3f815b-0xb8;const _0x273d20=a133_0x273d();let _0x30c4fe=_0x273d20[_0x3f815b];return _0x30c4fe;}export function resolveNpmBin(_0x93d51e){const _0xe6f2d0=a133_0x210f4d;return isWindows?_0x93d51e+_0xe6f2d0(0xbf):_0x93d51e;}
1
+ const a134_0x30333c=a134_0x1a1e;function a134_0x1ac4(){const _0x3c5fbc=['2168280Fqvanf','13164PzSmns','1286740JlsWTb','6694VDaTIY','1386DaVcIz','win32','468112uVCDco','platform','3729790JQnsse','72cfqSwA','597pjPDoo','.cmd','190161nUDsGD'];a134_0x1ac4=function(){return _0x3c5fbc;};return a134_0x1ac4();}(function(_0x1df61b,_0x2b902b){const _0x2ccbec=a134_0x1a1e,_0x63cbaa=_0x1df61b();while(!![]){try{const _0xbef98a=-parseInt(_0x2ccbec(0x1cb))/0x1+parseInt(_0x2ccbec(0x1c8))/0x2*(parseInt(_0x2ccbec(0x1cf))/0x3)+parseInt(_0x2ccbec(0x1d4))/0x4+-parseInt(_0x2ccbec(0x1d2))/0x5+-parseInt(_0x2ccbec(0x1d3))/0x6*(-parseInt(_0x2ccbec(0x1c9))/0x7)+-parseInt(_0x2ccbec(0x1ce))/0x8*(-parseInt(_0x2ccbec(0x1d1))/0x9)+-parseInt(_0x2ccbec(0x1cd))/0xa;if(_0xbef98a===_0x2b902b)break;else _0x63cbaa['push'](_0x63cbaa['shift']());}catch(_0x3753de){_0x63cbaa['push'](_0x63cbaa['shift']());}}}(a134_0x1ac4,0x5269c));function a134_0x1a1e(_0x11b059,_0x53d093){_0x11b059=_0x11b059-0x1c8;const _0x1ac4a9=a134_0x1ac4();let _0x1a1e7e=_0x1ac4a9[_0x11b059];return _0x1a1e7e;}export const isWindows=process[a134_0x30333c(0x1cc)]===a134_0x30333c(0x1ca);export function resolveNpmBin(_0x4b6aca){const _0x393540=a134_0x30333c;return isWindows?_0x4b6aca+_0x393540(0x1d0):_0x4b6aca;}