@lovrabet/rabetbase-cli 2.1.12-beta.2 → 2.1.12

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 (200) 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/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x184244,_0x311754){const _0x4b4159=a173_0x5719,_0x2d444a=_0x184244();while(!![]){try{const _0x5b9bf6=-parseInt(_0x4b4159(0x1f3))/0x1+parseInt(_0x4b4159(0x1e5))/0x2*(parseInt(_0x4b4159(0x1f8))/0x3)+parseInt(_0x4b4159(0x1df))/0x4+parseInt(_0x4b4159(0x1da))/0x5*(parseInt(_0x4b4159(0x1dc))/0x6)+-parseInt(_0x4b4159(0x1eb))/0x7+-parseInt(_0x4b4159(0x1e6))/0x8+parseInt(_0x4b4159(0x1ec))/0x9;if(_0x5b9bf6===_0x311754)break;else _0x2d444a['push'](_0x2d444a['shift']());}catch(_0x4b28db){_0x2d444a['push'](_0x2d444a['shift']());}}}(a173_0xf28b,0xc4c9b));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x578067){const _0x23265a=a173_0x5719,_0x4f87bf=[];for(const [_0xd51172,_0x5f2336]of Object[_0x23265a(0x1ef)](_0x578067)){if(_0x5f2336===!![]){const _0x5e1b79=_0xd51172[_0x23265a(0x1ed)](/([A-Z])/g,_0x23265a(0x1f5))['toLowerCase']();_0x4f87bf[_0x23265a(0x1e9)](_0x5e1b79);}}return _0x4f87bf;}export function parseDynamicFlags(){const _0x2411cf=a173_0x5719,_0x3cca25=[];for(let _0x1f5a53=0x3;_0x1f5a53<process[_0x2411cf(0x1e2)][_0x2411cf(0x1e7)];_0x1f5a53++){const _0xf2043f=process[_0x2411cf(0x1e2)][_0x1f5a53];if(_0xf2043f&&_0xf2043f[_0x2411cf(0x1e1)]('--')){const _0x3c11e4=_0xf2043f[_0x2411cf(0x1f0)](0x2);_0x3c11e4&&!_0x3c11e4['includes']('=')&&_0x3cca25['push'](_0x3c11e4);}}return _0x3cca25;}function a173_0xf28b(){const _0x2e5cd8=['--help','enable-bff-save','17811xDqzGL','\x20skill\x20--help\x0a\x20\x20','error','Error:\x20Unsupported\x20command:\x20','85UQKEwk','cwd','63258fsRTIn','Equivalent\x20command:\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1076336HxigRl','不支持的命令:\x20','startsWith','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','368EnWDWi','8343552YeqlFp','length','has','push','skill','4330151VtMGeQ','11932371WTsVkk','replace','\x0aAvailable\x20commands:','entries','slice','add','exit','398962jVsiuw','log','-$1'];a173_0xf28b=function(){return _0x2e5cd8;};return a173_0xf28b();}export function getAllProvidedFlags(_0x2e18dc){const _0x38a0d3=camelCaseFlagsToKebab(_0x2e18dc),_0x3a5aba=parseDynamicFlags(),_0x18f0b4=new Set([..._0x38a0d3,..._0x3a5aba]);return Array['from'](_0x18f0b4);}function a173_0x5719(_0x348bd0,_0x4262b1){_0x348bd0=_0x348bd0-0x1d9;const _0xf28b29=a173_0xf28b();let _0x57196b=_0xf28b29[_0x348bd0];return _0x57196b;}export function normalizeLegacyBffSaveFlags(_0x38c9c3){const _0x35cdec=a173_0x5719,_0x1f3e99=new Set(_0x38c9c3);return _0x1f3e99[_0x35cdec(0x1e8)]('dangerously-bff-save')&&_0x1f3e99[_0x35cdec(0x1f1)](_0x35cdec(0x1f7)),Array['from'](_0x1f3e99);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xa5c397,_0x7ab23b,_0x480334){const _0x3fb67b=a173_0x5719;logger['setLogPath'](process[_0x3fb67b(0x1db)]());if(_0x480334?.['help']||_0xa5c397===_0x3fb67b(0x1f6)){showHelp();return;}console[_0x3fb67b(0x1fa)](_0x3fb67b(0x1d9)+(_0xa5c397||_0x3fb67b(0x1e4))),console[_0x3fb67b(0x1f4)](_0x3fb67b(0x1ee)),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x3fb67b(0x1f4)](''),console['log'](_0x3fb67b(0x1dd)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x3fb67b(0x1ea),_0x3fb67b(0x1e0)+_0xa5c397),process[_0x3fb67b(0x1f2)](0x1);}function showHelp(){const _0x32bfc3=a173_0x5719;console[_0x32bfc3(0x1f4)](_0x32bfc3(0x1de)+CLI_BIN_NAME+_0x32bfc3(0x1f9)+CLI_BIN_NAME+_0x32bfc3(0x1e3)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x3b02b6,_0x90c083){const _0x234cd7=a173_0x1380,_0x35ba94=_0x3b02b6();while(!![]){try{const _0x551e03=-parseInt(_0x234cd7(0x1c6))/0x1*(parseInt(_0x234cd7(0x1c5))/0x2)+-parseInt(_0x234cd7(0x1b4))/0x3+parseInt(_0x234cd7(0x1ce))/0x4*(-parseInt(_0x234cd7(0x1bd))/0x5)+parseInt(_0x234cd7(0x1ba))/0x6*(parseInt(_0x234cd7(0x1c3))/0x7)+-parseInt(_0x234cd7(0x1be))/0x8+parseInt(_0x234cd7(0x1cf))/0x9+parseInt(_0x234cd7(0x1bc))/0xa*(parseInt(_0x234cd7(0x1d2))/0xb);if(_0x551e03===_0x90c083)break;else _0x35ba94['push'](_0x35ba94['shift']());}catch(_0x57a92b){_0x35ba94['push'](_0x35ba94['shift']());}}}(a173_0x2285,0xc3f4f));function a173_0x1380(_0x47dbc9,_0x51aa66){_0x47dbc9=_0x47dbc9-0x1ae;const _0x22856a=a173_0x2285();let _0x1380ba=_0x22856a[_0x47dbc9];return _0x1380ba;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x4f582d){const _0x240bb4=a173_0x1380,_0x840973=[];for(const [_0x28527c,_0x35577e]of Object[_0x240bb4(0x1b2)](_0x4f582d)){if(_0x35577e===!![]){const _0x15e2ac=_0x28527c[_0x240bb4(0x1cd)](/([A-Z])/g,_0x240bb4(0x1b7))[_0x240bb4(0x1b5)]();_0x840973[_0x240bb4(0x1c1)](_0x15e2ac);}}return _0x840973;}export function parseDynamicFlags(){const _0x37d2f8=a173_0x1380,_0x19e433=[];for(let _0xb65cf4=0x3;_0xb65cf4<process[_0x37d2f8(0x1bf)][_0x37d2f8(0x1c9)];_0xb65cf4++){const _0x3cc6a7=process[_0x37d2f8(0x1bf)][_0xb65cf4];if(_0x3cc6a7&&_0x3cc6a7[_0x37d2f8(0x1b3)]('--')){const _0x409b84=_0x3cc6a7['slice'](0x2);_0x409b84&&!_0x409b84[_0x37d2f8(0x1c2)]('=')&&_0x19e433[_0x37d2f8(0x1c1)](_0x409b84);}}return _0x19e433;}export function getAllProvidedFlags(_0x4199b4){const _0x5aa7a1=camelCaseFlagsToKebab(_0x4199b4),_0x551d51=parseDynamicFlags(),_0x38e5b4=new Set([..._0x5aa7a1,..._0x551d51]);return Array['from'](_0x38e5b4);}export function normalizeLegacyBffSaveFlags(_0x23ecd5){const _0x3bfb50=a173_0x1380,_0x1ffa2d=new Set(_0x23ecd5);return _0x1ffa2d[_0x3bfb50(0x1b8)](_0x3bfb50(0x1b6))&&_0x1ffa2d[_0x3bfb50(0x1bb)](_0x3bfb50(0x1d1)),Array[_0x3bfb50(0x1af)](_0x1ffa2d);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x332c23,_0x3fbf5b,_0x58b122){const _0xf4a08a=a173_0x1380;logger[_0xf4a08a(0x1b0)](process[_0xf4a08a(0x1c4)]());if(_0x58b122?.['help']||_0x332c23==='--help'){showHelp();return;}console[_0xf4a08a(0x1b1)](_0xf4a08a(0x1c0)+(_0x332c23||'(empty)')),console[_0xf4a08a(0x1c7)]('\x0aAvailable\x20commands:'),console[_0xf4a08a(0x1c7)]('\x20\x20'+CLI_BIN_NAME+_0xf4a08a(0x1d3)),console[_0xf4a08a(0x1c7)]('\x20\x20'+CLI_BIN_NAME+_0xf4a08a(0x1d0)),console[_0xf4a08a(0x1c7)](''),console[_0xf4a08a(0x1c7)](_0xf4a08a(0x1cc)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xf4a08a(0x1b1)](_0xf4a08a(0x1ae),_0xf4a08a(0x1ca)+_0x332c23),process[_0xf4a08a(0x1cb)](0x1);}function a173_0x2285(){const _0x132775=['skill','from','setLogPath','error','entries','startsWith','1416297cqJpij','toLowerCase','dangerously-bff-save','-$1','has','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','3576maGbGB','add','20TBPpip','20fqcbon','10964864AqxNOW','argv','Error:\x20Unsupported\x20command:\x20','push','includes','1043WacvlJ','cwd','2SeOdQP','578285BCyGSh','log','\x20skill\x20--help\x0a\x20\x20','length','不支持的命令:\x20','exit','Equivalent\x20command:\x20','replace','1256804NNrBMc','14411547RXraXd','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','enable-bff-save','15346914kMgHTR','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'];a173_0x2285=function(){return _0x132775;};return a173_0x2285();}function showHelp(){const _0x5c3eb9=a173_0x1380;console[_0x5c3eb9(0x1c7)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x5c3eb9(0x1c8)+CLI_BIN_NAME+_0x5c3eb9(0x1b9)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
@@ -1 +1 @@
1
- const a174_0x432e1a=a174_0x3c4b;(function(_0x5d0971,_0x1c1d63){const _0xd6fa1b=a174_0x3c4b,_0x3f89e0=_0x5d0971();while(!![]){try{const _0x4cd6e9=parseInt(_0xd6fa1b(0x19b))/0x1*(parseInt(_0xd6fa1b(0x195))/0x2)+-parseInt(_0xd6fa1b(0x1ab))/0x3+parseInt(_0xd6fa1b(0x199))/0x4*(-parseInt(_0xd6fa1b(0x19e))/0x5)+parseInt(_0xd6fa1b(0x1a5))/0x6+parseInt(_0xd6fa1b(0x1a4))/0x7*(-parseInt(_0xd6fa1b(0x1a7))/0x8)+parseInt(_0xd6fa1b(0x1a2))/0x9+-parseInt(_0xd6fa1b(0x1a9))/0xa*(-parseInt(_0xd6fa1b(0x1b4))/0xb);if(_0x4cd6e9===_0x1c1d63)break;else _0x3f89e0['push'](_0x3f89e0['shift']());}catch(_0x16ccf2){_0x3f89e0['push'](_0x3f89e0['shift']());}}}(a174_0xe602,0x7f615));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a174_0x3c4b(_0x28a13a,_0x44c2cc){_0x28a13a=_0x28a13a-0x195;const _0xe6025e=a174_0xe602();let _0x3c4bb3=_0xe6025e[_0x28a13a];return _0x3c4bb3;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a174_0x432e1a(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x432e1a(0x1a3);export const NPX_SKILLS_FLAG_SKILL=a174_0x432e1a(0x19a);export const RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1a8);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1b5);export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x432e1a(0x198);export function buildNpxSkillsAddArgv(_0x88799){const _0x3fe2af=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x88799&&_0x3fe2af['push'](NPX_SKILLS_FLAG_SKILL,_0x88799),_0x3fe2af;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x432e1a(0x1a0),...buildNpxSkillsAddArgv()][a174_0x432e1a(0x1b2)]('\x20');function a174_0xe602(){const _0x4a322c=['45BkbUrZ','pipe','npx','skills','3462561UaikmB','add','387632tXRqrv','5258322Jovoae','yes','8GOMQYr','lovrabet/rabetbase','70VHzYPD','exit\x20','908664oxNAFE','toString','stderr','status','remove','inherit','skill','join','log','728332LqBIHr','lovrabet/lovrabet-skill','1782esmGSt','trim','stdout','Lovrabet','456156KtUdPQ','--skill','204CubtDQ','stdio','unknown'];a174_0xe602=function(){return _0x4a322c;};return a174_0xe602();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a174_0x432e1a(0x1b2)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2a8ed0,_0x43f547){const _0x5e8161=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44c4d9=_0x43f547?.['stdio']??_0x5e8161(0x1b0),_0x9e5dd7=resolveNpmBin(_0x5e8161(0x1a0)),_0x279605=buildNpxSkillsAddArgv(_0x43f547?.[_0x5e8161(0x1b1)]),_0x59fa57=[_0x5e8161(0x1a0),..._0x279605][_0x5e8161(0x1b2)]('\x20');console['log']('*\x20'+_0x59fa57);const _0x2f117f=spawnSync(_0x9e5dd7,_0x279605,{'cwd':_0x2a8ed0,'stdio':_0x44c4d9,'env':process.env,'shell':![]}),_0x470f9a=_0x2f117f['status'];if(_0x470f9a===0x0)return{'ok':!![],'status':0x0};let _0x2feb9a=_0x5e8161(0x1aa)+(_0x470f9a??_0x5e8161(0x19d));if(_0x44c4d9===_0x5e8161(0x19f)){const _0x454c97=_0x2f117f['stderr']?_0x2f117f['stderr'][_0x5e8161(0x1ac)]()['trim']():'',_0x416c36=_0x2f117f[_0x5e8161(0x197)]?_0x2f117f[_0x5e8161(0x197)]['toString']()[_0x5e8161(0x196)]():'';if(_0x454c97)_0x2feb9a=_0x454c97;else{if(_0x416c36)_0x2feb9a=_0x416c36;}}return{'ok':![],'status':_0x470f9a??null,'error':_0x2feb9a};}export function runNpxSkillsRemove(_0x36dcbc,_0x4be8a5,_0x46889f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2a1e58=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57f52f=_0x4be8a5?.[_0x2a1e58(0x19c)]??_0x2a1e58(0x1b0),_0x118a4c=resolveNpmBin(_0x2a1e58(0x1a0)),_0x385d84=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2a1e58(0x1af),_0x46889f,NPX_SKILLS_FLAG_SKILL,_0x4be8a5?.[_0x2a1e58(0x1b1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4be8a5?.[_0x2a1e58(0x1a6)]?['-y']:[]],_0x486b36=[_0x118a4c,..._0x385d84][_0x2a1e58(0x1b2)]('\x20');console[_0x2a1e58(0x1b3)]('*\x20'+_0x486b36);const _0x376d17=spawnSync(_0x118a4c,_0x385d84,{'cwd':_0x36dcbc,'stdio':_0x57f52f,'env':process.env,'shell':![]}),_0x3efa4f=_0x376d17['status'];if(_0x3efa4f===0x0)return{'ok':!![],'status':0x0};let _0xdfb2e1=_0x2a1e58(0x1aa)+(_0x3efa4f??_0x2a1e58(0x19d));if(_0x57f52f===_0x2a1e58(0x19f)){const _0x26f01d=_0x376d17['stderr']?_0x376d17[_0x2a1e58(0x1ad)][_0x2a1e58(0x1ac)]()['trim']():'',_0x29408e=_0x376d17[_0x2a1e58(0x197)]?_0x376d17['stdout']['toString']()[_0x2a1e58(0x196)]():'';if(_0x26f01d)_0xdfb2e1=_0x26f01d;else{if(_0x29408e)_0xdfb2e1=_0x29408e;}}return{'ok':![],'status':_0x3efa4f??null,'error':_0xdfb2e1};}export function runNpxSkillsAddGlobal(_0x3a6d0d,_0xf269b4,_0xc934d3){const _0x181c60=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x159dc8=_0xc934d3?.['stdio']??_0x181c60(0x1b0),_0x2238d5=resolveNpmBin(_0x181c60(0x1a0)),_0x26ae94=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9e45fa=[_0x181c60(0x1a0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x181c60(0x1b2)]('\x20');console[_0x181c60(0x1b3)]('*\x20'+_0x9e45fa);const _0x46c981=spawnSync(_0x2238d5,_0x26ae94,{'cwd':_0x3a6d0d,'stdio':_0x159dc8,'env':process.env,'shell':![]}),_0x179467=_0x46c981[_0x181c60(0x1ae)];if(_0x179467===0x0)return{'ok':!![],'status':0x0};let _0x17a7e0=_0x181c60(0x1aa)+(_0x179467??_0x181c60(0x19d));if(_0x159dc8===_0x181c60(0x19f)){const _0x621f=_0x46c981['stderr']?_0x46c981[_0x181c60(0x1ad)][_0x181c60(0x1ac)]()[_0x181c60(0x196)]():'',_0x1bbd98=_0x46c981[_0x181c60(0x197)]?_0x46c981[_0x181c60(0x197)][_0x181c60(0x1ac)]()['trim']():'';if(_0x621f)_0x17a7e0=_0x621f;else{if(_0x1bbd98)_0x17a7e0=_0x1bbd98;}}return{'ok':![],'status':_0x179467??null,'error':_0x17a7e0};}
1
+ const a174_0x3b829b=a174_0x31d2;(function(_0x79d6e3,_0x412e55){const _0x102e8f=a174_0x31d2,_0x3b6655=_0x79d6e3();while(!![]){try{const _0x17fc7b=parseInt(_0x102e8f(0x1fa))/0x1*(parseInt(_0x102e8f(0x1ef))/0x2)+parseInt(_0x102e8f(0x20e))/0x3+parseInt(_0x102e8f(0x208))/0x4+-parseInt(_0x102e8f(0x1fd))/0x5*(-parseInt(_0x102e8f(0x1f7))/0x6)+parseInt(_0x102e8f(0x20c))/0x7*(-parseInt(_0x102e8f(0x206))/0x8)+parseInt(_0x102e8f(0x1fb))/0x9*(-parseInt(_0x102e8f(0x1f0))/0xa)+-parseInt(_0x102e8f(0x1ff))/0xb;if(_0x17fc7b===_0x412e55)break;else _0x3b6655['push'](_0x3b6655['shift']());}catch(_0x24a055){_0x3b6655['push'](_0x3b6655['shift']());}}}(a174_0x1c5a,0xb4ec6));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a174_0x31d2(_0x1cfdaf,_0x43ef10){_0x1cfdaf=_0x1cfdaf-0x1ed;const _0x1c5a41=a174_0x1c5a();let _0x31d2db=_0x1c5a41[_0x1cfdaf];return _0x31d2db;}export const NPX_SKILLS_CLI=a174_0x3b829b(0x200);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x3b829b(0x1f2);export const NPX_SKILLS_FLAG_SKILL=a174_0x3b829b(0x20d);export const RABETBASE_SKILL_SOURCE=a174_0x3b829b(0x205);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x3b829b(0x204);export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x3b829b(0x20b);export function buildNpxSkillsAddArgv(_0x494394){const _0xbbc412=a174_0x3b829b,_0x8a7ca4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x494394&&_0x8a7ca4[_0xbbc412(0x1f4)](NPX_SKILLS_FLAG_SKILL,_0x494394),_0x8a7ca4;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x3b829b(0x1fc),...buildNpxSkillsAddArgv()][a174_0x3b829b(0x20a)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a174_0x3b829b(0x1fc),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a174_0x3b829b(0x20a)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a174_0x1c5a(){const _0x37a563=['351EXWqmY','npx','33275dQmmNV','pipe','8233621EVYioa','skills','remove','skill','exit\x20','lovrabet/lovrabet-skill','lovrabet/rabetbase','521288lzwoaa','inherit','4657440OhJwcV','yes','join','Lovrabet','14XbBGJB','--skill','2386512YdDAym','stdout','status','2eWJsjR','372620teyhZd','toString','add','stdio','push','unknown','stderr','30ZkKYTL','log','trim','1079974QrrDzo'];a174_0x1c5a=function(){return _0x37a563;};return a174_0x1c5a();}export function runNpxSkillsAdd(_0x2d5cda,_0xa768e5){const _0x485e1e=a174_0x3b829b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1cf39c=_0xa768e5?.['stdio']??_0x485e1e(0x207),_0x100ec3=resolveNpmBin('npx'),_0x3576aa=buildNpxSkillsAddArgv(_0xa768e5?.['skill']),_0x47cf66=[_0x485e1e(0x1fc),..._0x3576aa]['join']('\x20');console['log']('*\x20'+_0x47cf66);const _0x3ae144=spawnSync(_0x100ec3,_0x3576aa,{'cwd':_0x2d5cda,'stdio':_0x1cf39c,'env':process.env,'shell':![]}),_0x3ac6ab=_0x3ae144[_0x485e1e(0x1ee)];if(_0x3ac6ab===0x0)return{'ok':!![],'status':0x0};let _0x17e5e0=_0x485e1e(0x203)+(_0x3ac6ab??_0x485e1e(0x1f5));if(_0x1cf39c===_0x485e1e(0x1fe)){const _0x1f20d3=_0x3ae144[_0x485e1e(0x1f6)]?_0x3ae144[_0x485e1e(0x1f6)]['toString']()[_0x485e1e(0x1f9)]():'',_0x31bbd8=_0x3ae144[_0x485e1e(0x1ed)]?_0x3ae144[_0x485e1e(0x1ed)][_0x485e1e(0x1f1)]()[_0x485e1e(0x1f9)]():'';if(_0x1f20d3)_0x17e5e0=_0x1f20d3;else{if(_0x31bbd8)_0x17e5e0=_0x31bbd8;}}return{'ok':![],'status':_0x3ac6ab??null,'error':_0x17e5e0};}export function runNpxSkillsRemove(_0x5a7bc2,_0x3faf43,_0x4858f1=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1df784=a174_0x3b829b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x27e398=_0x3faf43?.[_0x1df784(0x1f3)]??_0x1df784(0x207),_0x38cff1=resolveNpmBin(_0x1df784(0x1fc)),_0x3e2353=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1df784(0x201),_0x4858f1,NPX_SKILLS_FLAG_SKILL,_0x3faf43?.[_0x1df784(0x202)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3faf43?.[_0x1df784(0x209)]?['-y']:[]],_0xe13156=[_0x38cff1,..._0x3e2353]['join']('\x20');console[_0x1df784(0x1f8)]('*\x20'+_0xe13156);const _0x3cacd0=spawnSync(_0x38cff1,_0x3e2353,{'cwd':_0x5a7bc2,'stdio':_0x27e398,'env':process.env,'shell':![]}),_0xaf7b1c=_0x3cacd0['status'];if(_0xaf7b1c===0x0)return{'ok':!![],'status':0x0};let _0x3f3280='exit\x20'+(_0xaf7b1c??'unknown');if(_0x27e398==='pipe'){const _0x5c2487=_0x3cacd0['stderr']?_0x3cacd0['stderr'][_0x1df784(0x1f1)]()[_0x1df784(0x1f9)]():'',_0x213ee7=_0x3cacd0[_0x1df784(0x1ed)]?_0x3cacd0[_0x1df784(0x1ed)][_0x1df784(0x1f1)]()['trim']():'';if(_0x5c2487)_0x3f3280=_0x5c2487;else{if(_0x213ee7)_0x3f3280=_0x213ee7;}}return{'ok':![],'status':_0xaf7b1c??null,'error':_0x3f3280};}export function runNpxSkillsAddGlobal(_0x49950e,_0x3c5761,_0x40cbaa){const _0x5958f8=a174_0x3b829b;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20d6aa=_0x40cbaa?.['stdio']??_0x5958f8(0x207),_0x1db9ac=resolveNpmBin(_0x5958f8(0x1fc)),_0x19629f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c5761,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x199b29=[_0x5958f8(0x1fc),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3c5761,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x5958f8(0x20a)]('\x20');console[_0x5958f8(0x1f8)]('*\x20'+_0x199b29);const _0x5ec173=spawnSync(_0x1db9ac,_0x19629f,{'cwd':_0x49950e,'stdio':_0x20d6aa,'env':process.env,'shell':![]}),_0x7a74cd=_0x5ec173[_0x5958f8(0x1ee)];if(_0x7a74cd===0x0)return{'ok':!![],'status':0x0};let _0x1e16e0=_0x5958f8(0x203)+(_0x7a74cd??'unknown');if(_0x20d6aa===_0x5958f8(0x1fe)){const _0x2d2783=_0x5ec173[_0x5958f8(0x1f6)]?_0x5ec173[_0x5958f8(0x1f6)][_0x5958f8(0x1f1)]()['trim']():'',_0x34b2d6=_0x5ec173['stdout']?_0x5ec173[_0x5958f8(0x1ed)][_0x5958f8(0x1f1)]()[_0x5958f8(0x1f9)]():'';if(_0x2d2783)_0x1e16e0=_0x2d2783;else{if(_0x34b2d6)_0x1e16e0=_0x34b2d6;}}return{'ok':![],'status':_0x7a74cd??null,'error':_0x1e16e0};}
@@ -1 +1 @@
1
- function a175_0x2650(){const _0x40c7b2=['1wnmkuw','flags','error','10517175EQuroo','4348464seJoxE','service','command','13328928XpvuKu','145767lLrwbv','some','message','entries','38338707nnisSw','10PheGDV','test','stringify','37458sACEUK','10pEEDJY','durationMs','6355237vSyNDG','60jnRFfF'];a175_0x2650=function(){return _0x40c7b2;};return a175_0x2650();}function a175_0x5ebc(_0x5997a8,_0x560d62){_0x5997a8=_0x5997a8-0x90;const _0x26504e=a175_0x2650();let _0x5ebcd9=_0x26504e[_0x5997a8];return _0x5ebcd9;}(function(_0x41b398,_0x5be073){const _0x4ae32a=a175_0x5ebc,_0x407660=_0x41b398();while(!![]){try{const _0x3b3807=parseInt(_0x4ae32a(0xa0))/0x1*(-parseInt(_0x4ae32a(0x9b))/0x2)+parseInt(_0x4ae32a(0x93))/0x3*(-parseInt(_0x4ae32a(0x9f))/0x4)+-parseInt(_0x4ae32a(0x98))/0x5*(parseInt(_0x4ae32a(0xa4))/0x6)+-parseInt(_0x4ae32a(0x9e))/0x7+parseInt(_0x4ae32a(0x92))/0x8+-parseInt(_0x4ae32a(0xa3))/0x9*(parseInt(_0x4ae32a(0x9c))/0xa)+parseInt(_0x4ae32a(0x97))/0xb;if(_0x3b3807===_0x5be073)break;else _0x407660['push'](_0x407660['shift']());}catch(_0x5ca5b5){_0x407660['push'](_0x407660['shift']());}}}(a175_0x2650,0xd656f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x1299bc){const _0x5d1f25=a175_0x5ebc;return SENSITIVE_PATTERNS[_0x5d1f25(0x94)](_0xa9ea5=>_0xa9ea5[_0x5d1f25(0x99)](_0x1299bc));}function sanitizeFlags(_0x623e61){const _0x48a570=a175_0x5ebc,_0x30d5ed={};for(const [_0x2e64bf,_0x5ad669]of Object[_0x48a570(0x96)](_0x623e61)){isSensitiveKey(_0x2e64bf)?_0x30d5ed[_0x2e64bf]=_0x5ad669!=null&&_0x5ad669!==''?'[REDACTED]':_0x5ad669:_0x30d5ed[_0x2e64bf]=_0x5ad669;}return _0x30d5ed;}export async function reportCommandTrace(_0x4adad8){const _0x1cd581=a175_0x5ebc;try{const _0x329456=sanitizeFlags(_0x4adad8[_0x1cd581(0xa1)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4adad8[_0x1cd581(0x90)],'command.name':_0x4adad8[_0x1cd581(0x91)],'command.flags':JSON[_0x1cd581(0x9a)](_0x329456),..._0x4adad8[_0x1cd581(0x9d)]!=null?{'command.duration_ms':_0x4adad8['durationMs']}:{},..._0x4adad8[_0x1cd581(0xa2)]?{'command.error':_0x4adad8[_0x1cd581(0xa2)]instanceof Error?_0x4adad8[_0x1cd581(0xa2)][_0x1cd581(0x95)]:String(_0x4adad8[_0x1cd581(0xa2)])}:{}}});}catch{}}
1
+ (function(_0x4dc222,_0x5d0c20){const _0x2b9fda=a175_0x3cd8,_0x22d558=_0x4dc222();while(!![]){try{const _0x4b8fc7=parseInt(_0x2b9fda(0x1f7))/0x1*(-parseInt(_0x2b9fda(0x1fc))/0x2)+-parseInt(_0x2b9fda(0x1f0))/0x3+-parseInt(_0x2b9fda(0x201))/0x4+-parseInt(_0x2b9fda(0x200))/0x5*(-parseInt(_0x2b9fda(0x1f9))/0x6)+parseInt(_0x2b9fda(0x1ef))/0x7+parseInt(_0x2b9fda(0x1f1))/0x8*(parseInt(_0x2b9fda(0x203))/0x9)+-parseInt(_0x2b9fda(0x1fd))/0xa*(-parseInt(_0x2b9fda(0x1f3))/0xb);if(_0x4b8fc7===_0x5d0c20)break;else _0x22d558['push'](_0x22d558['shift']());}catch(_0x523883){_0x22d558['push'](_0x22d558['shift']());}}}(a175_0x3b6b,0x96308));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0xdeca66){const _0x4da5fb=a175_0x3cd8;return SENSITIVE_PATTERNS[_0x4da5fb(0x202)](_0x447524=>_0x447524['test'](_0xdeca66));}function a175_0x3cd8(_0x4241e1,_0x18051f){_0x4241e1=_0x4241e1-0x1ef;const _0x3b6baa=a175_0x3b6b();let _0x3cd8e9=_0x3b6baa[_0x4241e1];return _0x3cd8e9;}function sanitizeFlags(_0x1909bc){const _0x5aacac=a175_0x3cd8,_0x30c4d6={};for(const [_0xb07e64,_0x4e76ba]of Object[_0x5aacac(0x1fb)](_0x1909bc)){isSensitiveKey(_0xb07e64)?_0x30c4d6[_0xb07e64]=_0x4e76ba!=null&&_0x4e76ba!==''?_0x5aacac(0x1f5):_0x4e76ba:_0x30c4d6[_0xb07e64]=_0x4e76ba;}return _0x30c4d6;}export async function reportCommandTrace(_0x1f08ec){const _0x5ef61f=a175_0x3cd8;try{const _0x185625=sanitizeFlags(_0x1f08ec[_0x5ef61f(0x1f4)]);await sendCliTraceLog({'spanName':_0x5ef61f(0x1f6),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1f08ec['service'],'command.name':_0x1f08ec[_0x5ef61f(0x1f2)],'command.flags':JSON[_0x5ef61f(0x1fa)](_0x185625),..._0x1f08ec['durationMs']!=null?{'command.duration_ms':_0x1f08ec[_0x5ef61f(0x1fe)]}:{},..._0x1f08ec['error']?{'command.error':_0x1f08ec['error']instanceof Error?_0x1f08ec[_0x5ef61f(0x1f8)][_0x5ef61f(0x1ff)]:String(_0x1f08ec[_0x5ef61f(0x1f8)])}:{}}});}catch{}}function a175_0x3b6b(){const _0x3da2c3=['[REDACTED]','rabetbase.command','39687FAFQXO','error','6UPPAIO','stringify','entries','38sKWvzm','45770MnRGBM','durationMs','message','101880QDLoCW','4039824thDfNk','some','734427KhegJH','7361956WKuBNX','2868495unXxVn','24NpKgls','command','4851GiccIq','flags'];a175_0x3b6b=function(){return _0x3da2c3;};return a175_0x3b6b();}
@@ -1 +1 @@
1
- function a176_0x5ea8(){var _0x514d97=['79037zJivff','4REnuWI','service','143afTxXf','424TGDFIc','444086wdIMoQ','2377835JZPgMp','1VRwsqq','1342350IhZUZa','error','9148932JjziUk','1540836NTHbID','cli.help','2584660ltQWsl'];a176_0x5ea8=function(){return _0x514d97;};return a176_0x5ea8();}function a176_0x193e(_0x304205,_0x1900ee){_0x304205=_0x304205-0x170;var _0x5ea8b8=a176_0x5ea8();var _0x193e1a=_0x5ea8b8[_0x304205];return _0x193e1a;}(function(_0x4c8cce,_0x1a9589){var _0x1cb924=a176_0x193e,_0x3241ba=_0x4c8cce();while(!![]){try{var _0x41f653=parseInt(_0x1cb924(0x17d))/0x1*(parseInt(_0x1cb924(0x17b))/0x2)+-parseInt(_0x1cb924(0x170))/0x3+parseInt(_0x1cb924(0x177))/0x4*(-parseInt(_0x1cb924(0x17c))/0x5)+-parseInt(_0x1cb924(0x173))/0x6+-parseInt(_0x1cb924(0x176))/0x7*(parseInt(_0x1cb924(0x17a))/0x8)+-parseInt(_0x1cb924(0x172))/0x9+-parseInt(_0x1cb924(0x175))/0xa*(-parseInt(_0x1cb924(0x179))/0xb);if(_0x41f653===_0x1a9589)break;else _0x3241ba['push'](_0x3241ba['shift']());}catch(_0x461525){_0x3241ba['push'](_0x3241ba['shift']());}}}(a176_0x5ea8,0xc036b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x48bef2,_0x39a1f7){var _0x5689ee=a176_0x193e;try{await sendCliTraceLog({'spanName':_0x5689ee(0x174),'logData':{'rabetbase.help.kind':_0x48bef2,..._0x39a1f7?.[_0x5689ee(0x178)]&&{'rabetbase.help.service':_0x39a1f7[_0x5689ee(0x178)]}}});}catch(_0x2f1b88){console[_0x5689ee(0x171)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x2f1b88);}}
1
+ function a176_0x16f2(_0x19f211,_0x5c9b39){_0x19f211=_0x19f211-0x9c;var _0x18e5eb=a176_0x18e5();var _0x16f23f=_0x18e5eb[_0x19f211];return _0x16f23f;}(function(_0x168a2a,_0x539bfe){var _0x53202d=a176_0x16f2,_0x29ecdf=_0x168a2a();while(!![]){try{var _0x30790b=parseInt(_0x53202d(0xa8))/0x1*(-parseInt(_0x53202d(0x9e))/0x2)+-parseInt(_0x53202d(0xa6))/0x3*(-parseInt(_0x53202d(0xab))/0x4)+-parseInt(_0x53202d(0x9f))/0x5+parseInt(_0x53202d(0xa3))/0x6*(parseInt(_0x53202d(0x9d))/0x7)+-parseInt(_0x53202d(0xa2))/0x8*(parseInt(_0x53202d(0xa4))/0x9)+-parseInt(_0x53202d(0xaa))/0xa*(-parseInt(_0x53202d(0xa9))/0xb)+-parseInt(_0x53202d(0xa0))/0xc*(-parseInt(_0x53202d(0xa5))/0xd);if(_0x30790b===_0x539bfe)break;else _0x29ecdf['push'](_0x29ecdf['shift']());}catch(_0xa7d872){_0x29ecdf['push'](_0x29ecdf['shift']());}}}(a176_0x18e5,0xc19aa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x238147,_0x402968){var _0x264127=a176_0x16f2;try{await sendCliTraceLog({'spanName':_0x264127(0xa7),'logData':{'rabetbase.help.kind':_0x238147,..._0x402968?.[_0x264127(0xa1)]&&{'rabetbase.help.service':_0x402968[_0x264127(0xa1)]}}});}catch(_0x3c3dee){console[_0x264127(0xac)](_0x264127(0x9c),_0x3c3dee);}}function a176_0x18e5(){var _0x1e4bee=['31988gHCXaw','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','2499574GtmuxR','2HTTsEN','5781495GQCNHs','12dMdRvT','service','232pucfSf','6xFFHwr','477693jsrADl','36246093DXTHwP','378jWPckA','cli.help','836251YSQTVc','236390FASdcF','80uIJWGm'];a176_0x18e5=function(){return _0x1e4bee;};return a176_0x18e5();}
@@ -1 +1 @@
1
- (function(_0x1551a6,_0x10ae8e){const _0x1237ad=a177_0x5645,_0x1edeab=_0x1551a6();while(!![]){try{const _0x154af7=parseInt(_0x1237ad(0xab))/0x1+-parseInt(_0x1237ad(0xaf))/0x2+parseInt(_0x1237ad(0xa9))/0x3+parseInt(_0x1237ad(0xb4))/0x4+-parseInt(_0x1237ad(0xae))/0x5+-parseInt(_0x1237ad(0xb1))/0x6*(parseInt(_0x1237ad(0xac))/0x7)+parseInt(_0x1237ad(0xad))/0x8;if(_0x154af7===_0x10ae8e)break;else _0x1edeab['push'](_0x1edeab['shift']());}catch(_0x2b568c){_0x1edeab['push'](_0x1edeab['shift']());}}}(a177_0x129c,0x2a415));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a177_0x5645(_0x168311,_0x24d96a){_0x168311=_0x168311-0xa9;const _0x129c97=a177_0x129c();let _0x564577=_0x129c97[_0x168311];return _0x564577;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a177_0x129c(){const _0x524f76=['254950Nxcvko','7JPZtiJ','1157056iHbHZY','590085uVomQf','226632XbvRin','unknown','985758OxuAsJ','tenant_code','username','221784HrawXI','user','email','production','341025GwYlWD','daily'];a177_0x129c=function(){return _0x524f76;};return a177_0x129c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ae46a=a177_0x5645,_0x253c36=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x32c4b1=_0x253c36?.[_0x1ae46a(0xb5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ae46a(0xb0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ae46a(0xaa):_0x1ae46a(0xb7))}),setUserContext({'id':_0x32c4b1?.['id'],'username':_0x32c4b1?.[_0x1ae46a(0xb3)],'nickname':_0x32c4b1?.['nickname'],'email':_0x32c4b1?.[_0x1ae46a(0xb6)],'tenantCode':_0x32c4b1?.['tenant'][_0x1ae46a(0xb2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x253c36;}
1
+ function a177_0x2dab(){const _0x3ce77a=['4CguRUd','929871BVYXhC','13091ydmvOV','production','198696BhuCbU','2035GCOwwB','daily','email','username','tenant','3823nYrvnx','1175337OVJhPb','55CUrfAS','user','166xFNHvq','700GqAKyO','101073gGrInA','6156qsTQlZ','unknown','8WxMBqr'];a177_0x2dab=function(){return _0x3ce77a;};return a177_0x2dab();}(function(_0x2536fb,_0x2bce43){const _0x404c94=a177_0x5c1b,_0x1b088c=_0x2536fb();while(!![]){try{const _0x533caa=-parseInt(_0x404c94(0xda))/0x1*(parseInt(_0x404c94(0xde))/0x2)+-parseInt(_0x404c94(0xd1))/0x3*(-parseInt(_0x404c94(0xd0))/0x4)+parseInt(_0x404c94(0xdc))/0x5*(-parseInt(_0x404c94(0xd4))/0x6)+-parseInt(_0x404c94(0xe0))/0x7*(-parseInt(_0x404c94(0xcf))/0x8)+parseInt(_0x404c94(0xdb))/0x9+-parseInt(_0x404c94(0xdf))/0xa*(parseInt(_0x404c94(0xd5))/0xb)+-parseInt(_0x404c94(0xcd))/0xc*(-parseInt(_0x404c94(0xd2))/0xd);if(_0x533caa===_0x2bce43)break;else _0x1b088c['push'](_0x1b088c['shift']());}catch(_0x5458fd){_0x1b088c['push'](_0x1b088c['shift']());}}}(a177_0x2dab,0x43a35));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a177_0x5c1b(_0x2a1f21,_0xa03c12){_0x2a1f21=_0x2a1f21-0xcd;const _0x2dabca=a177_0x2dab();let _0x5c1bf0=_0x2dabca[_0x2a1f21];return _0x5c1bf0;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5bb75c=a177_0x5c1b,_0x326c69=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x41867f=_0x326c69?.[_0x5bb75c(0xdd)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5bb75c(0xce)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5bb75c(0xd6):_0x5bb75c(0xd3))}),setUserContext({'id':_0x41867f?.['id'],'username':_0x41867f?.[_0x5bb75c(0xd8)],'nickname':_0x41867f?.['nickname'],'email':_0x41867f?.[_0x5bb75c(0xd7)],'tenantCode':_0x41867f?.[_0x5bb75c(0xd9)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x326c69;}
@@ -1 +1 @@
1
- (function(_0x132cd3,_0x649b59){const _0x21963b=a178_0x4fde,_0xc0235a=_0x132cd3();while(!![]){try{const _0x5e392d=parseInt(_0x21963b(0x122))/0x1*(-parseInt(_0x21963b(0x119))/0x2)+parseInt(_0x21963b(0x11b))/0x3*(-parseInt(_0x21963b(0x126))/0x4)+-parseInt(_0x21963b(0x11d))/0x5+parseInt(_0x21963b(0x123))/0x6*(-parseInt(_0x21963b(0x11c))/0x7)+-parseInt(_0x21963b(0x11e))/0x8*(-parseInt(_0x21963b(0x125))/0x9)+parseInt(_0x21963b(0x121))/0xa+parseInt(_0x21963b(0x124))/0xb;if(_0x5e392d===_0x649b59)break;else _0xc0235a['push'](_0xc0235a['shift']());}catch(_0x56177d){_0xc0235a['push'](_0xc0235a['shift']());}}}(a178_0x27cf,0x36f16));function a178_0x27cf(){const _0x1e91fd=['91CHVxTC','1986300RbIaWL','56REMJWd','then','once','3484650TmCoVW','147592YziscJ','31986cyfeuy','7215934PatrKg','374301YEOFbJ','4ebwfXs','exit','6FNSGRF','SIGINT','483591AcIgsz'];a178_0x27cf=function(){return _0x1e91fd;};return a178_0x27cf();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x596ee9=a178_0x4fde;process[_0x596ee9(0x120)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1b8fe0=()=>{const _0x5d19b8=_0x596ee9;void flushOtelNodeIfUsed()[_0x5d19b8(0x11f)](()=>process[_0x5d19b8(0x127)](0x0));};process[_0x596ee9(0x120)](_0x596ee9(0x11a),_0x1b8fe0),process[_0x596ee9(0x120)]('SIGTERM',_0x1b8fe0);}function a178_0x4fde(_0x3c6c41,_0x6831cc){_0x3c6c41=_0x3c6c41-0x119;const _0x27cf95=a178_0x27cf();let _0x4fde99=_0x27cf95[_0x3c6c41];return _0x4fde99;}export async function exitWithOtelShutdown(_0x2c49ab){const _0x455f87=a178_0x4fde;await flushOtelNodeIfUsed(),process[_0x455f87(0x127)](_0x2c49ab);}
1
+ function a178_0x19d2(){const _0x424b5e=['10ZKbZUm','10vNqOwj','14610002UOBsEY','314284BOfKQO','2612029kWRePA','16DjjyRk','once','52EGlnAN','158778AhsqiL','4667193WeazrZ','19023wuAqIV','exit','309284HynXXC'];a178_0x19d2=function(){return _0x424b5e;};return a178_0x19d2();}(function(_0x555f51,_0x105a91){const _0x4189c6=a178_0x1599,_0xdd7503=_0x555f51();while(!![]){try{const _0x25d4fe=parseInt(_0x4189c6(0x167))/0x1+parseInt(_0x4189c6(0x162))/0x2*(parseInt(_0x4189c6(0x165))/0x3)+parseInt(_0x4189c6(0x16b))/0x4*(parseInt(_0x4189c6(0x168))/0x5)+-parseInt(_0x4189c6(0x163))/0x6+parseInt(_0x4189c6(0x16c))/0x7*(-parseInt(_0x4189c6(0x160))/0x8)+-parseInt(_0x4189c6(0x164))/0x9*(parseInt(_0x4189c6(0x169))/0xa)+parseInt(_0x4189c6(0x16a))/0xb;if(_0x25d4fe===_0x105a91)break;else _0xdd7503['push'](_0xdd7503['shift']());}catch(_0x237e37){_0xdd7503['push'](_0xdd7503['shift']());}}}(a178_0x19d2,0xa31ec));function a178_0x1599(_0x4cdb6e,_0x471c9c){_0x4cdb6e=_0x4cdb6e-0x160;const _0x19d2ac=a178_0x19d2();let _0x15992a=_0x19d2ac[_0x4cdb6e];return _0x15992a;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1216d2=a178_0x1599;process[_0x1216d2(0x161)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x4a05ff=()=>{const _0x2b2b05=_0x1216d2;void flushOtelNodeIfUsed()['then'](()=>process[_0x2b2b05(0x166)](0x0));};process[_0x1216d2(0x161)]('SIGINT',_0x4a05ff),process[_0x1216d2(0x161)]('SIGTERM',_0x4a05ff);}export async function exitWithOtelShutdown(_0x463a50){await flushOtelNodeIfUsed(),process['exit'](_0x463a50);}
@@ -1 +1 @@
1
- const a179_0x4b1fee=a179_0x20fb;(function(_0x235a35,_0x171dbe){const _0x4d9fcc=a179_0x20fb,_0xfc6ade=_0x235a35();while(!![]){try{const _0x3d2a95=parseInt(_0x4d9fcc(0x10f))/0x1*(-parseInt(_0x4d9fcc(0x116))/0x2)+parseInt(_0x4d9fcc(0x11a))/0x3*(-parseInt(_0x4d9fcc(0x118))/0x4)+-parseInt(_0x4d9fcc(0x112))/0x5+-parseInt(_0x4d9fcc(0x113))/0x6*(parseInt(_0x4d9fcc(0x11c))/0x7)+-parseInt(_0x4d9fcc(0x11b))/0x8*(-parseInt(_0x4d9fcc(0x117))/0x9)+parseInt(_0x4d9fcc(0x111))/0xa+parseInt(_0x4d9fcc(0x110))/0xb;if(_0x3d2a95===_0x171dbe)break;else _0xfc6ade['push'](_0xfc6ade['shift']());}catch(_0x4bd99d){_0xfc6ade['push'](_0xfc6ade['shift']());}}}(a179_0x6748,0x424cd));import{sendTraceLog}from'@lovrabet/otel-logger';function a179_0x20fb(_0x387eae,_0x3802c0){_0x387eae=_0x387eae-0x10d;const _0x674836=a179_0x6748();let _0x20fb28=_0x674836[_0x387eae];return _0x20fb28;}function a179_0x6748(){const _0x457279=['5710518UJtkwI','714650KnIEPn','1569575iBzfvK','312522fSQpPC','traceName','manual','64HxmZkk','90zwPhmL','26964wWmKlR','rabetbase-cli','15nkPpXg','361360xObelg','14nLMwAJ','spanName','version','9967rlaPXR'];a179_0x6748=function(){return _0x457279;};return a179_0x6748();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a179_0x4b1fee(0x119);export async function sendCliTraceLog(_0x13c2ae){const _0x29a692=a179_0x4b1fee;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x13c2ae[_0x29a692(0x114)]??DEFAULT_TRACE_NAME,'version':_0x13c2ae[_0x29a692(0x10e)]??getCliVersion(),'spanName':_0x13c2ae[_0x29a692(0x10d)],'eventType':_0x29a692(0x115),'logData':_0x13c2ae['logData'],..._0x13c2ae['traceparent']&&{'traceparent':_0x13c2ae['traceparent']}});}
1
+ const a179_0x4b7b39=a179_0x7714;(function(_0x3d4029,_0x593b8d){const _0x3664cf=a179_0x7714,_0x51e797=_0x3d4029();while(!![]){try{const _0x3361d4=-parseInt(_0x3664cf(0x99))/0x1*(parseInt(_0x3664cf(0x91))/0x2)+parseInt(_0x3664cf(0x9e))/0x3*(-parseInt(_0x3664cf(0x9c))/0x4)+parseInt(_0x3664cf(0x92))/0x5+parseInt(_0x3664cf(0x96))/0x6*(parseInt(_0x3664cf(0x9a))/0x7)+-parseInt(_0x3664cf(0x9b))/0x8*(-parseInt(_0x3664cf(0x93))/0x9)+parseInt(_0x3664cf(0x9d))/0xa*(-parseInt(_0x3664cf(0x9f))/0xb)+parseInt(_0x3664cf(0x94))/0xc;if(_0x3361d4===_0x593b8d)break;else _0x51e797['push'](_0x51e797['shift']());}catch(_0x4c6bad){_0x51e797['push'](_0x51e797['shift']());}}}(a179_0x12ef,0x4bfcb));function a179_0x12ef(){const _0x28fb4a=['8239872RGeZpJ','manual','2190PAjWzW','rabetbase-cli','spanName','1DjJgNk','8813VOyFgc','8dzQTfq','4Cjkphv','189430gxsfmd','1217589cRhdsr','176HzqRkx','traceparent','logData','866840kRXTIY','488370xcVICf','1887741WAlacj'];a179_0x12ef=function(){return _0x28fb4a;};return a179_0x12ef();}import{sendTraceLog}from'@lovrabet/otel-logger';function a179_0x7714(_0x25b60c,_0x4536e2){_0x25b60c=_0x25b60c-0x8f;const _0x12ef10=a179_0x12ef();let _0x77146d=_0x12ef10[_0x25b60c];return _0x77146d;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a179_0x4b7b39(0x97);export async function sendCliTraceLog(_0x22be78){const _0x4a43e4=a179_0x4b7b39;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x22be78['traceName']??DEFAULT_TRACE_NAME,'version':_0x22be78['version']??getCliVersion(),'spanName':_0x22be78[_0x4a43e4(0x98)],'eventType':_0x4a43e4(0x95),'logData':_0x22be78[_0x4a43e4(0x90)],..._0x22be78[_0x4a43e4(0x8f)]&&{'traceparent':_0x22be78[_0x4a43e4(0x8f)]}});}
@@ -1 +1 @@
1
- const a180_0x4b7231=a180_0x3e53;(function(_0x4f1b1e,_0x122c0e){const _0x325e97=a180_0x3e53,_0x7d893c=_0x4f1b1e();while(!![]){try{const _0x3ec873=-parseInt(_0x325e97(0x1a4))/0x1*(-parseInt(_0x325e97(0x1a7))/0x2)+parseInt(_0x325e97(0x1ab))/0x3+-parseInt(_0x325e97(0x1a1))/0x4+-parseInt(_0x325e97(0x1ad))/0x5+-parseInt(_0x325e97(0x1a6))/0x6*(-parseInt(_0x325e97(0x1aa))/0x7)+-parseInt(_0x325e97(0x1ae))/0x8+-parseInt(_0x325e97(0x1af))/0x9*(-parseInt(_0x325e97(0x1a8))/0xa);if(_0x3ec873===_0x122c0e)break;else _0x7d893c['push'](_0x7d893c['shift']());}catch(_0x118f64){_0x7d893c['push'](_0x7d893c['shift']());}}}(a180_0x2541,0xca0ea));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x3e53(_0x20f1ba,_0x2c91c6){_0x20f1ba=_0x20f1ba-0x1a1;const _0x254149=a180_0x2541();let _0x3e531a=_0x254149[_0x20f1ba];return _0x3e531a;}export const PLATFORM_ISSUE_TRACE_NAME=a180_0x4b7231(0x1a2);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x32d1ee){const _0x2e5682=a180_0x4b7231;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x32d1ee[_0x2e5682(0x1ac)],'issue.description':_0x32d1ee[_0x2e5682(0x1a3)],..._0x32d1ee[_0x2e5682(0x1a5)]?{'issue.description_original_bytes':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1a9)],'issue.description_truncated':_0x32d1ee[_0x2e5682(0x1a5)]['truncated'],'issue.description_redactions':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b2)],'issue.description_redaction_kinds':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b1)][_0x2e5682(0x1b0)](',')}:{}}});}function a180_0x2541(){const _0xd41f6e=['1261SMhLFB','sanitize','1806RIuVrn','96WBdpvO','10lTmfJm','originalBytes','27013GSiFRa','2851800zXmbLi','title','6021820PkfSWy','906432LWzOaL','1078047rSSNlw','join','redactionKinds','redactionCount','588704TZJSZM','platform-issue-log-collect','description'];a180_0x2541=function(){return _0xd41f6e;};return a180_0x2541();}
1
+ function a180_0x553c(){const _0x2a2368=['join','140314lhnvuN','sanitize','1616PCCnOp','3181584IOBXcI','1325UkbufI','11bBuVdx','originalBytes','640zcxcWb','10936BMUrrS','description','336JMothf','9802670vzBXnl','truncated','redactionCount','1253LXNErP','4265604YNZqNf','title'];a180_0x553c=function(){return _0x2a2368;};return a180_0x553c();}(function(_0x3c6d09,_0x22b5ca){const _0x2f6506=a180_0x2306,_0x21a060=_0x3c6d09();while(!![]){try{const _0x3db7d2=parseInt(_0x2f6506(0x136))/0x1+parseInt(_0x2f6506(0x12b))/0x2*(-parseInt(_0x2f6506(0x12e))/0x3)+parseInt(_0x2f6506(0x138))/0x4*(-parseInt(_0x2f6506(0x128))/0x5)+parseInt(_0x2f6506(0x127))/0x6+-parseInt(_0x2f6506(0x132))/0x7*(-parseInt(_0x2f6506(0x12c))/0x8)+parseInt(_0x2f6506(0x133))/0x9+parseInt(_0x2f6506(0x12f))/0xa*(-parseInt(_0x2f6506(0x129))/0xb);if(_0x3db7d2===_0x22b5ca)break;else _0x21a060['push'](_0x21a060['shift']());}catch(_0x458055){_0x21a060['push'](_0x21a060['shift']());}}}(a180_0x553c,0x40f4c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a180_0x2306(_0x3a2172,_0x1ede3a){_0x3a2172=_0x3a2172-0x127;const _0x553ccd=a180_0x553c();let _0x230639=_0x553ccd[_0x3a2172];return _0x230639;}export async function sendPlatformIssueCollectLog(_0x305dad){const _0x163ea6=a180_0x2306;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x305dad[_0x163ea6(0x134)],'issue.description':_0x305dad[_0x163ea6(0x12d)],..._0x305dad[_0x163ea6(0x137)]?{'issue.description_original_bytes':_0x305dad['sanitize'][_0x163ea6(0x12a)],'issue.description_truncated':_0x305dad[_0x163ea6(0x137)][_0x163ea6(0x130)],'issue.description_redactions':_0x305dad[_0x163ea6(0x137)][_0x163ea6(0x131)],'issue.description_redaction_kinds':_0x305dad[_0x163ea6(0x137)]['redactionKinds'][_0x163ea6(0x135)](',')}:{}}});}
@@ -1 +1 @@
1
- const a182_0x3605e0=a182_0x2394;function a182_0x2394(_0x11dfbd,_0x1bc096){_0x11dfbd=_0x11dfbd-0xd9;const _0x1ada9a=a182_0x1ada();let _0x2394eb=_0x1ada9a[_0x11dfbd];return _0x2394eb;}(function(_0x120ca1,_0x16df05){const _0x53d031=a182_0x2394,_0xe9ccef=_0x120ca1();while(!![]){try{const _0x43e92d=-parseInt(_0x53d031(0xf9))/0x1*(-parseInt(_0x53d031(0xf7))/0x2)+-parseInt(_0x53d031(0xe2))/0x3*(-parseInt(_0x53d031(0xfb))/0x4)+-parseInt(_0x53d031(0x106))/0x5+-parseInt(_0x53d031(0xfc))/0x6*(-parseInt(_0x53d031(0x111))/0x7)+parseInt(_0x53d031(0xeb))/0x8+parseInt(_0x53d031(0x110))/0x9+-parseInt(_0x53d031(0x102))/0xa*(parseInt(_0x53d031(0x10d))/0xb);if(_0x43e92d===_0x16df05)break;else _0xe9ccef['push'](_0xe9ccef['shift']());}catch(_0x51f59f){_0xe9ccef['push'](_0xe9ccef['shift']());}}}(a182_0x1ada,0x1dc0d));export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x3605e0(0xe7),'description':a182_0x3605e0(0xee),'folders':[a182_0x3605e0(0x105),a182_0x3605e0(0xf0)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a182_0x3605e0(0xef)}]},'windsurf':{'name':'Windsurf','description':a182_0x3605e0(0xf3),'folders':[a182_0x3605e0(0xf1)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xfd),'template':a182_0x3605e0(0xef)}]},'claude':{'name':a182_0x3605e0(0x108),'description':a182_0x3605e0(0x108),'folders':[a182_0x3605e0(0xf6)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xe1),'template':a182_0x3605e0(0xef)}]},'cline':{'name':a182_0x3605e0(0xfa),'description':'Cline\x20IDE','folders':[a182_0x3605e0(0xe8)],'files':[{'type':a182_0x3605e0(0xe3),'path':'.cline/skills/lovrabet/SKILL.md','template':a182_0x3605e0(0xef)}]},'codex':{'name':a182_0x3605e0(0x10b),'description':'Codex\x20IDE','folders':[a182_0x3605e0(0xdf)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x101),'template':'SKILL.md.tpl'}]},'opencode':{'name':a182_0x3605e0(0x10c),'description':a182_0x3605e0(0xe0),'folders':['.opencode'],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a182_0x3605e0(0x109),'description':'Qoder\x20IDE','folders':[a182_0x3605e0(0x10e)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xea),'template':a182_0x3605e0(0xef)},{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x107),'template':a182_0x3605e0(0xef)}]},'codebuddy':{'name':'CodeBuddy','description':a182_0x3605e0(0xe5),'folders':[a182_0x3605e0(0xd9)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x100),'template':a182_0x3605e0(0xef)}]},'trae':{'name':a182_0x3605e0(0xdb),'description':a182_0x3605e0(0xf8),'folders':[a182_0x3605e0(0x104)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xdd),'template':a182_0x3605e0(0xef)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a182_0x3605e0(0xe6),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':'file','path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]},'antigravity':{'name':a182_0x3605e0(0xed),'description':a182_0x3605e0(0xec),'folders':[a182_0x3605e0(0xe4)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]}};function a182_0x1ada(){const _0x4c09f9=['615198gNePHV','file','.agent','CodeBuddy\x20IDE','其他\x20(通用模板)','Cursor','.cline','claude','.qoder/rules/rabetbase.md','1769368NqSDGA','Antigravity\x20IDE','Antigravity','Cursor\x20IDE','SKILL.md.tpl','.cursor','.windsurf','agent','Windsurf\x20IDE','trae','.agent/skills/lovrabet/SKILL.md','.claude','53644gFSlqS','Trae\x20IDE','2ZnYWsU','Cline','4HigAAX','53682XRZxyH','.windsurf/workflows/rabetbase.md','cline','qoder','.codebuddy/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','1580hjFjIT','antigravity','.trae','.cursorrules','282760fbRtTd','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','Qoder','cursor','Codex','OpenCode','30426bAIvbi','.qoder','opencode','817497NFHgOg','35uZOMie','.codebuddy','codebuddy','Trae','windsurf','.trae/skills/lovrabet/SKILL.md','codex','.codex','OpenCode\x20IDE','.claude/skills/lovrabet/SKILL.md'];a182_0x1ada=function(){return _0x4c09f9;};return a182_0x1ada();}export const CORE_IDE_LIST=[a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xda),'codex',a182_0x3605e0(0x10a),a182_0x3605e0(0x10f),a182_0x3605e0(0xff),a182_0x3605e0(0xf4),a182_0x3605e0(0xdc)];export const IDE_LIST=[a182_0x3605e0(0x103),'claude','cline','codebuddy',a182_0x3605e0(0xde),'cursor',a182_0x3605e0(0x10f),a182_0x3605e0(0xff),'trae',a182_0x3605e0(0xdc),a182_0x3605e0(0xf2)];export const ALL_CORE_IDES=[a182_0x3605e0(0x10a),a182_0x3605e0(0xdc),a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xde),'opencode',a182_0x3605e0(0xff),a182_0x3605e0(0xda),'trae'];
1
+ const a182_0x20939d=a182_0x390f;(function(_0x35f5e3,_0x29577e){const _0x4d475e=a182_0x390f,_0x45c49b=_0x35f5e3();while(!![]){try{const _0x307364=-parseInt(_0x4d475e(0x1b8))/0x1+parseInt(_0x4d475e(0x1dc))/0x2*(parseInt(_0x4d475e(0x1ad))/0x3)+-parseInt(_0x4d475e(0x1d7))/0x4+parseInt(_0x4d475e(0x1de))/0x5+-parseInt(_0x4d475e(0x1dd))/0x6+-parseInt(_0x4d475e(0x1bb))/0x7*(parseInt(_0x4d475e(0x1ae))/0x8)+-parseInt(_0x4d475e(0x1d6))/0x9*(-parseInt(_0x4d475e(0x1b4))/0xa);if(_0x307364===_0x29577e)break;else _0x45c49b['push'](_0x45c49b['shift']());}catch(_0x28ff7a){_0x45c49b['push'](_0x45c49b['shift']());}}}(a182_0x5485,0x69b1d));function a182_0x390f(_0x41caaa,_0x5e7428){_0x41caaa=_0x41caaa-0x1ad;const _0x548593=a182_0x5485();let _0x390f4a=_0x548593[_0x41caaa];return _0x390f4a;}export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x20939d(0x1d9),'description':a182_0x20939d(0x1d4),'folders':[a182_0x20939d(0x1c4),'.cursor'],'files':[{'type':a182_0x20939d(0x1db),'path':'.cursor/skills/rabetbase.md','template':a182_0x20939d(0x1af)}]},'windsurf':{'name':a182_0x20939d(0x1d8),'description':a182_0x20939d(0x1b9),'folders':[a182_0x20939d(0x1b3)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1b5),'template':a182_0x20939d(0x1af)}]},'claude':{'name':a182_0x20939d(0x1bd),'description':a182_0x20939d(0x1bd),'folders':[a182_0x20939d(0x1c8)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1c2),'template':a182_0x20939d(0x1af)}]},'cline':{'name':'Cline','description':a182_0x20939d(0x1ca),'folders':[a182_0x20939d(0x1df)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1c7),'template':a182_0x20939d(0x1af)}]},'codex':{'name':a182_0x20939d(0x1c0),'description':a182_0x20939d(0x1cb),'folders':[a182_0x20939d(0x1b2)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a182_0x20939d(0x1be)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1cc),'template':'SKILL.md.tpl'}]},'qoder':{'name':a182_0x20939d(0x1d5),'description':'Qoder\x20IDE','folders':[a182_0x20939d(0x1d3)],'files':[{'type':a182_0x20939d(0x1db),'path':'.qoder/rules/rabetbase.md','template':a182_0x20939d(0x1af)},{'type':'file','path':a182_0x20939d(0x1ce),'template':a182_0x20939d(0x1af)}]},'codebuddy':{'name':a182_0x20939d(0x1cd),'description':a182_0x20939d(0x1b0),'folders':[a182_0x20939d(0x1c1)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1cf),'template':a182_0x20939d(0x1af)}]},'trae':{'name':a182_0x20939d(0x1c5),'description':'Trae\x20IDE','folders':[a182_0x20939d(0x1ba)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1b7),'template':a182_0x20939d(0x1af)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a182_0x20939d(0x1d0),'folders':[a182_0x20939d(0x1e1)],'files':[{'type':'file','path':a182_0x20939d(0x1d1),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':a182_0x20939d(0x1c9),'folders':[a182_0x20939d(0x1e1)],'files':[{'type':a182_0x20939d(0x1db),'path':a182_0x20939d(0x1d1),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a182_0x20939d(0x1d2),'cline',a182_0x20939d(0x1da),a182_0x20939d(0x1bf),a182_0x20939d(0x1bc),a182_0x20939d(0x1c3),a182_0x20939d(0x1e0),a182_0x20939d(0x1b1),a182_0x20939d(0x1c6)];export const IDE_LIST=['antigravity',a182_0x20939d(0x1d2),'cline','codebuddy',a182_0x20939d(0x1bf),'cursor','opencode',a182_0x20939d(0x1e0),a182_0x20939d(0x1b1),a182_0x20939d(0x1c6),'agent'];function a182_0x5485(){const _0x1c10c8=['SKILL.md.tpl','CodeBuddy\x20IDE','trae','.codex','.windsurf','3910vsQLcQ','.windsurf/workflows/rabetbase.md','cline','.trae/skills/lovrabet/SKILL.md','554422DSZUlp','Windsurf\x20IDE','.trae','1014748iOdtpd','cursor','Claude\x20Code','.opencode','codex','Codex','.codebuddy','.claude/skills/lovrabet/SKILL.md','opencode','.cursorrules','Trae','windsurf','.cline/skills/lovrabet/SKILL.md','.claude','Antigravity\x20IDE','Cline\x20IDE','Codex\x20IDE','.opencode/skills/lovrabet/SKILL.md','CodeBuddy','.qoder/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.agent/skills/lovrabet/SKILL.md','claude','.qoder','Cursor\x20IDE','Qoder','41292xRaAaI','2344160IUJdIG','Windsurf','Cursor','codebuddy','file','2MucNGG','2737188AmkyMQ','1735035voBOoz','.cline','qoder','.agent','1405578vGKbxz','32XfxcCa'];a182_0x5485=function(){return _0x1c10c8;};return a182_0x5485();}export const ALL_CORE_IDES=['cursor',a182_0x20939d(0x1c6),a182_0x20939d(0x1d2),a182_0x20939d(0x1b6),a182_0x20939d(0x1bf),'opencode','qoder',a182_0x20939d(0x1da),'trae'];
@@ -1 +1 @@
1
- (function(_0xab5ea6,_0x23ef86){const _0x341475=a183_0x1e01,_0x4abb31=_0xab5ea6();while(!![]){try{const _0xf8754f=-parseInt(_0x341475(0x1a8))/0x1+-parseInt(_0x341475(0x1a5))/0x2+-parseInt(_0x341475(0x1ad))/0x3+-parseInt(_0x341475(0x1a6))/0x4+-parseInt(_0x341475(0x1ac))/0x5*(-parseInt(_0x341475(0x1aa))/0x6)+-parseInt(_0x341475(0x1a7))/0x7*(parseInt(_0x341475(0x1a9))/0x8)+parseInt(_0x341475(0x1ab))/0x9;if(_0xf8754f===_0x23ef86)break;else _0x4abb31['push'](_0x4abb31['shift']());}catch(_0x389a8b){_0x4abb31['push'](_0x4abb31['shift']());}}}(a183_0x3e85,0x90628));function a183_0x1e01(_0x175082,_0x8cf444){_0x175082=_0x175082-0x1a5;const _0x3e8504=a183_0x3e85();let _0x1e01df=_0x3e8504[_0x175082];return _0x1e01df;}function a183_0x3e85(){const _0x3637ae=['4221256HBQeax','2737ItIYen','413486wRBtsN','19312OPotIt','66XXRYuZ','36498015DASDNm','32535IddGuo','1307331LkbJtR','1374122aZyjVO'];a183_0x3e85=function(){return _0x3637ae;};return a183_0x3e85();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x5f566f,_0x4e9835){const _0x1eb63d=a183_0x3738,_0x95c024=_0x5f566f();while(!![]){try{const _0x257ffd=parseInt(_0x1eb63d(0x12e))/0x1*(-parseInt(_0x1eb63d(0x12f))/0x2)+-parseInt(_0x1eb63d(0x12c))/0x3*(parseInt(_0x1eb63d(0x132))/0x4)+-parseInt(_0x1eb63d(0x134))/0x5*(parseInt(_0x1eb63d(0x12d))/0x6)+parseInt(_0x1eb63d(0x131))/0x7*(parseInt(_0x1eb63d(0x133))/0x8)+-parseInt(_0x1eb63d(0x129))/0x9*(-parseInt(_0x1eb63d(0x130))/0xa)+parseInt(_0x1eb63d(0x12a))/0xb+-parseInt(_0x1eb63d(0x12b))/0xc;if(_0x257ffd===_0x4e9835)break;else _0x95c024['push'](_0x95c024['shift']());}catch(_0x3f7e5c){_0x95c024['push'](_0x95c024['shift']());}}}(a183_0x5da3,0x3d38d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a183_0x5da3(){const _0x42bcba=['3967AWsHyw','2YAdwHo','94790nnWETl','490777lvmtsq','40qJxRHI','40ddVblp','350885ZHsozF','198yJlZZm','3788279DVUbTi','4683948anFIYq','14367ToyYwm','18ifUiUK'];a183_0x5da3=function(){return _0x42bcba;};return a183_0x5da3();}function a183_0x3738(_0x5c91b1,_0x439c8d){_0x5c91b1=_0x5c91b1-0x129;const _0x5da375=a183_0x5da3();let _0x3738c3=_0x5da375[_0x5c91b1];return _0x3738c3;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x476d35,_0x1c3adc){const _0x52d4ab=a184_0x1bf1,_0x633244=_0x476d35();while(!![]){try{const _0x3c59c6=-parseInt(_0x52d4ab(0x184))/0x1*(parseInt(_0x52d4ab(0x17e))/0x2)+parseInt(_0x52d4ab(0x17b))/0x3*(-parseInt(_0x52d4ab(0x180))/0x4)+parseInt(_0x52d4ab(0x183))/0x5+-parseInt(_0x52d4ab(0x181))/0x6*(parseInt(_0x52d4ab(0x17d))/0x7)+-parseInt(_0x52d4ab(0x17f))/0x8+parseInt(_0x52d4ab(0x189))/0x9+parseInt(_0x52d4ab(0x17c))/0xa*(parseInt(_0x52d4ab(0x18a))/0xb);if(_0x3c59c6===_0x1c3adc)break;else _0x633244['push'](_0x633244['shift']());}catch(_0x2bbcb5){_0x633244['push'](_0x633244['shift']());}}}(a184_0x4a3d,0xb94d3));function a184_0x1bf1(_0x29e96d,_0x573c4b){_0x29e96d=_0x29e96d-0x17a;const _0x4a3d90=a184_0x4a3d();let _0x1bf1d9=_0x4a3d90[_0x29e96d];return _0x1bf1d9;}import{getTemplateBaseUrl}from'../utils/config.js';function a184_0x4a3d(){const _0x5a7c58=['178510wZruox','1876637tTSdfm','118GCXcAS','4263920cKrAdO','412QkNMup','12IHuVmg','stableVersion','2444770UCZcxE','16361MGGaEO','node','json','now','sdk','7146882qeIeKU','1353GpbIEQ','/config.json','/config/index.json','19959iaafEO'];a184_0x4a3d=function(){return _0x5a7c58;};return a184_0x4a3d();}export async function fetchCdnConfig(){const _0x1a6460=a184_0x1bf1,_0x5500e9=getTemplateBaseUrl(),_0x5abcfd=[_0x5500e9+_0x1a6460(0x18b),_0x5500e9+_0x1a6460(0x17a)];for(const _0x3ca064 of _0x5abcfd){try{const _0x1c94d2=await fetch(_0x3ca064,{'headers':{'Accept':'application/json'}});if(!_0x1c94d2['ok'])continue;const _0x20b817=await _0x1c94d2[_0x1a6460(0x186)]();if(!_0x20b817['cli']?.['stableVersion']||!_0x20b817[_0x1a6460(0x188)]?.[_0x1a6460(0x185)]?.[_0x1a6460(0x182)])continue;return _0x20b817;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3d3d17=a184_0x1bf1,_0x55658f=Date[_0x3d3d17(0x187)]();if(hasCachedConfig){const _0x2d41bb=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55658f-cacheTime<_0x2d41bb)return cachedConfig;}const _0x52ae95=await fetchCdnConfig();return cachedConfig=_0x52ae95,cacheTime=_0x55658f,hasCachedConfig=!![],_0x52ae95;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x17ab5c,_0x329dba){const _0x49e309=a184_0x2c84,_0x3e8864=_0x17ab5c();while(!![]){try{const _0x4ee25b=-parseInt(_0x49e309(0x140))/0x1*(-parseInt(_0x49e309(0x146))/0x2)+-parseInt(_0x49e309(0x14b))/0x3+-parseInt(_0x49e309(0x147))/0x4*(parseInt(_0x49e309(0x13e))/0x5)+parseInt(_0x49e309(0x143))/0x6*(-parseInt(_0x49e309(0x13b))/0x7)+parseInt(_0x49e309(0x145))/0x8*(parseInt(_0x49e309(0x13d))/0x9)+-parseInt(_0x49e309(0x148))/0xa+-parseInt(_0x49e309(0x144))/0xb*(-parseInt(_0x49e309(0x142))/0xc);if(_0x4ee25b===_0x329dba)break;else _0x3e8864['push'](_0x3e8864['shift']());}catch(_0x1957c5){_0x3e8864['push'](_0x3e8864['shift']());}}}(a184_0x24cf,0x85275));function a184_0x24cf(){const _0x14578e=['cli','1017567EjVlaX','stableVersion','sdk','77cWhMXE','/config.json','279MWKjEP','50305IlxYGA','application/json','24773vsXFwC','node','490932JnODZm','503376tDsnpi','473FHHQDJ','272584AuGExZ','2EEkOuj','240INMeLY','4291070diOxOC','json'];a184_0x24cf=function(){return _0x14578e;};return a184_0x24cf();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x24527b=a184_0x2c84,_0xf63d23=getTemplateBaseUrl(),_0x53434b=[_0xf63d23+_0x24527b(0x13c),_0xf63d23+'/config/index.json'];for(const _0x17c41e of _0x53434b){try{const _0x2ca35f=await fetch(_0x17c41e,{'headers':{'Accept':_0x24527b(0x13f)}});if(!_0x2ca35f['ok'])continue;const _0x1d8783=await _0x2ca35f[_0x24527b(0x149)]();if(!_0x1d8783[_0x24527b(0x14a)]?.['stableVersion']||!_0x1d8783[_0x24527b(0x13a)]?.[_0x24527b(0x141)]?.[_0x24527b(0x14c)])continue;return _0x1d8783;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a184_0x2c84(_0x54a014,_0x28a199){_0x54a014=_0x54a014-0x13a;const _0x24cf48=a184_0x24cf();let _0x2c845b=_0x24cf48[_0x54a014];return _0x2c845b;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x58acc4=Date['now']();if(hasCachedConfig){const _0x14fd28=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x58acc4-cacheTime<_0x14fd28)return cachedConfig;}const _0x31ed60=await fetchCdnConfig();return cachedConfig=_0x31ed60,cacheTime=_0x58acc4,hasCachedConfig=!![],_0x31ed60;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a185_0x97c7(_0x17249b,_0x522e93){_0x17249b=_0x17249b-0x1da;const _0x34724c=a185_0x3472();let _0x97c7b2=_0x34724c[_0x17249b];return _0x97c7b2;}const a185_0x1b952e=a185_0x97c7;function a185_0x3472(){const _0x5665be=['utf8','coerce','\x1b[33m','latest','utf-8','\x20\x20\x20Stable\x20version:\x20','existsSync','8FMKyPi','4744295xPkgII','1.2.0','version','readFileSync','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','6gTcpuc','node_modules','473112IZECkn','17407dvWZQM','dependencies','728zDFAao','585deAuoG','parse','package.json','6336855smZXjI','npm\x20install\x20','join','sdk','\x20\x20\x20Current\x20version:\x20','948aQngmF','packageName','log','node','test','minVersion','42188UqtLwe','@lovrabet/sdk','32989zempeR','43MiYFmE','\x1b[0m','490NyEaRt'];a185_0x3472=function(){return _0x5665be;};return a185_0x3472();}(function(_0x1478e7,_0x269406){const _0x5ac723=a185_0x97c7,_0x529ffb=_0x1478e7();while(!![]){try{const _0x33833d=-parseInt(_0x5ac723(0x1df))/0x1*(-parseInt(_0x5ac723(0x1dc))/0x2)+parseInt(_0x5ac723(0x1f6))/0x3*(-parseInt(_0x5ac723(0x1f5))/0x4)+-parseInt(_0x5ac723(0x1ea))/0x5*(-parseInt(_0x5ac723(0x1f0))/0x6)+parseInt(_0x5ac723(0x1f9))/0x7*(-parseInt(_0x5ac723(0x1e9))/0x8)+-parseInt(_0x5ac723(0x1f2))/0x9+parseInt(_0x5ac723(0x1e1))/0xa*(-parseInt(_0x5ac723(0x1de))/0xb)+parseInt(_0x5ac723(0x1fe))/0xc*(-parseInt(_0x5ac723(0x1f3))/0xd);if(_0x33833d===_0x269406)break;else _0x529ffb['push'](_0x529ffb['shift']());}catch(_0x55e7a3){_0x529ffb['push'](_0x529ffb['shift']());}}}(a185_0x3472,0x94e36));import a185_0x545397 from'node:fs';import a185_0x3230d5 from'node:path';import a185_0x4bef4f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a185_0x1b952e(0x1eb);function isNonNumericVersion(_0x2cf30c){const _0x17aef8=a185_0x1b952e,_0x4ba62b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4ba62b['some'](_0x105cd5=>_0x105cd5[_0x17aef8(0x1da)](_0x2cf30c));}function getInstalledVersion(_0x219b14,_0x744015){const _0x423a95=a185_0x1b952e;try{const _0x10ed58=a185_0x3230d5[_0x423a95(0x1fb)](_0x219b14,_0x423a95(0x1f1),_0x744015,_0x423a95(0x1f8));if(a185_0x545397['existsSync'](_0x10ed58)){const _0x5f54e9=JSON[_0x423a95(0x1f7)](a185_0x545397[_0x423a95(0x1ed)](_0x10ed58,_0x423a95(0x1e6)));return _0x5f54e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4040c8=a185_0x1b952e;try{const _0x297433=await getCdnConfig();return _0x297433?.['sdk']?.[_0x4040c8(0x201)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x25a786=a185_0x1b952e;try{const _0x278f2f=await getCdnConfig();return _0x278f2f?.[_0x25a786(0x1fc)]?.['node']?.['packageName']||_0x25a786(0x1dd);}catch{return _0x25a786(0x1dd);}}export async function checkSdkVersion(_0x2346ab){const _0x3ac159=a185_0x1b952e,_0x423898=a185_0x3230d5['join'](_0x2346ab,_0x3ac159(0x1f8)),[_0x2059e2,_0x358bc7]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x14f95f=_0x2059e2||FALLBACK_MIN_SDK_VERSION;if(!a185_0x545397['existsSync'](_0x423898))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};try{const _0x1d1d37=JSON[_0x3ac159(0x1f7)](a185_0x545397[_0x3ac159(0x1ed)](_0x423898,_0x3ac159(0x1e2))),_0x45f35c=_0x1d1d37[_0x3ac159(0x1f4)]||{},_0xa98fd=_0x1d1d37['devDependencies']||{},_0x2c39eb=_0x45f35c[_0x358bc7]||_0xa98fd[_0x358bc7];if(!_0x2c39eb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};let _0x18980a=getInstalledVersion(_0x2346ab,_0x358bc7);!_0x18980a&&(_0x18980a=_0x2c39eb);if(isNonNumericVersion(_0x2c39eb))return{'installed':!![],'version':_0x18980a,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};const _0x3acef7=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x18980a),_0x256d54=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x14f95f),_0x8d3652=_0x3acef7&&_0x256d54?a185_0x4bef4f['lt'](_0x3acef7,_0x256d54):![];return{'installed':!![],'version':_0x18980a,'needsUpgrade':_0x8d3652,'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}}export function checkSdkVersionSync(_0x243085){const _0x22840e=a185_0x1b952e,_0x520a9f=a185_0x3230d5[_0x22840e(0x1fb)](_0x243085,_0x22840e(0x1f8)),_0x756dce='@lovrabet/sdk';if(!a185_0x545397[_0x22840e(0x1e8)](_0x520a9f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};try{const _0x4744df=JSON['parse'](a185_0x545397[_0x22840e(0x1ed)](_0x520a9f,_0x22840e(0x1e2))),_0x32daab=_0x4744df[_0x22840e(0x1f4)]||{},_0x68e4a9=_0x4744df[_0x22840e(0x1ef)]||{},_0x31c5ea=_0x32daab[_0x756dce]||_0x68e4a9[_0x756dce];if(!_0x31c5ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};let _0x534322=getInstalledVersion(_0x243085,_0x756dce);!_0x534322&&(_0x534322=_0x31c5ea);if(isNonNumericVersion(_0x31c5ea))return{'installed':!![],'version':_0x534322,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};const _0x2111f2=a185_0x4bef4f[_0x22840e(0x1e3)](_0x534322),_0x2924b9=_0x2111f2?a185_0x4bef4f['lt'](_0x2111f2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x534322,'needsUpgrade':_0x2924b9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5ef99a){const _0x4ea237=a185_0x1b952e;if(!_0x5ef99a['needsUpgrade'])return;const _0x57cd3e=_0x4ea237(0x1e4),_0x16818f=_0x4ea237(0x1e0),_0x57786a='\x1b[1m',_0x4a542b=_0x5ef99a[_0x4ea237(0x1ff)]||_0x4ea237(0x1dd),_0x181d89=_0x5ef99a['stableVersion']||_0x5ef99a[_0x4ea237(0x1db)],_0x4b4763=_0x4ea237(0x1fa)+_0x4a542b+'@'+(_0x181d89||_0x4ea237(0x1e5));console[_0x4ea237(0x200)](),console['log'](''+_0x57cd3e+_0x57786a+'↪\x20SDK\x20update\x20available'+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1fd)+_0x4a542b+'@'+_0x5ef99a[_0x4ea237(0x1ec)]+_0x16818f),console[_0x4ea237(0x200)](_0x57cd3e+_0x4ea237(0x1e7)+_0x181d89+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1ee)+_0x4b4763+_0x16818f),console[_0x4ea237(0x200)]();}
1
+ const a185_0x201edb=a185_0x3364;(function(_0x33f974,_0x39c7aa){const _0x392a89=a185_0x3364,_0x211b19=_0x33f974();while(!![]){try{const _0x2d3750=parseInt(_0x392a89(0xf6))/0x1*(-parseInt(_0x392a89(0xe8))/0x2)+parseInt(_0x392a89(0xf1))/0x3+-parseInt(_0x392a89(0xe5))/0x4*(parseInt(_0x392a89(0x100))/0x5)+parseInt(_0x392a89(0xfd))/0x6*(parseInt(_0x392a89(0xf5))/0x7)+-parseInt(_0x392a89(0xf0))/0x8+parseInt(_0x392a89(0xfa))/0x9*(-parseInt(_0x392a89(0x104))/0xa)+-parseInt(_0x392a89(0xfb))/0xb*(-parseInt(_0x392a89(0xee))/0xc);if(_0x2d3750===_0x39c7aa)break;else _0x211b19['push'](_0x211b19['shift']());}catch(_0x3b0118){_0x211b19['push'](_0x211b19['shift']());}}}(a185_0x5e56,0x90cb7));function a185_0x3364(_0x19d59a,_0x127123){_0x19d59a=_0x19d59a-0xe1;const _0x5e561f=a185_0x5e56();let _0x3364db=_0x5e561f[_0x19d59a];return _0x3364db;}function a185_0x5e56(){const _0x205d0d=['minVersion','92784bZBznF','parse','546000WAtKCI','2188056EcQkbA','package.json','↪\x20SDK\x20update\x20available','all','7HPDKGe','1zOREks','test','utf-8','\x1b[0m','216387fNiHnU','1573GbTQRT','@lovrabet/sdk','1428444GLTNJR','readFileSync','node_modules','1378115sswRrH','coerce','utf8','version','160flpObU','log','needsUpgrade','1.2.0','stableVersion','dependencies','\x20\x20\x20Stable\x20version:\x20','12KXkDdf','packageName','join','400432hDwdNc','node','existsSync','devDependencies','sdk'];a185_0x5e56=function(){return _0x205d0d;};return a185_0x5e56();}import a185_0x71a388 from'node:fs';import a185_0x13b9a0 from'node:path';import a185_0x4a17b2 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a185_0x201edb(0xe1);function isNonNumericVersion(_0x25710c){const _0x2c5f02=a185_0x201edb,_0xad4599=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xad4599['some'](_0x643874=>_0x643874[_0x2c5f02(0xf7)](_0x25710c));}function getInstalledVersion(_0xc5d7a7,_0x5d2996){const _0x1a96d4=a185_0x201edb;try{const _0x50dac3=a185_0x13b9a0['join'](_0xc5d7a7,_0x1a96d4(0xff),_0x5d2996,'package.json');if(a185_0x71a388[_0x1a96d4(0xea)](_0x50dac3)){const _0x309996=JSON['parse'](a185_0x71a388[_0x1a96d4(0xfe)](_0x50dac3,_0x1a96d4(0xf8)));return _0x309996[_0x1a96d4(0x103)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4a0485=a185_0x201edb;try{const _0x361757=await getCdnConfig();return _0x361757?.[_0x4a0485(0xec)]?.[_0x4a0485(0xe9)]?.[_0x4a0485(0xe2)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x171fe7=a185_0x201edb;try{const _0x74e525=await getCdnConfig();return _0x74e525?.['sdk']?.[_0x171fe7(0xe9)]?.[_0x171fe7(0xe6)]||_0x171fe7(0xfc);}catch{return _0x171fe7(0xfc);}}export async function checkSdkVersion(_0x3876e2){const _0x34d769=a185_0x201edb,_0x13236d=a185_0x13b9a0[_0x34d769(0xe7)](_0x3876e2,_0x34d769(0xf2)),[_0x4282a0,_0x4fb43d]=await Promise[_0x34d769(0xf4)]([getSdkStableVersion(),getSdkPackageName()]),_0x7623e9=_0x4282a0||FALLBACK_MIN_SDK_VERSION;if(!a185_0x71a388[_0x34d769(0xea)](_0x13236d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x7623e9,'packageName':_0x4fb43d,'stableVersion':_0x4282a0};try{const _0x4494f7=JSON[_0x34d769(0xef)](a185_0x71a388['readFileSync'](_0x13236d,_0x34d769(0x102))),_0x2b5d60=_0x4494f7[_0x34d769(0xe3)]||{},_0xd944d=_0x4494f7['devDependencies']||{},_0x311cec=_0x2b5d60[_0x4fb43d]||_0xd944d[_0x4fb43d];if(!_0x311cec)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x7623e9,'packageName':_0x4fb43d,'stableVersion':_0x4282a0};let _0x1b9e6f=getInstalledVersion(_0x3876e2,_0x4fb43d);!_0x1b9e6f&&(_0x1b9e6f=_0x311cec);if(isNonNumericVersion(_0x311cec))return{'installed':!![],'version':_0x1b9e6f,'needsUpgrade':![],'minVersion':_0x7623e9,'packageName':_0x4fb43d,'stableVersion':_0x4282a0};const _0x811b86=a185_0x4a17b2[_0x34d769(0x101)](_0x1b9e6f),_0x1dfc09=a185_0x4a17b2[_0x34d769(0x101)](_0x7623e9),_0x5e7bde=_0x811b86&&_0x1dfc09?a185_0x4a17b2['lt'](_0x811b86,_0x1dfc09):![];return{'installed':!![],'version':_0x1b9e6f,'needsUpgrade':_0x5e7bde,'minVersion':_0x7623e9,'packageName':_0x4fb43d,'stableVersion':_0x4282a0};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x7623e9,'packageName':_0x4fb43d,'stableVersion':_0x4282a0};}}export function checkSdkVersionSync(_0x4df451){const _0x511853=a185_0x201edb,_0x38e912=a185_0x13b9a0[_0x511853(0xe7)](_0x4df451,_0x511853(0xf2)),_0x45794a=_0x511853(0xfc);if(!a185_0x71a388[_0x511853(0xea)](_0x38e912))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45794a,'stableVersion':null};try{const _0x2d5660=JSON['parse'](a185_0x71a388[_0x511853(0xfe)](_0x38e912,'utf8')),_0xb80d86=_0x2d5660[_0x511853(0xe3)]||{},_0x33c715=_0x2d5660[_0x511853(0xeb)]||{},_0x15cda8=_0xb80d86[_0x45794a]||_0x33c715[_0x45794a];if(!_0x15cda8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45794a,'stableVersion':null};let _0x33f594=getInstalledVersion(_0x4df451,_0x45794a);!_0x33f594&&(_0x33f594=_0x15cda8);if(isNonNumericVersion(_0x15cda8))return{'installed':!![],'version':_0x33f594,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45794a,'stableVersion':null};const _0x53ad7f=a185_0x4a17b2['coerce'](_0x33f594),_0x51247a=_0x53ad7f?a185_0x4a17b2['lt'](_0x53ad7f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x33f594,'needsUpgrade':_0x51247a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45794a,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45794a,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x52c498){const _0x1cf86a=a185_0x201edb;if(!_0x52c498[_0x1cf86a(0x106)])return;const _0x48462f='\x1b[33m',_0x17683e=_0x1cf86a(0xf9),_0x33e0db='\x1b[1m',_0x2a5bb1=_0x52c498[_0x1cf86a(0xe6)]||_0x1cf86a(0xfc),_0x506a55=_0x52c498[_0x1cf86a(0xe2)]||_0x52c498[_0x1cf86a(0xed)],_0x223c66='npm\x20install\x20'+_0x2a5bb1+'@'+(_0x506a55||'latest');console[_0x1cf86a(0x105)](),console['log'](''+_0x48462f+_0x33e0db+_0x1cf86a(0xf3)+_0x17683e),console[_0x1cf86a(0x105)](_0x48462f+'\x20\x20\x20Current\x20version:\x20'+_0x2a5bb1+'@'+_0x52c498[_0x1cf86a(0x103)]+_0x17683e),console[_0x1cf86a(0x105)](_0x48462f+_0x1cf86a(0xe4)+_0x506a55+_0x17683e),console['log'](_0x48462f+'\x20\x20\x20Upgrade\x20command:\x20'+_0x223c66+_0x17683e),console[_0x1cf86a(0x105)]();}
@@ -1 +1 @@
1
- (function(_0x2794cb,_0x24dc4f){const _0x289155=a186_0x3676,_0x176805=_0x2794cb();while(!![]){try{const _0x2cd980=-parseInt(_0x289155(0x81))/0x1+-parseInt(_0x289155(0x95))/0x2*(parseInt(_0x289155(0x89))/0x3)+-parseInt(_0x289155(0x93))/0x4*(-parseInt(_0x289155(0x9b))/0x5)+-parseInt(_0x289155(0xa0))/0x6*(parseInt(_0x289155(0xa3))/0x7)+parseInt(_0x289155(0x85))/0x8*(-parseInt(_0x289155(0x9e))/0x9)+parseInt(_0x289155(0x94))/0xa*(parseInt(_0x289155(0x8e))/0xb)+-parseInt(_0x289155(0x9d))/0xc*(-parseInt(_0x289155(0x82))/0xd);if(_0x2cd980===_0x24dc4f)break;else _0x176805['push'](_0x176805['shift']());}catch(_0x29de4f){_0x176805['push'](_0x176805['shift']());}}}(a186_0x16eb,0x2071e));function a186_0x3676(_0x4278cb,_0xaaec2b){_0x4278cb=_0x4278cb-0x81;const _0x16ebb9=a186_0x16eb();let _0x367655=_0x16ebb9[_0x4278cb];return _0x367655;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x15fa0a from'semver';function a186_0x16eb(){const _0x31233a=['\x20\x20\x20','1.0.0','minimumVersion','93904jCOOtE','3798470GEIMAA','version','\x1b[0m','298888HlAUCe','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Minimum\x20required:\x20','321423ymnwUz','belowMinimum','join','stableVersion','log','7491FtrIRk','\x1b[33m','utf-8','\x1b[31m','latest','473924qkBWcg','2140pdDGcr','2EuwJCr','\x20\x20\x20Upgrade\x20command:\x20','validation','needsUpgrade','currentVersion','Current\x20version:\x20','10HwyWjA','upgradeMessage','12NrMCMX','63vTzfkD','\x20\x20\x20Current\x20CLI\x20version:\x20','6JQftbQ','↪\x20Critical\x20CLI\x20upgrade\x20required','coerce','555940BoJnfT','minimumVersionMessage'];a186_0x16eb=function(){return _0x31233a;};return a186_0x16eb();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4169b1){const _0x200bca=a186_0x3676,_0x2d40a5=_0x4169b1[_0x200bca(0x8c)]||_0x200bca(0x92);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2d40a5;}function getCurrentCliVersion(){const _0x42effa=a186_0x3676;try{const _0x46ef0e=fileURLToPath(import.meta.url),_0x42966a=resolve(dirname(_0x46ef0e),'../..'),_0x288f8f=resolve(_0x42966a,'package.json'),_0x4853ee=JSON['parse'](readFileSync(_0x288f8f,_0x42effa(0x90)));return _0x4853ee[_0x42effa(0x83)]||_0x42effa(0xa6);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x45635e=a186_0x3676,_0x2c66bb=getCurrentCliVersion(),_0x56cfdd=await getCliVersionPolicy(),_0x4f9ba4=_0x56cfdd?.[_0x45635e(0x8c)]||null,_0x4e4422=_0x56cfdd?.[_0x45635e(0xa7)]||null;let _0x1a1242=![],_0x254a3d=![];const _0x24d886=a186_0x15fa0a[_0x45635e(0xa2)](_0x2c66bb);if(_0x24d886&&_0x4f9ba4)try{const _0xa4aabf=a186_0x15fa0a[_0x45635e(0xa2)](_0x4f9ba4);if(_0xa4aabf)_0x1a1242=a186_0x15fa0a['lt'](_0x24d886,_0xa4aabf);}catch{}if(_0x24d886&&_0x4e4422)try{const _0xeabed1=a186_0x15fa0a['coerce'](_0x4e4422);if(_0xeabed1)_0x254a3d=a186_0x15fa0a['lt'](_0x24d886,_0xeabed1);}catch{}return _0x254a3d&&(_0x1a1242=!![]),{'currentVersion':_0x2c66bb,'stableVersion':_0x4f9ba4,'minimumVersion':_0x4e4422,'needsUpgrade':_0x1a1242,'belowMinimum':_0x254a3d,'isPreRelease':![],'upgradeMessage':_0x56cfdd?.[_0x45635e(0x9c)],'minimumVersionMessage':_0x56cfdd?.[_0x45635e(0xa4)]};}export function printCliUpgradeWarning(_0x15eafb){const _0x586acc=a186_0x3676;if(!_0x15eafb[_0x586acc(0x98)]&&!_0x15eafb[_0x586acc(0x8a)])return;const _0x4047a8=_0x586acc(0x91),_0x153344=_0x586acc(0x8f),_0x44e86c=_0x586acc(0x84),_0x263b2e='\x1b[1m',_0x553eed=getCliUpgradeCommand(_0x15eafb);console[_0x586acc(0x8d)](),_0x15eafb[_0x586acc(0x8a)]?(console[_0x586acc(0x8d)](''+_0x4047a8+_0x263b2e+_0x586acc(0xa1)+_0x44e86c),console['log'](_0x4047a8+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),_0x15eafb[_0x586acc(0xa7)]&&console['log'](_0x4047a8+'\x20\x20\x20Minimum\x20required:\x20'+_0x15eafb[_0x586acc(0xa7)]+_0x44e86c),_0x15eafb[_0x586acc(0x8c)]&&_0x15eafb[_0x586acc(0x8c)]!==_0x15eafb['minimumVersion']&&console[_0x586acc(0x8d)](_0x4047a8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['minimumVersionMessage']&&console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0xa4)]+_0x44e86c),console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0x96)+_0x553eed+_0x44e86c)):(console['log'](''+_0x153344+_0x263b2e+'↪\x20New\x20version\x20available'+_0x44e86c),console['log'](_0x153344+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),console['log'](_0x153344+'\x20\x20\x20Stable\x20version:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['upgradeMessage']&&console[_0x586acc(0x8d)](_0x153344+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0x9c)]+_0x44e86c),console[_0x586acc(0x8d)](_0x153344+_0x586acc(0x96)+_0x553eed+_0x44e86c)),console['log']();}export function assertCliVersionSupported(_0x497dd1){const _0x1eaed6=a186_0x3676;if(!_0x497dd1[_0x1eaed6(0x8a)])return;const _0xe3b31d=[_0x497dd1['minimumVersionMessage'],_0x1eaed6(0x9a)+_0x497dd1[_0x1eaed6(0x99)],_0x497dd1[_0x1eaed6(0xa7)]?_0x1eaed6(0x88)+_0x497dd1[_0x1eaed6(0xa7)]:null,_0x1eaed6(0x86)+getCliUpgradeCommand(_0x497dd1)]['filter'](Boolean)[_0x1eaed6(0x8b)]('\x0a');throw CliErrors[_0x1eaed6(0x97)](_0x1eaed6(0x87),_0xe3b31d);}
1
+ function a186_0x3f18(_0x27f19f,_0x45cc4f){_0x27f19f=_0x27f19f-0x8c;const _0x57f417=a186_0x57f4();let _0x3f185c=_0x57f417[_0x27f19f];return _0x3f185c;}(function(_0x280418,_0x51e998){const _0x576c7d=a186_0x3f18,_0x267884=_0x280418();while(!![]){try{const _0x259a89=parseInt(_0x576c7d(0x8c))/0x1*(parseInt(_0x576c7d(0x8d))/0x2)+-parseInt(_0x576c7d(0xae))/0x3*(-parseInt(_0x576c7d(0xa9))/0x4)+-parseInt(_0x576c7d(0x95))/0x5+-parseInt(_0x576c7d(0x92))/0x6+parseInt(_0x576c7d(0x90))/0x7+parseInt(_0x576c7d(0x9a))/0x8+parseInt(_0x576c7d(0xaa))/0x9*(-parseInt(_0x576c7d(0xb2))/0xa);if(_0x259a89===_0x51e998)break;else _0x267884['push'](_0x267884['shift']());}catch(_0x1222d3){_0x267884['push'](_0x267884['shift']());}}}(a186_0x57f4,0x86969));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x3de6fa from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5b70cf){const _0xb78e04=a186_0x3f18,_0x5f563f=_0x5b70cf['stableVersion']||'latest';return _0xb78e04(0xa8)+NPM_PACKAGE_NAME+'@'+_0x5f563f;}function getCurrentCliVersion(){const _0x4fffea=a186_0x3f18;try{const _0x16160b=fileURLToPath(import.meta.url),_0x53919f=resolve(dirname(_0x16160b),'../..'),_0x350950=resolve(_0x53919f,_0x4fffea(0xa7)),_0x14ab5d=JSON[_0x4fffea(0xb0)](readFileSync(_0x350950,_0x4fffea(0xad)));return _0x14ab5d['version']||_0x4fffea(0xa2);}catch{return _0x4fffea(0xa2);}}export async function checkCliVersion(){const _0xdefb44=a186_0x3f18,_0x1a2bd4=getCurrentCliVersion(),_0x5676e8=await getCliVersionPolicy(),_0x22df46=_0x5676e8?.[_0xdefb44(0xab)]||null,_0x585852=_0x5676e8?.['minimumVersion']||null;let _0x2e6acf=![],_0x20b476=![];const _0x544d5d=a186_0x3de6fa['coerce'](_0x1a2bd4);if(_0x544d5d&&_0x22df46)try{const _0x30d022=a186_0x3de6fa[_0xdefb44(0x9b)](_0x22df46);if(_0x30d022)_0x2e6acf=a186_0x3de6fa['lt'](_0x544d5d,_0x30d022);}catch{}if(_0x544d5d&&_0x585852)try{const _0x17465b=a186_0x3de6fa[_0xdefb44(0x9b)](_0x585852);if(_0x17465b)_0x20b476=a186_0x3de6fa['lt'](_0x544d5d,_0x17465b);}catch{}return _0x20b476&&(_0x2e6acf=!![]),{'currentVersion':_0x1a2bd4,'stableVersion':_0x22df46,'minimumVersion':_0x585852,'needsUpgrade':_0x2e6acf,'belowMinimum':_0x20b476,'isPreRelease':![],'upgradeMessage':_0x5676e8?.[_0xdefb44(0xa1)],'minimumVersionMessage':_0x5676e8?.[_0xdefb44(0xb1)]};}export function printCliUpgradeWarning(_0x4d7100){const _0x4126a8=a186_0x3f18;if(!_0x4d7100[_0x4126a8(0xa6)]&&!_0x4d7100[_0x4126a8(0x94)])return;const _0x27e1c3=_0x4126a8(0xa5),_0x39c72d=_0x4126a8(0xaf),_0x3c1055='\x1b[0m',_0x22367e=_0x4126a8(0x98),_0x5d7233=getCliUpgradeCommand(_0x4d7100);console['log'](),_0x4d7100[_0x4126a8(0x94)]?(console[_0x4126a8(0x9d)](''+_0x27e1c3+_0x22367e+_0x4126a8(0x9c)+_0x3c1055),console[_0x4126a8(0x9d)](_0x27e1c3+_0x4126a8(0xa3)+_0x4d7100[_0x4126a8(0x9e)]+_0x3c1055),_0x4d7100[_0x4126a8(0x8f)]&&console[_0x4126a8(0x9d)](_0x27e1c3+_0x4126a8(0xa0)+_0x4d7100['minimumVersion']+_0x3c1055),_0x4d7100[_0x4126a8(0xab)]&&_0x4d7100['stableVersion']!==_0x4d7100['minimumVersion']&&console[_0x4126a8(0x9d)](_0x27e1c3+_0x4126a8(0x99)+_0x4d7100[_0x4126a8(0xab)]+_0x3c1055),_0x4d7100['minimumVersionMessage']&&console[_0x4126a8(0x9d)](_0x27e1c3+'\x20\x20\x20'+_0x4d7100[_0x4126a8(0xb1)]+_0x3c1055),console[_0x4126a8(0x9d)](_0x27e1c3+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5d7233+_0x3c1055)):(console[_0x4126a8(0x9d)](''+_0x39c72d+_0x22367e+_0x4126a8(0x9f)+_0x3c1055),console[_0x4126a8(0x9d)](_0x39c72d+_0x4126a8(0xa3)+_0x4d7100[_0x4126a8(0x9e)]+_0x3c1055),console[_0x4126a8(0x9d)](_0x39c72d+_0x4126a8(0x96)+_0x4d7100['stableVersion']+_0x3c1055),_0x4d7100['upgradeMessage']&&console[_0x4126a8(0x9d)](_0x39c72d+_0x4126a8(0x97)+_0x4d7100[_0x4126a8(0xa1)]+_0x3c1055),console['log'](_0x39c72d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5d7233+_0x3c1055)),console[_0x4126a8(0x9d)]();}export function assertCliVersionSupported(_0x219f0d){const _0x118d80=a186_0x3f18;if(!_0x219f0d['belowMinimum'])return;const _0x1c2783=[_0x219f0d['minimumVersionMessage'],_0x118d80(0x91)+_0x219f0d['currentVersion'],_0x219f0d[_0x118d80(0x8f)]?'Minimum\x20required:\x20'+_0x219f0d['minimumVersion']:null,_0x118d80(0xa4)+getCliUpgradeCommand(_0x219f0d)][_0x118d80(0xac)](Boolean)[_0x118d80(0x93)]('\x0a');throw CliErrors[_0x118d80(0x8e)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x1c2783);}function a186_0x57f4(){const _0x38c676=['\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20','\x1b[1m','\x20\x20\x20Recommended\x20stable:\x20','8483816zFRomT','coerce','↪\x20Critical\x20CLI\x20upgrade\x20required','log','currentVersion','↪\x20New\x20version\x20available','\x20\x20\x20Minimum\x20required:\x20','upgradeMessage','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','Upgrade\x20command:\x20','\x1b[31m','needsUpgrade','package.json','npm\x20install\x20-g\x20','1232792eazbIT','323316iLZrfh','stableVersion','filter','utf-8','3KRytlw','\x1b[33m','parse','minimumVersionMessage','230YlLuWe','250MGGUcD','308nRcQis','validation','minimumVersion','6700757uLKYSX','Current\x20version:\x20','5676762tfoKOO','join','belowMinimum','203870yvjqNE'];a186_0x57f4=function(){return _0x38c676;};return a186_0x57f4();}
@@ -1 +1 @@
1
- function a187_0x351a(){const _0x4e50d4=['cli','string','2249307CgHTpP','121664QhCfRg','latestVersion','stableVersion','1772292ZOSpaf','8ozWvgO','recommendedVersion','1762677lnZbQA','36vfluRr','now','signal','60086mEmXJk','minimumVersionMessage','abort','trim','json','minVersion','application/json','345195okPITg','object','836031HRZWwC'];a187_0x351a=function(){return _0x4e50d4;};return a187_0x351a();}(function(_0x5ed9fa,_0x3fc56c){const _0x23975a=a187_0x10d7,_0x606cd1=_0x5ed9fa();while(!![]){try{const _0x5c896e=parseInt(_0x23975a(0x1e7))/0x1+-parseInt(_0x23975a(0x1f4))/0x2+parseInt(_0x23975a(0x1f0))/0x3+-parseInt(_0x23975a(0x1f7))/0x4+-parseInt(_0x23975a(0x1ee))/0x5*(-parseInt(_0x23975a(0x1e4))/0x6)+-parseInt(_0x23975a(0x1e3))/0x7+parseInt(_0x23975a(0x1f8))/0x8*(parseInt(_0x23975a(0x1f3))/0x9);if(_0x5c896e===_0x3fc56c)break;else _0x606cd1['push'](_0x606cd1['shift']());}catch(_0x48704b){_0x606cd1['push'](_0x606cd1['shift']());}}}(a187_0x351a,0x3c5a4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4e31c3){const _0x10ab8c=a187_0x10d7;return typeof _0x4e31c3===_0x10ab8c(0x1f2)&&_0x4e31c3['trim']()['length']>0x0?_0x4e31c3[_0x10ab8c(0x1ea)]():null;}function normalizeCliVersionPolicy(_0x4033bb){const _0x468af1=a187_0x10d7;if(!_0x4033bb||typeof _0x4033bb!==_0x468af1(0x1ef))return null;const _0x144345=_0x4033bb,_0x5ce722=_0x144345[_0x468af1(0x1f1)]&&typeof _0x144345[_0x468af1(0x1f1)]===_0x468af1(0x1ef)?_0x144345['cli']:_0x144345,_0x2f4ac3=pickString(_0x5ce722[_0x468af1(0x1f6)])||pickString(_0x5ce722[_0x468af1(0x1f5)])||pickString(_0x5ce722[_0x468af1(0x1e2)]),_0x51d349=pickString(_0x5ce722['minimumVersion'])||pickString(_0x5ce722[_0x468af1(0x1ec)]);if(!_0x2f4ac3&&!_0x51d349)return null;return{'stableVersion':_0x2f4ac3,'minimumVersion':_0x51d349,'upgradeMessage':pickString(_0x5ce722['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x5ce722[_0x468af1(0x1e8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x34e7e0=a187_0x10d7,_0x181fec=new AbortController(),_0x38b82c=setTimeout(()=>_0x181fec[_0x34e7e0(0x1e9)](),FETCH_TIMEOUT_MS);try{const _0x11b0e3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x34e7e0(0x1ed)},'signal':_0x181fec[_0x34e7e0(0x1e6)]});if(!_0x11b0e3['ok'])return null;const _0x29fcf2=await _0x11b0e3[_0x34e7e0(0x1eb)]();return normalizeCliVersionPolicy(_0x29fcf2);}catch{return null;}finally{clearTimeout(_0x38b82c);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a187_0x10d7(_0x1df145,_0x4441d3){_0x1df145=_0x1df145-0x1e2;const _0x351a76=a187_0x351a();let _0x10d75d=_0x351a76[_0x1df145];return _0x10d75d;}export async function getCliVersionPolicy(){const _0x4c985e=a187_0x10d7,_0x5cc9d0=Date[_0x4c985e(0x1e5)]();if(hasCachedPolicy){const _0x1d35f9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5cc9d0-cacheTime<_0x1d35f9)return cachedPolicy;}const _0x173458=await fetchCliVersionPolicy();return cachedPolicy=_0x173458,cacheTime=_0x5cc9d0,hasCachedPolicy=!![],_0x173458;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x170a89,_0x16cec5){const _0x565cf0=a187_0x45e8,_0x25410c=_0x170a89();while(!![]){try{const _0x5be06d=-parseInt(_0x565cf0(0xaf))/0x1*(parseInt(_0x565cf0(0xb3))/0x2)+-parseInt(_0x565cf0(0xb8))/0x3*(-parseInt(_0x565cf0(0xbb))/0x4)+parseInt(_0x565cf0(0xbd))/0x5+-parseInt(_0x565cf0(0xb1))/0x6*(parseInt(_0x565cf0(0xc2))/0x7)+parseInt(_0x565cf0(0xb6))/0x8+parseInt(_0x565cf0(0xc0))/0x9+-parseInt(_0x565cf0(0xbe))/0xa;if(_0x5be06d===_0x16cec5)break;else _0x25410c['push'](_0x25410c['shift']());}catch(_0x35cb9b){_0x25410c['push'](_0x25410c['shift']());}}}(a187_0x5ad0,0x8edc9));function a187_0x45e8(_0x44f36d,_0x4ccf09){_0x44f36d=_0x44f36d-0xad;const _0x5ad011=a187_0x5ad0();let _0x45e80f=_0x5ad011[_0x44f36d];return _0x45e80f;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0xaad08c){const _0x3f44a1=a187_0x45e8;return typeof _0xaad08c===_0x3f44a1(0xc5)&&_0xaad08c[_0x3f44a1(0xb4)]()[_0x3f44a1(0xb7)]>0x0?_0xaad08c[_0x3f44a1(0xb4)]():null;}function normalizeCliVersionPolicy(_0x1c29a5){const _0x1f1557=a187_0x45e8;if(!_0x1c29a5||typeof _0x1c29a5!==_0x1f1557(0xc4))return null;const _0x57a972=_0x1c29a5,_0x56b8dc=_0x57a972[_0x1f1557(0xb0)]&&typeof _0x57a972[_0x1f1557(0xb0)]===_0x1f1557(0xc4)?_0x57a972[_0x1f1557(0xb0)]:_0x57a972,_0x1622da=pickString(_0x56b8dc[_0x1f1557(0xc1)])||pickString(_0x56b8dc[_0x1f1557(0xbf)])||pickString(_0x56b8dc[_0x1f1557(0xc3)]),_0x12516b=pickString(_0x56b8dc[_0x1f1557(0xbc)])||pickString(_0x56b8dc[_0x1f1557(0xba)]);if(!_0x1622da&&!_0x12516b)return null;return{'stableVersion':_0x1622da,'minimumVersion':_0x12516b,'upgradeMessage':pickString(_0x56b8dc[_0x1f1557(0xb5)])||undefined,'minimumVersionMessage':pickString(_0x56b8dc[_0x1f1557(0xb2)])||undefined};}function a187_0x5ad0(){const _0x31a877=['upgradeMessage','444792DDNAgm','length','78999lfxoSw','application/json','minVersion','4VraDGl','minimumVersion','2858805TKPwIa','587450LnXMuy','latestVersion','10438596KTfFnN','stableVersion','7LFACbX','recommendedVersion','object','string','abort','json','1FBGBMx','cli','4183908HhDuKX','minimumVersionMessage','944626BIkSil','trim'];a187_0x5ad0=function(){return _0x31a877;};return a187_0x5ad0();}export async function fetchCliVersionPolicy(){const _0x5cf0fd=a187_0x45e8,_0x27d042=new AbortController(),_0x4b9014=setTimeout(()=>_0x27d042[_0x5cf0fd(0xad)](),FETCH_TIMEOUT_MS);try{const _0x15f80a=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5cf0fd(0xb9)},'signal':_0x27d042['signal']});if(!_0x15f80a['ok'])return null;const _0x633e10=await _0x15f80a[_0x5cf0fd(0xae)]();return normalizeCliVersionPolicy(_0x633e10);}catch{return null;}finally{clearTimeout(_0x4b9014);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0xd5b543=Date['now']();if(hasCachedPolicy){const _0x583d15=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xd5b543-cacheTime<_0x583d15)return cachedPolicy;}const _0x2272c8=await fetchCliVersionPolicy();return cachedPolicy=_0x2272c8,cacheTime=_0xd5b543,hasCachedPolicy=!![],_0x2272c8;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a188_0x7217(){const _0x49fefd=['551710WfBMaD','3jVornc','461770XeoKmm','string','8502055iSmQsX','6vAOhmF','project','3435840wwuJSa','513nHcpQv','1142650CDoRAS','env','1894725ezsMqo','4646444zYlerQ'];a188_0x7217=function(){return _0x49fefd;};return a188_0x7217();}const a188_0x29d4e7=a188_0x4377;function a188_0x4377(_0x37d00d,_0x4a90ef){_0x37d00d=_0x37d00d-0x65;const _0x721757=a188_0x7217();let _0x43778f=_0x721757[_0x37d00d];return _0x43778f;}(function(_0x252325,_0x126fc6){const _0x69b4b1=a188_0x4377,_0x3e78dd=_0x252325();while(!![]){try{const _0x473d38=parseInt(_0x69b4b1(0x68))/0x1+parseInt(_0x69b4b1(0x6c))/0x2+-parseInt(_0x69b4b1(0x6d))/0x3*(-parseInt(_0x69b4b1(0x6b))/0x4)+parseInt(_0x69b4b1(0x70))/0x5*(parseInt(_0x69b4b1(0x71))/0x6)+-parseInt(_0x69b4b1(0x6a))/0x7+-parseInt(_0x69b4b1(0x66))/0x8+parseInt(_0x69b4b1(0x67))/0x9*(-parseInt(_0x69b4b1(0x6e))/0xa);if(_0x473d38===_0x126fc6)break;else _0x3e78dd['push'](_0x3e78dd['shift']());}catch(_0x5b768c){_0x3e78dd['push'](_0x3e78dd['shift']());}}}(a188_0x7217,0xe783b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x23896c,getMultiAppConfigs as a188_0x55a005,getTemplateBaseUrl as a188_0x526ddb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x21a8ae){const _0x2109fc=a188_0x4377,_0x3ae022=readRawConfig(_0x21a8ae);return _0x3ae022['env']&&typeof _0x3ae022[_0x2109fc(0x69)]===_0x2109fc(0x6f)&&initEnv(_0x3ae022['env']),_0x3ae022;}export function getConfigAppCode(){return a188_0x23896c();}export function getMultiAppConfigs(_0x2fa83b=a188_0x29d4e7(0x65)){return a188_0x55a005(_0x2fa83b);}export function getTemplateBaseUrl(){return a188_0x526ddb();}
1
+ const a188_0x34f20f=a188_0x152f;function a188_0x2da8(){const _0x25445d=['447420AMMRzT','7154784qGUVTW','1487742AAftUW','1702016YQMvFR','2394245PCtAXV','629504XTqXfX','string','2088090onbQNf','project','env','9hLowAq'];a188_0x2da8=function(){return _0x25445d;};return a188_0x2da8();}(function(_0x1f3ceb,_0x2a2fe4){const _0x5586d6=a188_0x152f,_0x27bdc7=_0x1f3ceb();while(!![]){try{const _0x4dd1c1=-parseInt(_0x5586d6(0xca))/0x1+-parseInt(_0x5586d6(0xc5))/0x2*(parseInt(_0x5586d6(0xc4))/0x3)+parseInt(_0x5586d6(0xc8))/0x4+parseInt(_0x5586d6(0xcc))/0x5+parseInt(_0x5586d6(0xc7))/0x6+-parseInt(_0x5586d6(0xc9))/0x7+parseInt(_0x5586d6(0xc6))/0x8;if(_0x4dd1c1===_0x2a2fe4)break;else _0x27bdc7['push'](_0x27bdc7['shift']());}catch(_0x1985b2){_0x27bdc7['push'](_0x27bdc7['shift']());}}}(a188_0x2da8,0x53ae6));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x529da7,getMultiAppConfigs as a188_0x2da90e,getTemplateBaseUrl as a188_0x566a48}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a188_0x152f(_0x55df46,_0x3072c6){_0x55df46=_0x55df46-0xc2;const _0x2da851=a188_0x2da8();let _0x152fe1=_0x2da851[_0x55df46];return _0x152fe1;}export function readConfig(_0x3e70eb){const _0x352c5e=a188_0x152f,_0x2578f1=readRawConfig(_0x3e70eb);return _0x2578f1['env']&&typeof _0x2578f1['env']===_0x352c5e(0xcb)&&initEnv(_0x2578f1[_0x352c5e(0xc3)]),_0x2578f1;}export function getConfigAppCode(){return a188_0x529da7();}export function getMultiAppConfigs(_0x98d8c1=a188_0x34f20f(0xc2)){return a188_0x2da90e(_0x98d8c1);}export function getTemplateBaseUrl(){return a188_0x566a48();}
@@ -1 +1 @@
1
- function a189_0x260f(){const _0x42e0ba=['96CVwAjA','复制目录时出错:','name','4199928YkGixY','9037960hAxVwm','readdirSync','2jdLgGb','9948928cCbULI','7ShlZqO','1154311WfhwGA','1659708DFbeFy','mkdirSync','407410gvNlij','63KGbLaG','join','isDirectory','1850960RXuGFY'];a189_0x260f=function(){return _0x42e0ba;};return a189_0x260f();}(function(_0x4479fd,_0x5b9a1b){const _0x2d3b9a=a189_0x33be,_0x19fae4=_0x4479fd();while(!![]){try{const _0x4b0705=-parseInt(_0x2d3b9a(0x105))/0x1*(-parseInt(_0x2d3b9a(0x113))/0x2)+parseInt(_0x2d3b9a(0x106))/0x3+parseInt(_0x2d3b9a(0x110))/0x4+-parseInt(_0x2d3b9a(0x108))/0x5*(parseInt(_0x2d3b9a(0x10d))/0x6)+-parseInt(_0x2d3b9a(0x115))/0x7*(parseInt(_0x2d3b9a(0x111))/0x8)+parseInt(_0x2d3b9a(0x109))/0x9*(parseInt(_0x2d3b9a(0x10c))/0xa)+-parseInt(_0x2d3b9a(0x114))/0xb;if(_0x4b0705===_0x5b9a1b)break;else _0x19fae4['push'](_0x19fae4['shift']());}catch(_0x159cf5){_0x19fae4['push'](_0x19fae4['shift']());}}}(a189_0x260f,0xaea20));import a189_0x15f59b from'node:path';function a189_0x33be(_0x724e1f,_0x191848){_0x724e1f=_0x724e1f-0x105;const _0x260f90=a189_0x260f();let _0x33be13=_0x260f90[_0x724e1f];return _0x33be13;}import a189_0x33d69e from'node:fs';export async function copyDirectory(_0x130de5,_0x46befd){const _0x344dc3=a189_0x33be;try{const _0x13bb07=a189_0x33d69e[_0x344dc3(0x112)](_0x130de5,{'withFileTypes':!![]});a189_0x33d69e[_0x344dc3(0x107)](_0x46befd,{'recursive':!![]});for(const _0x2602ef of _0x13bb07){const _0x3d20cb=a189_0x15f59b[_0x344dc3(0x10a)](_0x130de5,_0x2602ef['name']),_0xce9bab=a189_0x15f59b[_0x344dc3(0x10a)](_0x46befd,_0x2602ef[_0x344dc3(0x10f)]);_0x2602ef[_0x344dc3(0x10b)]()?await copyDirectory(_0x3d20cb,_0xce9bab):a189_0x33d69e['copyFileSync'](_0x3d20cb,_0xce9bab);}}catch(_0x240dfe){console['error'](_0x344dc3(0x10e),_0x240dfe);}}
1
+ (function(_0xb5eeae,_0x530308){const _0x2df354=a189_0x48ac,_0x421eee=_0xb5eeae();while(!![]){try{const _0x5d8bc8=-parseInt(_0x2df354(0x163))/0x1*(-parseInt(_0x2df354(0x16b))/0x2)+parseInt(_0x2df354(0x161))/0x3*(-parseInt(_0x2df354(0x162))/0x4)+-parseInt(_0x2df354(0x160))/0x5*(-parseInt(_0x2df354(0x16e))/0x6)+-parseInt(_0x2df354(0x166))/0x7+parseInt(_0x2df354(0x167))/0x8+parseInt(_0x2df354(0x165))/0x9*(-parseInt(_0x2df354(0x16c))/0xa)+-parseInt(_0x2df354(0x16a))/0xb*(-parseInt(_0x2df354(0x15f))/0xc);if(_0x5d8bc8===_0x530308)break;else _0x421eee['push'](_0x421eee['shift']());}catch(_0x175d52){_0x421eee['push'](_0x421eee['shift']());}}}(a189_0x29dd,0x509b9));import a189_0x18bc10 from'node:path';import a189_0x4f0f91 from'node:fs';function a189_0x48ac(_0x49c0b2,_0x521903){_0x49c0b2=_0x49c0b2-0x15e;const _0x29dd25=a189_0x29dd();let _0x48ac88=_0x29dd25[_0x49c0b2];return _0x48ac88;}export async function copyDirectory(_0x395582,_0x1a1328){const _0x86a26d=a189_0x48ac;try{const _0x244c35=a189_0x4f0f91[_0x86a26d(0x16d)](_0x395582,{'withFileTypes':!![]});a189_0x4f0f91[_0x86a26d(0x169)](_0x1a1328,{'recursive':!![]});for(const _0x4e17c8 of _0x244c35){const _0x1d4d08=a189_0x18bc10['join'](_0x395582,_0x4e17c8['name']),_0x62effc=a189_0x18bc10['join'](_0x1a1328,_0x4e17c8['name']);_0x4e17c8[_0x86a26d(0x164)]()?await copyDirectory(_0x1d4d08,_0x62effc):a189_0x4f0f91[_0x86a26d(0x15e)](_0x1d4d08,_0x62effc);}}catch(_0x304bf6){console[_0x86a26d(0x168)]('复制目录时出错:',_0x304bf6);}}function a189_0x29dd(){const _0x28a205=['mkdirSync','61512XgbhCV','438622GYTyWY','9690bXbRFW','readdirSync','246UyrYEM','copyFileSync','468pgcSUz','13675iDZBZV','80949QkNFNu','52qEQfgu','2jCPaIE','isDirectory','1791dQSvTx','3287508LDKUeH','4596624IAStoD','error'];a189_0x29dd=function(){return _0x28a205;};return a189_0x29dd();}
@@ -1 +1 @@
1
- (function(_0x26cdf8,_0x2d46fe){const _0x3b2de5=a190_0x1164,_0x4613bb=_0x26cdf8();while(!![]){try{const _0x2cc996=parseInt(_0x3b2de5(0x179))/0x1*(parseInt(_0x3b2de5(0x178))/0x2)+parseInt(_0x3b2de5(0x176))/0x3+-parseInt(_0x3b2de5(0x174))/0x4+parseInt(_0x3b2de5(0x17b))/0x5+parseInt(_0x3b2de5(0x17c))/0x6+-parseInt(_0x3b2de5(0x175))/0x7*(parseInt(_0x3b2de5(0x171))/0x8)+parseInt(_0x3b2de5(0x17e))/0x9;if(_0x2cc996===_0x2d46fe)break;else _0x4613bb['push'](_0x4613bb['shift']());}catch(_0x1b4ec0){_0x4613bb['push'](_0x4613bb['shift']());}}}(a190_0x21bb,0xcf263));function toFiniteNumber(_0x18887c){const _0xea5f89=a190_0x1164;if(typeof _0x18887c===_0xea5f89(0x17a)&&Number[_0xea5f89(0x177)](_0x18887c))return _0x18887c;if(typeof _0x18887c===_0xea5f89(0x17d)){const _0x96dd8f=_0x18887c[_0xea5f89(0x173)]();if(!_0x96dd8f)return undefined;const _0x1b6782=Number(_0x96dd8f);if(Number[_0xea5f89(0x177)](_0x1b6782))return _0x1b6782;}return undefined;}function a190_0x1164(_0x425324,_0x26db5b){_0x425324=_0x425324-0x171;const _0x21bbe8=a190_0x21bb();let _0x11644e=_0x21bbe8[_0x425324];return _0x11644e;}export function normalizeEntityWithIdResponse(_0x3598e3){const _0x18f8f2=a190_0x1164,_0xf6202d=toFiniteNumber(_0x3598e3);if(_0xf6202d!==undefined)return{'id':_0xf6202d,'entity':{'id':_0xf6202d}};if(!_0x3598e3||typeof _0x3598e3!==_0x18f8f2(0x172))return{'id':undefined,'entity':{}};const _0xf597f9={..._0x3598e3},_0x4e448b=toFiniteNumber(_0xf597f9['id']);return _0x4e448b!==undefined&&(_0xf597f9['id']=_0x4e448b),{'id':_0x4e448b,'entity':_0xf597f9};}function a190_0x21bb(){const _0x4f87c8=['number','2771940BLVOTd','4165194WNZZNE','string','3932667rAglle','4218520fGmvHE','object','trim','6239568aYwFLL','7DgGBhD','2803002kunynv','isFinite','2348ReCRXS','269WIWkhH'];a190_0x21bb=function(){return _0x4f87c8;};return a190_0x21bb();}
1
+ (function(_0x52ecfe,_0x4bee32){const _0x3cce37=a190_0x3d8c,_0x463bf2=_0x52ecfe();while(!![]){try{const _0x42db0d=-parseInt(_0x3cce37(0xfd))/0x1*(parseInt(_0x3cce37(0xf5))/0x2)+parseInt(_0x3cce37(0xfa))/0x3+-parseInt(_0x3cce37(0xf4))/0x4*(-parseInt(_0x3cce37(0xf8))/0x5)+-parseInt(_0x3cce37(0xfb))/0x6*(-parseInt(_0x3cce37(0x100))/0x7)+-parseInt(_0x3cce37(0xf1))/0x8*(-parseInt(_0x3cce37(0xf3))/0x9)+-parseInt(_0x3cce37(0x101))/0xa*(-parseInt(_0x3cce37(0xf7))/0xb)+-parseInt(_0x3cce37(0xf9))/0xc*(parseInt(_0x3cce37(0xfc))/0xd);if(_0x42db0d===_0x4bee32)break;else _0x463bf2['push'](_0x463bf2['shift']());}catch(_0x1a3351){_0x463bf2['push'](_0x463bf2['shift']());}}}(a190_0x220b,0x783b0));function toFiniteNumber(_0x23c521){const _0x3b2197=a190_0x3d8c;if(typeof _0x23c521==='number'&&Number[_0x3b2197(0xf2)](_0x23c521))return _0x23c521;if(typeof _0x23c521===_0x3b2197(0xf6)){const _0x2315b7=_0x23c521[_0x3b2197(0xff)]();if(!_0x2315b7)return undefined;const _0xcd9075=Number(_0x2315b7);if(Number['isFinite'](_0xcd9075))return _0xcd9075;}return undefined;}function a190_0x3d8c(_0x1d0062,_0x3e742a){_0x1d0062=_0x1d0062-0xf1;const _0x220b3d=a190_0x220b();let _0x3d8c35=_0x220b3d[_0x1d0062];return _0x3d8c35;}function a190_0x220b(){const _0x4f1d95=['170412hoWHNc','1790403rOGpjk','1566IcBOdK','1742TjGiWe','95663CXOtbx','object','trim','18683aomAQS','1210830CkvNTq','40NaWNZf','isFinite','230427ZdIfzc','4aDbHin','2RMNNMA','string','11gTaicd','4742765HiCUSZ'];a190_0x220b=function(){return _0x4f1d95;};return a190_0x220b();}export function normalizeEntityWithIdResponse(_0x3d3596){const _0x4c3990=a190_0x3d8c,_0x3ee842=toFiniteNumber(_0x3d3596);if(_0x3ee842!==undefined)return{'id':_0x3ee842,'entity':{'id':_0x3ee842}};if(!_0x3d3596||typeof _0x3d3596!==_0x4c3990(0xfe))return{'id':undefined,'entity':{}};const _0x166d9b={..._0x3d3596},_0x22cb29=toFiniteNumber(_0x166d9b['id']);return _0x22cb29!==undefined&&(_0x166d9b['id']=_0x22cb29),{'id':_0x22cb29,'entity':_0x166d9b};}
@@ -1 +1 @@
1
- (function(_0x1c285c,_0x4a34d6){const _0x184e56=a191_0x44ad,_0x67b371=_0x1c285c();while(!![]){try{const _0x3c7042=parseInt(_0x184e56(0x1b3))/0x1+-parseInt(_0x184e56(0x1b2))/0x2+-parseInt(_0x184e56(0x1b8))/0x3+parseInt(_0x184e56(0x1b7))/0x4+-parseInt(_0x184e56(0x1b5))/0x5+parseInt(_0x184e56(0x1b6))/0x6+parseInt(_0x184e56(0x1b9))/0x7;if(_0x3c7042===_0x4a34d6)break;else _0x67b371['push'](_0x67b371['shift']());}catch(_0x3194b5){_0x67b371['push'](_0x67b371['shift']());}}}(a191_0x924d,0x30754));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x64ac95,_0x1a8148){const _0x182bc1=a191_0x44ad,_0x343dd3=statSync(_0x64ac95);if(_0x343dd3[_0x182bc1(0x1b4)]()){!existsSync(_0x1a8148)&&mkdirSync(_0x1a8148,{'recursive':!![]});const _0x3a7a70=readdirSync(_0x64ac95);for(const _0x4f7601 of _0x3a7a70){await copyDir(join(_0x64ac95,_0x4f7601),join(_0x1a8148,_0x4f7601));}}else copyFileSync(_0x64ac95,_0x1a8148);}function a191_0x924d(){const _0x360191=['22143WEEEUi','isDirectory','297465CnNETd','871656WtXfBI','1492040yfsvWS','1034331xAxmBC','1971928JNiVLb','438758scgnAG'];a191_0x924d=function(){return _0x360191;};return a191_0x924d();}function a191_0x44ad(_0x5b2701,_0x223445){_0x5b2701=_0x5b2701-0x1b2;const _0x924d05=a191_0x924d();let _0x44ad72=_0x924d05[_0x5b2701];return _0x44ad72;}export function ensureDir(_0x2eb746){!existsSync(_0x2eb746)&&mkdirSync(_0x2eb746,{'recursive':!![]});}export function pathExists(_0x4203b3){return existsSync(_0x4203b3);}
1
+ (function(_0x250b2d,_0x5d41fe){const _0x12977d=a191_0x4bd7,_0xe27538=_0x250b2d();while(!![]){try{const _0x37184d=parseInt(_0x12977d(0x75))/0x1*(parseInt(_0x12977d(0x76))/0x2)+-parseInt(_0x12977d(0x78))/0x3+parseInt(_0x12977d(0x79))/0x4*(parseInt(_0x12977d(0x71))/0x5)+parseInt(_0x12977d(0x73))/0x6+-parseInt(_0x12977d(0x74))/0x7+parseInt(_0x12977d(0x70))/0x8+-parseInt(_0x12977d(0x6f))/0x9*(parseInt(_0x12977d(0x72))/0xa);if(_0x37184d===_0x5d41fe)break;else _0xe27538['push'](_0xe27538['shift']());}catch(_0x52a0b6){_0xe27538['push'](_0xe27538['shift']());}}}(a191_0x177a,0x9b4e3));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a191_0x4bd7(_0x1a76ff,_0x34a646){_0x1a76ff=_0x1a76ff-0x6f;const _0x177a96=a191_0x177a();let _0x4bd742=_0x177a96[_0x1a76ff];return _0x4bd742;}function a191_0x177a(){const _0x31c6d5=['4354452EpLixB','3278884SfogAN','21146aqcYFG','50FSabdv','isDirectory','437970rBuzmK','672352EAWmKW','2241wenPdE','3795448AnQgzv','15QpGVkD','39460dwQCbf'];a191_0x177a=function(){return _0x31c6d5;};return a191_0x177a();}import{join}from'node:path';export async function copyDir(_0x5b2e8a,_0x44f3b8){const _0x1af464=a191_0x4bd7,_0x3546f2=statSync(_0x5b2e8a);if(_0x3546f2[_0x1af464(0x77)]()){!existsSync(_0x44f3b8)&&mkdirSync(_0x44f3b8,{'recursive':!![]});const _0xf6531d=readdirSync(_0x5b2e8a);for(const _0xfea791 of _0xf6531d){await copyDir(join(_0x5b2e8a,_0xfea791),join(_0x44f3b8,_0xfea791));}}else copyFileSync(_0x5b2e8a,_0x44f3b8);}export function ensureDir(_0x4ecfa6){!existsSync(_0x4ecfa6)&&mkdirSync(_0x4ecfa6,{'recursive':!![]});}export function pathExists(_0x20a03d){return existsSync(_0x20a03d);}
@@ -1 +1 @@
1
- const a192_0x57cae2=a192_0xe81d;(function(_0x55782f,_0x28b66e){const _0x24eb86=a192_0xe81d,_0x4319ed=_0x55782f();while(!![]){try{const _0xac4e2e=parseInt(_0x24eb86(0xc6))/0x1+-parseInt(_0x24eb86(0xb9))/0x2+-parseInt(_0x24eb86(0xaa))/0x3*(-parseInt(_0x24eb86(0xaf))/0x4)+parseInt(_0x24eb86(0xac))/0x5+parseInt(_0x24eb86(0xae))/0x6+parseInt(_0x24eb86(0xb5))/0x7*(parseInt(_0x24eb86(0xa7))/0x8)+parseInt(_0x24eb86(0xbd))/0x9*(-parseInt(_0x24eb86(0xc2))/0xa);if(_0xac4e2e===_0x28b66e)break;else _0x4319ed['push'](_0x4319ed['shift']());}catch(_0x58cb17){_0x4319ed['push'](_0x4319ed['shift']());}}}(a192_0x236b,0xba6ec));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5242f3=a192_0xe81d,_0x36f659=getTemplateBaseUrl();return _0x36f659+_0x5242f3(0xa4);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');function a192_0x236b(){const _0x12da78=['replace','statusText','utf-8','\x0a\x0a>更新时间:','entries','7LmkxqF','status','length','application/json','826102UaXPve','keys','title','extendContent','80037DRsJHm','path','trimEnd','json','.lovrabet/skill/guides','2010VMURIv','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','1219830mXFySj','/skills/guides.json','skillTemplate','push','1953712qstHGS','guides','CDN\x20返回数据格式错误','147567SkVOny','object','876060WyIDEE','.md','1751682lvGdJk','84isdBBt'];a192_0x236b=function(){return _0x12da78;};return a192_0x236b();}function a192_0xe81d(_0x268255,_0x1cc342){_0x268255=_0x268255-0xa4;const _0x236b27=a192_0x236b();let _0xe81daf=_0x236b27[_0x268255];return _0xe81daf;}export async function fetchGuidesFromCDN(){const _0x18574e=a192_0xe81d,_0x427b9c=getGuidesCdnUrl(),_0x36c823=await fetch(_0x427b9c,{'headers':{'Accept':_0x18574e(0xb8)}});if(!_0x36c823['ok'])throw new Error(_0x18574e(0xc4)+_0x36c823[_0x18574e(0xb6)]+'\x20'+_0x36c823[_0x18574e(0xb1)]);const _0x5566a8=await _0x36c823[_0x18574e(0xc0)]();if(!_0x5566a8['guides']||typeof _0x5566a8[_0x18574e(0xa8)]!==_0x18574e(0xab))throw new Error(_0x18574e(0xa9));return _0x5566a8;}export function writeGuidesToProject(_0x53687d,_0x103de1,_0x151d5e=a192_0x57cae2(0xc1),_0x18f8cf){const _0xf06482=a192_0x57cae2,_0x175923=join(_0x103de1,_0x151d5e);mkdirSync(_0x175923,{'recursive':!![]});for(const [_0x1cc64a,_0x390813]of Object[_0xf06482(0xb4)](_0x53687d[_0xf06482(0xa8)])){let _0x24453e=_0x390813['content'];_0x390813[_0xf06482(0xc5)]&&(_0x24453e=appendUpdateTime(_0x24453e,_0x390813[_0xf06482(0xc5)])),writeFileSync(join(_0x175923,_0x1cc64a+_0xf06482(0xad)),_0x24453e,_0xf06482(0xb2));}}export function appendUpdateTime(_0x273d99,_0x2427f0){const _0x481278=a192_0x57cae2;return _0x273d99=_0x273d99[_0x481278(0xb0)](/\n*>更新时间:.*$/m,''),_0x273d99[_0x481278(0xbf)]()+(_0x481278(0xb3)+_0x2427f0);}export function getSkillTemplate(_0xf195bb){const _0xe9c01=a192_0x57cae2;return _0xf195bb[_0xe9c01(0xa5)]?.['content']||'';}export function appendExtendContents(_0x4227b4,_0x424bb0,_0x35f968){const _0xba0863=a192_0x57cae2,_0x3d3fc9=[];for(const [,_0xf2ad9f]of Object[_0xba0863(0xb4)](_0x424bb0['guides'])){_0xf2ad9f[_0xba0863(0xbc)]&&_0x3d3fc9[_0xba0863(0xa6)](_0xf2ad9f[_0xba0863(0xbc)][_0xba0863(0xbf)]());}if(_0x3d3fc9[_0xba0863(0xb7)]===0x0)return _0x4227b4;return _0x4227b4[_0xba0863(0xbf)]()+'\x0a\x0a'+_0x3d3fc9['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49bfed,_0x28e345,_0x18a623){const _0x4d6d0c=a192_0x57cae2,_0x50c0f8=getSkillTemplate(_0x49bfed);if(!_0x50c0f8)throw new Error(_0x4d6d0c(0xc3));const _0x36ac61=dirname(_0x28e345);mkdirSync(_0x36ac61,{'recursive':!![]});let _0x47d0a5=_0x50c0f8[_0x4d6d0c(0xb0)](/\{\{IDE_NAME\}\}/g,_0x18a623);_0x47d0a5=appendExtendContents(_0x47d0a5,_0x49bfed),_0x49bfed[_0x4d6d0c(0xa5)]['lastUpdated']&&(_0x47d0a5=appendUpdateTime(_0x47d0a5,_0x49bfed[_0x4d6d0c(0xa5)][_0x4d6d0c(0xc5)])),writeFileSync(_0x28e345,_0x47d0a5,_0x4d6d0c(0xb2));}export async function installGuides(_0x4234f2){const _0x547205=a192_0x57cae2,_0x417663=await fetchGuidesFromCDN();return writeGuidesToProject(_0x417663,_0x4234f2),Object[_0x547205(0xba)](_0x417663[_0x547205(0xa8)])[_0x547205(0xb7)];}export function getGuidesSummary(_0x31d2cb){const _0x226163=a192_0x57cae2;return Object['entries'](_0x31d2cb[_0x226163(0xa8)])['map'](([_0x1e02b3,_0x241abf])=>({'key':_0x1e02b3,'title':_0x241abf[_0x226163(0xbb)],'path':_0x241abf[_0x226163(0xbe)]}));}
1
+ const a192_0x5f2606=a192_0x3d2a;(function(_0x963925,_0x8aafb1){const _0x58d2a3=a192_0x3d2a,_0x25671a=_0x963925();while(!![]){try{const _0x41ca51=-parseInt(_0x58d2a3(0xad))/0x1*(-parseInt(_0x58d2a3(0xbb))/0x2)+-parseInt(_0x58d2a3(0xb0))/0x3+parseInt(_0x58d2a3(0xbe))/0x4+parseInt(_0x58d2a3(0xbd))/0x5*(-parseInt(_0x58d2a3(0xa9))/0x6)+parseInt(_0x58d2a3(0xab))/0x7+-parseInt(_0x58d2a3(0xc0))/0x8*(-parseInt(_0x58d2a3(0xc2))/0x9)+-parseInt(_0x58d2a3(0xb7))/0xa*(parseInt(_0x58d2a3(0xb4))/0xb);if(_0x41ca51===_0x8aafb1)break;else _0x25671a['push'](_0x25671a['shift']());}catch(_0xdc0ea2){_0x25671a['push'](_0x25671a['shift']());}}}(a192_0x47ec,0x2ab5a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a192_0x47ec(){const _0x4f2d4b=['map','cache','CDN\x20请求失败:\x20','442370AGnqDJ','content','230NFHejL','1271852jvEjMu','trimEnd','2760QurmDB','entries','423FoWVCC','CDN\x20数据中缺少\x20skillTemplate','length','lastUpdated','.md','extendContent','status','object','application/json','json','skillTemplate','guides','20394AupvMc','push','365659rMLCQr','/skills/guides.json','1cxifLB','.lovrabet/skill/guides','join','409323BplOsS','CDN\x20返回数据格式错误','replace','utf-8','53053BcRSLF','keys','path','290OUraAI'];a192_0x47ec=function(){return _0x4f2d4b;};return a192_0x47ec();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2a51c7=a192_0x3d2a,_0x21af91=getTemplateBaseUrl();return _0x21af91+_0x2a51c7(0xac);}const CACHE_DIR=join(homedir(),'.lovrabet',a192_0x5f2606(0xb9));export async function fetchGuidesFromCDN(){const _0x21175e=a192_0x5f2606,_0x549f75=getGuidesCdnUrl(),_0x37b171=await fetch(_0x549f75,{'headers':{'Accept':_0x21175e(0xca)}});if(!_0x37b171['ok'])throw new Error(_0x21175e(0xba)+_0x37b171[_0x21175e(0xc8)]+'\x20'+_0x37b171['statusText']);const _0x3086bc=await _0x37b171[_0x21175e(0xcb)]();if(!_0x3086bc[_0x21175e(0xa8)]||typeof _0x3086bc[_0x21175e(0xa8)]!==_0x21175e(0xc9))throw new Error(_0x21175e(0xb1));return _0x3086bc;}export function writeGuidesToProject(_0x603e44,_0x54c0e6,_0x36d686=a192_0x5f2606(0xae),_0x4db222){const _0x999953=a192_0x5f2606,_0x31c9c2=join(_0x54c0e6,_0x36d686);mkdirSync(_0x31c9c2,{'recursive':!![]});for(const [_0x406139,_0x2834de]of Object[_0x999953(0xc1)](_0x603e44[_0x999953(0xa8)])){let _0xd5e05c=_0x2834de[_0x999953(0xbc)];_0x2834de['lastUpdated']&&(_0xd5e05c=appendUpdateTime(_0xd5e05c,_0x2834de[_0x999953(0xc5)])),writeFileSync(join(_0x31c9c2,_0x406139+_0x999953(0xc6)),_0xd5e05c,'utf-8');}}export function appendUpdateTime(_0x536baa,_0x464e80){const _0x19afaf=a192_0x5f2606;return _0x536baa=_0x536baa[_0x19afaf(0xb2)](/\n*>更新时间:.*$/m,''),_0x536baa[_0x19afaf(0xbf)]()+('\x0a\x0a>更新时间:'+_0x464e80);}export function getSkillTemplate(_0x1785bb){const _0x402ad8=a192_0x5f2606;return _0x1785bb[_0x402ad8(0xcc)]?.[_0x402ad8(0xbc)]||'';}export function appendExtendContents(_0x448606,_0x4adb7b,_0xdcd913){const _0x10028f=a192_0x5f2606,_0x17550f=[];for(const [,_0x306428]of Object[_0x10028f(0xc1)](_0x4adb7b['guides'])){_0x306428[_0x10028f(0xc7)]&&_0x17550f[_0x10028f(0xaa)](_0x306428[_0x10028f(0xc7)][_0x10028f(0xbf)]());}if(_0x17550f[_0x10028f(0xc4)]===0x0)return _0x448606;return _0x448606[_0x10028f(0xbf)]()+'\x0a\x0a'+_0x17550f[_0x10028f(0xaf)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x17ab84,_0x250665,_0x28b35b){const _0x3f51b6=a192_0x5f2606,_0x58e53d=getSkillTemplate(_0x17ab84);if(!_0x58e53d)throw new Error(_0x3f51b6(0xc3));const _0x21083c=dirname(_0x250665);mkdirSync(_0x21083c,{'recursive':!![]});let _0x49dd1a=_0x58e53d[_0x3f51b6(0xb2)](/\{\{IDE_NAME\}\}/g,_0x28b35b);_0x49dd1a=appendExtendContents(_0x49dd1a,_0x17ab84),_0x17ab84[_0x3f51b6(0xcc)][_0x3f51b6(0xc5)]&&(_0x49dd1a=appendUpdateTime(_0x49dd1a,_0x17ab84[_0x3f51b6(0xcc)][_0x3f51b6(0xc5)])),writeFileSync(_0x250665,_0x49dd1a,_0x3f51b6(0xb3));}export async function installGuides(_0x26718e){const _0x221c43=a192_0x5f2606,_0x13d85f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x13d85f,_0x26718e),Object[_0x221c43(0xb5)](_0x13d85f[_0x221c43(0xa8)])[_0x221c43(0xc4)];}function a192_0x3d2a(_0x2d8668,_0x16e87e){_0x2d8668=_0x2d8668-0xa8;const _0x47ec16=a192_0x47ec();let _0x3d2abd=_0x47ec16[_0x2d8668];return _0x3d2abd;}export function getGuidesSummary(_0x32a027){const _0x4de194=a192_0x5f2606;return Object['entries'](_0x32a027['guides'])[_0x4de194(0xb8)](([_0x50ed30,_0xc572b5])=>({'key':_0x50ed30,'title':_0xc572b5['title'],'path':_0xc572b5[_0x4de194(0xb6)]}));}
@@ -1 +1 @@
1
- (function(_0x49be40,_0x94e1ae){const _0x16221a=a193_0x4520,_0x4ee0e9=_0x49be40();while(!![]){try{const _0x217d6d=parseInt(_0x16221a(0x133))/0x1+parseInt(_0x16221a(0x138))/0x2*(-parseInt(_0x16221a(0x139))/0x3)+-parseInt(_0x16221a(0x141))/0x4*(-parseInt(_0x16221a(0x13f))/0x5)+parseInt(_0x16221a(0x143))/0x6+parseInt(_0x16221a(0x13c))/0x7+parseInt(_0x16221a(0x14d))/0x8+-parseInt(_0x16221a(0x145))/0x9*(parseInt(_0x16221a(0x147))/0xa);if(_0x217d6d===_0x94e1ae)break;else _0x4ee0e9['push'](_0x4ee0e9['shift']());}catch(_0x1c363f){_0x4ee0e9['push'](_0x4ee0e9['shift']());}}}(a193_0x566a,0xbe2cb));export async function httpRequest(_0xf45e76,_0x2de282={}){const _0x4e12fc=a193_0x4520,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2de282;let _0x29a0b3=null;for(let _0x466a31=0x0;_0x466a31<=retries;_0x466a31++){try{const _0x11bce0=new AbortController(),_0x3a3504=setTimeout(()=>_0x11bce0[_0x4e12fc(0x136)](),timeout),_0x3bed02=await fetch(_0xf45e76,{'headers':headers,'signal':_0x11bce0[_0x4e12fc(0x140)]});clearTimeout(_0x3a3504);let _0x5f0f4a;const _0x267027=_0x3bed02['headers'][_0x4e12fc(0x144)](_0x4e12fc(0x137));return _0x267027?.[_0x4e12fc(0x134)](_0x4e12fc(0x149))?_0x5f0f4a=await _0x3bed02[_0x4e12fc(0x13e)]():_0x5f0f4a=await _0x3bed02['text'](),{'ok':_0x3bed02['ok'],'status':_0x3bed02['status'],'statusText':_0x3bed02[_0x4e12fc(0x14c)],'data':_0x5f0f4a,'headers':_0x3bed02[_0x4e12fc(0x148)],'url':_0x3bed02['url'],'text':()=>_0x3bed02[_0x4e12fc(0x13b)]()};}catch(_0x1f45f5){_0x29a0b3=_0x1f45f5 instanceof Error?_0x1f45f5:new Error(String(_0x1f45f5));if(_0x466a31===retries)break;if(shouldRetry(_0x1f45f5)){console[_0x4e12fc(0x14a)](_0x4e12fc(0x132)+retryDelay+'ms\x20后进行第\x20'+(_0x466a31+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x29a0b3||new Error(_0x4e12fc(0x135));}function shouldRetry(_0x5a021f){const _0x3da45b=a193_0x4520;if(_0x5a021f instanceof Error){if(_0x5a021f[_0x3da45b(0x13a)]===_0x3da45b(0x142))return![];if(_0x5a021f[_0x3da45b(0x13a)]==='TypeError'&&_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)]('fetch'))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x14b)))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x146)))return![];}return![];}function a193_0x4520(_0x26c001,_0x523ab9){_0x26c001=_0x26c001-0x132;const _0x566a4c=a193_0x566a();let _0x4520a9=_0x566a4c[_0x26c001];return _0x4520a9;}function sleep(_0x4fe753){return new Promise(_0x4a0965=>setTimeout(_0x4a0965,_0x4fe753));}function a193_0x566a(){const _0x293702=['9DDFUnj','ENOTFOUND','36652850fOcptA','headers','application/json','log','ECONNRESET','statusText','3998432FQrpPJ','*\x20请求失败,','1274707tLFHUD','includes','Request\x20failed','abort','content-type','2sarAfw','263157QtvyjP','name','text','7329112YnQpEr','message','json','242265qiQMRa','signal','56mHZMpa','AbortError','6192540csXLwB','get'];a193_0x566a=function(){return _0x293702;};return a193_0x566a();}export function validateUrl(_0x4a0044){try{return new URL(_0x4a0044),!![];}catch{return![];}}
1
+ (function(_0x5f2897,_0x317330){const _0x3cd577=a193_0xf2bc,_0x39f025=_0x5f2897();while(!![]){try{const _0x16a941=-parseInt(_0x3cd577(0x1ae))/0x1+-parseInt(_0x3cd577(0x1af))/0x2+parseInt(_0x3cd577(0x197))/0x3+-parseInt(_0x3cd577(0x195))/0x4*(parseInt(_0x3cd577(0x1b3))/0x5)+-parseInt(_0x3cd577(0x19b))/0x6*(-parseInt(_0x3cd577(0x1a1))/0x7)+parseInt(_0x3cd577(0x1a4))/0x8*(parseInt(_0x3cd577(0x1b1))/0x9)+-parseInt(_0x3cd577(0x19a))/0xa*(-parseInt(_0x3cd577(0x1a8))/0xb);if(_0x16a941===_0x317330)break;else _0x39f025['push'](_0x39f025['shift']());}catch(_0x2bf73c){_0x39f025['push'](_0x39f025['shift']());}}}(a193_0x82c2,0xb87e5));export async function httpRequest(_0x50660a,_0x14178b={}){const _0x3fabca=a193_0xf2bc,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x14178b;let _0x2f08eb=null;for(let _0x20d1e8=0x0;_0x20d1e8<=retries;_0x20d1e8++){try{const _0x51534c=new AbortController(),_0x1a07d7=setTimeout(()=>_0x51534c[_0x3fabca(0x19f)](),timeout),_0x249016=await fetch(_0x50660a,{'headers':headers,'signal':_0x51534c[_0x3fabca(0x19d)]});clearTimeout(_0x1a07d7);let _0xf5f9a2;const _0x59ace2=_0x249016[_0x3fabca(0x1a9)][_0x3fabca(0x19e)](_0x3fabca(0x1b0));return _0x59ace2?.[_0x3fabca(0x1a3)](_0x3fabca(0x1ac))?_0xf5f9a2=await _0x249016['json']():_0xf5f9a2=await _0x249016[_0x3fabca(0x1a5)](),{'ok':_0x249016['ok'],'status':_0x249016[_0x3fabca(0x198)],'statusText':_0x249016[_0x3fabca(0x1a0)],'data':_0xf5f9a2,'headers':_0x249016[_0x3fabca(0x1a9)],'url':_0x249016[_0x3fabca(0x1b2)],'text':()=>_0x249016['text']()};}catch(_0x179fae){_0x2f08eb=_0x179fae instanceof Error?_0x179fae:new Error(String(_0x179fae));if(_0x20d1e8===retries)break;if(shouldRetry(_0x179fae)){console[_0x3fabca(0x1aa)](_0x3fabca(0x1a6)+retryDelay+'ms\x20后进行第\x20'+(_0x20d1e8+0x1)+_0x3fabca(0x1a2)),await sleep(retryDelay);continue;}else break;}}throw _0x2f08eb||new Error('Request\x20failed');}function a193_0xf2bc(_0x26c500,_0x3c954f){_0x26c500=_0x26c500-0x195;const _0x82c2ca=a193_0x82c2();let _0xf2bcc9=_0x82c2ca[_0x26c500];return _0xf2bcc9;}function shouldRetry(_0x15e804){const _0x5400be=a193_0xf2bc;if(_0x15e804 instanceof Error){if(_0x15e804['name']===_0x5400be(0x199))return![];if(_0x15e804[_0x5400be(0x19c)]===_0x5400be(0x1ad)&&_0x15e804[_0x5400be(0x1ab)]['includes'](_0x5400be(0x1a7)))return!![];if(_0x15e804[_0x5400be(0x1ab)]['includes'](_0x5400be(0x196)))return!![];if(_0x15e804[_0x5400be(0x1ab)][_0x5400be(0x1a3)]('ENOTFOUND'))return![];}return![];}function sleep(_0x9470c6){return new Promise(_0x56ca19=>setTimeout(_0x56ca19,_0x9470c6));}function a193_0x82c2(){const _0x256e9e=['5kPHdbB','2818876ppuxfS','ECONNRESET','176409YFetxt','status','AbortError','10ozhMxe','66hORfhf','name','signal','get','abort','statusText','414659YgjJpj','\x20次重试...','includes','1825016fcyGcv','text','*\x20请求失败,','fetch','24391213BkMCdm','headers','log','message','application/json','TypeError','384739nXMCGN','2621554CMtbvn','content-type','9WHgDry','url'];a193_0x82c2=function(){return _0x256e9e;};return a193_0x82c2();}export function validateUrl(_0x1775ac){try{return new URL(_0x1775ac),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4d5beb,_0x58cb54){const _0x4b7259=a194_0x24b4,_0x108b5b=_0x4d5beb();while(!![]){try{const _0x5df497=-parseInt(_0x4b7259(0x87))/0x1*(-parseInt(_0x4b7259(0x8a))/0x2)+-parseInt(_0x4b7259(0x90))/0x3+parseInt(_0x4b7259(0x84))/0x4*(-parseInt(_0x4b7259(0x86))/0x5)+parseInt(_0x4b7259(0x8d))/0x6*(-parseInt(_0x4b7259(0x8b))/0x7)+-parseInt(_0x4b7259(0x8e))/0x8+-parseInt(_0x4b7259(0x83))/0x9*(-parseInt(_0x4b7259(0x89))/0xa)+parseInt(_0x4b7259(0x81))/0xb*(parseInt(_0x4b7259(0x8f))/0xc);if(_0x5df497===_0x58cb54)break;else _0x108b5b['push'](_0x108b5b['shift']());}catch(_0xd93b2e){_0x108b5b['push'](_0x108b5b['shift']());}}}(a194_0x2b74,0xe833a));function env(_0x2a13b7){return process.env[`RABETBASE_${_0x2a13b7}`]||process.env[`LOVRABET_${_0x2a13b7}`]||undefined;}export function isNonInteractive(_0x438fbb){const _0x1f8569=a194_0x24b4;return!!(_0x438fbb[_0x1f8569(0x88)]||_0x438fbb['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x1f8569(0x8c)][_0x1f8569(0x92)]||!isStdinRawModeSupported());}function a194_0x24b4(_0x3547f8,_0x5eef98){_0x3547f8=_0x3547f8-0x81;const _0x2b74c6=a194_0x2b74();let _0x24b43b=_0x2b74c6[_0x3547f8];return _0x24b43b;}function a194_0x2b74(){const _0x28a30c=['60159uKVyaB','stdin','74718KpMrRz','335272NappID','isRaw','15VYwxIS','1DBrdUj','nonInteractive','1130DsBDCF','2943294IDdOKF','7qplqyZ','stdout','10313334lMgDqS','5172376DlDxUs','4404FxqOlz','2546724nvXyYF','setRawMode','isTTY'];a194_0x2b74=function(){return _0x28a30c;};return a194_0x2b74();}function isStdinRawModeSupported(){const _0x26fdd3=a194_0x24b4;if(!process[_0x26fdd3(0x82)][_0x26fdd3(0x92)])return![];try{const _0x291449=process['stdin'][_0x26fdd3(0x85)];return process['stdin'][_0x26fdd3(0x91)](!![]),process['stdin'][_0x26fdd3(0x91)](_0x291449??![]),!![];}catch{return![];}}
1
+ (function(_0x30d337,_0x1a9824){const _0x23fca7=a194_0x2b7e,_0x6a32b1=_0x30d337();while(!![]){try{const _0x1e7037=-parseInt(_0x23fca7(0xfc))/0x1+parseInt(_0x23fca7(0xf4))/0x2*(parseInt(_0x23fca7(0xff))/0x3)+parseInt(_0x23fca7(0xf3))/0x4+-parseInt(_0x23fca7(0xfa))/0x5+parseInt(_0x23fca7(0x100))/0x6+-parseInt(_0x23fca7(0xfb))/0x7*(-parseInt(_0x23fca7(0xf8))/0x8)+-parseInt(_0x23fca7(0xf6))/0x9*(parseInt(_0x23fca7(0xf5))/0xa);if(_0x1e7037===_0x1a9824)break;else _0x6a32b1['push'](_0x6a32b1['shift']());}catch(_0x2482a5){_0x6a32b1['push'](_0x6a32b1['shift']());}}}(a194_0x4a89,0x7f805));function env(_0x3acb5d){return process.env[`RABETBASE_${_0x3acb5d}`]||process.env[`LOVRABET_${_0x3acb5d}`]||undefined;}export function isNonInteractive(_0x5ac28b){const _0x26d49c=a194_0x2b7e;return!!(_0x5ac28b[_0x26d49c(0xf7)]||_0x5ac28b['ci']||env('CI')===_0x26d49c(0xfe)||process.env.CI===_0x26d49c(0xfe)||!process[_0x26d49c(0xf9)][_0x26d49c(0xfd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5da192=a194_0x2b7e;if(!process['stdin'][_0x5da192(0xfd)])return![];try{const _0x472f3e=process[_0x5da192(0xf2)]['isRaw'];return process[_0x5da192(0xf2)][_0x5da192(0x101)](!![]),process[_0x5da192(0xf2)]['setRawMode'](_0x472f3e??![]),!![];}catch{return![];}}function a194_0x2b7e(_0x349664,_0x2ec260){_0x349664=_0x349664-0xf2;const _0x4a89db=a194_0x4a89();let _0x2b7ed5=_0x4a89db[_0x349664];return _0x2b7ed5;}function a194_0x4a89(){const _0x24aaeb=['4565493hRPMsj','nonInteractive','1676528wmEirV','stdout','3734460jfwuFl','21AjwxWi','660989OEkiro','isTTY','true','2890551nsXibf','4995864jdcYPZ','setRawMode','stdin','2079284CquUkN','2PzcBid','20yLNwtS'];a194_0x4a89=function(){return _0x24aaeb;};return a194_0x4a89();}